
"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,t){"object"==("undefined"==typeof module?"undefined":_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:void 0,function(C,e){function m(e){return null!=e&&e===e.window}var t=[],i=Object.getPrototypeOf,a=t.slice,v=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},l=t.push,s=t.indexOf,n={},o=n.toString,g=n.hasOwnProperty,r=g.toString,c=r.call(Object),y={},w=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=C.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,i){var n,s,o=(i=i||x).createElement("script");if(o.text=e,t)for(n in u)(s=t[n]||t.getAttribute&&t.getAttribute(n))&&o.setAttribute(n,s);i.head.appendChild(o).parentNode.removeChild(o)}function f(e){return null==e?e+"":"object"==_typeof(e)||"function"==typeof e?n[o.call(e)]||"object":_typeof(e)}var d="3.6.0",_=function e(t,i){return new e.fn.init(t,i)};function h(e){var t=!!e&&"length"in e&&e.length,i=f(e);return!w(e)&&!m(e)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in e)}_.fn=_.prototype={jquery:d,constructor:_,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){e=_.merge(this.constructor(),e);return e.prevObject=this,e},each:function(e){return _.each(this,e)},map:function(i){return this.pushStack(_.map(this,function(e,t){return i.call(e,t,e)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(_.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:t.sort,splice:t.splice},_.extend=_.fn.extend=function(){var e,t,i,n,s,o=arguments[0]||{},r=1,a=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[r]||{},r++),"object"==_typeof(o)||w(o)||(o={}),r===a&&(o=this,r--);r<a;r++)if(null!=(e=arguments[r]))for(t in e)i=e[t],"__proto__"!==t&&o!==i&&(l&&i&&(_.isPlainObject(i)||(n=Array.isArray(i)))?(s=o[t],s=n&&!Array.isArray(s)?[]:n||_.isPlainObject(s)?s:{},n=!1,o[t]=_.extend(l,s,i)):void 0!==i&&(o[t]=i));return o},_.extend({expando:"jQuery"+(d+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){return!(!e||"[object Object]"!==o.call(e)||(e=i(e))&&("function"!=typeof(e=g.call(e,"constructor")&&e.constructor)||r.call(e)!==c))},isEmptyObject:function(e){for(var t in e)return!1;return!0},globalEval:function(e,t,i){b(e,{nonce:t&&t.nonce},i)},each:function(e,t){var i,n=0;if(h(e))for(i=e.length;n<i&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},makeArray:function(e,t){t=t||[];return null!=e&&(h(Object(e))?_.merge(t,"string"==typeof e?[e]:e):l.call(t,e)),t},inArray:function(e,t,i){return null==t?-1:s.call(t,e,i)},merge:function(e,t){for(var i=+t.length,n=0,s=e.length;n<i;n++)e[s++]=t[n];return e.length=s,e},grep:function(e,t,i){for(var n=[],s=0,o=e.length,r=!i;s<o;s++)!t(e[s],s)!=r&&n.push(e[s]);return n},map:function(e,t,i){var n,s,o=0,r=[];if(h(e))for(n=e.length;o<n;o++)null!=(s=t(e[o],o,i))&&r.push(s);else for(o in e)null!=(s=t(e[o],o,i))&&r.push(s);return v(r)},guid:1,support:y}),"function"==typeof Symbol&&(_.fn[Symbol.iterator]=t[Symbol.iterator]),_.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var p=function(i){function d(e,t){return e="0x"+e.slice(1)-65536,t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))}function n(){C()}var e,h,b,o,s,p,f,m,k,l,c,C,x,r,_,v,a,u,g,T="sizzle"+ +new Date,y=i.document,S=0,w=0,$=le(),D=le(),M=le(),A=le(),E=function(e,t){return e===t&&(c=!0),0},j={}.hasOwnProperty,t=[],O=t.pop,N=t.push,H=t.push,I=t.slice,P=function(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",F="[\\x20\\t\\r\\n\\f]",R="(?:\\\\[\\da-fA-F]{1,6}"+F+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",q="\\["+F+"*("+R+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+F+"*\\]",z=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+q+")*)|.*)\\)|)",B=new RegExp(F+"+","g"),W=new RegExp("^"+F+"+|((?:^|[^\\\\])(?:\\\\.)*)"+F+"+$","g"),V=new RegExp("^"+F+"*,"+F+"*"),U=new RegExp("^"+F+"*([>+~]|"+F+")"+F+"*"),Y=new RegExp(F+"|>"),X=new RegExp(z),Q=new RegExp("^"+R+"$"),G={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+q),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,ee=/^[^{]+\{\s*\[native \w/,te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ie=/[+~]/,ne=new RegExp("\\\\[\\da-fA-F]{1,6}"+F+"?|\\\\([^\\r\\n\\f])","g"),se=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=ye(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=I.call(y.childNodes),y.childNodes),t[y.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){N.apply(e,I.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function ae(e,t,i,n){var s,o,r,a,l,c,u=t&&t.ownerDocument,d=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==d&&9!==d&&11!==d)return i;if(!n&&(C(t),t=t||x,_)){if(11!==d&&(a=te.exec(e)))if(c=a[1]){if(9===d){if(!(o=t.getElementById(c)))return i;if(o.id===c)return i.push(o),i}else if(u&&(o=u.getElementById(c))&&g(t,o)&&o.id===c)return i.push(o),i}else{if(a[2])return H.apply(i,t.getElementsByTagName(e)),i;if((c=a[3])&&h.getElementsByClassName&&t.getElementsByClassName)return H.apply(i,t.getElementsByClassName(c)),i}if(h.qsa&&!A[e+" "]&&(!v||!v.test(e))&&(1!==d||"object"!==t.nodeName.toLowerCase())){if(c=e,u=t,1===d&&(Y.test(e)||U.test(e))){for((u=ie.test(e)&&me(t.parentNode)||t)===t&&h.scope||((r=t.getAttribute("id"))?r=r.replace(se,oe):t.setAttribute("id",r=T)),s=(l=p(e)).length;s--;)l[s]=(r?"#"+r:":scope")+" "+ge(l[s]);c=l.join(",")}try{return H.apply(i,u.querySelectorAll(c)),i}catch(t){A(e,!0)}finally{r===T&&t.removeAttribute("id")}}}return m(e.replace(W,"$1"),t,i,n)}function le(){var n=[];return function e(t,i){return n.push(t+" ")>b.cacheLength&&delete e[n.shift()],e[t+" "]=i}}function ce(e){return e[T]=!0,e}function ue(e){var t=x.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var i=e.split("|"),n=i.length;n--;)b.attrHandle[i[n]]=t}function he(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function pe(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&re(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function fe(r){return ce(function(o){return o=+o,ce(function(e,t){for(var i,n=r([],e.length,o),s=n.length;s--;)e[i=n[s]]&&(e[i]=!(t[i]=e[i]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in h=ae.support={},s=ae.isXML=function(e){var t=e&&e.namespaceURI,e=e&&(e.ownerDocument||e).documentElement;return!K.test(t||e&&e.nodeName||"HTML")},C=ae.setDocument=function(e){var t,e=e?e.ownerDocument||e:y;return e!=x&&9===e.nodeType&&e.documentElement&&(r=(x=e).documentElement,_=!s(x),y!=x&&(t=x.defaultView)&&t.top!==t&&(t.addEventListener?t.addEventListener("unload",n,!1):t.attachEvent&&t.attachEvent("onunload",n)),h.scope=ue(function(e){return r.appendChild(e).appendChild(x.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),h.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),h.getElementsByTagName=ue(function(e){return e.appendChild(x.createComment("")),!e.getElementsByTagName("*").length}),h.getElementsByClassName=ee.test(x.getElementsByClassName),h.getById=ue(function(e){return r.appendChild(e).id=T,!x.getElementsByName||!x.getElementsByName(T).length}),h.getById?(b.filter.ID=function(e){var t=e.replace(ne,d);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&_){e=t.getElementById(e);return e?[e]:[]}}):(b.filter.ID=function(e){var t=e.replace(ne,d);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&_){var i,n,s,o=t.getElementById(e);if(o){if((i=o.getAttributeNode("id"))&&i.value===e)return[o];for(s=t.getElementsByName(e),n=0;o=s[n++];)if((i=o.getAttributeNode("id"))&&i.value===e)return[o]}return[]}}),b.find.TAG=h.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):h.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],s=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;i=o[s++];)1===i.nodeType&&n.push(i);return n},b.find.CLASS=h.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&_)return t.getElementsByClassName(e)},a=[],v=[],(h.qsa=ee.test(x.querySelectorAll))&&(ue(function(e){var t;r.appendChild(e).innerHTML="<a id='"+T+"'></a><select id='"+T+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+F+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+F+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+T+"-]").length||v.push("~="),(t=x.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+F+"*name"+F+"*="+F+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+T+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ue(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=x.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+F+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(h.matchesSelector=ee.test(u=r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector||r.msMatchesSelector))&&ue(function(e){h.disconnectedMatch=u.call(e,"*"),u.call(e,"[s!='']:x"),a.push("!=",z)}),v=v.length&&new RegExp(v.join("|")),a=a.length&&new RegExp(a.join("|")),t=ee.test(r.compareDocumentPosition),g=t||ee.test(r.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(i.contains?i.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},E=t?function(e,t){return e===t?(c=!0,0):(i=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!h.sortDetached&&t.compareDocumentPosition(e)===i?e==x||e.ownerDocument==y&&g(y,e)?-1:t==x||t.ownerDocument==y&&g(y,t)?1:l?P(l,e)-P(l,t):0:4&i?-1:1);var i}:function(e,t){if(e===t)return c=!0,0;var i,n=0,s=e.parentNode,o=t.parentNode,r=[e],a=[t];if(!s||!o)return e==x?-1:t==x?1:s?-1:o?1:l?P(l,e)-P(l,t):0;if(s===o)return he(e,t);for(i=e;i=i.parentNode;)r.unshift(i);for(i=t;i=i.parentNode;)a.unshift(i);for(;r[n]===a[n];)n++;return n?he(r[n],a[n]):r[n]==y?-1:a[n]==y?1:0}),x},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(C(e),h.matchesSelector&&_&&!A[t+" "]&&(!a||!a.test(t))&&(!v||!v.test(t)))try{var i=u.call(e,t);if(i||h.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){A(t,!0)}return 0<ae(t,x,null,[e]).length},ae.contains=function(e,t){return(e.ownerDocument||e)!=x&&C(e),g(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!=x&&C(e);var i=b.attrHandle[t.toLowerCase()],i=i&&j.call(b.attrHandle,t.toLowerCase())?i(e,t,!_):void 0;return void 0!==i?i:h.attributes||!_?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},ae.escape=function(e){return(e+"").replace(se,oe)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,i=[],n=0,s=0;if(c=!h.detectDuplicates,l=!h.sortStable&&e.slice(0),e.sort(E),c){for(;t=e[s++];)t===e[s]&&(n=i.push(s));for(;n--;)e.splice(i[n],1)}return l=null,e},o=ae.getText=function(e){var t,i="",n=0,s=e.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=o(e)}else if(3===s||4===s)return e.nodeValue}else for(;t=e[n++];)i+=o(t);return i},(b=ae.selectors={cacheLength:50,createPseudo:ce,match:G,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(ne,d),e[3]=(e[3]||e[4]||e[5]||"").replace(ne,d),"~="===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]||ae.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]&&ae.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&X.test(i)&&(t=p(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ne,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=$[e+" "];return t||(t=new RegExp("(^|"+F+")"+e+"("+F+"|$)"))&&$(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(e){e=ae.attr(e,t);return null==e?"!="===i:!i||(e+="","="===i?e===n:"!="===i?e!==n:"^="===i?n&&0===e.indexOf(n):"*="===i?n&&-1<e.indexOf(n):"$="===i?n&&e.slice(-n.length)===n:"~="===i?-1<(" "+e.replace(B," ")+" ").indexOf(n):"|="===i&&(e===n||e.slice(0,n.length+1)===n+"-"))}},CHILD:function(f,e,t,m,v){var g="nth"!==f.slice(0,3),y="last"!==f.slice(-4),w="of-type"===e;return 1===m&&0===v?function(e){return!!e.parentNode}:function(e,t,i){var n,s,o,r,a,l,c=g!=y?"nextSibling":"previousSibling",u=e.parentNode,d=w&&e.nodeName.toLowerCase(),h=!i&&!w,p=!1;if(u){if(g){for(;c;){for(r=e;r=r[c];)if(w?r.nodeName.toLowerCase()===d:1===r.nodeType)return!1;l=c="only"===f&&!l&&"nextSibling"}return!0}if(l=[y?u.firstChild:u.lastChild],y&&h){for(p=(a=(n=(s=(o=(r=u)[T]||(r[T]={}))[r.uniqueID]||(o[r.uniqueID]={}))[f]||[])[0]===S&&n[1])&&n[2],r=a&&u.childNodes[a];r=++a&&r&&r[c]||(p=a=0)||l.pop();)if(1===r.nodeType&&++p&&r===e){s[f]=[S,a,p];break}}else if(!1===(p=h?a=(n=(s=(o=(r=e)[T]||(r[T]={}))[r.uniqueID]||(o[r.uniqueID]={}))[f]||[])[0]===S&&n[1]:p))for(;(r=++a&&r&&r[c]||(p=a=0)||l.pop())&&((w?r.nodeName.toLowerCase()!==d:1!==r.nodeType)||!++p||(h&&((s=(o=r[T]||(r[T]={}))[r.uniqueID]||(o[r.uniqueID]={}))[f]=[S,p]),r!==e)););return(p-=v)===m||p%m==0&&0<=p/m}}},PSEUDO:function(e,o){var t,r=b.pseudos[e]||b.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return r[T]?r(o):1<r.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?ce(function(e,t){for(var i,n=r(e,o),s=n.length;s--;)e[i=P(e,n[s])]=!(t[i]=n[s])}):function(e){return r(e,0,t)}):r}},pseudos:{not:ce(function(e){var n=[],s=[],a=f(e.replace(W,"$1"));return a[T]?ce(function(e,t,i,n){for(var s,o=a(e,null,n,[]),r=e.length;r--;)(s=o[r])&&(e[r]=!(t[r]=s))}):function(e,t,i){return n[0]=e,a(n,null,i,s),n[0]=null,!s.pop()}}),has:ce(function(t){return function(e){return 0<ae(t,e).length}}),contains:ce(function(t){return t=t.replace(ne,d),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:ce(function(i){return Q.test(i||"")||ae.error("unsupported lang: "+i),i=i.replace(ne,d).toLowerCase(),function(e){var t;do{if(t=_?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===i||0===t.indexOf(i+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=i.location&&i.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===x.activeElement&&(!x.hasFocus||x.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:pe(!1),disabled:pe(!0),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!b.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:fe(function(){return[0]}),last:fe(function(e,t){return[t-1]}),eq:fe(function(e,t,i){return[i<0?i+t:i]}),even:fe(function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e}),odd:fe(function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e}),lt:fe(function(e,t,i){for(var n=i<0?i+t:t<i?t:i;0<=--n;)e.push(n);return e}),gt:fe(function(e,t,i){for(var n=i<0?i+t:i;++n<t;)e.push(n);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=function(i){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===i}}(e);function ve(){}function ge(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t].value;return n}function ye(r,e,t){var a=e.dir,l=e.next,c=l||a,u=t&&"parentNode"===c,d=w++;return e.first?function(e,t,i){for(;e=e[a];)if(1===e.nodeType||u)return r(e,t,i);return!1}:function(e,t,i){var n,s,o=[S,d];if(i){for(;e=e[a];)if((1===e.nodeType||u)&&r(e,t,i))return!0}else for(;e=e[a];)if(1===e.nodeType||u)if(n=(s=e[T]||(e[T]={}))[e.uniqueID]||(s[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[a]||e;else{if((s=n[c])&&s[0]===S&&s[1]===d)return o[2]=s[2];if((n[c]=o)[2]=r(e,t,i))return!0}return!1}}function we(s){return 1<s.length?function(e,t,i){for(var n=s.length;n--;)if(!s[n](e,t,i))return!1;return!0}:s[0]}function be(e,t,i,n,s){for(var o,r=[],a=0,l=e.length,c=null!=t;a<l;a++)(o=e[a])&&(i&&!i(o,n,s)||(r.push(o),c&&t.push(a)));return r}function ke(e){for(var n,t,i,s=e.length,o=b.relative[e[0].type],r=o||b.relative[" "],a=o?1:0,l=ye(function(e){return e===n},r,!0),c=ye(function(e){return-1<P(n,e)},r,!0),u=[function(e,t,i){i=!o&&(i||t!==k)||((n=t).nodeType?l:c)(e,t,i);return n=null,i}];a<s;a++)if(t=b.relative[e[a].type])u=[ye(we(u),t)];else{if((t=b.filter[e[a].type].apply(null,e[a].matches))[T]){for(i=++a;i<s&&!b.relative[e[i].type];i++);return function e(p,f,m,v,g,t){return v&&!v[T]&&(v=e(v)),g&&!g[T]&&(g=e(g,t)),ce(function(e,t,i,n){var s,o,r,a=[],l=[],c=t.length,u=e||function(e,t,i){for(var n=0,s=t.length;n<s;n++)ae(e,t[n],i);return i}(f||"*",i.nodeType?[i]:i,[]),d=!p||!e&&f?u:be(u,a,p,i,n),h=m?g||(e?p:c||v)?[]:t:d;if(m&&m(d,h,i,n),v)for(s=be(h,l),v(s,[],i,n),o=s.length;o--;)(r=s[o])&&(h[l[o]]=!(d[l[o]]=r));if(e){if(g||p){if(g){for(s=[],o=h.length;o--;)(r=h[o])&&s.push(d[o]=r);g(null,h=[],s,n)}for(o=h.length;o--;)(r=h[o])&&-1<(s=g?P(e,r):a[o])&&(e[s]=!(t[s]=r))}}else h=be(h===t?h.splice(c,h.length):h),g?g(null,t,h,n):H.apply(t,h)})}(1<a&&we(u),1<a&&ge(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(W,"$1"),t,a<i&&ke(e.slice(a,i)),i<s&&ke(e=e.slice(i)),i<s&&ge(e))}u.push(t)}return we(u)}return ve.prototype=b.filters=b.pseudos,b.setFilters=new ve,p=ae.tokenize=function(e,t){var i,n,s,o,r,a,l,c=D[e+" "];if(c)return t?0:c.slice(0);for(r=e,a=[],l=b.preFilter;r;){for(o in i&&!(n=V.exec(r))||(n&&(r=r.slice(n[0].length)||r),a.push(s=[])),i=!1,(n=U.exec(r))&&(i=n.shift(),s.push({value:i,type:n[0].replace(W," ")}),r=r.slice(i.length)),b.filter)!(n=G[o].exec(r))||l[o]&&!(n=l[o](n))||(i=n.shift(),s.push({value:i,type:o,matches:n}),r=r.slice(i.length));if(!i)break}return t?r.length:r?ae.error(e):D(e,a).slice(0)},f=ae.compile=function(e,t){var i,v,g,y,w,n,s=[],o=[],r=M[e+" "];if(!r){for(i=(t=t||p(e)).length;i--;)((r=ke(t[i]))[T]?s:o).push(r);(r=M(e,(y=0<(g=s).length,w=0<(v=o).length,n=function(e,t,i,n,s){var o,r,a,l=0,c="0",u=e&&[],d=[],h=k,p=e||w&&b.find.TAG("*",s),f=S+=null==h?1:Math.random()||.1,m=p.length;for(s&&(k=t==x||t||s);c!==m&&null!=(o=p[c]);c++){if(w&&o){for(r=0,t||o.ownerDocument==x||(C(o),i=!_);a=v[r++];)if(a(o,t||x,i)){n.push(o);break}s&&(S=f)}y&&((o=!a&&o)&&l--,e&&u.push(o))}if(l+=c,y&&c!==l){for(r=0;a=g[r++];)a(u,d,t,i);if(e){if(0<l)for(;c--;)u[c]||d[c]||(d[c]=O.call(n));d=be(d)}H.apply(n,d),s&&!e&&0<d.length&&1<l+g.length&&ae.uniqueSort(n)}return s&&(S=f,k=h),u},y?ce(n):n))).selector=e}return r},m=ae.select=function(e,t,i,n){var s,o,r,a,l,c="function"==typeof e&&e,u=!n&&p(e=c.selector||e);if(i=i||[],1===u.length){if(2<(o=u[0]=u[0].slice(0)).length&&"ID"===(r=o[0]).type&&9===t.nodeType&&_&&b.relative[o[1].type]){if(!(t=(b.find.ID(r.matches[0].replace(ne,d),t)||[])[0]))return i;c&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(s=G.needsContext.test(e)?0:o.length;s--&&(r=o[s],!b.relative[a=r.type]);)if((l=b.find[a])&&(n=l(r.matches[0].replace(ne,d),ie.test(o[0].type)&&me(t.parentNode)||t))){if(o.splice(s,1),!(e=n.length&&ge(o)))return H.apply(i,n),i;break}}return(c||f(e,u))(n,t,!_,i,!t||ie.test(e)&&me(t.parentNode)||t),i},h.sortStable=T.split("").sort(E).join("")===T,h.detectDuplicates=!!c,C(),h.sortDetached=ue(function(e){return 1&e.compareDocumentPosition(x.createElement("fieldset"))}),ue(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||de("type|href|height|width",function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),h.attributes&&ue(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||de("value",function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ue(function(e){return null==e.getAttribute("disabled")})||de(L,function(e,t,i){if(!i)return!0===e[t]?t.toLowerCase():(t=e.getAttributeNode(t))&&t.specified?t.value:null}),ae}(C);_.find=p,_.expr=p.selectors,_.expr[":"]=_.expr.pseudos,_.uniqueSort=_.unique=p.uniqueSort,_.text=p.getText,_.isXMLDoc=p.isXML,_.contains=p.contains,_.escapeSelector=p.escape;function k(e,t,i){for(var n=[],s=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(s&&_(e).is(i))break;n.push(e)}return n}function T(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}var S=_.expr.match.needsContext;function $(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function M(e,i,n){return w(i)?_.grep(e,function(e,t){return!!i.call(e,t,e)!==n}):i.nodeType?_.grep(e,function(e){return e===i!==n}):"string"!=typeof i?_.grep(e,function(e){return-1<s.call(i,e)!==n}):_.filter(i,e,n)}_.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?_.find.matchesSelector(n,e)?[n]:[]:_.find.matches(e,_.grep(t,function(e){return 1===e.nodeType}))},_.fn.extend({find:function(e){var t,i,n=this.length,s=this;if("string"!=typeof e)return this.pushStack(_(e).filter(function(){for(t=0;t<n;t++)if(_.contains(s[t],this))return!0}));for(i=this.pushStack([]),t=0;t<n;t++)_.find(e,s[t],i);return 1<n?_.uniqueSort(i):i},filter:function(e){return this.pushStack(M(this,e||[],!1))},not:function(e){return this.pushStack(M(this,e||[],!0))},is:function(e){return!!M(this,"string"==typeof e&&S.test(e)?_(e):e||[],!1).length}});var A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_.fn.init=function(e,t,i){if(!e)return this;if(i=i||E,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):w(e)?void 0!==i.ready?i.ready(e):e(_):_.makeArray(e,this);if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:A.exec(e))||!n[1]&&t)return(!t||t.jquery?t||i:this.constructor(t)).find(e);if(n[1]){if(t=t instanceof _?t[0]:t,_.merge(this,_.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:x,!0)),D.test(n[1])&&_.isPlainObject(t))for(var n in t)w(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(e=x.getElementById(n[2]))&&(this[0]=e,this.length=1),this}).prototype=_.fn;var E=_(x),j=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function N(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}_.fn.extend({has:function(e){var t=_(e,this),i=t.length;return this.filter(function(){for(var e=0;e<i;e++)if(_.contains(this,t[e]))return!0})},closest:function(e,t){var i,n=0,s=this.length,o=[],r="string"!=typeof e&&_(e);if(!S.test(e))for(;n<s;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(r?-1<r.index(i):1===i.nodeType&&_.find.matchesSelector(i,e))){o.push(i);break}return this.pushStack(1<o.length?_.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?s.call(_(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),_.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return k(e,"parentNode")},parentsUntil:function(e,t,i){return k(e,"parentNode",i)},next:function(e){return N(e,"nextSibling")},prev:function(e){return N(e,"previousSibling")},nextAll:function(e){return k(e,"nextSibling")},prevAll:function(e){return k(e,"previousSibling")},nextUntil:function(e,t,i){return k(e,"nextSibling",i)},prevUntil:function(e,t,i){return k(e,"previousSibling",i)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&i(e.contentDocument)?e.contentDocument:($(e,"template")&&(e=e.content||e),_.merge([],e.childNodes))}},function(n,s){_.fn[n]=function(e,t){var i=_.map(this,s,e);return(t="Until"!==n.slice(-5)?e:t)&&"string"==typeof t&&(i=_.filter(t,i)),1<this.length&&(O[n]||_.uniqueSort(i),j.test(n)&&i.reverse()),this.pushStack(i)}});var H=/[^\x20\t\r\n\f]+/g;function I(e){return e}function P(e){throw e}function L(e,t,i,n){var s;try{e&&w(s=e.promise)?s.call(e).done(t).fail(i):e&&w(s=e.then)?s.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}_.Callbacks=function(n){var i;n="string"==typeof n?(i={},_.each(n.match(H)||[],function(e,t){i[t]=!0}),i):_.extend({},n);function s(){for(r=r||n.once,t=o=!0;l.length;c=-1)for(e=l.shift();++c<a.length;)!1===a[c].apply(e[0],e[1])&&n.stopOnFalse&&(c=a.length,e=!1);n.memory||(e=!1),o=!1,r&&(a=e?[]:"")}var o,e,t,r,a=[],l=[],c=-1,u={add:function(){return a&&(e&&!o&&(c=a.length-1,l.push(e)),function i(e){_.each(e,function(e,t){w(t)?n.unique&&u.has(t)||a.push(t):t&&t.length&&"string"!==f(t)&&i(t)})}(arguments),e&&!o&&s()),this},remove:function(){return _.each(arguments,function(e,t){for(var i;-1<(i=_.inArray(t,a,i));)a.splice(i,1),i<=c&&c--}),this},has:function(e){return e?-1<_.inArray(e,a):0<a.length},empty:function(){return a=a&&[],this},disable:function(){return r=l=[],a=e="",this},disabled:function(){return!a},lock:function(){return r=l=[],e||o||(a=e=""),this},locked:function(){return!!r},fireWith:function(e,t){return r||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),o||s()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!t}};return u},_.extend({Deferred:function(e){var o=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.Callbacks("once memory"),1,"rejected"]],s="pending",r={state:function(){return s},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var s=arguments;return _.Deferred(function(n){_.each(o,function(e,t){var i=w(s[t[4]])&&s[t[4]];a[t[1]](function(){var e=i&&i.apply(this,arguments);e&&w(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[t[0]+"With"](this,i?[e]:arguments)})}),s=null}).promise()},then:function(t,i,n){var l=0;function c(s,o,r,a){return function(){function e(){var e,t;if(!(s<l)){if((e=r.apply(i,n))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==_typeof(e)||"function"==typeof e)&&e.then,w(t)?a?t.call(e,c(l,o,I,a),c(l,o,P,a)):(l++,t.call(e,c(l,o,I,a),c(l,o,P,a),c(l,o,I,o.notifyWith))):(r!==I&&(i=void 0,n=[e]),(a||o.resolveWith)(i,n))}}var i=this,n=arguments,t=a?e:function(){try{e()}catch(e){_.Deferred.exceptionHook&&_.Deferred.exceptionHook(e,t.stackTrace),l<=s+1&&(r!==P&&(i=void 0,n=[e]),o.rejectWith(i,n))}};s?t():(_.Deferred.getStackHook&&(t.stackTrace=_.Deferred.getStackHook()),C.setTimeout(t))}}return _.Deferred(function(e){o[0][3].add(c(0,e,w(n)?n:I,e.notifyWith)),o[1][3].add(c(0,e,w(t)?t:I)),o[2][3].add(c(0,e,w(i)?i:P))}).promise()},promise:function(e){return null!=e?_.extend(e,r):r}},a={};return _.each(o,function(e,t){var i=t[2],n=t[5];r[t[1]]=i.add,n&&i.add(function(){s=n},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),i.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?void 0:this,arguments),this},a[t[0]+"With"]=i.fireWith}),r.promise(a),e&&e.call(a,a),a},when:function(e){function t(t){return function(e){s[t]=this,o[t]=1<arguments.length?a.call(arguments):e,--i||r.resolveWith(s,o)}}var i=arguments.length,n=i,s=Array(n),o=a.call(arguments),r=_.Deferred();if(i<=1&&(L(e,r.done(t(n)).resolve,r.reject,!i),"pending"===r.state()||w(o[n]&&o[n].then)))return r.then();for(;n--;)L(o[n],t(n),r.reject);return r.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(e,t){C.console&&C.console.warn&&e&&F.test(e.name)&&C.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},_.readyException=function(e){C.setTimeout(function(){throw e})};var R=_.Deferred();function q(){x.removeEventListener("DOMContentLoaded",q),C.removeEventListener("load",q),_.ready()}_.fn.ready=function(e){return R.then(e).catch(function(e){_.readyException(e)}),this},_.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--_.readyWait:_.isReady)||(_.isReady=!0)!==e&&0<--_.readyWait||R.resolveWith(x,[_])}}),_.ready.then=R.then,"complete"===x.readyState||"loading"!==x.readyState&&!x.documentElement.doScroll?C.setTimeout(_.ready):(x.addEventListener("DOMContentLoaded",q),C.addEventListener("load",q));function z(e,t,i,n,s,o,r){var a=0,l=e.length,c=null==i;if("object"===f(i))for(a in s=!0,i)z(e,t,a,i[a],!0,o,r);else if(void 0!==n&&(s=!0,w(n)||(r=!0),t=c?r?(t.call(e,n),null):(c=t,function(e,t,i){return c.call(_(e),i)}):t))for(;a<l;a++)t(e[a],i,r?n:n.call(e[a],a,t(e[a],i)));return s?e:c?t.call(e):l?t(e[0],i):o}var B=/^-ms-/,W=/-([a-z])/g;function V(e,t){return t.toUpperCase()}function U(e){return e.replace(B,"ms-").replace(W,V)}function Y(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function X(){this.expando=_.expando+X.uid++}X.uid=1,X.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Y(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var n,s=this.cache(e);if("string"==typeof t)s[U(t)]=i;else for(n in t)s[U(n)]=t[n];return s},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][U(t)]},access:function(e,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(e,t):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n=e[this.expando];if(void 0!==n){if(void 0!==t){i=(t=Array.isArray(t)?t.map(U):(t=U(t))in n?[t]:t.match(H)||[]).length;for(;i--;)delete n[t[i]]}void 0!==t&&!_.isEmptyObject(n)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){e=e[this.expando];return void 0!==e&&!_.isEmptyObject(e)}};var Q=new X,G=new X,K=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,J=/[A-Z]/g;function Z(e,t,i){var n,s;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(J,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i="true"===(s=i)||"false"!==s&&("null"===s?null:s===+s+""?+s:K.test(s)?JSON.parse(s):s)}catch(e){}G.set(e,t,i)}else i=void 0;return i}_.extend({hasData:function(e){return G.hasData(e)||Q.hasData(e)},data:function(e,t,i){return G.access(e,t,i)},removeData:function(e,t){G.remove(e,t)},_data:function(e,t,i){return Q.access(e,t,i)},_removeData:function(e,t){Q.remove(e,t)}}),_.fn.extend({data:function(i,e){var t,n,s,o=this[0],r=o&&o.attributes;if(void 0!==i)return"object"==_typeof(i)?this.each(function(){G.set(this,i)}):z(this,function(e){var t;return o&&void 0===e?void 0!==(t=G.get(o,i))||void 0!==(t=Z(o,i))?t:void 0:void this.each(function(){G.set(this,i,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(s=G.get(o),1===o.nodeType&&!Q.get(o,"hasDataAttrs"))){for(t=r.length;t--;)r[t]&&0===(n=r[t].name).indexOf("data-")&&(n=U(n.slice(5)),Z(o,n,s[n]));Q.set(o,"hasDataAttrs",!0)}return s},removeData:function(e){return this.each(function(){G.remove(this,e)})}}),_.extend({queue:function(e,t,i){var n;if(e)return n=Q.get(e,t=(t||"fx")+"queue"),i&&(!n||Array.isArray(i)?n=Q.access(e,t,_.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){var i=_.queue(e,t=t||"fx"),n=i.length,s=i.shift(),o=_._queueHooks(e,t);"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===t&&i.unshift("inprogress"),delete o.stop,s.call(e,function(){_.dequeue(e,t)},o)),!n&&o&&o.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return Q.get(e,i)||Q.access(e,i,{empty:_.Callbacks("once memory").add(function(){Q.remove(e,[t+"queue",i])})})}}),_.fn.extend({queue:function(t,i){var e=2;return"string"!=typeof t&&(i=t,t="fx",e--),arguments.length<e?_.queue(this[0],t):void 0===i?this:this.each(function(){var e=_.queue(this,t,i);_._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&_.dequeue(this,t)})},dequeue:function(e){return this.each(function(){_.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function i(){--s||o.resolveWith(r,[r])}var n,s=1,o=_.Deferred(),r=this,a=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=Q.get(r[a],e+"queueHooks"))&&n.empty&&(s++,n.empty.add(i));return i(),o.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],ne=x.documentElement,se=function(e){return _.contains(e.ownerDocument,e)},oe={composed:!0};ne.getRootNode&&(se=function(e){return _.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});function re(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===_.css(e,"display")}function ae(e,t,i,n){var s,o,r=20,a=n?function(){return n.cur()}:function(){return _.css(e,t,"")},l=a(),c=i&&i[3]||(_.cssNumber[t]?"":"px"),u=e.nodeType&&(_.cssNumber[t]||"px"!==c&&+l)&&te.exec(_.css(e,t));if(u&&u[3]!==c){for(c=c||u[3],u=+(l/=2)||1;r--;)_.style(e,t,u+c),(1-o)*(1-(o=a()/l||.5))<=0&&(r=0),u/=o;_.style(e,t,(u*=2)+c),i=i||[]}return i&&(u=+u||+l||0,s=i[1]?u+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=u,n.end=s)),s}var le={};function ce(e,t){for(var i,n,s,o,r,a,l=[],c=0,u=e.length;c<u;c++)(n=e[c]).style&&(i=n.style.display,t?("none"===i&&(l[c]=Q.get(n,"display")||null,l[c]||(n.style.display="")),""===n.style.display&&re(n)&&(l[c]=(a=o=s=void 0,o=n.ownerDocument,r=n.nodeName,(a=le[r])||(s=o.body.appendChild(o.createElement(r)),a=_.css(s,"display"),s.parentNode.removeChild(s),le[r]=a="none"===a?"block":a)))):"none"!==i&&(l[c]="none",Q.set(n,"display",i)));for(c=0;c<u;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}_.fn.extend({show:function(){return ce(this,!0)},hide:function(){return ce(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){re(this)?_(this).show():_(this).hide()})}});var ue=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,d=x.createDocumentFragment().appendChild(x.createElement("div"));(p=x.createElement("input")).setAttribute("type","radio"),p.setAttribute("checked","checked"),p.setAttribute("name","t"),d.appendChild(p),y.checkClone=d.cloneNode(!0).cloneNode(!0).lastChild.checked,d.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!d.cloneNode(!0).lastChild.defaultValue,d.innerHTML="<option></option>",y.option=!!d.lastChild;var pe={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function fe(e,t){var i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&$(e,t)?_.merge([e],i):i}function me(e,t){for(var i=0,n=e.length;i<n;i++)Q.set(e[i],"globalEval",!t||Q.get(t[i],"globalEval"))}pe.tbody=pe.tfoot=pe.colgroup=pe.caption=pe.thead,pe.th=pe.td,y.option||(pe.optgroup=pe.option=[1,"<select multiple='multiple'>","</select>"]);var ve=/<|&#?\w+;/;function ge(e,t,i,n,s){for(var o,r,a,l,c,u=t.createDocumentFragment(),d=[],h=0,p=e.length;h<p;h++)if((o=e[h])||0===o)if("object"===f(o))_.merge(d,o.nodeType?[o]:o);else if(ve.test(o)){for(r=r||u.appendChild(t.createElement("div")),a=(de.exec(o)||["",""])[1].toLowerCase(),a=pe[a]||pe._default,r.innerHTML=a[1]+_.htmlPrefilter(o)+a[2],c=a[0];c--;)r=r.lastChild;_.merge(d,r.childNodes),(r=u.firstChild).textContent=""}else d.push(t.createTextNode(o));for(u.textContent="",h=0;o=d[h++];)if(n&&-1<_.inArray(o,n))s&&s.push(o);else if(l=se(o),r=fe(u.appendChild(o),"script"),l&&me(r),i)for(c=0;o=r[c++];)he.test(o.type||"")&&i.push(o);return u}var ye=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function be(){return!1}function ke(e,t){return e===function(){try{return x.activeElement}catch(e){}}()==("focus"===t)}function Ce(e,t,i,n,s,o){var r,a;if("object"==_typeof(t)){for(a in"string"!=typeof i&&(n=n||i,i=void 0),t)Ce(e,a,i,n,t[a],o);return e}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=be;else if(!s)return e;return 1===o&&(r=s,(s=function(e){return _().off(e),r.apply(this,arguments)}).guid=r.guid||(r.guid=_.guid++)),e.each(function(){_.event.add(this,t,s,n,i)})}function xe(e,s,o){o?(Q.set(e,s,!1),_.event.add(e,s,{namespace:!1,handler:function(e){var t,i,n=Q.get(this,s);if(1&e.isTrigger&&this[s]){if(n.length)(_.event.special[s]||{}).delegateType&&e.stopPropagation();else if(n=a.call(arguments),Q.set(this,s,n),t=o(this,s),this[s](),n!==(i=Q.get(this,s))||t?Q.set(this,s,!1):i={},n!==i)return e.stopImmediatePropagation(),e.preventDefault(),i&&i.value}else n.length&&(Q.set(this,s,{value:_.event.trigger(_.extend(n[0],_.Event.prototype),n.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,s)&&_.event.add(e,s,we)}_.event={global:{},add:function(t,e,i,n,s){var o,r,a,l,c,u,d,h,p,f=Q.get(t);if(Y(t))for(i.handler&&(i=(o=i).handler,s=o.selector),s&&_.find.matchesSelector(ne,s),i.guid||(i.guid=_.guid++),(a=f.events)||(a=f.events=Object.create(null)),(r=f.handle)||(r=f.handle=function(e){return void 0!==_&&_.event.triggered!==e.type?_.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(H)||[""]).length;l--;)d=p=(c=ye.exec(e[l])||[])[1],h=(c[2]||"").split(".").sort(),d&&(u=_.event.special[d]||{},d=(s?u.delegateType:u.bindType)||d,u=_.event.special[d]||{},c=_.extend({type:d,origType:p,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&_.expr.match.needsContext.test(s),namespace:h.join(".")},o),(p=a[d])||((p=a[d]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,n,h,r)||t.addEventListener&&t.addEventListener(d,r)),u.add&&(u.add.call(t,c),c.handler.guid||(c.handler.guid=i.guid)),s?p.splice(p.delegateCount++,0,c):p.push(c),_.event.global[d]=!0)},remove:function(e,t,i,n,s){var o,r,a,l,c,u,d,h,p,f,m,v=Q.hasData(e)&&Q.get(e);if(v&&(l=v.events)){for(c=(t=(t||"").match(H)||[""]).length;c--;)if(p=m=(a=ye.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=_.event.special[p]||{},h=l[p=(n?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=h.length;o--;)u=h[o],!s&&m!==u.origType||i&&i.guid!==u.guid||a&&!a.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));r&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,v.handle)||_.removeEvent(e,p,v.handle),delete l[p])}else for(p in l)_.event.remove(e,p+t[c],i,n,!0);_.isEmptyObject(l)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,i,n,s,o,r=new Array(arguments.length),a=_.event.fix(e),l=(Q.get(this,"events")||Object.create(null))[a.type]||[],e=_.event.special[a.type]||{};for(r[0]=a,t=1;t<arguments.length;t++)r[t]=arguments[t];if(a.delegateTarget=this,!e.preDispatch||!1!==e.preDispatch.call(this,a)){for(o=_.event.handlers.call(this,a,l),t=0;(n=o[t++])&&!a.isPropagationStopped();)for(a.currentTarget=n.elem,i=0;(s=n.handlers[i++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==s.namespace&&!a.rnamespace.test(s.namespace)||(a.handleObj=s,a.data=s.data,void 0!==(s=((_.event.special[s.origType]||{}).handle||s.handler).apply(n.elem,r))&&!1===(a.result=s)&&(a.preventDefault(),a.stopPropagation()));return e.postDispatch&&e.postDispatch.call(this,a),a.result}},handlers:function(e,t){var i,n,s,o,r,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],r={},i=0;i<l;i++)void 0===r[s=(n=t[i]).selector+" "]&&(r[s]=n.needsContext?-1<_(s,this).index(c):_.find(s,this,null,[c]).length),r[s]&&o.push(n);o.length&&a.push({elem:c,handlers:o})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(t,e){Object.defineProperty(_.Event.prototype,t,{enumerable:!0,configurable:!0,get:w(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[_.expando]?e:new _.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){e=this||e;return ue.test(e.type)&&e.click&&$(e,"input")&&xe(e,"click",we),!1},trigger:function(e){e=this||e;return ue.test(e.type)&&e.click&&$(e,"input")&&xe(e,"click"),!0},_default:function(e){e=e.target;return ue.test(e.type)&&e.click&&$(e,"input")&&Q.get(e,"click")||$(e,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},_.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},_.Event=function(e,t){if(!(this instanceof _.Event))return new _.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?we:be,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&_.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[_.expando]=!0},_.Event.prototype={constructor:_.Event,isDefaultPrevented:be,isPropagationStopped:be,isImmediatePropagationStopped:be,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=we,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=we,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=we,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},_.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},_.event.addProp),_.each({focus:"focusin",blur:"focusout"},function(e,t){_.event.special[e]={setup:function(){return xe(this,e,ke),!1},trigger:function(){return xe(this,e),!0},_default:function(){return!0},delegateType:t}}),_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,s){_.event.special[e]={delegateType:s,bindType:s,handle:function(e){var t,i=e.relatedTarget,n=e.handleObj;return i&&(i===this||_.contains(this,i))||(e.type=n.origType,t=n.handler.apply(this,arguments),e.type=s),t}}}),_.fn.extend({on:function(e,t,i,n){return Ce(this,e,t,i,n)},one:function(e,t,i,n){return Ce(this,e,t,i,n,1)},off:function(e,t,i){var n,s;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,_(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"!=_typeof(e))return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=be),this.each(function(){_.event.remove(this,e,i,t)});for(s in e)this.off(s,t,e[s]);return this}});var _e=/<script|<style|<link/i,Te=/checked\s*(?:[^=]|=\s*.checked.)/i,Se=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function $e(e,t){return $(e,"table")&&$(11!==t.nodeType?t:t.firstChild,"tr")&&_(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Me(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ae(e,t){var i,n,s,o;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.get(e).events))for(s in Q.remove(t,"handle events"),o)for(i=0,n=o[s].length;i<n;i++)_.event.add(t,s,o[s][i]);G.hasData(e)&&(e=G.access(e),e=_.extend({},e),G.set(t,e))}}function Ee(i,n,s,o){n=v(n);var e,t,r,a,l,c,u=0,d=i.length,h=d-1,p=n[0],f=w(p);if(f||1<d&&"string"==typeof p&&!y.checkClone&&Te.test(p))return i.each(function(e){var t=i.eq(e);f&&(n[0]=p.call(this,e,t.html())),Ee(t,n,s,o)});if(d&&(t=(e=ge(n,i[0].ownerDocument,!1,i,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(a=(r=_.map(fe(e,"script"),De)).length;u<d;u++)l=e,u!==h&&(l=_.clone(l,!0,!0),a&&_.merge(r,fe(l,"script"))),s.call(i[u],l,u);if(a)for(c=r[r.length-1].ownerDocument,_.map(r,Me),u=0;u<a;u++)l=r[u],he.test(l.type||"")&&!Q.access(l,"globalEval")&&_.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?_._evalUrl&&!l.noModule&&_._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):b(l.textContent.replace(Se,""),l,c))}return i}function je(e,t,i){for(var n,s=t?_.filter(t,e):e,o=0;null!=(n=s[o]);o++)i||1!==n.nodeType||_.cleanData(fe(n)),n.parentNode&&(i&&se(n)&&me(fe(n,"script")),n.parentNode.removeChild(n));return e}_.extend({htmlPrefilter:function(e){return e},clone:function(e,t,i){var n,s,o,r,a,l,c,u=e.cloneNode(!0),d=se(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||_.isXMLDoc(e)))for(r=fe(u),n=0,s=(o=fe(e)).length;n<s;n++)a=o[n],"input"===(c=(l=r[n]).nodeName.toLowerCase())&&ue.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(t)if(i)for(o=o||fe(e),r=r||fe(u),n=0,s=o.length;n<s;n++)Ae(o[n],r[n]);else Ae(e,u);return 0<(r=fe(u,"script")).length&&me(r,!d&&fe(e,"script")),u},cleanData:function(e){for(var t,i,n,s=_.event.special,o=0;void 0!==(i=e[o]);o++)if(Y(i)){if(t=i[Q.expando]){if(t.events)for(n in t.events)s[n]?_.event.remove(i,n):_.removeEvent(i,n,t.handle);i[Q.expando]=void 0}i[G.expando]&&(i[G.expando]=void 0)}}}),_.fn.extend({detach:function(e){return je(this,e,!0)},remove:function(e){return je(this,e)},text:function(e){return z(this,function(e){return void 0===e?_.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Ee(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||$e(this,e).appendChild(e)})},prepend:function(){return Ee(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=$e(this,e)).insertBefore(e,t.firstChild)})},before:function(){return Ee(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Ee(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(_.cleanData(fe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return _.clone(this,e,t)})},html:function(e){return z(this,function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!_e.test(e)&&!pe[(de.exec(e)||["",""])[1].toLowerCase()]){e=_.htmlPrefilter(e);try{for(;i<n;i++)1===(t=this[i]||{}).nodeType&&(_.cleanData(fe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var i=[];return Ee(this,arguments,function(e){var t=this.parentNode;_.inArray(this,i)<0&&(_.cleanData(fe(this)),t&&t.replaceChild(e,this))},i)}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,r){_.fn[e]=function(e){for(var t,i=[],n=_(e),s=n.length-1,o=0;o<=s;o++)t=o===s?this:this.clone(!0),_(n[o])[r](t),l.apply(i,t.get());return this.pushStack(i)}});function Oe(e,t,i){var n,s={};for(n in t)s[n]=e.style[n],e.style[n]=t[n];for(n in i=i.call(e),t)e.style[n]=s[n];return i}var Ne,He,Ie,Pe,Le,Fe,Re,qe,ze=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Be=function(e){var t=e.ownerDocument.defaultView;return(t=!t||!t.opener?C:t).getComputedStyle(e)},We=new RegExp(ie.join("|"),"i");function Ve(e,t,i){var n,s,o=e.style;return(i=i||Be(e))&&(""!==(s=i.getPropertyValue(t)||i[t])||se(e)||(s=_.style(e,t)),!y.pixelBoxStyles()&&ze.test(s)&&We.test(t)&&(n=o.width,e=o.minWidth,t=o.maxWidth,o.minWidth=o.maxWidth=o.width=s,s=i.width,o.width=n,o.minWidth=e,o.maxWidth=t)),void 0!==s?s+"":s}function Ue(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function Ye(){var e;qe&&(Re.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",qe.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ne.appendChild(Re).appendChild(qe),e=C.getComputedStyle(qe),Ne="1%"!==e.top,Fe=12===Xe(e.marginLeft),qe.style.right="60%",Pe=36===Xe(e.right),He=36===Xe(e.width),qe.style.position="absolute",Ie=12===Xe(qe.offsetWidth/3),ne.removeChild(Re),qe=null)}function Xe(e){return Math.round(parseFloat(e))}Re=x.createElement("div"),(qe=x.createElement("div")).style&&(qe.style.backgroundClip="content-box",qe.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===qe.style.backgroundClip,_.extend(y,{boxSizingReliable:function(){return Ye(),He},pixelBoxStyles:function(){return Ye(),Pe},pixelPosition:function(){return Ye(),Ne},reliableMarginLeft:function(){return Ye(),Fe},scrollboxSize:function(){return Ye(),Ie},reliableTrDimensions:function(){var e,t,i;return null==Le&&(e=x.createElement("table"),t=x.createElement("tr"),i=x.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",i.style.height="9px",i.style.display="block",ne.appendChild(e).appendChild(t).appendChild(i),i=C.getComputedStyle(t),Le=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,ne.removeChild(e)),Le}}));var Qe=["Webkit","Moz","ms"],Ge=x.createElement("div").style,Ke={};function Je(e){return _.cssProps[e]||Ke[e]||(e in Ge?e:Ke[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),i=Qe.length;i--;)if((e=Qe[i]+t)in Ge)return e}(e)||e)}var Ze=/^(none|table(?!-c[ea]).+)/,et=/^--/,tt={position:"absolute",visibility:"hidden",display:"block"},it={letterSpacing:"0",fontWeight:"400"};function nt(e,t,i){var n=te.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function st(e,t,i,n,s,o){var r="width"===t?1:0,a=0,l=0;if(i===(n?"border":"content"))return 0;for(;r<4;r+=2)"margin"===i&&(l+=_.css(e,i+ie[r],!0,s)),n?("content"===i&&(l-=_.css(e,"padding"+ie[r],!0,s)),"margin"!==i&&(l-=_.css(e,"border"+ie[r]+"Width",!0,s))):(l+=_.css(e,"padding"+ie[r],!0,s),"padding"!==i?l+=_.css(e,"border"+ie[r]+"Width",!0,s):a+=_.css(e,"border"+ie[r]+"Width",!0,s));return!n&&0<=o&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-a-.5))||0),l}function ot(e,t,i){var n=Be(e),s=(!y.boxSizingReliable()||i)&&"border-box"===_.css(e,"boxSizing",!1,n),o=s,r=Ve(e,t,n),a="offset"+t[0].toUpperCase()+t.slice(1);if(ze.test(r)){if(!i)return r;r="auto"}return(!y.boxSizingReliable()&&s||!y.reliableTrDimensions()&&$(e,"tr")||"auto"===r||!parseFloat(r)&&"inline"===_.css(e,"display",!1,n))&&e.getClientRects().length&&(s="border-box"===_.css(e,"boxSizing",!1,n),(o=a in e)&&(r=e[a])),(r=parseFloat(r)||0)+st(e,t,i||(s?"border":"content"),o,n,r)+"px"}function rt(e,t,i,n,s){return new rt.prototype.init(e,t,i,n,s)}_.extend({cssHooks:{opacity:{get:function(e,t){if(t){e=Ve(e,"opacity");return""===e?"1":e}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var s,o,r,a=U(t),l=et.test(t),c=e.style;if(l||(t=Je(a)),r=_.cssHooks[t]||_.cssHooks[a],void 0===i)return r&&"get"in r&&void 0!==(s=r.get(e,!1,n))?s:c[t];"string"===(o=_typeof(i))&&(s=te.exec(i))&&s[1]&&(i=ae(e,t,s),o="number"),null!=i&&i==i&&("number"!==o||l||(i+=s&&s[3]||(_.cssNumber[a]?"":"px")),y.clearCloneStyle||""!==i||0!==t.indexOf("background")||(c[t]="inherit"),r&&"set"in r&&void 0===(i=r.set(e,i,n))||(l?c.setProperty(t,i):c[t]=i))}},css:function(e,t,i,n){var s,o=U(t);return et.test(t)||(t=Je(o)),"normal"===(s=void 0===(s=(o=_.cssHooks[t]||_.cssHooks[o])&&"get"in o?o.get(e,!0,i):s)?Ve(e,t,n):s)&&t in it&&(s=it[t]),""===i||i?(t=parseFloat(s),!0===i||isFinite(t)?t||0:s):s}}),_.each(["height","width"],function(e,a){_.cssHooks[a]={get:function(e,t,i){if(t)return!Ze.test(_.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,a,i):Oe(e,tt,function(){return ot(e,a,i)})},set:function(e,t,i){var n,s=Be(e),o=!y.scrollboxSize()&&"absolute"===s.position,r=(o||i)&&"border-box"===_.css(e,"boxSizing",!1,s),i=i?st(e,a,i,r,s):0;return r&&o&&(i-=Math.ceil(e["offset"+a[0].toUpperCase()+a.slice(1)]-parseFloat(s[a])-st(e,a,"border",!1,s)-.5)),i&&(n=te.exec(t))&&"px"!==(n[3]||"px")&&(e.style[a]=t,t=_.css(e,a)),nt(0,t,i)}}}),_.cssHooks.marginLeft=Ue(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ve(e,"marginLeft"))||e.getBoundingClientRect().left-Oe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),_.each({margin:"",padding:"",border:"Width"},function(s,o){_.cssHooks[s+o]={expand:function(e){for(var t=0,i={},n="string"==typeof e?e.split(" "):[e];t<4;t++)i[s+ie[t]+o]=n[t]||n[t-2]||n[0];return i}},"margin"!==s&&(_.cssHooks[s+o].set=nt)}),_.fn.extend({css:function(e,t){return z(this,function(e,t,i){var n,s,o={},r=0;if(Array.isArray(t)){for(n=Be(e),s=t.length;r<s;r++)o[t[r]]=_.css(e,t[r],!1,n);return o}return void 0!==i?_.style(e,t,i):_.css(e,t)},e,t,1<arguments.length)}}),((_.Tween=rt).prototype={constructor:rt,init:function(e,t,i,n,s,o){this.elem=e,this.prop=i,this.easing=s||_.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=o||(_.cssNumber[i]?"":"px")},cur:function(){var e=rt.propHooks[this.prop];return(e&&e.get?e:rt.propHooks._default).get(this)},run:function(e){var t,i=rt.propHooks[this.prop];return this.options.duration?this.pos=t=_.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),(i&&i.set?i:rt.propHooks._default).set(this),this}}).init.prototype=rt.prototype,(rt.propHooks={_default:{get:function(e){return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(e=_.css(e.elem,e.prop,""))&&"auto"!==e?e:0},set:function(e){_.fx.step[e.prop]?_.fx.step[e.prop](e):1!==e.elem.nodeType||!_.cssHooks[e.prop]&&null==e.elem.style[Je(e.prop)]?e.elem[e.prop]=e.now:_.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=rt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},_.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},_.fx=rt.prototype.init,_.fx.step={};var at,lt,ct=/^(?:toggle|show|hide)$/,ut=/queueHooks$/;function dt(){lt&&(!1===x.hidden&&C.requestAnimationFrame?C.requestAnimationFrame(dt):C.setTimeout(dt,_.fx.interval),_.fx.tick())}function ht(){return C.setTimeout(function(){at=void 0}),at=Date.now()}function pt(e,t){var i,n=0,s={height:e};for(t=t?1:0;n<4;n+=2-t)s["margin"+(i=ie[n])]=s["padding"+i]=e;return t&&(s.opacity=s.width=e),s}function ft(e,t,i){for(var n,s=(mt.tweeners[t]||[]).concat(mt.tweeners["*"]),o=0,r=s.length;o<r;o++)if(n=s[o].call(i,t,e))return n}function mt(s,e,t){var i,o,n=0,r=mt.prefilters.length,a=_.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var e=at||ht(),e=Math.max(0,c.startTime+c.duration-e),t=1-(e/c.duration||0),i=0,n=c.tweens.length;i<n;i++)c.tweens[i].run(t);return a.notifyWith(s,[c,t,e]),t<1&&n?e:(n||a.notifyWith(s,[c,1,0]),a.resolveWith(s,[c]),!1)},c=a.promise({elem:s,props:_.extend({},e),opts:_.extend(!0,{specialEasing:{},easing:_.easing._default},t),originalProperties:e,originalOptions:t,startTime:at||ht(),duration:t.duration,tweens:[],createTween:function(e,t){e=_.Tween(s,c.opts,e,t,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(e),e},stop:function(e){var t=0,i=e?c.tweens.length:0;if(o)return this;for(o=!0;t<i;t++)c.tweens[t].run(1);return e?(a.notifyWith(s,[c,1,0]),a.resolveWith(s,[c,e])):a.rejectWith(s,[c,e]),this}}),u=c.props;for(function(e,t){var i,n,s,o,r;for(i in e)if(s=t[n=U(i)],o=e[i],Array.isArray(o)&&(s=o[1],o=e[i]=o[0]),i!==n&&(e[n]=o,delete e[i]),(r=_.cssHooks[n])&&"expand"in r)for(i in o=r.expand(o),delete e[n],o)i in e||(e[i]=o[i],t[i]=s);else t[n]=s}(u,c.opts.specialEasing);n<r;n++)if(i=mt.prefilters[n].call(c,s,u,c.opts))return w(i.stop)&&(_._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return _.map(u,ft,c),w(c.opts.start)&&c.opts.start.call(s,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),_.fx.timer(_.extend(l,{elem:s,anim:c,queue:c.opts.queue})),c}_.Animation=_.extend(mt,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return ae(i.elem,e,te.exec(t),i),i}]},tweener:function(e,t){for(var i,n=0,s=(e=w(e)?(t=e,["*"]):e.match(H)).length;n<s;n++)i=e[n],mt.tweeners[i]=mt.tweeners[i]||[],mt.tweeners[i].unshift(t)},prefilters:[function(e,t,i){var n,s,o,r,a,l,c,u="width"in t||"height"in t,d=this,h={},p=e.style,f=e.nodeType&&re(e),m=Q.get(e,"fxshow");for(n in i.queue||(null==(r=_._queueHooks(e,"fx")).unqueued&&(r.unqueued=0,a=r.empty.fire,r.empty.fire=function(){r.unqueued||a()}),r.unqueued++,d.always(function(){d.always(function(){r.unqueued--,_.queue(e,"fx").length||r.empty.fire()})})),t)if(s=t[n],ct.test(s)){if(delete t[n],o=o||"toggle"===s,s===(f?"hide":"show")){if("show"!==s||!m||void 0===m[n])continue;f=!0}h[n]=m&&m[n]||_.style(e,n)}if((l=!_.isEmptyObject(t))||!_.isEmptyObject(h))for(n in u&&1===e.nodeType&&(i.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=m&&m.display)&&(c=Q.get(e,"display")),"none"===(u=_.css(e,"display"))&&(c?u=c:(ce([e],!0),c=e.style.display||c,u=_.css(e,"display"),ce([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===_.css(e,"float")&&(l||(d.done(function(){p.display=c}),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),i.overflow&&(p.overflow="hidden",d.always(function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.overflow[2]})),l=!1,h)l||(m?"hidden"in m&&(f=m.hidden):m=Q.access(e,"fxshow",{display:c}),o&&(m.hidden=!f),f&&ce([e],!0),d.done(function(){for(n in f||ce([e]),Q.remove(e,"fxshow"),h)_.style(e,n,h[n])})),l=ft(f?m[n]:0,n,d),n in m||(m[n]=l.start,f&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?mt.prefilters.unshift(e):mt.prefilters.push(e)}}),_.speed=function(e,t,i){var n=e&&"object"==_typeof(e)?_.extend({},e):{complete:i||!i&&t||w(e)&&e,duration:e,easing:i&&t||t&&!w(t)&&t};return _.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in _.fx.speeds?n.duration=_.fx.speeds[n.duration]:n.duration=_.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){w(n.old)&&n.old.call(this),n.queue&&_.dequeue(this,n.queue)},n},_.fn.extend({fadeTo:function(e,t,i,n){return this.filter(re).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(t,e,i,n){var s=_.isEmptyObject(t),o=_.speed(e,i,n),n=function(){var e=mt(this,_.extend({},t),o);(s||Q.get(this,"finish"))&&e.stop(!0)};return n.finish=n,s||!1===o.queue?this.each(n):this.queue(o.queue,n)},stop:function(s,e,o){function r(e){var t=e.stop;delete e.stop,t(o)}return"string"!=typeof s&&(o=e,e=s,s=void 0),e&&this.queue(s||"fx",[]),this.each(function(){var e=!0,t=null!=s&&s+"queueHooks",i=_.timers,n=Q.get(this);if(t)n[t]&&n[t].stop&&r(n[t]);else for(t in n)n[t]&&n[t].stop&&ut.test(t)&&r(n[t]);for(t=i.length;t--;)i[t].elem!==this||null!=s&&i[t].queue!==s||(i[t].anim.stop(o),e=!1,i.splice(t,1));!e&&o||_.dequeue(this,s)})},finish:function(r){return!1!==r&&(r=r||"fx"),this.each(function(){var e,t=Q.get(this),i=t[r+"queue"],n=t[r+"queueHooks"],s=_.timers,o=i?i.length:0;for(t.finish=!0,_.queue(this,r,[]),n&&n.stop&&n.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===r&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;e<o;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete t.finish})}}),_.each(["toggle","show","hide"],function(e,n){var s=_.fn[n];_.fn[n]=function(e,t,i){return null==e||"boolean"==typeof e?s.apply(this,arguments):this.animate(pt(n,!0),e,t,i)}}),_.each({slideDown:pt("show"),slideUp:pt("hide"),slideToggle:pt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,n){_.fn[e]=function(e,t,i){return this.animate(n,e,t,i)}}),_.timers=[],_.fx.tick=function(){var e,t=0,i=_.timers;for(at=Date.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||_.fx.stop(),at=void 0},_.fx.timer=function(e){_.timers.push(e),_.fx.start()},_.fx.interval=13,_.fx.start=function(){lt||(lt=!0,dt())},_.fx.stop=function(){lt=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(n,e){return n=_.fx&&_.fx.speeds[n]||n,this.queue(e=e||"fx",function(e,t){var i=C.setTimeout(e,n);t.stop=function(){C.clearTimeout(i)}})},d=x.createElement("input"),ee=x.createElement("select").appendChild(x.createElement("option")),d.type="checkbox",y.checkOn=""!==d.value,y.optSelected=ee.selected,(d=x.createElement("input")).value="t",d.type="radio",y.radioValue="t"===d.value;var vt,gt=_.expr.attrHandle;_.fn.extend({attr:function(e,t){return z(this,_.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){_.removeAttr(this,e)})}}),_.extend({attr:function(e,t,i){var n,s,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?_.prop(e,t,i):(1===o&&_.isXMLDoc(e)||(s=_.attrHooks[t.toLowerCase()]||(_.expr.match.bool.test(t)?vt:void 0)),void 0!==i?null===i?void _.removeAttr(e,t):s&&"set"in s&&void 0!==(n=s.set(e,i,t))?n:(e.setAttribute(t,i+""),i):!(s&&"get"in s&&null!==(n=s.get(e,t)))&&null==(n=_.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&$(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n=0,s=t&&t.match(H);if(s&&1===e.nodeType)for(;i=s[n++];)e.removeAttribute(i)}}),vt={set:function(e,t,i){return!1===t?_.removeAttr(e,i):e.setAttribute(i,i),i}},_.each(_.expr.match.bool.source.match(/\w+/g),function(e,t){var r=gt[t]||_.find.attr;gt[t]=function(e,t,i){var n,s,o=t.toLowerCase();return i||(s=gt[o],gt[o]=n,n=null!=r(e,t,i)?o:null,gt[o]=s),n}});var yt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function bt(e){return(e.match(H)||[]).join(" ")}function kt(e){return e.getAttribute&&e.getAttribute("class")||""}function Ct(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(H)||[]}_.fn.extend({prop:function(e,t){return z(this,_.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[_.propFix[e]||e]})}}),_.extend({prop:function(e,t,i){var n,s,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&_.isXMLDoc(e)||(t=_.propFix[t]||t,s=_.propHooks[t]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(e,i,t))?n:e[t]=i:s&&"get"in s&&null!==(n=s.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=_.find.attr(e,"tabindex");return t?parseInt(t,10):yt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(_.propHooks.selected={get:function(e){e=e.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(e){e=e.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){_.propFix[this.toLowerCase()]=this}),_.fn.extend({addClass:function(t){var e,i,n,s,o,r,a=0;if(w(t))return this.each(function(e){_(this).addClass(t.call(this,e,kt(this)))});if((e=Ct(t)).length)for(;i=this[a++];)if(r=kt(i),n=1===i.nodeType&&" "+bt(r)+" "){for(o=0;s=e[o++];)n.indexOf(" "+s+" ")<0&&(n+=s+" ");r!==(r=bt(n))&&i.setAttribute("class",r)}return this},removeClass:function(t){var e,i,n,s,o,r,a=0;if(w(t))return this.each(function(e){_(this).removeClass(t.call(this,e,kt(this)))});if(!arguments.length)return this.attr("class","");if((e=Ct(t)).length)for(;i=this[a++];)if(r=kt(i),n=1===i.nodeType&&" "+bt(r)+" "){for(o=0;s=e[o++];)for(;-1<n.indexOf(" "+s+" ");)n=n.replace(" "+s+" "," ");r!==(r=bt(n))&&i.setAttribute("class",r)}return this},toggleClass:function(s,t){var o=_typeof(s),r="string"===o||Array.isArray(s);return"boolean"==typeof t&&r?t?this.addClass(s):this.removeClass(s):w(s)?this.each(function(e){_(this).toggleClass(s.call(this,e,kt(this),t),t)}):this.each(function(){var e,t,i,n;if(r)for(t=0,i=_(this),n=Ct(s);e=n[t++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else void 0!==s&&"boolean"!==o||((e=kt(this))&&Q.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==s&&Q.get(this,"__className__")||""))})},hasClass:function(e){for(var t,i=0,n=" "+e+" ";t=this[i++];)if(1===t.nodeType&&-1<(" "+bt(kt(t))+" ").indexOf(n))return!0;return!1}});var xt=/\r/g;_.fn.extend({val:function(t){var i,e,n,s=this[0];return arguments.length?(n=w(t),this.each(function(e){1===this.nodeType&&(null==(e=n?t.call(this,e,_(this).val()):t)?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=_.map(e,function(e){return null==e?"":e+""})),(i=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,e,"value")||(this.value=e))})):s?(i=_.valHooks[s.type]||_.valHooks[s.nodeName.toLowerCase()])&&"get"in i&&void 0!==(e=i.get(s,"value"))?e:"string"==typeof(e=s.value)?e.replace(xt,""):null==e?"":e:void 0}}),_.extend({valHooks:{option:{get:function(e){var t=_.find.attr(e,"value");return null!=t?t:bt(_.text(e))}},select:{get:function(e){for(var t,i=e.options,n=e.selectedIndex,s="select-one"===e.type,o=s?null:[],r=s?n+1:i.length,a=n<0?r:s?n:0;a<r;a++)if(((t=i[a]).selected||a===n)&&!t.disabled&&(!t.parentNode.disabled||!$(t.parentNode,"optgroup"))){if(t=_(t).val(),s)return t;o.push(t)}return o},set:function(e,t){for(var i,n,s=e.options,o=_.makeArray(t),r=s.length;r--;)((n=s[r]).selected=-1<_.inArray(_.valHooks.option.get(n),o))&&(i=!0);return i||(e.selectedIndex=-1),o}}}}),_.each(["radio","checkbox"],function(){_.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<_.inArray(_(e).val(),t)}},y.checkOn||(_.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),y.focusin="onfocusin"in C;function _t(e){e.stopPropagation()}var Tt=/^(?:focusinfocus|focusoutblur)$/;_.extend(_.event,{trigger:function(e,t,i,n){var s,o,r,a,l,c,u,d=[i||x],h=g.call(e,"type")?e.type:e,p=g.call(e,"namespace")?e.namespace.split("."):[],f=u=o=i=i||x;if(3!==i.nodeType&&8!==i.nodeType&&!Tt.test(h+_.event.triggered)&&(-1<h.indexOf(".")&&(h=(p=h.split(".")).shift(),p.sort()),a=h.indexOf(":")<0&&"on"+h,(e=e[_.expando]?e:new _.Event(h,"object"==_typeof(e)&&e)).isTrigger=n?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:_.makeArray(t,[e]),c=_.event.special[h]||{},n||!c.trigger||!1!==c.trigger.apply(i,t))){if(!n&&!c.noBubble&&!m(i)){for(r=c.delegateType||h,Tt.test(r+h)||(f=f.parentNode);f;f=f.parentNode)d.push(f),o=f;o===(i.ownerDocument||x)&&d.push(o.defaultView||o.parentWindow||C)}for(s=0;(f=d[s++])&&!e.isPropagationStopped();)u=f,e.type=1<s?r:c.bindType||h,(l=(Q.get(f,"events")||Object.create(null))[e.type]&&Q.get(f,"handle"))&&l.apply(f,t),(l=a&&f[a])&&l.apply&&Y(f)&&(e.result=l.apply(f,t),!1===e.result&&e.preventDefault());return e.type=h,n||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(d.pop(),t)||!Y(i)||a&&w(i[h])&&!m(i)&&((o=i[a])&&(i[a]=null),_.event.triggered=h,e.isPropagationStopped()&&u.addEventListener(h,_t),i[h](),e.isPropagationStopped()&&u.removeEventListener(h,_t),_.event.triggered=void 0,o&&(i[a]=o)),e.result}},simulate:function(e,t,i){e=_.extend(new _.Event,i,{type:e,isSimulated:!0});_.event.trigger(e,null,t)}}),_.fn.extend({trigger:function(e,t){return this.each(function(){_.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];if(i)return _.event.trigger(e,t,i,!0)}}),y.focusin||_.each({focus:"focusin",blur:"focusout"},function(i,n){function s(e){_.event.simulate(n,e.target,_.event.fix(e))}_.event.special[n]={setup:function(){var e=this.ownerDocument||this.document||this,t=Q.access(e,n);t||e.addEventListener(i,s,!0),Q.access(e,n,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=Q.access(e,n)-1;t?Q.access(e,n,t):(e.removeEventListener(i,s,!0),Q.remove(e,n))}}});var St=C.location,$t={guid:Date.now()},Dt=/\?/;_.parseXML=function(e){var t,i;if(!e||"string"!=typeof e)return null;try{t=(new C.DOMParser).parseFromString(e,"text/xml")}catch(e){}return i=t&&t.getElementsByTagName("parsererror")[0],t&&!i||_.error("Invalid XML: "+(i?_.map(i.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Mt=/\[\]$/,At=/\r?\n/g,Et=/^(?:submit|button|image|reset|file)$/i,jt=/^(?:input|select|textarea|keygen)/i;_.param=function(e,t){function i(e,t){t=w(t)?t():t,s[s.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==t?"":t)}var n,s=[];if(null==e)return"";if(Array.isArray(e)||e.jquery&&!_.isPlainObject(e))_.each(e,function(){i(this.name,this.value)});else for(n in e)!function i(n,e,s,o){if(Array.isArray(e))_.each(e,function(e,t){s||Mt.test(n)?o(n,t):i(n+"["+("object"==_typeof(t)&&null!=t?e:"")+"]",t,s,o)});else if(s||"object"!==f(e))o(n,e);else for(var t in e)i(n+"["+t+"]",e[t],s,o)}(n,e[n],t,i);return s.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=_.prop(this,"elements");return e?_.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!_(this).is(":disabled")&&jt.test(this.nodeName)&&!Et.test(e)&&(this.checked||!ue.test(e))}).map(function(e,t){var i=_(this).val();return null==i?null:Array.isArray(i)?_.map(i,function(e){return{name:t.name,value:e.replace(At,"\r\n")}}):{name:t.name,value:i.replace(At,"\r\n")}}).get()}});var Ot=/%20/g,Nt=/#.*$/,Ht=/([?&])_=[^&]*/,It=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pt=/^(?:GET|HEAD)$/,Lt=/^\/\//,Ft={},Rt={},qt="*/".concat("*"),zt=x.createElement("a");function Bt(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var i,n=0,s=e.toLowerCase().match(H)||[];if(w(t))for(;i=s[n++];)"+"===i[0]?(i=i.slice(1)||"*",(o[i]=o[i]||[]).unshift(t)):(o[i]=o[i]||[]).push(t)}}function Wt(t,n,s,o){var r={},a=t===Rt;function l(e){var i;return r[e]=!0,_.each(t[e]||[],function(e,t){t=t(n,s,o);return"string"!=typeof t||a||r[t]?a?!(i=t):void 0:(n.dataTypes.unshift(t),l(t),!1)}),i}return l(n.dataTypes[0])||!r["*"]&&l("*")}function Vt(e,t){var i,n,s=_.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((s[i]?e:n=n||{})[i]=t[i]);return n&&_.extend(!0,e,n),e}zt.href=St.href,_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qt,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":JSON.parse,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Vt(Vt(e,_.ajaxSettings),t):Vt(_.ajaxSettings,e)},ajaxPrefilter:Bt(Ft),ajaxTransport:Bt(Rt),ajax:function(e,t){"object"==_typeof(e)&&(t=e,e=void 0);var l,c,u,i,d,h,p,n,s,f=_.ajaxSetup({},t=t||{}),m=f.context||f,v=f.context&&(m.nodeType||m.jquery)?_(m):_.event,g=_.Deferred(),y=_.Callbacks("once memory"),w=f.statusCode||{},o={},r={},a="canceled",b={readyState:0,getResponseHeader:function(e){var t;if(h){if(!i)for(i={};t=It.exec(u);)i[t[1].toLowerCase()+" "]=(i[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=i[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?u:null},setRequestHeader:function(e,t){return null==h&&(e=r[e.toLowerCase()]=r[e.toLowerCase()]||e,o[e]=t),this},overrideMimeType:function(e){return null==h&&(f.mimeType=e),this},statusCode:function(e){if(e)if(h)b.always(e[b.status]);else for(var t in e)w[t]=[w[t],e[t]];return this},abort:function(e){e=e||a;return l&&l.abort(e),k(0,e),this}};if(g.promise(b),f.url=((e||f.url||St.href)+"").replace(Lt,St.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(H)||[""],null==f.crossDomain){s=x.createElement("a");try{s.href=f.url,s.href=s.href,f.crossDomain=zt.protocol+"//"+zt.host!=s.protocol+"//"+s.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=_.param(f.data,f.traditional)),Wt(Ft,f,t,b),h)return b;for(n in(p=_.event&&f.global)&&0==_.active++&&_.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Pt.test(f.type),c=f.url.replace(Nt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Ot,"+")):(s=f.url.slice(c.length),f.data&&(f.processData||"string"==typeof f.data)&&(c+=(Dt.test(c)?"&":"?")+f.data,delete f.data),!1===f.cache&&(c=c.replace(Ht,"$1"),s=(Dt.test(c)?"&":"?")+"_="+$t.guid+++s),f.url=c+s),f.ifModified&&(_.lastModified[c]&&b.setRequestHeader("If-Modified-Since",_.lastModified[c]),_.etag[c]&&b.setRequestHeader("If-None-Match",_.etag[c])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&b.setRequestHeader("Content-Type",f.contentType),b.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+qt+"; q=0.01":""):f.accepts["*"]),f.headers)b.setRequestHeader(n,f.headers[n]);if(f.beforeSend&&(!1===f.beforeSend.call(m,b,f)||h))return b.abort();if(a="abort",y.add(f.complete),b.done(f.success),b.fail(f.error),l=Wt(Rt,f,t,b)){if(b.readyState=1,p&&v.trigger("ajaxSend",[b,f]),h)return b;f.async&&0<f.timeout&&(d=C.setTimeout(function(){b.abort("timeout")},f.timeout));try{h=!1,l.send(o,k)}catch(e){if(h)throw e;k(-1,e)}}else k(-1,"No Transport");function k(e,t,i,n){var s,o,r,a=t;h||(h=!0,d&&C.clearTimeout(d),l=void 0,u=n||"",b.readyState=0<e?4:0,n=200<=e&&e<300||304===e,i&&(r=function(e,t,i){for(var n,s,o,r,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(s in a)if(a[s]&&a[s].test(n)){l.unshift(s);break}if(l[0]in i)o=l[0];else{for(s in i){if(!l[0]||e.converters[s+" "+l[0]]){o=s;break}r=r||s}o=o||r}if(o)return o!==l[0]&&l.unshift(o),i[o]}(f,b,i)),!n&&-1<_.inArray("script",f.dataTypes)&&_.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),r=function(e,t,i,n){var s,o,r,a,l,c={},u=e.dataTypes.slice();if(u[1])for(r in e.converters)c[r.toLowerCase()]=e.converters[r];for(o=u.shift();o;)if(e.responseFields[o]&&(i[e.responseFields[o]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(r=c[l+" "+o]||c["* "+o]))for(s in c)if((a=s.split(" "))[1]===o&&(r=c[l+" "+a[0]]||c["* "+a[0]])){!0===r?r=c[s]:!0!==c[s]&&(o=a[0],u.unshift(a[1]));break}if(!0!==r)if(r&&e.throws)t=r(t);else try{t=r(t)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(f,r,b,n),n?(f.ifModified&&((i=b.getResponseHeader("Last-Modified"))&&(_.lastModified[c]=i),(i=b.getResponseHeader("etag"))&&(_.etag[c]=i)),204===e||"HEAD"===f.type?a="nocontent":304===e?a="notmodified":(a=r.state,s=r.data,n=!(o=r.error))):(o=a,!e&&a||(a="error",e<0&&(e=0))),b.status=e,b.statusText=(t||a)+"",n?g.resolveWith(m,[s,a,b]):g.rejectWith(m,[b,a,o]),b.statusCode(w),w=void 0,p&&v.trigger(n?"ajaxSuccess":"ajaxError",[b,f,n?s:o]),y.fireWith(m,[b,a]),p&&(v.trigger("ajaxComplete",[b,f]),--_.active||_.event.trigger("ajaxStop")))}return b},getJSON:function(e,t,i){return _.get(e,t,i,"json")},getScript:function(e,t){return _.get(e,void 0,t,"script")}}),_.each(["get","post"],function(e,s){_[s]=function(e,t,i,n){return w(t)&&(n=n||i,i=t,t=void 0),_.ajax(_.extend({url:e,type:s,dataType:n,data:t,success:i},_.isPlainObject(e)&&e))}}),_.ajaxPrefilter(function(e){for(var t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),_._evalUrl=function(e,t,i){return _.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){_.globalEval(e,t,i)}})},_.fn.extend({wrapAll:function(e){return this[0]&&(w(e)&&(e=e.call(this[0])),e=_(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(i){return w(i)?this.each(function(e){_(this).wrapInner(i.call(this,e))}):this.each(function(){var e=_(this),t=e.contents();t.length?t.wrapAll(i):e.append(i)})},wrap:function(t){var i=w(t);return this.each(function(e){_(this).wrapAll(i?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){_(this).replaceWith(this.childNodes)}),this}}),_.expr.pseudos.hidden=function(e){return!_.expr.pseudos.visible(e)},_.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch(e){}};var Ut={0:200,1223:204},Yt=_.ajaxSettings.xhr();y.cors=!!Yt&&"withCredentials"in Yt,y.ajax=Yt=!!Yt,_.ajaxTransport(function(s){var o,r;if(y.cors||Yt&&!s.crossDomain)return{send:function(e,t){var i,n=s.xhr();if(n.open(s.type,s.url,s.async,s.username,s.password),s.xhrFields)for(i in s.xhrFields)n[i]=s.xhrFields[i];for(i in s.mimeType&&n.overrideMimeType&&n.overrideMimeType(s.mimeType),s.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)n.setRequestHeader(i,e[i]);o=function(e){return function(){o&&(o=r=n.onload=n.onerror=n.onabort=n.ontimeout=n.onreadystatechange=null,"abort"===e?n.abort():"error"===e?"number"!=typeof n.status?t(0,"error"):t(n.status,n.statusText):t(Ut[n.status]||n.status,n.statusText,"text"!==(n.responseType||"text")||"string"!=typeof n.responseText?{binary:n.response}:{text:n.responseText},n.getAllResponseHeaders()))}},n.onload=o(),r=n.onerror=n.ontimeout=o("error"),void 0!==n.onabort?n.onabort=r:n.onreadystatechange=function(){4===n.readyState&&C.setTimeout(function(){o&&r()})},o=o("abort");try{n.send(s.hasContent&&s.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),_.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),_.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 _.globalEval(e),e}}}),_.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),_.ajaxTransport("script",function(i){var n,s;if(i.crossDomain||i.scriptAttrs)return{send:function(e,t){n=_("<script>").attr(i.scriptAttrs||{}).prop({charset:i.scriptCharset,src:i.url}).on("load error",s=function(e){n.remove(),s=null,e&&t("error"===e.type?404:200,e.type)}),x.head.appendChild(n[0])},abort:function(){s&&s()}}});var Xt=[],Qt=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||_.expando+"_"+$t.guid++;return this[e]=!0,e}}),_.ajaxPrefilter("json jsonp",function(e,t,i){var n,s,o,r=!1!==e.jsonp&&(Qt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Qt.test(e.data)&&"data");if(r||"jsonp"===e.dataTypes[0])return n=e.jsonpCallback=w(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,r?e[r]=e[r].replace(Qt,"$1"+n):!1!==e.jsonp&&(e.url+=(Dt.test(e.url)?"&":"?")+e.jsonp+"="+n),e.converters["script json"]=function(){return o||_.error(n+" was not called"),o[0]},e.dataTypes[0]="json",s=C[n],C[n]=function(){o=arguments},i.always(function(){void 0===s?_(C).removeProp(n):C[n]=s,e[n]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(n)),o&&w(s)&&s(o[0]),o=s=void 0}),"script"}),y.createHTMLDocument=((d=x.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===d.childNodes.length),_.parseHTML=function(e,t,i){return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(y.createHTMLDocument?((n=(t=x.implementation.createHTMLDocument("")).createElement("base")).href=x.location.href,t.head.appendChild(n)):t=x),n=!i&&[],(i=D.exec(e))?[t.createElement(i[1])]:(i=ge([e],t,n),n&&n.length&&_(n).remove(),_.merge([],i.childNodes)));var n},_.fn.load=function(e,t,i){var n,s,o,r=this,a=e.indexOf(" ");return-1<a&&(n=bt(e.slice(a)),e=e.slice(0,a)),w(t)?(i=t,t=void 0):t&&"object"==_typeof(t)&&(s="POST"),0<r.length&&_.ajax({url:e,type:s||"GET",dataType:"html",data:t}).done(function(e){o=arguments,r.html(n?_("<div>").append(_.parseHTML(e)).find(n):e)}).always(i&&function(e,t){r.each(function(){i.apply(this,o||[e.responseText,t,e])})}),this},_.expr.pseudos.animated=function(t){return _.grep(_.timers,function(e){return t===e.elem}).length},_.offset={setOffset:function(e,t,i){var n,s,o,r,a=_.css(e,"position"),l=_(e),c={};"static"===a&&(e.style.position="relative"),o=l.offset(),n=_.css(e,"top"),r=_.css(e,"left"),r=("absolute"===a||"fixed"===a)&&-1<(n+r).indexOf("auto")?(s=(a=l.position()).top,a.left):(s=parseFloat(n)||0,parseFloat(r)||0),null!=(t=w(t)?t.call(e,i,_.extend({},o)):t).top&&(c.top=t.top-o.top+s),null!=t.left&&(c.left=t.left-o.left+r),"using"in t?t.using.call(e,c):l.css(c)}},_.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){_.offset.setOffset(this,t,e)});var e,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),i=i.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,n=this[0],s={top:0,left:0};if("fixed"===_.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),i=n.ownerDocument,e=n.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===_.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((s=_(e).offset()).top+=_.css(e,"borderTopWidth",!0),s.left+=_.css(e,"borderLeftWidth",!0))}return{top:t.top-s.top-_.css(n,"marginTop",!0),left:t.left-s.left-_.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===_.css(e,"position");)e=e.offsetParent;return e||ne})}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,s){var o="pageYOffset"===s;_.fn[t]=function(e){return z(this,function(e,t,i){var n;return m(e)?n=e:9===e.nodeType&&(n=e.defaultView),void 0===i?n?n[s]:e[t]:void(n?n.scrollTo(o?n.pageXOffset:i,o?i:n.pageYOffset):e[t]=i)},t,e,arguments.length)}}),_.each(["top","left"],function(e,i){_.cssHooks[i]=Ue(y.pixelPosition,function(e,t){if(t)return t=Ve(e,i),ze.test(t)?_(e).position()[i]+"px":t})}),_.each({Height:"height",Width:"width"},function(r,a){_.each({padding:"inner"+r,content:a,"":"outer"+r},function(n,o){_.fn[o]=function(e,t){var i=arguments.length&&(n||"boolean"!=typeof e),s=n||(!0===e||!0===t?"margin":"border");return z(this,function(e,t,i){var n;return m(e)?0===o.indexOf("outer")?e["inner"+r]:e.document.documentElement["client"+r]:9===e.nodeType?(n=e.documentElement,Math.max(e.body["scroll"+r],n["scroll"+r],e.body["offset"+r],n["offset"+r],n["client"+r])):void 0===i?_.css(e,t,s):_.style(e,t,i,s)},a,i?e:void 0,i)}})}),_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){_.fn[t]=function(e){return this.on(t,e)}}),_.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),_.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,i){_.fn[i]=function(e,t){return 0<arguments.length?this.on(i,null,e,t):this.trigger(i)}});var Gt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;_.proxy=function(e,t){var i,n;if("string"==typeof t&&(n=e[t],t=e,e=n),w(e))return i=a.call(arguments,2),(n=function(){return e.apply(t||this,i.concat(a.call(arguments)))}).guid=e.guid=e.guid||_.guid++,n},_.holdReady=function(e){e?_.readyWait++:_.ready(!0)},_.isArray=Array.isArray,_.parseJSON=JSON.parse,_.nodeName=$,_.isFunction=w,_.isWindow=m,_.camelCase=U,_.type=f,_.now=Date.now,_.isNumeric=function(e){var t=_.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},_.trim=function(e){return null==e?"":(e+"").replace(Gt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return _});var Kt=C.jQuery,Jt=C.$;return _.noConflict=function(e){return C.$===_&&(C.$=Jt),e&&C.jQuery===_&&(C.jQuery=Kt),_},void 0===e&&(C.jQuery=C.$=_),_}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(u){function n(e,t){var i,n,s=e.nodeName.toLowerCase();return"area"===s?(n=(i=e.parentNode).name,!(!e.href||!n||"map"!==i.nodeName.toLowerCase())&&(!!(n=u("img[usemap='#"+n+"']")[0])&&o(n))):(/^(input|select|textarea|button|object)$/.test(s)?!e.disabled:"a"===s&&e.href||t)&&o(e)}function o(e){return u.expr.filters.visible(e)&&!u(e).parents().addBack().filter(function(){return"hidden"===u.css(this,"visibility")}).length}var e,s,t,i;u.ui=u.ui||{},u.extend(u.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),u.fn.extend({scrollParent:function(e){var t=this.css("position"),i="absolute"===t,n=e?/(auto|scroll|hidden)/:/(auto|scroll)/,e=this.parents().filter(function(){var e=u(this);return(!i||"static"!==e.css("position"))&&n.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==t&&e.length?e:u(this[0].ownerDocument||document)},uniqueId:(i=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++i)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&u(this).removeAttr("id")})}}),u.extend(u.expr[":"],{data:u.expr.createPseudo?u.expr.createPseudo(function(t){return function(e){return!!u.data(e,t)}}):function(e,t,i){return!!u.data(e,i[3])},focusable:function(e){return n(e,!isNaN(u.attr(e,"tabindex")))},tabbable:function(e){var t=u.attr(e,"tabindex"),i=isNaN(t);return(i||0<=t)&&n(e,!i)}}),u("<a>").outerWidth(1).jquery||u.each(["Width","Height"],function(e,i){function n(e,t,i,n){return u.each(s,function(){t-=parseFloat(u.css(e,"padding"+this))||0,i&&(t-=parseFloat(u.css(e,"border"+this+"Width"))||0),n&&(t-=parseFloat(u.css(e,"margin"+this))||0)}),t}var s="Width"===i?["Left","Right"]:["Top","Bottom"],o=i.toLowerCase(),r={innerWidth:u.fn.innerWidth,innerHeight:u.fn.innerHeight,outerWidth:u.fn.outerWidth,outerHeight:u.fn.outerHeight};u.fn["inner"+i]=function(e){return void 0===e?r["inner"+i].call(this):this.each(function(){u(this).css(o,n(this,e)+"px")})},u.fn["outer"+i]=function(e,t){return"number"!=typeof e?r["outer"+i].call(this,e):this.each(function(){u(this).css(o,n(this,e,!0,t)+"px")})}}),u.fn.addBack||(u.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),u("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(u.fn.removeData=(t=u.fn.removeData,function(e){return arguments.length?t.call(this,u.camelCase(e)):t.call(this)})),u.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),u.fn.extend({focus:(s=u.fn.focus,function(t,i){return"number"==typeof t?this.each(function(){var e=this;setTimeout(function(){u(e).focus(),i&&i.call(e)},t)}):s.apply(this,arguments)}),disableSelection:(e="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.bind(e+".ui-disableSelection",function(e){e.preventDefault()})}),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(e){if(void 0!==e)return this.css("zIndex",e);if(this.length)for(var t,i,n=u(this[0]);n.length&&n[0]!==document;){if(("absolute"===(t=n.css("position"))||"relative"===t||"fixed"===t)&&(i=parseInt(n.css("zIndex"),10),!isNaN(i)&&0!==i))return i;n=n.parent()}return 0}}),u.ui.plugin={add:function(e,t,i){var n,s=u.ui[e].prototype;for(n in i)s.plugins[n]=s.plugins[n]||[],s.plugins[n].push([t,i[n]])},call:function(e,t,i,n){var s,o=e.plugins[t];if(o&&(n||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(s=0;o.length>s;s++)e.options[o[s][0]]&&o[s][1].apply(e.element,i)}};var r,a=0,l=Array.prototype.slice;u.cleanData=(r=u.cleanData,function(e){for(var t,i,n=0;null!=(i=e[n]);n++)try{(t=u._data(i,"events"))&&t.remove&&u(i).triggerHandler("remove")}catch(e){}r(e)}),u.widget=function(e,i,t){var n,s,o,r,a={},l=e.split(".")[0];return e=e.split(".")[1],t||(t=i,i=u.Widget),u.expr[":"][(n=l+"-"+e).toLowerCase()]=function(e){return!!u.data(e,n)},u[l]=u[l]||{},s=u[l][e],o=u[l][e]=function(e,t){return this._createWidget?void(arguments.length&&this._createWidget(e,t)):new o(e,t)},u.extend(o,s,{version:t.version,_proto:u.extend({},t),_childConstructors:[]}),(r=new i).options=u.widget.extend({},r.options),u.each(t,function(t,n){return u.isFunction(n)?void(a[t]=function(){var e,t=this._super,i=this._superApply;return this._super=s,this._superApply=o,e=n.apply(this,arguments),this._super=t,this._superApply=i,e}):void(a[t]=n);function s(){return i.prototype[t].apply(this,arguments)}function o(e){return i.prototype[t].apply(this,e)}}),o.prototype=u.widget.extend(r,{widgetEventPrefix:s&&r.widgetEventPrefix||e},a,{constructor:o,namespace:l,widgetName:e,widgetFullName:n}),s?(u.each(s._childConstructors,function(e,t){var i=t.prototype;u.widget(i.namespace+"."+i.widgetName,o,t._proto)}),delete s._childConstructors):i._childConstructors.push(o),u.widget.bridge(e,o),o},u.widget.extend=function(e){for(var t,i,n=l.call(arguments,1),s=0,o=n.length;s<o;s++)for(t in n[s])i=n[s][t],n[s].hasOwnProperty(t)&&void 0!==i&&(e[t]=u.isPlainObject(i)?u.isPlainObject(e[t])?u.widget.extend({},e[t],i):u.widget.extend({},i):i);return e},u.widget.bridge=function(o,t){var r=t.prototype.widgetFullName||o;u.fn[o]=function(i){var e="string"==typeof i,n=l.call(arguments,1),s=this;return e?this.each(function(){var e,t=u.data(this,r);return"instance"===i?(s=t,!1):t?u.isFunction(t[i])&&"_"!==i.charAt(0)?(e=t[i].apply(t,n))!==t&&void 0!==e?(s=e&&e.jquery?s.pushStack(e.get()):e,!1):void 0:u.error("no such method '"+i+"' for "+o+" widget instance"):u.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+i+"'")}):(n.length&&(i=u.widget.extend.apply(null,[i].concat(n))),this.each(function(){var e=u.data(this,r);e?(e.option(i||{}),e._init&&e._init()):u.data(this,r,new t(i,this))})),s}},u.Widget=function(){},u.Widget._childConstructors=[],u.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,t){t=u(t||this.defaultElement||this)[0],this.element=u(t),this.uuid=a++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=u(),this.hoverable=u(),this.focusable=u(),t!==this&&(u.data(t,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===t&&this.destroy()}}),this.document=u(t.style?t.ownerDocument:t.document||t),this.window=u(this.document[0].defaultView||this.document[0].parentWindow)),this.options=u.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:u.noop,_getCreateEventData:u.noop,_create:u.noop,_init:u.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(u.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:u.noop,widget:function(){return this.element},option:function(e,t){var i,n,s,o=e;if(0===arguments.length)return u.widget.extend({},this.options);if("string"==typeof e)if(o={},e=(i=e.split(".")).shift(),i.length){for(n=o[e]=u.widget.extend({},this.options[e]),s=0;i.length-1>s;s++)n[i[s]]=n[i[s]]||{},n=n[i[s]];if(e=i.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=t}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];o[e]=t}return this._setOptions(o),this},_setOptions:function(e){for(var t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!t),t&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(s,o,e){var r,a=this;"boolean"!=typeof s&&(e=o,o=s,s=!1),e?(o=r=u(o),this.bindings=this.bindings.add(o)):(e=o,o=this.element,r=this.widget()),u.each(e,function(e,t){function i(){return s||!0!==a.options.disabled&&!u(this).hasClass("ui-state-disabled")?("string"==typeof t?a[t]:t).apply(a,arguments):void 0}"string"!=typeof t&&(i.guid=t.guid=t.guid||i.guid||u.guid++);var n=e.match(/^([\w:-]*)\s*(.*)$/),e=n[1]+a.eventNamespace,n=n[2];n?r.delegate(n,e,i):o.bind(e,i)})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(t).undelegate(t),this.bindings=u(this.bindings.not(e).get()),this.focusable=u(this.focusable.not(e).get()),this.hoverable=u(this.hoverable.not(e).get())},_delay:function(e,t){var i=this;return setTimeout(function(){return("string"==typeof e?i[e]:e).apply(i,arguments)},t||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){u(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){u(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){u(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){u(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,t,i){var n,s,o=this.options[e];if(i=i||{},(t=u.Event(t)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),t.target=this.element[0],s=t.originalEvent)for(n in s)n in t||(t[n]=s[n]);return this.element.trigger(t,i),!(u.isFunction(o)&&!1===o.apply(this.element[0],[t].concat(i))||t.isDefaultPrevented())}},u.each({show:"fadeIn",hide:"fadeOut"},function(o,r){u.Widget.prototype["_"+o]=function(t,e,i){var n=(e="string"==typeof e?{effect:e}:e)?!0!==e&&"number"!=typeof e&&e.effect||r:o,s=!u.isEmptyObject(e="number"==typeof(e=e||{})?{duration:e}:e);e.complete=i,e.delay&&t.delay(e.delay),s&&u.effects&&u.effects.effect[n]?t[o](e):n!==o&&t[n]?t[n](e.duration,e.easing,i):t.queue(function(e){u(this)[o](),i&&i.call(t[0]),e()})}}),u.widget;var c=!1;u(document).mouseup(function(){c=!1}),u.widget("ui.mouse",{version:"1.11.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).bind("click."+this.widgetName,function(e){return!0===u.data(e.target,t.widgetName+".preventClickEvent")?(u.removeData(e.target,t.widgetName+".preventClickEvent"),e.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!c){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var t=this,i=1===e.which,n=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&u(e.target).closest(this.options.cancel).length;return i&&!n&&this._mouseCapture(e)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?e.preventDefault():(!0===u.data(e.target,this.widgetName+".preventClickEvent")&&u.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return t._mouseMove(e)},this._mouseUpDelegate=function(e){return t._mouseUp(e)},this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),c=!0)),!0}},_mouseMove:function(e){if(this._mouseMoved){if(u.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&u.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),c=!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),u.widget("ui.slider",u.ui.mouse,{version:"1.11.4",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,t=this.options,i=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),n=[],s=t.values&&t.values.length||1;for(i.length>s&&(i.slice(s).remove(),i=i.slice(0,s)),e=i.length;e<s;e++)n.push("<span class='ui-slider-handle ui-state-default ui-corner-all' tabindex='0'></span>");this.handles=i.add(u(n.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(e){u(this).data("ui-slider-handle-index",e)})},_createRange:function(){var e=this.options,t="";e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:u.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=u("<div></div>").appendTo(this.element),t="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(t+("min"===e.range||"max"===e.range?" ui-slider-range-"+e.range:""))):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(e){var i,n,s,o,t,r,a=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),r={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(r),n=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var t=Math.abs(i-a.values(e));(t<n||n===t&&(e===a._lastChangedValue||a.values(e)===l.min))&&(n=t,s=u(this),o=e)}),!1!==this._start(e,o)&&(this._mouseSliding=!0,this._handleIndex=o,s.addClass("ui-state-active").focus(),t=s.offset(),r=!u(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=r?{left:0,top:0}:{left:e.pageX-t.left-s.width()/2,top:e.pageY-t.top-s.height()/2-(parseInt(s.css("borderTopWidth"),10)||0)-(parseInt(s.css("borderBottomWidth"),10)||0)+(parseInt(s.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,o,i),this._animateOff=!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},t=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,t),!1},_mouseStop:function(e){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,e="horizontal"===this.orientation?(t=this.elementSize.width,e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),e=e/t;return(e=1<e?1:e)<0&&(e=0),"vertical"===this.orientation&&(e=1-e),t=this._valueMax()-this._valueMin(),t=this._valueMin()+e*t,this._trimAlignValue(t)},_start:function(e,t){var i={handle:this.handles[t],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("start",e,i)},_slide:function(e,t,i){var n,s;this.options.values&&this.options.values.length?(n=this.values(t?0:1),(i=2===this.options.values.length&&!0===this.options.range&&(0===t&&n<i||1===t&&i<n)?n:i)!==this.values(t)&&((s=this.values())[t]=i,s=this._trigger("slide",e,{handle:this.handles[t],value:i,values:s}),n=this.values(t?0:1),!1!==s&&this.values(t,i))):i===this.value()||!1!==(s=this._trigger("slide",e,{handle:this.handles[t],value:i}))&&this.value(i)},_stop:function(e,t){var i={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("stop",e,i)},_change:function(e,t){var i;this._keySliding||this._mouseSliding||(i={handle:this.handles[t],value:this.value()},this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._lastChangedValue=t,this._trigger("change",e,i))},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,t){var i,n,s;if(1<arguments.length)return this.options.values[e]=this._trimAlignValue(t),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!u.isArray(e))return this.options.values&&this.options.values.length?this._values(e):this.value();for(i=this.options.values,n=e,s=0;i.length>s;s+=1)i[s]=this._trimAlignValue(n[s]),this._change(null,s);this._refreshValue()},_setOption:function(e,t){var i,n=0;switch("range"===e&&!0===this.options.range&&("min"===t?(this.options.value=this._values(0),this.options.values=null):"max"===t&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),u.isArray(this.options.values)&&(n=this.options.values.length),"disabled"===e&&this.element.toggleClass("ui-state-disabled",!!t),this._super(e,t),e){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue(),this.handles.css("horizontal"===t?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=0;i<n;i+=1)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var e=this.options.value;return this._trimAlignValue(e)},_values:function(e){var t,i;if(arguments.length)return e=this.options.values[e],this._trimAlignValue(e);if(this.options.values&&this.options.values.length){for(t=this.options.values.slice(),i=0;t.length>i;i+=1)t[i]=this._trimAlignValue(t[i]);return t}return[]},_trimAlignValue:function(e){if(this._valueMin()>=e)return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=0<this.options.step?this.options.step:1,i=(e-this._valueMin())%t,e=e-i;return 2*Math.abs(i)>=t&&(e+=0<i?t:-t),parseFloat(e.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),i=this.options.step,e=Math.floor(+(e-t).toFixed(this._precision())/i)*i+t;this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return e=null!==this.options.min?Math.max(e,this._precisionOf(this.options.min)):e},_precisionOf:function(e){var t=""+e,e=t.indexOf(".");return-1===e?0:t.length-e-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshValue:function(){var t,i,e,n,s,o=this.options.range,r=this.options,a=this,l=!this._animateOff&&r.animate,c={};this.options.values&&this.options.values.length?this.handles.each(function(e){i=(a.values(e)-a._valueMin())/(a._valueMax()-a._valueMin())*100,c["horizontal"===a.orientation?"left":"bottom"]=i+"%",u(this).stop(1,1)[l?"animate":"css"](c,r.animate),!0===a.options.range&&("horizontal"===a.orientation?(0===e&&a.range.stop(1,1)[l?"animate":"css"]({left:i+"%"},r.animate),1===e&&a.range[l?"animate":"css"]({width:i-t+"%"},{queue:!1,duration:r.animate})):(0===e&&a.range.stop(1,1)[l?"animate":"css"]({bottom:i+"%"},r.animate),1===e&&a.range[l?"animate":"css"]({height:i-t+"%"},{queue:!1,duration:r.animate}))),t=i}):(e=this.value(),n=this._valueMin(),s=this._valueMax(),c["horizontal"===this.orientation?"left":"bottom"]=(i=s!==n?(e-n)/(s-n)*100:0)+"%",this.handle.stop(1,1)[l?"animate":"css"](c,r.animate),"min"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:i+"%"},r.animate),"max"===o&&"horizontal"===this.orientation&&this.range[l?"animate":"css"]({width:100-i+"%"},{queue:!1,duration:r.animate}),"min"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:i+"%"},r.animate),"max"===o&&"vertical"===this.orientation&&this.range[l?"animate":"css"]({height:100-i+"%"},{queue:!1,duration:r.animate}))},_handleEvents:{keydown:function(e){var t,i,n,s=u(e.target).data("ui-slider-handle-index");switch(e.keyCode){case u.ui.keyCode.HOME:case u.ui.keyCode.END:case u.ui.keyCode.PAGE_UP:case u.ui.keyCode.PAGE_DOWN:case u.ui.keyCode.UP:case u.ui.keyCode.RIGHT:case u.ui.keyCode.DOWN:case u.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,u(e.target).addClass("ui-state-active"),!1===this._start(e,s)))return}switch(n=this.options.step,t=i=this.options.values&&this.options.values.length?this.values(s):this.value(),e.keyCode){case u.ui.keyCode.HOME:i=this._valueMin();break;case u.ui.keyCode.END:i=this._valueMax();break;case u.ui.keyCode.PAGE_UP:i=this._trimAlignValue(t+(this._valueMax()-this._valueMin())/this.numPages);break;case u.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(t-(this._valueMax()-this._valueMin())/this.numPages);break;case u.ui.keyCode.UP:case u.ui.keyCode.RIGHT:if(t===this._valueMax())return;i=this._trimAlignValue(t+n);break;case u.ui.keyCode.DOWN:case u.ui.keyCode.LEFT:if(t===this._valueMin())return;i=this._trimAlignValue(t-n)}this._slide(e,s,i)},keyup:function(e){var t=u(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,t),this._change(e,t),u(e.target).removeClass("ui-state-active"))}}})}),function(t){function i(e,t){var i,n;1<e.originalEvent.touches.length||(e.preventDefault(),i=e.originalEvent.changedTouches[0],(n=document.createEvent("MouseEvents")).initMouseEvent(t,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(n))}var n,e,s,o;t.support.touch="ontouchend"in document,t.support.touch&&(e=t.ui.mouse.prototype,s=e._mouseInit,o=e._mouseDestroy,e._touchStart=function(e){!n&&this._mouseCapture(e.originalEvent.changedTouches[0])&&(n=!0,this._touchMoved=!1,i(e,"mouseover"),i(e,"mousemove"),i(e,"mousedown"))},e._touchMove=function(e){n&&(this._touchMoved=!0,i(e,"mousemove"))},e._touchEnd=function(e){n&&(i(e,"mouseup"),i(e,"mouseout"),this._touchMoved||i(e,"click"),n=!1)},e._mouseInit=function(){var e=this;e.element.bind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),s.call(e)},e._mouseDestroy=function(){var e=this;e.element.unbind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),o.call(e)})}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(c){var n,r=window.Slick||{};n=0,(r=function(e,t){var i=this;i.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:c(e),appendDots:c(e),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return c('<button type="button" data-role="none" role="button" tabindex="0" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},i.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},c.extend(i,i.initials),i.activeBreakpoint=null,i.animType=null,i.animProp=null,i.breakpoints=[],i.breakpointSettings=[],i.cssTransitions=!1,i.focussed=!1,i.interrupted=!1,i.hidden="hidden",i.paused=!0,i.positionProp=null,i.respondTo=null,i.rowCount=1,i.shouldClick=!0,i.$slider=c(e),i.$slidesCache=null,i.transformType=null,i.transitionType=null,i.visibilityChange="visibilitychange",i.windowWidth=0,i.windowTimer=null,e=c(e).data("slick")||{},i.options=c.extend({},i.defaults,t,e),i.currentSlide=i.options.initialSlide,i.originalSettings=i.options,void 0!==document.mozHidden?(i.hidden="mozHidden",i.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(i.hidden="webkitHidden",i.visibilityChange="webkitvisibilitychange"),i.autoPlay=c.proxy(i.autoPlay,i),i.autoPlayClear=c.proxy(i.autoPlayClear,i),i.autoPlayIterator=c.proxy(i.autoPlayIterator,i),i.changeSlide=c.proxy(i.changeSlide,i),i.clickHandler=c.proxy(i.clickHandler,i),i.selectHandler=c.proxy(i.selectHandler,i),i.setPosition=c.proxy(i.setPosition,i),i.swipeHandler=c.proxy(i.swipeHandler,i),i.dragHandler=c.proxy(i.dragHandler,i),i.keyHandler=c.proxy(i.keyHandler,i),i.instanceUid=n++,i.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,i.registerBreakpoints(),i.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},r.prototype.addSlide=r.prototype.slickAdd=function(e,t,i){var n=this;if("boolean"==typeof t)i=t,t=null;else if(t<0||t>=n.slideCount)return!1;n.unload(),"number"==typeof t?0===t&&0===n.$slides.length?c(e).appendTo(n.$slideTrack):i?c(e).insertBefore(n.$slides.eq(t)):c(e).insertAfter(n.$slides.eq(t)):!0===i?c(e).prependTo(n.$slideTrack):c(e).appendTo(n.$slideTrack),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slides.each(function(e,t){c(t).attr("data-slick-index",e)}),n.$slidesCache=n.$slides,n.reinit()},r.prototype.animateHeight=function(){var e,t=this;1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical&&(e=t.$slides.eq(t.currentSlide).outerHeight(!0),t.$list.animate({height:e},t.options.speed))},r.prototype.animateSlide=function(e,t){var i={},n=this;n.animateHeight(),!0===n.options.rtl&&!1===n.options.vertical&&(e=-e),!1===n.transformsEnabled?!1===n.options.vertical?n.$slideTrack.animate({left:e},n.options.speed,n.options.easing,t):n.$slideTrack.animate({top:e},n.options.speed,n.options.easing,t):!1===n.cssTransitions?(!0===n.options.rtl&&(n.currentLeft=-n.currentLeft),c({animStart:n.currentLeft}).animate({animStart:e},{duration:n.options.speed,easing:n.options.easing,step:function(e){e=Math.ceil(e),!1===n.options.vertical?i[n.animType]="translate("+e+"px, 0px)":i[n.animType]="translate(0px,"+e+"px)",n.$slideTrack.css(i)},complete:function(){t&&t.call()}})):(n.applyTransition(),e=Math.ceil(e),!1===n.options.vertical?i[n.animType]="translate3d("+e+"px, 0px, 0px)":i[n.animType]="translate3d(0px,"+e+"px, 0px)",n.$slideTrack.css(i),t&&setTimeout(function(){n.disableTransition(),t.call()},n.options.speed))},r.prototype.getNavTarget=function(){var e=this.options.asNavFor;return e=e&&null!==e?c(e).not(this.$slider):e},r.prototype.asNavFor=function(t){var e=this.getNavTarget();null!==e&&"object"===_typeof(e)&&e.each(function(){var e=c(this).slick("getSlick");e.unslicked||e.slideHandler(t,!0)})},r.prototype.applyTransition=function(e){var t=this,i={};!1===t.options.fade?i[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:i[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,(!1===t.options.fade?t.$slideTrack:t.$slides.eq(e)).css(i)},r.prototype.autoPlay=function(){var e=this;e.autoPlayClear(),e.slideCount>e.options.slidesToShow&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},r.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},r.prototype.autoPlayIterator=function(){var e=this,t=e.currentSlide+e.options.slidesToScroll;e.paused||e.interrupted||e.focussed||(!1===e.options.infinite&&(1===e.direction&&e.currentSlide+1===e.slideCount-1?e.direction=0:0===e.direction&&(t=e.currentSlide-e.options.slidesToScroll,e.currentSlide-1==0&&(e.direction=1))),e.slideHandler(t))},r.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=c(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=c(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},r.prototype.buildDots=function(){var e,t,i=this;if(!0===i.options.dots&&i.slideCount>i.options.slidesToShow){for(i.$slider.addClass("slick-dotted"),t=c("<ul />").addClass(i.options.dotsClass),e=0;e<=i.getDotCount();e+=1)t.append(c("<li />").append(i.options.customPaging.call(this,i,e)));i.$dots=t.appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},r.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){c(t).attr("data-slick-index",e).data("originalStyling",c(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?c('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),c("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},r.prototype.buildRows=function(){var e,t,i,n=this,s=document.createDocumentFragment(),o=n.$slider.children();if(1<n.options.rows){for(i=n.options.slidesPerRow*n.options.rows,t=Math.ceil(o.length/i),e=0;e<t;e++){for(var r=document.createElement("div"),a=0;a<n.options.rows;a++){for(var l=document.createElement("div"),c=0;c<n.options.slidesPerRow;c++){var u=e*i+(a*n.options.slidesPerRow+c);o.get(u)&&l.appendChild(o.get(u))}r.appendChild(l)}s.appendChild(r)}n.$slider.empty().append(s),n.$slider.children().children().children().css({width:100/n.options.slidesPerRow+"%",display:"inline-block"})}},r.prototype.checkResponsive=function(e,t){var i,n,s,o=this,r=!1,a=o.$slider.width(),l=window.innerWidth||c(window).width();if("window"===o.respondTo?s=l:"slider"===o.respondTo?s=a:"min"===o.respondTo&&(s=Math.min(l,a)),o.options.responsive&&o.options.responsive.length&&null!==o.options.responsive){for(i in n=null,o.breakpoints)o.breakpoints.hasOwnProperty(i)&&(!1===o.originalSettings.mobileFirst?s<o.breakpoints[i]&&(n=o.breakpoints[i]):s>o.breakpoints[i]&&(n=o.breakpoints[i]));null!==n?null!==o.activeBreakpoint&&n===o.activeBreakpoint&&!t||(o.activeBreakpoint=n,"unslick"===o.breakpointSettings[n]?o.unslick(n):(o.options=c.extend({},o.originalSettings,o.breakpointSettings[n]),!0===e&&(o.currentSlide=o.options.initialSlide),o.refresh(e)),r=n):null!==o.activeBreakpoint&&(o.activeBreakpoint=null,o.options=o.originalSettings,!0===e&&(o.currentSlide=o.options.initialSlide),o.refresh(e),r=n),e||!1===r||o.$slider.trigger("breakpoint",[o,r])}},r.prototype.changeSlide=function(e,t){var i,n=this,s=c(e.currentTarget);switch(s.is("a")&&e.preventDefault(),s.is("li")||(s=s.closest("li")),i=n.slideCount%n.options.slidesToScroll!=0?0:(n.slideCount-n.currentSlide)%n.options.slidesToScroll,e.data.message){case"previous":o=0==i?n.options.slidesToScroll:n.options.slidesToShow-i,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide-o,!1,t);break;case"next":o=0==i?n.options.slidesToScroll:i,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide+o,!1,t);break;case"index":var o=0===e.data.index?0:e.data.index||s.index()*n.options.slidesToScroll;n.slideHandler(n.checkNavigable(o),!1,t),s.children().trigger("focus");break;default:return}},r.prototype.checkNavigable=function(e){var t=this.getNavigableIndexes(),i=0;if(e>t[t.length-1])e=t[t.length-1];else for(var n in t){if(e<t[n]){e=i;break}i=t[n]}return e},r.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&c("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",c.proxy(e.interrupt,e,!0)).off("mouseleave.slick",c.proxy(e.interrupt,e,!1)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide)),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),c(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&c(e.$slideTrack).children().off("click.slick",e.selectHandler),c(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),c(window).off("resize.slick.slick-"+e.instanceUid,e.resize),c("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),c(window).off("load.slick.slick-"+e.instanceUid,e.setPosition),c(document).off("ready.slick.slick-"+e.instanceUid,e.setPosition)},r.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",c.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",c.proxy(e.interrupt,e,!1))},r.prototype.cleanUpRows=function(){var e;1<this.options.rows&&((e=this.$slides.children().children()).removeAttr("style"),this.$slider.empty().append(e))},r.prototype.clickHandler=function(e){!1===this.shouldClick&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},r.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),c(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){c(this).attr("style",c(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},r.prototype.disableTransition=function(e){var t={};t[this.transitionType]="",(!1===this.options.fade?this.$slideTrack:this.$slides.eq(e)).css(t)},r.prototype.fadeSlide=function(e,t){var i=this;!1===i.cssTransitions?(i.$slides.eq(e).css({zIndex:i.options.zIndex}),i.$slides.eq(e).animate({opacity:1},i.options.speed,i.options.easing,t)):(i.applyTransition(e),i.$slides.eq(e).css({opacity:1,zIndex:i.options.zIndex}),t&&setTimeout(function(){i.disableTransition(e),t.call()},i.options.speed))},r.prototype.fadeSlideOut=function(e){var t=this;!1===t.cssTransitions?t.$slides.eq(e).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(e),t.$slides.eq(e).css({opacity:0,zIndex:t.options.zIndex-2}))},r.prototype.filterSlides=r.prototype.slickFilter=function(e){var t=this;null!==e&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(e).appendTo(t.$slideTrack),t.reinit())},r.prototype.focusHandler=function(){var i=this;i.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(e){e.stopImmediatePropagation();var t=c(this);setTimeout(function(){i.options.pauseOnFocus&&(i.focussed=t.is(":focus"),i.autoPlay())},0)})},r.prototype.getCurrent=r.prototype.slickCurrentSlide=function(){return this.currentSlide},r.prototype.getDotCount=function(){var e=this,t=0,i=0,n=0;if(!0===e.options.infinite)for(;t<e.slideCount;)++n,t=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(!0===e.options.centerMode)n=e.slideCount;else if(e.options.asNavFor)for(;t<e.slideCount;)++n,t=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else n=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);return n-1},r.prototype.getLeft=function(e){var t,i=this,n=0;return i.slideOffset=0,t=i.$slides.first().outerHeight(!0),!0===i.options.infinite?(i.slideCount>i.options.slidesToShow&&(i.slideOffset=i.slideWidth*i.options.slidesToShow*-1,n=t*i.options.slidesToShow*-1),i.slideCount%i.options.slidesToScroll!=0&&e+i.options.slidesToScroll>i.slideCount&&i.slideCount>i.options.slidesToShow&&(n=e>i.slideCount?(i.slideOffset=(i.options.slidesToShow-(e-i.slideCount))*i.slideWidth*-1,(i.options.slidesToShow-(e-i.slideCount))*t*-1):(i.slideOffset=i.slideCount%i.options.slidesToScroll*i.slideWidth*-1,i.slideCount%i.options.slidesToScroll*t*-1))):e+i.options.slidesToShow>i.slideCount&&(i.slideOffset=(e+i.options.slidesToShow-i.slideCount)*i.slideWidth,n=(e+i.options.slidesToShow-i.slideCount)*t),i.slideCount<=i.options.slidesToShow&&(n=i.slideOffset=0),!0===i.options.centerMode&&!0===i.options.infinite?i.slideOffset+=i.slideWidth*Math.floor(i.options.slidesToShow/2)-i.slideWidth:!0===i.options.centerMode&&(i.slideOffset=0,i.slideOffset+=i.slideWidth*Math.floor(i.options.slidesToShow/2)),t=!1===i.options.vertical?e*i.slideWidth*-1+i.slideOffset:e*t*-1+n,!0===i.options.variableWidth&&(n=i.slideCount<=i.options.slidesToShow||!1===i.options.infinite?i.$slideTrack.children(".slick-slide").eq(e):i.$slideTrack.children(".slick-slide").eq(e+i.options.slidesToShow),t=!0===i.options.rtl?n[0]?-1*(i.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,!0===i.options.centerMode&&(n=i.slideCount<=i.options.slidesToShow||!1===i.options.infinite?i.$slideTrack.children(".slick-slide").eq(e):i.$slideTrack.children(".slick-slide").eq(e+i.options.slidesToShow+1),t=!0===i.options.rtl?n[0]?-1*(i.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,t+=(i.$list.width()-n.outerWidth())/2)),t},r.prototype.getOption=r.prototype.slickGetOption=function(e){return this.options[e]},r.prototype.getNavigableIndexes=function(){for(var e=this,t=0,i=0,n=[],s=!1===e.options.infinite?e.slideCount:(t=-1*e.options.slidesToScroll,i=-1*e.options.slidesToScroll,2*e.slideCount);t<s;)n.push(t),t=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return n},r.prototype.getSlick=function(){return this},r.prototype.getSlideCount=function(){var i,n=this,s=!0===n.options.centerMode?n.slideWidth*Math.floor(n.options.slidesToShow/2):0;return!0===n.options.swipeToSlide?(n.$slideTrack.find(".slick-slide").each(function(e,t){if(t.offsetLeft-s+c(t).outerWidth()/2>-1*n.swipeLeft)return i=t,!1}),Math.abs(c(i).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},r.prototype.goTo=r.prototype.slickGoTo=function(e,t){this.changeSlide({data:{message:"index",index:parseInt(e)}},t)},r.prototype.init=function(e){var t=this;c(t.$slider).hasClass("slick-initialized")||(c(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},r.prototype.initADA=function(){var t=this;t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),t.$slideTrack.attr("role","listbox"),t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function(e){c(this).attr("role","option");e=t.options.centerMode?e:Math.floor(e/t.options.slidesToShow);!0===t.options.dots&&c(this).attr("aria-describedby","slick-slide"+t.instanceUid+e)}),null!==t.$dots&&t.$dots.attr("role","tablist").find("li").each(function(e){c(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+t.instanceUid+e,id:"slick-slide"+t.instanceUid+e})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),t.activateADA()},r.prototype.initArrowEvents=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.off("click.slick").on("click.slick",{message:"next"},e.changeSlide))},r.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&c("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&c("li",e.$dots).on("mouseenter.slick",c.proxy(e.interrupt,e,!0)).on("mouseleave.slick",c.proxy(e.interrupt,e,!1))},r.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",c.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",c.proxy(e.interrupt,e,!1)))},r.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),c(document).on(e.visibilityChange,c.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&c(e.$slideTrack).children().on("click.slick",e.selectHandler),c(window).on("orientationchange.slick.slick-"+e.instanceUid,c.proxy(e.orientationChange,e)),c(window).on("resize.slick.slick-"+e.instanceUid,c.proxy(e.resize,e)),c("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),c(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),c(document).on("ready.slick.slick-"+e.instanceUid,e.setPosition)},r.prototype.initUI=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.show()},r.prototype.keyHandler=function(e){var t=this;e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===e.keyCode&&!0===t.options.accessibility?t.changeSlide({data:{message:!0===t.options.rtl?"next":"previous"}}):39===e.keyCode&&!0===t.options.accessibility&&t.changeSlide({data:{message:!0===t.options.rtl?"previous":"next"}}))},r.prototype.lazyLoad=function(){var e,t,n=this;function i(e){c("img[data-lazy]",e).each(function(){var e=c(this),t=c(this).attr("data-lazy"),i=document.createElement("img");i.onload=function(){e.animate({opacity:0},100,function(){e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy").removeClass("slick-loading")}),n.$slider.trigger("lazyLoaded",[n,e,t])})},i.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,e,t])},i.src=t})}!0===n.options.centerMode?t=!0===n.options.infinite?(e=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(e=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),n.options.slidesToShow/2+1+2+n.currentSlide):(e=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,t=Math.ceil(e+n.options.slidesToShow),!0===n.options.fade&&(0<e&&e--,t<=n.slideCount&&t++)),i(n.$slider.find(".slick-slide").slice(e,t)),n.slideCount<=n.options.slidesToShow?i(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?i(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&i(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},r.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad()},r.prototype.next=r.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},r.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},r.prototype.pause=r.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},r.prototype.play=r.prototype.slickPlay=function(){var e=this;e.autoPlay(),e.options.autoplay=!0,e.paused=!1,e.focussed=!1,e.interrupted=!1},r.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&t.initADA())},r.prototype.prev=r.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},r.prototype.preventDefault=function(e){e.preventDefault()},r.prototype.progressiveLazyLoad=function(e){e=e||1;var t,i,n=this,s=c("img[data-lazy]",n.$slider);s.length?(t=s.first(),i=t.attr("data-lazy"),(s=document.createElement("img")).onload=function(){t.attr("src",i).removeAttr("data-lazy").removeClass("slick-loading"),!0===n.options.adaptiveHeight&&n.setPosition(),n.$slider.trigger("lazyLoaded",[n,t,i]),n.progressiveLazyLoad()},s.onerror=function(){e<3?setTimeout(function(){n.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,t,i]),n.progressiveLazyLoad())},s.src=i):n.$slider.trigger("allImagesLoaded",[n])},r.prototype.refresh=function(e){var t=this,i=t.slideCount-t.options.slidesToShow;!t.options.infinite&&t.currentSlide>i&&(t.currentSlide=i),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),i=t.currentSlide,t.destroy(!0),c.extend(t,t.initials,{currentSlide:i}),t.init(),e||t.changeSlide({data:{message:"index",index:i}},!1)},r.prototype.registerBreakpoints=function(){var e,t,i,n=this,s=n.options.responsive||null;if("array"===c.type(s)&&s.length){for(e in n.respondTo=n.options.respondTo||"window",s)if(i=n.breakpoints.length-1,t=s[e].breakpoint,s.hasOwnProperty(e)){for(;0<=i;)n.breakpoints[i]&&n.breakpoints[i]===t&&n.breakpoints.splice(i,1),i--;n.breakpoints.push(t),n.breakpointSettings[t]=s[e].settings}n.breakpoints.sort(function(e,t){return n.options.mobileFirst?e-t:t-e})}},r.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&c(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},r.prototype.resize=function(){this.windowWidth=c(window).width(),this.checkResponsive(),this.unslicked||this.setPosition()},r.prototype.removeSlide=r.prototype.slickRemove=function(e,t,i){var n=this;if(e="boolean"==typeof e?!0===(t=e)?0:n.slideCount-1:!0===t?--e:e,n.slideCount<1||e<0||e>n.slideCount-1)return!1;n.unload(),(!0===i?n.$slideTrack.children():n.$slideTrack.children(this.options.slide).eq(e)).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,n.reinit()},r.prototype.setCSS=function(e){var t,i,n=this,s={};!0===n.options.rtl&&(e=-e),t="left"==n.positionProp?Math.ceil(e)+"px":"0px",i="top"==n.positionProp?Math.ceil(e)+"px":"0px",s[n.positionProp]=e,!1===n.transformsEnabled||(!(s={})===n.cssTransitions?s[n.animType]="translate("+t+", "+i+")":s[n.animType]="translate3d("+t+", "+i+", 0px)"),n.$slideTrack.css(s)},r.prototype.setDimensions=function(){var e=this;!1===e.options.vertical?!0===e.options.centerMode&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),!0===e.options.centerMode&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),!1===e.options.vertical&&!1===e.options.variableWidth?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):!0===e.options.variableWidth?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length)));var t=e.$slides.first().outerWidth(!0)-e.$slides.first().width();!1===e.options.variableWidth&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},r.prototype.setFade=function(){var i,n=this;n.$slides.each(function(e,t){i=n.slideWidth*e*-1,!0===n.options.rtl?c(t).css({position:"relative",right:i,top:0,zIndex:n.options.zIndex-2,opacity:0}):c(t).css({position:"relative",left:i,top:0,zIndex:n.options.zIndex-2,opacity:0})}),n.$slides.eq(n.currentSlide).css({zIndex:n.options.zIndex-1,opacity:1})},r.prototype.setHeight=function(){var e,t=this;1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical&&(e=t.$slides.eq(t.currentSlide).outerHeight(!0),t.$list.css("height",e))},r.prototype.setOption=r.prototype.slickSetOption=function(){var e,t,i,n,s,o=this,r=!1;if("object"===c.type(arguments[0])?(i=arguments[0],r=arguments[1],s="multiple"):"string"===c.type(arguments[0])&&(i=arguments[0],n=arguments[1],r=arguments[2],"responsive"===arguments[0]&&"array"===c.type(arguments[1])?s="responsive":void 0!==arguments[1]&&(s="single")),"single"===s)o.options[i]=n;else if("multiple"===s)c.each(i,function(e,t){o.options[e]=t});else if("responsive"===s)for(t in n)if("array"!==c.type(o.options.responsive))o.options.responsive=[n[t]];else{for(e=o.options.responsive.length-1;0<=e;)o.options.responsive[e].breakpoint===n[t].breakpoint&&o.options.responsive.splice(e,1),e--;o.options.responsive.push(n[t])}r&&(o.unload(),o.reinit())},r.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),!1===e.options.fade?e.setCSS(e.getLeft(e.currentSlide)):e.setFade(),e.$slider.trigger("setPosition",[e])},r.prototype.setProps=function(){var e=this,t=document.body.style;e.positionProp=!0===e.options.vertical?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),void 0===t.WebkitTransition&&void 0===t.MozTransition&&void 0===t.msTransition||!0===e.options.useCSS&&(e.cssTransitions=!0),e.options.fade&&("number"==typeof e.options.zIndex?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),void 0!==t.OTransform&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.MozTransform&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(e.animType=!1)),void 0!==t.webkitTransform&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.msTransform&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",void 0===t.msTransform&&(e.animType=!1)),void 0!==t.transform&&!1!==e.animType&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&!1!==e.animType},r.prototype.setSlideClasses=function(e){var t,i,n=this,s=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");n.$slides.eq(e).addClass("slick-current"),!0===n.options.centerMode?(i=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&(i<=e&&e<=n.slideCount-1-i?n.$slides.slice(e-i,e+i+1).addClass("slick-active").attr("aria-hidden","false"):(t=n.options.slidesToShow+e,s.slice(t-i+1,t+i+2).addClass("slick-active").attr("aria-hidden","false")),0===e?s.eq(s.length-1-n.options.slidesToShow).addClass("slick-center"):e===n.slideCount-1&&s.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(e).addClass("slick-center")):0<=e&&e<=n.slideCount-n.options.slidesToShow?n.$slides.slice(e,e+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):s.length<=n.options.slidesToShow?s.addClass("slick-active").attr("aria-hidden","false"):(i=n.slideCount%n.options.slidesToShow,t=!0===n.options.infinite?n.options.slidesToShow+e:e,(n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-e<n.options.slidesToShow?s.slice(t-(n.options.slidesToShow-i),t+i):s.slice(t,t+n.options.slidesToShow)).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===n.options.lazyLoad&&n.lazyLoad()},r.prototype.setupInfinite=function(){var e,t,i,n=this;if(!0===n.options.fade&&(n.options.centerMode=!1),!0===n.options.infinite&&!1===n.options.fade&&(t=null,n.slideCount>n.options.slidesToShow)){for(i=!0===n.options.centerMode?n.options.slidesToShow+1:n.options.slidesToShow,e=n.slideCount;e>n.slideCount-i;--e)c(n.$slides[t=e-1]).clone(!0).attr("id","").attr("data-slick-index",t-n.slideCount).prependTo(n.$slideTrack).addClass("slick-cloned");for(e=0;e<i;e+=1)c(n.$slides[t=e]).clone(!0).attr("id","").attr("data-slick-index",t+n.slideCount).appendTo(n.$slideTrack).addClass("slick-cloned");n.$slideTrack.find(".slick-cloned").find("[id]").each(function(){c(this).attr("id","")})}},r.prototype.interrupt=function(e){e||this.autoPlay(),this.interrupted=e},r.prototype.selectHandler=function(e){var t=this,e=c(e.target).is(".slick-slide")?c(e.target):c(e.target).parents(".slick-slide"),e=(e=parseInt(e.attr("data-slick-index")))||0;if(t.slideCount<=t.options.slidesToShow)return t.setSlideClasses(e),void t.asNavFor(e);t.slideHandler(e)},r.prototype.slideHandler=function(e,t,i){var n,s,o,r,a=this;if(t=t||!1,(!0!==a.animating||!0!==a.options.waitForAnimate)&&!(!0===a.options.fade&&a.currentSlide===e||a.slideCount<=a.options.slidesToShow))if(!1===t&&a.asNavFor(e),o=a.getLeft(n=e),t=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?t:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(e<0||e>a.getDotCount()*a.options.slidesToScroll))!1===a.options.fade&&(n=a.currentSlide,!0!==i?a.animateSlide(t,function(){a.postSlide(n)}):a.postSlide(n));else if(!1===a.options.infinite&&!0===a.options.centerMode&&(e<0||e>a.slideCount-a.options.slidesToScroll))!1===a.options.fade&&(n=a.currentSlide,!0!==i?a.animateSlide(t,function(){a.postSlide(n)}):a.postSlide(n));else{if(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=n<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+n:n>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:n-a.slideCount:n,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),t=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(r=(r=a.getNavTarget()).slick("getSlick")).slideCount<=r.options.slidesToShow&&r.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade)return!0!==i?(a.fadeSlideOut(t),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight();!0!==i?a.animateSlide(o,function(){a.postSlide(s)}):a.postSlide(s)}},r.prototype.startLoad=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},r.prototype.swipeDirection=function(){var e=this,t=e.touchObject.startX-e.touchObject.curX,i=e.touchObject.startY-e.touchObject.curY,t=Math.atan2(i,t),t=Math.round(180*t/Math.PI);return(t=t<0?360-Math.abs(t):t)<=45&&0<=t||t<=360&&315<=t?!1===e.options.rtl?"left":"right":135<=t&&t<=225?!1===e.options.rtl?"right":"left":!0===e.options.verticalSwiping?35<=t&&t<=135?"down":"up":"vertical"},r.prototype.swipeEnd=function(e){var t,i,n=this;if(n.dragging=!1,n.interrupted=!1,n.shouldClick=!(10<n.touchObject.swipeLength),void 0===n.touchObject.curX)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=i&&(n.slideHandler(t),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},r.prototype.swipeHandler=function(e){var t=this;if(!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-1!==e.type.indexOf("mouse")))switch(t.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,!0===t.options.verticalSwiping&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},r.prototype.swipeMove=function(e){var t,i,n=this,s=void 0!==e.originalEvent?e.originalEvent.touches:null;return!(!n.dragging||s&&1!==s.length)&&(t=n.getLeft(n.currentSlide),n.touchObject.curX=void 0!==s?s[0].pageX:e.clientX,n.touchObject.curY=void 0!==s?s[0].pageY:e.clientY,n.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(n.touchObject.curX-n.touchObject.startX,2))),!0===n.options.verticalSwiping&&(n.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(n.touchObject.curY-n.touchObject.startY,2)))),"vertical"!==(i=n.swipeDirection())?(void 0!==e.originalEvent&&4<n.touchObject.swipeLength&&e.preventDefault(),s=(!1===n.options.rtl?1:-1)*(n.touchObject.curX>n.touchObject.startX?1:-1),!0===n.options.verticalSwiping&&(s=n.touchObject.curY>n.touchObject.startY?1:-1),e=n.touchObject.swipeLength,(n.touchObject.edgeHit=!1)===n.options.infinite&&(0===n.currentSlide&&"right"===i||n.currentSlide>=n.getDotCount()&&"left"===i)&&(e=n.touchObject.swipeLength*n.options.edgeFriction,n.touchObject.edgeHit=!0),!1===n.options.vertical?n.swipeLeft=t+e*s:n.swipeLeft=t+e*(n.$list.height()/n.listWidth)*s,!0===n.options.verticalSwiping&&(n.swipeLeft=t+e*s),!0!==n.options.fade&&!1!==n.options.touchMove&&(!0===n.animating?(n.swipeLeft=null,!1):void n.setCSS(n.swipeLeft))):void 0)},r.prototype.swipeStart=function(e){var t,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return!(i.touchObject={});void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(t=e.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==t?t.pageX:e.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==t?t.pageY:e.clientY,i.dragging=!0},r.prototype.unfilterSlides=r.prototype.slickUnfilter=function(){var e=this;null!==e.$slidesCache&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},r.prototype.unload=function(){var e=this;c(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},r.prototype.unslick=function(e){this.$slider.trigger("unslick",[this,e]),this.destroy()},r.prototype.updateArrows=function(){var e=this;Math.floor(e.options.slidesToShow/2);!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(e.currentSlide>=e.slideCount-e.options.slidesToShow&&!1===e.options.centerMode||e.currentSlide>=e.slideCount-1&&!0===e.options.centerMode)&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},r.prototype.updateDots=function(){var e=this;null!==e.$dots&&(e.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},r.prototype.visibility=function(){this.options.autoplay&&(document[this.hidden]?this.interrupted=!0:this.interrupted=!1)},c.fn.slick=function(){for(var e,t=this,i=arguments[0],n=Array.prototype.slice.call(arguments,1),s=t.length,o=0;o<s;o++)if("object"==_typeof(i)||void 0===i?t[o].slick=new r(t[o],i):e=t[o].slick[i].apply(t[o].slick,n),void 0!==e)return e;return t}}),function(c){var n,s,i,o,r;function a(e,t){if(!(this instanceof a)){var i=new a(e,t);return i.open(),i}this.id=a.id++,this.setup(e,t),this.chainCallbacks(a._callbackChain)}void 0!==c?(n=[],o=function(e){c.each(a.opened().reverse(),function(){if(!e.isDefaultPrevented()&&!1===this[i[e.type]](e))return e.preventDefault(),e.stopPropagation(),!1})},r=function(e){var t;e!==a._globalHandlerInstalled&&(a._globalHandlerInstalled=e,t=c.map(i,function(e,t){return t+"."+a.prototype.namespace}).join(" "),c(window)[e?"on":"off"](t,o))},a.prototype={constructor:a,namespace:"featherlight",targetAttr:"data-featherlight",variant:null,resetCss:!(i={keyup:"onKeyUp",resize:"onResize"}),background:null,openTrigger:"click",closeTrigger:"click",filter:null,root:"body",openSpeed:250,closeSpeed:250,closeOnClick:"background",closeOnEsc:!0,closeIcon:"&#10005;",loading:"",persist:!(s=function(t){return n=c.grep(n,function(e){return e!==t&&0<e.$instance.closest("body").length})}),otherClose:null,beforeOpen:c.noop,beforeContent:c.noop,beforeClose:c.noop,afterOpen:c.noop,afterContent:c.noop,afterClose:c.noop,onKeyUp:c.noop,onResize:c.noop,type:null,contentFilters:["jquery","image","html","ajax","iframe","text"],setup:function(e,t){"object"!==_typeof(e)||e instanceof c!=!1||t||(t=e,e=void 0);var i=c.extend(this,t,{target:e}),e=i.resetCss?i.namespace+"-reset":i.namespace,e=c(i.background||['<div class="'+e+"-loading "+e+'">','<div class="'+e+'-content">','<span class="'+e+"-close-icon "+i.namespace+'-close">',i.closeIcon,"</span>",'<div class="'+i.namespace+'-inner">'+i.loading+"</div>","</div>","</div>"].join("")),n="."+i.namespace+"-close"+(i.otherClose?","+i.otherClose:"");return i.$instance=e.clone().addClass(i.variant),i.$instance.on(i.closeTrigger+"."+i.namespace,function(e){var t=c(e.target);("background"===i.closeOnClick&&t.is("."+i.namespace)||"anywhere"===i.closeOnClick||t.closest(n).length)&&(i.close(e),e.preventDefault())}),this},getContent:function(){if(!1!==this.persist&&this.$content)return this.$content;function e(e){return t.$currentTarget&&t.$currentTarget.attr(e)}var t=this,i=this.constructor.contentFilters,n=e(t.targetAttr),s=t.target||n||"",o=i[t.type];if(!o&&s in i&&(o=i[s],s=t.target&&n),s=s||e("href")||"",!o)for(var r in i)t[r]&&(o=i[r],s=t[r]);if(!o){var a=s,s=null;if(c.each(t.contentFilters,function(){return o=i[this],!(s=!(s=o.test?o.test(a):s)&&o.regex&&a.match&&a.match(o.regex)?a:s)}),!s)return"console"in window&&window.console.error("Featherlight: no content filter found "+(a?' for "'+a+'"':" (no target specified)")),!1}return o.process.call(t,s)},setContent:function(e){var t=this;return(e.is("iframe")||0<c("iframe",e).length)&&t.$instance.addClass(t.namespace+"-iframe"),t.$instance.removeClass(t.namespace+"-loading"),t.$instance.find("."+t.namespace+"-inner").not(e).slice(1).remove().end().replaceWith(c.contains(t.$instance[0],e[0])?"":e),t.$content=e.addClass(t.namespace+"-inner"),t},open:function(t){var i=this;if(i.$instance.hide().appendTo(i.root),!(t&&t.isDefaultPrevented()||!1===i.beforeOpen(t))){t&&t.preventDefault();var e=i.getContent();if(e)return n.push(i),r(!0),i.$instance.fadeIn(i.openSpeed),i.beforeContent(t),c.when(e).always(function(e){i.setContent(e),i.afterContent(t)}).then(i.$instance.promise()).done(function(){i.afterOpen(t)})}return i.$instance.detach(),c.Deferred().reject().promise()},close:function(e){var t=this,i=c.Deferred();return!1===t.beforeClose(e)?i.reject():(0===s(t).length&&r(!1),t.$instance.fadeOut(t.closeSpeed,function(){t.$instance.detach(),t.afterClose(e),i.resolve()})),i.promise()},resize:function(e,t){var i;e&&t&&(this.$content.css("width","").css("height",""),1<(i=Math.max(e/(parseInt(this.$content.parent().css("width"),10)-1),t/(parseInt(this.$content.parent().css("height"),10)-1)))&&(i=t/Math.floor(t/i),this.$content.css("width",e/i+"px").css("height",t/i+"px")))},chainCallbacks:function(e){for(var t in e)this[t]=c.proxy(e[t],this,c.proxy(this[t],this))}},c.extend(a,{id:0,autoBind:"[data-featherlight]",defaults:a.prototype,contentFilters:{jquery:{regex:/^[#.]\w/,test:function(e){return e instanceof c&&e},process:function(e){return!1!==this.persist?c(e):c(e).clone(!0)}},image:{regex:/\.(png|jpg|jpeg|gif|tiff|bmp|svg)(\?\S*)?$/i,process:function(e){var t=c.Deferred(),i=new Image,n=c('<img src="'+e+'" alt="" class="'+this.namespace+'-image" />');return i.onload=function(){n.naturalWidth=i.width,n.naturalHeight=i.height,t.resolve(n)},i.onerror=function(){t.reject(n)},i.src=e,t.promise()}},html:{regex:/^\s*<[\w!][^<]*>/,process:function(e){return c(e)}},ajax:{regex:/./,process:function(e){var i=c.Deferred(),n=c("<div></div>").load(e,function(e,t){"error"!==t&&i.resolve(n.contents()),i.fail()});return i.promise()}},iframe:{process:function(e){var t=new c.Deferred,i=c("<iframe/>").hide().attr("src",e).css(function(e,t){var i,n={},s=new RegExp("^"+t+"([A-Z])(.*)");for(i in e){var o=i.match(s);o&&(n[(o[1]+o[2].replace(/([A-Z])/g,"-$1")).toLowerCase()]=e[i])}return n}(this,"iframe")).on("load",function(){t.resolve(i.show())}).appendTo(this.$instance.find("."+this.namespace+"-content"));return t.promise()}},text:{process:function(e){return c("<div>",{text:e})}}},functionAttributes:["beforeOpen","afterOpen","beforeContent","afterContent","beforeClose","afterClose"],readElementConfig:function(e,t){var i=this,n=new RegExp("^data-"+t+"-(.*)"),s={};return e&&e.attributes&&c.each(e.attributes,function(){var e=this.name.match(n);if(e){var t=this.value,e=c.camelCase(e[1]);if(0<=c.inArray(e,i.functionAttributes))t=new Function(t);else try{t=c.parseJSON(t)}catch(e){}s[e]=t}}),s},extend:function(e,t){function i(){this.constructor=e}return i.prototype=this.prototype,e.prototype=new i,e.__super__=this.prototype,c.extend(e,this,t),e.defaults=e.prototype,e},attach:function(n,s,o){var r=this;"object"!==_typeof(s)||s instanceof c!=!1||o||(o=s,s=void 0);var a,e=(o=c.extend({},o)).namespace||r.defaults.namespace,l=c.extend({},r.defaults,r.readElementConfig(n[0],e),o);return n.on(l.openTrigger+"."+l.namespace,l.filter,function(e){var t=c.extend({$source:n,$currentTarget:c(this)},r.readElementConfig(n[0],l.namespace),r.readElementConfig(this,l.namespace),o),i=a||c(this).data("featherlight-persisted")||new r(s,t);"shared"===i.persist?a=i:!1!==i.persist&&c(this).data("featherlight-persisted",i),t.$currentTarget.blur(),i.open(e)}),n},current:function(){var e=this.opened();return e[e.length-1]||null},opened:function(){var t=this;return s(),c.grep(n,function(e){return e instanceof t})},close:function(e){var t=this.current();if(t)return t.close(e)},_onReady:function(){var t=this;t.autoBind&&(c(t.autoBind).each(function(){t.attach(c(this))}),c(document).on("click",t.autoBind,function(e){e.isDefaultPrevented()||"featherlight"===e.namespace||(e.preventDefault(),t.attach(c(e.currentTarget)),c(e.target).trigger("click.featherlight"))}))},_callbackChain:{onKeyUp:function(e,t){return 27===t.keyCode?(this.closeOnEsc&&c.featherlight.close(t),!1):e(t)},onResize:function(e,t){return this.resize(this.$content.naturalWidth,this.$content.naturalHeight),e(t)},afterContent:function(e,t){e=e(t);return this.onResize(t),e}}}),c.featherlight=a,c.fn.featherlight=function(e,t){return a.attach(this,e,t)},c(document).ready(function(){a._onReady()})):"console"in window&&window.console.info("Too much lightness, Featherlight needs jQuery.")}(jQuery),function(o){function e(e){window.console&&window.console.warn&&window.console.warn("FeatherlightGallery: "+e)}if(void 0===o)return e("Too much lightness, Featherlight needs jQuery.");if(!o.featherlight)return e("Load the featherlight plugin before the gallery plugin");var t="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,i=o.event&&o.event.special.swipeleft&&o,n=window.Hammer&&function(e){e=new window.Hammer.Manager(e[0]);return e.add(new window.Hammer.Swipe),e},s=t&&(i||n);t&&!s&&e("No compatible swipe library detected; one must be included before featherlightGallery for swipe motions to navigate the galleries.");var r={afterClose:function(e,t){var i=this;return i.$instance.off("next."+i.namespace+" previous."+i.namespace),i._swiper&&(i._swiper.off("swipeleft",i._swipeleft).off("swiperight",i._swiperight),i._swiper=null),e(t)},beforeOpen:function(e,t){var i=this;return i.$instance.on("next."+i.namespace+" previous."+i.namespace,function(e){e="next"===e.type?1:-1;i.navigateTo(i.currentNavigation()+e)}),s?i._swiper=s(i.$instance).on("swipeleft",i._swipeleft=function(){i.$instance.trigger("next")}).on("swiperight",i._swiperight=function(){i.$instance.trigger("previous")}):i.$instance.find("."+i.namespace+"-content").append(i.createNavigation("previous")).append(i.createNavigation("next")),e(t)},beforeContent:function(e,t){var i=this.currentNavigation(),n=this.slides().length;return this.$instance.toggleClass(this.namespace+"-first-slide",0===i).toggleClass(this.namespace+"-last-slide",i===n-1),e(t)},onKeyUp:function(e,t){var i={37:"previous",39:"next"}[t.keyCode];return i?(this.$instance.trigger(i),!1):e(t)}};function a(e,t){if(!(this instanceof a)){t=new a(o.extend({$source:e,$currentTarget:e.first()},t));return t.open(),t}o.featherlight.apply(this,arguments),this.chainCallbacks(r)}o.featherlight.extend(a,{autoBind:"[data-featherlight-gallery]"}),o.extend(a.prototype,{previousIcon:"",nextIcon:"",galleryFadeIn:100,galleryFadeOut:300,slides:function(){return this.filter?this.$source.find(this.filter):this.$source},images:function(){return e("images is deprecated, please use slides instead"),this.slides()},currentNavigation:function(){return this.slides().index(this.$currentTarget)},navigateTo:function(e){var t=this,i=t.slides(),n=i.length,s=t.$instance.find("."+t.namespace+"-inner");return t.$currentTarget=i.eq(e=(e%n+n)%n),t.beforeContent(),o.when(t.getContent(),s.fadeTo(t.galleryFadeOut,.2)).always(function(e){t.setContent(e),t.afterContent(),e.fadeTo(t.galleryFadeIn,1)})},createNavigation:function(e){var t=this;return o('<span title="'+e+'" class="'+this.namespace+"-"+e+'"><span>'+this[e+"Icon"]+"</span></span>").click(function(){o(this).trigger(e+"."+t.namespace)})}}),o.featherlightGallery=a,o.fn.featherlightGallery=function(e){return a.attach(this,e)},o(document).ready(function(){a._onReady()})}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"===("undefined"==typeof exports?"undefined":_typeof(exports))?e(require("jquery")):e(jQuery)}(function(d){var i=/\+/g;function h(e){return f.raw?e:encodeURIComponent(e)}function p(e,t){e=f.raw?e:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(i," ")),f.json?JSON.parse(e):e}catch(e){}}(e);return d.isFunction(t)?t(e):e}var f=d.cookie=function(e,t,i){var n,s;if(void 0!==t&&!d.isFunction(t))return"number"==typeof(i=d.extend({},f.defaults,i)).expires&&(s=i.expires,(n=i.expires=new Date).setTime(+n+864e5*s)),document.cookie=[h(e),"=",(s=t,h(f.json?JSON.stringify(s):String(s))),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("");for(var o=e?void 0:{},r=document.cookie?document.cookie.split("; "):[],a=0,l=r.length;a<l;a++){var c=r[a].split("="),u=(u=c.shift(),f.raw?u:decodeURIComponent(u)),c=c.join("=");if(e&&e===u){o=p(c,t);break}e||void 0===(c=p(c))||(o[u]=c)}return o};f.defaults={},d.removeCookie=function(e,t){return void 0!==d.cookie(e)&&(d.cookie(e,"",d.extend({},t,{expires:-1})),!d.cookie(e))}}),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,t,i,n,s){return jQuery.easing[jQuery.easing.def](e,t,i,n,s)},easeInQuad:function(e,t,i,n,s){return n*(t/=s)*t+i},easeOutQuad:function(e,t,i,n,s){return-n*(t/=s)*(t-2)+i},easeInOutQuad:function(e,t,i,n,s){return(t/=s/2)<1?n/2*t*t+i:-n/2*(--t*(t-2)-1)+i},easeInCubic:function(e,t,i,n,s){return n*(t/=s)*t*t+i},easeOutCubic:function(e,t,i,n,s){return n*((t=t/s-1)*t*t+1)+i},easeInOutCubic:function(e,t,i,n,s){return(t/=s/2)<1?n/2*t*t*t+i:n/2*((t-=2)*t*t+2)+i},easeInQuart:function(e,t,i,n,s){return n*(t/=s)*t*t*t+i},easeOutQuart:function(e,t,i,n,s){return-n*((t=t/s-1)*t*t*t-1)+i},easeInOutQuart:function(e,t,i,n,s){return(t/=s/2)<1?n/2*t*t*t*t+i:-n/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(e,t,i,n,s){return n*(t/=s)*t*t*t*t+i},easeOutQuint:function(e,t,i,n,s){return n*((t=t/s-1)*t*t*t*t+1)+i},easeInOutQuint:function(e,t,i,n,s){return(t/=s/2)<1?n/2*t*t*t*t*t+i:n/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(e,t,i,n,s){return-n*Math.cos(t/s*(Math.PI/2))+n+i},easeOutSine:function(e,t,i,n,s){return n*Math.sin(t/s*(Math.PI/2))+i},easeInOutSine:function(e,t,i,n,s){return-n/2*(Math.cos(Math.PI*t/s)-1)+i},easeInExpo:function(e,t,i,n,s){return 0==t?i:n*Math.pow(2,10*(t/s-1))+i},easeOutExpo:function(e,t,i,n,s){return t==s?i+n:n*(1-Math.pow(2,-10*t/s))+i},easeInOutExpo:function(e,t,i,n,s){return 0==t?i:t==s?i+n:(t/=s/2)<1?n/2*Math.pow(2,10*(t-1))+i:n/2*(2-Math.pow(2,-10*--t))+i},easeInCirc:function(e,t,i,n,s){return-n*(Math.sqrt(1-(t/=s)*t)-1)+i},easeOutCirc:function(e,t,i,n,s){return n*Math.sqrt(1-(t=t/s-1)*t)+i},easeInOutCirc:function(e,t,i,n,s){return(t/=s/2)<1?-n/2*(Math.sqrt(1-t*t)-1)+i:n/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(e,t,i,n,s){var o=1.70158,r=0,a=n;return 0==t?i:1==(t/=s)?i+n:(r=r||.3*s,o=a<Math.abs(n)?(a=n,r/4):r/(2*Math.PI)*Math.asin(n/a),-(a*Math.pow(2,10*--t)*Math.sin((t*s-o)*(2*Math.PI)/r))+i)},easeOutElastic:function(e,t,i,n,s){var o=1.70158,r=0,a=n;return 0==t?i:1==(t/=s)?i+n:(r=r||.3*s,o=a<Math.abs(n)?(a=n,r/4):r/(2*Math.PI)*Math.asin(n/a),a*Math.pow(2,-10*t)*Math.sin((t*s-o)*(2*Math.PI)/r)+n+i)},easeInOutElastic:function(e,t,i,n,s){var o=1.70158,r=0,a=n;return 0==t?i:2==(t/=s/2)?i+n:(r=r||s*(.3*1.5),o=a<Math.abs(n)?(a=n,r/4):r/(2*Math.PI)*Math.asin(n/a),t<1?a*Math.pow(2,10*--t)*Math.sin((t*s-o)*(2*Math.PI)/r)*-.5+i:a*Math.pow(2,-10*--t)*Math.sin((t*s-o)*(2*Math.PI)/r)*.5+n+i)},easeInBack:function(e,t,i,n,s,o){return n*(t/=s)*t*(((o=null==o?1.70158:o)+1)*t-o)+i},easeOutBack:function(e,t,i,n,s,o){return n*((t=t/s-1)*t*(((o=null==o?1.70158:o)+1)*t+o)+1)+i},easeInOutBack:function(e,t,i,n,s,o){return null==o&&(o=1.70158),(t/=s/2)<1?n/2*(t*t*((1+(o*=1.525))*t-o))+i:n/2*((t-=2)*t*((1+(o*=1.525))*t+o)+2)+i},easeInBounce:function(e,t,i,n,s){return n-jQuery.easing.easeOutBounce(e,s-t,0,n,s)+i},easeOutBounce:function(e,t,i,n,s){return(t/=s)<1/2.75?n*(7.5625*t*t)+i:t<2/2.75?n*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?n*(7.5625*(t-=2.25/2.75)*t+.9375)+i:n*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(e,t,i,n,s){return t<s/2?.5*jQuery.easing.easeInBounce(e,2*t,0,n,s)+i:.5*jQuery.easing.easeOutBounce(e,2*t-s,0,n,s)+.5*n+i}}),function(e,o,s){function i(e,t){this.el=e,this.$el=o(e),this.opts=o.extend(!0,{},l,t,this.$el.data()),n==s&&(n=o("body")),this.opts.startDate||(this.opts.startDate=new Date),"INPUT"==this.el.nodeName&&(this.elIsInput=!0),this.opts.altField&&(this.$altField="string"==typeof this.opts.altField?o(this.opts.altField):this.opts.altField),this.inited=!1,this.visible=!1,this.silent=!1,this.currentDate=this.opts.startDate,this.currentView=this.opts.view,this._createShortCuts(),this.selectedDates=[],this.views={},this.keys=[],this.minRange="",this.maxRange="",this._prevOnSelectValue="",this.init()}var n,t,r,a,l,c,h,u,p,d,f,m;l={classes:"",inline:a=!(r="datepicker"),language:"ru",startDate:new Date,firstDay:"",weekends:[6,0],dateFormat:"",altField:"",altFieldDateFormat:"@",toggleSelected:!0,keyboardNav:!0,position:"bottom left",offset:12,view:"days",minView:"days",showOtherMonths:!0,selectOtherMonths:!0,moveToOtherMonthsOnSelect:!0,showOtherYears:!0,selectOtherYears:!0,moveToOtherYearsOnSelect:!0,minDate:"",maxDate:"",disableNavWhenOutOfRange:!0,multipleDates:!1,multipleDatesSeparator:",",range:!1,todayButton:!1,clearButton:!1,showEvent:"focus",autoClose:!1,monthsField:"monthsShort",prevHtml:'<svg><path d="M 17,12 l -5,5 l 5,5"></path></svg>',nextHtml:'<svg><path d="M 14,12 l 5,5 l -5,5"></path></svg>',navTitles:{days:"MM <i>yyyy</i>",months:"yyyy",years:"yyyy1 - yyyy2"},timepicker:!1,onlyTimepicker:!1,dateTimeSeparator:" ",timeFormat:"",minHours:0,maxHours:24,minMinutes:0,maxMinutes:59,hoursStep:1,minutesStep:1,onSelect:"",onShow:"",onHide:"",onChangeMonth:"",onChangeYear:"",onChangeDecade:"",onChangeView:"",onRenderCell:""},c={ctrlRight:[17,39],ctrlUp:[17,38],ctrlLeft:[17,37],ctrlDown:[17,40],shiftRight:[16,39],shiftUp:[16,38],shiftLeft:[16,37],shiftDown:[16,40],altUp:[18,38],altRight:[18,39],altLeft:[18,37],altDown:[18,40],ctrlShiftUp:[16,17,38]},(h=i).prototype={VERSION:"2.2.3",viewIndexes:["days","months","years"],init:function(){a||this.opts.inline||!this.elIsInput||this._buildDatepickersContainer(),this._buildBaseHtml(),this._defineLocale(this.opts.language),this._syncWithMinMaxDates(),this.elIsInput&&(this.opts.inline||(this._setPositionClasses(this.opts.position),this._bindEvents()),this.opts.keyboardNav&&!this.opts.onlyTimepicker&&this._bindKeyboardEvents(),this.$datepicker.on("mousedown",this._onMouseDownDatepicker.bind(this)),this.$datepicker.on("mouseup",this._onMouseUpDatepicker.bind(this))),this.opts.classes&&this.$datepicker.addClass(this.opts.classes),this.opts.timepicker&&(this.timepicker=new o.fn.datepicker.Timepicker(this,this.opts),this._bindTimepickerEvents()),this.opts.onlyTimepicker&&this.$datepicker.addClass("-only-timepicker-"),this.views[this.currentView]=new o.fn.datepicker.Body(this,this.currentView,this.opts),this.views[this.currentView].show(),this.nav=new o.fn.datepicker.Navigation(this,this.opts),this.view=this.currentView,this.$el.on("clickCell.adp",this._onClickCell.bind(this)),this.$datepicker.on("mouseenter",".datepicker--cell",this._onMouseEnterCell.bind(this)),this.$datepicker.on("mouseleave",".datepicker--cell",this._onMouseLeaveCell.bind(this)),this.inited=!0},_createShortCuts:function(){this.minDate=this.opts.minDate||new Date(-86399999136e5),this.maxDate=this.opts.maxDate||new Date(86399999136e5)},_bindEvents:function(){this.$el.on(this.opts.showEvent+".adp",this._onShowEvent.bind(this)),this.$el.on("mouseup.adp",this._onMouseUpEl.bind(this)),this.$el.on("blur.adp",this._onBlur.bind(this)),this.$el.on("keyup.adp",this._onKeyUpGeneral.bind(this)),o(e).on("resize.adp",this._onResize.bind(this)),o("body").on("mouseup.adp",this._onMouseUpBody.bind(this))},_bindKeyboardEvents:function(){this.$el.on("keydown.adp",this._onKeyDown.bind(this)),this.$el.on("keyup.adp",this._onKeyUp.bind(this)),this.$el.on("hotKey.adp",this._onHotKey.bind(this))},_bindTimepickerEvents:function(){this.$el.on("timeChange.adp",this._onTimeChange.bind(this))},isWeekend:function(e){return-1!==this.opts.weekends.indexOf(e)},_defineLocale:function(e){"string"==typeof e?(this.loc=o.fn.datepicker.language[e],this.loc||(console.warn("Can't find language \""+e+'" in Datepicker.language, will use "ru" instead'),this.loc=o.extend(!0,{},o.fn.datepicker.language.ru)),this.loc=o.extend(!0,{},o.fn.datepicker.language.ru,o.fn.datepicker.language[e])):this.loc=o.extend(!0,{},o.fn.datepicker.language.ru,e),this.opts.dateFormat&&(this.loc.dateFormat=this.opts.dateFormat),this.opts.timeFormat&&(this.loc.timeFormat=this.opts.timeFormat),""!==this.opts.firstDay&&(this.loc.firstDay=this.opts.firstDay),this.opts.timepicker&&(this.loc.dateFormat=[this.loc.dateFormat,this.loc.timeFormat].join(this.opts.dateTimeSeparator)),this.opts.onlyTimepicker&&(this.loc.dateFormat=this.loc.timeFormat);e=this._getWordBoundaryRegExp;(this.loc.timeFormat.match(e("aa"))||this.loc.timeFormat.match(e("AA")))&&(this.ampm=!0)},_buildDatepickersContainer:function(){a=!0,n.append('<div class="datepickers-container" id="datepickers-container"></div>'),t=o("#datepickers-container")},_buildBaseHtml:function(){var e=o('<div class="datepicker-inline">'),e="INPUT"==this.el.nodeName?this.opts.inline?e.insertAfter(this.$el):t:e.appendTo(this.$el);this.$datepicker=o('<div class="datepicker"><i class="datepicker--pointer"></i><nav class="datepicker--nav"></nav><div class="datepicker--content"></div></div>').appendTo(e),this.$content=o(".datepicker--content",this.$datepicker),this.$nav=o(".datepicker--nav",this.$datepicker)},_triggerOnChange:function(){if(!this.selectedDates.length)return""===this._prevOnSelectValue?void 0:(this._prevOnSelectValue="",this.opts.onSelect("","",this));var e=this.selectedDates,t=h.getParsedDate(e[0]),i=this,n=new Date(t.year,t.month,t.date,t.hours,t.minutes),t=e.map(function(e){return i.formatDate(i.loc.dateFormat,e)}).join(this.opts.multipleDatesSeparator);(this.opts.multipleDates||this.opts.range)&&(n=e.map(function(e){e=h.getParsedDate(e);return new Date(e.year,e.month,e.date,e.hours,e.minutes)})),this._prevOnSelectValue=t,this.opts.onSelect(t,n,this)},next:function(){var e=this.parsedDate,t=this.opts;switch(this.view){case"days":this.date=new Date(e.year,e.month+1,1),t.onChangeMonth&&t.onChangeMonth(this.parsedDate.month,this.parsedDate.year);break;case"months":this.date=new Date(e.year+1,e.month,1),t.onChangeYear&&t.onChangeYear(this.parsedDate.year);break;case"years":this.date=new Date(e.year+10,0,1),t.onChangeDecade&&t.onChangeDecade(this.curDecade)}},prev:function(){var e=this.parsedDate,t=this.opts;switch(this.view){case"days":this.date=new Date(e.year,e.month-1,1),t.onChangeMonth&&t.onChangeMonth(this.parsedDate.month,this.parsedDate.year);break;case"months":this.date=new Date(e.year-1,e.month,1),t.onChangeYear&&t.onChangeYear(this.parsedDate.year);break;case"years":this.date=new Date(e.year-10,0,1),t.onChangeDecade&&t.onChangeDecade(this.curDecade)}},formatDate:function(e,t){t=t||this.date;var i=e,n=this._getWordBoundaryRegExp,s=this.loc,o=h.getLeadingZeroNum,r=h.getDecade(t),a=h.getParsedDate(t),l=a.fullHours,c=a.hours,e=e.match(n("aa"))||e.match(n("AA")),u="am",d=this._replacer;switch(this.opts.timepicker&&this.timepicker&&e&&(l=o((e=this.timepicker._getValidHoursFromDate(t,e)).hours),c=e.hours,u=e.dayPeriod),!0){case/@/.test(i):i=i.replace(/@/,t.getTime());case/aa/.test(i):i=d(i,n("aa"),u);case/AA/.test(i):i=d(i,n("AA"),u.toUpperCase());case/dd/.test(i):i=d(i,n("dd"),a.fullDate);case/d/.test(i):i=d(i,n("d"),a.date);case/DD/.test(i):i=d(i,n("DD"),s.days[a.day]);case/D/.test(i):i=d(i,n("D"),s.daysShort[a.day]);case/mm/.test(i):i=d(i,n("mm"),a.fullMonth);case/m/.test(i):i=d(i,n("m"),a.month+1);case/MM/.test(i):i=d(i,n("MM"),this.loc.months[a.month]);case/M/.test(i):i=d(i,n("M"),s.monthsShort[a.month]);case/ii/.test(i):i=d(i,n("ii"),a.fullMinutes);case/i/.test(i):i=d(i,n("i"),a.minutes);case/hh/.test(i):i=d(i,n("hh"),l);case/h/.test(i):i=d(i,n("h"),c);case/yyyy/.test(i):i=d(i,n("yyyy"),a.year);case/yyyy1/.test(i):i=d(i,n("yyyy1"),r[0]);case/yyyy2/.test(i):i=d(i,n("yyyy2"),r[1]);case/yy/.test(i):i=d(i,n("yy"),a.year.toString().slice(-2))}return i},_replacer:function(e,t,s){return e.replace(t,function(e,t,i,n){return t+s+n})},_getWordBoundaryRegExp:function(e){var t="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+t+")("+e+")($|<|"+t+")","g")},selectDate:function(e){var t=this,i=t.opts,n=t.parsedDate,s=t.selectedDates.length,o="";if(Array.isArray(e))e.forEach(function(e){t.selectDate(e)});else if(e instanceof Date){if(this.lastSelectedDate=e,this.timepicker&&this.timepicker._setTime(e),t._trigger("selectDate",e),this.timepicker&&(e.setHours(this.timepicker.hours),e.setMinutes(this.timepicker.minutes)),"days"==t.view&&e.getMonth()!=n.month&&i.moveToOtherMonthsOnSelect&&(o=new Date(e.getFullYear(),e.getMonth(),1)),(o="years"==t.view&&e.getFullYear()!=n.year&&i.moveToOtherYearsOnSelect?new Date(e.getFullYear(),0,1):o)&&(t.silent=!0,t.date=o,t.silent=!1,t.nav._render()),i.multipleDates&&!i.range){if(s===i.multipleDates)return;t._isSelected(e)||t.selectedDates.push(e)}else i.range?2==s?(t.selectedDates=[e],t.minRange=e,t.maxRange=""):1==s?(t.selectedDates.push(e),t.maxRange?t.minRange=e:t.maxRange=e,h.bigger(t.maxRange,t.minRange)&&(t.maxRange=t.minRange,t.minRange=e),t.selectedDates=[t.minRange,t.maxRange]):(t.selectedDates=[e],t.minRange=e):t.selectedDates=[e];t._setInputValue(),i.onSelect&&t._triggerOnChange(),i.autoClose&&!this.timepickerIsActive&&(!i.multipleDates&&!i.range||i.range&&2==t.selectedDates.length)&&t.hide(),t.views[this.currentView]._render()}},removeDate:function(i){var n=this.selectedDates,s=this;if(i instanceof Date)return n.some(function(e,t){if(h.isSame(e,i))return n.splice(t,1),s.selectedDates.length?s.lastSelectedDate=s.selectedDates[s.selectedDates.length-1]:(s.minRange="",s.maxRange="",s.lastSelectedDate=""),s.views[s.currentView]._render(),s._setInputValue(),s.opts.onSelect&&s._triggerOnChange(),!0})},today:function(){this.silent=!0,this.view=this.opts.minView,this.silent=!1,this.date=new Date,this.opts.todayButton instanceof Date&&this.selectDate(this.opts.todayButton)},clear:function(){this.selectedDates=[],this.minRange="",this.maxRange="",this.views[this.currentView]._render(),this._setInputValue(),this.opts.onSelect&&this._triggerOnChange()},update:function(e,t){var i=arguments.length,n=this.lastSelectedDate;return 2==i?this.opts[e]=t:1==i&&"object"==_typeof(e)&&(this.opts=o.extend(!0,this.opts,e)),this._createShortCuts(),this._syncWithMinMaxDates(),this._defineLocale(this.opts.language),this.nav._addButtonsIfNeed(),this.opts.onlyTimepicker||this.nav._render(),this.views[this.currentView]._render(),this.elIsInput&&!this.opts.inline&&(this._setPositionClasses(this.opts.position),this.visible&&this.setPosition(this.opts.position)),this.opts.classes&&this.$datepicker.addClass(this.opts.classes),this.opts.onlyTimepicker&&this.$datepicker.addClass("-only-timepicker-"),this.opts.timepicker&&(n&&this.timepicker._handleDate(n),this.timepicker._updateRanges(),this.timepicker._updateCurrentTime(),n&&(n.setHours(this.timepicker.hours),n.setMinutes(this.timepicker.minutes))),this._setInputValue(),this},_syncWithMinMaxDates:function(){var e=this.date.getTime();this.silent=!0,this.minTime>e&&(this.date=this.minDate),this.maxTime<e&&(this.date=this.maxDate),this.silent=!1},_isSelected:function(t,i){var n=!1;return this.selectedDates.some(function(e){if(h.isSame(e,t,i))return n=e,!0}),n},_setInputValue:function(){var t=this,e=t.opts,i=t.loc.dateFormat,n=e.altFieldDateFormat,s=t.selectedDates.map(function(e){return t.formatDate(i,e)});e.altField&&t.$altField.length&&(e=(e=this.selectedDates.map(function(e){return t.formatDate(n,e)})).join(this.opts.multipleDatesSeparator),this.$altField.val(e)),s=s.join(this.opts.multipleDatesSeparator),this.$el.val(s)},_isInRange:function(e,t){var i=e.getTime(),n=h.getParsedDate(e),s=h.getParsedDate(this.minDate),o=h.getParsedDate(this.maxDate),r=new Date(n.year,n.month,s.date).getTime(),e=new Date(n.year,n.month,o.date).getTime(),o={day:i>=this.minTime&&i<=this.maxTime,month:r>=this.minTime&&e<=this.maxTime,year:n.year>=s.year&&n.year<=o.year};return t?o[t]:o.day},_getDimensions:function(e){var t=e.offset();return{width:e.outerWidth(),height:e.outerHeight(),left:t.left,top:t.top}},_getDateFromCell:function(e){var t=this.parsedDate,i=e.data("year")||t.year,t=e.data("month")==s?t.month:e.data("month"),e=e.data("date")||1;return new Date(i,t,e)},_setPositionClasses:function(e){var t=(e=e.split(" "))[0],t="datepicker -"+t+"-"+e[1]+"- -from-"+t+"-";this.visible&&(t+=" active"),this.$datepicker.removeAttr("class").addClass(t)},setPosition:function(e){e=e||this.opts.position;var t,i,n=this._getDimensions(this.$el),s=this._getDimensions(this.$datepicker),e=e.split(" "),o=this.opts.offset,r=e[0],e=e[1];switch(r){case"top":t=n.top-s.height-o;break;case"right":i=n.left+n.width+o;break;case"bottom":t=n.top+n.height+o;break;case"left":i=n.left-s.width-o}switch(e){case"top":t=n.top;break;case"right":i=n.left+n.width-s.width;break;case"bottom":t=n.top+n.height-s.height;break;case"left":i=n.left;break;case"center":/left|right/.test(r)?t=n.top+n.height/2-s.height/2:i=n.left+n.width/2-s.width/2}this.$datepicker.css({left:i,top:t})},show:function(){var e=this.opts.onShow;this.setPosition(this.opts.position),this.$datepicker.addClass("active"),this.visible=!0,e&&this._bindVisionEvents(e)},hide:function(){var e=this.opts.onHide;this.$datepicker.removeClass("active").css({left:"-100000px"}),this.focused="",this.keys=[],this.inFocus=!1,this.visible=!1,this.$el.blur(),e&&this._bindVisionEvents(e)},down:function(e){this._changeView(e,"down")},up:function(e){this._changeView(e,"up")},_bindVisionEvents:function(e){this.$datepicker.off("transitionend.dp"),e(this,!1),this.$datepicker.one("transitionend.dp",e.bind(this,this,!0))},_changeView:function(e,t){e=e||this.focused||this.date;t="up"==t?this.viewIndex+1:this.viewIndex-1;(t=2<t?2:t)<0&&(t=0),this.silent=!0,this.date=new Date(e.getFullYear(),e.getMonth(),1),this.silent=!1,this.view=this.viewIndexes[t]},_handleHotKey:function(e){var t=h.getParsedDate(this._getFocusedDate()),i=this.opts,n=!1,s=!1,o=!1,r=t.year,a=t.month,l=t.date;switch(e){case"ctrlRight":case"ctrlUp":a+=1,n=!0;break;case"ctrlLeft":case"ctrlDown":--a,n=!0;break;case"shiftRight":case"shiftUp":s=!0,r+=1;break;case"shiftLeft":case"shiftDown":s=!0,--r;break;case"altRight":case"altUp":o=!0,r+=10;break;case"altLeft":case"altDown":o=!0,r-=10;break;case"ctrlShiftUp":this.up()}t=h.getDaysCount(new Date(r,a)),e=new Date(r,a,l),e.getTime()<this.minTime?e=this.minDate:e.getTime()>this.maxTime&&(e=this.maxDate),this.focused=e,e=h.getParsedDate(e),n&&i.onChangeMonth&&i.onChangeMonth(e.month,e.year),s&&i.onChangeYear&&i.onChangeYear(e.year),o&&i.onChangeDecade&&i.onChangeDecade(this.curDecade)},_registerKey:function(t){this.keys.some(function(e){return e==t})||this.keys.push(t)},_unRegisterKey:function(e){e=this.keys.indexOf(e);this.keys.splice(e,1)},_isHotKeyPressed:function(){var e,t,i=!1,n=this.keys.sort();for(t in c)n.length==(e=c[t]).length&&e.every(function(e,t){return e==n[t]})&&(this._trigger("hotKey",t),i=!0);return i},_trigger:function(e,t){this.$el.trigger(e,t)},_focusNextCell:function(e,t){t=t||this.cellType;var i=h.getParsedDate(this._getFocusedDate()),n=i.year,s=i.month,o=i.date;if(!this._isHotKeyPressed()){switch(e){case 37:"day"==t&&--o,"month"==t&&--s,"year"==t&&--n;break;case 38:"day"==t&&(o-=7),"month"==t&&(s-=3),"year"==t&&(n-=4);break;case 39:"day"==t&&(o+=1),"month"==t&&(s+=1),"year"==t&&(n+=1);break;case 40:"day"==t&&(o+=7),"month"==t&&(s+=3),"year"==t&&(n+=4)}e=new Date(n,s,o);e.getTime()<this.minTime?e=this.minDate:e.getTime()>this.maxTime&&(e=this.maxDate),this.focused=e}},_getFocusedDate:function(){var e=this.focused||this.selectedDates[this.selectedDates.length-1],t=this.parsedDate;if(!e)switch(this.view){case"days":e=new Date(t.year,t.month,(new Date).getDate());break;case"months":e=new Date(t.year,t.month,1);break;case"years":e=new Date(t.year,0,1)}return e},_getCell:function(e,t){t=t||this.cellType;var i=h.getParsedDate(e),n='.datepicker--cell[data-year="'+i.year+'"]';switch(t){case"month":n='[data-month="'+i.month+'"]';break;case"day":n+='[data-month="'+i.month+'"][data-date="'+i.date+'"]'}return(t=this.views[this.currentView].$el.find(n)).length?t:o("")},destroy:function(){var e=this;e.$el.off(".adp").data("datepicker",""),e.selectedDates=[],e.focused="",e.views={},e.keys=[],e.minRange="",e.maxRange="",(e.opts.inline||!e.elIsInput?e.$datepicker.closest(".datepicker-inline"):e.$datepicker).remove()},_handleAlreadySelectedDates:function(e,t){this.opts.range?this.opts.toggleSelected?this.removeDate(t):2!=this.selectedDates.length&&this._trigger("clickCell",t):this.opts.toggleSelected&&this.removeDate(t),this.opts.toggleSelected||(this.lastSelectedDate=e,this.opts.timepicker&&(this.timepicker._setTime(e),this.timepicker.update()))},_onShowEvent:function(e){this.visible||this.show()},_onBlur:function(){!this.inFocus&&this.visible&&this.hide()},_onMouseDownDatepicker:function(e){this.inFocus=!0},_onMouseUpDatepicker:function(e){this.inFocus=!1,e.originalEvent.inFocus=!0,e.originalEvent.timepickerFocus||this.$el.focus()},_onKeyUpGeneral:function(e){this.$el.val()||this.clear()},_onResize:function(){this.visible&&this.setPosition()},_onMouseUpBody:function(e){e.originalEvent.inFocus||this.visible&&!this.inFocus&&this.hide()},_onMouseUpEl:function(e){e.originalEvent.inFocus=!0,setTimeout(this._onKeyUpGeneral.bind(this),4)},_onKeyDown:function(e){var t=e.which;if(this._registerKey(t),37<=t&&t<=40&&(e.preventDefault(),this._focusNextCell(t)),13==t&&this.focused){if(this._getCell(this.focused).hasClass("-disabled-"))return;if(this.view!=this.opts.minView)this.down();else{e=this._isSelected(this.focused,this.cellType);if(!e)return this.timepicker&&(this.focused.setHours(this.timepicker.hours),this.focused.setMinutes(this.timepicker.minutes)),void this.selectDate(this.focused);this._handleAlreadySelectedDates(e,this.focused)}}27==t&&this.hide()},_onKeyUp:function(e){e=e.which;this._unRegisterKey(e)},_onHotKey:function(e,t){this._handleHotKey(t)},_onMouseEnterCell:function(e){var t=o(e.target).closest(".datepicker--cell"),e=this._getDateFromCell(t);this.silent=!0,this.focused&&(this.focused=""),t.addClass("-focus-"),this.focused=e,this.silent=!1,this.opts.range&&1==this.selectedDates.length&&(this.minRange=this.selectedDates[0],this.maxRange="",h.less(this.minRange,this.focused)&&(this.maxRange=this.minRange,this.minRange=""),this.views[this.currentView]._update())},_onMouseLeaveCell:function(e){o(e.target).closest(".datepicker--cell").removeClass("-focus-"),this.silent=!0,this.focused="",this.silent=!1},_onTimeChange:function(e,t,i){var n=new Date,s=!1;this.selectedDates.length&&(s=!0,n=this.lastSelectedDate),n.setHours(t),n.setMinutes(i),s||this._getCell(n).hasClass("-disabled-")?(this._setInputValue(),this.opts.onSelect&&this._triggerOnChange()):this.selectDate(n)},_onClickCell:function(e,t){this.timepicker&&(t.setHours(this.timepicker.hours),t.setMinutes(this.timepicker.minutes)),this.selectDate(t)},set focused(e){var t;e||!this.focused||(t=this._getCell(this.focused)).length&&t.removeClass("-focus-"),this._focused=e,this.opts.range&&1==this.selectedDates.length&&(this.minRange=this.selectedDates[0],this.maxRange="",h.less(this.minRange,this._focused)&&(this.maxRange=this.minRange,this.minRange="")),this.silent||(this.date=e)},get focused(){return this._focused},get parsedDate(){return h.getParsedDate(this.date)},set date(e){if(e instanceof Date)return this.currentDate=e,this.inited&&!this.silent&&(this.views[this.view]._render(),this.nav._render(),this.visible&&this.elIsInput&&this.setPosition()),e},get date(){return this.currentDate},set view(e){if(this.viewIndex=this.viewIndexes.indexOf(e),!(this.viewIndex<0))return this.prevView=this.currentView,this.currentView=e,this.inited&&(this.views[e]?this.views[e]._render():this.views[e]=new o.fn.datepicker.Body(this,e,this.opts),this.views[this.prevView].hide(),this.views[e].show(),this.nav._render(),this.opts.onChangeView&&this.opts.onChangeView(e),this.elIsInput&&this.visible&&this.setPosition()),e},get view(){return this.currentView},get cellType(){return this.view.substring(0,this.view.length-1)},get minTime(){var e=h.getParsedDate(this.minDate);return new Date(e.year,e.month,e.date).getTime()},get maxTime(){var e=h.getParsedDate(this.maxDate);return new Date(e.year,e.month,e.date).getTime()},get curDecade(){return h.getDecade(this.date)}},h.getDaysCount=function(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()},h.getParsedDate=function(e){return{year:e.getFullYear(),month:e.getMonth(),fullMonth:e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,date:e.getDate(),fullDate:e.getDate()<10?"0"+e.getDate():e.getDate(),day:e.getDay(),hours:e.getHours(),fullHours:e.getHours()<10?"0"+e.getHours():e.getHours(),minutes:e.getMinutes(),fullMinutes:e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes()}},h.getDecade=function(e){e=10*Math.floor(e.getFullYear()/10);return[e,9+e]},h.template=function(e,i){return e.replace(/#\{([\w]+)\}/g,function(e,t){if(i[t]||0===i[t])return i[t]})},h.isSame=function(e,t,i){if(!e||!t)return!1;e=h.getParsedDate(e),t=h.getParsedDate(t);return{day:e.date==t.date&&e.month==t.month&&e.year==t.year,month:e.month==t.month&&e.year==t.year,year:e.year==t.year}[i||"day"]},h.less=function(e,t,i){return!(!e||!t)&&t.getTime()<e.getTime()},h.bigger=function(e,t,i){return!(!e||!t)&&t.getTime()>e.getTime()},h.getLeadingZeroNum=function(e){return parseInt(e)<10?"0"+e:e},h.resetTime=function(e){if("object"==_typeof(e))return e=h.getParsedDate(e),new Date(e.year,e.month,e.date)},o.fn.datepicker=function(t){return this.each(function(){var e;o.data(this,r)?((e=o.data(this,r)).opts=o.extend(!0,e.opts,t),e.update()):o.data(this,r,new i(this,t))})},o.fn.datepicker.Constructor=i,o.fn.datepicker.language={de:{days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],daysShort:["Son","Mon","Die","Mit","Don","Fre","Sam"],daysMin:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthsShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],today:"Heute",clear:"Aufräumen",dateFormat:"dd.mm.yyyy",timeFormat:"hh:ii",firstDay:1}},o(function(){o(".datepicker-here").datepicker()}),u={days:'<div class="datepicker--days datepicker--body"><div class="datepicker--days-names"></div><div class="datepicker--cells datepicker--cells-days"></div></div>',months:'<div class="datepicker--months datepicker--body"><div class="datepicker--cells datepicker--cells-months"></div></div>',years:'<div class="datepicker--years datepicker--body"><div class="datepicker--cells datepicker--cells-years"></div></div>'},f=o.fn.datepicker,p=f.Constructor,f.Body=function(e,t,i){this.d=e,this.type=t,this.opts=i,this.$el=o(""),this.opts.onlyTimepicker||this.init()},f.Body.prototype={init:function(){this._buildBaseHtml(),this._render(),this._bindEvents()},_bindEvents:function(){this.$el.on("click",".datepicker--cell",o.proxy(this._onClickCell,this))},_buildBaseHtml:function(){this.$el=o(u[this.type]).appendTo(this.d.$content),this.$names=o(".datepicker--days-names",this.$el),this.$cells=o(".datepicker--cells",this.$el)},_getDayNamesHtml:function(e,t,i,n){return i=i||"",7<(n=n!=s?n:0)?i:7==(t=t!=s?t:e)?this._getDayNamesHtml(e,0,i,++n):(i+='<div class="datepicker--day-name'+(this.d.isWeekend(t)?" -weekend-":"")+'">'+this.d.loc.daysMin[t]+"</div>",this._getDayNamesHtml(e,++t,i,++n))},_getCellContents:function(e,t){var i="datepicker--cell datepicker--cell-"+t,n=new Date,s=this.d,o=p.resetTime(s.minRange),r=p.resetTime(s.maxRange),a=s.opts,l=p.getParsedDate(e),c={},u=l.date;switch(t){case"day":s.isWeekend(l.day)&&(i+=" -weekend-"),l.month!=this.d.parsedDate.month&&(i+=" -other-month-",a.selectOtherMonths||(i+=" -disabled-"),a.showOtherMonths||(u=""));break;case"month":u=s.loc[s.opts.monthsField][l.month];break;case"year":var d=s.curDecade,u=l.year;(l.year<d[0]||l.year>d[1])&&(i+=" -other-decade-",a.selectOtherYears||(i+=" -disabled-"),a.showOtherYears||(u=""))}return a.onRenderCell&&(u=(c=a.onRenderCell(e,t)||{}).html||u,i+=c.classes?" "+c.classes:""),a.range&&(p.isSame(o,e,t)&&(i+=" -range-from-"),p.isSame(r,e,t)&&(i+=" -range-to-"),1==s.selectedDates.length&&s.focused?((p.bigger(o,e)&&p.less(s.focused,e)||p.less(r,e)&&p.bigger(s.focused,e))&&(i+=" -in-range-"),p.less(r,e)&&p.isSame(s.focused,e)&&(i+=" -range-from-"),p.bigger(o,e)&&p.isSame(s.focused,e)&&(i+=" -range-to-")):2==s.selectedDates.length&&p.bigger(o,e)&&p.less(r,e)&&(i+=" -in-range-")),p.isSame(n,e,t)&&(i+=" -current-"),s.focused&&p.isSame(e,s.focused,t)&&(i+=" -focus-"),s._isSelected(e,t)&&(i+=" -selected-"),s._isInRange(e,t)&&!c.disabled||(i+=" -disabled-"),{html:u,classes:i}},_getDaysHtml:function(e){for(var t,i,n=p.getDaysCount(e),s=new Date(e.getFullYear(),e.getMonth(),1).getDay(),o=new Date(e.getFullYear(),e.getMonth(),n).getDay(),s=s-this.d.loc.firstDay,o=6-o+this.d.loc.firstDay,r="",a=1-(s=s<0?s+7:s),l=n+(o=6<o?o-7:o);a<=l;a++)i=e.getFullYear(),t=e.getMonth(),r+=this._getDayHtml(new Date(i,t,a));return r},_getDayHtml:function(e){var t=this._getCellContents(e,"day");return'<div class="'+t.classes+'" data-date="'+e.getDate()+'" data-month="'+e.getMonth()+'" data-year="'+e.getFullYear()+'">'+t.html+"</div>"},_getMonthsHtml:function(e){for(var t="",i=p.getParsedDate(e),n=0;n<12;)t+=this._getMonthHtml(new Date(i.year,n)),n++;return t},_getMonthHtml:function(e){var t=this._getCellContents(e,"month");return'<div class="'+t.classes+'" data-month="'+e.getMonth()+'">'+t.html+"</div>"},_getYearsHtml:function(e){p.getParsedDate(e);for(var t=p.getDecade(e),i="",n=t[0]-1;n<=t[1]+1;n++)i+=this._getYearHtml(new Date(n,0));return i},_getYearHtml:function(e){var t=this._getCellContents(e,"year");return'<div class="'+t.classes+'" data-year="'+e.getFullYear()+'">'+t.html+"</div>"},_renderTypes:{days:function(){var e=this._getDayNamesHtml(this.d.loc.firstDay),t=this._getDaysHtml(this.d.currentDate);this.$cells.html(t),this.$names.html(e)},months:function(){var e=this._getMonthsHtml(this.d.currentDate);this.$cells.html(e)},years:function(){var e=this._getYearsHtml(this.d.currentDate);this.$cells.html(e)}},_render:function(){this.opts.onlyTimepicker||this._renderTypes[this.type].bind(this)()},_update:function(){var i,n,e=o(".datepicker--cell",this.$cells),s=this;e.each(function(e,t){i=o(this),n=s.d._getDateFromCell(o(this)),n=s._getCellContents(n,s.d.cellType),i.attr("class",n.classes)})},show:function(){this.opts.onlyTimepicker||(this.$el.addClass("active"),this.acitve=!0)},hide:function(){this.$el.removeClass("active"),this.active=!1},_handleClick:function(e){var t,i=e.data("date")||1,n=e.data("month")||0,s=e.data("year")||this.d.parsedDate.year,o=this.d;o.view==this.opts.minView?(t=new Date(s,n,i),(e=this.d._isSelected(t,this.d.cellType))?o._handleAlreadySelectedDates.bind(o,e,t)():o._trigger("clickCell",t)):o.down(new Date(s,n,i))},_onClickCell:function(e){e=o(e.target).closest(".datepicker--cell");e.hasClass("-disabled-")||this._handleClick.bind(this)(e)}},f=o.fn.datepicker,d=f.Constructor,f.Navigation=function(e,t){this.d=e,this.opts=t,this.$buttonsContainer="",this.init()},f.Navigation.prototype={init:function(){this._buildBaseHtml(),this._bindEvents()},_bindEvents:function(){this.d.$nav.on("click",".datepicker--nav-action",o.proxy(this._onClickNavButton,this)),this.d.$nav.on("click",".datepicker--nav-title",o.proxy(this._onClickNavTitle,this)),this.d.$datepicker.on("click",".datepicker--button",o.proxy(this._onClickNavButton,this))},_buildBaseHtml:function(){this.opts.onlyTimepicker||this._render(),this._addButtonsIfNeed()},_addButtonsIfNeed:function(){this.opts.todayButton&&this._addButton("today"),this.opts.clearButton&&this._addButton("clear")},_render:function(){var e=this._getTitle(this.d.currentDate),e=d.template('<div class="datepicker--nav-action" data-action="prev">#{prevHtml}</div><div class="datepicker--nav-title">#{title}</div><div class="datepicker--nav-action" data-action="next">#{nextHtml}</div>',o.extend({title:e},this.opts));this.d.$nav.html(e),"years"==this.d.view&&o(".datepicker--nav-title",this.d.$nav).addClass("-disabled-"),this.setNavStatus()},_getTitle:function(e){return this.d.formatDate(this.opts.navTitles[this.d.view],e)},_addButton:function(e){this.$buttonsContainer.length||this._addButtonsContainer();var t={action:e,label:this.d.loc[e]},t=d.template('<span class="datepicker--button" data-action="#{action}">#{label}</span>',t);o("[data-action="+e+"]",this.$buttonsContainer).length||this.$buttonsContainer.append(t)},_addButtonsContainer:function(){this.d.$datepicker.append('<div class="datepicker--buttons"></div>'),this.$buttonsContainer=o(".datepicker--buttons",this.d.$datepicker)},setNavStatus:function(){if((this.opts.minDate||this.opts.maxDate)&&this.opts.disableNavWhenOutOfRange){var e=this.d.parsedDate,t=e.month,i=e.year,n=e.date;switch(this.d.view){case"days":this.d._isInRange(new Date(i,t-1,1),"month")||this._disableNav("prev"),this.d._isInRange(new Date(i,t+1,1),"month")||this._disableNav("next");break;case"months":this.d._isInRange(new Date(i-1,t,n),"year")||this._disableNav("prev"),this.d._isInRange(new Date(i+1,t,n),"year")||this._disableNav("next");break;case"years":var s=d.getDecade(this.d.date);this.d._isInRange(new Date(s[0]-1,0,1),"year")||this._disableNav("prev"),this.d._isInRange(new Date(s[1]+1,0,1),"year")||this._disableNav("next")}}},_disableNav:function(e){o('[data-action="'+e+'"]',this.d.$nav).addClass("-disabled-")},_activateNav:function(e){o('[data-action="'+e+'"]',this.d.$nav).removeClass("-disabled-")},_onClickNavButton:function(e){e=o(e.target).closest("[data-action]").data("action");this.d[e]()},_onClickNavTitle:function(e){if(!o(e.target).hasClass("-disabled-"))return"days"==this.d.view?this.d.view="months":void(this.d.view="years")}},f=o.fn.datepicker,m=f.Constructor,f.Timepicker=function(e,t){this.d=e,this.opts=t,this.init()},f.Timepicker.prototype={init:function(){var e="input";this._setTime(this.d.date),this._buildHTML(),navigator.userAgent.match(/trident/gi)&&(e="change"),this.d.$el.on("selectDate",this._onSelectDate.bind(this)),this.$ranges.on(e,this._onChangeRange.bind(this)),this.$ranges.on("mouseup",this._onMouseUpRange.bind(this)),this.$ranges.on("mousemove focus ",this._onMouseEnterRange.bind(this)),this.$ranges.on("mouseout blur",this._onMouseOutRange.bind(this))},_setTime:function(e){var t=m.getParsedDate(e);this._handleDate(e),this.hours=t.hours<this.minHours?this.minHours:t.hours,this.minutes=t.minutes<this.minMinutes?this.minMinutes:t.minutes},_setMinTimeFromDate:function(e){this.minHours=e.getHours(),this.minMinutes=e.getMinutes(),this.d.lastSelectedDate&&this.d.lastSelectedDate.getHours()>e.getHours()&&(this.minMinutes=this.opts.minMinutes)},_setMaxTimeFromDate:function(e){this.maxHours=e.getHours(),this.maxMinutes=e.getMinutes(),this.d.lastSelectedDate&&this.d.lastSelectedDate.getHours()<e.getHours()&&(this.maxMinutes=this.opts.maxMinutes)},_setDefaultMinMaxTime:function(){var e=this.opts;this.minHours=e.minHours<0||23<e.minHours?0:e.minHours,this.minMinutes=e.minMinutes<0||59<e.minMinutes?0:e.minMinutes,this.maxHours=e.maxHours<0||23<e.maxHours?23:e.maxHours,this.maxMinutes=e.maxMinutes<0||59<e.maxMinutes?59:e.maxMinutes},_validateHoursMinutes:function(e){this.hours<this.minHours?this.hours=this.minHours:this.hours>this.maxHours&&(this.hours=this.maxHours),this.minutes<this.minMinutes?this.minutes=this.minMinutes:this.minutes>this.maxMinutes&&(this.minutes=this.maxMinutes)},_buildHTML:function(){var e=m.getLeadingZeroNum,e={hourMin:this.minHours,hourMax:e(this.maxHours),hourStep:this.opts.hoursStep,hourValue:this.hours,hourVisible:e(this.displayHours),minMin:this.minMinutes,minMax:e(this.maxMinutes),minStep:this.opts.minutesStep,minValue:e(this.minutes)},e=m.template('<div class="datepicker--time"><div class="datepicker--time-current">   <span class="datepicker--time-current-hours">#{hourVisible}</span>   <span class="datepicker--time-current-colon">:</span>   <span class="datepicker--time-current-minutes">#{minValue}</span></div><div class="datepicker--time-sliders">   <div class="datepicker--time-row">      <input type="range" name="hours" value="#{hourValue}" min="#{hourMin}" max="#{hourMax}" step="#{hourStep}"/>   </div>   <div class="datepicker--time-row">      <input type="range" name="minutes" value="#{minValue}" min="#{minMin}" max="#{minMax}" step="#{minStep}"/>   </div></div></div>',e);this.$timepicker=o(e).appendTo(this.d.$datepicker),this.$ranges=o('[type="range"]',this.$timepicker),this.$hours=o('[name="hours"]',this.$timepicker),this.$minutes=o('[name="minutes"]',this.$timepicker),this.$hoursText=o(".datepicker--time-current-hours",this.$timepicker),this.$minutesText=o(".datepicker--time-current-minutes",this.$timepicker),this.d.ampm&&(this.$ampm=o('<span class="datepicker--time-current-ampm">').appendTo(o(".datepicker--time-current",this.$timepicker)).html(this.dayPeriod),this.$timepicker.addClass("-am-pm-"))},_updateCurrentTime:function(){var e=m.getLeadingZeroNum(this.displayHours),t=m.getLeadingZeroNum(this.minutes);this.$hoursText.html(e),this.$minutesText.html(t),this.d.ampm&&this.$ampm.html(this.dayPeriod)},_updateRanges:function(){this.$hours.attr({min:this.minHours,max:this.maxHours}).val(this.hours),this.$minutes.attr({min:this.minMinutes,max:this.maxMinutes}).val(this.minutes)},_handleDate:function(e){this._setDefaultMinMaxTime(),e&&(m.isSame(e,this.d.opts.minDate)?this._setMinTimeFromDate(this.d.opts.minDate):m.isSame(e,this.d.opts.maxDate)&&this._setMaxTimeFromDate(this.d.opts.maxDate)),this._validateHoursMinutes(e)},update:function(){this._updateRanges(),this._updateCurrentTime()},_getValidHoursFromDate:function(e,t){var i=e;e instanceof Date&&(i=m.getParsedDate(e).hours);var n="am";if(t||this.d.ampm)switch(!0){case 0==i:i=12;break;case 12==i:n="pm";break;case 11<i:i-=12,n="pm"}return{hours:i,dayPeriod:n}},set hours(e){this._hours=e;e=this._getValidHoursFromDate(e);this.displayHours=e.hours,this.dayPeriod=e.dayPeriod},get hours(){return this._hours},_onChangeRange:function(e){var t=o(e.target),e=t.attr("name");this.d.timepickerIsActive=!0,this[e]=t.val(),this._updateCurrentTime(),this.d._trigger("timeChange",[this.hours,this.minutes]),this._handleDate(this.d.lastSelectedDate),this.update()},_onSelectDate:function(e,t){this._handleDate(t),this.update()},_onMouseEnterRange:function(e){e=o(e.target).attr("name");o(".datepicker--time-current-"+e,this.$timepicker).addClass("-focus-")},_onMouseOutRange:function(e){e=o(e.target).attr("name");this.d.inFocus||o(".datepicker--time-current-"+e,this.$timepicker).removeClass("-focus-")},_onMouseUpRange:function(e){this.d.timepickerIsActive=!1}}}(window,jQuery);var viewCalendar={init:function(){},initCalendar:function(){var o=$("#Calendar"),r=$("#ArrangementId").val(),e=$(".js-input-count"),a="";e.each(function(){var e=$(this);void 0!==e.data("rule")&&(a+="&products["+e.data("rule")+"]="+e.val())});var t=new Date,e=t.getFullYear()+"-"+("0"+(t.getMonth()+1)).slice(-2)+"-"+("0"+t.getDate()).slice(-2),t=o.data("dates"),i=[],t=-1<t.indexOf("&")?t.replace("/buchen/","/buchen/?")+"&arrangement="+r+"&from="+e+"&to=2030-12-01"+a:t+"?arrangement="+r+"&from="+e+"&to=2030-12-01"+a;$.ajax({type:"GET",url:t,success:function(e){i=e,o.datepicker({language:"de",dateFormat:"yyyy-mm-dd",onRenderCell:function(e){var t=e.getDate(),e=e.getFullYear()+"-"+("0"+(e.getMonth()+1)).slice(-2)+"-"+("0"+e.getDate()).slice(-2);return-1!==i.indexOf(e)?{html:t}:{disabled:!0}},onSelect:function(e,t){var i=$(".js-step"),n=e.split("-")[2],s=-1<(s=o.data("times")).indexOf("&")?s.replace("/buchen/","/buchen/?")+"&arrangement="+r+"&date="+e+a:s+"?arrangement="+r+"&date="+e+a;i.attr("disabled",!0),viewTime.initTime(!1,s,n,"",t,e),coupon.couponReset()}}).data("Calendar")}})},toggleLoadingSpinnerView:function(e){var t=$("#Calendar");!1===e?t.append('<div class="e-loader--view"></div>'):t.find(".e-loader--view").remove()},changeTitle:function(){var e=$(".js-form-flap");e.hasClass("is--target")?e.removeClass("is--target"):e.addClass("is--target")},saveTime:function(r){var a=$(".js-ca-time"),l=$(".js-ov-formtime"),c=$(".js-ov-formdate"),u=["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"];a.on("click",function(e){e.preventDefault();var t=$(this),i=t.data("date"),n=new Date(i),s=n.toTimeString().split(" ")[0].replace(/(.*)\D\d+/,"$1"),o=n.getMonth(),e=n.getFullYear(),i=n.getDate(),n=$(".js-step");t.hasClass("is--marked")||(a.removeClass("is--marked"),t.addClass("is--marked")),$("#Dates").val(t.data("date")),c.text(i+". "+u[o]+" "+e).attr("data-date",r),l.text(s+" Uhr"),n.removeAttr("disabled")})}};viewCalendar.init();var viewClipboard={init:function(){var e=document.getElementById("ClipButton");e&&e.addEventListener("click",function(){var e;(e=document.getElementById("ClipField")).select(),e.setSelectionRange(0,99999),document.execCommand("copy")},!1)}};viewClipboard.init();var formCounter={init:function(){this.domReady()},domReady:function(){var e=this;$(document).ready(function(){e.bindButtonTriggerOnClick(),e.bindInputTriggerOnFocusIn(),e.bindInputTriggerOnChange(),e.bindInputTriggerOnKeydown(),e.calcInputValue()})},bindButtonTriggerOnClick:function(){$(".js-btn-count").on("click",function(e){e.preventDefault();var t=$(this),i=t.attr("data-field"),n=t.attr("data-type"),e=$('input[id="'+i+'"]'),t=parseInt(e.val()),i=e.data("min");isNaN(t)?e.val(i):"minus"===n?t===i?e.val(i).change():t>e.attr("min")&&e.val(t-1).change():"plus"===n&&(0===t&&0!==i?e.val(i).change():t<e.attr("max")&&e.val(t+1).change())})},bindInputTriggerOnFocusIn:function(){$(".js-input-count").on("focusin",function(){$(this).data("oldValue",$(this).val()),formCounter.calcInputValue(),formCounter.removeTime()})},bindInputTriggerOnChange:function(){var l=$(".c-form__container--voucher");$(".js-input-count").on("change",function(){var e=$(this),t=e.parents(".c-form__list-item"),i=parseInt(e.attr("min")),n=parseInt(e.attr("max")),s=parseInt(e.val()),o=e.attr("name"),r=e.data("min");s<=0?t.removeClass("is--marked"):t.addClass("is--marked"),s<=r&&0<s?e.val(r):(i<=s?$('.js-btn-count[data-type="minus"][data-field="'+o+'"]'):e.val(e.data("oldValue")),s<=n?$('.js-btn-count[data-type="plus"][data-field="'+o+'"]'):e.val(e.data("oldValue")));var a=!1,o=$(".c-alert--error"),e=$("#Calendar");$(".js-input-count").each(function(){return 0<$(this).val()?a=!1:void(a=!0)}),a?(e.addClass("is-disabled"),o.addClass("is--active")):(o.removeClass("is--active"),e.removeClass("is-disabled")),formCounter.calcInputValue(),l.length||viewCalendar.initCalendar(),formCounter.removeTime()})},bindInputTriggerOnKeydown:function(){$(".js-input-count").on("keydown",function(e){-1!==$.inArray(e.keyCode,[46,8,9,27,13,190])||65==e.keyCode&&!0===e.ctrlKey||35<=e.keyCode&&e.keyCode<=39||(e.shiftKey||e.keyCode<48||57<e.keyCode)&&(e.keyCode<96||105<e.keyCode)&&e.preventDefault()})},calcInputValue:function(){var i=0,e=$(".js-co-total");$(".c-form__list-item").each(function(){var e=$(this),t=e.find(".js-input-count").val(),e=e.find(".js-co-price").data("price");i+=parseFloat(t*e)});var t,n,s=(t=i,t=((n={decimal:",",grouping:".",fraction:2,prefix:""}).fraction?t.toFixed(n.fraction):""+t).split("."),n.prefix+t[0].replace(/\B(?=(\d{3})+(?!\d))/g,n.grouping)+(t[1]?n.decimal+t[1]:""));e.text(s)},removeTime:function(){var t,e,i=$("#Calendar");i.hasClass("is--visible")||(t=$("#CalendarContent"),e=$(".datepicker--cell-day.-selected-"),viewCalendar.toggleLoadingSpinnerView(!1),e.each(function(){var e=$(this);i.addClass("is--visible").next("div").removeClass("is--visible").delay(50).queue(function(){t.removeClass("is--visible"),viewCalendar.toggleLoadingSpinnerView(!0),$(this).clearQueue()}),$(".js-ca-list",t).html(""),e.trigger("click")}))}};formCounter.init();var coupon={init:function(){this.domReady()},domReady:function(){var e=this;$(document).ready(function(){e.couponSubmit()})},couponSubmit:function(){$(".js-coupon-redeem").on("click",function(e){e.preventDefault(),coupon.couponStatus()})},couponStatus:function(){var f=$("#Coupon"),e=f.data("api"),t=f.val(),i=e.replace("/buchen/","/buchen/?"),n=$("#ArrangementId").val(),e=$(".js-ov-formdate").data("date"),m=$(".js-coupon-message"),v=$(".js-ov-list"),s="";coupon.couponLength(t),coupon.couponExist(t),v.each(function(){var e=$(this).find(".js-ov-count"),t=e.data("rule");void 0!==t&&(s+="&products["+t+"]="+e.text())}),i=-1<i.indexOf("&")?i+"&arrangement="+n+"&date="+e+s+"&voucher="+f.val():i+"?arrangement="+n+"&date="+e+s+"&voucher="+f.val(),$.ajax({type:"GET",url:i,success:function(e){var h="";function p(e,t){e=(t.fraction?e.toFixed(t.fraction):""+e).split(".");return t.prefix+e[0].replace(/\B(?=(\d{3})+(?!\d))/g,t.grouping)+(e[1]?t.decimal+e[1]:"")}!1===e&&(h="error",m.find(".c-alert--error").removeClass("is--active").delay(200).queue(function(){$(this).remove(),$(this).dequeue()}),m.append(coupon.couponAlert("Bitte gib doch einen Code ein!",h)).delay(200).queue(function(){$(this).find(".c-alert--error").addClass("is--active"),$(this).dequeue()})),$.each(e,function(e,t){var i,n,s,o,c,u,r,a,l,d="percentage"===e;m.find(".c-alert--error").removeClass("is--active").delay(200).queue(function(){$(this).remove(),$(this).dequeue()}),"error"===e?(h="error",m.append(coupon.couponAlert("Bitte gib doch einen Code ein!",h)).delay(200).queue(function(){$(this).find(".c-alert--error").addClass("is--active"),$(this).dequeue()})):!1===t.valid&&"ERR_VOUCHER_USED"===t.reason?(h="error",m.append(coupon.couponAlert("Der Gutschein ist aufgebraucht. Den kannst du in die Tonne kloppen.",h)).delay(200).queue(function(){$(this).find(".c-alert--error").addClass("is--active"),$(this).dequeue()})):!1===t.valid?(h="error",m.append(coupon.couponAlert("Error: 50_blablabla... diesen Code gibt es nicht. Bitte schau ob du dich nicht verschrieben hast.",h)).delay(200).queue(function(){$(this).find(".c-alert--error").addClass("is--active"),$(this).dequeue()})):!0!==t.valid&&!0!=d||(o=$(".js-ov-total"),i=$(".is--total .c-form-overview__price"),a=o.text().replace(",","."),d?(n=$("#DiscountCode"),s=f.val(),e=parseFloat(t/100),o=parseFloat(a*e),d=parseFloat(a-o),o=(e=i.next(".c-form-overview__new")).find("span"),""===n.val()&&(n.val(s),r=p(d,{decimal:",",grouping:".",fraction:2,prefix:""}),e.length?o.text(r):i.addClass("is--del").after('<span class="c-form-overview__new"><i>€ </i><span>'+r+"</span></span>"))):(l=t.processed,u=!(c=0),$.each(l,function(o,e){var r=e.regel_id,a=e.prijs_per_stuk,l=e.aantal,t=0,e=$(".js-coupon-hidden"),i=$("#Coupon").val();e&&$.each(e,function(){$(this).val()===i&&(t+=parseInt(1))===l&&(u=!1)}),u&&$.each(v,function(){var e=$(this),t=e.find(".js-ov-count").data("rule"),i=e.find(".c-form-overview__new span"),n=i.text().replace(",",".");if(r===t){for(var s=0;s<l.length;s++)l==s&&(l=s[o]);0<=a&&(a=parseFloat(a*l),c+=parseFloat(a));t=e.find(".js-ov-price"),e=t.text().replace(",","."),e=parseFloat(e-a),n=p(e=i.length?parseFloat(n-a):e,{decimal:",",grouping:".",fraction:2,prefix:""});0<=e&&(i.length?i.text(n):t.parent("span").addClass("is--del").after('<span class="c-form-overview__new"><i>€ </i><span>'+n+"</span></span>"))}})})),u&&(l=(t=(r=i.next(".c-form-overview__new")).find("span")).text().replace(",","."),a=parseFloat(a-c),l=p(a=r.length?parseFloat(l-c):a,{decimal:",",grouping:".",fraction:2,prefix:""}),0<=a&&(r.length?t.text(l):i.addClass("is--del").after('<span class="c-form-overview__new"><i>€ </i><span>'+l+"</span></span>")),coupon.couponInfo()))})}})},couponAlert:function(e,t){return'<div class="c-alert--'+t+'"><div class="c-alert__inner"><p>'+e+"</p></div></div>"},couponInfo:function(){var e=$("#Coupon"),t=e.val(),i=$(".js-coupon-hidden"),n=0;i&&(n=i.length),e.after('<input type="hidden" class="js-coupon-hidden" name="tx_d60recras_bookingform[booking][vouchers]['+n+']" value="'+t+'">'),coupon.couponExist()},couponExist:function(e){var t=$(".js-coupon-hidden");void 0!==e&&t.each(function(){e==$(this).val()&&coupon.exit()})},couponLength:function(e){e.length<=3&&e.trim().length&&((e=$(".js-coupon-message")).find(".c-alert--error").removeClass("is--active").delay(200).queue(function(){$(this).remove(),$(this).dequeue()}),e.append(coupon.couponAlert("Ohh... das scheint ein älterer Gutschein zu sein. Bitte schick uns ein Foto von deinem Gutschein und deinen Buchungswunsch an gutscheine@blackfoot.de.","error")).delay(200).queue(function(){$(this).find(".c-alert--error").addClass("is--active"),$(this).dequeue()}),coupon.exit())},couponReset:function(){var e=$(".c-form-overview__new"),t=$(".c-form-overview__price"),i=$(".js-coupon-hidden");e.remove(),i.remove(),t.removeClass("is--del")},exit:function(){var e=window.onerror;throw window.onerror=function(){return window.onerror=e,!0},new Error}};coupon.init();var viewHeading={init:function(){this.domReady()},domReady:function(){var e=this;$(document).ready(function(){e.changeHeading()})},changeHeading:function(){var e=$(".c-form__container-item.is--active"),t=$(".js-form-title"),i=$(".js-form-subtitle"),n=e.find(".c-form__fieldset").data("title"),s=e.find(".c-form__fieldset").data("subtitle");t.text(n),i.text(s),viewHeading.setInactiveNav(e)},setInactiveNav:function(e){var t=e,i=$(".e-btn--prev"),e=$(".js-form-subtitle");t.is(".is--step-1.is--active, .is--step-2.is--active")?i.addClass("is--disabled"):i.removeClass("is--disabled"),t.is(".is--step-5")&&e.addlass("is--disabled")}};viewHeading.init();var formNavigation={init:function(){this.domReady()},domReady:function(){var e=this;$(document).ready(function(){e.bindNavButtonTriggerOnClick()})},bindNavButtonTriggerOnClick:function(){$(".js-nav-form").off("click").on("click",function(e){e.preventDefault();var t=$(this),i=t.data("direction"),e=t.data("url");t.hasClass("js-ca-time")&&t.hasClass("is--marked")?(t.removeClass("js-nav-form"),formNavigation.changeFormView(i,e)):t.hasClass("js-ca-time")?t.addClass("js-nav-form"):formNavigation.changeFormView(i,e),t.hasClass("js-step")&&$().Overview()})},changeFormView:function(e,t){var i=$(".c-form__container-item.is--active");"prev"===e?i.hasClass("is--first")?document.location.href=t:i.addClass("is--transform").delay(350).queue(function(){$(this).prev(".c-form__container-item").length?($(this).removeClass("is--active is--passed").prev(".c-form__container-item").addClass("is--active"),$(this).removeClass("is--transform"),$(window).scrollTop(0),viewHeading.changeHeading()):($(this).removeClass("is--active is--passed").parent(".c-form").prev(".c-form__container-item").addClass("is--active"),$(this).removeClass("is--transform"),$(window).scrollTop(0),viewHeading.changeHeading(),$(".c-form").remove()),$(this).clearQueue(),i.hasClass("is--step-3")&&($(this).prev(".c-form__container-item").removeClass("is--passed is--hidden"),$(this).parent("#BookingSection").prev(".c-form__container-item").removeClass("is--hidden"),$(this).removeClass("is--transform")),i.hasClass("is--step-4")&&$(this).prev(".c-form__container-item").removeClass("is--passed")}):"next"===e?i.addClass("is--transform").delay(350).queue(function(){i.hasClass("is--step-2")?($(this).addClass("is--passed is--hidden").removeClass("is--active"),$(this).next(".c-form__container-item").addClass("is--active"),$(this).parent("#BookingSection").prev(".c-form__container-item").addClass("is--hidden")):$(this).addClass("is--passed").removeClass("is--active").next(".c-form__container-item").addClass("is--active"),$(this).removeClass("is--transform").clearQueue(),$(window).scrollTop(0),viewHeading.changeHeading()}):"none"===e&&history.back(1)}};formNavigation.init(),function(c){c.fn.Overview=function(){var r,e=c(".js-co-total").text(),t=c(".js-ov-total"),i=c(".js-co-list"),a=c(".js-ov-list"),l="";i.each(function(i){var n=c(this),s=n.find(".js-input-count").val();l=n.find(".js-co-price").text(),r=n.find(".js-input-count").data("rule");var e=l.replace(",","."),t=parseFloat(s*e),o=(e=t,e=((t={decimal:",",grouping:".",fraction:2,prefix:""}).fraction?e.toFixed(t.fraction):""+e).split("."),t.prefix+e[0].replace(/\B(?=(\d{3})+(?!\d))/g,t.grouping)+(e[1]?t.decimal+e[1]:""));a.each(function(e){var t=c(this);i===e&&(0==s?t.hide():(n.addClass("is--marked"),t.find(".js-ov-count").text(s).attr("data-rule",r),t.find(".js-ov-price").text(o),t.show()))})}),t.text(e)}}(jQuery);var viewPending={init:function(){var t,i=$("#Pending"),e=i.data("uri"),n=0,s=$("#PendingTitle"),o=$("#PendingText"),r="Das hätten wir geschafft!",a='Vielen Dank für deine Buchung. Wir freuen uns auf deinen Besuch. Du bekommst in kürze eine Auftragsbestätigung mit weiteren Informationen. Bitte lies diese Mail sorgfältig. Solltest du noch Fragen zu deiner Buchung hast, nimm gerne <a target="_self" href="/kontakt/">Kontakt</a> mit uns auf.';function l(){t=setInterval(function(){10===(n+=1)&&(i.addClass("is-warning"),s.html("Entschuldigung!"),o.html('Deine Buchung konnte noch nicht verifiziert werden. Wende dich bitte an das Blackfoot Team über <a title="Schreiben Sie uns eine Nachricht!" href="mailto:info@blackfoot.de">info@blackfoot.de</a> oder unsere alternativen <a target="_self" href="/kontakt/">Kontaktmöglichkeiten.</a> '),clearInterval(t)),$.ajax({type:"GET",url:e,success:function(e){"verified"===e.status&&(i.addClass("is-success"),s.html(r),o.html(a),clearInterval(t))}})},3e3)}i.length&&l()}};viewPending.init();var viewSelection={config:{triggerButton:$(".js-selection-form"),activeItem:$(".c-form__container-item.is--first"),status:!0,validation:!0},init:function(){this.onLoad(),this.domReady()},domReady:function(){var e=this;$(document).ready(function(){e.bindButtonTriggerOnClick(),e.flapper(),e.listAnimation()})},onLoad:function(){var e=this;$(window).on("load",function(){e.triggerPackage()})},bindButtonTriggerOnClick:function(){viewSelection.config.triggerButton.on("click",function(e){e.preventDefault();var t=$(this),e=t.data("api");t.hasClass("is--selected")||viewSelection.getApiContent(e,t)})},getApiContent:function(e,t){var i=$(".c-form__container--voucher");$.ajax({type:"GET",url:e,beforeSend:function(){viewSelection.setActiveItem(t),viewSelection.config.activeItem.addClass("is--transform"),viewSelection.clearSection()},success:function(e){viewSelection.errorFunction(t,!0===viewSelection.config.status),$(e).insertAfter(viewSelection.config.activeItem).delay(350).queue(function(){viewSelection.changeView(),$(".typo3-messages").slideUp(),$(this).clearQueue()}),coupon.init(),formNavigation.init(),formCounter.init(),i.length||viewCalendar.initCalendar(),viewValidate.init(),viewSelection.validateProducts(),viewSelection.flapperAction(t)},error:function(){viewSelection.errorFunction(t,!1===viewSelection.config.status)}})},errorFunction:function(e,t){var i=$(e).parents("fieldset"),e=i.next(".c-form__error");!0===t?e.stop().animate({height:0},350,"easeInOutCirc",function(){$(this).remove()}):e.length||$('<div class="c-form__error"><div class="c-form__error-inner"><p>"Event konnte nicht geladen werden!"</p></div></div>').insertAfter(i).delay(100).queue(function(){var e=$(this),t=e.find(".c-form__error-inner").outerHeight(!0);e.stop().animate({height:t},350,"easeInOutCirc"),e.clearQueue()})},changeView:function(){viewSelection.config.activeItem.delay(0).queue(function(){$(this).removeClass("is--active").addClass("is--passed").next("form").find(".c-form__container-item").first().addClass("is--active"),$(this).removeClass("is--transform").clearQueue(),viewHeading.changeHeading()})},setActiveItem:function(e){var t=e,e=$(".e-btn--selection");t.hasClass("is--selected")||(e.removeClass("is--selected"),t.addClass("is--selected"))},clearSection:function(){var e=$("body").find("#BookingSection");e.length&&e.remove()},triggerPackage:function(){var i=window.location.hash.substr(1),e=$(".js-selection-form");i&&e.each(function(){var e,t=$(this);t.data("package")===i&&(e=t.data("api"),t.hasClass("is--selected")||viewSelection.getApiContent(e,t))})},listAnimation:function(){var e=$(".c-form__flap-inner"),i=0,n=0;viewSelection.config.triggerButton.each(function(e){var t=$(this);0===e?t.css({top:parseFloat(60*e)}):t.css({transform:"translateY("+parseFloat(parseFloat(60*e)+parseFloat(10*e))+"px)"}),i+=parseFloat(t.outerHeight(!0)),n+=e}),e.css({height:i+parseInt(5*n)})},validateProducts:function(){var e=!1,t=$(".c-alert--error"),i=$("#Calendar");$(".js-input-count").each(function(){return 0<$(this).val()?e=!1:void(e=!0)}),e?(i.addClass("is-disabled"),t.addClass("is--active")):(t.removeClass("is--active"),i.removeClass("is-disabled"))},flapper:function(){$(".js-form-flap").on("click",function(e){e.preventDefault();e=$(this);e.hasClass("is--active")?e.removeClass("is--active"):e.addClass("is--active"),viewSelection.flapperAction(e)})},flapperAction:function(){var e=$(".c-form__flap"),t=e.find(".c-form__flap-inner").innerHeight();e.hasClass("c-form__flap--active")?e.removeClass("c-form__flap--active").animate({height:t+10},350,function(){e.removeClass("is--absolute")}):e.addClass("c-form__flap--active c-form__flap--marked").animate({height:"68px"},350,function(){e.addClass("is--absolute")})}};viewSelection.init();var viewTime={init:function(){},initTime:function(e,t,i,n,s,o){var r=$("#Calendar"),a=$("#CalendarContent");$.ajax({type:"GET",url:t,beforeSend:function(){viewCalendar.toggleLoadingSpinnerView(!1)},success:function(e){viewCalendar.toggleLoadingSpinnerView(!0),s&&-1!==i.indexOf(s.getDate())&&($(e).each(function(){var e=new Date(this).toTimeString().split(" ")[0].replace(/(.*)\D\d+/,"$1");n+='<li class="c-form__calendar-item"><button class="e-btn--time js-ca-time" data-direction="next" data-date="'+this+'" type="button"><span>'+e+"</span></button></li>"}),0===e.length&&(n='<li class="c-form__calendar-item is--empty">Es liegen keine Daten vor!</li>'),r.removeClass("is--visible").next("div").addClass("is--visible").delay(50).queue(function(){a.addClass("is--visible"),viewCalendar.changeTitle(),$(this).clearQueue()}),$(".js-ca-list",a).html(n),formNavigation.init(),viewCalendar.saveTime(o),$("html, body").animate({scrollTop:r.offset().top-60},600,"easeInOutCirc"))}})}};viewCalendar.init();var viewValidate={init:function(){this.domReady()},domReady:function(){this.checkValidField(),this.checkValid()},checkValidField:function(){var e=$('input[type="tel"].js-required'),t=$('input[type="text"].js-required'),i=$('input[type="email"].js-required'),n=$('input[type="checkbox"].js-required'),s=$("textarea.js-required");$("select.js-required").on("change",function(){var e=$(this);e.val()?e.removeClass("is--invalid").addClass("is--valid"):e.removeClass("is--valid").addClass("is--invalid"),viewValidate.checkValid()}),n.on("change",function(){var e=$(this);e.is(":checked")?e.removeClass("is--invalid").addClass("is--valid").val(0):e.removeClass("is--valid").addClass("is--invalid").val(""),viewValidate.checkValid()}),s.on("input change",function(){var e=$(this);e.val()?e.removeClass("is--invalid").addClass("is--valid"):e.removeClass("is--valid").addClass("is--invalid"),viewValidate.checkValid()}),t.on("input change",function(){var e=$(this);e.val()?e.removeClass("is--invalid").addClass("is--valid"):e.removeClass("is--valid").addClass("is--invalid"),viewValidate.checkValid()}),e.on("input change",function(){var e=$(this);e.val()?e.removeClass("is--invalid").addClass("is--valid"):e.removeClass("is--valid").addClass("is--invalid"),viewValidate.checkValid()}),i.on("input change",function(){var e=$(this);/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(e.val())?e.removeClass("is--invalid").addClass("is--valid"):e.removeClass("is--valid").addClass("is--invalid"),viewValidate.checkValid()})},checkValid:function(){var e=$(".js-form-validate"),t=$("[required]"),i=$(".js-required");t.each(function(){var e=$(this);""==e.val()&&e.addClass("is--invalid")}),i.hasClass("is--invalid")?(e.off(),e.removeClass("js-nav-form").removeAttr("data-direction","next").attr("type","submit")):(e.addClass("js-nav-form").attr("data-direction","next").attr("type","button"),formNavigation.bindNavButtonTriggerOnClick())}};function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(i="Object"===i&&e.constructor?e.constructor.name:i)||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function _iterableToArrayLimit(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,s,o=[],r=!0,a=!1;try{for(i=i.call(e);!(r=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);r=!0);}catch(e){a=!0,s=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw s}}return o}}function _arrayWithHoles(e){if(Array.isArray(e))return e}viewValidate.init();var Main={init:function(){this.domReady(),this.onLoad(),this.onResize(),this.onScroll()},domReady:function(){var i=this;$(document).ready(function(){i.setCookie(),i.openCookieInfo(),i.ViewPortHeight(),i.OffsetPosition(),i.objectFitFallback(),document.getElementsByTagName("body")[0].className.match(/blackfoot/)&&i.weather(),i.alert(),i.validateBySubmit(),i.matchHeight(),i.scrollToSection(),i.fixedHeader(),i.initSlider(),i.initInfoSlider(),i.mutipleRangeSlider(),i.singleSubscribeRangeSlider(),i.singleBudgetRangeSlider(),i.initSlideCenter(),i.toggleNav(),i.openLayer(),i.closeLayer(),i.initFilter(),i.initLightbox(),i.initAnimation(),i.loadingInlineVideo(),i.showFrame();var e=$(".stage").find(".headline"),t=e.text();-1!==t.indexOf("OBI MachBar")||-1!==t.indexOf("Jugendworkshops")?e.remove():e.css({opacity:1}),$("body").find(".s--theme-1").length&&($(".header").addClass("s--theme-1"),$(".footer").addClass("s--theme-1"))})},onLoad:function(){$(window).on("load",function(){setTimeout(function(){$("html").removeClass("no-transition")},250)})},onResize:function(){var e,t=$("html");function i(){t.removeClass("no-transition")}$(window).on("resize",function(){clearTimeout(e),t.addClass("no-transition"),e=setTimeout(i,500)})},onScroll:function(){$(window).on("scroll",function(){Main.fixedHeader(),Main.initAnimation()})},objectFitFallback:function(){"objectFit"in document.documentElement.style==!1&&($("body").addClass("no--object-fit"),$(".js-image-wrap").each(function(){var e=$(this),t=e.find("img").prop("src");t&&e.css("backgroundImage","url("+t+")").addClass("is--fixed").find(".js-picture").hide()}))},setCookie:function(){var t=$.cookie("flim"),i=$.cookie("flall");i||t||$("<div class='c-cookie is-set'>    <div class='c-cookie__wrapper'>        <div class='c-cookie__inner'>            <div class='c-cookie__content'>                <b>Unsere Website verwendet Cookies</b>                <p>                    Wir verwenden Cookies, um Inhalte und Anzeigen zu personalisieren, Funktionen für soziale Medien anbieten zu können und die Zugriffe auf unsere Website zu analysieren.                    Sie akzeptieren unsere Cookies, wenn Sie fortfahren diese Webseite zu nutzen. <a href='/datenschutzerklaerung/' title='Datenschutzerklärung'>Datenschutzerklärung</a>                </p>            </div>            <div id='CookieInfo' class='c-cookie__info'>                <div class='c-cookie__info-inner'>                    <div class='c-cookie__info-item'>                        <strong>Cloudflare DNS/Security (Notwendig)</strong>                        <p>Dieser Service wird verwendet, um individuelle Kunden hinter einer geteilten IP-Adresse zu identifizieren und Sicherheitseinstellungen auf Einzelkundenbasis anzuwenden.</p>                    </div>                    <div class='c-cookie__info-item'>                        <strong>Funktionale Cookies (Notwendig)</strong>                        <p>Dies sind Cookies, die von unserer Website verwendet werden, um einen einwandfreien Betrieb zu gewährleisten.</p>                    </div>                    <div class='c-cookie__info-item'>                        <strong>Google Analytics</strong>                        <p>Die Cookies werden verwendet, um Besucher-, Sitzungs- und Kampagnendaten zu berechnen und die Nutzung der Website für den Analysebericht der Website zu verfolgen. Die Cookies speichern Informationen anonym und weisen eine zufällig generierte Nummer zu, um eindeutige Besucher zu identifizieren.</p>                    </div>                    <div class='c-cookie__info-item'>                        <strong>Facebook Pixel</strong>                        <p>Dieser Cookie kann das Verhalten von Personen auf der Website mit Facebook-Benutzerprofilen verknüpfen. Er sammelt Daten, die helfen, Conversions nachzuverfolgen, Anzeigen zu optimieren und Zielgruppen zu erstellen.</p>                    </div>                </div>            </div>        </div>        <div class='c-cookie__action'>            <button class='btn btn__secondary js-cookie-detail' type='button' aria-label='Auflistung aller eingesetzten Cookies auf der Website' type='button'>Details</button>            <button class='btn btn__secondary js-cookie-set' data-type='important' type='button'>Notwendige erlauben</button>            <button class='btn btn__primary js-cookie-set' data-type='all' type='button'>Alle erlauben</button>        </div>    </div></div>").appendTo(document.body);var e=$(".js-cookie-set"),n=$(".c-cookie");e.on("click",function(e){e.preventDefault();e=$(this).data("type");i||t||("important"==e?($.cookie("flim",1,{expires:365,path:"/"}),n.removeClass("is-set")):"all"==e&&($.cookie("flall",1,{expires:365,path:"/"}),n.removeClass("is-set")))})},openCookieInfo:function(){var e=$(".js-cookie-detail"),t=$("#CookieInfo");e.on("click",function(e){e.preventDefault(),t.stop(!0,!0).slideToggle(350)})},OffsetPosition:function(){window.addEventListener("scroll",function(){document.documentElement.style.setProperty("--scroll-y",window.scrollY+"px")})},scrollToSection:function(){$(".nav").find('a[href^="#"]').click(function(e){e.preventDefault();e=$(this).attr("href");$("html,body").animate({scrollTop:$(e).offset().top},350)})},validateBySubmit:function(){$("form").submit(function(e){var t=$(this).find("[required]");return $(t).each(function(){if(""==$(this).val())return $(this).focus(),e.preventDefault(),!1}),!0})},alert:function(){var t=$("#MessageAlert"),e=$(".js-alert-close"),i=$.cookie("alert"),n=new Date;n.setTime(n.getTime()+36e5),e.on("click",function(){t.addClass("c-message--close"),t.on("transitionend MSTransitionEnd webkitTransitionEnd oTransitionEnd",function(){$(this).remove()}),$.cookie("alert",1,{expires:60,path:"/"})}),i||setTimeout(function(){t.removeClass("c-message--off")},250);var s="c-message--visible",o="c-message--hidden",r=0;window.addEventListener("scroll",function(){var e=window.pageYOffset;if(0==e)return t.removeClass(s),void t.removeClass(o);r<e&&150<e&&!t.hasClass(o)?(t.removeClass(s),t.addClass(o)):e<150&&t.hasClass(o)&&(t.removeClass(o),t.addClass(s)),r=e},!1)},matchHeight:function(){function e(e){var t,i,n,s=0,o=0,r=new Array;$(e).each(function(){if(t=$(this),$(t).height("auto"),i=t.position().top,o!=i){for(n=0;n<r.length;n++)r[n].height(s);r.length=0,o=i,s=t.height(),r.push(t)}else r.push(t),s=s<t.height()?t.height():s;for(n=0;n<r.length;n++)r[n].height(s)})}e(".js-match"),$(window).on("load",function(){e(".js-match")}),$(window).resize(function(){e(".js-match")})},fixedHeader:function(){50<=$(window).scrollTop()?$(".header").addClass("header--sticky"):$(".header").removeClass("header--sticky")},initSlider:function(){$(".slider__main").slick({dots:!0,dotsClass:"slider__control",useTransform:!0,speed:1e3,autoplay:!0,autoplaySpeed:8e3,prevArrow:'<button type="button" data-role="none" class="slider__nav slider__nav--prev" aria-label="Previous" tabindex="0" role="button"></button>',nextArrow:'<button type="button" data-role="none" class="slider__nav slider__nav--next" aria-label="Next" tabindex="0" role="button"></button>'})},initInfoSlider:function(){$(".js-info-slider").slick({dots:!1,useTransform:!0,speed:800,autoplay:!1,autoplaySpeed:8e3,cssEase:"cubic-bezier(0.785, 0.135, 0.150, 0.860)",slidesToShow:4,slidesToScroll:1,prevArrow:$(".js-info-prev"),nextArrow:$(".js-info-next"),responsive:[{breakpoint:1440,settings:{centerMode:!0,slidesToShow:3}},{breakpoint:1024,settings:{centerMode:!0,slidesToShow:2}},{breakpoint:640,settings:{centerMode:!0,slidesToShow:1}}]})},mutipleRangeSlider:function(){var e=$("#SliderMutiple");e.slider({range:!0,min:0,max:99,values:[35,60],slide:function(e,t){99==t.value?$("#Age").val("Alter ("+t.values[0]+" - "+t.values[1]+"+)"):$("#Age").val("Alter ("+t.values[0]+" - "+t.values[1]+")")}}),$("#Age").val("Alter ("+e.slider("values",0)+" - "+e.slider("values",1)+")")},singleBudgetRangeSlider:function(){var e=$("#SliderBudgetSingle");e.slider({range:"min",min:0,max:5e3,value:0,slide:function(e,t){5e3==t.value?$("#Budget").val("Budget ("+t.value+"+ €)"):$("#Budget").val("Budget ("+t.value+" €)")}}),$("#Budget").val("Budget ("+e.slider("value")+" €)")},singleSubscribeRangeSlider:function(){var e=$("#SliderSubscriberSingle");e.slider({range:"min",min:0,max:200,value:0,slide:function(e,t){200==t.value?$("#Subscriber").val("Teilnehmeranzahl ("+t.value+"+)"):$("#Subscriber").val("Teilnehmeranzahl ("+t.value+")")}}),$("#Subscriber").val("Teilnehmeranzahl ("+e.slider("value")+")")},initSlideCenter:function(){$(".center").slick({centerMode:!0,useTransform:!0,speed:1e3,slidesToShow:3,responsive:[{breakpoint:1024,settings:{slidesToShow:1}}]}),$(".slide__nav--next").click(function(){$(".center").slick("slickNext")}),$(".slide__nav--prev").click(function(){$(".center").slick("slickPrev")})},ViewPortHeight:function(){function e(){document.documentElement.style.setProperty("--vh",window.innerHeight/100+"px")}window.addEventListener("resize",function(){e()}),window.addEventListener("orientationchange",function(){e()}),e()},toggleNav:function(){$(".js-nav__trigger").on("click",function(){$("body").toggleClass("push")})},openLayer:function(){var e=$(".js-layer"),t=$("body");e.on("click",function(e){e.preventDefault(),t.addClass("is--cut"),$("#Layer").addClass("layer--open")})},closeLayer:function(){var e=$(".js-close"),t=$("#Layer"),i=t.find(".layer__inner"),n=t.find(".frame"),s=$("body");e.on("click",function(e){e.preventDefault(),s.removeClass("is--cut"),t.removeClass("layer--open").removeClass("is--fixed"),i.removeAttr("style"),n.css({height:"0px"})}),$(document).on("click",function(e){$(e.target).closest("#LayerInner").length||$(e.target).hasClass("js-layer")||(t.removeClass("layer--open").removeClass("is--fixed"),s.removeClass("is--cut"),i.removeAttr("style"),n.css({height:"0px"}))})},initFilter:function(){var s=$(".filter__link");s.on("click",function(e){e.preventDefault();var t=$(this),e=t.parent(".filter__item"),n=t.data("category"),t=t.parents(".filter").next(".projects"),i=t.find(".projects__box");e.hasClass("filter__item--active")||(s.parent(".filter__item").removeClass("filter__item--active"),e.addClass("filter__item--active")),t.addClass("projects--loading").delay(600).queue(function(){i.each(function(e,t){var i=$(t),t=i.data("categories");!n||t==n||t.includes(n)?i.show():i.hide()}),$(this).removeClass("projects--loading"),$(this).dequeue()})})},initLightbox:function(){$(".gallery").featherlightGallery()},initAnimation:function(){$("section").each(function(){$(this).offset().top<$(window).scrollTop()+800&&$(this).find(".js-transform").addClass("fade-in")})},showFrame:function(){$(".js-date-trigger").on("click",function(){var e=$(this),t=e.prev("input").attr("class"),i=e.parents(".layer__dates").next(".layer__form").find(".frame"),n=e.parents(".layer__inner"),s=e.parents(".layer__dates").innerHeight(),o=e.parents(".layer__dates").innerHeight(),e=e.parents(".layer"),s=parseFloat(o+s);i.css({visibility:"hidden",height:"0"});t=$("div."+t);t.css({visibility:"visible",height:"100%"});t=parseFloat(s+t.innerHeight());$(window).height()<t&&(e.addClass("is--fixed"),n.height(t))})},loadingInlineVideo:function(){var e=document.querySelectorAll(".js-video-inline"),t=new IntersectionObserver(function(e){e.forEach(function(e){function t(t){n.forEach(function(e){e.parentNode.dataset.size;t?(i.classList.contains("is-loaded")||(e.setAttribute("src",e.dataset.src),i.classList.add("is-loaded"),i.load()),i.play()):i.classList.contains("is-loaded")&&i.pause()})}var i=e.target,n=i.querySelectorAll("source");e.isIntersecting?t(!0):t(!1)})},{});e.forEach(function(e){return t.observe(e)})},weather:function(){var e=localStorage.getItem("weatherLastClear"),t=(new Date).getTime();300<t-e&&(localStorage.clear(),localStorage.setItem("weatherLastClear",t));function i(e){var e=(t=JSON.parse(e)).current.temp,t=_slicedToArray(t.current.weather,1)[0],e=function(e,t){t=Math.pow(10,t||0);return Math.round(e*t)/t}(e,1);n(e,t.description,t.icon)}var n=function(e,t,i){var n=document.getElementById("Header"),t='\n                <div id="Weather" class="c-weather">\n                    <span class="c-weather__icon">\n                        <svg class="i-icon i-icon-weather">\n                            <use xlink:href="#'.concat(i,'" />\n                        </svg>\n                    </span>\n                    <span class="c-weather__temp">').concat(e,'&deg;</span>\n                    <span class="c-weather__desc">').concat(t,"</span>\n                </div>\n            ");n.insertAdjacentHTML("beforeend",t)};localStorage.getItem("weatherData")?i(localStorage.getItem("weatherData")):fetch("https://www.blackfoot.de/api/weather/").then(function(e){return e.json()}).then(function(e){localStorage.setItem("weatherData",JSON.stringify(e)),i(JSON.stringify(e))})}};Main.init();