/*! * jQuery JavaScript Library v1.8.3 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time) */ !function(g,k){var H,z,v=g.document,L=g.location,j=g.navigator,W=g.jQuery,F=g.$,R=Array.prototype.push,_=Array.prototype.slice,B=Array.prototype.indexOf,q=Object.prototype.toString,U=Object.prototype.hasOwnProperty,Y=String.prototype.trim,C=function(t,e){return new C.fn.init(t,e,H)},V=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,X=/\S/,T=/\s+/,K=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,G=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,Q=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,J=/^[\],:{}\s]*$/,Z=/(?:^|:|,)(?:\s*\[)+/g,tt=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,et=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,it=/^-ms-/,nt=/-([\da-z])/gi,st=function(t,e){return(e+"").toUpperCase()},ot=function(){v.addEventListener?(v.removeEventListener("DOMContentLoaded",ot,!1),C.ready()):"complete"===v.readyState&&(v.detachEvent("onreadystatechange",ot),C.ready())},rt={},at=(C.fn=C.prototype={constructor:C,init:function(t,e,i){var n,s;if(t)if(t.nodeType)this.context=this[0]=t,this.length=1;else{if("string"!=typeof t)return C.isFunction(t)?i.ready(t):(t.selector!==k&&(this.selector=t.selector,this.context=t.context),C.makeArray(t,this));if(!(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&3<=t.length?[null,t,null]:G.exec(t))||!n[1]&&e)return(!e||e.jquery?e||i:this.constructor(e)).find(t);if(n[1])return s=(e=e instanceof C?e[0]:e)&&e.nodeType?e.ownerDocument||e:v,t=C.parseHTML(n[1],s,!0),Q.test(n[1])&&C.isPlainObject(e)&&this.attr.call(t,e,!0),C.merge(this,t);if((s=v.getElementById(n[2]))&&s.parentNode){if(s.id!==n[2])return i.find(t);this.length=1,this[0]=s}this.context=v,this.selector=t}return this},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length},toArray:function(){return _.call(this)},get:function(t){return null==t?this.toArray():t<0?this[this.length+t]:this[t]},pushStack:function(t,e,i){var n=C.merge(this.constructor(),t);return n.prevObject=this,n.context=this.context,"find"===e?n.selector=this.selector+(this.selector?" ":"")+i:e&&(n.selector=this.selector+"."+e+"("+i+")"),n},each:function(t,e){return C.each(this,t,e)},ready:function(t){return C.ready.promise().done(t),this},eq:function(t){return-1===(t=+t)?this.slice(t):this.slice(t,t+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(_.apply(this,arguments),"slice",_.call(arguments).join(","))},map:function(i){return this.pushStack(C.map(this,function(t,e){return i.call(t,e,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:R,sort:[].sort,splice:[].splice},C.fn.init.prototype=C.fn,C.extend=C.fn.extend=function(){var t,e,i,n,s,o=arguments[0]||{},r=1,a=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[1]||{},r=2),"object"==typeof o||C.isFunction(o)||(o={}),a===r&&(o=this,--r);r<a;r++)if(null!=(t=arguments[r]))for(e in t)s=o[e],o!==(i=t[e])&&(l&&i&&(C.isPlainObject(i)||(n=C.isArray(i)))?(s=n?(n=!1,s&&C.isArray(s)?s:[]):s&&C.isPlainObject(s)?s:{},o[e]=C.extend(l,s,i)):i!==k&&(o[e]=i));return o},C.extend({noConflict:function(t){return g.$===C&&(g.$=F),t&&g.jQuery===C&&(g.jQuery=W),C},isReady:!1,readyWait:1,holdReady:function(t){t?C.readyWait++:C.ready(!0)},ready:function(t){if(!0===t?!--C.readyWait:!C.isReady){if(!v.body)return setTimeout(C.ready,1);(C.isReady=!0)!==t&&0<--C.readyWait||(z.resolveWith(v,[C]),C.fn.trigger&&C(v).trigger("ready").off("ready"))}},isFunction:function(t){return"function"===C.type(t)},isArray:Array.isArray||function(t){return"array"===C.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},type:function(t){return null==t?String(t):rt[q.call(t)]||"object"},isPlainObject:function(t){if(!t||"object"!==C.type(t)||t.nodeType||C.isWindow(t))return!1;try{if(t.constructor&&!U.call(t,"constructor")&&!U.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(i){return!1}for(var e in t);return e===k||U.call(t,e)},isEmptyObject:function(t){for(var e in t)return!1;return!0},error:function(t){throw new Error(t)},parseHTML:function(t,e,i){var n;return t&&"string"==typeof t?("boolean"==typeof e&&(i=e,e=0),e=e||v,(n=Q.exec(t))?[e.createElement(n[1])]:(n=C.buildFragment([t],e,i?null:[]),C.merge([],(n.cacheable?C.clone(n.fragment):n.fragment).childNodes))):null},parseJSON:function(t){return t&&"string"==typeof t?(t=C.trim(t),g.JSON&&g.JSON.parse?g.JSON.parse(t):J.test(t.replace(tt,"@").replace(et,"]").replace(Z,""))?new Function("return "+t)():void C.error("Invalid JSON: "+t)):null},parseXML:function(t){var e;if(!t||"string"!=typeof t)return null;try{g.DOMParser?e=(new DOMParser).parseFromString(t,"text/xml"):((e=new ActiveXObject("Microsoft.XMLDOM"))["async"]="false",e.loadXML(t))}catch(i){e=k}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length||C.error("Invalid XML: "+t),e},noop:function(){},globalEval:function(t){t&&X.test(t)&&(g.execScript||function(t){g.eval.call(g,t)})(t)},camelCase:function(t){return t.replace(it,"ms-").replace(nt,st)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,i){var n,s=0,o=t.length,r=o===k||C.isFunction(t);if(i)if(r){for(n in t)if(!1===e.apply(t[n],i))break}else for(;s<o&&!1!==e.apply(t[s++],i););else if(r){for(n in t)if(!1===e.call(t[n],n,t[n]))break}else for(;s<o&&!1!==e.call(t[s],s,t[s++]););return t},trim:Y&&!Y.call("\ufeff ")?function(t){return null==t?"":Y.call(t)}:function(t){return null==t?"":(t+"").replace(K,"")},makeArray:function(t,e){var i,n=e||[];return null!=t&&(i=C.type(t),null==t.length||"string"===i||"function"===i||"regexp"===i||C.isWindow(t)?R.call(n,t):C.merge(n,t)),n},inArray:function(t,e,i){var n;if(e){if(B)return B.call(e,t,i);for(n=e.length,i=i?i<0?Math.max(0,n+i):i:0;i<n;i++)if(i in e&&e[i]===t)return i}return-1},merge:function(t,e){var i=e.length,n=t.length,s=0;if("number"==typeof i)for(;s<i;s++)t[n++]=e[s];else for(;e[s]!==k;)t[n++]=e[s++];return t.length=n,t},grep:function(t,e,i){var n=[],s=0,o=t.length;for(i=!!i;s<o;s++)i!==!!e(t[s],s)&&n.push(t[s]);return n},map:function(t,e,i){var n,s,o=[],r=0,a=t.length;if(t instanceof C||a!==k&&"number"==typeof a&&(0<a&&t[0]&&t[a-1]||0===a||C.isArray(t)))for(;r<a;r++)null!=(n=e(t[r],r,i))&&(o[o.length]=n);else for(s in t)null!=(n=e(t[s],s,i))&&(o[o.length]=n);return o.concat.apply([],o)},guid:1,proxy:function(t,e){var i,n;return"string"==typeof e&&(n=t[e],e=t,t=n),C.isFunction(t)?(i=_.call(arguments,2),(n=function(){return t.apply(e,i.concat(_.call(arguments)))}).guid=t.guid=t.guid||C.guid++,n):k},access:function(t,e,i,n,s,o,r){var a,l=null==i,c=0,h=t.length;if(i&&"object"==typeof i){for(c in i)C.access(t,e,c,i[c],1,o,n);s=1}else if(n!==k){if(a=r===k&&C.isFunction(n),e=l?a?(a=e,function(t,e,i){return a.call(C(t),i)}):(e.call(t,n),null):e)for(;c<h;c++)e(t[c],i,a?n.call(t[c],c,e(t[c],i)):n,r);s=1}return s?t:l?e.call(t):h?e(t[0],i):o},now:function(){return(new Date).getTime()}}),C.ready.promise=function(t){if(!z)if(z=C.Deferred(),"complete"===v.readyState)setTimeout(C.ready,1);else if(v.addEventListener)v.addEventListener("DOMContentLoaded",ot,!1),g.addEventListener("load",C.ready,!1);else{v.attachEvent("onreadystatechange",ot),g.attachEvent("onload",C.ready);var e=!1;try{e=null==g.frameElement&&v.documentElement}catch(i){}e&&e.doScroll&&!function n(){if(!C.isReady){try{e.doScroll("left")}catch(i){return setTimeout(n,50)}C.ready()}}()}return z.promise(t)},C.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(t,e){rt["[object "+e+"]"]=e.toLowerCase()}),H=C(v),{});C.Callbacks=function(s){var t,i;s="string"==typeof s?at[s]||(i=at[t=s]={},C.each(t.split(T),function(t,e){i[e]=!0}),i):C.extend({},s);var e,n,o,r,a,l,c=[],h=!s.once&&[],u=function(t){for(e=s.memory&&t,n=!0,l=r||0,r=0,a=c.length,o=!0;c&&l<a;l++)if(!1===c[l].apply(t[0],t[1])&&s.stopOnFalse){e=!1;break}o=!1,c&&(h?h.length&&u(h.shift()):e?c=[]:d.disable())},d={add:function(){var t;return c&&(t=c.length,function n(t){C.each(t,function(t,e){var i=C.type(e);"function"===i?s.unique&&d.has(e)||c.push(e):e&&e.length&&"string"!==i&&n(e)})}(arguments),o?a=c.length:e&&(r=t,u(e))),this},remove:function(){return c&&C.each(arguments,function(t,e){for(var i;-1<(i=C.inArray(e,c,i));)c.splice(i,1),o&&(i<=a&&a--,i<=l)&&l--}),this},has:function(t){return-1<C.inArray(t,c)},empty:function(){return c=[],this},disable:function(){return c=h=e=k,this},disabled:function(){return!c},lock:function(){return h=k,e||d.disable(),this},locked:function(){return!h},fireWith:function(t,e){return e=[t,(e=e||[]).slice?e.slice():e],!c||n&&!h||(o?h.push(e):u(e)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!n}};return d},C.extend({Deferred:function(t){var r=[["resolve","done",C.Callbacks("once memory"),"resolved"],["reject","fail",C.Callbacks("once memory"),"rejected"],["notify","progress",C.Callbacks("memory")]],s="pending",o={state:function(){return s},always:function(){return a.done(arguments).fail(arguments),this},then:function(){var o=arguments;return C.Deferred(function(s){C.each(r,function(t,e){var i=e[0],n=o[t];a[e[1]](C.isFunction(n)?function(){var t=n.apply(this,arguments);t&&C.isFunction(t.promise)?t.promise().done(s.resolve).fail(s.reject).progress(s.notify):s[i+"With"](this===a?s:this,[t])}:s[i])}),o=null}).promise()},promise:function(t){return null!=t?C.extend(t,o):o}},a={};return o.pipe=o.then,C.each(r,function(t,e){var i=e[2],n=e[3];o[e[1]]=i.add,n&&i.add(function(){s=n},r[1^t][2].disable,r[2][2].lock),a[e[0]]=i.fire,a[e[0]+"With"]=i.fireWith}),o.promise(a),t&&t.call(a,a),a},when:function(t){var s,e,i,n=0,o=_.call(arguments),r=o.length,a=1!==r||t&&C.isFunction(t.promise)?r:0,l=1===a?t:C.Deferred(),c=function(e,i,n){return function(t){i[e]=this,n[e]=1<arguments.length?_.call(arguments):t,n===s?l.notifyWith(i,n):--a||l.resolveWith(i,n)}};if(1<r)for(s=new Array(r),e=new Array(r),i=new Array(r);n<r;n++)o[n]&&C.isFunction(o[n].promise)?o[n].promise().done(c(n,i,o)).fail(l.reject).progress(c(n,e,s)):--a;return a||l.resolveWith(i,o),l.promise()}}),C.support=function(){var o,t,e,i,n,s,r,a,l=v.createElement("div");if(l.setAttribute("className","t"),l.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",e=l.getElementsByTagName("*"),t=l.getElementsByTagName("a")[0],!e||!t||!e.length)return{};a=(e=v.createElement("select")).appendChild(v.createElement("option")),i=l.getElementsByTagName("input")[0],t.style.cssText="top:1px;float:left;opacity:.5",o={leadingWhitespace:3===l.firstChild.nodeType,tbody:!l.getElementsByTagName("tbody").length,htmlSerialize:!!l.getElementsByTagName("link").length,style:/top/.test(t.getAttribute("style")),hrefNormalized:"/a"===t.getAttribute("href"),opacity:/^0.5/.test(t.style.opacity),cssFloat:!!t.style.cssFloat,checkOn:"on"===i.value,optSelected:a.selected,getSetAttribute:"t"!==l.className,enctype:!!v.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==v.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===v.compatMode,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},i.checked=!0,o.noCloneChecked=i.cloneNode(!0).checked,e.disabled=!0,o.optDisabled=!a.disabled;try{delete l.test}catch(c){o.deleteExpando=!1}if(!l.addEventListener&&l.attachEvent&&l.fireEvent&&(l.attachEvent("onclick",a=function(){o.noCloneEvent=!1}),l.cloneNode(!0).fireEvent("onclick"),l.detachEvent("onclick",a)),(i=v.createElement("input")).value="t",i.setAttribute("type","radio"),o.radioValue="t"===i.value,i.setAttribute("checked","checked"),i.setAttribute("name","t"),l.appendChild(i),(a=v.createDocumentFragment()).appendChild(l.lastChild),o.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,o.appendChecked=i.checked,a.removeChild(i),a.appendChild(l),l.attachEvent)for(s in{submit:!0,change:!0,focusin:!0})(r=(n="on"+s)in l)||(l.setAttribute(n,"return;"),r="function"==typeof l[n]),o[s+"Bubbles"]=r;return C(function(){var t,e,i,n="padding:0;margin:0;border:0;display:block;overflow:hidden;",s=v.getElementsByTagName("body")[0];s&&((t=v.createElement("div")).style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",s.insertBefore(t,s.firstChild),e=v.createElement("div"),t.appendChild(e),e.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(i=e.getElementsByTagName("td"))[0].style.cssText="padding:0;margin:0;border:0;display:none",r=0===i[0].offsetHeight,i[0].style.display="",i[1].style.display="none",o.reliableHiddenOffsets=r&&0===i[0].offsetHeight,e.innerHTML="",e.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",o.boxSizing=4===e.offsetWidth,o.doesNotIncludeMarginInBodyOffset=1!==s.offsetTop,g.getComputedStyle&&(o.pixelPosition="1%"!==(g.getComputedStyle(e,null)||{}).top,o.boxSizingReliable="4px"===(g.getComputedStyle(e,null)||{width:"4px"}).width,(i=v.createElement("div")).style.cssText=e.style.cssText=n,i.style.marginRight=i.style.width="0",e.style.width="1px",e.appendChild(i),o.reliableMarginRight=!parseFloat((g.getComputedStyle(i,null)||{}).marginRight)),"undefined"!=typeof e.style.zoom&&(e.innerHTML="",e.style.cssText=n+"width:1px;padding:1px;display:inline;zoom:1",o.inlineBlockNeedsLayout=3===e.offsetWidth,e.style.display="block",e.style.overflow="visible",e.innerHTML="<div></div>",e.firstChild.style.width="5px",o.shrinkWrapBlocks=3!==e.offsetWidth,t.style.zoom=1),s.removeChild(t))}),a.removeChild(l),t=e=i=a=l=null,o}();var lt=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,ct=/([A-Z])/g;function ht(t,e,i){if(i===k&&1===t.nodeType){var n="data-"+e.replace(ct,"-$1").toLowerCase();if("string"==typeof(i=t.getAttribute(n))){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:lt.test(i)?C.parseJSON(i):i)}catch(s){}C.data(t,e,i)}else i=k}return i}function ut(t){for(var e in t)if(("data"!==e||!C.isEmptyObject(t[e]))&&"toJSON"!==e)return;return 1}C.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(C.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(t){return!!(t=t.nodeType?C.cache[t[C.expando]]:t[C.expando])&&!ut(t)},data:function(t,e,i,n){if(C.acceptData(t)){var s,o=C.expando,r="string"==typeof e,a=t.nodeType,l=a?C.cache:t,c=a?t[o]:t[o]&&o;if(c&&l[c]&&(n||l[c].data)||!r||i!==k)return c||(a?t[o]=c=C.deletedIds.pop()||C.guid++:c=o),l[c]||(l[c]={},a)||(l[c].toJSON=C.noop),"object"!=typeof e&&"function"!=typeof e||(n?l[c]=C.extend(l[c],e):l[c].data=C.extend(l[c].data,e)),o=l[c],n||(o.data||(o.data={}),o=o.data),i!==k&&(o[C.camelCase(e)]=i),r?null==(s=o[e])&&(s=o[C.camelCase(e)]):s=o,s}},removeData:function(t,e,i){if(C.acceptData(t)){var n,s,o,r=t.nodeType,a=r?C.cache:t,l=r?t[C.expando]:C.expando;if(a[l]){if(e&&(n=i?a[l]:a[l].data)){for((s=0,o=(e=C.isArray(e)?e:e in n||(e=C.camelCase(e))in n?[e]:e.split(" ")).length);s<o;s++)delete n[e[s]];if(!(i?ut:C.isEmptyObject)(n))return}(i||(delete a[l].data,ut(a[l])))&&(r?C.cleanData([t],!0):C.support.deleteExpando||a!=a.window?delete a[l]:a[l]=null)}}},_data:function(t,e,i){return C.data(t,e,i,!0)},acceptData:function(t){var e=t.nodeName&&C.noData[t.nodeName.toLowerCase()];return!e||!0!==e&&t.getAttribute("classid")===e}}),C.fn.extend({data:function(i,t){var n,s,e,o,r,a=this[0],l=0,c=null;if(i!==k)return"object"==typeof i?this.each(function(){C.data(this,i)}):((n=i.split(".",2))[1]=n[1]?"."+n[1]:"",s=n[1]+"!",C.access(this,function(e){if(e===k)return(c=this.triggerHandler("getData"+s,[n[0]]))===k&&a&&(c=C.data(a,i),c=ht(a,i,c)),c===k&&n[1]?this.data(n[0]):c;n[1]=e,this.each(function(){var t=C(this);t.triggerHandler("setData"+s,n),C.data(this,i,e),t.triggerHandler("changeData"+s,n)})},null,t,1<arguments.length,null,!1));if(this.length&&(c=C.data(a),1===a.nodeType)&&!C._data(a,"parsedAttrs")){for(r=(e=a.attributes).length;l<r;l++)(o=e[l].name).indexOf("data-")||(o=C.camelCase(o.substring(5)),ht(a,o,c[o]));C._data(a,"parsedAttrs",!0)}return c},removeData:function(t){return this.each(function(){C.removeData(this,t)})}}),C.extend({queue:function(t,e,i){var n;if(t)return n=C._data(t,e=(e||"fx")+"queue"),i&&(!n||C.isArray(i)?n=C._data(t,e,C.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=C.queue(t,e),n=i.length,s=i.shift(),o=C._queueHooks(t,e);"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===e&&i.unshift("inprogress"),delete o.stop,s.call(t,function(){C.dequeue(t,e)},o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return C._data(t,i)||C._data(t,i,{empty:C.Callbacks("once memory").add(function(){C.removeData(t,e+"queue",!0),C.removeData(t,i,!0)})})}}),C.fn.extend({queue:function(e,i){var t=2;return"string"!=typeof e&&(i=e,e="fx",t--),arguments.length<t?C.queue(this[0],e):i===k?this:this.each(function(){var t=C.queue(this,e,i);C._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&C.dequeue(this,e)})},dequeue:function(t){return this.each(function(){C.dequeue(this,t)})},delay:function(n,t){return n=C.fx&&C.fx.speeds[n]||n,this.queue(t=t||"fx",function(t,e){var i=setTimeout(t,n);e.stop=function(){clearTimeout(i)}})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,s=C.Deferred(),o=this,r=this.length,a=function(){--n||s.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=k),t=t||"fx";r--;)(i=C._data(o[r],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(a));return a(),s.promise(e)}});var a,dt,pt,ft=/[\t\r\n]/g,mt=/\r/g,gt=/^(?:button|input)$/i,vt=/^(?:button|input|object|select|textarea)$/i,_t=/^a(?:rea|)$/i,bt=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,yt=C.support.getSetAttribute,wt=(C.fn.extend({attr:function(t,e){return C.access(this,C.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){C.removeAttr(this,t)})},prop:function(t,e){return C.access(this,C.prop,t,e,1<arguments.length)},removeProp:function(e){return e=C.propFix[e]||e,this.each(function(){try{this[e]=k,delete this[e]}catch(t){}})},addClass:function(e){var t,i,n,s,o,r,a;if(C.isFunction(e))return this.each(function(t){C(this).addClass(e.call(this,t,this.className))});if(e&&"string"==typeof e)for(t=e.split(T),i=0,n=this.length;i<n;i++)if(1===(s=this[i]).nodeType)if(s.className||1!==t.length){for(o=" "+s.className+" ",r=0,a=t.length;r<a;r++)o.indexOf(" "+t[r]+" ")<0&&(o+=t[r]+" ");s.className=C.trim(o)}else s.className=e;return this},removeClass:function(e){var t,i,n,s,o,r,a;if(C.isFunction(e))return this.each(function(t){C(this).removeClass(e.call(this,t,this.className))});if(e&&"string"==typeof e||e===k)for(t=(e||"").split(T),r=0,a=this.length;r<a;r++)if(1===(n=this[r]).nodeType&&n.className){for(i=(" "+n.className+" ").replace(ft," "),s=0,o=t.length;s<o;s++)for(;0<=i.indexOf(" "+t[s]+" ");)i=i.replace(" "+t[s]+" "," ");n.className=e?C.trim(i):""}return this},toggleClass:function(o,r){var a=typeof o,l="boolean"==typeof r;return C.isFunction(o)?this.each(function(t){C(this).toggleClass(o.call(this,t,this.className,r),r)}):this.each(function(){if("string"==a)for(var t,e=0,i=C(this),n=r,s=o.split(T);t=s[e++];)n=l?n:!i.hasClass(t),i[n?"addClass":"removeClass"](t);else"undefined"!=a&&"boolean"!=a||(this.className&&C._data(this,"__className__",this.className),this.className=!this.className&&!1!==o&&C._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",i=0,n=this.length;i<n;i++)if(1===this[i].nodeType&&0<=(" "+this[i].className+" ").replace(ft," ").indexOf(e))return!0;return!1},val:function(i){var n,t,s,e=this[0];return arguments.length?(s=C.isFunction(i),this.each(function(t){var e=C(this);1!==this.nodeType||(null==(e=s?i.call(this,t,e.val()):i)?e="":"number"==typeof e?e+="":C.isArray(e)&&(e=C.map(e,function(t){return null==t?"":t+""})),(n=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&n.set(this,e,"value")!==k)||(this.value=e)})):e?(n=C.valHooks[e.type]||C.valHooks[e.nodeName.toLowerCase()])&&"get"in n&&(t=n.get(e,"value"))!==k?t:"string"==typeof(t=e.value)?t.replace(mt,""):null==t?"":t:void 0}}),C.extend({valHooks:{option:{get:function(t){var e=t.attributes.value;return!e||e.specified?t.value:t.text}},select:{get:function(t){for(var e,i=t.options,n=t.selectedIndex,s="select-one"===t.type||n<0,o=s?null:[],r=s?n+1:i.length,a=n<0?r:s?n:0;a<r;a++)if(((e=i[a]).selected||a===n)&&(C.support.optDisabled?!e.disabled:null===e.getAttribute("disabled"))&&(!e.parentNode.disabled||!C.nodeName(e.parentNode,"optgroup"))){if(e=C(e).val(),s)return e;o.push(e)}return o},set:function(t,e){var i=C.makeArray(e);return C(t).find("option").each(function(){this.selected=0<=C.inArray(C(this).val(),i)}),i.length||(t.selectedIndex=-1),i}}},attrFn:{},attr:function(t,e,i,n){var s,o,r=t.nodeType;if(t&&3!==r&&8!==r&&2!==r)return n&&C.isFunction(C.fn[e])?C(t)[e](i):"undefined"==typeof t.getAttribute?C.prop(t,e,i):((r=1!==r||!C.isXMLDoc(t))&&(e=e.toLowerCase(),o=C.attrHooks[e]||(bt.test(e)?dt:a)),i===k?!(o&&"get"in o&&r&&null!==(s=o.get(t,e)))&&null===(s=t.getAttribute(e))?k:s:null!==i?o&&"set"in o&&r&&(s=o.set(t,i,e))!==k?s:(t.setAttribute(e,i+""),i):void C.removeAttr(t,e))},removeAttr:function(t,e){var i,n,s,o,r=0;if(e&&1===t.nodeType)for(n=e.split(T);r<n.length;r++)(s=n[r])&&(i=C.propFix[s]||s,(o=bt.test(s))||C.attr(t,s,""),t.removeAttribute(yt?s:i),o)&&i in t&&(t[i]=!1)},attrHooks:{type:{set:function(t,e){var i;if(gt.test(t.nodeName)&&t.parentNode)C.error("type property can't be changed");else if(!C.support.radioValue&&"radio"===e&&C.nodeName(t,"input"))return i=t.value,t.setAttribute("type",e),i&&(t.value=i),e}},value:{get:function(t,e){return a&&C.nodeName(t,"button")?a.get(t,e):e in t?t.value:null},set:function(t,e,i){if(a&&C.nodeName(t,"button"))return a.set(t,e,i);t.value=e}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(t,e,i){var n,s,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return(1!==o||!C.isXMLDoc(t))&&(e=C.propFix[e]||e,s=C.propHooks[e]),i!==k?s&&"set"in s&&(n=s.set(t,i,e))!==k?n:t[e]=i:s&&"get"in s&&null!==(n=s.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=t.getAttributeNode("tabindex");return e&&e.specified?parseInt(e.value,10):vt.test(t.nodeName)||_t.test(t.nodeName)&&t.href?0:k}}}}),dt={get:function(t,e){var i=C.prop(t,e);return!0===i||"boolean"!=typeof i&&(i=t.getAttributeNode(e))&&!1!==i.nodeValue?e.toLowerCase():k},set:function(t,e,i){var n;return!1===e?C.removeAttr(t,i):((n=C.propFix[i]||i)in t&&(t[n]=!0),t.setAttribute(i,i.toLowerCase())),i}},yt||(pt={name:!0,id:!0,coords:!0},a=C.valHooks.button={get:function(t,e){var i=t.getAttributeNode(e);return i&&(pt[e]?""!==i.value:i.specified)?i.value:k},set:function(t,e,i){var n=t.getAttributeNode(i);return n||(n=v.createAttribute(i),t.setAttributeNode(n)),n.value=e+""}},C.each(["width","height"],function(t,i){C.attrHooks[i]=C.extend(C.attrHooks[i],{set:function(t,e){if(""===e)return t.setAttribute(i,"auto"),e}})}),C.attrHooks.contenteditable={get:a.get,set:function(t,e,i){a.set(t,e=""===e?"false":e,i)}}),C.support.hrefNormalized||C.each(["href","src","width","height"],function(t,i){C.attrHooks[i]=C.extend(C.attrHooks[i],{get:function(t){var e=t.getAttribute(i,2);return null===e?k:e}})}),C.support.style||(C.attrHooks.style={get:function(t){return t.style.cssText.toLowerCase()||k},set:function(t,e){return t.style.cssText=e+""}}),C.support.optSelected||(C.propHooks.selected=C.extend(C.propHooks.selected,{get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode)&&e.parentNode.selectedIndex,null}})),C.support.enctype||(C.propFix.enctype="encoding"),C.support.checkOn||C.each(["radio","checkbox"],function(){C.valHooks[this]={get:function(t){return null===t.getAttribute("value")?"on":t.value}}}),C.each(["radio","checkbox"],function(){C.valHooks[this]=C.extend(C.valHooks[this],{set:function(t,e){if(C.isArray(e))return t.checked=0<=C.inArray(C(t).val(),e)}})}),/^(?:textarea|input|select)$/i),xt=/^([^\.]*|)(?:\.(.+)|)$/,kt=/(?:^|\s)hover(\.\S+|)\b/,Ct=/^key/,Tt=/^(?:mouse|contextmenu)|click/,Dt=/^(?:focusinfocus|focusoutblur)$/,St=function(t){return C.event.special.hover?t:t.replace(kt,"mouseenter$1 mouseleave$1")};function l(){return!1}function It(){return!0}C.event={add:function(t,e,i,n,s){var o,r,a,l,c,h,u,d,p,f;if(3!==t.nodeType&&8!==t.nodeType&&e&&i&&(o=C._data(t)))for(i.handler&&(i=(d=i).handler,s=d.selector),i.guid||(i.guid=C.guid++),(a=o.events)||(o.events=a={}),(r=o.handle)||(o.handle=r=function(t){return void 0===C||t&&C.event.triggered===t.type?k:C.event.dispatch.apply(r.elem,arguments)},r.elem=t),e=C.trim(St(e)).split(" "),l=0;l<e.length;l++)c=(u=xt.exec(e[l])||[])[1],h=(u[2]||"").split(".").sort(),f=C.event.special[c]||{},c=(s?f.delegateType:f.bindType)||c,f=C.event.special[c]||{},u=C.extend({type:c,origType:u[1],data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&C.expr.match.needsContext.test(s),namespace:h.join(".")},d),(p=a[c])||((p=a[c]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,n,h,r))||(t.addEventListener?t.addEventListener(c,r,!1):t.attachEvent&&t.attachEvent("on"+c,r)),f.add&&(f.add.call(t,u),u.handler.guid||(u.handler.guid=i.guid)),s?p.splice(p.delegateCount++,0,u):p.push(u),C.event.global[c]=!0},global:{},remove:function(t,e,i,n,s){var o,r,a,l,c,h,u,d,p,f,m=C.hasData(t)&&C._data(t);if(m&&(u=m.events)){for(e=C.trim(St(e||"")).split(" "),o=0;o<e.length;o++)if(r=a=(c=xt.exec(e[o])||[])[1],l=c[2],r){for(d=C.event.special[r]||{},c=(p=u[r=(n?d.delegateType:d.bindType)||r]||[]).length,l=l?new RegExp("(^|\\.)"+l.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null,h=0;h<p.length;h++)f=p[h],!s&&a!==f.origType||i&&i.guid!==f.guid||l&&!l.test(f.namespace)||n&&n!==f.selector&&("**"!==n||!f.selector)||(p.splice(h--,1),f.selector&&p.delegateCount--,d.remove&&d.remove.call(t,f));0===p.length&&c!==p.length&&(d.teardown&&!1!==d.teardown.call(t,l,m.handle)||C.removeEvent(t,r,m.handle),delete u[r])}else for(r in u)C.event.remove(t,r+e[o],i,n,!0);C.isEmptyObject(u)&&(delete m.handle,C.removeData(t,"events",!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(t,e,i,n){if(!i||3!==i.nodeType&&8!==i.nodeType){var s,o,r,a,l,c,h,u,d,p=t.type||t,f=[];if(!Dt.test(p+C.event.triggered)&&(0<=p.indexOf("!")&&(p=p.slice(0,-1),c=!0),0<=p.indexOf(".")&&(p=(f=p.split(".")).shift(),f.sort()),i&&!C.event.customEvent[p]||C.event.global[p]))if((t="object"==typeof t?t[C.expando]?t:new C.Event(p,t):new C.Event(p)).type=p,t.isTrigger=!0,t.exclusive=c,t.namespace=f.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,l=p.indexOf(":")<0?"on"+p:"",i){if(t.result=k,t.target||(t.target=i),(e=null!=e?C.makeArray(e):[]).unshift(t),!(c=C.event.special[p]||{}).trigger||!1!==c.trigger.apply(i,e)){if(u=[[i,c.bindType||p]],!n&&!c.noBubble&&!C.isWindow(i)){for(d=c.delegateType||p,r=Dt.test(d+p)?i:i.parentNode,a=i;r;r=r.parentNode)u.push([r,d]),a=r;a===(i.ownerDocument||v)&&u.push([a.defaultView||a.parentWindow||g,d])}for(o=0;o<u.length&&!t.isPropagationStopped();o++)r=u[o][0],t.type=u[o][1],(h=(C._data(r,"events")||{})[t.type]&&C._data(r,"handle"))&&h.apply(r,e),(h=l&&r[l])&&C.acceptData(r)&&h.apply&&!1===h.apply(r,e)&&t.preventDefault();return t.type=p,n||t.isDefaultPrevented()||c._default&&!1!==c._default.apply(i.ownerDocument,e)||"click"===p&&C.nodeName(i,"a")||!C.acceptData(i)||l&&i[p]&&("focus"!==p&&"blur"!==p||0!==t.target.offsetWidth)&&!C.isWindow(i)&&((a=i[l])&&(i[l]=null),i[C.event.triggered=p](),C.event.triggered=k,a)&&(i[l]=a),t.result}}else for(o in s=C.cache)s[o].events&&s[o].events[p]&&C.event.trigger(t,e,s[o].handle.elem,!0)}},dispatch:function(t){t=C.event.fix(t||g.event);var e,i,n,s,o,r,a,l,c,h=(C._data(this,"events")||{})[t.type]||[],u=h.delegateCount,d=_.call(arguments),p=!t.exclusive&&!t.namespace,f=C.event.special[t.type]||{},m=[];if((d[0]=t).delegateTarget=this,!f.preDispatch||!1!==f.preDispatch.call(this,t)){if(u&&(!t.button||"click"!==t.type))for(n=t.target;n!=this;n=n.parentNode||this)if(!0!==n.disabled||"click"!==t.type){for(o={},a=[],e=0;e<u;e++)o[c=(l=h[e]).selector]===k&&(o[c]=l.needsContext?0<=C(c,this).index(n):C.find(c,this,null,[n]).length),o[c]&&a.push(l);a.length&&m.push({elem:n,matches:a})}for(h.length>u&&m.push({elem:this,matches:h.slice(u)}),e=0;e<m.length&&!t.isPropagationStopped();e++)for(r=m[e],t.currentTarget=r.elem,i=0;i<r.matches.length&&!t.isImmediatePropagationStopped();i++)l=r.matches[i],(p||!t.namespace&&!l.namespace||t.namespace_re&&t.namespace_re.test(l.namespace))&&(t.data=l.data,t.handleObj=l,(s=((C.event.special[l.origType]||{}).handle||l.handler).apply(r.elem,d))!==k)&&!1===(t.result=s)&&(t.preventDefault(),t.stopPropagation());return f.postDispatch&&f.postDispatch.call(this,t),t.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var i,n,s=e.button,o=e.fromElement;return null==t.pageX&&null!=e.clientX&&(i=(n=t.target.ownerDocument||v).documentElement,n=n.body,t.pageX=e.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!t.relatedTarget&&o&&(t.relatedTarget=o===t.target?e.toElement:o),t.which||s===k||(t.which=1&s?1:2&s?3:4&s?2:0),t}},fix:function(t){if(t[C.expando])return t;var e,i,n=t,s=C.event.fixHooks[t.type]||{},o=s.props?this.props.concat(s.props):this.props;for(t=C.Event(n),e=o.length;e;)t[i=o[--e]]=n[i];return t.target||(t.target=n.srcElement||v),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,s.filter?s.filter(t,n):t},special:{load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(t,e,i){C.isWindow(this)&&(this.onbeforeunload=i)},teardown:function(t,e){this.onbeforeunload===e&&(this.onbeforeunload=null)}}},simulate:function(t,e,i,n){var s=C.extend(new C.Event,i,{type:t,isSimulated:!0,originalEvent:{}});n?C.event.trigger(s,null,e):C.event.dispatch.call(e,s),s.isDefaultPrevented()&&i.preventDefault()}},C.event.handle=C.event.dispatch,C.removeEvent=v.removeEventListener?function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i,!1)}:function(t,e,i){var n="on"+e;t.detachEvent&&("undefined"==typeof t[n]&&(t[n]=null),t.detachEvent(n,i))},C.Event=function(t,e){if(!(this instanceof C.Event))return new C.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||!1===t.returnValue||t.getPreventDefault&&t.getPreventDefault()?It:l):this.type=t,e&&C.extend(this,e),this.timeStamp=t&&t.timeStamp||C.now(),this[C.expando]=!0},C.Event.prototype={preventDefault:function(){this.isDefaultPrevented=It;var t=this.originalEvent;t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=It;var t=this.originalEvent;t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=It,this.stopPropagation()},isDefaultPrevented:l,isPropagationStopped:l,isImmediatePropagationStopped:l},C.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(t,s){C.event.special[t]={delegateType:s,bindType:s,handle:function(t){var e,i=t.relatedTarget,n=t.handleObj;n.selector;return i&&(i===this||C.contains(this,i))||(t.type=n.origType,e=n.handler.apply(this,arguments),t.type=s),e}}}),C.support.submitBubbles||(C.event.special.submit={setup:function(){if(C.nodeName(this,"form"))return!1;C.event.add(this,"click._submit keypress._submit",function(t){var e=t.target,e=C.nodeName(e,"input")||C.nodeName(e,"button")?e.form:k;e&&!C._data(e,"_submit_attached")&&(C.event.add(e,"submit._submit",function(t){t._submit_bubble=!0}),C._data(e,"_submit_attached",!0))})},postDispatch:function(t){t._submit_bubble&&(delete t._submit_bubble,this.parentNode)&&!t.isTrigger&&C.event.simulate("submit",this.parentNode,t,!0)},teardown:function(){if(C.nodeName(this,"form"))return!1;C.event.remove(this,"._submit")}}),C.support.changeBubbles||(C.event.special.change={setup:function(){if(wt.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(C.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)}),C.event.add(this,"click._change",function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1),C.event.simulate("change",this,t,!0)})),!1;C.event.add(this,"beforeactivate._change",function(t){var e=t.target;wt.test(e.nodeName)&&!C._data(e,"_change_attached")&&(C.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||C.event.simulate("change",this.parentNode,t,!0)}),C._data(e,"_change_attached",!0))})},handle:function(t){var e=t.target;if(this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type)return t.handleObj.handler.apply(this,arguments)},teardown:function(){return C.event.remove(this,"._change"),!wt.test(this.nodeName)}}),C.support.focusinBubbles||C.each({focus:"focusin",blur:"focusout"},function(t,e){var i=0,n=function(t){C.event.simulate(e,t.target,C.event.fix(t),!0)};C.event.special[e]={setup:function(){0==i++&&v.addEventListener(t,n,!0)},teardown:function(){0==--i&&v.removeEventListener(t,n,!0)}}}),C.fn.extend({on:function(t,e,i,n,s){var o,r;if("object"==typeof t){for(r in"string"!=typeof e&&(i=i||e,e=k),t)this.on(r,e,i,t[r],s);return this}if(null==i&&null==n?(n=e,i=e=k):null==n&&("string"==typeof e?(n=i,i=k):(n=i,i=e,e=k)),!1===n)n=l;else if(!n)return this;return 1===s&&(o=n,(n=function(t){return C().off(t),o.apply(this,arguments)}).guid=o.guid||(o.guid=C.guid++)),this.each(function(){C.event.add(this,t,n,i,e)})},one:function(t,e,i,n){return this.on(t,e,i,n,1)},off:function(t,e,i){var n,s;if(t&&t.preventDefault&&t.handleObj)n=t.handleObj,C(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler);else{if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(i=e,e=k),!1===i&&(i=l),this.each(function(){C.event.remove(this,t,i,e)});for(s in t)this.off(s,e,t[s])}return this},bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},live:function(t,e,i){return C(this.context).on(t,this.selector,e,i),this},die:function(t,e){return C(this.context).off(t,this.selector||"**",e),this},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},trigger:function(t,e){return this.each(function(){C.event.trigger(t,e,this)})},triggerHandler:function(t,e){if(this[0])return C.event.trigger(t,e,this[0],!0)},toggle:function(i){var n=arguments,t=i.guid||C.guid++,s=0,e=function(t){var e=(C._data(this,"lastToggle"+i.guid)||0)%s;return C._data(this,"lastToggle"+i.guid,1+e),t.preventDefault(),n[e].apply(this,arguments)||!1};for(e.guid=t;s<n.length;)n[s++].guid=t;return this.click(e)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),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(t,i){C.fn[i]=function(t,e){return null==e&&(e=t,t=null),0<arguments.length?this.on(i,null,t,e):this.trigger(i)},Ct.test(i)&&(C.event.fixHooks[i]=C.event.keyHooks),Tt.test(i)&&(C.event.fixHooks[i]=C.event.mouseHooks)}); /*! * Sizzle CSS Selector Engine * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license * http://sizzlejs.com/ */ var Mt,Pt,w,$t,At,Ot,Nt,Et,h,Ht,zt,Lt,jt,Wt,Ft,d,Rt,Bt,qt=g,s="undefined",x=("sizcache"+Math.random()).replace(".",""),Ut=String,D=qt.document,i=D.documentElement,Yt=0,Vt=0,Xt=[].pop,S=[].push,p=[].slice,Kt=[].indexOf||function(t){for(var e=0,i=this.length;e<i;e++)if(this[e]===t)return e;return-1},c=function(t,e){return t[x]=null==e||e,t},t=function(){var i={},n=[];return c(function(t,e){return n.push(t)>w.cacheLength&&delete i[n.shift()],i[t+" "]=e},i)},Gt=t(),Qt=t(),Jt=t(),n="[\\x20\\t\\r\\n\\f]",e=(t="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+").replace("w","w#"),Zt=":("+t+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+(e="\\["+n+"*("+t+")"+n+"*(?:([*^$|!~]?=)"+n+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+e+")|)|)"+n+"*\\]")+")|[^:]|\\\\.)*|.*))\\)|)",o=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+n+"*((?:-\\d)?\\d*)"+n+"*\\)|)(?=[^-]|$)",te=new RegExp("^"+n+"+|((?:^|[^\\\\])(?:\\\\.)*)"+n+"+$","g"),ee=new RegExp("^"+n+"*,"+n+"*"),ie=new RegExp("^"+n+"*([\\x20\\t\\r\\n\\f>+~])"+n+"*"),ne=new RegExp(Zt),se=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,oe=/[\x20\t\r\n\f]*[+~]/,re=/h\d/i,ae=/input|select|textarea|button/i,u=/\\(?!\\)/g,le={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),NAME:new RegExp("^\\[name=['\"]?("+t+")['\"]?\\]"),TAG:new RegExp("^("+t.replace("w","w*")+")"),ATTR:new RegExp("^"+e),PSEUDO:new RegExp("^"+Zt),POS:new RegExp(o,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+n+"*(even|odd|(([+-]|)(\\d*)n|)"+n+"*(?:([+-]|)"+n+"*(\\d+)|))"+n+"*\\)|)","i"),needsContext:new RegExp("^"+n+"*[>+~]|"+o,"i")},e=(t=function(t){var e=D.createElement("div");try{return t(e)}catch(i){return!1}})(function(t){return t.appendChild(D.createComment("")),!t.getElementsByTagName("*").length}),o=t(function(t){return t.innerHTML="<a href='#'></a>",t.firstChild&&typeof t.firstChild.getAttribute!=s&&"#"===t.firstChild.getAttribute("href")}),ce=t(function(t){t.innerHTML="<select></select>";var e=typeof t.lastChild.getAttribute("multiple");return"boolean"!=e&&"string"!=e}),he=t(function(t){return t.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",!(!t.getElementsByClassName||!t.getElementsByClassName("e").length)&&(t.lastChild.className="e",2===t.getElementsByClassName("e").length)}),ue=t(function(t){t.id=x+0,t.innerHTML="<a name='"+x+"'></a><div name='"+x+"'></div>",i.insertBefore(t,i.firstChild);var e=D.getElementsByName&&D.getElementsByName(x).length===2+D.getElementsByName(x+0).length;return Pt=!D.getElementById(x),i.removeChild(t),e});try{p.call(i.childNodes,0)[0].nodeType}catch(N){p=function(t){for(var e,i=[];e=this[t];t++)i.push(e);return i}}function I(t,e,i,n){i=i||[];var s,o,r,a,l=(e=e||D).nodeType;if(!t||"string"!=typeof t)return i;if(1!==l&&9!==l)return[];if(!(r=At(e))&&!n&&(s=se.exec(t)))if(a=s[1]){if(9===l){if(!(o=e.getElementById(a))||!o.parentNode)return i;if(o.id===a)return i.push(o),i}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(a))&&Ot(e,o)&&o.id===a)return i.push(o),i}else{if(s[2])return S.apply(i,p.call(e.getElementsByTagName(t),0)),i;if((a=s[3])&&he&&e.getElementsByClassName)return S.apply(i,p.call(e.getElementsByClassName(a),0)),i}return ye(t.replace(te,"$1"),e,i,n,r)}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(i){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===i}}function r(r){return c(function(o){return o=+o,c(function(t,e){for(var i,n=r([],t.length,o),s=n.length;s--;)t[i=n[s]]&&(t[i]=!(e[i]=t[i]))})})}function fe(t,e,i){if(t===e)return i;for(var n=t.nextSibling;n;){if(n===e)return-1;n=n.nextSibling}return 1}function me(t,e){var i,n,s,o,r,a,l,c=Qt[x][t+" "];if(c)return e?0:c.slice(0);for(r=t,a=[],l=w.preFilter;r;){for(o in i&&!(n=ee.exec(r))||(n&&(r=r.slice(n[0].length)||r),a.push(s=[])),i=!1,(n=ie.exec(r))&&(s.push(i=new Ut(n.shift())),r=r.slice(i.length),i.type=n[0].replace(te," ")),w.filter)!(n=le[o].exec(r))||l[o]&&!(n=l[o](n))||(s.push(i=new Ut(n.shift())),r=r.slice(i.length),i.type=o,i.matches=n);if(!i)break}return e?r.length:r?I.error(t):Qt(t,a).slice(0)}function ge(r,t,e){var a=t.dir,l=e&&"parentNode"===t.dir,c=Vt++;return t.first?function(t,e,i){for(;t=t[a];)if(l||1===t.nodeType)return r(t,e,i)}:function(t,e,i){if(i){for(;t=t[a];)if((l||1===t.nodeType)&&r(t,e,i))return t}else for(var n,s=Yt+" "+c+" ",o=s+Mt;t=t[a];)if(l||1===t.nodeType){if((n=t[x])===o)return t.sizset;if("string"==typeof n&&0===n.indexOf(s)){if(t.sizset)return t}else{if(t[x]=o,r(t,e,i))return t.sizset=!0,t;t.sizset=!1}}}}function ve(s){return 1<s.length?function(t,e,i){for(var n=s.length;n--;)if(!s[n](t,e,i))return!1;return!0}:s[0]}function _e(t,e,i,n,s){for(var o,r=[],a=0,l=t.length,c=null!=e;a<l;a++)!(o=t[a])||i&&!i(o,n,s)||(r.push(o),c&&e.push(a));return r}function be(p,f,m,g,v,t){return g&&!g[x]&&(g=be(g)),v&&!v[x]&&(v=be(v,t)),c(function(t,e,i,n){var s,o,r,a=[],l=[],c=e.length,h=t||function(t,e,i){for(var n=0,s=e.length;n<s;n++)I(t,e[n],i);return i}(f||"*",i.nodeType?[i]:i,[]),u=!p||!t&&f?h:_e(h,a,p,i,n),d=m?v||(t?p:c||g)?[]:e:u;if(m&&m(u,d,i,n),g)for(s=_e(d,l),g(s,[],i,n),o=s.length;o--;)(r=s[o])&&(d[l[o]]=!(u[l[o]]=r));if(t){if(v||p){if(v){for(s=[],o=d.length;o--;)(r=d[o])&&s.push(u[o]=r);v(null,d=[],s,n)}for(o=d.length;o--;)(r=d[o])&&-1<(s=v?Kt.call(t,r):a[o])&&(t[s]=!(e[s]=r))}}else d=_e(d===e?d.splice(c,d.length):d),v?v(null,e,d,n):S.apply(e,d)})}function ye(t,e,i,n,s){var o,r,a,l,c,h=me(t);h.length;if(!n&&1===h.length){if(2<(r=h[0]=h[0].slice(0)).length&&"ID"===(a=r[0]).type&&9===e.nodeType&&!s&&w.relative[r[1].type]){if(!(e=w.find.ID(a.matches[0].replace(u,""),e,s)[0]))return i;t=t.slice(r.shift().length)}for(o=le.POS.test(t)?-1:r.length-1;0<=o&&(a=r[o],!w.relative[l=a.type]);o--)if((c=w.find[l])&&(n=c(a.matches[0].replace(u,""),oe.test(r[0].type)&&e.parentNode||e,s))){if(r.splice(o,1),t=n.length&&r.join(""))break;return S.apply(i,p.call(n,0)),i}}return Nt(t,h)(n,e,s,i,oe.test(t)),i}function we(){}I.matches=function(t,e){return I(t,null,null,e)},I.matchesSelector=function(t,e){return 0<I(e,null,null,[t]).length},$t=I.getText=function(t){var e,i="",n=0,s=t.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=$t(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[n];n++)i+=$t(e);return i},At=I.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},Ot=I.contains=i.contains?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!!(n&&1===n.nodeType&&i.contains&&i.contains(n))}:i.compareDocumentPosition?function(t,e){return e&&!!(16&t.compareDocumentPosition(e))}:function(t,e){for(;e=e.parentNode;)if(e===t)return!0;return!1},I.attr=function(t,e){var i,n=At(t);return n||(e=e.toLowerCase()),(i=w.attrHandle[e])?i(t):n||ce?t.getAttribute(e):(i=t.getAttributeNode(e))?"boolean"==typeof t[e]?t[e]?e:null:i.specified?i.value:null:null},w=I.selectors={cacheLength:50,createPseudo:c,match:le,attrHandle:o?{}:{href:function(t){return t.getAttribute("href",2)},type:function(t){return t.getAttribute("type")}},find:{ID:Pt?function(t,e,i){var n;if(typeof e.getElementById!=s&&!i)return(n=e.getElementById(t))&&n.parentNode?[n]:[]}:function(t,e,i){var n;if(typeof e.getElementById!=s&&!i)return(n=e.getElementById(t))?n.id===t||typeof n.getAttributeNode!=s&&n.getAttributeNode("id").value===t?[n]:void 0:[]},TAG:e?function(t,e){if(typeof e.getElementsByTagName!=s)return e.getElementsByTagName(t)}:function(t,e){var i=e.getElementsByTagName(t);if("*"!==t)return i;for(var n,s=[],o=0;n=i[o];o++)1===n.nodeType&&s.push(n);return s},NAME:ue&&function(t,e){if(typeof e.getElementsByName!=s)return e.getElementsByName(name)},CLASS:he&&function(t,e,i){if(typeof e.getElementsByClassName!=s&&!i)return e.getElementsByClassName(t)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(u,""),t[3]=(t[4]||t[5]||"").replace(u,""),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1]?(t[2]||I.error(t[0]),t[3]=+(t[3]?t[4]+(t[5]||1):2*("even"===t[2]||"odd"===t[2])),t[4]=+(t[6]+t[7]||"odd"===t[2])):t[2]&&I.error(t[0]),t},PSEUDO:function(t){var e,i;return le.CHILD.test(t[0])?null:(t[3]?t[2]=t[3]:(e=t[4])&&(ne.test(e)&&(i=(i=me(e,!0))&&e.indexOf(")",e.length-i)-e.length)&&(e=e.slice(0,i),t[0]=t[0].slice(0,i)),t[2]=e),t.slice(0,3))}},filter:{ID:Pt?function(e){return e=e.replace(u,""),function(t){return t.getAttribute("id")===e}}:function(i){return i=i.replace(u,""),function(t){var e=typeof t.getAttributeNode!=s&&t.getAttributeNode("id");return e&&e.value===i}},TAG:function(e){return"*"===e?function(){return!0}:(e=e.replace(u,"").toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(t){var e=Gt[x][t+" "];return e||(e=new RegExp("(^|"+n+")"+t+"("+n+"|$)"))&&Gt(t,function(t){return e.test(t.className||typeof t.getAttribute!=s&&t.getAttribute("class")||"")})},ATTR:function(n,s,o){return function(t,e){var i=I.attr(t,n);return null==i?"!="===s:!s||(i+="","="===s?i===o:"!="===s?i!==o:"^="===s?o&&0===i.indexOf(o):"*="===s?o&&-1<i.indexOf(o):"$="===s?o&&i.substr(i.length-o.length)===o:"~="===s?-1<(" "+i+" ").indexOf(o):"|="===s&&(i===o||i.substr(0,o.length+1)===o+"-"))}},CHILD:function(i,t,s,o){return"nth"===i?function(t){var e,i,n=t.parentNode;if(1===s&&0===o)return!0;if(n)for(i=0,e=n.firstChild;e&&(1!==e.nodeType||(i++,t!==e));e=e.nextSibling);return(i-=o)===s||i%s==0&&0<=i/s}:function(t){var e=t;switch(i){case"only":case"first":for(;e=e.previousSibling;)if(1===e.nodeType)return!1;if("first"===i)return!0;e=t;case"last":for(;e=e.nextSibling;)if(1===e.nodeType)return!1;return!0}}},PSEUDO:function(t,o){var e,r=w.pseudos[t]||w.setFilters[t.toLowerCase()]||I.error("unsupported pseudo: "+t);return r[x]?r(o):1<r.length?(e=[t,t,"",o],w.setFilters.hasOwnProperty(t.toLowerCase())?c(function(t,e){for(var i,n=r(t,o),s=n.length;s--;)t[i=Kt.call(t,n[s])]=!(e[i]=n[s])}):function(t){return r(t,0,e)}):r}},pseudos:{not:c(function(t){var n=[],s=[],a=Nt(t.replace(te,"$1"));return a[x]?c(function(t,e,i,n){for(var s,o=a(t,null,n,[]),r=t.length;r--;)(s=o[r])&&(t[r]=!(e[r]=s))}):function(t,e,i){return n[0]=t,a(n,null,i,s),!s.pop()}}),has:c(function(e){return function(t){return 0<I(e,t).length}}),contains:c(function(e){return function(t){return-1<(t.textContent||t.innerText||$t(t)).indexOf(e)}}),enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},parent:function(t){return!w.pseudos.empty(t)},empty:function(t){var e;for(t=t.firstChild;t;){if("@"<t.nodeName||3===(e=t.nodeType)||4===e)return!1;t=t.nextSibling}return!0},header:function(t){return re.test(t.nodeName)},text:function(t){var e,i;return"input"===t.nodeName.toLowerCase()&&"text"===(e=t.type)&&(null==(i=t.getAttribute("type"))||i.toLowerCase()===e)},radio:de("radio"),checkbox:de("checkbox"),file:de("file"),password:de("password"),image:de("image"),submit:pe("submit"),reset:pe("reset"),button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},input:function(t){return ae.test(t.nodeName)},focus:function(t){var e=t.ownerDocument;return t===e.activeElement&&(!e.hasFocus||e.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},active:function(t){return t===t.ownerDocument.activeElement},first:r(function(){return[0]}),last:r(function(t,e){return[e-1]}),eq:r(function(t,e,i){return[i<0?i+e:i]}),even:r(function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t}),odd:r(function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t}),lt:r(function(t,e,i){for(var n=i<0?i+e:i;0<=--n;)t.push(n);return t}),gt:r(function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t})}},Et=i.compareDocumentPosition?function(t,e){return t===e?(h=!0,0):(t.compareDocumentPosition&&e.compareDocumentPosition?4&t.compareDocumentPosition(e):t.compareDocumentPosition)?-1:1}:function(t,e){if(t===e)return h=!0,0;if(t.sourceIndex&&e.sourceIndex)return t.sourceIndex-e.sourceIndex;var i=[],n=[],s=t.parentNode,o=e.parentNode,r=s;if(s===o)return fe(t,e);if(!s)return-1;if(!o)return 1;for(;r;)i.unshift(r),r=r.parentNode;for(r=o;r;)n.unshift(r),r=r.parentNode;for(var a=i.length,l=n.length,c=0;c<a&&c<l;c++)if(i[c]!==n[c])return fe(i[c],n[c]);return c===a?fe(t,n[c],-1):fe(i[c],e,1)},[0,0].sort(Et),zt=!h,I.uniqueSort=function(t){var e,i=[],n=1,s=0;if(h=zt,t.sort(Et),h){for(;e=t[n];n++)e===t[n-1]&&(s=i.push(n));for(;s--;)t.splice(i[s],1)}return t},I.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},Nt=I.compile=function(t,e){var i,g,v,_,b,y,n=[],s=[],o=Jt[x][t+" "];if(!o){for(i=(e=e||me(t)).length;i--;)((o=function u(t){for(var n,e,i,s=t.length,o=w.relative[t[0].type],r=o||w.relative[" "],a=o?1:0,l=ge(function(t){return t===n},r,!0),c=ge(function(t){return-1<Kt.call(n,t)},r,!0),h=[function(t,e,i){return!o&&(i||e!==Ht)||((n=e).nodeType?l:c)(t,e,i)}];a<s;a++)if(e=w.relative[t[a].type])h=[ge(ve(h),e)];else{if((e=w.filter[t[a].type].apply(null,t[a].matches))[x]){for(i=++a;i<s&&!w.relative[t[i].type];i++);return be(1<a&&ve(h),1<a&&t.slice(0,a-1).join("").replace(te,"$1"),e,a<i&&u(t.slice(a,i)),i<s&&u(t=t.slice(i)),i<s&&t.join(""))}h.push(e)}return ve(h)}(e[i]))[x]?n:s).push(o);o=Jt(t,(g=s,_=0<(v=n).length,b=0<g.length,(y=function(t,e,i,n,s){var o,r,a,l=[],c=0,h="0",u=t&&[],d=null!=s,p=Ht,f=t||b&&w.find.TAG("*",s&&e.parentNode||e),m=Yt+=null==p?1:Math.E;for(d&&(Ht=e!==D&&e,Mt=y.el);null!=(o=f[h]);h++){if(b&&o){for(r=0;a=g[r];r++)if(a(o,e,i)){n.push(o);break}d&&(Yt=m,Mt=++y.el)}_&&((o=!a&&o)&&c--,t)&&u.push(o)}if(c+=h,_&&h!==c){for(r=0;a=v[r];r++)a(u,l,e,i);if(t){if(0<c)for(;h--;)u[h]||l[h]||(l[h]=Xt.call(n));l=_e(l)}S.apply(n,l),d&&!t&&0<l.length&&1<c+v.length&&I.uniqueSort(n)}return d&&(Yt=m,Ht=p),u}).el=0,_?c(y):y))}return o},D.querySelectorAll&&(jt=ye,Wt=/'|\\/g,Ft=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,d=[":focus"],Rt=[":active"],Bt=i.matchesSelector||i.mozMatchesSelector||i.webkitMatchesSelector||i.oMatchesSelector||i.msMatchesSelector,t(function(t){t.innerHTML="<select><option selected=''></option></select>",t.querySelectorAll("[selected]").length||d.push("\\["+n+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),t.querySelectorAll(":checked").length||d.push(":checked")}),t(function(t){t.innerHTML="<p test=''></p>",t.querySelectorAll("[test^='']").length&&d.push("[*^$]="+n+"*(?:\"\"|'')"),t.innerHTML="<input type='hidden'/>",t.querySelectorAll(":enabled").length||d.push(":enabled",":disabled")}),d=new RegExp(d.join("|")),ye=function(t,e,i,n,s){if(!n&&!s&&!d.test(t)){var o,r,a=!0,l=x,c=e,h=9===e.nodeType&&t;if(1===e.nodeType&&"object"!==e.nodeName.toLowerCase()){for(o=me(t),(a=e.getAttribute("id"))?l=a.replace(Wt,"\\$&"):e.setAttribute("id",l),l="[id='"+l+"'] ",r=o.length;r--;)o[r]=l+o[r].join("");c=oe.test(t)&&e.parentNode||e,h=o.join(",")}if(h)try{return S.apply(i,p.call(c.querySelectorAll(h),0)),i}catch(u){}finally{a||e.removeAttribute("id")}}return jt(t,e,i,n,s)},Bt)&&(t(function(t){Lt=Bt.call(t,"div");try{Bt.call(t,"[test!='']:sizzle"),Rt.push("!=",Zt)}catch(N){}}),Rt=new RegExp(Rt.join("|")),I.matchesSelector=function(t,e){if(e=e.replace(Ft,"='$1']"),!At(t)&&!Rt.test(e)&&!d.test(e))try{var i=Bt.call(t,e);if(i||Lt||t.document&&11!==t.document.nodeType)return i}catch(N){}return 0<I(e,null,null,[t]).length}),w.pseudos.nth=w.pseudos.eq,w.filters=we.prototype=w.pseudos,w.setFilters=new we,I.attr=C.attr,C.find=I,C.expr=I.selectors,C.expr[":"]=C.expr.pseudos,C.unique=I.uniqueSort,C.text=I.getText,C.isXMLDoc=I.isXML,C.contains=I.contains;var xe=/Until$/,ke=/^(?:parents|prev(?:Until|All))/,Ce=/^.[^:#\[\.,]*$/,Te=C.expr.match.needsContext,De={children:!0,contents:!0,next:!0,prev:!0};function Se(t){return!t||!t.parentNode||11===t.parentNode.nodeType}function Ie(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function Me(t,i,n){if(i=i||0,C.isFunction(i))return C.grep(t,function(t,e){return!!i.call(t,e,t)===n});if(i.nodeType)return C.grep(t,function(t,e){return t===i===n});if("string"==typeof i){var e=C.grep(t,function(t){return 1===t.nodeType});if(Ce.test(i))return C.filter(i,e,!n);i=C.filter(i,e)}return C.grep(t,function(t,e){return 0<=C.inArray(t,i)===n})}function Pe(t){var e=$e.split("|"),i=t.createDocumentFragment();if(i.createElement)for(;e.length;)i.createElement(e.pop());return i}C.fn.extend({find:function(t){var e,i,n,s,o,r,a=this;if("string"!=typeof t)return C(t).filter(function(){for(e=0,i=a.length;e<i;e++)if(C.contains(a[e],this))return!0});for(r=this.pushStack("","find",t),e=0,i=this.length;e<i;e++)if(n=r.length,C.find(t,this[e],r),0<e)for(s=n;s<r.length;s++)for(o=0;o<n;o++)if(r[o]===r[s]){r.splice(s--,1);break}return r},has:function(t){var e,i=C(t,this),n=i.length;return this.filter(function(){for(e=0;e<n;e++)if(C.contains(this,i[e]))return!0})},not:function(t){return this.pushStack(Me(this,t,!1),"not",t)},filter:function(t){return this.pushStack(Me(this,t,!0),"filter",t)},is:function(t){return!!t&&("string"==typeof t?Te.test(t)?0<=C(t,this.context).index(this[0]):0<C.filter(t,this).length:0<this.filter(t).length)},closest:function(t,e){for(var i,n=0,s=this.length,o=[],r=Te.test(t)||"string"!=typeof t?C(t,e||this.context):0;n<s;n++)for(i=this[n];i&&i.ownerDocument&&i!==e&&11!==i.nodeType;){if(r?-1<r.index(i):C.find.matchesSelector(i,t)){o.push(i);break}i=i.parentNode}return o=1<o.length?C.unique(o):o,this.pushStack(o,"closest",t)},index:function(t){return t?"string"==typeof t?C.inArray(this[0],C(t)):C.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(t,e){var i="string"==typeof t?C(t,e):C.makeArray(t&&t.nodeType?[t]:t),n=C.merge(this.get(),i);return this.pushStack(Se(i[0])||Se(n[0])?n:C.unique(n))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),C.fn.andSelf=C.fn.addBack,C.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return C.dir(t,"parentNode")},parentsUntil:function(t,e,i){return C.dir(t,"parentNode",i)},next:function(t){return Ie(t,"nextSibling")},prev:function(t){return Ie(t,"previousSibling")},nextAll:function(t){return C.dir(t,"nextSibling")},prevAll:function(t){return C.dir(t,"previousSibling")},nextUntil:function(t,e,i){return C.dir(t,"nextSibling",i)},prevUntil:function(t,e,i){return C.dir(t,"previousSibling",i)},siblings:function(t){return C.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return C.sibling(t.firstChild)},contents:function(t){return C.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:C.merge([],t.childNodes)}},function(n,s){C.fn[n]=function(t,e){var i=C.map(this,s,t);return(e=xe.test(n)?e:t)&&"string"==typeof e&&(i=C.filter(e,i)),i=1<this.length&&!De[n]?C.unique(i):i,1<this.length&&ke.test(n)&&(i=i.reverse()),this.pushStack(i,n,_.call(arguments).join(","))}}),C.extend({filter:function(t,e,i){return i&&(t=":not("+t+")"),1===e.length?C.find.matchesSelector(e[0],t)?[e[0]]:[]:C.find.matches(t,e)},dir:function(t,e,i){for(var n=[],s=t[e];s&&9!==s.nodeType&&(i===k||1!==s.nodeType||!C(s).is(i));)1===s.nodeType&&n.push(s),s=s[e];return n},sibling:function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i}});var $e="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Ae=/ jQuery\d+="(?:null|\d+)"/g,Oe=/^\s+/,Ne=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Ee=/<([\w:]+)/,He=/<tbody/i,ze=/<|&#?\w+;/,Le=/<(?:script|style|link)/i,je=/<(?:script|object|embed|option|style)/i,We=new RegExp("<(?:"+$e+")[\\s/>]","i"),Fe=/^(?:checkbox|radio)$/,Re=/checked\s*(?:[^=]|=\s*.checked.)/i,Be=/\/(java|ecma)script/i,qe=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,b={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},Ue=Pe(v),Ye=Ue.appendChild(v.createElement("div"));function Ve(t,e){if(1===e.nodeType&&C.hasData(t)){var i,n,s,o=C._data(t),r=C._data(e,o),a=o.events;if(a)for(i in delete r.handle,r.events={},a)for(n=0,s=a[i].length;n<s;n++)C.event.add(e,i,a[i][n]);r.data&&(r.data=C.extend({},r.data))}}function Xe(t,e){var i;1===e.nodeType&&(e.clearAttributes&&e.clearAttributes(),e.mergeAttributes&&e.mergeAttributes(t),"object"===(i=e.nodeName.toLowerCase())?(e.parentNode&&(e.outerHTML=t.outerHTML),C.support.html5Clone&&t.innerHTML&&!C.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===i&&Fe.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===i?e.selected=t.defaultSelected:"input"===i||"textarea"===i?e.defaultValue=t.defaultValue:"script"===i&&e.text!==t.text&&(e.text=t.text),e.removeAttribute(C.expando))}function Ke(t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName("*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll("*"):[]}function Ge(t){Fe.test(t.type)&&(t.defaultChecked=t.checked)}b.optgroup=b.option,b.tbody=b.tfoot=b.colgroup=b.caption=b.thead,b.th=b.td,C.support.htmlSerialize||(b._default=[1,"X<div>","</div>"]),C.fn.extend({text:function(t){return C.access(this,function(t){return t===k?C.text(this):this.empty().append((this[0]&&this[0].ownerDocument||v).createTextNode(t))},null,t,arguments.length)},wrapAll:function(e){var t;return C.isFunction(e)?this.each(function(t){C(this).wrapAll(e.call(this,t))}):(this[0]&&(t=C(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)),this)},wrapInner:function(i){return C.isFunction(i)?this.each(function(t){C(this).wrapInner(i.call(this,t))}):this.each(function(){var t=C(this),e=t.contents();e.length?e.wrapAll(i):t.append(i)})},wrap:function(e){var i=C.isFunction(e);return this.each(function(t){C(this).wrapAll(i?e.call(this,t):e)})},unwrap:function(){return this.parent().each(function(){C.nodeName(this,"body")||C(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(t){1!==this.nodeType&&11!==this.nodeType||this.appendChild(t)})},prepend:function(){return this.domManip(arguments,!0,function(t){1!==this.nodeType&&11!==this.nodeType||this.insertBefore(t,this.firstChild)})},before:function(){var t;return Se(this[0])?arguments.length?(t=C.clean(arguments),this.pushStack(C.merge(t,this),"before",this.selector)):void 0:this.domManip(arguments,!1,function(t){this.parentNode.insertBefore(t,this)})},after:function(){var t;return Se(this[0])?arguments.length?(t=C.clean(arguments),this.pushStack(C.merge(this,t),"after",this.selector)):void 0:this.domManip(arguments,!1,function(t){this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var i,n=0;null!=(i=this[n]);n++)t&&!C.filter(t,[i]).length||(e||1!==i.nodeType||(C.cleanData(i.getElementsByTagName("*")),C.cleanData([i])),i.parentNode&&i.parentNode.removeChild(i));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)for(1===t.nodeType&&C.cleanData(t.getElementsByTagName("*"));t.firstChild;)t.removeChild(t.firstChild);return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return C.clone(this,t,e)})},html:function(t){return C.access(this,function(t){var e=this[0]||{},i=0,n=this.length;if(t===k)return 1===e.nodeType?e.innerHTML.replace(Ae,""):k;if("string"==typeof t&&!Le.test(t)&&(C.support.htmlSerialize||!We.test(t))&&(C.support.leadingWhitespace||!Oe.test(t))&&!b[(Ee.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Ne,"<$1></$2>");try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(C.cleanData(e.getElementsByTagName("*")),e.innerHTML=t);e=0}catch(s){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(n){return Se(this[0])?this.length?this.pushStack(C(C.isFunction(n)?n():n),"replaceWith",n):this:C.isFunction(n)?this.each(function(t){var e=C(this),i=e.html();e.replaceWith(n.call(this,t,i))}):("string"!=typeof n&&(n=C(n).detach()),this.each(function(){var t=this.nextSibling,e=this.parentNode;C(this).remove(),t?C(t).before(n):C(e).append(n)}))},detach:function(t){return this.remove(t,!0)},domManip:function(i,n,s){var t,e,o,r,a,l,c=0,h=(i=[].concat.apply([],i))[0],u=[],d=this.length;if(!C.support.checkClone&&1<d&&"string"==typeof h&&Re.test(h))return this.each(function(){C(this).domManip(i,n,s)});if(C.isFunction(h))return this.each(function(t){var e=C(this);i[0]=h.call(this,t,n?e.html():k),e.domManip(i,n,s)});if(this[0]){if(e=(o=(t=C.buildFragment(i,this,u)).fragment).firstChild,1===o.childNodes.length&&(o=e),e)for(n=n&&C.nodeName(e,"tr"),r=t.cacheable||d-1;c<d;c++)s.call(n&&C.nodeName(this[c],"table")?(a=this[c],l="tbody",a.getElementsByTagName(l)[0]||a.appendChild(a.ownerDocument.createElement(l))):this[c],c===r?o:C.clone(o,!0,!0));o=null,u.length&&C.each(u,function(t,e){e.src?C.ajax?C.ajax({url:e.src,type:"GET",dataType:"script","async":!1,global:!1,"throws":!0}):C.error("no ajax"):C.globalEval((e.text||e.textContent||e.innerHTML||"").replace(qe,"")),e.parentNode&&e.parentNode.removeChild(e)})}return this}}),C.buildFragment=function(t,e,i){var n,s,o,r=t[0];return e=(e=!(e=e||v).nodeType&&e[0]||e).ownerDocument||e,!(1===t.length&&"string"==typeof r&&r.length<512&&e===v&&"<"===r.charAt(0))||je.test(r)||!C.support.checkClone&&Re.test(r)||!C.support.html5Clone&&We.test(r)||(s=!0,o=(n=C.fragments[r])!==k),n||(n=e.createDocumentFragment(),C.clean(t,e,n,i),s&&(C.fragments[r]=o&&n)),{fragment:n,cacheable:s}},C.fragments={},C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,l){C.fn[a]=function(t){var e,i=0,n=[],s=C(t),o=s.length,r=1===this.length&&this[0].parentNode;if((null==r||r&&11===r.nodeType&&1===r.childNodes.length)&&1===o)return s[l](this[0]),this;for(;i<o;i++)e=(0<i?this.clone(!0):this).get(),C(s[i])[l](e),n=n.concat(e);return this.pushStack(n,a,s.selector)}}),C.extend({clone:function(t,e,i){var n,s,o,r;if(C.support.html5Clone||C.isXMLDoc(t)||!We.test("<"+t.nodeName+">")?r=t.cloneNode(!0):(Ye.innerHTML=t.outerHTML,Ye.removeChild(r=Ye.firstChild)),!(C.support.noCloneEvent&&C.support.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||C.isXMLDoc(t)))for(Xe(t,r),n=Ke(t),s=Ke(r),o=0;n[o];++o)s[o]&&Xe(n[o],s[o]);if(e&&(Ve(t,r),i))for(n=Ke(t),s=Ke(r),o=0;n[o];++o)Ve(n[o],s[o]);return n=s=null,r},clean:function(t,e,i,n){var s,o,r,a,l,c,h,u,d,p,f,m=e===v&&Ue,g=[];for(e&&"undefined"!=typeof e.createDocumentFragment||(e=v),s=0;null!=(r=t[s]);s++)if("number"==typeof r&&(r+=""),r){if("string"==typeof r)if(ze.test(r)){for(m=m||Pe(e),h=e.createElement("div"),m.appendChild(h),r=r.replace(Ne,"<$1></$2>"),a=(Ee.exec(r)||["",""])[1].toLowerCase(),c=(l=b[a]||b._default)[0],h.innerHTML=l[1]+r+l[2];c--;)h=h.lastChild;if(!C.support.tbody)for(u=He.test(r),o=(d="table"!==a||u?"<table>"!==l[1]||u?[]:h.childNodes:h.firstChild&&h.firstChild.childNodes).length-1;0<=o;--o)C.nodeName(d[o],"tbody")&&!d[o].childNodes.length&&d[o].parentNode.removeChild(d[o]);!C.support.leadingWhitespace&&Oe.test(r)&&h.insertBefore(e.createTextNode(Oe.exec(r)[0]),h.firstChild),r=h.childNodes,h.parentNode.removeChild(h)}else r=e.createTextNode(r);r.nodeType?g.push(r):C.merge(g,r)}if(h&&(r=h=m=null),!C.support.appendChecked)for(s=0;null!=(r=g[s]);s++)C.nodeName(r,"input")?Ge(r):"undefined"!=typeof r.getElementsByTagName&&C.grep(r.getElementsByTagName("input"),Ge);if(i)for(p=function(t){if(!t.type||Be.test(t.type))return n?n.push(t.parentNode?t.parentNode.removeChild(t):t):i.appendChild(t)},s=0;null!=(r=g[s]);s++)C.nodeName(r,"script")&&p(r)||(i.appendChild(r),"undefined"!=typeof r.getElementsByTagName&&(f=C.grep(C.merge([],r.getElementsByTagName("script")),p),g.splice.apply(g,[s+1,0].concat(f)),s+=f.length));return g},cleanData:function(t,e){for(var i,n,s,o,r=0,a=C.expando,l=C.cache,c=C.support.deleteExpando,h=C.event.special;null!=(s=t[r]);r++)if((e||C.acceptData(s))&&(i=(n=s[a])&&l[n])){if(i.events)for(o in i.events)h[o]?C.event.remove(s,o):C.removeEvent(s,o,i.handle);l[n]&&(delete l[n],c?delete s[a]:s.removeAttribute?s.removeAttribute(a):s[a]=null,C.deletedIds.push(n))}}}),C.uaMatch=function(t){t=t.toLowerCase();var e=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0"}},o={},(e=C.uaMatch(j.userAgent)).browser&&(o[e.browser]=!0,o.version=e.version),o.chrome?o.webkit=!0:o.webkit&&(o.safari=!0),C.browser=o,C.sub=function(){function i(t,e){return new i.fn.init(t,e)}C.extend(!0,i,this),i.superclass=this,((i.fn=i.prototype=this()).constructor=i).sub=this.sub,i.fn.init=function(t,e){return e&&e instanceof C&&!(e instanceof i)&&(e=i(e)),C.fn.init.call(this,t,e,n)},i.fn.init.prototype=i.fn;var n=i(v);return i};var f,m,Qe,Je=/alpha\([^)]*\)/i,Ze=/opacity=([^)]*)/,ti=/^(top|right|bottom|left)$/,ei=/^(none|table(?!-c[ea]).+)/,ii=/^margin/,ni=new RegExp("^("+V+")(.*)$","i"),si=new RegExp("^("+V+")(?!px)[a-z%]+$","i"),oi=new RegExp("^([-+])=("+V+")","i"),ri={BODY:"block"},ai={position:"absolute",visibility:"hidden",display:"block"},li={letterSpacing:0,fontWeight:400},y=["Top","Right","Bottom","Left"],ci=["Webkit","O","Moz","ms"],hi=C.fn.toggle;function ui(t,e){if(e in t)return e;for(var i=e.charAt(0).toUpperCase()+e.slice(1),n=e,s=ci.length;s--;)if((e=ci[s]+i)in t)return e;return n}function di(t,e){return"none"===C.css(t=e||t,"display")||!C.contains(t.ownerDocument,t)}function pi(t,e){for(var i,n,s=[],o=0,r=t.length;o<r;o++)(i=t[o]).style&&(s[o]=C._data(i,"olddisplay"),e?(s[o]||"none"!==i.style.display||(i.style.display=""),""===i.style.display&&di(i)&&(s[o]=C._data(i,"olddisplay",vi(i.nodeName)))):(n=f(i,"display"),s[o]||"none"===n||C._data(i,"olddisplay",n)));for(o=0;o<r;o++)!(i=t[o]).style||e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?s[o]||"":"none");return t}function fi(t,e,i){var n=ni.exec(e);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):e}function mi(t,e,i,n){for(var s=i===(n?"border":"content")?4:"width"===e?1:0,o=0;s<4;s+=2)"margin"===i&&(o+=C.css(t,i+y[s],!0)),n?("content"===i&&(o-=parseFloat(f(t,"padding"+y[s]))||0),"margin"!==i&&(o-=parseFloat(f(t,"border"+y[s]+"Width"))||0)):(o+=parseFloat(f(t,"padding"+y[s]))||0,"padding"!==i&&(o+=parseFloat(f(t,"border"+y[s]+"Width"))||0));return o}function gi(t,e,i){var n="width"===e?t.offsetWidth:t.offsetHeight,s=!0,o=C.support.boxSizing&&"border-box"===C.css(t,"boxSizing");if(n<=0||null==n){if(((n=f(t,e))<0||null==n)&&(n=t.style[e]),si.test(n))return n;s=o&&(C.support.boxSizingReliable||n===t.style[e]),n=parseFloat(n)||0}return n+mi(t,e,i||(o?"border":"content"),s)+"px"}function vi(t){var e,i;return ri[t]||(i=(e=C("<"+t+">").appendTo(v.body)).css("display"),e.remove(),"none"!==i&&""!==i||(m=v.body.appendChild(m||C.extend(v.createElement("iframe"),{frameBorder:0,width:0,height:0})),Qe&&m.createElement||((Qe=(m.contentWindow||m.contentDocument).document).write("<!doctype html><html><body>"),Qe.close()),e=Qe.body.appendChild(Qe.createElement(t)),i=f(e,"display"),v.body.removeChild(m)),ri[t]=i)}C.fn.extend({css:function(t,e){return C.access(this,function(t,e,i){return i!==k?C.style(t,e,i):C.css(t,e)},t,e,1<arguments.length)},show:function(){return pi(this,!0)},hide:function(){return pi(this)},toggle:function(t,e){var i="boolean"==typeof t;return C.isFunction(t)&&C.isFunction(e)?hi.apply(this,arguments):this.each(function(){(i?t:di(this))?C(this).show():C(this).hide()})}}),C.extend({cssHooks:{opacity:{get:function(t,e){var i;if(e)return""===(i=f(t,"opacity"))?"1":i}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":C.support.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var s,o,r,a=C.camelCase(e),l=t.style;if(e=C.cssProps[a]||(C.cssProps[a]=ui(l,a)),r=C.cssHooks[e]||C.cssHooks[a],i===k)return r&&"get"in r&&(s=r.get(t,!1,n))!==k?s:l[e];if("string"===(o=typeof i)&&(s=oi.exec(i))&&(i=(s[1]+1)*s[2]+parseFloat(C.css(t,e)),o="number"),!(null==i||"number"===o&&isNaN(i)||("number"!==o||C.cssNumber[a]||(i+="px"),r&&"set"in r&&(i=r.set(t,i,n))===k)))try{l[e]=i}catch(c){}}},css:function(t,e,i,n){var s,o=C.camelCase(e);return e=C.cssProps[o]||(C.cssProps[o]=ui(t.style,o)),"normal"===(s=(s=(o=C.cssHooks[e]||C.cssHooks[o])&&"get"in o?o.get(t,!0,n):s)===k?f(t,e):s)&&e in li&&(s=li[e]),(i||n!==k)&&(o=parseFloat(s),i||C.isNumeric(o))?o||0:s},swap:function(t,e,i){var n,s,o={};for(s in e)o[s]=t.style[s],t.style[s]=e[s];for(s in n=i.call(t),e)t.style[s]=o[s];return n}}),g.getComputedStyle?f=function(t,e){var i,n,s,o,r=g.getComputedStyle(t,null),a=t.style;return r&&(""!==(i=r.getPropertyValue(e)||r[e])||C.contains(t.ownerDocument,t)||(i=C.style(t,e)),si.test(i))&&ii.test(e)&&(n=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=i,i=r.width,a.width=n,a.minWidth=s,a.maxWidth=o),i}:v.documentElement.currentStyle&&(f=function(t,e){var i,n,s=t.currentStyle&&t.currentStyle[e],o=t.style;return null==s&&o&&o[e]&&(s=o[e]),si.test(s)&&!ti.test(e)&&(i=o.left,(n=t.runtimeStyle&&t.runtimeStyle.left)&&(t.runtimeStyle.left=t.currentStyle.left),o.left="fontSize"===e?"1em":s,s=o.pixelLeft+"px",o.left=i,n)&&(t.runtimeStyle.left=n),""===s?"auto":s}),C.each(["height","width"],function(t,n){C.cssHooks[n]={get:function(t,e,i){if(e)return 0===t.offsetWidth&&ei.test(f(t,"display"))?C.swap(t,ai,function(){return gi(t,n,i)}):gi(t,n,i)},set:function(t,e,i){return fi(0,e,i?mi(t,n,i,C.support.boxSizing&&"border-box"===C.css(t,"boxSizing")):0)}}}),C.support.opacity||(C.cssHooks.opacity={get:function(t,e){return Ze.test((e&&t.currentStyle?t.currentStyle:t.style).filter||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var i=t.style,n=t.currentStyle,s=C.isNumeric(e)?"alpha(opacity="+100*e+")":"",o=n&&n.filter||i.filter||"";(i.zoom=1)<=e&&""===C.trim(o.replace(Je,""))&&i.removeAttribute&&(i.removeAttribute("filter"),n)&&!n.filter||(i.filter=Je.test(o)?o.replace(Je,s):o+" "+s)}}),C(function(){C.support.reliableMarginRight||(C.cssHooks.marginRight={get:function(t,e){return C.swap(t,{display:"inline-block"},function(){if(e)return f(t,"marginRight")})}}),!C.support.pixelPosition&&C.fn.position&&C.each(["top","left"],function(t,n){C.cssHooks[n]={get:function(t,e){var i;if(e)return i=f(t,n),si.test(i)?C(t).position()[n]+"px":i}}})}),C.expr&&C.expr.filters&&(C.expr.filters.hidden=function(t){return 0===t.offsetWidth&&0===t.offsetHeight||!C.support.reliableHiddenOffsets&&"none"===(t.style&&t.style.display||f(t,"display"))},C.expr.filters.visible=function(t){return!C.expr.filters.hidden(t)}),C.each({margin:"",padding:"",border:"Width"},function(s,o){C.cssHooks[s+o]={expand:function(t){for(var e="string"==typeof t?t.split(" "):[t],i={},n=0;n<4;n++)i[s+y[n]+o]=e[n]||e[n-2]||e[0];return i}},ii.test(s)||(C.cssHooks[s+o].set=fi)});var _i=/%20/g,bi=/\[\]$/,yi=/\r?\n/g,wi=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,xi=/^(?:select|textarea)/i;C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?C.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||xi.test(this.nodeName)||wi.test(this.type))}).map(function(t,i){var e=C(this).val();return null==e?null:C.isArray(e)?C.map(e,function(t,e){return{name:i.name,value:t.replace(yi,"\r\n")}}):{name:i.name,value:e.replace(yi,"\r\n")}}).get()}}),C.param=function(t,e){var i,n=[],s=function(t,e){e=C.isFunction(e)?e():null==e?"":e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(e===k&&(e=C.ajaxSettings&&C.ajaxSettings.traditional),C.isArray(t)||t.jquery&&!C.isPlainObject(t))C.each(t,function(){s(this.name,this.value)});else for(i in t)!function o(i,t,n,s){if(C.isArray(t))C.each(t,function(t,e){n||bi.test(i)?s(i,e):o(i+"["+("object"==typeof e?t:"")+"]",e,n,s)});else if(n||"object"!==C.type(t))s(i,t);else for(var e in t)o(i+"["+e+"]",t[e],n,s)}(i,t[i],e,s);return n.join("&").replace(_i,"+")};var M,P,ki=/#.*$/,Ci=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ti=/^(?:GET|HEAD)$/,Di=/^\/\//,Si=/\?/,Ii=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Mi=/([?&])_=[^&]*/,Pi=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,$i=C.fn.load,Ai={},Oi={},Ni=["*/"]+["*"];try{P=L.href}catch(E){(P=v.createElement("a")).href="",P=P.href}function Ei(a){return function(t,e){"string"!=typeof t&&(e=t,t="*");var i,n,s=t.toLowerCase().split(T),o=0,r=s.length;if(C.isFunction(e))for(;o<r;o++)i=s[o],(n=/^\+/.test(i))&&(i=i.substr(1)||"*"),(a[i]=a[i]||[])[n?"unshift":"push"](e)}}function Hi(t,e,i,n,s,o){(o=o||{})[s=s||e.dataTypes[0]]=!0;for(var r,a=t[s],l=0,c=a?a.length:0,h=t===Ai;l<c&&(h||!r);l++)"string"==typeof(r=a[l](e,i,n))&&(r=!h||o[r]?k:(e.dataTypes.unshift(r),Hi(t,e,i,n,r,o)));return r=!h&&r||o["*"]?r:Hi(t,e,i,n,"*",o)}function zi(t,e){var i,n,s=C.ajaxSettings.flatOptions||{};for(i in e)e[i]!==k&&((s[i]?t:n=n||{})[i]=e[i]);n&&C.extend(!0,t,n)}function Li(t,e){var i,n,s,o,r=t.dataTypes.slice(),a=r[0],l={},c=0;if(t.dataFilter&&(e=t.dataFilter(e,t.dataType)),r[1])for(i in t.converters)l[i.toLowerCase()]=t.converters[i];for(;s=r[++c];)if("*"!==s){if("*"!==a&&a!==s){if(!(i=l[a+" "+s]||l["* "+s]))for(n in l)if((o=n.split(" "))[1]===s&&(i=l[a+" "+o[0]]||l["* "+o[0]])){!0===i?i=l[n]:!0!==l[n]&&(s=o[0],r.splice(c--,0,s));break}if(!0!==i)if(i&&t["throws"])e=i(e);else try{e=i(e)}catch(E){return{state:"parsererror",error:i?E:"No conversion from "+a+" to "+s}}}a=s}return{state:"success",data:e}}M=Pi.exec(P.toLowerCase())||[],C.fn.load=function(t,e,i){var n,s,o,r,a;return"string"!=typeof t&&$i?$i.apply(this,arguments):(this.length&&(r=this,0<=(a=t.indexOf(" "))&&(n=t.slice(a,t.length),t=t.slice(0,a)),C.isFunction(e)?(i=e,e=k):e&&"object"==typeof e&&(s="POST"),C.ajax({url:t,type:s,dataType:"html",data:e,complete:function(t,e){i&&r.each(i,o||[t.responseText,e,t])}}).done(function(t){o=arguments,r.html(n?C("<div>").append(t.replace(Ii,"")).find(n):t)})),this)},C.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(t,e){C.fn[e]=function(t){return this.on(e,t)}}),C.each(["get","post"],function(t,s){C[s]=function(t,e,i,n){return C.isFunction(e)&&(n=n||i,i=e,e=k),C.ajax({type:s,url:t,data:e,success:i,dataType:n})}}),C.extend({getScript:function(t,e){return C.get(t,k,e,"script")},getJSON:function(t,e,i){return C.get(t,e,i,"json")},ajaxSetup:function(t,e){return e?zi(t,C.ajaxSettings):(e=t,t=C.ajaxSettings),zi(t,e),t},ajaxSettings:{url:P,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(M[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,"async":!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Ni},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":g.String,"text html":!0,"text json":C.parseJSON,"text xml":C.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:Ei(Ai),ajaxTransport:Ei(Oi),ajax:function(t,e){"object"==typeof t&&(e=t,t=k);var h,u,i,d,p,n,f=C.ajaxSetup({},e=e||{}),m=f.context||f,g=m!==f&&(m.nodeType||m instanceof C)?C(m):C.event,v=C.Deferred(),_=C.Callbacks("once memory"),b=f.statusCode||{},s={},o={},y=0,r="canceled",w={readyState:0,setRequestHeader:function(t,e){var i;return y||(i=t.toLowerCase(),t=o[i]=o[i]||t,s[t]=e),this},getAllResponseHeaders:function(){return 2===y?u:null},getResponseHeader:function(t){var e;if(2===y){if(!i)for(i={};e=Ci.exec(u);)i[e[1].toLowerCase()]=e[2];e=i[t.toLowerCase()]}return e===k?null:e},overrideMimeType:function(t){return y||(f.mimeType=t),this},abort:function(t){return t=t||r,d&&d.abort(t),a(0,t),this}};function a(t,e,i,n){var s,o,r,a,l,c=e;2!==y&&(y=2,p&&clearTimeout(p),d=k,u=n||"",w.readyState=0<t?4:0,i&&(a=function(t,e,i){var n,s,o,r,a=t.contents,l=t.dataTypes,c=t.responseFields;for(s in c)s in i&&(e[c[s]]=i[s]);for(;"*"===l[0];)l.shift(),n===k&&(n=t.mimeType||e.getResponseHeader("content-type"));if(n)for(s in a)if(a[s]&&a[s].test(n)){l.unshift(s);break}if(l[0]in i)o=l[0];else{for(s in i){if(!l[0]||t.converters[s+" "+l[0]]){o=s;break}r=r||s}o=o||r}if(o)return o!==l[0]&&l.unshift(o),i[o]}(f,w,i)),200<=t&&t<300||304===t?(f.ifModified&&((l=w.getResponseHeader("Last-Modified"))&&(C.lastModified[h]=l),l=w.getResponseHeader("Etag"))&&(C.etag[h]=l),s=304===t?(c="notmodified",!0):(c=(s=Li(f,a)).state,o=s.data,!(r=s.error))):(r=c)&&!t||(c="error",t<0&&(t=0)),w.status=t,w.statusText=(e||c)+"",s?v.resolveWith(m,[o,c,w]):v.rejectWith(m,[w,c,r]),w.statusCode(b),b=k,x&&g.trigger("ajax"+(s?"Success":"Error"),[w,f,s?o:r]),_.fireWith(m,[w,c]),x)&&(g.trigger("ajaxComplete",[w,f]),--C.active||C.event.trigger("ajaxStop"))}if(v.promise(w),w.success=w.done,w.error=w.fail,w.complete=_.add,w.statusCode=function(t){if(t)if(y<2)for(var e in t)b[e]=[b[e],t[e]];else e=t[w.status],w.always(e);return this},f.url=((t||f.url)+"").replace(ki,"").replace(Di,M[1]+"//"),f.dataTypes=C.trim(f.dataType||"*").toLowerCase().split(T),null==f.crossDomain&&(l=Pi.exec(f.url.toLowerCase()),f.crossDomain=!(!l||l[1]===M[1]&&l[2]===M[2]&&(l[3]||("http:"===l[1]?80:443))==(M[3]||("http:"===M[1]?80:443)))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=C.param(f.data,f.traditional)),Hi(Ai,f,e,w),2!==y){var l,c,x=f.global;for(n in f.type=f.type.toUpperCase(),f.hasContent=!Ti.test(f.type),x&&0==C.active++&&C.event.trigger("ajaxStart"),f.hasContent||(f.data&&(f.url+=(Si.test(f.url)?"&":"?")+f.data,delete f.data),h=f.url,!1===f.cache&&(l=C.now(),c=f.url.replace(Mi,"$1_="+l),f.url=c+(c===f.url?(Si.test(f.url)?"&":"?")+"_="+l:""))),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&w.setRequestHeader("Content-Type",f.contentType),f.ifModified&&(h=h||f.url,C.lastModified[h]&&w.setRequestHeader("If-Modified-Since",C.lastModified[h]),C.etag[h])&&w.setRequestHeader("If-None-Match",C.etag[h]),w.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ni+"; q=0.01":""):f.accepts["*"]),f.headers)w.setRequestHeader(n,f.headers[n]);if(f.beforeSend&&(!1===f.beforeSend.call(m,w,f)||2===y))return w.abort();for(n in r="abort",{success:1,error:1,complete:1})w[n](f[n]);if(d=Hi(Oi,f,e,w)){w.readyState=1,x&&g.trigger("ajaxSend",[w,f]),f["async"]&&0<f.timeout&&(p=setTimeout(function(){w.abort("timeout")},f.timeout));try{y=1,d.send(s,a)}catch(E){if(!(y<2))throw E;a(-1,E)}}else a(-1,"No Transport")}return w},active:0,lastModified:{},etag:{}});var ji=[],Wi=/\?/,Fi=/(=)\?(?=&|$)|\?\?/,Ri=C.now();C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=ji.pop()||C.expando+"_"+Ri++;return this[t]=!0,t}}),C.ajaxPrefilter("json jsonp",function(t,e,i){var n,s,o,r=t.data,a=t.url,l=!1!==t.jsonp,c=l&&Fi.test(a),h=l&&!c&&"string"==typeof r&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Fi.test(r);if("jsonp"===t.dataTypes[0]||c||h)return n=t.jsonpCallback=C.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s=g[n],c?t.url=a.replace(Fi,"$1"+n):h?t.data=r.replace(Fi,"$1"+n):l&&(t.url+=(Wi.test(a)?"&":"?")+t.jsonp+"="+n),t.converters["script json"]=function(){return o||C.error(n+" was not called"),o[0]},t.dataTypes[0]="json",g[n]=function(){o=arguments},i.always(function(){g[n]=s,t[n]&&(t.jsonpCallback=e.jsonpCallback,ji.push(n)),o&&C.isFunction(s)&&s(o[0]),o=s=k}),"script"}),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(t){return C.globalEval(t),t}}}),C.ajaxPrefilter("script",function(t){t.cache===k&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),C.ajaxTransport("script",function(e){var n,s;if(e.crossDomain)return s=v.head||v.getElementsByTagName("head")[0]||v.documentElement,{send:function(t,i){(n=v.createElement("script"))["async"]="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(t,e){!e&&n.readyState&&!/loaded|complete/.test(n.readyState)||(n.onload=n.onreadystatechange=null,s&&n.parentNode&&s.removeChild(n),n=k,e)||i(200,"success")},s.insertBefore(n,s.firstChild)},abort:function(){n&&n.onload(0,1)}}});var $,Bi=!!g.ActiveXObject&&function(){for(var t in $)$[t](0,1)},qi=0;function Ui(){try{return new g.XMLHttpRequest}catch(E){}}C.ajaxSettings.xhr=g.ActiveXObject?function(){return!this.isLocal&&Ui()||function(){try{return new g.ActiveXObject("Microsoft.XMLHTTP")}catch(E){}}()}:Ui,qt=C.ajaxSettings.xhr(),C.extend(C.support,{ajax:!!qt,cors:!!qt&&"withCredentials"in qt}),C.support.ajax&&C.ajaxTransport(function(u){var d;if(!u.crossDomain||C.support.cors)return{send:function(t,l){var c,e,h=u.xhr();if(u.username?h.open(u.type,u.url,u["async"],u.username,u.password):h.open(u.type,u.url,u["async"]),u.xhrFields)for(e in u.xhrFields)h[e]=u.xhrFields[e];u.mimeType&&h.overrideMimeType&&h.overrideMimeType(u.mimeType),u.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest");try{for(e in t)h.setRequestHeader(e,t[e])}catch(i){}h.send(u.hasContent&&u.data||null),d=function(t,e){var i,n,s,o,r;try{if(d&&(e||4===h.readyState))if(d=k,c&&(h.onreadystatechange=C.noop,Bi)&&delete $[c],e)4!==h.readyState&&h.abort();else{i=h.status,s=h.getAllResponseHeaders(),o={},(r=h.responseXML)&&r.documentElement&&(o.xml=r);try{o.text=h.responseText}catch(E){}try{n=h.statusText}catch(E){n=""}i||!u.isLocal||u.crossDomain?1223===i&&(i=204):i=o.text?200:404}}catch(a){e||l(-1,a)}o&&l(i,n,o,s)},u["async"]?4===h.readyState?setTimeout(d,0):(c=++qi,Bi&&($||($={},C(g).unload(Bi)),$[c]=d),h.onreadystatechange=d):d()},abort:function(){d&&d(0,1)}}});var A,Yi,Vi=/^(?:toggle|show|hide)$/,Xi=new RegExp("^(?:([-+])=|)("+V+")([a-z%]*)$","i"),Ki=/queueHooks$/,Gi=[function(e,t,i){var n,s,o,r,a,l,c,h,u,d=this,p=e.style,f={},m=[],g=e.nodeType&&di(e);i.queue||(null==(h=C._queueHooks(e,"fx")).unqueued&&(h.unqueued=0,u=h.empty.fire,h.empty.fire=function(){h.unqueued||u()}),h.unqueued++,d.always(function(){d.always(function(){h.unqueued--,C.queue(e,"fx").length||h.empty.fire()})}));1===e.nodeType&&("height"in t||"width"in t)&&(i.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===C.css(e,"display"))&&"none"===C.css(e,"float")&&(C.support.inlineBlockNeedsLayout&&"inline"!==vi(e.nodeName)?p.zoom=1:p.display="inline-block");i.overflow&&(p.overflow="hidden",C.support.shrinkWrapBlocks||d.done(function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.overflow[2]}));for(n in t)o=t[n],Vi.exec(o)&&(delete t[n],l=l||"toggle"===o,o!==(g?"hide":"show"))&&m.push(n);if(r=m.length){"hidden"in(a=C._data(e,"fxshow")||C._data(e,"fxshow",{}))&&(g=a.hidden),l&&(a.hidden=!g),g?C(e).show():d.done(function(){C(e).hide()}),d.done(function(){for(var t in C.removeData(e,"fxshow",!0),f)C.style(e,t,f[t])});for(n=0;n<r;n++)s=m[n],c=d.createTween(s,g?a[s]:0),f[s]=a[s]||C.style(e,s),s in a||(a[s]=c.start,g&&(c.end=c.start,c.start="width"===s||"height"===s?1:0))}}],Qi={"*":[function(t,e){var i,n,s=this.createTween(t,e),o=Xi.exec(e),r=s.cur(),a=+r||0,l=1,c=20;if(o){if(i=+o[2],"px"!==(n=o[3]||(C.cssNumber[t]?"":"px"))&&a)for(a=C.css(s.elem,t,!0)||i||1;a/=l=l||".5",C.style(s.elem,t,a+n),l!==(l=s.cur()/r)&&1!==l&&--c;);s.unit=n,s.start=a,s.end=o[1]?a+(o[1]+1)*i:i}return s}]};function Ji(){return setTimeout(function(){A=k},0),A=C.now()}function Zi(s,t,e){var i,n,o,r,a,l,c,h=0,u=Gi.length,d=C.Deferred().always(function(){delete p.elem}),p=function(){for(var t=A||Ji(),t=Math.max(0,f.startTime+f.duration-t),e=1-(t/f.duration||0),i=0,n=f.tweens.length;i<n;i++)f.tweens[i].run(e);return d.notifyWith(s,[f,e,t]),e<1&&n?t:(d.resolveWith(s,[f]),!1)},f=d.promise({elem:s,props:C.extend({},t),opts:C.extend(!0,{specialEasing:{}},e),originalProperties:t,originalOptions:e,startTime:A||Ji(),duration:e.duration,tweens:[],createTween:function(t,e,i){var n=C.Tween(s,f.opts,t,e,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(n),n},stop:function(t){for(var e=0,i=t?f.tweens.length:0;e<i;e++)f.tweens[e].run(1);return t?d.resolveWith(s,[f,t]):d.rejectWith(s,[f,t]),this}}),m=f.props,g=m,v=f.opts.specialEasing;for(n in g)if(o=C.camelCase(n),r=v[o],a=g[n],C.isArray(a)&&(r=a[1],a=g[n]=a[0]),n!==o&&(g[o]=a,delete g[n]),(l=C.cssHooks[o])&&"expand"in l)for(n in a=l.expand(a),delete g[o],a)n in g||(g[n]=a[n],v[n]=r);else v[o]=r;for(;h<u;h++)if(i=Gi[h].call(f,s,m,f.opts))return i;return c=f,C.each(m,function(t,e){for(var i=(Qi[t]||[]).concat(Qi["*"]),n=0,s=i.length;n<s;n++)if(i[n].call(c,t,e))return}),C.isFunction(f.opts.start)&&f.opts.start.call(s,f),C.fx.timer(C.extend(p,{anim:f,queue:f.opts.queue,elem:s})),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always)}function O(t,e,i,n,s){return new O.prototype.init(t,e,i,n,s)}function tn(t,e){var i,n={height:t},s=0;for(e=e?1:0;s<4;s+=2-e)n["margin"+(i=y[s])]=n["padding"+i]=t;return e&&(n.opacity=n.width=t),n}C.Animation=C.extend(Zi,{tweener:function(t,e){for(var i,n=0,s=(t=C.isFunction(t)?(e=t,["*"]):t.split(" ")).length;n<s;n++)i=t[n],Qi[i]=Qi[i]||[],Qi[i].unshift(e)},prefilter:function(t,e){e?Gi.unshift(t):Gi.push(t)}}),((C.Tween=O).prototype={constructor:O,init:function(t,e,i,n,s,o){this.elem=t,this.prop=i,this.easing=s||"swing",this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(C.cssNumber[i]?"":"px")},cur:function(){var t=O.propHooks[this.prop];return(t&&t.get?t:O.propHooks._default).get(this)},run:function(t){var e,i=O.propHooks[this.prop];return this.options.duration?this.pos=e=C.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(i&&i.set?i:O.propHooks._default).set(this),this}}).init.prototype=O.prototype,(O.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=C.css(t.elem,t.prop,!1,""))&&"auto"!==e?e:0:t.elem[t.prop]},set:function(t){C.fx.step[t.prop]?C.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[C.cssProps[t.prop]]||C.cssHooks[t.prop])?C.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}}).scrollTop=O.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},C.each(["toggle","show","hide"],function(n,s){var o=C.fn[s];C.fn[s]=function(t,e,i){return null==t||"boolean"==typeof t||!n&&C.isFunction(t)&&C.isFunction(e)?o.apply(this,arguments):this.animate(tn(s,!0),t,e,i)}}),C.fn.extend({fadeTo:function(t,e,i,n){return this.filter(di).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(e,t,i,n){var s=C.isEmptyObject(e),o=C.speed(t,i,n),r=function(){var t=Zi(this,C.extend({},e),o);s&&t.stop(!0)};return s||!1===o.queue?this.each(r):this.queue(o.queue,r)},stop:function(s,t,o){var r=function(t){var e=t.stop;delete t.stop,e(o)};return"string"!=typeof s&&(o=t,t=s,s=k),t&&!1!==s&&this.queue(s||"fx",[]),this.each(function(){var t=!0,e=null!=s&&s+"queueHooks",i=C.timers,n=C._data(this);if(e)n[e]&&n[e].stop&&r(n[e]);else for(e in n)n[e]&&n[e].stop&&Ki.test(e)&&r(n[e]);for(e=i.length;e--;)i[e].elem!==this||null!=s&&i[e].queue!==s||(i[e].anim.stop(o),t=!1,i.splice(e,1));!t&&o||C.dequeue(this,s)})}}),C.each({slideDown:tn("show"),slideUp:tn("hide"),slideToggle:tn("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,n){C.fn[t]=function(t,e,i){return this.animate(n,t,e,i)}}),C.speed=function(t,e,i){var n=t&&"object"==typeof t?C.extend({},t):{complete:i||!i&&e||C.isFunction(t)&&t,duration:t,easing:i&&e||e&&!C.isFunction(e)&&e};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.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},C.timers=[],C.fx=O.prototype.init,C.fx.tick=function(){var t,e=C.timers,i=0;for(A=C.now();i<e.length;i++)(t=e[i])()||e[i]!==t||e.splice(i--,1);e.length||C.fx.stop(),A=k},C.fx.timer=function(t){t()&&C.timers.push(t)&&!Yi&&(Yi=setInterval(C.fx.tick,C.fx.interval))},C.fx.interval=13,C.fx.stop=function(){clearInterval(Yi),Yi=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fx.step={},C.expr&&C.expr.filters&&(C.expr.filters.animated=function(e){return C.grep(C.timers,function(t){return e===t.elem}).length});var en=/^(?:body|html)$/i;function nn(t){return C.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}C.fn.offset=function(e){var t,i,n,s,o,r;return arguments.length?e===k?this:this.each(function(t){C.offset.setOffset(this,e,t)}):(s={top:0,left:0},(r=(o=this[0])&&o.ownerDocument)?(i=r.body)===o?C.offset.bodyOffset(o):(t=r.documentElement,C.contains(t,o)?("undefined"!=typeof o.getBoundingClientRect&&(s=o.getBoundingClientRect()),o=nn(r),r=t.clientTop||i.clientTop||0,i=t.clientLeft||i.clientLeft||0,n=o.pageYOffset||t.scrollTop,o=o.pageXOffset||t.scrollLeft,{top:s.top+n-r,left:s.left+o-i}):s):void 0)},C.offset={bodyOffset:function(t){var e=t.offsetTop,i=t.offsetLeft;return C.support.doesNotIncludeMarginInBodyOffset&&(e+=parseFloat(C.css(t,"marginTop"))||0,i+=parseFloat(C.css(t,"marginLeft"))||0),{top:e,left:i}},setOffset:function(t,e,i){var n,s=C.css(t,"position"),o=("static"===s&&(t.style.position="relative"),C(t)),r=o.offset(),a=C.css(t,"top"),l=C.css(t,"left"),c={},s=("absolute"===s||"fixed"===s)&&-1<C.inArray("auto",[a,l])?(n=(s=o.position()).top,s.left):(n=parseFloat(a)||0,parseFloat(l)||0);null!=(e=C.isFunction(e)?e.call(t,i,r):e).top&&(c.top=e.top-r.top+n),null!=e.left&&(c.left=e.left-r.left+s),"using"in e?e.using.call(t,c):o.css(c)}},C.fn.extend({position:function(){var t,e,i,n;if(this[0])return t=this[0],e=this.offsetParent(),i=this.offset(),n=en.test(e[0].nodeName)?{top:0,left:0}:e.offset(),i.top-=parseFloat(C.css(t,"marginTop"))||0,i.left-=parseFloat(C.css(t,"marginLeft"))||0,n.top+=parseFloat(C.css(e[0],"borderTopWidth"))||0,n.left+=parseFloat(C.css(e[0],"borderLeftWidth"))||0,{top:i.top-n.top,left:i.left-n.left}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||v.body;t&&!en.test(t.nodeName)&&"static"===C.css(t,"position");)t=t.offsetParent;return t||v.body})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,s){var o=/Y/.test(s);C.fn[e]=function(t){return C.access(this,function(t,e,i){var n=nn(t);if(i===k)return n?s in n?n[s]:n.document.documentElement[e]:t[e];n?n.scrollTo(o?C(n).scrollLeft():i,o?i:C(n).scrollTop()):t[e]=i},e,t,arguments.length,null)}}),C.each({Height:"height",Width:"width"},function(o,r){C.each({padding:"inner"+o,content:r,"":"outer"+o},function(n,t){C.fn[t]=function(t,e){var i=arguments.length&&(n||"boolean"!=typeof t),s=n||(!0===t||!0===e?"margin":"border");return C.access(this,function(t,e,i){var n;return C.isWindow(t)?t.document.documentElement["client"+o]:9===t.nodeType?(n=t.documentElement,Math.max(t.body["scroll"+o],n["scroll"+o],t.body["offset"+o],n["offset"+o],n["client"+o])):i===k?C.css(t,e,i,s):C.style(t,e,i,s)},r,i?t:k,i,null)}})}),g.jQuery=g.$=C,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return C})}(window), /*! Copyright (c) 2011 Peter van der Spek Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ function(l){var s,o={},r=!1,a={ellipsis:"...",setTitle:"never",live:!1};function c(t,n){var s=(t.data("jqae")||{}).wrapperElement,e=(s||(s=t.wrapInner("<div/>").find(">div")).css({margin:0,padding:0,border:0}),s.data("jqae")),i=(e=e||{}).originalContent,o=(i?s=e.originalContent.clone(!0).data("jqae",{originalContent:i}).replaceAll(s):s.data("jqae",{originalContent:s.clone(!0)}),t.data("jqae",{wrapperElement:s,containerWidth:t.width(),containerHeight:t.height()}),t.height()),r=(parseInt(t.css("padding-top"),10)||0)+(parseInt(t.css("border-top-width"),10)||0)-(s.offset().top-t.offset().top),a=!1,e=s;(e=n.selector?l(s.find(n.selector).get().reverse()):e).each(function(){var t=l(this),e=t.text(),i=!1;if(s.innerHeight()-t.innerHeight()>o+r)t.remove();else if(u(t),t.contents().length){for(a&&(h(t).get(0).nodeValue+=n.ellipsis,a=!1);s.innerHeight()>o+r;){if(!(i=function(t){var e=h(t);{var i,n;if(e.length)return i=e.get(0).nodeValue,-1<(n=i.lastIndexOf(" "))?(i=l.trim(i.substring(0,n)),e.get(0).nodeValue=i):e.get(0).nodeValue="",!0}return!1}(t))){a=!0,t.remove();break}if(u(t),!t.contents().length){a=!0,t.remove();break}h(t).get(0).nodeValue+=n.ellipsis}"onEllipsis"==n.setTitle&&i||"always"==n.setTitle?t.attr("title",e):"never"!=n.setTitle&&t.removeAttr("title")}})}function h(t){var e,i;return t.contents().length?("BR"==(e=(i=t.contents()).eq(i.length-1)).get(0).tagName&&(e.remove(),e=(i=t.contents()).eq(i.length-1)),e.filter(n).length?e:h(e)):(t.append(" "),(i=t.contents()).eq(i.length-1))}function u(t){if(t.contents().length){var e=t.contents(),i=e.eq(e.length-1);if(i.filter(n).length)return e=i.get(0).nodeValue,""==(e=l.trim(e))&&(i.remove(),1);for(;u(i););return!i.contents().length&&(i.remove(),1)}}function n(){return 3===this.nodeType}l.fn.ellipsis=function(t,e){var i,n=l(this);return"string"!=typeof t&&(e=t,t=undefined),(i=l.extend({},a,e)).selector=t,n.each(function(){c(l(this),i)}),i.live?(e=n.selector,t=i,o[e]=t,s=s||window.setInterval(function(){if(!r){for(var i in r=!0,o)l(i).each(function(){var t=l(this),e=t.data("jqae");e.containerWidth==t.width()&&e.containerHeight==t.height()||c(t,o[i])});r=!1}},200)):(e=n.selector,o[e]&&(delete o[e],o.length||s&&(window.clearInterval(s),s=undefined))),this}}(jQuery),$.dbg=function(){for(var t="",e=0;e<arguments.length;e++)if(arguments[e]!=undefined)if("object"==typeof arguments[e])try{t+=function(t){var e,i=""+t,n=":";if(t==undefined)return"undefined";for(e in t)t[e]!=undefined&&(i+=n,t[e]==t?i+=e+":+SELF+":$.isFunction(t[e])?i+=e+":+FUNCTION+":"object"==typeof t[e]?i+=e+":{OBJECT}":"array"==typeof t[e]?i+=e+":[ARRAY]":"string"==typeof t[e]?i+=e+":'"+t[e]+"'":i+=e+":"+t[e],n=",");return"{"+i+"}"}(arguments[e])}catch(i){$.dbg(e+","+i)}else t+=arguments[e];return window.console?window.console.log(t):$("#debug").append("<br/>").append((new Date).getTime()+":"+t),$},window.console||(window.console={}),window.console.log||(window.console.log=function(){}),window.gcClosure=function(t){window.__objs[t.__objId]=null},Function.prototype.closure=function(t){window.__objs||(window.__objs=[],window.__funs=[]);var e=t.__objId,i=(e||(__objs[e=t.__objId=__objs.length]=t),this.__funId),n=(i||(__funs[i=this.__funId=__funs.length]=this),t.__closures||(t.__closures=[]),t.__closures[i]);return n||(t=null,__objs[e].__closures[i]=function(){return __funs[i].apply(__objs[e],arguments)})},function(o){var r,s,a,l={},n=o.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),c=!1;function h(t){return o.data(t,"tooltip")||{}}function i(){if(!o.tooltip.blocked&&this!=r&&(this.tooltipText||h(this).bodyHandler)){if(s=(r=this).tooltipText,h(this).bodyHandler){l.title.hide();var t=h(this).bodyHandler.call(this);t.nodeType||t.jquery?l.body.empty().append(t):l.body.html(t),l.body.show()}else if(h(this).showBody){var e=s.split(h(this).showBody);l.title.html(e.shift()).show(),l.body.empty();for(var i,n=0;i=e[n];n++)0<n&&l.body.append("<br/>"),l.body.append(i);l.body.hideWhenEmpty()}else l.title.html(s).show(),l.body.hide();h(this).showURL&&o(this).url()?l.url.html(o(this).url().replace("http://","")).show():l.url.hide(),l.parent.addClass(h(this).extraClass),h(this).fixPNG&&l.parent.fixPNG(),!(function(t){h(this).delay?a=setTimeout(u,h(this).delay):u(),c=!!h(this).track,o(document.body).bind("mousemove",d),d(t)}).apply(this,arguments)}}function u(){a=null,n&&o.fn.bgiframe||!h(r).fade?l.parent.show():l.parent.is(":animated")?l.parent.stop().show().fadeTo(h(r).fade,r.tOpacity):l.parent.is(":visible")?l.parent.fadeTo(h(r).fade,r.tOpacity):l.parent.fadeIn(h(r).fade),d()}function d(t){var e,i,n,s;o.tooltip.blocked||t&&"OPTION"==t.target.tagName||(!c&&l.parent.is(":visible")&&o(document.body).unbind("mousemove",d),null==r?o(document.body).unbind("mousemove",d):(l.parent.removeClass("viewport-right").removeClass("viewport-bottom"),e=l.parent[0].offsetLeft,i=l.parent[0].offsetTop,t&&(e=t.pageX+h(r).left,i=t.pageY+h(r).top,n="auto",h(r).positionLeft&&(n=o(window).width()-e,e="auto"),l.parent.css({left:e,right:n,top:i})),n={x:o(window).scrollLeft(),y:o(window).scrollTop(),cx:o(window).width(),cy:o(window).height()},s=l.parent[0],n.x+n.cx<s.offsetLeft+s.offsetWidth&&(e-=s.offsetWidth+20+h(r).left,l.parent.css({left:e+"px"}).addClass("viewport-right")),n.y+n.cy<s.offsetTop+s.offsetHeight&&(i-=s.offsetHeight+20+h(r).top,l.parent.css({top:i+"px"}).addClass("viewport-bottom"))))}function p(t){var e;function i(){l.parent.removeClass(e.extraClass).hide().css("opacity","")}o.tooltip.blocked||(a&&clearTimeout(a),r=null,e=h(this),n&&o.fn.bgiframe||!e.fade?i():l.parent.is(":animated")?l.parent.stop().fadeTo(e.fade,0,i):l.parent.stop().fadeOut(e.fade,i),h(this).fixPNG&&l.parent.unfixPNG())}o.tooltip={blocked:!1,defaults:{delay:200,fade:!1,showURL:!1,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){o.tooltip.blocked=!o.tooltip.blocked}},o.fn.extend({tooltip:function(t){var e;return n?this:(t=o.extend({},o.tooltip.defaults,t),e=t,l.parent||(l.parent=o('<div id="'+e.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide(),o.fn.bgiframe&&l.parent.bgiframe(),l.title=o("h3",l.parent),l.body=o("div.body",l.parent),l.url=o("div.url",l.parent)),this.each(function(){o.data(this,"tooltip",t),this.tOpacity=l.parent.css("opacity"),this.tooltipText=this.title,o(this).removeAttr("title"),this.alt=""}).mouseover(i).mouseout(p).click(p))},fixPNG:n?function(){return this.each(function(){var t=o(this).css("backgroundImage");t.match(/^url\(["']?(.*\.png)["']?\)$/i)&&(t=RegExp.$1,o(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+t+"')"}).each(function(){var t=o(this).css("position");"absolute"!=t&&"relative"!=t&&o(this).css("position","relative")}))})}:function(){return this},unfixPNG:n?function(){return this.each(function(){o(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){o(this)[o(this).html()?"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}})}(jQuery), /*! jQuery UI - v1.12.1 - 2017-08-10 * http://jqueryui.com * Includes: effect.js, effects/effect-slide.js * Copyright jQuery Foundation and other contributors; Licensed MIT */ function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(d){d.ui=d.ui||{};d.ui.version="1.12.1"; /*! * jQuery UI Effects 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */var h,u,a,p,t,f,m,g,l,e,v,o,s,r,c,_,i,n,b,y,w,x="ui-effects-",k="ui-effects-style",C="ui-effects-animated",T=d;function D(t,e,i){var n=g[e.type]||{};return null==t?i||!e.def?null:e.def:(t=n.floor?~~t:parseFloat(t),isNaN(t)?e.def:n.mod?(t+n.mod)%n.mod:t<0?0:n.max<t?n.max:t)}function S(s){var o=f(),r=o._rgba=[];return s=s.toLowerCase(),v(t,function(t,e){var i=e.re.exec(s),i=i&&e.parse(i),n=e.space||"rgba";if(i)return i=o[n](i),o[m[n].cache]=i[m[n].cache],r=o._rgba=i._rgba,!1}),r.length?("0,0,0,0"===r.join()&&h.extend(r,a.transparent),o):a[s]}function I(t,e,i){return 6*(i=(i+1)%1)<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function M(t){var e,i,n=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,s={};if(n&&n.length&&n[0]&&n[n[0]])for(i=n.length;i--;)"string"==typeof n[e=n[i]]&&(s[d.camelCase(e)]=n[e]);else for(e in n)"string"==typeof n[e]&&(s[e]=n[e]);return s}function P(t,e,i,n){return t={effect:t=d.isPlainObject(t)?(e=t).effect:t},d.isFunction(e=null==e?{}:e)&&(n=e,i=null,e={}),"number"!=typeof e&&!d.fx.speeds[e]||(n=i,i=e,e={}),d.isFunction(i)&&(n=i,i=null),e&&d.extend(t,e),i=i||e.duration,t.duration=d.fx.off?0:"number"==typeof i?i:i in d.fx.speeds?d.fx.speeds[i]:d.fx.speeds._default,t.complete=n||e.complete,t}function $(t){return!t||"number"==typeof t||d.fx.speeds[t]||"string"==typeof t&&!d.effects.effect[t]||d.isFunction(t)||"object"==typeof t&&!t.effect}function A(t,e){var i=e.outerWidth(),n=e.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(t)||["",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}}d.effects={effect:{}}, /*! * jQuery Color Animations v2.1.2 * https://github.com/jquery/jquery-color * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * Date: Wed Jan 16 08:47:09 2013 -0600 */ p=/^([\-+])=\s*(\d+\.?\d*)/,t=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],f=(h=T).Color=function(t,e,i,n){return new h.Color.fn.parse(t,e,i,n)},m={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"}}}},g={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},l=f.support={},e=h("<p>")[0],v=h.each,e.style.cssText="background-color:rgba(1,1,1,.5)",l.rgba=-1<e.style.backgroundColor.indexOf("rgba"),v(m,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),(f.fn=h.extend(f.prototype,{parse:function(s,t,e,i){if(s===u)return this._rgba=[null,null,null,null],this;(s.jquery||s.nodeType)&&(s=h(s).css(t),t=u);var o=this,n=h.type(s),r=this._rgba=[];return t!==u&&(s=[s,t,e,i],n="array"),"string"===n?this.parse(S(s)||a._default):"array"===n?(v(m.rgba.props,function(t,e){r[e.idx]=D(s[e.idx],e)}),this):"object"===n?(s instanceof f?v(m,function(t,e){s[e.cache]&&(o[e.cache]=s[e.cache].slice())}):v(m,function(t,i){var n=i.cache;v(i.props,function(t,e){if(!o[n]&&i.to){if("alpha"===t||null==s[t])return;o[n]=i.to(o._rgba)}o[n][e.idx]=D(s[t],e,!0)}),o[n]&&h.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(t){var s=f(t),o=!0,r=this;return v(m,function(t,e){var i,n=s[e.cache];return n&&(i=r[e.cache]||e.to&&e.to(r._rgba)||[],v(e.props,function(t,e){if(null!=n[e.idx])return o=n[e.idx]===i[e.idx]})),o}),o},_space:function(){var i=[],n=this;return v(m,function(t,e){n[e.cache]&&i.push(t)}),i.pop()},transition:function(t,r){var e=(c=f(t))._space(),i=m[e],n=0===this.alpha()?f("transparent"):this,a=n[i.cache]||i.to(n._rgba),l=a.slice(),c=c[i.cache];return v(i.props,function(t,e){var i=e.idx,n=a[i],s=c[i],o=g[e.type]||{};null!==s&&(null===n?l[i]=s:(o.mod&&(s-n>o.mod/2?n+=o.mod:n-s>o.mod/2&&(n-=o.mod)),l[i]=D((s-n)*r+n,e)))}),this[e](l)},blend:function(t){var e,i,n;return 1===this._rgba[3]?this:(e=this._rgba.slice(),i=e.pop(),n=f(t)._rgba,f(h.map(e,function(t,e){return(1-i)*n[e]+i*t})))},toRgbaString:function(){var t="rgba(",e=h.map(this._rgba,function(t,e){return null==t?2<e?1:0:t});return 1===e[3]&&(e.pop(),t="rgb("),t+e.join()+")"},toHslaString:function(){var t="hsla(",e=h.map(this.hsla(),function(t,e){return null==t&&(t=2<e?1:0),t=e&&e<3?Math.round(100*t)+"%":t});return 1===e[3]&&(e.pop(),t="hsl("),t+e.join()+")"},toHexString:function(t){var e=this._rgba.slice(),i=e.pop();return t&&e.push(~~(255*i)),"#"+h.map(e,function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}})).parse.prototype=f.fn,m.hsla.to=function(t){var e,i,n,s,o,r,a,l,c;return null==t[0]||null==t[1]||null==t[2]?[null,null,null,t[3]]:(e=t[0]/255,i=t[1]/255,n=t[2]/255,s=t[3],o=(c=Math.max(e,i,n))-(l=Math.min(e,i,n)),a=.5*(r=c+l),l=l===c?0:e===c?60*(i-n)/o+360:i===c?60*(n-e)/o+120:60*(e-i)/o+240,c=0==o?0:a<=.5?o/r:o/(2-r),[Math.round(l)%360,c,a,null==s?1:s])},m.hsla.from=function(t){var e,i,n,s;return null==t[0]||null==t[1]||null==t[2]?[null,null,null,t[3]]:(e=t[0]/360,s=t[1],n=t[2],i=t[3],s=2*n-(n=n<=.5?n*(1+s):n+s-n*s),[Math.round(255*I(s,n,e+1/3)),Math.round(255*I(s,n,e)),Math.round(255*I(s,n,e-1/3)),i])},v(m,function(a,t){var i=t.props,r=t.cache,l=t.to,c=t.from;f.fn[a]=function(t){var e,n,s,o;return l&&!this[r]&&(this[r]=l(this._rgba)),t===u?this[r].slice():(n=h.type(t),s="array"===n||"object"===n?t:arguments,o=this[r].slice(),v(i,function(t,e){var i=s["object"===n?t:e.idx];null==i&&(i=o[e.idx]),o[e.idx]=D(i,e)}),c?((e=f(c(o)))[r]=o,e):f(o))},v(i,function(o,r){f.fn[o]||(f.fn[o]=function(t){var e=h.type(t),i="alpha"===o?this._hsla?"hsla":"rgba":a,n=this[i](),s=n[r.idx];return"undefined"===e?s:("function"===e&&(t=t.call(this,s),e=h.type(t)),null==t&&r.empty?this:("string"===e&&(e=p.exec(t))&&(t=s+parseFloat(e[2])*("+"===e[1]?1:-1)),n[r.idx]=t,this[i](n)))})})}),(f.hook=function(t){var e=t.split(" ");v(e,function(t,r){h.cssHooks[r]={set:function(t,e){var i,n,s="";if("transparent"!==e&&("string"!==h.type(e)||(i=S(e)))){if(e=f(i||e),!l.rgba&&1!==e._rgba[3]){for(n="backgroundColor"===r?t.parentNode:t;(""===s||"transparent"===s)&&n&&n.style;)try{s=h.css(n,"backgroundColor"),n=n.parentNode}catch(o){}e=e.blend(s&&"transparent"!==s?s:"_default")}e=e.toRgbaString()}try{t.style[r]=e}catch(o){}}},h.fx.step[r]=function(t){t.colorInit||(t.start=f(t.elem,r),t.end=f(t.end),t.colorInit=!0),h.cssHooks[r].set(t.elem,t.start.transition(t.end,t.pos))}})})("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),h.cssHooks.borderColor={expand:function(i){var n={};return v(["Top","Right","Bottom","Left"],function(t,e){n["border"+e+"Color"]=i}),n}},a=h.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=["add","remove","toggle"],_={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},d.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,e){d.fx.step[e]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(T.style(t.elem,e,t.end),t.setAttr=!0)}}),d.fn.addBack||(d.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),d.effects.animateClass=function(s,t,e,i){var o=d.speed(t,e,i);return this.queue(function(){var i=d(this),t=i.attr("class")||"",e=(e=o.children?i.find("*").addBack():i).map(function(){return{el:d(this),start:M(this)}}),n=function(){d.each(c,function(t,e){s[e]&&i[e+"Class"](s[e])})};n(),e=e.map(function(){return this.end=M(this.el[0]),this.diff=function(t,e){var i,n,s={};for(i in e)n=e[i],t[i]===n||_[i]||!d.fx.step[i]&&isNaN(parseFloat(n))||(s[i]=n);return s}(this.start,this.end),this}),i.attr("class",t),e=e.map(function(){var t=this,e=d.Deferred(),i=d.extend({},o,{queue:!1,complete:function(){e.resolve(t)}});return this.el.animate(this.diff,i),e.promise()}),d.when.apply(d,e.get()).done(function(){n(),d.each(arguments,function(){var e=this.el;d.each(this.diff,function(t){e.css(t,"")})}),o.complete.call(i[0])})})},d.fn.extend({addClass:(r=d.fn.addClass,function(t,e,i,n){return e?d.effects.animateClass.call(this,{add:t},e,i,n):r.apply(this,arguments)}),removeClass:(s=d.fn.removeClass,function(t,e,i,n){return 1<arguments.length?d.effects.animateClass.call(this,{remove:t},e,i,n):s.apply(this,arguments)}),toggleClass:(o=d.fn.toggleClass,function(t,e,i,n,s){return"boolean"==typeof e||e===undefined?i?d.effects.animateClass.call(this,e?{add:t}:{remove:t},i,n,s):o.apply(this,arguments):d.effects.animateClass.call(this,{toggle:t},e,i,n)}),switchClass:function(t,e,i,n,s){return d.effects.animateClass.call(this,{add:e,remove:t},i,n,s)}}),d.expr&&d.expr.filters&&d.expr.filters.animated&&(d.expr.filters.animated=(i=d.expr.filters.animated,function(t){return!!d(t).data(C)||i(t)})),!1!==d.uiBackCompat&&d.extend(d.effects,{save:function(t,e){for(var i=0,n=e.length;i<n;i++)null!==e[i]&&t.data(x+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,n=0,s=e.length;n<s;n++)null!==e[n]&&(i=t.data(x+e[n]),t.css(e[n],i))},setMode:function(t,e){return e="toggle"===e?t.is(":hidden")?"show":"hide":e},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")},t=d("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:i.width(),height:i.height()},s=document.activeElement;try{s.id}catch(o){s=document.body}return i.wrap(t),i[0]!==s&&!d.contains(i[0],s)||d(s).trigger("focus"),t=i.parent(),"static"===i.css("position")?(t.css({position:"relative"}),i.css({position:"relative"})):(d.extend(n,{position:i.css("position"),zIndex:i.css("z-index")}),d.each(["top","left","bottom","right"],function(t,e){n[e]=i.css(e),isNaN(parseInt(n[e],10))&&(n[e]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(e),t.css(n).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!d.contains(t[0],e)||d(e).trigger("focus")),t}}),d.extend(d.effects,{version:"1.12.1",define:function(t,e,i){return i||(i=e,e="effect"),d.effects.effect[t]=i,d.effects.effect[t].mode=e,i},scaledDimensions:function(t,e,i){var n,s;return 0===e?{height:0,width:0,outerHeight:0,outerWidth:0}:(n="horizontal"!==i?(e||100)/100:1,s="vertical"!==i?(e||100)/100:1,{height:t.height()*s,width:t.width()*n,outerHeight:t.outerHeight()*s,outerWidth:t.outerWidth()*n})},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var n=t.queue();1<e&&n.splice.apply(n,[1,0].concat(n.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(k,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(k)||"",t.removeData(k)},mode:function(t,e){var i=t.is(":hidden");return"toggle"===e&&(e=i?"show":"hide"),e=(i?"hide"===e:"show"===e)?"none":e},getBaseline:function(t,e){var i,n;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=t[1]/e.width}return{x:n,y:i}},createPlaceholder:function(t){var e,i=t.css("position"),n=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(i)&&(i="absolute",e=d("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),"float":t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(x+"placeholder",e)),t.css({position:i,left:n.left,top:n.top}),e},removePlaceholder:function(t){var e=x+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(t){d.effects.restoreStyle(t),d.effects.removePlaceholder(t)},setTransition:function(n,t,s,o){return o=o||{},d.each(t,function(t,e){var i=n.cssUnit(e);0<i[0]&&(o[e]=i[0]*s+i[1])}),o}}),d.fn.extend({effect:function(){var n=P.apply(this,arguments),s=d.effects.effect[n.effect],o=s.mode,t=n.queue,e=t||"fx",r=n.complete,a=n.mode,l=[],i=function(t){var e=d(this),i=d.effects.mode(e,a)||o;e.data(C,!0),l.push(i),o&&("show"===i||i===o&&"hide"===i)&&e.show(),o&&"none"===i||d.effects.saveStyle(e),d.isFunction(t)&&t()};return d.fx.off||!s?a?this[a](n.duration,r):this.each(function(){r&&r.call(this)}):!1===t?this.each(i).each(c):this.queue(e,i).queue(e,c);function c(t){var e=d(this);function i(){d.isFunction(r)&&r.call(e[0]),d.isFunction(t)&&t()}n.mode=l.shift(),!1===d.uiBackCompat||o?"none"===n.mode?(e[a](),i()):s.call(e[0],n,function(){e.removeData(C),d.effects.cleanUp(e),"hide"===n.mode&&e.hide(),i()}):(e.is(":hidden")?"hide"===a:"show"===a)?(e[a](),i()):s.call(e[0],n,i)}},show:(y=d.fn.show,function(t){var e;return $(t)?y.apply(this,arguments):((e=P.apply(this,arguments)).mode="show",this.effect.call(this,e))}),hide:(b=d.fn.hide,function(t){var e;return $(t)?b.apply(this,arguments):((e=P.apply(this,arguments)).mode="hide",this.effect.call(this,e))}),toggle:(n=d.fn.toggle,function(t){var e;return $(t)||"boolean"==typeof t?n.apply(this,arguments):((e=P.apply(this,arguments)).mode="toggle",this.effect.call(this,e))}),cssUnit:function(t){var i=this.css(t),n=[];return d.each(["em","px","%","pt"],function(t,e){0<i.indexOf(e)&&(n=[parseFloat(i),e])}),n},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):A(this.css("clip"),this)},transfer:function(t,e){var i=d(this),n=d(t.to),s="fixed"===n.css("position"),o=d("body"),r=s?o.scrollTop():0,o=s?o.scrollLeft():0,a=n.offset(),a={top:a.top-r,left:a.left-o,height:n.innerHeight(),width:n.innerWidth()},n=i.offset(),l=d("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(t.className).css({top:n.top-r,left:n.left-o,height:i.innerHeight(),width:i.innerWidth(),position:s?"fixed":"absolute"}).animate(a,t.duration,t.easing,function(){l.remove(),d.isFunction(e)&&e()})}}),d.fx.step.clip=function(t){t.clipInit||(t.start=d(t.elem).cssClip(),"string"==typeof t.end&&(t.end=A(t.end,t.elem)),t.clipInit=!0),d(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},w={},d.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){w[t]=function(t){return Math.pow(t,e+2)}}),d.extend(w,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),d.each(w,function(t,e){d.easing["easeIn"+t]=e,d.easing["easeOut"+t]=function(t){return 1-e(1-t)},d.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}});d.effects,d.effects.define("slide","show",function(t,e){var i,n,s=d(this),o={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},r=t.mode,a=t.direction||"left",l="up"===a||"down"===a?"top":"left",c="up"===a||"left"===a,h=t.distance||s["top"==l?"outerHeight":"outerWidth"](!0),u={};d.effects.createPlaceholder(s),i=s.cssClip(),n=s.position()[l],u[l]=(c?-1:1)*h+n,u.clip=s.cssClip(),u.clip[o[a][1]]=u.clip[o[a][0]],"show"===r&&(s.cssClip(u.clip),s.css(l,u[l]),u.clip=i,u[l]=n),s.animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}); /*! * jQuery UI Effects Slide 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */}), /*! jQuery UI - v1.12.1 - 2017-05-04 * http://jqueryui.com * Includes: widget.js, position.js, data.js, disable-selection.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/draggable.js, widgets/droppable.js, widgets/resizable.js, widgets/selectable.js, widgets/sortable.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/selectmenu.js, widgets/slider.js, widgets/spinner.js, widgets/tabs.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js * Copyright jQuery Foundation and other contributors; Licensed MIT */ function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){x.ui=x.ui||{};x.ui.version="1.12.1"; /*! * jQuery UI Widget 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */var o,n,k,C,s,r,a,l,c,i,H=0,h=Array.prototype.slice;x.cleanData=(o=x.cleanData,function(t){for(var e,i,n=0;null!=(i=t[n]);n++)try{(e=x._data(i,"events"))&&e.remove&&x(i).triggerHandler("remove")}catch(s){}o(t)}),x.widget=function(t,i,e){var n,s,o,r={},a=t.split(".")[0],l=a+"-"+(t=t.split(".")[1]);return e||(e=i,i=x.Widget),x.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr[":"][l.toLowerCase()]=function(t){return!!x.data(t,l)},x[a]=x[a]||{},n=x[a][t],s=x[a][t]=function(t,e){if(!this._createWidget)return new s(t,e);arguments.length&&this._createWidget(t,e)},x.extend(s,n,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(o=new i).options=x.widget.extend({},o.options),x.each(e,function(e,n){function s(){return i.prototype[e].apply(this,arguments)}function o(t){return i.prototype[e].apply(this,t)}x.isFunction(n)?r[e]=function(){var t,e=this._super,i=this._superApply;return this._super=s,this._superApply=o,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}:r[e]=n}),s.prototype=x.widget.extend(o,{widgetEventPrefix:n&&o.widgetEventPrefix||t},r,{constructor:s,namespace:a,widgetName:t,widgetFullName:l}),n?(x.each(n._childConstructors,function(t,e){var i=e.prototype;x.widget(i.namespace+"."+i.widgetName,s,e._proto)}),delete n._childConstructors):i._childConstructors.push(s),x.widget.bridge(t,s),s},x.widget.extend=function(t){for(var e,i,n=h.call(arguments,1),s=0,o=n.length;s<o;s++)for(e in n[s])i=n[s][e],n[s].hasOwnProperty(e)&&i!==undefined&&(x.isPlainObject(i)?t[e]=x.isPlainObject(t[e])?x.widget.extend({},t[e],i):x.widget.extend({},i):t[e]=i);return t},x.widget.bridge=function(o,e){var r=e.prototype.widgetFullName||o;x.fn[o]=function(i){var t="string"==typeof i,n=h.call(arguments,1),s=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=x.data(this,r);return"instance"===i?(s=e,!1):e?x.isFunction(e[i])&&"_"!==i.charAt(0)?(t=e[i].apply(e,n))!==e&&t!==undefined?(s=t&&t.jquery?s.pushStack(t.get()):t,!1):void 0:x.error("no such method '"+i+"' for "+o+" widget instance"):x.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+i+"'")}):s=undefined:(n.length&&(i=x.widget.extend.apply(null,[i].concat(n))),this.each(function(){var t=x.data(this,r);t?(t.option(i||{}),t._init&&t._init()):x.data(this,r,new e(i,this))})),s}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=H++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,s,o=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(n=o[t]=x.widget.extend({},this.options[t]),s=0;s<i.length-1;s++)n[i[s]]=n[i[s]]||{},n=n[i[s]];if(t=i.pop(),1===arguments.length)return n[t]===undefined?null:n[t];n[t]=e}else{if(1===arguments.length)return this.options[t]===undefined?null:this.options[t];o[t]=e}return this._setOptions(o),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,n;for(e in t)n=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&n&&n.length&&(i=x(n.get()),this._removeClass(n,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(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=[],r=this;function t(t,e){for(var i,n=0;n<t.length;n++)i=r.classesElementLookup[t[n]]||x(),i=s.add?x(x.unique(i.get().concat(s.element.get()))):x(i.not(s.element).get()),r.classesElementLookup[t[n]]=i,o.push(t[n]),e&&s.classes[t[n]]&&o.push(s.classes[t[n]])}return s=x.extend({element:this.element,classes:this.options.classes||{}},s),this._on(s.element,{remove:"_untrackClassesElement"}),s.keys&&t(s.keys.match(/\S+/g)||[],!0),s.extra&&t(s.extra.match(/\S+/g)||[]),o.join(" ")},_untrackClassesElement:function(i){var n=this;x.each(n.classesElementLookup,function(t,e){-1!==x.inArray(i.target,e)&&(n.classesElementLookup[t]=x(e.not(i.target).get()))})},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){var s="string"==typeof t||null===t,s={extra:s?e:i,keys:s?t:e,element:s?this.element:t,add:n="boolean"==typeof n?n:i};return s.element.toggleClass(this._classes(s),n),this},_on:function(o,r,t){var a,l=this;"boolean"!=typeof o&&(t=r,r=o,o=!1),t?(r=a=x(r),this.bindings=this.bindings.add(r)):(t=r,r=this.element,a=this.widget()),x.each(t,function(t,e){function i(){if(o||!0!==l.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof e?l[e]:e).apply(l,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||x.guid++);var n=t.match(/^([\w:-]*)\s*(.*)$/),s=n[1]+l.eventNamespace,n=n[2];n?a.on(s,n,i):r.on(s,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e).off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var n,s,o=this.options[t];if(i=i||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],s=e.originalEvent)for(n in s)n in e||(e[n]=s[n]);return this.element.trigger(e,i),!(x.isFunction(o)&&!1===o.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(o,r){x.Widget.prototype["_"+o]=function(e,t,i){var n=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||r:o,s=!x.isEmptyObject(t="number"==typeof(t=t||{})?{duration:t}:t);t.complete=i,t.delay&&e.delay(t.delay),s&&x.effects&&x.effects.effect[n]?e[o](t):n!==o&&e[n]?e[n](t.duration,t.easing,i):e.queue(function(t){x(this)[o](),i&&i.call(e[0]),t()})}}),x.widget;function z(t,e,i){return[parseFloat(t[0])*(c.test(t[0])?e/100:1),parseFloat(t[1])*(c.test(t[1])?i/100:1)]}function T(t,e){return parseInt(x.css(t,e),10)||0} /*! * jQuery UI Position 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/position/ */ k=Math.max,C=Math.abs,s=/left|center|right/,r=/top|center|bottom/,a=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,c=/%$/,i=x.fn.position,x.position={scrollbarWidth:function(){var t,e,i;return n!==undefined?n:(i=(e=x("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>")).children()[0],x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?x.position.scrollbarWidth():0,height:e?x.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=x(t||window),i=x.isWindow(e[0]),n=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:n,offset:!i&&!n?x(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},x.fn.position=function(u){if(!u||!u.of)return i.apply(this,arguments);u=x.extend({},u);var d,p,f,m,g,t,v=x(u.of),_=x.position.getWithinInfo(u.within),b=x.position.getScrollInfo(_),y=(u.collision||"flip").split(" "),w={},e=9===(e=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:x.isWindow(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()};return v[0].preventDefault&&(u.at="left top"),p=e.width,f=e.height,g=x.extend({},m=e.offset),x.each(["my","at"],function(){var t,e,i=(u[this]||"").split(" ");(i=1===i.length?s.test(i[0])?i.concat(["center"]):r.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=s.test(i[0])?i[0]:"center",i[1]=r.test(i[1])?i[1]:"center",t=a.exec(i[0]),e=a.exec(i[1]),w[this]=[t?t[0]:0,e?e[0]:0],u[this]=[l.exec(i[0])[0],l.exec(i[1])[0]]}),1===y.length&&(y[1]=y[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=z(w.at,p,f),g.left+=d[0],g.top+=d[1],this.each(function(){var i,t,r=x(this),a=r.outerWidth(),l=r.outerHeight(),e=T(this,"marginLeft"),n=T(this,"marginTop"),s=a+e+T(this,"marginRight")+b.width,o=l+n+T(this,"marginBottom")+b.height,c=x.extend({},g),h=z(w.my,r.outerWidth(),r.outerHeight());"right"===u.my[0]?c.left-=a:"center"===u.my[0]&&(c.left-=a/2),"bottom"===u.my[1]?c.top-=l:"center"===u.my[1]&&(c.top-=l/2),c.left+=h[0],c.top+=h[1],i={marginLeft:e,marginTop:n},x.each(["left","top"],function(t,e){x.ui.position[y[t]]&&x.ui.position[y[t]][e](c,{targetWidth:p,targetHeight:f,elemWidth:a,elemHeight:l,collisionPosition:i,collisionWidth:s,collisionHeight:o,offset:[d[0]+h[0],d[1]+h[1]],my:u.my,at:u.at,within:_,elem:r})}),u.using&&(t=function(t){var e=m.left-c.left,i=e+p-a,n=m.top-c.top,s=n+f-l,o={target:{element:v,left:m.left,top:m.top,width:p,height:f},element:{element:r,left:c.left,top:c.top,width:a,height:l},horizontal:i<0?"left":0<e?"right":"center",vertical:s<0?"top":0<n?"bottom":"middle"};p<a&&C(e+i)<p&&(o.horizontal="center"),f<l&&C(n+s)<f&&(o.vertical="middle"),k(C(e),C(i))>k(C(n),C(s))?o.important="horizontal":o.important="vertical",u.using.call(this,t,o)}),r.offset(x.extend(c,{using:t}))})},x.ui.position={fit:{left:function(t,e){var i,n=e.within,s=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,o=t.left-e.collisionPosition.marginLeft,r=s-o,a=o+e.collisionWidth-n-s;e.collisionWidth>n?0<r&&a<=0?(i=t.left+r+e.collisionWidth-n-s,t.left+=r-i):t.left=!(0<a&&r<=0)&&a<r?s+n-e.collisionWidth:s:0<r?t.left+=r:0<a?t.left-=a:t.left=k(t.left-o,t.left)},top:function(t,e){var i,n=e.within,n=n.isWindow?n.scrollTop:n.offset.top,s=e.within.height,o=t.top-e.collisionPosition.marginTop,r=n-o,a=o+e.collisionHeight-s-n;e.collisionHeight>s?0<r&&a<=0?(i=t.top+r+e.collisionHeight-s-n,t.top+=r-i):t.top=!(0<a&&r<=0)&&a<r?n+s-e.collisionHeight:n:0<r?t.top+=r:0<a?t.top-=a:t.top=k(t.top-o,t.top)}},flip:{left:function(t,e){var i=e.within,n=i.offset.left+i.scrollLeft,s=i.width,i=i.isWindow?i.scrollLeft:i.offset.left,o=t.left-e.collisionPosition.marginLeft,r=o-i,o=o+e.collisionWidth-s-i,a="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,l="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,c=-2*e.offset[0];r<0?((s=t.left+a+l+c+e.collisionWidth-s-n)<0||s<C(r))&&(t.left+=a+l+c):0<o&&(0<(n=t.left-e.collisionPosition.marginLeft+a+l+c-i)||C(n)<o)&&(t.left+=a+l+c)},top:function(t,e){var i=e.within,n=i.offset.top+i.scrollTop,s=i.height,i=i.isWindow?i.scrollTop:i.offset.top,o=t.top-e.collisionPosition.marginTop,r=o-i,o=o+e.collisionHeight-s-i,a="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,l="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,c=-2*e.offset[1];r<0?((s=t.top+a+l+c+e.collisionHeight-s-n)<0||s<C(r))&&(t.top+=a+l+c):0<o&&(0<(n=t.top-e.collisionPosition.marginTop+a+l+c-i)||C(n)<o)&&(t.top+=a+l+c)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}};var L; /*! * jQuery UI :data 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */x.ui.position,x.extend(x.expr[":"],{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}):function(t,e,i){return!!x.data(t,i[3])}}),x.fn.extend({disableSelection:(L="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(L+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}); /*! * jQuery UI Focusable 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ x.ui.focusable=function(t,e){var i,n,s,o=t.nodeName.toLowerCase();return"area"===o?(s=(i=t.parentNode).name,!(!t.href||!s||"map"!==i.nodeName.toLowerCase())&&0<(i=x("img[usemap='#"+s+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(o)?(n=!t.disabled)&&(s=x(t).closest("fieldset")[0])&&(n=!s.disabled):n="a"===o&&t.href||e,n&&x(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"hidden"!==e}(x(t)))},x.extend(x.expr[":"],{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}});x.ui.focusable,x.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):x(this[0].form)},x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element.form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}}, /*! * jQuery UI Support for jQuery core 1.7.x 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * */ "1.7"===x.fn.jquery.substring(0,3)&&(x.each(["Width","Height"],function(t,i){var s="Width"===i?["Left","Right"]:["Top","Bottom"],n=i.toLowerCase(),o={innerWidth:x.fn.innerWidth,innerHeight:x.fn.innerHeight,outerWidth:x.fn.outerWidth,outerHeight:x.fn.outerHeight};function r(t,e,i,n){return x.each(s,function(){e-=parseFloat(x.css(t,"padding"+this))||0,i&&(e-=parseFloat(x.css(t,"border"+this+"Width"))||0),n&&(e-=parseFloat(x.css(t,"margin"+this))||0)}),e}x.fn["inner"+i]=function(t){return t===undefined?o["inner"+i].call(this):this.each(function(){x(this).css(n,r(this,t)+"px")})},x.fn["outer"+i]=function(t,e){return"number"!=typeof t?o["outer"+i].call(this,t):this.each(function(){x(this).css(n,r(this,t,!0,e)+"px")})}}),x.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),x.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},x.ui.escapeSelector=(j=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g,function(t){return t.replace(j,"\\$1")}),x.fn.labels=function(){var t,e,i;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+x.ui.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e))},x.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,s=this.parents().filter(function(){var t=x(this);return(!i||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&s.length?s:x(this[0].ownerDocument||document)},x.extend(x.expr[":"],{tabbable:function(t){var e=x.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&x.ui.focusable(t,i)}}),x.fn.extend({uniqueId:(W=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++W)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&x(this).removeAttr("id")})}}),x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var j,W,u=!1,d=( /*! * jQuery UI Droppable 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ x(document).on("mouseup",function(){u=!1}),x.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(t){if(!0===x.data(t.target,e.widgetName+".preventClickEvent"))return x.removeData(t.target,e.widgetName+".preventClickEvent"),t.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(t){var e,i,n;if(!u)return this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),i=1===(this._mouseDownEvent=t).which,n=!("string"!=typeof(e=this).options.cancel||!t.target.nodeName)&&x(t.target).closest(this.options.cancel).length,i&&!n&&this._mouseCapture(t)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?t.preventDefault():(!0===x.data(t.target,this.widgetName+".preventClickEvent")&&x.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return e._mouseMove(t)},this._mouseUpDelegate=function(t){return e._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),u=!0)),!0},_mouseMove:function(t){if(this._mouseMoved){if(x.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&x.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,u=!1,t.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),x.ui.plugin={add:function(t,e,i){var n,s=x.ui[t].prototype;for(n in i)s.plugins[n]=s.plugins[n]||[],s.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var s,o=t.plugins[e];if(o&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(s=0;s<o.length;s++)t.options[o[s][0]]&&o[s][1].apply(t.element,i)}},x.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return e=(e=e||t.body).nodeName?e:t.body},x.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&x(t).trigger("blur")}, /*! * jQuery UI Draggable 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ x.widget("ui.draggable",x.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(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var e=this.options;return!(this.helper||e.disabled||0<x(t.target).closest(".ui-resizable-handle").length||(this.handle=this._getHandle(t),!this.handle)||(this._blurActiveElement(t),this._blockFrames(!0===e.iframeFix?"iframe":e.iframeFix),0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=x(this);return x("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var e=x.ui.safeActiveElement(this.document[0]);x(t.target).closest(e).length||x.ui.safeBlur(e)},_mouseStart:function(t){var e=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),x.ui.ddmanager&&(x.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"===x(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),x.ui.ddmanager&&!e.dropBehaviour&&x.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),x.ui.ddmanager&&x.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(t){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:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(t,e){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!e){var i=this._uiHash();if(!1===this._trigger("drag",t,i))return this._mouseUp(new x.Event("mouseup",t)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",x.ui.ddmanager&&x.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var e=this,i=!1;return x.ui.ddmanager&&!this.options.dropBehaviour&&(i=x.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||x.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?x(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==e._trigger("stop",t)&&e._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),x.ui.ddmanager&&x.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),x.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new x.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!x(t.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(t){var e=this.options,i=x.isFunction(e.helper),n=i?x(e.helper.apply(this.element[0],[t])):"clone"===e.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===e.appendTo?this.element[0].parentNode:e.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(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=x.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),e=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==e&&x.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this._isRootNode(this.offsetParent[0])?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var t,e;return"relative"!==this.cssPosition?{top:0,left:0}:(t=this.element.position(),e=this._isRootNode(this.scrollParent[0]),{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?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 t,e=this.options,i=this.document[0];this.relativeContainer=null,e.containment?"window"===e.containment?this.containment=[x(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,x(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,x(window).scrollLeft()+x(window).width()-this.helperProportions.width-this.margins.left,x(window).scrollTop()+(x(window).height()||i.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:"document"===e.containment?this.containment=[0,0,x(i).width()-this.helperProportions.width-this.margins.left,(x(i).height()||i.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:e.containment.constructor===Array?this.containment=e.containment:("parent"===e.containment&&(e.containment=this.helper[0].parentNode),(e=(i=x(e.containment))[0])&&(t=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(t?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i)):this.containment=null},_convertPositionTo:function(t,e){e=e||this.position;var i="absolute"===t?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:e.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:e.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(t,e){var i,n,s=this.options,o=this._isRootNode(this.scrollParent[0]),r=t.pageX,a=t.pageY;return o&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),{top:(a=e&&(this.containment&&(i=this.relativeContainer?(i=this.relativeContainer.offset(),[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):this.containment,t.pageX-this.offset.click.left<i[0]&&(r=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(a=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(r=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3])&&(a=i[3]+this.offset.click.top),s.grid&&(n=s.grid[1]?this.originalPageY+Math.round((a-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,a=!i||n-this.offset.click.top>=i[1]||n-this.offset.click.top>i[3]?n:n-this.offset.click.top>=i[1]?n-s.grid[1]:n+s.grid[1],n=s.grid[0]?this.originalPageX+Math.round((r-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,r=!i||n-this.offset.click.left>=i[0]||n-this.offset.click.left>i[2]?n:n-this.offset.click.left>=i[0]?n-s.grid[0]:n+s.grid[0]),"y"===s.axis&&(r=this.originalPageX),"x"===s.axis)?this.originalPageY:a)-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:o?0:this.offset.scroll.top),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:o?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(t,e,i){return i=i||this._uiHash(),x.ui.plugin.call(this,t,[e,i,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),x.Widget.prototype._trigger.call(this,t,e,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),x.ui.plugin.add("draggable","connectToSortable",{start:function(e,t,i){var n=x.extend({},t,{item:i.element});i.sortables=[],x(i.options.connectToSortable).each(function(){var t=x(this).sortable("instance");t&&!t.options.disabled&&(i.sortables.push(t),t.refreshPositions(),t._trigger("activate",e,n))})},stop:function(e,t,i){var n=x.extend({},t,{item:i.element});i.cancelHelperRemoval=!1,x.each(i.sortables,function(){var t=this;t.isOver?(t.isOver=0,i.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,n))})},drag:function(i,n,s){x.each(s.sortables,function(){var t=!1,e=this;e.positionAbs=s.positionAbs,e.helperProportions=s.helperProportions,e.offset.click=s.offset.click,e._intersectsWith(e.containerCache)&&(t=!0,x.each(s.sortables,function(){return this.positionAbs=s.positionAbs,this.helperProportions=s.helperProportions,this.offset.click=s.offset.click,t=this!==e&&this._intersectsWith(this.containerCache)&&x.contains(e.element[0],this.element[0])?!1:t})),t?(e.isOver||(e.isOver=1,s._parent=n.helper.parent(),e.currentItem=n.helper.appendTo(e.element).data("ui-sortable-item",!0),e.options._helper=e.options.helper,e.options.helper=function(){return n.helper[0]},i.target=e.currentItem[0],e._mouseCapture(i,!0),e._mouseStart(i,!0,!0),e.offset.click.top=s.offset.click.top,e.offset.click.left=s.offset.click.left,e.offset.parent.left-=s.offset.parent.left-e.offset.parent.left,e.offset.parent.top-=s.offset.parent.top-e.offset.parent.top,s._trigger("toSortable",i),s.dropped=e.element,x.each(s.sortables,function(){this.refreshPositions()}),s.currentItem=s.element,e.fromOutside=s),e.currentItem&&(e._mouseDrag(i),n.position=e.position)):e.isOver&&(e.isOver=0,e.cancelHelperRemoval=!0,e.options._revert=e.options.revert,e.options.revert=!1,e._trigger("out",i,e._uiHash(e)),e._mouseStop(i,!0),e.options.revert=e.options._revert,e.options.helper=e.options._helper,e.placeholder&&e.placeholder.remove(),n.helper.appendTo(s._parent),s._refreshOffsets(i),n.position=s._generatePosition(i,!0),s._trigger("fromSortable",i),s.dropped=!1,x.each(s.sortables,function(){this.refreshPositions()}))})}}),x.ui.plugin.add("draggable","cursor",{start:function(t,e,i){var n=x("body"),s=i.options;n.css("cursor")&&(s._cursor=n.css("cursor")),n.css("cursor",s.cursor)},stop:function(t,e,i){var n=i.options;n._cursor&&x("body").css("cursor",n._cursor)}}),x.ui.plugin.add("draggable","opacity",{start:function(t,e,i){var n=x(e.helper),s=i.options;n.css("opacity")&&(s._opacity=n.css("opacity")),n.css("opacity",s.opacity)},stop:function(t,e,i){var n=i.options;n._opacity&&x(e.helper).css("opacity",n._opacity)}}),x.ui.plugin.add("draggable","scroll",{start:function(t,e,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(t,e,i){var n=i.options,s=!1,o=i.scrollParentNotHidden[0],r=i.document[0];o!==r&&"HTML"!==o.tagName?(n.axis&&"x"===n.axis||(i.overflowOffset.top+o.offsetHeight-t.pageY<n.scrollSensitivity?o.scrollTop=s=o.scrollTop+n.scrollSpeed:t.pageY-i.overflowOffset.top<n.scrollSensitivity&&(o.scrollTop=s=o.scrollTop-n.scrollSpeed)),n.axis&&"y"===n.axis||(i.overflowOffset.left+o.offsetWidth-t.pageX<n.scrollSensitivity?o.scrollLeft=s=o.scrollLeft+n.scrollSpeed:t.pageX-i.overflowOffset.left<n.scrollSensitivity&&(o.scrollLeft=s=o.scrollLeft-n.scrollSpeed))):(n.axis&&"x"===n.axis||(t.pageY-x(r).scrollTop()<n.scrollSensitivity?s=x(r).scrollTop(x(r).scrollTop()-n.scrollSpeed):x(window).height()-(t.pageY-x(r).scrollTop())<n.scrollSensitivity&&(s=x(r).scrollTop(x(r).scrollTop()+n.scrollSpeed))),n.axis&&"y"===n.axis||(t.pageX-x(r).scrollLeft()<n.scrollSensitivity?s=x(r).scrollLeft(x(r).scrollLeft()-n.scrollSpeed):x(window).width()-(t.pageX-x(r).scrollLeft())<n.scrollSensitivity&&(s=x(r).scrollLeft(x(r).scrollLeft()+n.scrollSpeed)))),!1!==s&&x.ui.ddmanager&&!n.dropBehaviour&&x.ui.ddmanager.prepareOffsets(i,t)}}),x.ui.plugin.add("draggable","snap",{start:function(t,e,i){var n=i.options;i.snapElements=[],x(n.snap.constructor!==String?n.snap.items||":data(ui-draggable)":n.snap).each(function(){var t=x(this),e=t.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:e.top,left:e.left})})},drag:function(t,e,i){for(var n,s,o,r,a,l,c,h,u,d=i.options,p=d.snapTolerance,f=e.offset.left,m=f+i.helperProportions.width,g=e.offset.top,v=g+i.helperProportions.height,_=i.snapElements.length-1;0<=_;_--)l=(a=i.snapElements[_].left-i.margins.left)+i.snapElements[_].width,h=(c=i.snapElements[_].top-i.margins.top)+i.snapElements[_].height,m<a-p||l+p<f||v<c-p||h+p<g||!x.contains(i.snapElements[_].item.ownerDocument,i.snapElements[_].item)?(i.snapElements[_].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,t,x.extend(i._uiHash(),{snapItem:i.snapElements[_].item})),i.snapElements[_].snapping=!1):("inner"!==d.snapMode&&(n=Math.abs(c-v)<=p,s=Math.abs(h-g)<=p,o=Math.abs(a-m)<=p,r=Math.abs(l-f)<=p,n&&(e.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),s&&(e.position.top=i._convertPositionTo("relative",{top:h,left:0}).top),o&&(e.position.left=i._convertPositionTo("relative",{top:0,left:a-i.helperProportions.width}).left),r)&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l}).left),u=n||s||o||r,"outer"!==d.snapMode&&(n=Math.abs(c-g)<=p,s=Math.abs(h-v)<=p,o=Math.abs(a-f)<=p,r=Math.abs(l-m)<=p,n&&(e.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),s&&(e.position.top=i._convertPositionTo("relative",{top:h-i.helperProportions.height,left:0}).top),o&&(e.position.left=i._convertPositionTo("relative",{top:0,left:a}).left),r)&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left),!i.snapElements[_].snapping&&(n||s||o||r||u)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,t,x.extend(i._uiHash(),{snapItem:i.snapElements[_].item})),i.snapElements[_].snapping=n||s||o||r||u)}}),x.ui.plugin.add("draggable","stack",{start:function(t,e,i){var n,s=i.options,s=x.makeArray(x(s.stack)).sort(function(t,e){return(parseInt(x(t).css("zIndex"),10)||0)-(parseInt(x(e).css("zIndex"),10)||0)});s.length&&(n=parseInt(x(s[0]).css("zIndex"),10)||0,x(s).each(function(t){x(this).css("zIndex",n+t)}),this.css("zIndex",n+s.length))}}),x.ui.plugin.add("draggable","zIndex",{start:function(t,e,i){var n=x(e.helper),s=i.options;n.css("zIndex")&&(s._zIndex=n.css("zIndex")),n.css("zIndex",s.zIndex)},stop:function(t,e,i){var n=i.options;n._zIndex&&x(e.helper).css("zIndex",n._zIndex)}}),x.ui.draggable,x.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 t,e=this.options,i=e.accept;this.isover=!1,this.isout=!0,this.accept=x.isFunction(i)?i:function(t){return t.is(i)},this.proportions=function(){if(!arguments.length)return t=t||{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};t=arguments[0]},this._addToManager(e.scope),e.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){x.ui.ddmanager.droppables[t]=x.ui.ddmanager.droppables[t]||[],x.ui.ddmanager.droppables[t].push(this)},_splice:function(t){for(var e=0;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var t=x.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,e){var i;"accept"===t?this.accept=x.isFunction(e)?e:function(t){return t.is(e)}:"scope"===t&&(i=x.ui.ddmanager.droppables[this.options.scope],this._splice(i),this._addToManager(e)),this._super(t,e)},_activate:function(t){var e=x.ui.ddmanager.current;this._addActiveClass(),e&&this._trigger("activate",t,this.ui(e))},_deactivate:function(t){var e=x.ui.ddmanager.current;this._removeActiveClass(),e&&this._trigger("deactivate",t,this.ui(e))},_over:function(t){var e=x.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(e)))},_out:function(t){var e=x.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(e)))},_drop:function(e,t){var i=t||x.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 t=x(this).droppable("instance");if(t.options.greedy&&!t.options.disabled&&t.options.scope===i.options.scope&&t.accept.call(t.element[0],i.currentItem||i.element)&&d(i,x.extend(t,{offset:t.element.offset()}),t.options.tolerance,e))return!(n=!0)}),n)||!this.accept.call(this.element[0],i.currentItem||i.element))&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(i)),this.element)},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.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")}}),x.ui.intersect=function(t,e,i,n){if(!e.offset)return!1;var s=(t.positionAbs||t.position.absolute).left+t.margins.left,o=(t.positionAbs||t.position.absolute).top+t.margins.top,r=s+t.helperProportions.width,a=o+t.helperProportions.height,l=e.offset.left,c=e.offset.top,h=l+e.proportions().width,u=c+e.proportions().height;switch(i){case"fit":return l<=s&&r<=h&&c<=o&&a<=u;case"intersect":return l<s+t.helperProportions.width/2&&r-t.helperProportions.width/2<h&&c<o+t.helperProportions.height/2&&a-t.helperProportions.height/2<u;case"pointer":return F(n.pageY,c,e.proportions().height)&&F(n.pageX,l,e.proportions().width);case"touch":return(c<=o&&o<=u||c<=a&&a<=u||o<c&&u<a)&&(l<=s&&s<=h||l<=r&&r<=h||s<l&&h<r);default:return!1}});function F(t,e,i){return e<=t&&t<e+i}!(x.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,e){var i,n,s=x.ui.ddmanager.droppables[t.options.scope]||[],o=e?e.type:null,r=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();t:for(i=0;i<s.length;i++)if(!(s[i].options.disabled||t&&!s[i].accept.call(s[i].element[0],t.currentItem||t.element))){for(n=0;n<r.length;n++)if(r[n]===s[i].element[0]){s[i].proportions().height=0;continue t}s[i].visible="none"!==s[i].element.css("display"),s[i].visible&&("mousedown"===o&&s[i]._activate.call(s[i],e),s[i].offset=s[i].element.offset(),s[i].proportions({width:s[i].element[0].offsetWidth,height:s[i].element[0].offsetHeight}))}},drop:function(t,e){var i=!1;return x.each((x.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&d(t,this,this.options.tolerance,e)&&(i=this._drop.call(this,e)||i),!this.options.disabled)&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,e))}),i},dragStart:function(t,e){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||x.ui.ddmanager.prepareOffsets(t,e)})},drag:function(s,o){s.options.refreshPositions&&x.ui.ddmanager.prepareOffsets(s,o),x.each(x.ui.ddmanager.droppables[s.options.scope]||[],function(){var t,e,i,n;this.options.disabled||this.greedyChild||!this.visible||(n=!(n=d(s,this,this.options.tolerance,o))&&this.isover?"isout":n&&!this.isover?"isover":null)&&(this.options.greedy&&(e=this.options.scope,(i=this.element.parents(":data(ui-droppable)").filter(function(){return x(this).droppable("instance").options.scope===e})).length)&&((t=x(i[0]).droppable("instance")).greedyChild="isover"===n),t&&"isover"===n&&(t.isover=!1,t.isout=!0,t._out.call(t,o)),this[n]=!0,this["isout"===n?"isover":"isout"]=!1,this["isover"===n?"_over":"_out"].call(this,o),t)&&"isout"===n&&(t.isout=!1,t.isover=!0,t._over.call(t,o))})},dragStop:function(t,e){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||x.ui.ddmanager.prepareOffsets(t,e)}})!==x.uiBackCompat&&x.widget("ui.droppable",x.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)}});x.ui.droppable, /*! * jQuery UI Resizable 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ x.widget("ui.resizable",x.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(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(t,e){var i,n;return"hidden"!==x(t).css("overflow")&&(n=!1,0<t[i=e&&"left"===e?"scrollLeft":"scrollTop"]||(t[i]=1,n=0<t[i],t[i]=0,n))},_create:function(){var t,e=this.options,i=this;this._addClass("ui-resizable"),x.extend(this,{_aspectRatio:!!e.aspectRatio,aspectRatio:e.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:e.helper||e.ghost||e.animate?e.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(x("<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,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),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(t),this._proportionallyResize()),this._setupHandles(),e.autoHide&&x(this.element).on("mouseenter",function(){e.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){e.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,e=function(t){x(t).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(e(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),e(this.originalElement),this},_setOption:function(t,e){this._super(t,e),"handles"===t&&(this._removeHandles(),this._setupHandles())},_setupHandles:function(){var t,e,i,n,s,o=this.options,r=this;if(this.handles=o.handles||(x(".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=x(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),i=this.handles.split(","),this.handles={},e=0;e<i.length;e++)n="ui-resizable-"+(t=x.trim(i[e])),s=x("<div>"),this._addClass(s,"ui-resizable-handle "+n),s.css({zIndex:o.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.append(s);this._renderAxis=function(t){var e,i,n;for(e in t=t||this.element,this.handles)this.handles[e].constructor===String?this.handles[e]=this.element.children(this.handles[e]).first().show():(this.handles[e].jquery||this.handles[e].nodeType)&&(this.handles[e]=x(this.handles[e]),this._on(this.handles[e],{mousedown:r._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(n=x(this.handles[e],this.element),n=/sw|ne|nw|se|n|s/.test(e)?n.outerHeight():n.outerWidth(),i=["padding",/ne|nw|n/.test(e)?"Top":/se|sw|s/.test(e)?"Bottom":/^e$/.test(e)?"Right":"Left"].join(""),t.css(i,n),this._proportionallyResize()),this._handles=this._handles.add(this.handles[e])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){r.resizing||(this.className&&(s=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),r.axis=s&&s[1]?s[1]:"se")}),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(t){var e,i,n=!1;for(e in this.handles)(i=x(this.handles[e])[0])!==t.target&&!x.contains(i,t.target)||(n=!0);return!this.options.disabled&&n},_mouseStart:function(t){var e,i,n=this.options,s=this.element;return this.resizing=!0,this._renderProxy(),e=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),n.containment&&(e+=x(n.containment).scrollLeft()||0,i+=x(n.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:e,top:i},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:s.width(),height:s.height()},this.originalSize=this._helper?{width:s.outerWidth(),height:s.outerHeight()}:{width:s.width(),height:s.height()},this.sizeDiff={width:s.outerWidth()-s.width(),height:s.outerHeight()-s.height()},this.originalPosition={left:e,top:i},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof n.aspectRatio?n.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=x(".ui-resizable-"+this.axis).css("cursor"),x("body").css("cursor","auto"===s?this.axis+"-resize":s),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var e=this.originalMousePosition,i=this.axis,n=t.pageX-e.left||0,e=t.pageY-e.top||0,i=this._change[i];return this._updatePrevProperties(),i&&(n=i.apply(this,[t,n,e]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(n=this._updateRatio(n,t)),n=this._respectSize(n,t),this._updateCache(n),this._propagate("resize",t),e=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),x.isEmptyObject(e)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges())),!1},_mouseStop:function(t){this.resizing=!1;var e,i,n,s=this.options,o=this;return this._helper&&(i=(e=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:o.sizeDiff.height,e=e?0:o.sizeDiff.width,e={width:o.helper.width()-e,height:o.helper.height()-i},i=parseFloat(o.element.css("left"))+(o.position.left-o.originalPosition.left)||null,n=parseFloat(o.element.css("top"))+(o.position.top-o.originalPosition.top)||null,s.animate||this.element.css(x.extend(e,{top:n,left:i})),o.helper.height(o.size.height),o.helper.width(o.size.width),this._helper)&&!s.animate&&this._proportionallyResize(),x("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),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 t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,n,s,o=this.options,o={minWidth:this._isNumber(o.minWidth)?o.minWidth:0,maxWidth:this._isNumber(o.maxWidth)?o.maxWidth:Infinity,minHeight:this._isNumber(o.minHeight)?o.minHeight:0,maxHeight:this._isNumber(o.maxHeight)?o.maxHeight:Infinity};(this._aspectRatio||t)&&(e=o.minHeight*this.aspectRatio,n=o.minWidth/this.aspectRatio,i=o.maxHeight*this.aspectRatio,s=o.maxWidth/this.aspectRatio,o.minWidth<e&&(o.minWidth=e),o.minHeight<n&&(o.minHeight=n),i<o.maxWidth&&(o.maxWidth=i),s<o.maxHeight)&&(o.maxHeight=s),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,n=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===n&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===n&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,n=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,s=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,r=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,c=/sw|nw|w/.test(i),i=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),r&&(t.height=e.minHeight),n&&(t.width=e.maxWidth),s&&(t.height=e.maxHeight),o&&c&&(t.left=a-e.minWidth),n&&c&&(t.left=a-e.maxWidth),r&&i&&(t.top=l-e.minHeight),s&&i&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],n=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],s=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseFloat(n[e])||0,i[e]+=parseFloat(s[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,e=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||x("<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:++e.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(t,e,i){return x.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},sw:function(t,e,i){return x.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,e,i]))},ne:function(t,e,i){return x.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},nw:function(t,e,i){return x.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,e,i]))}},_propagate:function(t,e){x.ui.plugin.call(this,t,[e,this.ui()]),"resize"!==t&&this._trigger(t,e,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}}}),x.ui.plugin.add("resizable","animate",{stop:function(e){var i=x(this).resizable("instance"),t=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,s=s?0:i.sizeDiff.width,s={width:i.size.width-s,height:i.size.height-o},o=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,r=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(x.extend(s,r&&o?{top:r,left:o}:{}),{duration:t.animateDuration,easing:t.animateEasing,step:function(){var t={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&&x(n[0]).css({width:t.width,height:t.height}),i._updateCache(t),i._propagate("resize",e)}})}}),x.ui.plugin.add("resizable","containment",{start:function(){var i,n,t,e,s=x(this).resizable("instance"),o=s.options,r=s.element,o=o.containment,r=o instanceof x?o.get(0):/parent/.test(o)?r.parent().get(0):o;r&&(s.containerElement=x(r),/document/.test(o)||o===document?(s.containerOffset={left:0,top:0},s.containerPosition={left:0,top:0},s.parentData={element:x(document),left:0,top:0,width:x(document).width(),height:x(document).height()||document.body.parentNode.scrollHeight}):(i=x(r),n=[],x(["Top","Right","Left","Bottom"]).each(function(t,e){n[t]=s._num(i.css("padding"+e))}),s.containerOffset=i.offset(),s.containerPosition=i.position(),s.containerSize={height:i.innerHeight()-n[3],width:i.innerWidth()-n[1]},o=s.containerOffset,e=s.containerSize.height,t=s.containerSize.width,t=s._hasScroll(r,"left")?r.scrollWidth:t,e=s._hasScroll(r)?r.scrollHeight:e,s.parentData={element:r,left:o.left,top:o.top,width:t,height:e}))},resize:function(t){var e=x(this).resizable("instance"),i=e.options,n=e.containerOffset,s=e.position,o=e._aspectRatio||t.shiftKey,r={top:0,left:0},a=e.containerElement,l=!0;a[0]!==document&&/static/.test(a.css("position"))&&(r=n),s.left<(e._helper?n.left:0)&&(e.size.width=e.size.width+(e._helper?e.position.left-n.left:e.position.left-r.left),o&&(e.size.height=e.size.width/e.aspectRatio,l=!1),e.position.left=i.helper?n.left:0),s.top<(e._helper?n.top:0)&&(e.size.height=e.size.height+(e._helper?e.position.top-n.top:e.position.top),o&&(e.size.width=e.size.height*e.aspectRatio,l=!1),e.position.top=e._helper?n.top:0),a=e.containerElement.get(0)===e.element.parent().get(0),i=/relative|absolute/.test(e.containerElement.css("position")),a&&i?(e.offset.left=e.parentData.left+e.position.left,e.offset.top=e.parentData.top+e.position.top):(e.offset.left=e.element.offset().left,e.offset.top=e.element.offset().top),s=Math.abs(e.sizeDiff.width+(e._helper?e.offset.left-r.left:e.offset.left-n.left)),a=Math.abs(e.sizeDiff.height+(e._helper?e.offset.top-r.top:e.offset.top-n.top)),s+e.size.width>=e.parentData.width&&(e.size.width=e.parentData.width-s,o)&&(e.size.height=e.size.width/e.aspectRatio,l=!1),a+e.size.height>=e.parentData.height&&(e.size.height=e.parentData.height-a,o)&&(e.size.width=e.size.height*e.aspectRatio,l=!1),l||(e.position.left=e.prevPosition.left,e.position.top=e.prevPosition.top,e.size.width=e.prevSize.width,e.size.height=e.prevSize.height)},stop:function(){var t=x(this).resizable("instance"),e=t.options,i=t.containerOffset,n=t.containerPosition,s=t.containerElement,o=x(t.helper),r=o.offset(),a=o.outerWidth()-t.sizeDiff.width,o=o.outerHeight()-t.sizeDiff.height;t._helper&&!e.animate&&/relative/.test(s.css("position"))&&x(this).css({left:r.left-n.left-i.left,width:a,height:o}),t._helper&&!e.animate&&/static/.test(s.css("position"))&&x(this).css({left:r.left-n.left-i.left,width:a,height:o})}}),x.ui.plugin.add("resizable","alsoResize",{start:function(){var t=x(this).resizable("instance").options;x(t.alsoResize).each(function(){var t=x(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,i){var e=x(this).resizable("instance"),n=e.options,s=e.originalSize,o=e.originalPosition,r={height:e.size.height-s.height||0,width:e.size.width-s.width||0,top:e.position.top-o.top||0,left:e.position.left-o.left||0};x(n.alsoResize).each(function(){var t=x(this),n=x(this).data("ui-resizable-alsoresize"),s={},e=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];x.each(e,function(t,e){var i=(n[e]||0)+(r[e]||0);i&&0<=i&&(s[e]=i||null)}),t.css(s)})},stop:function(){x(this).removeData("ui-resizable-alsoresize")}}),x.ui.plugin.add("resizable","ghost",{start:function(){var t=x(this).resizable("instance"),e=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:e.height,width:e.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==x.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=x(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=x(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),x.ui.plugin.add("resizable","grid",{resize:function(){var t,e=x(this).resizable("instance"),i=e.options,n=e.size,s=e.originalSize,o=e.originalPosition,r=e.axis,a="number"==typeof i.grid?[i.grid,i.grid]:i.grid,l=a[0]||1,c=a[1]||1,h=Math.round((n.width-s.width)/l)*l,n=Math.round((n.height-s.height)/c)*c,u=s.width+h,d=s.height+n,p=i.maxWidth&&i.maxWidth<u,f=i.maxHeight&&i.maxHeight<d,m=i.minWidth&&i.minWidth>u,g=i.minHeight&&i.minHeight>d;i.grid=a,m&&(u+=l),g&&(d+=c),p&&(u-=l),f&&(d-=c),/^(se|s|e)$/.test(r)?(e.size.width=u,e.size.height=d):/^(ne)$/.test(r)?(e.size.width=u,e.size.height=d,e.position.top=o.top-n):/^(sw)$/.test(r)?(e.size.width=u,e.size.height=d,e.position.left=o.left-h):((d-c<=0||u-l<=0)&&(t=e._getPaddingPlusBorderDimensions(this)),0<d-c?(e.size.height=d,e.position.top=o.top-n):(d=c-t.height,e.size.height=d,e.position.top=o.top+s.height-d),0<u-l?(e.size.width=u,e.position.left=o.left-h):(u=l-t.width,e.size.width=u,e.position.left=o.left+s.width-u))}}),x.ui.resizable,x.widget("ui.selectable",x.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 i=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){i.elementPos=x(i.element[0]).offset(),i.selectees=x(i.options.filter,i.element[0]),i._addClass(i.selectees,"ui-selectee"),i.selectees.each(function(){var t=x(this),e=t.offset(),e={left:e.left-i.elementPos.left,top:e.top-i.elementPos.top};x.data(this,"selectable-item",{element:this,$element:t,left:e.left,top:e.top,right:e.left+t.outerWidth(),bottom:e.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=x("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(i){var n=this,t=this.options;this.opos=[i.pageX,i.pageY],this.elementPos=x(this.element[0]).offset(),this.options.disabled||(this.selectees=x(t.filter,this.element[0]),this._trigger("start",i),x(t.appendTo).append(this.helper),this.helper.css({left:i.pageX,top:i.pageY,width:0,height:0}),t.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var t=x.data(this,"selectable-item");t.startselected=!0,i.metaKey||i.ctrlKey||(n._removeClass(t.$element,"ui-selected"),t.selected=!1,n._addClass(t.$element,"ui-unselecting"),t.unselecting=!0,n._trigger("unselecting",i,{unselecting:t.element}))}),x(i.target).parents().addBack().each(function(){var t,e=x.data(this,"selectable-item");if(e)return t=!i.metaKey&&!i.ctrlKey||!e.$element.hasClass("ui-selected"),n._removeClass(e.$element,t?"ui-unselecting":"ui-selected")._addClass(e.$element,t?"ui-selecting":"ui-unselecting"),e.unselecting=!t,e.selecting=t,(e.selected=t)?n._trigger("selecting",i,{selecting:e.element}):n._trigger("unselecting",i,{unselecting:e.element}),!1}))},_mouseDrag:function(n){var t,s,o,r,a,l,c;if(this.dragged=!0,!this.options.disabled)return o=(s=this).options,r=this.opos[0],a=this.opos[1],l=n.pageX,c=n.pageY,l<r&&(t=l,l=r,r=t),c<a&&(t=c,c=a,a=t),this.helper.css({left:r,top:a,width:l-r,height:c-a}),this.selectees.each(function(){var t=x.data(this,"selectable-item"),e=!1,i={};t&&t.element!==s.element[0]&&(i.left=t.left+s.elementPos.left,i.right=t.right+s.elementPos.left,i.top=t.top+s.elementPos.top,i.bottom=t.bottom+s.elementPos.top,"touch"===o.tolerance?e=!(l<i.left||i.right<r||c<i.top||i.bottom<a):"fit"===o.tolerance&&(e=r<i.left&&i.right<l&&a<i.top&&i.bottom<c),e?(t.selected&&(s._removeClass(t.$element,"ui-selected"),t.selected=!1),t.unselecting&&(s._removeClass(t.$element,"ui-unselecting"),t.unselecting=!1),t.selecting||(s._addClass(t.$element,"ui-selecting"),t.selecting=!0,s._trigger("selecting",n,{selecting:t.element}))):(t.selecting&&((n.metaKey||n.ctrlKey)&&t.startselected?(s._removeClass(t.$element,"ui-selecting"),t.selecting=!1,s._addClass(t.$element,"ui-selected"),t.selected=!0):(s._removeClass(t.$element,"ui-selecting"),t.selecting=!1,t.startselected&&(s._addClass(t.$element,"ui-unselecting"),t.unselecting=!0),s._trigger("unselecting",n,{unselecting:t.element}))),!t.selected||n.metaKey||n.ctrlKey||t.startselected||(s._removeClass(t.$element,"ui-selected"),t.selected=!1,s._addClass(t.$element,"ui-unselecting"),t.unselecting=!0,s._trigger("unselecting",n,{unselecting:t.element}))))}),!1},_mouseStop:function(e){var i=this;return this.dragged=!1,x(".ui-unselecting",this.element[0]).each(function(){var t=x.data(this,"selectable-item");i._removeClass(t.$element,"ui-unselecting"),t.unselecting=!1,t.startselected=!1,i._trigger("unselected",e,{unselected:t.element})}),x(".ui-selecting",this.element[0]).each(function(){var t=x.data(this,"selectable-item");i._removeClass(t.$element,"ui-selecting")._addClass(t.$element,"ui-selected"),t.selecting=!1,t.selected=!0,t.startselected=!0,i._trigger("selected",e,{selected:t.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),x.widget("ui.sortable",x.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(t,e,i){return e<=t&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.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(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),x.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;0<=t;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,e){var i=null,n=!1,s=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(t),x(t.target).parents().each(function(){if(x.data(this,s.widgetName+"-item")===s)return i=x(this),!1}),!(i=x.data(t.target,s.widgetName+"-item")===s?x(t.target):i))||(this.options.handle&&!e&&(x(this.options.handle,i).find("*").addBack().each(function(){this===t.target&&(n=!0)}),!n)||(this.currentItem=i,this._removeCurrentsFromItems(),0)))},_mouseStart:function(t,e,i){var n,s,o=this.options;if((this.currentContainer=this).refreshPositions(),this.helper=this._createHelper(t),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},x.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.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(t),this.originalPageX=t.pageX,this.originalPageY=t.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=x("<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",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(n=this.containers.length-1;0<=n;n--)this.containers[n]._trigger("activate",t,this._uiHash(this));return x.ui.ddmanager&&(x.ui.ddmanager.current=this),x.ui.ddmanager&&!o.dropBehaviour&&x.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var e,i,n,s,o=this.options,r=!1;for(this.position=this._generatePosition(t),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-t.pageY<o.scrollSensitivity?this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop+o.scrollSpeed:t.pageY-this.overflowOffset.top<o.scrollSensitivity&&(this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop-o.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<o.scrollSensitivity?this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft+o.scrollSpeed:t.pageX-this.overflowOffset.left<o.scrollSensitivity&&(this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft-o.scrollSpeed)):(t.pageY-this.document.scrollTop()<o.scrollSensitivity?r=this.document.scrollTop(this.document.scrollTop()-o.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<o.scrollSensitivity&&(r=this.document.scrollTop(this.document.scrollTop()+o.scrollSpeed)),t.pageX-this.document.scrollLeft()<o.scrollSensitivity?r=this.document.scrollLeft(this.document.scrollLeft()-o.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<o.scrollSensitivity&&(r=this.document.scrollLeft(this.document.scrollLeft()+o.scrollSpeed))),!1!==r)&&x.ui.ddmanager&&!o.dropBehaviour&&x.ui.ddmanager.prepareOffsets(this,t),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"),e=this.items.length-1;0<=e;e--)if(n=(i=this.items[e]).item[0],(s=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&!(n===this.currentItem[0]||this.placeholder[1===s?"next":"prev"]()[0]===n||x.contains(this.placeholder[0],n)||"semi-dynamic"===this.options.type&&x.contains(this.element[0],n))){if(this.direction=1===s?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(t,i),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),x.ui.ddmanager&&x.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,e){var i,n,s,o;if(t)return x.ui.ddmanager&&!this.options.dropBehaviour&&x.ui.ddmanager.drop(this,t),this.options.revert?(n=(i=this).placeholder.offset(),o={},(s=this.options.axis)&&"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,x(this.helper).animate(o,parseInt(this.options.revert,10)||500,function(){i._clear(t)})):this._clear(t,e),!1},cancel:function(){if(this.dragging){this._mouseUp(new x.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 t=this.containers.length-1;0<=t;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].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(),x.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?x(this.domPosition.prev).after(this.currentItem):x(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var t=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},x(t).each(function(){var t=(x(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);t&&i.push((e.key||t[1]+"[]")+"="+(e.key&&e.expression?t[1]:t[2]))}),!i.length&&e.key&&i.push(e.key+"="),i.join("&")},toArray:function(t){var e=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},e.each(function(){i.push(x(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,o=t.left,r=o+t.width,a=t.top,l=a+t.height,c=this.offset.click.top,h=this.offset.click.left,c="x"===this.options.axis||a<n+c&&n+c<l,h="y"===this.options.axis||o<e+h&&e+h<r;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?c&&h:o<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<r&&a<n+this.helperProportions.height/2&&s-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),i="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!e||!i)&&(e=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection(),this.floating?"right"===i||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return this.floating&&s?"right"===s&&i||"left"===s&&!i:n&&("down"===n&&e||"up"===n&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(0<t?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(0<t?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(t){var e,i,n,s,o=[],r=[],a=this._connectWith();if(a&&t)for(e=a.length-1;0<=e;e--)for(i=(n=x(a[e],this.document[0])).length-1;0<=i;i--)(s=x.data(n[i],this.widgetFullName))&&s!==this&&!s.options.disabled&&r.push([x.isFunction(s.options.items)?s.options.items.call(s.element):x(s.options.items,s.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),s]);function l(){o.push(this)}for(r.push([x.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):x(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),e=r.length-1;0<=e;e--)r[e][0].each(l);return x(o)},_removeCurrentsFromItems:function(){var i=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=x.grep(this.items,function(t){for(var e=0;e<i.length;e++)if(i[e]===t.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var e,i,n,s,o,r,a,l,c=this.items,h=[[x.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):x(this.options.items,this.element),this]],u=this._connectWith();if(u&&this.ready)for(e=u.length-1;0<=e;e--)for(i=(n=x(u[e],this.document[0])).length-1;0<=i;i--)(s=x.data(n[i],this.widgetFullName))&&s!==this&&!s.options.disabled&&(h.push([x.isFunction(s.options.items)?s.options.items.call(s.element[0],t,{item:this.currentItem}):x(s.options.items,s.element),s]),this.containers.push(s));for(e=h.length-1;0<=e;e--)for(o=h[e][1],l=(r=h[e][i=0]).length;i<l;i++)(a=x(r[i])).data(this.widgetName+"-item",o),c.push({item:a,instance:o,width:0,height:0,left:0,top:0})},refreshPositions:function(t){var e,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()),e=this.items.length-1;0<=e;e--)(i=this.items[e]).instance!==this.currentContainer&&this.currentContainer&&i.item[0]!==this.currentItem[0]||(n=this.options.toleranceElement?x(this.options.toleranceElement,i.item):i.item,t||(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(e=this.containers.length-1;0<=e;e--)s=this.containers[e].element.offset(),this.containers[e].containerCache.left=s.left,this.containers[e].containerCache.top=s.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].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 t=i.currentItem[0].nodeName.toLowerCase(),e=x("<"+t+">",i.document[0]);return i._addClass(e,"ui-sortable-placeholder",n||i.currentItem[0].className)._removeClass(e,"ui-sortable-helper"),"tbody"===t?i._createTrPlaceholder(i.currentItem.find("tr").eq(0),x("<tr>",i.document[0]).appendTo(e)):"tr"===t?i._createTrPlaceholder(i.currentItem,e):"img"===t&&e.attr("src",i.currentItem.attr("src")),n||e.css("visibility","hidden"),e},update:function(t,e){n&&!s.forcePlaceholderSize||(e.height()||e.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),e.width())||e.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10))}}),i.placeholder=x(s.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),s.placeholder.update(i,i.placeholder)},_createTrPlaceholder:function(t,e){var i=this;t.children().each(function(){x("<td> </td>",i.document[0]).attr("colspan",x(this).attr("colspan")||1).appendTo(e)})},_contactContainers:function(t){for(var e,i,n,s,o,r,a,l,c,h=null,u=null,d=this.containers.length-1;0<=d;d--)x.contains(this.currentItem[0],this.containers[d].element[0])||(this._intersectsWith(this.containers[d].containerCache)?h&&x.contains(this.containers[d].element[0],h.element[0])||(h=this.containers[d],u=d):this.containers[d].containerCache.over&&(this.containers[d]._trigger("out",t,this._uiHash(this)),this.containers[d].containerCache.over=0));if(h)if(1===this.containers.length)this.containers[u].containerCache.over||(this.containers[u]._trigger("over",t,this._uiHash(this)),this.containers[u].containerCache.over=1);else{for(i=1e4,n=null,s=(l=h.floating||this._isFloating(this.currentItem))?"left":"top",o=l?"width":"height",c=l?"pageX":"pageY",e=this.items.length-1;0<=e;e--)x.contains(this.containers[u].element[0],this.items[e].item[0])&&this.items[e].item[0]!==this.currentItem[0]&&(r=this.items[e].item.offset()[s],a=!1,t[c]-r>this.items[e][o]/2&&(a=!0),Math.abs(t[c]-r)<i)&&(i=Math.abs(t[c]-r),n=this.items[e],this.direction=a?"up":"down");(n||this.options.dropOnEmpty)&&(this.currentContainer===this.containers[u]?this.currentContainer.containerCache.over||(this.containers[u]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1):(n?this._rearrange(t,n,null,!0):this._rearrange(t,null,this.containers[u].element,!0),this._trigger("change",t,this._uiHash()),this.containers[u]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[u],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[u]._trigger("over",t,this._uiHash(this)),this.containers[u].containerCache.over=1))}},_createHelper:function(t){var e=this.options,i=x.isFunction(e.helper)?x(e.helper.apply(this.element[0],[t,this.currentItem])):"clone"===e.helper?this.currentItem.clone():this.currentItem;return i.parents("body").length||x("parent"!==e.appendTo?e.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&&!e.forceHelperSize||i.width(this.currentItem.width()),i[0].style.height&&!e.forceHelperSize||i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=x.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&x.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&x.ui.ie?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var t;return"relative"===this.cssPosition?{top:(t=this.currentItem.position()).top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}:{top:0,left:0}},_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 t,e,i=this.options;"parent"===i.containment&&(i.containment=this.helper[0].parentNode),"document"!==i.containment&&"window"!==i.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===i.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===i.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(i.containment)||(t=x(i.containment)[0],i=x(i.containment).offset(),e="hidden"!==x(t).css("overflow"),this.containment=[i.left+(parseInt(x(t).css("borderLeftWidth"),10)||0)+(parseInt(x(t).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(x(t).css("borderTopWidth"),10)||0)+(parseInt(x(t).css("paddingTop"),10)||0)-this.margins.top,i.left+(e?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(x(t).css("borderLeftWidth"),10)||0)-(parseInt(x(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(e?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(x(t).css("borderTopWidth"),10)||0)-(parseInt(x(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,e){e=e||this.position;var i="absolute"===t?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&x.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(n[0].tagName);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:n.scrollTop())*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:n.scrollLeft())*i}},_generatePosition:function(t){var e,i=this.options,n=t.pageX,s=t.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&x.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(o[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&&(t.pageX-this.offset.click.left<this.containment[0]&&(n=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(s=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(n=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3])&&(s=this.containment[3]+this.offset.click.top),i.grid)&&(e=this.originalPageY+Math.round((s-this.originalPageY)/i.grid[1])*i.grid[1],s=!this.containment||e-this.offset.click.top>=this.containment[1]&&e-this.offset.click.top<=this.containment[3]?e:e-this.offset.click.top>=this.containment[1]?e-i.grid[1]:e+i.grid[1],e=this.originalPageX+Math.round((n-this.originalPageX)/i.grid[0])*i.grid[0],n=!this.containment||e-this.offset.click.left>=this.containment[0]&&e-this.offset.click.left<=this.containment[2]?e:e-this.offset.click.left>=this.containment[0]?e-i.grid[0]:e+i.grid[0]),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():r?0:o.scrollTop()),left:n-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:o.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.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(t,e){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(e,i,n){return function(t){n._trigger(e,t,i._uiHash(i))}}for(this.fromOutside&&!e&&n.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push(function(t){this._trigger("update",t,this._uiHash())}),this===this.currentContainer||e||(n.push(function(t){this._trigger("remove",t,this._uiHash())}),n.push((function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}).call(this,this.currentContainer)),n.push((function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}).call(this,this.currentContainer))),i=this.containers.length-1;0<=i;i--)e||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,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<n.length;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===x.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var e=t||this;return{helper:e.helper,placeholder:e.placeholder||x([]),position:e.position,originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:t?t.element:null}}}),x.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 t=this.options;this.prevShow=this.prevHide=x(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),t.collapsible||!1!==t.active&&null!=t.active||(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():x()}},_createIcons:function(){var t,e=this.options.icons;e&&(t=x("<span>"),this._addClass(t,"ui-accordion-header-icon","ui-icon "+e.header),t.prependTo(this.headers),t=this.active.children(".ui-accordion-header-icon"),this._removeClass(t,e.header)._addClass(t,null,e.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 t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){"active"===t?this._activate(e):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e)&&this._createIcons())},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var e=x.ui.keyCode,i=this.headers.length,n=this.headers.index(t.target),s=!1;switch(t.keyCode){case e.RIGHT:case e.DOWN:s=this.headers[(n+1)%i];break;case e.LEFT:case e.UP:s=this.headers[(n-1+i)%i];break;case e.SPACE:case e.ENTER:this._eventHandler(t);break;case e.HOME:s=this.headers[0];break;case e.END:s=this.headers[i-1]}s&&(x(t.target).attr("tabIndex",-1),x(s).attr("tabIndex",0),x(s).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===x.ui.keyCode.UP&&t.ctrlKey&&x(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels(),!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=x()):!1===t.active?this._activate(0):this.active.length&&!x.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=x()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=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"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var i,t=this.options,e=t.heightStyle,n=this.element.parent();this.active=this._findActive(t.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 t=x(this),e=t.uniqueId().attr("id"),i=t.next(),n=i.uniqueId().attr("id");t.attr("aria-controls",n),i.attr("aria-labelledby",e)}).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(t.event),"fill"===e?(i=n.height(),this.element.siblings(":visible").each(function(){var t=x(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.headers.each(function(){i-=x(this).outerHeight(!0)}),this.headers.next().each(function(){x(this).height(Math.max(0,i-x(this).innerHeight()+x(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.headers.next().each(function(){var t=x(this).is(":visible");t||x(this).show(),i=Math.max(i,x(this).css("height","").height()),t||x(this).hide()}).height(i))},_activate:function(t){var e=this._findActive(t)[0];e!==this.active[0]&&(e=e||this.active[0],this._eventHandler({target:e,currentTarget:e,preventDefault:x.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):x()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&x.each(t.split(" "),function(t,e){i[e]="_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(t){var e=this.options,i=this.active,n=x(t.currentTarget),s=n[0]===i[0],o=s&&e.collapsible,r=o?x():n.next(),a=i.next(),a={oldHeader:i,oldPanel:a,newHeader:o?x():n,newPanel:r};t.preventDefault(),s&&!e.collapsible||!1===this._trigger("beforeActivate",t,a)||(e.active=!o&&this.headers.index(n),this.active=s?x():n,this._toggle(a),this._removeClass(i,"ui-accordion-header-active","ui-state-active"),e.icons&&(r=i.children(".ui-accordion-header-icon"),this._removeClass(r,null,e.icons.activeHeader)._addClass(r,null,e.icons.header)),s)||(this._removeClass(n,"ui-accordion-header-collapsed")._addClass(n,"ui-accordion-header-active","ui-state-active"),e.icons&&(o=n.children(".ui-accordion-header-icon"),this._removeClass(o,null,e.icons.header)._addClass(o,null,e.icons.activeHeader)),this._addClass(n.next(),"ui-accordion-content-active"))},_toggle:function(t){var e=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=e,this.prevHide=i,this.options.animate?this._animate(e,i,t):(i.hide(),e.show(),this._toggleComplete(t)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),e.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):e.length&&this.headers.filter(function(){return 0===parseInt(x(this).attr("tabIndex"),10)}).attr("tabIndex",-1),e.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,i,e){var n,s=this,o=0,r=t.css("box-sizing"),a=t.length&&(!i.length||t.index()<i.index()),l=this.options.animate||{},a=a&&l.down||l,c=function(){s._toggleComplete(e)},h=(h="string"==typeof a?a:h)||a.easing||l.easing,u=(u="number"==typeof a?a:u)||a.duration||l.duration;return i.length?t.length?(n=t.show().outerHeight(),i.animate(this.hideProps,{duration:u,easing:h,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:u,easing:h,complete:c,step:function(t,e){e.now=Math.round(t),"height"!==e.prop?"content-box"===r&&(o+=e.now):"content"!==s.options.heightStyle&&(e.now=Math.round(n-i.outerHeight()-o),o=0)}})):i.animate(this.hideProps,u,h,c):t.animate(this.showProps,u,h,c)},_toggleComplete:function(t){var e=t.oldPanel,i=e.prev();this._removeClass(e,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),x.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(t){t.preventDefault()},"click .ui-menu-item":function(t){var e=x(t.target),i=x(x.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!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(t){var e,i;this.previousFilter||(e=x(t.target).closest(".ui-menu-item"),i=x(t.currentTarget),e[0]===i[0]&&(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i)))},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(t){this._delay(function(){x.contains(this.element[0],x.ui.safeActiveElement(this.document[0]))||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var t=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(),t.children().each(function(){var t=x(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var e,i,n,s=!0;switch(t.keyCode){case x.ui.keyCode.PAGE_UP:this.previousPage(t);break;case x.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case x.ui.keyCode.HOME:this._move("first","first",t);break;case x.ui.keyCode.END:this._move("last","last",t);break;case x.ui.keyCode.UP:this.previous(t);break;case x.ui.keyCode.DOWN:this.next(t);break;case x.ui.keyCode.LEFT:this.collapse(t);break;case x.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case x.ui.keyCode.ENTER:case x.ui.keyCode.SPACE:this._activate(t);break;case x.ui.keyCode.ESCAPE:this.collapse(t);break;default:e=this.previousFilter||"",n=s=!1,i=96<=t.keyCode&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),i===e?n=!0:i=e+i,e=this._filterMenuItems(i),(e=n&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(i=String.fromCharCode(t.keyCode),e=this._filterMenuItems(i)),e.length?(this.focus(t,e),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}s&&t.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var t,e,n=this,s=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),t=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=x(this),e=t.prev(),i=x("<span>").data("ui-menu-submenu-caret",!0);n._addClass(i,"ui-menu-icon","ui-icon "+s),e.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",e.attr("id"))}),this._addClass(t,"ui-menu","ui-widget ui-widget-content ui-front"),(t=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=x(this);n._isDivider(t)&&n._addClass(t,"ui-menu-divider","ui-widget-content")}),e=(i=t.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(e,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!x.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){var i;"icons"===t&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,i,n,s;this._hasScroll()&&(e=parseFloat(x.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(x.css(this.activeMenu[0],"paddingTop"))||0,e=t.offset().top-this.activeMenu.offset().top-e-i,i=this.activeMenu.scrollTop(),n=this.activeMenu.height(),s=t.outerHeight(),e<0?this.activeMenu.scrollTop(i+e):n<e+s&&this.activeMenu.scrollTop(i+e-n+s))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(t){var e=x.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(e)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var t=i?this.element:x(e&&e.target).closest(this.element.find(".ui-menu"));t.length||(t=this.element),this._close(t),this.blur(e),this._removeClass(t.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=t},this.delay)},_close:function(t){(t=t||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(t){return!x(t.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},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(t,e,i){var n;(n=this.active?"first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0):n)&&n.length&&this.active||(n=this.activeMenu.find(this.options.items)[e]()),this.focus(i,n)},nextPage:function(t){var e,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(e=x(this)).offset().top-i-n<0}),this.focus(t,e)):this.focus(t,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var e,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<(e=x(this)).offset().top-i+n}),this.focus(t,e)):this.focus(t,this.activeMenu.find(this.options.items).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||x(t.target).closest(".ui-menu-item");var e={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,e)},_filterMenuItems:function(t){var e=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),i=new RegExp("^"+e,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return i.test(x.trim(x(this).children(".ui-menu-item-wrapper").text()))})}}), /*! * jQuery UI Autocomplete 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ x.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,t=this.element[0].nodeName.toLowerCase(),e="textarea"===t,t="input"===t;this.isMultiLine=e||!t&&this._isContentEditable(this.element),this.valueMethod=this.element[e||t?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))n=s=i=!0;else{n=s=i=!1;var e=x.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:i=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:i=!0,this._move("nextPage",t);break;case e.UP:i=!0,this._keyEvent("previous",t);break;case e.DOWN:i=!0,this._keyEvent("next",t);break;case e.ENTER:this.menu.active&&(i=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:n=!0,this._searchTimeout(t)}}},keypress:function(t){if(i)i=!1,this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault();else if(!n){var e=x.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){s?(s=!1,t.preventDefault()):this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),this._change(t))}}),this._initSource(),this.menu=x("<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(t){t.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==x.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(t,e){var i;this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent)&&/^mouse/.test(t.originalEvent.type)?(this.menu.blur(),this.document.one("mousemove",function(){x(t.target).trigger(t.originalEvent)})):(i=e.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:i})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(i.value),(i=e.item.attr("aria-label")||i.value)&&x.trim(i).length&&(this.liveRegion.children().hide(),x("<div>").text(i).appendTo(this.liveRegion)))},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==x.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",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=x("<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(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var e=this.menu.element[0];return t.target===this.element[0]||t.target===e||x.contains(e,t.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t=(t=(t=t&&(t.jquery||t.nodeType?x(t):this.document.find(t).eq(0)))&&t[0]?t:this.element.closest(".ui-front, dialog")).length?t:this.document[0].body},_initSource:function(){var i,n,s=this;x.isArray(this.options.source)?(i=this.options.source,this.source=function(t,e){e(x.ui.autocomplete.filter(i,t.term))}):"string"==typeof this.options.source?(n=this.options.source,this.source=function(t,e){s.xhr&&s.xhr.abort(),s.xhr=x.ajax({url:n,data:t,dataType:"json",success:function(t){e(t)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(n){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),e=this.menu.element.is(":visible"),i=n.altKey||n.ctrlKey||n.metaKey||n.shiftKey;t&&(e||i)||(this.selectedItem=null,this.search(null,n))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return x.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(t){t=t&&this._normalize(t),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:x.map(t,function(t){return"string"==typeof t?{label:t,value:t}:x.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var e=this.menu.element.empty();this._renderMenu(e,t),this.isNewMenu=!0,this.menu.refresh(),e.show(),this._resizeMenu(),e.position(x.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,t){var n=this;x.each(t,function(t,e){n._renderItemData(i,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(t,e){return x("<li>").append(x("<div>").text(e.label)).appendTo(t)},_move:function(t,e){this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),this.menu.blur()):this.menu[t](e):this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){var e;return!!t.length&&("inherit"===(e=t.prop("contentEditable"))?this._isContentEditable(t.parent()):"true"===e)}}),x.extend(x.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,e){var i=new RegExp(x.ui.autocomplete.escapeRegex(e),"i");return x.grep(t,function(t){return i.test(t.label||t.value||t)})}}),x.widget("ui.autocomplete",x.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(1<t?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.children().hide(),x("<div>").text(e).appendTo(this.liveRegion))}}),x.ui.autocomplete;var R,p,B=/ui-corner-([a-z]){2,6}/g;x.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 o=this,r=[];x.each(this.options.items,function(n,t){var e,s={};t&&("controlgroupLabel"===n?((e=o.element.find(t)).each(function(){var t=x(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),o._addClass(e,null,"ui-widget ui-widget-content ui-state-default"),r=r.concat(e.get())):x.fn[n]&&(s=o["_"+n+"Options"]?o["_"+n+"Options"]("middle"):{classes:{}},o.element.find(t).each(function(){var t=x(this),e=t[n]("instance"),i=x.widget.extend({},s);"button"===n&&t.parent(".ui-spinner").length||((e=e||t[n]()[n]("instance"))&&(i.classes=o._resolveClassesValues(i.classes,e)),t[n](i),i=t[n]("widget"),x.data(i[0],"ui-controlgroup-data",e||t[n]("instance")),r.push(i[0]))})))}),this.childWidgets=x(x.unique(r)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var t=x(this).data("ui-controlgroup-data");t&&t[e]&&t[e]()})},_updateCornerClass:function(t,e){var i=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,i)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,n={classes:{}};return n.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],n},_spinnerOptions:function(t){var e=this._buildSimpleOptions(t,"ui-spinner");return e.classes["ui-spinner-up"]="",e.classes["ui-spinner-down"]="",e},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(i,n){var s={};return x.each(i,function(t){var e=n.options.classes[t]||"",e=x.trim(e.replace(B,""));s[t]=(e+" "+i[t]).replace(/\s+/g," ")}),s},_setOption:function(t,e){"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"===t?this._callChildMethod(e?"disable":"enable"):this.refresh()},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,(s=this.options.onlyVisible?s.filter(":visible"):s).length&&(x.each(["first","last"],function(t,e){var i,n=s[e]().data("ui-controlgroup-data");n&&o["_"+n.widgetName+"Options"]?((i=o["_"+n.widgetName+"Options"](1===s.length?"only":e)).classes=o._resolveClassesValues(i.classes,n),n.element[n.widgetName](i)):o._updateCornerClass(s[e](),e)}),this._callChildMethod("refresh"))}}), /*! * jQuery UI Checkboxradio 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ x.widget("ui.checkboxradio",[x.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 t,e=this,i=this._super()||{};return this._readType(),t=this.element.labels(),this.label=x(t[t.length-1]),this.label.length||x.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){e.originalLabel+=3===this.nodeType?x(this).text():this.outerHTML}),this.originalLabel&&(i.label=this.originalLabel),null!=(t=this.element[0].disabled)&&(i.disabled=t),i},_create:function(){var t=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(),t&&(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 t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===t&&/radio|checkbox/.test(this.type)||x.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t=this.element[0].name,e="input[name='"+x.ui.escapeSelector(t)+"']";return t?(this.form.length?x(this.form[0].elements).filter(e):x(e).filter(function(){return 0===x(this).form().length})).not(this.element):x([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t),"radio"===this.type&&this._getRadioGroup().each(function(){var t=x(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){"label"===t&&!e||(this._super(t,e),"disabled"===t?(this._toggleClass(this.label,null,"ui-state-disabled",e),this.element[0].disabled=e):this.refresh())},_updateIcon:function(t){var e="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=x("<span>"),this.iconSpace=x("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(e+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):e+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",e),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):this.icon!==undefined&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),(t=this.iconSpace?t.not(this.iconSpace[0]):t).remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]),x.ui.checkboxradio, /*! * jQuery UI Button 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ x.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 t,e=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_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(t){t.keyCode===x.ui.keyCode.SPACE&&(t.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(t,e){var i="iconPosition"!==t,n=i?this.options.iconPosition:e,s="top"===n||"bottom"===n;this.icon?i&&this._removeClass(this.icon,null,this.options.icon):(this.icon=x("<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,e),this._attachIcon(n),s?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=x("<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(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=(t.showLabel===undefined?this.options:t).showLabel,i=(t.icon===undefined?this.options:t).icon;e||i||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace)&&this.iconSpace.remove()),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e),this.element[0].disabled=e)&&this.element.blur()},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!1!==x.uiBackCompat&&(x.widget("ui.button",x.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(t,e){"text"===t?this._super("showLabel",e):("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),this._superApply(arguments))}}),x.fn.button=(R=x.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")?R.apply(this,arguments):(x.ui.checkboxradio||x.error("Checkboxradio widget missing"),0===arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}),x.fn.buttonset=function(){return x.ui.controlgroup||x.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))}),x.ui.button;function q(){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},x.extend(this._defaults,this.regional[""]),this.regional.en=x.extend(!0,{},this.regional[""]),this.regional["en-US"]=x.extend(!0,{},this.regional.en),this.dpDiv=U(x("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function U(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",e,function(){x(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&x(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&x(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",e,Y)}function Y(){x.datepicker._isDisabledDatepicker((p.inline?p.dpDiv.parent():p.input)[0])||(x(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),x(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&x(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&x(this).addClass("ui-datepicker-next-hover"))}function f(t,e){for(var i in x.extend(t,e),e)null==e[i]&&(t[i]=e[i])} /*! * jQuery UI Datepicker 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ x.extend(x.ui,{datepicker:{version:"1.12.1"}}),x.extend(q.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return f(this._defaults,t||{}),this},_attachDatepicker:function(t,e){var i,n=t.nodeName.toLowerCase(),s="div"===n||"span"===n;t.id||(this.uuid+=1,t.id="dp"+this.uuid),(i=this._newInst(x(t),s)).settings=x.extend({},e||{}),"input"===n?this._connectDatepicker(t,i):s&&this._inlineDatepicker(t,i)},_newInst:function(t,e){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:e?U(x("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,e){var i=x(t);e.append=x([]),e.trigger=x([]),i.hasClass(this.markerClassName)||(this._attachments(i,e),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(e),x.data(t,"datepicker",e),e.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,e){var i,n=this._get(e,"appendText"),s=this._get(e,"isRTL");e.append&&e.append.remove(),n&&(e.append=x("<span class='"+this._appendClass+"'>"+n+"</span>"),t[s?"before":"after"](e.append)),t.off("focus",this._showDatepicker),e.trigger&&e.trigger.remove(),"focus"!==(n=this._get(e,"showOn"))&&"both"!==n||t.on("focus",this._showDatepicker),"button"!==n&&"both"!==n||(n=this._get(e,"buttonText"),i=this._get(e,"buttonImage"),e.trigger=x(this._get(e,"buttonImageOnly")?x("<img/>").addClass(this._triggerClass).attr({src:i,alt:n,title:n}):x("<button type='button'></button>").addClass(this._triggerClass).html(i?x("<img/>").attr({src:i,alt:n,title:n}):n)),t[s?"before":"after"](e.trigger),e.trigger.on("click",function(){return x.datepicker._datepickerShowing&&x.datepicker._lastInput===t[0]?x.datepicker._hideDatepicker():(x.datepicker._datepickerShowing&&x.datepicker._lastInput!==t[0]&&x.datepicker._hideDatepicker(),x.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(t){var e,i,n,s,o,r;this._get(t,"autoSize")&&!t.inline&&(o=new Date(2009,11,20),(r=this._get(t,"dateFormat")).match(/[DM]/)&&(o.setMonth((e=function(t){for(s=n=i=0;s<t.length;s++)t[s].length>i&&(i=t[s].length,n=s);return n})(this._get(t,r.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this._get(t,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr("size",this._formatDate(t,o).length))},_inlineDatepicker:function(t,e){var i=x(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(e.dpDiv),x.data(t,"datepicker",e),this._setDate(e,this._getDefaultDate(e),!0),this._updateDatepicker(e),this._updateAlternate(e),e.settings.disabled&&this._disableDatepicker(t),e.dpDiv.css("display","block"))},_dialogDatepicker:function(t,e,i,n,s){var o,r,a,l,c=this._dialogInst;return c||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=x("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),x("body").append(this._dialogInput),(c=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},x.data(this._dialogInput[0],"datepicker",c)),f(c.settings,n||{}),e=e&&e.constructor===Date?this._formatDate(c,e):e,this._dialogInput.val(e),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,this._pos||(o=document.documentElement.clientWidth,r=document.documentElement.clientHeight,a=document.documentElement.scrollLeft||document.body.scrollLeft,l=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[o/2-100+a,r/2-150+l]),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]),x.blockUI&&x.blockUI(this.dpDiv),x.data(this._dialogInput[0],"datepicker",c),this},_destroyDatepicker:function(t){var e,i=x(t),n=x.data(t,"datepicker");i.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),x.removeData(t,"datepicker"),"input"===e?(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"!==e&&"span"!==e||i.removeClass(this.markerClassName).empty(),p===n)&&(p=null)},_enableDatepicker:function(e){var t,i=x(e),n=x.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!1,n.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==t&&"span"!==t||((n=i.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=x.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var t,i=x(e),n=x.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!0,n.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==t&&"span"!==t||((n=i.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=x.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(t)for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(t){try{return x.data(t,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,i){var n,s,o,r,a=this._getInst(t);if(2===arguments.length&&"string"==typeof e)return"defaults"===e?x.extend({},x.datepicker._defaults):a?"all"===e?x.extend({},a.settings):this._get(a,e):null;n=e||{},"string"==typeof e&&((n={})[e]=i),a&&(this._curInst===a&&this._hideDatepicker(),s=this._getDateDatepicker(t,!0),o=this._getMinMaxDate(a,"min"),r=this._getMinMaxDate(a,"max"),f(a.settings,n),null!==o&&n.dateFormat!==undefined&&n.minDate===undefined&&(a.settings.minDate=this._formatDate(a,o)),null!==r&&n.dateFormat!==undefined&&n.maxDate===undefined&&(a.settings.maxDate=this._formatDate(a,r)),"disabled"in n&&(n.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(x(t),a),this._autoSize(a),this._setDate(a,s),this._updateAlternate(a),this._updateDatepicker(a))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(t){var e,i,n=x.datepicker._getInst(t.target),s=!0,o=n.dpDiv.is(".ui-datepicker-rtl");if(n._keyEvent=!0,x.datepicker._datepickerShowing)switch(t.keyCode){case 9:x.datepicker._hideDatepicker(),s=!1;break;case 13:return(i=x("td."+x.datepicker._dayOverClass+":not(."+x.datepicker._currentClass+")",n.dpDiv))[0]&&x.datepicker._selectDay(t.target,n.selectedMonth,n.selectedYear,i[0]),(i=x.datepicker._get(n,"onSelect"))?(e=x.datepicker._formatDate(n),i.apply(n.input?n.input[0]:null,[e,n])):x.datepicker._hideDatepicker(),!1;case 27:x.datepicker._hideDatepicker();break;case 33:x.datepicker._adjustDate(t.target,t.ctrlKey?-x.datepicker._get(n,"stepBigMonths"):-x.datepicker._get(n,"stepMonths"),"M");break;case 34:x.datepicker._adjustDate(t.target,t.ctrlKey?+x.datepicker._get(n,"stepBigMonths"):+x.datepicker._get(n,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&x.datepicker._clearDate(t.target),s=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&x.datepicker._gotoToday(t.target),s=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&x.datepicker._adjustDate(t.target,o?1:-1,"D"),s=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&x.datepicker._adjustDate(t.target,t.ctrlKey?-x.datepicker._get(n,"stepBigMonths"):-x.datepicker._get(n,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&x.datepicker._adjustDate(t.target,-7,"D"),s=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&x.datepicker._adjustDate(t.target,o?-1:1,"D"),s=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&x.datepicker._adjustDate(t.target,t.ctrlKey?+x.datepicker._get(n,"stepBigMonths"):+x.datepicker._get(n,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&x.datepicker._adjustDate(t.target,7,"D"),s=t.ctrlKey||t.metaKey;break;default:s=!1}else 36===t.keyCode&&t.ctrlKey?x.datepicker._showDatepicker(this):s=!1;s&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e,i=x.datepicker._getInst(t.target);if(x.datepicker._get(i,"constrainInput"))return i=x.datepicker._possibleChars(x.datepicker._get(i,"dateFormat")),e=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||e<" "||!i||-1<i.indexOf(e)},_doKeyUp:function(t){var e=x.datepicker._getInst(t.target);if(e.input.val()!==e.lastVal)try{x.datepicker.parseDate(x.datepicker._get(e,"dateFormat"),e.input?e.input.val():null,x.datepicker._getFormatConfig(e))&&(x.datepicker._setDateFromField(e),x.datepicker._updateAlternate(e),x.datepicker._updateDatepicker(e))}catch(i){}return!0},_showDatepicker:function(t){var e,i,n,s;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=x("input",t.parentNode)[0]),x.datepicker._isDisabledDatepicker(t)||x.datepicker._lastInput===t||(s=x.datepicker._getInst(t),x.datepicker._curInst&&x.datepicker._curInst!==s&&(x.datepicker._curInst.dpDiv.stop(!0,!0),s)&&x.datepicker._datepickerShowing&&x.datepicker._hideDatepicker(x.datepicker._curInst.input[0]),!1===(i=(i=x.datepicker._get(s,"beforeShow"))?i.apply(t,[t,s]):{}))||(f(s.settings,i),s.lastVal=null,x.datepicker._lastInput=t,x.datepicker._setDateFromField(s),x.datepicker._inDialog&&(t.value=""),x.datepicker._pos||(x.datepicker._pos=x.datepicker._findPos(t),x.datepicker._pos[1]+=t.offsetHeight),e=!1,x(t).parents().each(function(){return!(e|="fixed"===x(this).css("position"))}),i={left:x.datepicker._pos[0],top:x.datepicker._pos[1]},x.datepicker._pos=null,s.dpDiv.empty(),s.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),x.datepicker._updateDatepicker(s),i=x.datepicker._checkOffset(s,i,e),s.dpDiv.css({position:x.datepicker._inDialog&&x.blockUI?"static":e?"fixed":"absolute",display:"none",left:i.left+"px",top:i.top+"px"}),s.inline)||(i=x.datepicker._get(s,"showAnim"),n=x.datepicker._get(s,"duration"),s.dpDiv.css("z-index",function(t){for(var e;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(e=parseInt(t.css("zIndex"),10),!isNaN(e))&&0!==e)return e;t=t.parent()}return 0}(x(t))+1),x.datepicker._datepickerShowing=!0,x.effects&&x.effects.effect[i]?s.dpDiv.show(i,x.datepicker._get(s,"showOptions"),n):s.dpDiv[i||"show"](i?n:null),x.datepicker._shouldFocusInput(s)&&s.input.trigger("focus"),x.datepicker._curInst=s)},_updateDatepicker:function(t){this.maxRows=4,(p=t).dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var e,i=this._getNumberOfMonths(t),n=i[1],s=t.dpDiv.find("."+this._dayOverClass+" a");0<s.length&&Y.apply(s.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<n&&t.dpDiv.addClass("ui-datepicker-multi-"+n).css("width",17*n+"em"),t.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===x.datepicker._curInst&&x.datepicker._datepickerShowing&&x.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(e=t.yearshtml,setTimeout(function(){e===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),e=t.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(t,e,i){var n=t.dpDiv.outerWidth(),s=t.dpDiv.outerHeight(),o=t.input?t.input.outerWidth():0,r=t.input?t.input.outerHeight():0,a=document.documentElement.clientWidth+(i?0:x(document).scrollLeft()),l=document.documentElement.clientHeight+(i?0:x(document).scrollTop());return e.left-=this._get(t,"isRTL")?n-o:0,e.left-=i&&e.left===t.input.offset().left?x(document).scrollLeft():0,e.top-=i&&e.top===t.input.offset().top+r?x(document).scrollTop():0,e.left-=Math.min(e.left,e.left+n>a&&n<a?Math.abs(e.left+n-a):0),e.top-=Math.min(e.top,e.top+s>l&&s<l?Math.abs(s+r):0),e},_findPos:function(t){for(var e=this._getInst(t),i=this._get(e,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||x.expr.filters.hidden(t));)t=t[i?"previousSibling":"nextSibling"];return[(e=x(t).offset()).left,e.top]},_hideDatepicker:function(t){var e,i,n,s=this._curInst;!s||t&&s!==x.data(t,"datepicker")||this._datepickerShowing&&(e=this._get(s,"showAnim"),n=this._get(s,"duration"),i=function(){x.datepicker._tidyDialog(s)},x.effects&&(x.effects.effect[e]||x.effects[e])?s.dpDiv.hide(e,x.datepicker._get(s,"showOptions"),n,i):s.dpDiv["slideDown"===e?"slideUp":"fadeIn"===e?"fadeOut":"hide"](e?n:null,i),e||i(),this._datepickerShowing=!1,(n=this._get(s,"onClose"))&&n.apply(s.input?s.input[0]:null,[s.input?s.input.val():"",s]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),x.blockUI)&&(x.unblockUI(),x("body").append(this.dpDiv)),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){var e,i;x.datepicker._curInst&&(e=x(t.target),i=x.datepicker._getInst(e[0]),!(e[0].id===x.datepicker._mainDivId||0!==e.parents("#"+x.datepicker._mainDivId).length||e.hasClass(x.datepicker.markerClassName)||e.closest("."+x.datepicker._triggerClass).length||!x.datepicker._datepickerShowing||x.datepicker._inDialog&&x.blockUI)||e.hasClass(x.datepicker.markerClassName)&&x.datepicker._curInst!==i)&&x.datepicker._hideDatepicker()},_adjustDate:function(t,e,i){var n=x(t),s=this._getInst(n[0]);this._isDisabledDatepicker(n[0])||(this._adjustInstDate(s,e+("M"===i?this._get(s,"showCurrentAtPos"):0),i),this._updateDatepicker(s))},_gotoToday:function(t){var e,i=x(t),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):(e=new Date,n.selectedDay=e.getDate(),n.drawMonth=n.selectedMonth=e.getMonth(),n.drawYear=n.selectedYear=e.getFullYear()),this._notifyChange(n),this._adjustDate(i)},_selectMonthYear:function(t,e,i){var n=x(t),s=this._getInst(n[0]);s["selected"+("M"===i?"Month":"Year")]=s["draw"+("M"===i?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10),this._notifyChange(s),this._adjustDate(n)},_selectDay:function(t,e,i,n){var s=x(t);x(n).hasClass(this._unselectableClass)||this._isDisabledDatepicker(s[0])||((s=this._getInst(s[0])).selectedDay=s.currentDay=x("a",n).html(),s.selectedMonth=s.currentMonth=e,s.selectedYear=s.currentYear=i,this._selectDate(t,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(t){var e=x(t);this._selectDate(e,"")},_selectDate:function(t,e){var i,n=x(t),n=this._getInst(n[0]);e=null!=e?e:this._formatDate(n),n.input&&n.input.val(e),this._updateAlternate(n),(i=this._get(n,"onSelect"))?i.apply(n.input?n.input[0]:null,[e,n]):n.input&&n.input.trigger("change"),n.inline?this._updateDatepicker(n):(this._hideDatepicker(),this._lastInput=n.input[0],"object"!=typeof n.input[0]&&n.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var e,i,n=this._get(t,"altField");n&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),e=this._getDate(t),i=this.formatDate(i,e,this._getFormatConfig(t)),x(n).val(i))},noWeekends:function(t){var e=t.getDay();return[0<e&&e<6,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(i,o,t){if(null==i||null==o)throw"Invalid arguments";if(""===(o="object"==typeof o?o.toString():o+""))return null;for(var e,n,s,r=0,a=(t?t.shortYearCutoff:null)||this._defaults.shortYearCutoff,a="string"!=typeof a?a:(new Date).getFullYear()%100+parseInt(a,10),l=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,c=(t?t.dayNames:null)||this._defaults.dayNames,h=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,u=(t?t.monthNames:null)||this._defaults.monthNames,d=-1,p=-1,f=-1,m=-1,g=!1,v=function(t){var e=w+1<i.length&&i.charAt(w+1)===t;return e&&w++,e},_=function(t){var e=v(t),e="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,e=new RegExp("^\\d{"+("y"===t?e:1)+","+e+"}"),e=o.substring(r).match(e);if(e)return r+=e[0].length,parseInt(e[0],10);throw"Missing number at position "+r},b=function(t,e,i){var n=-1,s=x.map(v(t)?i:e,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(x.each(s,function(t,e){var i=e[1];if(o.substr(r,i.length).toLowerCase()===i.toLowerCase())return n=e[0],r+=i.length,!1}),-1!==n)return n+1;throw"Unknown name at position "+r},y=function(){if(o.charAt(r)!==i.charAt(w))throw"Unexpected literal at position "+r;r++},w=0;w<i.length;w++)if(g)"'"!==i.charAt(w)||v("'")?y():g=!1;else switch(i.charAt(w)){case"d":f=_("d");break;case"D":b("D",l,c);break;case"o":m=_("o");break;case"m":p=_("m");break;case"M":p=b("M",h,u);break;case"y":d=_("y");break;case"@":d=(s=new Date(_("@"))).getFullYear(),p=s.getMonth()+1,f=s.getDate();break;case"!":d=(s=new Date((_("!")-this._ticksTo1970)/1e4)).getFullYear(),p=s.getMonth()+1,f=s.getDate();break;case"'":v("'")?y():g=!0;break;default:y()}if(r<o.length&&(n=o.substr(r),!/^\s+/.test(n)))throw"Extra/unparsed characters found in date: "+n;if(-1===d?d=(new Date).getFullYear():d<100&&(d+=(new Date).getFullYear()-(new Date).getFullYear()%100+(d<=a?0:-100)),-1<m)for(p=1,f=m;;){if(f<=(e=this._getDaysInMonth(d,p-1)))break;p++,f-=e}if((s=this._daylightSavingAdjust(new Date(d,p-1,f))).getFullYear()!==d||s.getMonth()+1!==p||s.getDate()!==f)throw"Invalid date";return s},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,t,e){if(!t)return"";var n,s=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,o=(e?e.dayNames:null)||this._defaults.dayNames,r=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort,a=(e?e.monthNames:null)||this._defaults.monthNames,l=function(t){var e=n+1<i.length&&i.charAt(n+1)===t;return e&&n++,e},c=function(t,e,i){var n=""+e;if(l(t))for(;n.length<i;)n="0"+n;return n},h=function(t,e,i,n){return(l(t)?n:i)[e]},u="",d=!1;if(t)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+=c("d",t.getDate(),2);break;case"D":u+=h("D",t.getDay(),s,o);break;case"o":u+=c("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=c("m",t.getMonth()+1,2);break;case"M":u+=h("M",t.getMonth(),r,a);break;case"y":u+=l("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":u+=t.getTime();break;case"!":u+=1e4*t.getTime()+this._ticksTo1970;break;case"'":l("'")?u+="'":d=!0;break;default:u+=i.charAt(n)}return u},_possibleChars:function(i){for(var t="",e=!1,n=function(t){var e=s+1<i.length&&i.charAt(s+1)===t;return e&&s++,e},s=0;s<i.length;s++)if(e)"'"!==i.charAt(s)||n("'")?t+=i.charAt(s):e=!1;else switch(i.charAt(s)){case"d":case"m":case"y":case"@":t+="0123456789";break;case"D":case"M":return null;case"'":n("'")?t+="'":e=!0;break;default:t+=i.charAt(s)}return t},_get:function(t,e){return(t.settings[e]!==undefined?t.settings:this._defaults)[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),n=t.lastVal=t.input?t.input.val():null,s=this._getDefaultDate(t),o=s,r=this._getFormatConfig(t);try{o=this.parseDate(i,n,r)||s}catch(event){n=e?"":n}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=n?o.getDate():0,t.currentMonth=n?o.getMonth():0,t.currentYear=n?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(l,t,e){var i,n=null==t||""===t?e:"string"==typeof t?function(t){try{return x.datepicker.parseDate(x.datepicker._get(l,"dateFormat"),t,x.datepicker._getFormatConfig(l))}catch(a){}for(var e=(t.toLowerCase().match(/^c/)?x.datepicker._getDate(l):null)||new Date,i=e.getFullYear(),n=e.getMonth(),s=e.getDate(),o=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,r=o.exec(t);r;){switch(r[2]||"d"){case"d":case"D":s+=parseInt(r[1],10);break;case"w":case"W":s+=7*parseInt(r[1],10);break;case"m":case"M":n+=parseInt(r[1],10),s=Math.min(s,x.datepicker._getDaysInMonth(i,n));break;case"y":case"Y":i+=parseInt(r[1],10),s=Math.min(s,x.datepicker._getDaysInMonth(i,n))}r=o.exec(t)}return new Date(i,n,s)}(t):"number"==typeof t?isNaN(t)?e:(i=t,(n=new Date).setDate(n.getDate()+i),n):new Date(t.getTime());return(n=n&&"Invalid Date"===n.toString()?e:n)&&(n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0)),this._daylightSavingAdjust(n)},_daylightSavingAdjust:function(t){return t?(t.setHours(12<t.getHours()?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var n=!e,s=t.selectedMonth,o=t.selectedYear,r=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=r.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=r.getMonth(),t.drawYear=t.selectedYear=t.currentYear=r.getFullYear(),s===t.selectedMonth&&o===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(n?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(t){var e=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){x.datepicker._adjustDate(i,-e,"M")},next:function(){x.datepicker._adjustDate(i,+e,"M")},hide:function(){x.datepicker._hideDatepicker()},today:function(){x.datepicker._gotoToday(i)},selectDay:function(){return x.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return x.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return x.datepicker._selectMonthYear(i,this,"Y"),!1}};x(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,n,s,o,H,z,L,j,r,a,W,l,c,h,u,d,p,f,m,g,v,F,_,b,y,w,R,B,x,k,C,T=new Date,q=this._daylightSavingAdjust(new Date(T.getFullYear(),T.getMonth(),T.getDate())),D=this._get(t,"isRTL"),T=this._get(t,"showButtonPanel"),S=this._get(t,"hideIfNoPrevNext"),I=this._get(t,"navigationAsDateFormat"),M=this._getNumberOfMonths(t),P=this._get(t,"showCurrentAtPos"),$=this._get(t,"stepMonths"),U=1!==M[0]||1!==M[1],Y=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),A=this._getMinMaxDate(t,"min"),O=this._getMinMaxDate(t,"max"),N=t.drawMonth-P,E=t.drawYear;if(N<0&&(N+=12,E--),O)for(e=this._daylightSavingAdjust(new Date(O.getFullYear(),O.getMonth()-M[0]*M[1]+1,O.getDate())),e=A&&e<A?A:e;this._daylightSavingAdjust(new Date(E,N,1))>e;)--N<0&&(N=11,E--);for(t.drawMonth=N,t.drawYear=E,P=this._get(t,"prevText"),P=I?this.formatDate(P,this._daylightSavingAdjust(new Date(E,N-$,1)),this._getFormatConfig(t)):P,i=this._canAdjustMonth(t,-1,E,N)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+P+"'><span class='ui-icon ui-icon-circle-triangle-"+(D?"e":"w")+"'>"+P+"</span></a>":S?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+P+"'><span class='ui-icon ui-icon-circle-triangle-"+(D?"e":"w")+"'>"+P+"</span></a>",P=this._get(t,"nextText"),P=I?this.formatDate(P,this._daylightSavingAdjust(new Date(E,N+$,1)),this._getFormatConfig(t)):P,n=this._canAdjustMonth(t,1,E,N)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+P+"'><span class='ui-icon ui-icon-circle-triangle-"+(D?"w":"e")+"'>"+P+"</span></a>":S?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+P+"'><span class='ui-icon ui-icon-circle-triangle-"+(D?"w":"e")+"'>"+P+"</span></a>",$=this._get(t,"currentText"),S=this._get(t,"gotoCurrent")&&t.currentDay?Y:q,$=I?this.formatDate($,S,this._getFormatConfig(t)):$,P=t.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(t,"closeText")+"</button>",I=T?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(D?P:"")+(this._isInRange(t,S)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+$+"</button>":"")+(D?"":P)+"</div>":"",s=parseInt(this._get(t,"firstDay"),10),s=isNaN(s)?0:s,o=this._get(t,"showWeek"),H=this._get(t,"dayNames"),z=this._get(t,"dayNamesMin"),L=this._get(t,"monthNames"),j=this._get(t,"monthNamesShort"),r=this._get(t,"beforeShowDay"),a=this._get(t,"showOtherMonths"),W=this._get(t,"selectOtherMonths"),l=this._getDefaultDate(t),c="",u=0;u<M[0];u++){for(d="",this.maxRows=4,p=0;p<M[1];p++){if(f=this._daylightSavingAdjust(new Date(E,N,t.selectedDay)),m=" ui-corner-all",g="",U){if(g+="<div class='ui-datepicker-group",1<M[1])switch(p){case 0:g+=" ui-datepicker-group-first",m=" ui-corner-"+(D?"right":"left");break;case M[1]-1:g+=" ui-datepicker-group-last",m=" ui-corner-"+(D?"left":"right");break;default:g+=" ui-datepicker-group-middle",m=""}g+="'>"}for(g+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+m+"'>"+(/all|left/.test(m)&&0===u?D?n:i:"")+(/all|right/.test(m)&&0===u?D?i:n:"")+this._generateMonthYearHeader(t,N,E,A,O,0<u||0<p,L,j)+"</div><table class='ui-datepicker-calendar'><thead><tr>",v=o?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",h=0;h<7;h++)v+="<th scope='col'"+(5<=(h+s+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+H[F=(h+s)%7]+"'>"+z[F]+"</span></th>";for(g+=v+"</tr></thead><tbody>",b=this._getDaysInMonth(E,N),E===t.selectedYear&&N===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,b)),_=(this._getFirstDayOfMonth(E,N)-s+7)%7,b=Math.ceil((_+b)/7),y=U&&this.maxRows>b?this.maxRows:b,this.maxRows=y,w=this._daylightSavingAdjust(new Date(E,N,1-_)),R=0;R<y;R++){for(g+="<tr>",B=o?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(w)+"</td>":"",h=0;h<7;h++)x=r?r.apply(t.input?t.input[0]:null,[w]):[!0,""],C=(k=w.getMonth()!==N)&&!W||!x[0]||A&&w<A||O&&O<w,B+="<td class='"+(5<=(h+s+6)%7?" ui-datepicker-week-end":"")+(k?" ui-datepicker-other-month":"")+(w.getTime()===f.getTime()&&N===t.selectedMonth&&t._keyEvent||l.getTime()===w.getTime()&&l.getTime()===f.getTime()?" "+this._dayOverClass:"")+(C?" "+this._unselectableClass+" ui-state-disabled":"")+(k&&!a?"":" "+x[1]+(w.getTime()===Y.getTime()?" "+this._currentClass:"")+(w.getTime()===q.getTime()?" ui-datepicker-today":""))+"'"+(k&&!a||!x[2]?"":" title='"+x[2].replace(/'/g,"'")+"'")+(C?"":" data-handler='selectDay' data-event='click' data-month='"+w.getMonth()+"' data-year='"+w.getFullYear()+"'")+">"+(k&&!a?" ":C?"<span class='ui-state-default'>"+w.getDate()+"</span>":"<a class='ui-state-default"+(w.getTime()===q.getTime()?" ui-state-highlight":"")+(w.getTime()===Y.getTime()?" ui-state-active":"")+(k?" ui-priority-secondary":"")+"' href='#'>"+w.getDate()+"</a>")+"</td>",w.setDate(w.getDate()+1),w=this._daylightSavingAdjust(w);g+=B+"</tr>"}11<++N&&(N=0,E++),d+=g+="</tbody></table>"+(U?"</div>"+(0<M[0]&&p===M[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}c+=d}return c+=I,t._keyEvent=!1,c},_generateMonthYearHeader:function(t,e,i,n,s,o,r,a){var l,c,h,u,d,p,f,m,g=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),_=this._get(t,"showMonthAfterYear"),b="<div class='ui-datepicker-title'>",y="";if(o||!g)y+="<span class='ui-datepicker-month'>"+r[e]+"</span>";else{for(l=n&&n.getFullYear()===i,c=s&&s.getFullYear()===i,y+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",h=0;h<12;h++)(!l||h>=n.getMonth())&&(!c||h<=s.getMonth())&&(y+="<option value='"+h+"'"+(h===e?" selected='selected'":"")+">"+a[h]+"</option>");y+="</select>"}if(_||(b+=y+(!o&&g&&v?"":" ")),!t.yearshtml)if(t.yearshtml="",o||!v)b+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(u=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),f=(p=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt(t,10);return isNaN(e)?d:e})(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,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";f<=m;f++)t.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";t.yearshtml+="</select>",b+=t.yearshtml,t.yearshtml=null}return b+=this._get(t,"yearSuffix"),_&&(b+=(!o&&g&&v?"":" ")+y),b+="</div>"},_adjustInstDate:function(t,e,i){var n=t.selectedYear+("Y"===i?e:0),s=t.selectedMonth+("M"===i?e:0),o=Math.min(t.selectedDay,this._getDaysInMonth(n,s))+("D"===i?e:0),n=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,s,o)));t.selectedDay=n.getDate(),t.drawMonth=t.selectedMonth=n.getMonth(),t.drawYear=t.selectedYear=n.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),i=i&&e<i?i:e;return n&&n<i?n:i},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,n){var s=this._getNumberOfMonths(t),s=this._daylightSavingAdjust(new Date(i,n+(e<0?e:s[0]*s[1]),1));return e<0&&s.setDate(this._getDaysInMonth(s.getFullYear(),s.getMonth())),this._isInRange(t,s)},_isInRange:function(t,e){var i,n=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),o=null,r=null,a=this._get(t,"yearRange");return a&&(a=a.split(":"),i=(new Date).getFullYear(),o=parseInt(a[0],10),r=parseInt(a[1],10),a[0].match(/[+\-].*/)&&(o+=i),a[1].match(/[+\-].*/))&&(r+=i),(!n||e.getTime()>=n.getTime())&&(!s||e.getTime()<=s.getTime())&&(!o||e.getFullYear()>=o)&&(!r||e.getFullYear()<=r)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:"string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var s=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),s,this._getFormatConfig(t))}}),x.fn.datepicker=function(t){if(!this.length)return this;x.datepicker.initialized||(x(document).on("mousedown",x.datepicker._checkExternalClick),x.datepicker.initialized=!0),0===x("#"+x.datepicker._mainDivId).length&&x("body").append(x.datepicker.dpDiv);var e=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&("isDisabled"===t||"getDate"===t||"widget"===t)||"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?x.datepicker["_"+t+"Datepicker"].apply(x.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?x.datepicker["_"+t+"Datepicker"].apply(x.datepicker,[this].concat(e)):x.datepicker._attachDatepicker(this,t)})},x.datepicker=new q,x.datepicker.initialized=!1,x.datepicker.uuid=(new Date).getTime(),x.datepicker.version="1.12.1";x.datepicker, /*! * jQuery UI Dialog 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ x.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(t){var e=x(this).css(t).offset().top;e<0&&x(this).css("top",t.top-e)}},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&&x.fn.draggable&&this._makeDraggable(),this.options.resizable&&x.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?x(t):this.document.find(t||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:x.noop,enable:x.noop,close:function(t){var e=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||x.ui.safeBlur(x.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){e._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var i=!1,n=this.uiDialog.siblings(".ui-front:visible").map(function(){return+x(this).css("z-index")}).get(),n=Math.max.apply(null,n);return n>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",n+1),i=!0),i&&!e&&this._trigger("focus",t),i},open:function(){var t=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=x(x.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(){t._focusTabbable(),t._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;(t=(t=(t=(t=(t=t||this.element.find("[autofocus]")).length?t:this.element.find(":tabbable")).length?t:this.uiDialogButtonPane.find(":tabbable")).length?t:this.uiDialogTitlebarClose.filter(":tabbable")).length?t:this.uiDialog).eq(0).trigger("focus")},_keepFocus:function(t){function e(){var t=x.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===t||x.contains(this.uiDialog[0],t)||this._focusTabbable()}t.preventDefault(),e.call(this),this._delay(e)},_createWrapper:function(){this.uiDialog=x("<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(t){var e,i,n;this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===x.ui.keyCode.ESCAPE?(t.preventDefault(),this.close(t)):t.keyCode!==x.ui.keyCode.TAB||t.isDefaultPrevented()||(e=this.uiDialog.find(":tabbable"),i=e.filter(":first"),n=e.filter(":last"),t.target!==n[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==i[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){n.trigger("focus")}),t.preventDefault()):(this._delay(function(){i.trigger("focus")}),t.preventDefault()))},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=x("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){x(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=x("<button type='button'></button>").button({label:x("<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(t){t.preventDefault(),this.close(t)}}),t=x("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html(" ")},_createButtonPane:function(){this.uiDialogButtonPane=x("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=x("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var s=this,t=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),x.isEmptyObject(t)||x.isArray(t)&&!t.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(x.each(t,function(t,e){var i,n;e=x.isFunction(e)?{click:e,text:t}:e,e=x.extend({type:"button"},e),i=e.click,n={icon:e.icon,iconPosition:e.iconPosition,showLabel:e.showLabel,icons:e.icons,text:e.text},delete e.click,delete e.icon,delete e.iconPosition,delete e.showLabel,delete e.icons,"boolean"==typeof e.text&&delete e.text,x("<button></button>",e).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 r(t){return{position:t.position,offset:t.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(t,e){s._addClass(x(this),"ui-dialog-dragging"),s._blockFrames(),s._trigger("dragStart",t,r(e))},drag:function(t,e){s._trigger("drag",t,r(e))},stop:function(t,e){var i=e.offset.left-s.document.scrollLeft(),n=e.offset.top-s.document.scrollTop();o.position={my:"left top",at:"left"+(0<=i?"+":"")+i+" top"+(0<=n?"+":"")+n,of:s.window},s._removeClass(x(this),"ui-dialog-dragging"),s._unblockFrames(),s._trigger("dragStop",t,r(e))}})},_makeResizable:function(){var s=this,o=this.options,t=o.resizable,e=this.uiDialog.css("position"),t="string"==typeof t?t:"n,e,s,w,se,sw,ne,nw";function r(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:o.maxWidth,maxHeight:o.maxHeight,minWidth:o.minWidth,minHeight:this._minHeight(),handles:t,start:function(t,e){s._addClass(x(this),"ui-dialog-resizing"),s._blockFrames(),s._trigger("resizeStart",t,r(e))},resize:function(t,e){s._trigger("resize",t,r(e))},stop:function(t,e){var i=s.uiDialog.offset(),n=i.left-s.document.scrollLeft(),i=i.top-s.document.scrollTop();o.height=s.uiDialog.height(),o.width=s.uiDialog.width(),o.position={my:"left top",at:"left"+(0<=n?"+":"")+n+" top"+(0<=i?"+":"")+i,of:s.window},s._removeClass(x(this),"ui-dialog-resizing"),s._unblockFrames(),s._trigger("resizeStop",t,r(e))}}).css("position",e)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=x(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),e=x.inArray(this,t);-1!==e&&t.splice(e,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||this.document.data("ui-dialog-instances",t=[]),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(t){var i=this,n=!1,s={};x.each(t,function(t,e){i._setOption(t,e),t in i.sizeRelatedOptions&&(n=!0),t in i.resizableRelatedOptions&&(s[t]=e)}),n&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(t,e){var i,n=this.uiDialog;"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:x("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&((i=n.is(":data(ui-draggable)"))&&!e&&n.draggable("destroy"),!i)&&e&&this._makeDraggable(),"position"===t&&this._position(),"resizable"===t&&((i=n.is(":data(ui-resizable)"))&&!e&&n.resizable("destroy"),i&&"string"==typeof e&&n.resizable("option","handles",e),i||!1===e||this._makeResizable()),"title"===t)&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title"))},_size:function(){var t,e,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth>n.width&&(n.width=n.minWidth),t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),e=Math.max(0,n.minHeight-t),i="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-t):"none","auto"===n.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,n.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=x(this);return x("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!x(t.target).closest(".ui-dialog").length||!!x(t.target).closest(".ui-datepicker").length},_createOverlay:function(){var e;this.options.modal&&(e=!0,this._delay(function(){e=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(t){e||this._allowInteraction(t)||(t.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=x("<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(){var t;this.options.modal&&this.overlay&&((t=this.document.data("ui-dialog-overlays")-1)?this.document.data("ui-dialog-overlays",t):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null)}}),!1!==x.uiBackCompat&&x.widget("ui.dialog",x.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}}),x.ui.dialog,x.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=x("<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(t){if(t===undefined)return this.options.value;this.options.value=this._constrainedValue(t),this._refreshValue()},_constrainedValue:function(t){return t===undefined&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,e=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(e.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,t===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=x("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}}),x.widget("ui.selectmenu",[x.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 t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=x()},_drawButton:function(){var t,e=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(t){this.button.focus(),t.preventDefault()}}),this.element.hide(),this.button=x("<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"),t=x("<span>").appendTo(this.button),this._addClass(t,"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(){e._rendered||e._refreshMenu()})},_drawMenu:function(){var n=this;this.menu=x("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=x("<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(t,e){t.preventDefault(),n._setSelection(),n._select(e.item.data("ui-selectmenu-item"),t)},focus:function(t,e){var i=e.item.data("ui-selectmenu-item");null!=n.focusIndex&&i.index!==n.focusIndex&&(n._trigger("focus",t,{item:i}),n.isOpen||n._select(i,t)),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 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&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){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",t)))},_position:function(){this.menuWrap.position(x.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var e=x("<span>");return this._setText(e,t.label),this._addClass(e,"ui-selectmenu-text"),e},_renderMenu:function(n,t){var s=this,o="";x.each(t,function(t,e){var i;e.optgroup!==o&&(i=x("<li>",{text:e.optgroup}),s._addClass(i,"ui-selectmenu-optgroup","ui-menu-divider"+(e.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),i.appendTo(n),o=e.optgroup),s._renderItemData(n,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(t,e){var i=x("<li>"),n=x("<div>",{title:e.element.attr("title")});return e.disabled&&this._addClass(i,null,"ui-state-disabled"),this._setText(n,e.label),i.append(n).appendTo(t)},_setText:function(t,e){e?t.text(e):t.html(" ")},_move:function(t,e){var i,n=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),n+=":not(.ui-state-disabled)"),(n="first"===t||"last"===t?i["first"===t?"prevAll":"nextAll"](n).eq(-1):i[t+"All"](n).eq(0)).length&&this.menuInstance.focus(e,n)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?((t=window.getSelection()).removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(t){!this.isOpen||x(t.target).closest(".ui-selectmenu-menu, #"+x.ui.escapeSelector(this.ids.button)).length||this.close(t)}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection()).rangeCount&&(this.range=t.getRangeAt(0)):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(t){var e=!0;switch(t.keyCode){case x.ui.keyCode.TAB:case x.ui.keyCode.ESCAPE:this.close(t),e=!1;break;case x.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case x.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case x.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case x.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case x.ui.keyCode.LEFT:this._move("prev",t);break;case x.ui.keyCode.RIGHT:this._move("next",t);break;case x.ui.keyCode.HOME:case x.ui.keyCode.PAGE_UP:this._move("first",t);break;case x.ui.keyCode.END:case x.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t),e=!1}e&&t.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==i&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){var e=this.menuItems.eq(t.index).attr("id");this.button.attr({"aria-labelledby":e,"aria-activedescendant":e}),this.menu.attr("aria-activedescendant",e)},_setOption:function(t,e){var i;"icons"===t&&(i=this.button.find("span.ui-icon"),this._removeClass(i,null,this.options.icons.button)._addClass(i,null,e.button)),this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"ui-state-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return t=(t=(t=t&&(t.jquery||t.nodeType?x(t):this.document.find(t).eq(0)))&&t[0]?t:this.element.closest(".ui-front, dialog")).length?t:this.document[0].body},_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 t=this.options.width;!1===t?this.button.css("width",""):(null===t&&(t=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(t))},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(t){var i=this,n=[];t.each(function(t,e){n.push(i._parseOption(x(e),t))}),this.items=n},_parseOption:function(t,e){var i=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||t.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)}}]),x.widget("ui.slider",x.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 t,e=this.options,i=this.element.find(".ui-slider-handle"),n=[],s=e.values&&e.values.length||1;for(i.length>s&&(i.slice(s).remove(),i=i.slice(0,s)),t=i.length;t<s;t++)n.push("<span tabindex='0'></span>");this.handles=i.add(x(n.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(t){x(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:x.isArray(t.values)&&(t.values=t.values.slice(0)):t.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=x("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.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(t){var i,n,s,o,e,r,a=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e),n=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(i-a.values(t));(e<n||n===e&&(t===a._lastChangedValue||a.values(t)===l.min))&&(n=e,s=x(this),o=t)}),!1!==this._start(t,o))&&(this._mouseSliding=!0,this._handleIndex=o,this._addClass(s,null,"ui-state-active"),s.trigger("focus"),e=s.offset(),r=!x(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=r?{left:0,top:0}:{left:t.pageX-e.left-s.width()/2,top:t.pageY-e.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(t,o,i),this._animateOff=!0)},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},e=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,e),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i="horizontal"===this.orientation?(e=this.elementSize.width,t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),i=i/e;return(i=1<i?1:i)<0&&(i=0),"vertical"===this.orientation&&(i=1-i),e=this._valueMax()-this._valueMin(),i=this._valueMin()+i*e,this._trimAlignValue(i)},_uiHash:function(t,e,i){var n={handle:this.handles[t],handleIndex:t,value:e!==undefined?e:this.value()};return this._hasMultipleValues()&&(n.value=e!==undefined?e:this.values(t),n.values=i||this.values()),n},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var n,s=this.value(),o=this.values();this._hasMultipleValues()&&(n=this.values(e?0:1),s=this.values(e),2===this.options.values.length&&!0===this.options.range&&(i=0===e?Math.min(n,i):Math.max(n,i)),o[e]=i),i!==s&&!1!==this._trigger("slide",t,this._uiHash(e,i,o))&&(this._hasMultipleValues()?this.values(e,i):this.value(i))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){if(!arguments.length)return this._value();this.options.value=this._trimAlignValue(t),this._refreshValue(),this._change(null,0)},values:function(t,e){var i,n,s;if(1<arguments.length)this.options.values[t]=this._trimAlignValue(e),this._refreshValue(),this._change(null,t);else{if(!arguments.length)return this._values();if(!x.isArray(t))return this._hasMultipleValues()?this._values(t):this.value();for(i=this.options.values,n=t,s=0;s<i.length;s+=1)i[s]=this._trimAlignValue(n[s]),this._change(null,s);this._refreshValue()}},_setOption:function(t,e){var i,n=0;switch("range"===t&&!0===this.options.range&&("min"===e?(this.options.value=this._values(0),this.options.values=null):"max"===e&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),x.isArray(this.options.values)&&(n=this.options.values.length),this._super(t,e),t){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(e),this.handles.css("horizontal"===e?"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(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,i,n;if(arguments.length)return e=this.options.values[t],this._trimAlignValue(e);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(t){var e,i,n;return t<=this._valueMin()?this._valueMin():t>=this._valueMax()?this._valueMax():(e=0<this.options.step?this.options.step:1,n=t-(i=(t-this._valueMin())%e),2*Math.abs(i)>=e&&(n+=0<i?e:-e),parseFloat(n.toFixed(5)))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step;(t=Math.round((t-e)/i)*i+e)>this.options.max&&(t-=i),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return t=null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var e=t.toString(),i=e.indexOf(".");return-1===i?0:e.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,i,t,n,s,o=this.options.range,r=this.options,a=this,l=!this._animateOff&&r.animate,c={};this._hasMultipleValues()?this.handles.each(function(t){i=(a.values(t)-a._valueMin())/(a._valueMax()-a._valueMin())*100,c["horizontal"===a.orientation?"left":"bottom"]=i+"%",x(this).stop(1,1)[l?"animate":"css"](c,r.animate),!0===a.options.range&&("horizontal"===a.orientation?(0===t&&a.range.stop(1,1)[l?"animate":"css"]({left:i+"%"},r.animate),1===t&&a.range[l?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:r.animate})):(0===t&&a.range.stop(1,1)[l?"animate":"css"]({bottom:i+"%"},r.animate),1===t&&a.range[l?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:r.animate}))),e=i}):(t=this.value(),n=this._valueMin(),s=this._valueMax(),i=s!==n?(t-n)/(s-n)*100:0,c["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[l?"animate":"css"](c,r.animate),"min"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:i+"%"},r.animate),"max"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:100-i+"%"},r.animate),"min"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:i+"%"},r.animate),"max"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:100-i+"%"},r.animate))},_handleEvents:{keydown:function(t){var e,i,n,s=x(t.target).data("ui-slider-handle-index");switch(t.keyCode){case x.ui.keyCode.HOME:case x.ui.keyCode.END:case x.ui.keyCode.PAGE_UP:case x.ui.keyCode.PAGE_DOWN:case x.ui.keyCode.UP:case x.ui.keyCode.RIGHT:case x.ui.keyCode.DOWN:case x.ui.keyCode.LEFT:if(t.preventDefault(),this._keySliding||(this._keySliding=!0,this._addClass(x(t.target),null,"ui-state-active"),!1!==this._start(t,s)))break;return}switch(n=this.options.step,e=i=this._hasMultipleValues()?this.values(s):this.value(),t.keyCode){case x.ui.keyCode.HOME:i=this._valueMin();break;case x.ui.keyCode.END:i=this._valueMax();break;case x.ui.keyCode.PAGE_UP:i=this._trimAlignValue(e+(this._valueMax()-this._valueMin())/this.numPages);break;case x.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(e-(this._valueMax()-this._valueMin())/this.numPages);break;case x.ui.keyCode.UP:case x.ui.keyCode.RIGHT:if(e===this._valueMax())return;i=this._trimAlignValue(e+n);break;case x.ui.keyCode.DOWN:case x.ui.keyCode.LEFT:if(e===this._valueMin())return;i=this._trimAlignValue(e-n)}this._slide(t,s,i)},keyup:function(t){var e=x(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,e),this._change(t,e),this._removeClass(x(t.target),null,"ui-state-active"))}}}); /*! * jQuery UI Spinner 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ function e(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}x.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 x.each(["min","max","step"],function(t,e){var i=s.attr(e);null!=i&&i.length&&(n[e]=i)}),n},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((0<e?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(t){var e;function i(){this.element[0]!==x.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=e,this._delay(function(){this.previous=e}))}e=this.element[0]===x.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),t.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),!1!==this._start(t)&&this._repeat(null,x(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(x(t.currentTarget).hasClass("ui-state-active"))return!1!==this._start(t)&&void this._repeat(null,x(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"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(t){var e=this.options,i=x.ui.keyCode;switch(t.keyCode){case i.UP:return this._repeat(null,1,t),!0;case i.DOWN:return this._repeat(null,-1,t),!0;case i.PAGE_UP:return this._repeat(null,e.page,t),!0;case i.PAGE_DOWN:return this._repeat(null,-e.page,t),!0}return!1},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t))&&(this.counter||(this.counter=1),this.spinning=!0)},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:i})||(this._value(i),this.counter++)},_increment:function(t){var e=this.options.incremental;return e?x.isFunction(e)?e(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return t=null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var e=t.toString(),i=e.indexOf(".");return-1===i?0:e.length-i-1},_adjustValue:function(t){var e=this.options,i=null!==e.min?e.min:0,n=t-i;return t=i+Math.round(n/e.step)*e.step,t=parseFloat(t.toFixed(this._precision())),null!==e.max&&t>e.max?e.max:null!==e.min&&t<e.min?e.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var i;"culture"===t||"numberFormat"===t?(i=this._parse(this.element.val()),this.options[t]=e,this.element.val(this._format(i))):("max"!==t&&"min"!==t&&"step"!==t||"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(i=this.buttons.first().find(".ui-icon"),this._removeClass(i,null,this.options.icons.up),this._addClass(i,null,e.up),i=this.buttons.last().find(".ui-icon"),this._removeClass(i,null,this.options.icons.down),this._addClass(i,null,e.down)),this._super(t,e))},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:e(function(t){this._super(t)}),_parse:function(t){return""===(t="string"==typeof t&&""!==t?window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t:t)||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_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 t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var i;""!==t&&null!==(i=this._parse(t))&&(e||(i=this._adjustValue(i)),t=this._format(i)),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:e(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:e(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:e(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:e(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){if(!arguments.length)return this._parse(this.element.val());e(this._value).call(this,t)},widget:function(){return this.uiSpinner}}),!1!==x.uiBackCompat&&x.widget("ui.spinner",x.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>"}});x.ui.spinner, /*! * jQuery UI Tabs 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ x.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:(m=/#.*$/,function(t){var e=t.href.replace(m,""),i=location.href.replace(m,"");try{e=decodeURIComponent(e)}catch(n){}try{i=decodeURIComponent(i)}catch(n){}return 1<t.hash.length&&e===i}),_create:function(){var e=this,t=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,t.collapsible),this._processTabs(),t.active=this._initialActive(),x.isArray(t.disabled)&&(t.disabled=x.unique(t.disabled.concat(x.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(t.active):this.active=x(),this._refresh(),this.active.length&&this.load(t.active)},_initialActive:function(){var i=this.options.active,t=this.options.collapsible,n=location.hash.substring(1);return null===i&&(n&&this.tabs.each(function(t,e){if(x(e).attr("aria-controls")===n)return i=t,!1}),null!==(i=null===i?this.tabs.index(this.tabs.filter(".ui-tabs-active")):i)&&-1!==i||(i=!!this.tabs.length&&0)),!1!==i&&-1===(i=this.tabs.index(this.tabs.eq(i)))&&(i=!t&&0),i=!t&&!1===i&&this.anchors.length?0:i},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):x()}},_tabKeydown:function(t){var e=x(x.ui.safeActiveElement(this.document[0])).closest("li"),i=this.tabs.index(e),n=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case x.ui.keyCode.RIGHT:case x.ui.keyCode.DOWN:i++;break;case x.ui.keyCode.UP:case x.ui.keyCode.LEFT:n=!1,i--;break;case x.ui.keyCode.END:i=this.anchors.length-1;break;case x.ui.keyCode.HOME:i=0;break;case x.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i);case x.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i!==this.options.active&&i);default:return}t.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,n),t.ctrlKey||t.metaKey||(e.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(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===x.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===x.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===x.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,e){var i=this.tabs.length-1;for(;-1!==x.inArray(t=(t=i<t?0:t)<0?i:t,this.options.disabled);)t=e?t+1:t-1;return t},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){"active"===t?this._activate(e):(this._super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),"heightStyle"===t&&this._setupHeightStyle(e))},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,e=this.tablist.children(":has(a[href])");t.disabled=x.map(e.filter(".ui-state-disabled"),function(t){return e.index(t)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!x.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=x()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=x()),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,t=this.tabs,e=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(t){x(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){x(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 x("a",this)[0]}).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=x(),this.anchors.each(function(t,e){var i,n,s,o=x(e).uniqueId().attr("id"),r=x(e).closest("li"),a=r.attr("aria-controls");l._isLocal(e)?(s=(i=e.hash).substring(1),n=l.element.find(l._sanitizeSelector(i))):(s=r.attr("aria-controls")||x({}).uniqueId()[0].id,(n=l.element.find(i="#"+s)).length||(n=l._createPanel(s)).insertAfter(l.panels[t-1]||l.tablist),n.attr("aria-live","polite")),n.length&&(l.panels=l.panels.add(n)),a&&r.data("ui-tabs-aria-controls",a),r.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"),t&&(this._off(t.not(this.tabs)),this._off(e.not(this.anchors)),this._off(i.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return x("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var e,i;for(x.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),i=0;e=this.tabs[i];i++)e=x(e),!0===t||-1!==x.inArray(i,t)?(e.attr("aria-disabled","true"),this._addClass(e,null,"ui-state-disabled")):(e.removeAttr("aria-disabled"),this._removeClass(e,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var i={};t&&x.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.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(t){var i,e=this.element.parent();"fill"===t?(i=e.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=x(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=x(this).outerHeight(!0)}),this.panels.each(function(){x(this).height(Math.max(0,i-x(this).innerHeight()+x(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,x(this).height("").height())}).height(i))},_eventHandler:function(t){var e=this.options,i=this.active,n=x(t.currentTarget).closest("li"),s=n[0]===i[0],o=s&&e.collapsible,r=o?x():this._getPanelForTab(n),a=i.length?this._getPanelForTab(i):x(),i={oldTab:i,oldPanel:a,newTab:o?x():n,newPanel:r};t.preventDefault(),n.hasClass("ui-state-disabled")||n.hasClass("ui-tabs-loading")||this.running||s&&!e.collapsible||!1===this._trigger("beforeActivate",t,i)||(e.active=!o&&this.tabs.index(n),this.active=s?x():n,this.xhr&&this.xhr.abort(),a.length||r.length||x.error("jQuery UI Tabs: Mismatching fragment identifier."),r.length&&this.load(this.tabs.index(n),t),this._toggle(t,i))},_toggle:function(t,e){var i=this,n=e.newPanel,s=e.oldPanel;function o(){i.running=!1,i._trigger("activate",t,e)}function r(){i._addClass(e.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(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),r()}):(this._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),s.hide(),r()),s.attr("aria-hidden","true"),e.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),n.length&&s.length?e.oldTab.attr("tabIndex",-1):n.length&&this.tabs.filter(function(){return 0===x(this).attr("tabIndex")}).attr("tabIndex",-1),n.attr("aria-hidden","false"),e.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var e=this._findActive(t);e[0]!==this.active[0]&&(e=(e=e.length?e:this.active).find(".ui-tabs-anchor")[0],this._eventHandler({target:e,currentTarget:e,preventDefault:x.noop}))},_findActive:function(t){return!1===t?x():this.tabs.eq(t)},_getIndex:function(t){return t="string"==typeof t?this.anchors.index(this.anchors.filter("[href$='"+x.ui.escapeSelector(t)+"']")):t},_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(){x.data(this,"ui-tabs-destroy")?x(this).remove():x(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=x(this),e=t.data("ui-tabs-aria-controls");e?t.attr("aria-controls",e).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var t=this.options.disabled;!1!==t&&(t=i!==undefined&&(i=this._getIndex(i),x.isArray(t)?x.map(t,function(t){return t!==i?t:null}):x.map(this.tabs,function(t,e){return e!==i?e:null})),this._setOptionDisabled(t))},disable:function(t){var e=this.options.disabled;if(!0!==e){if(t===undefined)e=!0;else{if(t=this._getIndex(t),-1!==x.inArray(t,e))return;e=x.isArray(e)?x.merge([t],e).sort():[t]}this._setOptionDisabled(e)}},load:function(t,n){t=this._getIndex(t);var s=this,i=this.tabs.eq(t),e=i.find(".ui-tabs-anchor"),o=this._getPanelForTab(i),r={tab:i,panel:o},a=function(t,e){"abort"===e&&s.panels.stop(!1,!0),s._removeClass(i,"ui-tabs-loading"),o.removeAttr("aria-busy"),t===s.xhr&&delete s.xhr};this._isLocal(e[0])||(this.xhr=x.ajax(this._ajaxSettings(e,n,r)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(i,"ui-tabs-loading"),o.attr("aria-busy","true"),this.xhr.done(function(t,e,i){setTimeout(function(){o.html(t),s._trigger("load",n,r),a(i,e)},1)}).fail(function(t,e){setTimeout(function(){a(t,e)},1)})))},_ajaxSettings:function(t,i,n){var s=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,e){return s._trigger("beforeLoad",i,x.extend({jqXHR:t,ajaxSettings:e},n))}}},_getPanelForTab:function(t){var e=x(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+e))}}),!1!==x.uiBackCompat&&x.widget("ui.tabs",x.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),x.ui.tabs;var m,g,v,_,V,X,b,y,w,D,S,K,G,Q,J,Z,tt,et,it,nt,I,M="ui-effects-",P="ui-effects-style",$="ui-effects-animated",st=x;function A(t,e,i){var n=w[e.type]||{};return null==t?i||!e.def?null:e.def:(t=n.floor?~~t:parseFloat(t),isNaN(t)?e.def:n.mod?(t+n.mod)%n.mod:t<0?0:n.max<t?n.max:t)}function ot(s){var o=b(),r=o._rgba=[];return s=s.toLowerCase(),S(X,function(t,e){var i=e.re.exec(s),i=i&&e.parse(i),n=e.space||"rgba";if(i)return i=o[n](i),o[y[n].cache]=i[y[n].cache],r=o._rgba=i._rgba,!1}),r.length?("0,0,0,0"===r.join()&&g.extend(r,_.transparent),o):_[s]}function O(t,e,i){return 6*(i=(i+1)%1)<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function rt(t){var e,i,n=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,s={};if(n&&n.length&&n[0]&&n[n[0]])for(i=n.length;i--;)"string"==typeof n[e=n[i]]&&(s[x.camelCase(e)]=n[e]);else for(e in n)"string"==typeof n[e]&&(s[e]=n[e]);return s}function N(t,e,i,n){return t={effect:t=x.isPlainObject(t)?(e=t).effect:t},x.isFunction(e=null==e?{}:e)&&(n=e,i=null,e={}),"number"!=typeof e&&!x.fx.speeds[e]||(n=i,i=e,e={}),x.isFunction(i)&&(n=i,i=null),e&&x.extend(t,e),i=i||e.duration,t.duration=x.fx.off?0:"number"==typeof i?i:i in x.fx.speeds?x.fx.speeds[i]:x.fx.speeds._default,t.complete=n||e.complete,t}function E(t){return!t||"number"==typeof t||x.fx.speeds[t]||"string"==typeof t&&!x.effects.effect[t]||x.isFunction(t)||"object"==typeof t&&!t.effect}function at(t,e){var i=e.outerWidth(),n=e.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(t)||["",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}}x.effects={effect:{}}, /*! * jQuery Color Animations v2.1.2 * https://github.com/jquery/jquery-color * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * Date: Wed Jan 16 08:47:09 2013 -0600 */ V=/^([\-+])=\s*(\d+\.?\d*)/,X=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],b=(g=st).Color=function(t,e,i,n){return new g.Color.fn.parse(t,e,i,n)},y={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"}}}},w={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},D=b.support={},t=g("<p>")[0],S=g.each,t.style.cssText="background-color:rgba(1,1,1,.5)",D.rgba=-1<t.style.backgroundColor.indexOf("rgba"),S(y,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),(b.fn=g.extend(b.prototype,{parse:function(s,t,e,i){if(s===v)return this._rgba=[null,null,null,null],this;(s.jquery||s.nodeType)&&(s=g(s).css(t),t=v);var o=this,n=g.type(s),r=this._rgba=[];return t!==v&&(s=[s,t,e,i],n="array"),"string"===n?this.parse(ot(s)||_._default):"array"===n?(S(y.rgba.props,function(t,e){r[e.idx]=A(s[e.idx],e)}),this):"object"===n?(s instanceof b?S(y,function(t,e){s[e.cache]&&(o[e.cache]=s[e.cache].slice())}):S(y,function(t,i){var n=i.cache;S(i.props,function(t,e){if(!o[n]&&i.to){if("alpha"===t||null==s[t])return;o[n]=i.to(o._rgba)}o[n][e.idx]=A(s[t],e,!0)}),o[n]&&g.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(t){var s=b(t),o=!0,r=this;return S(y,function(t,e){var i,n=s[e.cache];return n&&(i=r[e.cache]||e.to&&e.to(r._rgba)||[],S(e.props,function(t,e){if(null!=n[e.idx])return o=n[e.idx]===i[e.idx]})),o}),o},_space:function(){var i=[],n=this;return S(y,function(t,e){n[e.cache]&&i.push(t)}),i.pop()},transition:function(t,r){var e=(c=b(t))._space(),i=y[e],n=0===this.alpha()?b("transparent"):this,a=n[i.cache]||i.to(n._rgba),l=a.slice(),c=c[i.cache];return S(i.props,function(t,e){var i=e.idx,n=a[i],s=c[i],o=w[e.type]||{};null!==s&&(null===n?l[i]=s:(o.mod&&(s-n>o.mod/2?n+=o.mod:n-s>o.mod/2&&(n-=o.mod)),l[i]=A((s-n)*r+n,e)))}),this[e](l)},blend:function(t){var e,i,n;return 1===this._rgba[3]?this:(e=this._rgba.slice(),i=e.pop(),n=b(t)._rgba,b(g.map(e,function(t,e){return(1-i)*n[e]+i*t})))},toRgbaString:function(){var t="rgba(",e=g.map(this._rgba,function(t,e){return null==t?2<e?1:0:t});return 1===e[3]&&(e.pop(),t="rgb("),t+e.join()+")"},toHslaString:function(){var t="hsla(",e=g.map(this.hsla(),function(t,e){return null==t&&(t=2<e?1:0),t=e&&e<3?Math.round(100*t)+"%":t});return 1===e[3]&&(e.pop(),t="hsl("),t+e.join()+")"},toHexString:function(t){var e=this._rgba.slice(),i=e.pop();return t&&e.push(~~(255*i)),"#"+g.map(e,function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}})).parse.prototype=b.fn,y.hsla.to=function(t){var e,i,n,s,o,r,a,l,c;return null==t[0]||null==t[1]||null==t[2]?[null,null,null,t[3]]:(e=t[0]/255,i=t[1]/255,n=t[2]/255,s=t[3],o=(c=Math.max(e,i,n))-(l=Math.min(e,i,n)),a=.5*(r=c+l),l=l===c?0:e===c?60*(i-n)/o+360:i===c?60*(n-e)/o+120:60*(e-i)/o+240,c=0==o?0:a<=.5?o/r:o/(2-r),[Math.round(l)%360,c,a,null==s?1:s])},y.hsla.from=function(t){var e,i,n,s;return null==t[0]||null==t[1]||null==t[2]?[null,null,null,t[3]]:(e=t[0]/360,s=t[1],n=t[2],i=t[3],s=2*n-(n=n<=.5?n*(1+s):n+s-n*s),[Math.round(255*O(s,n,e+1/3)),Math.round(255*O(s,n,e)),Math.round(255*O(s,n,e-1/3)),i])},S(y,function(a,t){var i=t.props,r=t.cache,l=t.to,c=t.from;b.fn[a]=function(t){var e,n,s,o;return l&&!this[r]&&(this[r]=l(this._rgba)),t===v?this[r].slice():(n=g.type(t),s="array"===n||"object"===n?t:arguments,o=this[r].slice(),S(i,function(t,e){var i=s["object"===n?t:e.idx];null==i&&(i=o[e.idx]),o[e.idx]=A(i,e)}),c?((e=b(c(o)))[r]=o,e):b(o))},S(i,function(o,r){b.fn[o]||(b.fn[o]=function(t){var e=g.type(t),i="alpha"===o?this._hsla?"hsla":"rgba":a,n=this[i](),s=n[r.idx];return"undefined"===e?s:("function"===e&&(t=t.call(this,s),e=g.type(t)),null==t&&r.empty?this:("string"===e&&(e=V.exec(t))&&(t=s+parseFloat(e[2])*("+"===e[1]?1:-1)),n[r.idx]=t,this[i](n)))})})}),(b.hook=function(t){var e=t.split(" ");S(e,function(t,r){g.cssHooks[r]={set:function(t,e){var i,n,s="";if("transparent"!==e&&("string"!==g.type(e)||(i=ot(e)))){if(e=b(i||e),!D.rgba&&1!==e._rgba[3]){for(n="backgroundColor"===r?t.parentNode:t;(""===s||"transparent"===s)&&n&&n.style;)try{s=g.css(n,"backgroundColor"),n=n.parentNode}catch(o){}e=e.blend(s&&"transparent"!==s?s:"_default")}e=e.toRgbaString()}try{t.style[r]=e}catch(o){}}},g.fx.step[r]=function(t){t.colorInit||(t.start=b(t.elem,r),t.end=b(t.end),t.colorInit=!0),g.cssHooks[r].set(t.elem,t.start.transition(t.end,t.pos))}})})("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),g.cssHooks.borderColor={expand:function(i){var n={};return S(["Top","Right","Bottom","Left"],function(t,e){n["border"+e+"Color"]=i}),n}},_=g.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"},J=["add","remove","toggle"],Z={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},x.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,e){x.fx.step[e]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(st.style(t.elem,e,t.end),t.setAttr=!0)}}),x.fn.addBack||(x.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),x.effects.animateClass=function(s,t,e,i){var o=x.speed(t,e,i);return this.queue(function(){var i=x(this),t=i.attr("class")||"",e=(e=o.children?i.find("*").addBack():i).map(function(){return{el:x(this),start:rt(this)}}),n=function(){x.each(J,function(t,e){s[e]&&i[e+"Class"](s[e])})};n(),e=e.map(function(){return this.end=rt(this.el[0]),this.diff=function(t,e){var i,n,s={};for(i in e)n=e[i],t[i]===n||Z[i]||!x.fx.step[i]&&isNaN(parseFloat(n))||(s[i]=n);return s}(this.start,this.end),this}),i.attr("class",t),e=e.map(function(){var t=this,e=x.Deferred(),i=x.extend({},o,{queue:!1,complete:function(){e.resolve(t)}});return this.el.animate(this.diff,i),e.promise()}),x.when.apply(x,e.get()).done(function(){n(),x.each(arguments,function(){var e=this.el;x.each(this.diff,function(t){e.css(t,"")})}),o.complete.call(i[0])})})},x.fn.extend({addClass:(Q=x.fn.addClass,function(t,e,i,n){return e?x.effects.animateClass.call(this,{add:t},e,i,n):Q.apply(this,arguments)}),removeClass:(G=x.fn.removeClass,function(t,e,i,n){return 1<arguments.length?x.effects.animateClass.call(this,{remove:t},e,i,n):G.apply(this,arguments)}),toggleClass:(K=x.fn.toggleClass,function(t,e,i,n,s){return"boolean"==typeof e||e===undefined?i?x.effects.animateClass.call(this,e?{add:t}:{remove:t},i,n,s):K.apply(this,arguments):x.effects.animateClass.call(this,{toggle:t},e,i,n)}),switchClass:function(t,e,i,n,s){return x.effects.animateClass.call(this,{add:e,remove:t},i,n,s)}}),x.expr&&x.expr.filters&&x.expr.filters.animated&&(x.expr.filters.animated=(tt=x.expr.filters.animated,function(t){return!!x(t).data($)||tt(t)})),!1!==x.uiBackCompat&&x.extend(x.effects,{save:function(t,e){for(var i=0,n=e.length;i<n;i++)null!==e[i]&&t.data(M+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,n=0,s=e.length;n<s;n++)null!==e[n]&&(i=t.data(M+e[n]),t.css(e[n],i))},setMode:function(t,e){return e="toggle"===e?t.is(":hidden")?"show":"hide":e},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")},t=x("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:i.width(),height:i.height()},s=document.activeElement;try{s.id}catch(o){s=document.body}return i.wrap(t),i[0]!==s&&!x.contains(i[0],s)||x(s).trigger("focus"),t=i.parent(),"static"===i.css("position")?(t.css({position:"relative"}),i.css({position:"relative"})):(x.extend(n,{position:i.css("position"),zIndex:i.css("z-index")}),x.each(["top","left","bottom","right"],function(t,e){n[e]=i.css(e),isNaN(parseInt(n[e],10))&&(n[e]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(e),t.css(n).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!x.contains(t[0],e)||x(e).trigger("focus")),t}}),x.extend(x.effects,{version:"1.12.1",define:function(t,e,i){return i||(i=e,e="effect"),x.effects.effect[t]=i,x.effects.effect[t].mode=e,i},scaledDimensions:function(t,e,i){var n,s;return 0===e?{height:0,width:0,outerHeight:0,outerWidth:0}:(n="horizontal"!==i?(e||100)/100:1,s="vertical"!==i?(e||100)/100:1,{height:t.height()*s,width:t.width()*n,outerHeight:t.outerHeight()*s,outerWidth:t.outerWidth()*n})},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var n=t.queue();1<e&&n.splice.apply(n,[1,0].concat(n.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(P,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(P)||"",t.removeData(P)},mode:function(t,e){var i=t.is(":hidden");return"toggle"===e&&(e=i?"show":"hide"),e=(i?"hide"===e:"show"===e)?"none":e},getBaseline:function(t,e){var i,n;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=t[1]/e.width}return{x:n,y:i}},createPlaceholder:function(t){var e,i=t.css("position"),n=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(i)&&(i="absolute",e=x("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),"float":t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(M+"placeholder",e)),t.css({position:i,left:n.left,top:n.top}),e},removePlaceholder:function(t){var e=M+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(t){x.effects.restoreStyle(t),x.effects.removePlaceholder(t)},setTransition:function(n,t,s,o){return o=o||{},x.each(t,function(t,e){var i=n.cssUnit(e);0<i[0]&&(o[e]=i[0]*s+i[1])}),o}}),x.fn.extend({effect:function(){var n=N.apply(this,arguments),s=x.effects.effect[n.effect],o=s.mode,t=n.queue,e=t||"fx",r=n.complete,a=n.mode,l=[],i=function(t){var e=x(this),i=x.effects.mode(e,a)||o;e.data($,!0),l.push(i),o&&("show"===i||i===o&&"hide"===i)&&e.show(),o&&"none"===i||x.effects.saveStyle(e),x.isFunction(t)&&t()};return x.fx.off||!s?a?this[a](n.duration,r):this.each(function(){r&&r.call(this)}):!1===t?this.each(i).each(c):this.queue(e,i).queue(e,c);function c(t){var e=x(this);function i(){x.isFunction(r)&&r.call(e[0]),x.isFunction(t)&&t()}n.mode=l.shift(),!1===x.uiBackCompat||o?"none"===n.mode?(e[a](),i()):s.call(e[0],n,function(){e.removeData($),x.effects.cleanUp(e),"hide"===n.mode&&e.hide(),i()}):(e.is(":hidden")?"hide"===a:"show"===a)?(e[a](),i()):s.call(e[0],n,i)}},show:(nt=x.fn.show,function(t){var e;return E(t)?nt.apply(this,arguments):((e=N.apply(this,arguments)).mode="show",this.effect.call(this,e))}),hide:(it=x.fn.hide,function(t){var e;return E(t)?it.apply(this,arguments):((e=N.apply(this,arguments)).mode="hide",this.effect.call(this,e))}),toggle:(et=x.fn.toggle,function(t){var e;return E(t)||"boolean"==typeof t?et.apply(this,arguments):((e=N.apply(this,arguments)).mode="toggle",this.effect.call(this,e))}),cssUnit:function(t){var i=this.css(t),n=[];return x.each(["em","px","%","pt"],function(t,e){0<i.indexOf(e)&&(n=[parseFloat(i),e])}),n},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):at(this.css("clip"),this)},transfer:function(t,e){var i=x(this),n=x(t.to),s="fixed"===n.css("position"),o=x("body"),r=s?o.scrollTop():0,o=s?o.scrollLeft():0,a=n.offset(),a={top:a.top-r,left:a.left-o,height:n.innerHeight(),width:n.innerWidth()},n=i.offset(),l=x("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(t.className).css({top:n.top-r,left:n.left-o,height:i.innerHeight(),width:i.innerWidth(),position:s?"fixed":"absolute"}).animate(a,t.duration,t.easing,function(){l.remove(),x.isFunction(e)&&e()})}}),x.fx.step.clip=function(t){t.clipInit||(t.start=x(t.elem).cssClip(),"string"==typeof t.end&&(t.end=at(t.end,t.elem)),t.clipInit=!0),x(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},I={},x.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){I[t]=function(t){return Math.pow(t,e+2)}}),x.extend(I,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),x.each(I,function(t,e){x.easing["easeIn"+t]=e,x.easing["easeOut"+t]=function(t){return 1-e(1-t)},x.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}});var t=x.effects; /*! * jQuery UI Effects Blind 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */x.effects.define("blind","hide",function(t,e){var i={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},n=x(this),s=t.direction||"up",o=n.cssClip(),r={clip:x.extend({},o)},a=x.effects.createPlaceholder(n);r.clip[i[s][0]]=r.clip[i[s][1]],"show"===t.mode&&(n.cssClip(r.clip),a&&a.css(x.effects.clipToBox(r)),r.clip=o),a&&a.animate(x.effects.clipToBox(r),t.duration,t.easing),n.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),x.effects.define("bounce",function(t,e){var i,n,s,o=x(this),r=t.mode,a="hide"===r,r="show"===r,l=t.direction||"up",c=t.distance,h=t.times||5,u=2*h+(r||a?1:0),d=t.duration/u,p=t.easing,f="up"===l||"down"===l?"top":"left",m="up"===l||"left"===l,g=0,l=o.queue().length;for(x.effects.createPlaceholder(o),s=o.css(f),c=c||o["top"==f?"outerHeight":"outerWidth"]()/3,r&&((n={opacity:1})[f]=s,o.css("opacity",0).css(f,m?2*-c:2*c).animate(n,d,p)),a&&(c/=Math.pow(2,h-1)),(n={})[f]=s;g<h;g++)(i={})[f]=(m?"-=":"+=")+c,o.animate(i,d,p).animate(n,d,p),c=a?2*c:c/2;a&&((i={opacity:0})[f]=(m?"-=":"+=")+c,o.animate(i,d,p)),o.queue(e),x.effects.unshift(o,l,1+u)}),x.effects.define("clip","hide",function(t,e){var i={},n=x(this),s=t.direction||"vertical",o="both"===s,r=o||"horizontal"===s,o=o||"vertical"===s,s=n.cssClip();i.clip={top:o?(s.bottom-s.top)/2:s.top,right:r?(s.right-s.left)/2:s.right,bottom:o?(s.bottom-s.top)/2:s.bottom,left:r?(s.right-s.left)/2:s.left},x.effects.createPlaceholder(n),"show"===t.mode&&(n.cssClip(i.clip),i.clip=s),n.animate(i,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),x.effects.define("drop","hide",function(t,e){var i,n=x(this),s="show"===t.mode,o=t.direction||"left",r="up"===o||"down"===o?"top":"left",o="up"===o||"left"===o?"-=":"+=",a="+="==o?"-=":"+=",l={opacity:0};x.effects.createPlaceholder(n),i=t.distance||n["top"==r?"outerHeight":"outerWidth"](!0)/2,l[r]=o+i,s&&(n.css(l),l[r]=a+i,l.opacity=1),n.animate(l,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),x.effects.define("explode","hide",function(t,e){var i,n,s,o,r,a,l=t.pieces?Math.round(Math.sqrt(t.pieces)):3,c=l,h=x(this),u="show"===t.mode,d=h.show().css("visibility","hidden").offset(),p=Math.ceil(h.outerWidth()/c),f=Math.ceil(h.outerHeight()/l),m=[];function g(){m.push(this),m.length===l*c&&(h.css({visibility:"visible"}),x(m).remove(),e())}for(i=0;i<l;i++)for(o=d.top+i*f,a=i-(l-1)/2,n=0;n<c;n++)s=d.left+n*p,r=n-(c-1)/2,h.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?r*p:0),top:o+(u?a*f:0),opacity:u?0:1}).animate({left:s+(u?0:r*p),top:o+(u?0:a*f),opacity:u?1:0},t.duration||500,t.easing,g)}),x.effects.define("fade","toggle",function(t,e){var i="show"===t.mode;x(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),x.effects.define("fold","hide",function(e,t){var i=x(this),n=e.mode,s="show"===n,n="hide"===n,o=e.size||15,r=/([0-9]+)%/.exec(o),a=!!e.horizFirst?["right","bottom"]:["bottom","right"],l=e.duration/2,c=x.effects.createPlaceholder(i),h=i.cssClip(),u={clip:x.extend({},h)},d={clip:x.extend({},h)},p=[h[a[0]],h[a[1]]],f=i.queue().length;r&&(o=parseInt(r[1],10)/100*p[n?0:1]),u.clip[a[0]]=o,d.clip[a[0]]=o,d.clip[a[1]]=0,s&&(i.cssClip(d.clip),c&&c.css(x.effects.clipToBox(d)),d.clip=h),i.queue(function(t){c&&c.animate(x.effects.clipToBox(u),l,e.easing).animate(x.effects.clipToBox(d),l,e.easing),t()}).animate(u,l,e.easing).animate(d,l,e.easing).queue(t),x.effects.unshift(i,f,4)}),x.effects.define("highlight","show",function(t,e){var i=x(this),n={backgroundColor:i.css("backgroundColor")};"hide"===t.mode&&(n.opacity=0),x.effects.saveStyle(i),i.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(n,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),x.effects.define("size",function(n,e){var s,i=x(this),t=["fontSize"],o=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],r=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],a=n.mode,l="effect"!==a,c=n.scale||"both",h=n.origin||["middle","center"],u=i.css("position"),d=i.position(),p=x.effects.scaledDimensions(i),f=n.from||p,m=n.to||x.effects.scaledDimensions(i,0);x.effects.createPlaceholder(i),"show"===a&&(a=f,f=m,m=a),s={from:{y:f.height/p.height,x:f.width/p.width},to:{y:m.height/p.height,x:m.width/p.width}},"box"!==c&&"both"!==c||(s.from.y!==s.to.y&&(f=x.effects.setTransition(i,o,s.from.y,f),m=x.effects.setTransition(i,o,s.to.y,m)),s.from.x!==s.to.x&&(f=x.effects.setTransition(i,r,s.from.x,f),m=x.effects.setTransition(i,r,s.to.x,m))),"content"!==c&&"both"!==c||s.from.y!==s.to.y&&(f=x.effects.setTransition(i,t,s.from.y,f),m=x.effects.setTransition(i,t,s.to.y,m)),h&&(a=x.effects.getBaseline(h,p),f.top=(p.outerHeight-f.outerHeight)*a.y+d.top,f.left=(p.outerWidth-f.outerWidth)*a.x+d.left,m.top=(p.outerHeight-m.outerHeight)*a.y+d.top,m.left=(p.outerWidth-m.outerWidth)*a.x+d.left),i.css(f),"content"!==c&&"both"!==c||(o=o.concat(["marginTop","marginBottom"]).concat(t),r=r.concat(["marginLeft","marginRight"]),i.find("*[width]").each(function(){var t=x(this),e=x.effects.scaledDimensions(t),i={height:e.height*s.from.y,width:e.width*s.from.x,outerHeight:e.outerHeight*s.from.y,outerWidth:e.outerWidth*s.from.x},e={height:e.height*s.to.y,width:e.width*s.to.x,outerHeight:e.height*s.to.y,outerWidth:e.width*s.to.x};s.from.y!==s.to.y&&(i=x.effects.setTransition(t,o,s.from.y,i),e=x.effects.setTransition(t,o,s.to.y,e)),s.from.x!==s.to.x&&(i=x.effects.setTransition(t,r,s.from.x,i),e=x.effects.setTransition(t,r,s.to.x,e)),l&&x.effects.saveStyle(t),t.css(i),t.animate(e,n.duration,n.easing,function(){l&&x.effects.restoreStyle(t)})})),i.animate(m,{queue:!1,duration:n.duration,easing:n.easing,complete:function(){var t=i.offset();0===m.opacity&&i.css("opacity",f.opacity),l||(i.css("position","static"===u?"relative":u).offset(t),x.effects.saveStyle(i)),e()}})}),x.effects.define("scale",function(t,e){var i=x(this),n=t.mode,n=parseInt(t.percent,10)||(0===parseInt(t.percent,10)||"effect"!==n?0:100),i=x.extend(!0,{from:x.effects.scaledDimensions(i),to:x.effects.scaledDimensions(i,n,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(i.from.opacity=1,i.to.opacity=0),x.effects.effect.size.call(this,i,e)}),x.effects.define("puff","hide",function(t,e){var i=x.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});x.effects.effect.scale.call(this,i,e)}),x.effects.define("pulsate","show",function(t,e){var i=x(this),n=t.mode,s="show"===n,o=2*(t.times||5)+(s||"hide"===n?1:0),r=t.duration/o,a=0,l=1,n=i.queue().length;for(!s&&i.is(":visible")||(i.css("opacity",0).show(),a=1);l<o;l++)i.animate({opacity:a},r,t.easing),a=1-a;i.animate({opacity:a},r,t.easing),i.queue(e),x.effects.unshift(i,n,1+o)}),x.effects.define("shake",function(t,e){var i=1,n=x(this),s=t.direction||"left",o=t.distance||20,r=t.times||3,a=2*r+1,l=Math.round(t.duration/a),c="up"===s||"down"===s?"top":"left",s="up"===s||"left"===s,h={},u={},d={},p=n.queue().length;for(x.effects.createPlaceholder(n),h[c]=(s?"-=":"+=")+o,u[c]=(s?"+=":"-=")+2*o,d[c]=(s?"-=":"+=")+2*o,n.animate(h,l,t.easing);i<r;i++)n.animate(u,l,t.easing).animate(d,l,t.easing);n.animate(u,l,t.easing).animate(h,l/2,t.easing).queue(e),x.effects.unshift(n,p,1+a)}),x.effects.define("slide","show",function(t,e){var i,n,s=x(this),o={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},r=t.mode,a=t.direction||"left",l="up"===a||"down"===a?"top":"left",c="up"===a||"left"===a,h=t.distance||s["top"==l?"outerHeight":"outerWidth"](!0),u={};x.effects.createPlaceholder(s),i=s.cssClip(),n=s.position()[l],u[l]=(c?-1:1)*h+n,u.clip=s.cssClip(),u.clip[o[a][1]]=u.clip[o[a][0]],"show"===r&&(s.cssClip(u.clip),s.css(l,u[l]),u.clip=i,u[l]=n),s.animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),t=!1!==x.uiBackCompat?x.effects.define("transfer",function(t,e){x(this).transfer(t,e)}):t}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(c){"use strict";var s,o=window.Slick||{};s=0,(o=function(t,e){var i,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:c(t),appendDots:c(t),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,e){return c('<button type="button" data-role="none" role="button" tabindex="0" />').text(e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},c.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=c(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,i=c(t).data("slick")||{},n.options=c.extend({},n.defaults,e,i),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,"undefined"!=typeof document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=c.proxy(n.autoPlay,n),n.autoPlayClear=c.proxy(n.autoPlayClear,n),n.autoPlayIterator=c.proxy(n.autoPlayIterator,n),n.changeSlide=c.proxy(n.changeSlide,n),n.clickHandler=c.proxy(n.clickHandler,n),n.selectHandler=c.proxy(n.selectHandler,n),n.setPosition=c.proxy(n.setPosition,n),n.swipeHandler=c.proxy(n.swipeHandler,n),n.dragHandler=c.proxy(n.dragHandler,n),n.keyHandler=c.proxy(n.keyHandler,n),n.instanceUid=s++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},o.prototype.addSlide=o.prototype.slickAdd=function(t,e,i){var n=this;if("boolean"==typeof e)i=e,e=null;else if(e<0||e>=n.slideCount)return!1;n.unload(),"number"==typeof e?0===e&&0===n.$slides.length?c(t).appendTo(n.$slideTrack):i?c(t).insertBefore(n.$slides.eq(e)):c(t).insertAfter(n.$slides.eq(e)):!0===i?c(t).prependTo(n.$slideTrack):c(t).appendTo(n.$slideTrack),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slides.each(function(t,e){c(e).attr("data-slick-index",t)}),n.$slidesCache=n.$slides,n.reinit()},o.prototype.animateHeight=function(){var t;1===this.options.slidesToShow&&!0===this.options.adaptiveHeight&&!1===this.options.vertical&&(t=this.$slides.eq(this.currentSlide).outerHeight(!0),this.$list.animate({height:t},this.options.speed))},o.prototype.animateSlide=function(t,e){var i={},n=this;n.animateHeight(),!0===n.options.rtl&&!1===n.options.vertical&&(t=-t),!1===n.transformsEnabled?!1===n.options.vertical?n.$slideTrack.animate({left:t},n.options.speed,n.options.easing,e):n.$slideTrack.animate({top:t},n.options.speed,n.options.easing,e):!1===n.cssTransitions?(!0===n.options.rtl&&(n.currentLeft=-n.currentLeft),c({animStart:n.currentLeft}).animate({animStart:t},{duration:n.options.speed,easing:n.options.easing,step:function(t){t=Math.ceil(t),!1===n.options.vertical?i[n.animType]="translate("+t+"px, 0px)":i[n.animType]="translate(0px,"+t+"px)",n.$slideTrack.css(i)},complete:function(){e&&e.call()}})):(n.applyTransition(),t=Math.ceil(t),!1===n.options.vertical?i[n.animType]="translate3d("+t+"px, 0px, 0px)":i[n.animType]="translate3d(0px,"+t+"px, 0px)",n.$slideTrack.css(i),e&&setTimeout(function(){n.disableTransition(),e.call()},n.options.speed))},o.prototype.getNavTarget=function(){var t=this.options.asNavFor;return t=t&&null!==t?c(t).not(this.$slider):t},o.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=c(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},o.prototype.applyTransition=function(t){var e=this,i={};!1===e.options.fade?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,(!1===e.options.fade?e.$slideTrack:e.$slides.eq(t)).css(i)},o.prototype.autoPlay=function(){this.autoPlayClear(),this.slideCount>this.options.slidesToShow&&(this.autoPlayTimer=setInterval(this.autoPlayIterator,this.options.autoplaySpeed))},o.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},o.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;t.paused||t.interrupted||t.focussed||(!1===t.options.infinite&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1==0)&&(t.direction=1)),t.slideHandler(e))},o.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=c(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=c(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},o.prototype.buildDots=function(){var t,e,i=this;if(!0===i.options.dots&&i.slideCount>i.options.slidesToShow){for(i.$slider.addClass("slick-dotted"),e=c("<ul />").addClass(i.options.dotsClass),t=0;t<=i.getDotCount();t+=1)e.append(c("<li />").append(i.options.customPaging.call(this,i,t)));i.$dots=e.appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},o.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each(function(t,e){c(e).attr("data-slick-index",t).data("originalStyling",c(e).attr("style")||"")}),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?c('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),c("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},o.prototype.buildRows=function(){var t,e,i,n=this,s=document.createDocumentFragment(),o=n.$slider.children();if(1<n.options.rows){for(i=n.options.slidesPerRow*n.options.rows,e=Math.ceil(o.length/i),t=0;t<e;t++){for(var r=document.createElement("div"),a=0;a<n.options.rows;a++){for(var l=document.createElement("div"),c=0;c<n.options.slidesPerRow;c++){var h=t*i+(a*n.options.slidesPerRow+c);o.get(h)&&l.appendChild(o.get(h))}r.appendChild(l)}s.appendChild(r)}n.$slider.empty().append(s),n.$slider.children().children().children().css({width:100/n.options.slidesPerRow+"%",display:"inline-block"})}},o.prototype.checkResponsive=function(t,e){var i,n,s,o=this,r=!1,a=o.$slider.width(),l=window.innerWidth||c(window).width();if("window"===o.respondTo?s=l:"slider"===o.respondTo?s=a:"min"===o.respondTo&&(s=Math.min(l,a)),o.options.responsive&&o.options.responsive.length&&null!==o.options.responsive){for(i in n=null,o.breakpoints)o.breakpoints.hasOwnProperty(i)&&(!1===o.originalSettings.mobileFirst?s<o.breakpoints[i]&&(n=o.breakpoints[i]):s>o.breakpoints[i]&&(n=o.breakpoints[i]));null!==n?null!==o.activeBreakpoint&&n===o.activeBreakpoint&&!e||(o.activeBreakpoint=n,"unslick"===o.breakpointSettings[n]?o.unslick(n):(o.options=c.extend({},o.originalSettings,o.breakpointSettings[n]),!0===t&&(o.currentSlide=o.options.initialSlide),o.refresh(t)),r=n):null!==o.activeBreakpoint&&(o.activeBreakpoint=null,o.options=o.originalSettings,!0===t&&(o.currentSlide=o.options.initialSlide),o.refresh(t),r=n),t||!1===r||o.$slider.trigger("breakpoint",[o,r])}},o.prototype.changeSlide=function(t,e){var i,n=this,s=c(t.currentTarget);switch(s.is("a")&&t.preventDefault(),s.is("li")||(s=s.closest("li")),i=n.slideCount%n.options.slidesToScroll!=0?0:(n.slideCount-n.currentSlide)%n.options.slidesToScroll,t.data.message){case"previous":o=0==i?n.options.slidesToScroll:n.options.slidesToShow-i,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide-o,!1,e);break;case"next":o=0==i?n.options.slidesToScroll:i,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide+o,!1,e);break;case"index":var o=0===t.data.index?0:t.data.index||s.index()*n.options.slidesToScroll;n.slideHandler(n.checkNavigable(o),!1,e),s.children().trigger("focus");break;default:return}},o.prototype.checkNavigable=function(t){var e=this.getNavigableIndexes(),i=0;if(t>e[e.length-1])t=e[e.length-1];else for(var n in e){if(t<e[n]){t=i;break}i=e[n]}return t},o.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&c("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",c.proxy(t.interrupt,t,!0)).off("mouseleave.slick",c.proxy(t.interrupt,t,!1)),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow)&&t.$nextArrow.off("click.slick",t.changeSlide),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),c(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&c(t.$slideTrack).children().off("click.slick",t.selectHandler),c(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),c(window).off("resize.slick.slick-"+t.instanceUid,t.resize),c("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),c(window).off("load.slick.slick-"+t.instanceUid,t.setPosition),c(document).off("ready.slick.slick-"+t.instanceUid,t.setPosition)},o.prototype.cleanUpSlideEvents=function(){this.$list.off("mouseenter.slick",c.proxy(this.interrupt,this,!0)),this.$list.off("mouseleave.slick",c.proxy(this.interrupt,this,!1))},o.prototype.cleanUpRows=function(){var t;1<this.options.rows&&((t=this.$slides.children().children()).removeAttr("style"),this.$slider.empty().append(t))},o.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},o.prototype.destroy=function(t){var e=this;e.autoPlayClear(),e.touchObject={},e.cleanUpEvents(),c(".slick-cloned",e.$slider).detach(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.$prevArrow.length&&(e.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.prevArrow))&&e.$prevArrow.remove(),e.$nextArrow&&e.$nextArrow.length&&(e.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.nextArrow))&&e.$nextArrow.remove(),e.$slides&&(e.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){c(this).attr("style",c(this).data("originalStyling"))}),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.detach(),e.$list.detach(),e.$slider.append(e.$slides)),e.cleanUpRows(),e.$slider.removeClass("slick-slider"),e.$slider.removeClass("slick-initialized"),e.$slider.removeClass("slick-dotted"),e.unslicked=!0,t||e.$slider.trigger("destroy",[e])},o.prototype.disableTransition=function(t){var e={};e[this.transitionType]="",(!1===this.options.fade?this.$slideTrack:this.$slides.eq(t)).css(e)},o.prototype.fadeSlide=function(t,e){var i=this;!1===i.cssTransitions?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout(function(){i.disableTransition(t),e.call()},i.options.speed))},o.prototype.fadeSlideOut=function(t){!1===this.cssTransitions?this.$slides.eq(t).animate({opacity:0,zIndex:this.options.zIndex-2},this.options.speed,this.options.easing):(this.applyTransition(t),this.$slides.eq(t).css({opacity:0,zIndex:this.options.zIndex-2}))},o.prototype.filterSlides=o.prototype.slickFilter=function(t){null!==t&&(this.$slidesCache=this.$slides,this.unload(),this.$slideTrack.children(this.options.slide).detach(),this.$slidesCache.filter(t).appendTo(this.$slideTrack),this.reinit())},o.prototype.focusHandler=function(){var i=this;i.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(t){t.stopImmediatePropagation();var e=c(this);setTimeout(function(){i.options.pauseOnFocus&&(i.focussed=e.is(":focus"),i.autoPlay())},0)})},o.prototype.getCurrent=o.prototype.slickCurrentSlide=function(){return this.currentSlide},o.prototype.getDotCount=function(){var t=this,e=0,i=0,n=0;if(!0===t.options.infinite)for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)n=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else n=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return n-1},o.prototype.getLeft=function(t){var e,i=this,n=0;return i.slideOffset=0,e=i.$slides.first().outerHeight(!0),!0===i.options.infinite?(i.slideCount>i.options.slidesToShow&&(i.slideOffset=i.slideWidth*i.options.slidesToShow*-1,n=e*i.options.slidesToShow*-1),i.slideCount%i.options.slidesToScroll!=0&&t+i.options.slidesToScroll>i.slideCount&&i.slideCount>i.options.slidesToShow&&(n=t>i.slideCount?(i.slideOffset=(i.options.slidesToShow-(t-i.slideCount))*i.slideWidth*-1,(i.options.slidesToShow-(t-i.slideCount))*e*-1):(i.slideOffset=i.slideCount%i.options.slidesToScroll*i.slideWidth*-1,i.slideCount%i.options.slidesToScroll*e*-1))):t+i.options.slidesToShow>i.slideCount&&(i.slideOffset=(t+i.options.slidesToShow-i.slideCount)*i.slideWidth,n=(t+i.options.slidesToShow-i.slideCount)*e),i.slideCount<=i.options.slidesToShow&&(n=i.slideOffset=0),!0===i.options.centerMode&&!0===i.options.infinite?i.slideOffset+=i.slideWidth*Math.floor(i.options.slidesToShow/2)-i.slideWidth:!0===i.options.centerMode&&(i.slideOffset=0,i.slideOffset+=i.slideWidth*Math.floor(i.options.slidesToShow/2)),e=!1===i.options.vertical?t*i.slideWidth*-1+i.slideOffset:t*e*-1+n,!0===i.options.variableWidth&&(n=i.slideCount<=i.options.slidesToShow||!1===i.options.infinite?i.$slideTrack.children(".slick-slide").eq(t):i.$slideTrack.children(".slick-slide").eq(t+i.options.slidesToShow),e=!0===i.options.rtl?n[0]?-1*(i.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,!0===i.options.centerMode)&&(n=i.slideCount<=i.options.slidesToShow||!1===i.options.infinite?i.$slideTrack.children(".slick-slide").eq(t):i.$slideTrack.children(".slick-slide").eq(t+i.options.slidesToShow+1),e=!0===i.options.rtl?n[0]?-1*(i.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,e+=(i.$list.width()-n.outerWidth())/2),e},o.prototype.getOption=o.prototype.slickGetOption=function(t){return this.options[t]},o.prototype.getNavigableIndexes=function(){for(var t=this,e=0,i=0,n=[],s=!1===t.options.infinite?t.slideCount:(e=-1*t.options.slidesToScroll,i=-1*t.options.slidesToScroll,2*t.slideCount);e<s;)n.push(e),e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return n},o.prototype.getSlick=function(){return this},o.prototype.getSlideCount=function(){var i,n=this,s=!0===n.options.centerMode?n.slideWidth*Math.floor(n.options.slidesToShow/2):0;return!0===n.options.swipeToSlide?(n.$slideTrack.find(".slick-slide").each(function(t,e){if(e.offsetLeft-s+c(e).outerWidth()/2>-1*n.swipeLeft)return i=e,!1}),Math.abs(c(i).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},o.prototype.goTo=o.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:parseInt(t)}},e)},o.prototype.init=function(t){var e=this;c(e.$slider).hasClass("slick-initialized")||(c(e.$slider).addClass("slick-initialized"),e.buildRows(),e.buildOut(),e.setProps(),e.startLoad(),e.loadSlider(),e.initializeEvents(),e.updateArrows(),e.updateDots(),e.checkResponsive(!0),e.focusHandler()),t&&e.$slider.trigger("init",[e]),!0===e.options.accessibility&&e.initADA(),e.options.autoplay&&(e.paused=!1,e.autoPlay())},o.prototype.initADA=function(){var e=this;e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),e.$slideTrack.attr("role","listbox"),e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){c(this).attr({role:"option","aria-describedby":"slick-slide"+e.instanceUid+t})}),null!==e.$dots&&e.$dots.attr("role","tablist").find("li").each(function(t){c(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+e.instanceUid+t,id:"slick-slide"+e.instanceUid+t})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),e.activateADA()},o.prototype.initArrowEvents=function(){!0===this.options.arrows&&this.slideCount>this.options.slidesToShow&&(this.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},this.changeSlide),this.$nextArrow.off("click.slick").on("click.slick",{message:"next"},this.changeSlide))},o.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&c("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&c("li",t.$dots).on("mouseenter.slick",c.proxy(t.interrupt,t,!0)).on("mouseleave.slick",c.proxy(t.interrupt,t,!1))},o.prototype.initSlideEvents=function(){this.options.pauseOnHover&&(this.$list.on("mouseenter.slick",c.proxy(this.interrupt,this,!0)),this.$list.on("mouseleave.slick",c.proxy(this.interrupt,this,!1)))},o.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),c(document).on(t.visibilityChange,c.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&c(t.$slideTrack).children().on("click.slick",t.selectHandler),c(window).on("orientationchange.slick.slick-"+t.instanceUid,c.proxy(t.orientationChange,t)),c(window).on("resize.slick.slick-"+t.instanceUid,c.proxy(t.resize,t)),c("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),c(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),c(document).on("ready.slick.slick-"+t.instanceUid,t.setPosition)},o.prototype.initUI=function(){!0===this.options.arrows&&this.slideCount>this.options.slidesToShow&&(this.$prevArrow.show(),this.$nextArrow.show()),!0===this.options.dots&&this.slideCount>this.options.slidesToShow&&this.$dots.show()},o.prototype.keyHandler=function(t){t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===this.options.accessibility?this.changeSlide({data:{message:!0===this.options.rtl?"next":"previous"}}):39===t.keyCode&&!0===this.options.accessibility&&this.changeSlide({data:{message:!0===this.options.rtl?"previous":"next"}}))},o.prototype.lazyLoad=function(){var t,e,n=this;function i(t){c("img[data-lazy]",t).each(function(){var t=c(this),e=c(this).attr("data-lazy"),i=document.createElement("img");i.onload=function(){t.animate({opacity:0},100,function(){t.attr("src",e).animate({opacity:1},200,function(){t.removeAttr("data-lazy").removeClass("slick-loading")}),n.$slider.trigger("lazyLoaded",[n,t,e])})},i.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,t,e])},i.src=e})}!0===n.options.centerMode?e=!0===n.options.infinite?(t=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(t=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),n.options.slidesToShow/2+1+2+n.currentSlide):(t=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,e=Math.ceil(t+n.options.slidesToShow),!0===n.options.fade&&(0<t&&t--,e<=n.slideCount)&&e++),i(n.$slider.find(".slick-slide").slice(t,e)),n.slideCount<=n.options.slidesToShow?i(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?i(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&i(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},o.prototype.loadSlider=function(){this.setPosition(),this.$slideTrack.css({opacity:1}),this.$slider.removeClass("slick-loading"),this.initUI(),"progressive"===this.options.lazyLoad&&this.progressiveLazyLoad()},o.prototype.next=o.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},o.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},o.prototype.pause=o.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},o.prototype.play=o.prototype.slickPlay=function(){this.autoPlay(),this.options.autoplay=!0,this.paused=!1,this.focussed=!1,this.interrupted=!1},o.prototype.postSlide=function(t){var e=this;e.unslicked||(e.$slider.trigger("afterChange",[e,t]),e.animating=!1,e.setPosition(),e.swipeLeft=null,e.options.autoplay&&e.autoPlay(),!0===e.options.accessibility&&e.initADA())},o.prototype.prev=o.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},o.prototype.preventDefault=function(t){t.preventDefault()},o.prototype.progressiveLazyLoad=function(t){t=t||1;var e,i,n=this,s=c("img[data-lazy]",n.$slider);s.length?(e=s.first(),i=e.attr("data-lazy"),(s=document.createElement("img")).onload=function(){e.attr("src",i).removeAttr("data-lazy").removeClass("slick-loading"),!0===n.options.adaptiveHeight&&n.setPosition(),n.$slider.trigger("lazyLoaded",[n,e,i]),n.progressiveLazyLoad()},s.onerror=function(){t<3?setTimeout(function(){n.progressiveLazyLoad(t+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,e,i]),n.progressiveLazyLoad())},s.src=i):n.$slider.trigger("allImagesLoaded",[n])},o.prototype.refresh=function(t){var e=this,i=e.slideCount-e.options.slidesToShow;!e.options.infinite&&e.currentSlide>i&&(e.currentSlide=i),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),i=e.currentSlide,e.destroy(!0),c.extend(e,e.initials,{currentSlide:i}),e.init(),t||e.changeSlide({data:{message:"index",index:i}},!1)},o.prototype.registerBreakpoints=function(){var t,e,i,n=this,s=n.options.responsive||null;if("array"===c.type(s)&&s.length){for(t in n.respondTo=n.options.respondTo||"window",s)if(i=n.breakpoints.length-1,e=s[t].breakpoint,s.hasOwnProperty(t)){for(;0<=i;)n.breakpoints[i]&&n.breakpoints[i]===e&&n.breakpoints.splice(i,1),i--;n.breakpoints.push(e),n.breakpointSettings[e]=s[t].settings}n.breakpoints.sort(function(t,e){return n.options.mobileFirst?t-e:e-t})}},o.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&c(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},o.prototype.resize=function(){var t=this;c(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=c(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()},50))},o.prototype.removeSlide=o.prototype.slickRemove=function(t,e,i){var n=this;if(t="boolean"==typeof t?!0===(e=t)?0:n.slideCount-1:!0===e?--t:t,n.slideCount<1||t<0||t>n.slideCount-1)return!1;n.unload(),(!0===i?n.$slideTrack.children():n.$slideTrack.children(this.options.slide).eq(t)).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,n.reinit()},o.prototype.setCSS=function(t){var e,i,n=this,s={};!0===n.options.rtl&&(t=-t),e="left"==n.positionProp?Math.ceil(t)+"px":"0px",i="top"==n.positionProp?Math.ceil(t)+"px":"0px",s[n.positionProp]=t,!1!==n.transformsEnabled&&(!(s={})===n.cssTransitions?s[n.animType]="translate("+e+", "+i+")":s[n.animType]="translate3d("+e+", "+i+", 0px)"),n.$slideTrack.css(s)},o.prototype.setDimensions=function(){var t=this,e=(!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length))),t.$slides.first().outerWidth(!0)-t.$slides.first().width());!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},o.prototype.setFade=function(){var i,n=this;n.$slides.each(function(t,e){i=n.slideWidth*t*-1,!0===n.options.rtl?c(e).css({position:"relative",right:i,top:0,zIndex:n.options.zIndex-2,opacity:0}):c(e).css({position:"relative",left:i,top:0,zIndex:n.options.zIndex-2,opacity:0})}),n.$slides.eq(n.currentSlide).css({zIndex:n.options.zIndex-1,opacity:1})},o.prototype.setHeight=function(){var t;1===this.options.slidesToShow&&!0===this.options.adaptiveHeight&&!1===this.options.vertical&&(t=this.$slides.eq(this.currentSlide).outerHeight(!0),this.$list.css("height",t))},o.prototype.setOption=o.prototype.slickSetOption=function(){var t,e,i,n,s,o=this,r=!1;if("object"===c.type(arguments[0])?(i=arguments[0],r=arguments[1],s="multiple"):"string"===c.type(arguments[0])&&(i=arguments[0],n=arguments[1],r=arguments[2],"responsive"===arguments[0]&&"array"===c.type(arguments[1])?s="responsive":"undefined"!=typeof arguments[1]&&(s="single")),"single"===s)o.options[i]=n;else if("multiple"===s)c.each(i,function(t,e){o.options[t]=e});else if("responsive"===s)for(e in n)if("array"!==c.type(o.options.responsive))o.options.responsive=[n[e]];else{for(t=o.options.responsive.length-1;0<=t;)o.options.responsive[t].breakpoint===n[e].breakpoint&&o.options.responsive.splice(t,1),t--;o.options.responsive.push(n[e])}r&&(o.unload(),o.reinit())},o.prototype.setPosition=function(){this.setDimensions(),this.setHeight(),!1===this.options.fade?this.setCSS(this.getLeft(this.currentSlide)):this.setFade(),this.$slider.trigger("setPosition",[this])},o.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),e.WebkitTransition===undefined&&e.MozTransition===undefined&&e.msTransition===undefined||!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),e.OTransform!==undefined&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",e.perspectiveProperty===undefined)&&e.webkitPerspective===undefined&&(t.animType=!1),e.MozTransform!==undefined&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",e.perspectiveProperty===undefined)&&e.MozPerspective===undefined&&(t.animType=!1),e.webkitTransform!==undefined&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",e.perspectiveProperty===undefined)&&e.webkitPerspective===undefined&&(t.animType=!1),e.msTransform!==undefined&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",e.msTransform===undefined)&&(t.animType=!1),e.transform!==undefined&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},o.prototype.setSlideClasses=function(t){var e,i,n=this,s=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");n.$slides.eq(t).addClass("slick-current"),!0===n.options.centerMode?(i=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&((i<=t&&t<=n.slideCount-1-i?n.$slides.slice(t-i,t+i+1):(e=n.options.slidesToShow+t,s.slice(e-i+1,e+i+2))).addClass("slick-active").attr("aria-hidden","false"),0===t?s.eq(s.length-1-n.options.slidesToShow).addClass("slick-center"):t===n.slideCount-1&&s.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(t).addClass("slick-center")):(0<=t&&t<=n.slideCount-n.options.slidesToShow?n.$slides.slice(t,t+n.options.slidesToShow):s.length<=n.options.slidesToShow?s:(i=n.slideCount%n.options.slidesToShow,e=!0===n.options.infinite?n.options.slidesToShow+t:t,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-t<n.options.slidesToShow?s.slice(e-(n.options.slidesToShow-i),e+i):s.slice(e,e+n.options.slidesToShow))).addClass("slick-active").attr("aria-hidden","false"),"ondemand"===n.options.lazyLoad&&n.lazyLoad()},o.prototype.setupInfinite=function(){var t,e,i,n=this;if(!0===n.options.fade&&(n.options.centerMode=!1),!0===n.options.infinite&&!1===n.options.fade&&(e=null,n.slideCount>n.options.slidesToShow)){for(i=!0===n.options.centerMode?n.options.slidesToShow+1:n.options.slidesToShow,t=n.slideCount;t>n.slideCount-i;--t)c(n.$slides[e=t-1]).clone(!0).attr("id","").attr("data-slick-index",e-n.slideCount).prependTo(n.$slideTrack).addClass("slick-cloned");for(t=0;t<i;t+=1)e=t,c(n.$slides[e]).clone(!0).attr("id","").attr("data-slick-index",e+n.slideCount).appendTo(n.$slideTrack).addClass("slick-cloned");n.$slideTrack.find(".slick-cloned").find("[id]").each(function(){c(this).attr("id","")})}},o.prototype.interrupt=function(t){t||this.autoPlay(),this.interrupted=t},o.prototype.selectHandler=function(t){var e=c(t.target).is(".slick-slide")?c(t.target):c(t.target).parents(".slick-slide"),e=(e=parseInt(e.attr("data-slick-index")))||0;this.slideCount<=this.options.slidesToShow?(this.setSlideClasses(e),this.asNavFor(e)):this.slideHandler(e)},o.prototype.slideHandler=function(t,e,i){var n,s,o,r,a,l=this;e=e||!1,!0===l.animating&&!0===l.options.waitForAnimate||!0===l.options.fade&&l.currentSlide===t||l.slideCount<=l.options.slidesToShow||(!1===e&&l.asNavFor(t),n=t,r=l.getLeft(n),o=l.getLeft(l.currentSlide),l.currentLeft=null===l.swipeLeft?o:l.swipeLeft,!1===l.options.infinite&&!1===l.options.centerMode&&(t<0||t>l.getDotCount()*l.options.slidesToScroll)||!1===l.options.infinite&&!0===l.options.centerMode&&(t<0||t>l.slideCount-l.options.slidesToScroll)?!1===l.options.fade&&(n=l.currentSlide,!0!==i?l.animateSlide(o,function(){l.postSlide(n)}):l.postSlide(n)):(l.options.autoplay&&clearInterval(l.autoPlayTimer),s=n<0?l.slideCount%l.options.slidesToScroll!=0?l.slideCount-l.slideCount%l.options.slidesToScroll:l.slideCount+n:n>=l.slideCount?l.slideCount%l.options.slidesToScroll!=0?0:n-l.slideCount:n,l.animating=!0,l.$slider.trigger("beforeChange",[l,l.currentSlide,s]),o=l.currentSlide,l.currentSlide=s,l.setSlideClasses(l.currentSlide),l.options.asNavFor&&(a=(a=l.getNavTarget()).slick("getSlick")).slideCount<=a.options.slidesToShow&&a.setSlideClasses(l.currentSlide),l.updateDots(),l.updateArrows(),!0===l.options.fade?(!0!==i?(l.fadeSlideOut(o),l.fadeSlide(s,function(){l.postSlide(s)})):l.postSlide(s),l.animateHeight()):!0!==i?l.animateSlide(r,function(){l.postSlide(s)}):l.postSlide(s)))},o.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},o.prototype.swipeDirection=function(){var t=this.touchObject.startX-this.touchObject.curX,e=this.touchObject.startY-this.touchObject.curY,e=Math.atan2(e,t),t=Math.round(180*e/Math.PI);return(t=t<0?360-Math.abs(t):t)<=45&&0<=t||t<=360&&315<=t?!1===this.options.rtl?"left":"right":135<=t&&t<=225?!1===this.options.rtl?"right":"left":!0===this.options.verticalSwiping?35<=t&&t<=135?"down":"up":"vertical"},o.prototype.swipeEnd=function(t){var e,i,n=this;if(n.dragging=!1,n.interrupted=!1,n.shouldClick=!(10<n.touchObject.swipeLength),n.touchObject.curX===undefined)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=i&&(n.slideHandler(e),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},o.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&t.originalEvent.touches!==undefined?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},o.prototype.swipeMove=function(t){var e,i,n,s=this,o=t.originalEvent!==undefined?t.originalEvent.touches:null;return!(!s.dragging||o&&1!==o.length)&&(e=s.getLeft(s.currentSlide),s.touchObject.curX=o!==undefined?o[0].pageX:t.clientX,s.touchObject.curY=o!==undefined?o[0].pageY:t.clientY,s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curX-s.touchObject.startX,2))),!0===s.options.verticalSwiping&&(s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curY-s.touchObject.startY,2)))),"vertical"!==(o=s.swipeDirection())?(t.originalEvent!==undefined&&4<s.touchObject.swipeLength&&t.preventDefault(),n=(!1===s.options.rtl?1:-1)*(s.touchObject.curX>s.touchObject.startX?1:-1),!0===s.options.verticalSwiping&&(n=s.touchObject.curY>s.touchObject.startY?1:-1),i=s.touchObject.swipeLength,(s.touchObject.edgeHit=!1)===s.options.infinite&&(0===s.currentSlide&&"right"===o||s.currentSlide>=s.getDotCount()&&"left"===o)&&(i=s.touchObject.swipeLength*s.options.edgeFriction,s.touchObject.edgeHit=!0),!1===s.options.vertical?s.swipeLeft=e+i*n:s.swipeLeft=e+i*(s.$list.height()/s.listWidth)*n,!0===s.options.verticalSwiping&&(s.swipeLeft=e+i*n),!0!==s.options.fade&&!1!==s.options.touchMove&&(!0===s.animating?(s.swipeLeft=null,!1):void s.setCSS(s.swipeLeft))):void 0)},o.prototype.swipeStart=function(t){var e,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return!(i.touchObject={});t.originalEvent!==undefined&&t.originalEvent.touches!==undefined&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=e!==undefined?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=e!==undefined?e.pageY:t.clientY,i.dragging=!0},o.prototype.unfilterSlides=o.prototype.slickUnfilter=function(){null!==this.$slidesCache&&(this.unload(),this.$slideTrack.children(this.options.slide).detach(),this.$slidesCache.appendTo(this.$slideTrack),this.reinit())},o.prototype.unload=function(){var t=this;c(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},o.prototype.unslick=function(t){this.$slider.trigger("unslick",[this,t]),this.destroy()},o.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2);!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode||t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode)&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},o.prototype.updateDots=function(){null!==this.$dots&&(this.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),this.$dots.find("li").eq(Math.floor(this.currentSlide/this.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},o.prototype.visibility=function(){this.options.autoplay&&(document[this.hidden]?this.interrupted=!0:this.interrupted=!1)},c.fn.slick=function(){for(var t,e=arguments[0],i=Array.prototype.slice.call(arguments,1),n=this.length,s=0;s<n;s++)if("object"==typeof e||void 0===e?this[s].slick=new o(this[s],e):t=this[s].slick[e].apply(this[s].slick,i),void 0!==t)return t;return this}});var tab={};function createAjaxObj(){return window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest}function ajax_ticker(t,e,i,n){this.xmlfile=t,this.tickerid=e,this.delay=i,this.mouseoverBol=0,this.pointer=0,this.opacitystring=void 0!==n?"width: 100%; filter:progid:DXImageTransform.Microsoft.alpha(opacity=100); -moz-opacity: 1":"",""!=this.opacitystring&&(this.delay+=500),this.opacitysetting=.2,this.messages=[],this.ajaxobj=createAjaxObj(),document.write('<div id="'+e+'" style="display:inline"><div class=front-comments style=\''+this.opacitystring+"; display:inline;font-family:ê³ ë”•,AppleGothic,Tahoma,sans-serif;'>ìµœì‹ ëŒ“ê¸€ì„ ì½ì–´ì˜¤ê³ 있습니다. </div></div>"),this.getXMLfile()}!function(t,o){var n=new Array,i="";function e(){tab.contract("omitnothing"),selectedItem=""==s("merchant_menu")?"":selectedItem=s("merchant_menu"),selectedComponents=selectedItem.split("|");for(var t=0;t<selectedComponents.length-1;t++)o("#"+selectedComponents[t]).showBlock()}function s(t){var e=t+"=",i="";return 0<document.cookie.length&&-1!=(offset=document.cookie.indexOf(e))&&(offset+=e.length,-1==(end=document.cookie.indexOf(";",offset))&&(end=document.cookie.length),i=unescape(document.cookie.substring(offset,end))),i}tab.contract=function(e){tab.stores.each(function(t){this.id!=e&&o(this).hide()})},tab.expand=function(t){"undefined"!=typeof tab.stores&&("block"!=o("#"+t).css("display")?o("#"+t).showBlock():o("#"+t).hide())},tab.onload=function(){var t="merchant_menufirsttimeload1017";tab.stores=o(".merchant_list,.mc-sl-group"),document.cookie=""==s(t)?t+"=1":t+"=0",(firsttimeload=1==s(t)?1:0)||e()},o.fn.expandTabContent=function(){o("#"+i).children("li,td").each(function(t){o(this).removeClass("selected"),"undefined"!=typeof n[t]&&o("#"+n[t]).hide()}),this.addClass("selected");var t,e=this.children("a").attr("rel");return o("#"+e).showBlock(),e&&(t="tabs",document.cookie="menutab"+t+"="+e),this},o.fn.initStoreList=function(t){t=o.extend({cookieName:"tabs"},t);t=t.cookieName,i=new RegExp("menutab"+t+"=[^;]+","i");var e=document.cookie.match(i)?document.cookie.match(i)[0].split("=")[1]:"",i=this.children("li,td").children("a[rel]").each(function(){n[n.length]=this.getAttribute("rel");var t=o(this).parent().click(function(){return o(this).expandTabContent(),!1});t.is(".selected")&&""==e&&t.expandTabContent()});return""!=e&&i.filter("a[rel='"+e+"']").parent().expandTabContent(),this},tab.init=function(t){o("#"+(i=t)).initStoreList()},o(t).unload(function(){var t;"undefined"!=typeof tab.stores&&(t="",tab.stores.each(function(){"block"==this.style.display&&(t+=this.id+"|")}),document.cookie="merchant_menu="+t+";path=/")}),o.fn.loadMerchantList=function(n,t){var s=this;return o.ajax({nocancel:!0,url:"/chg/"+n+"/merchant_list",retrylimit:2*o.ajaxSettings.retrylimit,success:function(t){s.html(t),tab.init("tabs"),tab.onload(),s=undefined,this.callback&&this.callback()},error:function(t,e,i){s.html("").append(o("<span class=mc-button>ìƒì ëª©ë¡ ë‹¤ì‹œ ì½ì–´ 오기</span>").click(function(){s.loadMerchantList(n),s=undefined})),this.callback&&this.callback()},callback:t}),this}}(window,jQuery),google_ad_client="pub-8491377856686097",google_ad_width=468,google_ad_height=60,google_ad_format="468x60_as",google_ad_type="text",google_ad_channel="",google_color_border="A8DDA0",google_color_bg="EBFFED",google_color_link="0000CC",google_color_url="008000",google_color_text="6F6F6F",ajax_ticker.prototype.getXMLfile=function(){var t,e;this.ajaxobj&&(e=(t=this).xmlfile+"?bustcache="+(new Date).getTime(),this.ajaxobj.onreadystatechange=function(){t.initialize()},this.ajaxobj.open("GET",e,!0),this.ajaxobj.send(null))},ajax_ticker.prototype.initialize=function(){if(4==this.ajaxobj.readyState&&(200==this.ajaxobj.status||-1==window.location.href.indexOf("http"))){this.contentdiv=document.getElementById(this.tickerid).firstChild;var t=this.ajaxobj.responseText;if(this.contentdiv.style.display="none",this.contentdiv.innerHTML=t,0==this.contentdiv.getElementsByTagName("div").length)this.contentdiv.innerHTML="<b>Error</b> fetching remote ticker file!";else{var e=this;document.getElementById(this.tickerid).onmouseover=function(){e.mouseoverBol=1},document.getElementById(this.tickerid).onmouseout=function(){e.mouseoverBol=0},window.attachEvent&&window.attachEvent("onunload",function(){e.contentdiv=e.ajaxobj=null});for(var i=0;i<this.contentdiv.getElementsByTagName("div").length;i++)"message"==this.contentdiv.getElementsByTagName("div")[i].className&&(this.messages[this.messages.length]=this.contentdiv.getElementsByTagName("div")[i].innerHTML);this.contentdiv.innerHTML="",this.contentdiv.style.display="inline",this.rotatemsg()}}},ajax_ticker.prototype.rotatemsg=function(){var t=this;1==this.mouseoverBol?setTimeout(function(){t.rotatemsg()},100):(this.fadetransition("reset"),this.contentdiv.innerHTML=this.messages[this.pointer],this.fadetimer1=setInterval(function(){t.fadetransition("up","fadetimer1")},100),this.pointer=this.pointer<this.messages.length-1?this.pointer+1:0,setTimeout(function(){t.rotatemsg()},this.delay))},ajax_ticker.prototype.fadetransition=function(t,e){var i=this.contentdiv;"reset"==t&&(this.opacitysetting=.2),i.filters&&i.filters[0]?"number"==typeof i.filters[0].opacity?i.filters[0].opacity=100*this.opacitysetting:i.style.filter="alpha(opacity="+100*this.opacitysetting+")":"undefined"!=typeof i.style.MozOpacity&&""!=this.opacitystring?i.style.MozOpacity=this.opacitysetting:this.opacitysetting=1,"up"==t&&(this.opacitysetting+=.1),"up"==t&&1<=this.opacitysetting&&clearInterval(this[e])};var mc={dbg:$.dbg,baseURL:"",CDN:"https://cdn.missycoupons.com",CDN0:"https://cdn.missycoupons.com",load:function(t){return $.ajax({url:t,"async":!1}).responseText},getBurstCacheNumber:function(t){return parseInt((new Date).getTime()/(1e3*(t||1)))},getBurstCache:function(t,e){return(e=e==undefined?"burstcache":e)+"="+this.getBurstCacheNumber(t)},is_url:function(t){return/https?:\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(t)},is_dollar:function(t){return/^\$*\d+(\.\d\d|)$/.test(t)},touchDevice:function(){return!!("ontouchstart"in window)&&!/windows(?! phone)/i.test(navigator.userAgent)},reload:function(t){t=t||window,$.ajax({url:t.location.href,nocancel:!0,"async":!1,headers:{Pragma:"no-cache",Expires:-1,"Cache-Control":"no-cache"},success:function(){t.location.reload(!0)}})},resize_image_with_cdn:function(t,a,e){a=400==a?200:a;var i=/^\/mi3\/[0-9]+\/([0-9]+)\/([0-9]+)\/([0-9]+)\/([0-9]+)\//,n="slow"===e?mc.CDN0:mc.CDN,i=i.test(t)?t.replace(i,function(t,e,i,n,s){var o,r;return n=parseInt(n),s=parseInt(s),a=parseInt(a),n<s?(o=a<n?a:n,r=Math.floor(o*s/n)):(r=a<s?a:s,o=Math.floor(r*n/s)),"/mi3/"+mc.myinfo.iversion+"/"+e+"/"+i+"/"+o+"/"+r+"/"}):t;return/^\//.test(i)?n+i:i},checkJump:function(t){var e;mc.board&&mc.board.content&&"view"==mc.board.content.name&&(e={id:mc.view.id,no:mc.view.no},$.ajax({url:"/zero/p/add_jump_count.php",data:e,type:"POST","async":!0,success:function(t){},error:function(t,e,i){console.log($.ajaxErrorMessage(t,e,i))}}))},copy_text_to_clipboard:function(t){var e=t.text(),i=document.createElement("textarea");return document.body.appendChild(i),i.value=e,i.select(),document.execCommand("copy"),document.body.removeChild(i),mc.alert(e+"ê°€ 복사ë˜ì—ˆìŠµë‹ˆë‹¤."),t.attr("title","복사가 ë˜ì—ˆìŠµë‹ˆë‹¤").tooltip(),!1},shuffle:function(t){for(var e,i,n=t.length;0!==n;)i=Math.floor(Math.random()*n),e=t[--n],t[n]=t[i],t[i]=e;return t}},BOARD_PATH=(!function(t){window.close=function(){return mc.device.isNativeApp()?!(location.href="micoup://close_window"):t.apply(this,arguments)}}(window.close),!function(t,c){function e(){var t;!o&&n.length&&(t=n.shift(),c.isFunction(t)?(t(),setTimeout(e,0)):!0===s[t]?setTimeout(e,0):(o=1,c.getScript(t,function(){o=0,s[t]=!0,setTimeout(e,0)})))}var n,s,o;c.fn.extend({ifempty:function(t){return 0==this.length&&t.call(this,this),this},oncenotempty:function(t){return this.length&&t.call(this,this),this},showInline:function(){return this.setDisplay("inline")},showBlock:function(){return this.setDisplay("block")},showBlank:function(){return this.setDisplay("")},setVisible:function(t){return this.css({visibility:t?"visible":"hidden"})},setDisplay:function(t){return this.css({display:t})},showMessageBelow:function(t,e){c("#mc-message").hide().remove();var i=$$("div#mc-message").html(t).showBelow(this,{backgroundColor:"white"}).fadeOut(5e3,function(){c(i).hide().remove()});return this},showBelow:function(t,e){var i=c(t).offset();return this.css(c.extend({top:i.top+c(t).outerHeight(),left:i.left,position:"absolute",zIndex:3e3},e)).appendTo("body").show()},enterpress:function(t){return this.keypress(function(t){13==(t.keyCode||t.which)&&(t.preventDefault&&t.preventDefault(),t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0,c(this).trigger("enterpress",[t]))}).on("enterpress",t)}}),c.functionize=function(t){return c.isFunction(t)?t:c.noop},t.$$=function(){function i(t){return t instanceof jQuery||c.type(t).match(/^(string|number|array)$/)}var n,s=arguments,t=s[0],e=s[1],o=s[2],t=t.match(/^(\w+)((?:[#\.][\w0-9_-]+)*)$/);if(i(e)&&(e={}),i(o)&&(o={}),/^\w+$/.test(t[1])){if(n=c("<"+t[1]+">"),t[2]){var r,a=t[2].match(/#[\w0-9_-]+/g),l=(a&&0<a.length&&n.attr("id",a[a.length-1].replace(/^#/,"")),t[2].match(/\.[\w0-9_-]+/g));for(r in l)/^[0-9]+$/.test(r)&&n.addClass(l[r].replace(/^\./,""))}}else n=$$("div");return c.each(s,function(t,e){s[0]!=e&&i(e)&&n.append(e)}),n.attr(e||{}).css(o||{})},n=[],s={},o=0,mc.loadSeq=function(){for(i in arguments)n.push(arguments[i]);setTimeout(e,0)}}(window,jQuery),!function(t,e){var i=e.support,n=t.navigator.userAgent;function s(t){return n.match(t)}function o(t){return new RegExp(t).test(n)}var r=s(/Android/i),a=r&&s(/mobile/i),l=s(/iPhone|iPod/i),c=l||s(/iPad/i),a=l||a,h=c||r,u=o("MSIE ([1-9]|10).[0-9]"),d=o("MSIE [1-7].[0-9]"),p=o("MSIE [1-6].[0-9]"),f=(s(/msie/i),!!t.MSInputMethodContext&&!!document.documentMode),m=s(/edge/i),g=s(/firefox/i),v=s(/webkit/i),_=s(/safari/i);IsiOSSafari=_&&c,e.extend(i,{dockbar:!r||!o("AppleWebKit/534"),desktop:!a,initialLandscape:!l,nosmall:!1,kakaotalk:h,mobileBottomInputFocus:!r,megamenu:!d,bugInputZIndex:d,bugSelectZIndex:p,nativeJSON:!d&&t.JSON,old:u,ie:u,fixAction:g||v,hasScrollBarWidth:v,ignoreScrollBar:v||s(/msie (9|10)\./i),blockHomeEndKey:g,burstUrl:u||v,needEncodeKeyword:g,contentEditable:!u,contentEditableSubDiv:!f&&!m,imageContentEditable:!g&&!IsiOSSafari}),mc.support_nativeJson=i.nativeJSON}(window,jQuery),void 0===mc&&(mc={}),!function(o,t){var e="none",i="",n=null,s=!0,r=!1,a=o.support,l=a.ie;function c(t,e){return t&&("A"==t.tagName&&!0===e||"TEXTAREA"==t.tagName||"SELECT"==t.tagName||"INPUT"==t.tagName&&("text"==t.type||"password"==t.type)||/^(DIV|P|IMG)$/i.test(t.tagName)&&("true"==t.getAttribute("contenteditable")||o(t).parents("[contenteditable=true]")[0]))}function h(t){((t.ctrlKey||t.metaKey)&&(65==t.keyCode||67==t.keyCode||97==t.keyCode||99==t.keyCode)||a.blockHomeEndKey&&t.ctrlKey&&t.shiftKey&&(35==t.keyCode||36==t.keyCode))&&!c(t.target,!1)&&(r||(a.fixAction?setTimeout(n,0):n()),t.preventDefault(),t.stopPropagation())}function u(t){c(t.target,!0)||r||(t.preventDefault(),t.stopPropagation(),n())}function d(t){var e,i,n,s;c(t.target,!0)||(i=(e=t).target,n=o(window),s=a.hasScrollBarWidth?15:0,1==e.which&&e.currentTarget==document&&i&&1==i.nodeType&&"HTML"==i.nodeName&&3==i.TEXT_NODE&&"HTML"==i.tagName&&"mousedown"==e.type&&a.ignoreScrollBar&&(e.pageX-n.scrollLeft()+s>=n.width()||e.pageY-n.scrollTop()+s>=n.height()))||(t.preventDefault(),t.stopPropagation())}function p(){c(event.srcElement,!0)||r||(event.returnValue=!1,event.cancelBubble=!0,n())}function f(){c(event.srcElement,!0)||(event.returnValue=!1,event.cancelBubble=!0)}function m(){o(document.body).css({MozUserSelect:e,WebkitUserSelect:e,MsUserSelect:e,KhtmlUserSelect:e,userSelect:e})}function g(){o(document.body).css({MozUserSelect:i,WebkitUserSelect:i,MsUserSelect:i,KhtmlUserSelect:i,userSelect:i})}function v(){s||(l&&p==t.oncontextmenu&&f==t.onselectstart&&f==t.ondragstart||u==t.oncontextmenu&&d==t.ondragstart?setTimeout(v,250):_())}function _(){t.layers&&t.captureEvents(Event.MOUSEDOWN),l?(t.ondragstart=f,t.onselectstart=f,t.oncontextmenu=p,t.unselectable="on"):(m(),t.ondragstart=d,t.oncontextmenu=u),o(t).mousedown(d).keydown(h),setTimeout(v,250)}function b(){l&&(this.unselectable="off"),this.ondragstart=i,this.onselectstart=i,this.oncontextmenu=i,g(),this.layers&&this.releaseEvents(Event.MOUSEDOWN)}o.fn.blockCopy=function(t){return mc.security.block(t,this),this},o.fn.unblockCopy=function(){return mc.security.unblock(this),this},mc.security={block:function(t){n=t,s=!1,_()},unblock:function(){return o(t).unbind("keydown",h).unbind("mousedown",d).each(b),s=!0,n},focusInEditor:function(){o(t).unbind("keydown",h).each(b),s=!0},blurOutEditor:function(){s=!1,o(t).keydown(h)},unblockSelect:function(){s||g()},blockSelect:function(){s||m()},suspend:function(){r=!0},resume:function(){r=!1}}}(jQuery,document),String.prototype.getParam=function(t){var e=this.split("&");if(!(this.indexOf(t+"=")<0))for(var i=0;i<e.length;i++)if(0==e[i].indexOf(t+"="))return e[i].split("=")[1];return""},String.prototype.setParam=function(t,e){var n=new String(this),s=n.split("&");if(new RegExp("[&#]"+t+"=").test(this))for(i in s)new RegExp("^"+t+"=").test(s[i])&&(n=e==undefined||""==e||null==e?n.replace(new RegExp("([&#])"+t+"=[^&]*"),""):n.replace(new RegExp("([&#])"+t+"=[^&]*"),"$1"+t+"="+e));else e!=undefined&&""!=e&&null!=e&&(n+=(0==s.length?"#":"&")+t+"="+e);return n},!function(r,e){var s=[[22],[10,2],[29],[17,2],[7,2],[27],[13,2],[3,2],[23],[11,2],[31],[19,2],[8,2],[28],[15,2],[4,2],[24],[12,2],[1,2],[22],[10,2],[30],[17,2]],o=[[29],[17],[6,10],[25],[15],[3,10],[22],[12],[1,10],[19],[8],[27],[16],[4,10],[24],[13],[2,10],[21],[10],[28],[17],[5,10],[25]],i=$.fn.initLogo=function(t){return this.each(function(){i.init($(this),t)})};function a(t,e,i){return new r(r.UTC(t,e-1,i)).valueOf()}function l(t,e,i,n){var s=new r(r.UTC(t,e-1)),o=s.getUTCDay();return s.setUTCDate(7*(n<o?i:i-1)+1+n-o),s.valueOf()}function c(t,e,i,n){return e-864e5*i+36e6<=t&&t<e+864e5*(n||0)+1224e5}$.fn.logoEvent=function(){var t,e,i=new r,n=i.getUTCFullYear(),i=(i.getUTCMonth(),i.getUTCDate(),i.valueOf());return c(i,a(n,2,14),2)?this.addClass("val"):c(i,(e=s[(t=n)-2023])?a(t,e[1]||1,e[0]):0,6)?this.addClass("seo"):c(i,a(n,3,1),2)||c(i,a(n,8,15),6)?this.addClass("kflag"):c(i,l(n,5,2,0),6)?this.addClass("mom"):c(i,a(n,7,4),6)?this.addClass("ind"):c(i,l(n,11,4,4),15,1)?this.addClass("tha"):c(i,a(n,12,25),24)?this.addClass("chr"):c(i,(e=o[(t=n)-2023])?a(t,e[1]||9,e[0]):0,6)?this.addClass("chu"):this},$.extend(i,{init:function(i){var t;i.append(e("div#mc_logo_button").attachDialog("#mc_logo_dialog"),e("div#mc_logo_main").click(function(){window.parent.location.href="/"}).logoEvent()),t=e.menuRow,e("div#mc_logo_dialog.mc-ui-dialog",t("홈","/"),t("ìŠ¤í† ì–´ë¦¬ìŠ¤íŠ¸","/zero/d/m.storelist.php"),t("ìµœì‹ ê²Œì‹œë¬¼","/recent_post.jsp"),t("관심게시물","/3rd/0/zero/d/m.subscribe.php").addClass("orange"),t("ë„움ë§","/zero/board.php#id=faq"),t("검색","/zero/search_main.php"),t("PCë²„ì „",function(){mc.device.forceLarge()})).on("open",function(t,e){$(this).alignTopLeft(e,i,-3).closeDialogOnTouchOutside(e).show()}).on("close",function(){$(this).hide()}).appendTo(document.body)}})}(Date,$$),mc.url={file:"board.php",needConfirm:!1,defaultHash:"id=general",browse:function(t){if(!0===mc.url.needConfirm&&0==confirm("현재화면ì—ì„œ ë²—ì–´ë‚˜ì‹œê² ìŠµë‹ˆê¹Œ? ìž…ë ¥ì¤‘ì¸ ì •ë³´ê°€ ì†ì‹¤ë 수 있습니다."))return;var e=location.href.split("#"),i=t.split("#");!$.history||""!=i[0]&&e[0]!=i[0]&&e[0].replace(/^.*\//,"")!=i[0]&&e[0].replace(/^http:\/\/[^\/]*/,"")!=i[0]?window.location.href=t:$.history.update("#"+i[1])},setNeedConfirm:function(t){mc.url.needConfirm=!0===t&&t},getParam:function(t,e){return(e=e||$.history.currentHash()).getParam(t)},getParamInt:function(t,e){var i=mc.url.getParam(t,e);return i=0<(i=parseInt(i))?i:0},setParam:function(t,e,i){return(i=i||$.history.currentHash()).setParam(t,e)},getContentName:function(t){return(t=t||$.history.currentHash()).getParam("f")?"generic":parseInt(t.getParam("no"))?"view":"list"},getHash:function(){return location.hash.replace(/^#/,"")}},!function(u,p,f){var o="click",r="touchstart",m="touchend",a="mousedown",g="close",v="open",_=".show",b="show",i="#",y="DIV",w="shopping",x="#sub_menu_bar",k="id",C=".top-menu",T=".big-menu",z=/android.*chrome/i.test(navigator.userAgent);function D(){return mc.touchDevice()}function S(){return mc.device.isSmallPage()}var I,M={shopping:{title:"ì‡¼í•‘ì •ë³´",cl:_,options:{hotdeals:{title:"핫딜"},review:{title:"쇼핑후기"},thanksgiving:{title:"블랙프ë¼ì´ë°ì´",url:"/zero/tgsales.php",cl:".emp.nar"},mc:{title:"ì¿ í°ì„¸ì¼"},freebies:{title:"공짜"},preview:{title:"ì œí’ˆë¦¬ë·°"},local:{title:"지ì—ì •ë³´"},store_coupons:{title:"ë§¤ìž¥ì¿ í°",url:"id=mc&category=2"},ads:{title:"í™ë³´"},pr:{title:"ê°œì¸í™ë³´"}}},general:{title:"ì¼ë°˜ì •ë³´",options:{qna:{title:"질문"},food:{title:"ìŒì‹ì •ë³´"},life_info:{title:"ìƒí™œì •ë³´",prepend:!0},travel:{title:"여행"},motherhood:{title:"ìž„ì‹ ì¶œì‚°"},edu:{title:"ì˜ìœ ì•„/초등"},school:{title:"중/ê³ ë“±"},money:{title:"재테í¬"},english:{title:"ì˜ì–´"},wiki:{title:"ì •ë¦¬",prepend:!0}}},community:{title:"커뮤니티",options:{general:{title:"ìžìœ 게시íŒ"},shout:{title:"한줄",prepend:!0},mylocal:{title:"내지ì—",url:"id=la"},gardening:{title:"ì›ì˜ˆ/가드ë‹"},pet:{title:"ë°˜ë ¤ë™ë¬¼"},diettalk:{title:"다ì´ì–´íŠ¸",prepend:!0},event:{title:"ì´ë²¤íŠ¸",prepend:!0},inform:{title:"알림"},cafes:{title:"소모임",url:"f=cafes"}}},korea:{title:"í•œêµì •ë³´",options:{kgeneral:{title:"í•œêµê²Œì‹œíŒ"},kqna:{title:"í•œêµì§ˆë¬¸"},kedu:{title:"êµìœ¡/육아",prepend:!0},kmc:{title:"ì¿ í°/핫딜",prepend:!0},kpr:{title:"í™ë³´/ê°œì¸ê±°ëž˜",cl:".nar"}}},recommend:{title:"추천ìƒí’ˆ",options:{beautyp:{title:"ë·°í‹°"},homep:{title:"홈/ê°€ì „"},kitchenp:{title:"주방"},motherhoodp:{title:"ìž„ì‹ /육아"},etcp:{title:"기타"}}}},P=mc.url.getHash().getParam(k),$=w,d=w,l=!1,c=!1,A=!0;function n(){try{return mc.metro.getBoardId(mc.myinfo.metro_id)}catch(t){}return""}function O(){return p(T)}function N(t,e,i,n){return $$("DIV.menu-item",$$("DIV.clickable#"+t+(n||"")).mcmClickableInit(e,t,i))}function E(){var t=p(C).offset();return z?{top:t.top-window.pageYOffset,left:t.left-window.pageXOffset}:t}function e(){return O().find(".clickable").removeClass(b)}function t(){e(),p(this).addClass(b)}function s(){e().mcmFindMenuItem(P).addClass(b).end()}function h(t){return n()==t?"mylocal":"mc"==t&&2==mc.url.getHash().getParam("category")?"store_coupons":t}function L(){return O().find(".sub-menu").removeClass(b)}function j(t){L().filter(i+t).addClass(b)}function W(t){H($),j($),e().mcmFindMenuItem(P).addClass(b).end()}function F(){L(),p(this).addClass(b),H(p(this).attr(k))}function R(){return p(C).find(_).removeClass(b).end()}function H(t){return d=t||w,R().find("LI#"+t).addClass(b).end()}function B(t){return H($)}function q(t){R(),j(p(this).attr(k)),p(this).addClass(b)}mc.menu={init:function(t,e){mc.device.isNativeApp()||(p("#mc_m_logo").initLogo(),p(i+t).menuInit(e))},setId:function(t){$=function(t){n()==t&&(t="mylocal");for(var e in M)if(M[e].options[t])return e;return w}(P=t),W(),A&&!S()||p(x).empty().initSubMenuBar($)},addSubMenu:function(t,e,i,n,s){O().find(".sub-menu#"+t).append(N(n,e,i,s)),O().find(".clickable").mcmItemOff().mcmItemOn(),M[t].options[n]={title:e,url:i,cl:s}},reset:function(){P=f,$=w,s(),H($)},updateMyLocal:function(){metro_name=mc.metro.getDefaultMetroName(),board_id=mc.metro.getDefaultBoardId(),mc.myinfo.hasLoggedIn()&&0<mc.myinfo.metro_id&&(metro_name=mc.metro.getMetroName(mc.myinfo.metro_id),board_id=mc.metro.getBoardId(mc.myinfo.metro_id)),url=BOARD_PATH+"/board.php#id="+board_id,M.community.options.mylocal={title:metro_name,url:url},O().find(".clickable#mylocal").mcmClickableInit(metro_name,"mylocal",url)}},p.fn.mcmClickableInit=function(t,e,i){var n,s=S()?o+".mcmi "+m+".mcmi":o+".mcmi";return this.text(t).prepend($$("IMG",{src:(t=e,n="/img/icons/",mc.CDN+({mylocal:n+"metro_y.png",cafes:n+"club.png",store_coupons:n+"store_coupon.png"}[t]||"/blogo/0/"+t))})).off(s).on(s,function(t){if(t.preventDefault(),t.stopPropagation(),l||c)return c=!1;p("#mc_window").one("page-changed.menu",function(){O().trigger(g)}),O().trigger("closing"),mc.url.browse(i)})},p.fn.delayHover=function(t,e,i,n,s){var o,r=this,a=f,l=f;return D()?(o=m+".hoverstart",this.data("timehoverofffunc",function(){return r.off(o)}).on(o,t)):(p.isNumeric(i)&&(s=n,n=i,i=p()),n=n||300,s=s||1,p(i).on("mouseover.delayhover",h).on("mouseover.delayhover",u).on("mouseout.delayhover",c).on("mouseout.hoverend",d),this.data("delayhoverofffunc",function(){return c(),c(),p(i).off("mouseover.delayhover mouseout.delayhover mouseout.hoverend"),r.off("mouseover.delayhover mouseout.delayhover mouseout.hoverend hoverstart")}).on("mouseover.delayhover",u).on("mouseout.delayhover",c).on("mouseout.hoverend",d).on("mouseover.hoverstart",h).on("hoverend",e).on("hoverstart",t));function c(){a&&(clearTimeout(a),a=f)}function h(){l&&(clearTimeout(l),l=f)}function u(t){c(),a=window.setTimeout(function(){a=f,r.trigger("hoverstart",[t])},n)}function d(t){h(),l=window.setTimeout(function(){l=f,r.trigger("hoverend",[t])},s)}},p.fn.timedHover=function(t,e,i,n){var s=this,o=f;if(D())return this.data("timehoverofffunc",function(){return s.off(m+".hoverstart")}).on(m+".hoverstart",t);function r(){o&&(clearTimeout(o),o=f)}function a(t){r(),o=window.setTimeout(function(){o=f,s.trigger("hoverend",[t])},n)}p.isNumeric(i)&&(n=i,i=p()),n=n||300;return p(i).on("mouseover.timedhover",r).on("mouseout.timedhover",a),this.data("timehoverofffunc",function(){return r(),p(i).off("mouseover.timedhover mouseout.timedhover"),i=f,this.off("mouseover.timedhover mouseout.timedhover mouseover.hoverstart hoverend")}).on("mouseover.timedhover",r).on("mouseout.timedhover",a).on("mouseover.hoverstart",t).on("hoverend",e)},p.fn.timedHoverOff=function(){return p.functionize(this.data("timehoverofffunc")).apply(this),this.data("timehoverofffunc",f)},p.fn.showAnimate=function(t){return l=!0,this.show(0,function(){p(this).addClass(t,400,"easeOutQuad",function(){p(this).css({"max-height":p(window).height()}),l=!1})})},p.fn.hideAnimate=function(t){return S()?this.removeClass(t,200,function(){p(this).hide()}):this.hide()},p.fn.mcmOverlay=function(t){function e(t){t.stopPropagation()}return p("body").css("position","fixed"),p(document).on("touchmove.disable",function(t){c=!0,0==p(t.target).closest(T).length&&t.preventDefault()}).on(m+".disable",function(){c=!1}),this.css({height:p(document).height()}).appendTo(document.body).animate({backgroundColor:"#333"},300,"linear",function(){p(this).on(m,t).on(o+" "+r,e)})},p.fn.mcmOverlayOff=function(){return p(document).off("touchmove.disable"),c=!1,p("body").css("position","relative"),this.remove()},p.fn.menuInit=function(t){I=mc.cookie("menuversion")||2,A=2==I,t=t||{};var n,e,i,s,o,r=$$("UL.top-menu"+(A||S()?"":".w-sub")),a=(n=r,$$(y+T).on(v,function(t,e){p(":focus").blur();var i=S()?{top:0,left:158}:{top:E().top+n.outerHeight(),left:E().left-5};O().find(".sub-menu").mcmSubMenu().end().css("max-height",p(window).height()+"px").css(i).showAnimate(b),S()&&$$("DIV.big-menu-overlay").mcmOverlay(l)}).on("closing",function(){O().hideAnimate(b)}).on(g,function(t){O().hideAnimate(b),p(".big-menu-overlay").mcmOverlayOff(),O().find(".sub-menu").mcmSubMenuOff().end()}).closeMenuOnTouchOutside(n).hide().appendTo(document.body));function l(t){t.stopPropagation(),t.preventDefault(),O().trigger(g)}for(e in M){var c,h,u=M[e],d=$$(y+(t.bf?".bf":"")+".sub-menu#"+e);for(c in""==P&&e==$&&d.addClass(b),u.options)t.bf||"thanksgiving"!=c?(h=u.options[c],c==P&&($=e,d.addClass(b)),d.append((i=c,void 0,o=void 0,o=(s=h).cl||"",o=i==P?o+_:o,N(i,s.title,/^\//.test(s.url)?s.url:"/zero/board.php#"+(s.url||"id="+i),o)))):delete M[e].options[c];a.append(d),r.append($$("LI#"+e+(u.cl||""),u.title))}return this.html(r),O().find(".clickable").mcmItemOn(),p("#mylocal").click(function(){mc.metro.checkIfMyMetroSet()}),A||S()||(D()?p(C).append($$("DIV.sitemap").toggleBigMenu()).find("LI").on(m,function(t){p(T+":visible").length&&p(T).trigger(g,[t])}):p(C).append($$("DIV.sitemap").delayHover(function(){O().trigger(v)},function(){O().trigger(g)},T,200,300))),S()||D()||!A||(p(C).delayHover(function(t){O().trigger(v,[t])},function(t){O().trigger(g,[t])},T,200,1),H($).find("LI").mcmTopMenu()),(S()||D()&&A)&&p(C).toggleBigMenu(),S()||O().append($$("DIV#menu_con",A?"ì´ì „메뉴":"새메뉴").click(function(){mc.cookie.config("menuversion",A?1:2),location.reload()})),!S()&&A||(S()?$$(y+x).insertAfter("#mc_top"):($$("DIV.sub-menu-bar-holder",$$(y+x)).insertAfter(C),A||p(x).initSubMenuBar(w))),S()||A||(D()?p(C+" LI").on("touchend",function(){p(x).subMenuAppend(p(this).attr(k))}):p(C).find("LI").timedHover(function(t){p(this).trigger("mousemove",[t])},function(){B(),p(x).subMenuAppend($)},x,200).setIntentTarget(x).on("mousemoveintent.smb",function(t){p(x).subMenuAppend(p(this).attr(k))}).on("mousemoveintent.smb",q)),this},p.fn.toggleBigMenu=function(){return this.on("click touchend",function(t){t.stopPropagation(),t.preventDefault(),O().trigger(!D()||S()||0==p(T+":visible").length?v:g,[t])})},p.fn.mcmFindMenuItem=function(t){return(t=h(t))?this.filter(i+t):p()},p.fn.mcmItemOn=function(){return S()?this.on("touchstart.mcmi",t):this.timedHover(t,s)},p.fn.mcmItemOff=function(){return S()?this.off("touchstart.mcmi"):this.timedHoverOff()},p.fn.mcmSubMenu=function(){return this.hover(F,W)},p.fn.mcmSubMenuOff=function(){return this.timedHoverOff()},p.fn.mcmTopMenu=function(t){return this.on("mouseover."+(t=t||"tm"),q).on("mouseout."+t,B)};var U=0;p.fn.closeMenuOnTouchOutside=function(i){var n=this,s=(D()?r:a)+".outmenu-"+U++;return this.on(a+".outside",function(t){t.stopPropagation()}).on(g,function(t,e){p(this).off(a+".outside"),p(document).off(s)}).on(v,function(t,e){p(document).on(s,function(t){p(t.target).ancestorOrMe(n)||p(t.target).ancestorOrMe(i)||n.trigger(g)})})},p.fn.preappend=function(t,e){return t?this.prepend(e):this.append(e)},p.fn.subMenuAppend=function(t){var e=this.empty();var i,n=M[t].options;for(i in n){p(".clickable#"+i);var s=n[i];e.preappend(s.prepend&&!D(),$$("DIV.item#"+i+(s.cl||""),s.title).on(a,function(){p(this).addClass(b)}).click(function(){p(".clickable#"+p(this).addClass(b).attr(k)).trigger(S()?m:o)}).filter(function(){return i==h(P)}).addClass(b).end())}return S()?this.setWidthEvenly(this.width()):D()?this.setWidthEvenly(this.parent().width()):(p(C).addClass("w-sub"),this.css("float",["left","","right"][1+(0<(t=p(".top-menu LI#"+(t=t)).index()/(p(".top-menu LI").length-1)-.5)?1:t<0?-1:0)]))},p.fn.setWidthEvenly=function(t){var e=0;return this.children().each(function(){t-=p(this).width(),e++,p(C).addClass("w-sub")}).css("padding","2px "+t/e/2+"px").end()},p.fn.initSubMenuBar=function(t){return this.addClass("active").subMenuAppend(t)},p.fn.setIntentTarget=function(e){var c=3,h=200,u=[],i=!1;function n(t,e,i){if(e=p.event.fix(e),0!=(t=p(t)).length){var n=t.offset(),s={x:n.left,y:n.top},n={x:n.left+t.outerWidth(),y:n.top};if(t=e,u.push({x:t.pageX,y:t.pageY}),u.length>c&&u.shift(),i!=d){var o,r=u[u.length-1],a=u[0];if(r)if(a)return o=l(r,s),r=l(r,n),s=l(a,s),a=l(a,n),s<o&&r<a&&h}}function l(t,e){return(e.y-t.y)/(e.x-t.x)}}return this.off("mousemove.sit").on("mousemove.sit",function(t){i||(t=p.event.fix(t),n(e,t,p(this).attr(k))?(i=!0,setTimeout(function(){i=!1},h)):p(this).trigger("mousemoveintent",[t]))})}}(window,jQuery),!function(s){var n=!1;function e(i){s("#mc_floating_arrow_sync").oncenotempty(function(){var t,e;i&&i.has_post?(s(this).show(),t=i.subject,e=i.url,mc.view&&mc.view.getId()===i.id&&mc.view.getNo()===i.no?s.ajax({url:"/zero/d/mi_recent_view.php?type=2",dataType:"json",success:function(t){}}):"dialog"===i.ask_type&&"true"!==mc.cookie("no_view_sync")&&!0!==n&&(mc.confirm({message:"모바ì¼ì—ì„œ 최근 본 게시물로 ì´ë™í•˜ì‹œê² 습니까?<br>"+t,onOkay:function(){location.href=e},onCancel:function(){n=!1}}),s("#mc_dialog .context").append("<div id='mc_no_sync'><input type=checkbox id='mc_no_sync_chk'>ë” ì´ìƒ 물어보지 않기</div>"),s("#mc_dialog .context #mc_no_sync_chk").off("click").on("click",function(){mc.cookie("no_view_sync","true"),s("#mc_dialog").trigger("close")}),n=!0,s("#mc_dialog").delay(1e4).fadeOut(1e3,function(){n=!1,s(this).trigger("close")}),s.ajax({url:"/zero/d/mi_recent_view.php?type=2",dataType:"json",success:function(t){}}))):s(this).hide()})}function o(t){mc.device.isSmallPage()||(t.recent_post&&t.recent_post.has_post&&e(t.recent_post),s(window).off("blur.myinfo").on("blur.myinfo",function(){var t=Date.now();s(window).one("focus.myinfo",function(){!1!==mc.myinfo.hasLoggedIn()&&2e3<Date.now()-t&&s.ajax({url:"/zero/d/mi_recent_view.php?type=1",dataType:"json",success:function(t){n=!1,e(t)},error:function(t,e,i){console.log(s.ajaxErrorMessage(t,e,i))}})})})),"string"===s.type(t.ihost)&&(/^https?:\/\//.test(t.ihost)||(t.ihost=location.protocol+"//"+t.ihost),mc.CDN=t.ihost),s.extend(mc.myinfo,t),mc.filter&&mc.filter.initSavedFilters(),mc.myinfo.theme!==undefined&&mc.cookie&&(0<+mc.myinfo.theme?mc.cookie.save("theme",mc.myinfo.theme):mc.myinfo.hasLoggedIn()&&mc.cookie("theme",0))}mc.myinfo={no:0,score:0,group_no:1,new_memo:0,level:10,slevel:10,ihost:mc.CDN,iversion:"0",album_view_mode:0,ajax_timeout:1400,ajax_retrylimit:6,init:function(t,e,n){s.isNumeric(t)||(n=e,e=t),s(mc.myinfo).one("load",mc.metro?function(){mc.metro.init(e)}:e);var i={url:this.getURL(),nocancel:!0,cache:!1,dataType:"json",timeout:2100,retrylimit:6,success:function(t){try{o(t),s(mc.myinfo).trigger("load")}catch(e){this.error(null,t,e)}},error:function(t,e,i){s.functionize(n)(s.ajaxErrorMessage(t,e,i))}};return s.ajax(i)},isAdmin:function(){return 1==this.level||2==this.level},getURL:function(){return"/zero/d/mi.php"},update:function(i){return s.ajax({url:this.getURL(),cache:!1,dataType:"json",success:function(t){try{o(t),mc.myinfo.hasLoggedIn()&&s("#mc_myscore").html(mc.myinfo.score+"ì "),mc.menu.updateMyLocal(),s.isFunction(i)&&i()}catch(e){}}})},hasLoggedIn:function(){return 0<this.no},addScore:function(t){this.hasLoggedIn()&&(this.score+=parseInt(t||0),s("#mc_myscore").html(this.score+"ì "),s("#mc_dock_menu #mc_myscore").html(this.score+"ì "))},loadCafes:function(t){(t=s.functionize(t))()}}}(jQuery),jQuery,"/zero"),BOARD_PHP=BOARD_PATH+"/board.php#";!function(e){mc.setup={init:function(){e(document.body).truiInitDialog(),e("#mc_m_right").truiInit(),$$("div#mc_bottom_bar").initBottomDock()},checkUI:function(t){mc.myinfo.new_memo&&mc.myinfo.update(function(){e("#mc_memo_icon").setMemoIcon()})},drawCafeMenus:function(){mc.menu.updateMyLocal()}}}(jQuery),function(o){var r=mc.CDN,a={join:"ë¯¸ì”¨ì¿ í°ì— 가입하시면 다양한 게시물과 ê¸°ëŠ¥ì„ í™•ì¸í•˜ì‹¤ 수 있습니다.<br>비회ì›ë„ ì¿ í°/세ì¼, 핫딜, 공짜 ì •ë³´ëŠ” ì—´ëžŒì´ ê°€ëŠ¥í•©ë‹ˆë‹¤.",savecookie:"ìžë™ ë¡œê·¸ì¸ ê¸°ëŠ¥ì„ ì‚¬ìš©í•˜ì‹œê² ìŠµë‹ˆê¹Œ?\n\nìžë™ ë¡œê·¸ì¸ ì‚¬ìš©ì‹œ ë‹¤ìŒ ì ‘ì†ë¶€í„°ëŠ” 로그ì¸ì„ 하실필요가 없습니다.\n\n단, 게임방, í•™êµë“± 공공장소ì—ì„œ ì´ìš©ì‹œ ê°œì¸ì •ë³´ê°€ ìœ ì¶œë 수 있으니 조심하여 주ì‹ì‹œìš”\n(ìžë™ë¡œê·¸ì¸ ì„¤ì •ì€ ì¿ í‚¤ë¡œ ì €ìž¥ë©ë‹ˆë‹¤. 로그아웃하시거나 브ë¼ìš°ì ¸ ì¿ í‚¤ì„¤ì •ì„ ì‚ì œí•˜ì—¬ í•´ì œí•˜ì‹¤ìˆ˜ 있습니다)",login:"로그ì¸í•˜ì—¬ ë¯¸ì”¨ì¿ í° íšŒì›ì—게 í—ˆìš©ëœ ê¸°ëŠ¥ê³¼ ê¶Œí•œì„ ì‚¬ìš©í•˜ì„¸ìš”.",logout:"ë„서관등 ì§‘ì´ ì•„ë‹Œ ê³³ì—ì„œ 로그ì¸í•˜ì—¬ ì‚¬ìš©í•˜ì‹ ê²½ìš° ê¼ ë¡œê·¸ì•„ì›ƒí•˜ì„¸ìš”.",memo:"다른 가입 회ì›ê³¼ 쪽지를 ì£¼ê³ ë°›ì„ ìˆ˜ 있습니다.\n새메시지가 ë„착하면 ë°˜ì§ìž…니다.",clip:"ìœ ìš©í•œ ê²Œì‹œë¬¼ì˜ ë§í¬ë¥¼ í´ë¦½í•˜ì—¬ 보관하실 수 있습니다.",help:"ë¯¸ì”¨ì¿ í° ì´ìš©ì— 관한 ë„움ë§ìž…니다.",saved:"게시물 작성 중 임시로 ì €ìž¥ëœ ê¸€ì„ í™•ì¸ í• ìˆ˜ 있습니다.",myposts:"ë‚´ê°€ ì“´ ê²Œì‹œë¬¼ì„ í™•ì¸ í• ìˆ˜ 있습니다.",cafe_list:"ê´€ì‹¬ë¶„ì•¼ì˜ ì†Œëª¨ìž„ 개설 ë° í™œë™ì„ 하실 수 있습니다.",avatar_manage:"ë‚˜ë§Œì˜ ì•„ë°”íƒ€ë¥¼ 꾸며보세요."},l={search:function(){var t=o("#mc_search_keyword").val(),e=o("#mc_search_board").val();t&&(t="keyword="+encodeURIComponent(t),e?mc.url.browse("/zero/board.php#id="+e+"&"+t):location.href="/zero/search_main.php?"+t)},logout:function(){mc.device.isNativeApp()?location.href="micoup://logout":o.ajax({url:BOARD_PATH+"/p/logout.php",type:"POST",nocancel:!0,"async":!1,success:function(){location.reload()},error:function(t,e,i){mc.alert(o.ajaxErrorMessage(t,e,i))}})},join:function(){location.href=("http:"==location.protocol?"https://"+location.host+BOARD_PATH:BOARD_PATH)+"/join.php?group_no=1&s_url="+encodeURIComponent(location.href)},lostpw:BOARD_PATH+"/lostpw.php",memo:function(){mc.myinfo.new_memo=!1,o("#mc_memo_button").setMemoIcon(),window.open(BOARD_PATH+"/member_memo.php","member_memo","width="+(mc.device.isSmallPage()?"420":"640")+",height=670,status=no,toolbar=no,resizable=yes,scrollbars=yes")},hideme:function(){o(this).hide()},help:BOARD_PATH+"/board.php#id=faq"};function e(t,e){function i(t){return r+"/img/icons/"+t+".png"}var n=$$("img.mc-trui-icon",{src:i(t)});return e&&o(e).on("close",function(){n.attr({src:i(t)})}),n}function c(t,e){if(""!=(t=t.substr(1).split("&")))for(var i in t){i=t[i].split("=");if(2==i.length&&i[0]==e)return decodeURIComponent(i[1].replace(/\+/g," "))}return""}o.fn.truiInitDialog=function(t){this.append(function(){var t=$$("div#mc_account_dialog.mc-ui-dialog");0<mc.myinfo.avatar?t.append($$("div.avatar-line",$$("div.avatar",$$("img.avatar",{src:r+"/avatar/0/"+mc.myinfo.avatar+"/"+mc.myinfo.aserial})),$$("div.myinfo-col",$$("div.mc-dialog-item",mc.myinfo.name+"님"),$$.menuRow("ë‚´ì •ë³´ìˆ˜ì •",BOARD_PHP+"f=mypages")))):t.append($$("div.mc-dialog-item",mc.myinfo.name+"님"),$$.menuRow("ë‚´ì •ë³´ìˆ˜ì •",BOARD_PHP+"f=mypages"));if(mc.myinfo.can_add_profile||mc.myinfo.profiles){if(t.append($$.menuLine()),mc.myinfo.profiles)for(var e in mc.myinfo.profiles){var i=mc.myinfo.profiles[e],n="/usericons/"+mc.myinfo.uiversion+"/"+e+".png";i.is_owner&&(n="/img/usericons/ad.png"),t.append($$("div.biz-profile-line.mc-dialog-item",$$("img.mc-uicon",{src:r+n,align:"absmiddle"}),$$("span.mc_name",i.name)).click(function(){var t={profile_no:o(this).attr("no")};o.ajax({url:BOARD_PATH+"/p/switch_profile.php",type:"POST",data:t,nocancel:!0,"async":!1,success:function(t){location.reload(!0)},error:function(t,e,i){mc.alert(o.ajaxErrorMessage(t,e,i))}})}).mouseover(function(){o(this).addClass("mc-dialog-item-cursor")}).mouseout(function(){o(this).removeClass("mc-dialog-item-cursor")}).attr("no",e))}mc.myinfo.can_add_profile&&t.append($$.menuRow("+ 업체프로필 추가",BOARD_PHP+"f=add_profile"))}t.append($$.menuLine(),$$.menuRow("쪽지",l.memo,a.memo),$$.menuRow("í´ë¦½ìƒìž",BOARD_PHP+"f=clip",a.clip)),mc.myinfo.level<=8&&t.append($$.menuRow("아바타관리",BOARD_PHP+"f=mypages&tab=5",a.avatar_manage));if(mc.myinfo.cafes)for(var s in t.append($$.menuLine(),$$.menuRow("소모임목ë¡",BOARD_PHP+"f=cafes",a.cafe_list)),mc.myinfo.cafes)t.append($$.menuRow(mc.myinfo.cafes[s][1],BOARD_PHP+"id="+s));"advertiser"!=mc.myinfo.is_owner&&"owner"!=mc.myinfo.is_owner||(t.append($$.menuLine(),$$.menuRow("ë°°ë„ˆê´‘ê³ ì•ˆë‚´",BOARD_PATH+"/mgmt/ads_price.php")),"advertiser"==mc.myinfo.is_owner&&t.append($$.menuRow("ë°°ë„ˆê´‘ê³ ì‹ ì²",BOARD_PATH+"/mgmt/banner_reserve.php"),$$.menuRow("배너계약관리",BOARD_PATH+"/mgmt/ads_contract_list.php")));mc.myinfo.show_permit_menu&&t.append($$.menuLine(),$$.menuRow("ê²Œì‹œë¬¼ê´‘ê³ ì•ˆë‚´",BOARD_PATH+"/mgmt/ads_post_faq.php"),$$.menuRow("ê²Œì‹œë¬¼ê´‘ê³ ê´€ë¦¬",BOARD_PATH+"/mgmt/ads_permit.php"));return t.append($$.menuLine(),$$.menuRow("내글보기",BOARD_PHP+"f=mypages&tab=1",a.myposts),$$.menuRow("ìž„ì‹œì €ìž¥ê¸€ 보기",BOARD_PHP+"f=mypages&tab=2",a.saved),$$.menuLine(),$$.menuRow("ìµœì‹ ê¸€ 30ê°œ",BOARD_PHP+"f=mypages&tab=4"),$$.menuLine(),$$.menuRow("검색",BOARD_PATH+"/search_main.php"),$$.menuRow("ë„움ë§",BOARD_PHP+"id=faq",a.help),$$.menuLine(),$$.menuRow("로그아웃",l.logout,a.logout)).mouseleave(function(){o(this).trigger("close")}).on("open",function(t,e){var i=o(this);mc.device.isSmallPage()?i.alignBottomRight("#mc_dock_menu #mc_account_button","#mc_dock_menu #mc_search_button"):i.alignTopRight("#mc_m_right #mc_account_button","#mc_m_right #mc_search_button"),o(this).closeDialogOnTouchOutside(e).show()}).on("close",function(){o(this).hide()})}(),$$("div#mc_search_dialog.mc-ui-dialog",function(){var t=$$("select#mc_search_board",$$("option",{value:""},"ì „ì²´ê²€ìƒ‰"));return function(t,e){var i,n=c(location.hash,"id");for(i in e){var s={value:i};n==i&&(s.selected="selected"),t.append($$("option",s,e[i]))}}(t,{general:"ìžìœ ",hotdeals:"핫딜",mc:"ì¿ í°",freebies:"공짜",review:"쇼핑후기",preview:"ì œí’ˆë¦¬ë·°",food:"ìŒì‹",gardening:"ì›ì˜ˆ/가드ë‹",life_info:"ìƒí™œì •ë³´",travel:"여행",edu:"ì˜ìœ ì•„/초등",school:"중/ê³ ë“±",motherhood:"ìž„ì‹ /출산",english:"ì˜ì–´",money:"재테í¬",pet:"ë°˜ë ¤ë™ë¬¼",qna:"질문",wiki:"ì •ë¦¬",diettalk:"다ì´ì–´íŠ¸",ads:"í™ë³´",pr:"알림",inform:"ê°œì¸ì•Œë¦¼",local:"지ì—",kqna:"í•œêµì§ˆë¬¸",kgeneral:"í•œêµ",kmc:"í•œêµí•«ë”œ"}),t}(),function(){var t=c(location.search,"keyword")||c(location.hash,"keyword");return $$("input#mc_search_keyword.mc_s_keyword.mc-keyword",{placeholder:"검색",value:t}).enterpress(l.search).syncValue("#mc_l_keyword")}(),e("search_1").click(l.search)).on("open",function(t,e){var i=o(this),i=(mc.device.isSmallPage()?i.alignBottomRight("#mc_dock_menu #mc_search_button","#mc_dock_menu #mc_search_button"):i.alignTopRight("#mc_m_right #mc_search_button","#mc_m_right #mc_search_button"),c(location.hash,"id"));i&&o("#mc_search_board").val(i),o(this).closeDialogOnTouchOutside(e).show()}).on("close",function(){o(this).hide()}))},o.fn.truiInit=function(){return mc.myinfo.hasLoggedIn()?this.truiDrawIconsOnLoggedIn():this.truiDrawIconsOnLoggedOut(),this.append($search_button())},$search_button=function(){return $$("div#mc_search_button",{title:"검색"},e("search_1")).truiInitIcon().tooltip().on("mouseover touchstart",function(t){o(".mc-ui-dialog").trigger("close"),o("#mc_search_dialog").trigger("open",[this])}).click(function(){mc.device.isSmallPage()||o("#mc_search_dialog #mc_search_keyword").focus()})},o.fn.initGearButton=function(t){return this.truiInitIcon().append(e("account",t)).attachDialog(t).tooltip()},o.fn.setMemoIcon=function(){mc.myinfo.new_memo?this.hasClass("mc-new-memo-icon")||this.addClass("mc-new-memo-icon"):this.removeClass("mc-new-memo-icon")},o.fn.truiDrawIconsOnLoggedOut=function(){return this.append(((t=$$("div#mc_login_button",{title:a.login}).truiInitButton().html("로그ì¸").tooltip()).hover(function(){o(this).css({color:"#666"})},function(){o(this).css({color:"#999"})}),t.click(function(){mc.device.isNativeApp()?location.href="micoup://login":location.href="https://"+location.host+"/zero/login.php?s_url="+encodeURIComponent(location.href)}),t),$$("div#mc_join_button",{title:a.join}).truiInitButton().html("가입").tooltip().hover(function(){o(this).css({color:"#666"})},function(){o(this).css({color:"#999"})}).click(l.join));var t},o.fn.truiDrawIconsOnLoggedIn=function(){return this.append($$("div.score",$$("div#mc_myscore",mc.myinfo.score+"ì ")),$$("div#mc_memo_button",{title:a.memo}).truiInitIcon().append($$("div#mc_memo_icon.mc-memo-icon").mouseover(t).mouseout(t).each(t)).click(l.memo).tooltip(),$$("div#mc_account_button").initGearButton("#mc_account_dialog"));function t(){o(this).setMemoIcon()}},o.fn.truiInitIcon=function(){return this.truiInitButton().addClass("mc-trui-icon")},o.fn.truiInitButton=function(){return this.addClass("mc-trui-button")},o.fn.syncValue=function(i){return this.keyup(function(t){var e=this;o(i||".mc-keyword").each(function(){this!=e&&o(this).val(e.value)})})},o.support.mobileBottomInputFocus=!window.navigator.userAgent.match(/Android/i)}(jQuery,window),function(i,n,t,e){var s=mc.CDN;function o(t){var e=t?function(){location.href="/zero/tcu.php?surl="+encodeURIComponent(location.href)}:n.noop,i=Math.floor(2*Math.random());n("#mc_tcu_context").html(["사용ìžëŠ” 본 사ì´íŠ¸ë¥¼ 사용, 열람, ê²€ìƒ‰ì„ í•˜ê±°ë‚˜ ê²Œìž¬ëœ ì»¨í…ì¸ ë¥¼ ê²€í† í•¨ìœ¼ë¡œì¨ ì‚¬ìš©ì•½ê´€ì— ë”°ë¥¼ ê²ƒìž„ì„ ë™ì˜í•©ë‹ˆë‹¤.","By using, browsing, or otherwise surfing this site and reviewing the contents thereof, the user agrees to be bound by Terms and Conditions of Use"][i]),n("#mc_tcu_bar").css({display:"block"}).click(e).setPointer(t),t&&n("#mc_tcu_close_button").css({display:"table-cell"})}n.fn.initTCUDock=function(){return this.append($$("table.nospace",$$("tr",$$("td#mc_tcu_context"),$$("td#mc_tcu_close_button",$$("img",{src:s+"/img/icons/x15.gif"})))))},$initOldWarning=function(){if(n.support.old)return $$("div#mc_old_warning.mc-dock-item").append($$("a",{href:"/zero/board.php#id=faq&no=33"},"ì‚¬ìš©í•˜ê³ ê³„ì‹ ì¸í„°ë„· 환경ì—서는 ë¯¸ì”¨ì¿ í°ì˜ ì´ìš©ì´ ì›í™œí•˜ì§€ ì•Šì„ ìˆ˜ 있습니다. ì—…ê·¸ë ˆì´ë“œ ì •ë³´ë¥¼ ë³´ì‹œë ¤ë©´ ì´ê³³ì„ í´ë¦í•˜ì„¸ìš”"))},$showBoardSettingsDialog=function(){var e=n("#board_list_settings_dialog");0<e.length?e.is(":visible")?e.hide():(e.initWithCookies(),e.show().closeDialogOnTouchOutside(n("#mc_dock_board_list_settings_button")).css({top:n(window).scrollTop(),left:0})):n.ajax({url:"/zero/d/board_list_settings_ui.php",data:{id:"board_list_settings_ui"},success:function(t){0<t.length&&(n("#mc_search_dialog").after($$("div#board_list_settings_dialog.mc-ui-dialog")),(e=n("#board_list_settings_dialog")).html(t).hide(),e.css({border:"2px solid #666","border-radius":"6px",width:window.innerWidth-2,"min-height":window.innerHeight-2}),void 0===mc.board&&e.find(".font-large .font-example > a").css("font-size","2em"),e.on("apply",function(){n("#board_list_settings_dialog").hide(),void 0!==mc.board&&null!==mc.board.content&&location.reload(!0)}),e.on("close",function(){n("#board_list_settings_dialog").hide()}),n("#mc_dock_board_list_settings_button").trigger("click"))},error:function(t,e,i){mc.alert(n.ajaxErrorMessage(t,e,i))}})},n.fn.stickBottom=function(){var t=this,e=(n(document.body).append(this,$$("div#mc_dock_dummy")),function(){90==Math.abs(i.orientation)||!n.support.dockbar&&(n(document).height()<=screen.height||i.innerWidth<400)?(t.css({left:0,bottom:0,position:"static"}),n("#mc_dock_dummy").height(0),setTimeout(e,1e3)):(t.css({position:"fixed"}),n("#mc_dock_dummy").height(t.height()))});return e.call(),n(document).on("scroll touchend",e),n(i).resize(e),this},n.fn.initDockMenu=function(){function t(t,e,i){return $$("div",{},{padding:"0px 0.3em"},$$("img",{src:s+t},{height:e,verticalAlign:i?"middle":""})).truiInitButton()}return this.append($$("div",$$("div",t("/img/icons/storelist.gif","0.8em").click(function(){location.href="/zero/d/m.storelist.php"}),t("/img/icons/pcver.gif","0.8em").click(function(){mc.device.forceLarge()}),t("/images/me_140.gif","2em",1).attr("title","ë‚´ì§€ì— ê²Œì‹œíŒìœ¼ë¡œ ì´ë™").click(function(){location.href="/zero/d/forward_mymetroboard.php"}),t("/img/icons/list_settings.png","1.8em",1).attr("id","mc_dock_board_list_settings_button").click(function(){$showBoardSettingsDialog()})).css("float","left"),$$("div").truiInit().css("float","right")))},n.fn.initBottomDock=function(){if(!mc.device.isNativeApp())return this.addClass("mc-bottom-dock").append($$("div#mc_dock_menu.mc-dock-item").initDockMenu(),$$("div#mc_tcu_bar.mc-dock-item").initTCUDock(),$initOldWarning()).stickBottom(),mc.myinfo.hasLoggedIn()?!0!==mc.myinfo.tcu?o(!0):!1!==mc.myinfo.verified||location.hash&&"#f=mypages"===location.hash||(n("#mc_tcu_context").text("ì´ë©”ì¼ ì£¼ì†Œë¥¼ ì¸ì¦í•´ 주세요. --\x3e [ì¸ì¦ë°©ë²•ë³´ê¸°]"),n("#mc_tcu_bar").css({display:"block"}).click(function(){location.href="https://www.missycoupons.com/zero/board.php#id=faq&no=50"}).setPointer(!0),n("#mc_tcu_context").css("background-color","var(--bg-pink-color)"),mc.device.isSmallPage()?n("#mc_tcu_context").css({"font-size":"1.4em",height:"300%","line-height":"300%"}):n("#mc_tcu_bar table").css("width","100%")):o(!1),this}}(window,jQuery),function(t,s,o,e){s.fn.attachDialog=function(e,t){return this.on(t=t||"click",function(t){s(e).trigger(s(e).is(":visible")?"close":"open",[this])})},$$.menuLine=function(){return $$("div.mc-dialog-line")},$$.menuRow=function(t,e,i){return $$("div.mc-dialog-item").append(t).setLink(e).mouseover(function(){s(this).addClass("mc-dialog-item-cursor")}).mouseout(function(){s(this).removeClass("mc-dialog-item-cursor")}).attr({title:i||""}).tooltip()},s.fn.alignTopRight=function(t,e,i){return i=i||10,this.css({top:s(t).offset().top+s(t).outerHeight()+i,left:s(e).offset().left+s(e).outerWidth()-this.outerWidth()})},s.fn.alignTopLeft=function(t,e,i){return i=i||10,this.css({top:s(t).offset().top+s(t).outerHeight()+i,left:s(e).offset().left})},s.fn.alignBottomLeft=function(t,e,i){return i=i||10,this.css({top:Math.max(0,s(t).offset().top-this.outerHeight()-i),left:s(e).offset().left})},s.fn.alignBottomRight=function(t,e,i){return i=i||10,this.css({top:Math.max(0,s(t).offset().top-this.outerHeight()-i),left:s(e).offset().left+s(e).outerWidth()-this.outerWidth()})},s.fn.setPointer=function(t){return this.css("cursor",t?"pointer":"default")},s.fn.setLink=function(t){function e(){s(this).trigger("close")}return s.isFunction(t)?this.click(e).click(t).setPointer(1):"string"==s.type(t)?this.click(e).click(new Function("mc.url.browse('"+t+"')")).setPointer(1):this},s.fn.ancestorOrMe=function(t){return 0<this.closest(t).length};var r=0;function i(t){s(o).on("open",function(){s(t).css({visibility:"hidden"})}),s(o).on("close",function(){s(t).css({visibility:"visible"})})}s.fn.closeDialogOnTouchOutside=function(e){var i=this,n=(mc.touchDevice()?"touchstart":"mousedown")+".outside-"+r++;return s(o).on(n,function(t){s(t.target).ancestorOrMe(i)||s(t.target).ancestorOrMe(e)||i.trigger("close")}),this.on("mousedown.outside",function(t){t.stopPropagation()}).on("close",function(t,e){s(this).off("mousedown.outside"),s(o).off(n)})},s(o).ready(function(){s.support.bugInputZIndex&&i(".mc-osearch"),s.support.bugSelectZIndex&&i("#mc_navbar")})}(window,jQuery,document),function(d,o,p){$.fn.enterpress=function(e){return this.keypress(function(t){13==(t.keyCode||t.which)&&(t.preventDefault&&t.preventDefault(),t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0,e.apply(this))})};var f="click touchend",m="close",g="cancel",v=1,_=2,b=4,y=5,w={onOkay:function(){},onCancel:function(){},textOkay:"확ì¸",textCancel:"취소",titleAlert:"알림",titleWarning:"ê²½ê³ ",titleConfirm:"확ì¸",topPixel:100,leftPixel:100,position:"center",focusOnDefault:!0,keepOpen:!1,leftOkay:!0};function n(t,e){function i(t){return t.replace(/\n/g,"<br>")}switch($.type(t)){case"object":return t.message=i(t.message),$.extend({},w,e||{},t);case"string":return $.extend({},w,e||{},{message:i(t)})}return w}function x(t){var e=$(o),i=$(d),n=i.scrollTop(),s=i.scrollLeft(),i=n;if((t=(t=0<=$.inArray(t,["center","top","right","bottom","left"])?["right"==t||"left"==t?t:"center","top"==t||"bottom"==t?t:"middle"]:t).constructor!=Array?["center","middle"]:t)[0].constructor==Number)s+=t[0];else switch(t[0]){case"left":s+=0;break;case"right":s+=e.width()-p.width();break;default:s+=(e.width()-p.width())/2}if(t[1].constructor==Number)n+=t[1];else switch(t[1]){case"top":n+=0;break;case"bottom":n+=e.height()-p.height();break;default:n+=(e.height()-p.height())/2}n=Math.max(n,i),p.css({top:n,left:s})}function s(t){return $$("div",t.message).mcDialog(t)}function k(t,e){return $$("input.button#"+t,{type:"submit",value:e})}mc.confirm=function(t,e,i){return s(n(t,{type:_,onOkay:e,onCancel:i}))},mc.alert=function(t,e){return s(n(t,{type:v,onOkay:e,onCancel:e}))},mc.prompt=function(t,e,i){return s(n(t,{type:b,onOkay:e,onCancel:i}))},mc.showWaiting=function(){return $$("div.mc-waiting-box",$$("div.mc-progress-bar",$$("div.mc-progress-background"),$$("div.mc-progress-hand")),$$("div.mc-waiting-message",$$("div.mc-waiting-msg-big","ë°ì´í„° <span class='mc-waiting-sending'>ì „ì†¡ì¤‘</span>입니다"),$$("div.mc-waiting-msg-small","ìž ì‹œë§Œ ê¸°ë‹¤ë ¤ì£¼ì„¸ìš”"))).mcDialog({type:y,focusOnDefault:!1,keepOpen:!0})},mc.hideWaiting=function(){$("#mc_dialog").trigger("close")},$.fn.mcConfirm=function(t,e,i){return $.isFunction(t)&&(i=e,e=t,t=w),this.mcDialog($.extend(t,{type:_,onOkay:e,onCancel:i}))},$.fn.mcDataDialog=function(t,e,i){return $.isFunction(t)&&(i=e,e=t,t=w),this.mcDialog($.extend(t,{type:_,onOkay:e,onCancel:i,keepOpen:!0,leftOkay:!1}))},mc.guide=function(t,e){mc.guideCancel(),$$("div.mc-guide").append($$("div.x").text("×"),t.replace(/\n/g,"<br>")).on(m+" click touchstart",function(){$(this).remove()}).showBelow(e,{top:$(e).offset().top+$(e).outerHeight()+10,left:$(e).offset().left}).each(function(){var t=$(this).outerHeight(),e=$(this).outerWidth();7*t<e&&$(this).css({maxWidth:.7*e})})},mc.guideCancel=function(){$(".mc-guide").trigger(m)},$.fn.mcDialog=function(e){function t(t){t.stopPropagation(),t.preventDefault(),p.trigger("okay")}function i(t){t.stopPropagation(),t.preventDefault(),p.trigger(g)}$("#mc_dialog").trigger(g).remove(),p=$$("div#mc_dialog.mc-dialog"),e=$.extend({},w,e);var n,s,o,r=$$("div.text#mc_dialog_title_text"),a=$$("div.title",$$("img.logo",{src:mc.CDN+"/img/logo/micou_square.png"}),r),l=this.addClass("context"),c=$$("div.buttons");switch(e.type){case b:l.append(n=$$("input",{type:"text"},{width:"99%"}).enterpress(function(){p.trigger("okay")}));case _:c.append(s=k("ok",e.textOkay).on(f,t),o=k(g,e.textCancel).on(f,i)),a.append($$("div.close","x").click(i)),r.text(e.titleConfirm),n=o;break;case v:c.append(n=k("ok",e.textOkay).on(f,t)),r.text(e.titleAlert),l.addClass("mc-alert-context")}h=function(t){27!=t.keyCode||e.keepOpen||p.trigger(g),e.leftOkay&&37==t.keyCode&&s&&s.focus()},$(d).on("keyup.mc-dialog",h),mc.security.suspend();var h,u=$$("div#mc_dialog_overlay.mc-dialog-overlay").on("terminate",function(){$(d).off("keyup.mc-dialog"),$(this).remove(),mc.security.resume()}).appendTo("body").click(e.keepOpen?$.noop:i);p.append(a).append(l).append(c).appendTo("body").on("okay",function(){var t=$("#mc_dialog .context INPUT").val();!1!==e.onOkay.apply(this,[t])&&$(this).trigger(m)}).on(g,function(){!1!==e.onCancel.apply(this)&&$(this).trigger(m)}).on(m,function(){$(this).hide().remove(),u.trigger("terminate")}),x(e.position),p.show(),mc.device.isSmallPage()&&setTimeout(x(e.position),10),e.type==y&&p.find(".title").hide(),e.focusOnDefault&&n.focus()}}(document,window),function(t){function o(t){return e(t.getHours())+":"+e(t.getMinutes())+":"+e(t.getSeconds())}function r(t){return e(t.getHours())+":"+e(t.getMinutes())}function a(t){return t.getMonth()+1+"/"+e(t.getDate())}function l(t){return a(t)+"/"+t.getFullYear()}function e(t){return t<10?"0"+t:t}function n(t,e){var i=new Date(t),n=new Date,s=n.getTime()-i.getTime()<432e5,n=n.getTime()-i.getTime()<153792e5;return 0==e?l(i)+" "+o(i):1==e?(s?o:n?a:l)(i):2==e?l(i):3==e?(s?r:n?a:l)(i):4==e?l(i)+" "+r(i):o(i)}jQuery.fn.localTime=function(e){return this.each(function(){var t=parseInt((this.innerHTML+"").replace(/<[^>]*>/i,""));isNaN(t)||!0===this.mctimed||(this.innerHTML=n(1e3*t,e),this.title=new Date(1e3*t).toLocaleString()+"<br>사용하시는 컴퓨터 시간 기준입니다",this.mctimed=!0)})},mc.time={local:function(t,e){return i=t,t=n(t,e),"<div title='"+new Date(i).toLocaleString()+"<br>사용하시는 컴퓨터 시간 기준입니다' class='mc_localtime'>"+t+"</div>";var i}}}(),function(s){s.dbg||(s.dbg=function(){});var e=s.ajax;s.activeAjax=0,s.ajaxCutOff=0,s.cancelAjax=function(){s.ajaxCutOff=(new Date).getTime()},s.ajax=function(t){return/^h/.test(t.url)||/post/i.test(t.type)?t.timeout||(t.timeout=15e3):(!0!==t.nocancel&&(t.initTime=(new Date).getTime()),!1===t.global||jQuery.activeAjax++||s.ajaxWait&&s.ajaxWait.apply(t),t._retried=0,"undefined"==typeof t.retrylimit&&(t.retrylimit=s.ajaxSettings.retrylimit),"undefined"==typeof t.retrytime&&(t.retrytime=function(t,e){return 0==t?3e3:Math.round(1.5*t)}),t.o_success=t.success,t.o_error=t.error,t.success=function(){0<this._retried&&s.ajaxSolved&&s.ajaxSolved.apply(this,[]),this.global&&!--jQuery.activeAjax&&s.ajaxDone&&s.ajaxDone.apply(this,[]),!0!==this.nocancel&&this.initTime<s.ajaxCutOff?this.o_error&&this.o_error("","usercancel"):this.o_success&&this.o_success.apply(this,arguments)},t.error=function(){!0!==this.nocancel&&this.initTime<s.ajaxCutOff&&"get"==this.type.toLowerCase()?(0<this._retried&&s.ajaxSolved&&s.ajaxSolved.apply(this),this.global&&!--jQuery.activeAjax&&s.ajaxDone&&s.ajaxDone.apply(this),s.dbg("$.ajax.error.usercancel:"+this.url),arguments[1]="usercancel",arguments.length=2,this.o_error&&this.o_error.apply(this,arguments)):"timeout"==arguments[1]&&this._retried++<this.retrylimit&&"get"==this.type.toLowerCase()?(this.timeout=this.retrytime(this.timeout,this._retried),s.dbg("$.ajax.error:retrying:"+arguments[1]+",retried="+this._retried+"/"+this.retrylimit+",timeout="+this.timeout+":"+this.url),s.ajaxTimeout&&s.ajaxTimeout.apply(this,[this._retried]),e(this)):(this.global&&!--jQuery.activeAjax&&s.ajaxDone&&s.ajaxDone.apply(this),this.o_error&&this.o_error.apply(this,arguments))}),e(t)},s.getScript=function(t,e,i){return s.ajax({type:"GET",url:t,nocancel:!0,success:e,error:i,dataType:"script"})},s.getJSON=function(t,e,i,n){return jQuery.isFunction(e)&&(n=i,i=e,e=null),s.ajax({type:"GET",url:t,data:e,nocancel:!0,success:i,error:n,dataType:"json"})},s.ajaxErrorMessage=function(t,e,i){try{return t&&t.responseText&&4==t.readyState?t.responseText:(void 0!==i&&(e+="("+i+")"),e)}catch(n){return n}},s.fn.loadWithTimeout=function(t,e){return mc&&mc.remocon&&mc.remocon.showWait&&mc.remocon.hideWait&&mc.remocon.showWait(),s.ajax({url:t,"async":!0,that:this,timeout:5e3,success:function(t){mc&&mc.remocon&&mc.remocon.showWait&&mc.remocon.hideWait&&mc.remocon.hideWait(),this.that.html(t)},error:function(t,e,i){mc&&mc.remocon&&mc.remocon.showWait&&mc.remocon.hideWait&&mc.remocon.hideWait()}}),this}}(jQuery),function(n,t){var e=navigator.userAgent.match(/Android/i);function i(){n("#mc_floating_arrow_reload").removeClass("loading"),n("#mc_center_message").hide().html("로딩중")}function s(t){n("#mc_center_message").html(t).showInline()}function o(){var e=0,i=!1;o.prototype.activate=function(){e=10,i=!!0,n("#mc_loading_bar").css({width:"10%"}).show()},o.prototype.finish=function(){n("#mc_loading_bar").css({width:"100%"}).show(),i=!!1,function t(){i&&e<=100?(n("#mc_loading_bar").css({width:e+"%"}),setTimeout(function(){e+=10,t()},10)):n("#mc_loading_bar").hide()}()},o.prototype.deactivate=function(){n("#mc_loading_bar").hide()}}var r=new o;function a(t){$$("div#mc_loading_bar",{},{position:"fixed",left:0,top:0,height:"3px",border:"1px solid "+(e?"#88ccdd":"#0077FF"),width:"0%",backgroundColor:e?"#44bbee":"#0077FF",borderRadius:e?"2px":"0px"}).hide().appendTo(document.body),mc.device.isNativeApp()||(t.empty().addClass("mc-floating-arrow-box"),mc.board!==undefined&&mc.myinfo.hasLoggedIn()&&"list"==mc.url.getContentName(mc.url.getHash())&&"shout"!=mc.url.getParam("id",mc.url.getHash())?t.append($$("div#mc_floating_write.mc-floating-plus").click(function(){location.href="write_mobile.php?id="+mc.url.getParam("id")})):t.append($$("div#mc_floating_arrow_up").addClass("mc-floating-arrow mc-floating-arrow-up")),t.show(),n("#mc_tcu_bar").is(":visible")&&t.css("bottom",60+n("#mc_tcu_bar").height()))}function l(t,e){t.addClass("mc-floating-arrow-box").append($$("div#mc_floating_arrow_sync").addClass("mc-floating-arrow mc-floating-arrow-sync"),$$("div#mc_floating_arrow_up").addClass("mc-floating-arrow mc-floating-arrow-up"),$$("div#mc_floating_arrow_reload").addClass("mc-floating-arrow mc-floating-arrow-reload"),$$("div#mc_floating_arrow_down").addClass("mc-floating-arrow mc-floating-arrow-down")),t.find("#mc_floating_arrow_reload").append("<div id='mc_floating_arrow_reload_title' class='mc-floating-arrow-reload-title'></div>"),t.find("#mc_floating_arrow_reload").hover(function(){var t=n(this).find("#mc_floating_arrow_reload_title");if(mc.board&&null!==mc.board.content&&mc.board.content!==undefined){if("list"==mc.board.content.name)t.text("새 목ë¡");else{if("view"!=mc.board.content.name)return void t.hide();t.text("새 댓글")}t.show()}else t.hide()},function(){n(this).find("#mc_floating_arrow_reload_title").hide()}),1==e&&n("#mc_center").append($$("div#mc_center_message.mc_waiting")),t.addClass("mc-floating-arrow-box-desktop").show();var i=t.find("#mc_floating_arrow_sync");i.hide(),i.append("<div id='mc_floating_arrow_sync_title' class='mc-floating-arrow-reload-title'>ëª¨ë°”ì¼ ì´ì–´ 보기</div>"),i.hover(function(){n(this).find(".mc-floating-arrow-reload-title").show()},function(){n(this).find(".mc-floating-arrow-reload-title").hide()}),i.find(".mc-floating-arrow-reload-title").css("left","-90px"),i.click(function(){if(!1!==mc.myinfo.hasLoggedIn())return n.ajax({url:"/zero/d/mi_recent_view.php",dataType:"json",success:function(t){var e,i;t.has_post?(e=t.subject,i=t.url,mc.confirm("모바ì¼ì—ì„œ 최근 본 게시물로 ì´ë™í•˜ì‹œê² 습니까?<br>"+e,function(){location.href=i}),n.ajax({url:"/zero/d/mi_recent_view.php?type=2",dataType:"json",success:function(t){}})):mc.alert("최근 본 ê²Œì‹œë¬¼ì´ ì—†ìŠµë‹ˆë‹¤")},error:function(t,e,i){console.log(n.ajaxErrorMessage(t,e,i)),mc.alert("최근 본 ê²Œì‹œë¬¼ì´ ì—†ìŠµë‹ˆë‹¤")}}),!1;mc.alert("ë¡œê·¸ì¸ í•˜ì‹ í›„ ì´ìš©í•´ì£¼ì„¸ìš”")}),n("#mc_body").offset().left<50?(t.css("left",""),t.css("right",20)):t.css("left",n("#mc_body").offset().left+n("#mc_body").width()+5),n(window).resize(function(){n("#mc_body").offset().left<50?(t.css("left",""),t.css("right",20)):t.css("left",n("#mc_body").offset().left+n("#mc_body").width()+5)})}n.fn.remoconInit=function(t){return void 0===t&&(t=!0),mc.device.isSmallPage()?a(this):l(this,t),n("#mc_floating_arrow_up").click(function(){return scroll(0,0),!1}),n("#mc_floating_arrow_down").click(function(){return scroll(0,document.body.scrollHeight),!1}),n("#mc_floating_arrow_reload").click(function(){return mc.board&&null!==mc.board.content&&mc.board.content!==undefined?mc.board.content.refresh():location.reload(!0),!1}),this},mc.remocon={waitCount:0,init:function(t,e){t.remoconInit(e)},getScrollTop:function(){return self.pageYOffset||(document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body?document.body.scrollTop:0)},getScrollBottom:function(){return n(document).scrollTop()+n(window).height()},showReloadButton:function(t,e){},hideReloadButton:function(){},hideWriteButton:function(){n("#mc_floating_write").hide()},showButtons:function(){},positionTop:function(){scroll(0,0)},positionBottom:function(){scroll(0,document.body.scrollHeight)},resume:function(){},pause:function(){},showWait:function(){this.waitCount++,r.activate(),n("#mc_floating_arrow_reload").addClass("loading")},hideWait:function(){--this.waitCount<=0&&(r.finish(),i())},resetWait:function(){this.waitCount=0,r.deactivate(),i()},setMessage:function(t){t==undefined?s("로딩중"):0<this.waitCount&&s(t)}}}(jQuery,mc.CDN),function(n){n.fn.adjustCurrentWidth=function(){this.each(function(){var t,e=n(this).text();0==+e?n(this).css("width","0px"):(floorValue=Math.floor(e),t=17,mc.device.isSmallPage()&&(t=25,n(this).parents(".mc-star-rate-input").oncenotempty(function(){t=38})),newWidth=floorValue*t+.94*(e-floorValue)*t+1,n(this).css("width",newWidth+"px"))})},mc.star_rate={activateMouseOver:function(t){a_list=n(".mc_star_rate li a"),(a_list=null!=t?a_list.filter(document.getElementById(t)):a_list).mouseover(function(){n(this).parent().parent().parent().children(".mc_star_rate_desc").text(n(this).attr("title")),n(this).parents("ul").find("li.current").hide()}),a_list.mouseout(function(){(descElem=n(this).parent().parent().parent().children(".mc_star_rate_desc")).text(descElem.attr("title")),n(this).parents("ul").find("li.current").show()})},updateCurrentRating:function(t,e,i){rateElm=n(".mc_star_rate").filter(document.getElementById(t)),null==i&&(i=rateElm.find(".mc_star_rate_desc").text()),rateElm.find(".current").text(e).adjustCurrentWidth(),rateElm.children(".mc_star_rate_desc").text(i).attr("title",i)},getCurrentRating:function(t){return(rateElm=n(".mc_star_rate").filter(document.getElementById(t))).find(".current").text()},createStarRateInputHtml:function(t){var e=n("<div></div>");return e.attr("class","mc_star_rate"),e.attr("id",t),e.append("<ul>\t\t\t\t<li class='current' style='width:0px;'>0</li>\t\t\t\t<li><a href='#' title='별로예요' class='one'>1</a></li>\t\t\t\t<li><a href='#' title='ê·¸ì €ê·¸ëž˜ìš”' class='two'>2</a></li>\t\t\t\t<li><a href='#' title='괜찮아요' class='three'>3</a></li>\t\t\t\t<li><a href='#' title='좋아요' class='four'>4</a></li>\t\t\t\t<li><a href='#' title='ìµœê³ ì˜ˆìš”' class='five'>5</a></li>\t\t\t </ul>"),e.append("<div class='mc_star_rate_desc' title=' '></div>"),e},createStarRateHtml:function(t){var e=n("<div></div>");return e.attr("class","mc_star_rate"),e.attr("id",t),e.append("<ul>\t\t\t\t<li class='current' style='width:0px;'>0</li>\t\t\t </ul>"),e.append("<div class='mc_star_rate_desc' title=' '></div>"),e},toggleGraph:function(t){n("#"+t).is(":visible")?mc.star_rate.hideGraph(t):mc.star_rate.showGraph(t)},showGraph:function(t){myGraph=n("#"+t),pos=myGraph.parent().position(),myGraph.css({top:pos.top+25+"px",left:pos.left+"px"}),myGraph.show()},hideGraph:function(t){n("#"+t).hide()}}}(jQuery),function(o,r,n,t){(n=mc.cookie=function(t,e,i){var n,s;return i=o.extend({domain:/(^|\.)\w+\.\w+$/.exec(location.hostname)[0]||"",path:"/"},i),void 0!==e?r.cookie=[t,"=",e,i.expires?"; expires="+i.expires.toUTCString():"","; path="+i.path,"; domain="+i.domain].join(""):(n=t+"=",s="",0<r.cookie.length&&-1!=(offset=r.cookie.indexOf(n))&&(offset+=n.length,-1==(end=r.cookie.indexOf(";",offset))&&(end=r.cookie.length),s=unescape(r.cookie.substring(offset,end))),s)}).config=function(t,e){var i=new Date;i.setTime(+i+31536e6),n(t,e,{expires:i}),location.reload()},n.save=function(t,e){var i=new Date;i.setTime(i+31536e6),n(t,e,{expires:i})}}(jQuery,document),function(){var e,i=!1;mc.share={facebook:function(t){},kakaotalk:function(t,e,i,n,s){try{mc.share.kakao_initializer();var o="action=load_url&url="+encodeURIComponent(t.replace(/http?:\/\/[a-zA-Z0-9\-\.]*/,""));Kakao.Link.sendDefault({objectType:"feed",content:{title:e,imageUrl:i,link:{webUrl:t,mobileWebUrl:t}},buttons:[{title:"웹으로 보기",link:{webUrl:t,mobileWebUrl:t}},{title:"앱으로 보기",link:{webUrl:t,mobileWebUrl:t,iosExecParams:o,androidExecParams:o}}],fail:function(){alert("ì¹´ì¹´ì˜¤í†¡ì´ ì§€ì›ë˜ì§€ 않는 플랫í¼ìž…니다.")}})}catch(r){alert(r)}},set_kakao_key:function(t){e=t},set_facebook_key:function(t){},kakao_initializer:function(){i||$.ajax({url:"/js/0/kakao-1.25.6.min.js",dataType:"script","async":!1,success:function(t){Kakao.init(e),i=!0}})},facebook_initializer:function(){}}}(),function(e,o){var r=e.navigator.userAgent;function a(t){return e.matchMedia?e.matchMedia("(max-device-width: "+t+"px)").matches:(0<e.innerWidth?e.innerWidth:screen.width)<=t}function l(t){var e=document.createElement("link");e.rel="stylesheet",e.href=t,document.getElementsByTagName("head")[0].appendChild(e)}var c=!1;function h(t,e){new RegExp("MSIE [1-"+e+"].[0-9]").test(r)&&l("/chg/"+t+"/ie"+e+".css")}function t(t){var e=new Date;e.setTime(+e+31536e6),mc.cookie("pagemode",t,{expires:e}),location.reload()}mc.device={isSmallPage:function(){return c},isLarge:function(){return!a(640)},isNativeApp:function(){return!(!/missycoupon/i.test(r)||!/(ip(od|ad|hone)|android)/i.test(r))},isAndroidApp:function(){return!(!/missycoupon/i.test(r)||!/android/i.test(r))},isiPhoneApp:function(){return!(!/missycoupon/i.test(r)||!/(iphone)/i.test(r))},isReactApp:function(){return!(!/missycoupon/i.test(r)||!/React/i.test(r))},shouldLoadDarkStyle:function(){var t;return!mc.device.isNativeApp()&&("1"===mc.cookie("theme")?((t=window.matchMedia("(prefers-color-scheme: dark)")).addListener(function(){location.reload(!0)}),t.matches):"3"===mc.cookie("theme"))},loadStyle:function(t,e){function i(t){return"maximum-scale=1.0,minimum-scale=.5,width="+t}var n,s;(c="small"==mc.cookie("pagemode")||"large"!=mc.cookie("pagemode")&&!o.support.nosmall&&(!o.support.desktop||a(640)))&&(n=560,s=o.support.initialLandscape?".5071":"1.0",document.write("<meta name=viewport content='"+"initial-scale="+s+","+i(n)+"'>"),o('meta[name="viewport"]').attr("content",i(n))),l("/chg/"+e+"/"+t+".css"),new RegExp("MSIE").test(r)&&(l("/chg/"+e+"/ie.css"),h(e,9),h(e,8),h(e,7),h(e,6)),window.MSInputMethodContext&&document.documentMode&&l("/chg/"+e+"/ie11.css"),mc.device.shouldLoadDarkStyle()&&l("/chg/"+e+"/dark_mode.css"),c?(l("/chg/"+e+"/small/"+t+".css"),mc.device.isNativeApp()&&l("/chg/"+e+"/nativeapp/"+t+".css")):mc.device.isLarge()&&o.support.desktop||document.write("<style>#mc_bottom_bar{width:990px}#mc_mobile_button{display:block;}</style>")},resetPageMode:function(){t("")},forceSmall:function(){t("small")},forceLarge:function(){t("large")}}}(window,jQuery),function(s){function i(t,e){var i,n={ad_id:t,type:e};!mc.board||"list"!=(i=mc.url.getContentName())&&"view"!=i||(n.board_id=mc.url.getParam("id")),s.ajax({url:"/zero/p/add_ad_stat.php",type:"POST",cache:!1,nocancel:!0,timeout:4100,data:n})}mc.ads={loaded:function(t){i(t,1)},clicked:function(t,e){window.open(e,"_blank"),i(t,2)}}}(jQuery),function(e,n){var i,s=!1,o=!1,r={};function t(){var t,e=$$("select#mc_metro_list",{},{display:"block",margin:"5px auto;"});for(t in r){var i=12==t?{selected:"selected"}:{};e.append($$("option#"+t,i,n.getMetroName(t)))}o=!0,$$("div#mc_set_metro_dialog",$$("div#mc_set_my_metro_ui",$$("div","* 기본 ì„¤ì •ì€ ["+n.getDefaultMetroName()+"]입니다."),$$("div","* ê° ì§€ì—ê²Œì‹œíŒ ì´ë¦„ ì•žì˜ ë³„ ì•„ì´ì½˜ì€ 누르시면<br> ë‚´ì§€ì— ë³€ê²½/í•´ì œê°€ 가능합니다."),$$("div",e))).mcConfirm({titleConfirm:"ë‚´ì§€ì— ì„¤ì •",textOkay:"ì €ìž¥",textCancel:"다ìŒì—하기"},function(){var t=$("#mc_metro_list option:selected").attr("id");n.saveMyMetro(t)},function(){})}n=mc.metro={init:function(t){if($.support.nativeJSON)return s?i.done(t):($(n).one("load",t),i=$.ajax({url:"/chg/"+(e.mver||0)+"/metro_list",nocancel:!0,cache:!0,success:function(t){r=JSON.parse(t),s=!0,$(n).trigger("load")},error:function(t,e,i){mc.alert($.ajaxErrorMessage(t,e,i))}}))},getDefaultMetroName:function(){var t;return s?(t=r[12])===undefined?DEAFULT_METRO_NAME:t.metro_name:n.DEAFULT_METRO_NAME},getMetroName:function(t){var e=r[t];return e===undefined?n.getDefaultMetroName():e.metro_name},getDefaultBoardId:function(){var t;return!s||(t=r[12])===undefined?DEAFULT_BOARD_ID:t.board_id},getBoardId:function(t){var e=r[t];return e===undefined?n.getDefaultBoardId():e.board_id},checkIfMyMetroSet:function(){1==o||0==e.hasLoggedIn()||0<e.metro_id||(s?t():$(n).one("load",t))},setMyMetro:function(t){0==e.hasLoggedIn()?mc.alert("로그ì¸í•œ 사용ìžë§Œ ë‚´ 지ì—ì„ ì„¤ì •í•˜ì‹¤ 수 있습니다."):t==e.metro_id?mc.alert("ì´ë¯¸ ë‚´ 지ì—으로 ì§€ì •ë˜ì—ˆìŠµë‹ˆë‹¤."):mc.confirm("ë‚´ 지ì—ì„ "+n.getMetroName(t)+"ë¡œ(으로) ë³€ê²½í•˜ì‹œê² ìŠµë‹ˆê¹Œ?",function(){n.saveMyMetro(t)})},saveMyMetro:function(t){t!=e.metro_id&&$.ajax({url:"/zero/p/metro_select.php",type:"POST","async":!0,data:{metro_id:t},success:function(){e.metro_id=t,e.metro_name=n.getMetroName(t),e.metro_board_id=n.getBoardId(t),mc.menu.updateMyLocal(),mc.narnav.renderMetroLogo(t)},error:function(t,e,i){mc.alert($.ajaxErrorMessage(t,e,i))}})}}}(mc.myinfo);