PageSourceSearch

https://www.wormly.com/jsb/wormly.2356248011.js

js wormly.com collected 2026-09-25 14:38:58 UTC 253,165 bytes, 1 lines download raw bytes

vendor: 51,675 bytes, line 1
1!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(S,t){function e(t,e){return e.toUpperCase()}var n=[],C=S.document,u=n.slice,m=n.concat,a=n.push,o=n.indexOf,i={},r=i.toString,f=i.hasOwnProperty,g={},s="2.2.4",T=function(t,e){return new T.fn.init(t,e)},l=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,c=/^-ms-/,d=/-([\da-z])/gi;function h(t){var e=!!t&&"length"in t&&t.length,n=T.type(t);return"function"!==n&&!T.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t)}T.fn=T.prototype={jquery:s,constructor:T,selector:"",length:0,toArray:function(){return u.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:u.call(this)},pushStack:function(t){var e=T.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return T.each(this,t)},map:function(n){return this.pushStack(T.map(this,function(t,e){return n.call(t,e,t)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(0<=n&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:n.sort,splice:n.splice},T.extend=T.fn.extend=function(){var t,e,n,i,o,r,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||T.isFunction(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)n=s[e],s!==(i=t[e])&&(c&&i&&(T.isPlainObject(i)||(o=T.isArray(i)))?(r=o?(o=!1,n&&T.isArray(n)?n:[]):n&&T.isPlainObject(n)?n:{},s[e]=T.extend(c,r,i)):void 0!==i&&(s[e]=i));return s},T.extend({expando:"jQuery"+(s+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===T.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=t&&t.toString();return!T.isArray(t)&&0<=e-parseFloat(e)+1},isPlainObject:function(t){var e;if("object"!==T.type(t)||t.nodeType||T.isWindow(t))return!1;if(t.constructor&&!f.call(t,"constructor")&&!f.call(t.constructor.prototype||{},"isPrototypeOf"))return!1;for(e in t);return void 0===e||f.call(t,e)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?i[r.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;(t=T.trim(t))&&(1===t.indexOf("use strict")?((e=C.createElement("script")).text=t,C.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(c,"ms-").replace(d,e)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var n,i=0;if(h(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},trim:function(t){return null==t?"":(t+"").replace(l,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(h(Object(t))?T.merge(n,"string"==typeof t?[t]:t):a.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:o.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,o=t.length;i<n;i++)t[o++]=e[i];return t.length=o,t},grep:function(t,e,n){for(var i=[],o=0,r=t.length,s=!n;o<r;o++)!e(t[o],o)!=s&&i.push(t[o]);return i},map:function(t,e,n){var i,o,r=0,s=[];if(h(t))for(i=t.length;r<i;r++)null!=(o=e(t[r],r,n))&&s.push(o);else for(r in t)null!=(o=e(t[r],r,n))&&s.push(o);return m.apply([],s)},guid:1,proxy:function(t,e){var n,i,o;return"string"==typeof e&&(n=t[e],e=t,t=n),T.isFunction(t)?(i=u.call(arguments,2),(o=function(){return t.apply(e||this,i.concat(u.call(arguments)))}).guid=t.guid=t.guid||T.guid++,o):void 0},now:Date.now,support:g}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=n[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){i["[object "+e+"]"]=e.toLowerCase()});var p=function(n){function d(t,e,n){var i="0x"+e-65536;return i!=i||n?e:i<0?String.fromCharCode(65536+i):String.fromCharCode(i>>10|55296,1023&i|56320)}function o(){k()}var t,f,w,r,s,m,h,g,x,l,c,k,S,a,C,v,u,p,y,T="sizzle"+ +new Date,b=n.document,_=0,i=0,E=ot(),A=ot(),D=ot(),L=function(t,e){return t===e&&(c=!0),0},R={}.hasOwnProperty,e=[],N=e.pop,W=e.push,M=e.push,I=e.slice,H=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},j="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",O="[\\x20\\t\\r\\n\\f]",P="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",F="\\["+O+"*("+P+")(?:"+O+"*([*^$|!~]?=)"+O+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+P+"))|)"+O+"*\\]",q=":("+P+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",z=new RegExp(O+"+","g"),B=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),U=new RegExp("^"+O+"*,"+O+"*"),V=new RegExp("^"+O+"*([>+~]|"+O+")"+O+"*"),G=new RegExp("="+O+"*([^\\]'\"]*?)"+O+"*\\]","g"),Y=new RegExp(q),Q=new RegExp("^"+P+"$"),X={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+j+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},J=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=/'|\\/g,nt=new RegExp("\\\\([\\da-f]{1,6}"+O+"?|("+O+")|.)","ig");try{M.apply(e=I.call(b.childNodes),b.childNodes),e[b.childNodes.length].nodeType}catch(t){M={apply:e.length?function(t,e){W.apply(t,I.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function it(t,e,n,i){var o,r,s,a,l,c,u,d,h=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!i&&((e?e.ownerDocument||e:b)!==S&&k(e),e=e||S,C)){if(11!==p&&(c=$.exec(t)))if(o=c[1]){if(9===p){if(!(s=e.getElementById(o)))return n;if(s.id===o)return n.push(s),n}else if(h&&(s=h.getElementById(o))&&y(e,s)&&s.id===o)return n.push(s),n}else{if(c[2])return M.apply(n,e.getElementsByTagName(t)),n;if((o=c[3])&&f.getElementsByClassName&&e.getElementsByClassName)return M.apply(n,e.getElementsByClassName(o)),n}if(f.qsa&&!D[t+" "]&&(!v||!v.test(t))){if(1!==p)h=e,d=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(et,"\\$&"):e.setAttribute("id",a=T),r=(u=m(t)).length,l=Q.test(a)?"#"+a:"[id='"+a+"']";r--;)u[r]=l+" "+ft(u[r]);d=u.join(","),h=tt.test(t)&&ht(e.parentNode)||e}if(d)try{return M.apply(n,h.querySelectorAll(d)),n}catch(t){}finally{a===T&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,i)}function ot(){var n=[];function i(t,e){return n.push(t+" ")>w.cacheLength&&delete i[n.shift()],i[t+" "]=e}return i}function rt(t){return t[T]=!0,t}function st(t){var e=S.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function at(t,e){for(var n=t.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=e}function lt(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||1<<31)-(~t.sourceIndex||1<<31);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ct(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function ut(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}function dt(s){return rt(function(r){return r=+r,rt(function(t,e){for(var n,i=s([],t.length,r),o=i.length;o--;)t[n=i[o]]&&(t[n]=!(e[n]=t[n]))})})}function ht(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in f=it.support={},s=it.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},k=it.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:b;return i!==S&&9===i.nodeType&&i.documentElement&&(a=(S=i).documentElement,C=!s(S),(n=S.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",o,!1):n.attachEvent&&n.attachEvent("onunload",o)),f.attributes=st(function(t){return t.className="i",!t.getAttribute("className")}),f.getElementsByTagName=st(function(t){return t.appendChild(S.createComment("")),!t.getElementsByTagName("*").length}),f.getElementsByClassName=Z.test(S.getElementsByClassName),f.getById=st(function(t){return a.appendChild(t).id=T,!S.getElementsByName||!S.getElementsByName(T).length}),f.getById?(w.find.ID=function(t,e){if(void 0!==e.getElementById&&C){var n=e.getElementById(t);return n?[n]:[]}},w.filter.ID=function(t){var e=t.replace(nt,d);return function(t){return t.getAttribute("id")===e}}):(delete w.find.ID,w.filter.ID=function(t){var n=t.replace(nt,d);return function(t){var e=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===n}}),w.find.TAG=f.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):f.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],o=0,r=e.getElementsByTagName(t);if("*"!==t)return r;for(;n=r[o++];)1===n.nodeType&&i.push(n);return i},w.find.CLASS=f.getElementsByClassName&&function(t,e){return void 0!==e.getElementsByClassName&&C?e.getElementsByClassName(t):void 0},u=[],v=[],(f.qsa=Z.test(S.querySelectorAll))&&(st(function(t){a.appendChild(t).innerHTML="<a id='"+T+"'></a><select id='"+T+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+O+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||v.push("\\["+O+"*(?:value|"+j+")"),t.querySelectorAll("[id~="+T+"-]").length||v.push("~="),t.querySelectorAll(":checked").length||v.push(":checked"),t.querySelectorAll("a#"+T+"+*").length||v.push(".#.+[+~]")}),st(function(t){var e=S.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&v.push("name"+O+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||v.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),v.push(",.*:")})),(f.matchesSelector=Z.test(p=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&st(function(t){f.disconnectedMatch=p.call(t,"div"),p.call(t,"[s!='']:x"),u.push("!=",q)}),v=v.length&&new RegExp(v.join("|")),u=u.length&&new RegExp(u.join("|")),e=Z.test(a.compareDocumentPosition),y=e||Z.test(a.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},L=e?function(t,e){if(t===e)return c=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!f.sortDetached&&e.compareDocumentPosition(t)===n?t===S||t.ownerDocument===b&&y(b,t)?-1:e===S||e.ownerDocument===b&&y(b,e)?1:l?H(l,t)-H(l,e):0:4&n?-1:1)}:function(t,e){if(t===e)return c=!0,0;var n,i=0,o=t.parentNode,r=e.parentNode,s=[t],a=[e];if(!o||!r)return t===S?-1:e===S?1:o?-1:r?1:l?H(l,t)-H(l,e):0;if(o===r)return lt(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?lt(s[i],a[i]):s[i]===b?-1:a[i]===b?1:0}),S},it.matches=function(t,e){return it(t,null,null,e)},it.matchesSelector=function(t,e){if((t.ownerDocument||t)!==S&&k(t),e=e.replace(G,"='$1']"),f.matchesSelector&&C&&!D[e+" "]&&(!u||!u.test(e))&&(!v||!v.test(e)))try{var n=p.call(t,e);if(n||f.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return 0<it(e,S,null,[t]).length},it.contains=function(t,e){return(t.ownerDocument||t)!==S&&k(t),y(t,e)},it.attr=function(t,e){(t.ownerDocument||t)!==S&&k(t);var n=w.attrHandle[e.toLowerCase()],i=n&&R.call(w.attrHandle,e.toLowerCase())?n(t,e,!C):void 0;return void 0!==i?i:f.attributes||!C?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},it.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},it.uniqueSort=function(t){var e,n=[],i=0,o=0;if(c=!f.detectDuplicates,l=!f.sortStable&&t.slice(0),t.sort(L),c){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)t.splice(n[i],1)}return l=null,t},r=it.getText=function(t){var e,n="",i=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=r(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i++];)n+=r(e);return n},(w=it.selectors={cacheLength:50,createPseudo:rt,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(nt,d),t[3]=(t[3]||t[4]||t[5]||"").replace(nt,d),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||it.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&it.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return X.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&Y.test(n)&&(e=m(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(nt,d).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=E[t+" "];return e||(e=new RegExp("(^|"+O+")"+t+"("+O+"|$)"))&&E(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(n,i,o){return function(t){var e=it.attr(t,n);return null==e?"!="===i:!i||(e+="","="===i?e===o:"!="===i?e!==o:"^="===i?o&&0===e.indexOf(o):"*="===i?o&&-1<e.indexOf(o):"$="===i?o&&e.slice(-o.length)===o:"~="===i?-1<(" "+e.replace(z," ")+" ").indexOf(o):"|="===i&&(e===o||e.slice(0,o.length+1)===o+"-"))}},CHILD:function(f,t,e,m,g){var v="nth"!==f.slice(0,3),y="last"!==f.slice(-4),b="of-type"===t;return 1===m&&0===g?function(t){return!!t.parentNode}:function(t,e,n){var i,o,r,s,a,l,c=v!=y?"nextSibling":"previousSibling",u=t.parentNode,d=b&&t.nodeName.toLowerCase(),h=!n&&!b,p=!1;if(u){if(v){for(;c;){for(s=t;s=s[c];)if(b?s.nodeName.toLowerCase()===d:1===s.nodeType)return!1;l=c="only"===f&&!l&&"nextSibling"}return!0}if(l=[y?u.firstChild:u.lastChild],y&&h){for(p=(a=(i=(o=(r=(s=u)[T]||(s[T]={}))[s.uniqueID]||(r[s.uniqueID]={}))[f]||[])[0]===_&&i[1])&&i[2],s=a&&u.childNodes[a];s=++a&&s&&s[c]||(p=a=0)||l.pop();)if(1===s.nodeType&&++p&&s===t){o[f]=[_,a,p];break}}else if(h&&(p=a=(i=(o=(r=(s=t)[T]||(s[T]={}))[s.uniqueID]||(r[s.uniqueID]={}))[f]||[])[0]===_&&i[1]),!1===p)for(;(s=++a&&s&&s[c]||(p=a=0)||l.pop())&&((b?s.nodeName.toLowerCase()!==d:1!==s.nodeType)||!++p||(h&&((o=(r=s[T]||(s[T]={}))[s.uniqueID]||(r[s.uniqueID]={}))[f]=[_,p]),s!==t)););return(p-=g)===m||p%m==0&&0<=p/m}}},PSEUDO:function(t,r){var e,s=w.pseudos[t]||w.setFilters[t.toLowerCase()]||it.error("unsupported pseudo: "+t);return s[T]?s(r):1<s.length?(e=[t,t,"",r],w.setFilters.hasOwnProperty(t.toLowerCase())?rt(function(t,e){for(var n,i=s(t,r),o=i.length;o--;)t[n=H(t,i[o])]=!(e[n]=i[o])}):function(t){return s(t,0,e)}):s}},pseudos:{not:rt(function(t){var i=[],o=[],a=h(t.replace(B,"$1"));return a[T]?rt(function(t,e,n,i){for(var o,r=a(t,null,i,[]),s=t.length;s--;)(o=r[s])&&(t[s]=!(e[s]=o))}):function(t,e,n){return i[0]=t,a(i,null,n,o),i[0]=null,!o.pop()}}),has:rt(function(e){return function(t){return 0<it(e,t).length}}),contains:rt(function(e){return e=e.replace(nt,d),function(t){return-1<(t.textContent||t.innerText||r(t)).indexOf(e)}}),lang:rt(function(n){return Q.test(n||"")||it.error("unsupported lang: "+n),n=n.replace(nt,d).toLowerCase(),function(t){var e;do{if(e=C?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===n||0===e.indexOf(n+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===a},focus:function(t){return t===S.activeElement&&(!S.hasFocus||S.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!w.pseudos.empty(t)},header:function(t){return K.test(t.nodeName)},input:function(t){return J.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:dt(function(){return[0]}),last:dt(function(t,e){return[e-1]}),eq:dt(function(t,e,n){return[n<0?n+e:n]}),even:dt(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:dt(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:dt(function(t,e,n){for(var i=n<0?n+e:n;0<=--i;)t.push(i);return t}),gt:dt(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[t]=ct(t);for(t in{submit:!0,reset:!0})w.pseudos[t]=ut(t);function pt(){}function ft(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function mt(a,t,e){var l=t.dir,c=e&&"parentNode"===l,u=i++;return t.first?function(t,e,n){for(;t=t[l];)if(1===t.nodeType||c)return a(t,e,n)}:function(t,e,n){var i,o,r,s=[_,u];if(n){for(;t=t[l];)if((1===t.nodeType||c)&&a(t,e,n))return!0}else for(;t=t[l];)if(1===t.nodeType||c){if((i=(o=(r=t[T]||(t[T]={}))[t.uniqueID]||(r[t.uniqueID]={}))[l])&&i[0]===_&&i[1]===u)return s[2]=i[2];if((o[l]=s)[2]=a(t,e,n))return!0}}}function gt(o){return 1<o.length?function(t,e,n){for(var i=o.length;i--;)if(!o[i](t,e,n))return!1;return!0}:o[0]}function vt(t,e,n,i,o){for(var r,s=[],a=0,l=t.length,c=null!=e;a<l;a++)(r=t[a])&&(n&&!n(r,i,o)||(s.push(r),c&&e.push(a)));return s}function yt(p,f,m,g,v,t){return g&&!g[T]&&(g=yt(g)),v&&!v[T]&&(v=yt(v,t)),rt(function(t,e,n,i){var o,r,s,a=[],l=[],c=e.length,u=t||function(t,e,n){for(var i=0,o=e.length;i<o;i++)it(t,e[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),d=!p||!t&&f?u:vt(u,a,p,n,i),h=m?v||(t?p:c||g)?[]:e:d;if(m&&m(d,h,n,i),g)for(o=vt(h,l),g(o,[],n,i),r=o.length;r--;)(s=o[r])&&(h[l[r]]=!(d[l[r]]=s));if(t){if(v||p){if(v){for(o=[],r=h.length;r--;)(s=h[r])&&o.push(d[r]=s);v(null,h=[],o,i)}for(r=h.length;r--;)(s=h[r])&&-1<(o=v?H(t,s):a[r])&&(t[o]=!(e[o]=s))}}else h=vt(h===e?h.splice(c,h.length):h),v?v(null,e,h,i):M.apply(e,h)})}function bt(t){for(var o,e,n,i=t.length,r=w.relative[t[0].type],s=r||w.relative[" "],a=r?1:0,l=mt(function(t){return t===o},s,!0),c=mt(function(t){return-1<H(o,t)},s,!0),u=[function(t,e,n){var i=!r&&(n||e!==x)||((o=e).nodeType?l:c)(t,e,n);return o=null,i}];a<i;a++)if(e=w.relative[t[a].type])u=[mt(gt(u),e)];else{if((e=w.filter[t[a].type].apply(null,t[a].matches))[T]){for(n=++a;n<i&&!w.relative[t[n].type];n++);return yt(1<a&&gt(u),1<a&&ft(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(B,"$1"),e,a<n&&bt(t.slice(a,n)),n<i&&bt(t=t.slice(n)),n<i&&ft(t))}u.push(e)}return gt(u)}function wt(g,v){function t(t,e,n,i,o){var r,s,a,l=0,c="0",u=t&&[],d=[],h=x,p=t||b&&w.find.TAG("*",o),f=_+=null==h?1:Math.random()||.1,m=p.length;for(o&&(x=e===S||e||o);c!==m&&null!=(r=p[c]);c++){if(b&&r){for(s=0,e||r.ownerDocument===S||(k(r),n=!C);a=g[s++];)if(a(r,e||S,n)){i.push(r);break}o&&(_=f)}y&&((r=!a&&r)&&l--,t&&u.push(r))}if(l+=c,y&&c!==l){for(s=0;a=v[s++];)a(u,d,e,n);if(t){if(0<l)for(;c--;)u[c]||d[c]||(d[c]=N.call(i));d=vt(d)}M.apply(i,d),o&&!t&&0<d.length&&1<l+v.length&&it.uniqueSort(i)}return o&&(_=f,x=h),u}var y=0<v.length,b=0<g.length;return y?rt(t):t}return pt.prototype=w.filters=w.pseudos,w.setFilters=new pt,m=it.tokenize=function(t,e){var n,i,o,r,s,a,l,c=A[t+" "];if(c)return e?0:c.slice(0);for(s=t,a=[],l=w.preFilter;s;){for(r in n&&!(i=U.exec(s))||(i&&(s=s.slice(i[0].length)||s),a.push(o=[])),n=!1,(i=V.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(B," ")}),s=s.slice(n.length)),w.filter)!(i=X[r].exec(s))||l[r]&&!(i=l[r](i))||(n=i.shift(),o.push({value:n,type:r,matches:i}),s=s.slice(n.length));if(!n)break}return e?s.length:s?it.error(t):A(t,a).slice(0)},h=it.compile=function(t,e){var n,i=[],o=[],r=D[t+" "];if(!r){for(n=(e=e||m(t)).length;n--;)(r=bt(e[n]))[T]?i.push(r):o.push(r);(r=D(t,wt(o,i))).selector=t}return r},g=it.select=function(t,e,n,i){var o,r,s,a,l,c="function"==typeof t&&t,u=!i&&m(t=c.selector||t);if(n=n||[],1===u.length){if(2<(r=u[0]=u[0].slice(0)).length&&"ID"===(s=r[0]).type&&f.getById&&9===e.nodeType&&C&&w.relative[r[1].type]){if(!(e=(w.find.ID(s.matches[0].replace(nt,d),e)||[])[0]))return n;c&&(e=e.parentNode),t=t.slice(r.shift().value.length)}for(o=X.needsContext.test(t)?0:r.length;o--&&(s=r[o],!w.relative[a=s.type]);)if((l=w.find[a])&&(i=l(s.matches[0].replace(nt,d),tt.test(r[0].type)&&ht(e.parentNode)||e))){if(r.splice(o,1),!(t=i.length&&ft(r)))return M.apply(n,i),n;break}}return(c||h(t,u))(i,e,!C,n,!e||tt.test(t)&&ht(e.parentNode)||e),n},f.sortStable=T.split("").sort(L).join("")===T,f.detectDuplicates=!!c,k(),f.sortDetached=st(function(t){return 1&t.compareDocumentPosition(S.createElement("div"))}),st(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||at("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),f.attributes&&st(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||at("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),st(function(t){return null==t.getAttribute("disabled")})||at(j,function(t,e,n){var i;return n?void 0:!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),it}(S);T.find=p,T.expr=p.selectors,T.expr[":"]=T.expr.pseudos,T.uniqueSort=T.unique=p.uniqueSort,T.text=p.getText,T.isXMLDoc=p.isXML,T.contains=p.contains;function v(t,e,n){for(var i=[],o=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&T(t).is(n))break;i.push(t)}return i}function y(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}var b=T.expr.match.needsContext,w=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,x=/^.[^:#\[\.,]*$/;function k(t,n,i){if(T.isFunction(n))return T.grep(t,function(t,e){return!!n.call(t,e,t)!==i});if(n.nodeType)return T.grep(t,function(t){return t===n!==i});if("string"==typeof n){if(x.test(n))return T.filter(n,t,i);n=T.filter(n,t)}return T.grep(t,function(t){return-1<o.call(n,t)!==i})}T.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?T.find.matchesSelector(i,t)?[i]:[]:T.find.matches(t,T.grep(e,function(t){return 1===t.nodeType}))},T.fn.extend({find:function(t){var e,n=this.length,i=[],o=this;if("string"!=typeof t)return this.pushStack(T(t).filter(function(){for(e=0;e<n;e++)if(T.contains(o[e],this))return!0}));for(e=0;e<n;e++)T.find(t,o[e],i);return(i=this.pushStack(1<n?T.unique(i):i)).selector=this.selector?this.selector+" "+t:t,i},filter:function(t){return this.pushStack(k(this,t||[],!1))},not:function(t){return this.pushStack(k(this,t||[],!0))},is:function(t){return!!k(this,"string"==typeof t&&b.test(t)?T(t):t||[],!1).length}});var _,E=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(T.fn.init=function(t,e,n){var i,o;if(!t)return this;if(n=n||_,"string"!=typeof t)return t.nodeType?(this.context=this[0]=t,this.length=1,this):T.isFunction(t)?void 0!==n.ready?n.ready(t):t(T):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),T.makeArray(t,this));if(!(i="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:E.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof T?e[0]:e,T.merge(this,T.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:C,!0)),w.test(i[1])&&T.isPlainObject(e))for(i in e)T.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(o=C.getElementById(i[2]))&&o.parentNode&&(this.length=1,this[0]=o),this.context=C,this.selector=t,this}).prototype=T.fn,_=T(C);var A=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function L(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}T.fn.extend({has:function(t){var e=T(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(T.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,i=0,o=this.length,r=[],s=b.test(t)||"string"!=typeof t?T(t,e||this.context):0;i<o;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&T.find.matchesSelector(n,t))){r.push(n);break}return this.pushStack(1<r.length?T.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?o.call(T(t),this[0]):o.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),T.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return v(t,"parentNode")},parentsUntil:function(t,e,n){return v(t,"parentNode",n)},next:function(t){return L(t,"nextSibling")},prev:function(t){return L(t,"previousSibling")},nextAll:function(t){return v(t,"nextSibling")},prevAll:function(t){return v(t,"previousSibling")},nextUntil:function(t,e,n){return v(t,"nextSibling",n)},prevUntil:function(t,e,n){return v(t,"previousSibling",n)},siblings:function(t){return y((t.parentNode||{}).firstChild,t)},children:function(t){return y(t.firstChild)},contents:function(t){return t.contentDocument||T.merge([],t.childNodes)}},function(i,o){T.fn[i]=function(t,e){var n=T.map(this,o,t);return"Until"!==i.slice(-5)&&(e=t),e&&"string"==typeof e&&(n=T.filter(e,n)),1<this.length&&(D[i]||T.uniqueSort(n),A.test(i)&&n.reverse()),this.pushStack(n)}});var R,N=/\S+/g;function W(){C.removeEventListener("DOMContentLoaded",W),S.removeEventListener("load",W),T.ready()}T.Callbacks=function(i){var t,n;i="string"==typeof i?(t=i,n={},T.each(t.match(N)||[],function(t,e){n[e]=!0}),n):T.extend({},i);function o(){for(a=i.once,s=r=!0;c.length;u=-1)for(e=c.shift();++u<l.length;)!1===l[u].apply(e[0],e[1])&&i.stopOnFalse&&(u=l.length,e=!1);i.memory||(e=!1),r=!1,a&&(l=e?[]:"")}var r,e,s,a,l=[],c=[],u=-1,d={add:function(){return l&&(e&&!r&&(u=l.length-1,c.push(e)),function n(t){T.each(t,function(t,e){T.isFunction(e)?i.unique&&d.has(e)||l.push(e):e&&e.length&&"string"!==T.type(e)&&n(e)})}(arguments),e&&!r&&o()),this},remove:function(){return T.each(arguments,function(t,e){for(var n;-1<(n=T.inArray(e,l,n));)l.splice(n,1),n<=u&&u--}),this},has:function(t){return t?-1<T.inArray(t,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return a=c=[],l=e="",this},disabled:function(){return!l},lock:function(){return a=c=[],e||(l=e=""),this},locked:function(){return!!a},fireWith:function(t,e){return a||(e=[t,(e=e||[]).slice?e.slice():e],c.push(e),r||o()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!s}};return d},T.extend({Deferred:function(t){var r=[["resolve","done",T.Callbacks("once memory"),"resolved"],["reject","fail",T.Callbacks("once memory"),"rejected"],["notify","progress",T.Callbacks("memory")]],o="pending",s={state:function(){return o},always:function(){return a.done(arguments).fail(arguments),this},then:function(){var o=arguments;return T.Deferred(function(i){T.each(r,function(t,e){var n=T.isFunction(o[t])&&o[t];a[e[1]](function(){var t=n&&n.apply(this,arguments);t&&T.isFunction(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[e[0]+"With"](this===s?i.promise():this,n?[t]:arguments)})}),o=null}).promise()},promise:function(t){return null!=t?T.extend(t,s):s}},a={};return s.pipe=s.then,T.each(r,function(t,e){var n=e[2],i=e[3];s[e[1]]=n.add,i&&n.add(function(){o=i},r[1^t][2].disable,r[2][2].lock),a[e[0]]=function(){return a[e[0]+"With"](this===a?s:this,arguments),this},a[e[0]+"With"]=n.fireWith}),s.promise(a),t&&t.call(a,a),a},when:function(t){function e(e,n,i){return function(t){n[e]=this,i[e]=1<arguments.length?u.call(arguments):t,i===o?c.notifyWith(n,i):--l||c.resolveWith(n,i)}}var o,n,i,r=0,s=u.call(arguments),a=s.length,l=1!==a||t&&T.isFunction(t.promise)?a:0,c=1===l?t:T.Deferred();if(1<a)for(o=new Array(a),n=new Array(a),i=new Array(a);r<a;r++)s[r]&&T.isFunction(s[r].promise)?s[r].promise().progress(e(r,n,o)).done(e(r,i,s)).fail(c.reject):--l;return l||c.resolveWith(i,s),c.promise()}}),T.fn.ready=function(t){return T.ready.promise().done(t),this},T.extend({isReady:!1,readyWait:1,holdReady:function(t){t?T.readyWait++:T.ready(!0)},ready:function(t){(!0===t?--T.readyWait:T.isReady)||((T.isReady=!0)!==t&&0<--T.readyWait||(R.resolveWith(C,[T]),T.fn.triggerHandler&&(T(C).triggerHandler("ready"),T(C).off("ready"))))}}),T.ready.promise=function(t){return R||(R=T.Deferred(),"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?S.setTimeout(T.ready):(C.addEventListener("DOMContentLoaded",W),S.addEventListener("load",W))),R.promise(t)},T.ready.promise();function M(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}var I=function(t,e,n,i,o,r,s){var a=0,l=t.length,c=null==n;if("object"===T.type(n))for(a in o=!0,n)I(t,e,a,n[a],!0,r,s);else if(void 0!==i&&(o=!0,T.isFunction(i)||(s=!0),c&&(e=s?(e.call(t,i),null):(c=e,function(t,e,n){return c.call(T(t),n)})),e))for(;a<l;a++)e(t[a],n,s?i:i.call(t[a],a,e(t[a],n)));return o?t:c?e.call(t):l?e(t[0],n):r};function H(){this.expando=T.expando+H.uid++}H.uid=1,H.prototype={register:function(t,e){var n=e||{};return t.nodeType?t[this.expando]=n:Object.defineProperty(t,this.expando,{value:n,writable:!0,configurable:!0}),t[this.expando]},cache:function(t){if(!M(t))return{};var e=t[this.expando];return e||(e={},M(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,o=this.cache(t);if("string"==typeof e)o[e]=n;else for(i in e)o[i]=e[i];return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][e]},access:function(t,e,n){var i;return void 0===e||e&&"string"==typeof e&&void 0===n?void 0!==(i=this.get(t,e))?i:this.get(t,T.camelCase(e)):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i,o,r=t[this.expando];if(void 0!==r){if(void 0===e)this.register(t);else{n=(i=T.isArray(e)?e.concat(e.map(T.camelCase)):(o=T.camelCase(e),e in r?[e,o]:(i=o)in r?[i]:i.match(N)||[])).length;for(;n--;)delete r[i[n]]}void 0!==e&&!T.isEmptyObject(r)||(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!T.isEmptyObject(e)}};var j=new H,O=new H,P=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,F=/[A-Z]/g;function q(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(F,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:P.test(n)?T.parseJSON(n):n)}catch(t){}O.set(t,e,n)}else n=void 0;return n}T.extend({hasData:function(t){return O.hasData(t)||j.hasData(t)},data:function(t,e,n){return O.access(t,e,n)},removeData:function(t,e){O.remove(t,e)},_data:function(t,e,n){return j.access(t,e,n)},_removeData:function(t,e){j.remove(t,e)}}),T.fn.extend({data:function(i,t){var e,n,o,r=this[0],s=r&&r.attributes;if(void 0!==i)return"object"==typeof i?this.each(function(){O.set(this,i)}):I(this,function(e){var t,n;if(r&&void 0===e){if(void 0!==(t=O.get(r,i)||O.get(r,i.replace(F,"-$&").toLowerCase())))return t;if(n=T.camelCase(i),void 0!==(t=O.get(r,n)))return t;if(void 0!==(t=q(r,n,void 0)))return t}else n=T.camelCase(i),this.each(function(){var t=O.get(this,n);O.set(this,n,e),-1<i.indexOf("-")&&void 0!==t&&O.set(this,i,e)})},null,t,1<arguments.length,null,!0);if(this.length&&(o=O.get(r),1===r.nodeType&&!j.get(r,"hasDataAttrs"))){for(e=s.length;e--;)s[e]&&(0===(n=s[e].name).indexOf("data-")&&(n=T.camelCase(n.slice(5)),q(r,n,o[n])));j.set(r,"hasDataAttrs",!0)}return o},removeData:function(t){return this.each(function(){O.remove(this,t)})}}),T.extend({queue:function(t,e,n){var i;return t?(e=(e||"fx")+"queue",i=j.get(t,e),n&&(!i||T.isArray(n)?i=j.access(t,e,T.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=T.queue(t,e),i=n.length,o=n.shift(),r=T._queueHooks(t,e);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===e&&n.unshift("inprogress"),delete r.stop,o.call(t,function(){T.dequeue(t,e)},r)),!i&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return j.get(t,n)||j.access(t,n,{empty:T.Callbacks("once memory").add(function(){j.remove(t,[e+"queue",n])})})}}),T.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?T.queue(this[0],e):void 0===n?this:this.each(function(){var t=T.queue(this,e,n);T._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&T.dequeue(this,e)})},dequeue:function(t){return this.each(function(){T.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){function n(){--o||r.resolveWith(s,[s])}var i,o=1,r=T.Deferred(),s=this,a=this.length;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(i=j.get(s[a],t+"queueHooks"))&&i.empty&&(o++,i.empty.add(n));return n(),r.promise(e)}});function z(t,e){return t=e||t,"none"===T.css(t,"display")||!T.contains(t.ownerDocument,t)}var B=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,U=new RegExp("^(?:([+-])=|)("+B+")([a-z%]*)$","i"),V=["Top","Right","Bottom","Left"];function G(t,e,n,i){var o,r=1,s=20,a=i?function(){return i.cur()}:function(){return T.css(t,e,"")},l=a(),c=n&&n[3]||(T.cssNumber[e]?"":"px"),u=(T.cssNumber[e]||"px"!==c&&+l)&&U.exec(T.css(t,e));if(u&&u[3]!==c)for(c=c||u[3],n=n||[],u=+l||1;u/=r=r||".5",T.style(t,e,u+c),r!==(r=a()/l)&&1!==r&&--s;);return n&&(u=+u||+l||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=o)),o}var Y=/^(?:checkbox|radio)$/i,Q=/<([\w:-]+)/,X=/^$|\/(?:java|ecma)script/i,$={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 J(t,e){var n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&T.nodeName(t,e)?T.merge([t],n):n}function K(t,e){for(var n=0,i=t.length;n<i;n++)j.set(t[n],"globalEval",!e||j.get(e[n],"globalEval"))}$.optgroup=$.option,$.tbody=$.tfoot=$.colgroup=$.caption=$.thead,$.th=$.td;var Z,tt,et=/<|&#?\w+;/;function nt(t,e,n,i,o){for(var r,s,a,l,c,u,d=e.createDocumentFragment(),h=[],p=0,f=t.length;p<f;p++)if((r=t[p])||0===r)if("object"===T.type(r))T.merge(h,r.nodeType?[r]:r);else if(et.test(r)){for(s=s||d.appendChild(e.createElement("div")),a=(Q.exec(r)||["",""])[1].toLowerCase(),l=$[a]||$._default,s.innerHTML=l[1]+T.htmlPrefilter(r)+l[2],u=l[0];u--;)s=s.lastChild;T.merge(h,s.childNodes),(s=d.firstChild).textContent=""}else h.push(e.createTextNode(r));for(d.textContent="",p=0;r=h[p++];)if(i&&-1<T.inArray(r,i))o&&o.push(r);else if(c=T.contains(r.ownerDocument,r),s=J(d.appendChild(r),"script"),c&&K(s),n)for(u=0;r=s[u++];)X.test(r.type||"")&&n.push(r);return d}Z=C.createDocumentFragment().appendChild(C.createElement("div")),(tt=C.createElement("input")).setAttribute("type","radio"),tt.setAttribute("checked","checked"),tt.setAttribute("name","t"),Z.appendChild(tt),g.checkClone=Z.cloneNode(!0).cloneNode(!0).lastChild.checked,Z.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!Z.cloneNode(!0).lastChild.defaultValue;var it=/^key/,ot=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,rt=/^([^.]*)(?:\.(.+)|)/;function st(){return!0}function at(){return!1}function lt(){try{return C.activeElement}catch(t){}}function ct(t,e,n,i,o,r){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)ct(t,a,n,i,e[a],r);return t}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=at;else if(!o)return t;return 1===r&&(s=o,(o=function(t){return T().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=T.guid++)),t.each(function(){T.event.add(this,e,o,i,n)})}T.event={global:{},add:function(e,t,n,i,o){var r,s,a,l,c,u,d,h,p,f,m,g=j.get(e);if(g)for(n.handler&&(n=(r=n).handler,o=r.selector),n.guid||(n.guid=T.guid++),(l=g.events)||(l=g.events={}),(s=g.handle)||(s=g.handle=function(t){return void 0!==T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(N)||[""]).length;c--;)p=m=(a=rt.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=T.event.special[p]||{},p=(o?d.delegateType:d.bindType)||p,d=T.event.special[p]||{},u=T.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&T.expr.match.needsContext.test(o),namespace:f.join(".")},r),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,f,s)||e.addEventListener&&e.addEventListener(p,s)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?h.splice(h.delegateCount++,0,u):h.push(u),T.event.global[p]=!0)},remove:function(t,e,n,i,o){var r,s,a,l,c,u,d,h,p,f,m,g=j.hasData(t)&&j.get(t);if(g&&(l=g.events)){for(c=(e=(e||"").match(N)||[""]).length;c--;)if(p=m=(a=rt.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=T.event.special[p]||{},h=l[p=(i?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=h.length;r--;)u=h[r],!o&&m!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(r,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(t,u));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,f,g.handle)||T.removeEvent(t,p,g.handle),delete l[p])}else for(p in l)T.event.remove(t,p+e[c],n,i,!0);T.isEmptyObject(l)&&j.remove(t,"handle events")}},dispatch:function(t){t=T.event.fix(t);var e,n,i,o,r,s=[],a=u.call(arguments),l=(j.get(this,"events")||{})[t.type]||[],c=T.event.special[t.type]||{};if((a[0]=t).delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){for(s=T.event.handlers.call(this,t,l),e=0;(o=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(r.namespace)||(t.handleObj=r,t.data=r.data,void 0!==(i=((T.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,a))&&!1===(t.result=i)&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,o,r,s=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(i=[],n=0;n<a;n++)void 0===i[o=(r=e[n]).selector+" "]&&(i[o]=r.needsContext?-1<T(o,this).index(l):T.find(o,this,null,[l]).length),i[o]&&i.push(r);i.length&&s.push({elem:l,handlers:i})}return a<e.length&&s.push({elem:this,handlers:e.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,i,o,r=e.button;return null==t.pageX&&null!=e.clientX&&(i=(n=t.target.ownerDocument||C).documentElement,o=n.body,t.pageX=e.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)),t.which||void 0===r||(t.which=1&r?1:2&r?3:4&r?2:0),t}},fix:function(t){if(t[T.expando])return t;var e,n,i,o=t.type,r=t,s=this.fixHooks[o];for(s||(this.fixHooks[o]=s=ot.test(o)?this.mouseHooks:it.test(o)?this.keyHooks:{}),i=s.props?this.props.concat(s.props):this.props,t=new T.Event(r),e=i.length;e--;)t[n=i[e]]=r[n];return t.target||(t.target=C),3===t.target.nodeType&&(t.target=t.target.parentNode),s.filter?s.filter(t,r):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==lt()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===lt()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&T.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return T.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},T.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},T.Event=function(t,e){return this instanceof T.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?st:at):this.type=t,e&&T.extend(this,e),this.timeStamp=t&&t.timeStamp||T.now(),void(this[T.expando]=!0)):new T.Event(t,e)},T.Event.prototype={constructor:T.Event,isDefaultPrevented:at,isPropagationStopped:at,isImmediatePropagationStopped:at,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=st,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=st,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=st,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,o){T.event.special[t]={delegateType:o,bindType:o,handle:function(t){var e,n=t.relatedTarget,i=t.handleObj;return n&&(n===this||T.contains(this,n))||(t.type=i.origType,e=i.handler.apply(this,arguments),t.type=o),e}}}),T.fn.extend({on:function(t,e,n,i){return ct(this,t,e,n,i)},one:function(t,e,n,i){return ct(this,t,e,n,i,1)},off:function(t,e,n){var i,o;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,T(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=at),this.each(function(){T.event.remove(this,t,n,e)});for(o in t)this.off(o,e,t[o]);return this}});var ut=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,dt=/<script|<style|<link/i,ht=/checked\s*(?:[^=]|=\s*.checked.)/i,pt=/^true\/(.*)/,ft=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function mt(t,e){return T.nodeName(t,"table")&&T.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function gt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function vt(t){var e=pt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function yt(t,e){var n,i,o,r,s,a,l,c;if(1===e.nodeType){if(j.hasData(t)&&(r=j.access(t),s=j.set(e,r),c=r.events))for(o in delete s.handle,s.events={},c)for(n=0,i=c[o].length;n<i;n++)T.event.add(e,o,c[o][n]);O.hasData(t)&&(a=O.access(t),l=T.extend({},a),O.set(e,l))}}function bt(n,i,o,r){i=m.apply([],i);var t,e,s,a,l,c,u=0,d=n.length,h=d-1,p=i[0],f=T.isFunction(p);if(f||1<d&&"string"==typeof p&&!g.checkClone&&ht.test(p))return n.each(function(t){var e=n.eq(t);f&&(i[0]=p.call(this,t,e.html())),bt(e,i,o,r)});if(d&&(e=(t=nt(i,n[0].ownerDocument,!1,n,r)).firstChild,1===t.childNodes.length&&(t=e),e||r)){for(a=(s=T.map(J(t,"script"),gt)).length;u<d;u++)l=t,u!==h&&(l=T.clone(l,!0,!0),a&&T.merge(s,J(l,"script"))),o.call(n[u],l,u);if(a)for(c=s[s.length-1].ownerDocument,T.map(s,vt),u=0;u<a;u++)l=s[u],X.test(l.type||"")&&!j.access(l,"globalEval")&&T.contains(c,l)&&(l.src?T._evalUrl&&T._evalUrl(l.src):T.globalEval(l.textContent.replace(ft,"")))}return n}function wt(t,e,n){for(var i,o=e?T.filter(e,t):t,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||T.cleanData(J(i)),i.parentNode&&(n&&T.contains(i.ownerDocument,i)&&K(J(i,"script")),i.parentNode.removeChild(i));return t}T.extend({htmlPrefilter:function(t){return t.replace(ut,"<$1></$2>")},clone:function(t,e,n){var i,o,r,s,a,l,c,u=t.cloneNode(!0),d=T.contains(t.ownerDocument,t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||T.isXMLDoc(t)))for(s=J(u),i=0,o=(r=J(t)).length;i<o;i++)a=r[i],l=s[i],"input"===(c=l.nodeName.toLowerCase())&&Y.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(e)if(n)for(r=r||J(t),s=s||J(u),i=0,o=r.length;i<o;i++)yt(r[i],s[i]);else yt(t,u);return 0<(s=J(u,"script")).length&&K(s,!d&&J(t,"script")),u},cleanData:function(t){for(var e,n,i,o=T.event.special,r=0;void 0!==(n=t[r]);r++)if(M(n)){if(e=n[j.expando]){if(e.events)for(i in e.events)o[i]?T.event.remove(n,i):T.removeEvent(n,i,e.handle);n[j.expando]=void 0}n[O.expando]&&(n[O.expando]=void 0)}}}),T.fn.extend({domManip:bt,detach:function(t){return wt(this,t,!0)},remove:function(t){return wt(this,t)},text:function(t){return I(this,function(t){return void 0===t?T.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return bt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||mt(this,t).appendChild(t)})},prepend:function(){return bt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=mt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return bt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return bt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(T.cleanData(J(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return T.clone(this,t,e)})},html:function(t){return I(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!dt.test(t)&&!$[(Q.exec(t)||["",""])[1].toLowerCase()]){t=T.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(T.cleanData(J(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var n=[];return bt(this,arguments,function(t){var e=this.parentNode;T.inArray(this,n)<0&&(T.cleanData(J(this)),e&&e.replaceChild(t,this))},n)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,s){T.fn[t]=function(t){for(var e,n=[],i=T(t),o=i.length-1,r=0;r<=o;r++)e=r===o?this:this.clone(!0),T(i[r])[s](e),a.apply(n,e.get());return this.pushStack(n)}});var xt,kt={HTML:"block",BODY:"block"};function $t(t,e){var n=T(e.createElement(t)).appendTo(e.body),i=T.css(n[0],"display");return n.detach(),i}function St(t){var e=C,n=kt[t];return n||("none"!==(n=$t(t,e))&&n||((e=(xt=(xt||T("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentDocument).write(),e.close(),n=$t(t,e),xt.detach()),kt[t]=n),n}function Ct(t,e,n,i){var o,r,s={};for(r in e)s[r]=t.style[r],t.style[r]=e[r];for(r in o=n.apply(t,i||[]),e)t.style[r]=s[r];return o}var Tt=/^margin/,_t=new RegExp("^("+B+")(?!px)[a-z%]+$","i"),Et=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=S),e.getComputedStyle(t)},At=C.documentElement;function Dt(t,e,n){var i,o,r,s,a=t.style;return""!==(s=(n=n||Et(t))?n.getPropertyValue(e)||n[e]:void 0)&&void 0!==s||T.contains(t.ownerDocument,t)||(s=T.style(t,e)),n&&!g.pixelMarginRight()&&_t.test(s)&&Tt.test(e)&&(i=a.width,o=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=o,a.maxWidth=r),void 0!==s?s+"":s}function Lt(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}!function(){var e,n,i,o,r=C.createElement("div"),s=C.createElement("div");if(s.style){function t(){s.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",s.innerHTML="",At.appendChild(r);var t=S.getComputedStyle(s);e="1%"!==t.top,o="2px"===t.marginLeft,n="4px"===t.width,s.style.marginRight="50%",i="4px"===t.marginRight,At.removeChild(r)}s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===s.style.backgroundClip,r.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",r.appendChild(s),T.extend(g,{pixelPosition:function(){return t(),e},boxSizingReliable:function(){return null==n&&t(),n},pixelMarginRight:function(){return null==n&&t(),i},reliableMarginLeft:function(){return null==n&&t(),o},reliableMarginRight:function(){var t,e=s.appendChild(C.createElement("div"));return e.style.cssText=s.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",s.style.width="1px",At.appendChild(r),t=!parseFloat(S.getComputedStyle(e).marginRight),At.removeChild(r),s.removeChild(e),t}})}}();var Rt=/^(none|table(?!-c[ea]).+)/,Nt={position:"absolute",visibility:"hidden",display:"block"},Wt={letterSpacing:"0",fontWeight:"400"},Mt=["Webkit","O","Moz","ms"],It=C.createElement("div").style;function Ht(t){if(t in It)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=Mt.length;n--;)if((t=Mt[n]+e)in It)return t}function jt(t,e,n){var i=U.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function Ot(t,e,n,i,o){for(var r=n===(i?"border":"content")?4:"width"===e?1:0,s=0;r<4;r+=2)"margin"===n&&(s+=T.css(t,n+V[r],!0,o)),i?("content"===n&&(s-=T.css(t,"padding"+V[r],!0,o)),"margin"!==n&&(s-=T.css(t,"border"+V[r]+"Width",!0,o))):(s+=T.css(t,"padding"+V[r],!0,o),"padding"!==n&&(s+=T.css(t,"border"+V[r]+"Width",!0,o)));return s}function Pt(t,e,n){var i=!0,o="width"===e?t.offsetWidth:t.offsetHeight,r=Et(t),s="border-box"===T.css(t,"boxSizing",!1,r);if(o<=0||null==o){if(((o=Dt(t,e,r))<0||null==o)&&(o=t.style[e]),_t.test(o))return o;i=s&&(g.boxSizingReliable()||o===t.style[e]),o=parseFloat(o)||0}return o+Ot(t,e,n||(s?"border":"content"),i,r)+"px"}function Ft(t,e){for(var n,i,o,r=[],s=0,a=t.length;s<a;s++)(i=t[s]).style&&(r[s]=j.get(i,"olddisplay"),n=i.style.display,e?(r[s]||"none"!==n||(i.style.display=""),""===i.style.display&&z(i)&&(r[s]=j.access(i,"olddisplay",St(i.nodeName)))):(o=z(i),"none"===n&&o||j.set(i,"olddisplay",o?n:T.css(i,"dis
1play"))));for(s=0;s<a;s++)(i=t[s]).style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?r[s]||"":"none"));return t}function qt(t,e,n,i,o){return new qt.prototype.init(t,e,n,i,o)}T.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Dt(t,"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(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,r,s,a=T.camelCase(e),l=t.style;return e=T.cssProps[a]||(T.cssProps[a]=Ht(a)||a),s=T.cssHooks[e]||T.cssHooks[a],void 0===n?s&&"get"in s&&void 0!==(o=s.get(t,!1,i))?o:l[e]:("string"===(r=typeof n)&&(o=U.exec(n))&&o[1]&&(n=G(t,e,o),r="number"),void(null!=n&&n==n&&("number"===r&&(n+=o&&o[3]||(T.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(l[e]=n))))}},css:function(t,e,n,i){var o,r,s,a=T.camelCase(e);return e=T.cssProps[a]||(T.cssProps[a]=Ht(a)||a),(s=T.cssHooks[e]||T.cssHooks[a])&&"get"in s&&(o=s.get(t,!0,n)),void 0===o&&(o=Dt(t,e,i)),"normal"===o&&e in Wt&&(o=Wt[e]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),T.each(["height","width"],function(t,s){T.cssHooks[s]={get:function(t,e,n){return e?Rt.test(T.css(t,"display"))&&0===t.offsetWidth?Ct(t,Nt,function(){return Pt(t,s,n)}):Pt(t,s,n):void 0},set:function(t,e,n){var i,o=n&&Et(t),r=n&&Ot(t,s,n,"border-box"===T.css(t,"boxSizing",!1,o),o);return r&&(i=U.exec(e))&&"px"!==(i[3]||"px")&&(t.style[s]=e,e=T.css(t,s)),jt(0,e,r)}}}),T.cssHooks.marginLeft=Lt(g.reliableMarginLeft,function(t,e){return e?(parseFloat(Dt(t,"marginLeft"))||t.getBoundingClientRect().left-Ct(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px":void 0}),T.cssHooks.marginRight=Lt(g.reliableMarginRight,function(t,e){return e?Ct(t,{display:"inline-block"},Dt,[t,"marginRight"]):void 0}),T.each({margin:"",padding:"",border:"Width"},function(o,r){T.cssHooks[o+r]={expand:function(t){for(var e=0,n={},i="string"==typeof t?t.split(" "):[t];e<4;e++)n[o+V[e]+r]=i[e]||i[e-2]||i[0];return n}},Tt.test(o)||(T.cssHooks[o+r].set=jt)}),T.fn.extend({css:function(t,e){return I(this,function(t,e,n){var i,o,r={},s=0;if(T.isArray(e)){for(i=Et(t),o=e.length;s<o;s++)r[e[s]]=T.css(t,e[s],!1,i);return r}return void 0!==n?T.style(t,e,n):T.css(t,e)},t,e,1<arguments.length)},show:function(){return Ft(this,!0)},hide:function(){return Ft(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){z(this)?T(this).show():T(this).hide()})}}),(T.Tween=qt).prototype={constructor:qt,init:function(t,e,n,i,o,r){this.elem=t,this.prop=n,this.easing=o||T.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=r||(T.cssNumber[n]?"":"px")},cur:function(){var t=qt.propHooks[this.prop];return t&&t.get?t.get(this):qt.propHooks._default.get(this)},run:function(t){var e,n=qt.propHooks[this.prop];return this.options.duration?this.pos=e=T.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):qt.propHooks._default.set(this),this}},qt.prototype.init.prototype=qt.prototype,qt.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=T.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){T.fx.step[t.prop]?T.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[T.cssProps[t.prop]]&&!T.cssHooks[t.prop]?t.elem[t.prop]=t.now:T.style(t.elem,t.prop,t.now+t.unit)}}},qt.propHooks.scrollTop=qt.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},T.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},T.fx=qt.prototype.init,T.fx.step={};var zt,Bt,Ut,Vt,Gt,Yt=/^(?:toggle|show|hide)$/,Qt=/queueHooks$/;function Xt(){return S.setTimeout(function(){zt=void 0}),zt=T.now()}function Jt(t,e){var n,i=0,o={height:t};for(e=e?1:0;i<4;i+=2-e)o["margin"+(n=V[i])]=o["padding"+n]=t;return e&&(o.opacity=o.width=t),o}function Kt(t,e,n){for(var i,o=(Zt.tweeners[e]||[]).concat(Zt.tweeners["*"]),r=0,s=o.length;r<s;r++)if(i=o[r].call(n,e,t))return i}function Zt(r,t,e){var n,s,i=0,o=Zt.prefilters.length,a=T.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var t=zt||Xt(),e=Math.max(0,c.startTime+c.duration-t),n=1-(e/c.duration||0),i=0,o=c.tweens.length;i<o;i++)c.tweens[i].run(n);return a.notifyWith(r,[c,n,e]),n<1&&o?e:(a.resolveWith(r,[c]),!1)},c=a.promise({elem:r,props:T.extend({},t),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},e),originalProperties:t,originalOptions:e,startTime:zt||Xt(),duration:e.duration,tweens:[],createTween:function(t,e){var n=T.Tween(r,c.opts,t,e,c.opts.specialEasing[t]||
vendor: 26,093 bytes, line 1
1c.opts.easing);return c.tweens.push(n),n},stop:function(t){var e=0,n=t?c.tweens.length:0;if(s)return this;for(s=!0;e<n;e++)c.tweens[e].run(1);return t?(a.notifyWith(r,[c,1,0]),a.resolveWith(r,[c,t])):a.rejectWith(r,[c,t]),this}}),u=c.props;for(function(t,e){var n,i,o,r,s;for(n in t)if(o=e[i=T.camelCase(n)],r=t[n],T.isArray(r)&&(o=r[1],r=t[n]=r[0]),n!==i&&(t[i]=r,delete t[n]),(s=T.cssHooks[i])&&"expand"in s)for(n in r=s.expand(r),delete t[i],r)n in t||(t[n]=r[n],e[n]=o);else e[i]=o}(u,c.opts.specialEasing);i<o;i++)if(n=Zt.prefilters[i].call(c,r,u,c.opts))return T.isFunction(n.stop)&&(T._queueHooks(c.elem,c.opts.queue).stop=T.proxy(n.stop,n)),n;return T.map(u,Kt,c),T.isFunction(c.opts.start)&&c.opts.start.call(r,c),T.fx.timer(T.extend(l,{elem:r,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)}T.Animation=T.extend(Zt,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return G(n.elem,t,U.exec(e),n),n}]},tweener:function(t,e){for(var n,i=0,o=(t=T.isFunction(t)?(e=t,["*"]):t.match(N)).length;i<o;i++)n=t[i],Zt.tweeners[n]=Zt.tweeners[n]||[],Zt.tweeners[n].unshift(e)},prefilters:[function(e,t,n){var i,o,r,s,a,l,c,u=this,d={},h=e.style,p=e.nodeType&&z(e),f=j.get(e,"fxshow");for(i in n.queue||(null==(a=T._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,u.always(function(){u.always(function(){a.unqueued--,T.queue(e,"fx").length||a.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],"inline"===("none"===(c=T.css(e,"display"))?j.get(e,"olddisplay")||St(e.nodeName):c)&&"none"===T.css(e,"float")&&(h.display="inline-block")),n.overflow&&(h.overflow="hidden",u.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),t)if(o=t[i],Yt.exec(o)){if(delete t[i],r=r||"toggle"===o,o===(p?"hide":"show")){if("show"!==o||!f||void 0===f[i])continue;p=!0}d[i]=f&&f[i]||T.style(e,i)}else c=void 0;if(T.isEmptyObject(d))"inline"===("none"===c?St(e.nodeName):c)&&(h.display=c);else for(i in f?"hidden"in f&&(p=f.hidden):f=j.access(e,"fxshow",{}),r&&(f.hidden=!p),p?T(e).show():u.done(function(){T(e).hide()}),u.done(function(){var t;for(t in j.remove(e,"fxshow"),d)T.style(e,t,d[t])}),d)s=Kt(p?f[i]:0,i,u),i in f||(f[i]=s.start,p&&(s.end=s.start,s.start="width"===i||"height"===i?1:0))}],prefilter:function(t,e){e?Zt.prefilters.unshift(t):Zt.prefilters.push(t)}}),T.speed=function(t,e,n){var i=t&&"object"==typeof t?T.extend({},t):{complete:n||!n&&e||T.isFunction(t)&&t,duration:t,easing:n&&e||e&&!T.isFunction(e)&&e};return i.duration=T.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in T.fx.speeds?T.fx.speeds[i.duration]:T.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){T.isFunction(i.old)&&i.old.call(this),i.queue&&T.dequeue(this,i.queue)},i},T.fn.extend({fadeTo:function(t,e,n,i){return this.filter(z).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(e,t,n,i){function o(){var t=Zt(this,T.extend({},e),s);(r||j.get(this,"finish"))&&t.stop(!0)}var r=T.isEmptyObject(e),s=T.speed(t,n,i);return o.finish=o,r||!1===s.queue?this.each(o):this.queue(s.queue,o)},stop:function(o,t,r){function s(t){var e=t.stop;delete t.stop,e(r)}return"string"!=typeof o&&(r=t,t=o,o=void 0),t&&!1!==o&&this.queue(o||"fx",[]),this.each(function(){var t=!0,e=null!=o&&o+"queueHooks",n=T.timers,i=j.get(this);if(e)i[e]&&i[e].stop&&s(i[e]);else for(e in i)i[e]&&i[e].stop&&Qt.test(e)&&s(i[e]);for(e=n.length;e--;)n[e].elem!==this||null!=o&&n[e].queue!==o||(n[e].anim.stop(r),t=!1,n.splice(e,1));!t&&r||T.dequeue(this,o)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var t,e=j.get(this),n=e[s+"queue"],i=e[s+"queueHooks"],o=T.timers,r=n?n.length:0;for(e.finish=!0,T.queue(this,s,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===s&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<r;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete e.finish})}}),T.each(["toggle","show","hide"],function(t,i){var o=T.fn[i];T.fn[i]=function(t,e,n){return null==t||"boolean"==typeof t?o.apply(this,arguments):this.animate(Jt(i,!0),t,e,n)}}),T.each({slideDown:Jt("show"),slideUp:Jt("hide"),slideToggle:Jt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,i){T.fn[t]=function(t,e,n){return this.animate(i,t,e,n)}}),T.timers=[],T.fx.tick=function(){var t,e=0,n=T.timers;for(zt=T.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||T.fx.stop(),zt=void 0},T.fx.timer=function(t){T.timers.push(t),t()?T.fx.start():T.timers.pop()},T.fx.interval=13,T.fx.start=function(){Bt=Bt||S.setInterval(T.fx.tick,T.fx.interval)},T.fx.stop=function(){S.clearInterval(Bt),Bt=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(i,t){return i=T.fx&&T.fx.speeds[i]||i,t=t||"fx",this.queue(t,function(t,e){var n=S.setTimeout(t,i);e.stop=function(){S.clearTimeout(n)}})},Ut=C.createElement("input"),Vt=C.createElement("select"),Gt=Vt.appendChild(C.createElement("option")),Ut.type="checkbox",g.checkOn=""!==Ut.value,g.optSelected=Gt.selected,Vt.disabled=!0,g.optDisabled=!Gt.disabled,(Ut=C.createElement("input")).value="t",Ut.type="radio",g.radioValue="t"===Ut.value;var te,ee=T.expr.attrHandle;T.fn.extend({attr:function(t,e){return I(this,T.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){T.removeAttr(this,t)})}}),T.extend({attr:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?T.prop(t,e,n):(1===r&&T.isXMLDoc(t)||(e=e.toLowerCase(),o=T.attrHooks[e]||(T.expr.match.bool.test(e)?te:void 0)),void 0!==n?null===n?void T.removeAttr(t,e):o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:(t.setAttribute(e,n+""),n):o&&"get"in o&&null!==(i=o.get(t,e))?i:null==(i=T.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&T.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i,o=0,r=e&&e.match(N);if(r&&1===t.nodeType)for(;n=r[o++];)i=T.propFix[n]||n,T.expr.match.bool.test(n)&&(t[i]=!1),t.removeAttribute(n)}}),te={set:function(t,e,n){return!1===e?T.removeAttr(t,n):t.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),function(t,e){var r=ee[e]||T.find.attr;ee[e]=function(t,e,n){var i,o;return n||(o=ee[e],ee[e]=i,i=null!=r(t,e,n)?e.toLowerCase():null,ee[e]=o),i}});var ne=/^(?:input|select|textarea|button)$/i,ie=/^(?:a|area)$/i;T.fn.extend({prop:function(t,e){return I(this,T.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[T.propFix[t]||t]})}}),T.extend({prop:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&T.isXMLDoc(t)||(e=T.propFix[e]||e,o=T.propHooks[e]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:t[e]=n:o&&"get"in o&&null!==(i=o.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=T.find.attr(t,"tabindex");return e?parseInt(e,10):ne.test(t.nodeName)||ie.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(T.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){T.propFix[this.toLowerCase()]=this});var oe=/[\t\r\n\f]/g;function re(t){return t.getAttribute&&t.getAttribute("class")||""}T.fn.extend({addClass:function(e){var t,n,i,o,r,s,a,l=0;if(T.isFunction(e))return this.each(function(t){T(this).addClass(e.call(this,t,re(this)))});if("string"==typeof e&&e)for(t=e.match(N)||[];n=this[l++];)if(o=re(n),i=1===n.nodeType&&(" "+o+" ").replace(oe," ")){for(s=0;r=t[s++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");o!==(a=T.trim(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,o,r,s,a,l=0;if(T.isFunction(e))return this.each(function(t){T(this).removeClass(e.call(this,t,re(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(N)||[];n=this[l++];)if(o=re(n),i=1===n.nodeType&&(" "+o+" ").replace(oe," ")){for(s=0;r=t[s++];)for(;-1<i.indexOf(" "+r+" ");)i=i.replace(" "+r+" "," ");o!==(a=T.trim(i))&&n.setAttribute("class",a)}return this},toggleClass:function(o,e){var r=typeof o;return"boolean"==typeof e&&"string"==r?e?this.addClass(o):this.removeClass(o):T.isFunction(o)?this.each(function(t){T(this).toggleClass(o.call(this,t,re(this),e),e)}):this.each(function(){var t,e,n,i;if("string"==r)for(e=0,n=T(this),i=o.match(N)||[];t=i[e++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else void 0!==o&&"boolean"!=r||((t=re(this))&&j.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",!t&&!1!==o&&j.get(this,"__className__")||""))})},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&-1<(" "+re(n)+" ").replace(oe," ").indexOf(e))return!0;return!1}});var se=/\r/g,ae=/[\x20\t\r\n\f]+/g;T.fn.extend({val:function(n){var i,t,o,e=this[0];return arguments.length?(o=T.isFunction(n),this.each(function(t){var e;1===this.nodeType&&(null==(e=o?n.call(this,t,T(this).val()):n)?e="":"number"==typeof e?e+="":T.isArray(e)&&(e=T.map(e,function(t){return null==t?"":t+""})),(i=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,e,"value")||(this.value=e))})):e?(i=T.valHooks[e.type]||T.valHooks[e.nodeName.toLowerCase()])&&"get"in i&&void 0!==(t=i.get(e,"value"))?t:"string"==typeof(t=e.value)?t.replace(se,""):null==t?"":t:void 0}}),T.extend({valHooks:{option:{get:function(t){var e=T.find.attr(t,"value");return null!=e?e:T.trim(T.text(t)).replace(ae," ")}},select:{get:function(t){for(var e,n,i=t.options,o=t.selectedIndex,r="select-one"===t.type||o<0,s=r?null:[],a=r?o+1:i.length,l=o<0?a:r?o:0;l<a;l++)if(((n=i[l]).selected||l===o)&&(g.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!T.nodeName(n.parentNode,"optgroup"))){if(e=T(n).val(),r)return e;s.push(e)}return s},set:function(t,e){for(var n,i,o=t.options,r=T.makeArray(e),s=o.length;s--;)((i=o[s]).selected=-1<T.inArray(T.valHooks.option.get(i),r))&&(n=!0);return n||(t.selectedIndex=-1),r}}}}),T.each(["radio","checkbox"],function(){T.valHooks[this]={set:function(t,e){return T.isArray(e)?t.checked=-1<T.inArray(T(t).val(),e):void 0}},g.checkOn||(T.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var le=/^(?:focusinfocus|focusoutblur)$/;T.extend(T.event,{trigger:function(t,e,n,i){var o,r,s,a,l,c,u,d=[n||C],h=f.call(t,"type")?t.type:t,p=f.call(t,"namespace")?t.namespace.split("."):[];if(r=s=n=n||C,3!==n.nodeType&&8!==n.nodeType&&!le.test(h+T.event.triggered)&&(-1<h.indexOf(".")&&(h=(p=h.split(".")).shift(),p.sort()),l=h.indexOf(":")<0&&"on"+h,(t=t[T.expando]?t:new T.Event(h,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:T.makeArray(e,[t]),u=T.event.special[h]||{},i||!u.trigger||!1!==u.trigger.apply(n,e))){if(!i&&!u.noBubble&&!T.isWindow(n)){for(a=u.delegateType||h,le.test(a+h)||(r=r.parentNode);r;r=r.parentNode)d.push(r),s=r;s===(n.ownerDocument||C)&&d.push(s.defaultView||s.parentWindow||S)}for(o=0;(r=d[o++])&&!t.isPropagationStopped();)t.type=1<o?a:u.bindType||h,(c=(j.get(r,"events")||{})[t.type]&&j.get(r,"handle"))&&c.apply(r,e),(c=l&&r[l])&&c.apply&&M(r)&&(t.result=c.apply(r,e),!1===t.result&&t.preventDefault());return t.type=h,i||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(d.pop(),e)||!M(n)||l&&T.isFunction(n[h])&&!T.isWindow(n)&&((s=n[l])&&(n[l]=null),n[T.event.triggered=h](),T.event.triggered=void 0,s&&(n[l]=s)),t.result}},simulate:function(t,e,n){var i=T.extend(new T.Event,n,{type:t,isSimulated:!0});T.event.trigger(i,null,e)}}),T.fn.extend({trigger:function(t,e){return this.each(function(){T.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?T.event.trigger(t,e,n,!0):void 0}}),T.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,n){T.fn[n]=function(t,e){return 0<arguments.length?this.on(n,null,t,e):this.trigger(n)}}),T.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),g.focusin="onfocusin"in S,g.focusin||T.each({focus:"focusin",blur:"focusout"},function(n,i){function o(t){T.event.simulate(i,t.target,T.event.fix(t))}T.event.special[i]={setup:function(){var t=this.ownerDocument||this,e=j.access(t,i);e||t.addEventListener(n,o,!0),j.access(t,i,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this,e=j.access(t,i)-1;e?j.access(t,i,e):(t.removeEventListener(n,o,!0),j.remove(t,i))}}});var ce=S.location,ue=T.now(),de=/\?/;T.parseJSON=function(t){return JSON.parse(t+"")},T.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new S.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||T.error("Invalid XML: "+t),e};var he=/#.*$/,pe=/([?&])_=[^&]*/,fe=/^(.*?):[ \t]*([^\r\n]*)$/gm,me=/^(?:GET|HEAD)$/,ge=/^\/\//,ve={},ye={},be="*/".concat("*"),we=C.createElement("a");function xe(r){return function(t,e){"string"!=typeof t&&(e=t,t="*");var n,i=0,o=t.toLowerCase().match(N)||[];if(T.isFunction(e))for(;n=o[i++];)"+"===n[0]?(n=n.slice(1)||"*",(r[n]=r[n]||[]).unshift(e)):(r[n]=r[n]||[]).push(e)}}function ke(e,o,r,s){var a={},l=e===ye;function c(t){var i;return a[t]=!0,T.each(e[t]||[],function(t,e){var n=e(o,r,s);return"string"!=typeof n||l||a[n]?l?!(i=n):void 0:(o.dataTypes.unshift(n),c(n),!1)}),i}return c(o.dataTypes[0])||!a["*"]&&c("*")}function $e(t,e){var n,i,o=T.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((o[n]?t:i=i||{})[n]=e[n]);return i&&T.extend(!0,t,i),t}we.href=ce.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ce.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ce.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":be,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":T.parseJSON,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?$e($e(t,T.ajaxSettings),e):$e(T.ajaxSettings,t)},ajaxPrefilter:xe(ve),ajaxTransport:xe(ye),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var u,d,h,n,p,i,f,o,m=T.ajaxSetup({},e),g=m.context||m,v=m.context&&(g.nodeType||g.jquery)?T(g):T.event,y=T.Deferred(),b=T.Callbacks("once memory"),w=m.statusCode||{},r={},s={},x=0,a="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(2===x){if(!n)for(n={};e=fe.exec(h);)n[e[1].toLowerCase()]=e[2];e=n[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===x?h:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return x||(t=s[n]=s[n]||t,r[t]=e),this},overrideMimeType:function(t){return x||(m.mimeType=t),this},statusCode:function(t){var e;if(t)if(x<2)for(e in t)w[e]=[w[e],t[e]];else k.always(t[k.status]);return this},abort:function(t){var e=t||a;return u&&u.abort(e),l(0,e),this}};if(y.promise(k).complete=b.add,k.success=k.done,k.error=k.fail,m.url=((t||m.url||ce.href)+"").replace(he,"").replace(ge,ce.protocol+"//"),m.type=e.method||e.type||m.method||m.type,m.dataTypes=T.trim(m.dataType||"*").toLowerCase().match(N)||[""],null==m.crossDomain){i=C.createElement("a");try{i.href=m.url,i.href=i.href,m.crossDomain=we.protocol+"//"+we.host!=i.protocol+"//"+i.host}catch(t){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=T.param(m.data,m.traditional)),ke(ve,m,e,k),2===x)return k;for(o in(f=T.event&&m.global)&&0==T.active++&&T.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!me.test(m.type),d=m.url,m.hasContent||(m.data&&(d=m.url+=(de.test(d)?"&":"?")+m.data,delete m.data),!1===m.cache&&(m.url=pe.test(d)?d.replace(pe,"$1_="+ue++):d+(de.test(d)?"&":"?")+"_="+ue++)),m.ifModified&&(T.lastModified[d]&&k.setRequestHeader("If-Modified-Since",T.lastModified[d]),T.etag[d]&&k.setRequestHeader("If-None-Match",T.etag[d])),(m.data&&m.hasContent&&!1!==m.contentType||e.contentType)&&k.setRequestHeader("Content-Type",m.contentType),k.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+be+"; q=0.01":""):m.accepts["*"]),m.headers)k.setRequestHeader(o,m.headers[o]);if(m.beforeSend&&(!1===m.beforeSend.call(g,k,m)||2===x))return k.abort();for(o in a="abort",{success:1,error:1,complete:1})k[o](m[o]);if(u=ke(ye,m,e,k)){if(k.readyState=1,f&&v.trigger("ajaxSend",[k,m]),2===x)return k;m.async&&0<m.timeout&&(p=S.setTimeout(function(){k.abort("timeout")},m.timeout));try{x=1,u.send(r,l)}catch(t){if(!(x<2))throw t;l(-1,t)}}else l(-1,"No Transport");function l(t,e,n,i){var o,r,s,a,l,c=e;2!==x&&(x=2,p&&S.clearTimeout(p),u=void 0,h=i||"",k.readyState=0<t?4:0,o=200<=t&&t<300||304===t,n&&(a=function(t,e,n){for(var i,o,r,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||t.converters[o+" "+l[0]]){r=o;break}s=s||o}r=r||s}return r?(r!==l[0]&&l.unshift(r),n[r]):void 0}(m,k,n)),a=function(t,e,n,i){var o,r,s,a,l,c={},u=t.dataTypes.slice();if(u[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(r=u.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=c[l+" "+r]||c["* "+r]))for(o in c)if((a=o.split(" "))[1]===r&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[o]:!0!==c[o]&&(r=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}(m,a,k,o),o?(m.ifModified&&((l=k.getResponseHeader("Last-Modified"))&&(T.lastModified[d]=l),(l=k.getResponseHeader("etag"))&&(T.etag[d]=l)),204===t||"HEAD"===m.type?c="nocontent":304===t?c="notmodified":(c=a.state,r=a.data,o=!(s=a.error))):(s=c,!t&&c||(c="error",t<0&&(t=0))),k.status=t,k.statusText=(e||c)+"",o?y.resolveWith(g,[r,c,k]):y.rejectWith(g,[k,c,s]),k.statusCode(w),w=void 0,f&&v.trigger(o?"ajaxSuccess":"ajaxError",[k,m,o?r:s]),b.fireWith(g,[k,c]),f&&(v.trigger("ajaxComplete",[k,m]),--T.active||T.event.trigger("ajaxStop")))}return k},getJSON:function(t,e,n){return T.get(t,e,n,"json")},getScript:function(t,e){return T.get(t,void 0,e,"script")}}),T.each(["get","post"],function(t,o){T[o]=function(t,e,n,i){return T.isFunction(e)&&(i=i||n,n=e,e=void 0),T.ajax(T.extend({url:t,type:o,dataType:i,data:e,success:n},T.isPlainObject(t)&&t))}}),T._evalUrl=function(t){return T.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},T.fn.extend({wrapAll:function(e){var t;return T.isFunction(e)?this.each(function(t){T(this).wrapAll(e.call(this,t))}):(this[0]&&(t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(n){return T.isFunction(n)?this.each(function(t){T(this).wrapInner(n.call(this,t))}):this.each(function(){var t=T(this),e=t.contents();e.length?e.wrapAll(n):t.append(n)})},wrap:function(e){var n=T.isFunction(e);return this.each(function(t){T(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(){return this.parent().each(function(){T.nodeName(this,"body")||T(this).replaceWith(this.childNodes)}).end()}}),T.expr.filters.hidden=function(t){return!T.expr.filters.visible(t)},T.expr.filters.visible=function(t){return 0<t.offsetWidth||0<t.offsetHeight||0<t.getClientRects().length};var Se=/%20/g,Ce=/\[\]$/,Te=/\r?\n/g,_e=/^(?:submit|button|image|reset|file)$/i,Ee=/^(?:input|select|textarea|keygen)/i;function Ae(n,t,i,o){var e;if(T.isArray(t))T.each(t,function(t,e){i||Ce.test(n)?o(n,e):Ae(n+"["+("object"==typeof e&&null!=e?t:"")+"]",e,i,o)});else if(i||"object"!==T.type(t))o(n,t);else for(e in t)Ae(n+"["+e+"]",t[e],i,o)}T.param=function(t,e){function n(t,e){e=T.isFunction(e)?e():null==e?"":e,o[o.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)}var i,o=[];if(void 0===e&&(e=T.ajaxSettings&&T.ajaxSettings.traditional),T.isArray(t)||t.jquery&&!T.isPlainObject(t))T.each(t,function(){n(this.name,this.value)});else for(i in t)Ae(i,t[i],e,n);return o.join("&").replace(Se,"+")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=T.prop(this,"elements");return t?T.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!T(this).is(":disabled")&&Ee.test(this.nodeName)&&!_e.test(t)&&(this.checked||!Y.test(t))}).map(function(t,e){var n=T(this).val();return null==n?null:T.isArray(n)?T.map(n,function(t){return{name:e.name,value:t.replace(Te,"\r\n")}}):{name:e.name,value:n.replace(Te,"\r\n")}}).get()}}),T.ajaxSettings.xhr=function(){try{return new S.XMLHttpRequest}catch(t){}};var De={0:200,1223:204},Le=T.ajaxSettings.xhr();g.cors=!!Le&&"withCredentials"in Le,g.ajax=Le=!!Le,T.ajaxTransport(function(o){var r,s;return g.cors||Le&&!o.crossDomain?{send:function(t,e){var n,i=o.xhr();if(i.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(n in o.xhrFields)i[n]=o.xhrFields[n];for(n in o.mimeType&&i.overrideMimeType&&i.overrideMimeType(o.mimeType),o.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)i.setRequestHeader(n,t[n]);r=function(t){return function(){r&&(r=s=i.onload=i.onerror=i.onabort=i.onreadystatechange=null,"abort"===t?i.abort():"error"===t?"number"!=typeof i.status?e(0,"error"):e(i.status,i.statusText):e(De[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=r(),s=i.onerror=r("error"),void 0!==i.onabort?i.onabort=s:i.onreadystatechange=function(){4===i.readyState&&S.setTimeout(function(){r&&s()})},r=r("abort");try{i.send(o.hasContent&&o.data||null)}catch(t){if(r)throw t}},abort:function(){r&&r()}}:void 0}),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return T.globalEval(t),t}}}),T.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),T.ajaxTransport("script",function(n){var i,o;if(n.crossDomain)return{send:function(t,e){i=T("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",o=function(t){i.remove(),o=null,t&&e("error"===t.type?404:200,t.type)}),C.head.appendChild(i[0])},abort:function(){o&&o()}}});var Re=[],Ne=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Re.pop()||T.expando+"_"+ue++;return this[t]=!0,t}}),T.ajaxPrefilter("json jsonp",function(t,e,n){var i,o,r,s=!1!==t.jsonp&&(Ne.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ne.test(t.data)&&"data");return s||"jsonp"===t.dataTypes[0]?(i=t.jsonpCallback=T.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Ne,"$1"+i):!1!==t.jsonp&&(t.url+=(de.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return r||T.error(i+" was not called"),r[0]},t.dataTypes[0]="json",o=S[i],S[i]=function(){r=arguments},n.always(function(){void 0===o?T(S).removeProp(i):S[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,Re.push(i)),r&&T.isFunction(o)&&o(r[0]),r=o=void 0}),"script"):void 0}),T.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||C;var i=w.exec(t),o=!n&&[];return i?[e.createElement(i[1])]:(i=nt([t],e,o),o&&o.length&&T(o).remove(),T.merge([],i.childNodes))};var We=T.fn.load;function Me(t){return T.isWindow(t)?t:9===t.nodeType&&t.defaultView}T.fn.load=function(t,e,n){if("string"!=typeof t&&We)return We.apply(this,arguments);var i,o,r,s=this,a=t.indexOf(" ");return-1<a&&(i=T.trim(t.slice(a)),t=t.slice(0,a)),T.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(o="POST"),0<s.length&&T.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done(function(t){r=arguments,s.html(i?T("<div>").append(T.parseHTML(t)).find(i):t)}).always(n&&function(t,e){s.each(function(){n.apply(this,r||[t.responseText,e,t])})}),this},T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){T.fn[e]=function(t){return this.on(e,t)}}),T.expr.filters.animated=function(e){return T.grep(T.timers,function(t){return e===t.elem}).length},T.offset={setOffset:function(t,e,n){var i,o,r,s,a,l,c=T.css(t,"position"),u=T(t),d={};"static"===c&&(t.style.position="relative"),a=u.offset(),r=T.css(t,"top"),l=T.css(t,"left"),o=("absolute"===c||"fixed"===c)&&-1<(r+l).indexOf("auto")?(s=(i=u.position()).top,i.left):(s=parseFloat(r)||0,parseFloat(l)||0),T.isFunction(e)&&(e=e.call(t,n,T.extend({},a))),null!=e.top&&(d.top=e.top-a.top+s),null!=e.left&&(d.left=e.left-a.left+o),"using"in e?e.using.call(t,d):u.css(d)}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){T.offset.setOffset(this,e,t)});var t,n,i=this[0],o={top:0,left:0}
1,r=i&&i.ownerDocument;return r?(t=r.documentElement,T.contains(t,i)?(o=i.getBoundingClientRect(),n=Me(r),{top:o.top+n.pageYOffset-t.clientTop,left:o.left+n.pageXOffset-t.clientLeft}):o):void 0},position:function(){if(this[0]){var t,e,n=this[0],i={top:0,left:0};return"fixed"===T.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),T.nodeName(t[0],"html")||(i=t.offset()),i.top+=T.css(t[0],"borderTopWidth",!0),i.left+=T.css(t[0],"borderLeftWidth",!0)),{top:e.top-i.top-T.css(n,"marginTop",!0),left:e.left-i.left-T.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===T.css(t,"position");)t=t.offsetParent;return t||At})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,o){var r="pageYOffset"===o;T.fn[e]=function(t){return I(this,function(t,e,n){var i=Me(t);return void 0===n?i?i[o]:t[e]:void(i?i.scrollTo(r?i.pageXOffset:n,r?n:i.pageYOffset):t[e]=n)},e,t,arguments.length)}}),T.each(["top","left"],function(t,n){T.cssHooks[n]=Lt(g.pixelPosition,function(t,e){return e?(e=Dt(t,n),_t.test(e)?T(t).position()[n]+"px":e):void 0})}),T.each({Height:"height",Width:"width"},function(r,s){T.each({padding:"inner"+r,content:s,"":"outer"+r},function(i,t){T.fn[t]=function(t,e){var n=arguments.length&&(i||"boolean"!=typeof t),o=i||(!0===t||!0===e?"margin":"border");return I(this,function(t,e,n){var i;return T.isWindow(t)?t.document.documentElement["client"+r]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+r],i["scroll"+r],t.body["offset"+r],i["offset"+r],i["client"+r])):void 0===n?T.css(t,e,o):T.style(t,e,n,o)},s,n?t:void 0,n,null)}})}),T.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},size:function(){return this.length}}),T.fn.andSelf=T.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return T});var Ie=S.jQuery,He=S.$;return T.noConflict=function(t){return S.$===T&&(S.$=He),t&&S.jQuery===T&&(S.jQuery=Ie),T},t||(S.jQuery=S.$=T),T}),function(c){"use strict";function i(t,e){if(!(this instanceof i)){var n=new i(t,e);return n.open(),n}this.id=i.id++,this.setup(t,e),this.chainCallbacks(i._callbackChain)}if(void 0!==c){var o=[],r=function(e){return o=c.grep(o,function(t){return t!==e&&0<t.$instance.closest("body").length})},n={keyup:"onKeyUp",resize:"onResize"},s=function(t){c.each(i.opened().reverse(),function(){return t.isDefaultPrevented()||!1!==this[n[t.type]](t)?void 0:(t.preventDefault(),t.stopPropagation(),!1)})},a=function(t){if(t!==i._globalHandlerInstalled){i._globalHandlerInstalled=t;var e=c.map(n,function(t,e){return e+"."+i.prototype.namespace}).join(" ");c(window)[t?"on":"off"](e,s)}};i.prototype={constructor:i,namespace:"featherlight",targetAttr:"data-featherlight",variant:null,resetCss:!1,background:null,openTrigger:"click",closeTrigger:"click",filter:null,root:"body",openSpeed:250,closeSpeed:250,closeOnClick:"background",closeOnEsc:!0,closeIcon:"&#10005;",loading:"",persist:!1,otherClose:null,beforeOpen:c.noop,beforeContent:c.noop,beforeClose:c.noop,afterOpen:c.noop,afterContent:c.noop,afterClose:c.noop,onKeyUp:c.noop,onResize:c.noop,type:null,contentFilters:["jquery","image","html","ajax","iframe","text"],setup:function(t,e){"object"!=typeof t||t instanceof c!=0||e||(e=t,t=void 0);var n=c.extend(this,e,{target:t}),i=n.resetCss?n.namespace+"-reset":n.namespace,o=c(n.background||['<div class="'+i+"-loading "+i+'">','<div class="'+i+'-content">','<span class="'+i+"-close-icon "+n.namespace+'-close">',n.closeIcon,"</span>",'<div class="'+n.namespace+'-inner">'+n.loading+"</div>","</div>","</div>"].join("")),r="."+n.namespace+"-close"+(n.otherClose?","+n.otherClose:"");return n.$instance=o.clone().addClass(n.variant),n.$instance.on(n.closeTrigger+"."+n.namespace,function(t){var e=c(t.target);("background"===n.closeOnClick&&e.is("."+n.namespace)||"anywhere"===n.closeOnClick||e.closest(r).length)&&(n.close(t),t.preventDefault())}),this},getContent:function(){if(!1!==this.persist&&this.$content)return this.$content;function t(t){return e.$currentTarget&&e.$currentTarget.attr(t)}var e=this,n=this.constructor.contentFilters,i=t(e.targetAttr),o=e.target||i||"",r=n[e.type];if(!r&&o in n&&(r=n[o],o=e.target&&i),o=o||t("href")||"",!r)for(var s in n)e[s]&&(r=n[s],o=e[s]);if(!r){var a=o;if(o=null,c.each(e.contentFilters,function(){return(r=n[this]).test&&(o=r.test(a)),!o&&r.regex&&a.match&&a.match(r.regex)&&(o=a),!o}),!o)return"console"in window&&window.console.error("Featherlight: n
1o content filter found "+(a?' for "'+a+'"':" (no target specified)")),!1}return r.process.call(e,o)},setContent:function(t){var e=this;return(t.is("iframe")||0<c("iframe",t).length)&&e.$instance.addClass(e.namespace+"-iframe"),e.$instance.removeClass(e.namespace+"-loading"),e.$instance.find("."+e.namespace+"-inner").not(t).slice(1).remove().end().replaceWith(c.contains(e.$instance[0],t[0])?"":t),e.$content=t.addClass(e.namespace+"-inner"),e},open:function(e){var n=this;if(n.$instance.hide().appendTo(n.root),!(e&&e.isDefaultPrevented()||!1===n.beforeOpen(e))){e&&e.preventDefault();var t=n.getContent();if(t)return o.push(n),a(!0),n.$instance.fadeIn(n.openSpeed),n.beforeContent(e),c.when(t).always(function(t){n.setContent(t),n.afterContent(e)}).then(n.$instance.promise()).done(function(){n.afterOpen(e)})}return n.$instance.detach(),c.Deferred().reject().promise()},close:function(t){var e=this,n=c.Deferred();return!1===e.beforeClose(t)?n.reject():(0===r(e).length&&a(!1),e.$instance.fadeOut(e.closeSpeed,function(){e.$instance.detach(),e.afterClose(t),n.resolve()})),n.promise()},resize:function(t,e){if(t&&e){this.$content.css("width","").css("height","");var n=Math.max(t/parseInt(this.$content.parent().css("width"),10),e/parseInt(this.$content.parent().css("height"),10));1<n&&this.$content.css("width",t/n+"px").css("height",e/n+"px")}},chainCallbacks:function(t){for(var e in t)this[e]=c.proxy(t[e],this,c.proxy(this[e],this))}},c.extend(i,{id:0,autoBind:"[data-featherlight]",defaults:i.prototype,contentFilters:{jquery:{regex:/^[#.]\w/,test:function(t){return t instanceof c&&t},process:function(t){return!1!==this.persist?c(t):c(t).clone(!0)}},image:{regex:/\.(png|jpg|jpeg|gif|tiff|bmp|svg)(\?\S*)?$/i,process:function(t){var e=c.Deferred(),n=new Image,i=c('<img src="'+t+'" alt="" class="'+this.namespace+'-image" />');return n.onload=function(){i.naturalWidth=n.width,i.naturalHeight=n.height,e.resolve(i)},n.onerror=function(){e.reject(i)},n.src=t,e.promise()}},html:{regex:/^\s*<[\w!][^<]*>/,process:function(t){return c(t)}},ajax:{regex:/./,process:function(t){var n=c.Deferred(),i=c("<div></div>").load(t,function(t,e){"error"!==e&&n.resolve(i.contents()),n.fail()});return n.promise()}},iframe:{process:function(t){var e=new c.Deferred,n=c("<iframe/>").hide().attr("src",t).css(function(t,e){var n={},i=new RegExp("^"+e+"([A-Z])(.*)");for(var o in t){var r=o.match(i);if(r)n[(r[1]+r[2].replace(/([A-Z])/g,"-$1")).toLowerCase()]=t[o]}return n}(this,"iframe")).on("load",function(){e.resolve(n.show())}).appendTo(this.$instance.find("."+this.namespace+"-content"));return e.promise()}},text:{process:function(t){return c("<div>",{text:t})}}},functionAttributes:["beforeOpen","afterOpen","beforeContent","afterContent","beforeClose","afterClose"],readElementConfig:function(t,e){var i=this,o=new RegExp("^data-"+e+"-(.*)"),r={};return t&&t.attributes&&c.each(t.attributes,function(){var t=this.name.match(o);if(t){var e=this.value,n=c.camelCase(t[1]);if(0<=c.inArray(n,i.functionAttributes))e=new Function(e);else try{e=c.parseJSON(e)}catch(t){}r[n]=e}}),r},extend:function(t,e){function n(){this.constructor=t}return n.prototype=this.prototype,t.prototype=new n,t.__super__=this.prototype,c.extend(t,this,e),t.defaults=t.prototype,t},attach:function(i,o,r){var s=this;"object"!=typeof o||o instanceof c!=0||r||(r=o,o=void 0);var a,t=(r=c.extend({},r)).namespace||s.defaults.namespace,l=c.extend({},s.defaults,s.readElementConfig(i[0],t),r);return i.on(l.openTrigger+"."+l.namespace,l.filter,function(t){var e=c.extend({$source:i,$currentTarget:c(this)},s.readElementConfig(i[0],l.namespace),s.readElementConfig(this,l.namespace),r),n=a||c(this).data("featherlight-persisted")||new s(o,e);"shared"===n.persist?a=n:!1!==n.persist&&c(this).data("featherlight-persisted",n),e.$currentTarget.blur(),n.open(t)}),i},current:function(){var t=this.opened();return t[t.length-1]||null},opened:function(){var e=this;return r(),c.grep(o,function(t){return t instanceof e})},close:function(t){var e=this.current();return e?e.close(t):void 0},_onReady:function(){var e=this;e.autoBind&&(c(e.autoBind).each(function(){e.attach(c(this))}),c(document).on("click",e.autoBind,function(t){t.isDefaultPrevented()||"featherlight"===t.namespace||(t.preventDefault(),e.attach(c(t.currentTarget)),c(t.target).trigger("click.featherlight"))}))}
1,_callbackChain:{onKeyUp:function(t,e){return 27===e.keyCode?(this.closeOnEsc&&c.featherlight.close(e),!1):t(e)},onResize:function(t,e){return this.resize(this.$content.naturalWidth,this.$content.naturalHeight),t(e)},afterContent:function(t,e){var n=t(e);return this.onResize(e),n}}}),c.featherlight=i,c.fn.featherlight=function(t,e){return i.attach(this,t,e)},c(document).ready(function(){i._onReady()})}else"console"in window&&window.console.info("Too much lightness, Featherlight needs jQuery.")}(jQuery),function(r){"use strict";function i(t,e){if(!(this instanceof i)){var n=new i(r.extend({$source:t,$currentTarget:t.first()},e));return n.open(),n}r.featherlight.apply(this,arguments),this.chainCallbacks(a)}function t(t){window.console&&window.console.warn&&window.console.warn("FeatherlightGallery: "+t)}if(void 0===r)return t("Too much lightness, Featherlight needs jQuery.");if(!r.featherlight)return t("Load the featherlight plugin before the gallery plugin");var e="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,n=r.event&&r.event.special.swipeleft&&r,o=window.Hammer&&function(t){var e=new window.Hammer.Manager(t[0]);return e.add(new window.Hammer.Swipe),e},s=e&&(n||o);e&&!s&&t("No compatible swipe library detected; one must be included before featherlightGallery for swipe motions to navigate the galleries.");var a={afterClose:function(t,e){var n=this;return n.$instance.off("next."+n.namespace+" previous."+n.namespace),n._swiper&&(n._swiper.off("swipeleft",n._swipeleft).off("swiperight",n._swiperight),n._swiper=null),t(e)},beforeOpen:function(t,e){var n=this;return n.$instance.on("next."+n.namespace+" previous."+n.namespace,function(t){var e="next"===t.type?1:-1;n.navigateTo(n.currentNavigation()+e)}),s?n._swiper=s(n.$instance).on("swipeleft",n._swipeleft=function(){n.$instance.trigger("next")}).on("swiperight",n._swiperight=function(){n.$instance.trigger("previous")}):n.$instance.find("."+n.namespace+"-content").append(n.createNavigation("previous")).append(n.createNavigation("next")),t(e)},beforeContent:function(t,e){var n=this.currentNavigation(),i=this.slides().length;return this.$instance.toggleClass(this.namespace+"-first-slide",0===n).toggleClass(this.namespace+"-last-slide",n===i-1),t(e)},onKeyUp:function(t,e){var n={37:"previous",39:"next"}[e.keyCode];return n?(this.$instance.trigger(n),!1):t(e)}};r.featherlight.extend(i,{autoBind:"[data-featherlight-gallery]"}),r.extend(i.prototype,{previousIcon:"&#9664;",nextIcon:"&#9654;",galleryFadeIn:100,galleryFadeOut:300,slides:function(){return this.filter?this.$source.find(this.filter):this.$source},images:function(){return t("images is deprecated, please use slides instead"),this.slides()},currentNavigation:function(){return this.slides().index(this.$currentTarget)},navigateTo:function(t){var e=this,n=e.slides(),i=n.length,o=e.$instance.find("."+e.namespace+"-inner");return t=(t%i+i)%i,e.$currentTarget=n.eq(t),e.beforeContent(),r.when(e.getContent(),o.fadeTo(e.galleryFadeOut,.2)).always(function(t){e.setContent(t),e.afterContent(),t.fadeTo(e.galleryFadeIn,1)})},createNavigation:function(t){var e=this;return r('<span title="'+t+'" class="'+this.namespace+"-"+t+'"><span>'+this[t+"Icon"]+"</span></span>").click(function(){r(this).trigger(t+"."+e.namespace)})}}),r.featherlightGallery=i,r.fn.featherlightGallery=function(t){return i.attach(this,t)},r(document).ready(function(){i._onReady()})}(jQuery),$.fn.values=function(r){var t=this.is(":input")?this:this.find(":input").get();return 0===arguments.length?(r={},$.each(t,function(){var t=/select|textarea/i.test(this.nodeName)||/text|hidden|password|checkbox|range|radio/i.test(this.type);this.name&&!this.disabled&&t&&(null==r[this.name]&&(r[this.name]=[]),val=$(this).val(),/checkbox/i.test(this.type)&&(this.checked||(val=null)),r[this.name].push(val))}),$.each(r,function(t,e){1==e.length&&(r[t]=e[0])}),r):($.each(t,function(){if(this.name&&void 0!==r[this.name]){var t=r[this.name],e=$(this);if("[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]),"checkbox"==this.type||"radio"==this.type){for(var n=e.val(),i=!1,o=0;o<t.length;o++)if(t[o]==n){i=!0;break}e.prop("checked",i)}else e.val(t[0])}}),this)},function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):jQuery&&!jQuery.fn.hoverIntent&&t(jQuery)}(function($){"use strict";function l(t){o=t.pageX,r=t.pageY}var o,r,s={interval:100,sensitivity:6,timeout:0},c=0,u=function(t,e,n,i){if(Math.sqrt((n.pX-o)*(n.pX-o)+(n.pY-r)*(n.pY-r))<i.sensitivity)return e.off(n.event,l),delete n.timeoutId,n.isActive=!0,t.pageX=o,t.pageY=r,delete n.pX,delete n.pY,i.over.apply(e[0],[t]);n.pX=o,n.pY=r,n.timeoutId=setTimeout(function(){u(t,e,n,i)},i.interval)};$.fn.hoverIntent=function(t,e,n){var i=c++,a=$.extend({},s);$.isPlainObject(t)?(a=$.extend(a,t),$.isFunction(a.out)||(a.out=a.over)):a=$.isFunction(e)?$.extend(a,{over:t,out:e,selector:n}):$.extend(a,{over:t,out:t,selector:e});function o(t){var o=$.extend({},t),r=$(this),e=r.data("hoverIntent");e||r.data("hoverIntent",e={});var s=e[i];
1s||(e[i]=s={id:i}),s.timeoutId&&(s.timeoutId=clearTimeout(s.timeoutId));var n=s.event="mousemove.hoverIntent.hoverIntent"+i;if("mouseenter"===t.type){if(s.isActive)return;s.pX=o.pageX,s.pY=o.pageY,r.off(n,l).on(n,l),s.timeoutId=setTimeout(function(){u(o,r,s,a)},a.interval)}else{if(!s.isActive)return;r.off(n,l),s.timeoutId=setTimeout(function(){var t,e,n,i;t=o,e=r,n=s,i=a.out,delete e.data("hoverIntent")[n.id],i.apply(e[0],[t])},a.timeout)}}return this.on({"mouseenter.hoverIntent":o,"mouseleave.hoverIntent":o},a.selector)}}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function($){return function(){$.ui=$.ui||{};var o,k,S=Math.max,C=Math.abs,T=Math.round,i=/left|center|right/,r=/top|center|bottom/,s=/[\+\-]\d+(\.[\d]+)?%?/,a=/^\w+/,l=/%$/,c=$.fn.position;function _(t,e,n){return[parseFloat(t[0])*(l.test(t[0])?e/100:1),parseFloat(t[1])*(l.test(t[1])?n/100:1)]}function E(t,e){return parseInt($.css(t,e),10)||0}$.position={scrollbarWidth:function(){if(void 0!==o)return o;var t,e,n=$("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),i=n.children()[0];return $("body").append(n),t=i.offsetWidth,n.css("overflow","scroll"),t===(e=i.offsetWidth)&&(e=n[0].clientWidth),n.remove(),o=t-e},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),n=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),i="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&t.height<t.element[0].scrollHeight?$.position.scrollbarWidth():0,height:i?$.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=$(t||window),n=$.isWindow(e[0]),i=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:n,isDocument:i,offset:e.offset()||{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:n||i?e.width():e.outerWidth(),height:n||i?e.height():e.outerHeight()}}},$.fn.position=function(d){if(!d||!d.of)return c.apply(this,arguments);d=$.extend({},d);var h,p,f,m,g,t,e,n,v=$(d.of),y=$.position.getWithinInfo(d.within),b=$.position.getScrollInfo(y),w=(d.collision||"flip").split(" "),x={};return t=9===(n=(e=v)[0]).nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:$.isWindow(n)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:n.preventDefault?{width:0,height:0,offset:{top:n.pageY,left:n.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()},v[0].preventDefault&&(d.at="left top"),p=t.width,f=t.height,m=t.offset,g=$.extend({},m),$.each(["my","at"],function(){var t,e,n=(d[this]||"").split(" ");1===n.length&&(n=i.test(n[0])?n.concat(["center"]):r.test(n[0])?["center"].concat(n):["center","center"]),n[0]=i.test(n[0])?n[0]:"center",n[1]=r.test(n[1])?n[1]:"center",t=s.exec(n[0]),e=s.exec(n[1]),x[this]=[t?t[0]:0,e?e[0]:0],d[this]=[a.exec(n[0])[0],a.exec(n[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===d.at[0]?g.left+=p:"center"===d.at[0]&&(g.left+=p/2),"bottom"===d.at[1]?g.top+=f:"center"===d.at[1]&&(g.top+=f/2),h=_(x.at,p,f),g.left+=h[0],g.top+=h[1],this.each(function(){var n,t,s=$(this),a=s.outerWidth(),l=s.outerHeight(),e=E(this,"marginLeft"),i=E(this,"marginTop"),o=a+e+E(this,"marginRight")+b.width,r=l+i+E(this,"marginBottom")+b.height,c=$.extend({},g),u=_(x.my,s.outerWidth(),s.outerHeight());"right"===d.my[0]?c.left-=a:"center"===d.my[0]&&(c.left-=a/2),"bottom"===d.my[1]?c.top-=l:"center"===d.my[1]&&(c.top-=l/2),c.left+=u[0],c.top+=u[1],k||(c.left=T(c.left),c.top=T(c.top)),n={marginLeft:e,marginTop:i},$.each(["left","top"],function(t,e){$.ui.position[w[t]]&&$.ui.position[w[t]][e](c,{targetWidth:p,targetHeight:f,elemWidth:a,elemHeight:l,collisionPosition:n,collisionWidth:o,collisionHeight:r,offset:[h[0]+u[0],h[1]+u[1]],my:d.my,at:d.at,within:y,elem:s})}),d.using&&(t=function(t){var e=m.left-c.left,n=e+p-a,i=m.top-c.top,o=i+f-l,r={target:{element:v,left:m.left,top:m.top,width:p,height:f},element:{element:s,left:c.left,top:c.top,width:a,height:l},horizontal:n<0?"left":0<e?"right":"center",vertical:o<0?"top":0<i?"bottom":"middle"};p<a&&C(e+n)<p&&(r.horizontal="center"),f<l&&C(i+o)<f&&(r.vertical="middle"),S(C(e),C(n))>S(C(i),C(o))?r.important="horizontal":r.important="vertical",d.using.call(this,t,r)}),s.offset($.extend(c,{using:t}))})},$.ui.position={fit:{left:function(t,e){var n,i=e.within,o=i.isWindow?i.scrollLeft:i.offset.left,r=i.width,s=t.left-e.collisionPosition.marginLeft,a=o-s,l=s+e.collisionWidth-r-o;e.collisionWidth>r?0<a&&l<=0?(n=t.left+a+e.collisionWidth-r-o,t.left+=a-n):t.left=!(0<l&&a<=0)&&l<a?o+r-e.collisionWidth:o:0<a?t.left+=a:0<l?t.left-=l:t.left=S(t.left-s,t.left)},top:function(t,e){var n,i=e.within,o=i.isWindow?i.scrollTop:i.offset.top,r=e.within.height,s=t.top-e.collisionPosition.marginTop,a=o-s,l=s+e.collisionHeight-r-o;e.collisionHeight>r?0<a&&l<=0?(n=t.top+a+e.collisionHeight-r-o,t.top+=a-n):t.top=!(0<l&&a<=0)&&l<a?o+r-e.collisionHeight:o:0<a?t.top+=a:0<l?t.top-=l:t.top=S(t.top-s,t.top)}},flip:{left:function(t,e){var n,i,o=e.within,r=o.offset.left+o.scrollLeft,s=o.width,a=o.isWindow?o.scrollLeft:o.offset.left,l=t.left-e.collisionPosition.marginLeft,c=l-a,u=l+e.collisionWidth-s-a,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,h="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,p=-2*e.offset[0];c<0?((n=t.left+d+h+p+e.collisionWidth-s-r)<0||n<C(c))&&(t.left+=d+h+p):0<u&&(0<(i=t.left-e.collisionPosition.marginLeft+d+h+p-a)||C(i)<u)&&(t.left+=d+h+p)},top:function(t,e){var n,i,o=e.within,r=o.offset.top+o.scrollTop,s=o.height,a=o.isWindow?o.scrollTop:o.offset.top,l=t.top-e.collisionPosition.marginTop,c=l-a,u=l+e.collisionHeight-s-a,d="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,h="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,p=-2*e.offset[1];c<0?((i=t.top+d+h+p+e.collisionHeight-s-r)<0||i<C(c))&&(t.top+=d+h+p):0<u&&(0<(n=t.top-e.collisionPosition.marginTop+d+h+p-a)||C(n)<u)&&(t.top+=d+h+p)}},flipfit:{left:function(){$.ui.position.flip.left.apply(this,arguments),$.ui.position.fit.left.apply(this,arguments)},top:function(){$.ui.position.flip.top.apply(this,arguments),$.ui.position.fit.top.apply(this,arguments)}}},function(){var t,e,n,i,o,r=document.getElementsByTagName("body")[0],s=document.createElement("div");
1for(o in t=document.createElement(r?"div":"body"),n={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},r&&$.extend(n,{position:"absolute",left:"-1000px",top:"-1000px"}),n)t.style[o]=n[o];t.appendChild(s),(e=r||document.documentElement).insertBefore(t,e.firstChild),s.style.cssText="position: absolute; left: 10.7432222px;",i=$(s).offset().left,k=10<i&&i<11,t.innerHTML="",e.removeChild(t)}()}(),$.ui.position}),function(a,n){"use strict";var t={bind:!!function(){}.bind,classList:"classList"in n.documentElement,rAF:!!(a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame)};function i(t){this.callback=t,this.ticking=!1}function o(t,e){var n;e=function t(e){if(arguments.length<=0)throw new Error("Missing arguments in extend function");var n,i,o,r=e||{};for(i=1;i<arguments.length;i++){var s=arguments[i]||{};for(n in s)"object"!=typeof r[n]||(o=r[n])&&void 0!==a&&(o===a||o.nodeType)?r[n]=r[n]||s[n]:r[n]=t(r[n],s[n])}return r}(e,o.options),this.lastKnownScrollY=0,this.elem=t,this.debouncer=new i(this.update.bind(this)),this.tolerance=(n=e.tolerance)===Object(n)?n:{down:n,up:n},this.classes=e.classes,this.offset=e.offset,this.scroller=e.scroller,this.initialised=!1,this.onPin=e.onPin,this.onUnpin=e.onUnpin,this.onTop=e.onTop,this.onNotTop=e.onNotTop}a.requestAnimationFrame=a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame,i.prototype={constructor:i,update:function(){this.callback&&this.callback(),this.ticking=!1},requestTick:function(){this.ticking||(requestAnimationFrame(this.rafCallback||(this.rafCallback=this.update.bind(this))),this.ticking=!0)},handleEvent:function(){this.requestTick()}},o.prototype={constructor:o,init:function(){if(o.cutsTheMustard)return this.elem.classList.add(this.classes.initial),setTimeout(this.attachEvent.bind(this),100),this},destroy:function(){var t=this.classes;this.initialised=!1,this.elem.classList.remove(t.unpinned,t.pinned,t.top,t.initial),this.scroller.removeEventListener("scroll",this.debouncer,!1)},attachEvent:function(){this.initialised||(this.lastKnownScrollY=this.getScrollY(),this.initialised=!0,this.scroller.addEventListener("scroll",this.debouncer,!1),this.debouncer.handleEvent())},unpin:function(){var t=this.elem.classList,e=this.classes;!t.contains(e.pinned)&&t.contains(e.unpinned)||(t.add(e.unpinned),t.remove(e.pinned),this.onUnpin&&this.onUnpin.call(this))},pin:function(){var t=this.elem.classList,e=this.classes;t.contains(e.unpinned)&&(t.remove(e.unpinned),t.add(e.pinned),this.onPin&&this.onPin.call(this))},top:function(){var t=this.elem.classList,e=this.classes;t.contains(e.top)||(t.add(e.top),t.remove(e.notTop),this.onTop&&this.onTop.call(this))},notTop:function(){var t=this.elem.classList,e=this.classes;t.contains(e.notTop)||(t.add(e.notTop),t.remove(e.top),this.onNotTop&&this.onNotTop.call(this))},getScrollY:function(){return void 0!==this.scroller.pageYOffset?this.scroller.pageYOffset:void 0!==this.scroller.scrollTop?this.scroller.scrollTop:(n.documentElement||n.body.parentNode||n.body).scrollTop},getViewportHeight:function(){return a.innerHeight||n.documentElement.clientHeight||n.body.clientHeight},getDocumentHeight:function(){var t=n.body,e=n.documentElement;return Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,t.clientHeight,e.clientHeight)},getElementHeight:function(t){return Math.max(t.scrollHeight,t.offsetHeight,t.clientHeight)},getScrollerHeight:function(){return this.scroller===a||this.scroller===n.body?this.getDocumentHeight():this.getElementHeight(this.scroller)},isOutOfBounds:function(t){var e=t<0,n=t+this.getViewportHeight()>this.getScrollerHeight();return e||n},toleranceExceeded:function(t,e){return Math.abs(t-this.lastKnownScrollY)>=this.tolerance[e]},shouldUnpin:function(t,e){var n=t>this.lastKnownScrollY,i=t>=this.offset;return n&&i&&e},shouldPin:function(t,e){var n=t<this.lastKnownScrollY,i=t<=this.offset;return n&&e||i},update:function(){var t=this.getScrollY(),e=t>this.lastKnownScrollY?"down":"up",n=this.toleranceExceeded(t,e);this.isOutOfBounds(t)||(t<=this.offset?this.top():this.notTop(),this.shouldUnpin(t,n)?this.unpin():this.shouldPin(t,n)&&this.pin(),this.lastKnownScrollY=t)}},o.options={tolerance:{up:0,down:0},offset:0,scroller:a,classes:{pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",initial:"headroom"}},o.cutsTheMustard=void 0!==t&&t.rAF&&t.bind&&t.classList,a.Headroom=o}(window,document),function(){var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return window.setTimeout(t,20)},a=function(n,t){function y(){var t,e;this.q=[],this.add=function(t){this.q.push(t)},this.call=function(){for(t=0,e=this.q.length;t<e;t++)this.q[t].call()}}function e(t,e){if(t.resizedAttached){if(t.resizedAttached)return void t.resizedAttached.add(e)}else t.resizedAttached=new y,t.resizedAttached.add(e);t.resizeSensor=document.createElement("div"),t.resizeSensor.className="resize-sensor";var n,i,o="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;",r="position: absolute; left: 0; top: 0; transition: 0s;";t.resizeSensor.style.cssText=o,t.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="'+o+'"><div style="'+r+'"></div></div><div class="resize-sensor-shrink" style="'+o+'"><div style="'+r+' width: 200%; height: 200%"></div></div>',t.appendChild(t.resizeSensor),"static"==(i="position",(n=t).currentStyle?n.currentStyle[i]:window.getComputedStyle?window.getComputedStyle(n,null).getPropertyValue(i):n.style[i])&&(t.style.position="relative");function s(){l.style.width=1e5+"px",l.style.height=1e5+"px",a.scrollLeft=1e5,a.scrollTop=1e5,c.scrollLeft=1e5,c.scrollTop=1e5}var a=t.resizeSensor.childNodes[0],l=a.childNodes[0],c=t.resizeSensor.childNodes[1];s();var u,d,h,p,f=!1,m=function(){t.resizedAttached&&(f&&(t.resizedAttached.call(),f=!1),b(m))};b(m);function g(){(h=t.offsetWidth)==u&&(p=t.offsetHeight)==d||(f=!0,u=h,d=p),s()}function v(t,e,n){t.attachEvent?t.attachEvent("on"+e,n):t.addEventListener(e,n)}v(a,"scroll",g),v(c,"scroll",g)}var i=Object.prototype.toString.call(n),o="[object Array]"===i||"[object NodeList]"===i||"[object HTMLCollection]"===i||"undefined"!=typeof jQuery&&n instanceof jQuery||"undefined"!=typeof Elements&&n instanceof Elements;if(o)for(var r=0,s=n.length;r<s;r++)e(n[r],t);else e(n,t);this.detach=function(){if(o)for(var t=0,e=n.length;t<e;t++)a.detach(n[t]);else a.detach(n)}};a.detach=function(t){t.resizeSensor&&(t.removeChild(t.resizeSensor),delete t.resizeSensor,delete t.resizedAttached)},"undefined"!=typeof module&&void 0!==module.exports?module.exports=a:window.ResizeSensor=a}(),function($){"use strict";$.fn.emulateTransitionEnd=function(t){var e=!1,n=this;$(this).one("bsTransitionEnd",function(){e=!0});return setTimeout(function(){e||$(n).trigger($.support.transition.end)},t),this},$(function(){$.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}(),$.support.transition&&($.event.special.bsTransitionEnd={bindType:$.supp
vendor: 4,101 bytes, line 1
1ort.transition.end,delegateType:$.support.transition.end,handle:function(t){if($(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),function($){"use strict";var i=["sanitize","whiteList","sanitizeFn"],s=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],t={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},a=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,l=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function f(t,e){var n=t.nodeName.toLowerCase();if(-1!==$.inArray(n,e))return-1===$.inArray(n,s)||Boolean(t.nodeValue.match(a)||t.nodeValue.match(l));for(var i=$(e).filter(function(t,e){return e instanceof RegExp}),o=0,r=i.length;o<r;o++)if(n.match(i[o]))return 1}function o(t,e,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);if(!document.implementation||!document.implementation.createHTMLDocument)return t;var i=document.implementation.createHTMLDocument("sanitization");i.body.innerHTML=t;for(var o=$.map(e,function(t,e){return e}),r=$(i.body).find("*"),s=0,a=r.length;s<a;s++){var l=r[s],c=l.nodeName.toLowerCase();if(-1!==$.inArray(c,o))for(var u=$.map(l.attributes,function(t){return t}),d=[].concat(e["*"]||[],e[c]||[]),h=0,p=u.length;h<p;h++)f(u[h],d)||l.removeAttribute(u[h].nodeName);else l.parentNode.removeChild(l)}return i.body.innerHTML}function m(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)}m.VERSION="3.4.1",m.TRANSITION_DURATION=150,m.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:t},m.prototype.init=function(t,e,n){if(this.enabled=!0,this.type=t,this.$element=$(e),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&$(document).find($.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 i=this.options.trigger.split(" "),o=i.length;o--;){var r=i[o];if("click"==r)this.$element.on("click."+this.type,this.options.selector,$.proxy(this.toggle,this));else if("manual"!=r){var s="hover"==r?"mouseenter":"focusin",a="hover"==r?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,$.proxy(this.enter,this)),this.$element.on(a+"."+this.type,this.options.selector,$.proxy(this.leave,this))}}this.options.selector?this._options=$.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},m.prototype.getDefaults=function(){return m.DEFAULTS},m.prototype.getOptions=function(t){var e=this.$element.data();for(var n in e)e.hasOwnProperty(n)&&-1!==$.inArray(n,i)&&delete e[n];return(t=$.extend({},this.getDefaults(),e,t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.sanitize&&(t.template=o(t.template,t.whiteList,t.sanitizeFn)),t},m.prototype.getDelegateOptions=function(){var n={},i=this.getDefaults();return this._options&&$.each(this._options,function(t,e){i[t]!=e&&(n[t]=e)}),n},m.prototype.enter=function(t){var e=t instanceof this.constructor?t:$(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),$(t.currentTarget).data("bs."+this.type,e)),t instanceof $.Event&&(e.inState["focusin"==t.type?"focu
1s":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},m.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},m.prototype.leave=function(t){var e=t instanceof this.constructor?t:$(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),$(t.currentTarget).data("bs."+this.type,e)),t instanceof $.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},m.prototype.show=function(){var t=$.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var e=$.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!e)return;var n=this,i=this.tip(),o=this.getUID(this.type);this.setContent(),i.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&i.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,a=s.test(r);a&&(r=r.replace(s,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?i.appendTo($(document).find(this.options.container)):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),c=i[0].offsetWidth,u=i[0].offsetHeight;if(a){var d=r,h=this.getPosition(this.$viewport);r="bottom"==r&&l.bottom+u>h.bottom?"top":"top"==r&&l.top-u<h.top?"bottom":"right"==r&&l.right+c>h.width?"left":"left"==r&&l.left-c<h.left?"right":r,i.removeClass(d).addClass(r)}var p=this.getCalculatedOffset(r,l,c,u);this.applyPlacement(p,r);var f=function(){var t=n.hoverState;n.$element.trigger("shown.bs."+n.type),n.hoverState=null,"out"==t&&n.leave(n)};$.support.transition&&this.$tip.hasClass("fade")?i.one("bsTransitionEnd",f).emulateTransitionEnd(m.TRANSITION_DURATION):f()}},m.prototype.applyPlacement=function(t,e){var n=this.tip(),i=n[0].offsetWidth,o=n[0].offsetHeight,r=parseInt(n.css("margin-top"),10),s=parseInt(n.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(s)&&(s=0),t.top+=r,t.left+=s,$.offset.setOffset(n[0],$.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},t),0),n.addClass("in");var a=n[0].offsetWidth,l=n[0].offsetHeight;"top"==e&&l!=o&&(t.top=t.top+o-l);var c=this.getViewportAdjustedDelta(e,t,a,l);c.left?t.left+=c.left:t.top+=c.top;var u=/top|bottom/.test(e),d=u?2*c.left-i+a:2*c.top-o+l,h=u?"offsetWidth":"offsetHeight";n.offset(t),this.replaceArrow(d,n[0][h],u)},m.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},m.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=o(e,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(e)):t.find(".tooltip-inner").text(e),t.removeClass("fade in top bottom left right")},m.prototype.hide=function(t){var e=this,n=$(this.$tip),i=$.Event("hide.bs."+this.type);function o(){"in"!=e.hoverState&&n.detach(),e.$element&&e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),t&&t()}if(this.$element.trigger(i),!i.isDefaultPrevented())return n.removeClass("in"),$.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",o).emulateTransitionEnd(m.TRANSITION_DURATION):o(),this.hoverState=null,this},m.prototype.fixTitle=function(){var t=this.$element;!t.attr("title")&&"string"==typeof t.attr("data-original-title")||t.attr("data-original-title",t.attr("title")||"").attr("title","")},m.prototype.hasContent=function(){return this.getTitle()},m.prototype.getPosition=function(t){var e=(t=t||this.$element)[0],n="BODY"==e.tagName,i=e.getBoundingClientRect();null==i.width&&(i=$.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var o=window.SVGElement&&e instanceof window.SVGElement,r=n?{top:0,left:0}:o?null:t.offset(),s={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},a=n?{width:$(window).width(),height:$(window).height()}:null;return $.extend({},i,s,a,r)},m.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},m.prototype.getViewportAdjustedDelta=function(t,e,n,i){var o={top:0,left:0};if(!this.$viewport)return o;var r=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-r-s.scroll,l=e.top+r-s.scroll+i;a<s.top?o.top=s.top-a:l>s.top+s.height&&(o.top=s.top+s.height-l)}else{var c=e.left-r,u=e.left+r+n;
vendor: 4,567 bytes, line 1
1c<s.left?o.left=s.left-c:u>s.right&&(o.left=s.left+s.width-u)}return o},m.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},m.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},m.prototype.tip=function(){if(!this.$tip&&(this.$tip=$(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},m.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},m.prototype.enable=function(){this.enabled=!0},m.prototype.disable=function(){this.enabled=!1},m.prototype.toggleEnabled=function(){this.enabled=!this.enabled},m.prototype.toggle=function(t){var e=this;t&&((e=$(t.currentTarget).data("bs."+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),$(t.currentTarget).data("bs."+this.type,e))),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},m.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})},m.prototype.sanitizeHtml=function(t){return o(t,this.options.whiteList,this.options.sanitizeFn)};var e=$.fn.tooltip;$.fn.tooltip=function(i){return this.each(function(){var t=$(this),e=t.data("bs.tooltip"),n="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.tooltip",e=new m(this,n)),"string"==typeof i&&e[i]())})},$.fn.tooltip.Constructor=m,$.fn.tooltip.noConflict=function(){return $.fn.tooltip=e,this}}(jQuery),function($){"use strict";function r(t,e){this.options=e,this.$body=$(document.body),this.$element=$(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,$.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))}function s(i,o){return this.each(function(){var t=$(this),e=t.data("bs.modal"),n=$.extend({},r.DEFAULTS,t.data(),"object"==typeof i&&i);e||t.data("bs.modal",e=new r(this,n)),"string"==typeof i?e[i](o):n.show&&e.show(o)})}r.VERSION="3.4.1",r.TRANSITION_DURATION=300,r.BACKDROP_TRANSITION_DURATION=150,r.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},r.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},r.prototype.show=function(n){var i=this,t=$.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(t),this.isShown||t.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"]',$.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(t){$(t.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var t=$.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),t&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var e=$.Event("shown.bs.modal",{relatedTarget:n});t?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(e)}).emulateTransitionEnd(r.TRANSITION_DURATION):i.$element.trigger("focus").trigger(e)}))},r.prototype.hide=function(t){t&&t.preventDefault(),t=$.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),$(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"),$.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",$.proxy(this.hideModal,this)).emulateTransitionEnd(r.TRANSITION_DURATION):this.hideModal())},r.prototype.enforceFocus=function(){$(document).off("focusin.bs.modal").on("focusin.bs.modal",$.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},r.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("key
1down.dismiss.bs.modal",$.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},r.prototype.resize=function(){this.isShown?$(window).on("resize.bs.modal",$.proxy(this.handleUpdate,this)):$(window).off("resize.bs.modal")},r.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},r.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},r.prototype.backdrop=function(t){var e=this,n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=$.support.transition&&n;if(this.$backdrop=$(document.createElement("div")).addClass("modal-backdrop "+n).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",$.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.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(r.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var o=function(){e.removeBackdrop(),t&&t()};$.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",o).emulateTransitionEnd(r.BACKDROP_TRANSITION_DURATION):o()}else t&&t()},r.prototype.handleUpdate=function(){this.adjustDialog()},r.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},r.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},r.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},r.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var o=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",t+o),$(this.fixedContent).each(function(t,e){var n=e.style.paddingRight,i=$(e).css("padding-right");$(e).data("padding-right",n).css("padding-right",parseFloat(i)+o+"px")}))},r.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),$(this.fixedContent).each(function(t,e){var n=$(e).data("padding-right");$(e).removeData("padding-right"),e.style.paddingRight=n||""})},r.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var t=$.fn.modal;$.fn.modal=s,$.fn.modal.Constructor=r,$.fn.modal.noConflict=function(){return $.fn.modal=t,this},$(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var e=$(this),n=e.attr("href"),i=e.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,""),o=$(document).find(i),r=o.data("bs.modal")?"toggle":$.extend({remote:!/#/.test(n)&&n},o.data(),e.data());e.is("a")&&t.preventDefault(),o.one("show.bs.modal",function(t){t.isDefaultPrevented()||o.one("hidden.bs.modal",function(){e.is(":visible")&&e.trigger("focus")})}),s.call(o,r,this)})}(jQuery),function($){"use strict";var s=function(t,e){this.$element=$(t),this.options=$.extend({},s.DEFAULTS,e),this.$trigger=$('[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()};function o(t){var e,n=t.attr("data-target")||(e=t.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"");return $(document).find(n)}function a(i){return this.each(function(){var t=$(this),e=t.data("bs.collapse"),n=$.extend({},s.DEFAULTS,t.data(),"object"==typeof i&&i);!e&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),e||t.data("bs.collapse",e=new s(this,n)),"string"==typeof i&&e[i]()})}s.VERSION="3.4.1",s.TRANSITION_DURATION=350,s.DEFAULTS={toggle:!0},s.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},s.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(t=e.data("bs.collapse"))&&t.transitioning)){var n=$.Event("show.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){e&&e.length&&(a.call(e,"hide"),t||e.data("bs.collapse",null));var i=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[i](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[i](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!$.support.transition)return o.call(this);var r=$.camelCase(["scroll",i].join("-"));this.$element.one("bsTransitionEnd",$.proxy(o,this)).emulateTransitionEnd(s.TRANSITION_DURATION)[i](this.$element[0][r])}}}},s.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=$.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.dimension();this.$element[e](this.$element[e]())[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 n=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!$.support.transition)return n.call(this);this.$element[e](0).one("bsTransitionEnd",$.proxy(n,this)).emulateTransitionEnd(s.TRANSITION_DURATION)}}},s.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},s.prototype.getParent=function(){return $(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each($.proxy(function(t,e){var n=$(e);this.addAriaAndCollapsedClass(o(n),n)},this)).end()},s.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var t=$.fn.collapse;$.fn.collapse=a,$.fn.collapse.Constructor=s,$.fn.collapse.noConflict=function(){return $.fn.collapse=t,this},$(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e=$
vendor: 1,488 bytes, line 1
1(this);e.attr("data-target")||t.preventDefault();var n=o(e),i=n.data("bs.collapse")?"toggle":e.data();a.call(n,i)})}(jQuery),function($){"use strict";function i(t){$(t).on("click.bs.dropdown",this.toggle)}var s='[data-toggle="dropdown"]';function a(t){var e=t.attr("data-target"),n="#"!==(e=e||(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""))?$(document).find(e):null;return n&&n.length?n:t.parent()}function r(i){i&&3===i.which||($(".dropdown-backdrop").remove(),$(s).each(function(){var t=$(this),e=a(t),n={relatedTarget:this};e.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&$.contains(e[0],i.target)||(e.trigger(i=$.Event("hide.bs.dropdown",n)),i.isDefaultPrevented()||(t.attr("aria-expanded","false"),e.removeClass("open").trigger($.Event("hidden.bs.dropdown",n)))))}))}i.VERSION="3.4.1",i.prototype.toggle=function(t){var e=$(this);if(!e.is(".disabled, :disabled")){var n=a(e),i=n.hasClass("open");if(r(),!i){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&$(document.createElement("div")).addClass("dropdown-backdrop").insertAfter($(this)).on("click",r);var o={relatedTarget:this};if(n.trigger(t=$.Event("show.bs.dropdown",o)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger($.Event("shown.bs.dropdown",o))}return!1}},i.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var e=$
1(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var n=a(e),i=n.hasClass("open");if(!i&&27!=t.which||i&&27==t.which)return 27==t.which&&n.find(s).trigger("focus"),e.trigger("click");var o=n.find(".dropdown-menu li:not(.disabled):visible a");if(o.length){var r=o.index(t.target);38==t.which&&0<r&&r--,40==t.which&&r<o.length-1&&r++,~r||(r=0),o.eq(r).trigger("focus")}}}};var t=$.fn.dropdown;$.fn.dropdown=function(n){return this.each(function(){var t=$(this),e=t.data("bs.dropdown");e||t.data("bs.dropdown",e=new i(this)),"string"==typeof n&&e[n].call(t)})},$.fn.dropdown.Constructor=i,$.fn.dropdown.noConflict=function(){return $.fn.dropdown=t,this},$(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",s,i.prototype.toggle).on("keydown.bs.dropdown.data-api",s,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.prototype.keydown)}(jQuery);var WormlyTip={init:function(t){var e=$(t||"#main a, #main span, #main acronym, #main abbr, #main button, #footer a, h2, h3").tooltip({placement:function(t,e){return"auto "+(e.dataset.placement?e.dataset.placement:"bottom")},container:"body",delay:100,sanitize:!1});$(window).on("mousedown",function(){$(".tooltip").hide()}),$(window).on("touchstart",function(){e.tooltip("destroy"),$(window).off("touchstart")})}};function _pushError(t){t.push("ua: "+navigator.userAgent),t.push("url: "+window.location.href),t.push.apply(t,window._eventLog),WicketClientSideLogging.errorWithoutStack(t.join("\n"))}!function(t,e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):t.printStackTrace=e()}(this,function(){function r(t){var e=(t=t||{guess:!0}).e||null,n=!!t.guess,i=new r.implementation,o=i.run(e);return n?i.guessAnonymousFunctions(o):o}return r.implementation=function(){},r.implementation.prototype={run:function(t,e){return t=t||this.createException(),"other"===(e=e||this.mode(t))?this.other(arguments.callee):this[e](t)},createException:function(){try{this.undef()}catch(t){return t}},mode:function(t){return t.arguments&&t.stack?"chrome":t.stack&&t.sourceURL?"safari":t.stack&&t.number?"ie":t.stack&&t.fileName?"firefox":t.message&&t["opera#sourceloc"]?!t.stacktrace||-1<t.message.indexOf("\n")&&t.message.split("\n").length>t.stacktrace.split("\n").length?"opera9":"opera10a":t.message&&t.stack&&t.stacktrace?t.stacktrace.indexOf("called from line")<0?"opera10b":"opera11":t.stack&&!t.fileName?"chrome":"other"},instrumentFunction:function(t,e,n){var i=(t=t||window)[e];t[e]=function(){return n.call(this,r().slice(4)),t[e]._instrumented.apply(this,arguments)},t[e]._instrumented=i},deinstrumentFunction:function(t,e){t[e].constructor===Function&&t[e]._instrumented&&t[e]._instrumented.constructor===Function&&(t[e]=t[e]._instrumented)},chrome:function(t){return(t.stack+"\n").replace(/^[\s\S]+?\s+at\s+/," at ").replace(/^\s+(at eval )?at\s+/gm,"").replace(/^([^\(]+?)([\n$])/gm,"{anonymous}() ($1)$2").replace(/^Object.<anonymous>\s*\(([^\)]+)\)/gm,"{anonymous}() ($1)").replace(/^(.+) \((.+)\)$/gm,"$1@$2").split("\n").slice(0,-1)},safari:function(t){return t.stack.replace(/\[native code\]\n/m,"").replace(/^(?=\w+Error\:).*$\n/m,"").replace(/^@/gm,"{anonymous}()@").split("\n")},ie:function(t){return t.stack.replace(/^\s*at\s+(.*)$/gm,"$1").replace(/^Anonymous function\s+/gm,"{anonymous}() ").replace(/^(.+)\s+\((.+)\)$/gm,"$1@$2").split("\n").slice(1)},firefox:function(t){return t.stack.replace(/(?:\n@:0)?\s+$/m,"").replace(/^(?:\((\S*)\))?@/gm,"{anonymous}($1)@").split("\n")},opera11:function(t){for(var e=/^.*line (\d+), column (\d+)(?: in (.+))? in (\S+):$/,n=t.stacktrace.split("\n"),i=[],o=0,r=n.length;o<r;o+=2){var s=e.exec(n[o]);if(s){var a=s[4]+":"+s[1]+":"+s[2],l=s[3]||"global code";l=l.replace(/<anonymous function: (\S+)>/,"$1").replace(/<anonymous function>/,"{anonymous}"),i.push(l+"@"+a+" -- "+n[o+1].replace(/^\s+/,""))}}return i},other:function(t){for(var e,n,i="{anonymous}",o=/function(?:\s+([\w$]+))?\s*\(/,r=[],s=Array.prototype.slice;t&&r.length<10;){e=o.test(t.toString())&&RegExp.$1||i;
1try{n=s.call(t.arguments||[])}catch(t){n=["Cannot access arguments: "+t]}r[r.length]=e+"("+this.stringifyArguments(n)+")";try{t=t.caller}catch(t){r[r.length]="Cannot access caller: "+t;break}}return r},stringifyArguments:function(t){for(var e=[],n=Array.prototype.slice,i=0;i<t.length;++i){var o=t[i];void 0===o?e[i]="undefined":null===o?e[i]="null":o.constructor&&(o.constructor===Array?o.length<3?e[i]="["+this.stringifyArguments(o)+"]":e[i]="["+this.stringifyArguments(n.call(o,0,1))+"..."+this.stringifyArguments(n.call(o,-1))+"]":o.constructor===Object?e[i]="#object":o.constructor===Function?e[i]="#function":o.constructor===String?e[i]='"'+o+'"':o.constructor===Number?e[i]=o:e[i]="?")}return e.join(",")},sourceCache:{},isSameDomain:function(t){return"undefined"!=typeof location&&-1!==t.indexOf(location.hostname)},guessAnonymousFunctions:function(t){for(var e=0;e<t.length;++e){var n=t[e],i=/\{anonymous\}\(.*\)@(.*)/.exec(n);if(i){var o=/^(.*?)(?::(\d+))(?::(\d+))?(?: -- .+)?$/.exec(i[1]);if(o){var r=o[1],s=o[2],a=o[3]||0;if(r&&this.isSameDomain(r)&&s){var l=this.guessAnonymousFunction(r,s,a);t[e]=n.replace("{anonymous}",l)}}}}return t},guessAnonymousFunction:function(e,t,n){var i;try{i=this.findFunctionName(this.getSource(e),t)}catch(t){i="getSource failed with url: "+e+", exception: "+t.toString()}return i},findFunctionName:function(t,e){for(var n,i,o,r=/function\s+([^(]*?)\s*\(([^)]*)\)/,s=/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*function\b/,a=/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*(?:eval|new Function)\b/,l="",c=Math.min(e,20),u=0;u<c;++u)if(0<=(o=(n=t[e-u-1]).indexOf("//"))&&(n=n.substr(0,o)),n){if(l=n+l,(i=s.exec(l))&&i[1])return i[1];if((i=r.exec(l))&&i[1])return i[1];if((i=a.exec(l))&&i[1])return i[1]}return"(?)"}},r}),function(s){"use strict";if("object"!=typeof s.WicketClientSideLogging){var $,a,o,i=0,l=[],c=s.onerror;s.onerror=function(t,e,n){l.push({message:t,file:e,line:n,timestamp:v()})};var u=["off","error","warn","info","debug","trace"],d={},h={error:function(t){this.log(d.LVL_ERROR,t,function(){if(m.logStacktrace&&s.printStackTrace)return s.printStackTrace().join("\n");return""}())},errorWithoutStack:function(t){this.log(d.LVL_ERROR,t,"")},warn:function(t){this.log(d.LVL_WARN,t,"")},info:function(t){this.log(d.LVL_INFO,t,"")},debug:function(t){this.log(d.LVL_DEBUG,t,"")},trace:function(t){this.log(d.LVL_TRACE,t,"")},log:function(t,e,n){if(this.isLoggingActive(t)){var i={stack:n};"string"==typeof e?i.msg=e:"object"==typeof e?(i.msg=e.message,i.file=e.file,i.line=e.line):i.message=e+"",o=i,r=m.collectionType,o.timestamp=v(),p.hasOwnProperty(r)&&p[r](o)}var o,r;!0===m.debug&&this.consoleLog(t,e,n)},consoleLog:function(t,e,n){var i=u[t];if(s.console){var o="["+i+"] "+this.messageToString(e);n&&(o+="\n"+n),s.console[i]?s.console[i](o):s.console.log&&s.console.log(o)}},messageToString:function(t){return"object"==typeof t?t.message+" on ["+t.file+":"+t.line+"]":t+""},isLoggingActive:function(t){return 0<m.logLevel&&m.logLevel>=t&&m.maxEntriesPerPage>i+n.length}},p={single:function(t){b([t],!0)},timer:function(t){n.push(t)},size:function(t){n.push(t),n.length>=m.maxQueueSize&&y(!0)},unload:function(t){n.push(t)},localstorage:function(t){var e=o.store("clientside-logging");(e=e||[]).push(t),o.store("clientside-logging",e)}},n=[],f=0,m={replaceWicketLog:!1,replaceWindowOnError:!1,wrapWindowOnError:!0,wrapWicketLog:!0,flushMessagesOnUnload:!0,logStacktrace:!1,logAdditionalErrors:!0,dateFormat:null,collectClientInfos:!0,logLevel:h.LVL_ERROR,url:null,method:"POST",maxQueueSize:10,maxEntriesPerPage:50,loggerName:"Log",customFilter:null,debug:!1,collectionTimer:5e3,collectionType:"single"},g={isManipulated:!0,origWicketLog:null,override:function(t){return this.origWicketLog=t,this},enabled:function(){return this.origWicketLog.enabled()},info:function(t){h.info(t),!0===m.wrapWicketLog&&this.origWicketLog&&this.origWicketLog.info(t)},error:function(t){h.error(t),!0===m.wrapWicketLog&&this.origWicketLog&&this.origWicketLog.error(t)},log:function(t){h.info(t),!0===m.wrapWicketLog&&this.origWicketLog&&this.origWicketLog.log(t)}};h.initialize=t,s.WicketClientSideLogging=h,s.wicketClientSideLogging=t}function v(){return m.dateFormat?moment().format(m.dateFormat):+new Date}function y(t){if("localstorage"===m.collectionType){var e=o.store("clientside-logging");e&&0<e.length&&(b(e,t),o.store("clientside-logging",null))}else b(n,t)}function r(t){for(var e,n=function(t){t.ajaxBaseUrl=a.Ajax.baseUrl||".",!0===m.collectClientInfos&&(t.ua=navigator.userAgent,t.url=window.location.href,t.winSize=$(s).width()+"x"+$(s).height()+" screen: "+s.screen.availWi
1dth+"x"+s.screen.availHeight);return t}({}),i=1;0<t.length;){var o=t.pop();null!=(e=o)&&(!m.customFilter||"function"==typeof m.customFilter&&m.customFilter(e))&&(n["timestamp_"+i]=o.timestamp,n["msg_"+i]=o.msg,n["lvl_"+i]=o.lvl,o.line&&(n["line_"+i]=o.line),o.file&&(n["file_"+i]=o.file),m.logStacktrace&&o.stack&&(n["stack_"+i]=o.stack),i++)}return n.elements=i-1,n}function b(t,e){if(t&&!(t.length<=0)){var n=r(t);!n||n.elements<=0||(i+=n.elements,e=!1!==e,$.ajax({type:m.method,url:m.url,cache:!1,async:e,dataType:"text",data:n}))}}function t(jQuery,t,e,n){if(a=t,o=e,($=jQuery).each(u,function(t,e){d["LVL_"+e.toUpperCase()]=t}),$.extend(h,d),$.extend(m,n||{}),"function"==typeof m.customFilter||("string"==typeof m.customFilter&&0==m.customFilter.indexOf("return")?m.customFilter=new Function("event",m.customFilter):"string"==typeof m.customFilter?m.customFilter=function(t){if(-1<t.indexOf(".")){for(var e=t.split("."),n=0,i=e.length,o=window;n<i;++n){if(!o[e[n]])return null;o=o[e[n]]}return"function"==typeof o?o:null}return"function"==typeof window[t]?window[t]:null}(m.customFilter):m.customFilter=null),!m.url)throw new Error("there's no valid url set: "+m.url);if(!p.hasOwnProperty(m.collectionType))throw new Error(function(t){var e,n=[];for(e in p)p.hasOwnProperty(e)&&n.push(e);return"Invalid collection type: "+t+"; must be one of: ["+n.join(", ")+"]"}(m.collectionType));if(m.logLevel=function(t){if("string"==typeof t){var e="LVL_"+t.toUpperCase();d.hasOwnProperty(e)&&(t=d[e])}return"number"!=typeof t&&(t=d.LVL_ERROR),Math.max(0,Math.floor(t))}(m.logLevel),s.onerror=c,!0===m.wrapWindowOnError||!0===m.replaceWindowOnError)for(s.onerror=(r=s.onerror,function(t,e,n,i,o){if(f++,t+=" - "+printStackTrace().join(" - "),1!==f&&!m.logAdditionalErrors||h.errorWithoutStack({message:t,file:e,line:n+" pos: "+i}),!0===m.wrapWindowOnError&&r)try{r.call(this,t,e,n)}catch(t){}});l&&0<l.length;){var i=l.pop();s.onerror(i.message,i.file,i.line)}else l=[];var r;if(!0!==m.wrapWicketLog&&!0!==m.replaceWicketLog||a.Log&&!0===a.Log.isManipulated||(a.Log=g.override(a.Log)),"timer"===m.collectionType&&s.setInterval(function(){y(!0)},m.collectionTimer),"localstorage"===m.collectionType){if(!o)throw new Error("can't use collection type 'localeStorage' without amplify.");$(s).load(function(){s.setTimeout(function(){y(!0)},500)}),m.flushMessagesOnUnload=!1}!0!==m.flushMessagesOnUnload&&"unload"!==m.collectionType||$(s).on("beforeunload",function(){y(!1)}),m.loggerName&&(s[m.loggerName]=h,$[m.loggerName]=h)}}(window),Wicket={Ajax:{baseUrl:""}},window._eventLog=[],window.logEvent=function(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e],i=typeof n;"undefined"==i?n="[undefined]":"number"!=i&&"string"!=i&&(n=JSON.stringify(n)),t.push(n)}window._eventLog.push(t.join(" ")),t.join(" ")},window.wicketClientSideLogging(jQuery,Wicket,null,{url:"/jslogging/log",maxQueueSize:5,wrapWindowOnError:!1,collectClientInfos:!1}),$(window).on("error",function(t){var e=t.originalEvent,n=[];if(n.push(e.message),e.error){var i=e.error.stack.trim();i=i.replace(/http.*?jsbundle\//g,"jsb@"),n.push(i)}else n.push("No stack. In "+e.filename+":"+e.lineno);_pushError(n)}),window.logError=function(t){_pushError([t])};var SycuseInPlaceEdit={add:function(t,e,n){return $(t).map(function(){new SycuseInPlaceEditor(this,e,n)}),this}};function WormlyHPShotGallery(){$(".hp-shot .img-link").featherlightGallery({variant:"shot-gallery",previousIcon:"&#xf04d;",nextIcon:"&#xf04b;"})}function WormlyHPShotCycler(){WormlyHPShotGallery();var i=-1;setTimeout(function t(){var e=$(".hp-shot .img-link").filter(":visible"),n=e.eq(i++);n.removeClass("fakehover").find(".img").removeClass("fakehover"),i>=e.length&&(i=0),(n=e.eq(i)).addClass("fakehover").find(".img").addClass("fakehover"),setTimeout(t,3e3)},1e3)}function AlbassDialog(t){var e=$("#msgbox_container"),n=e.find(".modal-body");if(t&&(e.find("h4").empty().append(t.title),n.empty().append(t.body),e.toggleClass("no-title",null==t.title)),0==n.html().trim().length?e.addClass("no-body"):e.removeClass("no-body"),768<=$(window).width()){var i=$(".only-keyboards",n),o=$(".meta",i);navigator.userAgent.match("Mac OS X")?o.append("⌘"):o.append("CTRL").removeClass("meta"),i.removeClass("hidden")}e.css("margin-top","0").slideDown(500),$(document).on("click",function(t){dialogBody=e.find(".modal
1-body").get(0),$.contains(dialogBody,t.target)||dialogBody==t.target||e.hide()})}function SycuseFireEvent(t,e){return $(t).trigger(e)}function Sycuseis_all_ws(t){return!/[^\t\n\r ]/.test(t.data)}function Sycuseis_ignorable(t){return 8==t.nodeType||3==t.nodeType&&Sycuseis_all_ws(t)}function SycuseFirstChild(t){for(var e=t.firstChild;e;){if(!Sycuseis_ignorable(e))return e;e=e.nextSibling}return null}function SycuseWindowSize(){var t,e;window.innerHeight?(t=window.innerWidth,e=window.innerHeight):document.documentElement&&document.documentElement.clientHeight?(t=document.documentElement.clientWidth,e=document.documentElement.clientHeight):document.body&&(t=document.body.clientWidth,e=document.body.clientHeight),this.x=t,this.y=e}function SycuseAttachConfirm(t){$("#"+t).click(function(){return confirm("Are you sure you want to delete this item?")})}function SycuseBind(t,e,n,i){null==i&&(i="click");var o=jQuery.proxy(n,e);return $(t).bind(i,null,o),o}function SycuseUnbind(t,e,n){null==n&&(n="click"),$(t).unbind(n,e)}function AutheloCheckAll(t,e){var n=$("#"+t);0<n.length&&(SycuseBind(n,this,this.ToggleCheckboxes),this.trigger=n.get(0),this.trigger.style.visibility="visible",this.toggleclass=e)}SycuseInPlaceEditor=function(t,e,n){this.elem=t=$(t),this.ajaxURL=e,this.options=$.extend(!0,{hoverText:"Click to edit",allowEmpty:!1},n),t.length&&(t.attr("title")||t.attr("title",this.options.hoverText),t.addClass("hover-yellow").on("click",this.edit.bind(this)))}
1,SycuseInPlaceEditor.prototype={edit:function(){var e=$(WORMLY_TEMPLATES.inplaceedit),n=this.elem,t=this;$("body").append(e),e.find("h4").text(this.options.title);var i=e.find("form");i.on("submit",function(){return t.save(i,function(t){0<t.length?n.text(t):n.html("&nbsp;"),e.modal("hide")}),!1}),e.on("shown.bs.modal",function(){e.find("input").val(n.text().trim()).focus().select()}).on("hidden.bs.modal",function(){e.remove()}).modal()},save:function(n,i){function o(t){n.find(".text-danger").text(t).removeClass("invisible"),n.find(".form-group").addClass("has-error")}var r=n.find("input").val().trim(),s=n.find(".updating");if(n.find(".text-danger").addClass("invisible"),n.find(".form-group").removeClass("has-error"),!this.options.allowEmpty&&0==r.length)return o("Cannot be empty.");s.removeClass("invisible"),n.find("button").prop("disabled","disabled"),n.find(".modal-footer").css("opacity",.5),$.ajax({type:"POST",url:this.ajaxURL,dataType:"text",data:"id="+encodeURIComponent(this.elem.attr("id"))+"&value="+encodeURIComponent(r),complete:function(t){s.addClass("invisible"),n.find("button").prop("disabled",!1),n.find(".modal-footer").css("opacity","");var e=new SycuseAJAXResponse(t);e.success()?(e.getValue("updatedtext")&&(r=e.getValue("updatedtext")),i(r)):(o(e.getErrorMessage()),n.find("input").focus())}})}},HPLogoRunner=function(t){this.logos=t,this.currentLogoID=4,this.showLogos=5,this.preloadLogos(),setTimeout($.proxy(this.showNextLogos,this),5e3)},HPLogoRunner.prototype={preloadLogos:function(){this.nextLogos=new Array;for(var t=0;t<this.showLogos;t++){this.currentLogoID++,this.currentLogoID>=this.logos.length&&(this.currentLogoID=0);var e=new Image;e.src="/images/3p/cust/new2/"+this.logos[this.currentLogoID]+".png",this.nextLogos.push(e)}},showNextLogos:function(){for(var t=0;t<this.showLogos;t++){var e=document.getElementById("logo_"+t);e._nextlogo=this.nextLogos[t].src,$(e).fadeTo(300,.02,function(t){this.src=this._nextlogo,$(this).fadeTo(300,1)})}this.preloadLogos(),setTimeout($.proxy(this.showNextLogos,this),5e3)}},SycuseWindowSize.prototype.getX=function(){return this.x},SycuseWindowSize.prototype.getY=function(){return this.y},jQuery.timer=function(t,e){return t=t||100,!!e&&(_timer=function(t,e){this.stop=function(){clearInterval(n.id)},this.internalCallback=function(){e(n)},this.reset=function(t){n.id&&clearInterval(n.id),t=t||100,this.id=setInterval(this.internalCallback,t)},this.interval=t,this.id=setInterval(this.internalCallback,this.interval);var n=this},new _timer(t,e))},AlbCtxHlp=function(t,e,n){this.aspopup=t,this.className=e||"helpme",this.container=n||"body",this.init()},AlbCtxHlp.prototype={init:function(){var t=this.aspopup?$("a"):$("a."+this.className,this.container),n=this;t.each(function(t,e){n.linkIt(e)})},linkIt:function(t){this.aspopup?-1<t.href.indexOf("/help/")?t.href=t.href+"/aspopup/1":-1==t.href.indexOf("javascript:")&&(t.target="_blank"):(t.title||(t.title="Click for more information (popup)"),SycuseBind(t,this,this.clk))},clk:function(t){for(var e=t.target;void 0===e.href;)e=e.parentNode;if($(e).hasClass("large"))var n="";else n="height=550,width=750,";window.open(e.href+"/aspopup/1","ctxhelp",n+"scrollbars=1,resizable=1,status=0");return!1}},AutheloCheckAll.prototype.ToggleCheckboxes=function(){var n=this;$("."+this.toggleclass+":visible").each(function(t,e){$(e).prop("checked",n.trigger.checked)})};var WormlyHostListSearch=function(){var t=$(".globalsearch").filter(":visible");t.arrowSelect($("#ncontent"),"tbody tr"),$("#hostlist").filterList(t,{childSelector:"tbody tr",reduceCallback:function(t){return $(t).find(".textualtitle").text()},scrollElement:$(window)}).bind("list-changed",function(t,e){$("#hostlist :checkbox").prop("checked",!1),e.find("[type=checkbox]").prop("checked",1==e.length)}),$(".mobile-search .cancel").on("click",function(){return t.val(""),t.trigger("keydown"),t.trigger("keyup"),!1})},escapeRegExp;function WormlyTZSelector(t,e){if($(t)&&$(e))if(this.country=$(t),this.zone=$(e),this.cacheOptions(),SycuseBind(this.country,this,this.onCountrySelect,"change"),""!=this.country.val())this.onCountrySelect();else try{var n=Intl.DateTimeFormat().resolvedOptions().timeZone;$.ajax("/join/tzcountry",{method:"POST",data:{browsertimezone:n}}).done(function(t){t.timezoneid&&(this.country.val(t.country),this.zone.val(t.timezoneid+"_"+t.country),this.onCountrySelect())}.bind(this))}catch(t){}}function WormlyCreateHost(){this.initialised=!1,this.onModeChange(),SycuseBind($("#defaulttz_0"),this,this.onModeChange),SycuseBind($("#defaulttz_1"),this,this.onModeChange)}
1function WormlyContactsChannelSelected(t){var e=$("#SycuseAction_execute_test");8==t?e.hide():e.show()}function getUrlValue(t,e){var n=location.pathname.match(new RegExp("/"+t+"/([^/]+)"));return n?decodeURIComponent(n[1]):e}function setUrlValue(t,n,e){e=e||location.pathname;var i=0;return e=e.replace(new RegExp("("+t+"/)([^/]*)"),function(t,e){return i++,e+n}),0==i&&(e+="/"+t+"/"+n),e}function getReturnToURL(t){return t=t||{},encodeURIComponent(window.location.pathname+(t.hash||window.location.hash))}function showDialog(t){$("#msgbox_container").css("position","fixed"),$("#msgbox").find(".heading").text(t),new AlbassDialog}function hideDialog(){$("#msgbox_container").hide()}SycuseAJAXResponse=function(xhr){this.result=0,this.errormsg="Error communicating with the server - please try again",this.values=new Array;var resp=xhr.responseText;if("while (1=1) {}"==resp.substr(0,14))try{var trimmed=resp.substr(14);eval("var data = "+trimmed+";"),null!=data&&(this.result=data.result,this.errormsg=data.error,this.values=data.values)}catch(t){}},SycuseAJAXResponse.prototype={success:function(){return 1==this.result},getValue:function(t){if(null!=this.values[t])return this.values[t]},getErrorMessage:function(){return this.errormsg}},WormlyTZSelector.prototype={onCountrySelect:function(){var t=this.country.val();this.showOnlyZonesIn(t)},cacheOptions:function(){var t=this.zone.get(0);this.options=new Array;for(var e=0;e<t.options.length;e++){var n=t.options[e];if(n.value)var i=n.value.split("_")[1],o=n.value,r=n.text;else i=null,o=null,r=n.text;this.options.push({val:o,txt:r,code:i})}},showOnlyZonesIn:function(t){for(var e=this.zone.val(),n=this.zone.get(0),i=n.options.length=0,o=0;o<this.options.length;o++){var r=this.options[o];r.code!=t&&null!=r.code||(n.options[i]=new Option(r.txt,r.val),r.val==e&&(n.options.selectedIndex=i),i++)}3==i&&(n.options.selectedIndex=2,0<$("option:selected",n).text().indexOf("Universal")&&(n.options.selectedIndex=1))}},WormlyCreateHost.prototype={onModeChange:function(t){!!$("#defaulttz_1").get(0).checked?this.hideTZelems():this.showTZelems()},hideTZelems:function(){$("#SFc_country").slideUp(100),$("#SFc_timezoneid").slideUp(100)},showTZelems:function(){this.initialised||(new WormlyTZSelector("#country","#timezoneid"),this.initialised=!0),$("#SFc_country").slideDown(100),$("#SFc_timezoneid").slideDown(100)}},WormlyContacts=function(){this.buttons=new Array,this.init()},WormlyContacts.prototype={init:function(){this.inputs={1:"email",2:"sms",7:"phone",4:"icq",5:"msn",3:"shortemail",6:"rest_http",8:"telegram"};var t=$("#SycuseAction_execute_test");this.buttons.push(t),t.click(this.clk.bind(this))},clk:function(){var t=this.inputs[$("#mcontacts input[name=selected-channel]").val()],e=(t=$("#mcontacts  input[name="+t+"]")).val(),n=t.attr("id"),i=$("#"+n+"_data2"),o=i.length?i.val():"",r=$("#"+n+"_route_awsses_1"),s=r.length&&r.prop("checked")?1:0;if(0==e.length)return alert("Please specify a recipient for this test."),!1;this.btnsOff();var a=this;$.ajax({type:"POST",url:"/rpc_channeltest",dataType:"text",data:"what="+n+"&address="+encodeURIComponent(e)+"&route_awsses="+s+"&data2="+encodeURIComponent(o)+"&pcid="+$("input[name=pcid]").val(),complete:function(t){a.saved(t)}})},btnsOff:function(){var t=this.buttons.length;this.oldBTxt=this.buttons[0].html();for(var e=0;e<t;e++)this.buttons[e].attr("disabled",!0).html("Wait...")},btnsOn:function(){for(var t=this.buttons.length,e=0;e<t;e++)this.buttons[e].attr("disabled",!1).html(this.oldBTxt)},saved:function(params){eval(params.responseText),this.btnsOn(),alert(rpcmessage)}},AlbassDynamicFormHints=function(t){this.init(t)},AlbassDynamicFormHints.prototype={init:function(t){var e=testing=!1,n=$("#"+t+" #cs_save");n.on("click",function(){e=!0}),$(document).keydown(function(t){13===t.keyCode&&(t.ctrlKey||t.metaKey)&&(t.preventDefault(),e=!0,n.trigger("click"))}),$("#"+t).on("submit",function(){e||(testing&&event.preventDefault(),$("#cs_test").html('<span class="icon spinner fa-spin" />&nbsp;&nbsp;Testing'),testing=!0)});var i=$("#"+t+" :input");if(0<i.length)for(var o,r=0;r<i.length;r++){var s=null;s="radio"==(o=i.get(r)).type?"hint4"+o.id.match(/(.*)_.*$/)[1]:"hint4"+o.id;var a=$("#"+s);a.length&&(o.xElemHintDiv=a,$(o).on("focus",this.showHint.bind(this)))}this._callout=$(".rhscol .bs-callout").css("position","relative")},showHint:function(t){var e=t.currentTarget.xElemHintDiv.html(),n=$(t.currentTarget).offset().top-85;this._callout.hide(),this._callout.html(e).css("margin-top",n+"px").fadeIn(110)}},WormlyApiKeys=function(t,e,n,i){this.commandMap=t,this.currentCommands=e,this.varMapping=n,this.specialCases=i,this.tree={},this.specialCase=!1,this.started=!1},Array.indexOf||(Array.prototype.indexOf=function(t){for(var e=this.length,n=0;n<e;n++)if(this[n]==t)return n;return-1}),WormlyApiKeys.prototype={start:function(){$(".js-needed").show(),this.inittree(),this.appendSelect([]),this.showCurrent(),$("#left66").removeAttr("style"),SycuseBind("#add-permission",this,this.addClicked),SycuseBind("#permission-form button",this,this.formSubmitted),SycuseBind("#current-permissions input",this,this.permissionActionClicked),$("#permission-form").data("deletedIds",[]),this.started=!0}
1,getRelevantVars:function(t){var i=[],o=this;return $.each(t,function(t,e){var n=o.varMapping[e];$.each(n,function(t,e){-1==i.indexOf(e)&&i.push(e)})}),i},formSubmitted:function(t){var n=$("#permission-form"),i=this;if("custom"==this.specialCase){if(0==n.find("#permission-list li[id!=no-permissions]").length&&!confirm("There doesn't seem to be a single permission selected. The key won't be able to do anything. Do you want to continue?"))return!1;this.processCustomRestrictions(n,i)}else{var e;e=1==this.currentCommands.length&&this.currentCommands[0].command==this.specialCase?this.currentCommands[0].id:-1,this.appendHidden(n,"command["+this.specialCase+"]",e)}$.each(n.data("deletedIds"),function(t,e){i.appendHidden(n,"deleted[]",e)}),n.submit()},processCustomRestrictions:function(o,r){$.each(o.find("#permission-list li"),function(t,e){var i=(e=$(e)).data("command");r.appendHidden(o,"command["+i+"]",e.data("commandId")),e.find(".restriction").each(function(t,e){var n=(e=$(e)).data("id");return!n&&""===e.val()||(r.appendHidden(o,"restriction["+i+"]["+e.attr("name")+"][value]",e.is(":visible")?e.val():""),!n||void r.appendHidden(o,"restriction["+i+"]["+e.attr("name")+"][id]",n))})})},appendHidden:function(t,e,n){var i=$("<input>").attr("type","hidden").attr("name",e).attr("value",n);t.append(i)},permissionActionClicked:function(t){this.specialCase=$(t.target).val();var n=$("#permission-form");$.each(this.currentCommands,function(t,e){n.data("deletedIds").push(e.id)}),this.showSpecialCase()},hide:function(t){this.started?t.slideUp(300):t.hide()},show:function(t){this.started?t.slideDown(300):t.show()},showSpecialCase:function(){"custom"==this.specialCase?this.show($(".custom-only")):this.hide($(".custom-only")),$("#apikeys-main tr").removeClass("will-be-added").removeClass("added"),"*"==this.specialCase?$("#apikeys-main tr").addClass("added"):"*::Get"==this.specialCase?this.highlightReadonlyCommands():"custom"==this.getOriginalCase()&&this.highlightCustomCommands(),$('#current-permissions input[value="'+this.specialCase+'"]').prop("checked",!0)},highlightReadonlyCommands:function(){$.each(this.commandMap,function(t,e){e.match(/::Get$/)&&$('#apikeys-main tr:contains("'+t+'")').addClass("added")})},showCurrent:function(){this.specialCase=this.getOriginalCase(),this.showSpecialCase()},getOriginalCase:function(){return 1==this.currentCommands.length&&this.currentCommands[0].command in this.specialCases?this.currentCommands[0].command:"custom"},highlightCustomCommands:function(){if("custom"==this.specialCase){var r=this;$.each(this.currentCommands,function(t,e){var n=e.command,i=e.restrictions;r.getApplicableRows(r.splitCommand(n)).addClass("added");var o=r.addPermissionElement($("#permission-list"),n,e.id);$.isArray(i)||r.expandLi(o,i)})}},addClicked:function(){var t=this.getSelectedArray();if(0==t[0].length)return!1;this.getApplicableRows(t).removeClass("will-be-added").addClass("added");var e=this.makeColonSeparatedCommands(t),n=$("#permission-list"),i=this;return $.each(e,function(t,e){i.addPermissionElement(n,e)}),!1},addPermissionElement:function(t,n,e){$("#no-permissions").remove();var i=$("#permission-list li").filter(function(t,e){return $(this).data("command")==n});if(i.length)return i;var o=$("<a>").addClass("delete-button actBut").attr("title","Remove this permission");o.append($('<span class="icon delete" />')).attr("href","javascript:void(0)"),SycuseBind(o,this,this.deleteLinkClicked);var r=$("<li></li>").addClass("clearfix").append($("<span>").addClass("permission-string code").text(n));return e=e||-1,r.data("command",n).data("commandId",e),this.addRestrictLinkIfNeeded(r),r.append(o),t.append(r),r},addRestrictLinkIfNeeded:function(t){var e=this.getRelevantVars(this.getApplicableCommands(this.splitCommand(t.data("command")))),n=$("<a>").addClass("restrict-button actBut").attr("href","javascript:void(0)").attr("title","Add parameter restrictions");n.append($('<span class="icon edit" />')).attr("href","javascript:void(0)"),SycuseBind(n,this,this.restrictLinkClicked),t.append(n),0==e.length&&t.find(".restrict-button").addClass("invisible"),t.data("relevantVars",e)},expandLi:function(t,e){var n=t.children(".restriction-container");n.length||(n=this.addContainer(t,e)),n.toggle()}
1,addContainer:function(t,o){var e=$("<a>").css("float","right").addClass("actBut").attr("href","javascript:void(0)");e.append($("<span>").addClass("icon fail")),SycuseBind(e,this,this.restrictLinkClicked);var r=$("<div></div>").addClass("restriction-container well").css("margin-top","1em").hide().append(e);return o=o||{},$.each(t.data("relevantVars"),function(t,e){var n=$("<input>").attr("type","text").attr("name",e).addClass("restriction form-control").css("background","#fff");e in o&&n.val(o[e].allowedValue).data("id",o[e].id);var i=$("<span>").addClass("restriction-name").addClass("code").text(e+" = ");r.append($("<p>").append(i).append(n))}),t.append(r).children(".restrict-button").data("expanded",!0),r},restrictLinkClicked:function(t){var e=$(t.target).closest("li");this.expandLi(e)},deleteLinkClicked:function(t){var e=$(t.target).closest("li"),n=$("#permission-form");this.getApplicableRows(this.splitCommand(e.data("command"))).removeClass("added"),n.data("deletedIds").push(e.data("commandId")),e.remove()},optionClicked:function(t){$(".will-be-added").removeClass("will-be-added"),$(t.target).closest("select").nextAll("select").remove();var e=this.getSelectedArray();$("#add-permission").toggle(0<e.length),null!=$(t.target).val()&&(t.ctrlKey&&!$(t.target).is(":selected")||this.appendSelect(e),this.getApplicableRows(e).addClass("will-be-added"))},makeColonSeparatedCommands:function(n){if("*"==n[0][0])return["*"];var i=[],o=this.tree;$.each(n,function(t,e){if(n.length-1==t)return!1;o=o[e[0]],i.push(e[0])});var t=n[n.length-1],r=[];return $.each(t,function(t,e){var n=$.merge([],i);n.push(e),o[e].constructor==Object&&n.push("*"),r.push(n.join("::"))}),r},splitCommand:function(t){var n=[];return $.each(t.split("::"),function(t,e){"*"!=e&&n.push([e])}),n},getApplicableRows:function(t){if(!t.length)return $("#apikeys-main tr");var n=$();return $.each(this.getApplicableCommands(t),function(t,e){n=n.add('#apikeys-main tr:contains("'+e+'")')}),n},getApplicableCommands:function(t){if(0==t.length||"*"==t[0][0])return this.getAllCommands(this.tree);for(var n=$.extend(!0,{},this.tree),e=0;e<t.length;e++){var i=t[e];$.each(n,function(t,e){-1==$.inArray(t,i)&&delete n[t]}),1==i.length&&(n=n[i[0]])}return n.constructor==Array?n:this.getAllCommands(n)},getAllCommands:function(t){var n=[],i=this;return $.each(t,function(t,e){e.constructor==Array?$.merge(n,e):$.merge(n,i.getAllCommands(e))}),n},getSelectedArray:function(){var n=[];return $("select.permission").each(function(t,e){(e=$(e)).val()&&n.push(e.val())}),n},appendSelect:function(t){for(var e=this.tree,n=0;n<t.length;n++){var i=t[n];if(1<i.length)return;if("string"==typeof(e=e[i[0]])[0])return}var o=$('<select class="form-control">').attr("multiple","multiple").addClass("permission");return $.each(e,function(t){o.append($("<option>").val(t).text(t))}),o.attr("size",o.find("option").length),$("#select-permission").append(o),SycuseBind(o,this,this.optionClicked),o},inittree:function(){var t=this.tree;for(var e in this.commandMap)for(var n=this.commandMap[e];;){var i=n.split("::"),o=i[0],r=i.slice(1).join("::");if(1==i.length){o in t||(t[o]=[]),t[o].push(e),t=this.tree;break}o in t||(t[o]={}),n=r,t=t[o]}}},AlbassAdvancedFormOptions=function(t,e){this.init(t,e)},AlbassAdvancedFormOptions.prototype={linkTextShow:"More options &raquo;",linkTextHide:"&laquo; Less options",init:function(t,e){for(var n=$("#"+t+" p.advtoggle a"),i=0;i<n.length;i++){var o=n.get(i),r=o.href.split("//")[1];o.advancedDiv=$("#adv2"+r).get(0),this.setInitialState(o,e[r]),SycuseBind(o,this,this.toggle)}},setInitialState:function(t,e){e||0<$("#"+t.advancedDiv.id+" div.has-error").length?(t.innerHTML=this.linkTextHide,this.state=1):(t.innerHTML=this.linkTextShow,t.advancedDiv.style.display="none",this.state=0)},toggle:function(t){var e=t.currentTarget;this.state?($(e.advancedDiv).slideUp(300),e.innerHTML=this.linkTextShow,this.state=0):($(e.advancedDiv).slideDown(300),e.innerHTML=this.linkTextHide,this.state=1)}},WormlyCSRespView=function(t,e){switch(e){case 1:var n="View traceroute";break;default:n="More detail"}$(t+" p.SFviolmessage").append(' <a class="btn btn-default btn-xs" target="_blank" href="/showtestreponse/sid/'+e+'" title="Show more detail in a new tab"><span class="icon view">'+n+"</span></a>")},CategorizedFormBehavior=function(t,e){this._longprefix=t,this._onStateUpdate=e,this.init()},CategorizedFormBehavior.prototype={init:function(){this._chooser=$("."+this._longprefix+"-chooser"),0!=this._chooser.length&&($(window).on("hashchange",this._processHash.bind(this)),location.hash&&this._processHash())}
1,_updateState:function(t){if(t){var e=$("."+this._longprefix+"-chooser h5.id"+t).html().replace("mdicon","");$("."+this._longprefix+"-crumbs .selected").html(e),this._chooser.hide(),$(".add_"+this._longprefix+"s").show();var n=$("#"+this._longprefix+"-group-"+t).show().parents("form");n.find("input:visible:first").focus().select(),n.attr("action",location)}else this._chooser.show(),$(".rhscol .bs-callout, ."+this._longprefix+"-group, .add_"+this._longprefix+"s").hide();$("form #selected-"+this._longprefix).val(t),this._onStateUpdate&&this._onStateUpdate(t)},_processHash:function(){var t=parseInt(location.hash.substring(5));this._updateState(t)}},$L=function(t,e){function n(){this.readyState&&"complete"!==this.readyState&&"loaded"!==this.readyState||(this.onload=this.onreadystatechange=null,--o||e())}for(var i=t.length,o=i,r=document.getElementsByTagName("head")[0];i;)s=t[--i],a=void 0,(a=document.createElement("script")).async=!0,a.src=s,a.onload=a.onreadystatechange=n,r.appendChild(a);var s,a},$.loadScript=$L,function(){var e=RegExp("["+["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"].join("\\")+"]","g");escapeRegExp=function(t){return t.replace(e,"\\$&")}}();var WormlyTimeSince=function(t,e,n){"object"!=typeof t&&(t=new Date(t)),"object"!=typeof e&&(e=new Date(e));var i,o=Math.floor((e-t)/1e3),r=Math.floor(o/31536e3);if(i=1<=r?"year":1<=(r=Math.floor(o/2592e3))?"month":1<=(r=Math.floor(o/86400))?"day":1<=(r=Math.floor(o/3600))?"hour":1<=(r=Math.floor(o/60))?"minute":(r=o,"second"),n){var s="month"===i?2:1;return r+i.substring(0,s)}return(1<r||0===r)&&(i+="s"),r+" "+i};function PublishStatsBehavior(t,e){this.hostid=t,this.hostname=e,this.init()}function CCFormBehavior(){$("#creditcard").attr("autocomplete","off"),$("#creditcardform").submit(function(){$("#cc_submit").text("Please wait...").attr("disabled",!0)})}function WormlyHostActions(t){this.urlparam=t,$(".actlnk:not([data-controls-modal])").on("click",this.actionClicked.bind(this)),$(".confirmable").click(function(){return confirm("Are you sure? This cannot be undone.")})}function Fabtabs(t,e){this.initialize(t,e)}function ReturnPathFixer(){var t=$("A"),n=this;t.each(function(t,e){n.watch(e)})}PublishStatsBehavior.prototype={init:function(){for(var t,e=1;t=$("#badgeid_"+e).get(0);)SycuseBind(t,this,this.updateHTML),e++;try{SycuseBind("#statsperiod",this,this.updateHTML,"change"),SycuseBind("#detailmode_0",this,this.updateHTML),SycuseBind("#detailmode_2",this,this.updateHTML),$("input.code, textarea.code").on("focus click",function(){this.select()});var n=this;$("ul.badge_list li").click(function(t){$("input",this).prop("checked",!0),n.updateHTML()})}catch(t){}},updateHTML:function(){var t=$("#statsperiod").val(),e=$("#publishstats input:radio[name=detailmode]:checked").val(),n=$("#badgestyles input:radio[name=badgeid]:checked").val();if(n){var i='<img border="0" src="https://www.wormly.com/buttons/id/'+n+"/hostid/"+this.hostid+"/period/"+t+'" alt="Website Monitoring by Wormly.com" />';2==e?$("#htmlcode").val('<a href="https://www.wormly.com/site_uptime/hostid/'+this.hostid+'" title="View detailed uptime statistics for '+this.hostname.replace(/"/,"&quot;")+'">'+i+"</a>"):$("#htmlcode").val(i)}}},WormlyHostActions.prototype={actionClicked:function(t){for(var e=t.currentTarget,n=e.href.split(this.urlparam+"/")[1],i=e,o=!1,r=null;(i=i.parentNode)&&"TR"!=i.tagName;);var s=$(".textualtitle",i).text(),a=$(e);if(a.hasClass("del"))r="del",o='Delete "'+s+'"?\nThis cannot be undone.';else if(a.hasClass("stop"))r="off";else if(a.hasClass("start"))r="on";else if(a.hasClass("off"))r="off";else if(a.hasClass("on"))r="on";else if(a.hasClass("mute"))r="disable";else if(a.hasClass("unmute"))r="enable";if(o&&!confirm(o))return!1;for(var l=$("#actionform input"),c=0;c<l.length;c++){var u=l.get(c);u.name=="h["+n+"]"?"checkbox"==u.type?u.checked=!0:$(u).val(!0):"checkbox"==u.type&&(u.checked=!1)}return $("#actionform input[name=action]").val(r),$("#actionform").submit(),!1}},Fabtabs.prototype={initialize:function(t,e){this.menu=$("#"+t+" a"),this.suggested=e,this.show(this.getInitialTab());var n=this;this.menu.each(function(t,e){SycuseBind(e,n,n.activate)}),new ReturnPathFixer},activate:function(t){var n=t.currentTarget;this.show($(n));var i=this;this.menu.each(function(t,e){e!=n&&i.hide($(e))})},hide:function(t){$(t).parent().removeClass("active");var e=this.tabID(t);$(e).css("display","none").trigger("afterHide")},show:function(t){$(t).parent().addClass("active");var e=this.tabID(t);$(e).css("display","block").trigger("afterShow")},tabID:function(t){return"#zz"+$(t).attr("href").match(/#(\w.+)/)[1]},getInitialTab:function(){if(document.location.href.match(/#(\w.+)/)){var n=RegExp.$1;return jQuery.grep(this.menu,function(t,e){return t.href.match(/#(\w.+)/)[1]==n})||this.menu[0]}return this.suggested?$("#"+this.suggested).closest("a"):this.menu[0]}},ReturnPathFixer.prototype={watch:function(t){t.href.match("/returnto/")&&SycuseBind(t,this,this.onclick)},onclick:function(t){if(document.location.href.match(/(#\w.+)/)){var e=RegExp.$1,n=t.currentTarget;n.href=n.href+encodeURIComponent(e)}}},WormlyFeatureNotification=function(){this.dialog=$("#dialog-newfeature"),this.dialog.length&&this.init()},WormlyFeatureNotification.prototype={init:function(){var t=$("#dialog-newfeature a:eq(1)");this.dismissUrl=t.attr("href"),t.attr("href",""),SycuseBind(t,this,this.dismissClicked),SycuseBind(t.dismiss,this,this.dismissClicked)}
1,dismissClicked:function(){return this.dialog.hide(),$.ajax({type:"POST",url:this.dismissUrl,dataType:"text",data:"ajax=1"}),!1}};var WormlyValidator=function(){};WormlyValidator.prototype={attach:function(){for(var a=this,t="_validatorAttached",e=$("form.validated"),n=0;n<e.length;n++){var i=e.eq(n);i.attr(t)||(i.attr(t,1),i.submit(function(t){for(var e=$(this).find("[data-validate]"),n=0;n<e.length;n++){var i=e.eq(n),o=i.data("validate").split(" ");if(-1!=$.inArray("required",o)||""!=i.val())for(var r=0;r<o.length;r++){var s=o[r];if(!a[s](i.val()))return alert(i.data("validate-message")||"Please enter a valid value"),i.focus(),!1}}}))}return!0},positive:function(t){return this.number(t)&&0<=t},number:function(t){return/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(t)}};var WormlyKeyboard=function(e){function n(t){t&&(window.location.href=t)}function t(t){t.simulateClick()}function i(t,e,n){y[t]=e,n&&(w[t]=n)}function o(t,e){b[t]=e}function r(){var o=$.extend({},w);$("a[accesskey], button[accesskey]").filter(":visible").each(function(t,e){var n=(e=$(e)).text(),i=e.find("h1, h2, h3, h4, h5, h6");i.length&&(n=i.text()),o[e.attr("accesskey")]=e.data("key-description")||$.trim(n)});var t=k.find(".page-wide");if(t.hide(),!function(t){for(var e in t)return!1;return!0}(o)){for(var e in t.find("dl").remove(),o){var n=o[e],i=$("<dl>"),r=$("<dt>").html($("<kbd>").text(e)),s=$("<dd>").text(n);t.append(i.append(r).append(s))}t.show()}return k.attr("tabindex",-1).modal({show:!0,keyboard:!0,backdrop:!0}),!0}function s(){return S()||($(".tab.uptime.active").length?t($(".reportnav:visible .avail a")):t($(".tab.uptime a"))),!0}function a(){return $("#hostlist").find(".selected")}function l(){a().find(".pause,.play").click()}function c(){a().find(".delete").click()}function u(){n("/members")}function d(){n("/members/recentFailures")}function h(){n("/members/recentFailures/down/1")}function p(){n("/alerts")}function f(){n("/myaccount")}function m(t){k.is(":visible")&&k.modal("hide");var e=$(t.target);if(!(t.metaKey||t.ctrlKey||t.altKey)){var n=String.fromCharCode(t.which||t.keyCode).toLowerCase();if(e.is(":input")&&e.is(":visible")&&-1==jQuery.inArray(e.attr("type"),["checkbox","submit","button"])){if("hostsearchkey"!=e.attr("id")||"?"!=n)return;t.preventDefault()}var i,o=!1;"j"==x&&n in b?(b[n](this),o=!0,setTimeout(function(){x=""},10)):n in y&&(o=y[n](this,t)),!o&&(void 0===(i=t).which||"number"==typeof i.which&&0<i.which&&!i.ctrlKey&&!i.metaKey&&!i.altKey&&8!=i.which)&&(o=function(t){var e=$('a[accesskey="'+t+'"], button[accesskey="'+t+'"]').filter(":visible").eq(0);if(e.length)return e.simulateClick(),!0}(n)),o&&t.preventDefault(),x=n}}function g(){var t=$("#qsb");if(t.is(":visible"))return t.find(".hosts .selected a").data("hostid");var e=a();return e.length?e.find("[data-host]").data("host"):void 0}function v(){var t=g();if(t)return n("/jsgraphs/default/hostid/"+t),!0}var y={},b={},w={},x="",k=$(WORMLY_TEMPLATES.legend).appendTo("body"),S=function(){var t=g();if(t)return n("/report/hostid/"+t),!0};this.start=function(){SycuseBind(document,this,m,"keypress"),$(".revealaccesskeys a[accesskey]").each(function(){var t=$(this).text(),e=t.toLowerCase().indexOf(this.accessKey);if(-1<e){var n=t.substr(0,e)+"<u>"+t[e]+"</u>"+t.substr(e+1);$(this).html(n)}});function t(t,e){if($(".globalsearch").is(":visible"))return $(".globalsearch").focus();e.preventDefault(),$("body").trigger("qsb-modal-show")}switch(i("?",r),i("/",t),$("a#kbdshx").click(r),o("h",u),o("f",d),o("d",h),o("a",p),o("m",f),o("j",t),e){case"members":w["↑"]="Previous host",w["↓"]="Next host",i("g",v,"Go to host's graphs"),i("u",S,"Go to host's Uptime Report"),i("p",l,"Pause/resume host"),i("x",c,"Delete host");break;case"edithost":i("u",s,"Switch to Uptime tab"),i("g",v);break;default:i("g",v),i("u",S)}}},WormlyATDisableEnter=function(t){t.keypress(function(t){13==t.which&&t.preventDefault()})},WormlyATSetup=function(a,l){$("#roster-name").focus().select(),$(".roster-list").popupList().bind("shown",function(t,e){e.find("input").focus()});$.each(["#copy-roster-list","#switch-roster-list"],function(t,e){var n=$(e),i=n.find("input");n.filterList(i),i.arrowSelect(n)}),a.find("a[data-roster-id]").click(function(t){$.ajaxSetup({timeout:5e3});
1var e=$(t.target).data("roster-id");$.ajax({url:"/atsetup/getRosterData/rid/"+e,type:"GET",dataType:"text",success:function(t,e,n){var i=new SycuseAJAXResponse(n).getValue("matrix");for(var o in l.find("input[type=checkbox]").prop("checked",!1),i){var r=i[o];for(var s in r)l.find("[name="+o+"-"+s+"]").prop("checked",!0)}a.find(".other-rosters").hide()}})})};function WormlyAudit(){this.start=function(){!function(){var t=$("#audit-search-form");if(0==t.length)return;var n=t.find("input");n.val(getUrlValue("search")),t.show(),n.focus(),t.submit(function(t){var e="/audit/list/search/"+encodeURIComponent(n.val());["max","jumpTo"].forEach(function(t){getUrlValue(t)&&(e+="/"+t+"/"+getUrlValue(t))}),location.href=e,t.preventDefault()})}()}}function WormlySHMetrics(){$(".js-needed").show()}function WormlyQSB(n,e,r,i){var t,o,s,a,l,c,u;n&&(768<$(window).width()?d():h({dontPopulate:!0}),$("body").on("qsb-modal-show",f),$(".globalsearch").on("focus",function(t){if("members"==i.schema)return!0;f()}));function d(){t=$(WORMLY_TEMPLATES.qsb).appendTo("body"),o=$("form",t),new WormlySearcher(s=o.find("input"),t.find(".hosts"),new WormlySearchPrinterQSB(e,t.find(".contacts"),t.find(".sensors"))),(u=t.find(".hosts")).filterList(s,{childSelector:"tr",reduceCallback:function(t){return $(t).find(".textualtitle").text()},scrollElement:t.find(".table-container")}),s.arrowSelect(t,"tbody tr"),c=!0,h()}function h(t){void 0===t&&(t={}),a=r.get("hosts-hosts");var e=r.get("hosts-fingerprint")||"";if("string"==typeof a)try{a=JSON.parse(a)}catch(t){e=""}n==e?t.dontPopulate||p(a):$.get("/members/getHostList/"+n,function(t,e,n){var i=new SycuseAJAXResponse(n),o=i.getValue("hosts");r.set("hosts-fingerprint",i.getValue("fingerprint")),r.set("hosts-hosts",JSON.stringify(o))},"html")}function p(t){l||(e.populate(u,t,"popup_host_template","tr",50),l=!0)}function f(){c||d(),p(a),availableHeight=window.innerHeight-72-120-30,t.find(".table-container").css({height:.85*availableHeight+"px",overflowY:"scroll"}),t.modal("show"),s.focus()}}function WormlySearcher(t,e,n){var i=this;this.searchTimeout=null,this.xhr=null,this.previousSearch="",this.rowContainer=e,this.resultPrinter=n,this.waitSearch=$.proxy(this.waitSearch,this),this.doSearch=$.proxy(this.doSearch,this),t.one("keydown",function(){t.keyup(function(t){i.waitSearch(t.target.value)})}),""!==t.val()&&(t.trigger("keydown"),t.trigger("keyup"))}function WormlyStorage(t){this.storage=t,this.set=$.proxy(this.set,this),this.get=$.proxy(this.get,this),this.isSupported=$.proxy(this.isSupported,this);try{var e="__test__";this.storage.setItem(e,e),this.storage.removeItem(e),this.ok=!0}catch(t){this.ok=!1}}function WormlySearchPrinterFull(t){this.filler=t,this.print=$.proxy(this.print,this)}function WormlySearchPrinterQSB(t,e,n){this.filler=t,this.sensorList=n,this.contactList=e,this.print=$.proxy(this.print,this)}function SycuseValJumpTo(t){(this.elem=document.getElementById(t))?(this.scrollto(this.elem),SycuseFireEvent(this.elem,"focus"),this.elem.select&&this.elem.select()):(elem=document.getElementById("SFc_"+t))&&this.scrollto(elem)}WormlySHMetrics.EPSILON=1e-10,WormlySHMetrics.prototype.initSHMetrics=function(){this._addValidation(),this._processRuleForm(),this._processRuleSets(),this._processMetricList(),$(".show-hidden-hosts").click(function(){$(this).closest(".hostname-list").find(".host").show(),$(this).remove()})},WormlySHMetrics.setSpinner=function(t,e,n){if(t.length){var i=t.parents("tr").data("hostid");if(t.removeClass().addClass("icon").empty(),n)return t.addClass("unknown").text("n/a");var o="/edithost/hostid/"+i+"#metrics";if(e){var r="<a title='Click to view metrics' href='"+o+"'>OK</a>";t.addClass("pass").html(" "+r)}else{var s="<a class='recentfailure' title='Click to view rules' href='"+o+"'>Breach</a>";t.addClass("warn").html(" "+s)}}},WormlySHMetrics.prototype.loadHostStates=function(c,u){var d=Math.round($.now()/1e3),h=$("#hostlist");$.ajax({url:"/shmetrics/hoststates/errorsonly/"+u,dataType:"text",timeout:1e4,success:function(t,e,n){var i=new SycuseAJAXResponse(n),o=WormlySHMetrics.setSpinner;if(!u){var r=i.success();r&&i.getValue("states").forEach(function(t){var e=h.find("[data-hostid="+t.hostid+"] .spinner"),n=0==t.breached&&c>d-t.lastseen&&!t.errcount;n||e.is(":visible")||e.parent().parent().find(".utstat .icon").addClass("warn");o(e,n,!1)}),h.find("[data-shmv2] .spinner").each(function(){o($(this),!1,!r||void 0)})}var s=i.getValue("otherErrors");for(var a in s){var l=h.find("[data-hostid="+a+"] .state span").text(" ");if(0==l.length)$(".metrics-errors").fadeIn().attr("href","/shmetrics/showAllErrors");else o(l,!1,!1)}}})},WormlySHMetrics.prototype._processMetricList=function(){var n=$("#metric-search-name"),i=$("#metric-search-form");if(n.length){n.select();var t=$("#shm-filter"),o=i.find("[name=hostid]");$("#shm-since input").click(function(){location.assign($(this).data("link"))}),i.submit(function(t){t.preventDefault();var e=setUrlValue("search",encodeURIComponent(n.val()));e=setUrlValue("page",1,e),e=setUrlValue("hostid",o.val(),e),location.assign(e)});var e=t.find("ul"),r=t.find(".sticker"),s=e.find("input"),a=e.find("li[data-hostid]");t.popupList(),e.filterList(s),s.arrowSelect(e),a.click(function(t){var e=$
1(t.target).closest("li");r.find(".caption").text(e.text()),o.val(e.data("hostid")),i.trigger("submit")})}},WormlySHMetrics.prototype._addValidation=function(){var o={required:function(t){return""!==t},numeric:function(t){return/^\-?[\d\.]+$/.test(t)}};$("form").submit(function(i){var t=$(this);t.find("[data-type]").hide(),t.find("[data-validate]").each(function(){var t=$(this),e=t.closest(".violatable").removeClass("has-error");e.find("[data-type]").hide();var n=function(t){for(var e=t.val(),n=t.data("validate").split(" "),i=0;i<n.length;i++)if(!o[n[i]](e))return n[i]}(t);n&&(i.preventDefault(),e.addClass("has-error").find("[data-type="+n+"]").show())})})},WormlySHMetrics.prototype._processExtraRosters=function(){var t=$("a.rulesetroster, a.ruleroster"),e=$("#host-modal").find("#roster-select").find("#zero-roster"),n=e.text(),i=$("<option>").text("— Don't send alerts —").prop("value",-1);t.on("pre-show",function(){var t=$(this).hasClass("ruleroster")?"— Inherit from host / rule set —":"— Inherit from host —";e.text(t),e.after(i)}),t.on("post-hide",function(){i.remove(),e.text(n)})},WormlySHMetrics.prototype._processRuleSets=function(){var s=$("#rulesetname");if(s.length){function t(){var t=u.val(),e=u.find(":selected").text().trim();a.hide();var n=a.filter("[data-id="+t+"]");n.show();var i=n.hasClass("empty"),o="-1"==t;l.val(i||o?1:0);var r=$(".newruleset",u.parent());o?(s.prop("disabled",0).val(c),r.show()):(s.prop("disabled",1).val(e),r.hide())}var a=$(".rs-usage-info"),l=$("#assigntohosts"),c=s.val(),u=$("#rulesetid");u.on("keyup change",t),s.on("keyup change",function(){c=s.val()}),t()}},WormlySHMetrics.prototype.populateMetricsTab=function(k,S,C){this._processExtraRosters();var T=$("#shmv2-tab"),_=$("#shm-floater");location.hash||location.replace($("#modetabs .active").find("a").attr("href"));function E(t){return null===t.lastmetricvalue?"Not ready":t.nicevalue+" "+t.niceunit}var A=$("table.metrics").length,D=!1;$(window).on("beforeunload",function(){D=!0}),$("input.code").on("focus click",function(){this.select()}),this.hostMetricsUpdateHelper=function(t,e){if(!t){var n=new SycuseAJAXResponse(e);t=n.getErrorMessage()}if(t)setTimeout(function(){$(".shmerror").show().siblings().hide()},D?1e3:1);else{var i=n.getValue("hostrules"),o=n.getValue("metricsSeen"),r=n.getValue("disabled"),s=n.getValue("reportedErrors");if(this._renderErrors(s,T,_,A),A){if($("#zzmetrics .spinner").hide(),r)_.find(".metric-status").addClass("checkeroff").text("Metrics collection is paused");else{var a=o?o+" "+$.pluralize(o,"metric","metrics")+" received":"No metrics received";_.find(".metric-status").toggleClass("noerror",0<o).toggleClass("warn",0==o).find(".metrics-count").text(a)}for(var l,c,u=0,d=Math.round(Date.now()/1e3),h=!1,p=0;p<i.length;p++)for(var f=i[p],m=f.rules,g=0;g<m.length;g++){var v=m[g],y=$("[data-ruleset="+f.rulesetid+"][data-rule="+v.ruleid+"]"),b=y.find(".graphlink");if(0<v.states.length){var w=v.states.map(function(t){return encodeURIComponent(t.name)}).join(C),x="/jsgraphs/hostid/"+k+"/metrics/"+w+"/returnto/"+getReturnToURL()+"/ruledesc/"+encodeURIComponent(v.info.description);b.prop("href",x).find("span").removeClass("disabled")}else b.hide();y.find(".state .lgicon").toggleClass("warn",v.isbreached).toggleClass("pass",!v.isbreached),y.toggleClass("highlight-yellow",v.isbreached),y.find(".lastseen").addClass(0!=v.lastseen&&3600<v.lastseenago?"seen-long-ago":"").text(0==v.lastseenago?"now":v.nicelastseen).attr("data-ts",v.lastseen),y.find(".bre").text("0 seconds ago"==v.nicebreachedat?"now":v.nicebreachedat).attr("data-ts",v.breachedat),y.find(".obs").html(0==(l=v.states).length?"Nothing yet":1==l.length?"<span class='"+(l[0].isbreached?"metrics-observation-breached":"")+"'>"+E(l[0])+"</span>":l.map(function(t){var e=$('<div class="nobr">').text(t.label+": "+E(t));return e.toggleClass("metrics-observation-breached",!!t.isbreached),e.clone().wrap("<p>").parent().html()}).join("")),v.states.filter(function(t){if(t.breachedat&&t.isbreached){var e=d-t.receivedat;S<e&&(h=!0)}return t.isbreached}).length&&u++}c=0==u?"All OK":u+" "+$.pluralize(u,"rule","rules")+" breached",_.find(".rule-status").toggleClass("warn",0<u).toggleClass("noerror",u<=0).text(c),T.toggleClass("warn",!r&&(0<u||0==o)
1),h&&$("#clear-breaches").removeClass("hide"),this._notifyAfterUpdate&&this._notifyAfterUpdate()}}}.bind(this),this.fetchHostMetricsData(k,this.hostMetricsUpdateHelper)},WormlySHMetrics.prototype.notifyAfterUpdate=function(t){this._notifyAfterUpdate=t},WormlySHMetrics.prototype._renderErrors=function(t,e,n,i){if(t){if(!i){var o=$("#zzmetrics");o.is(":visible")?this._showErrorDialog():o.on("afterShow",this._showErrorDialog.bind(this))}e.addClass("warn"),n.find(".error-status").parent().removeClass("soft-hide");var r=$("#reported-errors-modal");$("a.config-error").click(function(){r.modal({show:!0,keyboard:!0,backdrop:!0})}.bind(this)),10<t.errors.length&&r.find(".modal-body").css("overflow","scroll").css("max-height","20em");var s=r.find("table");for(var a in t.errors){var l=t.errors[a],c=$("<tr><td /><td><a /></td></tr>");c.find("td:first-child").text(l.nicetime);c.find("td a").text(t.lookup[l.errorcode]).attr("href","/shmetrics/errorReport/id/"+l.reportid).attr("title","Click to view more details (new window)").attr("target","_blank");s.append(c)}}},WormlySHMetrics.prototype._showErrorDialog=function(){this._edShown||(this._edShown=!0,new AlbassDialog({title:"Metrics Errors Detected",body:WORMLY_TEMPLATES["metrics-errors"]}))},WormlySHMetrics.prototype.fetchHostMetricsData=function(t,i){$.ajax({url:"/shmetrics/hostRules/hostid/"+t,dataType:"text",timeout:1e4,success:function(t,e,n){i(null,n)},error:function(t,e){i(e)}})},WormlySHMetrics.prototype._processRuleForm=function(){var t=$(".rule-form");if(t.length){function e(){var i=s.val(),o=r.val();u.find("tr").each(function(){var t=$(this),e=t.data("value"),n=t.find(".value");n.removeClass("metrics-observation-breached metrics-observation-not-breached"),n.addClass(function(t,e,n){switch(t=parseFloat(t),n=parseFloat(n),e){case"GREATER":return n<t;case"LESS":return t<n;case"GREATER_OR_EQUAL":return n<=t;case"LESS_OR_EQUAL":return t<=n;case"EQUAL":return Math.abs(t-n)<WormlySHMetrics.EPSILON;case"NOT_EQUAL":return t!=n}}(e,i,o)?"metrics-observation-breached":"metrics-observation-not-breached")})}var n,i=t.find("#metricname"),o=i.val(),a=i.siblings().last(),r=t.find("#parameter"),s=t.find("#comparison"),l=t.find(".nothing"),c=t.find(".values"),u=c.find("table tbody"),d=c.find("table thead"),h=t.find("#result-template");r.add(s).on("keyup change",e);function p(t){t.fadeIn()}function f(s){var t,o;$("#metric-match").hide(),l.empty(),u.empty(),t=i.val(),o=function(t,e){var n=$(".niceunits");if(a.addClass("hidden"),!e.length)return l.text("No matching metrics found"),d.hide(),n.text(""),p(l);l.empty(),d.show(),e=e.slice(0,50);for(var i="",o=0;o<e.length;o++){var r=e[o];i=i||r.niceunitname_long,u.append($.tmpl(h,r))}p(c),n.hide().text(i).fadeIn(),s&&s()},$.ajax({url:"/shmetrics/matchMetrics",type:"POST",dataType:"text",data:{pattern:t,hostid:getUrlValue("hostid")},timeout:1e4,success:function(t,e,n){var i=new SycuseAJAXResponse(n);o(null,i.getValue("metrics"))},error:function(t,e){o(e)}})}i.on("keyup change",function(){o!=i.val()&&(o=i.val(),clearTimeout(n),0<i.val().length&&(n=setTimeout(f,700),a.removeClass("hidden")))}),i.val()&&f(e)}},WormlySearcher.prototype.waitSearch=function(t){if(t!==this.previousSearch){var e=this.rowContainer.children().filter(":visible").length?500:1;clearTimeout(this.searchTimeout),this.xhr&&this.xhr.abort(),this.searchTimeout=setTimeout(this.doSearch.bind(this,t),e)}},WormlySearcher.prototype.doSearch=function(t){this.previousSearch=t,this.xhr=$.ajax({type:"POST",url:"/search/full",data:{query:t},dataType:"text",success:this.resultPrinter.print})},WormlyStorage.prototype.set=function(t,e){if(this.ok)try{this.storage.setItem(t,e)}catch(t){}},WormlyStorage.prototype.get=function(t){return this.ok?this.storage.getItem(t):void 0},WormlyStorage.prototype.isSupported=function(){return this.ok},WormlySearchPrinterFull.prototype.print=function(t,e,n){var r=new SycuseAJAXResponse(n);$.each(["contact","sensor"],$.proxy(function(t,e){var n=$("#"+e+"list"),i=n.find("tbody"),o=r.getValue(e+"s");this.filler.populate(i,o,"#"+e+"_template"),n.toggle(0!=o.length)},this))},WormlySearchPrinterQSB.prototype.print=function(t,e,n){var i=new SycuseAJAXResponse(n);this.filler.populate(this.sensorList,i.getValue("sensors"),"popup_sensor_template"),this.filler.populate(this.contactList,i.getValue("contacts"),"popup_contact_template")}
1,SycuseValJumpTo.prototype.scrollto=function(t){var e=$(t).offset().top;ss=new SycuseWindowSize,0<(e-=ss.getY()/2)&&window.scrollTo(0,e)};var SycuseValidationState=function(i){return{clear:function(){i.find("div.form-group").removeClass("has-error violation"),i.find("p.text-danger").remove()},add:function(t,e){i.find("#SFc_"+t).addClass("has-error violation");var n=i.find("#lbl4"+t);e.forEach(function(t){n.after('<p class="text-danger SFviolmessage"><span class="icon fail">'+t+"</span></p>")})}}},WormlyResumeAfter=function(t){function n(t){$("#modal-resume-after").is(":checked")||o($(t.target).find("input").attr("id"))}function i(t){var e=$(t.target).attr("id");o(e),"modal-resume-after"==e&&$("#resume-after-hours").focus()}function o(t){$("#resume-after-link").toggle("modal-resume-after"!=t),$("#resume-after-inputs").toggle("modal-resume-after"==t)}!function(t){switch(t){case"members":var n=$("#resume-after-modal"),i=n.find(".caption"),o=$("#modal-host-name"),r=$("#modal-host-id");$(".enables-modal.single").click(function(t){r.val($(t.target).closest("a").data("hostid")),o.text($(t.target).closest("tr").find(".textualtitle").text()),i.text("Stop monitoring this host?")}),$(".enables-modal.multiple").click(function(){var t=$(".cxH:checked").map(function(t,e){return $(e).data("host")}).get();if(r.val(t.join(",")),n.data("forceHidden",0===t.length),1==t.length){var e=$(".cxH:checked").closest("tr").find(".textualtitle").text();i.text("Stop monitoring this host?"),o.text(e)}else i.text("Stop monitoring these "+t.length+" hosts?"),o.text(t.length+" hosts")});break;case"contacts":$(".enables-modal").click(function(t){$("#modal-contact-id").val($(t.target).closest("a").data("c
1ontactid")),$("#modal-contact-name").text($(t.target).closest("tr").find(".textualtitle").text())})}}(t),$(document).ready(function(){var e=$("#resume-after-modal");$("input[name=resume-alerts]").change(i),$("#resume-when li").hover(n),$(".enables-modal").click(function(t){if(t.preventDefault(),e.data("forceHidden"))return!1;e.attr("tabindex",-1).modal({show:!0,keyboard:!0,backdrop:!0}),$("#resume-when input:eq(0)").focus()}),(new WormlyValidator).attach(),$("#resume-after-form").submit(function(){var t=$("input[name=resume-alerts]:checked");if("modal-resume-after"==t.attr("id")){var e=60*$("#resume-after-hours").val()*60+60*$("#resume-after-minutes").val();if(e<=0)return alert("Please specify a value"),!1;t.val(e)}return!0}),$("#resume-after-inputs").click(function(t){$("#resume-after-modal input[value=custom]").attr("checked",1),t.preventDefault()})})};function WormlyDesktopView(t){this._scrollDetect=t,this._originalViewPort=$("meta[name=viewport]").attr("content"),this._desktopView=sessionStorage.getItem("desktopView"),1==this._desktopView&&this._setDesktopView(),$(".desktop-mode").click(this._toggle.bind(this)).show()}function WormlyScrollDetect(){this._addSidebarScrollWatcher(),$(window).data("wormly-sidebar-resize-bound")||$(window).resize(this._addSidebarScrollWatcher.bind(this)).data("wormly-sidebar-resize-bound",!0),this.enableHeadroomJS()}function WormlySidebarCollapser(){var t=$("div.sidebar").is(":visible"),e=$(".cpbody").get(0),n=e.getAttribute("data-collapsed-classes"),i=e.className;function o(){e.className=n,n=i,i=e.className}$(".sidebar-toggle").click(function(){return t=t?($(".sidebar").hide(100,o),!1):($(".sidebar").animate({width:"toggle"},100,o),new WormlyScrollDetect,!0),$("#wapp_jsgraphs").trigger("sidebar-changed",t),!1})}WormlyHostRoster=function(){function n(){return s.data("type")}function i(){var t=s.data("ids");return t||$.makeArray($(".cxH:visible:checked").map(function(){return $(this).attr("name").replace(/\D/g,"")})).join(",")}function o(){var t=window.location.pathname.replace("/showmodal/[^/]","").replace(/\//g,";")+window.location.hash;return encodeURIComponent(t)}function r(){return"/type/"+n()+"/ids/"+i()}function t(){e.toggleClass("disabled",c.val()<=0),e.attr("href","/atsetup/edit/rid/"+c.val()+r()+"/returnto/"+o())}var s,a=$("#host-modal"),l=a.find("form"),c=a.find("#roster-select"),u=a.find("#create-roster"),e=a.find("#edit-this-roster"),d=a.find("#zero-roster");c.change(t).keypress(t),a.bind("show.bs.modal",function(){t(),c.focus()}),$("body").on("click","[data-currentroster]",function(t){t.preventDefault(),(s=$(this)).trigger("pre-show"),d.prop("disabled",!s.data("allownone")),c.val(s.data("currentroster")||"0");var e=i();l.attr("action",setUrlValue("returnto",o(),l.attr("action"))),e&&(a.find("input[name=ids]").val(e),a.find("input[name=type]").val(n()),u.attr("href","/atsetup/create"+r()+"/returnto/"+o()),a.attr("tabindex",-1).modal({show:!0,keyboard:!0,backdrop:!0}).one("hide",function(){s.trigger("post-hide")}))});var h=getUrlValue("showmodal");if(h){var p=h.split("-"),f=p.shift(),m=p.join("-");$("[data-currentroster][data-type="+f+"][data-ids="+m+"]").click()}},function($){$.fn.onClickOutside=function(e){var n=this;return $(document).mouseup(function(t){$.contains(n.get(0),t.target)||e()}),this}}(window.jQuery),function($){$.fn.onInputChange=function(e){var n=this.val();return this.on("keyup",$.proxy(function(){var t=this.val();n!=t&&e(n=t)},this)),this}}(window.jQuery),function($){"use strict";function o(){var t=function(){this._isMobile||this.list.find("input:eq(0)").focus()}.bind(this);if(this.list.is(":visible"))t();else{for(var e=$.fn.popupList.all,n=0;n<e.length;n++)e[n].hidePopup();this.list.show(),this._useMobileMode?(this.list.addClass("modal mobile"),this._closeButton.css({zIndex:1e4,position:"fixed",top:"0px",right:"2px"}).show().on("click",function(){this.hidePopup()}.bind(this)).appendTo($("body"))):this.list.position({my:"left top",at:"left bottom",of:this.link,collision:"flip"}),t(),this.trigger("shown",[this])}}function r(){this.sticky=!0,o.call(this)}$.fn.popupList=function(n){n=n||{};var i={element:"ul",showDelay:100,hideDelay:300,fullScreenMobile:!1,hideOnEnter:!0};
1return n=$.extend(!0,i,n),this.each(function(){var e=$(this);e._isMobile=screen.width<768,e._useMobileMode=n.fullScreenMobile&&e._isMobile,$.fn.popupList.all.push(e),e.list=(n.container?n.container:e).find(n.element);var t=!1;n.trigger?(e.link=n.trigger,t=!0):e.link=e.find(".sticker"),e.list.on("click keyup change",function(){e.sticky=!0}),e.bind("trigger-sticky-show",function(){r.call(e)}),e.bind("trigger-hide",function(){e.hidePopup()}),e.mouseIns=0,e._useMobileMode?e._closeButton=$('<button type="button" class="close">&times;</button>').hide():e.add(t?e.link:n.container).hover(function(){e.mouseIns++},function(){e.mouseIns=Math.max(e.mouseIns-1,0)}).hoverIntent({over:function(){(function(){this.sticky=!1,o.call(this)}).call(e)},timeout:i.hideDelay,out:function(t){(function(){if(this.sticky||0<this.mouseIns)return;this.hidePopup()}).call(e)},interval:i.showDelay}),e.link.click(function(){return r.call(e),!1}),$(document).keyup(function(t){(27==t.which||13==t.which&&n.hideOnEnter)&&e.hidePopup()}),$(document).click(function(t){$.contains(e.get(0),t.target)||$.contains(e.list.get(0),t.target)||e.hidePopup()}),e.hidePopup=function(){e._useMobileMode&&e._closeButton.hide(),e.list.hide().removeClass("modal mobile")}}),this},$.fn.popupList.all=[]}(window.jQuery),function($){"use strict";var s="";function a(){return this.find(this.settings.childSelector)}function i(){this.bottomItem=a.call(this).filter(":not(.hide)").eq(-5)}$.fn.filterList=function(t,e){this.input=t=$(t),this.settings=$.extend({},$.fn.filterList.defaults,e);var n=this;return t.one("keydown",function(){t.keyup(function(t){(function(t){var n=this.input.val();if(n==s||t&&-1<$.inArray(t.which,[38,40,13]))return;n=escapeRegExp(s=n).toLowerCase().replace(new RegExp("[ ]","g"),".*");var i=this,e=a.call(this),o=e.filter(function(t,e){return i.settings.reduceCallback(e).toLowerCase().match(new RegExp(n))});if(e.toggleClass("hide",!0),e.toggleClass("overflow-hidden",!1),o.length>i.settings.maxVisibleRows)for(var r=0;r<o.length;r++)r<i.settings.maxVisibleRows?o.eq(r).toggleClass("hide",!1):o.eq(r).toggleClass("overflow-hidden",!0);else o.toggleClass("hide",!1);this.trigger("list-changed",[o])}).call(n,t)})}),this.settings.scrollElement&&this.settings.scrollElement.on("scroll",function(t){var e,n,i,o,r;if(null===this.bottomItem)return;if(this.settings.scrollElement.get(0)===window){var s=document.documentElement.scrollTop||document.body.scrollTop;o=s+window.innerHeight}else o=t.target.scrollTop+t.target.offsetHeight;if(!(n=this.bottomItem.get(0)))return;if(n.offsetTop<=o)for(e=this.bottomItem.siblings(".overflow-hidden"),r=0;r<this.settings.maxVisibleRows;r++)(i=e.eq(r)).length?this.bottomItem=i.removeClass("hide overflow-hidden"):this.bottomItem=null}.bind(this)),t.keydown(function(t){if(13==t.which){var e=n.find(n.settings.childSelector+":visible");1==e.length&&(t.preventDefault(),e.find("a:eq(0)").simulateClick())}}),i.call(this),this.on("list-changed",i.bind(this)),this},$.fn.filterList.defaults={childSelector:"li:not(.description)",maxVisibleRows:50,reduceCallback:function(t){return $(t).text()},scrollElement:void 0}}(window.jQuery),function($){"use strict";$.fn.arrowSelect=function(r,s){s=s||"li:not(.description)";var a=$(this),l=$();function n(t){var e=r.find(s+":not(.hide)"),n=e.index(l)+t;n=Math.max(0,n),n=Math.min(e.length-1,n);var i,o=e.eq(n);i=o,l.removeClass("selected"),(l=i).addClass("selected"),a.trigger("row-selected",[o])}return r.add(a).bind("list-changed",function(){l.is(":visible")||n(0)}),r.attr("placeholder")||r.attr("placeholder","Type to search..."),a.keydown(function(t){if(13!=t.which)return 27==t.which?(l.removeClass("selected"),l=$()):9==t.which?(a.blur(),!1):void function(t){var e=t.which-39;if(1!=Math.abs(e))return;t.preventDefault(),n(e)}(t);if(t.preventDefault(),t.stopImmediatePropagation(),l.length){var e=l.find("a.jump");return e.length||(e=l.find("a:eq(0)")),e.simulateClick()}}),this}}(window.jQuery),function($){"use strict";$.fn.helpText=function(e){var n=this;return this.bind("keydown click blur",function(t){n.val()==e&&n.val(""),$(this).unbind(t)}),this.val(e),this}}(window.jQuery),$.fn.simulateClick=function(){return this.each(function(){if("createEvent"in document){var t=this.ownerDocument,e=t.createEvent("MouseEvents");
1e.initMouseEvent("click",!0,!0,t.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null),this.dispatchEvent(e)}else this.click()})},function($){$.fn.keepCloseTo=function(e){var t=$.proxy(function(){var t=e.offset();this.css({top:t.top+e.outerHeight()+5,left:t.left+5,position:"absolute"})},this);return $(window).resize(t),t(),this}}(window.jQuery),function($){var r={},e={"&":"&amp;","'":"&#39;",'"':"&quot;","<":"&lt;",">":"&gt;"};function n(t){return e[t]}$.escapeHTML=function(t){return"string"!=typeof t?t:t.replace(/[&"'\<\>]/g,n)},$.tmpl=function(t,e,n){if(!(t in r)){if(void 0===n){var i=$(t);if(!i.length)throw"Could not find template by selector: "+t;n=i.html().trim()}var o="var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+n.replace(/[\r\t\n]/g," ").replace(/'(?=[^%]*%>)/g,"\t").replace(/'/g,"\\'").replace(/\t/g,"'").replace(/<%=(.+?)%>/g,"',$.escapeHTML($1),'").replace(/<%/g,"');").replace(/%>/g,"p.push('")+"');} return p.join('');";r[t]=new Function("obj",o)}return r[t](e)}}(window.jQuery),window.jQuery.pluralize=function(t,e,n){return"number"!=typeof t&&(t=0),1<t||0==t?n:e},WormlyDesktopView.prototype._toggle=function(){this._desktopView?this._setNormalView():this._setDesktopView()},WormlyDesktopView.prototype._setDesktopView=function(){this._scrollDetect.disableHeadroomJS(),$("meta[name=viewport]").attr("content","width=1200"),this._desktopView=1,sessionStorage.setItem("desktopView",1),$("footer li.hide").removeClass("hide"),$("#kbdshx").parent().hide()},WormlyDesktopView.prototype._setNormalView=function(){$("meta[name=viewport]").attr("content",this._originalViewPort),this._desktopView=0,sessionStorage.removeItem("desktopView"),this._scrollDetect.enableHeadroomJS()},WormlyScrollDetect.prototype._addSidebarScrollWatcher=function(){var t=$("div.sidebar");if(0!=t.length&&!/none/i.test(t.css("display"))&&!$(window).data("wormly-sidebar-watched")){var e=parseInt(t.css("top"));$(window).data("wormly-sidebar-watched",1),$(window).scroll(n),n()}function n(){$(window).scrollTop()>e?t.css("top",0):t.css("top",e-$(window).scrollTop())}},WormlyScrollDetect.prototype.enableHeadroomJS=function(){if(!($(window).data("wormly-sidebar-watched")||768<$(window).width())){var t=$("#main"),e=$("nav.navbar"),n=e.height(),i={offset:n-5,tolerance:{up:4,down:0}};this._origMargin=t.css("margin-top"),t.css("margin-top",n+"px"),e.addClass("navbar-fixed-top");var o=new Headroom(e.get(0),i);o.init(),this._headroom=o}},WormlyScrollDetect.prototype.disableHeadroomJS=function(){this._headroom&&this._headroom.destroy(),$("#main").css("margin-top",this._origMargin),$("nav").removeClass("navbar-fixed-top")};var WormlyRealTimeUI=function(n,u,e,i,c,o,r){var s,a,l,d=0,h=!1,p=void 0,f={},m={},g={},v=$(window).width()<768,b=$("#runtestnow");window.WebSocket&&function(t){if(t)return M(t,$(".sumstatus"));if(v)return;for(var e=$("tr"),n=0;n<e.length;n++){t=e[n].getAttribute("data-hostid");isNaN(parseInt(t))||M(t,e[n])}}(n),e&&e.notifyAfterUpdate(function(){M("metrics",$("#zzmetrics"))}),n&&b.on("click",function(){$.ajax({type:"POST",url:"/edithost/runtestnow",data:"hostid="+n}).done(function(t){t.ok||new AlbassDialog({title:"Error",body:t.err})}),L({op:"start",hostid:n})}),$.loadScript(["/jsb/socket.io.slim.min.4.5.3.js"],function t(e){s&&(s.destroy(),clearInterval(l));s=io.connect({path:"/wss/socket.io",transports:["websocket"]});s.on("connect",S);l=setInterval(S,3e5);s.on("disconnect",t);s.on("clockupdate",function(t){d=t-Date.now()});s.on("hoststate",function(t){t.moment&&(i=t.moment),p=$("tr[data-hostid="+t.hostid+"]"),t.shm&&n&&N(),t.shm&&!n&&R(t),!t.shm&&n&&L(t),t.shm||n||D(t),o&&!n&&x()&&(0==w?($(".no-hosts-hidden").addClass("hidden"),$(".hosts-hidden").removeClass("hidden")):($(".no-hosts-hidden").removeClass("hidden"),$(".hosts-hidden").addClass("hidden"))),r&&r(t)});s.on("sensorstate",W);s.on("rulestate",k)});var w=0;function x(){var t=$("#hostlist tbody tr:visible").length,e=w!==t;return w=t,e}function k(t){e.hostMetricsUpdateHelper(null,t)}function S(){n?s.emit("subscribeToHosts",[n],i):s.emit("subscribeToUser",i)}function C(t){h&&(f[t][2].timestamp=Math.round(Date.now()/1e3))}function T(t,e){h&&(f[t][0].timestamp=e)}function _(t){if(0==p.length){if("start"==t.op)return;if(t.state)return;if(!(p=function(t){var e=function(t){if(void 0===a){var e=new WormlyStorage(window.localStorage).get("hosts-hosts");try{e=JSON.parse(e)}catch(t){return!1}for(var n in a={},e)a[e[n].hostid]=e[n].nicename}return a[t]}(t.hostid);if(e){var n=$("#hostrow_template").html(),i=$($.tmpl(null,t,n.replace(/0000000/g,"<%= hostid %>")));return i.find(".textualtitle").text(e),$("#hostlist tbody").prepend(i),v||M(t.hostid,i,t.moment),i}}(t)))return}return 0<p.length}function E(t){t.addClass("yellowfade"),setTimeout(function(){t.removeClass("yellowfade")},900)}function A(t,e){var n=e.hostid,i=h?f[n][1]:{};if(g.hasOwnProperty(n)||(g[n]=parseInt(p[0].getAttribute("data-sumstate"))),"start"==e.op){if(!t.skipSpinner)var o="spinner fa-spin",r=null;i.timestamp=t.progressText,b.addClass("disabled")}else{if(b.removeClass("disabled"),e.state){if(!g[n]&&c)return p.remove();o="pass",r=t.passText;delete m[n],T(n,-1),g[n]=1}else{o="fail",r=t.failText;C(n);var s=!1;e.lastchanged?s=e.lastchanged:m[n]||g[n]&&(s=e.moment),s&&T(n,m[n]=s);var a=$(".recentfailure",p);
1if(!a.length){var l=$("time",p).last();a=$("<a class='recentfailure' />").appendTo(l.parent()),l.detach().appendTo(a)}a.attr("href","/viewfailures/hostid/"+n+"/day/Today"),g[n]=0}i.timestamp=e.moment,E($("td, th",p))}I(n),o&&(t.container.find(".icon").get(0).className="icon "+o),r&&t.container.find(".utdesc").text(r)}function D(t){_(t)&&A({passText:"OK",failText:"Down",progressText:"<span class='icon spinner fa-spin' />",container:$(".utstat",p),skipSpinner:!v},t)}function L(t){p=$(".sumstatus"),A({passText:"No errors",failText:"Down",progressText:"In Progress",container:$(".status",p)},t)}function R(t){_(t)&&(WormlySHMetrics.setSpinner($(".state .icon",p),t.state,!1),t.state||(C(t.hostid),I(t.hostid)))}function N(){if($("#btn-metrics-pre-setup").length)return window.location=$("#btn-metrics-pre-setup").attr("href");E($("table.metrics"))}function W(t){p=$("tr[data-hsid="+t.hsid+"]"),E($("td",p));var e,n,i,o,r=$(".statedetail .icon",p);e=r,n=t.result?"pass":"fail",i=t.result?"Passed":"Failed",o=t.result?"":t.errormsg,e.attr("class","icon "+n),e.find(".hover").attr("data-original-title",o).text(i)}function M(t,e,n){h=!0;var i=[];$("time",e).each(function(t,e){i.push({timestamp:n||parseInt(e.getAttribute("data-ts")),extended:e.getAttribute("data-extended"),elem:e,ago:!e.getAttribute("data-notago"),short:!!e.getAttribute("data-short")})}),f[t]&&clearTimeout(f[t][f[t].length-1].ticker),i.push({ticker:setTimeout(I.bind(null,t),500)}),f[t]=i}function I(t){if(h){var e,n=f[t],i=(Date.now()+d)/1e3,o=1/0,r=n.length-1;for(y=0;y<r;y++){e="";var s=n[y],a=i-s.timestamp;if(isNaN(s.timestamp))s.elem.innerHTML=s.timestamp,a=0;else if(-1===s.timestamp)"&nbsp;"!==s.elem.innerHTML&&(s.elem.innerHTML="&nbsp;");else if(0===s.timestamp)"Never"!==s.elem.innerHTML&&(s.elem.innerHTML="Never");else if(a<86400){if(s.extended){var l=new Date(1e3*(s.timestamp+u));e+=String("0"+l.getUTCHours()).slice(-2)+":"+String("0"+l.getUTCMinutes()).slice(-2)+":"+String("0"+l.getUTCSeconds()).slice(-2)+" ("}e+=a<=1?"Now":WormlyTimeSince(1e3*s.timestamp,1e3*i,s.short)+(s.ago?" ago":""),s.extended&&(e+=")"),e!=s.elem.innerHTML&&(s.elem.innerHTML=e)}o=Math.min(o,a)}var c=6e4;o<=60?c=500:o<=3600&&(c=5e3),clearTimeout(n[r].ticker),n[r].ticker=setTimeout(I.bind(null,t),c)}}x()},WormlyTestToolProxy=function(n,t,i){var o,l,c,r,s,u,d=document.createElement.bind(document),a=!1,h="sensormode"===n,p=!1;$.loadScript(["/jsb/socket.io.slim.min.4.5.3.js"],function t(){a&&(N(),M({x:11,m:"Test failed due to lost connection."}));o&&o.destroy();o=io.connect({path:"/wstt/socket.io",transports:["websocket","polling"]});o.on("frag",W).on("invalid",L).on("othererror",R).on("disconnect",t).on("clientinfo",E).on("storedtest",D)});var f=$(h?"#checksetup":"#testform");h||f.on("submit",function(t){t.preventDefault()});var m=$("#cs_test"),g=$("#cs_abort"),e=m.html(),v=SycuseValidationState(f),y=$(".debuglog_container"),b=$("#testform-wrapper"),w=$(".test-intro"),x=$("#test-share"),k=$("#permalink"),S=$(".automate-promo");function C(t,e){!o&&h||(u={},t.preventDefault(),a||(a=!0,g.removeClass("hidden"),$("#test-progress").removeClass("hidden"),c=null,o.emit("performTest",{app:(h?"test_":"")+n,params:f.serialize()+"&hostid="+i+"&nodeid="+e}),m.html('<span class="icon spinner fa-spin" />&nbsp;&nbsp;Test in progress').attr("disabled",!0),y.addClass("hidden"),$("table",y).empty()))}m.on("click",C),g.on("click",function(t){t.preventDefault(),a&&(A(),M({x:11,m:"Aborted"}))}),$("#test-newtest").on("click",function(){b.slideDown(I),w.slideUp(),x.hide(),S.hide()}),k.on("click",function(){k.focus().select();try{document.execCommand("copy"),k.tooltip("show")}catch(t){}}),t?$("tr td:first-child",y).each(function(t){""!==this.className&&"html"!==this.className||(this.id="ttlogline_"+t,WormlySyntaxHighlight(null,this.id,"html"===this.className?"html":"css"))}):I();var T=-1<navigator.platform.indexOf("Win")?{}:{US:"🇺🇸",UK:"🇬🇧",DE:"🇩🇪",AU:"🇦🇺"};function _(t,e){var n=t.title;for(var i in T){var o=n.indexOf(" "+i);if(-1!==o){n=T[i]+" "+n.substring(0,o);break}}return n+(e?" ("+t.ip+")":"")}function E(t){if(h){r=$(WORMLY_TEMPLATES.checkersetup_test).appendTo("body"),p=!0,(s=r.find("#testing-node-select")).find(".icon").addClass("gear fa-spin"),r.attr("tabindex",-1).modal({show:!0,keyboard:!0,backdrop:!0}).on("hidden.bs.modal",function(t){r.remove(),p=!1,A()}),$("#test-progress").removeClass("hidden");var e=s.parent().find(".dropdown-menu");for(var n in t.nodes){var i=t.nodes[n];t.nodeid==i.id&&s.find(".node-title").html("<span class='hidden-xs'>Testing from</span> "+_(i,!1)),$(d("a")).on("click",function(t,e){A(),r.on("hidden.bs.modal",function(){r.remove(),C(e,t)}).modal("hide")}.bind(this,i.id)).html("<span class='icon refresh' />from "+_(i,!0)).attr("href","#").appendTo($(d("li")).appendTo(e))}}}function A(){a&&(o.emit("stopTest"),N())}function D(t){var e=JSON.parse(t).permalink;k.val(window.location.origin+e),x.show(),history.replaceState({},"",e),setTimeout(function(){"test-http-request"===n&&$("#target").val(f.serializeArray()[0].value),S.slideDown(500)},1500)}function L(t){v.clear();var e=JSON.parse(t),n=!1;for(var i in N(),e)n||(f.find("#"+i).focus(),n=!0),v.add(i,e[i]),e[i].forEac
1h(function(t){!h&&t.match(/hostname/i)&&"http"==f.values()[i].substring(0,4)&&new AlbassDialog({title:t,body:"<p>Are you trying to conduct an HTTP test?</p><p><a class='btn btn-success' href='/test-http-request'>Try the HTTP test tool</a></p>"})})}function R(t){if(h){if(A(),!p)return void new AlbassDialog({title:"An error occurred",body:t});M({x:11,m:"Wormly node was unable to complete test. Try again with a different node."}),M({x:13,m:t})}else v.clear(),N(),new AlbassDialog({title:"An error occurred",body:t+"  Please try again later."})}function N(){a=!1,m.html(e).attr("disabled",!1),g.addClass("hidden"),$("#test-progress").addClass("hidden")}function W(t){v.clear(),y.removeClass("hidden");var e=JSON.parse(t);if(e.x)M(e);else{if(N(),h){s.find(".icon").removeClass("gear fa-spin").addClass(e.hash.result?"pass":"fail");var n=r.find(".error");return e.hash.result?(n.text("Test completed successfully").css("color","#090"),setTimeout(function(){var t=$("#btnSaveOvl");WormlyTip.init(t.removeClass("hidden")),t.on("click",function(){$("#cs_save").trigger("click")})},500)):n.text(e.hash.errormsg),void r.find("button .cancel").text("Close")}b.slideUp();var i=new Date(Math.round(1e3*l));w.slideDown().find(".testmoment").text(i.toDateString()+" "+i.toTimeString().substring(0,8))}}function M(t){if(!h||p){var e=d("div");e.id="ttlogline_"+Math.random();var n=t.m;3072<n.length&&(n=(u[e.id]=n).substring(0,3072)+"⋯"),e.textContent=n;var i=d("td");i.appendChild(e);var o=d("tr");o.appendChild(i);var r,s=d("td");switch(1e-5<t.t-c&&(s.textContent=c?Math.round(100*t.t)/100+"s":"0.00s"),o.appendChild(s),$("#debuglog").append(o),t.x){case 10:e.className="status";break;case 11:e.className="error";break;case 13:r="html";break;default:r="css"}if(r&&WormlySyntaxHighlight(null,e.id,r),u[e.id]){var a=$("<button style='font-family: Roboto, Arial' class='btn btn-default btn-sm'><span class='icon add' />Show full response</button>").on("click",function(){a.remove(),e.textContent=u[e.id],WormlySyntaxHighlight(null,e.id,r),delete u[e.id]});$(i).append(a)}c=t.t,l=l||c}}function I(){f.find("input:visible:first").focus().select()}},workerWormlyHighligter;function WormlySyntaxHighlight(t,e,n){if(workerWormlyHighligter){if(1===workerWormlyHighligter)return}else WormlySyntaxHighlightInitWorker(t);workerWormlyHighligter.postMessage({content:document.getElementById(e).textContent,lang:n,id:e})}function WormlySyntaxHighlightInitWorker(t){window.Worker?(workerWormlyHighligter=new Worker(t)).onmessage=function(t){document.getElementById(t.data.id).innerHTML=t.data.content}:workerWormlyHighligter=1}function StripePayNow(t){var n=$("#submit");n.attr("disabled",!0);var s=Stripe(t.key,{apiVersion:"2020-08-27"}),e=s.elements(),a=$("#signup"),l=SycuseValidationState(a),c=e.create("card");c.mount("#stripecard");var u=function(){$.ajax("/join/trylogin",{method:"POST"}).done(function(t){t.ok?window.location="/members":setTimeout(u,500)})};a.on("submit",function(t){t.preventDefault();function o(){n.html(e).attr("disabled",!1)}var e=n.html();l.clear(),n.html("<span class='icon spinner fa-spin'></span> Processing...").attr("disabled",!0);var r=$("#email").val();$.ajax(window.location.pathname.replace("/join","/join/validate"),{method:"POST",data:a.serialize()}).done(function(t){if(t.ok)s.confirmCardPayment(t.clientSecret,{payment_method:{card:c,billing_details:{name:$("#name").val(),email:r}},receipt_email:r}).then(function(t){if(t.error)new AlbassDialog({title:"Payment failed",body:t.error.message});else{if("succeeded"===t.paymentIntent.status)return setTimeout(u,500);new AlbassDialog({title:"Payment failed",body:"An unknown error occurred. Please try again later."}),console.error(t)}o()});else{var e=t.violations,n=!1;for(var i in o(),e)n||(a.find("#"+i).focus(),n=!0),l.add(i,e[i]);t.ratelimitok||new AlbassDialog({title:"Payment failed",body:"We cannot process your payment now. Please try again later."})}})}),c.on("change",function(t){var e=document.getElementById("card-errors");t.error?(n.attr("disabled",!0),e.textContent=t.error.message):(n.attr("disabled",!1),e.textContent="")})}function WormlyBootstrap(i){if("undefined"!=typeof WormlyRelocateFooter){var t=document.querySelector("#cpbody");new ResizeSensor(t,function(t){WormlyRelocateFooter.go()}),WormlyRelocateFooter.go()}if(new AlbCtxHlp(i.popup),$("img.wormly-lightbox").each(function(t,e){var n=i.popup?"":"href='"+e.src+"' data-featherlight='image'  title='Click to enlarge'";$(e).wrap("<a class='center lightboximg greyshadow' "+n+"></a>")}),WormlyTip.init(),new WormlyKeyboard(i.schema).start(),new WormlyDesktopView(new WormlyScrollDetect),WormlySidebarCollapser(),new WormlyQSB(i.fprint,new WormlyFiller,new WormlyStorage(window.localStorage),i),!i.u){var e=$
1("#browsertimezone");if(e.length)try{e.val(Intl.DateTimeFormat().resolvedOptions().timeZone)}catch(t){}}}!function($){function u(t,e,n,i){if(3===arguments.length||i){if(n<t)return t;if(e<n)return e}return n}function d(t){t.clientX=t.originalEvent.touches[0].clientX,t.clientY=t.originalEvent.touches[0].clientY}var n=$(window);function o(t,e){this.element=t,this.options=e,this.init()}o.prototype.init=function(){var a=$(this.element),t=(a.css("background-image").match(/^url\(['"]?(.*?)['"]?\)$/i)||[])[1],l=this.options;if(t){var c={width:0,height:0};l.bound&&(c=function(i){var t=(i.css("background-image").match(/^url\(['"]?(.*?)['"]?\)$/i)||[])[1];if(t){var o={width:0,height:0},r=new Image;return r.onload=function(){if("cover"==i.css("background-size")){var t=i.innerWidth(),e=i.innerHeight(),n=t/e;imageAspectRatio=r.width/r.height,scale=1,scale=imageAspectRatio>=n?e/r.height:t/r.width,o.width=r.width*scale,o.height=r.height*scale}else o.width=r.width,o.height=r.height},r.src=t,o}}(a)),a.on("mousedown.dbg touchstart.dbg",function(t){if(t.target===a[0]){if(t.preventDefault(),t.originalEvent.touches)d(t);else if(1!==t.which)return;var i=t.clientX,o=t.clientY,e=a.css("background-position").match(/(-?\d+).*?\s(-?\d+)/)||[],r=parseInt(e[1])||0,s=parseInt(e[2])||0;n.on("mousemove.dbg touchmove.dbg",function(t){t.preventDefault(),t.originalEvent.touches&&d(t);var e=t.clientX,n=t.clientY;r="y"===l.axis?r:u(a.innerWidth()-c.width,0,r+e-i,l.bound),s="x"===l.axis?s:u(a.innerHeight()-c.height,0,s+n-o,l.bound),i=e,o=n,a.css("background-position",r+"px "+s+"px")}),n.on("mouseup.dbg touchend.dbg mouseleave.dbg",function(){l.done&&l.done(),n.off("mousemove.dbg touchmove.dbg"),n.off("mouseup.dbg touchend.dbg mouseleave.dbg")})}})}},o.prototype.disable=function(){$(this.element).off("mousedown.dbg touchstart.dbg"),n.off("mousemove.dbg touchmove.dbg mouseup.dbg touchend.dbg mouseleave.dbg")},$.fn.backgroundDraggable=function(n){n=n;var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=$(this);if(void 0===n||"object"==typeof n){var e=new o(this,n=$.extend({},$.fn.backgroundDraggable.defaults,n));t.data("dbg",e)}else if("string"==typeof n&&t.data("dbg")){e=t.data("dbg");o.prototype[n].apply(e,i)}})},$.fn.backgroundDraggable.defaults={bound:!0,axis:void 0}}(jQuery);var CONTAINER_CLASS,EmptyReader,FloatReader,GRAPH_CLASS,GRAPH_IDS,IntReader,MAX_POINTS_IN_GRAPH,POPUP_CONFIG,RENDERERS,WJSDataQuery,WJSGraphCache,WJSGraphCalculator,WJSGraphDimensions,WJSGraphDrawer,WJSGraphEasyRenderer,WJSGraphLoader,WJSGraphToolTipper,WormlyFiller,WormlyTimer,allowedMaxValues,calcRegexp,readFunctions,valueNames,bind=function(t,e){return function(){return t.apply(e,arguments)}};if(WJSGraphCache=function(){function t(){this._makeKey=bind(this._makeKey,this),this.getNonCachedInterval=bind(this.getNonCachedInterval,this),this.getData=bind(this.getData,this),this.addData=bind(this.addData,this),this.getReceivedInterval=bind(this.getReceivedInterval,this),this.setReceivedInterval=bind(this.setReceivedInterval,this),this.storage={},this.receivedIntervals={}}return t.prototype.setReceivedInterval=function(t,e,n){return this.receivedIntervals[this._makeKey(t,e)]=n},t.prototype.getReceivedInterval=function(t,e){return this.receivedIntervals[this._makeKey(t,e)]||0},t.prototype.addData=function(t,e,n,i){var o,r,s,a,l,c,u,d,h,p,f,m,g,v,y;if(a=this._makeKey(e,n),o=this.storage[a]){for(r=t+n*i.length,d=o.start+n*o.values.length,c=Math.min(t,o.start),l=Math.max(r,d),u=[],c%n&&console.error("New start "+c+" does not align with interval "+n),g=s=c,f=l,m=n;0<m?s<f:f<s;g=s+=m)(p=(g-c)/n)%1&&console.error("Position in result "+p),v=t<=g&&g<r?((y=(g-t)/n)%1&&console.error("Position in new values "+y),i[y]):(h=(g-o.start)/n,y%1&&console.error("Position in old values "+h),o.values[h]),u[p]=v;return o.start=c,o.values=u}return this.storage[a]={start:t,values:i}},t.prototype.getData=function(t,e,n,i){var o,r,s,a,l,c;if(!(o=this.storage[this._makeKey(n,i)]))return null;for(c=[],l=Math.floor((t-o.start)/i),s=r=0,a=Math.ceil((e-t)/i);r<a;s=r+=1)c.push(o.values[l+s]);return c},t.prototype.getNonCachedInterval=function(t,e,n,i){var o,r,s;return(s=this.storage[this._makeKey(n,i)])?(r=s.start,o=s.start+s.values.length*i,!(r<=t&&e<=o)&&(t<r&&o<e?[t,e]:r<=t?[o,e]:[t,r])):[t,e]},t.prototype._makeKey=function(t,e){return t+":"+e},t}(),calcRegexp=/\[(.+?)\]/g,allowedMaxValues={SECONDS:48},valueNames={BYTES_PER_SECOND:{"B/s":1,"KiB/s":1024,"MiB/s":1048576,"GiB/s":1073741824},BYTES:{B:1,KiB:1024,MiB:1048576,GiB:1073741824},PER_SECOND:{"per second":1},SECONDS:{seconds:1,minutes:60,hours:3600,days:86400},PERCENT:{"%":1}},WJSGraphCalculator=function(){function t(){this._getSamplesForFormula=bind(this._getSamplesForFormula,this),this._maxValues=bind(this._maxValues,this),this._stackValues=bind(this._stackValues,this),this.getTopLineWithRenderer=bind(this.getTopLineWithRenderer,this),this.getTopLine=bind(this.getTopLine,this),this._joinValues=bind(this._joinValues,this),this._getShmV2Units=bind(this._getShmV2Units,this),this._getShmV2Value=bind(this._getShmV2Value,this),this.toPrettyFixed=bind(this.toPrettyFixed,this),this.calculate=bind(this.calculate,this),this.getMetricsToFetch=bind(this.getMetricsToFetch,this),this.getBaseUnit=bind(this.getBaseUnit,this)}return t.prototype.getBaseUnit=function(t){var e,n;if(!(t in valueNames))return"";for(e in n=valueNames[t])return n[e],e},t.prototype.getMetricsToFetch=function(e){var t,n,i,o,r,s,a,l;for(s={},t=0,i=(a=e.series).length;t<i;t++)for(n=0,o=(r=((l=a[t]).seriescalc?this._getSamplesForFormula(l.seriescalc):[l.metric]).map(function(t){return[e.type,l.key,t].join(",")})).length;n<o;n++)s[r[n]]=!0;return Object.keys(s)},t.prototype.calculate=function(n,i){var o,r,t,e,s,a,l,c,u,d,h,p,f;for(u={},h=this._getShmV2Units(n,i),n.scalefactor=1,e=s=0,a=(l=n.series).length;s<a;e=++s){if("seriescalc"in(d=l[e]))p=d.seriescalc.replace(/\[(.+?)\]/g,function(t,e){return"response['"+[n.type,d.key,e].join(",")+"'][i]"}),o=new Function("i,response","return "+p+";"),c=i[Object.keys(i)[0]].length,f=function(){var t,e,n;for(n=[],r=t=0,e=c;0<=e?t<e:e<t;
1r=0<=e?++t:--t)n.push(o(r,i));return n}();else{if(t=[n.type,d.key,d.metric].join(","),!(f=i[t])){u[e]=[];continue}d.unitname?(d.units=h.units,n.scalefactor=h.multiplier,n.forceHoverFormatter=function(e){return function(t){return e._getShmV2Value(t,h.unitname)}}(this)):(d.scalefactor||(d.scalefactor=1),n.scalefactor=1/d.scalefactor,function(e){n.scaler=function(t){return t*e}}(d.scalefactor))}u[e]=f}return u},t.prototype.toPrettyFixed=function(t,e){var n,i,o,r,s;if(null==e&&(e=0),"number"!=typeof t)return t;for(n=Math.abs(t),r=o=s=e;(s<=8?o<=8:8<=o)&&0!==n&&(Math.pow(10,-r)>n||(i=n.toFixed(r),!(Math.abs(n-i)/n<.001)));r=s<=8?++o:--o);return t.toFixed(r)},t.prototype._getShmV2Value=function(t,e){var n,i,o;for(n in o=valueNames[e])if((i=t/o[n])<(allowedMaxValues[e]||1e3))break;return this.toPrettyFixed(i,2)+" "+n},t.prototype._getShmV2Units=function(t,e){var n,i,o,r,s,a,l,c,u,d,h,p,f;for(n=[],o=null,s=0,a=(u=t.series).length;s<a;s++)if(p=(h=u[s]).unitname){if(o){if(o!==p)continue}else o=p;f=e[[t.type,h.key,h.metric].join(",")],n=n.concat(f)}for(i in r=(r=n.filter(function(t){return isFinite(t)})).map(Math.abs),l=Math.max.apply(null,r),d=valueNames[o])if(l/(c=d[i])<(allowedMaxValues[o]||1e3))break;return{units:i,multiplier:c,unitname:o}},t.prototype._joinValues=function(e){var t,n,i,o,r,s,a,l,c;for(n=function(){var t;for(i in t=[],e)c=e[i],t.push(c);return t}(),l=[],i=o=0,a=n[0].length;0<=a?o<a:a<o;i=0<=a?++o:--o)for(l[i]=[],r=0,s=n.length;r<s;r++)t=n[r],isFinite(t[i])&&l[i].push(t[i]);return l},t.prototype.getTopLine=function(t,e){var n,i,o;if(t.renderer)for(i in RENDERERS)(n=RENDERERS[i]).id===parseInt(t.renderer)&&(o=n);else o=t.stacked?RENDERERS.stack:{};return this.getTopLineWithRenderer(o,e)},t.prototype.getTopLineWithRenderer=function(t,e){var n;return n=this._joinValues(e),"line"!==t.type&&!t.unstack&&"area"===t.type?this._stackValues(n):this._maxValues(n)},t.prototype._stackValues=function(t){return t.map((o=this,function(t){var e,n,i;if(o._allNulls(t))return null;for(e=i=0,n=t.length;e<n;e++)i+=t[e];return i}));var o},t.prototype._maxValues=function(t){return t.map((e=this,function(t){return e._allNulls(t)?null:Math.max.apply(null,t)}));var e},t.prototype._allNulls=function(t){var e,n;for(e=0,n=t.length;e<n;e++)if(null!==t[e])return!1;return!0},t.prototype._getSamplesForFormula=function(e){var n;return function(){var t;for(t=[];n=calcRegexp.exec(e);)t.push(n[1]);return t}()},t}(),MAX_POINTS_IN_GRAPH=400,WJSDataQuery=function(){function t(t,e){this.gpageparams=t,this.timer=e,this._selectInterval=bind(this._selectInterval,this),this.getLoaderParams=bind(this.getLoaderParams,this)}return t.prototype.getLoaderParams=function(t){var e,n,i,o;return n=$.extend(!0,{},t),o=(e=Math.ceil(this.timer.now()/1e3)-this.gpageparams.timeskew)-(n.timerange||this.gpageparams.timerange),e%(i=this._selectInterval(o,e,t.intervals))&&(e-=e%i),{graph:n,interval:i,start:o-=o%i,end:e,lastpolled:this.gpageparams.lastpolled}},t.prototype._selectInterval=function(t,e,n){var i,o,r;for(r=(e-t)/MAX_POINTS_IN_GRAPH,i=0;i<n.length&&!(r<=(o=n[i]));)i++;return o},t}(),RENDERERS={area:{id:1,type:"area",unstack:!0},line:{id:2,type:"line"},stack:{id:3,type:"area"}},WJSGraphDrawer=function(){function t(t,e,n){this._graphElement=t,this._gpageparams=e,this._loader=n,this._formatOffsetAsTimezone=bind(this._formatOffsetAsTimezone,this),this._makeTransparent=bind(this._makeTransparent,this),this._toPrettyFixed=bind(this._toPrettyFixed,this),this._writeYax=bind(this._writeYax,this),this._setYax=bind(this._setYax,this),this._getYaxmax=bind(this._getYaxmax,this),this._removeDuplicateTextInLegends=bind(this._removeDuplicateTextInLegends,this),this._makeGraph=bind(this._makeGraph,this),this._hoverEnable=bind(this._hoverEnable,this),this._hoverDisable=bind(this._hoverDisable,this),this._postProduction=bind(this._postProduction,this),this._prepDOM=bind(this._prepDOM,this),this.rickshawLoadComplete=bind(this.rickshawLoadComplete,this),this.dimensions=bind(this.dimensions,this),this.draw=bind(this.draw,this),this.loadData=bind(this.loadData,this),this._makeSeriesArray=bind(this._makeSeriesArray,this),this.setMobileMode=bind(this.setMobileMode,this),this.DOMReady=bind(this.DOMReady,this),this.getLastGraphSpec=bind(this.getLastGraphSpec,this),this.getRickshawGraph=bind(this.getRickshawGraph,this),this._isMobileMode=this._rickshawLoaded=!1,this._rickshawGraph,this._lastGraphSpec}return t.prototype.getRickshawGraph=function(){return this._rickshawGraph},t.prototype.getLastGraphSpec=function(){return this._lastGraphSpec},t.prototype.DOMReady=function(){return this._graphElement.find(".loading").show(),this._graphElement.find(".legend").addClass("down"),this._chart=$(".chart",this._graphElement),this._chart.empty(),$("body").on({mousedown:this._hoverDisable,mouseup:this._hoverEnable})},t.prototype.setMobileMode=function(t){return this._isMobileMode=t},t.prototype._makeSeriesArray=function(t,e){var n,i,o,r,s,a,l;for(l=[],n=[],i=o=0,r=(a=t.series).length;o<r;i=++o)s=a[i],l.push(s),s.color="#"+s.color,s.name=s.smallCaption||s.caption,n.push(s.name),t.type===GRAPH_IDS.SHMv2&&this._gpageparams.hostid!==s.hostid&&(s.name+=" ("+s.hostnicename+")"),s.data=e?e[i]:[];return this._removeDuplicateTextInLegends(n,l),l},t.prototype.loadData=function(t,e){var n,i;return i=new WormlyTimer,(n=new WJSDataQuery(this._gpageparams,i).getLoaderParams(t)).tzoffset=this._gpageparams.tzoffset,this._loader.load(n,e)},t.prototype.draw=function(s,a){var l,c,t,u;return s.title=s.title||s.deftitle,s.title,l=this._makeSeriesArray($.extend(!0,{},s)),t=this,c=function(){if(t._graphElement.find(".loading").html("No data received. <a class='actBut' href='#'><span class='icon refresh' /></a>").find("a").on("click",function(){return t._graphElement.find(".loading").text("Trying again..."),t.draw(s,a),!1}),t._lastGraphSpec=s,a)return a()},0===l.length?c():this.loadData(s,(u=this,function(t,e,n){var i,o,r;for(r in i=0,n)i+=n[r].length;return 0===i||t?c():(s=e,u._graphElement.find(".loading").hide(),o=(l=u._makeSeriesArray(s,n))[l.length-1].units||"",u._makeGraph(l,o,s),a?a():void 0)}))},t.prototype.dimensions=function(){var t,e;return e=new WJSGraphDimensions,[(t=this._graphElement).outerWidth()/e.getCollectionWidth(),t.outerHeight()/t.outerWidth()]},t.prototype.rickshawLoadComplete=function(){if(!this._rickshawLoaded&&(this._rickshawLoaded=!0,this._finalRender))return this._finalRender()},t.prototype._prepDOM=function(t){var e,n,i,o,r,s,a,l;return o=this._graphElement,a=this._width=o.width(),s=this._height=o.height(),r=new WJSGraphDimensions,o.removeClass(r.allCSSClasse
1s.join(" ")),i=(l=r.getAppearanceTweaks(this._width)).cssclass,o.addClass(i),e=$(".legend",o),t.showlegend?e.css({height:l.legendHeight+"px",padding:""}):e.css({height:"0px",padding:0}),n=$("h3.title",o),t.showtitle?n.css({height:"",padding:"",maxWidth:a+"px"}):n.css({height:"0",padding:0}),n.toggleClass("invisible",!t.showtitle),this._legend=e,this._title=n,this._chartHeight=s-e.outerHeight()-4,this._chartHeight,this._chart.css({width:a+"px",height:this._chartHeight+"px"}),o},t.prototype._postProduction=function(){var t;if(d3.select(this._graphElement.get(0)).select("g.y_ticks .tick").remove(),(t=$(".x_tick:first",this._chart)).length&&t.position().left/this._width<.05)return t.css("display","none")},t.prototype._hoverDisable=function(){if(this._hoverDetail)return this._hoverDetail.disable()},t.prototype._hoverEnable=function(){if(this._hoverDetail)return this._hoverDetail.enable()},t.prototype._makeGraph=function(_,E,A){var D;if(this._finalRender=(D=this,function(){var t,e,n,i,o,r,s,a,l,c,u,d,h,p,f,m,g,v,y,b,w,x,k,S,C,T;if(A=$.extend(!0,{},D._gpageparams,A),D._chart.empty(),r=D._prepDOM(A),D._hoverDetail&&(D._hoverDetail.disable(),delete D._hoverDetail),D._legend.empty().css("visibility","visible"),w="<b>"+(w=A.title)+"</b>",E&&(w+=" - "+E),D._title.html(w),A.allZeroes)m=RENDERERS.line;else if(A.renderer)for(h in RENDERERS)(t=RENDERERS[h]).id===parseInt(A.renderer,10)&&(m=t);else m=A.stacked?RENDERERS.stack:RENDERERS.line;for(D.currentRenderer=m.id,C=1.04,A.showtitle&&(C+=$("h3.title",r).outerHeight()/D._chartHeight*.6),S=A.yaxmax||A.defaultYaxmax*C,v=!(p=[]),a=n=0,u=_.length;a<u;a++)(g=_[a]).data.length&&(v=!0),g.customCaption&&(g.name=g.customCaption),g.domId=n++,"orderedid"in g?p[g.orderedid]=g:p.push(g);for(v&&D._legend.add(D._title).removeClass("invisible-initial"),p=p.filter(function(t){return t}
1),m.unstack&&D._makeTransparent(p),i="click.changeyaxmax",D._chart.off(i),D._chart.on(i,function(){var t,e,n,i,o;if(D.lastTimestamp&&0<_.length&&!D._isMobileMode&&(t=_.filter(function(t){return!t.disabled}).map(function(t){return t.data.map(function(t){return t.y})}),i=D._loader.getCalculator().getTopLineWithRenderer(m,t),n=_[0].data[0].x,null!==(e=D._getYaxmax(n,A.interval,i))&&(o=D._toPrettyFixed(1.05*e),!(Math.abs(1-S/o)<.05))))return D._setYax(o/D._lastGraphSpec.scalefactor)}),D._chart.off("dblclick"),D._chart.on("dblclick",function(){return D._setYax("")}),T=A.yaxmin||A.defaultYaxmin||0,l=0,d=(f=["yaxmin","yaxmax"]).length;l<d;l++)(h=f[l])in A&&(x=("yaxmin"===h?T:S)/A.scalefactor,D._writeYax(x,h));return o=new Rickshaw.Graph({renderer:m.type,unstack:m.unstack,element:D._chart.get(0),min:T,series:p,max:S,interpolation:"linear",width:D._width,height:D._chartHeight+3}),new Rickshaw.Graph.Axis.Time({graph:o,timeFixture:new Rickshaw.Fixtures.Time}),new Rickshaw.Graph.Axis.Y.Scaled({graph:o,scale:d3.scale.linear().domain([0,1/A.scalefactor]),tickSize:1,pixelsPerTick:60}),y=A.timerange,s=function(){switch(!1){case!(y<604800):return"%a %H:%M:%S";case!(y<=2592e3):return"%a %e-%b %H:%M";default:return"%a %e-%b-%Y"}}(),b=D._formatOffsetAsTimezone(D._gpageparams.tzoffset),e=function(t){return A.scaler&&(t=A.scaler(t)),(t=D._toPrettyFixed(t))+" "+E},k=A.forceHoverFormatter||e,D._hoverDetail=new Rickshaw.Graph.HoverDetail({graph:o,yFormatter:k,xFormatter:function(t){var e;return D.lastTimestamp=t,e=new Date(1e3*t),d3.time.format.utc(s)(e)+" - "+d3.time.format.utc("%H:%M:%S")(new Date(1e3*(t+A.interval)))+" "+b}}),A.showlegend&&(c=new Rickshaw.Graph.Legend({graph:o,element:D._legend.get(0)}),new Rickshaw.Graph.Behavior.Series.Toggle({graph:o,legend:c}),new Rickshaw.Graph.Behavior.Series.Order({graph:o,legend:c})),o.render(),D._postProduction(),D._graphElement.trigger("graph-rendered",o),o.onUpdate(function(){return D._postProduction(),D._graphElement.trigger("graph-changed",{series:o.series})}),D._lastGraphSpec=A,D._rickshawGraph=o}),this._rickshawLoaded)return this._finalRender()},t.prototype._removeDuplicateTextInLegends=function(t,e){var n,i,o,r,s,a;if(1!==t.length){for(s=function(t){var e,n,i,o,r,s;for(s=e=0,o=t[0].length;0<=o?e<=o:o<=e;s=0<=o?++e:--e)for(n=0,i=t.length;n<i;n++)if(r=t[n],t[0][s]!==r[s])return s;return s}(t),a=[],n=i=0,o=e.length;i<o;n=++i)r=e[n],a.push(r.name=r.name.substr(s).replace(/(?:^|\s)\S/g,function(t){return t.toUpperCase()}));return a}},t.prototype._getYaxmax=function(t,e,n){var i,o,r,s,a,l,c,u,d;for(s=n.length,a=Math.round((this.lastTimestamp-t)/e),i=Math.round(.05*s),u=null,o=r=l=Math.max(0,a-i),c=Math.min(s,a+i);l<=c?r<c:c<r;o=l<=c?++r:--r)null!==(d=n[o])&&(null===u||u<d)&&(u=d);return u},t.prototype._setYax=function(t,e){return null==e&&(e="yaxmax"),this._writeYax(t,e).trigger("change")},t.prototype._writeYax=function(t,e){return t=t&&this._toPrettyFixed(t),this._graphElement.find("[name="+e+"]").val(t)},t.prototype._toPrettyFixed=function(t){return this._loader.getCalculator().toPrettyFixed(t,0)},t.prototype._makeTransparent=function(t){var e,n,i,o,r;for(e=function(t){var e;return[(e=parseInt(t,16))>>16&255,e>>8&255,255&e]},o=[],n=0,i=t.length;n<i;n++)r=t[n],o.push(r.color="rgba("+e(r.color.substr(1))+",0.4)");return o},t.prototype._formatOffsetAsTimezone=function(t){var e,n,i;return i=t<0?"-":"+",t=Math.abs(t),e=Math.floor(t/3600),n=Math.floor((t-3600*e)/60),e<10&&(e="0"+e),n<10&&(n="0"+n),i+e+":"+n},t}(),POPUP_CONFIG={element:".dropdown-menu",showDelay:20,hideDelay:300,fullScreenMobile:!0},CONTAINER_CLASS=".cont",GRAPH_CLASS=".graph",WJSGraphEasyRenderer=function(){function t(t,e,n){this._scriptToLoad=t,this._gpageparams=e,this._graphDefs=n,this._initObjects=bind(this._initObjects,this),this._addPlaceholders=bind(this._addPlaceholders,this),this._appendPlaceholder=bind(this._appendPlaceholder,this),this._loadGraphData=bind(this._loadGraphData,this),this.DOMReady=bind(this.DOMReady,this),this.drawGraphs=bind(this.drawGraphs,this),this._scriptLoaded,this._DOMLoaded,this._addedPlaceholders,this._loadedData={},this._whenLoaded={},this._pageBehavior,this._graphDimensions=new WJSGraphDimensions}return t.prototype.drawGraphs=function(){var t,e,n,i,o,r;for(window.logEvent("Started at",Date.now()),this._gpageparams.timeskew=Math.floor(Date.now()/1e3-this._gpageparams.endtime),$.ajaxSetup({cache:!0}),e=n=0,i=(o=this._graphDefs).length;n<i;e=++n)(t=o[e]).width&&(t.width+=8);return $.loadScript([this._scriptToLoad],(r=this,function(){return r._scriptLoaded=!0,r._initObjects()})),this._loadGraphData()},t.prototype.DOMReady=function(){return setTimeout((t=this,function(){return t._DOMLoaded=!0,t._initObjects()}),0);var t},t.prototype._loadGraphData=function(){var t,e,n,i,o,r,s,a,l,c,u;for(t=new WJSGraphCache,e=new WJSGraphCalculator,l={0:new EmptyReader,1:new IntReader(1),2:new IntReader(2),4:new FloatReader},this.loader=new WJSGraphLoader(jQuery.ajaxSettings.xhr,t,e,l,{nameseparator:this._gpageparams.nameseparator}),i=new WJSGraphDrawer($(),this._gpageparams,this.loader),u=[],o=r=0,s=(c=this._graphDefs).length;r<s;o=++r)n=c[o],a=$.extend(!0,{}
1,n),u.push(function(n){return function(e){return i.loadData(a,function(){var t;return n._loadedData[e]=!0,"function"==typeof(t=n._whenLoaded)[e]?t[e]():void 0})}}(this)(o));return u},t.prototype._appendPlaceholder=function(t,e,n,i){var o,r,s;return o=$($.tmpl("#placeholder_template",{})).attr("id","placeholder-"+e),r=t.relativewidth?(s=Math.floor(t.relativewidth*i))*t.aspectratio:(s=n[0],n[1]),o.css({width:s+"px",height:r+"px"}),$("#graphcollection #graphs").append(o)},t.prototype._addPlaceholders=function(t,e){var n,i,o,r,s,a,l,c,u;if(!this._addedPlaceholders&&this._DOMLoaded){for(this._addedPlaceholders=!0,n=this._gpageparams.size||this._graphDimensions.getIdealColumnCount(this._graphDefs.length),i=t?1:n,o=this._graphDimensions.getResizeDimensions(i),u=[],s=a=0,l=(c=this._graphDefs).length;a<l;s=++a)r=c[s],u.push(this._appendPlaceholder(r,s,o,e));return u}},t.prototype._initObjects=function(){var t,e,n,i,o,r,s,a,l,c,u,d;if(o=this._graphDefs[0]&&void 0!==this._graphDefs[0].relativewidth,t=this._graphDimensions.getCollectionWidth(),$("a.desktop-mode").is(":visible")&&(s=!0,this._gpageparams.size=0,o&&(this._graphDefs.forEach(function(t){return delete t.relativewidth}),o=!1)),this._addPlaceholders(s,t),this._DOMLoaded&&this._scriptLoaded){i=$("#wapp_jsgraphs"),d=$("#saveslider"),n=$("#graphs"),"showlegend"in this._gpageparams||(this._gpageparams.showlegend=this._graphDimensions.getAppearanceTweaks().showlegend),"showtitle"in this._gpageparams||(this._gpageparams.showtitle=this._graphDimensions.getAppearanceTweaks().showtitle),this._pageBehavior=new WJSBehavior_GraphPage(this._gpageparams,this.loader,i),this._pageBehavior.addBehaviors(n,this._graphDefs),new WJSBehavior_Saver(i,d,this._pageBehavior),o||(this._gpageparams.size?(this._gpageparams.size,this._graphDimensions.resizeToFit(this._gpageparams.size)):this._graphDimensions.autoSize(this._graphDefs.length||3)),u=[];for(r=a=0,l=(c=this._graphDefs).length;a<l;r=++a)e=c[r],u.push(function(o){return function(t,e){var n,i;return n=o._pageBehavior.addGraphToCollection({definition:t,skipSavePage:!0,position:e}),i=function(){return n.draw(t)},o._loadedData[e]?setTimeout(i,5):o._whenLoaded[e]=i}}(this)(e,r));return u}},t}(),WormlyFiller=function(){function t(){this.populate=bind(this.populate,this)}return t.prototype.populate=function(i,t,o,e,r){var s;return i.children(e).remove(),s=encodeURIComponent(window.location.pathname.replace(/\//g,";")),$.each(t,function(t,e){var n;return e.returnto=s,n=$($.tmpl(o,e,WORMLY_TEMPLATES[o])),r&&r<t&&n.addClass("hide overflow-hidden"),i.append(n)}),i.trigger("list-changed")},t}(),WJSGraphDimensions=function(){function t(){this.getAppearanceTweaks=bind(this.getAppearanceTweaks,this),this.resizeToFit=bind(this.resizeToFit,this),this.getResizeDimensions=bind(this.getResizeDimensions,this),this.autoSize=bind(this.autoSize,this),this.getIdealColumnCount=bind(this.getIdealColumnCount,this),this.getCollectionWidth=bind(this.getCollectionWidth,this)}return t.prototype.getCollectionWidth=function(){return $("#graphcollection").width()},t.prototype.getIdealColumnCount=function(t){var e,n;return n=this.getCollectionWidth(),e=function(){switch(!1){case!(n<800):return 1;case!(n<1200):return 2;case!(n<1600):return 3;default:return 4}}(),Math.min(t,e)},t.prototype.autoSize=function(t){return this.resizeToFit(this.getIdealColumnCount(t))},t.prototype.getResizeDimensions=function(t){var e,n;return n=(e=$("#graphcollection")).width()/t,e.width(),[Math.floor(n),Math.floor(n/(585/280))]},t.prototype.resizeToFit=function(t){var e,n,i,o,r,s;return r=(s=this.getResizeDimensions(t))[0],o=s[1],this._width=r,e=$("#graphcollection"),i=(n=$(CONTAINER_CLASS,e)).find(GRAPH_CLASS),$(".chart",i).empty(),n.css({width:r+"px"}),n.css({height:o+"px"}),e.find("#graphs").data({lastWidth:r,lastHeight:o}),i.css("width","").css("height","")},t.prototype.allCSSClasses=["small","medium","large"],t.prototype.getAppearanceTweaks=function(t){var e,n;return null==t&&(t=this._width),e=function(){switch(!1){case!(t<450):return"small";case!(t<800):return"medium";default:return"large"}}(),n=function(){switch(!1){case"small"!==e:case"medium"!==e:return 17;default:return"19"}}(),{cssclass:e,showlegend:"small"!==e,legendHeight:n,showtitle:!0}},t}(),GRAPH_IDS={SHMv1:1,SHMv2:2,SUM:3},WJSGraphLoader=function(){function t(t,e,n,i,o){var r;this.xhrMaker=t,this.cache=e,this.calculator=n,this.readers=i,this.options=o,this._getInterpolatedValue=bind(this._getInterpolatedValue,this),this._interpolate=bind(this._interpolate,this),this._readValues=bind(this._readValues,this),this._reallyFetch=bind(this._reallyFetch,this),this._fetch=bind(this._fetch,this),this._getYMax=bind(this._getYMax,this),this._respond=bind(this._respond,this),this.finish=bind(this.finish,this),this.load=bind(this.load,this),this.getBaseUnit=bind(this.getBaseUnit,this),this.getCalculator=bind(this.getCalculator,this),this.metricQueue=[],this.callbackQueue=[],this._minimumInterval={},r=document.URL.match(/(metrics\/(\d))/i),this.minMetricsPerBatch=r&&2 in r?parseInt(r[2]):1}return t.prototype.getCalculator=function(){return this.calculator},t.prototype.getBaseUnit=function(t){return this.calculator.getBaseUnit(t)},t.prototype.load=function(t,e){var n,i,o,r,s,a,l,c,u,d,h,p,f,m,g;if(d=t.lastpolled<=t.start,0===(r=this.calculator.getMetricsToFetch(t.graph,d)).length)return e();for(h=t.start,n=t.end,i=t.graph,s=t.interval,m=t.tzoffset,f={metrics:[]},a=0,l=r.length;a<l;a++)o=r[a],t.graph.type!==GRAPH_IDS.SHMv2&&this._minimumInterval[o]>s&&(s=this._minimumInterval[o]),h-=h%s,n%s&&(n-=n%s),(p=this.cache.getNonCachedInterval(h,n,o,s))&&(u=p[0],c=p[1],u-=2*this.cache.getReceivedInterval(o,s),f.start=u,f.end=c,f.metrics.push(o));return 0===f.metrics.length?this._respond(h,n,i,r,s,m,e):this._fetch(f.start,f.end,f.metrics,s,t.graph.id,(g=this,function(){return g._respond(h,n,i,r,s,m,e)}))},t.prototype.finish=function(){if(0<this.metricQueue.length)return this._reallyFetch(this.metricQueue,this.callbackQueue)},t.prototype._respond=function(n,t,e,i,o,r,s){var a,l,c,u,d,h,p,f,m,g,v;for(a={},l={},d=0,h=i.length;d<h;
1d++)u=i[d],n-=n%o,t%o&&(t-=t%o),a[u]=this.cache.getData(n,t,u,o);for(u in c=this.calculator.calculate(e,a),0<(f=(m=this.calculator.getTopLine(e,c)).filter(function(t){return t}).sort(function(t,e){return e-t})).length?(p=f[Math.floor(f.length/2)],e.yaxmax||(g=this._getYMax(f,p),e.defaultYaxmax=Math.max(g,0)),e.yaxmin||(g=-1*this._getYMax(f.reverse().map(function(t){return-1*t}),p),e.defaultYaxmin=Math.min(g,0))):(e.defaultYaxmax=1,e.defaultYaxmin=-1),c)v=(v=c[u]).map(function(t,e){return{x:n+r+e*o,y:isNaN(t)?null:t}}),l[u]=v;return e.interval=o,e.allZeroes=0===Math.min.apply(Math,m)&&0===Math.max.apply(Math,m),s(null,e,l)},t.prototype._getYMax=function(t,e){var n,i;for(i=t[n=0];12<i/e;)i=t[++n];return i},t.prototype._fetch=function(t,e,n,i,o,r){var s;if(n.forEach((s=this,function(t){return s.metricQueue.push(t)})),this.callbackQueue.push(r),this.params=[t,e+i,i,o],this.metricQueue.length>=this.minMetricsPerBatch)return this._reallyFetch(this.metricQueue,this.callbackQueue),this.metricQueue=[],this.callbackQueue=[]},t.prototype._reallyFetch=function(r,s){var t,a,e,l,n,i,c,u,d,h;if(i=this.params,c=i[0],a=i[1],l=i[2],e=i[3],n=r.map(encodeURIComponent),3200<(t=Math.floor((a-c)/l)))throw new Error("Requested "+t+" data points");return u="/stora",window.location.pathname.match("fake/1")&&(u+="fake"),u+="/readValues/metrics/"+n.join(this.options.nameseparator)+"/start/"+c+"/end/"+a+"/interval/"+l+"/graphid/"+e,(d=this.xhrMaker()).open("GET",u,!0),d.setRequestHeader("X-Requested-With","XMLHttpRequest"),d.responseType="arraybuffer",d.timeout=1e4,d.ontimeout=function(){return window.logError("Stora request timeout. URL: "+u)},d.onreadystatechange=(h=this,function(){var t,e,n,i,o;if(4===d.readyState){if(i=h._readValues(c,a,r,l,d,u))for(e in i)n=i[e],h.cache.setReceivedInterval(e,l,n.receivedInterval),h.cache.addData(n.actualStart,e,n.interval,n.values);for(o=[];t=s.pop();)o.push(t());return o}}),d.send()},t.prototype._readValues=function(t,e,n,i,o,r){var s,a,l,c,u,d,h,p,f,m,g,v,y,b,w,x,k,S,C,T;a=o.response;try{for(c=new VBArray(o.responseBody).toArray(),a=new ArrayBuffer(c.length),p=g=0,v=c.length;g<v;p=++g)l=c[p],a._bytes[p]=l}catch(t){}C={},y=0;try{for(S=new DataView(a);y<S.byteLength;)m=S.getUint8(y,!0),y++,f=n[m],w=S.getUint16(y,!0),y+=2,i!==w&&(this._minimumInterval[f]=w),u=S.getUint8(y,!0),y++,100<=u?(u-=100,h=S.getUint16(y,!0),y+=2):h=Math.ceil((e-t)/i),s=(b=this.readers[u]).getActualStart(S,y),T=(x=b.read(S,y,h)).values,d=x.bytesUsed,T.filter(function(t){return t}),i<w&&(T=this._interpolate(T,s,w,t,e,i),s=t),C[f]={values:T,interval:i,actualStart:s,receivedInterval:w},y+=d}catch(t){return Log.error("Stora request failed "+t+" - bin length: "+(null!=(k=o.response)?k.byteLength:void 0)+" - URL: "+r+" - HTTP status: "+o.statusText),!1}return C},t.prototype._interpolate=function(t,e,n,i,o,r){var s,a,l,c,u;for(a=[],u=s=i,l=o,c=r;0<c?s<l:l<s;u=s+=c)a.push(this._getInterpolatedValue(t,e,n,u));return a},t.prototype._getInterpolatedValue=function(t,e,n,i){var o,r,s,a,l,c;return i<=e?t[0]:(c=(i-e)/n,a=e+(s=Math.floor(c))*n,l=t[s],r=t[o=s+1],o>=t.length?t[t.length-1]:l+(r-l)*(i-a)/n)},t}(),$.metricSearch=function(t){var e,n,p,i,o,r,f,s,a,l,c,m,g,v,u,d,y,b,h,w;return g=t.input,v=t.list,c=t.hostid,b=t.template,y=t.restrictUnitsWith,m=t.ignoreTheseMetrics,l=g.siblings(".shmhosts"),d=w=h=null,o=function(){return l.val()||c},r=function(){return g.val(""),s()},s=function(){var t;if(i()!==d)return t=g.val(),g.trigger("preSearch",t),clearTimeout(h),w&&w.abort(),t?h=setTimeout(n,300):(d="",p(),void v.trigger("list-changed"))},(u=g.siblings(".loading-container")).css("visibility","hidden"),a=function(){return u.css("visibility","visible")},f=function(){return u.css("visibility","hidden")},n=function(){if(g.val())return d=i(),a(),w=$.ajax({type:"POST",url:"/shmetrics/searchMetrics",dataType:"text",data:{query:g.val(),hostid:o()},success:e})},p=function(){return v.parent().find(".metric-in-add-section").not(".permanent").remove()},e=function(t,e,n){var i,o,r,s,a,l,c,u,d,h;if(f(),c=new SycuseAJAXResponse(n).getValue("metrics"),p(),o="function"==typeof y?y():void 0,u=("function"==typeof m?m():void 0)||[],h=v,0===c.length)d={disabled:1,caption:"No matches found for: ",postfix:g.val(),niceunitname:""},(a=$($.tmpl(b,d))).addClass("metric-in-add-section"),h.after(a);else for(r=0,s=c.length;r<s;r++)(l=c[r]).caption||(l.caption=l.name),l.key=l.hostid+"/"+l.name,-1<u.indexOf(l.key)||(l.disabled=o&&l.unitname&&o!==l.unitname,l.postfix="",(a=$($.tmpl(b,l))).data(l),a.addClass("metric-in-add-section"),l.disabled&&((i=a.find("a")).attr("title","Can't add this metric because its units ("+l.niceunitname+") do n
1ot match the existing graph"),WormlyTip.init(i)),h.after(a),h=a);return v.trigger("list-changed")},d=(i=function(){return o()+":"+g.val()})(),g.bind("search-started",a),g.bind("search-ended",f),g.bind("empty",r),g.keyup(s),l.change(n)},readFunctions={1:"getUint8",2:"getUint16"},EmptyReader=function(){function t(){this.read=bind(this.read,this),this.getActualStart=bind(this.getActualStart,this)}return t.prototype.getActualStart=function(t,e){return t.getUint32(e,!0)},t.prototype.read=function(t,e,n){var i,o,r;for(r=[],i=0,o=n;0<=o?i<o:o<i;0<=o?i++:i--)r.push(NaN);return{values:r,bytesUsed:6}},t}(),IntReader=function(){function t(t){this.size=t,this.read=bind(this.read,this),this.getActualStart=bind(this.getActualStart,this)}return t.prototype.getActualStart=function(t,e){return t.getUint32(e+8,!0)},t.prototype.read=function(t,e,n){var i,o,r,s,a,l,c,u,d,h;for(s=Math.pow(2,8*this.size)-2,a=readFunctions[this.size],r=t.getFloat32(e,!0),u=t.getFloat32(e+4,!0)-r,c=[],i=o=0,l=n;o<l;i=o+=1)h=e+12+i*this.size,d=0===(d=t[a](h,!0))?NaN:r+u*(d-1)/s,c.push(d);return{values:c,bytesUsed:12+this.size*n}},t}(),FloatReader=function(){function t(){this.read=bind(this.read,this),this.getActualStart=bind(this.getActualStart,this)}return t.prototype.getActualStart=function(t,e){return t.getUint32(e,!0)},t.prototype.read=function(t,e,n){var i,o,r,s,a,l;for(s=[],i=o=0,r=n;o<r;i=o+=1)l=e+4+4*i,0===(a=t.getFloat32(l,!0))&&(a=NaN),s.push(a);return{values:s,bytesUsed:4+4*n}},t}(),WormlyTimer=function(){function t(){}return t.prototype.now=function(){return Date.now()},t}(),WJSGraphToolTipper=function(){function t(t){this.placeholder=t}return t.prototype.addEventAt=function(t,e){var n,i,o,r;return o=e[0],r=e[1],i=t.pointOffset({x:o,y:r}),n=$.tmpl("#event_template",{icon:"fail",text:"Test event",top:i.top,left:i.left}),this.placeholder.append(n)},t}(),void 0===WORMLY_TEMPLATES)var WORMLY_TEMPLATES={};WORMLY_TEMPLATES.popup_contact_template='<tr class="<% if (! enabled) { %>disabled<% } %>"> <td class="ttcell"> <a class="edithost textualtitle" href="/contacts/edit/1/pcid/<%= pcid %>/returnto/<%= returnto %>"> <span class="pchannel cid<%= channelid %> dm<%= data2%>"></span> <%= data %> </a> </td> <td> <span class="text"><%= title %></span> </td> </tr> ',WORMLY_TEMPLATES.checkersetup_test='<div id="sensor-test-modal" class="modal"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <button id="btnSaveOvl" type="button" class="btn btn-default btn-success btn-trial hidden hidden-xs" data-dismiss="modal" style="  \t\t\t\tposition: fixed;  \t\t\t\ttop: 15px;  \t\t\t\tleft: 50%;      \t\t\ttransform: translateX(-50%);  \t\t\t" title="Click to save and start monitoring"> <span class="icon save" /> Save sensor </button> <div class="modal-header" style="padding-bottom: 4px"> <div class="dropdown pull-left"> <button class="btn btn-default btn-sm dropdown-toggle" type="button" id="testing-node-select" data-toggle="dropdown" aria-haspopup="true"> <span class="icon color no-right-margin"></span> <span class="node-title"></span> <span class="caret"></span> </button> <ul class="dropdown-menu" aria-labelledby="testing-node-select"></ul> </div> <button type="button" class="btn btn-default btn-sm pull-right" data-dismiss="modal"> <span class="icon color cancel"> Abort </span> </button> <div class="error" style="min-height: 27px; padding-left: 3px"></div> </div> <div class="debuglog_container"> <table id="debuglog"></table> <div id="test-progress" class="text-center hidden"><span class=\'lgicon icon spinner fa-spin\'></span></div> </div> </div> </div> </div> ',WORMLY_TEMPLATES.qsb='<div id="qsb" class="modal"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-body"> <div class="chrome"> <form id="globalsearch_form"> <div class="form-group"> <div class="input-group"> <div class="input-group-addon"><span class="icon view" /></div> <input type="text" id="modal-globalsearch"  tabindex="1" class="form-control" placeholder="Start typing to search Hosts, Sensors &amp; Contacts..."> </div> </div> </form> <p class=\'bs-callout bs-callout-info\'> <kbd>⬆</kbd> and <kbd>⬇</kbd> keys move between items. <kbd>ENTER</kbd> to open, or <kbd>TAB</kbd> then <kbd>G</kbd> for Graphs, or <kbd>TAB</kbd> then <kbd>U</kbd> for Uptime Reports. </p> </div> <div class="table-container"> <table class="table tight table-striped table-selectable table-qsb"> <tbody class="hosts" /> <tbody class="contacts" /> <tbody class="sensors" /> </table> </div> </div> <div class="modal-footer"> Press ESC to <button type="button" class="btn btn-default" data-dismiss="modal"> <span class="icon cancel">Close</span> </button> </div> </div> </div> </div> ',WORMLY_TEMPLATES["metrics-errors"]='<div class="metrics-errors"> <p>It looks like you\'re already trying to <b>submit Metrics for this host</b>, but we\'ve noticed some problems with the data we\'ve received.</p> <p><b><a href="javascript:void(0)" class="config-error" accesskey="x">Take a look at the error logs for this host</a></b>.</p> </div>',WORMLY_TEMPLATES.legend='<div id="legend-modal" class="modal"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">&times;</button> <h4>Keyboard shortcuts</h4> </div> <div class="modal-body row"> <div class="column col-xs-6"> <dl> <dt><kbd>/</kbd></dt> <dd>Search</dd> </dl> <dl> <dt><kbd>j, h</kbd></dt> <dd>Go to Hosts page</dd> </dl> <dl> <dt><kbd>j, f</kbd></dt> <dd>Go to Recent Failures page</dd> </dl> <dl> <dt><kbd>j, d</kbd></dt> <dd>Go to Hosts Down page</dd> </dl> <dl> <dt><kbd>j, a</kbd></dt> <dd>Go to Alerts page</dd> </dl> <dl> <dt><kbd>j, m</kbd></dt> <dd>Go to My Account page</dd> </dl> <dl> <dt><kbd>?</kbd></dt> <dd>Show this legend</dd> </dl> </div> <div class="column page-wide col-xs-6"> </div> </div> </div> </div> </div>',WORMLY_TEMPLATES.inplaceedit='<div class="modal"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">&times;</button> <h4 /> </div> <form> <div class="modal-body"> <div class="form-group"> <input type="text" name="renamer"  tabindex="1" class="form-control" placeholder=""> <p class="text-danger invisible">&nbsp;</p> <p class="updating highlight-yellow invisible text-center"> <span class=\'icon spinner fa-spin input-spinner \'></span> Updating ... </p> </div> </div> <div class="modal-footer"> <div class="btn-group"> <button type="submit" class="btn btn-primary"> <span class="icon save">Save</span> </button> <button type="button" class="btn btn-default " data-dismiss="modal"> <span class="icon cancel">Close</span> </button> </div> </div> </form> </div> </div> </div>',WORMLY_TEMPLATES.popup_sensor_template='<tr class="<% if (! running) { %>disabled<% } %>"> <td class="ttcell"> <a class="edithost textualtitle" href="/checkersetup/hsid/<%= hsid %>/returnto/<%= returnto %>"> <span> <span class="text"> <%= target %> </span> </span> </a> </td> <td> <%= tag ? tag + " " : (title == \'HTTP Request\' ? \'\' : title) %> </td> </tr> ',WORMLY_TEMPLATES.popup_host_template='<tr> <td class="ttcell"> <a class="edithost textualtitle" href="/edithost/hostid/<%= hostid %>" data-hostid="<%= hostid %>"> <span><%= nicename %></span> </a> </td> <td class="reportcol actions text-nowrap"> <a class=\'actBut\' href="/report/hostid/<%= hostid %>"> <span class="icon uptime"></span> </a> <a class=\'actBut\' href="/jsgraphs/default/hostid/<%= hostid %>"> <span class="icon graphs"></span> </a> </td> </tr>';

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.