<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -417,29 +417,42 @@ hs=function(w,e,y){var s=[];w.each(function(){s.push(this._jqm)});
 			// Handles password fields by creating a clone that's a text field.
 			if(ele.attr(&quot;type&quot;)==&quot;password&quot;) {
 			  var eledef = ele.data(&quot;defText&quot;);
-			  var el = ele.clone().data(&quot;defType&quot;, &quot;password&quot;).data(&quot;defText&quot;, eledef).attr(&quot;type&quot;, &quot;text&quot;);
-        ele.after(el).remove();
+        var el = $('&lt;input type=&quot;text&quot;/&gt;');
+        el.attr( 'name', ele.attr('name') );
+        el.attr( 'size', ele.attr('size') );
+        el.attr( 'class', ele.attr('class') );
+        el.val( ele.val() );
+        el.data(&quot;defType&quot;, &quot;password&quot;).data(&quot;defText&quot;, eledef);
+        ele.replaceWith(el);
         var ele = el;
 		  }
 			hint_focus(ele);
 			hint_blur(ele);
 	  };
 	  function hint_focus(ele){ 
-	    ele.bind(&quot;focus.hint&quot;,function(){
+	    ele.bind(&quot;focus.hint&quot;,function(ele){
+        var ele = $(this);
 	      if(ele.val() == ele.data(&quot;defText&quot;)) { ele.val(&quot;&quot;); }
 				// add the focus class, remove changed_class
 				ele.addClass(defaults.focus_class).removeClass(defaults.changed_class);
 	      if(ele.data(&quot;defType&quot;)==&quot;password&quot;) {
-	        var eledef = ele.data(&quot;defText&quot;);
-  			  var el = ele.clone().data(&quot;defText&quot;, eledef).data(&quot;defType&quot;,&quot;password&quot;).attr(&quot;type&quot;, &quot;password&quot;);
-          ele.after(el).remove();
-          hint_blur(el);
-          el.eq(0).focus();
+  			  var eledef = ele.data(&quot;defText&quot;);
+          var el = $('&lt;input type=&quot;password&quot;/&gt;');
+          el.attr( 'name', ele.attr('name') );
+          el.attr( 'size', ele.attr('size') );
+          el.attr( 'class', ele.attr('class') );
+          el.val( ele.val() );
+          el.data(&quot;defType&quot;, &quot;password&quot;).data(&quot;defText&quot;, eledef);
+          ele.replaceWith(el);
+          var ele = el;
+          ele.focus();
+          hint_blur(ele);
   			}
 			});
 	  };
 	  function hint_blur(ele){ 
 	    ele.bind(&quot;blur.hint&quot;,function(){
+        var ele = $(this);
 	      if(ele.val() == &quot;&quot;) { ele.val(ele.data(&quot;defText&quot;)); }
 				// remove focus_class, add changed_class.
 				ele.removeClass(defaults.focus_class);
@@ -447,9 +460,14 @@ hs=function(w,e,y){var s=[];w.each(function(){s.push(this._jqm)});
 					else { ele.removeClass(defaults.changed_class); }
 				if(ele.data(&quot;defType&quot;)==&quot;password&quot; &amp;&amp; ele.val()==ele.data(&quot;defText&quot;)) {
 				  var eledef = ele.data(&quot;defText&quot;);
-				  var el = ele.clone().data(&quot;defText&quot;, eledef).data(&quot;defType&quot;, &quot;password&quot;).attr(&quot;type&quot;, &quot;text&quot;);
-          ele.after(el);
-          ele.remove();
+          var el = $('&lt;input type=&quot;text&quot;/&gt;');
+          el.attr( 'name', ele.attr('name') );
+          el.attr( 'size', ele.attr('size') );
+          el.attr( 'class', ele.attr('class') );
+          el.val( ele.val() );
+          el.data(&quot;defType&quot;, &quot;password&quot;).data(&quot;defText&quot;, eledef);
+          ele.replaceWith(el);
+          var ele = el;
           hint_focus(el);
 				}
 	    });</diff>
      <filename>resources/public/javascripts/build/jquery.132.combined.js</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1 @@
-(function(){var W=this,ab,F=W.jQuery,S=W.$,T=W.jQuery=W.$=function(b,a){return new T.fn.init(b,a)},M=/^[^&lt;]*(&lt;(.|\s)+&gt;)[^&gt;]*$|^#([\w-]+)$/,ac=/^.[^:#\[\.,]*$/;T.fn=T.prototype={init:function(e,b){e=e||document;if(e.nodeType){this[0]=e;this.length=1;this.context=e;return this}if(typeof e===&quot;string&quot;){var c=M.exec(e);if(c&amp;&amp;(c[1]||!b)){if(c[1]){e=T.clean([c[1]],b)}else{var a=document.getElementById(c[3]);if(a&amp;&amp;a.id!=c[3]){return T().find(e)}var d=T(a||[]);d.context=document;d.selector=e;return d}}else{return T(b).find(e)}}else{if(T.isFunction(e)){return T(document).ready(e)}}if(e.selector&amp;&amp;e.context){this.selector=e.selector;this.context=e.context}return this.setArray(T.isArray(e)?e:T.makeArray(e))},selector:&quot;&quot;,jquery:&quot;1.3.2&quot;,size:function(){return this.length},get:function(a){return a===ab?Array.prototype.slice.call(this):this[a]},pushStack:function(c,a,d){var b=T(c);b.prevObject=this;b.context=this.context;if(a===&quot;find&quot;){b.selector=this.selector+(this.selector?&quot; &quot;:&quot;&quot;)+d}else{if(a){b.selector=this.selector+&quot;.&quot;+a+&quot;(&quot;+d+&quot;)&quot;}}return b},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},each:function(a,b){return T.each(this,a,b)},index:function(a){return T.inArray(a&amp;&amp;a.jquery?a[0]:a,this)},attr:function(c,a,b){var d=c;if(typeof c===&quot;string&quot;){if(a===ab){return this[0]&amp;&amp;T[b||&quot;attr&quot;](this[0],c)}else{d={};d[c]=a}}return this.each(function(e){for(c in d){T.attr(b?this.style:this,c,T.prop(this,d[c],b,e,c))}})},css:function(b,a){if((b==&quot;width&quot;||b==&quot;height&quot;)&amp;&amp;parseFloat(a)&lt;0){a=ab}return this.attr(b,a,&quot;curCSS&quot;)},text:function(a){if(typeof a!==&quot;object&quot;&amp;&amp;a!=null){return this.empty().append((this[0]&amp;&amp;this[0].ownerDocument||document).createTextNode(a))}var b=&quot;&quot;;T.each(a||this,function(){T.each(this.childNodes,function(){if(this.nodeType!=8){b+=this.nodeType!=1?this.nodeValue:T.fn.text([this])}})});return b},wrapAll:function(b){if(this[0]){var a=T(b,this[0].ownerDocument).clone();if(this[0].parentNode){a.insertBefore(this[0])}a.map(function(){var c=this;while(c.firstChild){c=c.firstChild}return c}).append(this)}return this},wrapInner:function(a){return this.each(function(){T(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){T(this).wrapAll(a)})},append:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1){this.appendChild(a)}})},prepend:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1){this.insertBefore(a,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this.nextSibling)})},end:function(){return this.prevObject||T([])},push:[].push,sort:[].sort,splice:[].splice,find:function(b){if(this.length===1){var a=this.pushStack([],&quot;find&quot;,b);a.length=0;T.find(b,this[0],a);return a}else{return this.pushStack(T.unique(T.map(this,function(c){return T.find(b,c)})),&quot;find&quot;,b)}},clone:function(b){var d=this.map(function(){if(!T.support.noCloneEvent&amp;&amp;!T.isXMLDoc(this)){var f=this.outerHTML;if(!f){var e=this.ownerDocument.createElement(&quot;div&quot;);e.appendChild(this.cloneNode(true));f=e.innerHTML}return T.clean([f.replace(/ jQuery\d+=&quot;(?:\d+|null)&quot;/g,&quot;&quot;).replace(/^\s*/,&quot;&quot;)])[0]}else{return this.cloneNode(true)}});if(b===true){var a=this.find(&quot;*&quot;).andSelf(),c=0;d.find(&quot;*&quot;).andSelf().each(function(){if(this.nodeName!==a[c].nodeName){return}var g=T.data(a[c],&quot;events&quot;);for(var e in g){for(var f in g[e]){T.event.add(this,e,g[e][f],g[e][f].data)}}c++})}return d},filter:function(a){return this.pushStack(T.isFunction(a)&amp;&amp;T.grep(this,function(b,c){return a.call(b,c)})||T.multiFilter(a,T.grep(this,function(b){return b.nodeType===1})),&quot;filter&quot;,a)},closest:function(c){var a=T.expr.match.POS.test(c)?T(c):null,b=0;return this.map(function(){var d=this;while(d&amp;&amp;d.ownerDocument){if(a?a.index(d)&gt;-1:T(d).is(c)){T.data(d,&quot;closest&quot;,b);return d}d=d.parentNode;b++}})},not:function(b){if(typeof b===&quot;string&quot;){if(ac.test(b)){return this.pushStack(T.multiFilter(b,this,true),&quot;not&quot;,b)}else{b=T.multiFilter(b,this)}}var a=b.length&amp;&amp;b[b.length-1]!==ab&amp;&amp;!b.nodeType;return this.filter(function(){return a?T.inArray(this,b)&lt;0:this!=b})},add:function(a){return this.pushStack(T.unique(T.merge(this.get(),typeof a===&quot;string&quot;?T(a):T.makeArray(a))))},is:function(a){return !!a&amp;&amp;T.multiFilter(a,this).length&gt;0},hasClass:function(a){return !!a&amp;&amp;this.is(&quot;.&quot;+a)},val:function(c){if(c===ab){var j=this[0];if(j){if(T.nodeName(j,&quot;option&quot;)){return(j.attributes.value||{}).specified?j.value:j.text}if(T.nodeName(j,&quot;select&quot;)){var e=j.selectedIndex,b=[],a=j.options,f=j.type==&quot;select-one&quot;;if(e&lt;0){return null}for(var h=f?e:0,d=f?e+1:a.length;h&lt;d;h++){var g=a[h];if(g.selected){c=T(g).val();if(f){return c}b.push(c)}}return b}return(j.value||&quot;&quot;).replace(/\r/g,&quot;&quot;)}return ab}if(typeof c===&quot;number&quot;){c+=&quot;&quot;}return this.each(function(){if(this.nodeType!=1){return}if(T.isArray(c)&amp;&amp;/radio|checkbox/.test(this.type)){this.checked=(T.inArray(this.value,c)&gt;=0||T.inArray(this.name,c)&gt;=0)}else{if(T.nodeName(this,&quot;select&quot;)){var k=T.makeArray(c);T(&quot;option&quot;,this).each(function(){this.selected=(T.inArray(this.value,k)&gt;=0||T.inArray(this.text,k)&gt;=0)});if(!k.length){this.selectedIndex=-1}}else{this.value=c}}})},html:function(a){return a===ab?(this[0]?this[0].innerHTML.replace(/ jQuery\d+=&quot;(?:\d+|null)&quot;/g,&quot;&quot;):null):this.empty().append(a)},replaceWith:function(a){return this.after(a).remove()},eq:function(a){return this.slice(a,+a+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),&quot;slice&quot;,Array.prototype.slice.call(arguments).join(&quot;,&quot;))},map:function(a){return this.pushStack(T.map(this,function(b,c){return a.call(b,c,b)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(d,a,b){if(this[0]){var e=(this[0].ownerDocument||this[0]).createDocumentFragment(),h=T.clean(d,(this[0].ownerDocument||this[0]),e),f=e.firstChild;if(f){for(var g=0,j=this.length;g&lt;j;g++){b.call(c(this[g],f),this.length&gt;1||g&gt;0?e.cloneNode(true):e)}}if(h){T.each(h,E)}}return this;function c(l,k){return a&amp;&amp;T.nodeName(l,&quot;table&quot;)&amp;&amp;T.nodeName(k,&quot;tr&quot;)?(l.getElementsByTagName(&quot;tbody&quot;)[0]||l.appendChild(l.ownerDocument.createElement(&quot;tbody&quot;))):l}}};T.fn.init.prototype=T.fn;function E(b,a){if(a.src){T.ajax({url:a.src,async:false,dataType:&quot;script&quot;})}else{T.globalEval(a.text||a.textContent||a.innerHTML||&quot;&quot;)}if(a.parentNode){a.parentNode.removeChild(a)}}function ad(){return +new Date}T.extend=T.fn.extend=function(){var c=arguments[0]||{},e=1,d=arguments.length,h=false,f;if(typeof c===&quot;boolean&quot;){h=c;c=arguments[1]||{};e=2}if(typeof c!==&quot;object&quot;&amp;&amp;!T.isFunction(c)){c={}}if(d==e){c=this;--e}for(;e&lt;d;e++){if((f=arguments[e])!=null){for(var g in f){var b=c[g],a=f[g];if(c===a){continue}if(h&amp;&amp;a&amp;&amp;typeof a===&quot;object&quot;&amp;&amp;!a.nodeType){c[g]=T.extend(h,b||(a.length!=null?[]:{}),a)}else{if(a!==ab){c[g]=a}}}}}return c};var ag=/z-?index|font-?weight|opacity|zoom|line-?height/i,Q=document.defaultView||{},L=Object.prototype.toString;T.extend({noConflict:function(a){W.$=S;if(a){W.jQuery=F}return T},isFunction:function(a){return L.call(a)===&quot;[object Function]&quot;},isArray:function(a){return L.call(a)===&quot;[object Array]&quot;},isXMLDoc:function(a){return a.nodeType===9&amp;&amp;a.documentElement.nodeName!==&quot;HTML&quot;||!!a.ownerDocument&amp;&amp;T.isXMLDoc(a.ownerDocument)},globalEval:function(a){if(a&amp;&amp;/\S/.test(a)){var b=document.getElementsByTagName(&quot;head&quot;)[0]||document.documentElement,c=document.createElement(&quot;script&quot;);c.type=&quot;text/javascript&quot;;if(T.support.scriptEval){c.appendChild(document.createTextNode(a))}else{c.text=a}b.insertBefore(c,b.firstChild);b.removeChild(c)}},nodeName:function(a,b){return a.nodeName&amp;&amp;a.nodeName.toUpperCase()==b.toUpperCase()},each:function(e,a,f){var g,d=0,c=e.length;if(f){if(c===ab){for(g in e){if(a.apply(e[g],f)===false){break}}}else{for(;d&lt;c;){if(a.apply(e[d++],f)===false){break}}}}else{if(c===ab){for(g in e){if(a.call(e[g],g,e[g])===false){break}}}else{for(var b=e[0];d&lt;c&amp;&amp;a.call(b,d,b)!==false;b=e[++d]){}}}return e},prop:function(b,a,c,d,e){if(T.isFunction(a)){a=a.call(b,d)}return typeof a===&quot;number&quot;&amp;&amp;c==&quot;curCSS&quot;&amp;&amp;!ag.test(e)?a+&quot;px&quot;:a},className:{add:function(b,a){T.each((a||&quot;&quot;).split(/\s+/),function(d,c){if(b.nodeType==1&amp;&amp;!T.className.has(b.className,c)){b.className+=(b.className?&quot; &quot;:&quot;&quot;)+c}})},remove:function(b,a){if(b.nodeType==1){b.className=a!==ab?T.grep(b.className.split(/\s+/),function(c){return !T.className.has(a,c)}).join(&quot; &quot;):&quot;&quot;}},has:function(a,b){return a&amp;&amp;T.inArray(b,(a.className||a).toString().split(/\s+/))&gt;-1}},swap:function(b,c,a){var e={};for(var d in c){e[d]=b.style[d];b.style[d]=c[d]}a.call(b);for(var d in c){b.style[d]=e[d]}},css:function(e,g,c,h){if(g==&quot;width&quot;||g==&quot;height&quot;){var a,f={position:&quot;absolute&quot;,visibility:&quot;hidden&quot;,display:&quot;block&quot;},b=g==&quot;width&quot;?[&quot;Left&quot;,&quot;Right&quot;]:[&quot;Top&quot;,&quot;Bottom&quot;];function d(){a=g==&quot;width&quot;?e.offsetWidth:e.offsetHeight;if(h===&quot;border&quot;){return}T.each(b,function(){if(!h){a-=parseFloat(T.curCSS(e,&quot;padding&quot;+this,true))||0}if(h===&quot;margin&quot;){a+=parseFloat(T.curCSS(e,&quot;margin&quot;+this,true))||0}else{a-=parseFloat(T.curCSS(e,&quot;border&quot;+this+&quot;Width&quot;,true))||0}})}if(e.offsetWidth!==0){d()}else{T.swap(e,f,d)}return Math.max(0,Math.round(a))}return T.curCSS(e,g,c)},curCSS:function(e,h,g){var b,j=e.style;if(h==&quot;opacity&quot;&amp;&amp;!T.support.opacity){b=T.attr(j,&quot;opacity&quot;);return b==&quot;&quot;?&quot;1&quot;:b}if(h.match(/float/i)){h=H}if(!g&amp;&amp;j&amp;&amp;j[h]){b=j[h]}else{if(Q.getComputedStyle){if(h.match(/float/i)){h=&quot;float&quot;}h=h.replace(/([A-Z])/g,&quot;-$1&quot;).toLowerCase();var a=Q.getComputedStyle(e,null);if(a){b=a.getPropertyValue(h)}if(h==&quot;opacity&quot;&amp;&amp;b==&quot;&quot;){b=&quot;1&quot;}}else{if(e.currentStyle){var d=h.replace(/\-(\w)/g,function(l,k){return k.toUpperCase()});b=e.currentStyle[h]||e.currentStyle[d];if(!/^\d+(px)?$/i.test(b)&amp;&amp;/^\d/.test(b)){var f=j.left,c=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left;j.left=b||0;b=j.pixelLeft+&quot;px&quot;;j.left=f;e.runtimeStyle.left=c}}}}return b},clean:function(g,b,d){b=b||document;if(typeof b.createElement===&quot;undefined&quot;){b=b.ownerDocument||b[0]&amp;&amp;b[0].ownerDocument||document}if(!d&amp;&amp;g.length===1&amp;&amp;typeof g[0]===&quot;string&quot;){var e=/^&lt;(\w+)\s*\/?&gt;$/.exec(g[0]);if(e){return[b.createElement(e[1])]}}var f=[],h=[],a=b.createElement(&quot;div&quot;);T.each(g,function(m,j){if(typeof j===&quot;number&quot;){j+=&quot;&quot;}if(!j){return}if(typeof j===&quot;string&quot;){j=j.replace(/(&lt;(\w+)[^&gt;]*?)\/&gt;/g,function(r,q,u){return u.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?r:q+&quot;&gt;&lt;/&quot;+u+&quot;&gt;&quot;});var n=j.replace(/^\s+/,&quot;&quot;).substring(0,10).toLowerCase();var l=!n.indexOf(&quot;&lt;opt&quot;)&amp;&amp;[1,&quot;&lt;select multiple='multiple'&gt;&quot;,&quot;&lt;/select&gt;&quot;]||!n.indexOf(&quot;&lt;leg&quot;)&amp;&amp;[1,&quot;&lt;fieldset&gt;&quot;,&quot;&lt;/fieldset&gt;&quot;]||n.match(/^&lt;(thead|tbody|tfoot|colg|cap)/)&amp;&amp;[1,&quot;&lt;table&gt;&quot;,&quot;&lt;/table&gt;&quot;]||!n.indexOf(&quot;&lt;tr&quot;)&amp;&amp;[2,&quot;&lt;table&gt;&lt;tbody&gt;&quot;,&quot;&lt;/tbody&gt;&lt;/table&gt;&quot;]||(!n.indexOf(&quot;&lt;td&quot;)||!n.indexOf(&quot;&lt;th&quot;))&amp;&amp;[3,&quot;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&quot;,&quot;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&quot;]||!n.indexOf(&quot;&lt;col&quot;)&amp;&amp;[2,&quot;&lt;table&gt;&lt;tbody&gt;&lt;/tbody&gt;&lt;colgroup&gt;&quot;,&quot;&lt;/colgroup&gt;&lt;/table&gt;&quot;]||!T.support.htmlSerialize&amp;&amp;[1,&quot;div&lt;div&gt;&quot;,&quot;&lt;/div&gt;&quot;]||[0,&quot;&quot;,&quot;&quot;];a.innerHTML=l[1]+j+l[2];while(l[0]--){a=a.lastChild}if(!T.support.tbody){var k=/&lt;tbody/i.test(j),o=!n.indexOf(&quot;&lt;table&quot;)&amp;&amp;!k?a.firstChild&amp;&amp;a.firstChild.childNodes:l[1]==&quot;&lt;table&gt;&quot;&amp;&amp;!k?a.childNodes:[];for(var p=o.length-1;p&gt;=0;--p){if(T.nodeName(o[p],&quot;tbody&quot;)&amp;&amp;!o[p].childNodes.length){o[p].parentNode.removeChild(o[p])}}}if(!T.support.leadingWhitespace&amp;&amp;/^\s/.test(j)){a.insertBefore(b.createTextNode(j.match(/^\s*/)[0]),a.firstChild)}j=T.makeArray(a.childNodes)}if(j.nodeType){f.push(j)}else{f=T.merge(f,j)}});if(d){for(var c=0;f[c];c++){if(T.nodeName(f[c],&quot;script&quot;)&amp;&amp;(!f[c].type||f[c].type.toLowerCase()===&quot;text/javascript&quot;)){h.push(f[c].parentNode?f[c].parentNode.removeChild(f[c]):f[c])}else{if(f[c].nodeType===1){f.splice.apply(f,[c+1,0].concat(T.makeArray(f[c].getElementsByTagName(&quot;script&quot;))))}d.appendChild(f[c])}}return h}return f},attr:function(c,f,b){if(!c||c.nodeType==3||c.nodeType==8){return ab}var e=!T.isXMLDoc(c),a=b!==ab;f=e&amp;&amp;T.props[f]||f;if(c.tagName){var g=/href|src|style/.test(f);if(f==&quot;selected&quot;&amp;&amp;c.parentNode){c.parentNode.selectedIndex}if(f in c&amp;&amp;e&amp;&amp;!g){if(a){if(f==&quot;type&quot;&amp;&amp;T.nodeName(c,&quot;input&quot;)&amp;&amp;c.parentNode){throw&quot;type property can't be changed&quot;}c[f]=b}if(T.nodeName(c,&quot;form&quot;)&amp;&amp;c.getAttributeNode(f)){return c.getAttributeNode(f).nodeValue}if(f==&quot;tabIndex&quot;){var d=c.getAttributeNode(&quot;tabIndex&quot;);return d&amp;&amp;d.specified?d.value:c.nodeName.match(/(button|input|object|select|textarea)/i)?0:c.nodeName.match(/^(a|area)$/i)&amp;&amp;c.href?0:ab}return c[f]}if(!T.support.style&amp;&amp;e&amp;&amp;f==&quot;style&quot;){return T.attr(c.style,&quot;cssText&quot;,b)}if(a){c.setAttribute(f,&quot;&quot;+b)}var h=!T.support.hrefNormalized&amp;&amp;e&amp;&amp;g?c.getAttribute(f,2):c.getAttribute(f);return h===null?ab:h}if(!T.support.opacity&amp;&amp;f==&quot;opacity&quot;){if(a){c.zoom=1;c.filter=(c.filter||&quot;&quot;).replace(/alpha\([^)]*\)/,&quot;&quot;)+(parseInt(b)+&quot;&quot;==&quot;NaN&quot;?&quot;&quot;:&quot;alpha(opacity=&quot;+b*100+&quot;)&quot;)}return c.filter&amp;&amp;c.filter.indexOf(&quot;opacity=&quot;)&gt;=0?(parseFloat(c.filter.match(/opacity=([^)]*)/)[1])/100)+&quot;&quot;:&quot;&quot;}f=f.replace(/-([a-z])/ig,function(k,j){return j.toUpperCase()});if(a){c[f]=b}return c[f]},trim:function(a){return(a||&quot;&quot;).replace(/^\s+|\s+$/g,&quot;&quot;)},makeArray:function(a){var c=[];if(a!=null){var b=a.length;if(b==null||typeof a===&quot;string&quot;||T.isFunction(a)||a.setInterval){c[0]=a}else{while(b){c[--b]=a[b]}}}return c},inArray:function(b,a){for(var d=0,c=a.length;d&lt;c;d++){if(a[d]===b){return d}}return -1},merge:function(b,e){var d=0,c,a=b.length;if(!T.support.getAll){while((c=e[d++])!=null){if(c.nodeType!=8){b[a++]=c}}}else{while((c=e[d++])!=null){b[a++]=c}}return b},unique:function(a){var f=[],g={};try{for(var e=0,d=a.length;e&lt;d;e++){var b=T.data(a[e]);if(!g[b]){g[b]=true;f.push(a[e])}}}catch(c){f=a}return f},grep:function(e,a,f){var d=[];for(var c=0,b=e.length;c&lt;b;c++){if(!f!=!a(e[c],c)){d.push(e[c])}}return d},map:function(f,a){var e=[];for(var d=0,c=f.length;d&lt;c;d++){var b=a(f[d],d);if(b!=null){e[e.length]=b}}return e.concat.apply([],e)}});var O=navigator.userAgent.toLowerCase();T.browser={version:(O.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,&quot;0&quot;])[1],safari:/webkit/.test(O),opera:/opera/.test(O),msie:/msie/.test(O)&amp;&amp;!/opera/.test(O),mozilla:/mozilla/.test(O)&amp;&amp;!/(compatible|webkit)/.test(O)};T.each({parent:function(a){return a.parentNode},parents:function(a){return T.dir(a,&quot;parentNode&quot;)},next:function(a){return T.nth(a,2,&quot;nextSibling&quot;)},prev:function(a){return T.nth(a,2,&quot;previousSibling&quot;)},nextAll:function(a){return T.dir(a,&quot;nextSibling&quot;)},prevAll:function(a){return T.dir(a,&quot;previousSibling&quot;)},siblings:function(a){return T.sibling(a.parentNode.firstChild,a)},children:function(a){return T.sibling(a.firstChild)},contents:function(a){return T.nodeName(a,&quot;iframe&quot;)?a.contentDocument||a.contentWindow.document:T.makeArray(a.childNodes)}},function(b,a){T.fn[b]=function(d){var c=T.map(this,a);if(d&amp;&amp;typeof d==&quot;string&quot;){c=T.multiFilter(d,c)}return this.pushStack(T.unique(c),b,d)}});T.each({appendTo:&quot;append&quot;,prependTo:&quot;prepend&quot;,insertBefore:&quot;before&quot;,insertAfter:&quot;after&quot;,replaceAll:&quot;replaceWith&quot;},function(b,a){T.fn[b]=function(h){var e=[],c=T(h);for(var d=0,g=c.length;d&lt;g;d++){var f=(d&gt;0?this.clone(true):this).get();T.fn[a].apply(T(c[d]),f);e=e.concat(f)}return this.pushStack(e,b,h)}});T.each({removeAttr:function(a){T.attr(this,a,&quot;&quot;);if(this.nodeType==1){this.removeAttribute(a)}},addClass:function(a){T.className.add(this,a)},removeClass:function(a){T.className.remove(this,a)},toggleClass:function(a,b){if(typeof b!==&quot;boolean&quot;){b=!T.className.has(this,a)}T.className[b?&quot;add&quot;:&quot;remove&quot;](this,a)},remove:function(a){if(!a||T.filter(a,[this]).length){T(&quot;*&quot;,this).add([this]).each(function(){T.event.remove(this);T.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){T(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(b,a){T.fn[b]=function(){return this.each(a,arguments)}});function Y(b,a){return b[0]&amp;&amp;parseInt(T.curCSS(b[0],a,true),10)||0}var aa=&quot;jQuery&quot;+ad(),I=0,R={};T.extend({cache:{},data:function(c,d,b){c=c==W?R:c;var a=c[aa];if(!a){a=c[aa]=++I}if(d&amp;&amp;!T.cache[a]){T.cache[a]={}}if(b!==ab){T.cache[a][d]=b}return d?T.cache[a][d]:a},removeData:function(c,d){c=c==W?R:c;var a=c[aa];if(d){if(T.cache[a]){delete T.cache[a][d];d=&quot;&quot;;for(d in T.cache[a]){break}if(!d){T.removeData(c)}}}else{try{delete c[aa]}catch(b){if(c.removeAttribute){c.removeAttribute(aa)}}delete T.cache[a]}},queue:function(c,d,a){if(c){d=(d||&quot;fx&quot;)+&quot;queue&quot;;var b=T.data(c,d);if(!b||T.isArray(a)){b=T.data(c,d,T.makeArray(a))}else{if(a){b.push(a)}}}return b},dequeue:function(a,b){var d=T.queue(a,b),c=d.shift();if(!b||b===&quot;fx&quot;){c=d[0]}if(c!==ab){c.call(a)}}});T.fn.extend({data:function(d,b){var a=d.split(&quot;.&quot;);a[1]=a[1]?&quot;.&quot;+a[1]:&quot;&quot;;if(b===ab){var c=this.triggerHandler(&quot;getData&quot;+a[1]+&quot;!&quot;,[a[0]]);if(c===ab&amp;&amp;this.length){c=T.data(this[0],d)}return c===ab&amp;&amp;a[1]?this.data(a[0]):c}else{return this.trigger(&quot;setData&quot;+a[1]+&quot;!&quot;,[a[0],b]).each(function(){T.data(this,d,b)})}},removeData:function(a){return this.each(function(){T.removeData(this,a)})},queue:function(b,a){if(typeof b!==&quot;string&quot;){a=b;b=&quot;fx&quot;}if(a===ab){return T.queue(this[0],b)}return this.each(function(){var c=T.queue(this,b,a);if(b==&quot;fx&quot;&amp;&amp;c.length==1){c[0].call(this)}})},dequeue:function(a){return this.each(function(){T.dequeue(this,a)})}});(function(){var b=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['&quot;][^'&quot;]*['&quot;]|[^[\]'&quot;]+)+\]|\\.|[^ &gt;+~,(\[\\]+)+|[&gt;+~])(\s*,\s*)?/g,h=0,m=Object.prototype.toString;var o=function(u,y,al,ak){al=al||[];y=y||document;if(y.nodeType!==1&amp;&amp;y.nodeType!==9){return[]}if(!u||typeof u!==&quot;string&quot;){return al}var r=[],w,D,A,z,aj,x,v=true;b.lastIndex=0;while((w=b.exec(u))!==null){r.push(w[1]);if(w[2]){x=RegExp.rightContext;break}}if(r.length&gt;1&amp;&amp;g.exec(u)){if(r.length===2&amp;&amp;l.relative[r[0]]){D=k(r[0]+r[1],y)}else{D=l.relative[r[0]]?[y]:o(r.shift(),y);while(r.length){u=r.shift();if(l.relative[u]){u+=r.shift()}D=k(u,D)}}}else{var ai=ak?{expr:r.pop(),set:p(ak)}:o.find(r.pop(),r.length===1&amp;&amp;y.parentNode?y.parentNode:y,c(y));D=o.filter(ai.expr,ai.set);if(r.length&gt;0){A=p(D)}else{v=false}while(r.length){var B=r.pop(),C=B;if(!l.relative[B]){B=&quot;&quot;}else{C=r.pop()}if(C==null){C=y}l.relative[B](A,C,c(y))}}if(!A){A=D}if(!A){throw&quot;Syntax error, unrecognized expression: &quot;+(B||u)}if(m.call(A)===&quot;[object Array]&quot;){if(!v){al.push.apply(al,A)}else{if(y.nodeType===1){for(var q=0;A[q]!=null;q++){if(A[q]&amp;&amp;(A[q]===true||A[q].nodeType===1&amp;&amp;j(y,A[q]))){al.push(D[q])}}}else{for(var q=0;A[q]!=null;q++){if(A[q]&amp;&amp;A[q].nodeType===1){al.push(D[q])}}}}}else{p(A,al)}if(x){o(x,y,al,ak);if(n){hasDuplicate=false;al.sort(n);if(hasDuplicate){for(var q=1;q&lt;al.length;q++){if(al[q]===al[q-1]){al.splice(q--,1)}}}}}return al};o.matches=function(r,q){return o(r,null,null,q)};o.find=function(q,z,A){var r,v;if(!q){return[]}for(var w=0,x=l.order.length;w&lt;x;w++){var u=l.order[w],v;if((v=l.match[u].exec(q))){var y=RegExp.leftContext;if(y.substr(y.length-1)!==&quot;\\&quot;){v[1]=(v[1]||&quot;&quot;).replace(/\\/g,&quot;&quot;);r=l.find[u](v,z,A);if(r!=null){q=q.replace(l.match[u],&quot;&quot;);break}}}}if(!r){r=z.getElementsByTagName(&quot;*&quot;)}return{set:r,expr:q}};o.filter=function(aj,ak,C,w){var x=aj,A=[],q=ak,u,z,r=ak&amp;&amp;ak[0]&amp;&amp;c(ak[0]);while(aj&amp;&amp;ak.length){for(var al in l.filter){if((u=l.match[al].exec(aj))!=null){var y=l.filter[al],B,D;z=false;if(q==A){A=[]}if(l.preFilter[al]){u=l.preFilter[al](u,q,C,A,w,r);if(!u){z=B=true}else{if(u===true){continue}}}if(u){for(var v=0;(D=q[v])!=null;v++){if(D){B=y(D,u,v,q);var ai=w^!!B;if(C&amp;&amp;B!=null){if(ai){z=true}else{q[v]=false}}else{if(ai){A.push(D);z=true}}}}}if(B!==ab){if(!C){q=A}aj=aj.replace(l.match[al],&quot;&quot;);if(!z){return[]}break}}}if(aj==x){if(z==null){throw&quot;Syntax error, unrecognized expression: &quot;+aj}else{break}}x=aj}return q};var l=o.selectors={order:[&quot;ID&quot;,&quot;NAME&quot;,&quot;TAG&quot;],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['&quot;]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['&quot;]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['&quot;]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['&quot;]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{&quot;class&quot;:&quot;className&quot;,&quot;for&quot;:&quot;htmlFor&quot;},attrHandle:{href:function(q){return q.getAttribute(&quot;href&quot;)}},relative:{&quot;+&quot;:function(q,z,r){var v=typeof z===&quot;string&quot;,A=v&amp;&amp;!/\W/.test(z),u=v&amp;&amp;!A;if(A&amp;&amp;!r){z=z.toUpperCase()}for(var w=0,x=q.length,y;w&lt;x;w++){if((y=q[w])){while((y=y.previousSibling)&amp;&amp;y.nodeType!==1){}q[w]=u||y&amp;&amp;y.nodeName===z?y||false:y===z}}if(u){o.filter(z,q,true)}},&quot;&gt;&quot;:function(x,u,w){var z=typeof u===&quot;string&quot;;if(z&amp;&amp;!/\W/.test(u)){u=w?u:u.toUpperCase();for(var r=0,v=x.length;r&lt;v;r++){var y=x[r];if(y){var q=y.parentNode;x[r]=q.nodeName===u?q:false}}}else{for(var r=0,v=x.length;r&lt;v;r++){var y=x[r];if(y){x[r]=z?y.parentNode:y.parentNode===u}}if(z){o.filter(u,x,true)}}},&quot;&quot;:function(q,u,w){var r=h++,v=a;if(!u.match(/\W/)){var x=u=w?u:u.toUpperCase();v=d}v(&quot;parentNode&quot;,u,r,q,x,w)},&quot;~&quot;:function(q,u,w){var r=h++,v=a;if(typeof u===&quot;string&quot;&amp;&amp;!u.match(/\W/)){var x=u=w?u:u.toUpperCase();v=d}v(&quot;previousSibling&quot;,u,r,q,x,w)}},find:{ID:function(u,r,q){if(typeof r.getElementById!==&quot;undefined&quot;&amp;&amp;!q){var v=r.getElementById(u[1]);return v?[v]:[]}},NAME:function(r,x,w){if(typeof x.getElementsByName!==&quot;undefined&quot;){var u=[],y=x.getElementsByName(r[1]);for(var q=0,v=y.length;q&lt;v;q++){if(y[q].getAttribute(&quot;name&quot;)===r[1]){u.push(y[q])}}return u.length===0?null:u}},TAG:function(r,q){return q.getElementsByTagName(r[1])}},preFilter:{CLASS:function(q,u,r,v,x,w){q=&quot; &quot;+q[1].replace(/\\/g,&quot;&quot;)+&quot; &quot;;if(w){return q}for(var z=0,y;(y=u[z])!=null;z++){if(y){if(x^(y.className&amp;&amp;(&quot; &quot;+y.className+&quot; &quot;).indexOf(q)&gt;=0)){if(!r){v.push(y)}}else{if(r){u[z]=false}}}}return false},ID:function(q){return q[1].replace(/\\/g,&quot;&quot;)},TAG:function(r,u){for(var q=0;u[q]===false;q++){}return u[q]&amp;&amp;c(u[q])?r[1]:r[1].toUpperCase()},CHILD:function(r){if(r[1]==&quot;nth&quot;){var q=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(r[2]==&quot;even&quot;&amp;&amp;&quot;2n&quot;||r[2]==&quot;odd&quot;&amp;&amp;&quot;2n+1&quot;||!/\D/.test(r[2])&amp;&amp;&quot;0n+&quot;+r[2]||r[2]);r[2]=(q[1]+(q[2]||1))-0;r[3]=q[3]-0}r[0]=h++;return r},ATTR:function(y,u,r,v,x,w){var q=y[1].replace(/\\/g,&quot;&quot;);if(!w&amp;&amp;l.attrMap[q]){y[1]=l.attrMap[q]}if(y[2]===&quot;~=&quot;){y[4]=&quot; &quot;+y[4]+&quot; &quot;}return y},PSEUDO:function(x,u,r,v,w){if(x[1]===&quot;not&quot;){if(x[3].match(b).length&gt;1||/^\w/.test(x[3])){x[3]=o(x[3],null,null,u)}else{var q=o.filter(x[3],u,r,true^w);if(!r){v.push.apply(v,q)}return false}}else{if(l.match.POS.test(x[0])||l.match.CHILD.test(x[0])){return true}}return x},POS:function(q){q.unshift(true);return q}},filters:{enabled:function(q){return q.disabled===false&amp;&amp;q.type!==&quot;hidden&quot;},disabled:function(q){return q.disabled===true},checked:function(q){return q.checked===true},selected:function(q){q.parentNode.selectedIndex;return q.selected===true},parent:function(q){return !!q.firstChild},empty:function(q){return !q.firstChild},has:function(q,r,u){return !!o(u[3],q).length},header:function(q){return/h\d/i.test(q.nodeName)},text:function(q){return&quot;text&quot;===q.type},radio:function(q){return&quot;radio&quot;===q.type},checkbox:function(q){return&quot;checkbox&quot;===q.type},file:function(q){return&quot;file&quot;===q.type},password:function(q){return&quot;password&quot;===q.type},submit:function(q){return&quot;submit&quot;===q.type},image:function(q){return&quot;image&quot;===q.type},reset:function(q){return&quot;reset&quot;===q.type},button:function(q){return&quot;button&quot;===q.type||q.nodeName.toUpperCase()===&quot;BUTTON&quot;},input:function(q){return/input|select|textarea|button/i.test(q.nodeName)}},setFilters:{first:function(q,r){return r===0},last:function(r,u,v,q){return u===q.length-1},even:function(q,r){return r%2===0},odd:function(q,r){return r%2===1},lt:function(q,r,u){return r&lt;u[3]-0},gt:function(q,r,u){return r&gt;u[3]-0},nth:function(q,r,u){return u[3]-0==r},eq:function(q,r,u){return u[3]-0==r}},filter:{PSEUDO:function(x,r,q,w){var u=r[1],z=l.filters[u];if(z){return z(x,q,r,w)}else{if(u===&quot;contains&quot;){return(x.textContent||x.innerText||&quot;&quot;).indexOf(r[3])&gt;=0}else{if(u===&quot;not&quot;){var y=r[3];for(var q=0,v=y.length;q&lt;v;q++){if(y[q]===x){return false}}return true}}}},CHILD:function(z,w){var r=w[1],y=z;switch(r){case&quot;only&quot;:case&quot;first&quot;:while(y=y.previousSibling){if(y.nodeType===1){return false}}if(r==&quot;first&quot;){return true}y=z;case&quot;last&quot;:while(y=y.nextSibling){if(y.nodeType===1){return false}}return true;case&quot;nth&quot;:var x=w[2],A=w[3];if(x==1&amp;&amp;A==0){return true}var u=w[0],B=z.parentNode;if(B&amp;&amp;(B.sizcache!==u||!z.nodeIndex)){var v=0;for(y=B.firstChild;y;y=y.nextSibling){if(y.nodeType===1){y.nodeIndex=++v}}B.sizcache=u}var q=z.nodeIndex-A;if(x==0){return q==0}else{return(q%x==0&amp;&amp;q/x&gt;=0)}}},ID:function(q,r){return q.nodeType===1&amp;&amp;q.getAttribute(&quot;id&quot;)===r},TAG:function(q,r){return(r===&quot;*&quot;&amp;&amp;q.nodeType===1)||q.nodeName===r},CLASS:function(q,r){return(&quot; &quot;+(q.className||q.getAttribute(&quot;class&quot;))+&quot; &quot;).indexOf(r)&gt;-1},ATTR:function(x,q){var r=q[1],v=l.attrHandle[r]?l.attrHandle[r](x):x[r]!=null?x[r]:x.getAttribute(r),w=v+&quot;&quot;,y=q[2],u=q[4];return v==null?y===&quot;!=&quot;:y===&quot;=&quot;?w===u:y===&quot;*=&quot;?w.indexOf(u)&gt;=0:y===&quot;~=&quot;?(&quot; &quot;+w+&quot; &quot;).indexOf(u)&gt;=0:!u?w&amp;&amp;v!==false:y===&quot;!=&quot;?w!=u:y===&quot;^=&quot;?w.indexOf(u)===0:y===&quot;$=&quot;?w.substr(w.length-u.length)===u:y===&quot;|=&quot;?w===u||w.substr(0,u.length+1)===u+&quot;-&quot;:false},POS:function(x,u,r,w){var v=u[2],q=l.setFilters[v];if(q){return q(x,r,u,w)}}}};var g=l.match.POS;for(var e in l.match){l.match[e]=RegExp(l.match[e].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var p=function(q,r){q=Array.prototype.slice.call(q);if(r){r.push.apply(r,q);return r}return q};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(f){p=function(w,q){var u=q||[];if(m.call(w)===&quot;[object Array]&quot;){Array.prototype.push.apply(u,w)}else{if(typeof w.length===&quot;number&quot;){for(var r=0,v=w.length;r&lt;v;r++){u.push(w[r])}}else{for(var r=0;w[r];r++){u.push(w[r])}}}return u}}var n;if(document.documentElement.compareDocumentPosition){n=function(r,u){var q=r.compareDocumentPosition(u)&amp;4?-1:r===u?0:1;if(q===0){hasDuplicate=true}return q}}else{if(&quot;sourceIndex&quot; in document.documentElement){n=function(r,u){var q=r.sourceIndex-u.sourceIndex;if(q===0){hasDuplicate=true}return q}}else{if(document.createRange){n=function(q,u){var r=q.ownerDocument.createRange(),v=u.ownerDocument.createRange();r.selectNode(q);r.collapse(true);v.selectNode(u);v.collapse(true);var w=r.compareBoundaryPoints(Range.START_TO_END,v);if(w===0){hasDuplicate=true}return w}}}}(function(){var r=document.createElement(&quot;form&quot;),q=&quot;script&quot;+(new Date).getTime();r.innerHTML=&quot;&lt;input name='&quot;+q+&quot;'/&gt;&quot;;var u=document.documentElement;u.insertBefore(r,u.firstChild);if(!!document.getElementById(q)){l.find.ID=function(y,x,w){if(typeof x.getElementById!==&quot;undefined&quot;&amp;&amp;!w){var v=x.getElementById(y[1]);return v?v.id===y[1]||typeof v.getAttributeNode!==&quot;undefined&quot;&amp;&amp;v.getAttributeNode(&quot;id&quot;).nodeValue===y[1]?[v]:ab:[]}};l.filter.ID=function(w,v){var x=typeof w.getAttributeNode!==&quot;undefined&quot;&amp;&amp;w.getAttributeNode(&quot;id&quot;);return w.nodeType===1&amp;&amp;x&amp;&amp;x.nodeValue===v}}u.removeChild(r)})();(function(){var q=document.createElement(&quot;div&quot;);q.appendChild(document.createComment(&quot;&quot;));if(q.getElementsByTagName(&quot;*&quot;).length&gt;0){l.find.TAG=function(v,w){var x=w.getElementsByTagName(v[1]);if(v[1]===&quot;*&quot;){var r=[];for(var u=0;x[u];u++){if(x[u].nodeType===1){r.push(x[u])}}x=r}return x}}q.innerHTML=&quot;&lt;a href='#'&gt;&lt;/a&gt;&quot;;if(q.firstChild&amp;&amp;typeof q.firstChild.getAttribute!==&quot;undefined&quot;&amp;&amp;q.firstChild.getAttribute(&quot;href&quot;)!==&quot;#&quot;){l.attrHandle.href=function(r){return r.getAttribute(&quot;href&quot;,2)}}})();if(document.querySelectorAll){(function(){var r=o,q=document.createElement(&quot;div&quot;);q.innerHTML=&quot;&lt;p class='TEST'&gt;&lt;/p&gt;&quot;;if(q.querySelectorAll&amp;&amp;q.querySelectorAll(&quot;.TEST&quot;).length===0){return}o=function(x,y,v,u){y=y||document;if(!u&amp;&amp;y.nodeType===9&amp;&amp;!c(y)){try{return p(y.querySelectorAll(x),v)}catch(w){}}return r(x,y,v,u)};o.find=r.find;o.filter=r.filter;o.selectors=r.selectors;o.matches=r.matches})()}if(document.getElementsByClassName&amp;&amp;document.documentElement.getElementsByClassName){(function(){var q=document.createElement(&quot;div&quot;);q.innerHTML=&quot;&lt;div class='test e'&gt;&lt;/div&gt;&lt;div class='test'&gt;&lt;/div&gt;&quot;;if(q.getElementsByClassName(&quot;e&quot;).length===0){return}q.lastChild.className=&quot;e&quot;;if(q.getElementsByClassName(&quot;e&quot;).length===1){return}l.order.splice(1,0,&quot;CLASS&quot;);l.find.CLASS=function(v,u,r){if(typeof u.getElementsByClassName!==&quot;undefined&quot;&amp;&amp;!r){return u.getElementsByClassName(v[1])}}})()}function d(y,r,u,A,q,B){var C=y==&quot;previousSibling&quot;&amp;&amp;!B;for(var w=0,x=A.length;w&lt;x;w++){var z=A[w];if(z){if(C&amp;&amp;z.nodeType===1){z.sizcache=u;z.sizset=w}z=z[y];var v=false;while(z){if(z.sizcache===u){v=A[z.sizset];break}if(z.nodeType===1&amp;&amp;!B){z.sizcache=u;z.sizset=w}if(z.nodeName===r){v=z;break}z=z[y]}A[w]=v}}}function a(y,r,u,A,q,B){var C=y==&quot;previousSibling&quot;&amp;&amp;!B;for(var w=0,x=A.length;w&lt;x;w++){var z=A[w];if(z){if(C&amp;&amp;z.nodeType===1){z.sizcache=u;z.sizset=w}z=z[y];var v=false;while(z){if(z.sizcache===u){v=A[z.sizset];break}if(z.nodeType===1){if(!B){z.sizcache=u;z.sizset=w}if(typeof r!==&quot;string&quot;){if(z===r){v=true;break}}else{if(o.filter(r,[z]).length&gt;0){v=z;break}}}z=z[y]}A[w]=v}}}var j=document.compareDocumentPosition?function(q,r){return q.compareDocumentPosition(r)&amp;16}:function(q,r){return q!==r&amp;&amp;(q.contains?q.contains(r):true)};var c=function(q){return q.nodeType===9&amp;&amp;q.documentElement.nodeName!==&quot;HTML&quot;||!!q.ownerDocument&amp;&amp;c(q.ownerDocument)};var k=function(v,x){var q=[],z=&quot;&quot;,y,r=x.nodeType?[x]:x;while((y=l.match.PSEUDO.exec(v))){z+=y[0];v=v.replace(l.match.PSEUDO,&quot;&quot;)}v=l.relative[v]?v+&quot;*&quot;:v;for(var w=0,u=r.length;w&lt;u;w++){o(v,r[w],q)}return o.filter(z,q)};T.find=o;T.filter=o.filter;T.expr=o.selectors;T.expr[&quot;:&quot;]=T.expr.filters;o.selectors.filters.hidden=function(q){return q.offsetWidth===0||q.offsetHeight===0};o.selectors.filters.visible=function(q){return q.offsetWidth&gt;0||q.offsetHeight&gt;0};o.selectors.filters.animated=function(q){return T.grep(T.timers,function(r){return q===r.elem}).length};T.multiFilter=function(q,u,r){if(r){q=&quot;:not(&quot;+q+&quot;)&quot;}return o.matches(q,u)};T.dir=function(r,u){var v=[],q=r[u];while(q&amp;&amp;q!=document){if(q.nodeType==1){v.push(q)}q=q[u]}return v};T.nth=function(w,v,r,q){v=v||1;var u=0;for(;w;w=w[r]){if(w.nodeType==1&amp;&amp;++u==v){break}}return w};T.sibling=function(q,r){var u=[];for(;q;q=q.nextSibling){if(q.nodeType==1&amp;&amp;q!=r){u.push(q)}}return u};return;W.Sizzle=o})();T.event={add:function(c,f,d,a){if(c.nodeType==3||c.nodeType==8){return}if(c.setInterval&amp;&amp;c!=W){c=W}if(!d.guid){d.guid=this.guid++}if(a!==ab){var e=d;d=this.proxy(e);d.data=a}var g=T.data(c,&quot;events&quot;)||T.data(c,&quot;events&quot;,{}),b=T.data(c,&quot;handle&quot;)||T.data(c,&quot;handle&quot;,function(){return typeof T!==&quot;undefined&quot;&amp;&amp;!T.event.triggered?T.event.handle.apply(arguments.callee.elem,arguments):ab});b.elem=c;T.each(f.split(/\s+/),function(l,k){var j=k.split(&quot;.&quot;);k=j.shift();d.type=j.slice().sort().join(&quot;.&quot;);var h=g[k];if(T.event.specialAll[k]){T.event.specialAll[k].setup.call(c,a,j)}if(!h){h=g[k]={};if(!T.event.special[k]||T.event.special[k].setup.call(c,a,j)===false){if(c.addEventListener){c.addEventListener(k,b,false)}else{if(c.attachEvent){c.attachEvent(&quot;on&quot;+k,b)}}}}h[d.guid]=d;T.event.global[k]=true});c=null},guid:1,global:{},remove:function(b,e,c){if(b.nodeType==3||b.nodeType==8){return}var f=T.data(b,&quot;events&quot;),g,h;if(f){if(e===ab||(typeof e===&quot;string&quot;&amp;&amp;e.charAt(0)==&quot;.&quot;)){for(var d in f){this.remove(b,d+(e||&quot;&quot;))}}else{if(e.type){c=e.handler;e=e.type}T.each(e.split(/\s+/),function(n,l){var j=l.split(&quot;.&quot;);l=j.shift();var m=RegExp(&quot;(^|\\.)&quot;+j.slice().sort().join(&quot;.*\\.&quot;)+&quot;(\\.|$)&quot;);if(f[l]){if(c){delete f[l][c.guid]}else{for(var k in f[l]){if(m.test(f[l][k].type)){delete f[l][k]}}}if(T.event.specialAll[l]){T.event.specialAll[l].teardown.call(b,j)}for(g in f[l]){break}if(!g){if(!T.event.special[l]||T.event.special[l].teardown.call(b,j)===false){if(b.removeEventListener){b.removeEventListener(l,T.data(b,&quot;handle&quot;),false)}else{if(b.detachEvent){b.detachEvent(&quot;on&quot;+l,T.data(b,&quot;handle&quot;))}}}g=null;delete f[l]}}})}for(g in f){break}if(!g){var a=T.data(b,&quot;handle&quot;);if(a){a.elem=null}T.removeData(b,&quot;events&quot;);T.removeData(b,&quot;handle&quot;)}}},trigger:function(d,b,e,h){var f=d.type||d;if(!h){d=typeof d===&quot;object&quot;?d[aa]?d:T.extend(T.Event(f),d):T.Event(f);if(f.indexOf(&quot;!&quot;)&gt;=0){d.type=f=f.slice(0,-1);d.exclusive=true}if(!e){d.stopPropagation();if(this.global[f]){T.each(T.cache,function(){if(this.events&amp;&amp;this.events[f]){T.event.trigger(d,b,this.handle.elem)}})}}if(!e||e.nodeType==3||e.nodeType==8){return ab}d.result=ab;d.target=e;b=T.makeArray(b);b.unshift(d)}d.currentTarget=e;var c=T.data(e,&quot;handle&quot;);if(c){c.apply(e,b)}if((!e[f]||(T.nodeName(e,&quot;a&quot;)&amp;&amp;f==&quot;click&quot;))&amp;&amp;e[&quot;on&quot;+f]&amp;&amp;e[&quot;on&quot;+f].apply(e,b)===false){d.result=false}if(!h&amp;&amp;e[f]&amp;&amp;!d.isDefaultPrevented()&amp;&amp;!(T.nodeName(e,&quot;a&quot;)&amp;&amp;f==&quot;click&quot;)){this.triggered=true;try{e[f]()}catch(a){}}this.triggered=false;if(!d.isPropagationStopped()){var g=e.parentNode||e.ownerDocument;if(g){T.event.trigger(d,b,g,true)}}},handle:function(b){var c,h;b=arguments[0]=T.event.fix(b||W.event);b.currentTarget=this;var a=b.type.split(&quot;.&quot;);b.type=a.shift();c=!a.length&amp;&amp;!b.exclusive;var d=RegExp(&quot;(^|\\.)&quot;+a.slice().sort().join(&quot;.*\\.&quot;)+&quot;(\\.|$)&quot;);h=(T.data(this,&quot;events&quot;)||{})[b.type];for(var f in h){var e=h[f];if(c||d.test(e.type)){b.handler=e;b.data=e.data;var g=e.apply(this,arguments);if(g!==ab){b.result=g;if(g===false){b.preventDefault();b.stopPropagation()}}if(b.isImmediatePropagationStopped()){break}}}},props:&quot;altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which&quot;.split(&quot; &quot;),fix:function(c){if(c[aa]){return c}var e=c;c=T.Event(e);for(var d=this.props.length,a;d;){a=this.props[--d];c[a]=e[a]}if(!c.target){c.target=c.srcElement||document}if(c.target.nodeType==3){c.target=c.target.parentNode}if(!c.relatedTarget&amp;&amp;c.fromElement){c.relatedTarget=c.fromElement==c.target?c.toElement:c.fromElement}if(c.pageX==null&amp;&amp;c.clientX!=null){var b=document.documentElement,f=document.body;c.pageX=c.clientX+(b&amp;&amp;b.scrollLeft||f&amp;&amp;f.scrollLeft||0)-(b.clientLeft||0);c.pageY=c.clientY+(b&amp;&amp;b.scrollTop||f&amp;&amp;f.scrollTop||0)-(b.clientTop||0)}if(!c.which&amp;&amp;((c.charCode||c.charCode===0)?c.charCode:c.keyCode)){c.which=c.charCode||c.keyCode}if(!c.metaKey&amp;&amp;c.ctrlKey){c.metaKey=c.ctrlKey}if(!c.which&amp;&amp;c.button){c.which=(c.button&amp;1?1:(c.button&amp;2?3:(c.button&amp;4?2:0)))}return c},proxy:function(a,b){b=b||function(){return a.apply(this,arguments)};b.guid=a.guid=a.guid||b.guid||this.guid++;return b},special:{ready:{setup:P,teardown:function(){}}},specialAll:{live:{setup:function(b,a){T.event.add(this,a[0],af)},teardown:function(a){if(a.length){var c=0,b=RegExp(&quot;(^|\\.)&quot;+a[0]+&quot;(\\.|$)&quot;);T.each((T.data(this,&quot;events&quot;).live||{}),function(){if(b.test(this.type)){c++}});if(c&lt;1){T.event.remove(this,a[0],af)}}}}}};T.Event=function(a){if(!this.preventDefault){return new T.Event(a)}if(a&amp;&amp;a.type){this.originalEvent=a;this.type=a.type}else{this.type=a}this.timeStamp=ad();this[aa]=true};function X(){return false}function J(){return true}T.Event.prototype={preventDefault:function(){this.isDefaultPrevented=J;var a=this.originalEvent;if(!a){return}if(a.preventDefault){a.preventDefault()}a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=J;var a=this.originalEvent;if(!a){return}if(a.stopPropagation){a.stopPropagation()}a.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=J;this.stopPropagation()},isDefaultPrevented:X,isPropagationStopped:X,isImmediatePropagationStopped:X};var ah=function(b){var c=b.relatedTarget;while(c&amp;&amp;c!=this){try{c=c.parentNode}catch(a){c=this}}if(c!=this){b.type=b.data;T.event.handle.apply(this,arguments)}};T.each({mouseover:&quot;mouseenter&quot;,mouseout:&quot;mouseleave&quot;},function(a,b){T.event.special[b]={setup:function(){T.event.add(this,a,ah,b)},teardown:function(){T.event.remove(this,a,ah)}}});T.fn.extend({bind:function(b,a,c){return b==&quot;unload&quot;?this.one(b,a,c):this.each(function(){T.event.add(this,b,c||a,c&amp;&amp;a)})},one:function(b,a,c){var d=T.event.proxy(c||a,function(e){T(this).unbind(e,d);return(c||a).apply(this,arguments)});return this.each(function(){T.event.add(this,b,d,c&amp;&amp;a)})},unbind:function(a,b){return this.each(function(){T.event.remove(this,a,b)})},trigger:function(b,a){return this.each(function(){T.event.trigger(b,a,this)})},triggerHandler:function(c,a){if(this[0]){var b=T.Event(c);b.preventDefault();b.stopPropagation();T.event.trigger(b,a,this[0]);return b.result}},toggle:function(a){var c=arguments,b=1;while(b&lt;c.length){T.event.proxy(a,c[b++])}return this.click(T.event.proxy(a,function(d){this.lastToggle=(this.lastToggle||0)%b;d.preventDefault();return c[this.lastToggle++].apply(this,arguments)||false}))},hover:function(b,a){return this.mouseenter(b).mouseleave(a)},ready:function(a){P();if(T.isReady){a.call(document,T)}else{T.readyList.push(a)}return this},live:function(a,b){var c=T.event.proxy(b);c.guid+=this.selector+a;T(document).bind(Z(a,this.selector),this.selector,c);return this},die:function(a,b){T(document).unbind(Z(a,this.selector),b?{guid:b.guid+this.selector+a}:null);return this}});function af(a){var d=RegExp(&quot;(^|\\.)&quot;+a.type+&quot;(\\.|$)&quot;),b=true,c=[];T.each(T.data(this,&quot;events&quot;).live||[],function(g,f){if(d.test(f.type)){var e=T(a.target).closest(f.data)[0];if(e){c.push({elem:e,fn:f})}}});c.sort(function(e,f){return T.data(e.elem,&quot;closest&quot;)-T.data(f.elem,&quot;closest&quot;)});T.each(c,function(){if(this.fn.call(this.elem,a,this.fn.data)===false){return(b=false)}});return b}function Z(a,b){return[&quot;live&quot;,a,b.replace(/\./g,&quot;`&quot;).replace(/ /g,&quot;|&quot;)].join(&quot;.&quot;)}T.extend({isReady:false,readyList:[],ready:function(){if(!T.isReady){T.isReady=true;if(T.readyList){T.each(T.readyList,function(){this.call(document,T)});T.readyList=null}T(document).triggerHandler(&quot;ready&quot;)}}});var G=false;function P(){if(G){return}G=true;if(document.addEventListener){document.addEventListener(&quot;DOMContentLoaded&quot;,function(){document.removeEventListener(&quot;DOMContentLoaded&quot;,arguments.callee,false);T.ready()},false)}else{if(document.attachEvent){document.attachEvent(&quot;onreadystatechange&quot;,function(){if(document.readyState===&quot;complete&quot;){document.detachEvent(&quot;onreadystatechange&quot;,arguments.callee);T.ready()}});if(document.documentElement.doScroll&amp;&amp;W==W.top){(function(){if(T.isReady){return}try{document.documentElement.doScroll(&quot;left&quot;)}catch(a){setTimeout(arguments.callee,0);return}T.ready()})()}}}T.event.add(W,&quot;load&quot;,T.ready)}T.each((&quot;blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error&quot;).split(&quot;,&quot;),function(a,b){T.fn[b]=function(c){return c?this.bind(b,c):this.trigger(b)}});T(W).bind(&quot;unload&quot;,function(){for(var a in T.cache){if(a!=1&amp;&amp;T.cache[a].handle){T.event.remove(T.cache[a].handle.elem)}}});(function(){T.support={};var f=document.documentElement,e=document.createElement(&quot;script&quot;),a=document.createElement(&quot;div&quot;),b=&quot;script&quot;+(new Date).getTime();a.style.display=&quot;none&quot;;a.innerHTML='   &lt;link/&gt;&lt;table&gt;&lt;/table&gt;&lt;a href=&quot;/a&quot; style=&quot;color:red;float:left;opacity:.5;&quot;&gt;a&lt;/a&gt;&lt;select&gt;&lt;option&gt;text&lt;/option&gt;&lt;/select&gt;&lt;object&gt;&lt;param/&gt;&lt;/object&gt;';var d=a.getElementsByTagName(&quot;*&quot;),g=a.getElementsByTagName(&quot;a&quot;)[0];if(!d||!d.length||!g){return}T.support={leadingWhitespace:a.firstChild.nodeType==3,tbody:!a.getElementsByTagName(&quot;tbody&quot;).length,objectAll:!!a.getElementsByTagName(&quot;object&quot;)[0].getElementsByTagName(&quot;*&quot;).length,htmlSerialize:!!a.getElementsByTagName(&quot;link&quot;).length,style:/red/.test(g.getAttribute(&quot;style&quot;)),hrefNormalized:g.getAttribute(&quot;href&quot;)===&quot;/a&quot;,opacity:g.style.opacity===&quot;0.5&quot;,cssFloat:!!g.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};e.type=&quot;text/javascript&quot;;try{e.appendChild(document.createTextNode(&quot;window.&quot;+b+&quot;=1;&quot;))}catch(c){}f.insertBefore(e,f.firstChild);if(W[b]){T.support.scriptEval=true;delete W[b]}f.removeChild(e);if(a.attachEvent&amp;&amp;a.fireEvent){a.attachEvent(&quot;onclick&quot;,function(){T.support.noCloneEvent=false;a.detachEvent(&quot;onclick&quot;,arguments.callee)});a.cloneNode(true).fireEvent(&quot;onclick&quot;)}T(function(){var h=document.createElement(&quot;div&quot;);h.style.width=h.style.paddingLeft=&quot;1px&quot;;document.body.appendChild(h);T.boxModel=T.support.boxModel=h.offsetWidth===2;document.body.removeChild(h).style.display=&quot;none&quot;})})();var H=T.support.cssFloat?&quot;cssFloat&quot;:&quot;styleFloat&quot;;T.props={&quot;for&quot;:&quot;htmlFor&quot;,&quot;class&quot;:&quot;className&quot;,&quot;float&quot;:H,cssFloat:H,styleFloat:H,readonly:&quot;readOnly&quot;,maxlength:&quot;maxLength&quot;,cellspacing:&quot;cellSpacing&quot;,rowspan:&quot;rowSpan&quot;,tabindex:&quot;tabIndex&quot;};T.fn.extend({_load:T.fn.load,load:function(e,b,a){if(typeof e!==&quot;string&quot;){return this._load(e)}var c=e.indexOf(&quot; &quot;);if(c&gt;=0){var g=e.slice(c,e.length);e=e.slice(0,c)}var d=&quot;GET&quot;;if(b){if(T.isFunction(b)){a=b;b=null}else{if(typeof b===&quot;object&quot;){b=T.param(b);d=&quot;POST&quot;}}}var f=this;T.ajax({url:e,type:d,dataType:&quot;html&quot;,data:b,complete:function(j,h){if(h==&quot;success&quot;||h==&quot;notmodified&quot;){f.html(g?T(&quot;&lt;div/&gt;&quot;).append(j.responseText.replace(/&lt;script(.|\s)*?\/script&gt;/g,&quot;&quot;)).find(g):j.responseText)}if(a){f.each(a,[j.responseText,h,j])}}});return this},serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?T.makeArray(this.elements):this}).filter(function(){return this.name&amp;&amp;!this.disabled&amp;&amp;(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(c,b){var a=T(this).val();return a==null?null:T.isArray(a)?T.map(a,function(d,e){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});T.each(&quot;ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend&quot;.split(&quot;,&quot;),function(b,a){T.fn[a]=function(c){return this.bind(a,c)}});var N=ad();T.extend({get:function(d,b,a,c){if(T.isFunction(b)){a=b;b=null}return T.ajax({type:&quot;GET&quot;,url:d,data:b,success:a,dataType:c})},getScript:function(b,a){return T.get(b,null,a,&quot;script&quot;)},getJSON:function(c,b,a){return T.get(c,b,a,&quot;json&quot;)},post:function(d,b,a,c){if(T.isFunction(b)){a=b;b={}}return T.ajax({type:&quot;POST&quot;,url:d,data:b,success:a,dataType:c})},ajaxSetup:function(a){T.extend(T.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:&quot;GET&quot;,contentType:&quot;application/x-www-form-urlencoded&quot;,processData:true,async:true,xhr:function(){return W.ActiveXObject?new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;):new XMLHttpRequest()},accepts:{xml:&quot;application/xml, text/xml&quot;,html:&quot;text/html&quot;,script:&quot;text/javascript, application/javascript&quot;,json:&quot;application/json, text/javascript&quot;,text:&quot;text/plain&quot;,_default:&quot;*/*&quot;}},lastModified:{},ajax:function(l){l=T.extend(true,l,T.extend(true,{},T.ajaxSettings,l));var a,u=/=\?(&amp;|$)/g,f,b,r=l.type.toUpperCase();if(l.data&amp;&amp;l.processData&amp;&amp;typeof l.data!==&quot;string&quot;){l.data=T.param(l.data)}if(l.dataType==&quot;jsonp&quot;){if(r==&quot;GET&quot;){if(!l.url.match(u)){l.url+=(l.url.match(/\?/)?&quot;&amp;&quot;:&quot;?&quot;)+(l.jsonp||&quot;callback&quot;)+&quot;=?&quot;}}else{if(!l.data||!l.data.match(u)){l.data=(l.data?l.data+&quot;&amp;&quot;:&quot;&quot;)+(l.jsonp||&quot;callback&quot;)+&quot;=?&quot;}}l.dataType=&quot;json&quot;}if(l.dataType==&quot;json&quot;&amp;&amp;(l.data&amp;&amp;l.data.match(u)||l.url.match(u))){a=&quot;jsonp&quot;+N++;if(l.data){l.data=(l.data+&quot;&quot;).replace(u,&quot;=&quot;+a+&quot;$1&quot;)}l.url=l.url.replace(u,&quot;=&quot;+a+&quot;$1&quot;);l.dataType=&quot;script&quot;;W[a]=function(x){b=x;p();m();W[a]=ab;try{delete W[a]}catch(w){}if(q){q.removeChild(d)}}}if(l.dataType==&quot;script&quot;&amp;&amp;l.cache==null){l.cache=false}if(l.cache===false&amp;&amp;r==&quot;GET&quot;){var v=ad();var c=l.url.replace(/(\?|&amp;)_=.*?(&amp;|$)/,&quot;$1_=&quot;+v+&quot;$2&quot;);l.url=c+((c==l.url)?(l.url.match(/\?/)?&quot;&amp;&quot;:&quot;?&quot;)+&quot;_=&quot;+v:&quot;&quot;)}if(l.data&amp;&amp;r==&quot;GET&quot;){l.url+=(l.url.match(/\?/)?&quot;&amp;&quot;:&quot;?&quot;)+l.data;l.data=null}if(l.global&amp;&amp;!T.active++){T.event.trigger(&quot;ajaxStart&quot;)}var g=/^(\w+:)?\/\/([^\/?#]+)/.exec(l.url);if(l.dataType==&quot;script&quot;&amp;&amp;r==&quot;GET&quot;&amp;&amp;g&amp;&amp;(g[1]&amp;&amp;g[1]!=location.protocol||g[2]!=location.host)){var q=document.getElementsByTagName(&quot;head&quot;)[0];var d=document.createElement(&quot;script&quot;);d.src=l.url;if(l.scriptCharset){d.charset=l.scriptCharset}if(!a){var j=false;d.onload=d.onreadystatechange=function(){if(!j&amp;&amp;(!this.readyState||this.readyState==&quot;loaded&quot;||this.readyState==&quot;complete&quot;)){j=true;p();m();d.onload=d.onreadystatechange=null;q.removeChild(d)}}}q.appendChild(d);return ab}var n=false;var o=l.xhr();if(l.username){o.open(r,l.url,l.async,l.username,l.password)}else{o.open(r,l.url,l.async)}try{if(l.data){o.setRequestHeader(&quot;Content-Type&quot;,l.contentType)}if(l.ifModified){o.setRequestHeader(&quot;If-Modified-Since&quot;,T.lastModified[l.url]||&quot;Thu, 01 Jan 1970 00:00:00 GMT&quot;)}o.setRequestHeader(&quot;X-Requested-With&quot;,&quot;XMLHttpRequest&quot;);o.setRequestHeader(&quot;Accept&quot;,l.dataType&amp;&amp;l.accepts[l.dataType]?l.accepts[l.dataType]+&quot;, */*&quot;:l.accepts._default)}catch(e){}if(l.beforeSend&amp;&amp;l.beforeSend(o,l)===false){if(l.global&amp;&amp;!--T.active){T.event.trigger(&quot;ajaxStop&quot;)}o.abort();return false}if(l.global){T.event.trigger(&quot;ajaxSend&quot;,[o,l])}var k=function(y){if(o.readyState==0){if(h){clearInterval(h);h=null;if(l.global&amp;&amp;!--T.active){T.event.trigger(&quot;ajaxStop&quot;)}}}else{if(!n&amp;&amp;o&amp;&amp;(o.readyState==4||y==&quot;timeout&quot;)){n=true;if(h){clearInterval(h);h=null}f=y==&quot;timeout&quot;?&quot;timeout&quot;:!T.httpSuccess(o)?&quot;error&quot;:l.ifModified&amp;&amp;T.httpNotModified(o,l.url)?&quot;notmodified&quot;:&quot;success&quot;;if(f==&quot;success&quot;){try{b=T.httpData(o,l.dataType,l)}catch(w){f=&quot;parsererror&quot;}}if(f==&quot;success&quot;){var x;try{x=o.getResponseHeader(&quot;Last-Modified&quot;)}catch(w){}if(l.ifModified&amp;&amp;x){T.lastModified[l.url]=x}if(!a){p()}}else{T.handleError(l,o,f)}m();if(y){o.abort()}if(l.async){o=null}}}};if(l.async){var h=setInterval(k,13);if(l.timeout&gt;0){setTimeout(function(){if(o&amp;&amp;!n){k(&quot;timeout&quot;)}},l.timeout)}}try{o.send(l.data)}catch(e){T.handleError(l,o,null,e)}if(!l.async){k()}function p(){if(l.success){l.success(b,f)}if(l.global){T.event.trigger(&quot;ajaxSuccess&quot;,[o,l])}}function m(){if(l.complete){l.complete(o,f)}if(l.global){T.event.trigger(&quot;ajaxComplete&quot;,[o,l])}if(l.global&amp;&amp;!--T.active){T.event.trigger(&quot;ajaxStop&quot;)}}return o},handleError:function(c,a,d,b){if(c.error){c.error(a,d,b)}if(c.global){T.event.trigger(&quot;ajaxError&quot;,[a,c,b])}},active:0,httpSuccess:function(a){try{return !a.status&amp;&amp;location.protocol==&quot;file:&quot;||(a.status&gt;=200&amp;&amp;a.status&lt;300)||a.status==304||a.status==1223}catch(b){}return false},httpNotModified:function(b,d){try{var a=b.getResponseHeader(&quot;Last-Modified&quot;);return b.status==304||a==T.lastModified[d]}catch(c){}return false},httpData:function(a,c,d){var e=a.getResponseHeader(&quot;content-type&quot;),f=c==&quot;xml&quot;||!c&amp;&amp;e&amp;&amp;e.indexOf(&quot;xml&quot;)&gt;=0,b=f?a.responseXML:a.responseText;if(f&amp;&amp;b.documentElement.tagName==&quot;parsererror&quot;){throw&quot;parsererror&quot;}if(d&amp;&amp;d.dataFilter){b=d.dataFilter(b,c)}if(typeof b===&quot;string&quot;){if(c==&quot;script&quot;){T.globalEval(b)}if(c==&quot;json&quot;){b=W[&quot;eval&quot;](&quot;(&quot;+b+&quot;)&quot;)}}return b},param:function(d){var b=[];function a(f,e){b[b.length]=encodeURIComponent(f)+&quot;=&quot;+encodeURIComponent(e)}if(T.isArray(d)||d.jquery){T.each(d,function(){a(this.name,this.value)})}else{for(var c in d){if(T.isArray(d[c])){T.each(d[c],function(){a(c,this)})}else{a(c,T.isFunction(d[c])?d[c]():d[c])}}}return b.join(&quot;&amp;&quot;).replace(/%20/g,&quot;+&quot;)}});var V={},U,ae=[[&quot;height&quot;,&quot;marginTop&quot;,&quot;marginBottom&quot;,&quot;paddingTop&quot;,&quot;paddingBottom&quot;],[&quot;width&quot;,&quot;marginLeft&quot;,&quot;marginRight&quot;,&quot;paddingLeft&quot;,&quot;paddingRight&quot;],[&quot;opacity&quot;]];function K(b,c){var a={};T.each(ae.concat.apply([],ae.slice(0,c)),function(){a[this]=b});return a}T.fn.extend({show:function(c,a){if(c){return this.animate(K(&quot;show&quot;,3),c,a)}else{for(var e=0,g=this.length;e&lt;g;e++){var h=T.data(this[e],&quot;olddisplay&quot;);this[e].style.display=h||&quot;&quot;;if(T.css(this[e],&quot;display&quot;)===&quot;none&quot;){var f=this[e].tagName,b;if(V[f]){b=V[f]}else{var d=T(&quot;&lt;&quot;+f+&quot; /&gt;&quot;).appendTo(&quot;body&quot;);b=d.css(&quot;display&quot;);if(b===&quot;none&quot;){b=&quot;block&quot;}d.remove();V[f]=b}T.data(this[e],&quot;olddisplay&quot;,b)}}for(var e=0,g=this.length;e&lt;g;e++){this[e].style.display=T.data(this[e],&quot;olddisplay&quot;)||&quot;&quot;}return this}},hide:function(b,a){if(b){return this.animate(K(&quot;hide&quot;,3),b,a)}else{for(var c=0,d=this.length;c&lt;d;c++){var e=T.data(this[c],&quot;olddisplay&quot;);if(!e&amp;&amp;e!==&quot;none&quot;){T.data(this[c],&quot;olddisplay&quot;,T.css(this[c],&quot;display&quot;))}}for(var c=0,d=this.length;c&lt;d;c++){this[c].style.display=&quot;none&quot;}return this}},_toggle:T.fn.toggle,toggle:function(a,b){var c=typeof a===&quot;boolean&quot;;return T.isFunction(a)&amp;&amp;T.isFunction(b)?this._toggle.apply(this,arguments):a==null||c?this.each(function(){var d=c?a:T(this).is(&quot;:hidden&quot;);T(this)[d?&quot;show&quot;:&quot;hide&quot;]()}):this.animate(K(&quot;toggle&quot;,3),a,b)},fadeTo:function(c,a,b){return this.animate({opacity:a},c,b)},animate:function(a,d,b,c){var e=T.speed(d,b,c);return this[e.queue===false?&quot;each&quot;:&quot;queue&quot;](function(){var g=T.extend({},e),j,f=this.nodeType==1&amp;&amp;T(this).is(&quot;:hidden&quot;),h=this;for(j in a){if(a[j]==&quot;hide&quot;&amp;&amp;f||a[j]==&quot;show&quot;&amp;&amp;!f){return g.complete.call(this)}if((j==&quot;height&quot;||j==&quot;width&quot;)&amp;&amp;this.style){g.display=T.css(this,&quot;display&quot;);g.overflow=this.style.overflow}}if(g.overflow!=null){this.style.overflow=&quot;hidden&quot;}g.curAnim=T.extend({},a);T.each(a,function(p,l){var m=new T.fx(h,g,p);if(/toggle|show|hide/.test(l)){m[l==&quot;toggle&quot;?f?&quot;show&quot;:&quot;hide&quot;:l](a)}else{var n=l.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),k=m.cur(true)||0;if(n){var q=parseFloat(n[2]),o=n[3]||&quot;px&quot;;if(o!=&quot;px&quot;){h.style[p]=(q||1)+o;k=((q||1)/m.cur(true))*k;h.style[p]=k+o}if(n[1]){q=((n[1]==&quot;-=&quot;?-1:1)*q)+k}m.custom(k,q,o)}else{m.custom(k,l,&quot;&quot;)}}});return true})},stop:function(b,c){var a=T.timers;if(b){this.queue([])}this.each(function(){for(var d=a.length-1;d&gt;=0;d--){if(a[d].elem==this){if(c){a[d](true)}a.splice(d,1)}}});if(!c){this.dequeue()}return this}});T.each({slideDown:K(&quot;show&quot;,1),slideUp:K(&quot;hide&quot;,1),slideToggle:K(&quot;toggle&quot;,1),fadeIn:{opacity:&quot;show&quot;},fadeOut:{opacity:&quot;hide&quot;}},function(b,a){T.fn[b]=function(d,c){return this.animate(a,d,c)}});T.extend({speed:function(b,a,c){var d=typeof b===&quot;object&quot;?b:{complete:c||!c&amp;&amp;a||T.isFunction(b)&amp;&amp;b,duration:b,easing:c&amp;&amp;a||a&amp;&amp;!T.isFunction(a)&amp;&amp;a};d.duration=T.fx.off?0:typeof d.duration===&quot;number&quot;?d.duration:T.fx.speeds[d.duration]||T.fx.speeds._default;d.old=d.complete;d.complete=function(){if(d.queue!==false){T(this).dequeue()}if(T.isFunction(d.old)){d.old.call(this)}};return d},easing:{linear:function(b,a,d,c){return d+c*b},swing:function(b,a,d,c){return((-Math.cos(b*Math.PI)/2)+0.5)*c+d}},timers:[],fx:function(b,c,a){this.options=c;this.elem=b;this.prop=a;if(!c.orig){c.orig={}}}});T.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(T.fx.step[this.prop]||T.fx.step._default)(this);if((this.prop==&quot;height&quot;||this.prop==&quot;width&quot;)&amp;&amp;this.elem.style){this.elem.style.display=&quot;block&quot;}},cur:function(a){if(this.elem[this.prop]!=null&amp;&amp;(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var b=parseFloat(T.css(this.elem,this.prop,a));return b&amp;&amp;b&gt;-10000?b:parseFloat(T.curCSS(this.elem,this.prop))||0},custom:function(a,b,c){this.startTime=ad();this.start=a;this.end=b;this.unit=c||this.unit||&quot;px&quot;;this.now=this.start;this.pos=this.state=0;var e=this;function d(f){return e.step(f)}d.elem=this.elem;if(d()&amp;&amp;T.timers.push(d)&amp;&amp;!U){U=setInterval(function(){var f=T.timers;for(var g=0;g&lt;f.length;g++){if(!f[g]()){f.splice(g--,1)}}if(!f.length){clearInterval(U);U=ab}},13)}},show:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop==&quot;width&quot;||this.prop==&quot;height&quot;?1:0,this.cur());T(this.elem).show()},hide:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(c){var d=ad();if(c||d&gt;=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var f=true;for(var e in this.options.curAnim){if(this.options.curAnim[e]!==true){f=false}}if(f){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(T.css(this.elem,&quot;display&quot;)==&quot;none&quot;){this.elem.style.display=&quot;block&quot;}}if(this.options.hide){T(this.elem).hide()}if(this.options.hide||this.options.show){for(var b in this.options.curAnim){T.attr(this.elem.style,b,this.options.orig[b])}}this.options.complete.call(this.elem)}return false}else{var a=d-this.startTime;this.state=a/this.options.duration;this.pos=T.easing[this.options.easing||(T.easing.swing?&quot;swing&quot;:&quot;linear&quot;)](this.state,a,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};T.extend(T.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){T.attr(a.elem.style,&quot;opacity&quot;,a.now)},_default:function(a){if(a.elem.style&amp;&amp;a.elem.style[a.prop]!=null){a.elem.style[a.prop]=a.now+a.unit}else{a.elem[a.prop]=a.now}}}});if(document.documentElement.getBoundingClientRect){T.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])}var f=this[0].getBoundingClientRect(),c=this[0].ownerDocument,g=c.body,h=c.documentElement,a=h.clientTop||g.clientTop||0,b=h.clientLeft||g.clientLeft||0,d=f.top+(self.pageYOffset||T.boxModel&amp;&amp;h.scrollTop||g.scrollTop)-a,e=f.left+(self.pageXOffset||T.boxModel&amp;&amp;h.scrollLeft||g.scrollLeft)-b;return{top:d,left:e}}}else{T.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])}T.offset.initialized||T.offset.initialize();var f=this[0],j=f.offsetParent,k=f,a=f.ownerDocument,c,h=a.documentElement,e=a.body,d=a.defaultView,l=d.getComputedStyle(f,null),b=f.offsetTop,g=f.offsetLeft;while((f=f.parentNode)&amp;&amp;f!==e&amp;&amp;f!==h){c=d.getComputedStyle(f,null);b-=f.scrollTop,g-=f.scrollLeft;if(f===j){b+=f.offsetTop,g+=f.offsetLeft;if(T.offset.doesNotAddBorder&amp;&amp;!(T.offset.doesAddBorderForTableAndCells&amp;&amp;/^t(able|d|h)$/i.test(f.tagName))){b+=parseInt(c.borderTopWidth,10)||0,g+=parseInt(c.borderLeftWidth,10)||0}k=j,j=f.offsetParent}if(T.offset.subtractsBorderForOverflowNotVisible&amp;&amp;c.overflow!==&quot;visible&quot;){b+=parseInt(c.borderTopWidth,10)||0,g+=parseInt(c.borderLeftWidth,10)||0}l=c}if(l.position===&quot;relative&quot;||l.position===&quot;static&quot;){b+=e.offsetTop,g+=e.offsetLeft}if(l.position===&quot;fixed&quot;){b+=Math.max(h.scrollTop,e.scrollTop),g+=Math.max(h.scrollLeft,e.scrollLeft)}return{top:b,left:g}}}T.offset={initialize:function(){if(this.initialized){return}var c=document.body,j=document.createElement(&quot;div&quot;),g,h,a,f,b,k,e=c.style.marginTop,d='&lt;div style=&quot;position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;table style=&quot;position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;';b={position:&quot;absolute&quot;,top:0,left:0,margin:0,border:0,width:&quot;1px&quot;,height:&quot;1px&quot;,visibility:&quot;hidden&quot;};for(k in b){j.style[k]=b[k]}j.innerHTML=d;c.insertBefore(j,c.firstChild);g=j.firstChild,h=g.firstChild,f=g.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(h.offsetTop!==5);this.doesAddBorderForTableAndCells=(f.offsetTop===5);g.style.overflow=&quot;hidden&quot;,g.style.position=&quot;relative&quot;;this.subtractsBorderForOverflowNotVisible=(h.offsetTop===-5);c.style.marginTop=&quot;1px&quot;;this.doesNotIncludeMarginInBodyOffset=(c.offsetTop===0);c.style.marginTop=e;c.removeChild(j);this.initialized=true},bodyOffset:function(c){T.offset.initialized||T.offset.initialize();var a=c.offsetTop,b=c.offsetLeft;if(T.offset.doesNotIncludeMarginInBodyOffset){a+=parseInt(T.curCSS(c,&quot;marginTop&quot;,true),10)||0,b+=parseInt(T.curCSS(c,&quot;marginLeft&quot;,true),10)||0}return{top:a,left:b}}};T.fn.extend({position:function(){var b=0,c=0,e;if(this[0]){var d=this.offsetParent(),a=this.offset(),f=/^body|html$/i.test(d[0].tagName)?{top:0,left:0}:d.offset();a.top-=Y(this,&quot;marginTop&quot;);a.left-=Y(this,&quot;marginLeft&quot;);f.top+=Y(d,&quot;borderTopWidth&quot;);f.left+=Y(d,&quot;borderLeftWidth&quot;);e={top:a.top-f.top,left:a.left-f.left}}return e},offsetParent:function(){var a=this[0].offsetParent||document.body;while(a&amp;&amp;(!/^body|html$/i.test(a.tagName)&amp;&amp;T.css(a,&quot;position&quot;)==&quot;static&quot;)){a=a.offsetParent}return T(a)}});T.each([&quot;Left&quot;,&quot;Top&quot;],function(b,c){var a=&quot;scroll&quot;+c;T.fn[a]=function(d){if(!this[0]){return null}return d!==ab?this.each(function(){this==W||this==document?W.scrollTo(!b?d:T(W).scrollLeft(),b?d:T(W).scrollTop()):this[a]=d}):this[0]==W||this[0]==document?self[b?&quot;pageYOffset&quot;:&quot;pageXOffset&quot;]||T.boxModel&amp;&amp;document.documentElement[a]||document.body[a]:this[0][a]}});T.each([&quot;Height&quot;,&quot;Width&quot;],function(b,d){var f=b?&quot;Left&quot;:&quot;Top&quot;,c=b?&quot;Right&quot;:&quot;Bottom&quot;,e=d.toLowerCase();T.fn[&quot;inner&quot;+d]=function(){return this[0]?T.css(this[0],e,false,&quot;padding&quot;):null};T.fn[&quot;outer&quot;+d]=function(g){return this[0]?T.css(this[0],e,false,g?&quot;margin&quot;:&quot;border&quot;):null};var a=d.toLowerCase();T.fn[a]=function(g){return this[0]==W?document.compatMode==&quot;CSS1Compat&quot;&amp;&amp;document.documentElement[&quot;client&quot;+d]||document.body[&quot;client&quot;+d]:this[0]==document?Math.max(document.documentElement[&quot;client&quot;+d],document.body[&quot;scroll&quot;+d],document.documentElement[&quot;scroll&quot;+d],document.body[&quot;offset&quot;+d],document.documentElement[&quot;offset&quot;+d]):g===ab?(this.length?T.css(this[0],a):null):this.css(a,typeof g===&quot;string&quot;?g:g+&quot;px&quot;)}})})();(function($){$.extend({tablesorter:new function(){var parsers=[],widgets=[];this.defaults={cssHeader:&quot;header&quot;,cssAsc:&quot;headerSortUp&quot;,cssDesc:&quot;headerSortDown&quot;,sortInitialOrder:&quot;asc&quot;,sortMultiSortKey:&quot;shiftKey&quot;,sortForce:null,sortAppend:null,textExtraction:&quot;simple&quot;,parsers:{},widgets:[],widgetZebra:{css:[&quot;even&quot;,&quot;odd&quot;]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:&quot;us&quot;,decimal:&quot;.&quot;,debug:false};function benchmark(s,d){log(s+&quot;,&quot;+(new Date().getTime()-d.getTime())+&quot;ms&quot;)}this.benchmark=benchmark;function log(s){if(typeof console!=&quot;undefined&quot;&amp;&amp;typeof console.debug!=&quot;undefined&quot;){console.log(s)}else{alert(s)}}function buildParserCache(table,$headers){if(table.config.debug){var parsersDebug=&quot;&quot;}var rows=table.tBodies[0].rows;if(table.tBodies[0].rows[0]){var list=[],cells=rows[0].cells,l=cells.length;for(var i=0;i&lt;l;i++){var p=false;if($.metadata&amp;&amp;($($headers[i]).metadata()&amp;&amp;$($headers[i]).metadata().sorter)){p=getParserById($($headers[i]).metadata().sorter)}else{if((table.config.headers[i]&amp;&amp;table.config.headers[i].sorter)){p=getParserById(table.config.headers[i].sorter)}}if(!p){p=detectParserForColumn(table,cells[i])}if(table.config.debug){parsersDebug+=&quot;column:&quot;+i+&quot; parser:&quot;+p.id+&quot;\n&quot;}list.push(p)}}if(table.config.debug){log(parsersDebug)}return list}function detectParserForColumn(table,node){var l=parsers.length;for(var i=1;i&lt;l;i++){if(parsers[i].is($.trim(getElementText(table.config,node)),table,node)){return parsers[i]}}return parsers[0]}function getParserById(name){var l=parsers.length;for(var i=0;i&lt;l;i++){if(parsers[i].id.toLowerCase()==name.toLowerCase()){return parsers[i]}}return false}function buildCache(table){if(table.config.debug){var cacheTime=new Date()}var totalRows=(table.tBodies[0]&amp;&amp;table.tBodies[0].rows.length)||0,totalCells=(table.tBodies[0].rows[0]&amp;&amp;table.tBodies[0].rows[0].cells.length)||0,parsers=table.config.parsers,cache={row:[],normalized:[]};for(var i=0;i&lt;totalRows;++i){var c=table.tBodies[0].rows[i],cols=[];cache.row.push($(c));for(var j=0;j&lt;totalCells;++j){cols.push(parsers[j].format(getElementText(table.config,c.cells[j]),table,c.cells[j]))}cols.push(i);cache.normalized.push(cols);cols=null}if(table.config.debug){benchmark(&quot;Building cache for &quot;+totalRows+&quot; rows:&quot;,cacheTime)}return cache}function getElementText(config,node){if(!node){return&quot;&quot;}var t=&quot;&quot;;if(config.textExtraction==&quot;simple&quot;){if(node.childNodes[0]&amp;&amp;node.childNodes[0].hasChildNodes()){t=node.childNodes[0].innerHTML}else{t=node.innerHTML}}else{if(typeof(config.textExtraction)==&quot;function&quot;){t=config.textExtraction(node)}else{t=$(node).text()}}return t}function appendToTable(table,cache){if(table.config.debug){var appendTime=new Date()}var c=cache,r=c.row,n=c.normalized,totalRows=n.length,checkCell=(n[0].length-1),tableBody=$(table.tBodies[0]),rows=[];for(var i=0;i&lt;totalRows;i++){rows.push(r[n[i][checkCell]]);if(!table.config.appender){var o=r[n[i][checkCell]];var l=o.length;for(var j=0;j&lt;l;j++){tableBody[0].appendChild(o[j])}}}if(table.config.appender){table.config.appender(table,rows)}rows=null;if(table.config.debug){benchmark(&quot;Rebuilt table:&quot;,appendTime)}applyWidget(table);setTimeout(function(){$(table).trigger(&quot;sortEnd&quot;)},0)}function buildHeaders(table){if(table.config.debug){var time=new Date()}var meta=($.metadata)?true:false,tableHeadersRows=[];for(var i=0;i&lt;table.tHead.rows.length;i++){tableHeadersRows[i]=0}$tableHeaders=$(&quot;thead th&quot;,table);$tableHeaders.each(function(index){this.count=0;this.column=index;this.order=formatSortingOrder(table.config.sortInitialOrder);if(checkHeaderMetadata(this)||checkHeaderOptions(table,index)){this.sortDisabled=true}if(!this.sortDisabled){$(this).addClass(table.config.cssHeader)}table.config.headerList[index]=this});if(table.config.debug){benchmark(&quot;Built headers:&quot;,time);log($tableHeaders)}return $tableHeaders}function checkCellColSpan(table,rows,row){var arr=[],r=table.tHead.rows,c=r[row].cells;for(var i=0;i&lt;c.length;i++){var cell=c[i];if(cell.colSpan&gt;1){arr=arr.concat(checkCellColSpan(table,headerArr,row++))}else{if(table.tHead.length==1||(cell.rowSpan&gt;1||!r[row+1])){arr.push(cell)}}}return arr}function checkHeaderMetadata(cell){if(($.metadata)&amp;&amp;($(cell).metadata().sorter===false)){return true}return false}function checkHeaderOptions(table,i){if((table.config.headers[i])&amp;&amp;(table.config.headers[i].sorter===false)){return true}return false}function applyWidget(table){var c=table.config.widgets;var l=c.length;for(var i=0;i&lt;l;i++){getWidgetById(c[i]).format(table)}}function getWidgetById(name){var l=widgets.length;for(var i=0;i&lt;l;i++){if(widgets[i].id.toLowerCase()==name.toLowerCase()){return widgets[i]}}}function formatSortingOrder(v){if(typeof(v)!=&quot;Number&quot;){i=(v.toLowerCase()==&quot;desc&quot;)?1:0}else{i=(v==(0||1))?v:0}return i}function isValueInArray(v,a){var l=a.length;for(var i=0;i&lt;l;i++){if(a[i][0]==v){return true}}return false}function setHeadersCss(table,$headers,list,css){$headers.removeClass(css[0]).removeClass(css[1]);var h=[];$headers.each(function(offset){if(!this.sortDisabled){h[this.column]=$(this)}});var l=list.length;for(var i=0;i&lt;l;i++){h[list[i][0]].addClass(css[list[i][1]])}}function fixColumnWidth(table,$headers){var c=table.config;if(c.widthFixed){var colgroup=$(&quot;&lt;colgroup&gt;&quot;);$(&quot;tr:first td&quot;,table.tBodies[0]).each(function(){colgroup.append($(&quot;&lt;col&gt;&quot;).css(&quot;width&quot;,$(this).width()))});$(table).prepend(colgroup)}}function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;i&lt;l;i++){var s=sortList[i],o=c.headerList[s[0]];o.count=s[1];o.count++}}function multisort(table,sortList,cache){if(table.config.debug){var sortTime=new Date()}var dynamicExp=&quot;var sortWrapper = function(a,b) {&quot;,l=sortList.length;for(var i=0;i&lt;l;i++){var c=sortList[i][0];var order=sortList[i][1];var s=(getCachedSortType(table.config.parsers,c)==&quot;text&quot;)?((order==0)?&quot;sortText&quot;:&quot;sortTextDesc&quot;):((order==0)?&quot;sortNumeric&quot;:&quot;sortNumericDesc&quot;);var e=&quot;e&quot;+i;dynamicExp+=&quot;var &quot;+e+&quot; = &quot;+s+&quot;(a[&quot;+c+&quot;],b[&quot;+c+&quot;]); &quot;;dynamicExp+=&quot;if(&quot;+e+&quot;) { return &quot;+e+&quot;; } &quot;;dynamicExp+=&quot;else { &quot;}var orgOrderCol=cache.normalized[0].length-1;dynamicExp+=&quot;return a[&quot;+orgOrderCol+&quot;]-b[&quot;+orgOrderCol+&quot;];&quot;;for(var i=0;i&lt;l;i++){dynamicExp+=&quot;}; &quot;}dynamicExp+=&quot;return 0; &quot;;dynamicExp+=&quot;}; &quot;;eval(dynamicExp);cache.normalized.sort(sortWrapper);if(table.config.debug){benchmark(&quot;Sorting on &quot;+sortList.toString()+&quot; and dir &quot;+order+&quot; time:&quot;,sortTime)}return cache}function sortText(a,b){return((a&lt;b)?-1:((a&gt;b)?1:0))}function sortTextDesc(a,b){return((b&lt;a)?-1:((b&gt;a)?1:0))}function sortNumeric(a,b){return a-b}function sortNumericDesc(a,b){return b-a}function getCachedSortType(parsers,i){return parsers[i].type}this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies){return}var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){$this.trigger(&quot;sortStart&quot;);var totalRows=($this[0].tBodies[0]&amp;&amp;$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&amp;&amp;totalRows&gt;0){var $cell=$(this);var i=this.column;this.order=this.count++%2;if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j&lt;a.length;j++){if(a[j][0]!=i){config.sortList.push(a[j])}}}config.sortList.push([i,this.order])}else{if(isValueInArray(i,config.sortList)){for(var j=0;j&lt;config.sortList.length;j++){var s=config.sortList[j],o=config.headerList[s[0]];if(s[0]==i){o.count=s[1];o.count++;s[1]=o.count%2}}}else{config.sortList.push([i,this.order])}}setTimeout(function(){setHeadersCss($this[0],$headers,config.sortList,sortCSS);appendToTable($this[0],multisort($this[0],config.sortList,cache))},1);return false}}).mousedown(function(){if(config.cancelSelection){this.onselectstart=function(){return false};return false}});$this.bind(&quot;update&quot;,function(){this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this)}).bind(&quot;sorton&quot;,function(e,list){$(this).trigger(&quot;sortStart&quot;);config.sortList=list;var sortList=config.sortList;updateHeaderSortCount(this,sortList);setHeadersCss(this,$headers,sortList,sortCSS);appendToTable(this,multisort(this,sortList,cache))}).bind(&quot;appendCache&quot;,function(){appendToTable(this,cache)}).bind(&quot;applyWidgetId&quot;,function(e,id){getWidgetById(id).format(this)}).bind(&quot;applyWidgets&quot;,function(){applyWidget(this)});if($.metadata&amp;&amp;($(this).metadata()&amp;&amp;$(this).metadata().sortlist)){config.sortList=$(this).metadata().sortlist}if(config.sortList.length&gt;0){$this.trigger(&quot;sorton&quot;,[config.sortList])}applyWidget(this)})};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i&lt;l;i++){if(parsers[i].id.toLowerCase()==parser.id.toLowerCase()){a=false}}if(a){parsers.push(parser)}};this.addWidget=function(widget){widgets.push(widget)};this.formatFloat=function(s){var i=parseFloat(s);return(isNaN(i))?0:i};this.formatInt=function(s){var i=parseInt(s);return(isNaN(i))?0:i};this.isDigit=function(s,config){var DECIMAL=&quot;\\&quot;+config.decimal;var exp=&quot;/(^[+]?0(&quot;+DECIMAL+&quot;0+)?$)|(^([-+]?[1-9][0-9]*)$)|(^([-+]?((0?|[1-9][0-9]*)&quot;+DECIMAL+&quot;(0*[1-9][0-9]*)))$)|(^[-+]?[1-9]+[0-9]*&quot;+DECIMAL+&quot;0+$)/&quot;;return RegExp(exp).test($.trim(s))};this.clearTableBody=function(table){if($.browser.msie){function empty(){while(this.firstChild){this.removeChild(this.firstChild)}}empty.apply(table.tBodies[0])}else{table.tBodies[0].innerHTML=&quot;&quot;}}}});$.fn.extend({tablesorter:$.tablesorter.construct});var ts=$.tablesorter;ts.addParser({id:&quot;text&quot;,is:function(s){return true},format:function(s){return $.trim(s.toLowerCase())},type:&quot;text&quot;});ts.addParser({id:&quot;digit&quot;,is:function(s,table){var c=table.config;return $.tablesorter.isDigit(s,c)},format:function(s){return $.tablesorter.formatFloat(s)},type:&quot;numeric&quot;});ts.addParser({id:&quot;currency&quot;,is:function(s){return/^[&#194;&#163;$&#226;&#8218;&#172;?.]/.test(s)},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/[^0-9.]/g),&quot;&quot;))},type:&quot;numeric&quot;});ts.addParser({id:&quot;ipAddress&quot;,is:function(s){return/^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(s)},format:function(s){var a=s.split(&quot;.&quot;),r=&quot;&quot;,l=a.length;for(var i=0;i&lt;l;i++){var item=a[i];if(item.length==2){r+=&quot;0&quot;+item}else{r+=item}}return $.tablesorter.formatFloat(r)},type:&quot;numeric&quot;});ts.addParser({id:&quot;url&quot;,is:function(s){return/^(https?|ftp|file):\/\/$/.test(s)},format:function(s){return jQuery.trim(s.replace(new RegExp(/(https?|ftp|file):\/\//),&quot;&quot;))},type:&quot;text&quot;});ts.addParser({id:&quot;isoDate&quot;,is:function(s){return/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(s)},format:function(s){return $.tablesorter.formatFloat((s!=&quot;&quot;)?new Date(s.replace(new RegExp(/-/g),&quot;/&quot;)).getTime():&quot;0&quot;)},type:&quot;numeric&quot;});ts.addParser({id:&quot;percent&quot;,is:function(s){return/\%$/.test($.trim(s))},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/%/g),&quot;&quot;))},type:&quot;numeric&quot;});ts.addParser({id:&quot;usLongDate&quot;,is:function(s){return s.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/))},format:function(s){return $.tablesorter.formatFloat(new Date(s).getTime())},type:&quot;numeric&quot;});ts.addParser({id:&quot;shortDate&quot;,is:function(s){return/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s)},format:function(s,table){var c=table.config;s=s.replace(/\-/g,&quot;/&quot;);if(c.dateFormat==&quot;us&quot;){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,&quot;$3/$1/$2&quot;)}else{if(c.dateFormat==&quot;uk&quot;){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,&quot;$3/$2/$1&quot;)}else{if(c.dateFormat==&quot;dd/mm/yy&quot;||c.dateFormat==&quot;dd-mm-yy&quot;){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,&quot;$1/$2/$3&quot;)}}}return $.tablesorter.formatFloat(new Date(s).getTime())},type:&quot;numeric&quot;});ts.addParser({id:&quot;time&quot;,is:function(s){return/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(s)},format:function(s){return $.tablesorter.formatFloat(new Date(&quot;2000/01/01 &quot;+s).getTime())},type:&quot;numeric&quot;});ts.addParser({id:&quot;metadata&quot;,is:function(s){return false},format:function(s,table,cell){var c=table.config,p=(!c.parserMetadataName)?&quot;sortValue&quot;:c.parserMetadataName;return $(cell).metadata()[p]},type:&quot;numeric&quot;});ts.addWidget({id:&quot;zebra&quot;,format:function(table){if(table.config.debug){var time=new Date()}$(&quot;tr:visible&quot;,table.tBodies[0]).filter(&quot;:even&quot;).removeClass(table.config.widgetZebra.css[1]).addClass(table.config.widgetZebra.css[0]).end().filter(&quot;:odd&quot;).removeClass(table.config.widgetZebra.css[0]).addClass(table.config.widgetZebra.css[1]);if(table.config.debug){$.tablesorter.benchmark(&quot;Applying Zebra widget&quot;,time)}}})})(jQuery);jQuery.ui||(function(p){var j=p.fn.remove,o=p.browser.mozilla&amp;&amp;(parseFloat(p.browser.version)&lt;1.9);p.ui={version:&quot;1.7.1&quot;,plugin:{add:function(c,b,e){var a=p.ui[c].prototype;for(var d in e){a.plugins[d]=a.plugins[d]||[];a.plugins[d].push([b,e[d]])}},call:function(d,b,c){var e=d.plugins[b];if(!e||!d.element[0].parentNode){return}for(var a=0;a&lt;e.length;a++){if(d.options[e[a][0]]){e[a][1].apply(d.element,c)}}}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&amp;16:a!==b&amp;&amp;a.contains(b)},hasScroll:function(a,c){if(p(a).css(&quot;overflow&quot;)==&quot;hidden&quot;){return false}var d=(c&amp;&amp;c==&quot;left&quot;)?&quot;scrollLeft&quot;:&quot;scrollTop&quot;,b=false;if(a[d]&gt;0){return true}a[d]=1;b=(a[d]&gt;0);a[d]=0;return b},isOverAxis:function(b,c,a){return(b&gt;c)&amp;&amp;(b&lt;(c+a))},isOver:function(e,c,f,a,d,b){return p.ui.isOverAxis(e,f,d)&amp;&amp;p.ui.isOverAxis(c,a,b)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,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,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(o){var m=p.attr,n=p.fn.removeAttr,k=&quot;http://www.w3.org/2005/07/aaa&quot;,r=/^aria-/,q=/^wairole:/;p.attr=function(c,d,b){var a=b!==undefined;return(d==&quot;role&quot;?(a?m.call(this,c,d,&quot;wairole:&quot;+b):(m.apply(this,arguments)||&quot;&quot;).replace(q,&quot;&quot;)):(r.test(d)?(a?c.setAttributeNS(k,d.replace(r,&quot;aaa:&quot;),b):m.call(this,c,d.replace(r,&quot;aaa:&quot;))):m.apply(this,arguments)))};p.fn.removeAttr=function(a){return(r.test(a)?this.each(function(){this.removeAttributeNS(k,a.replace(r,&quot;&quot;))}):n.call(this,a))}}p.fn.extend({remove:function(){p(&quot;*&quot;,this).add(this).each(function(){p(this).triggerHandler(&quot;remove&quot;)});return j.apply(this,arguments)},enableSelection:function(){return this.attr(&quot;unselectable&quot;,&quot;off&quot;).css(&quot;MozUserSelect&quot;,&quot;&quot;).unbind(&quot;selectstart.ui&quot;)},disableSelection:function(){return this.attr(&quot;unselectable&quot;,&quot;on&quot;).css(&quot;MozUserSelect&quot;,&quot;none&quot;).bind(&quot;selectstart.ui&quot;,function(){return false})},scrollParent:function(){var a;if((p.browser.msie&amp;&amp;(/(static|relative)/).test(this.css(&quot;position&quot;)))||(/absolute/).test(this.css(&quot;position&quot;))){a=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(p.curCSS(this,&quot;position&quot;,1))&amp;&amp;(/(auto|scroll)/).test(p.curCSS(this,&quot;overflow&quot;,1)+p.curCSS(this,&quot;overflow-y&quot;,1)+p.curCSS(this,&quot;overflow-x&quot;,1))}).eq(0)}else{a=this.parents().filter(function(){return(/(auto|scroll)/).test(p.curCSS(this,&quot;overflow&quot;,1)+p.curCSS(this,&quot;overflow-y&quot;,1)+p.curCSS(this,&quot;overflow-x&quot;,1))}).eq(0)}return(/fixed/).test(this.css(&quot;position&quot;))||!a.length?p(document):a}});p.extend(p.expr[&quot;:&quot;],{data:function(a,b,c){return !!p.data(a,c[3])},focusable:function(b){var a=b.nodeName.toLowerCase(),c=p.attr(b,&quot;tabindex&quot;);return(/input|select|textarea|button|object/.test(a)?!b.disabled:&quot;a&quot;==a||&quot;area&quot;==a?b.href||!isNaN(c):!isNaN(c))&amp;&amp;!p(b)[&quot;area&quot;==a?&quot;parents&quot;:&quot;closest&quot;](&quot;:hidden&quot;).length},tabbable:function(a){var b=p.attr(a,&quot;tabindex&quot;);return(isNaN(b)||b&gt;=0)&amp;&amp;p(a).is(&quot;:focusable&quot;)}});function l(a,f,e,b){function c(g){var h=p[a][f][g]||[];return(typeof h==&quot;string&quot;?h.split(/,?\s+/):h)}var d=c(&quot;getter&quot;);if(b.length==1&amp;&amp;typeof b[0]==&quot;string&quot;){d=d.concat(c(&quot;getterSetter&quot;))}return(p.inArray(e,d)!=-1)}p.widget=function(b,c){var a=b.split(&quot;.&quot;)[0];b=b.split(&quot;.&quot;)[1];p.fn[b]=function(e){var g=(typeof e==&quot;string&quot;),f=Array.prototype.slice.call(arguments,1);if(g&amp;&amp;e.substring(0,1)==&quot;_&quot;){return this}if(g&amp;&amp;l(a,b,e,f)){var d=p.data(this[0],b);return(d?d[e].apply(d,f):undefined)}return this.each(function(){var h=p.data(this,b);(!h&amp;&amp;!g&amp;&amp;p.data(this,b,new p[a][b](this,e))._init());(h&amp;&amp;g&amp;&amp;p.isFunction(h[e])&amp;&amp;h[e].apply(h,f))})};p[a]=p[a]||{};p[a][b]=function(e,f){var d=this;this.namespace=a;this.widgetName=b;this.widgetEventPrefix=p[a][b].eventPrefix||b;this.widgetBaseClass=a+&quot;-&quot;+b;this.options=p.extend({},p.widget.defaults,p[a][b].defaults,p.metadata&amp;&amp;p.metadata.get(e)[b],f);this.element=p(e).bind(&quot;setData.&quot;+b,function(h,u,g){if(h.target==e){return d._setData(u,g)}}).bind(&quot;getData.&quot;+b,function(g,h){if(g.target==e){return d._getData(h)}}).bind(&quot;remove&quot;,function(){return d.destroy()})};p[a][b].prototype=p.extend({},p.widget.prototype,c);p[a][b].getterSetter=&quot;option&quot;};p.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+&quot;-disabled &quot;+this.namespace+&quot;-state-disabled&quot;).removeAttr(&quot;aria-disabled&quot;)},option:function(b,a){var c=b,d=this;if(typeof b==&quot;string&quot;){if(a===undefined){return this._getData(b)}c={};c[b]=a}p.each(c,function(f,e){d._setData(f,e)})},_getData:function(a){return this.options[a]},_setData:function(b,a){this.options[b]=a;if(b==&quot;disabled&quot;){this.element[a?&quot;addClass&quot;:&quot;removeClass&quot;](this.widgetBaseClass+&quot;-disabled &quot;+this.namespace+&quot;-state-disabled&quot;).attr(&quot;aria-disabled&quot;,a)}},enable:function(){this._setData(&quot;disabled&quot;,false)},disable:function(){this._setData(&quot;disabled&quot;,true)},_trigger:function(b,a,g){var e=this.options[b],d=(b==this.widgetEventPrefix?b:this.widgetEventPrefix+b);a=p.Event(a);a.type=d;if(a.originalEvent){for(var c=p.event.props.length,f;c;){f=p.event.props[--c];a[f]=a.originalEvent[f]}}this.element.trigger(a,g);return !(p.isFunction(e)&amp;&amp;e.call(this.element[0],a,g)===false||a.isDefaultPrevented())}};p.widget.defaults={disabled:false};p.ui.mouse={_mouseInit:function(){var a=this;this.element.bind(&quot;mousedown.&quot;+this.widgetName,function(b){return a._mouseDown(b)}).bind(&quot;click.&quot;+this.widgetName,function(b){if(a._preventClickEvent){a._preventClickEvent=false;b.stopImmediatePropagation();return false}});if(p.browser.msie){this._mouseUnselectable=this.element.attr(&quot;unselectable&quot;);this.element.attr(&quot;unselectable&quot;,&quot;on&quot;)}this.started=false},_mouseDestroy:function(){this.element.unbind(&quot;.&quot;+this.widgetName);(p.browser.msie&amp;&amp;this.element.attr(&quot;unselectable&quot;,this._mouseUnselectable))},_mouseDown:function(b){b.originalEvent=b.originalEvent||{};if(b.originalEvent.mouseHandled){return}(this._mouseStarted&amp;&amp;this._mouseUp(b));this._mouseDownEvent=b;var c=this,a=(b.which==1),d=(typeof this.options.cancel==&quot;string&quot;?p(b.target).parents().add(b.target).filter(this.options.cancel).length:false);if(!a||d||!this._mouseCapture(b)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(b)&amp;&amp;this._mouseDelayMet(b)){this._mouseStarted=(this._mouseStart(b)!==false);if(!this._mouseStarted){b.preventDefault();return true}}this._mouseMoveDelegate=function(e){return c._mouseMove(e)};this._mouseUpDelegate=function(e){return c._mouseUp(e)};p(document).bind(&quot;mousemove.&quot;+this.widgetName,this._mouseMoveDelegate).bind(&quot;mouseup.&quot;+this.widgetName,this._mouseUpDelegate);(p.browser.safari||b.preventDefault());b.originalEvent.mouseHandled=true;return true},_mouseMove:function(a){if(p.browser.msie&amp;&amp;!a.button){return this._mouseUp(a)}if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&amp;&amp;this._mouseDelayMet(a)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,a)!==false);(this._mouseStarted?this._mouseDrag(a):this._mouseUp(a))}return !this._mouseStarted},_mouseUp:function(a){p(document).unbind(&quot;mousemove.&quot;+this.widgetName,this._mouseMoveDelegate).unbind(&quot;mouseup.&quot;+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(a.target==this._mouseDownEvent.target);this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return(Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))&gt;=this.options.distance)},_mouseDelayMet:function(a){return this.mouseDelayMet},_mouseStart:function(a){},_mouseDrag:function(a){},_mouseStop:function(a){},_mouseCapture:function(a){return true}};p.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(b){b.widget(&quot;ui.draggable&quot;,b.extend({},b.ui.mouse,{_init:function(){if(this.options.helper==&quot;original&quot;&amp;&amp;!(/^(?:r|a|f)/).test(this.element.css(&quot;position&quot;))){this.element[0].style.position=&quot;relative&quot;}(this.options.addClasses&amp;&amp;this.element.addClass(&quot;ui-draggable&quot;));(this.options.disabled&amp;&amp;this.element.addClass(&quot;ui-draggable-disabled&quot;));this._mouseInit()},destroy:function(){if(!this.element.data(&quot;draggable&quot;)){return}this.element.removeData(&quot;draggable&quot;).unbind(&quot;.draggable&quot;).removeClass(&quot;ui-draggable ui-draggable-dragging ui-draggable-disabled&quot;);this._mouseDestroy()},_mouseCapture:function(a){var d=this.options;if(this.helper||d.disabled||b(a.target).is(&quot;.ui-resizable-handle&quot;)){return false}this.handle=this._getHandle(a);if(!this.handle){return false}return true},_mouseStart:function(a){var d=this.options;this.helper=this._createHelper(a);this._cacheHelperProportions();if(b.ui.ddmanager){b.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css(&quot;position&quot;);this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};b.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;if(d.cursorAt){this._adjustOffsetFromHelper(d.cursorAt)}if(d.containment){this._setContainment()}this._trigger(&quot;start&quot;,a);this._cacheHelperProportions();if(b.ui.ddmanager&amp;&amp;!d.dropBehaviour){b.ui.ddmanager.prepareOffsets(this,a)}this.helper.addClass(&quot;ui-draggable-dragging&quot;);this._mouseDrag(a,true);return true},_mouseDrag:function(a,e){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo(&quot;absolute&quot;);if(!e){var f=this._uiHash();this._trigger(&quot;drag&quot;,a,f);this.position=f.position}if(!this.options.axis||this.options.axis!=&quot;y&quot;){this.helper[0].style.left=this.position.left+&quot;px&quot;}if(!this.options.axis||this.options.axis!=&quot;x&quot;){this.helper[0].style.top=this.position.top+&quot;px&quot;}if(b.ui.ddmanager){b.ui.ddmanager.drag(this,a)}return false},_mouseStop:function(f){var e=false;if(b.ui.ddmanager&amp;&amp;!this.options.dropBehaviour){e=b.ui.ddmanager.drop(this,f)}if(this.dropped){e=this.dropped;this.dropped=false}if((this.options.revert==&quot;invalid&quot;&amp;&amp;!e)||(this.options.revert==&quot;valid&quot;&amp;&amp;e)||this.options.revert===true||(b.isFunction(this.options.revert)&amp;&amp;this.options.revert.call(this.element,e))){var a=this;b(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){a._trigger(&quot;stop&quot;,f);a._clear()})}else{this._trigger(&quot;stop&quot;,f);this._clear()}return false},_getHandle:function(a){var d=!this.options.handle||!b(this.options.handle,this.element).length?true:false;b(this.options.handle,this.element).find(&quot;*&quot;).andSelf().each(function(){if(this==a.target){d=true}});return d},_createHelper:function(f){var e=this.options;var a=b.isFunction(e.helper)?b(e.helper.apply(this.element[0],[f])):(e.helper==&quot;clone&quot;?this.element.clone():this.element);if(!a.parents(&quot;body&quot;).length){a.appendTo((e.appendTo==&quot;parent&quot;?this.element[0].parentNode:e.appendTo))}if(a[0]!=this.element[0]&amp;&amp;!(/(fixed|absolute)/).test(a.css(&quot;position&quot;))){a.css(&quot;position&quot;,&quot;absolute&quot;)}return a},_adjustOffsetFromHelper:function(a){if(a.left!=undefined){this.offset.click.left=a.left+this.margins.left}if(a.right!=undefined){this.offset.click.left=this.helperProportions.width-a.right+this.margins.left}if(a.top!=undefined){this.offset.click.top=a.top+this.margins.top}if(a.bottom!=undefined){this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition==&quot;absolute&quot;&amp;&amp;this.scrollParent[0]!=document&amp;&amp;b.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&amp;&amp;this.offsetParent[0].tagName.toLowerCase()==&quot;html&quot;&amp;&amp;b.browser.msie)){a={top:0,left:0}}return{top:a.top+(parseInt(this.offsetParent.css(&quot;borderTopWidth&quot;),10)||0),left:a.left+(parseInt(this.offsetParent.css(&quot;borderLeftWidth&quot;),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==&quot;relative&quot;){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css(&quot;top&quot;),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css(&quot;left&quot;),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css(&quot;marginLeft&quot;),10)||0),top:(parseInt(this.element.css(&quot;marginTop&quot;),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var f=this.options;if(f.containment==&quot;parent&quot;){f.containment=this.helper[0].parentNode}if(f.containment==&quot;document&quot;||f.containment==&quot;window&quot;){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(f.containment==&quot;document&quot;?document:window).width()-this.helperProportions.width-this.margins.left,(b(f.containment==&quot;document&quot;?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(f.containment)&amp;&amp;f.containment.constructor!=Array){var h=b(f.containment)[0];if(!h){return}var g=b(f.containment).offset();var a=(b(h).css(&quot;overflow&quot;)!=&quot;hidden&quot;);this.containment=[g.left+(parseInt(b(h).css(&quot;borderLeftWidth&quot;),10)||0)+(parseInt(b(h).css(&quot;paddingLeft&quot;),10)||0)-this.margins.left,g.top+(parseInt(b(h).css(&quot;borderTopWidth&quot;),10)||0)+(parseInt(b(h).css(&quot;paddingTop&quot;),10)||0)-this.margins.top,g.left+(a?Math.max(h.scrollWidth,h.offsetWidth):h.offsetWidth)-(parseInt(b(h).css(&quot;borderLeftWidth&quot;),10)||0)-(parseInt(b(h).css(&quot;paddingRight&quot;),10)||0)-this.helperProportions.width-this.margins.left,g.top+(a?Math.max(h.scrollHeight,h.offsetHeight):h.offsetHeight)-(parseInt(b(h).css(&quot;borderTopWidth&quot;),10)||0)-(parseInt(b(h).css(&quot;paddingBottom&quot;),10)||0)-this.helperProportions.height-this.margins.top]}else{if(f.containment.constructor==Array){this.containment=f.containment}}},_convertPositionTo:function(k,d){if(!d){d=this.position}var m=k==&quot;absolute&quot;?1:-1;var l=this.options,a=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,j=(/(html|body)/i).test(a[0].tagName);return{top:(d.top+this.offset.relative.top*m+this.offset.parent.top*m-(b.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():(j?0:a.scrollTop()))*m)),left:(d.left+this.offset.relative.left*m+this.offset.parent.left*m-(b.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():j?0:a.scrollLeft())*m))}},_generatePosition:function(n){var k=this.options,a=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,j=(/(html|body)/i).test(a[0].tagName);if(this.cssPosition==&quot;relative&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var o=n.pageX;var p=n.pageY;if(this.originalPosition){if(this.containment){if(n.pageX-this.offset.click.left&lt;this.containment[0]){o=this.containment[0]+this.offset.click.left}if(n.pageY-this.offset.click.top&lt;this.containment[1]){p=this.containment[1]+this.offset.click.top}if(n.pageX-this.offset.click.left&gt;this.containment[2]){o=this.containment[2]+this.offset.click.left}if(n.pageY-this.offset.click.top&gt;this.containment[3]){p=this.containment[3]+this.offset.click.top}}if(k.grid){var l=this.originalPageY+Math.round((p-this.originalPageY)/k.grid[1])*k.grid[1];p=this.containment?(!(l-this.offset.click.top&lt;this.containment[1]||l-this.offset.click.top&gt;this.containment[3])?l:(!(l-this.offset.click.top&lt;this.containment[1])?l-k.grid[1]:l+k.grid[1])):l;var m=this.originalPageX+Math.round((o-this.originalPageX)/k.grid[0])*k.grid[0];o=this.containment?(!(m-this.offset.click.left&lt;this.containment[0]||m-this.offset.click.left&gt;this.containment[2])?m:(!(m-this.offset.click.left&lt;this.containment[0])?m-k.grid[0]:m+k.grid[0])):m}}return{top:(p-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():(j?0:a.scrollTop())))),left:(o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():j?0:a.scrollLeft())))}},_clear:function(){this.helper.removeClass(&quot;ui-draggable-dragging&quot;);if(this.helper[0]!=this.element[0]&amp;&amp;!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},_trigger:function(a,f,e){e=e||this._uiHash();b.ui.plugin.call(this,a,[f,e]);if(a==&quot;drag&quot;){this.positionAbs=this._convertPositionTo(&quot;absolute&quot;)}return b.widget.prototype._trigger.call(this,a,f,e)},plugins:{},_uiHash:function(a){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));b.extend(b.ui.draggable,{version:&quot;1.7.1&quot;,eventPrefix:&quot;drag&quot;,defaults:{addClasses:true,appendTo:&quot;parent&quot;,axis:false,cancel:&quot;:input,option&quot;,connectToSortable:false,containment:false,cursor:&quot;auto&quot;,cursorAt:false,delay:0,distance:1,grid:false,handle:false,helper:&quot;original&quot;,iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:&quot;default&quot;,scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:&quot;both&quot;,snapTolerance:20,stack:false,zIndex:false}});b.ui.plugin.add(&quot;draggable&quot;,&quot;connectToSortable&quot;,{start:function(k,h){var j=b(this).data(&quot;draggable&quot;),g=j.options,a=b.extend({},h,{item:j.element});j.sortables=[];b(g.connectToSortable).each(function(){var c=b.data(this,&quot;sortable&quot;);if(c&amp;&amp;!c.options.disabled){j.sortables.push({instance:c,shouldRevert:c.options.revert});c._refreshItems();c._trigger(&quot;activate&quot;,k,a)}})},stop:function(h,f){var g=b(this).data(&quot;draggable&quot;),a=b.extend({},f,{item:g.element});b.each(g.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;g.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(h);this.instance.options.helper=this.instance.options._helper;if(g.options.helper==&quot;original&quot;){this.instance.currentItem.css({top:&quot;auto&quot;,left:&quot;auto&quot;})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger(&quot;deactivate&quot;,h,a)}})},drag:function(k,g){var h=b(this).data(&quot;draggable&quot;),a=this;var j=function(r){var d=this.offset.click.top,e=this.offset.click.left;var v=this.positionAbs.top,o=this.positionAbs.left;var q=r.height,f=r.width;var c=r.top,u=r.left;return b.ui.isOver(v+d,o+e,c,u,q,f)};b.each(h.sortables,function(c){this.instance.positionAbs=h.positionAbs;this.instance.helperProportions=h.helperProportions;this.instance.offset.click=h.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=b(a).clone().appendTo(this.instance.element).data(&quot;sortable-item&quot;,true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return g.helper[0]};k.target=this.instance.currentItem[0];this.instance._mouseCapture(k,true);this.instance._mouseStart(k,true,true);this.instance.offset.click.top=h.offset.click.top;this.instance.offset.click.left=h.offset.click.left;this.instance.offset.parent.left-=h.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=h.offset.parent.top-this.instance.offset.parent.top;h._trigger(&quot;toSortable&quot;,k);h.dropped=this.instance.element;h.currentItem=h.element;this.instance.fromOutside=h}if(this.instance.currentItem){this.instance._mouseDrag(k)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger(&quot;out&quot;,k,this.instance._uiHash(this.instance));this.instance._mouseStop(k,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}h._trigger(&quot;fromSortable&quot;,k);h.dropped=false}}})}});b.ui.plugin.add(&quot;draggable&quot;,&quot;cursor&quot;,{start:function(h,g){var a=b(&quot;body&quot;),f=b(this).data(&quot;draggable&quot;).options;if(a.css(&quot;cursor&quot;)){f._cursor=a.css(&quot;cursor&quot;)}a.css(&quot;cursor&quot;,f.cursor)},stop:function(a,f){var e=b(this).data(&quot;draggable&quot;).options;if(e._cursor){b(&quot;body&quot;).css(&quot;cursor&quot;,e._cursor)}}});b.ui.plugin.add(&quot;draggable&quot;,&quot;iframeFix&quot;,{start:function(a,f){var e=b(this).data(&quot;draggable&quot;).options;b(e.iframeFix===true?&quot;iframe&quot;:e.iframeFix).each(function(){b('&lt;div class=&quot;ui-draggable-iframeFix&quot; style=&quot;background: #fff;&quot;&gt;&lt;/div&gt;').css({width:this.offsetWidth+&quot;px&quot;,height:this.offsetHeight+&quot;px&quot;,position:&quot;absolute&quot;,opacity:&quot;0.001&quot;,zIndex:1000}).css(b(this).offset()).appendTo(&quot;body&quot;)})},stop:function(a,d){b(&quot;div.ui-draggable-iframeFix&quot;).each(function(){this.parentNode.removeChild(this)})}});b.ui.plugin.add(&quot;draggable&quot;,&quot;opacity&quot;,{start:function(h,g){var a=b(g.helper),f=b(this).data(&quot;draggable&quot;).options;if(a.css(&quot;opacity&quot;)){f._opacity=a.css(&quot;opacity&quot;)}a.css(&quot;opacity&quot;,f.opacity)},stop:function(a,f){var e=b(this).data(&quot;draggable&quot;).options;if(e._opacity){b(f.helper).css(&quot;opacity&quot;,e._opacity)}}});b.ui.plugin.add(&quot;draggable&quot;,&quot;scroll&quot;,{start:function(f,e){var a=b(this).data(&quot;draggable&quot;);if(a.scrollParent[0]!=document&amp;&amp;a.scrollParent[0].tagName!=&quot;HTML&quot;){a.overflowOffset=a.scrollParent.offset()}},drag:function(j,h){var k=b(this).data(&quot;draggable&quot;),g=k.options,a=false;if(k.scrollParent[0]!=document&amp;&amp;k.scrollParent[0].tagName!=&quot;HTML&quot;){if(!g.axis||g.axis!=&quot;x&quot;){if((k.overflowOffset.top+k.scrollParent[0].offsetHeight)-j.pageY&lt;g.scrollSensitivity){k.scrollParent[0].scrollTop=a=k.scrollParent[0].scrollTop+g.scrollSpeed}else{if(j.pageY-k.overflowOffset.top&lt;g.scrollSensitivity){k.scrollParent[0].scrollTop=a=k.scrollParent[0].scrollTop-g.scrollSpeed}}}if(!g.axis||g.axis!=&quot;y&quot;){if((k.overflowOffset.left+k.scrollParent[0].offsetWidth)-j.pageX&lt;g.scrollSensitivity){k.scrollParent[0].scrollLeft=a=k.scrollParent[0].scrollLeft+g.scrollSpeed}else{if(j.pageX-k.overflowOffset.left&lt;g.scrollSensitivity){k.scrollParent[0].scrollLeft=a=k.scrollParent[0].scrollLeft-g.scrollSpeed}}}}else{if(!g.axis||g.axis!=&quot;x&quot;){if(j.pageY-b(document).scrollTop()&lt;g.scrollSensitivity){a=b(document).scrollTop(b(document).scrollTop()-g.scrollSpeed)}else{if(b(window).height()-(j.pageY-b(document).scrollTop())&lt;g.scrollSensitivity){a=b(document).scrollTop(b(document).scrollTop()+g.scrollSpeed)}}}if(!g.axis||g.axis!=&quot;y&quot;){if(j.pageX-b(document).scrollLeft()&lt;g.scrollSensitivity){a=b(document).scrollLeft(b(document).scrollLeft()-g.scrollSpeed)}else{if(b(window).width()-(j.pageX-b(document).scrollLeft())&lt;g.scrollSensitivity){a=b(document).scrollLeft(b(document).scrollLeft()+g.scrollSpeed)}}}}if(a!==false&amp;&amp;b.ui.ddmanager&amp;&amp;!g.dropBehaviour){b.ui.ddmanager.prepareOffsets(k,j)}}});b.ui.plugin.add(&quot;draggable&quot;,&quot;snap&quot;,{start:function(h,g){var a=b(this).data(&quot;draggable&quot;),f=a.options;a.snapElements=[];b(f.snap.constructor!=String?(f.snap.items||&quot;:data(draggable)&quot;):f.snap).each(function(){var c=b(this);var d=c.offset();if(this!=a.element[0]){a.snapElements.push({item:this,width:c.outerWidth(),height:c.outerHeight(),top:d.top,left:d.left})}})},drag:function(B,F){var L=b(this).data(&quot;draggable&quot;),D=L.options;var d=D.snapTolerance;var l=F.offset.left,o=l+L.helperProportions.width,M=F.offset.top,N=M+L.helperProportions.height;for(var r=L.snapElements.length-1;r&gt;=0;r--){var C=L.snapElements[r].left,G=C+L.snapElements[r].width,H=L.snapElements[r].top,E=H+L.snapElements[r].height;if(!((C-d&lt;l&amp;&amp;l&lt;G+d&amp;&amp;H-d&lt;M&amp;&amp;M&lt;E+d)||(C-d&lt;l&amp;&amp;l&lt;G+d&amp;&amp;H-d&lt;N&amp;&amp;N&lt;E+d)||(C-d&lt;o&amp;&amp;o&lt;G+d&amp;&amp;H-d&lt;M&amp;&amp;M&lt;E+d)||(C-d&lt;o&amp;&amp;o&lt;G+d&amp;&amp;H-d&lt;N&amp;&amp;N&lt;E+d))){if(L.snapElements[r].snapping){(L.options.snap.release&amp;&amp;L.options.snap.release.call(L.element,B,b.extend(L._uiHash(),{snapItem:L.snapElements[r].item})))}L.snapElements[r].snapping=false;continue}if(D.snapMode!=&quot;inner&quot;){var O=Math.abs(H-N)&lt;=d;var a=Math.abs(E-M)&lt;=d;var J=Math.abs(C-o)&lt;=d;var I=Math.abs(G-l)&lt;=d;if(O){F.position.top=L._convertPositionTo(&quot;relative&quot;,{top:H-L.helperProportions.height,left:0}).top-L.margins.top}if(a){F.position.top=L._convertPositionTo(&quot;relative&quot;,{top:E,left:0}).top-L.margins.top}if(J){F.position.left=L._convertPositionTo(&quot;relative&quot;,{top:0,left:C-L.helperProportions.width}).left-L.margins.left}if(I){F.position.left=L._convertPositionTo(&quot;relative&quot;,{top:0,left:G}).left-L.margins.left}}var K=(O||a||J||I);if(D.snapMode!=&quot;outer&quot;){var O=Math.abs(H-M)&lt;=d;var a=Math.abs(E-N)&lt;=d;var J=Math.abs(C-l)&lt;=d;var I=Math.abs(G-o)&lt;=d;if(O){F.position.top=L._convertPositionTo(&quot;relative&quot;,{top:H,left:0}).top-L.margins.top}if(a){F.position.top=L._convertPositionTo(&quot;relative&quot;,{top:E-L.helperProportions.height,left:0}).top-L.margins.top}if(J){F.position.left=L._convertPositionTo(&quot;relative&quot;,{top:0,left:C}).left-L.margins.left}if(I){F.position.left=L._convertPositionTo(&quot;relative&quot;,{top:0,left:G-L.helperProportions.width}).left-L.margins.left}}if(!L.snapElements[r].snapping&amp;&amp;(O||a||J||I||K)){(L.options.snap.snap&amp;&amp;L.options.snap.snap.call(L.element,B,b.extend(L._uiHash(),{snapItem:L.snapElements[r].item})))}L.snapElements[r].snapping=(O||a||J||I||K)}}});b.ui.plugin.add(&quot;draggable&quot;,&quot;stack&quot;,{start:function(a,h){var f=b(this).data(&quot;draggable&quot;).options;var g=b.makeArray(b(f.stack.group)).sort(function(c,d){return(parseInt(b(c).css(&quot;zIndex&quot;),10)||f.stack.min)-(parseInt(b(d).css(&quot;zIndex&quot;),10)||f.stack.min)});b(g).each(function(c){this.style.zIndex=f.stack.min+c});this[0].style.zIndex=f.stack.min+g.length}});b.ui.plugin.add(&quot;draggable&quot;,&quot;zIndex&quot;,{start:function(h,g){var a=b(g.helper),f=b(this).data(&quot;draggable&quot;).options;if(a.css(&quot;zIndex&quot;)){f._zIndex=a.css(&quot;zIndex&quot;)}a.css(&quot;zIndex&quot;,f.zIndex)},stop:function(a,f){var e=b(this).data(&quot;draggable&quot;).options;if(e._zIndex){b(f.helper).css(&quot;zIndex&quot;,e._zIndex)}}})})(jQuery);(function(b){b.widget(&quot;ui.droppable&quot;,{_init:function(){var d=this.options,a=d.accept;this.isover=0;this.isout=1;this.options.accept=this.options.accept&amp;&amp;b.isFunction(this.options.accept)?this.options.accept:function(c){return c.is(a)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};b.ui.ddmanager.droppables[this.options.scope]=b.ui.ddmanager.droppables[this.options.scope]||[];b.ui.ddmanager.droppables[this.options.scope].push(this);(this.options.addClasses&amp;&amp;this.element.addClass(&quot;ui-droppable&quot;))},destroy:function(){var a=b.ui.ddmanager.droppables[this.options.scope];for(var d=0;d&lt;a.length;d++){if(a[d]==this){a.splice(d,1)}}this.element.removeClass(&quot;ui-droppable ui-droppable-disabled&quot;).removeData(&quot;droppable&quot;).unbind(&quot;.droppable&quot;)},_setData:function(a,d){if(a==&quot;accept&quot;){this.options.accept=d&amp;&amp;b.isFunction(d)?d:function(c){return c.is(d)}}else{b.widget.prototype._setData.apply(this,arguments)}},_activate:function(d){var a=b.ui.ddmanager.current;if(this.options.activeClass){this.element.addClass(this.options.activeClass)}(a&amp;&amp;this._trigger(&quot;activate&quot;,d,this.ui(a)))},_deactivate:function(d){var a=b.ui.ddmanager.current;if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}(a&amp;&amp;this._trigger(&quot;deactivate&quot;,d,this.ui(a)))},_over:function(d){var a=b.ui.ddmanager.current;if(!a||(a.currentItem||a.element)[0]==this.element[0]){return}if(this.options.accept.call(this.element[0],(a.currentItem||a.element))){if(this.options.hoverClass){this.element.addClass(this.options.hoverClass)}this._trigger(&quot;over&quot;,d,this.ui(a))}},_out:function(d){var a=b.ui.ddmanager.current;if(!a||(a.currentItem||a.element)[0]==this.element[0]){return}if(this.options.accept.call(this.element[0],(a.currentItem||a.element))){if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger(&quot;out&quot;,d,this.ui(a))}},_drop:function(h,g){var a=g||b.ui.ddmanager.current;if(!a||(a.currentItem||a.element)[0]==this.element[0]){return false}var f=false;this.element.find(&quot;:data(droppable)&quot;).not(&quot;.ui-draggable-dragging&quot;).each(function(){var c=b.data(this,&quot;droppable&quot;);if(c.options.greedy&amp;&amp;b.ui.intersect(a,b.extend(c,{offset:c.element.offset()}),c.options.tolerance)){f=true;return false}});if(f){return false}if(this.options.accept.call(this.element[0],(a.currentItem||a.element))){if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger(&quot;drop&quot;,h,this.ui(a));return this.element}return false},ui:function(a){return{draggable:(a.currentItem||a.element),helper:a.helper,position:a.position,absolutePosition:a.positionAbs,offset:a.positionAbs}}});b.extend(b.ui.droppable,{version:&quot;1.7.1&quot;,eventPrefix:&quot;drop&quot;,defaults:{accept:&quot;*&quot;,activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:&quot;default&quot;,tolerance:&quot;intersect&quot;}});b.ui.intersect=function(a,x,r){if(!x.offset){return false}var C=(a.positionAbs||a.position.absolute).left,D=C+a.helperProportions.width,u=(a.positionAbs||a.position.absolute).top,v=u+a.helperProportions.height;var A=x.offset.left,E=A+x.proportions.width,l=x.offset.top,w=l+x.proportions.height;switch(r){case&quot;fit&quot;:return(A&lt;C&amp;&amp;D&lt;E&amp;&amp;l&lt;u&amp;&amp;v&lt;w);break;case&quot;intersect&quot;:return(A&lt;C+(a.helperProportions.width/2)&amp;&amp;D-(a.helperProportions.width/2)&lt;E&amp;&amp;l&lt;u+(a.helperProportions.height/2)&amp;&amp;v-(a.helperProportions.height/2)&lt;w);break;case&quot;pointer&quot;:var z=((a.positionAbs||a.position.absolute).left+(a.clickOffset||a.offset.click).left),y=((a.positionAbs||a.position.absolute).top+(a.clickOffset||a.offset.click).top),B=b.ui.isOver(y,z,l,A,x.proportions.height,x.proportions.width);return B;break;case&quot;touch&quot;:return((u&gt;=l&amp;&amp;u&lt;=w)||(v&gt;=l&amp;&amp;v&lt;=w)||(u&lt;l&amp;&amp;v&gt;w))&amp;&amp;((C&gt;=A&amp;&amp;C&lt;=E)||(D&gt;=A&amp;&amp;D&lt;=E)||(C&lt;A&amp;&amp;D&gt;E));break;default:return false;break}};b.ui.ddmanager={current:null,droppables:{&quot;default&quot;:[]},prepareOffsets:function(m,k){var a=b.ui.ddmanager.droppables[m.options.scope];var l=k?k.type:null;var j=(m.currentItem||m.element).find(&quot;:data(droppable)&quot;).andSelf();droppablesLoop:for(var n=0;n&lt;a.length;n++){if(a[n].options.disabled||(m&amp;&amp;!a[n].options.accept.call(a[n].element[0],(m.currentItem||m.element)))){continue}for(var o=0;o&lt;j.length;o++){if(j[o]==a[n].element[0]){a[n].proportions.height=0;continue droppablesLoop}}a[n].visible=a[n].element.css(&quot;display&quot;)!=&quot;none&quot;;if(!a[n].visible){continue}a[n].offset=a[n].element.offset();a[n].proportions={width:a[n].element[0].offsetWidth,height:a[n].element[0].offsetHeight};if(l==&quot;mousedown&quot;){a[n]._activate.call(a[n],k)}}},drop:function(a,f){var e=false;b.each(b.ui.ddmanager.droppables[a.options.scope],function(){if(!this.options){return}if(!this.options.disabled&amp;&amp;this.visible&amp;&amp;b.ui.intersect(a,this,this.options.tolerance)){e=this._drop.call(this,f)}if(!this.options.disabled&amp;&amp;this.visible&amp;&amp;this.options.accept.call(this.element[0],(a.currentItem||a.element))){this.isout=1;this.isover=0;this._deactivate.call(this,f)}});return e},drag:function(a,d){if(a.options.refreshPositions){b.ui.ddmanager.prepareOffsets(a,d)}b.each(b.ui.ddmanager.droppables[a.options.scope],function(){if(this.options.disabled||this.greedyChild||!this.visible){return}var j=b.ui.intersect(a,this,this.options.tolerance);var c=!j&amp;&amp;this.isover==1?&quot;isout&quot;:(j&amp;&amp;this.isover==0?&quot;isover&quot;:null);if(!c){return}var h;if(this.options.greedy){var k=this.element.parents(&quot;:data(droppable):eq(0)&quot;);if(k.length){h=b.data(k[0],&quot;droppable&quot;);h.greedyChild=(c==&quot;isover&quot;?1:0)}}if(h&amp;&amp;c==&quot;isover&quot;){h.isover=0;h.isout=1;h._out.call(h,d)}this[c]=1;this[c==&quot;isout&quot;?&quot;isover&quot;:&quot;isout&quot;]=0;this[c==&quot;isover&quot;?&quot;_over&quot;:&quot;_out&quot;].call(this,d);if(h&amp;&amp;c==&quot;isout&quot;){h.isout=0;h.isover=1;h._over.call(h,d)}})}}})(jQuery);(function(f){f.widget(&quot;ui.resizable&quot;,f.extend({},f.ui.mouse,{_init:function(){var n=this,b=this.options;this.element.addClass(&quot;ui-resizable&quot;);f.extend(this,{_aspectRatio:!!(b.aspectRatio),aspectRatio:b.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:b.helper||b.ghost||b.animate?b.helper||&quot;ui-resizable-helper&quot;:null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){if(/relative/.test(this.element.css(&quot;position&quot;))&amp;&amp;f.browser.opera){this.element.css({position:&quot;relative&quot;,top:&quot;auto&quot;,left:&quot;auto&quot;})}this.element.wrap(f('&lt;div class=&quot;ui-wrapper&quot; style=&quot;overflow: hidden;&quot;&gt;&lt;/div&gt;').css({position:this.element.css(&quot;position&quot;),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css(&quot;top&quot;),left:this.element.css(&quot;left&quot;)}));this.element=this.element.parent().data(&quot;resizable&quot;,this.element.data(&quot;resizable&quot;));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css(&quot;marginLeft&quot;),marginTop:this.originalElement.css(&quot;marginTop&quot;),marginRight:this.originalElement.css(&quot;marginRight&quot;),marginBottom:this.originalElement.css(&quot;marginBottom&quot;)});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css(&quot;resize&quot;);this.originalElement.css(&quot;resize&quot;,&quot;none&quot;);this._proportionallyResizeElements.push(this.originalElement.css({position:&quot;static&quot;,zoom:1,display:&quot;block&quot;}));this.originalElement.css({margin:this.originalElement.css(&quot;margin&quot;)});this._proportionallyResize()}this.handles=b.handles||(!f(&quot;.ui-resizable-handle&quot;,this.element).length?&quot;e,s,se&quot;:{n:&quot;.ui-resizable-n&quot;,e:&quot;.ui-resizable-e&quot;,s:&quot;.ui-resizable-s&quot;,w:&quot;.ui-resizable-w&quot;,se:&quot;.ui-resizable-se&quot;,sw:&quot;.ui-resizable-sw&quot;,ne:&quot;.ui-resizable-ne&quot;,nw:&quot;.ui-resizable-nw&quot;});if(this.handles.constructor==String){if(this.handles==&quot;all&quot;){this.handles=&quot;n,e,s,w,se,sw,ne,nw&quot;}var a=this.handles.split(&quot;,&quot;);this.handles={};for(var m=0;m&lt;a.length;m++){var c=f.trim(a[m]),o=&quot;ui-resizable-&quot;+c;var l=f('&lt;div class=&quot;ui-resizable-handle '+o+'&quot;&gt;&lt;/div&gt;');if(/sw|se|ne|nw/.test(c)){l.css({zIndex:++b.zIndex})}if(&quot;se&quot;==c){l.addClass(&quot;ui-icon ui-icon-gripsmall-diagonal-se&quot;)}this.handles[c]=&quot;.ui-resizable-&quot;+c;this.element.append(l)}}this._renderAxis=function(j){j=j||this.element;for(var g in this.handles){if(this.handles[g].constructor==String){this.handles[g]=f(this.handles[g],this.element).show()}if(this.elementIsWrapper&amp;&amp;this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var q=f(this.handles[g],this.element),k=0;k=/sw|ne|nw|se|n|s/.test(g)?q.outerHeight():q.outerWidth();var h=[&quot;padding&quot;,/ne|nw|n/.test(g)?&quot;Top&quot;:/se|sw|s/.test(g)?&quot;Bottom&quot;:/^e$/.test(g)?&quot;Right&quot;:&quot;Left&quot;].join(&quot;&quot;);j.css(h,k);this._proportionallyResize()}if(!f(this.handles[g]).length){continue}}};this._renderAxis(this.element);this._handles=f(&quot;.ui-resizable-handle&quot;,this.element).disableSelection();this._handles.mouseover(function(){if(!n.resizing){if(this.className){var g=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}n.axis=g&amp;&amp;g[1]?g[1]:&quot;se&quot;}});if(b.autoHide){this._handles.hide();f(this.element).addClass(&quot;ui-resizable-autohide&quot;).hover(function(){f(this).removeClass(&quot;ui-resizable-autohide&quot;);n._handles.show()},function(){if(!n.resizing){f(this).addClass(&quot;ui-resizable-autohide&quot;);n._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var b=function(c){f(c).removeClass(&quot;ui-resizable ui-resizable-disabled ui-resizable-resizing&quot;).removeData(&quot;resizable&quot;).unbind(&quot;.resizable&quot;).find(&quot;.ui-resizable-handle&quot;).remove()};if(this.elementIsWrapper){b(this.element);var a=this.element;a.parent().append(this.originalElement.css({position:a.css(&quot;position&quot;),width:a.outerWidth(),height:a.outerHeight(),top:a.css(&quot;top&quot;),left:a.css(&quot;left&quot;)})).end().remove()}this.originalElement.css(&quot;resize&quot;,this.originalResizeStyle);b(this.originalElement)},_mouseCapture:function(b){var a=false;for(var c in this.handles){if(f(this.handles[c])[0]==b.target){a=true}}return this.options.disabled||!!a},_mouseStart:function(l){var b=this.options,m=this.element.position(),n=this.element;this.resizing=true;this.documentScroll={top:f(document).scrollTop(),left:f(document).scrollLeft()};if(n.is(&quot;.ui-draggable&quot;)||(/absolute/).test(n.css(&quot;position&quot;))){n.css({position:&quot;absolute&quot;,top:m.top,left:m.left})}if(f.browser.opera&amp;&amp;(/relative/).test(n.css(&quot;position&quot;))){n.css({position:&quot;relative&quot;,top:&quot;auto&quot;,left:&quot;auto&quot;})}this._renderProxy();var a=d(this.helper.css(&quot;left&quot;)),k=d(this.helper.css(&quot;top&quot;));if(b.containment){a+=f(b.containment).scrollLeft()||0;k+=f(b.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:a,top:k};this.size=this._helper?{width:n.outerWidth(),height:n.outerHeight()}:{width:n.width(),height:n.height()};this.originalSize=this._helper?{width:n.outerWidth(),height:n.outerHeight()}:{width:n.width(),height:n.height()};this.originalPosition={left:a,top:k};this.sizeDiff={width:n.outerWidth()-n.width(),height:n.outerHeight()-n.height()};this.originalMousePosition={left:l.pageX,top:l.pageY};this.aspectRatio=(typeof b.aspectRatio==&quot;number&quot;)?b.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);var c=f(&quot;.ui-resizable-&quot;+this.axis).css(&quot;cursor&quot;);f(&quot;body&quot;).css(&quot;cursor&quot;,c==&quot;auto&quot;?this.axis+&quot;-resize&quot;:c);n.addClass(&quot;ui-resizable-resizing&quot;);this._propagate(&quot;start&quot;,l);return true},_mouseDrag:function(B){var y=this.helper,z=this.options,r={},b=this,w=this.originalMousePosition,o=this.axis;var a=(B.pageX-w.left)||0,c=(B.pageY-w.top)||0;var x=this._change[o];if(!x){return false}var u=x.apply(this,[B,a,c]),v=f.browser.msie&amp;&amp;f.browser.version&lt;7,A=this.sizeDiff;if(this._aspectRatio||B.shiftKey){u=this._updateRatio(u,B)}u=this._respectSize(u,B);this._propagate(&quot;resize&quot;,B);y.css({top:this.position.top+&quot;px&quot;,left:this.position.left+&quot;px&quot;,width:this.size.width+&quot;px&quot;,height:this.size.height+&quot;px&quot;});if(!this._helper&amp;&amp;this._proportionallyResizeElements.length){this._proportionallyResize()}this._updateCache(u);this._trigger(&quot;resize&quot;,B,this.ui());return false},_mouseStop:function(q){this.resizing=false;var p=this.options,b=this;if(this._helper){var r=this._proportionallyResizeElements,v=r.length&amp;&amp;(/textarea/i).test(r[0].nodeName),u=v&amp;&amp;f.ui.hasScroll(r[0],&quot;left&quot;)?0:b.sizeDiff.height,n=v?0:b.sizeDiff.width;var a={width:(b.size.width-n),height:(b.size.height-u)},o=(parseInt(b.element.css(&quot;left&quot;),10)+(b.position.left-b.originalPosition.left))||null,c=(parseInt(b.element.css(&quot;top&quot;),10)+(b.position.top-b.originalPosition.top))||null;if(!p.animate){this.element.css(f.extend(a,{top:c,left:o}))}b.helper.height(b.size.height);b.helper.width(b.size.width);if(this._helper&amp;&amp;!p.animate){this._proportionallyResize()}}f(&quot;body&quot;).css(&quot;cursor&quot;,&quot;auto&quot;);this.element.removeClass(&quot;ui-resizable-resizing&quot;);this._propagate(&quot;stop&quot;,q);if(this._helper){this.helper.remove()}return false},_updateCache:function(b){var a=this.options;this.offset=this.helper.offset();if(e(b.left)){this.position.left=b.left}if(e(b.top)){this.position.top=b.top}if(e(b.height)){this.size.height=b.height}if(e(b.width)){this.size.width=b.width}},_updateRatio:function(c,j){var b=this.options,a=this.position,k=this.size,l=this.axis;if(c.height){c.width=(k.height*this.aspectRatio)}else{if(c.width){c.height=(k.width/this.aspectRatio)}}if(l==&quot;sw&quot;){c.left=a.left+(k.width-c.width);c.top=null}if(l==&quot;nw&quot;){c.top=a.top+(k.height-c.height);c.left=a.left+(k.width-c.width)}return c},_respectSize:function(w,B){var y=this.helper,z=this.options,b=this._aspectRatio||B.shiftKey,c=this.axis,E=e(w.width)&amp;&amp;z.maxWidth&amp;&amp;(z.maxWidth&lt;w.width),v=e(w.height)&amp;&amp;z.maxHeight&amp;&amp;(z.maxHeight&lt;w.height),A=e(w.width)&amp;&amp;z.minWidth&amp;&amp;(z.minWidth&gt;w.width),a=e(w.height)&amp;&amp;z.minHeight&amp;&amp;(z.minHeight&gt;w.height);if(A){w.width=z.minWidth}if(a){w.height=z.minHeight}if(E){w.width=z.maxWidth}if(v){w.height=z.maxHeight}var C=this.originalPosition.left+this.originalSize.width,o=this.position.top+this.size.height;var x=/sw|nw|w/.test(c),D=/nw|ne|n/.test(c);if(A&amp;&amp;x){w.left=C-z.minWidth}if(E&amp;&amp;x){w.left=C-z.maxWidth}if(a&amp;&amp;D){w.top=o-z.minHeight}if(v&amp;&amp;D){w.top=o-z.maxHeight}var u=!w.width&amp;&amp;!w.height;if(u&amp;&amp;!w.left&amp;&amp;w.top){w.top=null}else{if(u&amp;&amp;!w.top&amp;&amp;w.left){w.left=null}}return w},_proportionallyResize:function(){var a=this.options;if(!this._proportionallyResizeElements.length){return}var k=this.helper||this.element;for(var l=0;l&lt;this._proportionallyResizeElements.length;l++){var c=this._proportionallyResizeElements[l];if(!this.borderDif){var m=[c.css(&quot;borderTopWidth&quot;),c.css(&quot;borderRightWidth&quot;),c.css(&quot;borderBottomWidth&quot;),c.css(&quot;borderLeftWidth&quot;)],b=[c.css(&quot;paddingTop&quot;),c.css(&quot;paddingRight&quot;),c.css(&quot;paddingBottom&quot;),c.css(&quot;paddingLeft&quot;)];this.borderDif=f.map(m,function(j,g){var h=parseInt(j,10)||0,o=parseInt(b[g],10)||0;return h+o})}if(f.browser.msie&amp;&amp;!(!(f(k).is(&quot;:hidden&quot;)||f(k).parents(&quot;:hidden&quot;).length))){continue}c.css({height:(k.height()-this.borderDif[0]-this.borderDif[2])||0,width:(k.width()-this.borderDif[1]-this.borderDif[3])||0})}},_renderProxy:function(){var j=this.element,a=this.options;this.elementOffset=j.offset();if(this._helper){this.helper=this.helper||f('&lt;div style=&quot;overflow:hidden;&quot;&gt;&lt;/div&gt;');var k=f.browser.msie&amp;&amp;f.browser.version&lt;7,c=(k?1:0),b=(k?2:-1);this.helper.addClass(this._helper).css({width:this.element.outerWidth()+b,height:this.element.outerHeight()+b,position:&quot;absolute&quot;,left:this.elementOffset.left-c+&quot;px&quot;,top:this.elementOffset.top-c+&quot;px&quot;,zIndex:++a.zIndex});this.helper.appendTo(&quot;body&quot;).disableSelection()}else{this.helper=this.element}},_change:{e:function(a,b,c){return{width:this.originalSize.width+b}},w:function(c,k,l){var a=this.options,j=this.originalSize,b=this.originalPosition;return{left:b.left+k,width:j.width-k}},n:function(c,k,l){var a=this.options,j=this.originalSize,b=this.originalPosition;return{top:b.top+l,height:j.height-l}},s:function(a,b,c){return{height:this.originalSize.height+c}},se:function(a,b,c){return f.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[a,b,c]))},sw:function(a,b,c){return f.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[a,b,c]))},ne:function(a,b,c){return f.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[a,b,c]))},nw:function(a,b,c){return f.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[a,b,c]))}},_propagate:function(a,b){f.ui.plugin.call(this,a,[b,this.ui()]);(a!=&quot;resize&quot;&amp;&amp;this._trigger(a,b,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}}}));f.extend(f.ui.resizable,{version:&quot;1.7.1&quot;,eventPrefix:&quot;resize&quot;,defaults:{alsoResize:false,animate:false,animateDuration:&quot;slow&quot;,animateEasing:&quot;swing&quot;,aspectRatio:false,autoHide:false,cancel:&quot;:input,option&quot;,containment:false,delay:0,distance:1,ghost:false,grid:false,handles:&quot;e,s,se&quot;,helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000}});f.ui.plugin.add(&quot;resizable&quot;,&quot;alsoResize&quot;,{start:function(c,b){var h=f(this).data(&quot;resizable&quot;),a=h.options;_store=function(g){f(g).each(function(){f(this).data(&quot;resizable-alsoresize&quot;,{width:parseInt(f(this).width(),10),height:parseInt(f(this).height(),10),left:parseInt(f(this).css(&quot;left&quot;),10),top:parseInt(f(this).css(&quot;top&quot;),10)})})};if(typeof(a.alsoResize)==&quot;object&quot;&amp;&amp;!a.alsoResize.parentNode){if(a.alsoResize.length){a.alsoResize=a.alsoResize[0];_store(a.alsoResize)}else{f.each(a.alsoResize,function(j,g){_store(j)})}}else{_store(a.alsoResize)}},resize:function(n,l){var o=f(this).data(&quot;resizable&quot;),c=o.options,m=o.originalSize,a=o.originalPosition;var b={height:(o.size.height-m.height)||0,width:(o.size.width-m.width)||0,top:(o.position.top-a.top)||0,left:(o.position.left-a.left)||0},p=function(h,g){f(h).each(function(){var k=f(this),j=f(this).data(&quot;resizable-alsoresize&quot;),r={},u=g&amp;&amp;g.length?g:[&quot;width&quot;,&quot;height&quot;,&quot;top&quot;,&quot;left&quot;];f.each(u||[&quot;width&quot;,&quot;height&quot;,&quot;top&quot;,&quot;left&quot;],function(w,q){var v=(j[q]||0)+(b[q]||0);if(v&amp;&amp;v&gt;=0){r[q]=v||null}});if(/relative/.test(k.css(&quot;position&quot;))&amp;&amp;f.browser.opera){o._revertToRelativePosition=true;k.css({position:&quot;absolute&quot;,top:&quot;auto&quot;,left:&quot;auto&quot;})}k.css(r)})};if(typeof(c.alsoResize)==&quot;object&quot;&amp;&amp;!c.alsoResize.nodeType){f.each(c.alsoResize,function(h,g){p(h,g)})}else{p(c.alsoResize)}},stop:function(b,a){var c=f(this).data(&quot;resizable&quot;);if(c._revertToRelativePosition&amp;&amp;f.browser.opera){c._revertToRelativePosition=false;el.css({position:&quot;relative&quot;})}f(this).removeData(&quot;resizable-alsoresize-start&quot;)}});f.ui.plugin.add(&quot;resizable&quot;,&quot;animate&quot;,{stop:function(r,b){var a=f(this).data(&quot;resizable&quot;),q=a.options;var u=a._proportionallyResizeElements,x=u.length&amp;&amp;(/textarea/i).test(u[0].nodeName),w=x&amp;&amp;f.ui.hasScroll(u[0],&quot;left&quot;)?0:a.sizeDiff.height,o=x?0:a.sizeDiff.width;var v={width:(a.size.width-o),height:(a.size.height-w)},p=(parseInt(a.element.css(&quot;left&quot;),10)+(a.position.left-a.originalPosition.left))||null,c=(parseInt(a.element.css(&quot;top&quot;),10)+(a.position.top-a.originalPosition.top))||null;a.element.animate(f.extend(v,c&amp;&amp;p?{top:c,left:p}:{}),{duration:q.animateDuration,easing:q.animateEasing,step:function(){var g={width:parseInt(a.element.css(&quot;width&quot;),10),height:parseInt(a.element.css(&quot;height&quot;),10),top:parseInt(a.element.css(&quot;top&quot;),10),left:parseInt(a.element.css(&quot;left&quot;),10)};if(u&amp;&amp;u.length){f(u[0]).css({width:g.width,height:g.height})}a._updateCache(g);a._propagate(&quot;resize&quot;,r)}})}});f.ui.plugin.add(&quot;resizable&quot;,&quot;containment&quot;,{start:function(A,b){var C=f(this).data(&quot;resizable&quot;),w=C.options,u=C.element;var z=w.containment,v=(z instanceof f)?z.get(0):(/parent/.test(z))?u.parent().get(0):z;if(!v){return}C.containerElement=f(v);if(/document/.test(z)||z==document){C.containerOffset={left:0,top:0};C.containerPosition={left:0,top:0};C.parentData={element:f(document),left:0,top:0,width:f(document).width(),height:f(document).height()||document.body.parentNode.scrollHeight}}else{var o=f(v),x=[];f([&quot;Top&quot;,&quot;Right&quot;,&quot;Left&quot;,&quot;Bottom&quot;]).each(function(g,h){x[g]=d(o.css(&quot;padding&quot;+h))});C.containerOffset=o.offset();C.containerPosition=o.position();C.containerSize={height:(o.innerHeight()-x[3]),width:(o.innerWidth()-x[1])};var c=C.containerOffset,B=C.containerSize.height,p=C.containerSize.width,y=(f.ui.hasScroll(v,&quot;left&quot;)?v.scrollWidth:p),a=(f.ui.hasScroll(v)?v.scrollHeight:B);C.parentData={element:v,left:c.left,top:c.top,width:y,height:a}}},resize:function(B,c){var E=f(this).data(&quot;resizable&quot;),z=E.options,C=E.containerSize,o=E.containerOffset,v=E.size,u=E.position,b=E._aspectRatio||B.shiftKey,D={top:0,left:0},A=E.containerElement;if(A[0]!=document&amp;&amp;(/static/).test(A.css(&quot;position&quot;))){D=o}if(u.left&lt;(E._helper?o.left:0)){E.size.width=E.size.width+(E._helper?(E.position.left-o.left):(E.position.left-D.left));if(b){E.size.height=E.size.width/z.aspectRatio}E.position.left=z.helper?o.left:0}if(u.top&lt;(E._helper?o.top:0)){E.size.height=E.size.height+(E._helper?(E.position.top-o.top):E.position.top);if(b){E.size.width=E.size.height*z.aspectRatio}E.position.top=E._helper?o.top:0}E.offset.left=E.parentData.left+E.position.left;E.offset.top=E.parentData.top+E.position.top;var w=Math.abs((E._helper?E.offset.left-D.left:(E.offset.left-D.left))+E.sizeDiff.width),a=Math.abs((E._helper?E.offset.top-D.top:(E.offset.top-o.top))+E.sizeDiff.height);var x=E.containerElement.get(0)==E.element.parent().get(0),y=/relative|absolute/.test(E.containerElement.css(&quot;position&quot;));if(x&amp;&amp;y){w-=E.parentData.left}if(w+E.size.width&gt;=E.parentData.width){E.size.width=E.parentData.width-w;if(b){E.size.height=E.size.width/E.aspectRatio}}if(a+E.size.height&gt;=E.parentData.height){E.size.height=E.parentData.height-a;if(b){E.size.width=E.size.height*E.aspectRatio}}},stop:function(y,h){var b=f(this).data(&quot;resizable&quot;),x=b.options,r=b.position,o=b.containerOffset,z=b.containerPosition,w=b.containerElement;var v=f(b.helper),a=v.offset(),c=v.outerWidth()-b.sizeDiff.width,u=v.outerHeight()-b.sizeDiff.height;if(b._helper&amp;&amp;!x.animate&amp;&amp;(/relative/).test(w.css(&quot;position&quot;))){f(this).css({left:a.left-z.left-o.left,width:c,height:u})}if(b._helper&amp;&amp;!x.animate&amp;&amp;(/static/).test(w.css(&quot;position&quot;))){f(this).css({left:a.left-z.left-o.left,width:c,height:u})}}});f.ui.plugin.add(&quot;resizable&quot;,&quot;ghost&quot;,{start:function(c,b){var k=f(this).data(&quot;resizable&quot;),a=k.options,j=k.size;k.ghost=k.originalElement.clone();k.ghost.css({opacity:0.25,display:&quot;block&quot;,position:&quot;relative&quot;,height:j.height,width:j.width,margin:0,left:0,top:0}).addClass(&quot;ui-resizable-ghost&quot;).addClass(typeof a.ghost==&quot;string&quot;?a.ghost:&quot;&quot;);k.ghost.appendTo(k.helper)},resize:function(c,b){var h=f(this).data(&quot;resizable&quot;),a=h.options;if(h.ghost){h.ghost.css({position:&quot;relative&quot;,height:h.size.height,width:h.size.width})}},stop:function(c,b){var h=f(this).data(&quot;resizable&quot;),a=h.options;if(h.ghost&amp;&amp;h.helper){h.helper.get(0).removeChild(h.ghost.get(0))}}});f.ui.plugin.add(&quot;resizable&quot;,&quot;grid&quot;,{resize:function(x,c){var a=f(this).data(&quot;resizable&quot;),u=a.options,p=a.size,r=a.originalSize,q=a.originalPosition,b=a.axis,o=u._aspectRatio||x.shiftKey;u.grid=typeof u.grid==&quot;number&quot;?[u.grid,u.grid]:u.grid;var v=Math.round((p.width-r.width)/(u.grid[0]||1))*(u.grid[0]||1),w=Math.round((p.height-r.height)/(u.grid[1]||1))*(u.grid[1]||1);if(/^(se|s|e)$/.test(b)){a.size.width=r.width+v;a.size.height=r.height+w}else{if(/^(ne)$/.test(b)){a.size.width=r.width+v;a.size.height=r.height+w;a.position.top=q.top-w}else{if(/^(sw)$/.test(b)){a.size.width=r.width+v;a.size.height=r.height+w;a.position.left=q.left-v}else{a.size.width=r.width+v;a.size.height=r.height+w;a.position.top=q.top-w;a.position.left=q.left-v}}}}});var d=function(a){return parseInt(a,10)||0};var e=function(a){return !isNaN(parseInt(a,10))}})(jQuery);(function(b){b.widget(&quot;ui.selectable&quot;,b.extend({},b.ui.mouse,{_init:function(){var a=this;this.element.addClass(&quot;ui-selectable&quot;);this.dragged=false;var d;this.refresh=function(){d=b(a.options.filter,a.element[0]);d.each(function(){var f=b(this);var c=f.offset();b.data(this,&quot;selectable-item&quot;,{element:this,$element:f,left:c.left,top:c.top,right:c.left+f.outerWidth(),bottom:c.top+f.outerHeight(),startselected:false,selected:f.hasClass(&quot;ui-selected&quot;),selecting:f.hasClass(&quot;ui-selecting&quot;),unselecting:f.hasClass(&quot;ui-unselecting&quot;)})})};this.refresh();this.selectees=d.addClass(&quot;ui-selectee&quot;);this._mouseInit();this.helper=b(document.createElement(&quot;div&quot;)).css({border:&quot;1px dotted black&quot;}).addClass(&quot;ui-selectable-helper&quot;)},destroy:function(){this.element.removeClass(&quot;ui-selectable ui-selectable-disabled&quot;).removeData(&quot;selectable&quot;).unbind(&quot;.selectable&quot;);this._mouseDestroy()},_mouseStart:function(e){var a=this;this.opos=[e.pageX,e.pageY];if(this.options.disabled){return}var f=this.options;this.selectees=b(f.filter,this.element[0]);this._trigger(&quot;start&quot;,e);b(f.appendTo).append(this.helper);this.helper.css({&quot;z-index&quot;:100,position:&quot;absolute&quot;,left:e.clientX,top:e.clientY,width:0,height:0});if(f.autoRefresh){this.refresh()}this.selectees.filter(&quot;.ui-selected&quot;).each(function(){var c=b.data(this,&quot;selectable-item&quot;);c.startselected=true;if(!e.metaKey){c.$element.removeClass(&quot;ui-selected&quot;);c.selected=false;c.$element.addClass(&quot;ui-unselecting&quot;);c.unselecting=true;a._trigger(&quot;unselecting&quot;,e,{unselecting:c.element})}});b(e.target).parents().andSelf().each(function(){var c=b.data(this,&quot;selectable-item&quot;);if(c){c.$element.removeClass(&quot;ui-unselecting&quot;).addClass(&quot;ui-selecting&quot;);c.unselecting=false;c.selecting=true;c.selected=true;a._trigger(&quot;selecting&quot;,e,{selecting:c.element});return false}})},_mouseDrag:function(j){var p=this;this.dragged=true;if(this.options.disabled){return}var n=this.options;var o=this.opos[0],k=this.opos[1],a=j.pageX,l=j.pageY;if(o&gt;a){var m=a;a=o;o=m}if(k&gt;l){var m=l;l=k;k=m}this.helper.css({left:o,top:k,width:a-o,height:l-k});this.selectees.each(function(){var d=b.data(this,&quot;selectable-item&quot;);if(!d||d.element==p.element[0]){return}var c=false;if(n.tolerance==&quot;touch&quot;){c=(!(d.left&gt;a||d.right&lt;o||d.top&gt;l||d.bottom&lt;k))}else{if(n.tolerance==&quot;fit&quot;){c=(d.left&gt;o&amp;&amp;d.right&lt;a&amp;&amp;d.top&gt;k&amp;&amp;d.bottom&lt;l)}}if(c){if(d.selected){d.$element.removeClass(&quot;ui-selected&quot;);d.selected=false}if(d.unselecting){d.$element.removeClass(&quot;ui-unselecting&quot;);d.unselecting=false}if(!d.selecting){d.$element.addClass(&quot;ui-selecting&quot;);d.selecting=true;p._trigger(&quot;selecting&quot;,j,{selecting:d.element})}}else{if(d.selecting){if(j.metaKey&amp;&amp;d.startselected){d.$element.removeClass(&quot;ui-selecting&quot;);d.selecting=false;d.$element.addClass(&quot;ui-selected&quot;);d.selected=true}else{d.$element.removeClass(&quot;ui-selecting&quot;);d.selecting=false;if(d.startselected){d.$element.addClass(&quot;ui-unselecting&quot;);d.unselecting=true}p._trigger(&quot;unselecting&quot;,j,{unselecting:d.element})}}if(d.selected){if(!j.metaKey&amp;&amp;!d.startselected){d.$element.removeClass(&quot;ui-selected&quot;);d.selected=false;d.$element.addClass(&quot;ui-unselecting&quot;);d.unselecting=true;p._trigger(&quot;unselecting&quot;,j,{unselecting:d.element})}}}});return false},_mouseStop:function(e){var a=this;this.dragged=false;var f=this.options;b(&quot;.ui-unselecting&quot;,this.element[0]).each(function(){var c=b.data(this,&quot;selectable-item&quot;);c.$element.removeClass(&quot;ui-unselecting&quot;);c.unselecting=false;c.startselected=false;a._trigger(&quot;unselected&quot;,e,{unselected:c.element})});b(&quot;.ui-selecting&quot;,this.element[0]).each(function(){var c=b.data(this,&quot;selectable-item&quot;);c.$element.removeClass(&quot;ui-selecting&quot;).addClass(&quot;ui-selected&quot;);c.selecting=false;c.selected=true;c.startselected=true;a._trigger(&quot;selected&quot;,e,{selected:c.element})});this._trigger(&quot;stop&quot;,e);this.helper.remove();return false}}));b.extend(b.ui.selectable,{version:&quot;1.7.1&quot;,defaults:{appendTo:&quot;body&quot;,autoRefresh:true,cancel:&quot;:input,option&quot;,delay:0,distance:0,filter:&quot;*&quot;,tolerance:&quot;touch&quot;}})})(jQuery);(function(b){b.widget(&quot;ui.sortable&quot;,b.extend({},b.ui.mouse,{_init:function(){var a=this.options;this.containerCache={};this.element.addClass(&quot;ui-sortable&quot;);this.refresh();this.floating=this.items.length?(/left|right/).test(this.items[0].item.css(&quot;float&quot;)):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass(&quot;ui-sortable ui-sortable-disabled&quot;).removeData(&quot;sortable&quot;).unbind(&quot;.sortable&quot;);this._mouseDestroy();for(var a=this.items.length-1;a&gt;=0;a--){this.items[a].item.removeData(&quot;sortable-item&quot;)}},_mouseCapture:function(k,j){if(this.reverting){return false}if(this.options.disabled||this.options.type==&quot;static&quot;){return false}this._refreshItems(k);var l=null,m=this,a=b(k.target).parents().each(function(){if(b.data(this,&quot;sortable-item&quot;)==m){l=b(this);return false}});if(b.data(k.target,&quot;sortable-item&quot;)==m){l=b(k.target)}if(!l){return false}if(this.options.handle&amp;&amp;!j){var h=false;b(this.options.handle,l).find(&quot;*&quot;).andSelf().each(function(){if(this==k.target){h=true}});if(!h){return false}}this.currentItem=l;this._removeCurrentsFromItems();return true},_mouseStart:function(k,j,a){var h=this.options,m=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(k);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};this.helper.css(&quot;position&quot;,&quot;absolute&quot;);this.cssPosition=this.helper.css(&quot;position&quot;);b.extend(this.offset,{click:{left:k.pageX-this.offset.left,top:k.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(k);this.originalPageX=k.pageX;this.originalPageY=k.pageY;if(h.cursorAt){this._adjustOffsetFromHelper(h.cursorAt)}this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!=this.currentItem[0]){this.currentItem.hide()}this._createPlaceholder();if(h.containment){this._setContainment()}if(h.cursor){if(b(&quot;body&quot;).css(&quot;cursor&quot;)){this._storedCursor=b(&quot;body&quot;).css(&quot;cursor&quot;)}b(&quot;body&quot;).css(&quot;cursor&quot;,h.cursor)}if(h.opacity){if(this.helper.css(&quot;opacity&quot;)){this._storedOpacity=this.helper.css(&quot;opacity&quot;)}this.helper.css(&quot;opacity&quot;,h.opacity)}if(h.zIndex){if(this.helper.css(&quot;zIndex&quot;)){this._storedZIndex=this.helper.css(&quot;zIndex&quot;)}this.helper.css(&quot;zIndex&quot;,h.zIndex)}if(this.scrollParent[0]!=document&amp;&amp;this.scrollParent[0].tagName!=&quot;HTML&quot;){this.overflowOffset=this.scrollParent.offset()}this._trigger(&quot;start&quot;,k,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!a){for(var l=this.containers.length-1;l&gt;=0;l--){this.containers[l]._trigger(&quot;activate&quot;,k,m._uiHash(this))}}if(b.ui.ddmanager){b.ui.ddmanager.current=this}if(b.ui.ddmanager&amp;&amp;!h.dropBehaviour){b.ui.ddmanager.prepareOffsets(this,k)}this.dragging=true;this.helper.addClass(&quot;ui-sortable-helper&quot;);this._mouseDrag(k);return true},_mouseDrag:function(l){this.position=this._generatePosition(l);this.positionAbs=this._convertPositionTo(&quot;absolute&quot;);if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var k=this.options,a=false;if(this.scrollParent[0]!=document&amp;&amp;this.scrollParent[0].tagName!=&quot;HTML&quot;){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-l.pageY&lt;k.scrollSensitivity){this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+k.scrollSpeed}else{if(l.pageY-this.overflowOffset.top&lt;k.scrollSensitivity){this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-k.scrollSpeed}}if((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-l.pageX&lt;k.scrollSensitivity){this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+k.scrollSpeed}else{if(l.pageX-this.overflowOffset.left&lt;k.scrollSensitivity){this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-k.scrollSpeed}}}else{if(l.pageY-b(document).scrollTop()&lt;k.scrollSensitivity){a=b(document).scrollTop(b(document).scrollTop()-k.scrollSpeed)}else{if(b(window).height()-(l.pageY-b(document).scrollTop())&lt;k.scrollSensitivity){a=b(document).scrollTop(b(document).scrollTop()+k.scrollSpeed)}}if(l.pageX-b(document).scrollLeft()&lt;k.scrollSensitivity){a=b(document).scrollLeft(b(document).scrollLeft()-k.scrollSpeed)}else{if(b(window).width()-(l.pageX-b(document).scrollLeft())&lt;k.scrollSensitivity){a=b(document).scrollLeft(b(document).scrollLeft()+k.scrollSpeed)}}}if(a!==false&amp;&amp;b.ui.ddmanager&amp;&amp;!k.dropBehaviour){b.ui.ddmanager.prepareOffsets(this,l)}}this.positionAbs=this._convertPositionTo(&quot;absolute&quot;);if(!this.options.axis||this.options.axis!=&quot;y&quot;){this.helper[0].style.left=this.position.left+&quot;px&quot;}if(!this.options.axis||this.options.axis!=&quot;x&quot;){this.helper[0].style.top=this.position.top+&quot;px&quot;}for(var n=this.items.length-1;n&gt;=0;n--){var m=this.items[n],o=m.item[0],j=this._intersectsWithPointer(m);if(!j){continue}if(o!=this.currentItem[0]&amp;&amp;this.placeholder[j==1?&quot;next&quot;:&quot;prev&quot;]()[0]!=o&amp;&amp;!b.ui.contains(this.placeholder[0],o)&amp;&amp;(this.options.type==&quot;semi-dynamic&quot;?!b.ui.contains(this.element[0],o):true)){this.direction=j==1?&quot;down&quot;:&quot;up&quot;;if(this.options.tolerance==&quot;pointer&quot;||this._intersectsWithSides(m)){this._rearrange(l,m)}else{break}this._trigger(&quot;change&quot;,l,this._uiHash());break}}this._contactContainers(l);if(b.ui.ddmanager){b.ui.ddmanager.drag(this,l)}this._trigger(&quot;sort&quot;,l,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(h,g){if(!h){return}if(b.ui.ddmanager&amp;&amp;!this.options.dropBehaviour){b.ui.ddmanager.drop(this,h)}if(this.options.revert){var a=this;var f=a.placeholder.offset();a.reverting=true;b(this.helper).animate({left:f.left-this.offset.parent.left-a.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:f.top-this.offset.parent.top-a.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){a._clear(h)})}else{this._clear(h,g)}return false},cancel:function(){var a=this;if(this.dragging){this._mouseUp();if(this.options.helper==&quot;original&quot;){this.currentItem.css(this._storedCSS).removeClass(&quot;ui-sortable-helper&quot;)}else{this.currentItem.show()}for(var d=this.containers.length-1;d&gt;=0;d--){this.containers[d]._trigger(&quot;deactivate&quot;,null,a._uiHash(this));if(this.containers[d].containerCache.over){this.containers[d]._trigger(&quot;out&quot;,null,a._uiHash(this));this.containers[d].containerCache.over=0}}}if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])}if(this.options.helper!=&quot;original&quot;&amp;&amp;this.helper&amp;&amp;this.helper[0].parentNode){this.helper.remove()}b.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){b(this.domPosition.prev).after(this.currentItem)}else{b(this.domPosition.parent).prepend(this.currentItem)}return true},serialize:function(e){var a=this._getItemsAsjQuery(e&amp;&amp;e.connected);var f=[];e=e||{};b(a).each(function(){var c=(b(e.item||this).attr(e.attribute||&quot;id&quot;)||&quot;&quot;).match(e.expression||(/(.+)[-=_](.+)/));if(c){f.push((e.key||c[1]+&quot;[]&quot;)+&quot;=&quot;+(e.key&amp;&amp;e.expression?c[1]:c[2]))}});return f.join(&quot;&amp;&quot;)},toArray:function(e){var a=this._getItemsAsjQuery(e&amp;&amp;e.connected);var f=[];e=e||{};a.each(function(){f.push(b(e.item||this).attr(e.attribute||&quot;id&quot;)||&quot;&quot;)});return f},_intersectsWith:function(p){var y=this.positionAbs.left,z=y+this.helperProportions.width,q=this.positionAbs.top,r=q+this.helperProportions.height;var x=p.left,A=x+p.width,l=p.top,u=l+p.height;var a=this.offset.click.top,v=this.offset.click.left;var w=(q+a)&gt;l&amp;&amp;(q+a)&lt;u&amp;&amp;(y+v)&gt;x&amp;&amp;(y+v)&lt;A;if(this.options.tolerance==&quot;pointer&quot;||this.options.forcePointerForContainers||(this.options.tolerance!=&quot;pointer&quot;&amp;&amp;this.helperProportions[this.floating?&quot;width&quot;:&quot;height&quot;]&gt;p[this.floating?&quot;width&quot;:&quot;height&quot;])){return w}else{return(x&lt;y+(this.helperProportions.width/2)&amp;&amp;z-(this.helperProportions.width/2)&lt;A&amp;&amp;l&lt;q+(this.helperProportions.height/2)&amp;&amp;r-(this.helperProportions.height/2)&lt;u)}},_intersectsWithPointer:function(l){var k=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,l.top,l.height),m=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,l.left,l.width),h=k&amp;&amp;m,a=this._getDragVerticalDirection(),j=this._getDragHorizontalDirection();if(!h){return false}return this.floating?(((j&amp;&amp;j==&quot;right&quot;)||a==&quot;down&quot;)?2:1):(a&amp;&amp;(a==&quot;down&quot;?2:1))},_intersectsWithSides:function(h){var k=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,h.top+(h.height/2),h.height),j=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,h.left+(h.width/2),h.width),a=this._getDragVerticalDirection(),g=this._getDragHorizontalDirection();if(this.floating&amp;&amp;g){return((g==&quot;right&quot;&amp;&amp;j)||(g==&quot;left&quot;&amp;&amp;!j))}else{return a&amp;&amp;((a==&quot;down&quot;&amp;&amp;k)||(a==&quot;up&quot;&amp;&amp;!k))}},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return a!=0&amp;&amp;(a&gt;0?&quot;down&quot;:&quot;up&quot;)},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!=0&amp;&amp;(a&gt;0?&quot;right&quot;:&quot;left&quot;)},refresh:function(a){this._refreshItems(a);this.refreshPositions()},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(u){var a=this;var n=[];var p=[];var m=this._connectWith();if(m&amp;&amp;u){for(var q=m.length-1;q&gt;=0;q--){var j=b(m[q]);for(var r=j.length-1;r&gt;=0;r--){var o=b.data(j[r],&quot;sortable&quot;);if(o&amp;&amp;o!=this&amp;&amp;!o.options.disabled){p.push([b.isFunction(o.options.items)?o.options.items.call(o.element):b(o.options.items,o.element).not(&quot;.ui-sortable-helper&quot;),o])}}}}p.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(&quot;.ui-sortable-helper&quot;),this]);for(var q=p.length-1;q&gt;=0;q--){p[q][0].each(function(){n.push(this)})}return b(n)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(&quot;:data(sortable-item)&quot;);for(var f=0;f&lt;this.items.length;f++){for(var a=0;a&lt;e.length;a++){if(e[a]==this.items[f].item[0]){this.items.splice(f,1)}}}},_refreshItems:function(C){this.items=[];this.containers=[this];var w=this.items;var a=this;var y=[[b.isFunction(this.options.items)?this.options.items.call(this.element[0],C,{item:this.currentItem}):b(this.options.items,this.element),this]];var u=this._connectWith();if(u){for(var z=u.length-1;z&gt;=0;z--){var r=b(u[z]);for(var A=r.length-1;A&gt;=0;A--){var x=b.data(r[A],&quot;sortable&quot;);if(x&amp;&amp;x!=this&amp;&amp;!x.options.disabled){y.push([b.isFunction(x.options.items)?x.options.items.call(x.element[0],C,{item:this.currentItem}):b(x.options.items,x.element),x]);this.containers.push(x)}}}}for(var z=y.length-1;z&gt;=0;z--){var v=y[z][1];var B=y[z][0];for(var A=0,q=B.length;A&lt;q;A++){var j=b(B[A]);j.data(&quot;sortable-item&quot;,v);w.push({item:j,instance:v,width:0,height:0,left:0,top:0})}}},refreshPositions:function(a){if(this.offsetParent&amp;&amp;this.helper){this.offset.parent=this._getParentOffset()}for(var j=this.items.length-1;j&gt;=0;j--){var h=this.items[j];if(h.instance!=this.currentContainer&amp;&amp;this.currentContainer&amp;&amp;h.item[0]!=this.currentItem[0]){continue}var k=this.options.toleranceElement?b(this.options.toleranceElement,h.item):h.item;if(!a){h.width=k.outerWidth();h.height=k.outerHeight()}var g=k.offset();h.left=g.left;h.top=g.top}if(this.options.custom&amp;&amp;this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(var j=this.containers.length-1;j&gt;=0;j--){var g=this.containers[j].element.offset();this.containers[j].containerCache.left=g.left;this.containers[j].containerCache.top=g.top;this.containers[j].containerCache.width=this.containers[j].element.outerWidth();this.containers[j].containerCache.height=this.containers[j].element.outerHeight()}}},_createPlaceholder:function(g){var a=g||this,f=a.options;if(!f.placeholder||f.placeholder.constructor==String){var h=f.placeholder;f.placeholder={element:function(){var c=b(document.createElement(a.currentItem[0].nodeName)).addClass(h||a.currentItem[0].className+&quot; ui-sortable-placeholder&quot;).removeClass(&quot;ui-sortable-helper&quot;)[0];if(!h){c.style.visibility=&quot;hidden&quot;}return c},update:function(d,c){if(h&amp;&amp;!f.forcePlaceholderSize){return}if(!c.height()){c.height(a.currentItem.innerHeight()-parseInt(a.currentItem.css(&quot;paddingTop&quot;)||0,10)-parseInt(a.currentItem.css(&quot;paddingBottom&quot;)||0,10))}if(!c.width()){c.width(a.currentItem.innerWidth()-parseInt(a.currentItem.css(&quot;paddingLeft&quot;)||0,10)-parseInt(a.currentItem.css(&quot;paddingRight&quot;)||0,10))}}}}a.placeholder=b(f.placeholder.element.call(a.element,a.currentItem));a.currentItem.after(a.placeholder);f.placeholder.update(a,a.placeholder)},_contactContainers:function(n){for(var o=this.containers.length-1;o&gt;=0;o--){if(this._intersectsWith(this.containers[o].containerCache)){if(!this.containers[o].containerCache.over){if(this.currentContainer!=this.containers[o]){var j=10000;var k=null;var m=this.positionAbs[this.containers[o].floating?&quot;left&quot;:&quot;top&quot;];for(var a=this.items.length-1;a&gt;=0;a--){if(!b.ui.contains(this.containers[o].element[0],this.items[a].item[0])){continue}var l=this.items[a][this.containers[o].floating?&quot;left&quot;:&quot;top&quot;];if(Math.abs(l-m)&lt;j){j=Math.abs(l-m);k=this.items[a]}}if(!k&amp;&amp;!this.options.dropOnEmpty){continue}this.currentContainer=this.containers[o];k?this._rearrange(n,k,null,true):this._rearrange(n,null,this.containers[o].element,true);this._trigger(&quot;change&quot;,n,this._uiHash());this.containers[o]._trigger(&quot;change&quot;,n,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder)}this.containers[o]._trigger(&quot;over&quot;,n,this._uiHash(this));this.containers[o].containerCache.over=1}}else{if(this.containers[o].containerCache.over){this.containers[o]._trigger(&quot;out&quot;,n,this._uiHash(this));this.containers[o].containerCache.over=0}}}},_createHelper:function(f){var e=this.options;var a=b.isFunction(e.helper)?b(e.helper.apply(this.element[0],[f,this.currentItem])):(e.helper==&quot;clone&quot;?this.currentItem.clone():this.currentItem);if(!a.parents(&quot;body&quot;).length){b(e.appendTo!=&quot;parent&quot;?e.appendTo:this.currentItem[0].parentNode)[0].appendChild(a[0])}if(a[0]==this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css(&quot;position&quot;),top:this.currentItem.css(&quot;top&quot;),left:this.currentItem.css(&quot;left&quot;)}}if(a[0].style.width==&quot;&quot;||e.forceHelperSize){a.width(this.currentItem.width())}if(a[0].style.height==&quot;&quot;||e.forceHelperSize){a.height(this.currentItem.height())}return a},_adjustOffsetFromHelper:function(a){if(a.left!=undefined){this.offset.click.left=a.left+this.margins.left}if(a.right!=undefined){this.offset.click.left=this.helperProportions.width-a.right+this.margins.left}if(a.top!=undefined){this.offset.click.top=a.top+this.margins.top}if(a.bottom!=undefined){this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition==&quot;absolute&quot;&amp;&amp;this.scrollParent[0]!=document&amp;&amp;b.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&amp;&amp;this.offsetParent[0].tagName.toLowerCase()==&quot;html&quot;&amp;&amp;b.browser.msie)){a={top:0,left:0}}return{top:a.top+(parseInt(this.offsetParent.css(&quot;borderTopWidth&quot;),10)||0),left:a.left+(parseInt(this.offsetParent.css(&quot;borderLeftWidth&quot;),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==&quot;relative&quot;){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css(&quot;top&quot;),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css(&quot;left&quot;),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.currentItem.css(&quot;marginLeft&quot;),10)||0),top:(parseInt(this.currentItem.css(&quot;marginTop&quot;),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var f=this.options;if(f.containment==&quot;parent&quot;){f.containment=this.helper[0].parentNode}if(f.containment==&quot;document&quot;||f.containment==&quot;window&quot;){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(f.containment==&quot;document&quot;?document:window).width()-this.helperProportions.width-this.margins.left,(b(f.containment==&quot;document&quot;?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(f.containment)){var h=b(f.containment)[0];var g=b(f.containment).offset();var a=(b(h).css(&quot;overflow&quot;)!=&quot;hidden&quot;);this.containment=[g.left+(parseInt(b(h).css(&quot;borderLeftWidth&quot;),10)||0)+(parseInt(b(h).css(&quot;paddingLeft&quot;),10)||0)-this.margins.left,g.top+(parseInt(b(h).css(&quot;borderTopWidth&quot;),10)||0)+(parseInt(b(h).css(&quot;paddingTop&quot;),10)||0)-this.margins.top,g.left+(a?Math.max(h.scrollWidth,h.offsetWidth):h.offsetWidth)-(parseInt(b(h).css(&quot;borderLeftWidth&quot;),10)||0)-(parseInt(b(h).css(&quot;paddingRight&quot;),10)||0)-this.helperProportions.width-this.margins.left,g.top+(a?Math.max(h.scrollHeight,h.offsetHeight):h.offsetHeight)-(parseInt(b(h).css(&quot;borderTopWidth&quot;),10)||0)-(parseInt(b(h).css(&quot;paddingBottom&quot;),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(k,d){if(!d){d=this.position}var m=k==&quot;absolute&quot;?1:-1;var l=this.options,a=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,j=(/(html|body)/i).test(a[0].tagName);return{top:(d.top+this.offset.relative.top*m+this.offset.parent.top*m-(b.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():(j?0:a.scrollTop()))*m)),left:(d.left+this.offset.relative.left*m+this.offset.parent.left*m-(b.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():j?0:a.scrollLeft())*m))}},_generatePosition:function(n){var k=this.options,a=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,j=(/(html|body)/i).test(a[0].tagName);if(this.cssPosition==&quot;relative&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var o=n.pageX;var p=n.pageY;if(this.originalPosition){if(this.containment){if(n.pageX-this.offset.click.left&lt;this.containment[0]){o=this.containment[0]+this.offset.click.left}if(n.pageY-this.offset.click.top&lt;this.containment[1]){p=this.containment[1]+this.offset.click.top}if(n.pageX-this.offset.click.left&gt;this.containment[2]){o=this.containment[2]+this.offset.click.left}if(n.pageY-this.offset.click.top&gt;this.containment[3]){p=this.containment[3]+this.offset.click.top}}if(k.grid){var l=this.originalPageY+Math.round((p-this.originalPageY)/k.grid[1])*k.grid[1];p=this.containment?(!(l-this.offset.click.top&lt;this.containment[1]||l-this.offset.click.top&gt;this.containment[3])?l:(!(l-this.offset.click.top&lt;this.containment[1])?l-k.grid[1]:l+k.grid[1])):l;var m=this.originalPageX+Math.round((o-this.originalPageX)/k.grid[0])*k.grid[0];o=this.containment?(!(m-this.offset.click.left&lt;this.containment[0]||m-this.offset.click.left&gt;this.containment[2])?m:(!(m-this.offset.click.left&lt;this.containment[0])?m-k.grid[0]:m+k.grid[0])):m}}return{top:(p-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():(j?0:a.scrollTop())))),left:(o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():j?0:a.scrollLeft())))}},_rearrange:function(h,j,m,k){m?m[0].appendChild(this.placeholder[0]):j.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction==&quot;down&quot;?j.item[0]:j.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var l=this,a=this.counter;window.setTimeout(function(){if(a==l.counter){l.refreshPositions(!k)}},0)},_clear:function(j,h){this.reverting=false;var g=[],a=this;if(!this._noFinalSort&amp;&amp;this.currentItem[0].parentNode){this.placeholder.before(this.currentItem)}this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var k in this._storedCSS){if(this._storedCSS[k]==&quot;auto&quot;||this._storedCSS[k]==&quot;static&quot;){this._storedCSS[k]=&quot;&quot;}}this.currentItem.css(this._storedCSS).removeClass(&quot;ui-sortable-helper&quot;)}else{this.currentItem.show()}if(this.fromOutside&amp;&amp;!h){g.push(function(c){this._trigger(&quot;receive&quot;,c,this._uiHash(this.fromOutside))})}if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(&quot;.ui-sortable-helper&quot;)[0]||this.domPosition.parent!=this.currentItem.parent()[0])&amp;&amp;!h){g.push(function(c){this._trigger(&quot;update&quot;,c,this._uiHash())})}if(!b.ui.contains(this.element[0],this.currentItem[0])){if(!h){g.push(function(c){this._trigger(&quot;remove&quot;,c,this._uiHash())})}for(var k=this.containers.length-1;k&gt;=0;k--){if(b.ui.contains(this.containers[k].element[0],this.currentItem[0])&amp;&amp;!h){g.push((function(c){return function(d){c._trigger(&quot;receive&quot;,d,this._uiHash(this))}}).call(this,this.containers[k]));g.push((function(c){return function(d){c._trigger(&quot;update&quot;,d,this._uiHash(this))}}).call(this,this.containers[k]))}}}for(var k=this.containers.length-1;k&gt;=0;k--){if(!h){g.push((function(c){return function(d){c._trigger(&quot;deactivate&quot;,d,this._uiHash(this))}}).call(this,this.containers[k]))}if(this.containers[k].containerCache.over){g.push((function(c){return function(d){c._trigger(&quot;out&quot;,d,this._uiHash(this))}}).call(this,this.containers[k]));this.containers[k].containerCache.over=0}}if(this._storedCursor){b(&quot;body&quot;).css(&quot;cursor&quot;,this._storedCursor)}if(this._storedOpacity){this.helper.css(&quot;opacity&quot;,this._storedOpacity)}if(this._storedZIndex){this.helper.css(&quot;zIndex&quot;,this._storedZIndex==&quot;auto&quot;?&quot;&quot;:this._storedZIndex)}this.dragging=false;if(this.cancelHelperRemoval){if(!h){this._trigger(&quot;beforeStop&quot;,j,this._uiHash());for(var k=0;k&lt;g.length;k++){g[k].call(this,j)}this._trigger(&quot;stop&quot;,j,this._uiHash())}return false}if(!h){this._trigger(&quot;beforeStop&quot;,j,this._uiHash())}this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.helper[0]!=this.currentItem[0]){this.helper.remove()}this.helper=null;if(!h){for(var k=0;k&lt;g.length;k++){g[k].call(this,j)}this._trigger(&quot;stop&quot;,j,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){if(b.widget.prototype._trigger.apply(this,arguments)===false){this.cancel()}},_uiHash:function(d){var a=d||this;return{helper:a.helper,placeholder:a.placeholder||b([]),position:a.position,absolutePosition:a.positionAbs,offset:a.positionAbs,item:a.currentItem,sender:d?d.element:null}}}));b.extend(b.ui.sortable,{getter:&quot;serialize toArray&quot;,version:&quot;1.7.1&quot;,eventPrefix:&quot;sort&quot;,defaults:{appendTo:&quot;parent&quot;,axis:false,cancel:&quot;:input,option&quot;,connectWith:false,containment:false,cursor:&quot;auto&quot;,cursorAt:false,delay:0,distance:1,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:&quot;original&quot;,items:&quot;&gt; *&quot;,opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:&quot;default&quot;,tolerance:&quot;intersect&quot;,zIndex:1000}})})(jQuery);(function(b){b.widget(&quot;ui.accordion&quot;,{_init:function(){var e=this.options,a=this;this.running=0;if(e.collapsible==b.ui.accordion.defaults.collapsible&amp;&amp;e.alwaysOpen!=b.ui.accordion.defaults.alwaysOpen){e.collapsible=!e.alwaysOpen}if(e.navigation){var f=this.element.find(&quot;a&quot;).filter(e.navigationFilter);if(f.length){if(f.filter(e.header).length){this.active=f}else{this.active=f.parent().parent().prev();f.addClass(&quot;ui-accordion-content-active&quot;)}}}this.element.addClass(&quot;ui-accordion ui-widget ui-helper-reset&quot;);if(this.element[0].nodeName==&quot;UL&quot;){this.element.children(&quot;li&quot;).addClass(&quot;ui-accordion-li-fix&quot;)}this.headers=this.element.find(e.header).addClass(&quot;ui-accordion-header ui-helper-reset ui-state-default ui-corner-all&quot;).bind(&quot;mouseenter.accordion&quot;,function(){b(this).addClass(&quot;ui-state-hover&quot;)}).bind(&quot;mouseleave.accordion&quot;,function(){b(this).removeClass(&quot;ui-state-hover&quot;)}).bind(&quot;focus.accordion&quot;,function(){b(this).addClass(&quot;ui-state-focus&quot;)}).bind(&quot;blur.accordion&quot;,function(){b(this).removeClass(&quot;ui-state-focus&quot;)});this.headers.next().addClass(&quot;ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom&quot;);this.active=this._findActive(this.active||e.active).toggleClass(&quot;ui-state-default&quot;).toggleClass(&quot;ui-state-active&quot;).toggleClass(&quot;ui-corner-all&quot;).toggleClass(&quot;ui-corner-top&quot;);this.active.next().addClass(&quot;ui-accordion-content-active&quot;);b(&quot;&lt;span/&gt;&quot;).addClass(&quot;ui-icon &quot;+e.icons.header).prependTo(this.headers);this.active.find(&quot;.ui-icon&quot;).toggleClass(e.icons.header).toggleClass(e.icons.headerSelected);if(b.browser.msie){this.element.find(&quot;a&quot;).css(&quot;zoom&quot;,&quot;1&quot;)}this.resize();this.element.attr(&quot;role&quot;,&quot;tablist&quot;);this.headers.attr(&quot;role&quot;,&quot;tab&quot;).bind(&quot;keydown&quot;,function(c){return a._keydown(c)}).next().attr(&quot;role&quot;,&quot;tabpanel&quot;);this.headers.not(this.active||&quot;&quot;).attr(&quot;aria-expanded&quot;,&quot;false&quot;).attr(&quot;tabIndex&quot;,&quot;-1&quot;).next().hide();if(!this.active.length){this.headers.eq(0).attr(&quot;tabIndex&quot;,&quot;0&quot;)}else{this.active.attr(&quot;aria-expanded&quot;,&quot;true&quot;).attr(&quot;tabIndex&quot;,&quot;0&quot;)}if(!b.browser.safari){this.headers.find(&quot;a&quot;).attr(&quot;tabIndex&quot;,&quot;-1&quot;)}if(e.event){this.headers.bind((e.event)+&quot;.accordion&quot;,function(c){return a._clickHandler.call(a,c,this)})}},destroy:function(){var d=this.options;this.element.removeClass(&quot;ui-accordion ui-widget ui-helper-reset&quot;).removeAttr(&quot;role&quot;).unbind(&quot;.accordion&quot;).removeData(&quot;accordion&quot;);this.headers.unbind(&quot;.accordion&quot;).removeClass(&quot;ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top&quot;).removeAttr(&quot;role&quot;).removeAttr(&quot;aria-expanded&quot;).removeAttr(&quot;tabindex&quot;);this.headers.find(&quot;a&quot;).removeAttr(&quot;tabindex&quot;);this.headers.children(&quot;.ui-icon&quot;).remove();var a=this.headers.next().css(&quot;display&quot;,&quot;&quot;).removeAttr(&quot;role&quot;).removeClass(&quot;ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active&quot;);if(d.autoHeight||d.fillHeight){a.css(&quot;height&quot;,&quot;&quot;)}},_setData:function(a,d){if(a==&quot;alwaysOpen&quot;){a=&quot;collapsible&quot;;d=!d}b.widget.prototype._setData.apply(this,arguments)},_keydown:function(k){var h=this.options,j=b.ui.keyCode;if(h.disabled||k.altKey||k.ctrlKey){return}var l=this.headers.length;var a=this.headers.index(k.target);var m=false;switch(k.keyCode){case j.RIGHT:case j.DOWN:m=this.headers[(a+1)%l];break;case j.LEFT:case j.UP:m=this.headers[(a-1+l)%l];break;case j.SPACE:case j.ENTER:return this._clickHandler({target:k.target},k.target)}if(m){b(k.target).attr(&quot;tabIndex&quot;,&quot;-1&quot;);b(m).attr(&quot;tabIndex&quot;,&quot;0&quot;);m.focus();return false}return true},resize:function(){var f=this.options,g;if(f.fillSpace){if(b.browser.msie){var a=this.element.parent().css(&quot;overflow&quot;);this.element.parent().css(&quot;overflow&quot;,&quot;hidden&quot;)}g=this.element.parent().height();if(b.browser.msie){this.element.parent().css(&quot;overflow&quot;,a)}this.headers.each(function(){g-=b(this).outerHeight()});var h=0;this.headers.next().each(function(){h=Math.max(h,b(this).innerHeight()-b(this).height())}).height(Math.max(0,g-h)).css(&quot;overflow&quot;,&quot;auto&quot;)}else{if(f.autoHeight){g=0;this.headers.next().each(function(){g=Math.max(g,b(this).outerHeight())}).height(g)}}},activate:function(a){var d=this._findActive(a)[0];this._clickHandler({target:d},d)},_findActive:function(a){return a?typeof a==&quot;number&quot;?this.headers.filter(&quot;:eq(&quot;+a+&quot;)&quot;):this.headers.not(this.headers.not(a)):a===false?b([]):this.headers.filter(&quot;:eq(0)&quot;)},_clickHandler:function(r,n){var p=this.options;if(p.disabled){return false}if(!r.target&amp;&amp;p.collapsible){this.active.removeClass(&quot;ui-state-active ui-corner-top&quot;).addClass(&quot;ui-state-default ui-corner-all&quot;).find(&quot;.ui-icon&quot;).removeClass(p.icons.headerSelected).addClass(p.icons.header);this.active.next().addClass(&quot;ui-accordion-content-active&quot;);var l=this.active.next(),o={options:p,newHeader:b([]),oldHeader:p.active,newContent:b([]),oldContent:l},q=(this.active=b([]));this._toggle(q,l,o);return false}var m=b(r.currentTarget||n);var k=m[0]==this.active[0];if(this.running||(!p.collapsible&amp;&amp;k)){return false}this.active.removeClass(&quot;ui-state-active ui-corner-top&quot;).addClass(&quot;ui-state-default ui-corner-all&quot;).find(&quot;.ui-icon&quot;).removeClass(p.icons.headerSelected).addClass(p.icons.header);this.active.next().addClass(&quot;ui-accordion-content-active&quot;);if(!k){m.removeClass(&quot;ui-state-default ui-corner-all&quot;).addClass(&quot;ui-state-active ui-corner-top&quot;).find(&quot;.ui-icon&quot;).removeClass(p.icons.header).addClass(p.icons.headerSelected);m.next().addClass(&quot;ui-accordion-content-active&quot;)}var q=m.next(),l=this.active.next(),o={options:p,newHeader:k&amp;&amp;p.collapsible?b([]):m,oldHeader:this.active,newContent:k&amp;&amp;p.collapsible?b([]):q.find(&quot;&gt; *&quot;),oldContent:l.find(&quot;&gt; *&quot;)},a=this.headers.index(this.active[0])&gt;this.headers.index(m[0]);this.active=k?b([]):m;this._toggle(q,l,o,k,a);return false},_toggle:function(z,q,u,p,o){var x=this.options,a=this;this.toShow=z;this.toHide=q;this.data=u;var y=function(){if(!a){return}return a._completed.apply(a,arguments)};this._trigger(&quot;changestart&quot;,null,this.data);this.running=q.size()===0?z.size():q.size();if(x.animated){var v={};if(x.collapsible&amp;&amp;p){v={toShow:b([]),toHide:q,complete:y,down:o,autoHeight:x.autoHeight||x.fillSpace}}else{v={toShow:z,toHide:q,complete:y,down:o,autoHeight:x.autoHeight||x.fillSpace}}if(!x.proxied){x.proxied=x.animated}if(!x.proxiedDuration){x.proxiedDuration=x.duration}x.animated=b.isFunction(x.proxied)?x.proxied(v):x.proxied;x.duration=b.isFunction(x.proxiedDuration)?x.proxiedDuration(v):x.proxiedDuration;var n=b.ui.accordion.animations,w=x.duration,r=x.animated;if(!n[r]){n[r]=function(c){this.slide(c,{easing:r,duration:w||700})}}n[r](v)}else{if(x.collapsible&amp;&amp;p){z.toggle()}else{q.hide();z.show()}y(true)}q.prev().attr(&quot;aria-expanded&quot;,&quot;false&quot;).attr(&quot;tabIndex&quot;,&quot;-1&quot;).blur();z.prev().attr(&quot;aria-expanded&quot;,&quot;true&quot;).attr(&quot;tabIndex&quot;,&quot;0&quot;).focus()},_completed:function(a){var d=this.options;this.running=a?0:--this.running;if(this.running){return}if(d.clearStyle){this.toShow.add(this.toHide).css({height:&quot;&quot;,overflow:&quot;&quot;})}this._trigger(&quot;change&quot;,null,this.data)}});b.extend(b.ui.accordion,{version:&quot;1.7.1&quot;,defaults:{active:null,alwaysOpen:true,animated:&quot;slide&quot;,autoHeight:true,clearStyle:false,collapsible:false,event:&quot;click&quot;,fillSpace:false,header:&quot;&gt; li &gt; :first-child,&gt; :not(li):even&quot;,icons:{header:&quot;ui-icon-triangle-1-e&quot;,headerSelected:&quot;ui-icon-triangle-1-s&quot;},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(a,l){a=b.extend({easing:&quot;swing&quot;,duration:300},a,l);if(!a.toHide.size()){a.toShow.animate({height:&quot;show&quot;},a);return}if(!a.toShow.size()){a.toHide.animate({height:&quot;hide&quot;},a);return}var q=a.toShow.css(&quot;overflow&quot;),m,p={},n={},o=[&quot;height&quot;,&quot;paddingTop&quot;,&quot;paddingBottom&quot;],r;var k=a.toShow;r=k[0].style.width;k.width(parseInt(k.parent().width(),10)-parseInt(k.css(&quot;paddingLeft&quot;),10)-parseInt(k.css(&quot;paddingRight&quot;),10)-(parseInt(k.css(&quot;borderLeftWidth&quot;),10)||0)-(parseInt(k.css(&quot;borderRightWidth&quot;),10)||0));b.each(o,function(e,c){n[c]=&quot;hide&quot;;var d=(&quot;&quot;+b.css(a.toShow[0],c)).match(/^([\d+-.]+)(.*)$/);p[c]={value:d[1],unit:d[2]||&quot;px&quot;}});a.toShow.css({height:0,overflow:&quot;hidden&quot;}).show();a.toHide.filter(&quot;:hidden&quot;).each(a.complete).end().filter(&quot;:visible&quot;).animate(n,{step:function(d,c){if(c.prop==&quot;height&quot;){m=(c.now-c.start)/(c.end-c.start)}a.toShow[0].style[c.prop]=(m*p[c.prop].value)+p[c.prop].unit},duration:a.duration,easing:a.easing,complete:function(){if(!a.autoHeight){a.toShow.css(&quot;height&quot;,&quot;&quot;)}a.toShow.css(&quot;width&quot;,r);a.toShow.css({overflow:q});a.complete()}})},bounceslide:function(a){this.slide(a,{easing:a.down?&quot;easeOutBounce&quot;:&quot;swing&quot;,duration:a.down?1000:200})},easeslide:function(a){this.slide(a,{easing:&quot;easeinout&quot;,duration:700})}}})})(jQuery);(function(f){var d={dragStart:&quot;start.draggable&quot;,drag:&quot;drag.draggable&quot;,dragStop:&quot;stop.draggable&quot;,maxHeight:&quot;maxHeight.resizable&quot;,minHeight:&quot;minHeight.resizable&quot;,maxWidth:&quot;maxWidth.resizable&quot;,minWidth:&quot;minWidth.resizable&quot;,resizeStart:&quot;start.resizable&quot;,resize:&quot;drag.resizable&quot;,resizeStop:&quot;stop.resizable&quot;},e=&quot;ui-dialog ui-widget ui-widget-content ui-corner-all &quot;;f.widget(&quot;ui.dialog&quot;,{_init:function(){this.originalTitle=this.element.attr(&quot;title&quot;);var b=this,a=this.options,n=a.title||this.originalTitle||&quot;&amp;nbsp;&quot;,u=f.ui.dialog.getTitleId(this.element),c=(this.uiDialog=f(&quot;&lt;div/&gt;&quot;)).appendTo(document.body).hide().addClass(e+a.dialogClass).css({position:&quot;absolute&quot;,overflow:&quot;hidden&quot;,zIndex:a.zIndex}).attr(&quot;tabIndex&quot;,-1).css(&quot;outline&quot;,0).keydown(function(g){(a.closeOnEscape&amp;&amp;g.keyCode&amp;&amp;g.keyCode==f.ui.keyCode.ESCAPE&amp;&amp;b.close(g))}).attr({role:&quot;dialog&quot;,&quot;aria-labelledby&quot;:u}).mousedown(function(g){b.moveToTop(false,g)}),q=this.element.show().removeAttr(&quot;title&quot;).addClass(&quot;ui-dialog-content ui-widget-content&quot;).appendTo(c),r=(this.uiDialogTitlebar=f(&quot;&lt;div&gt;&lt;/div&gt;&quot;)).addClass(&quot;ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix&quot;).prependTo(c),o=f('&lt;a href=&quot;#&quot;/&gt;').addClass(&quot;ui-dialog-titlebar-close ui-corner-all&quot;).attr(&quot;role&quot;,&quot;button&quot;).hover(function(){o.addClass(&quot;ui-state-hover&quot;)},function(){o.removeClass(&quot;ui-state-hover&quot;)}).focus(function(){o.addClass(&quot;ui-state-focus&quot;)}).blur(function(){o.removeClass(&quot;ui-state-focus&quot;)}).mousedown(function(g){g.stopPropagation()}).click(function(g){b.close(g);return false}).appendTo(r),p=(this.uiDialogTitlebarCloseText=f(&quot;&lt;span/&gt;&quot;)).addClass(&quot;ui-icon ui-icon-closethick&quot;).text(a.closeText).appendTo(o),v=f(&quot;&lt;span/&gt;&quot;).addClass(&quot;ui-dialog-title&quot;).attr(&quot;id&quot;,u).html(n).prependTo(r);r.find(&quot;*&quot;).add(r).disableSelection();(a.draggable&amp;&amp;f.fn.draggable&amp;&amp;this._makeDraggable());(a.resizable&amp;&amp;f.fn.resizable&amp;&amp;this._makeResizable());this._createButtons(a.buttons);this._isOpen=false;(a.bgiframe&amp;&amp;f.fn.bgiframe&amp;&amp;c.bgiframe());(a.autoOpen&amp;&amp;this.open())},destroy:function(){(this.overlay&amp;&amp;this.overlay.destroy());this.uiDialog.hide();this.element.unbind(&quot;.dialog&quot;).removeData(&quot;dialog&quot;).removeClass(&quot;ui-dialog-content ui-widget-content&quot;).hide().appendTo(&quot;body&quot;);this.uiDialog.remove();(this.originalTitle&amp;&amp;this.element.attr(&quot;title&quot;,this.originalTitle))},close:function(a){var b=this;if(false===b._trigger(&quot;beforeclose&quot;,a)){return}(b.overlay&amp;&amp;b.overlay.destroy());b.uiDialog.unbind(&quot;keypress.ui-dialog&quot;);(b.options.hide?b.uiDialog.hide(b.options.hide,function(){b._trigger(&quot;close&quot;,a)}):b.uiDialog.hide()&amp;&amp;b._trigger(&quot;close&quot;,a));f.ui.dialog.overlay.resize();b._isOpen=false},isOpen:function(){return this._isOpen},moveToTop:function(a,b){if((this.options.modal&amp;&amp;!a)||(!this.options.stack&amp;&amp;!this.options.modal)){return this._trigger(&quot;focus&quot;,b)}if(this.options.zIndex&gt;f.ui.dialog.maxZ){f.ui.dialog.maxZ=this.options.zIndex}(this.overlay&amp;&amp;this.overlay.$el.css(&quot;z-index&quot;,f.ui.dialog.overlay.maxZ=++f.ui.dialog.maxZ));var c={scrollTop:this.element.attr(&quot;scrollTop&quot;),scrollLeft:this.element.attr(&quot;scrollLeft&quot;)};this.uiDialog.css(&quot;z-index&quot;,++f.ui.dialog.maxZ);this.element.attr(c);this._trigger(&quot;focus&quot;,b)},open:function(){if(this._isOpen){return}var a=this.options,b=this.uiDialog;this.overlay=a.modal?new f.ui.dialog.overlay(this):null;(b.next().length&amp;&amp;b.appendTo(&quot;body&quot;));this._size();this._position(a.position);b.show(a.show);this.moveToTop(true);(a.modal&amp;&amp;b.bind(&quot;keypress.ui-dialog&quot;,function(j){if(j.keyCode!=f.ui.keyCode.TAB){return}var k=f(&quot;:tabbable&quot;,this),c=k.filter(&quot;:first&quot;)[0],l=k.filter(&quot;:last&quot;)[0];if(j.target==l&amp;&amp;!j.shiftKey){setTimeout(function(){c.focus()},1)}else{if(j.target==c&amp;&amp;j.shiftKey){setTimeout(function(){l.focus()},1)}}}));f([]).add(b.find(&quot;.ui-dialog-content :tabbable:first&quot;)).add(b.find(&quot;.ui-dialog-buttonpane :tabbable:first&quot;)).add(b).filter(&quot;:first&quot;).focus();this._trigger(&quot;open&quot;);this._isOpen=true},_createButtons:function(a){var b=this,h=false,c=f(&quot;&lt;div&gt;&lt;/div&gt;&quot;).addClass(&quot;ui-dialog-buttonpane ui-widget-content ui-helper-clearfix&quot;);this.uiDialog.find(&quot;.ui-dialog-buttonpane&quot;).remove();(typeof a==&quot;object&quot;&amp;&amp;a!==null&amp;&amp;f.each(a,function(){return !(h=true)}));if(h){f.each(a,function(j,g){f('&lt;button type=&quot;button&quot;&gt;&lt;/button&gt;').addClass(&quot;ui-state-default ui-corner-all&quot;).text(j).click(function(){g.apply(b.element[0],arguments)}).hover(function(){f(this).addClass(&quot;ui-state-hover&quot;)},function(){f(this).removeClass(&quot;ui-state-hover&quot;)}).focus(function(){f(this).addClass(&quot;ui-state-focus&quot;)}).blur(function(){f(this).removeClass(&quot;ui-state-focus&quot;)}).appendTo(c)});c.appendTo(this.uiDialog)}},_makeDraggable:function(){var c=this,a=this.options,b;this.uiDialog.draggable({cancel:&quot;.ui-dialog-content&quot;,handle:&quot;.ui-dialog-titlebar&quot;,containment:&quot;document&quot;,start:function(){b=a.height;f(this).height(f(this).height()).addClass(&quot;ui-dialog-dragging&quot;);(a.dragStart&amp;&amp;a.dragStart.apply(c.element[0],arguments))},drag:function(){(a.drag&amp;&amp;a.drag.apply(c.element[0],arguments))},stop:function(){f(this).removeClass(&quot;ui-dialog-dragging&quot;).height(b);(a.dragStop&amp;&amp;a.dragStop.apply(c.element[0],arguments));f.ui.dialog.overlay.resize()}})},_makeResizable:function(a){a=(a===undefined?this.options.resizable:a);var h=this,b=this.options,c=typeof a==&quot;string&quot;?a:&quot;n,e,s,w,se,sw,ne,nw&quot;;this.uiDialog.resizable({cancel:&quot;.ui-dialog-content&quot;,alsoResize:this.element,maxWidth:b.maxWidth,maxHeight:b.maxHeight,minWidth:b.minWidth,minHeight:b.minHeight,start:function(){f(this).addClass(&quot;ui-dialog-resizing&quot;);(b.resizeStart&amp;&amp;b.resizeStart.apply(h.element[0],arguments))},resize:function(){(b.resize&amp;&amp;b.resize.apply(h.element[0],arguments))},handles:c,stop:function(){f(this).removeClass(&quot;ui-dialog-resizing&quot;);b.height=f(this).height();b.width=f(this).width();(b.resizeStop&amp;&amp;b.resizeStop.apply(h.element[0],arguments));f.ui.dialog.overlay.resize()}}).find(&quot;.ui-resizable-se&quot;).addClass(&quot;ui-icon ui-icon-grip-diagonal-se&quot;)},_position:function(a){var k=f(window),j=f(document),c=j.scrollTop(),l=j.scrollLeft(),b=c;if(f.inArray(a,[&quot;center&quot;,&quot;top&quot;,&quot;right&quot;,&quot;bottom&quot;,&quot;left&quot;])&gt;=0){a=[a==&quot;right&quot;||a==&quot;left&quot;?a:&quot;center&quot;,a==&quot;top&quot;||a==&quot;bottom&quot;?a:&quot;middle&quot;]}if(a.constructor!=Array){a=[&quot;center&quot;,&quot;middle&quot;]}if(a[0].constructor==Number){l+=a[0]}else{switch(a[0]){case&quot;left&quot;:l+=0;break;case&quot;right&quot;:l+=k.width()-this.uiDialog.outerWidth();break;default:case&quot;center&quot;:l+=(k.width()-this.uiDialog.outerWidth())/2}}if(a[1].constructor==Number){c+=a[1]}else{switch(a[1]){case&quot;top&quot;:c+=0;break;case&quot;bottom&quot;:c+=k.height()-this.uiDialog.outerHeight();break;default:case&quot;middle&quot;:c+=(k.height()-this.uiDialog.outerHeight())/2}}c=Math.max(c,b);this.uiDialog.css({top:c,left:l})},_setData:function(c,b){(d[c]&amp;&amp;this.uiDialog.data(d[c],b));switch(c){case&quot;buttons&quot;:this._createButtons(b);break;case&quot;closeText&quot;:this.uiDialogTitlebarCloseText.text(b);break;case&quot;dialogClass&quot;:this.uiDialog.removeClass(this.options.dialogClass).addClass(e+b);break;case&quot;draggable&quot;:(b?this._makeDraggable():this.uiDialog.draggable(&quot;destroy&quot;));break;case&quot;height&quot;:this.uiDialog.height(b);break;case&quot;position&quot;:this._position(b);break;case&quot;resizable&quot;:var h=this.uiDialog,a=this.uiDialog.is(&quot;:data(resizable)&quot;);(a&amp;&amp;!b&amp;&amp;h.resizable(&quot;destroy&quot;));(a&amp;&amp;typeof b==&quot;string&quot;&amp;&amp;h.resizable(&quot;option&quot;,&quot;handles&quot;,b));(a||this._makeResizable(b));break;case&quot;title&quot;:f(&quot;.ui-dialog-title&quot;,this.uiDialogTitlebar).html(b||&quot;&amp;nbsp;&quot;);break;case&quot;width&quot;:this.uiDialog.width(b);break}f.widget.prototype._setData.apply(this,arguments)},_size:function(){var a=this.options;this.element.css({height:0,minHeight:0,width:&quot;auto&quot;});var b=this.uiDialog.css({height:&quot;auto&quot;,width:a.width}).height();this.element.css({minHeight:Math.max(a.minHeight-b,0),height:a.height==&quot;auto&quot;?&quot;auto&quot;:Math.max(a.height-b,0)})}});f.extend(f.ui.dialog,{version:&quot;1.7.1&quot;,defaults:{autoOpen:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:&quot;close&quot;,dialogClass:&quot;&quot;,draggable:true,hide:null,height:&quot;auto&quot;,maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:&quot;center&quot;,resizable:true,show:null,stack:true,title:&quot;&quot;,width:300,zIndex:1000},getter:&quot;isOpen&quot;,uuid:0,maxZ:0,getTitleId:function(a){return&quot;ui-dialog-title-&quot;+(a.attr(&quot;id&quot;)||++this.uuid)},overlay:function(a){this.$el=f.ui.dialog.overlay.create(a)}});f.extend(f.ui.dialog.overlay,{instances:[],maxZ:0,events:f.map(&quot;focus,mousedown,mouseup,keydown,keypress,click&quot;.split(&quot;,&quot;),function(a){return a+&quot;.dialog-overlay&quot;}).join(&quot; &quot;),create:function(a){if(this.instances.length===0){setTimeout(function(){f(document).bind(f.ui.dialog.overlay.events,function(h){var c=f(h.target).parents(&quot;.ui-dialog&quot;).css(&quot;zIndex&quot;)||0;return(c&gt;f.ui.dialog.overlay.maxZ)})},1);f(document).bind(&quot;keydown.dialog-overlay&quot;,function(c){(a.options.closeOnEscape&amp;&amp;c.keyCode&amp;&amp;c.keyCode==f.ui.keyCode.ESCAPE&amp;&amp;a.close(c))});f(window).bind(&quot;resize.dialog-overlay&quot;,f.ui.dialog.overlay.resize)}var b=f(&quot;&lt;div&gt;&lt;/div&gt;&quot;).appendTo(document.body).addClass(&quot;ui-widget-overlay&quot;).css({width:this.width(),height:this.height()});(a.options.bgiframe&amp;&amp;f.fn.bgiframe&amp;&amp;b.bgiframe());this.instances.push(b);return b},destroy:function(a){this.instances.splice(f.inArray(this.instances,a),1);if(this.instances.length===0){f([document,window]).unbind(&quot;.dialog-overlay&quot;)}a.remove()},height:function(){if(f.browser.msie&amp;&amp;f.browser.version&lt;7){var a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(a&lt;b){return f(window).height()+&quot;px&quot;}else{return a+&quot;px&quot;}}else{return f(document).height()+&quot;px&quot;}},width:function(){if(f.browser.msie&amp;&amp;f.browser.version&lt;7){var b=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var a=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(b&lt;a){return f(window).width()+&quot;px&quot;}else{return b+&quot;px&quot;}}else{return f(document).width()+&quot;px&quot;}},resize:function(){var a=f([]);f.each(f.ui.dialog.overlay.instances,function(){a=a.add(this)});a.css({width:0,height:0}).css({width:f.ui.dialog.overlay.width(),height:f.ui.dialog.overlay.height()})}});f.extend(f.ui.dialog.overlay.prototype,{destroy:function(){f.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);(function(b){b.widget(&quot;ui.slider&quot;,b.extend({},b.ui.mouse,{_init:function(){var a=this,d=this.options;this._keySliding=false;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass(&quot;ui-slider ui-slider-&quot;+this.orientation+&quot; ui-widget ui-widget-content ui-corner-all&quot;);this.range=b([]);if(d.range){if(d.range===true){this.range=b(&quot;&lt;div&gt;&lt;/div&gt;&quot;);if(!d.values){d.values=[this._valueMin(),this._valueMin()]}if(d.values.length&amp;&amp;d.values.length!=2){d.values=[d.values[0],d.values[0]]}}else{this.range=b(&quot;&lt;div&gt;&lt;/div&gt;&quot;)}this.range.appendTo(this.element).addClass(&quot;ui-slider-range&quot;);if(d.range==&quot;min&quot;||d.range==&quot;max&quot;){this.range.addClass(&quot;ui-slider-range-&quot;+d.range)}this.range.addClass(&quot;ui-widget-header&quot;)}if(b(&quot;.ui-slider-handle&quot;,this.element).length==0){b('&lt;a href=&quot;#&quot;&gt;&lt;/a&gt;').appendTo(this.element).addClass(&quot;ui-slider-handle&quot;)}if(d.values&amp;&amp;d.values.length){while(b(&quot;.ui-slider-handle&quot;,this.element).length&lt;d.values.length){b('&lt;a href=&quot;#&quot;&gt;&lt;/a&gt;').appendTo(this.element).addClass(&quot;ui-slider-handle&quot;)}}this.handles=b(&quot;.ui-slider-handle&quot;,this.element).addClass(&quot;ui-state-default ui-corner-all&quot;);this.handle=this.handles.eq(0);this.handles.add(this.range).filter(&quot;a&quot;).click(function(c){c.preventDefault()}).hover(function(){b(this).addClass(&quot;ui-state-hover&quot;)},function(){b(this).removeClass(&quot;ui-state-hover&quot;)}).focus(function(){b(&quot;.ui-slider .ui-state-focus&quot;).removeClass(&quot;ui-state-focus&quot;);b(this).addClass(&quot;ui-state-focus&quot;)}).blur(function(){b(this).removeClass(&quot;ui-state-focus&quot;)});this.handles.each(function(c){b(this).data(&quot;index.ui-slider-handle&quot;,c)});this.handles.keydown(function(c){var l=true;var m=b(this).data(&quot;index.ui-slider-handle&quot;);if(a.options.disabled){return}switch(c.keyCode){case b.ui.keyCode.HOME:case b.ui.keyCode.END:case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:l=false;if(!a._keySliding){a._keySliding=true;b(this).addClass(&quot;ui-state-active&quot;);a._start(c,m)}break}var k,n,j=a._step();if(a.options.values&amp;&amp;a.options.values.length){k=n=a.values(m)}else{k=n=a.value()}switch(c.keyCode){case b.ui.keyCode.HOME:n=a._valueMin();break;case b.ui.keyCode.END:n=a._valueMax();break;case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:if(k==a._valueMax()){return}n=k+j;break;case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:if(k==a._valueMin()){return}n=k-j;break}a._slide(c,m,n);return l}).keyup(function(c){var f=b(this).data(&quot;index.ui-slider-handle&quot;);if(a._keySliding){a._stop(c,f);a._change(c,f);a._keySliding=false;b(this).removeClass(&quot;ui-state-active&quot;)}});this._refreshValue()},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass(&quot;ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all&quot;).removeData(&quot;slider&quot;).unbind(&quot;.slider&quot;);this._mouseDestroy()},_mouseCapture:function(r){var q=this.options;if(q.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();var n={x:r.pageX,y:r.pageY};var l=this._normValueFromMouse(n);var u=this._valueMax()-this._valueMin()+1,p;var a=this,m;this.handles.each(function(d){var c=Math.abs(l-a.values(d));if(u&gt;c){u=c;p=b(this);m=d}});if(q.range==true&amp;&amp;this.values(1)==q.min){p=b(this.handles[++m])}this._start(r,m);a._handleIndex=m;p.addClass(&quot;ui-state-active&quot;).focus();var o=p.offset();var v=!b(r.target).parents().andSelf().is(&quot;.ui-slider-handle&quot;);this._clickOffset=v?{left:0,top:0}:{left:r.pageX-o.left-(p.width()/2),top:r.pageY-o.top-(p.height()/2)-(parseInt(p.css(&quot;borderTopWidth&quot;),10)||0)-(parseInt(p.css(&quot;borderBottomWidth&quot;),10)||0)+(parseInt(p.css(&quot;marginTop&quot;),10)||0)};l=this._normValueFromMouse(n);this._slide(r,m,l);return true},_mouseStart:function(a){return true},_mouseDrag:function(e){var a={x:e.pageX,y:e.pageY};var f=this._normValueFromMouse(a);this._slide(e,this._handleIndex,f);return false},_mouseStop:function(a){this.handles.removeClass(&quot;ui-state-active&quot;);this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._handleIndex=null;this._clickOffset=null;return false},_detectOrientation:function(){this.orientation=this.options.orientation==&quot;vertical&quot;?&quot;vertical&quot;:&quot;horizontal&quot;},_normValueFromMouse:function(o){var p,k;if(&quot;horizontal&quot;==this.orientation){p=this.elementSize.width;k=o.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{p=this.elementSize.height;k=o.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}var m=(k/p);if(m&gt;1){m=1}if(m&lt;0){m=0}if(&quot;vertical&quot;==this.orientation){m=1-m}var n=this._valueMax()-this._valueMin(),j=m*n,a=j%this.options.step,l=this._valueMin()+j-a;if(a&gt;(this.options.step/2)){l+=this.options.step}return parseFloat(l.toFixed(5))},_start:function(e,f){var a={handle:this.handles[f],value:this.value()};if(this.options.values&amp;&amp;this.options.values.length){a.value=this.values(f);a.values=this.values()}this._trigger(&quot;start&quot;,e,a)},_slide:function(l,m,n){var k=this.handles[m];if(this.options.values&amp;&amp;this.options.values.length){var a=this.values(m?0:1);if((m==0&amp;&amp;n&gt;=a)||(m==1&amp;&amp;n&lt;=a)){n=a}if(n!=this.values(m)){var o=this.values();o[m]=n;var j=this._trigger(&quot;slide&quot;,l,{handle:this.handles[m],value:n,values:o});var a=this.values(m?0:1);if(j!==false){this.values(m,n,(l.type==&quot;mousedown&quot;&amp;&amp;this.options.animate),true)}}}else{if(n!=this.value()){var j=this._trigger(&quot;slide&quot;,l,{handle:this.handles[m],value:n});if(j!==false){this._setData(&quot;value&quot;,n,(l.type==&quot;mousedown&quot;&amp;&amp;this.options.animate))}}}},_stop:function(e,f){var a={handle:this.handles[f],value:this.value()};if(this.options.values&amp;&amp;this.options.values.length){a.value=this.values(f);a.values=this.values()}this._trigger(&quot;stop&quot;,e,a)},_change:function(e,f){var a={handle:this.handles[f],value:this.value()};if(this.options.values&amp;&amp;this.options.values.length){a.value=this.values(f);a.values=this.values()}this._trigger(&quot;change&quot;,e,a)},value:function(a){if(arguments.length){this._setData(&quot;value&quot;,a);this._change(null,0)}return this._value()},values:function(a,f,h,g){if(arguments.length&gt;1){this.options.values[a]=f;this._refreshValue(h);if(!g){this._change(null,a)}}if(arguments.length){if(this.options.values&amp;&amp;this.options.values.length){return this._values(a)}else{return this.value()}}else{return this._values()}},_setData:function(a,e,f){b.widget.prototype._setData.apply(this,arguments);switch(a){case&quot;orientation&quot;:this._detectOrientation();this.element.removeClass(&quot;ui-slider-horizontal ui-slider-vertical&quot;).addClass(&quot;ui-slider-&quot;+this.orientation);this._refreshValue(f);break;case&quot;value&quot;:this._refreshValue(f);break}},_step:function(){var a=this.options.step;return a},_value:function(){var a=this.options.value;if(a&lt;this._valueMin()){a=this._valueMin()}if(a&gt;this._valueMax()){a=this._valueMax()}return a},_values:function(a){if(arguments.length){var d=this.options.values[a];if(d&lt;this._valueMin()){d=this._valueMin()}if(d&gt;this._valueMax()){d=this._valueMax()}return d}else{return this.options.values}},_valueMin:function(){var a=this.options.min;return a},_valueMax:function(){var a=this.options.max;return a},_refreshValue:function(w){var r=this.options.range,v=this.options,a=this;if(this.options.values&amp;&amp;this.options.values.length){var o,p;this.handles.each(function(d,f){var e=(a.values(d)-a._valueMin())/(a._valueMax()-a._valueMin())*100;var c={};c[a.orientation==&quot;horizontal&quot;?&quot;left&quot;:&quot;bottom&quot;]=e+&quot;%&quot;;b(this).stop(1,1)[w?&quot;animate&quot;:&quot;css&quot;](c,v.animate);if(a.options.range===true){if(a.orientation==&quot;horizontal&quot;){(d==0)&amp;&amp;a.range.stop(1,1)[w?&quot;animate&quot;:&quot;css&quot;]({left:e+&quot;%&quot;},v.animate);(d==1)&amp;&amp;a.range[w?&quot;animate&quot;:&quot;css&quot;]({width:(e-lastValPercent)+&quot;%&quot;},{queue:false,duration:v.animate})}else{(d==0)&amp;&amp;a.range.stop(1,1)[w?&quot;animate&quot;:&quot;css&quot;]({bottom:(e)+&quot;%&quot;},v.animate);(d==1)&amp;&amp;a.range[w?&quot;animate&quot;:&quot;css&quot;]({height:(e-lastValPercent)+&quot;%&quot;},{queue:false,duration:v.animate})}}lastValPercent=e})}else{var n=this.value(),q=this._valueMin(),m=this._valueMax(),u=m!=q?(n-q)/(m-q)*100:0;var x={};x[a.orientation==&quot;horizontal&quot;?&quot;left&quot;:&quot;bottom&quot;]=u+&quot;%&quot;;this.handle.stop(1,1)[w?&quot;animate&quot;:&quot;css&quot;](x,v.animate);(r==&quot;min&quot;)&amp;&amp;(this.orientation==&quot;horizontal&quot;)&amp;&amp;this.range.stop(1,1)[w?&quot;animate&quot;:&quot;css&quot;]({width:u+&quot;%&quot;},v.animate);(r==&quot;max&quot;)&amp;&amp;(this.orientation==&quot;horizontal&quot;)&amp;&amp;this.range[w?&quot;animate&quot;:&quot;css&quot;]({width:(100-u)+&quot;%&quot;},{queue:false,duration:v.animate});(r==&quot;min&quot;)&amp;&amp;(this.orientation==&quot;vertical&quot;)&amp;&amp;this.range.stop(1,1)[w?&quot;animate&quot;:&quot;css&quot;]({height:u+&quot;%&quot;},v.animate);(r==&quot;max&quot;)&amp;&amp;(this.orientation==&quot;vertical&quot;)&amp;&amp;this.range[w?&quot;animate&quot;:&quot;css&quot;]({height:(100-u)+&quot;%&quot;},{queue:false,duration:v.animate})}}}));b.extend(b.ui.slider,{getter:&quot;value values&quot;,version:&quot;1.7.1&quot;,eventPrefix:&quot;slide&quot;,defaults:{animate:false,delay:0,distance:0,max:100,min:0,orientation:&quot;horizontal&quot;,range:false,step:1,value:0,values:null}})})(jQuery);(function(b){b.widget(&quot;ui.tabs&quot;,{_init:function(){if(this.options.deselectable!==undefined){this.options.collapsible=this.options.deselectable}this._tabify(true)},_setData:function(a,d){if(a==&quot;selected&quot;){if(this.options.collapsible&amp;&amp;d==this.options.selected){return}this.select(d)}else{this.options[a]=d;if(a==&quot;deselectable&quot;){this.options.collapsible=d}this._tabify()}},_tabId:function(a){return a.title&amp;&amp;a.title.replace(/\s/g,&quot;_&quot;).replace(/[^A-Za-z0-9\-_:\.]/g,&quot;&quot;)||this.options.idPrefix+b.data(a)},_sanitizeSelector:function(a){return a.replace(/:/g,&quot;\\:&quot;)},_cookie:function(){var a=this.cookie||(this.cookie=this.options.cookie.name||&quot;ui-tabs-&quot;+b.data(this.list[0]));return b.cookie.apply(null,[a].concat(b.makeArray(arguments)))},_ui:function(d,a){return{tab:d,panel:a,index:this.anchors.index(d)}},_cleanup:function(){this.lis.filter(&quot;.ui-state-processing&quot;).removeClass(&quot;ui-state-processing&quot;).find(&quot;span:data(label.tabs)&quot;).each(function(){var a=b(this);a.html(a.data(&quot;label.tabs&quot;)).removeData(&quot;label.tabs&quot;)})},_tabify:function(o){this.list=this.element.children(&quot;ul:first&quot;);this.lis=b(&quot;li:has(a[href])&quot;,this.list);this.anchors=this.lis.map(function(){return b(&quot;a&quot;,this)[0]});this.panels=b([]);var a=this,A=this.options;var B=/^#.+/;this.anchors.each(function(g,j){var h=b(j).attr(&quot;href&quot;);var f=h.split(&quot;#&quot;)[0],e;if(f&amp;&amp;(f===location.toString().split(&quot;#&quot;)[0]||(e=b(&quot;base&quot;)[0])&amp;&amp;f===e.href)){h=j.hash;j.href=h}if(B.test(h)){a.panels=a.panels.add(a._sanitizeSelector(h))}else{if(h!=&quot;#&quot;){b.data(j,&quot;href.tabs&quot;,h);b.data(j,&quot;load.tabs&quot;,h.replace(/#.*$/,&quot;&quot;));var c=a._tabId(j);j.href=&quot;#&quot;+c;var d=b(&quot;#&quot;+c);if(!d.length){d=b(A.panelTemplate).attr(&quot;id&quot;,c).addClass(&quot;ui-tabs-panel ui-widget-content ui-corner-bottom&quot;).insertAfter(a.panels[g-1]||a.list);d.data(&quot;destroy.tabs&quot;,true)}a.panels=a.panels.add(d)}else{A.disabled.push(g)}}});if(o){this.element.addClass(&quot;ui-tabs ui-widget ui-widget-content ui-corner-all&quot;);this.list.addClass(&quot;ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all&quot;);this.lis.addClass(&quot;ui-state-default ui-corner-top&quot;);this.panels.addClass(&quot;ui-tabs-panel ui-widget-content ui-corner-bottom&quot;);if(A.selected===undefined){if(location.hash){this.anchors.each(function(c,d){if(d.hash==location.hash){A.selected=c;return false}})}if(typeof A.selected!=&quot;number&quot;&amp;&amp;A.cookie){A.selected=parseInt(a._cookie(),10)}if(typeof A.selected!=&quot;number&quot;&amp;&amp;this.lis.filter(&quot;.ui-tabs-selected&quot;).length){A.selected=this.lis.index(this.lis.filter(&quot;.ui-tabs-selected&quot;))}A.selected=A.selected||0}else{if(A.selected===null){A.selected=-1}}A.selected=((A.selected&gt;=0&amp;&amp;this.anchors[A.selected])||A.selected&lt;0)?A.selected:0;A.disabled=b.unique(A.disabled.concat(b.map(this.lis.filter(&quot;.ui-state-disabled&quot;),function(c,d){return a.lis.index(c)}))).sort();if(b.inArray(A.selected,A.disabled)!=-1){A.disabled.splice(b.inArray(A.selected,A.disabled),1)}this.panels.addClass(&quot;ui-tabs-hide&quot;);this.lis.removeClass(&quot;ui-tabs-selected ui-state-active&quot;);if(A.selected&gt;=0&amp;&amp;this.anchors.length){this.panels.eq(A.selected).removeClass(&quot;ui-tabs-hide&quot;);this.lis.eq(A.selected).addClass(&quot;ui-tabs-selected ui-state-active&quot;);a.element.queue(&quot;tabs&quot;,function(){a._trigger(&quot;show&quot;,null,a._ui(a.anchors[A.selected],a.panels[A.selected]))});this.load(A.selected)}b(window).bind(&quot;unload&quot;,function(){a.lis.add(a.anchors).unbind(&quot;.tabs&quot;);a.lis=a.anchors=a.panels=null})}else{A.selected=this.lis.index(this.lis.filter(&quot;.ui-tabs-selected&quot;))}this.element[A.collapsible?&quot;addClass&quot;:&quot;removeClass&quot;](&quot;ui-tabs-collapsible&quot;);if(A.cookie){this._cookie(A.selected,A.cookie)}for(var x=0,q;(q=this.lis[x]);x++){b(q)[b.inArray(x,A.disabled)!=-1&amp;&amp;!b(q).hasClass(&quot;ui-tabs-selected&quot;)?&quot;addClass&quot;:&quot;removeClass&quot;](&quot;ui-state-disabled&quot;)}if(A.cache===false){this.anchors.removeData(&quot;cache.tabs&quot;)}this.lis.add(this.anchors).unbind(&quot;.tabs&quot;);if(A.event!=&quot;mouseover&quot;){var y=function(d,c){if(c.is(&quot;:not(.ui-state-disabled)&quot;)){c.addClass(&quot;ui-state-&quot;+d)}};var v=function(d,c){c.removeClass(&quot;ui-state-&quot;+d)};this.lis.bind(&quot;mouseover.tabs&quot;,function(){y(&quot;hover&quot;,b(this))});this.lis.bind(&quot;mouseout.tabs&quot;,function(){v(&quot;hover&quot;,b(this))});this.anchors.bind(&quot;focus.tabs&quot;,function(){y(&quot;focus&quot;,b(this).closest(&quot;li&quot;))});this.anchors.bind(&quot;blur.tabs&quot;,function(){v(&quot;focus&quot;,b(this).closest(&quot;li&quot;))})}var C,w;if(A.fx){if(b.isArray(A.fx)){C=A.fx[0];w=A.fx[1]}else{C=w=A.fx}}function z(c,d){c.css({display:&quot;&quot;});if(b.browser.msie&amp;&amp;d.opacity){c[0].style.removeAttribute(&quot;filter&quot;)}}var u=w?function(c,d){b(c).closest(&quot;li&quot;).removeClass(&quot;ui-state-default&quot;).addClass(&quot;ui-tabs-selected ui-state-active&quot;);d.hide().removeClass(&quot;ui-tabs-hide&quot;).animate(w,w.duration||&quot;normal&quot;,function(){z(d,w);a._trigger(&quot;show&quot;,null,a._ui(c,d[0]))})}:function(c,d){b(c).closest(&quot;li&quot;).removeClass(&quot;ui-state-default&quot;).addClass(&quot;ui-tabs-selected ui-state-active&quot;);d.removeClass(&quot;ui-tabs-hide&quot;);a._trigger(&quot;show&quot;,null,a._ui(c,d[0]))};var r=C?function(d,c){c.animate(C,C.duration||&quot;normal&quot;,function(){a.lis.removeClass(&quot;ui-tabs-selected ui-state-active&quot;).addClass(&quot;ui-state-default&quot;);c.addClass(&quot;ui-tabs-hide&quot;);z(c,C);a.element.dequeue(&quot;tabs&quot;)})}:function(e,c,d){a.lis.removeClass(&quot;ui-tabs-selected ui-state-active&quot;).addClass(&quot;ui-state-default&quot;);c.addClass(&quot;ui-tabs-hide&quot;);a.element.dequeue(&quot;tabs&quot;)};this.anchors.bind(A.event+&quot;.tabs&quot;,function(){var f=this,d=b(this).closest(&quot;li&quot;),c=a.panels.filter(&quot;:not(.ui-tabs-hide)&quot;),e=b(a._sanitizeSelector(this.hash));if((d.hasClass(&quot;ui-tabs-selected&quot;)&amp;&amp;!A.collapsible)||d.hasClass(&quot;ui-state-disabled&quot;)||d.hasClass(&quot;ui-state-processing&quot;)||a._trigger(&quot;select&quot;,null,a._ui(this,e[0]))===false){this.blur();return false}A.selected=a.anchors.index(this);a.abort();if(A.collapsible){if(d.hasClass(&quot;ui-tabs-selected&quot;)){A.selected=-1;if(A.cookie){a._cookie(A.selected,A.cookie)}a.element.queue(&quot;tabs&quot;,function(){r(f,c)}).dequeue(&quot;tabs&quot;);this.blur();return false}else{if(!c.length){if(A.cookie){a._cookie(A.selected,A.cookie)}a.element.queue(&quot;tabs&quot;,function(){u(f,e)});a.load(a.anchors.index(this));this.blur();return false}}}if(A.cookie){a._cookie(A.selected,A.cookie)}if(e.length){if(c.length){a.element.queue(&quot;tabs&quot;,function(){r(f,c)})}a.element.queue(&quot;tabs&quot;,function(){u(f,e)});a.load(a.anchors.index(this))}else{throw&quot;jQuery UI Tabs: Mismatching fragment identifier.&quot;}if(b.browser.msie){this.blur()}});this.anchors.bind(&quot;click.tabs&quot;,function(){return false})},destroy:function(){var a=this.options;this.abort();this.element.unbind(&quot;.tabs&quot;).removeClass(&quot;ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible&quot;).removeData(&quot;tabs&quot;);this.list.removeClass(&quot;ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all&quot;);this.anchors.each(function(){var f=b.data(this,&quot;href.tabs&quot;);if(f){this.href=f}var e=b(this).unbind(&quot;.tabs&quot;);b.each([&quot;href&quot;,&quot;load&quot;,&quot;cache&quot;],function(d,c){e.removeData(c+&quot;.tabs&quot;)})});this.lis.unbind(&quot;.tabs&quot;).add(this.panels).each(function(){if(b.data(this,&quot;destroy.tabs&quot;)){b(this).remove()}else{b(this).removeClass([&quot;ui-state-default&quot;,&quot;ui-corner-top&quot;,&quot;ui-tabs-selected&quot;,&quot;ui-state-active&quot;,&quot;ui-state-hover&quot;,&quot;ui-state-focus&quot;,&quot;ui-state-disabled&quot;,&quot;ui-tabs-panel&quot;,&quot;ui-widget-content&quot;,&quot;ui-corner-bottom&quot;,&quot;ui-tabs-hide&quot;].join(&quot; &quot;))}});if(a.cookie){this._cookie(null,a.cookie)}},add:function(n,o,p){if(p===undefined){p=this.anchors.length}var a=this,l=this.options,j=b(l.tabTemplate.replace(/#\{href\}/g,n).replace(/#\{label\}/g,o)),k=!n.indexOf(&quot;#&quot;)?n.replace(&quot;#&quot;,&quot;&quot;):this._tabId(b(&quot;a&quot;,j)[0]);j.addClass(&quot;ui-state-default ui-corner-top&quot;).data(&quot;destroy.tabs&quot;,true);var m=b(&quot;#&quot;+k);if(!m.length){m=b(l.panelTemplate).attr(&quot;id&quot;,k).data(&quot;destroy.tabs&quot;,true)}m.addClass(&quot;ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide&quot;);if(p&gt;=this.lis.length){j.appendTo(this.list);m.appendTo(this.list[0].parentNode)}else{j.insertBefore(this.lis[p]);m.insertBefore(this.panels[p])}l.disabled=b.map(l.disabled,function(c,d){return c&gt;=p?++c:c});this._tabify();if(this.anchors.length==1){j.addClass(&quot;ui-tabs-selected ui-state-active&quot;);m.removeClass(&quot;ui-tabs-hide&quot;);this.element.queue(&quot;tabs&quot;,function(){a._trigger(&quot;show&quot;,null,a._ui(a.anchors[0],a.panels[0]))});this.load(0)}this._trigger(&quot;add&quot;,null,this._ui(this.anchors[p],this.panels[p]))},remove:function(a){var g=this.options,f=this.lis.eq(a).remove(),h=this.panels.eq(a).remove();if(f.hasClass(&quot;ui-tabs-selected&quot;)&amp;&amp;this.anchors.length&gt;1){this.select(a+(a+1&lt;this.anchors.length?1:-1))}g.disabled=b.map(b.grep(g.disabled,function(c,d){return c!=a}),function(c,d){return c&gt;=a?--c:c});this._tabify();this._trigger(&quot;remove&quot;,null,this._ui(f.find(&quot;a&quot;)[0],h[0]))},enable:function(a){var d=this.options;if(b.inArray(a,d.disabled)==-1){return}this.lis.eq(a).removeClass(&quot;ui-state-disabled&quot;);d.disabled=b.grep(d.disabled,function(c,f){return c!=a});this._trigger(&quot;enable&quot;,null,this._ui(this.anchors[a],this.panels[a]))},disable:function(f){var a=this,e=this.options;if(f!=e.selected){this.lis.eq(f).addClass(&quot;ui-state-disabled&quot;);e.disabled.push(f);e.disabled.sort();this._trigger(&quot;disable&quot;,null,this._ui(this.anchors[f],this.panels[f]))}},select:function(a){if(typeof a==&quot;string&quot;){a=this.anchors.index(this.anchors.filter(&quot;[href$=&quot;+a+&quot;]&quot;))}else{if(a===null){a=-1}}if(a==-1&amp;&amp;this.options.collapsible){a=this.options.selected}this.anchors.eq(a).trigger(this.options.event+&quot;.tabs&quot;)},load:function(k){var m=this,h=this.options,a=this.anchors.eq(k)[0],l=b.data(a,&quot;load.tabs&quot;);this.abort();if(!l||this.element.queue(&quot;tabs&quot;).length!==0&amp;&amp;b.data(a,&quot;cache.tabs&quot;)){this.element.dequeue(&quot;tabs&quot;);return}this.lis.eq(k).addClass(&quot;ui-state-processing&quot;);if(h.spinner){var j=b(&quot;span&quot;,a);j.data(&quot;label.tabs&quot;,j.html()).html(h.spinner)}this.xhr=b.ajax(b.extend({},h.ajaxOptions,{url:l,success:function(d,e){b(m._sanitizeSelector(a.hash)).html(d);m._cleanup();if(h.cache){b.data(a,&quot;cache.tabs&quot;,true)}m._trigger(&quot;load&quot;,null,m._ui(m.anchors[k],m.panels[k]));try{h.ajaxOptions.success(d,e)}catch(c){}m.element.dequeue(&quot;tabs&quot;)}}))},abort:function(){this.element.queue([]);this.panels.stop(false,true);if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup()},url:function(d,a){this.anchors.eq(d).removeData(&quot;cache.tabs&quot;).data(&quot;load.tabs&quot;,a)},length:function(){return this.anchors.length}});b.extend(b.ui.tabs,{version:&quot;1.7.1&quot;,getter:&quot;length&quot;,defaults:{ajaxOptions:null,cache:false,cookie:null,collapsible:false,disabled:[],event:&quot;click&quot;,fx:null,idPrefix:&quot;ui-tabs-&quot;,panelTemplate:&quot;&lt;div&gt;&lt;/div&gt;&quot;,spinner:&quot;&lt;em&gt;Loading&amp;#8230;&lt;/em&gt;&quot;,tabTemplate:'&lt;li&gt;&lt;a href=&quot;#{href}&quot;&gt;&lt;span&gt;#{label}&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;'}});b.extend(b.ui.tabs.prototype,{rotation:null,rotate:function(l,j){var a=this,h=this.options;var m=a._rotate||(a._rotate=function(c){clearTimeout(a.rotation);a.rotation=setTimeout(function(){var d=h.selected;a.select(++d&lt;a.anchors.length?d:0)},l);if(c){c.stopPropagation()}});var k=a._unrotate||(a._unrotate=!j?function(c){if(c.clientX){a.rotate(null)}}:function(c){t=h.selected;m()});if(l){this.element.bind(&quot;tabsshow&quot;,m);this.anchors.bind(h.event+&quot;.tabs&quot;,k);m()}else{clearTimeout(a.rotation);this.element.unbind(&quot;tabsshow&quot;,m);this.anchors.unbind(h.event+&quot;.tabs&quot;,k);delete this._rotate;delete this._unrotate}}})})(jQuery);(function($){$.extend($.ui,{datepicker:{version:&quot;1.7.1&quot;}});var PROP_NAME=&quot;datepicker&quot;;function Datepicker(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId=&quot;ui-datepicker-div&quot;;this._inlineClass=&quot;ui-datepicker-inline&quot;;this._appendClass=&quot;ui-datepicker-append&quot;;this._triggerClass=&quot;ui-datepicker-trigger&quot;;this._dialogClass=&quot;ui-datepicker-dialog&quot;;this._disableClass=&quot;ui-datepicker-disabled&quot;;this._unselectableClass=&quot;ui-datepicker-unselectable&quot;;this._currentClass=&quot;ui-datepicker-current-day&quot;;this._dayOverClass=&quot;ui-datepicker-days-cell-over&quot;;this.regional=[];this.regional[&quot;&quot;]={closeText:&quot;Done&quot;,prevText:&quot;Prev&quot;,nextText:&quot;Next&quot;,currentText:&quot;Today&quot;,monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],dateFormat:&quot;mm/dd/yy&quot;,firstDay:0,isRTL:false};this._defaults={showOn:&quot;focus&quot;,showAnim:&quot;show&quot;,showOptions:{},defaultDate:null,appendText:&quot;&quot;,buttonText:&quot;...&quot;,buttonImage:&quot;&quot;,buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,showMonthAfterYear:false,yearRange:&quot;-10:+10&quot;,showOtherMonths:false,calculateWeek:this.iso8601Week,shortYearCutoff:&quot;+10&quot;,minDate:null,maxDate:null,duration:&quot;normal&quot;,beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:&quot;&quot;,altFormat:&quot;&quot;,constrainInput:true,showButtonPanel:false};$.extend(this._defaults,this.regional[&quot;&quot;]);this.dpDiv=$('&lt;div id=&quot;'+this._mainDivId+'&quot; class=&quot;ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible&quot;&gt;&lt;/div&gt;')}$.extend(Datepicker.prototype,{markerClassName:&quot;hasDatepicker&quot;,log:function(){if(this.debug){console.log.apply(&quot;&quot;,arguments)}},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute(&quot;date:&quot;+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase();var inline=(nodeName==&quot;div&quot;||nodeName==&quot;span&quot;);if(!target.id){target.id=&quot;dp&quot;+(++this.uuid)}var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{});if(nodeName==&quot;input&quot;){this._connectDatepicker(target,inst)}else{if(inline){this._inlineDatepicker(target,inst)}}},_newInst:function(target,inline){var id=target[0].id.replace(/([:\[\]\.])/g,&quot;\\\\$1&quot;);return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:$('&lt;div class=&quot;'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all&quot;&gt;&lt;/div&gt;'))}},_connectDatepicker:function(target,inst){var input=$(target);inst.trigger=$([]);if(input.hasClass(this.markerClassName)){return}var appendText=this._get(inst,&quot;appendText&quot;);var isRTL=this._get(inst,&quot;isRTL&quot;);if(appendText){input[isRTL?&quot;before&quot;:&quot;after&quot;]('&lt;span class=&quot;'+this._appendClass+'&quot;&gt;'+appendText+&quot;&lt;/span&gt;&quot;)}var showOn=this._get(inst,&quot;showOn&quot;);if(showOn==&quot;focus&quot;||showOn==&quot;both&quot;){input.focus(this._showDatepicker)}if(showOn==&quot;button&quot;||showOn==&quot;both&quot;){var buttonText=this._get(inst,&quot;buttonText&quot;);var buttonImage=this._get(inst,&quot;buttonImage&quot;);inst.trigger=$(this._get(inst,&quot;buttonImageOnly&quot;)?$(&quot;&lt;img/&gt;&quot;).addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$('&lt;button type=&quot;button&quot;&gt;&lt;/button&gt;').addClass(this._triggerClass).html(buttonImage==&quot;&quot;?buttonText:$(&quot;&lt;img/&gt;&quot;).attr({src:buttonImage,alt:buttonText,title:buttonText})));input[isRTL?&quot;before&quot;:&quot;after&quot;](inst.trigger);inst.trigger.click(function(){if($.datepicker._datepickerShowing&amp;&amp;$.datepicker._lastInput==target){$.datepicker._hideDatepicker()}else{$.datepicker._showDatepicker(target)}return false})}input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind(&quot;setData.datepicker&quot;,function(event,key,value){inst.settings[key]=value}).bind(&quot;getData.datepicker&quot;,function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst)},_inlineDatepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName)){return}divSpan.addClass(this.markerClassName).append(inst.dpDiv).bind(&quot;setData.datepicker&quot;,function(event,key,value){inst.settings[key]=value}).bind(&quot;getData.datepicker&quot;,function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst);this._setDate(inst,this._getDefaultDate(inst));this._updateDatepicker(inst);this._updateAlternate(inst)},_dialogDatepicker:function(input,dateText,onSelect,settings,pos){var inst=this._dialogInst;if(!inst){var id=&quot;dp&quot;+(++this.uuid);this._dialogInput=$('&lt;input type=&quot;text&quot; id=&quot;'+id+'&quot; size=&quot;1&quot; style=&quot;position: absolute; top: -100px;&quot;/&gt;');this._dialogInput.keydown(this._doKeyDown);$(&quot;body&quot;).append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],PROP_NAME,inst)}extendRemove(inst.settings,settings||{});this._dialogInput.val(dateText);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){var browserWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var browserHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY]}this._dialogInput.css(&quot;left&quot;,this._pos[0]+&quot;px&quot;).css(&quot;top&quot;,this._pos[1]+&quot;px&quot;);inst.settings.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this.dpDiv)}$.data(this._dialogInput[0],PROP_NAME,inst);return this},_destroyDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();$.removeData(target,PROP_NAME);if(nodeName==&quot;input&quot;){inst.trigger.remove();$target.siblings(&quot;.&quot;+this._appendClass).remove().end().removeClass(this.markerClassName).unbind(&quot;focus&quot;,this._showDatepicker).unbind(&quot;keydown&quot;,this._doKeyDown).unbind(&quot;keypress&quot;,this._doKeyPress)}else{if(nodeName==&quot;div&quot;||nodeName==&quot;span&quot;){$target.removeClass(this.markerClassName).empty()}}},_enableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName==&quot;input&quot;){target.disabled=false;inst.trigger.filter(&quot;button&quot;).each(function(){this.disabled=false}).end().filter(&quot;img&quot;).css({opacity:&quot;1.0&quot;,cursor:&quot;&quot;})}else{if(nodeName==&quot;div&quot;||nodeName==&quot;span&quot;){var inline=$target.children(&quot;.&quot;+this._inlineClass);inline.children().removeClass(&quot;ui-state-disabled&quot;)}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)})},_disableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName==&quot;input&quot;){target.disabled=true;inst.trigger.filter(&quot;button&quot;).each(function(){this.disabled=true}).end().filter(&quot;img&quot;).css({opacity:&quot;0.5&quot;,cursor:&quot;default&quot;})}else{if(nodeName==&quot;div&quot;||nodeName==&quot;span&quot;){var inline=$target.children(&quot;.&quot;+this._inlineClass);inline.children().addClass(&quot;ui-state-disabled&quot;)}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)});this._disabledInputs[this._disabledInputs.length]=target},_isDisabledDatepicker:function(target){if(!target){return false}for(var i=0;i&lt;this._disabledInputs.length;i++){if(this._disabledInputs[i]==target){return true}}return false},_getInst:function(target){try{return $.data(target,PROP_NAME)}catch(err){throw&quot;Missing instance data for this datepicker&quot;}},_optionDatepicker:function(target,name,value){var settings=name||{};if(typeof name==&quot;string&quot;){settings={};settings[name]=value}var inst=this._getInst(target);if(inst){if(this._curInst==inst){this._hideDatepicker(null)}extendRemove(inst.settings,settings);var date=new Date();extendRemove(inst,{rangeStart:null,endDay:null,endMonth:null,endYear:null,selectedDay:date.getDate(),selectedMonth:date.getMonth(),selectedYear:date.getFullYear(),currentDay:date.getDate(),currentMonth:date.getMonth(),currentYear:date.getFullYear(),drawMonth:date.getMonth(),drawYear:date.getFullYear()});this._updateDatepicker(inst)}},_changeDatepicker:function(target,name,value){this._optionDatepicker(target,name,value)},_refreshDatepicker:function(target){var inst=this._getInst(target);if(inst){this._updateDatepicker(inst)}},_setDateDatepicker:function(target,date,endDate){var inst=this._getInst(target);if(inst){this._setDate(inst,date,endDate);this._updateDatepicker(inst);this._updateAlternate(inst)}},_getDateDatepicker:function(target){var inst=this._getInst(target);if(inst&amp;&amp;!inst.inline){this._setDateFromField(inst)}return(inst?this._getDate(inst):null)},_doKeyDown:function(event){var inst=$.datepicker._getInst(event.target);var handled=true;var isRTL=inst.dpDiv.is(&quot;.ui-datepicker-rtl&quot;);inst._keyEvent=true;if($.datepicker._datepickerShowing){switch(event.keyCode){case 9:$.datepicker._hideDatepicker(null,&quot;&quot;);break;case 13:var sel=$(&quot;td.&quot;+$.datepicker._dayOverClass+&quot;, td.&quot;+$.datepicker._currentClass,inst.dpDiv);if(sel[0]){$.datepicker._selectDay(event.target,inst.selectedMonth,inst.selectedYear,sel[0])}else{$.datepicker._hideDatepicker(null,$.datepicker._get(inst,&quot;duration&quot;))}return false;break;case 27:$.datepicker._hideDatepicker(null,$.datepicker._get(inst,&quot;duration&quot;));break;case 33:$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,&quot;stepBigMonths&quot;):-$.datepicker._get(inst,&quot;stepMonths&quot;)),&quot;M&quot;);break;case 34:$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,&quot;stepBigMonths&quot;):+$.datepicker._get(inst,&quot;stepMonths&quot;)),&quot;M&quot;);break;case 35:if(event.ctrlKey||event.metaKey){$.datepicker._clearDate(event.target)}handled=event.ctrlKey||event.metaKey;break;case 36:if(event.ctrlKey||event.metaKey){$.datepicker._gotoToday(event.target)}handled=event.ctrlKey||event.metaKey;break;case 37:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?+1:-1),&quot;D&quot;)}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,&quot;stepBigMonths&quot;):-$.datepicker._get(inst,&quot;stepMonths&quot;)),&quot;M&quot;)}break;case 38:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,-7,&quot;D&quot;)}handled=event.ctrlKey||event.metaKey;break;case 39:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?-1:+1),&quot;D&quot;)}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,&quot;stepBigMonths&quot;):+$.datepicker._get(inst,&quot;stepMonths&quot;)),&quot;M&quot;)}break;case 40:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,+7,&quot;D&quot;)}handled=event.ctrlKey||event.metaKey;break;default:handled=false}}else{if(event.keyCode==36&amp;&amp;event.ctrlKey){$.datepicker._showDatepicker(this)}else{handled=false}}if(handled){event.preventDefault();event.stopPropagation()}},_doKeyPress:function(event){var inst=$.datepicker._getInst(event.target);if($.datepicker._get(inst,&quot;constrainInput&quot;)){var chars=$.datepicker._possibleChars($.datepicker._get(inst,&quot;dateFormat&quot;));var chr=String.fromCharCode(event.charCode==undefined?event.keyCode:event.charCode);return event.ctrlKey||(chr&lt;&quot; &quot;||!chars||chars.indexOf(chr)&gt;-1)}},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!=&quot;input&quot;){input=$(&quot;input&quot;,input.parentNode)[0]}if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input){return}var inst=$.datepicker._getInst(input);var beforeShow=$.datepicker._get(inst,&quot;beforeShow&quot;);extendRemove(inst.settings,(beforeShow?beforeShow.apply(input,[input,inst]):{}));$.datepicker._hideDatepicker(null,&quot;&quot;);$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog){input.value=&quot;&quot;}if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight}var isFixed=false;$(input).parents().each(function(){isFixed|=$(this).css(&quot;position&quot;)==&quot;fixed&quot;;return !isFixed});if(isFixed&amp;&amp;$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=document.documentElement.scrollTop}var offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;inst.rangeStart=null;inst.dpDiv.css({position:&quot;absolute&quot;,display:&quot;block&quot;,top:&quot;-1000px&quot;});$.datepicker._updateDatepicker(inst);offset=$.datepicker._checkOffset(inst,offset,isFixed);inst.dpDiv.css({position:($.datepicker._inDialog&amp;&amp;$.blockUI?&quot;static&quot;:(isFixed?&quot;fixed&quot;:&quot;absolute&quot;)),display:&quot;none&quot;,left:offset.left+&quot;px&quot;,top:offset.top+&quot;px&quot;});if(!inst.inline){var showAnim=$.datepicker._get(inst,&quot;showAnim&quot;)||&quot;show&quot;;var duration=$.datepicker._get(inst,&quot;duration&quot;);var postProcess=function(){$.datepicker._datepickerShowing=true;if($.browser.msie&amp;&amp;parseInt($.browser.version,10)&lt;7){$(&quot;iframe.ui-datepicker-cover&quot;).css({width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4})}};if($.effects&amp;&amp;$.effects[showAnim]){inst.dpDiv.show(showAnim,$.datepicker._get(inst,&quot;showOptions&quot;),duration,postProcess)}else{inst.dpDiv[showAnim](duration,postProcess)}if(duration==&quot;&quot;){postProcess()}if(inst.input[0].type!=&quot;hidden&quot;){inst.input[0].focus()}$.datepicker._curInst=inst}},_updateDatepicker:function(inst){var dims={width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4};var self=this;inst.dpDiv.empty().append(this._generateHTML(inst)).find(&quot;iframe.ui-datepicker-cover&quot;).css({width:dims.width,height:dims.height}).end().find(&quot;button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a&quot;).bind(&quot;mouseout&quot;,function(){$(this).removeClass(&quot;ui-state-hover&quot;);if(this.className.indexOf(&quot;ui-datepicker-prev&quot;)!=-1){$(this).removeClass(&quot;ui-datepicker-prev-hover&quot;)}if(this.className.indexOf(&quot;ui-datepicker-next&quot;)!=-1){$(this).removeClass(&quot;ui-datepicker-next-hover&quot;)}}).bind(&quot;mouseover&quot;,function(){if(!self._isDisabledDatepicker(inst.inline?inst.dpDiv.parent()[0]:inst.input[0])){$(this).parents(&quot;.ui-datepicker-calendar&quot;).find(&quot;a&quot;).removeClass(&quot;ui-state-hover&quot;);$(this).addClass(&quot;ui-state-hover&quot;);if(this.className.indexOf(&quot;ui-datepicker-prev&quot;)!=-1){$(this).addClass(&quot;ui-datepicker-prev-hover&quot;)}if(this.className.indexOf(&quot;ui-datepicker-next&quot;)!=-1){$(this).addClass(&quot;ui-datepicker-next-hover&quot;)}}}).end().find(&quot;.&quot;+this._dayOverClass+&quot; a&quot;).trigger(&quot;mouseover&quot;).end();var numMonths=this._getNumberOfMonths(inst);var cols=numMonths[1];var width=17;if(cols&gt;1){inst.dpDiv.addClass(&quot;ui-datepicker-multi-&quot;+cols).css(&quot;width&quot;,(width*cols)+&quot;em&quot;)}else{inst.dpDiv.removeClass(&quot;ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4&quot;).width(&quot;&quot;)}inst.dpDiv[(numMonths[0]!=1||numMonths[1]!=1?&quot;add&quot;:&quot;remove&quot;)+&quot;Class&quot;](&quot;ui-datepicker-multi&quot;);inst.dpDiv[(this._get(inst,&quot;isRTL&quot;)?&quot;add&quot;:&quot;remove&quot;)+&quot;Class&quot;](&quot;ui-datepicker-rtl&quot;);if(inst.input&amp;&amp;inst.input[0].type!=&quot;hidden&quot;&amp;&amp;inst==$.datepicker._curInst){$(inst.input[0]).focus()}},_checkOffset:function(inst,offset,isFixed){var dpWidth=inst.dpDiv.outerWidth();var dpHeight=inst.dpDiv.outerHeight();var inputWidth=inst.input?inst.input.outerWidth():0;var inputHeight=inst.input?inst.input.outerHeight():0;var viewWidth=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)+$(document).scrollLeft();var viewHeight=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)+$(document).scrollTop();offset.left-=(this._get(inst,&quot;isRTL&quot;)?(dpWidth-inputWidth):0);offset.left-=(isFixed&amp;&amp;offset.left==inst.input.offset().left)?$(document).scrollLeft():0;offset.top-=(isFixed&amp;&amp;offset.top==(inst.input.offset().top+inputHeight))?$(document).scrollTop():0;offset.left-=(offset.left+dpWidth&gt;viewWidth&amp;&amp;viewWidth&gt;dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0;offset.top-=(offset.top+dpHeight&gt;viewHeight&amp;&amp;viewHeight&gt;dpHeight)?Math.abs(offset.top+dpHeight+inputHeight*2-viewHeight):0;return offset},_findPos:function(obj){while(obj&amp;&amp;(obj.type==&quot;hidden&quot;||obj.nodeType!=1)){obj=obj.nextSibling}var position=$(obj).offset();return[position.left,position.top]},_hideDatepicker:function(input,duration){var inst=this._curInst;if(!inst||(input&amp;&amp;inst!=$.data(input,PROP_NAME))){return}if(inst.stayOpen){this._selectDate(&quot;#&quot;+inst.id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear))}inst.stayOpen=false;if(this._datepickerShowing){duration=(duration!=null?duration:this._get(inst,&quot;duration&quot;));var showAnim=this._get(inst,&quot;showAnim&quot;);var postProcess=function(){$.datepicker._tidyDialog(inst)};if(duration!=&quot;&quot;&amp;&amp;$.effects&amp;&amp;$.effects[showAnim]){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,&quot;showOptions&quot;),duration,postProcess)}else{inst.dpDiv[(duration==&quot;&quot;?&quot;hide&quot;:(showAnim==&quot;slideDown&quot;?&quot;slideUp&quot;:(showAnim==&quot;fadeIn&quot;?&quot;fadeOut&quot;:&quot;hide&quot;)))](duration,postProcess)}if(duration==&quot;&quot;){this._tidyDialog(inst)}var onClose=this._get(inst,&quot;onClose&quot;);if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():&quot;&quot;),inst])}this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:&quot;absolute&quot;,left:&quot;0&quot;,top:&quot;-100px&quot;});if($.blockUI){$.unblockUI();$(&quot;body&quot;).append(this.dpDiv)}}this._inDialog=false}this._curInst=null},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind(&quot;.ui-datepicker-calendar&quot;)},_checkExternalClick:function(event){if(!$.datepicker._curInst){return}var $target=$(event.target);if(($target.parents(&quot;#&quot;+$.datepicker._mainDivId).length==0)&amp;&amp;!$target.hasClass($.datepicker.markerClassName)&amp;&amp;!$target.hasClass($.datepicker._triggerClass)&amp;&amp;$.datepicker._datepickerShowing&amp;&amp;!($.datepicker._inDialog&amp;&amp;$.blockUI)){$.datepicker._hideDatepicker(null,&quot;&quot;)}},_adjustDate:function(id,offset,period){var target=$(id);var inst=this._getInst(target[0]);if(this._isDisabledDatepicker(target[0])){return}this._adjustInstDate(inst,offset+(period==&quot;M&quot;?this._get(inst,&quot;showCurrentAtPos&quot;):0),period);this._updateDatepicker(inst)},_gotoToday:function(id){var target=$(id);var inst=this._getInst(target[0]);if(this._get(inst,&quot;gotoCurrent&quot;)&amp;&amp;inst.currentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear}else{var date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear()}this._notifyChange(inst);this._adjustDate(target)},_selectMonthYear:function(id,select,period){var target=$(id);var inst=this._getInst(target[0]);inst._selectingMonthYear=false;inst[&quot;selected&quot;+(period==&quot;M&quot;?&quot;Month&quot;:&quot;Year&quot;)]=inst[&quot;draw&quot;+(period==&quot;M&quot;?&quot;Month&quot;:&quot;Year&quot;)]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target)},_clickMonthYear:function(id){var target=$(id);var inst=this._getInst(target[0]);if(inst.input&amp;&amp;inst._selectingMonthYear&amp;&amp;!$.browser.msie){inst.input[0].focus()}inst._selectingMonthYear=!inst._selectingMonthYear},_selectDay:function(id,month,year,td){var target=$(id);if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0])){return}var inst=this._getInst(target[0]);inst.selectedDay=inst.currentDay=$(&quot;a&quot;,td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;if(inst.stayOpen){inst.endDay=inst.endMonth=inst.endYear=null}this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear));if(inst.stayOpen){inst.rangeStart=this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay));this._updateDatepicker(inst)}},_clearDate:function(id){var target=$(id);var inst=this._getInst(target[0]);inst.stayOpen=false;inst.endDay=inst.endMonth=inst.endYear=inst.rangeStart=null;this._selectDate(target,&quot;&quot;)},_selectDate:function(id,dateStr){var target=$(id);var inst=this._getInst(target[0]);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(inst.input){inst.input.val(dateStr)}this._updateAlternate(inst);var onSelect=this._get(inst,&quot;onSelect&quot;);if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])}else{if(inst.input){inst.input.trigger(&quot;change&quot;)}}if(inst.inline){this._updateDatepicker(inst)}else{if(!inst.stayOpen){this._hideDatepicker(null,this._get(inst,&quot;duration&quot;));this._lastInput=inst.input[0];if(typeof(inst.input[0])!=&quot;object&quot;){inst.input[0].focus()}this._lastInput=null}}},_updateAlternate:function(inst){var altField=this._get(inst,&quot;altField&quot;);if(altField){var altFormat=this._get(inst,&quot;altFormat&quot;)||this._get(inst,&quot;dateFormat&quot;);var date=this._getDate(inst);dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));$(altField).each(function(){$(this).val(dateStr)})}},noWeekends:function(date){var day=date.getDay();return[(day&gt;0&amp;&amp;day&lt;6),&quot;&quot;]},iso8601Week:function(date){var checkDate=new Date(date.getFullYear(),date.getMonth(),date.getDate());var firstMon=new Date(checkDate.getFullYear(),1-1,4);var firstDay=firstMon.getDay()||7;firstMon.setDate(firstMon.getDate()+1-firstDay);if(firstDay&lt;4&amp;&amp;checkDate&lt;firstMon){checkDate.setDate(checkDate.getDate()-3);return $.datepicker.iso8601Week(checkDate)}else{if(checkDate&gt;new Date(checkDate.getFullYear(),12-1,28)){firstDay=new Date(checkDate.getFullYear()+1,1-1,4).getDay()||7;if(firstDay&gt;4&amp;&amp;(checkDate.getDay()||7)&lt;firstDay-3){return 1}}}return Math.floor(((checkDate-firstMon)/86400000)/7)+1},parseDate:function(format,value,settings){if(format==null||value==null){throw&quot;Invalid arguments&quot;}value=(typeof value==&quot;object&quot;?value.toString():value+&quot;&quot;);if(value==&quot;&quot;){return null}var shortYearCutoff=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff;var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var year=-1;var month=-1;var day=-1;var doy=-1;var literal=false;var lookAhead=function(match){var matches=(iFormat+1&lt;format.length&amp;&amp;format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var getNumber=function(match){lookAhead(match);var origSize=(match==&quot;@&quot;?14:(match==&quot;y&quot;?4:(match==&quot;o&quot;?3:2)));var size=origSize;var num=0;while(size&gt;0&amp;&amp;iValue&lt;value.length&amp;&amp;value.charAt(iValue)&gt;=&quot;0&quot;&amp;&amp;value.charAt(iValue)&lt;=&quot;9&quot;){num=num*10+parseInt(value.charAt(iValue++),10);size--}if(size==origSize){throw&quot;Missing number at position &quot;+iValue}return num};var getName=function(match,shortNames,longNames){var names=(lookAhead(match)?longNames:shortNames);var size=0;for(var j=0;j&lt;names.length;j++){size=Math.max(size,names[j].length)}var name=&quot;&quot;;var iInit=iValue;while(size&gt;0&amp;&amp;iValue&lt;value.length){name+=value.charAt(iValue++);for(var i=0;i&lt;names.length;i++){if(name==names[i]){return i+1}}size--}throw&quot;Unknown name at position &quot;+iInit};var checkLiteral=function(){if(value.charAt(iValue)!=format.charAt(iFormat)){throw&quot;Unexpected literal at position &quot;+iValue}iValue++};var iValue=0;for(var iFormat=0;iFormat&lt;format.length;iFormat++){if(literal){if(format.charAt(iFormat)==&quot;'&quot;&amp;&amp;!lookAhead(&quot;'&quot;)){literal=false}else{checkLiteral()}}else{switch(format.charAt(iFormat)){case&quot;d&quot;:day=getNumber(&quot;d&quot;);break;case&quot;D&quot;:getName(&quot;D&quot;,dayNamesShort,dayNames);break;case&quot;o&quot;:doy=getNumber(&quot;o&quot;);break;case&quot;m&quot;:month=getNumber(&quot;m&quot;);break;case&quot;M&quot;:month=getName(&quot;M&quot;,monthNamesShort,monthNames);break;case&quot;y&quot;:year=getNumber(&quot;y&quot;);break;case&quot;@&quot;:var date=new Date(getNumber(&quot;@&quot;));year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case&quot;'&quot;:if(lookAhead(&quot;'&quot;)){checkLiteral()}else{literal=true}break;default:checkLiteral()}}}if(year==-1){year=new Date().getFullYear()}else{if(year&lt;100){year+=new Date().getFullYear()-new Date().getFullYear()%100+(year&lt;=shortYearCutoff?0:-100)}}if(doy&gt;-1){month=1;day=doy;do{var dim=this._getDaysInMonth(year,month-1);if(day&lt;=dim){break}month++;day-=dim}while(true)}var date=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw&quot;Invalid date&quot;}return date},ATOM:&quot;yy-mm-dd&quot;,COOKIE:&quot;D, dd M yy&quot;,ISO_8601:&quot;yy-mm-dd&quot;,RFC_822:&quot;D, d M y&quot;,RFC_850:&quot;DD, dd-M-y&quot;,RFC_1036:&quot;D, d M y&quot;,RFC_1123:&quot;D, d M yy&quot;,RFC_2822:&quot;D, d M yy&quot;,RSS:&quot;D, d M y&quot;,TIMESTAMP:&quot;@&quot;,W3C:&quot;yy-mm-dd&quot;,formatDate:function(format,date,settings){if(!date){return&quot;&quot;}var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var lookAhead=function(match){var matches=(iFormat+1&lt;format.length&amp;&amp;format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var formatNumber=function(match,value,len){var num=&quot;&quot;+value;if(lookAhead(match)){while(num.length&lt;len){num=&quot;0&quot;+num}}return num};var formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value])};var output=&quot;&quot;;var literal=false;if(date){for(var iFormat=0;iFormat&lt;format.length;iFormat++){if(literal){if(format.charAt(iFormat)==&quot;'&quot;&amp;&amp;!lookAhead(&quot;'&quot;)){literal=false}else{output+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case&quot;d&quot;:output+=formatNumber(&quot;d&quot;,date.getDate(),2);break;case&quot;D&quot;:output+=formatName(&quot;D&quot;,date.getDay(),dayNamesShort,dayNames);break;case&quot;o&quot;:var doy=date.getDate();for(var m=date.getMonth()-1;m&gt;=0;m--){doy+=this._getDaysInMonth(date.getFullYear(),m)}output+=formatNumber(&quot;o&quot;,doy,3);break;case&quot;m&quot;:output+=formatNumber(&quot;m&quot;,date.getMonth()+1,2);break;case&quot;M&quot;:output+=formatName(&quot;M&quot;,date.getMonth(),monthNamesShort,monthNames);break;case&quot;y&quot;:output+=(lookAhead(&quot;y&quot;)?date.getFullYear():(date.getYear()%100&lt;10?&quot;0&quot;:&quot;&quot;)+date.getYear()%100);break;case&quot;@&quot;:output+=date.getTime();break;case&quot;'&quot;:if(lookAhead(&quot;'&quot;)){output+=&quot;'&quot;}else{literal=true}break;default:output+=format.charAt(iFormat)}}}}return output},_possibleChars:function(format){var chars=&quot;&quot;;var literal=false;for(var iFormat=0;iFormat&lt;format.length;iFormat++){if(literal){if(format.charAt(iFormat)==&quot;'&quot;&amp;&amp;!lookAhead(&quot;'&quot;)){literal=false}else{chars+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case&quot;d&quot;:case&quot;m&quot;:case&quot;y&quot;:case&quot;@&quot;:chars+=&quot;0123456789&quot;;break;case&quot;D&quot;:case&quot;M&quot;:return null;case&quot;'&quot;:if(lookAhead(&quot;'&quot;)){chars+=&quot;'&quot;}else{literal=true}break;default:chars+=format.charAt(iFormat)}}}return chars},_get:function(inst,name){return inst.settings[name]!==undefined?inst.settings[name]:this._defaults[name]},_setDateFromField:function(inst){var dateFormat=this._get(inst,&quot;dateFormat&quot;);var dates=inst.input?inst.input.val():null;inst.endDay=inst.endMonth=inst.endYear=null;var date=defaultDate=this._getDefaultDate(inst);var settings=this._getFormatConfig(inst);try{date=this.parseDate(dateFormat,dates,settings)||defaultDate}catch(event){this.log(event);date=defaultDate}inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(dates?date.getDate():0);inst.currentMonth=(dates?date.getMonth():0);inst.currentYear=(dates?date.getFullYear():0);this._adjustInstDate(inst)},_getDefaultDate:function(inst){var date=this._determineDate(this._get(inst,&quot;defaultDate&quot;),new Date());var minDate=this._getMinMaxDate(inst,&quot;min&quot;,true);var maxDate=this._getMinMaxDate(inst,&quot;max&quot;);date=(minDate&amp;&amp;date&lt;minDate?minDate:date);date=(maxDate&amp;&amp;date&gt;maxDate?maxDate:date);return date},_determineDate:function(date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date};var offsetString=function(offset,getDaysInMonth){var date=new Date();var year=date.getFullYear();var month=date.getMonth();var day=date.getDate();var pattern=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;var matches=pattern.exec(offset);while(matches){switch(matches[2]||&quot;d&quot;){case&quot;d&quot;:case&quot;D&quot;:day+=parseInt(matches[1],10);break;case&quot;w&quot;:case&quot;W&quot;:day+=parseInt(matches[1],10)*7;break;case&quot;m&quot;:case&quot;M&quot;:month+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break;case&quot;y&quot;:case&quot;Y&quot;:year+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break}matches=pattern.exec(offset)}return new Date(year,month,day)};date=(date==null?defaultDate:(typeof date==&quot;string&quot;?offsetString(date,this._getDaysInMonth):(typeof date==&quot;number&quot;?(isNaN(date)?defaultDate:offsetNumeric(date)):date)));date=(date&amp;&amp;date.toString()==&quot;Invalid Date&quot;?defaultDate:date);if(date){date.setHours(0);date.setMinutes(0);date.setSeconds(0);date.setMilliseconds(0)}return this._daylightSavingAdjust(date)},_daylightSavingAdjust:function(date){if(!date){return null}date.setHours(date.getHours()&gt;12?date.getHours()+2:0);return date},_setDate:function(inst,date,endDate){var clear=!(date);var origMonth=inst.selectedMonth;var origYear=inst.selectedYear;date=this._determineDate(date,new Date());inst.selectedDay=inst.currentDay=date.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=date.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=date.getFullYear();if(origMonth!=inst.selectedMonth||origYear!=inst.selectedYear){this._notifyChange(inst)}this._adjustInstDate(inst);if(inst.input){inst.input.val(clear?&quot;&quot;:this._formatDate(inst))}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&amp;&amp;inst.input.val()==&quot;&quot;)?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return startDate},_generateHTML:function(inst){var today=new Date();today=this._daylightSavingAdjust(new Date(today.getFullYear(),today.getMonth(),today.getDate()));var isRTL=this._get(inst,&quot;isRTL&quot;);var showButtonPanel=this._get(inst,&quot;showButtonPanel&quot;);var hideIfNoPrevNext=this._get(inst,&quot;hideIfNoPrevNext&quot;);var navigationAsDateFormat=this._get(inst,&quot;navigationAsDateFormat&quot;);var numMonths=this._getNumberOfMonths(inst);var showCurrentAtPos=this._get(inst,&quot;showCurrentAtPos&quot;);var stepMonths=this._get(inst,&quot;stepMonths&quot;);var stepBigMonths=this._get(inst,&quot;stepBigMonths&quot;);var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);var currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));var minDate=this._getMinMaxDate(inst,&quot;min&quot;,true);var maxDate=this._getMinMaxDate(inst,&quot;max&quot;);var drawMonth=inst.drawMonth-showCurrentAtPos;var drawYear=inst.drawYear;if(drawMonth&lt;0){drawMonth+=12;drawYear--}if(maxDate){var maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-numMonths[1]+1,maxDate.getDate()));maxDraw=(minDate&amp;&amp;maxDraw&lt;minDate?minDate:maxDraw);while(this._daylightSavingAdjust(new Date(drawYear,drawMonth,1))&gt;maxDraw){drawMonth--;if(drawMonth&lt;0){drawMonth=11;drawYear--}}}inst.drawMonth=drawMonth;inst.drawYear=drawYear;var prevText=this._get(inst,&quot;prevText&quot;);prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));var prev=(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?'&lt;a class=&quot;ui-datepicker-prev ui-corner-all&quot; onclick=&quot;DP_jQuery.datepicker._adjustDate(\'#'+inst.id+&quot;', -&quot;+stepMonths+&quot;, 'M');\&quot; title=\&quot;&quot;+prevText+'&quot;&gt;&lt;span class=&quot;ui-icon ui-icon-circle-triangle-'+(isRTL?&quot;e&quot;:&quot;w&quot;)+'&quot;&gt;'+prevText+&quot;&lt;/span&gt;&lt;/a&gt;&quot;:(hideIfNoPrevNext?&quot;&quot;:'&lt;a class=&quot;ui-datepicker-prev ui-corner-all ui-state-disabled&quot; title=&quot;'+prevText+'&quot;&gt;&lt;span class=&quot;ui-icon ui-icon-circle-triangle-'+(isRTL?&quot;e&quot;:&quot;w&quot;)+'&quot;&gt;'+prevText+&quot;&lt;/span&gt;&lt;/a&gt;&quot;));var nextText=this._get(inst,&quot;nextText&quot;);nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));var next=(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?'&lt;a class=&quot;ui-datepicker-next ui-corner-all&quot; onclick=&quot;DP_jQuery.datepicker._adjustDate(\'#'+inst.id+&quot;', +&quot;+stepMonths+&quot;, 'M');\&quot; title=\&quot;&quot;+nextText+'&quot;&gt;&lt;span class=&quot;ui-icon ui-icon-circle-triangle-'+(isRTL?&quot;w&quot;:&quot;e&quot;)+'&quot;&gt;'+nextText+&quot;&lt;/span&gt;&lt;/a&gt;&quot;:(hideIfNoPrevNext?&quot;&quot;:'&lt;a class=&quot;ui-datepicker-next ui-corner-all ui-state-disabled&quot; title=&quot;'+nextText+'&quot;&gt;&lt;span class=&quot;ui-icon ui-icon-circle-triangle-'+(isRTL?&quot;w&quot;:&quot;e&quot;)+'&quot;&gt;'+nextText+&quot;&lt;/span&gt;&lt;/a&gt;&quot;));var currentText=this._get(inst,&quot;currentText&quot;);var gotoDate=(this._get(inst,&quot;gotoCurrent&quot;)&amp;&amp;inst.currentDay?currentDate:today);currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));var controls=(!inst.inline?'&lt;button type=&quot;button&quot; class=&quot;ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all&quot; onclick=&quot;DP_jQuery.datepicker._hideDatepicker();&quot;&gt;'+this._get(inst,&quot;closeText&quot;)+&quot;&lt;/button&gt;&quot;:&quot;&quot;);var buttonPanel=(showButtonPanel)?'&lt;div class=&quot;ui-datepicker-buttonpane ui-widget-content&quot;&gt;'+(isRTL?controls:&quot;&quot;)+(this._isInRange(inst,gotoDate)?'&lt;button type=&quot;button&quot; class=&quot;ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all&quot; onclick=&quot;DP_jQuery.datepicker._gotoToday(\'#'+inst.id+&quot;');\&quot;&gt;&quot;+currentText+&quot;&lt;/button&gt;&quot;:&quot;&quot;)+(isRTL?&quot;&quot;:controls)+&quot;&lt;/div&gt;&quot;:&quot;&quot;;var firstDay=parseInt(this._get(inst,&quot;firstDay&quot;),10);firstDay=(isNaN(firstDay)?0:firstDay);var dayNames=this._get(inst,&quot;dayNames&quot;);var dayNamesShort=this._get(inst,&quot;dayNamesShort&quot;);var dayNamesMin=this._get(inst,&quot;dayNamesMin&quot;);var monthNames=this._get(inst,&quot;monthNames&quot;);var monthNamesShort=this._get(inst,&quot;monthNamesShort&quot;);var beforeShowDay=this._get(inst,&quot;beforeShowDay&quot;);var showOtherMonths=this._get(inst,&quot;showOtherMonths&quot;);var calculateWeek=this._get(inst,&quot;calculateWeek&quot;)||this.iso8601Week;var endDate=inst.endDay?this._daylightSavingAdjust(new Date(inst.endYear,inst.endMonth,inst.endDay)):currentDate;var defaultDate=this._getDefaultDate(inst);var html=&quot;&quot;;for(var row=0;row&lt;numMonths[0];row++){var group=&quot;&quot;;for(var col=0;col&lt;numMonths[1];col++){var selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));var cornerClass=&quot; ui-corner-all&quot;;var calender=&quot;&quot;;if(isMultiMonth){calender+='&lt;div class=&quot;ui-datepicker-group ui-datepicker-group-';switch(col){case 0:calender+=&quot;first&quot;;cornerClass=&quot; ui-corner-&quot;+(isRTL?&quot;right&quot;:&quot;left&quot;);break;case numMonths[1]-1:calender+=&quot;last&quot;;cornerClass=&quot; ui-corner-&quot;+(isRTL?&quot;left&quot;:&quot;right&quot;);break;default:calender+=&quot;middle&quot;;cornerClass=&quot;&quot;;break}calender+='&quot;&gt;'}calender+='&lt;div class=&quot;ui-datepicker-header ui-widget-header ui-helper-clearfix'+cornerClass+'&quot;&gt;'+(/all|left/.test(cornerClass)&amp;&amp;row==0?(isRTL?next:prev):&quot;&quot;)+(/all|right/.test(cornerClass)&amp;&amp;row==0?(isRTL?prev:next):&quot;&quot;)+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,row&gt;0||col&gt;0,monthNames,monthNamesShort)+'&lt;/div&gt;&lt;table class=&quot;ui-datepicker-calendar&quot;&gt;&lt;thead&gt;&lt;tr&gt;';var thead=&quot;&quot;;for(var dow=0;dow&lt;7;dow++){var day=(dow+firstDay)%7;thead+=&quot;&lt;th&quot;+((dow+firstDay+6)%7&gt;=5?' class=&quot;ui-datepicker-week-end&quot;':&quot;&quot;)+'&gt;&lt;span title=&quot;'+dayNames[day]+'&quot;&gt;'+dayNamesMin[day]+&quot;&lt;/span&gt;&lt;/th&gt;&quot;}calender+=thead+&quot;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&quot;;var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear==inst.selectedYear&amp;&amp;drawMonth==inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth)}var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;var numRows=(isMultiMonth?6:Math.ceil((leadDays+daysInMonth)/7));var printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(var dRow=0;dRow&lt;numRows;dRow++){calender+=&quot;&lt;tr&gt;&quot;;var tbody=&quot;&quot;;for(var dow=0;dow&lt;7;dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,&quot;&quot;]);var otherMonth=(printDate.getMonth()!=drawMonth);var unselectable=otherMonth||!daySettings[0]||(minDate&amp;&amp;printDate&lt;minDate)||(maxDate&amp;&amp;printDate&gt;maxDate);tbody+='&lt;td class=&quot;'+((dow+firstDay+6)%7&gt;=5?&quot; ui-datepicker-week-end&quot;:&quot;&quot;)+(otherMonth?&quot; ui-datepicker-other-month&quot;:&quot;&quot;)+((printDate.getTime()==selectedDate.getTime()&amp;&amp;drawMonth==inst.selectedMonth&amp;&amp;inst._keyEvent)||(defaultDate.getTime()==printDate.getTime()&amp;&amp;defaultDate.getTime()==selectedDate.getTime())?&quot; &quot;+this._dayOverClass:&quot;&quot;)+(unselectable?&quot; &quot;+this._unselectableClass+&quot; ui-state-disabled&quot;:&quot;&quot;)+(otherMonth&amp;&amp;!showOtherMonths?&quot;&quot;:&quot; &quot;+daySettings[1]+(printDate.getTime()&gt;=currentDate.getTime()&amp;&amp;printDate.getTime()&lt;=endDate.getTime()?&quot; &quot;+this._currentClass:&quot;&quot;)+(printDate.getTime()==today.getTime()?&quot; ui-datepicker-today&quot;:&quot;&quot;))+'&quot;'+((!otherMonth||showOtherMonths)&amp;&amp;daySettings[2]?' title=&quot;'+daySettings[2]+'&quot;':&quot;&quot;)+(unselectable?&quot;&quot;:&quot; onclick=\&quot;DP_jQuery.datepicker._selectDay('#&quot;+inst.id+&quot;',&quot;+drawMonth+&quot;,&quot;+drawYear+', this);return false;&quot;')+&quot;&gt;&quot;+(otherMonth?(showOtherMonths?printDate.getDate():&quot;&amp;#xa0;&quot;):(unselectable?'&lt;span class=&quot;ui-state-default&quot;&gt;'+printDate.getDate()+&quot;&lt;/span&gt;&quot;:'&lt;a class=&quot;ui-state-default'+(printDate.getTime()==today.getTime()?&quot; ui-state-highlight&quot;:&quot;&quot;)+(printDate.getTime()&gt;=currentDate.getTime()&amp;&amp;printDate.getTime()&lt;=endDate.getTime()?&quot; ui-state-active&quot;:&quot;&quot;)+'&quot; href=&quot;#&quot;&gt;'+printDate.getDate()+&quot;&lt;/a&gt;&quot;))+&quot;&lt;/td&gt;&quot;;printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate)}calender+=tbody+&quot;&lt;/tr&gt;&quot;}drawMonth++;if(drawMonth&gt;11){drawMonth=0;drawYear++}calender+=&quot;&lt;/tbody&gt;&lt;/table&gt;&quot;+(isMultiMonth?&quot;&lt;/div&gt;&quot;+((numMonths[0]&gt;0&amp;&amp;col==numMonths[1]-1)?'&lt;div class=&quot;ui-datepicker-row-break&quot;&gt;&lt;/div&gt;':&quot;&quot;):&quot;&quot;);group+=calender}html+=group}html+=buttonPanel+($.browser.msie&amp;&amp;parseInt($.browser.version,10)&lt;7&amp;&amp;!inst.inline?'&lt;iframe src=&quot;javascript:false;&quot; class=&quot;ui-datepicker-cover&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;':&quot;&quot;);inst._keyEvent=false;return html},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,secondary,monthNames,monthNamesShort){minDate=(inst.rangeStart&amp;&amp;minDate&amp;&amp;selectedDate&lt;minDate?selectedDate:minDate);var changeMonth=this._get(inst,&quot;changeMonth&quot;);var changeYear=this._get(inst,&quot;changeYear&quot;);var showMonthAfterYear=this._get(inst,&quot;showMonthAfterYear&quot;);var html='&lt;div class=&quot;ui-datepicker-title&quot;&gt;';var monthHtml=&quot;&quot;;if(secondary||!changeMonth){monthHtml+='&lt;span class=&quot;ui-datepicker-month&quot;&gt;'+monthNames[drawMonth]+&quot;&lt;/span&gt; &quot;}else{var inMinYear=(minDate&amp;&amp;minDate.getFullYear()==drawYear);var inMaxYear=(maxDate&amp;&amp;maxDate.getFullYear()==drawYear);monthHtml+='&lt;select class=&quot;ui-datepicker-month&quot; onchange=&quot;DP_jQuery.datepicker._selectMonthYear(\'#'+inst.id+&quot;', this, 'M');\&quot; onclick=\&quot;DP_jQuery.datepicker._clickMonthYear('#&quot;+inst.id+&quot;');\&quot;&gt;&quot;;for(var month=0;month&lt;12;month++){if((!inMinYear||month&gt;=minDate.getMonth())&amp;&amp;(!inMaxYear||month&lt;=maxDate.getMonth())){monthHtml+='&lt;option value=&quot;'+month+'&quot;'+(month==drawMonth?' selected=&quot;selected&quot;':&quot;&quot;)+&quot;&gt;&quot;+monthNamesShort[month]+&quot;&lt;/option&gt;&quot;}}monthHtml+=&quot;&lt;/select&gt;&quot;}if(!showMonthAfterYear){html+=monthHtml+((secondary||changeMonth||changeYear)&amp;&amp;(!(changeMonth&amp;&amp;changeYear))?&quot;&amp;#xa0;&quot;:&quot;&quot;)}if(secondary||!changeYear){html+='&lt;span class=&quot;ui-datepicker-year&quot;&gt;'+drawYear+&quot;&lt;/span&gt;&quot;}else{var years=this._get(inst,&quot;yearRange&quot;).split(&quot;:&quot;);var year=0;var endYear=0;if(years.length!=2){year=drawYear-10;endYear=drawYear+10}else{if(years[0].charAt(0)==&quot;+&quot;||years[0].charAt(0)==&quot;-&quot;){year=drawYear+parseInt(years[0],10);endYear=drawYear+parseInt(years[1],10)}else{year=parseInt(years[0],10);endYear=parseInt(years[1],10)}}year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);html+='&lt;select class=&quot;ui-datepicker-year&quot; onchange=&quot;DP_jQuery.datepicker._selectMonthYear(\'#'+inst.id+&quot;', this, 'Y');\&quot; onclick=\&quot;DP_jQuery.datepicker._clickMonthYear('#&quot;+inst.id+&quot;');\&quot;&gt;&quot;;for(;year&lt;=endYear;year++){html+='&lt;option value=&quot;'+year+'&quot;'+(year==drawYear?' selected=&quot;selected&quot;':&quot;&quot;)+&quot;&gt;&quot;+year+&quot;&lt;/option&gt;&quot;}html+=&quot;&lt;/select&gt;&quot;}if(showMonthAfterYear){html+=(secondary||changeMonth||changeYear?&quot;&amp;#xa0;&quot;:&quot;&quot;)+monthHtml}html+=&quot;&lt;/div&gt;&quot;;return html},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period==&quot;Y&quot;?offset:0);var month=inst.drawMonth+(period==&quot;M&quot;?offset:0);var day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period==&quot;D&quot;?offset:0);var date=this._daylightSavingAdjust(new Date(year,month,day));var minDate=this._getMinMaxDate(inst,&quot;min&quot;,true);var maxDate=this._getMinMaxDate(inst,&quot;max&quot;);date=(minDate&amp;&amp;date&lt;minDate?minDate:date);date=(maxDate&amp;&amp;date&gt;maxDate?maxDate:date);inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period==&quot;M&quot;||period==&quot;Y&quot;){this._notifyChange(inst)}},_notifyChange:function(inst){var onChange=this._get(inst,&quot;onChangeMonthYear&quot;);if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst])}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,&quot;numberOfMonths&quot;);return(numMonths==null?[1,1]:(typeof numMonths==&quot;number&quot;?[1,numMonths]:numMonths))},_getMinMaxDate:function(inst,minMax,checkRange){var date=this._determineDate(this._get(inst,minMax+&quot;Date&quot;),null);return(!checkRange||!inst.rangeStart?date:(!date||inst.rangeStart&gt;date?inst.rangeStart:date))},_getDaysInMonth:function(year,month){return 32-new Date(year,month,32).getDate()},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst);var date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset&lt;0?offset:numMonths[1]),1));if(offset&lt;0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()))}return this._isInRange(inst,date)},_isInRange:function(inst,date){var newMinDate=(!inst.rangeStart?null:this._daylightSavingAdjust(new Date(inst.selectedYear,inst.selectedMonth,inst.selectedDay)));newMinDate=(newMinDate&amp;&amp;inst.rangeStart&lt;newMinDate?inst.rangeStart:newMinDate);var minDate=newMinDate||this._getMinMaxDate(inst,&quot;min&quot;);var maxDate=this._getMinMaxDate(inst,&quot;max&quot;);return((!minDate||date&gt;=minDate)&amp;&amp;(!maxDate||date&lt;=maxDate))},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,&quot;shortYearCutoff&quot;);shortYearCutoff=(typeof shortYearCutoff!=&quot;string&quot;?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,&quot;dayNamesShort&quot;),dayNames:this._get(inst,&quot;dayNames&quot;),monthNamesShort:this._get(inst,&quot;monthNamesShort&quot;),monthNames:this._get(inst,&quot;monthNames&quot;)}},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear}var date=(day?(typeof day==&quot;object&quot;?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,&quot;dateFormat&quot;),date,this._getFormatConfig(inst))}});function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null||props[name]==undefined){target[name]=props[name]}}return target}function isArray(a){return(a&amp;&amp;(($.browser.safari&amp;&amp;typeof a==&quot;object&quot;&amp;&amp;a.length)||(a.constructor&amp;&amp;a.constructor.toString().match(/\Array\(\)/))))}$.fn.datepicker=function(options){if(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick).find(&quot;body&quot;).append($.datepicker.dpDiv);$.datepicker.initialized=true}var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options==&quot;string&quot;&amp;&amp;(options==&quot;isDisabled&quot;||options==&quot;getDate&quot;)){return $.datepicker[&quot;_&quot;+options+&quot;Datepicker&quot;].apply($.datepicker,[this[0]].concat(otherArgs))}return this.each(function(){typeof options==&quot;string&quot;?$.datepicker[&quot;_&quot;+options+&quot;Datepicker&quot;].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version=&quot;1.7.1&quot;;window.DP_jQuery=$})(jQuery);(function(b){b.widget(&quot;ui.progressbar&quot;,{_init:function(){this.element.addClass(&quot;ui-progressbar ui-widget ui-widget-content ui-corner-all&quot;).attr({role:&quot;progressbar&quot;,&quot;aria-valuemin&quot;:this._valueMin(),&quot;aria-valuemax&quot;:this._valueMax(),&quot;aria-valuenow&quot;:this._value()});this.valueDiv=b('&lt;div class=&quot;ui-progressbar-value ui-widget-header ui-corner-left&quot;&gt;&lt;/div&gt;').appendTo(this.element);this._refreshValue()},destroy:function(){this.element.removeClass(&quot;ui-progressbar ui-widget ui-widget-content ui-corner-all&quot;).removeAttr(&quot;role&quot;).removeAttr(&quot;aria-valuemin&quot;).removeAttr(&quot;aria-valuemax&quot;).removeAttr(&quot;aria-valuenow&quot;).removeData(&quot;progressbar&quot;).unbind(&quot;.progressbar&quot;);this.valueDiv.remove();b.widget.prototype.destroy.apply(this,arguments)},value:function(a){arguments.length&amp;&amp;this._setData(&quot;value&quot;,a);return this._value()},_setData:function(a,d){switch(a){case&quot;value&quot;:this.options.value=d;this._refreshValue();this._trigger(&quot;change&quot;,null,{});break}b.widget.prototype._setData.apply(this,arguments)},_value:function(){var a=this.options.value;if(a&lt;this._valueMin()){a=this._valueMin()}if(a&gt;this._valueMax()){a=this._valueMax()}return a},_valueMin:function(){var a=0;return a},_valueMax:function(){var a=100;return a},_refreshValue:function(){var a=this.value();this.valueDiv[a==this._valueMax()?&quot;addClass&quot;:&quot;removeClass&quot;](&quot;ui-corner-right&quot;);this.valueDiv.width(a+&quot;%&quot;);this.element.attr(&quot;aria-valuenow&quot;,a)}});b.extend(b.ui.progressbar,{version:&quot;1.7.1&quot;,defaults:{value:0}})})(jQuery);jQuery.effects||(function(j){j.effects={version:&quot;1.7.1&quot;,save:function(b,a){for(var c=0;c&lt;a.length;c++){if(a[c]!==null){b.data(&quot;ec.storage.&quot;+a[c],b[0].style[a[c]])}}},restore:function(b,a){for(var c=0;c&lt;a.length;c++){if(a[c]!==null){b.css(a[c],b.data(&quot;ec.storage.&quot;+a[c]))}}},setMode:function(b,a){if(a==&quot;toggle&quot;){a=b.is(&quot;:hidden&quot;)?&quot;show&quot;:&quot;hide&quot;}return a},getBaseline:function(c,b){var a,d;switch(c[0]){case&quot;top&quot;:a=0;break;case&quot;middle&quot;:a=0.5;break;case&quot;bottom&quot;:a=1;break;default:a=c[0]/b.height}switch(c[1]){case&quot;left&quot;:d=0;break;case&quot;center&quot;:d=0.5;break;case&quot;right&quot;:d=1;break;default:d=c[1]/b.width}return{x:d,y:a}},createWrapper:function(e){if(e.parent().is(&quot;.ui-effects-wrapper&quot;)){return e.parent()}var d={width:e.outerWidth(true),height:e.outerHeight(true),&quot;float&quot;:e.css(&quot;float&quot;)};e.wrap('&lt;div class=&quot;ui-effects-wrapper&quot; style=&quot;font-size:100%;background:transparent;border:none;margin:0;padding:0&quot;&gt;&lt;/div&gt;');var a=e.parent();if(e.css(&quot;position&quot;)==&quot;static&quot;){a.css({position:&quot;relative&quot;});e.css({position:&quot;relative&quot;})}else{var b=e.css(&quot;top&quot;);if(isNaN(parseInt(b,10))){b=&quot;auto&quot;}var c=e.css(&quot;left&quot;);if(isNaN(parseInt(c,10))){c=&quot;auto&quot;}a.css({position:e.css(&quot;position&quot;),top:b,left:c,zIndex:e.css(&quot;z-index&quot;)}).show();e.css({position:&quot;relative&quot;,top:0,left:0})}a.css(d);return a},removeWrapper:function(a){if(a.parent().is(&quot;.ui-effects-wrapper&quot;)){return a.parent().replaceWith(a)}return a},setTransition:function(c,a,d,b){b=b||{};j.each(a,function(e,l){unit=c.cssUnit(l);if(unit[0]&gt;0){b[l]=unit[0]*d+unit[1]}});return b},animateClass:function(d,c,a,b){var l=(typeof a==&quot;function&quot;?a:(b?b:null));var e=(typeof a==&quot;string&quot;?a:null);return this.each(function(){var w={};var y=j(this);var x=y.attr(&quot;style&quot;)||&quot;&quot;;if(typeof x==&quot;object&quot;){x=x.cssText}if(d.toggle){y.hasClass(d.toggle)?d.remove=d.toggle:d.add=d.toggle}var u=j.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(d.add){y.addClass(d.add)}if(d.remove){y.removeClass(d.remove)}var n=j.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(d.add){y.removeClass(d.add)}if(d.remove){y.addClass(d.remove)}for(var v in n){if(typeof n[v]!=&quot;function&quot;&amp;&amp;n[v]&amp;&amp;v.indexOf(&quot;Moz&quot;)==-1&amp;&amp;v.indexOf(&quot;length&quot;)==-1&amp;&amp;n[v]!=u[v]&amp;&amp;(v.match(/color/i)||(!v.match(/color/i)&amp;&amp;!isNaN(parseInt(n[v],10))))&amp;&amp;(u.position!=&quot;static&quot;||(u.position==&quot;static&quot;&amp;&amp;!v.match(/left|top|bottom|right/)))){w[v]=n[v]}}y.animate(w,c,e,function(){if(typeof j(this).attr(&quot;style&quot;)==&quot;object&quot;){j(this).attr(&quot;style&quot;)[&quot;cssText&quot;]=&quot;&quot;;j(this).attr(&quot;style&quot;)[&quot;cssText&quot;]=x}else{j(this).attr(&quot;style&quot;,x)}if(d.add){j(this).addClass(d.add)}if(d.remove){j(this).removeClass(d.remove)}if(l){l.apply(this,arguments)}})})}};function k(d,e){var b=d[1]&amp;&amp;d[1].constructor==Object?d[1]:{};if(e){b.mode=e}var c=d[1]&amp;&amp;d[1].constructor!=Object?d[1]:(b.duration?b.duration:d[2]);c=j.fx.off?0:typeof c===&quot;number&quot;?c:j.fx.speeds[c]||j.fx.speeds._default;var a=b.callback||(j.isFunction(d[1])&amp;&amp;d[1])||(j.isFunction(d[2])&amp;&amp;d[2])||(j.isFunction(d[3])&amp;&amp;d[3]);return[d[0],b,c,a]}j.fn.extend({_show:j.fn.show,_hide:j.fn.hide,__toggle:j.fn.toggle,_addClass:j.fn.addClass,_removeClass:j.fn.removeClass,_toggleClass:j.fn.toggleClass,effect:function(c,d,b,a){return j.effects[c]?j.effects[c].call(this,{method:c,options:d||{},duration:b,callback:a}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._show.apply(this,arguments)}else{return this.effect.apply(this,k(arguments,&quot;show&quot;))}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._hide.apply(this,arguments)}else{return this.effect.apply(this,k(arguments,&quot;hide&quot;))}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))||(arguments[0].constructor==Function)){return this.__toggle.apply(this,arguments)}else{return this.effect.apply(this,k(arguments,&quot;toggle&quot;))}},addClass:function(c,d,a,b){return d?j.effects.animateClass.apply(this,[{add:c},d,a,b]):this._addClass(c)},removeClass:function(c,d,a,b){return d?j.effects.animateClass.apply(this,[{remove:c},d,a,b]):this._removeClass(c)},toggleClass:function(c,d,a,b){return((typeof d!==&quot;boolean&quot;)&amp;&amp;d)?j.effects.animateClass.apply(this,[{toggle:c},d,a,b]):this._toggleClass(c,d)},morph:function(e,c,d,a,b){return j.effects.animateClass.apply(this,[{add:c,remove:e},d,a,b])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(c){var b=this.css(c),a=[];j.each([&quot;em&quot;,&quot;px&quot;,&quot;%&quot;,&quot;pt&quot;],function(e,d){if(b.indexOf(d)&gt;0){a=[parseFloat(b),d]}});return a}});j.each([&quot;backgroundColor&quot;,&quot;borderBottomColor&quot;,&quot;borderLeftColor&quot;,&quot;borderRightColor&quot;,&quot;borderTopColor&quot;,&quot;color&quot;,&quot;outlineColor&quot;],function(a,b){j.fx.step[b]=function(c){if(c.state==0){c.start=h(c.elem,b);c.end=f(c.end)}c.elem.style[b]=&quot;rgb(&quot;+[Math.max(Math.min(parseInt((c.pos*(c.end[0]-c.start[0]))+c.start[0],10),255),0),Math.max(Math.min(parseInt((c.pos*(c.end[1]-c.start[1]))+c.start[1],10),255),0),Math.max(Math.min(parseInt((c.pos*(c.end[2]-c.start[2]))+c.start[2],10),255),0)].join(&quot;,&quot;)+&quot;)&quot;}});function f(a){var b;if(a&amp;&amp;a.constructor==Array&amp;&amp;a.length==3){return a}if(b=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(a)){return[parseInt(b[1],10),parseInt(b[2],10),parseInt(b[3],10)]}if(b=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(a)){return[parseFloat(b[1])*2.55,parseFloat(b[2])*2.55,parseFloat(b[3])*2.55]}if(b=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(a)){return[parseInt(b[1],16),parseInt(b[2],16),parseInt(b[3],16)]}if(b=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(a)){return[parseInt(b[1]+b[1],16),parseInt(b[2]+b[2],16),parseInt(b[3]+b[3],16)]}if(b=/rgba\(0, 0, 0, 0\)/.exec(a)){return g.transparent}return g[j.trim(a).toLowerCase()]}function h(a,c){var b;do{b=j.curCSS(a,c);if(b!=&quot;&quot;&amp;&amp;b!=&quot;transparent&quot;||j.nodeName(a,&quot;body&quot;)){break}c=&quot;backgroundColor&quot;}while(a=a.parentNode);return f(b)}var g={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};j.easing.jswing=j.easing.swing;j.extend(j.easing,{def:&quot;easeOutQuad&quot;,swing:function(d,c,e,a,b){return j.easing[j.easing.def](d,c,e,a,b)},easeInQuad:function(d,c,e,a,b){return a*(c/=b)*c+e},easeOutQuad:function(d,c,e,a,b){return -a*(c/=b)*(c-2)+e},easeInOutQuad:function(d,c,e,a,b){if((c/=b/2)&lt;1){return a/2*c*c+e}return -a/2*((--c)*(c-2)-1)+e},easeInCubic:function(d,c,e,a,b){return a*(c/=b)*c*c+e},easeOutCubic:function(d,c,e,a,b){return a*((c=c/b-1)*c*c+1)+e},easeInOutCubic:function(d,c,e,a,b){if((c/=b/2)&lt;1){return a/2*c*c*c+e}return a/2*((c-=2)*c*c+2)+e},easeInQuart:function(d,c,e,a,b){return a*(c/=b)*c*c*c+e},easeOutQuart:function(d,c,e,a,b){return -a*((c=c/b-1)*c*c*c-1)+e},easeInOutQuart:function(d,c,e,a,b){if((c/=b/2)&lt;1){return a/2*c*c*c*c+e}return -a/2*((c-=2)*c*c*c-2)+e},easeInQuint:function(d,c,e,a,b){return a*(c/=b)*c*c*c*c+e},easeOutQuint:function(d,c,e,a,b){return a*((c=c/b-1)*c*c*c*c+1)+e},easeInOutQuint:function(d,c,e,a,b){if((c/=b/2)&lt;1){return a/2*c*c*c*c*c+e}return a/2*((c-=2)*c*c*c*c+2)+e},easeInSine:function(d,c,e,a,b){return -a*Math.cos(c/b*(Math.PI/2))+a+e},easeOutSine:function(d,c,e,a,b){return a*Math.sin(c/b*(Math.PI/2))+e},easeInOutSine:function(d,c,e,a,b){return -a/2*(Math.cos(Math.PI*c/b)-1)+e},easeInExpo:function(d,c,e,a,b){return(c==0)?e:a*Math.pow(2,10*(c/b-1))+e},easeOutExpo:function(d,c,e,a,b){return(c==b)?e+a:a*(-Math.pow(2,-10*c/b)+1)+e},easeInOutExpo:function(d,c,e,a,b){if(c==0){return e}if(c==b){return e+a}if((c/=b/2)&lt;1){return a/2*Math.pow(2,10*(c-1))+e}return a/2*(-Math.pow(2,-10*--c)+2)+e},easeInCirc:function(d,c,e,a,b){return -a*(Math.sqrt(1-(c/=b)*c)-1)+e},easeOutCirc:function(d,c,e,a,b){return a*Math.sqrt(1-(c=c/b-1)*c)+e},easeInOutCirc:function(d,c,e,a,b){if((c/=b/2)&lt;1){return -a/2*(Math.sqrt(1-c*c)-1)+e}return a/2*(Math.sqrt(1-(c-=2)*c)+1)+e},easeInElastic:function(o,e,p,a,b){var d=1.70158;var c=0;var n=a;if(e==0){return p}if((e/=b)==1){return p+a}if(!c){c=b*0.3}if(n&lt;Math.abs(a)){n=a;var d=c/4}else{var d=c/(2*Math.PI)*Math.asin(a/n)}return -(n*Math.pow(2,10*(e-=1))*Math.sin((e*b-d)*(2*Math.PI)/c))+p},easeOutElastic:function(o,e,p,a,b){var d=1.70158;var c=0;var n=a;if(e==0){return p}if((e/=b)==1){return p+a}if(!c){c=b*0.3}if(n&lt;Math.abs(a)){n=a;var d=c/4}else{var d=c/(2*Math.PI)*Math.asin(a/n)}return n*Math.pow(2,-10*e)*Math.sin((e*b-d)*(2*Math.PI)/c)+a+p},easeInOutElastic:function(o,e,p,a,b){var d=1.70158;var c=0;var n=a;if(e==0){return p}if((e/=b/2)==2){return p+a}if(!c){c=b*(0.3*1.5)}if(n&lt;Math.abs(a)){n=a;var d=c/4}else{var d=c/(2*Math.PI)*Math.asin(a/n)}if(e&lt;1){return -0.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e*b-d)*(2*Math.PI)/c))+p}return n*Math.pow(2,-10*(e-=1))*Math.sin((e*b-d)*(2*Math.PI)/c)*0.5+a+p},easeInBack:function(e,d,l,a,b,c){if(c==undefined){c=1.70158}return a*(d/=b)*d*((c+1)*d-c)+l},easeOutBack:function(e,d,l,a,b,c){if(c==undefined){c=1.70158}return a*((d=d/b-1)*d*((c+1)*d+c)+1)+l},easeInOutBack:function(e,d,l,a,b,c){if(c==undefined){c=1.70158}if((d/=b/2)&lt;1){return a/2*(d*d*(((c*=(1.525))+1)*d-c))+l}return a/2*((d-=2)*d*(((c*=(1.525))+1)*d+c)+2)+l},easeInBounce:function(d,c,e,a,b){return a-j.easing.easeOutBounce(d,b-c,0,a,b)+e},easeOutBounce:function(d,c,e,a,b){if((c/=b)&lt;(1/2.75)){return a*(7.5625*c*c)+e}else{if(c&lt;(2/2.75)){return a*(7.5625*(c-=(1.5/2.75))*c+0.75)+e}else{if(c&lt;(2.5/2.75)){return a*(7.5625*(c-=(2.25/2.75))*c+0.9375)+e}else{return a*(7.5625*(c-=(2.625/2.75))*c+0.984375)+e}}}},easeInOutBounce:function(d,c,e,a,b){if(c&lt;b/2){return j.easing.easeInBounce(d,c*2,0,a,b)*0.5+e}return j.easing.easeOutBounce(d,c*2-b,0,a,b)*0.5+a*0.5+e}})})(jQuery);(function(b){b.effects.blind=function(a){return this.queue(function(){var q=b(this),r=[&quot;position&quot;,&quot;top&quot;,&quot;left&quot;];var m=b.effects.setMode(q,a.options.mode||&quot;hide&quot;);var n=a.options.direction||&quot;vertical&quot;;b.effects.save(q,r);q.show();var k=b.effects.createWrapper(q).css({overflow:&quot;hidden&quot;});var p=(n==&quot;vertical&quot;)?&quot;height&quot;:&quot;width&quot;;var l=(n==&quot;vertical&quot;)?k.height():k.width();if(m==&quot;show&quot;){k.css(p,0)}var o={};o[p]=m==&quot;show&quot;?l:0;k.animate(o,a.duration,a.options.easing,function(){if(m==&quot;hide&quot;){q.hide()}b.effects.restore(q,r);b.effects.removeWrapper(q);if(a.callback){a.callback.apply(q[0],arguments)}q.dequeue()})})}})(jQuery);(function(b){b.effects.bounce=function(a){return this.queue(function(){var C=b(this),w=[&quot;position&quot;,&quot;top&quot;,&quot;left&quot;];var x=b.effects.setMode(C,a.options.mode||&quot;effect&quot;);var u=a.options.direction||&quot;up&quot;;var E=a.options.distance||20;var D=a.options.times||5;var A=a.duration||250;if(/show|hide/.test(x)){w.push(&quot;opacity&quot;)}b.effects.save(C,w);C.show();b.effects.createWrapper(C);var B=(u==&quot;up&quot;||u==&quot;down&quot;)?&quot;top&quot;:&quot;left&quot;;var q=(u==&quot;up&quot;||u==&quot;left&quot;)?&quot;pos&quot;:&quot;neg&quot;;var E=a.options.distance||(B==&quot;top&quot;?C.outerHeight({margin:true})/3:C.outerWidth({margin:true})/3);if(x==&quot;show&quot;){C.css(&quot;opacity&quot;,0).css(B,q==&quot;pos&quot;?-E:E)}if(x==&quot;hide&quot;){E=E/(D*2)}if(x!=&quot;hide&quot;){D--}if(x==&quot;show&quot;){var z={opacity:1};z[B]=(q==&quot;pos&quot;?&quot;+=&quot;:&quot;-=&quot;)+E;C.animate(z,A/2,a.options.easing);E=E/2;D--}for(var y=0;y&lt;D;y++){var r={},v={};r[B]=(q==&quot;pos&quot;?&quot;-=&quot;:&quot;+=&quot;)+E;v[B]=(q==&quot;pos&quot;?&quot;+=&quot;:&quot;-=&quot;)+E;C.animate(r,A/2,a.options.easing).animate(v,A/2,a.options.easing);E=(x==&quot;hide&quot;)?E*2:E/2}if(x==&quot;hide&quot;){var z={opacity:0};z[B]=(q==&quot;pos&quot;?&quot;-=&quot;:&quot;+=&quot;)+E;C.animate(z,A/2,a.options.easing,function(){C.hide();b.effects.restore(C,w);b.effects.removeWrapper(C);if(a.callback){a.callback.apply(this,arguments)}})}else{var r={},v={};r[B]=(q==&quot;pos&quot;?&quot;-=&quot;:&quot;+=&quot;)+E;v[B]=(q==&quot;pos&quot;?&quot;+=&quot;:&quot;-=&quot;)+E;C.animate(r,A/2,a.options.easing).animate(v,A/2,a.options.easing,function(){b.effects.restore(C,w);b.effects.removeWrapper(C);if(a.callback){a.callback.apply(this,arguments)}})}C.queue(&quot;fx&quot;,function(){C.dequeue()});C.dequeue()})}})(jQuery);(function(b){b.effects.clip=function(a){return this.queue(function(){var q=b(this),m=[&quot;position&quot;,&quot;top&quot;,&quot;left&quot;,&quot;height&quot;,&quot;width&quot;];var n=b.effects.setMode(q,a.options.mode||&quot;hide&quot;);var l=a.options.direction||&quot;vertical&quot;;b.effects.save(q,m);q.show();var v=b.effects.createWrapper(q).css({overflow:&quot;hidden&quot;});var r=q[0].tagName==&quot;IMG&quot;?v:q;var p={size:(l==&quot;vertical&quot;)?&quot;height&quot;:&quot;width&quot;,position:(l==&quot;vertical&quot;)?&quot;top&quot;:&quot;left&quot;};var u=(l==&quot;vertical&quot;)?r.height():r.width();if(n==&quot;show&quot;){r.css(p.size,0);r.css(p.position,u/2)}var o={};o[p.size]=n==&quot;show&quot;?u:0;o[p.position]=n==&quot;show&quot;?0:u/2;r.animate(o,{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){if(n==&quot;hide&quot;){q.hide()}b.effects.restore(q,m);b.effects.removeWrapper(q);if(a.callback){a.callback.apply(q[0],arguments)}q.dequeue()}})})}})(jQuery);(function(b){b.effects.drop=function(a){return this.queue(function(){var p=b(this),q=[&quot;position&quot;,&quot;top&quot;,&quot;left&quot;,&quot;opacity&quot;];var l=b.effects.setMode(p,a.options.mode||&quot;hide&quot;);var m=a.options.direction||&quot;left&quot;;b.effects.save(p,q);p.show();b.effects.createWrapper(p);var o=(m==&quot;up&quot;||m==&quot;down&quot;)?&quot;top&quot;:&quot;left&quot;;var r=(m==&quot;up&quot;||m==&quot;left&quot;)?&quot;pos&quot;:&quot;neg&quot;;var k=a.options.distance||(o==&quot;top&quot;?p.outerHeight({margin:true})/2:p.outerWidth({margin:true})/2);if(l==&quot;show&quot;){p.css(&quot;opacity&quot;,0).css(o,r==&quot;pos&quot;?-k:k)}var n={opacity:l==&quot;show&quot;?1:0};n[o]=(l==&quot;show&quot;?(r==&quot;pos&quot;?&quot;+=&quot;:&quot;-=&quot;):(r==&quot;pos&quot;?&quot;-=&quot;:&quot;+=&quot;))+k;p.animate(n,{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){if(l==&quot;hide&quot;){p.hide()}b.effects.restore(p,q);b.effects.removeWrapper(p);if(a.callback){a.callback.apply(this,arguments)}p.dequeue()}})})}})(jQuery);(function(b){b.effects.explode=function(a){return this.queue(function(){var m=a.options.pieces?Math.round(Math.sqrt(a.options.pieces)):3;var q=a.options.pieces?Math.round(Math.sqrt(a.options.pieces)):3;a.options.mode=a.options.mode==&quot;toggle&quot;?(b(this).is(&quot;:visible&quot;)?&quot;hide&quot;:&quot;show&quot;):a.options.mode;var n=b(this).show().css(&quot;visibility&quot;,&quot;hidden&quot;);var j=n.offset();j.top-=parseInt(n.css(&quot;marginTop&quot;),10)||0;j.left-=parseInt(n.css(&quot;marginLeft&quot;),10)||0;var o=n.outerWidth(true);var u=n.outerHeight(true);for(var p=0;p&lt;m;p++){for(var r=0;r&lt;q;r++){n.clone().appendTo(&quot;body&quot;).wrap(&quot;&lt;div&gt;&lt;/div&gt;&quot;).css({position:&quot;absolute&quot;,visibility:&quot;visible&quot;,left:-r*(o/q),top:-p*(u/m)}).parent().addClass(&quot;ui-effects-explode&quot;).css({position:&quot;absolute&quot;,overflow:&quot;hidden&quot;,width:o/q,height:u/m,left:j.left+r*(o/q)+(a.options.mode==&quot;show&quot;?(r-Math.floor(q/2))*(o/q):0),top:j.top+p*(u/m)+(a.options.mode==&quot;show&quot;?(p-Math.floor(m/2))*(u/m):0),opacity:a.options.mode==&quot;show&quot;?0:1}).animate({left:j.left+r*(o/q)+(a.options.mode==&quot;show&quot;?0:(r-Math.floor(q/2))*(o/q)),top:j.top+p*(u/m)+(a.options.mode==&quot;show&quot;?0:(p-Math.floor(m/2))*(u/m)),opacity:a.options.mode==&quot;show&quot;?1:0},a.duration||500)}}setTimeout(function(){a.options.mode==&quot;show&quot;?n.css({visibility:&quot;visible&quot;}):n.css({visibility:&quot;visible&quot;}).hide();if(a.callback){a.callback.apply(n[0])}n.dequeue();b(&quot;div.ui-effects-explode&quot;).remove()},a.duration||500)})}})(jQuery);(function(b){b.effects.fold=function(a){return this.queue(function(){var B=b(this),v=[&quot;position&quot;,&quot;top&quot;,&quot;left&quot;];var y=b.effects.setMode(B,a.options.mode||&quot;hide&quot;);var p=a.options.size||15;var q=!(!a.options.horizFirst);var z=a.duration?a.duration/2:b.fx.speeds._default/2;b.effects.save(B,v);B.show();var C=b.effects.createWrapper(B).css({overflow:&quot;hidden&quot;});var x=((y==&quot;show&quot;)!=q);var A=x?[&quot;width&quot;,&quot;height&quot;]:[&quot;height&quot;,&quot;width&quot;];var D=x?[C.width(),C.height()]:[C.height(),C.width()];var w=/([0-9]+)%/.exec(p);if(w){p=parseInt(w[1],10)/100*D[y==&quot;hide&quot;?0:1]}if(y==&quot;show&quot;){C.css(q?{height:0,width:p}:{height:p,width:0})}var r={},u={};r[A[0]]=y==&quot;show&quot;?D[0]:p;u[A[1]]=y==&quot;show&quot;?D[1]:0;C.animate(r,z,a.options.easing).animate(u,z,a.options.easing,function(){if(y==&quot;hide&quot;){B.hide()}b.effects.restore(B,v);b.effects.removeWrapper(B);if(a.callback){a.callback.apply(B[0],arguments)}B.dequeue()})})}})(jQuery);(function(b){b.effects.highlight=function(a){return this.queue(function(){var m=b(this),n=[&quot;backgroundImage&quot;,&quot;backgroundColor&quot;,&quot;opacity&quot;];var j=b.effects.setMode(m,a.options.mode||&quot;show&quot;);var o=a.options.color||&quot;#ffff99&quot;;var k=m.css(&quot;backgroundColor&quot;);b.effects.save(m,n);m.show();m.css({backgroundImage:&quot;none&quot;,backgroundColor:o});var l={backgroundColor:k};if(j==&quot;hide&quot;){l.opacity=0}m.animate(l,{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){if(j==&quot;hide&quot;){m.hide()}b.effects.restore(m,n);if(j==&quot;show&quot;&amp;&amp;b.browser.msie){this.style.removeAttribute(&quot;filter&quot;)}if(a.callback){a.callback.apply(this,arguments)}m.dequeue()}})})}})(jQuery);(function(b){b.effects.pulsate=function(a){return this.queue(function(){var l=b(this);var h=b.effects.setMode(l,a.options.mode||&quot;show&quot;);var j=a.options.times||5;var k=a.duration?a.duration/2:b.fx.speeds._default/2;if(h==&quot;hide&quot;){j--}if(l.is(&quot;:hidden&quot;)){l.css(&quot;opacity&quot;,0);l.show();l.animate({opacity:1},k,a.options.easing);j=j-2}for(var m=0;m&lt;j;m++){l.animate({opacity:0},k,a.options.easing).animate({opacity:1},k,a.options.easing)}if(h==&quot;hide&quot;){l.animate({opacity:0},k,a.options.easing,function(){l.hide();if(a.callback){a.callback.apply(this,arguments)}})}else{l.animate({opacity:0},k,a.options.easing).animate({opacity:1},k,a.options.easing,function(){if(a.callback){a.callback.apply(this,arguments)}})}l.queue(&quot;fx&quot;,function(){l.dequeue()});l.dequeue()})}})(jQuery);(function(b){b.effects.puff=function(a){return this.queue(function(){var l=b(this);var o=b.extend(true,{},a.options);var j=b.effects.setMode(l,a.options.mode||&quot;hide&quot;);var k=parseInt(a.options.percent,10)||150;o.fade=true;var m={height:l.height(),width:l.width()};var n=k/100;l.from=(j==&quot;hide&quot;)?m:{height:m.height*n,width:m.width*n};o.from=l.from;o.percent=(j==&quot;hide&quot;)?k:100;o.mode=j;l.effect(&quot;scale&quot;,o,a.duration,a.callback);l.dequeue()})};b.effects.scale=function(a){return this.queue(function(){var n=b(this);var q=b.extend(true,{},a.options);var k=b.effects.setMode(n,a.options.mode||&quot;effect&quot;);var m=parseInt(a.options.percent,10)||(parseInt(a.options.percent,10)==0?0:(k==&quot;hide&quot;?0:100));var l=a.options.direction||&quot;both&quot;;var r=a.options.origin;if(k!=&quot;effect&quot;){q.origin=r||[&quot;middle&quot;,&quot;center&quot;];q.restore=true}var o={height:n.height(),width:n.width()};n.from=a.options.from||(k==&quot;show&quot;?{height:0,width:0}:o);var p={y:l!=&quot;horizontal&quot;?(m/100):1,x:l!=&quot;vertical&quot;?(m/100):1};n.to={height:o.height*p.y,width:o.width*p.x};if(a.options.fade){if(k==&quot;show&quot;){n.from.opacity=0;n.to.opacity=1}if(k==&quot;hide&quot;){n.from.opacity=1;n.to.opacity=0}}q.from=n.from;q.to=n.to;q.mode=k;n.effect(&quot;size&quot;,q,a.duration,a.callback);n.dequeue()})};b.effects.size=function(a){return this.queue(function(){var F=b(this),u=[&quot;position&quot;,&quot;top&quot;,&quot;left&quot;,&quot;width&quot;,&quot;height&quot;,&quot;overflow&quot;,&quot;opacity&quot;];var v=[&quot;position&quot;,&quot;top&quot;,&quot;left&quot;,&quot;overflow&quot;,&quot;opacity&quot;];var y=[&quot;width&quot;,&quot;height&quot;,&quot;overflow&quot;];var q=[&quot;fontSize&quot;];var x=[&quot;borderTopWidth&quot;,&quot;borderBottomWidth&quot;,&quot;paddingTop&quot;,&quot;paddingBottom&quot;];var C=[&quot;borderLeftWidth&quot;,&quot;borderRightWidth&quot;,&quot;paddingLeft&quot;,&quot;paddingRight&quot;];var B=b.effects.setMode(F,a.options.mode||&quot;effect&quot;);var z=a.options.restore||false;var D=a.options.scale||&quot;both&quot;;var r=a.options.origin;var E={height:F.height(),width:F.width()};F.from=a.options.from||E;F.to=a.options.to||E;if(r){var A=b.effects.getBaseline(r,E);F.from.top=(E.height-F.from.height)*A.y;F.from.left=(E.width-F.from.width)*A.x;F.to.top=(E.height-F.to.height)*A.y;F.to.left=(E.width-F.to.width)*A.x}var w={from:{y:F.from.height/E.height,x:F.from.width/E.width},to:{y:F.to.height/E.height,x:F.to.width/E.width}};if(D==&quot;box&quot;||D==&quot;both&quot;){if(w.from.y!=w.to.y){u=u.concat(x);F.from=b.effects.setTransition(F,x,w.from.y,F.from);F.to=b.effects.setTransition(F,x,w.to.y,F.to)}if(w.from.x!=w.to.x){u=u.concat(C);F.from=b.effects.setTransition(F,C,w.from.x,F.from);F.to=b.effects.setTransition(F,C,w.to.x,F.to)}}if(D==&quot;content&quot;||D==&quot;both&quot;){if(w.from.y!=w.to.y){u=u.concat(q);F.from=b.effects.setTransition(F,q,w.from.y,F.from);F.to=b.effects.setTransition(F,q,w.to.y,F.to)}}b.effects.save(F,z?u:v);F.show();b.effects.createWrapper(F);F.css(&quot;overflow&quot;,&quot;hidden&quot;).css(F.from);if(D==&quot;content&quot;||D==&quot;both&quot;){x=x.concat([&quot;marginTop&quot;,&quot;marginBottom&quot;]).concat(q);C=C.concat([&quot;marginLeft&quot;,&quot;marginRight&quot;]);y=u.concat(x).concat(C);F.find(&quot;*[width]&quot;).each(function(){child=b(this);if(z){b.effects.save(child,y)}var c={height:child.height(),width:child.width()};child.from={height:c.height*w.from.y,width:c.width*w.from.x};child.to={height:c.height*w.to.y,width:c.width*w.to.x};if(w.from.y!=w.to.y){child.from=b.effects.setTransition(child,x,w.from.y,child.from);child.to=b.effects.setTransition(child,x,w.to.y,child.to)}if(w.from.x!=w.to.x){child.from=b.effects.setTransition(child,C,w.from.x,child.from);child.to=b.effects.setTransition(child,C,w.to.x,child.to)}child.css(child.from);child.animate(child.to,a.duration,a.options.easing,function(){if(z){b.effects.restore(child,y)}})})}F.animate(F.to,{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){if(B==&quot;hide&quot;){F.hide()}b.effects.restore(F,z?u:v);b.effects.removeWrapper(F);if(a.callback){a.callback.apply(this,arguments)}F.dequeue()}})})}})(jQuery);(function(b){b.effects.shake=function(a){return this.queue(function(){var C=b(this),w=[&quot;position&quot;,&quot;top&quot;,&quot;left&quot;];var x=b.effects.setMode(C,a.options.mode||&quot;effect&quot;);var u=a.options.direction||&quot;left&quot;;var E=a.options.distance||20;var D=a.options.times||3;var A=a.duration||a.options.duration||140;b.effects.save(C,w);C.show();b.effects.createWrapper(C);var B=(u==&quot;up&quot;||u==&quot;down&quot;)?&quot;top&quot;:&quot;left&quot;;var q=(u==&quot;up&quot;||u==&quot;left&quot;)?&quot;pos&quot;:&quot;neg&quot;;var z={},r={},v={};z[B]=(q==&quot;pos&quot;?&quot;-=&quot;:&quot;+=&quot;)+E;r[B]=(q==&quot;pos&quot;?&quot;+=&quot;:&quot;-=&quot;)+E*2;v[B]=(q==&quot;pos&quot;?&quot;-=&quot;:&quot;+=&quot;)+E*2;C.animate(z,A,a.options.easing);for(var y=1;y&lt;D;y++){C.animate(r,A,a.options.easing).animate(v,A,a.options.easing)}C.animate(r,A,a.options.easing).animate(z,A/2,a.options.easing,function(){b.effects.restore(C,w);b.effects.removeWrapper(C);if(a.callback){a.callback.apply(this,arguments)}});C.queue(&quot;fx&quot;,function(){C.dequeue()});C.dequeue()})}})(jQuery);(function(b){b.effects.slide=function(a){return this.queue(function(){var p=b(this),q=[&quot;position&quot;,&quot;top&quot;,&quot;left&quot;];var l=b.effects.setMode(p,a.options.mode||&quot;show&quot;);var m=a.options.direction||&quot;left&quot;;b.effects.save(p,q);p.show();b.effects.createWrapper(p).css({overflow:&quot;hidden&quot;});var o=(m==&quot;up&quot;||m==&quot;down&quot;)?&quot;top&quot;:&quot;left&quot;;var r=(m==&quot;up&quot;||m==&quot;left&quot;)?&quot;pos&quot;:&quot;neg&quot;;var k=a.options.distance||(o==&quot;top&quot;?p.outerHeight({margin:true}):p.outerWidth({margin:true}));if(l==&quot;show&quot;){p.css(o,r==&quot;pos&quot;?-k:k)}var n={};n[o]=(l==&quot;show&quot;?(r==&quot;pos&quot;?&quot;+=&quot;:&quot;-=&quot;):(r==&quot;pos&quot;?&quot;-=&quot;:&quot;+=&quot;))+k;p.animate(n,{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){if(l==&quot;hide&quot;){p.hide()}b.effects.restore(p,q);b.effects.removeWrapper(p);if(a.callback){a.callback.apply(this,arguments)}p.dequeue()}})})}})(jQuery);(function(b){b.effects.transfer=function(a){return this.queue(function(){var l=b(this),j=b(a.options.to),m=j.offset(),k={top:m.top,left:m.left,height:j.innerHeight(),width:j.innerWidth()},n=l.offset(),o=b('&lt;div class=&quot;ui-effects-transfer&quot;&gt;&lt;/div&gt;').appendTo(document.body).addClass(a.options.className).css({top:n.top,left:n.left,height:l.innerHeight(),width:l.innerWidth(),position:&quot;absolute&quot;}).animate(k,a.duration,a.options.easing,function(){o.remove();(a.callback&amp;&amp;a.callback.apply(l[0],arguments));l.dequeue()})})}})(jQuery);(function(d){d.fn.jqm=function(f){var e={zIndex:3000,overlay:50,overlayClass:&quot;jqmOverlay&quot;,closeClass:&quot;jqmClose&quot;,trigger:&quot;.jqModal&quot;,ajax:false,target:false,modal:false,toTop:false,onShow:false,onHide:false,onLoad:false};return this.each(function(){if(this._jqm){return}o++;this._jqm=o;l[o]={c:d.extend(e,f),a:false,w:d(this).addClass(&quot;jqmID&quot;+o),s:o};if(e.trigger){d(this).jqmAddTrigger(e.trigger)}})};d.fn.jqmAddClose=function(f){k(this,f,&quot;jqmHide&quot;);return this};d.fn.jqmAddTrigger=function(f){k(this,f,&quot;jqmShow&quot;);return this};d.fn.jqmShow=function(e){return this.each(function(){if(!l[this._jqm].a){d.jqm.open(this._jqm,e)}})};d.fn.jqmHide=function(e){return this.each(function(){if(l[this._jqm].a){d.jqm.close(this._jqm,e)}})};d.jqm={hash:{},open:function(B,A){var p=l[B],q=p.c,m=&quot;.&quot;+q.closeClass,v=(/^\d+$/.test(p.w.css(&quot;z-index&quot;)))?p.w.css(&quot;z-index&quot;):q.zIndex,f=d(&quot;&lt;div&gt;&lt;/div&gt;&quot;).css({height:&quot;100%&quot;,width:&quot;100%&quot;,position:&quot;fixed&quot;,left:0,top:0,&quot;z-index&quot;:v-1,opacity:q.overlay/100});p.t=A;p.a=true;p.w.css(&quot;z-index&quot;,v);if(q.modal){if(!a[0]){n(&quot;bind&quot;)}a.push(B);f.css(&quot;cursor&quot;,&quot;wait&quot;)}else{if(q.overlay&gt;0){p.w.jqmAddClose(f)}else{f=false}}p.o=(f)?f.addClass(q.overlayClass).prependTo(&quot;body&quot;):false;if(c){d(&quot;html,body&quot;).css({height:&quot;100%&quot;,width:&quot;100%&quot;});if(f){f=f.css({position:&quot;absolute&quot;})[0];for(var w in {Top:1,Left:1}){f.style.setExpression(w.toLowerCase(),&quot;(_=(document.documentElement.scroll&quot;+w+&quot; || document.body.scroll&quot;+w+&quot;))+'px'&quot;)}}}if(q.ajax){var e=q.target||p.w,x=q.ajax,e=(typeof e==&quot;string&quot;)?d(e,p.w):d(e),x=(x.substr(0,1)==&quot;@&quot;)?d(A).attr(x.substring(1)):x;e.load(x,function(){if(q.onLoad){q.onLoad.call(this,p)}if(m){p.w.jqmAddClose(d(m,p.w))}j(p)})}else{if(m){p.w.jqmAddClose(d(m,p.w))}}if(q.toTop&amp;&amp;p.o){p.w.before('&lt;span id=&quot;jqmP'+p.w[0]._jqm+'&quot;&gt;&lt;/span&gt;').insertAfter(p.o)}(q.onShow)?q.onShow(p):p.w.show();j(p);return false},close:function(f){var e=l[f];e.a=false;if(a[0]){a.pop();if(!a[0]){n(&quot;unbind&quot;)}}if(e.c.toTop&amp;&amp;e.o){d(&quot;#jqmP&quot;+e.w[0]._jqm).after(e.w).remove()}if(e.c.onHide){e.c.onHide(e)}else{e.w.hide();if(e.o){e.o.remove()}}return false}};var o=0,l=d.jqm.hash,a=[],c=d.browser.msie&amp;&amp;(d.browser.version==&quot;6.0&quot;),g=d('&lt;iframe src=&quot;javascript:false;document.write(\'\');&quot; class=&quot;jqm&quot;&gt;&lt;/iframe&gt;').css({opacity:0}),j=function(e){if(c){if(e.o){e.o.html('&lt;p style=&quot;width:100%;height:100%&quot;/&gt;').prepend(g)}else{if(!d(&quot;iframe.jqm&quot;,e.w)[0]){e.w.prepend(g)}}}h(e)},h=function(f){try{d(&quot;:input:visible&quot;,f.w)[0].focus()}catch(m){}},n=function(e){d()[e](&quot;keypress&quot;,b)[e](&quot;keydown&quot;,b)[e](&quot;mousedown&quot;,b)},b=function(p){var f=l[a[a.length-1]],m=(!d(p.target).parents(&quot;.jqmID&quot;+f.s)[0]);if(m){h(f)}return !m},k=function(f,p,q){var m=[];f.each(function(){m.push(this._jqm)});d(p).each(function(){if(this[q]){d.extend(this[q],m)}else{this[q]=m;d(this).click(function(){for(var e in {jqmShow:1,jqmHide:1}){for(var r in this[e]){if(l[this[e][r]]){l[this[e][r]].w[e](this)}}}return false})}})}})(jQuery);(function(a){a.fn.hint=function(e){if(!e||typeof(e)==&quot;object&quot;){e=a.extend({focus_class:&quot;hint_focus&quot;,changed_class:&quot;hint_changed&quot;,populate_from:&quot;default&quot;,text:null,remove_labels:false},e)}else{if(typeof(e)==&quot;string&quot;&amp;&amp;e.toLowerCase()==&quot;destroy&quot;){var b=true}}return this.each(function(){if(b){a(this).unbind(&quot;focus.hint&quot;).unbind(&quot;blur.hint&quot;).removeData(&quot;defText&quot;);return false}d(a(this))});function d(j){var k=&quot;&quot;;switch(e.populate_from){case&quot;alt&quot;:k=j.attr(&quot;alt&quot;);j.val(k);break;case&quot;label&quot;:k=a(&quot;label[for='&quot;+j.attr(&quot;id&quot;)+&quot;']&quot;).text();j.val(k);break;case&quot;custom&quot;:k=e.text;j.val(k);break;default:k=j.val()}j.addClass(&quot;hint&quot;).data(&quot;defText&quot;,k);if(e.remove_labels==true){a(&quot;label[for='&quot;+j.attr(&quot;id&quot;)+&quot;']&quot;).remove()}if(j.attr(&quot;type&quot;)==&quot;password&quot;){var g=j.data(&quot;defText&quot;);var h=j.clone().data(&quot;defType&quot;,&quot;password&quot;).data(&quot;defText&quot;,g).attr(&quot;type&quot;,&quot;text&quot;);j.after(h).remove();var j=h}f(j);c(j)}function f(g){g.bind(&quot;focus.hint&quot;,function(){if(g.val()==g.data(&quot;defText&quot;)){g.val(&quot;&quot;)}g.addClass(e.focus_class).removeClass(e.changed_class);if(g.data(&quot;defType&quot;)==&quot;password&quot;){var h=g.data(&quot;defText&quot;);var j=g.clone().data(&quot;defText&quot;,h).data(&quot;defType&quot;,&quot;password&quot;).attr(&quot;type&quot;,&quot;password&quot;);g.after(j).remove();c(j);j.eq(0).focus()}})}function c(g){g.bind(&quot;blur.hint&quot;,function(){if(g.val()==&quot;&quot;){g.val(g.data(&quot;defText&quot;))}g.removeClass(e.focus_class);if(g.val()!=g.data(&quot;defText&quot;)){g.addClass(e.changed_class)}else{g.removeClass(e.changed_class)}if(g.data(&quot;defType&quot;)==&quot;password&quot;&amp;&amp;g.val()==g.data(&quot;defText&quot;)){var h=g.data(&quot;defText&quot;);var j=g.clone().data(&quot;defText&quot;,h).data(&quot;defType&quot;,&quot;password&quot;).attr(&quot;type&quot;,&quot;text&quot;);g.after(j);g.remove();f(j)}})}}})(jQuery);jQuery.imgAreaSelect=function(l,O){var aa=jQuery(&quot;&lt;div&gt;&lt;/div&gt;&quot;),ab=jQuery(&quot;&lt;div&gt;&lt;/div&gt;&quot;),Z=jQuery(&quot;&lt;div&gt;&lt;/div&gt;&quot;),T=jQuery(&quot;&lt;div&gt;&lt;/div&gt;&quot;),ac=jQuery(&quot;&lt;div&gt;&lt;/div&gt;&quot;),Y=jQuery(&quot;&lt;div&gt;&lt;/div&gt;&quot;),U=jQuery(&quot;&lt;div&gt;&lt;/div&gt;&quot;),h,j,ak,L,b,r,K,ag,z,D=0,v,c,N,M,m,k,Q=10,J=[],f=0,q=1,ai,P,B,A,al,aj,W,S,w={x1:0,y1:0,x2:0,y2:0,width:0,height:0};var p=aa.add(ab).add(Z);var e=T.add(ac).add(Y).add(U);function I(d){return d+ak.left+ag.left-K.left}function G(d){return d+ak.top+ag.top-K.top}function F(d){return d-ak.left-ag.left+K.left}function C(d){return d-ak.top-ag.top+K.top}function ae(d){return d.pageX+ag.left-K.left}function ad(d){return d.pageY+ag.top-K.top}function ah(){ak=jQuery(l).offset();L=jQuery(l).width();b=jQuery(l).height();if(jQuery(r).is(&quot;body&quot;)){K=ag={left:0,top:0}}else{K=jQuery(r).offset();ag={left:r.scrollLeft,top:r.scrollTop}}h=I(0);j=G(0)}function R(){p.css({left:I(w.x1)+&quot;px&quot;,top:G(w.y1)+&quot;px&quot;,width:Math.max(w.width-O.borderWidth*2,0)+&quot;px&quot;,height:Math.max(w.height-O.borderWidth*2,0)+&quot;px&quot;});T.css({left:h+&quot;px&quot;,top:j+&quot;px&quot;,width:w.x1+&quot;px&quot;,height:b+&quot;px&quot;});ac.css({left:h+w.x1+&quot;px&quot;,top:j+&quot;px&quot;,width:w.width+&quot;px&quot;,height:w.y1+&quot;px&quot;});Y.css({left:h+w.x2+&quot;px&quot;,top:j+&quot;px&quot;,width:L-w.x2+&quot;px&quot;,height:b+&quot;px&quot;});U.css({left:h+w.x1+&quot;px&quot;,top:j+w.y2+&quot;px&quot;,width:w.width+&quot;px&quot;,height:b-w.y2+&quot;px&quot;})}function E(d){if(!z){ah();z=true;p.one(&quot;mouseout&quot;,function(){z=false})}W=F(ae(d))-w.x1;S=C(ad(d))-w.y1;J=[];if(O.resizable){if(S&lt;=Q){J[f]=&quot;n&quot;}else{if(S&gt;=w.height-Q){J[f]=&quot;s&quot;}}if(W&lt;=Q){J[q]=&quot;w&quot;}else{if(W&gt;=w.width-Q){J[q]=&quot;e&quot;}}}Z.css(&quot;cursor&quot;,J.length?J.join(&quot;&quot;)+&quot;-resize&quot;:O.movable?&quot;move&quot;:&quot;&quot;)}function o(d){if(d.which!=1){return false}ah();if(O.resizable&amp;&amp;J.length&gt;0){jQuery(&quot;body&quot;).css(&quot;cursor&quot;,J.join(&quot;&quot;)+&quot;-resize&quot;);B=I(J[q]==&quot;w&quot;?w.x2:w.x1);al=G(J[f]==&quot;n&quot;?w.y2:w.y1);jQuery(document).mousemove(X);Z.unbind(&quot;mousemove&quot;,E);jQuery(document).one(&quot;mouseup&quot;,function(){J=[];jQuery(&quot;body&quot;).css(&quot;cursor&quot;,&quot;&quot;);if(O.autoHide){p.add(e).hide()}O.onSelectEnd(l,w);jQuery(document).unbind(&quot;mousemove&quot;,X);Z.mousemove(E)})}else{if(O.movable){m=w.x1+h;k=w.y1+j;N=ae(d);M=ad(d);jQuery(document).mousemove(a).one(&quot;mouseup&quot;,function(){O.onSelectEnd(l,w);jQuery(document).unbind(&quot;mousemove&quot;,a)})}else{jQuery(l).mousedown(d)}}return false}function n(){A=Math.max(h,Math.min(h+L,B+Math.abs(aj-al)*P*(A&gt;B?1:-1)));aj=Math.round(Math.max(j,Math.min(j+b,al+Math.abs(A-B)/P*(aj&gt;al?1:-1))));A=Math.round(A)}function af(){aj=Math.max(j,Math.min(j+b,al+Math.abs(A-B)/P*(aj&gt;al?1:-1)));A=Math.round(Math.max(h,Math.min(h+L,B+Math.abs(aj-al)*P*(A&gt;B?1:-1))));aj=Math.round(aj)}function X(d){A=!J.length||J[q]||P?ae(d):I(w.x2);aj=!J.length||J[f]||P?ad(d):G(w.y2);if(O.minWidth&amp;&amp;Math.abs(A-B)&lt;O.minWidth){A=B-O.minWidth*(A&lt;B?1:-1);if(A&lt;h){B=h+O.minWidth}else{if(A&gt;h+L){B=h+L-O.minWidth}}}if(O.minHeight&amp;&amp;Math.abs(aj-al)&lt;O.minHeight){aj=al-O.minHeight*(aj&lt;al?1:-1);if(aj&lt;j){al=j+O.minHeight}else{if(aj&gt;j+b){al=j+b-O.minHeight}}}A=Math.max(h,Math.min(A,h+L));aj=Math.max(j,Math.min(aj,j+b));if(P){if(Math.abs(A-B)/P&gt;Math.abs(aj-al)){af()}else{n()}}if(O.maxWidth&amp;&amp;Math.abs(A-B)&gt;O.maxWidth){A=B-O.maxWidth*(A&lt;B?1:-1);if(P){af()}}if(O.maxHeight&amp;&amp;Math.abs(aj-al)&gt;O.maxHeight){aj=al-O.maxHeight*(aj&lt;al?1:-1);if(P){n()}}w.x1=F(Math.min(B,A));w.x2=F(Math.max(B,A));w.y1=C(Math.min(al,aj));w.y2=C(Math.max(al,aj));w.width=Math.abs(A-B);w.height=Math.abs(aj-al);R();O.onSelectChange(l,w);return false}function a(d){B=Math.max(h,Math.min(m+ae(d)-N,h+L-w.width));al=Math.max(j,Math.min(k+ad(d)-M,j+b-w.height));A=B+w.width;aj=al+w.height;w.x1=F(B);w.y1=C(al);w.x2=F(A);w.y2=C(aj);R();O.onSelectChange(l,w);d.preventDefault();return false}function g(d){if(d.which!=1){return false}ah();w.x1=w.x2=F(N=B=A=ae(d));w.y1=w.y2=C(M=al=aj=ad(d));w.width=0;w.height=0;J=[];R();p.add(e).show();jQuery(document).mousemove(X);Z.unbind(&quot;mousemove&quot;,E);O.onSelectStart(l,w);jQuery(document).one(&quot;mouseup&quot;,function(){if(O.autoHide){p.add(e).hide()}O.onSelectEnd(l,w);jQuery(document).unbind(&quot;mousemove&quot;,X);Z.mousemove(E)});return false}function u(){ah();R()}this.setOptions=function(d){O=jQuery.extend(O,d);if(d.x1!=null){w.x1=d.x1;w.y1=d.y1;w.x2=d.x2;w.y2=d.y2;d.show=true}r=jQuery(O.parent).get(0);ah();c=jQuery(l);while(c.length&amp;&amp;!c.is(&quot;body&quot;)){if(!isNaN(c.css(&quot;z-index&quot;))&amp;&amp;c.css(&quot;z-index&quot;)&gt;D){D=c.css(&quot;z-index&quot;)}if(c.css(&quot;position&quot;)==&quot;fixed&quot;){v=true}c=c.parent()}B=I(w.x1);al=G(w.y1);A=I(w.x2);aj=G(w.y2);w.width=A-B;w.height=aj-al;R();if(d.hide){p.add(e).hide()}else{if(d.show){p.add(e).show()}}e.addClass(O.classPrefix+&quot;-outer&quot;);aa.addClass(O.classPrefix+&quot;-selection&quot;);ab.addClass(O.classPrefix+&quot;-border1&quot;);Z.addClass(O.classPrefix+&quot;-border2&quot;);p.css({borderWidth:O.borderWidth+&quot;px&quot;});aa.css({backgroundColor:O.selectionColor,opacity:O.selectionOpacity});ab.css({borderStyle:&quot;solid&quot;,borderColor:O.borderColor1});Z.css({borderStyle:&quot;dashed&quot;,borderColor:O.borderColor2});e.css({opacity:O.outerOpacity,backgroundColor:O.outerColor});P=O.aspectRatio&amp;&amp;(ai=O.aspectRatio.split(/:/))?ai[0]/ai[1]:null;if(O.disable||O.enable===false){p.unbind(&quot;mousemove&quot;,E).unbind(&quot;mousedown&quot;,o);jQuery(l).add(e).unbind(&quot;mousedown&quot;,g);jQuery(window).unbind(&quot;resize&quot;,u)}else{if(O.enable||O.disable===false){if(O.resizable||O.movable){p.mousemove(E).mousedown(o)}jQuery(l).add(e).mousedown(g);jQuery(window).resize(u)}}jQuery(O.parent).append(e.add(p));O.enable=O.disable=undefined};if(jQuery.browser.msie){jQuery(l).attr(&quot;unselectable&quot;,&quot;on&quot;)}p.add(e).css({display:&quot;none&quot;,position:v?&quot;fixed&quot;:&quot;absolute&quot;,overflow:&quot;hidden&quot;,zIndex:D&gt;0?D:null});aa.css({borderStyle:&quot;solid&quot;});initOptions={borderColor1:&quot;#000&quot;,borderColor2:&quot;#fff&quot;,borderWidth:1,classPrefix:&quot;imgareaselect&quot;,movable:true,resizable:true,selectionColor:&quot;#fff&quot;,selectionOpacity:0.2,outerColor:&quot;#000&quot;,outerOpacity:0.2,parent:&quot;body&quot;,onSelectStart:function(){},onSelectChange:function(){},onSelectEnd:function(){}};O=jQuery.extend(initOptions,O);this.setOptions(O)};jQuery.fn.imgAreaSelect=function(a){a=a||{};this.each(function(){if(jQuery(this).data(&quot;imgAreaSelect&quot;)){jQuery(this).data(&quot;imgAreaSelect&quot;).setOptions(a)}else{if(a.enable===undefined&amp;&amp;a.disable===undefined){a.enable=true}jQuery(this).data(&quot;imgAreaSelect&quot;,new jQuery.imgAreaSelect(this,a))}});return this};function show_preview_window(b,a){$(&quot;#&quot;+a).jqm();$(&quot;#&quot;+a).jqmShow();$(&quot;#&quot;+a).html(&quot;&lt;iframe src='&quot;+b+&quot;' width='100%' height='100%' border='0' /&gt;&quot;)}function setup_preview(a,c,b){$(document).ready(function(){$(&quot;#&quot;+c).click(function(){show_preview_window(a,b);return false})})}$(document).ready(function(){if($(&quot;#item_list_container&quot;)){$(&quot;#item_list_container&quot;).tablesorter({dateFormat:&quot;dd/mm/yyyy&quot;,highlightClass:&quot;highlight_col&quot;,stripingRowClass:[&quot;item_row1&quot;,&quot;item_row0&quot;],stripeRowsOnStartUp:true})}if($(&quot;.form_datepicker&quot;)){$(&quot;.form_datepicker&quot;).datepicker({changeMonth:true,changeYear:true})}});$(document).ready(function(){inline_status_change()});function inline_status_change(){if($(&quot;.status_change&quot;)){$(&quot;.status_change&quot;).click(function(){current_status=$(this).attr(&quot;rel&quot;);dest=$(this).attr(&quot;href&quot;);dest=dest.replace(&quot;?status=0&quot;,&quot;&quot;).replace(&quot;?status=1&quot;,&quot;&quot;);replace=&quot;#&quot;+this.id;$.get(dest,{status:current_status,ajax:&quot;yes&quot;},function(a){$(replace).replaceWith(a);inline_status_change()});return false})}}jQuery.fn.centerScreen=function(a){var b=this;if(!a){b.css(&quot;top&quot;,$(window).height()/2-this.height()/2);b.css(&quot;left&quot;,$(window).width()/2-this.width()/2);$(window).resize(function(){b.centerScreen(!a)})}else{b.stop();b.animate({top:$(window).height()/2-this.height()/2,left:$(window).width()/2-this.width()/2},200,&quot;linear&quot;)}};var content_page_id;var model_string;var init_upload;var autosaver;var wym_editors=[];if(typeof(file_browser_location)==&quot;undefined&quot;){var file_browser_location=&quot;/admin/files/browse_images&quot;}$(document).ready(function(){$(&quot;#container&quot;).tabs();$(&quot;#page_tab_title&quot;).html($(&quot;#cms_content_title&quot;).val());$(&quot;#cms_content_title&quot;).keyup(function(){$(&quot;#page_tab_title&quot;).html($(&quot;#cms_content_title&quot;).val())});$(&quot;#new_cat_create&quot;).click(function(){$.ajax({url:&quot;../../new_category/?cat=&quot;+$(&quot;#new_cat&quot;).val(),complete:function(a){$(&quot;#category_list&quot;).html(a.responseText);initialise_draggables()}});return false});initialise_draggables();$(&quot;#link_dialog&quot;).dialog({autoOpen:false,width:&quot;auto&quot;,height:&quot;auto&quot;});$(&quot;#table_dialog&quot;).dialog({autoOpen:false,title:&quot;Insert a Table&quot;,width:700,height:500});$(&quot;#video_dialog&quot;).dialog({autoOpen:false,title:&quot;Insert a Video&quot;,width:700,height:500});$(&quot;#quick_upload_pane&quot;).dialog({autoOpen:false,title:&quot;Upload an Image&quot;,width:700,height:500});$(&quot;#upload_url_pane&quot;).dialog({autoOpen:false,title:&quot;Get Image From URL&quot;,width:700,height:500});$(&quot;#quick_upload_button&quot;).click(function(){$(&quot;#quick_upload_pane&quot;).dialog(&quot;open&quot;);$.ajax({url:&quot;/admin/files/quickupload/&quot;+content_page_id+&quot;?model=&quot;+model_string+&quot;&amp;join_field=&quot;+join_field,complete:function(a){$(&quot;#quick_upload_pane&quot;).html(a.responseText);init_upload()}})});$(&quot;#upload_url_button&quot;).click(function(){$(&quot;#upload_url_pane&quot;).dialog(&quot;open&quot;);$.ajax({url:&quot;/admin/files/upload_url/&quot;+content_page_id+&quot;?model=&quot;+model_string+&quot;&amp;join_field=&quot;+join_field,complete:function(a){$(&quot;#upload_url_pane&quot;).html(a.responseText);init_upload()}})})});function initialise_draggables(){$(&quot;#category_list .category_tag&quot;).draggable({opacity:0.5,revert:true,scroll:false,containment:&quot;window&quot;,helper:&quot;clone&quot;});$(&quot;#cat_dropzone&quot;).droppable({accept:&quot;.category_tag&quot;,hoverClass:&quot;dropzone_active&quot;,tolerance:&quot;pointer&quot;,drop:function(a,b){$.post(&quot;../../add_category/&quot;+content_page_id,{id:b.draggable.attr(&quot;id&quot;)},function(c){$(&quot;#cat_dropzone&quot;).html(c);initialise_draggables()})}});$(&quot;#category_list .category_tag&quot;).dblclick(function(){$.post(&quot;../../add_category/&quot;+content_page_id,{id:this.id},function(a){$(&quot;#cat_dropzone&quot;).html(a);initialise_draggables()})});$(&quot;.category_trash_button&quot;).click(function(){$.get(&quot;../../remove_category/&quot;+content_page_id+&quot;?cat=&quot;+this.id.substr(22),function(a){$(&quot;#cat_dropzone&quot;).html(a);initialise_draggables()})})}function delayed_cat_filter(a){$(&quot;#category_filter&quot;).css(&quot;background&quot;,&quot;white url(/images/cms/indicator.gif) no-repeat right center&quot;);$.ajax({type:&quot;post&quot;,url:&quot;/admin/categories/filters&quot;,data:&quot;filter=&quot;+a,complete:function(b){$(&quot;#category_list&quot;).html(b.responseText);initialise_draggables();if(typeof(t)!=&quot;undefined&quot;){clearTimeout(t)}$(&quot;#category_filter&quot;).css(&quot;background&quot;,&quot;white&quot;)}})}function delayed_image_filter(a){$(&quot;#image_filter&quot;).css(&quot;background&quot;,&quot;white url(/images/cms/indicator.gif) no-repeat right center&quot;);$.ajax({type:&quot;post&quot;,url:&quot;/admin/files/image_filter&quot;,data:&quot;filter=&quot;+$(&quot;#image_filter&quot;).val(),complete:function(b){$(&quot;#image_list&quot;).html(b.responseText);initialise_images();if(typeof(t)!=&quot;undefined&quot;){clearTimeout(t)}$(&quot;#image_filter&quot;).css(&quot;background&quot;,&quot;white&quot;)}})}$(document).ready(function(a){$(&quot;#image_filter&quot;).keyup(function(){if(typeof(t)!=&quot;undefined&quot;){clearTimeout(t)}t=setTimeout('delayed_image_filter($(&quot;#image_filter&quot;).val())',400)});$(&quot;#category_filter&quot;).keyup(function(){if(typeof(t)!=&quot;undefined&quot;){clearTimeout(t)}t=setTimeout('delayed_cat_filter($(&quot;#category_filter&quot;).val())',400)});$(&quot;#image_filter&quot;).focus(function(){if($(this).val()==&quot;Filter&quot;){$(this).val(&quot;&quot;)}});$(&quot;#category_filter&quot;).focus(function(){if($(this).val()==&quot;Filter&quot;){$(this).val(&quot;&quot;)}});$(&quot;#category_filter&quot;).blur(function(){if($(this).val()==&quot;&quot;){$(this).val(&quot;Filter&quot;)}});$(&quot;#wildfire_file_new_folder&quot;).change(function(b){$.post(file_browser_location,{filterfolder:$(this).val()},function(c){$(&quot;#image_list&quot;).html(c);initialise_images()})});$(&quot;#view_all_button&quot;).click(function(){$.post(file_browser_location,{},function(b){$(&quot;#image_list&quot;).html(b);initialise_images()})});$.get(file_browser_location+&quot;/1/&quot;,function(b){$(&quot;#image_list&quot;).html(b);initialise_images()});$(&quot;.jqwysi&quot;).wymeditor({skin:&quot;wildfire&quot;,stylesheet:&quot;/stylesheets/cms/wysiwyg_styles.css&quot;,postInit:function(c){init_preview_button(c);c.wildfire(c);wym_editors.push(c);var b=$(&quot;.ui-resizable-handle&quot;);$(&quot;.wym_box&quot;).resizable({handles:&quot;s&quot;});$(&quot;.wym_box&quot;).css(&quot;height&quot;,&quot;250px&quot;);$(&quot;.wym_area_main, .wym_iframe, iframe&quot;).css(&quot;height&quot;,&quot;100%&quot;);$(&quot;.wym_iframe&quot;).css(&quot;height&quot;,&quot;91%&quot;)}});if($(&quot;#quicksave&quot;).length){autosaver=setInterval(function(){autosave_content(wym_editors)},40000);$(&quot;#autosave&quot;).click(function(){autosave_content(wym_editors)})}});function wym_button(a,c){var b=&quot;&lt;li class='wym_tools_&quot;+a+&quot;'&gt;&lt;a name='&quot;+a+&quot;' href='#'&quot;+c+&quot;&lt;/a&gt;&lt;/li&gt;&quot;;return b}function initialise_images(){$(&quot;.drag_image&quot;).draggable({opacity:0.5,revert:true,scroll:true,containment:&quot;window&quot;,helper:&quot;clone&quot;});$(&quot;.remove_image&quot;).click(function(){$.get(&quot;../../remove_image/&quot;+content_page_id+&quot;?image=&quot;+this.id.substr(13)+&quot;&amp;order=&quot;+this.parentNode.id.substr(8),function(a){$(&quot;#drop_zones&quot;).html(a);initialise_images()});return false});$(&quot;#drop_zones&quot;).sortable({change:function(a,b){alert($(&quot;#drop_zones&quot;).sortable(&quot;serialize&quot;))}});$(&quot;.paginate_images&quot;).click(function(){$.get(file_browser_location+&quot;/&quot;+this.id.substr(12),{},function(a){$(&quot;#image_list&quot;).html(a);initialise_images()})});$(&quot;#drop_zones&quot;).droppable({accept:&quot;.drag_image&quot;,hoverClass:&quot;dropzone_active&quot;,tolerance:&quot;pointer&quot;,drop:function(a,b){$.post(&quot;../../add_image/&quot;+content_page_id,{id:b.draggable.attr(&quot;id&quot;),order:$(&quot;.dropped_image&quot;).size()},function(c){$(&quot;#drop_zones&quot;).html(c);initialise_images();return true})}});$(&quot;.url_image&quot;).click(function(){$.get(&quot;/admin/files/image_urls/&quot;+$(this).attr(&quot;id&quot;).replace(&quot;url_image_&quot;,&quot;&quot;),function(a){$(&quot;&lt;div&gt;&quot;+a+&quot;&lt;/div&gt;&quot;).dialog({title:&quot;Image URL&quot;,width:700}).dialog(&quot;open&quot;)})});$(&quot;.add_image&quot;).unbind(&quot;click&quot;);$(&quot;.add_image&quot;).click(function(){$.post(&quot;../../add_image/&quot;+content_page_id,{id:$(this).attr(&quot;id&quot;).replace(&quot;add_image_&quot;,&quot;&quot;),order:$(&quot;.dropped_image&quot;).size()},function(a){$(&quot;#drop_zones&quot;).html(a);initialise_images();return true})})}function get_query_var(c,a){var c=c.substring((c.indexOf(&quot;?&quot;)+1));var d=c.split(&quot;&amp;&quot;);for(var b=0;b&lt;d.length;b++){var e=d[b].split(&quot;=&quot;);if(e[0]==a){return e[1]}}}$(document).ready(function(){if(!a){var a=&quot;images&quot;}});function reload_images(){$.post(file_browser_location,{filterfolder:$(this).val()},function(a){$(&quot;#image_list&quot;).html(a);initialise_images()});$.get(&quot;../../attached_images/&quot;+content_page_id,function(a){$(&quot;#drop_zones&quot;).html(a);initialise_images()})}function cms_insert_url(a){if(a==&quot;web&quot;){var b=prompt(&quot;Enter the URL for this link:&quot;,&quot;http://&quot;)}else{var b=a}if(b!=null){theIframe.contentWindow.document.execCommand(&quot;CreateLink&quot;,false,b);theWidgEditor.theToolbar.setState(&quot;Link&quot;,&quot;on&quot;)}}function cms_insert_video(b,d,a,c){if(c.length&gt;0){theIframe.contentWindow.document.execCommand(&quot;inserthtml&quot;,false,&quot;&lt;a href='&quot;+b+&quot;' rel='&quot;+d+&quot;px:&quot;+a+&quot;px'&gt;LOCAL:&quot;+c+&quot;&lt;/a&gt;&quot;)}else{theIframe.contentWindow.document.execCommand(&quot;inserthtml&quot;,false,&quot;&lt;a href='&quot;+b+&quot;' rel='&quot;+d+&quot;px:&quot;+a+&quot;px'&gt;&quot;+b+&quot;&lt;/a&gt;&quot;)}theWidgEditor.theToolbar.setState(&quot;Video&quot;,&quot;on&quot;)}$(document).ready(function(){$(&quot;#autosave_disable&quot;).click(function(){clearInterval(autosaver);$(&quot;#autosave_status&quot;).html(&quot;Autosave Disabled&quot;)})});function autosave_content(b){for(var a in b){b[a].update()}$(&quot;#ajaxBusy&quot;).css({opacity:0});$.ajax({url:&quot;/admin/content/autosave/&quot;+content_page_id,beforeSend:function(){$(&quot;#quicksave&quot;).effect(&quot;pulsate&quot;,{times:3},1000)},type:&quot;POST&quot;,processData:false,data:$(&quot;#content_edit_form&quot;).serialize(),success:function(c){$(&quot;#autosave_status&quot;).html(&quot;Saved at &quot;+c);$(&quot;#ajaxBusy&quot;).css({opacity:1})}})}function init_preview_button(a){$(&quot;#preview_link&quot;).click(function(){autosave_content(wym_editors)})}$(document).ready(function(){$(&quot;#content_title_edit&quot;).hover(function(){var a=$(this).parent();a.css(&quot;background-color&quot;,&quot;#fbf485&quot;);$(this).bind(&quot;click.editable&quot;,function(){$(this).unbind(&quot;click.editable&quot;);el='&lt;input type=&quot;text&quot; value=&quot;'+$(&quot;#content_title_label&quot;).text()+'&quot; id=&quot;content_title_editing&quot; /&gt;';elsave=$(&quot;&lt;a href='#' id='content_edit_save'&gt;&lt;img src='/images/cms/cms_quick_save.gif'&lt;/a&gt;&quot;);a.parent().after(el);$(&quot;#content_title_editing&quot;).before(elsave);$(&quot;#content_edit_save&quot;).css({position:&quot;relative&quot;,left:&quot;255px&quot;,top:&quot;10px&quot;,width:&quot;0px&quot;,cursor:&quot;pointer&quot;});elsave.click(function(){$(&quot;#content_title&quot;).show();$(&quot;#content_title_label&quot;).html($(&quot;#content_title_editing&quot;).val());$(&quot;#content_title_editing&quot;).remove();$(this).remove()});$(&quot;#content_title&quot;).hide();$(&quot;#content_title_editing&quot;).change(function(){var b=$(&quot;#content_title&quot;).attr(&quot;rel&quot;);$(&quot;#&quot;+b).val($(this).val())});$(&quot;#content_title_editing&quot;).blur(function(){$(&quot;#content_title&quot;).show();$(&quot;#content_title_label&quot;).html($(&quot;#content_title_editing&quot;).val());$(&quot;#content_title_editing&quot;).remove();$(&quot;#content_edit_save&quot;).remove()});$(&quot;#content_title_editing&quot;).get(0).focus()})},function(){var a=$(this).parent();a.css(&quot;background-color&quot;,&quot;transparent&quot;);$(this).unbind(&quot;click.editable&quot;)})});$(document).ready(function(){$(&quot;body&quot;).append('&lt;div id=&quot;ajaxBusy&quot;&gt;&lt;p&gt;Loading&lt;br /&gt;&lt;img src=&quot;/images/cms/indicator_dark.gif&quot;&gt;&lt;/p&gt;&lt;/div&gt;');$(&quot;#ajaxBusy&quot;).css({display:&quot;none&quot;,margin:&quot;0&quot;,position:&quot;absolute&quot;,background:&quot;#333&quot;,textAlign:&quot;center&quot;,fontSize:&quot;100%&quot;,color:&quot;#999&quot;,letterSpacing:&quot;5px&quot;,textTransform:&quot;uppercase&quot;,border:&quot;1px solid #c1c1c1&quot;,width:&quot;200px&quot;,height:&quot;90px&quot;,&quot;-webkit-box-shadow&quot;:&quot;5px 5px 5px #666&quot;,&quot;-moz-box-shadow&quot;:&quot;5px 5px 5px #666&quot;,lineHeight:&quot;190%&quot;,&quot;-webkit-border-radius&quot;:&quot;7px&quot;,&quot;-moz-border-radius&quot;:&quot;7px&quot;});$(document).ajaxStart(function(a){$(&quot;#ajaxBusy&quot;).show().centerScreen()});$(document).ajaxStop(function(){$(&quot;#ajaxBusy&quot;).hide()});$(document).ajaxError(function(){$(&quot;#ajaxBusy&quot;).hide()})});$(document).ready(function(){$(&quot;#cms_content_language&quot;).change(function(){var a=window.location.href.split(&quot;?&quot;);window.location.replace(a[0]+&quot;?lang=&quot;+$(this).val())})});$(document).ready(function(){$(&quot;#dashboard #sub-navigation-container #quick_search&quot;).remove();$(&quot;#quick_search form input, #quick_create form input&quot;).hint();$(&quot;#live_search_field&quot;).keyup(function(){if(typeof(t)!=&quot;undefined&quot;){clearTimeout(t)}t=setTimeout(function(){live_search($(&quot;#live_search_field&quot;).val())},400)});$(&quot;.live_search_results&quot;).hover(function(){},function(){s=setTimeout(&quot;live_search_close()&quot;,800)})});function live_search(a){$(&quot;#live_search_field&quot;).css(&quot;background&quot;,&quot;white url(/images/cms/indicator.gif) no-repeat right center&quot;);$.ajax({type:&quot;post&quot;,url:&quot;/admin/content/search&quot;,data:&quot;input=&quot;+a,complete:function(b){$(&quot;#live_search_field&quot;).parent().find(&quot;.live_search_results&quot;).html(b.responseText).show();if(typeof(t)!=&quot;undefined&quot;){clearTimeout(t)}$(&quot;#live_search_field&quot;).css(&quot;background&quot;,&quot;white&quot;)}})}function live_search_close(){if(typeof(s)!=&quot;undefined&quot;){clearTimeout(s)}$(&quot;.live_search_results&quot;).empty();$(&quot;.live_search_results&quot;).hide()}var SWFUpload;if(SWFUpload==undefined){SWFUpload=function(a){this.initSWFUpload(a)}}SWFUpload.prototype.initSWFUpload=function(b){try{this.customSettings={};this.settings=b;this.eventQueue=[];this.movieName=&quot;SWFUpload_&quot;+SWFUpload.movieCount++;this.movieElement=null;SWFUpload.instances[this.movieName]=this;this.initSettings();this.loadFlash();this.displayDebugInfo()}catch(a){delete SWFUpload.instances[this.movieName];throw a}};SWFUpload.instances={};SWFUpload.movieCount=0;SWFUpload.version=&quot;2.2.0 2009-03-25&quot;;SWFUpload.QUEUE_ERROR={QUEUE_LIMIT_EXCEEDED:-100,FILE_EXCEEDS_SIZE_LIMIT:-110,ZERO_BYTE_FILE:-120,INVALID_FILETYPE:-130};SWFUpload.UPLOAD_ERROR={HTTP_ERROR:-200,MISSING_UPLOAD_URL:-210,IO_ERROR:-220,SECURITY_ERROR:-230,UPLOAD_LIMIT_EXCEEDED:-240,UPLOAD_FAILED:-250,SPECIFIED_FILE_ID_NOT_FOUND:-260,FILE_VALIDATION_FAILED:-270,FILE_CANCELLED:-280,UPLOAD_STOPPED:-290};SWFUpload.FILE_STATUS={QUEUED:-1,IN_PROGRESS:-2,ERROR:-3,COMPLETE:-4,CANCELLED:-5};SWFUpload.BUTTON_ACTION={SELECT_FILE:-100,SELECT_FILES:-110,START_UPLOAD:-120};SWFUpload.CURSOR={ARROW:-1,HAND:-2};SWFUpload.WINDOW_MODE={WINDOW:&quot;window&quot;,TRANSPARENT:&quot;transparent&quot;,OPAQUE:&quot;opaque&quot;};SWFUpload.completeURL=function(a){if(typeof(a)!==&quot;string&quot;||a.match(/^https?:\/\//i)||a.match(/^\//)){return a}var c=window.location.protocol+&quot;//&quot;+window.location.hostname+(window.location.port?&quot;:&quot;+window.location.port:&quot;&quot;);var b=window.location.pathname.lastIndexOf(&quot;/&quot;);if(b&lt;=0){path=&quot;/&quot;}else{path=window.location.pathname.substr(0,b)+&quot;/&quot;}return path+a};SWFUpload.prototype.initSettings=function(){this.ensureDefault=function(b,a){this.settings[b]=(this.settings[b]==undefined)?a:this.settings[b]};this.ensureDefault(&quot;upload_url&quot;,&quot;&quot;);this.ensureDefault(&quot;preserve_relative_urls&quot;,false);this.ensureDefault(&quot;file_post_name&quot;,&quot;Filedata&quot;);this.ensureDefault(&quot;post_params&quot;,{});this.ensureDefault(&quot;use_query_string&quot;,false);this.ensureDefault(&quot;requeue_on_error&quot;,false);this.ensureDefault(&quot;http_success&quot;,[]);this.ensureDefault(&quot;assume_success_timeout&quot;,0);this.ensureDefault(&quot;file_types&quot;,&quot;*.*&quot;);this.ensureDefault(&quot;file_types_description&quot;,&quot;All Files&quot;);this.ensureDefault(&quot;file_size_limit&quot;,0);this.ensureDefault(&quot;file_upload_limit&quot;,0);this.ensureDefault(&quot;file_queue_limit&quot;,0);this.ensureDefault(&quot;flash_url&quot;,&quot;swfupload.swf&quot;);this.ensureDefault(&quot;prevent_swf_caching&quot;,true);this.ensureDefault(&quot;button_image_url&quot;,&quot;&quot;);this.ensureDefault(&quot;button_width&quot;,1);this.ensureDefault(&quot;button_height&quot;,1);this.ensureDefault(&quot;button_text&quot;,&quot;&quot;);this.ensureDefault(&quot;button_text_style&quot;,&quot;color: #000000; font-size: 16pt;&quot;);this.ensureDefault(&quot;button_text_top_padding&quot;,0);this.ensureDefault(&quot;button_text_left_padding&quot;,0);this.ensureDefault(&quot;button_action&quot;,SWFUpload.BUTTON_ACTION.SELECT_FILES);this.ensureDefault(&quot;button_disabled&quot;,false);this.ensureDefault(&quot;button_placeholder_id&quot;,&quot;&quot;);this.ensureDefault(&quot;button_placeholder&quot;,null);this.ensureDefault(&quot;button_cursor&quot;,SWFUpload.CURSOR.ARROW);this.ensureDefault(&quot;button_window_mode&quot;,SWFUpload.WINDOW_MODE.WINDOW);this.ensureDefault(&quot;debug&quot;,false);this.settings.debug_enabled=this.settings.debug;this.settings.return_upload_start_handler=this.returnUploadStart;this.ensureDefault(&quot;swfupload_loaded_handler&quot;,null);this.ensureDefault(&quot;file_dialog_start_handler&quot;,null);this.ensureDefault(&quot;file_queued_handler&quot;,null);this.ensureDefault(&quot;file_queue_error_handler&quot;,null);this.ensureDefault(&quot;file_dialog_complete_handler&quot;,null);this.ensureDefault(&quot;upload_start_handler&quot;,null);this.ensureDefault(&quot;upload_progress_handler&quot;,null);this.ensureDefault(&quot;upload_error_handler&quot;,null);this.ensureDefault(&quot;upload_success_handler&quot;,null);this.ensureDefault(&quot;upload_complete_handler&quot;,null);this.ensureDefault(&quot;debug_handler&quot;,this.debugMessage);this.ensureDefault(&quot;custom_settings&quot;,{});this.customSettings=this.settings.custom_settings;if(!!this.settings.prevent_swf_caching){this.settings.flash_url=this.settings.flash_url+(this.settings.flash_url.indexOf(&quot;?&quot;)&lt;0?&quot;?&quot;:&quot;&amp;&quot;)+&quot;preventswfcaching=&quot;+new Date().getTime()}if(!this.settings.preserve_relative_urls){this.settings.upload_url=SWFUpload.completeURL(this.settings.upload_url);this.settings.button_image_url=SWFUpload.completeURL(this.settings.button_image_url)}delete this.ensureDefault};SWFUpload.prototype.loadFlash=function(){var a,b;if(document.getElementById(this.movieName)!==null){throw&quot;ID &quot;+this.movieName+&quot; is already in use. The Flash Object could not be added&quot;}a=document.getElementById(this.settings.button_placeholder_id)||this.settings.button_placeholder;if(a==undefined){throw&quot;Could not find the placeholder element: &quot;+this.settings.button_placeholder_id}b=document.createElement(&quot;div&quot;);b.innerHTML=this.getFlashHTML();a.parentNode.replaceChild(b.firstChild,a);if(window[this.movieName]==undefined){window[this.movieName]=this.getMovieElement()}};SWFUpload.prototype.getFlashHTML=function(){return['&lt;object id=&quot;',this.movieName,'&quot; type=&quot;application/x-shockwave-flash&quot; data=&quot;',this.settings.flash_url,'&quot; width=&quot;',this.settings.button_width,'&quot; height=&quot;',this.settings.button_height,'&quot; class=&quot;swfupload&quot;&gt;','&lt;param name=&quot;wmode&quot; value=&quot;',this.settings.button_window_mode,'&quot; /&gt;','&lt;param name=&quot;movie&quot; value=&quot;',this.settings.flash_url,'&quot; /&gt;','&lt;param name=&quot;quality&quot; value=&quot;high&quot; /&gt;','&lt;param name=&quot;menu&quot; value=&quot;false&quot; /&gt;','&lt;param name=&quot;allowScriptAccess&quot; value=&quot;always&quot; /&gt;','&lt;param name=&quot;flashvars&quot; value=&quot;'+this.getFlashVars()+'&quot; /&gt;',&quot;&lt;/object&gt;&quot;].join(&quot;&quot;)};SWFUpload.prototype.getFlashVars=function(){var b=this.buildParamString();var a=this.settings.http_success.join(&quot;,&quot;);return[&quot;movieName=&quot;,encodeURIComponent(this.movieName),&quot;&amp;amp;uploadURL=&quot;,encodeURIComponent(this.settings.upload_url),&quot;&amp;amp;useQueryString=&quot;,encodeURIComponent(this.settings.use_query_string),&quot;&amp;amp;requeueOnError=&quot;,encodeURIComponent(this.settings.requeue_on_error),&quot;&amp;amp;httpSuccess=&quot;,encodeURIComponent(a),&quot;&amp;amp;assumeSuccessTimeout=&quot;,encodeURIComponent(this.settings.assume_success_timeout),&quot;&amp;amp;params=&quot;,encodeURIComponent(b),&quot;&amp;amp;filePostName=&quot;,encodeURIComponent(this.settings.file_post_name),&quot;&amp;amp;fileTypes=&quot;,encodeURIComponent(this.settings.file_types),&quot;&amp;amp;fileTypesDescription=&quot;,encodeURIComponent(this.settings.file_types_description),&quot;&amp;amp;fileSizeLimit=&quot;,encodeURIComponent(this.settings.file_size_limit),&quot;&amp;amp;fileUploadLimit=&quot;,encodeURIComponent(this.settings.file_upload_limit),&quot;&amp;amp;fileQueueLimit=&quot;,encodeURIComponent(this.settings.file_queue_limit),&quot;&amp;amp;debugEnabled=&quot;,encodeURIComponent(this.settings.debug_enabled),&quot;&amp;amp;buttonImageURL=&quot;,encodeURIComponent(this.settings.button_image_url),&quot;&amp;amp;buttonWidth=&quot;,encodeURIComponent(this.settings.button_width),&quot;&amp;amp;buttonHeight=&quot;,encodeURIComponent(this.settings.button_height),&quot;&amp;amp;buttonText=&quot;,encodeURIComponent(this.settings.button_text),&quot;&amp;amp;buttonTextTopPadding=&quot;,encodeURIComponent(this.settings.button_text_top_padding),&quot;&amp;amp;buttonTextLeftPadding=&quot;,encodeURIComponent(this.settings.button_text_left_padding),&quot;&amp;amp;buttonTextStyle=&quot;,encodeURIComponent(this.settings.button_text_style),&quot;&amp;amp;buttonAction=&quot;,encodeURIComponent(this.settings.button_action),&quot;&amp;amp;buttonDisabled=&quot;,encodeURIComponent(this.settings.button_disabled),&quot;&amp;amp;buttonCursor=&quot;,encodeURIComponent(this.settings.button_cursor)].join(&quot;&quot;)};SWFUpload.prototype.getMovieElement=function(){if(this.movieElement==undefined){this.movieElement=document.getElementById(this.movieName)}if(this.movieElement===null){throw&quot;Could not find Flash element&quot;}return this.movieElement};SWFUpload.prototype.buildParamString=function(){var c=this.settings.post_params;var b=[];if(typeof(c)===&quot;object&quot;){for(var a in c){if(c.hasOwnProperty(a)){b.push(encodeURIComponent(a.toString())+&quot;=&quot;+encodeURIComponent(c[a].toString()))}}}return b.join(&quot;&amp;amp;&quot;)};SWFUpload.prototype.destroy=function(){try{this.cancelUpload(null,false);var a=null;a=this.getMovieElement();if(a&amp;&amp;typeof(a.CallFunction)===&quot;unknown&quot;){for(var c in a){try{if(typeof(a[c])===&quot;function&quot;){a[c]=null}}catch(e){}}try{a.parentNode.removeChild(a)}catch(b){}}window[this.movieName]=null;SWFUpload.instances[this.movieName]=null;delete SWFUpload.instances[this.movieName];this.movieElement=null;this.settings=null;this.customSettings=null;this.eventQueue=null;this.movieName=null;return true}catch(d){return false}};SWFUpload.prototype.displayDebugInfo=function(){this.debug([&quot;---SWFUpload Instance Info---\n&quot;,&quot;Version: &quot;,SWFUpload.version,&quot;\n&quot;,&quot;Movie Name: &quot;,this.movieName,&quot;\n&quot;,&quot;Settings:\n&quot;,&quot;\t&quot;,&quot;upload_url:               &quot;,this.settings.upload_url,&quot;\n&quot;,&quot;\t&quot;,&quot;flash_url:                &quot;,this.settings.flash_url,&quot;\n&quot;,&quot;\t&quot;,&quot;use_query_string:         &quot;,this.settings.use_query_string.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;requeue_on_error:         &quot;,this.settings.requeue_on_error.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;http_success:             &quot;,this.settings.http_success.join(&quot;, &quot;),&quot;\n&quot;,&quot;\t&quot;,&quot;assume_success_timeout:   &quot;,this.settings.assume_success_timeout,&quot;\n&quot;,&quot;\t&quot;,&quot;file_post_name:           &quot;,this.settings.file_post_name,&quot;\n&quot;,&quot;\t&quot;,&quot;post_params:              &quot;,this.settings.post_params.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;file_types:               &quot;,this.settings.file_types,&quot;\n&quot;,&quot;\t&quot;,&quot;file_types_description:   &quot;,this.settings.file_types_description,&quot;\n&quot;,&quot;\t&quot;,&quot;file_size_limit:          &quot;,this.settings.file_size_limit,&quot;\n&quot;,&quot;\t&quot;,&quot;file_upload_limit:        &quot;,this.settings.file_upload_limit,&quot;\n&quot;,&quot;\t&quot;,&quot;file_queue_limit:         &quot;,this.settings.file_queue_limit,&quot;\n&quot;,&quot;\t&quot;,&quot;debug:                    &quot;,this.settings.debug.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;prevent_swf_caching:      &quot;,this.settings.prevent_swf_caching.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;button_placeholder_id:    &quot;,this.settings.button_placeholder_id.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;button_placeholder:       &quot;,(this.settings.button_placeholder?&quot;Set&quot;:&quot;Not Set&quot;),&quot;\n&quot;,&quot;\t&quot;,&quot;button_image_url:         &quot;,this.settings.button_image_url.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;button_width:             &quot;,this.settings.button_width.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;button_height:            &quot;,this.settings.button_height.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;button_text:              &quot;,this.settings.button_text.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;button_text_style:        &quot;,this.settings.button_text_style.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;button_text_top_padding:  &quot;,this.settings.button_text_top_padding.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;button_text_left_padding: &quot;,this.settings.button_text_left_padding.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;button_action:            &quot;,this.settings.button_action.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;button_disabled:          &quot;,this.settings.button_disabled.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;custom_settings:          &quot;,this.settings.custom_settings.toString(),&quot;\n&quot;,&quot;Event Handlers:\n&quot;,&quot;\t&quot;,&quot;swfupload_loaded_handler assigned:  &quot;,(typeof this.settings.swfupload_loaded_handler===&quot;function&quot;).toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;file_dialog_start_handler assigned: &quot;,(typeof this.settings.file_dialog_start_handler===&quot;function&quot;).toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;file_queued_handler assigned:       &quot;,(typeof this.settings.file_queued_handler===&quot;function&quot;).toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;file_queue_error_handler assigned:  &quot;,(typeof this.settings.file_queue_error_handler===&quot;function&quot;).toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;upload_start_handler assigned:      &quot;,(typeof this.settings.upload_start_handler===&quot;function&quot;).toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;upload_progress_handler assigned:   &quot;,(typeof this.settings.upload_progress_handler===&quot;function&quot;).toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;upload_error_handler assigned:      &quot;,(typeof this.settings.upload_error_handler===&quot;function&quot;).toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;upload_success_handler assigned:    &quot;,(typeof this.settings.upload_success_handler===&quot;function&quot;).toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;upload_complete_handler assigned:   &quot;,(typeof this.settings.upload_complete_handler===&quot;function&quot;).toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;debug_handler assigned:             &quot;,(typeof this.settings.debug_handler===&quot;function&quot;).toString(),&quot;\n&quot;].join(&quot;&quot;))};SWFUpload.prototype.addSetting=function(b,c,a){if(c==undefined){return(this.settings[b]=a)}else{return(this.settings[b]=c)}};SWFUpload.prototype.getSetting=function(a){if(this.settings[a]!=undefined){return this.settings[a]}return&quot;&quot;};SWFUpload.prototype.callFlash=function(functionName,argumentArray){argumentArray=argumentArray||[];var movieElement=this.getMovieElement();var returnValue,returnString;try{returnString=movieElement.CallFunction('&lt;invoke name=&quot;'+functionName+'&quot; returntype=&quot;javascript&quot;&gt;'+__flash__argumentsToXML(argumentArray,0)+&quot;&lt;/invoke&gt;&quot;);returnValue=eval(returnString)}catch(ex){throw&quot;Call to &quot;+functionName+&quot; failed&quot;}if(returnValue!=undefined&amp;&amp;typeof returnValue.post===&quot;object&quot;){returnValue=this.unescapeFilePostParams(returnValue)}return returnValue};SWFUpload.prototype.selectFile=function(){this.callFlash(&quot;SelectFile&quot;)};SWFUpload.prototype.selectFiles=function(){this.callFlash(&quot;SelectFiles&quot;)};SWFUpload.prototype.startUpload=function(a){this.callFlash(&quot;StartUpload&quot;,[a])};SWFUpload.prototype.cancelUpload=function(a,b){if(b!==false){b=true}this.callFlash(&quot;CancelUpload&quot;,[a,b])};SWFUpload.prototype.stopUpload=function(){this.callFlash(&quot;StopUpload&quot;)};SWFUpload.prototype.getStats=function(){return this.callFlash(&quot;GetStats&quot;)};SWFUpload.prototype.setStats=function(a){this.callFlash(&quot;SetStats&quot;,[a])};SWFUpload.prototype.getFile=function(a){if(typeof(a)===&quot;number&quot;){return this.callFlash(&quot;GetFileByIndex&quot;,[a])}else{return this.callFlash(&quot;GetFile&quot;,[a])}};SWFUpload.prototype.addFileParam=function(a,b,c){return this.callFlash(&quot;AddFileParam&quot;,[a,b,c])};SWFUpload.prototype.removeFileParam=function(a,b){this.callFlash(&quot;RemoveFileParam&quot;,[a,b])};SWFUpload.prototype.setUploadURL=function(a){this.settings.upload_url=a.toString();this.callFlash(&quot;SetUploadURL&quot;,[a])};SWFUpload.prototype.setPostParams=function(a){this.settings.post_params=a;this.callFlash(&quot;SetPostParams&quot;,[a])};SWFUpload.prototype.addPostParam=function(a,b){this.settings.post_params[a]=b;this.callFlash(&quot;SetPostParams&quot;,[this.settings.post_params])};SWFUpload.prototype.removePostParam=function(a){delete this.settings.post_params[a];this.callFlash(&quot;SetPostParams&quot;,[this.settings.post_params])};SWFUpload.prototype.setFileTypes=function(a,b){this.settings.file_types=a;this.settings.file_types_description=b;this.callFlash(&quot;SetFileTypes&quot;,[a,b])};SWFUpload.prototype.setFileSizeLimit=function(a){this.settings.file_size_limit=a;this.callFlash(&quot;SetFileSizeLimit&quot;,[a])};SWFUpload.prototype.setFileUploadLimit=function(a){this.settings.file_upload_limit=a;this.callFlash(&quot;SetFileUploadLimit&quot;,[a])};SWFUpload.prototype.setFileQueueLimit=function(a){this.settings.file_queue_limit=a;this.callFlash(&quot;SetFileQueueLimit&quot;,[a])};SWFUpload.prototype.setFilePostName=function(a){this.settings.file_post_name=a;this.callFlash(&quot;SetFilePostName&quot;,[a])};SWFUpload.prototype.setUseQueryString=function(a){this.settings.use_query_string=a;this.callFlash(&quot;SetUseQueryString&quot;,[a])};SWFUpload.prototype.setRequeueOnError=function(a){this.settings.requeue_on_error=a;this.callFlash(&quot;SetRequeueOnError&quot;,[a])};SWFUpload.prototype.setHTTPSuccess=function(a){if(typeof a===&quot;string&quot;){a=a.replace(&quot; &quot;,&quot;&quot;).split(&quot;,&quot;)}this.settings.http_success=a;this.callFlash(&quot;SetHTTPSuccess&quot;,[a])};SWFUpload.prototype.setAssumeSuccessTimeout=function(a){this.settings.assume_success_timeout=a;this.callFlash(&quot;SetAssumeSuccessTimeout&quot;,[a])};SWFUpload.prototype.setDebugEnabled=function(a){this.settings.debug_enabled=a;this.callFlash(&quot;SetDebugEnabled&quot;,[a])};SWFUpload.prototype.setButtonImageURL=function(a){if(a==undefined){a=&quot;&quot;}this.settings.button_image_url=a;this.callFlash(&quot;SetButtonImageURL&quot;,[a])};SWFUpload.prototype.setButtonDimensions=function(c,a){this.settings.button_width=c;this.settings.button_height=a;var b=this.getMovieElement();if(b!=undefined){b.style.width=c+&quot;px&quot;;b.style.height=a+&quot;px&quot;}this.callFlash(&quot;SetButtonDimensions&quot;,[c,a])};SWFUpload.prototype.setButtonText=function(a){this.settings.button_text=a;this.callFlash(&quot;SetButtonText&quot;,[a])};SWFUpload.prototype.setButtonTextPadding=function(b,a){this.settings.button_text_top_padding=a;this.settings.button_text_left_padding=b;this.callFlash(&quot;SetButtonTextPadding&quot;,[b,a])};SWFUpload.prototype.setButtonTextStyle=function(a){this.settings.button_text_style=a;this.callFlash(&quot;SetButtonTextStyle&quot;,[a])};SWFUpload.prototype.setButtonDisabled=function(a){this.settings.button_disabled=a;this.callFlash(&quot;SetButtonDisabled&quot;,[a])};SWFUpload.prototype.setButtonAction=function(a){this.settings.button_action=a;this.callFlash(&quot;SetButtonAction&quot;,[a])};SWFUpload.prototype.setButtonCursor=function(a){this.settings.button_cursor=a;this.callFlash(&quot;SetButtonCursor&quot;,[a])};SWFUpload.prototype.queueEvent=function(b,c){if(c==undefined){c=[]}else{if(!(c instanceof Array)){c=[c]}}var a=this;if(typeof this.settings[b]===&quot;function&quot;){this.eventQueue.push(function(){this.settings[b].apply(this,c)});setTimeout(function(){a.executeNextEvent()},0)}else{if(this.settings[b]!==null){throw&quot;Event handler &quot;+b+&quot; is unknown or is not a function&quot;}}};SWFUpload.prototype.executeNextEvent=function(){var a=this.eventQueue?this.eventQueue.shift():null;if(typeof(a)===&quot;function&quot;){a.apply(this)}};SWFUpload.prototype.unescapeFilePostParams=function(c){var e=/[$]([0-9a-f]{4})/i;var f={};var d;if(c!=undefined){for(var a in c.post){if(c.post.hasOwnProperty(a)){d=a;var b;while((b=e.exec(d))!==null){d=d.replace(b[0],String.fromCharCode(parseInt(&quot;0x&quot;+b[1],16)))}f[d]=c.post[a]}}c.post=f}return c};SWFUpload.prototype.testExternalInterface=function(){try{return this.callFlash(&quot;TestExternalInterface&quot;)}catch(a){return false}};SWFUpload.prototype.flashReady=function(){var a=this.getMovieElement();if(!a){this.debug(&quot;Flash called back ready but the flash movie can't be found.&quot;);return}this.cleanUp(a);this.queueEvent(&quot;swfupload_loaded_handler&quot;)};SWFUpload.prototype.cleanUp=function(a){try{if(this.movieElement&amp;&amp;typeof(a.CallFunction)===&quot;unknown&quot;){this.debug(&quot;Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)&quot;);for(var c in a){try{if(typeof(a[c])===&quot;function&quot;){a[c]=null}}catch(b){}}}}catch(d){}window.__flash__removeCallback=function(e,f){try{if(e){e[f]=null}}catch(g){}}};SWFUpload.prototype.fileDialogStart=function(){this.queueEvent(&quot;file_dialog_start_handler&quot;)};SWFUpload.prototype.fileQueued=function(a){a=this.unescapeFilePostParams(a);this.queueEvent(&quot;file_queued_handler&quot;,a)};SWFUpload.prototype.fileQueueError=function(a,c,b){a=this.unescapeFilePostParams(a);this.queueEvent(&quot;file_queue_error_handler&quot;,[a,c,b])};SWFUpload.prototype.fileDialogComplete=function(b,c,a){this.queueEvent(&quot;file_dialog_complete_handler&quot;,[b,c,a])};SWFUpload.prototype.uploadStart=function(a){a=this.unescapeFilePostParams(a);this.queueEvent(&quot;return_upload_start_handler&quot;,a)};SWFUpload.prototype.returnUploadStart=function(a){var b;if(typeof this.settings.upload_start_handler===&quot;function&quot;){a=this.unescapeFilePostParams(a);b=this.settings.upload_start_handler.call(this,a)}else{if(this.settings.upload_start_handler!=undefined){throw&quot;upload_start_handler must be a function&quot;}}if(b===undefined){b=true}b=!!b;this.callFlash(&quot;ReturnUploadStart&quot;,[b])};SWFUpload.prototype.uploadProgress=function(a,c,b){a=this.unescapeFilePostParams(a);this.queueEvent(&quot;upload_progress_handler&quot;,[a,c,b])};SWFUpload.prototype.uploadError=function(a,c,b){a=this.unescapeFilePostParams(a);this.queueEvent(&quot;upload_error_handler&quot;,[a,c,b])};SWFUpload.prototype.uploadSuccess=function(b,a,c){b=this.unescapeFilePostParams(b);this.queueEvent(&quot;upload_success_handler&quot;,[b,a,c])};SWFUpload.prototype.uploadComplete=function(a){a=this.unescapeFilePostParams(a);this.queueEvent(&quot;upload_complete_handler&quot;,a)};SWFUpload.prototype.debug=function(a){this.queueEvent(&quot;debug_handler&quot;,a)};SWFUpload.prototype.debugMessage=function(c){if(this.settings.debug){var a,d=[];if(typeof c===&quot;object&quot;&amp;&amp;typeof c.name===&quot;string&quot;&amp;&amp;typeof c.message===&quot;string&quot;){for(var b in c){if(c.hasOwnProperty(b)){d.push(b+&quot;: &quot;+c[b])}}a=d.join(&quot;\n&quot;)||&quot;&quot;;d=a.split(&quot;\n&quot;);a=&quot;EXCEPTION: &quot;+d.join(&quot;\nEXCEPTION: &quot;);SWFUpload.Console.writeLine(a)}else{SWFUpload.Console.writeLine(c)}}};SWFUpload.Console={};SWFUpload.Console.writeLine=function(d){var b,a;try{b=document.getElementById(&quot;SWFUpload_Console&quot;);if(!b){a=document.createElement(&quot;form&quot;);document.getElementsByTagName(&quot;body&quot;)[0].appendChild(a);b=document.createElement(&quot;textarea&quot;);b.id=&quot;SWFUpload_Console&quot;;b.style.fontFamily=&quot;monospace&quot;;b.setAttribute(&quot;wrap&quot;,&quot;off&quot;);b.wrap=&quot;off&quot;;b.style.overflow=&quot;auto&quot;;b.style.width=&quot;700px&quot;;b.style.height=&quot;350px&quot;;b.style.margin=&quot;5px&quot;;a.appendChild(b)}b.value+=d+&quot;\n&quot;;b.scrollTop=b.scrollHeight-b.clientHeight}catch(c){alert(&quot;Exception: &quot;+c.name+&quot; Message: &quot;+c.message)}};var SWFUpload;if(typeof(SWFUpload)===&quot;function&quot;){SWFUpload.queue={};SWFUpload.prototype.initSettings=(function(a){return function(){if(typeof(a)===&quot;function&quot;){a.call(this)}this.customSettings.queue_cancelled_flag=false;this.customSettings.queue_upload_count=0;this.settings.user_upload_complete_handler=this.settings.upload_complete_handler;this.settings.upload_complete_handler=SWFUpload.queue.uploadCompleteHandler;this.settings.queue_complete_handler=this.settings.queue_complete_handler||null}})(SWFUpload.prototype.initSettings);SWFUpload.prototype.startUpload=function(a){this.customSettings.queue_cancelled_flag=false;this.callFlash(&quot;StartUpload&quot;,false,[a])};SWFUpload.prototype.cancelQueue=function(){this.customSettings.queue_cancelled_flag=true;this.stopUpload();var a=this.getStats();while(a.files_queued&gt;0){this.cancelUpload();a=this.getStats()}};SWFUpload.queue.uploadCompleteHandler=function(b){var c=this.settings.user_upload_complete_handler;var d;if(b.filestatus===SWFUpload.FILE_STATUS.COMPLETE){this.customSettings.queue_upload_count++}if(typeof(c)===&quot;function&quot;){d=(c.call(this,b)===false)?false:true}else{d=true}if(d){var a=this.getStats();if(a.files_queued&gt;0&amp;&amp;this.customSettings.queue_cancelled_flag===false){this.startUpload()}else{if(this.customSettings.queue_cancelled_flag===false){this.queueEvent(&quot;queue_complete_handler&quot;,[this.customSettings.queue_upload_count]);this.customSettings.queue_upload_count=0}else{this.customSettings.queue_cancelled_flag=false;this.customSettings.queue_upload_count=0}}}}}function FileProgress(c,a){this.fileProgressID=c.id;this.opacity=100;this.height=0;this.fileProgressWrapper=document.getElementById(this.fileProgressID);if(!this.fileProgressWrapper){this.fileProgressWrapper=document.createElement(&quot;div&quot;);this.fileProgressWrapper.className=&quot;progressWrapper&quot;;this.fileProgressWrapper.id=this.fileProgressID;this.fileProgressElement=document.createElement(&quot;div&quot;);this.fileProgressElement.className=&quot;progressContainer&quot;;var f=document.createElement(&quot;a&quot;);f.className=&quot;progressCancel&quot;;f.href=&quot;#&quot;;f.style.visibility=&quot;hidden&quot;;f.appendChild(document.createTextNode(&quot; &quot;));var b=document.createElement(&quot;div&quot;);b.className=&quot;progressName&quot;;b.appendChild(document.createTextNode(c.name));var e=document.createElement(&quot;div&quot;);e.className=&quot;progressBarInProgress&quot;;var d=document.createElement(&quot;div&quot;);d.className=&quot;progressBarStatus&quot;;d.innerHTML=&quot;&amp;nbsp;&quot;;this.fileProgressElement.appendChild(f);this.fileProgressElement.appendChild(b);this.fileProgressElement.appendChild(d);this.fileProgressElement.appendChild(e);this.fileProgressWrapper.appendChild(this.fileProgressElement);document.getElementById(a).appendChild(this.fileProgressWrapper)}else{this.fileProgressElement=this.fileProgressWrapper.firstChild}this.height=this.fileProgressWrapper.offsetHeight}FileProgress.prototype.setProgress=function(a){this.fileProgressElement.className=&quot;progressContainer green&quot;;this.fileProgressElement.childNodes[3].className=&quot;progressBarInProgress&quot;;this.fileProgressElement.childNodes[3].style.width=a+&quot;%&quot;};FileProgress.prototype.setComplete=function(){this.fileProgressElement.className=&quot;progressContainer blue&quot;;this.fileProgressElement.childNodes[3].className=&quot;progressBarComplete&quot;;this.fileProgressElement.childNodes[3].style.width=&quot;&quot;;var a=this;setTimeout(function(){a.disappear()},10000)};FileProgress.prototype.setError=function(){this.fileProgressElement.className=&quot;progressContainer red&quot;;this.fileProgressElement.childNodes[3].className=&quot;progressBarError&quot;;this.fileProgressElement.childNodes[3].style.width=&quot;&quot;;var a=this;setTimeout(function(){a.disappear()},5000)};FileProgress.prototype.setCancelled=function(){this.fileProgressElement.className=&quot;progressContainer&quot;;this.fileProgressElement.childNodes[3].className=&quot;progressBarError&quot;;this.fileProgressElement.childNodes[3].style.width=&quot;&quot;;var a=this;setTimeout(function(){a.disappear()},2000)};FileProgress.prototype.setStatus=function(a){this.fileProgressElement.childNodes[2].innerHTML=a};FileProgress.prototype.toggleCancel=function(b,c){this.fileProgressElement.childNodes[0].style.visibility=b?&quot;visible&quot;:&quot;hidden&quot;;if(c){var a=this.fileProgressID;this.fileProgressElement.childNodes[0].onclick=function(){c.cancelUpload(a);return false}}};FileProgress.prototype.disappear=function(){var f=15;var c=4;var b=30;if(this.opacity&gt;0){this.opacity-=f;if(this.opacity&lt;0){this.opacity=0}if(this.fileProgressWrapper.filters){try{this.fileProgressWrapper.filters.item(&quot;DXImageTransform.Microsoft.Alpha&quot;).opacity=this.opacity}catch(d){this.fileProgressWrapper.style.filter=&quot;progid:DXImageTransform.Microsoft.Alpha(opacity=&quot;+this.opacity+&quot;)&quot;}}else{this.fileProgressWrapper.style.opacity=this.opacity/100}}if(this.height&gt;0){this.height-=c;if(this.height&lt;0){this.height=0}this.fileProgressWrapper.style.height=this.height+&quot;px&quot;}if(this.height&gt;0||this.opacity&gt;0){var a=this;setTimeout(function(){a.disappear()},b)}else{this.fileProgressWrapper.style.display=&quot;none&quot;}};function fileQueued(c){try{var a=new FileProgress(c,this.customSettings.progressTarget);a.setStatus(&quot;Pending...&quot;);a.toggleCancel(true,this)}catch(b){this.debug(b)}}function fileQueueError(c,e,d){try{if(e===SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED){alert(&quot;You have attempted to queue too many files.\n&quot;+(d===0?&quot;You have reached the upload limit.&quot;:&quot;You may select &quot;+(d&gt;1?&quot;up to &quot;+d+&quot; files.&quot;:&quot;one file.&quot;)));return}var a=new FileProgress(c,this.customSettings.progressTarget);a.setError();a.toggleCancel(false);switch(e){case SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT:a.setStatus(&quot;File is too big.&quot;);this.debug(&quot;Error Code: File too big, File name: &quot;+c.name+&quot;, File size: &quot;+c.size+&quot;, Message: &quot;+d);break;case SWFUpload.QUEUE_ERROR.ZERO_BYTE_FILE:a.setStatus(&quot;Cannot upload Zero Byte files.&quot;);this.debug(&quot;Error Code: Zero byte file, File name: &quot;+c.name+&quot;, File size: &quot;+c.size+&quot;, Message: &quot;+d);break;case SWFUpload.QUEUE_ERROR.INVALID_FILETYPE:a.setStatus(&quot;Invalid File Type.&quot;);this.debug(&quot;Error Code: Invalid File Type, File name: &quot;+c.name+&quot;, File size: &quot;+c.size+&quot;, Message: &quot;+d);break;default:if(c!==null){a.setStatus(&quot;Unhandled Error&quot;)}this.debug(&quot;Error Code: &quot;+e+&quot;, File name: &quot;+c.name+&quot;, File size: &quot;+c.size+&quot;, Message: &quot;+d);break}}catch(b){this.debug(b)}}function fileDialogComplete(a,c){try{if(a&gt;0){document.getElementById(this.customSettings.cancelButtonId).disabled=false}}catch(b){this.debug(b)}}function uploadStart(c){try{var a=new FileProgress(c,this.customSettings.progressTarget);a.setStatus(&quot;Uploading...&quot;);a.toggleCancel(true,this)}catch(b){}return true}function uploadProgress(c,f,e){try{var d=Math.ceil((f/e)*100);var a=new FileProgress(c,this.customSettings.progressTarget);a.setProgress(d);a.setStatus(&quot;Uploading...&quot;)}catch(b){this.debug(b)}}function uploadSuccess(d,b){try{var a=new FileProgress(d,this.customSettings.progressTarget);a.setComplete();a.setStatus(&quot;Complete.&quot;);a.toggleCancel(false)}catch(c){this.debug(c)}}function uploadError(c,e,d){try{var a=new FileProgress(c,this.customSettings.progressTarget);a.setError();a.toggleCancel(false);switch(e){case SWFUpload.UPLOAD_ERROR.HTTP_ERROR:a.setStatus(&quot;Upload Error: &quot;+d);this.debug(&quot;Error Code: HTTP Error, File name: &quot;+c.name+&quot;, Message: &quot;+d);break;case SWFUpload.UPLOAD_ERROR.UPLOAD_FAILED:a.setStatus(&quot;Upload Failed.&quot;);this.debug(&quot;Error Code: Upload Failed, File name: &quot;+c.name+&quot;, File size: &quot;+c.size+&quot;, Message: &quot;+d);break;case SWFUpload.UPLOAD_ERROR.IO_ERROR:a.setStatus(&quot;Server (IO) Error&quot;);this.debug(&quot;Error Code: IO Error, File name: &quot;+c.name+&quot;, Message: &quot;+d);break;case SWFUpload.UPLOAD_ERROR.SECURITY_ERROR:a.setStatus(&quot;Security Error&quot;);this.debug(&quot;Error Code: Security Error, File name: &quot;+c.name+&quot;, Message: &quot;+d);break;case SWFUpload.UPLOAD_ERROR.UPLOAD_LIMIT_EXCEEDED:a.setStatus(&quot;Upload limit exceeded.&quot;);this.debug(&quot;Error Code: Upload Limit Exceeded, File name: &quot;+c.name+&quot;, File size: &quot;+c.size+&quot;, Message: &quot;+d);break;case SWFUpload.UPLOAD_ERROR.FILE_VALIDATION_FAILED:a.setStatus(&quot;Failed Validation.  Upload skipped.&quot;);this.debug(&quot;Error Code: File Validation Failed, File name: &quot;+c.name+&quot;, File size: &quot;+c.size+&quot;, Message: &quot;+d);break;case SWFUpload.UPLOAD_ERROR.FILE_CANCELLED:if(this.getStats().files_queued===0){document.getElementById(this.customSettings.cancelButtonId).disabled=true}a.setStatus(&quot;Cancelled&quot;);a.setCancelled();break;case SWFUpload.UPLOAD_ERROR.UPLOAD_STOPPED:a.setStatus(&quot;Stopped&quot;);break;default:a.setStatus(&quot;Unhandled Error: &quot;+e);this.debug(&quot;Error Code: &quot;+e+&quot;, File name: &quot;+c.name+&quot;, File size: &quot;+c.size+&quot;, Message: &quot;+d);break}}catch(b){this.debug(b)}jQuery(&quot;#start_button&quot;).fadeTo(&quot;fast&quot;,1)}function uploadComplete(a){if(this.getStats().files_queued===0){document.getElementById(this.customSettings.cancelButtonId).disabled=true}jQuery(&quot;#start_button&quot;).fadeTo(&quot;fast&quot;,1);if(typeof(reload_images)!=&quot;undefined&quot;){reload_images()}if(typeof updateAll!=&quot;undefined&quot;){updateAll(root)}}function queueComplete(b){var a=document.getElementById(&quot;divStatus&quot;);a.innerHTML=b+&quot; file&quot;+(b===1?&quot;&quot;:&quot;s&quot;)+&quot; uploaded.&quot;}function init_upload(){if(jQuery(&quot;#content_page_id&quot;).val()){var b={content_id:jQuery(&quot;#content_page_id&quot;).val(),model_string:jQuery(&quot;#content_page_type&quot;).val(),join_field:jQuery(&quot;#join_field&quot;).val()}}else{var b={}}var a={flash_url:&quot;/swfupload.swf&quot;,upload_url:&quot;/file_upload.php&quot;,post_params:b,file_size_limit:&quot;100 MB&quot;,file_types:&quot;*.*&quot;,file_types_description:&quot;All Files&quot;,file_upload_limit:100,file_queue_limit:100,custom_settings:{progressTarget:&quot;fsUploadProgress&quot;,cancelButtonId:&quot;btnCancel&quot;},debug:false,button_image_url:&quot;/images/cms/add_files_button.png&quot;,button_width:&quot;254&quot;,button_height:&quot;27&quot;,button_placeholder_id:&quot;spanButtonPlaceHolder&quot;,button_window_mode:SWFUpload.WINDOW_MODE.TRANSPARENT,button_cursor:SWFUpload.CURSOR.HAND,file_queued_handler:fileQueued,file_queue_error_handler:fileQueueError,file_dialog_complete_handler:fileDialogComplete,upload_start_handler:uploadStart,upload_progress_handler:uploadProgress,upload_error_handler:uploadError,upload_success_handler:uploadSuccess,upload_complete_handler:uploadComplete,queue_complete_handler:queueComplete};swfu=new SWFUpload(a)}var swfu;function set_post_params(){var a=jQuery(&quot;#dest&quot;).html();if(a==&quot;select a folder&quot;){alert(&quot;You must choose a folder first&quot;);return false}if(!a){var a=jQuery(&quot;#wildfire_file_folder&quot;).val()}if(jQuery(&quot;#upload_from&quot;).length&amp;&amp;jQuery(&quot;#upload_from&quot;).val().length&gt;1){jQuery.post(&quot;/file_upload.php?&quot;,{wildfire_file_folder:a,wildfire_file_description:jQuery(&quot;#wildfire_file_description&quot;).val(),upload_from_url:jQuery(&quot;#upload_from&quot;).val(),wildfire_file_filename:jQuery(&quot;#wildfire_file_filename&quot;).val(),content_id:jQuery(&quot;#url_content_page_id&quot;).val(),model_string:jQuery(&quot;#url_content_page_type&quot;).val(),join_field:jQuery(&quot;#url_join_field&quot;).val()},function(){jQuery(&quot;#start_button&quot;).fadeTo(&quot;fast&quot;,1);alert(&quot;Image Successfully Retrieved&quot;);if(typeof(reload_images)!=&quot;undefined&quot;){reload_images()}});return true}swfu.addPostParam(&quot;wildfire_file_folder&quot;,a);swfu.addPostParam(&quot;wildfire_file_description&quot;,jQuery(&quot;#wildfire_file_description&quot;).val());swfu.startUpload()}jQuery(document).scroll(function(){jQuery(&quot;#informationcart&quot;).verticalCenter()});jQuery.fn.verticalCenter=function(a){var b=this;if(!a){b.css(&quot;top&quot;,jQuery(window).height()/2-this.height()/2);jQuery(window).resize(function(){b.centerScreen(!a)})}else{b.stop();b.animate({top:jQuery(window).height()/2-this.height()/2},200,&quot;linear&quot;)}};$(document).ready(function(){$(&quot;#cms_users .tabs-nav&quot;).tabs();initialise_user_draggables();$(&quot;#cms_users #section_browser_filter&quot;).keyup(function(){if(typeof(t)!=&quot;undefined&quot;){clearTimeout(t)}t=setTimeout('delayed_sect_filter($(&quot;#section_browser_filter&quot;).val())',400)})});function initialise_user_draggables(){$(&quot;#cms_users .section_tag&quot;).draggable({containment:&quot;window&quot;,ghosting:true,opacity:0.4,revert:true,scroll:false,helper:&quot;clone&quot;});$(&quot;#cms_users #sect_dropzone&quot;).droppable({accept:&quot;.section_tag&quot;,hoverClass:&quot;dropzone_active&quot;,tolerance:&quot;pointer&quot;,drop:function(a,b){$.post(&quot;../../add_section/&quot;+content_page_id,{id:b.draggable.attr(&quot;id&quot;)},function(c){$(&quot;#sect_dropzone&quot;).html(c);initialise_user_draggables()})}});$(&quot;#cms_users .section_trash_button&quot;).click(function(){$.get(&quot;../../remove_section/&quot;+content_page_id+&quot;?sect=&quot;+this.id.substr(21),function(a){$(&quot;#sect_dropzone&quot;).html(a);initialise_user_draggables()})})}function delayed_sect_filter(a){$(&quot;#cms_users #section_browser_filter&quot;).css(&quot;background&quot;,&quot;white url(/images/cms/indicator.gif) no-repeat right center&quot;);$.ajax({type:&quot;post&quot;,url:&quot;/admin/sections/filters&quot;,data:&quot;filter=&quot;+a,complete:function(b){$(&quot;#section_list&quot;).html(b.responseText);initialise_user_draggables();if(typeof(t)!=&quot;undefined&quot;){clearTimeout(t)}$(&quot;#section_browser_filter&quot;).css(&quot;background&quot;,&quot;white&quot;)}})};
\ No newline at end of file
+(function(){var W=this,ab,F=W.jQuery,S=W.$,T=W.jQuery=W.$=function(b,a){return new T.fn.init(b,a)},M=/^[^&lt;]*(&lt;(.|\s)+&gt;)[^&gt;]*$|^#([\w-]+)$/,ac=/^.[^:#\[\.,]*$/;T.fn=T.prototype={init:function(e,b){e=e||document;if(e.nodeType){this[0]=e;this.length=1;this.context=e;return this}if(typeof e===&quot;string&quot;){var c=M.exec(e);if(c&amp;&amp;(c[1]||!b)){if(c[1]){e=T.clean([c[1]],b)}else{var a=document.getElementById(c[3]);if(a&amp;&amp;a.id!=c[3]){return T().find(e)}var d=T(a||[]);d.context=document;d.selector=e;return d}}else{return T(b).find(e)}}else{if(T.isFunction(e)){return T(document).ready(e)}}if(e.selector&amp;&amp;e.context){this.selector=e.selector;this.context=e.context}return this.setArray(T.isArray(e)?e:T.makeArray(e))},selector:&quot;&quot;,jquery:&quot;1.3.2&quot;,size:function(){return this.length},get:function(a){return a===ab?Array.prototype.slice.call(this):this[a]},pushStack:function(c,a,d){var b=T(c);b.prevObject=this;b.context=this.context;if(a===&quot;find&quot;){b.selector=this.selector+(this.selector?&quot; &quot;:&quot;&quot;)+d}else{if(a){b.selector=this.selector+&quot;.&quot;+a+&quot;(&quot;+d+&quot;)&quot;}}return b},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},each:function(a,b){return T.each(this,a,b)},index:function(a){return T.inArray(a&amp;&amp;a.jquery?a[0]:a,this)},attr:function(c,a,b){var d=c;if(typeof c===&quot;string&quot;){if(a===ab){return this[0]&amp;&amp;T[b||&quot;attr&quot;](this[0],c)}else{d={};d[c]=a}}return this.each(function(e){for(c in d){T.attr(b?this.style:this,c,T.prop(this,d[c],b,e,c))}})},css:function(b,a){if((b==&quot;width&quot;||b==&quot;height&quot;)&amp;&amp;parseFloat(a)&lt;0){a=ab}return this.attr(b,a,&quot;curCSS&quot;)},text:function(a){if(typeof a!==&quot;object&quot;&amp;&amp;a!=null){return this.empty().append((this[0]&amp;&amp;this[0].ownerDocument||document).createTextNode(a))}var b=&quot;&quot;;T.each(a||this,function(){T.each(this.childNodes,function(){if(this.nodeType!=8){b+=this.nodeType!=1?this.nodeValue:T.fn.text([this])}})});return b},wrapAll:function(b){if(this[0]){var a=T(b,this[0].ownerDocument).clone();if(this[0].parentNode){a.insertBefore(this[0])}a.map(function(){var c=this;while(c.firstChild){c=c.firstChild}return c}).append(this)}return this},wrapInner:function(a){return this.each(function(){T(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){T(this).wrapAll(a)})},append:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1){this.appendChild(a)}})},prepend:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1){this.insertBefore(a,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this.nextSibling)})},end:function(){return this.prevObject||T([])},push:[].push,sort:[].sort,splice:[].splice,find:function(b){if(this.length===1){var a=this.pushStack([],&quot;find&quot;,b);a.length=0;T.find(b,this[0],a);return a}else{return this.pushStack(T.unique(T.map(this,function(c){return T.find(b,c)})),&quot;find&quot;,b)}},clone:function(b){var d=this.map(function(){if(!T.support.noCloneEvent&amp;&amp;!T.isXMLDoc(this)){var f=this.outerHTML;if(!f){var e=this.ownerDocument.createElement(&quot;div&quot;);e.appendChild(this.cloneNode(true));f=e.innerHTML}return T.clean([f.replace(/ jQuery\d+=&quot;(?:\d+|null)&quot;/g,&quot;&quot;).replace(/^\s*/,&quot;&quot;)])[0]}else{return this.cloneNode(true)}});if(b===true){var a=this.find(&quot;*&quot;).andSelf(),c=0;d.find(&quot;*&quot;).andSelf().each(function(){if(this.nodeName!==a[c].nodeName){return}var g=T.data(a[c],&quot;events&quot;);for(var e in g){for(var f in g[e]){T.event.add(this,e,g[e][f],g[e][f].data)}}c++})}return d},filter:function(a){return this.pushStack(T.isFunction(a)&amp;&amp;T.grep(this,function(b,c){return a.call(b,c)})||T.multiFilter(a,T.grep(this,function(b){return b.nodeType===1})),&quot;filter&quot;,a)},closest:function(c){var a=T.expr.match.POS.test(c)?T(c):null,b=0;return this.map(function(){var d=this;while(d&amp;&amp;d.ownerDocument){if(a?a.index(d)&gt;-1:T(d).is(c)){T.data(d,&quot;closest&quot;,b);return d}d=d.parentNode;b++}})},not:function(b){if(typeof b===&quot;string&quot;){if(ac.test(b)){return this.pushStack(T.multiFilter(b,this,true),&quot;not&quot;,b)}else{b=T.multiFilter(b,this)}}var a=b.length&amp;&amp;b[b.length-1]!==ab&amp;&amp;!b.nodeType;return this.filter(function(){return a?T.inArray(this,b)&lt;0:this!=b})},add:function(a){return this.pushStack(T.unique(T.merge(this.get(),typeof a===&quot;string&quot;?T(a):T.makeArray(a))))},is:function(a){return !!a&amp;&amp;T.multiFilter(a,this).length&gt;0},hasClass:function(a){return !!a&amp;&amp;this.is(&quot;.&quot;+a)},val:function(c){if(c===ab){var j=this[0];if(j){if(T.nodeName(j,&quot;option&quot;)){return(j.attributes.value||{}).specified?j.value:j.text}if(T.nodeName(j,&quot;select&quot;)){var e=j.selectedIndex,b=[],a=j.options,f=j.type==&quot;select-one&quot;;if(e&lt;0){return null}for(var h=f?e:0,d=f?e+1:a.length;h&lt;d;h++){var g=a[h];if(g.selected){c=T(g).val();if(f){return c}b.push(c)}}return b}return(j.value||&quot;&quot;).replace(/\r/g,&quot;&quot;)}return ab}if(typeof c===&quot;number&quot;){c+=&quot;&quot;}return this.each(function(){if(this.nodeType!=1){return}if(T.isArray(c)&amp;&amp;/radio|checkbox/.test(this.type)){this.checked=(T.inArray(this.value,c)&gt;=0||T.inArray(this.name,c)&gt;=0)}else{if(T.nodeName(this,&quot;select&quot;)){var k=T.makeArray(c);T(&quot;option&quot;,this).each(function(){this.selected=(T.inArray(this.value,k)&gt;=0||T.inArray(this.text,k)&gt;=0)});if(!k.length){this.selectedIndex=-1}}else{this.value=c}}})},html:function(a){return a===ab?(this[0]?this[0].innerHTML.replace(/ jQuery\d+=&quot;(?:\d+|null)&quot;/g,&quot;&quot;):null):this.empty().append(a)},replaceWith:function(a){return this.after(a).remove()},eq:function(a){return this.slice(a,+a+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),&quot;slice&quot;,Array.prototype.slice.call(arguments).join(&quot;,&quot;))},map:function(a){return this.pushStack(T.map(this,function(b,c){return a.call(b,c,b)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(d,a,b){if(this[0]){var e=(this[0].ownerDocument||this[0]).createDocumentFragment(),h=T.clean(d,(this[0].ownerDocument||this[0]),e),f=e.firstChild;if(f){for(var g=0,j=this.length;g&lt;j;g++){b.call(c(this[g],f),this.length&gt;1||g&gt;0?e.cloneNode(true):e)}}if(h){T.each(h,E)}}return this;function c(l,k){return a&amp;&amp;T.nodeName(l,&quot;table&quot;)&amp;&amp;T.nodeName(k,&quot;tr&quot;)?(l.getElementsByTagName(&quot;tbody&quot;)[0]||l.appendChild(l.ownerDocument.createElement(&quot;tbody&quot;))):l}}};T.fn.init.prototype=T.fn;function E(b,a){if(a.src){T.ajax({url:a.src,async:false,dataType:&quot;script&quot;})}else{T.globalEval(a.text||a.textContent||a.innerHTML||&quot;&quot;)}if(a.parentNode){a.parentNode.removeChild(a)}}function ad(){return +new Date}T.extend=T.fn.extend=function(){var c=arguments[0]||{},e=1,d=arguments.length,h=false,f;if(typeof c===&quot;boolean&quot;){h=c;c=arguments[1]||{};e=2}if(typeof c!==&quot;object&quot;&amp;&amp;!T.isFunction(c)){c={}}if(d==e){c=this;--e}for(;e&lt;d;e++){if((f=arguments[e])!=null){for(var g in f){var b=c[g],a=f[g];if(c===a){continue}if(h&amp;&amp;a&amp;&amp;typeof a===&quot;object&quot;&amp;&amp;!a.nodeType){c[g]=T.extend(h,b||(a.length!=null?[]:{}),a)}else{if(a!==ab){c[g]=a}}}}}return c};var ag=/z-?index|font-?weight|opacity|zoom|line-?height/i,Q=document.defaultView||{},L=Object.prototype.toString;T.extend({noConflict:function(a){W.$=S;if(a){W.jQuery=F}return T},isFunction:function(a){return L.call(a)===&quot;[object Function]&quot;},isArray:function(a){return L.call(a)===&quot;[object Array]&quot;},isXMLDoc:function(a){return a.nodeType===9&amp;&amp;a.documentElement.nodeName!==&quot;HTML&quot;||!!a.ownerDocument&amp;&amp;T.isXMLDoc(a.ownerDocument)},globalEval:function(a){if(a&amp;&amp;/\S/.test(a)){var b=document.getElementsByTagName(&quot;head&quot;)[0]||document.documentElement,c=document.createElement(&quot;script&quot;);c.type=&quot;text/javascript&quot;;if(T.support.scriptEval){c.appendChild(document.createTextNode(a))}else{c.text=a}b.insertBefore(c,b.firstChild);b.removeChild(c)}},nodeName:function(a,b){return a.nodeName&amp;&amp;a.nodeName.toUpperCase()==b.toUpperCase()},each:function(e,a,f){var g,d=0,c=e.length;if(f){if(c===ab){for(g in e){if(a.apply(e[g],f)===false){break}}}else{for(;d&lt;c;){if(a.apply(e[d++],f)===false){break}}}}else{if(c===ab){for(g in e){if(a.call(e[g],g,e[g])===false){break}}}else{for(var b=e[0];d&lt;c&amp;&amp;a.call(b,d,b)!==false;b=e[++d]){}}}return e},prop:function(b,a,c,d,e){if(T.isFunction(a)){a=a.call(b,d)}return typeof a===&quot;number&quot;&amp;&amp;c==&quot;curCSS&quot;&amp;&amp;!ag.test(e)?a+&quot;px&quot;:a},className:{add:function(b,a){T.each((a||&quot;&quot;).split(/\s+/),function(d,c){if(b.nodeType==1&amp;&amp;!T.className.has(b.className,c)){b.className+=(b.className?&quot; &quot;:&quot;&quot;)+c}})},remove:function(b,a){if(b.nodeType==1){b.className=a!==ab?T.grep(b.className.split(/\s+/),function(c){return !T.className.has(a,c)}).join(&quot; &quot;):&quot;&quot;}},has:function(a,b){return a&amp;&amp;T.inArray(b,(a.className||a).toString().split(/\s+/))&gt;-1}},swap:function(b,c,a){var e={};for(var d in c){e[d]=b.style[d];b.style[d]=c[d]}a.call(b);for(var d in c){b.style[d]=e[d]}},css:function(e,g,c,h){if(g==&quot;width&quot;||g==&quot;height&quot;){var a,f={position:&quot;absolute&quot;,visibility:&quot;hidden&quot;,display:&quot;block&quot;},b=g==&quot;width&quot;?[&quot;Left&quot;,&quot;Right&quot;]:[&quot;Top&quot;,&quot;Bottom&quot;];function d(){a=g==&quot;width&quot;?e.offsetWidth:e.offsetHeight;if(h===&quot;border&quot;){return}T.each(b,function(){if(!h){a-=parseFloat(T.curCSS(e,&quot;padding&quot;+this,true))||0}if(h===&quot;margin&quot;){a+=parseFloat(T.curCSS(e,&quot;margin&quot;+this,true))||0}else{a-=parseFloat(T.curCSS(e,&quot;border&quot;+this+&quot;Width&quot;,true))||0}})}if(e.offsetWidth!==0){d()}else{T.swap(e,f,d)}return Math.max(0,Math.round(a))}return T.curCSS(e,g,c)},curCSS:function(e,h,g){var b,j=e.style;if(h==&quot;opacity&quot;&amp;&amp;!T.support.opacity){b=T.attr(j,&quot;opacity&quot;);return b==&quot;&quot;?&quot;1&quot;:b}if(h.match(/float/i)){h=H}if(!g&amp;&amp;j&amp;&amp;j[h]){b=j[h]}else{if(Q.getComputedStyle){if(h.match(/float/i)){h=&quot;float&quot;}h=h.replace(/([A-Z])/g,&quot;-$1&quot;).toLowerCase();var a=Q.getComputedStyle(e,null);if(a){b=a.getPropertyValue(h)}if(h==&quot;opacity&quot;&amp;&amp;b==&quot;&quot;){b=&quot;1&quot;}}else{if(e.currentStyle){var d=h.replace(/\-(\w)/g,function(l,k){return k.toUpperCase()});b=e.currentStyle[h]||e.currentStyle[d];if(!/^\d+(px)?$/i.test(b)&amp;&amp;/^\d/.test(b)){var f=j.left,c=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left;j.left=b||0;b=j.pixelLeft+&quot;px&quot;;j.left=f;e.runtimeStyle.left=c}}}}return b},clean:function(g,b,d){b=b||document;if(typeof b.createElement===&quot;undefined&quot;){b=b.ownerDocument||b[0]&amp;&amp;b[0].ownerDocument||document}if(!d&amp;&amp;g.length===1&amp;&amp;typeof g[0]===&quot;string&quot;){var e=/^&lt;(\w+)\s*\/?&gt;$/.exec(g[0]);if(e){return[b.createElement(e[1])]}}var f=[],h=[],a=b.createElement(&quot;div&quot;);T.each(g,function(m,j){if(typeof j===&quot;number&quot;){j+=&quot;&quot;}if(!j){return}if(typeof j===&quot;string&quot;){j=j.replace(/(&lt;(\w+)[^&gt;]*?)\/&gt;/g,function(r,q,u){return u.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?r:q+&quot;&gt;&lt;/&quot;+u+&quot;&gt;&quot;});var n=j.replace(/^\s+/,&quot;&quot;).substring(0,10).toLowerCase();var l=!n.indexOf(&quot;&lt;opt&quot;)&amp;&amp;[1,&quot;&lt;select multiple='multiple'&gt;&quot;,&quot;&lt;/select&gt;&quot;]||!n.indexOf(&quot;&lt;leg&quot;)&amp;&amp;[1,&quot;&lt;fieldset&gt;&quot;,&quot;&lt;/fieldset&gt;&quot;]||n.match(/^&lt;(thead|tbody|tfoot|colg|cap)/)&amp;&amp;[1,&quot;&lt;table&gt;&quot;,&quot;&lt;/table&gt;&quot;]||!n.indexOf(&quot;&lt;tr&quot;)&amp;&amp;[2,&quot;&lt;table&gt;&lt;tbody&gt;&quot;,&quot;&lt;/tbody&gt;&lt;/table&gt;&quot;]||(!n.indexOf(&quot;&lt;td&quot;)||!n.indexOf(&quot;&lt;th&quot;))&amp;&amp;[3,&quot;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&quot;,&quot;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&quot;]||!n.indexOf(&quot;&lt;col&quot;)&amp;&amp;[2,&quot;&lt;table&gt;&lt;tbody&gt;&lt;/tbody&gt;&lt;colgroup&gt;&quot;,&quot;&lt;/colgroup&gt;&lt;/table&gt;&quot;]||!T.support.htmlSerialize&amp;&amp;[1,&quot;div&lt;div&gt;&quot;,&quot;&lt;/div&gt;&quot;]||[0,&quot;&quot;,&quot;&quot;];a.innerHTML=l[1]+j+l[2];while(l[0]--){a=a.lastChild}if(!T.support.tbody){var k=/&lt;tbody/i.test(j),o=!n.indexOf(&quot;&lt;table&quot;)&amp;&amp;!k?a.firstChild&amp;&amp;a.firstChild.childNodes:l[1]==&quot;&lt;table&gt;&quot;&amp;&amp;!k?a.childNodes:[];for(var p=o.length-1;p&gt;=0;--p){if(T.nodeName(o[p],&quot;tbody&quot;)&amp;&amp;!o[p].childNodes.length){o[p].parentNode.removeChild(o[p])}}}if(!T.support.leadingWhitespace&amp;&amp;/^\s/.test(j)){a.insertBefore(b.createTextNode(j.match(/^\s*/)[0]),a.firstChild)}j=T.makeArray(a.childNodes)}if(j.nodeType){f.push(j)}else{f=T.merge(f,j)}});if(d){for(var c=0;f[c];c++){if(T.nodeName(f[c],&quot;script&quot;)&amp;&amp;(!f[c].type||f[c].type.toLowerCase()===&quot;text/javascript&quot;)){h.push(f[c].parentNode?f[c].parentNode.removeChild(f[c]):f[c])}else{if(f[c].nodeType===1){f.splice.apply(f,[c+1,0].concat(T.makeArray(f[c].getElementsByTagName(&quot;script&quot;))))}d.appendChild(f[c])}}return h}return f},attr:function(c,f,b){if(!c||c.nodeType==3||c.nodeType==8){return ab}var e=!T.isXMLDoc(c),a=b!==ab;f=e&amp;&amp;T.props[f]||f;if(c.tagName){var g=/href|src|style/.test(f);if(f==&quot;selected&quot;&amp;&amp;c.parentNode){c.parentNode.selectedIndex}if(f in c&amp;&amp;e&amp;&amp;!g){if(a){if(f==&quot;type&quot;&amp;&amp;T.nodeName(c,&quot;input&quot;)&amp;&amp;c.parentNode){throw&quot;type property can't be changed&quot;}c[f]=b}if(T.nodeName(c,&quot;form&quot;)&amp;&amp;c.getAttributeNode(f)){return c.getAttributeNode(f).nodeValue}if(f==&quot;tabIndex&quot;){var d=c.getAttributeNode(&quot;tabIndex&quot;);return d&amp;&amp;d.specified?d.value:c.nodeName.match(/(button|input|object|select|textarea)/i)?0:c.nodeName.match(/^(a|area)$/i)&amp;&amp;c.href?0:ab}return c[f]}if(!T.support.style&amp;&amp;e&amp;&amp;f==&quot;style&quot;){return T.attr(c.style,&quot;cssText&quot;,b)}if(a){c.setAttribute(f,&quot;&quot;+b)}var h=!T.support.hrefNormalized&amp;&amp;e&amp;&amp;g?c.getAttribute(f,2):c.getAttribute(f);return h===null?ab:h}if(!T.support.opacity&amp;&amp;f==&quot;opacity&quot;){if(a){c.zoom=1;c.filter=(c.filter||&quot;&quot;).replace(/alpha\([^)]*\)/,&quot;&quot;)+(parseInt(b)+&quot;&quot;==&quot;NaN&quot;?&quot;&quot;:&quot;alpha(opacity=&quot;+b*100+&quot;)&quot;)}return c.filter&amp;&amp;c.filter.indexOf(&quot;opacity=&quot;)&gt;=0?(parseFloat(c.filter.match(/opacity=([^)]*)/)[1])/100)+&quot;&quot;:&quot;&quot;}f=f.replace(/-([a-z])/ig,function(k,j){return j.toUpperCase()});if(a){c[f]=b}return c[f]},trim:function(a){return(a||&quot;&quot;).replace(/^\s+|\s+$/g,&quot;&quot;)},makeArray:function(a){var c=[];if(a!=null){var b=a.length;if(b==null||typeof a===&quot;string&quot;||T.isFunction(a)||a.setInterval){c[0]=a}else{while(b){c[--b]=a[b]}}}return c},inArray:function(b,a){for(var d=0,c=a.length;d&lt;c;d++){if(a[d]===b){return d}}return -1},merge:function(b,e){var d=0,c,a=b.length;if(!T.support.getAll){while((c=e[d++])!=null){if(c.nodeType!=8){b[a++]=c}}}else{while((c=e[d++])!=null){b[a++]=c}}return b},unique:function(a){var f=[],g={};try{for(var e=0,d=a.length;e&lt;d;e++){var b=T.data(a[e]);if(!g[b]){g[b]=true;f.push(a[e])}}}catch(c){f=a}return f},grep:function(e,a,f){var d=[];for(var c=0,b=e.length;c&lt;b;c++){if(!f!=!a(e[c],c)){d.push(e[c])}}return d},map:function(f,a){var e=[];for(var d=0,c=f.length;d&lt;c;d++){var b=a(f[d],d);if(b!=null){e[e.length]=b}}return e.concat.apply([],e)}});var O=navigator.userAgent.toLowerCase();T.browser={version:(O.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,&quot;0&quot;])[1],safari:/webkit/.test(O),opera:/opera/.test(O),msie:/msie/.test(O)&amp;&amp;!/opera/.test(O),mozilla:/mozilla/.test(O)&amp;&amp;!/(compatible|webkit)/.test(O)};T.each({parent:function(a){return a.parentNode},parents:function(a){return T.dir(a,&quot;parentNode&quot;)},next:function(a){return T.nth(a,2,&quot;nextSibling&quot;)},prev:function(a){return T.nth(a,2,&quot;previousSibling&quot;)},nextAll:function(a){return T.dir(a,&quot;nextSibling&quot;)},prevAll:function(a){return T.dir(a,&quot;previousSibling&quot;)},siblings:function(a){return T.sibling(a.parentNode.firstChild,a)},children:function(a){return T.sibling(a.firstChild)},contents:function(a){return T.nodeName(a,&quot;iframe&quot;)?a.contentDocument||a.contentWindow.document:T.makeArray(a.childNodes)}},function(b,a){T.fn[b]=function(d){var c=T.map(this,a);if(d&amp;&amp;typeof d==&quot;string&quot;){c=T.multiFilter(d,c)}return this.pushStack(T.unique(c),b,d)}});T.each({appendTo:&quot;append&quot;,prependTo:&quot;prepend&quot;,insertBefore:&quot;before&quot;,insertAfter:&quot;after&quot;,replaceAll:&quot;replaceWith&quot;},function(b,a){T.fn[b]=function(h){var e=[],c=T(h);for(var d=0,g=c.length;d&lt;g;d++){var f=(d&gt;0?this.clone(true):this).get();T.fn[a].apply(T(c[d]),f);e=e.concat(f)}return this.pushStack(e,b,h)}});T.each({removeAttr:function(a){T.attr(this,a,&quot;&quot;);if(this.nodeType==1){this.removeAttribute(a)}},addClass:function(a){T.className.add(this,a)},removeClass:function(a){T.className.remove(this,a)},toggleClass:function(a,b){if(typeof b!==&quot;boolean&quot;){b=!T.className.has(this,a)}T.className[b?&quot;add&quot;:&quot;remove&quot;](this,a)},remove:function(a){if(!a||T.filter(a,[this]).length){T(&quot;*&quot;,this).add([this]).each(function(){T.event.remove(this);T.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){T(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(b,a){T.fn[b]=function(){return this.each(a,arguments)}});function Y(b,a){return b[0]&amp;&amp;parseInt(T.curCSS(b[0],a,true),10)||0}var aa=&quot;jQuery&quot;+ad(),I=0,R={};T.extend({cache:{},data:function(c,d,b){c=c==W?R:c;var a=c[aa];if(!a){a=c[aa]=++I}if(d&amp;&amp;!T.cache[a]){T.cache[a]={}}if(b!==ab){T.cache[a][d]=b}return d?T.cache[a][d]:a},removeData:function(c,d){c=c==W?R:c;var a=c[aa];if(d){if(T.cache[a]){delete T.cache[a][d];d=&quot;&quot;;for(d in T.cache[a]){break}if(!d){T.removeData(c)}}}else{try{delete c[aa]}catch(b){if(c.removeAttribute){c.removeAttribute(aa)}}delete T.cache[a]}},queue:function(c,d,a){if(c){d=(d||&quot;fx&quot;)+&quot;queue&quot;;var b=T.data(c,d);if(!b||T.isArray(a)){b=T.data(c,d,T.makeArray(a))}else{if(a){b.push(a)}}}return b},dequeue:function(a,b){var d=T.queue(a,b),c=d.shift();if(!b||b===&quot;fx&quot;){c=d[0]}if(c!==ab){c.call(a)}}});T.fn.extend({data:function(d,b){var a=d.split(&quot;.&quot;);a[1]=a[1]?&quot;.&quot;+a[1]:&quot;&quot;;if(b===ab){var c=this.triggerHandler(&quot;getData&quot;+a[1]+&quot;!&quot;,[a[0]]);if(c===ab&amp;&amp;this.length){c=T.data(this[0],d)}return c===ab&amp;&amp;a[1]?this.data(a[0]):c}else{return this.trigger(&quot;setData&quot;+a[1]+&quot;!&quot;,[a[0],b]).each(function(){T.data(this,d,b)})}},removeData:function(a){return this.each(function(){T.removeData(this,a)})},queue:function(b,a){if(typeof b!==&quot;string&quot;){a=b;b=&quot;fx&quot;}if(a===ab){return T.queue(this[0],b)}return this.each(function(){var c=T.queue(this,b,a);if(b==&quot;fx&quot;&amp;&amp;c.length==1){c[0].call(this)}})},dequeue:function(a){return this.each(function(){T.dequeue(this,a)})}});(function(){var b=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['&quot;][^'&quot;]*['&quot;]|[^[\]'&quot;]+)+\]|\\.|[^ &gt;+~,(\[\\]+)+|[&gt;+~])(\s*,\s*)?/g,h=0,m=Object.prototype.toString;var o=function(u,y,al,ak){al=al||[];y=y||document;if(y.nodeType!==1&amp;&amp;y.nodeType!==9){return[]}if(!u||typeof u!==&quot;string&quot;){return al}var r=[],w,D,A,z,aj,x,v=true;b.lastIndex=0;while((w=b.exec(u))!==null){r.push(w[1]);if(w[2]){x=RegExp.rightContext;break}}if(r.length&gt;1&amp;&amp;g.exec(u)){if(r.length===2&amp;&amp;l.relative[r[0]]){D=k(r[0]+r[1],y)}else{D=l.relative[r[0]]?[y]:o(r.shift(),y);while(r.length){u=r.shift();if(l.relative[u]){u+=r.shift()}D=k(u,D)}}}else{var ai=ak?{expr:r.pop(),set:p(ak)}:o.find(r.pop(),r.length===1&amp;&amp;y.parentNode?y.parentNode:y,c(y));D=o.filter(ai.expr,ai.set);if(r.length&gt;0){A=p(D)}else{v=false}while(r.length){var B=r.pop(),C=B;if(!l.relative[B]){B=&quot;&quot;}else{C=r.pop()}if(C==null){C=y}l.relative[B](A,C,c(y))}}if(!A){A=D}if(!A){throw&quot;Syntax error, unrecognized expression: &quot;+(B||u)}if(m.call(A)===&quot;[object Array]&quot;){if(!v){al.push.apply(al,A)}else{if(y.nodeType===1){for(var q=0;A[q]!=null;q++){if(A[q]&amp;&amp;(A[q]===true||A[q].nodeType===1&amp;&amp;j(y,A[q]))){al.push(D[q])}}}else{for(var q=0;A[q]!=null;q++){if(A[q]&amp;&amp;A[q].nodeType===1){al.push(D[q])}}}}}else{p(A,al)}if(x){o(x,y,al,ak);if(n){hasDuplicate=false;al.sort(n);if(hasDuplicate){for(var q=1;q&lt;al.length;q++){if(al[q]===al[q-1]){al.splice(q--,1)}}}}}return al};o.matches=function(r,q){return o(r,null,null,q)};o.find=function(q,z,A){var r,v;if(!q){return[]}for(var w=0,x=l.order.length;w&lt;x;w++){var u=l.order[w],v;if((v=l.match[u].exec(q))){var y=RegExp.leftContext;if(y.substr(y.length-1)!==&quot;\\&quot;){v[1]=(v[1]||&quot;&quot;).replace(/\\/g,&quot;&quot;);r=l.find[u](v,z,A);if(r!=null){q=q.replace(l.match[u],&quot;&quot;);break}}}}if(!r){r=z.getElementsByTagName(&quot;*&quot;)}return{set:r,expr:q}};o.filter=function(aj,ak,C,w){var x=aj,A=[],q=ak,u,z,r=ak&amp;&amp;ak[0]&amp;&amp;c(ak[0]);while(aj&amp;&amp;ak.length){for(var al in l.filter){if((u=l.match[al].exec(aj))!=null){var y=l.filter[al],B,D;z=false;if(q==A){A=[]}if(l.preFilter[al]){u=l.preFilter[al](u,q,C,A,w,r);if(!u){z=B=true}else{if(u===true){continue}}}if(u){for(var v=0;(D=q[v])!=null;v++){if(D){B=y(D,u,v,q);var ai=w^!!B;if(C&amp;&amp;B!=null){if(ai){z=true}else{q[v]=false}}else{if(ai){A.push(D);z=true}}}}}if(B!==ab){if(!C){q=A}aj=aj.replace(l.match[al],&quot;&quot;);if(!z){return[]}break}}}if(aj==x){if(z==null){throw&quot;Syntax error, unrecognized expression: &quot;+aj}else{break}}x=aj}return q};var l=o.selectors={order:[&quot;ID&quot;,&quot;NAME&quot;,&quot;TAG&quot;],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['&quot;]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['&quot;]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['&quot;]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['&quot;]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{&quot;class&quot;:&quot;className&quot;,&quot;for&quot;:&quot;htmlFor&quot;},attrHandle:{href:function(q){return q.getAttribute(&quot;href&quot;)}},relative:{&quot;+&quot;:function(q,z,r){var v=typeof z===&quot;string&quot;,A=v&amp;&amp;!/\W/.test(z),u=v&amp;&amp;!A;if(A&amp;&amp;!r){z=z.toUpperCase()}for(var w=0,x=q.length,y;w&lt;x;w++){if((y=q[w])){while((y=y.previousSibling)&amp;&amp;y.nodeType!==1){}q[w]=u||y&amp;&amp;y.nodeName===z?y||false:y===z}}if(u){o.filter(z,q,true)}},&quot;&gt;&quot;:function(x,u,w){var z=typeof u===&quot;string&quot;;if(z&amp;&amp;!/\W/.test(u)){u=w?u:u.toUpperCase();for(var r=0,v=x.length;r&lt;v;r++){var y=x[r];if(y){var q=y.parentNode;x[r]=q.nodeName===u?q:false}}}else{for(var r=0,v=x.length;r&lt;v;r++){var y=x[r];if(y){x[r]=z?y.parentNode:y.parentNode===u}}if(z){o.filter(u,x,true)}}},&quot;&quot;:function(q,u,w){var r=h++,v=a;if(!u.match(/\W/)){var x=u=w?u:u.toUpperCase();v=d}v(&quot;parentNode&quot;,u,r,q,x,w)},&quot;~&quot;:function(q,u,w){var r=h++,v=a;if(typeof u===&quot;string&quot;&amp;&amp;!u.match(/\W/)){var x=u=w?u:u.toUpperCase();v=d}v(&quot;previousSibling&quot;,u,r,q,x,w)}},find:{ID:function(u,r,q){if(typeof r.getElementById!==&quot;undefined&quot;&amp;&amp;!q){var v=r.getElementById(u[1]);return v?[v]:[]}},NAME:function(r,x,w){if(typeof x.getElementsByName!==&quot;undefined&quot;){var u=[],y=x.getElementsByName(r[1]);for(var q=0,v=y.length;q&lt;v;q++){if(y[q].getAttribute(&quot;name&quot;)===r[1]){u.push(y[q])}}return u.length===0?null:u}},TAG:function(r,q){return q.getElementsByTagName(r[1])}},preFilter:{CLASS:function(q,u,r,v,x,w){q=&quot; &quot;+q[1].replace(/\\/g,&quot;&quot;)+&quot; &quot;;if(w){return q}for(var z=0,y;(y=u[z])!=null;z++){if(y){if(x^(y.className&amp;&amp;(&quot; &quot;+y.className+&quot; &quot;).indexOf(q)&gt;=0)){if(!r){v.push(y)}}else{if(r){u[z]=false}}}}return false},ID:function(q){return q[1].replace(/\\/g,&quot;&quot;)},TAG:function(r,u){for(var q=0;u[q]===false;q++){}return u[q]&amp;&amp;c(u[q])?r[1]:r[1].toUpperCase()},CHILD:function(r){if(r[1]==&quot;nth&quot;){var q=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(r[2]==&quot;even&quot;&amp;&amp;&quot;2n&quot;||r[2]==&quot;odd&quot;&amp;&amp;&quot;2n+1&quot;||!/\D/.test(r[2])&amp;&amp;&quot;0n+&quot;+r[2]||r[2]);r[2]=(q[1]+(q[2]||1))-0;r[3]=q[3]-0}r[0]=h++;return r},ATTR:function(y,u,r,v,x,w){var q=y[1].replace(/\\/g,&quot;&quot;);if(!w&amp;&amp;l.attrMap[q]){y[1]=l.attrMap[q]}if(y[2]===&quot;~=&quot;){y[4]=&quot; &quot;+y[4]+&quot; &quot;}return y},PSEUDO:function(x,u,r,v,w){if(x[1]===&quot;not&quot;){if(x[3].match(b).length&gt;1||/^\w/.test(x[3])){x[3]=o(x[3],null,null,u)}else{var q=o.filter(x[3],u,r,true^w);if(!r){v.push.apply(v,q)}return false}}else{if(l.match.POS.test(x[0])||l.match.CHILD.test(x[0])){return true}}return x},POS:function(q){q.unshift(true);return q}},filters:{enabled:function(q){return q.disabled===false&amp;&amp;q.type!==&quot;hidden&quot;},disabled:function(q){return q.disabled===true},checked:function(q){return q.checked===true},selected:function(q){q.parentNode.selectedIndex;return q.selected===true},parent:function(q){return !!q.firstChild},empty:function(q){return !q.firstChild},has:function(q,r,u){return !!o(u[3],q).length},header:function(q){return/h\d/i.test(q.nodeName)},text:function(q){return&quot;text&quot;===q.type},radio:function(q){return&quot;radio&quot;===q.type},checkbox:function(q){return&quot;checkbox&quot;===q.type},file:function(q){return&quot;file&quot;===q.type},password:function(q){return&quot;password&quot;===q.type},submit:function(q){return&quot;submit&quot;===q.type},image:function(q){return&quot;image&quot;===q.type},reset:function(q){return&quot;reset&quot;===q.type},button:function(q){return&quot;button&quot;===q.type||q.nodeName.toUpperCase()===&quot;BUTTON&quot;},input:function(q){return/input|select|textarea|button/i.test(q.nodeName)}},setFilters:{first:function(q,r){return r===0},last:function(r,u,v,q){return u===q.length-1},even:function(q,r){return r%2===0},odd:function(q,r){return r%2===1},lt:function(q,r,u){return r&lt;u[3]-0},gt:function(q,r,u){return r&gt;u[3]-0},nth:function(q,r,u){return u[3]-0==r},eq:function(q,r,u){return u[3]-0==r}},filter:{PSEUDO:function(x,r,q,w){var u=r[1],z=l.filters[u];if(z){return z(x,q,r,w)}else{if(u===&quot;contains&quot;){return(x.textContent||x.innerText||&quot;&quot;).indexOf(r[3])&gt;=0}else{if(u===&quot;not&quot;){var y=r[3];for(var q=0,v=y.length;q&lt;v;q++){if(y[q]===x){return false}}return true}}}},CHILD:function(z,w){var r=w[1],y=z;switch(r){case&quot;only&quot;:case&quot;first&quot;:while(y=y.previousSibling){if(y.nodeType===1){return false}}if(r==&quot;first&quot;){return true}y=z;case&quot;last&quot;:while(y=y.nextSibling){if(y.nodeType===1){return false}}return true;case&quot;nth&quot;:var x=w[2],A=w[3];if(x==1&amp;&amp;A==0){return true}var u=w[0],B=z.parentNode;if(B&amp;&amp;(B.sizcache!==u||!z.nodeIndex)){var v=0;for(y=B.firstChild;y;y=y.nextSibling){if(y.nodeType===1){y.nodeIndex=++v}}B.sizcache=u}var q=z.nodeIndex-A;if(x==0){return q==0}else{return(q%x==0&amp;&amp;q/x&gt;=0)}}},ID:function(q,r){return q.nodeType===1&amp;&amp;q.getAttribute(&quot;id&quot;)===r},TAG:function(q,r){return(r===&quot;*&quot;&amp;&amp;q.nodeType===1)||q.nodeName===r},CLASS:function(q,r){return(&quot; &quot;+(q.className||q.getAttribute(&quot;class&quot;))+&quot; &quot;).indexOf(r)&gt;-1},ATTR:function(x,q){var r=q[1],v=l.attrHandle[r]?l.attrHandle[r](x):x[r]!=null?x[r]:x.getAttribute(r),w=v+&quot;&quot;,y=q[2],u=q[4];return v==null?y===&quot;!=&quot;:y===&quot;=&quot;?w===u:y===&quot;*=&quot;?w.indexOf(u)&gt;=0:y===&quot;~=&quot;?(&quot; &quot;+w+&quot; &quot;).indexOf(u)&gt;=0:!u?w&amp;&amp;v!==false:y===&quot;!=&quot;?w!=u:y===&quot;^=&quot;?w.indexOf(u)===0:y===&quot;$=&quot;?w.substr(w.length-u.length)===u:y===&quot;|=&quot;?w===u||w.substr(0,u.length+1)===u+&quot;-&quot;:false},POS:function(x,u,r,w){var v=u[2],q=l.setFilters[v];if(q){return q(x,r,u,w)}}}};var g=l.match.POS;for(var e in l.match){l.match[e]=RegExp(l.match[e].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var p=function(q,r){q=Array.prototype.slice.call(q);if(r){r.push.apply(r,q);return r}return q};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(f){p=function(w,q){var u=q||[];if(m.call(w)===&quot;[object Array]&quot;){Array.prototype.push.apply(u,w)}else{if(typeof w.length===&quot;number&quot;){for(var r=0,v=w.length;r&lt;v;r++){u.push(w[r])}}else{for(var r=0;w[r];r++){u.push(w[r])}}}return u}}var n;if(document.documentElement.compareDocumentPosition){n=function(r,u){var q=r.compareDocumentPosition(u)&amp;4?-1:r===u?0:1;if(q===0){hasDuplicate=true}return q}}else{if(&quot;sourceIndex&quot; in document.documentElement){n=function(r,u){var q=r.sourceIndex-u.sourceIndex;if(q===0){hasDuplicate=true}return q}}else{if(document.createRange){n=function(q,u){var r=q.ownerDocument.createRange(),v=u.ownerDocument.createRange();r.selectNode(q);r.collapse(true);v.selectNode(u);v.collapse(true);var w=r.compareBoundaryPoints(Range.START_TO_END,v);if(w===0){hasDuplicate=true}return w}}}}(function(){var r=document.createElement(&quot;form&quot;),q=&quot;script&quot;+(new Date).getTime();r.innerHTML=&quot;&lt;input name='&quot;+q+&quot;'/&gt;&quot;;var u=document.documentElement;u.insertBefore(r,u.firstChild);if(!!document.getElementById(q)){l.find.ID=function(y,x,w){if(typeof x.getElementById!==&quot;undefined&quot;&amp;&amp;!w){var v=x.getElementById(y[1]);return v?v.id===y[1]||typeof v.getAttributeNode!==&quot;undefined&quot;&amp;&amp;v.getAttributeNode(&quot;id&quot;).nodeValue===y[1]?[v]:ab:[]}};l.filter.ID=function(w,v){var x=typeof w.getAttributeNode!==&quot;undefined&quot;&amp;&amp;w.getAttributeNode(&quot;id&quot;);return w.nodeType===1&amp;&amp;x&amp;&amp;x.nodeValue===v}}u.removeChild(r)})();(function(){var q=document.createElement(&quot;div&quot;);q.appendChild(document.createComment(&quot;&quot;));if(q.getElementsByTagName(&quot;*&quot;).length&gt;0){l.find.TAG=function(v,w){var x=w.getElementsByTagName(v[1]);if(v[1]===&quot;*&quot;){var r=[];for(var u=0;x[u];u++){if(x[u].nodeType===1){r.push(x[u])}}x=r}return x}}q.innerHTML=&quot;&lt;a href='#'&gt;&lt;/a&gt;&quot;;if(q.firstChild&amp;&amp;typeof q.firstChild.getAttribute!==&quot;undefined&quot;&amp;&amp;q.firstChild.getAttribute(&quot;href&quot;)!==&quot;#&quot;){l.attrHandle.href=function(r){return r.getAttribute(&quot;href&quot;,2)}}})();if(document.querySelectorAll){(function(){var r=o,q=document.createElement(&quot;div&quot;);q.innerHTML=&quot;&lt;p class='TEST'&gt;&lt;/p&gt;&quot;;if(q.querySelectorAll&amp;&amp;q.querySelectorAll(&quot;.TEST&quot;).length===0){return}o=function(x,y,v,u){y=y||document;if(!u&amp;&amp;y.nodeType===9&amp;&amp;!c(y)){try{return p(y.querySelectorAll(x),v)}catch(w){}}return r(x,y,v,u)};o.find=r.find;o.filter=r.filter;o.selectors=r.selectors;o.matches=r.matches})()}if(document.getElementsByClassName&amp;&amp;document.documentElement.getElementsByClassName){(function(){var q=document.createElement(&quot;div&quot;);q.innerHTML=&quot;&lt;div class='test e'&gt;&lt;/div&gt;&lt;div class='test'&gt;&lt;/div&gt;&quot;;if(q.getElementsByClassName(&quot;e&quot;).length===0){return}q.lastChild.className=&quot;e&quot;;if(q.getElementsByClassName(&quot;e&quot;).length===1){return}l.order.splice(1,0,&quot;CLASS&quot;);l.find.CLASS=function(v,u,r){if(typeof u.getElementsByClassName!==&quot;undefined&quot;&amp;&amp;!r){return u.getElementsByClassName(v[1])}}})()}function d(y,r,u,A,q,B){var C=y==&quot;previousSibling&quot;&amp;&amp;!B;for(var w=0,x=A.length;w&lt;x;w++){var z=A[w];if(z){if(C&amp;&amp;z.nodeType===1){z.sizcache=u;z.sizset=w}z=z[y];var v=false;while(z){if(z.sizcache===u){v=A[z.sizset];break}if(z.nodeType===1&amp;&amp;!B){z.sizcache=u;z.sizset=w}if(z.nodeName===r){v=z;break}z=z[y]}A[w]=v}}}function a(y,r,u,A,q,B){var C=y==&quot;previousSibling&quot;&amp;&amp;!B;for(var w=0,x=A.length;w&lt;x;w++){var z=A[w];if(z){if(C&amp;&amp;z.nodeType===1){z.sizcache=u;z.sizset=w}z=z[y];var v=false;while(z){if(z.sizcache===u){v=A[z.sizset];break}if(z.nodeType===1){if(!B){z.sizcache=u;z.sizset=w}if(typeof r!==&quot;string&quot;){if(z===r){v=true;break}}else{if(o.filter(r,[z]).length&gt;0){v=z;break}}}z=z[y]}A[w]=v}}}var j=document.compareDocumentPosition?function(q,r){return q.compareDocumentPosition(r)&amp;16}:function(q,r){return q!==r&amp;&amp;(q.contains?q.contains(r):true)};var c=function(q){return q.nodeType===9&amp;&amp;q.documentElement.nodeName!==&quot;HTML&quot;||!!q.ownerDocument&amp;&amp;c(q.ownerDocument)};var k=function(v,x){var q=[],z=&quot;&quot;,y,r=x.nodeType?[x]:x;while((y=l.match.PSEUDO.exec(v))){z+=y[0];v=v.replace(l.match.PSEUDO,&quot;&quot;)}v=l.relative[v]?v+&quot;*&quot;:v;for(var w=0,u=r.length;w&lt;u;w++){o(v,r[w],q)}return o.filter(z,q)};T.find=o;T.filter=o.filter;T.expr=o.selectors;T.expr[&quot;:&quot;]=T.expr.filters;o.selectors.filters.hidden=function(q){return q.offsetWidth===0||q.offsetHeight===0};o.selectors.filters.visible=function(q){return q.offsetWidth&gt;0||q.offsetHeight&gt;0};o.selectors.filters.animated=function(q){return T.grep(T.timers,function(r){return q===r.elem}).length};T.multiFilter=function(q,u,r){if(r){q=&quot;:not(&quot;+q+&quot;)&quot;}return o.matches(q,u)};T.dir=function(r,u){var v=[],q=r[u];while(q&amp;&amp;q!=document){if(q.nodeType==1){v.push(q)}q=q[u]}return v};T.nth=function(w,v,r,q){v=v||1;var u=0;for(;w;w=w[r]){if(w.nodeType==1&amp;&amp;++u==v){break}}return w};T.sibling=function(q,r){var u=[];for(;q;q=q.nextSibling){if(q.nodeType==1&amp;&amp;q!=r){u.push(q)}}return u};return;W.Sizzle=o})();T.event={add:function(c,f,d,a){if(c.nodeType==3||c.nodeType==8){return}if(c.setInterval&amp;&amp;c!=W){c=W}if(!d.guid){d.guid=this.guid++}if(a!==ab){var e=d;d=this.proxy(e);d.data=a}var g=T.data(c,&quot;events&quot;)||T.data(c,&quot;events&quot;,{}),b=T.data(c,&quot;handle&quot;)||T.data(c,&quot;handle&quot;,function(){return typeof T!==&quot;undefined&quot;&amp;&amp;!T.event.triggered?T.event.handle.apply(arguments.callee.elem,arguments):ab});b.elem=c;T.each(f.split(/\s+/),function(l,k){var j=k.split(&quot;.&quot;);k=j.shift();d.type=j.slice().sort().join(&quot;.&quot;);var h=g[k];if(T.event.specialAll[k]){T.event.specialAll[k].setup.call(c,a,j)}if(!h){h=g[k]={};if(!T.event.special[k]||T.event.special[k].setup.call(c,a,j)===false){if(c.addEventListener){c.addEventListener(k,b,false)}else{if(c.attachEvent){c.attachEvent(&quot;on&quot;+k,b)}}}}h[d.guid]=d;T.event.global[k]=true});c=null},guid:1,global:{},remove:function(b,e,c){if(b.nodeType==3||b.nodeType==8){return}var f=T.data(b,&quot;events&quot;),g,h;if(f){if(e===ab||(typeof e===&quot;string&quot;&amp;&amp;e.charAt(0)==&quot;.&quot;)){for(var d in f){this.remove(b,d+(e||&quot;&quot;))}}else{if(e.type){c=e.handler;e=e.type}T.each(e.split(/\s+/),function(n,l){var j=l.split(&quot;.&quot;);l=j.shift();var m=RegExp(&quot;(^|\\.)&quot;+j.slice().sort().join(&quot;.*\\.&quot;)+&quot;(\\.|$)&quot;);if(f[l]){if(c){delete f[l][c.guid]}else{for(var k in f[l]){if(m.test(f[l][k].type)){delete f[l][k]}}}if(T.event.specialAll[l]){T.event.specialAll[l].teardown.call(b,j)}for(g in f[l]){break}if(!g){if(!T.event.special[l]||T.event.special[l].teardown.call(b,j)===false){if(b.removeEventListener){b.removeEventListener(l,T.data(b,&quot;handle&quot;),false)}else{if(b.detachEvent){b.detachEvent(&quot;on&quot;+l,T.data(b,&quot;handle&quot;))}}}g=null;delete f[l]}}})}for(g in f){break}if(!g){var a=T.data(b,&quot;handle&quot;);if(a){a.elem=null}T.removeData(b,&quot;events&quot;);T.removeData(b,&quot;handle&quot;)}}},trigger:function(d,b,e,h){var f=d.type||d;if(!h){d=typeof d===&quot;object&quot;?d[aa]?d:T.extend(T.Event(f),d):T.Event(f);if(f.indexOf(&quot;!&quot;)&gt;=0){d.type=f=f.slice(0,-1);d.exclusive=true}if(!e){d.stopPropagation();if(this.global[f]){T.each(T.cache,function(){if(this.events&amp;&amp;this.events[f]){T.event.trigger(d,b,this.handle.elem)}})}}if(!e||e.nodeType==3||e.nodeType==8){return ab}d.result=ab;d.target=e;b=T.makeArray(b);b.unshift(d)}d.currentTarget=e;var c=T.data(e,&quot;handle&quot;);if(c){c.apply(e,b)}if((!e[f]||(T.nodeName(e,&quot;a&quot;)&amp;&amp;f==&quot;click&quot;))&amp;&amp;e[&quot;on&quot;+f]&amp;&amp;e[&quot;on&quot;+f].apply(e,b)===false){d.result=false}if(!h&amp;&amp;e[f]&amp;&amp;!d.isDefaultPrevented()&amp;&amp;!(T.nodeName(e,&quot;a&quot;)&amp;&amp;f==&quot;click&quot;)){this.triggered=true;try{e[f]()}catch(a){}}this.triggered=false;if(!d.isPropagationStopped()){var g=e.parentNode||e.ownerDocument;if(g){T.event.trigger(d,b,g,true)}}},handle:function(b){var c,h;b=arguments[0]=T.event.fix(b||W.event);b.currentTarget=this;var a=b.type.split(&quot;.&quot;);b.type=a.shift();c=!a.length&amp;&amp;!b.exclusive;var d=RegExp(&quot;(^|\\.)&quot;+a.slice().sort().join(&quot;.*\\.&quot;)+&quot;(\\.|$)&quot;);h=(T.data(this,&quot;events&quot;)||{})[b.type];for(var f in h){var e=h[f];if(c||d.test(e.type)){b.handler=e;b.data=e.data;var g=e.apply(this,arguments);if(g!==ab){b.result=g;if(g===false){b.preventDefault();b.stopPropagation()}}if(b.isImmediatePropagationStopped()){break}}}},props:&quot;altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which&quot;.split(&quot; &quot;),fix:function(c){if(c[aa]){return c}var e=c;c=T.Event(e);for(var d=this.props.length,a;d;){a=this.props[--d];c[a]=e[a]}if(!c.target){c.target=c.srcElement||document}if(c.target.nodeType==3){c.target=c.target.parentNode}if(!c.relatedTarget&amp;&amp;c.fromElement){c.relatedTarget=c.fromElement==c.target?c.toElement:c.fromElement}if(c.pageX==null&amp;&amp;c.clientX!=null){var b=document.documentElement,f=document.body;c.pageX=c.clientX+(b&amp;&amp;b.scrollLeft||f&amp;&amp;f.scrollLeft||0)-(b.clientLeft||0);c.pageY=c.clientY+(b&amp;&amp;b.scrollTop||f&amp;&amp;f.scrollTop||0)-(b.clientTop||0)}if(!c.which&amp;&amp;((c.charCode||c.charCode===0)?c.charCode:c.keyCode)){c.which=c.charCode||c.keyCode}if(!c.metaKey&amp;&amp;c.ctrlKey){c.metaKey=c.ctrlKey}if(!c.which&amp;&amp;c.button){c.which=(c.button&amp;1?1:(c.button&amp;2?3:(c.button&amp;4?2:0)))}return c},proxy:function(a,b){b=b||function(){return a.apply(this,arguments)};b.guid=a.guid=a.guid||b.guid||this.guid++;return b},special:{ready:{setup:P,teardown:function(){}}},specialAll:{live:{setup:function(b,a){T.event.add(this,a[0],af)},teardown:function(a){if(a.length){var c=0,b=RegExp(&quot;(^|\\.)&quot;+a[0]+&quot;(\\.|$)&quot;);T.each((T.data(this,&quot;events&quot;).live||{}),function(){if(b.test(this.type)){c++}});if(c&lt;1){T.event.remove(this,a[0],af)}}}}}};T.Event=function(a){if(!this.preventDefault){return new T.Event(a)}if(a&amp;&amp;a.type){this.originalEvent=a;this.type=a.type}else{this.type=a}this.timeStamp=ad();this[aa]=true};function X(){return false}function J(){return true}T.Event.prototype={preventDefault:function(){this.isDefaultPrevented=J;var a=this.originalEvent;if(!a){return}if(a.preventDefault){a.preventDefault()}a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=J;var a=this.originalEvent;if(!a){return}if(a.stopPropagation){a.stopPropagation()}a.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=J;this.stopPropagation()},isDefaultPrevented:X,isPropagationStopped:X,isImmediatePropagationStopped:X};var ah=function(b){var c=b.relatedTarget;while(c&amp;&amp;c!=this){try{c=c.parentNode}catch(a){c=this}}if(c!=this){b.type=b.data;T.event.handle.apply(this,arguments)}};T.each({mouseover:&quot;mouseenter&quot;,mouseout:&quot;mouseleave&quot;},function(a,b){T.event.special[b]={setup:function(){T.event.add(this,a,ah,b)},teardown:function(){T.event.remove(this,a,ah)}}});T.fn.extend({bind:function(b,a,c){return b==&quot;unload&quot;?this.one(b,a,c):this.each(function(){T.event.add(this,b,c||a,c&amp;&amp;a)})},one:function(b,a,c){var d=T.event.proxy(c||a,function(e){T(this).unbind(e,d);return(c||a).apply(this,arguments)});return this.each(function(){T.event.add(this,b,d,c&amp;&amp;a)})},unbind:function(a,b){return this.each(function(){T.event.remove(this,a,b)})},trigger:function(b,a){return this.each(function(){T.event.trigger(b,a,this)})},triggerHandler:function(c,a){if(this[0]){var b=T.Event(c);b.preventDefault();b.stopPropagation();T.event.trigger(b,a,this[0]);return b.result}},toggle:function(a){var c=arguments,b=1;while(b&lt;c.length){T.event.proxy(a,c[b++])}return this.click(T.event.proxy(a,function(d){this.lastToggle=(this.lastToggle||0)%b;d.preventDefault();return c[this.lastToggle++].apply(this,arguments)||false}))},hover:function(b,a){return this.mouseenter(b).mouseleave(a)},ready:function(a){P();if(T.isReady){a.call(document,T)}else{T.readyList.push(a)}return this},live:function(a,b){var c=T.event.proxy(b);c.guid+=this.selector+a;T(document).bind(Z(a,this.selector),this.selector,c);return this},die:function(a,b){T(document).unbind(Z(a,this.selector),b?{guid:b.guid+this.selector+a}:null);return this}});function af(a){var d=RegExp(&quot;(^|\\.)&quot;+a.type+&quot;(\\.|$)&quot;),b=true,c=[];T.each(T.data(this,&quot;events&quot;).live||[],function(g,f){if(d.test(f.type)){var e=T(a.target).closest(f.data)[0];if(e){c.push({elem:e,fn:f})}}});c.sort(function(e,f){return T.data(e.elem,&quot;closest&quot;)-T.data(f.elem,&quot;closest&quot;)});T.each(c,function(){if(this.fn.call(this.elem,a,this.fn.data)===false){return(b=false)}});return b}function Z(a,b){return[&quot;live&quot;,a,b.replace(/\./g,&quot;`&quot;).replace(/ /g,&quot;|&quot;)].join(&quot;.&quot;)}T.extend({isReady:false,readyList:[],ready:function(){if(!T.isReady){T.isReady=true;if(T.readyList){T.each(T.readyList,function(){this.call(document,T)});T.readyList=null}T(document).triggerHandler(&quot;ready&quot;)}}});var G=false;function P(){if(G){return}G=true;if(document.addEventListener){document.addEventListener(&quot;DOMContentLoaded&quot;,function(){document.removeEventListener(&quot;DOMContentLoaded&quot;,arguments.callee,false);T.ready()},false)}else{if(document.attachEvent){document.attachEvent(&quot;onreadystatechange&quot;,function(){if(document.readyState===&quot;complete&quot;){document.detachEvent(&quot;onreadystatechange&quot;,arguments.callee);T.ready()}});if(document.documentElement.doScroll&amp;&amp;W==W.top){(function(){if(T.isReady){return}try{document.documentElement.doScroll(&quot;left&quot;)}catch(a){setTimeout(arguments.callee,0);return}T.ready()})()}}}T.event.add(W,&quot;load&quot;,T.ready)}T.each((&quot;blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error&quot;).split(&quot;,&quot;),function(a,b){T.fn[b]=function(c){return c?this.bind(b,c):this.trigger(b)}});T(W).bind(&quot;unload&quot;,function(){for(var a in T.cache){if(a!=1&amp;&amp;T.cache[a].handle){T.event.remove(T.cache[a].handle.elem)}}});(function(){T.support={};var f=document.documentElement,e=document.createElement(&quot;script&quot;),a=document.createElement(&quot;div&quot;),b=&quot;script&quot;+(new Date).getTime();a.style.display=&quot;none&quot;;a.innerHTML='   &lt;link/&gt;&lt;table&gt;&lt;/table&gt;&lt;a href=&quot;/a&quot; style=&quot;color:red;float:left;opacity:.5;&quot;&gt;a&lt;/a&gt;&lt;select&gt;&lt;option&gt;text&lt;/option&gt;&lt;/select&gt;&lt;object&gt;&lt;param/&gt;&lt;/object&gt;';var d=a.getElementsByTagName(&quot;*&quot;),g=a.getElementsByTagName(&quot;a&quot;)[0];if(!d||!d.length||!g){return}T.support={leadingWhitespace:a.firstChild.nodeType==3,tbody:!a.getElementsByTagName(&quot;tbody&quot;).length,objectAll:!!a.getElementsByTagName(&quot;object&quot;)[0].getElementsByTagName(&quot;*&quot;).length,htmlSerialize:!!a.getElementsByTagName(&quot;link&quot;).length,style:/red/.test(g.getAttribute(&quot;style&quot;)),hrefNormalized:g.getAttribute(&quot;href&quot;)===&quot;/a&quot;,opacity:g.style.opacity===&quot;0.5&quot;,cssFloat:!!g.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};e.type=&quot;text/javascript&quot;;try{e.appendChild(document.createTextNode(&quot;window.&quot;+b+&quot;=1;&quot;))}catch(c){}f.insertBefore(e,f.firstChild);if(W[b]){T.support.scriptEval=true;delete W[b]}f.removeChild(e);if(a.attachEvent&amp;&amp;a.fireEvent){a.attachEvent(&quot;onclick&quot;,function(){T.support.noCloneEvent=false;a.detachEvent(&quot;onclick&quot;,arguments.callee)});a.cloneNode(true).fireEvent(&quot;onclick&quot;)}T(function(){var h=document.createElement(&quot;div&quot;);h.style.width=h.style.paddingLeft=&quot;1px&quot;;document.body.appendChild(h);T.boxModel=T.support.boxModel=h.offsetWidth===2;document.body.removeChild(h).style.display=&quot;none&quot;})})();var H=T.support.cssFloat?&quot;cssFloat&quot;:&quot;styleFloat&quot;;T.props={&quot;for&quot;:&quot;htmlFor&quot;,&quot;class&quot;:&quot;className&quot;,&quot;float&quot;:H,cssFloat:H,styleFloat:H,readonly:&quot;readOnly&quot;,maxlength:&quot;maxLength&quot;,cellspacing:&quot;cellSpacing&quot;,rowspan:&quot;rowSpan&quot;,tabindex:&quot;tabIndex&quot;};T.fn.extend({_load:T.fn.load,load:function(e,b,a){if(typeof e!==&quot;string&quot;){return this._load(e)}var c=e.indexOf(&quot; &quot;);if(c&gt;=0){var g=e.slice(c,e.length);e=e.slice(0,c)}var d=&quot;GET&quot;;if(b){if(T.isFunction(b)){a=b;b=null}else{if(typeof b===&quot;object&quot;){b=T.param(b);d=&quot;POST&quot;}}}var f=this;T.ajax({url:e,type:d,dataType:&quot;html&quot;,data:b,complete:function(j,h){if(h==&quot;success&quot;||h==&quot;notmodified&quot;){f.html(g?T(&quot;&lt;div/&gt;&quot;).append(j.responseText.replace(/&lt;script(.|\s)*?\/script&gt;/g,&quot;&quot;)).find(g):j.responseText)}if(a){f.each(a,[j.responseText,h,j])}}});return this},serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?T.makeArray(this.elements):this}).filter(function(){return this.name&amp;&amp;!this.disabled&amp;&amp;(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(c,b){var a=T(this).val();return a==null?null:T.isArray(a)?T.map(a,function(d,e){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});T.each(&quot;ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend&quot;.split(&quot;,&quot;),function(b,a){T.fn[a]=function(c){return this.bind(a,c)}});var N=ad();T.extend({get:function(d,b,a,c){if(T.isFunction(b)){a=b;b=null}return T.ajax({type:&quot;GET&quot;,url:d,data:b,success:a,dataType:c})},getScript:function(b,a){return T.get(b,null,a,&quot;script&quot;)},getJSON:function(c,b,a){return T.get(c,b,a,&quot;json&quot;)},post:function(d,b,a,c){if(T.isFunction(b)){a=b;b={}}return T.ajax({type:&quot;POST&quot;,url:d,data:b,success:a,dataType:c})},ajaxSetup:function(a){T.extend(T.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:&quot;GET&quot;,contentType:&quot;application/x-www-form-urlencoded&quot;,processData:true,async:true,xhr:function(){return W.ActiveXObject?new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;):new XMLHttpRequest()},accepts:{xml:&quot;application/xml, text/xml&quot;,html:&quot;text/html&quot;,script:&quot;text/javascript, application/javascript&quot;,json:&quot;application/json, text/javascript&quot;,text:&quot;text/plain&quot;,_default:&quot;*/*&quot;}},lastModified:{},ajax:function(l){l=T.extend(true,l,T.extend(true,{},T.ajaxSettings,l));var a,u=/=\?(&amp;|$)/g,f,b,r=l.type.toUpperCase();if(l.data&amp;&amp;l.processData&amp;&amp;typeof l.data!==&quot;string&quot;){l.data=T.param(l.data)}if(l.dataType==&quot;jsonp&quot;){if(r==&quot;GET&quot;){if(!l.url.match(u)){l.url+=(l.url.match(/\?/)?&quot;&amp;&quot;:&quot;?&quot;)+(l.jsonp||&quot;callback&quot;)+&quot;=?&quot;}}else{if(!l.data||!l.data.match(u)){l.data=(l.data?l.data+&quot;&amp;&quot;:&quot;&quot;)+(l.jsonp||&quot;callback&quot;)+&quot;=?&quot;}}l.dataType=&quot;json&quot;}if(l.dataType==&quot;json&quot;&amp;&amp;(l.data&amp;&amp;l.data.match(u)||l.url.match(u))){a=&quot;jsonp&quot;+N++;if(l.data){l.data=(l.data+&quot;&quot;).replace(u,&quot;=&quot;+a+&quot;$1&quot;)}l.url=l.url.replace(u,&quot;=&quot;+a+&quot;$1&quot;);l.dataType=&quot;script&quot;;W[a]=function(x){b=x;p();m();W[a]=ab;try{delete W[a]}catch(w){}if(q){q.removeChild(d)}}}if(l.dataType==&quot;script&quot;&amp;&amp;l.cache==null){l.cache=false}if(l.cache===false&amp;&amp;r==&quot;GET&quot;){var v=ad();var c=l.url.replace(/(\?|&amp;)_=.*?(&amp;|$)/,&quot;$1_=&quot;+v+&quot;$2&quot;);l.url=c+((c==l.url)?(l.url.match(/\?/)?&quot;&amp;&quot;:&quot;?&quot;)+&quot;_=&quot;+v:&quot;&quot;)}if(l.data&amp;&amp;r==&quot;GET&quot;){l.url+=(l.url.match(/\?/)?&quot;&amp;&quot;:&quot;?&quot;)+l.data;l.data=null}if(l.global&amp;&amp;!T.active++){T.event.trigger(&quot;ajaxStart&quot;)}var g=/^(\w+:)?\/\/([^\/?#]+)/.exec(l.url);if(l.dataType==&quot;script&quot;&amp;&amp;r==&quot;GET&quot;&amp;&amp;g&amp;&amp;(g[1]&amp;&amp;g[1]!=location.protocol||g[2]!=location.host)){var q=document.getElementsByTagName(&quot;head&quot;)[0];var d=document.createElement(&quot;script&quot;);d.src=l.url;if(l.scriptCharset){d.charset=l.scriptCharset}if(!a){var j=false;d.onload=d.onreadystatechange=function(){if(!j&amp;&amp;(!this.readyState||this.readyState==&quot;loaded&quot;||this.readyState==&quot;complete&quot;)){j=true;p();m();d.onload=d.onreadystatechange=null;q.removeChild(d)}}}q.appendChild(d);return ab}var n=false;var o=l.xhr();if(l.username){o.open(r,l.url,l.async,l.username,l.password)}else{o.open(r,l.url,l.async)}try{if(l.data){o.setRequestHeader(&quot;Content-Type&quot;,l.contentType)}if(l.ifModified){o.setRequestHeader(&quot;If-Modified-Since&quot;,T.lastModified[l.url]||&quot;Thu, 01 Jan 1970 00:00:00 GMT&quot;)}o.setRequestHeader(&quot;X-Requested-With&quot;,&quot;XMLHttpRequest&quot;);o.setRequestHeader(&quot;Accept&quot;,l.dataType&amp;&amp;l.accepts[l.dataType]?l.accepts[l.dataType]+&quot;, */*&quot;:l.accepts._default)}catch(e){}if(l.beforeSend&amp;&amp;l.beforeSend(o,l)===false){if(l.global&amp;&amp;!--T.active){T.event.trigger(&quot;ajaxStop&quot;)}o.abort();return false}if(l.global){T.event.trigger(&quot;ajaxSend&quot;,[o,l])}var k=function(y){if(o.readyState==0){if(h){clearInterval(h);h=null;if(l.global&amp;&amp;!--T.active){T.event.trigger(&quot;ajaxStop&quot;)}}}else{if(!n&amp;&amp;o&amp;&amp;(o.readyState==4||y==&quot;timeout&quot;)){n=true;if(h){clearInterval(h);h=null}f=y==&quot;timeout&quot;?&quot;timeout&quot;:!T.httpSuccess(o)?&quot;error&quot;:l.ifModified&amp;&amp;T.httpNotModified(o,l.url)?&quot;notmodified&quot;:&quot;success&quot;;if(f==&quot;success&quot;){try{b=T.httpData(o,l.dataType,l)}catch(w){f=&quot;parsererror&quot;}}if(f==&quot;success&quot;){var x;try{x=o.getResponseHeader(&quot;Last-Modified&quot;)}catch(w){}if(l.ifModified&amp;&amp;x){T.lastModified[l.url]=x}if(!a){p()}}else{T.handleError(l,o,f)}m();if(y){o.abort()}if(l.async){o=null}}}};if(l.async){var h=setInterval(k,13);if(l.timeout&gt;0){setTimeout(function(){if(o&amp;&amp;!n){k(&quot;timeout&quot;)}},l.timeout)}}try{o.send(l.data)}catch(e){T.handleError(l,o,null,e)}if(!l.async){k()}function p(){if(l.success){l.success(b,f)}if(l.global){T.event.trigger(&quot;ajaxSuccess&quot;,[o,l])}}function m(){if(l.complete){l.complete(o,f)}if(l.global){T.event.trigger(&quot;ajaxComplete&quot;,[o,l])}if(l.global&amp;&amp;!--T.active){T.event.trigger(&quot;ajaxStop&quot;)}}return o},handleError:function(c,a,d,b){if(c.error){c.error(a,d,b)}if(c.global){T.event.trigger(&quot;ajaxError&quot;,[a,c,b])}},active:0,httpSuccess:function(a){try{return !a.status&amp;&amp;location.protocol==&quot;file:&quot;||(a.status&gt;=200&amp;&amp;a.status&lt;300)||a.status==304||a.status==1223}catch(b){}return false},httpNotModified:function(b,d){try{var a=b.getResponseHeader(&quot;Last-Modified&quot;);return b.status==304||a==T.lastModified[d]}catch(c){}return false},httpData:function(a,c,d){var e=a.getResponseHeader(&quot;content-type&quot;),f=c==&quot;xml&quot;||!c&amp;&amp;e&amp;&amp;e.indexOf(&quot;xml&quot;)&gt;=0,b=f?a.responseXML:a.responseText;if(f&amp;&amp;b.documentElement.tagName==&quot;parsererror&quot;){throw&quot;parsererror&quot;}if(d&amp;&amp;d.dataFilter){b=d.dataFilter(b,c)}if(typeof b===&quot;string&quot;){if(c==&quot;script&quot;){T.globalEval(b)}if(c==&quot;json&quot;){b=W[&quot;eval&quot;](&quot;(&quot;+b+&quot;)&quot;)}}return b},param:function(d){var b=[];function a(f,e){b[b.length]=encodeURIComponent(f)+&quot;=&quot;+encodeURIComponent(e)}if(T.isArray(d)||d.jquery){T.each(d,function(){a(this.name,this.value)})}else{for(var c in d){if(T.isArray(d[c])){T.each(d[c],function(){a(c,this)})}else{a(c,T.isFunction(d[c])?d[c]():d[c])}}}return b.join(&quot;&amp;&quot;).replace(/%20/g,&quot;+&quot;)}});var V={},U,ae=[[&quot;height&quot;,&quot;marginTop&quot;,&quot;marginBottom&quot;,&quot;paddingTop&quot;,&quot;paddingBottom&quot;],[&quot;width&quot;,&quot;marginLeft&quot;,&quot;marginRight&quot;,&quot;paddingLeft&quot;,&quot;paddingRight&quot;],[&quot;opacity&quot;]];function K(b,c){var a={};T.each(ae.concat.apply([],ae.slice(0,c)),function(){a[this]=b});return a}T.fn.extend({show:function(c,a){if(c){return this.animate(K(&quot;show&quot;,3),c,a)}else{for(var e=0,g=this.length;e&lt;g;e++){var h=T.data(this[e],&quot;olddisplay&quot;);this[e].style.display=h||&quot;&quot;;if(T.css(this[e],&quot;display&quot;)===&quot;none&quot;){var f=this[e].tagName,b;if(V[f]){b=V[f]}else{var d=T(&quot;&lt;&quot;+f+&quot; /&gt;&quot;).appendTo(&quot;body&quot;);b=d.css(&quot;display&quot;);if(b===&quot;none&quot;){b=&quot;block&quot;}d.remove();V[f]=b}T.data(this[e],&quot;olddisplay&quot;,b)}}for(var e=0,g=this.length;e&lt;g;e++){this[e].style.display=T.data(this[e],&quot;olddisplay&quot;)||&quot;&quot;}return this}},hide:function(b,a){if(b){return this.animate(K(&quot;hide&quot;,3),b,a)}else{for(var c=0,d=this.length;c&lt;d;c++){var e=T.data(this[c],&quot;olddisplay&quot;);if(!e&amp;&amp;e!==&quot;none&quot;){T.data(this[c],&quot;olddisplay&quot;,T.css(this[c],&quot;display&quot;))}}for(var c=0,d=this.length;c&lt;d;c++){this[c].style.display=&quot;none&quot;}return this}},_toggle:T.fn.toggle,toggle:function(a,b){var c=typeof a===&quot;boolean&quot;;return T.isFunction(a)&amp;&amp;T.isFunction(b)?this._toggle.apply(this,arguments):a==null||c?this.each(function(){var d=c?a:T(this).is(&quot;:hidden&quot;);T(this)[d?&quot;show&quot;:&quot;hide&quot;]()}):this.animate(K(&quot;toggle&quot;,3),a,b)},fadeTo:function(c,a,b){return this.animate({opacity:a},c,b)},animate:function(a,d,b,c){var e=T.speed(d,b,c);return this[e.queue===false?&quot;each&quot;:&quot;queue&quot;](function(){var g=T.extend({},e),j,f=this.nodeType==1&amp;&amp;T(this).is(&quot;:hidden&quot;),h=this;for(j in a){if(a[j]==&quot;hide&quot;&amp;&amp;f||a[j]==&quot;show&quot;&amp;&amp;!f){return g.complete.call(this)}if((j==&quot;height&quot;||j==&quot;width&quot;)&amp;&amp;this.style){g.display=T.css(this,&quot;display&quot;);g.overflow=this.style.overflow}}if(g.overflow!=null){this.style.overflow=&quot;hidden&quot;}g.curAnim=T.extend({},a);T.each(a,function(p,l){var m=new T.fx(h,g,p);if(/toggle|show|hide/.test(l)){m[l==&quot;toggle&quot;?f?&quot;show&quot;:&quot;hide&quot;:l](a)}else{var n=l.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),k=m.cur(true)||0;if(n){var q=parseFloat(n[2]),o=n[3]||&quot;px&quot;;if(o!=&quot;px&quot;){h.style[p]=(q||1)+o;k=((q||1)/m.cur(true))*k;h.style[p]=k+o}if(n[1]){q=((n[1]==&quot;-=&quot;?-1:1)*q)+k}m.custom(k,q,o)}else{m.custom(k,l,&quot;&quot;)}}});return true})},stop:function(b,c){var a=T.timers;if(b){this.queue([])}this.each(function(){for(var d=a.length-1;d&gt;=0;d--){if(a[d].elem==this){if(c){a[d](true)}a.splice(d,1)}}});if(!c){this.dequeue()}return this}});T.each({slideDown:K(&quot;show&quot;,1),slideUp:K(&quot;hide&quot;,1),slideToggle:K(&quot;toggle&quot;,1),fadeIn:{opacity:&quot;show&quot;},fadeOut:{opacity:&quot;hide&quot;}},function(b,a){T.fn[b]=function(d,c){return this.animate(a,d,c)}});T.extend({speed:function(b,a,c){var d=typeof b===&quot;object&quot;?b:{complete:c||!c&amp;&amp;a||T.isFunction(b)&amp;&amp;b,duration:b,easing:c&amp;&amp;a||a&amp;&amp;!T.isFunction(a)&amp;&amp;a};d.duration=T.fx.off?0:typeof d.duration===&quot;number&quot;?d.duration:T.fx.speeds[d.duration]||T.fx.speeds._default;d.old=d.complete;d.complete=function(){if(d.queue!==false){T(this).dequeue()}if(T.isFunction(d.old)){d.old.call(this)}};return d},easing:{linear:function(b,a,d,c){return d+c*b},swing:function(b,a,d,c){return((-Math.cos(b*Math.PI)/2)+0.5)*c+d}},timers:[],fx:function(b,c,a){this.options=c;this.elem=b;this.prop=a;if(!c.orig){c.orig={}}}});T.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(T.fx.step[this.prop]||T.fx.step._default)(this);if((this.prop==&quot;height&quot;||this.prop==&quot;width&quot;)&amp;&amp;this.elem.style){this.elem.style.display=&quot;block&quot;}},cur:function(a){if(this.elem[this.prop]!=null&amp;&amp;(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var b=parseFloat(T.css(this.elem,this.prop,a));return b&amp;&amp;b&gt;-10000?b:parseFloat(T.curCSS(this.elem,this.prop))||0},custom:function(a,b,c){this.startTime=ad();this.start=a;this.end=b;this.unit=c||this.unit||&quot;px&quot;;this.now=this.start;this.pos=this.state=0;var e=this;function d(f){return e.step(f)}d.elem=this.elem;if(d()&amp;&amp;T.timers.push(d)&amp;&amp;!U){U=setInterval(function(){var f=T.timers;for(var g=0;g&lt;f.length;g++){if(!f[g]()){f.splice(g--,1)}}if(!f.length){clearInterval(U);U=ab}},13)}},show:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop==&quot;width&quot;||this.prop==&quot;height&quot;?1:0,this.cur());T(this.elem).show()},hide:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(c){var d=ad();if(c||d&gt;=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var f=true;for(var e in this.options.curAnim){if(this.options.curAnim[e]!==true){f=false}}if(f){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(T.css(this.elem,&quot;display&quot;)==&quot;none&quot;){this.elem.style.display=&quot;block&quot;}}if(this.options.hide){T(this.elem).hide()}if(this.options.hide||this.options.show){for(var b in this.options.curAnim){T.attr(this.elem.style,b,this.options.orig[b])}}this.options.complete.call(this.elem)}return false}else{var a=d-this.startTime;this.state=a/this.options.duration;this.pos=T.easing[this.options.easing||(T.easing.swing?&quot;swing&quot;:&quot;linear&quot;)](this.state,a,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};T.extend(T.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){T.attr(a.elem.style,&quot;opacity&quot;,a.now)},_default:function(a){if(a.elem.style&amp;&amp;a.elem.style[a.prop]!=null){a.elem.style[a.prop]=a.now+a.unit}else{a.elem[a.prop]=a.now}}}});if(document.documentElement.getBoundingClientRect){T.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])}var f=this[0].getBoundingClientRect(),c=this[0].ownerDocument,g=c.body,h=c.documentElement,a=h.clientTop||g.clientTop||0,b=h.clientLeft||g.clientLeft||0,d=f.top+(self.pageYOffset||T.boxModel&amp;&amp;h.scrollTop||g.scrollTop)-a,e=f.left+(self.pageXOffset||T.boxModel&amp;&amp;h.scrollLeft||g.scrollLeft)-b;return{top:d,left:e}}}else{T.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])}T.offset.initialized||T.offset.initialize();var f=this[0],j=f.offsetParent,k=f,a=f.ownerDocument,c,h=a.documentElement,e=a.body,d=a.defaultView,l=d.getComputedStyle(f,null),b=f.offsetTop,g=f.offsetLeft;while((f=f.parentNode)&amp;&amp;f!==e&amp;&amp;f!==h){c=d.getComputedStyle(f,null);b-=f.scrollTop,g-=f.scrollLeft;if(f===j){b+=f.offsetTop,g+=f.offsetLeft;if(T.offset.doesNotAddBorder&amp;&amp;!(T.offset.doesAddBorderForTableAndCells&amp;&amp;/^t(able|d|h)$/i.test(f.tagName))){b+=parseInt(c.borderTopWidth,10)||0,g+=parseInt(c.borderLeftWidth,10)||0}k=j,j=f.offsetParent}if(T.offset.subtractsBorderForOverflowNotVisible&amp;&amp;c.overflow!==&quot;visible&quot;){b+=parseInt(c.borderTopWidth,10)||0,g+=parseInt(c.borderLeftWidth,10)||0}l=c}if(l.position===&quot;relative&quot;||l.position===&quot;static&quot;){b+=e.offsetTop,g+=e.offsetLeft}if(l.position===&quot;fixed&quot;){b+=Math.max(h.scrollTop,e.scrollTop),g+=Math.max(h.scrollLeft,e.scrollLeft)}return{top:b,left:g}}}T.offset={initialize:function(){if(this.initialized){return}var c=document.body,j=document.createElement(&quot;div&quot;),g,h,a,f,b,k,e=c.style.marginTop,d='&lt;div style=&quot;position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;table style=&quot;position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;';b={position:&quot;absolute&quot;,top:0,left:0,margin:0,border:0,width:&quot;1px&quot;,height:&quot;1px&quot;,visibility:&quot;hidden&quot;};for(k in b){j.style[k]=b[k]}j.innerHTML=d;c.insertBefore(j,c.firstChild);g=j.firstChild,h=g.firstChild,f=g.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(h.offsetTop!==5);this.doesAddBorderForTableAndCells=(f.offsetTop===5);g.style.overflow=&quot;hidden&quot;,g.style.position=&quot;relative&quot;;this.subtractsBorderForOverflowNotVisible=(h.offsetTop===-5);c.style.marginTop=&quot;1px&quot;;this.doesNotIncludeMarginInBodyOffset=(c.offsetTop===0);c.style.marginTop=e;c.removeChild(j);this.initialized=true},bodyOffset:function(c){T.offset.initialized||T.offset.initialize();var a=c.offsetTop,b=c.offsetLeft;if(T.offset.doesNotIncludeMarginInBodyOffset){a+=parseInt(T.curCSS(c,&quot;marginTop&quot;,true),10)||0,b+=parseInt(T.curCSS(c,&quot;marginLeft&quot;,true),10)||0}return{top:a,left:b}}};T.fn.extend({position:function(){var b=0,c=0,e;if(this[0]){var d=this.offsetParent(),a=this.offset(),f=/^body|html$/i.test(d[0].tagName)?{top:0,left:0}:d.offset();a.top-=Y(this,&quot;marginTop&quot;);a.left-=Y(this,&quot;marginLeft&quot;);f.top+=Y(d,&quot;borderTopWidth&quot;);f.left+=Y(d,&quot;borderLeftWidth&quot;);e={top:a.top-f.top,left:a.left-f.left}}return e},offsetParent:function(){var a=this[0].offsetParent||document.body;while(a&amp;&amp;(!/^body|html$/i.test(a.tagName)&amp;&amp;T.css(a,&quot;position&quot;)==&quot;static&quot;)){a=a.offsetParent}return T(a)}});T.each([&quot;Left&quot;,&quot;Top&quot;],function(b,c){var a=&quot;scroll&quot;+c;T.fn[a]=function(d){if(!this[0]){return null}return d!==ab?this.each(function(){this==W||this==document?W.scrollTo(!b?d:T(W).scrollLeft(),b?d:T(W).scrollTop()):this[a]=d}):this[0]==W||this[0]==document?self[b?&quot;pageYOffset&quot;:&quot;pageXOffset&quot;]||T.boxModel&amp;&amp;document.documentElement[a]||document.body[a]:this[0][a]}});T.each([&quot;Height&quot;,&quot;Width&quot;],function(b,d){var f=b?&quot;Left&quot;:&quot;Top&quot;,c=b?&quot;Right&quot;:&quot;Bottom&quot;,e=d.toLowerCase();T.fn[&quot;inner&quot;+d]=function(){return this[0]?T.css(this[0],e,false,&quot;padding&quot;):null};T.fn[&quot;outer&quot;+d]=function(g){return this[0]?T.css(this[0],e,false,g?&quot;margin&quot;:&quot;border&quot;):null};var a=d.toLowerCase();T.fn[a]=function(g){return this[0]==W?document.compatMode==&quot;CSS1Compat&quot;&amp;&amp;document.documentElement[&quot;client&quot;+d]||document.body[&quot;client&quot;+d]:this[0]==document?Math.max(document.documentElement[&quot;client&quot;+d],document.body[&quot;scroll&quot;+d],document.documentElement[&quot;scroll&quot;+d],document.body[&quot;offset&quot;+d],document.documentElement[&quot;offset&quot;+d]):g===ab?(this.length?T.css(this[0],a):null):this.css(a,typeof g===&quot;string&quot;?g:g+&quot;px&quot;)}})})();(function($){$.extend({tablesorter:new function(){var parsers=[],widgets=[];this.defaults={cssHeader:&quot;header&quot;,cssAsc:&quot;headerSortUp&quot;,cssDesc:&quot;headerSortDown&quot;,sortInitialOrder:&quot;asc&quot;,sortMultiSortKey:&quot;shiftKey&quot;,sortForce:null,sortAppend:null,textExtraction:&quot;simple&quot;,parsers:{},widgets:[],widgetZebra:{css:[&quot;even&quot;,&quot;odd&quot;]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:&quot;us&quot;,decimal:&quot;.&quot;,debug:false};function benchmark(s,d){log(s+&quot;,&quot;+(new Date().getTime()-d.getTime())+&quot;ms&quot;)}this.benchmark=benchmark;function log(s){if(typeof console!=&quot;undefined&quot;&amp;&amp;typeof console.debug!=&quot;undefined&quot;){console.log(s)}else{alert(s)}}function buildParserCache(table,$headers){if(table.config.debug){var parsersDebug=&quot;&quot;}var rows=table.tBodies[0].rows;if(table.tBodies[0].rows[0]){var list=[],cells=rows[0].cells,l=cells.length;for(var i=0;i&lt;l;i++){var p=false;if($.metadata&amp;&amp;($($headers[i]).metadata()&amp;&amp;$($headers[i]).metadata().sorter)){p=getParserById($($headers[i]).metadata().sorter)}else{if((table.config.headers[i]&amp;&amp;table.config.headers[i].sorter)){p=getParserById(table.config.headers[i].sorter)}}if(!p){p=detectParserForColumn(table,cells[i])}if(table.config.debug){parsersDebug+=&quot;column:&quot;+i+&quot; parser:&quot;+p.id+&quot;\n&quot;}list.push(p)}}if(table.config.debug){log(parsersDebug)}return list}function detectParserForColumn(table,node){var l=parsers.length;for(var i=1;i&lt;l;i++){if(parsers[i].is($.trim(getElementText(table.config,node)),table,node)){return parsers[i]}}return parsers[0]}function getParserById(name){var l=parsers.length;for(var i=0;i&lt;l;i++){if(parsers[i].id.toLowerCase()==name.toLowerCase()){return parsers[i]}}return false}function buildCache(table){if(table.config.debug){var cacheTime=new Date()}var totalRows=(table.tBodies[0]&amp;&amp;table.tBodies[0].rows.length)||0,totalCells=(table.tBodies[0].rows[0]&amp;&amp;table.tBodies[0].rows[0].cells.length)||0,parsers=table.config.parsers,cache={row:[],normalized:[]};for(var i=0;i&lt;totalRows;++i){var c=table.tBodies[0].rows[i],cols=[];cache.row.push($(c));for(var j=0;j&lt;totalCells;++j){cols.push(parsers[j].format(getElementText(table.config,c.cells[j]),table,c.cells[j]))}cols.push(i);cache.normalized.push(cols);cols=null}if(table.config.debug){benchmark(&quot;Building cache for &quot;+totalRows+&quot; rows:&quot;,cacheTime)}return cache}function getElementText(config,node){if(!node){return&quot;&quot;}var t=&quot;&quot;;if(config.textExtraction==&quot;simple&quot;){if(node.childNodes[0]&amp;&amp;node.childNodes[0].hasChildNodes()){t=node.childNodes[0].innerHTML}else{t=node.innerHTML}}else{if(typeof(config.textExtraction)==&quot;function&quot;){t=config.textExtraction(node)}else{t=$(node).text()}}return t}function appendToTable(table,cache){if(table.config.debug){var appendTime=new Date()}var c=cache,r=c.row,n=c.normalized,totalRows=n.length,checkCell=(n[0].length-1),tableBody=$(table.tBodies[0]),rows=[];for(var i=0;i&lt;totalRows;i++){rows.push(r[n[i][checkCell]]);if(!table.config.appender){var o=r[n[i][checkCell]];var l=o.length;for(var j=0;j&lt;l;j++){tableBody[0].appendChild(o[j])}}}if(table.config.appender){table.config.appender(table,rows)}rows=null;if(table.config.debug){benchmark(&quot;Rebuilt table:&quot;,appendTime)}applyWidget(table);setTimeout(function(){$(table).trigger(&quot;sortEnd&quot;)},0)}function buildHeaders(table){if(table.config.debug){var time=new Date()}var meta=($.metadata)?true:false,tableHeadersRows=[];for(var i=0;i&lt;table.tHead.rows.length;i++){tableHeadersRows[i]=0}$tableHeaders=$(&quot;thead th&quot;,table);$tableHeaders.each(function(index){this.count=0;this.column=index;this.order=formatSortingOrder(table.config.sortInitialOrder);if(checkHeaderMetadata(this)||checkHeaderOptions(table,index)){this.sortDisabled=true}if(!this.sortDisabled){$(this).addClass(table.config.cssHeader)}table.config.headerList[index]=this});if(table.config.debug){benchmark(&quot;Built headers:&quot;,time);log($tableHeaders)}return $tableHeaders}function checkCellColSpan(table,rows,row){var arr=[],r=table.tHead.rows,c=r[row].cells;for(var i=0;i&lt;c.length;i++){var cell=c[i];if(cell.colSpan&gt;1){arr=arr.concat(checkCellColSpan(table,headerArr,row++))}else{if(table.tHead.length==1||(cell.rowSpan&gt;1||!r[row+1])){arr.push(cell)}}}return arr}function checkHeaderMetadata(cell){if(($.metadata)&amp;&amp;($(cell).metadata().sorter===false)){return true}return false}function checkHeaderOptions(table,i){if((table.config.headers[i])&amp;&amp;(table.config.headers[i].sorter===false)){return true}return false}function applyWidget(table){var c=table.config.widgets;var l=c.length;for(var i=0;i&lt;l;i++){getWidgetById(c[i]).format(table)}}function getWidgetById(name){var l=widgets.length;for(var i=0;i&lt;l;i++){if(widgets[i].id.toLowerCase()==name.toLowerCase()){return widgets[i]}}}function formatSortingOrder(v){if(typeof(v)!=&quot;Number&quot;){i=(v.toLowerCase()==&quot;desc&quot;)?1:0}else{i=(v==(0||1))?v:0}return i}function isValueInArray(v,a){var l=a.length;for(var i=0;i&lt;l;i++){if(a[i][0]==v){return true}}return false}function setHeadersCss(table,$headers,list,css){$headers.removeClass(css[0]).removeClass(css[1]);var h=[];$headers.each(function(offset){if(!this.sortDisabled){h[this.column]=$(this)}});var l=list.length;for(var i=0;i&lt;l;i++){h[list[i][0]].addClass(css[list[i][1]])}}function fixColumnWidth(table,$headers){var c=table.config;if(c.widthFixed){var colgroup=$(&quot;&lt;colgroup&gt;&quot;);$(&quot;tr:first td&quot;,table.tBodies[0]).each(function(){colgroup.append($(&quot;&lt;col&gt;&quot;).css(&quot;width&quot;,$(this).width()))});$(table).prepend(colgroup)}}function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;i&lt;l;i++){var s=sortList[i],o=c.headerList[s[0]];o.count=s[1];o.count++}}function multisort(table,sortList,cache){if(table.config.debug){var sortTime=new Date()}var dynamicExp=&quot;var sortWrapper = function(a,b) {&quot;,l=sortList.length;for(var i=0;i&lt;l;i++){var c=sortList[i][0];var order=sortList[i][1];var s=(getCachedSortType(table.config.parsers,c)==&quot;text&quot;)?((order==0)?&quot;sortText&quot;:&quot;sortTextDesc&quot;):((order==0)?&quot;sortNumeric&quot;:&quot;sortNumericDesc&quot;);var e=&quot;e&quot;+i;dynamicExp+=&quot;var &quot;+e+&quot; = &quot;+s+&quot;(a[&quot;+c+&quot;],b[&quot;+c+&quot;]); &quot;;dynamicExp+=&quot;if(&quot;+e+&quot;) { return &quot;+e+&quot;; } &quot;;dynamicExp+=&quot;else { &quot;}var orgOrderCol=cache.normalized[0].length-1;dynamicExp+=&quot;return a[&quot;+orgOrderCol+&quot;]-b[&quot;+orgOrderCol+&quot;];&quot;;for(var i=0;i&lt;l;i++){dynamicExp+=&quot;}; &quot;}dynamicExp+=&quot;return 0; &quot;;dynamicExp+=&quot;}; &quot;;eval(dynamicExp);cache.normalized.sort(sortWrapper);if(table.config.debug){benchmark(&quot;Sorting on &quot;+sortList.toString()+&quot; and dir &quot;+order+&quot; time:&quot;,sortTime)}return cache}function sortText(a,b){return((a&lt;b)?-1:((a&gt;b)?1:0))}function sortTextDesc(a,b){return((b&lt;a)?-1:((b&gt;a)?1:0))}function sortNumeric(a,b){return a-b}function sortNumericDesc(a,b){return b-a}function getCachedSortType(parsers,i){return parsers[i].type}this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies){return}var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){$this.trigger(&quot;sortStart&quot;);var totalRows=($this[0].tBodies[0]&amp;&amp;$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&amp;&amp;totalRows&gt;0){var $cell=$(this);var i=this.column;this.order=this.count++%2;if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j&lt;a.length;j++){if(a[j][0]!=i){config.sortList.push(a[j])}}}config.sortList.push([i,this.order])}else{if(isValueInArray(i,config.sortList)){for(var j=0;j&lt;config.sortList.length;j++){var s=config.sortList[j],o=config.headerList[s[0]];if(s[0]==i){o.count=s[1];o.count++;s[1]=o.count%2}}}else{config.sortList.push([i,this.order])}}setTimeout(function(){setHeadersCss($this[0],$headers,config.sortList,sortCSS);appendToTable($this[0],multisort($this[0],config.sortList,cache))},1);return false}}).mousedown(function(){if(config.cancelSelection){this.onselectstart=function(){return false};return false}});$this.bind(&quot;update&quot;,function(){this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this)}).bind(&quot;sorton&quot;,function(e,list){$(this).trigger(&quot;sortStart&quot;);config.sortList=list;var sortList=config.sortList;updateHeaderSortCount(this,sortList);setHeadersCss(this,$headers,sortList,sortCSS);appendToTable(this,multisort(this,sortList,cache))}).bind(&quot;appendCache&quot;,function(){appendToTable(this,cache)}).bind(&quot;applyWidgetId&quot;,function(e,id){getWidgetById(id).format(this)}).bind(&quot;applyWidgets&quot;,function(){applyWidget(this)});if($.metadata&amp;&amp;($(this).metadata()&amp;&amp;$(this).metadata().sortlist)){config.sortList=$(this).metadata().sortlist}if(config.sortList.length&gt;0){$this.trigger(&quot;sorton&quot;,[config.sortList])}applyWidget(this)})};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i&lt;l;i++){if(parsers[i].id.toLowerCase()==parser.id.toLowerCase()){a=false}}if(a){parsers.push(parser)}};this.addWidget=function(widget){widgets.push(widget)};this.formatFloat=function(s){var i=parseFloat(s);return(isNaN(i))?0:i};this.formatInt=function(s){var i=parseInt(s);return(isNaN(i))?0:i};this.isDigit=function(s,config){var DECIMAL=&quot;\\&quot;+config.decimal;var exp=&quot;/(^[+]?0(&quot;+DECIMAL+&quot;0+)?$)|(^([-+]?[1-9][0-9]*)$)|(^([-+]?((0?|[1-9][0-9]*)&quot;+DECIMAL+&quot;(0*[1-9][0-9]*)))$)|(^[-+]?[1-9]+[0-9]*&quot;+DECIMAL+&quot;0+$)/&quot;;return RegExp(exp).test($.trim(s))};this.clearTableBody=function(table){if($.browser.msie){function empty(){while(this.firstChild){this.removeChild(this.firstChild)}}empty.apply(table.tBodies[0])}else{table.tBodies[0].innerHTML=&quot;&quot;}}}});$.fn.extend({tablesorter:$.tablesorter.construct});var ts=$.tablesorter;ts.addParser({id:&quot;text&quot;,is:function(s){return true},format:function(s){return $.trim(s.toLowerCase())},type:&quot;text&quot;});ts.addParser({id:&quot;digit&quot;,is:function(s,table){var c=table.config;return $.tablesorter.isDigit(s,c)},format:function(s){return $.tablesorter.formatFloat(s)},type:&quot;numeric&quot;});ts.addParser({id:&quot;currency&quot;,is:function(s){return/^[&#194;&#163;$&#226;&#8218;&#172;?.]/.test(s)},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/[^0-9.]/g),&quot;&quot;))},type:&quot;numeric&quot;});ts.addParser({id:&quot;ipAddress&quot;,is:function(s){return/^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(s)},format:function(s){var a=s.split(&quot;.&quot;),r=&quot;&quot;,l=a.length;for(var i=0;i&lt;l;i++){var item=a[i];if(item.length==2){r+=&quot;0&quot;+item}else{r+=item}}return $.tablesorter.formatFloat(r)},type:&quot;numeric&quot;});ts.addParser({id:&quot;url&quot;,is:function(s){return/^(https?|ftp|file):\/\/$/.test(s)},format:function(s){return jQuery.trim(s.replace(new RegExp(/(https?|ftp|file):\/\//),&quot;&quot;))},type:&quot;text&quot;});ts.addParser({id:&quot;isoDate&quot;,is:function(s){return/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(s)},format:function(s){return $.tablesorter.formatFloat((s!=&quot;&quot;)?new Date(s.replace(new RegExp(/-/g),&quot;/&quot;)).getTime():&quot;0&quot;)},type:&quot;numeric&quot;});ts.addParser({id:&quot;percent&quot;,is:function(s){return/\%$/.test($.trim(s))},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/%/g),&quot;&quot;))},type:&quot;numeric&quot;});ts.addParser({id:&quot;usLongDate&quot;,is:function(s){return s.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/))},format:function(s){return $.tablesorter.formatFloat(new Date(s).getTime())},type:&quot;numeric&quot;});ts.addParser({id:&quot;shortDate&quot;,is:function(s){return/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s)},format:function(s,table){var c=table.config;s=s.replace(/\-/g,&quot;/&quot;);if(c.dateFormat==&quot;us&quot;){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,&quot;$3/$1/$2&quot;)}else{if(c.dateFormat==&quot;uk&quot;){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,&quot;$3/$2/$1&quot;)}else{if(c.dateFormat==&quot;dd/mm/yy&quot;||c.dateFormat==&quot;dd-mm-yy&quot;){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,&quot;$1/$2/$3&quot;)}}}return $.tablesorter.formatFloat(new Date(s).getTime())},type:&quot;numeric&quot;});ts.addParser({id:&quot;time&quot;,is:function(s){return/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(s)},format:function(s){return $.tablesorter.formatFloat(new Date(&quot;2000/01/01 &quot;+s).getTime())},type:&quot;numeric&quot;});ts.addParser({id:&quot;metadata&quot;,is:function(s){return false},format:function(s,table,cell){var c=table.config,p=(!c.parserMetadataName)?&quot;sortValue&quot;:c.parserMetadataName;return $(cell).metadata()[p]},type:&quot;numeric&quot;});ts.addWidget({id:&quot;zebra&quot;,format:function(table){if(table.config.debug){var time=new Date()}$(&quot;tr:visible&quot;,table.tBodies[0]).filter(&quot;:even&quot;).removeClass(table.config.widgetZebra.css[1]).addClass(table.config.widgetZebra.css[0]).end().filter(&quot;:odd&quot;).removeClass(table.config.widgetZebra.css[0]).addClass(table.config.widgetZebra.css[1]);if(table.config.debug){$.tablesorter.benchmark(&quot;Applying Zebra widget&quot;,time)}}})})(jQuery);jQuery.ui||(function(p){var j=p.fn.remove,o=p.browser.mozilla&amp;&amp;(parseFloat(p.browser.version)&lt;1.9);p.ui={version:&quot;1.7.1&quot;,plugin:{add:function(c,b,e){var a=p.ui[c].prototype;for(var d in e){a.plugins[d]=a.plugins[d]||[];a.plugins[d].push([b,e[d]])}},call:function(d,b,c){var e=d.plugins[b];if(!e||!d.element[0].parentNode){return}for(var a=0;a&lt;e.length;a++){if(d.options[e[a][0]]){e[a][1].apply(d.element,c)}}}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&amp;16:a!==b&amp;&amp;a.contains(b)},hasScroll:function(a,c){if(p(a).css(&quot;overflow&quot;)==&quot;hidden&quot;){return false}var d=(c&amp;&amp;c==&quot;left&quot;)?&quot;scrollLeft&quot;:&quot;scrollTop&quot;,b=false;if(a[d]&gt;0){return true}a[d]=1;b=(a[d]&gt;0);a[d]=0;return b},isOverAxis:function(b,c,a){return(b&gt;c)&amp;&amp;(b&lt;(c+a))},isOver:function(e,c,f,a,d,b){return p.ui.isOverAxis(e,f,d)&amp;&amp;p.ui.isOverAxis(c,a,b)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,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,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(o){var m=p.attr,n=p.fn.removeAttr,k=&quot;http://www.w3.org/2005/07/aaa&quot;,r=/^aria-/,q=/^wairole:/;p.attr=function(c,d,b){var a=b!==undefined;return(d==&quot;role&quot;?(a?m.call(this,c,d,&quot;wairole:&quot;+b):(m.apply(this,arguments)||&quot;&quot;).replace(q,&quot;&quot;)):(r.test(d)?(a?c.setAttributeNS(k,d.replace(r,&quot;aaa:&quot;),b):m.call(this,c,d.replace(r,&quot;aaa:&quot;))):m.apply(this,arguments)))};p.fn.removeAttr=function(a){return(r.test(a)?this.each(function(){this.removeAttributeNS(k,a.replace(r,&quot;&quot;))}):n.call(this,a))}}p.fn.extend({remove:function(){p(&quot;*&quot;,this).add(this).each(function(){p(this).triggerHandler(&quot;remove&quot;)});return j.apply(this,arguments)},enableSelection:function(){return this.attr(&quot;unselectable&quot;,&quot;off&quot;).css(&quot;MozUserSelect&quot;,&quot;&quot;).unbind(&quot;selectstart.ui&quot;)},disableSelection:function(){return this.attr(&quot;unselectable&quot;,&quot;on&quot;).css(&quot;MozUserSelect&quot;,&quot;none&quot;).bind(&quot;selectstart.ui&quot;,function(){return false})},scrollParent:function(){var a;if((p.browser.msie&amp;&amp;(/(static|relative)/).test(this.css(&quot;position&quot;)))||(/absolute/).test(this.css(&quot;position&quot;))){a=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(p.curCSS(this,&quot;position&quot;,1))&amp;&amp;(/(auto|scroll)/).test(p.curCSS(this,&quot;overflow&quot;,1)+p.curCSS(this,&quot;overflow-y&quot;,1)+p.curCSS(this,&quot;overflow-x&quot;,1))}).eq(0)}else{a=this.parents().filter(function(){return(/(auto|scroll)/).test(p.curCSS(this,&quot;overflow&quot;,1)+p.curCSS(this,&quot;overflow-y&quot;,1)+p.curCSS(this,&quot;overflow-x&quot;,1))}).eq(0)}return(/fixed/).test(this.css(&quot;position&quot;))||!a.length?p(document):a}});p.extend(p.expr[&quot;:&quot;],{data:function(a,b,c){return !!p.data(a,c[3])},focusable:function(b){var a=b.nodeName.toLowerCase(),c=p.attr(b,&quot;tabindex&quot;);return(/input|select|textarea|button|object/.test(a)?!b.disabled:&quot;a&quot;==a||&quot;area&quot;==a?b.href||!isNaN(c):!isNaN(c))&amp;&amp;!p(b)[&quot;area&quot;==a?&quot;parents&quot;:&quot;closest&quot;](&quot;:hidden&quot;).length},tabbable:function(a){var b=p.attr(a,&quot;tabindex&quot;);return(isNaN(b)||b&gt;=0)&amp;&amp;p(a).is(&quot;:focusable&quot;)}});function l(a,f,e,b){function c(g){var h=p[a][f][g]||[];return(typeof h==&quot;string&quot;?h.split(/,?\s+/):h)}var d=c(&quot;getter&quot;);if(b.length==1&amp;&amp;typeof b[0]==&quot;string&quot;){d=d.concat(c(&quot;getterSetter&quot;))}return(p.inArray(e,d)!=-1)}p.widget=function(b,c){var a=b.split(&quot;.&quot;)[0];b=b.split(&quot;.&quot;)[1];p.fn[b]=function(e){var g=(typeof e==&quot;string&quot;),f=Array.prototype.slice.call(arguments,1);if(g&amp;&amp;e.substring(0,1)==&quot;_&quot;){return this}if(g&amp;&amp;l(a,b,e,f)){var d=p.data(this[0],b);return(d?d[e].apply(d,f):undefined)}return this.each(function(){var h=p.data(this,b);(!h&amp;&amp;!g&amp;&amp;p.data(this,b,new p[a][b](this,e))._init());(h&amp;&amp;g&amp;&amp;p.isFunction(h[e])&amp;&amp;h[e].apply(h,f))})};p[a]=p[a]||{};p[a][b]=function(e,f){var d=this;this.namespace=a;this.widgetName=b;this.widgetEventPrefix=p[a][b].eventPrefix||b;this.widgetBaseClass=a+&quot;-&quot;+b;this.options=p.extend({},p.widget.defaults,p[a][b].defaults,p.metadata&amp;&amp;p.metadata.get(e)[b],f);this.element=p(e).bind(&quot;setData.&quot;+b,function(h,u,g){if(h.target==e){return d._setData(u,g)}}).bind(&quot;getData.&quot;+b,function(g,h){if(g.target==e){return d._getData(h)}}).bind(&quot;remove&quot;,function(){return d.destroy()})};p[a][b].prototype=p.extend({},p.widget.prototype,c);p[a][b].getterSetter=&quot;option&quot;};p.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+&quot;-disabled &quot;+this.namespace+&quot;-state-disabled&quot;).removeAttr(&quot;aria-disabled&quot;)},option:function(b,a){var c=b,d=this;if(typeof b==&quot;string&quot;){if(a===undefined){return this._getData(b)}c={};c[b]=a}p.each(c,function(f,e){d._setData(f,e)})},_getData:function(a){return this.options[a]},_setData:function(b,a){this.options[b]=a;if(b==&quot;disabled&quot;){this.element[a?&quot;addClass&quot;:&quot;removeClass&quot;](this.widgetBaseClass+&quot;-disabled &quot;+this.namespace+&quot;-state-disabled&quot;).attr(&quot;aria-disabled&quot;,a)}},enable:function(){this._setData(&quot;disabled&quot;,false)},disable:function(){this._setData(&quot;disabled&quot;,true)},_trigger:function(b,a,g){var e=this.options[b],d=(b==this.widgetEventPrefix?b:this.widgetEventPrefix+b);a=p.Event(a);a.type=d;if(a.originalEvent){for(var c=p.event.props.length,f;c;){f=p.event.props[--c];a[f]=a.originalEvent[f]}}this.element.trigger(a,g);return !(p.isFunction(e)&amp;&amp;e.call(this.element[0],a,g)===false||a.isDefaultPrevented())}};p.widget.defaults={disabled:false};p.ui.mouse={_mouseInit:function(){var a=this;this.element.bind(&quot;mousedown.&quot;+this.widgetName,function(b){return a._mouseDown(b)}).bind(&quot;click.&quot;+this.widgetName,function(b){if(a._preventClickEvent){a._preventClickEvent=false;b.stopImmediatePropagation();return false}});if(p.browser.msie){this._mouseUnselectable=this.element.attr(&quot;unselectable&quot;);this.element.attr(&quot;unselectable&quot;,&quot;on&quot;)}this.started=false},_mouseDestroy:function(){this.element.unbind(&quot;.&quot;+this.widgetName);(p.browser.msie&amp;&amp;this.element.attr(&quot;unselectable&quot;,this._mouseUnselectable))},_mouseDown:function(b){b.originalEvent=b.originalEvent||{};if(b.originalEvent.mouseHandled){return}(this._mouseStarted&amp;&amp;this._mouseUp(b));this._mouseDownEvent=b;var c=this,a=(b.which==1),d=(typeof this.options.cancel==&quot;string&quot;?p(b.target).parents().add(b.target).filter(this.options.cancel).length:false);if(!a||d||!this._mouseCapture(b)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(b)&amp;&amp;this._mouseDelayMet(b)){this._mouseStarted=(this._mouseStart(b)!==false);if(!this._mouseStarted){b.preventDefault();return true}}this._mouseMoveDelegate=function(e){return c._mouseMove(e)};this._mouseUpDelegate=function(e){return c._mouseUp(e)};p(document).bind(&quot;mousemove.&quot;+this.widgetName,this._mouseMoveDelegate).bind(&quot;mouseup.&quot;+this.widgetName,this._mouseUpDelegate);(p.browser.safari||b.preventDefault());b.originalEvent.mouseHandled=true;return true},_mouseMove:function(a){if(p.browser.msie&amp;&amp;!a.button){return this._mouseUp(a)}if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&amp;&amp;this._mouseDelayMet(a)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,a)!==false);(this._mouseStarted?this._mouseDrag(a):this._mouseUp(a))}return !this._mouseStarted},_mouseUp:function(a){p(document).unbind(&quot;mousemove.&quot;+this.widgetName,this._mouseMoveDelegate).unbind(&quot;mouseup.&quot;+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(a.target==this._mouseDownEvent.target);this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return(Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))&gt;=this.options.distance)},_mouseDelayMet:function(a){return this.mouseDelayMet},_mouseStart:function(a){},_mouseDrag:function(a){},_mouseStop:function(a){},_mouseCapture:function(a){return true}};p.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(b){b.widget(&quot;ui.draggable&quot;,b.extend({},b.ui.mouse,{_init:function(){if(this.options.helper==&quot;original&quot;&amp;&amp;!(/^(?:r|a|f)/).test(this.element.css(&quot;position&quot;))){this.element[0].style.position=&quot;relative&quot;}(this.options.addClasses&amp;&amp;this.element.addClass(&quot;ui-draggable&quot;));(this.options.disabled&amp;&amp;this.element.addClass(&quot;ui-draggable-disabled&quot;));this._mouseInit()},destroy:function(){if(!this.element.data(&quot;draggable&quot;)){return}this.element.removeData(&quot;draggable&quot;).unbind(&quot;.draggable&quot;).removeClass(&quot;ui-draggable ui-draggable-dragging ui-draggable-disabled&quot;);this._mouseDestroy()},_mouseCapture:function(a){var d=this.options;if(this.helper||d.disabled||b(a.target).is(&quot;.ui-resizable-handle&quot;)){return false}this.handle=this._getHandle(a);if(!this.handle){return false}return true},_mouseStart:function(a){var d=this.options;this.helper=this._createHelper(a);this._cacheHelperProportions();if(b.ui.ddmanager){b.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css(&quot;position&quot;);this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};b.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;if(d.cursorAt){this._adjustOffsetFromHelper(d.cursorAt)}if(d.containment){this._setContainment()}this._trigger(&quot;start&quot;,a);this._cacheHelperProportions();if(b.ui.ddmanager&amp;&amp;!d.dropBehaviour){b.ui.ddmanager.prepareOffsets(this,a)}this.helper.addClass(&quot;ui-draggable-dragging&quot;);this._mouseDrag(a,true);return true},_mouseDrag:function(a,e){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo(&quot;absolute&quot;);if(!e){var f=this._uiHash();this._trigger(&quot;drag&quot;,a,f);this.position=f.position}if(!this.options.axis||this.options.axis!=&quot;y&quot;){this.helper[0].style.left=this.position.left+&quot;px&quot;}if(!this.options.axis||this.options.axis!=&quot;x&quot;){this.helper[0].style.top=this.position.top+&quot;px&quot;}if(b.ui.ddmanager){b.ui.ddmanager.drag(this,a)}return false},_mouseStop:function(f){var e=false;if(b.ui.ddmanager&amp;&amp;!this.options.dropBehaviour){e=b.ui.ddmanager.drop(this,f)}if(this.dropped){e=this.dropped;this.dropped=false}if((this.options.revert==&quot;invalid&quot;&amp;&amp;!e)||(this.options.revert==&quot;valid&quot;&amp;&amp;e)||this.options.revert===true||(b.isFunction(this.options.revert)&amp;&amp;this.options.revert.call(this.element,e))){var a=this;b(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){a._trigger(&quot;stop&quot;,f);a._clear()})}else{this._trigger(&quot;stop&quot;,f);this._clear()}return false},_getHandle:function(a){var d=!this.options.handle||!b(this.options.handle,this.element).length?true:false;b(this.options.handle,this.element).find(&quot;*&quot;).andSelf().each(function(){if(this==a.target){d=true}});return d},_createHelper:function(f){var e=this.options;var a=b.isFunction(e.helper)?b(e.helper.apply(this.element[0],[f])):(e.helper==&quot;clone&quot;?this.element.clone():this.element);if(!a.parents(&quot;body&quot;).length){a.appendTo((e.appendTo==&quot;parent&quot;?this.element[0].parentNode:e.appendTo))}if(a[0]!=this.element[0]&amp;&amp;!(/(fixed|absolute)/).test(a.css(&quot;position&quot;))){a.css(&quot;position&quot;,&quot;absolute&quot;)}return a},_adjustOffsetFromHelper:function(a){if(a.left!=undefined){this.offset.click.left=a.left+this.margins.left}if(a.right!=undefined){this.offset.click.left=this.helperProportions.width-a.right+this.margins.left}if(a.top!=undefined){this.offset.click.top=a.top+this.margins.top}if(a.bottom!=undefined){this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition==&quot;absolute&quot;&amp;&amp;this.scrollParent[0]!=document&amp;&amp;b.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&amp;&amp;this.offsetParent[0].tagName.toLowerCase()==&quot;html&quot;&amp;&amp;b.browser.msie)){a={top:0,left:0}}return{top:a.top+(parseInt(this.offsetParent.css(&quot;borderTopWidth&quot;),10)||0),left:a.left+(parseInt(this.offsetParent.css(&quot;borderLeftWidth&quot;),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==&quot;relative&quot;){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css(&quot;top&quot;),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css(&quot;left&quot;),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css(&quot;marginLeft&quot;),10)||0),top:(parseInt(this.element.css(&quot;marginTop&quot;),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var f=this.options;if(f.containment==&quot;parent&quot;){f.containment=this.helper[0].parentNode}if(f.containment==&quot;document&quot;||f.containment==&quot;window&quot;){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(f.containment==&quot;document&quot;?document:window).width()-this.helperProportions.width-this.margins.left,(b(f.containment==&quot;document&quot;?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(f.containment)&amp;&amp;f.containment.constructor!=Array){var h=b(f.containment)[0];if(!h){return}var g=b(f.containment).offset();var a=(b(h).css(&quot;overflow&quot;)!=&quot;hidden&quot;);this.containment=[g.left+(parseInt(b(h).css(&quot;borderLeftWidth&quot;),10)||0)+(parseInt(b(h).css(&quot;paddingLeft&quot;),10)||0)-this.margins.left,g.top+(parseInt(b(h).css(&quot;borderTopWidth&quot;),10)||0)+(parseInt(b(h).css(&quot;paddingTop&quot;),10)||0)-this.margins.top,g.left+(a?Math.max(h.scrollWidth,h.offsetWidth):h.offsetWidth)-(parseInt(b(h).css(&quot;borderLeftWidth&quot;),10)||0)-(parseInt(b(h).css(&quot;paddingRight&quot;),10)||0)-this.helperProportions.width-this.margins.left,g.top+(a?Math.max(h.scrollHeight,h.offsetHeight):h.offsetHeight)-(parseInt(b(h).css(&quot;borderTopWidth&quot;),10)||0)-(parseInt(b(h).css(&quot;paddingBottom&quot;),10)||0)-this.helperProportions.height-this.margins.top]}else{if(f.containment.constructor==Array){this.containment=f.containment}}},_convertPositionTo:function(k,d){if(!d){d=this.position}var m=k==&quot;absolute&quot;?1:-1;var l=this.options,a=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,j=(/(html|body)/i).test(a[0].tagName);return{top:(d.top+this.offset.relative.top*m+this.offset.parent.top*m-(b.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():(j?0:a.scrollTop()))*m)),left:(d.left+this.offset.relative.left*m+this.offset.parent.left*m-(b.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():j?0:a.scrollLeft())*m))}},_generatePosition:function(n){var k=this.options,a=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,j=(/(html|body)/i).test(a[0].tagName);if(this.cssPosition==&quot;relative&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var o=n.pageX;var p=n.pageY;if(this.originalPosition){if(this.containment){if(n.pageX-this.offset.click.left&lt;this.containment[0]){o=this.containment[0]+this.offset.click.left}if(n.pageY-this.offset.click.top&lt;this.containment[1]){p=this.containment[1]+this.offset.click.top}if(n.pageX-this.offset.click.left&gt;this.containment[2]){o=this.containment[2]+this.offset.click.left}if(n.pageY-this.offset.click.top&gt;this.containment[3]){p=this.containment[3]+this.offset.click.top}}if(k.grid){var l=this.originalPageY+Math.round((p-this.originalPageY)/k.grid[1])*k.grid[1];p=this.containment?(!(l-this.offset.click.top&lt;this.containment[1]||l-this.offset.click.top&gt;this.containment[3])?l:(!(l-this.offset.click.top&lt;this.containment[1])?l-k.grid[1]:l+k.grid[1])):l;var m=this.originalPageX+Math.round((o-this.originalPageX)/k.grid[0])*k.grid[0];o=this.containment?(!(m-this.offset.click.left&lt;this.containment[0]||m-this.offset.click.left&gt;this.containment[2])?m:(!(m-this.offset.click.left&lt;this.containment[0])?m-k.grid[0]:m+k.grid[0])):m}}return{top:(p-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():(j?0:a.scrollTop())))),left:(o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():j?0:a.scrollLeft())))}},_clear:function(){this.helper.removeClass(&quot;ui-draggable-dragging&quot;);if(this.helper[0]!=this.element[0]&amp;&amp;!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},_trigger:function(a,f,e){e=e||this._uiHash();b.ui.plugin.call(this,a,[f,e]);if(a==&quot;drag&quot;){this.positionAbs=this._convertPositionTo(&quot;absolute&quot;)}return b.widget.prototype._trigger.call(this,a,f,e)},plugins:{},_uiHash:function(a){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));b.extend(b.ui.draggable,{version:&quot;1.7.1&quot;,eventPrefix:&quot;drag&quot;,defaults:{addClasses:true,appendTo:&quot;parent&quot;,axis:false,cancel:&quot;:input,option&quot;,connectToSortable:false,containment:false,cursor:&quot;auto&quot;,cursorAt:false,delay:0,distance:1,grid:false,handle:false,helper:&quot;original&quot;,iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:&quot;default&quot;,scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:&quot;both&quot;,snapTolerance:20,stack:false,zIndex:false}});b.ui.plugin.add(&quot;draggable&quot;,&quot;connectToSortable&quot;,{start:function(k,h){var j=b(this).data(&quot;draggable&quot;),g=j.options,a=b.extend({},h,{item:j.element});j.sortables=[];b(g.connectToSortable).each(function(){var c=b.data(this,&quot;sortable&quot;);if(c&amp;&amp;!c.options.disabled){j.sortables.push({instance:c,shouldRevert:c.options.revert});c._refreshItems();c._trigger(&quot;activate&quot;,k,a)}})},stop:function(h,f){var g=b(this).data(&quot;draggable&quot;),a=b.extend({},f,{item:g.element});b.each(g.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;g.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(h);this.instance.options.helper=this.instance.options._helper;if(g.options.helper==&quot;original&quot;){this.instance.currentItem.css({top:&quot;auto&quot;,left:&quot;auto&quot;})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger(&quot;deactivate&quot;,h,a)}})},drag:function(k,g){var h=b(this).data(&quot;draggable&quot;),a=this;var j=function(r){var d=this.offset.click.top,e=this.offset.click.left;var v=this.positionAbs.top,o=this.positionAbs.left;var q=r.height,f=r.width;var c=r.top,u=r.left;return b.ui.isOver(v+d,o+e,c,u,q,f)};b.each(h.sortables,function(c){this.instance.positionAbs=h.positionAbs;this.instance.helperProportions=h.helperProportions;this.instance.offset.click=h.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=b(a).clone().appendTo(this.instance.element).data(&quot;sortable-item&quot;,true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return g.helper[0]};k.target=this.instance.currentItem[0];this.instance._mouseCapture(k,true);this.instance._mouseStart(k,true,true);this.instance.offset.click.top=h.offset.click.top;this.instance.offset.click.left=h.offset.click.left;this.instance.offset.parent.left-=h.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=h.offset.parent.top-this.instance.offset.parent.top;h._trigger(&quot;toSortable&quot;,k);h.dropped=this.instance.element;h.currentItem=h.element;this.instance.fromOutside=h}if(this.instance.currentItem){this.instance._mouseDrag(k)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger(&quot;out&quot;,k,this.instance._uiHash(this.instance));this.instance._mouseStop(k,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}h._trigger(&quot;fromSortable&quot;,k);h.dropped=false}}})}});b.ui.plugin.add(&quot;draggable&quot;,&quot;cursor&quot;,{start:function(h,g){var a=b(&quot;body&quot;),f=b(this).data(&quot;draggable&quot;).options;if(a.css(&quot;cursor&quot;)){f._cursor=a.css(&quot;cursor&quot;)}a.css(&quot;cursor&quot;,f.cursor)},stop:function(a,f){var e=b(this).data(&quot;draggable&quot;).options;if(e._cursor){b(&quot;body&quot;).css(&quot;cursor&quot;,e._cursor)}}});b.ui.plugin.add(&quot;draggable&quot;,&quot;iframeFix&quot;,{start:function(a,f){var e=b(this).data(&quot;draggable&quot;).options;b(e.iframeFix===true?&quot;iframe&quot;:e.iframeFix).each(function(){b('&lt;div class=&quot;ui-draggable-iframeFix&quot; style=&quot;background: #fff;&quot;&gt;&lt;/div&gt;').css({width:this.offsetWidth+&quot;px&quot;,height:this.offsetHeight+&quot;px&quot;,position:&quot;absolute&quot;,opacity:&quot;0.001&quot;,zIndex:1000}).css(b(this).offset()).appendTo(&quot;body&quot;)})},stop:function(a,d){b(&quot;div.ui-draggable-iframeFix&quot;).each(function(){this.parentNode.removeChild(this)})}});b.ui.plugin.add(&quot;draggable&quot;,&quot;opacity&quot;,{start:function(h,g){var a=b(g.helper),f=b(this).data(&quot;draggable&quot;).options;if(a.css(&quot;opacity&quot;)){f._opacity=a.css(&quot;opacity&quot;)}a.css(&quot;opacity&quot;,f.opacity)},stop:function(a,f){var e=b(this).data(&quot;draggable&quot;).options;if(e._opacity){b(f.helper).css(&quot;opacity&quot;,e._opacity)}}});b.ui.plugin.add(&quot;draggable&quot;,&quot;scroll&quot;,{start:function(f,e){var a=b(this).data(&quot;draggable&quot;);if(a.scrollParent[0]!=document&amp;&amp;a.scrollParent[0].tagName!=&quot;HTML&quot;){a.overflowOffset=a.scrollParent.offset()}},drag:function(j,h){var k=b(this).data(&quot;draggable&quot;),g=k.options,a=false;if(k.scrollParent[0]!=document&amp;&amp;k.scrollParent[0].tagName!=&quot;HTML&quot;){if(!g.axis||g.axis!=&quot;x&quot;){if((k.overflowOffset.top+k.scrollParent[0].offsetHeight)-j.pageY&lt;g.scrollSensitivity){k.scrollParent[0].scrollTop=a=k.scrollParent[0].scrollTop+g.scrollSpeed}else{if(j.pageY-k.overflowOffset.top&lt;g.scrollSensitivity){k.scrollParent[0].scrollTop=a=k.scrollParent[0].scrollTop-g.scrollSpeed}}}if(!g.axis||g.axis!=&quot;y&quot;){if((k.overflowOffset.left+k.scrollParent[0].offsetWidth)-j.pageX&lt;g.scrollSensitivity){k.scrollParent[0].scrollLeft=a=k.scrollParent[0].scrollLeft+g.scrollSpeed}else{if(j.pageX-k.overflowOffset.left&lt;g.scrollSensitivity){k.scrollParent[0].scrollLeft=a=k.scrollParent[0].scrollLeft-g.scrollSpeed}}}}else{if(!g.axis||g.axis!=&quot;x&quot;){if(j.pageY-b(document).scrollTop()&lt;g.scrollSensitivity){a=b(document).scrollTop(b(document).scrollTop()-g.scrollSpeed)}else{if(b(window).height()-(j.pageY-b(document).scrollTop())&lt;g.scrollSensitivity){a=b(document).scrollTop(b(document).scrollTop()+g.scrollSpeed)}}}if(!g.axis||g.axis!=&quot;y&quot;){if(j.pageX-b(document).scrollLeft()&lt;g.scrollSensitivity){a=b(document).scrollLeft(b(document).scrollLeft()-g.scrollSpeed)}else{if(b(window).width()-(j.pageX-b(document).scrollLeft())&lt;g.scrollSensitivity){a=b(document).scrollLeft(b(document).scrollLeft()+g.scrollSpeed)}}}}if(a!==false&amp;&amp;b.ui.ddmanager&amp;&amp;!g.dropBehaviour){b.ui.ddmanager.prepareOffsets(k,j)}}});b.ui.plugin.add(&quot;draggable&quot;,&quot;snap&quot;,{start:function(h,g){var a=b(this).data(&quot;draggable&quot;),f=a.options;a.snapElements=[];b(f.snap.constructor!=String?(f.snap.items||&quot;:data(draggable)&quot;):f.snap).each(function(){var c=b(this);var d=c.offset();if(this!=a.element[0]){a.snapElements.push({item:this,width:c.outerWidth(),height:c.outerHeight(),top:d.top,left:d.left})}})},drag:function(B,F){var L=b(this).data(&quot;draggable&quot;),D=L.options;var d=D.snapTolerance;var l=F.offset.left,o=l+L.helperProportions.width,M=F.offset.top,N=M+L.helperProportions.height;for(var r=L.snapElements.length-1;r&gt;=0;r--){var C=L.snapElements[r].left,G=C+L.snapElements[r].width,H=L.snapElements[r].top,E=H+L.snapElements[r].height;if(!((C-d&lt;l&amp;&amp;l&lt;G+d&amp;&amp;H-d&lt;M&amp;&amp;M&lt;E+d)||(C-d&lt;l&amp;&amp;l&lt;G+d&amp;&amp;H-d&lt;N&amp;&amp;N&lt;E+d)||(C-d&lt;o&amp;&amp;o&lt;G+d&amp;&amp;H-d&lt;M&amp;&amp;M&lt;E+d)||(C-d&lt;o&amp;&amp;o&lt;G+d&amp;&amp;H-d&lt;N&amp;&amp;N&lt;E+d))){if(L.snapElements[r].snapping){(L.options.snap.release&amp;&amp;L.options.snap.release.call(L.element,B,b.extend(L._uiHash(),{snapItem:L.snapElements[r].item})))}L.snapElements[r].snapping=false;continue}if(D.snapMode!=&quot;inner&quot;){var O=Math.abs(H-N)&lt;=d;var a=Math.abs(E-M)&lt;=d;var J=Math.abs(C-o)&lt;=d;var I=Math.abs(G-l)&lt;=d;if(O){F.position.top=L._convertPositionTo(&quot;relative&quot;,{top:H-L.helperProportions.height,left:0}).top-L.margins.top}if(a){F.position.top=L._convertPositionTo(&quot;relative&quot;,{top:E,left:0}).top-L.margins.top}if(J){F.position.left=L._convertPositionTo(&quot;relative&quot;,{top:0,left:C-L.helperProportions.width}).left-L.margins.left}if(I){F.position.left=L._convertPositionTo(&quot;relative&quot;,{top:0,left:G}).left-L.margins.left}}var K=(O||a||J||I);if(D.snapMode!=&quot;outer&quot;){var O=Math.abs(H-M)&lt;=d;var a=Math.abs(E-N)&lt;=d;var J=Math.abs(C-l)&lt;=d;var I=Math.abs(G-o)&lt;=d;if(O){F.position.top=L._convertPositionTo(&quot;relative&quot;,{top:H,left:0}).top-L.margins.top}if(a){F.position.top=L._convertPositionTo(&quot;relative&quot;,{top:E-L.helperProportions.height,left:0}).top-L.margins.top}if(J){F.position.left=L._convertPositionTo(&quot;relative&quot;,{top:0,left:C}).left-L.margins.left}if(I){F.position.left=L._convertPositionTo(&quot;relative&quot;,{top:0,left:G-L.helperProportions.width}).left-L.margins.left}}if(!L.snapElements[r].snapping&amp;&amp;(O||a||J||I||K)){(L.options.snap.snap&amp;&amp;L.options.snap.snap.call(L.element,B,b.extend(L._uiHash(),{snapItem:L.snapElements[r].item})))}L.snapElements[r].snapping=(O||a||J||I||K)}}});b.ui.plugin.add(&quot;draggable&quot;,&quot;stack&quot;,{start:function(a,h){var f=b(this).data(&quot;draggable&quot;).options;var g=b.makeArray(b(f.stack.group)).sort(function(c,d){return(parseInt(b(c).css(&quot;zIndex&quot;),10)||f.stack.min)-(parseInt(b(d).css(&quot;zIndex&quot;),10)||f.stack.min)});b(g).each(function(c){this.style.zIndex=f.stack.min+c});this[0].style.zIndex=f.stack.min+g.length}});b.ui.plugin.add(&quot;draggable&quot;,&quot;zIndex&quot;,{start:function(h,g){var a=b(g.helper),f=b(this).data(&quot;draggable&quot;).options;if(a.css(&quot;zIndex&quot;)){f._zIndex=a.css(&quot;zIndex&quot;)}a.css(&quot;zIndex&quot;,f.zIndex)},stop:function(a,f){var e=b(this).data(&quot;draggable&quot;).options;if(e._zIndex){b(f.helper).css(&quot;zIndex&quot;,e._zIndex)}}})})(jQuery);(function(b){b.widget(&quot;ui.droppable&quot;,{_init:function(){var d=this.options,a=d.accept;this.isover=0;this.isout=1;this.options.accept=this.options.accept&amp;&amp;b.isFunction(this.options.accept)?this.options.accept:function(c){return c.is(a)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};b.ui.ddmanager.droppables[this.options.scope]=b.ui.ddmanager.droppables[this.options.scope]||[];b.ui.ddmanager.droppables[this.options.scope].push(this);(this.options.addClasses&amp;&amp;this.element.addClass(&quot;ui-droppable&quot;))},destroy:function(){var a=b.ui.ddmanager.droppables[this.options.scope];for(var d=0;d&lt;a.length;d++){if(a[d]==this){a.splice(d,1)}}this.element.removeClass(&quot;ui-droppable ui-droppable-disabled&quot;).removeData(&quot;droppable&quot;).unbind(&quot;.droppable&quot;)},_setData:function(a,d){if(a==&quot;accept&quot;){this.options.accept=d&amp;&amp;b.isFunction(d)?d:function(c){return c.is(d)}}else{b.widget.prototype._setData.apply(this,arguments)}},_activate:function(d){var a=b.ui.ddmanager.current;if(this.options.activeClass){this.element.addClass(this.options.activeClass)}(a&amp;&amp;this._trigger(&quot;activate&quot;,d,this.ui(a)))},_deactivate:function(d){var a=b.ui.ddmanager.current;if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}(a&amp;&amp;this._trigger(&quot;deactivate&quot;,d,this.ui(a)))},_over:function(d){var a=b.ui.ddmanager.current;if(!a||(a.currentItem||a.element)[0]==this.element[0]){return}if(this.options.accept.call(this.element[0],(a.currentItem||a.element))){if(this.options.hoverClass){this.element.addClass(this.options.hoverClass)}this._trigger(&quot;over&quot;,d,this.ui(a))}},_out:function(d){var a=b.ui.ddmanager.current;if(!a||(a.currentItem||a.element)[0]==this.element[0]){return}if(this.options.accept.call(this.element[0],(a.currentItem||a.element))){if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger(&quot;out&quot;,d,this.ui(a))}},_drop:function(h,g){var a=g||b.ui.ddmanager.current;if(!a||(a.currentItem||a.element)[0]==this.element[0]){return false}var f=false;this.element.find(&quot;:data(droppable)&quot;).not(&quot;.ui-draggable-dragging&quot;).each(function(){var c=b.data(this,&quot;droppable&quot;);if(c.options.greedy&amp;&amp;b.ui.intersect(a,b.extend(c,{offset:c.element.offset()}),c.options.tolerance)){f=true;return false}});if(f){return false}if(this.options.accept.call(this.element[0],(a.currentItem||a.element))){if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger(&quot;drop&quot;,h,this.ui(a));return this.element}return false},ui:function(a){return{draggable:(a.currentItem||a.element),helper:a.helper,position:a.position,absolutePosition:a.positionAbs,offset:a.positionAbs}}});b.extend(b.ui.droppable,{version:&quot;1.7.1&quot;,eventPrefix:&quot;drop&quot;,defaults:{accept:&quot;*&quot;,activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:&quot;default&quot;,tolerance:&quot;intersect&quot;}});b.ui.intersect=function(a,x,r){if(!x.offset){return false}var C=(a.positionAbs||a.position.absolute).left,D=C+a.helperProportions.width,u=(a.positionAbs||a.position.absolute).top,v=u+a.helperProportions.height;var A=x.offset.left,E=A+x.proportions.width,l=x.offset.top,w=l+x.proportions.height;switch(r){case&quot;fit&quot;:return(A&lt;C&amp;&amp;D&lt;E&amp;&amp;l&lt;u&amp;&amp;v&lt;w);break;case&quot;intersect&quot;:return(A&lt;C+(a.helperProportions.width/2)&amp;&amp;D-(a.helperProportions.width/2)&lt;E&amp;&amp;l&lt;u+(a.helperProportions.height/2)&amp;&amp;v-(a.helperProportions.height/2)&lt;w);break;case&quot;pointer&quot;:var z=((a.positionAbs||a.position.absolute).left+(a.clickOffset||a.offset.click).left),y=((a.positionAbs||a.position.absolute).top+(a.clickOffset||a.offset.click).top),B=b.ui.isOver(y,z,l,A,x.proportions.height,x.proportions.width);return B;break;case&quot;touch&quot;:return((u&gt;=l&amp;&amp;u&lt;=w)||(v&gt;=l&amp;&amp;v&lt;=w)||(u&lt;l&amp;&amp;v&gt;w))&amp;&amp;((C&gt;=A&amp;&amp;C&lt;=E)||(D&gt;=A&amp;&amp;D&lt;=E)||(C&lt;A&amp;&amp;D&gt;E));break;default:return false;break}};b.ui.ddmanager={current:null,droppables:{&quot;default&quot;:[]},prepareOffsets:function(m,k){var a=b.ui.ddmanager.droppables[m.options.scope];var l=k?k.type:null;var j=(m.currentItem||m.element).find(&quot;:data(droppable)&quot;).andSelf();droppablesLoop:for(var n=0;n&lt;a.length;n++){if(a[n].options.disabled||(m&amp;&amp;!a[n].options.accept.call(a[n].element[0],(m.currentItem||m.element)))){continue}for(var o=0;o&lt;j.length;o++){if(j[o]==a[n].element[0]){a[n].proportions.height=0;continue droppablesLoop}}a[n].visible=a[n].element.css(&quot;display&quot;)!=&quot;none&quot;;if(!a[n].visible){continue}a[n].offset=a[n].element.offset();a[n].proportions={width:a[n].element[0].offsetWidth,height:a[n].element[0].offsetHeight};if(l==&quot;mousedown&quot;){a[n]._activate.call(a[n],k)}}},drop:function(a,f){var e=false;b.each(b.ui.ddmanager.droppables[a.options.scope],function(){if(!this.options){return}if(!this.options.disabled&amp;&amp;this.visible&amp;&amp;b.ui.intersect(a,this,this.options.tolerance)){e=this._drop.call(this,f)}if(!this.options.disabled&amp;&amp;this.visible&amp;&amp;this.options.accept.call(this.element[0],(a.currentItem||a.element))){this.isout=1;this.isover=0;this._deactivate.call(this,f)}});return e},drag:function(a,d){if(a.options.refreshPositions){b.ui.ddmanager.prepareOffsets(a,d)}b.each(b.ui.ddmanager.droppables[a.options.scope],function(){if(this.options.disabled||this.greedyChild||!this.visible){return}var j=b.ui.intersect(a,this,this.options.tolerance);var c=!j&amp;&amp;this.isover==1?&quot;isout&quot;:(j&amp;&amp;this.isover==0?&quot;isover&quot;:null);if(!c){return}var h;if(this.options.greedy){var k=this.element.parents(&quot;:data(droppable):eq(0)&quot;);if(k.length){h=b.data(k[0],&quot;droppable&quot;);h.greedyChild=(c==&quot;isover&quot;?1:0)}}if(h&amp;&amp;c==&quot;isover&quot;){h.isover=0;h.isout=1;h._out.call(h,d)}this[c]=1;this[c==&quot;isout&quot;?&quot;isover&quot;:&quot;isout&quot;]=0;this[c==&quot;isover&quot;?&quot;_over&quot;:&quot;_out&quot;].call(this,d);if(h&amp;&amp;c==&quot;isout&quot;){h.isout=0;h.isover=1;h._over.call(h,d)}})}}})(jQuery);(function(f){f.widget(&quot;ui.resizable&quot;,f.extend({},f.ui.mouse,{_init:function(){var n=this,b=this.options;this.element.addClass(&quot;ui-resizable&quot;);f.extend(this,{_aspectRatio:!!(b.aspectRatio),aspectRatio:b.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:b.helper||b.ghost||b.animate?b.helper||&quot;ui-resizable-helper&quot;:null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){if(/relative/.test(this.element.css(&quot;position&quot;))&amp;&amp;f.browser.opera){this.element.css({position:&quot;relative&quot;,top:&quot;auto&quot;,left:&quot;auto&quot;})}this.element.wrap(f('&lt;div class=&quot;ui-wrapper&quot; style=&quot;overflow: hidden;&quot;&gt;&lt;/div&gt;').css({position:this.element.css(&quot;position&quot;),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css(&quot;top&quot;),left:this.element.css(&quot;left&quot;)}));this.element=this.element.parent().data(&quot;resizable&quot;,this.element.data(&quot;resizable&quot;));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css(&quot;marginLeft&quot;),marginTop:this.originalElement.css(&quot;marginTop&quot;),marginRight:this.originalElement.css(&quot;marginRight&quot;),marginBottom:this.originalElement.css(&quot;marginBottom&quot;)});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css(&quot;resize&quot;);this.originalElement.css(&quot;resize&quot;,&quot;none&quot;);this._proportionallyResizeElements.push(this.originalElement.css({position:&quot;static&quot;,zoom:1,display:&quot;block&quot;}));this.originalElement.css({margin:this.originalElement.css(&quot;margin&quot;)});this._proportionallyResize()}this.handles=b.handles||(!f(&quot;.ui-resizable-handle&quot;,this.element).length?&quot;e,s,se&quot;:{n:&quot;.ui-resizable-n&quot;,e:&quot;.ui-resizable-e&quot;,s:&quot;.ui-resizable-s&quot;,w:&quot;.ui-resizable-w&quot;,se:&quot;.ui-resizable-se&quot;,sw:&quot;.ui-resizable-sw&quot;,ne:&quot;.ui-resizable-ne&quot;,nw:&quot;.ui-resizable-nw&quot;});if(this.handles.constructor==String){if(this.handles==&quot;all&quot;){this.handles=&quot;n,e,s,w,se,sw,ne,nw&quot;}var a=this.handles.split(&quot;,&quot;);this.handles={};for(var m=0;m&lt;a.length;m++){var c=f.trim(a[m]),o=&quot;ui-resizable-&quot;+c;var l=f('&lt;div class=&quot;ui-resizable-handle '+o+'&quot;&gt;&lt;/div&gt;');if(/sw|se|ne|nw/.test(c)){l.css({zIndex:++b.zIndex})}if(&quot;se&quot;==c){l.addClass(&quot;ui-icon ui-icon-gripsmall-diagonal-se&quot;)}this.handles[c]=&quot;.ui-resizable-&quot;+c;this.element.append(l)}}this._renderAxis=function(j){j=j||this.element;for(var g in this.handles){if(this.handles[g].constructor==String){this.handles[g]=f(this.handles[g],this.element).show()}if(this.elementIsWrapper&amp;&amp;this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var q=f(this.handles[g],this.element),k=0;k=/sw|ne|nw|se|n|s/.test(g)?q.outerHeight():q.outerWidth();var h=[&quot;padding&quot;,/ne|nw|n/.test(g)?&quot;Top&quot;:/se|sw|s/.test(g)?&quot;Bottom&quot;:/^e$/.test(g)?&quot;Right&quot;:&quot;Left&quot;].join(&quot;&quot;);j.css(h,k);this._proportionallyResize()}if(!f(this.handles[g]).length){continue}}};this._renderAxis(this.element);this._handles=f(&quot;.ui-resizable-handle&quot;,this.element).disableSelection();this._handles.mouseover(function(){if(!n.resizing){if(this.className){var g=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}n.axis=g&amp;&amp;g[1]?g[1]:&quot;se&quot;}});if(b.autoHide){this._handles.hide();f(this.element).addClass(&quot;ui-resizable-autohide&quot;).hover(function(){f(this).removeClass(&quot;ui-resizable-autohide&quot;);n._handles.show()},function(){if(!n.resizing){f(this).addClass(&quot;ui-resizable-autohide&quot;);n._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var b=function(c){f(c).removeClass(&quot;ui-resizable ui-resizable-disabled ui-resizable-resizing&quot;).removeData(&quot;resizable&quot;).unbind(&quot;.resizable&quot;).find(&quot;.ui-resizable-handle&quot;).remove()};if(this.elementIsWrapper){b(this.element);var a=this.element;a.parent().append(this.originalElement.css({position:a.css(&quot;position&quot;),width:a.outerWidth(),height:a.outerHeight(),top:a.css(&quot;top&quot;),left:a.css(&quot;left&quot;)})).end().remove()}this.originalElement.css(&quot;resize&quot;,this.originalResizeStyle);b(this.originalElement)},_mouseCapture:function(b){var a=false;for(var c in this.handles){if(f(this.handles[c])[0]==b.target){a=true}}return this.options.disabled||!!a},_mouseStart:function(l){var b=this.options,m=this.element.position(),n=this.element;this.resizing=true;this.documentScroll={top:f(document).scrollTop(),left:f(document).scrollLeft()};if(n.is(&quot;.ui-draggable&quot;)||(/absolute/).test(n.css(&quot;position&quot;))){n.css({position:&quot;absolute&quot;,top:m.top,left:m.left})}if(f.browser.opera&amp;&amp;(/relative/).test(n.css(&quot;position&quot;))){n.css({position:&quot;relative&quot;,top:&quot;auto&quot;,left:&quot;auto&quot;})}this._renderProxy();var a=d(this.helper.css(&quot;left&quot;)),k=d(this.helper.css(&quot;top&quot;));if(b.containment){a+=f(b.containment).scrollLeft()||0;k+=f(b.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:a,top:k};this.size=this._helper?{width:n.outerWidth(),height:n.outerHeight()}:{width:n.width(),height:n.height()};this.originalSize=this._helper?{width:n.outerWidth(),height:n.outerHeight()}:{width:n.width(),height:n.height()};this.originalPosition={left:a,top:k};this.sizeDiff={width:n.outerWidth()-n.width(),height:n.outerHeight()-n.height()};this.originalMousePosition={left:l.pageX,top:l.pageY};this.aspectRatio=(typeof b.aspectRatio==&quot;number&quot;)?b.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);var c=f(&quot;.ui-resizable-&quot;+this.axis).css(&quot;cursor&quot;);f(&quot;body&quot;).css(&quot;cursor&quot;,c==&quot;auto&quot;?this.axis+&quot;-resize&quot;:c);n.addClass(&quot;ui-resizable-resizing&quot;);this._propagate(&quot;start&quot;,l);return true},_mouseDrag:function(B){var y=this.helper,z=this.options,r={},b=this,w=this.originalMousePosition,o=this.axis;var a=(B.pageX-w.left)||0,c=(B.pageY-w.top)||0;var x=this._change[o];if(!x){return false}var u=x.apply(this,[B,a,c]),v=f.browser.msie&amp;&amp;f.browser.version&lt;7,A=this.sizeDiff;if(this._aspectRatio||B.shiftKey){u=this._updateRatio(u,B)}u=this._respectSize(u,B);this._propagate(&quot;resize&quot;,B);y.css({top:this.position.top+&quot;px&quot;,left:this.position.left+&quot;px&quot;,width:this.size.width+&quot;px&quot;,height:this.size.height+&quot;px&quot;});if(!this._helper&amp;&amp;this._proportionallyResizeElements.length){this._proportionallyResize()}this._updateCache(u);this._trigger(&quot;resize&quot;,B,this.ui());return false},_mouseStop:function(q){this.resizing=false;var p=this.options,b=this;if(this._helper){var r=this._proportionallyResizeElements,v=r.length&amp;&amp;(/textarea/i).test(r[0].nodeName),u=v&amp;&amp;f.ui.hasScroll(r[0],&quot;left&quot;)?0:b.sizeDiff.height,n=v?0:b.sizeDiff.width;var a={width:(b.size.width-n),height:(b.size.height-u)},o=(parseInt(b.element.css(&quot;left&quot;),10)+(b.position.left-b.originalPosition.left))||null,c=(parseInt(b.element.css(&quot;top&quot;),10)+(b.position.top-b.originalPosition.top))||null;if(!p.animate){this.element.css(f.extend(a,{top:c,left:o}))}b.helper.height(b.size.height);b.helper.width(b.size.width);if(this._helper&amp;&amp;!p.animate){this._proportionallyResize()}}f(&quot;body&quot;).css(&quot;cursor&quot;,&quot;auto&quot;);this.element.removeClass(&quot;ui-resizable-resizing&quot;);this._propagate(&quot;stop&quot;,q);if(this._helper){this.helper.remove()}return false},_updateCache:function(b){var a=this.options;this.offset=this.helper.offset();if(e(b.left)){this.position.left=b.left}if(e(b.top)){this.position.top=b.top}if(e(b.height)){this.size.height=b.height}if(e(b.width)){this.size.width=b.width}},_updateRatio:function(c,j){var b=this.options,a=this.position,k=this.size,l=this.axis;if(c.height){c.width=(k.height*this.aspectRatio)}else{if(c.width){c.height=(k.width/this.aspectRatio)}}if(l==&quot;sw&quot;){c.left=a.left+(k.width-c.width);c.top=null}if(l==&quot;nw&quot;){c.top=a.top+(k.height-c.height);c.left=a.left+(k.width-c.width)}return c},_respectSize:function(w,B){var y=this.helper,z=this.options,b=this._aspectRatio||B.shiftKey,c=this.axis,E=e(w.width)&amp;&amp;z.maxWidth&amp;&amp;(z.maxWidth&lt;w.width),v=e(w.height)&amp;&amp;z.maxHeight&amp;&amp;(z.maxHeight&lt;w.height),A=e(w.width)&amp;&amp;z.minWidth&amp;&amp;(z.minWidth&gt;w.width),a=e(w.height)&amp;&amp;z.minHeight&amp;&amp;(z.minHeight&gt;w.height);if(A){w.width=z.minWidth}if(a){w.height=z.minHeight}if(E){w.width=z.maxWidth}if(v){w.height=z.maxHeight}var C=this.originalPosition.left+this.originalSize.width,o=this.position.top+this.size.height;var x=/sw|nw|w/.test(c),D=/nw|ne|n/.test(c);if(A&amp;&amp;x){w.left=C-z.minWidth}if(E&amp;&amp;x){w.left=C-z.maxWidth}if(a&amp;&amp;D){w.top=o-z.minHeight}if(v&amp;&amp;D){w.top=o-z.maxHeight}var u=!w.width&amp;&amp;!w.height;if(u&amp;&amp;!w.left&amp;&amp;w.top){w.top=null}else{if(u&amp;&amp;!w.top&amp;&amp;w.left){w.left=null}}return w},_proportionallyResize:function(){var a=this.options;if(!this._proportionallyResizeElements.length){return}var k=this.helper||this.element;for(var l=0;l&lt;this._proportionallyResizeElements.length;l++){var c=this._proportionallyResizeElements[l];if(!this.borderDif){var m=[c.css(&quot;borderTopWidth&quot;),c.css(&quot;borderRightWidth&quot;),c.css(&quot;borderBottomWidth&quot;),c.css(&quot;borderLeftWidth&quot;)],b=[c.css(&quot;paddingTop&quot;),c.css(&quot;paddingRight&quot;),c.css(&quot;paddingBottom&quot;),c.css(&quot;paddingLeft&quot;)];this.borderDif=f.map(m,function(j,g){var h=parseInt(j,10)||0,o=parseInt(b[g],10)||0;return h+o})}if(f.browser.msie&amp;&amp;!(!(f(k).is(&quot;:hidden&quot;)||f(k).parents(&quot;:hidden&quot;).length))){continue}c.css({height:(k.height()-this.borderDif[0]-this.borderDif[2])||0,width:(k.width()-this.borderDif[1]-this.borderDif[3])||0})}},_renderProxy:function(){var j=this.element,a=this.options;this.elementOffset=j.offset();if(this._helper){this.helper=this.helper||f('&lt;div style=&quot;overflow:hidden;&quot;&gt;&lt;/div&gt;');var k=f.browser.msie&amp;&amp;f.browser.version&lt;7,c=(k?1:0),b=(k?2:-1);this.helper.addClass(this._helper).css({width:this.element.outerWidth()+b,height:this.element.outerHeight()+b,position:&quot;absolute&quot;,left:this.elementOffset.left-c+&quot;px&quot;,top:this.elementOffset.top-c+&quot;px&quot;,zIndex:++a.zIndex});this.helper.appendTo(&quot;body&quot;).disableSelection()}else{this.helper=this.element}},_change:{e:function(a,b,c){return{width:this.originalSize.width+b}},w:function(c,k,l){var a=this.options,j=this.originalSize,b=this.originalPosition;return{left:b.left+k,width:j.width-k}},n:function(c,k,l){var a=this.options,j=this.originalSize,b=this.originalPosition;return{top:b.top+l,height:j.height-l}},s:function(a,b,c){return{height:this.originalSize.height+c}},se:function(a,b,c){return f.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[a,b,c]))},sw:function(a,b,c){return f.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[a,b,c]))},ne:function(a,b,c){return f.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[a,b,c]))},nw:function(a,b,c){return f.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[a,b,c]))}},_propagate:function(a,b){f.ui.plugin.call(this,a,[b,this.ui()]);(a!=&quot;resize&quot;&amp;&amp;this._trigger(a,b,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}}}));f.extend(f.ui.resizable,{version:&quot;1.7.1&quot;,eventPrefix:&quot;resize&quot;,defaults:{alsoResize:false,animate:false,animateDuration:&quot;slow&quot;,animateEasing:&quot;swing&quot;,aspectRatio:false,autoHide:false,cancel:&quot;:input,option&quot;,containment:false,delay:0,distance:1,ghost:false,grid:false,handles:&quot;e,s,se&quot;,helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000}});f.ui.plugin.add(&quot;resizable&quot;,&quot;alsoResize&quot;,{start:function(c,b){var h=f(this).data(&quot;resizable&quot;),a=h.options;_store=function(g){f(g).each(function(){f(this).data(&quot;resizable-alsoresize&quot;,{width:parseInt(f(this).width(),10),height:parseInt(f(this).height(),10),left:parseInt(f(this).css(&quot;left&quot;),10),top:parseInt(f(this).css(&quot;top&quot;),10)})})};if(typeof(a.alsoResize)==&quot;object&quot;&amp;&amp;!a.alsoResize.parentNode){if(a.alsoResize.length){a.alsoResize=a.alsoResize[0];_store(a.alsoResize)}else{f.each(a.alsoResize,function(j,g){_store(j)})}}else{_store(a.alsoResize)}},resize:function(n,l){var o=f(this).data(&quot;resizable&quot;),c=o.options,m=o.originalSize,a=o.originalPosition;var b={height:(o.size.height-m.height)||0,width:(o.size.width-m.width)||0,top:(o.position.top-a.top)||0,left:(o.position.left-a.left)||0},p=function(h,g){f(h).each(function(){var k=f(this),j=f(this).data(&quot;resizable-alsoresize&quot;),r={},u=g&amp;&amp;g.length?g:[&quot;width&quot;,&quot;height&quot;,&quot;top&quot;,&quot;left&quot;];f.each(u||[&quot;width&quot;,&quot;height&quot;,&quot;top&quot;,&quot;left&quot;],function(w,q){var v=(j[q]||0)+(b[q]||0);if(v&amp;&amp;v&gt;=0){r[q]=v||null}});if(/relative/.test(k.css(&quot;position&quot;))&amp;&amp;f.browser.opera){o._revertToRelativePosition=true;k.css({position:&quot;absolute&quot;,top:&quot;auto&quot;,left:&quot;auto&quot;})}k.css(r)})};if(typeof(c.alsoResize)==&quot;object&quot;&amp;&amp;!c.alsoResize.nodeType){f.each(c.alsoResize,function(h,g){p(h,g)})}else{p(c.alsoResize)}},stop:function(b,a){var c=f(this).data(&quot;resizable&quot;);if(c._revertToRelativePosition&amp;&amp;f.browser.opera){c._revertToRelativePosition=false;el.css({position:&quot;relative&quot;})}f(this).removeData(&quot;resizable-alsoresize-start&quot;)}});f.ui.plugin.add(&quot;resizable&quot;,&quot;animate&quot;,{stop:function(r,b){var a=f(this).data(&quot;resizable&quot;),q=a.options;var u=a._proportionallyResizeElements,x=u.length&amp;&amp;(/textarea/i).test(u[0].nodeName),w=x&amp;&amp;f.ui.hasScroll(u[0],&quot;left&quot;)?0:a.sizeDiff.height,o=x?0:a.sizeDiff.width;var v={width:(a.size.width-o),height:(a.size.height-w)},p=(parseInt(a.element.css(&quot;left&quot;),10)+(a.position.left-a.originalPosition.left))||null,c=(parseInt(a.element.css(&quot;top&quot;),10)+(a.position.top-a.originalPosition.top))||null;a.element.animate(f.extend(v,c&amp;&amp;p?{top:c,left:p}:{}),{duration:q.animateDuration,easing:q.animateEasing,step:function(){var g={width:parseInt(a.element.css(&quot;width&quot;),10),height:parseInt(a.element.css(&quot;height&quot;),10),top:parseInt(a.element.css(&quot;top&quot;),10),left:parseInt(a.element.css(&quot;left&quot;),10)};if(u&amp;&amp;u.length){f(u[0]).css({width:g.width,height:g.height})}a._updateCache(g);a._propagate(&quot;resize&quot;,r)}})}});f.ui.plugin.add(&quot;resizable&quot;,&quot;containment&quot;,{start:function(A,b){var C=f(this).data(&quot;resizable&quot;),w=C.options,u=C.element;var z=w.containment,v=(z instanceof f)?z.get(0):(/parent/.test(z))?u.parent().get(0):z;if(!v){return}C.containerElement=f(v);if(/document/.test(z)||z==document){C.containerOffset={left:0,top:0};C.containerPosition={left:0,top:0};C.parentData={element:f(document),left:0,top:0,width:f(document).width(),height:f(document).height()||document.body.parentNode.scrollHeight}}else{var o=f(v),x=[];f([&quot;Top&quot;,&quot;Right&quot;,&quot;Left&quot;,&quot;Bottom&quot;]).each(function(g,h){x[g]=d(o.css(&quot;padding&quot;+h))});C.containerOffset=o.offset();C.containerPosition=o.position();C.containerSize={height:(o.innerHeight()-x[3]),width:(o.innerWidth()-x[1])};var c=C.containerOffset,B=C.containerSize.height,p=C.containerSize.width,y=(f.ui.hasScroll(v,&quot;left&quot;)?v.scrollWidth:p),a=(f.ui.hasScroll(v)?v.scrollHeight:B);C.parentData={element:v,left:c.left,top:c.top,width:y,height:a}}},resize:function(B,c){var E=f(this).data(&quot;resizable&quot;),z=E.options,C=E.containerSize,o=E.containerOffset,v=E.size,u=E.position,b=E._aspectRatio||B.shiftKey,D={top:0,left:0},A=E.containerElement;if(A[0]!=document&amp;&amp;(/static/).test(A.css(&quot;position&quot;))){D=o}if(u.left&lt;(E._helper?o.left:0)){E.size.width=E.size.width+(E._helper?(E.position.left-o.left):(E.position.left-D.left));if(b){E.size.height=E.size.width/z.aspectRatio}E.position.left=z.helper?o.left:0}if(u.top&lt;(E._helper?o.top:0)){E.size.height=E.size.height+(E._helper?(E.position.top-o.top):E.position.top);if(b){E.size.width=E.size.height*z.aspectRatio}E.position.top=E._helper?o.top:0}E.offset.left=E.parentData.left+E.position.left;E.offset.top=E.parentData.top+E.position.top;var w=Math.abs((E._helper?E.offset.left-D.left:(E.offset.left-D.left))+E.sizeDiff.width),a=Math.abs((E._helper?E.offset.top-D.top:(E.offset.top-o.top))+E.sizeDiff.height);var x=E.containerElement.get(0)==E.element.parent().get(0),y=/relative|absolute/.test(E.containerElement.css(&quot;position&quot;));if(x&amp;&amp;y){w-=E.parentData.left}if(w+E.size.width&gt;=E.parentData.width){E.size.width=E.parentData.width-w;if(b){E.size.height=E.size.width/E.aspectRatio}}if(a+E.size.height&gt;=E.parentData.height){E.size.height=E.parentData.height-a;if(b){E.size.width=E.size.height*E.aspectRatio}}},stop:function(y,h){var b=f(this).data(&quot;resizable&quot;),x=b.options,r=b.position,o=b.containerOffset,z=b.containerPosition,w=b.containerElement;var v=f(b.helper),a=v.offset(),c=v.outerWidth()-b.sizeDiff.width,u=v.outerHeight()-b.sizeDiff.height;if(b._helper&amp;&amp;!x.animate&amp;&amp;(/relative/).test(w.css(&quot;position&quot;))){f(this).css({left:a.left-z.left-o.left,width:c,height:u})}if(b._helper&amp;&amp;!x.animate&amp;&amp;(/static/).test(w.css(&quot;position&quot;))){f(this).css({left:a.left-z.left-o.left,width:c,height:u})}}});f.ui.plugin.add(&quot;resizable&quot;,&quot;ghost&quot;,{start:function(c,b){var k=f(this).data(&quot;resizable&quot;),a=k.options,j=k.size;k.ghost=k.originalElement.clone();k.ghost.css({opacity:0.25,display:&quot;block&quot;,position:&quot;relative&quot;,height:j.height,width:j.width,margin:0,left:0,top:0}).addClass(&quot;ui-resizable-ghost&quot;).addClass(typeof a.ghost==&quot;string&quot;?a.ghost:&quot;&quot;);k.ghost.appendTo(k.helper)},resize:function(c,b){var h=f(this).data(&quot;resizable&quot;),a=h.options;if(h.ghost){h.ghost.css({position:&quot;relative&quot;,height:h.size.height,width:h.size.width})}},stop:function(c,b){var h=f(this).data(&quot;resizable&quot;),a=h.options;if(h.ghost&amp;&amp;h.helper){h.helper.get(0).removeChild(h.ghost.get(0))}}});f.ui.plugin.add(&quot;resizable&quot;,&quot;grid&quot;,{resize:function(x,c){var a=f(this).data(&quot;resizable&quot;),u=a.options,p=a.size,r=a.originalSize,q=a.originalPosition,b=a.axis,o=u._aspectRatio||x.shiftKey;u.grid=typeof u.grid==&quot;number&quot;?[u.grid,u.grid]:u.grid;var v=Math.round((p.width-r.width)/(u.grid[0]||1))*(u.grid[0]||1),w=Math.round((p.height-r.height)/(u.grid[1]||1))*(u.grid[1]||1);if(/^(se|s|e)$/.test(b)){a.size.width=r.width+v;a.size.height=r.height+w}else{if(/^(ne)$/.test(b)){a.size.width=r.width+v;a.size.height=r.height+w;a.position.top=q.top-w}else{if(/^(sw)$/.test(b)){a.size.width=r.width+v;a.size.height=r.height+w;a.position.left=q.left-v}else{a.size.width=r.width+v;a.size.height=r.height+w;a.position.top=q.top-w;a.position.left=q.left-v}}}}});var d=function(a){return parseInt(a,10)||0};var e=function(a){return !isNaN(parseInt(a,10))}})(jQuery);(function(b){b.widget(&quot;ui.selectable&quot;,b.extend({},b.ui.mouse,{_init:function(){var a=this;this.element.addClass(&quot;ui-selectable&quot;);this.dragged=false;var d;this.refresh=function(){d=b(a.options.filter,a.element[0]);d.each(function(){var f=b(this);var c=f.offset();b.data(this,&quot;selectable-item&quot;,{element:this,$element:f,left:c.left,top:c.top,right:c.left+f.outerWidth(),bottom:c.top+f.outerHeight(),startselected:false,selected:f.hasClass(&quot;ui-selected&quot;),selecting:f.hasClass(&quot;ui-selecting&quot;),unselecting:f.hasClass(&quot;ui-unselecting&quot;)})})};this.refresh();this.selectees=d.addClass(&quot;ui-selectee&quot;);this._mouseInit();this.helper=b(document.createElement(&quot;div&quot;)).css({border:&quot;1px dotted black&quot;}).addClass(&quot;ui-selectable-helper&quot;)},destroy:function(){this.element.removeClass(&quot;ui-selectable ui-selectable-disabled&quot;).removeData(&quot;selectable&quot;).unbind(&quot;.selectable&quot;);this._mouseDestroy()},_mouseStart:function(e){var a=this;this.opos=[e.pageX,e.pageY];if(this.options.disabled){return}var f=this.options;this.selectees=b(f.filter,this.element[0]);this._trigger(&quot;start&quot;,e);b(f.appendTo).append(this.helper);this.helper.css({&quot;z-index&quot;:100,position:&quot;absolute&quot;,left:e.clientX,top:e.clientY,width:0,height:0});if(f.autoRefresh){this.refresh()}this.selectees.filter(&quot;.ui-selected&quot;).each(function(){var c=b.data(this,&quot;selectable-item&quot;);c.startselected=true;if(!e.metaKey){c.$element.removeClass(&quot;ui-selected&quot;);c.selected=false;c.$element.addClass(&quot;ui-unselecting&quot;);c.unselecting=true;a._trigger(&quot;unselecting&quot;,e,{unselecting:c.element})}});b(e.target).parents().andSelf().each(function(){var c=b.data(this,&quot;selectable-item&quot;);if(c){c.$element.removeClass(&quot;ui-unselecting&quot;).addClass(&quot;ui-selecting&quot;);c.unselecting=false;c.selecting=true;c.selected=true;a._trigger(&quot;selecting&quot;,e,{selecting:c.element});return false}})},_mouseDrag:function(j){var p=this;this.dragged=true;if(this.options.disabled){return}var n=this.options;var o=this.opos[0],k=this.opos[1],a=j.pageX,l=j.pageY;if(o&gt;a){var m=a;a=o;o=m}if(k&gt;l){var m=l;l=k;k=m}this.helper.css({left:o,top:k,width:a-o,height:l-k});this.selectees.each(function(){var d=b.data(this,&quot;selectable-item&quot;);if(!d||d.element==p.element[0]){return}var c=false;if(n.tolerance==&quot;touch&quot;){c=(!(d.left&gt;a||d.right&lt;o||d.top&gt;l||d.bottom&lt;k))}else{if(n.tolerance==&quot;fit&quot;){c=(d.left&gt;o&amp;&amp;d.right&lt;a&amp;&amp;d.top&gt;k&amp;&amp;d.bottom&lt;l)}}if(c){if(d.selected){d.$element.removeClass(&quot;ui-selected&quot;);d.selected=false}if(d.unselecting){d.$element.removeClass(&quot;ui-unselecting&quot;);d.unselecting=false}if(!d.selecting){d.$element.addClass(&quot;ui-selecting&quot;);d.selecting=true;p._trigger(&quot;selecting&quot;,j,{selecting:d.element})}}else{if(d.selecting){if(j.metaKey&amp;&amp;d.startselected){d.$element.removeClass(&quot;ui-selecting&quot;);d.selecting=false;d.$element.addClass(&quot;ui-selected&quot;);d.selected=true}else{d.$element.removeClass(&quot;ui-selecting&quot;);d.selecting=false;if(d.startselected){d.$element.addClass(&quot;ui-unselecting&quot;);d.unselecting=true}p._trigger(&quot;unselecting&quot;,j,{unselecting:d.element})}}if(d.selected){if(!j.metaKey&amp;&amp;!d.startselected){d.$element.removeClass(&quot;ui-selected&quot;);d.selected=false;d.$element.addClass(&quot;ui-unselecting&quot;);d.unselecting=true;p._trigger(&quot;unselecting&quot;,j,{unselecting:d.element})}}}});return false},_mouseStop:function(e){var a=this;this.dragged=false;var f=this.options;b(&quot;.ui-unselecting&quot;,this.element[0]).each(function(){var c=b.data(this,&quot;selectable-item&quot;);c.$element.removeClass(&quot;ui-unselecting&quot;);c.unselecting=false;c.startselected=false;a._trigger(&quot;unselected&quot;,e,{unselected:c.element})});b(&quot;.ui-selecting&quot;,this.element[0]).each(function(){var c=b.data(this,&quot;selectable-item&quot;);c.$element.removeClass(&quot;ui-selecting&quot;).addClass(&quot;ui-selected&quot;);c.selecting=false;c.selected=true;c.startselected=true;a._trigger(&quot;selected&quot;,e,{selected:c.element})});this._trigger(&quot;stop&quot;,e);this.helper.remove();return false}}));b.extend(b.ui.selectable,{version:&quot;1.7.1&quot;,defaults:{appendTo:&quot;body&quot;,autoRefresh:true,cancel:&quot;:input,option&quot;,delay:0,distance:0,filter:&quot;*&quot;,tolerance:&quot;touch&quot;}})})(jQuery);(function(b){b.widget(&quot;ui.sortable&quot;,b.extend({},b.ui.mouse,{_init:function(){var a=this.options;this.containerCache={};this.element.addClass(&quot;ui-sortable&quot;);this.refresh();this.floating=this.items.length?(/left|right/).test(this.items[0].item.css(&quot;float&quot;)):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass(&quot;ui-sortable ui-sortable-disabled&quot;).removeData(&quot;sortable&quot;).unbind(&quot;.sortable&quot;);this._mouseDestroy();for(var a=this.items.length-1;a&gt;=0;a--){this.items[a].item.removeData(&quot;sortable-item&quot;)}},_mouseCapture:function(k,j){if(this.reverting){return false}if(this.options.disabled||this.options.type==&quot;static&quot;){return false}this._refreshItems(k);var l=null,m=this,a=b(k.target).parents().each(function(){if(b.data(this,&quot;sortable-item&quot;)==m){l=b(this);return false}});if(b.data(k.target,&quot;sortable-item&quot;)==m){l=b(k.target)}if(!l){return false}if(this.options.handle&amp;&amp;!j){var h=false;b(this.options.handle,l).find(&quot;*&quot;).andSelf().each(function(){if(this==k.target){h=true}});if(!h){return false}}this.currentItem=l;this._removeCurrentsFromItems();return true},_mouseStart:function(k,j,a){var h=this.options,m=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(k);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};this.helper.css(&quot;position&quot;,&quot;absolute&quot;);this.cssPosition=this.helper.css(&quot;position&quot;);b.extend(this.offset,{click:{left:k.pageX-this.offset.left,top:k.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(k);this.originalPageX=k.pageX;this.originalPageY=k.pageY;if(h.cursorAt){this._adjustOffsetFromHelper(h.cursorAt)}this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!=this.currentItem[0]){this.currentItem.hide()}this._createPlaceholder();if(h.containment){this._setContainment()}if(h.cursor){if(b(&quot;body&quot;).css(&quot;cursor&quot;)){this._storedCursor=b(&quot;body&quot;).css(&quot;cursor&quot;)}b(&quot;body&quot;).css(&quot;cursor&quot;,h.cursor)}if(h.opacity){if(this.helper.css(&quot;opacity&quot;)){this._storedOpacity=this.helper.css(&quot;opacity&quot;)}this.helper.css(&quot;opacity&quot;,h.opacity)}if(h.zIndex){if(this.helper.css(&quot;zIndex&quot;)){this._storedZIndex=this.helper.css(&quot;zIndex&quot;)}this.helper.css(&quot;zIndex&quot;,h.zIndex)}if(this.scrollParent[0]!=document&amp;&amp;this.scrollParent[0].tagName!=&quot;HTML&quot;){this.overflowOffset=this.scrollParent.offset()}this._trigger(&quot;start&quot;,k,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!a){for(var l=this.containers.length-1;l&gt;=0;l--){this.containers[l]._trigger(&quot;activate&quot;,k,m._uiHash(this))}}if(b.ui.ddmanager){b.ui.ddmanager.current=this}if(b.ui.ddmanager&amp;&amp;!h.dropBehaviour){b.ui.ddmanager.prepareOffsets(this,k)}this.dragging=true;this.helper.addClass(&quot;ui-sortable-helper&quot;);this._mouseDrag(k);return true},_mouseDrag:function(l){this.position=this._generatePosition(l);this.positionAbs=this._convertPositionTo(&quot;absolute&quot;);if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var k=this.options,a=false;if(this.scrollParent[0]!=document&amp;&amp;this.scrollParent[0].tagName!=&quot;HTML&quot;){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-l.pageY&lt;k.scrollSensitivity){this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+k.scrollSpeed}else{if(l.pageY-this.overflowOffset.top&lt;k.scrollSensitivity){this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-k.scrollSpeed}}if((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-l.pageX&lt;k.scrollSensitivity){this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+k.scrollSpeed}else{if(l.pageX-this.overflowOffset.left&lt;k.scrollSensitivity){this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-k.scrollSpeed}}}else{if(l.pageY-b(document).scrollTop()&lt;k.scrollSensitivity){a=b(document).scrollTop(b(document).scrollTop()-k.scrollSpeed)}else{if(b(window).height()-(l.pageY-b(document).scrollTop())&lt;k.scrollSensitivity){a=b(document).scrollTop(b(document).scrollTop()+k.scrollSpeed)}}if(l.pageX-b(document).scrollLeft()&lt;k.scrollSensitivity){a=b(document).scrollLeft(b(document).scrollLeft()-k.scrollSpeed)}else{if(b(window).width()-(l.pageX-b(document).scrollLeft())&lt;k.scrollSensitivity){a=b(document).scrollLeft(b(document).scrollLeft()+k.scrollSpeed)}}}if(a!==false&amp;&amp;b.ui.ddmanager&amp;&amp;!k.dropBehaviour){b.ui.ddmanager.prepareOffsets(this,l)}}this.positionAbs=this._convertPositionTo(&quot;absolute&quot;);if(!this.options.axis||this.options.axis!=&quot;y&quot;){this.helper[0].style.left=this.position.left+&quot;px&quot;}if(!this.options.axis||this.options.axis!=&quot;x&quot;){this.helper[0].style.top=this.position.top+&quot;px&quot;}for(var n=this.items.length-1;n&gt;=0;n--){var m=this.items[n],o=m.item[0],j=this._intersectsWithPointer(m);if(!j){continue}if(o!=this.currentItem[0]&amp;&amp;this.placeholder[j==1?&quot;next&quot;:&quot;prev&quot;]()[0]!=o&amp;&amp;!b.ui.contains(this.placeholder[0],o)&amp;&amp;(this.options.type==&quot;semi-dynamic&quot;?!b.ui.contains(this.element[0],o):true)){this.direction=j==1?&quot;down&quot;:&quot;up&quot;;if(this.options.tolerance==&quot;pointer&quot;||this._intersectsWithSides(m)){this._rearrange(l,m)}else{break}this._trigger(&quot;change&quot;,l,this._uiHash());break}}this._contactContainers(l);if(b.ui.ddmanager){b.ui.ddmanager.drag(this,l)}this._trigger(&quot;sort&quot;,l,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(h,g){if(!h){return}if(b.ui.ddmanager&amp;&amp;!this.options.dropBehaviour){b.ui.ddmanager.drop(this,h)}if(this.options.revert){var a=this;var f=a.placeholder.offset();a.reverting=true;b(this.helper).animate({left:f.left-this.offset.parent.left-a.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:f.top-this.offset.parent.top-a.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){a._clear(h)})}else{this._clear(h,g)}return false},cancel:function(){var a=this;if(this.dragging){this._mouseUp();if(this.options.helper==&quot;original&quot;){this.currentItem.css(this._storedCSS).removeClass(&quot;ui-sortable-helper&quot;)}else{this.currentItem.show()}for(var d=this.containers.length-1;d&gt;=0;d--){this.containers[d]._trigger(&quot;deactivate&quot;,null,a._uiHash(this));if(this.containers[d].containerCache.over){this.containers[d]._trigger(&quot;out&quot;,null,a._uiHash(this));this.containers[d].containerCache.over=0}}}if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])}if(this.options.helper!=&quot;original&quot;&amp;&amp;this.helper&amp;&amp;this.helper[0].parentNode){this.helper.remove()}b.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){b(this.domPosition.prev).after(this.currentItem)}else{b(this.domPosition.parent).prepend(this.currentItem)}return true},serialize:function(e){var a=this._getItemsAsjQuery(e&amp;&amp;e.connected);var f=[];e=e||{};b(a).each(function(){var c=(b(e.item||this).attr(e.attribute||&quot;id&quot;)||&quot;&quot;).match(e.expression||(/(.+)[-=_](.+)/));if(c){f.push((e.key||c[1]+&quot;[]&quot;)+&quot;=&quot;+(e.key&amp;&amp;e.expression?c[1]:c[2]))}});return f.join(&quot;&amp;&quot;)},toArray:function(e){var a=this._getItemsAsjQuery(e&amp;&amp;e.connected);var f=[];e=e||{};a.each(function(){f.push(b(e.item||this).attr(e.attribute||&quot;id&quot;)||&quot;&quot;)});return f},_intersectsWith:function(p){var y=this.positionAbs.left,z=y+this.helperProportions.width,q=this.positionAbs.top,r=q+this.helperProportions.height;var x=p.left,A=x+p.width,l=p.top,u=l+p.height;var a=this.offset.click.top,v=this.offset.click.left;var w=(q+a)&gt;l&amp;&amp;(q+a)&lt;u&amp;&amp;(y+v)&gt;x&amp;&amp;(y+v)&lt;A;if(this.options.tolerance==&quot;pointer&quot;||this.options.forcePointerForContainers||(this.options.tolerance!=&quot;pointer&quot;&amp;&amp;this.helperProportions[this.floating?&quot;width&quot;:&quot;height&quot;]&gt;p[this.floating?&quot;width&quot;:&quot;height&quot;])){return w}else{return(x&lt;y+(this.helperProportions.width/2)&amp;&amp;z-(this.helperProportions.width/2)&lt;A&amp;&amp;l&lt;q+(this.helperProportions.height/2)&amp;&amp;r-(this.helperProportions.height/2)&lt;u)}},_intersectsWithPointer:function(l){var k=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,l.top,l.height),m=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,l.left,l.width),h=k&amp;&amp;m,a=this._getDragVerticalDirection(),j=this._getDragHorizontalDirection();if(!h){return false}return this.floating?(((j&amp;&amp;j==&quot;right&quot;)||a==&quot;down&quot;)?2:1):(a&amp;&amp;(a==&quot;down&quot;?2:1))},_intersectsWithSides:function(h){var k=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,h.top+(h.height/2),h.height),j=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,h.left+(h.width/2),h.width),a=this._getDragVerticalDirection(),g=this._getDragHorizontalDirection();if(this.floating&amp;&amp;g){return((g==&quot;right&quot;&amp;&amp;j)||(g==&quot;left&quot;&amp;&amp;!j))}else{return a&amp;&amp;((a==&quot;down&quot;&amp;&amp;k)||(a==&quot;up&quot;&amp;&amp;!k))}},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return a!=0&amp;&amp;(a&gt;0?&quot;down&quot;:&quot;up&quot;)},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!=0&amp;&amp;(a&gt;0?&quot;right&quot;:&quot;left&quot;)},refresh:function(a){this._refreshItems(a);this.refreshPositions()},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(u){var a=this;var n=[];var p=[];var m=this._connectWith();if(m&amp;&amp;u){for(var q=m.length-1;q&gt;=0;q--){var j=b(m[q]);for(var r=j.length-1;r&gt;=0;r--){var o=b.data(j[r],&quot;sortable&quot;);if(o&amp;&amp;o!=this&amp;&amp;!o.options.disabled){p.push([b.isFunction(o.options.items)?o.options.items.call(o.element):b(o.options.items,o.element).not(&quot;.ui-sortable-helper&quot;),o])}}}}p.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(&quot;.ui-sortable-helper&quot;),this]);for(var q=p.length-1;q&gt;=0;q--){p[q][0].each(function(){n.push(this)})}return b(n)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(&quot;:data(sortable-item)&quot;);for(var f=0;f&lt;this.items.length;f++){for(var a=0;a&lt;e.length;a++){if(e[a]==this.items[f].item[0]){this.items.splice(f,1)}}}},_refreshItems:function(C){this.items=[];this.containers=[this];var w=this.items;var a=this;var y=[[b.isFunction(this.options.items)?this.options.items.call(this.element[0],C,{item:this.currentItem}):b(this.options.items,this.element),this]];var u=this._connectWith();if(u){for(var z=u.length-1;z&gt;=0;z--){var r=b(u[z]);for(var A=r.length-1;A&gt;=0;A--){var x=b.data(r[A],&quot;sortable&quot;);if(x&amp;&amp;x!=this&amp;&amp;!x.options.disabled){y.push([b.isFunction(x.options.items)?x.options.items.call(x.element[0],C,{item:this.currentItem}):b(x.options.items,x.element),x]);this.containers.push(x)}}}}for(var z=y.length-1;z&gt;=0;z--){var v=y[z][1];var B=y[z][0];for(var A=0,q=B.length;A&lt;q;A++){var j=b(B[A]);j.data(&quot;sortable-item&quot;,v);w.push({item:j,instance:v,width:0,height:0,left:0,top:0})}}},refreshPositions:function(a){if(this.offsetParent&amp;&amp;this.helper){this.offset.parent=this._getParentOffset()}for(var j=this.items.length-1;j&gt;=0;j--){var h=this.items[j];if(h.instance!=this.currentContainer&amp;&amp;this.currentContainer&amp;&amp;h.item[0]!=this.currentItem[0]){continue}var k=this.options.toleranceElement?b(this.options.toleranceElement,h.item):h.item;if(!a){h.width=k.outerWidth();h.height=k.outerHeight()}var g=k.offset();h.left=g.left;h.top=g.top}if(this.options.custom&amp;&amp;this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(var j=this.containers.length-1;j&gt;=0;j--){var g=this.containers[j].element.offset();this.containers[j].containerCache.left=g.left;this.containers[j].containerCache.top=g.top;this.containers[j].containerCache.width=this.containers[j].element.outerWidth();this.containers[j].containerCache.height=this.containers[j].element.outerHeight()}}},_createPlaceholder:function(g){var a=g||this,f=a.options;if(!f.placeholder||f.placeholder.constructor==String){var h=f.placeholder;f.placeholder={element:function(){var c=b(document.createElement(a.currentItem[0].nodeName)).addClass(h||a.currentItem[0].className+&quot; ui-sortable-placeholder&quot;).removeClass(&quot;ui-sortable-helper&quot;)[0];if(!h){c.style.visibility=&quot;hidden&quot;}return c},update:function(d,c){if(h&amp;&amp;!f.forcePlaceholderSize){return}if(!c.height()){c.height(a.currentItem.innerHeight()-parseInt(a.currentItem.css(&quot;paddingTop&quot;)||0,10)-parseInt(a.currentItem.css(&quot;paddingBottom&quot;)||0,10))}if(!c.width()){c.width(a.currentItem.innerWidth()-parseInt(a.currentItem.css(&quot;paddingLeft&quot;)||0,10)-parseInt(a.currentItem.css(&quot;paddingRight&quot;)||0,10))}}}}a.placeholder=b(f.placeholder.element.call(a.element,a.currentItem));a.currentItem.after(a.placeholder);f.placeholder.update(a,a.placeholder)},_contactContainers:function(n){for(var o=this.containers.length-1;o&gt;=0;o--){if(this._intersectsWith(this.containers[o].containerCache)){if(!this.containers[o].containerCache.over){if(this.currentContainer!=this.containers[o]){var j=10000;var k=null;var m=this.positionAbs[this.containers[o].floating?&quot;left&quot;:&quot;top&quot;];for(var a=this.items.length-1;a&gt;=0;a--){if(!b.ui.contains(this.containers[o].element[0],this.items[a].item[0])){continue}var l=this.items[a][this.containers[o].floating?&quot;left&quot;:&quot;top&quot;];if(Math.abs(l-m)&lt;j){j=Math.abs(l-m);k=this.items[a]}}if(!k&amp;&amp;!this.options.dropOnEmpty){continue}this.currentContainer=this.containers[o];k?this._rearrange(n,k,null,true):this._rearrange(n,null,this.containers[o].element,true);this._trigger(&quot;change&quot;,n,this._uiHash());this.containers[o]._trigger(&quot;change&quot;,n,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder)}this.containers[o]._trigger(&quot;over&quot;,n,this._uiHash(this));this.containers[o].containerCache.over=1}}else{if(this.containers[o].containerCache.over){this.containers[o]._trigger(&quot;out&quot;,n,this._uiHash(this));this.containers[o].containerCache.over=0}}}},_createHelper:function(f){var e=this.options;var a=b.isFunction(e.helper)?b(e.helper.apply(this.element[0],[f,this.currentItem])):(e.helper==&quot;clone&quot;?this.currentItem.clone():this.currentItem);if(!a.parents(&quot;body&quot;).length){b(e.appendTo!=&quot;parent&quot;?e.appendTo:this.currentItem[0].parentNode)[0].appendChild(a[0])}if(a[0]==this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css(&quot;position&quot;),top:this.currentItem.css(&quot;top&quot;),left:this.currentItem.css(&quot;left&quot;)}}if(a[0].style.width==&quot;&quot;||e.forceHelperSize){a.width(this.currentItem.width())}if(a[0].style.height==&quot;&quot;||e.forceHelperSize){a.height(this.currentItem.height())}return a},_adjustOffsetFromHelper:function(a){if(a.left!=undefined){this.offset.click.left=a.left+this.margins.left}if(a.right!=undefined){this.offset.click.left=this.helperProportions.width-a.right+this.margins.left}if(a.top!=undefined){this.offset.click.top=a.top+this.margins.top}if(a.bottom!=undefined){this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition==&quot;absolute&quot;&amp;&amp;this.scrollParent[0]!=document&amp;&amp;b.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&amp;&amp;this.offsetParent[0].tagName.toLowerCase()==&quot;html&quot;&amp;&amp;b.browser.msie)){a={top:0,left:0}}return{top:a.top+(parseInt(this.offsetParent.css(&quot;borderTopWidth&quot;),10)||0),left:a.left+(parseInt(this.offsetParent.css(&quot;borderLeftWidth&quot;),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==&quot;relative&quot;){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css(&quot;top&quot;),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css(&quot;left&quot;),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.currentItem.css(&quot;marginLeft&quot;),10)||0),top:(parseInt(this.currentItem.css(&quot;marginTop&quot;),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var f=this.options;if(f.containment==&quot;parent&quot;){f.containment=this.helper[0].parentNode}if(f.containment==&quot;document&quot;||f.containment==&quot;window&quot;){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(f.containment==&quot;document&quot;?document:window).width()-this.helperProportions.width-this.margins.left,(b(f.containment==&quot;document&quot;?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(f.containment)){var h=b(f.containment)[0];var g=b(f.containment).offset();var a=(b(h).css(&quot;overflow&quot;)!=&quot;hidden&quot;);this.containment=[g.left+(parseInt(b(h).css(&quot;borderLeftWidth&quot;),10)||0)+(parseInt(b(h).css(&quot;paddingLeft&quot;),10)||0)-this.margins.left,g.top+(parseInt(b(h).css(&quot;borderTopWidth&quot;),10)||0)+(parseInt(b(h).css(&quot;paddingTop&quot;),10)||0)-this.margins.top,g.left+(a?Math.max(h.scrollWidth,h.offsetWidth):h.offsetWidth)-(parseInt(b(h).css(&quot;borderLeftWidth&quot;),10)||0)-(parseInt(b(h).css(&quot;paddingRight&quot;),10)||0)-this.helperProportions.width-this.margins.left,g.top+(a?Math.max(h.scrollHeight,h.offsetHeight):h.offsetHeight)-(parseInt(b(h).css(&quot;borderTopWidth&quot;),10)||0)-(parseInt(b(h).css(&quot;paddingBottom&quot;),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(k,d){if(!d){d=this.position}var m=k==&quot;absolute&quot;?1:-1;var l=this.options,a=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,j=(/(html|body)/i).test(a[0].tagName);return{top:(d.top+this.offset.relative.top*m+this.offset.parent.top*m-(b.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():(j?0:a.scrollTop()))*m)),left:(d.left+this.offset.relative.left*m+this.offset.parent.left*m-(b.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():j?0:a.scrollLeft())*m))}},_generatePosition:function(n){var k=this.options,a=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,j=(/(html|body)/i).test(a[0].tagName);if(this.cssPosition==&quot;relative&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var o=n.pageX;var p=n.pageY;if(this.originalPosition){if(this.containment){if(n.pageX-this.offset.click.left&lt;this.containment[0]){o=this.containment[0]+this.offset.click.left}if(n.pageY-this.offset.click.top&lt;this.containment[1]){p=this.containment[1]+this.offset.click.top}if(n.pageX-this.offset.click.left&gt;this.containment[2]){o=this.containment[2]+this.offset.click.left}if(n.pageY-this.offset.click.top&gt;this.containment[3]){p=this.containment[3]+this.offset.click.top}}if(k.grid){var l=this.originalPageY+Math.round((p-this.originalPageY)/k.grid[1])*k.grid[1];p=this.containment?(!(l-this.offset.click.top&lt;this.containment[1]||l-this.offset.click.top&gt;this.containment[3])?l:(!(l-this.offset.click.top&lt;this.containment[1])?l-k.grid[1]:l+k.grid[1])):l;var m=this.originalPageX+Math.round((o-this.originalPageX)/k.grid[0])*k.grid[0];o=this.containment?(!(m-this.offset.click.left&lt;this.containment[0]||m-this.offset.click.left&gt;this.containment[2])?m:(!(m-this.offset.click.left&lt;this.containment[0])?m-k.grid[0]:m+k.grid[0])):m}}return{top:(p-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():(j?0:a.scrollTop())))),left:(o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():j?0:a.scrollLeft())))}},_rearrange:function(h,j,m,k){m?m[0].appendChild(this.placeholder[0]):j.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction==&quot;down&quot;?j.item[0]:j.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var l=this,a=this.counter;window.setTimeout(function(){if(a==l.counter){l.refreshPositions(!k)}},0)},_clear:function(j,h){this.reverting=false;var g=[],a=this;if(!this._noFinalSort&amp;&amp;this.currentItem[0].parentNode){this.placeholder.before(this.currentItem)}this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var k in this._storedCSS){if(this._storedCSS[k]==&quot;auto&quot;||this._storedCSS[k]==&quot;static&quot;){this._storedCSS[k]=&quot;&quot;}}this.currentItem.css(this._storedCSS).removeClass(&quot;ui-sortable-helper&quot;)}else{this.currentItem.show()}if(this.fromOutside&amp;&amp;!h){g.push(function(c){this._trigger(&quot;receive&quot;,c,this._uiHash(this.fromOutside))})}if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(&quot;.ui-sortable-helper&quot;)[0]||this.domPosition.parent!=this.currentItem.parent()[0])&amp;&amp;!h){g.push(function(c){this._trigger(&quot;update&quot;,c,this._uiHash())})}if(!b.ui.contains(this.element[0],this.currentItem[0])){if(!h){g.push(function(c){this._trigger(&quot;remove&quot;,c,this._uiHash())})}for(var k=this.containers.length-1;k&gt;=0;k--){if(b.ui.contains(this.containers[k].element[0],this.currentItem[0])&amp;&amp;!h){g.push((function(c){return function(d){c._trigger(&quot;receive&quot;,d,this._uiHash(this))}}).call(this,this.containers[k]));g.push((function(c){return function(d){c._trigger(&quot;update&quot;,d,this._uiHash(this))}}).call(this,this.containers[k]))}}}for(var k=this.containers.length-1;k&gt;=0;k--){if(!h){g.push((function(c){return function(d){c._trigger(&quot;deactivate&quot;,d,this._uiHash(this))}}).call(this,this.containers[k]))}if(this.containers[k].containerCache.over){g.push((function(c){return function(d){c._trigger(&quot;out&quot;,d,this._uiHash(this))}}).call(this,this.containers[k]));this.containers[k].containerCache.over=0}}if(this._storedCursor){b(&quot;body&quot;).css(&quot;cursor&quot;,this._storedCursor)}if(this._storedOpacity){this.helper.css(&quot;opacity&quot;,this._storedOpacity)}if(this._storedZIndex){this.helper.css(&quot;zIndex&quot;,this._storedZIndex==&quot;auto&quot;?&quot;&quot;:this._storedZIndex)}this.dragging=false;if(this.cancelHelperRemoval){if(!h){this._trigger(&quot;beforeStop&quot;,j,this._uiHash());for(var k=0;k&lt;g.length;k++){g[k].call(this,j)}this._trigger(&quot;stop&quot;,j,this._uiHash())}return false}if(!h){this._trigger(&quot;beforeStop&quot;,j,this._uiHash())}this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.helper[0]!=this.currentItem[0]){this.helper.remove()}this.helper=null;if(!h){for(var k=0;k&lt;g.length;k++){g[k].call(this,j)}this._trigger(&quot;stop&quot;,j,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){if(b.widget.prototype._trigger.apply(this,arguments)===false){this.cancel()}},_uiHash:function(d){var a=d||this;return{helper:a.helper,placeholder:a.placeholder||b([]),position:a.position,absolutePosition:a.positionAbs,offset:a.positionAbs,item:a.currentItem,sender:d?d.element:null}}}));b.extend(b.ui.sortable,{getter:&quot;serialize toArray&quot;,version:&quot;1.7.1&quot;,eventPrefix:&quot;sort&quot;,defaults:{appendTo:&quot;parent&quot;,axis:false,cancel:&quot;:input,option&quot;,connectWith:false,containment:false,cursor:&quot;auto&quot;,cursorAt:false,delay:0,distance:1,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:&quot;original&quot;,items:&quot;&gt; *&quot;,opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:&quot;default&quot;,tolerance:&quot;intersect&quot;,zIndex:1000}})})(jQuery);(function(b){b.widget(&quot;ui.accordion&quot;,{_init:function(){var e=this.options,a=this;this.running=0;if(e.collapsible==b.ui.accordion.defaults.collapsible&amp;&amp;e.alwaysOpen!=b.ui.accordion.defaults.alwaysOpen){e.collapsible=!e.alwaysOpen}if(e.navigation){var f=this.element.find(&quot;a&quot;).filter(e.navigationFilter);if(f.length){if(f.filter(e.header).length){this.active=f}else{this.active=f.parent().parent().prev();f.addClass(&quot;ui-accordion-content-active&quot;)}}}this.element.addClass(&quot;ui-accordion ui-widget ui-helper-reset&quot;);if(this.element[0].nodeName==&quot;UL&quot;){this.element.children(&quot;li&quot;).addClass(&quot;ui-accordion-li-fix&quot;)}this.headers=this.element.find(e.header).addClass(&quot;ui-accordion-header ui-helper-reset ui-state-default ui-corner-all&quot;).bind(&quot;mouseenter.accordion&quot;,function(){b(this).addClass(&quot;ui-state-hover&quot;)}).bind(&quot;mouseleave.accordion&quot;,function(){b(this).removeClass(&quot;ui-state-hover&quot;)}).bind(&quot;focus.accordion&quot;,function(){b(this).addClass(&quot;ui-state-focus&quot;)}).bind(&quot;blur.accordion&quot;,function(){b(this).removeClass(&quot;ui-state-focus&quot;)});this.headers.next().addClass(&quot;ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom&quot;);this.active=this._findActive(this.active||e.active).toggleClass(&quot;ui-state-default&quot;).toggleClass(&quot;ui-state-active&quot;).toggleClass(&quot;ui-corner-all&quot;).toggleClass(&quot;ui-corner-top&quot;);this.active.next().addClass(&quot;ui-accordion-content-active&quot;);b(&quot;&lt;span/&gt;&quot;).addClass(&quot;ui-icon &quot;+e.icons.header).prependTo(this.headers);this.active.find(&quot;.ui-icon&quot;).toggleClass(e.icons.header).toggleClass(e.icons.headerSelected);if(b.browser.msie){this.element.find(&quot;a&quot;).css(&quot;zoom&quot;,&quot;1&quot;)}this.resize();this.element.attr(&quot;role&quot;,&quot;tablist&quot;);this.headers.attr(&quot;role&quot;,&quot;tab&quot;).bind(&quot;keydown&quot;,function(c){return a._keydown(c)}).next().attr(&quot;role&quot;,&quot;tabpanel&quot;);this.headers.not(this.active||&quot;&quot;).attr(&quot;aria-expanded&quot;,&quot;false&quot;).attr(&quot;tabIndex&quot;,&quot;-1&quot;).next().hide();if(!this.active.length){this.headers.eq(0).attr(&quot;tabIndex&quot;,&quot;0&quot;)}else{this.active.attr(&quot;aria-expanded&quot;,&quot;true&quot;).attr(&quot;tabIndex&quot;,&quot;0&quot;)}if(!b.browser.safari){this.headers.find(&quot;a&quot;).attr(&quot;tabIndex&quot;,&quot;-1&quot;)}if(e.event){this.headers.bind((e.event)+&quot;.accordion&quot;,function(c){return a._clickHandler.call(a,c,this)})}},destroy:function(){var d=this.options;this.element.removeClass(&quot;ui-accordion ui-widget ui-helper-reset&quot;).removeAttr(&quot;role&quot;).unbind(&quot;.accordion&quot;).removeData(&quot;accordion&quot;);this.headers.unbind(&quot;.accordion&quot;).removeClass(&quot;ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top&quot;).removeAttr(&quot;role&quot;).removeAttr(&quot;aria-expanded&quot;).removeAttr(&quot;tabindex&quot;);this.headers.find(&quot;a&quot;).removeAttr(&quot;tabindex&quot;);this.headers.children(&quot;.ui-icon&quot;).remove();var a=this.headers.next().css(&quot;display&quot;,&quot;&quot;).removeAttr(&quot;role&quot;).removeClass(&quot;ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active&quot;);if(d.autoHeight||d.fillHeight){a.css(&quot;height&quot;,&quot;&quot;)}},_setData:function(a,d){if(a==&quot;alwaysOpen&quot;){a=&quot;collapsible&quot;;d=!d}b.widget.prototype._setData.apply(this,arguments)},_keydown:function(k){var h=this.options,j=b.ui.keyCode;if(h.disabled||k.altKey||k.ctrlKey){return}var l=this.headers.length;var a=this.headers.index(k.target);var m=false;switch(k.keyCode){case j.RIGHT:case j.DOWN:m=this.headers[(a+1)%l];break;case j.LEFT:case j.UP:m=this.headers[(a-1+l)%l];break;case j.SPACE:case j.ENTER:return this._clickHandler({target:k.target},k.target)}if(m){b(k.target).attr(&quot;tabIndex&quot;,&quot;-1&quot;);b(m).attr(&quot;tabIndex&quot;,&quot;0&quot;);m.focus();return false}return true},resize:function(){var f=this.options,g;if(f.fillSpace){if(b.browser.msie){var a=this.element.parent().css(&quot;overflow&quot;);this.element.parent().css(&quot;overflow&quot;,&quot;hidden&quot;)}g=this.element.parent().height();if(b.browser.msie){this.element.parent().css(&quot;overflow&quot;,a)}this.headers.each(function(){g-=b(this).outerHeight()});var h=0;this.headers.next().each(function(){h=Math.max(h,b(this).innerHeight()-b(this).height())}).height(Math.max(0,g-h)).css(&quot;overflow&quot;,&quot;auto&quot;)}else{if(f.autoHeight){g=0;this.headers.next().each(function(){g=Math.max(g,b(this).outerHeight())}).height(g)}}},activate:function(a){var d=this._findActive(a)[0];this._clickHandler({target:d},d)},_findActive:function(a){return a?typeof a==&quot;number&quot;?this.headers.filter(&quot;:eq(&quot;+a+&quot;)&quot;):this.headers.not(this.headers.not(a)):a===false?b([]):this.headers.filter(&quot;:eq(0)&quot;)},_clickHandler:function(r,n){var p=this.options;if(p.disabled){return false}if(!r.target&amp;&amp;p.collapsible){this.active.removeClass(&quot;ui-state-active ui-corner-top&quot;).addClass(&quot;ui-state-default ui-corner-all&quot;).find(&quot;.ui-icon&quot;).removeClass(p.icons.headerSelected).addClass(p.icons.header);this.active.next().addClass(&quot;ui-accordion-content-active&quot;);var l=this.active.next(),o={options:p,newHeader:b([]),oldHeader:p.active,newContent:b([]),oldContent:l},q=(this.active=b([]));this._toggle(q,l,o);return false}var m=b(r.currentTarget||n);var k=m[0]==this.active[0];if(this.running||(!p.collapsible&amp;&amp;k)){return false}this.active.removeClass(&quot;ui-state-active ui-corner-top&quot;).addClass(&quot;ui-state-default ui-corner-all&quot;).find(&quot;.ui-icon&quot;).removeClass(p.icons.headerSelected).addClass(p.icons.header);this.active.next().addClass(&quot;ui-accordion-content-active&quot;);if(!k){m.removeClass(&quot;ui-state-default ui-corner-all&quot;).addClass(&quot;ui-state-active ui-corner-top&quot;).find(&quot;.ui-icon&quot;).removeClass(p.icons.header).addClass(p.icons.headerSelected);m.next().addClass(&quot;ui-accordion-content-active&quot;)}var q=m.next(),l=this.active.next(),o={options:p,newHeader:k&amp;&amp;p.collapsible?b([]):m,oldHeader:this.active,newContent:k&amp;&amp;p.collapsible?b([]):q.find(&quot;&gt; *&quot;),oldContent:l.find(&quot;&gt; *&quot;)},a=this.headers.index(this.active[0])&gt;this.headers.index(m[0]);this.active=k?b([]):m;this._toggle(q,l,o,k,a);return false},_toggle:function(z,q,u,p,o){var x=this.options,a=this;this.toShow=z;this.toHide=q;this.data=u;var y=function(){if(!a){return}return a._completed.apply(a,arguments)};this._trigger(&quot;changestart&quot;,null,this.data);this.running=q.size()===0?z.size():q.size();if(x.animated){var v={};if(x.collapsible&amp;&amp;p){v={toShow:b([]),toHide:q,complete:y,down:o,autoHeight:x.autoHeight||x.fillSpace}}else{v={toShow:z,toHide:q,complete:y,down:o,autoHeight:x.autoHeight||x.fillSpace}}if(!x.proxied){x.proxied=x.animated}if(!x.proxiedDuration){x.proxiedDuration=x.duration}x.animated=b.isFunction(x.proxied)?x.proxied(v):x.proxied;x.duration=b.isFunction(x.proxiedDuration)?x.proxiedDuration(v):x.proxiedDuration;var n=b.ui.accordion.animations,w=x.duration,r=x.animated;if(!n[r]){n[r]=function(c){this.slide(c,{easing:r,duration:w||700})}}n[r](v)}else{if(x.collapsible&amp;&amp;p){z.toggle()}else{q.hide();z.show()}y(true)}q.prev().attr(&quot;aria-expanded&quot;,&quot;false&quot;).attr(&quot;tabIndex&quot;,&quot;-1&quot;).blur();z.prev().attr(&quot;aria-expanded&quot;,&quot;true&quot;).attr(&quot;tabIndex&quot;,&quot;0&quot;).focus()},_completed:function(a){var d=this.options;this.running=a?0:--this.running;if(this.running){return}if(d.clearStyle){this.toShow.add(this.toHide).css({height:&quot;&quot;,overflow:&quot;&quot;})}this._trigger(&quot;change&quot;,null,this.data)}});b.extend(b.ui.accordion,{version:&quot;1.7.1&quot;,defaults:{active:null,alwaysOpen:true,animated:&quot;slide&quot;,autoHeight:true,clearStyle:false,collapsible:false,event:&quot;click&quot;,fillSpace:false,header:&quot;&gt; li &gt; :first-child,&gt; :not(li):even&quot;,icons:{header:&quot;ui-icon-triangle-1-e&quot;,headerSelected:&quot;ui-icon-triangle-1-s&quot;},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(a,l){a=b.extend({easing:&quot;swing&quot;,duration:300},a,l);if(!a.toHide.size()){a.toShow.animate({height:&quot;show&quot;},a);return}if(!a.toShow.size()){a.toHide.animate({height:&quot;hide&quot;},a);return}var q=a.toShow.css(&quot;overflow&quot;),m,p={},n={},o=[&quot;height&quot;,&quot;paddingTop&quot;,&quot;paddingBottom&quot;],r;var k=a.toShow;r=k[0].style.width;k.width(parseInt(k.parent().width(),10)-parseInt(k.css(&quot;paddingLeft&quot;),10)-parseInt(k.css(&quot;paddingRight&quot;),10)-(parseInt(k.css(&quot;borderLeftWidth&quot;),10)||0)-(parseInt(k.css(&quot;borderRightWidth&quot;),10)||0));b.each(o,function(e,c){n[c]=&quot;hide&quot;;var d=(&quot;&quot;+b.css(a.toShow[0],c)).match(/^([\d+-.]+)(.*)$/);p[c]={value:d[1],unit:d[2]||&quot;px&quot;}});a.toShow.css({height:0,overflow:&quot;hidden&quot;}).show();a.toHide.filter(&quot;:hidden&quot;).each(a.complete).end().filter(&quot;:visible&quot;).animate(n,{step:function(d,c){if(c.prop==&quot;height&quot;){m=(c.now-c.start)/(c.end-c.start)}a.toShow[0].style[c.prop]=(m*p[c.prop].value)+p[c.prop].unit},duration:a.duration,easing:a.easing,complete:function(){if(!a.autoHeight){a.toShow.css(&quot;height&quot;,&quot;&quot;)}a.toShow.css(&quot;width&quot;,r);a.toShow.css({overflow:q});a.complete()}})},bounceslide:function(a){this.slide(a,{easing:a.down?&quot;easeOutBounce&quot;:&quot;swing&quot;,duration:a.down?1000:200})},easeslide:function(a){this.slide(a,{easing:&quot;easeinout&quot;,duration:700})}}})})(jQuery);(function(f){var d={dragStart:&quot;start.draggable&quot;,drag:&quot;drag.draggable&quot;,dragStop:&quot;stop.draggable&quot;,maxHeight:&quot;maxHeight.resizable&quot;,minHeight:&quot;minHeight.resizable&quot;,maxWidth:&quot;maxWidth.resizable&quot;,minWidth:&quot;minWidth.resizable&quot;,resizeStart:&quot;start.resizable&quot;,resize:&quot;drag.resizable&quot;,resizeStop:&quot;stop.resizable&quot;},e=&quot;ui-dialog ui-widget ui-widget-content ui-corner-all &quot;;f.widget(&quot;ui.dialog&quot;,{_init:function(){this.originalTitle=this.element.attr(&quot;title&quot;);var b=this,a=this.options,n=a.title||this.originalTitle||&quot;&amp;nbsp;&quot;,u=f.ui.dialog.getTitleId(this.element),c=(this.uiDialog=f(&quot;&lt;div/&gt;&quot;)).appendTo(document.body).hide().addClass(e+a.dialogClass).css({position:&quot;absolute&quot;,overflow:&quot;hidden&quot;,zIndex:a.zIndex}).attr(&quot;tabIndex&quot;,-1).css(&quot;outline&quot;,0).keydown(function(g){(a.closeOnEscape&amp;&amp;g.keyCode&amp;&amp;g.keyCode==f.ui.keyCode.ESCAPE&amp;&amp;b.close(g))}).attr({role:&quot;dialog&quot;,&quot;aria-labelledby&quot;:u}).mousedown(function(g){b.moveToTop(false,g)}),q=this.element.show().removeAttr(&quot;title&quot;).addClass(&quot;ui-dialog-content ui-widget-content&quot;).appendTo(c),r=(this.uiDialogTitlebar=f(&quot;&lt;div&gt;&lt;/div&gt;&quot;)).addClass(&quot;ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix&quot;).prependTo(c),o=f('&lt;a href=&quot;#&quot;/&gt;').addClass(&quot;ui-dialog-titlebar-close ui-corner-all&quot;).attr(&quot;role&quot;,&quot;button&quot;).hover(function(){o.addClass(&quot;ui-state-hover&quot;)},function(){o.removeClass(&quot;ui-state-hover&quot;)}).focus(function(){o.addClass(&quot;ui-state-focus&quot;)}).blur(function(){o.removeClass(&quot;ui-state-focus&quot;)}).mousedown(function(g){g.stopPropagation()}).click(function(g){b.close(g);return false}).appendTo(r),p=(this.uiDialogTitlebarCloseText=f(&quot;&lt;span/&gt;&quot;)).addClass(&quot;ui-icon ui-icon-closethick&quot;).text(a.closeText).appendTo(o),v=f(&quot;&lt;span/&gt;&quot;).addClass(&quot;ui-dialog-title&quot;).attr(&quot;id&quot;,u).html(n).prependTo(r);r.find(&quot;*&quot;).add(r).disableSelection();(a.draggable&amp;&amp;f.fn.draggable&amp;&amp;this._makeDraggable());(a.resizable&amp;&amp;f.fn.resizable&amp;&amp;this._makeResizable());this._createButtons(a.buttons);this._isOpen=false;(a.bgiframe&amp;&amp;f.fn.bgiframe&amp;&amp;c.bgiframe());(a.autoOpen&amp;&amp;this.open())},destroy:function(){(this.overlay&amp;&amp;this.overlay.destroy());this.uiDialog.hide();this.element.unbind(&quot;.dialog&quot;).removeData(&quot;dialog&quot;).removeClass(&quot;ui-dialog-content ui-widget-content&quot;).hide().appendTo(&quot;body&quot;);this.uiDialog.remove();(this.originalTitle&amp;&amp;this.element.attr(&quot;title&quot;,this.originalTitle))},close:function(a){var b=this;if(false===b._trigger(&quot;beforeclose&quot;,a)){return}(b.overlay&amp;&amp;b.overlay.destroy());b.uiDialog.unbind(&quot;keypress.ui-dialog&quot;);(b.options.hide?b.uiDialog.hide(b.options.hide,function(){b._trigger(&quot;close&quot;,a)}):b.uiDialog.hide()&amp;&amp;b._trigger(&quot;close&quot;,a));f.ui.dialog.overlay.resize();b._isOpen=false},isOpen:function(){return this._isOpen},moveToTop:function(a,b){if((this.options.modal&amp;&amp;!a)||(!this.options.stack&amp;&amp;!this.options.modal)){return this._trigger(&quot;focus&quot;,b)}if(this.options.zIndex&gt;f.ui.dialog.maxZ){f.ui.dialog.maxZ=this.options.zIndex}(this.overlay&amp;&amp;this.overlay.$el.css(&quot;z-index&quot;,f.ui.dialog.overlay.maxZ=++f.ui.dialog.maxZ));var c={scrollTop:this.element.attr(&quot;scrollTop&quot;),scrollLeft:this.element.attr(&quot;scrollLeft&quot;)};this.uiDialog.css(&quot;z-index&quot;,++f.ui.dialog.maxZ);this.element.attr(c);this._trigger(&quot;focus&quot;,b)},open:function(){if(this._isOpen){return}var a=this.options,b=this.uiDialog;this.overlay=a.modal?new f.ui.dialog.overlay(this):null;(b.next().length&amp;&amp;b.appendTo(&quot;body&quot;));this._size();this._position(a.position);b.show(a.show);this.moveToTop(true);(a.modal&amp;&amp;b.bind(&quot;keypress.ui-dialog&quot;,function(j){if(j.keyCode!=f.ui.keyCode.TAB){return}var k=f(&quot;:tabbable&quot;,this),c=k.filter(&quot;:first&quot;)[0],l=k.filter(&quot;:last&quot;)[0];if(j.target==l&amp;&amp;!j.shiftKey){setTimeout(function(){c.focus()},1)}else{if(j.target==c&amp;&amp;j.shiftKey){setTimeout(function(){l.focus()},1)}}}));f([]).add(b.find(&quot;.ui-dialog-content :tabbable:first&quot;)).add(b.find(&quot;.ui-dialog-buttonpane :tabbable:first&quot;)).add(b).filter(&quot;:first&quot;).focus();this._trigger(&quot;open&quot;);this._isOpen=true},_createButtons:function(a){var b=this,h=false,c=f(&quot;&lt;div&gt;&lt;/div&gt;&quot;).addClass(&quot;ui-dialog-buttonpane ui-widget-content ui-helper-clearfix&quot;);this.uiDialog.find(&quot;.ui-dialog-buttonpane&quot;).remove();(typeof a==&quot;object&quot;&amp;&amp;a!==null&amp;&amp;f.each(a,function(){return !(h=true)}));if(h){f.each(a,function(j,g){f('&lt;button type=&quot;button&quot;&gt;&lt;/button&gt;').addClass(&quot;ui-state-default ui-corner-all&quot;).text(j).click(function(){g.apply(b.element[0],arguments)}).hover(function(){f(this).addClass(&quot;ui-state-hover&quot;)},function(){f(this).removeClass(&quot;ui-state-hover&quot;)}).focus(function(){f(this).addClass(&quot;ui-state-focus&quot;)}).blur(function(){f(this).removeClass(&quot;ui-state-focus&quot;)}).appendTo(c)});c.appendTo(this.uiDialog)}},_makeDraggable:function(){var c=this,a=this.options,b;this.uiDialog.draggable({cancel:&quot;.ui-dialog-content&quot;,handle:&quot;.ui-dialog-titlebar&quot;,containment:&quot;document&quot;,start:function(){b=a.height;f(this).height(f(this).height()).addClass(&quot;ui-dialog-dragging&quot;);(a.dragStart&amp;&amp;a.dragStart.apply(c.element[0],arguments))},drag:function(){(a.drag&amp;&amp;a.drag.apply(c.element[0],arguments))},stop:function(){f(this).removeClass(&quot;ui-dialog-dragging&quot;).height(b);(a.dragStop&amp;&amp;a.dragStop.apply(c.element[0],arguments));f.ui.dialog.overlay.resize()}})},_makeResizable:function(a){a=(a===undefined?this.options.resizable:a);var h=this,b=this.options,c=typeof a==&quot;string&quot;?a:&quot;n,e,s,w,se,sw,ne,nw&quot;;this.uiDialog.resizable({cancel:&quot;.ui-dialog-content&quot;,alsoResize:this.element,maxWidth:b.maxWidth,maxHeight:b.maxHeight,minWidth:b.minWidth,minHeight:b.minHeight,start:function(){f(this).addClass(&quot;ui-dialog-resizing&quot;);(b.resizeStart&amp;&amp;b.resizeStart.apply(h.element[0],arguments))},resize:function(){(b.resize&amp;&amp;b.resize.apply(h.element[0],arguments))},handles:c,stop:function(){f(this).removeClass(&quot;ui-dialog-resizing&quot;);b.height=f(this).height();b.width=f(this).width();(b.resizeStop&amp;&amp;b.resizeStop.apply(h.element[0],arguments));f.ui.dialog.overlay.resize()}}).find(&quot;.ui-resizable-se&quot;).addClass(&quot;ui-icon ui-icon-grip-diagonal-se&quot;)},_position:function(a){var k=f(window),j=f(document),c=j.scrollTop(),l=j.scrollLeft(),b=c;if(f.inArray(a,[&quot;center&quot;,&quot;top&quot;,&quot;right&quot;,&quot;bottom&quot;,&quot;left&quot;])&gt;=0){a=[a==&quot;right&quot;||a==&quot;left&quot;?a:&quot;center&quot;,a==&quot;top&quot;||a==&quot;bottom&quot;?a:&quot;middle&quot;]}if(a.constructor!=Array){a=[&quot;center&quot;,&quot;middle&quot;]}if(a[0].constructor==Number){l+=a[0]}else{switch(a[0]){case&quot;left&quot;:l+=0;break;case&quot;right&quot;:l+=k.width()-this.uiDialog.outerWidth();break;default:case&quot;center&quot;:l+=(k.width()-this.uiDialog.outerWidth())/2}}if(a[1].constructor==Number){c+=a[1]}else{switch(a[1]){case&quot;top&quot;:c+=0;break;case&quot;bottom&quot;:c+=k.height()-this.uiDialog.outerHeight();break;default:case&quot;middle&quot;:c+=(k.height()-this.uiDialog.outerHeight())/2}}c=Math.max(c,b);this.uiDialog.css({top:c,left:l})},_setData:function(c,b){(d[c]&amp;&amp;this.uiDialog.data(d[c],b));switch(c){case&quot;buttons&quot;:this._createButtons(b);break;case&quot;closeText&quot;:this.uiDialogTitlebarCloseText.text(b);break;case&quot;dialogClass&quot;:this.uiDialog.removeClass(this.options.dialogClass).addClass(e+b);break;case&quot;draggable&quot;:(b?this._makeDraggable():this.uiDialog.draggable(&quot;destroy&quot;));break;case&quot;height&quot;:this.uiDialog.height(b);break;case&quot;position&quot;:this._position(b);break;case&quot;resizable&quot;:var h=this.uiDialog,a=this.uiDialog.is(&quot;:data(resizable)&quot;);(a&amp;&amp;!b&amp;&amp;h.resizable(&quot;destroy&quot;));(a&amp;&amp;typeof b==&quot;string&quot;&amp;&amp;h.resizable(&quot;option&quot;,&quot;handles&quot;,b));(a||this._makeResizable(b));break;case&quot;title&quot;:f(&quot;.ui-dialog-title&quot;,this.uiDialogTitlebar).html(b||&quot;&amp;nbsp;&quot;);break;case&quot;width&quot;:this.uiDialog.width(b);break}f.widget.prototype._setData.apply(this,arguments)},_size:function(){var a=this.options;this.element.css({height:0,minHeight:0,width:&quot;auto&quot;});var b=this.uiDialog.css({height:&quot;auto&quot;,width:a.width}).height();this.element.css({minHeight:Math.max(a.minHeight-b,0),height:a.height==&quot;auto&quot;?&quot;auto&quot;:Math.max(a.height-b,0)})}});f.extend(f.ui.dialog,{version:&quot;1.7.1&quot;,defaults:{autoOpen:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:&quot;close&quot;,dialogClass:&quot;&quot;,draggable:true,hide:null,height:&quot;auto&quot;,maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:&quot;center&quot;,resizable:true,show:null,stack:true,title:&quot;&quot;,width:300,zIndex:1000},getter:&quot;isOpen&quot;,uuid:0,maxZ:0,getTitleId:function(a){return&quot;ui-dialog-title-&quot;+(a.attr(&quot;id&quot;)||++this.uuid)},overlay:function(a){this.$el=f.ui.dialog.overlay.create(a)}});f.extend(f.ui.dialog.overlay,{instances:[],maxZ:0,events:f.map(&quot;focus,mousedown,mouseup,keydown,keypress,click&quot;.split(&quot;,&quot;),function(a){return a+&quot;.dialog-overlay&quot;}).join(&quot; &quot;),create:function(a){if(this.instances.length===0){setTimeout(function(){f(document).bind(f.ui.dialog.overlay.events,function(h){var c=f(h.target).parents(&quot;.ui-dialog&quot;).css(&quot;zIndex&quot;)||0;return(c&gt;f.ui.dialog.overlay.maxZ)})},1);f(document).bind(&quot;keydown.dialog-overlay&quot;,function(c){(a.options.closeOnEscape&amp;&amp;c.keyCode&amp;&amp;c.keyCode==f.ui.keyCode.ESCAPE&amp;&amp;a.close(c))});f(window).bind(&quot;resize.dialog-overlay&quot;,f.ui.dialog.overlay.resize)}var b=f(&quot;&lt;div&gt;&lt;/div&gt;&quot;).appendTo(document.body).addClass(&quot;ui-widget-overlay&quot;).css({width:this.width(),height:this.height()});(a.options.bgiframe&amp;&amp;f.fn.bgiframe&amp;&amp;b.bgiframe());this.instances.push(b);return b},destroy:function(a){this.instances.splice(f.inArray(this.instances,a),1);if(this.instances.length===0){f([document,window]).unbind(&quot;.dialog-overlay&quot;)}a.remove()},height:function(){if(f.browser.msie&amp;&amp;f.browser.version&lt;7){var a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(a&lt;b){return f(window).height()+&quot;px&quot;}else{return a+&quot;px&quot;}}else{return f(document).height()+&quot;px&quot;}},width:function(){if(f.browser.msie&amp;&amp;f.browser.version&lt;7){var b=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var a=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(b&lt;a){return f(window).width()+&quot;px&quot;}else{return b+&quot;px&quot;}}else{return f(document).width()+&quot;px&quot;}},resize:function(){var a=f([]);f.each(f.ui.dialog.overlay.instances,function(){a=a.add(this)});a.css({width:0,height:0}).css({width:f.ui.dialog.overlay.width(),height:f.ui.dialog.overlay.height()})}});f.extend(f.ui.dialog.overlay.prototype,{destroy:function(){f.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);(function(b){b.widget(&quot;ui.slider&quot;,b.extend({},b.ui.mouse,{_init:function(){var a=this,d=this.options;this._keySliding=false;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass(&quot;ui-slider ui-slider-&quot;+this.orientation+&quot; ui-widget ui-widget-content ui-corner-all&quot;);this.range=b([]);if(d.range){if(d.range===true){this.range=b(&quot;&lt;div&gt;&lt;/div&gt;&quot;);if(!d.values){d.values=[this._valueMin(),this._valueMin()]}if(d.values.length&amp;&amp;d.values.length!=2){d.values=[d.values[0],d.values[0]]}}else{this.range=b(&quot;&lt;div&gt;&lt;/div&gt;&quot;)}this.range.appendTo(this.element).addClass(&quot;ui-slider-range&quot;);if(d.range==&quot;min&quot;||d.range==&quot;max&quot;){this.range.addClass(&quot;ui-slider-range-&quot;+d.range)}this.range.addClass(&quot;ui-widget-header&quot;)}if(b(&quot;.ui-slider-handle&quot;,this.element).length==0){b('&lt;a href=&quot;#&quot;&gt;&lt;/a&gt;').appendTo(this.element).addClass(&quot;ui-slider-handle&quot;)}if(d.values&amp;&amp;d.values.length){while(b(&quot;.ui-slider-handle&quot;,this.element).length&lt;d.values.length){b('&lt;a href=&quot;#&quot;&gt;&lt;/a&gt;').appendTo(this.element).addClass(&quot;ui-slider-handle&quot;)}}this.handles=b(&quot;.ui-slider-handle&quot;,this.element).addClass(&quot;ui-state-default ui-corner-all&quot;);this.handle=this.handles.eq(0);this.handles.add(this.range).filter(&quot;a&quot;).click(function(c){c.preventDefault()}).hover(function(){b(this).addClass(&quot;ui-state-hover&quot;)},function(){b(this).removeClass(&quot;ui-state-hover&quot;)}).focus(function(){b(&quot;.ui-slider .ui-state-focus&quot;).removeClass(&quot;ui-state-focus&quot;);b(this).addClass(&quot;ui-state-focus&quot;)}).blur(function(){b(this).removeClass(&quot;ui-state-focus&quot;)});this.handles.each(function(c){b(this).data(&quot;index.ui-slider-handle&quot;,c)});this.handles.keydown(function(c){var l=true;var m=b(this).data(&quot;index.ui-slider-handle&quot;);if(a.options.disabled){return}switch(c.keyCode){case b.ui.keyCode.HOME:case b.ui.keyCode.END:case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:l=false;if(!a._keySliding){a._keySliding=true;b(this).addClass(&quot;ui-state-active&quot;);a._start(c,m)}break}var k,n,j=a._step();if(a.options.values&amp;&amp;a.options.values.length){k=n=a.values(m)}else{k=n=a.value()}switch(c.keyCode){case b.ui.keyCode.HOME:n=a._valueMin();break;case b.ui.keyCode.END:n=a._valueMax();break;case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:if(k==a._valueMax()){return}n=k+j;break;case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:if(k==a._valueMin()){return}n=k-j;break}a._slide(c,m,n);return l}).keyup(function(c){var f=b(this).data(&quot;index.ui-slider-handle&quot;);if(a._keySliding){a._stop(c,f);a._change(c,f);a._keySliding=false;b(this).removeClass(&quot;ui-state-active&quot;)}});this._refreshValue()},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass(&quot;ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all&quot;).removeData(&quot;slider&quot;).unbind(&quot;.slider&quot;);this._mouseDestroy()},_mouseCapture:function(r){var q=this.options;if(q.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();var n={x:r.pageX,y:r.pageY};var l=this._normValueFromMouse(n);var u=this._valueMax()-this._valueMin()+1,p;var a=this,m;this.handles.each(function(d){var c=Math.abs(l-a.values(d));if(u&gt;c){u=c;p=b(this);m=d}});if(q.range==true&amp;&amp;this.values(1)==q.min){p=b(this.handles[++m])}this._start(r,m);a._handleIndex=m;p.addClass(&quot;ui-state-active&quot;).focus();var o=p.offset();var v=!b(r.target).parents().andSelf().is(&quot;.ui-slider-handle&quot;);this._clickOffset=v?{left:0,top:0}:{left:r.pageX-o.left-(p.width()/2),top:r.pageY-o.top-(p.height()/2)-(parseInt(p.css(&quot;borderTopWidth&quot;),10)||0)-(parseInt(p.css(&quot;borderBottomWidth&quot;),10)||0)+(parseInt(p.css(&quot;marginTop&quot;),10)||0)};l=this._normValueFromMouse(n);this._slide(r,m,l);return true},_mouseStart:function(a){return true},_mouseDrag:function(e){var a={x:e.pageX,y:e.pageY};var f=this._normValueFromMouse(a);this._slide(e,this._handleIndex,f);return false},_mouseStop:function(a){this.handles.removeClass(&quot;ui-state-active&quot;);this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._handleIndex=null;this._clickOffset=null;return false},_detectOrientation:function(){this.orientation=this.options.orientation==&quot;vertical&quot;?&quot;vertical&quot;:&quot;horizontal&quot;},_normValueFromMouse:function(o){var p,k;if(&quot;horizontal&quot;==this.orientation){p=this.elementSize.width;k=o.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{p=this.elementSize.height;k=o.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}var m=(k/p);if(m&gt;1){m=1}if(m&lt;0){m=0}if(&quot;vertical&quot;==this.orientation){m=1-m}var n=this._valueMax()-this._valueMin(),j=m*n,a=j%this.options.step,l=this._valueMin()+j-a;if(a&gt;(this.options.step/2)){l+=this.options.step}return parseFloat(l.toFixed(5))},_start:function(e,f){var a={handle:this.handles[f],value:this.value()};if(this.options.values&amp;&amp;this.options.values.length){a.value=this.values(f);a.values=this.values()}this._trigger(&quot;start&quot;,e,a)},_slide:function(l,m,n){var k=this.handles[m];if(this.options.values&amp;&amp;this.options.values.length){var a=this.values(m?0:1);if((m==0&amp;&amp;n&gt;=a)||(m==1&amp;&amp;n&lt;=a)){n=a}if(n!=this.values(m)){var o=this.values();o[m]=n;var j=this._trigger(&quot;slide&quot;,l,{handle:this.handles[m],value:n,values:o});var a=this.values(m?0:1);if(j!==false){this.values(m,n,(l.type==&quot;mousedown&quot;&amp;&amp;this.options.animate),true)}}}else{if(n!=this.value()){var j=this._trigger(&quot;slide&quot;,l,{handle:this.handles[m],value:n});if(j!==false){this._setData(&quot;value&quot;,n,(l.type==&quot;mousedown&quot;&amp;&amp;this.options.animate))}}}},_stop:function(e,f){var a={handle:this.handles[f],value:this.value()};if(this.options.values&amp;&amp;this.options.values.length){a.value=this.values(f);a.values=this.values()}this._trigger(&quot;stop&quot;,e,a)},_change:function(e,f){var a={handle:this.handles[f],value:this.value()};if(this.options.values&amp;&amp;this.options.values.length){a.value=this.values(f);a.values=this.values()}this._trigger(&quot;change&quot;,e,a)},value:function(a){if(arguments.length){this._setData(&quot;value&quot;,a);this._change(null,0)}return this._value()},values:function(a,f,h,g){if(arguments.length&gt;1){this.options.values[a]=f;this._refreshValue(h);if(!g){this._change(null,a)}}if(arguments.length){if(this.options.values&amp;&amp;this.options.values.length){return this._values(a)}else{return this.value()}}else{return this._values()}},_setData:function(a,e,f){b.widget.prototype._setData.apply(this,arguments);switch(a){case&quot;orientation&quot;:this._detectOrientation();this.element.removeClass(&quot;ui-slider-horizontal ui-slider-vertical&quot;).addClass(&quot;ui-slider-&quot;+this.orientation);this._refreshValue(f);break;case&quot;value&quot;:this._refreshValue(f);break}},_step:function(){var a=this.options.step;return a},_value:function(){var a=this.options.value;if(a&lt;this._valueMin()){a=this._valueMin()}if(a&gt;this._valueMax()){a=this._valueMax()}return a},_values:function(a){if(arguments.length){var d=this.options.values[a];if(d&lt;this._valueMin()){d=this._valueMin()}if(d&gt;this._valueMax()){d=this._valueMax()}return d}else{return this.options.values}},_valueMin:function(){var a=this.options.min;return a},_valueMax:function(){var a=this.options.max;return a},_refreshValue:function(w){var r=this.options.range,v=this.options,a=this;if(this.options.values&amp;&amp;this.options.values.length){var o,p;this.handles.each(function(d,f){var e=(a.values(d)-a._valueMin())/(a._valueMax()-a._valueMin())*100;var c={};c[a.orientation==&quot;horizontal&quot;?&quot;left&quot;:&quot;bottom&quot;]=e+&quot;%&quot;;b(this).stop(1,1)[w?&quot;animate&quot;:&quot;css&quot;](c,v.animate);if(a.options.range===true){if(a.orientation==&quot;horizontal&quot;){(d==0)&amp;&amp;a.range.stop(1,1)[w?&quot;animate&quot;:&quot;css&quot;]({left:e+&quot;%&quot;},v.animate);(d==1)&amp;&amp;a.range[w?&quot;animate&quot;:&quot;css&quot;]({width:(e-lastValPercent)+&quot;%&quot;},{queue:false,duration:v.animate})}else{(d==0)&amp;&amp;a.range.stop(1,1)[w?&quot;animate&quot;:&quot;css&quot;]({bottom:(e)+&quot;%&quot;},v.animate);(d==1)&amp;&amp;a.range[w?&quot;animate&quot;:&quot;css&quot;]({height:(e-lastValPercent)+&quot;%&quot;},{queue:false,duration:v.animate})}}lastValPercent=e})}else{var n=this.value(),q=this._valueMin(),m=this._valueMax(),u=m!=q?(n-q)/(m-q)*100:0;var x={};x[a.orientation==&quot;horizontal&quot;?&quot;left&quot;:&quot;bottom&quot;]=u+&quot;%&quot;;this.handle.stop(1,1)[w?&quot;animate&quot;:&quot;css&quot;](x,v.animate);(r==&quot;min&quot;)&amp;&amp;(this.orientation==&quot;horizontal&quot;)&amp;&amp;this.range.stop(1,1)[w?&quot;animate&quot;:&quot;css&quot;]({width:u+&quot;%&quot;},v.animate);(r==&quot;max&quot;)&amp;&amp;(this.orientation==&quot;horizontal&quot;)&amp;&amp;this.range[w?&quot;animate&quot;:&quot;css&quot;]({width:(100-u)+&quot;%&quot;},{queue:false,duration:v.animate});(r==&quot;min&quot;)&amp;&amp;(this.orientation==&quot;vertical&quot;)&amp;&amp;this.range.stop(1,1)[w?&quot;animate&quot;:&quot;css&quot;]({height:u+&quot;%&quot;},v.animate);(r==&quot;max&quot;)&amp;&amp;(this.orientation==&quot;vertical&quot;)&amp;&amp;this.range[w?&quot;animate&quot;:&quot;css&quot;]({height:(100-u)+&quot;%&quot;},{queue:false,duration:v.animate})}}}));b.extend(b.ui.slider,{getter:&quot;value values&quot;,version:&quot;1.7.1&quot;,eventPrefix:&quot;slide&quot;,defaults:{animate:false,delay:0,distance:0,max:100,min:0,orientation:&quot;horizontal&quot;,range:false,step:1,value:0,values:null}})})(jQuery);(function(b){b.widget(&quot;ui.tabs&quot;,{_init:function(){if(this.options.deselectable!==undefined){this.options.collapsible=this.options.deselectable}this._tabify(true)},_setData:function(a,d){if(a==&quot;selected&quot;){if(this.options.collapsible&amp;&amp;d==this.options.selected){return}this.select(d)}else{this.options[a]=d;if(a==&quot;deselectable&quot;){this.options.collapsible=d}this._tabify()}},_tabId:function(a){return a.title&amp;&amp;a.title.replace(/\s/g,&quot;_&quot;).replace(/[^A-Za-z0-9\-_:\.]/g,&quot;&quot;)||this.options.idPrefix+b.data(a)},_sanitizeSelector:function(a){return a.replace(/:/g,&quot;\\:&quot;)},_cookie:function(){var a=this.cookie||(this.cookie=this.options.cookie.name||&quot;ui-tabs-&quot;+b.data(this.list[0]));return b.cookie.apply(null,[a].concat(b.makeArray(arguments)))},_ui:function(d,a){return{tab:d,panel:a,index:this.anchors.index(d)}},_cleanup:function(){this.lis.filter(&quot;.ui-state-processing&quot;).removeClass(&quot;ui-state-processing&quot;).find(&quot;span:data(label.tabs)&quot;).each(function(){var a=b(this);a.html(a.data(&quot;label.tabs&quot;)).removeData(&quot;label.tabs&quot;)})},_tabify:function(o){this.list=this.element.children(&quot;ul:first&quot;);this.lis=b(&quot;li:has(a[href])&quot;,this.list);this.anchors=this.lis.map(function(){return b(&quot;a&quot;,this)[0]});this.panels=b([]);var a=this,A=this.options;var B=/^#.+/;this.anchors.each(function(g,j){var h=b(j).attr(&quot;href&quot;);var f=h.split(&quot;#&quot;)[0],e;if(f&amp;&amp;(f===location.toString().split(&quot;#&quot;)[0]||(e=b(&quot;base&quot;)[0])&amp;&amp;f===e.href)){h=j.hash;j.href=h}if(B.test(h)){a.panels=a.panels.add(a._sanitizeSelector(h))}else{if(h!=&quot;#&quot;){b.data(j,&quot;href.tabs&quot;,h);b.data(j,&quot;load.tabs&quot;,h.replace(/#.*$/,&quot;&quot;));var c=a._tabId(j);j.href=&quot;#&quot;+c;var d=b(&quot;#&quot;+c);if(!d.length){d=b(A.panelTemplate).attr(&quot;id&quot;,c).addClass(&quot;ui-tabs-panel ui-widget-content ui-corner-bottom&quot;).insertAfter(a.panels[g-1]||a.list);d.data(&quot;destroy.tabs&quot;,true)}a.panels=a.panels.add(d)}else{A.disabled.push(g)}}});if(o){this.element.addClass(&quot;ui-tabs ui-widget ui-widget-content ui-corner-all&quot;);this.list.addClass(&quot;ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all&quot;);this.lis.addClass(&quot;ui-state-default ui-corner-top&quot;);this.panels.addClass(&quot;ui-tabs-panel ui-widget-content ui-corner-bottom&quot;);if(A.selected===undefined){if(location.hash){this.anchors.each(function(c,d){if(d.hash==location.hash){A.selected=c;return false}})}if(typeof A.selected!=&quot;number&quot;&amp;&amp;A.cookie){A.selected=parseInt(a._cookie(),10)}if(typeof A.selected!=&quot;number&quot;&amp;&amp;this.lis.filter(&quot;.ui-tabs-selected&quot;).length){A.selected=this.lis.index(this.lis.filter(&quot;.ui-tabs-selected&quot;))}A.selected=A.selected||0}else{if(A.selected===null){A.selected=-1}}A.selected=((A.selected&gt;=0&amp;&amp;this.anchors[A.selected])||A.selected&lt;0)?A.selected:0;A.disabled=b.unique(A.disabled.concat(b.map(this.lis.filter(&quot;.ui-state-disabled&quot;),function(c,d){return a.lis.index(c)}))).sort();if(b.inArray(A.selected,A.disabled)!=-1){A.disabled.splice(b.inArray(A.selected,A.disabled),1)}this.panels.addClass(&quot;ui-tabs-hide&quot;);this.lis.removeClass(&quot;ui-tabs-selected ui-state-active&quot;);if(A.selected&gt;=0&amp;&amp;this.anchors.length){this.panels.eq(A.selected).removeClass(&quot;ui-tabs-hide&quot;);this.lis.eq(A.selected).addClass(&quot;ui-tabs-selected ui-state-active&quot;);a.element.queue(&quot;tabs&quot;,function(){a._trigger(&quot;show&quot;,null,a._ui(a.anchors[A.selected],a.panels[A.selected]))});this.load(A.selected)}b(window).bind(&quot;unload&quot;,function(){a.lis.add(a.anchors).unbind(&quot;.tabs&quot;);a.lis=a.anchors=a.panels=null})}else{A.selected=this.lis.index(this.lis.filter(&quot;.ui-tabs-selected&quot;))}this.element[A.collapsible?&quot;addClass&quot;:&quot;removeClass&quot;](&quot;ui-tabs-collapsible&quot;);if(A.cookie){this._cookie(A.selected,A.cookie)}for(var x=0,q;(q=this.lis[x]);x++){b(q)[b.inArray(x,A.disabled)!=-1&amp;&amp;!b(q).hasClass(&quot;ui-tabs-selected&quot;)?&quot;addClass&quot;:&quot;removeClass&quot;](&quot;ui-state-disabled&quot;)}if(A.cache===false){this.anchors.removeData(&quot;cache.tabs&quot;)}this.lis.add(this.anchors).unbind(&quot;.tabs&quot;);if(A.event!=&quot;mouseover&quot;){var y=function(d,c){if(c.is(&quot;:not(.ui-state-disabled)&quot;)){c.addClass(&quot;ui-state-&quot;+d)}};var v=function(d,c){c.removeClass(&quot;ui-state-&quot;+d)};this.lis.bind(&quot;mouseover.tabs&quot;,function(){y(&quot;hover&quot;,b(this))});this.lis.bind(&quot;mouseout.tabs&quot;,function(){v(&quot;hover&quot;,b(this))});this.anchors.bind(&quot;focus.tabs&quot;,function(){y(&quot;focus&quot;,b(this).closest(&quot;li&quot;))});this.anchors.bind(&quot;blur.tabs&quot;,function(){v(&quot;focus&quot;,b(this).closest(&quot;li&quot;))})}var C,w;if(A.fx){if(b.isArray(A.fx)){C=A.fx[0];w=A.fx[1]}else{C=w=A.fx}}function z(c,d){c.css({display:&quot;&quot;});if(b.browser.msie&amp;&amp;d.opacity){c[0].style.removeAttribute(&quot;filter&quot;)}}var u=w?function(c,d){b(c).closest(&quot;li&quot;).removeClass(&quot;ui-state-default&quot;).addClass(&quot;ui-tabs-selected ui-state-active&quot;);d.hide().removeClass(&quot;ui-tabs-hide&quot;).animate(w,w.duration||&quot;normal&quot;,function(){z(d,w);a._trigger(&quot;show&quot;,null,a._ui(c,d[0]))})}:function(c,d){b(c).closest(&quot;li&quot;).removeClass(&quot;ui-state-default&quot;).addClass(&quot;ui-tabs-selected ui-state-active&quot;);d.removeClass(&quot;ui-tabs-hide&quot;);a._trigger(&quot;show&quot;,null,a._ui(c,d[0]))};var r=C?function(d,c){c.animate(C,C.duration||&quot;normal&quot;,function(){a.lis.removeClass(&quot;ui-tabs-selected ui-state-active&quot;).addClass(&quot;ui-state-default&quot;);c.addClass(&quot;ui-tabs-hide&quot;);z(c,C);a.element.dequeue(&quot;tabs&quot;)})}:function(e,c,d){a.lis.removeClass(&quot;ui-tabs-selected ui-state-active&quot;).addClass(&quot;ui-state-default&quot;);c.addClass(&quot;ui-tabs-hide&quot;);a.element.dequeue(&quot;tabs&quot;)};this.anchors.bind(A.event+&quot;.tabs&quot;,function(){var f=this,d=b(this).closest(&quot;li&quot;),c=a.panels.filter(&quot;:not(.ui-tabs-hide)&quot;),e=b(a._sanitizeSelector(this.hash));if((d.hasClass(&quot;ui-tabs-selected&quot;)&amp;&amp;!A.collapsible)||d.hasClass(&quot;ui-state-disabled&quot;)||d.hasClass(&quot;ui-state-processing&quot;)||a._trigger(&quot;select&quot;,null,a._ui(this,e[0]))===false){this.blur();return false}A.selected=a.anchors.index(this);a.abort();if(A.collapsible){if(d.hasClass(&quot;ui-tabs-selected&quot;)){A.selected=-1;if(A.cookie){a._cookie(A.selected,A.cookie)}a.element.queue(&quot;tabs&quot;,function(){r(f,c)}).dequeue(&quot;tabs&quot;);this.blur();return false}else{if(!c.length){if(A.cookie){a._cookie(A.selected,A.cookie)}a.element.queue(&quot;tabs&quot;,function(){u(f,e)});a.load(a.anchors.index(this));this.blur();return false}}}if(A.cookie){a._cookie(A.selected,A.cookie)}if(e.length){if(c.length){a.element.queue(&quot;tabs&quot;,function(){r(f,c)})}a.element.queue(&quot;tabs&quot;,function(){u(f,e)});a.load(a.anchors.index(this))}else{throw&quot;jQuery UI Tabs: Mismatching fragment identifier.&quot;}if(b.browser.msie){this.blur()}});this.anchors.bind(&quot;click.tabs&quot;,function(){return false})},destroy:function(){var a=this.options;this.abort();this.element.unbind(&quot;.tabs&quot;).removeClass(&quot;ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible&quot;).removeData(&quot;tabs&quot;);this.list.removeClass(&quot;ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all&quot;);this.anchors.each(function(){var f=b.data(this,&quot;href.tabs&quot;);if(f){this.href=f}var e=b(this).unbind(&quot;.tabs&quot;);b.each([&quot;href&quot;,&quot;load&quot;,&quot;cache&quot;],function(d,c){e.removeData(c+&quot;.tabs&quot;)})});this.lis.unbind(&quot;.tabs&quot;).add(this.panels).each(function(){if(b.data(this,&quot;destroy.tabs&quot;)){b(this).remove()}else{b(this).removeClass([&quot;ui-state-default&quot;,&quot;ui-corner-top&quot;,&quot;ui-tabs-selected&quot;,&quot;ui-state-active&quot;,&quot;ui-state-hover&quot;,&quot;ui-state-focus&quot;,&quot;ui-state-disabled&quot;,&quot;ui-tabs-panel&quot;,&quot;ui-widget-content&quot;,&quot;ui-corner-bottom&quot;,&quot;ui-tabs-hide&quot;].join(&quot; &quot;))}});if(a.cookie){this._cookie(null,a.cookie)}},add:function(n,o,p){if(p===undefined){p=this.anchors.length}var a=this,l=this.options,j=b(l.tabTemplate.replace(/#\{href\}/g,n).replace(/#\{label\}/g,o)),k=!n.indexOf(&quot;#&quot;)?n.replace(&quot;#&quot;,&quot;&quot;):this._tabId(b(&quot;a&quot;,j)[0]);j.addClass(&quot;ui-state-default ui-corner-top&quot;).data(&quot;destroy.tabs&quot;,true);var m=b(&quot;#&quot;+k);if(!m.length){m=b(l.panelTemplate).attr(&quot;id&quot;,k).data(&quot;destroy.tabs&quot;,true)}m.addClass(&quot;ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide&quot;);if(p&gt;=this.lis.length){j.appendTo(this.list);m.appendTo(this.list[0].parentNode)}else{j.insertBefore(this.lis[p]);m.insertBefore(this.panels[p])}l.disabled=b.map(l.disabled,function(c,d){return c&gt;=p?++c:c});this._tabify();if(this.anchors.length==1){j.addClass(&quot;ui-tabs-selected ui-state-active&quot;);m.removeClass(&quot;ui-tabs-hide&quot;);this.element.queue(&quot;tabs&quot;,function(){a._trigger(&quot;show&quot;,null,a._ui(a.anchors[0],a.panels[0]))});this.load(0)}this._trigger(&quot;add&quot;,null,this._ui(this.anchors[p],this.panels[p]))},remove:function(a){var g=this.options,f=this.lis.eq(a).remove(),h=this.panels.eq(a).remove();if(f.hasClass(&quot;ui-tabs-selected&quot;)&amp;&amp;this.anchors.length&gt;1){this.select(a+(a+1&lt;this.anchors.length?1:-1))}g.disabled=b.map(b.grep(g.disabled,function(c,d){return c!=a}),function(c,d){return c&gt;=a?--c:c});this._tabify();this._trigger(&quot;remove&quot;,null,this._ui(f.find(&quot;a&quot;)[0],h[0]))},enable:function(a){var d=this.options;if(b.inArray(a,d.disabled)==-1){return}this.lis.eq(a).removeClass(&quot;ui-state-disabled&quot;);d.disabled=b.grep(d.disabled,function(c,f){return c!=a});this._trigger(&quot;enable&quot;,null,this._ui(this.anchors[a],this.panels[a]))},disable:function(f){var a=this,e=this.options;if(f!=e.selected){this.lis.eq(f).addClass(&quot;ui-state-disabled&quot;);e.disabled.push(f);e.disabled.sort();this._trigger(&quot;disable&quot;,null,this._ui(this.anchors[f],this.panels[f]))}},select:function(a){if(typeof a==&quot;string&quot;){a=this.anchors.index(this.anchors.filter(&quot;[href$=&quot;+a+&quot;]&quot;))}else{if(a===null){a=-1}}if(a==-1&amp;&amp;this.options.collapsible){a=this.options.selected}this.anchors.eq(a).trigger(this.options.event+&quot;.tabs&quot;)},load:function(k){var m=this,h=this.options,a=this.anchors.eq(k)[0],l=b.data(a,&quot;load.tabs&quot;);this.abort();if(!l||this.element.queue(&quot;tabs&quot;).length!==0&amp;&amp;b.data(a,&quot;cache.tabs&quot;)){this.element.dequeue(&quot;tabs&quot;);return}this.lis.eq(k).addClass(&quot;ui-state-processing&quot;);if(h.spinner){var j=b(&quot;span&quot;,a);j.data(&quot;label.tabs&quot;,j.html()).html(h.spinner)}this.xhr=b.ajax(b.extend({},h.ajaxOptions,{url:l,success:function(d,e){b(m._sanitizeSelector(a.hash)).html(d);m._cleanup();if(h.cache){b.data(a,&quot;cache.tabs&quot;,true)}m._trigger(&quot;load&quot;,null,m._ui(m.anchors[k],m.panels[k]));try{h.ajaxOptions.success(d,e)}catch(c){}m.element.dequeue(&quot;tabs&quot;)}}))},abort:function(){this.element.queue([]);this.panels.stop(false,true);if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup()},url:function(d,a){this.anchors.eq(d).removeData(&quot;cache.tabs&quot;).data(&quot;load.tabs&quot;,a)},length:function(){return this.anchors.length}});b.extend(b.ui.tabs,{version:&quot;1.7.1&quot;,getter:&quot;length&quot;,defaults:{ajaxOptions:null,cache:false,cookie:null,collapsible:false,disabled:[],event:&quot;click&quot;,fx:null,idPrefix:&quot;ui-tabs-&quot;,panelTemplate:&quot;&lt;div&gt;&lt;/div&gt;&quot;,spinner:&quot;&lt;em&gt;Loading&amp;#8230;&lt;/em&gt;&quot;,tabTemplate:'&lt;li&gt;&lt;a href=&quot;#{href}&quot;&gt;&lt;span&gt;#{label}&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;'}});b.extend(b.ui.tabs.prototype,{rotation:null,rotate:function(l,j){var a=this,h=this.options;var m=a._rotate||(a._rotate=function(c){clearTimeout(a.rotation);a.rotation=setTimeout(function(){var d=h.selected;a.select(++d&lt;a.anchors.length?d:0)},l);if(c){c.stopPropagation()}});var k=a._unrotate||(a._unrotate=!j?function(c){if(c.clientX){a.rotate(null)}}:function(c){t=h.selected;m()});if(l){this.element.bind(&quot;tabsshow&quot;,m);this.anchors.bind(h.event+&quot;.tabs&quot;,k);m()}else{clearTimeout(a.rotation);this.element.unbind(&quot;tabsshow&quot;,m);this.anchors.unbind(h.event+&quot;.tabs&quot;,k);delete this._rotate;delete this._unrotate}}})})(jQuery);(function($){$.extend($.ui,{datepicker:{version:&quot;1.7.1&quot;}});var PROP_NAME=&quot;datepicker&quot;;function Datepicker(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId=&quot;ui-datepicker-div&quot;;this._inlineClass=&quot;ui-datepicker-inline&quot;;this._appendClass=&quot;ui-datepicker-append&quot;;this._triggerClass=&quot;ui-datepicker-trigger&quot;;this._dialogClass=&quot;ui-datepicker-dialog&quot;;this._disableClass=&quot;ui-datepicker-disabled&quot;;this._unselectableClass=&quot;ui-datepicker-unselectable&quot;;this._currentClass=&quot;ui-datepicker-current-day&quot;;this._dayOverClass=&quot;ui-datepicker-days-cell-over&quot;;this.regional=[];this.regional[&quot;&quot;]={closeText:&quot;Done&quot;,prevText:&quot;Prev&quot;,nextText:&quot;Next&quot;,currentText:&quot;Today&quot;,monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],dateFormat:&quot;mm/dd/yy&quot;,firstDay:0,isRTL:false};this._defaults={showOn:&quot;focus&quot;,showAnim:&quot;show&quot;,showOptions:{},defaultDate:null,appendText:&quot;&quot;,buttonText:&quot;...&quot;,buttonImage:&quot;&quot;,buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,showMonthAfterYear:false,yearRange:&quot;-10:+10&quot;,showOtherMonths:false,calculateWeek:this.iso8601Week,shortYearCutoff:&quot;+10&quot;,minDate:null,maxDate:null,duration:&quot;normal&quot;,beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:&quot;&quot;,altFormat:&quot;&quot;,constrainInput:true,showButtonPanel:false};$.extend(this._defaults,this.regional[&quot;&quot;]);this.dpDiv=$('&lt;div id=&quot;'+this._mainDivId+'&quot; class=&quot;ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible&quot;&gt;&lt;/div&gt;')}$.extend(Datepicker.prototype,{markerClassName:&quot;hasDatepicker&quot;,log:function(){if(this.debug){console.log.apply(&quot;&quot;,arguments)}},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute(&quot;date:&quot;+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase();var inline=(nodeName==&quot;div&quot;||nodeName==&quot;span&quot;);if(!target.id){target.id=&quot;dp&quot;+(++this.uuid)}var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{});if(nodeName==&quot;input&quot;){this._connectDatepicker(target,inst)}else{if(inline){this._inlineDatepicker(target,inst)}}},_newInst:function(target,inline){var id=target[0].id.replace(/([:\[\]\.])/g,&quot;\\\\$1&quot;);return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:$('&lt;div class=&quot;'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all&quot;&gt;&lt;/div&gt;'))}},_connectDatepicker:function(target,inst){var input=$(target);inst.trigger=$([]);if(input.hasClass(this.markerClassName)){return}var appendText=this._get(inst,&quot;appendText&quot;);var isRTL=this._get(inst,&quot;isRTL&quot;);if(appendText){input[isRTL?&quot;before&quot;:&quot;after&quot;]('&lt;span class=&quot;'+this._appendClass+'&quot;&gt;'+appendText+&quot;&lt;/span&gt;&quot;)}var showOn=this._get(inst,&quot;showOn&quot;);if(showOn==&quot;focus&quot;||showOn==&quot;both&quot;){input.focus(this._showDatepicker)}if(showOn==&quot;button&quot;||showOn==&quot;both&quot;){var buttonText=this._get(inst,&quot;buttonText&quot;);var buttonImage=this._get(inst,&quot;buttonImage&quot;);inst.trigger=$(this._get(inst,&quot;buttonImageOnly&quot;)?$(&quot;&lt;img/&gt;&quot;).addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$('&lt;button type=&quot;button&quot;&gt;&lt;/button&gt;').addClass(this._triggerClass).html(buttonImage==&quot;&quot;?buttonText:$(&quot;&lt;img/&gt;&quot;).attr({src:buttonImage,alt:buttonText,title:buttonText})));input[isRTL?&quot;before&quot;:&quot;after&quot;](inst.trigger);inst.trigger.click(function(){if($.datepicker._datepickerShowing&amp;&amp;$.datepicker._lastInput==target){$.datepicker._hideDatepicker()}else{$.datepicker._showDatepicker(target)}return false})}input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind(&quot;setData.datepicker&quot;,function(event,key,value){inst.settings[key]=value}).bind(&quot;getData.datepicker&quot;,function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst)},_inlineDatepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName)){return}divSpan.addClass(this.markerClassName).append(inst.dpDiv).bind(&quot;setData.datepicker&quot;,function(event,key,value){inst.settings[key]=value}).bind(&quot;getData.datepicker&quot;,function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst);this._setDate(inst,this._getDefaultDate(inst));this._updateDatepicker(inst);this._updateAlternate(inst)},_dialogDatepicker:function(input,dateText,onSelect,settings,pos){var inst=this._dialogInst;if(!inst){var id=&quot;dp&quot;+(++this.uuid);this._dialogInput=$('&lt;input type=&quot;text&quot; id=&quot;'+id+'&quot; size=&quot;1&quot; style=&quot;position: absolute; top: -100px;&quot;/&gt;');this._dialogInput.keydown(this._doKeyDown);$(&quot;body&quot;).append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],PROP_NAME,inst)}extendRemove(inst.settings,settings||{});this._dialogInput.val(dateText);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){var browserWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var browserHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY]}this._dialogInput.css(&quot;left&quot;,this._pos[0]+&quot;px&quot;).css(&quot;top&quot;,this._pos[1]+&quot;px&quot;);inst.settings.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this.dpDiv)}$.data(this._dialogInput[0],PROP_NAME,inst);return this},_destroyDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();$.removeData(target,PROP_NAME);if(nodeName==&quot;input&quot;){inst.trigger.remove();$target.siblings(&quot;.&quot;+this._appendClass).remove().end().removeClass(this.markerClassName).unbind(&quot;focus&quot;,this._showDatepicker).unbind(&quot;keydown&quot;,this._doKeyDown).unbind(&quot;keypress&quot;,this._doKeyPress)}else{if(nodeName==&quot;div&quot;||nodeName==&quot;span&quot;){$target.removeClass(this.markerClassName).empty()}}},_enableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName==&quot;input&quot;){target.disabled=false;inst.trigger.filter(&quot;button&quot;).each(function(){this.disabled=false}).end().filter(&quot;img&quot;).css({opacity:&quot;1.0&quot;,cursor:&quot;&quot;})}else{if(nodeName==&quot;div&quot;||nodeName==&quot;span&quot;){var inline=$target.children(&quot;.&quot;+this._inlineClass);inline.children().removeClass(&quot;ui-state-disabled&quot;)}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)})},_disableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName==&quot;input&quot;){target.disabled=true;inst.trigger.filter(&quot;button&quot;).each(function(){this.disabled=true}).end().filter(&quot;img&quot;).css({opacity:&quot;0.5&quot;,cursor:&quot;default&quot;})}else{if(nodeName==&quot;div&quot;||nodeName==&quot;span&quot;){var inline=$target.children(&quot;.&quot;+this._inlineClass);inline.children().addClass(&quot;ui-state-disabled&quot;)}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)});this._disabledInputs[this._disabledInputs.length]=target},_isDisabledDatepicker:function(target){if(!target){return false}for(var i=0;i&lt;this._disabledInputs.length;i++){if(this._disabledInputs[i]==target){return true}}return false},_getInst:function(target){try{return $.data(target,PROP_NAME)}catch(err){throw&quot;Missing instance data for this datepicker&quot;}},_optionDatepicker:function(target,name,value){var settings=name||{};if(typeof name==&quot;string&quot;){settings={};settings[name]=value}var inst=this._getInst(target);if(inst){if(this._curInst==inst){this._hideDatepicker(null)}extendRemove(inst.settings,settings);var date=new Date();extendRemove(inst,{rangeStart:null,endDay:null,endMonth:null,endYear:null,selectedDay:date.getDate(),selectedMonth:date.getMonth(),selectedYear:date.getFullYear(),currentDay:date.getDate(),currentMonth:date.getMonth(),currentYear:date.getFullYear(),drawMonth:date.getMonth(),drawYear:date.getFullYear()});this._updateDatepicker(inst)}},_changeDatepicker:function(target,name,value){this._optionDatepicker(target,name,value)},_refreshDatepicker:function(target){var inst=this._getInst(target);if(inst){this._updateDatepicker(inst)}},_setDateDatepicker:function(target,date,endDate){var inst=this._getInst(target);if(inst){this._setDate(inst,date,endDate);this._updateDatepicker(inst);this._updateAlternate(inst)}},_getDateDatepicker:function(target){var inst=this._getInst(target);if(inst&amp;&amp;!inst.inline){this._setDateFromField(inst)}return(inst?this._getDate(inst):null)},_doKeyDown:function(event){var inst=$.datepicker._getInst(event.target);var handled=true;var isRTL=inst.dpDiv.is(&quot;.ui-datepicker-rtl&quot;);inst._keyEvent=true;if($.datepicker._datepickerShowing){switch(event.keyCode){case 9:$.datepicker._hideDatepicker(null,&quot;&quot;);break;case 13:var sel=$(&quot;td.&quot;+$.datepicker._dayOverClass+&quot;, td.&quot;+$.datepicker._currentClass,inst.dpDiv);if(sel[0]){$.datepicker._selectDay(event.target,inst.selectedMonth,inst.selectedYear,sel[0])}else{$.datepicker._hideDatepicker(null,$.datepicker._get(inst,&quot;duration&quot;))}return false;break;case 27:$.datepicker._hideDatepicker(null,$.datepicker._get(inst,&quot;duration&quot;));break;case 33:$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,&quot;stepBigMonths&quot;):-$.datepicker._get(inst,&quot;stepMonths&quot;)),&quot;M&quot;);break;case 34:$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,&quot;stepBigMonths&quot;):+$.datepicker._get(inst,&quot;stepMonths&quot;)),&quot;M&quot;);break;case 35:if(event.ctrlKey||event.metaKey){$.datepicker._clearDate(event.target)}handled=event.ctrlKey||event.metaKey;break;case 36:if(event.ctrlKey||event.metaKey){$.datepicker._gotoToday(event.target)}handled=event.ctrlKey||event.metaKey;break;case 37:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?+1:-1),&quot;D&quot;)}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,&quot;stepBigMonths&quot;):-$.datepicker._get(inst,&quot;stepMonths&quot;)),&quot;M&quot;)}break;case 38:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,-7,&quot;D&quot;)}handled=event.ctrlKey||event.metaKey;break;case 39:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?-1:+1),&quot;D&quot;)}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,&quot;stepBigMonths&quot;):+$.datepicker._get(inst,&quot;stepMonths&quot;)),&quot;M&quot;)}break;case 40:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,+7,&quot;D&quot;)}handled=event.ctrlKey||event.metaKey;break;default:handled=false}}else{if(event.keyCode==36&amp;&amp;event.ctrlKey){$.datepicker._showDatepicker(this)}else{handled=false}}if(handled){event.preventDefault();event.stopPropagation()}},_doKeyPress:function(event){var inst=$.datepicker._getInst(event.target);if($.datepicker._get(inst,&quot;constrainInput&quot;)){var chars=$.datepicker._possibleChars($.datepicker._get(inst,&quot;dateFormat&quot;));var chr=String.fromCharCode(event.charCode==undefined?event.keyCode:event.charCode);return event.ctrlKey||(chr&lt;&quot; &quot;||!chars||chars.indexOf(chr)&gt;-1)}},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!=&quot;input&quot;){input=$(&quot;input&quot;,input.parentNode)[0]}if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input){return}var inst=$.datepicker._getInst(input);var beforeShow=$.datepicker._get(inst,&quot;beforeShow&quot;);extendRemove(inst.settings,(beforeShow?beforeShow.apply(input,[input,inst]):{}));$.datepicker._hideDatepicker(null,&quot;&quot;);$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog){input.value=&quot;&quot;}if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight}var isFixed=false;$(input).parents().each(function(){isFixed|=$(this).css(&quot;position&quot;)==&quot;fixed&quot;;return !isFixed});if(isFixed&amp;&amp;$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=document.documentElement.scrollTop}var offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;inst.rangeStart=null;inst.dpDiv.css({position:&quot;absolute&quot;,display:&quot;block&quot;,top:&quot;-1000px&quot;});$.datepicker._updateDatepicker(inst);offset=$.datepicker._checkOffset(inst,offset,isFixed);inst.dpDiv.css({position:($.datepicker._inDialog&amp;&amp;$.blockUI?&quot;static&quot;:(isFixed?&quot;fixed&quot;:&quot;absolute&quot;)),display:&quot;none&quot;,left:offset.left+&quot;px&quot;,top:offset.top+&quot;px&quot;});if(!inst.inline){var showAnim=$.datepicker._get(inst,&quot;showAnim&quot;)||&quot;show&quot;;var duration=$.datepicker._get(inst,&quot;duration&quot;);var postProcess=function(){$.datepicker._datepickerShowing=true;if($.browser.msie&amp;&amp;parseInt($.browser.version,10)&lt;7){$(&quot;iframe.ui-datepicker-cover&quot;).css({width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4})}};if($.effects&amp;&amp;$.effects[showAnim]){inst.dpDiv.show(showAnim,$.datepicker._get(inst,&quot;showOptions&quot;),duration,postProcess)}else{inst.dpDiv[showAnim](duration,postProcess)}if(duration==&quot;&quot;){postProcess()}if(inst.input[0].type!=&quot;hidden&quot;){inst.input[0].focus()}$.datepicker._curInst=inst}},_updateDatepicker:function(inst){var dims={width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4};var self=this;inst.dpDiv.empty().append(this._generateHTML(inst)).find(&quot;iframe.ui-datepicker-cover&quot;).css({width:dims.width,height:dims.height}).end().find(&quot;button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a&quot;).bind(&quot;mouseout&quot;,function(){$(this).removeClass(&quot;ui-state-hover&quot;);if(this.className.indexOf(&quot;ui-datepicker-prev&quot;)!=-1){$(this).removeClass(&quot;ui-datepicker-prev-hover&quot;)}if(this.className.indexOf(&quot;ui-datepicker-next&quot;)!=-1){$(this).removeClass(&quot;ui-datepicker-next-hover&quot;)}}).bind(&quot;mouseover&quot;,function(){if(!self._isDisabledDatepicker(inst.inline?inst.dpDiv.parent()[0]:inst.input[0])){$(this).parents(&quot;.ui-datepicker-calendar&quot;).find(&quot;a&quot;).removeClass(&quot;ui-state-hover&quot;);$(this).addClass(&quot;ui-state-hover&quot;);if(this.className.indexOf(&quot;ui-datepicker-prev&quot;)!=-1){$(this).addClass(&quot;ui-datepicker-prev-hover&quot;)}if(this.className.indexOf(&quot;ui-datepicker-next&quot;)!=-1){$(this).addClass(&quot;ui-datepicker-next-hover&quot;)}}}).end().find(&quot;.&quot;+this._dayOverClass+&quot; a&quot;).trigger(&quot;mouseover&quot;).end();var numMonths=this._getNumberOfMonths(inst);var cols=numMonths[1];var width=17;if(cols&gt;1){inst.dpDiv.addClass(&quot;ui-datepicker-multi-&quot;+cols).css(&quot;width&quot;,(width*cols)+&quot;em&quot;)}else{inst.dpDiv.removeClass(&quot;ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4&quot;).width(&quot;&quot;)}inst.dpDiv[(numMonths[0]!=1||numMonths[1]!=1?&quot;add&quot;:&quot;remove&quot;)+&quot;Class&quot;](&quot;ui-datepicker-multi&quot;);inst.dpDiv[(this._get(inst,&quot;isRTL&quot;)?&quot;add&quot;:&quot;remove&quot;)+&quot;Class&quot;](&quot;ui-datepicker-rtl&quot;);if(inst.input&amp;&amp;inst.input[0].type!=&quot;hidden&quot;&amp;&amp;inst==$.datepicker._curInst){$(inst.input[0]).focus()}},_checkOffset:function(inst,offset,isFixed){var dpWidth=inst.dpDiv.outerWidth();var dpHeight=inst.dpDiv.outerHeight();var inputWidth=inst.input?inst.input.outerWidth():0;var inputHeight=inst.input?inst.input.outerHeight():0;var viewWidth=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)+$(document).scrollLeft();var viewHeight=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)+$(document).scrollTop();offset.left-=(this._get(inst,&quot;isRTL&quot;)?(dpWidth-inputWidth):0);offset.left-=(isFixed&amp;&amp;offset.left==inst.input.offset().left)?$(document).scrollLeft():0;offset.top-=(isFixed&amp;&amp;offset.top==(inst.input.offset().top+inputHeight))?$(document).scrollTop():0;offset.left-=(offset.left+dpWidth&gt;viewWidth&amp;&amp;viewWidth&gt;dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0;offset.top-=(offset.top+dpHeight&gt;viewHeight&amp;&amp;viewHeight&gt;dpHeight)?Math.abs(offset.top+dpHeight+inputHeight*2-viewHeight):0;return offset},_findPos:function(obj){while(obj&amp;&amp;(obj.type==&quot;hidden&quot;||obj.nodeType!=1)){obj=obj.nextSibling}var position=$(obj).offset();return[position.left,position.top]},_hideDatepicker:function(input,duration){var inst=this._curInst;if(!inst||(input&amp;&amp;inst!=$.data(input,PROP_NAME))){return}if(inst.stayOpen){this._selectDate(&quot;#&quot;+inst.id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear))}inst.stayOpen=false;if(this._datepickerShowing){duration=(duration!=null?duration:this._get(inst,&quot;duration&quot;));var showAnim=this._get(inst,&quot;showAnim&quot;);var postProcess=function(){$.datepicker._tidyDialog(inst)};if(duration!=&quot;&quot;&amp;&amp;$.effects&amp;&amp;$.effects[showAnim]){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,&quot;showOptions&quot;),duration,postProcess)}else{inst.dpDiv[(duration==&quot;&quot;?&quot;hide&quot;:(showAnim==&quot;slideDown&quot;?&quot;slideUp&quot;:(showAnim==&quot;fadeIn&quot;?&quot;fadeOut&quot;:&quot;hide&quot;)))](duration,postProcess)}if(duration==&quot;&quot;){this._tidyDialog(inst)}var onClose=this._get(inst,&quot;onClose&quot;);if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():&quot;&quot;),inst])}this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:&quot;absolute&quot;,left:&quot;0&quot;,top:&quot;-100px&quot;});if($.blockUI){$.unblockUI();$(&quot;body&quot;).append(this.dpDiv)}}this._inDialog=false}this._curInst=null},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind(&quot;.ui-datepicker-calendar&quot;)},_checkExternalClick:function(event){if(!$.datepicker._curInst){return}var $target=$(event.target);if(($target.parents(&quot;#&quot;+$.datepicker._mainDivId).length==0)&amp;&amp;!$target.hasClass($.datepicker.markerClassName)&amp;&amp;!$target.hasClass($.datepicker._triggerClass)&amp;&amp;$.datepicker._datepickerShowing&amp;&amp;!($.datepicker._inDialog&amp;&amp;$.blockUI)){$.datepicker._hideDatepicker(null,&quot;&quot;)}},_adjustDate:function(id,offset,period){var target=$(id);var inst=this._getInst(target[0]);if(this._isDisabledDatepicker(target[0])){return}this._adjustInstDate(inst,offset+(period==&quot;M&quot;?this._get(inst,&quot;showCurrentAtPos&quot;):0),period);this._updateDatepicker(inst)},_gotoToday:function(id){var target=$(id);var inst=this._getInst(target[0]);if(this._get(inst,&quot;gotoCurrent&quot;)&amp;&amp;inst.currentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear}else{var date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear()}this._notifyChange(inst);this._adjustDate(target)},_selectMonthYear:function(id,select,period){var target=$(id);var inst=this._getInst(target[0]);inst._selectingMonthYear=false;inst[&quot;selected&quot;+(period==&quot;M&quot;?&quot;Month&quot;:&quot;Year&quot;)]=inst[&quot;draw&quot;+(period==&quot;M&quot;?&quot;Month&quot;:&quot;Year&quot;)]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target)},_clickMonthYear:function(id){var target=$(id);var inst=this._getInst(target[0]);if(inst.input&amp;&amp;inst._selectingMonthYear&amp;&amp;!$.browser.msie){inst.input[0].focus()}inst._selectingMonthYear=!inst._selectingMonthYear},_selectDay:function(id,month,year,td){var target=$(id);if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0])){return}var inst=this._getInst(target[0]);inst.selectedDay=inst.currentDay=$(&quot;a&quot;,td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;if(inst.stayOpen){inst.endDay=inst.endMonth=inst.endYear=null}this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear));if(inst.stayOpen){inst.rangeStart=this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay));this._updateDatepicker(inst)}},_clearDate:function(id){var target=$(id);var inst=this._getInst(target[0]);inst.stayOpen=false;inst.endDay=inst.endMonth=inst.endYear=inst.rangeStart=null;this._selectDate(target,&quot;&quot;)},_selectDate:function(id,dateStr){var target=$(id);var inst=this._getInst(target[0]);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(inst.input){inst.input.val(dateStr)}this._updateAlternate(inst);var onSelect=this._get(inst,&quot;onSelect&quot;);if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])}else{if(inst.input){inst.input.trigger(&quot;change&quot;)}}if(inst.inline){this._updateDatepicker(inst)}else{if(!inst.stayOpen){this._hideDatepicker(null,this._get(inst,&quot;duration&quot;));this._lastInput=inst.input[0];if(typeof(inst.input[0])!=&quot;object&quot;){inst.input[0].focus()}this._lastInput=null}}},_updateAlternate:function(inst){var altField=this._get(inst,&quot;altField&quot;);if(altField){var altFormat=this._get(inst,&quot;altFormat&quot;)||this._get(inst,&quot;dateFormat&quot;);var date=this._getDate(inst);dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));$(altField).each(function(){$(this).val(dateStr)})}},noWeekends:function(date){var day=date.getDay();return[(day&gt;0&amp;&amp;day&lt;6),&quot;&quot;]},iso8601Week:function(date){var checkDate=new Date(date.getFullYear(),date.getMonth(),date.getDate());var firstMon=new Date(checkDate.getFullYear(),1-1,4);var firstDay=firstMon.getDay()||7;firstMon.setDate(firstMon.getDate()+1-firstDay);if(firstDay&lt;4&amp;&amp;checkDate&lt;firstMon){checkDate.setDate(checkDate.getDate()-3);return $.datepicker.iso8601Week(checkDate)}else{if(checkDate&gt;new Date(checkDate.getFullYear(),12-1,28)){firstDay=new Date(checkDate.getFullYear()+1,1-1,4).getDay()||7;if(firstDay&gt;4&amp;&amp;(checkDate.getDay()||7)&lt;firstDay-3){return 1}}}return Math.floor(((checkDate-firstMon)/86400000)/7)+1},parseDate:function(format,value,settings){if(format==null||value==null){throw&quot;Invalid arguments&quot;}value=(typeof value==&quot;object&quot;?value.toString():value+&quot;&quot;);if(value==&quot;&quot;){return null}var shortYearCutoff=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff;var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var year=-1;var month=-1;var day=-1;var doy=-1;var literal=false;var lookAhead=function(match){var matches=(iFormat+1&lt;format.length&amp;&amp;format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var getNumber=function(match){lookAhead(match);var origSize=(match==&quot;@&quot;?14:(match==&quot;y&quot;?4:(match==&quot;o&quot;?3:2)));var size=origSize;var num=0;while(size&gt;0&amp;&amp;iValue&lt;value.length&amp;&amp;value.charAt(iValue)&gt;=&quot;0&quot;&amp;&amp;value.charAt(iValue)&lt;=&quot;9&quot;){num=num*10+parseInt(value.charAt(iValue++),10);size--}if(size==origSize){throw&quot;Missing number at position &quot;+iValue}return num};var getName=function(match,shortNames,longNames){var names=(lookAhead(match)?longNames:shortNames);var size=0;for(var j=0;j&lt;names.length;j++){size=Math.max(size,names[j].length)}var name=&quot;&quot;;var iInit=iValue;while(size&gt;0&amp;&amp;iValue&lt;value.length){name+=value.charAt(iValue++);for(var i=0;i&lt;names.length;i++){if(name==names[i]){return i+1}}size--}throw&quot;Unknown name at position &quot;+iInit};var checkLiteral=function(){if(value.charAt(iValue)!=format.charAt(iFormat)){throw&quot;Unexpected literal at position &quot;+iValue}iValue++};var iValue=0;for(var iFormat=0;iFormat&lt;format.length;iFormat++){if(literal){if(format.charAt(iFormat)==&quot;'&quot;&amp;&amp;!lookAhead(&quot;'&quot;)){literal=false}else{checkLiteral()}}else{switch(format.charAt(iFormat)){case&quot;d&quot;:day=getNumber(&quot;d&quot;);break;case&quot;D&quot;:getName(&quot;D&quot;,dayNamesShort,dayNames);break;case&quot;o&quot;:doy=getNumber(&quot;o&quot;);break;case&quot;m&quot;:month=getNumber(&quot;m&quot;);break;case&quot;M&quot;:month=getName(&quot;M&quot;,monthNamesShort,monthNames);break;case&quot;y&quot;:year=getNumber(&quot;y&quot;);break;case&quot;@&quot;:var date=new Date(getNumber(&quot;@&quot;));year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case&quot;'&quot;:if(lookAhead(&quot;'&quot;)){checkLiteral()}else{literal=true}break;default:checkLiteral()}}}if(year==-1){year=new Date().getFullYear()}else{if(year&lt;100){year+=new Date().getFullYear()-new Date().getFullYear()%100+(year&lt;=shortYearCutoff?0:-100)}}if(doy&gt;-1){month=1;day=doy;do{var dim=this._getDaysInMonth(year,month-1);if(day&lt;=dim){break}month++;day-=dim}while(true)}var date=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw&quot;Invalid date&quot;}return date},ATOM:&quot;yy-mm-dd&quot;,COOKIE:&quot;D, dd M yy&quot;,ISO_8601:&quot;yy-mm-dd&quot;,RFC_822:&quot;D, d M y&quot;,RFC_850:&quot;DD, dd-M-y&quot;,RFC_1036:&quot;D, d M y&quot;,RFC_1123:&quot;D, d M yy&quot;,RFC_2822:&quot;D, d M yy&quot;,RSS:&quot;D, d M y&quot;,TIMESTAMP:&quot;@&quot;,W3C:&quot;yy-mm-dd&quot;,formatDate:function(format,date,settings){if(!date){return&quot;&quot;}var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var lookAhead=function(match){var matches=(iFormat+1&lt;format.length&amp;&amp;format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var formatNumber=function(match,value,len){var num=&quot;&quot;+value;if(lookAhead(match)){while(num.length&lt;len){num=&quot;0&quot;+num}}return num};var formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value])};var output=&quot;&quot;;var literal=false;if(date){for(var iFormat=0;iFormat&lt;format.length;iFormat++){if(literal){if(format.charAt(iFormat)==&quot;'&quot;&amp;&amp;!lookAhead(&quot;'&quot;)){literal=false}else{output+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case&quot;d&quot;:output+=formatNumber(&quot;d&quot;,date.getDate(),2);break;case&quot;D&quot;:output+=formatName(&quot;D&quot;,date.getDay(),dayNamesShort,dayNames);break;case&quot;o&quot;:var doy=date.getDate();for(var m=date.getMonth()-1;m&gt;=0;m--){doy+=this._getDaysInMonth(date.getFullYear(),m)}output+=formatNumber(&quot;o&quot;,doy,3);break;case&quot;m&quot;:output+=formatNumber(&quot;m&quot;,date.getMonth()+1,2);break;case&quot;M&quot;:output+=formatName(&quot;M&quot;,date.getMonth(),monthNamesShort,monthNames);break;case&quot;y&quot;:output+=(lookAhead(&quot;y&quot;)?date.getFullYear():(date.getYear()%100&lt;10?&quot;0&quot;:&quot;&quot;)+date.getYear()%100);break;case&quot;@&quot;:output+=date.getTime();break;case&quot;'&quot;:if(lookAhead(&quot;'&quot;)){output+=&quot;'&quot;}else{literal=true}break;default:output+=format.charAt(iFormat)}}}}return output},_possibleChars:function(format){var chars=&quot;&quot;;var literal=false;for(var iFormat=0;iFormat&lt;format.length;iFormat++){if(literal){if(format.charAt(iFormat)==&quot;'&quot;&amp;&amp;!lookAhead(&quot;'&quot;)){literal=false}else{chars+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case&quot;d&quot;:case&quot;m&quot;:case&quot;y&quot;:case&quot;@&quot;:chars+=&quot;0123456789&quot;;break;case&quot;D&quot;:case&quot;M&quot;:return null;case&quot;'&quot;:if(lookAhead(&quot;'&quot;)){chars+=&quot;'&quot;}else{literal=true}break;default:chars+=format.charAt(iFormat)}}}return chars},_get:function(inst,name){return inst.settings[name]!==undefined?inst.settings[name]:this._defaults[name]},_setDateFromField:function(inst){var dateFormat=this._get(inst,&quot;dateFormat&quot;);var dates=inst.input?inst.input.val():null;inst.endDay=inst.endMonth=inst.endYear=null;var date=defaultDate=this._getDefaultDate(inst);var settings=this._getFormatConfig(inst);try{date=this.parseDate(dateFormat,dates,settings)||defaultDate}catch(event){this.log(event);date=defaultDate}inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(dates?date.getDate():0);inst.currentMonth=(dates?date.getMonth():0);inst.currentYear=(dates?date.getFullYear():0);this._adjustInstDate(inst)},_getDefaultDate:function(inst){var date=this._determineDate(this._get(inst,&quot;defaultDate&quot;),new Date());var minDate=this._getMinMaxDate(inst,&quot;min&quot;,true);var maxDate=this._getMinMaxDate(inst,&quot;max&quot;);date=(minDate&amp;&amp;date&lt;minDate?minDate:date);date=(maxDate&amp;&amp;date&gt;maxDate?maxDate:date);return date},_determineDate:function(date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date};var offsetString=function(offset,getDaysInMonth){var date=new Date();var year=date.getFullYear();var month=date.getMonth();var day=date.getDate();var pattern=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;var matches=pattern.exec(offset);while(matches){switch(matches[2]||&quot;d&quot;){case&quot;d&quot;:case&quot;D&quot;:day+=parseInt(matches[1],10);break;case&quot;w&quot;:case&quot;W&quot;:day+=parseInt(matches[1],10)*7;break;case&quot;m&quot;:case&quot;M&quot;:month+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break;case&quot;y&quot;:case&quot;Y&quot;:year+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break}matches=pattern.exec(offset)}return new Date(year,month,day)};date=(date==null?defaultDate:(typeof date==&quot;string&quot;?offsetString(date,this._getDaysInMonth):(typeof date==&quot;number&quot;?(isNaN(date)?defaultDate:offsetNumeric(date)):date)));date=(date&amp;&amp;date.toString()==&quot;Invalid Date&quot;?defaultDate:date);if(date){date.setHours(0);date.setMinutes(0);date.setSeconds(0);date.setMilliseconds(0)}return this._daylightSavingAdjust(date)},_daylightSavingAdjust:function(date){if(!date){return null}date.setHours(date.getHours()&gt;12?date.getHours()+2:0);return date},_setDate:function(inst,date,endDate){var clear=!(date);var origMonth=inst.selectedMonth;var origYear=inst.selectedYear;date=this._determineDate(date,new Date());inst.selectedDay=inst.currentDay=date.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=date.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=date.getFullYear();if(origMonth!=inst.selectedMonth||origYear!=inst.selectedYear){this._notifyChange(inst)}this._adjustInstDate(inst);if(inst.input){inst.input.val(clear?&quot;&quot;:this._formatDate(inst))}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&amp;&amp;inst.input.val()==&quot;&quot;)?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return startDate},_generateHTML:function(inst){var today=new Date();today=this._daylightSavingAdjust(new Date(today.getFullYear(),today.getMonth(),today.getDate()));var isRTL=this._get(inst,&quot;isRTL&quot;);var showButtonPanel=this._get(inst,&quot;showButtonPanel&quot;);var hideIfNoPrevNext=this._get(inst,&quot;hideIfNoPrevNext&quot;);var navigationAsDateFormat=this._get(inst,&quot;navigationAsDateFormat&quot;);var numMonths=this._getNumberOfMonths(inst);var showCurrentAtPos=this._get(inst,&quot;showCurrentAtPos&quot;);var stepMonths=this._get(inst,&quot;stepMonths&quot;);var stepBigMonths=this._get(inst,&quot;stepBigMonths&quot;);var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);var currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));var minDate=this._getMinMaxDate(inst,&quot;min&quot;,true);var maxDate=this._getMinMaxDate(inst,&quot;max&quot;);var drawMonth=inst.drawMonth-showCurrentAtPos;var drawYear=inst.drawYear;if(drawMonth&lt;0){drawMonth+=12;drawYear--}if(maxDate){var maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-numMonths[1]+1,maxDate.getDate()));maxDraw=(minDate&amp;&amp;maxDraw&lt;minDate?minDate:maxDraw);while(this._daylightSavingAdjust(new Date(drawYear,drawMonth,1))&gt;maxDraw){drawMonth--;if(drawMonth&lt;0){drawMonth=11;drawYear--}}}inst.drawMonth=drawMonth;inst.drawYear=drawYear;var prevText=this._get(inst,&quot;prevText&quot;);prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));var prev=(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?'&lt;a class=&quot;ui-datepicker-prev ui-corner-all&quot; onclick=&quot;DP_jQuery.datepicker._adjustDate(\'#'+inst.id+&quot;', -&quot;+stepMonths+&quot;, 'M');\&quot; title=\&quot;&quot;+prevText+'&quot;&gt;&lt;span class=&quot;ui-icon ui-icon-circle-triangle-'+(isRTL?&quot;e&quot;:&quot;w&quot;)+'&quot;&gt;'+prevText+&quot;&lt;/span&gt;&lt;/a&gt;&quot;:(hideIfNoPrevNext?&quot;&quot;:'&lt;a class=&quot;ui-datepicker-prev ui-corner-all ui-state-disabled&quot; title=&quot;'+prevText+'&quot;&gt;&lt;span class=&quot;ui-icon ui-icon-circle-triangle-'+(isRTL?&quot;e&quot;:&quot;w&quot;)+'&quot;&gt;'+prevText+&quot;&lt;/span&gt;&lt;/a&gt;&quot;));var nextText=this._get(inst,&quot;nextText&quot;);nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));var next=(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?'&lt;a class=&quot;ui-datepicker-next ui-corner-all&quot; onclick=&quot;DP_jQuery.datepicker._adjustDate(\'#'+inst.id+&quot;', +&quot;+stepMonths+&quot;, 'M');\&quot; title=\&quot;&quot;+nextText+'&quot;&gt;&lt;span class=&quot;ui-icon ui-icon-circle-triangle-'+(isRTL?&quot;w&quot;:&quot;e&quot;)+'&quot;&gt;'+nextText+&quot;&lt;/span&gt;&lt;/a&gt;&quot;:(hideIfNoPrevNext?&quot;&quot;:'&lt;a class=&quot;ui-datepicker-next ui-corner-all ui-state-disabled&quot; title=&quot;'+nextText+'&quot;&gt;&lt;span class=&quot;ui-icon ui-icon-circle-triangle-'+(isRTL?&quot;w&quot;:&quot;e&quot;)+'&quot;&gt;'+nextText+&quot;&lt;/span&gt;&lt;/a&gt;&quot;));var currentText=this._get(inst,&quot;currentText&quot;);var gotoDate=(this._get(inst,&quot;gotoCurrent&quot;)&amp;&amp;inst.currentDay?currentDate:today);currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));var controls=(!inst.inline?'&lt;button type=&quot;button&quot; class=&quot;ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all&quot; onclick=&quot;DP_jQuery.datepicker._hideDatepicker();&quot;&gt;'+this._get(inst,&quot;closeText&quot;)+&quot;&lt;/button&gt;&quot;:&quot;&quot;);var buttonPanel=(showButtonPanel)?'&lt;div class=&quot;ui-datepicker-buttonpane ui-widget-content&quot;&gt;'+(isRTL?controls:&quot;&quot;)+(this._isInRange(inst,gotoDate)?'&lt;button type=&quot;button&quot; class=&quot;ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all&quot; onclick=&quot;DP_jQuery.datepicker._gotoToday(\'#'+inst.id+&quot;');\&quot;&gt;&quot;+currentText+&quot;&lt;/button&gt;&quot;:&quot;&quot;)+(isRTL?&quot;&quot;:controls)+&quot;&lt;/div&gt;&quot;:&quot;&quot;;var firstDay=parseInt(this._get(inst,&quot;firstDay&quot;),10);firstDay=(isNaN(firstDay)?0:firstDay);var dayNames=this._get(inst,&quot;dayNames&quot;);var dayNamesShort=this._get(inst,&quot;dayNamesShort&quot;);var dayNamesMin=this._get(inst,&quot;dayNamesMin&quot;);var monthNames=this._get(inst,&quot;monthNames&quot;);var monthNamesShort=this._get(inst,&quot;monthNamesShort&quot;);var beforeShowDay=this._get(inst,&quot;beforeShowDay&quot;);var showOtherMonths=this._get(inst,&quot;showOtherMonths&quot;);var calculateWeek=this._get(inst,&quot;calculateWeek&quot;)||this.iso8601Week;var endDate=inst.endDay?this._daylightSavingAdjust(new Date(inst.endYear,inst.endMonth,inst.endDay)):currentDate;var defaultDate=this._getDefaultDate(inst);var html=&quot;&quot;;for(var row=0;row&lt;numMonths[0];row++){var group=&quot;&quot;;for(var col=0;col&lt;numMonths[1];col++){var selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));var cornerClass=&quot; ui-corner-all&quot;;var calender=&quot;&quot;;if(isMultiMonth){calender+='&lt;div class=&quot;ui-datepicker-group ui-datepicker-group-';switch(col){case 0:calender+=&quot;first&quot;;cornerClass=&quot; ui-corner-&quot;+(isRTL?&quot;right&quot;:&quot;left&quot;);break;case numMonths[1]-1:calender+=&quot;last&quot;;cornerClass=&quot; ui-corner-&quot;+(isRTL?&quot;left&quot;:&quot;right&quot;);break;default:calender+=&quot;middle&quot;;cornerClass=&quot;&quot;;break}calender+='&quot;&gt;'}calender+='&lt;div class=&quot;ui-datepicker-header ui-widget-header ui-helper-clearfix'+cornerClass+'&quot;&gt;'+(/all|left/.test(cornerClass)&amp;&amp;row==0?(isRTL?next:prev):&quot;&quot;)+(/all|right/.test(cornerClass)&amp;&amp;row==0?(isRTL?prev:next):&quot;&quot;)+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,row&gt;0||col&gt;0,monthNames,monthNamesShort)+'&lt;/div&gt;&lt;table class=&quot;ui-datepicker-calendar&quot;&gt;&lt;thead&gt;&lt;tr&gt;';var thead=&quot;&quot;;for(var dow=0;dow&lt;7;dow++){var day=(dow+firstDay)%7;thead+=&quot;&lt;th&quot;+((dow+firstDay+6)%7&gt;=5?' class=&quot;ui-datepicker-week-end&quot;':&quot;&quot;)+'&gt;&lt;span title=&quot;'+dayNames[day]+'&quot;&gt;'+dayNamesMin[day]+&quot;&lt;/span&gt;&lt;/th&gt;&quot;}calender+=thead+&quot;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&quot;;var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear==inst.selectedYear&amp;&amp;drawMonth==inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth)}var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;var numRows=(isMultiMonth?6:Math.ceil((leadDays+daysInMonth)/7));var printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(var dRow=0;dRow&lt;numRows;dRow++){calender+=&quot;&lt;tr&gt;&quot;;var tbody=&quot;&quot;;for(var dow=0;dow&lt;7;dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,&quot;&quot;]);var otherMonth=(printDate.getMonth()!=drawMonth);var unselectable=otherMonth||!daySettings[0]||(minDate&amp;&amp;printDate&lt;minDate)||(maxDate&amp;&amp;printDate&gt;maxDate);tbody+='&lt;td class=&quot;'+((dow+firstDay+6)%7&gt;=5?&quot; ui-datepicker-week-end&quot;:&quot;&quot;)+(otherMonth?&quot; ui-datepicker-other-month&quot;:&quot;&quot;)+((printDate.getTime()==selectedDate.getTime()&amp;&amp;drawMonth==inst.selectedMonth&amp;&amp;inst._keyEvent)||(defaultDate.getTime()==printDate.getTime()&amp;&amp;defaultDate.getTime()==selectedDate.getTime())?&quot; &quot;+this._dayOverClass:&quot;&quot;)+(unselectable?&quot; &quot;+this._unselectableClass+&quot; ui-state-disabled&quot;:&quot;&quot;)+(otherMonth&amp;&amp;!showOtherMonths?&quot;&quot;:&quot; &quot;+daySettings[1]+(printDate.getTime()&gt;=currentDate.getTime()&amp;&amp;printDate.getTime()&lt;=endDate.getTime()?&quot; &quot;+this._currentClass:&quot;&quot;)+(printDate.getTime()==today.getTime()?&quot; ui-datepicker-today&quot;:&quot;&quot;))+'&quot;'+((!otherMonth||showOtherMonths)&amp;&amp;daySettings[2]?' title=&quot;'+daySettings[2]+'&quot;':&quot;&quot;)+(unselectable?&quot;&quot;:&quot; onclick=\&quot;DP_jQuery.datepicker._selectDay('#&quot;+inst.id+&quot;',&quot;+drawMonth+&quot;,&quot;+drawYear+', this);return false;&quot;')+&quot;&gt;&quot;+(otherMonth?(showOtherMonths?printDate.getDate():&quot;&amp;#xa0;&quot;):(unselectable?'&lt;span class=&quot;ui-state-default&quot;&gt;'+printDate.getDate()+&quot;&lt;/span&gt;&quot;:'&lt;a class=&quot;ui-state-default'+(printDate.getTime()==today.getTime()?&quot; ui-state-highlight&quot;:&quot;&quot;)+(printDate.getTime()&gt;=currentDate.getTime()&amp;&amp;printDate.getTime()&lt;=endDate.getTime()?&quot; ui-state-active&quot;:&quot;&quot;)+'&quot; href=&quot;#&quot;&gt;'+printDate.getDate()+&quot;&lt;/a&gt;&quot;))+&quot;&lt;/td&gt;&quot;;printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate)}calender+=tbody+&quot;&lt;/tr&gt;&quot;}drawMonth++;if(drawMonth&gt;11){drawMonth=0;drawYear++}calender+=&quot;&lt;/tbody&gt;&lt;/table&gt;&quot;+(isMultiMonth?&quot;&lt;/div&gt;&quot;+((numMonths[0]&gt;0&amp;&amp;col==numMonths[1]-1)?'&lt;div class=&quot;ui-datepicker-row-break&quot;&gt;&lt;/div&gt;':&quot;&quot;):&quot;&quot;);group+=calender}html+=group}html+=buttonPanel+($.browser.msie&amp;&amp;parseInt($.browser.version,10)&lt;7&amp;&amp;!inst.inline?'&lt;iframe src=&quot;javascript:false;&quot; class=&quot;ui-datepicker-cover&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;':&quot;&quot;);inst._keyEvent=false;return html},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,secondary,monthNames,monthNamesShort){minDate=(inst.rangeStart&amp;&amp;minDate&amp;&amp;selectedDate&lt;minDate?selectedDate:minDate);var changeMonth=this._get(inst,&quot;changeMonth&quot;);var changeYear=this._get(inst,&quot;changeYear&quot;);var showMonthAfterYear=this._get(inst,&quot;showMonthAfterYear&quot;);var html='&lt;div class=&quot;ui-datepicker-title&quot;&gt;';var monthHtml=&quot;&quot;;if(secondary||!changeMonth){monthHtml+='&lt;span class=&quot;ui-datepicker-month&quot;&gt;'+monthNames[drawMonth]+&quot;&lt;/span&gt; &quot;}else{var inMinYear=(minDate&amp;&amp;minDate.getFullYear()==drawYear);var inMaxYear=(maxDate&amp;&amp;maxDate.getFullYear()==drawYear);monthHtml+='&lt;select class=&quot;ui-datepicker-month&quot; onchange=&quot;DP_jQuery.datepicker._selectMonthYear(\'#'+inst.id+&quot;', this, 'M');\&quot; onclick=\&quot;DP_jQuery.datepicker._clickMonthYear('#&quot;+inst.id+&quot;');\&quot;&gt;&quot;;for(var month=0;month&lt;12;month++){if((!inMinYear||month&gt;=minDate.getMonth())&amp;&amp;(!inMaxYear||month&lt;=maxDate.getMonth())){monthHtml+='&lt;option value=&quot;'+month+'&quot;'+(month==drawMonth?' selected=&quot;selected&quot;':&quot;&quot;)+&quot;&gt;&quot;+monthNamesShort[month]+&quot;&lt;/option&gt;&quot;}}monthHtml+=&quot;&lt;/select&gt;&quot;}if(!showMonthAfterYear){html+=monthHtml+((secondary||changeMonth||changeYear)&amp;&amp;(!(changeMonth&amp;&amp;changeYear))?&quot;&amp;#xa0;&quot;:&quot;&quot;)}if(secondary||!changeYear){html+='&lt;span class=&quot;ui-datepicker-year&quot;&gt;'+drawYear+&quot;&lt;/span&gt;&quot;}else{var years=this._get(inst,&quot;yearRange&quot;).split(&quot;:&quot;);var year=0;var endYear=0;if(years.length!=2){year=drawYear-10;endYear=drawYear+10}else{if(years[0].charAt(0)==&quot;+&quot;||years[0].charAt(0)==&quot;-&quot;){year=drawYear+parseInt(years[0],10);endYear=drawYear+parseInt(years[1],10)}else{year=parseInt(years[0],10);endYear=parseInt(years[1],10)}}year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);html+='&lt;select class=&quot;ui-datepicker-year&quot; onchange=&quot;DP_jQuery.datepicker._selectMonthYear(\'#'+inst.id+&quot;', this, 'Y');\&quot; onclick=\&quot;DP_jQuery.datepicker._clickMonthYear('#&quot;+inst.id+&quot;');\&quot;&gt;&quot;;for(;year&lt;=endYear;year++){html+='&lt;option value=&quot;'+year+'&quot;'+(year==drawYear?' selected=&quot;selected&quot;':&quot;&quot;)+&quot;&gt;&quot;+year+&quot;&lt;/option&gt;&quot;}html+=&quot;&lt;/select&gt;&quot;}if(showMonthAfterYear){html+=(secondary||changeMonth||changeYear?&quot;&amp;#xa0;&quot;:&quot;&quot;)+monthHtml}html+=&quot;&lt;/div&gt;&quot;;return html},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period==&quot;Y&quot;?offset:0);var month=inst.drawMonth+(period==&quot;M&quot;?offset:0);var day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period==&quot;D&quot;?offset:0);var date=this._daylightSavingAdjust(new Date(year,month,day));var minDate=this._getMinMaxDate(inst,&quot;min&quot;,true);var maxDate=this._getMinMaxDate(inst,&quot;max&quot;);date=(minDate&amp;&amp;date&lt;minDate?minDate:date);date=(maxDate&amp;&amp;date&gt;maxDate?maxDate:date);inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period==&quot;M&quot;||period==&quot;Y&quot;){this._notifyChange(inst)}},_notifyChange:function(inst){var onChange=this._get(inst,&quot;onChangeMonthYear&quot;);if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst])}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,&quot;numberOfMonths&quot;);return(numMonths==null?[1,1]:(typeof numMonths==&quot;number&quot;?[1,numMonths]:numMonths))},_getMinMaxDate:function(inst,minMax,checkRange){var date=this._determineDate(this._get(inst,minMax+&quot;Date&quot;),null);return(!checkRange||!inst.rangeStart?date:(!date||inst.rangeStart&gt;date?inst.rangeStart:date))},_getDaysInMonth:function(year,month){return 32-new Date(year,month,32).getDate()},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst);var date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset&lt;0?offset:numMonths[1]),1));if(offset&lt;0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()))}return this._isInRange(inst,date)},_isInRange:function(inst,date){var newMinDate=(!inst.rangeStart?null:this._daylightSavingAdjust(new Date(inst.selectedYear,inst.selectedMonth,inst.selectedDay)));newMinDate=(newMinDate&amp;&amp;inst.rangeStart&lt;newMinDate?inst.rangeStart:newMinDate);var minDate=newMinDate||this._getMinMaxDate(inst,&quot;min&quot;);var maxDate=this._getMinMaxDate(inst,&quot;max&quot;);return((!minDate||date&gt;=minDate)&amp;&amp;(!maxDate||date&lt;=maxDate))},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,&quot;shortYearCutoff&quot;);shortYearCutoff=(typeof shortYearCutoff!=&quot;string&quot;?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,&quot;dayNamesShort&quot;),dayNames:this._get(inst,&quot;dayNames&quot;),monthNamesShort:this._get(inst,&quot;monthNamesShort&quot;),monthNames:this._get(inst,&quot;monthNames&quot;)}},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear}var date=(day?(typeof day==&quot;object&quot;?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,&quot;dateFormat&quot;),date,this._getFormatConfig(inst))}});function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null||props[name]==undefined){target[name]=props[name]}}return target}function isArray(a){return(a&amp;&amp;(($.browser.safari&amp;&amp;typeof a==&quot;object&quot;&amp;&amp;a.length)||(a.constructor&amp;&amp;a.constructor.toString().match(/\Array\(\)/))))}$.fn.datepicker=function(options){if(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick).find(&quot;body&quot;).append($.datepicker.dpDiv);$.datepicker.initialized=true}var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options==&quot;string&quot;&amp;&amp;(options==&quot;isDisabled&quot;||options==&quot;getDate&quot;)){return $.datepicker[&quot;_&quot;+options+&quot;Datepicker&quot;].apply($.datepicker,[this[0]].concat(otherArgs))}return this.each(function(){typeof options==&quot;string&quot;?$.datepicker[&quot;_&quot;+options+&quot;Datepicker&quot;].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version=&quot;1.7.1&quot;;window.DP_jQuery=$})(jQuery);(function(b){b.widget(&quot;ui.progressbar&quot;,{_init:function(){this.element.addClass(&quot;ui-progressbar ui-widget ui-widget-content ui-corner-all&quot;).attr({role:&quot;progressbar&quot;,&quot;aria-valuemin&quot;:this._valueMin(),&quot;aria-valuemax&quot;:this._valueMax(),&quot;aria-valuenow&quot;:this._value()});this.valueDiv=b('&lt;div class=&quot;ui-progressbar-value ui-widget-header ui-corner-left&quot;&gt;&lt;/div&gt;').appendTo(this.element);this._refreshValue()},destroy:function(){this.element.removeClass(&quot;ui-progressbar ui-widget ui-widget-content ui-corner-all&quot;).removeAttr(&quot;role&quot;).removeAttr(&quot;aria-valuemin&quot;).removeAttr(&quot;aria-valuemax&quot;).removeAttr(&quot;aria-valuenow&quot;).removeData(&quot;progressbar&quot;).unbind(&quot;.progressbar&quot;);this.valueDiv.remove();b.widget.prototype.destroy.apply(this,arguments)},value:function(a){arguments.length&amp;&amp;this._setData(&quot;value&quot;,a);return this._value()},_setData:function(a,d){switch(a){case&quot;value&quot;:this.options.value=d;this._refreshValue();this._trigger(&quot;change&quot;,null,{});break}b.widget.prototype._setData.apply(this,arguments)},_value:function(){var a=this.options.value;if(a&lt;this._valueMin()){a=this._valueMin()}if(a&gt;this._valueMax()){a=this._valueMax()}return a},_valueMin:function(){var a=0;return a},_valueMax:function(){var a=100;return a},_refreshValue:function(){var a=this.value();this.valueDiv[a==this._valueMax()?&quot;addClass&quot;:&quot;removeClass&quot;](&quot;ui-corner-right&quot;);this.valueDiv.width(a+&quot;%&quot;);this.element.attr(&quot;aria-valuenow&quot;,a)}});b.extend(b.ui.progressbar,{version:&quot;1.7.1&quot;,defaults:{value:0}})})(jQuery);jQuery.effects||(function(j){j.effects={version:&quot;1.7.1&quot;,save:function(b,a){for(var c=0;c&lt;a.length;c++){if(a[c]!==null){b.data(&quot;ec.storage.&quot;+a[c],b[0].style[a[c]])}}},restore:function(b,a){for(var c=0;c&lt;a.length;c++){if(a[c]!==null){b.css(a[c],b.data(&quot;ec.storage.&quot;+a[c]))}}},setMode:function(b,a){if(a==&quot;toggle&quot;){a=b.is(&quot;:hidden&quot;)?&quot;show&quot;:&quot;hide&quot;}return a},getBaseline:function(c,b){var a,d;switch(c[0]){case&quot;top&quot;:a=0;break;case&quot;middle&quot;:a=0.5;break;case&quot;bottom&quot;:a=1;break;default:a=c[0]/b.height}switch(c[1]){case&quot;left&quot;:d=0;break;case&quot;center&quot;:d=0.5;break;case&quot;right&quot;:d=1;break;default:d=c[1]/b.width}return{x:d,y:a}},createWrapper:function(e){if(e.parent().is(&quot;.ui-effects-wrapper&quot;)){return e.parent()}var d={width:e.outerWidth(true),height:e.outerHeight(true),&quot;float&quot;:e.css(&quot;float&quot;)};e.wrap('&lt;div class=&quot;ui-effects-wrapper&quot; style=&quot;font-size:100%;background:transparent;border:none;margin:0;padding:0&quot;&gt;&lt;/div&gt;');var a=e.parent();if(e.css(&quot;position&quot;)==&quot;static&quot;){a.css({position:&quot;relative&quot;});e.css({position:&quot;relative&quot;})}else{var b=e.css(&quot;top&quot;);if(isNaN(parseInt(b,10))){b=&quot;auto&quot;}var c=e.css(&quot;left&quot;);if(isNaN(parseInt(c,10))){c=&quot;auto&quot;}a.css({position:e.css(&quot;position&quot;),top:b,left:c,zIndex:e.css(&quot;z-index&quot;)}).show();e.css({position:&quot;relative&quot;,top:0,left:0})}a.css(d);return a},removeWrapper:function(a){if(a.parent().is(&quot;.ui-effects-wrapper&quot;)){return a.parent().replaceWith(a)}return a},setTransition:function(c,a,d,b){b=b||{};j.each(a,function(e,l){unit=c.cssUnit(l);if(unit[0]&gt;0){b[l]=unit[0]*d+unit[1]}});return b},animateClass:function(d,c,a,b){var l=(typeof a==&quot;function&quot;?a:(b?b:null));var e=(typeof a==&quot;string&quot;?a:null);return this.each(function(){var w={};var y=j(this);var x=y.attr(&quot;style&quot;)||&quot;&quot;;if(typeof x==&quot;object&quot;){x=x.cssText}if(d.toggle){y.hasClass(d.toggle)?d.remove=d.toggle:d.add=d.toggle}var u=j.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(d.add){y.addClass(d.add)}if(d.remove){y.removeClass(d.remove)}var n=j.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(d.add){y.removeClass(d.add)}if(d.remove){y.addClass(d.remove)}for(var v in n){if(typeof n[v]!=&quot;function&quot;&amp;&amp;n[v]&amp;&amp;v.indexOf(&quot;Moz&quot;)==-1&amp;&amp;v.indexOf(&quot;length&quot;)==-1&amp;&amp;n[v]!=u[v]&amp;&amp;(v.match(/color/i)||(!v.match(/color/i)&amp;&amp;!isNaN(parseInt(n[v],10))))&amp;&amp;(u.position!=&quot;static&quot;||(u.position==&quot;static&quot;&amp;&amp;!v.match(/left|top|bottom|right/)))){w[v]=n[v]}}y.animate(w,c,e,function(){if(typeof j(this).attr(&quot;style&quot;)==&quot;object&quot;){j(this).attr(&quot;style&quot;)[&quot;cssText&quot;]=&quot;&quot;;j(this).attr(&quot;style&quot;)[&quot;cssText&quot;]=x}else{j(this).attr(&quot;style&quot;,x)}if(d.add){j(this).addClass(d.add)}if(d.remove){j(this).removeClass(d.remove)}if(l){l.apply(this,arguments)}})})}};function k(d,e){var b=d[1]&amp;&amp;d[1].constructor==Object?d[1]:{};if(e){b.mode=e}var c=d[1]&amp;&amp;d[1].constructor!=Object?d[1]:(b.duration?b.duration:d[2]);c=j.fx.off?0:typeof c===&quot;number&quot;?c:j.fx.speeds[c]||j.fx.speeds._default;var a=b.callback||(j.isFunction(d[1])&amp;&amp;d[1])||(j.isFunction(d[2])&amp;&amp;d[2])||(j.isFunction(d[3])&amp;&amp;d[3]);return[d[0],b,c,a]}j.fn.extend({_show:j.fn.show,_hide:j.fn.hide,__toggle:j.fn.toggle,_addClass:j.fn.addClass,_removeClass:j.fn.removeClass,_toggleClass:j.fn.toggleClass,effect:function(c,d,b,a){return j.effects[c]?j.effects[c].call(this,{method:c,options:d||{},duration:b,callback:a}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._show.apply(this,arguments)}else{return this.effect.apply(this,k(arguments,&quot;show&quot;))}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._hide.apply(this,arguments)}else{return this.effect.apply(this,k(arguments,&quot;hide&quot;))}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))||(arguments[0].constructor==Function)){return this.__toggle.apply(this,arguments)}else{return this.effect.apply(this,k(arguments,&quot;toggle&quot;))}},addClass:function(c,d,a,b){return d?j.effects.animateClass.apply(this,[{add:c},d,a,b]):this._addClass(c)},removeClass:function(c,d,a,b){return d?j.effects.animateClass.apply(this,[{remove:c},d,a,b]):this._removeClass(c)},toggleClass:function(c,d,a,b){return((typeof d!==&quot;boolean&quot;)&amp;&amp;d)?j.effects.animateClass.apply(this,[{toggle:c},d,a,b]):this._toggleClass(c,d)},morph:function(e,c,d,a,b){return j.effects.animateClass.apply(this,[{add:c,remove:e},d,a,b])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(c){var b=this.css(c),a=[];j.each([&quot;em&quot;,&quot;px&quot;,&quot;%&quot;,&quot;pt&quot;],function(e,d){if(b.indexOf(d)&gt;0){a=[parseFloat(b),d]}});return a}});j.each([&quot;backgroundColor&quot;,&quot;borderBottomColor&quot;,&quot;borderLeftColor&quot;,&quot;borderRightColor&quot;,&quot;borderTopColor&quot;,&quot;color&quot;,&quot;outlineColor&quot;],function(a,b){j.fx.step[b]=function(c){if(c.state==0){c.start=h(c.elem,b);c.end=f(c.end)}c.elem.style[b]=&quot;rgb(&quot;+[Math.max(Math.min(parseInt((c.pos*(c.end[0]-c.start[0]))+c.start[0],10),255),0),Math.max(Math.min(parseInt((c.pos*(c.end[1]-c.start[1]))+c.start[1],10),255),0),Math.max(Math.min(parseInt((c.pos*(c.end[2]-c.start[2]))+c.start[2],10),255),0)].join(&quot;,&quot;)+&quot;)&quot;}});function f(a){var b;if(a&amp;&amp;a.constructor==Array&amp;&amp;a.length==3){return a}if(b=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(a)){return[parseInt(b[1],10),parseInt(b[2],10),parseInt(b[3],10)]}if(b=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(a)){return[parseFloat(b[1])*2.55,parseFloat(b[2])*2.55,parseFloat(b[3])*2.55]}if(b=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(a)){return[parseInt(b[1],16),parseInt(b[2],16),parseInt(b[3],16)]}if(b=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(a)){return[parseInt(b[1]+b[1],16),parseInt(b[2]+b[2],16),parseInt(b[3]+b[3],16)]}if(b=/rgba\(0, 0, 0, 0\)/.exec(a)){return g.transparent}return g[j.trim(a).toLowerCase()]}function h(a,c){var b;do{b=j.curCSS(a,c);if(b!=&quot;&quot;&amp;&amp;b!=&quot;transparent&quot;||j.nodeName(a,&quot;body&quot;)){break}c=&quot;backgroundColor&quot;}while(a=a.parentNode);return f(b)}var g={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};j.easing.jswing=j.easing.swing;j.extend(j.easing,{def:&quot;easeOutQuad&quot;,swing:function(d,c,e,a,b){return j.easing[j.easing.def](d,c,e,a,b)},easeInQuad:function(d,c,e,a,b){return a*(c/=b)*c+e},easeOutQuad:function(d,c,e,a,b){return -a*(c/=b)*(c-2)+e},easeInOutQuad:function(d,c,e,a,b){if((c/=b/2)&lt;1){return a/2*c*c+e}return -a/2*((--c)*(c-2)-1)+e},easeInCubic:function(d,c,e,a,b){return a*(c/=b)*c*c+e},easeOutCubic:function(d,c,e,a,b){return a*((c=c/b-1)*c*c+1)+e},easeInOutCubic:function(d,c,e,a,b){if((c/=b/2)&lt;1){return a/2*c*c*c+e}return a/2*((c-=2)*c*c+2)+e},easeInQuart:function(d,c,e,a,b){return a*(c/=b)*c*c*c+e},easeOutQuart:function(d,c,e,a,b){return -a*((c=c/b-1)*c*c*c-1)+e},easeInOutQuart:function(d,c,e,a,b){if((c/=b/2)&lt;1){return a/2*c*c*c*c+e}return -a/2*((c-=2)*c*c*c-2)+e},easeInQuint:function(d,c,e,a,b){return a*(c/=b)*c*c*c*c+e},easeOutQuint:function(d,c,e,a,b){return a*((c=c/b-1)*c*c*c*c+1)+e},easeInOutQuint:function(d,c,e,a,b){if((c/=b/2)&lt;1){return a/2*c*c*c*c*c+e}return a/2*((c-=2)*c*c*c*c+2)+e},easeInSine:function(d,c,e,a,b){return -a*Math.cos(c/b*(Math.PI/2))+a+e},easeOutSine:function(d,c,e,a,b){return a*Math.sin(c/b*(Math.PI/2))+e},easeInOutSine:function(d,c,e,a,b){return -a/2*(Math.cos(Math.PI*c/b)-1)+e},easeInExpo:function(d,c,e,a,b){return(c==0)?e:a*Math.pow(2,10*(c/b-1))+e},easeOutExpo:function(d,c,e,a,b){return(c==b)?e+a:a*(-Math.pow(2,-10*c/b)+1)+e},easeInOutExpo:function(d,c,e,a,b){if(c==0){return e}if(c==b){return e+a}if((c/=b/2)&lt;1){return a/2*Math.pow(2,10*(c-1))+e}return a/2*(-Math.pow(2,-10*--c)+2)+e},easeInCirc:function(d,c,e,a,b){return -a*(Math.sqrt(1-(c/=b)*c)-1)+e},easeOutCirc:function(d,c,e,a,b){return a*Math.sqrt(1-(c=c/b-1)*c)+e},easeInOutCirc:function(d,c,e,a,b){if((c/=b/2)&lt;1){return -a/2*(Math.sqrt(1-c*c)-1)+e}return a/2*(Math.sqrt(1-(c-=2)*c)+1)+e},easeInElastic:function(o,e,p,a,b){var d=1.70158;var c=0;var n=a;if(e==0){return p}if((e/=b)==1){return p+a}if(!c){c=b*0.3}if(n&lt;Math.abs(a)){n=a;var d=c/4}else{var d=c/(2*Math.PI)*Math.asin(a/n)}return -(n*Math.pow(2,10*(e-=1))*Math.sin((e*b-d)*(2*Math.PI)/c))+p},easeOutElastic:function(o,e,p,a,b){var d=1.70158;var c=0;var n=a;if(e==0){return p}if((e/=b)==1){return p+a}if(!c){c=b*0.3}if(n&lt;Math.abs(a)){n=a;var d=c/4}else{var d=c/(2*Math.PI)*Math.asin(a/n)}return n*Math.pow(2,-10*e)*Math.sin((e*b-d)*(2*Math.PI)/c)+a+p},easeInOutElastic:function(o,e,p,a,b){var d=1.70158;var c=0;var n=a;if(e==0){return p}if((e/=b/2)==2){return p+a}if(!c){c=b*(0.3*1.5)}if(n&lt;Math.abs(a)){n=a;var d=c/4}else{var d=c/(2*Math.PI)*Math.asin(a/n)}if(e&lt;1){return -0.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e*b-d)*(2*Math.PI)/c))+p}return n*Math.pow(2,-10*(e-=1))*Math.sin((e*b-d)*(2*Math.PI)/c)*0.5+a+p},easeInBack:function(e,d,l,a,b,c){if(c==undefined){c=1.70158}return a*(d/=b)*d*((c+1)*d-c)+l},easeOutBack:function(e,d,l,a,b,c){if(c==undefined){c=1.70158}return a*((d=d/b-1)*d*((c+1)*d+c)+1)+l},easeInOutBack:function(e,d,l,a,b,c){if(c==undefined){c=1.70158}if((d/=b/2)&lt;1){return a/2*(d*d*(((c*=(1.525))+1)*d-c))+l}return a/2*((d-=2)*d*(((c*=(1.525))+1)*d+c)+2)+l},easeInBounce:function(d,c,e,a,b){return a-j.easing.easeOutBounce(d,b-c,0,a,b)+e},easeOutBounce:function(d,c,e,a,b){if((c/=b)&lt;(1/2.75)){return a*(7.5625*c*c)+e}else{if(c&lt;(2/2.75)){return a*(7.5625*(c-=(1.5/2.75))*c+0.75)+e}else{if(c&lt;(2.5/2.75)){return a*(7.5625*(c-=(2.25/2.75))*c+0.9375)+e}else{return a*(7.5625*(c-=(2.625/2.75))*c+0.984375)+e}}}},easeInOutBounce:function(d,c,e,a,b){if(c&lt;b/2){return j.easing.easeInBounce(d,c*2,0,a,b)*0.5+e}return j.easing.easeOutBounce(d,c*2-b,0,a,b)*0.5+a*0.5+e}})})(jQuery);(function(b){b.effects.blind=function(a){return this.queue(function(){var q=b(this),r=[&quot;position&quot;,&quot;top&quot;,&quot;left&quot;];var m=b.effects.setMode(q,a.options.mode||&quot;hide&quot;);var n=a.options.direction||&quot;vertical&quot;;b.effects.save(q,r);q.show();var k=b.effects.createWrapper(q).css({overflow:&quot;hidden&quot;});var p=(n==&quot;vertical&quot;)?&quot;height&quot;:&quot;width&quot;;var l=(n==&quot;vertical&quot;)?k.height():k.width();if(m==&quot;show&quot;){k.css(p,0)}var o={};o[p]=m==&quot;show&quot;?l:0;k.animate(o,a.duration,a.options.easing,function(){if(m==&quot;hide&quot;){q.hide()}b.effects.restore(q,r);b.effects.removeWrapper(q);if(a.callback){a.callback.apply(q[0],arguments)}q.dequeue()})})}})(jQuery);(function(b){b.effects.bounce=function(a){return this.queue(function(){var C=b(this),w=[&quot;position&quot;,&quot;top&quot;,&quot;left&quot;];var x=b.effects.setMode(C,a.options.mode||&quot;effect&quot;);var u=a.options.direction||&quot;up&quot;;var E=a.options.distance||20;var D=a.options.times||5;var A=a.duration||250;if(/show|hide/.test(x)){w.push(&quot;opacity&quot;)}b.effects.save(C,w);C.show();b.effects.createWrapper(C);var B=(u==&quot;up&quot;||u==&quot;down&quot;)?&quot;top&quot;:&quot;left&quot;;var q=(u==&quot;up&quot;||u==&quot;left&quot;)?&quot;pos&quot;:&quot;neg&quot;;var E=a.options.distance||(B==&quot;top&quot;?C.outerHeight({margin:true})/3:C.outerWidth({margin:true})/3);if(x==&quot;show&quot;){C.css(&quot;opacity&quot;,0).css(B,q==&quot;pos&quot;?-E:E)}if(x==&quot;hide&quot;){E=E/(D*2)}if(x!=&quot;hide&quot;){D--}if(x==&quot;show&quot;){var z={opacity:1};z[B]=(q==&quot;pos&quot;?&quot;+=&quot;:&quot;-=&quot;)+E;C.animate(z,A/2,a.options.easing);E=E/2;D--}for(var y=0;y&lt;D;y++){var r={},v={};r[B]=(q==&quot;pos&quot;?&quot;-=&quot;:&quot;+=&quot;)+E;v[B]=(q==&quot;pos&quot;?&quot;+=&quot;:&quot;-=&quot;)+E;C.animate(r,A/2,a.options.easing).animate(v,A/2,a.options.easing);E=(x==&quot;hide&quot;)?E*2:E/2}if(x==&quot;hide&quot;){var z={opacity:0};z[B]=(q==&quot;pos&quot;?&quot;-=&quot;:&quot;+=&quot;)+E;C.animate(z,A/2,a.options.easing,function(){C.hide();b.effects.restore(C,w);b.effects.removeWrapper(C);if(a.callback){a.callback.apply(this,arguments)}})}else{var r={},v={};r[B]=(q==&quot;pos&quot;?&quot;-=&quot;:&quot;+=&quot;)+E;v[B]=(q==&quot;pos&quot;?&quot;+=&quot;:&quot;-=&quot;)+E;C.animate(r,A/2,a.options.easing).animate(v,A/2,a.options.easing,function(){b.effects.restore(C,w);b.effects.removeWrapper(C);if(a.callback){a.callback.apply(this,arguments)}})}C.queue(&quot;fx&quot;,function(){C.dequeue()});C.dequeue()})}})(jQuery);(function(b){b.effects.clip=function(a){return this.queue(function(){var q=b(this),m=[&quot;position&quot;,&quot;top&quot;,&quot;left&quot;,&quot;height&quot;,&quot;width&quot;];var n=b.effects.setMode(q,a.options.mode||&quot;hide&quot;);var l=a.options.direction||&quot;vertical&quot;;b.effects.save(q,m);q.show();var v=b.effects.createWrapper(q).css({overflow:&quot;hidden&quot;});var r=q[0].tagName==&quot;IMG&quot;?v:q;var p={size:(l==&quot;vertical&quot;)?&quot;height&quot;:&quot;width&quot;,position:(l==&quot;vertical&quot;)?&quot;top&quot;:&quot;left&quot;};var u=(l==&quot;vertical&quot;)?r.height():r.width();if(n==&quot;show&quot;){r.css(p.size,0);r.css(p.position,u/2)}var o={};o[p.size]=n==&quot;show&quot;?u:0;o[p.position]=n==&quot;show&quot;?0:u/2;r.animate(o,{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){if(n==&quot;hide&quot;){q.hide()}b.effects.restore(q,m);b.effects.removeWrapper(q);if(a.callback){a.callback.apply(q[0],arguments)}q.dequeue()}})})}})(jQuery);(function(b){b.effects.drop=function(a){return this.queue(function(){var p=b(this),q=[&quot;position&quot;,&quot;top&quot;,&quot;left&quot;,&quot;opacity&quot;];var l=b.effects.setMode(p,a.options.mode||&quot;hide&quot;);var m=a.options.direction||&quot;left&quot;;b.effects.save(p,q);p.show();b.effects.createWrapper(p);var o=(m==&quot;up&quot;||m==&quot;down&quot;)?&quot;top&quot;:&quot;left&quot;;var r=(m==&quot;up&quot;||m==&quot;left&quot;)?&quot;pos&quot;:&quot;neg&quot;;var k=a.options.distance||(o==&quot;top&quot;?p.outerHeight({margin:true})/2:p.outerWidth({margin:true})/2);if(l==&quot;show&quot;){p.css(&quot;opacity&quot;,0).css(o,r==&quot;pos&quot;?-k:k)}var n={opacity:l==&quot;show&quot;?1:0};n[o]=(l==&quot;show&quot;?(r==&quot;pos&quot;?&quot;+=&quot;:&quot;-=&quot;):(r==&quot;pos&quot;?&quot;-=&quot;:&quot;+=&quot;))+k;p.animate(n,{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){if(l==&quot;hide&quot;){p.hide()}b.effects.restore(p,q);b.effects.removeWrapper(p);if(a.callback){a.callback.apply(this,arguments)}p.dequeue()}})})}})(jQuery);(function(b){b.effects.explode=function(a){return this.queue(function(){var m=a.options.pieces?Math.round(Math.sqrt(a.options.pieces)):3;var q=a.options.pieces?Math.round(Math.sqrt(a.options.pieces)):3;a.options.mode=a.options.mode==&quot;toggle&quot;?(b(this).is(&quot;:visible&quot;)?&quot;hide&quot;:&quot;show&quot;):a.options.mode;var n=b(this).show().css(&quot;visibility&quot;,&quot;hidden&quot;);var j=n.offset();j.top-=parseInt(n.css(&quot;marginTop&quot;),10)||0;j.left-=parseInt(n.css(&quot;marginLeft&quot;),10)||0;var o=n.outerWidth(true);var u=n.outerHeight(true);for(var p=0;p&lt;m;p++){for(var r=0;r&lt;q;r++){n.clone().appendTo(&quot;body&quot;).wrap(&quot;&lt;div&gt;&lt;/div&gt;&quot;).css({position:&quot;absolute&quot;,visibility:&quot;visible&quot;,left:-r*(o/q),top:-p*(u/m)}).parent().addClass(&quot;ui-effects-explode&quot;).css({position:&quot;absolute&quot;,overflow:&quot;hidden&quot;,width:o/q,height:u/m,left:j.left+r*(o/q)+(a.options.mode==&quot;show&quot;?(r-Math.floor(q/2))*(o/q):0),top:j.top+p*(u/m)+(a.options.mode==&quot;show&quot;?(p-Math.floor(m/2))*(u/m):0),opacity:a.options.mode==&quot;show&quot;?0:1}).animate({left:j.left+r*(o/q)+(a.options.mode==&quot;show&quot;?0:(r-Math.floor(q/2))*(o/q)),top:j.top+p*(u/m)+(a.options.mode==&quot;show&quot;?0:(p-Math.floor(m/2))*(u/m)),opacity:a.options.mode==&quot;show&quot;?1:0},a.duration||500)}}setTimeout(function(){a.options.mode==&quot;show&quot;?n.css({visibility:&quot;visible&quot;}):n.css({visibility:&quot;visible&quot;}).hide();if(a.callback){a.callback.apply(n[0])}n.dequeue();b(&quot;div.ui-effects-explode&quot;).remove()},a.duration||500)})}})(jQuery);(function(b){b.effects.fold=function(a){return this.queue(function(){var B=b(this),v=[&quot;position&quot;,&quot;top&quot;,&quot;left&quot;];var y=b.effects.setMode(B,a.options.mode||&quot;hide&quot;);var p=a.options.size||15;var q=!(!a.options.horizFirst);var z=a.duration?a.duration/2:b.fx.speeds._default/2;b.effects.save(B,v);B.show();var C=b.effects.createWrapper(B).css({overflow:&quot;hidden&quot;});var x=((y==&quot;show&quot;)!=q);var A=x?[&quot;width&quot;,&quot;height&quot;]:[&quot;height&quot;,&quot;width&quot;];var D=x?[C.width(),C.height()]:[C.height(),C.width()];var w=/([0-9]+)%/.exec(p);if(w){p=parseInt(w[1],10)/100*D[y==&quot;hide&quot;?0:1]}if(y==&quot;show&quot;){C.css(q?{height:0,width:p}:{height:p,width:0})}var r={},u={};r[A[0]]=y==&quot;show&quot;?D[0]:p;u[A[1]]=y==&quot;show&quot;?D[1]:0;C.animate(r,z,a.options.easing).animate(u,z,a.options.easing,function(){if(y==&quot;hide&quot;){B.hide()}b.effects.restore(B,v);b.effects.removeWrapper(B);if(a.callback){a.callback.apply(B[0],arguments)}B.dequeue()})})}})(jQuery);(function(b){b.effects.highlight=function(a){return this.queue(function(){var m=b(this),n=[&quot;backgroundImage&quot;,&quot;backgroundColor&quot;,&quot;opacity&quot;];var j=b.effects.setMode(m,a.options.mode||&quot;show&quot;);var o=a.options.color||&quot;#ffff99&quot;;var k=m.css(&quot;backgroundColor&quot;);b.effects.save(m,n);m.show();m.css({backgroundImage:&quot;none&quot;,backgroundColor:o});var l={backgroundColor:k};if(j==&quot;hide&quot;){l.opacity=0}m.animate(l,{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){if(j==&quot;hide&quot;){m.hide()}b.effects.restore(m,n);if(j==&quot;show&quot;&amp;&amp;b.browser.msie){this.style.removeAttribute(&quot;filter&quot;)}if(a.callback){a.callback.apply(this,arguments)}m.dequeue()}})})}})(jQuery);(function(b){b.effects.pulsate=function(a){return this.queue(function(){var l=b(this);var h=b.effects.setMode(l,a.options.mode||&quot;show&quot;);var j=a.options.times||5;var k=a.duration?a.duration/2:b.fx.speeds._default/2;if(h==&quot;hide&quot;){j--}if(l.is(&quot;:hidden&quot;)){l.css(&quot;opacity&quot;,0);l.show();l.animate({opacity:1},k,a.options.easing);j=j-2}for(var m=0;m&lt;j;m++){l.animate({opacity:0},k,a.options.easing).animate({opacity:1},k,a.options.easing)}if(h==&quot;hide&quot;){l.animate({opacity:0},k,a.options.easing,function(){l.hide();if(a.callback){a.callback.apply(this,arguments)}})}else{l.animate({opacity:0},k,a.options.easing).animate({opacity:1},k,a.options.easing,function(){if(a.callback){a.callback.apply(this,arguments)}})}l.queue(&quot;fx&quot;,function(){l.dequeue()});l.dequeue()})}})(jQuery);(function(b){b.effects.puff=function(a){return this.queue(function(){var l=b(this);var o=b.extend(true,{},a.options);var j=b.effects.setMode(l,a.options.mode||&quot;hide&quot;);var k=parseInt(a.options.percent,10)||150;o.fade=true;var m={height:l.height(),width:l.width()};var n=k/100;l.from=(j==&quot;hide&quot;)?m:{height:m.height*n,width:m.width*n};o.from=l.from;o.percent=(j==&quot;hide&quot;)?k:100;o.mode=j;l.effect(&quot;scale&quot;,o,a.duration,a.callback);l.dequeue()})};b.effects.scale=function(a){return this.queue(function(){var n=b(this);var q=b.extend(true,{},a.options);var k=b.effects.setMode(n,a.options.mode||&quot;effect&quot;);var m=parseInt(a.options.percent,10)||(parseInt(a.options.percent,10)==0?0:(k==&quot;hide&quot;?0:100));var l=a.options.direction||&quot;both&quot;;var r=a.options.origin;if(k!=&quot;effect&quot;){q.origin=r||[&quot;middle&quot;,&quot;center&quot;];q.restore=true}var o={height:n.height(),width:n.width()};n.from=a.options.from||(k==&quot;show&quot;?{height:0,width:0}:o);var p={y:l!=&quot;horizontal&quot;?(m/100):1,x:l!=&quot;vertical&quot;?(m/100):1};n.to={height:o.height*p.y,width:o.width*p.x};if(a.options.fade){if(k==&quot;show&quot;){n.from.opacity=0;n.to.opacity=1}if(k==&quot;hide&quot;){n.from.opacity=1;n.to.opacity=0}}q.from=n.from;q.to=n.to;q.mode=k;n.effect(&quot;size&quot;,q,a.duration,a.callback);n.dequeue()})};b.effects.size=function(a){return this.queue(function(){var F=b(this),u=[&quot;position&quot;,&quot;top&quot;,&quot;left&quot;,&quot;width&quot;,&quot;height&quot;,&quot;overflow&quot;,&quot;opacity&quot;];var v=[&quot;position&quot;,&quot;top&quot;,&quot;left&quot;,&quot;overflow&quot;,&quot;opacity&quot;];var y=[&quot;width&quot;,&quot;height&quot;,&quot;overflow&quot;];var q=[&quot;fontSize&quot;];var x=[&quot;borderTopWidth&quot;,&quot;borderBottomWidth&quot;,&quot;paddingTop&quot;,&quot;paddingBottom&quot;];var C=[&quot;borderLeftWidth&quot;,&quot;borderRightWidth&quot;,&quot;paddingLeft&quot;,&quot;paddingRight&quot;];var B=b.effects.setMode(F,a.options.mode||&quot;effect&quot;);var z=a.options.restore||false;var D=a.options.scale||&quot;both&quot;;var r=a.options.origin;var E={height:F.height(),width:F.width()};F.from=a.options.from||E;F.to=a.options.to||E;if(r){var A=b.effects.getBaseline(r,E);F.from.top=(E.height-F.from.height)*A.y;F.from.left=(E.width-F.from.width)*A.x;F.to.top=(E.height-F.to.height)*A.y;F.to.left=(E.width-F.to.width)*A.x}var w={from:{y:F.from.height/E.height,x:F.from.width/E.width},to:{y:F.to.height/E.height,x:F.to.width/E.width}};if(D==&quot;box&quot;||D==&quot;both&quot;){if(w.from.y!=w.to.y){u=u.concat(x);F.from=b.effects.setTransition(F,x,w.from.y,F.from);F.to=b.effects.setTransition(F,x,w.to.y,F.to)}if(w.from.x!=w.to.x){u=u.concat(C);F.from=b.effects.setTransition(F,C,w.from.x,F.from);F.to=b.effects.setTransition(F,C,w.to.x,F.to)}}if(D==&quot;content&quot;||D==&quot;both&quot;){if(w.from.y!=w.to.y){u=u.concat(q);F.from=b.effects.setTransition(F,q,w.from.y,F.from);F.to=b.effects.setTransition(F,q,w.to.y,F.to)}}b.effects.save(F,z?u:v);F.show();b.effects.createWrapper(F);F.css(&quot;overflow&quot;,&quot;hidden&quot;).css(F.from);if(D==&quot;content&quot;||D==&quot;both&quot;){x=x.concat([&quot;marginTop&quot;,&quot;marginBottom&quot;]).concat(q);C=C.concat([&quot;marginLeft&quot;,&quot;marginRight&quot;]);y=u.concat(x).concat(C);F.find(&quot;*[width]&quot;).each(function(){child=b(this);if(z){b.effects.save(child,y)}var c={height:child.height(),width:child.width()};child.from={height:c.height*w.from.y,width:c.width*w.from.x};child.to={height:c.height*w.to.y,width:c.width*w.to.x};if(w.from.y!=w.to.y){child.from=b.effects.setTransition(child,x,w.from.y,child.from);child.to=b.effects.setTransition(child,x,w.to.y,child.to)}if(w.from.x!=w.to.x){child.from=b.effects.setTransition(child,C,w.from.x,child.from);child.to=b.effects.setTransition(child,C,w.to.x,child.to)}child.css(child.from);child.animate(child.to,a.duration,a.options.easing,function(){if(z){b.effects.restore(child,y)}})})}F.animate(F.to,{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){if(B==&quot;hide&quot;){F.hide()}b.effects.restore(F,z?u:v);b.effects.removeWrapper(F);if(a.callback){a.callback.apply(this,arguments)}F.dequeue()}})})}})(jQuery);(function(b){b.effects.shake=function(a){return this.queue(function(){var C=b(this),w=[&quot;position&quot;,&quot;top&quot;,&quot;left&quot;];var x=b.effects.setMode(C,a.options.mode||&quot;effect&quot;);var u=a.options.direction||&quot;left&quot;;var E=a.options.distance||20;var D=a.options.times||3;var A=a.duration||a.options.duration||140;b.effects.save(C,w);C.show();b.effects.createWrapper(C);var B=(u==&quot;up&quot;||u==&quot;down&quot;)?&quot;top&quot;:&quot;left&quot;;var q=(u==&quot;up&quot;||u==&quot;left&quot;)?&quot;pos&quot;:&quot;neg&quot;;var z={},r={},v={};z[B]=(q==&quot;pos&quot;?&quot;-=&quot;:&quot;+=&quot;)+E;r[B]=(q==&quot;pos&quot;?&quot;+=&quot;:&quot;-=&quot;)+E*2;v[B]=(q==&quot;pos&quot;?&quot;-=&quot;:&quot;+=&quot;)+E*2;C.animate(z,A,a.options.easing);for(var y=1;y&lt;D;y++){C.animate(r,A,a.options.easing).animate(v,A,a.options.easing)}C.animate(r,A,a.options.easing).animate(z,A/2,a.options.easing,function(){b.effects.restore(C,w);b.effects.removeWrapper(C);if(a.callback){a.callback.apply(this,arguments)}});C.queue(&quot;fx&quot;,function(){C.dequeue()});C.dequeue()})}})(jQuery);(function(b){b.effects.slide=function(a){return this.queue(function(){var p=b(this),q=[&quot;position&quot;,&quot;top&quot;,&quot;left&quot;];var l=b.effects.setMode(p,a.options.mode||&quot;show&quot;);var m=a.options.direction||&quot;left&quot;;b.effects.save(p,q);p.show();b.effects.createWrapper(p).css({overflow:&quot;hidden&quot;});var o=(m==&quot;up&quot;||m==&quot;down&quot;)?&quot;top&quot;:&quot;left&quot;;var r=(m==&quot;up&quot;||m==&quot;left&quot;)?&quot;pos&quot;:&quot;neg&quot;;var k=a.options.distance||(o==&quot;top&quot;?p.outerHeight({margin:true}):p.outerWidth({margin:true}));if(l==&quot;show&quot;){p.css(o,r==&quot;pos&quot;?-k:k)}var n={};n[o]=(l==&quot;show&quot;?(r==&quot;pos&quot;?&quot;+=&quot;:&quot;-=&quot;):(r==&quot;pos&quot;?&quot;-=&quot;:&quot;+=&quot;))+k;p.animate(n,{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){if(l==&quot;hide&quot;){p.hide()}b.effects.restore(p,q);b.effects.removeWrapper(p);if(a.callback){a.callback.apply(this,arguments)}p.dequeue()}})})}})(jQuery);(function(b){b.effects.transfer=function(a){return this.queue(function(){var l=b(this),j=b(a.options.to),m=j.offset(),k={top:m.top,left:m.left,height:j.innerHeight(),width:j.innerWidth()},n=l.offset(),o=b('&lt;div class=&quot;ui-effects-transfer&quot;&gt;&lt;/div&gt;').appendTo(document.body).addClass(a.options.className).css({top:n.top,left:n.left,height:l.innerHeight(),width:l.innerWidth(),position:&quot;absolute&quot;}).animate(k,a.duration,a.options.easing,function(){o.remove();(a.callback&amp;&amp;a.callback.apply(l[0],arguments));l.dequeue()})})}})(jQuery);(function(d){d.fn.jqm=function(f){var e={zIndex:3000,overlay:50,overlayClass:&quot;jqmOverlay&quot;,closeClass:&quot;jqmClose&quot;,trigger:&quot;.jqModal&quot;,ajax:false,target:false,modal:false,toTop:false,onShow:false,onHide:false,onLoad:false};return this.each(function(){if(this._jqm){return}o++;this._jqm=o;l[o]={c:d.extend(e,f),a:false,w:d(this).addClass(&quot;jqmID&quot;+o),s:o};if(e.trigger){d(this).jqmAddTrigger(e.trigger)}})};d.fn.jqmAddClose=function(f){k(this,f,&quot;jqmHide&quot;);return this};d.fn.jqmAddTrigger=function(f){k(this,f,&quot;jqmShow&quot;);return this};d.fn.jqmShow=function(e){return this.each(function(){if(!l[this._jqm].a){d.jqm.open(this._jqm,e)}})};d.fn.jqmHide=function(e){return this.each(function(){if(l[this._jqm].a){d.jqm.close(this._jqm,e)}})};d.jqm={hash:{},open:function(B,A){var p=l[B],q=p.c,m=&quot;.&quot;+q.closeClass,v=(/^\d+$/.test(p.w.css(&quot;z-index&quot;)))?p.w.css(&quot;z-index&quot;):q.zIndex,f=d(&quot;&lt;div&gt;&lt;/div&gt;&quot;).css({height:&quot;100%&quot;,width:&quot;100%&quot;,position:&quot;fixed&quot;,left:0,top:0,&quot;z-index&quot;:v-1,opacity:q.overlay/100});p.t=A;p.a=true;p.w.css(&quot;z-index&quot;,v);if(q.modal){if(!a[0]){n(&quot;bind&quot;)}a.push(B);f.css(&quot;cursor&quot;,&quot;wait&quot;)}else{if(q.overlay&gt;0){p.w.jqmAddClose(f)}else{f=false}}p.o=(f)?f.addClass(q.overlayClass).prependTo(&quot;body&quot;):false;if(c){d(&quot;html,body&quot;).css({height:&quot;100%&quot;,width:&quot;100%&quot;});if(f){f=f.css({position:&quot;absolute&quot;})[0];for(var w in {Top:1,Left:1}){f.style.setExpression(w.toLowerCase(),&quot;(_=(document.documentElement.scroll&quot;+w+&quot; || document.body.scroll&quot;+w+&quot;))+'px'&quot;)}}}if(q.ajax){var e=q.target||p.w,x=q.ajax,e=(typeof e==&quot;string&quot;)?d(e,p.w):d(e),x=(x.substr(0,1)==&quot;@&quot;)?d(A).attr(x.substring(1)):x;e.load(x,function(){if(q.onLoad){q.onLoad.call(this,p)}if(m){p.w.jqmAddClose(d(m,p.w))}j(p)})}else{if(m){p.w.jqmAddClose(d(m,p.w))}}if(q.toTop&amp;&amp;p.o){p.w.before('&lt;span id=&quot;jqmP'+p.w[0]._jqm+'&quot;&gt;&lt;/span&gt;').insertAfter(p.o)}(q.onShow)?q.onShow(p):p.w.show();j(p);return false},close:function(f){var e=l[f];e.a=false;if(a[0]){a.pop();if(!a[0]){n(&quot;unbind&quot;)}}if(e.c.toTop&amp;&amp;e.o){d(&quot;#jqmP&quot;+e.w[0]._jqm).after(e.w).remove()}if(e.c.onHide){e.c.onHide(e)}else{e.w.hide();if(e.o){e.o.remove()}}return false}};var o=0,l=d.jqm.hash,a=[],c=d.browser.msie&amp;&amp;(d.browser.version==&quot;6.0&quot;),g=d('&lt;iframe src=&quot;javascript:false;document.write(\'\');&quot; class=&quot;jqm&quot;&gt;&lt;/iframe&gt;').css({opacity:0}),j=function(e){if(c){if(e.o){e.o.html('&lt;p style=&quot;width:100%;height:100%&quot;/&gt;').prepend(g)}else{if(!d(&quot;iframe.jqm&quot;,e.w)[0]){e.w.prepend(g)}}}h(e)},h=function(f){try{d(&quot;:input:visible&quot;,f.w)[0].focus()}catch(m){}},n=function(e){d()[e](&quot;keypress&quot;,b)[e](&quot;keydown&quot;,b)[e](&quot;mousedown&quot;,b)},b=function(p){var f=l[a[a.length-1]],m=(!d(p.target).parents(&quot;.jqmID&quot;+f.s)[0]);if(m){h(f)}return !m},k=function(f,p,q){var m=[];f.each(function(){m.push(this._jqm)});d(p).each(function(){if(this[q]){d.extend(this[q],m)}else{this[q]=m;d(this).click(function(){for(var e in {jqmShow:1,jqmHide:1}){for(var r in this[e]){if(l[this[e][r]]){l[this[e][r]].w[e](this)}}}return false})}})}})(jQuery);(function(a){a.fn.hint=function(e){if(!e||typeof(e)==&quot;object&quot;){e=a.extend({focus_class:&quot;hint_focus&quot;,changed_class:&quot;hint_changed&quot;,populate_from:&quot;default&quot;,text:null,remove_labels:false},e)}else{if(typeof(e)==&quot;string&quot;&amp;&amp;e.toLowerCase()==&quot;destroy&quot;){var b=true}}return this.each(function(){if(b){a(this).unbind(&quot;focus.hint&quot;).unbind(&quot;blur.hint&quot;).removeData(&quot;defText&quot;);return false}d(a(this))});function d(j){var k=&quot;&quot;;switch(e.populate_from){case&quot;alt&quot;:k=j.attr(&quot;alt&quot;);j.val(k);break;case&quot;label&quot;:k=a(&quot;label[for='&quot;+j.attr(&quot;id&quot;)+&quot;']&quot;).text();j.val(k);break;case&quot;custom&quot;:k=e.text;j.val(k);break;default:k=j.val()}j.addClass(&quot;hint&quot;).data(&quot;defText&quot;,k);if(e.remove_labels==true){a(&quot;label[for='&quot;+j.attr(&quot;id&quot;)+&quot;']&quot;).remove()}if(j.attr(&quot;type&quot;)==&quot;password&quot;){var g=j.data(&quot;defText&quot;);var h=a('&lt;input type=&quot;text&quot;/&gt;');h.attr(&quot;name&quot;,j.attr(&quot;name&quot;));h.attr(&quot;size&quot;,j.attr(&quot;size&quot;));h.attr(&quot;class&quot;,j.attr(&quot;class&quot;));h.val(j.val());h.data(&quot;defType&quot;,&quot;password&quot;).data(&quot;defText&quot;,g);j.replaceWith(h);var j=h}f(j);c(j)}function f(g){g.bind(&quot;focus.hint&quot;,function(k){var k=a(this);if(k.val()==k.data(&quot;defText&quot;)){k.val(&quot;&quot;)}k.addClass(e.focus_class).removeClass(e.changed_class);if(k.data(&quot;defType&quot;)==&quot;password&quot;){var h=k.data(&quot;defText&quot;);var j=a('&lt;input type=&quot;password&quot;/&gt;');j.attr(&quot;name&quot;,k.attr(&quot;name&quot;));j.attr(&quot;size&quot;,k.attr(&quot;size&quot;));j.attr(&quot;class&quot;,k.attr(&quot;class&quot;));j.val(k.val());j.data(&quot;defType&quot;,&quot;password&quot;).data(&quot;defText&quot;,h);k.replaceWith(j);var k=j;k.focus();c(k)}})}function c(g){g.bind(&quot;blur.hint&quot;,function(){var k=a(this);if(k.val()==&quot;&quot;){k.val(k.data(&quot;defText&quot;))}k.removeClass(e.focus_class);if(k.val()!=k.data(&quot;defText&quot;)){k.addClass(e.changed_class)}else{k.removeClass(e.changed_class)}if(k.data(&quot;defType&quot;)==&quot;password&quot;&amp;&amp;k.val()==k.data(&quot;defText&quot;)){var h=k.data(&quot;defText&quot;);var j=a('&lt;input type=&quot;text&quot;/&gt;');j.attr(&quot;name&quot;,k.attr(&quot;name&quot;));j.attr(&quot;size&quot;,k.attr(&quot;size&quot;));j.attr(&quot;class&quot;,k.attr(&quot;class&quot;));j.val(k.val());j.data(&quot;defType&quot;,&quot;password&quot;).data(&quot;defText&quot;,h);k.replaceWith(j);var k=j;f(j)}})}}})(jQuery);jQuery.imgAreaSelect=function(l,O){var aa=jQuery(&quot;&lt;div&gt;&lt;/div&gt;&quot;),ab=jQuery(&quot;&lt;div&gt;&lt;/div&gt;&quot;),Z=jQuery(&quot;&lt;div&gt;&lt;/div&gt;&quot;),T=jQuery(&quot;&lt;div&gt;&lt;/div&gt;&quot;),ac=jQuery(&quot;&lt;div&gt;&lt;/div&gt;&quot;),Y=jQuery(&quot;&lt;div&gt;&lt;/div&gt;&quot;),U=jQuery(&quot;&lt;div&gt;&lt;/div&gt;&quot;),h,j,ak,L,b,r,K,ag,z,D=0,v,c,N,M,m,k,Q=10,J=[],f=0,q=1,ai,P,B,A,al,aj,W,S,w={x1:0,y1:0,x2:0,y2:0,width:0,height:0};var p=aa.add(ab).add(Z);var e=T.add(ac).add(Y).add(U);function I(d){return d+ak.left+ag.left-K.left}function G(d){return d+ak.top+ag.top-K.top}function F(d){return d-ak.left-ag.left+K.left}function C(d){return d-ak.top-ag.top+K.top}function ae(d){return d.pageX+ag.left-K.left}function ad(d){return d.pageY+ag.top-K.top}function ah(){ak=jQuery(l).offset();L=jQuery(l).width();b=jQuery(l).height();if(jQuery(r).is(&quot;body&quot;)){K=ag={left:0,top:0}}else{K=jQuery(r).offset();ag={left:r.scrollLeft,top:r.scrollTop}}h=I(0);j=G(0)}function R(){p.css({left:I(w.x1)+&quot;px&quot;,top:G(w.y1)+&quot;px&quot;,width:Math.max(w.width-O.borderWidth*2,0)+&quot;px&quot;,height:Math.max(w.height-O.borderWidth*2,0)+&quot;px&quot;});T.css({left:h+&quot;px&quot;,top:j+&quot;px&quot;,width:w.x1+&quot;px&quot;,height:b+&quot;px&quot;});ac.css({left:h+w.x1+&quot;px&quot;,top:j+&quot;px&quot;,width:w.width+&quot;px&quot;,height:w.y1+&quot;px&quot;});Y.css({left:h+w.x2+&quot;px&quot;,top:j+&quot;px&quot;,width:L-w.x2+&quot;px&quot;,height:b+&quot;px&quot;});U.css({left:h+w.x1+&quot;px&quot;,top:j+w.y2+&quot;px&quot;,width:w.width+&quot;px&quot;,height:b-w.y2+&quot;px&quot;})}function E(d){if(!z){ah();z=true;p.one(&quot;mouseout&quot;,function(){z=false})}W=F(ae(d))-w.x1;S=C(ad(d))-w.y1;J=[];if(O.resizable){if(S&lt;=Q){J[f]=&quot;n&quot;}else{if(S&gt;=w.height-Q){J[f]=&quot;s&quot;}}if(W&lt;=Q){J[q]=&quot;w&quot;}else{if(W&gt;=w.width-Q){J[q]=&quot;e&quot;}}}Z.css(&quot;cursor&quot;,J.length?J.join(&quot;&quot;)+&quot;-resize&quot;:O.movable?&quot;move&quot;:&quot;&quot;)}function o(d){if(d.which!=1){return false}ah();if(O.resizable&amp;&amp;J.length&gt;0){jQuery(&quot;body&quot;).css(&quot;cursor&quot;,J.join(&quot;&quot;)+&quot;-resize&quot;);B=I(J[q]==&quot;w&quot;?w.x2:w.x1);al=G(J[f]==&quot;n&quot;?w.y2:w.y1);jQuery(document).mousemove(X);Z.unbind(&quot;mousemove&quot;,E);jQuery(document).one(&quot;mouseup&quot;,function(){J=[];jQuery(&quot;body&quot;).css(&quot;cursor&quot;,&quot;&quot;);if(O.autoHide){p.add(e).hide()}O.onSelectEnd(l,w);jQuery(document).unbind(&quot;mousemove&quot;,X);Z.mousemove(E)})}else{if(O.movable){m=w.x1+h;k=w.y1+j;N=ae(d);M=ad(d);jQuery(document).mousemove(a).one(&quot;mouseup&quot;,function(){O.onSelectEnd(l,w);jQuery(document).unbind(&quot;mousemove&quot;,a)})}else{jQuery(l).mousedown(d)}}return false}function n(){A=Math.max(h,Math.min(h+L,B+Math.abs(aj-al)*P*(A&gt;B?1:-1)));aj=Math.round(Math.max(j,Math.min(j+b,al+Math.abs(A-B)/P*(aj&gt;al?1:-1))));A=Math.round(A)}function af(){aj=Math.max(j,Math.min(j+b,al+Math.abs(A-B)/P*(aj&gt;al?1:-1)));A=Math.round(Math.max(h,Math.min(h+L,B+Math.abs(aj-al)*P*(A&gt;B?1:-1))));aj=Math.round(aj)}function X(d){A=!J.length||J[q]||P?ae(d):I(w.x2);aj=!J.length||J[f]||P?ad(d):G(w.y2);if(O.minWidth&amp;&amp;Math.abs(A-B)&lt;O.minWidth){A=B-O.minWidth*(A&lt;B?1:-1);if(A&lt;h){B=h+O.minWidth}else{if(A&gt;h+L){B=h+L-O.minWidth}}}if(O.minHeight&amp;&amp;Math.abs(aj-al)&lt;O.minHeight){aj=al-O.minHeight*(aj&lt;al?1:-1);if(aj&lt;j){al=j+O.minHeight}else{if(aj&gt;j+b){al=j+b-O.minHeight}}}A=Math.max(h,Math.min(A,h+L));aj=Math.max(j,Math.min(aj,j+b));if(P){if(Math.abs(A-B)/P&gt;Math.abs(aj-al)){af()}else{n()}}if(O.maxWidth&amp;&amp;Math.abs(A-B)&gt;O.maxWidth){A=B-O.maxWidth*(A&lt;B?1:-1);if(P){af()}}if(O.maxHeight&amp;&amp;Math.abs(aj-al)&gt;O.maxHeight){aj=al-O.maxHeight*(aj&lt;al?1:-1);if(P){n()}}w.x1=F(Math.min(B,A));w.x2=F(Math.max(B,A));w.y1=C(Math.min(al,aj));w.y2=C(Math.max(al,aj));w.width=Math.abs(A-B);w.height=Math.abs(aj-al);R();O.onSelectChange(l,w);return false}function a(d){B=Math.max(h,Math.min(m+ae(d)-N,h+L-w.width));al=Math.max(j,Math.min(k+ad(d)-M,j+b-w.height));A=B+w.width;aj=al+w.height;w.x1=F(B);w.y1=C(al);w.x2=F(A);w.y2=C(aj);R();O.onSelectChange(l,w);d.preventDefault();return false}function g(d){if(d.which!=1){return false}ah();w.x1=w.x2=F(N=B=A=ae(d));w.y1=w.y2=C(M=al=aj=ad(d));w.width=0;w.height=0;J=[];R();p.add(e).show();jQuery(document).mousemove(X);Z.unbind(&quot;mousemove&quot;,E);O.onSelectStart(l,w);jQuery(document).one(&quot;mouseup&quot;,function(){if(O.autoHide){p.add(e).hide()}O.onSelectEnd(l,w);jQuery(document).unbind(&quot;mousemove&quot;,X);Z.mousemove(E)});return false}function u(){ah();R()}this.setOptions=function(d){O=jQuery.extend(O,d);if(d.x1!=null){w.x1=d.x1;w.y1=d.y1;w.x2=d.x2;w.y2=d.y2;d.show=true}r=jQuery(O.parent).get(0);ah();c=jQuery(l);while(c.length&amp;&amp;!c.is(&quot;body&quot;)){if(!isNaN(c.css(&quot;z-index&quot;))&amp;&amp;c.css(&quot;z-index&quot;)&gt;D){D=c.css(&quot;z-index&quot;)}if(c.css(&quot;position&quot;)==&quot;fixed&quot;){v=true}c=c.parent()}B=I(w.x1);al=G(w.y1);A=I(w.x2);aj=G(w.y2);w.width=A-B;w.height=aj-al;R();if(d.hide){p.add(e).hide()}else{if(d.show){p.add(e).show()}}e.addClass(O.classPrefix+&quot;-outer&quot;);aa.addClass(O.classPrefix+&quot;-selection&quot;);ab.addClass(O.classPrefix+&quot;-border1&quot;);Z.addClass(O.classPrefix+&quot;-border2&quot;);p.css({borderWidth:O.borderWidth+&quot;px&quot;});aa.css({backgroundColor:O.selectionColor,opacity:O.selectionOpacity});ab.css({borderStyle:&quot;solid&quot;,borderColor:O.borderColor1});Z.css({borderStyle:&quot;dashed&quot;,borderColor:O.borderColor2});e.css({opacity:O.outerOpacity,backgroundColor:O.outerColor});P=O.aspectRatio&amp;&amp;(ai=O.aspectRatio.split(/:/))?ai[0]/ai[1]:null;if(O.disable||O.enable===false){p.unbind(&quot;mousemove&quot;,E).unbind(&quot;mousedown&quot;,o);jQuery(l).add(e).unbind(&quot;mousedown&quot;,g);jQuery(window).unbind(&quot;resize&quot;,u)}else{if(O.enable||O.disable===false){if(O.resizable||O.movable){p.mousemove(E).mousedown(o)}jQuery(l).add(e).mousedown(g);jQuery(window).resize(u)}}jQuery(O.parent).append(e.add(p));O.enable=O.disable=undefined};if(jQuery.browser.msie){jQuery(l).attr(&quot;unselectable&quot;,&quot;on&quot;)}p.add(e).css({display:&quot;none&quot;,position:v?&quot;fixed&quot;:&quot;absolute&quot;,overflow:&quot;hidden&quot;,zIndex:D&gt;0?D:null});aa.css({borderStyle:&quot;solid&quot;});initOptions={borderColor1:&quot;#000&quot;,borderColor2:&quot;#fff&quot;,borderWidth:1,classPrefix:&quot;imgareaselect&quot;,movable:true,resizable:true,selectionColor:&quot;#fff&quot;,selectionOpacity:0.2,outerColor:&quot;#000&quot;,outerOpacity:0.2,parent:&quot;body&quot;,onSelectStart:function(){},onSelectChange:function(){},onSelectEnd:function(){}};O=jQuery.extend(initOptions,O);this.setOptions(O)};jQuery.fn.imgAreaSelect=function(a){a=a||{};this.each(function(){if(jQuery(this).data(&quot;imgAreaSelect&quot;)){jQuery(this).data(&quot;imgAreaSelect&quot;).setOptions(a)}else{if(a.enable===undefined&amp;&amp;a.disable===undefined){a.enable=true}jQuery(this).data(&quot;imgAreaSelect&quot;,new jQuery.imgAreaSelect(this,a))}});return this};function show_preview_window(b,a){$(&quot;#&quot;+a).jqm();$(&quot;#&quot;+a).jqmShow();$(&quot;#&quot;+a).html(&quot;&lt;iframe src='&quot;+b+&quot;' width='100%' height='100%' border='0' /&gt;&quot;)}function setup_preview(a,c,b){$(document).ready(function(){$(&quot;#&quot;+c).click(function(){show_preview_window(a,b);return false})})}$(document).ready(function(){if($(&quot;#item_list_container&quot;)){$(&quot;#item_list_container&quot;).tablesorter({dateFormat:&quot;dd/mm/yyyy&quot;,highlightClass:&quot;highlight_col&quot;,stripingRowClass:[&quot;item_row1&quot;,&quot;item_row0&quot;],stripeRowsOnStartUp:true})}if($(&quot;.form_datepicker&quot;)){$(&quot;.form_datepicker&quot;).datepicker({changeMonth:true,changeYear:true})}});$(document).ready(function(){inline_status_change()});function inline_status_change(){if($(&quot;.status_change&quot;)){$(&quot;.status_change&quot;).click(function(){current_status=$(this).attr(&quot;rel&quot;);dest=$(this).attr(&quot;href&quot;);dest=dest.replace(&quot;?status=0&quot;,&quot;&quot;).replace(&quot;?status=1&quot;,&quot;&quot;);replace=&quot;#&quot;+this.id;$.get(dest,{status:current_status,ajax:&quot;yes&quot;},function(a){$(replace).replaceWith(a);inline_status_change()});return false})}}jQuery.fn.centerScreen=function(a){var b=this;if(!a){b.css(&quot;top&quot;,$(window).height()/2-this.height()/2);b.css(&quot;left&quot;,$(window).width()/2-this.width()/2);$(window).resize(function(){b.centerScreen(!a)})}else{b.stop();b.animate({top:$(window).height()/2-this.height()/2,left:$(window).width()/2-this.width()/2},200,&quot;linear&quot;)}};var content_page_id;var model_string;var init_upload;var autosaver;var wym_editors=[];if(typeof(file_browser_location)==&quot;undefined&quot;){var file_browser_location=&quot;/admin/files/browse_images&quot;}$(document).ready(function(){$(&quot;#container&quot;).tabs();$(&quot;#page_tab_title&quot;).html($(&quot;#cms_content_title&quot;).val());$(&quot;#cms_content_title&quot;).keyup(function(){$(&quot;#page_tab_title&quot;).html($(&quot;#cms_content_title&quot;).val())});$(&quot;#new_cat_create&quot;).click(function(){$.ajax({url:&quot;../../new_category/?cat=&quot;+$(&quot;#new_cat&quot;).val(),complete:function(a){$(&quot;#category_list&quot;).html(a.responseText);initialise_draggables()}});return false});initialise_draggables();$(&quot;#link_dialog&quot;).dialog({autoOpen:false,width:&quot;auto&quot;,height:&quot;auto&quot;});$(&quot;#table_dialog&quot;).dialog({autoOpen:false,title:&quot;Insert a Table&quot;,width:700,height:500});$(&quot;#video_dialog&quot;).dialog({autoOpen:false,title:&quot;Insert a Video&quot;,width:700,height:500});$(&quot;#quick_upload_pane&quot;).dialog({autoOpen:false,title:&quot;Upload an Image&quot;,width:700,height:500});$(&quot;#upload_url_pane&quot;).dialog({autoOpen:false,title:&quot;Get Image From URL&quot;,width:700,height:500});$(&quot;#quick_upload_button&quot;).click(function(){$(&quot;#quick_upload_pane&quot;).dialog(&quot;open&quot;);$.ajax({url:&quot;/admin/files/quickupload/&quot;+content_page_id+&quot;?model=&quot;+model_string+&quot;&amp;join_field=&quot;+join_field,complete:function(a){$(&quot;#quick_upload_pane&quot;).html(a.responseText);init_upload()}})});$(&quot;#upload_url_button&quot;).click(function(){$(&quot;#upload_url_pane&quot;).dialog(&quot;open&quot;);$.ajax({url:&quot;/admin/files/upload_url/&quot;+content_page_id+&quot;?model=&quot;+model_string+&quot;&amp;join_field=&quot;+join_field,complete:function(a){$(&quot;#upload_url_pane&quot;).html(a.responseText);init_upload()}})})});function initialise_draggables(){$(&quot;#category_list .category_tag&quot;).draggable({opacity:0.5,revert:true,scroll:false,containment:&quot;window&quot;,helper:&quot;clone&quot;});$(&quot;#cat_dropzone&quot;).droppable({accept:&quot;.category_tag&quot;,hoverClass:&quot;dropzone_active&quot;,tolerance:&quot;pointer&quot;,drop:function(a,b){$.post(&quot;../../add_category/&quot;+content_page_id,{id:b.draggable.attr(&quot;id&quot;)},function(c){$(&quot;#cat_dropzone&quot;).html(c);initialise_draggables()})}});$(&quot;#category_list .category_tag&quot;).dblclick(function(){$.post(&quot;../../add_category/&quot;+content_page_id,{id:this.id},function(a){$(&quot;#cat_dropzone&quot;).html(a);initialise_draggables()})});$(&quot;.category_trash_button&quot;).click(function(){$.get(&quot;../../remove_category/&quot;+content_page_id+&quot;?cat=&quot;+this.id.substr(22),function(a){$(&quot;#cat_dropzone&quot;).html(a);initialise_draggables()})})}function delayed_cat_filter(a){$(&quot;#category_filter&quot;).css(&quot;background&quot;,&quot;white url(/images/cms/indicator.gif) no-repeat right center&quot;);$.ajax({type:&quot;post&quot;,url:&quot;/admin/categories/filters&quot;,data:&quot;filter=&quot;+a,complete:function(b){$(&quot;#category_list&quot;).html(b.responseText);initialise_draggables();if(typeof(t)!=&quot;undefined&quot;){clearTimeout(t)}$(&quot;#category_filter&quot;).css(&quot;background&quot;,&quot;white&quot;)}})}function delayed_image_filter(a){$(&quot;#image_filter&quot;).css(&quot;background&quot;,&quot;white url(/images/cms/indicator.gif) no-repeat right center&quot;);$.ajax({type:&quot;post&quot;,url:&quot;/admin/files/image_filter&quot;,data:&quot;filter=&quot;+$(&quot;#image_filter&quot;).val(),complete:function(b){$(&quot;#image_list&quot;).html(b.responseText);initialise_images();if(typeof(t)!=&quot;undefined&quot;){clearTimeout(t)}$(&quot;#image_filter&quot;).css(&quot;background&quot;,&quot;white&quot;)}})}$(document).ready(function(a){$(&quot;#image_filter&quot;).keyup(function(){if(typeof(t)!=&quot;undefined&quot;){clearTimeout(t)}t=setTimeout('delayed_image_filter($(&quot;#image_filter&quot;).val())',400)});$(&quot;#category_filter&quot;).keyup(function(){if(typeof(t)!=&quot;undefined&quot;){clearTimeout(t)}t=setTimeout('delayed_cat_filter($(&quot;#category_filter&quot;).val())',400)});$(&quot;#image_filter&quot;).focus(function(){if($(this).val()==&quot;Filter&quot;){$(this).val(&quot;&quot;)}});$(&quot;#category_filter&quot;).focus(function(){if($(this).val()==&quot;Filter&quot;){$(this).val(&quot;&quot;)}});$(&quot;#category_filter&quot;).blur(function(){if($(this).val()==&quot;&quot;){$(this).val(&quot;Filter&quot;)}});$(&quot;#wildfire_file_new_folder&quot;).change(function(b){$.post(file_browser_location,{filterfolder:$(this).val()},function(c){$(&quot;#image_list&quot;).html(c);initialise_images()})});$(&quot;#view_all_button&quot;).click(function(){$.post(file_browser_location,{},function(b){$(&quot;#image_list&quot;).html(b);initialise_images()})});$.get(file_browser_location+&quot;/1/&quot;,function(b){$(&quot;#image_list&quot;).html(b);initialise_images()});$(&quot;.jqwysi&quot;).wymeditor({skin:&quot;wildfire&quot;,stylesheet:&quot;/stylesheets/cms/wysiwyg_styles.css&quot;,postInit:function(c){init_preview_button(c);c.wildfire(c);wym_editors.push(c);var b=$(&quot;.ui-resizable-handle&quot;);$(&quot;.wym_box&quot;).resizable({handles:&quot;s&quot;});$(&quot;.wym_box&quot;).css(&quot;height&quot;,&quot;250px&quot;);$(&quot;.wym_area_main, .wym_iframe, iframe&quot;).css(&quot;height&quot;,&quot;100%&quot;);$(&quot;.wym_iframe&quot;).css(&quot;height&quot;,&quot;91%&quot;)}});if($(&quot;#quicksave&quot;).length){autosaver=setInterval(function(){autosave_content(wym_editors)},40000);$(&quot;#autosave&quot;).click(function(){autosave_content(wym_editors)})}});function wym_button(a,c){var b=&quot;&lt;li class='wym_tools_&quot;+a+&quot;'&gt;&lt;a name='&quot;+a+&quot;' href='#'&quot;+c+&quot;&lt;/a&gt;&lt;/li&gt;&quot;;return b}function initialise_images(){$(&quot;.drag_image&quot;).draggable({opacity:0.5,revert:true,scroll:true,containment:&quot;window&quot;,helper:&quot;clone&quot;});$(&quot;.remove_image&quot;).click(function(){$.get(&quot;../../remove_image/&quot;+content_page_id+&quot;?image=&quot;+this.id.substr(13)+&quot;&amp;order=&quot;+this.parentNode.id.substr(8),function(a){$(&quot;#drop_zones&quot;).html(a);initialise_images()});return false});$(&quot;#drop_zones&quot;).sortable({change:function(a,b){alert($(&quot;#drop_zones&quot;).sortable(&quot;serialize&quot;))}});$(&quot;.paginate_images&quot;).click(function(){$.get(file_browser_location+&quot;/&quot;+this.id.substr(12),{},function(a){$(&quot;#image_list&quot;).html(a);initialise_images()})});$(&quot;#drop_zones&quot;).droppable({accept:&quot;.drag_image&quot;,hoverClass:&quot;dropzone_active&quot;,tolerance:&quot;pointer&quot;,drop:function(a,b){$.post(&quot;../../add_image/&quot;+content_page_id,{id:b.draggable.attr(&quot;id&quot;),order:$(&quot;.dropped_image&quot;).size()},function(c){$(&quot;#drop_zones&quot;).html(c);initialise_images();return true})}});$(&quot;.url_image&quot;).click(function(){$.get(&quot;/admin/files/image_urls/&quot;+$(this).attr(&quot;id&quot;).replace(&quot;url_image_&quot;,&quot;&quot;),function(a){$(&quot;&lt;div&gt;&quot;+a+&quot;&lt;/div&gt;&quot;).dialog({title:&quot;Image URL&quot;,width:700}).dialog(&quot;open&quot;)})});$(&quot;.add_image&quot;).unbind(&quot;click&quot;);$(&quot;.add_image&quot;).click(function(){$.post(&quot;../../add_image/&quot;+content_page_id,{id:$(this).attr(&quot;id&quot;).replace(&quot;add_image_&quot;,&quot;&quot;),order:$(&quot;.dropped_image&quot;).size()},function(a){$(&quot;#drop_zones&quot;).html(a);initialise_images();return true})})}function get_query_var(c,a){var c=c.substring((c.indexOf(&quot;?&quot;)+1));var d=c.split(&quot;&amp;&quot;);for(var b=0;b&lt;d.length;b++){var e=d[b].split(&quot;=&quot;);if(e[0]==a){return e[1]}}}$(document).ready(function(){if(!a){var a=&quot;images&quot;}});function reload_images(){$.post(file_browser_location,{filterfolder:$(this).val()},function(a){$(&quot;#image_list&quot;).html(a);initialise_images()});$.get(&quot;../../attached_images/&quot;+content_page_id,function(a){$(&quot;#drop_zones&quot;).html(a);initialise_images()})}function cms_insert_url(a){if(a==&quot;web&quot;){var b=prompt(&quot;Enter the URL for this link:&quot;,&quot;http://&quot;)}else{var b=a}if(b!=null){theIframe.contentWindow.document.execCommand(&quot;CreateLink&quot;,false,b);theWidgEditor.theToolbar.setState(&quot;Link&quot;,&quot;on&quot;)}}function cms_insert_video(b,d,a,c){if(c.length&gt;0){theIframe.contentWindow.document.execCommand(&quot;inserthtml&quot;,false,&quot;&lt;a href='&quot;+b+&quot;' rel='&quot;+d+&quot;px:&quot;+a+&quot;px'&gt;LOCAL:&quot;+c+&quot;&lt;/a&gt;&quot;)}else{theIframe.contentWindow.document.execCommand(&quot;inserthtml&quot;,false,&quot;&lt;a href='&quot;+b+&quot;' rel='&quot;+d+&quot;px:&quot;+a+&quot;px'&gt;&quot;+b+&quot;&lt;/a&gt;&quot;)}theWidgEditor.theToolbar.setState(&quot;Video&quot;,&quot;on&quot;)}$(document).ready(function(){$(&quot;#autosave_disable&quot;).click(function(){clearInterval(autosaver);$(&quot;#autosave_status&quot;).html(&quot;Autosave Disabled&quot;)})});function autosave_content(b){for(var a in b){b[a].update()}$(&quot;#ajaxBusy&quot;).css({opacity:0});$.ajax({url:&quot;/admin/content/autosave/&quot;+content_page_id,beforeSend:function(){$(&quot;#quicksave&quot;).effect(&quot;pulsate&quot;,{times:3},1000)},type:&quot;POST&quot;,processData:false,data:$(&quot;#content_edit_form&quot;).serialize(),success:function(c){$(&quot;#autosave_status&quot;).html(&quot;Saved at &quot;+c);$(&quot;#ajaxBusy&quot;).css({opacity:1})}})}function init_preview_button(a){$(&quot;#preview_link&quot;).click(function(){autosave_content(wym_editors)})}$(document).ready(function(){$(&quot;#content_title_edit&quot;).hover(function(){var a=$(this).parent();a.css(&quot;background-color&quot;,&quot;#fbf485&quot;);$(this).bind(&quot;click.editable&quot;,function(){$(this).unbind(&quot;click.editable&quot;);el='&lt;input type=&quot;text&quot; value=&quot;'+$(&quot;#content_title_label&quot;).text()+'&quot; id=&quot;content_title_editing&quot; /&gt;';elsave=$(&quot;&lt;a href='#' id='content_edit_save'&gt;&lt;img src='/images/cms/cms_quick_save.gif'&lt;/a&gt;&quot;);a.parent().after(el);$(&quot;#content_title_editing&quot;).before(elsave);$(&quot;#content_edit_save&quot;).css({position:&quot;relative&quot;,left:&quot;255px&quot;,top:&quot;10px&quot;,width:&quot;0px&quot;,cursor:&quot;pointer&quot;});elsave.click(function(){$(&quot;#content_title&quot;).show();$(&quot;#content_title_label&quot;).html($(&quot;#content_title_editing&quot;).val());$(&quot;#content_title_editing&quot;).remove();$(this).remove()});$(&quot;#content_title&quot;).hide();$(&quot;#content_title_editing&quot;).change(function(){var b=$(&quot;#content_title&quot;).attr(&quot;rel&quot;);$(&quot;#&quot;+b).val($(this).val())});$(&quot;#content_title_editing&quot;).blur(function(){$(&quot;#content_title&quot;).show();$(&quot;#content_title_label&quot;).html($(&quot;#content_title_editing&quot;).val());$(&quot;#content_title_editing&quot;).remove();$(&quot;#content_edit_save&quot;).remove()});$(&quot;#content_title_editing&quot;).get(0).focus()})},function(){var a=$(this).parent();a.css(&quot;background-color&quot;,&quot;transparent&quot;);$(this).unbind(&quot;click.editable&quot;)})});$(document).ready(function(){$(&quot;body&quot;).append('&lt;div id=&quot;ajaxBusy&quot;&gt;&lt;p&gt;Loading&lt;br /&gt;&lt;img src=&quot;/images/cms/indicator_dark.gif&quot;&gt;&lt;/p&gt;&lt;/div&gt;');$(&quot;#ajaxBusy&quot;).css({display:&quot;none&quot;,margin:&quot;0&quot;,position:&quot;absolute&quot;,background:&quot;#333&quot;,textAlign:&quot;center&quot;,fontSize:&quot;100%&quot;,color:&quot;#999&quot;,letterSpacing:&quot;5px&quot;,textTransform:&quot;uppercase&quot;,border:&quot;1px solid #c1c1c1&quot;,width:&quot;200px&quot;,height:&quot;90px&quot;,&quot;-webkit-box-shadow&quot;:&quot;5px 5px 5px #666&quot;,&quot;-moz-box-shadow&quot;:&quot;5px 5px 5px #666&quot;,lineHeight:&quot;190%&quot;,&quot;-webkit-border-radius&quot;:&quot;7px&quot;,&quot;-moz-border-radius&quot;:&quot;7px&quot;});$(document).ajaxStart(function(a){$(&quot;#ajaxBusy&quot;).show().centerScreen()});$(document).ajaxStop(function(){$(&quot;#ajaxBusy&quot;).hide()});$(document).ajaxError(function(){$(&quot;#ajaxBusy&quot;).hide()})});$(document).ready(function(){$(&quot;#cms_content_language&quot;).change(function(){var a=window.location.href.split(&quot;?&quot;);window.location.replace(a[0]+&quot;?lang=&quot;+$(this).val())})});$(document).ready(function(){$(&quot;#dashboard #sub-navigation-container #quick_search&quot;).remove();$(&quot;#quick_search form input, #quick_create form input&quot;).hint();$(&quot;#live_search_field&quot;).keyup(function(){if(typeof(t)!=&quot;undefined&quot;){clearTimeout(t)}t=setTimeout(function(){live_search($(&quot;#live_search_field&quot;).val())},400)});$(&quot;.live_search_results&quot;).hover(function(){},function(){s=setTimeout(&quot;live_search_close()&quot;,800)})});function live_search(a){$(&quot;#live_search_field&quot;).css(&quot;background&quot;,&quot;white url(/images/cms/indicator.gif) no-repeat right center&quot;);$.ajax({type:&quot;post&quot;,url:&quot;/admin/content/search&quot;,data:&quot;input=&quot;+a,complete:function(b){$(&quot;#live_search_field&quot;).parent().find(&quot;.live_search_results&quot;).html(b.responseText).show();if(typeof(t)!=&quot;undefined&quot;){clearTimeout(t)}$(&quot;#live_search_field&quot;).css(&quot;background&quot;,&quot;white&quot;)}})}function live_search_close(){if(typeof(s)!=&quot;undefined&quot;){clearTimeout(s)}$(&quot;.live_search_results&quot;).empty();$(&quot;.live_search_results&quot;).hide()}var SWFUpload;if(SWFUpload==undefined){SWFUpload=function(a){this.initSWFUpload(a)}}SWFUpload.prototype.initSWFUpload=function(b){try{this.customSettings={};this.settings=b;this.eventQueue=[];this.movieName=&quot;SWFUpload_&quot;+SWFUpload.movieCount++;this.movieElement=null;SWFUpload.instances[this.movieName]=this;this.initSettings();this.loadFlash();this.displayDebugInfo()}catch(a){delete SWFUpload.instances[this.movieName];throw a}};SWFUpload.instances={};SWFUpload.movieCount=0;SWFUpload.version=&quot;2.2.0 2009-03-25&quot;;SWFUpload.QUEUE_ERROR={QUEUE_LIMIT_EXCEEDED:-100,FILE_EXCEEDS_SIZE_LIMIT:-110,ZERO_BYTE_FILE:-120,INVALID_FILETYPE:-130};SWFUpload.UPLOAD_ERROR={HTTP_ERROR:-200,MISSING_UPLOAD_URL:-210,IO_ERROR:-220,SECURITY_ERROR:-230,UPLOAD_LIMIT_EXCEEDED:-240,UPLOAD_FAILED:-250,SPECIFIED_FILE_ID_NOT_FOUND:-260,FILE_VALIDATION_FAILED:-270,FILE_CANCELLED:-280,UPLOAD_STOPPED:-290};SWFUpload.FILE_STATUS={QUEUED:-1,IN_PROGRESS:-2,ERROR:-3,COMPLETE:-4,CANCELLED:-5};SWFUpload.BUTTON_ACTION={SELECT_FILE:-100,SELECT_FILES:-110,START_UPLOAD:-120};SWFUpload.CURSOR={ARROW:-1,HAND:-2};SWFUpload.WINDOW_MODE={WINDOW:&quot;window&quot;,TRANSPARENT:&quot;transparent&quot;,OPAQUE:&quot;opaque&quot;};SWFUpload.completeURL=function(a){if(typeof(a)!==&quot;string&quot;||a.match(/^https?:\/\//i)||a.match(/^\//)){return a}var c=window.location.protocol+&quot;//&quot;+window.location.hostname+(window.location.port?&quot;:&quot;+window.location.port:&quot;&quot;);var b=window.location.pathname.lastIndexOf(&quot;/&quot;);if(b&lt;=0){path=&quot;/&quot;}else{path=window.location.pathname.substr(0,b)+&quot;/&quot;}return path+a};SWFUpload.prototype.initSettings=function(){this.ensureDefault=function(b,a){this.settings[b]=(this.settings[b]==undefined)?a:this.settings[b]};this.ensureDefault(&quot;upload_url&quot;,&quot;&quot;);this.ensureDefault(&quot;preserve_relative_urls&quot;,false);this.ensureDefault(&quot;file_post_name&quot;,&quot;Filedata&quot;);this.ensureDefault(&quot;post_params&quot;,{});this.ensureDefault(&quot;use_query_string&quot;,false);this.ensureDefault(&quot;requeue_on_error&quot;,false);this.ensureDefault(&quot;http_success&quot;,[]);this.ensureDefault(&quot;assume_success_timeout&quot;,0);this.ensureDefault(&quot;file_types&quot;,&quot;*.*&quot;);this.ensureDefault(&quot;file_types_description&quot;,&quot;All Files&quot;);this.ensureDefault(&quot;file_size_limit&quot;,0);this.ensureDefault(&quot;file_upload_limit&quot;,0);this.ensureDefault(&quot;file_queue_limit&quot;,0);this.ensureDefault(&quot;flash_url&quot;,&quot;swfupload.swf&quot;);this.ensureDefault(&quot;prevent_swf_caching&quot;,true);this.ensureDefault(&quot;button_image_url&quot;,&quot;&quot;);this.ensureDefault(&quot;button_width&quot;,1);this.ensureDefault(&quot;button_height&quot;,1);this.ensureDefault(&quot;button_text&quot;,&quot;&quot;);this.ensureDefault(&quot;button_text_style&quot;,&quot;color: #000000; font-size: 16pt;&quot;);this.ensureDefault(&quot;button_text_top_padding&quot;,0);this.ensureDefault(&quot;button_text_left_padding&quot;,0);this.ensureDefault(&quot;button_action&quot;,SWFUpload.BUTTON_ACTION.SELECT_FILES);this.ensureDefault(&quot;button_disabled&quot;,false);this.ensureDefault(&quot;button_placeholder_id&quot;,&quot;&quot;);this.ensureDefault(&quot;button_placeholder&quot;,null);this.ensureDefault(&quot;button_cursor&quot;,SWFUpload.CURSOR.ARROW);this.ensureDefault(&quot;button_window_mode&quot;,SWFUpload.WINDOW_MODE.WINDOW);this.ensureDefault(&quot;debug&quot;,false);this.settings.debug_enabled=this.settings.debug;this.settings.return_upload_start_handler=this.returnUploadStart;this.ensureDefault(&quot;swfupload_loaded_handler&quot;,null);this.ensureDefault(&quot;file_dialog_start_handler&quot;,null);this.ensureDefault(&quot;file_queued_handler&quot;,null);this.ensureDefault(&quot;file_queue_error_handler&quot;,null);this.ensureDefault(&quot;file_dialog_complete_handler&quot;,null);this.ensureDefault(&quot;upload_start_handler&quot;,null);this.ensureDefault(&quot;upload_progress_handler&quot;,null);this.ensureDefault(&quot;upload_error_handler&quot;,null);this.ensureDefault(&quot;upload_success_handler&quot;,null);this.ensureDefault(&quot;upload_complete_handler&quot;,null);this.ensureDefault(&quot;debug_handler&quot;,this.debugMessage);this.ensureDefault(&quot;custom_settings&quot;,{});this.customSettings=this.settings.custom_settings;if(!!this.settings.prevent_swf_caching){this.settings.flash_url=this.settings.flash_url+(this.settings.flash_url.indexOf(&quot;?&quot;)&lt;0?&quot;?&quot;:&quot;&amp;&quot;)+&quot;preventswfcaching=&quot;+new Date().getTime()}if(!this.settings.preserve_relative_urls){this.settings.upload_url=SWFUpload.completeURL(this.settings.upload_url);this.settings.button_image_url=SWFUpload.completeURL(this.settings.button_image_url)}delete this.ensureDefault};SWFUpload.prototype.loadFlash=function(){var a,b;if(document.getElementById(this.movieName)!==null){throw&quot;ID &quot;+this.movieName+&quot; is already in use. The Flash Object could not be added&quot;}a=document.getElementById(this.settings.button_placeholder_id)||this.settings.button_placeholder;if(a==undefined){throw&quot;Could not find the placeholder element: &quot;+this.settings.button_placeholder_id}b=document.createElement(&quot;div&quot;);b.innerHTML=this.getFlashHTML();a.parentNode.replaceChild(b.firstChild,a);if(window[this.movieName]==undefined){window[this.movieName]=this.getMovieElement()}};SWFUpload.prototype.getFlashHTML=function(){return['&lt;object id=&quot;',this.movieName,'&quot; type=&quot;application/x-shockwave-flash&quot; data=&quot;',this.settings.flash_url,'&quot; width=&quot;',this.settings.button_width,'&quot; height=&quot;',this.settings.button_height,'&quot; class=&quot;swfupload&quot;&gt;','&lt;param name=&quot;wmode&quot; value=&quot;',this.settings.button_window_mode,'&quot; /&gt;','&lt;param name=&quot;movie&quot; value=&quot;',this.settings.flash_url,'&quot; /&gt;','&lt;param name=&quot;quality&quot; value=&quot;high&quot; /&gt;','&lt;param name=&quot;menu&quot; value=&quot;false&quot; /&gt;','&lt;param name=&quot;allowScriptAccess&quot; value=&quot;always&quot; /&gt;','&lt;param name=&quot;flashvars&quot; value=&quot;'+this.getFlashVars()+'&quot; /&gt;',&quot;&lt;/object&gt;&quot;].join(&quot;&quot;)};SWFUpload.prototype.getFlashVars=function(){var b=this.buildParamString();var a=this.settings.http_success.join(&quot;,&quot;);return[&quot;movieName=&quot;,encodeURIComponent(this.movieName),&quot;&amp;amp;uploadURL=&quot;,encodeURIComponent(this.settings.upload_url),&quot;&amp;amp;useQueryString=&quot;,encodeURIComponent(this.settings.use_query_string),&quot;&amp;amp;requeueOnError=&quot;,encodeURIComponent(this.settings.requeue_on_error),&quot;&amp;amp;httpSuccess=&quot;,encodeURIComponent(a),&quot;&amp;amp;assumeSuccessTimeout=&quot;,encodeURIComponent(this.settings.assume_success_timeout),&quot;&amp;amp;params=&quot;,encodeURIComponent(b),&quot;&amp;amp;filePostName=&quot;,encodeURIComponent(this.settings.file_post_name),&quot;&amp;amp;fileTypes=&quot;,encodeURIComponent(this.settings.file_types),&quot;&amp;amp;fileTypesDescription=&quot;,encodeURIComponent(this.settings.file_types_description),&quot;&amp;amp;fileSizeLimit=&quot;,encodeURIComponent(this.settings.file_size_limit),&quot;&amp;amp;fileUploadLimit=&quot;,encodeURIComponent(this.settings.file_upload_limit),&quot;&amp;amp;fileQueueLimit=&quot;,encodeURIComponent(this.settings.file_queue_limit),&quot;&amp;amp;debugEnabled=&quot;,encodeURIComponent(this.settings.debug_enabled),&quot;&amp;amp;buttonImageURL=&quot;,encodeURIComponent(this.settings.button_image_url),&quot;&amp;amp;buttonWidth=&quot;,encodeURIComponent(this.settings.button_width),&quot;&amp;amp;buttonHeight=&quot;,encodeURIComponent(this.settings.button_height),&quot;&amp;amp;buttonText=&quot;,encodeURIComponent(this.settings.button_text),&quot;&amp;amp;buttonTextTopPadding=&quot;,encodeURIComponent(this.settings.button_text_top_padding),&quot;&amp;amp;buttonTextLeftPadding=&quot;,encodeURIComponent(this.settings.button_text_left_padding),&quot;&amp;amp;buttonTextStyle=&quot;,encodeURIComponent(this.settings.button_text_style),&quot;&amp;amp;buttonAction=&quot;,encodeURIComponent(this.settings.button_action),&quot;&amp;amp;buttonDisabled=&quot;,encodeURIComponent(this.settings.button_disabled),&quot;&amp;amp;buttonCursor=&quot;,encodeURIComponent(this.settings.button_cursor)].join(&quot;&quot;)};SWFUpload.prototype.getMovieElement=function(){if(this.movieElement==undefined){this.movieElement=document.getElementById(this.movieName)}if(this.movieElement===null){throw&quot;Could not find Flash element&quot;}return this.movieElement};SWFUpload.prototype.buildParamString=function(){var c=this.settings.post_params;var b=[];if(typeof(c)===&quot;object&quot;){for(var a in c){if(c.hasOwnProperty(a)){b.push(encodeURIComponent(a.toString())+&quot;=&quot;+encodeURIComponent(c[a].toString()))}}}return b.join(&quot;&amp;amp;&quot;)};SWFUpload.prototype.destroy=function(){try{this.cancelUpload(null,false);var a=null;a=this.getMovieElement();if(a&amp;&amp;typeof(a.CallFunction)===&quot;unknown&quot;){for(var c in a){try{if(typeof(a[c])===&quot;function&quot;){a[c]=null}}catch(e){}}try{a.parentNode.removeChild(a)}catch(b){}}window[this.movieName]=null;SWFUpload.instances[this.movieName]=null;delete SWFUpload.instances[this.movieName];this.movieElement=null;this.settings=null;this.customSettings=null;this.eventQueue=null;this.movieName=null;return true}catch(d){return false}};SWFUpload.prototype.displayDebugInfo=function(){this.debug([&quot;---SWFUpload Instance Info---\n&quot;,&quot;Version: &quot;,SWFUpload.version,&quot;\n&quot;,&quot;Movie Name: &quot;,this.movieName,&quot;\n&quot;,&quot;Settings:\n&quot;,&quot;\t&quot;,&quot;upload_url:               &quot;,this.settings.upload_url,&quot;\n&quot;,&quot;\t&quot;,&quot;flash_url:                &quot;,this.settings.flash_url,&quot;\n&quot;,&quot;\t&quot;,&quot;use_query_string:         &quot;,this.settings.use_query_string.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;requeue_on_error:         &quot;,this.settings.requeue_on_error.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;http_success:             &quot;,this.settings.http_success.join(&quot;, &quot;),&quot;\n&quot;,&quot;\t&quot;,&quot;assume_success_timeout:   &quot;,this.settings.assume_success_timeout,&quot;\n&quot;,&quot;\t&quot;,&quot;file_post_name:           &quot;,this.settings.file_post_name,&quot;\n&quot;,&quot;\t&quot;,&quot;post_params:              &quot;,this.settings.post_params.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;file_types:               &quot;,this.settings.file_types,&quot;\n&quot;,&quot;\t&quot;,&quot;file_types_description:   &quot;,this.settings.file_types_description,&quot;\n&quot;,&quot;\t&quot;,&quot;file_size_limit:          &quot;,this.settings.file_size_limit,&quot;\n&quot;,&quot;\t&quot;,&quot;file_upload_limit:        &quot;,this.settings.file_upload_limit,&quot;\n&quot;,&quot;\t&quot;,&quot;file_queue_limit:         &quot;,this.settings.file_queue_limit,&quot;\n&quot;,&quot;\t&quot;,&quot;debug:                    &quot;,this.settings.debug.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;prevent_swf_caching:      &quot;,this.settings.prevent_swf_caching.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;button_placeholder_id:    &quot;,this.settings.button_placeholder_id.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;button_placeholder:       &quot;,(this.settings.button_placeholder?&quot;Set&quot;:&quot;Not Set&quot;),&quot;\n&quot;,&quot;\t&quot;,&quot;button_image_url:         &quot;,this.settings.button_image_url.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;button_width:             &quot;,this.settings.button_width.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;button_height:            &quot;,this.settings.button_height.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;button_text:              &quot;,this.settings.button_text.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;button_text_style:        &quot;,this.settings.button_text_style.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;button_text_top_padding:  &quot;,this.settings.button_text_top_padding.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;button_text_left_padding: &quot;,this.settings.button_text_left_padding.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;button_action:            &quot;,this.settings.button_action.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;button_disabled:          &quot;,this.settings.button_disabled.toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;custom_settings:          &quot;,this.settings.custom_settings.toString(),&quot;\n&quot;,&quot;Event Handlers:\n&quot;,&quot;\t&quot;,&quot;swfupload_loaded_handler assigned:  &quot;,(typeof this.settings.swfupload_loaded_handler===&quot;function&quot;).toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;file_dialog_start_handler assigned: &quot;,(typeof this.settings.file_dialog_start_handler===&quot;function&quot;).toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;file_queued_handler assigned:       &quot;,(typeof this.settings.file_queued_handler===&quot;function&quot;).toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;file_queue_error_handler assigned:  &quot;,(typeof this.settings.file_queue_error_handler===&quot;function&quot;).toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;upload_start_handler assigned:      &quot;,(typeof this.settings.upload_start_handler===&quot;function&quot;).toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;upload_progress_handler assigned:   &quot;,(typeof this.settings.upload_progress_handler===&quot;function&quot;).toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;upload_error_handler assigned:      &quot;,(typeof this.settings.upload_error_handler===&quot;function&quot;).toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;upload_success_handler assigned:    &quot;,(typeof this.settings.upload_success_handler===&quot;function&quot;).toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;upload_complete_handler assigned:   &quot;,(typeof this.settings.upload_complete_handler===&quot;function&quot;).toString(),&quot;\n&quot;,&quot;\t&quot;,&quot;debug_handler assigned:             &quot;,(typeof this.settings.debug_handler===&quot;function&quot;).toString(),&quot;\n&quot;].join(&quot;&quot;))};SWFUpload.prototype.addSetting=function(b,c,a){if(c==undefined){return(this.settings[b]=a)}else{return(this.settings[b]=c)}};SWFUpload.prototype.getSetting=function(a){if(this.settings[a]!=undefined){return this.settings[a]}return&quot;&quot;};SWFUpload.prototype.callFlash=function(functionName,argumentArray){argumentArray=argumentArray||[];var movieElement=this.getMovieElement();var returnValue,returnString;try{returnString=movieElement.CallFunction('&lt;invoke name=&quot;'+functionName+'&quot; returntype=&quot;javascript&quot;&gt;'+__flash__argumentsToXML(argumentArray,0)+&quot;&lt;/invoke&gt;&quot;);returnValue=eval(returnString)}catch(ex){throw&quot;Call to &quot;+functionName+&quot; failed&quot;}if(returnValue!=undefined&amp;&amp;typeof returnValue.post===&quot;object&quot;){returnValue=this.unescapeFilePostParams(returnValue)}return returnValue};SWFUpload.prototype.selectFile=function(){this.callFlash(&quot;SelectFile&quot;)};SWFUpload.prototype.selectFiles=function(){this.callFlash(&quot;SelectFiles&quot;)};SWFUpload.prototype.startUpload=function(a){this.callFlash(&quot;StartUpload&quot;,[a])};SWFUpload.prototype.cancelUpload=function(a,b){if(b!==false){b=true}this.callFlash(&quot;CancelUpload&quot;,[a,b])};SWFUpload.prototype.stopUpload=function(){this.callFlash(&quot;StopUpload&quot;)};SWFUpload.prototype.getStats=function(){return this.callFlash(&quot;GetStats&quot;)};SWFUpload.prototype.setStats=function(a){this.callFlash(&quot;SetStats&quot;,[a])};SWFUpload.prototype.getFile=function(a){if(typeof(a)===&quot;number&quot;){return this.callFlash(&quot;GetFileByIndex&quot;,[a])}else{return this.callFlash(&quot;GetFile&quot;,[a])}};SWFUpload.prototype.addFileParam=function(a,b,c){return this.callFlash(&quot;AddFileParam&quot;,[a,b,c])};SWFUpload.prototype.removeFileParam=function(a,b){this.callFlash(&quot;RemoveFileParam&quot;,[a,b])};SWFUpload.prototype.setUploadURL=function(a){this.settings.upload_url=a.toString();this.callFlash(&quot;SetUploadURL&quot;,[a])};SWFUpload.prototype.setPostParams=function(a){this.settings.post_params=a;this.callFlash(&quot;SetPostParams&quot;,[a])};SWFUpload.prototype.addPostParam=function(a,b){this.settings.post_params[a]=b;this.callFlash(&quot;SetPostParams&quot;,[this.settings.post_params])};SWFUpload.prototype.removePostParam=function(a){delete this.settings.post_params[a];this.callFlash(&quot;SetPostParams&quot;,[this.settings.post_params])};SWFUpload.prototype.setFileTypes=function(a,b){this.settings.file_types=a;this.settings.file_types_description=b;this.callFlash(&quot;SetFileTypes&quot;,[a,b])};SWFUpload.prototype.setFileSizeLimit=function(a){this.settings.file_size_limit=a;this.callFlash(&quot;SetFileSizeLimit&quot;,[a])};SWFUpload.prototype.setFileUploadLimit=function(a){this.settings.file_upload_limit=a;this.callFlash(&quot;SetFileUploadLimit&quot;,[a])};SWFUpload.prototype.setFileQueueLimit=function(a){this.settings.file_queue_limit=a;this.callFlash(&quot;SetFileQueueLimit&quot;,[a])};SWFUpload.prototype.setFilePostName=function(a){this.settings.file_post_name=a;this.callFlash(&quot;SetFilePostName&quot;,[a])};SWFUpload.prototype.setUseQueryString=function(a){this.settings.use_query_string=a;this.callFlash(&quot;SetUseQueryString&quot;,[a])};SWFUpload.prototype.setRequeueOnError=function(a){this.settings.requeue_on_error=a;this.callFlash(&quot;SetRequeueOnError&quot;,[a])};SWFUpload.prototype.setHTTPSuccess=function(a){if(typeof a===&quot;string&quot;){a=a.replace(&quot; &quot;,&quot;&quot;).split(&quot;,&quot;)}this.settings.http_success=a;this.callFlash(&quot;SetHTTPSuccess&quot;,[a])};SWFUpload.prototype.setAssumeSuccessTimeout=function(a){this.settings.assume_success_timeout=a;this.callFlash(&quot;SetAssumeSuccessTimeout&quot;,[a])};SWFUpload.prototype.setDebugEnabled=function(a){this.settings.debug_enabled=a;this.callFlash(&quot;SetDebugEnabled&quot;,[a])};SWFUpload.prototype.setButtonImageURL=function(a){if(a==undefined){a=&quot;&quot;}this.settings.button_image_url=a;this.callFlash(&quot;SetButtonImageURL&quot;,[a])};SWFUpload.prototype.setButtonDimensions=function(c,a){this.settings.button_width=c;this.settings.button_height=a;var b=this.getMovieElement();if(b!=undefined){b.style.width=c+&quot;px&quot;;b.style.height=a+&quot;px&quot;}this.callFlash(&quot;SetButtonDimensions&quot;,[c,a])};SWFUpload.prototype.setButtonText=function(a){this.settings.button_text=a;this.callFlash(&quot;SetButtonText&quot;,[a])};SWFUpload.prototype.setButtonTextPadding=function(b,a){this.settings.button_text_top_padding=a;this.settings.button_text_left_padding=b;this.callFlash(&quot;SetButtonTextPadding&quot;,[b,a])};SWFUpload.prototype.setButtonTextStyle=function(a){this.settings.button_text_style=a;this.callFlash(&quot;SetButtonTextStyle&quot;,[a])};SWFUpload.prototype.setButtonDisabled=function(a){this.settings.button_disabled=a;this.callFlash(&quot;SetButtonDisabled&quot;,[a])};SWFUpload.prototype.setButtonAction=function(a){this.settings.button_action=a;this.callFlash(&quot;SetButtonAction&quot;,[a])};SWFUpload.prototype.setButtonCursor=function(a){this.settings.button_cursor=a;this.callFlash(&quot;SetButtonCursor&quot;,[a])};SWFUpload.prototype.queueEvent=function(b,c){if(c==undefined){c=[]}else{if(!(c instanceof Array)){c=[c]}}var a=this;if(typeof this.settings[b]===&quot;function&quot;){this.eventQueue.push(function(){this.settings[b].apply(this,c)});setTimeout(function(){a.executeNextEvent()},0)}else{if(this.settings[b]!==null){throw&quot;Event handler &quot;+b+&quot; is unknown or is not a function&quot;}}};SWFUpload.prototype.executeNextEvent=function(){var a=this.eventQueue?this.eventQueue.shift():null;if(typeof(a)===&quot;function&quot;){a.apply(this)}};SWFUpload.prototype.unescapeFilePostParams=function(c){var e=/[$]([0-9a-f]{4})/i;var f={};var d;if(c!=undefined){for(var a in c.post){if(c.post.hasOwnProperty(a)){d=a;var b;while((b=e.exec(d))!==null){d=d.replace(b[0],String.fromCharCode(parseInt(&quot;0x&quot;+b[1],16)))}f[d]=c.post[a]}}c.post=f}return c};SWFUpload.prototype.testExternalInterface=function(){try{return this.callFlash(&quot;TestExternalInterface&quot;)}catch(a){return false}};SWFUpload.prototype.flashReady=function(){var a=this.getMovieElement();if(!a){this.debug(&quot;Flash called back ready but the flash movie can't be found.&quot;);return}this.cleanUp(a);this.queueEvent(&quot;swfupload_loaded_handler&quot;)};SWFUpload.prototype.cleanUp=function(a){try{if(this.movieElement&amp;&amp;typeof(a.CallFunction)===&quot;unknown&quot;){this.debug(&quot;Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)&quot;);for(var c in a){try{if(typeof(a[c])===&quot;function&quot;){a[c]=null}}catch(b){}}}}catch(d){}window.__flash__removeCallback=function(e,f){try{if(e){e[f]=null}}catch(g){}}};SWFUpload.prototype.fileDialogStart=function(){this.queueEvent(&quot;file_dialog_start_handler&quot;)};SWFUpload.prototype.fileQueued=function(a){a=this.unescapeFilePostParams(a);this.queueEvent(&quot;file_queued_handler&quot;,a)};SWFUpload.prototype.fileQueueError=function(a,c,b){a=this.unescapeFilePostParams(a);this.queueEvent(&quot;file_queue_error_handler&quot;,[a,c,b])};SWFUpload.prototype.fileDialogComplete=function(b,c,a){this.queueEvent(&quot;file_dialog_complete_handler&quot;,[b,c,a])};SWFUpload.prototype.uploadStart=function(a){a=this.unescapeFilePostParams(a);this.queueEvent(&quot;return_upload_start_handler&quot;,a)};SWFUpload.prototype.returnUploadStart=function(a){var b;if(typeof this.settings.upload_start_handler===&quot;function&quot;){a=this.unescapeFilePostParams(a);b=this.settings.upload_start_handler.call(this,a)}else{if(this.settings.upload_start_handler!=undefined){throw&quot;upload_start_handler must be a function&quot;}}if(b===undefined){b=true}b=!!b;this.callFlash(&quot;ReturnUploadStart&quot;,[b])};SWFUpload.prototype.uploadProgress=function(a,c,b){a=this.unescapeFilePostParams(a);this.queueEvent(&quot;upload_progress_handler&quot;,[a,c,b])};SWFUpload.prototype.uploadError=function(a,c,b){a=this.unescapeFilePostParams(a);this.queueEvent(&quot;upload_error_handler&quot;,[a,c,b])};SWFUpload.prototype.uploadSuccess=function(b,a,c){b=this.unescapeFilePostParams(b);this.queueEvent(&quot;upload_success_handler&quot;,[b,a,c])};SWFUpload.prototype.uploadComplete=function(a){a=this.unescapeFilePostParams(a);this.queueEvent(&quot;upload_complete_handler&quot;,a)};SWFUpload.prototype.debug=function(a){this.queueEvent(&quot;debug_handler&quot;,a)};SWFUpload.prototype.debugMessage=function(c){if(this.settings.debug){var a,d=[];if(typeof c===&quot;object&quot;&amp;&amp;typeof c.name===&quot;string&quot;&amp;&amp;typeof c.message===&quot;string&quot;){for(var b in c){if(c.hasOwnProperty(b)){d.push(b+&quot;: &quot;+c[b])}}a=d.join(&quot;\n&quot;)||&quot;&quot;;d=a.split(&quot;\n&quot;);a=&quot;EXCEPTION: &quot;+d.join(&quot;\nEXCEPTION: &quot;);SWFUpload.Console.writeLine(a)}else{SWFUpload.Console.writeLine(c)}}};SWFUpload.Console={};SWFUpload.Console.writeLine=function(d){var b,a;try{b=document.getElementById(&quot;SWFUpload_Console&quot;);if(!b){a=document.createElement(&quot;form&quot;);document.getElementsByTagName(&quot;body&quot;)[0].appendChild(a);b=document.createElement(&quot;textarea&quot;);b.id=&quot;SWFUpload_Console&quot;;b.style.fontFamily=&quot;monospace&quot;;b.setAttribute(&quot;wrap&quot;,&quot;off&quot;);b.wrap=&quot;off&quot;;b.style.overflow=&quot;auto&quot;;b.style.width=&quot;700px&quot;;b.style.height=&quot;350px&quot;;b.style.margin=&quot;5px&quot;;a.appendChild(b)}b.value+=d+&quot;\n&quot;;b.scrollTop=b.scrollHeight-b.clientHeight}catch(c){alert(&quot;Exception: &quot;+c.name+&quot; Message: &quot;+c.message)}};var SWFUpload;if(typeof(SWFUpload)===&quot;function&quot;){SWFUpload.queue={};SWFUpload.prototype.initSettings=(function(a){return function(){if(typeof(a)===&quot;function&quot;){a.call(this)}this.customSettings.queue_cancelled_flag=false;this.customSettings.queue_upload_count=0;this.settings.user_upload_complete_handler=this.settings.upload_complete_handler;this.settings.upload_complete_handler=SWFUpload.queue.uploadCompleteHandler;this.settings.queue_complete_handler=this.settings.queue_complete_handler||null}})(SWFUpload.prototype.initSettings);SWFUpload.prototype.startUpload=function(a){this.customSettings.queue_cancelled_flag=false;this.callFlash(&quot;StartUpload&quot;,false,[a])};SWFUpload.prototype.cancelQueue=function(){this.customSettings.queue_cancelled_flag=true;this.stopUpload();var a=this.getStats();while(a.files_queued&gt;0){this.cancelUpload();a=this.getStats()}};SWFUpload.queue.uploadCompleteHandler=function(b){var c=this.settings.user_upload_complete_handler;var d;if(b.filestatus===SWFUpload.FILE_STATUS.COMPLETE){this.customSettings.queue_upload_count++}if(typeof(c)===&quot;function&quot;){d=(c.call(this,b)===false)?false:true}else{d=true}if(d){var a=this.getStats();if(a.files_queued&gt;0&amp;&amp;this.customSettings.queue_cancelled_flag===false){this.startUpload()}else{if(this.customSettings.queue_cancelled_flag===false){this.queueEvent(&quot;queue_complete_handler&quot;,[this.customSettings.queue_upload_count]);this.customSettings.queue_upload_count=0}else{this.customSettings.queue_cancelled_flag=false;this.customSettings.queue_upload_count=0}}}}}function FileProgress(c,a){this.fileProgressID=c.id;this.opacity=100;this.height=0;this.fileProgressWrapper=document.getElementById(this.fileProgressID);if(!this.fileProgressWrapper){this.fileProgressWrapper=document.createElement(&quot;div&quot;);this.fileProgressWrapper.className=&quot;progressWrapper&quot;;this.fileProgressWrapper.id=this.fileProgressID;this.fileProgressElement=document.createElement(&quot;div&quot;);this.fileProgressElement.className=&quot;progressContainer&quot;;var f=document.createElement(&quot;a&quot;);f.className=&quot;progressCancel&quot;;f.href=&quot;#&quot;;f.style.visibility=&quot;hidden&quot;;f.appendChild(document.createTextNode(&quot; &quot;));var b=document.createElement(&quot;div&quot;);b.className=&quot;progressName&quot;;b.appendChild(document.createTextNode(c.name));var e=document.createElement(&quot;div&quot;);e.className=&quot;progressBarInProgress&quot;;var d=document.createElement(&quot;div&quot;);d.className=&quot;progressBarStatus&quot;;d.innerHTML=&quot;&amp;nbsp;&quot;;this.fileProgressElement.appendChild(f);this.fileProgressElement.appendChild(b);this.fileProgressElement.appendChild(d);this.fileProgressElement.appendChild(e);this.fileProgressWrapper.appendChild(this.fileProgressElement);document.getElementById(a).appendChild(this.fileProgressWrapper)}else{this.fileProgressElement=this.fileProgressWrapper.firstChild}this.height=this.fileProgressWrapper.offsetHeight}FileProgress.prototype.setProgress=function(a){this.fileProgressElement.className=&quot;progressContainer green&quot;;this.fileProgressElement.childNodes[3].className=&quot;progressBarInProgress&quot;;this.fileProgressElement.childNodes[3].style.width=a+&quot;%&quot;};FileProgress.prototype.setComplete=function(){this.fileProgressElement.className=&quot;progressContainer blue&quot;;this.fileProgressElement.childNodes[3].className=&quot;progressBarComplete&quot;;this.fileProgressElement.childNodes[3].style.width=&quot;&quot;;var a=this;setTimeout(function(){a.disappear()},10000)};FileProgress.prototype.setError=function(){this.fileProgressElement.className=&quot;progressContainer red&quot;;this.fileProgressElement.childNodes[3].className=&quot;progressBarError&quot;;this.fileProgressElement.childNodes[3].style.width=&quot;&quot;;var a=this;setTimeout(function(){a.disappear()},5000)};FileProgress.prototype.setCancelled=function(){this.fileProgressElement.className=&quot;progressContainer&quot;;this.fileProgressElement.childNodes[3].className=&quot;progressBarError&quot;;this.fileProgressElement.childNodes[3].style.width=&quot;&quot;;var a=this;setTimeout(function(){a.disappear()},2000)};FileProgress.prototype.setStatus=function(a){this.fileProgressElement.childNodes[2].innerHTML=a};FileProgress.prototype.toggleCancel=function(b,c){this.fileProgressElement.childNodes[0].style.visibility=b?&quot;visible&quot;:&quot;hidden&quot;;if(c){var a=this.fileProgressID;this.fileProgressElement.childNodes[0].onclick=function(){c.cancelUpload(a);return false}}};FileProgress.prototype.disappear=function(){var f=15;var c=4;var b=30;if(this.opacity&gt;0){this.opacity-=f;if(this.opacity&lt;0){this.opacity=0}if(this.fileProgressWrapper.filters){try{this.fileProgressWrapper.filters.item(&quot;DXImageTransform.Microsoft.Alpha&quot;).opacity=this.opacity}catch(d){this.fileProgressWrapper.style.filter=&quot;progid:DXImageTransform.Microsoft.Alpha(opacity=&quot;+this.opacity+&quot;)&quot;}}else{this.fileProgressWrapper.style.opacity=this.opacity/100}}if(this.height&gt;0){this.height-=c;if(this.height&lt;0){this.height=0}this.fileProgressWrapper.style.height=this.height+&quot;px&quot;}if(this.height&gt;0||this.opacity&gt;0){var a=this;setTimeout(function(){a.disappear()},b)}else{this.fileProgressWrapper.style.display=&quot;none&quot;}};function fileQueued(c){try{var a=new FileProgress(c,this.customSettings.progressTarget);a.setStatus(&quot;Pending...&quot;);a.toggleCancel(true,this)}catch(b){this.debug(b)}}function fileQueueError(c,e,d){try{if(e===SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED){alert(&quot;You have attempted to queue too many files.\n&quot;+(d===0?&quot;You have reached the upload limit.&quot;:&quot;You may select &quot;+(d&gt;1?&quot;up to &quot;+d+&quot; files.&quot;:&quot;one file.&quot;)));return}var a=new FileProgress(c,this.customSettings.progressTarget);a.setError();a.toggleCancel(false);switch(e){case SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT:a.setStatus(&quot;File is too big.&quot;);this.debug(&quot;Error Code: File too big, File name: &quot;+c.name+&quot;, File size: &quot;+c.size+&quot;, Message: &quot;+d);break;case SWFUpload.QUEUE_ERROR.ZERO_BYTE_FILE:a.setStatus(&quot;Cannot upload Zero Byte files.&quot;);this.debug(&quot;Error Code: Zero byte file, File name: &quot;+c.name+&quot;, File size: &quot;+c.size+&quot;, Message: &quot;+d);break;case SWFUpload.QUEUE_ERROR.INVALID_FILETYPE:a.setStatus(&quot;Invalid File Type.&quot;);this.debug(&quot;Error Code: Invalid File Type, File name: &quot;+c.name+&quot;, File size: &quot;+c.size+&quot;, Message: &quot;+d);break;default:if(c!==null){a.setStatus(&quot;Unhandled Error&quot;)}this.debug(&quot;Error Code: &quot;+e+&quot;, File name: &quot;+c.name+&quot;, File size: &quot;+c.size+&quot;, Message: &quot;+d);break}}catch(b){this.debug(b)}}function fileDialogComplete(a,c){try{if(a&gt;0){document.getElementById(this.customSettings.cancelButtonId).disabled=false}}catch(b){this.debug(b)}}function uploadStart(c){try{var a=new FileProgress(c,this.customSettings.progressTarget);a.setStatus(&quot;Uploading...&quot;);a.toggleCancel(true,this)}catch(b){}return true}function uploadProgress(c,f,e){try{var d=Math.ceil((f/e)*100);var a=new FileProgress(c,this.customSettings.progressTarget);a.setProgress(d);a.setStatus(&quot;Uploading...&quot;)}catch(b){this.debug(b)}}function uploadSuccess(d,b){try{var a=new FileProgress(d,this.customSettings.progressTarget);a.setComplete();a.setStatus(&quot;Complete.&quot;);a.toggleCancel(false)}catch(c){this.debug(c)}}function uploadError(c,e,d){try{var a=new FileProgress(c,this.customSettings.progressTarget);a.setError();a.toggleCancel(false);switch(e){case SWFUpload.UPLOAD_ERROR.HTTP_ERROR:a.setStatus(&quot;Upload Error: &quot;+d);this.debug(&quot;Error Code: HTTP Error, File name: &quot;+c.name+&quot;, Message: &quot;+d);break;case SWFUpload.UPLOAD_ERROR.UPLOAD_FAILED:a.setStatus(&quot;Upload Failed.&quot;);this.debug(&quot;Error Code: Upload Failed, File name: &quot;+c.name+&quot;, File size: &quot;+c.size+&quot;, Message: &quot;+d);break;case SWFUpload.UPLOAD_ERROR.IO_ERROR:a.setStatus(&quot;Server (IO) Error&quot;);this.debug(&quot;Error Code: IO Error, File name: &quot;+c.name+&quot;, Message: &quot;+d);break;case SWFUpload.UPLOAD_ERROR.SECURITY_ERROR:a.setStatus(&quot;Security Error&quot;);this.debug(&quot;Error Code: Security Error, File name: &quot;+c.name+&quot;, Message: &quot;+d);break;case SWFUpload.UPLOAD_ERROR.UPLOAD_LIMIT_EXCEEDED:a.setStatus(&quot;Upload limit exceeded.&quot;);this.debug(&quot;Error Code: Upload Limit Exceeded, File name: &quot;+c.name+&quot;, File size: &quot;+c.size+&quot;, Message: &quot;+d);break;case SWFUpload.UPLOAD_ERROR.FILE_VALIDATION_FAILED:a.setStatus(&quot;Failed Validation.  Upload skipped.&quot;);this.debug(&quot;Error Code: File Validation Failed, File name: &quot;+c.name+&quot;, File size: &quot;+c.size+&quot;, Message: &quot;+d);break;case SWFUpload.UPLOAD_ERROR.FILE_CANCELLED:if(this.getStats().files_queued===0){document.getElementById(this.customSettings.cancelButtonId).disabled=true}a.setStatus(&quot;Cancelled&quot;);a.setCancelled();break;case SWFUpload.UPLOAD_ERROR.UPLOAD_STOPPED:a.setStatus(&quot;Stopped&quot;);break;default:a.setStatus(&quot;Unhandled Error: &quot;+e);this.debug(&quot;Error Code: &quot;+e+&quot;, File name: &quot;+c.name+&quot;, File size: &quot;+c.size+&quot;, Message: &quot;+d);break}}catch(b){this.debug(b)}jQuery(&quot;#start_button&quot;).fadeTo(&quot;fast&quot;,1)}function uploadComplete(a){if(this.getStats().files_queued===0){document.getElementById(this.customSettings.cancelButtonId).disabled=true}jQuery(&quot;#start_button&quot;).fadeTo(&quot;fast&quot;,1);if(typeof(reload_images)!=&quot;undefined&quot;){reload_images()}if(typeof updateAll!=&quot;undefined&quot;){updateAll(root)}}function queueComplete(b){var a=document.getElementById(&quot;divStatus&quot;);a.innerHTML=b+&quot; file&quot;+(b===1?&quot;&quot;:&quot;s&quot;)+&quot; uploaded.&quot;}function init_upload(){if(jQuery(&quot;#content_page_id&quot;).val()){var b={content_id:jQuery(&quot;#content_page_id&quot;).val(),model_string:jQuery(&quot;#content_page_type&quot;).val(),join_field:jQuery(&quot;#join_field&quot;).val()}}else{var b={}}var a={flash_url:&quot;/swfupload.swf&quot;,upload_url:&quot;/file_upload.php&quot;,post_params:b,file_size_limit:&quot;100 MB&quot;,file_types:&quot;*.*&quot;,file_types_description:&quot;All Files&quot;,file_upload_limit:100,file_queue_limit:100,custom_settings:{progressTarget:&quot;fsUploadProgress&quot;,cancelButtonId:&quot;btnCancel&quot;},debug:false,button_image_url:&quot;/images/cms/add_files_button.png&quot;,button_width:&quot;254&quot;,button_height:&quot;27&quot;,button_placeholder_id:&quot;spanButtonPlaceHolder&quot;,button_window_mode:SWFUpload.WINDOW_MODE.TRANSPARENT,button_cursor:SWFUpload.CURSOR.HAND,file_queued_handler:fileQueued,file_queue_error_handler:fileQueueError,file_dialog_complete_handler:fileDialogComplete,upload_start_handler:uploadStart,upload_progress_handler:uploadProgress,upload_error_handler:uploadError,upload_success_handler:uploadSuccess,upload_complete_handler:uploadComplete,queue_complete_handler:queueComplete};swfu=new SWFUpload(a)}var swfu;function set_post_params(){var a=jQuery(&quot;#dest&quot;).html();if(a==&quot;select a folder&quot;){alert(&quot;You must choose a folder first&quot;);return false}if(!a){var a=jQuery(&quot;#wildfire_file_folder&quot;).val()}if(jQuery(&quot;#upload_from&quot;).length&amp;&amp;jQuery(&quot;#upload_from&quot;).val().length&gt;1){jQuery.post(&quot;/file_upload.php?&quot;,{wildfire_file_folder:a,wildfire_file_description:jQuery(&quot;#wildfire_file_description&quot;).val(),upload_from_url:jQuery(&quot;#upload_from&quot;).val(),wildfire_file_filename:jQuery(&quot;#wildfire_file_filename&quot;).val(),content_id:jQuery(&quot;#url_content_page_id&quot;).val(),model_string:jQuery(&quot;#url_content_page_type&quot;).val(),join_field:jQuery(&quot;#url_join_field&quot;).val()},function(){jQuery(&quot;#start_button&quot;).fadeTo(&quot;fast&quot;,1);alert(&quot;Image Successfully Retrieved&quot;);if(typeof(reload_images)!=&quot;undefined&quot;){reload_images()}});return true}swfu.addPostParam(&quot;wildfire_file_folder&quot;,a);swfu.addPostParam(&quot;wildfire_file_description&quot;,jQuery(&quot;#wildfire_file_description&quot;).val());swfu.startUpload()}jQuery(document).scroll(function(){jQuery(&quot;#informationcart&quot;).verticalCenter()});jQuery.fn.verticalCenter=function(a){var b=this;if(!a){b.css(&quot;top&quot;,jQuery(window).height()/2-this.height()/2);jQuery(window).resize(function(){b.centerScreen(!a)})}else{b.stop();b.animate({top:jQuery(window).height()/2-this.height()/2},200,&quot;linear&quot;)}};$(document).ready(function(){$(&quot;#cms_users .tabs-nav&quot;).tabs();initialise_user_draggables();$(&quot;#cms_users #section_browser_filter&quot;).keyup(function(){if(typeof(t)!=&quot;undefined&quot;){clearTimeout(t)}t=setTimeout('delayed_sect_filter($(&quot;#section_browser_filter&quot;).val())',400)})});function initialise_user_draggables(){$(&quot;#cms_users .section_tag&quot;).draggable({containment:&quot;window&quot;,ghosting:true,opacity:0.4,revert:true,scroll:false,helper:&quot;clone&quot;});$(&quot;#cms_users #sect_dropzone&quot;).droppable({accept:&quot;.section_tag&quot;,hoverClass:&quot;dropzone_active&quot;,tolerance:&quot;pointer&quot;,drop:function(a,b){$.post(&quot;../../add_section/&quot;+content_page_id,{id:b.draggable.attr(&quot;id&quot;)},function(c){$(&quot;#sect_dropzone&quot;).html(c);initialise_user_draggables()})}});$(&quot;#cms_users .section_trash_button&quot;).click(function(){$.get(&quot;../../remove_section/&quot;+content_page_id+&quot;?sect=&quot;+this.id.substr(21),function(a){$(&quot;#sect_dropzone&quot;).html(a);initialise_user_draggables()})})}function delayed_sect_filter(a){$(&quot;#cms_users #section_browser_filter&quot;).css(&quot;background&quot;,&quot;white url(/images/cms/indicator.gif) no-repeat right center&quot;);$.ajax({type:&quot;post&quot;,url:&quot;/admin/sections/filters&quot;,data:&quot;filter=&quot;+a,complete:function(b){$(&quot;#section_list&quot;).html(b.responseText);initialise_user_draggables();if(typeof(t)!=&quot;undefined&quot;){clearTimeout(t)}$(&quot;#section_browser_filter&quot;).css(&quot;background&quot;,&quot;white&quot;)}})};
\ No newline at end of file</diff>
      <filename>resources/public/javascripts/build/jquery.132.combined.min.js</filename>
    </modified>
    <modified>
      <diff>@@ -60,29 +60,42 @@
 			// Handles password fields by creating a clone that's a text field.
 			if(ele.attr(&quot;type&quot;)==&quot;password&quot;) {
 			  var eledef = ele.data(&quot;defText&quot;);
-			  var el = ele.clone().data(&quot;defType&quot;, &quot;password&quot;).data(&quot;defText&quot;, eledef).attr(&quot;type&quot;, &quot;text&quot;);
-        ele.after(el).remove();
+        var el = $('&lt;input type=&quot;text&quot;/&gt;');
+        el.attr( 'name', ele.attr('name') );
+        el.attr( 'size', ele.attr('size') );
+        el.attr( 'class', ele.attr('class') );
+        el.val( ele.val() );
+        el.data(&quot;defType&quot;, &quot;password&quot;).data(&quot;defText&quot;, eledef);
+        ele.replaceWith(el);
         var ele = el;
 		  }
 			hint_focus(ele);
 			hint_blur(ele);
 	  };
 	  function hint_focus(ele){ 
-	    ele.bind(&quot;focus.hint&quot;,function(){
+	    ele.bind(&quot;focus.hint&quot;,function(ele){
+        var ele = $(this);
 	      if(ele.val() == ele.data(&quot;defText&quot;)) { ele.val(&quot;&quot;); }
 				// add the focus class, remove changed_class
 				ele.addClass(defaults.focus_class).removeClass(defaults.changed_class);
 	      if(ele.data(&quot;defType&quot;)==&quot;password&quot;) {
-	        var eledef = ele.data(&quot;defText&quot;);
-  			  var el = ele.clone().data(&quot;defText&quot;, eledef).data(&quot;defType&quot;,&quot;password&quot;).attr(&quot;type&quot;, &quot;password&quot;);
-          ele.after(el).remove();
-          hint_blur(el);
-          el.eq(0).focus();
+  			  var eledef = ele.data(&quot;defText&quot;);
+          var el = $('&lt;input type=&quot;password&quot;/&gt;');
+          el.attr( 'name', ele.attr('name') );
+          el.attr( 'size', ele.attr('size') );
+          el.attr( 'class', ele.attr('class') );
+          el.val( ele.val() );
+          el.data(&quot;defType&quot;, &quot;password&quot;).data(&quot;defText&quot;, eledef);
+          ele.replaceWith(el);
+          var ele = el;
+          ele.focus();
+          hint_blur(ele);
   			}
 			});
 	  };
 	  function hint_blur(ele){ 
 	    ele.bind(&quot;blur.hint&quot;,function(){
+        var ele = $(this);
 	      if(ele.val() == &quot;&quot;) { ele.val(ele.data(&quot;defText&quot;)); }
 				// remove focus_class, add changed_class.
 				ele.removeClass(defaults.focus_class);
@@ -90,9 +103,14 @@
 					else { ele.removeClass(defaults.changed_class); }
 				if(ele.data(&quot;defType&quot;)==&quot;password&quot; &amp;&amp; ele.val()==ele.data(&quot;defText&quot;)) {
 				  var eledef = ele.data(&quot;defText&quot;);
-				  var el = ele.clone().data(&quot;defText&quot;, eledef).data(&quot;defType&quot;, &quot;password&quot;).attr(&quot;type&quot;, &quot;text&quot;);
-          ele.after(el);
-          ele.remove();
+          var el = $('&lt;input type=&quot;text&quot;/&gt;');
+          el.attr( 'name', ele.attr('name') );
+          el.attr( 'size', ele.attr('size') );
+          el.attr( 'class', ele.attr('class') );
+          el.val( ele.val() );
+          el.data(&quot;defType&quot;, &quot;password&quot;).data(&quot;defText&quot;, eledef);
+          ele.replaceWith(el);
+          var ele = el;
           hint_focus(el);
 				}
 	    });</diff>
      <filename>resources/public/javascripts/jquery/jquery.hint.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>dfcb58da253cbe0eaae3cec203cabce2ceab21a9</id>
    </parent>
  </parents>
  <author>
    <name>Sheldon Els</name>
    <email>sheldon.els@gmail.com</email>
  </author>
  <url>http://github.com/phpwax/wildfire/commit/0611d1ca6b68361ca81064ce6d29817ce3a2cc27</url>
  <id>0611d1ca6b68361ca81064ce6d29817ce3a2cc27</id>
  <committed-date>2009-06-19T06:24:28-07:00</committed-date>
  <authored-date>2009-06-19T06:24:28-07:00</authored-date>
  <message>hints updated to work with IE</message>
  <tree>d7778476354b778dac40c21fd728ca3fc5ae4728</tree>
  <committer>
    <name>Sheldon Els</name>
    <email>sheldon.els@gmail.com</email>
  </committer>
</commit>
