<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[15711] trunk/wp-includes: jQuery UI 1.8.5.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/15711">15711</a></dd>
<dt>Author</dt> <dd>ryan</dd>
<dt>Date</dt> <dd>2010-10-04 16:19:18 +0000 (Mon, 04 Oct 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>jQuery UI 1.8.5. Props demetris. fixes <a href="http://trac.wordpress.org/ticket/12863">#12863</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludesjsjqueryuicorejs">trunk/wp-includes/js/jquery/ui.core.js</a></li>
<li><a href="#trunkwpincludesjsjqueryuidialogjs">trunk/wp-includes/js/jquery/ui.dialog.js</a></li>
<li><a href="#trunkwpincludesjsjqueryuidraggablejs">trunk/wp-includes/js/jquery/ui.draggable.js</a></li>
<li><a href="#trunkwpincludesjsjqueryuidroppablejs">trunk/wp-includes/js/jquery/ui.droppable.js</a></li>
<li><a href="#trunkwpincludesjsjqueryuiresizablejs">trunk/wp-includes/js/jquery/ui.resizable.js</a></li>
<li><a href="#trunkwpincludesjsjqueryuiselectablejs">trunk/wp-includes/js/jquery/ui.selectable.js</a></li>
<li><a href="#trunkwpincludesjsjqueryuisortablejs">trunk/wp-includes/js/jquery/ui.sortable.js</a></li>
<li><a href="#trunkwpincludesjsjqueryuitabsjs">trunk/wp-includes/js/jquery/ui.tabs.js</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkwpincludesjsjqueryuibuttonjs">trunk/wp-includes/js/jquery/ui.button.js</a></li>
<li><a href="#trunkwpincludesjsjqueryuimousejs">trunk/wp-includes/js/jquery/ui.mouse.js</a></li>
<li><a href="#trunkwpincludesjsjqueryuipositionjs">trunk/wp-includes/js/jquery/ui.position.js</a></li>
<li><a href="#trunkwpincludesjsjqueryuiwidgetjs">trunk/wp-includes/js/jquery/ui.widget.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpincludesjsjqueryuibuttonjs"></a>
<div class="addfile"><h4>Added: trunk/wp-includes/js/jquery/ui.button.js (0 => 15711)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/jquery/ui.button.js                                (rev 0)
+++ trunk/wp-includes/js/jquery/ui.button.js        2010-10-04 16:19:18 UTC (rev 15711)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+/*
+ * jQuery UI Button 1.8.5
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Button
+ *
+ * Depends:
+ *        jquery.ui.core.js
+ *        jquery.ui.widget.js
+ */
+(function(a){var g,i=function(b){a(&quot;:ui-button&quot;,b.target.form).each(function(){var c=a(this).data(&quot;button&quot;);setTimeout(function(){c.refresh()},1)})},h=function(b){var c=b.name,d=b.form,e=a([]);if(c)e=d?a(d).find(&quot;[name='&quot;+c+&quot;']&quot;):a(&quot;[name='&quot;+c+&quot;']&quot;,b.ownerDocument).filter(function(){return!this.form});return e};a.widget(&quot;ui.button&quot;,{options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest(&quot;form&quot;).unbind(&quot;reset.button&quot;).bind(&quot;reset.button&quot;,
+i);if(typeof this.options.disabled!==&quot;boolean&quot;)this.options.disabled=this.element.attr(&quot;disabled&quot;);this._determineButtonType();this.hasTitle=!!this.buttonElement.attr(&quot;title&quot;);var b=this,c=this.options,d=this.type===&quot;checkbox&quot;||this.type===&quot;radio&quot;,e=&quot;ui-state-hover&quot;+(!d?&quot; ui-state-active&quot;:&quot;&quot;);if(c.label===null)c.label=this.buttonElement.html();if(this.element.is(&quot;:disabled&quot;))c.disabled=true;this.buttonElement.addClass(&quot;ui-button ui-widget ui-state-default ui-corner-all&quot;).attr(&quot;role&quot;,&quot;button&quot;).bind(&quot;mouseenter.button&quot;,
+function(){if(!c.disabled){a(this).addClass(&quot;ui-state-hover&quot;);this===g&amp;&amp;a(this).addClass(&quot;ui-state-active&quot;)}}).bind(&quot;mouseleave.button&quot;,function(){c.disabled||a(this).removeClass(e)}).bind(&quot;focus.button&quot;,function(){a(this).addClass(&quot;ui-state-focus&quot;)}).bind(&quot;blur.button&quot;,function(){a(this).removeClass(&quot;ui-state-focus&quot;)});d&amp;&amp;this.element.bind(&quot;change.button&quot;,function(){b.refresh()});if(this.type===&quot;checkbox&quot;)this.buttonElement.bind(&quot;click.button&quot;,function(){if(c.disabled)return false;a(this).toggleClass(&quot;ui-state-active&quot;);
+b.buttonElement.attr(&quot;aria-pressed&quot;,b.element[0].checked)});else if(this.type===&quot;radio&quot;)this.buttonElement.bind(&quot;click.button&quot;,function(){if(c.disabled)return false;a(this).addClass(&quot;ui-state-active&quot;);b.buttonElement.attr(&quot;aria-pressed&quot;,true);var f=b.element[0];h(f).not(f).map(function(){return a(this).button(&quot;widget&quot;)[0]}).removeClass(&quot;ui-state-active&quot;).attr(&quot;aria-pressed&quot;,false)});else{this.buttonElement.bind(&quot;mousedown.button&quot;,function(){if(c.disabled)return false;a(this).addClass(&quot;ui-state-active&quot;);
+g=this;a(document).one(&quot;mouseup&quot;,function(){g=null})}).bind(&quot;mouseup.button&quot;,function(){if(c.disabled)return false;a(this).removeClass(&quot;ui-state-active&quot;)}).bind(&quot;keydown.button&quot;,function(f){if(c.disabled)return false;if(f.keyCode==a.ui.keyCode.SPACE||f.keyCode==a.ui.keyCode.ENTER)a(this).addClass(&quot;ui-state-active&quot;)}).bind(&quot;keyup.button&quot;,function(){a(this).removeClass(&quot;ui-state-active&quot;)});this.buttonElement.is(&quot;a&quot;)&amp;&amp;this.buttonElement.keyup(function(f){f.keyCode===a.ui.keyCode.SPACE&amp;&amp;a(this).click()})}this._setOption(&quot;disabled&quot;,
+c.disabled)},_determineButtonType:function(){this.type=this.element.is(&quot;:checkbox&quot;)?&quot;checkbox&quot;:this.element.is(&quot;:radio&quot;)?&quot;radio&quot;:this.element.is(&quot;input&quot;)?&quot;input&quot;:&quot;button&quot;;if(this.type===&quot;checkbox&quot;||this.type===&quot;radio&quot;){this.buttonElement=this.element.parents().last().find(&quot;label[for=&quot;+this.element.attr(&quot;id&quot;)+&quot;]&quot;);this.element.addClass(&quot;ui-helper-hidden-accessible&quot;);var b=this.element.is(&quot;:checked&quot;);b&amp;&amp;this.buttonElement.addClass(&quot;ui-state-active&quot;);this.buttonElement.attr(&quot;aria-pressed&quot;,b)}else this.buttonElement=
+this.element},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass(&quot;ui-helper-hidden-accessible&quot;);this.buttonElement.removeClass(&quot;ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active  ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only&quot;).removeAttr(&quot;role&quot;).removeAttr(&quot;aria-pressed&quot;).html(this.buttonElement.find(&quot;.ui-button-text&quot;).html());this.hasTitle||
+this.buttonElement.removeAttr(&quot;title&quot;);a.Widget.prototype.destroy.call(this)},_setOption:function(b,c){a.Widget.prototype._setOption.apply(this,arguments);if(b===&quot;disabled&quot;)c?this.element.attr(&quot;disabled&quot;,true):this.element.removeAttr(&quot;disabled&quot;);this._resetButton()},refresh:function(){var b=this.element.is(&quot;:disabled&quot;);b!==this.options.disabled&amp;&amp;this._setOption(&quot;disabled&quot;,b);if(this.type===&quot;radio&quot;)h(this.element[0]).each(function(){a(this).is(&quot;:checked&quot;)?a(this).button(&quot;widget&quot;).addClass(&quot;ui-state-active&quot;).attr(&quot;aria-pressed&quot;,
+true):a(this).button(&quot;widget&quot;).removeClass(&quot;ui-state-active&quot;).attr(&quot;aria-pressed&quot;,false)});else if(this.type===&quot;checkbox&quot;)this.element.is(&quot;:checked&quot;)?this.buttonElement.addClass(&quot;ui-state-active&quot;).attr(&quot;aria-pressed&quot;,true):this.buttonElement.removeClass(&quot;ui-state-active&quot;).attr(&quot;aria-pressed&quot;,false)},_resetButton:function(){if(this.type===&quot;input&quot;)this.options.label&amp;&amp;this.element.val(this.options.label);else{var b=this.buttonElement.removeClass(&quot;ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only&quot;),
+c=a(&quot;&lt;span&gt;&lt;/span&gt;&quot;).addClass(&quot;ui-button-text&quot;).html(this.options.label).appendTo(b.empty()).text(),d=this.options.icons,e=d.primary&amp;&amp;d.secondary;if(d.primary||d.secondary){b.addClass(&quot;ui-button-text-icon&quot;+(e?&quot;s&quot;:d.primary?&quot;-primary&quot;:&quot;-secondary&quot;));d.primary&amp;&amp;b.prepend(&quot;&lt;span class='ui-button-icon-primary ui-icon &quot;+d.primary+&quot;'&gt;&lt;/span&gt;&quot;);d.secondary&amp;&amp;b.append(&quot;&lt;span class='ui-button-icon-secondary ui-icon &quot;+d.secondary+&quot;'&gt;&lt;/span&gt;&quot;);if(!this.options.text){b.addClass(e?&quot;ui-button-icons-only&quot;:&quot;ui-button-icon-only&quot;).removeClass(&quot;ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary&quot;);
+this.hasTitle||b.attr(&quot;title&quot;,c)}}else b.addClass(&quot;ui-button-text-only&quot;)}}});a.widget(&quot;ui.buttonset&quot;,{_create:function(){this.element.addClass(&quot;ui-buttonset&quot;);this._init()},_init:function(){this.refresh()},_setOption:function(b,c){b===&quot;disabled&quot;&amp;&amp;this.buttons.button(&quot;option&quot;,b,c);a.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){this.buttons=this.element.find(&quot;:button, :submit, :reset, :checkbox, :radio, a, :data(button)&quot;).filter(&quot;:ui-button&quot;).button(&quot;refresh&quot;).end().not(&quot;:ui-button&quot;).button().end().map(function(){return a(this).button(&quot;widget&quot;)[0]}).removeClass(&quot;ui-corner-all ui-corner-left ui-corner-right&quot;).filter(&quot;:visible&quot;).filter(&quot;:first&quot;).addClass(&quot;ui-corner-left&quot;).end().filter(&quot;:last&quot;).addClass(&quot;ui-corner-right&quot;).end().end().end()},
+destroy:function(){this.element.removeClass(&quot;ui-buttonset&quot;);this.buttons.map(function(){return a(this).button(&quot;widget&quot;)[0]}).removeClass(&quot;ui-corner-left ui-corner-right&quot;).end().button(&quot;destroy&quot;);a.Widget.prototype.destroy.call(this)}})})(jQuery);
</ins><span class="cx">Property changes on: trunk/wp-includes/js/jquery/ui.button.js
</span><span class="cx">___________________________________________________________________
</span><span class="cx">Name: svn:eol-style
</span><span class="cx">   + native
</span></span></pre></div>
<a id="trunkwpincludesjsjqueryuicorejs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/jquery/ui.core.js (15710 => 15711)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/jquery/ui.core.js        2010-10-04 15:32:54 UTC (rev 15710)
+++ trunk/wp-includes/js/jquery/ui.core.js        2010-10-04 16:19:18 UTC (rev 15711)
</span><span class="lines">@@ -1,10 +1,17 @@
</span><del>-/*
- * jQuery UI 1.7.3
</del><ins>+/*!
+ * jQuery UI 1.8.5
</ins><span class="cx">  *
</span><del>- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
</del><ins>+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
</ins><span class="cx">  *
</span><span class="cx">  * http://docs.jquery.com/UI
</span><span class="cx">  */
</span><del>-jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&amp;&amp;(parseFloat(c.browser.version)&lt;1.9);c.ui={version:&quot;1.7.3&quot;,plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]])}},call:function(j,l,k){var n=j.plugins[l];if(!n||!j.element[0].parentNode){return}for(var m=0;m&lt;n.length;m++){if(j.options[n[m][0]]){n[m][1].apply(j.element,k)}}}},contains:function(k,j){return document.compareDocumentPosition?k.compareDocumentPosition(j)&amp;16:k!==j&amp;&amp;k.contains(j)},hasScroll:function(m,k){if(c(m).css(&quot;overflow&quot;)==&quot;hidden&quot;){return false}var j=(k&amp;&amp;k==&quot;left&quot;)?&quot;scrollLeft&quot;:&quot;scrollTop&quot;,l=false;if(m[j]&gt;0){return true}m[j]=1;l=(m[j]&gt;0);m[j]=0;return l},isOverAxis:function(k,j,l){return(k&gt;j)&amp;&amp;(k&lt;(j+l))},isOver:function(o,k,n,m,j,l){return c.ui.isOverAxis(o,n,j)&amp;&amp;c.ui.isOverAxis(k,m,l)},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(d){var f=c.attr,e=c.fn.removeAttr,h=&quot;http://www.w3.org/2005/07/aaa&quot;,a=/^aria-/,b=/^wairole:/;c.attr=function(k,j,l){var m=l!==undefined;return(j==&quot;role&quot;?(m?f.call(this,k,j,&quot;wairole:&quot;+l):(f.apply(this,arguments)||&quot;&quot;).replace(b,&quot;&quot;)):(a.test(j)?(m?k.setAttributeNS(h,j.replace(a,&quot;aaa:&quot;),l):f.call(this,k,j.replace(a,&quot;aaa:&quot;))):f.apply(this,arguments)))};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,&quot;&quot;))}):e.call(this,j))}}c.fn.extend({remove:function(j,k){return this.each(function(){if(!k){if(!j||c.filter(j,[this]).length){c(&quot;*&quot;,this).add(this).each(function(){c(this).triggerHandler(&quot;remove&quot;)})}}return i.call(c(this),j,k)})},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 j;if((c.browser.msie&amp;&amp;(/(static|relative)/).test(this.css(&quot;position&quot;)))||(/absolute/).test(this.css(&quot;position&quot;))){j=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,&quot;position&quot;,1))&amp;&amp;(/(auto|scroll)/).test(c.curCSS(this,&quot;overflow&quot;,1)+c.curCSS(this,&quot;overflow-y&quot;,1)+c.curCSS(this,&quot;overflow-x&quot;,1))}).eq(0)}else{j=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,&quot;overflow&quot;,1)+c.curCSS(this,&quot;overflow-y&quot;,1)+c.curCSS(this,&quot;overflow-x&quot;,1))}).eq(0)}return(/fixed/).test(this.css(&quot;position&quot;))||!j.length?c(document):j}});c.extend(c.expr[&quot;:&quot;],{data:function(l,k,j){return !!c.data(l,j[3])},focusable:function(k){var l=k.nodeName.toLowerCase(),j=c.attr(k,&quot;tabindex&quot;);return(/input|select|textarea|button|object/.test(l)?!k.disabled:&quot;a&quot;==l||&quot;area&quot;==l?k.href||!isNaN(j):!isNaN(j))&amp;&amp;!c(k)[&quot;area&quot;==l?&quot;parents&quot;:&quot;closest&quot;](&quot;:hidden&quot;).length},tabbable:function(k){var j=c.attr(k,&quot;tabindex&quot;);return(isNaN(j)||j&gt;=0)&amp;&amp;c(k).is(&quot;:focusable&quot;)}});function g(m,n,o,l){function k(q){var p=c[m][n][q]||[];return(typeof p==&quot;string&quot;?p.split(/,?\s+/):p)}var j=k(&quot;getter&quot;);if(l.length==1&amp;&amp;typeof l[0]==&quot;string&quot;){j=j.concat(k(&quot;getterSetter&quot;))}return(c.inArray(o,j)!=-1)}c.widget=function(k,j){var l=k.split(&quot;.&quot;)[0];k=k.split(&quot;.&quot;)[1];c.fn[k]=function(p){var n=(typeof p==&quot;string&quot;),o=Array.prototype.slice.call(arguments,1);if(n&amp;&amp;p.substring(0,1)==&quot;_&quot;){return this}if(n&amp;&amp;g(l,k,p,o)){var m=c.data(this[0],k);return(m?m[p].apply(m,o):undefined)}return this.each(function(){var q=c.data(this,k);(!q&amp;&amp;!n&amp;&amp;c.data(this,k,new c[l][k](this,p))._init());(q&amp;&amp;n&amp;&amp;c.isFunction(q[p])&amp;&amp;q[p].apply(q,o))})};c[l]=c[l]||{};c[l][k]=function(o,n){var m=this;this.namespace=l;this.widgetName=k;this.widgetEventPrefix=c[l][k].eventPrefix||k;this.widgetBaseClass=l+&quot;-&quot;+k;this.options=c.extend({},c.widget.defaults,c[l][k].defaults,c.metadata&amp;&amp;c.metadata.get(o)[k],n);this.element=c(o).bind(&quot;setData.&quot;+k,function(q,p,r){if(q.target==o){return m._setData(p,r)}}).bind(&quot;getData.&quot;+k,function(q,p){if(q.target==o){return m._getData(p)}}).bind(&quot;remove&quot;,function(){return m.destroy()})};c[l][k].prototype=c.extend({},c.widget.prototype,j);c[l][k].getterSetter=&quot;option&quot;};c.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(l,m){var k=l,j=this;if(typeof l==&quot;string&quot;){if(m===undefined){return this._getData(l)}k={};k[l]=m}c.each(k,function(n,o){j._setData(n,o)})},_getData:function(j){return this.options[j]},_setData:function(j,k){this.options[j]=k;if(j==&quot;disabled&quot;){this.element[k?&quot;addClass&quot;:&quot;removeClass&quot;](this.widgetBaseClass+&quot;-disabled &quot;+this.namespace+&quot;-state-disabled&quot;).attr(&quot;aria-disabled&quot;,k)}},enable:function(){this._setData(&quot;disabled&quot;,false)},disable:function(){this._setData(&quot;disabled&quot;,true)},_trigger:function(l,m,n){var p=this.options[l],j=(l==this.widgetEventPrefix?l:this.widgetEventPrefix+l);m=c.Event(m);m.type=j;if(m.originalEvent){for(var k=c.event.props.length,o;k;){o=c.event.props[--k];m[o]=m.originalEvent[o]}}this.element.trigger(m,n);return !(c.isFunction(p)&amp;&amp;p.call(this.element[0],m,n)===false||m.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind(&quot;mousedown.&quot;+this.widgetName,function(k){return j._mouseDown(k)}).bind(&quot;click.&quot;+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;k.stopImmediatePropagation();return false}});if(c.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);(c.browser.msie&amp;&amp;this.element.attr(&quot;unselectable&quot;,this._mouseUnselectable))},_mouseDown:function(l){l.originalEvent=l.originalEvent||{};if(l.originalEvent.mouseHandled){return}(this._mouseStarted&amp;&amp;this._mouseUp(l));this._mouseDownEvent=l;var k=this,m=(l.which==1),j=(typeof this.options.cancel==&quot;string&quot;?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);if(!m||j||!this._mouseCapture(l)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(l)&amp;&amp;this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);if(!this._mouseStarted){l.preventDefault();return true}}this._mouseMoveDelegate=function(n){return k._mouseMove(n)};this._mouseUpDelegate=function(n){return k._mouseUp(n)};c(document).bind(&quot;mousemove.&quot;+this.widgetName,this._mouseMoveDelegate).bind(&quot;mouseup.&quot;+this.widgetName,this._mouseUpDelegate);(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true},_mouseMove:function(j){if(c.browser.msie&amp;&amp;!j.button){return this._mouseUp(j)}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault()}if(this._mouseDistanceMet(j)&amp;&amp;this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j))}return !this._mouseStarted},_mouseUp:function(j){c(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=(j.target==this._mouseDownEvent.target);this._mouseStop(j)}return false},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))&gt;=this.options.distance)},_mouseDelayMet:function(j){return this.mouseDelayMet},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);
</del><ins>+(function(c,j){function k(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,&quot;visibility&quot;)===&quot;hidden&quot;||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:&quot;1.8.5&quot;,keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,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,WINDOWS:91}});c.fn.extend({_focus:c.fn.focus,focus:function(a,b){return typeof a===&quot;number&quot;?this.each(function(){var d=this;setTimeout(function(){c(d).focus();b&amp;&amp;b.call(d)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;a=c.browser.msie&amp;&amp;/(static|relative)/.test(this.css(&quot;position&quot;))||/absolute/.test(this.css(&quot;position&quot;))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,
+&quot;position&quot;,1))&amp;&amp;/(auto|scroll)/.test(c.curCSS(this,&quot;overflow&quot;,1)+c.curCSS(this,&quot;overflow-y&quot;,1)+c.curCSS(this,&quot;overflow-x&quot;,1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,&quot;overflow&quot;,1)+c.curCSS(this,&quot;overflow-y&quot;,1)+c.curCSS(this,&quot;overflow-x&quot;,1))}).eq(0);return/fixed/.test(this.css(&quot;position&quot;))||!a.length?c(document):a},zIndex:function(a){if(a!==j)return this.css(&quot;zIndex&quot;,a);if(this.length){a=c(this[0]);for(var b;a.length&amp;&amp;a[0]!==document;){b=a.css(&quot;position&quot;);
+if(b===&quot;absolute&quot;||b===&quot;relative&quot;||b===&quot;fixed&quot;){b=parseInt(a.css(&quot;zIndex&quot;));if(!isNaN(b)&amp;&amp;b!=0)return b}a=a.parent()}}return 0},disableSelection:function(){return this.bind(&quot;mousedown.ui-disableSelection selectstart.ui-disableSelection&quot;,function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(&quot;.ui-disableSelection&quot;)}});c.each([&quot;Width&quot;,&quot;Height&quot;],function(a,b){function d(f,g,l,m){c.each(e,function(){g-=parseFloat(c.curCSS(f,&quot;padding&quot;+this,true))||0;if(l)g-=parseFloat(c.curCSS(f,
+&quot;border&quot;+this+&quot;Width&quot;,true))||0;if(m)g-=parseFloat(c.curCSS(f,&quot;margin&quot;+this,true))||0});return g}var e=b===&quot;Width&quot;?[&quot;Left&quot;,&quot;Right&quot;]:[&quot;Top&quot;,&quot;Bottom&quot;],h=b.toLowerCase(),i={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight,outerWidth:c.fn.outerWidth,outerHeight:c.fn.outerHeight};c.fn[&quot;inner&quot;+b]=function(f){if(f===j)return i[&quot;inner&quot;+b].call(this);return this.each(function(){c.style(this,h,d(this,f)+&quot;px&quot;)})};c.fn[&quot;outer&quot;+b]=function(f,g){if(typeof f!==&quot;number&quot;)return i[&quot;outer&quot;+b].call(this,f);return this.each(function(){c.style(this,
+h,d(this,f,true,g)+&quot;px&quot;)})}});c.extend(c.expr[&quot;:&quot;],{data:function(a,b,d){return!!c.data(a,d[3])},focusable:function(a){var b=a.nodeName.toLowerCase(),d=c.attr(a,&quot;tabindex&quot;);if(&quot;area&quot;===b){b=a.parentNode;d=b.name;if(!a.href||!d||b.nodeName.toLowerCase()!==&quot;map&quot;)return false;a=c(&quot;img[usemap=#&quot;+d+&quot;]&quot;)[0];return!!a&amp;&amp;k(a)}return(/input|select|textarea|button|object/.test(b)?!a.disabled:&quot;a&quot;==b?a.href||!isNaN(d):!isNaN(d))&amp;&amp;k(a)},tabbable:function(a){var b=c.attr(a,&quot;tabindex&quot;);return(isNaN(b)||b&gt;=0)&amp;&amp;c(a).is(&quot;:focusable&quot;)}});
+c(function(){var a=document.createElement(&quot;div&quot;),b=document.body;c.extend(a.style,{minHeight:&quot;100px&quot;,height:&quot;auto&quot;,padding:0,borderWidth:0});c.support.minHeight=b.appendChild(a).offsetHeight===100;b.removeChild(a).style.display=&quot;none&quot;});c.extend(c.ui,{plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&amp;&amp;a.element[0].parentNode)for(var e=0;e&lt;b.length;e++)a.options[b[e][0]]&amp;&amp;b[e][1].apply(a.element,
+d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&amp;16:a!==b&amp;&amp;a.contains(b)},hasScroll:function(a,b){if(c(a).css(&quot;overflow&quot;)===&quot;hidden&quot;)return false;b=b&amp;&amp;b===&quot;left&quot;?&quot;scrollLeft&quot;:&quot;scrollTop&quot;;var d=false;if(a[b]&gt;0)return true;a[b]=1;d=a[b]&gt;0;a[b]=0;return d},isOverAxis:function(a,b,d){return a&gt;b&amp;&amp;a&lt;b+d},isOver:function(a,b,d,e,h,i){return c.ui.isOverAxis(a,d,h)&amp;&amp;c.ui.isOverAxis(b,e,i)}})}})(jQuery);
</ins></span></pre></div>
<a id="trunkwpincludesjsjqueryuidialogjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/jquery/ui.dialog.js (15710 => 15711)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/jquery/ui.dialog.js        2010-10-04 15:32:54 UTC (rev 15710)
+++ trunk/wp-includes/js/jquery/ui.dialog.js        2010-10-04 16:19:18 UTC (rev 15711)
</span><span class="lines">@@ -1,15 +1,39 @@
</span><span class="cx"> /*
</span><del>- * jQuery UI Dialog 1.7.3
</del><ins>+ * jQuery UI Dialog 1.8.5
</ins><span class="cx">  *
</span><del>- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
</del><ins>+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
</ins><span class="cx">  *
</span><span class="cx">  * http://docs.jquery.com/UI/Dialog
</span><span class="cx">  *
</span><span class="cx">  * Depends:
</span><del>- *        ui.core.js
- *        ui.draggable.js
- *        ui.resizable.js
</del><ins>+ *        jquery.ui.core.js
+ *        jquery.ui.widget.js
+ *  jquery.ui.button.js
+ *        jquery.ui.draggable.js
+ *        jquery.ui.mouse.js
+ *        jquery.ui.position.js
+ *        jquery.ui.resizable.js
</ins><span class="cx">  */
</span><del>-(function(c){var b={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;},a=&quot;ui-dialog ui-widget ui-widget-content ui-corner-all &quot;;c.widget(&quot;ui.dialog&quot;,{_init:function(){this.originalTitle=this.element.attr(&quot;title&quot;);var l=this,m=this.options,j=m.title||this.originalTitle||&quot;&amp;nbsp;&quot;,e=c.ui.dialog.getTitleId(this.element),k=(this.uiDialog=c(&quot;&lt;div/&gt;&quot;)).appendTo(document.body).hide().addClass(a+m.dialogClass).css({position:&quot;absolute&quot;,overflow:&quot;hidden&quot;,zIndex:m.zIndex}).attr(&quot;tabIndex&quot;,-1).css(&quot;outline&quot;,0).keydown(function(n){(m.closeOnEscape&amp;&amp;n.keyCode&amp;&amp;n.keyCode==c.ui.keyCode.ESCAPE&amp;&amp;l.close(n))}).attr({role:&quot;dialog&quot;,&quot;aria-labelledby&quot;:e}).mousedown(function(n){l.moveToTop(false,n)}),g=this.element.show().removeAttr(&quot;title&quot;).addClass(&quot;ui-dialog-content ui-widget-content&quot;).appendTo(k),f=(this.uiDialogTitlebar=c(&quot;&lt;div&gt;&lt;/div&gt;&quot;)).addClass(&quot;ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix&quot;).prependTo(k),i=c('&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(){i.addClass(&quot;ui-state-hover&quot;)},function(){i.removeClass(&quot;ui-state-hover&quot;)}).focus(function(){i.addClass(&quot;ui-state-focus&quot;)}).blur(function(){i.removeClass(&quot;ui-state-focus&quot;)}).mousedown(function(n){n.stopPropagation()}).click(function(n){l.close(n);return false}).appendTo(f),h=(this.uiDialogTitlebarCloseText=c(&quot;&lt;span/&gt;&quot;)).addClass(&quot;ui-icon ui-icon-closethick&quot;).text(m.closeText).appendTo(i),d=c(&quot;&lt;span/&gt;&quot;).addClass(&quot;ui-dialog-title&quot;).attr(&quot;id&quot;,e).html(j).prependTo(f);f.find(&quot;*&quot;).add(f).disableSelection();(m.draggable&amp;&amp;c.fn.draggable&amp;&amp;this._makeDraggable());(m.resizable&amp;&amp;c.fn.resizable&amp;&amp;this._makeResizable());this._createButtons(m.buttons);this._isOpen=false;(m.bgiframe&amp;&amp;c.fn.bgiframe&amp;&amp;k.bgiframe());(m.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(f){var d=this;if(false===d._trigger(&quot;beforeclose&quot;,f)){return}(d.overlay&amp;&amp;d.overlay.destroy());d.uiDialog.unbind(&quot;keypress.ui-dialog&quot;);(d.options.hide?d.uiDialog.hide(d.options.hide,function(){d._trigger(&quot;close&quot;,f)}):d.uiDialog.hide()&amp;&amp;d._trigger(&quot;close&quot;,f));c.ui.dialog.overlay.resize();d._isOpen=false;if(d.options.modal){var e=0;c(&quot;.ui-dialog&quot;).each(function(){if(this!=d.uiDialog[0]){e=Math.max(e,c(this).css(&quot;z-index&quot;))}});c.ui.dialog.maxZ=e}},isOpen:function(){return this._isOpen},moveToTop:function(f,e){if((this.options.modal&amp;&amp;!f)||(!this.options.stack&amp;&amp;!this.options.modal)){return this._trigger(&quot;focus&quot;,e)}if(this.options.zIndex&gt;c.ui.dialog.maxZ){c.ui.dialog.maxZ=this.options.zIndex}(this.overlay&amp;&amp;this.overlay.$el.css(&quot;z-index&quot;,c.ui.dialog.overlay.maxZ=++c.ui.dialog.maxZ));var d={scrollTop:this.element.attr(&quot;scrollTop&quot;),scrollLeft:this.element.attr(&quot;scrollLeft&quot;)};this.uiDialog.css(&quot;z-index&quot;,++c.ui.dialog.maxZ);this.element.attr(d);this._trigger(&quot;focus&quot;,e)},open:function(){if(this._isOpen){return}var e=this.options,d=this.uiDialog;this.overlay=e.modal?new c.ui.dialog.overlay(this):null;(d.next().length&amp;&amp;d.appendTo(&quot;body&quot;));this._size();this._position(e.position);d.show(e.show);this.moveToTop(true);(e.modal&amp;&amp;d.bind(&quot;keypress.ui-dialog&quot;,function(h){if(h.keyCode!=c.ui.keyCode.TAB){return}var g=c(&quot;:tabbable&quot;,this),i=g.filter(&quot;:first&quot;)[0],f=g.filter(&quot;:last&quot;)[0];if(h.target==f&amp;&amp;!h.shiftKey){setTimeout(function(){i.focus()},1)}else{if(h.target==i&amp;&amp;h.shiftKey){setTimeout(function(){f.focus()},1)}}}));c([]).add(d.find(&quot;.ui-dialog-content :tabbable:first&quot;)).add(d.find(&quot;.ui-dialog-buttonpane :tabbable:first&quot;)).add(d).filter(&quot;:first&quot;).focus();this._trigger(&quot;open&quot;);this._isOpen=true},_createButtons:function(g){var f=this,d=false,e=c(&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 g==&quot;object&quot;&amp;&amp;g!==null&amp;&amp;c.each(g,function(){return !(d=true)}));if(d){c.each(g,function(h,i){c('&lt;button type=&quot;button&quot;&gt;&lt;/button&gt;').addClass(&quot;ui-state-default ui-corner-all&quot;).text(h).click(function(){i.apply(f.element[0],arguments)}).hover(function(){c(this).addClass(&quot;ui-state-hover&quot;)},function(){c(this).removeClass(&quot;ui-state-hover&quot;)}).focus(function(){c(this).addClass(&quot;ui-state-focus&quot;)}).blur(function(){c(this).removeClass(&quot;ui-state-focus&quot;)}).appendTo(e)});e.appendTo(this.uiDialog)}},_makeDraggable:function(){var d=this,f=this.options,e;this.uiDialog.draggable({cancel:&quot;.ui-dialog-content&quot;,handle:&quot;.ui-dialog-titlebar&quot;,containment:&quot;document&quot;,start:function(){e=f.height;c(this).height(c(this).height()).addClass(&quot;ui-dialog-dragging&quot;);(f.dragStart&amp;&amp;f.dragStart.apply(d.element[0],arguments))},drag:function(){(f.drag&amp;&amp;f.drag.apply(d.element[0],arguments))},stop:function(){c(this).removeClass(&quot;ui-dialog-dragging&quot;).height(e);(f.dragStop&amp;&amp;f.dragStop.apply(d.element[0],arguments));c.ui.dialog.overlay.resize()}})},_makeResizable:function(g){g=(g===undefined?this.options.resizable:g);var d=this,f=this.options,e=typeof g==&quot;string&quot;?g:&quot;n,e,s,w,se,sw,ne,nw&quot;;this.uiDialog.resizable({cancel:&quot;.ui-dialog-content&quot;,alsoResize:this.element,maxWidth:f.maxWidth,maxHeight:f.maxHeight,minWidth:f.minWidth,minHeight:f.minHeight,start:function(){c(this).addClass(&quot;ui-dialog-resizing&quot;);(f.resizeStart&amp;&amp;f.resizeStart.apply(d.element[0],arguments))},resize:function(){(f.resize&amp;&amp;f.resize.apply(d.element[0],arguments))},handles:e,stop:function(){c(this).removeClass(&quot;ui-dialog-resizing&quot;);f.height=c(this).height();f.width=c(this).width();(f.resizeStop&amp;&amp;f.resizeStop.apply(d.element[0],arguments));c.ui.dialog.overlay.resize()}}).find(&quot;.ui-resizable-se&quot;).addClass(&quot;ui-icon ui-icon-grip-diagonal-se&quot;)},_position:function(i){var e=c(window),f=c(document),g=f.scrollTop(),d=f.scrollLeft(),h=g;if(c.inArray(i,[&quot;center&quot;,&quot;top&quot;,&quot;right&quot;,&quot;bottom&quot;,&quot;left&quot;])&gt;=0){i=[i==&quot;right&quot;||i==&quot;left&quot;?i:&quot;center&quot;,i==&quot;top&quot;||i==&quot;bottom&quot;?i:&quot;middle&quot;]}if(i.constructor!=Array){i=[&quot;center&quot;,&quot;middle&quot;]}if(i[0].constructor==Number){d+=i[0]}else{switch(i[0]){case&quot;left&quot;:d+=0;break;case&quot;right&quot;:d+=e.width()-this.uiDialog.outerWidth();break;default:case&quot;center&quot;:d+=(e.width()-this.uiDialog.outerWidth())/2}}if(i[1].constructor==Number){g+=i[1]}else{switch(i[1]){case&quot;top&quot;:g+=0;break;case&quot;bottom&quot;:g+=e.height()-this.uiDialog.outerHeight();break;default:case&quot;middle&quot;:g+=(e.height()-this.uiDialog.outerHeight())/2}}g=Math.max(g,h);this.uiDialog.css({top:g,left:d})},_setData:function(e,f){(b[e]&amp;&amp;this.uiDialog.data(b[e],f));switch(e){case&quot;buttons&quot;:this._createButtons(f);break;case&quot;closeText&quot;:this.uiDialogTitlebarCloseText.text(f);break;case&quot;dialogClass&quot;:this.uiDialog.removeClass(this.options.dialogClass).addClass(a+f);break;case&quot;draggable&quot;:(f?this._makeDraggable():this.uiDialog.draggable(&quot;destroy&quot;));break;case&quot;height&quot;:this.uiDialog.height(f);break;case&quot;position&quot;:this._position(f);break;case&quot;resizable&quot;:var d=this.uiDialog,g=this.uiDialog.is(&quot;:data(resizable)&quot;);(g&amp;&amp;!f&amp;&amp;d.resizable(&quot;destroy&quot;));(g&amp;&amp;typeof f==&quot;string&quot;&amp;&amp;d.resizable(&quot;option&quot;,&quot;handles&quot;,f));(g||this._makeResizable(f));break;case&quot;title&quot;:c(&quot;.ui-dialog-title&quot;,this.uiDialogTitlebar).html(f||&quot;&amp;nbsp;&quot;);break;case&quot;width&quot;:this.uiDialog.width(f);break}c.widget.prototype._setData.apply(this,arguments)},_size:function(){var e=this.options;this.element.css({height:0,minHeight:0,width:&quot;auto&quot;});var d=this.uiDialog.css({height:&quot;auto&quot;,width:e.width}).height();this.element.css({minHeight:Math.max(e.minHeight-d,0),height:e.height==&quot;auto&quot;?&quot;auto&quot;:Math.max(e.height-d,0)})}});c.extend(c.ui.dialog,{version:&quot;1.7.3&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(d){return&quot;ui-dialog-title-&quot;+(d.attr(&quot;id&quot;)||++this.uuid)},overlay:function(d){this.$el=c.ui.dialog.overlay.create(d)}});c.extend(c.ui.dialog.overlay,{instances:[],maxZ:0,events:c.map(&quot;focus,mousedown,mouseup,keydown,keypress,click&quot;.split(&quot;,&quot;),function(d){return d+&quot;.dialog-overlay&quot;}).join(&quot; &quot;),create:function(e){if(this.instances.length===0){setTimeout(function(){if(c.ui.dialog.overlay.instances.length){c(document).bind(c.ui.dialog.overlay.events,function(f){var g=c(f.target).parents(&quot;.ui-dialog&quot;).css(&quot;zIndex&quot;)||0;return(g&gt;c.ui.dialog.overlay.maxZ)})}},1);c(document).bind(&quot;keydown.dialog-overlay&quot;,function(f){(e.options.closeOnEscape&amp;&amp;f.keyCode&amp;&amp;f.keyCode==c.ui.keyCode.ESCAPE&amp;&amp;e.close(f))});c(window).bind(&quot;resize.dialog-overlay&quot;,c.ui.dialog.overlay.resize)}var d=c(&quot;&lt;div&gt;&lt;/div&gt;&quot;).appendTo(document.body).addClass(&quot;ui-widget-overlay&quot;).css({width:this.width(),height:this.height()});(e.options.bgiframe&amp;&amp;c.fn.bgiframe&amp;&amp;d.bgiframe());this.instances.push(d);return d},destroy:function(d){this.instances.splice(c.inArray(this.instances,d),1);if(this.instances.length===0){c([document,window]).unbind(&quot;.dialog-overlay&quot;)}d.remove();var e=0;c.each(this.instances,function(){e=Math.max(e,this.css(&quot;z-index&quot;))});this.maxZ=e},height:function(){if(c.browser.msie&amp;&amp;c.browser.version&lt;7){var e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var d=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(e&lt;d){return c(window).height()+&quot;px&quot;}else{return e+&quot;px&quot;}}else{return c(document).height()+&quot;px&quot;}},width:function(){if(c.browser.msie&amp;&amp;c.browser.version&lt;7){var d=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var e=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(d&lt;e){return c(window).width()+&quot;px&quot;}else{return d+&quot;px&quot;}}else{return c(document).width()+&quot;px&quot;}},resize:function(){var d=c([]);c.each(c.ui.dialog.overlay.instances,function(){d=d.add(this)});d.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
</del><ins>+(function(c,j){c.widget(&quot;ui.dialog&quot;,{options:{autoOpen:true,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:{my:&quot;center&quot;,at:&quot;center&quot;,of:window,collision:&quot;fit&quot;,using:function(a){var b=c(this).css(a).offset().top;b&lt;0&amp;&amp;c(this).css(&quot;top&quot;,a.top-b)}},resizable:true,show:null,stack:true,title:&quot;&quot;,width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr(&quot;title&quot;);
+if(typeof this.originalTitle!==&quot;string&quot;)this.originalTitle=&quot;&quot;;this.options.title=this.options.title||this.originalTitle;var a=this,b=a.options,d=b.title||&quot;&amp;#160;&quot;,f=c.ui.dialog.getTitleId(a.element),g=(a.uiDialog=c(&quot;&lt;div&gt;&lt;/div&gt;&quot;)).appendTo(document.body).hide().addClass(&quot;ui-dialog ui-widget ui-widget-content ui-corner-all &quot;+b.dialogClass).css({zIndex:b.zIndex}).attr(&quot;tabIndex&quot;,-1).css(&quot;outline&quot;,0).keydown(function(i){if(b.closeOnEscape&amp;&amp;i.keyCode&amp;&amp;i.keyCode===c.ui.keyCode.ESCAPE){a.close(i);i.preventDefault()}}).attr({role:&quot;dialog&quot;,
+&quot;aria-labelledby&quot;:f}).mousedown(function(i){a.moveToTop(false,i)});a.element.show().removeAttr(&quot;title&quot;).addClass(&quot;ui-dialog-content ui-widget-content&quot;).appendTo(g);var e=(a.uiDialogTitlebar=c(&quot;&lt;div&gt;&lt;/div&gt;&quot;)).addClass(&quot;ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix&quot;).prependTo(g),h=c('&lt;a href=&quot;#&quot;&gt;&lt;/a&gt;').addClass(&quot;ui-dialog-titlebar-close ui-corner-all&quot;).attr(&quot;role&quot;,&quot;button&quot;).hover(function(){h.addClass(&quot;ui-state-hover&quot;)},function(){h.removeClass(&quot;ui-state-hover&quot;)}).focus(function(){h.addClass(&quot;ui-state-focus&quot;)}).blur(function(){h.removeClass(&quot;ui-state-focus&quot;)}).click(function(i){a.close(i);
+return false}).appendTo(e);(a.uiDialogTitlebarCloseText=c(&quot;&lt;span&gt;&lt;/span&gt;&quot;)).addClass(&quot;ui-icon ui-icon-closethick&quot;).text(b.closeText).appendTo(h);c(&quot;&lt;span&gt;&lt;/span&gt;&quot;).addClass(&quot;ui-dialog-title&quot;).attr(&quot;id&quot;,f).html(d).prependTo(e);if(c.isFunction(b.beforeclose)&amp;&amp;!c.isFunction(b.beforeClose))b.beforeClose=b.beforeclose;e.find(&quot;*&quot;).add(e).disableSelection();b.draggable&amp;&amp;c.fn.draggable&amp;&amp;a._makeDraggable();b.resizable&amp;&amp;c.fn.resizable&amp;&amp;a._makeResizable();a._createButtons(b.buttons);a._isOpen=false;c.fn.bgiframe&amp;&amp;
+g.bgiframe()},_init:function(){this.options.autoOpen&amp;&amp;this.open()},destroy:function(){var a=this;a.overlay&amp;&amp;a.overlay.destroy();a.uiDialog.hide();a.element.unbind(&quot;.dialog&quot;).removeData(&quot;dialog&quot;).removeClass(&quot;ui-dialog-content ui-widget-content&quot;).hide().appendTo(&quot;body&quot;);a.uiDialog.remove();a.originalTitle&amp;&amp;a.element.attr(&quot;title&quot;,a.originalTitle);return a},widget:function(){return this.uiDialog},close:function(a){var b=this,d;if(false!==b._trigger(&quot;beforeClose&quot;,a)){b.overlay&amp;&amp;b.overlay.destroy();b.uiDialog.unbind(&quot;keypress.ui-dialog&quot;);
+b._isOpen=false;if(b.options.hide)b.uiDialog.hide(b.options.hide,function(){b._trigger(&quot;close&quot;,a)});else{b.uiDialog.hide();b._trigger(&quot;close&quot;,a)}c.ui.dialog.overlay.resize();if(b.options.modal){d=0;c(&quot;.ui-dialog&quot;).each(function(){if(this!==b.uiDialog[0])d=Math.max(d,c(this).css(&quot;z-index&quot;))});c.ui.dialog.maxZ=d}return b}},isOpen:function(){return this._isOpen},moveToTop:function(a,b){var d=this,f=d.options;if(f.modal&amp;&amp;!a||!f.stack&amp;&amp;!f.modal)return d._trigger(&quot;focus&quot;,b);if(f.zIndex&gt;c.ui.dialog.maxZ)c.ui.dialog.maxZ=
+f.zIndex;if(d.overlay){c.ui.dialog.maxZ+=1;d.overlay.$el.css(&quot;z-index&quot;,c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ)}a={scrollTop:d.element.attr(&quot;scrollTop&quot;),scrollLeft:d.element.attr(&quot;scrollLeft&quot;)};c.ui.dialog.maxZ+=1;d.uiDialog.css(&quot;z-index&quot;,c.ui.dialog.maxZ);d.element.attr(a);d._trigger(&quot;focus&quot;,b);return d},open:function(){if(!this._isOpen){var a=this,b=a.options,d=a.uiDialog;a.overlay=b.modal?new c.ui.dialog.overlay(a):null;d.next().length&amp;&amp;d.appendTo(&quot;body&quot;);a._size();a._position(b.position);d.show(b.show);
+a.moveToTop(true);b.modal&amp;&amp;d.bind(&quot;keypress.ui-dialog&quot;,function(f){if(f.keyCode===c.ui.keyCode.TAB){var g=c(&quot;:tabbable&quot;,this),e=g.filter(&quot;:first&quot;);g=g.filter(&quot;:last&quot;);if(f.target===g[0]&amp;&amp;!f.shiftKey){e.focus(1);return false}else if(f.target===e[0]&amp;&amp;f.shiftKey){g.focus(1);return false}}});c(a.element.find(&quot;:tabbable&quot;).get().concat(d.find(&quot;.ui-dialog-buttonpane :tabbable&quot;).get().concat(d.get()))).eq(0).focus();a._isOpen=true;a._trigger(&quot;open&quot;);return a}},_createButtons:function(a){var b=this,d=false,
+f=c(&quot;&lt;div&gt;&lt;/div&gt;&quot;).addClass(&quot;ui-dialog-buttonpane ui-widget-content ui-helper-clearfix&quot;),g=c(&quot;&lt;div&gt;&lt;/div&gt;&quot;).addClass(&quot;ui-dialog-buttonset&quot;).appendTo(f);b.uiDialog.find(&quot;.ui-dialog-buttonpane&quot;).remove();typeof a===&quot;object&quot;&amp;&amp;a!==null&amp;&amp;c.each(a,function(){return!(d=true)});if(d){c.each(a,function(e,h){h=c.isFunction(h)?{click:h,text:e}:h;e=c(&quot;&lt;button&gt;&lt;/button&gt;&quot;,h).unbind(&quot;click&quot;).click(function(){h.click.apply(b.element[0],arguments)}).appendTo(g);c.fn.button&amp;&amp;e.button()});f.appendTo(b.uiDialog)}},_makeDraggable:function(){function a(e){return{position:e.position,
+offset:e.offset}}var b=this,d=b.options,f=c(document),g;b.uiDialog.draggable({cancel:&quot;.ui-dialog-content, .ui-dialog-titlebar-close&quot;,handle:&quot;.ui-dialog-titlebar&quot;,containment:&quot;document&quot;,start:function(e,h){g=d.height===&quot;auto&quot;?&quot;auto&quot;:c(this).height();c(this).height(c(this).height()).addClass(&quot;ui-dialog-dragging&quot;);b._trigger(&quot;dragStart&quot;,e,a(h))},drag:function(e,h){b._trigger(&quot;drag&quot;,e,a(h))},stop:function(e,h){d.position=[h.position.left-f.scrollLeft(),h.position.top-f.scrollTop()];c(this).removeClass(&quot;ui-dialog-dragging&quot;).height(g);
+b._trigger(&quot;dragStop&quot;,e,a(h));c.ui.dialog.overlay.resize()}})},_makeResizable:function(a){function b(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}a=a===j?this.options.resizable:a;var d=this,f=d.options,g=d.uiDialog.css(&quot;position&quot;);a=typeof a===&quot;string&quot;?a:&quot;n,e,s,w,se,sw,ne,nw&quot;;d.uiDialog.resizable({cancel:&quot;.ui-dialog-content&quot;,containment:&quot;document&quot;,alsoResize:d.element,maxWidth:f.maxWidth,maxHeight:f.maxHeight,minWidth:f.minWidth,minHeight:d._minHeight(),
+handles:a,start:function(e,h){c(this).addClass(&quot;ui-dialog-resizing&quot;);d._trigger(&quot;resizeStart&quot;,e,b(h))},resize:function(e,h){d._trigger(&quot;resize&quot;,e,b(h))},stop:function(e,h){c(this).removeClass(&quot;ui-dialog-resizing&quot;);f.height=c(this).height();f.width=c(this).width();d._trigger(&quot;resizeStop&quot;,e,b(h));c.ui.dialog.overlay.resize()}}).css(&quot;position&quot;,g).find(&quot;.ui-resizable-se&quot;).addClass(&quot;ui-icon ui-icon-grip-diagonal-se&quot;)},_minHeight:function(){var a=this.options;return a.height===&quot;auto&quot;?a.minHeight:Math.min(a.minHeight,
+a.height)},_position:function(a){var b=[],d=[0,0],f;if(a){if(typeof a===&quot;string&quot;||typeof a===&quot;object&quot;&amp;&amp;&quot;0&quot;in a){b=a.split?a.split(&quot; &quot;):[a[0],a[1]];if(b.length===1)b[1]=b[0];c.each([&quot;left&quot;,&quot;top&quot;],function(g,e){if(+b[g]===b[g]){d[g]=b[g];b[g]=e}});a={my:b.join(&quot; &quot;),at:b.join(&quot; &quot;),offset:d.join(&quot; &quot;)}}a=c.extend({},c.ui.dialog.prototype.options.position,a)}else a=c.ui.dialog.prototype.options.position;(f=this.uiDialog.is(&quot;:visible&quot;))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(a);
+f||this.uiDialog.hide()},_setOption:function(a,b){var d=this,f=d.uiDialog,g=f.is(&quot;:data(resizable)&quot;),e=false;switch(a){case &quot;beforeclose&quot;:a=&quot;beforeClose&quot;;break;case &quot;buttons&quot;:d._createButtons(b);e=true;break;case &quot;closeText&quot;:d.uiDialogTitlebarCloseText.text(&quot;&quot;+b);break;case &quot;dialogClass&quot;:f.removeClass(d.options.dialogClass).addClass(&quot;ui-dialog ui-widget ui-widget-content ui-corner-all &quot;+b);break;case &quot;disabled&quot;:b?f.addClass(&quot;ui-dialog-disabled&quot;):f.removeClass(&quot;ui-dialog-disabled&quot;);break;case &quot;draggable&quot;:b?
+d._makeDraggable():f.draggable(&quot;destroy&quot;);break;case &quot;height&quot;:e=true;break;case &quot;maxHeight&quot;:g&amp;&amp;f.resizable(&quot;option&quot;,&quot;maxHeight&quot;,b);e=true;break;case &quot;maxWidth&quot;:g&amp;&amp;f.resizable(&quot;option&quot;,&quot;maxWidth&quot;,b);e=true;break;case &quot;minHeight&quot;:g&amp;&amp;f.resizable(&quot;option&quot;,&quot;minHeight&quot;,b);e=true;break;case &quot;minWidth&quot;:g&amp;&amp;f.resizable(&quot;option&quot;,&quot;minWidth&quot;,b);e=true;break;case &quot;position&quot;:d._position(b);break;case &quot;resizable&quot;:g&amp;&amp;!b&amp;&amp;f.resizable(&quot;destroy&quot;);g&amp;&amp;typeof b===&quot;string&quot;&amp;&amp;f.resizable(&quot;option&quot;,&quot;handles&quot;,b);!g&amp;&amp;b!==false&amp;&amp;
+d._makeResizable(b);break;case &quot;title&quot;:c(&quot;.ui-dialog-title&quot;,d.uiDialogTitlebar).html(&quot;&quot;+(b||&quot;&amp;#160;&quot;));break;case &quot;width&quot;:e=true;break}c.Widget.prototype._setOption.apply(d,arguments);e&amp;&amp;d._size()},_size:function(){var a=this.options,b;this.element.css({width:&quot;auto&quot;,minHeight:0,height:0});if(a.minWidth&gt;a.width)a.width=a.minWidth;b=this.uiDialog.css({height:&quot;auto&quot;,width:a.width}).height();this.element.css(a.height===&quot;auto&quot;?{minHeight:Math.max(a.minHeight-b,0),height:c.support.minHeight?&quot;auto&quot;:Math.max(a.minHeight-
+b,0)}:{minHeight:0,height:Math.max(a.height-b,0)}).show();this.uiDialog.is(&quot;:data(resizable)&quot;)&amp;&amp;this.uiDialog.resizable(&quot;option&quot;,&quot;minHeight&quot;,this._minHeight())}});c.extend(c.ui.dialog,{version:&quot;1.8.5&quot;,uuid:0,maxZ:0,getTitleId:function(a){a=a.attr(&quot;id&quot;);if(!a){this.uuid+=1;a=this.uuid}return&quot;ui-dialog-title-&quot;+a},overlay:function(a){this.$el=c.ui.dialog.overlay.create(a)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.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(){c.ui.dialog.overlay.instances.length&amp;&amp;c(document).bind(c.ui.dialog.overlay.events,function(d){if(c(d.target).zIndex()&lt;c.ui.dialog.overlay.maxZ)return false})},1);c(document).bind(&quot;keydown.dialog-overlay&quot;,function(d){if(a.options.closeOnEscape&amp;&amp;d.keyCode&amp;&amp;d.keyCode===c.ui.keyCode.ESCAPE){a.close(d);d.preventDefault()}});c(window).bind(&quot;resize.dialog-overlay&quot;,c.ui.dialog.overlay.resize)}var b=
+(this.oldInstances.pop()||c(&quot;&lt;div&gt;&lt;/div&gt;&quot;).addClass(&quot;ui-widget-overlay&quot;)).appendTo(document.body).css({width:this.width(),height:this.height()});c.fn.bgiframe&amp;&amp;b.bgiframe();this.instances.push(b);return b},destroy:function(a){this.oldInstances.push(this.instances.splice(c.inArray(a,this.instances),1)[0]);this.instances.length===0&amp;&amp;c([document,window]).unbind(&quot;.dialog-overlay&quot;);a.remove();var b=0;c.each(this.instances,function(){b=Math.max(b,this.css(&quot;z-index&quot;))});this.maxZ=b},height:function(){var a,
+b;if(c.browser.msie&amp;&amp;c.browser.version&lt;7){a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return a&lt;b?c(window).height()+&quot;px&quot;:a+&quot;px&quot;}else return c(document).height()+&quot;px&quot;},width:function(){var a,b;if(c.browser.msie&amp;&amp;c.browser.version&lt;7){a=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);b=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return a&lt;
+b?c(window).width()+&quot;px&quot;:a+&quot;px&quot;}else return c(document).width()+&quot;px&quot;},resize:function(){var a=c([]);c.each(c.ui.dialog.overlay.instances,function(){a=a.add(this)});a.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
</ins></span></pre></div>
<a id="trunkwpincludesjsjqueryuidraggablejs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/jquery/ui.draggable.js (15710 => 15711)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/jquery/ui.draggable.js        2010-10-04 15:32:54 UTC (rev 15710)
+++ trunk/wp-includes/js/jquery/ui.draggable.js        2010-10-04 16:19:18 UTC (rev 15711)
</span><span class="lines">@@ -1,13 +1,49 @@
</span><span class="cx"> /*
</span><del>- * jQuery UI Draggable 1.7.3
</del><ins>+ * jQuery UI Draggable 1.8.5
</ins><span class="cx">  *
</span><del>- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
</del><ins>+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
</ins><span class="cx">  *
</span><span class="cx">  * http://docs.jquery.com/UI/Draggables
</span><span class="cx">  *
</span><span class="cx">  * Depends:
</span><del>- *        ui.core.js
</del><ins>+ *        jquery.ui.core.js
+ *        jquery.ui.mouse.js
+ *        jquery.ui.widget.js
</ins><span class="cx">  */
</span><del>-(function(a){a.widget(&quot;ui.draggable&quot;,a.extend({},a.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(b){var c=this.options;if(this.helper||c.disabled||a(b.target).is(&quot;.ui-resizable-handle&quot;)){return false}this.handle=this._getHandle(b);if(!this.handle){return false}return true},_mouseStart:function(b){var c=this.options;this.helper=this._createHelper(b);this._cacheHelperProportions();if(a.ui.ddmanager){a.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};a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;if(c.cursorAt){this._adjustOffsetFromHelper(c.cursorAt)}if(c.containment){this._setContainment()}this._trigger(&quot;start&quot;,b);this._cacheHelperProportions();if(a.ui.ddmanager&amp;&amp;!c.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,b)}this.helper.addClass(&quot;ui-draggable-dragging&quot;);this._mouseDrag(b,true);return true},_mouseDrag:function(b,d){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo(&quot;absolute&quot;);if(!d){var c=this._uiHash();this._trigger(&quot;drag&quot;,b,c);this.position=c.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(a.ui.ddmanager){a.ui.ddmanager.drag(this,b)}return false},_mouseStop:function(c){var d=false;if(a.ui.ddmanager&amp;&amp;!this.options.dropBehaviour){d=a.ui.ddmanager.drop(this,c)}if(this.dropped){d=this.dropped;this.dropped=false}if((this.options.revert==&quot;invalid&quot;&amp;&amp;!d)||(this.options.revert==&quot;valid&quot;&amp;&amp;d)||this.options.revert===true||(a.isFunction(this.options.revert)&amp;&amp;this.options.revert.call(this.element,d))){var b=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){b._trigger(&quot;stop&quot;,c);b._clear()})}else{this._trigger(&quot;stop&quot;,c);this._clear()}return false},_getHandle:function(b){var c=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find(&quot;*&quot;).andSelf().each(function(){if(this==b.target){c=true}});return c},_createHelper:function(c){var d=this.options;var b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c])):(d.helper==&quot;clone&quot;?this.element.clone():this.element);if(!b.parents(&quot;body&quot;).length){b.appendTo((d.appendTo==&quot;parent&quot;?this.element[0].parentNode:d.appendTo))}if(b[0]!=this.element[0]&amp;&amp;!(/(fixed|absolute)/).test(b.css(&quot;position&quot;))){b.css(&quot;position&quot;,&quot;absolute&quot;)}return b},_adjustOffsetFromHelper:function(b){if(b.left!=undefined){this.offset.click.left=b.left+this.margins.left}if(b.right!=undefined){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if(b.top!=undefined){this.offset.click.top=b.top+this.margins.top}if(b.bottom!=undefined){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition==&quot;absolute&quot;&amp;&amp;this.scrollParent[0]!=document&amp;&amp;a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.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;a.browser.msie)){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css(&quot;borderTopWidth&quot;),10)||0),left:b.left+(parseInt(this.offsetParent.css(&quot;borderLeftWidth&quot;),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==&quot;relative&quot;){var b=this.element.position();return{top:b.top-(parseInt(this.helper.css(&quot;top&quot;),10)||0)+this.scrollParent.scrollTop(),left:b.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 e=this.options;if(e.containment==&quot;parent&quot;){e.containment=this.helper[0].parentNode}if(e.containment==&quot;document&quot;||e.containment==&quot;window&quot;){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment==&quot;document&quot;?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment==&quot;document&quot;?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(e.containment)&amp;&amp;e.containment.constructor!=Array){var c=a(e.containment)[0];if(!c){return}var d=a(e.containment).offset();var b=(a(c).css(&quot;overflow&quot;)!=&quot;hidden&quot;);this.containment=[d.left+(parseInt(a(c).css(&quot;borderLeftWidth&quot;),10)||0)+(parseInt(a(c).css(&quot;paddingLeft&quot;),10)||0)-this.margins.left,d.top+(parseInt(a(c).css(&quot;borderTopWidth&quot;),10)||0)+(parseInt(a(c).css(&quot;paddingTop&quot;),10)||0)-this.margins.top,d.left+(b?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css(&quot;borderLeftWidth&quot;),10)||0)-(parseInt(a(c).css(&quot;paddingRight&quot;),10)||0)-this.helperProportions.width-this.margins.left,d.top+(b?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css(&quot;borderTopWidth&quot;),10)||0)-(parseInt(a(c).css(&quot;paddingBottom&quot;),10)||0)-this.helperProportions.height-this.margins.top]}else{if(e.containment.constructor==Array){this.containment=e.containment}}},_convertPositionTo:function(f,h){if(!h){h=this.position}var c=f==&quot;absolute&quot;?1:-1;var e=this.options,b=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=(/(html|body)/i).test(b[0].tagName);return{top:(h.top+this.offset.relative.top*c+this.offset.parent.top*c-(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():(g?0:b.scrollTop()))*c)),left:(h.left+this.offset.relative.left*c+this.offset.parent.left*c-(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():g?0:b.scrollLeft())*c))}},_generatePosition:function(e){var h=this.options,b=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=(/(html|body)/i).test(b[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 d=e.pageX;var c=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left&lt;this.containment[0]){d=this.containment[0]+this.offset.click.left}if(e.pageY-this.offset.click.top&lt;this.containment[1]){c=this.containment[1]+this.offset.click.top}if(e.pageX-this.offset.click.left&gt;this.containment[2]){d=this.containment[2]+this.offset.click.left}if(e.pageY-this.offset.click.top&gt;this.containment[3]){c=this.containment[3]+this.offset.click.top}}if(h.grid){var g=this.originalPageY+Math.round((c-this.originalPageY)/h.grid[1])*h.grid[1];c=this.containment?(!(g-this.offset.click.top&lt;this.containment[1]||g-this.offset.click.top&gt;this.containment[3])?g:(!(g-this.offset.click.top&lt;this.containment[1])?g-h.grid[1]:g+h.grid[1])):g;var f=this.originalPageX+Math.round((d-this.originalPageX)/h.grid[0])*h.grid[0];d=this.containment?(!(f-this.offset.click.left&lt;this.containment[0]||f-this.offset.click.left&gt;this.containment[2])?f:(!(f-this.offset.click.left&lt;this.containment[0])?f-h.grid[0]:f+h.grid[0])):f}}return{top:(c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():(i?0:b.scrollTop())))),left:(d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():i?0:b.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(b,c,d){d=d||this._uiHash();a.ui.plugin.call(this,b,[c,d]);if(b==&quot;drag&quot;){this.positionAbs=this._convertPositionTo(&quot;absolute&quot;)}return a.widget.prototype._trigger.call(this,b,c,d)},plugins:{},_uiHash:function(b){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));a.extend(a.ui.draggable,{version:&quot;1.7.3&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}});a.ui.plugin.add(&quot;draggable&quot;,&quot;connectToSortable&quot;,{start:function(c,e){var d=a(this).data(&quot;draggable&quot;),f=d.options,b=a.extend({},e,{item:d.element});d.sortables=[];a(f.connectToSortable).each(function(){var g=a.data(this,&quot;sortable&quot;);if(g&amp;&amp;!g.options.disabled){d.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger(&quot;activate&quot;,c,b)}})},stop:function(c,e){var d=a(this).data(&quot;draggable&quot;),b=a.extend({},e,{item:d.element});a.each(d.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;d.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(c);this.instance.options.helper=this.instance.options._helper;if(d.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;,c,b)}})},drag:function(c,f){var e=a(this).data(&quot;draggable&quot;),b=this;var d=function(i){var n=this.offset.click.top,m=this.offset.click.left;var g=this.positionAbs.top,k=this.positionAbs.left;var j=i.height,l=i.width;var p=i.top,h=i.left;return a.ui.isOver(g+n,k+m,p,h,j,l)};a.each(e.sortables,function(g){this.instance.positionAbs=e.positionAbs;this.instance.helperProportions=e.helperProportions;this.instance.offset.click=e.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(b).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 f.helper[0]};c.target=this.instance.currentItem[0];this.instance._mouseCapture(c,true);this.instance._mouseStart(c,true,true);this.instance.offset.click.top=e.offset.click.top;this.instance.offset.click.left=e.offset.click.left;this.instance.offset.parent.left-=e.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=e.offset.parent.top-this.instance.offset.parent.top;e._trigger(&quot;toSortable&quot;,c);e.dropped=this.instance.element;e.currentItem=e.element;this.instance.fromOutside=e}if(this.instance.currentItem){this.instance._mouseDrag(c)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger(&quot;out&quot;,c,this.instance._uiHash(this.instance));this.instance._mouseStop(c,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}e._trigger(&quot;fromSortable&quot;,c);e.dropped=false}}})}});a.ui.plugin.add(&quot;draggable&quot;,&quot;cursor&quot;,{start:function(c,d){var b=a(&quot;body&quot;),e=a(this).data(&quot;draggable&quot;).options;if(b.css(&quot;cursor&quot;)){e._cursor=b.css(&quot;cursor&quot;)}b.css(&quot;cursor&quot;,e.cursor)},stop:function(b,c){var d=a(this).data(&quot;draggable&quot;).options;if(d._cursor){a(&quot;body&quot;).css(&quot;cursor&quot;,d._cursor)}}});a.ui.plugin.add(&quot;draggable&quot;,&quot;iframeFix&quot;,{start:function(b,c){var d=a(this).data(&quot;draggable&quot;).options;a(d.iframeFix===true?&quot;iframe&quot;:d.iframeFix).each(function(){a('&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(a(this).offset()).appendTo(&quot;body&quot;)})},stop:function(b,c){a(&quot;div.ui-draggable-iframeFix&quot;).each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add(&quot;draggable&quot;,&quot;opacity&quot;,{start:function(c,d){var b=a(d.helper),e=a(this).data(&quot;draggable&quot;).options;if(b.css(&quot;opacity&quot;)){e._opacity=b.css(&quot;opacity&quot;)}b.css(&quot;opacity&quot;,e.opacity)},stop:function(b,c){var d=a(this).data(&quot;draggable&quot;).options;if(d._opacity){a(c.helper).css(&quot;opacity&quot;,d._opacity)}}});a.ui.plugin.add(&quot;draggable&quot;,&quot;scroll&quot;,{start:function(c,d){var b=a(this).data(&quot;draggable&quot;);if(b.scrollParent[0]!=document&amp;&amp;b.scrollParent[0].tagName!=&quot;HTML&quot;){b.overflowOffset=b.scrollParent.offset()}},drag:function(d,e){var c=a(this).data(&quot;draggable&quot;),f=c.options,b=false;if(c.scrollParent[0]!=document&amp;&amp;c.scrollParent[0].tagName!=&quot;HTML&quot;){if(!f.axis||f.axis!=&quot;x&quot;){if((c.overflowOffset.top+c.scrollParent[0].offsetHeight)-d.pageY&lt;f.scrollSensitivity){c.scrollParent[0].scrollTop=b=c.scrollParent[0].scrollTop+f.scrollSpeed}else{if(d.pageY-c.overflowOffset.top&lt;f.scrollSensitivity){c.scrollParent[0].scrollTop=b=c.scrollParent[0].scrollTop-f.scrollSpeed}}}if(!f.axis||f.axis!=&quot;y&quot;){if((c.overflowOffset.left+c.scrollParent[0].offsetWidth)-d.pageX&lt;f.scrollSensitivity){c.scrollParent[0].scrollLeft=b=c.scrollParent[0].scrollLeft+f.scrollSpeed}else{if(d.pageX-c.overflowOffset.left&lt;f.scrollSensitivity){c.scrollParent[0].scrollLeft=b=c.scrollParent[0].scrollLeft-f.scrollSpeed}}}}else{if(!f.axis||f.axis!=&quot;x&quot;){if(d.pageY-a(document).scrollTop()&lt;f.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()-f.scrollSpeed)}else{if(a(window).height()-(d.pageY-a(document).scrollTop())&lt;f.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()+f.scrollSpeed)}}}if(!f.axis||f.axis!=&quot;y&quot;){if(d.pageX-a(document).scrollLeft()&lt;f.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()-f.scrollSpeed)}else{if(a(window).width()-(d.pageX-a(document).scrollLeft())&lt;f.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()+f.scrollSpeed)}}}}if(b!==false&amp;&amp;a.ui.ddmanager&amp;&amp;!f.dropBehaviour){a.ui.ddmanager.prepareOffsets(c,d)}}});a.ui.plugin.add(&quot;draggable&quot;,&quot;snap&quot;,{start:function(c,d){var b=a(this).data(&quot;draggable&quot;),e=b.options;b.snapElements=[];a(e.snap.constructor!=String?(e.snap.items||&quot;:data(draggable)&quot;):e.snap).each(function(){var g=a(this);var f=g.offset();if(this!=b.element[0]){b.snapElements.push({item:this,width:g.outerWidth(),height:g.outerHeight(),top:f.top,left:f.left})}})},drag:function(u,p){var g=a(this).data(&quot;draggable&quot;),q=g.options;var y=q.snapTolerance;var x=p.offset.left,w=x+g.helperProportions.width,f=p.offset.top,e=f+g.helperProportions.height;for(var v=g.snapElements.length-1;v&gt;=0;v--){var s=g.snapElements[v].left,n=s+g.snapElements[v].width,m=g.snapElements[v].top,A=m+g.snapElements[v].height;if(!((s-y&lt;x&amp;&amp;x&lt;n+y&amp;&amp;m-y&lt;f&amp;&amp;f&lt;A+y)||(s-y&lt;x&amp;&amp;x&lt;n+y&amp;&amp;m-y&lt;e&amp;&amp;e&lt;A+y)||(s-y&lt;w&amp;&amp;w&lt;n+y&amp;&amp;m-y&lt;f&amp;&amp;f&lt;A+y)||(s-y&lt;w&amp;&amp;w&lt;n+y&amp;&amp;m-y&lt;e&amp;&amp;e&lt;A+y))){if(g.snapElements[v].snapping){(g.options.snap.release&amp;&amp;g.options.snap.release.call(g.element,u,a.extend(g._uiHash(),{snapItem:g.snapElements[v].item})))}g.snapElements[v].snapping=false;continue}if(q.snapMode!=&quot;inner&quot;){var c=Math.abs(m-e)&lt;=y;var z=Math.abs(A-f)&lt;=y;var j=Math.abs(s-w)&lt;=y;var k=Math.abs(n-x)&lt;=y;if(c){p.position.top=g._convertPositionTo(&quot;relative&quot;,{top:m-g.helperProportions.height,left:0}).top-g.margins.top}if(z){p.position.top=g._convertPositionTo(&quot;relative&quot;,{top:A,left:0}).top-g.margins.top}if(j){p.position.left=g._convertPositionTo(&quot;relative&quot;,{top:0,left:s-g.helperProportions.width}).left-g.margins.left}if(k){p.position.left=g._convertPositionTo(&quot;relative&quot;,{top:0,left:n}).left-g.margins.left}}var h=(c||z||j||k);if(q.snapMode!=&quot;outer&quot;){var c=Math.abs(m-f)&lt;=y;var z=Math.abs(A-e)&lt;=y;var j=Math.abs(s-x)&lt;=y;var k=Math.abs(n-w)&lt;=y;if(c){p.position.top=g._convertPositionTo(&quot;relative&quot;,{top:m,left:0}).top-g.margins.top}if(z){p.position.top=g._convertPositionTo(&quot;relative&quot;,{top:A-g.helperProportions.height,left:0}).top-g.margins.top}if(j){p.position.left=g._convertPositionTo(&quot;relative&quot;,{top:0,left:s}).left-g.margins.left}if(k){p.position.left=g._convertPositionTo(&quot;relative&quot;,{top:0,left:n-g.helperProportions.width}).left-g.margins.left}}if(!g.snapElements[v].snapping&amp;&amp;(c||z||j||k||h)){(g.options.snap.snap&amp;&amp;g.options.snap.snap.call(g.element,u,a.extend(g._uiHash(),{snapItem:g.snapElements[v].item})))}g.snapElements[v].snapping=(c||z||j||k||h)}}});a.ui.plugin.add(&quot;draggable&quot;,&quot;stack&quot;,{start:function(b,c){var e=a(this).data(&quot;draggable&quot;).options;var d=a.makeArray(a(e.stack.group)).sort(function(g,f){return(parseInt(a(g).css(&quot;zIndex&quot;),10)||e.stack.min)-(parseInt(a(f).css(&quot;zIndex&quot;),10)||e.stack.min)});a(d).each(function(f){this.style.zIndex=e.stack.min+f});this[0].style.zIndex=e.stack.min+d.length}});a.ui.plugin.add(&quot;draggable&quot;,&quot;zIndex&quot;,{start:function(c,d){var b=a(d.helper),e=a(this).data(&quot;draggable&quot;).options;if(b.css(&quot;zIndex&quot;)){e._zIndex=b.css(&quot;zIndex&quot;)}b.css(&quot;zIndex&quot;,e.zIndex)},stop:function(b,c){var d=a(this).data(&quot;draggable&quot;).options;if(d._zIndex){a(c.helper).css(&quot;zIndex&quot;,d._zIndex)}}})})(jQuery);
</del><ins>+(function(d){d.widget(&quot;ui.draggable&quot;,d.ui.mouse,{widgetEventPrefix:&quot;drag&quot;,options:{addClasses:true,appendTo:&quot;parent&quot;,axis:false,connectToSortable:false,containment:false,cursor:&quot;auto&quot;,cursorAt:false,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},_create: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;)){this.element.removeData(&quot;draggable&quot;).unbind(&quot;.draggable&quot;).removeClass(&quot;ui-draggable ui-draggable-dragging ui-draggable-disabled&quot;);this._mouseDestroy();return this}},_mouseCapture:function(a){var b=
+this.options;if(this.helper||b.disabled||d(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 b=this.options;this.helper=this._createHelper(a);this._cacheHelperProportions();if(d.ui.ddmanager)d.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css(&quot;position&quot;);this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-
+this.margins.top,left:this.offset.left-this.margins.left};d.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.position=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&amp;&amp;this._adjustOffsetFromHelper(b.cursorAt);b.containment&amp;&amp;this._setContainment();if(this._trigger(&quot;start&quot;,a)===false){this._clear();return false}this._cacheHelperProportions();
+d.ui.ddmanager&amp;&amp;!b.dropBehaviour&amp;&amp;d.ui.ddmanager.prepareOffsets(this,a);this.helper.addClass(&quot;ui-draggable-dragging&quot;);this._mouseDrag(a,true);return true},_mouseDrag:function(a,b){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo(&quot;absolute&quot;);if(!b){b=this._uiHash();if(this._trigger(&quot;drag&quot;,a,b)===false){this._mouseUp({});return false}this.position=b.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;;d.ui.ddmanager&amp;&amp;d.ui.ddmanager.drag(this,a);return false},_mouseStop:function(a){var b=false;if(d.ui.ddmanager&amp;&amp;!this.options.dropBehaviour)b=d.ui.ddmanager.drop(this,a);if(this.dropped){b=this.dropped;this.dropped=false}if(!this.element[0]||!this.element[0].parentNode)return false;if(this.options.revert==&quot;invalid&quot;&amp;&amp;!b||this.options.revert==&quot;valid&quot;&amp;&amp;b||this.options.revert===true||d.isFunction(this.options.revert)&amp;&amp;this.options.revert.call(this.element,
+b)){var c=this;d(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){c._trigger(&quot;stop&quot;,a)!==false&amp;&amp;c._clear()})}else this._trigger(&quot;stop&quot;,a)!==false&amp;&amp;this._clear();return false},cancel:function(){this.helper.is(&quot;.ui-draggable-dragging&quot;)?this._mouseUp({}):this._clear();return this},_getHandle:function(a){var b=!this.options.handle||!d(this.options.handle,this.element).length?true:false;d(this.options.handle,this.element).find(&quot;*&quot;).andSelf().each(function(){if(this==
+a.target)b=true});return b},_createHelper:function(a){var b=this.options;a=d.isFunction(b.helper)?d(b.helper.apply(this.element[0],[a])):b.helper==&quot;clone&quot;?this.element.clone():this.element;a.parents(&quot;body&quot;).length||a.appendTo(b.appendTo==&quot;parent&quot;?this.element[0].parentNode:b.appendTo);a[0]!=this.element[0]&amp;&amp;!/(fixed|absolute)/.test(a.css(&quot;position&quot;))&amp;&amp;a.css(&quot;position&quot;,&quot;absolute&quot;);return a},_adjustOffsetFromHelper:function(a){if(typeof a==&quot;string&quot;)a=a.split(&quot; &quot;);if(d.isArray(a))a={left:+a[0],top:+a[1]||
+0};if(&quot;left&quot;in a)this.offset.click.left=a.left+this.margins.left;if(&quot;right&quot;in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if(&quot;top&quot;in a)this.offset.click.top=a.top+this.margins.top;if(&quot;bottom&quot;in a)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;d.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;d.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 a=this.options;if(a.containment==
+&quot;parent&quot;)a.containment=this.helper[0].parentNode;if(a.containment==&quot;document&quot;||a.containment==&quot;window&quot;)this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,d(a.containment==&quot;document&quot;?document:window).width()-this.helperProportions.width-this.margins.left,(d(a.containment==&quot;document&quot;?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)&amp;&amp;
+a.containment.constructor!=Array){var b=d(a.containment)[0];if(b){a=d(a.containment).offset();var c=d(b).css(&quot;overflow&quot;)!=&quot;hidden&quot;;this.containment=[a.left+(parseInt(d(b).css(&quot;borderLeftWidth&quot;),10)||0)+(parseInt(d(b).css(&quot;paddingLeft&quot;),10)||0)-this.margins.left,a.top+(parseInt(d(b).css(&quot;borderTopWidth&quot;),10)||0)+(parseInt(d(b).css(&quot;paddingTop&quot;),10)||0)-this.margins.top,a.left+(c?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css(&quot;borderLeftWidth&quot;),10)||0)-(parseInt(d(b).css(&quot;paddingRight&quot;),
+10)||0)-this.helperProportions.width-this.margins.left,a.top+(c?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css(&quot;borderTopWidth&quot;),10)||0)-(parseInt(d(b).css(&quot;paddingBottom&quot;),10)||0)-this.helperProportions.height-this.margins.top]}}else if(a.containment.constructor==Array)this.containment=a.containment},_convertPositionTo:function(a,b){if(!b)b=this.position;a=a==&quot;absolute&quot;?1:-1;var c=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;d.ui.contains(this.scrollParent[0],
+this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName);return{top:b.top+this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&amp;&amp;d.browser.version&lt;526&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():f?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-(d.browser.safari&amp;&amp;d.browser.version&lt;526&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():
+f?0:c.scrollLeft())*a)}},_generatePosition:function(a){var b=this.options,c=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName),e=a.pageX,g=a.pageY;if(this.originalPosition){if(this.containment){if(a.pageX-this.offset.click.left&lt;this.containment[0])e=this.containment[0]+this.offset.click.left;if(a.pageY-this.offset.click.top&lt;this.containment[1])g=this.containment[1]+
+this.offset.click.top;if(a.pageX-this.offset.click.left&gt;this.containment[2])e=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top&gt;this.containment[3])g=this.containment[3]+this.offset.click.top}if(b.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/b.grid[1])*b.grid[1];g=this.containment?!(g-this.offset.click.top&lt;this.containment[1]||g-this.offset.click.top&gt;this.containment[3])?g:!(g-this.offset.click.top&lt;this.containment[1])?g-b.grid[1]:g+b.grid[1]:g;e=this.originalPageX+
+Math.round((e-this.originalPageX)/b.grid[0])*b.grid[0];e=this.containment?!(e-this.offset.click.left&lt;this.containment[0]||e-this.offset.click.left&gt;this.containment[2])?e:!(e-this.offset.click.left&lt;this.containment[0])?e-b.grid[0]:e+b.grid[0]:e}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(d.browser.safari&amp;&amp;d.browser.version&lt;526&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():f?0:c.scrollTop()),left:e-this.offset.click.left-
+this.offset.relative.left-this.offset.parent.left+(d.browser.safari&amp;&amp;d.browser.version&lt;526&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():f?0:c.scrollLeft())}},_clear:function(){this.helper.removeClass(&quot;ui-draggable-dragging&quot;);this.helper[0]!=this.element[0]&amp;&amp;!this.cancelHelperRemoval&amp;&amp;this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(a,b,c){c=c||this._uiHash();d.ui.plugin.call(this,a,[b,c]);if(a==&quot;drag&quot;)this.positionAbs=
+this._convertPositionTo(&quot;absolute&quot;);return d.Widget.prototype._trigger.call(this,a,b,c)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});d.extend(d.ui.draggable,{version:&quot;1.8.5&quot;});d.ui.plugin.add(&quot;draggable&quot;,&quot;connectToSortable&quot;,{start:function(a,b){var c=d(this).data(&quot;draggable&quot;),f=c.options,e=d.extend({},b,{item:c.element});c.sortables=[];d(f.connectToSortable).each(function(){var g=d.data(this,&quot;sortable&quot;);
+if(g&amp;&amp;!g.options.disabled){c.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger(&quot;activate&quot;,a,e)}})},stop:function(a,b){var c=d(this).data(&quot;draggable&quot;),f=d.extend({},b,{item:c.element});d.each(c.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;c.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(a);this.instance.options.helper=this.instance.options._helper;
+c.options.helper==&quot;original&quot;&amp;&amp;this.instance.currentItem.css({top:&quot;auto&quot;,left:&quot;auto&quot;})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger(&quot;deactivate&quot;,a,f)}})},drag:function(a,b){var c=d(this).data(&quot;draggable&quot;),f=this;d.each(c.sortables,function(){this.instance.positionAbs=c.positionAbs;this.instance.helperProportions=c.helperProportions;this.instance.offset.click=c.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=
+1;this.instance.currentItem=d(f).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 b.helper[0]};a.target=this.instance.currentItem[0];this.instance._mouseCapture(a,true);this.instance._mouseStart(a,true,true);this.instance.offset.click.top=c.offset.click.top;this.instance.offset.click.left=c.offset.click.left;this.instance.offset.parent.left-=c.offset.parent.left-this.instance.offset.parent.left;
+this.instance.offset.parent.top-=c.offset.parent.top-this.instance.offset.parent.top;c._trigger(&quot;toSortable&quot;,a);c.dropped=this.instance.element;c.currentItem=c.element;this.instance.fromOutside=c}this.instance.currentItem&amp;&amp;this.instance._mouseDrag(a)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger(&quot;out&quot;,a,this.instance._uiHash(this.instance));this.instance._mouseStop(a,true);this.instance.options.helper=
+this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&amp;&amp;this.instance.placeholder.remove();c._trigger(&quot;fromSortable&quot;,a);c.dropped=false}})}});d.ui.plugin.add(&quot;draggable&quot;,&quot;cursor&quot;,{start:function(){var a=d(&quot;body&quot;),b=d(this).data(&quot;draggable&quot;).options;if(a.css(&quot;cursor&quot;))b._cursor=a.css(&quot;cursor&quot;);a.css(&quot;cursor&quot;,b.cursor)},stop:function(){var a=d(this).data(&quot;draggable&quot;).options;a._cursor&amp;&amp;d(&quot;body&quot;).css(&quot;cursor&quot;,a._cursor)}});d.ui.plugin.add(&quot;draggable&quot;,&quot;iframeFix&quot;,{start:function(){var a=
+d(this).data(&quot;draggable&quot;).options;d(a.iframeFix===true?&quot;iframe&quot;:a.iframeFix).each(function(){d('&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:1E3}).css(d(this).offset()).appendTo(&quot;body&quot;)})},stop:function(){d(&quot;div.ui-draggable-iframeFix&quot;).each(function(){this.parentNode.removeChild(this)})}});d.ui.plugin.add(&quot;draggable&quot;,&quot;opacity&quot;,{start:function(a,b){a=d(b.helper);b=d(this).data(&quot;draggable&quot;).options;
+if(a.css(&quot;opacity&quot;))b._opacity=a.css(&quot;opacity&quot;);a.css(&quot;opacity&quot;,b.opacity)},stop:function(a,b){a=d(this).data(&quot;draggable&quot;).options;a._opacity&amp;&amp;d(b.helper).css(&quot;opacity&quot;,a._opacity)}});d.ui.plugin.add(&quot;draggable&quot;,&quot;scroll&quot;,{start:function(){var a=d(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(a){var b=d(this).data(&quot;draggable&quot;),c=b.options,f=false;if(b.scrollParent[0]!=document&amp;&amp;b.scrollParent[0].tagName!=
+&quot;HTML&quot;){if(!c.axis||c.axis!=&quot;x&quot;)if(b.overflowOffset.top+b.scrollParent[0].offsetHeight-a.pageY&lt;c.scrollSensitivity)b.scrollParent[0].scrollTop=f=b.scrollParent[0].scrollTop+c.scrollSpeed;else if(a.pageY-b.overflowOffset.top&lt;c.scrollSensitivity)b.scrollParent[0].scrollTop=f=b.scrollParent[0].scrollTop-c.scrollSpeed;if(!c.axis||c.axis!=&quot;y&quot;)if(b.overflowOffset.left+b.scrollParent[0].offsetWidth-a.pageX&lt;c.scrollSensitivity)b.scrollParent[0].scrollLeft=f=b.scrollParent[0].scrollLeft+c.scrollSpeed;else if(a.pageX-
+b.overflowOffset.left&lt;c.scrollSensitivity)b.scrollParent[0].scrollLeft=f=b.scrollParent[0].scrollLeft-c.scrollSpeed}else{if(!c.axis||c.axis!=&quot;x&quot;)if(a.pageY-d(document).scrollTop()&lt;c.scrollSensitivity)f=d(document).scrollTop(d(document).scrollTop()-c.scrollSpeed);else if(d(window).height()-(a.pageY-d(document).scrollTop())&lt;c.scrollSensitivity)f=d(document).scrollTop(d(document).scrollTop()+c.scrollSpeed);if(!c.axis||c.axis!=&quot;y&quot;)if(a.pageX-d(document).scrollLeft()&lt;c.scrollSensitivity)f=d(document).scrollLeft(d(document).scrollLeft()-
+c.scrollSpeed);else if(d(window).width()-(a.pageX-d(document).scrollLeft())&lt;c.scrollSensitivity)f=d(document).scrollLeft(d(document).scrollLeft()+c.scrollSpeed)}f!==false&amp;&amp;d.ui.ddmanager&amp;&amp;!c.dropBehaviour&amp;&amp;d.ui.ddmanager.prepareOffsets(b,a)}});d.ui.plugin.add(&quot;draggable&quot;,&quot;snap&quot;,{start:function(){var a=d(this).data(&quot;draggable&quot;),b=a.options;a.snapElements=[];d(b.snap.constructor!=String?b.snap.items||&quot;:data(draggable)&quot;:b.snap).each(function(){var c=d(this),f=c.offset();this!=a.element[0]&amp;&amp;a.snapElements.push({item:this,
+width:c.outerWidth(),height:c.outerHeight(),top:f.top,left:f.left})})},drag:function(a,b){for(var c=d(this).data(&quot;draggable&quot;),f=c.options,e=f.snapTolerance,g=b.offset.left,n=g+c.helperProportions.width,m=b.offset.top,o=m+c.helperProportions.height,h=c.snapElements.length-1;h&gt;=0;h--){var i=c.snapElements[h].left,k=i+c.snapElements[h].width,j=c.snapElements[h].top,l=j+c.snapElements[h].height;if(i-e&lt;g&amp;&amp;g&lt;k+e&amp;&amp;j-e&lt;m&amp;&amp;m&lt;l+e||i-e&lt;g&amp;&amp;g&lt;k+e&amp;&amp;j-e&lt;o&amp;&amp;o&lt;l+e||i-e&lt;n&amp;&amp;n&lt;k+e&amp;&amp;j-e&lt;m&amp;&amp;m&lt;l+e||i-e&lt;n&amp;&amp;n&lt;k+e&amp;&amp;j-e&lt;o&amp;&amp;
+o&lt;l+e){if(f.snapMode!=&quot;inner&quot;){var p=Math.abs(j-o)&lt;=e,q=Math.abs(l-m)&lt;=e,r=Math.abs(i-n)&lt;=e,s=Math.abs(k-g)&lt;=e;if(p)b.position.top=c._convertPositionTo(&quot;relative&quot;,{top:j-c.helperProportions.height,left:0}).top-c.margins.top;if(q)b.position.top=c._convertPositionTo(&quot;relative&quot;,{top:l,left:0}).top-c.margins.top;if(r)b.position.left=c._convertPositionTo(&quot;relative&quot;,{top:0,left:i-c.helperProportions.width}).left-c.margins.left;if(s)b.position.left=c._convertPositionTo(&quot;relative&quot;,{top:0,left:k}).left-c.margins.left}var t=
+p||q||r||s;if(f.snapMode!=&quot;outer&quot;){p=Math.abs(j-m)&lt;=e;q=Math.abs(l-o)&lt;=e;r=Math.abs(i-g)&lt;=e;s=Math.abs(k-n)&lt;=e;if(p)b.position.top=c._convertPositionTo(&quot;relative&quot;,{top:j,left:0}).top-c.margins.top;if(q)b.position.top=c._convertPositionTo(&quot;relative&quot;,{top:l-c.helperProportions.height,left:0}).top-c.margins.top;if(r)b.position.left=c._convertPositionTo(&quot;relative&quot;,{top:0,left:i}).left-c.margins.left;if(s)b.position.left=c._convertPositionTo(&quot;relative&quot;,{top:0,left:k-c.helperProportions.width}).left-c.margins.left}if(!c.snapElements[h].snapping&amp;&amp;
+(p||q||r||s||t))c.options.snap.snap&amp;&amp;c.options.snap.snap.call(c.element,a,d.extend(c._uiHash(),{snapItem:c.snapElements[h].item}));c.snapElements[h].snapping=p||q||r||s||t}else{c.snapElements[h].snapping&amp;&amp;c.options.snap.release&amp;&amp;c.options.snap.release.call(c.element,a,d.extend(c._uiHash(),{snapItem:c.snapElements[h].item}));c.snapElements[h].snapping=false}}}});d.ui.plugin.add(&quot;draggable&quot;,&quot;stack&quot;,{start:function(){var a=d(this).data(&quot;draggable&quot;).options;a=d.makeArray(d(a.stack)).sort(function(c,f){return(parseInt(d(c).css(&quot;zIndex&quot;),
+10)||0)-(parseInt(d(f).css(&quot;zIndex&quot;),10)||0)});if(a.length){var b=parseInt(a[0].style.zIndex)||0;d(a).each(function(c){this.style.zIndex=b+c});this[0].style.zIndex=b+a.length}}});d.ui.plugin.add(&quot;draggable&quot;,&quot;zIndex&quot;,{start:function(a,b){a=d(b.helper);b=d(this).data(&quot;draggable&quot;).options;if(a.css(&quot;zIndex&quot;))b._zIndex=a.css(&quot;zIndex&quot;);a.css(&quot;zIndex&quot;,b.zIndex)},stop:function(a,b){a=d(this).data(&quot;draggable&quot;).options;a._zIndex&amp;&amp;d(b.helper).css(&quot;zIndex&quot;,a._zIndex)}})})(jQuery);
</ins></span></pre></div>
<a id="trunkwpincludesjsjqueryuidroppablejs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/jquery/ui.droppable.js (15710 => 15711)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/jquery/ui.droppable.js        2010-10-04 15:32:54 UTC (rev 15710)
+++ trunk/wp-includes/js/jquery/ui.droppable.js        2010-10-04 16:19:18 UTC (rev 15711)
</span><span class="lines">@@ -1,14 +1,26 @@
</span><span class="cx"> /*
</span><del>- * jQuery UI Droppable 1.7.3
</del><ins>+ * jQuery UI Droppable 1.8.5
</ins><span class="cx">  *
</span><del>- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
</del><ins>+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
</ins><span class="cx">  *
</span><span class="cx">  * http://docs.jquery.com/UI/Droppables
</span><span class="cx">  *
</span><span class="cx">  * Depends:
</span><del>- *        ui.core.js
- *        ui.draggable.js
</del><ins>+ *        jquery.ui.core.js
+ *        jquery.ui.widget.js
+ *        jquery.ui.mouse.js
+ *        jquery.ui.draggable.js
</ins><span class="cx">  */
</span><del>-(function(a){a.widget(&quot;ui.droppable&quot;,{_init:function(){var c=this.options,b=c.accept;this.isover=0;this.isout=1;this.options.accept=this.options.accept&amp;&amp;a.isFunction(this.options.accept)?this.options.accept:function(e){return e.is(b)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[this.options.scope]=a.ui.ddmanager.droppables[this.options.scope]||[];a.ui.ddmanager.droppables[this.options.scope].push(this);(this.options.addClasses&amp;&amp;this.element.addClass(&quot;ui-droppable&quot;))},destroy:function(){var b=a.ui.ddmanager.droppables[this.options.scope];for(var c=0;c&lt;b.length;c++){if(b[c]==this){b.splice(c,1)}}this.element.removeClass(&quot;ui-droppable ui-droppable-disabled&quot;).removeData(&quot;droppable&quot;).unbind(&quot;.droppable&quot;)},_setData:function(b,c){if(b==&quot;accept&quot;){this.options.accept=c&amp;&amp;a.isFunction(c)?c:function(e){return e.is(c)}}else{a.widget.prototype._setData.apply(this,arguments)}},_activate:function(c){var b=a.ui.ddmanager.current;if(this.options.activeClass){this.element.addClass(this.options.activeClass)}(b&amp;&amp;this._trigger(&quot;activate&quot;,c,this.ui(b)))},_deactivate:function(c){var b=a.ui.ddmanager.current;if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}(b&amp;&amp;this._trigger(&quot;deactivate&quot;,c,this.ui(b)))},_over:function(c){var b=a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0]){return}if(this.options.accept.call(this.element[0],(b.currentItem||b.element))){if(this.options.hoverClass){this.element.addClass(this.options.hoverClass)}this._trigger(&quot;over&quot;,c,this.ui(b))}},_out:function(c){var b=a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0]){return}if(this.options.accept.call(this.element[0],(b.currentItem||b.element))){if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger(&quot;out&quot;,c,this.ui(b))}},_drop:function(c,d){var b=d||a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0]){return false}var e=false;this.element.find(&quot;:data(droppable)&quot;).not(&quot;.ui-draggable-dragging&quot;).each(function(){var f=a.data(this,&quot;droppable&quot;);if(f.options.greedy&amp;&amp;a.ui.intersect(b,a.extend(f,{offset:f.element.offset()}),f.options.tolerance)){e=true;return false}});if(e){return false}if(this.options.accept.call(this.element[0],(b.currentItem||b.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;,c,this.ui(b));return this.element}return false},ui:function(b){return{draggable:(b.currentItem||b.element),helper:b.helper,position:b.position,absolutePosition:b.positionAbs,offset:b.positionAbs}}});a.extend(a.ui.droppable,{version:&quot;1.7.3&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;}});a.ui.intersect=function(q,j,o){if(!j.offset){return false}var e=(q.positionAbs||q.position.absolute).left,d=e+q.helperProportions.width,n=(q.positionAbs||q.position.absolute).top,m=n+q.helperProportions.height;var g=j.offset.left,c=g+j.proportions.width,p=j.offset.top,k=p+j.proportions.height;switch(o){case&quot;fit&quot;:return(g&lt;e&amp;&amp;d&lt;c&amp;&amp;p&lt;n&amp;&amp;m&lt;k);break;case&quot;intersect&quot;:return(g&lt;e+(q.helperProportions.width/2)&amp;&amp;d-(q.helperProportions.width/2)&lt;c&amp;&amp;p&lt;n+(q.helperProportions.height/2)&amp;&amp;m-(q.helperProportions.height/2)&lt;k);break;case&quot;pointer&quot;:var h=((q.positionAbs||q.position.absolute).left+(q.clickOffset||q.offset.click).left),i=((q.positionAbs||q.position.absolute).top+(q.clickOffset||q.offset.click).top),f=a.ui.isOver(i,h,p,g,j.proportions.height,j.proportions.width);return f;break;case&quot;touch&quot;:return((n&gt;=p&amp;&amp;n&lt;=k)||(m&gt;=p&amp;&amp;m&lt;=k)||(n&lt;p&amp;&amp;m&gt;k))&amp;&amp;((e&gt;=g&amp;&amp;e&lt;=c)||(d&gt;=g&amp;&amp;d&lt;=c)||(e&lt;g&amp;&amp;d&gt;c));break;default:return false;break}};a.ui.ddmanager={current:null,droppables:{&quot;default&quot;:[]},prepareOffsets:function(e,g){var b=a.ui.ddmanager.droppables[e.options.scope];var f=g?g.type:null;var h=(e.currentItem||e.element).find(&quot;:data(droppable)&quot;).andSelf();droppablesLoop:for(var d=0;d&lt;b.length;d++){if(b[d].options.disabled||(e&amp;&amp;!b[d].options.accept.call(b[d].element[0],(e.currentItem||e.element)))){continue}for(var c=0;c&lt;h.length;c++){if(h[c]==b[d].element[0]){b[d].proportions.height=0;continue droppablesLoop}}b[d].visible=b[d].element.css(&quot;display&quot;)!=&quot;none&quot;;if(!b[d].visible){continue}b[d].offset=b[d].element.offset();b[d].proportions={width:b[d].element[0].offsetWidth,height:b[d].element[0].offsetHeight};if(f==&quot;mousedown&quot;){b[d]._activate.call(b[d],g)}}},drop:function(b,c){var d=false;a.each(a.ui.ddmanager.droppables[b.options.scope],function(){if(!this.options){return}if(!this.options.disabled&amp;&amp;this.visible&amp;&amp;a.ui.intersect(b,this,this.options.tolerance)){d=this._drop.call(this,c)}if(!this.options.disabled&amp;&amp;this.visible&amp;&amp;this.options.accept.call(this.element[0],(b.currentItem||b.element))){this.isout=1;this.isover=0;this._deactivate.call(this,c)}});return d},drag:function(b,c){if(b.options.refreshPositions){a.ui.ddmanager.prepareOffsets(b,c)}a.each(a.ui.ddmanager.droppables[b.options.scope],function(){if(this.options.disabled||this.greedyChild||!this.visible){return}var e=a.ui.intersect(b,this,this.options.tolerance);var g=!e&amp;&amp;this.isover==1?&quot;isout&quot;:(e&amp;&amp;this.isover==0?&quot;isover&quot;:null);if(!g){return}var f;if(this.options.greedy){var d=this.element.parents(&quot;:data(droppable):eq(0)&quot;);if(d.length){f=a.data(d[0],&quot;droppable&quot;);f.greedyChild=(g==&quot;isover&quot;?1:0)}}if(f&amp;&amp;g==&quot;isover&quot;){f.isover=0;f.isout=1;f._out.call(f,c)}this[g]=1;this[g==&quot;isout&quot;?&quot;isover&quot;:&quot;isout&quot;]=0;this[g==&quot;isover&quot;?&quot;_over&quot;:&quot;_out&quot;].call(this,c);if(f&amp;&amp;g==&quot;isout&quot;){f.isout=0;f.isover=1;f._over.call(f,c)}})}}})(jQuery);
</del><ins>+(function(d){d.widget(&quot;ui.droppable&quot;,{widgetEventPrefix:&quot;drop&quot;,options:{accept:&quot;*&quot;,activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:&quot;default&quot;,tolerance:&quot;intersect&quot;},_create:function(){var a=this.options,b=a.accept;this.isover=0;this.isout=1;this.accept=d.isFunction(b)?b:function(c){return c.is(b)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};d.ui.ddmanager.droppables[a.scope]=d.ui.ddmanager.droppables[a.scope]||[];d.ui.ddmanager.droppables[a.scope].push(this);
+a.addClasses&amp;&amp;this.element.addClass(&quot;ui-droppable&quot;)},destroy:function(){for(var a=d.ui.ddmanager.droppables[this.options.scope],b=0;b&lt;a.length;b++)a[b]==this&amp;&amp;a.splice(b,1);this.element.removeClass(&quot;ui-droppable ui-droppable-disabled&quot;).removeData(&quot;droppable&quot;).unbind(&quot;.droppable&quot;);return this},_setOption:function(a,b){if(a==&quot;accept&quot;)this.accept=d.isFunction(b)?b:function(c){return c.is(b)};d.Widget.prototype._setOption.apply(this,arguments)},_activate:function(a){var b=d.ui.ddmanager.current;this.options.activeClass&amp;&amp;
+this.element.addClass(this.options.activeClass);b&amp;&amp;this._trigger(&quot;activate&quot;,a,this.ui(b))},_deactivate:function(a){var b=d.ui.ddmanager.current;this.options.activeClass&amp;&amp;this.element.removeClass(this.options.activeClass);b&amp;&amp;this._trigger(&quot;deactivate&quot;,a,this.ui(b))},_over:function(a){var b=d.ui.ddmanager.current;if(!(!b||(b.currentItem||b.element)[0]==this.element[0]))if(this.accept.call(this.element[0],b.currentItem||b.element)){this.options.hoverClass&amp;&amp;this.element.addClass(this.options.hoverClass);
+this._trigger(&quot;over&quot;,a,this.ui(b))}},_out:function(a){var b=d.ui.ddmanager.current;if(!(!b||(b.currentItem||b.element)[0]==this.element[0]))if(this.accept.call(this.element[0],b.currentItem||b.element)){this.options.hoverClass&amp;&amp;this.element.removeClass(this.options.hoverClass);this._trigger(&quot;out&quot;,a,this.ui(b))}},_drop:function(a,b){var c=b||d.ui.ddmanager.current;if(!c||(c.currentItem||c.element)[0]==this.element[0])return false;var e=false;this.element.find(&quot;:data(droppable)&quot;).not(&quot;.ui-draggable-dragging&quot;).each(function(){var g=
+d.data(this,&quot;droppable&quot;);if(g.options.greedy&amp;&amp;!g.options.disabled&amp;&amp;g.options.scope==c.options.scope&amp;&amp;g.accept.call(g.element[0],c.currentItem||c.element)&amp;&amp;d.ui.intersect(c,d.extend(g,{offset:g.element.offset()}),g.options.tolerance)){e=true;return false}});if(e)return false;if(this.accept.call(this.element[0],c.currentItem||c.element)){this.options.activeClass&amp;&amp;this.element.removeClass(this.options.activeClass);this.options.hoverClass&amp;&amp;this.element.removeClass(this.options.hoverClass);this._trigger(&quot;drop&quot;,
+a,this.ui(c));return this.element}return false},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.helper,position:a.position,offset:a.positionAbs}}});d.extend(d.ui.droppable,{version:&quot;1.8.5&quot;});d.ui.intersect=function(a,b,c){if(!b.offset)return false;var e=(a.positionAbs||a.position.absolute).left,g=e+a.helperProportions.width,f=(a.positionAbs||a.position.absolute).top,h=f+a.helperProportions.height,i=b.offset.left,k=i+b.proportions.width,j=b.offset.top,l=j+b.proportions.height;
+switch(c){case &quot;fit&quot;:return i&lt;=e&amp;&amp;g&lt;=k&amp;&amp;j&lt;=f&amp;&amp;h&lt;=l;case &quot;intersect&quot;:return i&lt;e+a.helperProportions.width/2&amp;&amp;g-a.helperProportions.width/2&lt;k&amp;&amp;j&lt;f+a.helperProportions.height/2&amp;&amp;h-a.helperProportions.height/2&lt;l;case &quot;pointer&quot;:return d.ui.isOver((a.positionAbs||a.position.absolute).top+(a.clickOffset||a.offset.click).top,(a.positionAbs||a.position.absolute).left+(a.clickOffset||a.offset.click).left,j,i,b.proportions.height,b.proportions.width);case &quot;touch&quot;:return(f&gt;=j&amp;&amp;f&lt;=l||h&gt;=j&amp;&amp;h&lt;=l||f&lt;j&amp;&amp;h&gt;l)&amp;&amp;(e&gt;=
+i&amp;&amp;e&lt;=k||g&gt;=i&amp;&amp;g&lt;=k||e&lt;i&amp;&amp;g&gt;k);default:return false}};d.ui.ddmanager={current:null,droppables:{&quot;default&quot;:[]},prepareOffsets:function(a,b){var c=d.ui.ddmanager.droppables[a.options.scope]||[],e=b?b.type:null,g=(a.currentItem||a.element).find(&quot;:data(droppable)&quot;).andSelf(),f=0;a:for(;f&lt;c.length;f++)if(!(c[f].options.disabled||a&amp;&amp;!c[f].accept.call(c[f].element[0],a.currentItem||a.element))){for(var h=0;h&lt;g.length;h++)if(g[h]==c[f].element[0]){c[f].proportions.height=0;continue a}c[f].visible=c[f].element.css(&quot;display&quot;)!=
+&quot;none&quot;;if(c[f].visible){c[f].offset=c[f].element.offset();c[f].proportions={width:c[f].element[0].offsetWidth,height:c[f].element[0].offsetHeight};e==&quot;mousedown&quot;&amp;&amp;c[f]._activate.call(c[f],b)}}},drop:function(a,b){var c=false;d.each(d.ui.ddmanager.droppables[a.options.scope]||[],function(){if(this.options){if(!this.options.disabled&amp;&amp;this.visible&amp;&amp;d.ui.intersect(a,this,this.options.tolerance))c=c||this._drop.call(this,b);if(!this.options.disabled&amp;&amp;this.visible&amp;&amp;this.accept.call(this.element[0],a.currentItem||
+a.element)){this.isout=1;this.isover=0;this._deactivate.call(this,b)}}});return c},drag:function(a,b){a.options.refreshPositions&amp;&amp;d.ui.ddmanager.prepareOffsets(a,b);d.each(d.ui.ddmanager.droppables[a.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var c=d.ui.intersect(a,this,this.options.tolerance);if(c=!c&amp;&amp;this.isover==1?&quot;isout&quot;:c&amp;&amp;this.isover==0?&quot;isover&quot;:null){var e;if(this.options.greedy){var g=this.element.parents(&quot;:data(droppable):eq(0)&quot;);if(g.length){e=
+d.data(g[0],&quot;droppable&quot;);e.greedyChild=c==&quot;isover&quot;?1:0}}if(e&amp;&amp;c==&quot;isover&quot;){e.isover=0;e.isout=1;e._out.call(e,b)}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,b);if(e&amp;&amp;c==&quot;isout&quot;){e.isout=0;e.isover=1;e._over.call(e,b)}}}})}}})(jQuery);
</ins></span></pre></div>
<a id="trunkwpincludesjsjqueryuimousejs"></a>
<div class="addfile"><h4>Added: trunk/wp-includes/js/jquery/ui.mouse.js (0 => 15711)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/jquery/ui.mouse.js                                (rev 0)
+++ trunk/wp-includes/js/jquery/ui.mouse.js        2010-10-04 16:19:18 UTC (rev 15711)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+/*!
+ * jQuery UI Mouse 1.8.5
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Mouse
+ *
+ * Depends:
+ *        jquery.ui.widget.js
+ */
+(function(c){c.widget(&quot;ui.mouse&quot;,{options:{cancel:&quot;:input,option&quot;,distance:1,delay:0},_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}});this.started=false},_mouseDestroy:function(){this.element.unbind(&quot;.&quot;+this.widgetName)},_mouseDown:function(a){a.originalEvent=a.originalEvent||{};if(!a.originalEvent.mouseHandled){this._mouseStarted&amp;&amp;
+this._mouseUp(a);this._mouseDownEvent=a;var b=this,e=a.which==1,f=typeof this.options.cancel==&quot;string&quot;?c(a.target).parents().add(a.target).filter(this.options.cancel).length:false;if(!e||f||!this._mouseCapture(a))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){b.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(a)&amp;&amp;this._mouseDelayMet(a)){this._mouseStarted=this._mouseStart(a)!==false;if(!this._mouseStarted){a.preventDefault();
+return true}}this._mouseMoveDelegate=function(d){return b._mouseMove(d)};this._mouseUpDelegate=function(d){return b._mouseUp(d)};c(document).bind(&quot;mousemove.&quot;+this.widgetName,this._mouseMoveDelegate).bind(&quot;mouseup.&quot;+this.widgetName,this._mouseUpDelegate);c.browser.safari||a.preventDefault();return a.originalEvent.mouseHandled=true}},_mouseMove:function(a){if(c.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._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){c(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(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
</ins><span class="cx">Property changes on: trunk/wp-includes/js/jquery/ui.mouse.js
</span><span class="cx">___________________________________________________________________
</span><span class="cx">Name: svn:eol-style
</span><span class="cx">   + native
</span></span></pre></div>
<a id="trunkwpincludesjsjqueryuipositionjs"></a>
<div class="addfile"><h4>Added: trunk/wp-includes/js/jquery/ui.position.js (0 => 15711)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/jquery/ui.position.js                                (rev 0)
+++ trunk/wp-includes/js/jquery/ui.position.js        2010-10-04 16:19:18 UTC (rev 15711)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+/*
+ * jQuery UI Position 1.8.5
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Position
+ */
+(function(c){c.ui=c.ui||{};var n=/left|center|right/,o=/top|center|bottom/,t=c.fn.position,u=c.fn.offset;c.fn.position=function(b){if(!b||!b.of)return t.apply(this,arguments);b=c.extend({},b);var a=c(b.of),d=a[0],g=(b.collision||&quot;flip&quot;).split(&quot; &quot;),e=b.offset?b.offset.split(&quot; &quot;):[0,0],h,k,j;if(d.nodeType===9){h=a.width();k=a.height();j={top:0,left:0}}else if(d.scrollTo&amp;&amp;d.document){h=a.width();k=a.height();j={top:a.scrollTop(),left:a.scrollLeft()}}else if(d.preventDefault){b.at=&quot;left top&quot;;h=k=0;j=
+{top:b.of.pageY,left:b.of.pageX}}else{h=a.outerWidth();k=a.outerHeight();j=a.offset()}c.each([&quot;my&quot;,&quot;at&quot;],function(){var f=(b[this]||&quot;&quot;).split(&quot; &quot;);if(f.length===1)f=n.test(f[0])?f.concat([&quot;center&quot;]):o.test(f[0])?[&quot;center&quot;].concat(f):[&quot;center&quot;,&quot;center&quot;];f[0]=n.test(f[0])?f[0]:&quot;center&quot;;f[1]=o.test(f[1])?f[1]:&quot;center&quot;;b[this]=f});if(g.length===1)g[1]=g[0];e[0]=parseInt(e[0],10)||0;if(e.length===1)e[1]=e[0];e[1]=parseInt(e[1],10)||0;if(b.at[0]===&quot;right&quot;)j.left+=h;else if(b.at[0]===&quot;center&quot;)j.left+=h/
+2;if(b.at[1]===&quot;bottom&quot;)j.top+=k;else if(b.at[1]===&quot;center&quot;)j.top+=k/2;j.left+=e[0];j.top+=e[1];return this.each(function(){var f=c(this),l=f.outerWidth(),m=f.outerHeight(),p=parseInt(c.curCSS(this,&quot;marginLeft&quot;,true))||0,q=parseInt(c.curCSS(this,&quot;marginTop&quot;,true))||0,v=l+p+parseInt(c.curCSS(this,&quot;marginRight&quot;,true))||0,w=m+q+parseInt(c.curCSS(this,&quot;marginBottom&quot;,true))||0,i=c.extend({},j),r;if(b.my[0]===&quot;right&quot;)i.left-=l;else if(b.my[0]===&quot;center&quot;)i.left-=l/2;if(b.my[1]===&quot;bottom&quot;)i.top-=m;else if(b.my[1]===
+&quot;center&quot;)i.top-=m/2;i.left=parseInt(i.left);i.top=parseInt(i.top);r={left:i.left-p,top:i.top-q};c.each([&quot;left&quot;,&quot;top&quot;],function(s,x){c.ui.position[g[s]]&amp;&amp;c.ui.position[g[s]][x](i,{targetWidth:h,targetHeight:k,elemWidth:l,elemHeight:m,collisionPosition:r,collisionWidth:v,collisionHeight:w,offset:e,my:b.my,at:b.at})});c.fn.bgiframe&amp;&amp;f.bgiframe();f.offset(c.extend(i,{using:b.using}))})};c.ui.position={fit:{left:function(b,a){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();
+b.left=d&gt;0?b.left-d:Math.max(b.left-a.collisionPosition.left,b.left)},top:function(b,a){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();b.top=d&gt;0?b.top-d:Math.max(b.top-a.collisionPosition.top,b.top)}},flip:{left:function(b,a){if(a.at[0]!==&quot;center&quot;){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();var g=a.my[0]===&quot;left&quot;?-a.elemWidth:a.my[0]===&quot;right&quot;?a.elemWidth:0,e=a.at[0]===&quot;left&quot;?a.targetWidth:-a.targetWidth,h=-2*a.offset[0];
+b.left+=a.collisionPosition.left&lt;0?g+e+h:d&gt;0?g+e+h:0}},top:function(b,a){if(a.at[1]!==&quot;center&quot;){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();var g=a.my[1]===&quot;top&quot;?-a.elemHeight:a.my[1]===&quot;bottom&quot;?a.elemHeight:0,e=a.at[1]===&quot;top&quot;?a.targetHeight:-a.targetHeight,h=-2*a.offset[1];b.top+=a.collisionPosition.top&lt;0?g+e+h:d&gt;0?g+e+h:0}}}};if(!c.offset.setOffset){c.offset.setOffset=function(b,a){if(/static/.test(c.curCSS(b,&quot;position&quot;)))b.style.position=&quot;relative&quot;;var d=
+c(b),g=d.offset(),e=parseInt(c.curCSS(b,&quot;top&quot;,true),10)||0,h=parseInt(c.curCSS(b,&quot;left&quot;,true),10)||0;g={top:a.top-g.top+e,left:a.left-g.left+h};&quot;using&quot;in a?a.using.call(b,g):d.css(g)};c.fn.offset=function(b){var a=this[0];if(!a||!a.ownerDocument)return null;if(b)return this.each(function(){c.offset.setOffset(this,b)});return u.call(this)}}})(jQuery);
</ins><span class="cx">Property changes on: trunk/wp-includes/js/jquery/ui.position.js
</span><span class="cx">___________________________________________________________________
</span><span class="cx">Name: svn:eol-style
</span><span class="cx">   + native
</span></span></pre></div>
<a id="trunkwpincludesjsjqueryuiresizablejs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/jquery/ui.resizable.js (15710 => 15711)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/jquery/ui.resizable.js        2010-10-04 15:32:54 UTC (rev 15710)
+++ trunk/wp-includes/js/jquery/ui.resizable.js        2010-10-04 16:19:18 UTC (rev 15711)
</span><span class="lines">@@ -1,13 +1,47 @@
</span><span class="cx"> /*
</span><del>- * jQuery UI Resizable 1.7.3
</del><ins>+ * jQuery UI Resizable 1.8.5
</ins><span class="cx">  *
</span><del>- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
</del><ins>+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
</ins><span class="cx">  *
</span><span class="cx">  * http://docs.jquery.com/UI/Resizables
</span><span class="cx">  *
</span><span class="cx">  * Depends:
</span><del>- *        ui.core.js
</del><ins>+ *        jquery.ui.core.js
+ *        jquery.ui.mouse.js
+ *        jquery.ui.widget.js
</ins><span class="cx">  */
</span><del>-(function(c){c.widget(&quot;ui.resizable&quot;,c.extend({},c.ui.mouse,{_init:function(){var e=this,j=this.options;this.element.addClass(&quot;ui-resizable&quot;);c.extend(this,{_aspectRatio:!!(j.aspectRatio),aspectRatio:j.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:j.helper||j.ghost||j.animate?j.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;c.browser.opera){this.element.css({position:&quot;relative&quot;,top:&quot;auto&quot;,left:&quot;auto&quot;})}this.element.wrap(c('&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=j.handles||(!c(&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 k=this.handles.split(&quot;,&quot;);this.handles={};for(var f=0;f&lt;k.length;f++){var h=c.trim(k[f]),d=&quot;ui-resizable-&quot;+h;var g=c('&lt;div class=&quot;ui-resizable-handle '+d+'&quot;&gt;&lt;/div&gt;');if(/sw|se|ne|nw/.test(h)){g.css({zIndex:++j.zIndex})}if(&quot;se&quot;==h){g.addClass(&quot;ui-icon ui-icon-gripsmall-diagonal-se&quot;)}this.handles[h]=&quot;.ui-resizable-&quot;+h;this.element.append(g)}}this._renderAxis=function(p){p=p||this.element;for(var m in this.handles){if(this.handles[m].constructor==String){this.handles[m]=c(this.handles[m],this.element).show()}if(this.elementIsWrapper&amp;&amp;this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var n=c(this.handles[m],this.element),o=0;o=/sw|ne|nw|se|n|s/.test(m)?n.outerHeight():n.outerWidth();var l=[&quot;padding&quot;,/ne|nw|n/.test(m)?&quot;Top&quot;:/se|sw|s/.test(m)?&quot;Bottom&quot;:/^e$/.test(m)?&quot;Right&quot;:&quot;Left&quot;].join(&quot;&quot;);p.css(l,o);this._proportionallyResize()}if(!c(this.handles[m]).length){continue}}};this._renderAxis(this.element);this._handles=c(&quot;.ui-resizable-handle&quot;,this.element).disableSelection();this._handles.mouseover(function(){if(!e.resizing){if(this.className){var i=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}e.axis=i&amp;&amp;i[1]?i[1]:&quot;se&quot;}});if(j.autoHide){this._handles.hide();c(this.element).addClass(&quot;ui-resizable-autohide&quot;).hover(function(){c(this).removeClass(&quot;ui-resizable-autohide&quot;);e._handles.show()},function(){if(!e.resizing){c(this).addClass(&quot;ui-resizable-autohide&quot;);e._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var d=function(f){c(f).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){d(this.element);var e=this.element;e.parent().append(this.originalElement.css({position:e.css(&quot;position&quot;),width:e.outerWidth(),height:e.outerHeight(),top:e.css(&quot;top&quot;),left:e.css(&quot;left&quot;)})).end().remove()}this.originalElement.css(&quot;resize&quot;,this.originalResizeStyle);d(this.originalElement)},_mouseCapture:function(e){var f=false;for(var d in this.handles){if(c(this.handles[d])[0]==e.target){f=true}}return this.options.disabled||!!f},_mouseStart:function(f){var i=this.options,e=this.element.position(),d=this.element;this.resizing=true;this.documentScroll={top:c(document).scrollTop(),left:c(document).scrollLeft()};if(d.is(&quot;.ui-draggable&quot;)||(/absolute/).test(d.css(&quot;position&quot;))){d.css({position:&quot;absolute&quot;,top:e.top,left:e.left})}if(c.browser.opera&amp;&amp;(/relative/).test(d.css(&quot;position&quot;))){d.css({position:&quot;relative&quot;,top:&quot;auto&quot;,left:&quot;auto&quot;})}this._renderProxy();var j=b(this.helper.css(&quot;left&quot;)),g=b(this.helper.css(&quot;top&quot;));if(i.containment){j+=c(i.containment).scrollLeft()||0;g+=c(i.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:j,top:g};this.size=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalSize=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalPosition={left:j,top:g};this.sizeDiff={width:d.outerWidth()-d.width(),height:d.outerHeight()-d.height()};this.originalMousePosition={left:f.pageX,top:f.pageY};this.aspectRatio=(typeof i.aspectRatio==&quot;number&quot;)?i.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);var h=c(&quot;.ui-resizable-&quot;+this.axis).css(&quot;cursor&quot;);c(&quot;body&quot;).css(&quot;cursor&quot;,h==&quot;auto&quot;?this.axis+&quot;-resize&quot;:h);d.addClass(&quot;ui-resizable-resizing&quot;);this._propagate(&quot;start&quot;,f);return true},_mouseDrag:function(d){var g=this.helper,f=this.options,l={},p=this,i=this.originalMousePosition,m=this.axis;var q=(d.pageX-i.left)||0,n=(d.pageY-i.top)||0;var h=this._change[m];if(!h){return false}var k=h.apply(this,[d,q,n]),j=c.browser.msie&amp;&amp;c.browser.version&lt;7,e=this.sizeDiff;if(this._aspectRatio||d.shiftKey){k=this._updateRatio(k,d)}k=this._respectSize(k,d);this._propagate(&quot;resize&quot;,d);g.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(k);this._trigger(&quot;resize&quot;,d,this.ui());return false},_mouseStop:function(g){this.resizing=false;var h=this.options,l=this;if(this._helper){var f=this._proportionallyResizeElements,d=f.length&amp;&amp;(/textarea/i).test(f[0].nodeName),e=d&amp;&amp;c.ui.hasScroll(f[0],&quot;left&quot;)?0:l.sizeDiff.height,j=d?0:l.sizeDiff.width;var m={width:(l.size.width-j),height:(l.size.height-e)},i=(parseInt(l.element.css(&quot;left&quot;),10)+(l.position.left-l.originalPosition.left))||null,k=(parseInt(l.element.css(&quot;top&quot;),10)+(l.position.top-l.originalPosition.top))||null;if(!h.animate){this.element.css(c.extend(m,{top:k,left:i}))}l.helper.height(l.size.height);l.helper.width(l.size.width);if(this._helper&amp;&amp;!h.animate){this._proportionallyResize()}}c(&quot;body&quot;).css(&quot;cursor&quot;,&quot;auto&quot;);this.element.removeClass(&quot;ui-resizable-resizing&quot;);this._propagate(&quot;stop&quot;,g);if(this._helper){this.helper.remove()}return false},_updateCache:function(d){var e=this.options;this.offset=this.helper.offset();if(a(d.left)){this.position.left=d.left}if(a(d.top)){this.position.top=d.top}if(a(d.height)){this.size.height=d.height}if(a(d.width)){this.size.width=d.width}},_updateRatio:function(g,f){var h=this.options,i=this.position,e=this.size,d=this.axis;if(g.height){g.width=(e.height*this.aspectRatio)}else{if(g.width){g.height=(e.width/this.aspectRatio)}}if(d==&quot;sw&quot;){g.left=i.left+(e.width-g.width);g.top=null}if(d==&quot;nw&quot;){g.top=i.top+(e.height-g.height);g.left=i.left+(e.width-g.width)}return g},_respectSize:function(k,f){var i=this.helper,h=this.options,q=this._aspectRatio||f.shiftKey,p=this.axis,s=a(k.width)&amp;&amp;h.maxWidth&amp;&amp;(h.maxWidth&lt;k.width),l=a(k.height)&amp;&amp;h.maxHeight&amp;&amp;(h.maxHeight&lt;k.height),g=a(k.width)&amp;&amp;h.minWidth&amp;&amp;(h.minWidth&gt;k.width),r=a(k.height)&amp;&amp;h.minHeight&amp;&amp;(h.minHeight&gt;k.height);if(g){k.width=h.minWidth}if(r){k.height=h.minHeight}if(s){k.width=h.maxWidth}if(l){k.height=h.maxHeight}var e=this.originalPosition.left+this.originalSize.width,n=this.position.top+this.size.height;var j=/sw|nw|w/.test(p),d=/nw|ne|n/.test(p);if(g&amp;&amp;j){k.left=e-h.minWidth}if(s&amp;&amp;j){k.left=e-h.maxWidth}if(r&amp;&amp;d){k.top=n-h.minHeight}if(l&amp;&amp;d){k.top=n-h.maxHeight}var m=!k.width&amp;&amp;!k.height;if(m&amp;&amp;!k.left&amp;&amp;k.top){k.top=null}else{if(m&amp;&amp;!k.top&amp;&amp;k.left){k.left=null}}return k},_proportionallyResize:function(){var j=this.options;if(!this._proportionallyResizeElements.length){return}var f=this.helper||this.element;for(var e=0;e&lt;this._proportionallyResizeElements.length;e++){var g=this._proportionallyResizeElements[e];if(!this.borderDif){var d=[g.css(&quot;borderTopWidth&quot;),g.css(&quot;borderRightWidth&quot;),g.css(&quot;borderBottomWidth&quot;),g.css(&quot;borderLeftWidth&quot;)],h=[g.css(&quot;paddingTop&quot;),g.css(&quot;paddingRight&quot;),g.css(&quot;paddingBottom&quot;),g.css(&quot;paddingLeft&quot;)];this.borderDif=c.map(d,function(k,m){var l=parseInt(k,10)||0,n=parseInt(h[m],10)||0;return l+n})}if(c.browser.msie&amp;&amp;!(!(c(f).is(&quot;:hidden&quot;)||c(f).parents(&quot;:hidden&quot;).length))){continue}g.css({height:(f.height()-this.borderDif[0]-this.borderDif[2])||0,width:(f.width()-this.borderDif[1]-this.borderDif[3])||0})}},_renderProxy:function(){var e=this.element,h=this.options;this.elementOffset=e.offset();if(this._helper){this.helper=this.helper||c('&lt;div style=&quot;overflow:hidden;&quot;&gt;&lt;/div&gt;');var d=c.browser.msie&amp;&amp;c.browser.version&lt;7,f=(d?1:0),g=(d?2:-1);this.helper.addClass(this._helper).css({width:this.element.outerWidth()+g,height:this.element.outerHeight()+g,position:&quot;absolute&quot;,left:this.elementOffset.left-f+&quot;px&quot;,top:this.elementOffset.top-f+&quot;px&quot;,zIndex:++h.zIndex});this.helper.appendTo(&quot;body&quot;).disableSelection()}else{this.helper=this.element}},_change:{e:function(f,e,d){return{width:this.originalSize.width+e}},w:function(g,e,d){var i=this.options,f=this.originalSize,h=this.originalPosition;return{left:h.left+e,width:f.width-e}},n:function(g,e,d){var i=this.options,f=this.originalSize,h=this.originalPosition;return{top:h.top+d,height:f.height-d}},s:function(f,e,d){return{height:this.originalSize.height+d}},se:function(f,e,d){return c.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[f,e,d]))},sw:function(f,e,d){return c.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[f,e,d]))},ne:function(f,e,d){return c.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[f,e,d]))},nw:function(f,e,d){return c.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[f,e,d]))}},_propagate:function(e,d){c.ui.plugin.call(this,e,[d,this.ui()]);(e!=&quot;resize&quot;&amp;&amp;this._trigger(e,d,this.ui()))},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}));c.extend(c.ui.resizable,{version:&quot;1.7.3&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}});c.ui.plugin.add(&quot;resizable&quot;,&quot;alsoResize&quot;,{start:function(e,f){var d=c(this).data(&quot;resizable&quot;),g=d.options;_store=function(h){c(h).each(function(){c(this).data(&quot;resizable-alsoresize&quot;,{width:parseInt(c(this).width(),10),height:parseInt(c(this).height(),10),left:parseInt(c(this).css(&quot;left&quot;),10),top:parseInt(c(this).css(&quot;top&quot;),10)})})};if(typeof(g.alsoResize)==&quot;object&quot;&amp;&amp;!g.alsoResize.parentNode){if(g.alsoResize.length){g.alsoResize=g.alsoResize[0];_store(g.alsoResize)}else{c.each(g.alsoResize,function(h,i){_store(h)})}}else{_store(g.alsoResize)}},resize:function(f,h){var e=c(this).data(&quot;resizable&quot;),i=e.options,g=e.originalSize,k=e.originalPosition;var j={height:(e.size.height-g.height)||0,width:(e.size.width-g.width)||0,top:(e.position.top-k.top)||0,left:(e.position.left-k.left)||0},d=function(l,m){c(l).each(function(){var p=c(this),q=c(this).data(&quot;resizable-alsoresize&quot;),o={},n=m&amp;&amp;m.length?m:[&quot;width&quot;,&quot;height&quot;,&quot;top&quot;,&quot;left&quot;];c.each(n||[&quot;width&quot;,&quot;height&quot;,&quot;top&quot;,&quot;left&quot;],function(r,t){var s=(q[t]||0)+(j[t]||0);if(s&amp;&amp;s&gt;=0){o[t]=s||null}});if(/relative/.test(p.css(&quot;position&quot;))&amp;&amp;c.browser.opera){e._revertToRelativePosition=true;p.css({position:&quot;absolute&quot;,top:&quot;auto&quot;,left:&quot;auto&quot;})}p.css(o)})};if(typeof(i.alsoResize)==&quot;object&quot;&amp;&amp;!i.alsoResize.nodeType){c.each(i.alsoResize,function(l,m){d(l,m)})}else{d(i.alsoResize)}},stop:function(e,f){var d=c(this).data(&quot;resizable&quot;);if(d._revertToRelativePosition&amp;&amp;c.browser.opera){d._revertToRelativePosition=false;el.css({position:&quot;relative&quot;})}c(this).removeData(&quot;resizable-alsoresize-start&quot;)}});c.ui.plugin.add(&quot;resizable&quot;,&quot;animate&quot;,{stop:function(h,m){var n=c(this).data(&quot;resizable&quot;),i=n.options;var g=n._proportionallyResizeElements,d=g.length&amp;&amp;(/textarea/i).test(g[0].nodeName),e=d&amp;&amp;c.ui.hasScroll(g[0],&quot;left&quot;)?0:n.sizeDiff.height,k=d?0:n.sizeDiff.width;var f={width:(n.size.width-k),height:(n.size.height-e)},j=(parseInt(n.element.css(&quot;left&quot;),10)+(n.position.left-n.originalPosition.left))||null,l=(parseInt(n.element.css(&quot;top&quot;),10)+(n.position.top-n.originalPosition.top))||null;n.element.animate(c.extend(f,l&amp;&amp;j?{top:l,left:j}:{}),{duration:i.animateDuration,easing:i.animateEasing,step:function(){var o={width:parseInt(n.element.css(&quot;width&quot;),10),height:parseInt(n.element.css(&quot;height&quot;),10),top:parseInt(n.element.css(&quot;top&quot;),10),left:parseInt(n.element.css(&quot;left&quot;),10)};if(g&amp;&amp;g.length){c(g[0]).css({width:o.width,height:o.height})}n._updateCache(o);n._propagate(&quot;resize&quot;,h)}})}});c.ui.plugin.add(&quot;resizable&quot;,&quot;containment&quot;,{start:function(e,q){var s=c(this).data(&quot;resizable&quot;),i=s.options,k=s.element;var f=i.containment,j=(f instanceof c)?f.get(0):(/parent/.test(f))?k.parent().get(0):f;if(!j){return}s.containerElement=c(j);if(/document/.test(f)||f==document){s.containerOffset={left:0,top:0};s.containerPosition={left:0,top:0};s.parentData={element:c(document),left:0,top:0,width:c(document).width(),height:c(document).height()||document.body.parentNode.scrollHeight}}else{var m=c(j),h=[];c([&quot;Top&quot;,&quot;Right&quot;,&quot;Left&quot;,&quot;Bottom&quot;]).each(function(p,o){h[p]=b(m.css(&quot;padding&quot;+o))});s.containerOffset=m.offset();s.containerPosition=m.position();s.containerSize={height:(m.innerHeight()-h[3]),width:(m.innerWidth()-h[1])};var n=s.containerOffset,d=s.containerSize.height,l=s.containerSize.width,g=(c.ui.hasScroll(j,&quot;left&quot;)?j.scrollWidth:l),r=(c.ui.hasScroll(j)?j.scrollHeight:d);s.parentData={element:j,left:n.left,top:n.top,width:g,height:r}}},resize:function(f,p){var s=c(this).data(&quot;resizable&quot;),h=s.options,e=s.containerSize,n=s.containerOffset,l=s.size,m=s.position,q=s._aspectRatio||f.shiftKey,d={top:0,left:0},g=s.containerElement;if(g[0]!=document&amp;&amp;(/static/).test(g.css(&quot;position&quot;))){d=n}if(m.left&lt;(s._helper?n.left:0)){s.size.width=s.size.width+(s._helper?(s.position.left-n.left):(s.position.left-d.left));if(q){s.size.height=s.size.width/h.aspectRatio}s.position.left=h.helper?n.left:0}if(m.top&lt;(s._helper?n.top:0)){s.size.height=s.size.height+(s._helper?(s.position.top-n.top):s.position.top);if(q){s.size.width=s.size.height*h.aspectRatio}s.position.top=s._helper?n.top:0}s.offset.left=s.parentData.left+s.position.left;s.offset.top=s.parentData.top+s.position.top;var k=Math.abs((s._helper?s.offset.left-d.left:(s.offset.left-d.left))+s.sizeDiff.width),r=Math.abs((s._helper?s.offset.top-d.top:(s.offset.top-n.top))+s.sizeDiff.height);var j=s.containerElement.get(0)==s.element.parent().get(0),i=/relative|absolute/.test(s.containerElement.css(&quot;position&quot;));if(j&amp;&amp;i){k-=s.parentData.left}if(k+s.size.width&gt;=s.parentData.width){s.size.width=s.parentData.width-k;if(q){s.size.height=s.size.width/s.aspectRatio}}if(r+s.size.height&gt;=s.parentData.height){s.size.height=s.parentData.height-r;if(q){s.size.width=s.size.height*s.aspectRatio}}},stop:function(e,m){var p=c(this).data(&quot;resizable&quot;),f=p.options,k=p.position,l=p.containerOffset,d=p.containerPosition,g=p.containerElement;var i=c(p.helper),q=i.offset(),n=i.outerWidth()-p.sizeDiff.width,j=i.outerHeight()-p.sizeDiff.height;if(p._helper&amp;&amp;!f.animate&amp;&amp;(/relative/).test(g.css(&quot;position&quot;))){c(this).css({left:q.left-d.left-l.left,width:n,height:j})}if(p._helper&amp;&amp;!f.animate&amp;&amp;(/static/).test(g.css(&quot;position&quot;))){c(this).css({left:q.left-d.left-l.left,width:n,height:j})}}});c.ui.plugin.add(&quot;resizable&quot;,&quot;ghost&quot;,{start:function(f,g){var d=c(this).data(&quot;resizable&quot;),h=d.options,e=d.size;d.ghost=d.originalElement.clone();d.ghost.css({opacity:0.25,display:&quot;block&quot;,position:&quot;relative&quot;,height:e.height,width:e.width,margin:0,left:0,top:0}).addClass(&quot;ui-resizable-ghost&quot;).addClass(typeof h.ghost==&quot;string&quot;?h.ghost:&quot;&quot;);d.ghost.appendTo(d.helper)},resize:function(e,f){var d=c(this).data(&quot;resizable&quot;),g=d.options;if(d.ghost){d.ghost.css({position:&quot;relative&quot;,height:d.size.height,width:d.size.width})}},stop:function(e,f){var d=c(this).data(&quot;resizable&quot;),g=d.options;if(d.ghost&amp;&amp;d.helper){d.helper.get(0).removeChild(d.ghost.get(0))}}});c.ui.plugin.add(&quot;resizable&quot;,&quot;grid&quot;,{resize:function(d,l){var n=c(this).data(&quot;resizable&quot;),g=n.options,j=n.size,h=n.originalSize,i=n.originalPosition,m=n.axis,k=g._aspectRatio||d.shiftKey;g.grid=typeof g.grid==&quot;number&quot;?[g.grid,g.grid]:g.grid;var f=Math.round((j.width-h.width)/(g.grid[0]||1))*(g.grid[0]||1),e=Math.round((j.height-h.height)/(g.grid[1]||1))*(g.grid[1]||1);if(/^(se|s|e)$/.test(m)){n.size.width=h.width+f;n.size.height=h.height+e}else{if(/^(ne)$/.test(m)){n.size.width=h.width+f;n.size.height=h.height+e;n.position.top=i.top-e}else{if(/^(sw)$/.test(m)){n.size.width=h.width+f;n.size.height=h.height+e;n.position.left=i.left-f}else{n.size.width=h.width+f;n.size.height=h.height+e;n.position.top=i.top-e;n.position.left=i.left-f}}}}});var b=function(d){return parseInt(d,10)||0};var a=function(d){return !isNaN(parseInt(d,10))}})(jQuery);
</del><ins>+(function(e){e.widget(&quot;ui.resizable&quot;,e.ui.mouse,{widgetEventPrefix:&quot;resize&quot;,options:{alsoResize:false,animate:false,animateDuration:&quot;slow&quot;,animateEasing:&quot;swing&quot;,aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:&quot;e,s,se&quot;,helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var b=this,a=this.options;this.element.addClass(&quot;ui-resizable&quot;);e.extend(this,{_aspectRatio:!!a.aspectRatio,aspectRatio:a.aspectRatio,originalElement:this.element,
+_proportionallyResizeElements:[],_helper:a.helper||a.ghost||a.animate?a.helper||&quot;ui-resizable-helper&quot;:null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css(&quot;position&quot;))&amp;&amp;e.browser.opera&amp;&amp;this.element.css({position:&quot;relative&quot;,top:&quot;auto&quot;,left:&quot;auto&quot;});this.element.wrap(e('&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=a.handles||(!e(&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 c=this.handles.split(&quot;,&quot;);this.handles={};for(var d=0;d&lt;c.length;d++){var f=e.trim(c[d]),g=e('&lt;div class=&quot;ui-resizable-handle '+(&quot;ui-resizable-&quot;+f)+'&quot;&gt;&lt;/div&gt;');/sw|se|ne|nw/.test(f)&amp;&amp;g.css({zIndex:++a.zIndex});&quot;se&quot;==f&amp;&amp;g.addClass(&quot;ui-icon ui-icon-gripsmall-diagonal-se&quot;);this.handles[f]=&quot;.ui-resizable-&quot;+f;this.element.append(g)}}this._renderAxis=function(h){h=h||this.element;for(var i in this.handles){if(this.handles[i].constructor==
+String)this.handles[i]=e(this.handles[i],this.element).show();if(this.elementIsWrapper&amp;&amp;this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var j=e(this.handles[i],this.element),k=0;k=/sw|ne|nw|se|n|s/.test(i)?j.outerHeight():j.outerWidth();j=[&quot;padding&quot;,/ne|nw|n/.test(i)?&quot;Top&quot;:/se|sw|s/.test(i)?&quot;Bottom&quot;:/^e$/.test(i)?&quot;Right&quot;:&quot;Left&quot;].join(&quot;&quot;);h.css(j,k);this._proportionallyResize()}e(this.handles[i])}};this._renderAxis(this.element);this._handles=e(&quot;.ui-resizable-handle&quot;,this.element).disableSelection();
+this._handles.mouseover(function(){if(!b.resizing){if(this.className)var h=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);b.axis=h&amp;&amp;h[1]?h[1]:&quot;se&quot;}});if(a.autoHide){this._handles.hide();e(this.element).addClass(&quot;ui-resizable-autohide&quot;).hover(function(){e(this).removeClass(&quot;ui-resizable-autohide&quot;);b._handles.show()},function(){if(!b.resizing){e(this).addClass(&quot;ui-resizable-autohide&quot;);b._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var b=function(c){e(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.after(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;)})).remove()}this.originalElement.css(&quot;resize&quot;,this.originalResizeStyle);b(this.originalElement);return this},_mouseCapture:function(b){var a=false;for(var c in this.handles)if(e(this.handles[c])[0]==b.target)a=true;return!this.options.disabled&amp;&amp;a},_mouseStart:function(b){var a=this.options,c=this.element.position(),
+d=this.element;this.resizing=true;this.documentScroll={top:e(document).scrollTop(),left:e(document).scrollLeft()};if(d.is(&quot;.ui-draggable&quot;)||/absolute/.test(d.css(&quot;position&quot;)))d.css({position:&quot;absolute&quot;,top:c.top,left:c.left});e.browser.opera&amp;&amp;/relative/.test(d.css(&quot;position&quot;))&amp;&amp;d.css({position:&quot;relative&quot;,top:&quot;auto&quot;,left:&quot;auto&quot;});this._renderProxy();c=m(this.helper.css(&quot;left&quot;));var f=m(this.helper.css(&quot;top&quot;));if(a.containment){c+=e(a.containment).scrollLeft()||0;f+=e(a.containment).scrollTop()||0}this.offset=
+this.helper.offset();this.position={left:c,top:f};this.size=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalSize=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalPosition={left:c,top:f};this.sizeDiff={width:d.outerWidth()-d.width(),height:d.outerHeight()-d.height()};this.originalMousePosition={left:b.pageX,top:b.pageY};this.aspectRatio=typeof a.aspectRatio==&quot;number&quot;?a.aspectRatio:
+this.originalSize.width/this.originalSize.height||1;a=e(&quot;.ui-resizable-&quot;+this.axis).css(&quot;cursor&quot;);e(&quot;body&quot;).css(&quot;cursor&quot;,a==&quot;auto&quot;?this.axis+&quot;-resize&quot;:a);d.addClass(&quot;ui-resizable-resizing&quot;);this._propagate(&quot;start&quot;,b);return true},_mouseDrag:function(b){var a=this.helper,c=this.originalMousePosition,d=this._change[this.axis];if(!d)return false;c=d.apply(this,[b,b.pageX-c.left||0,b.pageY-c.top||0]);if(this._aspectRatio||b.shiftKey)c=this._updateRatio(c,b);c=this._respectSize(c,b);this._propagate(&quot;resize&quot;,
+b);a.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;});!this._helper&amp;&amp;this._proportionallyResizeElements.length&amp;&amp;this._proportionallyResize();this._updateCache(c);this._trigger(&quot;resize&quot;,b,this.ui());return false},_mouseStop:function(b){this.resizing=false;var a=this.options,c=this;if(this._helper){var d=this._proportionallyResizeElements,f=d.length&amp;&amp;/textarea/i.test(d[0].nodeName);d=f&amp;&amp;e.ui.hasScroll(d[0],&quot;left&quot;)?0:c.sizeDiff.height;
+f={width:c.size.width-(f?0:c.sizeDiff.width),height:c.size.height-d};d=parseInt(c.element.css(&quot;left&quot;),10)+(c.position.left-c.originalPosition.left)||null;var g=parseInt(c.element.css(&quot;top&quot;),10)+(c.position.top-c.originalPosition.top)||null;a.animate||this.element.css(e.extend(f,{top:g,left:d}));c.helper.height(c.size.height);c.helper.width(c.size.width);this._helper&amp;&amp;!a.animate&amp;&amp;this._proportionallyResize()}e(&quot;body&quot;).css(&quot;cursor&quot;,&quot;auto&quot;);this.element.removeClass(&quot;ui-resizable-resizing&quot;);this._propagate(&quot;stop&quot;,
+b);this._helper&amp;&amp;this.helper.remove();return false},_updateCache:function(b){this.offset=this.helper.offset();if(l(b.left))this.position.left=b.left;if(l(b.top))this.position.top=b.top;if(l(b.height))this.size.height=b.height;if(l(b.width))this.size.width=b.width},_updateRatio:function(b){var a=this.position,c=this.size,d=this.axis;if(b.height)b.width=c.height*this.aspectRatio;else if(b.width)b.height=c.width/this.aspectRatio;if(d==&quot;sw&quot;){b.left=a.left+(c.width-b.width);b.top=null}if(d==&quot;nw&quot;){b.top=
+a.top+(c.height-b.height);b.left=a.left+(c.width-b.width)}return b},_respectSize:function(b){var a=this.options,c=this.axis,d=l(b.width)&amp;&amp;a.maxWidth&amp;&amp;a.maxWidth&lt;b.width,f=l(b.height)&amp;&amp;a.maxHeight&amp;&amp;a.maxHeight&lt;b.height,g=l(b.width)&amp;&amp;a.minWidth&amp;&amp;a.minWidth&gt;b.width,h=l(b.height)&amp;&amp;a.minHeight&amp;&amp;a.minHeight&gt;b.height;if(g)b.width=a.minWidth;if(h)b.height=a.minHeight;if(d)b.width=a.maxWidth;if(f)b.height=a.maxHeight;var i=this.originalPosition.left+this.originalSize.width,j=this.position.top+this.size.height,
+k=/sw|nw|w/.test(c);c=/nw|ne|n/.test(c);if(g&amp;&amp;k)b.left=i-a.minWidth;if(d&amp;&amp;k)b.left=i-a.maxWidth;if(h&amp;&amp;c)b.top=j-a.minHeight;if(f&amp;&amp;c)b.top=j-a.maxHeight;if((a=!b.width&amp;&amp;!b.height)&amp;&amp;!b.left&amp;&amp;b.top)b.top=null;else if(a&amp;&amp;!b.top&amp;&amp;b.left)b.left=null;return b},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var b=this.helper||this.element,a=0;a&lt;this._proportionallyResizeElements.length;a++){var c=this._proportionallyResizeElements[a];if(!this.borderDif){var d=[c.css(&quot;borderTopWidth&quot;),
+c.css(&quot;borderRightWidth&quot;),c.css(&quot;borderBottomWidth&quot;),c.css(&quot;borderLeftWidth&quot;)],f=[c.css(&quot;paddingTop&quot;),c.css(&quot;paddingRight&quot;),c.css(&quot;paddingBottom&quot;),c.css(&quot;paddingLeft&quot;)];this.borderDif=e.map(d,function(g,h){g=parseInt(g,10)||0;h=parseInt(f[h],10)||0;return g+h})}e.browser.msie&amp;&amp;(e(b).is(&quot;:hidden&quot;)||e(b).parents(&quot;:hidden&quot;).length)||c.css({height:b.height()-this.borderDif[0]-this.borderDif[2]||0,width:b.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var b=this.options;this.elementOffset=
+this.element.offset();if(this._helper){this.helper=this.helper||e('&lt;div style=&quot;overflow:hidden;&quot;&gt;&lt;/div&gt;');var a=e.browser.msie&amp;&amp;e.browser.version&lt;7,c=a?1:0;a=a?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+a,height:this.element.outerHeight()+a,position:&quot;absolute&quot;,left:this.elementOffset.left-c+&quot;px&quot;,top:this.elementOffset.top-c+&quot;px&quot;,zIndex:++b.zIndex});this.helper.appendTo(&quot;body&quot;).disableSelection()}else this.helper=this.element},_change:{e:function(b,a){return{width:this.originalSize.width+
+a}},w:function(b,a){return{left:this.originalPosition.left+a,width:this.originalSize.width-a}},n:function(b,a,c){return{top:this.originalPosition.top+c,height:this.originalSize.height-c}},s:function(b,a,c){return{height:this.originalSize.height+c}},se:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,a,c]))},sw:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,a,c]))},ne:function(b,a,c){return e.extend(this._change.n.apply(this,
+arguments),this._change.e.apply(this,[b,a,c]))},nw:function(b,a,c){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,a,c]))}},_propagate:function(b,a){e.ui.plugin.call(this,b,[a,this.ui()]);b!=&quot;resize&quot;&amp;&amp;this._trigger(b,a,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}}});e.extend(e.ui.resizable,
+{version:&quot;1.8.5&quot;});e.ui.plugin.add(&quot;resizable&quot;,&quot;alsoResize&quot;,{start:function(){var b=e(this).data(&quot;resizable&quot;).options,a=function(c){e(c).each(function(){var d=e(this);d.data(&quot;resizable-alsoresize&quot;,{width:parseInt(d.width(),10),height:parseInt(d.height(),10),left:parseInt(d.css(&quot;left&quot;),10),top:parseInt(d.css(&quot;top&quot;),10),position:d.css(&quot;position&quot;)})})};if(typeof b.alsoResize==&quot;object&quot;&amp;&amp;!b.alsoResize.parentNode)if(b.alsoResize.length){b.alsoResize=b.alsoResize[0];a(b.alsoResize)}else e.each(b.alsoResize,
+function(c){a(c)});else a(b.alsoResize)},resize:function(b,a){var c=e(this).data(&quot;resizable&quot;);b=c.options;var d=c.originalSize,f=c.originalPosition,g={height:c.size.height-d.height||0,width:c.size.width-d.width||0,top:c.position.top-f.top||0,left:c.position.left-f.left||0},h=function(i,j){e(i).each(function(){var k=e(this),q=e(this).data(&quot;resizable-alsoresize&quot;),p={},r=j&amp;&amp;j.length?j:k.parents(a.originalElement[0]).length?[&quot;width&quot;,&quot;height&quot;]:[&quot;width&quot;,&quot;height&quot;,&quot;top&quot;,&quot;left&quot;];e.each(r,function(n,o){if((n=
+(q[o]||0)+(g[o]||0))&amp;&amp;n&gt;=0)p[o]=n||null});if(e.browser.opera&amp;&amp;/relative/.test(k.css(&quot;position&quot;))){c._revertToRelativePosition=true;k.css({position:&quot;absolute&quot;,top:&quot;auto&quot;,left:&quot;auto&quot;})}k.css(p)})};typeof b.alsoResize==&quot;object&quot;&amp;&amp;!b.alsoResize.nodeType?e.each(b.alsoResize,function(i,j){h(i,j)}):h(b.alsoResize)},stop:function(){var b=e(this).data(&quot;resizable&quot;),a=b.options,c=function(d){e(d).each(function(){var f=e(this);f.css({position:f.data(&quot;resizable-alsoresize&quot;).position})})};if(b._revertToRelativePosition){b._revertToRelativePosition=
+false;typeof a.alsoResize==&quot;object&quot;&amp;&amp;!a.alsoResize.nodeType?e.each(a.alsoResize,function(d){c(d)}):c(a.alsoResize)}e(this).removeData(&quot;resizable-alsoresize&quot;)}});e.ui.plugin.add(&quot;resizable&quot;,&quot;animate&quot;,{stop:function(b){var a=e(this).data(&quot;resizable&quot;),c=a.options,d=a._proportionallyResizeElements,f=d.length&amp;&amp;/textarea/i.test(d[0].nodeName),g=f&amp;&amp;e.ui.hasScroll(d[0],&quot;left&quot;)?0:a.sizeDiff.height;f={width:a.size.width-(f?0:a.sizeDiff.width),height:a.size.height-g};g=parseInt(a.element.css(&quot;left&quot;),10)+(a.position.left-
+a.originalPosition.left)||null;var h=parseInt(a.element.css(&quot;top&quot;),10)+(a.position.top-a.originalPosition.top)||null;a.element.animate(e.extend(f,h&amp;&amp;g?{top:h,left:g}:{}),{duration:c.animateDuration,easing:c.animateEasing,step:function(){var i={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)};d&amp;&amp;d.length&amp;&amp;e(d[0]).css({width:i.width,height:i.height});a._updateCache(i);a._propagate(&quot;resize&quot;,
+b)}})}});e.ui.plugin.add(&quot;resizable&quot;,&quot;containment&quot;,{start:function(){var b=e(this).data(&quot;resizable&quot;),a=b.element,c=b.options.containment;if(a=c instanceof e?c.get(0):/parent/.test(c)?a.parent().get(0):c){b.containerElement=e(a);if(/document/.test(c)||c==document){b.containerOffset={left:0,top:0};b.containerPosition={left:0,top:0};b.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}}else{var d=e(a),f=[];e([&quot;Top&quot;,
+&quot;Right&quot;,&quot;Left&quot;,&quot;Bottom&quot;]).each(function(i,j){f[i]=m(d.css(&quot;padding&quot;+j))});b.containerOffset=d.offset();b.containerPosition=d.position();b.containerSize={height:d.innerHeight()-f[3],width:d.innerWidth()-f[1]};c=b.containerOffset;var g=b.containerSize.height,h=b.containerSize.width;h=e.ui.hasScroll(a,&quot;left&quot;)?a.scrollWidth:h;g=e.ui.hasScroll(a)?a.scrollHeight:g;b.parentData={element:a,left:c.left,top:c.top,width:h,height:g}}}},resize:function(b){var a=e(this).data(&quot;resizable&quot;),c=a.options,d=a.containerOffset,
+f=a.position;b=a._aspectRatio||b.shiftKey;var g={top:0,left:0},h=a.containerElement;if(h[0]!=document&amp;&amp;/static/.test(h.css(&quot;position&quot;)))g=d;if(f.left&lt;(a._helper?d.left:0)){a.size.width+=a._helper?a.position.left-d.left:a.position.left-g.left;if(b)a.size.height=a.size.width/c.aspectRatio;a.position.left=c.helper?d.left:0}if(f.top&lt;(a._helper?d.top:0)){a.size.height+=a._helper?a.position.top-d.top:a.position.top;if(b)a.size.width=a.size.height*c.aspectRatio;a.position.top=a._helper?d.top:0}a.offset.left=
+a.parentData.left+a.position.left;a.offset.top=a.parentData.top+a.position.top;c=Math.abs((a._helper?a.offset.left-g.left:a.offset.left-g.left)+a.sizeDiff.width);d=Math.abs((a._helper?a.offset.top-g.top:a.offset.top-d.top)+a.sizeDiff.height);f=a.containerElement.get(0)==a.element.parent().get(0);g=/relative|absolute/.test(a.containerElement.css(&quot;position&quot;));if(f&amp;&amp;g)c-=a.parentData.left;if(c+a.size.width&gt;=a.parentData.width){a.size.width=a.parentData.width-c;if(b)a.size.height=a.size.width/a.aspectRatio}if(d+
+a.size.height&gt;=a.parentData.height){a.size.height=a.parentData.height-d;if(b)a.size.width=a.size.height*a.aspectRatio}},stop:function(){var b=e(this).data(&quot;resizable&quot;),a=b.options,c=b.containerOffset,d=b.containerPosition,f=b.containerElement,g=e(b.helper),h=g.offset(),i=g.outerWidth()-b.sizeDiff.width;g=g.outerHeight()-b.sizeDiff.height;b._helper&amp;&amp;!a.animate&amp;&amp;/relative/.test(f.css(&quot;position&quot;))&amp;&amp;e(this).css({left:h.left-d.left-c.left,width:i,height:g});b._helper&amp;&amp;!a.animate&amp;&amp;/static/.test(f.css(&quot;position&quot;))&amp;&amp;
+e(this).css({left:h.left-d.left-c.left,width:i,height:g})}});e.ui.plugin.add(&quot;resizable&quot;,&quot;ghost&quot;,{start:function(){var b=e(this).data(&quot;resizable&quot;),a=b.options,c=b.size;b.ghost=b.originalElement.clone();b.ghost.css({opacity:0.25,display:&quot;block&quot;,position:&quot;relative&quot;,height:c.height,width:c.width,margin:0,left:0,top:0}).addClass(&quot;ui-resizable-ghost&quot;).addClass(typeof a.ghost==&quot;string&quot;?a.ghost:&quot;&quot;);b.ghost.appendTo(b.helper)},resize:function(){var b=e(this).data(&quot;resizable&quot;);b.ghost&amp;&amp;b.ghost.css({position:&quot;relative&quot;,
+height:b.size.height,width:b.size.width})},stop:function(){var b=e(this).data(&quot;resizable&quot;);b.ghost&amp;&amp;b.helper&amp;&amp;b.helper.get(0).removeChild(b.ghost.get(0))}});e.ui.plugin.add(&quot;resizable&quot;,&quot;grid&quot;,{resize:function(){var b=e(this).data(&quot;resizable&quot;),a=b.options,c=b.size,d=b.originalSize,f=b.originalPosition,g=b.axis;a.grid=typeof a.grid==&quot;number&quot;?[a.grid,a.grid]:a.grid;var h=Math.round((c.width-d.width)/(a.grid[0]||1))*(a.grid[0]||1);a=Math.round((c.height-d.height)/(a.grid[1]||1))*(a.grid[1]||1);if(/^(se|s|e)$/.test(g)){b.size.width=
+d.width+h;b.size.height=d.height+a}else if(/^(ne)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}else{if(/^(sw)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a}else{b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}b.position.left=f.left-h}}});var m=function(b){return parseInt(b,10)||0},l=function(b){return!isNaN(parseInt(b,10))}})(jQuery);
</ins></span></pre></div>
<a id="trunkwpincludesjsjqueryuiselectablejs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/jquery/ui.selectable.js (15710 => 15711)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/jquery/ui.selectable.js        2010-10-04 15:32:54 UTC (rev 15710)
+++ trunk/wp-includes/js/jquery/ui.selectable.js        2010-10-04 16:19:18 UTC (rev 15711)
</span><span class="lines">@@ -1,13 +1,22 @@
</span><span class="cx"> /*
</span><del>- * jQuery UI Selectable 1.7.3
</del><ins>+ * jQuery UI Selectable 1.8.5
</ins><span class="cx">  *
</span><del>- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
</del><ins>+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
</ins><span class="cx">  *
</span><span class="cx">  * http://docs.jquery.com/UI/Selectables
</span><span class="cx">  *
</span><span class="cx">  * Depends:
</span><del>- *        ui.core.js
</del><ins>+ *        jquery.ui.core.js
+ *        jquery.ui.mouse.js
+ *        jquery.ui.widget.js
</ins><span class="cx">  */
</span><del>-(function(a){a.widget(&quot;ui.selectable&quot;,a.extend({},a.ui.mouse,{_init:function(){var b=this;this.element.addClass(&quot;ui-selectable&quot;);this.dragged=false;var c;this.refresh=function(){c=a(b.options.filter,b.element[0]);c.each(function(){var d=a(this);var e=d.offset();a.data(this,&quot;selectable-item&quot;,{element:this,$element:d,left:e.left,top:e.top,right:e.left+d.outerWidth(),bottom:e.top+d.outerHeight(),startselected:false,selected:d.hasClass(&quot;ui-selected&quot;),selecting:d.hasClass(&quot;ui-selecting&quot;),unselecting:d.hasClass(&quot;ui-unselecting&quot;)})})};this.refresh();this.selectees=c.addClass(&quot;ui-selectee&quot;);this._mouseInit();this.helper=a(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(d){var b=this;this.opos=[d.pageX,d.pageY];if(this.options.disabled){return}var c=this.options;this.selectees=a(c.filter,this.element[0]);this._trigger(&quot;start&quot;,d);a(c.appendTo).append(this.helper);this.helper.css({&quot;z-index&quot;:100,position:&quot;absolute&quot;,left:d.clientX,top:d.clientY,width:0,height:0});if(c.autoRefresh){this.refresh()}this.selectees.filter(&quot;.ui-selected&quot;).each(function(){var e=a.data(this,&quot;selectable-item&quot;);e.startselected=true;if(!d.metaKey){e.$element.removeClass(&quot;ui-selected&quot;);e.selected=false;e.$element.addClass(&quot;ui-unselecting&quot;);e.unselecting=true;b._trigger(&quot;unselecting&quot;,d,{unselecting:e.element})}});a(d.target).parents().andSelf().each(function(){var e=a.data(this,&quot;selectable-item&quot;);if(e){e.$element.removeClass(&quot;ui-unselecting&quot;).addClass(&quot;ui-selecting&quot;);e.unselecting=false;e.selecting=true;e.selected=true;b._trigger(&quot;selecting&quot;,d,{selecting:e.element});return false}})},_mouseDrag:function(i){var c=this;this.dragged=true;if(this.options.disabled){return}var e=this.options;var d=this.opos[0],h=this.opos[1],b=i.pageX,g=i.pageY;if(d&gt;b){var f=b;b=d;d=f}if(h&gt;g){var f=g;g=h;h=f}this.helper.css({left:d,top:h,width:b-d,height:g-h});this.selectees.each(function(){var j=a.data(this,&quot;selectable-item&quot;);if(!j||j.element==c.element[0]){return}var k=false;if(e.tolerance==&quot;touch&quot;){k=(!(j.left&gt;b||j.right&lt;d||j.top&gt;g||j.bottom&lt;h))}else{if(e.tolerance==&quot;fit&quot;){k=(j.left&gt;d&amp;&amp;j.right&lt;b&amp;&amp;j.top&gt;h&amp;&amp;j.bottom&lt;g)}}if(k){if(j.selected){j.$element.removeClass(&quot;ui-selected&quot;);j.selected=false}if(j.unselecting){j.$element.removeClass(&quot;ui-unselecting&quot;);j.unselecting=false}if(!j.selecting){j.$element.addClass(&quot;ui-selecting&quot;);j.selecting=true;c._trigger(&quot;selecting&quot;,i,{selecting:j.element})}}else{if(j.selecting){if(i.metaKey&amp;&amp;j.startselected){j.$element.removeClass(&quot;ui-selecting&quot;);j.selecting=false;j.$element.addClass(&quot;ui-selected&quot;);j.selected=true}else{j.$element.removeClass(&quot;ui-selecting&quot;);j.selecting=false;if(j.startselected){j.$element.addClass(&quot;ui-unselecting&quot;);j.unselecting=true}c._trigger(&quot;unselecting&quot;,i,{unselecting:j.element})}}if(j.selected){if(!i.metaKey&amp;&amp;!j.startselected){j.$element.removeClass(&quot;ui-selected&quot;);j.selected=false;j.$element.addClass(&quot;ui-unselecting&quot;);j.unselecting=true;c._trigger(&quot;unselecting&quot;,i,{unselecting:j.element})}}}});return false},_mouseStop:function(d){var b=this;this.dragged=false;var c=this.options;a(&quot;.ui-unselecting&quot;,this.element[0]).each(function(){var e=a.data(this,&quot;selectable-item&quot;);e.$element.removeClass(&quot;ui-unselecting&quot;);e.unselecting=false;e.startselected=false;b._trigger(&quot;unselected&quot;,d,{unselected:e.element})});a(&quot;.ui-selecting&quot;,this.element[0]).each(function(){var e=a.data(this,&quot;selectable-item&quot;);e.$element.removeClass(&quot;ui-selecting&quot;).addClass(&quot;ui-selected&quot;);e.selecting=false;e.selected=true;e.startselected=true;b._trigger(&quot;selected&quot;,d,{selected:e.element})});this._trigger(&quot;stop&quot;,d);this.helper.remove();return false}}));a.extend(a.ui.selectable,{version:&quot;1.7.3&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);
</del><ins>+(function(e){e.widget(&quot;ui.selectable&quot;,e.ui.mouse,{options:{appendTo:&quot;body&quot;,autoRefresh:true,distance:0,filter:&quot;*&quot;,tolerance:&quot;touch&quot;},_create:function(){var c=this;this.element.addClass(&quot;ui-selectable&quot;);this.dragged=false;var f;this.refresh=function(){f=e(c.options.filter,c.element[0]);f.each(function(){var d=e(this),b=d.offset();e.data(this,&quot;selectable-item&quot;,{element:this,$element:d,left:b.left,top:b.top,right:b.left+d.outerWidth(),bottom:b.top+d.outerHeight(),startselected:false,selected:d.hasClass(&quot;ui-selected&quot;),
+selecting:d.hasClass(&quot;ui-selecting&quot;),unselecting:d.hasClass(&quot;ui-unselecting&quot;)})})};this.refresh();this.selectees=f.addClass(&quot;ui-selectee&quot;);this._mouseInit();this.helper=e(&quot;&lt;div class='ui-selectable-helper'&gt;&lt;/div&gt;&quot;)},destroy:function(){this.selectees.removeClass(&quot;ui-selectee&quot;).removeData(&quot;selectable-item&quot;);this.element.removeClass(&quot;ui-selectable ui-selectable-disabled&quot;).removeData(&quot;selectable&quot;).unbind(&quot;.selectable&quot;);this._mouseDestroy();return this},_mouseStart:function(c){var f=this;this.opos=[c.pageX,
+c.pageY];if(!this.options.disabled){var d=this.options;this.selectees=e(d.filter,this.element[0]);this._trigger(&quot;start&quot;,c);e(d.appendTo).append(this.helper);this.helper.css({left:c.clientX,top:c.clientY,width:0,height:0});d.autoRefresh&amp;&amp;this.refresh();this.selectees.filter(&quot;.ui-selected&quot;).each(function(){var b=e.data(this,&quot;selectable-item&quot;);b.startselected=true;if(!c.metaKey){b.$element.removeClass(&quot;ui-selected&quot;);b.selected=false;b.$element.addClass(&quot;ui-unselecting&quot;);b.unselecting=true;f._trigger(&quot;unselecting&quot;,
+c,{unselecting:b.element})}});e(c.target).parents().andSelf().each(function(){var b=e.data(this,&quot;selectable-item&quot;);if(b){var g=!c.metaKey||!b.$element.hasClass(&quot;ui-selected&quot;);b.$element.removeClass(g?&quot;ui-unselecting&quot;:&quot;ui-selected&quot;).addClass(g?&quot;ui-selecting&quot;:&quot;ui-unselecting&quot;);b.unselecting=!g;b.selecting=g;(b.selected=g)?f._trigger(&quot;selecting&quot;,c,{selecting:b.element}):f._trigger(&quot;unselecting&quot;,c,{unselecting:b.element});return false}})}},_mouseDrag:function(c){var f=this;this.dragged=true;if(!this.options.disabled){var d=
+this.options,b=this.opos[0],g=this.opos[1],h=c.pageX,i=c.pageY;if(b&gt;h){var j=h;h=b;b=j}if(g&gt;i){j=i;i=g;g=j}this.helper.css({left:b,top:g,width:h-b,height:i-g});this.selectees.each(function(){var a=e.data(this,&quot;selectable-item&quot;);if(!(!a||a.element==f.element[0])){var k=false;if(d.tolerance==&quot;touch&quot;)k=!(a.left&gt;h||a.right&lt;b||a.top&gt;i||a.bottom&lt;g);else if(d.tolerance==&quot;fit&quot;)k=a.left&gt;b&amp;&amp;a.right&lt;h&amp;&amp;a.top&gt;g&amp;&amp;a.bottom&lt;i;if(k){if(a.selected){a.$element.removeClass(&quot;ui-selected&quot;);a.selected=false}if(a.unselecting){a.$element.removeClass(&quot;ui-unselecting&quot;);
+a.unselecting=false}if(!a.selecting){a.$element.addClass(&quot;ui-selecting&quot;);a.selecting=true;f._trigger(&quot;selecting&quot;,c,{selecting:a.element})}}else{if(a.selecting)if(c.metaKey&amp;&amp;a.startselected){a.$element.removeClass(&quot;ui-selecting&quot;);a.selecting=false;a.$element.addClass(&quot;ui-selected&quot;);a.selected=true}else{a.$element.removeClass(&quot;ui-selecting&quot;);a.selecting=false;if(a.startselected){a.$element.addClass(&quot;ui-unselecting&quot;);a.unselecting=true}f._trigger(&quot;unselecting&quot;,c,{unselecting:a.element})}if(a.selected)if(!c.metaKey&amp;&amp;
+!a.startselected){a.$element.removeClass(&quot;ui-selected&quot;);a.selected=false;a.$element.addClass(&quot;ui-unselecting&quot;);a.unselecting=true;f._trigger(&quot;unselecting&quot;,c,{unselecting:a.element})}}}});return false}},_mouseStop:function(c){var f=this;this.dragged=false;e(&quot;.ui-unselecting&quot;,this.element[0]).each(function(){var d=e.data(this,&quot;selectable-item&quot;);d.$element.removeClass(&quot;ui-unselecting&quot;);d.unselecting=false;d.startselected=false;f._trigger(&quot;unselected&quot;,c,{unselected:d.element})});e(&quot;.ui-selecting&quot;,this.element[0]).each(function(){var d=
+e.data(this,&quot;selectable-item&quot;);d.$element.removeClass(&quot;ui-selecting&quot;).addClass(&quot;ui-selected&quot;);d.selecting=false;d.selected=true;d.startselected=true;f._trigger(&quot;selected&quot;,c,{selected:d.element})});this._trigger(&quot;stop&quot;,c);this.helper.remove();return false}});e.extend(e.ui.selectable,{version:&quot;1.8.5&quot;})})(jQuery);
</ins></span></pre></div>
<a id="trunkwpincludesjsjqueryuisortablejs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/jquery/ui.sortable.js (15710 => 15711)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/jquery/ui.sortable.js        2010-10-04 15:32:54 UTC (rev 15710)
+++ trunk/wp-includes/js/jquery/ui.sortable.js        2010-10-04 16:19:18 UTC (rev 15711)
</span><span class="lines">@@ -1,13 +1,60 @@
</span><span class="cx"> /*
</span><del>- * jQuery UI Sortable 1.7.3
</del><ins>+ * jQuery UI Sortable 1.8.5
</ins><span class="cx">  *
</span><del>- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
</del><ins>+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
</ins><span class="cx">  *
</span><span class="cx">  * http://docs.jquery.com/UI/Sortables
</span><span class="cx">  *
</span><span class="cx">  * Depends:
</span><del>- *        ui.core.js
</del><ins>+ *        jquery.ui.core.js
+ *        jquery.ui.mouse.js
+ *        jquery.ui.widget.js
</ins><span class="cx">  */
</span><del>-(function(a){a.widget(&quot;ui.sortable&quot;,a.extend({},a.ui.mouse,{_init:function(){var b=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 b=this.items.length-1;b&gt;=0;b--){this.items[b].item.removeData(&quot;sortable-item&quot;)}},_mouseCapture:function(e,f){if(this.reverting){return false}if(this.options.disabled||this.options.type==&quot;static&quot;){return false}this._refreshItems(e);var d=null,c=this,b=a(e.target).parents().each(function(){if(a.data(this,&quot;sortable-item&quot;)==c){d=a(this);return false}});if(a.data(e.target,&quot;sortable-item&quot;)==c){d=a(e.target)}if(!d){return false}if(this.options.handle&amp;&amp;!f){var g=false;a(this.options.handle,d).find(&quot;*&quot;).andSelf().each(function(){if(this==e.target){g=true}});if(!g){return false}}this.currentItem=d;this._removeCurrentsFromItems();return true},_mouseStart:function(e,f,b){var g=this.options,c=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(e);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css(&quot;position&quot;,&quot;absolute&quot;);this.cssPosition=this.helper.css(&quot;position&quot;);a.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(e);this.originalPageX=e.pageX;this.originalPageY=e.pageY;if(g.cursorAt){this._adjustOffsetFromHelper(g.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(g.containment){this._setContainment()}if(g.cursor){if(a(&quot;body&quot;).css(&quot;cursor&quot;)){this._storedCursor=a(&quot;body&quot;).css(&quot;cursor&quot;)}a(&quot;body&quot;).css(&quot;cursor&quot;,g.cursor)}if(g.opacity){if(this.helper.css(&quot;opacity&quot;)){this._storedOpacity=this.helper.css(&quot;opacity&quot;)}this.helper.css(&quot;opacity&quot;,g.opacity)}if(g.zIndex){if(this.helper.css(&quot;zIndex&quot;)){this._storedZIndex=this.helper.css(&quot;zIndex&quot;)}this.helper.css(&quot;zIndex&quot;,g.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;,e,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!b){for(var d=this.containers.length-1;d&gt;=0;d--){this.containers[d]._trigger(&quot;activate&quot;,e,c._uiHash(this))}}if(a.ui.ddmanager){a.ui.ddmanager.current=this}if(a.ui.ddmanager&amp;&amp;!g.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,e)}this.dragging=true;this.helper.addClass(&quot;ui-sortable-helper&quot;);this._mouseDrag(e);return true},_mouseDrag:function(f){this.position=this._generatePosition(f);this.positionAbs=this._convertPositionTo(&quot;absolute&quot;);if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var g=this.options,b=false;if(this.scrollParent[0]!=document&amp;&amp;this.scrollParent[0].tagName!=&quot;HTML&quot;){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-f.pageY&lt;g.scrollSensitivity){this.scrollParent[0].scrollTop=b=this.scrollParent[0].scrollTop+g.scrollSpeed}else{if(f.pageY-this.overflowOffset.top&lt;g.scrollSensitivity){this.scrollParent[0].scrollTop=b=this.scrollParent[0].scrollTop-g.scrollSpeed}}if((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-f.pageX&lt;g.scrollSensitivity){this.scrollParent[0].scrollLeft=b=this.scrollParent[0].scrollLeft+g.scrollSpeed}else{if(f.pageX-this.overflowOffset.left&lt;g.scrollSensitivity){this.scrollParent[0].scrollLeft=b=this.scrollParent[0].scrollLeft-g.scrollSpeed}}}else{if(f.pageY-a(document).scrollTop()&lt;g.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()-g.scrollSpeed)}else{if(a(window).height()-(f.pageY-a(document).scrollTop())&lt;g.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()+g.scrollSpeed)}}if(f.pageX-a(document).scrollLeft()&lt;g.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()-g.scrollSpeed)}else{if(a(window).width()-(f.pageX-a(document).scrollLeft())&lt;g.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()+g.scrollSpeed)}}}if(b!==false&amp;&amp;a.ui.ddmanager&amp;&amp;!g.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,f)}}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 d=this.items.length-1;d&gt;=0;d--){var e=this.items[d],c=e.item[0],h=this._intersectsWithPointer(e);if(!h){continue}if(c!=this.currentItem[0]&amp;&amp;this.placeholder[h==1?&quot;next&quot;:&quot;prev&quot;]()[0]!=c&amp;&amp;!a.ui.contains(this.placeholder[0],c)&amp;&amp;(this.options.type==&quot;semi-dynamic&quot;?!a.ui.contains(this.element[0],c):true)){this.direction=h==1?&quot;down&quot;:&quot;up&quot;;if(this.options.tolerance==&quot;pointer&quot;||this._intersectsWithSides(e)){this._rearrange(f,e)}else{break}this._trigger(&quot;change&quot;,f,this._uiHash());break}}this._contactContainers(f);if(a.ui.ddmanager){a.ui.ddmanager.drag(this,f)}this._trigger(&quot;sort&quot;,f,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(c,d){if(!c){return}if(a.ui.ddmanager&amp;&amp;!this.options.dropBehaviour){a.ui.ddmanager.drop(this,c)}if(this.options.revert){var b=this;var e=b.placeholder.offset();b.reverting=true;a(this.helper).animate({left:e.left-this.offset.parent.left-b.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:e.top-this.offset.parent.top-b.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){b._clear(c)})}else{this._clear(c,d)}return false},cancel:function(){var b=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 c=this.containers.length-1;c&gt;=0;c--){this.containers[c]._trigger(&quot;deactivate&quot;,null,b._uiHash(this));if(this.containers[c].containerCache.over){this.containers[c]._trigger(&quot;out&quot;,null,b._uiHash(this));this.containers[c].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()}a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){a(this.domPosition.prev).after(this.currentItem)}else{a(this.domPosition.parent).prepend(this.currentItem)}return true},serialize:function(d){var b=this._getItemsAsjQuery(d&amp;&amp;d.connected);var c=[];d=d||{};a(b).each(function(){var e=(a(d.item||this).attr(d.attribute||&quot;id&quot;)||&quot;&quot;).match(d.expression||(/(.+)[-=_](.+)/));if(e){c.push((d.key||e[1]+&quot;[]&quot;)+&quot;=&quot;+(d.key&amp;&amp;d.expression?e[1]:e[2]))}});return c.join(&quot;&amp;&quot;)},toArray:function(d){var b=this._getItemsAsjQuery(d&amp;&amp;d.connected);var c=[];d=d||{};b.each(function(){c.push(a(d.item||this).attr(d.attribute||&quot;id&quot;)||&quot;&quot;)});return c},_intersectsWith:function(m){var e=this.positionAbs.left,d=e+this.helperProportions.width,k=this.positionAbs.top,j=k+this.helperProportions.height;var f=m.left,c=f+m.width,n=m.top,i=n+m.height;var o=this.offset.click.top,h=this.offset.click.left;var g=(k+o)&gt;n&amp;&amp;(k+o)&lt;i&amp;&amp;(e+h)&gt;f&amp;&amp;(e+h)&lt;c;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;m[this.floating?&quot;width&quot;:&quot;height&quot;])){return g}else{return(f&lt;e+(this.helperProportions.width/2)&amp;&amp;d-(this.helperProportions.width/2)&lt;c&amp;&amp;n&lt;k+(this.helperProportions.height/2)&amp;&amp;j-(this.helperProportions.height/2)&lt;i)}},_intersectsWithPointer:function(d){var e=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top,d.height),c=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left,d.width),g=e&amp;&amp;c,b=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();if(!g){return false}return this.floating?(((f&amp;&amp;f==&quot;right&quot;)||b==&quot;down&quot;)?2:1):(b&amp;&amp;(b==&quot;down&quot;?2:1))},_intersectsWithSides:function(e){var c=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+(e.height/2),e.height),d=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+(e.width/2),e.width),b=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();if(this.floating&amp;&amp;f){return((f==&quot;right&quot;&amp;&amp;d)||(f==&quot;left&quot;&amp;&amp;!d))}else{return b&amp;&amp;((b==&quot;down&quot;&amp;&amp;c)||(b==&quot;up&quot;&amp;&amp;!c))}},_getDragVerticalDirection:function(){var b=this.positionAbs.top-this.lastPositionAbs.top;return b!=0&amp;&amp;(b&gt;0?&quot;down&quot;:&quot;up&quot;)},_getDragHorizontalDirection:function(){var b=this.positionAbs.left-this.lastPositionAbs.left;return b!=0&amp;&amp;(b&gt;0?&quot;right&quot;:&quot;left&quot;)},refresh:function(b){this._refreshItems(b);this.refreshPositions()},_connectWith:function(){var b=this.options;return b.connectWith.constructor==String?[b.connectWith]:b.connectWith},_getItemsAsjQuery:function(b){var l=this;var g=[];var e=[];var h=this._connectWith();if(h&amp;&amp;b){for(var d=h.length-1;d&gt;=0;d--){var k=a(h[d]);for(var c=k.length-1;c&gt;=0;c--){var f=a.data(k[c],&quot;sortable&quot;);if(f&amp;&amp;f!=this&amp;&amp;!f.options.disabled){e.push([a.isFunction(f.options.items)?f.options.items.call(f.element):a(f.options.items,f.element).not(&quot;.ui-sortable-helper&quot;),f])}}}}e.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(&quot;.ui-sortable-helper&quot;),this]);for(var d=e.length-1;d&gt;=0;d--){e[d][0].each(function(){g.push(this)})}return a(g)},_removeCurrentsFromItems:function(){var d=this.currentItem.find(&quot;:data(sortable-item)&quot;);for(var c=0;c&lt;this.items.length;c++){for(var b=0;b&lt;d.length;b++){if(d[b]==this.items[c].item[0]){this.items.splice(c,1)}}}},_refreshItems:function(b){this.items=[];this.containers=[this];var h=this.items;var p=this;var f=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):a(this.options.items,this.element),this]];var l=this._connectWith();if(l){for(var e=l.length-1;e&gt;=0;e--){var m=a(l[e]);for(var d=m.length-1;d&gt;=0;d--){var g=a.data(m[d],&quot;sortable&quot;);if(g&amp;&amp;g!=this&amp;&amp;!g.options.disabled){f.push([a.isFunction(g.options.items)?g.options.items.call(g.element[0],b,{item:this.currentItem}):a(g.options.items,g.element),g]);this.containers.push(g)}}}}for(var e=f.length-1;e&gt;=0;e--){var k=f[e][1];var c=f[e][0];for(var d=0,n=c.length;d&lt;n;d++){var o=a(c[d]);o.data(&quot;sortable-item&quot;,k);h.push({item:o,instance:k,width:0,height:0,left:0,top:0})}}},refreshPositions:function(b){if(this.offsetParent&amp;&amp;this.helper){this.offset.parent=this._getParentOffset()}for(var d=this.items.length-1;d&gt;=0;d--){var e=this.items[d];if(e.instance!=this.currentContainer&amp;&amp;this.currentContainer&amp;&amp;e.item[0]!=this.currentItem[0]){continue}var c=this.options.toleranceElement?a(this.options.toleranceElement,e.item):e.item;if(!b){e.width=c.outerWidth();e.height=c.outerHeight()}var f=c.offset();e.left=f.left;e.top=f.top}if(this.options.custom&amp;&amp;this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(var d=this.containers.length-1;d&gt;=0;d--){var f=this.containers[d].element.offset();this.containers[d].containerCache.left=f.left;this.containers[d].containerCache.top=f.top;this.containers[d].containerCache.width=this.containers[d].element.outerWidth();this.containers[d].containerCache.height=this.containers[d].element.outerHeight()}}},_createPlaceholder:function(d){var b=d||this,e=b.options;if(!e.placeholder||e.placeholder.constructor==String){var c=e.placeholder;e.placeholder={element:function(){var f=a(document.createElement(b.currentItem[0].nodeName)).addClass(c||b.currentItem[0].className+&quot; ui-sortable-placeholder&quot;).removeClass(&quot;ui-sortable-helper&quot;)[0];if(!c){f.style.visibility=&quot;hidden&quot;}return f},update:function(f,g){if(c&amp;&amp;!e.forcePlaceholderSize){return}if(!g.height()){g.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css(&quot;paddingTop&quot;)||0,10)-parseInt(b.currentItem.css(&quot;paddingBottom&quot;)||0,10))}if(!g.width()){g.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css(&quot;paddingLeft&quot;)||0,10)-parseInt(b.currentItem.css(&quot;paddingRight&quot;)||0,10))}}}}b.placeholder=a(e.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);e.placeholder.update(b,b.placeholder)},_contactContainers:function(d){for(var c=this.containers.length-1;c&gt;=0;c--){if(this._intersectsWith(this.containers[c].containerCache)){if(!this.containers[c].containerCache.over){if(this.currentContainer!=this.containers[c]){var h=10000;var g=null;var e=this.positionAbs[this.containers[c].floating?&quot;left&quot;:&quot;top&quot;];for(var b=this.items.length-1;b&gt;=0;b--){if(!a.ui.contains(this.containers[c].element[0],this.items[b].item[0])){continue}var f=this.items[b][this.containers[c].floating?&quot;left&quot;:&quot;top&quot;];if(Math.abs(f-e)&lt;h){h=Math.abs(f-e);g=this.items[b]}}if(!g&amp;&amp;!this.options.dropOnEmpty){continue}this.currentContainer=this.containers[c];g?this._rearrange(d,g,null,true):this._rearrange(d,null,this.containers[c].element,true);this._trigger(&quot;change&quot;,d,this._uiHash());this.containers[c]._trigger(&quot;change&quot;,d,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder)}this.containers[c]._trigger(&quot;over&quot;,d,this._uiHash(this));this.containers[c].containerCache.over=1}}else{if(this.containers[c].containerCache.over){this.containers[c]._trigger(&quot;out&quot;,d,this._uiHash(this));this.containers[c].containerCache.over=0}}}},_createHelper:function(c){var d=this.options;var b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c,this.currentItem])):(d.helper==&quot;clone&quot;?this.currentItem.clone():this.currentItem);if(!b.parents(&quot;body&quot;).length){a(d.appendTo!=&quot;parent&quot;?d.appendTo:this.currentItem[0].parentNode)[0].appendChild(b[0])}if(b[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(b[0].style.width==&quot;&quot;||d.forceHelperSize){b.width(this.currentItem.width())}if(b[0].style.height==&quot;&quot;||d.forceHelperSize){b.height(this.currentItem.height())}return b},_adjustOffsetFromHelper:function(b){if(b.left!=undefined){this.offset.click.left=b.left+this.margins.left}if(b.right!=undefined){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if(b.top!=undefined){this.offset.click.top=b.top+this.margins.top}if(b.bottom!=undefined){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition==&quot;absolute&quot;&amp;&amp;this.scrollParent[0]!=document&amp;&amp;a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.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;a.browser.msie)){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css(&quot;borderTopWidth&quot;),10)||0),left:b.left+(parseInt(this.offsetParent.css(&quot;borderLeftWidth&quot;),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==&quot;relative&quot;){var b=this.currentItem.position();return{top:b.top-(parseInt(this.helper.css(&quot;top&quot;),10)||0)+this.scrollParent.scrollTop(),left:b.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 e=this.options;if(e.containment==&quot;parent&quot;){e.containment=this.helper[0].parentNode}if(e.containment==&quot;document&quot;||e.containment==&quot;window&quot;){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment==&quot;document&quot;?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment==&quot;document&quot;?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(e.containment)){var c=a(e.containment)[0];var d=a(e.containment).offset();var b=(a(c).css(&quot;overflow&quot;)!=&quot;hidden&quot;);this.containment=[d.left+(parseInt(a(c).css(&quot;borderLeftWidth&quot;),10)||0)+(parseInt(a(c).css(&quot;paddingLeft&quot;),10)||0)-this.margins.left,d.top+(parseInt(a(c).css(&quot;borderTopWidth&quot;),10)||0)+(parseInt(a(c).css(&quot;paddingTop&quot;),10)||0)-this.margins.top,d.left+(b?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css(&quot;borderLeftWidth&quot;),10)||0)-(parseInt(a(c).css(&quot;paddingRight&quot;),10)||0)-this.helperProportions.width-this.margins.left,d.top+(b?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css(&quot;borderTopWidth&quot;),10)||0)-(parseInt(a(c).css(&quot;paddingBottom&quot;),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(f,h){if(!h){h=this.position}var c=f==&quot;absolute&quot;?1:-1;var e=this.options,b=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=(/(html|body)/i).test(b[0].tagName);return{top:(h.top+this.offset.relative.top*c+this.offset.parent.top*c-(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():(g?0:b.scrollTop()))*c)),left:(h.left+this.offset.relative.left*c+this.offset.parent.left*c-(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():g?0:b.scrollLeft())*c))}},_generatePosition:function(e){var h=this.options,b=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=(/(html|body)/i).test(b[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 d=e.pageX;var c=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left&lt;this.containment[0]){d=this.containment[0]+this.offset.click.left}if(e.pageY-this.offset.click.top&lt;this.containment[1]){c=this.containment[1]+this.offset.click.top}if(e.pageX-this.offset.click.left&gt;this.containment[2]){d=this.containment[2]+this.offset.click.left}if(e.pageY-this.offset.click.top&gt;this.containment[3]){c=this.containment[3]+this.offset.click.top}}if(h.grid){var g=this.originalPageY+Math.round((c-this.originalPageY)/h.grid[1])*h.grid[1];c=this.containment?(!(g-this.offset.click.top&lt;this.containment[1]||g-this.offset.click.top&gt;this.containment[3])?g:(!(g-this.offset.click.top&lt;this.containment[1])?g-h.grid[1]:g+h.grid[1])):g;var f=this.originalPageX+Math.round((d-this.originalPageX)/h.grid[0])*h.grid[0];d=this.containment?(!(f-this.offset.click.left&lt;this.containment[0]||f-this.offset.click.left&gt;this.containment[2])?f:(!(f-this.offset.click.left&lt;this.containment[0])?f-h.grid[0]:f+h.grid[0])):f}}return{top:(c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():(i?0:b.scrollTop())))),left:(d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():i?0:b.scrollLeft())))}},_rearrange:function(g,f,c,e){c?c[0].appendChild(this.placeholder[0]):f.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction==&quot;down&quot;?f.item[0]:f.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var d=this,b=this.counter;window.setTimeout(function(){if(b==d.counter){d.refreshPositions(!e)}},0)},_clear:function(d,e){this.reverting=false;var f=[],b=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 c in this._storedCSS){if(this._storedCSS[c]==&quot;auto&quot;||this._storedCSS[c]==&quot;static&quot;){this._storedCSS[c]=&quot;&quot;}}this.currentItem.css(this._storedCSS).removeClass(&quot;ui-sortable-helper&quot;)}else{this.currentItem.show()}if(this.fromOutside&amp;&amp;!e){f.push(function(g){this._trigger(&quot;receive&quot;,g,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;!e){f.push(function(g){this._trigger(&quot;update&quot;,g,this._uiHash())})}if(!a.ui.contains(this.element[0],this.currentItem[0])){if(!e){f.push(function(g){this._trigger(&quot;remove&quot;,g,this._uiHash())})}for(var c=this.containers.length-1;c&gt;=0;c--){if(a.ui.contains(this.containers[c].element[0],this.currentItem[0])&amp;&amp;!e){f.push((function(g){return function(h){g._trigger(&quot;receive&quot;,h,this._uiHash(this))}}).call(this,this.containers[c]));f.push((function(g){return function(h){g._trigger(&quot;update&quot;,h,this._uiHash(this))}}).call(this,this.containers[c]))}}}for(var c=this.containers.length-1;c&gt;=0;c--){if(!e){f.push((function(g){return function(h){g._trigger(&quot;deactivate&quot;,h,this._uiHash(this))}}).call(this,this.containers[c]))}if(this.containers[c].containerCache.over){f.push((function(g){return function(h){g._trigger(&quot;out&quot;,h,this._uiHash(this))}}).call(this,this.containers[c]));this.containers[c].containerCache.over=0}}if(this._storedCursor){a(&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(!e){this._trigger(&quot;beforeStop&quot;,d,this._uiHash());for(var c=0;c&lt;f.length;c++){f[c].call(this,d)}this._trigger(&quot;stop&quot;,d,this._uiHash())}return false}if(!e){this._trigger(&quot;beforeStop&quot;,d,this._uiHash())}this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.helper[0]!=this.currentItem[0]){this.helper.remove()}this.helper=null;if(!e){for(var c=0;c&lt;f.length;c++){f[c].call(this,d)}this._trigger(&quot;stop&quot;,d,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){if(a.widget.prototype._trigger.apply(this,arguments)===false){this.cancel()}},_uiHash:function(c){var b=c||this;return{helper:b.helper,placeholder:b.placeholder||a([]),position:b.position,absolutePosition:b.positionAbs,offset:b.positionAbs,item:b.currentItem,sender:c?c.element:null}}}));a.extend(a.ui.sortable,{getter:&quot;serialize toArray&quot;,version:&quot;1.7.3&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);
</del><ins>+(function(d){d.widget(&quot;ui.sortable&quot;,d.ui.mouse,{widgetEventPrefix:&quot;sort&quot;,options:{appendTo:&quot;parent&quot;,axis:false,connectWith:false,containment:false,cursor:&quot;auto&quot;,cursorAt:false,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:1E3},_create:function(){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;);return this},_setOption:function(a,b){if(a===&quot;disabled&quot;){this.options[a]=b;this.widget()[b?&quot;addClass&quot;:&quot;removeClass&quot;](&quot;ui-sortable-disabled&quot;)}else d.Widget.prototype._setOption.apply(this,
+arguments)},_mouseCapture:function(a,b){if(this.reverting)return false;if(this.options.disabled||this.options.type==&quot;static&quot;)return false;this._refreshItems(a);var c=null,e=this;d(a.target).parents().each(function(){if(d.data(this,&quot;sortable-item&quot;)==e){c=d(this);return false}});if(d.data(a.target,&quot;sortable-item&quot;)==e)c=d(a.target);if(!c)return false;if(this.options.handle&amp;&amp;!b){var f=false;d(this.options.handle,c).find(&quot;*&quot;).andSelf().each(function(){if(this==a.target)f=true});if(!f)return false}this.currentItem=
+c;this._removeCurrentsFromItems();return true},_mouseStart:function(a,b,c){b=this.options;var e=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(a);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;);d.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;b.cursorAt&amp;&amp;this._adjustOffsetFromHelper(b.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&amp;&amp;this.currentItem.hide();this._createPlaceholder();b.containment&amp;&amp;this._setContainment();
+if(b.cursor){if(d(&quot;body&quot;).css(&quot;cursor&quot;))this._storedCursor=d(&quot;body&quot;).css(&quot;cursor&quot;);d(&quot;body&quot;).css(&quot;cursor&quot;,b.cursor)}if(b.opacity){if(this.helper.css(&quot;opacity&quot;))this._storedOpacity=this.helper.css(&quot;opacity&quot;);this.helper.css(&quot;opacity&quot;,b.opacity)}if(b.zIndex){if(this.helper.css(&quot;zIndex&quot;))this._storedZIndex=this.helper.css(&quot;zIndex&quot;);this.helper.css(&quot;zIndex&quot;,b.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;,
+a,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!c)for(c=this.containers.length-1;c&gt;=0;c--)this.containers[c]._trigger(&quot;activate&quot;,a,e._uiHash(this));if(d.ui.ddmanager)d.ui.ddmanager.current=this;d.ui.ddmanager&amp;&amp;!b.dropBehaviour&amp;&amp;d.ui.ddmanager.prepareOffsets(this,a);this.dragging=true;this.helper.addClass(&quot;ui-sortable-helper&quot;);this._mouseDrag(a);return true},_mouseDrag:function(a){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo(&quot;absolute&quot;);
+if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var b=this.options,c=false;if(this.scrollParent[0]!=document&amp;&amp;this.scrollParent[0].tagName!=&quot;HTML&quot;){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-a.pageY&lt;b.scrollSensitivity)this.scrollParent[0].scrollTop=c=this.scrollParent[0].scrollTop+b.scrollSpeed;else if(a.pageY-this.overflowOffset.top&lt;b.scrollSensitivity)this.scrollParent[0].scrollTop=c=this.scrollParent[0].scrollTop-b.scrollSpeed;if(this.overflowOffset.left+
+this.scrollParent[0].offsetWidth-a.pageX&lt;b.scrollSensitivity)this.scrollParent[0].scrollLeft=c=this.scrollParent[0].scrollLeft+b.scrollSpeed;else if(a.pageX-this.overflowOffset.left&lt;b.scrollSensitivity)this.scrollParent[0].scrollLeft=c=this.scrollParent[0].scrollLeft-b.scrollSpeed}else{if(a.pageY-d(document).scrollTop()&lt;b.scrollSensitivity)c=d(document).scrollTop(d(document).scrollTop()-b.scrollSpeed);else if(d(window).height()-(a.pageY-d(document).scrollTop())&lt;b.scrollSensitivity)c=d(document).scrollTop(d(document).scrollTop()+
+b.scrollSpeed);if(a.pageX-d(document).scrollLeft()&lt;b.scrollSensitivity)c=d(document).scrollLeft(d(document).scrollLeft()-b.scrollSpeed);else if(d(window).width()-(a.pageX-d(document).scrollLeft())&lt;b.scrollSensitivity)c=d(document).scrollLeft(d(document).scrollLeft()+b.scrollSpeed)}c!==false&amp;&amp;d.ui.ddmanager&amp;&amp;!b.dropBehaviour&amp;&amp;d.ui.ddmanager.prepareOffsets(this,a)}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(b=this.items.length-1;b&gt;=0;b--){c=this.items[b];var e=c.item[0],f=this._intersectsWithPointer(c);if(f)if(e!=this.currentItem[0]&amp;&amp;this.placeholder[f==1?&quot;next&quot;:&quot;prev&quot;]()[0]!=e&amp;&amp;!d.ui.contains(this.placeholder[0],e)&amp;&amp;(this.options.type==&quot;semi-dynamic&quot;?!d.ui.contains(this.element[0],e):true)){this.direction=f==1?&quot;down&quot;:&quot;up&quot;;if(this.options.tolerance==&quot;pointer&quot;||this._intersectsWithSides(c))this._rearrange(a,
+c);else break;this._trigger(&quot;change&quot;,a,this._uiHash());break}}this._contactContainers(a);d.ui.ddmanager&amp;&amp;d.ui.ddmanager.drag(this,a);this._trigger(&quot;sort&quot;,a,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(a,b){if(a){d.ui.ddmanager&amp;&amp;!this.options.dropBehaviour&amp;&amp;d.ui.ddmanager.drop(this,a);if(this.options.revert){var c=this;b=c.placeholder.offset();c.reverting=true;d(this.helper).animate({left:b.left-this.offset.parent.left-c.margins.left+(this.offsetParent[0]==
+document.body?0:this.offsetParent[0].scrollLeft),top:b.top-this.offset.parent.top-c.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){c._clear(a)})}else this._clear(a,b);return false}},cancel:function(){var a=this;if(this.dragging){this._mouseUp();this.options.helper==&quot;original&quot;?this.currentItem.css(this._storedCSS).removeClass(&quot;ui-sortable-helper&quot;):this.currentItem.show();for(var b=this.containers.length-1;b&gt;=0;b--){this.containers[b]._trigger(&quot;deactivate&quot;,
+null,a._uiHash(this));if(this.containers[b].containerCache.over){this.containers[b]._trigger(&quot;out&quot;,null,a._uiHash(this));this.containers[b].containerCache.over=0}}}this.placeholder[0].parentNode&amp;&amp;this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!=&quot;original&quot;&amp;&amp;this.helper&amp;&amp;this.helper[0].parentNode&amp;&amp;this.helper.remove();d.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?d(this.domPosition.prev).after(this.currentItem):
+d(this.domPosition.parent).prepend(this.currentItem);return this},serialize:function(a){var b=this._getItemsAsjQuery(a&amp;&amp;a.connected),c=[];a=a||{};d(b).each(function(){var e=(d(a.item||this).attr(a.attribute||&quot;id&quot;)||&quot;&quot;).match(a.expression||/(.+)[-=_](.+)/);if(e)c.push((a.key||e[1]+&quot;[]&quot;)+&quot;=&quot;+(a.key&amp;&amp;a.expression?e[1]:e[2]))});!c.length&amp;&amp;a.key&amp;&amp;c.push(a.key+&quot;=&quot;);return c.join(&quot;&amp;&quot;)},toArray:function(a){var b=this._getItemsAsjQuery(a&amp;&amp;a.connected),c=[];a=a||{};b.each(function(){c.push(d(a.item||this).attr(a.attribute||
+&quot;id&quot;)||&quot;&quot;)});return c},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,e=this.positionAbs.top,f=e+this.helperProportions.height,g=a.left,h=g+a.width,i=a.top,k=i+a.height,j=this.offset.click.top,l=this.offset.click.left;j=e+j&gt;i&amp;&amp;e+j&lt;k&amp;&amp;b+l&gt;g&amp;&amp;b+l&lt;h;return 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;a[this.floating?&quot;width&quot;:&quot;height&quot;]?j:g&lt;b+
+this.helperProportions.width/2&amp;&amp;c-this.helperProportions.width/2&lt;h&amp;&amp;i&lt;e+this.helperProportions.height/2&amp;&amp;f-this.helperProportions.height/2&lt;k},_intersectsWithPointer:function(a){var b=d.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top,a.height);a=d.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left,a.width);b=b&amp;&amp;a;a=this._getDragVerticalDirection();var c=this._getDragHorizontalDirection();if(!b)return false;return this.floating?c&amp;&amp;c==&quot;right&quot;||a==&quot;down&quot;?2:1:a&amp;&amp;(a==&quot;down&quot;?
+2:1)},_intersectsWithSides:function(a){var b=d.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top+a.height/2,a.height);a=d.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left+a.width/2,a.width);var c=this._getDragVerticalDirection(),e=this._getDragHorizontalDirection();return this.floating&amp;&amp;e?e==&quot;right&quot;&amp;&amp;a||e==&quot;left&quot;&amp;&amp;!a:c&amp;&amp;(c==&quot;down&quot;&amp;&amp;b||c==&quot;up&quot;&amp;&amp;!b)},_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();return this},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(a){var b=[],c=[],e=this._connectWith();if(e&amp;&amp;a)for(a=e.length-1;a&gt;=0;a--)for(var f=d(e[a]),g=f.length-1;g&gt;=0;g--){var h=d.data(f[g],&quot;sortable&quot;);if(h&amp;&amp;h!=
+this&amp;&amp;!h.options.disabled)c.push([d.isFunction(h.options.items)?h.options.items.call(h.element):d(h.options.items,h.element).not(&quot;.ui-sortable-helper&quot;).not(&quot;.ui-sortable-placeholder&quot;),h])}c.push([d.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):d(this.options.items,this.element).not(&quot;.ui-sortable-helper&quot;).not(&quot;.ui-sortable-placeholder&quot;),this]);for(a=c.length-1;a&gt;=0;a--)c[a][0].each(function(){b.push(this)});return d(b)},_removeCurrentsFromItems:function(){for(var a=
+this.currentItem.find(&quot;:data(sortable-item)&quot;),b=0;b&lt;this.items.length;b++)for(var c=0;c&lt;a.length;c++)a[c]==this.items[b].item[0]&amp;&amp;this.items.splice(b,1)},_refreshItems:function(a){this.items=[];this.containers=[this];var b=this.items,c=[[d.isFunction(this.options.items)?this.options.items.call(this.element[0],a,{item:this.currentItem}):d(this.options.items,this.element),this]],e=this._connectWith();if(e)for(var f=e.length-1;f&gt;=0;f--)for(var g=d(e[f]),h=g.length-1;h&gt;=0;h--){var i=d.data(g[h],&quot;sortable&quot;);
+if(i&amp;&amp;i!=this&amp;&amp;!i.options.disabled){c.push([d.isFunction(i.options.items)?i.options.items.call(i.element[0],a,{item:this.currentItem}):d(i.options.items,i.element),i]);this.containers.push(i)}}for(f=c.length-1;f&gt;=0;f--){a=c[f][1];e=c[f][0];h=0;for(g=e.length;h&lt;g;h++){i=d(e[h]);i.data(&quot;sortable-item&quot;,a);b.push({item:i,instance:a,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 b=this.items.length-1;b&gt;=
+0;b--){var c=this.items[b],e=this.options.toleranceElement?d(this.options.toleranceElement,c.item):c.item;if(!a){c.width=e.outerWidth();c.height=e.outerHeight()}e=e.offset();c.left=e.left;c.top=e.top}if(this.options.custom&amp;&amp;this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(b=this.containers.length-1;b&gt;=0;b--){e=this.containers[b].element.offset();this.containers[b].containerCache.left=e.left;this.containers[b].containerCache.top=e.top;this.containers[b].containerCache.width=
+this.containers[b].element.outerWidth();this.containers[b].containerCache.height=this.containers[b].element.outerHeight()}return this},_createPlaceholder:function(a){var b=a||this,c=b.options;if(!c.placeholder||c.placeholder.constructor==String){var e=c.placeholder;c.placeholder={element:function(){var f=d(document.createElement(b.currentItem[0].nodeName)).addClass(e||b.currentItem[0].className+&quot; ui-sortable-placeholder&quot;).removeClass(&quot;ui-sortable-helper&quot;)[0];if(!e)f.style.visibility=&quot;hidden&quot;;return f},
+update:function(f,g){if(!(e&amp;&amp;!c.forcePlaceholderSize)){g.height()||g.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css(&quot;paddingTop&quot;)||0,10)-parseInt(b.currentItem.css(&quot;paddingBottom&quot;)||0,10));g.width()||g.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css(&quot;paddingLeft&quot;)||0,10)-parseInt(b.currentItem.css(&quot;paddingRight&quot;)||0,10))}}}}b.placeholder=d(c.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);c.placeholder.update(b,b.placeholder)},_contactContainers:function(a){for(var b=
+null,c=null,e=this.containers.length-1;e&gt;=0;e--)if(!d.ui.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(!(b&amp;&amp;d.ui.contains(this.containers[e].element[0],b.element[0]))){b=this.containers[e];c=e}}else if(this.containers[e].containerCache.over){this.containers[e]._trigger(&quot;out&quot;,a,this._uiHash(this));this.containers[e].containerCache.over=0}if(b)if(this.containers.length===1){this.containers[c]._trigger(&quot;over&quot;,a,this._uiHash(this));
+this.containers[c].containerCache.over=1}else if(this.currentContainer!=this.containers[c]){b=1E4;e=null;for(var f=this.positionAbs[this.containers[c].floating?&quot;left&quot;:&quot;top&quot;],g=this.items.length-1;g&gt;=0;g--)if(d.ui.contains(this.containers[c].element[0],this.items[g].item[0])){var h=this.items[g][this.containers[c].floating?&quot;left&quot;:&quot;top&quot;];if(Math.abs(h-f)&lt;b){b=Math.abs(h-f);e=this.items[g]}}if(e||this.options.dropOnEmpty){this.currentContainer=this.containers[c];e?this._rearrange(a,e,null,true):this._rearrange(a,
+null,this.containers[c].element,true);this._trigger(&quot;change&quot;,a,this._uiHash());this.containers[c]._trigger(&quot;change&quot;,a,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[c]._trigger(&quot;over&quot;,a,this._uiHash(this));this.containers[c].containerCache.over=1}}},_createHelper:function(a){var b=this.options;a=d.isFunction(b.helper)?d(b.helper.apply(this.element[0],[a,this.currentItem])):b.helper==&quot;clone&quot;?this.currentItem.clone():this.currentItem;a.parents(&quot;body&quot;).length||
+d(b.appendTo!=&quot;parent&quot;?b.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;||b.forceHelperSize)a.width(this.currentItem.width());if(a[0].style.height==&quot;&quot;||b.forceHelperSize)a.height(this.currentItem.height());return a},_adjustOffsetFromHelper:function(a){if(typeof a==
+&quot;string&quot;)a=a.split(&quot; &quot;);if(d.isArray(a))a={left:+a[0],top:+a[1]||0};if(&quot;left&quot;in a)this.offset.click.left=a.left+this.margins.left;if(&quot;right&quot;in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if(&quot;top&quot;in a)this.offset.click.top=a.top+this.margins.top;if(&quot;bottom&quot;in a)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;d.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;d.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 a=this.options;if(a.containment==&quot;parent&quot;)a.containment=this.helper[0].parentNode;if(a.containment==&quot;document&quot;||a.containment==&quot;window&quot;)this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,d(a.containment==&quot;document&quot;?document:window).width()-this.helperProportions.width-this.margins.left,(d(a.containment==&quot;document&quot;?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-
+this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)){var b=d(a.containment)[0];a=d(a.containment).offset();var c=d(b).css(&quot;overflow&quot;)!=&quot;hidden&quot;;this.containment=[a.left+(parseInt(d(b).css(&quot;borderLeftWidth&quot;),10)||0)+(parseInt(d(b).css(&quot;paddingLeft&quot;),10)||0)-this.margins.left,a.top+(parseInt(d(b).css(&quot;borderTopWidth&quot;),10)||0)+(parseInt(d(b).css(&quot;paddingTop&quot;),10)||0)-this.margins.top,a.left+(c?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css(&quot;borderLeftWidth&quot;),
+10)||0)-(parseInt(d(b).css(&quot;paddingRight&quot;),10)||0)-this.helperProportions.width-this.margins.left,a.top+(c?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css(&quot;borderTopWidth&quot;),10)||0)-(parseInt(d(b).css(&quot;paddingBottom&quot;),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(a,b){if(!b)b=this.position;a=a==&quot;absolute&quot;?1:-1;var c=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?
+this.offsetParent:this.scrollParent,e=/(html|body)/i.test(c[0].tagName);return{top:b.top+this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():e?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-(d.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():e?0:c.scrollLeft())*a)}},_generatePosition:function(a){var b=
+this.options,c=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(c[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 f=a.pageX,g=a.pageY;if(this.originalPosition){if(this.containment){if(a.pageX-this.offset.click.left&lt;this.containment[0])f=this.containment[0]+
+this.offset.click.left;if(a.pageY-this.offset.click.top&lt;this.containment[1])g=this.containment[1]+this.offset.click.top;if(a.pageX-this.offset.click.left&gt;this.containment[2])f=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top&gt;this.containment[3])g=this.containment[3]+this.offset.click.top}if(b.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/b.grid[1])*b.grid[1];g=this.containment?!(g-this.offset.click.top&lt;this.containment[1]||g-this.offset.click.top&gt;this.containment[3])?
+g:!(g-this.offset.click.top&lt;this.containment[1])?g-b.grid[1]:g+b.grid[1]:g;f=this.originalPageX+Math.round((f-this.originalPageX)/b.grid[0])*b.grid[0];f=this.containment?!(f-this.offset.click.left&lt;this.containment[0]||f-this.offset.click.left&gt;this.containment[2])?f:!(f-this.offset.click.left&lt;this.containment[0])?f-b.grid[0]:f+b.grid[0]:f}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(d.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():
+e?0:c.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(d.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():e?0:c.scrollLeft())}},_rearrange:function(a,b,c,e){c?c[0].appendChild(this.placeholder[0]):b.item[0].parentNode.insertBefore(this.placeholder[0],this.direction==&quot;down&quot;?b.item[0]:b.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var f=this,g=this.counter;window.setTimeout(function(){g==
+f.counter&amp;&amp;f.refreshPositions(!e)},0)},_clear:function(a,b){this.reverting=false;var c=[];!this._noFinalSort&amp;&amp;this.currentItem[0].parentNode&amp;&amp;this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var e in this._storedCSS)if(this._storedCSS[e]==&quot;auto&quot;||this._storedCSS[e]==&quot;static&quot;)this._storedCSS[e]=&quot;&quot;;this.currentItem.css(this._storedCSS).removeClass(&quot;ui-sortable-helper&quot;)}else this.currentItem.show();this.fromOutside&amp;&amp;!b&amp;&amp;c.push(function(f){this._trigger(&quot;receive&quot;,
+f,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;!b)c.push(function(f){this._trigger(&quot;update&quot;,f,this._uiHash())});if(!d.ui.contains(this.element[0],this.currentItem[0])){b||c.push(function(f){this._trigger(&quot;remove&quot;,f,this._uiHash())});for(e=this.containers.length-1;e&gt;=0;e--)if(d.ui.contains(this.containers[e].element[0],this.currentItem[0])&amp;&amp;!b){c.push(function(f){return function(g){f._trigger(&quot;receive&quot;,
+g,this._uiHash(this))}}.call(this,this.containers[e]));c.push(function(f){return function(g){f._trigger(&quot;update&quot;,g,this._uiHash(this))}}.call(this,this.containers[e]))}}for(e=this.containers.length-1;e&gt;=0;e--){b||c.push(function(f){return function(g){f._trigger(&quot;deactivate&quot;,g,this._uiHash(this))}}.call(this,this.containers[e]));if(this.containers[e].containerCache.over){c.push(function(f){return function(g){f._trigger(&quot;out&quot;,g,this._uiHash(this))}}.call(this,this.containers[e]));this.containers[e].containerCache.over=
+0}}this._storedCursor&amp;&amp;d(&quot;body&quot;).css(&quot;cursor&quot;,this._storedCursor);this._storedOpacity&amp;&amp;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(!b){this._trigger(&quot;beforeStop&quot;,a,this._uiHash());for(e=0;e&lt;c.length;e++)c[e].call(this,a);this._trigger(&quot;stop&quot;,a,this._uiHash())}return false}b||this._trigger(&quot;beforeStop&quot;,a,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
+this.helper[0]!=this.currentItem[0]&amp;&amp;this.helper.remove();this.helper=null;if(!b){for(e=0;e&lt;c.length;e++)c[e].call(this,a);this._trigger(&quot;stop&quot;,a,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){d.Widget.prototype._trigger.apply(this,arguments)===false&amp;&amp;this.cancel()},_uiHash:function(a){var b=a||this;return{helper:b.helper,placeholder:b.placeholder||d([]),position:b.position,originalPosition:b.originalPosition,offset:b.positionAbs,item:b.currentItem,sender:a?a.element:null}}});
+d.extend(d.ui.sortable,{version:&quot;1.8.5&quot;})})(jQuery);
</ins></span></pre></div>
<a id="trunkwpincludesjsjqueryuitabsjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/jquery/ui.tabs.js (15710 => 15711)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/jquery/ui.tabs.js        2010-10-04 15:32:54 UTC (rev 15710)
+++ trunk/wp-includes/js/jquery/ui.tabs.js        2010-10-04 16:19:18 UTC (rev 15711)
</span><span class="lines">@@ -1,13 +1,35 @@
</span><span class="cx"> /*
</span><del>- * jQuery UI Tabs 1.7.3
</del><ins>+ * jQuery UI Tabs 1.8.5
</ins><span class="cx">  *
</span><del>- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
</del><ins>+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
</ins><span class="cx">  *
</span><span class="cx">  * http://docs.jquery.com/UI/Tabs
</span><span class="cx">  *
</span><span class="cx">  * Depends:
</span><del>- *        ui.core.js
</del><ins>+ *        jquery.ui.core.js
+ *        jquery.ui.widget.js
</ins><span class="cx">  */
</span><del>-(function(c){var b=0,a=0;c.widget(&quot;ui.tabs&quot;,{_init:function(){if(this.options.deselectable!==undefined){this.options.collapsible=this.options.deselectable}this._tabify(true)},_setData:function(d,e){if(d==&quot;selected&quot;){if(this.options.collapsible&amp;&amp;e==this.options.selected){return}this.select(e)}else{this.options[d]=e;if(d==&quot;deselectable&quot;){this.options.collapsible=e}this._tabify()}},_tabId:function(d){return d.title&amp;&amp;d.title.replace(/\s/g,&quot;_&quot;).replace(/[^A-Za-z0-9\-_:\.]/g,&quot;&quot;)||this.options.idPrefix+(++b)},_sanitizeSelector:function(d){return d.replace(/:/g,&quot;\\:&quot;)},_cookie:function(){var d=this.cookie||(this.cookie=this.options.cookie.name||&quot;ui-tabs-&quot;+(++a));return c.cookie.apply(null,[d].concat(c.makeArray(arguments)))},_ui:function(e,d){return{tab:e,panel:d,index:this.anchors.index(e)}},_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 d=c(this);d.html(d.data(&quot;label.tabs&quot;)).removeData(&quot;label.tabs&quot;)})},_tabify:function(q){this.list=this.element.children(&quot;ul:first&quot;);this.lis=c(&quot;li:has(a[href])&quot;,this.list);this.anchors=this.lis.map(function(){return c(&quot;a&quot;,this)[0]});this.panels=c([]);var r=this,f=this.options;var e=/^#.+/;this.anchors.each(function(u,o){var s=c(o).attr(&quot;href&quot;);var v=s.split(&quot;#&quot;)[0],w;if(v&amp;&amp;(v===location.toString().split(&quot;#&quot;)[0]||(w=c(&quot;base&quot;)[0])&amp;&amp;v===w.href)){s=o.hash;o.href=s}if(e.test(s)){r.panels=r.panels.add(r._sanitizeSelector(s))}else{if(s!=&quot;#&quot;){c.data(o,&quot;href.tabs&quot;,s);c.data(o,&quot;load.tabs&quot;,s.replace(/#.*$/,&quot;&quot;));var y=r._tabId(o);o.href=&quot;#&quot;+y;var x=c(&quot;#&quot;+y);if(!x.length){x=c(f.panelTemplate).attr(&quot;id&quot;,y).addClass(&quot;ui-tabs-panel ui-widget-content ui-corner-bottom&quot;).insertAfter(r.panels[u-1]||r.list);x.data(&quot;destroy.tabs&quot;,true)}r.panels=r.panels.add(x)}else{f.disabled.push(u)}}});if(q){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(f.selected===undefined){if(location.hash){this.anchors.each(function(s,o){if(o.hash==location.hash){f.selected=s;return false}})}if(typeof f.selected!=&quot;number&quot;&amp;&amp;f.cookie){f.selected=parseInt(r._cookie(),10)}if(typeof f.selected!=&quot;number&quot;&amp;&amp;this.lis.filter(&quot;.ui-tabs-selected&quot;).length){f.selected=this.lis.index(this.lis.filter(&quot;.ui-tabs-selected&quot;))}f.selected=f.selected||0}else{if(f.selected===null){f.selected=-1}}f.selected=((f.selected&gt;=0&amp;&amp;this.anchors[f.selected])||f.selected&lt;0)?f.selected:0;f.disabled=c.unique(f.disabled.concat(c.map(this.lis.filter(&quot;.ui-state-disabled&quot;),function(s,o){return r.lis.index(s)}))).sort();if(c.inArray(f.selected,f.disabled)!=-1){f.disabled.splice(c.inArray(f.selected,f.disabled),1)}this.panels.addClass(&quot;ui-tabs-hide&quot;);this.lis.removeClass(&quot;ui-tabs-selected ui-state-active&quot;);if(f.selected&gt;=0&amp;&amp;this.anchors.length){this.panels.eq(f.selected).removeClass(&quot;ui-tabs-hide&quot;);this.lis.eq(f.selected).addClass(&quot;ui-tabs-selected ui-state-active&quot;);r.element.queue(&quot;tabs&quot;,function(){r._trigger(&quot;show&quot;,null,r._ui(r.anchors[f.selected],r.panels[f.selected]))});this.load(f.selected)}c(window).bind(&quot;unload&quot;,function(){r.lis.add(r.anchors).unbind(&quot;.tabs&quot;);r.lis=r.anchors=r.panels=null})}else{f.selected=this.lis.index(this.lis.filter(&quot;.ui-tabs-selected&quot;))}this.element[f.collapsible?&quot;addClass&quot;:&quot;removeClass&quot;](&quot;ui-tabs-collapsible&quot;);if(f.cookie){this._cookie(f.selected,f.cookie)}for(var j=0,p;(p=this.lis[j]);j++){c(p)[c.inArray(j,f.disabled)!=-1&amp;&amp;!c(p).hasClass(&quot;ui-tabs-selected&quot;)?&quot;addClass&quot;:&quot;removeClass&quot;](&quot;ui-state-disabled&quot;)}if(f.cache===false){this.anchors.removeData(&quot;cache.tabs&quot;)}this.lis.add(this.anchors).unbind(&quot;.tabs&quot;);if(f.event!=&quot;mouseover&quot;){var h=function(o,i){if(i.is(&quot;:not(.ui-state-disabled)&quot;)){i.addClass(&quot;ui-state-&quot;+o)}};var l=function(o,i){i.removeClass(&quot;ui-state-&quot;+o)};this.lis.bind(&quot;mouseover.tabs&quot;,function(){h(&quot;hover&quot;,c(this))});this.lis.bind(&quot;mouseout.tabs&quot;,function(){l(&quot;hover&quot;,c(this))});this.anchors.bind(&quot;focus.tabs&quot;,function(){h(&quot;focus&quot;,c(this).closest(&quot;li&quot;))});this.anchors.bind(&quot;blur.tabs&quot;,function(){l(&quot;focus&quot;,c(this).closest(&quot;li&quot;))})}var d,k;if(f.fx){if(c.isArray(f.fx)){d=f.fx[0];k=f.fx[1]}else{d=k=f.fx}}function g(i,o){i.css({display:&quot;&quot;});if(c.browser.msie&amp;&amp;o.opacity){i[0].style.removeAttribute(&quot;filter&quot;)}}var m=k?function(i,o){c(i).closest(&quot;li&quot;).removeClass(&quot;ui-state-default&quot;).addClass(&quot;ui-tabs-selected ui-state-active&quot;);o.hide().removeClass(&quot;ui-tabs-hide&quot;).animate(k,k.duration||&quot;normal&quot;,function(){g(o,k);r._trigger(&quot;show&quot;,null,r._ui(i,o[0]))})}:function(i,o){c(i).closest(&quot;li&quot;).removeClass(&quot;ui-state-default&quot;).addClass(&quot;ui-tabs-selected ui-state-active&quot;);o.removeClass(&quot;ui-tabs-hide&quot;);r._trigger(&quot;show&quot;,null,r._ui(i,o[0]))};var n=d?function(o,i){i.animate(d,d.duration||&quot;normal&quot;,function(){r.lis.removeClass(&quot;ui-tabs-selected ui-state-active&quot;).addClass(&quot;ui-state-default&quot;);i.addClass(&quot;ui-tabs-hide&quot;);g(i,d);r.element.dequeue(&quot;tabs&quot;)})}:function(o,i,s){r.lis.removeClass(&quot;ui-tabs-selected ui-state-active&quot;).addClass(&quot;ui-state-default&quot;);i.addClass(&quot;ui-tabs-hide&quot;);r.element.dequeue(&quot;tabs&quot;)};this.anchors.bind(f.event+&quot;.tabs&quot;,function(){var o=this,u=c(this).closest(&quot;li&quot;),i=r.panels.filter(&quot;:not(.ui-tabs-hide)&quot;),s=c(r._sanitizeSelector(this.hash));if((u.hasClass(&quot;ui-tabs-selected&quot;)&amp;&amp;!f.collapsible)||u.hasClass(&quot;ui-state-disabled&quot;)||u.hasClass(&quot;ui-state-processing&quot;)||r._trigger(&quot;select&quot;,null,r._ui(this,s[0]))===false){this.blur();return false}f.selected=r.anchors.index(this);r.abort();if(f.collapsible){if(u.hasClass(&quot;ui-tabs-selected&quot;)){f.selected=-1;if(f.cookie){r._cookie(f.selected,f.cookie)}r.element.queue(&quot;tabs&quot;,function(){n(o,i)}).dequeue(&quot;tabs&quot;);this.blur();return false}else{if(!i.length){if(f.cookie){r._cookie(f.selected,f.cookie)}r.element.queue(&quot;tabs&quot;,function(){m(o,s)});r.load(r.anchors.index(this));this.blur();return false}}}if(f.cookie){r._cookie(f.selected,f.cookie)}if(s.length){if(i.length){r.element.queue(&quot;tabs&quot;,function(){n(o,i)})}r.element.queue(&quot;tabs&quot;,function(){m(o,s)});r.load(r.anchors.index(this))}else{throw&quot;jQuery UI Tabs: Mismatching fragment identifier.&quot;}if(c.browser.msie){this.blur()}});this.anchors.bind(&quot;click.tabs&quot;,function(){return false})},destroy:function(){var d=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 e=c.data(this,&quot;href.tabs&quot;);if(e){this.href=e}var f=c(this).unbind(&quot;.tabs&quot;);c.each([&quot;href&quot;,&quot;load&quot;,&quot;cache&quot;],function(g,h){f.removeData(h+&quot;.tabs&quot;)})});this.lis.unbind(&quot;.tabs&quot;).add(this.panels).each(function(){if(c.data(this,&quot;destroy.tabs&quot;)){c(this).remove()}else{c(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(d.cookie){this._cookie(null,d.cookie)}},add:function(g,f,e){if(e===undefined){e=this.anchors.length}var d=this,i=this.options,k=c(i.tabTemplate.replace(/#\{href\}/g,g).replace(/#\{label\}/g,f)),j=!g.indexOf(&quot;#&quot;)?g.replace(&quot;#&quot;,&quot;&quot;):this._tabId(c(&quot;a&quot;,k)[0]);k.addClass(&quot;ui-state-default ui-corner-top&quot;).data(&quot;destroy.tabs&quot;,true);var h=c(&quot;#&quot;+j);if(!h.length){h=c(i.panelTemplate).attr(&quot;id&quot;,j).data(&quot;destroy.tabs&quot;,true)}h.addClass(&quot;ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide&quot;);if(e&gt;=this.lis.length){k.appendTo(this.list);h.appendTo(this.list[0].parentNode)}else{k.insertBefore(this.lis[e]);h.insertBefore(this.panels[e])}i.disabled=c.map(i.disabled,function(m,l){return m&gt;=e?++m:m});this._tabify();if(this.anchors.length==1){k.addClass(&quot;ui-tabs-selected ui-state-active&quot;);h.removeClass(&quot;ui-tabs-hide&quot;);this.element.queue(&quot;tabs&quot;,function(){d._trigger(&quot;show&quot;,null,d._ui(d.anchors[0],d.panels[0]))});this.load(0)}this._trigger(&quot;add&quot;,null,this._ui(this.anchors[e],this.panels[e]))},remove:function(d){var f=this.options,g=this.lis.eq(d).remove(),e=this.panels.eq(d).remove();if(g.hasClass(&quot;ui-tabs-selected&quot;)&amp;&amp;this.anchors.length&gt;1){this.select(d+(d+1&lt;this.anchors.length?1:-1))}f.disabled=c.map(c.grep(f.disabled,function(j,h){return j!=d}),function(j,h){return j&gt;=d?--j:j});this._tabify();this._trigger(&quot;remove&quot;,null,this._ui(g.find(&quot;a&quot;)[0],e[0]))},enable:function(d){var e=this.options;if(c.inArray(d,e.disabled)==-1){return}this.lis.eq(d).removeClass(&quot;ui-state-disabled&quot;);e.disabled=c.grep(e.disabled,function(g,f){return g!=d});this._trigger(&quot;enable&quot;,null,this._ui(this.anchors[d],this.panels[d]))},disable:function(e){var d=this,f=this.options;if(e!=f.selected){this.lis.eq(e).addClass(&quot;ui-state-disabled&quot;);f.disabled.push(e);f.disabled.sort();this._trigger(&quot;disable&quot;,null,this._ui(this.anchors[e],this.panels[e]))}},select:function(d){if(typeof d==&quot;string&quot;){d=this.anchors.index(this.anchors.filter(&quot;[href$=&quot;+d+&quot;]&quot;))}else{if(d===null){d=-1}}if(d==-1&amp;&amp;this.options.collapsible){d=this.options.selected}this.anchors.eq(d).trigger(this.options.event+&quot;.tabs&quot;)},load:function(g){var e=this,i=this.options,d=this.anchors.eq(g)[0],f=c.data(d,&quot;load.tabs&quot;);this.abort();if(!f||this.element.queue(&quot;tabs&quot;).length!==0&amp;&amp;c.data(d,&quot;cache.tabs&quot;)){this.element.dequeue(&quot;tabs&quot;);return}this.lis.eq(g).addClass(&quot;ui-state-processing&quot;);if(i.spinner){var h=c(&quot;span&quot;,d);h.data(&quot;label.tabs&quot;,h.html()).html(i.spinner)}this.xhr=c.ajax(c.extend({},i.ajaxOptions,{url:f,success:function(k,j){c(e._sanitizeSelector(d.hash)).html(k);e._cleanup();if(i.cache){c.data(d,&quot;cache.tabs&quot;,true)}e._trigger(&quot;load&quot;,null,e._ui(e.anchors[g],e.panels[g]));try{i.ajaxOptions.success(k,j)}catch(l){}e.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(e,d){this.anchors.eq(e).removeData(&quot;cache.tabs&quot;).data(&quot;load.tabs&quot;,d)},length:function(){return this.anchors.length}});c.extend(c.ui.tabs,{version:&quot;1.7.3&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;'}});c.extend(c.ui.tabs.prototype,{rotation:null,rotate:function(f,h){var d=this,i=this.options;var e=d._rotate||(d._rotate=function(j){clearTimeout(d.rotation);d.rotation=setTimeout(function(){var k=i.selected;d.select(++k&lt;d.anchors.length?k:0)},f);if(j){j.stopPropagation()}});var g=d._unrotate||(d._unrotate=!h?function(j){if(j.clientX){d.rotate(null)}}:function(j){t=i.selected;e()});if(f){this.element.bind(&quot;tabsshow&quot;,e);this.anchors.bind(i.event+&quot;.tabs&quot;,g);e()}else{clearTimeout(d.rotation);this.element.unbind(&quot;tabsshow&quot;,e);this.anchors.unbind(i.event+&quot;.tabs&quot;,g);delete this._rotate;delete this._unrotate}}})})(jQuery);
</del><ins>+(function(d,p){function u(){return++v}function w(){return++x}var v=0,x=0;d.widget(&quot;ui.tabs&quot;,{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:&quot;click&quot;,fx:null,idPrefix:&quot;ui-tabs-&quot;,load:null,panelTemplate:&quot;&lt;div&gt;&lt;/div&gt;&quot;,remove:null,select:null,show:null,spinner:&quot;&lt;em&gt;Loading&amp;#8230;&lt;/em&gt;&quot;,tabTemplate:&quot;&lt;li&gt;&lt;a href='#{href}'&gt;&lt;span&gt;#{label}&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&quot;},_create:function(){this._tabify(true)},_setOption:function(a,e){if(a==&quot;selected&quot;)this.options.collapsible&amp;&amp;
+e==this.options.selected||this.select(e);else{this.options[a]=e;this._tabify()}},_tabId:function(a){return a.title&amp;&amp;a.title.replace(/\s/g,&quot;_&quot;).replace(/[^\w\u00c0-\uFFFF-]/g,&quot;&quot;)||this.options.idPrefix+u()},_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;+w());return d.cookie.apply(null,[a].concat(d.makeArray(arguments)))},_ui:function(a,e){return{tab:a,panel:e,index:this.anchors.index(a)}},_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=
+d(this);a.html(a.data(&quot;label.tabs&quot;)).removeData(&quot;label.tabs&quot;)})},_tabify:function(a){function e(g,f){g.css(&quot;display&quot;,&quot;&quot;);!d.support.opacity&amp;&amp;f.opacity&amp;&amp;g[0].style.removeAttribute(&quot;filter&quot;)}var b=this,c=this.options,h=/^#.+/;this.list=this.element.find(&quot;ol,ul&quot;).eq(0);this.lis=d(&quot; &gt; li:has(a[href])&quot;,this.list);this.anchors=this.lis.map(function(){return d(&quot;a&quot;,this)[0]});this.panels=d([]);this.anchors.each(function(g,f){var i=d(f).attr(&quot;href&quot;),l=i.split(&quot;#&quot;)[0],q;if(l&amp;&amp;(l===location.toString().split(&quot;#&quot;)[0]||
+(q=d(&quot;base&quot;)[0])&amp;&amp;l===q.href)){i=f.hash;f.href=i}if(h.test(i))b.panels=b.panels.add(b._sanitizeSelector(i));else if(i&amp;&amp;i!==&quot;#&quot;){d.data(f,&quot;href.tabs&quot;,i);d.data(f,&quot;load.tabs&quot;,i.replace(/#.*$/,&quot;&quot;));i=b._tabId(f);f.href=&quot;#&quot;+i;f=d(&quot;#&quot;+i);if(!f.length){f=d(c.panelTemplate).attr(&quot;id&quot;,i).addClass(&quot;ui-tabs-panel ui-widget-content ui-corner-bottom&quot;).insertAfter(b.panels[g-1]||b.list);f.data(&quot;destroy.tabs&quot;,true)}b.panels=b.panels.add(f)}else c.disabled.push(g)});if(a){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(c.selected===p){location.hash&amp;&amp;this.anchors.each(function(g,f){if(f.hash==location.hash){c.selected=g;return false}});if(typeof c.selected!==&quot;number&quot;&amp;&amp;c.cookie)c.selected=parseInt(b._cookie(),10);if(typeof c.selected!==&quot;number&quot;&amp;&amp;this.lis.filter(&quot;.ui-tabs-selected&quot;).length)c.selected=
+this.lis.index(this.lis.filter(&quot;.ui-tabs-selected&quot;));c.selected=c.selected||(this.lis.length?0:-1)}else if(c.selected===null)c.selected=-1;c.selected=c.selected&gt;=0&amp;&amp;this.anchors[c.selected]||c.selected&lt;0?c.selected:0;c.disabled=d.unique(c.disabled.concat(d.map(this.lis.filter(&quot;.ui-state-disabled&quot;),function(g){return b.lis.index(g)}))).sort();d.inArray(c.selected,c.disabled)!=-1&amp;&amp;c.disabled.splice(d.inArray(c.selected,c.disabled),1);this.panels.addClass(&quot;ui-tabs-hide&quot;);this.lis.removeClass(&quot;ui-tabs-selected ui-state-active&quot;);
+if(c.selected&gt;=0&amp;&amp;this.anchors.length){this.panels.eq(c.selected).removeClass(&quot;ui-tabs-hide&quot;);this.lis.eq(c.selected).addClass(&quot;ui-tabs-selected ui-state-active&quot;);b.element.queue(&quot;tabs&quot;,function(){b._trigger(&quot;show&quot;,null,b._ui(b.anchors[c.selected],b.panels[c.selected]))});this.load(c.selected)}d(window).bind(&quot;unload&quot;,function(){b.lis.add(b.anchors).unbind(&quot;.tabs&quot;);b.lis=b.anchors=b.panels=null})}else c.selected=this.lis.index(this.lis.filter(&quot;.ui-tabs-selected&quot;));this.element[c.collapsible?&quot;addClass&quot;:
+&quot;removeClass&quot;](&quot;ui-tabs-collapsible&quot;);c.cookie&amp;&amp;this._cookie(c.selected,c.cookie);a=0;for(var j;j=this.lis[a];a++)d(j)[d.inArray(a,c.disabled)!=-1&amp;&amp;!d(j).hasClass(&quot;ui-tabs-selected&quot;)?&quot;addClass&quot;:&quot;removeClass&quot;](&quot;ui-state-disabled&quot;);c.cache===false&amp;&amp;this.anchors.removeData(&quot;cache.tabs&quot;);this.lis.add(this.anchors).unbind(&quot;.tabs&quot;);if(c.event!==&quot;mouseover&quot;){var k=function(g,f){f.is(&quot;:not(.ui-state-disabled)&quot;)&amp;&amp;f.addClass(&quot;ui-state-&quot;+g)},n=function(g,f){f.removeClass(&quot;ui-state-&quot;+g)};this.lis.bind(&quot;mouseover.tabs&quot;,
+function(){k(&quot;hover&quot;,d(this))});this.lis.bind(&quot;mouseout.tabs&quot;,function(){n(&quot;hover&quot;,d(this))});this.anchors.bind(&quot;focus.tabs&quot;,function(){k(&quot;focus&quot;,d(this).closest(&quot;li&quot;))});this.anchors.bind(&quot;blur.tabs&quot;,function(){n(&quot;focus&quot;,d(this).closest(&quot;li&quot;))})}var m,o;if(c.fx)if(d.isArray(c.fx)){m=c.fx[0];o=c.fx[1]}else m=o=c.fx;var r=o?function(g,f){d(g).closest(&quot;li&quot;).addClass(&quot;ui-tabs-selected ui-state-active&quot;);f.hide().removeClass(&quot;ui-tabs-hide&quot;).animate(o,o.duration||&quot;normal&quot;,function(){e(f,o);b._trigger(&quot;show&quot;,
+null,b._ui(g,f[0]))})}:function(g,f){d(g).closest(&quot;li&quot;).addClass(&quot;ui-tabs-selected ui-state-active&quot;);f.removeClass(&quot;ui-tabs-hide&quot;);b._trigger(&quot;show&quot;,null,b._ui(g,f[0]))},s=m?function(g,f){f.animate(m,m.duration||&quot;normal&quot;,function(){b.lis.removeClass(&quot;ui-tabs-selected ui-state-active&quot;);f.addClass(&quot;ui-tabs-hide&quot;);e(f,m);b.element.dequeue(&quot;tabs&quot;)})}:function(g,f){b.lis.removeClass(&quot;ui-tabs-selected ui-state-active&quot;);f.addClass(&quot;ui-tabs-hide&quot;);b.element.dequeue(&quot;tabs&quot;)};this.anchors.bind(c.event+&quot;.tabs&quot;,
+function(){var g=this,f=d(g).closest(&quot;li&quot;),i=b.panels.filter(&quot;:not(.ui-tabs-hide)&quot;),l=d(b._sanitizeSelector(g.hash));if(f.hasClass(&quot;ui-tabs-selected&quot;)&amp;&amp;!c.collapsible||f.hasClass(&quot;ui-state-disabled&quot;)||f.hasClass(&quot;ui-state-processing&quot;)||b.panels.filter(&quot;:animated&quot;).length||b._trigger(&quot;select&quot;,null,b._ui(this,l[0]))===false){this.blur();return false}c.selected=b.anchors.index(this);b.abort();if(c.collapsible)if(f.hasClass(&quot;ui-tabs-selected&quot;)){c.selected=-1;c.cookie&amp;&amp;b._cookie(c.selected,c.cookie);b.element.queue(&quot;tabs&quot;,
+function(){s(g,i)}).dequeue(&quot;tabs&quot;);this.blur();return false}else if(!i.length){c.cookie&amp;&amp;b._cookie(c.selected,c.cookie);b.element.queue(&quot;tabs&quot;,function(){r(g,l)});b.load(b.anchors.index(this));this.blur();return false}c.cookie&amp;&amp;b._cookie(c.selected,c.cookie);if(l.length){i.length&amp;&amp;b.element.queue(&quot;tabs&quot;,function(){s(g,i)});b.element.queue(&quot;tabs&quot;,function(){r(g,l)});b.load(b.anchors.index(this))}else throw&quot;jQuery UI Tabs: Mismatching fragment identifier.&quot;;d.browser.msie&amp;&amp;this.blur()});this.anchors.bind(&quot;click.tabs&quot;,
+function(){return false})},_getIndex:function(a){if(typeof a==&quot;string&quot;)a=this.anchors.index(this.anchors.filter(&quot;[href$=&quot;+a+&quot;]&quot;));return a},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 e=d.data(this,&quot;href.tabs&quot;);if(e)this.href=
+e;var b=d(this).unbind(&quot;.tabs&quot;);d.each([&quot;href&quot;,&quot;load&quot;,&quot;cache&quot;],function(c,h){b.removeData(h+&quot;.tabs&quot;)})});this.lis.unbind(&quot;.tabs&quot;).add(this.panels).each(function(){d.data(this,&quot;destroy.tabs&quot;)?d(this).remove():d(this).removeClass(&quot;ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide&quot;)});a.cookie&amp;&amp;this._cookie(null,a.cookie);return this},add:function(a,e,b){if(b===p)b=this.anchors.length;
+var c=this,h=this.options;e=d(h.tabTemplate.replace(/#\{href\}/g,a).replace(/#\{label\}/g,e));a=!a.indexOf(&quot;#&quot;)?a.replace(&quot;#&quot;,&quot;&quot;):this._tabId(d(&quot;a&quot;,e)[0]);e.addClass(&quot;ui-state-default ui-corner-top&quot;).data(&quot;destroy.tabs&quot;,true);var j=d(&quot;#&quot;+a);j.length||(j=d(h.panelTemplate).attr(&quot;id&quot;,a).data(&quot;destroy.tabs&quot;,true));j.addClass(&quot;ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide&quot;);if(b&gt;=this.lis.length){e.appendTo(this.list);j.appendTo(this.list[0].parentNode)}else{e.insertBefore(this.lis[b]);
+j.insertBefore(this.panels[b])}h.disabled=d.map(h.disabled,function(k){return k&gt;=b?++k:k});this._tabify();if(this.anchors.length==1){h.selected=0;e.addClass(&quot;ui-tabs-selected ui-state-active&quot;);j.removeClass(&quot;ui-tabs-hide&quot;);this.element.queue(&quot;tabs&quot;,function(){c._trigger(&quot;show&quot;,null,c._ui(c.anchors[0],c.panels[0]))});this.load(0)}this._trigger(&quot;add&quot;,null,this._ui(this.anchors[b],this.panels[b]));return this},remove:function(a){a=this._getIndex(a);var e=this.options,b=this.lis.eq(a).remove(),c=this.panels.eq(a).remove();
+if(b.hasClass(&quot;ui-tabs-selected&quot;)&amp;&amp;this.anchors.length&gt;1)this.select(a+(a+1&lt;this.anchors.length?1:-1));e.disabled=d.map(d.grep(e.disabled,function(h){return h!=a}),function(h){return h&gt;=a?--h:h});this._tabify();this._trigger(&quot;remove&quot;,null,this._ui(b.find(&quot;a&quot;)[0],c[0]));return this},enable:function(a){a=this._getIndex(a);var e=this.options;if(d.inArray(a,e.disabled)!=-1){this.lis.eq(a).removeClass(&quot;ui-state-disabled&quot;);e.disabled=d.grep(e.disabled,function(b){return b!=a});this._trigger(&quot;enable&quot;,null,
+this._ui(this.anchors[a],this.panels[a]));return this}},disable:function(a){a=this._getIndex(a);var e=this.options;if(a!=e.selected){this.lis.eq(a).addClass(&quot;ui-state-disabled&quot;);e.disabled.push(a);e.disabled.sort();this._trigger(&quot;disable&quot;,null,this._ui(this.anchors[a],this.panels[a]))}return this},select:function(a){a=this._getIndex(a);if(a==-1)if(this.options.collapsible&amp;&amp;this.options.selected!=-1)a=this.options.selected;else return this;this.anchors.eq(a).trigger(this.options.event+&quot;.tabs&quot;);return this},
+load:function(a){a=this._getIndex(a);var e=this,b=this.options,c=this.anchors.eq(a)[0],h=d.data(c,&quot;load.tabs&quot;);this.abort();if(!h||this.element.queue(&quot;tabs&quot;).length!==0&amp;&amp;d.data(c,&quot;cache.tabs&quot;))this.element.dequeue(&quot;tabs&quot;);else{this.lis.eq(a).addClass(&quot;ui-state-processing&quot;);if(b.spinner){var j=d(&quot;span&quot;,c);j.data(&quot;label.tabs&quot;,j.html()).html(b.spinner)}this.xhr=d.ajax(d.extend({},b.ajaxOptions,{url:h,success:function(k,n){d(e._sanitizeSelector(c.hash)).html(k);e._cleanup();b.cache&amp;&amp;d.data(c,&quot;cache.tabs&quot;,
+true);e._trigger(&quot;load&quot;,null,e._ui(e.anchors[a],e.panels[a]));try{b.ajaxOptions.success(k,n)}catch(m){}},error:function(k,n){e._cleanup();e._trigger(&quot;load&quot;,null,e._ui(e.anchors[a],e.panels[a]));try{b.ajaxOptions.error(k,n,a,c)}catch(m){}}}));e.element.dequeue(&quot;tabs&quot;);return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue(&quot;tabs&quot;,this.element.queue(&quot;tabs&quot;).splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},url:function(a,
+e){this.anchors.eq(a).removeData(&quot;cache.tabs&quot;).data(&quot;load.tabs&quot;,e);return this},length:function(){return this.anchors.length}});d.extend(d.ui.tabs,{version:&quot;1.8.5&quot;});d.extend(d.ui.tabs.prototype,{rotation:null,rotate:function(a,e){var b=this,c=this.options,h=b._rotate||(b._rotate=function(j){clearTimeout(b.rotation);b.rotation=setTimeout(function(){var k=c.selected;b.select(++k&lt;b.anchors.length?k:0)},a);j&amp;&amp;j.stopPropagation()});e=b._unrotate||(b._unrotate=!e?function(j){j.clientX&amp;&amp;b.rotate(null)}:
+function(){t=c.selected;h()});if(a){this.element.bind(&quot;tabsshow&quot;,h);this.anchors.bind(c.event+&quot;.tabs&quot;,e);h()}else{clearTimeout(b.rotation);this.element.unbind(&quot;tabsshow&quot;,h);this.anchors.unbind(c.event+&quot;.tabs&quot;,e);delete this._rotate;delete this._unrotate}return this}})})(jQuery);
</ins></span></pre></div>
<a id="trunkwpincludesjsjqueryuiwidgetjs"></a>
<div class="addfile"><h4>Added: trunk/wp-includes/js/jquery/ui.widget.js (0 => 15711)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/jquery/ui.widget.js                                (rev 0)
+++ trunk/wp-includes/js/jquery/ui.widget.js        2010-10-04 16:19:18 UTC (rev 15711)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+/*!
+ * jQuery UI Widget 1.8.5
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Widget
+ */
+(function(b,j){if(b.cleanData){var k=b.cleanData;b.cleanData=function(a){for(var c=0,d;(d=a[c])!=null;c++)b(d).triggerHandler(&quot;remove&quot;);k(a)}}else{var l=b.fn.remove;b.fn.remove=function(a,c){return this.each(function(){if(!c)if(!a||b.filter(a,[this]).length)b(&quot;*&quot;,this).add([this]).each(function(){b(this).triggerHandler(&quot;remove&quot;)});return l.call(b(this),a,c)})}}b.widget=function(a,c,d){var e=a.split(&quot;.&quot;)[0],f;a=a.split(&quot;.&quot;)[1];f=e+&quot;-&quot;+a;if(!d){d=c;c=b.Widget}b.expr[&quot;:&quot;][f]=function(h){return!!b.data(h,
+a)};b[e]=b[e]||{};b[e][a]=function(h,g){arguments.length&amp;&amp;this._createWidget(h,g)};c=new c;c.options=b.extend(true,{},c.options);b[e][a].prototype=b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);b.widget.bridge(a,b[e][a])};b.widget.bridge=function(a,c){b.fn[a]=function(d){var e=typeof d===&quot;string&quot;,f=Array.prototype.slice.call(arguments,1),h=this;d=!e&amp;&amp;f.length?b.extend.apply(null,[true,d].concat(f)):d;if(e&amp;&amp;d.substring(0,1)===
+&quot;_&quot;)return h;e?this.each(function(){var g=b.data(this,a);if(!g)throw&quot;cannot call methods on &quot;+a+&quot; prior to initialization; attempted to call method '&quot;+d+&quot;'&quot;;if(!b.isFunction(g[d]))throw&quot;no such method '&quot;+d+&quot;' for &quot;+a+&quot; widget instance&quot;;var i=g[d].apply(g,f);if(i!==g&amp;&amp;i!==j){h=i;return false}}):this.each(function(){var g=b.data(this,a);g?g.option(d||{})._init():b.data(this,a,new c(d,this))});return h}};b.Widget=function(a,c){arguments.length&amp;&amp;this._createWidget(a,c)};b.Widget.prototype={widgetName:&quot;widget&quot;,
+widgetEventPrefix:&quot;&quot;,options:{disabled:false},_createWidget:function(a,c){b.data(c,this.widgetName,this);this.element=b(c);this.options=b.extend(true,{},this.options,b.metadata&amp;&amp;b.metadata.get(c)[this.widgetName],a);var d=this;this.element.bind(&quot;remove.&quot;+this.widgetName,function(){d.destroy()});this._create();this._init()},_create:function(){},_init:function(){},destroy:function(){this.element.unbind(&quot;.&quot;+this.widgetName).removeData(this.widgetName);this.widget().unbind(&quot;.&quot;+this.widgetName).removeAttr(&quot;aria-disabled&quot;).removeClass(this.widgetBaseClass+
+&quot;-disabled ui-state-disabled&quot;)},widget:function(){return this.element},option:function(a,c){var d=a,e=this;if(arguments.length===0)return b.extend({},e.options);if(typeof a===&quot;string&quot;){if(c===j)return this.options[a];d={};d[a]=c}b.each(d,function(f,h){e._setOption(f,h)});return e},_setOption:function(a,c){this.options[a]=c;if(a===&quot;disabled&quot;)this.widget()[c?&quot;addClass&quot;:&quot;removeClass&quot;](this.widgetBaseClass+&quot;-disabled ui-state-disabled&quot;).attr(&quot;aria-disabled&quot;,c);return this},enable:function(){return this._setOption(&quot;disabled&quot;,
+false)},disable:function(){return this._setOption(&quot;disabled&quot;,true)},_trigger:function(a,c,d){var e=this.options[a];c=b.Event(c);c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();d=d||{};if(c.originalEvent){a=b.event.props.length;for(var f;a;){f=b.event.props[--a];c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return!(b.isFunction(e)&amp;&amp;e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery);
</ins><span class="cx">Property changes on: trunk/wp-includes/js/jquery/ui.widget.js
</span><span class="cx">___________________________________________________________________
</span><span class="cx">Name: svn:eol-style
</span><span class="cx">   + native
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (15710 => 15711)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2010-10-04 15:32:54 UTC (rev 15710)
+++ trunk/wp-includes/script-loader.php        2010-10-04 16:19:18 UTC (rev 15711)
</span><span class="lines">@@ -118,28 +118,40 @@
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'jquery', '/wp-includes/js/jquery/jquery.js', false, '1.4.2');
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'jquery-ui-core', '/wp-includes/js/jquery/ui.core.js', array('jquery'), '1.7.3' );
</del><ins>+        $scripts-&gt;add( 'jquery-ui-core', '/wp-includes/js/jquery/ui.core.js', array('jquery'), '1.8.5' );
</ins><span class="cx">         $scripts-&gt;add_data( 'jquery-ui-core', 'group', 1 );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'jquery-ui-tabs', '/wp-includes/js/jquery/ui.tabs.js', array('jquery-ui-core'), '1.7.3' );
</del><ins>+        $scripts-&gt;add( 'jquery-ui-position', '/wp-includes/js/jquery/ui.position.js', array('jquery'), '1.8.5' );
+        $scripts-&gt;add_data( 'jquery-ui-position', 'group', 1 );
+
+        $scripts-&gt;add( 'jquery-ui-widget', '/wp-includes/js/jquery/ui.widget.js', array('jquery'), '1.8.5' );
+        $scripts-&gt;add_data( 'jquery-ui-widget', 'group', 1 );
+
+        $scripts-&gt;add( 'jquery-ui-mouse', '/wp-includes/js/jquery/ui.mouse.js', array('jquery', 'jquery-ui-widget'), '1.8.5' );
+        $scripts-&gt;add_data( 'jquery-ui-mouse', 'group', 1 );
+
+        $scripts-&gt;add( 'jquery-ui-button', '/wp-includes/js/jquery/ui.button.js', array('jquery-ui-core', 'jquery-ui-widget'), '1.8.5' );
+        $scripts-&gt;add_data( 'jquery-ui-button', 'group', 1 );
+
+        $scripts-&gt;add( 'jquery-ui-tabs', '/wp-includes/js/jquery/ui.tabs.js', array('jquery-ui-core', 'jquery-ui-widget'), '1.8.5' );
</ins><span class="cx">         $scripts-&gt;add_data( 'jquery-ui-tabs', 'group', 1 );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'jquery-ui-sortable', '/wp-includes/js/jquery/ui.sortable.js', array('jquery-ui-core'), '1.7.3' );
</del><ins>+        $scripts-&gt;add( 'jquery-ui-sortable', '/wp-includes/js/jquery/ui.sortable.js', array('jquery-ui-core', 'jquery-ui-mouse'), '1.8.5' );
</ins><span class="cx">         $scripts-&gt;add_data( 'jquery-ui-sortable', 'group', 1 );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'jquery-ui-draggable', '/wp-includes/js/jquery/ui.draggable.js', array('jquery-ui-core'), '1.7.3' );
</del><ins>+        $scripts-&gt;add( 'jquery-ui-draggable', '/wp-includes/js/jquery/ui.draggable.js', array('jquery-ui-core', 'jquery-ui-mouse'), '1.8.5' );
</ins><span class="cx">         $scripts-&gt;add_data( 'jquery-ui-draggable', 'group', 1 );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'jquery-ui-droppable', '/wp-includes/js/jquery/ui.droppable.js', array('jquery-ui-core'), '1.7.3' );
</del><ins>+        $scripts-&gt;add( 'jquery-ui-droppable', '/wp-includes/js/jquery/ui.droppable.js', array('jquery-ui-core', 'jquery-ui-mouse', 'jquery-ui-draggable'), '1.8.5' );
</ins><span class="cx">         $scripts-&gt;add_data( 'jquery-ui-droppable', 'group', 1 );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'jquery-ui-selectable', '/wp-includes/js/jquery/ui.selectable.js', array('jquery-ui-core'), '1.7.3' );
</del><ins>+        $scripts-&gt;add( 'jquery-ui-selectable', '/wp-includes/js/jquery/ui.selectable.js', array('jquery-ui-core', 'jquery-ui-mouse'), '1.8.5' );
</ins><span class="cx">         $scripts-&gt;add_data( 'jquery-ui-selectable', 'group', 1 );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'jquery-ui-resizable', '/wp-includes/js/jquery/ui.resizable.js', array('jquery-ui-core'), '1.7.3' );
</del><ins>+        $scripts-&gt;add( 'jquery-ui-resizable', '/wp-includes/js/jquery/ui.resizable.js', array('jquery-ui-core', 'jquery-ui-mouse'), '1.8.5' );
</ins><span class="cx">         $scripts-&gt;add_data( 'jquery-ui-resizable', 'group', 1 );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'jquery-ui-dialog', '/wp-includes/js/jquery/ui.dialog.js', array('jquery-ui-resizable', 'jquery-ui-draggable'), '1.7.3' );
</del><ins>+        $scripts-&gt;add( 'jquery-ui-dialog', '/wp-includes/js/jquery/ui.dialog.js', array('jquery-ui-resizable', 'jquery-ui-draggable', 'jquery-ui-button', 'jquery-ui-position'), '1.8.5' );
</ins><span class="cx">         $scripts-&gt;add_data( 'jquery-ui-dialog', 'group', 1 );
</span><span class="cx"> 
</span><span class="cx">         // deprecated, not used in core, most functionality is included in jQuery 1.3
</span></span></pre>
</div>
</div>

</body>
</html>