/* * Cache JS (UTF-8) * Généré le 18/07/2018 17:50:21 */ (function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement){cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close()}d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border"){for(;e=0===c})}function S(a){return !a||!a.parentNode||a.parentNode.nodeType===11}function K(){return !0}function J(){return !1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b])){continue}if(b!=="toJSON"){return !1}}return !0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else{d=b}}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a){return this}if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2]){return f.find(a)}this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return !d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a)){return f.ready(a)}a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0){return}A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete"){return setTimeout(e.ready,1)}if(c.addEventListener){c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1)}else{if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return !isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a)){return !1}try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf")){return !1}}catch(c){return !1}var d;for(d in a){}return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a){return !1}return !0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b){return null}b=e.trim(b);if(a.JSON&&a.JSON.parse){return a.JSON.parse(b)}if(n.test(b.replace(o,"@").replace(p,"]").replace(q,""))){return(new Function("return "+b))()}e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c){return null}var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a){if(c.apply(a[f],d)===!1){break}}}else{for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k){for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e){return{}}g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent){for(n in {submit:1,change:1,focusin:1}){m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o}}j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
t
",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return !!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b){return}n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function"){e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c)}g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c]){return g.events}k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k]){return}if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a)){return this.each(function(b){f(this).addClass(a.call(this,b,this.className))})}if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1){return !0}}return !1},val:function(a){var c,d,e,g=this[0];if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set" in c)||c.set(this,h,"value")===b){this.value=h}}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get" in c&&(d=c.get(g,"value"))!==b){return d}d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return !b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0){return null}c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn){return f(a)[c](d)}if(typeof a.getAttribute=="undefined"){return f.prop(a,c,d)}i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set" in h&&i&&(g=h.set(a,d,c))!==b){return g}a.setAttribute(c,""+d);return d}if(h&&"get" in h&&i&&(g=h.get(a,c))!==null){return g}g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h]){return}c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j){j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0)}return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1){return}r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode){r.push([m,s]),n=m}n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9){return[]}if(!b||typeof b!="string"){return e}var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b)){if(w.length===2&&o.relative[w[0]]){j=y(w[0]+w[1],d,f)}else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length){b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}}}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length){q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}}else{k=w=[]}}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]"){if(!u){e.push.apply(e,k)}else{if(d&&d.nodeType===1){for(t=0;k[t]!=null;t++){k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t])}}else{for(t=0;k[t]!=null;t++){k[t]&&k[t].nodeType===1&&e.push(j[t])}}}}else{s(k,e)}l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h){for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a){return[]}for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1))}return !1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else{a[2]&&m.error(a[0])}a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not"){if((a.exec(b[3])||"").length>1||/^\w/.test(b[3])){b[3]=m(b[3],null,null,c)}else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return !1}}else{if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0])){return !0}}return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return !!a.firstChild},empty:function(a){return !a.firstChild},has:function(a,b,c){return !!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f){return f(a,c,b,d)}if(e==="contains"){return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0}if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f){return f(a,c,b,d)}}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match){o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q))}o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]"){Array.prototype.push.apply(d,a)}else{if(typeof a.length=="number"){for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++){c[e].nodeType===1&&d.push(c[e])}c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1]){return s(e.getElementsByTagName(b),f)}if(h[2]&&o.find.CLASS&&e.getElementsByClassName){return s(e.getElementsByClassName(h[2]),f)}}if(e.nodeType===9){if(b==="body"&&e.body){return s([e.body],f)}if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode){return s([],f)}if(i.id===h[3]){return s([i],f)}}try{return s(e.querySelectorAll(b),f)}catch(j){}}else{if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p){return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}}catch(r){}finally{l||k.removeAttribute("id")}}}}return a(b,e,f,g)};for(var e in a){m[e]=a[e]}b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a)){try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11){return f}}}catch(g){}}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1){return}o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c){return b.getElementsByClassName(a[1])}},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return !!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return !1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a)){f+=d[0],a=a.replace(o.match.PSEUDO,"")}a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0){for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11){break}}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a){return this[0]&&this[0].parentNode?this.prevAll().length:-1}if(typeof a=="string"){return f.inArray(this[0],f(a))}return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d))){g.nodeType===1&&e.push(g),g=g[c]}return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c]){if(a.nodeType===1&&++e===b){break}}return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling){a.nodeType===1&&a!==b&&c.push(a)}return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
","
"]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a)){return this.each(function(b){f(this).wrapAll(a.call(this,b))})}if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1){a=a.firstChild}return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a)){return this.each(function(b){f(this).wrapInner(a.call(this,b))})}return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)})}if(arguments.length){var a=f.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)})}if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++){if(!a||f.filter(a,[d]).length){!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d)}}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild){b.removeChild(b.firstChild)}}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b){return c.nodeType===1?c.innerHTML.replace(W,""):null}if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g){e[g]&&bk(d[g],e[g])}}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g){bj(d[g],e[g])}}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l){continue}if(typeof l=="string"){if(!_.test(l)){l=b.createTextNode(l)}else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--){p=p.lastChild}if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i){f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}}var u;if(!f.support.appendChecked){if(l[0]&&typeof(u=l.length)=="number"){for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get" in k&&(g=k.get(a,!1,e))!==b){return g}return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d)){return}h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set" in k)||(d=k.set(a,d))!==b){try{j[c]=d}catch(l){}}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get" in g&&(e=g.get(a,!0,d))!==b){return e}if(by){return by(a,c)}},swap:function(a,b,c){var d={},e,f;for(f in b){d[f]=a.style[f],a.style[f]=b[f]}e=c.call(a);for(f in b){a.style[f]=d[f]}return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c){return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})}},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter){return}}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return !f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++){f[a+bx[d]+b]=e[d]||e[d-2]||e[0]}return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR){return bR.apply(this,arguments)}if(!this.length){return this}var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[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","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified")){f.lastModified[k]=y}if(z=v.getResponseHeader("Etag")){f.etag[k]=z}}if(a===304){w="notmodified",o=!0}else{try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}}else{u=w;if(!w||a){w="error",a<0&&(a=0)}}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n)){o[c[1].toLowerCase()]=c[2]}}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2){for(b in a){j[b]=[j[b],a[b]]}}else{b=a[v.status],v.then(b,b)}}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2){return !1}t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers){v.setRequestHeader(u,d.headers[u])}if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return !1}for(u in {success:1,error:1,complete:1}){v[u](d[u])}p=bZ(bT,d,c,v);if(!p){w(-1,"No Transport")}else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2){w(-1,z)}else{throw z}}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a)){f.each(a,function(){e(this.name,this.value)})}else{for(var g in a){b_(g,a[g],c,e)}}return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState)){d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")}},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg){cg[a](0,1)}}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return !this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials" in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields){for(j in c.xhrFields){h[j]=c.xhrFields[j]}}c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e){h.setRequestHeader(j,e[j])}}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e){h.readyState!==4&&h.abort()}else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0){return this.animate(ct("show",3),a,b,c)}for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties){i.animatedProperties[b]!==!0&&(g=!1)}if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show){for(b in i.animatedProperties){f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0)}}d=i.complete,d&&(i.complete=!1,d.call(h))}return !1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return !0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using" in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0]){return null}var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static"){a=a.offsetParent}return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b){return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e]}h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e]){return i[d]}return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window);(function(g,d){function c(l,k){var j,q,m,p=l.nodeName.toLowerCase();return"area"===p?(j=l.parentNode,q=j.name,l.href&&q&&"map"===j.nodeName.toLowerCase()?(m=g("img[usemap=#"+q+"]")[0],!!m&&f(m)):!1):(/input|select|textarea|button|object/.test(p)?!l.disabled:"a"===p?l.href||k:k)&&f(l)}function f(a){return g.expr.filters.visible(a)&&!g(a).parents().addBack().filter(function(){return"hidden"===g.css(this,"visibility")}).length}var b=0,h=/^ui-id-\d+$/;g.ui=g.ui||{},g.extend(g.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),g.fn.extend({focus:function(a){return function(j,k){return"number"==typeof j?this.each(function(){var l=this;setTimeout(function(){g(l).focus(),k&&k.call(l)},j)}):a.apply(this,arguments)}}(g.fn.focus),scrollParent:function(){var a;return a=g.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(g.css(this,"position"))&&/(auto|scroll)/.test(g.css(this,"overflow")+g.css(this,"overflow-y")+g.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(g.css(this,"overflow")+g.css(this,"overflow-y")+g.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!a.length?g(document):a},zIndex:function(k){if(k!==d){return this.css("zIndex",k)}if(this.length){for(var l,j,m=g(this[0]);m.length&&m[0]!==document;){if(l=m.css("position"),("absolute"===l||"relative"===l||"fixed"===l)&&(j=parseInt(m.css("zIndex"),10),!isNaN(j)&&0!==j)){return j}m=m.parent()}}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++b)})},removeUniqueId:function(){return this.each(function(){h.test(this.id)&&g(this).removeAttr("id")})}}),g.extend(g.expr[":"],{data:g.expr.createPseudo?g.expr.createPseudo(function(a){return function(j){return !!g.data(j,a)}}):function(j,a,k){return !!g.data(j,k[3])},focusable:function(a){return c(a,!isNaN(g.attr(a,"tabindex")))},tabbable:function(k){var l=g.attr(k,"tabindex"),j=isNaN(l);return(j||l>=0)&&c(k,!j)}}),g("").outerWidth(1).jquery||g.each(["Width","Height"],function(k,l){function j(r,o,u,n){return g.each(q,function(){o-=parseFloat(g.css(r,"padding"+this))||0,u&&(o-=parseFloat(g.css(r,"border"+this+"Width"))||0),n&&(o-=parseFloat(g.css(r,"margin"+this))||0)}),o}var q="Width"===l?["Left","Right"]:["Top","Bottom"],m=l.toLowerCase(),p={innerWidth:g.fn.innerWidth,innerHeight:g.fn.innerHeight,outerWidth:g.fn.outerWidth,outerHeight:g.fn.outerHeight};g.fn["inner"+l]=function(a){return a===d?p["inner"+l].call(this):this.each(function(){g(this).css(m,j(this,a)+"px")})},g.fn["outer"+l]=function(n,a){return"number"!=typeof n?p["outer"+l].call(this,n):this.each(function(){g(this).css(m,j(this,n,!0,a)+"px")})}}),g.fn.addBack||(g.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}),g("").data("a-b","a").removeData("a-b").data("a-b")&&(g.fn.removeData=function(a){return function(j){return arguments.length?a.call(this,g.camelCase(j)):a.call(this)}}(g.fn.removeData)),g.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),g.support.selectstart="onselectstart" in document.createElement("div"),g.fn.extend({disableSelection:function(){return this.bind((g.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),g.extend(g.ui,{plugin:{add:function(l,k,m){var j,o=g.ui[l].prototype;for(j in m){o.plugins[j]=o.plugins[j]||[],o.plugins[j].push([k,m[j]])}},call:function(n,l,k){var m,j=n.plugins[l];if(j&&n.element[0].parentNode&&11!==n.element[0].parentNode.nodeType){for(m=0;j.length>m;m++){n.options[j[m][0]]&&j[m][1].apply(n.element,k)}}}},hasScroll:function(l,k){if("hidden"===g(l).css("overflow")){return !1}var m=k&&"left"===k?"scrollLeft":"scrollTop",j=!1;return l[m]>0?!0:(l[m]=1,j=l[m]>0,l[m]=0,j)}})})(jQuery);(function(d,b){var a=0,c=Array.prototype.slice,f=d.cleanData;d.cleanData=function(j){for(var h,k=0;null!=(h=j[k]);k++){try{d(h).triggerHandler("remove")}catch(g){}}f(j)},d.widget=function(p,w,k){var t,g,j,q,m={},v=p.split(".")[0];p=p.split(".")[1],t=v+"-"+p,k||(k=w,w=d.Widget),d.expr[":"][t.toLowerCase()]=function(h){return !!d.data(h,t)},d[v]=d[v]||{},g=d[v][p],j=d[v][p]=function(l,h){return this._createWidget?(arguments.length&&this._createWidget(l,h),b):new j(l,h)},d.extend(j,g,{version:k.version,_proto:d.extend({},k),_childConstructors:[]}),q=new w,q.options=d.widget.extend({},q.options),d.each(k,function(h,l){return d.isFunction(l)?(m[h]=function(){var o=function(){return w.prototype[h].apply(this,arguments)},n=function(r){return w.prototype[h].apply(this,r)};return function(){var u,x=this._super,r=this._superApply;return this._super=o,this._superApply=n,u=l.apply(this,arguments),this._super=x,this._superApply=r,u}}(),b):(m[h]=l,b)}),j.prototype=d.widget.extend(q,{widgetEventPrefix:g?q.widgetEventPrefix:p},m,{constructor:j,namespace:v,widgetName:p,widgetFullName:t}),g?(d.each(g._childConstructors,function(l,h){var n=h.prototype;d.widget(n.namespace+"."+n.widgetName,j,h._proto)}),delete g._childConstructors):w._childConstructors.push(j),d.widget.bridge(p,j)},d.widget.extend=function(j){for(var p,g,l=c.call(arguments,1),m=0,k=l.length;k>m;m++){for(p in l[m]){g=l[m][p],l[m].hasOwnProperty(p)&&g!==b&&(j[p]=d.isPlainObject(g)?d.isPlainObject(j[p])?d.widget.extend({},j[p],g):d.widget.extend({},g):g)}}return j},d.widget.bridge=function(h,j){var g=j.prototype.widgetFullName||h;d.fn[h]=function(n){var p="string"==typeof n,m=c.call(arguments,1),k=this;return n=!p&&m.length?d.widget.extend.apply(null,[n].concat(m)):n,p?this.each(function(){var l,o=d.data(this,g);return o?d.isFunction(o[n])&&"_"!==n.charAt(0)?(l=o[n].apply(o,m),l!==o&&l!==b?(k=l&&l.jquery?k.pushStack(l.get()):l,!1):b):d.error("no such method '"+n+"' for "+h+" widget instance"):d.error("cannot call methods on "+h+" prior to initialization; attempted to call method '"+n+"'")}):this.each(function(){var l=d.data(this,g);l?l.option(n||{})._init():d.data(this,g,new j(n,this))}),k}},d.Widget=function(){},d.Widget._childConstructors=[],d.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"
",options:{disabled:!1,create:null},_createWidget:function(g,h){h=d(h||this.defaultElement||this)[0],this.element=d(h),this.uuid=a++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=d.widget.extend({},this.options,this._getCreateOptions(),g),this.bindings=d(),this.hoverable=d(),this.focusable=d(),h!==this&&(d.data(h,this.widgetFullName,this),this._on(!0,this.element,{remove:function(j){j.target===h&&this.destroy()}}),this.document=d(h.style?h.ownerDocument:h.document||h),this.window=d(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:d.noop,_getCreateEventData:d.noop,_create:d.noop,_init:d.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(d.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:d.noop,widget:function(){return this.element},option:function(h,j){var m,g,k,l=h;if(0===arguments.length){return d.widget.extend({},this.options)}if("string"==typeof h){if(l={},m=h.split("."),h=m.shift(),m.length){for(g=l[h]=d.widget.extend({},this.options[h]),k=0;m.length-1>k;k++){g[m[k]]=g[m[k]]||{},g=g[m[k]]}if(h=m.pop(),j===b){return g[h]===b?null:g[h]}g[h]=j}else{if(j===b){return this.options[h]===b?null:this.options[h]}l[h]=j}}return this._setOptions(l),this},_setOptions:function(h){var g;for(g in h){this._setOption(g,h[g])}return this},_setOption:function(h,g){return this.options[h]=g,"disabled"===h&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!g).attr("aria-disabled",g),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(h,j,l){var g,k=this;"boolean"!=typeof h&&(l=j,j=h,h=!1),l?(j=g=d(j),this.bindings=this.bindings.add(j)):(l=j,j=this.element,g=this.widget()),d.each(l,function(t,r){function q(){return h||k.options.disabled!==!0&&!d(this).hasClass("ui-state-disabled")?("string"==typeof r?k[r]:r).apply(k,arguments):b}"string"!=typeof r&&(q.guid=r.guid=r.guid||q.guid||d.guid++);var m=t.match(/^(\w+)\s*(.*)$/),p=m[1]+k.eventNamespace,s=m[2];s?g.delegate(s,p,q):j.bind(p,q)})},_off:function(h,g){g=(g||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,h.unbind(g).undelegate(g)},_delay:function(k,h){function g(){return("string"==typeof k?j[k]:k).apply(j,arguments)}var j=this;return setTimeout(g,h||0)},_hoverable:function(g){this.hoverable=this.hoverable.add(g),this._on(g,{mouseenter:function(h){d(h.currentTarget).addClass("ui-state-hover")},mouseleave:function(h){d(h.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(g){this.focusable=this.focusable.add(g),this._on(g,{focusin:function(h){d(h.currentTarget).addClass("ui-state-focus")},focusout:function(h){d(h.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(j,h,k){var m,g,l=this.options[j];if(k=k||{},h=d.Event(h),h.type=(j===this.widgetEventPrefix?j:this.widgetEventPrefix+j).toLowerCase(),h.target=this.element[0],g=h.originalEvent){for(m in g){m in h||(h[m]=g[m])}}return this.element.trigger(h,k),!(d.isFunction(l)&&l.apply(this.element[0],[h].concat(k))===!1||h.isDefaultPrevented())}},d.each({show:"fadeIn",hide:"fadeOut"},function(h,g){d.Widget.prototype["_"+h]=function(k,p,j){"string"==typeof p&&(p={effect:p});var l,m=p?p===!0||"number"==typeof p?g:p.effect||g:h;p=p||{},"number"==typeof p&&(p={duration:p}),l=!d.isEmptyObject(p),p.complete=j,p.delay&&k.delay(p.delay),l&&d.effects&&d.effects.effect[m]?k[h](p):m!==h&&k[m]?k[m](p.duration,p.easing,j):k.queue(function(n){d(this)[h](),j&&j.call(k[0]),n()})}})})(jQuery);(function(b){var a=!1;b(document).mouseup(function(){a=!1}),b.widget("ui.mouse",{version:"1.10.3",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var c=this;this.element.bind("mousedown."+this.widgetName,function(d){return c._mouseDown(d)}).bind("click."+this.widgetName,function(d){return !0===b.data(d.target,c.widgetName+".preventClickEvent")?(b.removeData(d.target,c.widgetName+".preventClickEvent"),d.stopImmediatePropagation(),!1):undefined}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(d){if(!a){this._mouseStarted&&this._mouseUp(d),this._mouseDownEvent=d;var f=this,g=1===d.which,c="string"==typeof this.options.cancel&&d.target.nodeName?b(d.target).closest(this.options.cancel).length:!1;return g&&!c&&this._mouseCapture(d)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){f.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(d)&&this._mouseDelayMet(d)&&(this._mouseStarted=this._mouseStart(d)!==!1,!this._mouseStarted)?(d.preventDefault(),!0):(!0===b.data(d.target,this.widgetName+".preventClickEvent")&&b.removeData(d.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(h){return f._mouseMove(h)},this._mouseUpDelegate=function(h){return f._mouseUp(h)},b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),d.preventDefault(),a=!0,!0)):!0}},_mouseMove:function(c){return b.ui.ie&&(!document.documentMode||9>document.documentMode)&&!c.button?this._mouseUp(c):this._mouseStarted?(this._mouseDrag(c),c.preventDefault()):(this._mouseDistanceMet(c)&&this._mouseDelayMet(c)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,c)!==!1,this._mouseStarted?this._mouseDrag(c):this._mouseUp(c)),!this._mouseStarted)},_mouseUp:function(c){return b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,c.target===this._mouseDownEvent.target&&b.data(c.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(c)),!1},_mouseDistanceMet:function(c){return Math.max(Math.abs(this._mouseDownEvent.pageX-c.pageX),Math.abs(this._mouseDownEvent.pageY-c.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return !0}})})(jQuery);(function(C,x){function q(c,d,a){return[parseFloat(c[0])*(g.test(c[0])?d/100:1),parseFloat(c[1])*(g.test(c[1])?a/100:1)]}function D(c,a){return parseInt(C.css(c,a),10)||0}function k(c){var a=c[0];return 9===a.nodeType?{width:c.width(),height:c.height(),offset:{top:0,left:0}}:C.isWindow(a)?{width:c.width(),height:c.height(),offset:{top:c.scrollTop(),left:c.scrollLeft()}}:a.preventDefault?{width:0,height:0,offset:{top:a.pageY,left:a.pageX}}:{width:c.outerWidth(),height:c.outerHeight(),offset:c.offset()}}C.ui=C.ui||{};var A,j=Math.max,b=Math.abs,v=Math.round,m=/left|center|right/,z=/top|center|bottom/,B=/[\+\-]\d+(\.[\d]+)?%?/,y=/^\w+/,g=/%$/,w=C.fn.position;C.position={scrollbarWidth:function(){if(A!==x){return A}var a,c,f=C("
"),d=f.children()[0];return C("body").append(f),a=d.offsetWidth,f.css("overflow","scroll"),c=d.offsetWidth,a===c&&(c=f[0].clientWidth),f.remove(),A=a-c},getScrollInfo:function(h){var d=h.isWindow?"":h.element.css("overflow-x"),f=h.isWindow?"":h.element.css("overflow-y"),l="scroll"===d||"auto"===d&&h.widthS?"left":P>0?"right":"center",vertical:0>M?"top":T>0?"bottom":"middle"};O>c&&c>b(P+S)&&(R.horizontal="center"),K>d&&d>b(T+M)&&(R.vertical="middle"),R.important=j(b(P),b(S))>j(b(T),b(M))?"horizontal":"vertical",l.using.call(this,Q,R)}),L.offset(C.extend(p,{using:G}))})},C.ui.position={fit:{left:function(F,u){var o,G=u.within,d=G.isWindow?G.scrollLeft:G.offset.left,E=G.width,c=F.left-u.collisionPosition.marginLeft,p=d-c,f=c+u.collisionWidth-E-d;u.collisionWidth>E?p>0&&0>=f?(o=F.left+p+u.collisionWidth-E-d,F.left+=p-o):F.left=f>0&&0>=p?d:p>f?d+E-u.collisionWidth:d:p>0?F.left+=p:f>0?F.left-=f:F.left=j(F.left-c,F.left)},top:function(F,u){var o,G=u.within,d=G.isWindow?G.scrollTop:G.offset.top,E=u.within.height,c=F.top-u.collisionPosition.marginTop,p=d-c,f=c+u.collisionHeight-E-d;u.collisionHeight>E?p>0&&0>=f?(o=F.top+p+u.collisionHeight-E-d,F.top+=p-o):F.top=f>0&&0>=p?d:p>f?d+E-u.collisionHeight:d:p>0?F.top+=p:f>0?F.top-=f:F.top=j(F.top-c,F.top)}},flip:{left:function(P,K){var H,Q,F=K.within,N=F.offset.left+F.scrollLeft,E=F.width,I=F.isWindow?F.scrollLeft:F.offset.left,G=P.left-K.collisionPosition.marginLeft,M=G-I,O=G+K.collisionWidth-E-I,L="left"===K.my[0]?-K.elemWidth:"right"===K.my[0]?K.elemWidth:0,r="left"===K.at[0]?K.targetWidth:"right"===K.at[0]?-K.targetWidth:0,J=-2*K.offset[0];0>M?(H=P.left+L+r+J+K.collisionWidth-E-N,(0>H||b(M)>H)&&(P.left+=L+r+J)):O>0&&(Q=P.left-K.collisionPosition.marginLeft+L+r+J-I,(Q>0||O>b(Q))&&(P.left+=L+r+J))},top:function(Q,L){var I,R,F=L.within,O=F.offset.top+F.scrollTop,E=F.height,J=F.isWindow?F.scrollTop:F.offset.top,H=Q.top-L.collisionPosition.marginTop,N=H-J,P=H+L.collisionHeight-E-J,M="top"===L.my[1],r=M?-L.elemHeight:"bottom"===L.my[1]?L.elemHeight:0,K="top"===L.at[1]?L.targetHeight:"bottom"===L.at[1]?-L.targetHeight:0,G=-2*L.offset[1];0>N?(R=Q.top+r+K+G+L.collisionHeight-E-O,Q.top+r+K+G>N&&(0>R||b(N)>R)&&(Q.top+=r+K+G)):P>0&&(I=Q.top-L.collisionPosition.marginTop+r+K+G-J,Q.top+r+K+G>P&&(I>0||P>b(I))&&(Q.top+=r+K+G))}},flipfit:{left:function(){C.ui.position.flip.left.apply(this,arguments),C.ui.position.fit.left.apply(this,arguments)},top:function(){C.ui.position.flip.top.apply(this,arguments),C.ui.position.fit.top.apply(this,arguments)}}},function(){var l,d,f,t,c,p=document.getElementsByTagName("body")[0],h=document.createElement("div");l=document.createElement(p?"div":"body"),f={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},p&&C.extend(f,{position:"absolute",left:"-1000px",top:"-1000px"});for(c in f){l.style[c]=f[c]}l.appendChild(h),d=p||document.documentElement,d.insertBefore(l,d.firstChild),h.style.cssText="position: absolute; left: 10.7432222px;",t=C(h).offset().left,C.support.offsetFractions=t>10&&11>t,l.innerHTML="",d.removeChild(l)}()})(jQuery);(function(a){a.widget("ui.draggable",a.ui.mouse,{version:"1.10.3",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||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(c){var b=this.options;return this.helper||b.disabled||a(c.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(c),this.handle?(a(b.iframeFix===!0?"iframe":b.iframeFix).each(function(){a("
").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(a(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(c){var b=this.options;return this.helper=this._createHelper(c),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),a.ui.ddmanager&&(a.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,a.extend(this.offset,{click:{left:c.pageX-this.offset.left,top:c.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(c),this.originalPageX=c.pageX,this.originalPageY=c.pageY,b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt),this._setContainment(),this._trigger("start",c)===!1?(this._clear(),!1):(this._cacheHelperProportions(),a.ui.ddmanager&&!b.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,c),this._mouseDrag(c,!0),a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,c),!0)},_mouseDrag:function(c,b){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(c),this.positionAbs=this._convertPositionTo("absolute"),!b){var d=this._uiHash();if(this._trigger("drag",c,d)===!1){return this._mouseUp({}),!1}this.position=d.position}return 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"),a.ui.ddmanager&&a.ui.ddmanager.drag(this,c),!1},_mouseStop:function(c){var b=this,d=!1;return a.ui.ddmanager&&!this.options.dropBehaviour&&(d=a.ui.ddmanager.drop(this,c)),this.dropped&&(d=this.dropped,this.dropped=!1),"original"!==this.options.helper||a.contains(this.element[0].ownerDocument,this.element[0])?("invalid"===this.options.revert&&!d||"valid"===this.options.revert&&d||this.options.revert===!0||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d)?a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){b._trigger("stop",c)!==!1&&b._clear()}):this._trigger("stop",c)!==!1&&this._clear(),!1):!1},_mouseUp:function(b){return a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,b),a.ui.mouse.prototype._mouseUp.call(this,b)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(b){return this.options.handle?!!a(b.target).closest(this.element.find(this.options.handle)).length:!0},_createHelper:function(c){var b=this.options,d=a.isFunction(b.helper)?a(b.helper.apply(this.element[0],[c])):"clone"===b.helper?this.element.clone().removeAttr("id"):this.element;return d.parents("body").length||d.appendTo("parent"===b.appendTo?this.element[0].parentNode:b.appendTo),d[0]===this.element[0]||/(fixed|absolute)/.test(d.css("position"))||d.css("position","absolute"),d},_adjustOffsetFromHelper:function(b){"string"==typeof b&&(b=b.split(" ")),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),"left" in b&&(this.offset.click.left=b.left+this.margins.left),"right" in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),"top" in b&&(this.offset.click.top=b.top+this.margins.top),"bottom" in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){var b=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&a.ui.ie)&&(b={top:0,left:0}),{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var b=this.element.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_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 c,b,d,f=this.options;return f.containment?"window"===f.containment?(this.containment=[a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,a(window).scrollLeft()+a(window).width()-this.helperProportions.width-this.margins.left,a(window).scrollTop()+(a(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],undefined):"document"===f.containment?(this.containment=[0,0,a(document).width()-this.helperProportions.width-this.margins.left,(a(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],undefined):f.containment.constructor===Array?(this.containment=f.containment,undefined):("parent"===f.containment&&(f.containment=this.helper[0].parentNode),b=a(f.containment),d=b[0],d&&(c="hidden"!==b.css("overflow"),this.containment=[(parseInt(b.css("borderLeftWidth"),10)||0)+(parseInt(b.css("paddingLeft"),10)||0),(parseInt(b.css("borderTopWidth"),10)||0)+(parseInt(b.css("paddingTop"),10)||0),(c?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(b.css("borderRightWidth"),10)||0)-(parseInt(b.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(c?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(b.css("borderBottomWidth"),10)||0)-(parseInt(b.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=b),undefined):(this.containment=null,undefined)},_convertPositionTo:function(c,b){b||(b=this.position);var d="absolute"===c?1:-1,f="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:f.scrollTop(),left:f.scrollLeft()}),{top:b.top+this.offset.relative.top*d+this.offset.parent.top*d-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*d,left:b.left+this.offset.relative.left*d+this.offset.parent.left*d-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*d}},_generatePosition:function(m){var g,p,d,k,c=this.options,b="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,j=m.pageX,f=m.pageY;return this.offset.scroll||(this.offset.scroll={top:b.scrollTop(),left:b.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(p=this.relative_container.offset(),g=[this.containment[0]+p.left,this.containment[1]+p.top,this.containment[2]+p.left,this.containment[3]+p.top]):g=this.containment,m.pageX-this.offset.click.leftg[2]&&(j=g[2]+this.offset.click.left),m.pageY-this.offset.click.top>g[3]&&(f=g[3]+this.offset.click.top)),c.grid&&(d=c.grid[1]?this.originalPageY+Math.round((f-this.originalPageY)/c.grid[1])*c.grid[1]:this.originalPageY,f=g?d-this.offset.click.top>=g[1]||d-this.offset.click.top>g[3]?d:d-this.offset.click.top>=g[1]?d-c.grid[1]:d+c.grid[1]:d,k=c.grid[0]?this.originalPageX+Math.round((j-this.originalPageX)/c.grid[0])*c.grid[0]:this.originalPageX,j=g?k-this.offset.click.left>=g[0]||k-this.offset.click.left>g[2]?k:k-this.offset.click.left>=g[0]?k-c.grid[0]:k+c.grid[0]:k)),{top:f-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:j-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(c,b,d){return d=d||this._uiHash(),a.ui.plugin.call(this,c,[b,d]),"drag"===c&&(this.positionAbs=this._convertPositionTo("absolute")),a.Widget.prototype._trigger.call(this,c,b,d)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),a.ui.plugin.add("draggable","connectToSortable",{start:function(d,c){var f=a(this).data("ui-draggable"),g=f.options,b=a.extend({},c,{item:f.element});f.sortables=[],a(g.connectToSortable).each(function(){var h=a.data(this,"ui-sortable");h&&!h.options.disabled&&(f.sortables.push({instance:h,shouldRevert:h.options.revert}),h.refreshPositions(),h._trigger("activate",d,b))})},stop:function(c,b){var d=a(this).data("ui-draggable"),f=a.extend({},b,{item:d.element});a.each(d.sortables,function(){this.instance.isOver?(this.instance.isOver=0,d.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(c),this.instance.options.helper=this.instance.options._helper,"original"===d.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",c,f))})},drag:function(c,b){var d=a(this).data("ui-draggable"),f=this;a.each(d.sortables,function(){var g=!1,h=this;this.instance.positionAbs=d.positionAbs,this.instance.helperProportions=d.helperProportions,this.instance.offset.click=d.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(g=!0,a.each(d.sortables,function(){return this.instance.positionAbs=d.positionAbs,this.instance.helperProportions=d.helperProportions,this.instance.offset.click=d.offset.click,this!==h&&this.instance._intersectsWith(this.instance.containerCache)&&a.contains(h.instance.element[0],this.instance.element[0])&&(g=!1),g})),g?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=a(f).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return b.helper[0]},c.target=this.instance.currentItem[0],this.instance._mouseCapture(c,!0),this.instance._mouseStart(c,!0,!0),this.instance.offset.click.top=d.offset.click.top,this.instance.offset.click.left=d.offset.click.left,this.instance.offset.parent.left-=d.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=d.offset.parent.top-this.instance.offset.parent.top,d._trigger("toSortable",c),d.dropped=this.instance.element,d.currentItem=d.element,this.instance.fromOutside=d),this.instance.currentItem&&this.instance._mouseDrag(c)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",c,this.instance._uiHash(this.instance)),this.instance._mouseStop(c,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),d._trigger("fromSortable",c),d.dropped=!1)})}}),a.ui.plugin.add("draggable","cursor",{start:function(){var c=a("body"),b=a(this).data("ui-draggable").options;c.css("cursor")&&(b._cursor=c.css("cursor")),c.css("cursor",b.cursor)},stop:function(){var b=a(this).data("ui-draggable").options;b._cursor&&a("body").css("cursor",b._cursor)}}),a.ui.plugin.add("draggable","opacity",{start:function(c,b){var d=a(b.helper),f=a(this).data("ui-draggable").options;d.css("opacity")&&(f._opacity=d.css("opacity")),d.css("opacity",f.opacity)},stop:function(c,b){var d=a(this).data("ui-draggable").options;d._opacity&&a(b.helper).css("opacity",d._opacity)}}),a.ui.plugin.add("draggable","scroll",{start:function(){var b=a(this).data("ui-draggable");b.scrollParent[0]!==document&&"HTML"!==b.scrollParent[0].tagName&&(b.overflowOffset=b.scrollParent.offset())},drag:function(c){var b=a(this).data("ui-draggable"),d=b.options,f=!1;b.scrollParent[0]!==document&&"HTML"!==b.scrollParent[0].tagName?(d.axis&&"x"===d.axis||(b.overflowOffset.top+b.scrollParent[0].offsetHeight-c.pageY=0;K--){z=A.snapElements[K].left,G=z+A.snapElements[K].width,E=A.snapElements[K].top,q=E+A.snapElements[K].height,z-D>k||H>G+D||E-D>j||L>q+D||!a.contains(A.snapElements[K].item.ownerDocument,A.snapElements[K].item)?(A.snapElements[K].snapping&&A.options.snap.release&&A.options.snap.release.call(A.element,w,a.extend(A._uiHash(),{snapItem:A.snapElements[K].item})),A.snapElements[K].snapping=!1):("inner"!==I.snapMode&&(x=D>=Math.abs(E-j),C=D>=Math.abs(q-L),M=D>=Math.abs(z-k),B=D>=Math.abs(G-H),x&&(F.position.top=A._convertPositionTo("relative",{top:E-A.helperProportions.height,left:0}).top-A.margins.top),C&&(F.position.top=A._convertPositionTo("relative",{top:q,left:0}).top-A.margins.top),M&&(F.position.left=A._convertPositionTo("relative",{top:0,left:z-A.helperProportions.width}).left-A.margins.left),B&&(F.position.left=A._convertPositionTo("relative",{top:0,left:G}).left-A.margins.left)),J=x||C||M||B,"outer"!==I.snapMode&&(x=D>=Math.abs(E-L),C=D>=Math.abs(q-j),M=D>=Math.abs(z-H),B=D>=Math.abs(G-k),x&&(F.position.top=A._convertPositionTo("relative",{top:E,left:0}).top-A.margins.top),C&&(F.position.top=A._convertPositionTo("relative",{top:q-A.helperProportions.height,left:0}).top-A.margins.top),M&&(F.position.left=A._convertPositionTo("relative",{top:0,left:z}).left-A.margins.left),B&&(F.position.left=A._convertPositionTo("relative",{top:0,left:G-A.helperProportions.width}).left-A.margins.left)),!A.snapElements[K].snapping&&(x||C||M||B||J)&&A.options.snap.snap&&A.options.snap.snap.call(A.element,w,a.extend(A._uiHash(),{snapItem:A.snapElements[K].item})),A.snapElements[K].snapping=x||C||M||B||J)}}}),a.ui.plugin.add("draggable","stack",{start:function(){var c,b=this.data("ui-draggable").options,d=a.makeArray(a(b.stack)).sort(function(g,f){return(parseInt(a(g).css("zIndex"),10)||0)-(parseInt(a(f).css("zIndex"),10)||0)});d.length&&(c=parseInt(a(d[0]).css("zIndex"),10)||0,a(d).each(function(f){a(this).css("zIndex",c+f)}),this.css("zIndex",c+d.length))}}),a.ui.plugin.add("draggable","zIndex",{start:function(c,b){var d=a(b.helper),f=a(this).data("ui-draggable").options;d.css("zIndex")&&(f._zIndex=d.css("zIndex")),d.css("zIndex",f.zIndex)},stop:function(c,b){var d=a(this).data("ui-draggable").options;d._zIndex&&a(b.helper).css("zIndex",d._zIndex)}})})(jQuery);(function(b){function a(f,d,c){return f>d&&d+c>f}b.widget("ui.droppable",{version:"1.10.3",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var d=this.options,c=d.accept;this.isover=!1,this.isout=!0,this.accept=b.isFunction(c)?c:function(f){return f.is(c)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},b.ui.ddmanager.droppables[d.scope]=b.ui.ddmanager.droppables[d.scope]||[],b.ui.ddmanager.droppables[d.scope].push(this),d.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var d=0,c=b.ui.ddmanager.droppables[this.options.scope];c.length>d;d++){c[d]===this&&c.splice(d,1)}this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(d,c){"accept"===d&&(this.accept=b.isFunction(c)?c:function(f){return f.is(c)}),b.Widget.prototype._setOption.apply(this,arguments)},_activate:function(d){var c=b.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),c&&this._trigger("activate",d,this.ui(c))},_deactivate:function(d){var c=b.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),c&&this._trigger("deactivate",d,this.ui(c))},_over:function(d){var c=b.ui.ddmanager.current;c&&(c.currentItem||c.element)[0]!==this.element[0]&&this.accept.call(this.element[0],c.currentItem||c.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",d,this.ui(c)))},_out:function(d){var c=b.ui.ddmanager.current;c&&(c.currentItem||c.element)[0]!==this.element[0]&&this.accept.call(this.element[0],c.currentItem||c.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",d,this.ui(c)))},_drop:function(d,c){var f=c||b.ui.ddmanager.current,g=!1;return f&&(f.currentItem||f.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var h=b.data(this,"ui-droppable");return h.options.greedy&&!h.options.disabled&&h.options.scope===f.options.scope&&h.accept.call(h.element[0],f.currentItem||f.element)&&b.ui.intersect(f,b.extend(h,{offset:h.element.offset()}),h.options.tolerance)?(g=!0,!1):undefined}),g?!1:this.accept.call(this.element[0],f.currentItem||f.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",d,this.ui(f)),this.element):!1):!1},ui:function(c){return{draggable:c.currentItem||c.element,helper:c.helper,position:c.position,offset:c.positionAbs}}}),b.ui.intersect=function(v,q,A){if(!q.offset){return !1}var k,y,j=(v.positionAbs||v.position.absolute).left,f=j+v.helperProportions.width,t=(v.positionAbs||v.position.absolute).top,m=t+v.helperProportions.height,z=q.offset.left,x=z+q.proportions.width,w=q.offset.top,g=w+q.proportions.height;switch(A){case"fit":return j>=z&&x>=f&&t>=w&&g>=m;case"intersect":return j+v.helperProportions.width/2>z&&x>f-v.helperProportions.width/2&&t+v.helperProportions.height/2>w&&g>m-v.helperProportions.height/2;case"pointer":return k=(v.positionAbs||v.position.absolute).left+(v.clickOffset||v.offset.click).left,y=(v.positionAbs||v.position.absolute).top+(v.clickOffset||v.offset.click).top,a(y,w,q.proportions.height)&&a(k,z,q.proportions.width);case"touch":return(t>=w&&g>=t||m>=w&&g>=m||w>t&&m>g)&&(j>=z&&x>=j||f>=z&&x>=f||z>j&&f>x);default:return !1}},b.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(f,d){var g,k,c=b.ui.ddmanager.droppables[f.options.scope]||[],j=d?d.type:null,h=(f.currentItem||f.element).find(":data(ui-droppable)").addBack();b:for(g=0;c.length>g;g++){if(!(c[g].options.disabled||f&&!c[g].accept.call(c[g].element[0],f.currentItem||f.element))){for(k=0;h.length>k;k++){if(h[k]===c[g].element[0]){c[g].proportions.height=0;continue b}}c[g].visible="none"!==c[g].element.css("display"),c[g].visible&&("mousedown"===j&&c[g]._activate.call(c[g],d),c[g].offset=c[g].element.offset(),c[g].proportions={width:c[g].element[0].offsetWidth,height:c[g].element[0].offsetHeight})}}},drop:function(d,c){var f=!1;return b.each((b.ui.ddmanager.droppables[d.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&b.ui.intersect(d,this,this.options.tolerance)&&(f=this._drop.call(this,c)||f),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],d.currentItem||d.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,c)))}),f},dragStart:function(d,c){d.element.parentsUntil("body").bind("scroll.droppable",function(){d.options.refreshPositions||b.ui.ddmanager.prepareOffsets(d,c)})},drag:function(d,c){d.options.refreshPositions&&b.ui.ddmanager.prepareOffsets(d,c),b.each(b.ui.ddmanager.droppables[d.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var g,k,f,j=b.ui.intersect(d,this,this.options.tolerance),h=!j&&this.isover?"isout":j&&!this.isover?"isover":null;h&&(this.options.greedy&&(k=this.options.scope,f=this.element.parents(":data(ui-droppable)").filter(function(){return b.data(this,"ui-droppable").options.scope===k}),f.length&&(g=b.data(f[0],"ui-droppable"),g.greedyChild="isover"===h)),g&&"isover"===h&&(g.isover=!1,g.isout=!0,g._out.call(g,c)),this[h]=!0,this["isout"===h?"isover":"isout"]=!1,this["isover"===h?"_over":"_out"].call(this,c),g&&"isout"===h&&(g.isout=!1,g.isover=!0,g._over.call(g,c)))}})},dragStop:function(d,c){d.element.parentsUntil("body").unbind("scroll.droppable"),d.options.refreshPositions||b.ui.ddmanager.prepareOffsets(d,c)}}})(jQuery);(function(c){function b(d){return parseInt(d,10)||0}function a(d){return !isNaN(parseInt(d,10))}c.widget("ui.resizable",c.ui.mouse,{version:"1.10.3",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,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},_create:function(){var g,f,h,l,d,k=this,j=this.options;if(this.element.addClass("ui-resizable"),c.extend(this,{_aspectRatio:!!j.aspectRatio,aspectRatio:j.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:j.helper||j.ghost||j.animate?j.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(c("
").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.data("ui-resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom: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({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=j.handles||(c(".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.constructor===String){for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),g=this.handles.split(","),this.handles={},f=0;g.length>f;f++){h=c.trim(g[f]),d="ui-resizable-"+h,l=c("
"),l.css({zIndex:j.zIndex}),"se"===h&&l.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[h]=".ui-resizable-"+h,this.element.append(l)}}this._renderAxis=function(p){var o,q,r,m;p=p||this.element;for(o in this.handles){this.handles[o].constructor===String&&(this.handles[o]=c(this.handles[o],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(q=c(this.handles[o],this.element),m=/sw|ne|nw|se|n|s/.test(o)?q.outerHeight():q.outerWidth(),r=["padding",/ne|nw|n/.test(o)?"Top":/se|sw|s/.test(o)?"Bottom":/^e$/.test(o)?"Right":"Left"].join(""),p.css(r,m),this._proportionallyResize()),c(this.handles[o]).length}},this._renderAxis(this.element),this._handles=c(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){k.resizing||(this.className&&(l=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),k.axis=l&&l[1]?l[1]:"se")}),j.autoHide&&(this._handles.hide(),c(this.element).addClass("ui-resizable-autohide").mouseenter(function(){j.disabled||(c(this).removeClass("ui-resizable-autohide"),k._handles.show())}).mouseleave(function(){j.disabled||k.resizing||(c(this).addClass("ui-resizable-autohide"),k._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var f,d=function(g){c(g).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(d(this.element),f=this.element,this.originalElement.css({position:f.css("position"),width:f.outerWidth(),height:f.outerHeight(),top:f.css("top"),left:f.css("left")}).insertAfter(f),f.remove()),this.originalElement.css("resize",this.originalResizeStyle),d(this.originalElement),this},_mouseCapture:function(f){var d,g,h=!1;for(d in this.handles){g=c(this.handles[d])[0],(g===f.target||c.contains(g,f.target))&&(h=!0)}return !this.options.disabled&&h},_mouseStart:function(f){var j,m,d,l=this.options,k=this.element.position(),g=this.element;return this.resizing=!0,/absolute/.test(g.css("position"))?g.css({position:"absolute",top:g.css("top"),left:g.css("left")}):g.is(".ui-draggable")&&g.css({position:"absolute",top:k.top,left:k.left}),this._renderProxy(),j=b(this.helper.css("left")),m=b(this.helper.css("top")),l.containment&&(j+=c(l.containment).scrollLeft()||0,m+=c(l.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:j,top:m},this.size=this._helper?{width:g.outerWidth(),height:g.outerHeight()}:{width:g.width(),height:g.height()},this.originalSize=this._helper?{width:g.outerWidth(),height:g.outerHeight()}:{width:g.width(),height:g.height()},this.originalPosition={left:j,top:m},this.sizeDiff={width:g.outerWidth()-g.width(),height:g.outerHeight()-g.height()},this.originalMousePosition={left:f.pageX,top:f.pageY},this.aspectRatio="number"==typeof l.aspectRatio?l.aspectRatio:this.originalSize.width/this.originalSize.height||1,d=c(".ui-resizable-"+this.axis).css("cursor"),c("body").css("cursor","auto"===d?this.axis+"-resize":d),g.addClass("ui-resizable-resizing"),this._propagate("start",f),!0},_mouseDrag:function(A){var q,B=this.helper,k={},y=this.originalMousePosition,j=this.axis,f=this.position.top,v=this.position.left,m=this.size.width,z=this.size.height,x=A.pageX-y.left||0,w=A.pageY-y.top||0,g=this._change[j];return g?(q=g.apply(this,[A,x,w]),this._updateVirtualBoundaries(A.shiftKey),(this._aspectRatio||A.shiftKey)&&(q=this._updateRatio(q,A)),q=this._respectSize(q,A),this._updateCache(q),this._propagate("resize",A),this.position.top!==f&&(k.top=this.position.top+"px"),this.position.left!==v&&(k.left=this.position.left+"px"),this.size.width!==m&&(k.width=this.size.width+"px"),this.size.height!==z&&(k.height=this.size.height+"px"),B.css(k),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),c.isEmptyObject(k)||this._trigger("resize",A,this.ui()),!1):!1},_mouseStop:function(v){this.resizing=!1;var k,w,g,p,f,d,m,j=this.options,q=this;return this._helper&&(k=this._proportionallyResizeElements,w=k.length&&/textarea/i.test(k[0].nodeName),g=w&&c.ui.hasScroll(k[0],"left")?0:q.sizeDiff.height,p=w?0:q.sizeDiff.width,f={width:q.helper.width()-p,height:q.helper.height()-g},d=parseInt(q.element.css("left"),10)+(q.position.left-q.originalPosition.left)||null,m=parseInt(q.element.css("top"),10)+(q.position.top-q.originalPosition.top)||null,j.animate||this.element.css(c.extend(f,{top:m,left:d})),q.helper.height(q.size.height),q.helper.width(q.size.width),this._helper&&!j.animate&&this._proportionallyResize()),c("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",v),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(j){var f,g,l,d,k,h=this.options;k={minWidth:a(h.minWidth)?h.minWidth:0,maxWidth:a(h.maxWidth)?h.maxWidth:1/0,minHeight:a(h.minHeight)?h.minHeight:0,maxHeight:a(h.maxHeight)?h.maxHeight:1/0},(this._aspectRatio||j)&&(f=k.minHeight*this.aspectRatio,l=k.minWidth/this.aspectRatio,g=k.maxHeight*this.aspectRatio,d=k.maxWidth/this.aspectRatio,f>k.minWidth&&(k.minWidth=f),l>k.minHeight&&(k.minHeight=l),k.maxWidth>g&&(k.maxWidth=g),k.maxHeight>d&&(k.maxHeight=d)),this._vBoundaries=k},_updateCache:function(d){this.offset=this.helper.offset(),a(d.left)&&(this.position.left=d.left),a(d.top)&&(this.position.top=d.top),a(d.height)&&(this.size.height=d.height),a(d.width)&&(this.size.width=d.width)},_updateRatio:function(g){var d=this.position,f=this.size,h=this.axis;return a(g.height)?g.width=g.height*this.aspectRatio:a(g.width)&&(g.height=g.width/this.aspectRatio),"sw"===h&&(g.left=d.left+(f.width-g.width),g.top=null),"nw"===h&&(g.top=d.top+(f.height-g.height),g.left=d.left+(f.width-g.width)),g},_respectSize:function(m){var w=this._vBoundaries,x=this.axis,g=a(m.width)&&w.maxWidth&&w.maxWidthm.width,d=a(m.height)&&w.minHeight&&w.minHeight>m.height,k=this.originalPosition.left+this.originalSize.width,j=this.position.top+this.size.height,v=/sw|nw|w/.test(x),p=/nw|ne|n/.test(x);return f&&(m.width=w.minWidth),d&&(m.height=w.minHeight),g&&(m.width=w.maxWidth),q&&(m.height=w.maxHeight),f&&v&&(m.left=k-w.minWidth),g&&v&&(m.left=k-w.maxWidth),d&&p&&(m.top=j-w.minHeight),q&&p&&(m.top=j-w.maxHeight),m.width||m.height||m.left||!m.top?m.width||m.height||m.top||!m.left||(m.left=null):m.top=null,m},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var j,g,f,h,k,d=this.helper||this.element;for(j=0;this._proportionallyResizeElements.length>j;j++){if(k=this._proportionallyResizeElements[j],!this.borderDif){for(this.borderDif=[],f=[k.css("borderTopWidth"),k.css("borderRightWidth"),k.css("borderBottomWidth"),k.css("borderLeftWidth")],h=[k.css("paddingTop"),k.css("paddingRight"),k.css("paddingBottom"),k.css("paddingLeft")],g=0;f.length>g;g++){this.borderDif[g]=(parseInt(f[g],10)||0)+(parseInt(h[g],10)||0)}}k.css({height:d.height()-this.borderDif[0]-this.borderDif[2]||0,width:d.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var f=this.element,d=this.options;this.elementOffset=f.offset(),this._helper?(this.helper=this.helper||c("
"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++d.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(f,d){return{width:this.originalSize.width+d}},w:function(h,f){var d=this.originalSize,g=this.originalPosition;return{left:g.left+f,width:d.width-f}},n:function(h,f,d){var g=this.originalSize,j=this.originalPosition;return{top:j.top+d,height:g.height-d}},s:function(g,f,d){return{height:this.originalSize.height+d}},se:function(f,d,g){return c.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[f,d,g]))},sw:function(f,d,g){return c.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[f,d,g]))},ne:function(f,d,g){return c.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[f,d,g]))},nw:function(f,d,g){return c.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[f,d,g]))}},_propagate:function(f,d){c.ui.plugin.call(this,f,[d,this.ui()]),"resize"!==f&&this._trigger(f,d,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}}}),c.ui.plugin.add("resizable","animate",{stop:function(v){var k=c(this).data("ui-resizable"),w=k.options,g=k._proportionallyResizeElements,p=g.length&&/textarea/i.test(g[0].nodeName),f=p&&c.ui.hasScroll(g[0],"left")?0:k.sizeDiff.height,d=p?0:k.sizeDiff.width,m={width:k.size.width-d,height:k.size.height-f},j=parseInt(k.element.css("left"),10)+(k.position.left-k.originalPosition.left)||null,q=parseInt(k.element.css("top"),10)+(k.position.top-k.originalPosition.top)||null;k.element.animate(c.extend(m,q&&j?{top:q,left:j}:{}),{duration:w.animateDuration,easing:w.animateEasing,step:function(){var h={width:parseInt(k.element.css("width"),10),height:parseInt(k.element.css("height"),10),top:parseInt(k.element.css("top"),10),left:parseInt(k.element.css("left"),10)};g&&g.length&&c(g[0]).css({width:h.width,height:h.height}),k._updateCache(h),k._propagate("resize",v)}})}}),c.ui.plugin.add("resizable","containment",{start:function(){var q,z,k,x,j,f,t,m=c(this).data("ui-resizable"),y=m.options,w=m.element,v=y.containment,g=v instanceof c?v.get(0):/parent/.test(v)?w.parent().get(0):v;g&&(m.containerElement=c(g),/document/.test(v)||v===document?(m.containerOffset={left:0,top:0},m.containerPosition={left:0,top:0},m.parentData={element:c(document),left:0,top:0,width:c(document).width(),height:c(document).height()||document.body.parentNode.scrollHeight}):(q=c(g),z=[],c(["Top","Right","Left","Bottom"]).each(function(d,h){z[d]=b(q.css("padding"+h))}),m.containerOffset=q.offset(),m.containerPosition=q.position(),m.containerSize={height:q.innerHeight()-z[3],width:q.innerWidth()-z[1]},k=m.containerOffset,x=m.containerSize.height,j=m.containerSize.width,f=c.ui.hasScroll(g,"left")?g.scrollWidth:j,t=c.ui.hasScroll(g)?g.scrollHeight:x,m.parentData={element:g,left:k.left,top:k.top,width:f,height:t}))},resize:function(y){var m,z,j,w,g=c(this).data("ui-resizable"),f=g.options,p=g.containerOffset,k=g.position,x=g._aspectRatio||y.shiftKey,v={top:0,left:0},q=g.containerElement;q[0]!==document&&/static/.test(q.css("position"))&&(v=p),k.left<(g._helper?p.left:0)&&(g.size.width=g.size.width+(g._helper?g.position.left-p.left:g.position.left-v.left),x&&(g.size.height=g.size.width/g.aspectRatio),g.position.left=f.helper?p.left:0),k.top<(g._helper?p.top:0)&&(g.size.height=g.size.height+(g._helper?g.position.top-p.top:g.position.top),x&&(g.size.width=g.size.height*g.aspectRatio),g.position.top=g._helper?p.top:0),g.offset.left=g.parentData.left+g.position.left,g.offset.top=g.parentData.top+g.position.top,m=Math.abs((g._helper?g.offset.left-v.left:g.offset.left-v.left)+g.sizeDiff.width),z=Math.abs((g._helper?g.offset.top-v.top:g.offset.top-p.top)+g.sizeDiff.height),j=g.containerElement.get(0)===g.element.parent().get(0),w=/relative|absolute/.test(g.containerElement.css("position")),j&&w&&(m-=g.parentData.left),m+g.size.width>=g.parentData.width&&(g.size.width=g.parentData.width-m,x&&(g.size.height=g.size.width/g.aspectRatio)),z+g.size.height>=g.parentData.height&&(g.size.height=g.parentData.height-z,x&&(g.size.width=g.size.height*g.aspectRatio))},stop:function(){var q=c(this).data("ui-resizable"),k=q.options,u=q.containerOffset,g=q.containerPosition,p=q.containerElement,f=c(q.helper),d=f.offset(),m=f.outerWidth()-q.sizeDiff.width,j=f.outerHeight()-q.sizeDiff.height;q._helper&&!k.animate&&/relative/.test(p.css("position"))&&c(this).css({left:d.left-g.left-u.left,width:m,height:j}),q._helper&&!k.animate&&/static/.test(p.css("position"))&&c(this).css({left:d.left-g.left-u.left,width:m,height:j})}}),c.ui.plugin.add("resizable","alsoResize",{start:function(){var f=c(this).data("ui-resizable"),d=f.options,g=function(h){c(h).each(function(){var j=c(this);j.data("ui-resizable-alsoresize",{width:parseInt(j.width(),10),height:parseInt(j.height(),10),left:parseInt(j.css("left"),10),top:parseInt(j.css("top"),10)})})};"object"!=typeof d.alsoResize||d.alsoResize.parentNode?g(d.alsoResize):d.alsoResize.length?(d.alsoResize=d.alsoResize[0],g(d.alsoResize)):c.each(d.alsoResize,function(h){g(h)})},resize:function(g,f){var k=c(this).data("ui-resizable"),p=k.options,d=k.originalSize,m=k.originalPosition,l={height:k.size.height-d.height||0,width:k.size.width-d.width||0,top:k.position.top-m.top||0,left:k.position.left-m.left||0},j=function(h,n){c(h).each(function(){var r=c(this),u=c(this).data("ui-resizable-alsoresize"),q={},s=n&&n.length?n:r.parents(f.originalElement[0]).length?["width","height"]:["width","height","top","left"];c.each(s,function(w,v){var o=(u[v]||0)+(l[v]||0);o&&o>=0&&(q[v]=o||null)}),r.css(q)})};"object"!=typeof p.alsoResize||p.alsoResize.nodeType?j(p.alsoResize):c.each(p.alsoResize,function(n,h){j(n,h)})},stop:function(){c(this).removeData("resizable-alsoresize")}}),c.ui.plugin.add("resizable","ghost",{start:function(){var f=c(this).data("ui-resizable"),d=f.options,g=f.size;f.ghost=f.originalElement.clone(),f.ghost.css({opacity:0.25,display:"block",position:"relative",height:g.height,width:g.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof d.ghost?d.ghost:""),f.ghost.appendTo(f.helper)},resize:function(){var d=c(this).data("ui-resizable");d.ghost&&d.ghost.css({position:"relative",height:d.size.height,width:d.size.width})},stop:function(){var d=c(this).data("ui-resizable");d.ghost&&d.helper&&d.helper.get(0).removeChild(d.ghost.get(0))}}),c.ui.plugin.add("resizable","grid",{resize:function(){var I=c(this).data("ui-resizable"),z=I.options,J=I.size,w=I.originalSize,F=I.originalPosition,q=I.axis,j="number"==typeof z.grid?[z.grid,z.grid]:z.grid,A=j[0]||1,y=j[1]||1,H=Math.round((J.width-w.width)/A)*A,E=Math.round((J.height-w.height)/y)*y,D=w.width+H,k=w.height+E,C=z.maxWidth&&D>z.maxWidth,x=z.maxHeight&&k>z.maxHeight,B=z.minWidth&&z.minWidth>D,G=z.minHeight&&z.minHeight>k;z.grid=j,B&&(D+=A),G&&(k+=y),C&&(D-=A),x&&(k-=y),/^(se|s|e)$/.test(q)?(I.size.width=D,I.size.height=k):/^(ne)$/.test(q)?(I.size.width=D,I.size.height=k,I.position.top=F.top-E):/^(sw)$/.test(q)?(I.size.width=D,I.size.height=k,I.position.left=F.left-H):(I.size.width=D,I.size.height=k,I.position.top=F.top-E,I.position.left=F.left-H)}})})(jQuery);(function(a){a.widget("ui.selectable",a.ui.mouse,{version:"1.10.3",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 c,b=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){c=a(b.options.filter,b.element[0]),c.addClass("ui-selectee"),c.each(function(){var f=a(this),d=f.offset();a.data(this,"selectable-item",{element:this,$element:f,left:d.left,top:d.top,right:d.left+f.outerWidth(),bottom:d.top+f.outerHeight(),startselected:!1,selected:f.hasClass("ui-selected"),selecting:f.hasClass("ui-selecting"),unselecting:f.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=c.addClass("ui-selectee"),this._mouseInit(),this.helper=a("
")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(c){var b=this,d=this.options;this.opos=[c.pageX,c.pageY],this.options.disabled||(this.selectees=a(d.filter,this.element[0]),this._trigger("start",c),a(d.appendTo).append(this.helper),this.helper.css({left:c.pageX,top:c.pageY,width:0,height:0}),d.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var f=a.data(this,"selectable-item");f.startselected=!0,c.metaKey||c.ctrlKey||(f.$element.removeClass("ui-selected"),f.selected=!1,f.$element.addClass("ui-unselecting"),f.unselecting=!0,b._trigger("unselecting",c,{unselecting:f.element}))}),a(c.target).parents().addBack().each(function(){var f,g=a.data(this,"selectable-item");return g?(f=!c.metaKey&&!c.ctrlKey||!g.$element.hasClass("ui-selected"),g.$element.removeClass(f?"ui-unselecting":"ui-selected").addClass(f?"ui-selecting":"ui-unselecting"),g.unselecting=!f,g.selecting=f,g.selected=f,f?b._trigger("selecting",c,{selecting:g.element}):b._trigger("unselecting",c,{unselecting:g.element}),!1):undefined}))},_mouseDrag:function(d){if(this.dragged=!0,!this.options.disabled){var c,g=this,l=this.options,b=this.opos[0],k=this.opos[1],j=d.pageX,f=d.pageY;return b>j&&(c=j,j=b,b=c),k>f&&(c=f,f=k,k=c),this.helper.css({left:b,top:k,width:j-b,height:f-k}),this.selectees.each(function(){var m=a.data(this,"selectable-item"),h=!1;m&&m.element!==g.element[0]&&("touch"===l.tolerance?h=!(m.left>j||b>m.right||m.top>f||k>m.bottom):"fit"===l.tolerance&&(h=m.left>b&&j>m.right&&m.top>k&&f>m.bottom),h?(m.selected&&(m.$element.removeClass("ui-selected"),m.selected=!1),m.unselecting&&(m.$element.removeClass("ui-unselecting"),m.unselecting=!1),m.selecting||(m.$element.addClass("ui-selecting"),m.selecting=!0,g._trigger("selecting",d,{selecting:m.element}))):(m.selecting&&((d.metaKey||d.ctrlKey)&&m.startselected?(m.$element.removeClass("ui-selecting"),m.selecting=!1,m.$element.addClass("ui-selected"),m.selected=!0):(m.$element.removeClass("ui-selecting"),m.selecting=!1,m.startselected&&(m.$element.addClass("ui-unselecting"),m.unselecting=!0),g._trigger("unselecting",d,{unselecting:m.element}))),m.selected&&(d.metaKey||d.ctrlKey||m.startselected||(m.$element.removeClass("ui-selected"),m.selected=!1,m.$element.addClass("ui-unselecting"),m.unselecting=!0,g._trigger("unselecting",d,{unselecting:m.element})))))}),!1}},_mouseStop:function(c){var b=this;return this.dragged=!1,a(".ui-unselecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass("ui-unselecting"),d.unselecting=!1,d.startselected=!1,b._trigger("unselected",c,{unselected:d.element})}),a(".ui-selecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass("ui-selecting").addClass("ui-selected"),d.selecting=!1,d.selected=!0,d.startselected=!0,b._trigger("selected",c,{selected:d.element})}),this._trigger("stop",c),this.helper.remove(),!1}})})(jQuery);(function(b){function c(f,g,d){return f>g&&g+d>f}function a(d){return/left|right/.test(d.css("float"))||/inline|table-cell/.test(d.css("display"))}b.widget("ui.sortable",b.ui.mouse,{version:"1.10.3",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:1000,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var d=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=this.items.length?"x"===d.axis||a(this.items[0].item):!1,this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var d=this.items.length-1;d>=0;d--){this.items[d].item.removeData(this.widgetName+"-item")}return this},_setOption:function(f,d){"disabled"===f?(this.options[f]=d,this.widget().toggleClass("ui-sortable-disabled",!!d)):b.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(h,f){var g=null,j=!1,d=this;return this.reverting?!1:this.options.disabled||"static"===this.options.type?!1:(this._refreshItems(h),b(h.target).parents().each(function(){return b.data(this,d.widgetName+"-item")===d?(g=b(this),!1):undefined}),b.data(h.target,d.widgetName+"-item")===d&&(g=b(h.target)),g?!this.options.handle||f||(b(this.options.handle,g).find("*").addBack().each(function(){this===h.target&&(j=!0)}),j)?(this.currentItem=g,this._removeCurrentsFromItems(),!0):!1:!1)},_mouseStart:function(h,f,g){var k,d,j=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(h),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},b.extend(this.offset,{click:{left:h.pageX-this.offset.left,top:h.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(h),this.originalPageX=h.pageX,this.originalPageY=h.pageY,j.cursorAt&&this._adjustOffsetFromHelper(j.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),j.containment&&this._setContainment(),j.cursor&&"auto"!==j.cursor&&(d=this.document.find("body"),this.storedCursor=d.css("cursor"),d.css("cursor",j.cursor),this.storedStylesheet=b("").appendTo(d)),j.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",j.opacity)),j.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",j.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",h,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!g){for(k=this.containers.length-1;k>=0;k--){this.containers[k]._trigger("activate",h,this._uiHash(this))}}return b.ui.ddmanager&&(b.ui.ddmanager.current=this),b.ui.ddmanager&&!j.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,h),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(h),!0},_mouseDrag:function(j){var f,g,l,d,k=this.options,h=!1;for(this.position=this._generatePosition(j),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-j.pageY=0;f--){if(g=this.items[f],l=g.item[0],d=this._intersectsWithPointer(g),d&&g.instance===this.currentContainer&&l!==this.currentItem[0]&&this.placeholder[1===d?"next":"prev"]()[0]!==l&&!b.contains(this.placeholder[0],l)&&("semi-dynamic"===this.options.type?!b.contains(this.element[0],l):!0)){if(this.direction=1===d?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(g)){break}this._rearrange(j,g),this._trigger("change",j,this._uiHash());break}}return this._contactContainers(j),b.ui.ddmanager&&b.ui.ddmanager.drag(this,j),this._trigger("sort",j,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(h,f){if(h){if(b.ui.ddmanager&&!this.options.dropBehaviour&&b.ui.ddmanager.drop(this,h),this.options.revert){var g=this,k=this.placeholder.offset(),d=this.options.axis,j={};d&&"x"!==d||(j.left=k.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),d&&"y"!==d||(j.top=k.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,b(this.helper).animate(j,parseInt(this.options.revert,10)||500,function(){g._clear(h)})}else{this._clear(h,f)}return !1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var d=this.containers.length-1;d>=0;d--){this.containers[d]._trigger("deactivate",null,this._uiHash(this)),this.containers[d].containerCache.over&&(this.containers[d]._trigger("out",null,this._uiHash(this)),this.containers[d].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(),b.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?b(this.domPosition.prev).after(this.currentItem):b(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(g){var d=this._getItemsAsjQuery(g&&g.connected),f=[];return g=g||{},b(d).each(function(){var h=(b(g.item||this).attr(g.attribute||"id")||"").match(g.expression||/(.+)[\-=_](.+)/);h&&f.push((g.key||h[1]+"[]")+"="+(g.key&&g.expression?h[1]:h[2]))}),!f.length&&g.key&&f.push(g.key+"="),f.join("&")},toArray:function(g){var d=this._getItemsAsjQuery(g&&g.connected),f=[];return g=g||{},d.each(function(){f.push(b(g.item||this).attr(g.attribute||"id")||"")}),f},_intersectsWith:function(B){var w=this.positionAbs.left,q=w+this.helperProportions.width,C=this.positionAbs.top,k=C+this.helperProportions.height,z=B.left,j=z+B.width,f=B.top,v=f+B.height,m=this.offset.click.top,y=this.offset.click.left,A="x"===this.options.axis||C+m>f&&v>C+m,x="y"===this.options.axis||w+y>z&&j>w+y,g=A&&x;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>B[this.floating?"width":"height"]?g:w+this.helperProportions.width/2>z&&j>q-this.helperProportions.width/2&&C+this.helperProportions.height/2>f&&v>k-this.helperProportions.height/2},_intersectsWithPointer:function(g){var f="x"===this.options.axis||c(this.positionAbs.top+this.offset.click.top,g.top,g.height),h="y"===this.options.axis||c(this.positionAbs.left+this.offset.click.left,g.left,g.width),k=f&&h,d=this._getDragVerticalDirection(),j=this._getDragHorizontalDirection();return k?this.floating?j&&"right"===j||"down"===d?2:1:d&&("down"===d?2:1):!1},_intersectsWithSides:function(g){var f=c(this.positionAbs.top+this.offset.click.top,g.top+g.height/2,g.height),h=c(this.positionAbs.left+this.offset.click.left,g.left+g.width/2,g.width),j=this._getDragVerticalDirection(),d=this._getDragHorizontalDirection();return this.floating&&d?"right"===d&&h||"left"===d&&!h:j&&("down"===j&&f||"up"===j&&!f)},_getDragVerticalDirection:function(){var d=this.positionAbs.top-this.lastPositionAbs.top;return 0!==d&&(d>0?"down":"up")},_getDragHorizontalDirection:function(){var d=this.positionAbs.left-this.lastPositionAbs.left;return 0!==d&&(d>0?"right":"left")},refresh:function(d){return this._refreshItems(d),this.refreshPositions(),this},_connectWith:function(){var d=this.options;return d.connectWith.constructor===String?[d.connectWith]:d.connectWith},_getItemsAsjQuery:function(l){var f,j,p,d,m=[],k=[],g=this._connectWith();if(g&&l){for(f=g.length-1;f>=0;f--){for(p=b(g[f]),j=p.length-1;j>=0;j--){d=b.data(p[j],this.widgetFullName),d&&d!==this&&!d.options.disabled&&k.push([b.isFunction(d.options.items)?d.options.items.call(d.element):b(d.options.items,d.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),d])}}}for(k.push([b.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):b(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),f=k.length-1;f>=0;f--){k[f][0].each(function(){m.push(this)})}return b(m)},_removeCurrentsFromItems:function(){var d=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=b.grep(this.items,function(g){for(var f=0;d.length>f;f++){if(d[f]===g.item[0]){return !1}}return !0})},_refreshItems:function(q){this.items=[],this.containers=[this];var m,y,j,w,g,f,p,k,v=this.items,x=[[b.isFunction(this.options.items)?this.options.items.call(this.element[0],q,{item:this.currentItem}):b(this.options.items,this.element),this]],t=this._connectWith();if(t&&this.ready){for(m=t.length-1;m>=0;m--){for(j=b(t[m]),y=j.length-1;y>=0;y--){w=b.data(j[y],this.widgetFullName),w&&w!==this&&!w.options.disabled&&(x.push([b.isFunction(w.options.items)?w.options.items.call(w.element[0],q,{item:this.currentItem}):b(w.options.items,w.element),w]),this.containers.push(w))}}}for(m=x.length-1;m>=0;m--){for(g=x[m][1],f=x[m][0],y=0,k=f.length;k>y;y++){p=b(f[y]),p.data(this.widgetName+"-item",g),v.push({item:p,instance:g,width:0,height:0,left:0,top:0})}}},refreshPositions:function(h){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var f,g,j,d;for(f=this.items.length-1;f>=0;f--){g=this.items[f],g.instance!==this.currentContainer&&this.currentContainer&&g.item[0]!==this.currentItem[0]||(j=this.options.toleranceElement?b(this.options.toleranceElement,g.item):g.item,h||(g.width=j.outerWidth(),g.height=j.outerHeight()),d=j.offset(),g.left=d.left,g.top=d.top)}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(f=this.containers.length-1;f>=0;f--){d=this.containers[f].element.offset(),this.containers[f].containerCache.left=d.left,this.containers[f].containerCache.top=d.top,this.containers[f].containerCache.width=this.containers[f].element.outerWidth(),this.containers[f].containerCache.height=this.containers[f].element.outerHeight()}}return this},_createPlaceholder:function(g){g=g||this;var d,f=g.options;f.placeholder&&f.placeholder.constructor!==String||(d=f.placeholder,f.placeholder={element:function(){var h=g.currentItem[0].nodeName.toLowerCase(),j=b("<"+h+">",g.document[0]).addClass(d||g.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===h?g.currentItem.children().each(function(){b("
",g.document[0]).attr("colspan",b(this).attr("colspan")||1).appendTo(j)}):"img"===h&&j.attr("src",g.currentItem.attr("src")),d||j.css("visibility","hidden"),j},update:function(h,j){(!d||f.forcePlaceholderSize)&&(j.height()||j.height(g.currentItem.innerHeight()-parseInt(g.currentItem.css("paddingTop")||0,10)-parseInt(g.currentItem.css("paddingBottom")||0,10)),j.width()||j.width(g.currentItem.innerWidth()-parseInt(g.currentItem.css("paddingLeft")||0,10)-parseInt(g.currentItem.css("paddingRight")||0,10)))}}),g.placeholder=b(f.placeholder.element.call(g.element,g.currentItem)),g.currentItem.after(g.placeholder),f.placeholder.update(g,g.placeholder)},_contactContainers:function(C){var q,A,k,g,w,v,z,B,y,j,x=null,t=null;for(q=this.containers.length-1;q>=0;q--){if(!b.contains(this.currentItem[0],this.containers[q].element[0])){if(this._intersectsWith(this.containers[q].containerCache)){if(x&&b.contains(this.containers[q].element[0],x.element[0])){continue}x=this.containers[q],t=q}else{this.containers[q].containerCache.over&&(this.containers[q]._trigger("out",C,this._uiHash(this)),this.containers[q].containerCache.over=0)}}}if(x){if(1===this.containers.length){this.containers[t].containerCache.over||(this.containers[t]._trigger("over",C,this._uiHash(this)),this.containers[t].containerCache.over=1)}else{for(k=10000,g=null,j=x.floating||a(this.currentItem),w=j?"left":"top",v=j?"width":"height",z=this.positionAbs[w]+this.offset.click[w],A=this.items.length-1;A>=0;A--){b.contains(this.containers[t].element[0],this.items[A].item[0])&&this.items[A].item[0]!==this.currentItem[0]&&(!j||c(this.positionAbs.top+this.offset.click.top,this.items[A].top,this.items[A].height))&&(B=this.items[A].item.offset()[w],y=!1,Math.abs(B-z)>Math.abs(B+this.items[A][v]-z)&&(y=!0,B+=this.items[A][v]),k>Math.abs(B-z)&&(k=Math.abs(B-z),g=this.items[A],this.direction=y?"up":"down"))}if(!g&&!this.options.dropOnEmpty){return}if(this.currentContainer===this.containers[t]){return}g?this._rearrange(C,g,null,!0):this._rearrange(C,null,this.containers[t].element,!0),this._trigger("change",C,this._uiHash()),this.containers[t]._trigger("change",C,this._uiHash(this)),this.currentContainer=this.containers[t],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[t]._trigger("over",C,this._uiHash(this)),this.containers[t].containerCache.over=1}}},_createHelper:function(g){var d=this.options,f=b.isFunction(d.helper)?b(d.helper.apply(this.element[0],[g,this.currentItem])):"clone"===d.helper?this.currentItem.clone():this.currentItem;return f.parents("body").length||b("parent"!==d.appendTo?d.appendTo:this.currentItem[0].parentNode)[0].appendChild(f[0]),f[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")}),(!f[0].style.width||d.forceHelperSize)&&f.width(this.currentItem.width()),(!f[0].style.height||d.forceHelperSize)&&f.height(this.currentItem.height()),f},_adjustOffsetFromHelper:function(d){"string"==typeof d&&(d=d.split(" ")),b.isArray(d)&&(d={left:+d[0],top:+d[1]||0}),"left" in d&&(this.offset.click.left=d.left+this.margins.left),"right" in d&&(this.offset.click.left=this.helperProportions.width-d.right+this.margins.left),"top" in d&&(this.offset.click.top=d.top+this.margins.top),"bottom" in d&&(this.offset.click.top=this.helperProportions.height-d.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var d=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&b.contains(this.scrollParent[0],this.offsetParent[0])&&(d.left+=this.scrollParent.scrollLeft(),d.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&b.ui.ie)&&(d={top:0,left:0}),{top:d.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:d.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var d=this.currentItem.position();return{top:d.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:d.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{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 g,d,f,h=this.options;"parent"===h.containment&&(h.containment=this.helper[0].parentNode),("document"===h.containment||"window"===h.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b("document"===h.containment?document:window).width()-this.helperProportions.width-this.margins.left,(b("document"===h.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(h.containment)||(g=b(h.containment)[0],d=b(h.containment).offset(),f="hidden"!==b(g).css("overflow"),this.containment=[d.left+(parseInt(b(g).css("borderLeftWidth"),10)||0)+(parseInt(b(g).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(b(g).css("borderTopWidth"),10)||0)+(parseInt(b(g).css("paddingTop"),10)||0)-this.margins.top,d.left+(f?Math.max(g.scrollWidth,g.offsetWidth):g.offsetWidth)-(parseInt(b(g).css("borderLeftWidth"),10)||0)-(parseInt(b(g).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(f?Math.max(g.scrollHeight,g.offsetHeight):g.offsetHeight)-(parseInt(b(g).css("borderTopWidth"),10)||0)-(parseInt(b(g).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(h,f){f||(f=this.position);var g="absolute"===h?1:-1,j="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&b.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,d=/(html|body)/i.test(j[0].tagName);return{top:f.top+this.offset.relative.top*g+this.offset.parent.top*g-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():d?0:j.scrollTop())*g,left:f.left+this.offset.relative.left*g+this.offset.parent.left*g-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():d?0:j.scrollLeft())*g}},_generatePosition:function(l){var f,j,p=this.options,d=l.pageX,m=l.pageY,k="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&b.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,g=/(html|body)/i.test(k[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(l.pageX-this.offset.click.leftthis.containment[2]&&(d=this.containment[2]+this.offset.click.left),l.pageY-this.offset.click.top>this.containment[3]&&(m=this.containment[3]+this.offset.click.top)),p.grid&&(f=this.originalPageY+Math.round((m-this.originalPageY)/p.grid[1])*p.grid[1],m=this.containment?f-this.offset.click.top>=this.containment[1]&&f-this.offset.click.top<=this.containment[3]?f:f-this.offset.click.top>=this.containment[1]?f-p.grid[1]:f+p.grid[1]:f,j=this.originalPageX+Math.round((d-this.originalPageX)/p.grid[0])*p.grid[0],d=this.containment?j-this.offset.click.left>=this.containment[0]&&j-this.offset.click.left<=this.containment[2]?j:j-this.offset.click.left>=this.containment[0]?j-p.grid[0]:j+p.grid[0]:j)),{top:m-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():g?0:k.scrollTop()),left:d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():g?0:k.scrollLeft())}},_rearrange:function(f,h,d,g){d?d[0].appendChild(this.placeholder[0]):h.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?h.item[0]:h.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var j=this.counter;this._delay(function(){j===this.counter&&this.refreshPositions(!g)})},_clear:function(f,h){this.reverting=!1;var d,g=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(d in this._storedCSS){("auto"===this._storedCSS[d]||"static"===this._storedCSS[d])&&(this._storedCSS[d]="")}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}for(this.fromOutside&&!h&&g.push(function(j){this._trigger("receive",j,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||h||g.push(function(j){this._trigger("update",j,this._uiHash())}),this!==this.currentContainer&&(h||(g.push(function(j){this._trigger("remove",j,this._uiHash())}),g.push(function(j){return function(k){j._trigger("receive",k,this._uiHash(this))}}.call(this,this.currentContainer)),g.push(function(j){return function(k){j._trigger("update",k,this._uiHash(this))}}.call(this,this.currentContainer)))),d=this.containers.length-1;d>=0;d--){h||g.push(function(j){return function(k){j._trigger("deactivate",k,this._uiHash(this))}}.call(this,this.containers[d])),this.containers[d].containerCache.over&&(g.push(function(j){return function(k){j._trigger("out",k,this._uiHash(this))}}.call(this,this.containers[d])),this.containers[d].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,this.cancelHelperRemoval){if(!h){for(this._trigger("beforeStop",f,this._uiHash()),d=0;g.length>d;d++){g[d].call(this,f)}this._trigger("stop",f,this._uiHash())}return this.fromOutside=!1,!1}if(h||this._trigger("beforeStop",f,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!h){for(d=0;g.length>d;d++){g[d].call(this,f)}this._trigger("stop",f,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){b.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(f){var d=f||this;return{helper:d.helper,placeholder:d.placeholder||b([]),position:d.position,originalPosition:d.originalPosition,offset:d.positionAbs,item:d.currentItem,sender:f?f.element:null}}})})(jQuery);(function(b){var d=0,a={},c={};a.height=a.paddingTop=a.paddingBottom=a.borderTopWidth=a.borderBottomWidth="hide",c.height=c.paddingTop=c.paddingBottom=c.borderTopWidth=c.borderBottomWidth="show",b.widget("ui.accordion",{version:"1.10.3",options:{active:0,animate:{},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},_create:function(){var f=this.options;this.prevShow=this.prevHide=b(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),f.collapsible||f.active!==!1&&null!=f.active||(f.active=0),this._processPanels(),0>f.active&&(f.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():b(),content:this.active.length?this.active.next():b()}},_createIcons:function(){var f=this.options.icons;f&&(b("").addClass("ui-accordion-header-icon ui-icon "+f.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(f.header).addClass(f.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var f;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),this._destroyIcons(),f=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),"content"!==this.options.heightStyle&&f.css("height","")},_setOption:function(f,g){return"active"===f?(this._activate(g),undefined):("event"===f&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(g)),this._super(f,g),"collapsible"!==f||g||this.options.active!==!1||this._activate(0),"icons"===f&&(this._destroyIcons(),g&&this._createIcons()),"disabled"===f&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!g),undefined)},_keydown:function(j){if(!j.altKey&&!j.ctrlKey){var g=b.ui.keyCode,h=this.headers.length,k=this.headers.index(j.target),f=!1;switch(j.keyCode){case g.RIGHT:case g.DOWN:f=this.headers[(k+1)%h];break;case g.LEFT:case g.UP:f=this.headers[(k-1+h)%h];break;case g.SPACE:case g.ENTER:this._eventHandler(j);break;case g.HOME:f=this.headers[0];break;case g.END:f=this.headers[h-1]}f&&(b(j.target).attr("tabIndex",-1),b(f).attr("tabIndex",0),f.focus(),j.preventDefault())}},_panelKeyDown:function(f){f.keyCode===b.ui.keyCode.UP&&f.ctrlKey&&b(f.currentTarget).prev().focus()},refresh:function(){var f=this.options;this._processPanels(),f.active===!1&&f.collapsible===!0||!this.headers.length?(f.active=!1,this.active=b()):f.active===!1?this._activate(0):this.active.length&&!b.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(f.active=!1,this.active=b()):this._activate(Math.max(0,f.active-1)):f.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var g,h=this.options,k=h.heightStyle,f=this.element.parent(),j=this.accordionId="ui-accordion-"+(this.element.attr("id")||++d);this.active=this._findActive(h.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(p){var m=b(this),o=m.attr("id"),q=m.next(),l=q.attr("id");o||(o=j+"-header-"+p,m.attr("id",o)),l||(l=j+"-panel-"+p,q.attr("id",l)),m.attr("aria-controls",l),q.attr("aria-labelledby",o)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(h.event),"fill"===k?(g=f.height(),this.element.siblings(":visible").each(function(){var m=b(this),l=m.css("position");"absolute"!==l&&"fixed"!==l&&(g-=m.outerHeight(!0))}),this.headers.each(function(){g-=b(this).outerHeight(!0)}),this.headers.next().each(function(){b(this).height(Math.max(0,g-b(this).innerHeight()+b(this).height()))}).css("overflow","auto")):"auto"===k&&(g=0,this.headers.next().each(function(){g=Math.max(g,b(this).css("height","").height())}).height(g))},_activate:function(g){var f=this._findActive(g)[0];f!==this.active[0]&&(f=f||this.active[0],this._eventHandler({target:f,currentTarget:f,preventDefault:b.noop}))},_findActive:function(f){return"number"==typeof f?this.headers.eq(f):b()},_setupEvents:function(g){var f={keydown:"_keydown"};g&&b.each(g.split(" "),function(h,j){f[j]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,f),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(q){var m=this.options,u=this.active,j=b(q.currentTarget),t=j[0]===u[0],g=t&&m.collapsible,f=g?b():j.next(),p=u.next(),k={oldHeader:u,oldPanel:p,newHeader:g?b():j,newPanel:f};q.preventDefault(),t&&!m.collapsible||this._trigger("beforeActivate",q,k)===!1||(m.active=g?!1:this.headers.index(j),this.active=t?b():j,this._toggle(k),u.removeClass("ui-accordion-header-active ui-state-active"),m.icons&&u.children(".ui-accordion-header-icon").removeClass(m.icons.activeHeader).addClass(m.icons.header),t||(j.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),m.icons&&j.children(".ui-accordion-header-icon").removeClass(m.icons.header).addClass(m.icons.activeHeader),j.next().addClass("ui-accordion-content-active")))},_toggle:function(h){var f=h.newPanel,g=this.prevShow.length?this.prevShow:h.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=f,this.prevHide=g,this.options.animate?this._animate(f,g,h):(g.hide(),f.show(),this._toggleComplete(h)),g.attr({"aria-expanded":"false","aria-hidden":"true"}),g.prev().attr("aria-selected","false"),f.length&&g.length?g.prev().attr("tabIndex",-1):f.length&&this.headers.filter(function(){return 0===b(this).attr("tabIndex")}).attr("tabIndex",-1),f.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(z,s,k){var x,j,f,q=this,m=0,w=z.length&&(!s.length||z.index()",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},pending:0,_create:function(){var g,d,f,j=this.element[0].nodeName.toLowerCase(),c="textarea"===j,h="input"===j;this.isMultiLine=c?!0:h?!1:this.element.prop("isContentEditable"),this.valueMethod=this.element[c||h?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(l){if(this.element.prop("readOnly")){return g=!0,f=!0,d=!0,undefined}g=!1,f=!1,d=!1;var k=a.ui.keyCode;switch(l.keyCode){case k.PAGE_UP:g=!0,this._move("previousPage",l);break;case k.PAGE_DOWN:g=!0,this._move("nextPage",l);break;case k.UP:g=!0,this._keyEvent("previous",l);break;case k.DOWN:g=!0,this._keyEvent("next",l);break;case k.ENTER:case k.NUMPAD_ENTER:this.menu.active&&(g=!0,l.preventDefault(),this.menu.select(l));break;case k.TAB:this.menu.active&&this.menu.select(l);break;case k.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(l),l.preventDefault());break;default:d=!0,this._searchTimeout(l)}},keypress:function(k){if(g){return g=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&k.preventDefault(),undefined}if(!d){var l=a.ui.keyCode;switch(k.keyCode){case l.PAGE_UP:this._move("previousPage",k);break;case l.PAGE_DOWN:this._move("nextPage",k);break;case l.UP:this._keyEvent("previous",k);break;case l.DOWN:this._keyEvent("next",k)}}},input:function(k){return f?(f=!1,k.preventDefault(),undefined):(this._searchTimeout(k),undefined)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(k){return this.cancelBlur?(delete this.cancelBlur,undefined):(clearTimeout(this.searching),this.close(k),this._change(k),undefined)}}),this._initSource(),this.menu=a("
 
",ai=aI?"":"",aF=0;7>aF;aF++){an=(aF+a0)%7,ai+="=5?" class='ui-datepicker-week-end'":"")+">"+aN[an]+""}for(ao+=ai+"",at=this._getDaysInMonth(ad,aa),ad===aJ.selectedYear&&aa===aJ.selectedMonth&&(aJ.selectedDay=Math.min(aJ.selectedDay,at)),al=(this._getFirstDayOfMonth(ad,aa)-a0+7)%7,aB=Math.ceil((al+at)/7),aD=aM?this.maxRows>aB?this.maxRows:aB:aB,this.maxRows=aD,au=this._daylightSavingAdjust(new Date(ad,aa,1-al)),ax=0;aD>ax;ax++){for(ao+="",aw=aI?"":"",aF=0;7>aF;aF++){am=aW?aW.apply(aJ.input?aJ.input[0]:null,[au]):[!0,""],ae=au.getMonth()!==aa,aT=ae&&!a3||!am[0]||av&&av>au||aC&&au>aC,aw+="",au.setDate(au.getDate()+1),au=this._daylightSavingAdjust(au)}ao+=aw+""}aa++,aa>11&&(aa=0,ad++),ao+="
"+this._get(aJ,"weekHeader")+"
"+this._get(aJ,"calculateWeek")(au)+""+(ae&&!aH?" ":aT?""+au.getDate()+"":""+au.getDate()+"")+"
"+(aM?""+(ak[0]>0&&ay===ak[1]-1?"
":""):""),aG+=ao}aE+=aG}return aE+=aR,aJ._keyEvent=!1,aE},_generateMonthYearHeader:function(x,K,G,z,D,O,A,C){var H,F,M,w,L,B,J,E,I=this._get(x,"changeMonth"),q=this._get(x,"changeYear"),P=this._get(x,"showMonthAfterYear"),N="
",k="";if(O||!I){k+=""+A[K]+""}else{for(H=z&&z.getFullYear()===G,F=D&&D.getFullYear()===G,k+=""}if(P||(N+=k+(!O&&I&&q?"":" ")),!x.yearshtml){if(x.yearshtml="",O||!q){N+=""+G+""}else{for(w=this._get(x,"yearRange").split(":"),L=(new Date).getFullYear(),B=function(a){var l=a.match(/c[+\-].*/)?G+parseInt(a.substring(1),10):a.match(/[+\-].*/)?L+parseInt(a,10):parseInt(a,10);return isNaN(l)?L:l},J=B(w[0]),E=Math.max(J,B(w[1]||"")),J=z?Math.max(J,z.getFullYear()):J,E=D?Math.min(E,D.getFullYear()):E,x.yearshtml+="",N+=x.yearshtml,x.yearshtml=null}}return N+=this._get(x,"yearSuffix"),P&&(N+=(!O&&I&&q?"":" ")+k),N+="
"},_adjustInstDate:function(m,q,l){var o=m.drawYear+("Y"===l?q:0),u=m.drawMonth+("M"===l?q:0),k=Math.min(m.selectedDay,this._getDaysInMonth(o,u))+("D"===l?q:0),p=this._restrictMinMax(m,this._daylightSavingAdjust(new Date(o,u,k)));m.selectedDay=p.getDate(),m.drawMonth=m.selectedMonth=p.getMonth(),m.drawYear=m.selectedYear=p.getFullYear(),("M"===l||"Y"===l)&&this._notifyChange(m)},_restrictMinMax:function(k,m){var a=this._getMinMaxDate(k,"min"),l=this._getMinMaxDate(k,"max"),o=a&&a>m?a:m;return l&&o>l?l:o},_notifyChange:function(a){var k=this._get(a,"onChangeMonthYear");k&&k.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){var k=this._get(a,"numberOfMonths");return null==k?[1,1]:"number"==typeof k?[1,k]:k},_getMinMaxDate:function(a,k){return this._determineDate(a,this._get(a,k+"Date"),null)},_getDaysInMonth:function(a,k){return 32-this._daylightSavingAdjust(new Date(a,k,32)).getDate()},_getFirstDayOfMonth:function(a,k){return new Date(a,k,1).getDay()},_canAdjustMonth:function(m,p,l,o){var q=this._getNumberOfMonths(m),k=this._daylightSavingAdjust(new Date(l,o+(0>p?p:q[0]*q[1]),1));return 0>p&&k.setDate(this._getDaysInMonth(k.getFullYear(),k.getMonth())),this._isInRange(m,k)},_isInRange:function(w,u){var p,x,m=this._getMinMaxDate(w,"min"),v=this._getMinMaxDate(w,"max"),k=null,l=null,q=this._get(w,"yearRange");return q&&(p=q.split(":"),x=(new Date).getFullYear(),k=parseInt(p[0],10),l=parseInt(p[1],10),p[0].match(/[+\-].*/)&&(k+=x),p[1].match(/[+\-].*/)&&(l+=x)),(!m||u.getTime()>=m.getTime())&&(!v||u.getTime()<=v.getTime())&&(!k||u.getFullYear()>=k)&&(!l||l>=u.getFullYear())},_getFormatConfig:function(a){var k=this._get(a,"shortYearCutoff");return k="string"!=typeof k?k:(new Date).getFullYear()%100+parseInt(k,10),{shortYearCutoff:k,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(k,m,a,l){m||(k.currentDay=k.selectedDay,k.currentMonth=k.selectedMonth,k.currentYear=k.selectedYear);var o=m?"object"==typeof m?m:this._daylightSavingAdjust(new Date(l,a,m)):this._daylightSavingAdjust(new Date(k.currentYear,k.currentMonth,k.currentDay));return this.formatDate(this._get(k,"dateFormat"),o,this._getFormatConfig(k))}}),d.fn.datepicker=function(k){if(!this.length){return this}d.datepicker.initialized||(d(document).mousedown(d.datepicker._checkExternalClick),d.datepicker.initialized=!0),0===d("#"+d.datepicker._mainDivId).length&&d("body").append(d.datepicker.dpDiv);var a=Array.prototype.slice.call(arguments,1);return"string"!=typeof k||"isDisabled"!==k&&"getDate"!==k&&"widget"!==k?"option"===k&&2===arguments.length&&"string"==typeof arguments[1]?d.datepicker["_"+k+"Datepicker"].apply(d.datepicker,[this[0]].concat(a)):this.each(function(){"string"==typeof k?d.datepicker["_"+k+"Datepicker"].apply(d.datepicker,[this].concat(a)):d.datepicker._attachDatepicker(this,k)}):d.datepicker["_"+k+"Datepicker"].apply(d.datepicker,[this[0]].concat(a))},d.datepicker=new c,d.datepicker.initialized=!1,d.datepicker.uuid=(new Date).getTime(),d.datepicker.version="1.10.3"})(jQuery);(function(b){var c={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},a={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};b.widget("ui.dialog",{version:"1.10.3",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"close",dialogClass:"",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(f){var d=b(this).css(f).offset().top;0>d&&b(this).css("top",f.top-d)}},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},_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"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&b.fn.draggable&&this._makeDraggable(),this.options.resizable&&b.fn.resizable&&this._makeResizable(),this._isOpen=!1},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var d=this.options.appendTo;return d&&(d.jquery||d.nodeType)?b(d):this.document.find(d||"body").eq(0)},_destroy:function(){var d,f=this.originalPosition;this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),d=f.parent.children().eq(f.index),d.length&&d[0]!==this.element[0]?d.before(this.element):f.parent.append(this.element)},widget:function(){return this.uiDialog},disable:b.noop,enable:b.noop,close:function(f){var d=this;this._isOpen&&this._trigger("beforeClose",f)!==!1&&(this._isOpen=!1,this._destroyOverlay(),this.opener.filter(":focusable").focus().length||b(this.document[0].activeElement).blur(),this._hide(this.uiDialog,this.options.hide,function(){d._trigger("close",f)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(f,g){var d=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;return d&&!g&&this._trigger("focus",f),d},open:function(){var d=this;return this._isOpen?(this._moveToTop()&&this._focusTabbable(),undefined):(this._isOpen=!0,this.opener=b(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this._show(this.uiDialog,this.options.show,function(){d._focusTabbable(),d._trigger("focus")}),this._trigger("open"),undefined)},_focusTabbable:function(){var d=this.element.find("[autofocus]");d.length||(d=this.element.find(":tabbable")),d.length||(d=this.uiDialogButtonPane.find(":tabbable")),d.length||(d=this.uiDialogTitlebarClose.filter(":tabbable")),d.length||(d=this.uiDialog),d.eq(0).focus()},_keepFocus:function(f){function d(){var h=this.document[0].activeElement,g=this.uiDialog[0]===h||b.contains(this.uiDialog[0],h);g||this._focusTabbable()}f.preventDefault(),d.call(this),this._delay(d)},_createWrapper:function(){this.uiDialog=b("
").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(g){if(this.options.closeOnEscape&&!g.isDefaultPrevented()&&g.keyCode&&g.keyCode===b.ui.keyCode.ESCAPE){return g.preventDefault(),this.close(g),undefined}if(g.keyCode===b.ui.keyCode.TAB){var d=this.uiDialog.find(":tabbable"),f=d.filter(":first"),h=d.filter(":last");g.target!==h[0]&&g.target!==this.uiDialog[0]||g.shiftKey?g.target!==f[0]&&g.target!==this.uiDialog[0]||!g.shiftKey||(h.focus(1),g.preventDefault()):(f.focus(1),g.preventDefault())}},mousedown:function(d){this._moveToTop(d)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var d;this.uiDialogTitlebar=b("
").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(f){b(f.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=b("").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(f){f.preventDefault(),this.close(f)}}),d=b("").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(d),this.uiDialog.attr({"aria-labelledby":d.attr("id")})},_title:function(d){this.options.title||d.html(" "),d.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=b("
").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=b("
").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var f=this,d=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),b.isEmptyObject(d)||b.isArray(d)&&!d.length?(this.uiDialog.removeClass("ui-dialog-buttons"),undefined):(b.each(d,function(h,j){var k,g;j=b.isFunction(j)?{click:j,text:h}:j,j=b.extend({type:"button"},j),k=j.click,j.click=function(){k.apply(f.element[0],arguments)},g={icons:j.icons,text:j.showText},delete j.icons,delete j.showText,b("",j).button(g).appendTo(f.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog),undefined)},_makeDraggable:function(){function g(h){return{position:h.position,offset:h.offset}}var d=this,f=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(h,j){b(this).addClass("ui-dialog-dragging"),d._blockFrames(),d._trigger("dragStart",h,g(j))},drag:function(h,j){d._trigger("drag",h,g(j))},stop:function(j,h){f.position=[h.position.left-d.document.scrollLeft(),h.position.top-d.document.scrollTop()],b(this).removeClass("ui-dialog-dragging"),d._unblockFrames(),d._trigger("dragStop",j,g(h))}})},_makeResizable:function(){function h(l){return{originalPosition:l.originalPosition,originalSize:l.originalSize,position:l.position,size:l.size}}var f=this,g=this.options,k=g.resizable,d=this.uiDialog.css("position"),j="string"==typeof k?k:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:g.maxWidth,maxHeight:g.maxHeight,minWidth:g.minWidth,minHeight:this._minHeight(),handles:j,start:function(l,m){b(this).addClass("ui-dialog-resizing"),f._blockFrames(),f._trigger("resizeStart",l,h(m))},resize:function(l,m){f._trigger("resize",l,h(m))},stop:function(m,l){g.height=b(this).height(),g.width=b(this).width(),b(this).removeClass("ui-dialog-resizing"),f._unblockFrames(),f._trigger("resizeStop",m,h(l))}}).css("position",d)},_minHeight:function(){var d=this.options;return"auto"===d.height?d.minHeight:Math.min(d.minHeight,d.height)},_position:function(){var d=this.uiDialog.is(":visible");d||this.uiDialog.show(),this.uiDialog.position(this.options.position),d||this.uiDialog.hide()},_setOptions:function(f){var h=this,d=!1,g={};b.each(f,function(j,k){h._setOption(j,k),j in c&&(d=!0),j in a&&(g[j]=k)}),d&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",g)},_setOption:function(f,h){var d,g,j=this.uiDialog;"dialogClass"===f&&j.removeClass(this.options.dialogClass).addClass(h),"disabled"!==f&&(this._super(f,h),"appendTo"===f&&this.uiDialog.appendTo(this._appendTo()),"buttons"===f&&this._createButtons(),"closeText"===f&&this.uiDialogTitlebarClose.button({label:""+h}),"draggable"===f&&(d=j.is(":data(ui-draggable)"),d&&!h&&j.draggable("destroy"),!d&&h&&this._makeDraggable()),"position"===f&&this._position(),"resizable"===f&&(g=j.is(":data(ui-resizable)"),g&&!h&&j.resizable("destroy"),g&&"string"==typeof h&&j.resizable("option","handles",h),g||h===!1||this._makeResizable()),"title"===f&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var f,h,d,g=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),g.minWidth>g.width&&(g.width=g.minWidth),f=this.uiDialog.css({height:"auto",width:g.width}).outerHeight(),h=Math.max(0,g.minHeight-f),d="number"==typeof g.maxHeight?Math.max(0,g.maxHeight-f):"none","auto"===g.height?this.element.css({minHeight:h,maxHeight:d,height:"auto"}):this.element.height(Math.max(0,g.height-f)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var d=b(this);return b("
").css({position:"absolute",width:d.outerWidth(),height:d.outerHeight()}).appendTo(d.parent()).offset(d.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(d){return b(d.target).closest(".ui-dialog").length?!0:!!b(d.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var f=this,d=this.widgetFullName;b.ui.dialog.overlayInstances||this._delay(function(){b.ui.dialog.overlayInstances&&this.document.bind("focusin.dialog",function(g){f._allowInteraction(g)||(g.preventDefault(),b(".ui-dialog:visible:last .ui-dialog-content").data(d)._focusTabbable())})}),this.overlay=b("
").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),b.ui.dialog.overlayInstances++}},_destroyOverlay:function(){this.options.modal&&this.overlay&&(b.ui.dialog.overlayInstances--,b.ui.dialog.overlayInstances||this.document.unbind("focusin.dialog"),this.overlay.remove(),this.overlay=null)}}),b.ui.dialog.overlayInstances=0,b.uiBackCompat!==!1&&b.widget("ui.dialog",b.ui.dialog,{_position:function(){var g,d=this.options.position,f=[],h=[0,0];d?(("string"==typeof d||"object"==typeof d&&"0" in d)&&(f=d.split?d.split(" "):[d[0],d[1]],1===f.length&&(f[1]=f[0]),b.each(["left","top"],function(j,k){+f[j]===f[j]&&(h[j]=f[j],f[j]=k)}),d={my:f[0]+(0>h[0]?h[0]:"+"+h[0])+" "+f[1]+(0>h[1]?h[1]:"+"+h[1]),at:f.join(" ")}),d=b.extend({},b.ui.dialog.prototype.options.position,d)):d=b.ui.dialog.prototype.options.position,g=this.uiDialog.is(":visible"),g||this.uiDialog.show(),this.uiDialog.position(d),g||this.uiDialog.hide()}})})(jQuery);(function(a){a.widget("ui.menu",{version:"1.10.3",defaultElement:"
    ",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},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().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,a.proxy(function(b){this.options.disabled&&b.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(b){b.preventDefault()},"click .ui-state-disabled > a":function(b){b.preventDefault()},"click .ui-menu-item:has(a)":function(c){var b=a(c.target).closest(".ui-menu-item");!this.mouseHandled&&b.not(".ui-state-disabled").length&&(this.mouseHandled=!0,this.select(c),b.has(".ui-menu").length?this.expand(c):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(c){var b=a(c.currentTarget);b.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(c,b)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(c,d){var b=this.active||this.element.children(".ui-menu-item").eq(0);d||this.focus(c,b)},blur:function(b){this._delay(function(){a.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(b)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(b){a(b.target).closest(".ui-menu").length||this.collapseAll(b),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var b=a(this);b.data("ui-menu-submenu-carat")&&b.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(j){function c(h){return h.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var f,l,b,k,g,d=!0;switch(j.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(j);break;case a.ui.keyCode.PAGE_DOWN:this.nextPage(j);break;case a.ui.keyCode.HOME:this._move("first","first",j);break;case a.ui.keyCode.END:this._move("last","last",j);break;case a.ui.keyCode.UP:this.previous(j);break;case a.ui.keyCode.DOWN:this.next(j);break;case a.ui.keyCode.LEFT:this.collapse(j);break;case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(j);break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(j);break;case a.ui.keyCode.ESCAPE:this.collapse(j);break;default:d=!1,l=this.previousFilter||"",b=String.fromCharCode(j.keyCode),k=!1,clearTimeout(this.filterTimer),b===l?k=!0:b=l+b,g=RegExp("^"+c(b),"i"),f=this.activeMenu.children(".ui-menu-item").filter(function(){return g.test(a(this).children("a").text())}),f=k&&-1!==f.index(this.active.next())?this.active.nextAll(".ui-menu-item"):f,f.length||(b=String.fromCharCode(j.keyCode),g=RegExp("^"+c(b),"i"),f=this.activeMenu.children(".ui-menu-item").filter(function(){return g.test(a(this).children("a").text())})),f.length?(this.focus(j,f),f.length>1?(this.previousFilter=b,this.filterTimer=this._delay(function(){delete this.previousFilter},1000)):delete this.previousFilter):delete this.previousFilter}d&&j.preventDefault()},_activate:function(b){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(b):this.select(b))},refresh:function(){var d,b=this.options.icons.submenu,c=this.element.find(this.options.menus);c.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var g=a(this),f=g.prev("a"),h=a("").addClass("ui-menu-icon ui-icon "+b).data("ui-menu-submenu-carat",!0);f.attr("aria-haspopup","true").prepend(h),g.attr("aria-labelledby",f.attr("id"))}),d=c.add(this.element),d.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),d.children(":not(.ui-menu-item)").each(function(){var f=a(this);/[^\-\u2014\u2013\s]/.test(f.text())||f.addClass("ui-widget-content ui-menu-divider")}),d.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!a.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(b,c){"icons"===b&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(c.submenu),this._super(b,c)},focus:function(c,f){var b,d;this.blur(c,c&&"focus"===c.type),this._scrollIntoView(f),this.active=f.first(),d=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",d.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),c&&"keydown"===c.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),b=f.children(".ui-menu"),b.length&&/^mouse/.test(c.type)&&this._startOpening(b),this.activeMenu=f.parent(),this._trigger("focus",c,{item:f})},_scrollIntoView:function(g){var c,d,j,b,h,f;this._hasScroll()&&(c=parseFloat(a.css(this.activeMenu[0],"borderTopWidth"))||0,d=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,j=g.offset().top-this.activeMenu.offset().top-c-d,b=this.activeMenu.scrollTop(),h=this.activeMenu.height(),f=g.height(),0>j?this.activeMenu.scrollTop(b+j):j+f>h&&this.activeMenu.scrollTop(b+j-h+f))},blur:function(b,c){c||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",b,{item:this.active}))},_startOpening:function(b){clearTimeout(this.timer),"true"===b.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(b)},this.delay))},_open:function(c){var b=a.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(c.parents(".ui-menu")).hide().attr("aria-hidden","true"),c.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(b)},collapseAll:function(c,b){clearTimeout(this.timer),this.timer=this._delay(function(){var d=b?this.element:a(c&&c.target).closest(this.element.find(".ui-menu"));d.length||(d=this.element),this._close(d),this.blur(c),this.activeMenu=d},this.delay)},_close:function(b){b||(b=this.active?this.active.parent():this.element),b.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(b){var c=this.active&&this.active.parent().closest(".ui-menu-item",this.element);c&&c.length&&(this._close(),this.focus(b,c))},expand:function(b){var c=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();c&&c.length&&(this._open(c.parent()),this._delay(function(){this.focus(b,c)}))},next:function(b){this._move("next","first",b)},previous:function(b){this._move("prev","last",b)},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(c,f,b){var d;this.active&&(d="first"===c||"last"===c?this.active["first"===c?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[c+"All"](".ui-menu-item").eq(0)),d&&d.length&&this.active||(d=this.activeMenu.children(".ui-menu-item")[f]()),this.focus(b,d)},nextPage:function(d){var b,c,f;return this.active?(this.isLastItem()||(this._hasScroll()?(c=this.active.offset().top,f=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return b=a(this),0>b.offset().top-c-f}),this.focus(d,b)):this.focus(d,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]())),undefined):(this.next(d),undefined)},previousPage:function(d){var b,c,f;return this.active?(this.isFirstItem()||(this._hasScroll()?(c=this.active.offset().top,f=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return b=a(this),b.offset().top-c+f>0}),this.focus(d,b)):this.focus(d,this.activeMenu.children(".ui-menu-item").first())),undefined):(this.next(d),undefined)},_hasScroll:function(){return this.element.outerHeight()
").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(c){return c===b?this.options.value:(this.options.value=this._constrainedValue(c),this._refreshValue(),b)},_constrainedValue:function(c){return c===b&&(c=this.options.value),this.indeterminate=c===!1,"number"!=typeof c&&(c=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,c))},_setOptions:function(c){var d=c.value;delete c.value,this._super(c),this.options.value=this._constrainedValue(d),this._refreshValue()},_setOption:function(c,d){"max"===c&&(d=Math.max(this.min,d)),this._super(c,d)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var d=this.options.value,c=this._percentage();this.valueDiv.toggle(this.indeterminate||d>this.min).toggleClass("ui-corner-right",d===this.options.max).width(c.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=a("
").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":d}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==d&&(this.oldValue=d,this._trigger("change")),d===this.options.max&&this._trigger("complete")}})})(jQuery);(function(a){var b=5;a.widget("ui.slider",a.ui.mouse,{version:"1.10.3",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var g,d,f=this.options,j=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),c="",h=[];for(d=f.values&&f.values.length||1,j.length>d&&(j.slice(d).remove(),j=j.slice(0,d)),g=j.length;d>g;g++){h.push(c)}this.handles=j.add(a(h.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(k){a(this).data("ui-slider-handle-index",k)})},_createRange:function(){var d=this.options,c="";d.range?(d.range===!0&&(d.values?d.values.length&&2!==d.values.length?d.values=[d.values[0],d.values[0]]:a.isArray(d.values)&&(d.values=d.values.slice(0)):d.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=a("
").appendTo(this.element),c="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(c+("min"===d.range||"max"===d.range?" ui-slider-range-"+d.range:""))):this.range=a([])},_setupEvents:function(){var c=this.handles.add(this.range).filter("a");this._off(c),this._on(c,this._handleEvents),this._hoverable(c),this._focusable(c)},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(p){var k,w,g,t,f,d,m,j,v=this,q=this.options;return q.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),k={x:p.pageX,y:p.pageY},w=this._normValueFromMouse(k),g=this._valueMax()-this._valueMin()+1,this.handles.each(function(h){var c=Math.abs(w-v.values(h));(g>c||g===c&&(h===v._lastChangedValue||v.values(h)===q.min))&&(g=c,t=a(this),f=h)}),d=this._start(p,f),d===!1?!1:(this._mouseSliding=!0,this._handleIndex=f,t.addClass("ui-state-active").focus(),m=t.offset(),j=!a(p.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=j?{left:0,top:0}:{left:p.pageX-m.left-t.width()/2,top:p.pageY-m.top-t.height()/2-(parseInt(t.css("borderTopWidth"),10)||0)-(parseInt(t.css("borderBottomWidth"),10)||0)+(parseInt(t.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(p,f,w),this._animateOff=!0,!0))},_mouseStart:function(){return !0},_mouseDrag:function(d){var f={x:d.pageX,y:d.pageY},c=this._normValueFromMouse(f);return this._slide(d,this._handleIndex,c),!1},_mouseStop:function(c){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(c,this._handleIndex),this._change(c,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(f){var h,d,g,j,c;return"horizontal"===this.orientation?(h=this.elementSize.width,d=f.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(h=this.elementSize.height,d=f.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),g=d/h,g>1&&(g=1),0>g&&(g=0),"vertical"===this.orientation&&(g=1-g),j=this._valueMax()-this._valueMin(),c=this._valueMin()+g*j,this._trimAlignValue(c)},_start:function(d,f){var c={handle:this.handles[f],value:this.value()};return this.options.values&&this.options.values.length&&(c.value=this.values(f),c.values=this.values()),this._trigger("start",d,c)},_slide:function(f,h,d){var g,j,c;this.options.values&&this.options.values.length?(g=this.values(h?0:1),2===this.options.values.length&&this.options.range===!0&&(0===h&&d>g||1===h&&g>d)&&(d=g),d!==this.values(h)&&(j=this.values(),j[h]=d,c=this._trigger("slide",f,{handle:this.handles[h],value:d,values:j}),g=this.values(h?0:1),c!==!1&&this.values(h,d,!0))):d!==this.value()&&(c=this._trigger("slide",f,{handle:this.handles[h],value:d}),c!==!1&&this.value(d))},_stop:function(d,f){var c={handle:this.handles[f],value:this.value()};this.options.values&&this.options.values.length&&(c.value=this.values(f),c.values=this.values()),this._trigger("stop",d,c)},_change:function(d,f){if(!this._keySliding&&!this._mouseSliding){var c={handle:this.handles[f],value:this.value()};this.options.values&&this.options.values.length&&(c.value=this.values(f),c.values=this.values()),this._lastChangedValue=f,this._trigger("change",d,c)}},value:function(c){return arguments.length?(this.options.value=this._trimAlignValue(c),this._refreshValue(),this._change(null,0),undefined):this._value()},values:function(g,d){var f,h,c;if(arguments.length>1){return this.options.values[g]=this._trimAlignValue(d),this._refreshValue(),this._change(null,g),undefined}if(!arguments.length){return this._values()}if(!a.isArray(arguments[0])){return this.options.values&&this.options.values.length?this._values(g):this.value()}for(f=this.options.values,h=arguments[0],c=0;f.length>c;c+=1){f[c]=this._trimAlignValue(h[c]),this._change(null,c)}this._refreshValue()},_setOption:function(f,c){var d,g=0;switch("range"===f&&this.options.range===!0&&("min"===c?(this.options.value=this._values(0),this.options.values=null):"max"===c&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),a.isArray(this.options.values)&&(g=this.options.values.length),a.Widget.prototype._setOption.apply(this,arguments),f){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),d=0;g>d;d+=1){this._change(null,d)}this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var c=this.options.value;return c=this._trimAlignValue(c)},_values:function(d){var g,c,f;if(arguments.length){return g=this.options.values[d],g=this._trimAlignValue(g)}if(this.options.values&&this.options.values.length){for(c=this.options.values.slice(),f=0;c.length>f;f+=1){c[f]=this._trimAlignValue(c[f])}return c}return[]},_trimAlignValue:function(d){if(this._valueMin()>=d){return this._valueMin()}if(d>=this._valueMax()){return this._valueMax()}var g=this.options.step>0?this.options.step:1,c=(d-this._valueMin())%g,f=d-c;return 2*Math.abs(c)>=g&&(f+=c>0?g:-g),parseFloat(f.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var m,j,t,f,p,d=this.options.range,c=this.options,k=this,g=this._animateOff?!1:c.animate,q={};this.options.values&&this.options.values.length?this.handles.each(function(h){j=100*((k.values(h)-k._valueMin())/(k._valueMax()-k._valueMin())),q["horizontal"===k.orientation?"left":"bottom"]=j+"%",a(this).stop(1,1)[g?"animate":"css"](q,c.animate),k.options.range===!0&&("horizontal"===k.orientation?(0===h&&k.range.stop(1,1)[g?"animate":"css"]({left:j+"%"},c.animate),1===h&&k.range[g?"animate":"css"]({width:j-m+"%"},{queue:!1,duration:c.animate})):(0===h&&k.range.stop(1,1)[g?"animate":"css"]({bottom:j+"%"},c.animate),1===h&&k.range[g?"animate":"css"]({height:j-m+"%"},{queue:!1,duration:c.animate}))),m=j}):(t=this.value(),f=this._valueMin(),p=this._valueMax(),j=p!==f?100*((t-f)/(p-f)):0,q["horizontal"===this.orientation?"left":"bottom"]=j+"%",this.handle.stop(1,1)[g?"animate":"css"](q,c.animate),"min"===d&&"horizontal"===this.orientation&&this.range.stop(1,1)[g?"animate":"css"]({width:j+"%"},c.animate),"max"===d&&"horizontal"===this.orientation&&this.range[g?"animate":"css"]({width:100-j+"%"},{queue:!1,duration:c.animate}),"min"===d&&"vertical"===this.orientation&&this.range.stop(1,1)[g?"animate":"css"]({height:j+"%"},c.animate),"max"===d&&"vertical"===this.orientation&&this.range[g?"animate":"css"]({height:100-j+"%"},{queue:!1,duration:c.animate}))},_handleEvents:{keydown:function(d){var f,j,c,h,g=a(d.target).data("ui-slider-handle-index");switch(d.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(d.preventDefault(),!this._keySliding&&(this._keySliding=!0,a(d.target).addClass("ui-state-active"),f=this._start(d,g),f===!1)){return}}switch(h=this.options.step,j=c=this.options.values&&this.options.values.length?this.values(g):this.value(),d.keyCode){case a.ui.keyCode.HOME:c=this._valueMin();break;case a.ui.keyCode.END:c=this._valueMax();break;case a.ui.keyCode.PAGE_UP:c=this._trimAlignValue(j+(this._valueMax()-this._valueMin())/b);break;case a.ui.keyCode.PAGE_DOWN:c=this._trimAlignValue(j-(this._valueMax()-this._valueMin())/b);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(j===this._valueMax()){return}c=this._trimAlignValue(j+h);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(j===this._valueMin()){return}c=this._trimAlignValue(j-h)}this._slide(d,g,c)},click:function(c){c.preventDefault()},keyup:function(d){var c=a(d.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(d,c),this._change(d,c),a(d.target).removeClass("ui-state-active"))}}})})(jQuery);(function(a){function b(c){return function(){var d=this.element.val();c.apply(this,arguments),this._refresh(),d!==this.element.val()&&this._trigger("change")}}a.widget("ui.spinner",{version:"1.10.3",defaultElement:"",widgetEventPrefix:"spin",options:{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.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var d={},c=this.element;return a.each(["min","max","step"],function(f,g){var h=c.attr(g);void 0!==h&&h.length&&(d[g]=h)}),d},_events:{keydown:function(c){this._start(c)&&this._keydown(c)&&c.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(c){return this.cancelBlur?(delete this.cancelBlur,void 0):(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",c),void 0)},mousewheel:function(c,d){if(d){if(!this.spinning&&!this._start(c)){return !1}this._spin((d>0?1:-1)*this.options.step,c),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(c)},100),c.preventDefault()}},"mousedown .ui-spinner-button":function(f){function c(){var g=this.element[0]===this.document[0].activeElement;g||(this.element.focus(),this.previous=d,this._delay(function(){this.previous=d}))}var d;d=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),f.preventDefault(),c.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,c.call(this)}),this._start(f)!==!1&&this._repeat(null,a(f.currentTarget).hasClass("ui-spinner-up")?1:-1,f)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(c){return a(c.currentTarget).hasClass("ui-state-active")?this._start(c)===!1?!1:(this._repeat(null,a(c.currentTarget).hasClass("ui-spinner-up")?1:-1,c),void 0):void 0},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var c=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=c.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(0.5*c.height())&&c.height()>0&&c.height(c.height()),this.options.disabled&&this.disable()},_keydown:function(f){var c=this.options,d=a.ui.keyCode;switch(f.keyCode){case d.UP:return this._repeat(null,1,f),!0;case d.DOWN:return this._repeat(null,-1,f),!0;case d.PAGE_UP:return this._repeat(null,c.page,f),!0;case d.PAGE_DOWN:return this._repeat(null,-c.page,f),!0}return !1},_uiSpinnerHtml:function(){return""},_buttonHtml:function(){return""},_start:function(c){return this.spinning||this._trigger("start",c)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(d,f,c){d=d||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,f,c)},d),this._spin(f*this.options.step,c)},_spin:function(d,f){var c=this.value()||0;this.counter||(this.counter=1),c=this._adjustValue(c+d*this._increment(this.counter)),this.spinning&&this._trigger("spin",f,{value:c})===!1||(this._value(c),this.counter++)},_increment:function(d){var c=this.options.incremental;return c?a.isFunction(c)?c(d):Math.floor(d*d*d/50000-d*d/500+17*d/200+1):1},_precision:function(){var c=this._precisionOf(this.options.step);return null!==this.options.min&&(c=Math.max(c,this._precisionOf(this.options.min))),c},_precisionOf:function(d){var f=""+d,c=f.indexOf(".");return -1===c?0:f.length-c-1},_adjustValue:function(d){var g,c,f=this.options;return g=null!==f.min?f.min:0,c=d-g,c=Math.round(c/f.step)*f.step,d=g+c,d=parseFloat(d.toFixed(this._precision())),null!==f.max&&d>f.max?f.max:null!==f.min&&f.min>d?f.min:d},_stop:function(c){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",c))},_setOption:function(d,f){if("culture"===d||"numberFormat"===d){var c=this._parse(this.element.val());return this.options[d]=f,this.element.val(this._format(c)),void 0}("max"===d||"min"===d||"step"===d)&&"string"==typeof f&&(f=this._parse(f)),"icons"===d&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(f.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(f.down)),this._super(d,f),"disabled"===d&&(f?(this.element.prop("disabled",!0),this.buttons.button("disable")):(this.element.prop("disabled",!1),this.buttons.button("enable")))},_setOptions:b(function(c){this._super(c),this._value(this.element.val())}),_parse:function(c){return"string"==typeof c&&""!==c&&(c=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(c,10,this.options.culture):+c),""===c||isNaN(c)?null:c},_format:function(c){return""===c?"":window.Globalize&&this.options.numberFormat?Globalize.format(c,this.options.numberFormat,this.options.culture):c},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},_value:function(d,f){var c;""!==d&&(c=this._parse(d),null!==c&&(f||(c=this._adjustValue(c)),d=this._format(c))),this.element.val(d),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:b(function(c){this._stepUp(c)}),_stepUp:function(c){this._start()&&(this._spin((c||1)*this.options.step),this._stop())},stepDown:b(function(c){this._stepDown(c)}),_stepDown:function(c){this._start()&&(this._spin((c||1)*-this.options.step),this._stop())},pageUp:b(function(c){this._stepUp((c||1)*this.options.page)}),pageDown:b(function(c){this._stepDown((c||1)*this.options.page)}),value:function(c){return arguments.length?(b(this._value).call(this,c),void 0):this._parse(this.element.val())},widget:function(){return this.uiSpinner}})})(jQuery);(function(d,g){function c(){return ++h}function f(a){return a.hash.length>1&&decodeURIComponent(a.href.replace(b,""))===decodeURIComponent(location.href.replace(b,""))}var h=0,b=/#.*$/;d.widget("ui.tabs",{version:"1.10.3",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var j=this,a=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",a.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(k){d(this).is(".ui-state-disabled")&&k.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){d(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processTabs(),a.active=this._initialActive(),d.isArray(a.disabled)&&(a.disabled=d.unique(a.disabled.concat(d.map(this.tabs.filter(".ui-state-disabled"),function(k){return j.tabs.index(k)}))).sort()),this.active=this.options.active!==!1&&this.anchors.length?this._findActive(a.active):d(),this._refresh(),this.active.length&&this.load(a.active)},_initialActive:function(){var a=this.options.active,j=this.options.collapsible,k=location.hash.substring(1);return null===a&&(k&&this.tabs.each(function(m,l){return d(l).attr("aria-controls")===k?(a=m,!1):g}),null===a&&(a=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===a||-1===a)&&(a=this.tabs.length?0:!1)),a!==!1&&(a=this.tabs.index(this.tabs.eq(a)),-1===a&&(a=j?!1:0)),!j&&a===!1&&this.anchors.length&&(a=0),a},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):d()}},_tabKeydown:function(k){var l=d(this.document[0].activeElement).closest("li"),m=this.tabs.index(l),j=!0;if(!this._handlePageNav(k)){switch(k.keyCode){case d.ui.keyCode.RIGHT:case d.ui.keyCode.DOWN:m++;break;case d.ui.keyCode.UP:case d.ui.keyCode.LEFT:j=!1,m--;break;case d.ui.keyCode.END:m=this.anchors.length-1;break;case d.ui.keyCode.HOME:m=0;break;case d.ui.keyCode.SPACE:return k.preventDefault(),clearTimeout(this.activating),this._activate(m),g;case d.ui.keyCode.ENTER:return k.preventDefault(),clearTimeout(this.activating),this._activate(m===this.options.active?!1:m),g;default:return}k.preventDefault(),clearTimeout(this.activating),m=this._focusNextTab(m,j),k.ctrlKey||(l.attr("aria-selected","false"),this.tabs.eq(m).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",m)},this.delay))}},_panelKeydown:function(a){this._handlePageNav(a)||a.ctrlKey&&a.keyCode===d.ui.keyCode.UP&&(a.preventDefault(),this.active.focus())},_handlePageNav:function(a){return a.altKey&&a.keyCode===d.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):a.altKey&&a.keyCode===d.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):g},_findNextTab:function(k,a){function j(){return k>l&&(k=0),0>k&&(k=l),k}for(var l=this.tabs.length-1;-1!==d.inArray(j(),this.options.disabled);){k=a?k+1:k-1}return k},_focusNextTab:function(a,j){return a=this._findNextTab(a,j),this.tabs.eq(a).focus(),a},_setOption:function(j,a){return"active"===j?(this._activate(a),g):"disabled"===j?(this._setupDisabled(a),g):(this._super(j,a),"collapsible"===j&&(this.element.toggleClass("ui-tabs-collapsible",a),a||this.options.active!==!1||this._activate(0)),"event"===j&&this._setupEvents(a),"heightStyle"===j&&this._setupHeightStyle(a),g)},_tabId:function(a){return a.attr("aria-controls")||"ui-tabs-"+c()},_sanitizeSelector:function(a){return a?a.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var j=this.options,a=this.tablist.children(":has(a[href])");j.disabled=d.map(a.filter(".ui-state-disabled"),function(k){return a.index(k)}),this._processTabs(),j.active!==!1&&this.anchors.length?this.active.length&&!d.contains(this.tablist[0],this.active[0])?this.tabs.length===j.disabled.length?(j.active=!1,this.active=d()):this._activate(this._findNextTab(Math.max(0,j.active-1),!1)):j.active=this.tabs.index(this.active):(j.active=!1,this.active=d()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var a=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return d("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=d(),this.anchors.each(function(p,v){var k,t,s,q=d(v).uniqueId().attr("id"),j=d(v).closest("li"),m=j.attr("aria-controls");f(v)?(k=v.hash,t=a.element.find(a._sanitizeSelector(k))):(s=a._tabId(j),k="#"+s,t=a.element.find(k),t.length||(t=a._createPanel(s),t.insertAfter(a.panels[p-1]||a.tablist)),t.attr("aria-live","polite")),t.length&&(a.panels=a.panels.add(t)),m&&j.data("ui-tabs-aria-controls",m),j.attr({"aria-controls":k.substring(1),"aria-labelledby":q}),t.attr("aria-labelledby",q)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(a){return d("
").attr("id",a).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(k){d.isArray(k)&&(k.length?k.length===this.anchors.length&&(k=!0):k=!1);for(var a,j=0;a=this.tabs[j];j++){k===!0||-1!==d.inArray(j,k)?d(a).addClass("ui-state-disabled").attr("aria-disabled","true"):d(a).removeClass("ui-state-disabled").removeAttr("aria-disabled")}this.options.disabled=k},_setupEvents:function(j){var a={click:function(k){k.preventDefault()}};j&&d.each(j.split(" "),function(k,l){a[l]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,a),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(k){var a,j=this.element.parent();"fill"===k?(a=j.height(),a-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var m=d(this),l=m.css("position");"absolute"!==l&&"fixed"!==l&&(a-=m.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){a-=d(this).outerHeight(!0)}),this.panels.each(function(){d(this).height(Math.max(0,a-d(this).innerHeight()+d(this).height()))}).css("overflow","auto")):"auto"===k&&(a=0,this.panels.each(function(){a=Math.max(a,d(this).height("").height())}).height(a))},_eventHandler:function(v){var q=this.options,y=this.active,m=d(v.currentTarget),w=m.closest("li"),k=w[0]===y[0],j=k&&q.collapsible,t=j?d():this._getPanelForTab(w),p=y.length?this._getPanelForTab(y):d(),x={oldTab:y,oldPanel:p,newTab:j?d():w,newPanel:t};v.preventDefault(),w.hasClass("ui-state-disabled")||w.hasClass("ui-tabs-loading")||this.running||k&&!q.collapsible||this._trigger("beforeActivate",v,x)===!1||(q.active=j?!1:this.tabs.index(w),this.active=k?d():w,this.xhr&&this.xhr.abort(),p.length||t.length||d.error("jQuery UI Tabs: Mismatching fragment identifier."),t.length&&this.load(this.tabs.index(w),v),this._toggle(v,x))},_toggle:function(p,k){function l(){j.running=!1,j._trigger("activate",p,k)}function t(){k.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),q.length&&j.options.show?j._show(q,j.options.show,l):(q.show(),l())}var j=this,q=k.newPanel,m=k.oldPanel;this.running=!0,m.length&&this.options.hide?this._hide(m,this.options.hide,function(){k.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),t()}):(k.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),m.hide(),t()),m.attr({"aria-expanded":"false","aria-hidden":"true"}),k.oldTab.attr("aria-selected","false"),q.length&&m.length?k.oldTab.attr("tabIndex",-1):q.length&&this.tabs.filter(function(){return 0===d(this).attr("tabIndex")}).attr("tabIndex",-1),q.attr({"aria-expanded":"true","aria-hidden":"false"}),k.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(k){var a,j=this._findActive(k);j[0]!==this.active[0]&&(j.length||(j=this.active),a=j.find(".ui-tabs-anchor")[0],this._eventHandler({target:a,currentTarget:a,preventDefault:d.noop}))},_findActive:function(a){return a===!1?d():this.tabs.eq(a)},_getIndex:function(a){return"string"==typeof a&&(a=this.anchors.index(this.anchors.filter("[href$='"+a+"']"))),a},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){d.data(this,"ui-tabs-destroy")?d(this).remove():d(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var j=d(this),a=j.data("ui-tabs-aria-controls");a?j.attr("aria-controls",a).removeData("ui-tabs-aria-controls"):j.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(a){var j=this.options.disabled;j!==!1&&(a===g?j=!1:(a=this._getIndex(a),j=d.isArray(j)?d.map(j,function(k){return k!==a?k:null}):d.map(this.tabs,function(k,l){return l!==a?l:null})),this._setupDisabled(j))},disable:function(a){var j=this.options.disabled;if(j!==!0){if(a===g){j=!0}else{if(a=this._getIndex(a),-1!==d.inArray(a,j)){return}j=d.isArray(j)?d.merge([a],j).sort():[a]}this._setupDisabled(j)}},load:function(p,k){p=this._getIndex(p);var s=this,j=this.tabs.eq(p),q=j.find(".ui-tabs-anchor"),m=this._getPanelForTab(j),l={tab:j,panel:m};f(q[0])||(this.xhr=d.ajax(this._ajaxSettings(q,k,l)),this.xhr&&"canceled"!==this.xhr.statusText&&(j.addClass("ui-tabs-loading"),m.attr("aria-busy","true"),this.xhr.success(function(a){setTimeout(function(){m.html(a),s._trigger("load",k,l)},1)}).complete(function(a,n){setTimeout(function(){"abort"===n&&s.panels.stop(!1,!0),j.removeClass("ui-tabs-loading"),m.removeAttr("aria-busy"),a===s.xhr&&delete s.xhr},1)})))},_ajaxSettings:function(k,a,j){var l=this;return{url:k.attr("href"),beforeSend:function(n,m){return l._trigger("beforeLoad",a,d.extend({jqXHR:n,ajaxSettings:m},j))}}},_getPanelForTab:function(j){var a=d(j).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+a))}})})(jQuery);(function(b){function d(h,f){var g=(h.attr("aria-describedby")||"").split(/\s+/);g.push(f),h.data("ui-tooltip-id",f).attr("aria-describedby",b.trim(g.join(" ")))}function a(h){var f=h.data("ui-tooltip-id"),g=(h.attr("aria-describedby")||"").split(/\s+/),j=b.inArray(f,g);-1!==j&&g.splice(j,1),h.removeData("ui-tooltip-id"),g=b.trim(g.join(" ")),g?h.attr("aria-describedby",g):h.removeAttr("aria-describedby")}var c=0;b.widget("ui.tooltip",{version:"1.10.3",options:{content:function(){var f=b(this).attr("title")||"";return b("").text(f).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(h,f){var g=this;return"disabled"===h?(this[f?"_disable":"_enable"](),this.options[h]=f,void 0):(this._super(h,f),"content"===h&&b.each(this.tooltips,function(j,k){g._updateContent(k)}),void 0)},_disable:function(){var f=this;b.each(this.tooltips,function(g,h){var j=b.Event("blur");j.target=j.currentTarget=h[0],f.close(j,!0)}),this.element.find(this.options.items).addBack().each(function(){var g=b(this);g.is("[title]")&&g.data("ui-tooltip-title",g.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var f=b(this);f.data("ui-tooltip-title")&&f.attr("title",f.data("ui-tooltip-title"))})},open:function(h){var f=this,g=b(h?h.target:this.element).closest(this.options.items);g.length&&!g.data("ui-tooltip-id")&&(g.attr("title")&&g.data("ui-tooltip-title",g.attr("title")),g.data("ui-tooltip-open",!0),h&&"mouseover"===h.type&&g.parents().each(function(){var k,j=b(this);j.data("ui-tooltip-open")&&(k=b.Event("blur"),k.target=k.currentTarget=this,f.close(k,!0)),j.attr("title")&&(j.uniqueId(),f.parents[this.id]={element:this,title:j.attr("title")},j.attr("title",""))}),this._updateContent(g,h))},_updateContent:function(h,k){var g,j=this.options.content,l=this,f=k?k.type:null;return"string"==typeof j?this._open(k,h,j):(g=j.call(h[0],function(m){h.data("ui-tooltip-open")&&l._delay(function(){k&&(k.type=f),this._open(k,h,m)})}),g&&this._open(k,h,g),void 0)},_open:function(j,m,t){function g(h){f.of=h,q.is(":hidden")||q.position(f)}var q,p,k,f=b.extend({},this.options.position);if(t){if(q=this._find(m),q.length){return q.find(".ui-tooltip-content").html(t),void 0}m.is("[title]")&&(j&&"mouseover"===j.type?m.attr("title",""):m.removeAttr("title")),q=this._tooltip(m),d(m,q.attr("id")),q.find(".ui-tooltip-content").html(t),this.options.track&&j&&/^mouse/.test(j.type)?(this._on(this.document,{mousemove:g}),g(j)):q.position(b.extend({of:m},this.options.position)),q.hide(),this._show(q,this.options.show),this.options.show&&this.options.show.delay&&(k=this.delayedShow=setInterval(function(){q.is(":visible")&&(g(f.of),clearInterval(k))},b.fx.interval)),this._trigger("open",j,{tooltip:q}),p={keyup:function(l){if(l.keyCode===b.ui.keyCode.ESCAPE){var h=b.Event(l);h.currentTarget=m[0],this.close(h,!0)}},remove:function(){this._removeTooltip(q)}},j&&"mouseover"!==j.type||(p.mouseleave="close"),j&&"focusin"!==j.type||(p.focusout="close"),this._on(!0,m,p)}},close:function(h){var g=this,j=b(h?h.currentTarget:this.element),f=this._find(j);this.closing||(clearInterval(this.delayedShow),j.data("ui-tooltip-title")&&j.attr("title",j.data("ui-tooltip-title")),a(j),f.stop(!0),this._hide(f,this.options.hide,function(){g._removeTooltip(b(this))}),j.removeData("ui-tooltip-open"),this._off(j,"mouseleave focusout keyup"),j[0]!==this.element[0]&&this._off(j,"remove"),this._off(this.document,"mousemove"),h&&"mouseleave"===h.type&&b.each(this.parents,function(l,k){b(k.element).attr("title",k.title),delete g.parents[l]}),this.closing=!0,this._trigger("close",h,{tooltip:f}),this.closing=!1)},_tooltip:function(g){var f="ui-tooltip-"+c++,h=b("
").attr({id:f,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return b("
").addClass("ui-tooltip-content").appendTo(h),h.appendTo(this.document[0].body),this.tooltips[f]=g,h},_find:function(g){var f=g.data("ui-tooltip-id");return f?b("#"+f):b()},_removeTooltip:function(f){f.remove(),delete this.tooltips[f.attr("id")]},_destroy:function(){var f=this;b.each(this.tooltips,function(g,h){var j=b.Event("blur");j.target=j.currentTarget=h[0],f.close(j,!0),b("#"+g).remove(),h.data("ui-tooltip-title")&&(h.attr("title",h.data("ui-tooltip-title")),h.removeData("ui-tooltip-title"))})}})})(jQuery);(function(b,c){var a="ui-effects-";b.effects={effect:{}},function(D,y){function v(f,l,d){var h=C[l.type]||{};return null==f?d||!l.def?null:l.def:(f=h.floor?~~f:parseFloat(f),isNaN(f)?l.def:h.mod?(f+h.mod)%h.mod:0>f?0:f>h.max?h.max:f)}function E(d){var f=q(),h=f._rgba=[];return d=d.toLowerCase(),x(w,function(s,p){var G,F=p.re.exec(d),u=F&&p.parse(F),n=p.space||"rgba";return u?(G=f[n](u),f[A[n].cache]=G[A[n].cache],h=f._rgba=G._rgba,!1):y}),h.length?("0,0,0,0"===h.join()&&D.extend(h,B.transparent),f):B[d]}function m(f,h,d){return d=(d+1)%1,1>6*d?f+6*(h-f)*d:1>2*d?h:2>3*d?f+6*(h-f)*(2/3-d):f}var B,k="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",g=/^([\-+])=\s*(\d+\.?\d*)/,w=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(d){return[d[1],d[2],d[3],d[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(d){return[2.55*d[1],2.55*d[2],2.55*d[3],d[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(d){return[parseInt(d[1],16),parseInt(d[2],16),parseInt(d[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(d){return[parseInt(d[1]+d[1],16),parseInt(d[2]+d[2],16),parseInt(d[3]+d[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(d){return[d[1],d[2]/100,d[3]/100,d[4]]}}],q=D.Color=function(h,d,f,l){return new D.Color.fn.parse(h,d,f,l)},A={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"}}}},C={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},z=q.support={},j=D("

")[0],x=D.each;j.style.cssText="background-color:rgba(1,1,1,.5)",z.rgba=j.style.backgroundColor.indexOf("rgba")>-1,x(A,function(d,f){f.cache="_"+d,f.props.alpha={idx:3,type:"percent",def:1}}),q.fn=D.extend(q.prototype,{parse:function(H,G,s,l){if(H===y){return this._rgba=[null,null,null,null],this}(H.jquery||H.nodeType)&&(H=D(H).css(G),G=y);var f=this,F=D.type(H),t=this._rgba=[];return G!==y&&(H=[H,G,s,l],F="array"),"string"===F?this.parse(E(H)||B._default):"array"===F?(x(A.rgba.props,function(d,h){t[h.idx]=v(H[h.idx],h)}),this):"object"===F?(H instanceof q?x(A,function(d,h){H[h.cache]&&(f[h.cache]=H[h.cache].slice())}):x(A,function(n,h){var d=h.cache;x(h.props,function(o,p){if(!f[d]&&h.to){if("alpha"===o||null==H[o]){return}f[d]=h.to(f._rgba)}f[d][p.idx]=v(H[o],p,!0)}),f[d]&&0>D.inArray(null,f[d].slice(0,3))&&(f[d][3]=1,h.from&&(f._rgba=h.from(f[d])))}),this):y},is:function(f){var d=q(f),h=!0,l=this;return x(A,function(p,n){var u,s=d[n.cache];return s&&(u=l[n.cache]||n.to&&n.to(l._rgba)||[],x(n.props,function(r,o){return null!=s[o.idx]?h=s[o.idx]===u[o.idx]:y})),h}),h},_space:function(){var d=[],f=this;return x(A,function(h,l){f[l.cache]&&d.push(h)}),d.pop()},transition:function(f,F){var p=q(f),H=p._space(),d=A[H],G=0===this.alpha()?q("transparent"):this,u=G[d.cache]||d.to(G._rgba),l=u.slice();return p=p[d.cache],x(d.props,function(s,K){var r=K.idx,I=u[r],h=p[r],J=C[K.type]||{};null!==h&&(null===I?l[r]=h:(J.mod&&(h-I>J.mod/2?I+=J.mod:I-h>J.mod/2&&(I-=J.mod)),l[r]=v((h-I)*F+I,K)))}),this[H](l)},blend:function(h){if(1===this._rgba[3]){return this}var d=this._rgba.slice(),f=d.pop(),l=q(h)._rgba;return q(D.map(d,function(n,o){return(1-f)*l[o]+f*n}))},toRgbaString:function(){var f="rgba(",d=D.map(this._rgba,function(h,l){return null==h?l>2?1:0:h});return 1===d[3]&&(d.pop(),f="rgb("),f+d.join()+")"},toHslaString:function(){var f="hsla(",d=D.map(this.hsla(),function(h,l){return null==h&&(h=l>2?1:0),l&&3>l&&(h=Math.round(100*h)+"%"),h});return 1===d[3]&&(d.pop(),f="hsl("),f+d.join()+")"},toHexString:function(h){var d=this._rgba.slice(),f=d.pop();return h&&d.push(~~(255*f)),"#"+D.map(d,function(l){return l=(l||0).toString(16),1===l.length?"0"+l:l}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),q.fn.parse.prototype=q.fn,A.hsla.to=function(M){if(null==M[0]||null==M[1]||null==M[2]){return[null,null,null,M[3]]}var I,G,N=M[0]/255,p=M[1]/255,K=M[2]/255,f=M[3],d=Math.max(N,p,K),H=Math.min(N,p,K),F=d-H,J=d+H,L=0.5*J;return I=H===d?0:N===d?60*(p-K)/F+360:p===d?60*(K-N)/F+120:60*(N-p)/F+240,G=0===F?0:0.5>=L?F/J:F/(2-J),[Math.round(I)%360,G,L,null==f?1:f]},A.hsla.from=function(h){if(null==h[0]||null==h[1]||null==h[2]){return[null,null,null,h[3]]}var p=h[0]/360,f=h[1],l=h[2],d=h[3],u=0.5>=l?l*(1+f):l+f-l*f,n=2*l-u;return[Math.round(255*m(n,u,p+1/3)),Math.round(255*m(n,u,p)),Math.round(255*m(n,u,p-1/3)),d]},x(A,function(l,t){var d=t.props,p=t.cache,f=t.to,r=t.from;q.fn[l]=function(o){if(f&&!this[p]&&(this[p]=f(this._rgba)),o===y){return this[p].slice()}var H,F=D.type(o),h="array"===F||"object"===F?o:arguments,G=this[p].slice();return x(d,function(n,I){var u=h["object"===F?n:I.idx];null==u&&(u=G[I.idx]),G[I.idx]=v(u,I)}),r?(H=q(r(G)),H[p]=G,H):q(G)},x(d,function(n,h){q.fn[n]||(q.fn[n]=function(I){var u,G=D.type(I),F="alpha"===n?this._hsla?"hsla":"rgba":l,s=this[F](),H=s[h.idx];return"undefined"===G?H:("function"===G&&(I=I.call(this,H),G=D.type(I)),null==I&&h.empty?this:("string"===G&&(u=g.exec(I),u&&(I=H+parseFloat(u[2])*("+"===u[1]?1:-1))),s[h.idx]=I,this[F](s)))})})}),q.hook=function(f){var d=f.split(" ");x(d,function(l,h){D.cssHooks[h]={set:function(u,G){var p,F,t="";if("transparent"!==G&&("string"!==D.type(G)||(p=E(G)))){if(G=q(p||G),!z.rgba&&1!==G._rgba[3]){for(F="backgroundColor"===h?u.parentNode:u;(""===t||"transparent"===t)&&F&&F.style;){try{t=D.css(F,"backgroundColor"),F=F.parentNode}catch(s){}}G=G.blend(t&&"transparent"!==t?t:"_default")}G=G.toRgbaString()}try{u.style[h]=G}catch(s){}}},D.fx.step[h]=function(n){n.colorInit||(n.start=q(n.elem,h),n.end=q(n.end),n.colorInit=!0),D.cssHooks[h].set(n.elem,n.start.transition(n.end,n.pos))}})},q.hook(k),D.cssHooks.borderColor={expand:function(d){var f={};return x(["Top","Right","Bottom","Left"],function(h,l){f["border"+l+"Color"]=d}),f}},B=D.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"}}(jQuery),function(){function f(m){var k,l,o=m.ownerDocument.defaultView?m.ownerDocument.defaultView.getComputedStyle(m,null):m.currentStyle,j={};if(o&&o.length&&o[0]&&o[o[0]]){for(l=o.length;l--;){k=o[l],"string"==typeof o[k]&&(j[b.camelCase(k)]=o[k])}}else{for(k in o){"string"==typeof o[k]&&(j[k]=o[k])}}return j}function g(l,j){var k,p,m={};for(k in j){p=j[k],l[k]!==p&&(d[k]||(b.fx.step[k]||!isNaN(parseFloat(p)))&&(m[k]=p))}return m}var h=["add","remove","toggle"],d={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};b.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(k,j){b.fx.step[j]=function(l){("none"!==l.end&&!l.setAttr||1===l.pos&&!l.setAttr)&&(jQuery.style(l.elem,j,l.end),l.setAttr=!0)}}),b.fn.addBack||(b.fn.addBack=function(j){return this.add(null==j?this.prevObject:this.prevObject.filter(j))}),b.effects.animateClass=function(m,j,n,l){var k=b.speed(j,n,l);return this.queue(function(){var q,t=b(this),s=t.attr("class")||"",p=k.children?t.find("*").addBack():t;p=p.map(function(){var o=b(this);return{el:o,start:f(this)}}),q=function(){b.each(h,function(r,o){m[o]&&t[o+"Class"](m[o])})},q(),p=p.map(function(){return this.end=f(this.el[0]),this.diff=g(this.start,this.end),this}),t.attr("class",s),p=p.map(function(){var u=this,o=b.Deferred(),r=b.extend({},k,{queue:!1,complete:function(){o.resolve(u)}});return this.el.animate(this.diff,r),o.promise()}),b.when.apply(b,p.get()).done(function(){q(),b.each(arguments,function(){var o=this.el;b.each(this.diff,function(r){o.css(r,"")})}),k.complete.call(t[0])})})},b.fn.extend({addClass:function(j){return function(l,m,o,k){return m?b.effects.animateClass.call(this,{add:l},m,o,k):j.apply(this,arguments)}}(b.fn.addClass),removeClass:function(j){return function(l,m,o,k){return arguments.length>1?b.effects.animateClass.call(this,{remove:l},m,o,k):j.apply(this,arguments)}}(b.fn.removeClass),toggleClass:function(j){return function(l,q,k,p,m){return"boolean"==typeof q||q===c?k?b.effects.animateClass.call(this,q?{add:l}:{remove:l},k,p,m):j.apply(this,arguments):b.effects.animateClass.call(this,{toggle:l},q,k,p)}}(b.fn.toggleClass),switchClass:function(m,k,l,o,j){return b.effects.animateClass.call(this,{add:k,remove:m},l,o,j)}})}(),function(){function d(j,g,h,k){return b.isPlainObject(j)&&(g=j,j=j.effect),j={effect:j},null==g&&(g={}),b.isFunction(g)&&(k=g,h=null,g={}),("number"==typeof g||b.fx.speeds[g])&&(k=h,h=g,g={}),b.isFunction(h)&&(k=h,h=null),g&&b.extend(j,g),h=h||g.duration,j.duration=b.fx.off?0:"number"==typeof h?h:h in b.fx.speeds?b.fx.speeds[h]:b.fx.speeds._default,j.complete=k||g.complete,j}function f(g){return !g||"number"==typeof g||b.fx.speeds[g]?!0:"string"!=typeof g||b.effects.effect[g]?b.isFunction(g)?!0:"object"!=typeof g||g.effect?!1:!0:!0}b.extend(b.effects,{version:"1.10.3",save:function(g,j){for(var h=0;j.length>h;h++){null!==j[h]&&g.data(a+j[h],g[0].style[j[h]])}},restore:function(h,j){var k,g;for(g=0;j.length>g;g++){null!==j[g]&&(k=h.data(a+j[g]),k===c&&(k=""),h.css(j[g],k))}},setMode:function(g,h){return"toggle"===h&&(h=g.is(":hidden")?"show":"hide"),h},getBaseline:function(h,k){var g,j;switch(h[0]){case"top":g=0;break;case"middle":g=0.5;break;case"bottom":g=1;break;default:g=h[0]/k.height}switch(h[1]){case"left":j=0;break;case"center":j=0.5;break;case"right":j=1;break;default:j=h[1]/k.width}return{x:j,y:g}},createWrapper:function(k){if(k.parent().is(".ui-effects-wrapper")){return k.parent()}var h={width:k.outerWidth(!0),height:k.outerHeight(!0),"float":k.css("float")},j=b("

").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),m={width:k.width(),height:k.height()},g=document.activeElement;try{g.id}catch(l){g=document.body}return k.wrap(j),(k[0]===g||b.contains(k[0],g))&&b(g).focus(),j=k.parent(),"static"===k.css("position")?(j.css({position:"relative"}),k.css({position:"relative"})):(b.extend(h,{position:k.css("position"),zIndex:k.css("z-index")}),b.each(["top","left","bottom","right"],function(n,o){h[o]=k.css(o),isNaN(parseInt(h[o],10))&&(h[o]="auto")}),k.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),k.css(m),j.css(h).show()},removeWrapper:function(h){var g=document.activeElement;return h.parent().is(".ui-effects-wrapper")&&(h.parent().replaceWith(h),(h[0]===g||b.contains(h[0],g))&&b(g).focus()),h},setTransition:function(j,g,h,k){return k=k||{},b.each(g,function(n,m){var l=j.cssUnit(m);l[0]>0&&(k[m]=l[0]*h+l[1])}),k}}),b.fn.extend({effect:function(){function j(q){function o(){b.isFunction(m)&&m.call(t[0]),b.isFunction(q)&&q()}var t=b(this),m=h.complete,p=h.mode;(t.is(":hidden")?"hide"===p:"show"===p)?(t[p](),o()):k.call(t[0],h,o)}var h=d.apply(this,arguments),l=h.mode,g=h.queue,k=b.effects.effect[h.effect];return b.fx.off||!k?l?this[l](h.duration,h.complete):this.each(function(){h.complete&&h.complete.call(this)}):g===!1?this.each(j):this.queue(g||"fx",j)},show:function(g){return function(j){if(f(j)){return g.apply(this,arguments)}var h=d.apply(this,arguments);return h.mode="show",this.effect.call(this,h)}}(b.fn.show),hide:function(g){return function(j){if(f(j)){return g.apply(this,arguments)}var h=d.apply(this,arguments);return h.mode="hide",this.effect.call(this,h)}}(b.fn.hide),toggle:function(g){return function(j){if(f(j)||"boolean"==typeof j){return g.apply(this,arguments)}var h=d.apply(this,arguments);return h.mode="toggle",this.effect.call(this,h)}}(b.fn.toggle),cssUnit:function(j){var g=this.css(j),h=[];return b.each(["em","px","%","pt"],function(k,l){g.indexOf(l)>0&&(h=[parseFloat(g),l])}),h}})}(),function(){var d={};b.each(["Quad","Cubic","Quart","Quint","Expo"],function(g,f){d[f]=function(h){return Math.pow(h,g+2)}}),b.extend(d,{Sine:function(f){return 1-Math.cos(f*Math.PI/2)},Circ:function(f){return 1-Math.sqrt(1-f*f)},Elastic:function(f){return 0===f||1===f?f:-Math.pow(2,8*(f-1))*Math.sin((80*(f-1)-7.5)*Math.PI/15)},Back:function(f){return f*f*(3*f-2)},Bounce:function(g){for(var h,f=4;((h=Math.pow(2,--f))-1)/11>g;){}return 1/Math.pow(4,3-f)-7.5625*Math.pow((3*h-2)/22-g,2)}}),b.each(d,function(g,f){b.easing["easeIn"+g]=f,b.easing["easeOut"+g]=function(h){return 1-f(1-h)},b.easing["easeInOut"+g]=function(h){return 0.5>h?f(2*h)/2:1-f(-2*h+2)/2}})}()})(jQuery);(function(b){var c=/up|down|vertical/,a=/up|left|vertical|horizontal/;b.effects.effect.blind=function(G,t){var D,q,j,y=b(this),x=["position","top","bottom","left","right","height","width"],C=b.effects.setMode(y,G.mode||"hide"),F=G.direction||"up",B=c.test(F),k=B?"height":"width",A=B?"top":"left",w=a.test(F),z={},E="show"===C;y.parent().is(".ui-effects-wrapper")?b.effects.save(y.parent(),x):b.effects.save(y,x),y.show(),D=b.effects.createWrapper(y).css({overflow:"hidden"}),q=D[k](),j=parseFloat(D.css(A))||0,z[k]=E?q:0,w||(y.css(B?"bottom":"right",0).css(B?"top":"left","auto").css({position:"absolute"}),z[A]=E?j:q+j),E&&(D.css(k,0),w||D.css(A,j+q)),D.animate(z,{duration:G.duration,easing:G.easing,queue:!1,complete:function(){"hide"===C&&y.hide(),b.effects.restore(y,x),b.effects.removeWrapper(y),t()}})}})(jQuery);(function(a){a.effects.effect.bounce=function(H,D){var t,A,L,z=a(this),w=["position","top","bottom","left","right","height","width"],E=a.effects.setMode(z,H.mode||"effect"),C="hide"===E,J="show"===E,q=H.direction||"up",I=H.distance,x=H.times||5,G=2*x+(J||C?1:0),B=H.duration/G,F=H.easing,k="up"===q||"down"===q?"top":"left",M="up"===q||"left"===q,K=z.queue(),j=K.length;for((J||C)&&w.push("opacity"),a.effects.save(z,w),z.show(),a.effects.createWrapper(z),I||(I=z["top"===k?"outerHeight":"outerWidth"]()/3),J&&(L={opacity:1},L[k]=0,z.css("opacity",0).css(k,M?2*-I:2*I).animate(L,B,F)),C&&(I/=Math.pow(2,x-1)),L={},L[k]=0,t=0;x>t;t++){A={},A[k]=(M?"-=":"+=")+I,z.animate(A,B,F).animate(L,B,F),I=C?2*I:I/2}C&&(A={opacity:0},A[k]=(M?"-=":"+=")+I,z.animate(A,B,F)),z.queue(function(){C&&z.hide(),a.effects.restore(z,w),a.effects.removeWrapper(z),D()}),j>1&&K.splice.apply(K,[1,0].concat(K.splice(j,G+1))),z.dequeue()}})(jQuery);(function(a){a.effects.effect.clip=function(w,q){var B,k,z,j=a(this),b=["position","top","bottom","left","right","height","width"],t=a.effects.setMode(j,w.mode||"hide"),m="show"===t,y=w.direction||"vertical",A="vertical"===y,x=A?"height":"width",g=A?"top":"left",v={};a.effects.save(j,b),j.show(),B=a.effects.createWrapper(j).css({overflow:"hidden"}),k="IMG"===j[0].tagName?B:j,z=k[x](),m&&(k.css(x,0),k.css(g,z/2)),v[x]=m?z:0,v[g]=m?0:z/2,k.animate(v,{queue:!1,duration:w.duration,easing:w.easing,complete:function(){m||j.hide(),a.effects.restore(j,b),a.effects.removeWrapper(j),q()}})}})(jQuery);(function(a){a.effects.effect.drop=function(m,j){var v,f=a(this),q=["position","top","bottom","left","right","opacity","height","width"],d=a.effects.setMode(f,m.mode||"hide"),b="show"===d,k=m.direction||"left",g="up"===k||"down"===k?"top":"left",p="up"===k||"left"===k?"pos":"neg",t={opacity:b?1:0};a.effects.save(f,q),f.show(),a.effects.createWrapper(f),v=m.distance||f["top"===g?"outerHeight":"outerWidth"](!0)/2,b&&f.css("opacity",0).css(g,"pos"===p?-v:v),t[g]=(b?"pos"===p?"+=":"-=":"pos"===p?"-=":"+=")+v,f.animate(t,{queue:!1,duration:m.duration,easing:m.easing,complete:function(){"hide"===d&&f.hide(),a.effects.restore(f,q),a.effects.removeWrapper(f),j()}})}})(jQuery);(function(a){a.effects.effect.explode=function(F,B){function q(){I.push(this),I.length===k*G&&y()}function y(){w.css({visibility:"visible"}),a(I).remove(),z||w.hide(),B()}var J,x,t,C,A,H,k=F.pieces?Math.round(Math.sqrt(F.pieces)):3,G=k,w=a(this),E=a.effects.setMode(w,F.mode||"hide"),z="show"===E,D=w.show().css("visibility","hidden").offset(),j=Math.ceil(w.outerWidth()/G),K=Math.ceil(w.outerHeight()/k),I=[];for(J=0;k>J;J++){for(C=D.top+J*K,H=J-(k-1)/2,x=0;G>x;x++){t=D.left+x*j,A=x-(G-1)/2,w.clone().appendTo("body").wrap("
").css({position:"absolute",visibility:"visible",left:-x*j,top:-J*K}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:j,height:K,left:t+(z?A*j:0),top:C+(z?H*K:0),opacity:z?0:1}).animate({left:t+(z?0:A*j),top:C+(z?0:H*K),opacity:z?1:0},F.duration||500,F.easing,q)}}}})(jQuery);(function(a){a.effects.effect.fade=function(d,b){var c=a(this),f=a.effects.setMode(c,d.mode||"toggle");c.animate({opacity:f},{queue:!1,duration:d.duration,easing:d.easing,complete:b})}})(jQuery);(function(a){a.effects.effect.fold=function(B,x){var H,q,E=a(this),k=["position","top","bottom","left","right","height","width"],b=a.effects.setMode(E,B.mode||"hide"),y="show"===b,w="hide"===b,D=B.size||15,G=/([0-9]+)%/.exec(D),C=!!B.horizFirst,j=y!==C,A=j?["width","height"]:["height","width"],t=B.duration/2,z={},F={};a.effects.save(E,k),E.show(),H=a.effects.createWrapper(E).css({overflow:"hidden"}),q=j?[H.width(),H.height()]:[H.height(),H.width()],G&&(D=parseInt(G[1],10)/100*q[w?0:1]),y&&H.css(C?{height:0,width:D}:{height:D,width:0}),z[A[0]]=y?q[0]:D,F[A[1]]=y?q[1]:0,H.animate(z,t,B.easing).animate(F,t,B.easing,function(){w&&E.hide(),a.effects.restore(E,k),a.effects.removeWrapper(E),x()})}})(jQuery);(function(a){a.effects.effect.highlight=function(f,c){var d=a(this),h=["backgroundImage","backgroundColor","opacity"],b=a.effects.setMode(d,f.mode||"show"),g={backgroundColor:d.css("backgroundColor")};"hide"===b&&(g.opacity=0),a.effects.save(d,h),d.show().css({backgroundImage:"none",backgroundColor:f.color||"#ffff99"}).animate(g,{queue:!1,duration:f.duration,easing:f.easing,complete:function(){"hide"===b&&d.hide(),a.effects.restore(d,h),c()}})}})(jQuery);(function(a){a.effects.effect.pulsate=function(t,m){var z,j=a(this),x=a.effects.setMode(j,t.mode||"show"),g="show"===x,b="hide"===x,q=g||"hide"===x,k=2*(t.times||5)+(q?1:0),w=t.duration/k,y=0,v=j.queue(),f=v.length;for((g||!j.is(":visible"))&&(j.css("opacity",0).show(),y=1),z=1;k>z;z++){j.animate({opacity:y},w,t.easing),y=1-y}j.animate({opacity:y},w,t.easing),j.queue(function(){b&&j.hide(),m()}),f>1&&v.splice.apply(v,[1,0].concat(v.splice(f,k+1))),j.dequeue()}})(jQuery);(function(a){a.effects.effect.puff=function(j,c){var f=a(this),l=a.effects.setMode(f,j.mode||"hide"),b="hide"===l,k=parseInt(j.percent,10)||150,g=k/100,d={height:f.height(),width:f.width(),outerHeight:f.outerHeight(),outerWidth:f.outerWidth()};a.extend(j,{effect:"scale",queue:!1,fade:!0,mode:l,complete:c,percent:b?k:100,from:b?d:{height:d.height*g,width:d.width*g,outerHeight:d.outerHeight*g,outerWidth:d.outerWidth*g}}),f.effect(j)},a.effects.effect.scale=function(m,j){var t=a(this),f=a.extend(!0,{},m),q=a.effects.setMode(t,m.mode||"effect"),d=parseInt(m.percent,10)||(0===parseInt(m.percent,10)?0:"hide"===q?0:100),b=m.direction||"both",k=m.origin,g={height:t.height(),width:t.width(),outerHeight:t.outerHeight(),outerWidth:t.outerWidth()},p={y:"horizontal"!==b?d/100:1,x:"vertical"!==b?d/100:1};f.effect="size",f.queue=!1,f.complete=j,"effect"!==q&&(f.origin=k||["middle","center"],f.restore=!0),f.from=m.from||("show"===q?{height:0,width:0,outerHeight:0,outerWidth:0}:g),f.to={height:g.height*p.y,width:g.width*p.x,outerHeight:g.outerHeight*p.y,outerWidth:g.outerWidth*p.x},f.fade&&("show"===q&&(f.from.opacity=0,f.to.opacity=1),"hide"===q&&(f.from.opacity=1,f.to.opacity=0)),t.effect(f)},a.effects.effect.size=function(F,B){var q,y,J,x=a(this),t=["position","top","bottom","left","right","width","height","overflow","opacity"],C=["position","top","bottom","left","right","overflow","opacity"],A=["width","height","overflow"],H=["fontSize"],k=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],G=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],w=a.effects.setMode(x,F.mode||"effect"),E=F.restore||"effect"!==w,z=F.scale||"both",D=F.origin||["middle","center"],j=x.css("position"),K=E?t:C,I={height:0,width:0,outerHeight:0,outerWidth:0};"show"===w&&x.show(),q={height:x.height(),width:x.width(),outerHeight:x.outerHeight(),outerWidth:x.outerWidth()},"toggle"===F.mode&&"show"===w?(x.from=F.to||I,x.to=F.from||q):(x.from=F.from||("show"===w?I:q),x.to=F.to||("hide"===w?I:q)),J={from:{y:x.from.height/q.height,x:x.from.width/q.width},to:{y:x.to.height/q.height,x:x.to.width/q.width}},("box"===z||"both"===z)&&(J.from.y!==J.to.y&&(K=K.concat(k),x.from=a.effects.setTransition(x,k,J.from.y,x.from),x.to=a.effects.setTransition(x,k,J.to.y,x.to)),J.from.x!==J.to.x&&(K=K.concat(G),x.from=a.effects.setTransition(x,G,J.from.x,x.from),x.to=a.effects.setTransition(x,G,J.to.x,x.to))),("content"===z||"both"===z)&&J.from.y!==J.to.y&&(K=K.concat(H).concat(A),x.from=a.effects.setTransition(x,H,J.from.y,x.from),x.to=a.effects.setTransition(x,H,J.to.y,x.to)),a.effects.save(x,K),x.show(),a.effects.createWrapper(x),x.css("overflow","hidden").css(x.from),D&&(y=a.effects.getBaseline(D,q),x.from.top=(q.outerHeight-x.outerHeight())*y.y,x.from.left=(q.outerWidth-x.outerWidth())*y.x,x.to.top=(q.outerHeight-x.to.outerHeight)*y.y,x.to.left=(q.outerWidth-x.to.outerWidth)*y.x),x.css(x.from),("content"===z||"both"===z)&&(k=k.concat(["marginTop","marginBottom"]).concat(H),G=G.concat(["marginLeft","marginRight"]),A=t.concat(k).concat(G),x.find("*[width]").each(function(){var b=a(this),c={height:b.height(),width:b.width(),outerHeight:b.outerHeight(),outerWidth:b.outerWidth()};E&&a.effects.save(b,A),b.from={height:c.height*J.from.y,width:c.width*J.from.x,outerHeight:c.outerHeight*J.from.y,outerWidth:c.outerWidth*J.from.x},b.to={height:c.height*J.to.y,width:c.width*J.to.x,outerHeight:c.height*J.to.y,outerWidth:c.width*J.to.x},J.from.y!==J.to.y&&(b.from=a.effects.setTransition(b,k,J.from.y,b.from),b.to=a.effects.setTransition(b,k,J.to.y,b.to)),J.from.x!==J.to.x&&(b.from=a.effects.setTransition(b,G,J.from.x,b.from),b.to=a.effects.setTransition(b,G,J.to.x,b.to)),b.css(b.from),b.animate(b.to,F.duration,F.easing,function(){E&&a.effects.restore(b,A)})})),x.animate(x.to,{queue:!1,duration:F.duration,easing:F.easing,complete:function(){0===x.to.opacity&&x.css("opacity",x.from.opacity),"hide"===w&&x.hide(),a.effects.restore(x,K),E||("static"===j?x.css({position:"relative",top:x.to.top,left:x.to.left}):a.each(["top","left"],function(b,c){x.css(c,function(g,d){var f=parseInt(d,10),h=b?x.to.left:x.to.top;return"auto"===d?h+"px":f+h+"px"})})),a.effects.removeWrapper(x),B()}})}})(jQuery);(function(a){a.effects.effect.shake=function(E,A){var k,x=a(this),H=["position","top","bottom","left","right","height","width"],w=a.effects.setMode(x,E.mode||"effect"),q=E.direction||"left",B=E.distance||20,z=E.times||3,G=2*z+1,j=Math.round(E.duration/G),F="up"===q||"down"===q?"top":"left",t="up"===q||"left"===q,D={},y={},C={},b=x.queue(),I=b.length;for(a.effects.save(x,H),x.show(),a.effects.createWrapper(x),D[F]=(t?"-=":"+=")+B,y[F]=(t?"+=":"-=")+2*B,C[F]=(t?"-=":"+=")+2*B,x.animate(D,j,E.easing),k=1;z>k;k++){x.animate(y,j,E.easing).animate(C,j,E.easing)}x.animate(y,j,E.easing).animate(D,j/2,E.easing).queue(function(){"hide"===w&&x.hide(),a.effects.restore(x,H),a.effects.removeWrapper(x),A()}),I>1&&b.splice.apply(b,[1,0].concat(b.splice(I,G+1))),x.dequeue()}})(jQuery);(function(a){a.effects.effect.slide=function(m,j){var v,f=a(this),q=["position","top","bottom","left","right","width","height"],d=a.effects.setMode(f,m.mode||"show"),b="show"===d,k=m.direction||"left",g="up"===k||"down"===k?"top":"left",p="up"===k||"left"===k,t={};a.effects.save(f,q),f.show(),v=m.distance||f["top"===g?"outerHeight":"outerWidth"](!0),a.effects.createWrapper(f).css({overflow:"hidden"}),b&&f.css(g,p?isNaN(v)?"-"+v:-v:v),t[g]=(b?p?"+=":"-=":p?"-=":"+=")+v,f.animate(t,{queue:!1,duration:m.duration,easing:m.easing,complete:function(){"hide"===d&&f.hide(),a.effects.restore(f,q),a.effects.removeWrapper(f),j()}})}})(jQuery);(function(a){a.effects.effect.transfer=function(p,k){var x=a(this),g=a(p.to),v="fixed"===g.css("position"),f=a("body"),b=v?f.scrollTop():0,m=v?f.scrollLeft():0,j=g.offset(),t={top:j.top-b,left:j.left-m,height:g.innerHeight(),width:g.innerWidth()},w=x.offset(),q=a("
").appendTo(document.body).addClass(p.className).css({top:w.top-b,left:w.left-m,height:x.innerHeight(),width:x.innerWidth(),position:v?"fixed":"absolute"}).animate(t,p.duration,p.easing,function(){q.remove(),k()})}})(jQuery);!function(g){function f(){}function j(b){function l(a){a.prototype.option||(a.prototype.option=function(c){b.isPlainObject(c)&&(this.options=b.extend(!0,this.options,c))})}function k(a,m){b.fn[a]=function(s){if("string"==typeof s){for(var r=h.call(arguments,1),q=0,p=this.length;p>q;q++){var o=this[q],n=b.data(o,a);if(n){if(b.isFunction(n[s])&&"_"!==s.charAt(0)){var c=n[s].apply(n,r);if(void 0!==c){return c}}else{d("no such method '"+s+"' for "+a+" instance")}}else{d("cannot call methods on "+a+" prior to initialization; attempted to call '"+s+"'")}}return this}return this.each(function(){var t=b.data(this,a);t?(t.option(s),t._init()):(t=new m(this,s),b.data(this,a,t))})}}if(b){var d="undefined"==typeof console?f:function(c){console.error(c)};return b.bridget=function(m,c){l(c),k(m,c)},b.bridget}}var h=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],j):j("object"==typeof exports?require("jquery"):g.jQuery)}(window),function(h){function g(a){var d=h.event;return d.target=d.target||d.srcElement||a,d}var m=document.documentElement,l=function(){};m.addEventListener?l=function(f,d,n){f.addEventListener(d,n,!1)}:m.attachEvent&&(l=function(b,n,f){b[n+f]=f.handleEvent?function(){var a=g(b);f.handleEvent.call(f,a)}:function(){var a=g(b);f.call(b,a)},b.attachEvent("on"+n,b[n+f])});var k=function(){};m.removeEventListener?k=function(f,d,n){f.removeEventListener(d,n,!1)}:m.detachEvent&&(k=function(n,f,p){n.detachEvent("on"+f,n[f+p]);try{delete n[f+p]}catch(o){n[f+p]=void 0}});var j={bind:l,unbind:k};"function"==typeof define&&define.amd?define("eventie/eventie",j):"object"==typeof exports?module.exports=j:h.eventie=j}(window),function(){function h(){}function g(f,d){for(var n=f.length;n--;){if(f[n].listener===d){return n}}return -1}function m(b){return function(){return this[b].apply(this,arguments)}}var l=h.prototype,k=this,j=k.EventEmitter;l.getListeners=function(n){var f,p,o=this._getEvents();if(n instanceof RegExp){f={};for(p in o){o.hasOwnProperty(p)&&n.test(p)&&(f[p]=o[p])}}else{f=o[n]||(o[n]=[])}return f},l.flattenListeners=function(f){var d,n=[];for(d=0;dl;l++){if(c=j[l]+d,"string"==typeof h[c]){return c}}}}var j="Webkit Moz ms Ms O".split(" "),h=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return f}):"object"==typeof exports?module.exports=f:g.getStyleProperty=f}(window),function(j){function h(f){var d=parseFloat(f),g=-1===f.indexOf("%")&&!isNaN(d);return g&&d}function o(){}function n(){for(var g={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},f=0,q=k.length;q>f;f++){var p=k[f];g[p]=0}return g}function m(r){function q(){if(!a){a=!0;var u=j.getComputedStyle;if(f=function(){var v=u?function(w){return u(w,null)}:function(w){return w.currentStyle};return function(w){var x=v(w);return x||l("Style returned "+x+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),x}}(),d=r("boxSizing")){var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style[d]="border-box";var s=document.body||document.documentElement;s.appendChild(t);var c=f(t);b=200===h(c.width),s.removeChild(t)}}}function p(R){if(q(),"string"==typeof R&&(R=document.querySelector(R)),R&&"object"==typeof R&&R.nodeType){var Q=f(R);if("none"===Q.display){return n()}var P={};P.width=R.offsetWidth,P.height=R.offsetHeight;for(var O=P.isBorderBox=!(!d||!Q[d]||"border-box"!==Q[d]),N=0,M=k.length;M>N;N++){var L=k[N],K=Q[L];K=g(R,K);var J=parseFloat(K);P[L]=isNaN(J)?0:J}var I=P.paddingLeft+P.paddingRight,H=P.paddingTop+P.paddingBottom,G=P.marginLeft+P.marginRight,F=P.marginTop+P.marginBottom,E=P.borderLeftWidth+P.borderRightWidth,D=P.borderTopWidth+P.borderBottomWidth,C=O&&b,B=h(Q.width);B!==!1&&(P.width=B+(C?0:I+E));var A=h(Q.height);return A!==!1&&(P.height=A+(C?0:H+D)),P.innerWidth=P.width-(I+E),P.innerHeight=P.height-(H+D),P.outerWidth=P.width+G,P.outerHeight=P.height+F,P}}function g(s,x){if(j.getComputedStyle||-1===x.indexOf("%")){return x}var w=s.style,v=w.left,u=s.runtimeStyle,t=u&&u.left;return t&&(u.left=s.currentStyle.left),w.left=x,x=w.pixelLeft,w.left=v,t&&(u.left=t),x}var f,d,b,a=!1;return p}var l="undefined"==typeof console?o:function(b){console.error(b)},k=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],m):"object"==typeof exports?module.exports=m(require("desandro-get-style-property")):j.getSize=m(j.getStyleProperty)}(window),function(j){function h(b){"function"==typeof b&&(h.isReady?b():k.push(b))}function o(b){var d="readystatechange"===b.type&&"complete"!==l.readyState;h.isReady||d||n()}function n(){h.isReady=!0;for(var b=0,g=k.length;g>b;b++){var f=k[b];f()}}function m(a){return"complete"===l.readyState?n():(a.bind(l,"DOMContentLoaded",o),a.bind(l,"readystatechange",o),a.bind(j,"load",o)),h}var l=j.document,k=[];h.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],m):"object"==typeof exports?module.exports=m(require("eventie")):j.docReady=m(j.eventie)}(window),function(r){function q(d,c){return d[l](c)}function p(d){if(!d.parentNode){var c=document.createDocumentFragment();c.appendChild(d)}}function o(g,c){p(g);for(var t=g.parentNode.querySelectorAll(c),s=0,h=t.length;h>s;s++){if(t[s]===g){return !0}}return !1}function n(b,c){return p(b),q(b,c)}var m,l=function(){if(r.matches){return"matches"}if(r.matchesSelector){return"matchesSelector"}for(var a=["webkit","moz","ms","o"],t=0,s=a.length;s>t;t++){var h=a[t],g=h+"MatchesSelector";if(r[g]){return g}}}();if(l){var k=document.createElement("div"),j=q(k,"div");m=j?q:n}else{m=o}"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return m}):"object"==typeof exports?module.exports=m:window.matchesSelector=m}(Element.prototype),function(d,c){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(b,a){return c(d,b,a)}):"object"==typeof exports?module.exports=c(d,require("doc-ready"),require("desandro-matches-selector")):d.fizzyUIUtils=c(d,d.docReady,d.matchesSelector)}(window,function(h,g,m){var l={};l.extend=function(f,d){for(var n in d){f[n]=d[n]}return f},l.modulo=function(d,c){return(d%c+c)%c};var k=Object.prototype.toString;l.isArray=function(b){return"[object Array]"==k.call(b)},l.makeArray=function(f){var d=[];if(l.isArray(f)){d=f}else{if(f&&"number"==typeof f.length){for(var o=0,n=f.length;n>o;o++){d.push(f[o])}}else{d.push(f)}}return d},l.indexOf=Array.prototype.indexOf?function(d,c){return d.indexOf(c)}:function(n,f){for(var p=0,o=n.length;o>p;p++){if(n[p]===f){return p}}return -1},l.removeFrom=function(f,d){var n=l.indexOf(f,d);-1!=n&&f.splice(n,1)},l.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(b){return b instanceof HTMLElement}:function(b){return b&&"object"==typeof b&&1==b.nodeType&&"string"==typeof b.nodeName},l.setText=function(){function d(b,f){c=c||(void 0!==document.documentElement.textContent?"textContent":"innerText"),b[c]=f}var c;return d}(),l.getParent=function(d,c){for(;d!=document.body;){if(d=d.parentNode,m(d,c)){return d}}},l.getQueryElement=function(b){return"string"==typeof b?document.querySelector(b):b},l.handleEvent=function(d){var c="on"+d.type;this[c]&&this[c](d)},l.filterFindElements=function(t,s){t=l.makeArray(t);for(var r=[],q=0,p=t.length;p>q;q++){var o=t[q];if(l.isElement(o)){if(s){m(o,s)&&r.push(o);for(var n=o.querySelectorAll(s),d=0,c=n.length;c>d;d++){r.push(n[d])}}else{r.push(o)}}}return r},l.debounceMethod=function(n,f,q){var p=n.prototype[f],o=f+"Timeout";n.prototype[f]=function(){var d=this[o];d&&clearTimeout(d);var c=arguments,r=this;this[o]=setTimeout(function(){p.apply(r,c),delete r[o]},q||100)}},l.toDashed=function(b){return b.replace(/(.)([A-Z])/g,function(f,d,n){return d+"-"+n}).toLowerCase()};var j=h.console;return l.htmlInit=function(b,a){g(function(){for(var x=l.toDashed(a),w=document.querySelectorAll(".js-"+x),v="data-"+x+"-options",u=0,t=w.length;t>u;u++){var s,r=w[u],q=r.getAttribute(v);try{s=q&&JSON.parse(q)}catch(f){j&&j.error("Error parsing "+v+" on "+r.nodeName.toLowerCase()+(r.id?"#"+r.id:"")+": "+f);continue}var d=new b(r,s),c=h.jQuery;c&&c.data(r,a,d)}})},l}),function(d,c){"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(h,g,b,a){return c(d,h,g,b,a)}):"object"==typeof exports?module.exports=c(d,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(d.Outlayer={},d.Outlayer.Item=c(d,d.EventEmitter,d.getSize,d.getStyleProperty,d.fizzyUIUtils))}(window,function(N,M,L,K,J){function I(d){for(var c in d){return !1}return c=null,!0}function H(d,c){d&&(this.element=d,this.layout=c,this.position={x:0,y:0},this._create())}var G=N.getComputedStyle,F=G?function(b){return G(b,null)}:function(b){return b.currentStyle},E=K("transition"),D=K("transform"),C=E&&D,B=!!K("perspective"),A={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[E],z=["transform","transition","transitionDuration","transitionProperty"],y=function(){for(var g={},d=0,k=z.length;k>d;d++){var j=z[d],h=K(j);h&&h!==j&&(g[j]=h)}return g}();J.extend(H.prototype,M.prototype),H.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},H.prototype.handleEvent=function(d){var c="on"+d.type;this[c]&&this[c](d)},H.prototype.getSize=function(){this.size=L(this.element)},H.prototype.css=function(g){var f=this.element.style;for(var j in g){var h=y[j]||j;f[h]=g[j]}},H.prototype.getPosition=function(){var j=F(this.element),h=this.layout.options,o=h.isOriginLeft,n=h.isOriginTop,m=parseInt(j[o?"left":"right"],10),l=parseInt(j[n?"top":"bottom"],10);m=isNaN(m)?0:m,l=isNaN(l)?0:l;var k=this.layout.size;m-=o?k.paddingLeft:k.paddingRight,l-=n?k.paddingTop:k.paddingBottom,this.position.x=m,this.position.y=l},H.prototype.layoutPosition=function(){var P=this.layout.size,O=this.layout.options,t={},s=O.isOriginLeft?"paddingLeft":"paddingRight",r=O.isOriginLeft?"left":"right",q=O.isOriginLeft?"right":"left",p=this.position.x+P[s];p=O.percentPosition&&!O.isHorizontal?p/P.width*100+"%":p+"px",t[r]=p,t[q]="";var o=O.isOriginTop?"paddingTop":"paddingBottom",n=O.isOriginTop?"top":"bottom",m=O.isOriginTop?"bottom":"top",l=this.position.y+P[o];l=O.percentPosition&&O.isHorizontal?l/P.height*100+"%":l+"px",t[n]=l,t[m]="",this.css(t),this.emitEvent("layout",[this])};var x=B?function(d,c){return"translate3d("+d+"px, "+c+"px, 0)"}:function(d,c){return"translate("+d+"px, "+c+"px)"};H.prototype._transitionTo=function(P,O){this.getPosition();var t=this.position.x,s=this.position.y,r=parseInt(P,10),q=parseInt(O,10),p=r===this.position.x&&q===this.position.y;if(this.setPosition(P,O),p&&!this.isTransitioning){return void this.layoutPosition()}var o=P-t,n=O-s,m={},l=this.layout.options;o=l.isOriginLeft?o:-o,n=l.isOriginTop?n:-n,m.transform=x(o,n),this.transition({to:m,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},H.prototype.goTo=function(d,c){this.setPosition(d,c),this.layoutPosition()},H.prototype.moveTo=C?H.prototype._transitionTo:H.prototype.goTo,H.prototype.setPosition=function(d,c){this.position.x=parseInt(d,10),this.position.y=parseInt(c,10)},H.prototype._nonTransition=function(d){this.css(d.to),d.isCleaning&&this._removeStyles(d.to);for(var c in d.onTransitionEnd){d.onTransitionEnd[c].call(this)}},H.prototype._transition=function(g){if(!parseFloat(this.layout.options.transitionDuration)){return void this._nonTransition(g)}var f=this._transn;for(var j in g.onTransitionEnd){f.onEnd[j]=g.onTransitionEnd[j]}for(j in g.to){f.ingProperties[j]=!0,g.isCleaning&&(f.clean[j]=!0)}if(g.from){this.css(g.from);var h=this.element.offsetHeight;h=null}this.enableTransition(g.to),this.css(g.to),this.isTransitioning=!0};var w=D&&J.toDashed(D)+",opacity";H.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:w,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(A,this,!1))},H.prototype.transition=H.prototype[E?"_transition":"_nonTransition"],H.prototype.onwebkitTransitionEnd=function(b){this.ontransitionend(b)},H.prototype.onotransitionend=function(b){this.ontransitionend(b)};var v={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};H.prototype.ontransitionend=function(g){if(g.target===this.element){var f=this._transn,j=v[g.propertyName]||g.propertyName;if(delete f.ingProperties[j],I(f.ingProperties)&&this.disableTransition(),j in f.clean&&(this.element.style[g.propertyName]="",delete f.clean[j]),j in f.onEnd){var h=f.onEnd[j];h.call(this),delete f.onEnd[j]}this.emitEvent("transitionEnd",[this])}},H.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(A,this,!1),this.isTransitioning=!1},H.prototype._removeStyles=function(f){var d={};for(var g in f){d[g]=""}this.css(d)};var u={transitionProperty:"",transitionDuration:""};return H.prototype.removeTransitionStyles=function(){this.css(u)},H.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},H.prototype.remove=function(){if(!E||!parseFloat(this.layout.options.transitionDuration)){return void this.removeElem()}var b=this;this.once("transitionEnd",function(){b.removeElem()}),this.hide()},H.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var f=this.layout.options,d={},g=this.getHideRevealTransitionEndProperty("visibleStyle");d[g]=this.onRevealTransitionEnd,this.transition({from:f.hiddenStyle,to:f.visibleStyle,isCleaning:!0,onTransitionEnd:d})},H.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},H.prototype.getHideRevealTransitionEndProperty=function(f){var d=this.layout.options[f];if(d.opacity){return"opacity"}for(var g in d){return g}},H.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var f=this.layout.options,d={},g=this.getHideRevealTransitionEndProperty("hiddenStyle");d[g]=this.onHideTransitionEnd,this.transition({from:f.visibleStyle,to:f.hiddenStyle,isCleaning:!0,onTransitionEnd:d})},H.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},H.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},H}),function(d,c){"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(k,j,h,b,a){return c(d,k,j,h,b,a)}):"object"==typeof exports?module.exports=c(d,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):d.Outlayer=c(d,d.eventie,d.EventEmitter,d.getSize,d.fizzyUIUtils,d.Outlayer.Item)}(window,function(x,w,v,u,t,s){function r(g,f){var j=t.getQueryElement(g);if(!j){return void (q&&q.error("Bad element for "+this.constructor.namespace+": "+(j||g)))}this.element=j,p&&(this.$element=p(this.element)),this.options=t.extend({},this.constructor.defaults),this.option(f);var h=++n;this.element.outlayerGUID=h,m[h]=this,this._create(),this.options.isInitLayout&&this.layout()}var q=x.console,p=x.jQuery,o=function(){},n=0,m={};return r.namespace="outlayer",r.Item=s,r.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},t.extend(r.prototype,v.prototype),r.prototype.option=function(b){t.extend(this.options,b)},r.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),t.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},r.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},r.prototype._itemize=function(k){for(var j=this._filterFindItemElements(k),C=this.constructor.Item,B=[],A=0,z=j.length;z>A;A++){var y=j[A],l=new C(y,this);B.push(l)}return B},r.prototype._filterFindItemElements=function(b){return t.filterFindElements(b,this.options.itemSelector)},r.prototype.getItemElements=function(){for(var f=[],d=0,g=this.items.length;g>d;d++){f.push(this.items[d].element)}return f},r.prototype.layout=function(){this._resetLayout(),this._manageStamps();var b=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,b),this._isLayoutInited=!0},r.prototype._init=r.prototype.layout,r.prototype._resetLayout=function(){this.getSize()},r.prototype.getSize=function(){this.size=u(this.element)},r.prototype._getMeasurement=function(g,d){var j,h=this.options[g];h?("string"==typeof h?j=this.element.querySelector(h):t.isElement(h)&&(j=h),this[g]=j?u(j)[d]:h):this[g]=0},r.prototype.layoutItems=function(d,c){d=this._getItemsForLayout(d),this._layoutItems(d,c),this._postLayout()},r.prototype._getItemsForLayout=function(g){for(var f=[],k=0,j=g.length;j>k;k++){var h=g[k];h.isIgnored||f.push(h)}return f},r.prototype._layoutItems=function(j,h){if(this._emitCompleteOnItems("layout",j),j&&j.length){for(var A=[],z=0,y=j.length;y>z;z++){var l=j[z],k=this._getItemLayoutPosition(l);k.item=l,k.isInstant=h||l.isLayoutInstant,A.push(k)}this._processLayoutQueue(A)}},r.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},r.prototype._processLayoutQueue=function(g){for(var f=0,j=g.length;j>f;f++){var h=g[f];this._positionItem(h.item,h.x,h.y,h.isInstant)}},r.prototype._positionItem=function(g,f,j,h){h?g.goTo(f,j):g.moveTo(f,j)},r.prototype._postLayout=function(){this.resizeContainer()},r.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var b=this._getContainerSize();b&&(this._setContainerMeasure(b.width,!0),this._setContainerMeasure(b.height,!1))}},r.prototype._getContainerSize=o,r.prototype._setContainerMeasure=function(f,d){if(void 0!==f){var g=this.size;g.isBorderBox&&(f+=d?g.paddingLeft+g.paddingRight+g.borderLeftWidth+g.borderRightWidth:g.paddingBottom+g.paddingTop+g.borderTopWidth+g.borderBottomWidth),f=Math.max(f,0),this.element.style[d?"width":"height"]=f+"px"}},r.prototype._emitCompleteOnItems=function(F,E){function D(){B.emitEvent(F+"Complete",[E])}function C(){z++,z===A&&D()}var B=this,A=E.length;if(!E||!A){return void D()}for(var z=0,y=0,l=E.length;l>y;y++){var k=E[y];k.once(F,C)}},r.prototype.ignore=function(d){var c=this.getItem(d);c&&(c.isIgnored=!0)},r.prototype.unignore=function(d){var c=this.getItem(d);c&&delete c.isIgnored},r.prototype.stamp=function(g){if(g=this._find(g)){this.stamps=this.stamps.concat(g);for(var f=0,j=g.length;j>f;f++){var h=g[f];this.ignore(h)}}},r.prototype.unstamp=function(g){if(g=this._find(g)){for(var f=0,j=g.length;j>f;f++){var h=g[f];t.removeFrom(this.stamps,h),this.unignore(h)}}},r.prototype._find=function(b){return b?("string"==typeof b&&(b=this.element.querySelectorAll(b)),b=t.makeArray(b)):void 0},r.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var f=0,d=this.stamps.length;d>f;f++){var g=this.stamps[f];this._manageStamp(g)}}},r.prototype._getBoundingRect=function(){var d=this.element.getBoundingClientRect(),c=this.size;this._boundingRect={left:d.left+c.paddingLeft+c.borderLeftWidth,top:d.top+c.paddingTop+c.borderTopWidth,right:d.right-(c.paddingRight+c.borderRightWidth),bottom:d.bottom-(c.paddingBottom+c.borderBottomWidth)}},r.prototype._manageStamp=o,r.prototype._getElementOffset=function(g){var d=g.getBoundingClientRect(),k=this._boundingRect,j=u(g),h={left:d.left-k.left-j.marginLeft,top:d.top-k.top-j.marginTop,right:k.right-d.right-j.marginRight,bottom:k.bottom-d.bottom-j.marginBottom};return h},r.prototype.handleEvent=function(d){var c="on"+d.type;this[c]&&this[c](d)},r.prototype.bindResize=function(){this.isResizeBound||(w.bind(x,"resize",this),this.isResizeBound=!0)},r.prototype.unbindResize=function(){this.isResizeBound&&w.unbind(x,"resize",this),this.isResizeBound=!1},r.prototype.onresize=function(){function d(){c.resize(),delete c.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var c=this;this.resizeTimeout=setTimeout(d,100)},r.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},r.prototype.needsResizeLayout=function(){var d=u(this.element),c=this.size&&d;return c&&d.innerWidth!==this.size.innerWidth},r.prototype.addItems=function(d){var c=this._itemize(d);return c.length&&(this.items=this.items.concat(c)),c},r.prototype.appended=function(d){var c=this.addItems(d);c.length&&(this.layoutItems(c,!0),this.reveal(c))},r.prototype.prepended=function(f){var d=this._itemize(f);if(d.length){var g=this.items.slice(0);this.items=d.concat(g),this._resetLayout(),this._manageStamps(),this.layoutItems(d,!0),this.reveal(d),this.layoutItems(g)}},r.prototype.reveal=function(g){this._emitCompleteOnItems("reveal",g);for(var f=g&&g.length,j=0;f&&f>j;j++){var h=g[j];h.reveal()}},r.prototype.hide=function(g){this._emitCompleteOnItems("hide",g);for(var f=g&&g.length,j=0;f&&f>j;j++){var h=g[j];h.hide()}},r.prototype.revealItemElements=function(d){var c=this.getItems(d);this.reveal(c)},r.prototype.hideItemElements=function(d){var c=this.getItems(d);this.hide(c)},r.prototype.getItem=function(g){for(var f=0,j=this.items.length;j>f;f++){var h=this.items[f];if(h.element===g){return h}}},r.prototype.getItems=function(j){j=t.makeArray(j);for(var h=[],z=0,y=j.length;y>z;z++){var l=j[z],k=this.getItem(l);k&&h.push(k)}return h},r.prototype.remove=function(h){var g=this.getItems(h);if(this._emitCompleteOnItems("remove",g),g&&g.length){for(var l=0,k=g.length;k>l;l++){var j=g[l];j.remove(),t.removeFrom(this.items,j)}}},r.prototype.destroy=function(){var g=this.element.style;g.height="",g.position="",g.width="";for(var f=0,k=this.items.length;k>f;f++){var j=this.items[f];j.destroy()}this.unbindResize();var h=this.element.outlayerGUID;delete m[h],delete this.element.outlayerGUID,p&&p.removeData(this.element,this.constructor.namespace)},r.data=function(d){d=t.getQueryElement(d);var c=d&&d.outlayerGUID;return c&&m[c]},r.create=function(f,d){function g(){r.apply(this,arguments)}return Object.create?g.prototype=Object.create(r.prototype):t.extend(g.prototype,r.prototype),g.prototype.constructor=g,g.defaults=t.extend({},r.defaults),t.extend(g.defaults,d),g.prototype.settings={},g.namespace=f,g.data=r.data,g.Item=function(){s.apply(this,arguments)},g.Item.prototype=new s,t.htmlInit(g,f),p&&p.bridget&&p.bridget(f,g),g},r.Item=s,r}),function(d,c){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],c):"object"==typeof exports?module.exports=c(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):d.Masonry=c(d.Outlayer,d.getSize,d.fizzyUIUtils)}(window,function(g,f,j){var h=g.create("masonry");return h.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var b=this.cols;for(this.colYs=[];b--;){this.colYs.push(0)}this.maxY=0},h.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var b=this.items[0],p=b&&b.element;this.columnWidth=p&&f(p).outerWidth||this.containerWidth}var o=this.columnWidth+=this.gutter,n=this.containerWidth+this.gutter,m=n/o,l=o-n%o,k=l&&1>l?"round":"floor";m=Math[k](m),this.cols=Math.max(m,1)},h.prototype.getContainerWidth=function(){var b=this.options.isFitWidth?this.element.parentNode:this.element,d=f(b);this.containerWidth=d&&d.innerWidth},h.prototype._getItemLayoutPosition=function(v){v.getSize();var u=v.size.outerWidth%this.columnWidth,t=u&&1>u?"round":"ceil",s=Math[t](v.size.outerWidth/this.columnWidth);s=Math.min(s,this.cols);for(var r=this._getColGroup(s),q=Math.min.apply(Math,r),p=j.indexOf(r,q),o={x:this.columnWidth*p,y:q},n=q+v.size.outerHeight,m=this.cols+1-r.length,c=0;m>c;c++){this.colYs[p+c]=n}return o},h.prototype._getColGroup=function(l){if(2>l){return this.colYs}for(var k=[],o=this.cols+1-l,n=0;o>n;n++){var m=this.colYs.slice(n,n+l);k[n]=Math.max.apply(Math,m)}return k},h.prototype._manageStamp=function(r){var q=f(r),p=this._getElementOffset(r),o=this.options.isOriginLeft?p.left:p.right,n=o+q.outerWidth,m=Math.floor(o/this.columnWidth);m=Math.max(0,m);var l=Math.floor(n/this.columnWidth);l-=n%this.columnWidth?0:1,l=Math.min(this.cols-1,l);for(var k=(this.options.isOriginTop?p.top:p.bottom)+q.outerHeight,b=m;l>=b;b++){this.colYs[b]=Math.max(k,this.colYs[b])}},h.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var b={height:this.maxY};return this.options.isFitWidth&&(b.width=this._getContainerFitWidth()),b},h.prototype._getContainerFitWidth=function(){for(var d=0,c=this.cols;--c&&0===this.colYs[c];){d++}return(this.cols-d)*this.columnWidth-this.gutter},h.prototype.needsResizeLayout=function(){var b=this.containerWidth;return this.getContainerWidth(),b!==this.containerWidth},h}); /* http://mths.be/placeholder v2.0.7 by @mathias */ (function(r,p,n){var w="placeholder" in p.createElement("input"),t="placeholder" in p.createElement("textarea"),o=n.fn,u=n.valHooks,l,m;if(w&&t){m=o.placeholder=function(){return this};m.input=m.textarea=true}else{m=o.placeholder=function(){var a=this;a.filter((w?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":v,"blur.placeholder":s}).data("placeholder-enabled",true).trigger("blur.placeholder");return a};m.input=w;m.textarea=t;l={get:function(a){var b=n(a);return b.data("placeholder-enabled")&&b.hasClass("placeholder")?"":a.value},set:function(a,c){var b=n(a);if(!b.data("placeholder-enabled")){return a.value=c}if(c==""){a.value=c;if(a!=p.activeElement){s.call(a)}}else{if(b.hasClass("placeholder")){v.call(a,true,c)||(a.value=c)}else{a.value=c}}return b}};w||(u.input=l);t||(u.textarea=l);n(function(){n(p).delegate("form","submit.placeholder",function(){var a=n(".placeholder",this).each(v);setTimeout(function(){a.each(s)},10)})});n(r).bind("beforeunload.placeholder",function(){n(".placeholder").each(function(){this.value=""})})}function q(a){var b={},c=/^jQuery\d+$/;n.each(a.attributes,function(d,f){if(f.specified&&!c.test(f.name)){b[f.name]=f.value}});return b}function v(a,d){var b=this,c=n(b);if(b.value==c.attr("placeholder")&&c.hasClass("placeholder")){if(c.data("placeholder-password")){c=c.hide().next().show().attr("id",c.removeAttr("id").data("placeholder-id"));if(a===true){return c[0].value=d}c.focus()}else{b.value="";c.removeClass("placeholder");b==p.activeElement&&b.select()}}}function s(){var c,b=this,d=n(b),a=d,f=this.id;if(b.value==""){if(b.type=="password"){if(!d.data("placeholder-textinput")){try{c=d.clone().attr({type:"text"})}catch(g){c=n("").attr(n.extend(q(this),{type:"text"}))}c.removeAttr("name").data({"placeholder-password":true,"placeholder-id":f}).bind("focus.placeholder",v);d.data({"placeholder-textinput":c,"placeholder-id":f}).before(c)}d=d.removeAttr("id").hide().prev().attr("id",f).show()}d.addClass("placeholder");d[0].value=d.attr("placeholder")}else{d.removeClass("placeholder")}}}(this,document,jQuery));(function($){if($.fn.carouFredSel){return}$.fn.caroufredsel=$.fn.carouFredSel=function(options,configs){if(this.length==0){debug(true,'No element found for "'+this.selector+'".');return this}if(this.length>1){return this.each(function(){$(this).carouFredSel(options,configs)})}var $cfs=this,$tt0=this[0],starting_position=false;if($cfs.data("_cfs_isCarousel")){starting_position=$cfs.triggerHandler("_cfs_triggerEvent","currentPosition");$cfs.trigger("_cfs_triggerEvent",["destroy",true])}$cfs._cfs_init=function(o,setOrig,start){o=go_getObject($tt0,o);o.items=go_getItemsObject($tt0,o.items);o.scroll=go_getScrollObject($tt0,o.scroll);o.auto=go_getAutoObject($tt0,o.auto);o.prev=go_getPrevNextObject($tt0,o.prev);o.next=go_getPrevNextObject($tt0,o.next);o.pagination=go_getPaginationObject($tt0,o.pagination);o.swipe=go_getSwipeObject($tt0,o.swipe);o.mousewheel=go_getMousewheelObject($tt0,o.mousewheel);if(setOrig){opts_orig=$.extend(true,{},$.fn.carouFredSel.defaults,o)}opts=$.extend(true,{},$.fn.carouFredSel.defaults,o);opts.d=cf_getDimensions(opts);crsl.direction=(opts.direction=="up"||opts.direction=="left")?"next":"prev";var a_itm=$cfs.children(),avail_primary=ms_getParentSize($wrp,opts,"width");if(is_true(opts.cookie)){opts.cookie="caroufredsel_cookie_"+conf.serialNumber}opts.maxDimension=ms_getMaxDimension(opts,avail_primary);opts.items=in_complementItems(opts.items,opts,a_itm,start);opts[opts.d.width]=in_complementPrimarySize(opts[opts.d.width],opts,a_itm);opts[opts.d.height]=in_complementSecondarySize(opts[opts.d.height],opts,a_itm);if(opts.responsive){if(!is_percentage(opts[opts.d.width])){opts[opts.d.width]="100%"}}if(is_percentage(opts[opts.d.width])){crsl.upDateOnWindowResize=true;crsl.primarySizePercentage=opts[opts.d.width];opts[opts.d.width]=ms_getPercentage(avail_primary,crsl.primarySizePercentage);if(!opts.items.visible){opts.items.visibleConf.variable=true}}if(opts.responsive){opts.usePadding=false;opts.padding=[0,0,0,0];opts.align=false;opts.items.visibleConf.variable=false}else{if(!opts.items.visible){opts=in_complementVisibleItems(opts,avail_primary)}if(!opts[opts.d.width]){if(!opts.items.visibleConf.variable&&is_number(opts.items[opts.d.width])&&opts.items.filter=="*"){opts[opts.d.width]=opts.items.visible*opts.items[opts.d.width];opts.align=false}else{opts[opts.d.width]="variable"}}if(is_undefined(opts.align)){opts.align=(is_number(opts[opts.d.width]))?"center":false}if(opts.items.visibleConf.variable){opts.items.visible=gn_getVisibleItemsNext(a_itm,opts,0)}}if(opts.items.filter!="*"&&!opts.items.visibleConf.variable){opts.items.visibleConf.org=opts.items.visible;opts.items.visible=gn_getVisibleItemsNextFilter(a_itm,opts,0)}opts.items.visible=cf_getItemsAdjust(opts.items.visible,opts,opts.items.visibleConf.adjust,$tt0);opts.items.visibleConf.old=opts.items.visible;if(opts.responsive){if(!opts.items.visibleConf.min){opts.items.visibleConf.min=opts.items.visible}if(!opts.items.visibleConf.max){opts.items.visibleConf.max=opts.items.visible}opts=in_getResponsiveValues(opts,a_itm,avail_primary)}else{opts.padding=cf_getPadding(opts.padding);if(opts.align=="top"){opts.align="left"}else{if(opts.align=="bottom"){opts.align="right"}}switch(opts.align){case"center":case"left":case"right":if(opts[opts.d.width]!="variable"){opts=in_getAlignPadding(opts,a_itm);opts.usePadding=true}break;default:opts.align=false;opts.usePadding=(opts.padding[0]==0&&opts.padding[1]==0&&opts.padding[2]==0&&opts.padding[3]==0)?false:true;break}}if(!is_number(opts.scroll.duration)){opts.scroll.duration=500}if(is_undefined(opts.scroll.items)){opts.scroll.items=(opts.responsive||opts.items.visibleConf.variable||opts.items.filter!="*")?"visible":opts.items.visible}opts.auto=$.extend(true,{},opts.scroll,opts.auto);opts.prev=$.extend(true,{},opts.scroll,opts.prev);opts.next=$.extend(true,{},opts.scroll,opts.next);opts.pagination=$.extend(true,{},opts.scroll,opts.pagination);opts.auto=go_complementAutoObject($tt0,opts.auto);opts.prev=go_complementPrevNextObject($tt0,opts.prev);opts.next=go_complementPrevNextObject($tt0,opts.next);opts.pagination=go_complementPaginationObject($tt0,opts.pagination);opts.swipe=go_complementSwipeObject($tt0,opts.swipe);opts.mousewheel=go_complementMousewheelObject($tt0,opts.mousewheel);if(opts.synchronise){opts.synchronise=cf_getSynchArr(opts.synchronise)}if(opts.auto.onPauseStart){opts.auto.onTimeoutStart=opts.auto.onPauseStart;deprecated("auto.onPauseStart","auto.onTimeoutStart")}if(opts.auto.onPausePause){opts.auto.onTimeoutPause=opts.auto.onPausePause;deprecated("auto.onPausePause","auto.onTimeoutPause")}if(opts.auto.onPauseEnd){opts.auto.onTimeoutEnd=opts.auto.onPauseEnd;deprecated("auto.onPauseEnd","auto.onTimeoutEnd")}if(opts.auto.pauseDuration){opts.auto.timeoutDuration=opts.auto.pauseDuration;deprecated("auto.pauseDuration","auto.timeoutDuration")}};$cfs._cfs_build=function(){$cfs.data("_cfs_isCarousel",true);var a_itm=$cfs.children(),orgCSS=in_mapCss($cfs,["textAlign","float","position","top","right","bottom","left","zIndex","width","height","marginTop","marginRight","marginBottom","marginLeft"]),newPosition="relative";switch(orgCSS.position){case"absolute":case"fixed":newPosition=orgCSS.position;break}$wrp.css(orgCSS).css({overflow:"hidden",position:newPosition});$cfs.data("_cfs_origCss",orgCSS).css({textAlign:"left","float":"none",position:"absolute",top:0,right:"auto",bottom:"auto",left:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0});sz_storeMargin(a_itm,opts);sz_storeSizes(a_itm,opts);if(opts.responsive){sz_setResponsiveSizes(opts,a_itm)}};$cfs._cfs_bind_events=function(){$cfs._cfs_unbind_events();$cfs.bind(cf_e("stop",conf),function(e,imm){e.stopPropagation();if(!crsl.isStopped){if(opts.auto.button){opts.auto.button.addClass(cf_c("stopped",conf))}}crsl.isStopped=true;if(opts.auto.play){opts.auto.play=false;$cfs.trigger(cf_e("pause",conf),imm)}return true});$cfs.bind(cf_e("finish",conf),function(e){e.stopPropagation();if(crsl.isScrolling){sc_stopScroll(scrl)}return true});$cfs.bind(cf_e("pause",conf),function(e,imm,res){e.stopPropagation();tmrs=sc_clearTimers(tmrs);if(imm&&crsl.isScrolling){scrl.isStopped=true;var nst=getTime()-scrl.startTime;scrl.duration-=nst;if(scrl.pre){scrl.pre.duration-=nst}if(scrl.post){scrl.post.duration-=nst}sc_stopScroll(scrl,false)}if(!crsl.isPaused&&!crsl.isScrolling){if(res){tmrs.timePassed+=getTime()-tmrs.startTime}}if(!crsl.isPaused){if(opts.auto.button){opts.auto.button.addClass(cf_c("paused",conf))}}crsl.isPaused=true;if(opts.auto.onTimeoutPause){var dur1=opts.auto.timeoutDuration-tmrs.timePassed,perc=100-Math.ceil(dur1*100/opts.auto.timeoutDuration);opts.auto.onTimeoutPause.call($tt0,perc,dur1)}return true});$cfs.bind(cf_e("play",conf),function(e,dir,del,res){e.stopPropagation();tmrs=sc_clearTimers(tmrs);var v=[dir,del,res],t=["string","number","boolean"],a=cf_sortParams(v,t);dir=a[0];del=a[1];res=a[2];if(dir!="prev"&&dir!="next"){dir=crsl.direction}if(!is_number(del)){del=0}if(!is_boolean(res)){res=false}if(res){crsl.isStopped=false;opts.auto.play=true}if(!opts.auto.play){e.stopImmediatePropagation();return debug(conf,"Carousel stopped: Not scrolling.")}if(crsl.isPaused){if(opts.auto.button){opts.auto.button.removeClass(cf_c("stopped",conf));opts.auto.button.removeClass(cf_c("paused",conf))}}crsl.isPaused=false;tmrs.startTime=getTime();var dur1=opts.auto.timeoutDuration+del;dur2=dur1-tmrs.timePassed;perc=100-Math.ceil(dur2*100/dur1);if(opts.auto.progress){tmrs.progress=setInterval(function(){var pasd=getTime()-tmrs.startTime+tmrs.timePassed,perc=Math.ceil(pasd*100/dur1);opts.auto.progress.updater.call(opts.auto.progress.bar[0],perc)},opts.auto.progress.interval)}tmrs.auto=setTimeout(function(){if(opts.auto.progress){opts.auto.progress.updater.call(opts.auto.progress.bar[0],100)}if(opts.auto.onTimeoutEnd){opts.auto.onTimeoutEnd.call($tt0,perc,dur2)}if(crsl.isScrolling){$cfs.trigger(cf_e("play",conf),dir)}else{$cfs.trigger(cf_e(dir,conf),opts.auto)}},dur2);if(opts.auto.onTimeoutStart){opts.auto.onTimeoutStart.call($tt0,perc,dur2)}return true});$cfs.bind(cf_e("resume",conf),function(e){e.stopPropagation();if(scrl.isStopped){scrl.isStopped=false;crsl.isPaused=false;crsl.isScrolling=true;scrl.startTime=getTime();sc_startScroll(scrl)}else{$cfs.trigger(cf_e("play",conf))}return true});$cfs.bind(cf_e("prev",conf)+" "+cf_e("next",conf),function(e,obj,num,clb,que){e.stopPropagation();if(crsl.isStopped||$cfs.is(":hidden")){e.stopImmediatePropagation();return debug(conf,"Carousel stopped or hidden: Not scrolling.")}var minimum=(is_number(opts.items.minimum))?opts.items.minimum:opts.items.visible+1;if(minimum>itms.total){e.stopImmediatePropagation();return debug(conf,"Not enough items ("+itms.total+" total, "+minimum+" needed): Not scrolling.")}var v=[obj,num,clb,que],t=["object","number/string","function","boolean"],a=cf_sortParams(v,t);obj=a[0];num=a[1];clb=a[2];que=a[3];var eType=e.type.slice(conf.events.prefix.length);if(!is_object(obj)){obj={}}if(is_function(clb)){obj.onAfter=clb}if(is_boolean(que)){obj.queue=que}obj=$.extend(true,{},opts[eType],obj);if(obj.conditions&&!obj.conditions.call($tt0,eType)){e.stopImmediatePropagation();return debug(conf,'Callback "conditions" returned false.')}if(!is_number(num)){if(opts.items.filter!="*"){num="visible"}else{var arr=[num,obj.items,opts[eType].items];for(var a=0,l=arr.length;a0){if(crsl.isScrolling){if(obj.queue){if(obj.queue=="last"){queu=[]}if(obj.queue!="first"||queu.length==0){$cfs.trigger(cf_e("queue",conf),[eType,[obj,num,clb]])}}e.stopImmediatePropagation();return debug(conf,"Carousel currently scrolling.")}}tmrs.timePassed=0;$cfs.trigger(cf_e("slide_"+eType,conf),[obj,num]);if(opts.synchronise){var s=opts.synchronise,c=[obj,num];for(var j=0,l=s.length;j=itms.total){itms.first-=itms.total}if(!opts.circular){if(itms.first==0&&sO.onEnd){sO.onEnd.call($tt0,"prev")}if(!opts.infinite){nv_enableNavi(opts,itms.first,conf)}}$cfs.children().slice(itms.total-nI,itms.total).prependTo($cfs);if(itms.total=0){sz_resetMargin(i_old_l,opts,opts.padding[opts.d[1]])}if(pL>=0){sz_resetMargin(i_cur_l,opts,opts.padding[opts.d[3]])}if(opts.align){opts.padding[opts.d[1]]=pR;opts.padding[opts.d[3]]=pL}a_lef[opts.d.left]=-(i_siz-oL);a_lef_vis[opts.d.left]=-(i_siz_vis-oL);a_wsz[opts.d.left]=w_siz[opts.d.width];var _s_wrapper=function(){},_a_wrapper=function(){},_s_paddingold=function(){},_a_paddingold=function(){},_s_paddingnew=function(){},_a_paddingnew=function(){},_s_paddingcur=function(){},_a_paddingcur=function(){},_onafter=function(){},_moveitems=function(){},_position=function(){};switch(sO.fx){case"crossfade":case"cover":case"cover-fade":case"uncover":case"uncover-fade":$cf2=$cfs.clone(true).appendTo($wrp);break}switch(sO.fx){case"crossfade":case"uncover":case"uncover-fade":$cf2.children().slice(0,nI).remove();$cf2.children().slice(opts.items.visibleConf.old).remove();break;case"cover":case"cover-fade":$cf2.children().slice(opts.items.visible).remove();$cf2.css(a_lef_vis);break}$cfs.css(a_lef);scrl=sc_setScroll(a_dur,sO.easing);a_cfs[opts.d.left]=(opts.usePadding)?opts.padding[opts.d[3]]:0;if(opts[opts.d.width]=="variable"||opts[opts.d.height]=="variable"){_s_wrapper=function(){$wrp.css(w_siz)};_a_wrapper=function(){scrl.anims.push([$wrp,w_siz])}}if(opts.usePadding){if(i_new_l.not(i_cur_l).length){a_cur[opts.d.marginRight]=i_cur_l.data("_cfs_origCssMargin");if(pL<0){i_cur_l.css(a_cur)}else{_s_paddingcur=function(){i_cur_l.css(a_cur)};_a_paddingcur=function(){scrl.anims.push([i_cur_l,a_cur])}}}switch(sO.fx){case"cover":case"cover-fade":$cf2.children().eq(nI-1).css(a_cur);break}if(i_new_l.not(i_old_l).length){a_old[opts.d.marginRight]=i_old_l.data("_cfs_origCssMargin");_s_paddingold=function(){i_old_l.css(a_old)};_a_paddingold=function(){scrl.anims.push([i_old_l,a_old])}}if(pR>=0){a_new[opts.d.marginRight]=i_new_l.data("_cfs_origCssMargin")+opts.padding[opts.d[1]];_s_paddingnew=function(){i_new_l.css(a_new)};_a_paddingnew=function(){scrl.anims.push([i_new_l,a_new])}}}_position=function(){$cfs.css(a_cfs)};var overFill=opts.items.visible+nI-itms.total;_moveitems=function(){if(overFill>0){$cfs.children().slice(itms.total).remove();i_old=$($cfs.children().slice(itms.total-(opts.items.visible-overFill)).get().concat($cfs.children().slice(0,overFill).get()))}sc_showHiddenItems(hiddenitems);if(opts.usePadding){var l_itm=$cfs.children().eq(opts.items.visible+nI-1);l_itm.css(opts.d.marginRight,l_itm.data("_cfs_origCssMargin"))}};var cb_arguments=sc_mapCallbackArguments(i_old,i_skp,i_new,nI,"prev",a_dur,w_siz);_onafter=function(){sc_afterScroll($cfs,$cf2,sO);crsl.isScrolling=false;clbk.onAfter=sc_fireCallbacks($tt0,sO,"onAfter",cb_arguments,clbk);queu=sc_fireQueue($cfs,queu,conf);if(!crsl.isPaused){$cfs.trigger(cf_e("play",conf))}};crsl.isScrolling=true;tmrs=sc_clearTimers(tmrs);clbk.onBefore=sc_fireCallbacks($tt0,sO,"onBefore",cb_arguments,clbk);switch(sO.fx){case"none":$cfs.css(a_cfs);_s_wrapper();_s_paddingold();_s_paddingnew();_s_paddingcur();_position();_moveitems();_onafter();break;case"fade":scrl.anims.push([$cfs,{opacity:0},function(){_s_wrapper();_s_paddingold();_s_paddingnew();_s_paddingcur();_position();_moveitems();scrl=sc_setScroll(a_dur,sO.easing);scrl.anims.push([$cfs,{opacity:1},_onafter]);sc_startScroll(scrl)}]);break;case"crossfade":$cfs.css({opacity:0});scrl.anims.push([$cf2,{opacity:0}]);scrl.anims.push([$cfs,{opacity:1},_onafter]);_a_wrapper();_s_paddingold();_s_paddingnew();_s_paddingcur();_position();_moveitems();break;case"cover":scrl.anims.push([$cf2,a_cfs,function(){_s_paddingold();_s_paddingnew();_s_paddingcur();_position();_moveitems();_onafter()}]);_a_wrapper();break;case"cover-fade":scrl.anims.push([$cfs,{opacity:0}]);scrl.anims.push([$cf2,a_cfs,function(){$cfs.css({opacity:1});_s_paddingold();_s_paddingnew();_s_paddingcur();_position();_moveitems();_onafter()}]);_a_wrapper();break;case"uncover":scrl.anims.push([$cf2,a_wsz,_onafter]);_a_wrapper();_s_paddingold();_s_paddingnew();_s_paddingcur();_position();_moveitems();break;case"uncover-fade":$cfs.css({opacity:0});scrl.anims.push([$cfs,{opacity:1}]);scrl.anims.push([$cf2,a_wsz,_onafter]);_a_wrapper();_s_paddingold();_s_paddingnew();_s_paddingcur();_position();_moveitems();break;default:scrl.anims.push([$cfs,a_cfs,function(){_moveitems();_onafter()}]);_a_wrapper();_a_paddingold();_a_paddingnew();_a_paddingcur();break}sc_startScroll(scrl);cf_setCookie(opts.cookie,$cfs,conf);$cfs.trigger(cf_e("updatePageStatus",conf),[false,w_siz]);return true});$cfs.bind(cf_e("slide_next",conf),function(e,sO,nI){e.stopPropagation();var a_itm=$cfs.children();if(!opts.circular){if(itms.first==opts.items.visible){if(opts.infinite){$cfs.trigger(cf_e("prev",conf),itms.total-1)}return e.stopImmediatePropagation()}}sz_resetMargin(a_itm,opts);if(!is_number(nI)){if(opts.items.filter!="*"){var xI=(is_number(sO.items))?sO.items:gn_getVisibleOrg($cfs,opts);nI=gn_getScrollItemsNextFilter(a_itm,opts,0,xI)}else{nI=opts.items.visible}nI=cf_getAdjust(nI,opts,sO.items,$tt0)}var lastItemNr=(itms.first==0)?itms.total:itms.first;if(!opts.circular){if(opts.items.visibleConf.variable){var vI=gn_getVisibleItemsNext(a_itm,opts,nI),xI=gn_getVisibleItemsPrev(a_itm,opts,lastItemNr-1)}else{var vI=opts.items.visible,xI=opts.items.visible}if(nI+vI>lastItemNr){nI=lastItemNr-xI}}opts.items.visibleConf.old=opts.items.visible;if(opts.items.visibleConf.variable){var vI=cf_getItemsAdjust(gn_getVisibleItemsNextTestCircular(a_itm,opts,nI,lastItemNr),opts,opts.items.visibleConf.adjust,$tt0);while(opts.items.visible-nI>=vI&&nI=0){i_new_l_m+=opts.padding[opts.d[1]]}i_new_l.css(opts.d.marginRight,i_new_l_m);if(i_cur_l.not(i_old_l).length){a_old[opts.d.marginRight]=i_old_l.data("_cfs_origCssMargin")}_s_paddingold=function(){i_old_l.css(a_old)};_a_paddingold=function(){scrl.anims.push([i_old_l,a_old])};var i_cur_l_m=i_cur_l.data("_cfs_origCssMargin");if(pL>0){i_cur_l_m+=opts.padding[opts.d[3]]}a_cur[opts.d.marginRight]=i_cur_l_m;_s_paddingcur=function(){i_cur_l.css(a_cur)};_a_paddingcur=function(){scrl.anims.push([i_cur_l,a_cur])}}_position=function(){$cfs.css(a_lef)};var overFill=opts.items.visible+nI-itms.total;_moveitems=function(){if(overFill>0){$cfs.children().slice(itms.total).remove()}var l_itm=$cfs.children().slice(0,nI).appendTo($cfs).last();if(overFill>0){i_new=gi_getCurrentItems(a_itm,opts)}sc_showHiddenItems(hiddenitems);if(opts.usePadding){if(itms.totalnum)?"next":"prev"}}if(dir=="prev"){num=itms.total-num}$cfs.trigger(cf_e(dir,conf),[obj,num,clb]);return true});$cfs.bind(cf_e("prevPage",conf),function(e,obj,clb){e.stopPropagation();var cur=$cfs.triggerHandler(cf_e("currentPage",conf));return $cfs.triggerHandler(cf_e("slideToPage",conf),[cur-1,obj,"prev",clb])});$cfs.bind(cf_e("nextPage",conf),function(e,obj,clb){e.stopPropagation();var cur=$cfs.triggerHandler(cf_e("currentPage",conf));return $cfs.triggerHandler(cf_e("slideToPage",conf),[cur+1,obj,"next",clb])});$cfs.bind(cf_e("slideToPage",conf),function(e,pag,obj,dir,clb){e.stopPropagation();if(!is_number(pag)){pag=$cfs.triggerHandler(cf_e("currentPage",conf))}var ipp=opts.pagination.items||opts.items.visible,max=Math.ceil(itms.total/ipp)-1;if(pag<0){pag=max}if(pag>max){pag=0}return $cfs.triggerHandler(cf_e("slideTo",conf),[pag*ipp,0,true,obj,dir,clb])});$cfs.bind(cf_e("jumpToStart",conf),function(e,s){e.stopPropagation();if(s){s=gn_getItemIndex(s,0,true,itms,$cfs)}else{s=0}s+=itms.first;if(s!=0){if(itms.total>0){while(s>itms.total){s-=itms.total}}$cfs.prepend($cfs.children().slice(s,itms.total))}return true});$cfs.bind(cf_e("synchronise",conf),function(e,s){e.stopPropagation();if(s){s=cf_getSynchArr(s)}else{if(opts.synchronise){s=opts.synchronise}else{return debug(conf,"No carousel to synchronise.")}}var n=$cfs.triggerHandler(cf_e("currentPosition",conf)),x=true;for(var j=0,l=s.length;j=itms.total){itms.first-=itms.total}$cfs.trigger(cf_e("updateSizes",conf));$cfs.trigger(cf_e("linkAnchors",conf));return true});$cfs.bind(cf_e("removeItem",conf),function(e,num,org,dev){e.stopPropagation();var v=[num,org,dev],t=["string/number/object","boolean","number"],a=cf_sortParams(v,t);num=a[0];org=a[1];dev=a[2];var removed=false;if(num instanceof $&&num.length>1){$removed=$();num.each(function(i,el){var $rem=$cfs.trigger(cf_e("removeItem",conf),[$(this),org,dev]);if($rem){$removed=$removed.add($rem)}});return $removed}if(is_undefined(num)||num=="end"){$removed=$cfs.children().last()}else{num=gn_getItemIndex(num,dev,org,itms,$cfs);var $removed=$cfs.children().eq(num);if($removed.length){if(nummax){nr=max}if(is_function(fn)){fn.call($tt0,nr)}return nr});$cfs.bind(cf_e("currentVisible",conf),function(e,fn){e.stopPropagation();var $i=gi_getCurrentItems($cfs.children(),opts);if(is_function(fn)){fn.call($tt0,$i)}return $i});$cfs.bind(cf_e("slice",conf),function(e,f,l,fn){e.stopPropagation();if(itms.total==0){return false}var v=[f,l,fn],t=["number","number","function"],a=cf_sortParams(v,t);f=(is_number(a[0]))?a[0]:0;l=(is_number(a[1]))?a[1]:itms.total;fn=a[2];f+=itms.first;l+=itms.first;if(items.total>0){while(f>itms.total){f-=itms.total}while(l>itms.total){l-=itms.total}while(f<0){f+=itms.total}while(l<0){l+=itms.total}}var $iA=$cfs.children(),$i;if(l>f){$i=$iA.slice(f,l)}else{$i=$($iA.slice(f,itms.total).get().concat($iA.slice(0,l).get()))}if(is_function(fn)){fn.call($tt0,$i)}return $i});$cfs.bind(cf_e("isPaused",conf)+" "+cf_e("isStopped",conf)+" "+cf_e("isScrolling",conf),function(e,fn){e.stopPropagation();var eType=e.type.slice(conf.events.prefix.length),value=crsl[eType];if(is_function(fn)){fn.call($tt0,value)}return value});$cfs.bind(cf_e("configuration",conf),function(e,a,b,c){e.stopPropagation();var reInit=false;if(is_function(a)){a.call($tt0,opts)}else{if(is_object(a)){opts_orig=$.extend(true,{},opts_orig,a);if(b!==false){reInit=true}else{opts=$.extend(true,{},opts,a)}}else{if(!is_undefined(a)){if(is_function(b)){var val=eval("opts."+a);if(is_undefined(val)){val=""}b.call($tt0,val)}else{if(!is_undefined(b)){if(typeof c!=="boolean"){c=true}eval("opts_orig."+a+" = b");if(c!==false){reInit=true}else{eval("opts."+a+" = b")}}else{return eval("opts."+a)}}}}}if(reInit){sz_resetMargin($cfs.children(),opts);$cfs._cfs_init(opts_orig);$cfs._cfs_bind_buttons();var sz=sz_setSizes($cfs,opts);$cfs.trigger(cf_e("updatePageStatus",conf),[true,sz])}return opts});$cfs.bind(cf_e("linkAnchors",conf),function(e,$con,sel){e.stopPropagation();if(is_undefined($con)){$con=$("body")}else{if(is_string($con)){$con=$($con)}}if(!is_jquery($con)||$con.length==0){return debug(conf,"Not a valid object.")}if(!is_string(sel)){sel="a.caroufredsel"}$con.find(sel).each(function(){var h=this.hash||"";if(h.length>0&&$cfs.children().index($(h))!=-1){$(this).unbind("click").click(function(e){e.preventDefault();$cfs.trigger(cf_e("slideTo",conf),h)})}});return true});$cfs.bind(cf_e("updatePageStatus",conf),function(e,build,sizes){e.stopPropagation();if(!opts.pagination.container){return}var ipp=opts.pagination.items||opts.items.visible,pgs=Math.ceil(itms.total/ipp);if(build){if(opts.pagination.anchorBuilder){opts.pagination.container.children().remove();opts.pagination.container.each(function(){for(var a=0;a=pgs){selected=0}if(selected<0){selected=pgs-1}opts.pagination.container.each(function(){$(this).children().removeClass(cf_c("selected",conf)).eq(selected).addClass(cf_c("selected",conf))});return true});$cfs.bind(cf_e("updateSizes",conf),function(e){var vI=opts.items.visible,a_itm=$cfs.children(),avail_primary=ms_getParentSize($wrp,opts,"width");itms.total=a_itm.length;if(crsl.primarySizePercentage){opts.maxDimension=avail_primary;opts[opts.d.width]=ms_getPercentage(avail_primary,crsl.primarySizePercentage)}else{opts.maxDimension=ms_getMaxDimension(opts,avail_primary)}if(opts.responsive){opts.items.width=opts.items.sizesConf.width;opts.items.height=opts.items.sizesConf.height;opts=in_getResponsiveValues(opts,a_itm,avail_primary);vI=opts.items.visible;sz_setResponsiveSizes(opts,a_itm)}else{if(opts.items.visibleConf.variable){vI=gn_getVisibleItemsNext(a_itm,opts,0)}else{if(opts.items.filter!="*"){vI=gn_getVisibleItemsNextFilter(a_itm,opts,0)}}}if(!opts.circular&&itms.first!=0&&vI>itms.first){if(opts.items.visibleConf.variable){var nI=gn_getVisibleItemsPrev(a_itm,opts,itms.first)-itms.first}else{if(opts.items.filter!="*"){var nI=gn_getVisibleItemsPrevFilter(a_itm,opts,itms.first)-itms.first}else{var nI=opts.items.visible-itms.first}}debug(conf,"Preventing non-circular: sliding "+nI+" items backward.");$cfs.trigger(cf_e("prev",conf),nI)}opts.items.visible=cf_getItemsAdjust(vI,opts,opts.items.visibleConf.adjust,$tt0);opts.items.visibleConf.old=opts.items.visible;opts=in_getAlignPadding(opts,a_itm);var sz=sz_setSizes($cfs,opts);$cfs.trigger(cf_e("updatePageStatus",conf),[true,sz]);nv_showNavi(opts,itms.total,conf);nv_enableNavi(opts,itms.first,conf);return sz});$cfs.bind(cf_e("destroy",conf),function(e,orgOrder){e.stopPropagation();tmrs=sc_clearTimers(tmrs);$cfs.data("_cfs_isCarousel",false);$cfs.trigger(cf_e("finish",conf));if(orgOrder){$cfs.trigger(cf_e("jumpToStart",conf))}sz_resetMargin($cfs.children(),opts);if(opts.responsive){$cfs.children().each(function(){$(this).css($(this).data("_cfs_origCssSizes"))})}$cfs.css($cfs.data("_cfs_origCss"));$cfs._cfs_unbind_events();$cfs._cfs_unbind_buttons();$wrp.replaceWith($cfs);return true});$cfs.bind(cf_e("debug",conf),function(e){debug(conf,"Carousel width: "+opts.width);debug(conf,"Carousel height: "+opts.height);debug(conf,"Item widths: "+opts.items.width);debug(conf,"Item heights: "+opts.items.height);debug(conf,"Number of items visible: "+opts.items.visible);if(opts.auto.play){debug(conf,"Number of items scrolled automatically: "+opts.auto.items)}if(opts.prev.button){debug(conf,"Number of items scrolled backward: "+opts.prev.items)}if(opts.next.button){debug(conf,"Number of items scrolled forward: "+opts.next.items)}return conf.debug});$cfs.bind("_cfs_triggerEvent",function(e,n,o){e.stopPropagation();return $cfs.triggerHandler(cf_e(n,conf),o)})};$cfs._cfs_unbind_events=function(){$cfs.unbind(cf_e("",conf));$cfs.unbind(cf_e("",conf,false));$cfs.unbind("_cfs_triggerEvent")};$cfs._cfs_bind_buttons=function(){$cfs._cfs_unbind_buttons();nv_showNavi(opts,itms.total,conf);nv_enableNavi(opts,itms.first,conf);if(opts.auto.pauseOnHover){var pC=bt_pauseOnHoverConfig(opts.auto.pauseOnHover);$wrp.bind(cf_e("mouseenter",conf,false),function(){$cfs.trigger(cf_e("pause",conf),pC)}).bind(cf_e("mouseleave",conf,false),function(){$cfs.trigger(cf_e("resume",conf))})}if(opts.auto.button){opts.auto.button.bind(cf_e(opts.auto.event,conf,false),function(e){e.preventDefault();var ev=false,pC=null;if(crsl.isPaused){ev="play"}else{if(opts.auto.pauseOnEvent){ev="pause";pC=bt_pauseOnHoverConfig(opts.auto.pauseOnEvent)}}if(ev){$cfs.trigger(cf_e(ev,conf),pC)}})}if(opts.prev.button){opts.prev.button.bind(cf_e(opts.prev.event,conf,false),function(e){e.preventDefault();$cfs.trigger(cf_e("prev",conf))});if(opts.prev.pauseOnHover){var pC=bt_pauseOnHoverConfig(opts.prev.pauseOnHover);opts.prev.button.bind(cf_e("mouseenter",conf,false),function(){$cfs.trigger(cf_e("pause",conf),pC)}).bind(cf_e("mouseleave",conf,false),function(){$cfs.trigger(cf_e("resume",conf))})}}if(opts.next.button){opts.next.button.bind(cf_e(opts.next.event,conf,false),function(e){e.preventDefault();$cfs.trigger(cf_e("next",conf))});if(opts.next.pauseOnHover){var pC=bt_pauseOnHoverConfig(opts.next.pauseOnHover);opts.next.button.bind(cf_e("mouseenter",conf,false),function(){$cfs.trigger(cf_e("pause",conf),pC)}).bind(cf_e("mouseleave",conf,false),function(){$cfs.trigger(cf_e("resume",conf))})}}if(opts.pagination.container){if(opts.pagination.pauseOnHover){var pC=bt_pauseOnHoverConfig(opts.pagination.pauseOnHover);opts.pagination.container.bind(cf_e("mouseenter",conf,false),function(){$cfs.trigger(cf_e("pause",conf),pC)}).bind(cf_e("mouseleave",conf,false),function(){$cfs.trigger(cf_e("resume",conf))})}}if(opts.prev.key||opts.next.key){$(document).bind(cf_e("keyup",conf,false,true,true),function(e){var k=e.keyCode;if(k==opts.next.key){e.preventDefault();$cfs.trigger(cf_e("next",conf))}if(k==opts.prev.key){e.preventDefault();$cfs.trigger(cf_e("prev",conf))}})}if(opts.pagination.keys){$(document).bind(cf_e("keyup",conf,false,true,true),function(e){var k=e.keyCode;if(k>=49&&k<58){k=(k-49)*opts.items.visible;if(k<=itms.total){e.preventDefault();$cfs.trigger(cf_e("slideTo",conf),[k,0,true,opts.pagination])}}})}if(opts.prev.wipe||opts.next.wipe){deprecated("the touchwipe-plugin","the touchSwipe-plugin");if($.fn.touchwipe){var wP=(opts.prev.wipe)?function(){$cfs.trigger(cf_e("prev",conf))}:null,wN=(opts.next.wipe)?function(){$cfs.trigger(cf_e("next",conf))}:null;if(wN||wN){if(!crsl.touchwipe){crsl.touchwipe=true;var twOps={min_move_x:30,min_move_y:30,preventDefaultEvents:true};switch(opts.direction){case"up":case"down":twOps.wipeUp=wP;twOps.wipeDown=wN;break;default:twOps.wipeLeft=wN;twOps.wipeRight=wP}$wrp.touchwipe(twOps)}}}}if($.fn.swipe){var isTouch="ontouchstart" in window;if((isTouch&&opts.swipe.onTouch)||(!isTouch&&opts.swipe.onMouse)){var scP=$.extend(true,{},opts.prev,opts.swipe),scN=$.extend(true,{},opts.next,opts.swipe),swP=function(){$cfs.trigger(cf_e("prev",conf),[scP])},swN=function(){$cfs.trigger(cf_e("next",conf),[scN])};switch(opts.direction){case"up":case"down":opts.swipe.options.swipeUp=swN;opts.swipe.options.swipeDown=swP;break;default:opts.swipe.options.swipeLeft=swN;opts.swipe.options.swipeRight=swP}if(crsl.swipe){$cfs.swipe("destroy")}$wrp.swipe(opts.swipe.options);$wrp.css("cursor","move");crsl.swipe=true}}if($.fn.mousewheel){if(opts.prev.mousewheel){deprecated("The prev.mousewheel option","the mousewheel configuration object");opts.prev.mousewheel=null;opts.mousewheel={items:bt_mousesheelNumber(opts.prev.mousewheel)}}if(opts.next.mousewheel){deprecated("The next.mousewheel option","the mousewheel configuration object");opts.next.mousewheel=null;opts.mousewheel={items:bt_mousesheelNumber(opts.next.mousewheel)}}if(opts.mousewheel){var mcP=$.extend(true,{},opts.prev,opts.mousewheel),mcN=$.extend(true,{},opts.next,opts.mousewheel);if(crsl.mousewheel){$wrp.unbind(cf_e("mousewheel",conf,false))}$wrp.bind(cf_e("mousewheel",conf,false),function(e,delta){e.preventDefault();if(delta>0){$cfs.trigger(cf_e("prev",conf),[mcP])}else{$cfs.trigger(cf_e("next",conf),[mcN])}});crsl.mousewheel=true}}if(opts.auto.play){$cfs.trigger(cf_e("play",conf),opts.auto.delay)}if(crsl.upDateOnWindowResize){var resizeFn=function(e){$cfs.trigger(cf_e("finish",conf));if(opts.auto.pauseOnResize&&!crsl.isPaused){$cfs.trigger(cf_e("play",conf))}sz_resetMargin($cfs.children(),opts);$cfs.trigger(cf_e("updateSizes",conf))};var $w=$(window),onResize=null;if($.debounce&&conf.onWindowResize=="debounce"){onResize=$.debounce(200,resizeFn)}else{if($.throttle&&conf.onWindowResize=="throttle"){onResize=$.throttle(300,resizeFn)}else{var _windowWidth=0,_windowHeight=0;onResize=function(){var nw=$w.width(),nh=$w.height();if(nw!=_windowWidth||nh!=_windowHeight){resizeFn();_windowWidth=nw;_windowHeight=nh}}}}$w.bind(cf_e("resize",conf,false,true,true),onResize)}};$cfs._cfs_unbind_buttons=function(){var ns1=cf_e("",conf),ns2=cf_e("",conf,false);ns3=cf_e("",conf,false,true,true);$(document).unbind(ns3);$(window).unbind(ns3);$wrp.unbind(ns2);if(opts.auto.button){opts.auto.button.unbind(ns2)}if(opts.prev.button){opts.prev.button.unbind(ns2)}if(opts.next.button){opts.next.button.unbind(ns2)}if(opts.pagination.container){opts.pagination.container.unbind(ns2);if(opts.pagination.anchorBuilder){opts.pagination.container.children().remove()}}if(crsl.swipe){$cfs.swipe("destroy");$wrp.css("cursor","default");crsl.swipe=false}if(crsl.mousewheel){crsl.mousewheel=false}nv_showNavi(opts,"hide",conf);nv_enableNavi(opts,"removeClass",conf)};if(is_boolean(configs)){configs={debug:configs}}var crsl={direction:"next",isPaused:true,isScrolling:false,isStopped:false,mousewheel:false,swipe:false},itms={total:$cfs.children().length,first:0},tmrs={auto:null,progress:null,startTime:getTime(),timePassed:0},scrl={isStopped:false,duration:0,startTime:0,easing:"",anims:[]},clbk={onBefore:[],onAfter:[]},queu=[],conf=$.extend(true,{},$.fn.carouFredSel.configs,configs),opts={},opts_orig=$.extend(true,{},options),$wrp=$cfs.wrap("<"+conf.wrapper.element+' class="'+conf.wrapper.classname+'" />').parent();conf.selector=$cfs.selector;conf.serialNumber=$.fn.carouFredSel.serialNumber++;$cfs._cfs_init(opts_orig,true,starting_position);$cfs._cfs_build();$cfs._cfs_bind_events();$cfs._cfs_bind_buttons();if(is_array(opts.items.start)){var start_arr=opts.items.start}else{var start_arr=[];if(opts.items.start!=0){start_arr.push(opts.items.start)}}if(opts.cookie){start_arr.unshift(parseInt(cf_getCookie(opts.cookie),10))}if(start_arr.length>0){for(var a=0,l=start_arr.length;a'+nr+"
"};$.fn.carouFredSel.progressbarUpdater=function(perc){$(this).css("width",perc+"%")};$.fn.carouFredSel.cookie={get:function(n){n+="=";var ca=document.cookie.split(";");for(var a=0,l=ca.length;at){debug(c,"Not enough items ("+t+" total, "+minimum+" needed): Hiding navigation.");var f="hide"}else{var f="show"}}var s=(f=="show")?"removeClass":"addClass",h=cf_c("hidden",c);if(o.auto.button){o.auto.button[f]()[s](h)}if(o.prev.button){o.prev.button[f]()[s](h)}if(o.next.button){o.next.button[f]()[s](h)}if(o.pagination.container){o.pagination.container[f]()[s](h)}}function nv_enableNavi(o,f,c){if(o.circular||o.infinite){return}var fx=(f=="removeClass"||f=="addClass")?f:false,di=cf_c("disabled",c);if(o.auto.button&&fx){o.auto.button[fx](di)}if(o.prev.button){var fn=fx||(f==0)?"addClass":"removeClass";o.prev.button[fn](di)}if(o.next.button){var fn=fx||(f==o.items.visible)?"addClass":"removeClass";o.next.button[fn](di)}}function go_getObject($tt,obj){if(is_function(obj)){obj=obj.call($tt)}else{if(is_undefined(obj)){obj={}}}return obj}function go_getItemsObject($tt,obj){obj=go_getObject($tt,obj);if(is_number(obj)){obj={visible:obj}}else{if(obj=="variable"){obj={visible:obj,width:obj,height:obj}}else{if(!is_object(obj)){obj={}}}}return obj}function go_getScrollObject($tt,obj){obj=go_getObject($tt,obj);if(is_number(obj)){if(obj<=50){obj={items:obj}}else{obj={duration:obj}}}else{if(is_string(obj)){obj={easing:obj}}else{if(!is_object(obj)){obj={}}}}return obj}function go_getNaviObject($tt,obj){obj=go_getObject($tt,obj);if(is_string(obj)){var temp=cf_getKeyCode(obj);if(temp==-1){obj=$(obj)}else{obj=temp}}return obj}function go_getAutoObject($tt,obj){obj=go_getNaviObject($tt,obj);if(is_jquery(obj)){obj={button:obj}}else{if(is_boolean(obj)){obj={play:obj}}else{if(is_number(obj)){obj={timeoutDuration:obj}}}}if(obj.progress){if(is_string(obj.progress)||is_jquery(obj.progress)){obj.progress={bar:obj.progress}}}return obj}function go_complementAutoObject($tt,obj){if(is_function(obj.button)){obj.button=obj.button.call($tt)}if(is_string(obj.button)){obj.button=$(obj.button)}if(!is_boolean(obj.play)){obj.play=true}if(!is_number(obj.delay)){obj.delay=0}if(is_undefined(obj.pauseOnEvent)){obj.pauseOnEvent=true}if(!is_boolean(obj.pauseOnResize)){obj.pauseOnResize=true}if(!is_number(obj.timeoutDuration)){obj.timeoutDuration=(obj.duration<10)?2500:obj.duration*5}if(obj.progress){if(is_function(obj.progress.bar)){obj.progress.bar=obj.progress.bar.call($tt)}if(is_string(obj.progress.bar)){obj.progress.bar=$(obj.progress.bar)}if(obj.progress.bar){if(!is_function(obj.progress.updater)){obj.progress.updater=$.fn.carouFredSel.progressbarUpdater}if(!is_number(obj.progress.interval)){obj.progress.interval=50}}else{obj.progress=false}}return obj}function go_getPrevNextObject($tt,obj){obj=go_getNaviObject($tt,obj);if(is_jquery(obj)){obj={button:obj}}else{if(is_number(obj)){obj={key:obj}}}return obj}function go_complementPrevNextObject($tt,obj){if(is_function(obj.button)){obj.button=obj.button.call($tt)}if(is_string(obj.button)){obj.button=$(obj.button)}if(is_string(obj.key)){obj.key=cf_getKeyCode(obj.key)}return obj}function go_getPaginationObject($tt,obj){obj=go_getNaviObject($tt,obj);if(is_jquery(obj)){obj={container:obj}}else{if(is_boolean(obj)){obj={keys:obj}}}return obj}function go_complementPaginationObject($tt,obj){if(is_function(obj.container)){obj.container=obj.container.call($tt)}if(is_string(obj.container)){obj.container=$(obj.container)}if(!is_number(obj.items)){obj.items=false}if(!is_boolean(obj.keys)){obj.keys=false}if(!is_function(obj.anchorBuilder)&&!is_false(obj.anchorBuilder)){obj.anchorBuilder=$.fn.carouFredSel.pageAnchorBuilder}if(!is_number(obj.deviation)){obj.deviation=0}return obj}function go_getSwipeObject($tt,obj){if(is_function(obj)){obj=obj.call($tt)}if(is_undefined(obj)){obj={onTouch:false}}if(is_true(obj)){obj={onTouch:obj}}else{if(is_number(obj)){obj={items:obj}}}return obj}function go_complementSwipeObject($tt,obj){if(!is_boolean(obj.onTouch)){obj.onTouch=true}if(!is_boolean(obj.onMouse)){obj.onMouse=false}if(!is_object(obj.options)){obj.options={}}if(!is_boolean(obj.options.triggerOnTouchEnd)){obj.options.triggerOnTouchEnd=false}return obj}function go_getMousewheelObject($tt,obj){if(is_function(obj)){obj=obj.call($tt)}if(is_true(obj)){obj={}}else{if(is_number(obj)){obj={items:obj}}else{if(is_undefined(obj)){obj=false}}}return obj}function go_complementMousewheelObject($tt,obj){return obj}function gn_getItemIndex(num,dev,org,items,$cfs){if(is_string(num)){num=$(num,$cfs)}if(is_object(num)){num=$(num,$cfs)}if(is_jquery(num)){num=$cfs.children().index(num);if(!is_boolean(org)){org=false}}else{if(!is_boolean(org)){org=true}}if(!is_number(num)){num=0}if(!is_number(dev)){dev=0}if(org){num+=items.first}num+=dev;if(items.total>0){while(num>=items.total){num-=items.total}while(num<0){num+=items.total}}return num}function gn_getVisibleItemsPrev(i,o,s){var t=0,x=0;for(var a=s;a>=0;a--){var j=i.eq(a);t+=(j.is(":visible"))?j[o.d.outerWidth](true):0;if(t>o.maxDimension){return x}if(a==0){a=i.length}x++}}function gn_getVisibleItemsPrevFilter(i,o,s){return gn_getItemsPrevFilter(i,o.items.filter,o.items.visibleConf.org,s)}function gn_getScrollItemsPrevFilter(i,o,s,m){return gn_getItemsPrevFilter(i,o.items.filter,m,s)}function gn_getItemsPrevFilter(i,f,m,s){var t=0,x=0;for(var a=s,l=i.length;a>=0;a--){x++;if(x==l){return x}var j=i.eq(a);if(j.is(f)){t++;if(t==m){return x}}if(a==0){a=l}}}function gn_getVisibleOrg($c,o){return o.items.visibleConf.org||$c.children().slice(0,o.items.visible).filter(o.items.filter).length}function gn_getVisibleItemsNext(i,o,s){var t=0,x=0;for(var a=s,l=i.length-1;a<=l;a++){var j=i.eq(a);t+=(j.is(":visible"))?j[o.d.outerWidth](true):0;if(t>o.maxDimension){return x}x++;if(x==l+1){return x}if(a==l){a=-1}}}function gn_getVisibleItemsNextTestCircular(i,o,s,l){var v=gn_getVisibleItemsNext(i,o,s);if(!o.circular){if(s+v>l){v=l-s}}return v}function gn_getVisibleItemsNextFilter(i,o,s){return gn_getItemsNextFilter(i,o.items.filter,o.items.visibleConf.org,s,o.circular)}function gn_getScrollItemsNextFilter(i,o,s,m){return gn_getItemsNextFilter(i,o.items.filter,m+1,s,o.circular)-1}function gn_getItemsNextFilter(i,f,m,s,c){var t=0,x=0;for(var a=s,l=i.length-1;a<=l;a++){x++;if(x>=l){return x}var j=i.eq(a);if(j.is(f)){t++;if(t==m){return x}}if(a==l){a=-1}}}function gi_getCurrentItems(i,o){return i.slice(0,o.items.visible)}function gi_getOldItemsPrev(i,o,n){return i.slice(n,o.items.visibleConf.old+n)}function gi_getNewItemsPrev(i,o){return i.slice(0,o.items.visible)}function gi_getOldItemsNext(i,o){return i.slice(0,o.items.visibleConf.old)}function gi_getNewItemsNext(i,o,n){return i.slice(n,o.items.visible+n)}function sz_storeMargin(i,o,d){if(o.usePadding){if(!is_string(d)){d="_cfs_origCssMargin"}i.each(function(){var j=$(this),m=parseInt(j.css(o.d.marginRight),10);if(!is_number(m)){m=0}j.data(d,m)})}}function sz_resetMargin(i,o,m){if(o.usePadding){var x=(is_boolean(m))?m:false;if(!is_number(m)){m=0}sz_storeMargin(i,o,"_cfs_tempCssMargin");i.each(function(){var j=$(this);j.css(o.d.marginRight,((x)?j.data("_cfs_tempCssMargin"):m+j.data("_cfs_origCssMargin")))})}}function sz_storeSizes(i,o){if(o.responsive){i.each(function(){var j=$(this),s=in_mapCss(j,["width","height"]);j.data("_cfs_origCssSizes",s)})}}function sz_setResponsiveSizes(o,all){var visb=o.items.visible,newS=o.items[o.d.width],seco=o[o.d.height],secp=is_percentage(seco);all.each(function(){var $t=$(this),nw=newS-ms_getPaddingBorderMargin($t,o,"Width");$t[o.d.width](nw);if(secp){$t[o.d.height](ms_getPercentage(nw,seco))}})}function sz_setSizes($c,o){var $w=$c.parent(),$i=$c.children(),$v=gi_getCurrentItems($i,o),sz=cf_mapWrapperSizes(ms_getSizes($v,o,true),o,false);$w.css(sz);if(o.usePadding){var p=o.padding,r=p[o.d[1]];if(o.align&&r<0){r=0}var $l=$v.last();$l.css(o.d.marginRight,$l.data("_cfs_origCssMargin")+r);$c.css(o.d.top,p[o.d[0]]);$c.css(o.d.left,p[o.d[3]])}$c.css(o.d.width,sz[o.d.width]+(ms_getTotalSize($i,o,"width")*2));$c.css(o.d.height,ms_getLargestSize($i,o,"height"));return sz}function ms_getSizes(i,o,wrapper){return[ms_getTotalSize(i,o,"width",wrapper),ms_getLargestSize(i,o,"height",wrapper)]}function ms_getLargestSize(i,o,dim,wrapper){if(!is_boolean(wrapper)){wrapper=false}if(is_number(o[o.d[dim]])&&wrapper){return o[o.d[dim]]}if(is_number(o.items[o.d[dim]])){return o.items[o.d[dim]]}dim=(dim.toLowerCase().indexOf("width")>-1)?"outerWidth":"outerHeight";return ms_getTrueLargestSize(i,o,dim)}function ms_getTrueLargestSize(i,o,dim){var s=0;for(var a=0,l=i.length;a-1)?"outerWidth":"outerHeight",s=0;for(var a=0,l=i.length;a-1&&is_undefined(arr[b])){arr[b]=vals[a];break}}}return arr}function cf_getPadding(p){if(is_undefined(p)){return[0,0,0,0]}if(is_number(p)){return[p,p,p,p]}if(is_string(p)){p=p.split("px").join("").split("em").join("").split(" ")}if(!is_array(p)){return[0,0,0,0]}for(var i=0;i<4;i++){p[i]=parseInt(p[i],10)}switch(p.length){case 0:return[0,0,0,0];case 1:return[p[0],p[0],p[0],p[0]];case 2:return[p[0],p[1],p[0],p[1]];case 3:return[p[0],p[1],p[2],p[1]];default:return[p[0],p[1],p[2],p[3]]}}function cf_getAlignPadding(itm,o){var x=(is_number(o[o.d.width]))?Math.ceil(o[o.d.width]-ms_getTotalSize(itm,o,"width")):0;switch(o.align){case"left":return[0,x];case"right":return[x,0];case"center":default:return[Math.ceil(x/2),Math.floor(x/2)]}}function cf_getDimensions(o){var dm=[["width","innerWidth","outerWidth","height","innerHeight","outerHeight","left","top","marginRight",0,1,2,3],["height","innerHeight","outerHeight","width","innerWidth","outerWidth","top","left","marginBottom",3,2,1,0]];var dl=dm[0].length,dx=(o.direction=="right"||o.direction=="left")?0:1;var dimensions={};for(var d=0;dp.length){var neg=true,sta=m[0],adj=m[1]}else{var neg=false,sta=p[0],adj=p[1]}switch(sta){case"even":v=(x%2==1)?x-1:x;break;case"odd":v=(x%2==0)?x-1:x;break;default:v=x;break}adj=parseInt(adj,10);if(is_number(adj)){if(neg){adj=-adj}v+=adj}}}if(!is_number(v)||v<1){v=1}return v}function cf_getItemsAdjust(x,o,a,$t){return cf_getItemAdjustMinMax(cf_getAdjust(x,o,a,$t),o.items.visibleConf)}function cf_getItemAdjustMinMax(v,i){if(is_number(i.min)&&vi.max){v=i.max}if(v<1){v=1}return v}function cf_getSynchArr(s){if(!is_array(s)){s=[[s]]}if(!is_array(s[0])){s=[s]}for(var j=0,l=s.length;j0)?":visible":"*"}if(!obj[opt.d.width]){if(opt.responsive){debug(true,"Set a "+opt.d.width+" for the items!");obj[opt.d.width]=ms_getTrueLargestSize(itm,opt,"outerWidth")}else{obj[opt.d.width]=(ms_hasVariableSizes(itm,opt,"outerWidth"))?"variable":itm[opt.d.outerWidth](true)}}if(!obj[opt.d.height]){obj[opt.d.height]=(ms_hasVariableSizes(itm,opt,"outerHeight"))?"variable":itm[opt.d.outerHeight](true)}obj.sizesConf.width=obj.width;obj.sizesConf.height=obj.height;return obj}function in_complementVisibleItems(opt,avl){if(opt.items[opt.d.width]=="variable"){opt.items.visibleConf.variable=true}if(!opt.items.visibleConf.variable){if(is_number(opt[opt.d.width])){opt.items.visible=Math.floor(opt[opt.d.width]/opt.items[opt.d.width])}else{opt.items.visible=Math.floor(avl/opt.items[opt.d.width]);opt[opt.d.width]=opt.items.visible*opt.items[opt.d.width];if(!opt.items.visibleConf.adjust){opt.align=false}}if(opt.items.visible=="Infinity"||opt.items.visible<1){debug(true,'Not a valid number of visible items: Set to "variable".');opt.items.visibleConf.variable=true}}return opt}function in_complementPrimarySize(obj,opt,all){if(obj=="auto"){obj=ms_getTrueLargestSize(all,opt,"outerWidth")}return obj}function in_complementSecondarySize(obj,opt,all){if(obj=="auto"){obj=ms_getTrueLargestSize(all,opt,"outerHeight")}if(!obj){obj=opt.items[opt.d.height]}return obj}function in_getAlignPadding(o,all){var p=cf_getAlignPadding(gi_getCurrentItems(all,o),o);o.padding[o.d[1]]=p[1];o.padding[o.d[3]]=p[0];return o}function in_getResponsiveValues(o,all,avl){var visb=cf_getItemAdjustMinMax(Math.ceil(o[o.d.width]/o.items[o.d.width]),o.items.visibleConf);if(visb>all.length){visb=all.length}var newS=Math.floor(o[o.d.width]/visb);o.items.visible=visb;o.items[o.d.width]=newS;o[o.d.width]=visb*newS;return o}function bt_pauseOnHoverConfig(p){if(is_string(p)){var i=(p.indexOf("immediate")>-1)?true:false,r=(p.indexOf("resume")>-1)?true:false}else{var i=r=false}return[i,r]}function bt_mousesheelNumber(mw){return(is_number(mw))?mw:null}function is_null(a){return(a===null)}function is_undefined(a){return(is_null(a)||typeof a=="undefined"||a===""||a==="undefined")}function is_array(a){return(a instanceof Array)}function is_jquery(a){return(a instanceof jQuery)}function is_object(a){return((a instanceof Object||typeof a=="object")&&!is_null(a)&&!is_jquery(a)&&!is_array(a))}function is_number(a){return((a instanceof Number||typeof a=="number")&&!isNaN(a))}function is_string(a){return((a instanceof String||typeof a=="string")&&!is_undefined(a)&&!is_true(a)&&!is_false(a))}function is_function(a){return(a instanceof Function||typeof a=="function")}function is_boolean(a){return(a instanceof Boolean||typeof a=="boolean"||is_true(a)||is_false(a))}function is_true(a){return(a===true||a==="true")}function is_false(a){return(a===false||a==="false")}function is_percentage(x){return(is_string(x)&&x.slice(-1)=="%")}function getTime(){return new Date().getTime()}function deprecated(o,n){debug(true,o+" is DEPRECATED, support for it will be removed. Use "+n+" instead.")}function debug(d,m){if(is_object(d)){var s=" ("+d.selector+")";d=d.debug}else{var s=""}if(!d){return false}if(is_string(m)){m="carouFredSel"+s+": "+m}else{m=["carouFredSel"+s+":",m]}if(window.console&&window.console.log){window.console.log(m)}return false}$.extend($.easing,{quadratic:function(t){var t2=t*t;return t*(-t2*t+4*t2-6*t+4)},cubic:function(t){return t*(4*t*t-9*t+6)},elastic:function(t){var t2=t*t;return t*(33*t2*t2-106*t2*t+126*t2-67*t+15)}})})(jQuery);(function(N,p,ab){var O={transition:"elastic",speed:300,width:false,initialWidth:"600",innerWidth:false,maxWidth:"98%",minWidth:"250",height:false,initialHeight:"450",innerHeight:false,maxHeight:"98%",minHeight:"170",scalePhotos:true,scrolling:true,inline:false,html:false,iframe:false,video:false,fastIframe:true,photo:false,href:false,title:false,rel:false,opacity:0.5,preloading:true,current:"image {current} sur {total}",previous:"précédent",next:"suivant",close:"Fermer",xhrError:"This content failed to load.",imgError:"This image failed to load.",open:false,returnFocus:true,reposition:true,loop:true,slideshow:true,slideshowAuto:false,slideshowSpeed:2500,slideshowStart:"Démarrer le diaporama",slideshowStop:"Arrêter le diaporama",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false,overlayClose:true,escKey:true,arrowKey:true,top:false,bottom:false,left:false,right:false,fixed:false,data:undefined},B="colorbox",X="cbox",v=X+"Element",aa=X+"_open",g=X+"_load",Z=X+"_complete",y=X+"_cleanup",ah=X+"_closed",l=X+"_purge",z=!N.support.opacity&&!N.support.style,ak=z&&!ab.XMLHttpRequest,af=X+"_IE6",U,al,am,f,L,t,c,T,d,ae,R,n,k,s,x,ac,w,W,D,F,aj,an,q,j,b,A,M,r,H,ad,Q,E,P,ai="div",ag;function K(ao,ar,aq){var ap=p.createElement(ao);if(ar){ap.id=X+ar}if(aq){ap.style.cssText=aq}return N(ap)}function I(ap){var ao=d.length,aq=(M+ap)%ao;return(aq<0)?ao+aq:aq}function S(ao,ap){return Math.round((/%/.test(ao)?((ap==="x"?o():V())/100):1)*parseInt(ao,10))}function G(ao){return aj.photo||/\.(gif|png|jp(e|g|eg)|bmp|ico)((#|\?).*)?$/i.test(ao)}function o(){return ab.innerWidth||ae.width()}function V(){return ab.innerHeight||ae.height()}function Y(){var ao,ap=N.data(A,B);if(ap==null){aj=N.extend({},O);if(console&&console.log){console.log("Error: cboxElement missing settings object")}}else{aj=N.extend({},ap)}for(ao in aj){if(N.isFunction(aj[ao])&&ao.slice(0,2)!=="on"){aj[ao]=aj[ao].call(A)}}aj.rel=aj.rel||A.rel||"nofollow";aj.href=aj.href||N(A).attr("href");aj.title=aj.title||A.title;if(typeof aj.href==="string"){aj.href=N.trim(aj.href)}}function J(ao,ap){N.event.trigger(ao);if(ap){ap.call(A)}}function a(ar){arrayRelated=new Array();arrayToRemove=new Array();var ap=d.index(ar);arrayRelated.push(ar.toString());for(var aq=0;aq0){for(indexRemove in arrayToRemove){d.splice(arrayToRemove[indexRemove],1)}}ap=d.index(ar);return ap}function C(){var ap,ar=X+"Slideshow_",at="click."+X,au,aq,ao;if(aj.slideshow&&d[1]){au=function(){ac.text(aj.slideshowStop).unbind(at).bind(Z,function(){if(aj.loop||d[M+1]){ap=setTimeout(P.next,aj.slideshowSpeed)}}).bind(g,function(){clearTimeout(ap)}).one(at+" "+y,aq);al.removeClass(ar+"off").addClass(ar+"on");ap=setTimeout(P.next,aj.slideshowSpeed)};aq=function(){clearTimeout(ap);ac.text(aj.slideshowStart).unbind([Z,g,y,at].join(" ")).one(at,function(){P.next();au()});al.removeClass(ar+"on").addClass(ar+"off")};if(aj.slideshowAuto){au()}else{aq()}}else{al.removeClass(ar+"off "+ar+"on")}}function h(ao){if(!Q){A=ao;Y();d=N(A);M=0;if(aj.rel!=="nofollow"){d=N("."+v).filter(function(){var aq=N.data(this,B),ap;if(aq){ap=aq.rel||this.rel}return(ap===aj.rel)});if(d.length>1){M=a(A)}else{M=d.index(A)}if(M===-1){d=d.add(A);M=d.length-1}}if(!H){H=ad=true;al.show();if(aj.returnFocus){N(A).blur().one(ah,function(){N(this).focus()})}U.css({opacity:+aj.opacity,cursor:aj.overlayClose?"pointer":"auto"}).show();aj.w=S(aj.initialWidth,"x");aj.h=S(aj.initialHeight,"y");P.position();if(ak){ae.bind("resize."+af+" scroll."+af,function(){U.css({width:o(),height:V(),top:ae.scrollTop(),left:ae.scrollLeft()})}).trigger("resize."+af)}J(aa,aj.onOpen);F.add(s).hide();D.html(aj.close).show()}P.load(true)}}function u(){if(!al&&p.body){ag=false;ae=N(ab);al=K(ai).attr({id:B,"class":z?X+(ak?"IE6":"IE"):""}).hide();U=K(ai,"Overlay",ak?"position:absolute":"").hide();k=K(ai,"LoadingOverlay").add(K(ai,"LoadingGraphic"));am=K(ai,"Wrapper");f=K(ai,"Content").append(R=K(ai,"LoadedContent","width:0; height:0; overflow:hidden"),s=K(ai,"Title"),x=K(ai,"Current"),w=K(ai,"Next"),W=K(ai,"Previous"),ac=K(ai,"Slideshow").bind(aa,C),D=K(ai,"Close"));am.append(K(ai).append(K(ai,"TopLeft"),L=K(ai,"TopCenter"),K(ai,"TopRight")),K(ai,false,"clear:left").append(t=K(ai,"MiddleLeft"),f,c=K(ai,"MiddleRight")),K(ai,false,"clear:left").append(K(ai,"BottomLeft"),T=K(ai,"BottomCenter"),K(ai,"BottomRight"))).find("div div").css({"float":"left"});n=K(ai,false,"position:absolute; width:9999px; visibility:hidden; display:none");F=w.add(W).add(x).add(ac);N(p.body).append(U,al.append(am,n))}}function m(){if(al){if(!ag){ag=true;an=L.height()+T.height()+f.outerHeight(true)-f.height();q=t.width()+c.width()+f.outerWidth(true)-f.width();j=R.outerHeight(true);b=R.outerWidth(true);al.css({"padding-bottom":an,"padding-right":q});w.click(function(){P.next()});W.click(function(){P.prev()});D.click(function(){P.close()});U.click(function(){if(aj.overlayClose){P.close()}});N(p).bind("keydown."+X,function(ap){var ao=ap.keyCode;if(H&&aj.escKey&&ao===27){ap.preventDefault();P.close()}if(H&&aj.arrowKey&&d[1]){if(ao===37){ap.preventDefault();W.click()}else{if(ao===39){ap.preventDefault();w.click()}}}});N("."+v,p).live("click",function(ao){if(!(ao.which>1||ao.shiftKey||ao.altKey||ao.metaKey)){ao.preventDefault();h(this)}})}return true}return false}if(N.colorbox){return}N(u);P=N.fn[B]=N[B]=function(ao,aq){var ap=this;ao=ao||{};u();if(m()){if(!ap[0]){if(ap.selector){return ap}ap=N("");ao.open=true}if(aq){ao.onComplete=aq}ap.each(function(){N.data(this,B,N.extend({},N.data(this,B)||O,ao))}).addClass(v);if((N.isFunction(ao.open)&&ao.open.call(ap))||ao.open){h(ap[0])}}return ap};P.position=function(aq,at){var av,ax=0,ap=0,au=al.offset(),ao,ar;ae.unbind("resize."+X);al.css({top:-90000,left:-90000});ao=ae.scrollTop();ar=ae.scrollLeft();if(aj.fixed&&!ak){au.top-=ao;au.left-=ar;al.css({position:"fixed"})}else{ax=ao;ap=ar;al.css({position:"absolute"})}if(aj.right!==false){ap+=Math.max(o()-aj.w-b-q-S(aj.right,"x"),0)}else{if(aj.left!==false){ap+=S(aj.left,"x")}else{ap+=Math.round(Math.max(o()-aj.w-b-q,0)/2)}}if(aj.bottom!==false){ax+=Math.max(V()-aj.h-j-an-S(aj.bottom,"y"),0)}else{if(aj.top!==false){ax+=S(aj.top,"y")}else{ax+=Math.round(Math.max(V()-aj.h-j-an,0)/2)}}al.css({top:au.top,left:au.left});aq=(al.width()===aj.w+b&&al.height()===aj.h+j)?0:aq||0;am[0].style.width=am[0].style.height="9999px";function aw(ay){L[0].style.width=T[0].style.width=f[0].style.width=ay.style.width;f[0].style.height=t[0].style.height=c[0].style.height=ay.style.height}av={width:aj.w+b,height:aj.h+j,top:ax,left:ap};if(aq===0){al.css(av)}al.dequeue().animate(av,{duration:aq,complete:function(){aw(this);ad=false;am[0].style.width=(aj.w+b+q)+"px";am[0].style.height=(aj.h+j+an)+"px";if(aj.reposition){setTimeout(function(){ae.bind("resize."+X,P.position)},1)}if(at){at()}},step:function(){aw(this)}})};P.resize=function(ao){if(H){ao=ao||{};if(ao.width){aj.w=S(ao.width,"x")-b-q}if(ao.innerWidth){aj.w=S(ao.innerWidth,"x")}R.css({width:aj.w});if(ao.height){aj.h=S(ao.height,"y")-j-an}if(ao.innerHeight){aj.h=S(ao.innerHeight,"y")}if(!ao.innerHeight&&!ao.height){R.css({height:"auto"});aj.h=R.height()}R.css({height:aj.h});P.position(aj.transition==="none"?0:aj.speed)}};P.prep=function(ap){if(!H){return}var at,aq=aj.transition==="none"?0:aj.speed;R.remove();R=K(ai,"LoadedContent").append(ap);function ao(){aj.w=aj.w||R.width();if(aj.minWidth&&aj.w1){if(typeof aj.current==="string"){x.html(aj.current.replace("{current}",M+1).replace("{total}",aC)).show()}w[(aj.loop||M")[0];at.name=X+(+new Date());if(z){at.allowtransparency="true"}N(at).appendTo(R)});ao(" ")}else{if(aj.iframe){ao(" ")}else{if(aj.html){ao(aj.html)}else{if(G(ap)){N(r=new Image()).addClass(X+"Photo").error(function(){aj.title=false;ao(K(ai,"Error").html(aj.imgError))}).load(function(){var at;r.onload=null;if(aj.scalePhotos){ar=function(){r.height-=r.height*at;r.width-=r.width*at};if(aj.mw&&r.width>aj.mw){at=(r.width-aj.mw)/r.width;ar()}if(aj.mh&&r.height>aj.mh){at=(r.height-aj.mh)/r.height;ar()}}if(aj.h||aj.minHeight){r.style.marginTop=Math.max((aj.h||aj.minHeight)-r.height,0)/2+"px"}if(d[1]&&(aj.loop||d[M+1])){r.style.cursor="pointer";r.onclick=function(){P.next()}}if(z){r.style.msInterpolationMode="bicubic"}setTimeout(function(){ao(r)},1)});setTimeout(function(){r.src=ap},1)}else{if(ap){n.load(ap,aj.data,function(au,at,av){ao(at==="error"?K(ai,"Error").html(aj.xhrError):N(this).contents())})}}}}}}};P.next=function(){if(!ad&&d[1]&&(aj.loop||d[M+1])){M=I(1);P.load()}};P.prev=function(){if(!ad&&d[1]&&(aj.loop||M)){M=I(-1);P.load()}};P.close=function(){if(H&&!Q){Q=true;H=false;J(y,aj.onCleanup);ae.unbind("."+X+" ."+af);U.fadeTo(200,0);al.stop().fadeTo(300,0,function(){al.add(U).css({opacity:1,cursor:"auto"}).hide();J(l);R.remove();setTimeout(function(){Q=false;J(ah,aj.onClosed)},1)})}};P.remove=function(){N([]).add(al).add(U).remove();al=null;N("."+v).removeData(B).removeClass(v).die()};P.element=function(){return N(A)};P.settings=O}(jQuery,document,this));jQuery.cookie=function(b,k,n){if(typeof k!="undefined"){n=n||{};if(k===null){k="";n.expires=-1}var f="";if(n.expires&&(typeof n.expires=="number"||n.expires.toUTCString)){var g;if(typeof n.expires=="number"){g=new Date();g.setTime(g.getTime()+(n.expires*24*60*60*1000))}else{g=n.expires}f="; expires="+g.toUTCString()}var m=n.path?"; path="+(n.path):"";var h=n.domain?"; domain="+(n.domain):"";var a=n.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(k),f,m,h,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var l=document.cookie.split(";");for(var j=0;j
';jQuery("body").append(htmlBandeau);jQuery("#cootra-mini").bind("click",function(){consentCooTra.affiche(consentCooTra.affichePopup)})},afficheBandeau:function(){if(jQuery("#cootra").length>0){jQuery("#cootra button").bind("click",function(){consentCooTra.accepter()});jQuery("#cootra .cootra-savoir-plus").bind("click",function(){consentCooTra.affiche(consentCooTra.affichePopup)})}},affichePopup:function(){htmlBandeau='
'+consentCooTra.txtTitrePopup+'
x
'+consentCooTra.txtPopup+"
"+consentCooTra.getStatut()+'
";jQuery("body").append(htmlBandeau);var c=jQuery(window).height();var b=jQuery("#cootra-popup").height();if(c>b){var a=Math.round((c-b)/2);jQuery("#cootra-popup").css("position","fixed")}else{var a=jQuery(window).scrollTop()+10}jQuery("#cootra-popup").css("top",a+"px").fadeIn(400)},fermerPopup:function(){jQuery("#cootra-popup, #cootra-overlay").fadeOut(400,function(){jQuery(this).remove()})},getStatut:function(){if(consentCooTra.consentement=="acceptation"){retour='
'+consentCooTra.txtStatutAcceptation+"
"}else{if(consentCooTra.consentement=="refus"){retour='
'+consentCooTra.txtStatutRefus+"
"}else{retour=""}}return retour},init:function(a){if(a!==undefined){consentCooTra.urlAjax=a}consentCooTra.verifCookieConsentement();if(consentCooTra.consentement==""){consentCooTra.afficheBandeau()}else{consentCooTra.afficheMiniBandeau();jQuery("#cootra").hide()}}};(function(c){function b(){this._defaults={pickerClass:"",showOnFocus:true,showTrigger:null,showAnim:"show",showOptions:{},showSpeed:"normal",popupContainer:null,alignment:"bottom",fixedWeeks:false,firstDay:0,calculateWeek:this.iso8601Week,monthsToShow:1,monthsOffset:0,monthsToStep:1,monthsToJump:12,useMouseWheel:false,changeMonth:true,yearRange:"c-10:c+10",shortYearCutoff:"+10",showOtherMonths:false,selectOtherMonths:false,defaultDate:null,selectDefaultDate:false,minDate:null,maxDate:null,dateFormat:"mm/dd/yyyy",autoSize:false,rangeSelect:false,rangeSeparator:" - ",multiSelect:0,multiSeparator:",",onDate:null,onShow:null,onChangeMonthYear:null,onSelect:null,onClose:null,altField:null,altFormat:null,constrainInput:true,commandsAsDateFormat:false,commands:this.commands};this.regional={"":{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"],dateFormat:"mm/dd/yyyy",firstDay:0,renderer:this.defaultRenderer,prevText:"<Prev",prevStatus:"Show the previous month",prevJumpText:"<<",prevJumpStatus:"Show the previous year",nextText:"Next>",nextStatus:"Show the next month",nextJumpText:">>",nextJumpStatus:"Show the next year",currentText:"Current",currentStatus:"Show the current month",todayText:"Today",todayStatus:"Show today's month",clearText:"Clear",clearStatus:"Clear all the dates",closeText:"Close",closeStatus:"Close the datepicker",yearStatus:"Change the year",monthStatus:"Change the month",weekText:"Wk",weekStatus:"Week of the year",dayStatus:"Select DD, M d, yyyy",defaultStatus:"Select a date",isRTL:false}};c.extend(this._defaults,this.regional[""]);this._disabled=[]}c.extend(b.prototype,{dataName:"datepick",markerClass:"hasDatepick",_popupClass:"datepick-popup",_triggerClass:"datepick-trigger",_disableClass:"datepick-disable",_coverClass:"datepick-cover",_monthYearClass:"datepick-month-year",_curMonthClass:"datepick-month-",_anyYearClass:"datepick-any-year",_curDoWClass:"datepick-dow-",commands:{prev:{text:"prevText",status:"prevStatus",keystroke:{keyCode:33},enabled:function(f){var d=f.curMinDate();return(!d||c.datepick.add(c.datepick.day(c.datepick._applyMonthsOffset(c.datepick.add(c.datepick.newDate(f.drawDate),1-f.get("monthsToStep"),"m"),f),1),-1,"d").getTime()>=d.getTime())},date:function(d){return c.datepick.day(c.datepick._applyMonthsOffset(c.datepick.add(c.datepick.newDate(d.drawDate),-d.get("monthsToStep"),"m"),d),1)},action:function(d){c.datepick.changeMonth(this,-d.get("monthsToStep"))}},prevJump:{text:"prevJumpText",status:"prevJumpStatus",keystroke:{keyCode:33,ctrlKey:true},enabled:function(f){var d=f.curMinDate();return(!d||c.datepick.add(c.datepick.day(c.datepick._applyMonthsOffset(c.datepick.add(c.datepick.newDate(f.drawDate),1-f.get("monthsToJump"),"m"),f),1),-1,"d").getTime()>=d.getTime())},date:function(d){return c.datepick.day(c.datepick._applyMonthsOffset(c.datepick.add(c.datepick.newDate(d.drawDate),-d.get("monthsToJump"),"m"),d),1)},action:function(d){c.datepick.changeMonth(this,-d.get("monthsToJump"))}},next:{text:"nextText",status:"nextStatus",keystroke:{keyCode:34},enabled:function(d){var f=d.get("maxDate");return(!f||c.datepick.day(c.datepick._applyMonthsOffset(c.datepick.add(c.datepick.newDate(d.drawDate),d.get("monthsToStep"),"m"),d),1).getTime()<=f.getTime())},date:function(d){return c.datepick.day(c.datepick._applyMonthsOffset(c.datepick.add(c.datepick.newDate(d.drawDate),d.get("monthsToStep"),"m"),d),1)},action:function(d){c.datepick.changeMonth(this,d.get("monthsToStep"))}},nextJump:{text:"nextJumpText",status:"nextJumpStatus",keystroke:{keyCode:34,ctrlKey:true},enabled:function(d){var f=d.get("maxDate");return(!f||c.datepick.day(c.datepick._applyMonthsOffset(c.datepick.add(c.datepick.newDate(d.drawDate),d.get("monthsToJump"),"m"),d),1).getTime()<=f.getTime())},date:function(d){return c.datepick.day(c.datepick._applyMonthsOffset(c.datepick.add(c.datepick.newDate(d.drawDate),d.get("monthsToJump"),"m"),d),1)},action:function(d){c.datepick.changeMonth(this,d.get("monthsToJump"))}},current:{text:"currentText",status:"currentStatus",keystroke:{keyCode:36,ctrlKey:true},enabled:function(g){var f=g.curMinDate();var h=g.get("maxDate");var d=g.selectedDates[0]||c.datepick.today();return(!f||d.getTime()>=f.getTime())&&(!h||d.getTime()<=h.getTime())},date:function(d){return d.selectedDates[0]||c.datepick.today()},action:function(f){var d=f.selectedDates[0]||c.datepick.today();c.datepick.showMonth(this,d.getFullYear(),d.getMonth()+1)}},today:{text:"todayText",status:"todayStatus",keystroke:{keyCode:36,ctrlKey:true},enabled:function(f){var d=f.curMinDate();var g=f.get("maxDate");return(!d||c.datepick.today().getTime()>=d.getTime())&&(!g||c.datepick.today().getTime()<=g.getTime())},date:function(d){return c.datepick.today()},action:function(d){c.datepick.showMonth(this)}},clear:{text:"clearText",status:"clearStatus",keystroke:{keyCode:35,ctrlKey:true},enabled:function(d){return true},date:function(d){return null},action:function(d){c.datepick.clear(this)}},close:{text:"closeText",status:"closeStatus",keystroke:{keyCode:27},enabled:function(d){return true},date:function(d){return null},action:function(d){c.datepick.hide(this)}},prevWeek:{text:"prevWeekText",status:"prevWeekStatus",keystroke:{keyCode:38,ctrlKey:true},enabled:function(f){var d=f.curMinDate();return(!d||c.datepick.add(c.datepick.newDate(f.drawDate),-7,"d").getTime()>=d.getTime())},date:function(d){return c.datepick.add(c.datepick.newDate(d.drawDate),-7,"d")},action:function(d){c.datepick.changeDay(this,-7)}},prevDay:{text:"prevDayText",status:"prevDayStatus",keystroke:{keyCode:37,ctrlKey:true},enabled:function(f){var d=f.curMinDate();return(!d||c.datepick.add(c.datepick.newDate(f.drawDate),-1,"d").getTime()>=d.getTime())},date:function(d){return c.datepick.add(c.datepick.newDate(d.drawDate),-1,"d")},action:function(d){c.datepick.changeDay(this,-1)}},nextDay:{text:"nextDayText",status:"nextDayStatus",keystroke:{keyCode:39,ctrlKey:true},enabled:function(d){var f=d.get("maxDate");return(!f||c.datepick.add(c.datepick.newDate(d.drawDate),1,"d").getTime()<=f.getTime())},date:function(d){return c.datepick.add(c.datepick.newDate(d.drawDate),1,"d")},action:function(d){c.datepick.changeDay(this,1)}},nextWeek:{text:"nextWeekText",status:"nextWeekStatus",keystroke:{keyCode:40,ctrlKey:true},enabled:function(d){var f=d.get("maxDate");return(!f||c.datepick.add(c.datepick.newDate(d.drawDate),7,"d").getTime()<=f.getTime())},date:function(d){return c.datepick.add(c.datepick.newDate(d.drawDate),7,"d")},action:function(d){c.datepick.changeDay(this,7)}}},defaultRenderer:{picker:'
{link:prev}{link:today}{link:next}
{months}{popup:start}
{link:clear}{link:close}
{popup:end}
',monthRow:'
{months}
',month:'
{monthHeader}
{weekHeader}{weeks}
',weekHeader:"{days}",dayHeader:"{day}",week:"{days}",day:"{day}",monthSelector:".datepick-month",daySelector:"td",rtlClass:"datepick-rtl",multiClass:"datepick-multi",defaultClass:"",selectedClass:"datepick-selected",highlightedClass:"datepick-highlight",todayClass:"datepick-today",otherMonthClass:"datepick-other-month",weekendClass:"datepick-weekend",commandClass:"datepick-cmd",commandButtonClass:"",commandLinkClass:"",disabledClass:"datepick-disabled"},setDefaults:function(d){c.extend(this._defaults,d||{});return this},_ticksTo1970:(((1970-1)*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*10000000),_msPerDay:24*60*60*1000,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(q,j,k){if(typeof q!="string"){k=j;j=q;q=""}if(!j){return""}q=q||this._defaults.dateFormat;k=k||{};var s=k.dayNamesShort||this._defaults.dayNamesShort;var f=k.dayNames||this._defaults.dayNames;var o=k.monthNamesShort||this._defaults.monthNamesShort;var l=k.monthNames||this._defaults.monthNames;var g=k.calculateWeek||this._defaults.calculateWeek;var m=function(t,u){var v=1;while(r+v1};var d=function(v,x,t,w){var u=""+x;if(m(v,w)){while(u.length1};var B=function(E,G){var C=j(E,G);var F=[2,3,C?4:2,11,20]["oy@!".indexOf(E)+1];var H=new RegExp("^-?\\d{1,"+F+"}");var D=o.substring(t).match(H);if(!D){throw"Missing number at position {0}".replace(/\{0\}/,t)}t+=D[0].length;return parseInt(D[0],10)};var m=function(C,E,H,F){var G=(j(C,F)?H:E);for(var D=0;D-1){A=1;s=l;for(var p=this.daysInMonth(k,A);s>p;p=this.daysInMonth(k,A)){A++;s-=p}}var y=this.newDate(k,A,s);if(y.getFullYear()!=k||y.getMonth()+1!=A||y.getDate()!=s){throw"Invalid date"}return y},determineDate:function(g,k,f,d,j){if(f&&typeof f!="object"){j=d;d=f;f=null}if(typeof d!="string"){j=d;d=""}var h=function(p){try{return c.datepick.parseDate(d,p,j)}catch(o){}p=p.toLowerCase();var l=(p.match(/^c/)&&f?c.datepick.newDate(f):null)||c.datepick.today();var n=/([+-]?[0-9]+)\s*(d|w|m|y)?/g;var m=n.exec(p);while(m){l=c.datepick.add(l,parseInt(m[1],10),m[2]||"d");m=n.exec(p)}return l};k=(k?c.datepick.newDate(k):null);g=(g==null?k:(typeof g=="string"?h(g):(typeof g=="number"?(isNaN(g)||g==Infinity||g==-Infinity?k:c.datepick.add(c.datepick.today(),g,"d")):c.datepick.newDate(g))));return g},daysInMonth:function(d,f){f=(d.getFullYear?d.getMonth()+1:f);d=(d.getFullYear?d.getFullYear():d);return this.newDate(d,f+1,0).getDate()},dayOfYear:function(h,j,d){var g=(h.getFullYear?h:this.newDate(h,j,d));var f=this.newDate(g.getFullYear(),1,1);return Math.floor((g.getTime()-f.getTime())/this._msPerDay)+1},iso8601Week:function(f,h,d){var j=(f.getFullYear?new Date(f.getTime()):this.newDate(f,h,d));j.setDate(j.getDate()+4-(j.getDay()||7));var g=j.getTime();j.setMonth(0,1);return Math.floor(Math.round((g-j)/86400000)/7)+1},today:function(){return this._normaliseDate(new Date())},newDate:function(f,g,d){return(!f?null:(f.getFullYear?this._normaliseDate(new Date(f.getTime())):new Date(f,g-1,d,12)))},_normaliseDate:function(d){if(d){d.setHours(12,0,0,0)}return d},year:function(d,f){d.setFullYear(f);return this._normaliseDate(d)},month:function(d,f){d.setMonth(f-1);return this._normaliseDate(d)},day:function(f,d){f.setDate(d);return this._normaliseDate(f)},add:function(d,f,j){if(j=="d"||j=="w"){this._normaliseDate(d);d.setDate(d.getDate()+f*(j=="w"?7:1))}else{var g=d.getFullYear()+(j=="y"?f:0);var h=d.getMonth()+(j=="m"?f:0);d.setTime(c.datepick.newDate(g,h+1,Math.min(d.getDate(),this.daysInMonth(g,h+1))).getTime())}return d},_applyMonthsOffset:function(d,f){var g=f.get("monthsOffset");if(c.isFunction(g)){g=g.apply(f.target[0],[d])}return c.datepick.add(d,-g,"m")},_attachPicker:function(h,f){h=c(h);if(h.hasClass(this.markerClass)){return}h.addClass(this.markerClass);var g={target:h,selectedDates:[],drawDate:null,pickingRange:false,inline:(c.inArray(h[0].nodeName.toLowerCase(),["div","span"])>-1),get:function(j){var k=this.settings[j]!==undefined?this.settings[j]:c.datepick._defaults[j];if(c.inArray(j,["defaultDate","minDate","maxDate"])>-1){k=c.datepick.determineDate(k,null,this.selectedDates[0],this.get("dateFormat"),g.getConfig())}return k},curMinDate:function(){return(this.pickingRange?this.selectedDates[0]:this.get("minDate"))},getConfig:function(){return{dayNamesShort:this.get("dayNamesShort"),dayNames:this.get("dayNames"),monthNamesShort:this.get("monthNamesShort"),monthNames:this.get("monthNames"),calculateWeek:this.get("calculateWeek"),shortYearCutoff:this.get("shortYearCutoff")}}};c.data(h[0],this.dataName,g);var d=(c.fn.metadata?h.metadata():{});g.settings=c.extend({},f||{},d||{});if(g.inline){g.drawDate=c.datepick._checkMinMax(c.datepick.newDate(g.selectedDates[0]||g.get("defaultDate")||c.datepick.today()),g);g.prevDate=c.datepick.newDate(g.drawDate);this._update(h[0]);if(c.fn.mousewheel&&g.settings.useMouseWheel){h.mousewheel(this._doMouseWheel)}}else{this._attachments(h,g);h.bind("keydown."+this.dataName,this._keyDown).bind("keypress."+this.dataName,this._keyPress).bind("keyup."+this.dataName,this._keyUp);if(h.attr("disabled")){this.disable(h[0])}}},options:function(g,d){var f=c.data(g,this.dataName);return(f?(d?(d=="all"?f.settings:f.settings[d]):c.datepick._defaults):{})},option:function(k,f,h){k=c(k);if(!k.hasClass(this.markerClass)){return}f=f||{};if(typeof f=="string"){var d=f;f={};f[d]=h}var g=c.data(k[0],this.dataName);var j=g.selectedDates;a(g.settings,f);this.setDate(k[0],j,null,false,true);g.pickingRange=false;g.drawDate=c.datepick.newDate(this._checkMinMax((f.defaultDate?g.get("defaultDate"):g.drawDate)||g.get("defaultDate")||c.datepick.today(),g));if(!g.inline){this._attachments(k,g)}if(g.inline||g.div){this._update(k[0])}},_attachments:function(h,f){h.unbind("focus."+this.dataName);if(f.get("showOnFocus")){h.bind("focus."+this.dataName,this.show)}if(f.trigger){f.trigger.remove()}var d=f.get("showTrigger");f.trigger=(!d?c([]):c(d).clone().removeAttr("id").addClass(this._triggerClass)[f.get("isRTL")?"insertBefore":"insertAfter"](h).click(function(){if(!c.datepick.isDisabled(h[0])){c.datepick[c.datepick.curInst==f?"hide":"show"](h[0])}}));this._autoSize(h,f);var g=this._extractDates(f,h.val());if(g){this.setDate(h[0],g,null,true)}if(f.get("selectDefaultDate")&&f.get("defaultDate")&&f.selectedDates.length==0){this.setDate(h[0],c.datepick.newDate(f.get("defaultDate")||c.datepick.today()))}},_autoSize:function(j,h){if(h.get("autoSize")&&!h.inline){var g=c.datepick.newDate(2009,10,20);var d=h.get("dateFormat");if(d.match(/[DM]/)){var f=function(n){var k=0;var l=0;for(var m=0;mk){k=n[m].length;l=m}}return l};g.setMonth(f(h.get(d.match(/MM/)?"monthNames":"monthNamesShort")));g.setDate(f(h.get(d.match(/DD/)?"dayNames":"dayNamesShort"))+20-g.getDay())}h.target.attr("size",c.datepick.formatDate(d,g,h.getConfig()).length)}},destroy:function(f){f=c(f);if(!f.hasClass(this.markerClass)){return}var d=c.data(f[0],this.dataName);if(d.trigger){d.trigger.remove()}f.removeClass(this.markerClass).empty().unbind("."+this.dataName);if(d.inline&&c.fn.mousewheel){f.unmousewheel()}if(!d.inline&&d.get("autoSize")){f.removeAttr("size")}c.removeData(f[0],this.dataName)},multipleEvents:function(f){var d=arguments;return function(g){for(var h=0;h
').find("button,select").attr("disabled","disabled").end().find("a").removeAttr("href")}else{h.disabled=true;f.trigger.filter("button."+this._triggerClass).attr("disabled","disabled").end().filter("img."+this._triggerClass).css({opacity:"0.5",cursor:"default"})}this._disabled=c.map(this._disabled,function(m){return(m==h?null:m)});this._disabled.push(h)},isDisabled:function(d){return(d&&c.inArray(d,this._disabled)>-1)},show:function(l){l=l.target||l;var k=c.data(l,c.datepick.dataName);if(c.datepick.curInst==k){return}if(c.datepick.curInst){c.datepick.hide(c.datepick.curInst,true)}if(k){k.lastVal=null;k.selectedDates=c.datepick._extractDates(k,c(l).val());k.pickingRange=false;k.drawDate=c.datepick._checkMinMax(c.datepick.newDate(k.selectedDates[0]||k.get("defaultDate")||c.datepick.today()),k);k.prevDate=c.datepick.newDate(k.drawDate);c.datepick.curInst=k;c.datepick._update(l,true);var m=c.datepick._checkOffset(k);k.div.css({left:m.left,top:m.top});var d=k.get("showAnim");var g=k.get("showSpeed");g=(g=="normal"&&c.ui&&c.ui.version>="1.8"?"_default":g);var j=function(){var o=k.div.find("."+c.datepick._coverClass);if(o.length){var n=c.datepick._getBorders(k.div);o.css({left:-n[0],top:-n[1],width:k.div.outerWidth()+n[0],height:k.div.outerHeight()+n[1]})}};if(c.effects&&c.effects[d]){var h=k.div.data();for(var f in h){if(f.match(/^ec\.storage\./)){h[f]=k._mainDiv.css(f.replace(/ec\.storage\./,""))}}k.div.data(h).show(d,k.get("showOptions"),g,j)}else{k.div[d||"show"]((d?g:""),j)}if(!d){j()}}},_extractDates:function(m,p){if(p==m.lastVal){return}m.lastVal=p;var f=m.get("dateFormat");var g=m.get("multiSelect");var o=m.get("rangeSelect");p=p.split(g?m.get("multiSeparator"):(o?m.get("rangeSeparator"):"\x00"));var d=[];for(var l=0;l
").addClass(this._popupClass).css({display:(g?"none":"static"),position:"absolute",left:h.offset().left,top:h.offset().top+h.outerHeight()}).appendTo(c(f.get("popupContainer")||"body"));if(c.fn.mousewheel){f.div.mousewheel(this._doMouseWheel)}}f.div.html(this._generateContent(h[0],f))}}}},_updateInput:function(l,f){var k=c.data(l,this.dataName);if(k){var n="";var g="";var o=(k.get("multiSelect")?k.get("multiSeparator"):k.get("rangeSeparator"));var d=k.get("dateFormat");var h=k.get("altFormat")||d;for(var j=0;j0?o:"")+c.datepick.formatDate(d,k.selectedDates[j],k.getConfig()));g+=(j>0?o:"")+c.datepick.formatDate(h,k.selectedDates[j],k.getConfig())}if(!k.inline&&!f){c(l).val(n)}c(k.get("altField")).val(g);var m=k.get("onSelect");if(m&&!f&&!k.inSelect){k.inSelect=true;m.apply(l,[k.selectedDates]);k.inSelect=false}}},_getBorders:function(d){var f=function(h){var g=(c.browser.msie?1:0);return{thin:1+g,medium:3+g,thick:5+g}[h]||h};return[parseFloat(f(d.css("border-left-width"))),parseFloat(f(d.css("border-top-width")))]},_checkOffset:function(l){var f=(l.target.is(":hidden")&&l.trigger?l.trigger:l.target);var k=f.offset();var h=false;c(l.target).parents().each(function(){h|=c(this).css("position")=="fixed";return !h});if(h&&c.browser.opera){k.left-=document.documentElement.scrollLeft;k.top-=document.documentElement.scrollTop}var u=(!c.browser.mozilla||document.doctype?document.documentElement.clientWidth:0)||document.body.clientWidth;var m=(!c.browser.mozilla||document.doctype?document.documentElement.clientHeight:0)||document.body.clientHeight;if(u==0){return k}var p=l.get("alignment");var g=l.get("isRTL");var t=document.documentElement.scrollLeft||document.body.scrollLeft;var s=document.documentElement.scrollTop||document.body.scrollTop;var o=k.top-l.div.outerHeight()-(h&&c.browser.opera?document.documentElement.scrollTop:0);var r=k.top+f.outerHeight();var q=k.left;var n=k.left+f.outerWidth()-l.div.outerWidth()-(h&&c.browser.opera?document.documentElement.scrollLeft:0);var j=(k.left+l.div.outerWidth()-t)>u;var d=(k.top+l.target.outerHeight()+l.div.outerHeight()-s)>m;if(p=="topLeft"){k={left:q,top:o}}else{if(p=="topRight"){k={left:n,top:o}}else{if(p=="bottomLeft"){k={left:q,top:r}}else{if(p=="bottomRight"){k={left:n,top:r}}else{if(p=="top"){k={left:(g||j?n:q),top:o}}else{k={left:(g||j?n:q),top:(d?o:r)}}}}}}k.left=Math.max((h?0:t),k.left-(h?t:0));k.top=Math.max((h?0:s),k.top-(h?s:0));return k},_checkExternalClick:function(d){if(!c.datepick.curInst){return}var f=c(d.target);if(!f.parents().andSelf().hasClass(c.datepick._popupClass)&&!f.hasClass(c.datepick.markerClass)&&!f.parents().andSelf().hasClass(c.datepick._triggerClass)){c.datepick.hide(c.datepick.curInst)}},hide:function(l,g){var k=c.data(l,this.dataName)||l;if(k&&k==c.datepick.curInst){var f=(g?"":k.get("showAnim"));var h=k.get("showSpeed");h=(h=="normal"&&c.ui&&c.ui.version>="1.8"?"_default":h);var j=function(){k.div.remove();k.div=null;c.datepick.curInst=null;var m=k.get("onClose");if(m){m.apply(l,[k.selectedDates])}};k.div.stop();if(c.effects&&c.effects[f]){k.div.hide(f,k.get("showOptions"),h,j)}else{var d=(f=="slideDown"?"slideUp":(f=="fadeIn"?"fadeOut":"hide"));k.div[d]((f?h:""),j)}if(!f){j()}}},_keyDown:function(g){var k=g.target;var h=c.data(k,c.datepick.dataName);var j=false;if(h.div){if(g.keyCode==9){c.datepick.hide(k)}else{if(g.keyCode==13){c.datepick.selectDate(k,c("a."+h.get("renderer").highlightedClass,h.div)[0]);j=true}else{var d=h.get("commands");for(var f in d){var l=d[f];if(l.keystroke.keyCode==g.keyCode&&!!l.keystroke.ctrlKey==!!(g.ctrlKey||g.metaKey)&&!!l.keystroke.altKey==g.altKey&&!!l.keystroke.shiftKey==g.shiftKey){c.datepick.performAction(k,f);j=true;break}}}}}else{var l=h.get("commands").current;if(l.keystroke.keyCode==g.keyCode&&!!l.keystroke.ctrlKey==!!(g.ctrlKey||g.metaKey)&&!!l.keystroke.altKey==g.altKey&&!!l.keystroke.shiftKey==g.shiftKey){c.datepick.show(k);j=true}}h.ctrlKey=((g.keyCode<48&&g.keyCode!=32)||g.ctrlKey||g.metaKey);if(j){g.preventDefault();g.stopPropagation()}return !j},_keyPress:function(g){var j=g.target;var h=c.data(j,c.datepick.dataName);if(h&&h.get("constrainInput")){var f=String.fromCharCode(g.keyCode||g.charCode);var d=c.datepick._allowedChars(h);return(g.metaKey||h.ctrlKey||f<" "||!d||d.indexOf(f)>-1)}return true},_allowedChars:function(l){var d=l.get("dateFormat");var f=(l.get("multiSelect")?l.get("multiSeparator"):(l.get("rangeSelect")?l.get("rangeSeparator"):""));var k=false;var g=false;for(var h=0;h0){c.datepick.setDate(h,g,null,true)}}catch(d){}}return true},_doMouseWheel:function(d,h){var g=(c.datepick.curInst&&c.datepick.curInst.target[0])||c(d.target).closest("."+c.datepick.markerClass)[0];if(c.datepick.isDisabled(g)){return}var f=c.data(g,c.datepick.dataName);if(f.get("useMouseWheel")){h=(c.browser.opera?-h:h);h=(h<0?-1:+1);c.datepick.changeMonth(g,-f.get(d.ctrlKey?"monthsToJump":"monthsToStep")*h)}d.preventDefault()},clear:function(f){var d=c.data(f,this.dataName);if(d){d.selectedDates=[];this.hide(f);if(d.get("selectDefaultDate")&&d.get("defaultDate")){this.setDate(f,c.datepick.newDate(d.get("defaultDate")||c.datepick.today()))}else{this._updateInput(f)}}},getDate:function(f){var d=c.data(f,this.dataName);return(d?d.selectedDates:[])},setDate:function(s,f,r,h,o){var q=c.data(s,this.dataName);if(q){if(!c.isArray(f)){f=[f];if(r){f.push(r)}}var g=q.get("dateFormat");var n=q.get("minDate");var d=q.get("maxDate");var l=q.selectedDates[0];q.selectedDates=[];for(var p=0;p=n.getTime())&&(!d||k.getTime()<=d.getTime())){var u=false;for(var m=0;mq.selectedDates[1].getTime()?q.selectedDates[0]:q.selectedDates[1]);break}q.pickingRange=false}q.prevDate=(q.drawDate?c.datepick.newDate(q.drawDate):null);q.drawDate=this._checkMinMax(c.datepick.newDate(q.selectedDates[0]||q.get("defaultDate")||c.datepick.today()),q);if(!o){this._update(s);this._updateInput(s,h)}}},isSelectable:function(g,d){var f=c.data(g,this.dataName);if(!f){return false}d=c.datepick.determineDate(d,f.selectedDates[0]||this.today(),null,f.get("dateFormat"),f.getConfig());return this._isSelectable(g,d,f.get("onDate"),f.get("minDate"),f.get("maxDate"))},_isSelectable:function(j,f,d,h,k){var g=(typeof d=="boolean"?{selectable:d}:(!d?{}:d.apply(j,[f,true])));return(g.selectable!=false)&&(!h||f.getTime()>=h.getTime())&&(!k||f.getTime()<=k.getTime())},performAction:function(h,g){var f=c.data(h,this.dataName);if(f&&!this.isDisabled(h)){var d=f.get("commands");if(d[g]&&d[g].enabled.apply(h,[f])){d[g].action.apply(h,[f])}}},showMonth:function(k,g,j,f){var h=c.data(k,this.dataName);if(h&&(f!=null||(h.drawDate.getFullYear()!=g||h.drawDate.getMonth()+1!=j))){h.prevDate=c.datepick.newDate(h.drawDate);var d=this._checkMinMax((g!=null?c.datepick.newDate(g,j,1):c.datepick.today()),h);h.drawDate=c.datepick.newDate(d.getFullYear(),d.getMonth()+1,(f!=null?f:Math.min(h.drawDate.getDate(),c.datepick.daysInMonth(d.getFullYear(),d.getMonth()+1))));this._update(k)}},changeMonth:function(g,h){var f=c.data(g,this.dataName);if(f){var d=c.datepick.add(c.datepick.newDate(f.drawDate),h,"m");this.showMonth(g,d.getFullYear(),d.getMonth()+1)}},changeDay:function(g,h){var f=c.data(g,this.dataName);if(f){var d=c.datepick.add(c.datepick.newDate(f.drawDate),h,"d");this.showMonth(g,d.getFullYear(),d.getMonth()+1,d.getDate())}},_checkMinMax:function(d,g){var f=g.get("minDate");var h=g.get("maxDate");d=(f&&d.getTime()h.getTime()?c.datepick.newDate(h):d);return d},retrieveDate:function(g,d){var f=c.data(g,this.dataName);return(!f?null:this._normaliseDate(new Date(parseInt(d.className.replace(/^.*dp(-?\d+).*$/,"$1"),10))))},selectDate:function(m,h){var k=c.data(m,this.dataName);if(k&&!this.isDisabled(m)){var f=this.retrieveDate(m,h);var l=k.get("multiSelect");var d=k.get("rangeSelect");if(l){var j=false;for(var g=0;g':"");var h=f.get("commands");var l=f.get("commandsAsDateFormat");var o=function(C,A,E,z,B){if(n.indexOf("{"+C+":"+z+"}")==-1){return}var D=h[z];var y=(l?D.date.apply(w,[f]):null);n=n.replace(new RegExp("\\{"+C+":"+z+"\\}","g"),"<"+A+(D.status?' title="'+f.get(D.status)+'"':"")+' class="'+s.commandClass+" "+s.commandClass+"-"+z+" "+B+(D.enabled(f)?"":" "+s.disabledClass)+'">'+(y?c.datepick.formatDate(f.get(D.text),y,f.getConfig()):f.get(D.text))+"")};for(var x in h){o("button",'button type="button"',"button",x,s.commandButtonClass);o("link",'a href="javascript:void(0)"',"a",x,s.commandLinkClass)}n=c(n);if(d[1]>1){var k=0;c(s.monthSelector,n).each(function(){var y=++k%d[1];c(this).addClass(y==1?"first":(y==0?"last":""))})}var p=this;n.find(s.daySelector+" a").hover(function(){c(this).addClass(s.highlightedClass)},function(){(f.inline?c(this).parents("."+p.markerClass):f.div).find(s.daySelector+" a").removeClass(s.highlightedClass)}).click(function(){p.selectDate(w,this)}).end().find("select."+this._monthYearClass+":not(."+this._anyYearClass+")").change(function(){var y=c(this).val().split("/");p.showMonth(w,parseInt(y[1],10),parseInt(y[0],10))}).end().find("select."+this._anyYearClass).click(function(){c(this).css("visibility","hidden").next("input").css({left:this.offsetLeft,top:this.offsetTop,width:this.offsetWidth,height:this.offsetHeight}).show().focus()}).end().find("input."+p._monthYearClass).change(function(){try{var y=parseInt(c(this).val(),10);y=(isNaN(y)?f.drawDate.getFullYear():y);p.showMonth(w,y,f.drawDate.getMonth()+1,f.drawDate.getDate())}catch(z){alert(z)}}).keydown(function(y){if(y.keyCode==13){c(y.target).change()}else{if(y.keyCode==27){c(y.target).hide().prev("select").css("visibility","visible");f.target.focus()}}});n.find("."+s.commandClass).click(function(){if(!c(this).hasClass(s.disabledClass)){var y=this.className.replace(new RegExp("^.*"+s.commandClass+"-([^ ]+).*$"),"$1");c.datepick.performAction(w,y)}});if(f.get("isRTL")){n.addClass(s.rtlClass)}if(d[0]*d[1]>1){n.addClass(s.multiClass)}var t=f.get("pickerClass");if(t){n.addClass(t)}c("body").append(n);var r=0;n.find(s.monthSelector).each(function(){r+=c(this).outerWidth()});n.width(r/d[0]);var q=f.get("onShow");if(q){q.apply(w,[n,f])}return n},_generateMonth:function(L,j,v,I,z,n){var f=c.datepick.daysInMonth(v,I);var g=j.get("monthsToShow");g=(c.isArray(g)?g:[1,g]);var q=j.get("fixedWeeks")||(g[0]*g[1]>1);var s=j.get("firstDay");var N=(c.datepick.newDate(v,I,1).getDay()-s+7)%7;var l=(q?6:Math.ceil((N+f)/7));var E=j.get("showOtherMonths");var x=j.get("selectOtherMonths")&&E;var H=j.get("dayStatus");var o=(j.pickingRange?j.selectedDates[0]:j.get("minDate"));var t=j.get("maxDate");var p=j.get("rangeSelect");var w=j.get("onDate");var D=z.week.indexOf("{weekOfYear}")>-1;var K=j.get("calculateWeek");var G=c.datepick.today();var J=c.datepick.newDate(v,I,1);c.datepick.add(J,-N-(q&&(J.getDay()==s)?7:0),"d");var d=J.getTime();var m="";for(var A=0;A'+(K?K(J):0)+"");var k="";for(var C=0;C<7;C++){var y=false;if(p&&j.selectedDates.length>0){y=(J.getTime()>=j.selectedDates[0]&&J.getTime()<=j.selectedDates[1])}else{for(var B=0;B"+(E||(J.getMonth()+1)==I?F.content||J.getDate():" ")+(r?"":""));c.datepick.add(J,1,"d");d=J.getTime()}m+=this._prepare(z.week,j).replace(/\{days\}/g,k).replace(/\{weekOfYear\}/g,M)}var h=this._prepare(z.month,j).match(/\{monthHeader(:[^\}]+)?\}/);h=(h[0].length<=13?"MM yyyy":h[0].substring(13,h[0].length-1));h=(n?this._generateMonthSelection(j,v,I,o,t,h,z):c.datepick.formatDate(h,c.datepick.newDate(v,I,1),j.getConfig()));var u=this._prepare(z.weekHeader,j).replace(/\{days\}/g,this._generateDayHeaders(j,z));return this._prepare(z.month,j).replace(/\{monthHeader(:[^\}]+)?\}/g,h).replace(/\{weekHeader\}/g,u).replace(/\{weeks\}/g,m)},_generateDayHeaders:function(j,h){var g=j.get("firstDay");var m=j.get("dayNames");var f=j.get("dayNamesMin");var l="";for(var d=0;d<7;d++){var k=(d+g)%7;l+=this._prepare(h.dayHeader,j).replace(/\{day\}/g,''+f[k]+"")}return l},_generateMonthSelection:function(n,r,p,k,d,u){if(!n.get("changeMonth")){return c.datepick.formatDate(u,c.datepick.newDate(r,p,1),n.getConfig())}var l=n.get("monthNames"+(u.match(/mm/i)?"":"Short"));var o=u.replace(/m+/i,"\\x2E").replace(/y+/i,"\\x2F");var h='";o=o.replace(/\\x2E/,h);var v=n.get("yearRange");if(v=="any"){h=''}else{v=v.split(":");var t=c.datepick.today().getFullYear();var f=(v[0].match("c[+-].*")?r+parseInt(v[0].substring(1),10):((v[0].match("[+-].*")?t:0)+parseInt(v[0],10)));var j=(v[1].match("c[+-].*")?r+parseInt(v[1].substring(1),10):((v[1].match("[+-].*")?t:0)+parseInt(v[1],10)));h='"}o=o.replace(/\\x2F/,h);return o},_prepare:function(j,g){var h=function(m,k){while(true){var n=j.indexOf("{"+m+":start}");if(n==-1){return}var l=j.substring(n).indexOf("{"+m+":end}");if(l>-1){j=j.substring(0,n)+(k?j.substr(n+m.length+8,l-m.length-8):"")+j.substring(n+l+m.length+6)}}};h("inline",g.inline);h("popup",!g.inline);var f=/\{l10n:([^\}]+)\}/;var d=null;while(d=f.exec(j)){j=j.replace(d[0],g.get(d[1]))}return j}});function a(g,f){c.extend(g,f);for(var d in f){if(f[d]==null||f[d]==undefined){g[d]=f[d]}}return g}c.fn.datepick=function(f){var d=Array.prototype.slice.call(arguments,1);if(c.inArray(f,["getDate","isDisabled","isSelectable","options","retrieveDate"])>-1){return c.datepick[f].apply(c.datepick,[this[0]].concat(d))}return this.each(function(){if(typeof f=="string"){c.datepick[f].apply(c.datepick,[this].concat(d))}else{c.datepick._attachPicker(this,f||{})}})};c.datepick=new b();c(function(){c(document).mousedown(c.datepick._checkExternalClick).resize(function(){c.datepick.hide(c.datepick.curInst)})})})(jQuery);(function(a){a.datepick.regional.fr={monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthNamesShort:["Jan","Fév","Mar","Avr","Mai","Jun","Jul","Aoû","Sep","Oct","Nov","Déc"],dayNames:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],dayNamesShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],dayNamesMin:["Di","Lu","Ma","Me","Je","Ve","Sa"],dateFormat:"dd/mm/yyyy",firstDay:1,renderer:a.datepick.defaultRenderer,prevText:"<Préc",prevStatus:"Voir le mois précédent",prevJumpText:"<<",prevJumpStatus:"Voir l'année précédent",nextText:"Suiv>",nextStatus:"Voir le mois suivant",nextJumpText:">>",nextJumpStatus:"Voir l'année suivant",currentText:"Courant",currentStatus:"Voir le mois courant",todayText:"Aujourd'hui",todayStatus:"Voir aujourd'hui",clearText:"Effacer",clearStatus:"Effacer la date sélectionnée",closeText:"Fermer",closeStatus:"Fermer sans modifier",yearStatus:"Voir une autre année",monthStatus:"Voir un autre mois",weekText:"Sm",weekStatus:"Semaine de l'année",dayStatus:"'Choisir' le DD d MM",defaultStatus:"Choisir la date",isRTL:false};a.datepick.setDefaults(a.datepick.regional.fr)})(jQuery);(function(b){var a;b.fn.jqprint=function(d){a=b.extend({},b.fn.jqprint.defaults,d);var c=(this instanceof jQuery)?this:b(this);if(b("#jqPPreview").length==0){var g=b("