var env='production';var auth=btoa('testinguser:apitesting');var domain='1';var api_url='api.goassignmenthelp.com';var baseProtocol = (window.location.href.includes('https'))?'https':'https';
   var transtutorsDomainUrl = (window.location.href.includes('https'))?'https://www.transtutors.com/':'http://qa.transtutors.com/';!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){var n=[],i=n.slice,o=n.concat,r=n.push,s=n.indexOf,a={},l=a.toString,c=a.hasOwnProperty,u={},d="1.11.2",p=function(t,e){return new p.fn.init(t,e)},h=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,f=/^-ms-/,m=/-([\da-z])/gi,g=function(t,e){return e.toUpperCase()};function v(t){var e=t.length,n=p.type(t);return"function"!==n&&!p.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t))}p.fn=p.prototype={jquery:d,constructor:p,selector:"",length:0,toArray:function(){return i.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:i.call(this)},pushStack:function(t){var e=p.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return p.each(this,t,e)},map:function(t){return this.pushStack(p.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(0>t?e:0);return this.pushStack(n>=0&&e>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:r,sort:n.sort,splice:n.splice},p.extend=p.fn.extend=function(){var t,e,n,i,o,r,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||p.isFunction(s)||(s={}),a===l&&(s=this,a--);l>a;a++)if(null!=(o=arguments[a]))for(i in o)t=s[i],s!==(n=o[i])&&(c&&n&&(p.isPlainObject(n)||(e=p.isArray(n)))?(e?(e=!1,r=t&&p.isArray(t)?t:[]):r=t&&p.isPlainObject(t)?t:{},s[i]=p.extend(c,r,n)):void 0!==n&&(s[i]=n));return s},p.extend({expando:"jQuery"+(d+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===p.type(t)},isArray:Array.isArray||function(t){return"array"===p.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!p.isArray(t)&&t-parseFloat(t)+1>=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==p.type(t)||t.nodeType||p.isWindow(t))return!1;try{if(t.constructor&&!c.call(t,"constructor")&&!c.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(u.ownLast)for(e in t)return c.call(t,e);for(e in t);return void 0===e||c.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?a[l.call(t)]||"object":typeof t},globalEval:function(e){e&&p.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(f,"ms-").replace(m,g)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var i=0,o=t.length,r=v(t);if(n){if(r)for(;o>i&&!1!==e.apply(t[i],n);i++);else for(i in t)if(!1===e.apply(t[i],n))break}else if(r)for(;o>i&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},trim:function(t){return null==t?"":(t+"").replace(h,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(v(Object(t))?p.merge(n,"string"==typeof t?[t]:t):r.call(n,t)),n},inArray:function(t,e,n){var i;if(e){if(s)return s.call(e,t,n);for(i=e.length,n=n?0>n?Math.max(0,i+n):n:0;i>n;n++)if(n in e&&e[n]===t)return n}return-1},merge:function(t,e){for(var n=+e.length,i=0,o=t.length;n>i;)t[o++]=e[i++];if(n!=n)for(;void 0!==e[i];)t[o++]=e[i++];return t.length=o,t},grep:function(t,e,n){for(var i=[],o=0,r=t.length,s=!n;r>o;o++)!e(t[o],o)!==s&&i.push(t[o]);return i},map:function(t,e,n){var i,r=0,s=t.length,a=[];if(v(t))for(;s>r;r++)null!=(i=e(t[r],r,n))&&a.push(i);else for(r in t)null!=(i=e(t[r],r,n))&&a.push(i);return o.apply([],a)},guid:1,proxy:function(t,e){var n,o,r;return"string"==typeof e&&(r=t[e],e=t,t=r),p.isFunction(t)?(n=i.call(arguments,2),(o=function(){return t.apply(e||this,n.concat(i.call(arguments)))}).guid=t.guid=t.guid||p.guid++,o):void 0},now:function(){return+new Date},support:u}),p.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){a["[object "+e+"]"]=e.toLowerCase()});var y=function(t){var e,n,i,o,r,s,a,l,c,u,d,p,h,f,m,g,v,y,b,x="sizzle"+1*new Date,w=t.document,C=0,T=0,E=st(),k=st(),S=st(),$=function(t,e){return t===e&&(d=!0),0},A=1<<31,N={}.hasOwnProperty,L=[],D=L.pop,I=L.push,_=L.push,j=L.slice,O=function(t,e){for(var n=0,i=t.length;i>n;n++)if(t[n]===e)return n;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",H=F.replace("w","w#"),R="\\["+P+"*("+F+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+H+"))|)"+P+"*\\]",M=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",q=new RegExp(P+"+","g"),z=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),W=new RegExp("^"+P+"*,"+P+"*"),U=new RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),V=new RegExp("="+P+"*([^\\]'\"]*?)"+P+"*\\]","g"),X=new RegExp(M),Q=new RegExp("^"+H+"$"),K={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F.replace("w","w*")+")"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+M),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+B+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=/'|\\/g,nt=new RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),it=function(t,e,n){var i="0x"+e-65536;return i!=i||n?e:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},ot=function(){p()};try{_.apply(L=j.call(w.childNodes),w.childNodes),L[w.childNodes.length].nodeType}catch(t){_={apply:L.length?function(t,e){I.apply(t,j.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function rt(t,e,i,o){var r,a,c,u,d,f,v,y,C,T;if((e?e.ownerDocument||e:w)!==h&&p(e),i=i||[],u=(e=e||h).nodeType,"string"!=typeof t||!t||1!==u&&9!==u&&11!==u)return i;if(!o&&m){if(11!==u&&(r=Z.exec(t)))if(c=r[1]){if(9===u){if(!(a=e.getElementById(c))||!a.parentNode)return i;if(a.id===c)return i.push(a),i}else if(e.ownerDocument&&(a=e.ownerDocument.getElementById(c))&&b(e,a)&&a.id===c)return i.push(a),i}else{if(r[2])return _.apply(i,e.getElementsByTagName(t)),i;if((c=r[3])&&n.getElementsByClassName)return _.apply(i,e.getElementsByClassName(c)),i}if(n.qsa&&(!g||!g.test(t))){if(y=v=x,C=e,T=1!==u&&t,1===u&&"object"!==e.nodeName.toLowerCase()){for(f=s(t),(v=e.getAttribute("id"))?y=v.replace(et,"\\$&"):e.setAttribute("id",y),y="[id='"+y+"'] ",d=f.length;d--;)f[d]=y+gt(f[d]);C=tt.test(t)&&ft(e.parentNode)||e,T=f.join(",")}if(T)try{return _.apply(i,C.querySelectorAll(T)),i}catch(t){}finally{v||e.removeAttribute("id")}}}return l(t.replace(z,"$1"),e,i,o)}function st(){var t=[];return function e(n,o){return t.push(n+" ")>i.cacheLength&&delete e[t.shift()],e[n+" "]=o}}function at(t){return t[x]=!0,t}function lt(t){var e=h.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ct(t,e){for(var n=t.split("|"),o=t.length;o--;)i.attrHandle[n[o]]=e}function ut(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||A)-(~t.sourceIndex||A);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function dt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function ht(t){return at(function(e){return e=+e,at(function(n,i){for(var o,r=t([],n.length,e),s=r.length;s--;)n[o=r[s]]&&(n[o]=!(i[o]=n[o]))})})}function ft(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=rt.support={},r=rt.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},p=rt.setDocument=function(t){var e,o,s=t?t.ownerDocument||t:w;return s!==h&&9===s.nodeType&&s.documentElement?(h=s,f=s.documentElement,(o=s.defaultView)&&o!==o.top&&(o.addEventListener?o.addEventListener("unload",ot,!1):o.attachEvent&&o.attachEvent("onunload",ot)),m=!r(s),n.attributes=lt(function(t){return t.className="i",!t.getAttribute("className")}),n.getElementsByTagName=lt(function(t){return t.appendChild(s.createComment("")),!t.getElementsByTagName("*").length}),n.getElementsByClassName=J.test(s.getElementsByClassName),n.getById=lt(function(t){return f.appendChild(t).id=x,!s.getElementsByName||!s.getElementsByName(x).length}),n.getById?(i.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},i.filter.ID=function(t){var e=t.replace(nt,it);return function(t){return t.getAttribute("id")===e}}):(delete i.find.ID,i.filter.ID=function(t){var e=t.replace(nt,it);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),i.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],o=0,r=e.getElementsByTagName(t);if("*"===t){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},i.find.CLASS=n.getElementsByClassName&&function(t,e){return m?e.getElementsByClassName(t):void 0},v=[],g=[],(n.qsa=J.test(s.querySelectorAll))&&(lt(function(t){f.appendChild(t).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\f]' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+P+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+P+"*(?:value|"+B+")"),t.querySelectorAll("[id~="+x+"-]").length||g.push("~="),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+x+"+*").length||g.push(".#.+[+~]")}),lt(function(t){var e=s.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+P+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=J.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&lt(function(t){n.disconnectedMatch=y.call(t,"div"),y.call(t,"[s!='']:x"),v.push("!=",M)}),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),e=J.test(f.compareDocumentPosition),b=e||J.test(f.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},$=e?function(t,e){if(t===e)return d=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===i?t===s||t.ownerDocument===w&&b(w,t)?-1:e===s||e.ownerDocument===w&&b(w,e)?1:u?O(u,t)-O(u,e):0:4&i?-1:1)}:function(t,e){if(t===e)return d=!0,0;var n,i=0,o=t.parentNode,r=e.parentNode,a=[t],l=[e];if(!o||!r)return t===s?-1:e===s?1:o?-1:r?1:u?O(u,t)-O(u,e):0;if(o===r)return ut(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)l.unshift(n);for(;a[i]===l[i];)i++;return i?ut(a[i],l[i]):a[i]===w?-1:l[i]===w?1:0},s):h},rt.matches=function(t,e){return rt(t,null,null,e)},rt.matchesSelector=function(t,e){if((t.ownerDocument||t)!==h&&p(t),e=e.replace(V,"='$1']"),!(!n.matchesSelector||!m||v&&v.test(e)||g&&g.test(e)))try{var i=y.call(t,e);if(i||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return rt(e,h,null,[t]).length>0},rt.contains=function(t,e){return(t.ownerDocument||t)!==h&&p(t),b(t,e)},rt.attr=function(t,e){(t.ownerDocument||t)!==h&&p(t);var o=i.attrHandle[e.toLowerCase()],r=o&&N.call(i.attrHandle,e.toLowerCase())?o(t,e,!m):void 0;return void 0!==r?r:n.attributes||!m?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},rt.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},rt.uniqueSort=function(t){var e,i=[],o=0,r=0;if(d=!n.detectDuplicates,u=!n.sortStable&&t.slice(0),t.sort($),d){for(;e=t[r++];)e===t[r]&&(o=i.push(r));for(;o--;)t.splice(i[o],1)}return u=null,t},o=rt.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=o(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=o(e);return n},(i=rt.selectors={cacheLength:50,createPseudo:at,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(nt,it),t[3]=(t[3]||t[4]||t[5]||"").replace(nt,it),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||rt.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&rt.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return K.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&X.test(n)&&(e=s(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(nt,it).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=E[t+" "];return e||(e=new RegExp("(^|"+P+")"+t+"("+P+"|$)"))&&E(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(i){var o=rt.attr(i,t);return null==o?"!="===e:!e||(o+="","="===e?o===n:"!="===e?o!==n:"^="===e?n&&0===o.indexOf(n):"*="===e?n&&o.indexOf(n)>-1:"$="===e?n&&o.slice(-n.length)===n:"~="===e?(" "+o.replace(q," ")+" ").indexOf(n)>-1:"|="===e&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,o){var r="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===o?function(t){return!!t.parentNode}:function(e,n,l){var c,u,d,p,h,f,m=r!==s?"nextSibling":"previousSibling",g=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a;if(g){if(r){for(;m;){for(d=e;d=d[m];)if(a?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;f=m="only"===t&&!f&&"nextSibling"}return!0}if(f=[s?g.firstChild:g.lastChild],s&&y){for(h=(c=(u=g[x]||(g[x]={}))[t]||[])[0]===C&&c[1],p=c[0]===C&&c[2],d=h&&g.childNodes[h];d=++h&&d&&d[m]||(p=h=0)||f.pop();)if(1===d.nodeType&&++p&&d===e){u[t]=[C,h,p];break}}else if(y&&(c=(e[x]||(e[x]={}))[t])&&c[0]===C)p=c[1];else for(;(d=++h&&d&&d[m]||(p=h=0)||f.pop())&&((a?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++p||(y&&((d[x]||(d[x]={}))[t]=[C,p]),d!==e)););return(p-=o)===i||p%i==0&&p/i>=0}}},PSEUDO:function(t,e){var n,o=i.pseudos[t]||i.setFilters[t.toLowerCase()]||rt.error("unsupported pseudo: "+t);return o[x]?o(e):o.length>1?(n=[t,t,"",e],i.setFilters.hasOwnProperty(t.toLowerCase())?at(function(t,n){for(var i,r=o(t,e),s=r.length;s--;)t[i=O(t,r[s])]=!(n[i]=r[s])}):function(t){return o(t,0,n)}):o}},pseudos:{not:at(function(t){var e=[],n=[],i=a(t.replace(z,"$1"));return i[x]?at(function(t,e,n,o){for(var r,s=i(t,null,o,[]),a=t.length;a--;)(r=s[a])&&(t[a]=!(e[a]=r))}):function(t,o,r){return e[0]=t,i(e,null,r,n),e[0]=null,!n.pop()}}),has:at(function(t){return function(e){return rt(t,e).length>0}}),contains:at(function(t){return t=t.replace(nt,it),function(e){return(e.textContent||e.innerText||o(e)).indexOf(t)>-1}}),lang:at(function(t){return Q.test(t||"")||rt.error("unsupported lang: "+t),t=t.replace(nt,it).toLowerCase(),function(e){var n;do{if(n=m?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===f},focus:function(t){return t===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!i.pseudos.empty(t)},header:function(t){return G.test(t.nodeName)},input:function(t){return Y.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ht(function(){return[0]}),last:ht(function(t,e){return[e-1]}),eq:ht(function(t,e,n){return[0>n?n+e:n]}),even:ht(function(t,e){for(var n=0;e>n;n+=2)t.push(n);return t}),odd:ht(function(t,e){for(var n=1;e>n;n+=2)t.push(n);return t}),lt:ht(function(t,e,n){for(var i=0>n?n+e:n;--i>=0;)t.push(i);return t}),gt:ht(function(t,e,n){for(var i=0>n?n+e:n;++i<e;)t.push(i);return t})}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[e]=dt(e);for(e in{submit:!0,reset:!0})i.pseudos[e]=pt(e);function mt(){}function gt(t){for(var e=0,n=t.length,i="";n>e;e++)i+=t[e].value;return i}function vt(t,e,n){var i=e.dir,o=n&&"parentNode"===i,r=T++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||o)return t(e,n,r)}:function(e,n,s){var a,l,c=[C,r];if(s){for(;e=e[i];)if((1===e.nodeType||o)&&t(e,n,s))return!0}else for(;e=e[i];)if(1===e.nodeType||o){if((a=(l=e[x]||(e[x]={}))[i])&&a[0]===C&&a[1]===r)return c[2]=a[2];if(l[i]=c,c[2]=t(e,n,s))return!0}}}function yt(t){return t.length>1?function(e,n,i){for(var o=t.length;o--;)if(!t[o](e,n,i))return!1;return!0}:t[0]}function bt(t,e,n,i,o){for(var r,s=[],a=0,l=t.length,c=null!=e;l>a;a++)(r=t[a])&&(!n||n(r,i,o))&&(s.push(r),c&&e.push(a));return s}function xt(t,e,n,i,o,r){return i&&!i[x]&&(i=xt(i)),o&&!o[x]&&(o=xt(o,r)),at(function(r,s,a,l){var c,u,d,p=[],h=[],f=s.length,m=r||function(t,e,n){for(var i=0,o=e.length;o>i;i++)rt(t,e[i],n);return n}(e||"*",a.nodeType?[a]:a,[]),g=!t||!r&&e?m:bt(m,p,t,a,l),v=n?o||(r?t:f||i)?[]:s:g;if(n&&n(g,v,a,l),i)for(c=bt(v,h),i(c,[],a,l),u=c.length;u--;)(d=c[u])&&(v[h[u]]=!(g[h[u]]=d));if(r){if(o||t){if(o){for(c=[],u=v.length;u--;)(d=v[u])&&c.push(g[u]=d);o(null,v=[],c,l)}for(u=v.length;u--;)(d=v[u])&&(c=o?O(r,d):p[u])>-1&&(r[c]=!(s[c]=d))}}else v=bt(v===s?v.splice(f,v.length):v),o?o(null,s,v,l):_.apply(s,v)})}function wt(t){for(var e,n,o,r=t.length,s=i.relative[t[0].type],a=s||i.relative[" "],l=s?1:0,u=vt(function(t){return t===e},a,!0),d=vt(function(t){return O(e,t)>-1},a,!0),p=[function(t,n,i){var o=!s&&(i||n!==c)||((e=n).nodeType?u(t,n,i):d(t,n,i));return e=null,o}];r>l;l++)if(n=i.relative[t[l].type])p=[vt(yt(p),n)];else{if((n=i.filter[t[l].type].apply(null,t[l].matches))[x]){for(o=++l;r>o&&!i.relative[t[o].type];o++);return xt(l>1&&yt(p),l>1&&gt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(z,"$1"),n,o>l&&wt(t.slice(l,o)),r>o&&wt(t=t.slice(o)),r>o&&gt(t))}p.push(n)}return yt(p)}function Ct(t,e){var n=e.length>0,o=t.length>0,r=function(r,s,a,l,u){var d,p,f,m=0,g="0",v=r&&[],y=[],b=c,x=r||o&&i.find.TAG("*",u),w=C+=null==b?1:Math.random()||.1,T=x.length;for(u&&(c=s!==h&&s);g!==T&&null!=(d=x[g]);g++){if(o&&d){for(p=0;f=t[p++];)if(f(d,s,a)){l.push(d);break}u&&(C=w)}n&&((d=!f&&d)&&m--,r&&v.push(d))}if(m+=g,n&&g!==m){for(p=0;f=e[p++];)f(v,y,s,a);if(r){if(m>0)for(;g--;)v[g]||y[g]||(y[g]=D.call(l));y=bt(y)}_.apply(l,y),u&&!r&&y.length>0&&m+e.length>1&&rt.uniqueSort(l)}return u&&(C=w,c=b),v};return n?at(r):r}return mt.prototype=i.filters=i.pseudos,i.setFilters=new mt,s=rt.tokenize=function(t,e){var n,o,r,s,a,l,c,u=k[t+" "];if(u)return e?0:u.slice(0);for(a=t,l=[],c=i.preFilter;a;){for(s in(!n||(o=W.exec(a)))&&(o&&(a=a.slice(o[0].length)||a),l.push(r=[])),n=!1,(o=U.exec(a))&&(n=o.shift(),r.push({value:n,type:o[0].replace(z," ")}),a=a.slice(n.length)),i.filter)!(o=K[s].exec(a))||c[s]&&!(o=c[s](o))||(n=o.shift(),r.push({value:n,type:s,matches:o}),a=a.slice(n.length));if(!n)break}return e?a.length:a?rt.error(t):k(t,l).slice(0)},a=rt.compile=function(t,e){var n,i=[],o=[],r=S[t+" "];if(!r){for(e||(e=s(t)),n=e.length;n--;)(r=wt(e[n]))[x]?i.push(r):o.push(r);(r=S(t,Ct(o,i))).selector=t}return r},l=rt.select=function(t,e,o,r){var l,c,u,d,p,h="function"==typeof t&&t,f=!r&&s(t=h.selector||t);if(o=o||[],1===f.length){if((c=f[0]=f[0].slice(0)).length>2&&"ID"===(u=c[0]).type&&n.getById&&9===e.nodeType&&m&&i.relative[c[1].type]){if(!(e=(i.find.ID(u.matches[0].replace(nt,it),e)||[])[0]))return o;h&&(e=e.parentNode),t=t.slice(c.shift().value.length)}for(l=K.needsContext.test(t)?0:c.length;l--&&(u=c[l],!i.relative[d=u.type]);)if((p=i.find[d])&&(r=p(u.matches[0].replace(nt,it),tt.test(c[0].type)&&ft(e.parentNode)||e))){if(c.splice(l,1),!(t=r.length&&gt(c)))return _.apply(o,r),o;break}}return(h||a(t,f))(r,e,!m,o,tt.test(t)&&ft(e.parentNode)||e),o},n.sortStable=x.split("").sort($).join("")===x,n.detectDuplicates=!!d,p(),n.sortDetached=lt(function(t){return 1&t.compareDocumentPosition(h.createElement("div"))}),lt(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ct("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),n.attributes&&lt(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ct("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),lt(function(t){return null==t.getAttribute("disabled")})||ct(B,function(t,e,n){var i;return n?void 0:!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),rt}(t);p.find=y,p.expr=y.selectors,p.expr[":"]=p.expr.pseudos,p.unique=y.uniqueSort,p.text=y.getText,p.isXMLDoc=y.isXML,p.contains=y.contains;var b=p.expr.match.needsContext,x=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function C(t,e,n){if(p.isFunction(e))return p.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return p.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(w.test(e))return p.filter(e,t,n);e=p.filter(e,t)}return p.grep(t,function(t){return p.inArray(t,e)>=0!==n})}p.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?p.find.matchesSelector(i,t)?[i]:[]:p.find.matches(t,p.grep(e,function(t){return 1===t.nodeType}))},p.fn.extend({find:function(t){var e,n=[],i=this,o=i.length;if("string"!=typeof t)return this.pushStack(p(t).filter(function(){for(e=0;o>e;e++)if(p.contains(i[e],this))return!0}));for(e=0;o>e;e++)p.find(t,i[e],n);return(n=this.pushStack(o>1?p.unique(n):n)).selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(C(this,t||[],!1))},not:function(t){return this.pushStack(C(this,t||[],!0))},is:function(t){return!!C(this,"string"==typeof t&&b.test(t)?p(t):t||[],!1).length}});var T,E=t.document,k=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(p.fn.init=function(t,e){var n,i;if(!t)return this;if("string"==typeof t){if(!(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:k.exec(t))||!n[1]&&e)return!e||e.jquery?(e||T).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof p?e[0]:e,p.merge(this,p.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:E,!0)),x.test(n[1])&&p.isPlainObject(e))for(n in e)p.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if((i=E.getElementById(n[2]))&&i.parentNode){if(i.id!==n[2])return T.find(t);this.length=1,this[0]=i}return this.context=E,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):p.isFunction(t)?void 0!==T.ready?T.ready(t):t(p):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),p.makeArray(t,this))}).prototype=p.fn,T=p(E);var S=/^(?:parents|prev(?:Until|All))/,$={children:!0,contents:!0,next:!0,prev:!0};function A(t,e){do{t=t[e]}while(t&&1!==t.nodeType);return t}p.extend({dir:function(t,e,n){for(var i=[],o=t[e];o&&9!==o.nodeType&&(void 0===n||1!==o.nodeType||!p(o).is(n));)1===o.nodeType&&i.push(o),o=o[e];return i},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),p.fn.extend({has:function(t){var e,n=p(t,this),i=n.length;return this.filter(function(){for(e=0;i>e;e++)if(p.contains(this,n[e]))return!0})},closest:function(t,e){for(var n,i=0,o=this.length,r=[],s=b.test(t)||"string"!=typeof t?p(t,e||this.context):0;o>i;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&p.find.matchesSelector(n,t))){r.push(n);break}return this.pushStack(r.length>1?p.unique(r):r)},index:function(t){return t?"string"==typeof t?p.inArray(this[0],p(t)):p.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(p.unique(p.merge(this.get(),p(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),p.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return p.dir(t,"parentNode")},parentsUntil:function(t,e,n){return p.dir(t,"parentNode",n)},next:function(t){return A(t,"nextSibling")},prev:function(t){return A(t,"previousSibling")},nextAll:function(t){return p.dir(t,"nextSibling")},prevAll:function(t){return p.dir(t,"previousSibling")},nextUntil:function(t,e,n){return p.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return p.dir(t,"previousSibling",n)},siblings:function(t){return p.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return p.sibling(t.firstChild)},contents:function(t){return p.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:p.merge([],t.childNodes)}},function(t,e){p.fn[t]=function(n,i){var o=p.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=p.filter(i,o)),this.length>1&&($[t]||(o=p.unique(o)),S.test(t)&&(o=o.reverse())),this.pushStack(o)}});var N,L=/\S+/g,D={};function I(){E.addEventListener?(E.removeEventListener("DOMContentLoaded",_,!1),t.removeEventListener("load",_,!1)):(E.detachEvent("onreadystatechange",_),t.detachEvent("onload",_))}function _(){(E.addEventListener||"load"===event.type||"complete"===E.readyState)&&(I(),p.ready())}p.Callbacks=function(t){t="string"==typeof t?D[t]||function(t){var e=D[t]={};return p.each(t.match(L)||[],function(t,n){e[n]=!0}),e}(t):p.extend({},t);var e,n,i,o,r,s,a=[],l=!t.once&&[],c=function(d){for(n=t.memory&&d,i=!0,r=s||0,s=0,o=a.length,e=!0;a&&o>r;r++)if(!1===a[r].apply(d[0],d[1])&&t.stopOnFalse){n=!1;break}e=!1,a&&(l?l.length&&c(l.shift()):n?a=[]:u.disable())},u={add:function(){if(a){var i=a.length;!function e(n){p.each(n,function(n,i){var o=p.type(i);"function"===o?t.unique&&u.has(i)||a.push(i):i&&i.length&&"string"!==o&&e(i)})}(arguments),e?o=a.length:n&&(s=i,c(n))}return this},remove:function(){return a&&p.each(arguments,function(t,n){for(var i;(i=p.inArray(n,a,i))>-1;)a.splice(i,1),e&&(o>=i&&o--,r>=i&&r--)}),this},has:function(t){return t?p.inArray(t,a)>-1:!(!a||!a.length)},empty:function(){return a=[],o=0,this},disable:function(){return a=l=n=void 0,this},disabled:function(){return!a},lock:function(){return l=void 0,n||u.disable(),this},locked:function(){return!l},fireWith:function(t,n){return!a||i&&!l||(n=[t,(n=n||[]).slice?n.slice():n],e?l.push(n):c(n)),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},p.extend({Deferred:function(t){var e=[["resolve","done",p.Callbacks("once memory"),"resolved"],["reject","fail",p.Callbacks("once memory"),"rejected"],["notify","progress",p.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var t=arguments;return p.Deferred(function(n){p.each(e,function(e,r){var s=p.isFunction(t[e])&&t[e];o[r[1]](function(){var t=s&&s.apply(this,arguments);t&&p.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[r[0]+"With"](this===i?n.promise():this,s?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?p.extend(t,i):i}},o={};return i.pipe=i.then,p.each(e,function(t,r){var s=r[2],a=r[3];i[r[1]]=s.add,a&&s.add(function(){n=a},e[1^t][2].disable,e[2][2].lock),o[r[0]]=function(){return o[r[0]+"With"](this===o?i:this,arguments),this},o[r[0]+"With"]=s.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(t){var e,n,o,r=0,s=i.call(arguments),a=s.length,l=1!==a||t&&p.isFunction(t.promise)?a:0,c=1===l?t:p.Deferred(),u=function(t,n,o){return function(r){n[t]=this,o[t]=arguments.length>1?i.call(arguments):r,o===e?c.notifyWith(n,o):--l||c.resolveWith(n,o)}};if(a>1)for(e=new Array(a),n=new Array(a),o=new Array(a);a>r;r++)s[r]&&p.isFunction(s[r].promise)?s[r].promise().done(u(r,o,s)).fail(c.reject).progress(u(r,n,e)):--l;return l||c.resolveWith(o,s),c.promise()}}),p.fn.ready=function(t){return p.ready.promise().done(t),this},p.extend({isReady:!1,readyWait:1,holdReady:function(t){t?p.readyWait++:p.ready(!0)},ready:function(t){if(!0===t?!--p.readyWait:!p.isReady){if(!E.body)return setTimeout(p.ready);p.isReady=!0,!0!==t&&--p.readyWait>0||(N.resolveWith(E,[p]),p.fn.triggerHandler&&(p(E).triggerHandler("ready"),p(E).off("ready")))}}}),p.ready.promise=function(e){if(!N)if(N=p.Deferred(),"complete"===E.readyState)setTimeout(p.ready);else if(E.addEventListener)E.addEventListener("DOMContentLoaded",_,!1),t.addEventListener("load",_,!1);else{E.attachEvent("onreadystatechange",_),t.attachEvent("onload",_);var n=!1;try{n=null==t.frameElement&&E.documentElement}catch(t){}n&&n.doScroll&&function t(){if(!p.isReady){try{n.doScroll("left")}catch(e){return setTimeout(t,50)}I(),p.ready()}}()}return N.promise(e)};var j,O="undefined";for(j in p(u))break;u.ownLast="0"!==j,u.inlineBlockNeedsLayout=!1,p(function(){var t,e,n,i;(n=E.getElementsByTagName("body")[0])&&n.style&&(e=E.createElement("div"),(i=E.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),typeof e.style.zoom!==O&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",u.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild(i))}),function(){var t=E.createElement("div");if(null==u.deleteExpando){u.deleteExpando=!0;try{delete t.test}catch(t){u.deleteExpando=!1}}t=null}(),p.acceptData=function(t){var e=p.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return(1===n||9===n)&&(!e||!0!==e&&t.getAttribute("classid")===e)};var B=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,P=/([A-Z])/g;function F(t,e,n){if(void 0===n&&1===t.nodeType){var i="data-"+e.replace(P,"-$1").toLowerCase();if("string"==typeof(n=t.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:B.test(n)?p.parseJSON(n):n)}catch(t){}p.data(t,e,n)}else n=void 0}return n}function H(t){var e;for(e in t)if(("data"!==e||!p.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function R(t,e,i,o){if(p.acceptData(t)){var r,s,a=p.expando,l=t.nodeType,c=l?p.cache:t,u=l?t[a]:t[a]&&a;if(u&&c[u]&&(o||c[u].data)||void 0!==i||"string"!=typeof e)return u||(u=l?t[a]=n.pop()||p.guid++:a),c[u]||(c[u]=l?{}:{toJSON:p.noop}),("object"==typeof e||"function"==typeof e)&&(o?c[u]=p.extend(c[u],e):c[u].data=p.extend(c[u].data,e)),s=c[u],o||(s.data||(s.data={}),s=s.data),void 0!==i&&(s[p.camelCase(e)]=i),"string"==typeof e?null==(r=s[e])&&(r=s[p.camelCase(e)]):r=s,r}}function M(t,e,n){if(p.acceptData(t)){var i,o,r=t.nodeType,s=r?p.cache:t,a=r?t[p.expando]:p.expando;if(s[a]){if(e&&(i=n?s[a]:s[a].data)){p.isArray(e)?e=e.concat(p.map(e,p.camelCase)):e in i?e=[e]:e=(e=p.camelCase(e))in i?[e]:e.split(" "),o=e.length;for(;o--;)delete i[e[o]];if(n?!H(i):!p.isEmptyObject(i))return}(n||(delete s[a].data,H(s[a])))&&(r?p.cleanData([t],!0):u.deleteExpando||s!=s.window?delete s[a]:s[a]=null)}}}p.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?p.cache[t[p.expando]]:t[p.expando])&&!H(t)},data:function(t,e,n){return R(t,e,n)},removeData:function(t,e){return M(t,e)},_data:function(t,e,n){return R(t,e,n,!0)},_removeData:function(t,e){return M(t,e,!0)}}),p.fn.extend({data:function(t,e){var n,i,o,r=this[0],s=r&&r.attributes;if(void 0===t){if(this.length&&(o=p.data(r),1===r.nodeType&&!p._data(r,"parsedAttrs"))){for(n=s.length;n--;)s[n]&&(0===(i=s[n].name).indexOf("data-")&&F(r,i=p.camelCase(i.slice(5)),o[i]));p._data(r,"parsedAttrs",!0)}return o}return"object"==typeof t?this.each(function(){p.data(this,t)}):arguments.length>1?this.each(function(){p.data(this,t,e)}):r?F(r,t,p.data(r,t)):void 0},removeData:function(t){return this.each(function(){p.removeData(this,t)})}}),p.extend({queue:function(t,e,n){var i;return t?(e=(e||"fx")+"queue",i=p._data(t,e),n&&(!i||p.isArray(n)?i=p._data(t,e,p.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=p.queue(t,e),i=n.length,o=n.shift(),r=p._queueHooks(t,e);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===e&&n.unshift("inprogress"),delete r.stop,o.call(t,function(){p.dequeue(t,e)},r)),!i&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return p._data(t,n)||p._data(t,n,{empty:p.Callbacks("once memory").add(function(){p._removeData(t,e+"queue"),p._removeData(t,n)})})}}),p.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?p.queue(this[0],t):void 0===e?this:this.each(function(){var n=p.queue(this,t,e);p._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&p.dequeue(this,t)})},dequeue:function(t){return this.each(function(){p.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,o=p.Deferred(),r=this,s=this.length,a=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(n=p._data(r[s],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),o.promise(e)}});var q=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,z=["Top","Right","Bottom","Left"],W=function(t,e){return t=e||t,"none"===p.css(t,"display")||!p.contains(t.ownerDocument,t)},U=p.access=function(t,e,n,i,o,r,s){var a=0,l=t.length,c=null==n;if("object"===p.type(n))for(a in o=!0,n)p.access(t,e,a,n[a],!0,r,s);else if(void 0!==i&&(o=!0,p.isFunction(i)||(s=!0),c&&(s?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(p(t),n)})),e))for(;l>a;a++)e(t[a],n,s?i:i.call(t[a],a,e(t[a],n)));return o?t:c?e.call(t):l?e(t[0],n):r},V=/^(?:checkbox|radio)$/i;!function(){var t=E.createElement("input"),e=E.createElement("div"),n=E.createDocumentFragment();if(e.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",u.leadingWhitespace=3===e.firstChild.nodeType,u.tbody=!e.getElementsByTagName("tbody").length,u.htmlSerialize=!!e.getElementsByTagName("link").length,u.html5Clone="<:nav></:nav>"!==E.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,n.appendChild(t),u.appendChecked=t.checked,e.innerHTML="<textarea>x</textarea>",u.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,n.appendChild(e),e.innerHTML="<input type='radio' checked='checked' name='t'/>",u.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,u.noCloneEvent=!0,e.attachEvent&&(e.attachEvent("onclick",function(){u.noCloneEvent=!1}),e.cloneNode(!0).click()),null==u.deleteExpando){u.deleteExpando=!0;try{delete e.test}catch(t){u.deleteExpando=!1}}}(),function(){var e,n,i=E.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})n="on"+e,(u[e+"Bubbles"]=n in t)||(i.setAttribute(n,"t"),u[e+"Bubbles"]=!1===i.attributes[n].expando);i=null}();var X=/^(?:input|select|textarea)$/i,Q=/^key/,K=/^(?:mouse|pointer|contextmenu)|click/,Y=/^(?:focusinfocus|focusoutblur)$/,G=/^([^.]*)(?:\.(.+)|)$/;function J(){return!0}function Z(){return!1}function tt(){try{return E.activeElement}catch(t){}}function et(t){var e=nt.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}p.event={global:{},add:function(t,e,n,i,o){var r,s,a,l,c,u,d,h,f,m,g,v=p._data(t);if(v){for(n.handler&&(n=(l=n).handler,o=l.selector),n.guid||(n.guid=p.guid++),(s=v.events)||(s=v.events={}),(u=v.handle)||((u=v.handle=function(t){return typeof p===O||t&&p.event.triggered===t.type?void 0:p.event.dispatch.apply(u.elem,arguments)}).elem=t),a=(e=(e||"").match(L)||[""]).length;a--;)f=g=(r=G.exec(e[a])||[])[1],m=(r[2]||"").split(".").sort(),f&&(c=p.event.special[f]||{},f=(o?c.delegateType:c.bindType)||f,c=p.event.special[f]||{},d=p.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&p.expr.match.needsContext.test(o),namespace:m.join(".")},l),(h=s[f])||((h=s[f]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,i,m,u)||(t.addEventListener?t.addEventListener(f,u,!1):t.attachEvent&&t.attachEvent("on"+f,u))),c.add&&(c.add.call(t,d),d.handler.guid||(d.handler.guid=n.guid)),o?h.splice(h.delegateCount++,0,d):h.push(d),p.event.global[f]=!0);t=null}},remove:function(t,e,n,i,o){var r,s,a,l,c,u,d,h,f,m,g,v=p.hasData(t)&&p._data(t);if(v&&(u=v.events)){for(c=(e=(e||"").match(L)||[""]).length;c--;)if(f=g=(a=G.exec(e[c])||[])[1],m=(a[2]||"").split(".").sort(),f){for(d=p.event.special[f]||{},h=u[f=(i?d.delegateType:d.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=r=h.length;r--;)s=h[r],!o&&g!==s.origType||n&&n.guid!==s.guid||a&&!a.test(s.namespace)||i&&i!==s.selector&&("**"!==i||!s.selector)||(h.splice(r,1),s.selector&&h.delegateCount--,d.remove&&d.remove.call(t,s));l&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,m,v.handle)||p.removeEvent(t,f,v.handle),delete u[f])}else for(f in u)p.event.remove(t,f+e[c],n,i,!0);p.isEmptyObject(u)&&(delete v.handle,p._removeData(t,"events"))}},trigger:function(e,n,i,o){var r,s,a,l,u,d,h,f=[i||E],m=c.call(e,"type")?e.type:e,g=c.call(e,"namespace")?e.namespace.split("."):[];if(a=d=i=i||E,3!==i.nodeType&&8!==i.nodeType&&!Y.test(m+p.event.triggered)&&(m.indexOf(".")>=0&&(g=m.split("."),m=g.shift(),g.sort()),s=m.indexOf(":")<0&&"on"+m,(e=e[p.expando]?e:new p.Event(m,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=g.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),n=null==n?[e]:p.makeArray(n,[e]),u=p.event.special[m]||{},o||!u.trigger||!1!==u.trigger.apply(i,n))){if(!o&&!u.noBubble&&!p.isWindow(i)){for(l=u.delegateType||m,Y.test(l+m)||(a=a.parentNode);a;a=a.parentNode)f.push(a),d=a;d===(i.ownerDocument||E)&&f.push(d.defaultView||d.parentWindow||t)}for(h=0;(a=f[h++])&&!e.isPropagationStopped();)e.type=h>1?l:u.bindType||m,(r=(p._data(a,"events")||{})[e.type]&&p._data(a,"handle"))&&r.apply(a,n),(r=s&&a[s])&&r.apply&&p.acceptData(a)&&(e.result=r.apply(a,n),!1===e.result&&e.preventDefault());if(e.type=m,!o&&!e.isDefaultPrevented()&&(!u._default||!1===u._default.apply(f.pop(),n))&&p.acceptData(i)&&s&&i[m]&&!p.isWindow(i)){(d=i[s])&&(i[s]=null),p.event.triggered=m;try{i[m]()}catch(t){}p.event.triggered=void 0,d&&(i[s]=d)}return e.result}},dispatch:function(t){t=p.event.fix(t);var e,n,o,r,s,a=[],l=i.call(arguments),c=(p._data(this,"events")||{})[t.type]||[],u=p.event.special[t.type]||{};if(l[0]=t,t.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,t)){for(a=p.event.handlers.call(this,t,c),e=0;(r=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=r.elem,s=0;(o=r.handlers[s++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(o.namespace))&&(t.handleObj=o,t.data=o.data,void 0!==(n=((p.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,l))&&!1===(t.result=n)&&(t.preventDefault(),t.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,o,r,s=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&(!t.button||"click"!==t.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(o=[],r=0;a>r;r++)void 0===o[n=(i=e[r]).selector+" "]&&(o[n]=i.needsContext?p(n,this).index(l)>=0:p.find(n,this,null,[l]).length),o[n]&&o.push(i);o.length&&s.push({elem:l,handlers:o})}return a<e.length&&s.push({elem:this,handlers:e.slice(a)}),s},fix:function(t){if(t[p.expando])return t;var e,n,i,o=t.type,r=t,s=this.fixHooks[o];for(s||(this.fixHooks[o]=s=K.test(o)?this.mouseHooks:Q.test(o)?this.keyHooks:{}),i=s.props?this.props.concat(s.props):this.props,t=new p.Event(r),e=i.length;e--;)t[n=i[e]]=r[n];return t.target||(t.target=r.srcElement||E),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,s.filter?s.filter(t,r):t},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,i,o,r=e.button,s=e.fromElement;return null==t.pageX&&null!=e.clientX&&(o=(i=t.target.ownerDocument||E).documentElement,n=i.body,t.pageX=e.clientX+(o&&o.scrollLeft||n&&n.scrollLeft||0)-(o&&o.clientLeft||n&&n.clientLeft||0),t.pageY=e.clientY+(o&&o.scrollTop||n&&n.scrollTop||0)-(o&&o.clientTop||n&&n.clientTop||0)),!t.relatedTarget&&s&&(t.relatedTarget=s===t.target?e.toElement:s),t.which||void 0===r||(t.which=1&r?1:2&r?3:4&r?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==tt()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){return this===tt()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return p.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(t){return p.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,i){var o=p.extend(new p.Event,n,{type:t,isSimulated:!0,originalEvent:{}});i?p.event.trigger(o,null,e):p.event.dispatch.call(e,o),o.isDefaultPrevented()&&n.preventDefault()}},p.removeEvent=E.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)}:function(t,e,n){var i="on"+e;t.detachEvent&&(typeof t[i]===O&&(t[i]=null),t.detachEvent(i,n))},p.Event=function(t,e){return this instanceof p.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?J:Z):this.type=t,e&&p.extend(this,e),this.timeStamp=t&&t.timeStamp||p.now(),void(this[p.expando]=!0)):new p.Event(t,e)},p.Event.prototype={isDefaultPrevented:Z,isPropagationStopped:Z,isImmediatePropagationStopped:Z,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=J,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=J,t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=J,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},p.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){p.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,o=t.handleObj;return(!i||i!==this&&!p.contains(this,i))&&(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),u.submitBubbles||(p.event.special.submit={setup:function(){return!p.nodeName(this,"form")&&void p.event.add(this,"click._submit keypress._submit",function(t){var e=t.target,n=p.nodeName(e,"input")||p.nodeName(e,"button")?e.form:void 0;n&&!p._data(n,"submitBubbles")&&(p.event.add(n,"submit._submit",function(t){t._submit_bubble=!0}),p._data(n,"submitBubbles",!0))})},postDispatch:function(t){t._submit_bubble&&(delete t._submit_bubble,this.parentNode&&!t.isTrigger&&p.event.simulate("submit",this.parentNode,t,!0))},teardown:function(){return!p.nodeName(this,"form")&&void p.event.remove(this,"._submit")}}),u.changeBubbles||(p.event.special.change={setup:function(){return X.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(p.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)}),p.event.add(this,"click._change",function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1),p.event.simulate("change",this,t,!0)})),!1):void p.event.add(this,"beforeactivate._change",function(t){var e=t.target;X.test(e.nodeName)&&!p._data(e,"changeBubbles")&&(p.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||p.event.simulate("change",this.parentNode,t,!0)}),p._data(e,"changeBubbles",!0))})},handle:function(t){var e=t.target;return this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type?t.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return p.event.remove(this,"._change"),!X.test(this.nodeName)}}),u.focusinBubbles||p.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){p.event.simulate(e,t.target,p.event.fix(t),!0)};p.event.special[e]={setup:function(){var i=this.ownerDocument||this,o=p._data(i,e);o||i.addEventListener(t,n,!0),p._data(i,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this,o=p._data(i,e)-1;o?p._data(i,e,o):(i.removeEventListener(t,n,!0),p._removeData(i,e))}}}),p.fn.extend({on:function(t,e,n,i,o){var r,s;if("object"==typeof t){for(r in"string"!=typeof e&&(n=n||e,e=void 0),t)this.on(r,e,n,t[r],o);return this}if(null==n&&null==i?(i=e,n=e=void 0):null==i&&("string"==typeof e?(i=n,n=void 0):(i=n,n=e,e=void 0)),!1===i)i=Z;else if(!i)return this;return 1===o&&(s=i,(i=function(t){return p().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=p.guid++)),this.each(function(){p.event.add(this,t,i,n,e)})},one:function(t,e,n,i){return this.on(t,e,n,i,1)},off:function(t,e,n){var i,o;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,p(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(o in t)this.off(o,e,t[o]);return this}return(!1===e||"function"==typeof e)&&(n=e,e=void 0),!1===n&&(n=Z),this.each(function(){p.event.remove(this,t,n,e)})},trigger:function(t,e){return this.each(function(){p.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?p.event.trigger(t,e,n,!0):void 0}});var nt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",it=/ jQuery\d+="(?:null|\d+)"/g,ot=new RegExp("<(?:"+nt+")[\\s/>]","i"),rt=/^\s+/,st=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,at=/<([\w:]+)/,lt=/<tbody/i,ct=/<|&#?\w+;/,ut=/<(?:script|style|link)/i,dt=/checked\s*(?:[^=]|=\s*.checked.)/i,pt=/^$|\/(?:java|ecma)script/i,ht=/^true\/(.*)/,ft=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,mt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:u.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},gt=et(E).appendChild(E.createElement("div"));function vt(t,e){var n,i,o=0,r=typeof t.getElementsByTagName!==O?t.getElementsByTagName(e||"*"):typeof t.querySelectorAll!==O?t.querySelectorAll(e||"*"):void 0;if(!r)for(r=[],n=t.childNodes||t;null!=(i=n[o]);o++)!e||p.nodeName(i,e)?r.push(i):p.merge(r,vt(i,e));return void 0===e||e&&p.nodeName(t,e)?p.merge([t],r):r}function yt(t){V.test(t.type)&&(t.defaultChecked=t.checked)}function bt(t,e){return p.nodeName(t,"table")&&p.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function xt(t){return t.type=(null!==p.find.attr(t,"type"))+"/"+t.type,t}function wt(t){var e=ht.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function Ct(t,e){for(var n,i=0;null!=(n=t[i]);i++)p._data(n,"globalEval",!e||p._data(e[i],"globalEval"))}function Tt(t,e){if(1===e.nodeType&&p.hasData(t)){var n,i,o,r=p._data(t),s=p._data(e,r),a=r.events;if(a)for(n in delete s.handle,s.events={},a)for(i=0,o=a[n].length;o>i;i++)p.event.add(e,n,a[n][i]);s.data&&(s.data=p.extend({},s.data))}}function Et(t,e){var n,i,o;if(1===e.nodeType){if(n=e.nodeName.toLowerCase(),!u.noCloneEvent&&e[p.expando]){for(i in(o=p._data(e)).events)p.removeEvent(e,i,o.handle);e.removeAttribute(p.expando)}"script"===n&&e.text!==t.text?(xt(e).text=t.text,wt(e)):"object"===n?(e.parentNode&&(e.outerHTML=t.outerHTML),u.html5Clone&&t.innerHTML&&!p.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===n&&V.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===n?e.defaultSelected=e.selected=t.defaultSelected:("input"===n||"textarea"===n)&&(e.defaultValue=t.defaultValue)}}mt.optgroup=mt.option,mt.tbody=mt.tfoot=mt.colgroup=mt.caption=mt.thead,mt.th=mt.td,p.extend({clone:function(t,e,n){var i,o,r,s,a,l=p.contains(t.ownerDocument,t);if(u.html5Clone||p.isXMLDoc(t)||!ot.test("<"+t.nodeName+">")?r=t.cloneNode(!0):(gt.innerHTML=t.outerHTML,gt.removeChild(r=gt.firstChild)),!(u.noCloneEvent&&u.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||p.isXMLDoc(t)))for(i=vt(r),a=vt(t),s=0;null!=(o=a[s]);++s)i[s]&&Et(o,i[s]);if(e)if(n)for(a=a||vt(t),i=i||vt(r),s=0;null!=(o=a[s]);s++)Tt(o,i[s]);else Tt(t,r);return(i=vt(r,"script")).length>0&&Ct(i,!l&&vt(t,"script")),i=a=o=null,r},buildFragment:function(t,e,n,i){for(var o,r,s,a,l,c,d,h=t.length,f=et(e),m=[],g=0;h>g;g++)if((r=t[g])||0===r)if("object"===p.type(r))p.merge(m,r.nodeType?[r]:r);else if(ct.test(r)){for(a=a||f.appendChild(e.createElement("div")),l=(at.exec(r)||["",""])[1].toLowerCase(),d=mt[l]||mt._default,a.innerHTML=d[1]+r.replace(st,"<$1></$2>")+d[2],o=d[0];o--;)a=a.lastChild;if(!u.leadingWhitespace&&rt.test(r)&&m.push(e.createTextNode(rt.exec(r)[0])),!u.tbody)for(o=(r="table"!==l||lt.test(r)?"<table>"!==d[1]||lt.test(r)?0:a:a.firstChild)&&r.childNodes.length;o--;)p.nodeName(c=r.childNodes[o],"tbody")&&!c.childNodes.length&&r.removeChild(c);for(p.merge(m,a.childNodes),a.textContent="";a.firstChild;)a.removeChild(a.firstChild);a=f.lastChild}else m.push(e.createTextNode(r));for(a&&f.removeChild(a),u.appendChecked||p.grep(vt(m,"input"),yt),g=0;r=m[g++];)if((!i||-1===p.inArray(r,i))&&(s=p.contains(r.ownerDocument,r),a=vt(f.appendChild(r),"script"),s&&Ct(a),n))for(o=0;r=a[o++];)pt.test(r.type||"")&&n.push(r);return a=null,f},cleanData:function(t,e){for(var i,o,r,s,a=0,l=p.expando,c=p.cache,d=u.deleteExpando,h=p.event.special;null!=(i=t[a]);a++)if((e||p.acceptData(i))&&(s=(r=i[l])&&c[r])){if(s.events)for(o in s.events)h[o]?p.event.remove(i,o):p.removeEvent(i,o,s.handle);c[r]&&(delete c[r],d?delete i[l]:typeof i.removeAttribute!==O?i.removeAttribute(l):i[l]=null,n.push(r))}}}),p.fn.extend({text:function(t){return U(this,function(t){return void 0===t?p.text(this):this.empty().append((this[0]&&this[0].ownerDocument||E).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||bt(this,t).appendChild(t)})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=bt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,i=t?p.filter(t,this):this,o=0;null!=(n=i[o]);o++)e||1!==n.nodeType||p.cleanData(vt(n)),n.parentNode&&(e&&p.contains(n.ownerDocument,n)&&Ct(vt(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&p.cleanData(vt(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&p.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return p.clone(this,t,e)})},html:function(t){return U(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(it,""):void 0;if(!("string"!=typeof t||ut.test(t)||!u.htmlSerialize&&ot.test(t)||!u.leadingWhitespace&&rt.test(t)||mt[(at.exec(t)||["",""])[1].toLowerCase()])){t=t.replace(st,"<$1></$2>");try{for(;i>n;n++)1===(e=this[n]||{}).nodeType&&(p.cleanData(vt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,p.cleanData(vt(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=o.apply([],t);var n,i,r,s,a,l,c=0,d=this.length,h=this,f=d-1,m=t[0],g=p.isFunction(m);if(g||d>1&&"string"==typeof m&&!u.checkClone&&dt.test(m))return this.each(function(n){var i=h.eq(n);g&&(t[0]=m.call(this,n,i.html())),i.domManip(t,e)});if(d&&(n=(l=p.buildFragment(t,this[0].ownerDocument,!1,this)).firstChild,1===l.childNodes.length&&(l=n),n)){for(r=(s=p.map(vt(l,"script"),xt)).length;d>c;c++)i=l,c!==f&&(i=p.clone(i,!0,!0),r&&p.merge(s,vt(i,"script"))),e.call(this[c],i,c);if(r)for(a=s[s.length-1].ownerDocument,p.map(s,wt),c=0;r>c;c++)i=s[c],pt.test(i.type||"")&&!p._data(i,"globalEval")&&p.contains(a,i)&&(i.src?p._evalUrl&&p._evalUrl(i.src):p.globalEval((i.text||i.textContent||i.innerHTML||"").replace(ft,"")));l=n=null}return this}}),p.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){p.fn[t]=function(t){for(var n,i=0,o=[],s=p(t),a=s.length-1;a>=i;i++)n=i===a?this:this.clone(!0),p(s[i])[e](n),r.apply(o,n.get());return this.pushStack(o)}});var kt,St={};function $t(e,n){var i,o=p(n.createElement(e)).appendTo(n.body),r=t.getDefaultComputedStyle&&(i=t.getDefaultComputedStyle(o[0]))?i.display:p.css(o[0],"display");return o.detach(),r}function At(t){var e=E,n=St[t];return n||("none"!==(n=$t(t,e))&&n||((e=((kt=(kt||p("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentWindow||kt[0].contentDocument).document).write(),e.close(),n=$t(t,e),kt.detach()),St[t]=n),n}!function(){var t;u.shrinkWrapBlocks=function(){return null!=t?t:(t=!1,(n=E.getElementsByTagName("body")[0])&&n.style?(e=E.createElement("div"),(i=E.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),typeof e.style.zoom!==O&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(E.createElement("div")).style.width="5px",t=3!==e.offsetWidth),n.removeChild(i),t):void 0);var e,n,i}}();var Nt,Lt,Dt=/^margin/,It=new RegExp("^("+q+")(?!px)[a-z%]+$","i"),_t=/^(top|right|bottom|left)$/;function jt(t,e){return{get:function(){var n=t();if(null!=n)return n?void delete this.get:(this.get=e).apply(this,arguments)}}}t.getComputedStyle?(Nt=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):t.getComputedStyle(e,null)},Lt=function(t,e,n){var i,o,r,s,a=t.style;return s=(n=n||Nt(t))?n.getPropertyValue(e)||n[e]:void 0,n&&(""!==s||p.contains(t.ownerDocument,t)||(s=p.style(t,e)),It.test(s)&&Dt.test(e)&&(i=a.width,o=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=o,a.maxWidth=r)),void 0===s?s:s+""}):E.documentElement.currentStyle&&(Nt=function(t){return t.currentStyle},Lt=function(t,e,n){var i,o,r,s,a=t.style;return null==(s=(n=n||Nt(t))?n[e]:void 0)&&a&&a[e]&&(s=a[e]),It.test(s)&&!_t.test(e)&&(i=a.left,(r=(o=t.runtimeStyle)&&o.left)&&(o.left=t.currentStyle.left),a.left="fontSize"===e?"1em":s,s=a.pixelLeft+"px",a.left=i,r&&(o.left=r)),void 0===s?s:s+""||"auto"}),function(){var e,n,i,o,r,s,a;if((e=E.createElement("div")).innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=(i=e.getElementsByTagName("a")[0])&&i.style){function l(){var e,n,i,l;(n=E.getElementsByTagName("body")[0])&&n.style&&(e=E.createElement("div"),(i=E.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),e.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o=r=!1,a=!0,t.getComputedStyle&&(o="1%"!==(t.getComputedStyle(e,null)||{}).top,r="4px"===(t.getComputedStyle(e,null)||{width:"4px"}).width,(l=e.appendChild(E.createElement("div"))).style.cssText=e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",l.style.marginRight=l.style.width="0",e.style.width="1px",a=!parseFloat((t.getComputedStyle(l,null)||{}).marginRight),e.removeChild(l)),e.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(l=e.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(s=0===l[0].offsetHeight)&&(l[0].style.display="",l[1].style.display="none",s=0===l[0].offsetHeight),n.removeChild(i))}n.cssText="float:left;opacity:.5",u.opacity="0.5"===n.opacity,u.cssFloat=!!n.cssFloat,e.style.backgroundClip="content-box",e.cloneNode(!0).style.backgroundClip="",u.clearCloneStyle="content-box"===e.style.backgroundClip,u.boxSizing=""===n.boxSizing||""===n.MozBoxSizing||""===n.WebkitBoxSizing,p.extend(u,{reliableHiddenOffsets:function(){return null==s&&l(),s},boxSizingReliable:function(){return null==r&&l(),r},pixelPosition:function(){return null==o&&l(),o},reliableMarginRight:function(){return null==a&&l(),a}})}}(),p.swap=function(t,e,n,i){var o,r,s={};for(r in e)s[r]=t.style[r],t.style[r]=e[r];for(r in o=n.apply(t,i||[]),e)t.style[r]=s[r];return o};var Ot=/alpha\([^)]*\)/i,Bt=/opacity\s*=\s*([^)]*)/,Pt=/^(none|table(?!-c[ea]).+)/,Ft=new RegExp("^("+q+")(.*)$","i"),Ht=new RegExp("^([+-])=("+q+")","i"),Rt={position:"absolute",visibility:"hidden",display:"block"},Mt={letterSpacing:"0",fontWeight:"400"},qt=["Webkit","O","Moz","ms"];function zt(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),i=e,o=qt.length;o--;)if((e=qt[o]+n)in t)return e;return i}function Wt(t,e){for(var n,i,o,r=[],s=0,a=t.length;a>s;s++)(i=t[s]).style&&(r[s]=p._data(i,"olddisplay"),n=i.style.display,e?(r[s]||"none"!==n||(i.style.display=""),""===i.style.display&&W(i)&&(r[s]=p._data(i,"olddisplay",At(i.nodeName)))):(o=W(i),(n&&"none"!==n||!o)&&p._data(i,"olddisplay",o?n:p.css(i,"display"))));for(s=0;a>s;s++)(i=t[s]).style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?r[s]||"":"none"));return t}function Ut(t,e,n){var i=Ft.exec(e);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):e}function Vt(t,e,n,i,o){for(var r=n===(i?"border":"content")?4:"width"===e?1:0,s=0;4>r;r+=2)"margin"===n&&(s+=p.css(t,n+z[r],!0,o)),i?("content"===n&&(s-=p.css(t,"padding"+z[r],!0,o)),"margin"!==n&&(s-=p.css(t,"border"+z[r]+"Width",!0,o))):(s+=p.css(t,"padding"+z[r],!0,o),"padding"!==n&&(s+=p.css(t,"border"+z[r]+"Width",!0,o)));return s}function Xt(t,e,n){var i=!0,o="width"===e?t.offsetWidth:t.offsetHeight,r=Nt(t),s=u.boxSizing&&"border-box"===p.css(t,"boxSizing",!1,r);if(0>=o||null==o){if((0>(o=Lt(t,e,r))||null==o)&&(o=t.style[e]),It.test(o))return o;i=s&&(u.boxSizingReliable()||o===t.style[e]),o=parseFloat(o)||0}return o+Vt(t,e,n||(s?"border":"content"),i,r)+"px"}function Qt(t,e,n,i,o){return new Qt.prototype.init(t,e,n,i,o)}p.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Lt(t,"opacity");return""===n?"1":n}}}},cssNumber:{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:u.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,r,s,a=p.camelCase(e),l=t.style;if(e=p.cssProps[a]||(p.cssProps[a]=zt(l,a)),s=p.cssHooks[e]||p.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(t,!1,i))?o:l[e];if("string"===(r=typeof n)&&(o=Ht.exec(n))&&(n=(o[1]+1)*o[2]+parseFloat(p.css(t,e)),r="number"),null!=n&&n==n&&("number"!==r||p.cssNumber[a]||(n+="px"),u.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),!(s&&"set"in s&&void 0===(n=s.set(t,n,i)))))try{l[e]=n}catch(t){}}},css:function(t,e,n,i){var o,r,s,a=p.camelCase(e);return e=p.cssProps[a]||(p.cssProps[a]=zt(t.style,a)),(s=p.cssHooks[e]||p.cssHooks[a])&&"get"in s&&(r=s.get(t,!0,n)),void 0===r&&(r=Lt(t,e,i)),"normal"===r&&e in Mt&&(r=Mt[e]),""===n||n?(o=parseFloat(r),!0===n||p.isNumeric(o)?o||0:r):r}}),p.each(["height","width"],function(t,e){p.cssHooks[e]={get:function(t,n,i){return n?Pt.test(p.css(t,"display"))&&0===t.offsetWidth?p.swap(t,Rt,function(){return Xt(t,e,i)}):Xt(t,e,i):void 0},set:function(t,n,i){var o=i&&Nt(t);return Ut(0,n,i?Vt(t,e,i,u.boxSizing&&"border-box"===p.css(t,"boxSizing",!1,o),o):0)}}}),u.opacity||(p.cssHooks.opacity={get:function(t,e){return Bt.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var n=t.style,i=t.currentStyle,o=p.isNumeric(e)?"alpha(opacity="+100*e+")":"",r=i&&i.filter||n.filter||"";n.zoom=1,(e>=1||""===e)&&""===p.trim(r.replace(Ot,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===e||i&&!i.filter)||(n.filter=Ot.test(r)?r.replace(Ot,o):r+" "+o)}}),p.cssHooks.marginRight=jt(u.reliableMarginRight,function(t,e){return e?p.swap(t,{display:"inline-block"},Lt,[t,"marginRight"]):void 0}),p.each({margin:"",padding:"",border:"Width"},function(t,e){p.cssHooks[t+e]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];4>i;i++)o[t+z[i]+e]=r[i]||r[i-2]||r[0];return o}},Dt.test(t)||(p.cssHooks[t+e].set=Ut)}),p.fn.extend({css:function(t,e){return U(this,function(t,e,n){var i,o,r={},s=0;if(p.isArray(e)){for(i=Nt(t),o=e.length;o>s;s++)r[e[s]]=p.css(t,e[s],!1,i);return r}return void 0!==n?p.style(t,e,n):p.css(t,e)},t,e,arguments.length>1)},show:function(){return Wt(this,!0)},hide:function(){return Wt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){W(this)?p(this).show():p(this).hide()})}}),p.Tween=Qt,Qt.prototype={constructor:Qt,init:function(t,e,n,i,o,r){this.elem=t,this.prop=n,this.easing=o||"swing",this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=r||(p.cssNumber[n]?"":"px")},cur:function(){var t=Qt.propHooks[this.prop];return t&&t.get?t.get(this):Qt.propHooks._default.get(this)},run:function(t){var e,n=Qt.propHooks[this.prop];return this.pos=e=this.options.duration?p.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Qt.propHooks._default.set(this),this}},Qt.prototype.init.prototype=Qt.prototype,Qt.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=p.css(t.elem,t.prop,""))&&"auto"!==e?e:0:t.elem[t.prop]},set:function(t){p.fx.step[t.prop]?p.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[p.cssProps[t.prop]]||p.cssHooks[t.prop])?p.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},Qt.propHooks.scrollTop=Qt.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},p.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},p.fx=Qt.prototype.init,p.fx.step={};var Kt,Yt,Gt=/^(?:toggle|show|hide)$/,Jt=new RegExp("^(?:([+-])=|)("+q+")([a-z%]*)$","i"),Zt=/queueHooks$/,te=[function(t,e,n){var i,o,r,s,a,l,c,d=this,h={},f=t.style,m=t.nodeType&&W(t),g=p._data(t,"fxshow");for(i in n.queue||(null==(a=p._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,p.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],c=p.css(t,"display"),"inline"===("none"===c?p._data(t,"olddisplay")||At(t.nodeName):c)&&"none"===p.css(t,"float")&&(u.inlineBlockNeedsLayout&&"inline"!==At(t.nodeName)?f.zoom=1:f.display="inline-block")),n.overflow&&(f.overflow="hidden",u.shrinkWrapBlocks()||d.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),e)if(o=e[i],Gt.exec(o)){if(delete e[i],r=r||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||!g||void 0===g[i])continue;m=!0}h[i]=g&&g[i]||p.style(t,i)}else c=void 0;if(p.isEmptyObject(h))"inline"===("none"===c?At(t.nodeName):c)&&(f.display=c);else for(i in g?"hidden"in g&&(m=g.hidden):g=p._data(t,"fxshow",{}),r&&(g.hidden=!m),m?p(t).show():d.done(function(){p(t).hide()}),d.done(function(){var e;for(e in p._removeData(t,"fxshow"),h)p.style(t,e,h[e])}),h)s=oe(m?g[i]:0,i,d),i in g||(g[i]=s.start,m&&(s.end=s.start,s.start="width"===i||"height"===i?1:0))}],ee={"*":[function(t,e){var n=this.createTween(t,e),i=n.cur(),o=Jt.exec(e),r=o&&o[3]||(p.cssNumber[t]?"":"px"),s=(p.cssNumber[t]||"px"!==r&&+i)&&Jt.exec(p.css(n.elem,t)),a=1,l=20;if(s&&s[3]!==r){r=r||s[3],o=o||[],s=+i||1;do{s/=a=a||".5",p.style(n.elem,t,s+r)}while(a!==(a=n.cur()/i)&&1!==a&&--l)}return o&&(s=n.start=+s||+i||0,n.unit=r,n.end=o[1]?s+(o[1]+1)*o[2]:+o[2]),n}]};function ne(){return setTimeout(function(){Kt=void 0}),Kt=p.now()}function ie(t,e){var n,i={height:t},o=0;for(e=e?1:0;4>o;o+=2-e)i["margin"+(n=z[o])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function oe(t,e,n){for(var i,o=(ee[e]||[]).concat(ee["*"]),r=0,s=o.length;s>r;r++)if(i=o[r].call(n,e,t))return i}function re(t,e,n){var i,o,r=0,s=te.length,a=p.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var e=Kt||ne(),n=Math.max(0,c.startTime+c.duration-e),i=1-(n/c.duration||0),r=0,s=c.tweens.length;s>r;r++)c.tweens[r].run(i);return a.notifyWith(t,[c,i,n]),1>i&&s?n:(a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:p.extend({},e),opts:p.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:Kt||ne(),duration:n.duration,tweens:[],createTween:function(e,n){var i=p.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(o)return this;for(o=!0;i>n;n++)c.tweens[n].run(1);return e?a.resolveWith(t,[c,e]):a.rejectWith(t,[c,e]),this}}),u=c.props;for(function(t,e){var n,i,o,r,s;for(n in t)if(o=e[i=p.camelCase(n)],r=t[n],p.isArray(r)&&(o=r[1],r=t[n]=r[0]),n!==i&&(t[i]=r,delete t[n]),(s=p.cssHooks[i])&&"expand"in s)for(n in r=s.expand(r),delete t[i],r)n in t||(t[n]=r[n],e[n]=o);else e[i]=o}(u,c.opts.specialEasing);s>r;r++)if(i=te[r].call(c,t,u,c.opts))return i;return p.map(u,oe,c),p.isFunction(c.opts.start)&&c.opts.start.call(t,c),p.fx.timer(p.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}p.Animation=p.extend(re,{tweener:function(t,e){p.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,i=0,o=t.length;o>i;i++)n=t[i],ee[n]=ee[n]||[],ee[n].unshift(e)},prefilter:function(t,e){e?te.unshift(t):te.push(t)}}),p.speed=function(t,e,n){var i=t&&"object"==typeof t?p.extend({},t):{complete:n||!n&&e||p.isFunction(t)&&t,duration:t,easing:n&&e||e&&!p.isFunction(e)&&e};return i.duration=p.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in p.fx.speeds?p.fx.speeds[i.duration]:p.fx.speeds._default,(null==i.queue||!0===i.queue)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){p.isFunction(i.old)&&i.old.call(this),i.queue&&p.dequeue(this,i.queue)},i},p.fn.extend({fadeTo:function(t,e,n,i){return this.filter(W).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var o=p.isEmptyObject(t),r=p.speed(e,n,i),s=function(){var e=re(this,p.extend({},t),r);(o||p._data(this,"finish"))&&e.stop(!0)};return s.finish=s,o||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,o=null!=t&&t+"queueHooks",r=p.timers,s=p._data(this);if(o)s[o]&&s[o].stop&&i(s[o]);else for(o in s)s[o]&&s[o].stop&&Zt.test(o)&&i(s[o]);for(o=r.length;o--;)r[o].elem!==this||null!=t&&r[o].queue!==t||(r[o].anim.stop(n),e=!1,r.splice(o,1));(e||!n)&&p.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=p._data(this),i=n[t+"queue"],o=n[t+"queueHooks"],r=p.timers,s=i?i.length:0;for(n.finish=!0,p.queue(this,t,[]),o&&o.stop&&o.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===t&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;s>e;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),p.each(["toggle","show","hide"],function(t,e){var n=p.fn[e];p.fn[e]=function(t,i,o){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ie(e,!0),t,i,o)}}),p.each({slideDown:ie("show"),slideUp:ie("hide"),slideToggle:ie("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){p.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),p.timers=[],p.fx.tick=function(){var t,e=p.timers,n=0;for(Kt=p.now();n<e.length;n++)(t=e[n])()||e[n]!==t||e.splice(n--,1);e.length||p.fx.stop(),Kt=void 0},p.fx.timer=function(t){p.timers.push(t),t()?p.fx.start():p.timers.pop()},p.fx.interval=13,p.fx.start=function(){Yt||(Yt=setInterval(p.fx.tick,p.fx.interval))},p.fx.stop=function(){clearInterval(Yt),Yt=null},p.fx.speeds={slow:600,fast:200,_default:400},p.fn.delay=function(t,e){return t=p.fx&&p.fx.speeds[t]||t,e=e||"fx",this.queue(e,function(e,n){var i=setTimeout(e,t);n.stop=function(){clearTimeout(i)}})},function(){var t,e,n,i,o;(e=E.createElement("div")).setAttribute("className","t"),e.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",i=e.getElementsByTagName("a")[0],o=(n=E.createElement("select")).appendChild(E.createElement("option")),t=e.getElementsByTagName("input")[0],i.style.cssText="top:1px",u.getSetAttribute="t"!==e.className,u.style=/top/.test(i.getAttribute("style")),u.hrefNormalized="/a"===i.getAttribute("href"),u.checkOn=!!t.value,u.optSelected=o.selected,u.enctype=!!E.createElement("form").enctype,n.disabled=!0,u.optDisabled=!o.disabled,(t=E.createElement("input")).setAttribute("value",""),u.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),u.radioValue="t"===t.value}();var se=/\r/g;p.fn.extend({val:function(t){var e,n,i,o=this[0];return arguments.length?(i=p.isFunction(t),this.each(function(n){var o;1===this.nodeType&&(null==(o=i?t.call(this,n,p(this).val()):t)?o="":"number"==typeof o?o+="":p.isArray(o)&&(o=p.map(o,function(t){return null==t?"":t+""})),(e=p.valHooks[this.type]||p.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))})):o?(e=p.valHooks[o.type]||p.valHooks[o.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(se,""):null==n?"":n:void 0}}),p.extend({valHooks:{option:{get:function(t){var e=p.find.attr(t,"value");return null!=e?e:p.trim(p.text(t))}},select:{get:function(t){for(var e,n,i=t.options,o=t.selectedIndex,r="select-one"===t.type||0>o,s=r?null:[],a=r?o+1:i.length,l=0>o?a:r?o:0;a>l;l++)if(!(!(n=i[l]).selected&&l!==o||(u.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&p.nodeName(n.parentNode,"optgroup"))){if(e=p(n).val(),r)return e;s.push(e)}return s},set:function(t,e){for(var n,i,o=t.options,r=p.makeArray(e),s=o.length;s--;)if(i=o[s],p.inArray(p.valHooks.option.get(i),r)>=0)try{i.selected=n=!0}catch(t){i.scrollHeight}else i.selected=!1;return n||(t.selectedIndex=-1),o}}}}),p.each(["radio","checkbox"],function(){p.valHooks[this]={set:function(t,e){return p.isArray(e)?t.checked=p.inArray(p(t).val(),e)>=0:void 0}},u.checkOn||(p.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var ae,le,ce=p.expr.attrHandle,ue=/^(?:checked|selected)$/i,de=u.getSetAttribute,pe=u.input;p.fn.extend({attr:function(t,e){return U(this,p.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){p.removeAttr(this,t)})}}),p.extend({attr:function(t,e,n){var i,o,r=t.nodeType;if(t&&3!==r&&8!==r&&2!==r)return typeof t.getAttribute===O?p.prop(t,e,n):(1===r&&p.isXMLDoc(t)||(e=e.toLowerCase(),i=p.attrHooks[e]||(p.expr.match.bool.test(e)?le:ae)),void 0===n?i&&"get"in i&&null!==(o=i.get(t,e))?o:null==(o=p.find.attr(t,e))?void 0:o:null!==n?i&&"set"in i&&void 0!==(o=i.set(t,n,e))?o:(t.setAttribute(e,n+""),n):void p.removeAttr(t,e))},removeAttr:function(t,e){var n,i,o=0,r=e&&e.match(L);if(r&&1===t.nodeType)for(;n=r[o++];)i=p.propFix[n]||n,p.expr.match.bool.test(n)?pe&&de||!ue.test(n)?t[i]=!1:t[p.camelCase("default-"+n)]=t[i]=!1:p.attr(t,n,""),t.removeAttribute(de?n:i)},attrHooks:{type:{set:function(t,e){if(!u.radioValue&&"radio"===e&&p.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),le={set:function(t,e,n){return!1===e?p.removeAttr(t,n):pe&&de||!ue.test(n)?t.setAttribute(!de&&p.propFix[n]||n,n):t[p.camelCase("default-"+n)]=t[n]=!0,n}},p.each(p.expr.match.bool.source.match(/\w+/g),function(t,e){var n=ce[e]||p.find.attr;ce[e]=pe&&de||!ue.test(e)?function(t,e,i){var o,r;return i||(r=ce[e],ce[e]=o,o=null!=n(t,e,i)?e.toLowerCase():null,ce[e]=r),o}:function(t,e,n){return n?void 0:t[p.camelCase("default-"+e)]?e.toLowerCase():null}}),pe&&de||(p.attrHooks.value={set:function(t,e,n){return p.nodeName(t,"input")?void(t.defaultValue=e):ae&&ae.set(t,e,n)}}),de||(ae={set:function(t,e,n){var i=t.getAttributeNode(n);return i||t.setAttributeNode(i=t.ownerDocument.createAttribute(n)),i.value=e+="","value"===n||e===t.getAttribute(n)?e:void 0}},ce.id=ce.name=ce.coords=function(t,e,n){var i;return n?void 0:(i=t.getAttributeNode(e))&&""!==i.value?i.value:null},p.valHooks.button={get:function(t,e){var n=t.getAttributeNode(e);return n&&n.specified?n.value:void 0},set:ae.set},p.attrHooks.contenteditable={set:function(t,e,n){ae.set(t,""!==e&&e,n)}},p.each(["width","height"],function(t,e){p.attrHooks[e]={set:function(t,n){return""===n?(t.setAttribute(e,"auto"),n):void 0}}})),u.style||(p.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}});var he=/^(?:input|select|textarea|button|object)$/i,fe=/^(?:a|area)$/i;p.fn.extend({prop:function(t,e){return U(this,p.prop,t,e,arguments.length>1)},removeProp:function(t){return t=p.propFix[t]||t,this.each(function(){try{this[t]=void 0,delete this[t]}catch(t){}})}}),p.extend({propFix:{for:"htmlFor",class:"className"},prop:function(t,e,n){var i,o,r=t.nodeType;if(t&&3!==r&&8!==r&&2!==r)return(1!==r||!p.isXMLDoc(t))&&(e=p.propFix[e]||e,o=p.propHooks[e]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:t[e]=n:o&&"get"in o&&null!==(i=o.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=p.find.attr(t,"tabindex");return e?parseInt(e,10):he.test(t.nodeName)||fe.test(t.nodeName)&&t.href?0:-1}}}}),u.hrefNormalized||p.each(["href","src"],function(t,e){p.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),u.optSelected||(p.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}}),p.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){p.propFix[this.toLowerCase()]=this}),u.enctype||(p.propFix.enctype="encoding");var me=/[\t\r\n\f]/g;p.fn.extend({addClass:function(t){var e,n,i,o,r,s,a=0,l=this.length,c="string"==typeof t&&t;if(p.isFunction(t))return this.each(function(e){p(this).addClass(t.call(this,e,this.className))});if(c)for(e=(t||"").match(L)||[];l>a;a++)if(i=1===(n=this[a]).nodeType&&(n.className?(" "+n.className+" ").replace(me," "):" ")){for(r=0;o=e[r++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");s=p.trim(i),n.className!==s&&(n.className=s)}return this},removeClass:function(t){var e,n,i,o,r,s,a=0,l=this.length,c=0===arguments.length||"string"==typeof t&&t;if(p.isFunction(t))return this.each(function(e){p(this).removeClass(t.call(this,e,this.className))});if(c)for(e=(t||"").match(L)||[];l>a;a++)if(i=1===(n=this[a]).nodeType&&(n.className?(" "+n.className+" ").replace(me," "):"")){for(r=0;o=e[r++];)for(;i.indexOf(" "+o+" ")>=0;)i=i.replace(" "+o+" "," ");s=t?p.trim(i):"",n.className!==s&&(n.className=s)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):this.each(p.isFunction(t)?function(n){p(this).toggleClass(t.call(this,n,this.className,e),e)}:function(){if("string"===n)for(var e,i=0,o=p(this),r=t.match(L)||[];e=r[i++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else(n===O||"boolean"===n)&&(this.className&&p._data(this,"__className__",this.className),this.className=this.className||!1===t?"":p._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,i=this.length;i>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(me," ").indexOf(e)>=0)return!0;return!1}}),p.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(t,e){p.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),p.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var ge=p.now(),ve=/\?/,ye=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;p.parseJSON=function(e){if(t.JSON&&t.JSON.parse)return t.JSON.parse(e+"");var n,i=null,o=p.trim(e+"");return o&&!p.trim(o.replace(ye,function(t,e,o,r){return n&&e&&(i=0),0===i?t:(n=o||e,i+=!r-!o,"")}))?Function("return "+o)():p.error("Invalid JSON: "+e)},p.parseXML=function(e){var n;if(!e||"string"!=typeof e)return null;try{t.DOMParser?n=(new DOMParser).parseFromString(e,"text/xml"):((n=new ActiveXObject("Microsoft.XMLDOM")).async="false",n.loadXML(e))}catch(t){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||p.error("Invalid XML: "+e),n};var be,xe,we=/#.*$/,Ce=/([?&])_=[^&]*/,Te=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ee=/^(?:GET|HEAD)$/,ke=/^\/\//,Se=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,$e={},Ae={},Ne="*/".concat("*");try{xe=location.href}catch(t){(xe=E.createElement("a")).href="",xe=xe.href}function Le(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,o=0,r=e.toLowerCase().match(L)||[];if(p.isFunction(n))for(;i=r[o++];)"+"===i.charAt(0)?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function De(t,e,n,i){var o={},r=t===Ae;function s(a){var l;return o[a]=!0,p.each(t[a]||[],function(t,a){var c=a(e,n,i);return"string"!=typeof c||r||o[c]?r?!(l=c):void 0:(e.dataTypes.unshift(c),s(c),!1)}),l}return s(e.dataTypes[0])||!o["*"]&&s("*")}function Ie(t,e){var n,i,o=p.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((o[i]?t:n||(n={}))[i]=e[i]);return n&&p.extend(!0,t,n),t}be=Se.exec(xe.toLowerCase())||[],p.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xe,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(be[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ne,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":p.parseJSON,"text xml":p.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ie(Ie(t,p.ajaxSettings),e):Ie(p.ajaxSettings,t)},ajaxPrefilter:Le($e),ajaxTransport:Le(Ae),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,i,o,r,s,a,l,c,u=p.ajaxSetup({},e),d=u.context||u,h=u.context&&(d.nodeType||d.jquery)?p(d):p.event,f=p.Deferred(),m=p.Callbacks("once memory"),g=u.statusCode||{},v={},y={},b=0,x="canceled",w={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!c)for(c={};e=Te.exec(r);)c[e[1].toLowerCase()]=e[2];e=c[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?r:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return b||(t=y[n]=y[n]||t,v[t]=e),this},overrideMimeType:function(t){return b||(u.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>b)for(e in t)g[e]=[g[e],t[e]];else w.always(t[w.status]);return this},abort:function(t){var e=t||x;return l&&l.abort(e),C(0,e),this}};if(f.promise(w).complete=m.add,w.success=w.done,w.error=w.fail,u.url=((t||u.url||xe)+"").replace(we,"").replace(ke,be[1]+"//"),u.type=e.method||e.type||u.method||u.type,u.dataTypes=p.trim(u.dataType||"*").toLowerCase().match(L)||[""],null==u.crossDomain&&(n=Se.exec(u.url.toLowerCase()),u.crossDomain=!(!n||n[1]===be[1]&&n[2]===be[2]&&(n[3]||("http:"===n[1]?"80":"443"))===(be[3]||("http:"===be[1]?"80":"443")))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=p.param(u.data,u.traditional)),De($e,u,e,w),2===b)return w;for(i in(a=p.event&&u.global)&&0==p.active++&&p.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!Ee.test(u.type),o=u.url,u.hasContent||(u.data&&(o=u.url+=(ve.test(o)?"&":"?")+u.data,delete u.data),!1===u.cache&&(u.url=Ce.test(o)?o.replace(Ce,"$1_="+ge++):o+(ve.test(o)?"&":"?")+"_="+ge++)),u.ifModified&&(p.lastModified[o]&&w.setRequestHeader("If-Modified-Since",p.lastModified[o]),p.etag[o]&&w.setRequestHeader("If-None-Match",p.etag[o])),(u.data&&u.hasContent&&!1!==u.contentType||e.contentType)&&w.setRequestHeader("Content-Type",u.contentType),w.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+Ne+"; q=0.01":""):u.accepts["*"]),u.headers)w.setRequestHeader(i,u.headers[i]);if(u.beforeSend&&(!1===u.beforeSend.call(d,w,u)||2===b))return w.abort();for(i in x="abort",{success:1,error:1,complete:1})w[i](u[i]);if(l=De(Ae,u,e,w)){w.readyState=1,a&&h.trigger("ajaxSend",[w,u]),u.async&&u.timeout>0&&(s=setTimeout(function(){w.abort("timeout")},u.timeout));try{b=1,l.send(v,C)}catch(t){if(!(2>b))throw t;C(-1,t)}}else C(-1,"No Transport");function C(t,e,n,i){var c,v,y,x,C,T=e;2!==b&&(b=2,s&&clearTimeout(s),l=void 0,r=i||"",w.readyState=t>0?4:0,c=t>=200&&300>t||304===t,n&&(x=function(t,e,n){for(var i,o,r,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===o&&(o=t.mimeType||e.getResponseHeader("Content-Type"));if(o)for(s in a)if(a[s]&&a[s].test(o)){l.unshift(s);break}if(l[0]in n)r=l[0];else{for(s in n){if(!l[0]||t.converters[s+" "+l[0]]){r=s;break}i||(i=s)}r=r||i}return r?(r!==l[0]&&l.unshift(r),n[r]):void 0}(u,w,n)),x=function(t,e,n,i){var o,r,s,a,l,c={},u=t.dataTypes.slice();if(u[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(r=u.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=c[l+" "+r]||c["* "+r]))for(o in c)if((a=o.split(" "))[1]===r&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[o]:!0!==c[o]&&(r=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}(u,x,w,c),c?(u.ifModified&&((C=w.getResponseHeader("Last-Modified"))&&(p.lastModified[o]=C),(C=w.getResponseHeader("etag"))&&(p.etag[o]=C)),204===t||"HEAD"===u.type?T="nocontent":304===t?T="notmodified":(T=x.state,v=x.data,c=!(y=x.error))):(y=T,(t||!T)&&(T="error",0>t&&(t=0))),w.status=t,w.statusText=(e||T)+"",c?f.resolveWith(d,[v,T,w]):f.rejectWith(d,[w,T,y]),w.statusCode(g),g=void 0,a&&h.trigger(c?"ajaxSuccess":"ajaxError",[w,u,c?v:y]),m.fireWith(d,[w,T]),a&&(h.trigger("ajaxComplete",[w,u]),--p.active||p.event.trigger("ajaxStop")))}return w},getJSON:function(t,e,n){return p.get(t,e,n,"json")},getScript:function(t,e){return p.get(t,void 0,e,"script")}}),p.each(["get","post"],function(t,e){p[e]=function(t,n,i,o){return p.isFunction(n)&&(o=o||i,i=n,n=void 0),p.ajax({url:t,type:e,dataType:o,data:n,success:i})}}),p._evalUrl=function(t){return p.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},p.fn.extend({wrapAll:function(t){if(p.isFunction(t))return this.each(function(e){p(this).wrapAll(t.call(this,e))});if(this[0]){var e=p(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return this.each(p.isFunction(t)?function(e){p(this).wrapInner(t.call(this,e))}:function(){var e=p(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=p.isFunction(t);return this.each(function(n){p(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){p.nodeName(this,"body")||p(this).replaceWith(this.childNodes)}).end()}}),p.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0||!u.reliableHiddenOffsets()&&"none"===(t.style&&t.style.display||p.css(t,"display"))},p.expr.filters.visible=function(t){return!p.expr.filters.hidden(t)};var _e=/%20/g,je=/\[\]$/,Oe=/\r?\n/g,Be=/^(?:submit|button|image|reset|file)$/i,Pe=/^(?:input|select|textarea|keygen)/i;function Fe(t,e,n,i){var o;if(p.isArray(e))p.each(e,function(e,o){n||je.test(t)?i(t,o):Fe(t+"["+("object"==typeof o?e:"")+"]",o,n,i)});else if(n||"object"!==p.type(e))i(t,e);else for(o in e)Fe(t+"["+o+"]",e[o],n,i)}p.param=function(t,e){var n,i=[],o=function(t,e){e=p.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=p.ajaxSettings&&p.ajaxSettings.traditional),p.isArray(t)||t.jquery&&!p.isPlainObject(t))p.each(t,function(){o(this.name,this.value)});else for(n in t)Fe(n,t[n],e,o);return i.join("&").replace(_e,"+")},p.fn.extend({serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=p.prop(this,"elements");return t?p.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!p(this).is(":disabled")&&Pe.test(this.nodeName)&&!Be.test(t)&&(this.checked||!V.test(t))}).map(function(t,e){var n=p(this).val();return null==n?null:p.isArray(n)?p.map(n,function(t){return{name:e.name,value:t.replace(Oe,"\r\n")}}):{name:e.name,value:n.replace(Oe,"\r\n")}}).get()}}),p.ajaxSettings.xhr=void 0!==t.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&qe()||function(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}()}:qe;var He=0,Re={},Me=p.ajaxSettings.xhr();function qe(){try{return new t.XMLHttpRequest}catch(t){}}t.attachEvent&&t.attachEvent("onunload",function(){for(var t in Re)Re[t](void 0,!0)}),u.cors=!!Me&&"withCredentials"in Me,(Me=u.ajax=!!Me)&&p.ajaxTransport(function(t){var e;if(!t.crossDomain||u.cors)return{send:function(n,i){var o,r=t.xhr(),s=++He;if(r.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)r[o]=t.xhrFields[o];for(o in t.mimeType&&r.overrideMimeType&&r.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)void 0!==n[o]&&r.setRequestHeader(o,n[o]+"");r.send(t.hasContent&&t.data||null),e=function(n,o){var a,l,c;if(e&&(o||4===r.readyState))if(delete Re[s],e=void 0,r.onreadystatechange=p.noop,o)4!==r.readyState&&r.abort();else{c={},a=r.status,"string"==typeof r.responseText&&(c.text=r.responseText);try{l=r.statusText}catch(t){l=""}a||!t.isLocal||t.crossDomain?1223===a&&(a=204):a=c.text?200:404}c&&i(a,l,c,r.getAllResponseHeaders())},t.async?4===r.readyState?setTimeout(e):r.onreadystatechange=Re[s]=e:e()},abort:function(){e&&e(void 0,!0)}}}),p.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return p.globalEval(t),t}}}),p.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),p.ajaxTransport("script",function(t){if(t.crossDomain){var e,n=E.head||p("head")[0]||E.documentElement;return{send:function(i,o){(e=E.createElement("script")).async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,n){(n||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,n||o(200,"success"))},n.insertBefore(e,n.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}});var ze=[],We=/(=)\?(?=&|$)|\?\?/;p.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=ze.pop()||p.expando+"_"+ge++;return this[t]=!0,t}}),p.ajaxPrefilter("json jsonp",function(e,n,i){var o,r,s,a=!1!==e.jsonp&&(We.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&We.test(e.data)&&"data");return a||"jsonp"===e.dataTypes[0]?(o=e.jsonpCallback=p.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(We,"$1"+o):!1!==e.jsonp&&(e.url+=(ve.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return s||p.error(o+" was not called"),s[0]},e.dataTypes[0]="json",r=t[o],t[o]=function(){s=arguments},i.always(function(){t[o]=r,e[o]&&(e.jsonpCallback=n.jsonpCallback,ze.push(o)),s&&p.isFunction(r)&&r(s[0]),s=r=void 0}),"script"):void 0}),p.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||E;var i=x.exec(t),o=!n&&[];return i?[e.createElement(i[1])]:(i=p.buildFragment([t],e,o),o&&o.length&&p(o).remove(),p.merge([],i.childNodes))};var Ue=p.fn.load;p.fn.load=function(t,e,n){if("string"!=typeof t&&Ue)return Ue.apply(this,arguments);var i,o,r,s=this,a=t.indexOf(" ");return a>=0&&(i=p.trim(t.slice(a,t.length)),t=t.slice(0,a)),p.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),s.length>0&&p.ajax({url:t,type:r,dataType:"html",data:e}).done(function(t){o=arguments,s.html(i?p("<div>").append(p.parseHTML(t)).find(i):t)}).complete(n&&function(t,e){s.each(n,o||[t.responseText,e,t])}),this},p.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){p.fn[e]=function(t){return this.on(e,t)}}),p.expr.filters.animated=function(t){return p.grep(p.timers,function(e){return t===e.elem}).length};var Ve=t.document.documentElement;function Xe(t){return p.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}p.offset={setOffset:function(t,e,n){var i,o,r,s,a,l,c=p.css(t,"position"),u=p(t),d={};"static"===c&&(t.style.position="relative"),a=u.offset(),r=p.css(t,"top"),l=p.css(t,"left"),("absolute"===c||"fixed"===c)&&p.inArray("auto",[r,l])>-1?(s=(i=u.position()).top,o=i.left):(s=parseFloat(r)||0,o=parseFloat(l)||0),p.isFunction(e)&&(e=e.call(t,n,a)),null!=e.top&&(d.top=e.top-a.top+s),null!=e.left&&(d.left=e.left-a.left+o),"using"in e?e.using.call(t,d):u.css(d)}},p.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){p.offset.setOffset(this,t,e)});var e,n,i={top:0,left:0},o=this[0],r=o&&o.ownerDocument;return r?(e=r.documentElement,p.contains(e,o)?(typeof o.getBoundingClientRect!==O&&(i=o.getBoundingClientRect()),n=Xe(r),{top:i.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):i):void 0},position:function(){if(this[0]){var t,e,n={top:0,left:0},i=this[0];return"fixed"===p.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),p.nodeName(t[0],"html")||(n=t.offset()),n.top+=p.css(t[0],"borderTopWidth",!0),n.left+=p.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-p.css(i,"marginTop",!0),left:e.left-n.left-p.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||Ve;t&&!p.nodeName(t,"html")&&"static"===p.css(t,"position");)t=t.offsetParent;return t||Ve})}}),p.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n=/Y/.test(e);p.fn[t]=function(i){return U(this,function(t,i,o){var r=Xe(t);return void 0===o?r?e in r?r[e]:r.document.documentElement[i]:t[i]:void(r?r.scrollTo(n?p(r).scrollLeft():o,n?o:p(r).scrollTop()):t[i]=o)},t,i,arguments.length,null)}}),p.each(["top","left"],function(t,e){p.cssHooks[e]=jt(u.pixelPosition,function(t,n){return n?(n=Lt(t,e),It.test(n)?p(t).position()[e]+"px":n):void 0})}),p.each({Height:"height",Width:"width"},function(t,e){p.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){p.fn[i]=function(i,o){var r=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return U(this,function(e,n,i){var o;return p.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?p.css(e,n,s):p.style(e,n,i,s)},e,r?i:void 0,r,null)}})}),p.fn.size=function(){return this.length},p.fn.andSelf=p.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return p});var Qe=t.jQuery,Ke=t.$;return p.noConflict=function(e){return t.$===p&&(t.$=Ke),e&&t.jQuery===p&&(t.jQuery=Qe),p},typeof e===O&&(t.jQuery=t.$=p),p}),function(t,e){"use strict";function n(n,i,r,a,l){function c(){T=t.devicePixelRatio>1,r=u(r),i.delay>=0&&setTimeout(function(){d(!0)},i.delay),(i.delay<0||i.combined)&&(a.e=function(t,e){var o,r=0;return function(s,a){function l(){r=+new Date,e.call(n,s)}var c=+new Date-r;o&&clearTimeout(o),c>t||!i.enableThrottle||a?l():o=setTimeout(l,t-c)}}(i.throttle,function(t){"resize"===t.type&&(w=C=-1),d(t.all)}),a.a=function(t){t=u(t),r.push.apply(r,t)},a.g=function(){return r=o(r).filter(function(){return!o(this).data(i.loadedName)})},a.f=function(t){for(var e=0;e<t.length;e++){var n=r.filter(function(){return this===t[e]});n.length&&d(!1,n)}},d(),o(i.appendScroll).on("scroll."+l+" resize."+l,a.e))}function u(t){for(var r=i.defaultImage,s=i.placeholder,a=i.imageBase,l=i.srcsetAttribute,c=i.loaderAttribute,u=i._f||{},d=0,p=(t=o(t).filter(function(){var t=o(this),n=g(this);return!t.data(i.handledName)&&(t.attr(i.attribute)||t.attr(l)||t.attr(c)||u[n]!==e)}).data("plugin_"+i.name,n)).length;d<p;d++){var h=o(t[d]),f=g(t[d]),m=h.attr(i.imageBaseAttribute)||a;f===$&&m&&h.attr(l)&&h.attr(l,v(h.attr(l),m)),u[f]===e||h.attr(c)||h.attr(c,u[f]),f===$&&r&&!h.attr(A)?h.attr(A,r):f===$||!s||h.css(D)&&"none"!==h.css(D)||h.css(D,"url('"+s+"')")}return t}function d(t,e){if(r.length){for(var s=e||r,a=!1,l=i.imageBase||"",c=i.srcsetAttribute,u=i.handledName,d=0;d<s.length;d++)if(t||e||h(s[d])){var f=o(s[d]),m=g(s[d]),v=f.attr(i.attribute),y=f.attr(i.imageBaseAttribute)||l,b=f.attr(i.loaderAttribute);f.data(u)||i.visibleOnly&&!f.is(":visible")||!((v||f.attr(c))&&(m===$&&(y+v!==f.attr(A)||f.attr(c)!==f.attr(N))||m!==$&&y+v!==f.css(D))||b)||(a=!0,f.data(u,!0),p(f,m,y,b))}a&&(r=o(r).filter(function(){return!o(this).data(u)}))}else i.autoDestroy&&n.destroy()}function p(t,e,n,r){++x;var s=function(){b("onError",t),y(),s=o.noop};b("beforeLoad",t);var a=i.attribute,l=i.srcsetAttribute,c=i.sizesAttribute,u=i.retinaAttribute,d=i.removeAttribute,p=i.loadedName,h=t.attr(u);if(r){var f=function(){d&&t.removeAttr(i.loaderAttribute),t.data(p,!0),b(E,t),setTimeout(y,1),f=o.noop};t.off(S).one(S,s).one(k,f),b(r,t,function(e){e?(t.off(k),f()):(t.off(S),s())})||t.trigger(S)}else{var m=o(new Image);m.one(S,s).one(k,function(){t.hide(),e===$?t.attr(L,m.attr(L)).attr(N,m.attr(N)).attr(A,m.attr(A)):t.css(D,"url('"+m.attr(A)+"')"),t[i.effect](i.effectTime),d&&(t.removeAttr(a+" "+l+" "+u+" "+i.imageBaseAttribute),c!==L&&t.removeAttr(c)),t.data(p,!0),b(E,t),m.remove(),y()});var g=(T&&h?h:t.attr(a))||"";m.attr(L,t.attr(c)).attr(N,t.attr(l)).attr(A,g?n+g:null),m.complete&&m.trigger(k)}}function h(t){var e=t.getBoundingClientRect(),n=i.scrollDirection,o=i.threshold,r=m()+o>e.top&&-o<e.bottom,s=f()+o>e.left&&-o<e.right;return"vertical"===n?r:"horizontal"===n?s:r&&s}function f(){return w>=0?w:w=o(t).width()}function m(){return C>=0?C:C=o(t).height()}function g(t){return t.tagName.toLowerCase()}function v(t,e){if(e){var n=t.split(",");t="";for(var i=0,o=n.length;i<o;i++)t+=e+n[i].trim()+(i!==o-1?",":"")}return t}function y(){--x,r.length||x||b("onFinishedAll")}function b(t,e,o){return!!(t=i[t])&&(t.apply(n,[].slice.call(arguments,1)),!0)}var x=0,w=-1,C=-1,T=!1,E="afterLoad",k="load",S="error",$="img",A="src",N="srcset",L="sizes",D="background-image";"event"===i.bind||s?c():o(t).on(k+"."+l,c)}function i(i,s){var a=this,l=o.extend({},a.config,s),c={},u=l.name+"-"+ ++r;return a.config=function(t,n){return n===e?l[t]:(l[t]=n,a)},a.addItems=function(t){return c.a&&c.a("string"===o.type(t)?o(t):t),a},a.getItems=function(){return c.g?c.g():{}},a.update=function(t){return c.e&&c.e({},!t),a},a.force=function(t){return c.f&&c.f("string"===o.type(t)?o(t):t),a},a.loadAll=function(){return c.e&&c.e({all:!0},!0),a},a.destroy=function(){return o(l.appendScroll).off("."+u,c.e),o(t).off("."+u),c={},e},n(a,l,i,c,u),l.chainable?i:a}var o=t.jQuery||t.Zepto,r=0,s=!1;o.fn.Lazy=o.fn.lazy=function(t){return new i(this,t)},o.Lazy=o.lazy=function(t,n,r){if(o.isFunction(n)&&(r=n,n=[]),o.isFunction(r)){t=o.isArray(t)?t:[t],n=o.isArray(n)?n:[n];for(var s=i.prototype.config,a=s._f||(s._f={}),l=0,c=t.length;l<c;l++)(s[t[l]]===e||o.isFunction(s[t[l]]))&&(s[t[l]]=r);for(var u=0,d=n.length;u<d;u++)a[n[u]]=t[0]}},i.prototype.config={name:"lazy",chainable:!0,autoDestroy:!0,bind:"load",threshold:500,visibleOnly:!1,appendScroll:t,scrollDirection:"both",imageBase:null,defaultImage:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",placeholder:null,delay:-1,combined:!1,attribute:"data-src",srcsetAttribute:"data-srcset",sizesAttribute:"data-sizes",retinaAttribute:"data-retina",loaderAttribute:"data-loader",imageBaseAttribute:"data-imagebase",removeAttribute:!0,handledName:"handled",loadedName:"loaded",effect:"show",effectTime:0,enableThrottle:!0,throttle:250,beforeLoad:e,afterLoad:e,onError:e,onFinishedAll:e},o(t).on("load",function(){s=!0})}(window);var all_reviews_arr=["Its great to work","service is very good","amazing work they do","the service is damn awesome","they make awesome site","the provide brilliant services"],bkExtend=function(){var t=arguments;for(var e in 1==t.length&&(t=[this,t[0]]),t[1])t[0][e]=t[1][e];return t[0]};function bkClass(){}bkClass.prototype.construct=function(){},bkClass.extend=function(t){var e=function(){if(arguments[0]!==bkClass)return this.construct.apply(this,arguments)},n=new this(bkClass);return bkExtend(n,t),e.prototype=n,e.extend=this.extend,e};var bkElement=bkClass.extend({construct:function(t,e){return"string"==typeof t&&(t=(e||document).createElement(t)),t=$BK(t)},appendTo:function(t){return t.appendChild(this),this},appendBefore:function(t){return t.parentNode.insertBefore(this,t),this},addEvent:function(t,e){return bkLib.addEvent(this,t,e),this},setContent:function(t){return this.innerHTML=t,this},pos:function(){var t=curtop=0;obj=this;if(obj.offsetParent)do{t+=obj.offsetLeft,curtop+=obj.offsetTop}while(obj=obj.offsetParent);var e=window.opera?0:parseInt(this.getStyle("border-width")||this.style.border)||0;return[t+e,curtop+e+this.offsetHeight]},noSelect:function(){return bkLib.noSelect(this),this},parentTag:function(t){var e=this;do{if(e&&e.nodeName&&e.nodeName.toUpperCase()==t)return e;e=e.parentNode}while(e);return!1},hasClass:function(t){return this.className.match(new RegExp("(\\s|^)nicEdit-"+t+"(\\s|$)"))},addClass:function(t){return this.hasClass(t)||(this.className+=" nicEdit-"+t),this},removeClass:function(t){return this.hasClass(t)&&(this.className=this.className.replace(new RegExp("(\\s|^)nicEdit-"+t+"(\\s|$)")," ")),this},setStyle:function(t){var e=this.style;for(var n in t)switch(n){case"float":e.cssFloat=e.styleFloat=t[n];break;case"opacity":e.opacity=t[n],e.filter="alpha(opacity="+Math.round(100*t[n])+")";break;case"className":this.className=t[n];break;default:e[n]=t[n]}return this},getStyle:function(t,e){var n=e||document.defaultView;if(1==this.nodeType)return n&&n.getComputedStyle?n.getComputedStyle(this,null).getPropertyValue(t):this.currentStyle[bkLib.camelize(t)]},remove:function(){return this.parentNode.removeChild(this),this},setAttributes:function(t){for(var e in t)this[e]=t[e];return this}}),bkLib={isMSIE:-1!=navigator.appVersion.indexOf("MSIE"),addEvent:function(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},toArray:function(t){for(var e=t.length,n=new Array(e);e--;)n[e]=t[e];return n},noSelect:function(t){t.setAttribute&&"input"!=t.nodeName.toLowerCase()&&"textarea"!=t.nodeName.toLowerCase()&&t.setAttribute("unselectable","on");for(var e=0;e<t.childNodes.length;e++)bkLib.noSelect(t.childNodes[e])},camelize:function(t){return t.replace(/\-(.)/g,function(t,e){return e.toUpperCase()})},inArray:function(t,e){return null!=bkLib.search(t,e)},search:function(t,e){for(var n=0;n<t.length;n++)if(t[n]==e)return n;return null},cancelEvent:function(t){return(t=t||window.event).preventDefault&&t.stopPropagation&&(t.preventDefault(),t.stopPropagation()),!1},domLoad:[],domLoaded:function(){if(!arguments.callee.done)for(arguments.callee.done=!0,i=0;i<bkLib.domLoad.length;i++)bkLib.domLoad[i]()},onDomLoaded:function(t){this.domLoad.push(t),document.addEventListener?document.addEventListener("DOMContentLoaded",bkLib.domLoaded,null):bkLib.isMSIE&&(document.write("<style>.nicEdit-main p { margin: 0; }</style><script id=__ie_onload defer "+("https:"==location.protocol?"src='javascript:void(0)'":"src=//0")+"><\/script>"),$BK("__ie_onload").onreadystatechange=function(){"complete"==this.readyState&&bkLib.domLoaded()}),window.onload=bkLib.domLoaded}};function $BK(t){return"string"==typeof t&&(t=document.getElementById(t)),t&&!t.appendTo?bkExtend(t,bkElement.prototype):t}var bkEvent={addEvent:function(t,e){return e&&(this.eventList=this.eventList||{},this.eventList[t]=this.eventList[t]||[],this.eventList[t].push(e)),this},fireEvent:function(){var t=bkLib.toArray(arguments),e=t.shift();if(this.eventList&&this.eventList[e])for(var n=0;n<this.eventList[e].length;n++)this.eventList[e][n].apply(this,t)}};function __(t){return t}Function.prototype.closure=function(){var t=this,e=bkLib.toArray(arguments),n=e.shift();return function(){if(void 0!==bkLib)return t.apply(n,e.concat(bkLib.toArray(arguments)))}},Function.prototype.closureListener=function(){var t=this,e=bkLib.toArray(arguments),n=e.shift();return function(i){if((i=i||window.event).target)var o=i.target;else o=i.srcElement;return t.apply(n,[i,o].concat(e))}};var nicEditorConfig=bkClass.extend({buttons:{bold:{name:__("Click to Bold"),command:"Bold",tags:["B","STRONG"],css:{"font-weight":"bold"},key:"b"},italic:{name:__("Click to Italic"),command:"Italic",tags:["EM","I"],css:{"font-style":"italic"},key:"i"},underline:{name:__("Click to Underline"),command:"Underline",tags:["U"],css:{"text-decoration":"underline"},key:"u"},left:{name:__("Left Align"),command:"justifyleft",noActive:!0},center:{name:__("Center Align"),command:"justifycenter",noActive:!0},right:{name:__("Right Align"),command:"justifyright",noActive:!0},justify:{name:__("Justify Align"),command:"justifyfull",noActive:!0},ol:{name:__("Insert Ordered List"),command:"insertorderedlist",tags:["OL"]},ul:{name:__("Insert Unordered List"),command:"insertunorderedlist",tags:["UL"]},subscript:{name:__("Click to Subscript"),command:"subscript",tags:["SUB"]},superscript:{name:__("Click to Superscript"),command:"superscript",tags:["SUP"]},strikethrough:{name:__("Click to Strike Through"),command:"strikeThrough",css:{"text-decoration":"line-through"}},removeformat:{name:__("Remove Formatting"),command:"removeformat",noActive:!0},indent:{name:__("Indent Text"),command:"indent",noActive:!0},outdent:{name:__("Remove Indent"),command:"outdent",noActive:!0},hr:{name:__("Horizontal Rule"),command:"insertHorizontalRule",noActive:!0}},iconsPath:"/assets/public/images/nicEditorIcons.gif",buttonList:["save","bold","italic","underline","left","center","right","justify","ol","ul","fontSize","fontFamily","fontFormat","indent","outdent","image","upload","link","unlink","forecolor","bgcolor"],iconList:{bgcolor:1,forecolor:2,bold:3,center:4,hr:5,indent:6,italic:7,justify:8,left:9,ol:10,outdent:11,removeformat:12,right:13,save:24,strikethrough:15,subscript:16,superscript:17,ul:18,underline:19,image:20,link:21,unlink:22,close:23,arrow:25}}),nicEditors={nicPlugins:[],editors:[],registerPlugin:function(t,e){this.nicPlugins.push({p:t,o:e})},allTextAreas:function(t){for(var e=document.getElementsByTagName("textarea"),n=0;n<e.length;n++)nicEditors.editors.push(new nicEditor(t).panelInstance(e[n]));return nicEditors.editors},findEditor:function(t){for(var e=nicEditors.editors,n=0;n<e.length;n++)if(e[n].instanceById(t))return e[n].instanceById(t)}},nicEditor=bkClass.extend({construct:function(t){this.options=new nicEditorConfig,bkExtend(this.options,t),this.nicInstances=new Array,this.loadedPlugins=new Array;for(var e=nicEditors.nicPlugins,n=0;n<e.length;n++)this.loadedPlugins.push(new e[n].p(this,e[n].o));nicEditors.editors.push(this),bkLib.addEvent(document.body,"mousedown",this.selectCheck.closureListener(this))},panelInstance:function(t,e){t=this.checkReplace($BK(t));var n=new bkElement("DIV").setStyle({width:(parseInt(t.getStyle("width"))||t.clientWidth)+"px"}).appendBefore(t);return this.setPanel(n),this.addInstance(t,e)},checkReplace:function(t){var e=nicEditors.findEditor(t);return e&&(e.removeInstance(t),e.removePanel()),t},addInstance:function(t,e){if((t=this.checkReplace($BK(t))).contentEditable||window.opera)var n=new nicEditorInstance(t,e,this);else n=new nicEditorIFrameInstance(t,e,this);return this.nicInstances.push(n),this},removeInstance:function(t){t=$BK(t);for(var e=this.nicInstances,n=0;n<e.length;n++)e[n].e==t&&(e[n].remove(),this.nicInstances.splice(n,1))},removePanel:function(t){this.nicPanel&&(this.nicPanel.remove(),this.nicPanel=null)},instanceById:function(t){t=$BK(t);for(var e=this.nicInstances,n=0;n<e.length;n++)if(e[n].e==t)return e[n]},setPanel:function(t){return this.nicPanel=new nicEditorPanel($BK(t),this.options,this),this.fireEvent("panel",this.nicPanel),this},nicCommand:function(t,e){this.selectedInstance&&this.selectedInstance.nicCommand(t,e)},getIcon:function(t,e){var n=this.options.iconList[t],i=e.iconFiles?e.iconFiles[t]:"";return{backgroundImage:"url('"+(n?this.options.iconsPath:i)+"')",backgroundPosition:(n?-18*(n-1):0)+"px 0px"}},selectCheck:function(t,e){do{if(e.className&&-1!=e.className.indexOf("nicEdit"))return!1}while(e=e.parentNode);return this.fireEvent("blur",this.selectedInstance,e),this.lastSelectedInstance=this.selectedInstance,this.selectedInstance=null,!1}});nicEditor=nicEditor.extend(bkEvent);var nicEditorInstance=bkClass.extend({isSelected:!1,construct:function(t,e,n){this.ne=n,this.elm=this.e=t,this.options=e||{},newX=parseInt(t.getStyle("width"))||t.clientWidth,newY=parseInt(t.getStyle("height"))||t.clientHeight,this.initialHeight=newY-8;var i="textarea"==t.nodeName.toLowerCase();if(i||this.options.hasPanel){var o=bkLib.isMSIE&&!(void 0!==document.body.style.maxHeight&&"CSS1Compat"==document.compatMode),r={width:newX+"px",border:"1px solid #ccc",borderTop:0,overflowY:"auto",overflowX:"hidden"};r[o?"height":"maxHeight"]=this.ne.options.maxHeight?this.ne.options.maxHeight+"px":null,this.editorContain=new bkElement("DIV").setStyle(r).appendBefore(t);var s=new bkElement("DIV").setStyle({width:newX-8+"px",margin:"4px",minHeight:newY+"px"}).addClass("main").appendTo(this.editorContain);if(t.setStyle({display:"none"}),s.innerHTML=t.innerHTML,i){s.setContent(t.value),this.copyElm=t;var a=t.parentTag("FORM");a&&bkLib.addEvent(a,"submit",this.saveContent.closure(this))}s.setStyle(o?{height:newY+"px"}:{overflow:"hidden"}),this.elm=s}this.ne.addEvent("blur",this.blur.closure(this)),this.init(),this.blur()},init:function(){this.elm.setAttribute("contentEditable","true"),""==this.getContent()&&this.setContent("<br />"),this.instanceDoc=document.defaultView,this.elm.addEvent("mousedown",this.selected.closureListener(this)).addEvent("keypress",this.keyDown.closureListener(this)).addEvent("focus",this.selected.closure(this)).addEvent("blur",this.blur.closure(this)).addEvent("keyup",this.selected.closure(this)),this.ne.fireEvent("add",this)},remove:function(){this.saveContent(),(this.copyElm||this.options.hasPanel)&&(this.editorContain.remove(),this.e.setStyle({display:"block"}),this.ne.removePanel()),this.disable(),this.ne.fireEvent("remove",this)},disable:function(){this.elm.setAttribute("contentEditable","false")},getSel:function(){return window.getSelection?window.getSelection():document.selection},getRng:function(){var t=this.getSel();if(t&&0!==t.rangeCount)return t.rangeCount>0?t.getRangeAt(0):t.createRange()},selRng:function(t,e){window.getSelection?(e.removeAllRanges(),e.addRange(t)):t.select()},selElm:function(){var t=this.getRng();if(t){if(t.startContainer){var e=t.startContainer;if(1==t.cloneContents().childNodes.length)for(var n=0;n<e.childNodes.length;n++){var i=e.childNodes[n].ownerDocument.createRange();if(i.selectNode(e.childNodes[n]),1!=t.compareBoundaryPoints(Range.START_TO_START,i)&&-1!=t.compareBoundaryPoints(Range.END_TO_END,i))return $BK(e.childNodes[n])}return $BK(e)}return $BK("Control"==this.getSel().type?t.item(0):t.parentElement())}},saveRng:function(){this.savedRange=this.getRng(),this.savedSel=this.getSel()},restoreRng:function(){this.savedRange&&this.selRng(this.savedRange,this.savedSel)},keyDown:function(t,e){t.ctrlKey&&this.ne.fireEvent("key",this,t)},selected:function(t,e){if(e||(e=this.selElm)||(e=this.selElm()),!t.ctrlKey){var n=this.ne.selectedInstance;n!=this&&(n&&this.ne.fireEvent("blur",n,e),this.ne.selectedInstance=this,this.ne.fireEvent("focus",n,e)),this.ne.fireEvent("selected",n,e),this.isFocused=!0,this.elm.addClass("selected")}return!1},blur:function(){this.isFocused=!1,this.elm.removeClass("selected")},saveContent:function(){(this.copyElm||this.options.hasPanel)&&(this.ne.fireEvent("save",this),this.copyElm?this.copyElm.value=this.getContent():this.e.innerHTML=this.getContent())},getElm:function(){return this.elm},getContent:function(){return this.content=this.getElm().innerHTML,this.ne.fireEvent("get",this),this.content},setContent:function(t){this.content=t,this.ne.fireEvent("set",this),this.elm.innerHTML=this.content},nicCommand:function(t,e){document.execCommand(t,!1,e)}}),nicEditorIFrameInstance=nicEditorInstance.extend({savedStyles:[],init:function(){var t=this.elm.innerHTML.replace(/^\s+|\s+$/g,"");this.elm.innerHTML="",t||(t="<br />"),this.initialContent=t,this.elmFrame=new bkElement("iframe").setAttributes({src:"javascript:;",frameBorder:0,allowTransparency:"true",scrolling:"no"}).setStyle({height:"100px",width:"100%"}).addClass("frame").appendTo(this.elm),this.copyElm&&this.elmFrame.setStyle({width:this.elm.offsetWidth-4+"px"});for(itm in["font-size","font-family","font-weight","color"])this.savedStyles[bkLib.camelize(itm)]=this.elm.getStyle(itm);setTimeout(this.initFrame.closure(this),50)},disable:function(){this.elm.innerHTML=this.getContent()},initFrame:function(){var t=$BK(this.elmFrame.contentWindow.document);t.designMode="on",t.open();var e=this.ne.options.externalCSS;t.write("<html><head>"+(e?'<link href="'+e+'" rel="stylesheet" type="text/css" />':"")+'</head><body id="nicEditContent" style="margin: 0 !important; background-color: transparent !important;">'+this.initialContent+"</body></html>"),t.close(),this.frameDoc=t,this.frameWin=$BK(this.elmFrame.contentWindow),this.frameContent=$BK(this.frameWin.document.body).setStyle(this.savedStyles),this.instanceDoc=this.frameWin.document.defaultView,this.heightUpdate(),this.frameDoc.addEvent("mousedown",this.selected.closureListener(this)).addEvent("keyup",this.heightUpdate.closureListener(this)).addEvent("keydown",this.keyDown.closureListener(this)).addEvent("keyup",this.selected.closure(this)),this.ne.fireEvent("add",this)},getElm:function(){return this.frameContent},setContent:function(t){this.content=t,this.ne.fireEvent("set",this),this.frameContent.innerHTML=this.content,this.heightUpdate()},getSel:function(){return this.frameWin?this.frameWin.getSelection():this.frameDoc.selection},heightUpdate:function(){this.elmFrame.style.height=Math.max(this.frameContent.offsetHeight,this.initialHeight)+"px"},nicCommand:function(t,e){this.frameDoc.execCommand(t,!1,e),setTimeout(this.heightUpdate.closure(this),100)}}),nicEditorPanel=bkClass.extend({construct:function(t,e,n){this.elm=t,this.options=e,this.ne=n,this.panelButtons=new Array,this.buttonList=bkExtend([],this.ne.options.buttonList),this.panelContain=new bkElement("DIV").setStyle({overflow:"hidden",width:"100%",border:"1px solid #cccccc",backgroundColor:"#efefef"}).addClass("panelContain"),this.panelElm=new bkElement("DIV").setStyle({margin:"2px",marginTop:"0px",zoom:1,overflow:"hidden"}).addClass("panel").appendTo(this.panelContain),this.panelContain.appendTo(t);var i=this.ne.options,o=i.buttons;for(button in o)this.addButton(button,i,!0);this.reorder(),t.noSelect()},addButton:function(buttonName,options,noOrder){var button=options.buttons[buttonName],type=button.type?eval("(typeof("+button.type+') == "undefined") ? null : '+button.type+";"):nicEditorButton,hasButton=bkLib.inArray(this.buttonList,buttonName);type&&(hasButton||this.ne.options.fullPanel)&&(this.panelButtons.push(new type(this.panelElm,buttonName,options,this.ne)),hasButton||this.buttonList.push(buttonName))},findButton:function(t){for(var e=0;e<this.panelButtons.length;e++)if(this.panelButtons[e].name==t)return this.panelButtons[e]},reorder:function(){for(var t=this.buttonList,e=0;e<t.length;e++){var n=this.findButton(t[e]);n&&this.panelElm.appendChild(n.margin)}},remove:function(){this.elm.remove()}}),nicEditorButton=bkClass.extend({construct:function(t,e,n,i){this.options=n.buttons[e],this.name=e,this.ne=i,this.elm=t,this.margin=new bkElement("DIV").setStyle({float:"left",marginTop:"2px"}).appendTo(t),this.contain=new bkElement("DIV").setStyle({width:"20px",height:"20px"}).addClass("buttonContain").appendTo(this.margin),this.border=new bkElement("DIV").setStyle({backgroundColor:"#efefef",border:"1px solid #efefef"}).appendTo(this.contain),this.button=new bkElement("DIV").setStyle({width:"18px",height:"18px",overflow:"hidden",zoom:1,cursor:"pointer"}).addClass("button").setStyle(this.ne.getIcon(e,n)).appendTo(this.border),this.button.addEvent("mouseover",this.hoverOn.closure(this)).addEvent("mouseout",this.hoverOff.closure(this)).addEvent("mousedown",this.mouseClick.closure(this)).noSelect(),window.opera||(this.button.onmousedown=this.button.onclick=bkLib.cancelEvent),i.addEvent("selected",this.enable.closure(this)).addEvent("blur",this.disable.closure(this)).addEvent("key",this.key.closure(this)),this.disable(),this.init()},init:function(){},hide:function(){this.contain.setStyle({display:"none"})},updateState:function(){this.isDisabled?this.setBg():this.isHover?this.setBg("hover"):this.isActive?this.setBg("active"):this.setBg()},setBg:function(t){switch(t){case"hover":var e={border:"1px solid #666",backgroundColor:"#ddd"};break;case"active":e={border:"1px solid #666",backgroundColor:"#ccc"};break;default:e={border:"1px solid #efefef",backgroundColor:"#efefef"}}this.border.setStyle(e).addClass("button-"+t)},checkNodes:function(t){var e=t;do{if(this.options.tags&&bkLib.inArray(this.options.tags,e.nodeName))return this.activate(),!0}while(e=e.parentNode&&"nicEdit"!=e.className);for(e=$BK(t);3==e.nodeType;)e=$BK(e.parentNode);if(this.options.css)for(itm in this.options.css)if(e.getStyle(itm,this.ne.selectedInstance.instanceDoc)==this.options.css[itm])return this.activate(),!0;return this.deactivate(),!1},activate:function(){this.isDisabled||(this.isActive=!0,this.updateState(),this.ne.fireEvent("buttonActivate",this))},deactivate:function(){this.isActive=!1,this.updateState(),this.isDisabled||this.ne.fireEvent("buttonDeactivate",this)},enable:function(t,e){this.isDisabled=!1,this.contain.setStyle({opacity:1}).addClass("buttonEnabled"),this.updateState(),this.checkNodes(e)},disable:function(t,e){this.isDisabled=!0,this.contain.setStyle({opacity:.6}).removeClass("buttonEnabled"),this.updateState()},toggleActive:function(){this.isActive?this.deactivate():this.activate()},hoverOn:function(){this.isDisabled||(this.isHover=!0,this.updateState(),this.ne.fireEvent("buttonOver",this))},hoverOff:function(){this.isHover=!1,this.updateState(),this.ne.fireEvent("buttonOut",this)},mouseClick:function(){this.options.command&&(this.ne.nicCommand(this.options.command,this.options.commandArgs),this.options.noActive||this.toggleActive()),this.ne.fireEvent("buttonClick",this)},key:function(t,e){this.options.key&&e.ctrlKey&&String.fromCharCode(e.keyCode||e.charCode).toLowerCase()==this.options.key&&(this.mouseClick(),e.preventDefault&&e.preventDefault())}}),nicPlugin=bkClass.extend({construct:function(t,e){this.options=e,this.ne=t,this.ne.addEvent("panel",this.loadPanel.closure(this)),this.init()},loadPanel:function(t){var e=this.options.buttons;for(var n in e)t.addButton(n,this.options);t.reorder()},init:function(){}}),nicPaneOptions={},nicEditorPane=bkClass.extend({construct:function(t,e,n,i){this.ne=e,this.elm=t,this.pos=t.pos(),this.contain=new bkElement("div").setStyle({zIndex:"99999",overflow:"hidden",position:"absolute",left:this.pos[0]+"px",top:this.pos[1]+"px"}),this.pane=new bkElement("div").setStyle({fontSize:"12px",border:"1px solid #ccc",overflow:"hidden",padding:"4px",textAlign:"left",backgroundColor:"#ffffc9"}).addClass("pane").setStyle(n).appendTo(this.contain),i&&!i.options.noClose&&(this.close=new bkElement("div").setStyle({float:"right",height:"16px",width:"16px",cursor:"pointer"}).setStyle(this.ne.getIcon("close",nicPaneOptions)).addEvent("mousedown",i.removePane.closure(this)).appendTo(this.pane)),this.contain.noSelect().appendTo(document.body),this.position(),this.init()},init:function(){},position:function(){if(this.ne.nicPanel){var t=this.ne.nicPanel.elm,e=t.pos()[0]+parseInt(t.getStyle("width"))-(parseInt(this.pane.getStyle("width"))+8);e<this.pos[0]&&this.contain.setStyle({left:e+"px"})}},toggle:function(){this.isVisible=!this.isVisible,this.contain.setStyle({display:this.isVisible?"block":"none"})},remove:function(){this.contain&&(this.contain.remove(),this.contain=null)},append:function(t){t.appendTo(this.pane)},setContent:function(t){this.pane.setContent(t)}}),nicEditorAdvancedButton=nicEditorButton.extend({init:function(){this.ne.addEvent("selected",this.removePane.closure(this)).addEvent("blur",this.removePane.closure(this))},mouseClick:function(){this.isDisabled||(this.pane&&this.pane.pane?this.removePane():(this.pane=new nicEditorPane(this.contain,this.ne,{width:this.width||"270px",backgroundColor:"#fff"},this),this.addPane(),this.ne.selectedInstance.saveRng()))},addForm:function(t,e){for(itm in this.form=new bkElement("form").addEvent("submit",this.submit.closureListener(this)),this.pane.append(this.form),this.inputs={},t){var n=t[itm],i="";e&&(i=e.getAttribute(itm)),i||(i=n.value||"");var o=t[itm].type;if("title"==o)new bkElement("div").setContent(n.txt).setStyle({fontSize:"14px",fontWeight:"bold",padding:"0px",margin:"2px 0"}).appendTo(this.form);else{var r=new bkElement("div").setStyle({overflow:"hidden",clear:"both"}).appendTo(this.form);switch(n.txt&&new bkElement("label").setAttributes({for:itm}).setContent(n.txt).setStyle({margin:"2px 4px",fontSize:"13px",width:"50px",lineHeight:"20px",textAlign:"right",float:"left"}).appendTo(r),o){case"text":this.inputs[itm]=new bkElement("input").setAttributes({id:itm,value:i,type:"text"}).setStyle({margin:"2px 0",fontSize:"13px",float:"left",height:"20px",border:"1px solid #ccc",overflow:"hidden"}).setStyle(n.style).appendTo(r);break;case"select":for(opt in this.inputs[itm]=new bkElement("select").setAttributes({id:itm}).setStyle({border:"1px solid #ccc",float:"left",margin:"2px 0"}).appendTo(r),n.options)new bkElement("option").setAttributes({value:opt,selected:opt==i?"selected":""}).setContent(n.options[opt]).appendTo(this.inputs[itm]);break;case"content":this.inputs[itm]=new bkElement("textarea").setAttributes({id:itm}).setStyle({border:"1px solid #ccc",float:"left"}).setStyle(n.style).appendTo(r),this.inputs[itm].value=i}}}new bkElement("input").setAttributes({type:"submit"}).setStyle({backgroundColor:"#efefef",border:"1px solid #ccc",margin:"3px 0",float:"left",clear:"both"}).appendTo(this.form),this.form.onsubmit=bkLib.cancelEvent},submit:function(){},findElm:function(t,e,n){for(var i=this.ne.selectedInstance.getElm().getElementsByTagName(t),o=0;o<i.length;o++)if(i[o].getAttribute(e)==n)return $BK(i[o])},removePane:function(){this.pane&&(this.pane.remove(),this.pane=null,this.ne.selectedInstance.restoreRng())}}),nicButtonTips=bkClass.extend({construct:function(t){this.ne=t,t.addEvent("buttonOver",this.show.closure(this)).addEvent("buttonOut",this.hide.closure(this))},show:function(t){this.timer=setTimeout(this.create.closure(this,t),400)},create:function(t){this.timer=null,this.pane||(this.pane=new nicEditorPane(t.button,this.ne,{fontSize:"12px",marginTop:"5px"}),this.pane.setContent(t.options.name))},hide:function(t){this.timer&&clearTimeout(this.timer),this.pane&&(this.pane=this.pane.remove())}});nicEditors.registerPlugin(nicButtonTips);var nicSelectOptions={buttons:{fontSize:{name:__("Select Font Size"),type:"nicEditorFontSizeSelect",command:"fontsize"},fontFamily:{name:__("Select Font Family"),type:"nicEditorFontFamilySelect",command:"fontname"},fontFormat:{name:__("Select Font Format"),type:"nicEditorFontFormatSelect",command:"formatBlock"}}},nicEditorSelect=bkClass.extend({construct:function(t,e,n,i){this.options=n.buttons[e],this.elm=t,this.ne=i,this.name=e,this.selOptions=new Array,this.margin=new bkElement("div").setStyle({float:"left",margin:"2px 1px 0 1px"}).appendTo(this.elm),this.contain=new bkElement("div").setStyle({width:"90px",height:"20px",cursor:"pointer",overflow:"hidden"}).addClass("selectContain").addEvent("click",this.toggle.closure(this)).appendTo(this.margin),this.items=new bkElement("div").setStyle({overflow:"hidden",zoom:1,border:"1px solid #ccc",paddingLeft:"3px",backgroundColor:"#fff"}).appendTo(this.contain),this.control=new bkElement("div").setStyle({overflow:"hidden",float:"right",height:"18px",width:"16px"}).addClass("selectControl").setStyle(this.ne.getIcon("arrow",n)).appendTo(this.items),this.txt=new bkElement("div").setStyle({overflow:"hidden",float:"left",width:"66px",height:"14px",marginTop:"1px",fontFamily:"sans-serif",textAlign:"center",fontSize:"12px"}).addClass("selectTxt").appendTo(this.items),window.opera||(this.contain.onmousedown=this.control.onmousedown=this.txt.onmousedown=bkLib.cancelEvent),this.margin.noSelect(),this.ne.addEvent("selected",this.enable.closure(this)).addEvent("blur",this.disable.closure(this)),this.disable(),this.init()},disable:function(){this.isDisabled=!0,this.close(),this.contain.setStyle({opacity:.6})},enable:function(t){this.isDisabled=!1,this.close(),this.contain.setStyle({opacity:1})},setDisplay:function(t){this.txt.setContent(t)},toggle:function(){this.isDisabled||(this.pane?this.close():this.open())},open:function(){this.pane=new nicEditorPane(this.items,this.ne,{width:"88px",padding:"0px",borderTop:0,borderLeft:"1px solid #ccc",borderRight:"1px solid #ccc",borderBottom:"0px",backgroundColor:"#fff"});for(var t=0;t<this.selOptions.length;t++){var e=this.selOptions[t],n=new bkElement("div").setStyle({overflow:"hidden",borderBottom:"1px solid #ccc",width:"88px",textAlign:"left",overflow:"hidden",cursor:"pointer"}),i=new bkElement("div").setStyle({padding:"0px 4px"}).setContent(e[1]).appendTo(n).noSelect();i.addEvent("click",this.update.closure(this,e[0])).addEvent("mouseover",this.over.closure(this,i)).addEvent("mouseout",this.out.closure(this,i)).setAttributes("id",e[0]),this.pane.append(n),window.opera||(i.onmousedown=bkLib.cancelEvent)}},close:function(){this.pane&&(this.pane=this.pane.remove())},over:function(t){t.setStyle({backgroundColor:"#ccc"})},out:function(t){t.setStyle({backgroundColor:"#fff"})},add:function(t,e){this.selOptions.push(new Array(t,e))},update:function(t){this.ne.nicCommand(this.options.command,t),this.close()}}),nicEditorFontSizeSelect=nicEditorSelect.extend({sel:{1:"1&nbsp;(8pt)",2:"2&nbsp;(10pt)",3:"3&nbsp;(12pt)",4:"4&nbsp;(14pt)",5:"5&nbsp;(18pt)",6:"6&nbsp;(24pt)"},init:function(){for(itm in this.setDisplay("Font&nbsp;Size..."),this.sel)this.add(itm,'<font size="'+itm+'">'+this.sel[itm]+"</font>")}}),nicEditorFontFamilySelect=nicEditorSelect.extend({sel:{arial:"Arial","comic sans ms":"Comic Sans","courier new":"Courier New",georgia:"Georgia",helvetica:"Helvetica",impact:"Impact","times new roman":"Times","trebuchet ms":"Trebuchet",verdana:"Verdana"},init:function(){for(itm in this.setDisplay("Font&nbsp;Family..."),this.sel)this.add(itm,'<font face="'+itm+'">'+this.sel[itm]+"</font>")}}),nicEditorFontFormatSelect=nicEditorSelect.extend({sel:{p:"Paragraph",pre:"Pre",h6:"Heading&nbsp;6",h5:"Heading&nbsp;5",h4:"Heading&nbsp;4",h3:"Heading&nbsp;3",h2:"Heading&nbsp;2",h1:"Heading&nbsp;1"},init:function(){for(itm in this.setDisplay("Font&nbsp;Format..."),this.sel){var t=itm.toUpperCase();this.add("<"+t+">","<"+itm+' style="padding: 0px; margin: 0px;">'+this.sel[itm]+"</"+t+">")}}});nicEditors.registerPlugin(nicPlugin,nicSelectOptions);var nicLinkOptions={buttons:{link:{name:"Add Link",type:"nicLinkButton",tags:["A"]},unlink:{name:"Remove Link",command:"unlink",noActive:!0}}},nicLinkButton=nicEditorAdvancedButton.extend({addPane:function(){this.ln=this.ne.selectedInstance.selElm().parentTag("A"),this.addForm({"":{type:"title",txt:"Add/Edit Link"},href:{type:"text",txt:"URL",value:"http://",style:{width:"150px"}},title:{type:"text",txt:"Title"},target:{type:"select",txt:"Open In",options:{"":"Current Window",_blank:"New Window"},style:{width:"100px"}}},this.ln)},submit:function(t){var e=this.inputs.href.value;if("http://"==e||""==e)return alert("You must enter a URL to Create a Link"),!1;if(this.removePane(),!this.ln){var n="javascript:nicTemp();";this.ne.nicCommand("createlink",n),this.ln=this.findElm("A","href",n)}this.ln&&this.ln.setAttributes({href:this.inputs.href.value,title:this.inputs.title.value,target:this.inputs.target.options[this.inputs.target.selectedIndex].value})}});nicEditors.registerPlugin(nicPlugin,nicLinkOptions);var nicColorOptions={buttons:{forecolor:{name:__("Change Text Color"),type:"nicEditorColorButton",noClose:!0},bgcolor:{name:__("Change Background Color"),type:"nicEditorBgColorButton",noClose:!0}}},nicEditorColorButton=nicEditorAdvancedButton.extend({addPane:function(){var t={0:"00",1:"33",2:"66",3:"99",4:"CC",5:"FF"},e=new bkElement("DIV").setStyle({width:"270px"});for(var n in t)for(var i in t)for(var o in t){var r="#"+t[n]+t[o]+t[i],s=new bkElement("DIV").setStyle({cursor:"pointer",height:"15px",float:"left"}).appendTo(e),a=new bkElement("DIV").setStyle({border:"2px solid "+r}).appendTo(s),l=new bkElement("DIV").setStyle({backgroundColor:r,overflow:"hidden",width:"11px",height:"11px"}).addEvent("click",this.colorSelect.closure(this,r)).addEvent("mouseover",this.on.closure(this,a)).addEvent("mouseout",this.off.closure(this,a,r)).appendTo(a);window.opera||(s.onmousedown=l.onmousedown=bkLib.cancelEvent)}this.pane.append(e.noSelect())},colorSelect:function(t){this.ne.nicCommand("foreColor",t),this.removePane()},on:function(t){t.setStyle({border:"2px solid #000"})},off:function(t,e){t.setStyle({border:"2px solid "+e})}}),nicEditorBgColorButton=nicEditorColorButton.extend({colorSelect:function(t){this.ne.nicCommand("hiliteColor",t),this.removePane()}});nicEditors.registerPlugin(nicPlugin,nicColorOptions);var nicImageOptions={buttons:{image:{name:"Add Image",type:"nicImageButton",tags:["IMG"]}}},nicImageButton=nicEditorAdvancedButton.extend({addPane:function(){this.im=this.ne.selectedInstance.selElm().parentTag("IMG"),this.addForm({"":{type:"title",txt:"Add/Edit Image"},src:{type:"text",txt:"URL",value:"http://",style:{width:"150px"}},alt:{type:"text",txt:"Alt Text",style:{width:"100px"}},align:{type:"select",txt:"Align",options:{none:"Default",left:"Left",right:"Right"}}},this.im)},submit:function(t){var e=this.inputs.src.value;if(""==e||"http://"==e)return alert("You must enter a Image URL to insert"),!1;if(this.removePane(),!this.im){var n="javascript:nicImTemp();";this.ne.nicCommand("insertImage",n),this.im=this.findElm("IMG","src",n)}this.im&&this.im.setAttributes({src:this.inputs.src.value,alt:this.inputs.alt.value,align:this.inputs.align.value})}});nicEditors.registerPlugin(nicPlugin,nicImageOptions);var nicSaveOptions={buttons:{save:{name:__("Save this content"),type:"nicEditorSaveButton"}}},nicEditorSaveButton=nicEditorButton.extend({init:function(){this.ne.options.onSave||this.margin.setStyle({display:"none"})},mouseClick:function(){var t=this.ne.options.onSave,e=this.ne.selectedInstance;t(e.getContent(),e.elm.id,e)}});nicEditors.registerPlugin(nicPlugin,nicSaveOptions);var allSubjects={modalhtml:!1};$.getScript=function(t,e){$.ajax({type:"GET",url:t,success:e,dataType:"script",cache:"production"==env})},$(document).ready(function(){myeventloader=function(){setTimeout(function(){window.__lc=window.__lc||{},window.__lc.license=1096614,function(){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src=("https:"==document.location.protocol?"https://":"http://")+"cdn.livechatinc.com/tracking.js";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}();document.getElementById("validation")},15e3)},window.addEventListener("mouseup",myeventloader),window.addEventListener("keyup",myeventloader),window.addEventListener("scroll",myeventloader),window.addEventListener("mouseover",myeventloader),window.addEventListener("focus",myeventloader),window.addEventListener("touchstart",myeventloader),$.get("/readfile/readcountrycodes",function(t){$("#country_codes_container").empty(),$("#country_codes_container").append(t)})});var script_tag=document.getElementById("validation"),page_overlay=jQuery('<div id="overlay" style="position: fixed;top: 0;left: 0;width: 100%;height:100vh !important;background-color: #000;filter:alpha(opacity=50);-moz-opacity:0.93;-khtml-opacity: 0.93;opacity: 0.93;z-index: 2000;background: url(/assets/public/images/pre-loader.gif) center no-repeat #000;background-size: 40px;"></div>'),page_overlay1=jQuery('<div class="progressloader"><div style="top: 50%;left: 33%;position: relative;width: 500px;"><p style="color:#000;font-weight:800;font-size:16px">Uploading...</p><progress id="progress"  value="0" class="progress"></progress></div></div>'),ajax=0,widget1,widget2,CaptchaCallback=function(){try{widget2=grecaptcha.render("RecaptchaField2",{sitekey:recaptcha_sitekey,callback:correctCaptcha_first})}catch(t){}try{widget1=grecaptcha.render("RecaptchaField1",{sitekey:recaptcha_sitekey,callback:correctCaptcha_second})}catch(t){}},correctCaptcha_second=function(t){$("#secondCaptcha").val(t)},correctCaptcha_first=function(t){$("#firstCaptcha").val(t)},ip="",country="",countryCode="",state="";function showCalender(){$("#order_date").datetimepicker("show")}function validateImage(t){var e=$(t).closest("div").find("input[type=text]");if(""!=$(t).val()){var n=$(t)[0].files.length;if(n>5)return $(t).val(""),alert("Total files can't be more than 5"),void $(e).attr("placeholder","Upload File");for(var i=0,o="",r=0;r<n;r++){var s=$(t)[0].files[r].size;o+=$(t)[0].files[r].name+" ",i+=s}i>25e6?($(t).val(""),alert("Files size can not be more than 25MB"),$(e).attr("placeholder","Upload File")):$(e).attr("placeholder",o)}else $(e).attr("placeholder","Upload File")}$("#fileupload").submit(function(t){t.preventDefault();var e="No",n=(new nicEditors.findEditor("main_form_details"),$("#main_form_details").text());if(ajax)showalert("Already request in process");else{if(!$("#fileupload").valid()){showalert("Please fill all the required fields");var i=$("#fileupload").validate(),o="";for(var r in i.errorMap)o+=i.errorMap[r]+" ";return dataLayer.push({gab_error:o,GAB_SUBMIT:"Fail"}),void grecaptcha.reset(widget2)}if(""==$(this).find(".orderfile").val()){if(n.length<100)return alert("Description should be at least 100 characters or select a file"),dataLayer.push({gab_error:"No File and description",GAB_SUBMIT:"Fail"}),void grecaptcha.reset(widget2)}else n=""==n||"<br>"==n||"Place Your Question Here"==n?"PFA":n,e="Yes";if(""!=$("#firstCaptcha").val()){try{var s=$(this).find('input[name="email"]').val(),a={topicId:$(this).find('input[name="topicId"]').val(),subTopicId:$(this).find('input[name="subTopicId"]').val(),gradeId:5,timeZone:/\((.*)\)/.exec((new Date).toString())[1],domainId:4,title:n,description:n,deadline:new Date($(this).find('input[name="date"]').val()).toISOString(),ipAddress:ip,submitUrl:"goah",nameYourPrice:10,questionSubmitSourceType:questionSubmitSourceType,SubmitSourceId:$(this).find('input[name="ss_id"]').val(),name:"",emailId:$(this).find('input[name="email"]').val(),state:state,country:country,countryCode:countryCode,phone:"",currencyId:2},l={email:$(this).find('input[name="email"]').val(),topicid:$(this).find('input[name="topicId"]').val(),subtopicid:$(this).find('input[name="subTopicId"]').val(),description:n,deadline:new Date($(this).find('input[name="date"]').val()).toUTCString().toString(),ip:ip,attachment:e};JSON.stringify(a)}catch(t){showalert(t.message)}ajax=1,showOverlay(1);var c=new FormData;$.each($(this).find('input[name="uploadfile"]')[0].files,function(t,e){c.append("assignmentFileName"+(t+1),e)}),Object.keys(a).forEach(function(t){c.append(t,a[t])});var u=document.getElementById("progress");$.ajax({url:url+"fileupload/saveLeads/",type:"post",data:l,cache:!1,success:function(t){},error:function(t,e,n){showalert(t.responseText)}}),$.ajax({url:url+"student/user/submitAssignment",type:"post",data:c,headers:{Authorization:auth,domain:domain},contentType:!1,cache:!1,processData:!1,dataType:"json",beforeSend:function(){u.value=0},xhr:function(){var t=$.ajaxSettings.xhr();return t.upload.onprogress=function(t){if(t.lengthComputable){u.max=t.total,u.value=t.loaded;Math.floor(t.loaded/t.total*100)}},t},success:function(t){var e=t.message;e.assignmentId;if(1==e.isGuestUser)return dataLayer.push({gab_error:"",GAB_SUBMIT:"Success"}),void window.location.replace("/student");-1!=document.cookie.indexOf("student_details")?window.location.replace("/student"):function t(){var e=prompt("Enter your Password: ");if(null==e)return ajax=0,hideOverlay(1),$("#fileupload").trigger("reset"),void grecaptcha.reset(widget2);for(;""==e;)e=prompt("Enter your Password: ");$.ajax({url:"/student/user/login",type:"post",data:{username:s,password:e},cache:!1,dataType:"text",success:function(t){window.location.replace("/student")},error:function(e,n,i){showalert(JSON.parse(e.responseText).message,1),t()}})}()},error:function(t,e,n){showalert(t.responseText),"No Captcha"!=$("#firstCaptcha").val()&&$("#firstCaptcha").val(""),ajax=0,hideOverlay(1),$("#fileupload").trigger("reset"),grecaptcha.reset(widget2)}})}else alert("Captcha is required")}}),$("#callback").submit(function(t){var e=this;if(t.preventDefault(),ajax)showalert("Already request in process");else{if(!$("#callback").valid()){showalert("Please fill all the required fields");var n=$("#callback").validate(),i="";for(var o in n.errorMap)i+=n.errorMap[o]+" ";return dataLayer.push({footer_error_msg:i,FOOTER_SUBMIT:"Fail"}),void grecaptcha.reset(widget1)}""!=$("#secondCaptcha").val()?(ajax=1,showOverlay(),$.ajax({url:url+"fileupload/callbackMail/",type:"post",data:new FormData(e),contentType:!1,cache:!1,processData:!1,success:function(t){showalert(t),dataLayer.push({footer_error_msg:"",FOOTER_SUBMIT:"Success"}),"No Captcha"!=$("#secondCaptcha").val()&&$("#secondCaptcha").val(""),ajax=0,hideOverlay(),$(e).trigger("reset"),grecaptcha.reset(widget1)},error:function(t,n,i){showalert(t.responseText),dataLayer.push({footer_error_msg:t.responseText,FOOTER_SUBMIT:"Fail"}),"No Captcha"!=$("#secondCaptcha").val()&&$("#secondCaptcha").val(""),ajax=0,hideOverlay(),$(e).trigger("reset"),grecaptcha.reset(widget1)}})):alert("Captcha is required")}}),$("#request_call_back").submit(function(t){t.preventDefault();var e=this,n=$(e).parent("div").parent("div").parent("div").parent("div").parent("div").parent("div").parent("div");$(e).valid()?(ajax=1,showOverlay(),$.ajax({url:"/fileupload/requestcallback/",type:"post",data:new FormData(e),contentType:!1,cache:!1,processData:!1,success:function(t){ajax=0,hideOverlay(),$(e).trigger("reset"),$(n).modal("hide"),showPopUp("Details Sent",t,"alert")},error:function(t,e,i){showalert(t.responseText),ajax=0,hideOverlay(),$(t).trigger("reset"),$(n).modal("hide")}})):showalert("Please fill all the required fields")}),$(".description.questiontext").on({click:function(){"Place Your Question Here"===$(".description.questiontext").text()&&$(".description.questiontext").text("").focus()},blur:function(){""===$(".description.questiontext").text()&&$(".description.questiontext").text("Place Your Question Here")},focus:function(){"Place Your Question Here"===$(".description.questiontext").text()&&$(".description.questiontext").text("").focus()}});var parameters={mousemove:function(t){0===$(t.target).parents(".has-sub").length?$("#cssmenu ul ul").css("visibility","hidden"):$("#cssmenu ul ul").css("visibility","visible")},click:function(t){$(t.target).hasClass("country-code")||0!==$(t.target).parents("country-codes-container").length||$(".country-codes-container").hide()}};$(document).on(parameters),function(t){"use strict";var e=function(e,n,i){function o(){a.addEventListener&&a.removeEventListener("load",o),a.media=i||"all"}var r,s=t.document,a=s.createElement("link");if(n)r=n;else{var l=(s.body||s.getElementsByTagName("head")[0]).childNodes;r=l[l.length-1]}var c=s.styleSheets;a.rel="stylesheet",a.href=e,a.media="only x",function t(e){if(s.body)return e();setTimeout(function(){t(e)})}(function(){r.parentNode.insertBefore(a,n?r:r.nextSibling)});var u=function(t){for(var e=a.href,n=c.length;n--;)if(c[n].href===e)return t();setTimeout(function(){u(t)})};return a.addEventListener&&a.addEventListener("load",o),a.onloadcssdefined=u,u(o),a};"undefined"!=typeof exports?exports.loadCSS=e:t.loadCSS=e}("undefined"!=typeof global?global:this),function(t){if(t.loadCSS){var e=loadCSS.relpreload={};if(e.support=function(){try{return t.document.createElement("link").relList.supports("preload")}catch(t){return!1}},e.poly=function(){for(var e=t.document.getElementsByTagName("link"),n=0;n<e.length;n++){var i=e[n];"preload"===i.rel&&"style"===i.getAttribute("as")&&(t.loadCSS(i.href,i,i.getAttribute("media")),i.rel=null)}},!e.support()){e.poly();var n=t.setInterval(e.poly,300);t.addEventListener&&t.addEventListener("load",function(){e.poly(),t.clearInterval(n)}),t.attachEvent&&t.attachEvent("onload",function(){t.clearInterval(n)})}}}(this);try{$(document).ready(function(){$.getScript("/loadjs/getscripts",function(){$.getJSON("https://pro.ip-api.com/json/?key=GdLAGL6ASehXvTE",function(t){ip=t.query,country=t.country,countryCode=t.countryCode,state=t.region}).fail(function(t,e,n){$.ajax({url:url+"fileupload/savejslogs/",type:"post",data:{error:"errorstatus: "+e+" Response Text: "+t.responseText},cache:!1,success:function(t){},error:function(t,e,n){showalert(t.responseText)}}),console.log("error "+e),console.log("incoming Text "+t.responseText)});try{nicE=new nicEditor({buttonList:[],maxHeight:54,fullPanel:!1}).panelInstance("main_form_details");$(".nicEdit-panelContain").parent("div").next("div");var t=!1;$("#subject").autocomplete({source:function(t,e){$.ajax({url:baseProtocol+"://"+api_url+"/subject/search",headers:{Authorization:auth,domain:domain},dataType:"json",data:{term:t.term},success:function(t){var n=new Array(t.length),i=0;t.forEach(function(t){var e={label:t.label,value:t.value,desc:t.desc};n[i]=e,i++}),e(n)}})},minLength:3,autoFocus:!1,selectFirst:!0,open:function(e,n){t&&(t=!1)},select:function(e,n){if(n.item){t=!0,$(this).val(n.item.label);var i=n.item.value.split("|");return $("#topicId").val(i[0]),$("#subTopicId").val(i[2]),!1}},focus:function(t,e){t.preventDefault()}}).data("ui-autocomplete")._renderItem=function(t,e){return $("<li></li>").data("item.ui-autocomplete",e).append("<a><strong>"+e.label+"</strong> <br> "+e.desc+"</a>").appendTo(t)},$("#subject").blur(function(){!t&&$(this).val().length>0&&($("#topicId").val("17346"),$("#subTopicId").val("18033"))})}catch(t){}$("#aus_Location").owlCarousel({items:3,nav:!1,dots:!0,loop:!0,autoplay:!0,autoplayTimeout:4e3,autoplayHoverPause:!0,smartSpeed:1e3,lazyLoad:!0,navText:["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"],responsive:{0:{items:1},767:{items:2},1000:{items:2}}}),$("#parentHorizontalTab").easyResponsiveTabs({type:"default",width:"auto",fit:!0,tabidentify:"hor_1",activate:function(t){var e=$(this),n=$("#nested-tabInfo");$("span",n).text(e.text()),n.show()}}),$("#ChildVerticalTab_1").easyResponsiveTabs({type:"vertical",width:"auto",fit:!0,tabidentify:"ver_1",activetab_bg:"#000",inactive_bg:"#ebebeb",active_border_color:"#c1c1c1",active_content_border_color:"#5AB1D0"}),$("#parentVerticalTab").easyResponsiveTabs({type:"vertical",width:"auto",fit:!0,closed:"accordion",tabidentify:"hor_1",activate:function(t){var e=$(this),n=$("#nested-tabInfo2");$("span",n).text(e.text()),n.show()}}),$("#Testimonials").owlCarousel({items:3,nav:!1,dots:!0,loop:!0,autoplay:!0,autoplayTimeout:4e3,autoplayHoverPause:!0,smartSpeed:1e3,lazyLoad:!0,navText:["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"],responsive:{0:{items:1},767:{items:2},1000:{items:2}}}),$.fn.menumaker=function(t){var e=$(this),n=$.extend({title:"Menu",format:"dropdown",sticky:!1},t);return this.each(function(){e.prepend('<div id="menu-button">'+n.title+"</div>"),$(this).find("#menu-button").on("click",function(){$(this).toggleClass("menu-opened");var t=$(this).next("ul");t.hasClass("open")?t.hide().removeClass("open"):(t.show().addClass("open"),"dropdown"===n.format&&t.find("ul").show())}),e.find("li ul").parent().addClass("has-sub"),$(".has-sub").append('<span class="submenu-button"></span>'),$(".submenu-button").click(function(){$(this).toggleClass("submenu-opened"),$(this).siblings("ul").hasClass("open")?$(this).siblings("ul").removeClass("open").hide():$(this).siblings("ul").addClass("open").show()})})},$("#cssmenu").menumaker({title:"",format:"multitoggle"}),$("#cssmenu").prepend("<div id='menu-line'></div>");var e,n,i,o,r=!1,s=0,a=$("#cssmenu #menu-line");$("#cssmenu > ul > li").each(function(){$(this).hasClass("active")&&(e=$(this),r=!0)}),!1===r&&(e=$("#cssmenu > ul > li").first()),o=n=e.width(),i=s=e.position().left,a.css("width",n),a.css("left",s),$("#cssmenu > ul > li").hover(function(){e=$(this),n=e.width(),s=e.position().left,a.css("width",n),a.css("left",s)},function(){a.css("left",i),a.css("width",o)}),$("#order_date").datetimepicker({dateFormat:"yy-mm-dd",minDate:new Date}),$("#fileupload").validate({rules:{number:{required:!0,number:!0}},messages:{name:"Enter your name",email:"Enter Email Id",number:"Enter a valid number",subject:"Select Subject",date:"Please select deadline"}}),$("#callback").validate({rules:{phone:{required:!0,number:!0}},messages:{name:"Enter your name",email:"Enter Email Id",phone:"Enter a valid number",subject:"Select Subject"}}),$("#request_call_back").validate()}),$(".lazy").Lazy()})}catch(t){}if(jQuery.extend(jQuery.expr[":"],{focusable:function(t,e,n){return $(t).is(":input,select, [tabindex] ")}}),$(document).on("keypress","#callback input,#callback select,#fileupload input",function(t){if(13==t.which){t.preventDefault();var e=$(":focusable"),n=e.index(document.activeElement)+1,i=2;if(void 0!==e.eq(n).attr("type"))for(;"hidden"==e.eq(n).attr("type");)n=e.index(document.activeElement)+i,i++;n>=e.length&&(n=0),e.eq(n).focus()}}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(t){"use strict";var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||3<e[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;return t(this).one("bsTransitionEnd",function(){n=!0}),setTimeout(function(){n||t(i).trigger(t.support.transition.end)},e),this},t(function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(t){"use strict";var e='[data-dismiss="alert"]',n=function(n){t(n).on("click",e,this.close)};n.VERSION="3.4.1",n.TRANSITION_DURATION=150,n.prototype.close=function(e){var i=t(this),o=i.attr("data-target");o||(o=(o=i.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,"")),o="#"===o?[]:o;var r=t(document).find(o);function s(){r.detach().trigger("closed.bs.alert").remove()}e&&e.preventDefault(),r.length||(r=i.closest(".alert")),r.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(r.removeClass("in"),t.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",s).emulateTransitionEnd(n.TRANSITION_DURATION):s())};var i=t.fn.alert;t.fn.alert=function(e){return this.each(function(){var i=t(this),o=i.data("bs.alert");o||i.data("bs.alert",o=new n(this)),"string"==typeof e&&o[e].call(i)})},t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=i,this},t(document).on("click.bs.alert.data-api",e,n.prototype.close)}(jQuery),function(t){"use strict";var e=function(n,i){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,i),this.isLoading=!1};function n(n){return this.each(function(){var i=t(this),o=i.data("bs.button"),r="object"==typeof n&&n;o||i.data("bs.button",o=new e(this,r)),"toggle"==n?o.toggle():n&&o.setState(n)})}e.VERSION="3.4.1",e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(e){var n="disabled",i=this.$element,o=i.is("input")?"val":"html",r=i.data();e+="Text",null==r.resetText&&i.data("resetText",i[o]()),setTimeout(t.proxy(function(){i[o](null==r[e]?this.options[e]:r[e]),"loadingText"==e?(this.isLoading=!0,i.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n).prop(n,!1))},this),0)},e.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=n,t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(e){var i=t(e.target).closest(".btn");n.call(i,"toggle"),t(e.target).is('input[type="radio"], input[type="checkbox"]')||(e.preventDefault(),i.is("input,button")?i.trigger("focus"):i.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),function(t){"use strict";var e=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};function n(n){return this.each(function(){var i=t(this),o=i.data("bs.carousel"),r=t.extend({},e.DEFAULTS,i.data(),"object"==typeof n&&n),s="string"==typeof n?n:r.slide;o||i.data("bs.carousel",o=new e(this,r)),"number"==typeof n?o.to(n):s?o[s]():r.interval&&o.pause().cycle()})}e.VERSION="3.4.1",e.TRANSITION_DURATION=600,e.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},e.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},e.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},e.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},e.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e);if(("prev"==t&&0===n||"next"==t&&n==this.$items.length-1)&&!this.options.wrap)return e;var i=(n+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(i)},e.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(n<t?"next":"prev",this.$items.eq(t))},e.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},e.prototype.next=function(){if(!this.sliding)return this.slide("next")},e.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},e.prototype.slide=function(n,i){var o=this.$element.find(".item.active"),r=i||this.getItemForDirection(n,o),s=this.interval,a="next"==n?"left":"right",l=this;if(r.hasClass("active"))return this.sliding=!1;var c=r[0],u=t.Event("slide.bs.carousel",{relatedTarget:c,direction:a});if(this.$element.trigger(u),!u.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=t(this.$indicators.children()[this.getItemIndex(r)]);d&&d.addClass("active")}var p=t.Event("slid.bs.carousel",{relatedTarget:c,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(r.addClass(n),"object"==typeof r&&r.length&&r[0].offsetWidth,o.addClass(a),r.addClass(a),o.one("bsTransitionEnd",function(){r.removeClass([n,a].join(" ")).addClass("active"),o.removeClass(["active",a].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(p)},0)}).emulateTransitionEnd(e.TRANSITION_DURATION)):(o.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger(p)),s&&this.cycle(),this}};var i=t.fn.carousel;t.fn.carousel=n,t.fn.carousel.Constructor=e,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this};var o=function(e){var i=t(this),o=i.attr("href");o&&(o=o.replace(/.*(?=#[^\s]+$)/,""));var r=i.attr("data-target")||o,s=t(document).find(r);if(s.hasClass("carousel")){var a=t.extend({},s.data(),i.data()),l=i.attr("data-slide-to");l&&(a.interval=!1),n.call(s,a),l&&s.data("bs.carousel").to(l),e.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",o).on("click.bs.carousel.data-api","[data-slide-to]",o),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery),function(t){"use strict";var e=function(n,i){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,i),this.$trigger=t('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(e){var n,i=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(document).find(i)}function i(n){return this.each(function(){var i=t(this),o=i.data("bs.collapse"),r=t.extend({},e.DEFAULTS,i.data(),"object"==typeof n&&n);!o&&r.toggle&&/show|hide/.test(n)&&(r.toggle=!1),o||i.data("bs.collapse",o=new e(this,r)),"string"==typeof n&&o[n]()})}e.VERSION="3.4.1",e.TRANSITION_DURATION=350,e.DEFAULTS={toggle:!0},e.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},e.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n,o=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(o&&o.length&&(n=o.data("bs.collapse"))&&n.transitioning)){var r=t.Event("show.bs.collapse");if(this.$element.trigger(r),!r.isDefaultPrevented()){o&&o.length&&(i.call(o,"hide"),n||o.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var l=t.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(e.TRANSITION_DURATION)[s](this.$element[0][l])}}}},e.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var n=t.Event("hide.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return o.call(this);this.$element[i](0).one("bsTransitionEnd",t.proxy(o,this)).emulateTransitionEnd(e.TRANSITION_DURATION)}}},e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},e.prototype.getParent=function(){return t(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(e,i){var o=t(i);this.addAriaAndCollapsedClass(n(o),o)},this)).end()},e.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var o=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=o,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(e){var o=t(this);o.attr("data-target")||e.preventDefault();var r=n(o),s=r.data("bs.collapse")?"toggle":o.data();i.call(r,s)})}(jQuery),function(t){"use strict";var e='[data-toggle="dropdown"]',n=function(e){t(e).on("click.bs.dropdown",this.toggle)};function i(e){var n=e.attr("data-target");n||(n=(n=e.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i="#"!==n?t(document).find(n):null;return i&&i.length?i:e.parent()}function o(n){n&&3===n.which||(t(".dropdown-backdrop").remove(),t(e).each(function(){var e=t(this),o=i(e),r={relatedTarget:this};o.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&t.contains(o[0],n.target)||(o.trigger(n=t.Event("hide.bs.dropdown",r)),n.isDefaultPrevented()||(e.attr("aria-expanded","false"),o.removeClass("open").trigger(t.Event("hidden.bs.dropdown",r)))))}))}n.VERSION="3.4.1",n.prototype.toggle=function(e){var n=t(this);if(!n.is(".disabled, :disabled")){var r=i(n),s=r.hasClass("open");if(o(),!s){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",o);var a={relatedTarget:this};if(r.trigger(e=t.Event("show.bs.dropdown",a)),e.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger(t.Event("shown.bs.dropdown",a))}return!1}},n.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var o=t(this);if(n.preventDefault(),n.stopPropagation(),!o.is(".disabled, :disabled")){var r=i(o),s=r.hasClass("open");if(!s&&27!=n.which||s&&27==n.which)return 27==n.which&&r.find(e).trigger("focus"),o.trigger("click");var a=r.find(".dropdown-menu li:not(.disabled):visible a");if(a.length){var l=a.index(n.target);38==n.which&&0<l&&l--,40==n.which&&l<a.length-1&&l++,~l||(l=0),a.eq(l).trigger("focus")}}}};var r=t.fn.dropdown;t.fn.dropdown=function(e){return this.each(function(){var i=t(this),o=i.data("bs.dropdown");o||i.data("bs.dropdown",o=new n(this)),"string"==typeof e&&o[e].call(i)})},t.fn.dropdown.Constructor=n,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=r,this},t(document).on("click.bs.dropdown.data-api",o).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",e,n.prototype.toggle).on("keydown.bs.dropdown.data-api",e,n.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",n.prototype.keydown)}(jQuery),function(t){"use strict";var e=function(e,n){this.options=n,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};function n(n,i){return this.each(function(){var o=t(this),r=o.data("bs.modal"),s=t.extend({},e.DEFAULTS,o.data(),"object"==typeof n&&n);r||o.data("bs.modal",r=new e(this,s)),"string"==typeof n?r[n](i):s.show&&r.show(i)})}e.VERSION="3.4.1",e.TRANSITION_DURATION=300,e.BACKDROP_TRANSITION_DURATION=150,e.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},e.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},e.prototype.show=function(n){var i=this,o=t.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(o),this.isShown||o.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var o=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),o&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var r=t.Event("shown.bs.modal",{relatedTarget:n});o?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(r)}).emulateTransitionEnd(e.TRANSITION_DURATION):i.$element.trigger("focus").trigger(r)}))},e.prototype.hide=function(n){n&&n.preventDefault(),n=t.Event("hide.bs.modal"),this.$element.trigger(n),this.isShown&&!n.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(e.TRANSITION_DURATION):this.hideModal())},e.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},e.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},e.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},e.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},e.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},e.prototype.backdrop=function(n){var i=this,o=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var r=t.support.transition&&o;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+o).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!n)return;r?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):n()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var s=function(){i.removeBackdrop(),n&&n()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):s()}else n&&n()},e.prototype.handleUpdate=function(){this.adjustDialog()},e.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},e.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},e.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},e.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var n=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",e+n),t(this.fixedContent).each(function(e,i){var o=i.style.paddingRight,r=t(i).css("padding-right");t(i).data("padding-right",o).css("padding-right",parseFloat(r)+n+"px")}))},e.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),t(this.fixedContent).each(function(e,n){var i=t(n).data("padding-right");t(n).removeData("padding-right"),n.style.paddingRight=i||""})},e.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var i=t.fn.modal;t.fn.modal=n,t.fn.modal.Constructor=e,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(e){var i=t(this),o=i.attr("href"),r=i.attr("data-target")||o&&o.replace(/.*(?=#[^\s]+$)/,""),s=t(document).find(r),a=s.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(o)&&o},s.data(),i.data());i.is("a")&&e.preventDefault(),s.one("show.bs.modal",function(t){t.isDefaultPrevented()||s.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),n.call(s,a,this)})}(jQuery),function(t){"use strict";var e=["sanitize","whiteList","sanitizeFn"],n=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],i=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,o=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function r(e,r){var s=e.nodeName.toLowerCase();if(-1!==t.inArray(s,r))return-1===t.inArray(s,n)||Boolean(e.nodeValue.match(i)||e.nodeValue.match(o));for(var a=t(r).filter(function(t,e){return e instanceof RegExp}),l=0,c=a.length;l<c;l++)if(s.match(a[l]))return!0;return!1}function s(e,n,i){if(0===e.length)return e;if(i&&"function"==typeof i)return i(e);if(!document.implementation||!document.implementation.createHTMLDocument)return e;var o=document.implementation.createHTMLDocument("sanitization");o.body.innerHTML=e;for(var s=t.map(n,function(t,e){return e}),a=t(o.body).find("*"),l=0,c=a.length;l<c;l++){var u=a[l],d=u.nodeName.toLowerCase();if(-1!==t.inArray(d,s))for(var p=t.map(u.attributes,function(t){return t}),h=[].concat(n["*"]||[],n[d]||[]),f=0,m=p.length;f<m;f++)r(p[f],h)||u.removeAttribute(p[f].nodeName);else u.parentNode.removeChild(u)}return o.body.innerHTML}var a=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};a.VERSION="3.4.1",a.TRANSITION_DURATION=150,a.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}},a.prototype.init=function(e,n,i){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&t(document).find(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var o=this.options.trigger.split(" "),r=o.length;r--;){var s=o[r];if("click"==s)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",l="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},a.prototype.getDefaults=function(){return a.DEFAULTS},a.prototype.getOptions=function(n){var i=this.$element.data();for(var o in i)i.hasOwnProperty(o)&&-1!==t.inArray(o,e)&&delete i[o];return(n=t.extend({},this.getDefaults(),i,n)).delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),n.sanitize&&(n.template=s(n.template,n.whiteList,n.sanitizeFn)),n},a.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,i){n[t]!=i&&(e[t]=i)}),e},a.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusin"==e.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)}},a.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},a.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusout"==e.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)}},a.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var n=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!n)return;var i=this,o=this.tip(),r=this.getUID(this.type);this.setContent(),o.attr("id",r),this.$element.attr("aria-describedby",r),this.options.animation&&o.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,c=l.test(s);c&&(s=s.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?o.appendTo(t(document).find(this.options.container)):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var u=this.getPosition(),d=o[0].offsetWidth,p=o[0].offsetHeight;if(c){var h=s,f=this.getPosition(this.$viewport);s="bottom"==s&&u.bottom+p>f.bottom?"top":"top"==s&&u.top-p<f.top?"bottom":"right"==s&&u.right+d>f.width?"left":"left"==s&&u.left-d<f.left?"right":s,o.removeClass(h).addClass(s)}var m=this.getCalculatedOffset(s,u,d,p);this.applyPlacement(m,s);var g=function(){var t=i.hoverState;i.$element.trigger("shown.bs."+i.type),i.hoverState=null,"out"==t&&i.leave(i)};t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",g).emulateTransitionEnd(a.TRANSITION_DURATION):g()}},a.prototype.applyPlacement=function(e,n){var i=this.tip(),o=i[0].offsetWidth,r=i[0].offsetHeight,s=parseInt(i.css("margin-top"),10),a=parseInt(i.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),e.top+=s,e.left+=a,t.offset.setOffset(i[0],t.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),i.addClass("in");var l=i[0].offsetWidth,c=i[0].offsetHeight;"top"==n&&c!=r&&(e.top=e.top+r-c);var u=this.getViewportAdjustedDelta(n,e,l,c);u.left?e.left+=u.left:e.top+=u.top;var d=/top|bottom/.test(n),p=d?2*u.left-o+l:2*u.top-r+c,h=d?"offsetWidth":"offsetHeight";i.offset(e),this.replaceArrow(p,i[0][h],d)},a.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},a.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=s(e,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(e)):t.find(".tooltip-inner").text(e),t.removeClass("fade in top bottom left right")},a.prototype.hide=function(e){var n=this,i=t(this.$tip),o=t.Event("hide.bs."+this.type);function r(){"in"!=n.hoverState&&i.detach(),n.$element&&n.$element.removeAttr("aria-describedby").trigger("hidden.bs."+n.type),e&&e()}if(this.$element.trigger(o),!o.isDefaultPrevented())return i.removeClass("in"),t.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",r).emulateTransitionEnd(a.TRANSITION_DURATION):r(),this.hoverState=null,this},a.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},a.prototype.hasContent=function(){return this.getTitle()},a.prototype.getPosition=function(e){var n=(e=e||this.$element)[0],i="BODY"==n.tagName,o=n.getBoundingClientRect();null==o.width&&(o=t.extend({},o,{width:o.right-o.left,height:o.bottom-o.top}));var r=window.SVGElement&&n instanceof window.SVGElement,s=i?{top:0,left:0}:r?null:e.offset(),a={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},l=i?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},o,a,l,s)},a.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},a.prototype.getViewportAdjustedDelta=function(t,e,n,i){var o={top:0,left:0};if(!this.$viewport)return o;var r=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-r-s.scroll,l=e.top+r-s.scroll+i;a<s.top?o.top=s.top-a:l>s.top+s.height&&(o.top=s.top+s.height-l)}else{var c=e.left-r,u=e.left+r+n;c<s.left?o.left=s.left-c:u>s.right&&(o.left=s.left+s.width-u)}return o},a.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},a.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},a.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},a.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},a.prototype.enable=function(){this.enabled=!0},a.prototype.disable=function(){this.enabled=!1},a.prototype.toggleEnabled=function(){this.enabled=!this.enabled},a.prototype.toggle=function(e){var n=this;e&&((n=t(e.currentTarget).data("bs."+this.type))||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},a.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})},a.prototype.sanitizeHtml=function(t){return s(t,this.options.whiteList,this.options.sanitizeFn)};var l=t.fn.tooltip;t.fn.tooltip=function(e){return this.each(function(){var n=t(this),i=n.data("bs.tooltip"),o="object"==typeof e&&e;!i&&/destroy|hide/.test(e)||(i||n.data("bs.tooltip",i=new a(this,o)),"string"==typeof e&&i[e]())})},t.fn.tooltip.Constructor=a,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=l,this}}(jQuery),function(t){"use strict";var e=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");e.VERSION="3.4.1",e.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype)).constructor=e).prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();if(this.options.html){var i=typeof n;this.options.sanitize&&(e=this.sanitizeHtml(e),"string"===i&&(n=this.sanitizeHtml(n))),t.find(".popover-title").html(e),t.find(".popover-content").children().detach().end()["string"===i?"html":"append"](n)}else t.find(".popover-title").text(e),t.find(".popover-content").children().detach().end().text(n);t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=t.fn.popover;t.fn.popover=function(n){return this.each(function(){var i=t(this),o=i.data("bs.popover"),r="object"==typeof n&&n;!o&&/destroy|hide/.test(n)||(o||i.data("bs.popover",o=new e(this,r)),"string"==typeof n&&o[n]())})},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery),function(t){"use strict";function e(n,i){this.$body=t(document.body),this.$scrollElement=t(n).is(document.body)?t(window):t(n),this.options=t.extend({},e.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var i=t(this),o=i.data("bs.scrollspy"),r="object"==typeof n&&n;o||i.data("bs.scrollspy",o=new e(this,r)),"string"==typeof n&&o[n]()})}e.VERSION="3.4.1",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),o=e.data("target")||e.attr("href"),r=/^#./.test(o)&&t(o);return r&&r.length&&r.is(":visible")&&[[r[n]().top+i,o]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),o=this.offsets,r=this.targets,s=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),i<=e)return s!=(t=r[r.length-1])&&this.activate(t);if(s&&e<o[0])return this.activeTarget=null,this.clear();for(t=o.length;t--;)s!=r[t]&&e>=o[t]&&(void 0===o[t+1]||e<o[t+1])&&this.activate(r[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',i=t(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=t.fn.scrollspy;t.fn.scrollspy=n,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery),function(t){"use strict";var e=function(e){this.element=t(e)};function n(n){return this.each(function(){var i=t(this),o=i.data("bs.tab");o||i.data("bs.tab",o=new e(this)),"string"==typeof n&&o[n]()})}e.VERSION="3.4.1",e.TRANSITION_DURATION=150,e.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),i=e.data("target");if(i||(i=(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var o=n.find(".active:last a"),r=t.Event("hide.bs.tab",{relatedTarget:e[0]}),s=t.Event("show.bs.tab",{relatedTarget:o[0]});if(o.trigger(r),e.trigger(s),!s.isDefaultPrevented()&&!r.isDefaultPrevented()){var a=t(document).find(i);this.activate(e.closest("li"),n),this.activate(a,a.parent(),function(){o.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:o[0]})})}}},e.prototype.activate=function(n,i,o){var r=i.find("> .active"),s=o&&t.support.transition&&(r.length&&r.hasClass("fade")||!!i.find("> .fade").length);function a(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),o&&o()}r.length&&s?r.one("bsTransitionEnd",a).emulateTransitionEnd(e.TRANSITION_DURATION):a(),r.removeClass("in")};var i=t.fn.tab;t.fn.tab=n,t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=i,this};var o=function(e){e.preventDefault(),n.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',o).on("click.bs.tab.data-api",'[data-toggle="pill"]',o)}(jQuery),function(t){"use strict";var e=function(n,i){this.options=t.extend({},e.DEFAULTS,i);var o=this.options.target===e.DEFAULTS.target?t(this.options.target):t(document).find(this.options.target);this.$target=o.on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each(function(){var i=t(this),o=i.data("bs.affix"),r="object"==typeof n&&n;o||i.data("bs.affix",o=new e(this,r)),"string"==typeof n&&o[n]()})}e.VERSION="3.4.1",e.RESET="affix affix-top affix-bottom",e.DEFAULTS={offset:0,target:window},e.prototype.getState=function(t,e,n,i){var o=this.$target.scrollTop(),r=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return o<n&&"top";if("bottom"==this.affixed)return null!=n?!(o+this.unpin<=r.top)&&"bottom":!(o+s<=t-i)&&"bottom";var a=null==this.affixed,l=a?o:r.top;return null!=n&&o<=n?"top":null!=i&&t-i<=l+(a?s:e)&&"bottom"},e.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(e.RESET).addClass("affix");var t=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-t},e.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},e.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),i=this.options.offset,o=i.top,r=i.bottom,s=Math.max(t(document).height(),t(document.body).height());"object"!=typeof i&&(r=o=i),"function"==typeof o&&(o=i.top(this.$element)),"function"==typeof r&&(r=i.bottom(this.$element));var a=this.getState(s,n,o,r);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),c=t.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(e.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:s-n-r})}};var i=t.fn.affix;t.fn.affix=n,t.fn.affix.Constructor=e,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var e=t(this),i=e.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),n.call(e,i)})})}(jQuery),$(document).ready(function(){$(document).scroll(function(){$(this).scrollTop()>800?$(".TopCTA").fadeIn():$(".TopCTA").fadeOut()}),$(window).scroll(function(){$(this).scrollTop()>800?$(".scrollup").fadeIn():$(".scrollup").fadeOut()}),$(".scrollup").click(function(){return $("html, body").animate({scrollTop:0},600),!1});var t=0,e=window.innerHeight;$(window).scroll(function(){var n=$("#counter").offset().top-e;0==t&&$(window).scrollTop()>n&&($(".counter-value").each(function(){var t=$(this),e=t.attr("data-count");$({countNum:t.text()}).animate({countNum:e},{duration:2e3,easing:"swing",step:function(){t.text(Math.floor(this.countNum))},complete:function(){t.text(this.countNum)}})}),t=1)})}),$("#myModal").on("shown.bs.modal",function(){$("#myInput").focus()});