/*! * jQuery JavaScript Library v1.12.4 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2016-05-20T17:17Z */ function sl_translate(){}function polyfill(){function isMicrosoftBrowser(e){var t=["MSIE ","Trident/","Edge/"];return new RegExp(t.join("|")).test(e)}function scrollElement(e,t){this.scrollLeft=e,this.scrollTop=t}function ease(e){return.5*(1-Math.cos(Math.PI*e))}function shouldBailOut(e){if(null===e||"object"!=typeof e||e.behavior===undefined||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function hasScrollableSpace(e,t){return"Y"===t?e.clientHeight+a1?1:l,n=ease(l),r=t.startX+(t.x-t.startX)*n,a=t.startY+(t.y-t.startY)*n,t.method.call(t.scrollable,r,a),r===t.x&&a===t.y||e.requestAnimationFrame(step.bind(e,t))}function smoothScroll(n,i,a){var s,l,u,c,d=o();n===t.body?(s=e,l=e.scrollX||e.pageXOffset,u=e.scrollY||e.pageYOffset,c=r.scroll):(s=n,l=n.scrollLeft,u=n.scrollTop,c=scrollElement),step({scrollable:s,method:c,startTime:d,startX:l,startY:u,x:i,y:a})}var e=window,t=document;if(!("scrollBehavior"in t.documentElement.style&&!0!==e.__forceSmoothScrollPolyfill__)){var n=e.HTMLElement||e.Element,i=468,r={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:n.prototype.scroll||scrollElement,scrollIntoView:n.prototype.scrollIntoView},o=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,a=isMicrosoftBrowser(e.navigator.userAgent)?1:0;e.scroll=e.scrollTo=function(){if(arguments[0]!==undefined)return!0===shouldBailOut(arguments[0])?void r.scroll.call(e,arguments[0].left!==undefined?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,arguments[0].top!==undefined?arguments[0].top:arguments[1]!==undefined?arguments[1]:e.scrollY||e.pageYOffset):void smoothScroll.call(e,t.body,arguments[0].left!==undefined?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==undefined?~~arguments[0].top:e.scrollY||e.pageYOffset)},e.scrollBy=function(){if(arguments[0]!==undefined)return shouldBailOut(arguments[0])?void r.scrollBy.call(e,arguments[0].left!==undefined?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,arguments[0].top!==undefined?arguments[0].top:arguments[1]!==undefined?arguments[1]:0):void smoothScroll.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))},n.prototype.scroll=n.prototype.scrollTo=function(){if(arguments[0]!==undefined){if(!0===shouldBailOut(arguments[0])){if("number"==typeof arguments[0]&&arguments[1]===undefined)throw new SyntaxError("Value could not be converted");return void r.elementScroll.call(this,arguments[0].left!==undefined?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,arguments[0].top!==undefined?~~arguments[0].top:arguments[1]!==undefined?~~arguments[1]:this.scrollTop)}var e=arguments[0].left,t=arguments[0].top;smoothScroll.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)}},n.prototype.scrollBy=function(){if(arguments[0]!==undefined)return!0===shouldBailOut(arguments[0])?void r.elementScroll.call(this,arguments[0].left!==undefined?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==undefined?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop):void this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})},n.prototype.scrollIntoView=function(){if(!0===shouldBailOut(arguments[0]))return void r.scrollIntoView.call(this,arguments[0]===undefined||arguments[0]);var n=findScrollableParent(this),i=n.getBoundingClientRect(),o=this.getBoundingClientRect();n!==t.body?(smoothScroll.call(this,n,n.scrollLeft+o.left-i.left,n.scrollTop+o.top-i.top),"fixed"!==e.getComputedStyle(n).position&&e.scrollBy({left:i.left,top:i.top,behavior:"smooth"})):e.scrollBy({left:o.left,top:o.top,behavior:"smooth"})}}}function throttle(e,t,n){t||(t=250);var i,r;return function(){var o=n||this,a=+new Date,s=arguments;i&&a';var t=e.cloneNode(!0);document.body.appendChild(e),e.addEventListener("click",function(){e.classList.contains("scrollindicator--flipped")?window.scroll({top:0,left:0,behavior:"smooth"}):window.scroll({top:750,left:0,behavior:"smooth"})}),t.addEventListener("click",function(){window.scroll({top:1150,left:0,behavior:"smooth"})});var n=function(){window.scrollY>200?(e.classList.remove("scrollindicator--animated"),setTimeout(function(){e.classList.add("scrollindicator--flipped")},20)):e.classList.remove("scrollindicator--flipped")};if(window.addEventListener("scroll",throttle(n,200)),document.body.addEventListener("scroll",throttle(n,200)),window.innerWidth<1024){var i=document.querySelector(".textband[data-addscrollindicator]");i&&(t.classList.add("scrollindicator--mobile"),i.appendChild(t)),e.classList.add("scrollindicator--flipped"),window.addEventListener("scroll",function(){window.scrollY>1040?e.classList.add("scrollindicator--visible"):e.classList.remove("scrollindicator--visible")}),setTimeout(function(){t.classList.add("scrollindicator--visible","scrollindicator--animated")},100)}else window.addEventListener("scroll",throttle(function(){window.scrollY>200?(e.classList.remove("scrollindicator--animated"),setTimeout(function(){e.classList.add("scrollindicator--flipped")},20)):e.classList.remove("scrollindicator--flipped")},200)),setTimeout(function(){e.classList.add("scrollindicator--visible","scrollindicator--animated")},100)}!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function isArrayLike(e){var t=!!e&&"length"in e&&e.length,n=p.type(e);return"function"!==n&&!p.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function winnow(e,t,n){if(p.isFunction(t))return p.grep(e,function(e,i){return!!t.call(e,i,e)!==n});if(t.nodeType)return p.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(C.test(t))return p.filter(t,e,n);t=p.filter(t,e)}return p.grep(e,function(e){return p.inArray(e,t)>-1!==n})}function sibling(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}function createOptions(e){var t={};return p.each(e.match(j)||[],function(e,n){t[n]=!0}),t}function detach(){i.addEventListener?(i.removeEventListener("DOMContentLoaded",completed),e.removeEventListener("load",completed)):(i.detachEvent("onreadystatechange",completed),e.detachEvent("onload",completed))}function completed(){(i.addEventListener||"load"===e.event.type||"complete"===i.readyState)&&(detach(),p.ready())}function dataAttr(e,t,n){if(n===undefined&&1===e.nodeType){var i="data-"+t.replace(_,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:H.test(n)?p.parseJSON(n):n)}catch(e){}p.data(e,t,n)}else n=undefined}return n}function isEmptyDataObject(e){var t;for(t in e)if(("data"!==t||!p.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function internalData(e,t,i,r){if(D(e)){var o,a,s=p.expando,l=e.nodeType,u=l?p.cache:e,c=l?e[s]:e[s]&&s;if(c&&u[c]&&(r||u[c].data)||i!==undefined||"string"!=typeof t)return c||(c=l?e[s]=n.pop()||p.guid++:s),u[c]||(u[c]=l?{}:{toJSON:p.noop}),"object"!=typeof t&&"function"!=typeof t||(r?u[c]=p.extend(u[c],t):u[c].data=p.extend(u[c].data,t)),a=u[c],r||(a.data||(a.data={}),a=a.data),i!==undefined&&(a[p.camelCase(t)]=i),"string"==typeof t?null==(o=a[t])&&(o=a[p.camelCase(t)]):o=a,o}}function internalRemoveData(e,t,n){if(D(e)){var i,r,o=e.nodeType,a=o?p.cache:e,s=o?e[p.expando]:p.expando;if(a[s]){if(t&&(i=n?a[s]:a[s].data)){p.isArray(t)?t=t.concat(p.map(t,p.camelCase)):t in i?t=[t]:(t=p.camelCase(t),t=t in i?[t]:t.split(" ")),r=t.length;for(;r--;)delete i[t[r]];if(n?!isEmptyDataObject(i):!p.isEmptyObject(i))return}(n||(delete a[s].data,isEmptyDataObject(a[s])))&&(o?p.cleanData([e],!0):d.deleteExpando||a!=a.window?delete a[s]:a[s]=undefined)}}}function adjustCSS(e,t,n,i){var r,o=1,a=20,s=i?function(){return i.cur()}:function(){return p.css(e,t,"")},l=s(),u=n&&n[3]||(p.cssNumber[t]?"":"px"),c=(p.cssNumber[t]||"px"!==u&&+l)&&F.exec(p.css(e,t));if(c&&c[3]!==u){u=u||c[3],n=n||[],c=+l||1;do{o=o||".5",c/=o,p.style(e,t,c+u)}while(o!==(o=s()/l)&&1!==o&&--a)}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}function createSafeFragment(e){var t=z.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function getAll(e,t){var n,i,r=0,o="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):undefined;if(!o)for(o=[],n=e.childNodes||e;null!=(i=n[r]);r++)!t||p.nodeName(i,t)?o.push(i):p.merge(o,getAll(i,t));return t===undefined||t&&p.nodeName(e,t)?p.merge([e],o):o}function setGlobalEval(e,t){for(var n,i=0;null!=(n=e[i]);i++)p._data(n,"globalEval",!t||p._data(t[i],"globalEval"))}function fixDefaultChecked(e){M.test(e.type)&&(e.defaultChecked=e.checked)}function buildFragment(e,t,n,i,r){for(var o,a,s,l,u,c,f,h=e.length,m=createSafeFragment(t),g=[],y=0;y"!==f[1]||U.test(a)?0:l:l.firstChild,o=a&&a.childNodes.length;o--;)p.nodeName(c=a.childNodes[o],"tbody")&&!c.childNodes.length&&a.removeChild(c);for(p.merge(g,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=m.lastChild}else g.push(t.createTextNode(a));for(l&&m.removeChild(l),d.appendChecked||p.grep(getAll(g,"input"),fixDefaultChecked),y=0;a=g[y++];)if(i&&p.inArray(a,i)>-1)r&&r.push(a);else if(s=p.contains(a.ownerDocument,a),l=getAll(m.appendChild(a),"script"),s&&setGlobalEval(l),n)for(o=0;a=l[o++];)W.test(a.type||"")&&n.push(a);return l=null,m}function returnTrue(){return!0}function returnFalse(){return!1}function safeActiveElement(){try{return i.activeElement}catch(e){}}function on(e,t,n,i,r,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(i=i||n,n=undefined);for(s in t)on(e,s,n,i,t[s],o);return e}if(null==i&&null==r?(r=n,i=n=undefined):null==r&&("string"==typeof n?(r=i,i=undefined):(r=i,i=n,n=undefined)),!1===r)r=returnFalse;else if(!r)return e;return 1===o&&(a=r,r=function(e){return p().off(e),a.apply(this,arguments)},r.guid=a.guid||(a.guid=p.guid++)),e.each(function(){p.event.add(this,t,r,i,n)})}function manipulationTarget(e,t){return p.nodeName(e,"table")&&p.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function disableScript(e){return e.type=(null!==p.find.attr(e,"type"))+"/"+e.type,e}function restoreScript(e){var t=ie.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function cloneCopyEvent(e,t){if(1===t.nodeType&&p.hasData(e)){var n,i,r,o=p._data(e),a=p._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(i=0,r=s[n].length;i1&&"string"==typeof g&&!d.checkClone&&ne.test(g))return e.each(function(r){var o=e.eq(r);y&&(t[0]=g.call(this,r,o.html())),domManip(o,t,n,i)});if(h&&(c=buildFragment(t,e[0].ownerDocument,!1,e,i),r=c.firstChild,1===c.childNodes.length&&(c=r),r||i)){for(l=p.map(getAll(c,"script"),disableScript),s=l.length;f")).appendTo(t.documentElement),t=(se[0].contentWindow||se[0].contentDocument).document,t.write(),t.close(),n=actualDisplay(e,t),se.detach()),le[e]=n),n}function addGetHookIf(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function vendorPropName(e){if(e in Ce)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=Te.length;n--;)if((e=Te[n]+t)in Ce)return e}function showHide(e,t){for(var n,i,r,o=[],a=0,s=e.length;a=0&&n=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==p.type(e)||e.nodeType||p.isWindow(e))return!1;try{if(e.constructor&&!c.call(e,"constructor")&&!c.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(!d.ownFirst)for(t in e)return c.call(e,t);for(t in e);return t===undefined||c.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[u.call(e)]||"object":typeof e},globalEval:function(t){t&&p.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(m,"ms-").replace(g,y)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,i=0;if(isArrayLike(e))for(n=e.length;ii.cacheLength&&delete cache[e.shift()],cache[t+" "]=n}var e=[];return cache}function markFunction(e){return e[x]=!0,e}function assert(e){var t=p.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function addHandle(e,t){for(var n=e.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=t}function siblingCheck(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||j)-(~e.sourceIndex||j);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function createInputPseudo(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function createButtonPseudo(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function createPositionalPseudo(e){return markFunction(function(t){return t=+t,markFunction(function(n,i){for(var r,o=e([],n.length,t),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))})})}function testContext(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function setFilters(){}function toSelector(e){for(var t=0,n=e.length,i="";t1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function multipleContexts(e,t,n){for(var i=0,r=t.length;i-1&&(o[u]=!(a[u]=d))}}else y=condense(y===a?y.splice(h,y.length):y),r?r(null,a,y,l):_.apply(a,y)})}function matcherFromTokens(e){for(var t,n,r,o=e.length,a=i.relative[e[0].type],s=a||i.relative[" "],l=a?1:0,c=addCombinator(function(e){return e===t},s,!0),d=addCombinator(function(e){return F(t,e)>-1},s,!0),f=[function(e,n,i){var r=!a&&(i||n!==u)||((t=n).nodeType?c(e,n,i):d(e,n,i));return t=null,r}];l1&&elementMatcher(f),l>1&&toSelector(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(B,"$1"),n,l0,r=e.length>0,o=function(o,a,s,l,c){var d,h,g,y=0,v="0",b=o&&[],x=[],w=u,C=o||r&&i.find.TAG("*",c),E=T+=null==w?1:Math.random()||.1,k=C.length;for(c&&(u=a===p||a||c);v!==k&&null!=(d=C[v]);v++){if(r&&d){for(h=0,a||d.ownerDocument===p||(f(d),s=!m);g=e[h++];)if(g(d,a||p,s)){l.push(d);break}c&&(T=E)}n&&((d=!g&&d)&&y--,o&&b.push(d))}if(y+=v,n&&v!==y){for(h=0;g=t[h++];)g(b,x,a,s);if(o){if(y>0)for(;v--;)b[v]||x[v]||(x[v]=D.call(l));x=condense(x)}_.apply(l,x),c&&!o&&x.length>0&&y+t.length>1&&Sizzle.uniqueSort(l)}return c&&(T=E,u=w),b};return n?markFunction(o):o}var t,n,i,r,o,a,s,l,u,c,d,f,p,h,m,g,y,v,b,x="sizzle"+1*new Date,w=e.document,T=0,C=0,E=createCache(),k=createCache(),S=createCache(),N=function(e,t){return e===t&&(d=!0),0},j=1<<31,A={}.hasOwnProperty,L=[],D=L.pop,H=L.push,_=L.push,q=L.slice,F=function(e,t){for(var n=0,i=e.length;n+~]|"+I+")"+I+"*"),X=new RegExp("="+I+"*([^\\]'\"]*?)"+I+"*\\]","g"),U=new RegExp(P),V=new RegExp("^"+R+"$"),Y={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+O+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,ee=/'|\\/g,te=new RegExp("\\\\([\\da-f]{1,6}"+I+"?|("+I+")|.)","ig"),ne=function(e,t,n){var i="0x"+t-65536;return i!==i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},ie=function(){f()};try{_.apply(L=q.call(w.childNodes),w.childNodes),L[w.childNodes.length].nodeType}catch(e){_={apply:L.length?function(e,t){H.apply(e,q.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}n=Sizzle.support={},o=Sizzle.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},f=Sizzle.setDocument=function(e){var t,r,a=e?e.ownerDocument||e:w;return a!==p&&9===a.nodeType&&a.documentElement?(p=a,h=p.documentElement,m=!o(p),(r=p.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ie,!1):r.attachEvent&&r.attachEvent("onunload",ie)),n.attributes=assert(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=assert(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Q.test(p.getElementsByClassName),n.getById=assert(function(e){return h.appendChild(e).id=x,!p.getElementsByName||!p.getElementsByName(x).length}),n.getById?(i.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}},i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}}):(delete i.find.ID,i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),i.find.TAG=n.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},i.find.CLASS=n.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&m)return t.getElementsByClassName(e)},y=[],g=[],(n.qsa=Q.test(p.querySelectorAll))&&(assert(function(e){h.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+I+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+I+"*(?:value|"+O+")"),e.querySelectorAll("[id~="+x+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||g.push(".#.+[+~]")}),assert(function(e){var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+I+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=Q.test(v=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&assert(function(e){n.disconnectedMatch=v.call(e,"div"),v.call(e,"[s!='']:x"),y.push("!=",P)}),g=g.length&&new RegExp(g.join("|")),y=y.length&&new RegExp(y.join("|")),t=Q.test(h.compareDocumentPosition),b=t||Q.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},N=t?function(e,t){if(e===t)return d=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&i||!n.sortDetached&&t.compareDocumentPosition(e)===i?e===p||e.ownerDocument===w&&b(w,e)?-1:t===p||t.ownerDocument===w&&b(w,t)?1:c?F(c,e)-F(c,t):0:4&i?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e===p?-1:t===p?1:r?-1:o?1:c?F(c,e)-F(c,t):0;if(r===o)return siblingCheck(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?siblingCheck(a[i],s[i]):a[i]===w?-1:s[i]===w?1:0},p):p},Sizzle.matches=function(e,t){return Sizzle(e,null,null,t)},Sizzle.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&f(e),t=t.replace(X,"='$1']"),n.matchesSelector&&m&&!S[t+" "]&&(!y||!y.test(t))&&(!g||!g.test(t)))try{var i=v.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return Sizzle(t,p,null,[e]).length>0},Sizzle.contains=function(e,t){return(e.ownerDocument||e)!==p&&f(e),b(e,t)},Sizzle.attr=function(e,t){(e.ownerDocument||e)!==p&&f(e);var r=i.attrHandle[t.toLowerCase()],o=r&&A.call(i.attrHandle,t.toLowerCase())?r(e,t,!m):undefined;return o!==undefined?o:n.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},Sizzle.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},Sizzle.uniqueSort=function(e){var t,i=[],r=0,o=0;if(d=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(N),d){for(;t=e[o++];)t===e[o]&&(r=i.push(o));for(;r--;)e.splice(i[r],1)}return c=null,e},r=Sizzle.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=r(t);return n},i=Sizzle.selectors={cacheLength:50,createPseudo:markFunction,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Sizzle.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Sizzle.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&U.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+I+")"+e+"("+I+"|$)"))&&E(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(i){var r=Sizzle.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(W," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,f,p,h,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!l&&!s,b=!1;if(g){if(o){for(;m;){for(f=t;f=f[m];)if(s?f.nodeName.toLowerCase()===y:1===f.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&v){for(f=g,d=f[x]||(f[x]={}),c=d[f.uniqueID]||(d[f.uniqueID]={}),u=c[e]||[],p=u[0]===T&&u[1],b=p&&u[2],f=p&&g.childNodes[p];f=++p&&f&&f[m]||(b=p=0)||h.pop();)if(1===f.nodeType&&++b&&f===t){c[e]=[T,p,b];break}}else if(v&&(f=t,d=f[x]||(f[x]={}),c=d[f.uniqueID]||(d[f.uniqueID]={}),u=c[e]||[],p=u[0]===T&&u[1],b=p),!1===b)for(;(f=++p&&f&&f[m]||(b=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==y:1!==f.nodeType)||!++b||(v&&(d=f[x]||(f[x]={}),c=d[f.uniqueID]||(d[f.uniqueID]={}),c[e]=[T,b]),f!==t)););return(b-=r)===i||b%i==0&&b/i>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||Sizzle.error("unsupported pseudo: "+e);return r[x]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?markFunction(function(e,n){for(var i,o=r(e,t),a=o.length;a--;)i=F(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:markFunction(function(e){var t=[],n=[],i=s(e.replace(B,"$1"));return i[x]?markFunction(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:markFunction(function(e){return function(t){return Sizzle(e,t).length>0}}),contains:markFunction(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||t.innerText||r(t)).indexOf(e)>-1}}),lang:markFunction(function(e){return V.test(e||"")||Sizzle.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:createPositionalPseudo(function(){return[0]}),last:createPositionalPseudo(function(e,t){return[t-1]}),eq:createPositionalPseudo(function(e,t,n){return[n<0?n+t:n]}),even:createPositionalPseudo(function(e,t){for(var n=0;n=0;)e.push(i);return e}),gt:createPositionalPseudo(function(e,t,n){for(var i=n<0?n+t:n;++i2&&"ID"===(c=u[0]).type&&n.getById&&9===t.nodeType&&m&&i.relative[u[1].type]){if(!(t=(i.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return r;p&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(l=Y.needsContext.test(e)?0:u.length;l--&&(c=u[l],!i.relative[d=c.type]);)if((f=i.find[d])&&(o=f(c.matches[0].replace(te,ne),Z.test(u[0].type)&&testContext(t.parentNode)||t))){if(u.splice(l,1),!(e=o.length&&toSelector(u)))return _.apply(r,o),r;break}}return(p||s(e,h))(o,t,!m,r,!t||Z.test(e)&&testContext(t.parentNode)||t),r},n.sortStable=x.split("").sort(N).join("")===x,n.detectDuplicates=!!d,f(),n.sortDetached=assert(function(e){return 1&e.compareDocumentPosition(p.createElement("div"))}),assert(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||addHandle("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&assert(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||addHandle("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),assert(function(e){return null==e.getAttribute("disabled")})||addHandle(O,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),Sizzle}(e);p.find=v,p.expr=v.selectors,p.expr[":"]=p.expr.pseudos,p.uniqueSort=p.unique=v.uniqueSort,p.text=v.getText,p.isXMLDoc=v.isXML,p.contains=v.contains;var b=function(e,t,n){for(var i=[],r=n!==undefined;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&p(e).is(n))break;i.push(e)}return i},x=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},w=p.expr.match.needsContext,T=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,C=/^.[^:#\[\.,]*$/;p.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?p.find.matchesSelector(i,e)?[i]:[]:p.find.matches(e,p.grep(t,function(e){return 1===e.nodeType}))},p.fn.extend({find:function(e){var t,n=[],i=this,r=i.length;if("string"!=typeof e)return this.pushStack(p(e).filter(function(){for(t=0;t1?p.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(winnow(this,e||[],!1))},not:function(e){return this.pushStack(winnow(this,e||[],!0))},is:function(e){return!!winnow(this,"string"==typeof e&&w.test(e)?p(e):e||[],!1).length}});var E,k=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(p.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||E,"string"==typeof e){if(!(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:k.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof p?t[0]:t,p.merge(this,p.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:i,!0)),T.test(r[1])&&p.isPlainObject(t))for(r in t)p.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if((o=i.getElementById(r[2]))&&o.parentNode){if(o.id!==r[2])return E.find(e);this.length=1,this[0]=o}return this.context=i,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):p.isFunction(e)?"undefined"!=typeof n.ready?n.ready(e):e(p):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),p.makeArray(e,this))}).prototype=p.fn,E=p(i);var S=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};p.fn.extend({has:function(e){var t,n=p(e,this),i=n.length;return this.filter(function(){for(t=0;t-1:1===n.nodeType&&p.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?p.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?p.inArray(this[0],p(e)):p.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(p.uniqueSort(p.merge(this.get(),p(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),p.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return b(e,"parentNode")},parentsUntil:function(e,t,n){return b(e,"parentNode",n)},next:function(e){return sibling(e,"nextSibling")},prev:function(e){return sibling(e,"previousSibling")},nextAll:function(e){return b(e,"nextSibling")},prevAll:function(e){return b(e,"previousSibling")},nextUntil:function(e,t,n){return b(e,"nextSibling",n)},prevUntil:function(e,t,n){return b(e,"previousSibling",n)},siblings:function(e){return x((e.parentNode||{}).firstChild,e)},children:function(e){return x(e.firstChild)},contents:function(e){return p.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:p.merge([],e.childNodes)}},function(e,t){p.fn[e]=function(n,i){var r=p.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=p.filter(i,r)),this.length>1&&(N[e]||(r=p.uniqueSort(r)),S.test(e)&&(r=r.reverse())),this.pushStack(r)}});var j=/\S+/g;p.Callbacks=function(e){e="string"==typeof e?createOptions(e):p.extend({},e);var t,n,i,r,o=[],a=[],s=-1,l=function(){for(r=e.once,i=t=!0;a.length;s=-1)for(n=a.shift();++s-1;)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?p.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=!0,n||u.disable(),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=n||[],n=[e,n.slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},p.extend({Deferred:function(e){var t=[["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 r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return p.Deferred(function(n){p.each(t,function(t,o){var a=p.isFunction(e[t])&&e[t];r[o[1]](function(){var e=a&&a.apply(this,arguments);e&&p.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===i?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?p.extend(e,i):i}},r={};return i.pipe=i.then,p.each(t,function(e,o){var a=o[2],s=o[3];i[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?i:this,arguments),this},r[o[0]+"With"]=a.fireWith}),i.promise(r),e&&e.call(r,r),r},when:function(e){var t,n,i,o=0,a=r.call(arguments),s=a.length,l=1!==s||e&&p.isFunction(e.promise)?s:0,u=1===l?e:p.Deferred(),c=function(e,n,i){return function(o){n[e]=this,i[e]=arguments.length>1?r.call(arguments):o,i===t?u.notifyWith(n,i):--l||u.resolveWith(n,i)}};if(s>1)for(t=new Array(s),n=new Array(s),i=new Array(s);o0||(A.resolveWith(i,[p]),p.fn.triggerHandler&&(p(i).triggerHandler("ready"),p(i).off("ready"))))}}),p.ready.promise=function(t){if(!A)if(A=p.Deferred(),"complete"===i.readyState||"loading"!==i.readyState&&!i.documentElement.doScroll)e.setTimeout(p.ready);else if(i.addEventListener)i.addEventListener("DOMContentLoaded",completed),e.addEventListener("load",completed);else{i.attachEvent("onreadystatechange",completed),e.attachEvent("onload",completed);var n=!1;try{n=null==e.frameElement&&i.documentElement}catch(e){}n&&n.doScroll&&function doScrollCheck(){if(!p.isReady){try{n.doScroll("left")}catch(t){return e.setTimeout(doScrollCheck,50)}detach(),p.ready()}}()}return A.promise(t)},p.ready.promise();var L;for(L in p(d))break;d.ownFirst="0"===L,d.inlineBlockNeedsLayout=!1,p(function(){var e,t,n,r;(n=i.getElementsByTagName("body")[0])&&n.style&&(t=i.createElement("div"),r=i.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",d.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(r))}),function(){var e=i.createElement("div");d.deleteExpando=!0;try{delete e.test}catch(e){d.deleteExpando=!1}e=null}();var D=function(e){var t=p.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)},H=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,_=/([A-Z])/g;p.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?p.cache[e[p.expando]]:e[p.expando])&&!isEmptyDataObject(e)},data:function(e,t,n){return internalData(e,t,n)},removeData:function(e,t){return internalRemoveData(e,t)},_data:function(e,t,n){return internalData(e,t,n,!0)},_removeData:function(e,t){return internalRemoveData(e,t,!0)}}),p.fn.extend({data:function(e,t){var n,i,r,o=this[0],a=o&&o.attributes;if(e===undefined){if(this.length&&(r=p.data(o),1===o.nodeType&&!p._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&(i=a[n].name,0===i.indexOf("data-")&&(i=p.camelCase(i.slice(5)),dataAttr(o,i,r[i])));p._data(o,"parsedAttrs",!0)}return r}return"object"==typeof e?this.each(function(){p.data(this,e)}):arguments.length>1?this.each(function(){p.data(this,e,t)}):o?dataAttr(o,e,p.data(o,e)):undefined},removeData:function(e){return this.each(function(){p.removeData(this,e)})}}),p.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=p._data(e,t),n&&(!i||p.isArray(n)?i=p._data(e,t,p.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=p.queue(e,t),i=n.length,r=n.shift(),o=p._queueHooks(e,t),a=function(){p.dequeue(e,t)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,a,o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return p._data(e,n)||p._data(e,n,{empty:p.Callbacks("once memory").add(function(){p._removeData(e,t+"queue"),p._removeData(e,n)})})}}),p.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length
a",d.leadingWhitespace=3===e.firstChild.nodeType,d.tbody=!e.getElementsByTagName("tbody").length,d.htmlSerialize=!!e.getElementsByTagName("link").length,d.html5Clone="<:nav>"!==i.createElement("nav").cloneNode(!0).outerHTML,n.type="checkbox",n.checked=!0,t.appendChild(n),d.appendChecked=n.checked,e.innerHTML="",d.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,t.appendChild(e),n=i.createElement("input"),n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),d.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,d.noCloneEvent=!!e.addEventListener,e[p.expando]=1,d.attributes=!e.getAttribute(p.expando)}();var $={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:d.htmlSerialize?[0,"",""]:[1,"X
","
"]};$.optgroup=$.option,$.tbody=$.tfoot=$.colgroup=$.caption=$.thead,$.th=$.td;var X=/<|&#?\w+;/,U=/-1&&(y=g.split("."),g=y.shift(),y.sort()),s=g.indexOf(":")<0&&"on"+g,t=t[p.expando]?t:new p.Event(g,"object"==typeof t&&t),t.isTrigger=o?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=r),n=null==n?[t]:p.makeArray(n,[t]),d=p.event.special[g]||{},o||!d.trigger||!1!==d.trigger.apply(r,n))){if(!o&&!d.noBubble&&!p.isWindow(r)){for(u=d.delegateType||g,K.test(u+g)||(l=l.parentNode);l;l=l.parentNode)m.push(l),f=l;f===(r.ownerDocument||i)&&m.push(f.defaultView||f.parentWindow||e)}for(h=0;(l=m[h++])&&!t.isPropagationStopped();)t.type=h>1?u:d.bindType||g,a=(p._data(l,"events")||{})[t.type]&&p._data(l,"handle"),a&&a.apply(l,n),(a=s&&l[s])&&a.apply&&D(l)&&(t.result=a.apply(l,n),!1===t.result&&t.preventDefault());if(t.type=g,!o&&!t.isDefaultPrevented()&&(!d._default||!1===d._default.apply(m.pop(),n))&&D(r)&&s&&r[g]&&!p.isWindow(r)){f=r[s],f&&(r[s]=null),p.event.triggered=g;try{r[g]()}catch(e){}p.event.triggered=undefined,f&&(r[s]=f)}return t.result}},dispatch:function(e){e=p.event.fix(e);var t,n,i,o,a,s=[],l=r.call(arguments),u=(p._data(this,"events")||{})[e.type]||[],c=p.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,e)){for(s=p.event.handlers.call(this,e,u),t=0;(o=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,n=0;(a=o.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(a.namespace)||(e.handleObj=a,e.data=a.data,(i=((p.event.special[a.origType]||{}).handle||a.handler).apply(o.elem,l))!==undefined&&!1===(e.result=i)&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,r,o,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(i=[],n=0;n-1:p.find(r,this,null,[l]).length),i[r]&&i.push(o);i.length&&a.push({elem:l,handlers:i})}return s]","i"),ee=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,te=/\s*$/g,oe=createSafeFragment(i),ae=oe.appendChild(i.createElement("div"));p.extend({htmlPrefilter:function(e){return e.replace(ee,"<$1>")},clone:function(e,t,n){var i,r,o,a,s,l=p.contains(e.ownerDocument,e);if(d.html5Clone||p.isXMLDoc(e)||!Z.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(ae.innerHTML=e.outerHTML,ae.removeChild(o=ae.firstChild)),!(d.noCloneEvent&&d.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||p.isXMLDoc(e)))for(i=getAll(o),s=getAll(e),a=0;null!=(r=s[a]);++a)i[a]&&fixCloneNodeIssues(r,i[a]);if(t)if(n)for(s=s||getAll(e),i=i||getAll(o),a=0;null!=(r=s[a]);a++)cloneCopyEvent(r,i[a]);else cloneCopyEvent(e,o);return i=getAll(o,"script"),i.length>0&&setGlobalEval(i,!l&&getAll(e,"script")),i=s=r=null,o},cleanData:function(e,t){for(var i,r,o,a,s=0,l=p.expando,u=p.cache,c=d.attributes,f=p.event.special;null!=(i=e[s]);s++)if((t||D(i))&&(o=i[l],a=o&&u[o])){if(a.events)for(r in a.events)f[r]?p.event.remove(i,r):p.removeEvent(i,r,a.handle);u[o]&&(delete u[o],c||"undefined"==typeof i.removeAttribute?i[l]=undefined:i.removeAttribute(l),n.push(o))}}}),p.fn.extend({domManip:domManip,detach:function(e){return remove(this,e,!0)},remove:function(e){return remove(this,e)},text:function(e){return R(this,function(e){return e===undefined?p.text(this):this.empty().append((this[0]&&this[0].ownerDocument||i).createTextNode(e))},null,e,arguments.length)},append:function(){return domManip(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){manipulationTarget(this,e).appendChild(e)}})},prepend:function(){return domManip(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=manipulationTarget(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return domManip(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return domManip(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&p.cleanData(getAll(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&p.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return p.clone(this,e,t)})},html:function(e){return R(this,function(e){var t=this[0]||{},n=0,i=this.length;if(e===undefined)return 1===t.nodeType?t.innerHTML.replace(J,""):undefined;if("string"==typeof e&&!te.test(e)&&(d.htmlSerialize||!Z.test(e))&&(d.leadingWhitespace||!B.test(e))&&!$[(P.exec(e)||["",""])[1].toLowerCase()]){e=p.htmlPrefilter(e);try{for(;nt",u.childNodes[0].style.borderCollapse="separate",c=u.getElementsByTagName("td"),c[0].style.cssText="margin:0;border:0;padding:0;display:none",(o=0===c[0].offsetHeight)&&(c[0].style.display="",c[1].style.display="none",o=0===c[0].offsetHeight)),f.removeChild(l)}var t,n,r,o,a,s,l=i.createElement("div"),u=i.createElement("div");u.style&&(u.style.cssText="float:left;opacity:.5",d.opacity="0.5"===u.style.opacity,d.cssFloat=!!u.style.cssFloat,u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",d.clearCloneStyle="content-box"===u.style.backgroundClip,l=i.createElement("div"),l.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",u.innerHTML="",l.appendChild(u),d.boxSizing=""===u.style.boxSizing||""===u.style.MozBoxSizing||""===u.style.WebkitBoxSizing,p.extend(d,{reliableHiddenOffsets:function(){return null==t&&computeStyleTests(),o},boxSizingReliable:function(){return null==t&&computeStyleTests(),r},pixelMarginRight:function(){return null==t&&computeStyleTests(),n},pixelPosition:function(){return null==t&&computeStyleTests(),t},reliableMarginRight:function(){return null==t&&computeStyleTests(),a},reliableMarginLeft:function(){return null==t&&computeStyleTests(),s}}))}();var pe,he,me=/^(top|right|bottom|left)$/;e.getComputedStyle?(pe=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},he=function(e,t,n){var i,r,o,a,s=e.style;return n=n||pe(e),a=n?n.getPropertyValue(t)||n[t]:undefined,""!==a&&a!==undefined||p.contains(e.ownerDocument,e)||(a=p.style(e,t)),n&&!d.pixelMarginRight()&&ce.test(a)&&ue.test(t)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o),a===undefined?a:a+""}):fe.currentStyle&&(pe=function(e){return e.currentStyle},he=function(e,t,n){var i,r,o,a,s=e.style;return n=n||pe(e),a=n?n[t]:undefined,null==a&&s&&s[t]&&(a=s[t]),ce.test(a)&&!me.test(t)&&(i=s.left,r=e.runtimeStyle,o=r&&r.left,o&&(r.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=i,o&&(r.left=o)),a===undefined?a:a+""||"auto"});var ge=/alpha\([^)]*\)/i,ye=/opacity\s*=\s*([^)]*)/i,ve=/^(none|table(?!-c[ea]).+)/,be=new RegExp("^("+q+")(.*)$","i"),xe={position:"absolute",visibility:"hidden",display:"block"},we={letterSpacing:"0",fontWeight:"400"},Te=["Webkit","O","Moz","ms"],Ce=i.createElement("div").style;p.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=he(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:d.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=p.camelCase(t),l=e.style;if(t=p.cssProps[s]||(p.cssProps[s]=vendorPropName(s)||s),a=p.cssHooks[t]||p.cssHooks[s],n===undefined)return a&&"get"in a&&(r=a.get(e,!1,i))!==undefined?r:l[t];if(o=typeof n,"string"===o&&(r=F.exec(n))&&r[1]&&(n=adjustCSS(e,t,r),o="number"),null!=n&&n===n&&("number"===o&&(n+=r&&r[3]||(p.cssNumber[s]?"":"px")),d.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),!(a&&"set"in a&&(n=a.set(e,n,i))===undefined)))try{l[t]=n}catch(e){}}},css:function(e,t,n,i){var r,o,a,s=p.camelCase(t);return t=p.cssProps[s]||(p.cssProps[s]=vendorPropName(s)||s),a=p.cssHooks[t]||p.cssHooks[s],a&&"get"in a&&(o=a.get(e,!0,n)),o===undefined&&(o=he(e,t,i)),"normal"===o&&t in we&&(o=we[t]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),p.each(["height","width"],function(e,t){p.cssHooks[t]={get:function(e,n,i){if(n)return ve.test(p.css(e,"display"))&&0===e.offsetWidth?de(e,xe,function(){return getWidthOrHeight(e,t,i)}):getWidthOrHeight(e,t,i)},set:function(e,n,i){var r=i&&pe(e);return setPositiveNumber(e,n,i?augmentWidthOrHeight(e,t,i,d.boxSizing&&"border-box"===p.css(e,"boxSizing",!1,r),r):0)}}}),d.opacity||(p.cssHooks.opacity={get:function(e,t){return ye.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,r=p.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=i&&i.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===p.trim(o.replace(ge,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||i&&!i.filter)||(n.filter=ge.test(o)?o.replace(ge,r):o+" "+r)}}),p.cssHooks.marginRight=addGetHookIf(d.reliableMarginRight,function(e,t){if(t)return de(e,{display:"inline-block"},he,[e,"marginRight"])}),p.cssHooks.marginLeft=addGetHookIf(d.reliableMarginLeft,function(e,t){if(t)return(parseFloat(he(e,"marginLeft"))||(p.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-de(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+"px"}),p.each({margin:"",padding:"",border:"Width"},function(e,t){p.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+O[i]+t]=o[i]||o[i-2]||o[0];return r}},ue.test(e)||(p.cssHooks[e+t].set=setPositiveNumber)}),p.fn.extend({css:function(e,t){return R(this,function(e,t,n){var i,r,o={},a=0;if(p.isArray(t)){for(i=pe(e),r=t.length;a1)},show:function(){return showHide(this,!0)},hide:function(){return showHide(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){I(this)?p(this).show():p(this).hide()})}}),p.Tween=Tween,Tween.prototype={constructor:Tween,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||p.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(p.cssNumber[n]?"":"px")},cur:function(){var e=Tween.propHooks[this.prop];return e&&e.get?e.get(this):Tween.propHooks._default.get(this)},run:function(e){var t,n=Tween.propHooks[this.prop];return this.options.duration?this.pos=t=p.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Tween.propHooks._default.set(this),this}},Tween.prototype.init.prototype=Tween.prototype,Tween.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=p.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){p.fx.step[e.prop]?p.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[p.cssProps[e.prop]]&&!p.cssHooks[e.prop]?e.elem[e.prop]=e.now:p.style(e.elem,e.prop,e.now+e.unit)}}},Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},p.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},p.fx=Tween.prototype.init,p.fx.step={};var Ee,ke,Se=/^(?:toggle|show|hide)$/,Ne=/queueHooks$/;p.Animation=p.extend(Animation,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return adjustCSS(n.elem,e,F.exec(t),n),n}]},tweener:function(e,t){p.isFunction(e)?(t=e,e=["*"]):e=e.match(j);for(var n,i=0,r=e.length;i
a",e=n.getElementsByTagName("a")[0],t.setAttribute("type","checkbox"),n.appendChild(t),e=n.getElementsByTagName("a")[0],e.style.cssText="top:1px",d.getSetAttribute="t"!==n.className,d.style=/top/.test(e.getAttribute("style")),d.hrefNormalized="/a"===e.getAttribute("href"),d.checkOn=!!t.value,d.optSelected=o.selected,d.enctype=!!i.createElement("form").enctype,r.disabled=!0,d.optDisabled=!o.disabled,t=i.createElement("input"),t.setAttribute("value",""),d.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),d.radioValue="t"===t.value}();var je=/\r/g,Ae=/[\x20\t\r\n\f]+/g;p.fn.extend({val:function(e){var t,n,i,r=this[0];if(arguments.length)return i=p.isFunction(e),this.each(function(n){var r;1===this.nodeType&&(r=i?e.call(this,n,p(this).val()):e,null==r?r="":"number"==typeof r?r+="":p.isArray(r)&&(r=p.map(r,function(e){return null==e?"":e+""})),(t=p.valHooks[this.type]||p.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&t.set(this,r,"value")!==undefined||(this.value=r))});if(r)return(t=p.valHooks[r.type]||p.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&(n=t.get(r,"value"))!==undefined?n:(n=r.value,"string"==typeof n?n.replace(je,""):null==n?"":n)}}),p.extend({valHooks:{option:{get:function(e){var t=p.find.attr(e,"value");return null!=t?t:p.trim(p.text(e)).replace(Ae," ")}},select:{get:function(e){for(var t,n,i=e.options,r=e.selectedIndex,o="select-one"===e.type||r<0,a=o?null:[],s=o?r+1:i.length,l=r<0?s:o?r:0;l-1)try{i.selected=n=!0}catch(e){i.scrollHeight}else i.selected=!1;return n||(e.selectedIndex=-1),r}}}}),p.each(["radio","checkbox"],function(){p.valHooks[this]={set:function(e,t){if(p.isArray(t))return e.checked=p.inArray(p(e).val(),t)>-1}},d.checkOn||(p.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Le,De,He=p.expr.attrHandle,_e=/^(?:checked|selected)$/i,qe=d.getSetAttribute,Fe=d.input;p.fn.extend({attr:function(e,t){return R(this,p.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){p.removeAttr(this,e)})}}),p.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?p.prop(e,t,n):(1===o&&p.isXMLDoc(e)||(t=t.toLowerCase(),r=p.attrHooks[t]||(p.expr.match.bool.test(t)?De:Le)),n!==undefined?null===n?void p.removeAttr(e,t):r&&"set"in r&&(i=r.set(e,n,t))!==undefined?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:(i=p.find.attr(e,t),null==i?undefined:i))},attrHooks:{type:{set:function(e,t){if(!d.radioValue&&"radio"===t&&p.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i,r=0,o=t&&t.match(j);if(o&&1===e.nodeType)for(;n=o[r++];)i=p.propFix[n]||n,p.expr.match.bool.test(n)?Fe&&qe||!_e.test(n)?e[i]=!1:e[p.camelCase("default-"+n)]=e[i]=!1:p.attr(e,n,""),e.removeAttribute(qe?n:i)}}),De={set:function(e,t,n){return!1===t?p.removeAttr(e,n):Fe&&qe||!_e.test(n)?e.setAttribute(!qe&&p.propFix[n]||n,n):e[p.camelCase("default-"+n)]=e[n]=!0,n}},p.each(p.expr.match.bool.source.match(/\w+/g),function(e,t){var n=He[t]||p.find.attr;Fe&&qe||!_e.test(t)?He[t]=function(e,t,i){var r,o;return i||(o=He[t],He[t]=r,r=null!=n(e,t,i)?t.toLowerCase():null,He[t]=o),r}:He[t]=function(e,t,n){if(!n)return e[p.camelCase("default-"+t)]?t.toLowerCase():null}}),Fe&&qe||(p.attrHooks.value={set:function(e,t,n){if(!p.nodeName(e,"input"))return Le&&Le.set(e,t,n);e.defaultValue=t}}),qe||(Le={set:function(e,t,n){var i=e.getAttributeNode(n);if(i||e.setAttributeNode(i=e.ownerDocument.createAttribute(n)),i.value=t+="","value"===n||t===e.getAttribute(n))return t}},He.id=He.name=He.coords=function(e,t,n){var i;if(!n)return(i=e.getAttributeNode(t))&&""!==i.value?i.value:null},p.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:Le.set},p.attrHooks.contenteditable={set:function(e,t,n){Le.set(e,""!==t&&t,n)}},p.each(["width","height"],function(e,t){p.attrHooks[t]={set:function(e,n){if(""===n)return e.setAttribute(t,"auto"),n}}})),d.style||(p.attrHooks.style={get:function(e){return e.style.cssText||undefined},set:function(e,t){return e.style.cssText=t+""}});var Oe=/^(?:input|select|textarea|button|object)$/i,Ie=/^(?:a|area)$/i;p.fn.extend({prop:function(e,t){return R(this,p.prop,e,t,arguments.length>1)},removeProp:function(e){return e=p.propFix[e]||e,this.each(function(){try{this[e]=undefined,delete this[e]}catch(e){}})}}),p.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&p.isXMLDoc(e)||(t=p.propFix[t]||t,r=p.propHooks[t]),n!==undefined?r&&"set"in r&&(i=r.set(e,n,t))!==undefined?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=p.find.attr(e,"tabindex");return t?parseInt(t,10):Oe.test(e.nodeName)||Ie.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),d.hrefNormalized||p.each(["href","src"],function(e,t){p.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),d.optSelected||(p.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),p.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){p.propFix[this.toLowerCase()]=this}),d.enctype||(p.propFix.enctype="encoding");var Re=/[\t\r\n\f]/g;p.fn.extend({addClass:function(e){var t,n,i,r,o,a,s,l=0;if(p.isFunction(e))return this.each(function(t){p(this).addClass(e.call(this,t,getClass(this)))});if("string"==typeof e&&e)for(t=e.match(j)||[];n=this[l++];)if(r=getClass(n),i=1===n.nodeType&&(" "+r+" ").replace(Re," ")){for(a=0;o=t[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");s=p.trim(i),r!==s&&p.attr(n,"class",s)}return this},removeClass:function(e){var t,n,i,r,o,a,s,l=0;if(p.isFunction(e))return this.each(function(t){p(this).removeClass(e.call(this,t,getClass(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(j)||[];n=this[l++];)if(r=getClass(n),i=1===n.nodeType&&(" "+r+" ").replace(Re," ")){for(a=0;o=t[a++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");s=p.trim(i),r!==s&&p.attr(n,"class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):p.isFunction(e)?this.each(function(n){p(this).toggleClass(e.call(this,n,getClass(this),t),t)}):this.each(function(){var t,i,r,o;if("string"===n)for(i=0,r=p(this),o=e.match(j)||[];t=o[i++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else e!==undefined&&"boolean"!==n||(t=getClass(this),t&&p._data(this,"__className__",t), p.attr(this,"class",t||!1===e?"":p._data(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+getClass(n)+" ").replace(Re," ").indexOf(t)>-1)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(e,t){p.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),p.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var Me=e.location,Pe=p.now(),We=/\?/,Be=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;p.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,i=null,r=p.trim(t+"");return r&&!p.trim(r.replace(Be,function(e,t,r,o){return n&&t&&(i=0),0===i?e:(n=r||t,i+=!o-!r,"")}))?Function("return "+r)():p.error("Invalid JSON: "+t)},p.parseXML=function(t){var n,i;if(!t||"string"!=typeof t)return null;try{e.DOMParser?(i=new e.DOMParser,n=i.parseFromString(t,"text/xml")):(n=new e.ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(t))}catch(e){n=undefined}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||p.error("Invalid XML: "+t),n};var ze=/#.*$/,$e=/([?&])_=[^&]*/,Xe=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ue=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ve=/^(?:GET|HEAD)$/,Ye=/^\/\//,Ge=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ke={},Qe={},Je="*/".concat("*"),Ze=Me.href,et=Ge.exec(Ze.toLowerCase())||[];p.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ze,type:"GET",isLocal:Ue.test(et[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Je,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":p.parseJSON,"text xml":p.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?ajaxExtend(ajaxExtend(e,p.ajaxSettings),t):ajaxExtend(p.ajaxSettings,e)},ajaxPrefilter:addToPrefiltersOrTransports(Ke),ajaxTransport:addToPrefiltersOrTransports(Qe),ajax:function(t,n){function done(t,n,i,r){var c,v,b,w,C,E=n;2!==x&&(x=2,s&&e.clearTimeout(s),u=undefined,a=r||"",T.readyState=t>0?4:0,c=t>=200&&t<300||304===t,i&&(w=ajaxHandleResponses(d,T,i)),w=ajaxConvert(d,w,T,c),c?(d.ifModified&&(C=T.getResponseHeader("Last-Modified"),C&&(p.lastModified[o]=C),(C=T.getResponseHeader("etag"))&&(p.etag[o]=C)),204===t||"HEAD"===d.type?E="nocontent":304===t?E="notmodified":(E=w.state,v=w.data,b=w.error,c=!b)):(b=E,!t&&E||(E="error",t<0&&(t=0))),T.status=t,T.statusText=(n||E)+"",c?m.resolveWith(f,[v,E,T]):m.rejectWith(f,[T,E,b]),T.statusCode(y),y=undefined,l&&h.trigger(c?"ajaxSuccess":"ajaxError",[T,d,c?v:b]),g.fireWith(f,[T,E]),l&&(h.trigger("ajaxComplete",[T,d]),--p.active||p.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=undefined),n=n||{};var i,r,o,a,s,l,u,c,d=p.ajaxSetup({},n),f=d.context||d,h=d.context&&(f.nodeType||f.jquery)?p(f):p.event,m=p.Deferred(),g=p.Callbacks("once memory"),y=d.statusCode||{},v={},b={},x=0,w="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!c)for(c={};t=Xe.exec(a);)c[t[1].toLowerCase()]=t[2];t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return x||(e=b[n]=b[n]||e,v[e]=t),this},overrideMimeType:function(e){return x||(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(x<2)for(t in e)y[t]=[y[t],e[t]];else T.always(e[T.status]);return this},abort:function(e){var t=e||w;return u&&u.abort(t),done(0,t),this}};if(m.promise(T).complete=g.add,T.success=T.done,T.error=T.fail,d.url=((t||d.url||Ze)+"").replace(ze,"").replace(Ye,et[1]+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=p.trim(d.dataType||"*").toLowerCase().match(j)||[""],null==d.crossDomain&&(i=Ge.exec(d.url.toLowerCase()),d.crossDomain=!(!i||i[1]===et[1]&&i[2]===et[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(et[3]||("http:"===et[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=p.param(d.data,d.traditional)),inspectPrefiltersOrTransports(Ke,d,n,T),2===x)return T;l=p.event&&d.global,l&&0==p.active++&&p.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ve.test(d.type),o=d.url,d.hasContent||(d.data&&(o=d.url+=(We.test(o)?"&":"?")+d.data,delete d.data),!1===d.cache&&(d.url=$e.test(o)?o.replace($e,"$1_="+Pe++):o+(We.test(o)?"&":"?")+"_="+Pe++)),d.ifModified&&(p.lastModified[o]&&T.setRequestHeader("If-Modified-Since",p.lastModified[o]),p.etag[o]&&T.setRequestHeader("If-None-Match",p.etag[o])),(d.data&&d.hasContent&&!1!==d.contentType||n.contentType)&&T.setRequestHeader("Content-Type",d.contentType),T.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Je+"; q=0.01":""):d.accepts["*"]);for(r in d.headers)T.setRequestHeader(r,d.headers[r]);if(d.beforeSend&&(!1===d.beforeSend.call(f,T,d)||2===x))return T.abort();w="abort";for(r in{success:1,error:1,complete:1})T[r](d[r]);if(u=inspectPrefiltersOrTransports(Qe,d,n,T)){if(T.readyState=1,l&&h.trigger("ajaxSend",[T,d]),2===x)return T;d.async&&d.timeout>0&&(s=e.setTimeout(function(){T.abort("timeout")},d.timeout));try{x=1,u.send(v,done)}catch(e){if(!(x<2))throw e;done(-1,e)}}else done(-1,"No Transport");return T},getJSON:function(e,t,n){return p.get(e,t,n,"json")},getScript:function(e,t){return p.get(e,undefined,t,"script")}}),p.each(["get","post"],function(e,t){p[t]=function(e,n,i,r){return p.isFunction(n)&&(r=r||i,i=n,n=undefined),p.ajax(p.extend({url:e,type:t,dataType:r,data:n,success:i},p.isPlainObject(e)&&e))}}),p._evalUrl=function(e){return p.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},p.fn.extend({wrapAll:function(e){if(p.isFunction(e))return this.each(function(t){p(this).wrapAll(e.call(this,t))});if(this[0]){var t=p(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return p.isFunction(e)?this.each(function(t){p(this).wrapInner(e.call(this,t))}):this.each(function(){var t=p(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=p.isFunction(e);return this.each(function(n){p(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){p.nodeName(this,"body")||p(this).replaceWith(this.childNodes)}).end()}}),p.expr.filters.hidden=function(e){return d.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:filterHidden(e)},p.expr.filters.visible=function(e){return!p.expr.filters.hidden(e)};var tt=/%20/g,nt=/\[\]$/,it=/\r?\n/g,rt=/^(?:submit|button|image|reset|file)$/i,ot=/^(?:input|select|textarea|keygen)/i;p.param=function(e,t){var n,i=[],r=function(e,t){t=p.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(t===undefined&&(t=p.ajaxSettings&&p.ajaxSettings.traditional),p.isArray(e)||e.jquery&&!p.isPlainObject(e))p.each(e,function(){r(this.name,this.value)});else for(n in e)buildParams(n,e[n],t,r);return i.join("&").replace(tt,"+")},p.fn.extend({serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=p.prop(this,"elements");return e?p.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!p(this).is(":disabled")&&ot.test(this.nodeName)&&!rt.test(e)&&(this.checked||!M.test(e))}).map(function(e,t){var n=p(this).val();return null==n?null:p.isArray(n)?p.map(n,function(e){return{name:t.name,value:e.replace(it,"\r\n")}}):{name:t.name,value:n.replace(it,"\r\n")}}).get()}}),p.ajaxSettings.xhr=e.ActiveXObject!==undefined?function(){return this.isLocal?createActiveXHR():i.documentMode>8?createStandardXHR():/^(get|post|head|put|delete|options)$/i.test(this.type)&&createStandardXHR()||createActiveXHR()}:createStandardXHR;var at=0,st={},lt=p.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in st)st[e](undefined,!0)}),d.cors=!!lt&&"withCredentials"in lt,lt=d.ajax=!!lt,lt&&p.ajaxTransport(function(t){if(!t.crossDomain||d.cors){var n;return{send:function(i,r){var o,a=t.xhr(),s=++at;if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(o in i)i[o]!==undefined&&a.setRequestHeader(o,i[o]+"");a.send(t.hasContent&&t.data||null),n=function(e,i){var o,l,u;if(n&&(i||4===a.readyState))if(delete st[s],n=undefined,a.onreadystatechange=p.noop,i)4!==a.readyState&&a.abort();else{u={},o=a.status,"string"==typeof a.responseText&&(u.text=a.responseText);try{l=a.statusText}catch(e){l=""}o||!t.isLocal||t.crossDomain?1223===o&&(o=204):o=u.text?200:404}u&&r(o,l,u,a.getAllResponseHeaders())},t.async?4===a.readyState?e.setTimeout(n):a.onreadystatechange=st[s]=n:n()},abort:function(){n&&n(undefined,!0)}}}}),p.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return p.globalEval(e),e}}}),p.ajaxPrefilter("script",function(e){e.cache===undefined&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),p.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=i.head||p("head")[0]||i.documentElement;return{send:function(r,o){t=i.createElement("script"),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||o(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(undefined,!0)}}}});var ut=[],ct=/(=)\?(?=&|$)|\?\?/;p.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=ut.pop()||p.expando+"_"+Pe++;return this[e]=!0,e}}),p.ajaxPrefilter("json jsonp",function(t,n,i){var r,o,a,s=!1!==t.jsonp&&(ct.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ct.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=p.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(ct,"$1"+r):!1!==t.jsonp&&(t.url+=(We.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||p.error(r+" was not called"),a[0]},t.dataTypes[0]="json",o=e[r],e[r]=function(){a=arguments},i.always(function(){o===undefined?p(e).removeProp(r):e[r]=o,t[r]&&(t.jsonpCallback=n.jsonpCallback,ut.push(r)),a&&p.isFunction(o)&&o(a[0]),a=o=undefined}),"script"}),p.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||i;var r=T.exec(e),o=!n&&[];return r?[t.createElement(r[1])]:(r=buildFragment([e],t,o),o&&o.length&&p(o).remove(),p.merge([],r.childNodes))};var dt=p.fn.load;p.fn.load=function(e,t,n){if("string"!=typeof e&&dt)return dt.apply(this,arguments);var i,r,o,a=this,s=e.indexOf(" ");return s>-1&&(i=p.trim(e.slice(s,e.length)),e=e.slice(0,s)),p.isFunction(t)?(n=t,t=undefined):t&&"object"==typeof t&&(r="POST"),a.length>0&&p.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(i?p("
").append(p.parseHTML(e)).find(i):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},p.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){p.fn[t]=function(e){return this.on(t,e)}}),p.expr.filters.animated=function(e){return p.grep(p.timers,function(t){return e===t.elem}).length},p.offset={setOffset:function(e,t,n){var i,r,o,a,s,l,u,c=p.css(e,"position"),d=p(e),f={};"static"===c&&(e.style.position="relative"),s=d.offset(),o=p.css(e,"top"),l=p.css(e,"left"),u=("absolute"===c||"fixed"===c)&&p.inArray("auto",[o,l])>-1,u?(i=d.position(),a=i.top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),p.isFunction(t)&&(t=t.call(e,n,p.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+r),"using"in t?t.using.call(e,f):d.css(f)}},p.fn.extend({offset:function(e){if(arguments.length)return e===undefined?this:this.each(function(t){p.offset.setOffset(this,e,t)});var t,n,i={top:0,left:0},r=this[0],o=r&&r.ownerDocument;if(o)return t=o.documentElement,p.contains(t,r)?("undefined"!=typeof r.getBoundingClientRect&&(i=r.getBoundingClientRect()),n=getWindow(o),{top:i.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:i.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):i},position:function(){if(this[0]){var e,t,n={top:0,left:0},i=this[0];return"fixed"===p.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),p.nodeName(e[0],"html")||(n=e.offset()),n.top+=p.css(e[0],"borderTopWidth",!0),n.left+=p.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-p.css(i,"marginTop",!0),left:t.left-n.left-p.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&!p.nodeName(e,"html")&&"static"===p.css(e,"position");)e=e.offsetParent;return e||fe})}}),p.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);p.fn[e]=function(i){return R(this,function(e,i,r){var o=getWindow(e);if(r===undefined)return o?t in o?o[t]:o.document.documentElement[i]:e[i];o?o.scrollTo(n?p(o).scrollLeft():r,n?r:p(o).scrollTop()):e[i]=r},e,i,arguments.length,null)}}),p.each(["top","left"],function(e,t){p.cssHooks[t]=addGetHookIf(d.pixelPosition,function(e,n){if(n)return n=he(e,t),ce.test(n)?p(e).position()[t]+"px":n})}),p.each({Height:"height",Width:"width"},function(e,t){p.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){p.fn[i]=function(i,r){var o=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===r?"margin":"border");return R(this,function(t,n,i){var r;return p.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):i===undefined?p.css(t,n,a):p.style(t,n,i,a)},t,o?i:undefined,o,null)}})}),p.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),p.fn.size=function(){return this.length},p.fn.andSelf=p.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return p});var ft=e.jQuery,pt=e.$;return p.noConflict=function(t){return e.$===p&&(e.$=pt),t&&e.jQuery===p&&(e.jQuery=ft),p},t||(e.jQuery=e.$=p),p}),function(e,t){"use strict";e.rails!==t&&e.error("jquery-ujs has already been loaded!");var n,i=e(document);e.rails=n={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:"button[data-remote]:not([form]):not(form button), button[data-confirm]:not([form]):not(form button)",inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",disableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",requiredInputSelector:"input[name][required]:not([disabled]), textarea[name][required]:not([disabled])",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]",csrfToken:function(){return e("meta[name=csrf-token]").attr("content")},csrfParam:function(){return e("meta[name=csrf-param]").attr("content")},CSRFProtection:function(e){var t=n.csrfToken();t&&e.setRequestHeader("X-CSRF-Token",t)},refreshCSRFTokens:function(){e('form input[name="'+n.csrfParam()+'"]').val(n.csrfToken())},fire:function(t,n,i){var r=e.Event(n);return t.trigger(r,i),!1!==r.result},confirm:function(e){return confirm(e)},ajax:function(t){return e.ajax(t)},href:function(e){return e[0].href},isRemote:function(e){return e.data("remote")!==t&&!1!==e.data("remote")},handleRemote:function(i){var r,o,a,s,l,u;if(n.fire(i,"ajax:before")){if(s=i.data("with-credentials")||null,l=i.data("type")||e.ajaxSettings&&e.ajaxSettings.dataType,i.is("form")){r=i.data("ujs:submit-button-formmethod")||i.attr("method"),o=i.data("ujs:submit-button-formaction")||i.attr("action"),a=e(i[0]).serializeArray();var c=i.data("ujs:submit-button");c&&(a.push(c),i.data("ujs:submit-button",null)),i.data("ujs:submit-button-formmethod",null),i.data("ujs:submit-button-formaction",null)}else i.is(n.inputChangeSelector)?(r=i.data("method"),o=i.data("url"),a=i.serialize(),i.data("params")&&(a=a+"&"+i.data("params"))):i.is(n.buttonClickSelector)?(r=i.data("method")||"get",o=i.data("url"),a=i.serialize(),i.data("params")&&(a=a+"&"+i.data("params"))):(r=i.data("method"),o=n.href(i),a=i.data("params")||null);return u={type:r||"GET",data:a,dataType:l,beforeSend:function(e,r){if(r.dataType===t&&e.setRequestHeader("accept","*/*;q=0.5, "+r.accepts.script),!n.fire(i,"ajax:beforeSend",[e,r]))return!1;i.trigger("ajax:send",e)},success:function(e,t,n){i.trigger("ajax:success",[e,t,n])},complete:function(e,t){i.trigger("ajax:complete",[e,t])},error:function(e,t,n){i.trigger("ajax:error",[e,t,n])},crossDomain:n.isCrossDomain(o)},s&&(u.xhrFields={withCredentials:s}),o&&(u.url=o),n.ajax(u)}return!1},isCrossDomain:function(e){var t=document.createElement("a");t.href=location.href;var n=document.createElement("a");try{return n.href=e,n.href=n.href,!((!n.protocol||":"===n.protocol)&&!n.host||t.protocol+"//"+t.host==n.protocol+"//"+n.host)}catch(e){return!0}},handleMethod:function(i){var r=n.href(i),o=i.data("method"),a=i.attr("target"),s=n.csrfToken(),l=n.csrfParam(),u=e('
'),c='';l===t||s===t||n.isCrossDomain(r)||(c+=''),a&&u.attr("target",a),u.hide().append(c).appendTo("body"),u.submit()},formElements:function(t,n){return t.is("form")?e(t[0].elements).filter(n):t.find(n)},disableFormElements:function(t){n.formElements(t,n.disableSelector).each(function(){n.disableFormElement(e(this))})},disableFormElement:function(e){var n,i;n=e.is("button")?"html":"val",i=e.data("disable-with"),i!==t&&(e.data("ujs:enable-with",e[n]()),e[n](i)),e.prop("disabled",!0),e.data("ujs:disabled",!0)},enableFormElements:function(t){n.formElements(t,n.enableSelector).each(function(){n.enableFormElement(e(this))})},enableFormElement:function(e){var n=e.is("button")?"html":"val";e.data("ujs:enable-with")!==t&&(e[n](e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.prop("disabled",!1),e.removeData("ujs:disabled")},allowAction:function(e){var t,i=e.data("confirm"),r=!1;if(!i)return!0;if(n.fire(e,"confirm")){try{r=n.confirm(i)}catch(e){(console.error||console.log).call(console,e.stack||e)}t=n.fire(e,"confirm:complete",[r])}return r&&t},blankInputs:function(t,n,i){var r,o,a,s,l=e(),u=n||"input,textarea",c=t.find(u),d={};return c.each(function(){r=e(this),r.is("input[type=radio]")?(s=r.attr("name"),d[s]||(0===t.find('input[type=radio]:checked[name="'+s+'"]').length&&(a=t.find('input[type=radio][name="'+s+'"]'),l=l.add(a)),d[s]=s)):(o=r.is("input[type=checkbox],input[type=radio]")?r.is(":checked"):!!r.val())===i&&(l=l.add(r))}),!!l.length&&l},nonBlankInputs:function(e,t){return n.blankInputs(e,t,!0)},stopEverything:function(t){return e(t.target).trigger("ujs:everythingStopped"),t.stopImmediatePropagation(),!1},disableElement:function(e){var i=e.data("disable-with");i!==t&&(e.data("ujs:enable-with",e.html()),e.html(i)),e.bind("click.railsDisable",function(e){return n.stopEverything(e)}),e.data("ujs:disabled",!0)},enableElement:function(e){e.data("ujs:enable-with")!==t&&(e.html(e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.unbind("click.railsDisable"),e.removeData("ujs:disabled")}},n.fire(i,"rails:attachBindings")&&(e.ajaxPrefilter(function(e,t,i){e.crossDomain||n.CSRFProtection(i)}),e(window).on("pageshow.rails",function(){e(e.rails.enableSelector).each(function(){var t=e(this);t.data("ujs:disabled")&&e.rails.enableFormElement(t)}),e(e.rails.linkDisableSelector).each(function(){var t=e(this);t.data("ujs:disabled")&&e.rails.enableElement(t)})}),i.on("ajax:complete",n.linkDisableSelector,function(){n.enableElement(e(this))}),i.on("ajax:complete",n.buttonDisableSelector,function(){n.enableFormElement(e(this))}),i.on("click.rails",n.linkClickSelector,function(t){var i=e(this),r=i.data("method"),o=i.data("params"),a=t.metaKey||t.ctrlKey;if(!n.allowAction(i))return n.stopEverything(t);if(!a&&i.is(n.linkDisableSelector)&&n.disableElement(i),n.isRemote(i)){if(a&&(!r||"GET"===r)&&!o)return!0;var s=n.handleRemote(i);return!1===s?n.enableElement(i):s.fail(function(){n.enableElement(i)}),!1}return r?(n.handleMethod(i),!1):void 0}),i.on("click.rails",n.buttonClickSelector,function(t){var i=e(this);if(!n.allowAction(i)||!n.isRemote(i))return n.stopEverything(t);i.is(n.buttonDisableSelector)&&n.disableFormElement(i);var r=n.handleRemote(i);return!1===r?n.enableFormElement(i):r.fail(function(){n.enableFormElement(i)}),!1}),i.on("change.rails",n.inputChangeSelector,function(t){var i=e(this);return n.allowAction(i)&&n.isRemote(i)?(n.handleRemote(i),!1):n.stopEverything(t)}),i.on("submit.rails",n.formSubmitSelector,function(i){var r,o,a=e(this),s=n.isRemote(a);if(!n.allowAction(a))return n.stopEverything(i);if(a.attr("novalidate")===t)if(a.data("ujs:formnovalidate-button")===t){if((r=n.blankInputs(a,n.requiredInputSelector,!1))&&n.fire(a,"ajax:aborted:required",[r]))return n.stopEverything(i)}else a.data("ujs:formnovalidate-button",t);if(s){if(o=n.nonBlankInputs(a,n.fileInputSelector)){setTimeout(function(){n.disableFormElements(a)},13);var l=n.fire(a,"ajax:aborted:file",[o]);return l||setTimeout(function(){n.enableFormElements(a)},13),l}return n.handleRemote(a),!1}setTimeout(function(){n.disableFormElements(a)},13)}),i.on("click.rails",n.formInputClickSelector,function(t){var i=e(this);if(!n.allowAction(i))return n.stopEverything(t);var r=i.attr("name"),o=r?{name:r,value:i.val()}:null,a=i.closest("form");0===a.length&&(a=e("#"+i.attr("form"))),a.data("ujs:submit-button",o),a.data("ujs:formnovalidate-button",i.attr("formnovalidate")),a.data("ujs:submit-button-formaction",i.attr("formaction")),a.data("ujs:submit-button-formmethod",i.attr("formmethod"))}),i.on("ajax:send.rails",n.formSubmitSelector,function(t){this===t.target&&n.disableFormElements(e(this))}),i.on("ajax:complete.rails",n.formSubmitSelector,function(t){this===t.target&&n.enableFormElements(e(this))}),e(function(){n.refreshCSRFTokens()}))}(jQuery),function(y,v,b){function n(e,t,n){var i=v.createElement(e);return t&&(i.id=ne+t),n&&(i.style.cssText=n),y(i)}function o(){return b.innerHeight?b.innerHeight:y(b).height()}function h(e,t){t!==Object(t)&&(t={}),this.cache={},this.el=e,this.value=function(e){var n;return void 0===this.cache[e]&&(n=y(this.el).attr("data-cbox-"+e),void 0!==n?this.cache[e]=n:void 0!==t[e]?this.cache[e]=t[e]:void 0!==ee[e]&&(this.cache[e]=ee[e])),this.cache[e]},this.get=function(e){var t=this.value(e);return y.isFunction(t)?t.call(this.el,this):t}}function r(e){var t=A.length,n=(U+e)%t;return 0>n?t+n:n}function a(e,t){return Math.round((/%/.test(e)?("x"===t?L.width():o())/100:1)*parseInt(e,10))}function s(e,t){return e.get("photo")||e.get("photoRegex").test(t)}function l(e,t){return e.get("retinaUrl")&&b.devicePixelRatio>1?t.replace(e.get("photoRegex"),e.get("retinaSuffix")):t}function d(e){"contains"in T[0]&&!T[0].contains(e.target)&&e.target!==x[0]&&(e.stopPropagation(),T.focus())}function c(e){c.str!==e&&(T.add(x).removeClass(c.str).addClass(e),c.str=e)}function g(e){U=0,e&&!1!==e&&"nofollow"!==e?(A=y("."+ie).filter(function(){return new h(this,y.data(this,te)).get("rel")===e}),-1===(U=A.index(W.el))&&(A=A.add(W.el),U=A.length-1)):A=y(W.el)}function u(e){y(v).trigger(e),ce.triggerHandler(e)}function f(e){var t;if(!K){if(t=y(e).data(te),W=new h(e,t),g(W.get("rel")),!Y){Y=G=!0,c(W.get("className")),T.css({visibility:"hidden",display:"block",opacity:""}),D=n(de,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),E.css({width:"",height:""}).append(D),B=k.height()+j.height()+E.outerHeight(!0)-E.height(),z=S.width()+N.width()+E.outerWidth(!0)-E.width(),$=D.outerHeight(!0),X=D.outerWidth(!0);var i=a(W.get("initialWidth"),"x"),r=a(W.get("initialHeight"),"y"),o=W.get("maxWidth"),s=W.get("maxHeight");W.w=Math.max((!1!==o?Math.min(i,a(o,"x")):i)-X-z,0),W.h=Math.max((!1!==s?Math.min(r,a(s,"y")):r)-$-B,0),D.css({width:"",height:W.h}),J.position(),u(re),W.get("onOpen"),P.add(q).hide(),T.focus(),W.get("trapFocus")&&v.addEventListener&&(v.addEventListener("focus",d,!0),ce.one(le,function(){v.removeEventListener("focus",d,!0)})),W.get("returnFocus")&&ce.one(le,function(){y(W.el).focus()})}var l=parseFloat(W.get("opacity"));x.css({opacity:l===l?l:"",cursor:W.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),W.get("closeButton")?M.html(W.get("close")).appendTo(E):M.appendTo("
"),w()}}function p(){T||(Z=!1,L=y(b),T=n(de).attr({id:te,"class":!1===y.support.opacity?ne+"IE":"",role:"dialog",tabindex:"-1"}).hide(),x=n(de,"Overlay").hide(),_=y([n(de,"LoadingOverlay")[0],n(de,"LoadingGraphic")[0]]),C=n(de,"Wrapper"),E=n(de,"Content").append(q=n(de,"Title"),F=n(de,"Current"),R=y('