!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(f,e){var t=[],c=t.slice,m=t.concat,r=t.push,s=t.indexOf,i={},n=i.toString,g=i.hasOwnProperty,v={},_=f.document,o="2.1.4",C=function(e,t){return new C.fn.init(e,t)},a=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,l=/^-ms-/,h=/-([\da-z])/gi,u=function(e,t){return t.toUpperCase()};function d(e){var t="length"in e&&e.length,i=C.type(e);return"function"!==i&&!C.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in e))}C.fn=C.prototype={jquery:o,constructor:C,selector:"",length:0,toArray:function(){return c.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:c.call(this)},pushStack:function(e){var t=C.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return C.each(this,e,t)},map:function(i){return this.pushStack(C.map(this,function(e,t){return i.call(e,t,e)}))},slice:function(){return this.pushStack(c.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(0<=i&&i<t?[this[i]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:r,sort:t.sort,splice:t.splice},C.extend=C.fn.extend=function(){var e,t,i,n,s,o,a=arguments[0]||{},r=1,l=arguments.length,h=!1;for("boolean"==typeof a&&(h=a,a=arguments[r]||{},r++),"object"==typeof a||C.isFunction(a)||(a={}),r===l&&(a=this,r--);r<l;r++)if(null!=(e=arguments[r]))for(t in e)i=a[t],a!==(n=e[t])&&(h&&n&&(C.isPlainObject(n)||(s=C.isArray(n)))?(o=s?(s=!1,i&&C.isArray(i)?i:[]):i&&C.isPlainObject(i)?i:{},a[t]=C.extend(h,o,n)):void 0!==n&&(a[t]=n));return a},C.extend({expando:"jQuery"+(o+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===C.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!C.isArray(e)&&0<=e-parseFloat(e)+1},isPlainObject:function(e){return"object"===C.type(e)&&!e.nodeType&&!C.isWindow(e)&&!(e.constructor&&!g.call(e.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?i[n.call(e)]||"object":typeof e},globalEval:function(e){var t,i=eval;(e=C.trim(e))&&(1===e.indexOf("use strict")?((t=_.createElement("script")).text=e,_.head.appendChild(t).parentNode.removeChild(t)):i(e))},camelCase:function(e){return e.replace(l,"ms-").replace(h,u)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,i){var n=0,s=e.length,o=d(e);if(i){if(o)for(;n<s&&!1!==t.apply(e[n],i);n++);else for(n in e)if(!1===t.apply(e[n],i))break}else if(o)for(;n<s&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},trim:function(e){return null==e?"":(e+"").replace(a,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(d(Object(e))?C.merge(i,"string"==typeof e?[e]:e):r.call(i,e)),i},inArray:function(e,t,i){return null==t?-1:s.call(t,e,i)},merge:function(e,t){for(var i=+t.length,n=0,s=e.length;n<i;n++)e[s++]=t[n];return e.length=s,e},grep:function(e,t,i){for(var n=[],s=0,o=e.length,a=!i;s<o;s++)!t(e[s],s)!==a&&n.push(e[s]);return n},map:function(e,t,i){var n,s=0,o=e.length,a=[];if(d(e))for(;s<o;s++)null!=(n=t(e[s],s,i))&&a.push(n);else for(s in e)null!=(n=t(e[s],s,i))&&a.push(n);return m.apply([],a)},guid:1,proxy:function(e,t){var i,n,s;if("string"==typeof t&&(i=e[t],t=e,e=i),C.isFunction(e))return n=c.call(arguments,2),(s=function(){return e.apply(t||this,n.concat(c.call(arguments)))}).guid=e.guid=e.guid||C.guid++,s},now:Date.now,support:v}),C.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){i["[object "+t+"]"]=t.toLowerCase()});var p=function(i){var e,f,b,o,n,m,u,g,w,h,c,v,x,s,_,y,a,r,C,k="sizzle"+1*new Date,D=i.document,T=0,d=0,l=oe(),p=oe(),P=oe(),A=function(e,t){return e===t&&(c=!0),0},S={}.hasOwnProperty,t=[],I=t.pop,M=t.push,N=t.push,E=t.slice,H=function(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",O="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",z=F.replace("w","w#"),W="\\["+O+"*("+F+")(?:"+O+"*([*^$|!~]?=)"+O+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+z+"))|)"+O+"*\\]",L=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",j=new RegExp(O+"+","g"),q=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),B=new RegExp("^"+O+"*,"+O+"*"),U=new RegExp("^"+O+"*([>+~]|"+O+")"+O+"*"),Y=new RegExp("="+O+"*([^\\]'\"]*?)"+O+"*\\]","g"),V=new RegExp(L),$=new RegExp("^"+z+"$"),G={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F.replace("w","w*")+")"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+L),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("^(?:"+R+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,ee=/'|\\/g,te=new RegExp("\\\\([\\da-f]{1,6}"+O+"?|("+O+")|.)","ig"),ie=function(e,t,i){var n="0x"+t-65536;return n!=n||i?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},ne=function(){v()};try{N.apply(t=E.call(D.childNodes),D.childNodes),t[D.childNodes.length].nodeType}catch(e){N={apply:t.length?function(e,t){M.apply(e,E.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function se(e,t,i,n){var s,o,a,r,l,h,c,u,d,p;if((t?t.ownerDocument||t:D)!==x&&v(t),i=i||[],r=(t=t||x).nodeType,"string"!=typeof e||!e||1!==r&&9!==r&&11!==r)return i;if(!n&&_){if(11!==r&&(s=J.exec(e)))if(a=s[1]){if(9===r){if(!(o=t.getElementById(a))||!o.parentNode)return i;if(o.id===a)return i.push(o),i}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&C(t,o)&&o.id===a)return i.push(o),i}else{if(s[2])return N.apply(i,t.getElementsByTagName(e)),i;if((a=s[3])&&f.getElementsByClassName)return N.apply(i,t.getElementsByClassName(a)),i}if(f.qsa&&(!y||!y.test(e))){if(u=c=k,d=t,p=1!==r&&e,1===r&&"object"!==t.nodeName.toLowerCase()){for(h=m(e),(c=t.getAttribute("id"))?u=c.replace(ee,"\\$&"):t.setAttribute("id",u),u="[id='"+u+"'] ",l=h.length;l--;)h[l]=u+me(h[l]);d=Z.test(e)&&pe(t.parentNode)||t,p=h.join(",")}if(p)try{return N.apply(i,d.querySelectorAll(p)),i}catch(e){}finally{c||t.removeAttribute("id")}}}return g(e.replace(q,"$1"),t,i,n)}function oe(){var n=[];return function e(t,i){return n.push(t+" ")>b.cacheLength&&delete e[n.shift()],e[t+" "]=i}}function ae(e){return e[k]=!0,e}function re(e){var t=x.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var i=e.split("|"),n=e.length;n--;)b.attrHandle[i[n]]=t}function he(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function ce(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ue(i){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===i}}function de(a){return ae(function(o){return o=+o,ae(function(e,t){for(var i,n=a([],e.length,o),s=n.length;s--;)e[i=n[s]]&&(e[i]=!(t[i]=e[i]))})})}function pe(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in f=se.support={},n=se.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},v=se.setDocument=function(e){var t,i,l=e?e.ownerDocument||e:D;return l!==x&&9===l.nodeType&&l.documentElement?(s=(x=l).documentElement,(i=l.defaultView)&&i!==i.top&&(i.addEventListener?i.addEventListener("unload",ne,!1):i.attachEvent&&i.attachEvent("onunload",ne)),_=!n(l),f.attributes=re(function(e){return e.className="i",!e.getAttribute("className")}),f.getElementsByTagName=re(function(e){return e.appendChild(l.createComment("")),!e.getElementsByTagName("*").length}),f.getElementsByClassName=Q.test(l.getElementsByClassName),f.getById=re(function(e){return s.appendChild(e).id=k,!l.getElementsByName||!l.getElementsByName(k).length}),f.getById?(b.find.ID=function(e,t){if(void 0!==t.getElementById&&_){var i=t.getElementById(e);return i&&i.parentNode?[i]:[]}},b.filter.ID=function(e){var t=e.replace(te,ie);return function(e){return e.getAttribute("id")===t}}):(delete b.find.ID,b.filter.ID=function(e){var i=e.replace(te,ie);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===i}}),b.find.TAG=f.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):f.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],s=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;i=o[s++];)1===i.nodeType&&n.push(i);return n},b.find.CLASS=f.getElementsByClassName&&function(e,t){if(_)return t.getElementsByClassName(e)},a=[],y=[],(f.qsa=Q.test(l.querySelectorAll))&&(re(function(e){s.appendChild(e).innerHTML="<a id='"+k+"'></a><select id='"+k+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+O+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+O+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+k+"-]").length||y.push("~="),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||y.push(".#.+[+~]")}),re(function(e){var t=l.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+O+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(f.matchesSelector=Q.test(r=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&re(function(e){f.disconnectedMatch=r.call(e,"div"),r.call(e,"[s!='']:x"),a.push("!=",L)}),y=y.length&&new RegExp(y.join("|")),a=a.length&&new RegExp(a.join("|")),t=Q.test(s.compareDocumentPosition),C=t||Q.test(s.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=t?function(e,t){if(e===t)return c=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===i?e===l||e.ownerDocument===D&&C(D,e)?-1:t===l||t.ownerDocument===D&&C(D,t)?1:h?H(h,e)-H(h,t):0:4&i?-1:1)}:function(e,t){if(e===t)return c=!0,0;var i,n=0,s=e.parentNode,o=t.parentNode,a=[e],r=[t];if(!s||!o)return e===l?-1:t===l?1:s?-1:o?1:h?H(h,e)-H(h,t):0;if(s===o)return he(e,t);for(i=e;i=i.parentNode;)a.unshift(i);for(i=t;i=i.parentNode;)r.unshift(i);for(;a[n]===r[n];)n++;return n?he(a[n],r[n]):a[n]===D?-1:r[n]===D?1:0},l):x},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==x&&v(e),t=t.replace(Y,"='$1']"),f.matchesSelector&&_&&(!a||!a.test(t))&&(!y||!y.test(t)))try{var i=r.call(e,t);if(i||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return 0<se(t,x,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!==x&&v(e),C(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!==x&&v(e);var i=b.attrHandle[t.toLowerCase()],n=i&&S.call(b.attrHandle,t.toLowerCase())?i(e,t,!_):void 0;return void 0!==n?n:f.attributes||!_?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,i=[],n=0,s=0;if(c=!f.detectDuplicates,h=!f.sortStable&&e.slice(0),e.sort(A),c){for(;t=e[s++];)t===e[s]&&(n=i.push(s));for(;n--;)e.splice(i[n],1)}return h=null,e},o=se.getText=function(e){var t,i="",n=0,s=e.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=o(e)}else if(3===s||4===s)return e.nodeValue}else for(;t=e[n++];)i+=o(t);return i},(b=se.selectors={cacheLength:50,createPseudo:ae,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ie),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ie),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&V.test(i)&&(t=m(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ie).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=l[e+" "];return t||(t=new RegExp("(^|"+O+")"+e+"("+O+"|$)"))&&l(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(i,n,s){return function(e){var t=se.attr(e,i);return null==t?"!="===n:!n||(t+="","="===n?t===s:"!="===n?t!==s:"^="===n?s&&0===t.indexOf(s):"*="===n?s&&-1<t.indexOf(s):"$="===n?s&&t.slice(-s.length)===s:"~="===n?-1<(" "+t.replace(j," ")+" ").indexOf(s):"|="===n&&(t===s||t.slice(0,s.length+1)===s+"-"))}},CHILD:function(p,e,t,f,m){var g="nth"!==p.slice(0,3),v="last"!==p.slice(-4),_="of-type"===e;return 1===f&&0===m?function(e){return!!e.parentNode}:function(e,t,i){var n,s,o,a,r,l,h=g!==v?"nextSibling":"previousSibling",c=e.parentNode,u=_&&e.nodeName.toLowerCase(),d=!i&&!_;if(c){if(g){for(;h;){for(o=e;o=o[h];)if(_?o.nodeName.toLowerCase()===u:1===o.nodeType)return!1;l=h="only"===p&&!l&&"nextSibling"}return!0}if(l=[v?c.firstChild:c.lastChild],v&&d){for(r=(n=(s=c[k]||(c[k]={}))[p]||[])[0]===T&&n[1],a=n[0]===T&&n[2],o=r&&c.childNodes[r];o=++r&&o&&o[h]||(a=r=0)||l.pop();)if(1===o.nodeType&&++a&&o===e){s[p]=[T,r,a];break}}else if(d&&(n=(e[k]||(e[k]={}))[p])&&n[0]===T)a=n[1];else for(;(o=++r&&o&&o[h]||(a=r=0)||l.pop())&&((_?o.nodeName.toLowerCase()!==u:1!==o.nodeType)||!++a||(d&&((o[k]||(o[k]={}))[p]=[T,a]),o!==e)););return(a-=m)===f||a%f==0&&0<=a/f}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[k]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?ae(function(e,t){for(var i,n=a(e,o),s=n.length;s--;)e[i=H(e,n[s])]=!(t[i]=n[s])}):function(e){return a(e,0,t)}):a}},pseudos:{not:ae(function(e){var n=[],s=[],r=u(e.replace(q,"$1"));return r[k]?ae(function(e,t,i,n){for(var s,o=r(e,null,n,[]),a=e.length;a--;)(s=o[a])&&(e[a]=!(t[a]=s))}):function(e,t,i){return n[0]=e,r(n,null,i,s),n[0]=null,!s.pop()}}),has:ae(function(t){return function(e){return 0<se(t,e).length}}),contains:ae(function(t){return t=t.replace(te,ie),function(e){return-1<(e.textContent||e.innerText||o(e)).indexOf(t)}}),lang:ae(function(i){return $.test(i||"")||se.error("unsupported lang: "+i),i=i.replace(te,ie).toLowerCase(),function(e){var t;do{if(t=_?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===i||0===t.indexOf(i+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=i.location&&i.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===s},focus:function(e){return e===x.activeElement&&(!x.hasFocus||x.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:de(function(){return[0]}),last:de(function(e,t){return[t-1]}),eq:de(function(e,t,i){return[i<0?i+t:i]}),even:de(function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e}),odd:de(function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e}),lt:de(function(e,t,i){for(var n=i<0?i+t:i;0<=--n;)e.push(n);return e}),gt:de(function(e,t,i){for(var n=i<0?i+t:i;++n<t;)e.push(n);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=ce(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=ue(e);function fe(){}function me(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t].value;return n}function ge(a,e,t){var r=e.dir,l=t&&"parentNode"===r,h=d++;return e.first?function(e,t,i){for(;e=e[r];)if(1===e.nodeType||l)return a(e,t,i)}:function(e,t,i){var n,s,o=[T,h];if(i){for(;e=e[r];)if((1===e.nodeType||l)&&a(e,t,i))return!0}else for(;e=e[r];)if(1===e.nodeType||l){if((n=(s=e[k]||(e[k]={}))[r])&&n[0]===T&&n[1]===h)return o[2]=n[2];if((s[r]=o)[2]=a(e,t,i))return!0}}}function ve(s){return 1<s.length?function(e,t,i){for(var n=s.length;n--;)if(!s[n](e,t,i))return!1;return!0}:s[0]}function _e(e,t,i,n,s){for(var o,a=[],r=0,l=e.length,h=null!=t;r<l;r++)(o=e[r])&&(i&&!i(o,n,s)||(a.push(o),h&&t.push(r)));return a}function ye(p,f,m,g,v,e){return g&&!g[k]&&(g=ye(g)),v&&!v[k]&&(v=ye(v,e)),ae(function(e,t,i,n){var s,o,a,r=[],l=[],h=t.length,c=e||function(e,t,i){for(var n=0,s=t.length;n<s;n++)se(e,t[n],i);return i}(f||"*",i.nodeType?[i]:i,[]),u=!p||!e&&f?c:_e(c,r,p,i,n),d=m?v||(e?p:h||g)?[]:t:u;if(m&&m(u,d,i,n),g)for(s=_e(d,l),g(s,[],i,n),o=s.length;o--;)(a=s[o])&&(d[l[o]]=!(u[l[o]]=a));if(e){if(v||p){if(v){for(s=[],o=d.length;o--;)(a=d[o])&&s.push(u[o]=a);v(null,d=[],s,n)}for(o=d.length;o--;)(a=d[o])&&-1<(s=v?H(e,a):r[o])&&(e[s]=!(t[s]=a))}}else d=_e(d===t?d.splice(h,d.length):d),v?v(null,t,d,n):N.apply(t,d)})}function be(e){for(var s,t,i,n=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],r=o?1:0,l=ge(function(e){return e===s},a,!0),h=ge(function(e){return-1<H(s,e)},a,!0),c=[function(e,t,i){var n=!o&&(i||t!==w)||((s=t).nodeType?l(e,t,i):h(e,t,i));return s=null,n}];r<n;r++)if(t=b.relative[e[r].type])c=[ge(ve(c),t)];else{if((t=b.filter[e[r].type].apply(null,e[r].matches))[k]){for(i=++r;i<n&&!b.relative[e[i].type];i++);return ye(1<r&&ve(c),1<r&&me(e.slice(0,r-1).concat({value:" "===e[r-2].type?"*":""})).replace(q,"$1"),t,r<i&&be(e.slice(r,i)),i<n&&be(e=e.slice(i)),i<n&&me(e))}c.push(t)}return ve(c)}return fe.prototype=b.filters=b.pseudos,b.setFilters=new fe,m=se.tokenize=function(e,t){var i,n,s,o,a,r,l,h=p[e+" "];if(h)return t?0:h.slice(0);for(a=e,r=[],l=b.preFilter;a;){for(o in i&&!(n=B.exec(a))||(n&&(a=a.slice(n[0].length)||a),r.push(s=[])),i=!1,(n=U.exec(a))&&(i=n.shift(),s.push({value:i,type:n[0].replace(q," ")}),a=a.slice(i.length)),b.filter)!(n=G[o].exec(a))||l[o]&&!(n=l[o](n))||(i=n.shift(),s.push({value:i,type:o,matches:n}),a=a.slice(i.length));if(!i)break}return t?a.length:a?se.error(e):p(e,r).slice(0)},u=se.compile=function(e,t){var i,g,v,_,y,n,s=[],o=[],a=P[e+" "];if(!a){for(t||(t=m(e)),i=t.length;i--;)(a=be(t[i]))[k]?s.push(a):o.push(a);(a=P(e,(g=o,_=0<(v=s).length,y=0<g.length,n=function(e,t,i,n,s){var o,a,r,l=0,h="0",c=e&&[],u=[],d=w,p=e||y&&b.find.TAG("*",s),f=T+=null==d?1:Math.random()||.1,m=p.length;for(s&&(w=t!==x&&t);h!==m&&null!=(o=p[h]);h++){if(y&&o){for(a=0;r=g[a++];)if(r(o,t,i)){n.push(o);break}s&&(T=f)}_&&((o=!r&&o)&&l--,e&&c.push(o))}if(l+=h,_&&h!==l){for(a=0;r=v[a++];)r(c,u,t,i);if(e){if(0<l)for(;h--;)c[h]||u[h]||(u[h]=I.call(n));u=_e(u)}N.apply(n,u),s&&!e&&0<u.length&&1<l+v.length&&se.uniqueSort(n)}return s&&(T=f,w=d),c},_?ae(n):n))).selector=e}return a},g=se.select=function(e,t,i,n){var s,o,a,r,l,h="function"==typeof e&&e,c=!n&&m(e=h.selector||e);if(i=i||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&f.getById&&9===t.nodeType&&_&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(te,ie),t)||[])[0]))return i;h&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(s=G.needsContext.test(e)?0:o.length;s--&&(a=o[s],!b.relative[r=a.type]);)if((l=b.find[r])&&(n=l(a.matches[0].replace(te,ie),Z.test(o[0].type)&&pe(t.parentNode)||t))){if(o.splice(s,1),!(e=n.length&&me(o)))return N.apply(i,n),i;break}}return(h||u(e,c))(n,t,!_,i,Z.test(e)&&pe(t.parentNode)||t),i},f.sortStable=k.split("").sort(A).join("")===k,f.detectDuplicates=!!c,v(),f.sortDetached=re(function(e){return 1&e.compareDocumentPosition(x.createElement("div"))}),re(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||le("type|href|height|width",function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),f.attributes&&re(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||le("value",function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),re(function(e){return null==e.getAttribute("disabled")})||le(R,function(e,t,i){var n;if(!i)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),se}(f);C.find=p,C.expr=p.selectors,C.expr[":"]=C.expr.pseudos,C.unique=p.uniqueSort,C.text=p.getText,C.isXMLDoc=p.isXML,C.contains=p.contains;var y=C.expr.match.needsContext,b=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(e,i,n){if(C.isFunction(i))return C.grep(e,function(e,t){return!!i.call(e,t,e)!==n});if(i.nodeType)return C.grep(e,function(e){return e===i!==n});if("string"==typeof i){if(w.test(i))return C.filter(i,e,n);i=C.filter(i,e)}return C.grep(e,function(e){return 0<=s.call(i,e)!==n})}C.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?C.find.matchesSelector(n,e)?[n]:[]:C.find.matches(e,C.grep(t,function(e){return 1===e.nodeType}))},C.fn.extend({find:function(e){var t,i=this.length,n=[],s=this;if("string"!=typeof e)return this.pushStack(C(e).filter(function(){for(t=0;t<i;t++)if(C.contains(s[t],this))return!0}));for(t=0;t<i;t++)C.find(e,s[t],n);return(n=this.pushStack(1<i?C.unique(n):n)).selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(x(this,e||[],!1))},not:function(e){return this.pushStack(x(this,e||[],!0))},is:function(e){return!!x(this,"string"==typeof e&&y.test(e)?C(e):e||[],!1).length}});var k,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(C.fn.init=function(e,t){var i,n;if(!e)return this;if("string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):C.isFunction(e)?void 0!==k.ready?k.ready(e):e(C):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),C.makeArray(e,this));if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:D.exec(e))||!i[1]&&t)return!t||t.jquery?(t||k).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:_,!0)),b.test(i[1])&&C.isPlainObject(t))for(i in t)C.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(n=_.getElementById(i[2]))&&n.parentNode&&(this.length=1,this[0]=n),this.context=_,this.selector=e,this}).prototype=C.fn,k=C(_);var T=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.extend({dir:function(e,t,i){for(var n=[],s=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(s&&C(e).is(i))break;n.push(e)}return n},sibling:function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}}),C.fn.extend({has:function(e){var t=C(e,this),i=t.length;return this.filter(function(){for(var e=0;e<i;e++)if(C.contains(this,t[e]))return!0})},closest:function(e,t){for(var i,n=0,s=this.length,o=[],a=y.test(e)||"string"!=typeof e?C(e,t||this.context):0;n<s;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(a?-1<a.index(i):1===i.nodeType&&C.find.matchesSelector(i,e))){o.push(i);break}return this.pushStack(1<o.length?C.unique(o):o)},index:function(e){return e?"string"==typeof e?s.call(C(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.unique(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return C.dir(e,"parentNode")},parentsUntil:function(e,t,i){return C.dir(e,"parentNode",i)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return C.dir(e,"nextSibling")},prevAll:function(e){return C.dir(e,"previousSibling")},nextUntil:function(e,t,i){return C.dir(e,"nextSibling",i)},prevUntil:function(e,t,i){return C.dir(e,"previousSibling",i)},siblings:function(e){return C.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return C.sibling(e.firstChild)},contents:function(e){return e.contentDocument||C.merge([],e.childNodes)}},function(n,s){C.fn[n]=function(e,t){var i=C.map(this,s,e);return"Until"!==n.slice(-5)&&(t=e),t&&"string"==typeof t&&(i=C.filter(t,i)),1<this.length&&(P[n]||C.unique(i),T.test(n)&&i.reverse()),this.pushStack(i)}});var S,I=/\S+/g,M={};function N(){_.removeEventListener("DOMContentLoaded",N,!1),f.removeEventListener("load",N,!1),C.ready()}C.Callbacks=function(s){var e,i;s="string"==typeof s?M[s]||(i=M[e=s]={},C.each(e.match(I)||[],function(e,t){i[t]=!0}),i):C.extend({},s);var t,n,o,a,r,l,h=[],c=!s.once&&[],u=function(e){for(t=s.memory&&e,n=!0,l=a||0,a=0,r=h.length,o=!0;h&&l<r;l++)if(!1===h[l].apply(e[0],e[1])&&s.stopOnFalse){t=!1;break}o=!1,h&&(c?c.length&&u(c.shift()):t?h=[]:d.disable())},d={add:function(){if(h){var e=h.length;!function n(e){C.each(e,function(e,t){var i=C.type(t);"function"===i?s.unique&&d.has(t)||h.push(t):t&&t.length&&"string"!==i&&n(t)})}(arguments),o?r=h.length:t&&(a=e,u(t))}return this},remove:function(){return h&&C.each(arguments,function(e,t){for(var i;-1<(i=C.inArray(t,h,i));)h.splice(i,1),o&&(i<=r&&r--,i<=l&&l--)}),this},has:function(e){return e?-1<C.inArray(e,h):!(!h||!h.length)},empty:function(){return h=[],r=0,this},disable:function(){return h=c=t=void 0,this},disabled:function(){return!h},lock:function(){return c=void 0,t||d.disable(),this},locked:function(){return!c},fireWith:function(e,t){return!h||n&&!c||(t=[e,(t=t||[]).slice?t.slice():t],o?c.push(t):u(t)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!n}};return d},C.extend({Deferred:function(e){var o=[["resolve","done",C.Callbacks("once memory"),"resolved"],["reject","fail",C.Callbacks("once memory"),"rejected"],["notify","progress",C.Callbacks("memory")]],s="pending",a={state:function(){return s},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var s=arguments;return C.Deferred(function(n){C.each(o,function(e,t){var i=C.isFunction(s[e])&&s[e];r[t[1]](function(){var e=i&&i.apply(this,arguments);e&&C.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===a?n.promise():this,i?[e]:arguments)})}),s=null}).promise()},promise:function(e){return null!=e?C.extend(e,a):a}},r={};return a.pipe=a.then,C.each(o,function(e,t){var i=t[2],n=t[3];a[t[1]]=i.add,n&&i.add(function(){s=n},o[1^e][2].disable,o[2][2].lock),r[t[0]]=function(){return r[t[0]+"With"](this===r?a:this,arguments),this},r[t[0]+"With"]=i.fireWith}),a.promise(r),e&&e.call(r,r),r},when:function(e){var s,t,i,n=0,o=c.call(arguments),a=o.length,r=1!==a||e&&C.isFunction(e.promise)?a:0,l=1===r?e:C.Deferred(),h=function(t,i,n){return function(e){i[t]=this,n[t]=1<arguments.length?c.call(arguments):e,n===s?l.notifyWith(i,n):--r||l.resolveWith(i,n)}};if(1<a)for(s=new Array(a),t=new Array(a),i=new Array(a);n<a;n++)o[n]&&C.isFunction(o[n].promise)?o[n].promise().done(h(n,i,o)).fail(l.reject).progress(h(n,t,s)):--r;return r||l.resolveWith(i,o),l.promise()}}),C.fn.ready=function(e){return C.ready.promise().done(e),this},C.extend({isReady:!1,readyWait:1,holdReady:function(e){e?C.readyWait++:C.ready(!0)},ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0)!==e&&0<--C.readyWait||(S.resolveWith(_,[C]),C.fn.triggerHandler&&(C(_).triggerHandler("ready"),C(_).off("ready")))}}),C.ready.promise=function(e){return S||(S=C.Deferred(),"complete"===_.readyState?setTimeout(C.ready):(_.addEventListener("DOMContentLoaded",N,!1),f.addEventListener("load",N,!1))),S.promise(e)},C.ready.promise();var E=C.access=function(e,t,i,n,s,o,a){var r=0,l=e.length,h=null==i;if("object"===C.type(i))for(r in s=!0,i)C.access(e,t,r,i[r],!0,o,a);else if(void 0!==n&&(s=!0,C.isFunction(n)||(a=!0),h&&(t=a?(t.call(e,n),null):(h=t,function(e,t,i){return h.call(C(e),i)})),t))for(;r<l;r++)t(e[r],i,a?n:n.call(e[r],r,t(e[r],i)));return s?e:h?t.call(e):l?t(e[0],i):o};function H(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=C.expando+H.uid++}C.acceptData=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},H.uid=1,H.accepts=C.acceptData,H.prototype={key:function(t){if(!H.accepts(t))return 0;var i={},n=t[this.expando];if(!n){n=H.uid++;try{i[this.expando]={value:n},Object.defineProperties(t,i)}catch(e){i[this.expando]=n,C.extend(t,i)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,i){var n,s=this.key(e),o=this.cache[s];if("string"==typeof t)o[t]=i;else if(C.isEmptyObject(o))C.extend(this.cache[s],t);else for(n in t)o[n]=t[n];return o},get:function(e,t){var i=this.cache[this.key(e)];return void 0===t?i:i[t]},access:function(e,t,i){var n;return void 0===t||t&&"string"==typeof t&&void 0===i?void 0!==(n=this.get(e,t))?n:this.get(e,C.camelCase(t)):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n,s,o=this.key(e),a=this.cache[o];if(void 0===t)this.cache[o]={};else{i=(n=C.isArray(t)?t.concat(t.map(C.camelCase)):(s=C.camelCase(t),t in a?[t,s]:(n=s)in a?[n]:n.match(I)||[])).length;for(;i--;)delete a[n[i]]}},hasData:function(e){return!C.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}};var R=new H,O=new H,F=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,z=/([A-Z])/g;function W(e,t,i){var n;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(z,"-$1").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:F.test(i)?C.parseJSON(i):i)}catch(e){}O.set(e,t,i)}else i=void 0;return i}C.extend({hasData:function(e){return O.hasData(e)||R.hasData(e)},data:function(e,t,i){return O.access(e,t,i)},removeData:function(e,t){O.remove(e,t)},_data:function(e,t,i){return R.access(e,t,i)},_removeData:function(e,t){R.remove(e,t)}}),C.fn.extend({data:function(n,e){var t,i,s,o=this[0],a=o&&o.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){O.set(this,n)}):E(this,function(t){var e,i=C.camelCase(n);if(o&&void 0===t)return void 0!==(e=O.get(o,n))?e:void 0!==(e=O.get(o,i))?e:void 0!==(e=W(o,i,void 0))?e:void 0;this.each(function(){var e=O.get(this,i);O.set(this,i,t),-1!==n.indexOf("-")&&void 0!==e&&O.set(this,n,t)})},null,e,1<arguments.length,null,!0);if(this.length&&(s=O.get(o),1===o.nodeType&&!R.get(o,"hasDataAttrs"))){for(t=a.length;t--;)a[t]&&0===(i=a[t].name).indexOf("data-")&&(i=C.camelCase(i.slice(5)),W(o,i,s[i]));R.set(o,"hasDataAttrs",!0)}return s},removeData:function(e){return this.each(function(){O.remove(this,e)})}}),C.extend({queue:function(e,t,i){var n;if(e)return t=(t||"fx")+"queue",n=R.get(e,t),i&&(!n||C.isArray(i)?n=R.access(e,t,C.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=C.queue(e,t),n=i.length,s=i.shift(),o=C._queueHooks(e,t);"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===t&&i.unshift("inprogress"),delete o.stop,s.call(e,function(){C.dequeue(e,t)},o)),!n&&o&&o.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return R.get(e,i)||R.access(e,i,{empty:C.Callbacks("once memory").add(function(){R.remove(e,[t+"queue",i])})})}}),C.fn.extend({queue:function(t,i){var e=2;return"string"!=typeof t&&(i=t,t="fx",e--),arguments.length<e?C.queue(this[0],t):void 0===i?this:this.each(function(){var e=C.queue(this,t,i);C._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&C.dequeue(this,t)})},dequeue:function(e){return this.each(function(){C.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,n=1,s=C.Deferred(),o=this,a=this.length,r=function(){--n||s.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(i=R.get(o[a],e+"queueHooks"))&&i.empty&&(n++,i.empty.add(r));return r(),s.promise(t)}});var L,j,q=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,B=["Top","Right","Bottom","Left"],U=function(e,t){return e=t||e,"none"===C.css(e,"display")||!C.contains(e.ownerDocument,e)},Y=/^(?:checkbox|radio)$/i;L=_.createDocumentFragment().appendChild(_.createElement("div")),(j=_.createElement("input")).setAttribute("type","radio"),j.setAttribute("checked","checked"),j.setAttribute("name","t"),L.appendChild(j),v.checkClone=L.cloneNode(!0).cloneNode(!0).lastChild.checked,L.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!L.cloneNode(!0).lastChild.defaultValue;var V="undefined";v.focusinBubbles="onfocusin"in f;var $=/^key/,G=/^(?:mouse|pointer|contextmenu)|click/,K=/^(?:focusinfocus|focusoutblur)$/,X=/^([^.]*)(?:\.(.+)|)$/;function Q(){return!0}function J(){return!1}function Z(){try{return _.activeElement}catch(e){}}C.event={global:{},add:function(t,e,i,n,s){var o,a,r,l,h,c,u,d,p,f,m,g=R.get(t);if(g)for(i.handler&&(i=(o=i).handler,s=o.selector),i.guid||(i.guid=C.guid++),(l=g.events)||(l=g.events={}),(a=g.handle)||(a=g.handle=function(e){return typeof C!==V&&C.event.triggered!==e.type?C.event.dispatch.apply(t,arguments):void 0}),h=(e=(e||"").match(I)||[""]).length;h--;)p=m=(r=X.exec(e[h])||[])[1],f=(r[2]||"").split(".").sort(),p&&(u=C.event.special[p]||{},p=(s?u.delegateType:u.bindType)||p,u=C.event.special[p]||{},c=C.extend({type:p,origType:m,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&C.expr.match.needsContext.test(s),namespace:f.join(".")},o),(d=l[p])||((d=l[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,n,f,a)||t.addEventListener&&t.addEventListener(p,a,!1)),u.add&&(u.add.call(t,c),c.handler.guid||(c.handler.guid=i.guid)),s?d.splice(d.delegateCount++,0,c):d.push(c),C.event.global[p]=!0)},remove:function(e,t,i,n,s){var o,a,r,l,h,c,u,d,p,f,m,g=R.hasData(e)&&R.get(e);if(g&&(l=g.events)){for(h=(t=(t||"").match(I)||[""]).length;h--;)if(p=m=(r=X.exec(t[h])||[])[1],f=(r[2]||"").split(".").sort(),p){for(u=C.event.special[p]||{},d=l[p=(n?u.delegateType:u.bindType)||p]||[],r=r[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)c=d[o],!s&&m!==c.origType||i&&i.guid!==c.guid||r&&!r.test(c.namespace)||n&&n!==c.selector&&("**"!==n||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,u.remove&&u.remove.call(e,c));a&&!d.length&&(u.teardown&&!1!==u.teardown.call(e,f,g.handle)||C.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)C.event.remove(e,p+t[h],i,n,!0);C.isEmptyObject(l)&&(delete g.handle,R.remove(e,"events"))}},trigger:function(e,t,i,n){var s,o,a,r,l,h,c,u=[i||_],d=g.call(e,"type")?e.type:e,p=g.call(e,"namespace")?e.namespace.split("."):[];if(o=a=i=i||_,3!==i.nodeType&&8!==i.nodeType&&!K.test(d+C.event.triggered)&&(0<=d.indexOf(".")&&(d=(p=d.split(".")).shift(),p.sort()),l=d.indexOf(":")<0&&"on"+d,(e=e[C.expando]?e:new C.Event(d,"object"==typeof e&&e)).isTrigger=n?2:3,e.namespace=p.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:C.makeArray(t,[e]),c=C.event.special[d]||{},n||!c.trigger||!1!==c.trigger.apply(i,t))){if(!n&&!c.noBubble&&!C.isWindow(i)){for(r=c.delegateType||d,K.test(r+d)||(o=o.parentNode);o;o=o.parentNode)u.push(o),a=o;a===(i.ownerDocument||_)&&u.push(a.defaultView||a.parentWindow||f)}for(s=0;(o=u[s++])&&!e.isPropagationStopped();)e.type=1<s?r:c.bindType||d,(h=(R.get(o,"events")||{})[e.type]&&R.get(o,"handle"))&&h.apply(o,t),(h=l&&o[l])&&h.apply&&C.acceptData(o)&&(e.result=h.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,n||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(u.pop(),t)||!C.acceptData(i)||l&&C.isFunction(i[d])&&!C.isWindow(i)&&((a=i[l])&&(i[l]=null),i[C.event.triggered=d](),C.event.triggered=void 0,a&&(i[l]=a)),e.result}},dispatch:function(e){e=C.event.fix(e);var t,i,n,s,o,a,r=c.call(arguments),l=(R.get(this,"events")||{})[e.type]||[],h=C.event.special[e.type]||{};if((r[0]=e).delegateTarget=this,!h.preDispatch||!1!==h.preDispatch.call(this,e)){for(a=C.event.handlers.call(this,e,l),t=0;(s=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=s.elem,i=0;(o=s.handlers[i++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(o.namespace)||(e.handleObj=o,e.data=o.data,void 0!==(n=((C.event.special[o.origType]||{}).handle||o.handler).apply(s.elem,r))&&!1===(e.result=n)&&(e.preventDefault(),e.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,e),e.result}},handlers:function(e,t){var i,n,s,o,a=[],r=t.delegateCount,l=e.target;if(r&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!==this;l=l.parentNode||this)if(!0!==l.disabled||"click"!==e.type){for(n=[],i=0;i<r;i++)void 0===n[s=(o=t[i]).selector+" "]&&(n[s]=o.needsContext?0<=C(s,this).index(l):C.find(s,this,null,[l]).length),n[s]&&n.push(o);n.length&&a.push({elem:l,handlers:n})}return r<t.length&&a.push({elem:this,handlers:t.slice(r)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var i,n,s,o=t.button;return null==e.pageX&&null!=t.clientX&&(n=(i=e.target.ownerDocument||_).documentElement,s=i.body,e.pageX=t.clientX+(n&&n.scrollLeft||s&&s.scrollLeft||0)-(n&&n.clientLeft||s&&s.clientLeft||0),e.pageY=t.clientY+(n&&n.scrollTop||s&&s.scrollTop||0)-(n&&n.clientTop||s&&s.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[C.expando])return e;var t,i,n,s=e.type,o=e,a=this.fixHooks[s];for(a||(this.fixHooks[s]=a=G.test(s)?this.mouseHooks:$.test(s)?this.keyHooks:{}),n=a.props?this.props.concat(a.props):this.props,e=new C.Event(o),t=n.length;t--;)e[i=n[t]]=o[i];return e.target||(e.target=_),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Z()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===Z()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&C.nodeName(this,"input"))return this.click(),!1},_default:function(e){return C.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,i,n){var s=C.extend(new C.Event,i,{type:e,isSimulated:!0,originalEvent:{}});n?C.event.trigger(s,null,t):C.event.dispatch.call(t,s),s.isDefaultPrevented()&&i.preventDefault()}},C.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i,!1)},C.Event=function(e,t){if(!(this instanceof C.Event))return new C.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Q:J):this.type=e,t&&C.extend(this,t),this.timeStamp=e&&e.timeStamp||C.now(),this[C.expando]=!0},C.Event.prototype={isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Q,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Q,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Q,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,s){C.event.special[e]={delegateType:s,bindType:s,handle:function(e){var t,i=e.relatedTarget,n=e.handleObj;return i&&(i===this||C.contains(this,i))||(e.type=n.origType,t=n.handler.apply(this,arguments),e.type=s),t}}}),v.focusinBubbles||C.each({focus:"focusin",blur:"focusout"},function(i,n){var s=function(e){C.event.simulate(n,e.target,C.event.fix(e),!0)};C.event.special[n]={setup:function(){var e=this.ownerDocument||this,t=R.access(e,n);t||e.addEventListener(i,s,!0),R.access(e,n,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=R.access(e,n)-1;t?R.access(e,n,t):(e.removeEventListener(i,s,!0),R.remove(e,n))}}}),C.fn.extend({on:function(e,t,i,n,s){var o,a;if("object"==typeof e){for(a in"string"!=typeof t&&(i=i||t,t=void 0),e)this.on(a,t,i,e[a],s);return this}if(null==i&&null==n?(n=t,i=t=void 0):null==n&&("string"==typeof t?(n=i,i=void 0):(n=i,i=t,t=void 0)),!1===n)n=J;else if(!n)return this;return 1===s&&(o=n,(n=function(e){return C().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=C.guid++)),this.each(function(){C.event.add(this,e,n,i,t)})},one:function(e,t,i,n){return this.on(e,t,i,n,1)},off:function(e,t,i){var n,s;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,C(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=J),this.each(function(){C.event.remove(this,e,i,t)});for(s in e)this.off(s,t,e[s]);return this},trigger:function(e,t){return this.each(function(){C.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];if(i)return C.event.trigger(e,t,i,!0)}});var ee=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,te=/<([\w:]+)/,ie=/<|&#?\w+;/,ne=/<(?:script|style|link)/i,se=/checked\s*(?:[^=]|=\s*.checked.)/i,oe=/^$|\/(?:java|ecma)script/i,ae=/^true\/(.*)/,re=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,le={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function he(e,t){return C.nodeName(e,"table")&&C.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ce(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ue(e){var t=ae.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function de(e,t){for(var i=0,n=e.length;i<n;i++)R.set(e[i],"globalEval",!t||R.get(t[i],"globalEval"))}function pe(e,t){var i,n,s,o,a,r,l,h;if(1===t.nodeType){if(R.hasData(e)&&(o=R.access(e),a=R.set(t,o),h=o.events))for(s in delete a.handle,a.events={},h)for(i=0,n=h[s].length;i<n;i++)C.event.add(t,s,h[s][i]);O.hasData(e)&&(r=O.access(e),l=C.extend({},r),O.set(t,l))}}function fe(e,t){var i=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&C.nodeName(e,t)?C.merge([e],i):i}le.optgroup=le.option,le.tbody=le.tfoot=le.colgroup=le.caption=le.thead,le.th=le.td,C.extend({clone:function(e,t,i){var n,s,o,a,r,l,h,c=e.cloneNode(!0),u=C.contains(e.ownerDocument,e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(a=fe(c),n=0,s=(o=fe(e)).length;n<s;n++)r=o[n],l=a[n],void 0,"input"===(h=l.nodeName.toLowerCase())&&Y.test(r.type)?l.checked=r.checked:"input"!==h&&"textarea"!==h||(l.defaultValue=r.defaultValue);if(t)if(i)for(o=o||fe(e),a=a||fe(c),n=0,s=o.length;n<s;n++)pe(o[n],a[n]);else pe(e,c);return 0<(a=fe(c,"script")).length&&de(a,!u&&fe(e,"script")),c},buildFragment:function(e,t,i,n){for(var s,o,a,r,l,h,c=t.createDocumentFragment(),u=[],d=0,p=e.length;d<p;d++)if((s=e[d])||0===s)if("object"===C.type(s))C.merge(u,s.nodeType?[s]:s);else if(ie.test(s)){for(o=o||c.appendChild(t.createElement("div")),a=(te.exec(s)||["",""])[1].toLowerCase(),r=le[a]||le._default,o.innerHTML=r[1]+s.replace(ee,"<$1></$2>")+r[2],h=r[0];h--;)o=o.lastChild;C.merge(u,o.childNodes),(o=c.firstChild).textContent=""}else u.push(t.createTextNode(s));for(c.textContent="",d=0;s=u[d++];)if((!n||-1===C.inArray(s,n))&&(l=C.contains(s.ownerDocument,s),o=fe(c.appendChild(s),"script"),l&&de(o),i))for(h=0;s=o[h++];)oe.test(s.type||"")&&i.push(s);return c},cleanData:function(e){for(var t,i,n,s,o=C.event.special,a=0;void 0!==(i=e[a]);a++){if(C.acceptData(i)&&(s=i[R.expando])&&(t=R.cache[s])){if(t.events)for(n in t.events)o[n]?C.event.remove(i,n):C.removeEvent(i,n,t.handle);R.cache[s]&&delete R.cache[s]}delete O.cache[i[O.expando]]}}}),C.fn.extend({text:function(e){return E(this,function(e){return void 0===e?C.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||he(this,e).appendChild(e)})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=he(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var i,n=e?C.filter(e,this):this,s=0;null!=(i=n[s]);s++)t||1!==i.nodeType||C.cleanData(fe(i)),i.parentNode&&(t&&C.contains(i.ownerDocument,i)&&de(fe(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(C.cleanData(fe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return C.clone(this,e,t)})},html:function(e){return E(this,function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ne.test(e)&&!le[(te.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(ee,"<$1></$2>");try{for(;i<n;i++)1===(t=this[i]||{}).nodeType&&(C.cleanData(fe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,C.cleanData(fe(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(i,n){i=m.apply([],i);var e,t,s,o,a,r,l=0,h=this.length,c=this,u=h-1,d=i[0],p=C.isFunction(d);if(p||1<h&&"string"==typeof d&&!v.checkClone&&se.test(d))return this.each(function(e){var t=c.eq(e);p&&(i[0]=d.call(this,e,t.html())),t.domManip(i,n)});if(h&&(t=(e=C.buildFragment(i,this[0].ownerDocument,!1,this)).firstChild,1===e.childNodes.length&&(e=t),t)){for(o=(s=C.map(fe(e,"script"),ce)).length;l<h;l++)a=e,l!==u&&(a=C.clone(a,!0,!0),o&&C.merge(s,fe(a,"script"))),n.call(this[l],a,l);if(o)for(r=s[s.length-1].ownerDocument,C.map(s,ue),l=0;l<o;l++)a=s[l],oe.test(a.type||"")&&!R.access(a,"globalEval")&&C.contains(r,a)&&(a.src?C._evalUrl&&C._evalUrl(a.src):C.globalEval(a.textContent.replace(re,"")))}return this}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){C.fn[e]=function(e){for(var t,i=[],n=C(e),s=n.length-1,o=0;o<=s;o++)t=o===s?this:this.clone(!0),C(n[o])[a](t),r.apply(i,t.get());return this.pushStack(i)}});var me,ge={};function ve(e,t){var i,n=C(t.createElement(e)).appendTo(t.body),s=f.getDefaultComputedStyle&&(i=f.getDefaultComputedStyle(n[0]))?i.display:C.css(n[0],"display");return n.detach(),s}function _e(e){var t=_,i=ge[e];return i||("none"!==(i=ve(e,t))&&i||((t=(me=(me||C("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),i=ve(e,t),me.detach()),ge[e]=i),i}var ye=/^margin/,be=new RegExp("^("+q+")(?!px)[a-z%]+$","i"),we=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):f.getComputedStyle(e,null)};function xe(e,t,i){var n,s,o,a,r=e.style;return(i=i||we(e))&&(a=i.getPropertyValue(t)||i[t]),i&&(""!==a||C.contains(e.ownerDocument,e)||(a=C.style(e,t)),be.test(a)&&ye.test(t)&&(n=r.width,s=r.minWidth,o=r.maxWidth,r.minWidth=r.maxWidth=r.width=a,a=i.width,r.width=n,r.minWidth=s,r.maxWidth=o)),void 0!==a?a+"":a}function Ce(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){var t,i,n=_.documentElement,s=_.createElement("div"),o=_.createElement("div");function e(){o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o.innerHTML="",n.appendChild(s);var e=f.getComputedStyle(o,null);t="1%"!==e.top,i="4px"===e.width,n.removeChild(s)}o.style&&(o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===o.style.backgroundClip,s.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",s.appendChild(o),f.getComputedStyle&&C.extend(v,{pixelPosition:function(){return e(),t},boxSizingReliable:function(){return null==i&&e(),i},reliableMarginRight:function(){var e,t=o.appendChild(_.createElement("div"));return t.style.cssText=o.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",o.style.width="1px",n.appendChild(s),e=!parseFloat(f.getComputedStyle(t,null).marginRight),n.removeChild(s),o.removeChild(t),e}}))}(),C.swap=function(e,t,i,n){var s,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in s=i.apply(e,n||[]),t)e.style[o]=a[o];return s};var ke=/^(none|table(?!-c[ea]).+)/,De=new RegExp("^("+q+")(.*)$","i"),Te=new RegExp("^([+-])=("+q+")","i"),Pe={position:"absolute",visibility:"hidden",display:"block"},Ae={letterSpacing:"0",fontWeight:"400"},Se=["Webkit","O","Moz","ms"];function Ie(e,t){if(t in e)return t;for(var i=t[0].toUpperCase()+t.slice(1),n=t,s=Se.length;s--;)if((t=Se[s]+i)in e)return t;return n}function Me(e,t,i){var n=De.exec(t);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):t}function Ne(e,t,i,n,s){for(var o=i===(n?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===i&&(a+=C.css(e,i+B[o],!0,s)),n?("content"===i&&(a-=C.css(e,"padding"+B[o],!0,s)),"margin"!==i&&(a-=C.css(e,"border"+B[o]+"Width",!0,s))):(a+=C.css(e,"padding"+B[o],!0,s),"padding"!==i&&(a+=C.css(e,"border"+B[o]+"Width",!0,s)));return a}function Ee(e,t,i){var n=!0,s="width"===t?e.offsetWidth:e.offsetHeight,o=we(e),a="border-box"===C.css(e,"boxSizing",!1,o);if(s<=0||null==s){if(((s=xe(e,t,o))<0||null==s)&&(s=e.style[t]),be.test(s))return s;n=a&&(v.boxSizingReliable()||s===e.style[t]),s=parseFloat(s)||0}return s+Ne(e,t,i||(a?"border":"content"),n,o)+"px"}function He(e,t){for(var i,n,s,o=[],a=0,r=e.length;a<r;a++)(n=e[a]).style&&(o[a]=R.get(n,"olddisplay"),i=n.style.display,t?(o[a]||"none"!==i||(n.style.display=""),""===n.style.display&&U(n)&&(o[a]=R.access(n,"olddisplay",_e(n.nodeName)))):(s=U(n),"none"===i&&s||R.set(n,"olddisplay",s?i:C.css(n,"display"))));for(a=0;a<r;a++)(n=e[a]).style&&(t&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=t?o[a]||"":"none"));return e}function Re(e,t,i,n,s){return new Re.prototype.init(e,t,i,n,s)}C.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=xe(e,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var s,o,a,r=C.camelCase(t),l=e.style;if(t=C.cssProps[r]||(C.cssProps[r]=Ie(l,r)),a=C.cssHooks[t]||C.cssHooks[r],void 0===i)return a&&"get"in a&&void 0!==(s=a.get(e,!1,n))?s:l[t];"string"===(o=typeof i)&&(s=Te.exec(i))&&(i=(s[1]+1)*s[2]+parseFloat(C.css(e,t)),o="number"),null!=i&&i==i&&("number"!==o||C.cssNumber[r]||(i+="px"),v.clearCloneStyle||""!==i||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(i=a.set(e,i,n))||(l[t]=i))}},css:function(e,t,i,n){var s,o,a,r=C.camelCase(t);return t=C.cssProps[r]||(C.cssProps[r]=Ie(e.style,r)),(a=C.cssHooks[t]||C.cssHooks[r])&&"get"in a&&(s=a.get(e,!0,i)),void 0===s&&(s=xe(e,t,n)),"normal"===s&&t in Ae&&(s=Ae[t]),""===i||i?(o=parseFloat(s),!0===i||C.isNumeric(o)?o||0:s):s}}),C.each(["height","width"],function(e,s){C.cssHooks[s]={get:function(e,t,i){if(t)return ke.test(C.css(e,"display"))&&0===e.offsetWidth?C.swap(e,Pe,function(){return Ee(e,s,i)}):Ee(e,s,i)},set:function(e,t,i){var n=i&&we(e);return Me(0,t,i?Ne(e,s,i,"border-box"===C.css(e,"boxSizing",!1,n),n):0)}}}),C.cssHooks.marginRight=Ce(v.reliableMarginRight,function(e,t){if(t)return C.swap(e,{display:"inline-block"},xe,[e,"marginRight"])}),C.each({margin:"",padding:"",border:"Width"},function(s,o){C.cssHooks[s+o]={expand:function(e){for(var t=0,i={},n="string"==typeof e?e.split(" "):[e];t<4;t++)i[s+B[t]+o]=n[t]||n[t-2]||n[0];return i}},ye.test(s)||(C.cssHooks[s+o].set=Me)}),C.fn.extend({css:function(e,t){return E(this,function(e,t,i){var n,s,o={},a=0;if(C.isArray(t)){for(n=we(e),s=t.length;a<s;a++)o[t[a]]=C.css(e,t[a],!1,n);return o}return void 0!==i?C.style(e,t,i):C.css(e,t)},e,t,1<arguments.length)},show:function(){return He(this,!0)},hide:function(){return He(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){U(this)?C(this).show():C(this).hide()})}}),((C.Tween=Re).prototype={constructor:Re,init:function(e,t,i,n,s,o){this.elem=e,this.prop=i,this.easing=s||"swing",this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=o||(C.cssNumber[i]?"":"px")},cur:function(){var e=Re.propHooks[this.prop];return e&&e.get?e.get(this):Re.propHooks._default.get(this)},run:function(e){var t,i=Re.propHooks[this.prop];return this.options.duration?this.pos=t=C.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):Re.propHooks._default.set(this),this}}).init.prototype=Re.prototype,(Re.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=C.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){C.fx.step[e.prop]?C.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[C.cssProps[e.prop]]||C.cssHooks[e.prop])?C.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}}).scrollTop=Re.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},C.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},C.fx=Re.prototype.init,C.fx.step={};var Oe,Fe,ze,We,Le,je=/^(?:toggle|show|hide)$/,qe=new RegExp("^(?:([+-])=|)("+q+")([a-z%]*)$","i"),Be=/queueHooks$/,Ue=[function(t,e,i){var n,s,o,a,r,l,h,c=this,u={},d=t.style,p=t.nodeType&&U(t),f=R.get(t,"fxshow");i.queue||(null==(r=C._queueHooks(t,"fx")).unqueued&&(r.unqueued=0,l=r.empty.fire,r.empty.fire=function(){r.unqueued||l()}),r.unqueued++,c.always(function(){c.always(function(){r.unqueued--,C.queue(t,"fx").length||r.empty.fire()})}));1===t.nodeType&&("height"in e||"width"in e)&&(i.overflow=[d.overflow,d.overflowX,d.overflowY],h=C.css(t,"display"),"inline"===("none"===h?R.get(t,"olddisplay")||_e(t.nodeName):h)&&"none"===C.css(t,"float")&&(d.display="inline-block"));i.overflow&&(d.overflow="hidden",c.always(function(){d.overflow=i.overflow[0],d.overflowX=i.overflow[1],d.overflowY=i.overflow[2]}));for(n in e)if(s=e[n],je.exec(s)){if(delete e[n],o=o||"toggle"===s,s===(p?"hide":"show")){if("show"!==s||!f||void 0===f[n])continue;p=!0}u[n]=f&&f[n]||C.style(t,n)}else h=void 0;if(C.isEmptyObject(u))"inline"===("none"===h?_e(t.nodeName):h)&&(d.display=h);else for(n in f?"hidden"in f&&(p=f.hidden):f=R.access(t,"fxshow",{}),o&&(f.hidden=!p),p?C(t).show():c.done(function(){C(t).hide()}),c.done(function(){var e;for(e in R.remove(t,"fxshow"),u)C.style(t,e,u[e])}),u)a=Ge(p?f[n]:0,n,c),n in f||(f[n]=a.start,p&&(a.end=a.start,a.start="width"===n||"height"===n?1:0))}],Ye={"*":[function(e,t){var i=this.createTween(e,t),n=i.cur(),s=qe.exec(t),o=s&&s[3]||(C.cssNumber[e]?"":"px"),a=(C.cssNumber[e]||"px"!==o&&+n)&&qe.exec(C.css(i.elem,e)),r=1,l=20;if(a&&a[3]!==o)for(o=o||a[3],s=s||[],a=+n||1;a/=r=r||".5",C.style(i.elem,e,a+o),r!==(r=i.cur()/n)&&1!==r&&--l;);return s&&(a=i.start=+a||+n||0,i.unit=o,i.end=s[1]?a+(s[1]+1)*s[2]:+s[2]),i}]};function Ve(){return setTimeout(function(){Oe=void 0}),Oe=C.now()}function $e(e,t){var i,n=0,s={height:e};for(t=t?1:0;n<4;n+=2-t)s["margin"+(i=B[n])]=s["padding"+i]=e;return t&&(s.opacity=s.width=e),s}function Ge(e,t,i){for(var n,s=(Ye[t]||[]).concat(Ye["*"]),o=0,a=s.length;o<a;o++)if(n=s[o].call(i,t,e))return n}function Ke(o,e,t){var i,a,n=0,s=Ue.length,r=C.Deferred().always(function(){delete l.elem}),l=function(){if(a)return!1;for(var e=Oe||Ve(),t=Math.max(0,h.startTime+h.duration-e),i=1-(t/h.duration||0),n=0,s=h.tweens.length;n<s;n++)h.tweens[n].run(i);return r.notifyWith(o,[h,i,t]),i<1&&s?t:(r.resolveWith(o,[h]),!1)},h=r.promise({elem:o,props:C.extend({},e),opts:C.extend(!0,{specialEasing:{}},t),originalProperties:e,originalOptions:t,startTime:Oe||Ve(),duration:t.duration,tweens:[],createTween:function(e,t){var i=C.Tween(o,h.opts,e,t,h.opts.specialEasing[e]||h.opts.easing);return h.tweens.push(i),i},stop:function(e){var t=0,i=e?h.tweens.length:0;if(a)return this;for(a=!0;t<i;t++)h.tweens[t].run(1);return e?r.resolveWith(o,[h,e]):r.rejectWith(o,[h,e]),this}}),c=h.props;for(!function(e,t){var i,n,s,o,a;for(i in e)if(s=t[n=C.camelCase(i)],o=e[i],C.isArray(o)&&(s=o[1],o=e[i]=o[0]),i!==n&&(e[n]=o,delete e[i]),(a=C.cssHooks[n])&&"expand"in a)for(i in o=a.expand(o),delete e[n],o)i in e||(e[i]=o[i],t[i]=s);else t[n]=s}(c,h.opts.specialEasing);n<s;n++)if(i=Ue[n].call(h,o,c,h.opts))return i;return C.map(c,Ge,h),C.isFunction(h.opts.start)&&h.opts.start.call(o,h),C.fx.timer(C.extend(l,{elem:o,anim:h,queue:h.opts.queue})),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always)}C.Animation=C.extend(Ke,{tweener:function(e,t){for(var i,n=0,s=(e=C.isFunction(e)?(t=e,["*"]):e.split(" ")).length;n<s;n++)i=e[n],Ye[i]=Ye[i]||[],Ye[i].unshift(t)},prefilter:function(e,t){t?Ue.unshift(e):Ue.push(e)}}),C.speed=function(e,t,i){var n=e&&"object"==typeof e?C.extend({},e):{complete:i||!i&&t||C.isFunction(e)&&e,duration:e,easing:i&&t||t&&!C.isFunction(t)&&t};return n.duration=C.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in C.fx.speeds?C.fx.speeds[n.duration]:C.fx.speeds._default,null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){C.isFunction(n.old)&&n.old.call(this),n.queue&&C.dequeue(this,n.queue)},n},C.fn.extend({fadeTo:function(e,t,i,n){return this.filter(U).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(t,e,i,n){var s=C.isEmptyObject(t),o=C.speed(e,i,n),a=function(){var e=Ke(this,C.extend({},t),o);(s||R.get(this,"finish"))&&e.stop(!0)};return a.finish=a,s||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(s,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof s&&(o=e,e=s,s=void 0),e&&!1!==s&&this.queue(s||"fx",[]),this.each(function(){var e=!0,t=null!=s&&s+"queueHooks",i=C.timers,n=R.get(this);if(t)n[t]&&n[t].stop&&a(n[t]);else for(t in n)n[t]&&n[t].stop&&Be.test(t)&&a(n[t]);for(t=i.length;t--;)i[t].elem!==this||null!=s&&i[t].queue!==s||(i[t].anim.stop(o),e=!1,i.splice(t,1));!e&&o||C.dequeue(this,s)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=R.get(this),i=t[a+"queue"],n=t[a+"queueHooks"],s=C.timers,o=i?i.length:0;for(t.finish=!0,C.queue(this,a,[]),n&&n.stop&&n.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===a&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;e<o;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete t.finish})}}),C.each(["toggle","show","hide"],function(e,n){var s=C.fn[n];C.fn[n]=function(e,t,i){return null==e||"boolean"==typeof e?s.apply(this,arguments):this.animate($e(n,!0),e,t,i)}}),C.each({slideDown:$e("show"),slideUp:$e("hide"),slideToggle:$e("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,n){C.fn[e]=function(e,t,i){return this.animate(n,e,t,i)}}),C.timers=[],C.fx.tick=function(){var e,t=0,i=C.timers;for(Oe=C.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||C.fx.stop(),Oe=void 0},C.fx.timer=function(e){C.timers.push(e),e()?C.fx.start():C.timers.pop()},C.fx.interval=13,C.fx.start=function(){Fe||(Fe=setInterval(C.fx.tick,C.fx.interval))},C.fx.stop=function(){clearInterval(Fe),Fe=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(n,e){return n=C.fx&&C.fx.speeds[n]||n,e=e||"fx",this.queue(e,function(e,t){var i=setTimeout(e,n);t.stop=function(){clearTimeout(i)}})},ze=_.createElement("input"),We=_.createElement("select"),Le=We.appendChild(_.createElement("option")),ze.type="checkbox",v.checkOn=""!==ze.value,v.optSelected=Le.selected,We.disabled=!0,v.optDisabled=!Le.disabled,(ze=_.createElement("input")).value="t",ze.type="radio",v.radioValue="t"===ze.value;var Xe,Qe=C.expr.attrHandle;C.fn.extend({attr:function(e,t){return E(this,C.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){C.removeAttr(this,e)})}}),C.extend({attr:function(e,t,i){var n,s,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return typeof e.getAttribute===V?C.prop(e,t,i):(1===o&&C.isXMLDoc(e)||(t=t.toLowerCase(),n=C.attrHooks[t]||(C.expr.match.bool.test(t)?Xe:void 0)),void 0===i?n&&"get"in n&&null!==(s=n.get(e,t))?s:null==(s=C.find.attr(e,t))?void 0:s:null!==i?n&&"set"in n&&void 0!==(s=n.set(e,i,t))?s:(e.setAttribute(t,i+""),i):void C.removeAttr(e,t))},removeAttr:function(e,t){var i,n,s=0,o=t&&t.match(I);if(o&&1===e.nodeType)for(;i=o[s++];)n=C.propFix[i]||i,C.expr.match.bool.test(i)&&(e[n]=!1),e.removeAttribute(i)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&C.nodeName(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}}}),Xe={set:function(e,t,i){return!1===t?C.removeAttr(e,i):e.setAttribute(i,i),i}},C.each(C.expr.match.bool.source.match(/\w+/g),function(e,t){var o=Qe[t]||C.find.attr;Qe[t]=function(e,t,i){var n,s;return i||(s=Qe[t],Qe[t]=n,n=null!=o(e,t,i)?t.toLowerCase():null,Qe[t]=s),n}});var Je=/^(?:input|select|textarea|button)$/i;C.fn.extend({prop:function(e,t){return E(this,C.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[C.propFix[e]||e]})}}),C.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,i){var n,s,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return(1!==o||!C.isXMLDoc(e))&&(t=C.propFix[t]||t,s=C.propHooks[t]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(e,i,t))?n:e[t]=i:s&&"get"in s&&null!==(n=s.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||Je.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),v.optSelected||(C.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){C.propFix[this.toLowerCase()]=this});var Ze=/[\t\r\n\f]/g;C.fn.extend({addClass:function(t){var e,i,n,s,o,a,r="string"==typeof t&&t,l=0,h=this.length;if(C.isFunction(t))return this.each(function(e){C(this).addClass(t.call(this,e,this.className))});if(r)for(e=(t||"").match(I)||[];l<h;l++)if(n=1===(i=this[l]).nodeType&&(i.className?(" "+i.className+" ").replace(Ze," "):" ")){for(o=0;s=e[o++];)n.indexOf(" "+s+" ")<0&&(n+=s+" ");a=C.trim(n),i.className!==a&&(i.className=a)}return this},removeClass:function(t){var e,i,n,s,o,a,r=0===arguments.length||"string"==typeof t&&t,l=0,h=this.length;if(C.isFunction(t))return this.each(function(e){C(this).removeClass(t.call(this,e,this.className))});if(r)for(e=(t||"").match(I)||[];l<h;l++)if(n=1===(i=this[l]).nodeType&&(i.className?(" "+i.className+" ").replace(Ze," "):"")){for(o=0;s=e[o++];)for(;0<=n.indexOf(" "+s+" ");)n=n.replace(" "+s+" "," ");a=t?C.trim(n):"",i.className!==a&&(i.className=a)}return this},toggleClass:function(s,t){var o=typeof s;return"boolean"==typeof t&&"string"===o?t?this.addClass(s):this.removeClass(s):C.isFunction(s)?this.each(function(e){C(this).toggleClass(s.call(this,e,this.className,t),t)}):this.each(function(){if("string"===o)for(var e,t=0,i=C(this),n=s.match(I)||[];e=n[t++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else o!==V&&"boolean"!==o||(this.className&&R.set(this,"__className__",this.className),this.className=this.className||!1===s?"":R.get(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",i=0,n=this.length;i<n;i++)if(1===this[i].nodeType&&0<=(" "+this[i].className+" ").replace(Ze," ").indexOf(t))return!0;return!1}});var et=/\r/g;C.fn.extend({val:function(i){var n,e,s,t=this[0];return arguments.length?(s=C.isFunction(i),this.each(function(e){var t;1===this.nodeType&&(null==(t=s?i.call(this,e,C(this).val()):i)?t="":"number"==typeof t?t+="":C.isArray(t)&&(t=C.map(t,function(e){return null==e?"":e+""})),(n=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,t,"value")||(this.value=t))})):t?(n=C.valHooks[t.type]||C.valHooks[t.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(et,""):null==e?"":e:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:C.trim(C.text(e))}},select:{get:function(e){for(var t,i,n=e.options,s=e.selectedIndex,o="select-one"===e.type||s<0,a=o?null:[],r=o?s+1:n.length,l=s<0?r:o?s:0;l<r;l++)if(((i=n[l]).selected||l===s)&&(v.optDisabled?!i.disabled:null===i.getAttribute("disabled"))&&(!i.parentNode.disabled||!C.nodeName(i.parentNode,"optgroup"))){if(t=C(i).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var i,n,s=e.options,o=C.makeArray(t),a=s.length;a--;)((n=s[a]).selected=0<=C.inArray(n.value,o))&&(i=!0);return i||(e.selectedIndex=-1),o}}}}),C.each(["radio","checkbox"],function(){C.valHooks[this]={set:function(e,t){if(C.isArray(t))return e.checked=0<=C.inArray(C(e).val(),t)}},v.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),C.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,i){C.fn[i]=function(e,t){return 0<arguments.length?this.on(i,null,e,t):this.trigger(i)}}),C.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)}});var tt=C.now(),it=/\?/;C.parseJSON=function(e){return JSON.parse(e+"")},C.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||C.error("Invalid XML: "+e),t};var nt=/#.*$/,st=/([?&])_=[^&]*/,ot=/^(.*?):[ \t]*([^\r\n]*)$/gm,at=/^(?:GET|HEAD)$/,rt=/^\/\//,lt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,ht={},ct={},ut="*/".concat("*"),dt=f.location.href,pt=lt.exec(dt.toLowerCase())||[];function ft(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var i,n=0,s=e.toLowerCase().match(I)||[];if(C.isFunction(t))for(;i=s[n++];)"+"===i[0]?(i=i.slice(1)||"*",(o[i]=o[i]||[]).unshift(t)):(o[i]=o[i]||[]).push(t)}}function mt(t,s,o,a){var r={},l=t===ct;function h(e){var n;return r[e]=!0,C.each(t[e]||[],function(e,t){var i=t(s,o,a);return"string"!=typeof i||l||r[i]?l?!(n=i):void 0:(s.dataTypes.unshift(i),h(i),!1)}),n}return h(s.dataTypes[0])||!r["*"]&&h("*")}function gt(e,t){var i,n,s=C.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((s[i]?e:n||(n={}))[i]=t[i]);return n&&C.extend(!0,e,n),e}C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:dt,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(pt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ut,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":C.parseJSON,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?gt(gt(e,C.ajaxSettings),t):gt(C.ajaxSettings,e)},ajaxPrefilter:ft(ht),ajaxTransport:ft(ct),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,u,d,i,p,n,f,s,m=C.ajaxSetup({},t),g=m.context||m,v=m.context&&(g.nodeType||g.jquery)?C(g):C.event,_=C.Deferred(),y=C.Callbacks("once memory"),b=m.statusCode||{},o={},a={},w=0,r="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(2===w){if(!i)for(i={};t=ot.exec(d);)i[t[1].toLowerCase()]=t[2];t=i[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===w?d:null},setRequestHeader:function(e,t){var i=e.toLowerCase();return w||(e=a[i]=a[i]||e,o[e]=t),this},overrideMimeType:function(e){return w||(m.mimeType=e),this},statusCode:function(e){var t;if(e)if(w<2)for(t in e)b[t]=[b[t],e[t]];else x.always(e[x.status]);return this},abort:function(e){var t=e||r;return c&&c.abort(t),l(0,t),this}};if(_.promise(x).complete=y.add,x.success=x.done,x.error=x.fail,m.url=((e||m.url||dt)+"").replace(nt,"").replace(rt,pt[1]+"//"),m.type=t.method||t.type||m.method||m.type,m.dataTypes=C.trim(m.dataType||"*").toLowerCase().match(I)||[""],null==m.crossDomain&&(n=lt.exec(m.url.toLowerCase()),m.crossDomain=!(!n||n[1]===pt[1]&&n[2]===pt[2]&&(n[3]||("http:"===n[1]?"80":"443"))===(pt[3]||("http:"===pt[1]?"80":"443")))),m.data&&m.processData&&"string"!=typeof m.data&&(m.data=C.param(m.data,m.traditional)),mt(ht,m,t,x),2===w)return x;for(s in(f=C.event&&m.global)&&0==C.active++&&C.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!at.test(m.type),u=m.url,m.hasContent||(m.data&&(u=m.url+=(it.test(u)?"&":"?")+m.data,delete m.data),!1===m.cache&&(m.url=st.test(u)?u.replace(st,"$1_="+tt++):u+(it.test(u)?"&":"?")+"_="+tt++)),m.ifModified&&(C.lastModified[u]&&x.setRequestHeader("If-Modified-Since",C.lastModified[u]),C.etag[u]&&x.setRequestHeader("If-None-Match",C.etag[u])),(m.data&&m.hasContent&&!1!==m.contentType||t.contentType)&&x.setRequestHeader("Content-Type",m.contentType),x.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+ut+"; q=0.01":""):m.accepts["*"]),m.headers)x.setRequestHeader(s,m.headers[s]);if(m.beforeSend&&(!1===m.beforeSend.call(g,x,m)||2===w))return x.abort();for(s in r="abort",{success:1,error:1,complete:1})x[s](m[s]);if(c=mt(ct,m,t,x)){x.readyState=1,f&&v.trigger("ajaxSend",[x,m]),m.async&&0<m.timeout&&(p=setTimeout(function(){x.abort("timeout")},m.timeout));try{w=1,c.send(o,l)}catch(e){if(!(w<2))throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,i,n){var s,o,a,r,l,h=t;2!==w&&(w=2,p&&clearTimeout(p),c=void 0,d=n||"",x.readyState=0<e?4:0,s=200<=e&&e<300||304===e,i&&(r=function(e,t,i){for(var n,s,o,a,r=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(s in r)if(r[s]&&r[s].test(n)){l.unshift(s);break}if(l[0]in i)o=l[0];else{for(s in i){if(!l[0]||e.converters[s+" "+l[0]]){o=s;break}a||(a=s)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),i[o]}(m,x,i)),r=function(e,t,i,n){var s,o,a,r,l,h={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)h[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(i[e.responseFields[o]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=h[l+" "+o]||h["* "+o]))for(s in h)if((r=s.split(" "))[1]===o&&(a=h[l+" "+r[0]]||h["* "+r[0]])){!0===a?a=h[s]:!0!==h[s]&&(o=r[0],c.unshift(r[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(m,r,x,s),s?(m.ifModified&&((l=x.getResponseHeader("Last-Modified"))&&(C.lastModified[u]=l),(l=x.getResponseHeader("etag"))&&(C.etag[u]=l)),204===e||"HEAD"===m.type?h="nocontent":304===e?h="notmodified":(h=r.state,o=r.data,s=!(a=r.error))):(a=h,!e&&h||(h="error",e<0&&(e=0))),x.status=e,x.statusText=(t||h)+"",s?_.resolveWith(g,[o,h,x]):_.rejectWith(g,[x,h,a]),x.statusCode(b),b=void 0,f&&v.trigger(s?"ajaxSuccess":"ajaxError",[x,m,s?o:a]),y.fireWith(g,[x,h]),f&&(v.trigger("ajaxComplete",[x,m]),--C.active||C.event.trigger("ajaxStop")))}return x},getJSON:function(e,t,i){return C.get(e,t,i,"json")},getScript:function(e,t){return C.get(e,void 0,t,"script")}}),C.each(["get","post"],function(e,s){C[s]=function(e,t,i,n){return C.isFunction(t)&&(n=n||i,i=t,t=void 0),C.ajax({url:e,type:s,dataType:n,data:t,success:i})}}),C._evalUrl=function(e){return C.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},C.fn.extend({wrapAll:function(t){var e;return C.isFunction(t)?this.each(function(e){C(this).wrapAll(t.call(this,e))}):(this[0]&&(e=C(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(i){return C.isFunction(i)?this.each(function(e){C(this).wrapInner(i.call(this,e))}):this.each(function(){var e=C(this),t=e.contents();t.length?t.wrapAll(i):e.append(i)})},wrap:function(t){var i=C.isFunction(t);return this.each(function(e){C(this).wrapAll(i?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){C.nodeName(this,"body")||C(this).replaceWith(this.childNodes)}).end()}}),C.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},C.expr.filters.visible=function(e){return!C.expr.filters.hidden(e)};var vt=/%20/g,_t=/\[\]$/,yt=/\r?\n/g,bt=/^(?:submit|button|image|reset|file)$/i,wt=/^(?:input|select|textarea|keygen)/i;function xt(i,e,n,s){var t;if(C.isArray(e))C.each(e,function(e,t){n||_t.test(i)?s(i,t):xt(i+"["+("object"==typeof t?e:"")+"]",t,n,s)});else if(n||"object"!==C.type(e))s(i,e);else for(t in e)xt(i+"["+t+"]",e[t],n,s)}C.param=function(e,t){var i,n=[],s=function(e,t){t=C.isFunction(t)?t():null==t?"":t,n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=C.ajaxSettings&&C.ajaxSettings.traditional),C.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,function(){s(this.name,this.value)});else for(i in e)xt(i,e[i],t,s);return n.join("&").replace(vt,"+")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=C.prop(this,"elements");return e?C.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!C(this).is(":disabled")&&wt.test(this.nodeName)&&!bt.test(e)&&(this.checked||!Y.test(e))}).map(function(e,t){var i=C(this).val();return null==i?null:C.isArray(i)?C.map(i,function(e){return{name:t.name,value:e.replace(yt,"\r\n")}}):{name:t.name,value:i.replace(yt,"\r\n")}}).get()}}),C.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}};var Ct=0,kt={},Dt={0:200,1223:204},Tt=C.ajaxSettings.xhr();f.attachEvent&&f.attachEvent("onunload",function(){for(var e in kt)kt[e]()}),v.cors=!!Tt&&"withCredentials"in Tt,v.ajax=Tt=!!Tt,C.ajaxTransport(function(o){var a;if(v.cors||Tt&&!o.crossDomain)return{send:function(e,t){var i,n=o.xhr(),s=++Ct;if(n.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(i in o.xhrFields)n[i]=o.xhrFields[i];for(i in o.mimeType&&n.overrideMimeType&&n.overrideMimeType(o.mimeType),o.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)n.setRequestHeader(i,e[i]);a=function(e){return function(){a&&(delete kt[s],a=n.onload=n.onerror=null,"abort"===e?n.abort():"error"===e?t(n.status,n.statusText):t(Dt[n.status]||n.status,n.statusText,"string"==typeof n.responseText?{text:n.responseText}:void 0,n.getAllResponseHeaders()))}},n.onload=a(),n.onerror=a("error"),a=kt[s]=a("abort");try{n.send(o.hasContent&&o.data||null)}catch(e){if(a)throw e}},abort:function(){a&&a()}}}),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return C.globalEval(e),e}}}),C.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),C.ajaxTransport("script",function(i){var n,s;if(i.crossDomain)return{send:function(e,t){n=C("<script>").prop({async:!0,charset:i.scriptCharset,src:i.url}).on("load error",s=function(e){n.remove(),s=null,e&&t("error"===e.type?404:200,e.type)}),_.head.appendChild(n[0])},abort:function(){s&&s()}}});var Pt=[],At=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Pt.pop()||C.expando+"_"+tt++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",function(e,t,i){var n,s,o,a=!1!==e.jsonp&&(At.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&At.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return n=e.jsonpCallback=C.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(At,"$1"+n):!1!==e.jsonp&&(e.url+=(it.test(e.url)?"&":"?")+e.jsonp+"="+n),e.converters["script json"]=function(){return o||C.error(n+" was not called"),o[0]},e.dataTypes[0]="json",s=f[n],f[n]=function(){o=arguments},i.always(function(){f[n]=s,e[n]&&(e.jsonpCallback=t.jsonpCallback,Pt.push(n)),o&&C.isFunction(s)&&s(o[0]),o=s=void 0}),"script"}),C.parseHTML=function(e,t,i){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(i=t,t=!1),t=t||_;var n=b.exec(e),s=!i&&[];return n?[t.createElement(n[1])]:(n=C.buildFragment([e],t,s),s&&s.length&&C(s).remove(),C.merge([],n.childNodes))};var St=C.fn.load;C.fn.load=function(e,t,i){if("string"!=typeof e&&St)return St.apply(this,arguments);var n,s,o,a=this,r=e.indexOf(" ");return 0<=r&&(n=C.trim(e.slice(r)),e=e.slice(0,r)),C.isFunction(t)?(i=t,t=void 0):t&&"object"==typeof t&&(s="POST"),0<a.length&&C.ajax({url:e,type:s,dataType:"html",data:t}).done(function(e){o=arguments,a.html(n?C("<div>").append(C.parseHTML(e)).find(n):e)}).complete(i&&function(e,t){a.each(i,o||[e.responseText,t,e])}),this},C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){C.fn[t]=function(e){return this.on(t,e)}}),C.expr.filters.animated=function(t){return C.grep(C.timers,function(e){return t===e.elem}).length};var It=f.document.documentElement;function Mt(e){return C.isWindow(e)?e:9===e.nodeType&&e.defaultView}C.offset={setOffset:function(e,t,i){var n,s,o,a,r,l,h=C.css(e,"position"),c=C(e),u={};"static"===h&&(e.style.position="relative"),r=c.offset(),o=C.css(e,"top"),l=C.css(e,"left"),s=("absolute"===h||"fixed"===h)&&-1<(o+l).indexOf("auto")?(a=(n=c.position()).top,n.left):(a=parseFloat(o)||0,parseFloat(l)||0),C.isFunction(t)&&(t=t.call(e,i,r)),null!=t.top&&(u.top=t.top-r.top+a),null!=t.left&&(u.left=t.left-r.left+s),"using"in t?t.using.call(e,u):c.css(u)}},C.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){C.offset.setOffset(this,t,e)});var e,i,n=this[0],s={top:0,left:0},o=n&&n.ownerDocument;return o?(e=o.documentElement,C.contains(e,n)?(typeof n.getBoundingClientRect!==V&&(s=n.getBoundingClientRect()),i=Mt(o),{top:s.top+i.pageYOffset-e.clientTop,left:s.left+i.pageXOffset-e.clientLeft}):s):void 0},position:function(){if(this[0]){var e,t,i=this[0],n={top:0,left:0};return"fixed"===C.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),C.nodeName(e[0],"html")||(n=e.offset()),n.top+=C.css(e[0],"borderTopWidth",!0),n.left+=C.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-C.css(i,"marginTop",!0),left:t.left-n.left-C.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||It;e&&!C.nodeName(e,"html")&&"static"===C.css(e,"position");)e=e.offsetParent;return e||It})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,s){var o="pageYOffset"===s;C.fn[t]=function(e){return E(this,function(e,t,i){var n=Mt(e);if(void 0===i)return n?n[s]:e[t];n?n.scrollTo(o?f.pageXOffset:i,o?i:f.pageYOffset):e[t]=i},t,e,arguments.length,null)}}),C.each(["top","left"],function(e,i){C.cssHooks[i]=Ce(v.pixelPosition,function(e,t){if(t)return t=xe(e,i),be.test(t)?C(e).position()[i]+"px":t})}),C.each({Height:"height",Width:"width"},function(o,a){C.each({padding:"inner"+o,content:a,"":"outer"+o},function(n,e){C.fn[e]=function(e,t){var i=arguments.length&&(n||"boolean"!=typeof e),s=n||(!0===e||!0===t?"margin":"border");return E(this,function(e,t,i){var n;return C.isWindow(e)?e.document.documentElement["client"+o]:9===e.nodeType?(n=e.documentElement,Math.max(e.body["scroll"+o],n["scroll"+o],e.body["offset"+o],n["offset"+o],n["client"+o])):void 0===i?C.css(e,t,s):C.style(e,t,i,s)},a,i?e:void 0,i,null)}})}),C.fn.size=function(){return this.length},C.fn.andSelf=C.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return C});var Nt=f.jQuery,Et=f.$;return C.noConflict=function(e){return f.$===C&&(f.$=Et),e&&f.jQuery===C&&(f.jQuery=Nt),C},typeof e===V&&(f.jQuery=f.$=C),C}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(T){T.ui=T.ui||{};T.ui.version="1.12.1";var s,i=0,r=Array.prototype.slice;T.cleanData=(s=T.cleanData,function(e){var t,i,n;for(n=0;null!=(i=e[n]);n++)try{(t=T._data(i,"events"))&&t.remove&&T(i).triggerHandler("remove")}catch(e){}s(e)}),T.widget=function(e,i,t){var n,s,o,a={},r=e.split(".")[0],l=r+"-"+(e=e.split(".")[1]);return t||(t=i,i=T.Widget),T.isArray(t)&&(t=T.extend.apply(null,[{}].concat(t))),T.expr[":"][l.toLowerCase()]=function(e){return!!T.data(e,l)},T[r]=T[r]||{},n=T[r][e],s=T[r][e]=function(e,t){if(!this._createWidget)return new s(e,t);arguments.length&&this._createWidget(e,t)},T.extend(s,n,{version:t.version,_proto:T.extend({},t),_childConstructors:[]}),(o=new i).options=T.widget.extend({},o.options),T.each(t,function(t,o){T.isFunction(o)?a[t]=function(){function n(){return i.prototype[t].apply(this,arguments)}function s(e){return i.prototype[t].apply(this,e)}return function(){var e,t=this._super,i=this._superApply;return this._super=n,this._superApply=s,e=o.apply(this,arguments),this._super=t,this._superApply=i,e}}():a[t]=o}),s.prototype=T.widget.extend(o,{widgetEventPrefix:n&&o.widgetEventPrefix||e},a,{constructor:s,namespace:r,widgetName:e,widgetFullName:l}),n?(T.each(n._childConstructors,function(e,t){var i=t.prototype;T.widget(i.namespace+"."+i.widgetName,s,t._proto)}),delete n._childConstructors):i._childConstructors.push(s),T.widget.bridge(e,s),s},T.widget.extend=function(e){for(var t,i,n=r.call(arguments,1),s=0,o=n.length;s<o;s++)for(t in n[s])i=n[s][t],n[s].hasOwnProperty(t)&&void 0!==i&&(T.isPlainObject(i)?e[t]=T.isPlainObject(e[t])?T.widget.extend({},e[t],i):T.widget.extend({},i):e[t]=i);return e},T.widget.bridge=function(o,t){var a=t.prototype.widgetFullName||o;T.fn[o]=function(i){var e="string"==typeof i,n=r.call(arguments,1),s=this;return e?this.length||"instance"!==i?this.each(function(){var e,t=T.data(this,a);return"instance"===i?(s=t,!1):t?T.isFunction(t[i])&&"_"!==i.charAt(0)?(e=t[i].apply(t,n))!==t&&void 0!==e?(s=e&&e.jquery?s.pushStack(e.get()):e,!1):void 0:T.error("no such method '"+i+"' for "+o+" widget instance"):T.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+i+"'")}):s=void 0:(n.length&&(i=T.widget.extend.apply(null,[i].concat(n))),this.each(function(){var e=T.data(this,a);e?(e.option(i||{}),e._init&&e._init()):T.data(this,a,new t(i,this))})),s}},T.Widget=function(){},T.Widget._childConstructors=[],T.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,t){t=T(t||this.defaultElement||this)[0],this.element=T(t),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=T(),this.hoverable=T(),this.focusable=T(),this.classesElementLookup={},t!==this&&(T.data(t,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===t&&this.destroy()}}),this.document=T(t.style?t.ownerDocument:t.document||t),this.window=T(this.document[0].defaultView||this.document[0].parentWindow)),this.options=T.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:T.noop,_create:T.noop,_init:T.noop,destroy:function(){var i=this;this._destroy(),T.each(this.classesElementLookup,function(e,t){i._removeClass(t,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:T.noop,widget:function(){return this.element},option:function(e,t){var i,n,s,o=e;if(0===arguments.length)return T.widget.extend({},this.options);if("string"==typeof e)if(o={},e=(i=e.split(".")).shift(),i.length){for(n=o[e]=T.widget.extend({},this.options[e]),s=0;s<i.length-1;s++)n[i[s]]=n[i[s]]||{},n=n[i[s]];if(e=i.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=t}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];o[e]=t}return this._setOptions(o),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(e){var t,i,n;for(t in e)n=this.classesElementLookup[t],e[t]!==this.options.classes[t]&&n&&n.length&&(i=T(n.get()),this._removeClass(n,t),i.addClass(this._classes({element:i,keys:t,classes:e,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(s){var o=[],a=this;function e(e,t){var i,n;for(n=0;n<e.length;n++)i=a.classesElementLookup[e[n]]||T(),i=s.add?T(T.unique(i.get().concat(s.element.get()))):T(i.not(s.element).get()),a.classesElementLookup[e[n]]=i,o.push(e[n]),t&&s.classes[e[n]]&&o.push(s.classes[e[n]])}return s=T.extend({element:this.element,classes:this.options.classes||{}},s),this._on(s.element,{remove:"_untrackClassesElement"}),s.keys&&e(s.keys.match(/\S+/g)||[],!0),s.extra&&e(s.extra.match(/\S+/g)||[]),o.join(" ")},_untrackClassesElement:function(i){var n=this;T.each(n.classesElementLookup,function(e,t){-1!==T.inArray(i.target,t)&&(n.classesElementLookup[e]=T(t.not(i.target).get()))})},_removeClass:function(e,t,i){return this._toggleClass(e,t,i,!1)},_addClass:function(e,t,i){return this._toggleClass(e,t,i,!0)},_toggleClass:function(e,t,i,n){n="boolean"==typeof n?n:i;var s="string"==typeof e||null===e,o={extra:s?t:i,keys:s?e:t,element:s?this.element:e,add:n};return o.element.toggleClass(this._classes(o),n),this},_on:function(a,r,e){var l,h=this;"boolean"!=typeof a&&(e=r,r=a,a=!1),e?(r=l=T(r),this.bindings=this.bindings.add(r)):(e=r,r=this.element,l=this.widget()),T.each(e,function(e,t){function i(){if(a||!0!==h.options.disabled&&!T(this).hasClass("ui-state-disabled"))return("string"==typeof t?h[t]:t).apply(h,arguments)}"string"!=typeof t&&(i.guid=t.guid=t.guid||i.guid||T.guid++);var n=e.match(/^([\w:-]*)\s*(.*)$/),s=n[1]+h.eventNamespace,o=n[2];o?l.on(s,o,i):r.on(s,i)})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(t).off(t),this.bindings=T(this.bindings.not(e).get()),this.focusable=T(this.focusable.not(e).get()),this.hoverable=T(this.hoverable.not(e).get())},_delay:function(e,t){var i=this;return setTimeout(function(){return("string"==typeof e?i[e]:e).apply(i,arguments)},t||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(T(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(T(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(T(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(T(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,t,i){var n,s,o=this.options[e];if(i=i||{},(t=T.Event(t)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),t.target=this.element[0],s=t.originalEvent)for(n in s)n in t||(t[n]=s[n]);return this.element.trigger(t,i),!(T.isFunction(o)&&!1===o.apply(this.element[0],[t].concat(i))||t.isDefaultPrevented())}},T.each({show:"fadeIn",hide:"fadeOut"},function(o,a){T.Widget.prototype["_"+o]=function(t,e,i){var n;"string"==typeof e&&(e={effect:e});var s=e?!0===e||"number"==typeof e?a:e.effect||a:o;"number"==typeof(e=e||{})&&(e={duration:e}),n=!T.isEmptyObject(e),e.complete=i,e.delay&&t.delay(e.delay),n&&T.effects&&T.effects.effect[s]?t[o](e):s!==o&&t[s]?t[s](e.duration,e.easing,i):t.queue(function(e){T(this)[o](),i&&i.call(t[0]),e()})}});T.widget;!function(){var s,x=Math.max,C=Math.abs,n=/left|center|right/,o=/top|center|bottom/,a=/[\+\-]\d+(\.[\d]+)?%?/,r=/^\w+/,l=/%$/,h=T.fn.position;function k(e,t,i){return[parseFloat(e[0])*(l.test(e[0])?t/100:1),parseFloat(e[1])*(l.test(e[1])?i/100:1)]}function D(e,t){return parseInt(T.css(e,t),10)||0}T.position={scrollbarWidth:function(){if(void 0!==s)return s;var e,t,i=T("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),n=i.children()[0];return T("body").append(i),e=n.offsetWidth,i.css("overflow","scroll"),e===(t=n.offsetWidth)&&(t=i[0].clientWidth),i.remove(),s=e-t},getScrollInfo:function(e){var t=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),i=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),n="scroll"===t||"auto"===t&&e.width<e.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&e.height<e.element[0].scrollHeight?T.position.scrollbarWidth():0,height:n?T.position.scrollbarWidth():0}},getWithinInfo:function(e){var t=T(e||window),i=T.isWindow(t[0]),n=!!t[0]&&9===t[0].nodeType;return{element:t,isWindow:i,isDocument:n,offset:!i&&!n?T(e).offset():{left:0,top:0},scrollLeft:t.scrollLeft(),scrollTop:t.scrollTop(),width:t.outerWidth(),height:t.outerHeight()}}},T.fn.position=function(u){if(!u||!u.of)return h.apply(this,arguments);u=T.extend({},u);var d,p,f,m,g,e,t,i,v=T(u.of),_=T.position.getWithinInfo(u.within),y=T.position.getScrollInfo(_),b=(u.collision||"flip").split(" "),w={};return e=9===(i=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:T.isWindow(i)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()},v[0].preventDefault&&(u.at="left top"),p=e.width,f=e.height,m=e.offset,g=T.extend({},m),T.each(["my","at"],function(){var e,t,i=(u[this]||"").split(" ");1===i.length&&(i=n.test(i[0])?i.concat(["center"]):o.test(i[0])?["center"].concat(i):["center","center"]),i[0]=n.test(i[0])?i[0]:"center",i[1]=o.test(i[1])?i[1]:"center",e=a.exec(i[0]),t=a.exec(i[1]),w[this]=[e?e[0]:0,t?t[0]:0],u[this]=[r.exec(i[0])[0],r.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===u.at[0]?g.left+=p:"center"===u.at[0]&&(g.left+=p/2),"bottom"===u.at[1]?g.top+=f:"center"===u.at[1]&&(g.top+=f/2),d=k(w.at,p,f),g.left+=d[0],g.top+=d[1],this.each(function(){var i,e,a=T(this),r=a.outerWidth(),l=a.outerHeight(),t=D(this,"marginLeft"),n=D(this,"marginTop"),s=r+t+D(this,"marginRight")+y.width,o=l+n+D(this,"marginBottom")+y.height,h=T.extend({},g),c=k(w.my,a.outerWidth(),a.outerHeight());"right"===u.my[0]?h.left-=r:"center"===u.my[0]&&(h.left-=r/2),"bottom"===u.my[1]?h.top-=l:"center"===u.my[1]&&(h.top-=l/2),h.left+=c[0],h.top+=c[1],i={marginLeft:t,marginTop:n},T.each(["left","top"],function(e,t){T.ui.position[b[e]]&&T.ui.position[b[e]][t](h,{targetWidth:p,targetHeight:f,elemWidth:r,elemHeight:l,collisionPosition:i,collisionWidth:s,collisionHeight:o,offset:[d[0]+c[0],d[1]+c[1]],my:u.my,at:u.at,within:_,elem:a})}),u.using&&(e=function(e){var t=m.left-h.left,i=t+p-r,n=m.top-h.top,s=n+f-l,o={target:{element:v,left:m.left,top:m.top,width:p,height:f},element:{element:a,left:h.left,top:h.top,width:r,height:l},horizontal:i<0?"left":0<t?"right":"center",vertical:s<0?"top":0<n?"bottom":"middle"};p<r&&C(t+i)<p&&(o.horizontal="center"),f<l&&C(n+s)<f&&(o.vertical="middle"),x(C(t),C(i))>x(C(n),C(s))?o.important="horizontal":o.important="vertical",u.using.call(this,e,o)}),a.offset(T.extend(h,{using:e}))})},T.ui.position={fit:{left:function(e,t){var i,n=t.within,s=n.isWindow?n.scrollLeft:n.offset.left,o=n.width,a=e.left-t.collisionPosition.marginLeft,r=s-a,l=a+t.collisionWidth-o-s;t.collisionWidth>o?0<r&&l<=0?(i=e.left+r+t.collisionWidth-o-s,e.left+=r-i):e.left=0<l&&r<=0?s:l<r?s+o-t.collisionWidth:s:0<r?e.left+=r:0<l?e.left-=l:e.left=x(e.left-a,e.left)},top:function(e,t){var i,n=t.within,s=n.isWindow?n.scrollTop:n.offset.top,o=t.within.height,a=e.top-t.collisionPosition.marginTop,r=s-a,l=a+t.collisionHeight-o-s;t.collisionHeight>o?0<r&&l<=0?(i=e.top+r+t.collisionHeight-o-s,e.top+=r-i):e.top=0<l&&r<=0?s:l<r?s+o-t.collisionHeight:s:0<r?e.top+=r:0<l?e.top-=l:e.top=x(e.top-a,e.top)}},flip:{left:function(e,t){var i,n,s=t.within,o=s.offset.left+s.scrollLeft,a=s.width,r=s.isWindow?s.scrollLeft:s.offset.left,l=e.left-t.collisionPosition.marginLeft,h=l-r,c=l+t.collisionWidth-a-r,u="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,d="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,p=-2*t.offset[0];h<0?((i=e.left+u+d+p+t.collisionWidth-a-o)<0||i<C(h))&&(e.left+=u+d+p):0<c&&(0<(n=e.left-t.collisionPosition.marginLeft+u+d+p-r)||C(n)<c)&&(e.left+=u+d+p)},top:function(e,t){var i,n,s=t.within,o=s.offset.top+s.scrollTop,a=s.height,r=s.isWindow?s.scrollTop:s.offset.top,l=e.top-t.collisionPosition.marginTop,h=l-r,c=l+t.collisionHeight-a-r,u="top"===t.my[1]?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,d="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,p=-2*t.offset[1];h<0?((n=e.top+u+d+p+t.collisionHeight-a-o)<0||n<C(h))&&(e.top+=u+d+p):0<c&&(0<(i=e.top-t.collisionPosition.marginTop+u+d+p-r)||C(i)<c)&&(e.top+=u+d+p)}},flipfit:{left:function(){T.ui.position.flip.left.apply(this,arguments),T.ui.position.fit.left.apply(this,arguments)},top:function(){T.ui.position.flip.top.apply(this,arguments),T.ui.position.fit.top.apply(this,arguments)}}}}();T.ui.position,T.extend(T.expr[":"],{data:T.expr.createPseudo?T.expr.createPseudo(function(t){return function(e){return!!T.data(e,t)}}):function(e,t,i){return!!T.data(e,i[3])}}),T.fn.extend({disableSelection:(e="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(e+".ui-disableSelection",function(e){e.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});var e,n,l="ui-effects-",h="ui-effects-style",u="ui-effects-animated",c=T;T.effects={effect:{}},function(c,u){var h,d=/^([\-+])=\s*(\d+\.?\d*)/,e=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],p=c.Color=function(e,t,i,n){return new c.Color.fn.parse(e,t,i,n)},f={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},m={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},a=p.support={},t=c("<p>")[0],g=c.each;function v(e,t,i){var n=m[t.type]||{};return null==e?i||!t.def?null:t.def:(e=n.floor?~~e:parseFloat(e),isNaN(e)?t.def:n.mod?(e+n.mod)%n.mod:e<0?0:n.max<e?n.max:e)}function r(a){var r=p(),l=r._rgba=[];return a=a.toLowerCase(),g(e,function(e,t){var i,n=t.re.exec(a),s=n&&t.parse(n),o=t.space||"rgba";if(s)return i=r[o](s),r[f[o].cache]=i[f[o].cache],l=r._rgba=i._rgba,!1}),l.length?("0,0,0,0"===l.join()&&c.extend(l,h.transparent),r):h[a]}function l(e,t,i){return 6*(i=(i+1)%1)<1?e+(t-e)*i*6:2*i<1?t:3*i<2?e+(t-e)*(2/3-i)*6:e}t.style.cssText="background-color:rgba(1,1,1,.5)",a.rgba=-1<t.style.backgroundColor.indexOf("rgba"),g(f,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),p.fn=c.extend(p.prototype,{parse:function(s,e,t,i){if(s===u)return this._rgba=[null,null,null,null],this;(s.jquery||s.nodeType)&&(s=c(s).css(e),e=u);var o=this,n=c.type(s),a=this._rgba=[];return e!==u&&(s=[s,e,t,i],n="array"),"string"===n?this.parse(r(s)||h._default):"array"===n?(g(f.rgba.props,function(e,t){a[t.idx]=v(s[t.idx],t)}),this):"object"===n?(g(f,s instanceof p?function(e,t){s[t.cache]&&(o[t.cache]=s[t.cache].slice())}:function(e,i){var n=i.cache;g(i.props,function(e,t){if(!o[n]&&i.to){if("alpha"===e||null==s[e])return;o[n]=i.to(o._rgba)}o[n][t.idx]=v(s[e],t,!0)}),o[n]&&c.inArray(null,o[n].slice(0,3))<0&&(o[n][3]=1,i.from&&(o._rgba=i.from(o[n])))}),this):void 0},is:function(e){var s=p(e),o=!0,a=this;return g(f,function(e,t){var i,n=s[t.cache];return n&&(i=a[t.cache]||t.to&&t.to(a._rgba)||[],g(t.props,function(e,t){if(null!=n[t.idx])return o=n[t.idx]===i[t.idx]})),o}),o},_space:function(){var i=[],n=this;return g(f,function(e,t){n[t.cache]&&i.push(e)}),i.pop()},transition:function(e,a){var r=p(e),t=r._space(),i=f[t],n=0===this.alpha()?p("transparent"):this,l=n[i.cache]||i.to(n._rgba),h=l.slice();return r=r[i.cache],g(i.props,function(e,t){var i=t.idx,n=l[i],s=r[i],o=m[t.type]||{};null!==s&&(null===n?h[i]=s:(o.mod&&(s-n>o.mod/2?n+=o.mod:n-s>o.mod/2&&(n-=o.mod)),h[i]=v((s-n)*a+n,t)))}),this[t](h)},blend:function(e){if(1===this._rgba[3])return this;var t=this._rgba.slice(),i=t.pop(),n=p(e)._rgba;return p(c.map(t,function(e,t){return(1-i)*n[t]+i*e}))},toRgbaString:function(){var e="rgba(",t=c.map(this._rgba,function(e,t){return null==e?2<t?1:0:e});return 1===t[3]&&(t.pop(),e="rgb("),e+t.join()+")"},toHslaString:function(){var e="hsla(",t=c.map(this.hsla(),function(e,t){return null==e&&(e=2<t?1:0),t&&t<3&&(e=Math.round(100*e)+"%"),e});return 1===t[3]&&(t.pop(),e="hsl("),e+t.join()+")"},toHexString:function(e){var t=this._rgba.slice(),i=t.pop();return e&&t.push(~~(255*i)),"#"+c.map(t,function(e){return 1===(e=(e||0).toString(16)).length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),p.fn.parse.prototype=p.fn,f.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,i,n=e[0]/255,s=e[1]/255,o=e[2]/255,a=e[3],r=Math.max(n,s,o),l=Math.min(n,s,o),h=r-l,c=r+l,u=.5*c;return t=l===r?0:n===r?60*(s-o)/h+360:s===r?60*(o-n)/h+120:60*(n-s)/h+240,i=0===h?0:u<=.5?h/c:h/(2-c),[Math.round(t)%360,i,u,null==a?1:a]},f.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,i=e[1],n=e[2],s=e[3],o=n<=.5?n*(1+i):n+i-n*i,a=2*n-o;return[Math.round(255*l(a,o,t+1/3)),Math.round(255*l(a,o,t)),Math.round(255*l(a,o,t-1/3)),s]},g(f,function(l,e){var i=e.props,a=e.cache,r=e.to,h=e.from;p.fn[l]=function(e){if(r&&!this[a]&&(this[a]=r(this._rgba)),e===u)return this[a].slice();var t,n=c.type(e),s="array"===n||"object"===n?e:arguments,o=this[a].slice();return g(i,function(e,t){var i=s["object"===n?e:t.idx];null==i&&(i=o[t.idx]),o[t.idx]=v(i,t)}),h?((t=p(h(o)))[a]=o,t):p(o)},g(i,function(a,r){p.fn[a]||(p.fn[a]=function(e){var t,i=c.type(e),n="alpha"===a?this._hsla?"hsla":"rgba":l,s=this[n](),o=s[r.idx];return"undefined"===i?o:("function"===i&&(e=e.call(this,o),i=c.type(e)),null==e&&r.empty?this:("string"===i&&(t=d.exec(e))&&(e=o+parseFloat(t[2])*("+"===t[1]?1:-1)),s[r.idx]=e,this[n](s)))})})}),p.hook=function(e){var t=e.split(" ");g(t,function(e,o){c.cssHooks[o]={set:function(e,t){var i,n,s="";if("transparent"!==t&&("string"!==c.type(t)||(i=r(t)))){if(t=p(i||t),!a.rgba&&1!==t._rgba[3]){for(n="backgroundColor"===o?e.parentNode:e;(""===s||"transparent"===s)&&n&&n.style;)try{s=c.css(n,"backgroundColor"),n=n.parentNode}catch(e){}t=t.blend(s&&"transparent"!==s?s:"_default")}t=t.toRgbaString()}try{e.style[o]=t}catch(e){}}},c.fx.step[o]=function(e){e.colorInit||(e.start=p(e.elem,o),e.end=p(e.end),e.colorInit=!0),c.cssHooks[o].set(e.elem,e.start.transition(e.end,e.pos))}})},p.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),c.cssHooks.borderColor={expand:function(i){var n={};return g(["Top","Right","Bottom","Left"],function(e,t){n["border"+t+"Color"]=i}),n}},h=c.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(c),function(){var o,s,a,r=["add","remove","toggle"],l={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function h(e){var t,i,n=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,s={};if(n&&n.length&&n[0]&&n[n[0]])for(i=n.length;i--;)"string"==typeof n[t=n[i]]&&(s[T.camelCase(t)]=n[t]);else for(t in n)"string"==typeof n[t]&&(s[t]=n[t]);return s}T.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,t){T.fx.step[t]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(c.style(e.elem,t,e.end),e.setAttr=!0)}}),T.fn.addBack||(T.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),T.effects.animateClass=function(s,e,t,i){var o=T.speed(e,t,i);return this.queue(function(){var e,i=T(this),t=i.attr("class")||"",n=o.children?i.find("*").addBack():i;n=n.map(function(){return{el:T(this),start:h(this)}}),(e=function(){T.each(r,function(e,t){s[t]&&i[t+"Class"](s[t])})})(),n=n.map(function(){return this.end=h(this.el[0]),this.diff=function(e,t){var i,n,s={};for(i in t)n=t[i],e[i]!==n&&(l[i]||!T.fx.step[i]&&isNaN(parseFloat(n))||(s[i]=n));return s}(this.start,this.end),this}),i.attr("class",t),n=n.map(function(){var e=this,t=T.Deferred(),i=T.extend({},o,{queue:!1,complete:function(){t.resolve(e)}});return this.el.animate(this.diff,i),t.promise()}),T.when.apply(T,n.get()).done(function(){e(),T.each(arguments,function(){var t=this.el;T.each(this.diff,function(e){t.css(e,"")})}),o.complete.call(i[0])})})},T.fn.extend({addClass:(a=T.fn.addClass,function(e,t,i,n){return t?T.effects.animateClass.call(this,{add:e},t,i,n):a.apply(this,arguments)}),removeClass:(s=T.fn.removeClass,function(e,t,i,n){return 1<arguments.length?T.effects.animateClass.call(this,{remove:e},t,i,n):s.apply(this,arguments)}),toggleClass:(o=T.fn.toggleClass,function(e,t,i,n,s){return"boolean"==typeof t||void 0===t?i?T.effects.animateClass.call(this,t?{add:e}:{remove:e},i,n,s):o.apply(this,arguments):T.effects.animateClass.call(this,{toggle:e},t,i,n)}),switchClass:function(e,t,i,n,s){return T.effects.animateClass.call(this,{add:t,remove:e},i,n,s)}})}(),function(){var t,i,n,s;function c(e,t,i,n){return T.isPlainObject(e)&&(e=(t=e).effect),e={effect:e},null==t&&(t={}),T.isFunction(t)&&(n=t,i=null,t={}),("number"==typeof t||T.fx.speeds[t])&&(n=i,i=t,t={}),T.isFunction(i)&&(n=i,i=null),t&&T.extend(e,t),i=i||t.duration,e.duration=T.fx.off?0:"number"==typeof i?i:i in T.fx.speeds?T.fx.speeds[i]:T.fx.speeds._default,e.complete=n||t.complete,e}function o(e){return!(e&&"number"!=typeof e&&!T.fx.speeds[e])||("string"==typeof e&&!T.effects.effect[e]||(!!T.isFunction(e)||"object"==typeof e&&!e.effect))}function a(e,t){var i=t.outerWidth(),n=t.outerHeight(),s=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(e)||["",0,i,n,0];return{top:parseFloat(s[1])||0,right:"auto"===s[2]?i:parseFloat(s[2]),bottom:"auto"===s[3]?n:parseFloat(s[3]),left:parseFloat(s[4])||0}}T.expr&&T.expr.filters&&T.expr.filters.animated&&(T.expr.filters.animated=(t=T.expr.filters.animated,function(e){return!!T(e).data(u)||t(e)})),!1!==T.uiBackCompat&&T.extend(T.effects,{save:function(e,t){for(var i=0,n=t.length;i<n;i++)null!==t[i]&&e.data(l+t[i],e[0].style[t[i]])},restore:function(e,t){for(var i,n=0,s=t.length;n<s;n++)null!==t[n]&&(i=e.data(l+t[n]),e.css(t[n],i))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},createWrapper:function(i){if(i.parent().is(".ui-effects-wrapper"))return i.parent();var n={width:i.outerWidth(!0),height:i.outerHeight(!0),float:i.css("float")},e=T("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),t={width:i.width(),height:i.height()},s=document.activeElement;try{s.id}catch(e){s=document.body}return i.wrap(e),(i[0]===s||T.contains(i[0],s))&&T(s).trigger("focus"),e=i.parent(),"static"===i.css("position")?(e.css({position:"relative"}),i.css({position:"relative"})):(T.extend(n,{position:i.css("position"),zIndex:i.css("z-index")}),T.each(["top","left","bottom","right"],function(e,t){n[t]=i.css(t),isNaN(parseInt(n[t],10))&&(n[t]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(t),e.css(n).show()},removeWrapper:function(e){var t=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===t||T.contains(e[0],t))&&T(t).trigger("focus")),e}}),T.extend(T.effects,{version:"1.12.1",define:function(e,t,i){return i||(i=t,t="effect"),T.effects.effect[e]=i,T.effects.effect[e].mode=t,i},scaledDimensions:function(e,t,i){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var n="horizontal"!==i?(t||100)/100:1,s="vertical"!==i?(t||100)/100:1;return{height:e.height()*s,width:e.width()*n,outerHeight:e.outerHeight()*s,outerWidth:e.outerWidth()*n}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(e,t,i){var n=e.queue();1<t&&n.splice.apply(n,[1,0].concat(n.splice(t,i))),e.dequeue()},saveStyle:function(e){e.data(h,e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data(h)||"",e.removeData(h)},mode:function(e,t){var i=e.is(":hidden");return"toggle"===t&&(t=i?"show":"hide"),(i?"hide"===t:"show"===t)&&(t="none"),t},getBaseline:function(e,t){var i,n;switch(e[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=e[0]/t.height}switch(e[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=e[1]/t.width}return{x:n,y:i}},createPlaceholder:function(e){var t,i=e.css("position"),n=e.position();return e.css({marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()),/^(static|relative)/.test(i)&&(i="absolute",t=T("<"+e[0].nodeName+">").insertAfter(e).css({display:/^(inline|ruby)/.test(e.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight"),float:e.css("float")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).addClass("ui-effects-placeholder"),e.data(l+"placeholder",t)),e.css({position:i,left:n.left,top:n.top}),t},removePlaceholder:function(e){var t=l+"placeholder",i=e.data(t);i&&(i.remove(),e.removeData(t))},cleanUp:function(e){T.effects.restoreStyle(e),T.effects.removePlaceholder(e)},setTransition:function(n,e,s,o){return o=o||{},T.each(e,function(e,t){var i=n.cssUnit(t);0<i[0]&&(o[t]=i[0]*s+i[1])}),o}}),T.fn.extend({effect:function(){var n=c.apply(this,arguments),s=T.effects.effect[n.effect],o=s.mode,e=n.queue,t=e||"fx",a=n.complete,r=n.mode,l=[],i=function(e){var t=T(this),i=T.effects.mode(t,r)||o;t.data(u,!0),l.push(i),o&&("show"===i||i===o&&"hide"===i)&&t.show(),o&&"none"===i||T.effects.saveStyle(t),T.isFunction(e)&&e()};if(T.fx.off||!s)return r?this[r](n.duration,a):this.each(function(){a&&a.call(this)});function h(e){var t=T(this);function i(){T.isFunction(a)&&a.call(t[0]),T.isFunction(e)&&e()}n.mode=l.shift(),!1===T.uiBackCompat||o?"none"===n.mode?(t[r](),i()):s.call(t[0],n,function(){t.removeData(u),T.effects.cleanUp(t),"hide"===n.mode&&t.hide(),i()}):(t.is(":hidden")?"hide"===r:"show"===r)?(t[r](),i()):s.call(t[0],n,i)}return!1===e?this.each(i).each(h):this.queue(t,i).queue(t,h)},show:(s=T.fn.show,function(e){if(o(e))return s.apply(this,arguments);var t=c.apply(this,arguments);return t.mode="show",this.effect.call(this,t)}),hide:(n=T.fn.hide,function(e){if(o(e))return n.apply(this,arguments);var t=c.apply(this,arguments);return t.mode="hide",this.effect.call(this,t)}),toggle:(i=T.fn.toggle,function(e){if(o(e)||"boolean"==typeof e)return i.apply(this,arguments);var t=c.apply(this,arguments);return t.mode="toggle",this.effect.call(this,t)}),cssUnit:function(e){var i=this.css(e),n=[];return T.each(["em","px","%","pt"],function(e,t){0<i.indexOf(t)&&(n=[parseFloat(i),t])}),n},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):a(this.css("clip"),this)},transfer:function(e,t){var i=T(this),n=T(e.to),s="fixed"===n.css("position"),o=T("body"),a=s?o.scrollTop():0,r=s?o.scrollLeft():0,l=n.offset(),h={top:l.top-a,left:l.left-r,height:n.innerHeight(),width:n.innerWidth()},c=i.offset(),u=T("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(e.className).css({top:c.top-a,left:c.left-r,height:i.innerHeight(),width:i.innerWidth(),position:s?"fixed":"absolute"}).animate(h,e.duration,e.easing,function(){u.remove(),T.isFunction(t)&&t()})}}),T.fx.step.clip=function(e){e.clipInit||(e.start=T(e.elem).cssClip(),"string"==typeof e.end&&(e.end=a(e.end,e.elem)),e.clipInit=!0),T(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})}}(),n={},T.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,e){n[e]=function(e){return Math.pow(e,t+2)}}),T.extend(n,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,i=4;e<((t=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}}),T.each(n,function(e,t){T.easing["easeIn"+e]=t,T.easing["easeOut"+e]=function(e){return 1-t(1-e)},T.easing["easeInOut"+e]=function(e){return e<.5?t(2*e)/2:1-t(-2*e+2)/2}});T.effects,T.effects.define("blind","hide",function(e,t){var i={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},n=T(this),s=e.direction||"up",o=n.cssClip(),a={clip:T.extend({},o)},r=T.effects.createPlaceholder(n);a.clip[i[s][0]]=a.clip[i[s][1]],"show"===e.mode&&(n.cssClip(a.clip),r&&r.css(T.effects.clipToBox(a)),a.clip=o),r&&r.animate(T.effects.clipToBox(a),e.duration,e.easing),n.animate(a,{queue:!1,duration:e.duration,easing:e.easing,complete:t})}),T.effects.define("bounce",function(e,t){var i,n,s,o=T(this),a=e.mode,r="hide"===a,l="show"===a,h=e.direction||"up",c=e.distance,u=e.times||5,d=2*u+(l||r?1:0),p=e.duration/d,f=e.easing,m="up"===h||"down"===h?"top":"left",g="up"===h||"left"===h,v=0,_=o.queue().length;for(T.effects.createPlaceholder(o),s=o.css(m),c||(c=o["top"===m?"outerHeight":"outerWidth"]()/3),l&&((n={opacity:1})[m]=s,o.css("opacity",0).css(m,g?2*-c:2*c).animate(n,p,f)),r&&(c/=Math.pow(2,u-1)),(n={})[m]=s;v<u;v++)(i={})[m]=(g?"-=":"+=")+c,o.animate(i,p,f).animate(n,p,f),c=r?2*c:c/2;r&&((i={opacity:0})[m]=(g?"-=":"+=")+c,o.animate(i,p,f)),o.queue(t),T.effects.unshift(o,_,d+1)}),T.effects.define("clip","hide",function(e,t){var i,n={},s=T(this),o=e.direction||"vertical",a="both"===o,r=a||"horizontal"===o,l=a||"vertical"===o;i=s.cssClip(),n.clip={top:l?(i.bottom-i.top)/2:i.top,right:r?(i.right-i.left)/2:i.right,bottom:l?(i.bottom-i.top)/2:i.bottom,left:r?(i.right-i.left)/2:i.left},T.effects.createPlaceholder(s),"show"===e.mode&&(s.cssClip(n.clip),n.clip=i),s.animate(n,{queue:!1,duration:e.duration,easing:e.easing,complete:t})}),T.effects.define("drop","hide",function(e,t){var i,n=T(this),s="show"===e.mode,o=e.direction||"left",a="up"===o||"down"===o?"top":"left",r="up"===o||"left"===o?"-=":"+=",l="+="===r?"-=":"+=",h={opacity:0};T.effects.createPlaceholder(n),i=e.distance||n["top"===a?"outerHeight":"outerWidth"](!0)/2,h[a]=r+i,s&&(n.css(h),h[a]=l+i,h.opacity=1),n.animate(h,{queue:!1,duration:e.duration,easing:e.easing,complete:t})}),T.effects.define("explode","hide",function(e,t){var i,n,s,o,a,r,l=e.pieces?Math.round(Math.sqrt(e.pieces)):3,h=l,c=T(this),u="show"===e.mode,d=c.show().css("visibility","hidden").offset(),p=Math.ceil(c.outerWidth()/h),f=Math.ceil(c.outerHeight()/l),m=[];function g(){m.push(this),m.length===l*h&&(c.css({visibility:"visible"}),T(m).remove(),t())}for(i=0;i<l;i++)for(o=d.top+i*f,r=i-(l-1)/2,n=0;n<h;n++)s=d.left+n*p,a=n-(h-1)/2,c.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-n*p,top:-i*f}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:p,height:f,left:s+(u?a*p:0),top:o+(u?r*f:0),opacity:u?0:1}).animate({left:s+(u?0:a*p),top:o+(u?0:r*f),opacity:u?1:0},e.duration||500,e.easing,g)}),T.effects.define("fade","toggle",function(e,t){var i="show"===e.mode;T(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:t})}),T.effects.define("fold","hide",function(t,e){var i=T(this),n=t.mode,s="show"===n,o="hide"===n,a=t.size||15,r=/([0-9]+)%/.exec(a),l=!!t.horizFirst?["right","bottom"]:["bottom","right"],h=t.duration/2,c=T.effects.createPlaceholder(i),u=i.cssClip(),d={clip:T.extend({},u)},p={clip:T.extend({},u)},f=[u[l[0]],u[l[1]]],m=i.queue().length;r&&(a=parseInt(r[1],10)/100*f[o?0:1]),d.clip[l[0]]=a,p.clip[l[0]]=a,p.clip[l[1]]=0,s&&(i.cssClip(p.clip),c&&c.css(T.effects.clipToBox(p)),p.clip=u),i.queue(function(e){c&&c.animate(T.effects.clipToBox(d),h,t.easing).animate(T.effects.clipToBox(p),h,t.easing),e()}).animate(d,h,t.easing).animate(p,h,t.easing).queue(e),T.effects.unshift(i,m,4)}),T.effects.define("highlight","show",function(e,t){var i=T(this),n={backgroundColor:i.css("backgroundColor")};"hide"===e.mode&&(n.opacity=0),T.effects.saveStyle(i),i.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(n,{queue:!1,duration:e.duration,easing:e.easing,complete:t})}),T.effects.define("size",function(s,t){var e,o,i,n=T(this),a=["fontSize"],r=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],l=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],h=s.mode,c="effect"!==h,u=s.scale||"both",d=s.origin||["middle","center"],p=n.css("position"),f=n.position(),m=T.effects.scaledDimensions(n),g=s.from||m,v=s.to||T.effects.scaledDimensions(n,0);T.effects.createPlaceholder(n),"show"===h&&(i=g,g=v,v=i),o={from:{y:g.height/m.height,x:g.width/m.width},to:{y:v.height/m.height,x:v.width/m.width}},"box"!==u&&"both"!==u||(o.from.y!==o.to.y&&(g=T.effects.setTransition(n,r,o.from.y,g),v=T.effects.setTransition(n,r,o.to.y,v)),o.from.x!==o.to.x&&(g=T.effects.setTransition(n,l,o.from.x,g),v=T.effects.setTransition(n,l,o.to.x,v))),"content"!==u&&"both"!==u||o.from.y!==o.to.y&&(g=T.effects.setTransition(n,a,o.from.y,g),v=T.effects.setTransition(n,a,o.to.y,v)),d&&(e=T.effects.getBaseline(d,m),g.top=(m.outerHeight-g.outerHeight)*e.y+f.top,g.left=(m.outerWidth-g.outerWidth)*e.x+f.left,v.top=(m.outerHeight-v.outerHeight)*e.y+f.top,v.left=(m.outerWidth-v.outerWidth)*e.x+f.left),n.css(g),"content"!==u&&"both"!==u||(r=r.concat(["marginTop","marginBottom"]).concat(a),l=l.concat(["marginLeft","marginRight"]),n.find("*[width]").each(function(){var e=T(this),t=T.effects.scaledDimensions(e),i={height:t.height*o.from.y,width:t.width*o.from.x,outerHeight:t.outerHeight*o.from.y,outerWidth:t.outerWidth*o.from.x},n={height:t.height*o.to.y,width:t.width*o.to.x,outerHeight:t.height*o.to.y,outerWidth:t.width*o.to.x};o.from.y!==o.to.y&&(i=T.effects.setTransition(e,r,o.from.y,i),n=T.effects.setTransition(e,r,o.to.y,n)),o.from.x!==o.to.x&&(i=T.effects.setTransition(e,l,o.from.x,i),n=T.effects.setTransition(e,l,o.to.x,n)),c&&T.effects.saveStyle(e),e.css(i),e.animate(n,s.duration,s.easing,function(){c&&T.effects.restoreStyle(e)})})),n.animate(v,{queue:!1,duration:s.duration,easing:s.easing,complete:function(){var e=n.offset();0===v.opacity&&n.css("opacity",g.opacity),c||(n.css("position","static"===p?"relative":p).offset(e),T.effects.saveStyle(n)),t()}})}),T.effects.define("scale",function(e,t){var i=T(this),n=e.mode,s=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"effect"!==n?0:100),o=T.extend(!0,{from:T.effects.scaledDimensions(i),to:T.effects.scaledDimensions(i,s,e.direction||"both"),origin:e.origin||["middle","center"]},e);e.fade&&(o.from.opacity=1,o.to.opacity=0),T.effects.effect.size.call(this,o,t)}),T.effects.define("puff","hide",function(e,t){var i=T.extend(!0,{},e,{fade:!0,percent:parseInt(e.percent,10)||150});T.effects.effect.scale.call(this,i,t)}),T.effects.define("pulsate","show",function(e,t){var i=T(this),n=e.mode,s="show"===n,o=s||"hide"===n,a=2*(e.times||5)+(o?1:0),r=e.duration/a,l=0,h=1,c=i.queue().length;for(!s&&i.is(":visible")||(i.css("opacity",0).show(),l=1);h<a;h++)i.animate({opacity:l},r,e.easing),l=1-l;i.animate({opacity:l},r,e.easing),i.queue(t),T.effects.unshift(i,c,a+1)}),T.effects.define("shake",function(e,t){var i=1,n=T(this),s=e.direction||"left",o=e.distance||20,a=e.times||3,r=2*a+1,l=Math.round(e.duration/r),h="up"===s||"down"===s?"top":"left",c="up"===s||"left"===s,u={},d={},p={},f=n.queue().length;for(T.effects.createPlaceholder(n),u[h]=(c?"-=":"+=")+o,d[h]=(c?"+=":"-=")+2*o,p[h]=(c?"-=":"+=")+2*o,n.animate(u,l,e.easing);i<a;i++)n.animate(d,l,e.easing).animate(p,l,e.easing);n.animate(d,l,e.easing).animate(u,l/2,e.easing).queue(t),T.effects.unshift(n,f,r+1)}),T.effects.define("slide","show",function(e,t){var i,n,s=T(this),o={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},a=e.mode,r=e.direction||"left",l="up"===r||"down"===r?"top":"left",h="up"===r||"left"===r,c=e.distance||s["top"===l?"outerHeight":"outerWidth"](!0),u={};T.effects.createPlaceholder(s),i=s.cssClip(),n=s.position()[l],u[l]=(h?-1:1)*c+n,u.clip=s.cssClip(),u.clip[o[r][1]]=u.clip[o[r][0]],"show"===a&&(s.cssClip(u.clip),s.css(l,u[l]),u.clip=i,u[l]=n),s.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:t})});!1!==T.uiBackCompat&&T.effects.define("transfer",function(e,t){T(this).transfer(e,t)});T.ui.focusable=function(e,t){var i,n,s,o,a,r=e.nodeName.toLowerCase();return"area"===r?(n=(i=e.parentNode).name,!(!e.href||!n||"map"!==i.nodeName.toLowerCase())&&(0<(s=T("img[usemap='#"+n+"']")).length&&s.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(r)?(o=!e.disabled)&&(a=T(e).closest("fieldset")[0])&&(o=!a.disabled):o="a"===r&&e.href||t,o&&T(e).is(":visible")&&function(e){var t=e.css("visibility");for(;"inherit"===t;)e=e.parent(),t=e.css("visibility");return"hidden"!==t}(T(e)))},T.extend(T.expr[":"],{focusable:function(e){return T.ui.focusable(e,null!=T.attr(e,"tabindex"))}});T.ui.focusable,T.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):T(this[0].form)},T.ui.formResetMixin={_formResetHandler:function(){var t=T(this);setTimeout(function(){var e=t.data("ui-form-reset-instances");T.each(e,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var e=this.form.data("ui-form-reset-instances")||[];e.length||this.form.on("reset.ui-form-reset",this._formResetHandler),e.push(this),this.form.data("ui-form-reset-instances",e)}},_unbindFormResetHandler:function(){if(this.form.length){var e=this.form.data("ui-form-reset-instances");e.splice(T.inArray(this,e),1),e.length?this.form.data("ui-form-reset-instances",e):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}};"1.7"===T.fn.jquery.substring(0,3)&&(T.each(["Width","Height"],function(e,i){var s="Width"===i?["Left","Right"]:["Top","Bottom"],n=i.toLowerCase(),o={innerWidth:T.fn.innerWidth,innerHeight:T.fn.innerHeight,outerWidth:T.fn.outerWidth,outerHeight:T.fn.outerHeight};function a(e,t,i,n){return T.each(s,function(){t-=parseFloat(T.css(e,"padding"+this))||0,i&&(t-=parseFloat(T.css(e,"border"+this+"Width"))||0),n&&(t-=parseFloat(T.css(e,"margin"+this))||0)}),t}T.fn["inner"+i]=function(e){return void 0===e?o["inner"+i].call(this):this.each(function(){T(this).css(n,a(this,e)+"px")})},T.fn["outer"+i]=function(e,t){return"number"!=typeof e?o["outer"+i].call(this,e):this.each(function(){T(this).css(n,a(this,e,!0,t)+"px")})}}),T.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))});var t,o;T.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},T.ui.escapeSelector=(t=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g,function(e){return e.replace(t,"\\$1")}),T.fn.labels=function(){var e,t,i,n,s;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(n=this.eq(0).parents("label"),(i=this.attr("id"))&&(s=(e=this.eq(0).parents().last()).add(e.length?e.siblings():this.siblings()),t="label[for='"+T.ui.escapeSelector(i)+"']",n=n.add(s.find(t).addBack(t))),this.pushStack(n))},T.fn.scrollParent=function(e){var t=this.css("position"),i="absolute"===t,n=e?/(auto|scroll|hidden)/:/(auto|scroll)/,s=this.parents().filter(function(){var e=T(this);return(!i||"static"!==e.css("position"))&&n.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==t&&s.length?s:T(this[0].ownerDocument||document)},T.extend(T.expr[":"],{tabbable:function(e){var t=T.attr(e,"tabindex"),i=null!=t;return(!i||0<=t)&&T.ui.focusable(e,i)}}),T.fn.extend({uniqueId:(o=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++o)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&T(this).removeAttr("id")})}}),T.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=T(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),e.collapsible||!1!==e.active&&null!=e.active||(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():T()}},_createIcons:function(){var e,t,i=this.options.icons;i&&(e=T("<span>"),this._addClass(e,"ui-accordion-header-icon","ui-icon "+i.header),e.prependTo(this.headers),t=this.active.children(".ui-accordion-header-icon"),this._removeClass(t,i.header)._addClass(t,null,i.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),e=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&e.css("height","")},_setOption:function(e,t){"active"!==e?("event"===e&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(e,t),"collapsible"!==e||t||!1!==this.options.active||this._activate(0),"icons"===e&&(this._destroyIcons(),t&&this._createIcons())):this._activate(t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!e)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var t=T.ui.keyCode,i=this.headers.length,n=this.headers.index(e.target),s=!1;switch(e.keyCode){case t.RIGHT:case t.DOWN:s=this.headers[(n+1)%i];break;case t.LEFT:case t.UP:s=this.headers[(n-1+i)%i];break;case t.SPACE:case t.ENTER:this._eventHandler(e);break;case t.HOME:s=this.headers[0];break;case t.END:s=this.headers[i-1]}s&&(T(e.target).attr("tabIndex",-1),T(s).attr("tabIndex",0),T(s).trigger("focus"),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===T.ui.keyCode.UP&&e.ctrlKey&&T(e.currentTarget).prev().trigger("focus")},refresh:function(){var e=this.options;this._processPanels(),!1===e.active&&!0===e.collapsible||!this.headers.length?(e.active=!1,this.active=T()):!1===e.active?this._activate(0):this.active.length&&!T.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=T()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var e=this.headers,t=this.panels;this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),t&&(this._off(e.not(this.headers)),this._off(t.not(this.panels)))},_refresh:function(){var i,e=this.options,t=e.heightStyle,n=this.element.parent();this.active=this._findActive(e.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var e=T(this),t=e.uniqueId().attr("id"),i=e.next(),n=i.uniqueId().attr("id");e.attr("aria-controls",n),i.attr("aria-labelledby",t)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(e.event),"fill"===t?(i=n.height(),this.element.siblings(":visible").each(function(){var e=T(this),t=e.css("position");"absolute"!==t&&"fixed"!==t&&(i-=e.outerHeight(!0))}),this.headers.each(function(){i-=T(this).outerHeight(!0)}),this.headers.next().each(function(){T(this).height(Math.max(0,i-T(this).innerHeight()+T(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.headers.next().each(function(){var e=T(this).is(":visible");e||T(this).show(),i=Math.max(i,T(this).css("height","").height()),e||T(this).hide()}).height(i))},_activate:function(e){var t=this._findActive(e)[0];t!==this.active[0]&&(t=t||this.active[0],this._eventHandler({target:t,currentTarget:t,preventDefault:T.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):T()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&T.each(e.split(" "),function(e,t){i[t]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var t,i,n=this.options,s=this.active,o=T(e.currentTarget),a=o[0]===s[0],r=a&&n.collapsible,l=r?T():o.next(),h=s.next(),c={oldHeader:s,oldPanel:h,newHeader:r?T():o,newPanel:l};e.preventDefault(),a&&!n.collapsible||!1===this._trigger("beforeActivate",e,c)||(n.active=!r&&this.headers.index(o),this.active=a?T():o,this._toggle(c),this._removeClass(s,"ui-accordion-header-active","ui-state-active"),n.icons&&(t=s.children(".ui-accordion-header-icon"),this._removeClass(t,null,n.icons.activeHeader)._addClass(t,null,n.icons.header)),a||(this._removeClass(o,"ui-accordion-header-collapsed")._addClass(o,"ui-accordion-header-active","ui-state-active"),n.icons&&(i=o.children(".ui-accordion-header-icon"),this._removeClass(i,null,n.icons.header)._addClass(i,null,n.icons.activeHeader)),this._addClass(o.next(),"ui-accordion-content-active")))},_toggle:function(e){var t=e.newPanel,i=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=t,this.prevHide=i,this.options.animate?this._animate(t,i,e):(i.hide(),t.show(),this._toggleComplete(e)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),t.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):t.length&&this.headers.filter(function(){return 0===parseInt(T(this).attr("tabIndex"),10)}).attr("tabIndex",-1),t.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(e,i,t){var n,s,o,a=this,r=0,l=e.css("box-sizing"),h=e.length&&(!i.length||e.index()<i.index()),c=this.options.animate||{},u=h&&c.down||c,d=function(){a._toggleComplete(t)};return"number"==typeof u&&(o=u),"string"==typeof u&&(s=u),s=s||u.easing||c.easing,o=o||u.duration||c.duration,i.length?e.length?(n=e.show().outerHeight(),i.animate(this.hideProps,{duration:o,easing:s,step:function(e,t){t.now=Math.round(e)}}),void e.hide().animate(this.showProps,{duration:o,easing:s,complete:d,step:function(e,t){t.now=Math.round(e),"height"!==t.prop?"content-box"===l&&(r+=t.now):"content"!==a.options.heightStyle&&(t.now=Math.round(n-i.outerHeight()-r),r=0)}})):i.animate(this.hideProps,o,s,d):e.animate(this.showProps,o,s,d)},_toggleComplete:function(e){var t=e.oldPanel,i=t.prev();this._removeClass(t,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),t.length&&(t.parent()[0].className=t.parent()[0].className),this._trigger("activate",null,e)}}),T.ui.safeActiveElement=function(t){var i;try{i=t.activeElement}catch(e){i=t.body}return i||(i=t.body),i.nodeName||(i=t.body),i},T.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault()},"click .ui-menu-item":function(e){var t=T(e.target),i=T(T.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&t.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),t.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var t=T(e.target).closest(".ui-menu-item"),i=T(e.currentTarget);t[0]===i[0]&&(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,i))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this.element.find(this.options.items).eq(0);t||this.focus(e,i)},blur:function(e){this._delay(function(){!T.contains(this.element[0],T.ui.safeActiveElement(this.document[0]))&&this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),e.children().each(function(){var e=T(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var t,i,n,s,o=!0;switch(e.keyCode){case T.ui.keyCode.PAGE_UP:this.previousPage(e);break;case T.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case T.ui.keyCode.HOME:this._move("first","first",e);break;case T.ui.keyCode.END:this._move("last","last",e);break;case T.ui.keyCode.UP:this.previous(e);break;case T.ui.keyCode.DOWN:this.next(e);break;case T.ui.keyCode.LEFT:this.collapse(e);break;case T.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case T.ui.keyCode.ENTER:case T.ui.keyCode.SPACE:this._activate(e);break;case T.ui.keyCode.ESCAPE:this.collapse(e);break;default:o=!1,i=this.previousFilter||"",s=!1,n=96<=e.keyCode&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),n===i?s=!0:n=i+n,t=this._filterMenuItems(n),(t=s&&-1!==t.index(this.active.next())?this.active.nextAll(".ui-menu-item"):t).length||(n=String.fromCharCode(e.keyCode),t=this._filterMenuItems(n)),t.length?(this.focus(e,t),this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}o&&e.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var e,t,i,n,s=this,o=this.options.icons.submenu,a=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),t=a.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=T(this),t=e.prev(),i=T("<span>").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+o),t.attr("aria-haspopup","true").prepend(i),e.attr("aria-labelledby",t.attr("id"))}),this._addClass(t,"ui-menu","ui-widget ui-widget-content ui-front"),(e=a.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var e=T(this);s._isDivider(e)&&s._addClass(e,"ui-menu-divider","ui-widget-content")}),n=(i=e.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(n,"ui-menu-item-wrapper"),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!T.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){if("icons"===e){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,t.submenu)}this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var i,n,s;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),n=this.active.children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),s=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(e){var t,i,n,s,o,a;this._hasScroll()&&(t=parseFloat(T.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(T.css(this.activeMenu[0],"paddingTop"))||0,n=e.offset().top-this.activeMenu.offset().top-t-i,s=this.activeMenu.scrollTop(),o=this.activeMenu.height(),a=e.outerHeight(),n<0?this.activeMenu.scrollTop(s+n):o<n+a&&this.activeMenu.scrollTop(s+n-o+a))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(e){var t=T.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(t)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay(function(){var e=i?this.element:T(t&&t.target).closest(this.element.find(".ui-menu"));e.length||(e=this.element),this._close(e),this.blur(t),this._removeClass(e.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=e},this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!T(e.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(e,t,i){var n;this.active&&(n="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[e+"All"](".ui-menu-item").eq(0)),n&&n.length&&this.active||(n=this.activeMenu.find(this.options.items)[t]()),this.focus(i,n)},nextPage:function(e){var t,i,n;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return(t=T(this)).offset().top-i-n<0}),this.focus(e,t)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())):this.next(e)},previousPage:function(e){var t,i,n;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return 0<(t=T(this)).offset().top-i+n}),this.focus(e,t)):this.focus(e,this.activeMenu.find(this.options.items).first())):this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||T(e.target).closest(".ui-menu-item");var t={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,t)},_filterMenuItems:function(e){var t=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),i=new RegExp("^"+t,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return i.test(T.trim(T(this).children(".ui-menu-item-wrapper").text()))})}});T.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var i,n,s,e=this.element[0].nodeName.toLowerCase(),t="textarea"===e,o="input"===e;this.isMultiLine=t||!o&&this._isContentEditable(this.element),this.valueMethod=this.element[t||o?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))n=s=i=!0;else{n=s=i=!1;var t=T.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:i=!0,this._move("previousPage",e);break;case t.PAGE_DOWN:i=!0,this._move("nextPage",e);break;case t.UP:i=!0,this._keyEvent("previous",e);break;case t.DOWN:i=!0,this._keyEvent("next",e);break;case t.ENTER:this.menu.active&&(i=!0,e.preventDefault(),this.menu.select(e));break;case t.TAB:this.menu.active&&this.menu.select(e);break;case t.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(e),e.preventDefault());break;default:n=!0,this._searchTimeout(e)}}},keypress:function(e){if(i)return i=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||e.preventDefault());if(!n){var t=T.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e)}}},input:function(e){if(s)return s=!1,void e.preventDefault();this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(e),this._change(e))}}),this._initSource(),this.menu=T("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==T.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(e,t){var i,n;if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){T(e.target).trigger(e.originalEvent)});n=t.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:n})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(n.value),(i=t.item.attr("aria-label")||n.value)&&T.trim(i).length&&(this.liveRegion.children().hide(),T("<div>").text(i).appendTo(this.liveRegion))},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==T.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=T("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var t=this.menu.element[0];return e.target===this.element[0]||e.target===t||T.contains(t,e.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?T(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var i,n,s=this;T.isArray(this.options.source)?(i=this.options.source,this.source=function(e,t){t(T.ui.autocomplete.filter(i,e.term))}):"string"==typeof this.options.source?(n=this.options.source,this.source=function(e,t){s.xhr&&s.xhr.abort(),s.xhr=T.ajax({url:n,data:e,dataType:"json",success:function(e){t(e)},error:function(){t([])}})}):this.source=this.options.source},_searchTimeout:function(n){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),t=this.menu.element.is(":visible"),i=n.altKey||n.ctrlKey||n.metaKey||n.shiftKey;e&&(!e||t||i)||(this.selectedItem=null,this.search(null,n))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return T.proxy(function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:T.map(e,function(e){return"string"==typeof e?{label:e,value:e}:T.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e),this.isNewMenu=!0,this.menu.refresh(),t.show(),this._resizeMenu(),t.position(T.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,e){var n=this;T.each(e,function(e,t){n._renderItemData(i,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){return T("<li>").append(T("<div>").text(t.label)).appendTo(e)},_move:function(e,t){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[e](t);this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){if(!e.length)return!1;var t=e.prop("contentEditable");return"inherit"===t?this._isContentEditable(e.parent()):"true"===t}}),T.extend(T.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var i=new RegExp(T.ui.autocomplete.escapeRegex(t),"i");return T.grep(e,function(e){return i.test(e.label||e.value||e)})}}),T.widget("ui.autocomplete",T.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(1<e?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),T("<div>").text(t).appendTo(this.liveRegion))}});T.ui.autocomplete;var a=/ui-corner-([a-z]){2,6}/g;T.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var a=this,r=[];T.each(this.options.items,function(s,e){var t,o={};if(e)return"controlgroupLabel"===s?((t=a.element.find(e)).each(function(){var e=T(this);e.children(".ui-controlgroup-label-contents").length||e.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),a._addClass(t,null,"ui-widget ui-widget-content ui-state-default"),void(r=r.concat(t.get()))):void(T.fn[s]&&(o=a["_"+s+"Options"]?a["_"+s+"Options"]("middle"):{classes:{}},a.element.find(e).each(function(){var e=T(this),t=e[s]("instance"),i=T.widget.extend({},o);if("button"!==s||!e.parent(".ui-spinner").length){t||(t=e[s]()[s]("instance")),t&&(i.classes=a._resolveClassesValues(i.classes,t)),e[s](i);var n=e[s]("widget");T.data(n[0],"ui-controlgroup-data",t||e[s]("instance")),r.push(n[0])}})))}),this.childWidgets=T(T.unique(r)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(t){this.childWidgets.each(function(){var e=T(this).data("ui-controlgroup-data");e&&e[t]&&e[t]()})},_updateCornerClass:function(e,t){var i=this._buildSimpleOptions(t,"label").classes.label;this._removeClass(e,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(e,null,i)},_buildSimpleOptions:function(e,t){var i="vertical"===this.options.direction,n={classes:{}};return n.classes[t]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[e],n},_spinnerOptions:function(e){var t=this._buildSimpleOptions(e,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(e){return this._buildSimpleOptions(e,"ui-button")},_checkboxradioOptions:function(e){return this._buildSimpleOptions(e,"ui-checkboxradio-label")},_selectmenuOptions:function(e){var t="vertical"===this.options.direction;return{width:!!t&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(t?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(t?"top":"left")},last:{"ui-selectmenu-button-open":t?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(t?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[e]}},_resolveClassesValues:function(i,n){var s={};return T.each(i,function(e){var t=n.options.classes[e]||"";t=T.trim(t.replace(a,"")),s[e]=(t+" "+i[e]).replace(/\s+/g," ")}),s},_setOption:function(e,t){"direction"===e&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(e,t),"disabled"!==e?this.refresh():this._callChildMethod(t?"disable":"enable")},refresh:function(){var s,o=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),s=this.childWidgets,this.options.onlyVisible&&(s=s.filter(":visible")),s.length&&(T.each(["first","last"],function(e,t){var i=s[t]().data("ui-controlgroup-data");if(i&&o["_"+i.widgetName+"Options"]){var n=o["_"+i.widgetName+"Options"](1===s.length?"only":t);n.classes=o._resolveClassesValues(n.classes,i),i.element[i.widgetName](n)}else o._updateCornerClass(s[t](),t)}),this._callChildMethod("refresh"))}});T.widget("ui.checkboxradio",[T.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var e,t,i=this,n=this._super()||{};return this._readType(),t=this.element.labels(),this.label=T(t[t.length-1]),this.label.length||T.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){i.originalLabel+=3===this.nodeType?T(this).text():this.outerHTML}),this.originalLabel&&(n.label=this.originalLabel),null!=(e=this.element[0].disabled)&&(n.disabled=e),n},_create:function(){var e=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),e&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover")),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var e=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===e&&/radio|checkbox/.test(this.type)||T.error("Can't create checkboxradio on element.nodeName="+e+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var e=this.element[0].name,t="input[name='"+T.ui.escapeSelector(e)+"']";return e?(this.form.length?T(this.form[0].elements).filter(t):T(t).filter(function(){return 0===T(this).form().length})).not(this.element):T([])},_toggleClasses:function(){var e=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",e)._toggleClass(this.icon,null,"ui-icon-blank",!e),"radio"===this.type&&this._getRadioGroup().each(function(){var e=T(this).checkboxradio("instance");e&&e._removeClass(e.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(e,t){if("label"!==e||t){if(this._super(e,t),"disabled"===e)return this._toggleClass(this.label,null,"ui-state-disabled",t),void(this.element[0].disabled=t);this.refresh()}},_updateIcon:function(e){var t="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=T("<span>"),this.iconSpace=T("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(t+=e?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,e?"ui-icon-blank":"ui-icon-check")):t+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",t),e||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var e=this.label.contents().not(this.element[0]);this.icon&&(e=e.not(this.icon[0])),this.iconSpace&&(e=e.not(this.iconSpace[0])),e.remove(),this.label.append(this.options.label)},refresh:function(){var e=this.element[0].checked,t=this.element[0].disabled;this._updateIcon(e),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),null!==this.options.label&&this._updateLabel(),t!==this.options.disabled&&this._setOptions({disabled:t})}}]);var d;T.ui.checkboxradio;T.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var e,t=this._super()||{};return this.isInput=this.element.is("input"),null!=(e=this.element[0].disabled)&&(t.disabled=e),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(t.label=this.originalLabel),t},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(e){e.keyCode===T.ui.keyCode.SPACE&&(e.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(e,t){var i="iconPosition"!==e,n=i?this.options.iconPosition:t,s="top"===n||"bottom"===n;this.icon?i&&this._removeClass(this.icon,null,this.options.icon):(this.icon=T("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),i&&this._addClass(this.icon,null,t),this._attachIcon(n),s?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=T("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(n))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(e){this.icon[/^(?:end|bottom)/.test(e)?"before":"after"](this.iconSpace)},_attachIcon:function(e){this.element[/^(?:end|bottom)/.test(e)?"append":"prepend"](this.icon)},_setOptions:function(e){var t=void 0===e.showLabel?this.options.showLabel:e.showLabel,i=void 0===e.icon?this.options.icon:e.icon;t||i||(e.showLabel=!0),this._super(e)},_setOption:function(e,t){"icon"===e&&(t?this._updateIcon(e,t):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===e&&this._updateIcon(e,t),"showLabel"===e&&(this._toggleClass("ui-button-icon-only",null,!t),this._updateTooltip()),"label"===e&&(this.isInput?this.element.val(t):(this.element.html(t),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(e,t),"disabled"===e&&(this._toggleClass(null,"ui-state-disabled",t),(this.element[0].disabled=t)&&this.element.blur())},refresh:function(){var e=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOptions({disabled:e}),this._updateTooltip()}}),!1!==T.uiBackCompat&&(T.widget("ui.button",T.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(e,t){"text"!==e?("showLabel"===e&&(this.options.text=t),"icon"===e&&(this.options.icons.primary=t),"icons"===e&&(t.primary?(this._super("icon",t.primary),this._super("iconPosition","beginning")):t.secondary&&(this._super("icon",t.secondary),this._super("iconPosition","end"))),this._superApply(arguments)):this._super("showLabel",t)}}),T.fn.button=(d=T.fn.button,function(){return!this.length||this.length&&"INPUT"!==this[0].tagName||this.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!==this.attr("type")?d.apply(this,arguments):(T.ui.checkboxradio||T.error("Checkboxradio widget missing"),0===arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}),T.fn.buttonset=function(){return T.ui.controlgroup||T.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))});var p;T.ui.button;function f(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},T.extend(this._defaults,this.regional[""]),this.regional.en=T.extend(!0,{},this.regional[""]),this.regional["en-US"]=T.extend(!0,{},this.regional.en),this.dpDiv=m(T("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function m(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",t,function(){T(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&T(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&T(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",t,g)}function g(){T.datepicker._isDisabledDatepicker(p.inline?p.dpDiv.parent()[0]:p.input[0])||(T(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),T(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&T(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&T(this).addClass("ui-datepicker-next-hover"))}function v(e,t){for(var i in T.extend(e,t),t)null==t[i]&&(e[i]=t[i]);return e}T.extend(T.ui,{datepicker:{version:"1.12.1"}}),T.extend(f.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return v(this._defaults,e||{}),this},_attachDatepicker:function(e,t){var i,n,s;n="div"===(i=e.nodeName.toLowerCase())||"span"===i,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(s=this._newInst(T(e),n)).settings=T.extend({},t||{}),"input"===i?this._connectDatepicker(e,s):n&&this._inlineDatepicker(e,s)},_newInst:function(e,t){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:t?m(T("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,t){var i=T(e);t.append=T([]),t.trigger=T([]),i.hasClass(this.markerClassName)||(this._attachments(i,t),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(t),T.data(e,"datepicker",t),t.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,t){var i,n,s,o=this._get(t,"appendText"),a=this._get(t,"isRTL");t.append&&t.append.remove(),o&&(t.append=T("<span class='"+this._appendClass+"'>"+o+"</span>"),e[a?"before":"after"](t.append)),e.off("focus",this._showDatepicker),t.trigger&&t.trigger.remove(),"focus"!==(i=this._get(t,"showOn"))&&"both"!==i||e.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(n=this._get(t,"buttonText"),s=this._get(t,"buttonImage"),t.trigger=T(this._get(t,"buttonImageOnly")?T("<img/>").addClass(this._triggerClass).attr({src:s,alt:n,title:n}):T("<button type='button'></button>").addClass(this._triggerClass).html(s?T("<img/>").attr({src:s,alt:n,title:n}):n)),e[a?"before":"after"](t.trigger),t.trigger.on("click",function(){return T.datepicker._datepickerShowing&&T.datepicker._lastInput===e[0]?T.datepicker._hideDatepicker():(T.datepicker._datepickerShowing&&T.datepicker._lastInput!==e[0]&&T.datepicker._hideDatepicker(),T.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,i,n,s,o=new Date(2009,11,20),a=this._get(e,"dateFormat");a.match(/[DM]/)&&(t=function(e){for(s=n=i=0;s<e.length;s++)e[s].length>i&&(i=e[s].length,n=s);return n},o.setMonth(t(this._get(e,a.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(t(this._get(e,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),e.input.attr("size",this._formatDate(e,o).length)}},_inlineDatepicker:function(e,t){var i=T(e);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(t.dpDiv),T.data(e,"datepicker",t),this._setDate(t,this._getDefaultDate(t),!0),this._updateDatepicker(t),this._updateAlternate(t),t.settings.disabled&&this._disableDatepicker(e),t.dpDiv.css("display","block"))},_dialogDatepicker:function(e,t,i,n,s){var o,a,r,l,h,c=this._dialogInst;return c||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=T("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),T("body").append(this._dialogInput),(c=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},T.data(this._dialogInput[0],"datepicker",c)),v(c.settings,n||{}),t=t&&t.constructor===Date?this._formatDate(c,t):t,this._dialogInput.val(t),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,this._pos||(a=document.documentElement.clientWidth,r=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,h=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[a/2-100+l,r/2-150+h]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),c.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),T.blockUI&&T.blockUI(this.dpDiv),T.data(this._dialogInput[0],"datepicker",c),this},_destroyDatepicker:function(e){var t,i=T(e),n=T.data(e,"datepicker");i.hasClass(this.markerClassName)&&(t=e.nodeName.toLowerCase(),T.removeData(e,"datepicker"),"input"===t?(n.append.remove(),n.trigger.remove(),i.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==t&&"span"!==t||i.removeClass(this.markerClassName).empty(),p===n&&(p=null))},_enableDatepicker:function(t){var e,i,n=T(t),s=T.data(t,"datepicker");n.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!1,s.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==e&&"span"!==e||((i=n.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=T.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var e,i,n=T(t),s=T.data(t,"datepicker");n.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!0,s.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==e&&"span"!==e||((i=n.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=T.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(e){try{return T.data(e,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,t,i){var n,s,o,a,r=this._getInst(e);if(2===arguments.length&&"string"==typeof t)return"defaults"===t?T.extend({},T.datepicker._defaults):r?"all"===t?T.extend({},r.settings):this._get(r,t):null;n=t||{},"string"==typeof t&&((n={})[t]=i),r&&(this._curInst===r&&this._hideDatepicker(),s=this._getDateDatepicker(e,!0),o=this._getMinMaxDate(r,"min"),a=this._getMinMaxDate(r,"max"),v(r.settings,n),null!==o&&void 0!==n.dateFormat&&void 0===n.minDate&&(r.settings.minDate=this._formatDate(r,o)),null!==a&&void 0!==n.dateFormat&&void 0===n.maxDate&&(r.settings.maxDate=this._formatDate(r,a)),"disabled"in n&&(n.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(T(e),r),this._autoSize(r),this._setDate(r,s),this._updateAlternate(r),this._updateDatepicker(r))},_changeDatepicker:function(e,t,i){this._optionDatepicker(e,t,i)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var i=this._getInst(e);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(e,t){var i=this._getInst(e);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(e){var t,i,n,s=T.datepicker._getInst(e.target),o=!0,a=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,T.datepicker._datepickerShowing)switch(e.keyCode){case 9:T.datepicker._hideDatepicker(),o=!1;break;case 13:return(n=T("td."+T.datepicker._dayOverClass+":not(."+T.datepicker._currentClass+")",s.dpDiv))[0]&&T.datepicker._selectDay(e.target,s.selectedMonth,s.selectedYear,n[0]),(t=T.datepicker._get(s,"onSelect"))?(i=T.datepicker._formatDate(s),t.apply(s.input?s.input[0]:null,[i,s])):T.datepicker._hideDatepicker(),!1;case 27:T.datepicker._hideDatepicker();break;case 33:T.datepicker._adjustDate(e.target,e.ctrlKey?-T.datepicker._get(s,"stepBigMonths"):-T.datepicker._get(s,"stepMonths"),"M");break;case 34:T.datepicker._adjustDate(e.target,e.ctrlKey?+T.datepicker._get(s,"stepBigMonths"):+T.datepicker._get(s,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&T.datepicker._clearDate(e.target),o=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&T.datepicker._gotoToday(e.target),o=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&T.datepicker._adjustDate(e.target,a?1:-1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&T.datepicker._adjustDate(e.target,e.ctrlKey?-T.datepicker._get(s,"stepBigMonths"):-T.datepicker._get(s,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&T.datepicker._adjustDate(e.target,-7,"D"),o=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&T.datepicker._adjustDate(e.target,a?-1:1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&T.datepicker._adjustDate(e.target,e.ctrlKey?+T.datepicker._get(s,"stepBigMonths"):+T.datepicker._get(s,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&T.datepicker._adjustDate(e.target,7,"D"),o=e.ctrlKey||e.metaKey;break;default:o=!1}else 36===e.keyCode&&e.ctrlKey?T.datepicker._showDatepicker(this):o=!1;o&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var t,i,n=T.datepicker._getInst(e.target);if(T.datepicker._get(n,"constrainInput"))return t=T.datepicker._possibleChars(T.datepicker._get(n,"dateFormat")),i=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||i<" "||!t||-1<t.indexOf(i)},_doKeyUp:function(e){var t=T.datepicker._getInst(e.target);if(t.input.val()!==t.lastVal)try{T.datepicker.parseDate(T.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,T.datepicker._getFormatConfig(t))&&(T.datepicker._setDateFromField(t),T.datepicker._updateAlternate(t),T.datepicker._updateDatepicker(t))}catch(e){}return!0},_showDatepicker:function(e){var t,i,n,s,o,a,r;("input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=T("input",e.parentNode)[0]),T.datepicker._isDisabledDatepicker(e)||T.datepicker._lastInput===e)||(t=T.datepicker._getInst(e),T.datepicker._curInst&&T.datepicker._curInst!==t&&(T.datepicker._curInst.dpDiv.stop(!0,!0),t&&T.datepicker._datepickerShowing&&T.datepicker._hideDatepicker(T.datepicker._curInst.input[0])),!1!==(n=(i=T.datepicker._get(t,"beforeShow"))?i.apply(e,[e,t]):{})&&(v(t.settings,n),t.lastVal=null,T.datepicker._lastInput=e,T.datepicker._setDateFromField(t),T.datepicker._inDialog&&(e.value=""),T.datepicker._pos||(T.datepicker._pos=T.datepicker._findPos(e),T.datepicker._pos[1]+=e.offsetHeight),s=!1,T(e).parents().each(function(){return!(s|="fixed"===T(this).css("position"))}),o={left:T.datepicker._pos[0],top:T.datepicker._pos[1]},T.datepicker._pos=null,t.dpDiv.empty(),t.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),T.datepicker._updateDatepicker(t),o=T.datepicker._checkOffset(t,o,s),t.dpDiv.css({position:T.datepicker._inDialog&&T.blockUI?"static":s?"fixed":"absolute",display:"none",left:o.left+"px",top:o.top+"px"}),t.inline||(a=T.datepicker._get(t,"showAnim"),r=T.datepicker._get(t,"duration"),t.dpDiv.css("z-index",function(e){for(var t,i;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(i=parseInt(e.css("zIndex"),10),!isNaN(i)&&0!==i))return i;e=e.parent()}return 0}(T(e))+1),T.datepicker._datepickerShowing=!0,T.effects&&T.effects.effect[a]?t.dpDiv.show(a,T.datepicker._get(t,"showOptions"),r):t.dpDiv[a||"show"](a?r:null),T.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),T.datepicker._curInst=t)))},_updateDatepicker:function(e){this.maxRows=4,(p=e).dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var t,i=this._getNumberOfMonths(e),n=i[1],s=e.dpDiv.find("."+this._dayOverClass+" a");0<s.length&&g.apply(s.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<n&&e.dpDiv.addClass("ui-datepicker-multi-"+n).css("width",17*n+"em"),e.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===T.datepicker._curInst&&T.datepicker._datepickerShowing&&T.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(t=e.yearshtml,setTimeout(function(){t===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),t=e.yearshtml=null},0))},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(e,t,i){var n=e.dpDiv.outerWidth(),s=e.dpDiv.outerHeight(),o=e.input?e.input.outerWidth():0,a=e.input?e.input.outerHeight():0,r=document.documentElement.clientWidth+(i?0:T(document).scrollLeft()),l=document.documentElement.clientHeight+(i?0:T(document).scrollTop());return t.left-=this._get(e,"isRTL")?n-o:0,t.left-=i&&t.left===e.input.offset().left?T(document).scrollLeft():0,t.top-=i&&t.top===e.input.offset().top+a?T(document).scrollTop():0,t.left-=Math.min(t.left,t.left+n>r&&n<r?Math.abs(t.left+n-r):0),t.top-=Math.min(t.top,t.top+s>l&&s<l?Math.abs(s+a):0),t},_findPos:function(e){for(var t,i=this._getInst(e),n=this._get(i,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||T.expr.filters.hidden(e));)e=e[n?"previousSibling":"nextSibling"];return[(t=T(e).offset()).left,t.top]},_hideDatepicker:function(e){var t,i,n,s,o=this._curInst;!o||e&&o!==T.data(e,"datepicker")||this._datepickerShowing&&(t=this._get(o,"showAnim"),i=this._get(o,"duration"),n=function(){T.datepicker._tidyDialog(o)},T.effects&&(T.effects.effect[t]||T.effects[t])?o.dpDiv.hide(t,T.datepicker._get(o,"showOptions"),i,n):o.dpDiv["slideDown"===t?"slideUp":"fadeIn"===t?"fadeOut":"hide"](t?i:null,n),t||n(),this._datepickerShowing=!1,(s=this._get(o,"onClose"))&&s.apply(o.input?o.input[0]:null,[o.input?o.input.val():"",o]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),T.blockUI&&(T.unblockUI(),T("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(T.datepicker._curInst){var t=T(e.target),i=T.datepicker._getInst(t[0]);(t[0].id===T.datepicker._mainDivId||0!==t.parents("#"+T.datepicker._mainDivId).length||t.hasClass(T.datepicker.markerClassName)||t.closest("."+T.datepicker._triggerClass).length||!T.datepicker._datepickerShowing||T.datepicker._inDialog&&T.blockUI)&&(!t.hasClass(T.datepicker.markerClassName)||T.datepicker._curInst===i)||T.datepicker._hideDatepicker()}},_adjustDate:function(e,t,i){var n=T(e),s=this._getInst(n[0]);this._isDisabledDatepicker(n[0])||(this._adjustInstDate(s,t+("M"===i?this._get(s,"showCurrentAtPos"):0),i),this._updateDatepicker(s))},_gotoToday:function(e){var t,i=T(e),n=this._getInst(i[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(t=new Date,n.selectedDay=t.getDate(),n.drawMonth=n.selectedMonth=t.getMonth(),n.drawYear=n.selectedYear=t.getFullYear()),this._notifyChange(n),this._adjustDate(i)},_selectMonthYear:function(e,t,i){var n=T(e),s=this._getInst(n[0]);s["selected"+("M"===i?"Month":"Year")]=s["draw"+("M"===i?"Month":"Year")]=parseInt(t.options[t.selectedIndex].value,10),this._notifyChange(s),this._adjustDate(n)},_selectDay:function(e,t,i,n){var s,o=T(e);T(n).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0])||((s=this._getInst(o[0])).selectedDay=s.currentDay=T("a",n).html(),s.selectedMonth=s.currentMonth=t,s.selectedYear=s.currentYear=i,this._selectDate(e,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(e){var t=T(e);this._selectDate(t,"")},_selectDate:function(e,t){var i,n=T(e),s=this._getInst(n[0]);t=null!=t?t:this._formatDate(s),s.input&&s.input.val(t),this._updateAlternate(s),(i=this._get(s,"onSelect"))?i.apply(s.input?s.input[0]:null,[t,s]):s.input&&s.input.trigger("change"),s.inline?this._updateDatepicker(s):(this._hideDatepicker(),this._lastInput=s.input[0],"object"!=typeof s.input[0]&&s.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var t,i,n,s=this._get(e,"altField");s&&(t=this._get(e,"altFormat")||this._get(e,"dateFormat"),i=this._getDate(e),n=this.formatDate(t,i,this._getFormatConfig(e)),T(s).val(n))},noWeekends:function(e){var t=e.getDay();return[0<t&&t<6,""]},iso8601Week:function(e){var t,i=new Date(e.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),t=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((t-i)/864e5)/7)+1},parseDate:function(i,o,e){if(null==i||null==o)throw"Invalid arguments";if(""===(o="object"==typeof o?o.toString():o+""))return null;var n,t,s,a,r=0,l=(e?e.shortYearCutoff:null)||this._defaults.shortYearCutoff,h="string"!=typeof l?l:(new Date).getFullYear()%100+parseInt(l,10),c=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,u=(e?e.dayNames:null)||this._defaults.dayNames,d=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort,p=(e?e.monthNames:null)||this._defaults.monthNames,f=-1,m=-1,g=-1,v=-1,_=!1,y=function(e){var t=n+1<i.length&&i.charAt(n+1)===e;return t&&n++,t},b=function(e){var t=y(e),i="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,n=new RegExp("^\\d{"+("y"===e?i:1)+","+i+"}"),s=o.substring(r).match(n);if(!s)throw"Missing number at position "+r;return r+=s[0].length,parseInt(s[0],10)},w=function(e,t,i){var n=-1,s=T.map(y(e)?i:t,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(T.each(s,function(e,t){var i=t[1];if(o.substr(r,i.length).toLowerCase()===i.toLowerCase())return n=t[0],r+=i.length,!1}),-1!==n)return n+1;throw"Unknown name at position "+r},x=function(){if(o.charAt(r)!==i.charAt(n))throw"Unexpected literal at position "+r;r++};for(n=0;n<i.length;n++)if(_)"'"!==i.charAt(n)||y("'")?x():_=!1;else switch(i.charAt(n)){case"d":g=b("d");break;case"D":w("D",c,u);break;case"o":v=b("o");break;case"m":m=b("m");break;case"M":m=w("M",d,p);break;case"y":f=b("y");break;case"@":f=(a=new Date(b("@"))).getFullYear(),m=a.getMonth()+1,g=a.getDate();break;case"!":f=(a=new Date((b("!")-this._ticksTo1970)/1e4)).getFullYear(),m=a.getMonth()+1,g=a.getDate();break;case"'":y("'")?x():_=!0;break;default:x()}if(r<o.length&&(s=o.substr(r),!/^\s+/.test(s)))throw"Extra/unparsed characters found in date: "+s;if(-1===f?f=(new Date).getFullYear():f<100&&(f+=(new Date).getFullYear()-(new Date).getFullYear()%100+(f<=h?0:-100)),-1<v)for(m=1,g=v;;){if(g<=(t=this._getDaysInMonth(f,m-1)))break;m++,g-=t}if((a=this._daylightSavingAdjust(new Date(f,m-1,g))).getFullYear()!==f||a.getMonth()+1!==m||a.getDate()!==g)throw"Invalid date";return a},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(i,e,t){if(!e)return"";var n,s=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,o=(t?t.dayNames:null)||this._defaults.dayNames,a=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,r=(t?t.monthNames:null)||this._defaults.monthNames,l=function(e){var t=n+1<i.length&&i.charAt(n+1)===e;return t&&n++,t},h=function(e,t,i){var n=""+t;if(l(e))for(;n.length<i;)n="0"+n;return n},c=function(e,t,i,n){return l(e)?n[t]:i[t]},u="",d=!1;if(e)for(n=0;n<i.length;n++)if(d)"'"!==i.charAt(n)||l("'")?u+=i.charAt(n):d=!1;else switch(i.charAt(n)){case"d":u+=h("d",e.getDate(),2);break;case"D":u+=c("D",e.getDay(),s,o);break;case"o":u+=h("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=h("m",e.getMonth()+1,2);break;case"M":u+=c("M",e.getMonth(),a,r);break;case"y":u+=l("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":u+=e.getTime();break;case"!":u+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?u+="'":d=!0;break;default:u+=i.charAt(n)}return u},_possibleChars:function(i){var n,e="",t=!1,s=function(e){var t=n+1<i.length&&i.charAt(n+1)===e;return t&&n++,t};for(n=0;n<i.length;n++)if(t)"'"!==i.charAt(n)||s("'")?e+=i.charAt(n):t=!1;else switch(i.charAt(n)){case"d":case"m":case"y":case"@":e+="0123456789";break;case"D":case"M":return null;case"'":s("'")?e+="'":t=!0;break;default:e+=i.charAt(n)}return e},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var i=this._get(e,"dateFormat"),n=e.lastVal=e.input?e.input.val():null,s=this._getDefaultDate(e),o=s,a=this._getFormatConfig(e);try{o=this.parseDate(i,n,a)||s}catch(e){n=t?"":n}e.selectedDay=o.getDate(),e.drawMonth=e.selectedMonth=o.getMonth(),e.drawYear=e.selectedYear=o.getFullYear(),e.currentDay=n?o.getDate():0,e.currentMonth=n?o.getMonth():0,e.currentYear=n?o.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(r,e,t){var i,n,s=null==e||""===e?t:"string"==typeof e?function(e){try{return T.datepicker.parseDate(T.datepicker._get(r,"dateFormat"),e,T.datepicker._getFormatConfig(r))}catch(e){}for(var t=(e.toLowerCase().match(/^c/)?T.datepicker._getDate(r):null)||new Date,i=t.getFullYear(),n=t.getMonth(),s=t.getDate(),o=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,a=o.exec(e);a;){switch(a[2]||"d"){case"d":case"D":s+=parseInt(a[1],10);break;case"w":case"W":s+=7*parseInt(a[1],10);break;case"m":case"M":n+=parseInt(a[1],10),s=Math.min(s,T.datepicker._getDaysInMonth(i,n));break;case"y":case"Y":i+=parseInt(a[1],10),s=Math.min(s,T.datepicker._getDaysInMonth(i,n))}a=o.exec(e)}return new Date(i,n,s)}(e):"number"==typeof e?isNaN(e)?t:(i=e,(n=new Date).setDate(n.getDate()+i),n):new Date(e.getTime());return(s=s&&"Invalid Date"===s.toString()?t:s)&&(s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0)),this._daylightSavingAdjust(s)},_daylightSavingAdjust:function(e){return e?(e.setHours(12<e.getHours()?e.getHours()+2:0),e):null},_setDate:function(e,t,i){var n=!t,s=e.selectedMonth,o=e.selectedYear,a=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=a.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=a.getMonth(),e.drawYear=e.selectedYear=e.currentYear=a.getFullYear(),s===e.selectedMonth&&o===e.selectedYear||i||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(n?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(e){var t=this._get(e,"stepMonths"),i="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){T.datepicker._adjustDate(i,-t,"M")},next:function(){T.datepicker._adjustDate(i,+t,"M")},hide:function(){T.datepicker._hideDatepicker()},today:function(){T.datepicker._gotoToday(i)},selectDay:function(){return T.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return T.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return T.datepicker._selectMonthYear(i,this,"Y"),!1}};T(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,i,n,s,o,a,r,l,h,c,u,d,p,f,m,g,v,_,y,b,w,x,C,k,D,T,P,A,S,I,M,N,E,H,R,O,F,z,W,L=new Date,j=this._daylightSavingAdjust(new Date(L.getFullYear(),L.getMonth(),L.getDate())),q=this._get(e,"isRTL"),B=this._get(e,"showButtonPanel"),U=this._get(e,"hideIfNoPrevNext"),Y=this._get(e,"navigationAsDateFormat"),V=this._getNumberOfMonths(e),$=this._get(e,"showCurrentAtPos"),G=this._get(e,"stepMonths"),K=1!==V[0]||1!==V[1],X=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),Q=this._getMinMaxDate(e,"min"),J=this._getMinMaxDate(e,"max"),Z=e.drawMonth-$,ee=e.drawYear;if(Z<0&&(Z+=12,ee--),J)for(t=this._daylightSavingAdjust(new Date(J.getFullYear(),J.getMonth()-V[0]*V[1]+1,J.getDate())),t=Q&&t<Q?Q:t;this._daylightSavingAdjust(new Date(ee,Z,1))>t;)--Z<0&&(Z=11,ee--);for(e.drawMonth=Z,e.drawYear=ee,i=this._get(e,"prevText"),i=Y?this.formatDate(i,this._daylightSavingAdjust(new Date(ee,Z-G,1)),this._getFormatConfig(e)):i,n=this._canAdjustMonth(e,-1,ee,Z)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(q?"e":"w")+"'>"+i+"</span></a>":U?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(q?"e":"w")+"'>"+i+"</span></a>",s=this._get(e,"nextText"),s=Y?this.formatDate(s,this._daylightSavingAdjust(new Date(ee,Z+G,1)),this._getFormatConfig(e)):s,o=this._canAdjustMonth(e,1,ee,Z)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(q?"w":"e")+"'>"+s+"</span></a>":U?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(q?"w":"e")+"'>"+s+"</span></a>",a=this._get(e,"currentText"),r=this._get(e,"gotoCurrent")&&e.currentDay?X:j,a=Y?this.formatDate(a,r,this._getFormatConfig(e)):a,l=e.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(e,"closeText")+"</button>",h=B?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(q?l:"")+(this._isInRange(e,r)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+a+"</button>":"")+(q?"":l)+"</div>":"",c=parseInt(this._get(e,"firstDay"),10),c=isNaN(c)?0:c,u=this._get(e,"showWeek"),d=this._get(e,"dayNames"),p=this._get(e,"dayNamesMin"),f=this._get(e,"monthNames"),m=this._get(e,"monthNamesShort"),g=this._get(e,"beforeShowDay"),v=this._get(e,"showOtherMonths"),_=this._get(e,"selectOtherMonths"),y=this._getDefaultDate(e),b="",x=0;x<V[0];x++){for(C="",this.maxRows=4,k=0;k<V[1];k++){if(D=this._daylightSavingAdjust(new Date(ee,Z,e.selectedDay)),T=" ui-corner-all",P="",K){if(P+="<div class='ui-datepicker-group",1<V[1])switch(k){case 0:P+=" ui-datepicker-group-first",T=" ui-corner-"+(q?"right":"left");break;case V[1]-1:P+=" ui-datepicker-group-last",T=" ui-corner-"+(q?"left":"right");break;default:P+=" ui-datepicker-group-middle",T=""}P+="'>"}for(P+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+T+"'>"+(/all|left/.test(T)&&0===x?q?o:n:"")+(/all|right/.test(T)&&0===x?q?n:o:"")+this._generateMonthYearHeader(e,Z,ee,Q,J,0<x||0<k,f,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",A=u?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",w=0;w<7;w++)A+="<th scope='col'"+(5<=(w+c+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+d[S=(w+c)%7]+"'>"+p[S]+"</span></th>";for(P+=A+"</tr></thead><tbody>",I=this._getDaysInMonth(ee,Z),ee===e.selectedYear&&Z===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,I)),M=(this._getFirstDayOfMonth(ee,Z)-c+7)%7,N=Math.ceil((M+I)/7),E=K&&this.maxRows>N?this.maxRows:N,this.maxRows=E,H=this._daylightSavingAdjust(new Date(ee,Z,1-M)),R=0;R<E;R++){for(P+="<tr>",O=u?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(H)+"</td>":"",w=0;w<7;w++)F=g?g.apply(e.input?e.input[0]:null,[H]):[!0,""],W=(z=H.getMonth()!==Z)&&!_||!F[0]||Q&&H<Q||J&&J<H,O+="<td class='"+(5<=(w+c+6)%7?" ui-datepicker-week-end":"")+(z?" ui-datepicker-other-month":"")+(H.getTime()===D.getTime()&&Z===e.selectedMonth&&e._keyEvent||y.getTime()===H.getTime()&&y.getTime()===D.getTime()?" "+this._dayOverClass:"")+(W?" "+this._unselectableClass+" ui-state-disabled":"")+(z&&!v?"":" "+F[1]+(H.getTime()===X.getTime()?" "+this._currentClass:"")+(H.getTime()===j.getTime()?" ui-datepicker-today":""))+"'"+(z&&!v||!F[2]?"":" title='"+F[2].replace(/'/g,"&#39;")+"'")+(W?"":" data-handler='selectDay' data-event='click' data-month='"+H.getMonth()+"' data-year='"+H.getFullYear()+"'")+">"+(z&&!v?"&#xa0;":W?"<span class='ui-state-default'>"+H.getDate()+"</span>":"<a class='ui-state-default"+(H.getTime()===j.getTime()?" ui-state-highlight":"")+(H.getTime()===X.getTime()?" ui-state-active":"")+(z?" ui-priority-secondary":"")+"' href='#'>"+H.getDate()+"</a>")+"</td>",H.setDate(H.getDate()+1),H=this._daylightSavingAdjust(H);P+=O+"</tr>"}11<++Z&&(Z=0,ee++),C+=P+="</tbody></table>"+(K?"</div>"+(0<V[0]&&k===V[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}b+=C}return b+=h,e._keyEvent=!1,b},_generateMonthYearHeader:function(e,t,i,n,s,o,a,r){var l,h,c,u,d,p,f,m,g=this._get(e,"changeMonth"),v=this._get(e,"changeYear"),_=this._get(e,"showMonthAfterYear"),y="<div class='ui-datepicker-title'>",b="";if(o||!g)b+="<span class='ui-datepicker-month'>"+a[t]+"</span>";else{for(l=n&&n.getFullYear()===i,h=s&&s.getFullYear()===i,b+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!l||c>=n.getMonth())&&(!h||c<=s.getMonth())&&(b+="<option value='"+c+"'"+(c===t?" selected='selected'":"")+">"+r[c]+"</option>");b+="</select>"}if(_||(y+=b+(!o&&g&&v?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",o||!v)y+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(u=this._get(e,"yearRange").split(":"),d=(new Date).getFullYear(),f=(p=function(e){var t=e.match(/c[+\-].*/)?i+parseInt(e.substring(1),10):e.match(/[+\-].*/)?d+parseInt(e,10):parseInt(e,10);return isNaN(t)?d:t})(u[0]),m=Math.max(f,p(u[1]||"")),f=n?Math.max(f,n.getFullYear()):f,m=s?Math.min(m,s.getFullYear()):m,e.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";f<=m;f++)e.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";e.yearshtml+="</select>",y+=e.yearshtml,e.yearshtml=null}return y+=this._get(e,"yearSuffix"),_&&(y+=(!o&&g&&v?"":"&#xa0;")+b),y+="</div>"},_adjustInstDate:function(e,t,i){var n=e.selectedYear+("Y"===i?t:0),s=e.selectedMonth+("M"===i?t:0),o=Math.min(e.selectedDay,this._getDaysInMonth(n,s))+("D"===i?t:0),a=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(n,s,o)));e.selectedDay=a.getDate(),e.drawMonth=e.selectedMonth=a.getMonth(),e.drawYear=e.selectedYear=a.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(e)},_restrictMinMax:function(e,t){var i=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max"),s=i&&t<i?i:t;return n&&n<s?n:s},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,i,n){var s=this._getNumberOfMonths(e),o=this._daylightSavingAdjust(new Date(i,n+(t<0?t:s[0]*s[1]),1));return t<0&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(e,o)},_isInRange:function(e,t){var i,n,s=this._getMinMaxDate(e,"min"),o=this._getMinMaxDate(e,"max"),a=null,r=null,l=this._get(e,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),a=parseInt(i[0],10),r=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(a+=n),i[1].match(/[+\-].*/)&&(r+=n)),(!s||t.getTime()>=s.getTime())&&(!o||t.getTime()<=o.getTime())&&(!a||t.getFullYear()>=a)&&(!r||t.getFullYear()<=r)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,n){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var s=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(n,i,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),s,this._getFormatConfig(e))}}),T.fn.datepicker=function(e){if(!this.length)return this;T.datepicker.initialized||(T(document).on("mousedown",T.datepicker._checkExternalClick),T.datepicker.initialized=!0),0===T("#"+T.datepicker._mainDivId).length&&T("body").append(T.datepicker.dpDiv);var t=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?T.datepicker["_"+e+"Datepicker"].apply(T.datepicker,[this[0]].concat(t)):this.each(function(){"string"==typeof e?T.datepicker["_"+e+"Datepicker"].apply(T.datepicker,[this].concat(t)):T.datepicker._attachDatepicker(this,e)}):T.datepicker["_"+e+"Datepicker"].apply(T.datepicker,[this[0]].concat(t))},T.datepicker=new f,T.datepicker.initialized=!1,T.datepicker.uuid=(new Date).getTime(),T.datepicker.version="1.12.1";T.datepicker,T.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var _=!1;T(document).on("mouseup",function(){_=!1});T.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(e){if(!0===T.data(e.target,t.widgetName+".preventClickEvent"))return T.removeData(e.target,t.widgetName+".preventClickEvent"),e.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!_){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var t=this,i=1===e.which,n=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&T(e.target).closest(this.options.cancel).length;return!(i&&!n&&this._mouseCapture(e))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),!0):(!0===T.data(e.target,this.widgetName+".preventClickEvent")&&T.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return t._mouseMove(e)},this._mouseUpDelegate=function(e){return t._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),_=!0))}},_mouseMove:function(e){if(this._mouseMoved){if(T.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&T.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,_=!1,e.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),T.ui.plugin={add:function(e,t,i){var n,s=T.ui[e].prototype;for(n in i)s.plugins[n]=s.plugins[n]||[],s.plugins[n].push([t,i[n]])},call:function(e,t,i,n){var s,o=e.plugins[t];if(o&&(n||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(s=0;s<o.length;s++)e.options[o[s][0]]&&o[s][1].apply(e.element,i)}},T.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&&T(e).trigger("blur")};T.widget("ui.draggable",T.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(e){var t=this.options;return!(this.helper||t.disabled||0<T(e.target).closest(".ui-resizable-handle").length)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(!0===t.iframeFix?"iframe":t.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=T(this);return T("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var t=T.ui.safeActiveElement(this.document[0]);T(e.target).closest(t).length||T.ui.safeBlur(t)},_mouseStart:function(e){var t=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),T.ui.ddmanager&&(T.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter(function(){return"fixed"===T(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,t.cursorAt&&this._adjustOffsetFromHelper(t.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),T.ui.ddmanager&&!t.dropBehaviour&&T.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),T.ui.ddmanager&&T.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(e,t){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!t){var i=this._uiHash();if(!1===this._trigger("drag",e,i))return this._mouseUp(new T.Event("mouseup",e)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",T.ui.ddmanager&&T.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var t=this,i=!1;return T.ui.ddmanager&&!this.options.dropBehaviour&&(i=T.ui.ddmanager.drop(this,e)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||T.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?T(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==t._trigger("stop",e)&&t._clear()}):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),T.ui.ddmanager&&T.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),T.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new T.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!T(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var t=this.options,i=T.isFunction(t.helper),n=i?T(t.helper.apply(this.element[0],[e])):"clone"===t.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===t.appendTo?this.element[0].parentNode:t.appendTo),i&&n[0]===this.element[0]&&this._setPositionRelative(),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),T.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),t=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==t&&T.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,t,i,n=this.options,s=this.document[0];this.relativeContainer=null,n.containment?"window"!==n.containment?"document"!==n.containment?n.containment.constructor!==Array?("parent"===n.containment&&(n.containment=this.helper[0].parentNode),(i=(t=T(n.containment))[0])&&(e=/(scroll|auto)/.test(t.css("overflow")),this.containment=[(parseInt(t.css("borderLeftWidth"),10)||0)+(parseInt(t.css("paddingLeft"),10)||0),(parseInt(t.css("borderTopWidth"),10)||0)+(parseInt(t.css("paddingTop"),10)||0),(e?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(t.css("borderRightWidth"),10)||0)-(parseInt(t.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(t.css("borderBottomWidth"),10)||0)-(parseInt(t.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=t)):this.containment=n.containment:this.containment=[0,0,T(s).width()-this.helperProportions.width-this.margins.left,(T(s).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[T(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,T(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,T(window).scrollLeft()+T(window).width()-this.helperProportions.width-this.margins.left,T(window).scrollTop()+(T(window).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(e,t){t||(t=this.position);var i="absolute"===e?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(e,t){var i,n,s,o,a=this.options,r=this._isRootNode(this.scrollParent[0]),l=e.pageX,h=e.pageY;return r&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(i=this.relativeContainer?(n=this.relativeContainer.offset(),[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):this.containment,e.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),e.pageY-this.offset.click.top<i[1]&&(h=i[1]+this.offset.click.top),e.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(h=i[3]+this.offset.click.top)),a.grid&&(s=a.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,h=i?s-this.offset.click.top>=i[1]||s-this.offset.click.top>i[3]?s:s-this.offset.click.top>=i[1]?s-a.grid[1]:s+a.grid[1]:s,o=a.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,l=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-a.grid[0]:o+a.grid[0]:o),"y"===a.axis&&(l=this.originalPageX),"x"===a.axis&&(h=this.originalPageY)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:r?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:r?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,t,i){return i=i||this._uiHash(),T.ui.plugin.call(this,e,[t,i,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),T.Widget.prototype._trigger.call(this,e,t,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),T.ui.plugin.add("draggable","connectToSortable",{start:function(t,e,i){var n=T.extend({},e,{item:i.element});i.sortables=[],T(i.options.connectToSortable).each(function(){var e=T(this).sortable("instance");e&&!e.options.disabled&&(i.sortables.push(e),e.refreshPositions(),e._trigger("activate",t,n))})},stop:function(t,e,i){var n=T.extend({},e,{item:i.element});i.cancelHelperRemoval=!1,T.each(i.sortables,function(){var e=this;e.isOver?(e.isOver=0,i.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,n))})},drag:function(i,n,s){T.each(s.sortables,function(){var e=!1,t=this;t.positionAbs=s.positionAbs,t.helperProportions=s.helperProportions,t.offset.click=s.offset.click,t._intersectsWith(t.containerCache)&&(e=!0,T.each(s.sortables,function(){return this.positionAbs=s.positionAbs,this.helperProportions=s.helperProportions,this.offset.click=s.offset.click,this!==t&&this._intersectsWith(this.containerCache)&&T.contains(t.element[0],this.element[0])&&(e=!1),e})),e?(t.isOver||(t.isOver=1,s._parent=n.helper.parent(),t.currentItem=n.helper.appendTo(t.element).data("ui-sortable-item",!0),t.options._helper=t.options.helper,t.options.helper=function(){return n.helper[0]},i.target=t.currentItem[0],t._mouseCapture(i,!0),t._mouseStart(i,!0,!0),t.offset.click.top=s.offset.click.top,t.offset.click.left=s.offset.click.left,t.offset.parent.left-=s.offset.parent.left-t.offset.parent.left,t.offset.parent.top-=s.offset.parent.top-t.offset.parent.top,s._trigger("toSortable",i),s.dropped=t.element,T.each(s.sortables,function(){this.refreshPositions()}),s.currentItem=s.element,t.fromOutside=s),t.currentItem&&(t._mouseDrag(i),n.position=t.position)):t.isOver&&(t.isOver=0,t.cancelHelperRemoval=!0,t.options._revert=t.options.revert,t.options.revert=!1,t._trigger("out",i,t._uiHash(t)),t._mouseStop(i,!0),t.options.revert=t.options._revert,t.options.helper=t.options._helper,t.placeholder&&t.placeholder.remove(),n.helper.appendTo(s._parent),s._refreshOffsets(i),n.position=s._generatePosition(i,!0),s._trigger("fromSortable",i),s.dropped=!1,T.each(s.sortables,function(){this.refreshPositions()}))})}}),T.ui.plugin.add("draggable","cursor",{start:function(e,t,i){var n=T("body"),s=i.options;n.css("cursor")&&(s._cursor=n.css("cursor")),n.css("cursor",s.cursor)},stop:function(e,t,i){var n=i.options;n._cursor&&T("body").css("cursor",n._cursor)}}),T.ui.plugin.add("draggable","opacity",{start:function(e,t,i){var n=T(t.helper),s=i.options;n.css("opacity")&&(s._opacity=n.css("opacity")),n.css("opacity",s.opacity)},stop:function(e,t,i){var n=i.options;n._opacity&&T(t.helper).css("opacity",n._opacity)}}),T.ui.plugin.add("draggable","scroll",{start:function(e,t,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,t,i){var n=i.options,s=!1,o=i.scrollParentNotHidden[0],a=i.document[0];o!==a&&"HTML"!==o.tagName?(n.axis&&"x"===n.axis||(i.overflowOffset.top+o.offsetHeight-e.pageY<n.scrollSensitivity?o.scrollTop=s=o.scrollTop+n.scrollSpeed:e.pageY-i.overflowOffset.top<n.scrollSensitivity&&(o.scrollTop=s=o.scrollTop-n.scrollSpeed)),n.axis&&"y"===n.axis||(i.overflowOffset.left+o.offsetWidth-e.pageX<n.scrollSensitivity?o.scrollLeft=s=o.scrollLeft+n.scrollSpeed:e.pageX-i.overflowOffset.left<n.scrollSensitivity&&(o.scrollLeft=s=o.scrollLeft-n.scrollSpeed))):(n.axis&&"x"===n.axis||(e.pageY-T(a).scrollTop()<n.scrollSensitivity?s=T(a).scrollTop(T(a).scrollTop()-n.scrollSpeed):T(window).height()-(e.pageY-T(a).scrollTop())<n.scrollSensitivity&&(s=T(a).scrollTop(T(a).scrollTop()+n.scrollSpeed))),n.axis&&"y"===n.axis||(e.pageX-T(a).scrollLeft()<n.scrollSensitivity?s=T(a).scrollLeft(T(a).scrollLeft()-n.scrollSpeed):T(window).width()-(e.pageX-T(a).scrollLeft())<n.scrollSensitivity&&(s=T(a).scrollLeft(T(a).scrollLeft()+n.scrollSpeed)))),!1!==s&&T.ui.ddmanager&&!n.dropBehaviour&&T.ui.ddmanager.prepareOffsets(i,e)}}),T.ui.plugin.add("draggable","snap",{start:function(e,t,i){var n=i.options;i.snapElements=[],T(n.snap.constructor!==String?n.snap.items||":data(ui-draggable)":n.snap).each(function(){var e=T(this),t=e.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:t.top,left:t.left})})},drag:function(e,t,i){var n,s,o,a,r,l,h,c,u,d,p=i.options,f=p.snapTolerance,m=t.offset.left,g=m+i.helperProportions.width,v=t.offset.top,_=v+i.helperProportions.height;for(u=i.snapElements.length-1;0<=u;u--)l=(r=i.snapElements[u].left-i.margins.left)+i.snapElements[u].width,c=(h=i.snapElements[u].top-i.margins.top)+i.snapElements[u].height,g<r-f||l+f<m||_<h-f||c+f<v||!T.contains(i.snapElements[u].item.ownerDocument,i.snapElements[u].item)?(i.snapElements[u].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,e,T.extend(i._uiHash(),{snapItem:i.snapElements[u].item})),i.snapElements[u].snapping=!1):("inner"!==p.snapMode&&(n=Math.abs(h-_)<=f,s=Math.abs(c-v)<=f,o=Math.abs(r-g)<=f,a=Math.abs(l-m)<=f,n&&(t.position.top=i._convertPositionTo("relative",{top:h-i.helperProportions.height,left:0}).top),s&&(t.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),o&&(t.position.left=i._convertPositionTo("relative",{top:0,left:r-i.helperProportions.width}).left),a&&(t.position.left=i._convertPositionTo("relative",{top:0,left:l}).left)),d=n||s||o||a,"outer"!==p.snapMode&&(n=Math.abs(h-v)<=f,s=Math.abs(c-_)<=f,o=Math.abs(r-m)<=f,a=Math.abs(l-g)<=f,n&&(t.position.top=i._convertPositionTo("relative",{top:h,left:0}).top),s&&(t.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),o&&(t.position.left=i._convertPositionTo("relative",{top:0,left:r}).left),a&&(t.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left)),!i.snapElements[u].snapping&&(n||s||o||a||d)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,e,T.extend(i._uiHash(),{snapItem:i.snapElements[u].item})),i.snapElements[u].snapping=n||s||o||a||d)}}),T.ui.plugin.add("draggable","stack",{start:function(e,t,i){var n,s=i.options,o=T.makeArray(T(s.stack)).sort(function(e,t){return(parseInt(T(e).css("zIndex"),10)||0)-(parseInt(T(t).css("zIndex"),10)||0)});o.length&&(n=parseInt(T(o[0]).css("zIndex"),10)||0,T(o).each(function(e){T(this).css("zIndex",n+e)}),this.css("zIndex",n+o.length))}}),T.ui.plugin.add("draggable","zIndex",{start:function(e,t,i){var n=T(t.helper),s=i.options;n.css("zIndex")&&(s._zIndex=n.css("zIndex")),n.css("zIndex",s.zIndex)},stop:function(e,t,i){var n=i.options;n._zIndex&&T(t.helper).css("zIndex",n._zIndex)}});T.ui.draggable;T.widget("ui.resizable",T.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseFloat(e)||0},_isNumber:function(e){return!isNaN(parseFloat(e))},_hasScroll:function(e,t){if("hidden"===T(e).css("overflow"))return!1;var i,n=t&&"left"===t?"scrollLeft":"scrollTop";return 0<e[n]||(e[n]=1,i=0<e[n],e[n]=0,i)},_create:function(){var e,t=this.options,i=this;this._addClass("ui-resizable"),T.extend(this,{_aspectRatio:!!t.aspectRatio,aspectRatio:t.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:t.helper||t.ghost||t.animate?t.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(T("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._proportionallyResize()),this._setupHandles(),t.autoHide&&T(this.element).on("mouseenter",function(){t.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){t.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,t=function(e){T(e).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(t(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_setOption:function(e,t){switch(this._super(e,t),e){case"handles":this._removeHandles(),this._setupHandles()}},_setupHandles:function(){var e,t,i,n,s,o=this.options,a=this;if(this.handles=o.handles||(T(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=T(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),i=this.handles.split(","),this.handles={},t=0;t<i.length;t++)n="ui-resizable-"+(e=T.trim(i[t])),s=T("<div>"),this._addClass(s,"ui-resizable-handle "+n),s.css({zIndex:o.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.append(s);this._renderAxis=function(e){var t,i,n,s;for(t in e=e||this.element,this.handles)this.handles[t].constructor===String?this.handles[t]=this.element.children(this.handles[t]).first().show():(this.handles[t].jquery||this.handles[t].nodeType)&&(this.handles[t]=T(this.handles[t]),this._on(this.handles[t],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(i=T(this.handles[t],this.element),s=/sw|ne|nw|se|n|s/.test(t)?i.outerHeight():i.outerWidth(),n=["padding",/ne|nw|n/.test(t)?"Top":/se|sw|s/.test(t)?"Bottom":/^e$/.test(t)?"Right":"Left"].join(""),e.css(n,s),this._proportionallyResize()),this._handles=this._handles.add(this.handles[t])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){a.resizing||(this.className&&(s=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=s&&s[1]?s[1]:"se")}),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(e){var t,i,n=!1;for(t in this.handles)((i=T(this.handles[t])[0])===e.target||T.contains(i,e.target))&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(e){var t,i,n,s=this.options,o=this.element;return this.resizing=!0,this._renderProxy(),t=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),s.containment&&(t+=T(s.containment).scrollLeft()||0,i+=T(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:t,top:i},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:o.width(),height:o.height()},this.originalSize=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.sizeDiff={width:o.outerWidth()-o.width(),height:o.outerHeight()-o.height()},this.originalPosition={left:t,top:i},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,n=T(".ui-resizable-"+this.axis).css("cursor"),T("body").css("cursor","auto"===n?this.axis+"-resize":n),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var t,i,n=this.originalMousePosition,s=this.axis,o=e.pageX-n.left||0,a=e.pageY-n.top||0,r=this._change[s];return this._updatePrevProperties(),r&&(t=r.apply(this,[e,o,a]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(t=this._updateRatio(t,e)),t=this._respectSize(t,e),this._updateCache(t),this._propagate("resize",e),i=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),T.isEmptyObject(i)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges())),!1},_mouseStop:function(e){this.resizing=!1;var t,i,n,s,o,a,r,l=this.options,h=this;return this._helper&&(n=(i=(t=this._proportionallyResizeElements).length&&/textarea/i.test(t[0].nodeName))&&this._hasScroll(t[0],"left")?0:h.sizeDiff.height,s=i?0:h.sizeDiff.width,o={width:h.helper.width()-s,height:h.helper.height()-n},a=parseFloat(h.element.css("left"))+(h.position.left-h.originalPosition.left)||null,r=parseFloat(h.element.css("top"))+(h.position.top-h.originalPosition.top)||null,l.animate||this.element.css(T.extend(o,{top:r,left:a})),h.helper.height(h.size.height),h.helper.width(h.size.width),this._helper&&!l.animate&&this._proportionallyResize()),T("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var t,i,n,s,o,a=this.options;o={minWidth:this._isNumber(a.minWidth)?a.minWidth:0,maxWidth:this._isNumber(a.maxWidth)?a.maxWidth:1/0,minHeight:this._isNumber(a.minHeight)?a.minHeight:0,maxHeight:this._isNumber(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||e)&&(t=o.minHeight*this.aspectRatio,n=o.minWidth/this.aspectRatio,i=o.maxHeight*this.aspectRatio,s=o.maxWidth/this.aspectRatio,t>o.minWidth&&(o.minWidth=t),n>o.minHeight&&(o.minHeight=n),i<o.maxWidth&&(o.maxWidth=i),s<o.maxHeight&&(o.maxHeight=s)),this._vBoundaries=o},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,i=this.size,n=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===n&&(e.left=t.left+(i.width-e.width),e.top=null),"nw"===n&&(e.top=t.top+(i.height-e.height),e.left=t.left+(i.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,i=this.axis,n=this._isNumber(e.width)&&t.maxWidth&&t.maxWidth<e.width,s=this._isNumber(e.height)&&t.maxHeight&&t.maxHeight<e.height,o=this._isNumber(e.width)&&t.minWidth&&t.minWidth>e.width,a=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,r=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,h=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return o&&(e.width=t.minWidth),a&&(e.height=t.minHeight),n&&(e.width=t.maxWidth),s&&(e.height=t.maxHeight),o&&h&&(e.left=r-t.minWidth),n&&h&&(e.left=r-t.maxWidth),a&&c&&(e.top=l-t.minHeight),s&&c&&(e.top=l-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var t=0,i=[],n=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],s=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];t<4;t++)i[t]=parseFloat(n[t])||0,i[t]+=parseFloat(s[t])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,t=0,i=this.helper||this.element;t<this._proportionallyResizeElements.length;t++)e=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,t=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||T("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++t.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var i=this.originalSize;return{left:this.originalPosition.left+t,width:i.width-t}},n:function(e,t,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(e,t,i){return{height:this.originalSize.height+i}},se:function(e,t,i){return T.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,t,i]))},sw:function(e,t,i){return T.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,t,i]))},ne:function(e,t,i){return T.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,t,i]))},nw:function(e,t,i){return T.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,t,i]))}},_propagate:function(e,t){T.ui.plugin.call(this,e,[t,this.ui()]),"resize"!==e&&this._trigger(e,t,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),T.ui.plugin.add("resizable","animate",{stop:function(t){var i=T(this).resizable("instance"),e=i.options,n=i._proportionallyResizeElements,s=n.length&&/textarea/i.test(n[0].nodeName),o=s&&i._hasScroll(n[0],"left")?0:i.sizeDiff.height,a=s?0:i.sizeDiff.width,r={width:i.size.width-a,height:i.size.height-o},l=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,h=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(T.extend(r,h&&l?{top:h,left:l}:{}),{duration:e.animateDuration,easing:e.animateEasing,step:function(){var e={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};n&&n.length&&T(n[0]).css({width:e.width,height:e.height}),i._updateCache(e),i._propagate("resize",t)}})}}),T.ui.plugin.add("resizable","containment",{start:function(){var i,n,e,t,s,o,a,r=T(this).resizable("instance"),l=r.options,h=r.element,c=l.containment,u=c instanceof T?c.get(0):/parent/.test(c)?h.parent().get(0):c;u&&(r.containerElement=T(u),/document/.test(c)||c===document?(r.containerOffset={left:0,top:0},r.containerPosition={left:0,top:0},r.parentData={element:T(document),left:0,top:0,width:T(document).width(),height:T(document).height()||document.body.parentNode.scrollHeight}):(i=T(u),n=[],T(["Top","Right","Left","Bottom"]).each(function(e,t){n[e]=r._num(i.css("padding"+t))}),r.containerOffset=i.offset(),r.containerPosition=i.position(),r.containerSize={height:i.innerHeight()-n[3],width:i.innerWidth()-n[1]},e=r.containerOffset,t=r.containerSize.height,s=r.containerSize.width,o=r._hasScroll(u,"left")?u.scrollWidth:s,a=r._hasScroll(u)?u.scrollHeight:t,r.parentData={element:u,left:e.left,top:e.top,width:o,height:a}))},resize:function(e){var t,i,n,s,o=T(this).resizable("instance"),a=o.options,r=o.containerOffset,l=o.position,h=o._aspectRatio||e.shiftKey,c={top:0,left:0},u=o.containerElement,d=!0;u[0]!==document&&/static/.test(u.css("position"))&&(c=r),l.left<(o._helper?r.left:0)&&(o.size.width=o.size.width+(o._helper?o.position.left-r.left:o.position.left-c.left),h&&(o.size.height=o.size.width/o.aspectRatio,d=!1),o.position.left=a.helper?r.left:0),l.top<(o._helper?r.top:0)&&(o.size.height=o.size.height+(o._helper?o.position.top-r.top:o.position.top),h&&(o.size.width=o.size.height*o.aspectRatio,d=!1),o.position.top=o._helper?r.top:0),n=o.containerElement.get(0)===o.element.parent().get(0),s=/relative|absolute/.test(o.containerElement.css("position")),n&&s?(o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top):(o.offset.left=o.element.offset().left,o.offset.top=o.element.offset().top),t=Math.abs(o.sizeDiff.width+(o._helper?o.offset.left-c.left:o.offset.left-r.left)),i=Math.abs(o.sizeDiff.height+(o._helper?o.offset.top-c.top:o.offset.top-r.top)),t+o.size.width>=o.parentData.width&&(o.size.width=o.parentData.width-t,h&&(o.size.height=o.size.width/o.aspectRatio,d=!1)),i+o.size.height>=o.parentData.height&&(o.size.height=o.parentData.height-i,h&&(o.size.width=o.size.height*o.aspectRatio,d=!1)),d||(o.position.left=o.prevPosition.left,o.position.top=o.prevPosition.top,o.size.width=o.prevSize.width,o.size.height=o.prevSize.height)},stop:function(){var e=T(this).resizable("instance"),t=e.options,i=e.containerOffset,n=e.containerPosition,s=e.containerElement,o=T(e.helper),a=o.offset(),r=o.outerWidth()-e.sizeDiff.width,l=o.outerHeight()-e.sizeDiff.height;e._helper&&!t.animate&&/relative/.test(s.css("position"))&&T(this).css({left:a.left-n.left-i.left,width:r,height:l}),e._helper&&!t.animate&&/static/.test(s.css("position"))&&T(this).css({left:a.left-n.left-i.left,width:r,height:l})}}),T.ui.plugin.add("resizable","alsoResize",{start:function(){var e=T(this).resizable("instance").options;T(e.alsoResize).each(function(){var e=T(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})})},resize:function(e,i){var t=T(this).resizable("instance"),n=t.options,s=t.originalSize,o=t.originalPosition,a={height:t.size.height-s.height||0,width:t.size.width-s.width||0,top:t.position.top-o.top||0,left:t.position.left-o.left||0};T(n.alsoResize).each(function(){var e=T(this),n=T(this).data("ui-resizable-alsoresize"),s={},t=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];T.each(t,function(e,t){var i=(n[t]||0)+(a[t]||0);i&&0<=i&&(s[t]=i||null)}),e.css(s)})},stop:function(){T(this).removeData("ui-resizable-alsoresize")}}),T.ui.plugin.add("resizable","ghost",{start:function(){var e=T(this).resizable("instance"),t=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:t.height,width:t.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),!1!==T.uiBackCompat&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=T(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=T(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),T.ui.plugin.add("resizable","grid",{resize:function(){var e,t=T(this).resizable("instance"),i=t.options,n=t.size,s=t.originalSize,o=t.originalPosition,a=t.axis,r="number"==typeof i.grid?[i.grid,i.grid]:i.grid,l=r[0]||1,h=r[1]||1,c=Math.round((n.width-s.width)/l)*l,u=Math.round((n.height-s.height)/h)*h,d=s.width+c,p=s.height+u,f=i.maxWidth&&i.maxWidth<d,m=i.maxHeight&&i.maxHeight<p,g=i.minWidth&&i.minWidth>d,v=i.minHeight&&i.minHeight>p;i.grid=r,g&&(d+=l),v&&(p+=h),f&&(d-=l),m&&(p-=h),/^(se|s|e)$/.test(a)?(t.size.width=d,t.size.height=p):/^(ne)$/.test(a)?(t.size.width=d,t.size.height=p,t.position.top=o.top-u):/^(sw)$/.test(a)?(t.size.width=d,t.size.height=p,t.position.left=o.left-c):((p-h<=0||d-l<=0)&&(e=t._getPaddingPlusBorderDimensions(this)),0<p-h?(t.size.height=p,t.position.top=o.top-u):(p=h-e.height,t.size.height=p,t.position.top=o.top+s.height-p),0<d-l?(t.size.width=d,t.position.left=o.left-c):(d=l-e.width,t.size.width=d,t.position.left=o.left+s.width-d))}});T.ui.resizable;T.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var t=T(this).css(e).offset().top;t<0&&T(this).css("top",e.top-t)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&T.fn.draggable&&this._makeDraggable(),this.options.resizable&&T.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?T(e):this.document.find(e||"body").eq(0)},_destroy:function(){var e,t=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(e=t.parent.children().eq(t.index)).length&&e[0]!==this.element[0]?e.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:T.noop,enable:T.noop,close:function(e){var t=this;this._isOpen&&!1!==this._trigger("beforeClose",e)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||T.ui.safeBlur(T.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){t._trigger("close",e)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,t){var i=!1,n=this.uiDialog.siblings(".ui-front:visible").map(function(){return+T(this).css("z-index")}).get(),s=Math.max.apply(null,n);return s>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",s+1),i=!0),i&&!t&&this._trigger("focus",e),i},open:function(){var e=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=T(T.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var e=this._focusedElement;e||(e=this.element.find("[autofocus]")),e.length||(e=this.element.find(":tabbable")),e.length||(e=this.uiDialogButtonPane.find(":tabbable")),e.length||(e=this.uiDialogTitlebarClose.filter(":tabbable")),e.length||(e=this.uiDialog),e.eq(0).trigger("focus")},_keepFocus:function(e){function t(){var e=T.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===e||T.contains(this.uiDialog[0],e)||this._focusTabbable()}e.preventDefault(),t.call(this),this._delay(t)},_createWrapper:function(){this.uiDialog=T("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===T.ui.keyCode.ESCAPE)return e.preventDefault(),void this.close(e);if(e.keyCode===T.ui.keyCode.TAB&&!e.isDefaultPrevented()){var t=this.uiDialog.find(":tabbable"),i=t.filter(":first"),n=t.filter(":last");e.target!==n[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==i[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay(function(){n.trigger("focus")}),e.preventDefault()):(this._delay(function(){i.trigger("focus")}),e.preventDefault())}},mousedown:function(e){this._moveToTop(e)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=T("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(e){T(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=T("<button type='button'></button>").button({label:T("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(e){e.preventDefault(),this.close(e)}}),e=T("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(e,"ui-dialog-title"),this._title(e),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(e){this.options.title?e.text(this.options.title):e.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=T("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=T("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var s=this,e=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),T.isEmptyObject(e)||T.isArray(e)&&!e.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(T.each(e,function(e,t){var i,n;t=T.isFunction(t)?{click:t,text:e}:t,t=T.extend({type:"button"},t),i=t.click,n={icon:t.icon,iconPosition:t.iconPosition,showLabel:t.showLabel,icons:t.icons,text:t.text},delete t.click,delete t.icon,delete t.iconPosition,delete t.showLabel,delete t.icons,"boolean"==typeof t.text&&delete t.text,T("<button></button>",t).button(n).appendTo(s.uiButtonSet).on("click",function(){i.apply(s.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var s=this,o=this.options;function a(e){return{position:e.position,offset:e.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(e,t){s._addClass(T(this),"ui-dialog-dragging"),s._blockFrames(),s._trigger("dragStart",e,a(t))},drag:function(e,t){s._trigger("drag",e,a(t))},stop:function(e,t){var i=t.offset.left-s.document.scrollLeft(),n=t.offset.top-s.document.scrollTop();o.position={my:"left top",at:"left"+(0<=i?"+":"")+i+" top"+(0<=n?"+":"")+n,of:s.window},s._removeClass(T(this),"ui-dialog-dragging"),s._unblockFrames(),s._trigger("dragStop",e,a(t))}})},_makeResizable:function(){var o=this,a=this.options,e=a.resizable,t=this.uiDialog.css("position"),i="string"==typeof e?e:"n,e,s,w,se,sw,ne,nw";function r(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:a.maxWidth,maxHeight:a.maxHeight,minWidth:a.minWidth,minHeight:this._minHeight(),handles:i,start:function(e,t){o._addClass(T(this),"ui-dialog-resizing"),o._blockFrames(),o._trigger("resizeStart",e,r(t))},resize:function(e,t){o._trigger("resize",e,r(t))},stop:function(e,t){var i=o.uiDialog.offset(),n=i.left-o.document.scrollLeft(),s=i.top-o.document.scrollTop();a.height=o.uiDialog.height(),a.width=o.uiDialog.width(),a.position={my:"left top",at:"left"+(0<=n?"+":"")+n+" top"+(0<=s?"+":"")+s,of:o.window},o._removeClass(T(this),"ui-dialog-resizing"),o._unblockFrames(),o._trigger("resizeStop",e,r(t))}}).css("position",t)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget(),this._focusedElement=T(e.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),t=T.inArray(this,e);-1!==t&&e.splice(t,1)},_trackingInstances:function(){var e=this.document.data("ui-dialog-instances");return e||(e=[],this.document.data("ui-dialog-instances",e)),e},_minHeight:function(){var e=this.options;return"auto"===e.height?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(){var e=this.uiDialog.is(":visible");e||this.uiDialog.show(),this.uiDialog.position(this.options.position),e||this.uiDialog.hide()},_setOptions:function(e){var i=this,n=!1,s={};T.each(e,function(e,t){i._setOption(e,t),e in i.sizeRelatedOptions&&(n=!0),e in i.resizableRelatedOptions&&(s[e]=t)}),n&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(e,t){var i,n,s=this.uiDialog;"disabled"!==e&&(this._super(e,t),"appendTo"===e&&this.uiDialog.appendTo(this._appendTo()),"buttons"===e&&this._createButtons(),"closeText"===e&&this.uiDialogTitlebarClose.button({label:T("<a>").text(""+this.options.closeText).html()}),"draggable"===e&&((i=s.is(":data(ui-draggable)"))&&!t&&s.draggable("destroy"),!i&&t&&this._makeDraggable()),"position"===e&&this._position(),"resizable"===e&&((n=s.is(":data(ui-resizable)"))&&!t&&s.resizable("destroy"),n&&"string"==typeof t&&s.resizable("option","handles",t),n||!1===t||this._makeResizable()),"title"===e&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var e,t,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth>n.width&&(n.width=n.minWidth),e=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),t=Math.max(0,n.minHeight-e),i="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-e):"none","auto"===n.height?this.element.css({minHeight:t,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,n.height-e)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=T(this);return T("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return!!T(e.target).closest(".ui-dialog").length||!!T(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=!0;this._delay(function(){t=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(e){t||this._allowInteraction(e)||(e.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=T("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var e=this.document.data("ui-dialog-overlays")-1;e?this.document.data("ui-dialog-overlays",e):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),!1!==T.uiBackCompat&&T.widget("ui.dialog",T.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(e,t){"dialogClass"===e&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t),this._superApply(arguments)}});T.ui.dialog;T.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,t=this.options,i=t.accept;this.isover=!1,this.isout=!0,this.accept=T.isFunction(i)?i:function(e){return e.is(i)},this.proportions=function(){if(!arguments.length)return e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});e=arguments[0]},this._addToManager(t.scope),t.addClasses&&this._addClass("ui-droppable")},_addToManager:function(e){T.ui.ddmanager.droppables[e]=T.ui.ddmanager.droppables[e]||[],T.ui.ddmanager.droppables[e].push(this)},_splice:function(e){for(var t=0;t<e.length;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var e=T.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setOption:function(e,t){if("accept"===e)this.accept=T.isFunction(t)?t:function(e){return e.is(t)};else if("scope"===e){var i=T.ui.ddmanager.droppables[this.options.scope];this._splice(i),this._addToManager(t)}this._super(e,t)},_activate:function(e){var t=T.ui.ddmanager.current;this._addActiveClass(),t&&this._trigger("activate",e,this.ui(t))},_deactivate:function(e){var t=T.ui.ddmanager.current;this._removeActiveClass(),t&&this._trigger("deactivate",e,this.ui(t))},_over:function(e){var t=T.ui.ddmanager.current;t&&(t.currentItem||t.element)[0]!==this.element[0]&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(t)))},_out:function(e){var t=T.ui.ddmanager.current;t&&(t.currentItem||t.element)[0]!==this.element[0]&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(t)))},_drop:function(t,e){var i=e||T.ui.ddmanager.current,n=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var e=T(this).droppable("instance");if(e.options.greedy&&!e.options.disabled&&e.options.scope===i.options.scope&&e.accept.call(e.element[0],i.currentItem||i.element)&&y(i,T.extend(e,{offset:e.element.offset()}),e.options.tolerance,t))return!(n=!0)}),!n&&(!!this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(i)),this.element)))},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var y=T.ui.intersect=function(){function d(e,t,i){return t<=e&&e<t+i}return function(e,t,i,n){if(!t.offset)return!1;var s=(e.positionAbs||e.position.absolute).left+e.margins.left,o=(e.positionAbs||e.position.absolute).top+e.margins.top,a=s+e.helperProportions.width,r=o+e.helperProportions.height,l=t.offset.left,h=t.offset.top,c=l+t.proportions().width,u=h+t.proportions().height;switch(i){case"fit":return l<=s&&a<=c&&h<=o&&r<=u;case"intersect":return l<s+e.helperProportions.width/2&&a-e.helperProportions.width/2<c&&h<o+e.helperProportions.height/2&&r-e.helperProportions.height/2<u;case"pointer":return d(n.pageY,h,t.proportions().height)&&d(n.pageX,l,t.proportions().width);case"touch":return(h<=o&&o<=u||h<=r&&r<=u||o<h&&u<r)&&(l<=s&&s<=c||l<=a&&a<=c||s<l&&c<a);default:return!1}}}();!(T.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,t){var i,n,s=T.ui.ddmanager.droppables[e.options.scope]||[],o=t?t.type:null,a=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();e:for(i=0;i<s.length;i++)if(!(s[i].options.disabled||e&&!s[i].accept.call(s[i].element[0],e.currentItem||e.element))){for(n=0;n<a.length;n++)if(a[n]===s[i].element[0]){s[i].proportions().height=0;continue e}s[i].visible="none"!==s[i].element.css("display"),s[i].visible&&("mousedown"===o&&s[i]._activate.call(s[i],t),s[i].offset=s[i].element.offset(),s[i].proportions({width:s[i].element[0].offsetWidth,height:s[i].element[0].offsetHeight}))}},drop:function(e,t){var i=!1;return T.each((T.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&y(e,this,this.options.tolerance,t)&&(i=this._drop.call(this,t)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,t)))}),i},dragStart:function(e,t){e.element.parentsUntil("body").on("scroll.droppable",function(){e.options.refreshPositions||T.ui.ddmanager.prepareOffsets(e,t)})},drag:function(o,a){o.options.refreshPositions&&T.ui.ddmanager.prepareOffsets(o,a),T.each(T.ui.ddmanager.droppables[o.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var e,t,i,n=y(o,this,this.options.tolerance,a),s=!n&&this.isover?"isout":n&&!this.isover?"isover":null;s&&(this.options.greedy&&(t=this.options.scope,(i=this.element.parents(":data(ui-droppable)").filter(function(){return T(this).droppable("instance").options.scope===t})).length&&((e=T(i[0]).droppable("instance")).greedyChild="isover"===s)),e&&"isover"===s&&(e.isover=!1,e.isout=!0,e._out.call(e,a)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,a),e&&"isout"===s&&(e.isout=!1,e.isover=!0,e._over.call(e,a)))}})},dragStop:function(e,t){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||T.ui.ddmanager.prepareOffsets(e,t)}})!==T.uiBackCompat&&T.widget("ui.droppable",T.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}});T.ui.droppable,T.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=T("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(e){if(void 0===e)return this.options.value;this.options.value=this._constrainedValue(e),this._refreshValue()},_constrainedValue:function(e){return void 0===e&&(e=this.options.value),this.indeterminate=!1===e,"number"!=typeof e&&(e=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,e))},_setOptions:function(e){var t=e.value;delete e.value,this._super(e),this.options.value=this._constrainedValue(t),this._refreshValue()},_setOption:function(e,t){"max"===e&&(t=Math.max(this.min,t)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,t=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).width(t.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,e===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=T("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}}),T.widget("ui.selectable",T.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var n=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){n.elementPos=T(n.element[0]).offset(),n.selectees=T(n.options.filter,n.element[0]),n._addClass(n.selectees,"ui-selectee"),n.selectees.each(function(){var e=T(this),t=e.offset(),i={left:t.left-n.elementPos.left,top:t.top-n.elementPos.top};T.data(this,"selectable-item",{element:this,$element:e,left:i.left,top:i.top,right:i.left+e.outerWidth(),bottom:i.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=T("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(i){var n=this,e=this.options;this.opos=[i.pageX,i.pageY],this.elementPos=T(this.element[0]).offset(),this.options.disabled||(this.selectees=T(e.filter,this.element[0]),this._trigger("start",i),T(e.appendTo).append(this.helper),this.helper.css({left:i.pageX,top:i.pageY,width:0,height:0}),e.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var e=T.data(this,"selectable-item");e.startselected=!0,i.metaKey||i.ctrlKey||(n._removeClass(e.$element,"ui-selected"),e.selected=!1,n._addClass(e.$element,"ui-unselecting"),e.unselecting=!0,n._trigger("unselecting",i,{unselecting:e.element}))}),T(i.target).parents().addBack().each(function(){var e,t=T.data(this,"selectable-item");if(t)return e=!i.metaKey&&!i.ctrlKey||!t.$element.hasClass("ui-selected"),n._removeClass(t.$element,e?"ui-unselecting":"ui-selected")._addClass(t.$element,e?"ui-selecting":"ui-unselecting"),t.unselecting=!e,t.selecting=e,(t.selected=e)?n._trigger("selecting",i,{selecting:t.element}):n._trigger("unselecting",i,{unselecting:t.element}),!1}))},_mouseDrag:function(n){if(this.dragged=!0,!this.options.disabled){var e,s=this,o=this.options,a=this.opos[0],r=this.opos[1],l=n.pageX,h=n.pageY;return l<a&&(e=l,l=a,a=e),h<r&&(e=h,h=r,r=e),this.helper.css({left:a,top:r,width:l-a,height:h-r}),this.selectees.each(function(){var e=T.data(this,"selectable-item"),t=!1,i={};e&&e.element!==s.element[0]&&(i.left=e.left+s.elementPos.left,i.right=e.right+s.elementPos.left,i.top=e.top+s.elementPos.top,i.bottom=e.bottom+s.elementPos.top,"touch"===o.tolerance?t=!(i.left>l||i.right<a||i.top>h||i.bottom<r):"fit"===o.tolerance&&(t=i.left>a&&i.right<l&&i.top>r&&i.bottom<h),t?(e.selected&&(s._removeClass(e.$element,"ui-selected"),e.selected=!1),e.unselecting&&(s._removeClass(e.$element,"ui-unselecting"),e.unselecting=!1),e.selecting||(s._addClass(e.$element,"ui-selecting"),e.selecting=!0,s._trigger("selecting",n,{selecting:e.element}))):(e.selecting&&((n.metaKey||n.ctrlKey)&&e.startselected?(s._removeClass(e.$element,"ui-selecting"),e.selecting=!1,s._addClass(e.$element,"ui-selected"),e.selected=!0):(s._removeClass(e.$element,"ui-selecting"),e.selecting=!1,e.startselected&&(s._addClass(e.$element,"ui-unselecting"),e.unselecting=!0),s._trigger("unselecting",n,{unselecting:e.element}))),e.selected&&(n.metaKey||n.ctrlKey||e.startselected||(s._removeClass(e.$element,"ui-selected"),e.selected=!1,s._addClass(e.$element,"ui-unselecting"),e.unselecting=!0,s._trigger("unselecting",n,{unselecting:e.element})))))}),!1}},_mouseStop:function(t){var i=this;return this.dragged=!1,T(".ui-unselecting",this.element[0]).each(function(){var e=T.data(this,"selectable-item");i._removeClass(e.$element,"ui-unselecting"),e.unselecting=!1,e.startselected=!1,i._trigger("unselected",t,{unselected:e.element})}),T(".ui-selecting",this.element[0]).each(function(){var e=T.data(this,"selectable-item");i._removeClass(e.$element,"ui-selecting")._addClass(e.$element,"ui-selected"),e.selecting=!1,e.selected=!0,e.startselected=!0,i._trigger("selected",t,{selected:e.element})}),this._trigger("stop",t),this.helper.remove(),!1}}),T.widget("ui.selectmenu",[T.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var e=this.element.uniqueId().attr("id");this.ids={element:e,button:e+"-button",menu:e+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=T()},_drawButton:function(){var e,t=this,i=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(e){this.button.focus(),e.preventDefault()}}),this.element.hide(),this.button=T("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),e=T("<span>").appendTo(this.button),this._addClass(e,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(i).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){t._rendered||t._refreshMenu()})},_drawMenu:function(){var n=this;this.menu=T("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=T("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(e,t){e.preventDefault(),n._setSelection(),n._select(t.item.data("ui-selectmenu-item"),e)},focus:function(e,t){var i=t.item.data("ui-selectmenu-item");null!=n.focusIndex&&i.index!==n.focusIndex&&(n._trigger("focus",e,{item:i}),n.isOpen||n._select(i,e)),n.focusIndex=i.index,n.button.attr("aria-activedescendant",n.menuItems.eq(i.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var e,t=this.element.find("option");this.menu.empty(),this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,t.length&&(e=this._getSelectedItem(),this.menuInstance.focus(null,e),this._setAria(e.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(e){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",e)))},_position:function(){this.menuWrap.position(T.extend({of:this.button},this.options.position))},close:function(e){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",e))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(e){var t=T("<span>");return this._setText(t,e.label),this._addClass(t,"ui-selectmenu-text"),t},_renderMenu:function(n,e){var s=this,o="";T.each(e,function(e,t){var i;t.optgroup!==o&&(i=T("<li>",{text:t.optgroup}),s._addClass(i,"ui-selectmenu-optgroup","ui-menu-divider"+(t.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),i.appendTo(n),o=t.optgroup),s._renderItemData(n,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-selectmenu-item",t)},_renderItem:function(e,t){var i=T("<li>"),n=T("<div>",{title:t.element.attr("title")});return t.disabled&&this._addClass(i,null,"ui-state-disabled"),this._setText(n,t.label),i.append(n).appendTo(e)},_setText:function(e,t){t?e.text(t):e.html("&#160;")},_move:function(e,t){var i,n,s=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),s+=":not(.ui-state-disabled)"),(n="first"===e||"last"===e?i["first"===e?"prevAll":"nextAll"](s).eq(-1):i[e+"All"](s).eq(0)).length&&this.menuInstance.focus(t,n)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(e){this[this.isOpen?"close":"open"](e)},_setSelection:function(){var e;this.range&&(window.getSelection?((e=window.getSelection()).removeAllRanges(),e.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(e){this.isOpen&&(T(e.target).closest(".ui-selectmenu-menu, #"+T.ui.escapeSelector(this.ids.button)).length||this.close(e))}},_buttonEvents:{mousedown:function(){var e;window.getSelection?(e=window.getSelection()).rangeCount&&(this.range=e.getRangeAt(0)):this.range=document.selection.createRange()},click:function(e){this._setSelection(),this._toggle(e)},keydown:function(e){var t=!0;switch(e.keyCode){case T.ui.keyCode.TAB:case T.ui.keyCode.ESCAPE:this.close(e),t=!1;break;case T.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(e);break;case T.ui.keyCode.UP:e.altKey?this._toggle(e):this._move("prev",e);break;case T.ui.keyCode.DOWN:e.altKey?this._toggle(e):this._move("next",e);break;case T.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(e):this._toggle(e);break;case T.ui.keyCode.LEFT:this._move("prev",e);break;case T.ui.keyCode.RIGHT:this._move("next",e);break;case T.ui.keyCode.HOME:case T.ui.keyCode.PAGE_UP:this._move("first",e);break;case T.ui.keyCode.END:case T.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.menu.trigger(e),t=!1}t&&e.preventDefault()}},_selectFocusedItem:function(e){var t=this.menuItems.eq(this.focusIndex).parent("li");t.hasClass("ui-state-disabled")||this._select(t.data("ui-selectmenu-item"),e)},_select:function(e,t){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=e.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(e)),this._setAria(e),this._trigger("select",t,{item:e}),e.index!==i&&this._trigger("change",t,{item:e}),this.close(t)},_setAria:function(e){var t=this.menuItems.eq(e.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(e,t){if("icons"===e){var i=this.button.find("span.ui-icon");this._removeClass(i,null,this.options.icons.button)._addClass(i,null,t.button)}this._super(e,t),"appendTo"===e&&this.menuWrap.appendTo(this._appendTo()),"width"===e&&this._resizeButton()},_setOptionDisabled:function(e){this._super(e),this.menuInstance.option("disabled",e),this.button.attr("aria-disabled",e),this._toggleClass(this.button,null,"ui-state-disabled",e),this.element.prop("disabled",e),e?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?T(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var e=this.options.width;!1!==e?(null===e&&(e=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(e)):this.button.css("width","")},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var e=this._super();return e.disabled=this.element.prop("disabled"),e},_parseOptions:function(e){var i=this,n=[];e.each(function(e,t){n.push(i._parseOption(T(t),e))}),this.items=n},_parseOption:function(e,t){var i=e.parent("optgroup");return{element:e,index:t,value:e.val(),label:e.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||e.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),T.widget("ui.slider",T.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,t,i=this.options,n=this.element.find(".ui-slider-handle"),s=[];for(t=i.values&&i.values.length||1,n.length>t&&(n.slice(t).remove(),n=n.slice(0,t)),e=n.length;e<t;e++)s.push("<span tabindex='0'></span>");this.handles=n.add(T(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){T(this).data("ui-slider-handle-index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:T.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=T("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==e.range&&"max"!==e.range||this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var t,i,n,s,o,a,r,l=this,h=this.options;return!h.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),t={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(t),n=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var t=Math.abs(i-l.values(e));(t<n||n===t&&(e===l._lastChangedValue||l.values(e)===h.min))&&(n=t,s=T(this),o=e)}),!1!==this._start(e,o)&&(this._mouseSliding=!0,this._handleIndex=o,this._addClass(s,null,"ui-state-active"),s.trigger("focus"),a=s.offset(),r=!T(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=r?{left:0,top:0}:{left:e.pageX-a.left-s.width()/2,top:e.pageY-a.top-s.height()/2-(parseInt(s.css("borderTopWidth"),10)||0)-(parseInt(s.css("borderBottomWidth"),10)||0)+(parseInt(s.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,o,i),this._animateOff=!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,i),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,i,n,s;return 1<(i=("horizontal"===this.orientation?(t=this.elementSize.width,e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)))/t)&&(i=1),i<0&&(i=0),"vertical"===this.orientation&&(i=1-i),n=this._valueMax()-this._valueMin(),s=this._valueMin()+i*n,this._trimAlignValue(s)},_uiHash:function(e,t,i){var n={handle:this.handles[e],handleIndex:e,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(n.value=void 0!==t?t:this.values(e),n.values=i||this.values()),n},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,i){var n,s=this.value(),o=this.values();this._hasMultipleValues()&&(n=this.values(t?0:1),s=this.values(t),2===this.options.values.length&&!0===this.options.range&&(i=0===t?Math.min(n,i):Math.max(n,i)),o[t]=i),i!==s&&!1!==this._trigger("slide",e,this._uiHash(t,i,o))&&(this._hasMultipleValues()?this.values(t,i):this.value(i))},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,t){var i,n,s;if(1<arguments.length)return this.options.values[e]=this._trimAlignValue(t),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!T.isArray(e))return this._hasMultipleValues()?this._values(e):this.value();for(i=this.options.values,n=e,s=0;s<i.length;s+=1)i[s]=this._trimAlignValue(n[s]),this._change(null,s);this._refreshValue()},_setOption:function(e,t){var i,n=0;switch("range"===e&&!0===this.options.range&&("min"===t?(this.options.value=this._values(0),this.options.values=null):"max"===t&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),T.isArray(this.options.values)&&(n=this.options.values.length),this._super(e,t),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(t),this.handles.css("horizontal"===t?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=n-1;0<=i;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return e=this._trimAlignValue(e)},_values:function(e){var t,i,n;if(arguments.length)return t=this.options.values[e],t=this._trimAlignValue(t);if(this._hasMultipleValues()){for(i=this.options.values.slice(),n=0;n<i.length;n+=1)i[n]=this._trimAlignValue(i[n]);return i}return[]},_trimAlignValue:function(e){if(e<=this._valueMin())return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=0<this.options.step?this.options.step:1,i=(e-this._valueMin())%t,n=e-i;return 2*Math.abs(i)>=t&&(n+=0<i?t:-t),parseFloat(n.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),i=this.options.step;(e=Math.round((e-t)/i)*i+t)>this.options.max&&(e-=i),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),i=t.indexOf(".");return-1===i?0:t.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,i,e,n,s,o=this.options.range,a=this.options,r=this,l=!this._animateOff&&a.animate,h={};this._hasMultipleValues()?this.handles.each(function(e){i=(r.values(e)-r._valueMin())/(r._valueMax()-r._valueMin())*100,h["horizontal"===r.orientation?"left":"bottom"]=i+"%",T(this).stop(1,1)[l?"animate":"css"](h,a.animate),!0===r.options.range&&("horizontal"===r.orientation?(0===e&&r.range.stop(1,1)[l?"animate":"css"]({left:i+"%"},a.animate),1===e&&r.range[l?"animate":"css"]({width:i-t+"%"},{queue:!1,duration:a.animate})):(0===e&&r.range.stop(1,1)[l?"animate":"css"]({bottom:i+"%"},a.animate),1===e&&r.range[l?"animate":"css"]({height:i-t+"%"},{queue:!1,duration:a.animate}))),t=i}):(e=this.value(),n=this._valueMin(),s=this._valueMax(),i=s!==n?(e-n)/(s-n)*100:0,h["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[l?"animate":"css"](h,a.animate),"min"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:i+"%"},a.animate),"max"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:100-i+"%"},a.animate),"min"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:i+"%"},a.animate),"max"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:100-i+"%"},a.animate))},_handleEvents:{keydown:function(e){var t,i,n,s=T(e.target).data("ui-slider-handle-index");switch(e.keyCode){case T.ui.keyCode.HOME:case T.ui.keyCode.END:case T.ui.keyCode.PAGE_UP:case T.ui.keyCode.PAGE_DOWN:case T.ui.keyCode.UP:case T.ui.keyCode.RIGHT:case T.ui.keyCode.DOWN:case T.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(T(e.target),null,"ui-state-active"),!1===this._start(e,s)))return}switch(n=this.options.step,t=i=this._hasMultipleValues()?this.values(s):this.value(),e.keyCode){case T.ui.keyCode.HOME:i=this._valueMin();break;case T.ui.keyCode.END:i=this._valueMax();break;case T.ui.keyCode.PAGE_UP:i=this._trimAlignValue(t+(this._valueMax()-this._valueMin())/this.numPages);break;case T.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(t-(this._valueMax()-this._valueMin())/this.numPages);break;case T.ui.keyCode.UP:case T.ui.keyCode.RIGHT:if(t===this._valueMax())return;i=this._trimAlignValue(t+n);break;case T.ui.keyCode.DOWN:case T.ui.keyCode.LEFT:if(t===this._valueMin())return;i=this._trimAlignValue(t-n)}this._slide(e,s,i)},keyup:function(e){var t=T(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,t),this._change(e,t),this._removeClass(T(e.target),null,"ui-state-active"))}}}),T.widget("ui.sortable",T.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t,i){return t<=e&&e<t+i},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(e,t){this._super(e,t),"handle"===e&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),T.each(this.items,function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var e=this.items.length-1;0<=e;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,t){var i=null,n=!1,s=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),T(e.target).parents().each(function(){if(T.data(this,s.widgetName+"-item")===s)return i=T(this),!1}),T.data(e.target,s.widgetName+"-item")===s&&(i=T(e.target)),!!i&&(!(this.options.handle&&!t&&(T(this.options.handle,i).find("*").addBack().each(function(){this===e.target&&(n=!0)}),!n))&&(this.currentItem=i,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,t,i){var n,s,o=this.options;if((this.currentContainer=this).refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},T.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),o.containment&&this._setContainment(),o.cursor&&"auto"!==o.cursor&&(s=this.document.find("body"),this.storedCursor=s.css("cursor"),s.css("cursor",o.cursor),this.storedStylesheet=T("<style>*{ cursor: "+o.cursor+" !important; }</style>").appendTo(s)),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),o.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(n=this.containers.length-1;0<=n;n--)this.containers[n]._trigger("activate",e,this._uiHash(this));return T.ui.ddmanager&&(T.ui.ddmanager.current=this),T.ui.ddmanager&&!o.dropBehaviour&&T.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var t,i,n,s,o=this.options,a=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<o.scrollSensitivity?this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+o.scrollSpeed:e.pageY-this.overflowOffset.top<o.scrollSensitivity&&(this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-o.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<o.scrollSensitivity?this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+o.scrollSpeed:e.pageX-this.overflowOffset.left<o.scrollSensitivity&&(this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-o.scrollSpeed)):(e.pageY-this.document.scrollTop()<o.scrollSensitivity?a=this.document.scrollTop(this.document.scrollTop()-o.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<o.scrollSensitivity&&(a=this.document.scrollTop(this.document.scrollTop()+o.scrollSpeed)),e.pageX-this.document.scrollLeft()<o.scrollSensitivity?a=this.document.scrollLeft(this.document.scrollLeft()-o.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<o.scrollSensitivity&&(a=this.document.scrollLeft(this.document.scrollLeft()+o.scrollSpeed))),!1!==a&&T.ui.ddmanager&&!o.dropBehaviour&&T.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),t=this.items.length-1;0<=t;t--)if(n=(i=this.items[t]).item[0],(s=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&!(n===this.currentItem[0]||this.placeholder[1===s?"next":"prev"]()[0]===n||T.contains(this.placeholder[0],n)||"semi-dynamic"===this.options.type&&T.contains(this.element[0],n))){if(this.direction=1===s?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(e,i),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),T.ui.ddmanager&&T.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,t){if(e){if(T.ui.ddmanager&&!this.options.dropBehaviour&&T.ui.ddmanager.drop(this,e),this.options.revert){var i=this,n=this.placeholder.offset(),s=this.options.axis,o={};s&&"x"!==s||(o.left=n.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),s&&"y"!==s||(o.top=n.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,T(this.helper).animate(o,parseInt(this.options.revert,10)||500,function(){i._clear(e)})}else this._clear(e,t);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new T.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;0<=e;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),T.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?T(this.domPosition.prev).after(this.currentItem):T(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var e=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},T(e).each(function(){var e=(T(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);e&&i.push((t.key||e[1]+"[]")+"="+(t.key&&t.expression?e[1]:e[2]))}),!i.length&&t.key&&i.push(t.key+"="),i.join("&")},toArray:function(e){var t=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},t.each(function(){i.push(T(e.item||this).attr(e.attribute||"id")||"")}),i},_intersectsWith:function(e){var t=this.positionAbs.left,i=t+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,o=e.left,a=o+e.width,r=e.top,l=r+e.height,h=this.offset.click.top,c=this.offset.click.left,u="x"===this.options.axis||r<n+h&&n+h<l,d="y"===this.options.axis||o<t+c&&t+c<a,p=u&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?p:o<t+this.helperProportions.width/2&&i-this.helperProportions.width/2<a&&r<n+this.helperProportions.height/2&&s-this.helperProportions.height/2<l},_intersectsWithPointer:function(e){var t,i,n="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),s="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);return!(!n||!s)&&(t=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection(),this.floating?"right"===i||"down"===t?2:1:t&&("down"===t?2:1))},_intersectsWithSides:function(e){var t=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),n=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return this.floating&&s?"right"===s&&i||"left"===s&&!i:n&&("down"===n&&t||"up"===n&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!==e&&(0<e?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(0<e?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(e){var t,i,n,s,o=[],a=[],r=this._connectWith();if(r&&e)for(t=r.length-1;0<=t;t--)for(i=(n=T(r[t],this.document[0])).length-1;0<=i;i--)(s=T.data(n[i],this.widgetFullName))&&s!==this&&!s.options.disabled&&a.push([T.isFunction(s.options.items)?s.options.items.call(s.element):T(s.options.items,s.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),s]);function l(){o.push(this)}for(a.push([T.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):T(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),t=a.length-1;0<=t;t--)a[t][0].each(l);return T(o)},_removeCurrentsFromItems:function(){var i=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=T.grep(this.items,function(e){for(var t=0;t<i.length;t++)if(i[t]===e.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var t,i,n,s,o,a,r,l,h=this.items,c=[[T.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):T(this.options.items,this.element),this]],u=this._connectWith();if(u&&this.ready)for(t=u.length-1;0<=t;t--)for(i=(n=T(u[t],this.document[0])).length-1;0<=i;i--)(s=T.data(n[i],this.widgetFullName))&&s!==this&&!s.options.disabled&&(c.push([T.isFunction(s.options.items)?s.options.items.call(s.element[0],e,{item:this.currentItem}):T(s.options.items,s.element),s]),this.containers.push(s));for(t=c.length-1;0<=t;t--)for(o=c[t][1],i=0,l=(a=c[t][0]).length;i<l;i++)(r=T(a[i])).data(this.widgetName+"-item",o),h.push({item:r,instance:o,width:0,height:0,left:0,top:0})},refreshPositions:function(e){var t,i,n,s;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),t=this.items.length-1;0<=t;t--)(i=this.items[t]).instance!==this.currentContainer&&this.currentContainer&&i.item[0]!==this.currentItem[0]||(n=this.options.toleranceElement?T(this.options.toleranceElement,i.item):i.item,e||(i.width=n.outerWidth(),i.height=n.outerHeight()),s=n.offset(),i.left=s.left,i.top=s.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(t=this.containers.length-1;0<=t;t--)s=this.containers[t].element.offset(),this.containers[t].containerCache.left=s.left,this.containers[t].containerCache.top=s.top,this.containers[t].containerCache.width=this.containers[t].element.outerWidth(),this.containers[t].containerCache.height=this.containers[t].element.outerHeight();return this},_createPlaceholder:function(i){var n,s=(i=i||this).options;s.placeholder&&s.placeholder.constructor!==String||(n=s.placeholder,s.placeholder={element:function(){var e=i.currentItem[0].nodeName.toLowerCase(),t=T("<"+e+">",i.document[0]);return i._addClass(t,"ui-sortable-placeholder",n||i.currentItem[0].className)._removeClass(t,"ui-sortable-helper"),"tbody"===e?i._createTrPlaceholder(i.currentItem.find("tr").eq(0),T("<tr>",i.document[0]).appendTo(t)):"tr"===e?i._createTrPlaceholder(i.currentItem,t):"img"===e&&t.attr("src",i.currentItem.attr("src")),n||t.css("visibility","hidden"),t},update:function(e,t){n&&!s.forcePlaceholderSize||(t.height()||t.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),t.width()||t.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10)))}}),i.placeholder=T(s.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),s.placeholder.update(i,i.placeholder)},_createTrPlaceholder:function(e,t){var i=this;e.children().each(function(){T("<td>&#160;</td>",i.document[0]).attr("colspan",T(this).attr("colspan")||1).appendTo(t)})},_contactContainers:function(e){var t,i,n,s,o,a,r,l,h,c,u=null,d=null;for(t=this.containers.length-1;0<=t;t--)if(!T.contains(this.currentItem[0],this.containers[t].element[0]))if(this._intersectsWith(this.containers[t].containerCache)){if(u&&T.contains(this.containers[t].element[0],u.element[0]))continue;u=this.containers[t],d=t}else this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",e,this._uiHash(this)),this.containers[t].containerCache.over=0);if(u)if(1===this.containers.length)this.containers[d].containerCache.over||(this.containers[d]._trigger("over",e,this._uiHash(this)),this.containers[d].containerCache.over=1);else{for(n=1e4,s=null,o=(h=u.floating||this._isFloating(this.currentItem))?"left":"top",a=h?"width":"height",c=h?"pageX":"pageY",i=this.items.length-1;0<=i;i--)T.contains(this.containers[d].element[0],this.items[i].item[0])&&this.items[i].item[0]!==this.currentItem[0]&&(r=this.items[i].item.offset()[o],l=!1,e[c]-r>this.items[i][a]/2&&(l=!0),Math.abs(e[c]-r)<n&&(n=Math.abs(e[c]-r),s=this.items[i],this.direction=l?"up":"down"));if(!s&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[d])return void(this.currentContainer.containerCache.over||(this.containers[d]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));s?this._rearrange(e,s,null,!0):this._rearrange(e,null,this.containers[d].element,!0),this._trigger("change",e,this._uiHash()),this.containers[d]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[d],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[d]._trigger("over",e,this._uiHash(this)),this.containers[d].containerCache.over=1}},_createHelper:function(e){var t=this.options,i=T.isFunction(t.helper)?T(t.helper.apply(this.element[0],[e,this.currentItem])):"clone"===t.helper?this.currentItem.clone():this.currentItem;return i.parents("body").length||T("parent"!==t.appendTo?t.appendTo:this.currentItem[0].parentNode)[0].appendChild(i[0]),i[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),i[0].style.width&&!t.forceHelperSize||i.width(this.currentItem.width()),i[0].style.height&&!t.forceHelperSize||i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),T.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&T.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&T.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,t,i,n=this.options;"parent"===n.containment&&(n.containment=this.helper[0].parentNode),"document"!==n.containment&&"window"!==n.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===n.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===n.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||(e=T(n.containment)[0],t=T(n.containment).offset(),i="hidden"!==T(e).css("overflow"),this.containment=[t.left+(parseInt(T(e).css("borderLeftWidth"),10)||0)+(parseInt(T(e).css("paddingLeft"),10)||0)-this.margins.left,t.top+(parseInt(T(e).css("borderTopWidth"),10)||0)+(parseInt(T(e).css("paddingTop"),10)||0)-this.margins.top,t.left+(i?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(T(e).css("borderLeftWidth"),10)||0)-(parseInt(T(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,t.top+(i?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(T(e).css("borderTopWidth"),10)||0)-(parseInt(T(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,t){t||(t=this.position);var i="absolute"===e?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&T.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(n[0].tagName);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:n.scrollTop())*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:n.scrollLeft())*i}},_generatePosition:function(e){var t,i,n=this.options,s=e.pageX,o=e.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&T.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(a[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(s=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(o=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(s=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(o=this.containment[3]+this.offset.click.top)),n.grid&&(t=this.originalPageY+Math.round((o-this.originalPageY)/n.grid[1])*n.grid[1],o=this.containment?t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-n.grid[1]:t+n.grid[1]:t,i=this.originalPageX+Math.round((s-this.originalPageX)/n.grid[0])*n.grid[0],s=this.containment?i-this.offset.click.left>=this.containment[0]&&i-this.offset.click.left<=this.containment[2]?i:i-this.offset.click.left>=this.containment[0]?i-n.grid[0]:i+n.grid[0]:i)),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():r?0:a.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:a.scrollLeft())}},_rearrange:function(e,t,i,n){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay(function(){s===this.counter&&this.refreshPositions(!n)})},_clear:function(e,t){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function s(t,i,n){return function(e){n._trigger(t,e,i._uiHash(i))}}for(this.fromOutside&&!t&&n.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||n.push(function(e){this._trigger("update",e,this._uiHash())}),this!==this.currentContainer&&(t||(n.push(function(e){this._trigger("remove",e,this._uiHash())}),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;0<=i;i--)t||n.push(s("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(s("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(i=0;i<n.length;i++)n[i].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===T.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var t=e||this;return{helper:t.helper,placeholder:t.placeholder||T([]),position:t.position,originalPosition:t.originalPosition,offset:t.positionAbs,item:t.currentItem,sender:e?e.element:null}}});function b(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}T.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var n=this._super(),s=this.element;return T.each(["min","max","step"],function(e,t){var i=s.attr(t);null!=i&&i.length&&(n[t]=i)}),n},_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",e))},mousewheel:function(e,t){if(t){if(!this.spinning&&!this._start(e))return!1;this._spin((0<t?1:-1)*this.options.step,e),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(e)},100),e.preventDefault()}},"mousedown .ui-spinner-button":function(e){var t;function i(){this.element[0]===T.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=t,this._delay(function(){this.previous=t}))}t=this.element[0]===T.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),e.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),!1!==this._start(e)&&this._repeat(null,T(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){if(T(e.currentTarget).hasClass("ui-state-active"))return!1!==this._start(e)&&void this._repeat(null,T(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&0<this.uiSpinner.height()&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(e){var t=this.options,i=T.ui.keyCode;switch(e.keyCode){case i.UP:return this._repeat(null,1,e),!0;case i.DOWN:return this._repeat(null,-1,e),!0;case i.PAGE_UP:return this._repeat(null,t.page,e),!0;case i.PAGE_DOWN:return this._repeat(null,-t.page,e),!0}return!1},_start:function(e){return!(!this.spinning&&!1===this._trigger("start",e))&&(this.counter||(this.counter=1),this.spinning=!0)},_repeat:function(e,t,i){e=e||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,t,i)},e),this._spin(t*this.options.step,i)},_spin:function(e,t){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+e*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",t,{value:i})||(this._value(i),this.counter++)},_increment:function(e){var t=this.options.incremental;return t?T.isFunction(t)?t(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),i=t.indexOf(".");return-1===i?0:t.length-i-1},_adjustValue:function(e){var t,i,n=this.options;return i=e-(t=null!==n.min?n.min:0),e=t+(i=Math.round(i/n.step)*n.step),e=parseFloat(e.toFixed(this._precision())),null!==n.max&&e>n.max?n.max:null!==n.min&&e<n.min?n.min:e},_stop:function(e){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",e))},_setOption:function(e,t){var i,n,s;if("culture"===e||"numberFormat"===e)return i=this._parse(this.element.val()),this.options[e]=t,void this.element.val(this._format(i));"max"!==e&&"min"!==e&&"step"!==e||"string"==typeof t&&(t=this._parse(t)),"icons"===e&&(n=this.buttons.first().find(".ui-icon"),this._removeClass(n,null,this.options.icons.up),this._addClass(n,null,t.up),s=this.buttons.last().find(".ui-icon"),this._removeClass(s,null,this.options.icons.down),this._addClass(s,null,t.down)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!e),this.element.prop("disabled",!!e),this.buttons.button(e?"disable":"enable")},_setOptions:b(function(e){this._super(e)}),_parse:function(e){return"string"==typeof e&&""!==e&&(e=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e),""===e||isNaN(e)?null:e},_format:function(e){return""===e?"":window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var e=this.value();return null!==e&&e===this._adjustValue(e)},_value:function(e,t){var i;""!==e&&null!==(i=this._parse(e))&&(t||(i=this._adjustValue(i)),e=this._format(i)),this.element.val(e),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:b(function(e){this._stepUp(e)}),_stepUp:function(e){this._start()&&(this._spin((e||1)*this.options.step),this._stop())},stepDown:b(function(e){this._stepDown(e)}),_stepDown:function(e){this._start()&&(this._spin((e||1)*-this.options.step),this._stop())},pageUp:b(function(e){this._stepUp((e||1)*this.options.page)}),pageDown:b(function(e){this._stepDown((e||1)*this.options.page)}),value:function(e){if(!arguments.length)return this._parse(this.element.val());b(this._value).call(this,e)},widget:function(){return this.uiSpinner}}),!1!==T.uiBackCompat&&T.widget("ui.spinner",T.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}});var w;T.ui.spinner;T.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(w=/#.*$/,function(e){var t,i;t=e.href.replace(w,""),i=location.href.replace(w,"");try{t=decodeURIComponent(t)}catch(e){}try{i=decodeURIComponent(i)}catch(e){}return 1<e.hash.length&&t===i}),_create:function(){var t=this,e=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,e.collapsible),this._processTabs(),e.active=this._initialActive(),T.isArray(e.disabled)&&(e.disabled=T.unique(e.disabled.concat(T.map(this.tabs.filter(".ui-state-disabled"),function(e){return t.tabs.index(e)}))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(e.active):this.active=T(),this._refresh(),this.active.length&&this.load(e.active)},_initialActive:function(){var i=this.options.active,e=this.options.collapsible,n=location.hash.substring(1);return null===i&&(n&&this.tabs.each(function(e,t){if(T(t).attr("aria-controls")===n)return i=e,!1}),null===i&&(i=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==i&&-1!==i||(i=!!this.tabs.length&&0)),!1!==i&&-1===(i=this.tabs.index(this.tabs.eq(i)))&&(i=!e&&0),!e&&!1===i&&this.anchors.length&&(i=0),i},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):T()}},_tabKeydown:function(e){var t=T(T.ui.safeActiveElement(this.document[0])).closest("li"),i=this.tabs.index(t),n=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case T.ui.keyCode.RIGHT:case T.ui.keyCode.DOWN:i++;break;case T.ui.keyCode.UP:case T.ui.keyCode.LEFT:n=!1,i--;break;case T.ui.keyCode.END:i=this.anchors.length-1;break;case T.ui.keyCode.HOME:i=0;break;case T.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(i);case T.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(i!==this.options.active&&i);default:return}e.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,n),e.ctrlKey||e.metaKey||(t.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===T.ui.keyCode.UP&&(e.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(e){return e.altKey&&e.keyCode===T.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===T.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,t){var i=this.tabs.length-1;for(;-1!==T.inArray((i<e&&(e=0),e<0&&(e=i),e),this.options.disabled);)e=t?e+1:e-1;return e},_focusNextTab:function(e,t){return e=this._findNextTab(e,t),this.tabs.eq(e).trigger("focus"),e},_setOption:function(e,t){"active"!==e?(this._super(e,t),"collapsible"===e&&(this._toggleClass("ui-tabs-collapsible",null,t),t||!1!==this.options.active||this._activate(0)),"event"===e&&this._setupEvents(t),"heightStyle"===e&&this._setupHeightStyle(t)):this._activate(t)},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,t=this.tablist.children(":has(a[href])");e.disabled=T.map(t.filter(".ui-state-disabled"),function(e){return t.index(e)}),this._processTabs(),!1!==e.active&&this.anchors.length?this.active.length&&!T.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=T()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=T()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var l=this,e=this.tabs,t=this.anchors,i=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(e){T(this).is(".ui-state-disabled")&&e.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){T(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return T("a",this)[0]}).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=T(),this.anchors.each(function(e,t){var i,n,s,o=T(t).uniqueId().attr("id"),a=T(t).closest("li"),r=a.attr("aria-controls");l._isLocal(t)?(s=(i=t.hash).substring(1),n=l.element.find(l._sanitizeSelector(i))):(i="#"+(s=a.attr("aria-controls")||T({}).uniqueId()[0].id),(n=l.element.find(i)).length||(n=l._createPanel(s)).insertAfter(l.panels[e-1]||l.tablist),n.attr("aria-live","polite")),n.length&&(l.panels=l.panels.add(n)),r&&a.data("ui-tabs-aria-controls",r),a.attr({"aria-controls":s,"aria-labelledby":o}),n.attr("aria-labelledby",o)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),e&&(this._off(e.not(this.tabs)),this._off(t.not(this.anchors)),this._off(i.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(e){return T("<div>").attr("id",e).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(e){var t,i,n;for(T.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1),n=0;i=this.tabs[n];n++)t=T(i),!0===e||-1!==T.inArray(n,e)?(t.attr("aria-disabled","true"),this._addClass(t,null,"ui-state-disabled")):(t.removeAttr("aria-disabled"),this._removeClass(t,null,"ui-state-disabled"));this.options.disabled=e,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===e)},_setupEvents:function(e){var i={};e&&T.each(e.split(" "),function(e,t){i[t]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(e){e.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var i,t=this.element.parent();"fill"===e?(i=t.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var e=T(this),t=e.css("position");"absolute"!==t&&"fixed"!==t&&(i-=e.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=T(this).outerHeight(!0)}),this.panels.each(function(){T(this).height(Math.max(0,i-T(this).innerHeight()+T(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.panels.each(function(){i=Math.max(i,T(this).height("").height())}).height(i))},_eventHandler:function(e){var t=this.options,i=this.active,n=T(e.currentTarget).closest("li"),s=n[0]===i[0],o=s&&t.collapsible,a=o?T():this._getPanelForTab(n),r=i.length?this._getPanelForTab(i):T(),l={oldTab:i,oldPanel:r,newTab:o?T():n,newPanel:a};e.preventDefault(),n.hasClass("ui-state-disabled")||n.hasClass("ui-tabs-loading")||this.running||s&&!t.collapsible||!1===this._trigger("beforeActivate",e,l)||(t.active=!o&&this.tabs.index(n),this.active=s?T():n,this.xhr&&this.xhr.abort(),r.length||a.length||T.error("jQuery UI Tabs: Mismatching fragment identifier."),a.length&&this.load(this.tabs.index(n),e),this._toggle(e,l))},_toggle:function(e,t){var i=this,n=t.newPanel,s=t.oldPanel;function o(){i.running=!1,i._trigger("activate",e,t)}function a(){i._addClass(t.newTab.closest("li"),"ui-tabs-active","ui-state-active"),n.length&&i.options.show?i._show(n,i.options.show,o):(n.show(),o())}this.running=!0,s.length&&this.options.hide?this._hide(s,this.options.hide,function(){i._removeClass(t.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),a()}):(this._removeClass(t.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),s.hide(),a()),s.attr("aria-hidden","true"),t.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),n.length&&s.length?t.oldTab.attr("tabIndex",-1):n.length&&this.tabs.filter(function(){return 0===T(this).attr("tabIndex")}).attr("tabIndex",-1),n.attr("aria-hidden","false"),t.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var t,i=this._findActive(e);i[0]!==this.active[0]&&(i.length||(i=this.active),t=i.find(".ui-tabs-anchor")[0],this._eventHandler({target:t,currentTarget:t,preventDefault:T.noop}))},_findActive:function(e){return!1===e?T():this.tabs.eq(e)},_getIndex:function(e){return"string"==typeof e&&(e=this.anchors.index(this.anchors.filter("[href$='"+T.ui.escapeSelector(e)+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){T.data(this,"ui-tabs-destroy")?T(this).remove():T(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var e=T(this),t=e.data("ui-tabs-aria-controls");t?e.attr("aria-controls",t).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var e=this.options.disabled;!1!==e&&(e=void 0!==i&&(i=this._getIndex(i),T.isArray(e)?T.map(e,function(e){return e!==i?e:null}):T.map(this.tabs,function(e,t){return t!==i?t:null})),this._setOptionDisabled(e))},disable:function(e){var t=this.options.disabled;if(!0!==t){if(void 0===e)t=!0;else{if(e=this._getIndex(e),-1!==T.inArray(e,t))return;t=T.isArray(t)?T.merge([e],t).sort():[e]}this._setOptionDisabled(t)}},load:function(e,n){e=this._getIndex(e);var s=this,i=this.tabs.eq(e),t=i.find(".ui-tabs-anchor"),o=this._getPanelForTab(i),a={tab:i,panel:o},r=function(e,t){"abort"===t&&s.panels.stop(!1,!0),s._removeClass(i,"ui-tabs-loading"),o.removeAttr("aria-busy"),e===s.xhr&&delete s.xhr};this._isLocal(t[0])||(this.xhr=T.ajax(this._ajaxSettings(t,n,a)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(i,"ui-tabs-loading"),o.attr("aria-busy","true"),this.xhr.done(function(e,t,i){setTimeout(function(){o.html(e),s._trigger("load",n,a),r(i,t)},1)}).fail(function(e,t){setTimeout(function(){r(e,t)},1)})))},_ajaxSettings:function(e,i,n){var s=this;return{url:e.attr("href").replace(/#.*$/,""),beforeSend:function(e,t){return s._trigger("beforeLoad",i,T.extend({jqXHR:e,ajaxSettings:t},n))}}},_getPanelForTab:function(e){var t=T(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+t))}}),!1!==T.uiBackCompat&&T.widget("ui.tabs",T.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}});T.ui.tabs;T.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var e=T(this).attr("title")||"";return T("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(e,t){var i=(e.attr("aria-describedby")||"").split(/\s+/);i.push(t),e.data("ui-tooltip-id",t).attr("aria-describedby",T.trim(i.join(" ")))},_removeDescribedBy:function(e){var t=e.data("ui-tooltip-id"),i=(e.attr("aria-describedby")||"").split(/\s+/),n=T.inArray(t,i);-1!==n&&i.splice(n,1),e.removeData("ui-tooltip-id"),(i=T.trim(i.join(" ")))?e.attr("aria-describedby",i):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=T("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=T([])},_setOption:function(e,t){var i=this;this._super(e,t),"content"===e&&T.each(this.tooltips,function(e,t){i._updateContent(t.element)})},_setOptionDisabled:function(e){this[e?"_disable":"_enable"]()},_disable:function(){var n=this;T.each(this.tooltips,function(e,t){var i=T.Event("blur");i.target=i.currentTarget=t.element[0],n.close(i,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var e=T(this);if(e.is("[title]"))return e.data("ui-tooltip-title",e.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var e=T(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))}),this.disabledTitles=T([])},open:function(e){var i=this,t=T(e?e.target:this.element).closest(this.options.items);t.length&&!t.data("ui-tooltip-id")&&(t.attr("title")&&t.data("ui-tooltip-title",t.attr("title")),t.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&t.parents().each(function(){var e,t=T(this);t.data("ui-tooltip-open")&&((e=T.Event("blur")).target=e.currentTarget=this,i.close(e,!0)),t.attr("title")&&(t.uniqueId(),i.parents[this.id]={element:this,title:t.attr("title")},t.attr("title",""))}),this._registerCloseHandlers(e,t),this._updateContent(t,e))},_updateContent:function(t,i){var e,n=this.options.content,s=this,o=i?i.type:null;if("string"==typeof n||n.nodeType||n.jquery)return this._open(i,t,n);(e=n.call(t[0],function(e){s._delay(function(){t.data("ui-tooltip-open")&&(i&&(i.type=o),this._open(i,t,e))})}))&&this._open(i,t,e)},_open:function(e,t,i){var n,s,o,a,r=T.extend({},this.options.position);function l(e){r.of=e,s.is(":hidden")||s.position(r)}i&&((n=this._find(t))?n.tooltip.find(".ui-tooltip-content").html(i):(t.is("[title]")&&(e&&"mouseover"===e.type?t.attr("title",""):t.removeAttr("title")),n=this._tooltip(t),s=n.tooltip,this._addDescribedBy(t,s.attr("id")),s.find(".ui-tooltip-content").html(i),this.liveRegion.children().hide(),(a=T("<div>").html(s.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),a.removeAttr("id").find("[id]").removeAttr("id"),a.appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:l}),l(e)):s.position(T.extend({of:t},this.options.position)),s.hide(),this._show(s,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(o=this.delayedShow=setInterval(function(){s.is(":visible")&&(l(r.of),clearInterval(o))},T.fx.interval)),this._trigger("open",e,{tooltip:s})))},_registerCloseHandlers:function(e,i){var t={keyup:function(e){if(e.keyCode===T.ui.keyCode.ESCAPE){var t=T.Event(e);t.currentTarget=i[0],this.close(t,!0)}}};i[0]!==this.element[0]&&(t.remove=function(){this._removeTooltip(this._find(i).tooltip)}),e&&"mouseover"!==e.type||(t.mouseleave="close"),e&&"focusin"!==e.type||(t.focusout="close"),this._on(!0,i,t)},close:function(e){var t,i=this,n=T(e?e.currentTarget:this.element),s=this._find(n);s?(t=s.tooltip,s.closing||(clearInterval(this.delayedShow),n.data("ui-tooltip-title")&&!n.attr("title")&&n.attr("title",n.data("ui-tooltip-title")),this._removeDescribedBy(n),s.hiding=!0,t.stop(!0),this._hide(t,this.options.hide,function(){i._removeTooltip(T(this))}),n.removeData("ui-tooltip-open"),this._off(n,"mouseleave focusout keyup"),n[0]!==this.element[0]&&this._off(n,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&T.each(this.parents,function(e,t){T(t.element).attr("title",t.title),delete i.parents[e]}),s.closing=!0,this._trigger("close",e,{tooltip:t}),s.hiding||(s.closing=!1))):n.removeData("ui-tooltip-open")},_tooltip:function(e){var t=T("<div>").attr("role","tooltip"),i=T("<div>").appendTo(t),n=t.uniqueId().attr("id");return this._addClass(i,"ui-tooltip-content"),this._addClass(t,"ui-tooltip","ui-widget ui-widget-content"),t.appendTo(this._appendTo(e)),this.tooltips[n]={element:e,tooltip:t}},_find:function(e){var t=e.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(e){e.remove(),delete this.tooltips[e.attr("id")]},_appendTo:function(e){var t=e.closest(".ui-front, dialog");return t.length||(t=this.document[0].body),t},_destroy:function(){var s=this;T.each(this.tooltips,function(e,t){var i=T.Event("blur"),n=t.element;i.target=i.currentTarget=n[0],s.close(i,!0),T("#"+e).remove(),n.data("ui-tooltip-title")&&(n.attr("title")||n.attr("title",n.data("ui-tooltip-title")),n.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!1!==T.uiBackCompat&&T.widget("ui.tooltip",T.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var e=this._superApply(arguments);return this.options.tooltipClass&&e.tooltip.addClass(this.options.tooltipClass),e}});T.ui.tooltip}),function(t,i){"function"==typeof define&&define.amd?define(["jquery"],function(e){return i(t,e)}):"object"==typeof module&&module.exports?module.exports=i(t,require("jquery")):t.jQueryBridget=i(t,t.jQuery)}(window,function(e,t){"use strict";var u=Array.prototype.slice,i=e.console,d=void 0===i?function(){}:function(e){i.error(e)};function n(h,s,c){(c=c||t||e.jQuery)&&(s.prototype.option||(s.prototype.option=function(e){c.isPlainObject(e)&&(this.options=c.extend(!0,this.options,e))}),c.fn[h]=function(e){if("string"!=typeof e)return n=e,this.each(function(e,t){var i=c.data(t,h);i?(i.option(n),i._init()):(i=new s(t,n),c.data(t,h,i))}),this;var t,o,a,r,l,n,i=u.call(arguments,1);return a=i,l="$()."+h+'("'+(o=e)+'")',(t=this).each(function(e,t){var i=c.data(t,h);if(i){var n=i[o];if(n&&"_"!=o.charAt(0)){var s=n.apply(i,a);r=void 0===r?s:r}else d(l+" is not a valid method")}else d(h+" not initialized. Cannot call methods, i.e. "+l)}),void 0!==r?r:t},o(c))}function o(e){!e||e&&e.bridget||(e.bridget=n)}return o(t||e.jQuery),n}),function(l,n){"use strict";var o,h=l.document,a=[],r={},c={},e="async"in h.createElement("script")||"MozAppearance"in h.documentElement.style||l.opera,t=l.head_conf&&l.head_conf.head||"head",u=l[t]=l[t]||function(){u.ready.apply(null,arguments)},i=1,s=2,d=3,p=4;function f(){}function m(e,t){if(e){"object"==typeof e&&(e=[].slice.call(e));for(var i=0,n=e.length;i<n;i++)t.call(e,e[i],i)}}function g(e,t){var i=Object.prototype.toString.call(t).slice(8,-1);return t!==n&&null!==t&&i===e}function v(e){return g("Function",e)}function _(e){return g("Array",e)}function y(e){(e=e||f)._done||(e(),e._done=1)}function b(e){var t,i,n,s,o={};if("object"==typeof e)for(var a in e)e[a]&&(o={name:a,url:e[a]});else o={name:(t=e,i=t.split("/"),n=i[i.length-1],s=n.indexOf("?"),-1!==s?n.substring(0,s):n),url:e};var r=c[o.name];return r&&r.url===o.url?r:c[o.name]=o}function w(e){for(var t in e=e||c)if(e.hasOwnProperty(t)&&e[t].state!==p)return!1;return!0}function x(t,e){t.state===n&&(t.state=i,t.onpreload=[],k({url:t.url,type:"cache"},function(){var e;(e=t).state=s,m(e.onpreload,function(e){e.call()})}))}function C(e,t){t=t||f,e.state!==p?e.state!==d?e.state!==i?(e.state=d,k(e,function(){e.state=p,t(),m(r[e.name],function(e){y(e)}),o&&w()&&m(r.ALL,function(e){y(e)})})):e.onpreload.push(function(){C(e,t)}):u.ready(e.name,t):t()}function k(n,t){function e(e){e=e||l.event,o.onload=o.onreadystatechange=o.onerror=null,t()}function s(e){("load"===(e=e||l.event).type||/loaded|complete/.test(o.readyState)&&(!h.documentMode||h.documentMode<9))&&(l.clearTimeout(n.errorTimeout),l.clearTimeout(n.cssTimeout),o.onload=o.onreadystatechange=o.onerror=null,t())}var o,i,a;t=t||f,"css"===(i=n.url,(a=(i=i||"").split("?")[0].split("."))[a.length-1].toLowerCase())?((o=h.createElement("link")).type="text/"+(n.type||"css"),o.rel="stylesheet",o.href=n.url,n.cssRetries=0,n.cssTimeout=l.setTimeout(function e(){if(n.state!==p&&n.cssRetries<=20){for(var t=0,i=h.styleSheets.length;t<i;t++)if(h.styleSheets[t].href===o.href)return void s({type:"load"});n.cssRetries++,n.cssTimeout=l.setTimeout(e,250)}},500)):((o=h.createElement("script")).type="text/"+(n.type||"javascript"),o.src=n.url),o.onload=o.onreadystatechange=s,o.onerror=e,o.async=!1,o.defer=!1,n.errorTimeout=l.setTimeout(function(){e({type:"timeout"})},7e3);var r=h.head||h.getElementsByTagName("head")[0];r.insertBefore(o,r.lastChild)}function D(){if(!h.body)return l.clearTimeout(u.readyTimeout),void(u.readyTimeout=l.setTimeout(D,50));o||(o=!0,function(){for(var e=h.getElementsByTagName("script"),t=0,i=e.length;t<i;t++){var n=e[t].getAttribute("data-headjs-load");if(n)return u.load(n)}}(),m(a,function(e){y(e)}))}function T(){h.addEventListener?(h.removeEventListener("DOMContentLoaded",T,!1),D()):"complete"===h.readyState&&(h.detachEvent("onreadystatechange",T),D())}if("complete"===h.readyState)D();else if(h.addEventListener)h.addEventListener("DOMContentLoaded",T,!1),l.addEventListener("load",D,!1);else{h.attachEvent("onreadystatechange",T),l.attachEvent("onload",D);var P=!1;try{P=!l.frameElement&&h.documentElement}catch(e){}P&&P.doScroll&&function t(){if(!o){try{P.doScroll("left")}catch(e){return l.clearTimeout(u.readyTimeout),void(u.readyTimeout=l.setTimeout(t,50))}D()}}()}u.load=u.js=e?function(){var e=arguments,i=e[e.length-1],n={};return v(i)||(i=null),_(e[0])?(e[0].push(i),u.load.apply(null,e[0])):(m(e,function(e,t){e!==i&&(e=b(e),n[e.name]=e)}),m(e,function(e,t){e!==i&&C(e=b(e),function(){w(n)&&y(i)})})),u}:function(){var e=arguments,t=e[e.length-1],i=[].slice.call(e,1),n=i[0];return v(t)||(t=null),_(e[0])?(e[0].push(t),u.load.apply(null,e[0])):n?(m(i,function(e){!v(e)&&e&&x(b(e))}),C(b(e[0]),v(n)?n:function(){u.load.apply(null,i)})):C(b(e[0])),u},u.test=function(e,t,i,n){var s="object"==typeof e?e:{test:e,success:!!t&&(_(t)?t:[t]),failure:!!i&&(_(i)?i:[i]),callback:n||f},o=!!s.test;return o&&s.success?(s.success.push(s.callback),u.load.apply(null,s.success)):!o&&s.failure?(s.failure.push(s.callback),u.load.apply(null,s.failure)):n(),u},u.ready=function(e,t){if(e===h)return o?y(t):a.push(t),u;if(v(e)&&(t=e,e="ALL"),_(e)){var i={};return m(e,function(e){i[e]=c[e],u.ready(e,function(){w(i)&&y(t)})}),u}if("string"!=typeof e||!v(t))return u;var n=c[e];if(n&&n.state===p||"ALL"===e&&w()&&o)return y(t),u;var s=r[e];return s?s.push(t):s=r[e]=[t],u},u.ready(h,function(){w()&&m(r.ALL,function(e){y(e)}),u.feature&&u.feature("domloaded",!0)})}(window);var lib={guest:["js/lib-guest-a02d0cc4ab.js"],manager:["js/lib-manager-1fcb962db5.js"],affiliate:["js/lib-affiliate-b920184a0b.js"]},libnopack={manager:["js/libnopack-manager-741be2fd58.js"],guest:["js/libnopack-guest-741be2fd58.js"],affiliate:["js/libnopack-affiliate-741be2fd58.js"]},app={guest:["js/app-guest-24b106de92.js"],manager:["js/app-manager-e8aa125827.js"],affiliate:["js/app-affiliate-52139db087.js"]},omarsysConfig=function(){"use strict";var e=function(e){return e};return{dashboardRoute:"dashboard",apiUrl:"http://"+location.hostname,apiEntityNamespace:"Omarsys\\V1\\Entity\\",trackingUrl:"http://"+location.hostname+"/tracking.php",oauth:{clients:{omarsys:"cha44liates2014",google:"679252526652-abg5bgvc3u3l0is0mqlkulph40k8sicu.apps.googleusercontent.com"},url:"http://"+location.hostname+"/oauth"},registerSubAffiliateUrl:"https://"+location.hostname+"/g/register/affcode=",guestHeaderTemplate:"/shared/partials/headers/cherryaffiliates-login.tpl.html",menuHeaderTemplate:"/shared/partials/headers/cherryaffiliates.tpl.html",menuHeaderMobileTemplate:"/shared/partials/headers/cherryaffiliates-mobile.tpl.html",systemName:"CherryAffiliates",html5OnLoadScript:"https://d299w2qiivv6r1.cloudfront.net/scripts/onLoad.js",rotatingMediaScript:"https://d299w2qiivv6r1.cloudfront.net/scripts/rotatingMedia.js",rotatingMediaCss:"https://d299w2qiivv6r1.cloudfront.net/scripts/rotatingMedia.css",countries:[{key:"cz",item:e("Ceska Republika")},{key:"de",item:e("Germany")},{key:"en",item:e("UK")},{key:"no",item:e("Norway")},{key:"fi",item:e("Finland")},{key:"sv",item:e("Sweden")}],gender:[{key:"m",item:e("Male")},{key:"f",item:e("Female")}],noDataFoundMessage:"- no matching records found -",maxUploadFileSizeMb:8,currencySign:"€",dashboard:{map:{region:null}},apiDoc:"/api/omarsys/doc",imClients:[{key:"gtalk",item:e("Google Talk")},{key:"msn",item:e("MSN")},{key:"skype",item:e("Skype")},{key:"telegram",item:e("Telegram")},{key:"qq",item:e("QQ")},{key:"wechat",item:e("WeChat")},{key:"whatsapp",item:e("WhatsApp")},{key:"yim",item:e("Yahoo! Messenger")},{key:"line",item:e("Line messenger")}],cpaCriteria:[{key:"Deposit",item:e("Deposit"),disabled:!0},{key:"Net_Revenue",item:e("Net Revenue"),disabled:!0},{key:"Turnover",item:e("Turnover"),disabled:!0},{key:"Registration",item:e("Registration"),disabled:!0}],revShareCriteria:[{key:"Net_Revenue",item:e("Net Revenue")},{key:"Revenue_After_Tax",item:e("Revenue After Tax")},{key:"Turnover",item:e("Turnover")},{key:"Net_Game_Win",item:e("Net Game Win")}],subRevShareCriteria:[{key:"Net_Revenue",item:e("Net Revenue")},{key:"Revenue_Share",item:e("Revenue Share")},{key:"CPA",item:e("CPA")},{key:"Commission",item:e("Revenue Share + CPA")},{key:"Sub_Affiliation",item:e("Sub Affiliation")}],boosterCriteria:[{key:"FTD",item:e("First Time Deposit")},{key:"NDC",item:e("New Depositing Customer")},{key:"Active_Customer",item:e("Active Customer")}],vatStatus:[{key:0,item:e("Not registered")},{key:1,item:e("Registered")}],invoice:[{key:!1,item:e("I will issue and send the Invoice myself")},{key:!0,item:e("Issue a Self-Billed Invoice on my behalf")}],euZone:[{key:!1,item:e("Non EU")},{key:!0,item:e("EU")}],mediaTypes:{bannerflow:e("BannerFlow"),image:e("Image banners"),flash:e("Flash banners"),text_links:e("Text links"),landing_page:e("Landing page"),write_up:e("Write up"),html_mailer:e("HTML Mailer"),game:e("Game"),html5banner:e("HTML5 banner"),rotating_media:e("Rotating media"),geotargeted_media:e("Geotargeted media"),external:e("3rd party media")},mediaTypeItems:[{key:"bannerflow",item:e("BannerFlow")},{key:"image",item:e("Image banners")},{key:"flash",item:e("Flash banners")},{key:"text_links",item:e("Text links")},{key:"landing_page",item:e("Landing page")},{key:"write_up",item:e("Write up")},{key:"html_mailer",item:e("HTML Mailer")},{key:"game",item:e("Game")},{key:"html5banner",item:e("HTML5 banner")},{key:"rotating_media",item:e("Rotating media")},{key:"geotargeted_media",item:e("Geotargeted media")},{key:"external",item:e("3rd party media")}],mediaAvailabilityTypes:[{key:"global",item:e("Global")},{key:"restricted",item:e("Restricted")},{key:"unavailable",item:e("Unavailable")},{key:"hidden",item:e("Hidden")}],mediaSizeRelated:["bannerflow","image","flash","html5banner","rotating_media","geotargeted_media"],activeMedia:[{key:!0,item:e("Active media")}],mediaAllowedWithinJoinableMedia:["bannerflow","image","flash","html5banner","text_links"],aclPermissionsOrder:["Affiliate XML feed","Eventtracking pixel","Deposits","Withdrawals","Bonuses","Turnover","Gross Revenue","Net Game Win","Tax","Revenue after tax","Adjustments","Fees","Net Revenue","CPA Amount","CPA Triggered","CPA Level Triggered","Revenue Share – Revenue Share, Booster %","Licence"],groupAffiliatesTypesDict:{STATIC:1,DYNAMIC:2,DATA_GROUP:3},groupAffiliatesTypes:[{key:1,item:e("Static")},{key:2,item:e("Dynamic")},{key:3,item:e("Data group")},{key:4,item:e("Cap group")}],groupAffiliatesTypeNames:{1:e("Static"),2:e("Dynamic"),3:e("Data group"),4:e("Cap group")},groupTimePeriods:{lifetime:e("Lifetime"),monthly:e("Monthly")},masterManagerRoleId:1,managerStatuses:[{key:2,item:e("Active")},{key:3,item:e("Blocked")},{key:5,item:e("Expired")}],blockedStatus:3,AffiliateGroupConjuctions:[{key:"and",item:e("And")},{key:"or",item:e("Or")}],AffiliateGroupComparisons:[{key:"=",item:"="},{key:"<=",item:"<="},{key:">=",item:">="},{key:"<",item:"<"},{key:">",item:">"}],AffiliateGroupCriterions:[{key:"netRev",item:e("Net revenue")},{key:"grossRev",item:e("Revenue after tax")},{key:"deposit",item:e("Deposit")},{key:"registration",item:e("Registration")}],AlertDefinitionCriteria:[{key:"cpaTriggered",item:e("CPA triggered")},{key:"shareRevenueGenerated",item:e("Revenue share generated")},{key:"affiliateNetRevenueGenerated",item:e("Affiliate Net Revenue generated")},{key:"affiliateGrossRevenueGenerated",item:e("Affiliate Revenue after tax generated")},{key:"customerNetRevenueGenerated",item:e("Customer Net Revenue generated")},{key:"customerGrossRevenueGenerated",item:e("Customer Revenue after tax generated")}],landingPageStatuses:{enabled:e("Enabled"),disabled:e("Disabled")},affiliateStatus:{pending:1,active:2,banned:3,rejected:4,expired:5,archived:6},affiliateStatusNames:{1:e("Pending"),2:e("Active"),3:e("Banned"),4:e("Rejected"),5:e("Expired"),6:e("Archived")},adminFeeTypes:[{value:1,name:e("Admin Fee")}],adminFeePriorities:[{value:null,name:e("Specified country before specified brand-product")},{value:"1",name:e("Specified brand-product before specified country")}],adminFeeDeductionBase:{net:e("Net Revenue"),origin:e("Gross Revenue"),withdrawal:e("Withdrawal"),deposit:e("Deposit"),ngw:e("Net Game Win")},adminFeeAffiliateStrategies:{exclude:{label:e("Exclude affiliates from fee"),shortlabel:e("Excluded"),value:"exclude"},include:{label:e("Apply fee to these affiliates only"),shortlabel:e("Included"),value:"include"}},backendCacheLifetime:3600,affiliateStatsRefresh:18e4,managerStatsRefresh:18e4,maxDirectRows:3e4,channelCategories:[{key:1,item:e("All/General")},{key:2,item:e("Casino")},{key:3,item:e("Games")},{key:4,item:e("Poker")},{key:5,item:e("Sports - Horse Racing")},{key:6,item:e("Sports - Other")},{key:7,item:e("Sports - Soccer")}],channelTypes:[{key:1,item:e("Blog")},{key:2,item:e("Directory")},{key:3,item:e("E-Newsletter E-Mail")},{key:4,item:e("Portal")},{key:5,item:e("Website")}],fixedSumTypes:[{key:1,item:e("Tenancy Fee")},{key:2,item:e("Advertising")},{key:3,item:e("Media")},{key:4,item:e("Sponsorship")},{key:5,item:e("Adjustment")},{key:6,item:e("Networks")}],fixedSumStatusNames:{1:e("Active"),2:e("Inactive"),3:e("Expired")},fixedSumStatus:{active:1,inactive:2,expired:3,deleted:4},paymentMethods:[{key:"bank_wire_transfer",item:e("Bank Wire Transfer")},{key:"skrill",item:e("Skrill")},{key:"neteller",item:e("Neteller")},{key:"generic",item:e("Generic")}],deviceTypes:[{key:4,item:e("AppView")},{key:5,item:e("WebView")},{key:6,item:e("MobileView")}],paymentStatuses:[{key:"Pending",item:e("Pending")},{key:"Authorized",item:e("Authorized")},{key:"Issued",item:e("Issued")},{key:"Paid",item:e("Paid")},{key:"Failed",item:e("Failed")},{key:"Rolled Over",item:e("Rolled Over")}],messagingStatusNames:{messageInboxUnread:1,messageInboxRead:2,messageInboxReplied:3,messageInboxRepliedUnread:4,messageSentSent:5,messageDeletedUnread:6,messageDeletedRead:7,messageDeletedRepliedRead:8,messageDeletedRepliedUnread:9,messageDeletedPermanently:10},deleteStatuses:[6,7,8,9,10],messagingStatuses:[{key:1,item:"message_inbox_unread",icon:"fa-envelope",text:"bold"},{key:2,item:"message_inbox_read",icon:"fa-envelope-o",text:"normal"},{key:3,item:"message_inbox_replied",icon:"fa-envelope-o",text:"normal"},{key:4,item:"message_inbox_replied_unread",icon:"fa-envelope",text:"bold"},{key:5,item:"message_sent_sent",icon:"fa-envelope-o",text:"normal"},{key:6,item:"message_deleted_unread",icon:"fa-envelope-o",text:"normal"},{key:7,item:"message_deleted_read",icon:"fa-envelope",text:"normal"},{key:8,item:"message_deleted_replied_read",icon:"fa-envelope-o",text:"normal"},{key:9,item:"message_deleted_replied_unread",icon:"fa-envelope",text:"bold"}],messagingReplyStatus:{replied:{icon:"fa-arrow-up text-success"},unreplied:{icon:"fa-arrow-down text-danger"}},rewardPlanMinWageringAmount:1,recipientsTypes:{allAffiliates:e("All Affiliates"),affiliateGroup:e("Affiliates from Group"),selectedAffiliates:e("Selected Affiliates")},auditLogTypes:[{key:"entity created",item:e("entity created")},{key:"entity deleted",item:e("entity deleted")},{key:"entity updated",item:e("entity updated")},{key:"snapshot created",item:e("snapshot created")},{key:"snapshot rejected",item:e("snapshot rejected")},{key:"snapshot updated",item:e("snapshot updated")}],trackingApiEndpointUrl:"//staging-eventtracking-api.omarsys.com",features:[{name:"tracking",enabled:!0}],savedReports:{thresholdUnit:"days",thresholdValue:30},kycProgram:{verificationProcessStatuses:{null:e("Not Requested"),0:e("Requested"),2:e("Approved"),"-1":e("Failed"),3:e("Excluded")},attemptVerificationStatus:{0:e("Pending Review"),1:e("Approved"),"-1":e("Rejected")},interactionNames:{level_requested:e("Level Requested"),level_approved:e("Level Approved"),level_failed:e("Level Failed"),level_excluded:e("Level Excluded"),level_verification_approved:e("Verification Approved"),level_verification_created:e("Verification Provided"),level_verification_failed:e("Verification Failed"),level_verification_files_deleted:e("Verification Files Deleted")}},locationsToFeatureFlexibleFilter:["/m/report/admin/affiliate"],notificationTypes:{brandRewardPlanChanged:"Brand reward plan changed",largeWinnerPolicy:"Large winner policy",importRegistrationActivityError:"Import registration activity error",monthApproved:"Month approved",reportReady:"Report ready",affiliateFtdTargetReached:"Affiliate FTD target reached",cpaCapAlmostReached:"Cpa cap almost reached",gdprRevoked:"GDPR consent revoked"},groupPermissions:{dashboard:{title:e("Dashboard")},brandProduct:{title:e("Brand/Product")},account:{title:e("Account")},affiliate:{title:e("Affiliate")},affiliateAlias:{title:e("Affiliate: Alias")},affiliatePendingChanges:{title:e("Affiliate: Pending changes")},affiliateGroup:{title:e("Affiliate: Groups")},customerPendingChanges:{title:e("Customer: Pending changes")},communication:{title:e("Communication")},adminReports:{title:e("Admin reports")},affiliateReports:{title:e("Affiliate reports")},reportColumns:{title:e("Report columns")},media:{title:e("Media")},imageLibrary:{title:e("Image library")},document:{title:e("Document")},payments:{title:e("Payments")},reward:{title:e("Reward")},help:{title:e("Help (Faq)")},settingsGeneral:{title:e("Settings: General")},settingsUserRole:{title:e("Settings: User roles")},permissions:{title:e("Settings: Permissions")},settingsManager:{title:e("Settings: Managers")},settingsPendingChanges:{title:e("Settings: Pending changes")},settingsHistory:{title:e("Settings: History")},settingsAffiliatePlanAlerts:{title:e("Settings: Affiliate plans alerts")},settingsRetagging:{title:e("Settings: Retagging")},settingsAdminFee:{title:e("Settings: Fees")},settingsInvoice:{title:e("Settings: Invoice template")},settingsTaxRate:{title:e("Settings: VAT/GST")},settingsEmail:{title:e("Settings: email")},tax:{title:e("Taxes")},currency:{title:e("Currencies")},country:{title:e("Countries")},licence:{title:e("Licence")},emailHistory:{title:e("Email History")},brand:{title:e("Brand")},product:{title:e("Product")},tools:{title:e("Tools")},eventTracking:{title:e("Event tracking")},operation:{title:e("Operations")},kya:{title:e("KYA")},kycProgram:{title:e("Due Diligence")},bulk:{title:e("Bulk")}},sectionsToGroupPermission:{account:"account",aclPermission:"permissions",affiliate:"affiliate","affiliate.fetchAll":"affiliate",pendingAffiliate:"affiliate","affiliate.capSection":"affiliate",affiliateAlias:"affiliateAlias",affiliateDocument:"document",affiliateSnapshot:"affiliatePendingChanges",affiliateWhitelistIP:"affiliateAliasIp",paymentInformation:"affiliate",alert:"reward",alertDefinition:"settingsAffiliatePlanAlerts",auditLog:"settingsHistory",auditLogObject:"settingsHistory",brand:"brand",brandProduct:"brandProduct",channel:"affiliate",rewardPlan:"reward",rewardPlanAssignation:"reward",rewardPlanSnapshot:"reward",changeChannelRewardPlanSnapshot:"affiliatePendingChanges",changeSubAffiliationRewardPlanSnapshot:"affiliatePendingChanges",changeCustomerRewardPlanSnapshot:"customerPendingChanges",changeCustomerAffiliateSnapshot:"customerPendingChanges",communication:"communication",dashboard:"dashboard",endOfMonthProcedure:"payments",endOfMonthProcedureHistory:"payments",faqTopic:"help",fixedReward:"reward",groupAffiliate:"affiliateGroup",landingPage:"media",manager:"settingsManager",managerRole:"settingsUserRole",media:"media",mediaSpace:"media",mediaImage:"imageLibrary",payment:"payments",product:"product",subProduct:"brandProduct","payment.invoice":"settingsGeneral",preference:"settingsGeneral","generate.report":"settingsGeneral",propertyGroup:"settingsPendingChanges",reimport:"tools",recalculate:"tools",regenerate:"tools",resync:"tools",remark:"affiliate","report.admin":"adminReports","report.affiliate":"affiliateReports","report.column":"reportColumns",retagging:"settingsRetagging",eventTracking:"eventTracking",adminFee:"settingsAdminFee",email:"settingsEmail",bulkAccount:"affiliate",tax:"tax",currency:"currency",country:"country",emailHistory:"emailHistory",operation:"operation",kycProgram:"kycProgram",invoiceSetting:"settingsInvoice",taxRate:"settingsTaxRate",mediaTag:"media",licence:"licence",bulk:"bulk",kya:"kya"},aclPermissions:{dashboard:{topAffiliates:"dashboard.topAffiliates",productStatsForMonthToDate:"dashboard.productStatsForMonthToDate",numericStats:"dashboard.numericStats",commissionAndRevenueForRange:"dashboard.commissionAndRevenueForRange",topCustomers:"dashboard.topCustomers",customerActivity:"dashboard.customerActivity",clicksImpressionsFtdSu:"dashboard.clicksImpressionsFtdSu",countriesStats:"dashboard.countriesStats",comparisonStats:"dashboard.comparisonStats",kpis:"dashboard.kpis",cacheStats:"dashboard.cacheStats"},paymentInformation:{create:"paymentInformation.create",fetch:"paymentInformation.fetch",fetchAll:"paymentInformation.fetchAll",update:"paymentInformation.update",delete:"paymentInformation.delete"},apiDocumentation:{fetch:"api.doc.fetch"},customerActivity:{fetchAll:"customerActivity.fetchAll"},account:{fetchAll:"account.fetchAll",create:"account.create",me:"account.me"},adminFee:{fetchAll:"adminFee.fetchAll",fetch:"adminFee.fetch",create:"adminFee.create",update:"adminFee.update",delete:"adminFee.delete"},tax:{fetchAll:"tax.fetchAll",fetch:"tax.fetch",create:"tax.create",update:"tax.update",delete:"tax.delete"},alert:{fetchAll:"alert.fetchAll"},affiliateSnapshot:{fetchAll:"affiliateSnapshot.fetchAll",fetch:"affiliateSnapshot.fetch",approve:"affiliateSnapshot.approve",reject:"affiliateSnapshot.reject"},rewardPlanSnapshot:{fetchAll:"rewardPlanSnapshot.fetchAll",fetch:"rewardPlanSnapshot.fetch",approve:"rewardPlanSnapshot.approve",reject:"rewardPlanSnapshot.reject"},changeChannelRewardPlanSnapshot:{fetchAll:"changeChannelRewardPlanSnapshot.fetchAll",approve:"changeChannelRewardPlanSnapshot.approve",reject:"changeChannelRewardPlanSnapshot.reject"},changeSubAffiliationRewardPlanSnapshot:{fetchAll:"changeSubAffiliationRewardPlanSnapshot.fetchAll",approve:"changeSubAffiliationRewardPlanSnapshot.approve",reject:"changeSubAffiliationRewardPlanSnapshot.reject"},changeCustomerRewardPlanSnapshot:{fetchAll:"changeCustomerRewardPlanSnapshot.fetchAll",approve:"changeCustomerRewardPlanSnapshot.approve",reject:"changeCustomerRewardPlanSnapshot.reject"},changeCustomerAffiliateSnapshot:{fetchAll:"changeCustomerAffiliateSnapshot.fetchAll",approve:"changeCustomerAffiliateSnapshot.approve",reject:"changeCustomerAffiliateSnapshot.reject"},licence:{fetch:"licence.fetch",create:"licence.create",update:"licence.update",delete:"licence.delete"},affiliate:{fetchAll:"affiliate.fetchAll",create:"affiliate.create",update:"affiliate.update",updateContactManager:"affiliate.updateContactManager",updateTrafficAttribution:"affiliate.updateTrafficAttribution",patch:"affiliate.patch",fetch:"affiliate.fetch",archival:"affiliate.archival",downloadCsv:"affiliate.downloadCsv",impersonate:"affiliate.impersonate",fetchContact:"affiliate.fetchContact",listEmail:"affiliate.fetchAll.email",licenceAssign:"affiliate.licenceAssign",licenceRevoke:"affiliate.licenceRevoke"},affiliateAlias:{fetchAll:"affiliateAlias.fetchAll",fetch:"affiliateAlias.fetch",create:"affiliateAlias.create",update:"affiliateAlias.update",delete:"affiliateAlias.delete"},bulkAccount:{create:"bulkAccount.create"},affiliateWhitelistIP:{fetchAll:"affiliateWhitelistIP.fetchAll",fetch:"affiliateWhitelistIP.fetch",create:"affiliateWhitelistIP.create",update:"affiliateWhitelistIP.update",delete:"affiliateWhitelistIP.delete"},groupAffiliate:{fetchAll:"groupAffiliate.fetchAll",fetch:"groupAffiliate.fetch",create:"groupAffiliate.create",delete:"groupAffiliate.delete",update:"groupAffiliate.update"},communication:{create:"communication.create",fetch:"communication.fetch",update:"communication.update",detele:"communication.delete",fetchAll:"communication.fetchAll"},customer:{update:"customer.update",fetchAll:"customer.fetchAll"},email:{fetch:"email.fetch",update:"email.update",fetchAll:"email.fetchAll"},emailHistory:{fetch:"emailHistory.fetch",fetchAll:"emailHistory.fetchAll"},report:{admin:{affiliate:"report.admin.affiliate",channels:"report.admin.channels",customer:"report.admin.customer",dynamicVariables:"report.admin.dynamicVariables",financial:"report.admin.financial",media:"report.admin.media",affiliateSubcommission:"report.admin.affiliateSubcommission",commission:"report.admin.commission"},affiliate:{media:"report.affiliate.media",dynamicVariables:"report.affiliate.dynamicVariables",performance:"report.affiliate.performance",channels:"report.affiliate.channels",earnings:"report.affiliate.earnings",subAffiliate:"report.affiliate.subAffiliate"},column:{adjustments:"report.column.adjustments",bonuses:"report.column.bonuses",cpaAmount:"report.column.cpaAmount",cpaTriggered:"report.column.cpaTriggered",cpaLevelTriggered:"report.column.cpaLevelTriggered",deposits:"report.column.deposits",grossRev:"report.column.grossRev",netGameWin:"report.column.netGameWin",originRev:"report.column.originRev",revenueAfterTax:"report.column.grossRev",netRev:"report.column.netRev",fees:"report.column.fees",revShare:"report.column.revShare",turnover:"report.column.turnover",withdrawals:"report.column.withdrawals",tax:"report.column.tax"}},media:{fetchAll:"media.fetchAll",create:"media.create",update:"media.update",fetch:"media.fetch",rotateMediaCreate:"media.rotateMediaCreate",rotateMediaUpdate:"media.rotateMediaUpdate",decode:"mediaTag.decode"},mediaSpace:{fetchAll:"mediaSpace.fetchAll",create:"mediaSpace.create",update:"mediaSpace.update",delete:"mediaSpace.delete",fetch:"mediaSpace.fetch"},mediaAffiliate:{fetchAll:"mediaAffiliate.fetchAll"},subProduct:{fetchAll:"subProduct.fetchAll"},landingPage:{fetch:"landingPage.fetch",fetchAll:"landingPage.fetchAll",create:"landingPage.create",update:"landingPage.update",delete:"landingPage.delete"},affiliateDocument:{fetchAll:"affiliateDocument.fetchAll",create:"affiliateDocument.create",update:"affiliateDocument.update",fetch:"affiliateDocument.fetch",delete:"affiliateDocument.delete"},payment:{fetchAll:"payment.fetchAll",fetch:"payment.fetch",patch:"payment.patch",invoice:"payment.invoice",invoiceTemplate:"payment.invoice.template"},endOfMonthProcedure:{run:"endOfMonthProcedure.run",fetchAll:"endOfMonthProcedure.fetchAll"},endOfMonthProcedureHistory:{fetchAll:"endOfMonthProcedureHistory.fetchAll",create:"endOfMonthProcedure.create"},channel:{fetchAll:"channel.fetchAll",fetch:"channel.fetch",create:"channel.create",update:"channel.update",delete:"channel.delete"},reward:{delete:"rewardPlan.delete",fetch:"rewardPlan.fetch",fetchAll:"rewardPlan.fetchAll",create:"rewardPlan.create",update:"rewardPlan.update"},rewardPlanAssignation:{update:"rewardPlanAssignation.update",updateManagedAffiliates:"rewardPlanAssignation.updateManagedAffiliates"},fixedReward:{fetch:"fixedReward.fetch",fetchAll:"fixedReward.fetchAll",delete:"fixedReward.delete",create:"fixedReward.create",update:"fixedReward.update",patch:"fixedReward.patch"},faqTopic:{fetch:"faqTopic.fetch",fetchAll:"faqTopic.fetchAll",create:"faqTopic.create",update:"faqTopic.update",delete:"faqTopic.delete"},preference:{fetch:"preference.fetch",fetchAll:"preference.fetchAll",patch:"preference.patch"},country:{fetchAll:"country.fetchAll",fetch:"country.fetch",update:"country.update"},currency:{fetchAll:"currency.fetchAll",fetch:"currency.fetch",update:"currency.update"},managerRole:{fetch:"managerRole.fetch",fetchAll:"managerRole.fetchAll",create:"managerRole.create",update:"managerRole.update",delete:"managerRole.delete"},aclPermission:{fetchAll:"aclPermission.fetchAll",update:"aclPermission.update"},manager:{fetch:"manager.fetch",fetchAll:"manager.fetchAll",create:"manager.create",update:"manager.update"},propertyGroup:{fetchAll:"propertyGroup.fetchAll",update:"propertyGroup.update"},reimport:{create:"reimport.create"},recalculate:{create:"recalculate.create"},resync:{create:"resync.create"},regenerate:{create:"regenerate.create"},generate:{report:{commission:"generate.report.commission"}},auditLog:{fetchAll:"auditLog.fetchAll"},auditLogObject:{fetch:"auditLogObject.fetch"},alertDefinition:{fetch:"alertDefinition.fetch",fetchAll:"alertDefinition.fetchAll",create:"alertDefinition.create",update:"alertDefinition.update",delete:"alertDefinition.delete"},remark:{fetchAll:"remark.fetchAll",create:"remark.create",update:"remark.update",delete:"remark.delete"},product:{fetch:"product.fetch",fetchAll:"product.fetchAll",create:"product.create",update:"product.update",delete:"product.delete"},brand:{fetch:"brand.fetch",fetchAll:"brand.fetchAll",create:"brand.create",update:"brand.update",delete:"brand.delete",hide:"brand.hide",viewHidden:"brand.viewHidden"},brandProduct:{fetchAll:"brandProduct.fetchAll",create:"brandProduct.create",update:"brandProduct.update",delete:"brandProduct.delete"},retagging:{run:"retagging.run"},eventTracking:{schemaVisitorManage:"eventTracking.schemaVisitorManage",schemaEventManage:"eventTracking.schemaEventManage",triggersReview:"eventTracking.triggersReview",report:"eventTracking.report",affiliatePixel:"eventTracking.affiliatePixel"},mediaImage:{fetchAll:"mediaImage.fetchAll",create:"mediaImage.create",update:"mediaImage.update",fetch:"mediaImage.fetch",delete:"mediaImage.delete"},operation:{fetch:"operation.fetch",fetchAll:"operation.fetchAll"},paymentType:{fetchAll:"paymentType.fetchAll",create:"paymentType.create",update:"paymentType.update",fetch:"paymentType.fetch",delete:"paymentType.delete"},export:{create:"export.create"},pendingAffiliate:{fetchAll:"pendingAffiliate.fetchAll"},kycProgram:{edit:"kycProgram.edit",viewFiles:"kycProgram.viewFiles"},invoiceSetting:{fetchAll:"invoiceSetting.fetchAll",update:"invoiceSetting.update",preview:"invoiceSetting.preview"},taxRate:{fetchAll:"taxRate.fetchAll",fetch:"taxRate.fetch",create:"taxRate.create",update:"taxRate.update",delete:"taxRate.delete"},bulk:{affiliateArchive:"bulk.affiliateArchive",customerRewardPlan:"bulk.customerRewardPlan",channelRewardPlan:"bulk.channelRewardPlan",affiliateTrafficRedirection:"bulk.affiliateTrafficRedirection",affiliateUpdateContactManager:"bulk.affiliateUpdateContactManager"}},aclMultiPermissions:{affiliateAliasUpdate:[function(){return omarsysConfig.aclPermissions.affiliateAlias.fetch},function(){return omarsysConfig.aclPermissions.affiliateAlias.update}],affiliateGroupUpdate:[function(){return omarsysConfig.aclPermissions.affiliate.fetchAll},function(){return omarsysConfig.aclPermissions.groupAffiliate.update},function(){return omarsysConfig.aclPermissions.groupAffiliate.fetch}],communicationCompose:[function(){return omarsysConfig.aclPermissions.affiliate.fetchAll},function(){return omarsysConfig.aclPermissions.communication.create}],communicationAll:[function(){return omarsysConfig.aclPermissions.communication.create},function(){return omarsysConfig.aclPermissions.communication.fetchAll}],emailUpdate:[function(){return omarsysConfig.aclPermissions.email.fetchAll},function(){return omarsysConfig.aclPermissions.email.fetch},function(){return omarsysConfig.aclPermissions.email.update}],emailHistory:[function(){return omarsysConfig.aclPermissions.emailHistory.fetchAll},function(){return omarsysConfig.aclPermissions.emailHistory.fetch}],adminFeeUpdate:[function(){return omarsysConfig.aclPermissions.adminFee.fetchAll},function(){return omarsysConfig.aclPermissions.adminFee.fetch},function(){return omarsysConfig.aclPermissions.adminFee.update}],affiliate:[function(){return omarsysConfig.aclPermissions.affiliate.fetchAll}],affiliateCreate:[function(){return omarsysConfig.aclPermissions.affiliate.create},function(){return omarsysConfig.aclPermissions.account.create}],affiliateUpdate:[function(){return omarsysConfig.aclPermissions.affiliate.update}],affiliateUpdateContactManager:[function(){return omarsysConfig.aclPermissions.affiliate.update},function(){return omarsysConfig.aclPermissions.affiliate.updateContactManager}],affiliateStatusChange:{approve:"affiliateSnapshot.approve",reject:"affiliateSnapshot.reject"},affiliatePendingChanges:[function(){return omarsysConfig.aclPermissions.affiliateSnapshot.fetchAll},function(){return omarsysConfig.aclPermissions.changeChannelRewardPlanSnapshot.fetchAll},function(){return omarsysConfig.aclPermissions.changeSubAffiliationRewardPlanSnapshot.fetchAll}],customerEdit:[function(){return omarsysConfig.aclPermissions.customer.update}],customerPendingChanges:[function(){return omarsysConfig.aclPermissions.changeCustomerRewardPlanSnapshot.fetchAll},function(){return omarsysConfig.aclPermissions.changeCustomerAffiliateSnapshot.fetchAll}],channelUpdate:[function(){return omarsysConfig.aclPermissions.channel.fetch},function(){return omarsysConfig.aclPermissions.channel.update}],brand:[function(){return omarsysConfig.aclPermissions.brand.update},function(){return omarsysConfig.aclPermissions.product.update}],brandCreate:[function(){return omarsysConfig.aclPermissions.brand.create},function(){return omarsysConfig.aclPermissions.product.fetchAll}],brandUpdate:[function(){return omarsysConfig.aclPermissions.brand.fetch},function(){return omarsysConfig.aclPermissions.brand.update},function(){return omarsysConfig.aclPermissions.product.fetchAll}],alert:[function(){return omarsysConfig.aclPermissions.alertDefinition.fetchAll},function(){return omarsysConfig.aclPermissions.alert.fetchAll}],alertDefinitionCreate:[function(){return omarsysConfig.aclPermissions.alertDefinition.create},function(){return omarsysConfig.aclPermissions.reward.fetchAll},function(){return omarsysConfig.aclPermissions.channel.fetchAll},function(){return omarsysConfig.aclPermissions.affiliate.fetch}],alertDefinitionUpdate:[function(){return omarsysConfig.aclPermissions.alertDefinition.update},function(){return omarsysConfig.aclPermissions.reward.fetchAll},function(){return omarsysConfig.aclPermissions.alertDefinition.fetch},function(){return omarsysConfig.aclPermissions.channel.fetchAll},function(){return omarsysConfig.aclPermissions.affiliate.fetch}],affiliateDocumentCreate:[function(){return omarsysConfig.aclPermissions.affiliateDocument.create}],affiliateDocumentUpdate:[function(){return omarsysConfig.aclPermissions.affiliateDocument.fetch},function(){return omarsysConfig.aclPermissions.affiliateDocument.update},function(){return omarsysConfig.aclPermissions.affiliate.fetchAll},function(){return omarsysConfig.aclPermissions.account.fetchAll},function(){return omarsysConfig.aclPermissions.reward.fetchAll},function(){return omarsysConfig.aclPermissions.affiliate.fetchAll}],mediaImageUpdate:[function(){return omarsysConfig.aclPermissions.mediaImage.fetch},function(){return omarsysConfig.aclPermissions.mediaImage.update}],media:[function(){return omarsysConfig.aclPermissions.media.fetchAll},function(){return omarsysConfig.aclPermissions.channel.fetchAll},function(){return omarsysConfig.aclPermissions.mediaSpace.fetchAll},function(){return omarsysConfig.aclPermissions.product.fetchAll},function(){return omarsysConfig.aclPermissions.brandProduct.fetchAll}],mediaCreate:[function(){return omarsysConfig.aclPermissions.media.create},function(){return omarsysConfig.aclPermissions.media.fetchAll}],mediaUpdate:[function(){return omarsysConfig.aclPermissions.media.update}],mediaSpace:[function(){return omarsysConfig.aclPermissions.brand.fetchAll},function(){return omarsysConfig.aclPermissions.mediaSpace.fetchAll}],mediaSpaceUpdate:[function(){return omarsysConfig.aclPermissions.mediaSpace.fetch},function(){return omarsysConfig.aclPermissions.mediaSpace.update}],landingPage:[function(){return omarsysConfig.aclPermissions.landingPage.fetchAll},function(){return omarsysConfig.aclPermissions.brand.fetchAll}],landingPageCreate:[function(){return omarsysConfig.aclPermissions.landingPage.create},function(){return omarsysConfig.aclPermissions.brand.fetchAll}],landingPageUpdate:[function(){return omarsysConfig.aclPermissions.landingPage.fetch},function(){return omarsysConfig.aclPermissions.landingPage.update},function(){return omarsysConfig.aclPermissions.brand.fetchAll}],managerRoleCreate:[function(){return omarsysConfig.aclPermissions.managerRole.fetch},function(){return omarsysConfig.aclPermissions.managerRole.create},function(){return omarsysConfig.aclPermissions.aclPermission.fetchAll}],managerRoleUpdate:[function(){return omarsysConfig.aclPermissions.managerRole.fetch},function(){return omarsysConfig.aclPermissions.aclPermission.fetchAll},function(){return omarsysConfig.aclPermissions.managerRole.update}],manager:[function(){return omarsysConfig.aclPermissions.manager.fetch},function(){return omarsysConfig.aclPermissions.managerRole.fetchAll}],managerCreate:[function(){return omarsysConfig.aclPermissions.manager.fetch},function(){return omarsysConfig.aclPermissions.manager.create}],managerUpdate:[function(){return omarsysConfig.aclPermissions.manager.fetch},function(){return omarsysConfig.aclPermissions.manager.update}],mediaAdminReport:[function(){return omarsysConfig.aclPermissions.report.admin.media}],financialAdminReport:[function(){return omarsysConfig.aclPermissions.report.admin.financial}],affiliateSubcommissionAdminReport:[function(){return omarsysConfig.aclPermissions.report.admin.affiliateSubcommission}],mediaAffiliateReport:[function(){return omarsysConfig.aclPermissions.report.affiliate.media}],performanceAffiliateReport:[function(){return omarsysConfig.aclPermissions.report.affiliate.performance}],variablesAffiliateReport:[function(){return omarsysConfig.aclPermissions.report.affiliate.dynamicVariables},function(){return omarsysConfig.aclPermissions.brand.fetchAll},function(){return omarsysConfig.aclPermissions.affiliate.fetchAll}],variablesAdminReport:[function(){return omarsysConfig.aclPermissions.report.admin.dynamicVariables}],channelsAffiliateReport:[function(){return omarsysConfig.aclPermissions.report.affiliate.channels}],channelsAdminReport:[function(){return omarsysConfig.aclPermissions.report.admin.channels}],earningsAffiliateReport:[function(){return omarsysConfig.aclPermissions.report.affiliate.earnings}],subaffiliateAffiliateReport:[function(){return omarsysConfig.aclPermissions.report.affiliate.subAffiliate}],affiliateAdminReport:[function(){return omarsysConfig.aclPermissions.report.admin.affiliate}],customerAdminReport:[function(){return omarsysConfig.aclPermissions.report.admin.customer}],reimport:[function(){return omarsysConfig.aclPermissions.brand.fetchAll},function(){return omarsysConfig.aclPermissions.reimport.create}],payment:[function(){return omarsysConfig.aclPermissions.payment.fetchAll}],fixedReward:[function(){return omarsysConfig.aclPermissions.fixedReward.fetchAll},function(){return omarsysConfig.aclPermissions.brand.fetchAll}],fixedRewardCreate:[function(){return omarsysConfig.aclPermissions.fixedReward.create},function(){return omarsysConfig.aclPermissions.brand.fetchAll}],fixedRewardUpdate:[function(){return omarsysConfig.aclPermissions.fixedReward.fetch},function(){return omarsysConfig.aclPermissions.brand.fetchAll},function(){return omarsysConfig.aclPermissions.fixedReward.update}],rewardCrud:[function(){return omarsysConfig.aclPermissions.reward.fetch},function(){return omarsysConfig.aclPermissions.reward.update},function(){return omarsysConfig.aclPermissions.reward.delete},function(){return omarsysConfig.aclPermissions.reward.create}],retagging:[function(){return omarsysConfig.aclPermissions.retagging.run}],paymentInformationUpdate:[function(){return omarsysConfig.aclPermissions.paymentInformation.fetch},function(){return omarsysConfig.aclPermissions.paymentInformation.update},function(){return omarsysConfig.aclPermissions.paymentInformation.fetchAll}],paymentTypeUpdate:[function(){return omarsysConfig.aclPermissions.paymentType.fetch},function(){return omarsysConfig.aclPermissions.paymentType.update},function(){return omarsysConfig.aclPermissions.paymentType.fetchAll}]},affiliateProperties:{CpaAmount:1,RevShare:4,NetRev:2,Deposits:5,GrossRev:3,Bonuses:6,Adjustments:9,Turnover:7,Withdrawals:8},locale:{allowedLanguageCodes:["cs","de","en","fi","ja","no","sv","zh"],defaultLanguageCode:"en"},tax:{calculationBase:{origin:e("Gross Revenue"),turnOver:e("Turnover")}},taxRate:{calculationMethod:{exclusive:e("Exclusive")}},events:{communication_update:"communication_update",preference_update:"preference_update",kyc_requested:"kyc_requested",kyc_attempt_created:"kyc_attempt_created"},gdpr:{enabled:!0},devicesTypesForForms:[{id:1,name:"Mobile"},{id:2,name:"Desktop"},{id:3,name:"Tablet"}],cpaTriggeredOptions:[{id:void 0,name:"All"},{id:1,name:"Yes"},{id:0,name:"No"}]}}(),baseUrl="https://comeonconnect-api.omarsys.com",base3Url="https://comeonconnect-api3.omarsys.com",newFrontendUrl="https://new-comeonconnect.omarsys.com",etUrl="//eventtracking-api.omarsys.com";omarsysConfig.trackingApiEndpointUrl=etUrl,omarsysConfig.apiUrl=baseUrl,omarsysConfig.api3Url=base3Url,omarsysConfig.newFrontendUrl=newFrontendUrl,omarsysConfig.trackingUrl=baseUrl+"/tracking.php",omarsysConfig.oauth.url=baseUrl+"/oauth",omarsysConfig.guestHeaderTemplate="/shared/partials/headers/comeon-logo.tpl.html",omarsysConfig.menuHeaderTemplate="/shared/partials/headers/comeon.tpl.html",omarsysConfig.menuHeaderMobileTemplate="/shared/partials/headers/comeon-mobile.tpl.html",omarsysConfig.systemName="Comeon",omarsysConfig.title="ComeonConnect",omarsysConfig.countries=[{key:"de",item:"Germany"},{key:"en",item:"UK"},{key:"no",item:"Norway"},{key:"fi",item:"Finland"},{key:"sv",item:"Sweden"}],omarsysConfig.savedReports.thresholdValue=95,omarsysConfig.locale.allowedLanguageCodes.push("ja"),omarsysConfig.oauth.clients.google="679252526652-u0pb1vsbihchbn28dbefe3dsr0tqvim8.apps.googleusercontent.com",head.ready(document,function(){"use strict";var e={g:"guest",m:"manager",a:"affiliate"},i=[{fn:function(){},condition:function(){return void 0!==omarsysConfig}},{fn:function(){if(n.loading||n.loaded||n.error)return;n.loading=!0;var e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),e.onload=function(){n.loading=!1,n.loaded=!0},e.onerror=function(){n.loading=!1,n.loaded=!1,n.error=!0},e.setAttribute("href",omarsysConfig.apiUrl+"/assets/css?v="+Math.floor(Date.now()/1e3)),document.getElementsByTagName("head")[0].appendChild(e)},condition:function(){return n.loaded||n.error}},{fn:function(){head.load(lib[t])},condition:function(){return"object"==typeof angular}},{fn:function(){head.load(app[t]),head.load(libnopack[t])},condition:function(){try{return angular.module("omarsysApp"),!0}catch(e){return!1}}},{fn:function(){},condition:function(){return 0<angular.module("omarsysApp")._invokeQueue.filter(function(e){return"omarsysModal"==e[2][0]}).length}}],t=e[window.location.pathname.split("/")[1]]||e.g,s=60,n={loading:!1,loaded:!1,error:!1};!function e(t){if(null==t&&(t=0),t>=i.length)return console.log("Bootstraping..."),void angular.bootstrap(document,["omarsysApp"]);i[t].fn(),function e(t,i,n){if(null==n&&(n=s),0===n)throw new Error("Condition failed after "+s+"seconds");if(t())return i();setTimeout(function(){e(t,i,n-1)},1e3)}(i[t].condition,function(){e(t+1)})}()});