if(function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],r=e.document,o=Object.getPrototypeOf,i=n.slice,a=n.concat,s=n.push,l=n.indexOf,c={},u=c.toString,d=c.hasOwnProperty,f=d.toString,p=f.call(Object),h={};function g(e,t){var n=(t=t||r).createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}var m="3.1.1",v=function(e,t){return new v.fn.init(e,t)},y=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,b=/^-ms-/,w=/-([a-z])/g,x=function(e,t){return t.toUpperCase()};function C(e){var t=!!e&&"length"in e&&e.length,n=v.type(e);return"function"!==n&&!v.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}v.fn=v.prototype={jquery:m,constructor:v,length:0,toArray:function(){return i.call(this)},get:function(e){return null==e?i.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=v.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return v.each(this,e)},map:function(e){return this.pushStack(v.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},v.extend=v.fn.extend=function(){var e,t,n,r,o,i,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||v.isFunction(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],a!==(r=e[t])&&(c&&r&&(v.isPlainObject(r)||(o=v.isArray(r)))?(o?(o=!1,i=n&&v.isArray(n)?n:[]):i=n&&v.isPlainObject(n)?n:{},a[t]=v.extend(c,i,r)):void 0!==r&&(a[t]=r));return a},v.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===v.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=v.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==u.call(e)||(t=o(e))&&(n=d.call(t,"constructor")&&t.constructor,"function"!=typeof n||f.call(n)!==p))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[u.call(e)]||"object":typeof e},globalEval:function(e){g(e)},camelCase:function(e){return e.replace(b,"ms-").replace(w,x)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(C(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(y,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?v.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:l.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,i=e.length,a=!n;o<i;o++)!t(e[o],o)!==a&&r.push(e[o]);return r},map:function(e,t,n){var r,o,i=0,s=[];if(C(e))for(r=e.length;i<r;i++)null!=(o=t(e[i],i,n))&&s.push(o);else for(i in e)null!=(o=t(e[i],i,n))&&s.push(o);return a.apply([],s)},guid:1,proxy:function(e,t){var n,r,o;if("string"==typeof t&&(n=e[t],t=e,e=n),v.isFunction(e))return r=i.call(arguments,2),(o=function(){return e.apply(t||this,r.concat(i.call(arguments)))}).guid=e.guid=e.guid||v.guid++,o},now:Date.now,support:h}),"function"==typeof Symbol&&(v.fn[Symbol.iterator]=n[Symbol.iterator]),v.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});var S=function(e){var t,n,r,o,i,a,s,l,c,u,d,f,p,h,g,m,v,y,b,w="sizzle"+1*new Date,x=e.document,C=0,S=0,T=ae(),k=ae(),D=ae(),_=function(e,t){return e===t&&(d=!0),0},E={}.hasOwnProperty,O=[],A=O.pop,$=O.push,I=O.push,P=O.slice,R=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},N="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",j="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",M="\\["+L+"*("+j+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+L+"*\\]",F=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",B=new RegExp(L+"+","g"),q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),H=new RegExp("^"+L+"*,"+L+"*"),U=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),W=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),z=new RegExp(F),V=new RegExp("^"+j+"$"),X={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,J=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ee=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){f()},oe=ye(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{I.apply(O=P.call(x.childNodes),x.childNodes),O[x.childNodes.length].nodeType}catch(e){I={apply:O.length?function(e,t){$.apply(e,P.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ie(e,t,r,o){var i,s,c,u,d,h,v,y=t&&t.ownerDocument,C=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==C&&9!==C&&11!==C)return r;if(!o&&((t?t.ownerDocument||t:x)!==p&&f(t),t=t||p,g)){if(11!==C&&(d=Q.exec(e)))if(i=d[1]){if(9===C){if(!(c=t.getElementById(i)))return r;if(c.id===i)return r.push(c),r}else if(y&&(c=y.getElementById(i))&&b(t,c)&&c.id===i)return r.push(c),r}else{if(d[2])return I.apply(r,t.getElementsByTagName(e)),r;if((i=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return I.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!D[e+" "]&&(!m||!m.test(e))){if(1!==C)y=t,v=e;else if("object"!==t.nodeName.toLowerCase()){for((u=t.getAttribute("id"))?u=u.replace(te,ne):t.setAttribute("id",u=w),s=(h=a(e)).length;s--;)h[s]="#"+u+" "+ve(h[s]);v=h.join(","),y=Z.test(e)&&ge(t.parentNode)||t}if(v)try{return I.apply(r,y.querySelectorAll(v)),r}catch(e){}finally{u===w&&t.removeAttribute("id")}}}return l(e.replace(q,"$1"),t,r,o)}function ae(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function se(e){return e[w]=!0,e}function le(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function ue(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function pe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&oe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function he(e){return se(function(t){return t=+t,se(function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ie.support={},i=ie.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},f=ie.setDocument=function(e){var t,o,a=e?e.ownerDocument||e:x;return a!==p&&9===a.nodeType&&a.documentElement?(h=(p=a).documentElement,g=!i(p),x!==p&&(o=p.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",re,!1):o.attachEvent&&o.attachEvent("onunload",re)),n.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=le(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=K.test(p.getElementsByClassName),n.getById=le(function(e){return h.appendChild(e).id=w,!p.getElementsByName||!p.getElementsByName(w).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(J,ee);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(J,ee);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],m=[],(n.qsa=K.test(p.querySelectorAll))&&(le(function(e){h.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+L+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+L+"*(?:value|"+N+")"),e.querySelectorAll("[id~="+w+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||m.push(".#.+[+~]")}),le(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+L+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=K.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&le(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",F)}),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=K.test(h.compareDocumentPosition),b=t||K.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},_=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===p||e.ownerDocument===x&&b(x,e)?-1:t===p||t.ownerDocument===x&&b(x,t)?1:u?R(u,e)-R(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!o||!i)return e===p?-1:t===p?1:o?-1:i?1:u?R(u,e)-R(u,t):0;if(o===i)return ue(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?ue(a[r],s[r]):a[r]===x?-1:s[r]===x?1:0},p):p},ie.matches=function(e,t){return ie(e,null,null,t)},ie.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&f(e),t=t.replace(W,"='$1']"),n.matchesSelector&&g&&!D[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return ie(t,p,null,[e]).length>0},ie.contains=function(e,t){return(e.ownerDocument||e)!==p&&f(e),b(e,t)},ie.attr=function(e,t){(e.ownerDocument||e)!==p&&f(e);var o=r.attrHandle[t.toLowerCase()],i=o&&E.call(r.attrHandle,t.toLowerCase())?o(e,t,!g):void 0;return void 0!==i?i:n.attributes||!g?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},ie.escape=function(e){return(e+"").replace(te,ne)},ie.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ie.uniqueSort=function(e){var t,r=[],o=0,i=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(_),d){for(;t=e[i++];)t===e[i]&&(o=r.push(i));for(;o--;)e.splice(r[o],1)}return u=null,e},o=ie.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(r=ie.selectors={cacheLength:50,createPseudo:se,match:X,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(J,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(J,ee),"~="===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]||ie.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]&&ie.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&z.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(J,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+L+")"+e+"("+L+"|$)"))&&T(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var o=ie.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(B," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,f,p,h,g=i!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(m){if(i){for(;g;){for(f=t;f=f[g];)if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&y){for(b=(p=(c=(u=(d=(f=m)[w]||(f[w]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===C&&c[1])&&c[2],f=p&&m.childNodes[p];f=++p&&f&&f[g]||(b=p=0)||h.pop();)if(1===f.nodeType&&++b&&f===t){u[e]=[C,p,b];break}}else if(y&&(b=p=(c=(u=(d=(f=t)[w]||(f[w]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===C&&c[1]),!1===b)for(;(f=++p&&f&&f[g]||(b=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++b||(y&&((u=(d=f[w]||(f[w]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]=[C,b]),f!==t)););return(b-=o)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ie.error("unsupported pseudo: "+e);return o[w]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,n){for(var r,i=o(e,t),a=i.length;a--;)e[r=R(e,i[a])]=!(n[r]=i[a])}):function(e){return o(e,0,n)}):o}},pseudos:{not:se(function(e){var t=[],n=[],r=s(e.replace(q,"$1"));return r[w]?se(function(e,t,n,o){for(var i,a=r(e,null,o,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))}):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}}),has:se(function(e){return function(t){return ie(e,t).length>0}}),contains:se(function(e){return e=e.replace(J,ee),function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:se(function(e){return V.test(e||"")||ie.error("unsupported lang: "+e),e=e.replace(J,ee).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.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!r.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return Y.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:he(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:he(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:he(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=fe(t);function me(){}function ve(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ye(e,t,n){var r=t.dir,o=t.next,i=o||r,a=n&&"parentNode"===i,s=S++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,o);return!1}:function(t,n,l){var c,u,d,f=[C,s];if(l){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(u=(d=t[w]||(t[w]={}))[t.uniqueID]||(d[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=u[i])&&c[0]===C&&c[1]===s)return f[2]=c[2];if(u[i]=f,f[2]=e(t,n,l))return!0}return!1}}function be(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function we(e,t,n,r,o){for(var i,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(i=e[s])&&(n&&!n(i,r,o)||(a.push(i),c&&t.push(s)));return a}function xe(e,t,n,r,o,i){return r&&!r[w]&&(r=xe(r)),o&&!o[w]&&(o=xe(o,i)),se(function(i,a,s,l){var c,u,d,f=[],p=[],h=a.length,g=i||function(e,t,n){for(var r=0,o=t.length;r<o;r++)ie(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),m=!e||!i&&t?g:we(g,f,e,s,l),v=n?o||(i?e:h||r)?[]:a:m;if(n&&n(m,v,s,l),r)for(c=we(v,p),r(c,[],s,l),u=c.length;u--;)(d=c[u])&&(v[p[u]]=!(m[p[u]]=d));if(i){if(o||e){if(o){for(c=[],u=v.length;u--;)(d=v[u])&&c.push(m[u]=d);o(null,v=[],c,l)}for(u=v.length;u--;)(d=v[u])&&(c=o?R(i,d):f[u])>-1&&(i[c]=!(a[c]=d))}}else v=we(v===a?v.splice(h,v.length):v),o?o(null,a,v,l):I.apply(a,v)})}function Ce(e){for(var t,n,o,i=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],l=a?1:0,u=ye(function(e){return e===t},s,!0),d=ye(function(e){return R(t,e)>-1},s,!0),f=[function(e,n,r){var o=!a&&(r||n!==c)||((t=n).nodeType?u(e,n,r):d(e,n,r));return t=null,o}];l<i;l++)if(n=r.relative[e[l].type])f=[ye(be(f),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[w]){for(o=++l;o<i&&!r.relative[e[o].type];o++);return xe(l>1&&be(f),l>1&&ve(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(q,"$1"),n,l<o&&Ce(e.slice(l,o)),o<i&&Ce(e=e.slice(o)),o<i&&ve(e))}f.push(n)}return be(f)}function Se(e,t){var n=t.length>0,o=e.length>0,i=function(i,a,s,l,u){var d,h,m,v=0,y="0",b=i&&[],w=[],x=c,S=i||o&&r.find.TAG("*",u),T=C+=null==x?1:Math.random()||.1,k=S.length;for(u&&(c=a===p||a||u);y!==k&&null!=(d=S[y]);y++){if(o&&d){for(h=0,a||d.ownerDocument===p||(f(d),s=!g);m=e[h++];)if(m(d,a||p,s)){l.push(d);break}u&&(C=T)}n&&((d=!m&&d)&&v--,i&&b.push(d))}if(v+=y,n&&y!==v){for(h=0;m=t[h++];)m(b,w,a,s);if(i){if(v>0)for(;y--;)b[y]||w[y]||(w[y]=A.call(l));w=we(w)}I.apply(l,w),u&&!i&&w.length>0&&v+t.length>1&&ie.uniqueSort(l)}return u&&(C=T,c=x),b};return n?se(i):i}return me.prototype=r.filters=r.pseudos,r.setFilters=new me,a=ie.tokenize=function(e,t){var n,o,i,a,s,l,c,u=k[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=r.preFilter;s;){for(a in n&&!(o=H.exec(s))||(o&&(s=s.slice(o[0].length)||s),l.push(i=[])),n=!1,(o=U.exec(s))&&(n=o.shift(),i.push({value:n,type:o[0].replace(q," ")}),s=s.slice(n.length)),r.filter)!(o=X[a].exec(s))||c[a]&&!(o=c[a](o))||(n=o.shift(),i.push({value:n,type:a,matches:o}),s=s.slice(n.length));if(!n)break}return t?s.length:s?ie.error(e):k(e,l).slice(0)},s=ie.compile=function(e,t){var n,r=[],o=[],i=D[e+" "];if(!i){for(t||(t=a(e)),n=t.length;n--;)(i=Ce(t[n]))[w]?r.push(i):o.push(i);(i=D(e,Se(o,r))).selector=e}return i},l=ie.select=function(e,t,n,o){var i,l,c,u,d,f="function"==typeof e&&e,p=!o&&a(e=f.selector||e);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&g&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(J,ee),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(i=X.needsContext.test(e)?0:l.length;i--&&(c=l[i],!r.relative[u=c.type]);)if((d=r.find[u])&&(o=d(c.matches[0].replace(J,ee),Z.test(l[0].type)&&ge(t.parentNode)||t))){if(l.splice(i,1),!(e=o.length&&ve(l)))return I.apply(n,o),n;break}}return(f||s(e,p))(o,t,!g,n,!t||Z.test(e)&&ge(t.parentNode)||t),n},n.sortStable=w.split("").sort(_).join("")===w,n.detectDuplicates=!!d,f(),n.sortDetached=le(function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))}),le(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ce("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&le(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ce("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),le(function(e){return null==e.getAttribute("disabled")})||ce(N,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),ie}(e);v.find=S,v.expr=S.selectors,v.expr[":"]=v.expr.pseudos,v.uniqueSort=v.unique=S.uniqueSort,v.text=S.getText,v.isXMLDoc=S.isXML,v.contains=S.contains,v.escapeSelector=S.escape;var T=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&v(e).is(n))break;r.push(e)}return r},k=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},D=v.expr.match.needsContext,_=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,E=/^.[^:#\[\.,]*$/;function O(e,t,n){return v.isFunction(t)?v.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?v.grep(e,function(e){return e===t!==n}):"string"!=typeof t?v.grep(e,function(e){return l.call(t,e)>-1!==n}):E.test(t)?v.filter(t,e,n):(t=v.filter(t,e),v.grep(e,function(e){return l.call(t,e)>-1!==n&&1===e.nodeType}))}v.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?v.find.matchesSelector(r,e)?[r]:[]:v.find.matches(e,v.grep(t,function(e){return 1===e.nodeType}))},v.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(v(e).filter(function(){for(t=0;t<r;t++)if(v.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)v.find(e,o[t],n);return r>1?v.uniqueSort(n):n},filter:function(e){return this.pushStack(O(this,e||[],!1))},not:function(e){return this.pushStack(O(this,e||[],!0))},is:function(e){return!!O(this,"string"==typeof e&&D.test(e)?v(e):e||[],!1).length}});var A,$=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(v.fn.init=function(e,t,n){var o,i;if(!e)return this;if(n=n||A,"string"==typeof e){if(!(o="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:$.exec(e))||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof v?t[0]:t,v.merge(this,v.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:r,!0)),_.test(o[1])&&v.isPlainObject(t))for(o in t)v.isFunction(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return(i=r.getElementById(o[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v.isFunction(e)?void 0!==n.ready?n.ready(e):e(v):v.makeArray(e,this)}).prototype=v.fn,A=v(r);var I=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}v.fn.extend({has:function(e){var t=v(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(v.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,o=this.length,i=[],a="string"!=typeof e&&v(e);if(!D.test(e))for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&v.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?v.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?l.call(v(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(v.uniqueSort(v.merge(this.get(),v(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),v.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,n){return T(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,n){return T(e,"nextSibling",n)},prevUntil:function(e,t,n){return T(e,"previousSibling",n)},siblings:function(e){return k((e.parentNode||{}).firstChild,e)},children:function(e){return k(e.firstChild)},contents:function(e){return e.contentDocument||v.merge([],e.childNodes)}},function(e,t){v.fn[e]=function(n,r){var o=v.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=v.filter(r,o)),this.length>1&&(P[e]||v.uniqueSort(o),I.test(e)&&o.reverse()),this.pushStack(o)}});var N=/[^\x20\t\r\n\f]+/g;function L(e){return e}function j(e){throw e}function M(e,t,n){var r;try{e&&v.isFunction(r=e.promise)?r.call(e).done(t).fail(n):e&&v.isFunction(r=e.then)?r.call(e,t,n):t.call(void 0,e)}catch(e){n.call(void 0,e)}}v.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return v.each(e.match(N)||[],function(e,n){t[n]=!0}),t}(e):v.extend({},e);var t,n,r,o,i=[],a=[],s=-1,l=function(){for(o=e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<i.length;)!1===i[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=i.length,n=!1);e.memory||(n=!1),t=!1,o&&(i=n?[]:"")},c={add:function(){return i&&(n&&!t&&(s=i.length-1,a.push(n)),function t(n){v.each(n,function(n,r){v.isFunction(r)?e.unique&&c.has(r)||i.push(r):r&&r.length&&"string"!==v.type(r)&&t(r)})}(arguments),n&&!t&&l()),this},remove:function(){return v.each(arguments,function(e,t){for(var n;(n=v.inArray(t,i,n))>-1;)i.splice(n,1),n<=s&&s--}),this},has:function(e){return e?v.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=a=[],n||t||(i=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},v.extend({Deferred:function(t){var n=[["notify","progress",v.Callbacks("memory"),v.Callbacks("memory"),2],["resolve","done",v.Callbacks("once memory"),v.Callbacks("once memory"),0,"resolved"],["reject","fail",v.Callbacks("once memory"),v.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return v.Deferred(function(t){v.each(n,function(n,r){var o=v.isFunction(e[r[4]])&&e[r[4]];i[r[1]](function(){var e=o&&o.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,o?[e]:arguments)})}),e=null}).promise()},then:function(t,r,o){var i=0;function a(t,n,r,o){return function(){var s=this,l=arguments,c=function(){var e,c;if(!(t<i)){if((e=r.apply(s,l))===n.promise())throw new TypeError("Thenable self-resolution");c=e&&("object"==typeof e||"function"==typeof e)&&e.then,v.isFunction(c)?o?c.call(e,a(i,n,L,o),a(i,n,j,o)):(i++,c.call(e,a(i,n,L,o),a(i,n,j,o),a(i,n,L,n.notifyWith))):(r!==L&&(s=void 0,l=[e]),(o||n.resolveWith)(s,l))}},u=o?c:function(){try{c()}catch(e){v.Deferred.exceptionHook&&v.Deferred.exceptionHook(e,u.stackTrace),t+1>=i&&(r!==j&&(s=void 0,l=[e]),n.rejectWith(s,l))}};t?u():(v.Deferred.getStackHook&&(u.stackTrace=v.Deferred.getStackHook()),e.setTimeout(u))}}return v.Deferred(function(e){n[0][3].add(a(0,e,v.isFunction(o)?o:L,e.notifyWith)),n[1][3].add(a(0,e,v.isFunction(t)?t:L)),n[2][3].add(a(0,e,v.isFunction(r)?r:j))}).promise()},promise:function(e){return null!=e?v.extend(e,o):o}},i={};return v.each(n,function(e,t){var a=t[2],s=t[5];o[t[1]]=a.add,s&&a.add(function(){r=s},n[3-e][2].disable,n[0][2].lock),a.add(t[3].fire),i[t[0]]=function(){return i[t[0]+"With"](this===i?void 0:this,arguments),this},i[t[0]+"With"]=a.fireWith}),o.promise(i),t&&t.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),o=i.call(arguments),a=v.Deferred(),s=function(e){return function(n){r[e]=this,o[e]=arguments.length>1?i.call(arguments):n,--t||a.resolveWith(r,o)}};if(t<=1&&(M(e,a.done(s(n)).resolve,a.reject),"pending"===a.state()||v.isFunction(o[n]&&o[n].then)))return a.then();for(;n--;)M(o[n],s(n),a.reject);return a.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;v.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&F.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},v.readyException=function(t){e.setTimeout(function(){throw t})};var B=v.Deferred();function q(){r.removeEventListener("DOMContentLoaded",q),e.removeEventListener("load",q),v.ready()}v.fn.ready=function(e){return B.then(e).catch(function(e){v.readyException(e)}),this},v.extend({isReady:!1,readyWait:1,holdReady:function(e){e?v.readyWait++:v.ready(!0)},ready:function(e){(!0===e?--v.readyWait:v.isReady)||(v.isReady=!0,!0!==e&&--v.readyWait>0||B.resolveWith(r,[v]))}}),v.ready.then=B.then,"complete"===r.readyState||"loading"!==r.readyState&&!r.documentElement.doScroll?e.setTimeout(v.ready):(r.addEventListener("DOMContentLoaded",q),e.addEventListener("load",q));var H=function(e,t,n,r,o,i,a){var s=0,l=e.length,c=null==n;if("object"===v.type(n))for(s in o=!0,n)H(e,t,s,n[s],!0,i,a);else if(void 0!==r&&(o=!0,v.isFunction(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(v(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return o?e:c?t.call(e):l?t(e[0],n):i},U=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function W(){this.expando=v.expando+W.uid++}W.uid=1,W.prototype={cache:function(e){var t=e[this.expando];return t||(t={},U(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if("string"==typeof t)o[v.camelCase(t)]=n;else for(r in t)o[v.camelCase(r)]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][v.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){v.isArray(t)?t=t.map(v.camelCase):t=(t=v.camelCase(t))in r?[t]:t.match(N)||[],n=t.length;for(;n--;)delete r[t[n]]}(void 0===t||v.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!v.isEmptyObject(t)}};var z=new W,V=new W,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Y=/[A-Z]/g;function G(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(Y,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:X.test(e)?JSON.parse(e):e)}(n)}catch(e){}V.set(e,t,n)}else n=void 0;return n}v.extend({hasData:function(e){return V.hasData(e)||z.hasData(e)},data:function(e,t,n){return V.access(e,t,n)},removeData:function(e,t){V.remove(e,t)},_data:function(e,t,n){return z.access(e,t,n)},_removeData:function(e,t){z.remove(e,t)}}),v.fn.extend({data:function(e,t){var n,r,o,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(o=V.get(i),1===i.nodeType&&!z.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(0===(r=a[n].name).indexOf("data-")&&(r=v.camelCase(r.slice(5)),G(i,r,o[r])));z.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){V.set(this,e)}):H(this,function(t){var n;if(i&&void 0===t){if(void 0!==(n=V.get(i,e)))return n;if(void 0!==(n=G(i,e)))return n}else this.each(function(){V.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){V.remove(this,e)})}}),v.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=z.get(e,t),n&&(!r||v.isArray(n)?r=z.access(e,t,v.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=v.queue(e,t),r=n.length,o=n.shift(),i=v._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,function(){v.dequeue(e,t)},i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return z.get(e,n)||z.access(e,n,{empty:v.Callbacks("once memory").add(function(){z.remove(e,[t+"queue",n])})})}}),v.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?v.queue(this[0],e):void 0===t?this:this.each(function(){var n=v.queue(this,e,t);v._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&v.dequeue(this,e)})},dequeue:function(e){return this.each(function(){v.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=v.Deferred(),i=this,a=this.length,s=function(){--r||o.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=z.get(i[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),o.promise(t)}});var K=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Q=new RegExp("^(?:([+-])=|)("+K+")([a-z%]*)$","i"),Z=["Top","Right","Bottom","Left"],J=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&v.contains(e.ownerDocument,e)&&"none"===v.css(e,"display")},ee=function(e,t,n,r){var o,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];for(i in o=n.apply(e,r||[]),t)e.style[i]=a[i];return o};function te(e,t,n,r){var o,i=1,a=20,s=r?function(){return r.cur()}:function(){return v.css(e,t,"")},l=s(),c=n&&n[3]||(v.cssNumber[t]?"":"px"),u=(v.cssNumber[t]||"px"!==c&&+l)&&Q.exec(v.css(e,t));if(u&&u[3]!==c){c=c||u[3],n=n||[],u=+l||1;do{u/=i=i||".5",v.style(e,t,u+c)}while(i!==(i=s()/l)&&1!==i&&--a)}return n&&(u=+u||+l||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=o)),o}var ne={};function re(e){var t,n=e.ownerDocument,r=e.nodeName,o=ne[r];return o||(t=n.body.appendChild(n.createElement(r)),o=v.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),ne[r]=o,o)}function oe(e,t){for(var n,r,o=[],i=0,a=e.length;i<a;i++)(r=e[i]).style&&(n=r.style.display,t?("none"===n&&(o[i]=z.get(r,"display")||null,o[i]||(r.style.display="")),""===r.style.display&&J(r)&&(o[i]=re(r))):"none"!==n&&(o[i]="none",z.set(r,"display",n)));for(i=0;i<a;i++)null!=o[i]&&(e[i].style.display=o[i]);return e}v.fn.extend({show:function(){return oe(this,!0)},hide:function(){return oe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){J(this)?v(this).show():v(this).hide()})}});var ie=/^(?:checkbox|radio)$/i,ae=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,se=/^$|\/(?:java|ecma)script/i,le={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ce(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&v.nodeName(e,t)?v.merge([e],n):n}function ue(e,t){for(var n=0,r=e.length;n<r;n++)z.set(e[n],"globalEval",!t||z.get(t[n],"globalEval"))}le.optgroup=le.option,le.tbody=le.tfoot=le.colgroup=le.caption=le.thead,le.th=le.td;var de=/<|&#?\w+;/;function fe(e,t,n,r,o){for(var i,a,s,l,c,u,d=t.createDocumentFragment(),f=[],p=0,h=e.length;p<h;p++)if((i=e[p])||0===i)if("object"===v.type(i))v.merge(f,i.nodeType?[i]:i);else if(de.test(i)){for(a=a||d.appendChild(t.createElement("div")),s=(ae.exec(i)||["",""])[1].toLowerCase(),l=le[s]||le._default,a.innerHTML=l[1]+v.htmlPrefilter(i)+l[2],u=l[0];u--;)a=a.lastChild;v.merge(f,a.childNodes),(a=d.firstChild).textContent=""}else f.push(t.createTextNode(i));for(d.textContent="",p=0;i=f[p++];)if(r&&v.inArray(i,r)>-1)o&&o.push(i);else if(c=v.contains(i.ownerDocument,i),a=ce(d.appendChild(i),"script"),c&&ue(a),n)for(u=0;i=a[u++];)se.test(i.type||"")&&n.push(i);return d}!function(){var e=r.createDocumentFragment().appendChild(r.createElement("div")),t=r.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),h.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var pe=r.documentElement,he=/^key/,ge=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,me=/^([^.]*)(?:\.(.+)|)/;function ve(){return!0}function ye(){return!1}function be(){try{return r.activeElement}catch(e){}}function we(e,t,n,r,o,i){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)we(e,s,n,r,t[s],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=ye;else if(!o)return e;return 1===i&&(a=o,(o=function(e){return v().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=v.guid++)),e.each(function(){v.event.add(this,t,o,r,n)})}v.event={global:{},add:function(e,t,n,r,o){var i,a,s,l,c,u,d,f,p,h,g,m=z.get(e);if(m)for(n.handler&&(n=(i=n).handler,o=i.selector),o&&v.find.matchesSelector(pe,o),n.guid||(n.guid=v.guid++),(l=m.events)||(l=m.events={}),(a=m.handle)||(a=m.handle=function(t){return void 0!==v&&v.event.triggered!==t.type?v.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(N)||[""]).length;c--;)p=g=(s=me.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p&&(d=v.event.special[p]||{},p=(o?d.delegateType:d.bindType)||p,d=v.event.special[p]||{},u=v.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&v.expr.match.needsContext.test(o),namespace:h.join(".")},i),(f=l[p])||((f=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(p,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,u):f.push(u),v.event.global[p]=!0)},remove:function(e,t,n,r,o){var i,a,s,l,c,u,d,f,p,h,g,m=z.hasData(e)&&z.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(N)||[""]).length;c--;)if(p=g=(s=me.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=v.event.special[p]||{},f=l[p=(r?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=f.length;i--;)u=f[i],!o&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(f.splice(i,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(e,u));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,m.handle)||v.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)v.event.remove(e,p+t[c],n,r,!0);v.isEmptyObject(l)&&z.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,a,s=v.event.fix(e),l=new Array(arguments.length),c=(z.get(this,"events")||{})[s.type]||[],u=v.event.special[s.type]||{};for(l[0]=s,t=1;t<arguments.length;t++)l[t]=arguments[t];if(s.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,s)){for(a=v.event.handlers.call(this,s,c),t=0;(o=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(i.namespace)||(s.handleObj=i,s.data=i.data,void 0!==(r=((v.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,l))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,o,i,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(i=[],a={},n=0;n<l;n++)void 0===a[o=(r=t[n]).selector+" "]&&(a[o]=r.needsContext?v(o,this).index(c)>-1:v.find(o,this,null,[c]).length),a[o]&&i.push(r);i.length&&s.push({elem:c,handlers:i})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(v.Event.prototype,e,{enumerable:!0,configurable:!0,get:v.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[v.expando]?e:new v.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==be()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===be()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&v.nodeName(this,"input"))return this.click(),!1},_default:function(e){return v.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},v.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},v.Event=function(e,t){return this instanceof v.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ve:ye,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&&v.extend(this,t),this.timeStamp=e&&e.timeStamp||v.now(),void(this[v.expando]=!0)):new v.Event(e,t)},v.Event.prototype={constructor:v.Event,isDefaultPrevented:ye,isPropagationStopped:ye,isImmediatePropagationStopped:ye,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ve,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ve,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ve,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},v.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,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:function(e){var t=e.button;return null==e.which&&he.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&ge.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},v.event.addProp),v.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){v.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,o=e.handleObj;return r&&(r===this||v.contains(this,r))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),v.fn.extend({on:function(e,t,n,r){return we(this,e,t,n,r)},one:function(e,t,n,r){return we(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,v(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=ye),this.each(function(){v.event.remove(this,e,n,t)})}});var xe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ce=/<script|<style|<link/i,Se=/checked\s*(?:[^=]|=\s*.checked.)/i,Te=/^true\/(.*)/,ke=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function De(e,t){return v.nodeName(e,"table")&&v.nodeName(11!==t.nodeType?t:t.firstChild,"tr")&&e.getElementsByTagName("tbody")[0]||e}function _e(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ee(e){var t=Te.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Oe(e,t){var n,r,o,i,a,s,l,c;if(1===t.nodeType){if(z.hasData(e)&&(i=z.access(e),a=z.set(t,i),c=i.events))for(o in delete a.handle,a.events={},c)for(n=0,r=c[o].length;n<r;n++)v.event.add(t,o,c[o][n]);V.hasData(e)&&(s=V.access(e),l=v.extend({},s),V.set(t,l))}}function Ae(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ie.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function $e(e,t,n,r){t=a.apply([],t);var o,i,s,l,c,u,d=0,f=e.length,p=f-1,m=t[0],y=v.isFunction(m);if(y||f>1&&"string"==typeof m&&!h.checkClone&&Se.test(m))return e.each(function(o){var i=e.eq(o);y&&(t[0]=m.call(this,o,i.html())),$e(i,t,n,r)});if(f&&(i=(o=fe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=i),i||r)){for(l=(s=v.map(ce(o,"script"),_e)).length;d<f;d++)c=o,d!==p&&(c=v.clone(c,!0,!0),l&&v.merge(s,ce(c,"script"))),n.call(e[d],c,d);if(l)for(u=s[s.length-1].ownerDocument,v.map(s,Ee),d=0;d<l;d++)c=s[d],se.test(c.type||"")&&!z.access(c,"globalEval")&&v.contains(u,c)&&(c.src?v._evalUrl&&v._evalUrl(c.src):g(c.textContent.replace(ke,""),u))}return e}function Ie(e,t,n){for(var r,o=t?v.filter(t,e):e,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||v.cleanData(ce(r)),r.parentNode&&(n&&v.contains(r.ownerDocument,r)&&ue(ce(r,"script")),r.parentNode.removeChild(r));return e}v.extend({htmlPrefilter:function(e){return e.replace(xe,"<$1></$2>")},clone:function(e,t,n){var r,o,i,a,s=e.cloneNode(!0),l=v.contains(e.ownerDocument,e);if(!(h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||v.isXMLDoc(e)))for(a=ce(s),r=0,o=(i=ce(e)).length;r<o;r++)Ae(i[r],a[r]);if(t)if(n)for(i=i||ce(e),a=a||ce(s),r=0,o=i.length;r<o;r++)Oe(i[r],a[r]);else Oe(e,s);return(a=ce(s,"script")).length>0&&ue(a,!l&&ce(e,"script")),s},cleanData:function(e){for(var t,n,r,o=v.event.special,i=0;void 0!==(n=e[i]);i++)if(U(n)){if(t=n[z.expando]){if(t.events)for(r in t.events)o[r]?v.event.remove(n,r):v.removeEvent(n,r,t.handle);n[z.expando]=void 0}n[V.expando]&&(n[V.expando]=void 0)}}}),v.fn.extend({detach:function(e){return Ie(this,e,!0)},remove:function(e){return Ie(this,e)},text:function(e){return H(this,function(e){return void 0===e?v.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 $e(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||De(this,e).appendChild(e)})},prepend:function(){return $e(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=De(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return $e(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&&(v.cleanData(ce(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return v.clone(this,e,t)})},html:function(e){return H(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ce.test(e)&&!le[(ae.exec(e)||["",""])[1].toLowerCase()]){e=v.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(v.cleanData(ce(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return $e(this,arguments,function(t){var n=this.parentNode;v.inArray(this,e)<0&&(v.cleanData(ce(this)),n&&n.replaceChild(t,this))},e)}}),v.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){v.fn[e]=function(e){for(var n,r=[],o=v(e),i=o.length-1,a=0;a<=i;a++)n=a===i?this:this.clone(!0),v(o[a])[t](n),s.apply(r,n.get());return this.pushStack(r)}});var Pe=/^margin/,Re=new RegExp("^("+K+")(?!px)[a-z%]+$","i"),Ne=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)};function Le(e,t,n){var r,o,i,a,s=e.style;return(n=n||Ne(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||v.contains(e.ownerDocument,e)||(a=v.style(e,t)),!h.pixelMarginRight()&&Re.test(a)&&Pe.test(t)&&(r=s.width,o=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=o,s.maxWidth=i)),void 0!==a?a+"":a}function je(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}!function(){function t(){if(l){l.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",l.innerHTML="",pe.appendChild(s);var t=e.getComputedStyle(l);n="1%"!==t.top,a="2px"===t.marginLeft,o="4px"===t.width,l.style.marginRight="50%",i="4px"===t.marginRight,pe.removeChild(s),l=null}}var n,o,i,a,s=r.createElement("div"),l=r.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===l.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(l),v.extend(h,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return t(),o},pixelMarginRight:function(){return t(),i},reliableMarginLeft:function(){return t(),a}}))}();var Me=/^(none|table(?!-c[ea]).+)/,Fe={position:"absolute",visibility:"hidden",display:"block"},Be={letterSpacing:"0",fontWeight:"400"},qe=["Webkit","Moz","ms"],He=r.createElement("div").style;function Ue(e){if(e in He)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=qe.length;n--;)if((e=qe[n]+t)in He)return e}function We(e,t,n){var r=Q.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function ze(e,t,n,r,o){var i,a=0;for(i=n===(r?"border":"content")?4:"width"===t?1:0;i<4;i+=2)"margin"===n&&(a+=v.css(e,n+Z[i],!0,o)),r?("content"===n&&(a-=v.css(e,"padding"+Z[i],!0,o)),"margin"!==n&&(a-=v.css(e,"border"+Z[i]+"Width",!0,o))):(a+=v.css(e,"padding"+Z[i],!0,o),"padding"!==n&&(a+=v.css(e,"border"+Z[i]+"Width",!0,o)));return a}function Ve(e,t,n){var r,o=!0,i=Ne(e),a="border-box"===v.css(e,"boxSizing",!1,i);if(e.getClientRects().length&&(r=e.getBoundingClientRect()[t]),r<=0||null==r){if(((r=Le(e,t,i))<0||null==r)&&(r=e.style[t]),Re.test(r))return r;o=a&&(h.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+ze(e,t,n||(a?"border":"content"),o,i)+"px"}function Xe(e,t,n,r,o){return new Xe.prototype.init(e,t,n,r,o)}v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Le(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,a,s=v.camelCase(t),l=e.style;return t=v.cssProps[s]||(v.cssProps[s]=Ue(s)||s),a=v.cssHooks[t]||v.cssHooks[s],void 0===n?a&&"get"in a&&void 0!==(o=a.get(e,!1,r))?o:l[t]:("string"===(i=typeof n)&&(o=Q.exec(n))&&o[1]&&(n=te(e,t,o),i="number"),void(null!=n&&n==n&&("number"===i&&(n+=o&&o[3]||(v.cssNumber[s]?"":"px")),h.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l[t]=n))))}},css:function(e,t,n,r){var o,i,a,s=v.camelCase(t);return t=v.cssProps[s]||(v.cssProps[s]=Ue(s)||s),(a=v.cssHooks[t]||v.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=Le(e,t,r)),"normal"===o&&t in Be&&(o=Be[t]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),v.each(["height","width"],function(e,t){v.cssHooks[t]={get:function(e,n,r){if(n)return!Me.test(v.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ve(e,t,r):ee(e,Fe,function(){return Ve(e,t,r)})},set:function(e,n,r){var o,i=r&&Ne(e),a=r&&ze(e,t,r,"border-box"===v.css(e,"boxSizing",!1,i),i);return a&&(o=Q.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=v.css(e,t)),We(0,n,a)}}}),v.cssHooks.marginLeft=je(h.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Le(e,"marginLeft"))||e.getBoundingClientRect().left-ee(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),v.each({margin:"",padding:"",border:"Width"},function(e,t){v.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];r<4;r++)o[e+Z[r]+t]=i[r]||i[r-2]||i[0];return o}},Pe.test(e)||(v.cssHooks[e+t].set=We)}),v.fn.extend({css:function(e,t){return H(this,function(e,t,n){var r,o,i={},a=0;if(v.isArray(t)){for(r=Ne(e),o=t.length;a<o;a++)i[t[a]]=v.css(e,t[a],!1,r);return i}return void 0!==n?v.style(e,t,n):v.css(e,t)},e,t,arguments.length>1)}}),v.Tween=Xe,Xe.prototype={constructor:Xe,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||v.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(v.cssNumber[n]?"":"px")},cur:function(){var e=Xe.propHooks[this.prop];return e&&e.get?e.get(this):Xe.propHooks._default.get(this)},run:function(e){var t,n=Xe.propHooks[this.prop];return this.options.duration?this.pos=t=v.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Xe.propHooks._default.set(this),this}},Xe.prototype.init.prototype=Xe.prototype,Xe.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=v.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){v.fx.step[e.prop]?v.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[v.cssProps[e.prop]]&&!v.cssHooks[e.prop]?e.elem[e.prop]=e.now:v.style(e.elem,e.prop,e.now+e.unit)}}},Xe.propHooks.scrollTop=Xe.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},v.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},v.fx=Xe.prototype.init,v.fx.step={};var Ye,Ge,Ke=/^(?:toggle|show|hide)$/,Qe=/queueHooks$/;function Ze(){Ge&&(e.requestAnimationFrame(Ze),v.fx.tick())}function Je(){return e.setTimeout(function(){Ye=void 0}),Ye=v.now()}function et(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(n=Z[r])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function tt(e,t,n){for(var r,o=(nt.tweeners[t]||[]).concat(nt.tweeners["*"]),i=0,a=o.length;i<a;i++)if(r=o[i].call(n,t,e))return r}function nt(e,t,n){var r,o,i=0,a=nt.prefilters.length,s=v.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var t=Ye||Je(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),i=0,a=c.tweens.length;i<a;i++)c.tweens[i].run(r);return s.notifyWith(e,[c,r,n]),r<1&&a?n:(s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:v.extend({},t),opts:v.extend(!0,{specialEasing:{},easing:v.easing._default},n),originalProperties:t,originalOptions:n,startTime:Ye||Je(),duration:n.duration,tweens:[],createTween:function(t,n){var r=v.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var n,r,o,i,a;for(n in e)if(o=t[r=v.camelCase(n)],i=e[n],v.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(a=v.cssHooks[r])&&"expand"in a)for(n in i=a.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=o);else t[r]=o}(u,c.opts.specialEasing);i<a;i++)if(r=nt.prefilters[i].call(c,e,u,c.opts))return v.isFunction(r.stop)&&(v._queueHooks(c.elem,c.opts.queue).stop=v.proxy(r.stop,r)),r;return v.map(u,tt,c),v.isFunction(c.opts.start)&&c.opts.start.call(e,c),v.fx.timer(v.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}v.Animation=v.extend(nt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return te(n.elem,e,Q.exec(t),n),n}]},tweener:function(e,t){v.isFunction(e)?(t=e,e=["*"]):e=e.match(N);for(var n,r=0,o=e.length;r<o;r++)n=e[r],nt.tweeners[n]=nt.tweeners[n]||[],nt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,o,i,a,s,l,c,u,d="width"in t||"height"in t,f=this,p={},h=e.style,g=e.nodeType&&J(e),m=z.get(e,"fxshow");for(r in n.queue||(null==(a=v._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,f.always(function(){f.always(function(){a.unqueued--,v.queue(e,"fx").length||a.empty.fire()})})),t)if(o=t[r],Ke.test(o)){if(delete t[r],i=i||"toggle"===o,o===(g?"hide":"show")){if("show"!==o||!m||void 0===m[r])continue;g=!0}p[r]=m&&m[r]||v.style(e,r)}if((l=!v.isEmptyObject(t))||!v.isEmptyObject(p))for(r in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(c=m&&m.display)&&(c=z.get(e,"display")),"none"===(u=v.css(e,"display"))&&(c?u=c:(oe([e],!0),c=e.style.display||c,u=v.css(e,"display"),oe([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===v.css(e,"float")&&(l||(f.done(function(){h.display=c}),null==c&&(u=h.display,c="none"===u?"":u)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",f.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=z.access(e,"fxshow",{display:c}),i&&(m.hidden=!g),g&&oe([e],!0),f.done(function(){for(r in g||oe([e]),z.remove(e,"fxshow"),p)v.style(e,r,p[r])})),l=tt(g?m[r]:0,r,f),r in m||(m[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?nt.prefilters.unshift(e):nt.prefilters.push(e)}}),v.speed=function(e,t,n){var o=e&&"object"==typeof e?v.extend({},e):{complete:n||!n&&t||v.isFunction(e)&&e,duration:e,easing:n&&t||t&&!v.isFunction(t)&&t};return v.fx.off||r.hidden?o.duration=0:"number"!=typeof o.duration&&(o.duration in v.fx.speeds?o.duration=v.fx.speeds[o.duration]:o.duration=v.fx.speeds._default),null!=o.queue&&!0!==o.queue||(o.queue="fx"),o.old=o.complete,o.complete=function(){v.isFunction(o.old)&&o.old.call(this),o.queue&&v.dequeue(this,o.queue)},o},v.fn.extend({fadeTo:function(e,t,n,r){return this.filter(J).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=v.isEmptyObject(e),i=v.speed(t,n,r),a=function(){var t=nt(this,v.extend({},e),i);(o||z.get(this,"finish"))&&t.stop(!0)};return a.finish=a,o||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",i=v.timers,a=z.get(this);if(o)a[o]&&a[o].stop&&r(a[o]);else for(o in a)a[o]&&a[o].stop&&Qe.test(o)&&r(a[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(n),t=!1,i.splice(o,1));!t&&n||v.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=z.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],i=v.timers,a=r?r.length:0;for(n.finish=!0,v.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),v.each(["toggle","show","hide"],function(e,t){var n=v.fn[t];v.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(et(t,!0),e,r,o)}}),v.each({slideDown:et("show"),slideUp:et("hide"),slideToggle:et("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){v.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),v.timers=[],v.fx.tick=function(){var e,t=0,n=v.timers;for(Ye=v.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||v.fx.stop(),Ye=void 0},v.fx.timer=function(e){v.timers.push(e),e()?v.fx.start():v.timers.pop()},v.fx.interval=13,v.fx.start=function(){Ge||(Ge=e.requestAnimationFrame?e.requestAnimationFrame(Ze):e.setInterval(v.fx.tick,v.fx.interval))},v.fx.stop=function(){e.cancelAnimationFrame?e.cancelAnimationFrame(Ge):e.clearInterval(Ge),Ge=null},v.fx.speeds={slow:600,fast:200,_default:400},v.fn.delay=function(t,n){return t=v.fx&&v.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,r){var o=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(o)}})},function(){var e=r.createElement("input"),t=r.createElement("select").appendChild(r.createElement("option"));e.type="checkbox",h.checkOn=""!==e.value,h.optSelected=t.selected,(e=r.createElement("input")).value="t",e.type="radio",h.radioValue="t"===e.value}();var rt,ot=v.expr.attrHandle;v.fn.extend({attr:function(e,t){return H(this,v.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){v.removeAttr(this,e)})}}),v.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?v.prop(e,t,n):(1===i&&v.isXMLDoc(e)||(o=v.attrHooks[t.toLowerCase()]||(v.expr.match.bool.test(t)?rt:void 0)),void 0!==n?null===n?void v.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:null==(r=v.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&v.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(N);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),rt={set:function(e,t,n){return!1===t?v.removeAttr(e,n):e.setAttribute(n,n),n}},v.each(v.expr.match.bool.source.match(/\w+/g),function(e,t){var n=ot[t]||v.find.attr;ot[t]=function(e,t,r){var o,i,a=t.toLowerCase();return r||(i=ot[a],ot[a]=o,o=null!=n(e,t,r)?a:null,ot[a]=i),o}});var it=/^(?:input|select|textarea|button)$/i,at=/^(?:a|area)$/i;function st(e){return(e.match(N)||[]).join(" ")}function lt(e){return e.getAttribute&&e.getAttribute("class")||""}v.fn.extend({prop:function(e,t){return H(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[v.propFix[e]||e]})}}),v.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&v.isXMLDoc(e)||(t=v.propFix[t]||t,o=v.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=v.find.attr(e,"tabindex");return t?parseInt(t,10):it.test(e.nodeName)||at.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(v.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),v.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){v.propFix[this.toLowerCase()]=this}),v.fn.extend({addClass:function(e){var t,n,r,o,i,a,s,l=0;if(v.isFunction(e))return this.each(function(t){v(this).addClass(e.call(this,t,lt(this)))});if("string"==typeof e&&e)for(t=e.match(N)||[];n=this[l++];)if(o=lt(n),r=1===n.nodeType&&" "+st(o)+" "){for(a=0;i=t[a++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");o!==(s=st(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,o,i,a,s,l=0;if(v.isFunction(e))return this.each(function(t){v(this).removeClass(e.call(this,t,lt(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(N)||[];n=this[l++];)if(o=lt(n),r=1===n.nodeType&&" "+st(o)+" "){for(a=0;i=t[a++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");o!==(s=st(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):v.isFunction(e)?this.each(function(n){v(this).toggleClass(e.call(this,n,lt(this),t),t)}):this.each(function(){var t,r,o,i;if("string"===n)for(r=0,o=v(this),i=e.match(N)||[];t=i[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=lt(this))&&z.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":z.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+st(lt(n))+" ").indexOf(t)>-1)return!0;return!1}});var ct=/\r/g;v.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=v.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(null==(o=r?e.call(this,n,v(this).val()):e)?o="":"number"==typeof o?o+="":v.isArray(o)&&(o=v.map(o,function(e){return null==e?"":e+""})),(t=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})):o?(t=v.valHooks[o.type]||v.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(ct,""):null==n?"":n:void 0}}),v.extend({valHooks:{option:{get:function(e){var t=v.find.attr(e,"value");return null!=t?t:st(v.text(e))}},select:{get:function(e){var t,n,r,o=e.options,i=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?i+1:o.length;for(r=i<0?l:a?i:0;r<l;r++)if(((n=o[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!v.nodeName(n.parentNode,"optgroup"))){if(t=v(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,o=e.options,i=v.makeArray(t),a=o.length;a--;)((r=o[a]).selected=v.inArray(v.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),v.each(["radio","checkbox"],function(){v.valHooks[this]={set:function(e,t){if(v.isArray(t))return e.checked=v.inArray(v(e).val(),t)>-1}},h.checkOn||(v.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var ut=/^(?:focusinfocus|focusoutblur)$/;v.extend(v.event,{trigger:function(t,n,o,i){var a,s,l,c,u,f,p,h=[o||r],g=d.call(t,"type")?t.type:t,m=d.call(t,"namespace")?t.namespace.split("."):[];if(s=l=o=o||r,3!==o.nodeType&&8!==o.nodeType&&!ut.test(g+v.event.triggered)&&(g.indexOf(".")>-1&&(g=(m=g.split(".")).shift(),m.sort()),u=g.indexOf(":")<0&&"on"+g,(t=t[v.expando]?t:new v.Event(g,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),n=null==n?[t]:v.makeArray(n,[t]),p=v.event.special[g]||{},i||!p.trigger||!1!==p.trigger.apply(o,n))){if(!i&&!p.noBubble&&!v.isWindow(o)){for(c=p.delegateType||g,ut.test(c+g)||(s=s.parentNode);s;s=s.parentNode)h.push(s),l=s;l===(o.ownerDocument||r)&&h.push(l.defaultView||l.parentWindow||e)}for(a=0;(s=h[a++])&&!t.isPropagationStopped();)t.type=a>1?c:p.bindType||g,(f=(z.get(s,"events")||{})[t.type]&&z.get(s,"handle"))&&f.apply(s,n),(f=u&&s[u])&&f.apply&&U(s)&&(t.result=f.apply(s,n),!1===t.result&&t.preventDefault());return t.type=g,i||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(h.pop(),n)||!U(o)||u&&v.isFunction(o[g])&&!v.isWindow(o)&&((l=o[u])&&(o[u]=null),v.event.triggered=g,o[g](),v.event.triggered=void 0,l&&(o[u]=l)),t.result}},simulate:function(e,t,n){var r=v.extend(new v.Event,n,{type:e,isSimulated:!0});v.event.trigger(r,null,t)}}),v.fn.extend({trigger:function(e,t){return this.each(function(){v.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return v.event.trigger(e,t,n,!0)}}),v.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,t){v.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),v.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),h.focusin="onfocusin"in e,h.focusin||v.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){v.event.simulate(t,e.target,v.event.fix(e))};v.event.special[t]={setup:function(){var r=this.ownerDocument||this,o=z.access(r,t);o||r.addEventListener(e,n,!0),z.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this,o=z.access(r,t)-1;o?z.access(r,t,o):(r.removeEventListener(e,n,!0),z.remove(r,t))}}});var dt=e.location,ft=v.now(),pt=/\?/;v.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||v.error("Invalid XML: "+t),n};var ht=/\[\]$/,gt=/\r?\n/g,mt=/^(?:submit|button|image|reset|file)$/i,vt=/^(?:input|select|textarea|keygen)/i;function yt(e,t,n,r){var o;if(v.isArray(t))v.each(t,function(t,o){n||ht.test(e)?r(e,o):yt(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,r)});else if(n||"object"!==v.type(t))r(e,t);else for(o in t)yt(e+"["+o+"]",t[o],n,r)}v.param=function(e,t){var n,r=[],o=function(e,t){var n=v.isFunction(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(v.isArray(e)||e.jquery&&!v.isPlainObject(e))v.each(e,function(){o(this.name,this.value)});else for(n in e)yt(n,e[n],t,o);return r.join("&")},v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=v.prop(this,"elements");return e?v.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!v(this).is(":disabled")&&vt.test(this.nodeName)&&!mt.test(e)&&(this.checked||!ie.test(e))}).map(function(e,t){var n=v(this).val();return null==n?null:v.isArray(n)?v.map(n,function(e){return{name:t.name,value:e.replace(gt,"\r\n")}}):{name:t.name,value:n.replace(gt,"\r\n")}}).get()}});var bt=/%20/g,wt=/#.*$/,xt=/([?&])_=[^&]*/,Ct=/^(.*?):[ \t]*([^\r\n]*)$/gm,St=/^(?:GET|HEAD)$/,Tt=/^\/\//,kt={},Dt={},_t="*/".concat("*"),Et=r.createElement("a");function Ot(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(N)||[];if(v.isFunction(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function At(e,t,n,r){var o={},i=e===Dt;function a(s){var l;return o[s]=!0,v.each(e[s]||[],function(e,s){var c=s(t,n,r);return"string"!=typeof c||i||o[c]?i?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)}),l}return a(t.dataTypes[0])||!o["*"]&&a("*")}function $t(e,t){var n,r,o=v.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&v.extend(!0,e,r),e}Et.href=dt.href,v.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:dt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(dt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":_t,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":v.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?$t($t(e,v.ajaxSettings),t):$t(v.ajaxSettings,e)},ajaxPrefilter:Ot(kt),ajaxTransport:Ot(Dt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var o,i,a,s,l,c,u,d,f,p,h=v.ajaxSetup({},n),g=h.context||h,m=h.context&&(g.nodeType||g.jquery)?v(g):v.event,y=v.Deferred(),b=v.Callbacks("once memory"),w=h.statusCode||{},x={},C={},S="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(u){if(!s)for(s={};t=Ct.exec(a);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return u?a:null},setRequestHeader:function(e,t){return null==u&&(e=C[e.toLowerCase()]=C[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==u&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||S;return o&&o.abort(t),k(0,t),this}};if(y.promise(T),h.url=((t||h.url||dt.href)+"").replace(Tt,dt.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(N)||[""],null==h.crossDomain){c=r.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=Et.protocol+"//"+Et.host!=c.protocol+"//"+c.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=v.param(h.data,h.traditional)),At(kt,h,n,T),u)return T;for(f in(d=v.event&&h.global)&&0==v.active++&&v.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!St.test(h.type),i=h.url.replace(wt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(bt,"+")):(p=h.url.slice(i.length),h.data&&(i+=(pt.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(xt,"$1"),p=(pt.test(i)?"&":"?")+"_="+ft+++p),h.url=i+p),h.ifModified&&(v.lastModified[i]&&T.setRequestHeader("If-Modified-Since",v.lastModified[i]),v.etag[i]&&T.setRequestHeader("If-None-Match",v.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&T.setRequestHeader("Content-Type",h.contentType),T.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+_t+"; q=0.01":""):h.accepts["*"]),h.headers)T.setRequestHeader(f,h.headers[f]);if(h.beforeSend&&(!1===h.beforeSend.call(g,T,h)||u))return T.abort();if(S="abort",b.add(h.complete),T.done(h.success),T.fail(h.error),o=At(Dt,h,n,T)){if(T.readyState=1,d&&m.trigger("ajaxSend",[T,h]),u)return T;h.async&&h.timeout>0&&(l=e.setTimeout(function(){T.abort("timeout")},h.timeout));try{u=!1,o.send(x,k)}catch(e){if(u)throw e;k(-1,e)}}else k(-1,"No Transport");function k(t,n,r,s){var c,f,p,x,C,S=n;u||(u=!0,l&&e.clearTimeout(l),o=void 0,a=s||"",T.readyState=t>0?4:0,c=t>=200&&t<300||304===t,r&&(x=function(e,t,n){for(var r,o,i,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){l.unshift(o);break}if(l[0]in n)i=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==l[0]&&l.unshift(i),n[i]}(h,T,r)),x=function(e,t,n,r){var o,i,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(i=u.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=u.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(a=c[l+" "+i]||c["* "+i]))for(o in c)if((s=o.split(" "))[1]===i&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[o]:!0!==c[o]&&(i=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}}(h,x,T,c),c?(h.ifModified&&((C=T.getResponseHeader("Last-Modified"))&&(v.lastModified[i]=C),(C=T.getResponseHeader("etag"))&&(v.etag[i]=C)),204===t||"HEAD"===h.type?S="nocontent":304===t?S="notmodified":(S=x.state,f=x.data,c=!(p=x.error))):(p=S,!t&&S||(S="error",t<0&&(t=0))),T.status=t,T.statusText=(n||S)+"",c?y.resolveWith(g,[f,S,T]):y.rejectWith(g,[T,S,p]),T.statusCode(w),w=void 0,d&&m.trigger(c?"ajaxSuccess":"ajaxError",[T,h,c?f:p]),b.fireWith(g,[T,S]),d&&(m.trigger("ajaxComplete",[T,h]),--v.active||v.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return v.get(e,t,n,"json")},getScript:function(e,t){return v.get(e,void 0,t,"script")}}),v.each(["get","post"],function(e,t){v[t]=function(e,n,r,o){return v.isFunction(n)&&(o=o||r,r=n,n=void 0),v.ajax(v.extend({url:e,type:t,dataType:o,data:n,success:r},v.isPlainObject(e)&&e))}}),v._evalUrl=function(e){return v.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},v.fn.extend({wrapAll:function(e){var t;return this[0]&&(v.isFunction(e)&&(e=e.call(this[0])),t=v(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return v.isFunction(e)?this.each(function(t){v(this).wrapInner(e.call(this,t))}):this.each(function(){var t=v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v.isFunction(e);return this.each(function(n){v(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){v(this).replaceWith(this.childNodes)}),this}}),v.expr.pseudos.hidden=function(e){return!v.expr.pseudos.visible(e)},v.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},v.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var It={0:200,1223:204},Pt=v.ajaxSettings.xhr();h.cors=!!Pt&&"withCredentials"in Pt,h.ajax=Pt=!!Pt,v.ajaxTransport(function(t){var n,r;if(h.cors||Pt&&!t.crossDomain)return{send:function(o,i){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(a,o[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(It[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),v.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),v.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 v.globalEval(e),e}}}),v.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),v.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(o,i){t=v("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),r.head.appendChild(t[0])},abort:function(){n&&n()}}});var Rt=[],Nt=/(=)\?(?=&|$)|\?\?/;function Lt(e){return v.isWindow(e)?e:9===e.nodeType&&e.defaultView}v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Rt.pop()||v.expando+"_"+ft++;return this[e]=!0,e}}),v.ajaxPrefilter("json jsonp",function(t,n,r){var o,i,a,s=!1!==t.jsonp&&(Nt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Nt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=v.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Nt,"$1"+o):!1!==t.jsonp&&(t.url+=(pt.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return a||v.error(o+" was not called"),a[0]},t.dataTypes[0]="json",i=e[o],e[o]=function(){a=arguments},r.always(function(){void 0===i?v(e).removeProp(o):e[o]=i,t[o]&&(t.jsonpCallback=n.jsonpCallback,Rt.push(o)),a&&v.isFunction(i)&&i(a[0]),a=i=void 0}),"script"}),h.createHTMLDocument=function(){var e=r.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),v.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(h.createHTMLDocument?((o=(t=r.implementation.createHTMLDocument("")).createElement("base")).href=r.location.href,t.head.appendChild(o)):t=r),i=_.exec(e),a=!n&&[],i?[t.createElement(i[1])]:(i=fe([e],t,a),a&&a.length&&v(a).remove(),v.merge([],i.childNodes)));var o,i,a},v.fn.load=function(e,t,n){var r,o,i,a=this,s=e.indexOf(" ");return s>-1&&(r=st(e.slice(s)),e=e.slice(0,s)),v.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&v.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){i=arguments,a.html(r?v("<div>").append(v.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},v.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){v.fn[t]=function(e){return this.on(t,e)}}),v.expr.pseudos.animated=function(e){return v.grep(v.timers,function(t){return e===t.elem}).length},v.offset={setOffset:function(e,t,n){var r,o,i,a,s,l,c=v.css(e,"position"),u=v(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),i=v.css(e,"top"),l=v.css(e,"left"),("absolute"===c||"fixed"===c)&&(i+l).indexOf("auto")>-1?(a=(r=u.position()).top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(l)||0),v.isFunction(t)&&(t=t.call(e,n,v.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+o),"using"in t?t.using.call(e,d):u.css(d)}},v.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){v.offset.setOffset(this,e,t)});var t,n,r,o,i=this[0];return i?i.getClientRects().length?(r=i.getBoundingClientRect()).width||r.height?(n=Lt(o=i.ownerDocument),t=o.documentElement,{top:r.top+n.pageYOffset-t.clientTop,left:r.left+n.pageXOffset-t.clientLeft}):r:{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===v.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),v.nodeName(e[0],"html")||(r=e.offset()),r={top:r.top+v.css(e[0],"borderTopWidth",!0),left:r.left+v.css(e[0],"borderLeftWidth",!0)}),{top:t.top-r.top-v.css(n,"marginTop",!0),left:t.left-r.left-v.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===v.css(e,"position");)e=e.offsetParent;return e||pe})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;v.fn[e]=function(r){return H(this,function(e,r,o){var i=Lt(e);return void 0===o?i?i[t]:e[r]:void(i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o)},e,r,arguments.length)}}),v.each(["top","left"],function(e,t){v.cssHooks[t]=je(h.pixelPosition,function(e,n){if(n)return n=Le(e,t),Re.test(n)?v(e).position()[t]+"px":n})}),v.each({Height:"height",Width:"width"},function(e,t){v.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){v.fn[r]=function(o,i){var a=arguments.length&&(n||"boolean"!=typeof o),s=n||(!0===o||!0===i?"margin":"border");return H(this,function(t,n,o){var i;return v.isWindow(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===o?v.css(t,n,s):v.style(t,n,o,s)},t,a?o:void 0,a)}})}),v.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),v.parseJSON=JSON.parse,"function"==typeof define&&define.amd&&define("jquery",[],function(){return v});var jt=e.jQuery,Mt=e.$;return v.noConflict=function(t){return e.$===v&&(e.$=Mt),t&&e.jQuery===v&&(e.jQuery=jt),v},t||(e.jQuery=e.$=v),v}),define("app/init",["jquery"],e=>{"use strict";return{path:{img:"/public/img/",getCaptcha:"/api/user/getCaptcha",getServerStatus:"/api/user/getEveServerStatus",getCookieCharacterData:"/api/user/getCookieCharacter",logIn:"/api/user/logIn",logout:"/api/user/logout",deleteLog:"/api/user/deleteLog",openIngameWindow:"/api/user/openIngameWindow",saveUserConfig:"/api/user/saveAccount",deleteAccount:"/api/user/deleteAccount",searchAccess:"/api/access/search",initData:"/api/map/initData",getAccessData:"/api/map/getAccessData",updateMapData:"/api/map/updateData",updateUserData:"/api/map/updateUserData",saveMap:"/api/map/save",deleteMap:"/api/map/delete",importMap:"/api/map/import",getMapConnectionData:"/api/map/getConnectionData",getMapLogData:"/api/map/getLogData",getSystemData:"/api/system/getData",searchSystem:"/api/system/search",saveSystem:"/api/system/save",deleteSystem:"/api/system/delete",getSystemGraphData:"/api/system/graphData",getConstellationData:"/api/system/constellationData",setDestination:"/api/system/setDestination",pokeRally:"/api/system/pokeRally",saveConnection:"/api/connection/save",deleteConnection:"/api/connection/delete",getSignatures:"/api/signature/getAll",saveSignatureData:"/api/signature/save",deleteSignatureData:"/api/signature/delete",saveStructureData:"/api/structure/save",deleteStructureData:"/api/structure/delete",searchRoute:"/api/route/search",getStatisticsData:"/api/statistic/getData",searchUniverseData:"/api/universe/search",gitHubReleases:"/api/github/releases"},breakpoints:[{name:"desktop",width:1/0},{name:"tablet",width:1200},{name:"fablet",width:780},{name:"phone",width:480}],animationSpeed:{splashOverlay:300,headerLink:100,mapOverlay:200,mapOverlayLocal:180,mapMoveSystem:180,mapDeleteSystem:200,mapModule:200,dialogEvents:180},syncStatus:{type:"ajax",webSocket:{status:"closed",class:"txt-color-danger",timestamp:void 0},sharedWorker:{status:"offline",class:"txt-color-danger",timestamp:void 0},ajax:{status:"enabled",class:"txt-color-success",timestamp:void 0}},performanceLogging:{keyServerMapData:"UPDATE_SERVER_MAP",keyClientMapData:"UPDATE_CLIENT_MAP",keyServerUserData:"UPDATE_SERVER_USER_DATA",keyClientUserData:"UPDATE_CLIENT_USER_DATA"},mapIcons:[{class:"fa-desktop",label:"desktop",unicode:"&#xf108;"},{class:"fa-space-shuttle",label:"space shuttle",unicode:"&#xf197;"},{class:"fa-anchor",label:"anchor",unicode:"&#xf13d;"},{class:"fa-bookmark",label:"bookmark",unicode:"&#xf02e;"},{class:"fa-cube",label:"cube",unicode:"&#xf1b2;"},{class:"fa-star",label:"star",unicode:"&#xf005;"},{class:"fa-plane",label:"plane",unicode:"&#xf072;"},{class:"fa-globe",label:"globe",unicode:"&#xf0ac;"},{class:"fa-rocket",label:"rocket",unicode:"&#xf135;"},{class:"fa-life-ring",label:"life ring",unicode:"&#xf1cd;"},{class:"fa-heart",label:"heart",unicode:"&#xf004;"}],classes:{logTypes:{info:{class:"pf-log-info",label:"info"},warning:{class:"pf-log-warning",label:"warning"},error:{class:"pf-log-error",label:"error"}},systemEffects:{effect:{class:"pf-system-effect",name:"no effect"},magnetar:{class:"pf-system-effect-magnetar",name:"magnetar"},redGiant:{class:"pf-system-effect-redgiant",name:"red giant"},pulsar:{class:"pf-system-effect-pulsar",name:"pulsar"},wolfRayet:{class:"pf-system-effect-wolfrayet",name:"wolf rayet"},cataclysmic:{class:"pf-system-effect-cataclysmic",name:"cataclysmic"},blackHole:{class:"pf-system-effect-blackhole",name:"black hole"}},systemSecurity:{security:{class:"pf-system-sec"},A:{class:"pf-system-sec-abyssal"},SH:{class:"pf-system-sec-unknown"},H:{class:"pf-system-sec-highSec"},L:{class:"pf-system-sec-lowSec"},"0.0":{class:"pf-system-sec-nullSec"},C6:{class:"pf-system-sec-high"},C5:{class:"pf-system-sec-high"},C4:{class:"pf-system-sec-mid"},C3:{class:"pf-system-sec-mid"},C2:{class:"pf-system-sec-low"},C1:{class:"pf-system-sec-low"}},trueSec:{"0.0":{class:"pf-system-security-0-0"},.1:{class:"pf-system-security-0-1"},.2:{class:"pf-system-security-0-2"},.3:{class:"pf-system-security-0-3"},.4:{class:"pf-system-security-0-4"},.5:{class:"pf-system-security-0-5"},.6:{class:"pf-system-security-0-6"},.7:{class:"pf-system-security-0-7"},.8:{class:"pf-system-security-0-8"},.9:{class:"pf-system-security-0-9"},"1.0":{class:"pf-system-security-1-0"}},systemInfo:{rally:{class:"pf-system-info-rally",label:"rally point"}},pieChart:{class:"pf-pie-chart",pieChartMapCounterClass:"pf-pie-chart-map-timer"}},defaultMapScope:"wh",connectionTypes:{abyssal:{cssClass:"pf-map-connection-abyssal",paintStyle:{dashstyle:"0.5 2"}},jumpbridge:{cssClass:"pf-map-connection-jumpbridge",paintStyle:{dashstyle:"4 2 1 2"}},stargate:{cssClass:"pf-map-connection-stargate",paintStyle:{dashstyle:"0"}},wh_eol:{cssClass:"pf-map-connection-wh-eol",paintStyle:{dashstyle:"0"}},wh_fresh:{cssClass:"pf-map-connection-wh-fresh",paintStyle:{dashstyle:"0"}},wh_reduced:{cssClass:"pf-map-connection-wh-reduced",paintStyle:{dashstyle:"0"}},wh_critical:{cssClass:"pf-map-connection-wh-critical",paintStyle:{dashstyle:"0"}},frigate:{cssClass:"pf-map-connection-frig",paintStyle:{dashstyle:"0.99"},overlays:[["Label",{label:"frig",cssClass:["pf-map-connection-overlay","frig"].join(" "),location:.6}]]},preserve_mass:{cssClass:"pf-map-connection-preserve-mass",overlays:[["Label",{label:'<i class="fas fa-fw fa-exclamation-triangle"></i>&nbsp;save mass',cssClass:["pf-map-connection-overlay","mass"].join(" "),location:.6}]]},active:{cssClass:"pf-map-connection-active"}},signatureGroups:{1:{name:"(combat site|kampfgebiet|site de combat)",label:"Combat"},2:{name:"(relic site|reliktgebiet|site de reliques)",label:"Relic"},3:{name:"(data site|datengebiet|site de données)",label:"Data"},4:{name:"(gas site|gasgebiet|site de collecte de gaz)",label:"Gas"},5:{name:"(wormhole|wurmloch|trou de ver)",label:"Wormhole"},6:{name:"(ore site|mineraliengebiet|site de minerai)",label:"Ore"},7:{name:"(ghost)",label:"Ghost"}},frigateWormholes:{1:{1:"E004 - C1",2:"L005 - C2",3:"Z006 - C3",4:"M001 - C4",5:"C008 - C5",6:"G008 - C6",7:"Q003 - 0.0",8:"A009 - (shattered)"},2:{1:"E004 - C1",2:"L005 - C2",3:"Z006 - C3",4:"M001 - C4",5:"C008 - C5",6:"G008 - C6",7:"Q003 - 0.0",8:"A009 - (shattered)"},3:{1:"E004 - C1",2:"L005 - C2",3:"Z006 - C3",4:"M001 - C4",5:"C008 - C5",6:"G008 - C6",7:"Q003 - 0.0",8:"A009 - (shattered)"},4:{1:"E004 - C1",2:"L005 - C2",3:"Z006 - C3",4:"M001 - C4",5:"C008 - C5",6:"G008 - C6",7:"Q003 - 0.0",8:"A009 - (shattered)"},5:{1:"E004 - C1",2:"L005 - C2",3:"Z006 - C3",4:"M001 - C4",5:"C008 - C5",6:"G008 - C6",7:"Q003 - 0.0",8:"A009 - (shattered)"},6:{1:"E004 - C1",2:"L005 - C2",3:"Z006 - C3",4:"M001 - C4",5:"C008 - C5",6:"G008 - C6",7:"Q003 - 0.0",8:"A009 - (shattered)"},13:{1:"E004 - C1",2:"L005 - C2",3:"Z006 - C3",4:"M001 - C4",5:"C008 - C5",6:"G008 - C6",7:"Q003 - 0.0",8:"A009 - (shattered)"}},incomingWormholes:{1:"K162 - C1/2/3 (unknown)",2:"K162 - C4/5 (dangerous)",3:"K162 - C6 (deadly)",4:"K162 - HS",5:"K162 - LS",6:"K162 - 0.0",7:"K162 - Thera"}}}),define("conf/system_effect",[],function(){"use strict";return{wh:{magnetar:{1:[{effect:"Damage",value:"+30%"},{effect:"Missile exp. radius",value:"+15%"},{effect:"Drone tracking",value:"-15%"},{effect:"Targeting range",value:"-15%"},{effect:"Tracking speed",value:"-15%"},{effect:"Target Painter strength",value:"-15%"}],2:[{effect:"Damage",value:"+44%"},{effect:"Missile exp. radius",value:"+22%"},{effect:"Drone tracking",value:"-22%"},{effect:"Targeting range",value:"-22%"},{effect:"Tracking speed",value:"-22%"},{effect:"Target Painter strength",value:"-22%"}],3:[{effect:"Damage",value:"+58%"},{effect:"Missile exp. radius",value:"+29%"},{effect:"Drone tracking",value:"-29%"},{effect:"Targeting range",value:"-29%"},{effect:"Tracking speed",value:"-29%"},{effect:"Target Painter strength",value:"-29%"}],4:[{effect:"Damage",value:"+72%"},{effect:"Missile exp. radius",value:"+36%"},{effect:"Drone tracking",value:"-36%"},{effect:"Targeting range",value:"-36%"},{effect:"Tracking speed",value:"-36%"},{effect:"Target Painter strength",value:"-36%"}],5:[{effect:"Damage",value:"+86%"},{effect:"Missile exp. radius",value:"+43%"},{effect:"Drone tracking",value:"-43%"},{effect:"Targeting range",value:"-43%"},{effect:"Tracking speed",value:"-43%"},{effect:"Target Painter strength",value:"-43%"}],6:[{effect:"Damage",value:"+100%"},{effect:"Missile exp. radius",value:"+50%"},{effect:"Drone tracking",value:"-50%"},{effect:"Targeting range",value:"-50%"},{effect:"Tracking speed",value:"-50%"},{effect:"Target Painter strength",value:"-50%"}]},redGiant:{1:[{effect:"Heat damage",value:"+15%"},{effect:"Overload bonus",value:"+30%"},{effect:"Smart Bomb range",value:"+30%"},{effect:"Smart Bomb damage",value:"+30%"},{effect:"Bomb damage",value:"+30%"}],2:[{effect:"Heat damage",value:"+22%"},{effect:"Overload bonus",value:"+44%"},{effect:"Smart Bomb range",value:"+44%"},{effect:"Smart Bomb damage",value:"+44%"},{effect:"Bomb damage",value:"+44%"}],3:[{effect:"Heat damage",value:"+29%"},{effect:"Overload bonus",value:"+58%"},{effect:"Smart Bomb range",value:"+58%"},{effect:"Smart Bomb damage",value:"+58%"},{effect:"Bomb damage",value:"+58%"}],4:[{effect:"Heat damage",value:"+36%"},{effect:"Overload bonus",value:"+72%"},{effect:"Smart Bomb range",value:"+72%"},{effect:"Smart Bomb damage",value:"+72%"},{effect:"Bomb damage",value:"+72%"}],5:[{effect:"Heat damage",value:"+43%"},{effect:"Overload bonus",value:"+86%"},{effect:"Smart Bomb range",value:"+86%"},{effect:"Smart Bomb damage",value:"+86%"},{effect:"Bomb damage",value:"+86%"}],6:[{effect:"Heat damage",value:"+50%"},{effect:"Overload bonus",value:"+100%"},{effect:"Smart Bomb range",value:"+100%"},{effect:"Smart Bomb damage",value:"+100%"},{effect:"Bomb damage",value:"+100%"}]},pulsar:{1:[{effect:"Shield HP",value:"+30%"},{effect:"Armor resist",value:"-15%"},{effect:"Capacitor recharge",value:"-15%"},{effect:"Signature",value:"+30%"},{effect:"NOS/Neut drain",value:"+30%"}],2:[{effect:"Shield HP",value:"+44%"},{effect:"Armor resist",value:"-22%"},{effect:"Capacitor recharge",value:"-22%"},{effect:"Signature",value:"+44%"},{effect:"NOS/Neut drain",value:"+44%"}],3:[{effect:"Shield HP",value:"+58%"},{effect:"Armor resist",value:"-29%"},{effect:"Capacitor recharge",value:"-29%"},{effect:"Signature",value:"+58%"},{effect:"NOS/Neut drain",value:"+58%"}],4:[{effect:"Shield HP",value:"+72%"},{effect:"Armor resist",value:"-36%"},{effect:"Capacitor recharge",value:"-36%"},{effect:"Signature",value:"+72%"},{effect:"NOS/Neut drain",value:"+72%"}],5:[{effect:"Shield HP",value:"+86%"},{effect:"Armor resist",value:"-43%"},{effect:"Capacitor recharge",value:"-43%"},{effect:"Signature",value:"+86%"},{effect:"NOS/Neut drain",value:"+86%"}],6:[{effect:"Shield HP",value:"+100%"},{effect:"Armor resist",value:"-50%"},{effect:"Capacitor recharge",value:"-50%"},{effect:"Signature",value:"+100%"},{effect:"NOS/Neut drain",value:"+100%"}]},wolfRayet:{1:[{effect:"Armor HP",value:"+30%"},{effect:"Shield resist",value:"-15%"},{effect:"Small Weapon damage",value:"+60%"},{effect:"Signature size",value:"-15%"}],2:[{effect:"Armor HP",value:"+44%"},{effect:"Shield resist",value:"-22%"},{effect:"Small Weapon damage",value:"+88%"},{effect:"Signature size",value:"-22%"}],3:[{effect:"Armor HP",value:"+58%"},{effect:"Shield resist",value:"-29%"},{effect:"Small Weapon damage",value:"+116%"},{effect:"Signature size",value:"-29%"}],4:[{effect:"Armor HP",value:"+72%"},{effect:"Shield resist",value:"-36%"},{effect:"Small Weapon damage",value:"+144%"},{effect:"Signature size",value:"-36%"}],5:[{effect:"Armor HP",value:"+86%"},{effect:"Shield resist",value:"-43%"},{effect:"Small Weapon damage",value:"+172%"},{effect:"Signature size",value:"-43%"}],6:[{effect:"Armor HP",value:"+100%"},{effect:"Shield resist",value:"-50%"},{effect:"Small Weapon damage",value:"+200%"},{effect:"Signature size",value:"-50%"}]},cataclysmic:{1:[{effect:"Local armor repair amount",value:"-15%"},{effect:"Local shield boost amount",value:"-15%"},{effect:"Shield transfer amount",value:"+30%"},{effect:"Remote repair amount",value:"+30%"},{effect:"Capacitor capacity",value:"+30%"},{effect:"Capacitor recharge time",value:"+15%"},{effect:"Remote Capacitor Transmitter amount",value:"-15%"}],2:[{effect:"Local armor repair amount",value:"-22%"},{effect:"Local shield boost amount",value:"-22%"},{effect:"Shield transfer amount",value:"+44%"},{effect:"Remote repair amount",value:"+44%"},{effect:"Capacitor capacity",value:"+44%"},{effect:"Capacitor recharge time",value:"+22%"},{effect:"Remote Capacitor Transmitter amount",value:"-22%"}],3:[{effect:"Local armor repair amount",value:"-29%"},{effect:"Local shield boost amount",value:"-29%"},{effect:"Shield transfer amount",value:"+58%"},{effect:"Remote repair amount",value:"+58%"},{effect:"Capacitor capacity",value:"+58%"},{effect:"Capacitor recharge time",value:"+29%"},{effect:"Remote Capacitor Transmitter amount",value:"-29%"}],4:[{effect:"Local armor repair amount",value:"-36%"},{effect:"Local shield boost amount",value:"-36%"},{effect:"Shield transfer amount",value:"+72%"},{effect:"Remote repair amount",value:"+72%"},{effect:"Capacitor capacity",value:"+72%"},{effect:"Capacitor recharge time",value:"+36%"},{effect:"Remote Capacitor Transmitter amount",value:"-36%"}],5:[{effect:"Local armor repair amount",value:"-43%"},{effect:"Local shield boost amount",value:"-43%"},{effect:"Shield transfer amount",value:"+86%"},{effect:"Remote repair amount",value:"+86%"},{effect:"Capacitor capacity",value:"+86%"},{effect:"Capacitor recharge time",value:"+43%"},{effect:"Remote Capacitor Transmitter amount",value:"-43%"}],6:[{effect:"Local armor repair amount",value:"-50%"},{effect:"Local shield boost amount",value:"-50%"},{effect:"Shield transfer amount",value:"+100%"},{effect:"Remote repair amount",value:"+100%"},{effect:"Capacitor capacity",value:"+100%"},{effect:"Capacitor recharge time",value:"+50%"},{effect:"Remote Capacitor Transmitter amount",value:"-50%"}]},blackHole:{1:[{effect:"Missile velocity",value:"+15%"},{effect:"Missile exp. velocity",value:"+30%"},{effect:"Ship velocity",value:"+30%"},{effect:"Stasis Webifier strength",value:"-15%"},{effect:"Inertia",value:"+15%"},{effect:"Targeting range",value:"+30%"}],2:[{effect:"Missile velocity",value:"+22%"},{effect:"Missile exp. velocity",value:"+44%"},{effect:"Ship velocity",value:"+44%"},{effect:"Stasis Webifier strength",value:"-22%"},{effect:"Inertia",value:"+22%"},{effect:"Targeting range",value:"+44%"}],3:[{effect:"Missile velocity",value:"+29%"},{effect:"Missile exp. velocity",value:"+58%"},{effect:"Ship velocity",value:"+58%"},{effect:"Stasis Webifier strength",value:"-29%"},{effect:"Inertia",value:"+29%"},{effect:"Targeting range",value:"+58%"}],4:[{effect:"Missile velocity",value:"+36%"},{effect:"Missile exp. velocity",value:"+72%"},{effect:"Ship velocity",value:"+72%"},{effect:"Stasis Webifier strength",value:"-36%"},{effect:"Inertia",value:"+36%"},{effect:"Targeting range",value:"+72%"}],5:[{effect:"Missile velocity",value:"+43%"},{effect:"Missile exp. velocity",value:"+86%"},{effect:"Ship velocity",value:"+86%"},{effect:"Stasis Webifier strength",value:"-43%"},{effect:"Inertia",value:"+43%"},{effect:"Targeting range",value:"+86%"}],6:[{effect:"Missile velocity",value:"+50%"},{effect:"Missile exp. velocity",value:"+100%"},{effect:"Ship velocity",value:"+100%"},{effect:"Stasis Webifier strength",value:"-50%"},{effect:"Inertia",value:"+50%"},{effect:"Targeting range",value:"+100%"}]}}}}),define("conf/signature_type",["jquery"],function(e){"use strict";let t={10:"Ruined Angel Crystal Quarry",11:"Ruined Angel Monument Site",12:"Ruined Angel Science Outpost",13:"Ruined Angel Temple Site",14:"Ruined Blood Raider Crystal Quarry",15:"Ruined Blood Raider Monument Site",16:"Ruined Blood Raider Science Outpost",17:"Ruined Blood Raider Temple Site",18:"Ruined Guristas Crystal Quarry",19:"Ruined Guristas Monument Site",20:"Ruined Guristas Science Outpost",21:"Ruined Guristas Temple Site",22:"Ruined Sansha Crystal Quarry",23:"Ruined Sansha Monument Site",24:"Ruined Sansha Science Outpost",25:"Ruined Sansha Temple Site",26:"Ruined Serpentis Crystal Quarry",27:"Ruined Serpentis Monument Site",28:"Ruined Serpentis Science Outpost",29:"Ruined Serpentis Temple Site"},n={10:"Abandoned Research Complex DA005",11:"Abandoned Research Complex DA015",12:"Abandoned Research Complex DC007",13:"Abandoned Research Complex DC021",14:"Abandoned Research Complex DC035",15:"Abandoned Research Complex DG003",16:"Central Angel Command Center",17:"Central Angel Data Mining Site",18:"Central Angel Sparking Transmitter",19:"Central Angel Survey Site",20:"Central Blood Raider Command Center",21:"Central Blood Raider Data Mining Site",22:"Central Blood Raider Sparking Transmitter",23:"Central Blood Raider Survey Site",24:"Central Guristas Command Center",25:"Central Guristas Data Mining Center",26:"Central Guristas Sparking Transmitter",27:"Central Guristas Survey Site",28:"Central Sansha Command Center",29:"Central Sansha Data Mining Site",30:"Central Sansha Sparking Transmitter",31:"Central Sansha Survey Site",32:"Central Serpentis Command Center",33:"Central Serpentis Data Mining Site",34:"Central Serpentis Sparking Transmitter",35:"Central Serpentis Survey Site"};return{1:{1:{1:{1:"Perimeter Ambush Point",2:"Perimeter Camp",3:"Phase Catalyst Node",4:"The Line"},2:e.extend({},t,{1:"Forgotten Perimeter Coronation Platform",2:"Forgotten Perimeter Power Array"}),3:e.extend({},n,{1:"Unsecured Perimeter Amplifier",2:"Unsecured Perimeter Information Center"}),4:{1:"Barren Perimeter Reservoir",2:"Token Perimeter Reservoir",3:"Minor Perimeter Reservoir",4:"Sizeable Perimeter Reservoir",5:"Ordinary Perimeter Reservoir"},5:{1:"H121 - C1",2:"C125 - C2",3:"O883 - C3",4:"M609 - C4",5:"L614 - C5",6:"S804 - C6",7:"F353 - Thera"},6:{1:"Ordinary Perimeter Deposit",2:"Common Perimeter Deposit",3:"Unexceptional Frontier Deposit",4:"Average Frontier Deposit",5:"Isolated Core Deposit",6:"Uncommon Core Deposit"},7:{}},2:{1:{1:"Perimeter Checkpoint",2:"Perimeter Hangar",3:"The Ruins of Enclave Cohort 27",4:"Sleeper Data Sanctuary"},2:e.extend({},t,{1:"Forgotten Perimeter Gateway",2:"Forgotten Perimeter Habitation Coils"}),3:e.extend({},n,{1:"Unsecured Perimeter Comms Relay",2:"Unsecured Perimeter Transponder Farm"}),4:{1:"Barren Perimeter Reservoir",2:"Token Perimeter Reservoir",3:"Minor Perimeter Reservoir",4:"Sizeable Perimeter Reservoir",5:"Ordinary Perimeter Reservoir"},5:{1:"Z647 - C1",2:"D382 - C2",3:"O477 - C3",4:"Y683 - C4",5:"N062 - C5",6:"R474 - C6",7:"F135 - Thera"},6:{1:"Ordinary Perimeter Deposit",2:"Common Perimeter Deposit",3:"Unexceptional Frontier Deposit",4:"Average Frontier Deposit",5:"Isolated Core Deposit",6:"Uncommon Core Deposit"},7:{}},3:{1:{1:"Fortification Frontier Stronghold",2:"Outpost Frontier Stronghold",3:"Solar Cell",4:"The Oruze Construct"},2:e.extend({},t,{1:"Forgotten Frontier Quarantine Outpost",2:"Forgotten Frontier Recursive Depot"}),3:e.extend({},n,{1:"Unsecured Frontier Database",2:"Unsecured Frontier Receiver"}),4:{1:"Barren Perimeter Reservoir",2:"Token Perimeter Reservoir",3:"Minor Perimeter Reservoir",4:"Sizeable Perimeter Reservoir",5:"Ordinary Perimeter Reservoir",6:"Bountiful Frontier Reservoir",7:"Vast Frontier Reservoir"},5:{1:"V301 - C1",2:"I182 - C2",3:"N968 - C3",4:"T405 - C4",5:"N770 - C5",6:"A982 - C6",7:"F135 - Thera"},6:{1:"Ordinary Perimeter Deposit",2:"Common Perimeter Deposit",3:"Unexceptional Frontier Deposit",4:"Average Frontier Deposit",5:"Infrequent Core Deposit",6:"Unusual Core Deposit"},7:{}},4:{1:{1:"Frontier Barracks",2:"Frontier Command Post",3:"Integrated Terminus",4:"Sleeper Information Sanctum"},2:{1:"Forgotten Frontier Conversion Module",2:"Forgotten Frontier Evacuation Center"},3:{1:"Unsecured Frontier Digital Nexus",2:"Unsecured Frontier Trinary Hub"},4:{1:"Barren Perimeter Reservoir",2:"Token Perimeter Reservoir",3:"Minor Perimeter Reservoir",4:"Sizeable Perimeter Reservoir",5:"Ordinary Perimeter Reservoir",6:"Vast Frontier Reservoir",7:"Bountiful Frontier Reservoir"},5:{},6:{1:"Ordinary Perimeter Deposit",2:"Common Perimeter Deposit",3:"Unexceptional Frontier Deposit",4:"Average Frontier Deposit",5:"Unusual Core Deposit",6:"Infrequent Core Deposit"},7:{}},5:{1:{1:"Core Garrison",2:"Core Stronghold",3:"Oruze Osobnyk",4:"Quarantine Area"},2:{1:"Forgotten Core Data Field",2:"Forgotten Core Information Pen"},3:{1:"Unsecured Frontier Enclave Relay",2:"Unsecured Frontier Server Bank"},4:{1:"Barren Perimeter Reservoir",2:"Minor Perimeter Reservoir",3:"Ordinary Perimeter Reservoir",4:"Sizeable Perimeter Reservoir",5:"Token Perimeter Reservoir",6:"Bountiful Frontier Reservoir",7:"Vast Frontier Reservoir",8:"Instrumental Core Reservoir",9:"Vital Core Reservoir"},5:{1:"D792 - HS",2:"C140 - LS",3:"Z142 - 0.0",4:"F135 - Thera"},6:{1:"Average Frontier Deposit",2:"Unexceptional Frontier Deposit",3:"Uncommon Core Deposit",4:"Ordinary Perimeter Deposit",5:"Common Perimeter Deposit",6:"Exceptional Core Deposit",7:"Infrequent Core Deposit",8:"Unusual Core Deposit",9:"Rarified Core Deposit",10:"Isolated Core Deposit"},7:{}},6:{1:{1:"Core Citadel",2:"Core Bastion",3:"Strange Energy Readings",4:"The Mirror"},2:{1:"Forgotten Core Assembly Hall",2:"Forgotten Core Circuitry Disassembler"},3:{1:"Unsecured Core Backup Array",2:"Unsecured Core Emergence"},4:{1:"Barren Perimeter Reservoir",2:"Minor Perimeter Reservoir",3:"Ordinary Perimeter Reservoir",4:"Sizeable Perimeter Reservoir",5:"Token Perimeter Reservoir",6:"Bountiful Frontier Reservoir",7:"Vast Frontier Reservoir",8:"Instrumental Core Reservoir",9:"Vital Core Reservoir"},5:{1:"D792 - HS",2:"C391 - LS",3:"C248 - 0.0",4:"F135 - Thera"},6:{1:"Ordinary Perimeter Deposit",2:"Common Perimeter Deposit",3:"Unexceptional Frontier Deposit",4:"Average Frontier Deposit",5:"Rarified Core Deposit"},7:{1:"Superior Blood Raider Covert Research Facility"}},13:{5:{1:"P060 - C1",2:"Z647 - C1",3:"D382 - C2",4:"L005 - C2",5:"N766 - C2",6:"C247 - C3",7:"M267 - C3",8:"O477 - C3",9:"X877 - C4",10:"Y683 - C4",11:"H296 - C5",12:"H900 - C5",13:"H296 - C5",14:"N062 - C5",15:"V911 - C5",16:"U574 - C6",17:"V753 - C6",18:"W237 - C6",19:"B274 - HS",20:"D792 - HS",21:"D845 - HS",22:"N110 - HS",23:"A239 - LS",24:"C391 - LS",25:"J244 - LS",26:"U201 - LS",27:"U210 - LS",28:"C248 - 0.0",29:"E545 - 0.0",30:"K346 - 0.0",31:"Z060 - 0.0"}}},2:{10:{5:{1:"Z971 - C1",2:"R943 - C2",3:"X702 - C3",4:"M555 - C5",5:"B041 - C6",6:"A641 - HS",7:"R051 - LS",8:"V283 - 0.0",9:"T458 - Thera"}},11:{5:{1:"Z971 - C1",2:"R943 - C2",3:"X702 - C3",4:"N432 - C5",5:"U319 - C6",6:"B449 - HS",7:"N944 - LS",8:"S199 - 0.0",9:"M164 - Thera"}},12:{5:{1:"Z971 - C1",2:"R943 - C2",3:"X702 - C3",4:"N432 - C5",5:"U319 - C6",6:"B449 - HS",7:"N944 - LS",8:"S199 - 0.0",9:"L031 - Thera"}}}}}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(e){"use strict";var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),function(e){"use strict";e.fn.emulateTransitionEnd=function(t){var n=!1,r=this;e(this).one("bsTransitionEnd",function(){n=!0});return setTimeout(function(){n||e(r).trigger(e.support.transition.end)},t),this},e(function(){e.support.transition=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){return e(t.target).is(this)?t.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.VERSION="3.3.5",n.TRANSITION_DURATION=150,n.prototype.close=function(t){function r(){a.detach().trigger("closed.bs.alert").remove()}var o=e(this),i=o.attr("data-target");i||(i=(i=o.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,""));var a=e(i);t&&t.preventDefault(),a.length||(a=o.closest(".alert")),a.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(a.removeClass("in"),e.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",r).emulateTransitionEnd(n.TRANSITION_DURATION):r())};var r=e.fn.alert;e.fn.alert=function(t){return this.each(function(){var r=e(this),o=r.data("bs.alert");o||r.data("bs.alert",o=new n(this)),"string"==typeof t&&o[t].call(r)})},e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=r,this},e(document).on("click.bs.alert.data-api",t,n.prototype.close)}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var r=e(this),o=r.data("bs.button"),i="object"==typeof t&&t;o||r.data("bs.button",o=new n(this,i)),"toggle"==t?o.toggle():t&&o.setState(t)})}var n=function(t,r){this.$element=e(t),this.options=e.extend({},n.DEFAULTS,r),this.isLoading=!1};n.VERSION="3.3.5",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(t){var n="disabled",r=this.$element,o=r.is("input")?"val":"html",i=r.data();t+="Text",null==i.resetText&&r.data("resetText",r[o]()),setTimeout(e.proxy(function(){r[o](null==i[t]?this.options[t]:i[t]),"loadingText"==t?(this.isLoading=!0,r.addClass(n).attr(n,n)):this.isLoading&&(this.isLoading=!1,r.removeClass(n).removeAttr(n))},this),0)},n.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var r=e.fn.button;e.fn.button=t,e.fn.button.Constructor=n,e.fn.button.noConflict=function(){return e.fn.button=r,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var r=e(n.target);r.hasClass("btn")||(r=r.closest(".btn")),t.call(r,"toggle"),e(n.target).is('input[type="radio"]')||e(n.target).is('input[type="checkbox"]')||n.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var r=e(this),o=r.data("bs.carousel"),i=e.extend({},n.DEFAULTS,r.data(),"object"==typeof t&&t),a="string"==typeof t?t:i.slide;o||r.data("bs.carousel",o=new n(this,i)),"number"==typeof t?o.to(t):a?o[a]():i.interval&&o.pause().cycle()})}var n=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};n.VERSION="3.3.5",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},n.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},n.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t);if(("prev"==e&&0===n||"next"==e&&n==this.$items.length-1)&&!this.options.wrap)return t;var r=(n+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(r)},n.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));return e>this.$items.length-1||0>e?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",this.$items.eq(e))},n.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){return this.sliding?void 0:this.slide("next")},n.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},n.prototype.slide=function(t,r){var o=this.$element.find(".item.active"),i=r||this.getItemForDirection(t,o),a=this.interval,s="next"==t?"left":"right",l=this;if(i.hasClass("active"))return this.sliding=!1;var c=i[0],u=e.Event("slide.bs.carousel",{relatedTarget:c,direction:s});if(this.$element.trigger(u),!u.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=e(this.$indicators.children()[this.getItemIndex(i)]);d&&d.addClass("active")}var f=e.Event("slid.bs.carousel",{relatedTarget:c,direction:s});return e.support.transition&&this.$element.hasClass("slide")?(i.addClass(t),i[0].offsetWidth,o.addClass(s),i.addClass(s),o.one("bsTransitionEnd",function(){i.removeClass([t,s].join(" ")).addClass("active"),o.removeClass(["active",s].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(f)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(o.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger(f)),a&&this.cycle(),this}};var r=e.fn.carousel;e.fn.carousel=t,e.fn.carousel.Constructor=n,e.fn.carousel.noConflict=function(){return e.fn.carousel=r,this};var o=function(n){var r,o=e(this),i=e(o.attr("data-target")||(r=o.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,""));if(i.hasClass("carousel")){var a=e.extend({},i.data(),o.data()),s=o.attr("data-slide-to");s&&(a.interval=!1),t.call(i,a),s&&i.data("bs.carousel").to(s),n.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",o).on("click.bs.carousel.data-api","[data-slide-to]",o),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var n=e(this);t.call(n,n.data())})})}(jQuery),function(e){"use strict";function t(t){var n,r=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(r)}function n(t){return this.each(function(){var n=e(this),o=n.data("bs.collapse"),i=e.extend({},r.DEFAULTS,n.data(),"object"==typeof t&&t);!o&&i.toggle&&/show|hide/.test(t)&&(i.toggle=!1),o||n.data("bs.collapse",o=new r(this,i)),"string"==typeof t&&o[t]()})}var r=function(t,n){this.$element=e(t),this.options=e.extend({},r.DEFAULTS,n),this.$trigger=e('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};r.VERSION="3.3.5",r.TRANSITION_DURATION=350,r.DEFAULTS={toggle:!0},r.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},r.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,o=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(o&&o.length&&(t=o.data("bs.collapse"),t&&t.transitioning))){var i=e.Event("show.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){o&&o.length&&(n.call(o,"hide"),t||o.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return s.call(this);var l=e.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",e.proxy(s,this)).emulateTransitionEnd(r.TRANSITION_DURATION)[a](this.$element[0][l])}}}},r.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=e.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return e.support.transition?void this.$element[n](0).one("bsTransitionEnd",e.proxy(o,this)).emulateTransitionEnd(r.TRANSITION_DURATION):o.call(this)}}},r.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},r.prototype.getParent=function(){return e(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(n,r){var o=e(r);this.addAriaAndCollapsedClass(t(o),o)},this)).end()},r.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var o=e.fn.collapse;e.fn.collapse=n,e.fn.collapse.Constructor=r,e.fn.collapse.noConflict=function(){return e.fn.collapse=o,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(r){var o=e(this);o.attr("data-target")||r.preventDefault();var i=t(o),a=i.data("bs.collapse")?"toggle":o.data();n.call(i,a)})}(jQuery),function(e){"use strict";function t(t){var n=t.attr("data-target");n||(n=(n=t.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var r=n&&e(n);return r&&r.length?r:t.parent()}function n(n){n&&3===n.which||(e(r).remove(),e(o).each(function(){var r=e(this),o=t(r),i={relatedTarget:this};o.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&e.contains(o[0],n.target)||(o.trigger(n=e.Event("hide.bs.dropdown",i)),n.isDefaultPrevented()||(r.attr("aria-expanded","false"),o.removeClass("open").trigger("hidden.bs.dropdown",i))))}))}var r=".dropdown-backdrop",o='[data-toggle="dropdown"]',i=function(t){e(t).on("click.bs.dropdown",this.toggle)};i.VERSION="3.3.5",i.prototype.toggle=function(r){var o=e(this);if(!o.is(".disabled, :disabled")){var i=t(o),a=i.hasClass("open");if(n(),!a){"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",n);var s={relatedTarget:this};if(i.trigger(r=e.Event("show.bs.dropdown",s)),r.isDefaultPrevented())return;o.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger("shown.bs.dropdown",s)}return!1}},i.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var r=e(this);if(n.preventDefault(),n.stopPropagation(),!r.is(".disabled, :disabled")){var i=t(r),a=i.hasClass("open");if(!a&&27!=n.which||a&&27==n.which)return 27==n.which&&i.find(o).trigger("focus"),r.trigger("click");var s=i.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var l=s.index(n.target);38==n.which&&l>0&&l--,40==n.which&&l<s.length-1&&l++,~l||(l=0),s.eq(l).trigger("focus")}}}};var a=e.fn.dropdown;e.fn.dropdown=function(t){return this.each(function(){var n=e(this),r=n.data("bs.dropdown");r||n.data("bs.dropdown",r=new i(this)),"string"==typeof t&&r[t].call(n)})},e.fn.dropdown.Constructor=i,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=a,this},e(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",o,i.prototype.toggle).on("keydown.bs.dropdown.data-api",o,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.prototype.keydown)}(jQuery),function(e){"use strict";function t(t,r){return this.each(function(){var o=e(this),i=o.data("bs.modal"),a=e.extend({},n.DEFAULTS,o.data(),"object"==typeof t&&t);i||o.data("bs.modal",i=new n(this,a)),"string"==typeof t?i[t](r):a.show&&i.show(r)})}var n=function(t,n){this.options=n,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};n.VERSION="3.3.5",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},n.prototype.show=function(t){var r=this,o=e.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(o),this.isShown||o.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){r.$element.one("mouseup.dismiss.bs.modal",function(t){e(t.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})}),this.backdrop(function(){var o=e.support.transition&&r.$element.hasClass("fade");r.$element.parent().length||r.$element.appendTo(r.$body),r.$element.show().scrollTop(0),r.adjustDialog(),o&&r.$element[0].offsetWidth,r.$element.addClass("in"),r.enforceFocus();var i=e.Event("shown.bs.modal",{relatedTarget:t});o?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(i)}).emulateTransitionEnd(n.TRANSITION_DURATION):r.$element.trigger("focus").trigger(i)}))},n.prototype.hide=function(t){t&&t.preventDefault(),t=e.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(n.TRANSITION_DURATION):this.hideModal())},n.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},n.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},n.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},n.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(t){var r=this,o=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=e.support.transition&&o;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+o).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(e){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;i?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){r.removeBackdrop(),t&&t()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):a()}else t&&t()},n.prototype.handleUpdate=function(){this.adjustDialog()},n.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",e+this.scrollbarWidth)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},n.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var r=e.fn.modal;e.fn.modal=t,e.fn.modal.Constructor=n,e.fn.modal.noConflict=function(){return e.fn.modal=r,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var r=e(this),o=r.attr("href"),i=e(r.attr("data-target")||o&&o.replace(/.*(?=#[^\s]+$)/,"")),a=i.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(o)&&o},i.data(),r.data());r.is("a")&&n.preventDefault(),i.one("show.bs.modal",function(e){e.isDefaultPrevented()||i.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})}),t.call(i,a,this)})}(jQuery),function(e){"use strict";var t=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};t.VERSION="3.3.5",t.TRANSITION_DURATION=150,t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},t.prototype.init=function(t,n,r){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&e(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var o=this.options.trigger.split(" "),i=o.length;i--;){var a=o[i];if("click"==a)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",l="hover"==a?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.getOptions=function(t){return(t=e.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},t.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,function(e,r){n[e]!=r&&(t[e]=r)}),t},t.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState?void(n.hoverState="in"):(clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},t.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},t.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),n.isInStateTrue()?void 0:(clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide())},t.prototype.show=function(){var n=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(n);var r=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(n.isDefaultPrevented()||!r)return;var o=this,i=this.tip(),a=this.getUID(this.type);this.setContent(),i.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&i.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,c=l.test(s);c&&(s=s.replace(l,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var u=this.getPosition(),d=i[0].offsetWidth,f=i[0].offsetHeight;if(c){var p=s,h=this.getPosition(this.$viewport);s="bottom"==s&&u.bottom+f>h.bottom?"top":"top"==s&&u.top-f<h.top?"bottom":"right"==s&&u.right+d>h.width?"left":"left"==s&&u.left-d<h.left?"right":s,i.removeClass(p).addClass(s)}var g=this.getCalculatedOffset(s,u,d,f);this.applyPlacement(g,s);var m=function(){var e=o.hoverState;o.$element.trigger("shown.bs."+o.type),o.hoverState=null,"out"==e&&o.leave(o)};e.support.transition&&this.$tip.hasClass("fade")?i.one("bsTransitionEnd",m).emulateTransitionEnd(t.TRANSITION_DURATION):m()}},t.prototype.applyPlacement=function(t,n){var r=this.tip(),o=r[0].offsetWidth,i=r[0].offsetHeight,a=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(s)&&(s=0),t.top+=a,t.left+=s,e.offset.setOffset(r[0],e.extend({using:function(e){r.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),r.addClass("in");var l=r[0].offsetWidth,c=r[0].offsetHeight;"top"==n&&c!=i&&(t.top=t.top+i-c);var u=this.getViewportAdjustedDelta(n,t,l,c);u.left?t.left+=u.left:t.top+=u.top;var d=/top|bottom/.test(n),f=d?2*u.left-o+l:2*u.top-i+c,p=d?"offsetWidth":"offsetHeight";r.offset(t),this.replaceArrow(f,r[0][p],d)},t.prototype.replaceArrow=function(e,t,n){this.arrow().css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},t.prototype.hide=function(n){function r(){"in"!=o.hoverState&&i.detach(),o.$element.removeAttr("aria-describedby").trigger("hidden.bs."+o.type),n&&n()}var o=this,i=e(this.$tip),a=e.Event("hide.bs."+this.type);return this.$element.trigger(a),a.isDefaultPrevented()?void 0:(i.removeClass("in"),e.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",r).emulateTransitionEnd(t.TRANSITION_DURATION):r(),this.hoverState=null,this)},t.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},t.prototype.hasContent=function(){return this.getTitle()},t.prototype.getPosition=function(t){var n=(t=t||this.$element)[0],r="BODY"==n.tagName,o=n.getBoundingClientRect();null==o.width&&(o=e.extend({},o,{width:o.right-o.left,height:o.bottom-o.top}));var i=r?{top:0,left:0}:t.offset(),a={scroll:r?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},s=r?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},o,a,s,i)},t.prototype.getCalculatedOffset=function(e,t,n,r){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-r,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-r/2,left:t.left-n}:{top:t.top+t.height/2-r/2,left:t.left+t.width}},t.prototype.getViewportAdjustedDelta=function(e,t,n,r){var o={top:0,left:0};if(!this.$viewport)return o;var i=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(e)){var s=t.top-i-a.scroll,l=t.top+i-a.scroll+r;s<a.top?o.top=a.top-s:l>a.top+a.height&&(o.top=a.top+a.height-l)}else{var c=t.left-i,u=t.left+i+n;c<a.left?o.left=a.left-c:u>a.right&&(o.left=a.left+a.width-u)}return o},t.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},t.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},t.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.toggleEnabled=function(){this.enabled=!this.enabled},t.prototype.toggle=function(t){var n=this;t&&((n=e(t.currentTarget).data("bs."+this.type))||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},t.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null})};var n=e.fn.tooltip;e.fn.tooltip=function(n){return this.each(function(){var r=e(this),o=r.data("bs.tooltip"),i="object"==typeof n&&n;(o||!/destroy|hide/.test(n))&&(o||r.data("bs.tooltip",o=new t(this,i)),"string"==typeof n&&o[n]())})},e.fn.tooltip.Constructor=t,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=n,this}}(jQuery),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.5",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=e.fn.popover;e.fn.popover=function(n){return this.each(function(){var r=e(this),o=r.data("bs.popover"),i="object"==typeof n&&n;(o||!/destroy|hide/.test(n))&&(o||r.data("bs.popover",o=new t(this,i)),"string"==typeof n&&o[n]())})},e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=n,this}}(jQuery),function(e){"use strict";function t(n,r){this.$body=e(document.body),this.$scrollElement=e(e(n).is(document.body)?window:n),this.options=e.extend({},t.DEFAULTS,r),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var r=e(this),o=r.data("bs.scrollspy"),i="object"==typeof n&&n;o||r.data("bs.scrollspy",o=new t(this,i)),"string"==typeof n&&o[n]()})}t.VERSION="3.3.5",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,n="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(n="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=e(this),o=t.data("target")||t.attr("href"),i=/^#./.test(o)&&e(o);return i&&i.length&&i.is(":visible")&&[[i[n]().top+r,o]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),r=this.options.offset+n-this.$scrollElement.height(),o=this.offsets,i=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),t>=r)return a!=(e=i[i.length-1])&&this.activate(e);if(a&&t<o[0])return this.activeTarget=null,this.clear();for(e=o.length;e--;)a!=i[e]&&t>=o[e]&&(void 0===o[e+1]||t<o[e+1])&&this.activate(i[e])},t.prototype.activate=function(t){this.activeTarget=t,this.clear();var n=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',r=e(n).parents("li").addClass("active");r.parent(".dropdown-menu").length&&(r=r.closest("li.dropdown").addClass("active")),r.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=e.fn.scrollspy;e.fn.scrollspy=n,e.fn.scrollspy.Constructor=t,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=r,this},e(window).on("load.bs.scrollspy.data-api",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);n.call(t,t.data())})})}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var r=e(this),o=r.data("bs.tab");o||r.data("bs.tab",o=new n(this)),"string"==typeof t&&o[t]()})}var n=function(t){this.element=e(t)};n.VERSION="3.3.5",n.TRANSITION_DURATION=150,n.prototype.show=function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),r=t.data("target");if(r||(r=(r=t.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var o=n.find(".active:last a"),i=e.Event("hide.bs.tab",{relatedTarget:t[0]}),a=e.Event("show.bs.tab",{relatedTarget:o[0]});if(o.trigger(i),t.trigger(a),!a.isDefaultPrevented()&&!i.isDefaultPrevented()){var s=e(r);this.activate(t.closest("li"),n),this.activate(s,s.parent(),function(){o.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:o[0]})})}}},n.prototype.activate=function(t,r,o){function i(){a.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),o&&o()}var a=r.find("> .active"),s=o&&e.support.transition&&(a.length&&a.hasClass("fade")||!!r.find("> .fade").length);a.length&&s?a.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i(),a.removeClass("in")};var r=e.fn.tab;e.fn.tab=t,e.fn.tab.Constructor=n,e.fn.tab.noConflict=function(){return e.fn.tab=r,this};var o=function(n){n.preventDefault(),t.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',o).on("click.bs.tab.data-api",'[data-toggle="pill"]',o)}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var r=e(this),o=r.data("bs.affix"),i="object"==typeof t&&t;o||r.data("bs.affix",o=new n(this,i)),"string"==typeof t&&o[t]()})}var n=function(t,r){this.options=e.extend({},n.DEFAULTS,r),this.$target=e(this.options.target).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.3.5",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(e,t,n,r){var o=this.$target.scrollTop(),i=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return n>o&&"top";if("bottom"==this.affixed)return null!=n?!(o+this.unpin<=i.top)&&"bottom":!(e-r>=o+a)&&"bottom";var s=null==this.affixed,l=s?o:i.top;return null!=n&&n>=o?"top":null!=r&&l+(s?a:t)>=e-r&&"bottom"},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var e=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-e},n.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),r=this.options.offset,o=r.top,i=r.bottom,a=Math.max(e(document).height(),e(document.body).height());"object"!=typeof r&&(i=o=r),"function"==typeof o&&(o=r.top(this.$element)),"function"==typeof i&&(i=r.bottom(this.$element));var s=this.getState(a,t,o,i);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var l="affix"+(s?"-"+s:""),c=e.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:a-t-i})}};var r=e.fn.affix;e.fn.affix=t,e.fn.affix.Constructor=n,e.fn.affix.noConflict=function(){return e.fn.affix=r,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var n=e(this),r=n.data();r.offset=r.offset||{},null!=r.offsetBottom&&(r.offset.bottom=r.offsetBottom),null!=r.offsetTop&&(r.offset.top=r.offsetTop),t.call(n,r)})})}(jQuery),define("bootstrap",["jquery"],function(){}),function(e,t){"use strict";"function"==typeof define&&define.amd?define("bootbox",["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):e.bootbox=t(e.jQuery)}(this,function e(t,n){"use strict";function r(e){var t=p[d.locale];return t?t[e]:p.en[e]}function o(e,n,r){e.stopPropagation(),e.preventDefault(),t.isFunction(r)&&!1===r.call(n,e)||n.modal("hide")}function i(e,n){var r=0;t.each(e,function(e,t){n(e,t,r++)})}function a(e,n,r){return t.extend(!0,{},e,function(e,t){var n=e.length,r={};if(1>n||n>2)throw new Error("Invalid argument length");return 2===n||"string"==typeof e[0]?(r[t[0]]=e[0],r[t[1]]=e[1]):r=e[0],r}(n,r))}function s(e,t,n,r){return c(a({className:"bootbox-"+e,buttons:l.apply(null,t)},r,n),t)}function l(){for(var e={},t=0,n=arguments.length;n>t;t++){var o=arguments[t],i=o.toLowerCase(),a=o.toUpperCase();e[i]={label:r(a)}}return e}function c(e,t){var r={};return i(t,function(e,t){r[t]=!0}),i(e.buttons,function(e){if(r[e]===n)throw new Error("button key "+e+" is not allowed (options are "+t.join("\n")+")")}),e}var u={dialog:"<div class='bootbox modal' tabindex='-1' role='dialog'><div class='modal-dialog'><div class='modal-content'><div class='modal-body'><div class='bootbox-body'></div></div></div></div></div>",header:"<div class='modal-header'><h4 class='modal-title'></h4></div>",footer:"<div class='modal-footer'></div>",closeButton:"<button type='button' class='bootbox-close-button close' data-dismiss='modal' aria-hidden='true'>&times;</button>",form:"<form class='bootbox-form'></form>",inputs:{text:"<input class='bootbox-input bootbox-input-text form-control' autocomplete=off type=text />",textarea:"<textarea class='bootbox-input bootbox-input-textarea form-control'></textarea>",email:"<input class='bootbox-input bootbox-input-email form-control' autocomplete='off' type='email' />",select:"<select class='bootbox-input bootbox-input-select form-control'></select>",checkbox:"<div class='checkbox'><label><input class='bootbox-input bootbox-input-checkbox' type='checkbox' /></label></div>",date:"<input class='bootbox-input bootbox-input-date form-control' autocomplete=off type='date' />",time:"<input class='bootbox-input bootbox-input-time form-control' autocomplete=off type='time' />",number:"<input class='bootbox-input bootbox-input-number form-control' autocomplete=off type='number' />",password:"<input class='bootbox-input bootbox-input-password form-control' autocomplete='off' type='password' />"}},d={locale:"en",backdrop:"static",animate:!0,className:null,closeButton:!0,show:!0,container:"body"},f={alert:function(){var e;if((e=s("alert",["ok"],["message","callback"],arguments)).callback&&!t.isFunction(e.callback))throw new Error("alert requires callback property to be a function when provided");return e.buttons.ok.callback=e.onEscape=function(){return!t.isFunction(e.callback)||e.callback.call(this)},f.dialog(e)},confirm:function(){var e;if((e=s("confirm",["cancel","confirm"],["message","callback"],arguments)).buttons.cancel.callback=e.onEscape=function(){return e.callback.call(this,!1)},e.buttons.confirm.callback=function(){return e.callback.call(this,!0)},!t.isFunction(e.callback))throw new Error("confirm requires a callback");return f.dialog(e)},prompt:function(){var e,r,o,s,d,p,h;if(s=t(u.form),r={className:"bootbox-prompt",buttons:l("cancel","confirm"),value:"",inputType:"text"},p=(e=c(a(r,arguments,["title","callback"]),["cancel","confirm"])).show===n||e.show,e.message=s,e.buttons.cancel.callback=e.onEscape=function(){return e.callback.call(this,null)},e.buttons.confirm.callback=function(){var n;switch(e.inputType){case"text":case"textarea":case"email":case"select":case"date":case"time":case"number":case"password":n=d.val();break;case"checkbox":var r=d.find("input:checked");n=[],i(r,function(e,r){n.push(t(r).val())})}return e.callback.call(this,n)},e.show=!1,!e.title)throw new Error("prompt requires a title");if(!t.isFunction(e.callback))throw new Error("prompt requires a callback");if(!u.inputs[e.inputType])throw new Error("invalid prompt type");switch(d=t(u.inputs[e.inputType]),e.inputType){case"text":case"textarea":case"email":case"date":case"time":case"number":case"password":d.val(e.value);break;case"select":var g={};if(h=e.inputOptions||[],!t.isArray(h))throw new Error("Please pass an array of input options");if(!h.length)throw new Error("prompt with select requires options");i(h,function(e,r){var o=d;if(r.value===n||r.text===n)throw new Error("given options in wrong format");r.group&&(g[r.group]||(g[r.group]=t("<optgroup/>").attr("label",r.group)),o=g[r.group]),o.append("<option value='"+r.value+"'>"+r.text+"</option>")}),i(g,function(e,t){d.append(t)}),d.val(e.value);break;case"checkbox":var m=t.isArray(e.value)?e.value:[e.value];if(!(h=e.inputOptions||[]).length)throw new Error("prompt with checkbox requires options");if(!h[0].value||!h[0].text)throw new Error("given options in wrong format");d=t("<div/>"),i(h,function(n,r){var o=t(u.inputs[e.inputType]);o.find("input").attr("value",r.value),o.find("label").append(r.text),i(m,function(e,t){t===r.value&&o.find("input").prop("checked",!0)}),d.append(o)})}return e.placeholder&&d.attr("placeholder",e.placeholder),e.pattern&&d.attr("pattern",e.pattern),e.maxlength&&d.attr("maxlength",e.maxlength),s.append(d),s.on("submit",function(e){e.preventDefault(),e.stopPropagation(),o.find(".btn-primary").click()}),(o=f.dialog(e)).off("shown.bs.modal"),o.on("shown.bs.modal",function(){d.focus()}),!0===p&&o.modal("show"),o}};f.dialog=function(e){e=function(e){var n,r;if("object"!=typeof e)throw new Error("Please supply an object of options");if(!e.message)throw new Error("Please specify a message");return(e=t.extend({},d,e)).buttons||(e.buttons={}),n=e.buttons,r=function(e){var t,n=0;for(t in e)n++;return n}(n),i(n,function(e,o,i){if(t.isFunction(o)&&(o=n[e]={callback:o}),"object"!==t.type(o))throw new Error("button with key "+e+" must be an object");o.label||(o.label=e),o.className||(o.className=2>=r&&i===r-1?"btn-primary":"btn-default")}),e}(e);var r=t(u.dialog),a=r.find(".modal-dialog"),s=r.find(".modal-body"),l=e.buttons,c="",f={onEscape:e.onEscape};if(t.fn.modal===n)throw new Error("$.fn.modal is not defined; please double check you have included the Bootstrap JavaScript library. See http://getbootstrap.com/javascript/ for more details.");if(i(l,function(e,t){c+="<button data-bb-handler='"+e+"' type='button' class='btn "+t.className+"'>"+t.label+"</button>",f[e]=t.callback}),s.find(".bootbox-body").html(e.message),!0===e.animate&&r.addClass("fade"),e.className&&r.addClass(e.className),"large"===e.size?a.addClass("modal-lg"):"small"===e.size&&a.addClass("modal-sm"),e.title&&s.before(u.header),e.closeButton){var p=t(u.closeButton);e.title?r.find(".modal-header").prepend(p):p.prependTo(s)}return e.title&&r.find(".modal-title").html(e.title),c.length&&(s.after(u.footer),r.find(".modal-footer").html(c)),r.on("hidden.bs.modal",function(e){e.target===this&&r.remove()}),r.on("shown.bs.modal",function(){r.find(".btn-primary:first").focus()}),"static"!==e.backdrop&&r.on("click.dismiss.bs.modal",function(e){r.children(".modal-backdrop").length&&(e.currentTarget=r.children(".modal-backdrop").get(0)),e.target===e.currentTarget&&r.trigger("escape.close.bb")}),r.on("escape.close.bb",function(e){f.onEscape&&o(e,r,f.onEscape)}),r.on("click",".modal-footer button",function(e){var n=t(this).data("bb-handler");o(e,r,f[n])}),r.on("click",".bootbox-close-button",function(e){o(e,r,f.onEscape)}),r.on("keyup",function(e){27===e.which&&r.trigger("escape.close.bb")}),t(e.container).append(r),r.modal({backdrop:!!e.backdrop&&"static",keyboard:!1,show:!1}),e.show&&r.modal("show"),r},f.setDefaults=function(){var e={};2===arguments.length?e[arguments[0]]=arguments[1]:e=arguments[0],t.extend(d,e)},f.hideAll=function(){return t(".bootbox").modal("hide"),f};var p={bg_BG:{OK:"Ок",CANCEL:"Отказ",CONFIRM:"Потвърждавам"},br:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Sim"},cs:{OK:"OK",CANCEL:"Zrušit",CONFIRM:"Potvrdit"},da:{OK:"OK",CANCEL:"Annuller",CONFIRM:"Accepter"},de:{OK:"OK",CANCEL:"Abbrechen",CONFIRM:"Akzeptieren"},el:{OK:"Εντάξει",CANCEL:"Ακύρωση",CONFIRM:"Επιβεβαίωση"},en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"},es:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Aceptar"},et:{OK:"OK",CANCEL:"Katkesta",CONFIRM:"OK"},fa:{OK:"قبول",CANCEL:"لغو",CONFIRM:"تایید"},fi:{OK:"OK",CANCEL:"Peruuta",CONFIRM:"OK"},fr:{OK:"OK",CANCEL:"Annuler",CONFIRM:"D'accord"},he:{OK:"אישור",CANCEL:"ביטול",CONFIRM:"אישור"},hu:{OK:"OK",CANCEL:"Mégsem",CONFIRM:"Megerősít"},hr:{OK:"OK",CANCEL:"Odustani",CONFIRM:"Potvrdi"},id:{OK:"OK",CANCEL:"Batal",CONFIRM:"OK"},it:{OK:"OK",CANCEL:"Annulla",CONFIRM:"Conferma"},ja:{OK:"OK",CANCEL:"キャンセル",CONFIRM:"確認"},lt:{OK:"Gerai",CANCEL:"Atšaukti",CONFIRM:"Patvirtinti"},lv:{OK:"Labi",CANCEL:"Atcelt",CONFIRM:"Apstiprināt"},nl:{OK:"OK",CANCEL:"Annuleren",CONFIRM:"Accepteren"},no:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},pl:{OK:"OK",CANCEL:"Anuluj",CONFIRM:"Potwierdź"},pt:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Confirmar"},ru:{OK:"OK",CANCEL:"Отмена",CONFIRM:"Применить"},sq:{OK:"OK",CANCEL:"Anulo",CONFIRM:"Prano"},sv:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},th:{OK:"ตกลง",CANCEL:"ยกเลิก",CONFIRM:"ยืนยัน"},tr:{OK:"Tamam",CANCEL:"İptal",CONFIRM:"Onayla"},zh_CN:{OK:"OK",CANCEL:"取消",CONFIRM:"确认"},zh_TW:{OK:"OK",CANCEL:"取消",CONFIRM:"確認"}};return f.addLocale=function(e,n){return t.each(["OK","CANCEL","CONFIRM"],function(e,t){if(!n[t])throw new Error("Please supply a translation for '"+t+"'")}),p[e]={OK:n.OK,CANCEL:n.CANCEL,CONFIRM:n.CONFIRM},f},f.removeLocale=function(e){return delete p[e],f},f.setLocale=function(e){return f.setDefaults("locale",e)},f.init=function(n){return e(n||t)},f}),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define("localForage",[],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).localforage=e()}}(function(){return function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){var n=t[a][1][e];return o(n||e)},u,u.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){(function(e){"use strict";function n(){c=!0;for(var e,t,n=u.length;n;){for(t=u,u=[],e=-1;++e<n;)t[e]();n=u.length}c=!1}var r,o=e.MutationObserver||e.WebKitMutationObserver;if(o){var i=0,a=new o(n),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),r=function(){s.data=i=++i%2}}else if(e.setImmediate||void 0===e.MessageChannel)r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){n(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(n,0)};else{var l=new e.MessageChannel;l.port1.onmessage=n,r=function(){l.port2.postMessage(0)}}var c,u=[];t.exports=function(e){1!==u.push(e)||c||r()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){"use strict";function r(){}function o(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=h,this.queue=[],this.outcome=void 0,e!==r&&l(this,e)}function i(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function a(e,t,n){u(function(){var r;try{r=t(n)}catch(t){return d.reject(e,t)}r===e?d.reject(e,new TypeError("Cannot resolve promise with itself")):d.resolve(e,r)})}function s(e){var t=e&&e.then;return e&&"object"==typeof e&&"function"==typeof t?function(){t.apply(e,arguments)}:void 0}function l(e,t){function n(t){o||(o=!0,d.reject(e,t))}function r(t){o||(o=!0,d.resolve(e,t))}var o=!1,i=c(function(){t(r,n)});"error"===i.status&&n(i.value)}function c(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}var u=e(1),d={},f=["REJECTED"],p=["FULFILLED"],h=["PENDING"];t.exports=n=o,o.prototype.catch=function(e){return this.then(null,e)},o.prototype.then=function(e,t){if("function"!=typeof e&&this.state===p||"function"!=typeof t&&this.state===f)return this;var n=new this.constructor(r);this.state!==h?a(n,this.state===p?e:t,this.outcome):this.queue.push(new i(n,e,t));return n},i.prototype.callFulfilled=function(e){d.resolve(this.promise,e)},i.prototype.otherCallFulfilled=function(e){a(this.promise,this.onFulfilled,e)},i.prototype.callRejected=function(e){d.reject(this.promise,e)},i.prototype.otherCallRejected=function(e){a(this.promise,this.onRejected,e)},d.resolve=function(e,t){var n=c(s,t);if("error"===n.status)return d.reject(e,n.value);var r=n.value;if(r)l(e,r);else{e.state=p,e.outcome=t;for(var o=-1,i=e.queue.length;++o<i;)e.queue[o].callFulfilled(t)}return e},d.reject=function(e,t){e.state=f,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},n.resolve=function(e){return e instanceof this?e:d.resolve(new this(r),e)},n.reject=function(e){var t=new this(r);return d.reject(t,e)},n.all=function(e){function t(e,t){n.resolve(e).then(function(e){a[t]=e,++s!==o||i||(i=!0,d.resolve(c,a))},function(e){i||(i=!0,d.reject(c,e))})}var n=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var o=e.length,i=!1;if(!o)return this.resolve([]);for(var a=new Array(o),s=0,l=-1,c=new this(r);++l<o;)t(e[l],l);return c},n.race=function(e){function t(e){n.resolve(e).then(function(e){i||(i=!0,d.resolve(s,e))},function(e){i||(i=!0,d.reject(s,e))})}var n=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var o=e.length,i=!1;if(!o)return this.resolve([]);for(var a=-1,s=new this(r);++a<o;)t(e[a]);return s}},{1:1}],3:[function(e,t,n){(function(t){"use strict";"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,n){"use strict";function r(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(o){if("TypeError"!==o.name)throw o;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}function o(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}function i(e){return"boolean"==typeof y?w.resolve(y):function(e){return new w(function(t){var n=r([""]);e.objectStore(x).put(n,"key"),e.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},e.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);t(n||!e||parseInt(e[1],10)>=43)}}).catch(function(){return!1})}(e).then(function(e){return y=e})}function a(e,t){return new w(function(n,r){if(e.db){if(!t)return n(e.db);(function(e){var t=b[e.name],n={};n.promise=new w(function(e){n.resolve=e}),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then(function(){return n.promise}):t.dbReady=n.promise})(e),e.db.close()}var o=[e.name];t&&o.push(e.version);var i=v.open.apply(v,o);t&&(i.onupgradeneeded=function(t){var n=i.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(x)}catch(n){if("ConstraintError"!==n.name)throw n;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),i.onerror=function(){r(i.error)},i.onsuccess=function(){n(i.result),function(e){var t=b[e.name].deferredOperations.pop();t&&t.resolve()}(e)}})}function s(e){return r([function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),o=0;t>o;o++)r[o]=e.charCodeAt(o);return n}(atob(e.data))],{type:e.type})}function l(e){return e&&e.__local_forage_encoded_blob}function c(e){var t=this,n=t._initReady().then(function(){var e=b[t._dbInfo.name];return e&&e.dbReady?e.dbReady:void 0});return n.then(e,e),n}function u(e){var t,n,r,o,i,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var c=new ArrayBuffer(a),u=new Uint8Array(c);for(t=0;s>t;t+=4)n=S.indexOf(e[t]),r=S.indexOf(e[t+1]),o=S.indexOf(e[t+2]),i=S.indexOf(e[t+3]),u[l++]=n<<2|r>>4,u[l++]=(15&r)<<4|o>>2,u[l++]=(3&o)<<6|63&i;return c}function d(e){var t,n=new Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=S[n[t]>>2],r+=S[(3&n[t])<<4|n[t+1]>>4],r+=S[(15&n[t+1])<<2|n[t+2]>>6],r+=S[63&n[t+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}function f(e,t,n){"function"==typeof t&&e.then(t),"function"==typeof n&&e.catch(n)}function p(e,t){e[t]=function(){var n=arguments;return e.ready().then(function(){return e[t].apply(e,n)})}}function h(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(Y(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}function g(e){for(var t in W)if(W.hasOwnProperty(t)&&W[t]===e)return!0;return!1}var m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},v="undefined"!=typeof indexedDB?indexedDB:"undefined"!=typeof webkitIndexedDB?webkitIndexedDB:"undefined"!=typeof mozIndexedDB?mozIndexedDB:"undefined"!=typeof OIndexedDB?OIndexedDB:"undefined"!=typeof msIndexedDB?msIndexedDB:void 0;"undefined"==typeof Promise&&void 0!==e&&e(3);var y,b,w=Promise,x="local-forage-detect-blob-support",C={_driver:"asyncStorage",_initStorage:function(e){function t(){return w.resolve()}var n=this,r={db:null};if(e)for(var o in e)r[o]=e[o];b||(b={});var i=b[r.name];i||(i={forages:[],db:null,dbReady:null,deferredOperations:[]},b[r.name]=i),i.forages.push(n),n._initReady||(n._initReady=n.ready,n.ready=c);for(var s=[],l=0;l<i.forages.length;l++){var u=i.forages[l];u!==n&&s.push(u._initReady().catch(t))}var d=i.forages.slice(0);return w.all(s).then(function(){return r.db=i.db,a(r,!1)}).then(function(e){return r.db=e,function(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,o=e.version>e.db.version;if(r&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),o||n){if(n){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}(r,n._defaultConfig.version)?function(e){return a(e,!0)}(r):e}).then(function(e){r.db=i.db=e,n._dbInfo=r;for(var t=0;t<d.length;t++){var o=d[t];o!==n&&(o._dbInfo.db=r.db,o._dbInfo.version=r.version)}})},iterate:function(e,t){var n=this,r=new w(function(t,r){n.ready().then(function(){var o=n._dbInfo,i=o.db.transaction(o.storeName,"readonly").objectStore(o.storeName).openCursor(),a=1;i.onsuccess=function(){var n=i.result;if(n){var r=n.value;l(r)&&(r=s(r));var o=e(r,n.key,a++);void 0!==o?t(o):n.continue()}else t()},i.onerror=function(){r(i.error)}}).catch(r)});return o(r,t),r},getItem:function(e,t){var n=this;"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e));var r=new w(function(t,r){n.ready().then(function(){var o=n._dbInfo,i=o.db.transaction(o.storeName,"readonly").objectStore(o.storeName).get(e);i.onsuccess=function(){var e=i.result;void 0===e&&(e=null),l(e)&&(e=s(e)),t(e)},i.onerror=function(){r(i.error)}}).catch(r)});return o(r,t),r},setItem:function(e,t,n){var r=this;"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e));var a=new w(function(n,o){var a;r.ready().then(function(){return a=r._dbInfo,t instanceof Blob?i(a.db).then(function(e){return e?t:function(e){return new w(function(t,n){var r=new FileReader;r.onerror=n,r.onloadend=function(n){var r=btoa(n.target.result||"");t({__local_forage_encoded_blob:!0,data:r,type:e.type})},r.readAsBinaryString(e)})}(t)}):t}).then(function(t){var r=a.db.transaction(a.storeName,"readwrite"),i=r.objectStore(a.storeName);null===t&&(t=void 0),r.oncomplete=function(){void 0===t&&(t=null),n(t)},r.onabort=r.onerror=function(){var e=s.error?s.error:s.transaction.error;o(e)};var s=i.put(t,e)}).catch(o)});return o(a,n),a},removeItem:function(e,t){var n=this;"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e));var r=new w(function(t,r){n.ready().then(function(){var o=n._dbInfo,i=o.db.transaction(o.storeName,"readwrite"),a=i.objectStore(o.storeName).delete(e);i.oncomplete=function(){t()},i.onerror=function(){r(a.error)},i.onabort=function(){var e=a.error?a.error:a.transaction.error;r(e)}}).catch(r)});return o(r,t),r},clear:function(e){var t=this,n=new w(function(e,n){t.ready().then(function(){var r=t._dbInfo,o=r.db.transaction(r.storeName,"readwrite"),i=o.objectStore(r.storeName).clear();o.oncomplete=function(){e()},o.onabort=o.onerror=function(){var e=i.error?i.error:i.transaction.error;n(e)}}).catch(n)});return o(n,e),n},length:function(e){var t=this,n=new w(function(e,n){t.ready().then(function(){var r=t._dbInfo,o=r.db.transaction(r.storeName,"readonly").objectStore(r.storeName).count();o.onsuccess=function(){e(o.result)},o.onerror=function(){n(o.error)}}).catch(n)});return o(n,e),n},key:function(e,t){var n=this,r=new w(function(t,r){return 0>e?void t(null):void n.ready().then(function(){var o=n._dbInfo,i=!1,a=o.db.transaction(o.storeName,"readonly").objectStore(o.storeName).openCursor();a.onsuccess=function(){var n=a.result;return n?void(0===e?t(n.key):i?t(n.key):(i=!0,n.advance(e))):void t(null)},a.onerror=function(){r(a.error)}}).catch(r)});return o(r,t),r},keys:function(e){var t=this,n=new w(function(e,n){t.ready().then(function(){var r=t._dbInfo,o=r.db.transaction(r.storeName,"readonly").objectStore(r.storeName).openCursor(),i=[];o.onsuccess=function(){var t=o.result;return t?(i.push(t.key),void t.continue()):void e(i)},o.onerror=function(){n(o.error)}}).catch(n)});return o(n,e),n}},S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",T="~~local_forage_type~",k=/^~~local_forage_type~([^~]+)~/,D="__lfsc__:",_=D.length,E="arbf",O="blob",A="si08",$="ui08",I="uic8",P="si16",R="si32",N="ur16",L="ui32",j="fl32",M="fl64",F=_+E.length,B={serialize:function(e,t){var n="";if(e&&(n=e.toString()),e&&("[object ArrayBuffer]"===e.toString()||e.buffer&&"[object ArrayBuffer]"===e.buffer.toString())){var r,o=D;e instanceof ArrayBuffer?(r=e,o+=E):(r=e.buffer,"[object Int8Array]"===n?o+=A:"[object Uint8Array]"===n?o+=$:"[object Uint8ClampedArray]"===n?o+=I:"[object Int16Array]"===n?o+=P:"[object Uint16Array]"===n?o+=N:"[object Int32Array]"===n?o+=R:"[object Uint32Array]"===n?o+=L:"[object Float32Array]"===n?o+=j:"[object Float64Array]"===n?o+=M:t(new Error("Failed to get type for BinaryArray"))),t(o+d(r))}else if("[object Blob]"===n){var i=new FileReader;i.onload=function(){var n=T+e.type+"~"+d(this.result);t(D+O+n)},i.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(n){console.error("Couldn't convert value into a JSON string: ",e),t(null,n)}},deserialize:function(e){if(e.substring(0,_)!==D)return JSON.parse(e);var t,n=e.substring(F),o=e.substring(_,F);if(o===O&&k.test(n)){var i=n.match(k);t=i[1],n=n.substring(i[0].length)}var a=u(n);switch(o){case E:return a;case O:return r([a],{type:t});case A:return new Int8Array(a);case $:return new Uint8Array(a);case I:return new Uint8ClampedArray(a);case P:return new Int16Array(a);case N:return new Uint16Array(a);case R:return new Int32Array(a);case L:return new Uint32Array(a);case j:return new Float32Array(a);case M:return new Float64Array(a);default:throw new Error("Unkown type: "+o)}},stringToBuffer:u,bufferToString:d},q={_driver:"webSQLStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!=typeof e[r]?e[r].toString():e[r];var o=new w(function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(e){return r(e)}n.db.transaction(function(o){o.executeSql("CREATE TABLE IF NOT EXISTS "+n.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){t._dbInfo=n,e()},function(e,t){r(t)})})});return n.serializer=B,o},iterate:function(e,t){var n=this,r=new w(function(t,r){n.ready().then(function(){var o=n._dbInfo;o.db.transaction(function(n){n.executeSql("SELECT * FROM "+o.storeName,[],function(n,r){for(var i=r.rows,a=i.length,s=0;a>s;s++){var l=i.item(s),c=l.value;if(c&&(c=o.serializer.deserialize(c)),void 0!==(c=e(c,l.key,s+1)))return void t(c)}t()},function(e,t){r(t)})})}).catch(r)});return o(r,t),r},getItem:function(e,t){var n=this;"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e));var r=new w(function(t,r){n.ready().then(function(){var o=n._dbInfo;o.db.transaction(function(n){n.executeSql("SELECT * FROM "+o.storeName+" WHERE key = ? LIMIT 1",[e],function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=o.serializer.deserialize(r)),t(r)},function(e,t){r(t)})})}).catch(r)});return o(r,t),r},setItem:function(e,t,n){var r=this;"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e));var i=new w(function(n,o){r.ready().then(function(){void 0===t&&(t=null);var i=t,a=r._dbInfo;a.serializer.serialize(t,function(t,r){r?o(r):a.db.transaction(function(r){r.executeSql("INSERT OR REPLACE INTO "+a.storeName+" (key, value) VALUES (?, ?)",[e,t],function(){n(i)},function(e,t){o(t)})},function(e){e.code===e.QUOTA_ERR&&o(e)})})}).catch(o)});return o(i,n),i},removeItem:function(e,t){var n=this;"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e));var r=new w(function(t,r){n.ready().then(function(){var o=n._dbInfo;o.db.transaction(function(n){n.executeSql("DELETE FROM "+o.storeName+" WHERE key = ?",[e],function(){t()},function(e,t){r(t)})})}).catch(r)});return o(r,t),r},clear:function(e){var t=this,n=new w(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){t.executeSql("DELETE FROM "+r.storeName,[],function(){e()},function(e,t){n(t)})})}).catch(n)});return o(n,e),n},length:function(e){var t=this,n=new w(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){t.executeSql("SELECT COUNT(key) as c FROM "+r.storeName,[],function(t,n){var r=n.rows.item(0).c;e(r)},function(e,t){n(t)})})}).catch(n)});return o(n,e),n},key:function(e,t){var n=this,r=new w(function(t,r){n.ready().then(function(){var o=n._dbInfo;o.db.transaction(function(n){n.executeSql("SELECT key FROM "+o.storeName+" WHERE id = ? LIMIT 1",[e+1],function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)},function(e,t){r(t)})})}).catch(r)});return o(r,t),r},keys:function(e){var t=this,n=new w(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){t.executeSql("SELECT key FROM "+r.storeName,[],function(t,n){for(var r=[],o=0;o<n.rows.length;o++)r.push(n.rows.item(o).key);e(r)},function(e,t){n(t)})})}).catch(n)});return o(n,e),n}},H={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var n in e)t[n]=e[n];return t.keyPrefix=t.name+"/",t.storeName!==this._defaultConfig.storeName&&(t.keyPrefix+=t.storeName+"/"),this._dbInfo=t,t.serializer=B,w.resolve()},iterate:function(e,t){var n=this,r=n.ready().then(function(){for(var t=n._dbInfo,r=t.keyPrefix,o=r.length,i=localStorage.length,a=1,s=0;i>s;s++){var l=localStorage.key(s);if(0===l.indexOf(r)){var c=localStorage.getItem(l);if(c&&(c=t.serializer.deserialize(c)),void 0!==(c=e(c,l.substring(o),a++)))return c}}});return o(r,t),r},getItem:function(e,t){var n=this;"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e));var r=n.ready().then(function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&(r=t.serializer.deserialize(r)),r});return o(r,t),r},setItem:function(e,t,n){var r=this;"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e));var i=r.ready().then(function(){void 0===t&&(t=null);var n=t;return new w(function(o,i){var a=r._dbInfo;a.serializer.serialize(t,function(t,r){if(r)i(r);else try{localStorage.setItem(a.keyPrefix+e,t),o(n)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||i(e),i(e)}})})});return o(i,n),i},removeItem:function(e,t){var n=this;"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e));var r=n.ready().then(function(){var t=n._dbInfo;localStorage.removeItem(t.keyPrefix+e)});return o(r,t),r},clear:function(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}});return o(n,e),n},length:function(e){var t=this.keys().then(function(e){return e.length});return o(t,e),t},key:function(e,t){var n=this,r=n.ready().then(function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t});return o(r,t),r},keys:function(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo,n=localStorage.length,r=[],o=0;n>o;o++)0===localStorage.key(o).indexOf(e.keyPrefix)&&r.push(localStorage.key(o).substring(e.keyPrefix.length));return r});return o(n,e),n}},U={},W={INDEXEDDB:"asyncStorage",LOCALSTORAGE:"localStorageWrapper",WEBSQL:"webSQLStorage"},z=["clear","getItem","iterate","key","keys","length","removeItem","setItem"],V={description:"",driver:[W.INDEXEDDB,W.WEBSQL,W.LOCALSTORAGE].slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1},X={};X[W.INDEXEDDB]=function(){try{return!!v&&!("undefined"!=typeof openDatabase&&"undefined"!=typeof navigator&&navigator.userAgent&&/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent))&&v&&"function"==typeof v.open&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}(),X[W.WEBSQL]="function"==typeof openDatabase,X[W.LOCALSTORAGE]=function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&localStorage.setItem}catch(e){return!1}}();var Y=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},G=new(function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.INDEXEDDB=W.INDEXEDDB,this.LOCALSTORAGE=W.LOCALSTORAGE,this.WEBSQL=W.WEBSQL,this._defaultConfig=h({},V),this._config=h({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver)}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":m(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e)"storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),this._config[t]=e[t];return"driver"in e&&e.driver&&this.setDriver(this._config.driver),!0}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var r=new w(function(t,n){try{var r=e._driver,o=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver"),i=new Error("Custom driver name already in use: "+e._driver);if(!e._driver)return void n(o);if(g(e._driver))return void n(i);for(var a=z.concat("_initStorage"),s=0;s<a.length;s++){var l=a[s];if(!l||!e[l]||"function"!=typeof e[l])return void n(o)}var c=w.resolve(!0);"_support"in e&&(c=e._support&&"function"==typeof e._support?e._support():w.resolve(!!e._support)),c.then(function(n){X[r]=n,U[r]=e,t()},n)}catch(e){n(e)}});return f(r,t,n),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,n){var r=this,o=w.resolve().then(function(){if(!g(e)){if(U[e])return U[e];throw new Error("Driver not found.")}switch(e){case r.INDEXEDDB:return C;case r.LOCALSTORAGE:return H;case r.WEBSQL:return q}});return f(o,t,n),o},e.prototype.getSerializer=function(e){var t=w.resolve(B);return f(t,e),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then(function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready});return f(n,e,e),n},e.prototype.setDriver=function(e,t,n){function r(){o._config.driver=o.driver()}var o=this;Y(e)||(e=[e]);var i=this._getSupportedDrivers(e),a=null!==this._driverSet?this._driverSet.catch(function(){return w.resolve()}):w.resolve();return this._driverSet=a.then(function(){var e=i[0];return o._dbInfo=null,o._ready=null,o.getDriver(e).then(function(e){o._driver=e._driver,r(),o._wrapLibraryMethodsWithReady(),o._initDriver=function(e){return function(){var t=0;return function n(){for(;t<e.length;){var i=e[t];return t++,o._dbInfo=null,o._ready=null,o.getDriver(i).then(function(e){return o._extend(e),r(),o._ready=o._initStorage(o._config),o._ready}).catch(n)}r();var a=new Error("No available storage method found.");return o._driverSet=w.reject(a),o._driverSet}()}}(i)})}).catch(function(){r();var e=new Error("No available storage method found.");return o._driverSet=w.reject(e),o._driverSet}),f(this._driverSet,t,n),this._driverSet},e.prototype.supports=function(e){return!!X[e]},e.prototype._extend=function(e){h(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],n=0,r=e.length;r>n;n++){var o=e[n];this.supports(o)&&t.push(o)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0;e<z.length;e++)p(this,z[e])},e.prototype.createInstance=function(t){return new e(t)},e}());t.exports=G},{3:3}]},{},[4])(4)}),function(e){"use strict";function t(e){var t=e.length,r=n.type(e);return"function"!==r&&!n.isWindow(e)&&(!(1!==e.nodeType||!t)||"array"===r||0===t||"number"==typeof t&&t>0&&t-1 in e)}if(!e.jQuery){var n=function(e,t){return new n.fn.init(e,t)};n.isWindow=function(e){return e&&e===e.window},n.type=function(e){return e?"object"==typeof e||"function"==typeof e?o[a.call(e)]||"object":typeof e:e+""},n.isArray=Array.isArray||function(e){return"array"===n.type(e)},n.isPlainObject=function(e){var t;if(!e||"object"!==n.type(e)||e.nodeType||n.isWindow(e))return!1;try{if(e.constructor&&!i.call(e,"constructor")&&!i.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(t in e);return void 0===t||i.call(e,t)},n.each=function(e,n,r){var o=0,i=e.length,a=t(e);if(r){if(a)for(;o<i&&!1!==n.apply(e[o],r);o++);else for(o in e)if(e.hasOwnProperty(o)&&!1===n.apply(e[o],r))break}else if(a)for(;o<i&&!1!==n.call(e[o],o,e[o]);o++);else for(o in e)if(e.hasOwnProperty(o)&&!1===n.call(e[o],o,e[o]))break;return e},n.data=function(e,t,o){if(void 0===o){var i=e[n.expando],a=i&&r[i];if(void 0===t)return a;if(a&&t in a)return a[t]}else if(void 0!==t){var s=e[n.expando]||(e[n.expando]=++n.uuid);return r[s]=r[s]||{},r[s][t]=o,o}},n.removeData=function(e,t){var o=e[n.expando],i=o&&r[o];i&&(t?n.each(t,function(e,t){delete i[t]}):delete r[o])},n.extend=function(){var e,t,r,o,i,a,s=arguments[0]||{},l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[l]||{},l++),"object"!=typeof s&&"function"!==n.type(s)&&(s={}),l===c&&(s=this,l--);l<c;l++)if(i=arguments[l])for(o in i)i.hasOwnProperty(o)&&(e=s[o],s!==(r=i[o])&&(u&&r&&(n.isPlainObject(r)||(t=n.isArray(r)))?(t?(t=!1,a=e&&n.isArray(e)?e:[]):a=e&&n.isPlainObject(e)?e:{},s[o]=n.extend(u,a,r)):void 0!==r&&(s[o]=r)));return s},n.queue=function(e,r,o){if(e){r=(r||"fx")+"queue";var i=n.data(e,r);return o?(!i||n.isArray(o)?i=n.data(e,r,function(e,n){var r=[];return e&&(t(Object(e))?function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;)e[o++]=t[r++];if(n!=n)for(;void 0!==t[r];)e[o++]=t[r++];e.length=o}(r,"string"==typeof e?[e]:e):[].push.call(r,e)),r}(o)):i.push(o),i):i||[]}},n.dequeue=function(e,t){n.each(e.nodeType?[e]:e,function(e,r){t=t||"fx";var o=n.queue(r,t),i=o.shift();"inprogress"===i&&(i=o.shift()),i&&("fx"===t&&o.unshift("inprogress"),i.call(r,function(){n.dequeue(r,t)}))})},n.fn=n.prototype={init:function(e){if(e.nodeType)return this[0]=e,this;throw new Error("Not a DOM node.")},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(e.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(e.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){var e=this[0],t=function(e){for(var t=e.offsetParent;t&&"html"!==t.nodeName.toLowerCase()&&t.style&&"static"===t.style.position.toLowerCase();)t=t.offsetParent;return t||document}(e),r=this.offset(),o=/^(?:body|html)$/i.test(t.nodeName)?{top:0,left:0}:n(t).offset();return r.top-=parseFloat(e.style.marginTop)||0,r.left-=parseFloat(e.style.marginLeft)||0,t.style&&(o.top+=parseFloat(t.style.borderTopWidth)||0,o.left+=parseFloat(t.style.borderLeftWidth)||0),{top:r.top-o.top,left:r.left-o.left}}};var r={};n.expando="velocity"+(new Date).getTime(),n.uuid=0;for(var o={},i=o.hasOwnProperty,a=o.toString,s="Boolean Number String Function Array Date RegExp Object Error".split(" "),l=0;l<s.length;l++)o["[object "+s[l]+"]"]=s[l].toLowerCase();n.fn.init.prototype=n.fn,e.Velocity={Utilities:n}}}(window),function(e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e():"function"==typeof define&&define.amd?define("velocity",e):e()}(function(){"use strict";return function(e,t,n,r){function o(e){return y.isWrapped(e)?e=m.call(e):y.isNode(e)&&(e=[e]),e}function i(e){var t=f.data(e,"velocity");return null===t?r:t}function a(e,t){var n=i(e);n&&n.delayTimer&&!n.delayPaused&&(n.delayRemaining=n.delay-t+n.delayBegin,n.delayPaused=!0,clearTimeout(n.delayTimer.setTimeout))}function s(e,t){var n=i(e);n&&n.delayTimer&&n.delayPaused&&(n.delayPaused=!1,n.delayTimer.setTimeout=setTimeout(n.delayTimer.next,n.delayRemaining))}function l(e,n,r,o){function i(e,t){return 1-3*t+3*e}function a(e,t){return 3*t-6*e}function s(e){return 3*e}function l(e,t,n){return((i(t,n)*e+a(t,n))*e+s(t))*e}function c(e,t,n){return 3*i(t,n)*e*e+2*a(t,n)*e+s(t)}function u(t,n){for(var o=0;o<p;++o){var i=c(n,e,r);if(0===i)return n;n-=(l(n,e,r)-t)/i}return n}function d(t,n,o){var i,a,s=0;do{(i=l(a=n+(o-n)/2,e,r)-t)>0?o=a:n=a}while(Math.abs(i)>g&&++s<m);return a}function f(){C=!0,e===n&&r===o||function(){for(var t=0;t<v;++t)x[t]=l(t*y,e,r)}()}var p=4,h=.001,g=1e-7,m=10,v=11,y=1/(v-1),b="Float32Array"in t;if(4!==arguments.length)return!1;for(var w=0;w<4;++w)if("number"!=typeof arguments[w]||isNaN(arguments[w])||!isFinite(arguments[w]))return!1;e=Math.min(e,1),r=Math.min(r,1),e=Math.max(e,0),r=Math.max(r,0);var x=b?new Float32Array(v):new Array(v),C=!1,S=function(t){return C||f(),e===n&&r===o?t:0===t?0:1===t?1:l(function(t){for(var n=0,o=1,i=v-1;o!==i&&x[o]<=t;++o)n+=y;var a=n+(t-x[--o])/(x[o+1]-x[o])*y,s=c(a,e,r);return s>=h?u(t,a):0===s?a:d(t,n,n+y)}(t),n,o)};S.getControlPoints=function(){return[{x:e,y:n},{x:r,y:o}]};var T="generateBezier("+[e,n,r,o]+")";return S.toString=function(){return T},S}function c(e,t){var n=e;return y.isString(e)?C.Easings[e]||(n=!1):n=y.isArray(e)&&1===e.length?function(e){return function(t){return Math.round(t*e)*(1/e)}}.apply(null,e):y.isArray(e)&&2===e.length?S.apply(null,e.concat([t])):!(!y.isArray(e)||4!==e.length)&&l.apply(null,e),!1===n&&(n=C.Easings[C.defaults.easing]?C.defaults.easing:x),n}function u(e){if(e){var t=C.timestamp&&!0!==e?e:g.now(),n=C.State.calls.length;n>1e4&&(C.State.calls=function(e){for(var t=-1,n=e?e.length:0,r=[];++t<n;){var o=e[t];o&&r.push(o)}return r}(C.State.calls),n=C.State.calls.length);for(var o=0;o<n;o++)if(C.State.calls[o]){var a=C.State.calls[o],s=a[0],l=a[2],c=a[3],h=!c,m=null,v=a[5],b=a[6];if(c||(c=C.State.calls[o][3]=t-16),v){if(!0!==v.resume)continue;c=a[3]=Math.round(t-b-16),a[5]=null}b=a[6]=t-c;for(var w=Math.min(b/l.duration,1),x=0,S=s.length;x<S;x++){var k=s[x],_=k.element;if(i(_)){var E=!1;if(l.display!==r&&null!==l.display&&"none"!==l.display){if("flex"===l.display){f.each(["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],function(e,t){T.setPropertyValue(_,"display",t)})}T.setPropertyValue(_,"display",l.display)}for(var O in l.visibility!==r&&"hidden"!==l.visibility&&T.setPropertyValue(_,"visibility",l.visibility),k)if(k.hasOwnProperty(O)&&"element"!==O){var A,$=k[O],I=y.isString($.easing)?C.Easings[$.easing]:$.easing;if(y.isString($.pattern)){var P=1===w?function(e,t,n){var r=$.endValue[t];return n?Math.round(r):r}:function(e,t,n){var r=$.startValue[t],o=$.endValue[t]-r,i=r+o*I(w,l,o);return n?Math.round(i):i};A=$.pattern.replace(/{(\d+)(!)?}/g,P)}else if(1===w)A=$.endValue;else{var R=$.endValue-$.startValue;A=$.startValue+R*I(w,l,R)}if(!h&&A===$.currentValue)continue;if($.currentValue=A,"tween"===O)m=A;else{var N;if(T.Hooks.registered[O]){N=T.Hooks.getRoot(O);var L=i(_).rootPropertyValueCache[N];L&&($.rootPropertyValue=L)}var j=T.setPropertyValue(_,O,$.currentValue+(p<9&&0===parseFloat(A)?"":$.unitType),$.rootPropertyValue,$.scrollData);T.Hooks.registered[O]&&(T.Normalizations.registered[N]?i(_).rootPropertyValueCache[N]=T.Normalizations.registered[N]("extract",null,j[1]):i(_).rootPropertyValueCache[N]=j[1]),"transform"===j[0]&&(E=!0)}}l.mobileHA&&i(_).transformCache.translate3d===r&&(i(_).transformCache.translate3d="(0px, 0px, 0px)",E=!0),E&&T.flushTransformCache(_)}}l.display!==r&&"none"!==l.display&&(C.State.calls[o][2].display=!1),l.visibility!==r&&"hidden"!==l.visibility&&(C.State.calls[o][2].visibility=!1),l.progress&&l.progress.call(a[1],a[1],w,Math.max(0,c+l.duration-t),c,m),1===w&&d(o)}}C.State.isTicking&&D(u)}function d(e,t){if(!C.State.calls[e])return!1;for(var n=C.State.calls[e][0],o=C.State.calls[e][1],a=C.State.calls[e][2],s=C.State.calls[e][4],l=!1,c=0,u=n.length;c<u;c++){var d=n[c].element;t||a.loop||("none"===a.display&&T.setPropertyValue(d,"display",a.display),"hidden"===a.visibility&&T.setPropertyValue(d,"visibility",a.visibility));var p=i(d);if(!0!==a.loop&&(f.queue(d)[1]===r||!/\.velocityQueueEntryFlag/i.test(f.queue(d)[1]))&&p){p.isAnimating=!1,p.rootPropertyValueCache={};var h=!1;f.each(T.Lists.transforms3D,function(e,t){var n=/^scale/.test(t)?1:0,o=p.transformCache[t];p.transformCache[t]!==r&&new RegExp("^\\("+n+"[^.]").test(o)&&(h=!0,delete p.transformCache[t])}),a.mobileHA&&(h=!0,delete p.transformCache.translate3d),h&&T.flushTransformCache(d),T.Values.removeClass(d,"velocity-animating")}if(!t&&a.complete&&!a.loop&&c===u-1)try{a.complete.call(o,o)}catch(e){setTimeout(function(){throw e},1)}s&&!0!==a.loop&&s(o),p&&!0===a.loop&&!t&&(f.each(p.tweensContainer,function(e,t){if(/^rotate/.test(e)&&(parseFloat(t.startValue)-parseFloat(t.endValue))%360==0){var n=t.startValue;t.startValue=t.endValue,t.endValue=n}/^backgroundPosition/.test(e)&&100===parseFloat(t.endValue)&&"%"===t.unitType&&(t.endValue=0,t.startValue=100)}),C(d,"reverse",{loop:!0,delay:a.delay})),!1!==a.queue&&f.dequeue(d,a.queue)}C.State.calls[e]=!1;for(var g=0,m=C.State.calls.length;g<m;g++)if(!1!==C.State.calls[g]){l=!0;break}!1===l&&(C.State.isTicking=!1,delete C.State.calls,C.State.calls=[])}var f,p=function(){if(n.documentMode)return n.documentMode;for(var e=7;e>4;e--){var t=n.createElement("div");if(t.innerHTML="\x3c!--[if IE "+e+"]><span></span><![endif]--\x3e",t.getElementsByTagName("span").length)return t=null,e}return r}(),h=function(){var e=0;return t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(t){var n,r=(new Date).getTime();return n=Math.max(0,16-(r-e)),e=r+n,setTimeout(function(){t(r+n)},n)}}(),g=function(){var e=t.performance||{};if("function"!=typeof e.now){var n=e.timing&&e.timing.navigationStart?e.timing.navigationStart:(new Date).getTime();e.now=function(){return(new Date).getTime()-n}}return e}(),m=function(){var e=Array.prototype.slice;try{return e.call(n.documentElement),e}catch(t){return function(t,n){var r=this.length;if("number"!=typeof t&&(t=0),"number"!=typeof n&&(n=r),this.slice)return e.call(this,t,n);var o,i=[],a=t>=0?t:Math.max(0,r+t),s=(n<0?r+n:Math.min(n,r))-a;if(s>0)if(i=new Array(s),this.charAt)for(o=0;o<s;o++)i[o]=this.charAt(a+o);else for(o=0;o<s;o++)i[o]=this[a+o];return i}}}(),v=function(){return Array.prototype.includes?function(e,t){return e.includes(t)}:Array.prototype.indexOf?function(e,t){return e.indexOf(t)>=0}:function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1}},y={isNumber:function(e){return"number"==typeof e},isString:function(e){return"string"==typeof e},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},isNode:function(e){return e&&e.nodeType},isWrapped:function(e){return e&&e!==t&&y.isNumber(e.length)&&!y.isString(e)&&!y.isFunction(e)&&!y.isNode(e)&&(0===e.length||y.isNode(e[0]))},isSVG:function(e){return t.SVGElement&&e instanceof t.SVGElement},isEmptyObject:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}},b=!1;if(e.fn&&e.fn.jquery?(f=e,b=!0):f=t.Velocity.Utilities,p<=8&&!b)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(!(p<=7)){var w=400,x="swing",C={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t.navigator.userAgent),isAndroid:/Android/i.test(t.navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(t.navigator.userAgent),isChrome:t.chrome,isFirefox:/Firefox/i.test(t.navigator.userAgent),prefixElement:n.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[],delayedElements:{count:0}},CSS:{},Utilities:f,Redirects:{},Easings:{},Promise:t.Promise,defaults:{queue:"",duration:w,easing:x,begin:r,complete:r,progress:r,display:r,visibility:r,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0,promiseRejectEmpty:!0},init:function(e){f.data(e,"velocity",{isSVG:y.isSVG(e),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:5,patch:1},debug:!1,timestamp:!0,pauseAll:function(e){var t=(new Date).getTime();f.each(C.State.calls,function(t,n){if(n){if(e!==r&&(n[2].queue!==e||!1===n[2].queue))return!0;n[5]={resume:!1}}}),f.each(C.State.delayedElements,function(e,n){n&&a(n,t)})},resumeAll:function(e){(new Date).getTime();f.each(C.State.calls,function(t,n){if(n){if(e!==r&&(n[2].queue!==e||!1===n[2].queue))return!0;n[5]&&(n[5].resume=!0)}}),f.each(C.State.delayedElements,function(e,t){t&&s(t)})}};t.pageYOffset!==r?(C.State.scrollAnchor=t,C.State.scrollPropertyLeft="pageXOffset",C.State.scrollPropertyTop="pageYOffset"):(C.State.scrollAnchor=n.documentElement||n.body.parentNode||n.body,C.State.scrollPropertyLeft="scrollLeft",C.State.scrollPropertyTop="scrollTop");var S=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,n,r){var o={x:t.x+r.dx*n,v:t.v+r.dv*n,tension:t.tension,friction:t.friction};return{dx:o.v,dv:e(o)}}function n(n,r){var o={dx:n.v,dv:e(n)},i=t(n,.5*r,o),a=t(n,.5*r,i),s=t(n,r,a),l=1/6*(o.dx+2*(i.dx+a.dx)+s.dx),c=1/6*(o.dv+2*(i.dv+a.dv)+s.dv);return n.x=n.x+l*r,n.v=n.v+c*r,n}return function e(t,r,o){var i,a,s,l={x:-1,v:0,tension:null,friction:null},c=[0],u=0;for(t=parseFloat(t)||500,r=parseFloat(r)||20,o=o||null,l.tension=t,l.friction=r,(i=null!==o)?a=(u=e(t,r))/o*.016:a=.016;s=n(s||l,a),c.push(1+s.x),u+=16,Math.abs(s.x)>1e-4&&Math.abs(s.v)>1e-4;);return i?function(e){return c[e*(c.length-1)|0]}:u}}();C.Easings={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)}},f.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(e,t){C.Easings[t[0]]=l.apply(null,t[1])});var T=C.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"],units:["%","em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","Q","in","pc","pt","px","deg","grad","rad","turn","s","ms"],colorNames:{aliceblue:"240,248,255",antiquewhite:"250,235,215",aquamarine:"127,255,212",aqua:"0,255,255",azure:"240,255,255",beige:"245,245,220",bisque:"255,228,196",black:"0,0,0",blanchedalmond:"255,235,205",blueviolet:"138,43,226",blue:"0,0,255",brown:"165,42,42",burlywood:"222,184,135",cadetblue:"95,158,160",chartreuse:"127,255,0",chocolate:"210,105,30",coral:"255,127,80",cornflowerblue:"100,149,237",cornsilk:"255,248,220",crimson:"220,20,60",cyan:"0,255,255",darkblue:"0,0,139",darkcyan:"0,139,139",darkgoldenrod:"184,134,11",darkgray:"169,169,169",darkgrey:"169,169,169",darkgreen:"0,100,0",darkkhaki:"189,183,107",darkmagenta:"139,0,139",darkolivegreen:"85,107,47",darkorange:"255,140,0",darkorchid:"153,50,204",darkred:"139,0,0",darksalmon:"233,150,122",darkseagreen:"143,188,143",darkslateblue:"72,61,139",darkslategray:"47,79,79",darkturquoise:"0,206,209",darkviolet:"148,0,211",deeppink:"255,20,147",deepskyblue:"0,191,255",dimgray:"105,105,105",dimgrey:"105,105,105",dodgerblue:"30,144,255",firebrick:"178,34,34",floralwhite:"255,250,240",forestgreen:"34,139,34",fuchsia:"255,0,255",gainsboro:"220,220,220",ghostwhite:"248,248,255",gold:"255,215,0",goldenrod:"218,165,32",gray:"128,128,128",grey:"128,128,128",greenyellow:"173,255,47",green:"0,128,0",honeydew:"240,255,240",hotpink:"255,105,180",indianred:"205,92,92",indigo:"75,0,130",ivory:"255,255,240",khaki:"240,230,140",lavenderblush:"255,240,245",lavender:"230,230,250",lawngreen:"124,252,0",lemonchiffon:"255,250,205",lightblue:"173,216,230",lightcoral:"240,128,128",lightcyan:"224,255,255",lightgoldenrodyellow:"250,250,210",lightgray:"211,211,211",lightgrey:"211,211,211",lightgreen:"144,238,144",lightpink:"255,182,193",lightsalmon:"255,160,122",lightseagreen:"32,178,170",lightskyblue:"135,206,250",lightslategray:"119,136,153",lightsteelblue:"176,196,222",lightyellow:"255,255,224",limegreen:"50,205,50",lime:"0,255,0",linen:"250,240,230",magenta:"255,0,255",maroon:"128,0,0",mediumaquamarine:"102,205,170",mediumblue:"0,0,205",mediumorchid:"186,85,211",mediumpurple:"147,112,219",mediumseagreen:"60,179,113",mediumslateblue:"123,104,238",mediumspringgreen:"0,250,154",mediumturquoise:"72,209,204",mediumvioletred:"199,21,133",midnightblue:"25,25,112",mintcream:"245,255,250",mistyrose:"255,228,225",moccasin:"255,228,181",navajowhite:"255,222,173",navy:"0,0,128",oldlace:"253,245,230",olivedrab:"107,142,35",olive:"128,128,0",orangered:"255,69,0",orange:"255,165,0",orchid:"218,112,214",palegoldenrod:"238,232,170",palegreen:"152,251,152",paleturquoise:"175,238,238",palevioletred:"219,112,147",papayawhip:"255,239,213",peachpuff:"255,218,185",peru:"205,133,63",pink:"255,192,203",plum:"221,160,221",powderblue:"176,224,230",purple:"128,0,128",red:"255,0,0",rosybrown:"188,143,143",royalblue:"65,105,225",saddlebrown:"139,69,19",salmon:"250,128,114",sandybrown:"244,164,96",seagreen:"46,139,87",seashell:"255,245,238",sienna:"160,82,45",silver:"192,192,192",skyblue:"135,206,235",slateblue:"106,90,205",slategray:"112,128,144",snow:"255,250,250",springgreen:"0,255,127",steelblue:"70,130,180",tan:"210,180,140",teal:"0,128,128",thistle:"216,191,216",tomato:"255,99,71",turquoise:"64,224,208",violet:"238,130,238",wheat:"245,222,179",whitesmoke:"245,245,245",white:"255,255,255",yellowgreen:"154,205,50",yellow:"255,255,0"}},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var e=0;e<T.Lists.colors.length;e++){var t="color"===T.Lists.colors[e]?"0 0 0 1":"255 255 255 1";T.Hooks.templates[T.Lists.colors[e]]=["Red Green Blue Alpha",t]}var n,r,o;if(p)for(n in T.Hooks.templates)if(T.Hooks.templates.hasOwnProperty(n)){o=(r=T.Hooks.templates[n])[0].split(" ");var i=r[1].match(T.RegEx.valueSplit);"Color"===o[0]&&(o.push(o.shift()),i.push(i.shift()),T.Hooks.templates[n]=[o.join(" "),i.join(" ")])}for(n in T.Hooks.templates)if(T.Hooks.templates.hasOwnProperty(n))for(var a in o=(r=T.Hooks.templates[n])[0].split(" "))if(o.hasOwnProperty(a)){var s=n+o[a],l=a;T.Hooks.registered[s]=[n,l]}},getRoot:function(e){var t=T.Hooks.registered[e];return t?t[0]:e},getUnit:function(e,t){var n=(e.substr(t||0,5).match(/^[a-z%]+/)||[])[0]||"";return n&&v(T.Lists.units,n)?n:""},fixColors:function(e){return e.replace(/(rgba?\(\s*)?(\b[a-z]+\b)/g,function(e,t,n){return T.Lists.colorNames.hasOwnProperty(n)?(t||"rgba(")+T.Lists.colorNames[n]+(t?"":",1)"):t+n})},cleanRootPropertyValue:function(e,t){return T.RegEx.valueUnwrap.test(t)&&(t=t.match(T.RegEx.valueUnwrap)[1]),T.Values.isCSSNullValue(t)&&(t=T.Hooks.templates[e][1]),t},extractValue:function(e,t){var n=T.Hooks.registered[e];if(n){var r=n[0],o=n[1];return(t=T.Hooks.cleanRootPropertyValue(r,t)).toString().match(T.RegEx.valueSplit)[o]}return t},injectValue:function(e,t,n){var r=T.Hooks.registered[e];if(r){var o,i=r[0],a=r[1];return(o=(n=T.Hooks.cleanRootPropertyValue(i,n)).toString().match(T.RegEx.valueSplit))[a]=t,o.join(" ")}return n}},Normalizations:{registered:{clip:function(e,t,n){switch(e){case"name":return"clip";case"extract":var r;return T.RegEx.wrappedValueAlreadyExtracted.test(n)?r=n:r=(r=n.toString().match(T.RegEx.valueUnwrap))?r[1].replace(/,(\s+)?/g," "):n,r;case"inject":return"rect("+n+")"}},blur:function(e,t,n){switch(e){case"name":return C.State.isFirefox?"filter":"-webkit-filter";case"extract":var r=parseFloat(n);if(!r&&0!==r){var o=n.toString().match(/blur\(([0-9]+[A-z]+)\)/i);r=o?o[1]:0}return r;case"inject":return parseFloat(n)?"blur("+n+")":"none"}},opacity:function(e,t,n){if(p<=8)switch(e){case"name":return"filter";case"extract":var r=n.toString().match(/alpha\(opacity=(.*)\)/i);return r?r[1]/100:1;case"inject":return t.style.zoom=1,parseFloat(n)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(n),10)+")"}else switch(e){case"name":return"opacity";case"extract":case"inject":return n}}},register:function(){function e(e,t,n){if("border-box"===T.getPropertyValue(t,"boxSizing").toString().toLowerCase()===(n||!1)){var r,o,i=0,a="width"===e?["Left","Right"]:["Top","Bottom"],s=["padding"+a[0],"padding"+a[1],"border"+a[0]+"Width","border"+a[1]+"Width"];for(r=0;r<s.length;r++)o=parseFloat(T.getPropertyValue(t,s[r])),isNaN(o)||(i+=o);return n?-i:i}return 0}function t(t,n){return function(r,o,i){switch(r){case"name":return t;case"extract":return parseFloat(i)+e(t,o,n);case"inject":return parseFloat(i)-e(t,o,n)+"px"}}}p&&!(p>9)||C.State.isGingerbread||(T.Lists.transformsBase=T.Lists.transformsBase.concat(T.Lists.transforms3D));for(var n=0;n<T.Lists.transformsBase.length;n++)!function(){var e=T.Lists.transformsBase[n];T.Normalizations.registered[e]=function(t,n,o){switch(t){case"name":return"transform";case"extract":return i(n)===r||i(n).transformCache[e]===r?/^scale/i.test(e)?1:0:i(n).transformCache[e].replace(/[()]/g,"");case"inject":var a=!1;switch(e.substr(0,e.length-1)){case"translate":a=!/(%|px|em|rem|vw|vh|\d)$/i.test(o);break;case"scal":case"scale":C.State.isAndroid&&i(n).transformCache[e]===r&&o<1&&(o=1),a=!/(\d)$/i.test(o);break;case"skew":case"rotate":a=!/(deg|\d)$/i.test(o)}return a||(i(n).transformCache[e]="("+o+")"),i(n).transformCache[e]}}}();for(var o=0;o<T.Lists.colors.length;o++)!function(){var e=T.Lists.colors[o];T.Normalizations.registered[e]=function(t,n,o){switch(t){case"name":return e;case"extract":var i;if(T.RegEx.wrappedValueAlreadyExtracted.test(o))i=o;else{var a,s={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(o)?a=s[o]!==r?s[o]:s.black:T.RegEx.isHex.test(o)?a="rgb("+T.Values.hexToRgb(o).join(" ")+")":/^rgba?\(/i.test(o)||(a=s.black),i=(a||o).toString().match(T.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return(!p||p>8)&&3===i.split(" ").length&&(i+=" 1"),i;case"inject":return/^rgb/.test(o)?o:(p<=8?4===o.split(" ").length&&(o=o.split(/\s+/).slice(0,3).join(" ")):3===o.split(" ").length&&(o+=" 1"),(p<=8?"rgb":"rgba")+"("+o.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")")}}}();T.Normalizations.registered.innerWidth=t("width",!0),T.Normalizations.registered.innerHeight=t("height",!0),T.Normalizations.registered.outerWidth=t("width"),T.Normalizations.registered.outerHeight=t("height")}},Names:{camelCase:function(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})},SVGAttribute:function(e){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(p||C.State.isAndroid&&!C.State.isChrome)&&(t+="|transform"),new RegExp("^("+t+")$","i").test(e)},prefixCheck:function(e){if(C.State.prefixMatches[e])return[C.State.prefixMatches[e],!0];for(var t=["","Webkit","Moz","ms","O"],n=0,r=t.length;n<r;n++){var o;if(o=0===n?e:t[n]+e.replace(/^\w/,function(e){return e.toUpperCase()}),y.isString(C.State.prefixElement.style[o]))return C.State.prefixMatches[e]=o,[o,!0]}return[e,!1]}},Values:{hexToRgb:function(e){var t;return e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,r){return t+t+n+n+r+r}),(t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]},isCSSNullValue:function(e){return!e||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e)},getUnitType:function(e){return/^(rotate|skew)/i.test(e)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?"":"px"},getDisplayType:function(e){var t=e&&e.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block"},addClass:function(e,t){if(e)if(e.classList)e.classList.add(t);else if(y.isString(e.className))e.className+=(e.className.length?" ":"")+t;else{var n=e.getAttribute(p<=7?"className":"class")||"";e.setAttribute("class",n+(n?" ":"")+t)}},removeClass:function(e,t){if(e)if(e.classList)e.classList.remove(t);else if(y.isString(e.className))e.className=e.className.toString().replace(new RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ");else{var n=e.getAttribute(p<=7?"className":"class")||"";e.setAttribute("class",n.replace(new RegExp("(^|s)"+t.split(" ").join("|")+"(s|$)","gi")," "))}}},getPropertyValue:function(e,n,o,a){function s(e,n){var o=0;if(p<=8)o=f.css(e,n);else{var l=!1;/^(width|height)$/.test(n)&&0===T.getPropertyValue(e,"display")&&(l=!0,T.setPropertyValue(e,"display",T.Values.getDisplayType(e)));var c,u=function(){l&&T.setPropertyValue(e,"display","none")};if(!a){if("height"===n&&"border-box"!==T.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var d=e.offsetHeight-(parseFloat(T.getPropertyValue(e,"borderTopWidth"))||0)-(parseFloat(T.getPropertyValue(e,"borderBottomWidth"))||0)-(parseFloat(T.getPropertyValue(e,"paddingTop"))||0)-(parseFloat(T.getPropertyValue(e,"paddingBottom"))||0);return u(),d}if("width"===n&&"border-box"!==T.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var h=e.offsetWidth-(parseFloat(T.getPropertyValue(e,"borderLeftWidth"))||0)-(parseFloat(T.getPropertyValue(e,"borderRightWidth"))||0)-(parseFloat(T.getPropertyValue(e,"paddingLeft"))||0)-(parseFloat(T.getPropertyValue(e,"paddingRight"))||0);return u(),h}}c=i(e)===r?t.getComputedStyle(e,null):i(e).computedStyle?i(e).computedStyle:i(e).computedStyle=t.getComputedStyle(e,null),"borderColor"===n&&(n="borderTopColor"),""!==(o=9===p&&"filter"===n?c.getPropertyValue(n):c[n])&&null!==o||(o=e.style[n]),u()}if("auto"===o&&/^(top|right|bottom|left)$/i.test(n)){var g=s(e,"position");("fixed"===g||"absolute"===g&&/top|left/i.test(n))&&(o=f(e).position()[n]+"px")}return o}var l;if(T.Hooks.registered[n]){var c=n,u=T.Hooks.getRoot(c);o===r&&(o=T.getPropertyValue(e,T.Names.prefixCheck(u)[0])),T.Normalizations.registered[u]&&(o=T.Normalizations.registered[u]("extract",e,o)),l=T.Hooks.extractValue(c,o)}else if(T.Normalizations.registered[n]){var d,h;"transform"!==(d=T.Normalizations.registered[n]("name",e))&&(h=s(e,T.Names.prefixCheck(d)[0]),T.Values.isCSSNullValue(h)&&T.Hooks.templates[n]&&(h=T.Hooks.templates[n][1])),l=T.Normalizations.registered[n]("extract",e,h)}if(!/^[\d-]/.test(l)){var g=i(e);if(g&&g.isSVG&&T.Names.SVGAttribute(n))if(/^(height|width)$/i.test(n))try{l=e.getBBox()[n]}catch(e){l=0}else l=e.getAttribute(n);else l=s(e,T.Names.prefixCheck(n)[0])}return T.Values.isCSSNullValue(l)&&(l=0),C.debug>=2&&console.log("Get "+n+": "+l),l},setPropertyValue:function(e,n,r,o,a){var s=n;if("scroll"===n)a.container?a.container["scroll"+a.direction]=r:"Left"===a.direction?t.scrollTo(r,a.alternateValue):t.scrollTo(a.alternateValue,r);else if(T.Normalizations.registered[n]&&"transform"===T.Normalizations.registered[n]("name",e))T.Normalizations.registered[n]("inject",e,r),s="transform",r=i(e).transformCache[n];else{if(T.Hooks.registered[n]){var l=n,c=T.Hooks.getRoot(n);o=o||T.getPropertyValue(e,c),r=T.Hooks.injectValue(l,r,o),n=c}if(T.Normalizations.registered[n]&&(r=T.Normalizations.registered[n]("inject",e,r),n=T.Normalizations.registered[n]("name",e)),s=T.Names.prefixCheck(n)[0],p<=8)try{e.style[s]=r}catch(e){C.debug&&console.log("Browser does not support ["+r+"] for ["+s+"]")}else{var u=i(e);u&&u.isSVG&&T.Names.SVGAttribute(n)?e.setAttribute(n,r):e.style[s]=r}C.debug>=2&&console.log("Set "+n+" ("+s+"): "+r)}return[s,r]},flushTransformCache:function(e){var t="",n=i(e);if((p||C.State.isAndroid&&!C.State.isChrome)&&n&&n.isSVG){var r=function(t){return parseFloat(T.getPropertyValue(e,t))},o={translate:[r("translateX"),r("translateY")],skewX:[r("skewX")],skewY:[r("skewY")],scale:1!==r("scale")?[r("scale"),r("scale")]:[r("scaleX"),r("scaleY")],rotate:[r("rotateZ"),0,0]};f.each(i(e).transformCache,function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),o[e]&&(t+=e+"("+o[e].join(" ")+") ",delete o[e])})}else{var a,s;f.each(i(e).transformCache,function(n){if(a=i(e).transformCache[n],"transformPerspective"===n)return s=a,!0;9===p&&"rotateZ"===n&&(n="rotate"),t+=n+a+" "}),s&&(t="perspective"+s+" "+t)}T.setPropertyValue(e,"transform",t)}};T.Hooks.register(),T.Normalizations.register(),C.hook=function(e,t,n){var a;return e=o(e),f.each(e,function(e,o){if(i(o)===r&&C.init(o),n===r)a===r&&(a=T.getPropertyValue(o,t));else{var s=T.setPropertyValue(o,t,n);"transform"===s[0]&&C.CSS.flushTransformCache(o),a=s}}),a};var k=function(){function e(){return h?_.promise||null:g}function l(e,o){function a(a){var p,h;if(l.begin&&0===A)try{l.begin.call(b,b)}catch(e){setTimeout(function(){throw e},1)}if("scroll"===E){var g,m,w,k=/^x$/i.test(l.axis)?"Left":"Top",D=parseFloat(l.offset)||0;l.container?y.isWrapped(l.container)||y.isNode(l.container)?(l.container=l.container[0]||l.container,w=(g=l.container["scroll"+k])+f(e).position()[k.toLowerCase()]+D):l.container=null:(g=C.State.scrollAnchor[C.State["scrollProperty"+k]],m=C.State.scrollAnchor[C.State["scrollProperty"+("Left"===k?"Top":"Left")]],w=f(e).offset()[k.toLowerCase()]+D),d={scroll:{rootPropertyValue:!1,startValue:g,currentValue:g,endValue:w,unitType:"",easing:l.easing,scrollData:{container:l.container,direction:k,alternateValue:m}},element:e},C.debug&&console.log("tweensContainer (scroll): ",d.scroll,e)}else if("reverse"===E){if(!(p=i(e)))return;if(!p.tweensContainer)return void f.dequeue(e,l.queue);for(var $ in"none"===p.opts.display&&(p.opts.display="auto"),"hidden"===p.opts.visibility&&(p.opts.visibility="visible"),p.opts.loop=!1,p.opts.begin=null,p.opts.complete=null,S.easing||delete l.easing,S.duration||delete l.duration,l=f.extend({},p.opts,l),h=f.extend(!0,{},p?p.tweensContainer:null))if(h.hasOwnProperty($)&&"element"!==$){var I=h[$].startValue;h[$].startValue=h[$].currentValue=h[$].endValue,h[$].endValue=I,y.isEmptyObject(S)||(h[$].easing=l.easing),C.debug&&console.log("reverse tweensContainer ("+$+"): "+JSON.stringify(h[$]),e)}d=h}else if("start"===E){(p=i(e))&&p.tweensContainer&&!0===p.isAnimating&&(h=p.tweensContainer);var P=function(o,i){var a,c=T.Hooks.getRoot(o),u=!1,g=i[0],m=i[1],v=i[2];if(p&&p.isSVG||"tween"===c||!1!==T.Names.prefixCheck(c)[1]||T.Normalizations.registered[c]!==r){(l.display!==r&&null!==l.display&&"none"!==l.display||l.visibility!==r&&"hidden"!==l.visibility)&&/opacity|filter/.test(o)&&!v&&0!==g&&(v=0),l._cacheValues&&h&&h[o]?(v===r&&(v=h[o].endValue+h[o].unitType),u=p.rootPropertyValueCache[c]):T.Hooks.registered[o]?v===r?(u=T.getPropertyValue(e,c),v=T.getPropertyValue(e,o,u)):u=T.Hooks.templates[c][1]:v===r&&(v=T.getPropertyValue(e,o));var b,w,x,S=!1,k=function(e,t){var n,r;return r=(t||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(e){return n=e,""}),n||(n=T.Values.getUnitType(e)),[r,n]};if(v!==g&&y.isString(v)&&y.isString(g)){a="";var D=0,_=0,E=[],O=[],A=0,$=0,I=0;for(v=T.Hooks.fixColors(v),g=T.Hooks.fixColors(g);D<v.length&&_<g.length;){var P=v[D],R=g[_];if(/[\d\.-]/.test(P)&&/[\d\.-]/.test(R)){for(var N=P,L=R,M=".",F=".";++D<v.length;){if((P=v[D])===M)M="..";else if(!/\d/.test(P))break;N+=P}for(;++_<g.length;){if((R=g[_])===F)F="..";else if(!/\d/.test(R))break;L+=R}var B=T.Hooks.getUnit(v,D),q=T.Hooks.getUnit(g,_);if(D+=B.length,_+=q.length,B===q)N===L?a+=N+B:(a+="{"+E.length+($?"!":"")+"}"+B,E.push(parseFloat(N)),O.push(parseFloat(L)));else{var H=parseFloat(N),U=parseFloat(L);a+=(A<5?"calc":"")+"("+(H?"{"+E.length+($?"!":"")+"}":"0")+B+" + "+(U?"{"+(E.length+(H?1:0))+($?"!":"")+"}":"0")+q+")",H&&(E.push(H),O.push(0)),U&&(E.push(0),O.push(U))}}else{if(P!==R){A=0;break}a+=P,D++,_++,0===A&&"c"===P||1===A&&"a"===P||2===A&&"l"===P||3===A&&"c"===P||A>=4&&"("===P?A++:(A&&A<5||A>=4&&")"===P&&--A<5)&&(A=0),0===$&&"r"===P||1===$&&"g"===P||2===$&&"b"===P||3===$&&"a"===P||$>=3&&"("===P?(3===$&&"a"===P&&(I=1),$++):I&&","===P?++I>3&&($=I=0):(I&&$<(I?5:4)||$>=(I?4:3)&&")"===P&&--$<(I?5:4))&&($=I=0)}}D===v.length&&_===g.length||(C.debug&&console.error('Trying to pattern match mis-matched strings ["'+g+'", "'+v+'"]'),a=r),a&&(E.length?(C.debug&&console.log('Pattern found "'+a+'" -> ',E,O,"["+v+","+g+"]"),v=E,g=O,w=x=""):a=r)}if(a||(v=(b=k(o,v))[0],x=b[1],g=(b=k(o,g))[0].replace(/^([+-\/*])=/,function(e,t){return S=t,""}),w=b[1],v=parseFloat(v)||0,g=parseFloat(g)||0,"%"===w&&(/^(fontSize|lineHeight)$/.test(o)?(g/=100,w="em"):/^scale/.test(o)?(g/=100,w=""):/(Red|Green|Blue)$/i.test(o)&&(g=g/100*255,w=""))),/[\/*]/.test(S))w=x;else if(x!==w&&0!==v)if(0===g)w=x;else{s=s||function(){var r={myParent:e.parentNode||n.body,position:T.getPropertyValue(e,"position"),fontSize:T.getPropertyValue(e,"fontSize")},o=r.position===j.lastPosition&&r.myParent===j.lastParent,i=r.fontSize===j.lastFontSize;j.lastParent=r.myParent,j.lastPosition=r.position,j.lastFontSize=r.fontSize;var a={};if(i&&o)a.emToPx=j.lastEmToPx,a.percentToPxWidth=j.lastPercentToPxWidth,a.percentToPxHeight=j.lastPercentToPxHeight;else{var s=p&&p.isSVG?n.createElementNS("http://www.w3.org/2000/svg","rect"):n.createElement("div");C.init(s),r.myParent.appendChild(s),f.each(["overflow","overflowX","overflowY"],function(e,t){C.CSS.setPropertyValue(s,t,"hidden")}),C.CSS.setPropertyValue(s,"position",r.position),C.CSS.setPropertyValue(s,"fontSize",r.fontSize),C.CSS.setPropertyValue(s,"boxSizing","content-box"),f.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(e,t){C.CSS.setPropertyValue(s,t,"100%")}),C.CSS.setPropertyValue(s,"paddingLeft","100em"),a.percentToPxWidth=j.lastPercentToPxWidth=(parseFloat(T.getPropertyValue(s,"width",null,!0))||1)/100,a.percentToPxHeight=j.lastPercentToPxHeight=(parseFloat(T.getPropertyValue(s,"height",null,!0))||1)/100,a.emToPx=j.lastEmToPx=(parseFloat(T.getPropertyValue(s,"paddingLeft"))||1)/100,r.myParent.removeChild(s)}return null===j.remToPx&&(j.remToPx=parseFloat(T.getPropertyValue(n.body,"fontSize"))||16),null===j.vwToPx&&(j.vwToPx=parseFloat(t.innerWidth)/100,j.vhToPx=parseFloat(t.innerHeight)/100),a.remToPx=j.remToPx,a.vwToPx=j.vwToPx,a.vhToPx=j.vhToPx,C.debug>=1&&console.log("Unit ratios: "+JSON.stringify(a),e),a}();var W=/margin|padding|left|right|width|text|word|letter/i.test(o)||/X$/.test(o)||"x"===o?"x":"y";switch(x){case"%":v*="x"===W?s.percentToPxWidth:s.percentToPxHeight;break;case"px":break;default:v*=s[x+"ToPx"]}switch(w){case"%":v*=1/("x"===W?s.percentToPxWidth:s.percentToPxHeight);break;case"px":break;default:v*=1/s[w+"ToPx"]}}switch(S){case"+":g=v+g;break;case"-":g=v-g;break;case"*":g*=v;break;case"/":g=v/g}d[o]={rootPropertyValue:u,startValue:v,currentValue:v,endValue:g,unitType:w,easing:m},a&&(d[o].pattern=a),C.debug&&console.log("tweensContainer ("+o+"): "+JSON.stringify(d[o]),e)}else C.debug&&console.log("Skipping ["+c+"] due to a lack of browser support.")};for(var R in x)if(x.hasOwnProperty(R)){var N=T.Names.camelCase(R),L=function(t,n){var r,i,a;return y.isFunction(t)&&(t=t.call(e,o,O)),y.isArray(t)?(r=t[0],!y.isArray(t[1])&&/^[\d-]/.test(t[1])||y.isFunction(t[1])||T.RegEx.isHex.test(t[1])?a=t[1]:y.isString(t[1])&&!T.RegEx.isHex.test(t[1])&&C.Easings[t[1]]||y.isArray(t[1])?(i=c(t[1],l.duration),a=t[2]):a=t[1]||t[2]):r=t,i=i||l.easing,y.isFunction(r)&&(r=r.call(e,o,O)),y.isFunction(a)&&(a=a.call(e,o,O)),[r||0,i,a]}(x[R]);if(v(T.Lists.colors,N)){var F=L[0],B=L[1],q=L[2];if(T.RegEx.isHex.test(F)){for(var H=["Red","Green","Blue"],U=T.Values.hexToRgb(F),W=q?T.Values.hexToRgb(q):r,z=0;z<H.length;z++){var V=[U[z]];B&&V.push(B),W!==r&&V.push(W[z]),P(N+H[z],V)}continue}}P(N,L)}d.element=e}d.element&&(T.Values.addClass(e,"velocity-animating"),M.push(d),(p=i(e))&&(""===l.queue&&(p.tweensContainer=d,p.opts=l),p.isAnimating=!0),A===O-1?(C.State.calls.push([M,b,l,null,_.resolver,null,0]),!1===C.State.isTicking&&(C.State.isTicking=!0,u())):A++)}var s,l=f.extend({},C.defaults,S),d={};switch(i(e)===r&&C.init(e),parseFloat(l.delay)&&!1!==l.queue&&f.queue(e,l.queue,function(t,n){if(!0===n)return!0;C.velocityQueueEntryFlag=!0;var r=C.State.delayedElements.count++;C.State.delayedElements[r]=e;var o=function(e){return function(){C.State.delayedElements[e]=!1,t()}}(r);i(e).delayBegin=(new Date).getTime(),i(e).delay=parseFloat(l.delay),i(e).delayTimer={setTimeout:setTimeout(t,parseFloat(l.delay)),next:o}}),l.duration.toString().toLowerCase()){case"fast":l.duration=200;break;case"normal":l.duration=w;break;case"slow":l.duration=600;break;default:l.duration=parseFloat(l.duration)||1}if(!1!==C.mock&&(!0===C.mock?l.duration=l.delay=1:(l.duration*=parseFloat(C.mock)||1,l.delay*=parseFloat(C.mock)||1)),l.easing=c(l.easing,l.duration),l.begin&&!y.isFunction(l.begin)&&(l.begin=null),l.progress&&!y.isFunction(l.progress)&&(l.progress=null),l.complete&&!y.isFunction(l.complete)&&(l.complete=null),l.display!==r&&null!==l.display&&(l.display=l.display.toString().toLowerCase(),"auto"===l.display&&(l.display=C.CSS.Values.getDisplayType(e))),l.visibility!==r&&null!==l.visibility&&(l.visibility=l.visibility.toString().toLowerCase()),l.mobileHA=l.mobileHA&&C.State.isMobile&&!C.State.isGingerbread,!1===l.queue)if(l.delay){var p=C.State.delayedElements.count++;C.State.delayedElements[p]=e;var h=function(e){return function(){C.State.delayedElements[e]=!1,a()}}(p);i(e).delayBegin=(new Date).getTime(),i(e).delay=parseFloat(l.delay),i(e).delayTimer={setTimeout:setTimeout(a,parseFloat(l.delay)),next:h}}else a();else f.queue(e,l.queue,function(e,t){if(!0===t)return _.promise&&_.resolver(b),!0;C.velocityQueueEntryFlag=!0,a()});""!==l.queue&&"fx"!==l.queue||"inprogress"===f.queue(e)[0]||f.dequeue(e)}var p,h,g,m,b,x,S,D=arguments[0]&&(arguments[0].p||f.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||y.isString(arguments[0].properties));y.isWrapped(this)?(h=!1,m=0,b=this,g=this):(h=!0,m=1,b=D?arguments[0].elements||arguments[0].e:arguments[0]);var _={promise:null,resolver:null,rejecter:null};if(h&&C.Promise&&(_.promise=new C.Promise(function(e,t){_.resolver=e,_.rejecter=t})),D?(x=arguments[0].properties||arguments[0].p,S=arguments[0].options||arguments[0].o):(x=arguments[m],S=arguments[m+1]),b=o(b)){var E,O=b.length,A=0;if(!/^(stop|finish|finishAll|pause|resume)$/i.test(x)&&!f.isPlainObject(S)){S={};for(var $=m+1;$<arguments.length;$++)y.isArray(arguments[$])||!/^(fast|normal|slow)$/i.test(arguments[$])&&!/^\d/.test(arguments[$])?y.isString(arguments[$])||y.isArray(arguments[$])?S.easing=arguments[$]:y.isFunction(arguments[$])&&(S.complete=arguments[$]):S.duration=arguments[$]}switch(x){case"scroll":E="scroll";break;case"reverse":E="reverse";break;case"pause":var I=(new Date).getTime();return f.each(b,function(e,t){a(t,I)}),f.each(C.State.calls,function(e,t){var n=!1;t&&f.each(t[1],function(e,o){var i=S===r?"":S;return!0!==i&&t[2].queue!==i&&(S!==r||!1!==t[2].queue)||(f.each(b,function(e,r){if(r===o)return t[5]={resume:!1},n=!0,!1}),!n&&void 0)})}),e();case"resume":return f.each(b,function(e,t){s(t)}),f.each(C.State.calls,function(e,t){var n=!1;t&&f.each(t[1],function(e,o){var i=S===r?"":S;return!0!==i&&t[2].queue!==i&&(S!==r||!1!==t[2].queue)||!t[5]||(f.each(b,function(e,r){if(r===o)return t[5].resume=!0,n=!0,!1}),!n&&void 0)})}),e();case"finish":case"finishAll":case"stop":f.each(b,function(e,t){i(t)&&i(t).delayTimer&&(clearTimeout(i(t).delayTimer.setTimeout),i(t).delayTimer.next&&i(t).delayTimer.next(),delete i(t).delayTimer),"finishAll"!==x||!0!==S&&!y.isString(S)||(f.each(f.queue(t,y.isString(S)?S:""),function(e,t){y.isFunction(t)&&t()}),f.queue(t,y.isString(S)?S:"",[]))});var P=[];return f.each(C.State.calls,function(e,t){t&&f.each(t[1],function(n,o){var a=S===r?"":S;if(!0!==a&&t[2].queue!==a&&(S!==r||!1!==t[2].queue))return!0;f.each(b,function(n,r){if(r===o)if((!0===S||y.isString(S))&&(f.each(f.queue(r,y.isString(S)?S:""),function(e,t){y.isFunction(t)&&t(null,!0)}),f.queue(r,y.isString(S)?S:"",[])),"stop"===x){var s=i(r);s&&s.tweensContainer&&!1!==a&&f.each(s.tweensContainer,function(e,t){t.endValue=t.currentValue}),P.push(e)}else"finish"!==x&&"finishAll"!==x||(t[2].duration=1)})})}),"stop"===x&&(f.each(P,function(e,t){d(t,!0)}),_.promise&&_.resolver(b)),e();default:if(!f.isPlainObject(x)||y.isEmptyObject(x)){if(y.isString(x)&&C.Redirects[x]){var R=(p=f.extend({},S)).duration,N=p.delay||0;return!0===p.backwards&&(b=f.extend(!0,[],b).reverse()),f.each(b,function(e,t){parseFloat(p.stagger)?p.delay=N+parseFloat(p.stagger)*e:y.isFunction(p.stagger)&&(p.delay=N+p.stagger.call(t,e,O)),p.drag&&(p.duration=parseFloat(R)||(/^(callout|transition)/.test(x)?1e3:w),p.duration=Math.max(p.duration*(p.backwards?1-e/O:(e+1)/O),.75*p.duration,200)),C.Redirects[x].call(t,t,p||{},e,O,b,_.promise?_:r)}),e()}var L="Velocity: First argument ("+x+") was not a property map, a known action, or a registered redirect. Aborting.";return _.promise?_.rejecter(new Error(L)):t.console&&console.log(L),e()}E="start"}var j={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},M=[];f.each(b,function(e,t){y.isNode(t)&&l(t,e)}),(p=f.extend({},C.defaults,S)).loop=parseInt(p.loop,10);var F=2*p.loop-1;if(p.loop)for(var B=0;B<F;B++){var q={delay:p.delay,progress:p.progress};B===F-1&&(q.display=p.display,q.visibility=p.visibility,q.complete=p.complete),k(b,"reverse",q)}return e()}_.promise&&(x&&S&&!1===S.promiseRejectEmpty?_.resolver():_.rejecter())};(C=f.extend(k,C)).animate=k;var D=t.requestAnimationFrame||h;if(!C.State.isMobile&&n.hidden!==r){var _=function(){n.hidden?(D=function(e){return setTimeout(function(){e(!0)},16)},u()):D=t.requestAnimationFrame||h};_(),n.addEventListener("visibilitychange",_)}return e.Velocity=C,e!==t&&(e.fn.velocity=k,e.fn.velocity.defaults=C.defaults),f.each(["Down","Up"],function(e,t){C.Redirects["slide"+t]=function(e,n,o,i,a,s){var l=f.extend({},n),c=l.begin,u=l.complete,d={},p={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""};l.display===r&&(l.display="Down"===t?"inline"===C.CSS.Values.getDisplayType(e)?"inline-block":"block":"none"),l.begin=function(){for(var n in 0===o&&c&&c.call(a,a),p)if(p.hasOwnProperty(n)){d[n]=e.style[n];var r=T.getPropertyValue(e,n);p[n]="Down"===t?[r,0]:[0,r]}d.overflow=e.style.overflow,e.style.overflow="hidden"},l.complete=function(){for(var t in d)d.hasOwnProperty(t)&&(e.style[t]=d[t]);o===i-1&&(u&&u.call(a,a),s&&s.resolver(a))},C(e,p,l)}}),f.each(["In","Out"],function(e,t){C.Redirects["fade"+t]=function(e,n,o,i,a,s){var l=f.extend({},n),c=l.complete,u={opacity:"In"===t?1:0};0!==o&&(l.begin=null),l.complete=o!==i-1?null:function(){c&&c.call(a,a),s&&s.resolver(a)},l.display===r&&(l.display="In"===t?"auto":"none"),C(this,u,l)}}),C}jQuery.fn.velocity=jQuery.fn.animate}(window.jQuery||window.Zepto||window,window,window?window.document:void 0)}),function(e){"use strict";"function"==typeof require&&"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define("velocityUI",["velocity"],e):e()}(function(){"use strict";return function(e,t,n,r){var o=e.Velocity;if(o&&o.Utilities){var i=o.Utilities;if(function(e,t){var n=[];return!(!e||!t)&&(i.each([e,t],function(e,t){var r=[];i.each(t,function(e,t){for(;t.toString().length<5;)t="0"+t;r.push(t)}),n.push(r.join(""))}),parseFloat(n[0])>parseFloat(n[1]))}({major:1,minor:1,patch:0},o.version)){var a="Velocity UI Pack: You need to update Velocity (velocity.js) to a newer version. Visit http://github.com/julianshapiro/velocity.";throw alert(a),new Error(a)}for(var s in o.RegisterEffect=o.RegisterUI=function(e,t){function n(e,t,n,r){var a,s=0;i.each(e.nodeType?[e]:e,function(e,t){r&&(n+=e*r),a=t.parentNode;var l=["height","paddingTop","paddingBottom","marginTop","marginBottom"];"border-box"===o.CSS.getPropertyValue(t,"boxSizing").toString().toLowerCase()&&(l=["height"]),i.each(l,function(e,n){s+=parseFloat(o.CSS.getPropertyValue(t,n))})}),o.animate(a,{height:("In"===t?"+":"-")+"="+s},{queue:!1,easing:"ease-in-out",duration:n*("In"===t?.6:1)})}return o.Redirects[e]=function(r,a,s,l,c,u,d){var f=s===l-1,p=0;d=d||t.loop,"function"==typeof t.defaultDuration?t.defaultDuration=t.defaultDuration.call(c,c):t.defaultDuration=parseFloat(t.defaultDuration);for(var h=0;h<t.calls.length;h++)"number"==typeof(b=t.calls[h][1])&&(p+=b);var g=p>=1?0:t.calls.length?(1-p)/t.calls.length:1;for(h=0;h<t.calls.length;h++){var m=t.calls[h],v=m[0],y=1e3,b=m[1],w=m[2]||{},x={};if(void 0!==a.duration?y=a.duration:void 0!==t.defaultDuration&&(y=t.defaultDuration),x.duration=y*("number"==typeof b?b:g),x.queue=a.queue||"",x.easing=w.easing||"ease",x.delay=parseFloat(w.delay)||0,x.loop=!t.loop&&w.loop,x._cacheValues=w._cacheValues||!0,0===h){if(x.delay+=parseFloat(a.delay)||0,0===s&&(x.begin=function(){a.begin&&a.begin.call(c,c);var t=e.match(/(In|Out)$/);t&&"In"===t[0]&&void 0!==v.opacity&&i.each(c.nodeType?[c]:c,function(e,t){o.CSS.setPropertyValue(t,"opacity",0)}),a.animateParentHeight&&t&&n(c,t[0],y+x.delay,a.stagger)}),null!==a.display)if(void 0!==a.display&&"none"!==a.display)x.display=a.display;else if(/In$/.test(e)){var C=o.CSS.Values.getDisplayType(r);x.display="inline"===C?"inline-block":C}a.visibility&&"hidden"!==a.visibility&&(x.visibility=a.visibility)}if(h===t.calls.length-1){var S=function(){void 0!==a.display&&"none"!==a.display||!/Out$/.test(e)||i.each(c.nodeType?[c]:c,function(e,t){o.CSS.setPropertyValue(t,"display","none")}),a.complete&&a.complete.call(c,c),u&&u.resolver(c||r)};x.complete=function(){if(d&&o.Redirects[e](r,a,s,l,c,u,!0===d||Math.max(0,d-1)),t.reset){for(var n in t.reset)if(t.reset.hasOwnProperty(n)){var i=t.reset[n];void 0!==o.CSS.Hooks.registered[n]||"string"!=typeof i&&"number"!=typeof i||(t.reset[n]=[t.reset[n],t.reset[n]])}var p={duration:0,queue:!1};f&&(p.complete=S),o.animate(r,t.reset,p)}else f&&S()},"hidden"===a.visibility&&(x.visibility=a.visibility)}o.animate(r,v,x)}},o},o.RegisterEffect.packagedEffects={"callout.bounce":{defaultDuration:550,calls:[[{translateY:-30},.25],[{translateY:0},.125],[{translateY:-15},.125],[{translateY:0},.25]]},"callout.shake":{defaultDuration:800,calls:[[{translateX:-11}],[{translateX:11}],[{translateX:-11}],[{translateX:11}],[{translateX:-11}],[{translateX:11}],[{translateX:-11}],[{translateX:0}]]},"callout.flash":{defaultDuration:1100,calls:[[{opacity:[0,"easeInOutQuad",1]}],[{opacity:[1,"easeInOutQuad"]}],[{opacity:[0,"easeInOutQuad"]}],[{opacity:[1,"easeInOutQuad"]}]]},"callout.pulse":{defaultDuration:825,calls:[[{scaleX:1.1,scaleY:1.1},.5,{easing:"easeInExpo"}],[{scaleX:1,scaleY:1},.5]]},"callout.swing":{defaultDuration:950,calls:[[{rotateZ:15}],[{rotateZ:-10}],[{rotateZ:5}],[{rotateZ:-5}],[{rotateZ:0}]]},"callout.tada":{defaultDuration:1e3,calls:[[{scaleX:.9,scaleY:.9,rotateZ:-3},.1],[{scaleX:1.1,scaleY:1.1,rotateZ:3},.1],[{scaleX:1.1,scaleY:1.1,rotateZ:-3},.1],["reverse",.125],["reverse",.125],["reverse",.125],["reverse",.125],["reverse",.125],[{scaleX:1,scaleY:1,rotateZ:0},.2]]},"transition.fadeIn":{defaultDuration:500,calls:[[{opacity:[1,0]}]]},"transition.fadeOut":{defaultDuration:500,calls:[[{opacity:[0,1]}]]},"transition.flipXIn":{defaultDuration:700,calls:[[{opacity:[1,0],transformPerspective:[800,800],rotateY:[0,-55]}]],reset:{transformPerspective:0}},"transition.flipXOut":{defaultDuration:700,calls:[[{opacity:[0,1],transformPerspective:[800,800],rotateY:55}]],reset:{transformPerspective:0,rotateY:0}},"transition.flipYIn":{defaultDuration:800,calls:[[{opacity:[1,0],transformPerspective:[800,800],rotateX:[0,-45]}]],reset:{transformPerspective:0}},"transition.flipYOut":{defaultDuration:800,calls:[[{opacity:[0,1],transformPerspective:[800,800],rotateX:25}]],reset:{transformPerspective:0,rotateX:0}},"transition.flipBounceXIn":{defaultDuration:900,calls:[[{opacity:[.725,0],transformPerspective:[400,400],rotateY:[-10,90]},.5],[{opacity:.8,rotateY:10},.25],[{opacity:1,rotateY:0},.25]],reset:{transformPerspective:0}},"transition.flipBounceXOut":{defaultDuration:800,calls:[[{opacity:[.9,1],transformPerspective:[400,400],rotateY:-10}],[{opacity:0,rotateY:90}]],reset:{transformPerspective:0,rotateY:0}},"transition.flipBounceYIn":{defaultDuration:850,calls:[[{opacity:[.725,0],transformPerspective:[400,400],rotateX:[-10,90]},.5],[{opacity:.8,rotateX:10},.25],[{opacity:1,rotateX:0},.25]],reset:{transformPerspective:0}},"transition.flipBounceYOut":{defaultDuration:800,calls:[[{opacity:[.9,1],transformPerspective:[400,400],rotateX:-15}],[{opacity:0,rotateX:90}]],reset:{transformPerspective:0,rotateX:0}},"transition.swoopIn":{defaultDuration:850,calls:[[{opacity:[1,0],transformOriginX:["100%","50%"],transformOriginY:["100%","100%"],scaleX:[1,0],scaleY:[1,0],translateX:[0,-700],translateZ:0}]],reset:{transformOriginX:"50%",transformOriginY:"50%"}},"transition.swoopOut":{defaultDuration:850,calls:[[{opacity:[0,1],transformOriginX:["50%","100%"],transformOriginY:["100%","100%"],scaleX:0,scaleY:0,translateX:-700,translateZ:0}]],reset:{transformOriginX:"50%",transformOriginY:"50%",scaleX:1,scaleY:1,translateX:0}},"transition.whirlIn":{defaultDuration:850,calls:[[{opacity:[1,0],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:[1,0],scaleY:[1,0],rotateY:[0,160]},1,{easing:"easeInOutSine"}]]},"transition.whirlOut":{defaultDuration:750,calls:[[{opacity:[0,"easeInOutQuint",1],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:0,scaleY:0,rotateY:160},1,{easing:"swing"}]],reset:{scaleX:1,scaleY:1,rotateY:0}},"transition.shrinkIn":{defaultDuration:750,calls:[[{opacity:[1,0],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:[1,1.5],scaleY:[1,1.5],translateZ:0}]]},"transition.shrinkOut":{defaultDuration:600,calls:[[{opacity:[0,1],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:1.3,scaleY:1.3,translateZ:0}]],reset:{scaleX:1,scaleY:1}},"transition.expandIn":{defaultDuration:700,calls:[[{opacity:[1,0],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:[1,.625],scaleY:[1,.625],translateZ:0}]]},"transition.expandOut":{defaultDuration:700,calls:[[{opacity:[0,1],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:.5,scaleY:.5,translateZ:0}]],reset:{scaleX:1,scaleY:1}},"transition.bounceIn":{defaultDuration:800,calls:[[{opacity:[1,0],scaleX:[1.05,.3],scaleY:[1.05,.3]},.35],[{scaleX:.9,scaleY:.9,translateZ:0},.2],[{scaleX:1,scaleY:1},.45]]},"transition.bounceOut":{defaultDuration:800,calls:[[{scaleX:.95,scaleY:.95},.35],[{scaleX:1.1,scaleY:1.1,translateZ:0},.35],[{opacity:[0,1],scaleX:.3,scaleY:.3},.3]],reset:{scaleX:1,scaleY:1}},"transition.bounceUpIn":{defaultDuration:800,calls:[[{opacity:[1,0],translateY:[-30,1e3]},.6,{easing:"easeOutCirc"}],[{translateY:10},.2],[{translateY:0},.2]]},"transition.bounceUpOut":{defaultDuration:1e3,calls:[[{translateY:20},.2],[{opacity:[0,"easeInCirc",1],translateY:-1e3},.8]],reset:{translateY:0}},"transition.bounceDownIn":{defaultDuration:800,calls:[[{opacity:[1,0],translateY:[30,-1e3]},.6,{easing:"easeOutCirc"}],[{translateY:-10},.2],[{translateY:0},.2]]},"transition.bounceDownOut":{defaultDuration:1e3,calls:[[{translateY:-20},.2],[{opacity:[0,"easeInCirc",1],translateY:1e3},.8]],reset:{translateY:0}},"transition.bounceLeftIn":{defaultDuration:750,calls:[[{opacity:[1,0],translateX:[30,-1250]},.6,{easing:"easeOutCirc"}],[{translateX:-10},.2],[{translateX:0},.2]]},"transition.bounceLeftOut":{defaultDuration:750,calls:[[{translateX:30},.2],[{opacity:[0,"easeInCirc",1],translateX:-1250},.8]],reset:{translateX:0}},"transition.bounceRightIn":{defaultDuration:750,calls:[[{opacity:[1,0],translateX:[-30,1250]},.6,{easing:"easeOutCirc"}],[{translateX:10},.2],[{translateX:0},.2]]},"transition.bounceRightOut":{defaultDuration:750,calls:[[{translateX:-30},.2],[{opacity:[0,"easeInCirc",1],translateX:1250},.8]],reset:{translateX:0}},"transition.slideUpIn":{defaultDuration:900,calls:[[{opacity:[1,0],translateY:[0,20],translateZ:0}]]},"transition.slideUpOut":{defaultDuration:900,calls:[[{opacity:[0,1],translateY:-20,translateZ:0}]],reset:{translateY:0}},"transition.slideDownIn":{defaultDuration:900,calls:[[{opacity:[1,0],translateY:[0,-20],translateZ:0}]]},"transition.slideDownOut":{defaultDuration:900,calls:[[{opacity:[0,1],translateY:20,translateZ:0}]],reset:{translateY:0}},"transition.slideLeftIn":{defaultDuration:1e3,calls:[[{opacity:[1,0],translateX:[0,-20],translateZ:0}]]},"transition.slideLeftOut":{defaultDuration:1050,calls:[[{opacity:[0,1],translateX:-20,translateZ:0}]],reset:{translateX:0}},"transition.slideRightIn":{defaultDuration:1e3,calls:[[{opacity:[1,0],translateX:[0,20],translateZ:0}]]},"transition.slideRightOut":{defaultDuration:1050,calls:[[{opacity:[0,1],translateX:20,translateZ:0}]],reset:{translateX:0}},"transition.slideUpBigIn":{defaultDuration:850,calls:[[{opacity:[1,0],translateY:[0,75],translateZ:0}]]},"transition.slideUpBigOut":{defaultDuration:800,calls:[[{opacity:[0,1],translateY:-75,translateZ:0}]],reset:{translateY:0}},"transition.slideDownBigIn":{defaultDuration:850,calls:[[{opacity:[1,0],translateY:[0,-75],translateZ:0}]]},"transition.slideDownBigOut":{defaultDuration:800,calls:[[{opacity:[0,1],translateY:75,translateZ:0}]],reset:{translateY:0}},"transition.slideLeftBigIn":{defaultDuration:800,calls:[[{opacity:[1,0],translateX:[0,-75],translateZ:0}]]},"transition.slideLeftBigOut":{defaultDuration:750,calls:[[{opacity:[0,1],translateX:-75,translateZ:0}]],reset:{translateX:0}},"transition.slideRightBigIn":{defaultDuration:800,calls:[[{opacity:[1,0],translateX:[0,75],translateZ:0}]]},"transition.slideRightBigOut":{defaultDuration:750,calls:[[{opacity:[0,1],translateX:75,translateZ:0}]],reset:{translateX:0}},"transition.perspectiveUpIn":{defaultDuration:800,calls:[[{opacity:[1,0],transformPerspective:[800,800],transformOriginX:[0,0],transformOriginY:["100%","100%"],rotateX:[0,-180]}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%"}},"transition.perspectiveUpOut":{defaultDuration:850,calls:[[{opacity:[0,1],transformPerspective:[800,800],transformOriginX:[0,0],transformOriginY:["100%","100%"],rotateX:-180}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%",rotateX:0}},"transition.perspectiveDownIn":{defaultDuration:800,calls:[[{opacity:[1,0],transformPerspective:[800,800],transformOriginX:[0,0],transformOriginY:[0,0],rotateX:[0,180]}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%"}},"transition.perspectiveDownOut":{defaultDuration:850,calls:[[{opacity:[0,1],transformPerspective:[800,800],transformOriginX:[0,0],transformOriginY:[0,0],rotateX:180}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%",rotateX:0}},"transition.perspectiveLeftIn":{defaultDuration:950,calls:[[{opacity:[1,0],transformPerspective:[2e3,2e3],transformOriginX:[0,0],transformOriginY:[0,0],rotateY:[0,-180]}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%"}},"transition.perspectiveLeftOut":{defaultDuration:950,calls:[[{opacity:[0,1],transformPerspective:[2e3,2e3],transformOriginX:[0,0],transformOriginY:[0,0],rotateY:-180}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%",rotateY:0}},"transition.perspectiveRightIn":{defaultDuration:950,calls:[[{opacity:[1,0],transformPerspective:[2e3,2e3],transformOriginX:["100%","100%"],transformOriginY:[0,0],rotateY:[0,180]}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%"}},"transition.perspectiveRightOut":{defaultDuration:950,calls:[[{opacity:[0,1],transformPerspective:[2e3,2e3],transformOriginX:["100%","100%"],transformOriginY:[0,0],rotateY:180}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%",rotateY:0}}},o.RegisterEffect.packagedEffects)o.RegisterEffect.packagedEffects.hasOwnProperty(s)&&o.RegisterEffect(s,o.RegisterEffect.packagedEffects[s]);o.RunSequence=function(e){var t=i.extend(!0,[],e);t.length>1&&(i.each(t.reverse(),function(e,n){var r=t[e+1];if(r){var a=n.o||n.options,s=r.o||r.options,l=a&&!1===a.sequenceQueue?"begin":"complete",c=s&&s[l],u={};u[l]=function(){var e=r.e||r.elements,t=e.nodeType?[e]:e;c&&c.call(t,t),o(n)},r.o?r.o=i.extend({},s,u):r.options=i.extend({},s,u)}}),t.reverse()),o(t[0])}}else t.console&&console.log("Velocity UI Pack: Velocity must be loaded first. Aborting.")}(window.jQuery||window.Zepto||window,window,window&&window.document)}),function(e){"function"==typeof define&&define.amd?define("mousewheel",["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var a=t||window.event,s=l.call(arguments,1),c=0,d=0,f=0,p=0,h=0,g=0;if((t=e.event.fix(a)).type="mousewheel","detail"in a&&(f=-1*a.detail),"wheelDelta"in a&&(f=a.wheelDelta),"wheelDeltaY"in a&&(f=a.wheelDeltaY),"wheelDeltaX"in a&&(d=-1*a.wheelDeltaX),"axis"in a&&a.axis===a.HORIZONTAL_AXIS&&(d=-1*f,f=0),c=0===f?d:f,"deltaY"in a&&(c=f=-1*a.deltaY),"deltaX"in a&&(d=a.deltaX,0===f&&(c=-1*d)),0!==f||0!==d){if(1===a.deltaMode){var m=e.data(this,"mousewheel-line-height");c*=m,f*=m,d*=m}else if(2===a.deltaMode){var v=e.data(this,"mousewheel-page-height");c*=v,f*=v,d*=v}if(p=Math.max(Math.abs(f),Math.abs(d)),(!i||i>p)&&(i=p,r(a,p)&&(i/=40)),r(a,p)&&(c/=40,d/=40,f/=40),c=Math[c>=1?"floor":"ceil"](c/i),d=Math[d>=1?"floor":"ceil"](d/i),f=Math[f>=1?"floor":"ceil"](f/i),u.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();h=t.clientX-y.left,g=t.clientY-y.top}return t.deltaX=d,t.deltaY=f,t.deltaFactor=i,t.offsetX=h,t.offsetY=g,t.deltaMode=0,s.unshift(t,c,d,f),o&&clearTimeout(o),o=setTimeout(n,200),(e.event.dispatch||e.event.handle).apply(this,s)}}function n(){i=null}function r(e,t){return u.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var o,i,a=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],s="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(e.event.fixHooks)for(var c=a.length;c;)e.event.fixHooks[a[--c]]=e.event.mouseHooks;var u=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var n=s.length;n;)this.addEventListener(s[--n],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",u.getLineHeight(this)),e.data(this,"mousewheel-page-height",u.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var n=s.length;n;)this.removeEventListener(s[--n],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var n=e(t),r=n["offsetParent"in e.fn?"offsetParent":"parent"]();return r.length||(r=e("body")),parseInt(r.css("fontSize"),10)||parseInt(n.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),function(e){"function"==typeof define&&define.amd?define("customScrollbar",["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(e){var t,n,r;t="function"==typeof define&&define.amd,n="undefined"!=typeof module&&module.exports,r="https:"==document.location.protocol?"https:":"http:",t||(n?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+r+"//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js%3E%3C/script%3E"))),function(){var t,n="mCustomScrollbar",r="mCS",o=".mCustomScrollbar",i={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},a=0,s={},l=window.attachEvent&&!window.addEventListener?1:0,c=!1,u=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],d={init:function(t){var t=e.extend(!0,{},i,t),n=f.call(this);if(t.live){var l=t.liveSelector||this.selector||o,c=e(l);if("off"===t.live)return void h(l);s[l]=setTimeout(function(){c.mCustomScrollbar(t),"once"===t.live&&c.length&&h(l)},500)}else h(l);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":g(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=m(t.scrollButtons.scrollType),p(t),e(n).each(function(){var n=e(this);if(!n.data(r)){n.data(r,{idx:++a,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:n.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var o=n.data(r),i=o.opt,s=n.data("mcs-axis"),l=n.data("mcs-scrollbar-position"),c=n.data("mcs-theme");s&&(i.axis=s),l&&(i.scrollbarPosition=l),c&&(i.theme=c,p(i)),v.call(this),o&&i.callbacks.onCreate&&"function"==typeof i.callbacks.onCreate&&i.callbacks.onCreate.call(this),e("#mCSB_"+o.idx+"_container img:not(."+u[2]+")").addClass(u[2]),d.update.call(null,n)}})},update:function(t,n){var o=t||f.call(this);return e(o).each(function(){var t=e(this);if(t.data(r)){var o=t.data(r),i=o.opt,a=e("#mCSB_"+o.idx+"_container"),s=e("#mCSB_"+o.idx),l=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];if(!a.length)return;o.tweenRunning&&X(t),n&&o&&i.callbacks.onBeforeUpdate&&"function"==typeof i.callbacks.onBeforeUpdate&&i.callbacks.onBeforeUpdate.call(this),t.hasClass(u[3])&&t.removeClass(u[3]),t.hasClass(u[4])&&t.removeClass(u[4]),s.css("max-height","none"),s.height()!==t.height()&&s.css("max-height",t.height()),b.call(this),"y"===i.axis||i.advanced.autoExpandHorizontalScroll||a.css("width",y(a)),o.overflowed=T.call(this),E.call(this),i.autoDraggerLength&&x.call(this),C.call(this),D.call(this);var c=[Math.abs(a[0].offsetTop),Math.abs(a[0].offsetLeft)];"x"!==i.axis&&(o.overflowed[0]?l[0].height()>l[0].parent().height()?k.call(this):(Y(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),o.contentReset.y=null):(k.call(this),"y"===i.axis?_.call(this):"yx"===i.axis&&o.overflowed[1]&&Y(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==i.axis&&(o.overflowed[1]?l[1].width()>l[1].parent().width()?k.call(this):(Y(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),o.contentReset.x=null):(k.call(this),"x"===i.axis?_.call(this):"yx"===i.axis&&o.overflowed[0]&&Y(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),n&&o&&(2===n&&i.callbacks.onImageLoad&&"function"==typeof i.callbacks.onImageLoad?i.callbacks.onImageLoad.call(this):3===n&&i.callbacks.onSelectorChange&&"function"==typeof i.callbacks.onSelectorChange?i.callbacks.onSelectorChange.call(this):i.callbacks.onUpdate&&"function"==typeof i.callbacks.onUpdate&&i.callbacks.onUpdate.call(this)),V.call(this)}})},scrollTo:function(t,n){if(void 0!==t&&null!=t){var o=f.call(this);return e(o).each(function(){var o=e(this);if(o.data(r)){var i=o.data(r),a=i.opt,s={trigger:"external",scrollInertia:a.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},l=e.extend(!0,{},s,n),c=W.call(this,t),u=l.scrollInertia>0&&l.scrollInertia<17?17:l.scrollInertia;c[0]=z.call(this,c[0],"y"),c[1]=z.call(this,c[1],"x"),l.moveDragger&&(c[0]*=i.scrollRatio.y,c[1]*=i.scrollRatio.x),l.dur=re()?0:u,setTimeout(function(){null!==c[0]&&void 0!==c[0]&&"x"!==a.axis&&i.overflowed[0]&&(l.dir="y",l.overwrite="all",Y(o,c[0].toString(),l)),null!==c[1]&&void 0!==c[1]&&"y"!==a.axis&&i.overflowed[1]&&(l.dir="x",l.overwrite="none",Y(o,c[1].toString(),l))},l.timeout)}})}},stop:function(){var t=f.call(this);return e(t).each(function(){var t=e(this);t.data(r)&&X(t)})},disable:function(t){var n=f.call(this);return e(n).each(function(){var n=e(this);n.data(r)&&(n.data(r),V.call(this,"remove"),_.call(this),t&&k.call(this),E.call(this,!0),n.addClass(u[3]))})},destroy:function(){var t=f.call(this);return e(t).each(function(){var o=e(this);if(o.data(r)){var i=o.data(r),a=i.opt,s=e("#mCSB_"+i.idx),l=e("#mCSB_"+i.idx+"_container"),c=e(".mCSB_"+i.idx+"_scrollbar");a.live&&h(a.liveSelector||e(t).selector),V.call(this,"remove"),_.call(this),k.call(this),o.removeData(r),Z(this,"mcs"),c.remove(),l.find("img."+u[2]).removeClass(u[2]),s.replaceWith(l.contents()),o.removeClass(n+" _"+r+"_"+i.idx+" "+u[6]+" "+u[7]+" "+u[5]+" "+u[3]).addClass(u[4])}})}},f=function(){return"object"!=typeof e(this)||e(this).length<1?o:this},p=function(t){t.autoDraggerLength=!(e.inArray(t.theme,["rounded","rounded-dark","rounded-dots","rounded-dots-dark"])>-1)&&t.autoDraggerLength,t.autoExpandScrollbar=!(e.inArray(t.theme,["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"])>-1)&&t.autoExpandScrollbar,t.scrollButtons.enable=!(e.inArray(t.theme,["minimal","minimal-dark"])>-1)&&t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,["minimal","minimal-dark"])>-1||t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,["minimal","minimal-dark"])>-1?"outside":t.scrollbarPosition},h=function(e){s[e]&&(clearTimeout(s[e]),Z(s,e))},g=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},m=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},v=function(){var t=e(this),o=t.data(r),i=o.opt,a=i.autoExpandScrollbar?" "+u[1]+"_expand":"",s=["<div id='mCSB_"+o.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+o.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_vertical"+a+"'><div class='"+u[12]+"'><div id='mCSB_"+o.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+o.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+o.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_horizontal"+a+"'><div class='"+u[12]+"'><div id='mCSB_"+o.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],l="yx"===i.axis?"mCSB_vertical_horizontal":"x"===i.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===i.axis?s[0]+s[1]:"x"===i.axis?s[1]:s[0],d="yx"===i.axis?"<div id='mCSB_"+o.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",f=i.autoHideScrollbar?" "+u[6]:"",p="x"!==i.axis&&"rtl"===o.langDir?" "+u[7]:"";i.setWidth&&t.css("width",i.setWidth),i.setHeight&&t.css("height",i.setHeight),i.setLeft="y"!==i.axis&&"rtl"===o.langDir?"989999px":i.setLeft,t.addClass(n+" _"+r+"_"+o.idx+f+p).wrapInner("<div id='mCSB_"+o.idx+"' class='mCustomScrollBox mCS-"+i.theme+" "+l+"'><div id='mCSB_"+o.idx+"_container' class='mCSB_container' style='position:relative; top:"+i.setTop+"; left:"+i.setLeft+";' dir='"+o.langDir+"' /></div>");var h=e("#mCSB_"+o.idx),g=e("#mCSB_"+o.idx+"_container");"y"===i.axis||i.advanced.autoExpandHorizontalScroll||g.css("width",y(g)),"outside"===i.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),h.addClass("mCSB_outside").after(c)):(h.addClass("mCSB_inside").append(c),g.wrap(d)),w.call(this);var m=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];m[0].css("min-height",m[0].height()),m[1].css("min-width",m[1].width())},y=function(t){var n=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return e(this).outerWidth(!0)}).get())],r=t.parent().width();return n[0]>r?n[0]:n[1]>r?n[1]:"100%"},b=function(){var t=e(this),n=t.data(r),o=n.opt,i=e("#mCSB_"+n.idx+"_container");if(o.advanced.autoExpandHorizontalScroll&&"y"!==o.axis){i.css({width:"auto","min-width":0,"overflow-x":"scroll"});var a=Math.ceil(i[0].scrollWidth);3===o.advanced.autoExpandHorizontalScroll||2!==o.advanced.autoExpandHorizontalScroll&&a>i.parent().width()?i.css({width:a,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},w=function(){var t=e(this),n=t.data(r),o=n.opt,i=e(".mCSB_"+n.idx+"_scrollbar:first"),a=te(o.scrollButtons.tabindex)?"tabindex='"+o.scrollButtons.tabindex+"'":"",s=["<a href='#' class='"+u[13]+"' "+a+" />","<a href='#' class='"+u[14]+"' "+a+" />","<a href='#' class='"+u[15]+"' "+a+" />","<a href='#' class='"+u[16]+"' "+a+" />"],l=["x"===o.axis?s[2]:s[0],"x"===o.axis?s[3]:s[1],s[2],s[3]];o.scrollButtons.enable&&i.prepend(l[0]).append(l[1]).next(".mCSB_scrollTools").prepend(l[2]).append(l[3])},x=function(){var t=e(this),n=t.data(r),o=e("#mCSB_"+n.idx),i=e("#mCSB_"+n.idx+"_container"),a=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")],s=[o.height()/i.outerHeight(!1),o.width()/i.outerWidth(!1)],c=[parseInt(a[0].css("min-height")),Math.round(s[0]*a[0].parent().height()),parseInt(a[1].css("min-width")),Math.round(s[1]*a[1].parent().width())],u=l&&c[1]<c[0]?c[0]:c[1],d=l&&c[3]<c[2]?c[2]:c[3];a[0].css({height:u,"max-height":a[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":c[0]+"px"}),a[1].css({width:d,"max-width":a[1].parent().width()-10})},C=function(){var t=e(this),n=t.data(r),o=e("#mCSB_"+n.idx),i=e("#mCSB_"+n.idx+"_container"),a=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")],s=[i.outerHeight(!1)-o.height(),i.outerWidth(!1)-o.width()],l=[s[0]/(a[0].parent().height()-a[0].height()),s[1]/(a[1].parent().width()-a[1].width())];n.scrollRatio={y:l[0],x:l[1]}},S=function(e,t,n){var r=n?u[0]+"_expanded":"",o=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(u[0]+" "+r),o.toggleClass(u[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(u[0]),o.removeClass(u[1])):(e.addClass(u[0]),o.addClass(u[1])))},T=function(){var t=e(this),n=t.data(r),o=e("#mCSB_"+n.idx),i=e("#mCSB_"+n.idx+"_container"),a=null==n.overflowed?i.height():i.outerHeight(!1),s=null==n.overflowed?i.width():i.outerWidth(!1),l=i[0].scrollHeight,c=i[0].scrollWidth;return l>a&&(a=l),c>s&&(s=c),[a>o.height(),s>o.width()]},k=function(){var t=e(this),n=t.data(r),o=n.opt,i=e("#mCSB_"+n.idx),a=e("#mCSB_"+n.idx+"_container"),s=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];if(X(t),("x"!==o.axis&&!n.overflowed[0]||"y"===o.axis&&n.overflowed[0])&&(s[0].add(a).css("top",0),Y(t,"_resetY")),"y"!==o.axis&&!n.overflowed[1]||"x"===o.axis&&n.overflowed[1]){var l=dx=0;"rtl"===n.langDir&&(l=i.width()-a.outerWidth(!1),dx=Math.abs(l/n.scrollRatio.x)),a.css("left",l),s[1].css("left",dx),Y(t,"_resetX")}},D=function(){var t,n=e(this),o=n.data(r),i=o.opt;o.bindEvents||(A.call(this),i.contentTouchScroll&&$.call(this),I.call(this),i.mouseWheel.enable&&function r(){t=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(t),P.call(n[0])):r()},100)}(),M.call(this),B.call(this),i.advanced.autoScrollOnFocus&&F.call(this),i.scrollButtons.enable&&q.call(this),i.keyboard.enable&&H.call(this),o.bindEvents=!0)},_=function(){var t=e(this),n=t.data(r),o=n.opt,i=r+"_"+n.idx,a=".mCSB_"+n.idx+"_scrollbar",s=e("#mCSB_"+n.idx+",#mCSB_"+n.idx+"_container,#mCSB_"+n.idx+"_container_wrapper,"+a+" ."+u[12]+",#mCSB_"+n.idx+"_dragger_vertical,#mCSB_"+n.idx+"_dragger_horizontal,"+a+">a"),l=e("#mCSB_"+n.idx+"_container");o.advanced.releaseDraggableSelectors&&s.add(e(o.advanced.releaseDraggableSelectors)),o.advanced.extraDraggableSelectors&&s.add(e(o.advanced.extraDraggableSelectors)),n.bindEvents&&(e(document).add(e(!N()||top.document)).unbind("."+i),s.each(function(){e(this).unbind("."+i)}),clearTimeout(t[0]._focusTimeout),Z(t[0],"_focusTimeout"),clearTimeout(n.sequential.step),Z(n.sequential,"step"),clearTimeout(l[0].onCompleteTimeout),Z(l[0],"onCompleteTimeout"),n.bindEvents=!1)},E=function(t){var n=e(this),o=n.data(r),i=o.opt,a=e("#mCSB_"+o.idx+"_container_wrapper"),s=a.length?a:e("#mCSB_"+o.idx+"_container"),l=[e("#mCSB_"+o.idx+"_scrollbar_vertical"),e("#mCSB_"+o.idx+"_scrollbar_horizontal")],c=[l[0].find(".mCSB_dragger"),l[1].find(".mCSB_dragger")];"x"!==i.axis&&(o.overflowed[0]&&!t?(l[0].add(c[0]).add(l[0].children("a")).css("display","block"),s.removeClass(u[8]+" "+u[10])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[0].css("display","none"),s.removeClass(u[10])):(l[0].css("display","none"),s.addClass(u[10])),s.addClass(u[8]))),"y"!==i.axis&&(o.overflowed[1]&&!t?(l[1].add(c[1]).add(l[1].children("a")).css("display","block"),s.removeClass(u[9]+" "+u[11])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[1].css("display","none"),s.removeClass(u[11])):(l[1].css("display","none"),s.addClass(u[11])),s.addClass(u[9]))),o.overflowed[0]||o.overflowed[1]?n.removeClass(u[5]):n.addClass(u[5])},O=function(t){var n=t.type,r=t.target.ownerDocument!==document&&null!==frameElement?[e(frameElement).offset().top,e(frameElement).offset().left]:null,o=N()&&t.target.ownerDocument!==top.document&&null!==frameElement?[e(t.view.frameElement).offset().top,e(t.view.frameElement).offset().left]:[0,0];switch(n){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return r?[t.originalEvent.pageY-r[0]+o[0],t.originalEvent.pageX-r[1]+o[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],a=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[i.screenY,i.screenX,a>1]:[i.pageY,i.pageX,a>1];default:return r?[t.pageY-r[0]+o[0],t.pageX-r[1]+o[1],!1]:[t.pageY,t.pageX,!1]}},A=function(){function t(e,t,r,o){if(p[0].idleTimer=u.scrollInertia<233?250:0,n.attr("id")===f[1])var i="x",l=(n[0].offsetLeft-t+o)*s.scrollRatio.x;else var i="y",l=(n[0].offsetTop-e+r)*s.scrollRatio.y;Y(a,l.toString(),{dir:i,drag:!0})}var n,o,i,a=e(this),s=a.data(r),u=s.opt,d=r+"_"+s.idx,f=["mCSB_"+s.idx+"_dragger_vertical","mCSB_"+s.idx+"_dragger_horizontal"],p=e("#mCSB_"+s.idx+"_container"),h=e("#"+f[0]+",#"+f[1]),g=u.advanced.releaseDraggableSelectors?h.add(e(u.advanced.releaseDraggableSelectors)):h,m=u.advanced.extraDraggableSelectors?e(!N()||top.document).add(e(u.advanced.extraDraggableSelectors)):e(!N()||top.document);h.bind("contextmenu."+d,function(e){e.preventDefault()}).bind("mousedown."+d+" touchstart."+d+" pointerdown."+d+" MSPointerDown."+d,function(t){if(t.stopImmediatePropagation(),t.preventDefault(),J(t)){c=!0,l&&(document.onselectstart=function(){return!1}),L.call(p,!1),X(a);var r=(n=e(this)).offset(),s=O(t)[0]-r.top,d=O(t)[1]-r.left,f=n.height()+r.top,h=n.width()+r.left;f>s&&s>0&&h>d&&d>0&&(o=s,i=d),S(n,"active",u.autoExpandScrollbar)}}).bind("touchmove."+d,function(e){e.stopImmediatePropagation(),e.preventDefault();var r=n.offset(),a=O(e)[0]-r.top,s=O(e)[1]-r.left;t(o,i,a,s)}),e(document).add(m).bind("mousemove."+d+" pointermove."+d+" MSPointerMove."+d,function(e){if(n){var r=n.offset(),a=O(e)[0]-r.top,s=O(e)[1]-r.left;if(o===a&&i===s)return;t(o,i,a,s)}}).add(g).bind("mouseup."+d+" touchend."+d+" pointerup."+d+" MSPointerUp."+d,function(){n&&(S(n,"active",u.autoExpandScrollbar),n=null),c=!1,l&&(document.onselectstart=null),L.call(p,!0)})},$=function(){function n(e){if(!ee(e)||c||O(e)[2])t=0;else{t=1,C=0,S=0,u=1,T.removeClass("mCS_touch_action");var n=A.offset();d=O(e)[0]-n.top,f=O(e)[1]-n.left,j=[O(e)[0],O(e)[1]]}}function o(e){if(ee(e)&&!c&&!O(e)[2]&&(D.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!S||C)&&u)){m=K();var t=E.offset(),n=O(e)[0]-t.top,r=O(e)[1]-t.left,o="mcsLinearOut";if(I.push(n),P.push(r),j[2]=Math.abs(O(e)[0]-j[0]),j[3]=Math.abs(O(e)[1]-j[1]),k.overflowed[0])var i=$[0].parent().height()-$[0].height(),a=d-n>0&&n-d>-i*k.scrollRatio.y&&(2*j[3]<j[2]||"yx"===D.axis);if(k.overflowed[1])var s=$[1].parent().width()-$[1].width(),p=f-r>0&&r-f>-s*k.scrollRatio.x&&(2*j[2]<j[3]||"yx"===D.axis);a||p?(B||e.preventDefault(),C=1):(S=1,T.addClass("mCS_touch_action")),B&&e.preventDefault(),w="yx"===D.axis?[d-n,f-r]:"x"===D.axis?[null,f-r]:[d-n,null],A[0].idleTimer=250,k.overflowed[0]&&l(w[0],R,o,"y","all",!0),k.overflowed[1]&&l(w[1],R,o,"x",L,!0)}}function i(e){if(!ee(e)||c||O(e)[2])t=0;else{t=1,e.stopImmediatePropagation(),X(T),g=K();var n=E.offset();p=O(e)[0]-n.top,h=O(e)[1]-n.left,I=[],P=[]}}function a(e){if(ee(e)&&!c&&!O(e)[2]){u=0,e.stopImmediatePropagation(),C=0,S=0,v=K();var t=E.offset(),n=O(e)[0]-t.top,r=O(e)[1]-t.left;if(!(v-m>30)){var o="mcsEaseOut",i=2.5>(b=1e3/(v-g)),a=i?[I[I.length-2],P[P.length-2]]:[0,0];y=i?[n-a[0],r-a[1]]:[n-p,r-h];var d=[Math.abs(y[0]),Math.abs(y[1])];b=i?[Math.abs(y[0]/4),Math.abs(y[1]/4)]:[b,b];var f=[Math.abs(A[0].offsetTop)-y[0]*s(d[0]/b[0],b[0]),Math.abs(A[0].offsetLeft)-y[1]*s(d[1]/b[1],b[1])];w="yx"===D.axis?[f[0],f[1]]:"x"===D.axis?[null,f[1]]:[f[0],null],x=[4*d[0]+D.scrollInertia,4*d[1]+D.scrollInertia];var T=parseInt(D.contentTouchScroll)||0;w[0]=d[0]>T?w[0]:0,w[1]=d[1]>T?w[1]:0,k.overflowed[0]&&l(w[0],x[0],o,"y",L,!1),k.overflowed[1]&&l(w[1],x[1],o,"x",L,!1)}}}function s(e,t){var n=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?n[0]:n[3]:e>60?t>3?n[3]:n[2]:e>30?t>8?n[1]:t>6?n[0]:t>4?t:n[2]:t>8?t:n[3]}function l(e,t,n,r,o,i){e&&Y(T,e.toString(),{dur:t,scrollEasing:n,dir:r,overwrite:o,drag:i})}var u,d,f,p,h,g,m,v,y,b,w,x,C,S,T=e(this),k=T.data(r),D=k.opt,_=r+"_"+k.idx,E=e("#mCSB_"+k.idx),A=e("#mCSB_"+k.idx+"_container"),$=[e("#mCSB_"+k.idx+"_dragger_vertical"),e("#mCSB_"+k.idx+"_dragger_horizontal")],I=[],P=[],R=0,L="yx"===D.axis?"none":"all",j=[],M=A.find("iframe"),F=["touchstart."+_+" pointerdown."+_+" MSPointerDown."+_,"touchmove."+_+" pointermove."+_+" MSPointerMove."+_,"touchend."+_+" pointerup."+_+" MSPointerUp."+_],B=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;A.bind(F[0],function(e){n(e)}).bind(F[1],function(e){o(e)}),E.bind(F[0],function(e){i(e)}).bind(F[2],function(e){a(e)}),M.length&&M.each(function(){e(this).bind("load",function(){N(this)&&e(this.contentDocument||this.contentWindow.document).bind(F[0],function(e){n(e),i(e)}).bind(F[1],function(e){o(e)}).bind(F[2],function(e){a(e)})})})},I=function(){function n(e,t,n){l.type=n&&o?"stepped":"stepless",l.scrollAmount=10,U(i,e,t,"mcsLinearOut",n?60:null)}var o,i=e(this),a=i.data(r),s=a.opt,l=a.sequential,u=r+"_"+a.idx,d=e("#mCSB_"+a.idx+"_container"),f=d.parent();d.bind("mousedown."+u,function(){t||o||(o=1,c=!0)}).add(document).bind("mousemove."+u,function(e){if(!t&&o&&(window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&document.selection.createRange().text)){var r=d.offset(),i=O(e)[0]-r.top+d[0].offsetTop,c=O(e)[1]-r.left+d[0].offsetLeft;i>0&&i<f.height()&&c>0&&c<f.width()?l.step&&n("off",null,"stepped"):("x"!==s.axis&&a.overflowed[0]&&(0>i?n("on",38):i>f.height()&&n("on",40)),"y"!==s.axis&&a.overflowed[1]&&(0>c?n("on",37):c>f.width()&&n("on",39)))}}).bind("mouseup."+u+" dragend."+u,function(){t||(o&&(o=0,n("off",null)),c=!1)})},P=function(){function t(t,r){if(X(n),!j(n,t.target)){var a="auto"!==i.mouseWheel.deltaFactor?parseInt(i.mouseWheel.deltaFactor):l&&t.deltaFactor<100?100:t.deltaFactor||100,u=i.scrollInertia;if("x"===i.axis||"x"===i.mouseWheel.axis)var d="x",f=[Math.round(a*o.scrollRatio.x),parseInt(i.mouseWheel.scrollAmount)],p="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>=s.width()?.9*s.width():f[0],h=Math.abs(e("#mCSB_"+o.idx+"_container")[0].offsetLeft),g=c[1][0].offsetLeft,m=c[1].parent().width()-c[1].width(),v="y"===i.mouseWheel.axis?t.deltaY||r:t.deltaX;else var d="y",f=[Math.round(a*o.scrollRatio.y),parseInt(i.mouseWheel.scrollAmount)],p="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>=s.height()?.9*s.height():f[0],h=Math.abs(e("#mCSB_"+o.idx+"_container")[0].offsetTop),g=c[0][0].offsetTop,m=c[0].parent().height()-c[0].height(),v=t.deltaY||r;"y"===d&&!o.overflowed[0]||"x"===d&&!o.overflowed[1]||((i.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(v=-v),i.mouseWheel.normalizeDelta&&(v=0>v?-1:1),(v>0&&0!==g||0>v&&g!==m||i.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<5&&!i.mouseWheel.normalizeDelta&&(p=t.deltaFactor,u=17),Y(n,(h-v*p).toString(),{dir:d,dur:u}))}}if(e(this).data(r)){var n=e(this),o=n.data(r),i=o.opt,a=r+"_"+o.idx,s=e("#mCSB_"+o.idx),c=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],u=e("#mCSB_"+o.idx+"_container").find("iframe");u.length&&u.each(function(){e(this).bind("load",function(){N(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+a,function(e,n){t(e,n)})})}),s.bind("mousewheel."+a,function(e,n){t(e,n)})}},R=new Object,N=function(t){var n=!1,r=!1,o=null;if(void 0===t?r="#empty":void 0!==e(t).attr("id")&&(r=e(t).attr("id")),!1!==r&&void 0!==R[r])return R[r];if(t){try{var i=t.contentDocument||t.contentWindow.document;o=i.body.innerHTML}catch(e){}n=null!==o}else{try{var i=top.document;o=i.body.innerHTML}catch(e){}n=null!==o}return!1!==r&&(R[r]=n),n},L=function(e){var t=this.find("iframe");if(t.length){var n=e?"auto":"none";t.css("pointer-events",n)}},j=function(t,n){var o=n.nodeName.toLowerCase(),i=t.data(r).opt.mouseWheel.disableOver;return e.inArray(o,i)>-1&&!(e.inArray(o,["select","textarea"])>-1&&!e(n).is(":focus"))},M=function(){var t,n=e(this),o=n.data(r),i=r+"_"+o.idx,a=e("#mCSB_"+o.idx+"_container"),s=a.parent(),l=e(".mCSB_"+o.idx+"_scrollbar ."+u[12]);l.bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i,function(n){c=!0,e(n.target).hasClass("mCSB_dragger")||(t=1)}).bind("touchend."+i+" pointerup."+i+" MSPointerUp."+i,function(){c=!1}).bind("click."+i,function(r){if(t&&(t=0,e(r.target).hasClass(u[12])||e(r.target).hasClass("mCSB_draggerRail"))){X(n);var i=e(this),l=i.find(".mCSB_dragger");if(i.parent(".mCSB_scrollTools_horizontal").length>0){if(!o.overflowed[1])return;var c="x",d=r.pageX>l.offset().left?-1:1,f=Math.abs(a[0].offsetLeft)-d*(.9*s.width())}else{if(!o.overflowed[0])return;var c="y",d=r.pageY>l.offset().top?-1:1,f=Math.abs(a[0].offsetTop)-d*(.9*s.height())}Y(n,f.toString(),{dir:c,scrollEasing:"mcsEaseInOut"})}})},F=function(){var t=e(this),n=t.data(r),o=n.opt,i=r+"_"+n.idx,a=e("#mCSB_"+n.idx+"_container"),s=a.parent();a.bind("focusin."+i,function(){var n=e(document.activeElement),r=a.find(".mCustomScrollBox").length;n.is(o.advanced.autoScrollOnFocus)&&(X(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=r?17*r:0,t[0]._focusTimeout=setTimeout(function(){var e=[ne(n)[0],ne(n)[1]],r=[a[0].offsetTop,a[0].offsetLeft],i=[r[0]+e[0]>=0&&r[0]+e[0]<s.height()-n.outerHeight(!1),r[1]+e[1]>=0&&r[0]+e[1]<s.width()-n.outerWidth(!1)],l="yx"!==o.axis||i[0]||i[1]?"all":"none";"x"===o.axis||i[0]||Y(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:l,dur:0}),"y"===o.axis||i[1]||Y(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:l,dur:0})},t[0]._focusTimer))})},B=function(){var t=e(this),n=t.data(r),o=r+"_"+n.idx,i=e("#mCSB_"+n.idx+"_container").parent();i.bind("scroll."+o,function(){0===i.scrollTop()&&0===i.scrollLeft()||e(".mCSB_"+n.idx+"_scrollbar").css("visibility","hidden")})},q=function(){var t=e(this),n=t.data(r),o=n.opt,i=n.sequential,a=r+"_"+n.idx,s=".mCSB_"+n.idx+"_scrollbar",l=e(s+">a");l.bind("contextmenu."+a,function(e){e.preventDefault()}).bind("mousedown."+a+" touchstart."+a+" pointerdown."+a+" MSPointerDown."+a+" mouseup."+a+" touchend."+a+" pointerup."+a+" MSPointerUp."+a+" mouseout."+a+" pointerout."+a+" MSPointerOut."+a+" click."+a,function(r){function a(e,n){i.scrollAmount=o.scrollButtons.scrollAmount,U(t,e,n)}if(r.preventDefault(),J(r)){var s=e(this).attr("class");switch(i.type=o.scrollButtons.scrollType,r.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===i.type)return;c=!0,n.tweenRunning=!1,a("on",s);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===i.type)return;c=!1,i.dir&&a("off",s);break;case"click":if("stepped"!==i.type||n.tweenRunning)return;a("on",s)}}})},H=function(){function t(t){function r(e,t){a.type=i.keyboard.scrollType,a.scrollAmount=i.keyboard.scrollAmount,"stepped"===a.type&&o.tweenRunning||U(n,e,t)}switch(t.type){case"blur":o.tweenRunning&&a.dir&&r("off",null);break;case"keydown":case"keyup":var s=t.keyCode?t.keyCode:t.which,l="on";if("x"!==i.axis&&(38===s||40===s)||"y"!==i.axis&&(37===s||39===s)){if((38===s||40===s)&&!o.overflowed[0]||(37===s||39===s)&&!o.overflowed[1])return;"keyup"===t.type&&(l="off"),e(document.activeElement).is(d)||(t.preventDefault(),t.stopImmediatePropagation(),r(l,s))}else if(33===s||34===s){if((o.overflowed[0]||o.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type){X(n);var f=34===s?-1:1;if("x"===i.axis||"yx"===i.axis&&o.overflowed[1]&&!o.overflowed[0])var p="x",h=Math.abs(c[0].offsetLeft)-f*(.9*u.width());else var p="y",h=Math.abs(c[0].offsetTop)-f*(.9*u.height());Y(n,h.toString(),{dir:p,scrollEasing:"mcsEaseInOut"})}}else if((35===s||36===s)&&!e(document.activeElement).is(d)&&((o.overflowed[0]||o.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type)){if("x"===i.axis||"yx"===i.axis&&o.overflowed[1]&&!o.overflowed[0])var p="x",h=35===s?Math.abs(u.width()-c.outerWidth(!1)):0;else var p="y",h=35===s?Math.abs(u.height()-c.outerHeight(!1)):0;Y(n,h.toString(),{dir:p,scrollEasing:"mcsEaseInOut"})}}}var n=e(this),o=n.data(r),i=o.opt,a=o.sequential,s=r+"_"+o.idx,l=e("#mCSB_"+o.idx),c=e("#mCSB_"+o.idx+"_container"),u=c.parent(),d="input,textarea,select,datalist,keygen,[contenteditable='true']",f=c.find("iframe"),p=["blur."+s+" keydown."+s+" keyup."+s];f.length&&f.each(function(){e(this).bind("load",function(){N(this)&&e(this.contentDocument||this.contentWindow.document).bind(p[0],function(e){t(e)})})}),l.attr("tabindex","0").bind(p[0],function(e){t(e)})},U=function(t,n,o,i,a){function s(e){c.snapAmount&&(d.scrollAmount=c.snapAmount instanceof Array?"x"===d.dir[0]?c.snapAmount[1]:c.snapAmount[0]:c.snapAmount);var n="stepped"!==d.type,r=a||(e?n?h/1.5:g:1e3/60),o=e?n?7.5:40:2.5,u=[Math.abs(f[0].offsetTop),Math.abs(f[0].offsetLeft)],p=[l.scrollRatio.y>10?10:l.scrollRatio.y,l.scrollRatio.x>10?10:l.scrollRatio.x],m="x"===d.dir[0]?u[1]+d.dir[1]*(p[1]*o):u[0]+d.dir[1]*(p[0]*o),v="x"===d.dir[0]?u[1]+d.dir[1]*parseInt(d.scrollAmount):u[0]+d.dir[1]*parseInt(d.scrollAmount),y="auto"!==d.scrollAmount?v:m,b=i||(e?n?"mcsLinearOut":"mcsEaseInOut":"mcsLinear"),w=!!e;return e&&17>r&&(y="x"===d.dir[0]?u[1]:u[0]),Y(t,y.toString(),{dir:d.dir[0],scrollEasing:b,dur:r,onComplete:w}),e?void(d.dir=!1):(clearTimeout(d.step),void(d.step=setTimeout(function(){s()},r)))}var l=t.data(r),c=l.opt,d=l.sequential,f=e("#mCSB_"+l.idx+"_container"),p="stepped"===d.type,h=c.scrollInertia<26?26:c.scrollInertia,g=c.scrollInertia<1?17:c.scrollInertia;switch(n){case"on":if(d.dir=[o===u[16]||o===u[15]||39===o||37===o?"x":"y",o===u[13]||o===u[15]||38===o||37===o?-1:1],X(t),te(o)&&"stepped"===d.type)return;s(p);break;case"off":clearTimeout(d.step),Z(d,"step"),X(t),(p||l.tweenRunning&&d.dir)&&s(!0)}},W=function(t){var n=e(this).data(r).opt,o=[];return"function"==typeof t&&(t=t()),t instanceof Array?o=t.length>1?[t[0],t[1]]:"x"===n.axis?[null,t[0]]:[t[0],null]:(o[0]=t.y?t.y:t.x||"x"===n.axis?null:t,o[1]=t.x?t.x:t.y||"y"===n.axis?null:t),"function"==typeof o[0]&&(o[0]=o[0]()),"function"==typeof o[1]&&(o[1]=o[1]()),o},z=function(t,n){if(null!=t&&void 0!==t){var o=e(this),i=o.data(r),a=i.opt,s=e("#mCSB_"+i.idx+"_container"),l=s.parent(),c=typeof t;n||(n="x"===a.axis?"x":"y");var u="x"===n?s.outerWidth(!1)-l.width():s.outerHeight(!1)-l.height(),f="x"===n?s[0].offsetLeft:s[0].offsetTop,p="x"===n?"left":"top";switch(c){case"function":return t();case"object":var h=t.jquery?t:e(t);if(!h.length)return;return"x"===n?ne(h)[1]:ne(h)[0];case"string":case"number":if(te(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(u*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(f-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var g=f+parseInt(t.split("+=")[1]);return g>=0?0:Math.abs(g)}if(-1!==t.indexOf("px")&&te(t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(l.height()-s.outerHeight(!1));if("right"===t)return Math.abs(l.width()-s.outerWidth(!1));if("first"===t||"last"===t){var h=s.find(":"+t);return"x"===n?ne(h)[1]:ne(h)[0]}return e(t).length?"x"===n?ne(e(t))[1]:ne(e(t))[0]:(s.css(p,t),void d.update.call(null,o[0]))}}},V=function(t){function n(e){clearTimeout(s[0].autoUpdate),d.update.call(null,o[0],e)}var o=e(this),i=o.data(r),a=i.opt,s=e("#mCSB_"+i.idx+"_container");return t?(clearTimeout(s[0].autoUpdate),void Z(s[0],"autoUpdate")):void function t(){return clearTimeout(s[0].autoUpdate),0===o.parents("html").length?void(o=null):void(s[0].autoUpdate=setTimeout(function(){return a.advanced.updateOnSelectorChange&&(i.poll.change.n=function(){!0===a.advanced.updateOnSelectorChange&&(a.advanced.updateOnSelectorChange="*");var e=0,t=s.find(a.advanced.updateOnSelectorChange);return a.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){e+=this.offsetHeight+this.offsetWidth}),e}(),i.poll.change.n!==i.poll.change.o)?(i.poll.change.o=i.poll.change.n,void n(3)):a.advanced.updateOnContentResize&&(i.poll.size.n=o[0].scrollHeight+o[0].scrollWidth+s[0].offsetHeight+o[0].offsetHeight+o[0].offsetWidth,i.poll.size.n!==i.poll.size.o)?(i.poll.size.o=i.poll.size.n,void n(1)):!a.advanced.updateOnImageLoad||"auto"===a.advanced.updateOnImageLoad&&"y"===a.axis||(i.poll.img.n=s.find("img").length,i.poll.img.n===i.poll.img.o)?void((a.advanced.updateOnSelectorChange||a.advanced.updateOnContentResize||a.advanced.updateOnImageLoad)&&t()):(i.poll.img.o=i.poll.img.n,void s.find("img").each(function(){!function(t){if(e(t).hasClass(u[2]))n();else{var r=new Image;r.onload=function(e,t){return function(){return t.apply(e,arguments)}}(r,function(){this.onload=null,e(t).addClass(u[2]),n(2)}),r.src=t.src}}(this)}))},a.advanced.autoUpdateTimeout))}()},X=function(t){var n=t.data(r),o=e("#mCSB_"+n.idx+"_container,#mCSB_"+n.idx+"_container_wrapper,#mCSB_"+n.idx+"_dragger_vertical,#mCSB_"+n.idx+"_dragger_horizontal");o.each(function(){Q.call(this)})},Y=function(t,n,o){function i(e){return s&&l.callbacks[e]&&"function"==typeof l.callbacks[e]}function a(){var e=[f[0].offsetTop,f[0].offsetLeft],n=[v[0].offsetTop,v[0].offsetLeft],r=[f.outerHeight(!1),f.outerWidth(!1)],i=[d.height(),d.width()];t[0].mcs={content:f,top:e[0],left:e[1],draggerTop:n[0],draggerLeft:n[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(r[0])-i[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(r[1])-i[1])),direction:o.dir}}var s=t.data(r),l=s.opt,c={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:l.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},o=e.extend(c,o),u=[o.dur,o.drag?0:o.dur],d=e("#mCSB_"+s.idx),f=e("#mCSB_"+s.idx+"_container"),p=f.parent(),h=l.callbacks.onTotalScrollOffset?W.call(t,l.callbacks.onTotalScrollOffset):[0,0],g=l.callbacks.onTotalScrollBackOffset?W.call(t,l.callbacks.onTotalScrollBackOffset):[0,0];if(s.trigger=o.trigger,0===p.scrollTop()&&0===p.scrollLeft()||(e(".mCSB_"+s.idx+"_scrollbar").css("visibility","visible"),p.scrollTop(0).scrollLeft(0)),"_resetY"!==n||s.contentReset.y||(i("onOverflowYNone")&&l.callbacks.onOverflowYNone.call(t[0]),s.contentReset.y=1),"_resetX"!==n||s.contentReset.x||(i("onOverflowXNone")&&l.callbacks.onOverflowXNone.call(t[0]),s.contentReset.x=1),"_resetY"!==n&&"_resetX"!==n){if(!s.contentReset.y&&t[0].mcs||!s.overflowed[0]||(i("onOverflowY")&&l.callbacks.onOverflowY.call(t[0]),s.contentReset.x=null),!s.contentReset.x&&t[0].mcs||!s.overflowed[1]||(i("onOverflowX")&&l.callbacks.onOverflowX.call(t[0]),s.contentReset.x=null),l.snapAmount){var m=l.snapAmount instanceof Array?"x"===o.dir?l.snapAmount[1]:l.snapAmount[0]:l.snapAmount;n=function(e,t,n){return Math.round(e/t)*t-n}(n,m,l.snapOffset)}switch(o.dir){case"x":var v=e("#mCSB_"+s.idx+"_dragger_horizontal"),y="left",b=f[0].offsetLeft,w=[d.width()-f.outerWidth(!1),v.parent().width()-v.width()],x=[n,0===n?0:n/s.scrollRatio.x],C=h[1],T=g[1],k=C>0?C/s.scrollRatio.x:0,D=T>0?T/s.scrollRatio.x:0;break;case"y":var v=e("#mCSB_"+s.idx+"_dragger_vertical"),y="top",b=f[0].offsetTop,w=[d.height()-f.outerHeight(!1),v.parent().height()-v.height()],x=[n,0===n?0:n/s.scrollRatio.y],C=h[0],T=g[0],k=C>0?C/s.scrollRatio.y:0,D=T>0?T/s.scrollRatio.y:0}x[1]<0||0===x[0]&&0===x[1]?x=[0,0]:x[1]>=w[1]?x=[w[0],w[1]]:x[0]=-x[0],t[0].mcs||(a(),i("onInit")&&l.callbacks.onInit.call(t[0])),clearTimeout(f[0].onCompleteTimeout),G(v[0],y,Math.round(x[1]),u[1],o.scrollEasing),!s.tweenRunning&&(0===b&&x[0]>=0||b===w[0]&&x[0]<=w[0])||G(f[0],y,Math.round(x[0]),u[0],o.scrollEasing,o.overwrite,{onStart:function(){o.callbacks&&o.onStart&&!s.tweenRunning&&(i("onScrollStart")&&(a(),l.callbacks.onScrollStart.call(t[0])),s.tweenRunning=!0,S(v),s.cbOffsets=[l.callbacks.alwaysTriggerOffsets||b>=w[0]+C,l.callbacks.alwaysTriggerOffsets||-T>=b])},onUpdate:function(){o.callbacks&&o.onUpdate&&i("whileScrolling")&&(a(),l.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(o.callbacks&&o.onComplete){"yx"===l.axis&&clearTimeout(f[0].onCompleteTimeout);var e=f[0].idleTimer||0;f[0].onCompleteTimeout=setTimeout(function(){i("onScroll")&&(a(),l.callbacks.onScroll.call(t[0])),i("onTotalScroll")&&x[1]>=w[1]-k&&s.cbOffsets[0]&&(a(),l.callbacks.onTotalScroll.call(t[0])),i("onTotalScrollBack")&&x[1]<=D&&s.cbOffsets[1]&&(a(),l.callbacks.onTotalScrollBack.call(t[0])),s.tweenRunning=!1,f[0].idleTimer=0,S(v,"hide")},e)}}})}},G=function(e,t,n,r,o,i,a){function s(){y.stop||(g||d.call(),g=K()-h,l(),g>=y.time&&(y.time=g>y.time?g+c-(g-y.time):g+c-1,y.time<g+1&&(y.time=g+1)),y.time<r?y.id=u(s):p.call())}function l(){r>0?(y.currVal=function(e,t,n,r,o){switch(o){case"linear":case"mcsLinear":return n*e/r+t;case"mcsLinearOut":return e/=r,e--,n*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return 1>(e/=r/2)?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t;case"easeInOutStrong":return 1>(e/=r/2)?n/2*Math.pow(2,10*(e-1))+t:(e--,n/2*(2-Math.pow(2,-10*e))+t);case"easeInOut":case"mcsEaseInOut":return 1>(e/=r/2)?n/2*e*e*e+t:n/2*((e-=2)*e*e+2)+t;case"easeOutSmooth":return e/=r,-n*(--e*e*e*e-1)+t;case"easeOutStrong":return n*(1-Math.pow(2,-10*e/r))+t;case"easeOut":case"mcsEaseOut":default:var i=(e/=r)*e,a=i*e;return t+n*(.499999999999997*a*i+-2.5*i*i+5.5*a+-6.5*i+4*e)}}(y.time,m,b,r,o),v[t]=Math.round(y.currVal)+"px"):v[t]=n+"px",f.call()}e._mTween||(e._mTween={top:{},left:{}});var c,u,a=a||{},d=a.onStart||function(){},f=a.onUpdate||function(){},p=a.onComplete||function(){},h=K(),g=0,m=e.offsetTop,v=e.style,y=e._mTween[t];"left"===t&&(m=e.offsetLeft);var b=n-m;y.stop=0,"none"!==i&&null!=y.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(y.id):clearTimeout(y.id),y.id=null),c=1e3/60,y.time=g+c,u=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return l(),setTimeout(e,.01)},y.id=u(s)},K=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},Q=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],n=0;n<t.length;n++){var r=t[n];e._mTween[r].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[r].id):clearTimeout(e._mTween[r].id),e._mTween[r].id=null,e._mTween[r].stop=1)}},Z=function(e,t){try{delete e[t]}catch(n){e[t]=null}},J=function(e){return!(e.which&&1!==e.which)},ee=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},te=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ne=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},re=function(){var e=function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}();return!!e&&document[e]};e.fn[n]=function(t){return d[t]?d[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):d.init.apply(this,arguments)},e[n]=function(t){return d[t]?d[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):d.init.apply(this,arguments)},e[n].defaults=i,window[n]=!0,e(window).bind("load",function(){e(o)[n](),e.extend(e.expr[":"],{mcsInView:e.expr[":"].mcsInView||function(t){var n,r,o=e(t),i=o.parents(".mCSB_container");if(i.length)return n=i.parent(),(r=[i[0].offsetTop,i[0].offsetLeft])[0]+ne(o)[0]>=0&&r[0]+ne(o)[0]<n.height()-o.outerHeight(!1)&&r[1]+ne(o)[1]>=0&&r[1]+ne(o)[1]<n.width()-o.outerWidth(!1)},mcsInSight:e.expr[":"].mcsInSight||function(t,n,r){var o,i,a,s,l=e(t),c=l.parents(".mCSB_container"),u="exact"===r[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(c.length)return o=[l.outerHeight(!1),l.outerWidth(!1)],a=[c[0].offsetTop+ne(l)[0],c[0].offsetLeft+ne(l)[1]],i=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],s=[o[0]<i[0]?u[0]:u[1],o[1]<i[1]?u[0]:u[1]],a[0]-i[0]*s[0][0]<0&&a[0]+o[0]-i[0]*s[0][1]>=0&&a[1]-i[1]*s[1][0]<0&&a[1]+o[1]-i[1]*s[1][1]>=0},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var n=e(t).data(r);if(n)return n.overflowed[0]||n.overflowed[1]}})})}()}),function(e){"use strict";function t(t){return t.is('[type="checkbox"]')?t.prop("checked"):t.is('[type="radio"]')?!!e('[name="'+t.attr("name")+'"]:checked').length:t.is("select[multiple]")?(t.val()||[]).length:t.val()}function n(t){return this.each(function(){var n=e(this),o=e.extend({},r.DEFAULTS,n.data(),"object"==typeof t&&t),i=n.data("bs.validator");(i||"destroy"!=t)&&(i||n.data("bs.validator",i=new r(this,o)),"string"==typeof t&&i[t]())})}var r=function(n,o){this.options=o,this.validators=e.extend({},r.VALIDATORS,o.custom),this.$element=e(n),this.$btn=e('button[type="submit"], input[type="submit"]').filter('[form="'+this.$element.attr("id")+'"]').add(this.$element.find('input[type="submit"], button[type="submit"]')),this.update(),this.$element.on("input.bs.validator change.bs.validator focusout.bs.validator",e.proxy(this.onInput,this)),this.$element.on("submit.bs.validator",e.proxy(this.onSubmit,this)),this.$element.on("reset.bs.validator",e.proxy(this.reset,this)),this.$element.find("[data-match]").each(function(){var n=e(this),r=n.attr("data-match");e(r).on("input.bs.validator",function(){t(n)&&n.trigger("input.bs.validator")})}),this.$inputs.filter(function(){return t(e(this))&&!e(this).closest(".has-error").length}).trigger("focusout"),this.$element.attr("novalidate",!0)};r.VERSION="0.11.9",r.INPUT_SELECTOR=':input:not([type="hidden"], [type="submit"], [type="reset"], button)',r.FOCUS_OFFSET=20,r.DEFAULTS={delay:500,html:!1,disable:!0,focus:!0,custom:{},errors:{match:"Does not match",minlength:"Not long enough"},feedback:{success:"glyphicon-ok",error:"glyphicon-remove"}},r.VALIDATORS={native:function(e){var t=e[0];return t.checkValidity?!t.checkValidity()&&!t.validity.valid&&(t.validationMessage||"error!"):void 0},match:function(t){var n=t.attr("data-match");return t.val()!==e(n).val()&&r.DEFAULTS.errors.match},minlength:function(e){var t=e.attr("data-minlength");return e.val().length<t&&r.DEFAULTS.errors.minlength}},r.prototype.update=function(){var t=this;return this.$inputs=this.$element.find(r.INPUT_SELECTOR).add(this.$element.find('[data-validate="true"]')).not(this.$element.find('[data-validate="false"]').each(function(){t.clearErrors(e(this))})),this.toggleSubmit(),this},r.prototype.onInput=function(t){var n=this,r=e(t.target),o="focusout"!==t.type;this.$inputs.is(r)&&this.validateInput(r,o).done(function(){n.toggleSubmit()})},r.prototype.validateInput=function(n,r){var o=(t(n),n.data("bs.validator.errors"));n.is('[type="radio"]')&&(n=this.$element.find('input[name="'+n.attr("name")+'"]'));var i=e.Event("validate.bs.validator",{relatedTarget:n[0]});if(this.$element.trigger(i),!i.isDefaultPrevented()){var a=this;return this.runValidators(n).done(function(t){n.data("bs.validator.errors",t),t.length?r?a.defer(n,a.showErrors):a.showErrors(n):a.clearErrors(n),o&&t.toString()===o.toString()||(i=t.length?e.Event("invalid.bs.validator",{relatedTarget:n[0],detail:t}):e.Event("valid.bs.validator",{relatedTarget:n[0],detail:o}),a.$element.trigger(i)),a.toggleSubmit(),a.$element.trigger(e.Event("validated.bs.validator",{relatedTarget:n[0]}))})}},r.prototype.runValidators=function(n){function r(e){return function(e){return n.attr("data-"+e+"-error")}(e)||function(){var e=n[0].validity;return e.typeMismatch?n.attr("data-type-error"):e.patternMismatch?n.attr("data-pattern-error"):e.stepMismatch?n.attr("data-step-error"):e.rangeOverflow?n.attr("data-max-error"):e.rangeUnderflow?n.attr("data-min-error"):e.valueMissing?n.attr("data-required-error"):null}()||n.attr("data-error")}var o=[],i=e.Deferred();return n.data("bs.validator.deferred")&&n.data("bs.validator.deferred").reject(),n.data("bs.validator.deferred",i),e.each(this.validators,e.proxy(function(e,i){var a=null;!t(n)&&!n.attr("required")||void 0===n.attr("data-"+e)&&"native"!=e||!(a=i.call(this,n))||(a=r(e)||a,!~o.indexOf(a)&&o.push(a))},this)),!o.length&&t(n)&&n.attr("data-remote")?this.defer(n,function(){var a={};a[n.attr("name")]=t(n),e.get(n.attr("data-remote"),a).fail(function(e,t,n){o.push(r("remote")||n)}).always(function(){i.resolve(o)})}):i.resolve(o),i.promise()},r.prototype.validate=function(){var t=this;return e.when(this.$inputs.map(function(){return t.validateInput(e(this),!1)})).then(function(){t.toggleSubmit(),t.focusError()}),this},r.prototype.focusError=function(){if(this.options.focus){var t=this.$element.find(".has-error:first :input");0!==t.length&&(e("html, body").animate({scrollTop:t.offset().top-r.FOCUS_OFFSET},250),t.focus())}},r.prototype.showErrors=function(t){var n=this.options.html?"html":"text",r=t.data("bs.validator.errors"),o=t.closest(".form-group"),i=o.find(".help-block.with-errors"),a=o.find(".form-control-feedback");r.length&&(r=e("<ul/>").addClass("list-unstyled").append(e.map(r,function(t){return e("<li/>")[n](t)})),void 0===i.data("bs.validator.originalContent")&&i.data("bs.validator.originalContent",i.html()),i.empty().append(r),o.addClass("has-error has-danger"),o.hasClass("has-feedback")&&a.removeClass(this.options.feedback.success)&&a.addClass(this.options.feedback.error)&&o.removeClass("has-success"))},r.prototype.clearErrors=function(e){var n=e.closest(".form-group"),r=n.find(".help-block.with-errors"),o=n.find(".form-control-feedback");r.html(r.data("bs.validator.originalContent")),n.removeClass("has-error has-danger has-success"),n.hasClass("has-feedback")&&o.removeClass(this.options.feedback.error)&&o.removeClass(this.options.feedback.success)&&t(e)&&o.addClass(this.options.feedback.success)&&n.addClass("has-success")},r.prototype.hasErrors=function(){return!!this.$inputs.filter(function(){return!!(e(this).data("bs.validator.errors")||[]).length}).length},r.prototype.isIncomplete=function(){return!!this.$inputs.filter("[required]").filter(function(){var n=t(e(this));return!("string"==typeof n?e.trim(n):n)}).length},r.prototype.onSubmit=function(e){this.validate(),(this.isIncomplete()||this.hasErrors())&&e.preventDefault()},r.prototype.toggleSubmit=function(){this.options.disable&&this.$btn.toggleClass("disabled",this.isIncomplete()||this.hasErrors())},r.prototype.defer=function(t,n){return n=e.proxy(n,this,t),this.options.delay?(window.clearTimeout(t.data("bs.validator.timeout")),void t.data("bs.validator.timeout",window.setTimeout(n,this.options.delay))):n()},r.prototype.reset=function(){return this.$element.find(".form-control-feedback").removeClass(this.options.feedback.error).removeClass(this.options.feedback.success),this.$inputs.removeData(["bs.validator.errors","bs.validator.deferred"]).each(function(){var t=e(this),n=t.data("bs.validator.timeout");window.clearTimeout(n)&&t.removeData("bs.validator.timeout")}),this.$element.find(".help-block.with-errors").each(function(){var t=e(this),n=t.data("bs.validator.originalContent");t.removeData("bs.validator.originalContent").html(n)}),this.$btn.removeClass("disabled"),this.$element.find(".has-error, .has-danger, .has-success").removeClass("has-error has-danger has-success"),this},r.prototype.destroy=function(){return this.reset(),this.$element.removeAttr("novalidate").removeData("bs.validator").off(".bs.validator"),this.$inputs.off(".bs.validator"),this.options=null,this.validators=null,this.$element=null,this.$btn=null,this.$inputs=null,this};var o=e.fn.validator;e.fn.validator=n,e.fn.validator.Constructor=r,e.fn.validator.noConflict=function(){return e.fn.validator=o,this},e(window).on("load",function(){e('form[data-toggle="validator"]').each(function(){var t=e(this);n.call(t,t.data())})})}(jQuery),define("validator",["jquery","bootstrap"],function(){}),function(e,t){"object"==typeof exports?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define("easyPieChart",["jquery"],t):t(e.jQuery)}(this,function(e){var t=function(e,t){var n,r=document.createElement("canvas");e.appendChild(r),"undefined"!=typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(r);var o=r.getContext("2d");r.width=r.height=t.size;var i=1;window.devicePixelRatio>1&&(i=window.devicePixelRatio,r.style.width=r.style.height=[t.size,"px"].join(""),r.width=r.height=t.size*i,o.scale(i,i)),o.translate(t.size/2,t.size/2),o.rotate((t.rotate/180-.5)*Math.PI);var a=(t.size-t.lineWidth)/2;t.scaleColor&&t.scaleLength&&(a-=t.scaleLength+2),Date.now=Date.now||function(){return+new Date};var s=function(e,t,n){var r=0>=(n=Math.min(Math.max(-1,n||0),1));o.beginPath(),o.arc(0,0,a,0,2*Math.PI*n,r),o.strokeStyle=e,o.lineWidth=t,o.stroke()},l=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},c=function(){t.scaleColor&&function(){var e,n;o.lineWidth=1,o.fillStyle=t.scaleColor,o.save();for(var r=24;r>0;--r)r%6==0?(n=t.scaleLength,e=0):(n=.6*t.scaleLength,e=t.scaleLength-n),o.fillRect(-t.size/2+e,0,n,1),o.rotate(Math.PI/12);o.restore()}(),t.trackColor&&s(t.trackColor,t.trackWidth||t.lineWidth,1)};this.getCanvas=function(){return r},this.getCtx=function(){return o},this.clear=function(){o.clearRect(t.size/-2,t.size/-2,t.size,t.size)},this.draw=function(e){var r;t.scaleColor||t.trackColor?o.getImageData&&o.putImageData?n?o.putImageData(n,0,0):(c(),n=o.getImageData(0,0,t.size*i,t.size*i)):(this.clear(),c()):this.clear(),o.lineCap=t.lineCap,r="function"==typeof t.barColor?t.barColor(e):t.barColor,s(r,t.lineWidth,e/100)}.bind(this),this.animate=function(e,n){var r=Date.now();t.onStart(e,n);var o=function(){var i=Math.min(Date.now()-r,t.animate.duration),a=t.easing(this,i,e,n-e,t.animate.duration);this.draw(a),t.onStep(e,n,a),i>=t.animate.duration?t.onStop(e,n):l(o)}.bind(this);l(o)}.bind(this)},n=function(e,n){var r={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,trackWidth:void 0,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(e,t,n,r,o){return 1>(t/=o/2)?r/2*t*t+n:-r/2*(--t*(t-2)-1)+n},onStart:function(){},onStep:function(){},onStop:function(){}};if(void 0!==t)r.renderer=t;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");r.renderer=SVGRenderer}var o={},i=0,a=function(){for(var t in this.el=e,this.options=o,r)r.hasOwnProperty(t)&&(o[t]=n&&void 0!==n[t]?n[t]:r[t],"function"==typeof o[t]&&(o[t]=o[t].bind(this)));o.easing="string"==typeof o.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[o.easing])?jQuery.easing[o.easing]:r.easing,"number"==typeof o.animate&&(o.animate={duration:o.animate,enabled:!0}),"boolean"!=typeof o.animate||o.animate||(o.animate={duration:1e3,enabled:o.animate}),this.renderer=new o.renderer(e,o),this.renderer.draw(i),e.dataset&&e.dataset.percent?this.update(parseFloat(e.dataset.percent)):e.getAttribute&&e.getAttribute("data-percent")&&this.update(parseFloat(e.getAttribute("data-percent")))}.bind(this);this.update=function(e){return e=parseFloat(e),o.animate.enabled?this.renderer.animate(i,e):this.renderer.draw(e),i=e,this}.bind(this),this.disableAnimation=function(){return o.animate.enabled=!1,this},this.enableAnimation=function(){return o.animate.enabled=!0,this},a()};e.fn.easyPieChart=function(t){return this.each(function(){var r;e.data(this,"easyPieChart")||(r=e.extend({},t,e(this).data()),e.data(this,"easyPieChart",new n(this,r)))})}}),function(e){"use strict";"function"==typeof define&&define.amd?define("hoverIntent",["jquery"],e):jQuery&&!jQuery.fn.hoverIntent&&e(jQuery)}(function(e){"use strict";var t,n,r={interval:100,sensitivity:6,timeout:0},o=0,i=function(e){t=e.pageX,n=e.pageY},a=function(e,r,o,s){if(Math.sqrt((o.pX-t)*(o.pX-t)+(o.pY-n)*(o.pY-n))<s.sensitivity)return r.off(o.event,i),delete o.timeoutId,o.isActive=!0,e.pageX=t,e.pageY=n,delete o.pX,delete o.pY,s.over.apply(r[0],[e]);o.pX=t,o.pY=n,o.timeoutId=setTimeout(function(){a(e,r,o,s)},s.interval)};e.fn.hoverIntent=function(t,n,s){var l=o++,c=e.extend({},r);e.isPlainObject(t)?(c=e.extend(c,t),e.isFunction(c.out)||(c.out=c.over)):c=e.isFunction(n)?e.extend(c,{over:t,out:n,selector:s}):e.extend(c,{over:t,out:t,selector:n});var u=function(t){var n=e.extend({},t),r=e(this),o=r.data("hoverIntent");o||r.data("hoverIntent",o={});var s=o[l];s||(o[l]=s={id:l}),s.timeoutId&&(s.timeoutId=clearTimeout(s.timeoutId));var u=s.event="mousemove.hoverIntent.hoverIntent"+l;if("mouseenter"===t.type){if(s.isActive)return;s.pX=n.pageX,s.pY=n.pageY,r.off(u,i).on(u,i),s.timeoutId=setTimeout(function(){a(n,r,s,c)},c.interval)}else{if(!s.isActive)return;r.off(u,i),s.timeoutId=setTimeout(function(){!function(e,t,n,r){delete t.data("hoverIntent")[n.id],r.apply(t[0],[e])}(n,r,s,c.out)},c.timeout)}};return this.on({"mouseenter.hoverIntent":u,"mouseleave.hoverIntent":u},c.selector)}}),function($){"use strict";var event_body=!1,Confirmation=function(e,t){var n=this;this.init("confirmation",e,t),t.selector?$(e).on("click.bs.confirmation",t.selector,function(e){e.preventDefault()}):$(e).on("show.bs.confirmation",function(e){n.runCallback(n.options.onShow,e,n.$element),n.$element.addClass("open"),n.options.singleton&&$(n.options.all_selector).not(n.$element).each(function(){$(this).hasClass("open")&&$(this).confirmation("hide")})}).on("hide.bs.confirmation",function(e){n.runCallback(n.options.onHide,e,n.$element),n.$element.removeClass("open")}).on("shown.bs.confirmation",function(e){(n.isPopout()||event_body)&&(event_body=$("body").on("click",function(e){n.$element.is(e.target)||n.$element.has(e.target).length||$(".popover").has(e.target).length||(n.hide(),n.inState.click=!1,$("body").unbind(e),event_body=!1)}))}).on("click.bs.confirmation",function(e){e.preventDefault()})};if(!$.fn.popover||!$.fn.tooltip)throw new Error("Confirmation requires popover.js and tooltip.js");Confirmation.VERSION="1.0.7",Confirmation.DEFAULTS=$.extend({},$.fn.popover.Constructor.DEFAULTS,{placement:"right",title:"Are you sure?",btnOkClass:"btn btn-sm btn-danger",btnOkLabel:"Delete",btnOkIcon:"glyphicon glyphicon-ok",btnCancelClass:"btn btn-sm btn-default",btnCancelLabel:"Cancel",btnCancelIcon:"glyphicon glyphicon-remove",href:"#",target:"_self",singleton:!0,popout:!0,onShow:function(e,t){},onHide:function(e,t){},onConfirm:function(e,t){},onCancel:function(e,t){},template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"> <a data-apply="confirmation">Yes</a> <a data-dismiss="confirmation">No</a></div></div>'}),Confirmation.prototype=$.extend({},$.fn.popover.Constructor.prototype),Confirmation.prototype.constructor=Confirmation,Confirmation.prototype.getDefaults=function(){return Confirmation.DEFAULTS},Confirmation.prototype.setContent=function(){var e=this,t=this.tip(),n=this.getTitle(),r=t.find('[data-apply="confirmation"]'),o=t.find('[data-dismiss="confirmation"]');this.options;r.addClass(this.getBtnOkClass()).html(this.getBtnOkLabel()).prepend($("<i></i>").addClass(this.getBtnOkIcon())," ").attr("href",this.getHref()).attr("target",this.getTarget()).off("click").on("click",function(t){if(e.runCallback(e.options.onConfirm,t,e.$element),"submit"==e.$element.attr("type")){var n=e.$element.closest("form");(void 0!==n.attr("novalidate")||n[0].checkValidity())&&n.submit()}e.hide(),e.inState.click=!1,e.$element.trigger($.Event("confirm.bs.confirmation"))}),o.addClass(this.getBtnCancelClass()).html(this.getBtnCancelLabel()).prepend($("<i></i>").addClass(this.getBtnCancelIcon())," ").off("click").on("click",function(t){e.runCallback(e.options.onCancel,t,e.$element),e.hide(),e.inState.click=!1,e.$element.trigger($.Event("cancel.bs.confirmation"))}),t.find(".popover-title")[this.options.html?"html":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},Confirmation.prototype.getBtnOkClass=function(){return this.$element.data("btnOkClass")||("function"==typeof this.options.btnOkClass?this.options.btnOkClass.call(this,this.$element):this.options.btnOkClass)},Confirmation.prototype.getBtnOkLabel=function(){return this.$element.data("btnOkLabel")||("function"==typeof this.options.btnOkLabel?this.options.btnOkLabel.call(this,this.$element):this.options.btnOkLabel)},Confirmation.prototype.getBtnOkIcon=function(){return this.$element.data("btnOkIcon")||("function"==typeof this.options.btnOkIcon?this.options.btnOkIcon.call(this,this.$element):this.options.btnOkIcon)},Confirmation.prototype.getBtnCancelClass=function(){return this.$element.data("btnCancelClass")||("function"==typeof this.options.btnCancelClass?this.options.btnCancelClass.call(this,this.$element):this.options.btnCancelClass)},Confirmation.prototype.getBtnCancelLabel=function(){return this.$element.data("btnCancelLabel")||("function"==typeof this.options.btnCancelLabel?this.options.btnCancelLabel.call(this,this.$element):this.options.btnCancelLabel)},Confirmation.prototype.getBtnCancelIcon=function(){return this.$element.data("btnCancelIcon")||("function"==typeof this.options.btnCancelIcon?this.options.btnCancelIcon.call(this,this.$element):this.options.btnCancelIcon)},Confirmation.prototype.getTitle=function(){return this.$element.data("confirmation-title")||this.$element.data("title")||this.$element.attr("title")||("function"==typeof this.options.title?this.options.title.call(this,this.$element):this.options.title)},Confirmation.prototype.getHref=function(){return this.$element.data("href")||this.$element.attr("href")||("function"==typeof this.options.href?this.options.href.call(this,this.$element):this.options.href)},Confirmation.prototype.getTarget=function(){return this.$element.data("target")||this.$element.attr("target")||("function"==typeof this.options.target?this.options.target.call(this,this.$element):this.options.target)},Confirmation.prototype.isPopout=function(){var e=this.$element.data("popout")||("function"==typeof this.options.popout?this.options.popout.call(this,this.$element):this.options.popout);return"false"==e&&(e=!1),e},Confirmation.prototype.runCallback=function(callback,event,element){"function"==typeof callback?callback.call(this,event,element):"string"==typeof callback&&eval(callback)};var old=$.fn.confirmation;$.fn.confirmation=function(e){var t=this;return this.each(function(){var n=$(this),r=n.data("bs.confirmation"),o="object"==typeof e&&e;(o=o||{}).all_selector=t.selector,(r||"destroy"!=e)&&(r||n.data("bs.confirmation",r=new Confirmation(this,o)),"string"==typeof e&&r[e]())})},$.fn.confirmation.Constructor=Confirmation,$.fn.confirmation.noConflict=function(){return $.fn.confirmation=old,this}}(jQuery),define("bootstrapConfirmation",["bootstrap"],function(){}),function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},this.defaults(),n),this.render()};t.VERSION="2.2.0",t.DEFAULTS={on:"On",off:"Off",onstyle:"primary",offstyle:"default",size:"normal",style:"",width:null,height:null},t.prototype.defaults=function(){return{on:this.$element.attr("data-on")||t.DEFAULTS.on,off:this.$element.attr("data-off")||t.DEFAULTS.off,onstyle:this.$element.attr("data-onstyle")||t.DEFAULTS.onstyle,offstyle:this.$element.attr("data-offstyle")||t.DEFAULTS.offstyle,size:this.$element.attr("data-size")||t.DEFAULTS.size,style:this.$element.attr("data-style")||t.DEFAULTS.style,width:this.$element.attr("data-width")||t.DEFAULTS.width,height:this.$element.attr("data-height")||t.DEFAULTS.height}},t.prototype.render=function(){this._onstyle="btn-"+this.options.onstyle,this._offstyle="btn-"+this.options.offstyle;var t="large"===this.options.size?"btn-lg":"small"===this.options.size?"btn-sm":"mini"===this.options.size?"btn-xs":"",n=e('<label class="btn">').html(this.options.on).addClass(this._onstyle+" "+t),r=e('<label class="btn">').html(this.options.off).addClass(this._offstyle+" "+t+" active"),o=e('<span class="toggle-handle btn btn-default">').addClass(t),i=e('<div class="toggle-group">').append(n,r,o),a=e('<div class="toggle btn" data-toggle="toggle">').addClass(this.$element.prop("checked")?this._onstyle:this._offstyle+" off").addClass(t).addClass(this.options.style);this.$element.wrap(a),e.extend(this,{$toggle:this.$element.parent(),$toggleOn:n,$toggleOff:r,$toggleGroup:i}),this.$toggle.append(i);var s=this.options.width||Math.max(n.outerWidth(),r.outerWidth())+o.outerWidth()/2,l=this.options.height||Math.max(n.outerHeight(),r.outerHeight());n.addClass("toggle-on"),r.addClass("toggle-off"),this.$toggle.css({width:s,height:l}),this.options.height&&(n.css("line-height",n.height()+"px"),r.css("line-height",r.height()+"px")),this.update(!0),this.trigger(!0)},t.prototype.toggle=function(){this.$element.prop("checked")?this.off():this.on()},t.prototype.on=function(e){return!this.$element.prop("disabled")&&(this.$toggle.removeClass(this._offstyle+" off").addClass(this._onstyle),this.$element.prop("checked",!0),void(e||this.trigger()))},t.prototype.off=function(e){return!this.$element.prop("disabled")&&(this.$toggle.removeClass(this._onstyle).addClass(this._offstyle+" off"),this.$element.prop("checked",!1),void(e||this.trigger()))},t.prototype.enable=function(){this.$toggle.removeAttr("disabled"),this.$element.prop("disabled",!1)},t.prototype.disable=function(){this.$toggle.attr("disabled","disabled"),this.$element.prop("disabled",!0)},t.prototype.update=function(e){this.$element.prop("disabled")?this.disable():this.enable(),this.$element.prop("checked")?this.on(e):this.off(e)},t.prototype.trigger=function(t){this.$element.off("change.bs.toggle"),t||this.$element.change(),this.$element.on("change.bs.toggle",e.proxy(function(){this.update()},this))},t.prototype.destroy=function(){this.$element.off("change.bs.toggle"),this.$toggleGroup.remove(),this.$element.removeData("bs.toggle"),this.$element.unwrap()};var n=e.fn.bootstrapToggle;e.fn.bootstrapToggle=function(n){return this.each(function(){var r=e(this),o=r.data("bs.toggle"),i="object"==typeof n&&n;o||r.data("bs.toggle",o=new t(this,i)),"string"==typeof n&&o[n]&&o[n]()})},e.fn.bootstrapToggle.Constructor=t,e.fn.toggle.noConflict=function(){return e.fn.bootstrapToggle=n,this},e(function(){e("input[type=checkbox][data-toggle^=toggle]").bootstrapToggle()}),e(document).on("click.bs.toggle","div[data-toggle^=toggle]",function(t){e(this).find("input[type=checkbox]").bootstrapToggle("toggle"),t.preventDefault()})}(jQuery),define("bootstrapToggle",["jquery"],function(){}),function(e){"function"==typeof define&&define.amd?define("select2",["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,n){return void 0===n&&(n="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(n),n}:e(jQuery)}(function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;return function(){var e,n,r;t&&t.requirejs||(t?n=t:t={},function(t){function o(e,t){return b.call(e,t)}function i(e,t){var n,r,o,i,a,s,l,c,u,d,f,p=t&&t.split("/"),h=v.map,g=h&&h["*"]||{};if(e){for(a=(e=e.split("/")).length-1,v.nodeIdCompat&&x.test(e[a])&&(e[a]=e[a].replace(x,"")),"."===e[0].charAt(0)&&p&&(e=p.slice(0,p.length-1).concat(e)),u=0;u<e.length;u++)if("."===(f=e[u]))e.splice(u,1),u-=1;else if(".."===f){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;u>0&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((p||g)&&h){for(u=(n=e.split("/")).length;u>0;u-=1){if(r=n.slice(0,u).join("/"),p)for(d=p.length;d>0;d-=1)if((o=h[p.slice(0,d).join("/")])&&(o=o[r])){i=o,s=u;break}if(i)break;!l&&g&&g[r]&&(l=g[r],c=u)}!i&&l&&(i=l,s=c),i&&(n.splice(0,s,i),e=n.join("/"))}return e}function a(e,n){return function(){var r=w.call(arguments,0);return"string"!=typeof r[0]&&1===r.length&&r.push(null),f.apply(t,r.concat([e,n]))}}function s(e){return function(t){g[e]=t}}function l(e){if(o(m,e)){var n=m[e];delete m[e],y[e]=!0,d.apply(t,n)}if(!o(g,e)&&!o(y,e))throw new Error("No "+e);return g[e]}function c(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function u(e){return e?c(e):[]}var d,f,p,h,g={},m={},v={},y={},b=Object.prototype.hasOwnProperty,w=[].slice,x=/\.js$/;p=function(e,t){var n,r=c(e),o=r[0],a=t[1];return e=r[1],o&&(n=l(o=i(o,a))),o?e=n&&n.normalize?n.normalize(e,function(e){return function(t){return i(t,e)}}(a)):i(e,a):(o=(r=c(e=i(e,a)))[0],e=r[1],o&&(n=l(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},h={require:function(e){return a(e)},exports:function(e){var t=g[e];return void 0!==t?t:g[e]={}},module:function(e){return{id:e,uri:"",exports:g[e],config:function(e){return function(){return v&&v.config&&v.config[e]||{}}}(e)}}},d=function(e,n,r,i){var c,d,f,v,b,w,x,C=[],S=typeof r;if(w=u(i=i||e),"undefined"===S||"function"===S){for(n=!n.length&&r.length?["require","exports","module"]:n,b=0;b<n.length;b+=1)if("require"===(d=(v=p(n[b],w)).f))C[b]=h.require(e);else if("exports"===d)C[b]=h.exports(e),x=!0;else if("module"===d)c=C[b]=h.module(e);else if(o(g,d)||o(m,d)||o(y,d))C[b]=l(d);else{if(!v.p)throw new Error(e+" missing "+d);v.p.load(v.n,a(i,!0),s(d),{}),C[b]=g[d]}f=r?r.apply(g[e],C):void 0,e&&(c&&c.exports!==t&&c.exports!==g[e]?g[e]=c.exports:f===t&&x||(g[e]=f))}else e&&(g[e]=r)},e=n=f=function(e,n,r,o,i){if("string"==typeof e)return h[e]?h[e](n):l(p(e,u(n)).f);if(!e.splice){if((v=e).deps&&f(v.deps,v.callback),!n)return;n.splice?(e=n,n=r,r=null):e=t}return n=n||function(){},"function"==typeof r&&(r=o,o=i),o?d(t,e,n,r):setTimeout(function(){d(t,e,n,r)},4),f},f.config=function(e){return f(e)},e._defined=g,(r=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),o(g,e)||o(m,e)||(m[e]=[e,t,n])}).amd={jQuery:!0}}(),t.requirejs=e,t.require=n,t.define=r)}(),t.define("almond",function(){}),t.define("jquery",[],function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(e){function t(e){var t=e.prototype,n=[];for(var r in t)"function"==typeof t[r]&&"constructor"!==r&&n.push(r);return n}var n={Extend:function(e,t){function n(){this.constructor=e}var r={}.hasOwnProperty;for(var o in t)r.call(t,o)&&(e[o]=t[o]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},Decorate:function(e,n){function r(){var t=Array.prototype.unshift,r=n.prototype.constructor.length,o=e.prototype.constructor;r>0&&(t.call(arguments,e.prototype.constructor),o=n.prototype.constructor),o.apply(this,arguments)}var o=t(n),i=t(e);n.displayName=e.displayName,r.prototype=new function(){this.constructor=r};for(var a=0;a<i.length;a++){var s=i[a];r.prototype[s]=e.prototype[s]}for(var l=function(e){var t=function(){};e in r.prototype&&(t=r.prototype[e]);var o=n.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),o.apply(this,arguments)}},c=0;c<o.length;c++){var u=o[c];r.prototype[u]=l(u)}return r}},r=function(){this.listeners={}};r.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},r.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},r.prototype.invoke=function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].apply(this,t)},n.Observable=r,n.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},n.bind=function(e,t){return function(){e.apply(t,arguments)}},n._convertData=function(e){for(var t in e){var n=t.split("-"),r=e;if(1!==n.length){for(var o=0;o<n.length;o++){var i=n[o];(i=i.substring(0,1).toLowerCase()+i.substring(1))in r||(r[i]={}),o==n.length-1&&(r[i]=e[t]),r=r[i]}delete e[t]}}return e},n.hasScroll=function(t,n){var r=e(n),o=n.style.overflowX,i=n.style.overflowY;return(o!==i||"hidden"!==i&&"visible"!==i)&&("scroll"===o||"scroll"===i||r.innerHeight()<n.scrollHeight||r.innerWidth()<n.scrollWidth)},n.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},n.appendMany=function(t,n){if("1.7"===e.fn.jquery.substr(0,3)){var r=e();e.map(n,function(e){r=r.add(e)}),n=r}t.append(n)},n.__cache={};var o=0;return n.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++o),t=o.toString())),t},n.StoreData=function(e,t,r){var o=n.GetUniqueElementId(e);n.__cache[o]||(n.__cache[o]={}),n.__cache[o][t]=r},n.GetData=function(t,r){var o=n.GetUniqueElementId(t);return r?n.__cache[o]&&null!=n.__cache[o][r]?n.__cache[o][r]:e(t).data(r):n.__cache[o]},n.RemoveData=function(e){var t=n.GetUniqueElementId(e);null!=n.__cache[t]&&delete n.__cache[t]},n}),t.define("select2/results",["jquery","./utils"],function(e,t){function n(e,t,r){this.$element=e,this.data=r,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var r=e('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),o=this.options.get("translations").get(t.message);r.append(n(o(t.args))),r[0].className+=" select2-results__message",this.$results.append(r)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var r=e.results[n],o=this.option(r);t.push(o)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(e,t){t.find(".select2-results").append(e)},n.prototype.sort=function(e){return this.options.get("sorter")(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var n=this;this.data.current(function(r){var o=e.map(r,function(e){return e.id.toString()});n.$results.find(".select2-results__option[aria-selected]").each(function(){var n=e(this),r=t.GetData(this,"data"),i=""+r.id;null!=r.element&&r.element.selected||null==r.element&&e.inArray(i,o)>-1?n.attr("aria-selected","true"):n.attr("aria-selected","false")})})},n.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(n){var r=document.createElement("li");r.className="select2-results__option";var o={role:"treeitem","aria-selected":"false"};for(var i in n.disabled&&(delete o["aria-selected"],o["aria-disabled"]="true"),null==n.id&&delete o["aria-selected"],null!=n._resultId&&(r.id=n._resultId),n.title&&(r.title=n.title),n.children&&(o.role="group",o["aria-label"]=n.text,delete o["aria-selected"]),o){var a=o[i];r.setAttribute(i,a)}if(n.children){var s=e(r),l=document.createElement("strong");l.className="select2-results__group",e(l),this.template(n,l);for(var c=[],u=0;u<n.children.length;u++){var d=n.children[u],f=this.option(d);c.push(f)}var p=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(c),s.append(l),s.append(p)}else this.template(n,r);return t.StoreData(r,"data",n),r},n.prototype.bind=function(n,r){var o=this,i=n.id+"-results";this.$results.attr("id",i),n.on("results:all",function(e){o.clear(),o.append(e.data),n.isOpen()&&(o.setClasses(),o.highlightFirstItem())}),n.on("results:append",function(e){o.append(e.data),n.isOpen()&&o.setClasses()}),n.on("query",function(e){o.hideMessages(),o.showLoading(e)}),n.on("select",function(){n.isOpen()&&(o.setClasses(),o.highlightFirstItem())}),n.on("unselect",function(){n.isOpen()&&(o.setClasses(),o.highlightFirstItem())}),n.on("open",function(){o.$results.attr("aria-expanded","true"),o.$results.attr("aria-hidden","false"),o.setClasses(),o.ensureHighlightVisible()}),n.on("close",function(){o.$results.attr("aria-expanded","false"),o.$results.attr("aria-hidden","true"),o.$results.removeAttr("aria-activedescendant")}),n.on("results:toggle",function(){var e=o.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),n.on("results:select",function(){var e=o.getHighlightedResults();if(0!==e.length){var n=t.GetData(e[0],"data");"true"==e.attr("aria-selected")?o.trigger("close",{}):o.trigger("select",{data:n})}}),n.on("results:previous",function(){var e=o.getHighlightedResults(),t=o.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var r=n-1;0===e.length&&(r=0);var i=t.eq(r);i.trigger("mouseenter");var a=o.$results.offset().top,s=i.offset().top,l=o.$results.scrollTop()+(s-a);0===r?o.$results.scrollTop(0):s-a<0&&o.$results.scrollTop(l)}}),n.on("results:next",function(){var e=o.getHighlightedResults(),t=o.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var r=t.eq(n);r.trigger("mouseenter");var i=o.$results.offset().top+o.$results.outerHeight(!1),a=r.offset().top+r.outerHeight(!1),s=o.$results.scrollTop()+a-i;0===n?o.$results.scrollTop(0):a>i&&o.$results.scrollTop(s)}}),n.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),n.on("results:message",function(e){o.displayMessage(e)}),e.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=o.$results.scrollTop(),n=o.$results.get(0).scrollHeight-t+e.deltaY,r=e.deltaY>0&&t-e.deltaY<=0,i=e.deltaY<0&&n<=o.$results.height();r?(o.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):i&&(o.$results.scrollTop(o.$results.get(0).scrollHeight-o.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(n){var r=e(this),i=t.GetData(this,"data");"true"!==r.attr("aria-selected")?o.trigger("select",{originalEvent:n,data:i}):o.options.get("multiple")?o.trigger("unselect",{originalEvent:n,data:i}):o.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(n){var r=t.GetData(this,"data");o.getHighlightedResults().removeClass("select2-results__option--highlighted"),o.trigger("results:focus",{data:r,element:e(this)})})},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,r=e.offset().top,o=this.$results.scrollTop()+(r-n),i=r-n;o-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(i>this.$results.outerHeight()||i<0)&&this.$results.scrollTop(o)}},n.prototype.template=function(t,n){var r=this.options.get("templateResult"),o=this.options.get("escapeMarkup"),i=r(t,n);null==i?n.style.display="none":"string"==typeof i?n.innerHTML=o(i):e(n).append(i)},n}),t.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(e,t,n){function r(e,t){this.$element=e,this.options=t,r.__super__.constructor.call(this)}return t.Extend(r,t.Observable),r.prototype.render=function(){var n=e('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),this.$selection=n,n},r.prototype.bind=function(e,t){var r=this,o=(e.id,e.id+"-results");this.container=e,this.$selection.on("focus",function(e){r.trigger("focus",e)}),this.$selection.on("blur",function(e){r._handleBlur(e)}),this.$selection.on("keydown",function(e){r.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){r.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){r.update(e.data)}),e.on("open",function(){r.$selection.attr("aria-expanded","true"),r.$selection.attr("aria-owns",o),r._attachCloseHandler(e)}),e.on("close",function(){r.$selection.attr("aria-expanded","false"),r.$selection.removeAttr("aria-activedescendant"),r.$selection.removeAttr("aria-owns"),r.$selection.focus(),window.setTimeout(function(){r.$selection.focus()},0),r._detachCloseHandler(e)}),e.on("enable",function(){r.$selection.attr("tabindex",r._tabindex)}),e.on("disable",function(){r.$selection.attr("tabindex","-1")})},r.prototype._handleBlur=function(t){var n=this;window.setTimeout(function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)},1)},r.prototype._attachCloseHandler=function(n){e(document.body).on("mousedown.select2."+n.id,function(n){var r=e(n.target).closest(".select2");e(".select2.select2-container--open").each(function(){e(this),this!=r[0]&&t.GetData(this,"element").select2("close")})})},r.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},r.prototype.position=function(e,t){t.find(".selection").append(e)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},r}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,r){function o(){o.__super__.constructor.apply(this,arguments)}return n.Extend(o,t),o.prototype.render=function(){var e=o.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},o.prototype.bind=function(e,t){var n=this;o.__super__.bind.apply(this,arguments);var r=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",r),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),e.on("focus",function(t){e.isOpen()||n.$selection.focus()})},o.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return e("<span></span>")},o.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),r=this.display(t,n);n.empty().append(r),n.attr("title",t.title||t.text)}else this.clear()},o}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(e,t,n){function r(e,t){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},r.prototype.bind=function(t,o){var i=this;r.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){i.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){if(!i.options.get("disabled")){var r=e(this).parent(),o=n.GetData(r[0],"data");i.trigger("unselect",{originalEvent:t,data:o})}})},r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},r.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],r=0;r<e.length;r++){var o=e[r],i=this.selectionContainer(),a=this.display(o,i);i.append(a),i.attr("title",o.title||o.text),n.StoreData(i[0],"data",o),t.push(i)}var s=this.$selection.find(".select2-selection__rendered");n.appendMany(s,t)}},r}),t.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||n)return e.call(this,t);this.clear();var r=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(r)},t}),t.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(e,t,n){function r(){}return r.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){r._handleClear(e)}),t.on("keypress",function(e){r._handleKeyboardClear(e,t)})},r.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var r=this.$selection.find(".select2-selection__clear");if(0!==r.length){t.stopPropagation();var o=n.GetData(r[0],"data"),i=this.$element.val();this.$element.val(this.placeholder.id);var a={data:o};if(this.trigger("clear",a),a.prevented)return void this.$element.val(i);for(var s=0;s<o.length;s++)if(a={data:o[s]},this.trigger("unselect",a),a.prevented)return void this.$element.val(i);this.$element.trigger("change"),this.trigger("toggle",{})}}},r.prototype._handleKeyboardClear=function(e,n,r){r.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},r.prototype.update=function(t,r){if(t.call(this,r),!(this.$selection.find(".select2-selection__placeholder").length>0||0===r.length)){var o=e('<span class="select2-selection__clear">&times;</span>');n.StoreData(o[0],"data",r),this.$selection.find(".select2-selection__rendered").prepend(o)}},r}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(e,t,n){function r(e,t,n){e.call(this,t,n)}return r.prototype.render=function(t){var n=e('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var r=t.call(this);return this._transferTabIndex(),r},r.prototype.bind=function(e,r,o){var i=this;e.call(this,r,o),r.on("open",function(){i.$search.trigger("focus")}),r.on("close",function(){i.$search.val(""),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),r.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),r.on("disable",function(){i.$search.prop("disabled",!0)}),r.on("focus",function(e){i.$search.trigger("focus")}),r.on("results:focus",function(e){i.$search.attr("aria-activedescendant",e.id)}),this.$selection.on("focusin",".select2-search--inline",function(e){i.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){i._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented(),e.which===n.BACKSPACE&&""===i.$search.val()){var r=i.$searchContainer.prev(".select2-selection__choice");if(r.length>0){var o=t.GetData(r[0],"data");i.searchRemoveChoice(o),e.preventDefault()}}});var a=document.documentMode,s=a&&a<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){s?i.$selection.off("input.search input.searchcheck"):i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(s&&"input"===e.type)i.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&i.handleSearch(e)}})},r.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},r.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},r.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&(this.$element.find("[data-select2-tag]").length?this.$element.focus():this.$search.focus())},r.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},r.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},r.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";e=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").innerWidth():.75*(this.$search.val().length+1)+"em",this.$search.css("width",e)},r}),t.define("select2/selection/eventRelay",["jquery"],function(e){function t(){}return t.prototype.bind=function(t,n,r){var o=this,i=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],a=["opening","closing","selecting","unselecting","clearing"];t.call(this,n,r),n.on("*",function(t,n){if(-1!==e.inArray(t,i)){n=n||{};var r=e.Event("select2:"+t,{params:n});o.$element.trigger(r),-1!==e.inArray(t,a)&&(n.prevented=r.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){if(!(e in n._cache)){var r=t(e);n._cache[e]=r}return new n(n._cache[e])},n}),t.define("select2/diacritics",[],function(){return{"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),t.define("select2/data/base",["../utils"],function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var r=t.id+"-result-";return r+=e.generateChars(4),null!=n.id?r+="-"+n.id.toString():r+="-"+e.generateChars(4),r},t}),t.define("select2/data/select",["./base","../utils","jquery"],function(e,t,n){function r(e,t){this.$element=e,this.options=t,r.__super__.constructor.call(this)}return t.Extend(r,e),r.prototype.current=function(e){var t=[],r=this;this.$element.find(":selected").each(function(){var e=n(this),o=r.item(e);t.push(o)}),e(t)},r.prototype.select=function(e){var t=this;if(e.selected=!0,n(e.element).is("option"))return e.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(r){var o=[];(e=[e]).push.apply(e,r);for(var i=0;i<e.length;i++){var a=e[i].id;-1===n.inArray(a,o)&&o.push(a)}t.$element.val(o),t.$element.trigger("change")});else{var r=e.id;this.$element.val(r),this.$element.trigger("change")}},r.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,n(e.element).is("option"))return e.element.selected=!1,void this.$element.trigger("change");this.current(function(r){for(var o=[],i=0;i<r.length;i++){var a=r[i].id;a!==e.id&&-1===n.inArray(a,o)&&o.push(a)}t.$element.val(o),t.$element.trigger("change")})}},r.prototype.bind=function(e,t){var n=this;this.container=e,e.on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},r.prototype.destroy=function(){this.$element.find("*").each(function(){t.RemoveData(this)})},r.prototype.query=function(e,t){var r=[],o=this;this.$element.children().each(function(){var t=n(this);if(t.is("option")||t.is("optgroup")){var i=o.item(t),a=o.matches(e,i);null!==a&&r.push(a)}}),t({results:r})},r.prototype.addOptions=function(e){t.appendMany(this.$element,e)},r.prototype.option=function(e){var r;e.children?(r=document.createElement("optgroup")).label=e.text:void 0!==(r=document.createElement("option")).textContent?r.textContent=e.text:r.innerText=e.text,void 0!==e.id&&(r.value=e.id),e.disabled&&(r.disabled=!0),e.selected&&(r.selected=!0),e.title&&(r.title=e.title);var o=n(r),i=this._normalizeItem(e);return i.element=r,t.StoreData(r,"data",i),o},r.prototype.item=function(e){var r={};if(null!=(r=t.GetData(e[0],"data")))return r;if(e.is("option"))r={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){r={text:e.prop("label"),children:[],title:e.prop("title")};for(var o=e.children("option"),i=[],a=0;a<o.length;a++){var s=n(o[a]),l=this.item(s);i.push(l)}r.children=i}return(r=this._normalizeItem(r)).element=e[0],t.StoreData(e[0],"data",r),r},r.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=n.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},{selected:!1,disabled:!1},e)},r.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},r}),t.define("select2/data/array",["./select","../utils","jquery"],function(e,t,n){function r(e,t){var n=t.get("data")||[];r.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(n))}return t.Extend(r,e),r.prototype.select=function(e){var t=this.$element.find("option").filter(function(t,n){return n.value==e.id.toString()});0===t.length&&(t=this.option(e),this.addOptions(t)),r.__super__.select.call(this,e)},r.prototype.convertToOptions=function(e){function r(e){return function(){return n(this).val()==e.id}}for(var o=this,i=this.$element.find("option"),a=i.map(function(){return o.item(n(this)).id}).get(),s=[],l=0;l<e.length;l++){var c=this._normalizeItem(e[l]);if(n.inArray(c.id,a)>=0){var u=i.filter(r(c)),d=this.item(u),f=n.extend(!0,{},c,d),p=this.option(f);u.replaceWith(p)}else{var h=this.option(c);if(c.children){var g=this.convertToOptions(c.children);t.appendMany(h,g)}s.push(h)}}return s},r}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,n){function r(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),r.__super__.constructor.call(this,e,t)}return t.Extend(r,e),r.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,r){var o=n.ajax(e);return o.then(t),o.fail(r),o}};return n.extend({},t,e,!0)},r.prototype.processResults=function(e){return e},r.prototype.query=function(e,t){function r(){var r=i.transport(i,function(r){var i=o.processResults(r,e);o.options.get("debug")&&window.console&&console.error&&(i&&i.results&&n.isArray(i.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(i)},function(){"status"in r&&(0===r.status||"0"===r.status)||o.trigger("results:message",{message:"errorLoading"})});o._request=r}var o=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var i=n.extend({type:"GET"},this.ajaxOptions);"function"==typeof i.url&&(i.url=i.url.call(this.$element,e)),"function"==typeof i.data&&(i.data=i.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(r,this.ajaxOptions.delay)):r()},r}),t.define("select2/data/tags",["jquery"],function(e){function t(t,n,r){var o=r.get("tags"),i=r.get("createTag");void 0!==i&&(this.createTag=i);var a=r.get("insertTag");if(void 0!==a&&(this.insertTag=a),t.call(this,n,r),e.isArray(o))for(var s=0;s<o.length;s++){var l=o[s],c=this._normalizeItem(l),u=this.option(c);this.$element.append(u)}}return t.prototype.query=function(e,t,n){var r=this;this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,function e(o,i){for(var a=o.results,s=0;s<a.length;s++){var l=a[s],c=null!=l.children&&!e({results:l.children},!0);if((l.text||"").toUpperCase()===(t.term||"").toUpperCase()||c)return!i&&(o.data=a,void n(o))}if(i)return!0;var u=r.createTag(t);if(null!=u){var d=r.option(u);d.attr("data-select2-tag",!0),r.addOptions([d]),r.insertTag(a,u)}o.results=a,n(o)}):e.call(this,t,n)},t.prototype.createTag=function(t,n){var r=e.trim(n.term);return""===r?null:{id:r,text:r}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(t){this._lastTag,this.$element.find("option[data-select2-tag]").each(function(){this.selected||e(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(e){function t(e,t,n){var r=n.get("tokenizer");void 0!==r&&(this.tokenizer=r),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,n,r){var o=this;n.term=n.term||"";var i=this.tokenizer(n,this.options,function(t){var n=o._normalizeItem(t);if(!o.$element.find("option").filter(function(){return e(this).val()===n.id}).length){var r=o.option(n);r.attr("data-select2-tag",!0),o._removeOldTags(),o.addOptions([r])}!function(e){o.trigger("select",{data:e})}(n)});i.term!==n.term&&(this.$search.length&&(this.$search.val(i.term),this.$search.focus()),n.term=i.term),t.call(this,n,r)},t.prototype.tokenizer=function(t,n,r,o){for(var i=r.get("tokenSeparators")||[],a=n.term,s=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};s<a.length;){var c=a[s];if(-1!==e.inArray(c,i)){var u=a.substr(0,s),d=l(e.extend({},n,{term:u}));null!=d?(o(d),a=a.substr(s+1)||"",s=0):s++}else s++}return{term:a}},t}),t.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),t.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),t.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){var r=this;this.current(function(o){var i=null!=o?o.length:0;r.maximumSelectionLength>0&&i>=r.maximumSelectionLength?r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):e.call(r,t,n)})},e}),t.define("select2/dropdown",["jquery","./utils"],function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),t.define("select2/dropdown/search",["jquery","../utils"],function(e,t){function n(){}return n.prototype.render=function(t){var n=t.call(this),r=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=r,this.$search=r.find("input"),n.prepend(r),n},n.prototype.bind=function(t,n,r){var o=this;t.call(this,n,r),this.$search.on("keydown",function(e){o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(t){e(this).off("keyup")}),this.$search.on("keyup input",function(e){o.handleSearch(e)}),n.on("open",function(){o.$search.attr("tabindex",0),o.$search.focus(),window.setTimeout(function(){o.$search.focus()},0)}),n.on("close",function(){o.$search.attr("tabindex",-1),o.$search.val(""),o.$search.blur()}),n.on("focus",function(){n.isOpen()||o.$search.focus()}),n.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(o.showSearch(e)?o.$searchContainer.removeClass("select2-search--hide"):o.$searchContainer.addClass("select2-search--hide"))})},n.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},n.prototype.showSearch=function(e,t){return!0},n}),t.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,r)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),r=t.length-1;r>=0;r--){var o=t[r];this.placeholder.id===o.id&&n.splice(r,1)}return n},e}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(e){function t(e,t,n,r){this.lastParams={},e.call(this,t,n,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,n,r){var o=this;t.call(this,n,r),n.on("query",function(e){o.lastParams=e,o.loading=!0}),n.on("query:append",function(e){o.lastParams=e,o.loading=!0}),this.$results.on("scroll",function(){var t=e.contains(document.documentElement,o.$loadingMore[0]);!o.loading&&t&&o.$results.offset().top+o.$results.outerHeight(!1)+50>=o.$loadingMore.offset().top+o.$loadingMore.outerHeight(!1)&&o.loadMore()})},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(e,t){function n(t,n,r){this.$dropdownParent=r.get("dropdownParent")||e(document.body),t.call(this,n,r)}return n.prototype.bind=function(e,t,n){var r=this,o=!1;e.call(this,t,n),t.on("open",function(){r._showDropdown(),r._attachPositioningHandler(t),o||(o=!0,t.on("results:all",function(){r._positionDropdown(),r._resizeDropdown()}),t.on("results:append",function(){r._positionDropdown(),r._resizeDropdown()}))}),t.on("close",function(){r._hideDropdown(),r._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("<span></span>"),r=t.call(this);return n.append(r),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._attachPositioningHandler=function(n,r){var o=this,i="scroll.select2."+r.id,a="resize.select2."+r.id,s="orientationchange.select2."+r.id,l=this.$container.parents().filter(t.hasScroll);l.each(function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),l.on(i,function(n){var r=t.GetData(this,"select2-scroll-position");e(this).scrollTop(r.y)}),e(window).on(i+" "+a+" "+s,function(e){o._positionDropdown(),o._resizeDropdown()})},n.prototype._detachPositioningHandler=function(n,r){var o="scroll.select2."+r.id,i="resize.select2."+r.id,a="orientationchange.select2."+r.id;this.$container.parents().filter(t.hasScroll).off(o),e(window).off(o+" "+i+" "+a)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown.hasClass("select2-dropdown--above"),r=this.$dropdown.hasClass("select2-dropdown--below"),o=null,i=this.$container.offset();i.bottom=i.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=i.top,a.bottom=i.top+a.height;var s=this.$dropdown.outerHeight(!1),l=t.scrollTop(),c=t.scrollTop()+t.height(),u=l<i.top-s,d=c>i.bottom+s,f={left:i.left,top:a.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h=p.offset();f.top-=h.top,f.left-=h.left,n||r||(o="below"),d||!u||n?!u&&d&&n&&(o="below"):o="above",("above"==o||n&&"below"!==o)&&(f.top=a.top-h.top-s),null!=o&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+o),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+o)),this.$dropdownContainer.css(f)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,r){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,r)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,r=0;r<t.length;r++){var o=t[r];o.children?n+=e(o.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),t.define("select2/dropdown/selectOnClose",["../utils"],function(e){function t(){}return t.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("close",function(e){r._handleSelectOnClose(e)})},t.prototype._handleSelectOnClose=function(t,n){if(n&&null!=n.originalSelect2Event){var r=n.originalSelect2Event;if("select"===r._type||"unselect"===r._type)return}var o=this.getHighlightedResults();if(!(o.length<1)){var i=e.GetData(o[0],"data");null!=i.element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})}},t}),t.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(e){r._selectTriggered(e)}),t.on("unselect",function(e){r._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(e,t,n,r,o,i,a,s,l,c,u,d,f,p,h,g,m,v,y,b,w,x,C,S,T,k,D,_,E){function O(){this.reset()}return O.prototype.apply=function(d){if(null==(d=e.extend(!0,{},this.defaults,d)).dataAdapter){if(null!=d.ajax?d.dataAdapter=h:null!=d.data?d.dataAdapter=p:d.dataAdapter=f,d.minimumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,v)),d.maximumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,y)),d.maximumSelectionLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,b)),d.tags&&(d.dataAdapter=c.Decorate(d.dataAdapter,g)),null==d.tokenSeparators&&null==d.tokenizer||(d.dataAdapter=c.Decorate(d.dataAdapter,m)),null!=d.query){var E=t(d.amdBase+"compat/query");d.dataAdapter=c.Decorate(d.dataAdapter,E)}if(null!=d.initSelection){var O=t(d.amdBase+"compat/initSelection");d.dataAdapter=c.Decorate(d.dataAdapter,O)}}if(null==d.resultsAdapter&&(d.resultsAdapter=n,null!=d.ajax&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,S)),null!=d.placeholder&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,C)),d.selectOnClose&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,D))),null==d.dropdownAdapter){if(d.multiple)d.dropdownAdapter=w;else{var A=c.Decorate(w,x);d.dropdownAdapter=A}if(0!==d.minimumResultsForSearch&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,k)),d.closeOnSelect&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,_)),null!=d.dropdownCssClass||null!=d.dropdownCss||null!=d.adaptDropdownCssClass){var $=t(d.amdBase+"compat/dropdownCss");d.dropdownAdapter=c.Decorate(d.dropdownAdapter,$)}d.dropdownAdapter=c.Decorate(d.dropdownAdapter,T)}if(null==d.selectionAdapter){if(d.multiple?d.selectionAdapter=o:d.selectionAdapter=r,null!=d.placeholder&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,i)),d.allowClear&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,a)),d.multiple&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,s)),null!=d.containerCssClass||null!=d.containerCss||null!=d.adaptContainerCssClass){var I=t(d.amdBase+"compat/containerCss");d.selectionAdapter=c.Decorate(d.selectionAdapter,I)}d.selectionAdapter=c.Decorate(d.selectionAdapter,l)}if("string"==typeof d.language)if(d.language.indexOf("-")>0){var P=d.language.split("-")[0];d.language=[d.language,P]}else d.language=[d.language];if(e.isArray(d.language)){var R=new u;d.language.push("en");for(var N=d.language,L=0;L<N.length;L++){var j=N[L],M={};try{M=u.loadPath(j)}catch(e){try{j=this.defaults.amdLanguageBase+j,M=u.loadPath(j)}catch(e){d.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+j+'" could not be automatically loaded. A fallback will be used instead.');continue}}R.extend(M)}d.translations=R}else{var F=u.loadPath(this.defaults.amdLanguageBase+"en"),B=new u(d.language);B.extend(F),d.translations=B}return d},O.prototype.reset=function(){function t(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return d[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:E,matcher:function n(r,o){if(""===e.trim(r.term))return o;if(o.children&&o.children.length>0){for(var i=e.extend(!0,{},o),a=o.children.length-1;a>=0;a--)null==n(r,o.children[a])&&i.children.splice(a,1);return i.children.length>0?i:n(r,i)}var s=t(o.text).toUpperCase(),l=t(r.term).toUpperCase();return s.indexOf(l)>-1?o:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},O.prototype.set=function(t,n){var r={};r[e.camelCase(t)]=n;var o=c._convertData(r);e.extend(!0,this.defaults,o)},new O}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(e,t,n,r){function o(t,o){if(this.options=t,null!=o&&this.fromElement(o),this.options=n.apply(this.options),o&&o.is("input")){var i=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=r.Decorate(this.options.dataAdapter,i)}}return o.prototype.fromElement=function(e){var n=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),r.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),r.StoreData(e[0],"data",r.GetData(e[0],"select2Tags")),r.StoreData(e[0],"tags",!0)),r.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",r.GetData(e[0],"ajaxUrl")),r.StoreData(e[0],"ajax-Url",r.GetData(e[0],"ajaxUrl")));var o;o=t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset?t.extend(!0,{},e[0].dataset,r.GetData(e[0])):r.GetData(e[0]);var i=t.extend(!0,{},o);for(var a in i=r._convertData(i))t.inArray(a,n)>-1||(t.isPlainObject(this.options[a])?t.extend(this.options[a],i[a]):this.options[a]=i[a]);return this},o.prototype.get=function(e){return this.options[e]},o.prototype.set=function(e,t){this.options[e]=t},o}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(e,t,n,r){var o=function(e,r){null!=n.GetData(e[0],"select2")&&n.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),r=r||{},this.options=new t(r,e),o.__super__.constructor.call(this);var i=e.attr("tabindex")||0;n.StoreData(e[0],"old-tabindex",i),e.attr("tabindex","-1");var a=this.options.get("dataAdapter");this.dataAdapter=new a(e,this.options);var s=this.render();this._placeContainer(s);var l=this.options.get("selectionAdapter");this.selection=new l(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var c=this.options.get("dropdownAdapter");this.dropdown=new c(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var u=this.options.get("resultsAdapter");this.results=new u(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var d=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){d.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),n.StoreData(e[0],"select2",this),e.data("select2",this)};return n.Extend(o,n.Observable),o.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},o.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},o.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var r=this._resolveWidth(e,"style");return null!=r?r:this._resolveWidth(e,"element")}if("element"==t){var o=e.outerWidth(!1);return o<=0?"auto":o+"px"}if("style"==t){var i=e.attr("style");if("string"!=typeof i)return null;for(var a=i.split(";"),s=0,l=a.length;s<l;s+=1){var c=a[s].replace(/\s/g,"").match(n);if(null!==c&&c.length>=1)return c[1]}return null}return t},o.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},o.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=r?(this._observer=new r(function(n){e.each(n,t._syncA),e.each(n,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},o.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerSelectionEvents=function(){var t=this,n=["toggle","focus"];this.selection.on("toggle",function(){t.toggleDropdown()}),this.selection.on("focus",function(e){t.focus(e)}),this.selection.on("*",function(r,o){-1===e.inArray(r,n)&&t.trigger(r,o)})},o.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerEvents=function(){var e=this;this.on("open",function(){e.$container.addClass("select2-container--open")}),this.on("close",function(){e.$container.removeClass("select2-container--open")}),this.on("enable",function(){e.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){e.$container.addClass("select2-container--disabled")}),this.on("blur",function(){e.$container.removeClass("select2-container--focus")}),this.on("query",function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,function(n){e.trigger("results:all",{data:n,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(n){e.trigger("results:append",{data:n,query:t})})}),this.on("keypress",function(t){var n=t.which;e.isOpen()?n===r.ESC||n===r.TAB||n===r.UP&&t.altKey?(e.close(),t.preventDefault()):n===r.ENTER?(e.trigger("results:select",{}),t.preventDefault()):n===r.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):n===r.UP?(e.trigger("results:previous",{}),t.preventDefault()):n===r.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(n===r.ENTER||n===r.SPACE||n===r.DOWN&&t.altKey)&&(e.open(),t.preventDefault())})},o.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},o.prototype._syncSubtree=function(e,t){var n=!1,r=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&t.addedNodes.length>0)for(var o=0;o<t.addedNodes.length;o++){t.addedNodes[o].selected&&(n=!0)}else t.removedNodes&&t.removedNodes.length>0&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(e){r.trigger("selection:update",{data:e})})}},o.prototype.trigger=function(e,t){var n=o.__super__.trigger,r={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in r){var i=r[e],a={prevented:!1,name:e,args:t};if(n.call(this,i,a),a.prevented)return void(t.prevented=!0)}n.call(this,e,t)},o.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},o.prototype.open=function(){this.isOpen()||this.trigger("query",{})},o.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},o.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},o.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},o.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},o.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},o.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current(function(t){e=t}),e},o.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var n=t[0];e.isArray(n)&&(n=e.map(n,function(e){return e.toString()})),this.$element.val(n).trigger("change")},o.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",n.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),n.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},o.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),n.StoreData(t[0],"element",this.$element),t},o}),t.define("jquery-mousewheel",["jquery"],function(e){return e}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(e,t,n,r,o){if(null==e.fn.select2){var i=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var r=e.extend(!0,{},t);new n(e(this),r)}),this;if("string"==typeof t){var r,a=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=o.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),r=e[t].apply(e,a)}),e.inArray(t,i)>-1?this:r}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=r),n}),{define:t.define,require:t.require}}(),n=t.require("jquery.select2");return e.fn.select2.amd=t,n}),define("app/util",["jquery","app/init","conf/system_effect","conf/signature_type","bootbox","localForage","velocity","velocityUI","customScrollbar","validator","easyPieChart","hoverIntent","bootstrapConfirmation","bootstrapToggle","select2"],(e,t,n,r,o,i)=>{"use strict";let a,s={ajaxOverlayClass:"pf-loading-overlay",ajaxOverlayWrapperClass:"pf-loading-overlay-wrapper",formEditableFieldClass:"pf-editable",formErrorContainerClass:"pf-dialog-error-container",formWarningContainerClass:"pf-dialog-warning-container",formInfoContainerClass:"pf-dialog-info-container",headMapTrackingId:"pf-head-map-tracking",headCharacterSwitchId:"pf-head-character-switch",headCurrentLocationId:"pf-head-current-location",menuButtonFullScreenId:"pf-menu-button-fullscreen",menuButtonMagnetizerId:"pf-menu-button-magnetizer",menuButtonGridId:"pf-menu-button-grid",menuButtonEndpointId:"pf-menu-button-endpoint",menuButtonMapDeleteId:"pf-menu-button-map-delete",settingsMessageVelocityOptions:{duration:180},dialogClass:"modal-dialog",mapModuleId:"pf-map-module",mapTabBarId:"pf-map-tabs",mapWrapperClass:"pf-map-wrapper",mapClass:"pf-map",select2Class:"pf-select2",animationPulseSuccessClass:"pf-animation-pulse-success",animationPulseWarningClass:"pf-animation-pulse-warning",popoverSmallClass:"pf-popover-small",popoverTriggerClass:"pf-popover-trigger",fontTriglivianClass:"pf-triglivian"},l={},c={};e.fn.showLoadingAnimation=function(t){return this.each(function(){let n=e(this),r="fa-lg";n.css("pointer-events","none"),t&&t.icon&&t.icon.size&&(r=t.icon.size);let o=e("<div>",{class:s.ajaxOverlayClass}).append(e("<div>",{class:[s.ajaxOverlayWrapperClass].join(" ")}).append(e("<i>",{class:["fas","fa-fw",r,"fa-sync","fa-spin"].join(" ")})));n.append(o),e(o).velocity({opacity:.6},{duration:120})})},e.fn.hideLoadingAnimation=function(){return this.each(function(){let t=e(this),n=t.find("."+s.ajaxOverlayClass);n.length&&n.velocity("stop").velocity("reverse",{complete:function(){e(this).remove(),t.css("pointer-events","auto")}})})},e.fn.showSplashOverlay=function(n){e(this).velocity("fadeIn",{duration:t.animationSpeed.splashOverlay,complete:function(){void 0!==n&&n()}})},e.fn.hideSplashOverlay=function(){e(this).velocity("fadeOut",{duration:t.animationSpeed.splashOverlay})},e.fn.showCaptchaImage=function(t,n){return this.each(function(){let r=e(this),o=r.find("img");r.showLoadingAnimation(s.loadingOptions),u(t,function(e){o.attr("src",e).show(),r.hideLoadingAnimation({icon:{size:"fa-2x"}}),n&&n()})})};let u=function(n,r){e.ajax({type:"POST",url:t.path.getCaptcha,data:{reason:n},dataType:"json"}).done(function(e){e.error.length>0?p({title:"getCaptchaImage",text:"Captcha image gneration failed",type:"error"}):r(e.img)}).fail(function(e,t,n){let r=t+" "+n;p({title:e.status+": getCaptchaImage",text:r,type:"error"})})};e.fn.resetFormFields=function(){return this.each(function(){let t=e(this);t.is("select")||t.val(""),t.parents(".form-group").removeClass("has-error has-success")})},e.fn.showFormMessage=function(t){let n=e(this),r=[],o=[],i=[];for(let e=0;e<t.length;e++)if("error"===t[e].type){if(r.push(t[e].message),t[e].field&&t[e].field.length>0){n.find('[name="'+t[e].field+'"]').parents(".form-group").removeClass("has-success").addClass("has-error").find(".help-block").text(t[e].message)}}else"warning"===t[e].type?o.push(t[e].message):"info"===t[e].type&&i.push(t[e].message);r.length>0&&n.hideFormMessage("error",function(t){e(t).find("small").html(r.join("<br>")),e(t).velocity("transition.slideUpIn",s.settingsMessageVelocityOptions)}),o.length>0&&n.hideFormMessage("warning",function(t){e(t).find("small").html(o.join("<br>")),e(t).velocity("transition.slideUpIn",s.settingsMessageVelocityOptions)}),i.length>0&&n.hideFormMessage("info",function(t){e(t).find("small").html(i.join("<br>")),e(t).velocity("transition.slideUpIn",s.settingsMessageVelocityOptions)})},e.fn.hideFormMessage=function(t,n){let r=e(this),o=e.extend({},s.settingsMessageVelocityOptions);void 0!==n&&(o.complete=n,o.display="block");let i=null;switch(t){case"error":i=r.find("."+s.formErrorContainerClass);break;case"warning":i=r.find("."+s.formWarningContainerClass);break;case"info":i=r.find("."+s.formInfoContainerClass);break;case"all":i=r.find("."+s.formErrorContainerClass+", ."+s.formWarningContainerClass+", ."+s.formInfoContainerClass)}i&&(i.is(":visible")?i.velocity("transition.slideDownOut",o):n&&n(i))},e.fn.initFormValidation=function(t){return t=void 0===t?{}:t,this.each(function(){let n=e(this);n.validator(t),n.on("valid.bs.validator",function(t){let n=e(t.relatedTarget).parents(".form-group");n&&n.removeClass("has-error").addClass("has-success")}),n.on("invalid.bs.validator",function(t){let n=e(t.relatedTarget).parents(".form-group");n&&n.removeClass("has-success").addClass("has-error")})})},e.fn.isValidForm=function(){let t=!1;return 0===e(this).find(".has-error").length&&(t=!0),t},e.fn.isInViewport=function(){let t=[];return this.each(function(){let n=e(this)[0],r=n.offsetTop,o=n.offsetLeft,i=n.offsetWidth,a=n.offsetHeight;for(;n.offsetParent;)r+=(n=n.offsetParent).offsetTop,o+=n.offsetLeft;r<window.pageYOffset+window.innerHeight&&o<window.pageXOffset+window.innerWidth&&r+a>window.pageYOffset&&o+i>window.pageXOffset&&t.push(this)}),t},e.fn.initMapUpdateCounter=function(){e(this).easyPieChart({barColor:function(e){let t="#568a89";return e<=30?t="#d9534f":e<=50&&(t="#f0ad4e"),t},trackColor:"#2b2b2b",size:30,scaleColor:!1,lineWidth:2,animate:1e3})},e.fn.initTooltips=function(t){t="object"==typeof t?t:{};let n={container:this,delay:100};return t=e.extend(n,t),this.each(function(){e(this).find("[title]").tooltip("destroy").tooltip(t)})},e.fn.addCharacterInfoTooltip=function(t){let n=e(this);if(t.created.character&&t.updated.character){let e=t.created,r=t.updated;if(n.data("created")!==e.created||n.data("updated")!==r.updated){n.data("created",e.created),n.data("updated",r.updated);let t=w(e.character,"class"),o=w(r.character,"class"),i=new Date(1e3*e.created),a=new Date(1e3*r.updated),s=A(i),l=A(a),c={created:e,updated:r,createdTime:$(s),updatedTime:$(l),createdStatusClass:t,updatedStatusClass:o};requirejs(["text!templates/tooltip/character_info.html","mustache"],function(e,t){let r=t.render(e,c);n.popover({placement:"top",html:!0,trigger:"hover",content:"",container:"body",title:"Created / Updated",delay:{show:250,hide:0}}),n.data("bs.popover").options.content=r})}}return n},e.fn.initCharacterSwitchPopover=function(n){let r=e(this);requirejs(["text!templates/tooltip/character_switch.html","mustache"],function(o,i){let a={id:s.headCharacterSwitchId,browserTabId:m(),routes:t.routes,userData:n,otherCharacters:()=>n.characters.filter((e,r)=>{let o=t.url.ccpImageServer+"/Character/"+e.id+"_32.jpg";return(new Image).src=o,n.characters[r].image=o,e.id!==n.character.id})},l=i.render(o,a);return r.each(function(){let n=e(this);void 0!==n.data("bs.popover")&&n.off("click").popover("destroy"),n.on("click",function(n){n.preventDefault(),n.stopPropagation();let r=e(this),o=r.attr("data-easein"),i=r.data("bs.popover"),a=null,s={duration:t.animationSpeed.dialogEvents};void 0===i?(r.on("shown.bs.popover",function(t){e(this).data("bs.popover").tip().find(".btn").on("click",function(t){e("body").click()})}),r.popover({html:!0,title:"select character",trigger:"manual",placement:"bottom",container:"body",content:l,animation:!1}).data("bs.popover").tip().addClass("pf-popover"),r.popover("show"),(a=r.data("bs.popover").tip()).velocity("transition."+o,s),a.initTooltips(),a.on("click",".btn",function(){e("body").data("characterSwitch",!0),setTimeout(function(){e("body").removeData("characterSwitch")},500)})):(a=r.data("bs.popover").tip()).is(":visible")?a.velocity("reverse"):(r.popover("show"),a.initTooltips(),a.velocity("transition."+o,s))}),r.initPopoverClose("hideCharacterPopup")})})},e.fn.destroyPopover=function(t){return this.each(function(){let n=e(this),r="."+s.popoverTriggerClass,o=n.filter(r);t&&(o=o.add(n.find(r))),o.each(function(){let t=e(this);t.data("bs.popover")&&t.popover("destroy")})})},e.fn.initPopoverClose=function(t){return this.each(function(){e("body").off("click."+t).on("click."+t+" contextmenu",function(t){e("."+s.popoverTriggerClass).each(function(){let n=e(this);if(!n.is(t.target)&&0===n.has(t.target).length&&0===e(".popover").has(t.target).length){let e=n.data("bs.popover");void 0!==e&&e.tip().is(":visible")&&n.popover("hide")}})})})},e.fn.setPopoverSmall=function(){return this.each(function(){let t=e(this).data("bs.popover");t&&t.tip().addClass(s.popoverSmallClass)})},e.fn.showMessage=function(t){let n=e(this);requirejs(["text!templates/form/message.html","mustache"],function(r,o){let i="alert-danger",a="txt-color-danger";switch(t.type){case"info":i="alert-info",a="txt-color-information";break;case"success":i="alert-success",a="txt-color-success";break;case"warning":i="alert-warning",a="txt-color-warning"}let s={dismissible:!0,messageId:"pf-alert-"+Math.random().toString(36).substring(7),messageTypeClass:i,messageTextClass:a,insertElement:"replace"};s=e.extend(s,t);let l=o.render(r,s);switch(s.insertElement){case"replace":n.html(l);break;case"prepend":n.prepend(l);break;case"append":n.append(l);break;default:console.error("insertElement: %s is not specified!",s.insertElement)}e("#"+s.messageId).velocity("stop").velocity("fadeIn")})},e.fn.pulseTableRow=function(t,n){let r="";switch(t){case"added":r=s.animationPulseSuccessClass;break;case"changed":r=s.animationPulseWarningClass}let o=function(e){e.removeClass(r);let t=e.data("animationTimer");c.hasOwnProperty(t)&&(clearTimeout(t),delete c[t],e.removeData("animationTimer"))};return this.each(function(){let t=e(this);if(t.hasClass(r)&&o(t),!0!==n){t.addClass(r);let e=setTimeout(o,1500,t);t.data("animationTimer",e),c[e]=!0}})};let d=function(){return e("body").data("version")},f=()=>{const e=!0,t=!1,n=["scroll","wheel","touchstart","touchmove","touchenter","touchend","touchleave","mouseout","mouseleave","mouseup","mousedown","mousemove","mouseenter","mousewheel","mouseover"],r=(e,t)=>t?function(t){return t.preventDefault=(()=>{}),e.call(this,t)}:e,o=o=>{EventTarget.prototype.addEventListener=function(i,a,s){const l="object"==typeof s,c=l?s.capture:s;(s=l?(e=>{const t=Object.getOwnPropertyDescriptor(e,"passive");return t&&!0!==t.writable&&void 0===t.set?Object.assign({},e):e})(s):{}).passive=((t,r)=>void 0!==t?t:-1!==n.indexOf(r)&&e)(s.passive,i),s.capture=void 0===c?t:c,a=r(a,s.passive),o.call(this,i,a,s)}};if((()=>{let e=!1;try{const t=Object.defineProperty({},"passive",{get(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e})()){o(EventTarget.prototype.addEventListener)}},p=function(e,t){requirejs(["notification"],function(n){n.showNotify(e,t)})},h=()=>t.currentUserData,g=()=>{let e=h(),t=0;return e&&e.character&&(t=parseInt(e.character.id)),t||(t=parseInt(document.body.getAttribute("data-character-id"))),t},m=()=>{let e=sessionStorage.getItem("tabId");return null===e&&(e=Math.random().toString(36).substr(2,5),sessionStorage.setItem("tabId",e)),e},v=e=>{let t="";switch(e){case 0:t="connecting";break;case 1:t="open";break;case 2:t="closing";break;case 3:t="closed"}return t},y=(n,r)=>{let o=t.syncStatus;switch(n){case"ws:open":o.webSocket.status=v(r.readyState),o.webSocket.class="txt-color-success",o.webSocket.timestamp=(new Date).getTime()/1e3,o.type="webSocket",y("ajax:disable"),e(window).trigger("pf:syncStatus");break;case"ws:get":o.webSocket.timestamp=(new Date).getTime()/1e3,e(window).trigger("pf:syncStatus");break;case"ws:closed":o.webSocket.status=v(r.readyState),o.webSocket.class="txt-color-danger",o.webSocket.timestamp=void 0,y("ajax:enable");break;case"ws:error":o.webSocket.status=v(r.readyState),o.webSocket.class="txt-color-danger",y("ajax:enable");break;case"sw:init":o.sharedWorker.status="online",o.sharedWorker.class="txt-color-success";break;case"sw:error":o.sharedWorker.status="offline",o.sharedWorker.class="txt-color-danger",y("ajax:enable");break;case"ajax:enable":o.ajax.status="enabled",o.ajax.class="txt-color-success",o.ajax.timestamp=(new Date).getTime()/1e3,o.type="ajax",e(window).trigger("pf:syncStatus");break;case"ajax:get":o.ajax.timestamp=(new Date).getTime()/1e3,e(window).trigger("pf:syncStatus");break;case"ajax:disable":o.ajax.status="disabled",o.ajax.class="txt-color-warning"}};e.fn.getMapTabElements=function(t){let n=e(this).find("#"+s.mapTabBarId).find("a");return t&&(n=n.filter(function(n,r){return e(r).data("map-id")===t})),n};let b=e=>{let t=0;switch(e){case"H":t=10;break;case"L":t=11;break;case"0.0":t=12;break;case"SH":t=13;break;default:for(let n=1;n<=6;n++)if(e==="C"+n){t=n;break}}return t},w=(e,n)=>{let r="";if(t.characterStatus){let o=_("corporationId"),i=_("allianceId"),a=h();if(a){let o=a.characters;for(let i=0;i<o.length;i++)if(o[i].id===e.id){r=t.characterStatus.own[n];break}}""===r&&(e.corporation&&e.corporation.id===o?r=t.characterStatus.corporation[n]:e.alliance&&e.alliance.id===i&&(r=t.characterStatus.alliance[n]))}return r},x=e=>{let n="";return t.classes.systemSecurity.hasOwnProperty(e)&&(n=t.classes.systemSecurity[e].class),n},C=function(e){let n="";return e=parseFloat(e),!isNaN(e)&&isFinite(e)&&(e<0&&(e=0),e=e.toFixed(1).toString(),t.classes.trueSec.hasOwnProperty(e)&&(n=t.classes.trueSec[e].class)),n},S=function(e,t,n){let o={};return r[e]&&r[e][t]&&r[e][t][n]&&(o=r[e][t][n]),o},T=(e,t)=>{let n=!1;if(Array.isArray(e)&&t===parseInt(t,10))for(let r=0;r<e.length;r++)if(e[r].config.id===t){n=r;break}return n},k=n=>{let r=!1;if(t.currentMapUserData)if(n===parseInt(n,10)){for(let e=0;e<t.currentMapUserData.length;e++)if(t.currentMapUserData[e].config&&t.currentMapUserData[e].config.id===n){r=t.currentMapUserData[e];break}}else r=t.currentMapUserData;return!1!==r&&(r=e.extend(!0,{},r)),r},D=e=>{let n=!1;if(e===parseInt(e,10)){for(let r=0;r<t.currentMapData.length;r++)if(t.currentMapData[r].config.id===e){n=t.currentMapData[r];break}}else n=t.currentMapData;return n},_=e=>{let t=h(),n=!1;if(t){let r=t.character;r&&("privateId"===e&&(n=r.id),"allianceId"===e&&r.alliance&&(n=r.alliance.id),"corporationId"===e&&r.corporation&&(n=r.corporation.id))}return n},E=(e,t,n,r={})=>{let o=e=>{for(let n=0;n<t.data.systems.length;n++){let r=t.data.systems[n];if(r.id===e)return r}return!1};r[e.id]={distance:n};let i={systemData:e,tree:{}};if(--n>=0)for(let a=0;a<t.data.connections.length;a++){let s=t.data.connections[a],l="";if(s.source===e.id?l="target":s.target===e.id&&(l="source"),l&&(void 0===r[s[l]]||r[s[l]].distance<n)){let e=o(s[l]);e&&(i.tree[s[l]]=E(e,t,n,r))}}return i},O=(e,t,n=0,r={})=>{let o=function(e){return this.id!==e.id},i=(e=>{for(let n=0;n<t.length;n++)if(t[n].id===e)return t[n].user;return[]})(e.systemData.systemId);i.length&&(i=i.filter(function(e,t,i){let a=!0;for(let t in r)if(t>n){let n=r[t].filter(o,e);n.length>0?r[t]=n:delete r[t]}else for(let n=0;n<r[t].length;n++)if(r[t][n].id===e.id){a=!1;break}return a}),r[n]=r[n]?r[n]:[],r[n]=[...r[n],...i]),n++;for(let o in e.tree)if(e.tree.hasOwnProperty(o)){let i=e.tree[o];r=O(i,t,n,r)}return r},A=e=>new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()),$=(e,t)=>{let n=("0"+(e.getMonth()+1)).slice(-2)+"/"+("0"+e.getDate()).slice(-2)+"/"+e.getFullYear(),r=("0"+e.getHours()).slice(-2)+":"+("0"+e.getMinutes()).slice(-2);return n+" "+(r+=t?":"+("0"+e.getSeconds()).slice(-2):"")},I=(e,t)=>t.split(".").reduce((e,t)=>void 0===e||null===e?e:e[t],e),P=(e,t)=>{e!==document.URL&&(t&&t.length>0&&(e+="?"+t.join("&")),window.location=e)};return{config:s,getVersion:d,showVersionInfo:function(){console.info("PATHFINDER "+d())},initPrototypes:()=>{Array.prototype.diff=function(e){return this.filter(function(t){return e.indexOf(t)<0})},Array.prototype.sortBy=function(e){return this.slice(0).sort((t,n)=>t[e]>n[e]?1:t[e]<n[e]?-1:0)},f()},initDefaultBootboxConfig:()=>{o.setDefaults({onEscape:!0})},initDefaultSelect2Config:()=>{e.fn.select2.defaults.set("theme","pathfinder");let t=t=>{let n=null,r=t.getAttribute("data-select2-id");if(r){let t=e("#select2-"+r+"-results");if(t.length){let e=t.parents(".select2-results");e.length&&(n=e)}}return n};e(document).on("select2:open","."+s.select2Class,function(n){let r=t(this);r&&(t=>{e(t).find("ul.select2-results__options").off("mousewheel"),t.mCustomScrollbar({mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!0},keyboard:{enable:!1,scrollType:"stepless",scrollAmount:"auto"},scrollbarPosition:"inside",autoDraggerLength:!0,autoHideScrollbar:!1,advanced:{updateOnContentResize:!0}})})(r)}),e(document).on("select2:closing","."+s.select2Class,function(e){let n=t(this);n&&n.mCustomScrollbar("destroy")})},getCurrentTriggerDelay:function(e,n){return(void 0===t.timer[e].CURRENT_DELAY||t.timer[e].CURRENT_DELAY<=0)&&(t.timer[e].CURRENT_DELAY=t.timer[e].DELAY),n===parseInt(n,10)&&t.timer[e].CURRENT_DELAY+n>0&&(t.timer[e].CURRENT_DELAY+=n),t.timer[e].CURRENT_DELAY},getServerTime:function(){let e=new Date;return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())},convertTimestampToServerTime:function(e){let t=(new Date).getTimezoneOffset();return new Date(1e3*(e+60*t))},getTimeDiffParts:function(e,t){let n={},r=e.getTime(),o=t.getTime(),i=0;r>=0&&o>=0&&(i=(t.getTime()-e.getTime())/1e3),i=Math.abs(Math.floor(i)),n.days=Math.floor(i/86400);let a=i-24*n.days*60*60;return n.hours=Math.floor(a/3600),a-=60*n.hours*60,n.min=Math.floor(a/60),n.sec=a-60*n.min,n},timeStart:function(e){"object"==typeof performance?l[e]=performance.now():l[e]=(new Date).getTime()},timeStop:function(e){let t=0;if(l.hasOwnProperty(e)){let n=0;n="object"==typeof performance?performance.now():new Date,t=Number((n-l[e]).toFixed(2)),delete l[e]}return t},updateCounter:function(e,t,n){let r=e.val(),o=r.length,i=r.match(/(\r\n|\n|\r)/g),a=0;null!=i&&(a=i.length),o+=a,t.text(n-o),n<=o?t.toggleClass("txt-color-red",!0):t.toggleClass("txt-color-red",!1)},log:function(t,n){e(window).trigger("pf:log",[t,n])},showNotify:p,stopTabBlink:function(){requirejs(["notification"],function(e){e.stopTabBlink()})},getLogInfo:function(e,n){let r="";return t.classes.logTypes.hasOwnProperty(e)&&(r=t.classes.logTypes[e][n]),r},ajaxSetup:()=>{e.ajaxSetup({beforeSend:function(e,t){e.url=location.protocol+"//"+location.host+t.url,!1===t.crossDomain&&e.setRequestHeader("Pf-Character",g())}})},setSyncStatus:y,getSyncType:()=>t.syncStatus.type,isXHRAborted:e=>!e.getAllResponseHeaders(),getLabelByRole:t=>e("<span>",{class:["label","label-"+t.style].join(" "),text:t.label}),getMapElementFromOverlay:t=>e(t).parents("."+s.mapWrapperClass).find("."+s.mapClass),getMapModule:()=>{let t=e("#"+s.mapModuleId);return 0===t.length&&(t=e("<div>",{id:s.mapModuleId})),t},getSystemEffectData:(e,t)=>{let r=n;if(e){r=!1;let o=b(e);o>0&&n.wh[t]&&n.wh[t][o]&&(r=n.wh[t][o])}return r},getSystemEffectTable:function(e){let t="";if(e.length>0){t+="<table>";for(let n=0;n<e.length;n++)t+="<tr>",t+="<td>",t+=e[n].effect,t+="</td>",t+='<td class="text-right">',t+=e[n].value,t+="</td>",t+="</tr>";t+="</table>"}return t},getSystemsInfoTable:function(e){let t="";if(e.length>0){t+="<table>";for(let n=0;n<e.length;n++){let r=C(e[n].trueSec),o=x(e[n].security);t+="<tr>",t+="<td>",t+=e[n].name,t+="</td>",t+='<td class="text-right '+o+'">',t+=e[n].security,t+="</td>",t+='<td class="text-right '+r+'">',t+=parseFloat(e[n].trueSec).toFixed(1),t+="</td>",t+="</tr>"}t+="</table>"}return t},getStatusInfoForCharacter:w,getSecurityClassForSystem:x,getTrueSecClassForSystem:C,getStatusInfoForSystem:function(n,r){let o="";return t.systemStatus.hasOwnProperty(n)?o=t.systemStatus[n][r]:e.each(t.systemStatus,function(e,t){n!==t.id||(o=t[r])}),o},getSignatureGroupInfo:function(e){let n={};for(let r in t.signatureGroups)t.signatureGroups.hasOwnProperty(r)&&(n[r=parseInt(r)]=t.signatureGroups[r][e]);return n},getAllSignatureNames:S,getSignatureTypeIdByName:function(e,t,n){let r=0,o=b(e.security);if(o>0){let i=S(e.type.id,o,t);n=n.toLowerCase();for(let e in i)if(i.hasOwnProperty(e)&&i[e].toLowerCase()===n){r=parseInt(e);break}}return r},getAreaIdBySecurity:b,setCurrentMapUserData:e=>(t.currentMapUserData=e,k()),getCurrentMapUserData:k,updateCurrentMapUserData:e=>{let n=(e=>T(t.currentMapUserData,e))(e.config.id);Array.isArray(t.currentMapUserData)||(t.currentMapUserData=[]),!1!==n?t.currentMapUserData[n]=e:t.currentMapUserData.push(e)},setCurrentMapData:e=>(t.currentMapData=e,D()),getCurrentMapData:D,filterCurrentMapData:(e,t)=>{let n=D();return n&&(n=n.filter(n=>I(n,e)===t)),n},updateCurrentMapData:e=>{let n=(e=>T(t.currentMapData,e))(e.config.id);!1!==n?(t.currentMapData[n].config=e.config,t.currentMapData[n].data=e.data):t.currentMapData.push(e)},deleteCurrentMapData:e=>{t.currentMapData=t.currentMapData.filter(t=>t.config.id!==e)},setCurrentUserData:n=>(t.currentUserData=n,e.fn.updateHeaderUserData&&e.fn.updateHeaderUserData(),h()),getCurrentUserData:h,getCurrentCharacterId:g,setCurrentSystemData:e=>{t.currentSystemData=e},getCurrentSystemData:()=>t.currentSystemData,getCurrentLocationData:function(){let t=e("#"+s.headCurrentLocationId).find("a");return{id:t.data("systemId"),name:t.data("systemName")}},getCurrentUserInfo:_,getCurrentCharacterLog:function(){let e=!1,t=h();return t&&t.character&&t.character.log&&(e=t.character.log),e},flattenXEditableSelectArray:e=>{let t={};for(let n of e)if(n.children&&n.children.length>0)for(let e of n.children)t[e.value]=e.text;else t[n.value]=n.text;return t},getNearBySystemData:E,getNearByCharacterData:O,setDestination:function(n,r){let o="";switch(r){case"set_destination":o="Set destination";break;case"add_first_waypoint":o="Set first waypoint";break;case"add_last_waypoint":o="Set new waypoint"}e.ajax({type:"POST",url:t.path.setDestination,data:{clearOtherWaypoints:"set_destination"===r?1:0,first:"add_last_waypoint"===r?0:1,systemData:[{systemId:n.systemId,name:n.name}]},context:{description:o},dataType:"json"}).done(function(e){if(e.systemData&&e.systemData.length>0)for(let t=0;t<e.systemData.length;t++)p({title:this.description,text:"System: "+e.systemData[t].name,type:"success"});if(e.error&&e.error.length>0)for(let t=0;t<e.error.length;t++)p({title:this.description+" error",text:"System: "+e.error[t].message,type:"error"})}).fail(function(e,t,n){let r=t+" "+n;p({title:e.status+": "+this.description,text:r,type:"warning"})})},convertDateToUTC:A,convertDateToString:$,getOpenDialogs:function(){return e("."+s.dialogClass).filter(":visible")},openIngameWindow:n=>{(n=parseInt(n))>0&&e.ajax({type:"POST",url:t.path.openIngameWindow,data:{targetId:n},dataType:"json"}).done(function(e){e.error.length>0?p({title:"Open window in client",text:"Remote window open failed",type:"error"}):p({title:"Open window in client",text:"Check your EVE client",type:"success"})}).fail(function(e,t,n){let r=t+" "+n;p({title:e.status+": openWindow",text:r,type:"error"})})},formatPrice:e=>{let t=(e=Number(e).toFixed(2)).toString().split(".");return(e=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,",")+(t[1]?"."+t[1]:""))+" ISK"},formatMassValue:e=>(parseInt(e)/1e3).toLocaleString()+" t",getLocalStorage:function(){return void 0===a&&(a=i.createInstance({driver:[i.INDEXEDDB,i.WEBSQL,i.LOCALSTORAGE],name:"Pathfinder local storage"})),a},clearSessionStorage:()=>{sessionStorage&&sessionStorage.clear()},getBrowserTabId:m,singleDoubleClick:(n,r,o,i)=>{let a="mouseup.singleDouble";if(!((t,n)=>{let r=!1,o=n.split("."),i=o[0],a=2===o.length&&o[1],s=e._data(t[0],"events")[i];if(s)if(a){for(let e of s)if(e.namespace===a){r=!0;break}}else r=!0;return r})(n,a)){let e=0;n.off("click").on("click",function(e){e.preventDefault()}),n.off(a).on(a,function(n){1==++e&&setTimeout(t=>{1===e?r.call(t,n):o.call(t,n),e=0},i||t.timer.DBL_CLICK,this)})}},getObjVal:I,redirect:P,logout:n=>{let r={};n&&n.ajaxData&&(r=n.ajaxData),e.ajax({type:"POST",url:t.path.logout,data:r,dataType:"json"}).done(function(e){e.reroute&&P(e.reroute,["logout"])}).fail(function(e,t,n){let r=t+" "+n;p({title:e.status+": logout",text:r,type:"error"})})},setCookie:(e,t,n,r)=>{let o=new Date,i=o.getTime(),a=-1*i;if(n>0)switch(r){case"d":a=24*n*60*60*1e3;break;case"s":a=1e3*n}o.setTime(i+a);let s="expires="+o.toUTCString(),l="path="+(window.location.pathname.replace(/[^\/]*$/,"")||"/");document.cookie=e+"="+t+"; "+s+"; "+l},getCookie:e=>{let t=e+"=",n=document.cookie.split(";");for(let e=0;e<n.length;e++){let r=n[e];for(;" "===r.charAt(0);)r=r.substring(1);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return""}}}),define("app/map/worker",["app/util"],function(e){"use strict";let t=null,n=null,r=null,o=()=>{let e=location.host;return("https:"===window.location.protocol?"wss:":"ws:")+"//"+e+"/ws/map/update"},i=()=>"/public/js/"+e.getVersion()+"/app/worker/map.js",a=()=>"/public/js/"+e.getVersion()+"/app/worker/message.js";return{getWebSocketURL:o,init:e=>{r=parseInt(e.characterId),requirejs([a()],()=>{n=window.MsgWorker,(t=new SharedWorker(i(),a())).port.addEventListener("message",t=>{let r=t.data;switch(Object.setPrototypeOf(r,n.prototype),r.command){case"ws:open":e.callbacks.onOpen(r);break;case"ws:send":e.callbacks.onGet(r);break;case"ws:closed":e.callbacks.onClosed(r);break;case"ws:error":e.callbacks.onError(r)}},!1),t.onerror=(t=>{let r=new n("sw:error");r.meta({reason:"Could not connect to SharedWorker: "+i()}),e.callbacks.onError(r)}),t.port.start();let s=new n("sw:init");e.callbacks.onInit(s),(()=>{let e=new n("ws:init");e.data({uri:o(),characterId:r}),t.port.postMessage(e)})()})},send:(e,r)=>{let o=new n("ws:send");o.task(e),o.data(r),t.port.postMessage(o)}}}),define("setup",["jquery","app/init","app/util","app/map/worker"],function(e,t,n,r){"use strict";let o="pf-splash",i=(t,r,o,i)=>{0===r.count&&o.target.button("loading"),e.ajax({url:t,type:"POST",dataType:"json",data:r,context:o}).done(function(e){i(this,e)}).fail(function(e,t,r){let o=t+" "+r;n.showNotify({title:e.status+": Failed. Please retry",text:o,type:"warning"}),this.target.button("reset")})},a=()=>{let t=e("body");t.find('[data-toggle="collapse"]').css({cursor:"pointer"}).on("click",function(){e(this).find(".pf-animate-rotate").toggleClass("right")}),t.find(".btn").not(".navbar-fixed-bottom .btn").not('[data-action="clearIndex"]').not('[data-action="buildIndex"]').not('[href^="?export"]').on("click",function(t){e("."+o).showSplashOverlay()}),t.find('.btn[data-action="buildIndex"], .btn[data-action="clearIndex"]').on("click",function(t){t.preventDefault();let n=e(this),r="/api/setup/"+n.attr("data-action");i(r,{type:n.attr("data-type"),count:0},{target:n,url:r},s)}),t.initTooltips(),history.pushState&&history.pushState({},"",location.protocol+"//"+location.host+location.pathname)},s=(e,t)=>{let n=e.target.closest(".row").children().eq(1).find("kbd");n.text(t.countBuildAll+"/"+t.countAll),n.removeClass("txt-color-success txt-color-danger txt-color-warning"),t.countBuildAll>=t.countAll?n.addClass("txt-color-success"):t.countBuildAll>0?n.addClass("txt-color-warning"):n.addClass("txt-color-danger"),e.target.find(".btn-progress").html("&nbsp;&nbsp;"+t.progress+"%").css("width",t.progress+"%"),"buildIndex"===e.target.attr("data-action")&&t.countBuildAll<t.countAll?i(e.url,{type:t.type,count:t.count},{target:e.target,url:e.url},s):e.target.button("reset")};e(function(){n.showVersionInfo(),e("."+o).hideSplashOverlay(),a(),(()=>{let t=e("#pf-setup-tcpSocket"),n=e("#pf-setup-webSocket"),o=r.getWebSocketURL(),i=o.startsWith("wss:")?'<i class="fas fa-fw fa-lock txt-color txt-color-success"></i>':'<i class="fas fa-fw fa-unlock txt-color txt-color-warning"></i>';n.showLoadingAnimation();let a=e=>{e.removeClass(function(e,t){return(t.match(/\btxt-color-\S+/g)||[]).join(" ")})},s=e=>{if(e.uri){let t=n.find(".panel-body table tr");if(t.find("td:nth-child(2) kbd").html(e.uri.value),e.uri.status){let e=t.find("td:nth-child(3) i");a(e),e.toggleClass("fa-exclamation-triangle",!1).toggleClass("fa-check",!0).addClass("txt-color-success")}}if(e.status){let t=n.find(".panel-footer h3");a(t),t.text(e.status.label).addClass(e.status.class)}};s({uri:{value:i+"&nbsp;"+o,status:!0},status:{label:"CONNECTING...",class:"txt-color-warning"}});let l=new WebSocket(o);l.onopen=(e=>{s({status:{label:"OPEN wait for response...",class:"txt-color-warning"}}),l.send(JSON.stringify({task:"healthCheck",load:t.data("token")})),n.hideLoadingAnimation()}),l.onmessage=(e=>{let t=JSON.parse(e.data);s(1===t?{status:{label:"CONNECTED",class:"txt-color-success"}}:{status:{label:"INVALID RESPONSE",class:"txt-color-warning"}})}),l.onerror=(e=>{s({status:{label:"CONNECTION ERROR",class:"txt-color-danger"}}),n.hideLoadingAnimation()}),l.onclose=(e=>{s({status:{label:"CONNECTION FAILED",class:"txt-color-danger"}}),n.hideLoadingAnimation()})})()})}),define("text",["module"],function(e){"use strict";var t,n,r,o,i,a=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],s=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,l=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,c="undefined"!=typeof location&&location.href,u=c&&location.protocol&&location.protocol.replace(/\:/,""),d=c&&location.hostname,f=c&&(location.port||void 0),p={},h=e.config&&e.config()||{};return t={version:"2.0.12",strip:function(e){if(e){var t=(e=e.replace(s,"")).match(l);t&&(e=t[1])}else e="";return e},jsEscape:function(e){return e.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:h.createXhr||function(){var e,t,n;if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)for(t=0;t<3;t+=1){n=a[t];try{e=new ActiveXObject(n)}catch(e){}if(e){a=[n];break}}return e},parseName:function(e){var t,n,r,o=!1,i=e.indexOf("."),a=0===e.indexOf("./")||0===e.indexOf("../");return-1!==i&&(!a||i>1)?(t=e.substring(0,i),n=e.substring(i+1,e.length)):t=e,-1!==(i=(r=n||t).indexOf("!"))&&(o="strip"===r.substring(i+1),r=r.substring(0,i),n?n=r:t=r),{moduleName:t,ext:n,strip:o}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(e,n,r,o){var i,a,s,l=t.xdRegExp.exec(e);return!l||(i=l[2],s=(a=(a=l[3]).split(":"))[1],a=a[0],!(i&&i!==n||a&&a.toLowerCase()!==r.toLowerCase()||(s||a)&&s!==o))},finishLoad:function(e,n,r,o){r=n?t.strip(r):r,h.isBuild&&(p[e]=r),o(r)},load:function(e,n,r,o){if(o&&o.isBuild&&!o.inlineText)r();else{h.isBuild=o&&o.isBuild;var i=t.parseName(e),a=i.moduleName+(i.ext?"."+i.ext:""),s=n.toUrl(a),l=h.useXhr||t.useXhr;0!==s.indexOf("empty:")?!c||l(s,u,d,f)?t.get(s,function(n){t.finishLoad(e,i.strip,n,r)},function(e){r.error&&r.error(e)}):n([a],function(e){t.finishLoad(i.moduleName+"."+i.ext,i.strip,e,r)}):r()}},write:function(e,n,r,o){if(p.hasOwnProperty(n)){var i=t.jsEscape(p[n]);r.asModule(e+"!"+n,"define(function () { return '"+i+"';});\n")}},writeFile:function(e,n,r,o,i){var a=t.parseName(n),s=a.ext?"."+a.ext:"",l=a.moduleName+s,c=r.toUrl(a.moduleName+s)+".js";t.load(l,r,function(n){var r=function(e){return o(c,e)};r.asModule=function(e,t){return o.asModule(e,c,t)},t.write(e,l,r,i)},i)}},"node"===h.env||!h.env&&"undefined"!=typeof process&&process.versions&&process.versions.node&&!process.versions["node-webkit"]?(n=require.nodeRequire("fs"),t.get=function(e,t,r){try{var o=n.readFileSync(e,"utf8");0===o.indexOf("\ufeff")&&(o=o.substring(1)),t(o)}catch(e){r&&r(e)}}):"xhr"===h.env||!h.env&&t.createXhr()?t.get=function(e,n,r,o){var i,a=t.createXhr();if(a.open("GET",e,!0),o)for(i in o)o.hasOwnProperty(i)&&a.setRequestHeader(i.toLowerCase(),o[i]);h.onXhr&&h.onXhr(a,e),a.onreadystatechange=function(t){var o,i;4===a.readyState&&((o=a.status||0)>399&&o<600?((i=new Error(e+" HTTP status: "+o)).xhr=a,r&&r(i)):n(a.responseText),h.onXhrComplete&&h.onXhrComplete(a,e))},a.send(null)}:"rhino"===h.env||!h.env&&"undefined"!=typeof Packages&&"undefined"!=typeof java?t.get=function(e,t){var n,r,o=new java.io.File(e),i=java.lang.System.getProperty("line.separator"),a=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(o),"utf-8")),s="";try{for(n=new java.lang.StringBuffer,(r=a.readLine())&&r.length()&&65279===r.charAt(0)&&(r=r.substring(1)),null!==r&&n.append(r);null!==(r=a.readLine());)n.append(i),n.append(r);s=String(n.toString())}finally{a.close()}t(s)}:("xpconnect"===h.env||!h.env&&"undefined"!=typeof Components&&Components.classes&&Components.interfaces)&&(r=Components.classes,o=Components.interfaces,Components.utils.import("resource://gre/modules/FileUtils.jsm"),i="@mozilla.org/windows-registry-key;1"in r,t.get=function(e,t){var n,a,s,l={};i&&(e=e.replace(/\//g,"\\")),s=new FileUtils.File(e);try{(n=r["@mozilla.org/network/file-input-stream;1"].createInstance(o.nsIFileInputStream)).init(s,1,0,!1),(a=r["@mozilla.org/intl/converter-input-stream;1"].createInstance(o.nsIConverterInputStream)).init(n,"utf-8",n.available(),o.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER),a.readString(n.available(),l),a.close(),n.close(),t(l.value)}catch(e){throw new Error((s&&s.path||"")+": "+e)}}),t});
//# sourceMappingURL=setup.js.map
