<!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" />
<title>[24076] trunk/wp-includes: Upgrade to Plupload 1.5.7, fixes #24163</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { 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 #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#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>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/24076">24076</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2013-04-24 21:54:17 +0000 (Wed, 24 Apr 2013)</dd>
</dl>

<h3>Log Message</h3>
<pre>Upgrade to Plupload 1.5.7, fixes <a href="http://core.trac.wordpress.org/ticket/24163">#24163</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludesjspluploadchangelogtxt">trunk/wp-includes/js/plupload/changelog.txt</a></li>
<li><a href="#trunkwpincludesjspluploadpluploadflashjs">trunk/wp-includes/js/plupload/plupload.flash.js</a></li>
<li><a href="#trunkwpincludesjspluploadpluploadhtml4js">trunk/wp-includes/js/plupload/plupload.html4.js</a></li>
<li><a href="#trunkwpincludesjspluploadpluploadhtml5js">trunk/wp-includes/js/plupload/plupload.html5.js</a></li>
<li><a href="#trunkwpincludesjspluploadpluploadjs">trunk/wp-includes/js/plupload/plupload.js</a></li>
<li><a href="#trunkwpincludesjspluploadpluploadsilverlightjs">trunk/wp-includes/js/plupload/plupload.silverlight.js</a></li>
<li><a href="#trunkwpincludesjspluploadpluploadsilverlightxap">trunk/wp-includes/js/plupload/plupload.silverlight.xap</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpincludesjspluploadchangelogtxt"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/plupload/changelog.txt (24075 => 24076)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/plupload/changelog.txt        2013-04-23 23:19:29 UTC (rev 24075)
+++ trunk/wp-includes/js/plupload/changelog.txt        2013-04-24 21:54:17 UTC (rev 24076)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+Version 1.5.7 (2013-04-10)
+        HTML5: Workaround for squish problem in iOS6, when uploading resized images.
+        HTML5: Fix failing workaround for FormData+Blob bug on Android...
+        HTML5: Allow multiple uploads on iOS.
+        Include VB build script that doesn't depend on Ant and is said to be native to Windows.
+Version 1.5.6 (2013-02-28)
+        Fix regression: getPos() wrong on ie6/7.
+        HTML5: Send file as binary string if it was mangled, even if multipart is set to false.
+        HTML5: Add workaround Android browsers, that are unable to properly send blobs in FormData.
+        HTML4/Flash/Silverlight: Destroy fails to cleanup everything when container not defined.
+        UI, Queue: Use html() instead of text(), otherwise special characters fail to display properly.
+        UI, Queue: Use on() instead of delegate() or live(). Update examples to use jQuery 1.9.0 by default.
+        Queue: Blur rename input field when ESC is pressed.
+        Additional language packs: Slovak.
</ins><span class="cx"> Version 1.5.5 (2013-01-23)
</span><span class="cx">         UI Widget: Fix sortable feature, broken in jQuery UI 1.9.
</span><span class="cx">         Queue: Replace live() with delegate(), as live() was removed from jQuery 1.9.
</span></span></pre></div>
<a id="trunkwpincludesjspluploadpluploadflashjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/plupload/plupload.flash.js (24075 => 24076)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/plupload/plupload.flash.js        2013-04-23 23:19:29 UTC (rev 24075)
+++ trunk/wp-includes/js/plupload/plupload.flash.js        2013-04-24 21:54:17 UTC (rev 24076)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(f,b,d,e){var a={},g={};function c(){var h;try{h=navigator.plugins[&quot;Shockwave Flash&quot;];h=h.description}catch(j){try{h=new ActiveXObject(&quot;ShockwaveFlash.ShockwaveFlash&quot;).GetVariable(&quot;$version&quot;)}catch(i){h=&quot;0.0&quot;}}h=h.match(/\d+/g);return parseFloat(h[0]+&quot;.&quot;+h[1])}d.flash={trigger:function(j,h,i){setTimeout(function(){var m=a[j],l,k;if(m){m.trigger(&quot;Flash:&quot;+h,i)}},0)}};d.runtimes.Flash=d.addRuntime(&quot;flash&quot;,{getFeatures:function(){return{jpgresize:true,pngresize:true,maxWidth:8091,maxHeight:8091,chunks:true,progress:true,multipart:true,multi_selection:true}},init:function(m,o){var k,l,h=0,i=b.body;if(c()&lt;10){o({success:false});return}g[m.id]=false;a[m.id]=m;k=b.getElementById(m.settings.browse_button);l=b.createElement(&quot;div&quot;);l.id=m.id+&quot;_flash_container&quot;;d.extend(l.style,{position:&quot;absolute&quot;,top:&quot;0px&quot;,background:m.settings.shim_bgcolor||&quot;trans
 parent&q
 uot;,zIndex:99999,width:&quot;100%&quot;,height:&quot;100%&quot;});l.className=&quot;plupload flash&quot;;if(m.settings.container){i=b.getElementById(m.settings.container);if(d.getStyle(i,&quot;position&quot;)===&quot;static&quot;){i.style.position=&quot;relative&quot;}}i.appendChild(l);(function(){var p,q;p='&lt;object id=&quot;'+m.id+'_flash&quot; type=&quot;application/x-shockwave-flash&quot; data=&quot;'+m.settings.flash_swf_url+'&quot; ';if(d.ua.ie){p+='classid=&quot;clsid:d27cdb6e-ae6d-11cf-96b8-444553540000&quot; '}p+='width=&quot;100%&quot; height=&quot;100%&quot; style=&quot;outline:0&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;'+m.settings.flash_swf_url+'&quot; /&gt;&lt;param name=&quot;flashvars&quot; value=&quot;id='+escape(m.id)+'&quot; /&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot; /&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot; /&gt;&lt;/object&gt;';if(d.ua.ie){q=b.createElement(&quot;div&quot;);l.appen
 dChild(q
 );q.outerHTML=p;q=null}else{l.innerHTML=p}}());function n(){return b.getElementById(m.id+&quot;_flash&quot;)}function j(){if(h++&gt;5000){o({success:false});return}if(g[m.id]===false){setTimeout(j,1)}}j();k=l=null;m.bind(&quot;Destroy&quot;,function(p){var q;d.removeAllEvents(b.body,p.id);delete g[p.id];delete a[p.id];q=b.getElementById(p.id+&quot;_flash_container&quot;);if(q){i.removeChild(q)}});m.bind(&quot;Flash:Init&quot;,function(){var r={},q;try{n().setFileFilters(m.settings.filters,m.settings.multi_selection)}catch(p){o({success:false});return}if(g[m.id]){return}g[m.id]=true;m.bind(&quot;UploadFile&quot;,function(s,u){var v=s.settings,t=m.settings.resize||{};n().uploadFile(r[u.id],v.url,{name:u.target_name||u.name,mime:d.mimeTypes[u.name.replace(/^.+\.([^.]+)/,&quot;$1&quot;).toLowerCase()]||&quot;application/octet-stream&quot;,chunk_size:v.chunk_size,width:t.width,height:t.height,quality:t.quality,multipart:v.multipart,multipart_params:v.multipart_params||{},file_dat
 a_name:v
 .file_data_name,format:/\.(jpg|jpeg)$/i.test(u.name)?&quot;jpg&quot;:&quot;png&quot;,headers:v.headers,urlstream_upload:v.urlstream_upload})});m.bind(&quot;CancelUpload&quot;,function(){n().cancelUpload()});m.bind(&quot;Flash:UploadProcess&quot;,function(t,s){var u=t.getFile(r[s.id]);if(u.status!=d.FAILED){u.loaded=s.loaded;u.size=s.size;t.trigger(&quot;UploadProgress&quot;,u)}});m.bind(&quot;Flash:UploadChunkComplete&quot;,function(s,u){var v,t=s.getFile(r[u.id]);v={chunk:u.chunk,chunks:u.chunks,response:u.text};s.trigger(&quot;ChunkUploaded&quot;,t,v);if(t.status!==d.FAILED&amp;&amp;s.state!==d.STOPPED){n().uploadNextChunk()}if(u.chunk==u.chunks-1){t.status=d.DONE;s.trigger(&quot;FileUploaded&quot;,t,{response:u.text})}});m.bind(&quot;Flash:SelectFiles&quot;,function(s,v){var u,t,w=[],x;for(t=0;t&lt;v.length;t++){u=v[t];x=d.guid();r[x]=u.id;r[u.id]=x;w.push(new d.File(x,u.name,u.size))}if(w.length){m.trigger(&quot;FilesAdded&quot;,w)}});m.bind(&quot;Flash:SecurityError&quo
 t;,funct
 ion(s,t){m.trigger(&quot;Error&quot;,{code:d.SECURITY_ERROR,message:d.translate(&quot;Security error.&quot;),details:t.message,file:m.getFile(r[t.id])})});m.bind(&quot;Flash:GenericError&quot;,function(s,t){m.trigger(&quot;Error&quot;,{code:d.GENERIC_ERROR,message:d.translate(&quot;Generic error.&quot;),details:t.message,file:m.getFile(r[t.id])})});m.bind(&quot;Flash:IOError&quot;,function(s,t){m.trigger(&quot;Error&quot;,{code:d.IO_ERROR,message:d.translate(&quot;IO error.&quot;),details:t.message,file:m.getFile(r[t.id])})});m.bind(&quot;Flash:ImageError&quot;,function(s,t){m.trigger(&quot;Error&quot;,{code:parseInt(t.code,10),message:d.translate(&quot;Image error.&quot;),file:m.getFile(r[t.id])})});m.bind(&quot;Flash:StageEvent:rollOver&quot;,function(s){var t,u;t=b.getElementById(m.settings.browse_button);u=s.settings.browse_button_hover;if(t&amp;&amp;u){d.addClass(t,u)}});m.bind(&quot;Flash:StageEvent:rollOut&quot;,function(s){var t,u;t=b.getElementById(m.settings.browse
 _button)
 ;u=s.settings.browse_button_hover;if(t&amp;&amp;u){d.removeClass(t,u)}});m.bind(&quot;Flash:StageEvent:mouseDown&quot;,function(s){var t,u;t=b.getElementById(m.settings.browse_button);u=s.settings.browse_button_active;if(t&amp;&amp;u){d.addClass(t,u);d.addEvent(b.body,&quot;mouseup&quot;,function(){d.removeClass(t,u)},s.id)}});m.bind(&quot;Flash:StageEvent:mouseUp&quot;,function(s){var t,u;t=b.getElementById(m.settings.browse_button);u=s.settings.browse_button_active;if(t&amp;&amp;u){d.removeClass(t,u)}});m.bind(&quot;Flash:ExifData&quot;,function(s,t){m.trigger(&quot;ExifData&quot;,m.getFile(r[t.id]),t.data)});m.bind(&quot;Flash:GpsData&quot;,function(s,t){m.trigger(&quot;GpsData&quot;,m.getFile(r[t.id]),t.data)});m.bind(&quot;QueueChanged&quot;,function(s){m.refresh()});m.bind(&quot;FilesRemoved&quot;,function(s,u){var t;for(t=0;t&lt;u.length;t++){n().removeFile(r[u[t].id])}});m.bind(&quot;StateChanged&quot;,function(s){m.refresh()});m.bind(&quot;Refresh&quot;,function(s){
 var t,u,
 v;n().setFileFilters(m.settings.filters,m.settings.multi_selection);t=b.getElementById(s.settings.browse_button);if(t){u=d.getPos(t,b.getElementById(s.settings.container));v=d.getSize(t);d.extend(b.getElementById(s.id+&quot;_flash_container&quot;).style,{top:u.y+&quot;px&quot;,left:u.x+&quot;px&quot;,width:v.w+&quot;px&quot;,height:v.h+&quot;px&quot;})}});m.bind(&quot;DisableBrowse&quot;,function(s,t){n().disableBrowse(t)});o({success:true})})}})})(window,document,plupload);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(f,b,d,e){var a={},g={};function c(){var h;try{h=navigator.plugins[&quot;Shockwave Flash&quot;];h=h.description}catch(j){try{h=new ActiveXObject(&quot;ShockwaveFlash.ShockwaveFlash&quot;).GetVariable(&quot;$version&quot;)}catch(i){h=&quot;0.0&quot;}}h=h.match(/\d+/g);return parseFloat(h[0]+&quot;.&quot;+h[1])}d.flash={trigger:function(j,h,i){setTimeout(function(){var m=a[j],l,k;if(m){m.trigger(&quot;Flash:&quot;+h,i)}},0)}};d.runtimes.Flash=d.addRuntime(&quot;flash&quot;,{getFeatures:function(){return{jpgresize:true,pngresize:true,maxWidth:8091,maxHeight:8091,chunks:true,progress:true,multipart:true,multi_selection:true}},init:function(m,o){var k,l,h=0,i=b.body;if(c()&lt;10){o({success:false});return}g[m.id]=false;a[m.id]=m;k=b.getElementById(m.settings.browse_button);l=b.createElement(&quot;div&quot;);l.id=m.id+&quot;_flash_container&quot;;d.extend(l.style,{position:&quot;absolute&quot;,top:&quot;0px&quot;,background:m.settings.shim_bgcolor||&quot;trans
 parent&q
 uot;,zIndex:99999,width:&quot;100%&quot;,height:&quot;100%&quot;});l.className=&quot;plupload flash&quot;;if(m.settings.container){i=b.getElementById(m.settings.container);if(d.getStyle(i,&quot;position&quot;)===&quot;static&quot;){i.style.position=&quot;relative&quot;}}i.appendChild(l);(function(){var p,q;p='&lt;object id=&quot;'+m.id+'_flash&quot; type=&quot;application/x-shockwave-flash&quot; data=&quot;'+m.settings.flash_swf_url+'&quot; ';if(d.ua.ie){p+='classid=&quot;clsid:d27cdb6e-ae6d-11cf-96b8-444553540000&quot; '}p+='width=&quot;100%&quot; height=&quot;100%&quot; style=&quot;outline:0&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;'+m.settings.flash_swf_url+'&quot; /&gt;&lt;param name=&quot;flashvars&quot; value=&quot;id='+escape(m.id)+'&quot; /&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot; /&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot; /&gt;&lt;/object&gt;';if(d.ua.ie){q=b.createElement(&quot;div&quot;);l.appen
 dChild(q
 );q.outerHTML=p;q=null}else{l.innerHTML=p}}());function n(){return b.getElementById(m.id+&quot;_flash&quot;)}function j(){if(h++&gt;5000){o({success:false});return}if(g[m.id]===false){setTimeout(j,1)}}j();k=l=null;m.bind(&quot;Destroy&quot;,function(p){var q;d.removeAllEvents(b.body,p.id);delete g[p.id];delete a[p.id];q=b.getElementById(p.id+&quot;_flash_container&quot;);if(q){q.parentNode.removeChild(q)}});m.bind(&quot;Flash:Init&quot;,function(){var r={},q;try{n().setFileFilters(m.settings.filters,m.settings.multi_selection)}catch(p){o({success:false});return}if(g[m.id]){return}g[m.id]=true;m.bind(&quot;UploadFile&quot;,function(s,u){var v=s.settings,t=m.settings.resize||{};n().uploadFile(r[u.id],v.url,{name:u.target_name||u.name,mime:d.mimeTypes[u.name.replace(/^.+\.([^.]+)/,&quot;$1&quot;).toLowerCase()]||&quot;application/octet-stream&quot;,chunk_size:v.chunk_size,width:t.width,height:t.height,quality:t.quality,multipart:v.multipart,multipart_params:v.multipart_params||
 {},file_
 data_name:v.file_data_name,format:/\.(jpg|jpeg)$/i.test(u.name)?&quot;jpg&quot;:&quot;png&quot;,headers:v.headers,urlstream_upload:v.urlstream_upload})});m.bind(&quot;CancelUpload&quot;,function(){n().cancelUpload()});m.bind(&quot;Flash:UploadProcess&quot;,function(t,s){var u=t.getFile(r[s.id]);if(u.status!=d.FAILED){u.loaded=s.loaded;u.size=s.size;t.trigger(&quot;UploadProgress&quot;,u)}});m.bind(&quot;Flash:UploadChunkComplete&quot;,function(s,u){var v,t=s.getFile(r[u.id]);v={chunk:u.chunk,chunks:u.chunks,response:u.text};s.trigger(&quot;ChunkUploaded&quot;,t,v);if(t.status!==d.FAILED&amp;&amp;s.state!==d.STOPPED){n().uploadNextChunk()}if(u.chunk==u.chunks-1){t.status=d.DONE;s.trigger(&quot;FileUploaded&quot;,t,{response:u.text})}});m.bind(&quot;Flash:SelectFiles&quot;,function(s,v){var u,t,w=[],x;for(t=0;t&lt;v.length;t++){u=v[t];x=d.guid();r[x]=u.id;r[u.id]=x;w.push(new d.File(x,u.name,u.size))}if(w.length){m.trigger(&quot;FilesAdded&quot;,w)}});m.bind(&quot;Flash:Securi
 tyError&
 quot;,function(s,t){m.trigger(&quot;Error&quot;,{code:d.SECURITY_ERROR,message:d.translate(&quot;Security error.&quot;),details:t.message,file:m.getFile(r[t.id])})});m.bind(&quot;Flash:GenericError&quot;,function(s,t){m.trigger(&quot;Error&quot;,{code:d.GENERIC_ERROR,message:d.translate(&quot;Generic error.&quot;),details:t.message,file:m.getFile(r[t.id])})});m.bind(&quot;Flash:IOError&quot;,function(s,t){m.trigger(&quot;Error&quot;,{code:d.IO_ERROR,message:d.translate(&quot;IO error.&quot;),details:t.message,file:m.getFile(r[t.id])})});m.bind(&quot;Flash:ImageError&quot;,function(s,t){m.trigger(&quot;Error&quot;,{code:parseInt(t.code,10),message:d.translate(&quot;Image error.&quot;),file:m.getFile(r[t.id])})});m.bind(&quot;Flash:StageEvent:rollOver&quot;,function(s){var t,u;t=b.getElementById(m.settings.browse_button);u=s.settings.browse_button_hover;if(t&amp;&amp;u){d.addClass(t,u)}});m.bind(&quot;Flash:StageEvent:rollOut&quot;,function(s){var t,u;t=b.getElementById(m.sett
 ings.bro
 wse_button);u=s.settings.browse_button_hover;if(t&amp;&amp;u){d.removeClass(t,u)}});m.bind(&quot;Flash:StageEvent:mouseDown&quot;,function(s){var t,u;t=b.getElementById(m.settings.browse_button);u=s.settings.browse_button_active;if(t&amp;&amp;u){d.addClass(t,u);d.addEvent(b.body,&quot;mouseup&quot;,function(){d.removeClass(t,u)},s.id)}});m.bind(&quot;Flash:StageEvent:mouseUp&quot;,function(s){var t,u;t=b.getElementById(m.settings.browse_button);u=s.settings.browse_button_active;if(t&amp;&amp;u){d.removeClass(t,u)}});m.bind(&quot;Flash:ExifData&quot;,function(s,t){m.trigger(&quot;ExifData&quot;,m.getFile(r[t.id]),t.data)});m.bind(&quot;Flash:GpsData&quot;,function(s,t){m.trigger(&quot;GpsData&quot;,m.getFile(r[t.id]),t.data)});m.bind(&quot;QueueChanged&quot;,function(s){m.refresh()});m.bind(&quot;FilesRemoved&quot;,function(s,u){var t;for(t=0;t&lt;u.length;t++){n().removeFile(r[u[t].id])}});m.bind(&quot;StateChanged&quot;,function(s){m.refresh()});m.bind(&quot;Refresh&quot;,f
 unction(
 s){var t,u,v;n().setFileFilters(m.settings.filters,m.settings.multi_selection);t=b.getElementById(s.settings.browse_button);if(t){u=d.getPos(t,b.getElementById(s.settings.container));v=d.getSize(t);d.extend(b.getElementById(s.id+&quot;_flash_container&quot;).style,{top:u.y+&quot;px&quot;,left:u.x+&quot;px&quot;,width:v.w+&quot;px&quot;,height:v.h+&quot;px&quot;})}});m.bind(&quot;DisableBrowse&quot;,function(s,t){n().disableBrowse(t)});o({success:true})})}})})(window,document,plupload);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjspluploadpluploadhtml4js"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/plupload/plupload.html4.js (24075 => 24076)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/plupload/plupload.html4.js        2013-04-23 23:19:29 UTC (rev 24075)
+++ trunk/wp-includes/js/plupload/plupload.html4.js        2013-04-24 21:54:17 UTC (rev 24076)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(d,a,b,c){function e(f){return a.getElementById(f)}b.runtimes.Html4=b.addRuntime(&quot;html4&quot;,{getFeatures:function(){return{multipart:true,triggerDialog:(b.ua.gecko&amp;&amp;d.FormData||b.ua.webkit)}},init:function(f,g){f.bind(&quot;Init&quot;,function(p){var j=a.body,n,h=&quot;javascript&quot;,k,x,q,z=[],r=/MSIE/.test(navigator.userAgent),t=[],m=p.settings.filters,o,l,s,w;no_type_restriction:for(o=0;o&lt;m.length;o++){l=m[o].extensions.split(/,/);for(w=0;w&lt;l.length;w++){if(l[w]===&quot;*&quot;){t=[];break no_type_restriction}s=b.mimeTypes[l[w]];if(s&amp;&amp;b.inArray(s,t)===-1){t.push(s)}}}t=t.join(&quot;,&quot;);function v(){var B,y,i,A;q=b.guid();z.push(q);B=a.createElement(&quot;form&quot;);B.setAttribute(&quot;id&quot;,&quot;form_&quot;+q);B.setAttribute(&quot;method&quot;,&quot;post&quot;);B.setAttribute(&quot;enctype&quot;,&quot;multipart/form-data&quot;);B.setAttribute(&quot;encoding&quot;,&quot;multipart/form-data&quot;);B.setAttribute
 (&quot;t
 arget&quot;,p.id+&quot;_iframe&quot;);B.style.position=&quot;absolute&quot;;y=a.createElement(&quot;input&quot;);y.setAttribute(&quot;id&quot;,&quot;input_&quot;+q);y.setAttribute(&quot;type&quot;,&quot;file&quot;);y.setAttribute(&quot;accept&quot;,t);y.setAttribute(&quot;size&quot;,1);A=e(p.settings.browse_button);if(p.features.triggerDialog&amp;&amp;A){b.addEvent(e(p.settings.browse_button),&quot;click&quot;,function(C){if(!y.disabled){y.click()}C.preventDefault()},p.id)}b.extend(y.style,{width:&quot;100%&quot;,height:&quot;100%&quot;,opacity:0,fontSize:&quot;99px&quot;,cursor:&quot;pointer&quot;});b.extend(B.style,{overflow:&quot;hidden&quot;});i=p.settings.shim_bgcolor;if(i){B.style.background=i}if(r){b.extend(y.style,{filter:&quot;alpha(opacity=0)&quot;})}b.addEvent(y,&quot;change&quot;,function(F){var D=F.target,C,E=[],G;if(D.value){e(&quot;form_&quot;+q).style.top=-1048575+&quot;px&quot;;C=D.value.replace(/\\/g,&quot;/&quot;);C=C.substring(C.length,C.lastIndexOf(&quot
 ;/&quot;
 )+1);E.push(new b.File(q,C));if(!p.features.triggerDialog){b.removeAllEvents(B,p.id)}else{b.removeEvent(A,&quot;click&quot;,p.id)}b.removeEvent(y,&quot;change&quot;,p.id);v();if(E.length){f.trigger(&quot;FilesAdded&quot;,E)}}},p.id);B.appendChild(y);j.appendChild(B);p.refresh()}function u(){var i=a.createElement(&quot;div&quot;);i.innerHTML='&lt;iframe id=&quot;'+p.id+'_iframe&quot; name=&quot;'+p.id+'_iframe&quot; src=&quot;'+h+':&amp;quot;&amp;quot;&quot; style=&quot;display:none&quot;&gt;&lt;/iframe&gt;';n=i.firstChild;j.appendChild(n);b.addEvent(n,&quot;load&quot;,function(C){var D=C.target,B,y;if(!k){return}try{B=D.contentWindow.document||D.contentDocument||d.frames[D.id].document}catch(A){p.trigger(&quot;Error&quot;,{code:b.SECURITY_ERROR,message:b.translate(&quot;Security error.&quot;),file:k});return}y=B.body.innerHTML;if(y){k.status=b.DONE;k.loaded=1025;k.percent=100;p.trigger(&quot;UploadProgress&quot;,k);p.trigger(&quot;FileUploaded&quot;,k,{response:y})}},p.id)}i
 f(p.sett
 ings.container){j=e(p.settings.container);if(b.getStyle(j,&quot;position&quot;)===&quot;static&quot;){j.style.position=&quot;relative&quot;}}p.bind(&quot;UploadFile&quot;,function(i,A){var B,y;if(A.status==b.DONE||A.status==b.FAILED||i.state==b.STOPPED){return}B=e(&quot;form_&quot;+A.id);y=e(&quot;input_&quot;+A.id);y.setAttribute(&quot;name&quot;,i.settings.file_data_name);B.setAttribute(&quot;action&quot;,i.settings.url);b.each(b.extend({name:A.target_name||A.name},i.settings.multipart_params),function(E,C){var D=a.createElement(&quot;input&quot;);b.extend(D,{type:&quot;hidden&quot;,name:C,value:E});B.insertBefore(D,B.firstChild)});k=A;e(&quot;form_&quot;+q).style.top=-1048575+&quot;px&quot;;B.submit()});p.bind(&quot;FileUploaded&quot;,function(i){i.refresh()});p.bind(&quot;StateChanged&quot;,function(i){if(i.state==b.STARTED){u()}else{if(i.state==b.STOPPED){d.setTimeout(function(){b.removeEvent(n,&quot;load&quot;,i.id);if(n.parentNode){n.parentNode.removeChild(n)}},0)}}b.
 each(i.f
 iles,function(A,y){if(A.status===b.DONE||A.status===b.FAILED){var B=e(&quot;form_&quot;+A.id);if(B){B.parentNode.removeChild(B)}}})});p.bind(&quot;Refresh&quot;,function(y){var F,A,B,C,i,G,H,E,D;F=e(y.settings.browse_button);if(F){i=b.getPos(F,e(y.settings.container));G=b.getSize(F);H=e(&quot;form_&quot;+q);E=e(&quot;input_&quot;+q);b.extend(H.style,{top:i.y+&quot;px&quot;,left:i.x+&quot;px&quot;,width:G.w+&quot;px&quot;,height:G.h+&quot;px&quot;});if(y.features.triggerDialog){if(b.getStyle(F,&quot;position&quot;)===&quot;static&quot;){b.extend(F.style,{position:&quot;relative&quot;})}D=parseInt(F.style.zIndex,10);if(isNaN(D)){D=0}b.extend(F.style,{zIndex:D});b.extend(H.style,{zIndex:D-1})}B=y.settings.browse_button_hover;C=y.settings.browse_button_active;A=y.features.triggerDialog?F:H;if(B){b.addEvent(A,&quot;mouseover&quot;,function(){b.addClass(F,B)},y.id);b.addEvent(A,&quot;mouseout&quot;,function(){b.removeClass(F,B)},y.id)}if(C){b.addEvent(A,&quot;mousedown&quot;,funct
 ion(){b.
 addClass(F,C)},y.id);b.addEvent(a.body,&quot;mouseup&quot;,function(){b.removeClass(F,C)},y.id)}}});f.bind(&quot;FilesRemoved&quot;,function(y,B){var A,C;for(A=0;A&lt;B.length;A++){C=e(&quot;form_&quot;+B[A].id);if(C){C.parentNode.removeChild(C)}}});f.bind(&quot;DisableBrowse&quot;,function(i,A){var y=a.getElementById(&quot;input_&quot;+q);if(y){y.disabled=A}});f.bind(&quot;Destroy&quot;,function(i){var y,A,B,C={inputContainer:&quot;form_&quot;+q,inputFile:&quot;input_&quot;+q,browseButton:i.settings.browse_button};for(y in C){A=e(C[y]);if(A){b.removeAllEvents(A,i.id)}}b.removeAllEvents(a.body,i.id);b.each(z,function(E,D){B=e(&quot;form_&quot;+E);if(B){j.removeChild(B)}})});v()});g({success:true})}})})(window,document,plupload);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(d,a,b,c){function e(f){return a.getElementById(f)}b.runtimes.Html4=b.addRuntime(&quot;html4&quot;,{getFeatures:function(){return{multipart:true,triggerDialog:(b.ua.gecko&amp;&amp;d.FormData||b.ua.webkit)}},init:function(f,g){f.bind(&quot;Init&quot;,function(p){var j=a.body,n,h=&quot;javascript&quot;,k,x,q,z=[],r=/MSIE/.test(navigator.userAgent),t=[],m=p.settings.filters,o,l,s,w;no_type_restriction:for(o=0;o&lt;m.length;o++){l=m[o].extensions.split(/,/);for(w=0;w&lt;l.length;w++){if(l[w]===&quot;*&quot;){t=[];break no_type_restriction}s=b.mimeTypes[l[w]];if(s&amp;&amp;b.inArray(s,t)===-1){t.push(s)}}}t=t.join(&quot;,&quot;);function v(){var B,y,i,A;q=b.guid();z.push(q);B=a.createElement(&quot;form&quot;);B.setAttribute(&quot;id&quot;,&quot;form_&quot;+q);B.setAttribute(&quot;method&quot;,&quot;post&quot;);B.setAttribute(&quot;enctype&quot;,&quot;multipart/form-data&quot;);B.setAttribute(&quot;encoding&quot;,&quot;multipart/form-data&quot;);B.setAttribute
 (&quot;t
 arget&quot;,p.id+&quot;_iframe&quot;);B.style.position=&quot;absolute&quot;;y=a.createElement(&quot;input&quot;);y.setAttribute(&quot;id&quot;,&quot;input_&quot;+q);y.setAttribute(&quot;type&quot;,&quot;file&quot;);y.setAttribute(&quot;accept&quot;,t);y.setAttribute(&quot;size&quot;,1);A=e(p.settings.browse_button);if(p.features.triggerDialog&amp;&amp;A){b.addEvent(e(p.settings.browse_button),&quot;click&quot;,function(C){if(!y.disabled){y.click()}C.preventDefault()},p.id)}b.extend(y.style,{width:&quot;100%&quot;,height:&quot;100%&quot;,opacity:0,fontSize:&quot;99px&quot;,cursor:&quot;pointer&quot;});b.extend(B.style,{overflow:&quot;hidden&quot;});i=p.settings.shim_bgcolor;if(i){B.style.background=i}if(r){b.extend(y.style,{filter:&quot;alpha(opacity=0)&quot;})}b.addEvent(y,&quot;change&quot;,function(F){var D=F.target,C,E=[],G;if(D.value){e(&quot;form_&quot;+q).style.top=-1048575+&quot;px&quot;;C=D.value.replace(/\\/g,&quot;/&quot;);C=C.substring(C.length,C.lastIndexOf(&quot
 ;/&quot;
 )+1);E.push(new b.File(q,C));if(!p.features.triggerDialog){b.removeAllEvents(B,p.id)}else{b.removeEvent(A,&quot;click&quot;,p.id)}b.removeEvent(y,&quot;change&quot;,p.id);v();if(E.length){f.trigger(&quot;FilesAdded&quot;,E)}}},p.id);B.appendChild(y);j.appendChild(B);p.refresh()}function u(){var i=a.createElement(&quot;div&quot;);i.innerHTML='&lt;iframe id=&quot;'+p.id+'_iframe&quot; name=&quot;'+p.id+'_iframe&quot; src=&quot;'+h+':&amp;quot;&amp;quot;&quot; style=&quot;display:none&quot;&gt;&lt;/iframe&gt;';n=i.firstChild;j.appendChild(n);b.addEvent(n,&quot;load&quot;,function(C){var D=C.target,B,y;if(!k){return}try{B=D.contentWindow.document||D.contentDocument||d.frames[D.id].document}catch(A){p.trigger(&quot;Error&quot;,{code:b.SECURITY_ERROR,message:b.translate(&quot;Security error.&quot;),file:k});return}y=B.documentElement.innerText||B.documentElement.textContent;if(y){k.status=b.DONE;k.loaded=1025;k.percent=100;p.trigger(&quot;UploadProgress&quot;,k);p.trigger(&quot;Fi
 leUpload
 ed&quot;,k,{response:y})}},p.id)}if(p.settings.container){j=e(p.settings.container);if(b.getStyle(j,&quot;position&quot;)===&quot;static&quot;){j.style.position=&quot;relative&quot;}}p.bind(&quot;UploadFile&quot;,function(i,A){var B,y;if(A.status==b.DONE||A.status==b.FAILED||i.state==b.STOPPED){return}B=e(&quot;form_&quot;+A.id);y=e(&quot;input_&quot;+A.id);y.setAttribute(&quot;name&quot;,i.settings.file_data_name);B.setAttribute(&quot;action&quot;,i.settings.url);b.each(b.extend({name:A.target_name||A.name},i.settings.multipart_params),function(E,C){var D=a.createElement(&quot;input&quot;);b.extend(D,{type:&quot;hidden&quot;,name:C,value:E});B.insertBefore(D,B.firstChild)});k=A;e(&quot;form_&quot;+q).style.top=-1048575+&quot;px&quot;;B.submit()});p.bind(&quot;FileUploaded&quot;,function(i){i.refresh()});p.bind(&quot;StateChanged&quot;,function(i){if(i.state==b.STARTED){u()}else{if(i.state==b.STOPPED){d.setTimeout(function(){b.removeEvent(n,&quot;load&quot;,i.id);if(n.parent
 Node){n.
 parentNode.removeChild(n)}},0)}}b.each(i.files,function(A,y){if(A.status===b.DONE||A.status===b.FAILED){var B=e(&quot;form_&quot;+A.id);if(B){B.parentNode.removeChild(B)}}})});p.bind(&quot;Refresh&quot;,function(y){var F,A,B,C,i,G,H,E,D;F=e(y.settings.browse_button);if(F){i=b.getPos(F,e(y.settings.container));G=b.getSize(F);H=e(&quot;form_&quot;+q);E=e(&quot;input_&quot;+q);b.extend(H.style,{top:i.y+&quot;px&quot;,left:i.x+&quot;px&quot;,width:G.w+&quot;px&quot;,height:G.h+&quot;px&quot;});if(y.features.triggerDialog){if(b.getStyle(F,&quot;position&quot;)===&quot;static&quot;){b.extend(F.style,{position:&quot;relative&quot;})}D=parseInt(F.style.zIndex,10);if(isNaN(D)){D=0}b.extend(F.style,{zIndex:D});b.extend(H.style,{zIndex:D-1})}B=y.settings.browse_button_hover;C=y.settings.browse_button_active;A=y.features.triggerDialog?F:H;if(B){b.addEvent(A,&quot;mouseover&quot;,function(){b.addClass(F,B)},y.id);b.addEvent(A,&quot;mouseout&quot;,function(){b.removeClass(F,B)},y.id)}if(C
 ){b.addE
 vent(A,&quot;mousedown&quot;,function(){b.addClass(F,C)},y.id);b.addEvent(a.body,&quot;mouseup&quot;,function(){b.removeClass(F,C)},y.id)}}});f.bind(&quot;FilesRemoved&quot;,function(y,B){var A,C;for(A=0;A&lt;B.length;A++){C=e(&quot;form_&quot;+B[A].id);if(C){C.parentNode.removeChild(C)}}});f.bind(&quot;DisableBrowse&quot;,function(i,A){var y=a.getElementById(&quot;input_&quot;+q);if(y){y.disabled=A}});f.bind(&quot;Destroy&quot;,function(i){var y,A,B,C={inputContainer:&quot;form_&quot;+q,inputFile:&quot;input_&quot;+q,browseButton:i.settings.browse_button};for(y in C){A=e(C[y]);if(A){b.removeAllEvents(A,i.id)}}b.removeAllEvents(a.body,i.id);b.each(z,function(E,D){B=e(&quot;form_&quot;+E);if(B){B.parentNode.removeChild(B)}})});v()});g({success:true})}})})(window,document,plupload);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjspluploadpluploadhtml5js"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/plupload/plupload.html5.js (24075 => 24076)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/plupload/plupload.html5.js        2013-04-23 23:19:29 UTC (rev 24075)
+++ trunk/wp-includes/js/plupload/plupload.html5.js        2013-04-24 21:54:17 UTC (rev 24076)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(h,k,j,e){var c={},g;function m(o,p){var n;if(&quot;FileReader&quot; in h){n=new FileReader();n.readAsDataURL(o);n.onload=function(){p(n.result)}}else{return p(o.getAsDataURL())}}function l(o,p){var n;if(&quot;FileReader&quot; in h){n=new FileReader();n.readAsBinaryString(o);n.onload=function(){p(n.result)}}else{return p(o.getAsBinary())}}function d(r,p,n,v){var q,o,u,s,t=this;m(c[r.id],function(w){q=k.createElement(&quot;canvas&quot;);q.style.display=&quot;none&quot;;k.body.appendChild(q);o=q.getContext(&quot;2d&quot;);u=new Image();u.onerror=u.onabort=function(){v({success:false})};u.onload=function(){var C,x,z,y,B;if(!p.width){p.width=u.width}if(!p.height){p.height=u.height}s=Math.min(p.width/u.width,p.height/u.height);if(s&lt;1){C=Math.round(u.width*s);x=Math.round(u.height*s)}else{if(p.quality&amp;&amp;n===&quot;image/jpeg&quot;){C=u.width;x=u.height}else{v({success:false});return}}q.width=C;q.height=x;o.drawImage(u,0,0,C,x);if(n===&quot;image/jpeg&
 quot;){y
 =new f(atob(w.substring(w.indexOf(&quot;base64,&quot;)+7)));if(y.headers&amp;&amp;y.headers.length){B=new a();if(B.init(y.get(&quot;exif&quot;)[0])){B.setExif(&quot;PixelXDimension&quot;,C);B.setExif(&quot;PixelYDimension&quot;,x);y.set(&quot;exif&quot;,B.getBinary());if(t.hasEventListener(&quot;ExifData&quot;)){t.trigger(&quot;ExifData&quot;,r,B.EXIF())}if(t.hasEventListener(&quot;GpsData&quot;)){t.trigger(&quot;GpsData&quot;,r,B.GPS())}}}if(p.quality){try{w=q.toDataURL(n,p.quality/100)}catch(A){w=q.toDataURL(n)}}}else{w=q.toDataURL(n)}w=w.substring(w.indexOf(&quot;base64,&quot;)+7);w=atob(w);if(y&amp;&amp;y.headers&amp;&amp;y.headers.length){w=y.restore(w);y.purge()}q.parentNode.removeChild(q);v({success:true,data:w})};u.src=w})}j.runtimes.Html5=j.addRuntime(&quot;html5&quot;,{getFeatures:function(){var s,o,r,q,p,n;o=r=p=n=false;if(h.XMLHttpRequest){s=new XMLHttpRequest();r=!!s.upload;o=!!(s.sendAsBinary||s.upload)}if(o){q=!!(s.sendAsBinary||(h.Uint8Array&amp;&amp;h.ArrayB
 uffer));
 p=!!(File&amp;&amp;(File.prototype.getAsDataURL||h.FileReader)&amp;&amp;q);n=!!(File&amp;&amp;(File.prototype.mozSlice||File.prototype.webkitSlice||File.prototype.slice))}g=j.ua.safari&amp;&amp;j.ua.windows;return{html5:o,dragdrop:(function(){var t=k.createElement(&quot;div&quot;);return(&quot;draggable&quot; in t)||(&quot;ondragstart&quot; in t&amp;&amp;&quot;ondrop&quot; in t)}()),jpgresize:p,pngresize:p,multipart:p||!!h.FileReader||!!h.FormData,canSendBinary:q,cantSendBlobInFormData:!!(j.ua.gecko&amp;&amp;h.FormData&amp;&amp;h.FileReader&amp;&amp;!FileReader.prototype.readAsArrayBuffer),progress:r,chunks:n,multi_selection:!(j.ua.safari&amp;&amp;j.ua.windows),triggerDialog:(j.ua.gecko&amp;&amp;h.FormData||j.ua.webkit)}},init:function(p,r){var n,q;function o(w){var u,t,v=[],x,s={};for(t=0;t&lt;w.length;t++){u=w[t];if(s[u.name]){continue}s[u.name]=true;x=j.guid();c[x]=u;v.push(new j.File(x,u.fileName||u.name,u.fileSize||u.size))}if(v.length){p.trigger(&quot;FilesAdded&quot;,
 v)}}n=th
 is.getFeatures();if(!n.html5){r({success:false});return}p.bind(&quot;Init&quot;,function(w){var G,F,C=[],v,D,t=w.settings.filters,u,B,s=k.body,E;G=k.createElement(&quot;div&quot;);G.id=w.id+&quot;_html5_container&quot;;j.extend(G.style,{position:&quot;absolute&quot;,background:p.settings.shim_bgcolor||&quot;transparent&quot;,width:&quot;100px&quot;,height:&quot;100px&quot;,overflow:&quot;hidden&quot;,zIndex:99999,opacity:p.settings.shim_bgcolor?&quot;&quot;:0});G.className=&quot;plupload html5&quot;;if(p.settings.container){s=k.getElementById(p.settings.container);if(j.getStyle(s,&quot;position&quot;)===&quot;static&quot;){s.style.position=&quot;relative&quot;}}s.appendChild(G);no_type_restriction:for(v=0;v&lt;t.length;v++){u=t[v].extensions.split(/,/);for(D=0;D&lt;u.length;D++){if(u[D]===&quot;*&quot;){C=[];break no_type_restriction}B=j.mimeTypes[u[D]];if(B&amp;&amp;j.inArray(B,C)===-1){C.push(B)}}}G.innerHTML='&lt;input id=&quot;'+p.id+'_html5&quot;  style=&quot;font-size:
 999px&qu
 ot; type=&quot;file&quot; accept=&quot;'+C.join(&quot;,&quot;)+'&quot; '+(p.settings.multi_selection&amp;&amp;p.features.multi_selection?'multiple=&quot;multiple&quot;':&quot;&quot;)+&quot; /&gt;&quot;;G.scrollTop=100;E=k.getElementById(p.id+&quot;_html5&quot;);if(w.features.triggerDialog){j.extend(E.style,{position:&quot;absolute&quot;,width:&quot;100%&quot;,height:&quot;100%&quot;})}else{j.extend(E.style,{cssFloat:&quot;right&quot;,styleFloat:&quot;right&quot;})}E.onchange=function(){o(this.files);this.value=&quot;&quot;};F=k.getElementById(w.settings.browse_button);if(F){var z=w.settings.browse_button_hover,A=w.settings.browse_button_active,x=w.features.triggerDialog?F:G;if(z){j.addEvent(x,&quot;mouseover&quot;,function(){j.addClass(F,z)},w.id);j.addEvent(x,&quot;mouseout&quot;,function(){j.removeClass(F,z)},w.id)}if(A){j.addEvent(x,&quot;mousedown&quot;,function(){j.addClass(F,A)},w.id);j.addEvent(k.body,&quot;mouseup&quot;,function(){j.removeClass(F,A)},w.id)}if(w.featu
 res.trig
 gerDialog){j.addEvent(F,&quot;click&quot;,function(H){var y=k.getElementById(w.id+&quot;_html5&quot;);if(y&amp;&amp;!y.disabled){y.click()}H.preventDefault()},w.id)}}});p.bind(&quot;PostInit&quot;,function(){var s=k.getElementById(p.settings.drop_element);if(s){if(g){j.addEvent(s,&quot;dragenter&quot;,function(w){var v,t,u;v=k.getElementById(p.id+&quot;_drop&quot;);if(!v){v=k.createElement(&quot;input&quot;);v.setAttribute(&quot;type&quot;,&quot;file&quot;);v.setAttribute(&quot;id&quot;,p.id+&quot;_drop&quot;);v.setAttribute(&quot;multiple&quot;,&quot;multiple&quot;);j.addEvent(v,&quot;change&quot;,function(){o(this.files);j.removeEvent(v,&quot;change&quot;,p.id);v.parentNode.removeChild(v)},p.id);s.appendChild(v)}t=j.getPos(s,k.getElementById(p.settings.container));u=j.getSize(s);if(j.getStyle(s,&quot;position&quot;)===&quot;static&quot;){j.extend(s.style,{position:&quot;relative&quot;})}j.extend(v.style,{position:&quot;absolute&quot;,display:&quot;block&quot;,top:0,left:0,
 width:u.
 w+&quot;px&quot;,height:u.h+&quot;px&quot;,opacity:0})},p.id);return}j.addEvent(s,&quot;dragover&quot;,function(t){t.preventDefault()},p.id);j.addEvent(s,&quot;drop&quot;,function(u){var t=u.dataTransfer;if(t&amp;&amp;t.files){o(t.files)}u.preventDefault()},p.id)}});p.bind(&quot;Refresh&quot;,function(s){var t,u,v,x,w;t=k.getElementById(p.settings.browse_button);if(t){u=j.getPos(t,k.getElementById(s.settings.container));v=j.getSize(t);x=k.getElementById(p.id+&quot;_html5_container&quot;);j.extend(x.style,{top:u.y+&quot;px&quot;,left:u.x+&quot;px&quot;,width:v.w+&quot;px&quot;,height:v.h+&quot;px&quot;});if(p.features.triggerDialog){if(j.getStyle(t,&quot;position&quot;)===&quot;static&quot;){j.extend(t.style,{position:&quot;relative&quot;})}w=parseInt(j.getStyle(t,&quot;zIndex&quot;),10);if(isNaN(w)){w=0}j.extend(t.style,{zIndex:w});j.extend(x.style,{zIndex:w-1})}}});p.bind(&quot;DisableBrowse&quot;,function(s,u){var t=k.getElementById(s.id+&quot;_html5&quot;);if(t){t.disable
 d=u}});p
 .bind(&quot;CancelUpload&quot;,function(){if(q&amp;&amp;q.abort){q.abort()}});p.bind(&quot;UploadFile&quot;,function(s,u){var v=s.settings,y,t;function x(A,D,z){var B;if(File.prototype.slice){try{A.slice();return A.slice(D,z)}catch(C){return A.slice(D,z-D)}}else{if(B=File.prototype.webkitSlice||File.prototype.mozSlice){return B.call(A,D,z)}else{return null}}}function w(A){var D=0,C=0,z=(&quot;FileReader&quot; in h)?new FileReader:null;function B(){var I,M,K,L,H,J,F,E=s.settings.url;function G(V){var T=0,N=&quot;----pluploadboundary&quot;+j.guid(),O,P=&quot;--&quot;,U=&quot;\r\n&quot;,R=&quot;&quot;;q=new XMLHttpRequest;if(q.upload){q.upload.onprogress=function(W){u.loaded=Math.min(u.size,C+W.loaded-T);s.trigger(&quot;UploadProgress&quot;,u)}}q.onreadystatechange=function(){var W,Y;if(q.readyState==4&amp;&amp;s.state!==j.STOPPED){try{W=q.status}catch(X){W=0}if(W&gt;=400){s.trigger(&quot;Error&quot;,{code:j.HTTP_ERROR,message:j.translate(&quot;HTTP Error.&quot;),file:u,status:
 W})}else
 {if(K){Y={chunk:D,chunks:K,response:q.responseText,status:W};s.trigger(&quot;ChunkUploaded&quot;,u,Y);C+=J;if(Y.cancelled){u.status=j.FAILED;return}u.loaded=Math.min(u.size,(D+1)*H)}else{u.loaded=u.size}s.trigger(&quot;UploadProgress&quot;,u);V=I=O=R=null;if(!K||++D&gt;=K){u.status=j.DONE;s.trigger(&quot;FileUploaded&quot;,u,{response:q.responseText,status:W})}else{B()}}}};if(s.settings.multipart&amp;&amp;n.multipart){L.name=u.target_name||u.name;q.open(&quot;post&quot;,E,true);j.each(s.settings.headers,function(X,W){q.setRequestHeader(W,X)});if(typeof(V)!==&quot;string&quot;&amp;&amp;!!h.FormData){O=new FormData();j.each(j.extend(L,s.settings.multipart_params),function(X,W){O.append(W,X)});O.append(s.settings.file_data_name,V);q.send(O);return}if(typeof(V)===&quot;string&quot;){q.setRequestHeader(&quot;Content-Type&quot;,&quot;multipart/form-data; boundary=&quot;+N);j.each(j.extend(L,s.settings.multipart_params),function(X,W){R+=P+N+U+'Content-Disposition: form-data; name=&
 quot;'+W
 +'&quot;'+U+U;R+=unescape(encodeURIComponent(X))+U});F=j.mimeTypes[u.name.replace(/^.+\.([^.]+)/,&quot;$1&quot;).toLowerCase()]||&quot;application/octet-stream&quot;;R+=P+N+U+'Content-Disposition: form-data; name=&quot;'+s.settings.file_data_name+'&quot;; filename=&quot;'+unescape(encodeURIComponent(u.name))+'&quot;'+U+&quot;Content-Type: &quot;+F+U+U+V+U+P+N+P+U;T=R.length-V.length;V=R;if(q.sendAsBinary){q.sendAsBinary(V)}else{if(n.canSendBinary){var S=new Uint8Array(V.length);for(var Q=0;Q&lt;V.length;Q++){S[Q]=(V.charCodeAt(Q)&amp;255)}q.send(S.buffer)}}return}}E=j.buildUrl(s.settings.url,j.extend(L,s.settings.multipart_params));q.open(&quot;post&quot;,E,true);q.setRequestHeader(&quot;Content-Type&quot;,&quot;application/octet-stream&quot;);j.each(s.settings.headers,function(X,W){q.setRequestHeader(W,X)});q.send(V)}if(u.status==j.DONE||u.status==j.FAILED||s.state==j.STOPPED){return}L={name:u.target_name||u.name};if(v.chunk_size&amp;&amp;u.size&gt;v.chunk_size&amp;&amp;(n.
 chunks||
 typeof(A)==&quot;string&quot;)){H=v.chunk_size;K=Math.ceil(u.size/H);J=Math.min(H,u.size-(D*H));if(typeof(A)==&quot;string&quot;){I=A.substring(D*H,D*H+J)}else{I=x(A,D*H,D*H+J)}L.chunk=D;L.chunks=K}else{J=u.size;I=A}if(s.settings.multipart&amp;&amp;n.multipart&amp;&amp;typeof(I)!==&quot;string&quot;&amp;&amp;z&amp;&amp;n.cantSendBlobInFormData&amp;&amp;n.chunks&amp;&amp;s.settings.chunk_size){z.onload=function(){G(z.result)};z.readAsBinaryString(I)}else{G(I)}}B()}y=c[u.id];if(n.jpgresize&amp;&amp;s.settings.resize&amp;&amp;/\.(png|jpg|jpeg)$/i.test(u.name)){d.call(s,u,s.settings.resize,/\.png$/i.test(u.name)?&quot;image/png&quot;:&quot;image/jpeg&quot;,function(z){if(z.success){u.size=z.data.length;w(z.data)}else{if(n.chunks){w(y)}else{l(y,w)}}})}else{if(!n.chunks&amp;&amp;n.jpgresize){l(y,w)}else{w(y)}}});p.bind(&quot;Destroy&quot;,function(s){var u,v,t=k.body,w={inputContainer:s.id+&quot;_html5_container&quot;,inputFile:s.id+&quot;_html5&quot;,browseButton:s.settings.brows
 e_button
 ,dropElm:s.settings.drop_element};for(u in w){v=k.getElementById(w[u]);if(v){j.removeAllEvents(v,s.id)}}j.removeAllEvents(k.body,s.id);if(s.settings.container){t=k.getElementById(s.settings.container)}t.removeChild(k.getElementById(w.inputContainer))});r({success:true})}});function b(){var q=false,o;function r(t,v){var s=q?0:-8*(v-1),w=0,u;for(u=0;u&lt;v;u++){w|=(o.charCodeAt(t+u)&lt;&lt;Math.abs(s+u*8))}return w}function n(u,s,t){var t=arguments.length===3?t:o.length-s-1;o=o.substr(0,s)+u+o.substr(t+s)}function p(t,u,w){var x=&quot;&quot;,s=q?0:-8*(w-1),v;for(v=0;v&lt;w;v++){x+=String.fromCharCode((u&gt;&gt;Math.abs(s+v*8))&amp;255)}n(x,t,w)}return{II:function(s){if(s===e){return q}else{q=s}},init:function(s){q=false;o=s},SEGMENT:function(s,u,t){switch(arguments.length){case 1:return o.substr(s,o.length-s-1);case 2:return o.substr(s,u);case 3:n(t,s,u);break;default:return o}},BYTE:function(s){return r(s,1)},SHORT:function(s){return r(s,2)},LONG:function(s,t){if(t===e){retur
 n r(s,4)
 }else{p(s,t,4)}},SLONG:function(s){var t=r(s,4);return(t&gt;2147483647?t-4294967296:t)},STRING:function(s,t){var u=&quot;&quot;;for(t+=s;s&lt;t;s++){u+=String.fromCharCode(r(s,1))}return u}}}function f(s){var u={65505:{app:&quot;EXIF&quot;,name:&quot;APP1&quot;,signature:&quot;Exif\0&quot;},65506:{app:&quot;ICC&quot;,name:&quot;APP2&quot;,signature:&quot;ICC_PROFILE\0&quot;},65517:{app:&quot;IPTC&quot;,name:&quot;APP13&quot;,signature:&quot;Photoshop 3.0\0&quot;}},t=[],r,n,p=e,q=0,o;r=new b();r.init(s);if(r.SHORT(0)!==65496){return}n=2;o=Math.min(1048576,s.length);while(n&lt;=o){p=r.SHORT(n);if(p&gt;=65488&amp;&amp;p&lt;=65495){n+=2;continue}if(p===65498||p===65497){break}q=r.SHORT(n+2)+2;if(u[p]&amp;&amp;r.STRING(n+4,u[p].signature.length)===u[p].signature){t.push({hex:p,app:u[p].app.toUpperCase(),name:u[p].name.toUpperCase(),start:n,length:q,segment:r.SEGMENT(n,q)})}n+=q}r.init(null);return{headers:t,restore:function(y){r.init(y);var w=new f(y);if(!w.headers){return false}
 for(var 
 x=w.headers.length;x&gt;0;x--){var z=w.headers[x-1];r.SEGMENT(z.start,z.length,&quot;&quot;)}w.purge();n=r.SHORT(2)==65504?4+r.SHORT(4):2;for(var x=0,v=t.length;x&lt;v;x++){r.SEGMENT(n,0,t[x].segment);n+=t[x].length}return r.SEGMENT()},get:function(x){var y=[];for(var w=0,v=t.length;w&lt;v;w++){if(t[w].app===x.toUpperCase()){y.push(t[w].segment)}}return y},set:function(y,x){var z=[];if(typeof(x)===&quot;string&quot;){z.push(x)}else{z=x}for(var w=ii=0,v=t.length;w&lt;v;w++){if(t[w].app===y.toUpperCase()){t[w].segment=z[ii];t[w].length=z[ii].length;ii++}if(ii&gt;=z.length){break}}},purge:function(){t=[];r.init(null)}}}function a(){var q,n,o={},t;q=new b();n={tiff:{274:&quot;Orientation&quot;,34665:&quot;ExifIFDPointer&quot;,34853:&quot;GPSInfoIFDPointer&quot;},exif:{36864:&quot;ExifVersion&quot;,40961:&quot;ColorSpace&quot;,40962:&quot;PixelXDimension&quot;,40963:&quot;PixelYDimension&quot;,36867:&quot;DateTimeOriginal&quot;,33434:&quot;ExposureTime&quot;,33437:&quot;FNumber&q
 uot;,348
 55:&quot;ISOSpeedRatings&quot;,37377:&quot;ShutterSpeedValue&quot;,37378:&quot;ApertureValue&quot;,37383:&quot;MeteringMode&quot;,37384:&quot;LightSource&quot;,37385:&quot;Flash&quot;,41986:&quot;ExposureMode&quot;,41987:&quot;WhiteBalance&quot;,41990:&quot;SceneCaptureType&quot;,41988:&quot;DigitalZoomRatio&quot;,41992:&quot;Contrast&quot;,41993:&quot;Saturation&quot;,41994:&quot;Sharpness&quot;},gps:{0:&quot;GPSVersionID&quot;,1:&quot;GPSLatitudeRef&quot;,2:&quot;GPSLatitude&quot;,3:&quot;GPSLongitudeRef&quot;,4:&quot;GPSLongitude&quot;}};t={ColorSpace:{1:&quot;sRGB&quot;,0:&quot;Uncalibrated&quot;},MeteringMode:{0:&quot;Unknown&quot;,1:&quot;Average&quot;,2:&quot;CenterWeightedAverage&quot;,3:&quot;Spot&quot;,4:&quot;MultiSpot&quot;,5:&quot;Pattern&quot;,6:&quot;Partial&quot;,255:&quot;Other&quot;},LightSource:{1:&quot;Daylight&quot;,2:&quot;Fliorescent&quot;,3:&quot;Tungsten&quot;,4:&quot;Flash&quot;,9:&quot;Fine weather&quot;,10:&quot;Cloudy weather&quot;,11:&quot;Shade
 &quot;,1
 2:&quot;Daylight fluorescent (D 5700 - 7100K)&quot;,13:&quot;Day white fluorescent (N 4600 -5400K)&quot;,14:&quot;Cool white fluorescent (W 3900 - 4500K)&quot;,15:&quot;White fluorescent (WW 3200 - 3700K)&quot;,17:&quot;Standard light A&quot;,18:&quot;Standard light B&quot;,19:&quot;Standard light C&quot;,20:&quot;D55&quot;,21:&quot;D65&quot;,22:&quot;D75&quot;,23:&quot;D50&quot;,24:&quot;ISO studio tungsten&quot;,255:&quot;Other&quot;},Flash:{0:&quot;Flash did not fire.&quot;,1:&quot;Flash fired.&quot;,5:&quot;Strobe return light not detected.&quot;,7:&quot;Strobe return light detected.&quot;,9:&quot;Flash fired, compulsory flash mode&quot;,13:&quot;Flash fired, compulsory flash mode, return light not detected&quot;,15:&quot;Flash fired, compulsory flash mode, return light detected&quot;,16:&quot;Flash did not fire, compulsory flash mode&quot;,24:&quot;Flash did not fire, auto mode&quot;,25:&quot;Flash fired, auto mode&quot;,29:&quot;Flash fired, auto mode, return light not
  detecte
 d&quot;,31:&quot;Flash fired, auto mode, return light detected&quot;,32:&quot;No flash function&quot;,65:&quot;Flash fired, red-eye reduction mode&quot;,69:&quot;Flash fired, red-eye reduction mode, return light not detected&quot;,71:&quot;Flash fired, red-eye reduction mode, return light detected&quot;,73:&quot;Flash fired, compulsory flash mode, red-eye reduction mode&quot;,77:&quot;Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected&quot;,79:&quot;Flash fired, compulsory flash mode, red-eye reduction mode, return light detected&quot;,89:&quot;Flash fired, auto mode, red-eye reduction mode&quot;,93:&quot;Flash fired, auto mode, return light not detected, red-eye reduction mode&quot;,95:&quot;Flash fired, auto mode, return light detected, red-eye reduction mode&quot;},ExposureMode:{0:&quot;Auto exposure&quot;,1:&quot;Manual exposure&quot;,2:&quot;Auto bracket&quot;},WhiteBalance:{0:&quot;Auto white balance&quot;,1:&quot;Manual white balance
 &quot;},
 SceneCaptureType:{0:&quot;Standard&quot;,1:&quot;Landscape&quot;,2:&quot;Portrait&quot;,3:&quot;Night scene&quot;},Contrast:{0:&quot;Normal&quot;,1:&quot;Soft&quot;,2:&quot;Hard&quot;},Saturation:{0:&quot;Normal&quot;,1:&quot;Low saturation&quot;,2:&quot;High saturation&quot;},Sharpness:{0:&quot;Normal&quot;,1:&quot;Soft&quot;,2:&quot;Hard&quot;},GPSLatitudeRef:{N:&quot;North latitude&quot;,S:&quot;South latitude&quot;},GPSLongitudeRef:{E:&quot;East longitude&quot;,W:&quot;West longitude&quot;}};function p(u,C){var w=q.SHORT(u),z,F,G,B,A,v,x,D,E=[],y={};for(z=0;z&lt;w;z++){x=v=u+12*z+2;G=C[q.SHORT(x)];if(G===e){continue}B=q.SHORT(x+=2);A=q.LONG(x+=2);x+=4;E=[];switch(B){case 1:case 7:if(A&gt;4){x=q.LONG(x)+o.tiffHeader}for(F=0;F&lt;A;F++){E[F]=q.BYTE(x+F)}break;case 2:if(A&gt;4){x=q.LONG(x)+o.tiffHeader}y[G]=q.STRING(x,A-1);continue;case 3:if(A&gt;2){x=q.LONG(x)+o.tiffHeader}for(F=0;F&lt;A;F++){E[F]=q.SHORT(x+F*2)}break;case 4:if(A&gt;1){x=q.LONG(x)+o.tiffHeader}for(F=0;F&lt
 ;A;F++){
 E[F]=q.LONG(x+F*4)}break;case 5:x=q.LONG(x)+o.tiffHeader;for(F=0;F&lt;A;F++){E[F]=q.LONG(x+F*4)/q.LONG(x+F*4+4)}break;case 9:x=q.LONG(x)+o.tiffHeader;for(F=0;F&lt;A;F++){E[F]=q.SLONG(x+F*4)}break;case 10:x=q.LONG(x)+o.tiffHeader;for(F=0;F&lt;A;F++){E[F]=q.SLONG(x+F*4)/q.SLONG(x+F*4+4)}break;default:continue}D=(A==1?E[0]:E);if(t.hasOwnProperty(G)&amp;&amp;typeof D!=&quot;object&quot;){y[G]=t[G][D]}else{y[G]=D}}return y}function s(){var v=e,u=o.tiffHeader;q.II(q.SHORT(u)==18761);if(q.SHORT(u+=2)!==42){return false}o.IFD0=o.tiffHeader+q.LONG(u+=2);v=p(o.IFD0,n.tiff);o.exifIFD=(&quot;ExifIFDPointer&quot; in v?o.tiffHeader+v.ExifIFDPointer:e);o.gpsIFD=(&quot;GPSInfoIFDPointer&quot; in v?o.tiffHeader+v.GPSInfoIFDPointer:e);return true}function r(w,u,z){var B,y,x,A=0;if(typeof(u)===&quot;string&quot;){var v=n[w.toLowerCase()];for(hex in v){if(v[hex]===u){u=hex;break}}}B=o[w.toLowerCase()+&quot;IFD&quot;];y=q.SHORT(B);for(i=0;i&lt;y;i++){x=B+12*i+2;if(q.SHORT(x)==u){A=x+8;break}}if(
 !A){retu
 rn false}q.LONG(A,z);return true}return{init:function(u){o={tiffHeader:10};if(u===e||!u.length){return false}q.init(u);if(q.SHORT(0)===65505&amp;&amp;q.STRING(4,5).toUpperCase()===&quot;EXIF\0&quot;){return s()}return false},EXIF:function(){var v;v=p(o.exifIFD,n.exif);if(v.ExifVersion&amp;&amp;j.typeOf(v.ExifVersion)===&quot;array&quot;){for(var w=0,u=&quot;&quot;;w&lt;v.ExifVersion.length;w++){u+=String.fromCharCode(v.ExifVersion[w])}v.ExifVersion=u}return v},GPS:function(){var u;u=p(o.gpsIFD,n.gps);if(u.GPSVersionID){u.GPSVersionID=u.GPSVersionID.join(&quot;.&quot;)}return u},setExif:function(u,v){if(u!==&quot;PixelXDimension&quot;&amp;&amp;u!==&quot;PixelYDimension&quot;){return false}return r(&quot;exif&quot;,u,v)},getBinary:function(){return q.SEGMENT()}}}})(window,document,plupload);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(k,m,l,g){var d={},j;function c(s){var r=s.naturalWidth,u=s.naturalHeight;if(r*u&gt;1024*1024){var t=m.createElement(&quot;canvas&quot;);t.width=t.height=1;var q=t.getContext(&quot;2d&quot;);q.drawImage(s,-r+1,0);return q.getImageData(0,0,1,1).data[3]===0}else{return false}}function f(u,r,z){var q=m.createElement(&quot;canvas&quot;);q.width=1;q.height=z;var A=q.getContext(&quot;2d&quot;);A.drawImage(u,0,0);var t=A.getImageData(0,0,1,z).data;var x=0;var v=z;var y=z;while(y&gt;x){var s=t[(y-1)*4+3];if(s===0){v=y}else{x=y}y=(v+x)&gt;&gt;1}var w=(y/z);return(w===0)?1:w}function o(K,s,t){var v=K.naturalWidth,z=K.naturalHeight;var E=t.width,B=t.height;var F=s.getContext(&quot;2d&quot;);F.save();var r=c(K);if(r){v/=2;z/=2}var I=1024;var q=m.createElement(&quot;canvas&quot;);q.width=q.height=I;var u=q.getContext(&quot;2d&quot;);var G=f(K,v,z);var A=0;while(A&lt;z){var J=A+I&gt;z?z-A:I;var C=0;while(C&lt;v){var D=C+I&gt;v?v-C:I;u.clearRect(0,0,I,I);u.drawImage(K,
 -C,-A);v
 ar x=(C*E/v)&lt;&lt;0;var y=Math.ceil(D*E/v);var w=(A*B/z/G)&lt;&lt;0;var H=Math.ceil(J*B/z/G);F.drawImage(q,0,0,D,J,x,w,y,H);C+=I}A+=I}F.restore();q=u=null}function p(r,s){var q;if(&quot;FileReader&quot; in k){q=new FileReader();q.readAsDataURL(r);q.onload=function(){s(q.result)}}else{return s(r.getAsDataURL())}}function n(r,s){var q;if(&quot;FileReader&quot; in k){q=new FileReader();q.readAsBinaryString(r);q.onload=function(){s(q.result)}}else{return s(r.getAsBinary())}}function e(u,s,q,y){var t,r,x,v,w=this;p(d[u.id],function(z){t=m.createElement(&quot;canvas&quot;);t.style.display=&quot;none&quot;;m.body.appendChild(t);x=new Image();x.onerror=x.onabort=function(){y({success:false})};x.onload=function(){var F,A,C,B,E;if(!s.width){s.width=x.width}if(!s.height){s.height=x.height}v=Math.min(s.width/x.width,s.height/x.height);if(v&lt;1){F=Math.round(x.width*v);A=Math.round(x.height*v)}else{if(s.quality&amp;&amp;q===&quot;image/jpeg&quot;){F=x.width;A=x.height}else{y({success:
 false});
 return}}t.width=F;t.height=A;o(x,t,{width:F,height:A});if(q===&quot;image/jpeg&quot;){B=new h(atob(z.substring(z.indexOf(&quot;base64,&quot;)+7)));if(B.headers&amp;&amp;B.headers.length){E=new a();if(E.init(B.get(&quot;exif&quot;)[0])){E.setExif(&quot;PixelXDimension&quot;,F);E.setExif(&quot;PixelYDimension&quot;,A);B.set(&quot;exif&quot;,E.getBinary());if(w.hasEventListener(&quot;ExifData&quot;)){w.trigger(&quot;ExifData&quot;,u,E.EXIF())}if(w.hasEventListener(&quot;GpsData&quot;)){w.trigger(&quot;GpsData&quot;,u,E.GPS())}}}}if(s.quality&amp;&amp;q===&quot;image/jpeg&quot;){try{z=t.toDataURL(q,s.quality/100)}catch(D){z=t.toDataURL(q)}}else{z=t.toDataURL(q)}z=z.substring(z.indexOf(&quot;base64,&quot;)+7);z=atob(z);if(B&amp;&amp;B.headers&amp;&amp;B.headers.length){z=B.restore(z);B.purge()}t.parentNode.removeChild(t);y({success:true,data:z})};x.src=z})}l.runtimes.Html5=l.addRuntime(&quot;html5&quot;,{getFeatures:function(){var v,r,u,t,s,q;r=u=s=q=false;if(k.XMLHttpRequest){v=
 new XMLH
 ttpRequest();u=!!v.upload;r=!!(v.sendAsBinary||v.upload)}if(r){t=!!(v.sendAsBinary||(k.Uint8Array&amp;&amp;k.ArrayBuffer));s=!!(File&amp;&amp;(File.prototype.getAsDataURL||k.FileReader)&amp;&amp;t);q=!!(File&amp;&amp;(File.prototype.mozSlice||File.prototype.webkitSlice||File.prototype.slice))}j=l.ua.safari&amp;&amp;l.ua.windows;return{html5:r,dragdrop:(function(){var w=m.createElement(&quot;div&quot;);return(&quot;draggable&quot; in w)||(&quot;ondragstart&quot; in w&amp;&amp;&quot;ondrop&quot; in w)}()),jpgresize:s,pngresize:s,multipart:s||!!k.FileReader||!!k.FormData,canSendBinary:t,cantSendBlobInFormData:!!(l.ua.gecko&amp;&amp;k.FormData&amp;&amp;k.FileReader&amp;&amp;!FileReader.prototype.readAsArrayBuffer)||l.ua.android,progress:u,chunks:q,multi_selection:!(l.ua.safari&amp;&amp;l.ua.windows),triggerDialog:(l.ua.gecko&amp;&amp;k.FormData||l.ua.webkit)}},init:function(s,u){var q,t;function r(z){var x,w,y=[],A,v={};for(w=0;w&lt;z.length;w++){x=z[w];if(v[x.name]&amp;&amp;l.u
 a.safari
 &amp;&amp;l.ua.windows){continue}v[x.name]=true;A=l.guid();d[A]=x;y.push(new l.File(A,x.fileName||x.name,x.fileSize||x.size))}if(y.length){s.trigger(&quot;FilesAdded&quot;,y)}}q=this.getFeatures();if(!q.html5){u({success:false});return}s.bind(&quot;Init&quot;,function(A){var J,I,F=[],z,G,w=A.settings.filters,x,E,v=m.body,H;J=m.createElement(&quot;div&quot;);J.id=A.id+&quot;_html5_container&quot;;l.extend(J.style,{position:&quot;absolute&quot;,background:s.settings.shim_bgcolor||&quot;transparent&quot;,width:&quot;100px&quot;,height:&quot;100px&quot;,overflow:&quot;hidden&quot;,zIndex:99999,opacity:s.settings.shim_bgcolor?&quot;&quot;:0});J.className=&quot;plupload html5&quot;;if(s.settings.container){v=m.getElementById(s.settings.container);if(l.getStyle(v,&quot;position&quot;)===&quot;static&quot;){v.style.position=&quot;relative&quot;}}v.appendChild(J);no_type_restriction:for(z=0;z&lt;w.length;z++){x=w[z].extensions.split(/,/);for(G=0;G&lt;x.length;G++){if(x[G]===&quot;*&q
 uot;){F=
 [];break no_type_restriction}E=l.mimeTypes[x[G]];if(E&amp;&amp;l.inArray(E,F)===-1){F.push(E)}}}J.innerHTML='&lt;input id=&quot;'+s.id+'_html5&quot;  style=&quot;font-size:999px&quot; type=&quot;file&quot; accept=&quot;'+F.join(&quot;,&quot;)+'&quot; '+(s.settings.multi_selection&amp;&amp;s.features.multi_selection?'multiple=&quot;multiple&quot;':&quot;&quot;)+&quot; /&gt;&quot;;J.scrollTop=100;H=m.getElementById(s.id+&quot;_html5&quot;);if(A.features.triggerDialog){l.extend(H.style,{position:&quot;absolute&quot;,width:&quot;100%&quot;,height:&quot;100%&quot;})}else{l.extend(H.style,{cssFloat:&quot;right&quot;,styleFloat:&quot;right&quot;})}H.onchange=function(){r(this.files);this.value=&quot;&quot;};I=m.getElementById(A.settings.browse_button);if(I){var C=A.settings.browse_button_hover,D=A.settings.browse_button_active,B=A.features.triggerDialog?I:J;if(C){l.addEvent(B,&quot;mouseover&quot;,function(){l.addClass(I,C)},A.id);l.addEvent(B,&quot;mouseout&quot;,function(){l.remo
 veClass(
 I,C)},A.id)}if(D){l.addEvent(B,&quot;mousedown&quot;,function(){l.addClass(I,D)},A.id);l.addEvent(m.body,&quot;mouseup&quot;,function(){l.removeClass(I,D)},A.id)}if(A.features.triggerDialog){l.addEvent(I,&quot;click&quot;,function(K){var y=m.getElementById(A.id+&quot;_html5&quot;);if(y&amp;&amp;!y.disabled){y.click()}K.preventDefault()},A.id)}}});s.bind(&quot;PostInit&quot;,function(){var v=m.getElementById(s.settings.drop_element);if(v){if(j){l.addEvent(v,&quot;dragenter&quot;,function(z){var y,w,x;y=m.getElementById(s.id+&quot;_drop&quot;);if(!y){y=m.createElement(&quot;input&quot;);y.setAttribute(&quot;type&quot;,&quot;file&quot;);y.setAttribute(&quot;id&quot;,s.id+&quot;_drop&quot;);y.setAttribute(&quot;multiple&quot;,&quot;multiple&quot;);l.addEvent(y,&quot;change&quot;,function(){r(this.files);l.removeEvent(y,&quot;change&quot;,s.id);y.parentNode.removeChild(y)},s.id);l.addEvent(y,&quot;dragover&quot;,function(A){A.stopPropagation()},s.id);v.appendChild(y)}w=l.getPos(v
 ,m.getEl
 ementById(s.settings.container));x=l.getSize(v);if(l.getStyle(v,&quot;position&quot;)===&quot;static&quot;){l.extend(v.style,{position:&quot;relative&quot;})}l.extend(y.style,{position:&quot;absolute&quot;,display:&quot;block&quot;,top:0,left:0,width:x.w+&quot;px&quot;,height:x.h+&quot;px&quot;,opacity:0})},s.id);return}l.addEvent(v,&quot;dragover&quot;,function(w){w.preventDefault()},s.id);l.addEvent(v,&quot;drop&quot;,function(x){var w=x.dataTransfer;if(w&amp;&amp;w.files){r(w.files)}x.preventDefault()},s.id)}});s.bind(&quot;Refresh&quot;,function(v){var w,x,y,A,z;w=m.getElementById(s.settings.browse_button);if(w){x=l.getPos(w,m.getElementById(v.settings.container));y=l.getSize(w);A=m.getElementById(s.id+&quot;_html5_container&quot;);l.extend(A.style,{top:x.y+&quot;px&quot;,left:x.x+&quot;px&quot;,width:y.w+&quot;px&quot;,height:y.h+&quot;px&quot;});if(s.features.triggerDialog){if(l.getStyle(w,&quot;position&quot;)===&quot;static&quot;){l.extend(w.style,{position:&quot;rel
 ative&qu
 ot;})}z=parseInt(l.getStyle(w,&quot;zIndex&quot;),10);if(isNaN(z)){z=0}l.extend(w.style,{zIndex:z});l.extend(A.style,{zIndex:z-1})}}});s.bind(&quot;DisableBrowse&quot;,function(v,x){var w=m.getElementById(v.id+&quot;_html5&quot;);if(w){w.disabled=x}});s.bind(&quot;CancelUpload&quot;,function(){if(t&amp;&amp;t.abort){t.abort()}});s.bind(&quot;UploadFile&quot;,function(v,x){var y=v.settings,B,w;function A(D,G,C){var E;if(File.prototype.slice){try{D.slice();return D.slice(G,C)}catch(F){return D.slice(G,C-G)}}else{if(E=File.prototype.webkitSlice||File.prototype.mozSlice){return E.call(D,G,C)}else{return null}}}function z(C){var F=0,E=0;function D(){var L,P,N,O,K,M,H,G=v.settings.url;function J(S){if(t.sendAsBinary){t.sendAsBinary(S)}else{if(v.features.canSendBinary){var Q=new Uint8Array(S.length);for(var R=0;R&lt;S.length;R++){Q[R]=(S.charCodeAt(R)&amp;255)}t.send(Q.buffer)}}}function I(R){var V=0,W=&quot;----pluploadboundary&quot;+l.guid(),T,S=&quot;--&quot;,U=&quot;\r\n&quot;,
 Q=&quot;
 &quot;;t=new XMLHttpRequest;if(t.upload){t.upload.onprogress=function(X){x.loaded=Math.min(x.size,E+X.loaded-V);v.trigger(&quot;UploadProgress&quot;,x)}}t.onreadystatechange=function(){var X,Z;if(t.readyState==4&amp;&amp;v.state!==l.STOPPED){try{X=t.status}catch(Y){X=0}if(X&gt;=400){v.trigger(&quot;Error&quot;,{code:l.HTTP_ERROR,message:l.translate(&quot;HTTP Error.&quot;),file:x,status:X})}else{if(N){Z={chunk:F,chunks:N,response:t.responseText,status:X};v.trigger(&quot;ChunkUploaded&quot;,x,Z);E+=M;if(Z.cancelled){x.status=l.FAILED;return}x.loaded=Math.min(x.size,(F+1)*K)}else{x.loaded=x.size}v.trigger(&quot;UploadProgress&quot;,x);R=L=T=Q=null;if(!N||++F&gt;=N){x.status=l.DONE;v.trigger(&quot;FileUploaded&quot;,x,{response:t.responseText,status:X})}else{D()}}}};if(v.settings.multipart&amp;&amp;q.multipart){O.name=x.target_name||x.name;t.open(&quot;post&quot;,G,true);l.each(v.settings.headers,function(Y,X){t.setRequestHeader(X,Y)});if(typeof(R)!==&quot;string&quot;&amp;&amp
 ;!!k.For
 mData){T=new FormData();l.each(l.extend(O,v.settings.multipart_params),function(Y,X){T.append(X,Y)});T.append(v.settings.file_data_name,R);t.send(T);return}if(typeof(R)===&quot;string&quot;){t.setRequestHeader(&quot;Content-Type&quot;,&quot;multipart/form-data; boundary=&quot;+W);l.each(l.extend(O,v.settings.multipart_params),function(Y,X){Q+=S+W+U+'Content-Disposition: form-data; name=&quot;'+X+'&quot;'+U+U;Q+=unescape(encodeURIComponent(Y))+U});H=l.mimeTypes[x.name.replace(/^.+\.([^.]+)/,&quot;$1&quot;).toLowerCase()]||&quot;application/octet-stream&quot;;Q+=S+W+U+'Content-Disposition: form-data; name=&quot;'+v.settings.file_data_name+'&quot;; filename=&quot;'+unescape(encodeURIComponent(x.name))+'&quot;'+U+&quot;Content-Type: &quot;+H+U+U+R+U+S+W+S+U;V=Q.length-R.length;R=Q;J(R);return}}G=l.buildUrl(v.settings.url,l.extend(O,v.settings.multipart_params));t.open(&quot;post&quot;,G,true);t.setRequestHeader(&quot;Content-Type&quot;,&quot;application/octet-stream&quot;);l.eac
 h(v.sett
 ings.headers,function(Y,X){t.setRequestHeader(X,Y)});if(typeof(R)===&quot;string&quot;){J(R)}else{t.send(R)}}if(x.status==l.DONE||x.status==l.FAILED||v.state==l.STOPPED){return}O={name:x.target_name||x.name};if(y.chunk_size&amp;&amp;x.size&gt;y.chunk_size&amp;&amp;(q.chunks||typeof(C)==&quot;string&quot;)){K=y.chunk_size;N=Math.ceil(x.size/K);M=Math.min(K,x.size-(F*K));if(typeof(C)==&quot;string&quot;){L=C.substring(F*K,F*K+M)}else{L=A(C,F*K,F*K+M)}O.chunk=F;O.chunks=N}else{M=x.size;L=C}if(v.settings.multipart&amp;&amp;q.multipart&amp;&amp;typeof(L)!==&quot;string&quot;&amp;&amp;k.FileReader&amp;&amp;q.cantSendBlobInFormData&amp;&amp;q.chunks&amp;&amp;v.settings.chunk_size){(function(){var Q=new FileReader();Q.onload=function(){I(Q.result);Q=null};Q.readAsBinaryString(L)}())}else{I(L)}}D()}B=d[x.id];if(q.jpgresize&amp;&amp;v.settings.resize&amp;&amp;/\.(png|jpg|jpeg)$/i.test(x.name)){e.call(v,x,v.settings.resize,/\.png$/i.test(x.name)?&quot;image/png&quot;:&quot;image/jpeg&q
 uot;,fun
 ction(C){if(C.success){x.size=C.data.length;z(C.data)}else{if(q.chunks){z(B)}else{n(B,z)}}})}else{if(!q.chunks&amp;&amp;q.jpgresize){n(B,z)}else{z(B)}}});s.bind(&quot;Destroy&quot;,function(v){var x,y,w=m.body,z={inputContainer:v.id+&quot;_html5_container&quot;,inputFile:v.id+&quot;_html5&quot;,browseButton:v.settings.browse_button,dropElm:v.settings.drop_element};for(x in z){y=m.getElementById(z[x]);if(y){l.removeAllEvents(y,v.id)}}l.removeAllEvents(m.body,v.id);if(v.settings.container){w=m.getElementById(v.settings.container)}w.removeChild(m.getElementById(z.inputContainer))});u({success:true})}});function b(){var t=false,r;function u(w,y){var v=t?0:-8*(y-1),z=0,x;for(x=0;x&lt;y;x++){z|=(r.charCodeAt(w+x)&lt;&lt;Math.abs(v+x*8))}return z}function q(x,v,w){var w=arguments.length===3?w:r.length-v-1;r=r.substr(0,v)+x+r.substr(w+v)}function s(w,x,z){var A=&quot;&quot;,v=t?0:-8*(z-1),y;for(y=0;y&lt;z;y++){A+=String.fromCharCode((x&gt;&gt;Math.abs(v+y*8))&amp;255)}q(A,w,z)}retur
 n{II:fun
 ction(v){if(v===g){return t}else{t=v}},init:function(v){t=false;r=v},SEGMENT:function(v,x,w){switch(arguments.length){case 1:return r.substr(v,r.length-v-1);case 2:return r.substr(v,x);case 3:q(w,v,x);break;default:return r}},BYTE:function(v){return u(v,1)},SHORT:function(v){return u(v,2)},LONG:function(v,w){if(w===g){return u(v,4)}else{s(v,w,4)}},SLONG:function(v){var w=u(v,4);return(w&gt;2147483647?w-4294967296:w)},STRING:function(v,w){var x=&quot;&quot;;for(w+=v;v&lt;w;v++){x+=String.fromCharCode(u(v,1))}return x}}}function h(v){var x={65505:{app:&quot;EXIF&quot;,name:&quot;APP1&quot;,signature:&quot;Exif\0&quot;},65506:{app:&quot;ICC&quot;,name:&quot;APP2&quot;,signature:&quot;ICC_PROFILE\0&quot;},65517:{app:&quot;IPTC&quot;,name:&quot;APP13&quot;,signature:&quot;Photoshop 3.0\0&quot;}},w=[],u,q,s=g,t=0,r;u=new b();u.init(v);if(u.SHORT(0)!==65496){return}q=2;r=Math.min(1048576,v.length);while(q&lt;=r){s=u.SHORT(q);if(s&gt;=65488&amp;&amp;s&lt;=65495){q+=2;continue}if(s==
 =65498||
 s===65497){break}t=u.SHORT(q+2)+2;if(x[s]&amp;&amp;u.STRING(q+4,x[s].signature.length)===x[s].signature){w.push({hex:s,app:x[s].app.toUpperCase(),name:x[s].name.toUpperCase(),start:q,length:t,segment:u.SEGMENT(q,t)})}q+=t}u.init(null);return{headers:w,restore:function(B){u.init(B);var z=new h(B);if(!z.headers){return false}for(var A=z.headers.length;A&gt;0;A--){var C=z.headers[A-1];u.SEGMENT(C.start,C.length,&quot;&quot;)}z.purge();q=u.SHORT(2)==65504?4+u.SHORT(4):2;for(var A=0,y=w.length;A&lt;y;A++){u.SEGMENT(q,0,w[A].segment);q+=w[A].length}return u.SEGMENT()},get:function(A){var B=[];for(var z=0,y=w.length;z&lt;y;z++){if(w[z].app===A.toUpperCase()){B.push(w[z].segment)}}return B},set:function(B,A){var C=[];if(typeof(A)===&quot;string&quot;){C.push(A)}else{C=A}for(var z=ii=0,y=w.length;z&lt;y;z++){if(w[z].app===B.toUpperCase()){w[z].segment=C[ii];w[z].length=C[ii].length;ii++}if(ii&gt;=C.length){break}}},purge:function(){w=[];u.init(null)}}}function a(){var t,q,r={},w;t=ne
 w b();q=
 {tiff:{274:&quot;Orientation&quot;,34665:&quot;ExifIFDPointer&quot;,34853:&quot;GPSInfoIFDPointer&quot;},exif:{36864:&quot;ExifVersion&quot;,40961:&quot;ColorSpace&quot;,40962:&quot;PixelXDimension&quot;,40963:&quot;PixelYDimension&quot;,36867:&quot;DateTimeOriginal&quot;,33434:&quot;ExposureTime&quot;,33437:&quot;FNumber&quot;,34855:&quot;ISOSpeedRatings&quot;,37377:&quot;ShutterSpeedValue&quot;,37378:&quot;ApertureValue&quot;,37383:&quot;MeteringMode&quot;,37384:&quot;LightSource&quot;,37385:&quot;Flash&quot;,41986:&quot;ExposureMode&quot;,41987:&quot;WhiteBalance&quot;,41990:&quot;SceneCaptureType&quot;,41988:&quot;DigitalZoomRatio&quot;,41992:&quot;Contrast&quot;,41993:&quot;Saturation&quot;,41994:&quot;Sharpness&quot;},gps:{0:&quot;GPSVersionID&quot;,1:&quot;GPSLatitudeRef&quot;,2:&quot;GPSLatitude&quot;,3:&quot;GPSLongitudeRef&quot;,4:&quot;GPSLongitude&quot;}};w={ColorSpace:{1:&quot;sRGB&quot;,0:&quot;Uncalibrated&quot;},MeteringMode:{0:&quot;Unknown&quot;,1:&quot;Ave
 rage&quo
 t;,2:&quot;CenterWeightedAverage&quot;,3:&quot;Spot&quot;,4:&quot;MultiSpot&quot;,5:&quot;Pattern&quot;,6:&quot;Partial&quot;,255:&quot;Other&quot;},LightSource:{1:&quot;Daylight&quot;,2:&quot;Fliorescent&quot;,3:&quot;Tungsten&quot;,4:&quot;Flash&quot;,9:&quot;Fine weather&quot;,10:&quot;Cloudy weather&quot;,11:&quot;Shade&quot;,12:&quot;Daylight fluorescent (D 5700 - 7100K)&quot;,13:&quot;Day white fluorescent (N 4600 -5400K)&quot;,14:&quot;Cool white fluorescent (W 3900 - 4500K)&quot;,15:&quot;White fluorescent (WW 3200 - 3700K)&quot;,17:&quot;Standard light A&quot;,18:&quot;Standard light B&quot;,19:&quot;Standard light C&quot;,20:&quot;D55&quot;,21:&quot;D65&quot;,22:&quot;D75&quot;,23:&quot;D50&quot;,24:&quot;ISO studio tungsten&quot;,255:&quot;Other&quot;},Flash:{0:&quot;Flash did not fire.&quot;,1:&quot;Flash fired.&quot;,5:&quot;Strobe return light not detected.&quot;,7:&quot;Strobe return light detected.&quot;,9:&quot;Flash fired, compulsory flash mode&quot;,13:&qu
 ot;Flash
  fired, compulsory flash mode, return light not detected&quot;,15:&quot;Flash fired, compulsory flash mode, return light detected&quot;,16:&quot;Flash did not fire, compulsory flash mode&quot;,24:&quot;Flash did not fire, auto mode&quot;,25:&quot;Flash fired, auto mode&quot;,29:&quot;Flash fired, auto mode, return light not detected&quot;,31:&quot;Flash fired, auto mode, return light detected&quot;,32:&quot;No flash function&quot;,65:&quot;Flash fired, red-eye reduction mode&quot;,69:&quot;Flash fired, red-eye reduction mode, return light not detected&quot;,71:&quot;Flash fired, red-eye reduction mode, return light detected&quot;,73:&quot;Flash fired, compulsory flash mode, red-eye reduction mode&quot;,77:&quot;Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected&quot;,79:&quot;Flash fired, compulsory flash mode, red-eye reduction mode, return light detected&quot;,89:&quot;Flash fired, auto mode, red-eye reduction mode&quot;,93:&quot;Flash fi
 red, aut
 o mode, return light not detected, red-eye reduction mode&quot;,95:&quot;Flash fired, auto mode, return light detected, red-eye reduction mode&quot;},ExposureMode:{0:&quot;Auto exposure&quot;,1:&quot;Manual exposure&quot;,2:&quot;Auto bracket&quot;},WhiteBalance:{0:&quot;Auto white balance&quot;,1:&quot;Manual white balance&quot;},SceneCaptureType:{0:&quot;Standard&quot;,1:&quot;Landscape&quot;,2:&quot;Portrait&quot;,3:&quot;Night scene&quot;},Contrast:{0:&quot;Normal&quot;,1:&quot;Soft&quot;,2:&quot;Hard&quot;},Saturation:{0:&quot;Normal&quot;,1:&quot;Low saturation&quot;,2:&quot;High saturation&quot;},Sharpness:{0:&quot;Normal&quot;,1:&quot;Soft&quot;,2:&quot;Hard&quot;},GPSLatitudeRef:{N:&quot;North latitude&quot;,S:&quot;South latitude&quot;},GPSLongitudeRef:{E:&quot;East longitude&quot;,W:&quot;West longitude&quot;}};function s(x,F){var z=t.SHORT(x),C,I,J,E,D,y,A,G,H=[],B={};for(C=0;C&lt;z;C++){A=y=x+12*C+2;J=F[t.SHORT(A)];if(J===g){continue}E=t.SHORT(A+=2);D=t.LONG(A+=
 2);A+=4;
 H=[];switch(E){case 1:case 7:if(D&gt;4){A=t.LONG(A)+r.tiffHeader}for(I=0;I&lt;D;I++){H[I]=t.BYTE(A+I)}break;case 2:if(D&gt;4){A=t.LONG(A)+r.tiffHeader}B[J]=t.STRING(A,D-1);continue;case 3:if(D&gt;2){A=t.LONG(A)+r.tiffHeader}for(I=0;I&lt;D;I++){H[I]=t.SHORT(A+I*2)}break;case 4:if(D&gt;1){A=t.LONG(A)+r.tiffHeader}for(I=0;I&lt;D;I++){H[I]=t.LONG(A+I*4)}break;case 5:A=t.LONG(A)+r.tiffHeader;for(I=0;I&lt;D;I++){H[I]=t.LONG(A+I*4)/t.LONG(A+I*4+4)}break;case 9:A=t.LONG(A)+r.tiffHeader;for(I=0;I&lt;D;I++){H[I]=t.SLONG(A+I*4)}break;case 10:A=t.LONG(A)+r.tiffHeader;for(I=0;I&lt;D;I++){H[I]=t.SLONG(A+I*4)/t.SLONG(A+I*4+4)}break;default:continue}G=(D==1?H[0]:H);if(w.hasOwnProperty(J)&amp;&amp;typeof G!=&quot;object&quot;){B[J]=w[J][G]}else{B[J]=G}}return B}function v(){var y=g,x=r.tiffHeader;t.II(t.SHORT(x)==18761);if(t.SHORT(x+=2)!==42){return false}r.IFD0=r.tiffHeader+t.LONG(x+=2);y=s(r.IFD0,q.tiff);r.exifIFD=(&quot;ExifIFDPointer&quot; in y?r.tiffHeader+y.ExifIFDPointer:g);r.gpsIFD=(
 &quot;GP
 SInfoIFDPointer&quot; in y?r.tiffHeader+y.GPSInfoIFDPointer:g);return true}function u(z,x,C){var E,B,A,D=0;if(typeof(x)===&quot;string&quot;){var y=q[z.toLowerCase()];for(hex in y){if(y[hex]===x){x=hex;break}}}E=r[z.toLowerCase()+&quot;IFD&quot;];B=t.SHORT(E);for(i=0;i&lt;B;i++){A=E+12*i+2;if(t.SHORT(A)==x){D=A+8;break}}if(!D){return false}t.LONG(D,C);return true}return{init:function(x){r={tiffHeader:10};if(x===g||!x.length){return false}t.init(x);if(t.SHORT(0)===65505&amp;&amp;t.STRING(4,5).toUpperCase()===&quot;EXIF\0&quot;){return v()}return false},EXIF:function(){var y;y=s(r.exifIFD,q.exif);if(y.ExifVersion&amp;&amp;l.typeOf(y.ExifVersion)===&quot;array&quot;){for(var z=0,x=&quot;&quot;;z&lt;y.ExifVersion.length;z++){x+=String.fromCharCode(y.ExifVersion[z])}y.ExifVersion=x}return y},GPS:function(){var x;x=s(r.gpsIFD,q.gps);if(x.GPSVersionID){x.GPSVersionID=x.GPSVersionID.join(&quot;.&quot;)}return x},setExif:function(x,y){if(x!==&quot;PixelXDimension&quot;&amp;&amp;x!==&
 quot;Pix
 elYDimension&quot;){return false}return u(&quot;exif&quot;,x,y)},getBinary:function(){return t.SEGMENT()}}}})(window,document,plupload);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjspluploadpluploadjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/plupload/plupload.js (24075 => 24076)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/plupload/plupload.js        2013-04-23 23:19:29 UTC (rev 24075)
+++ trunk/wp-includes/js/plupload/plupload.js        2013-04-24 21:54:17 UTC (rev 24076)
</span><span class="lines">@@ -1,2 +1,2 @@
</span><del>-/*1.5.5*/
-(function(){var f=0,k=[],m={},i={},a={&quot;&lt;&quot;:&quot;lt&quot;,&quot;&gt;&quot;:&quot;gt&quot;,&quot;&amp;&quot;:&quot;amp&quot;,'&quot;':&quot;quot&quot;,&quot;'&quot;:&quot;#39&quot;},l=/[&lt;&gt;&amp;\&quot;\']/g,b,c=window.setTimeout,d={},e;function h(){this.returnValue=false}function j(){this.cancelBubble=true}(function(n){var o=n.split(/,/),p,r,q;for(p=0;p&lt;o.length;p+=2){q=o[p+1].split(/ /);for(r=0;r&lt;q.length;r++){i[q[r]]=o[p]}}})(&quot;application/msword,doc dot,application/pdf,pdf,application/pgp-signature,pgp,application/postscript,ps ai eps,application/rtf,rtf,application/vnd.ms-excel,xls xlb,application/vnd.ms-powerpoint,ppt pps pot,application/zip,zip,application/x-shockwave-flash,swf swfl,application/vnd.openxmlformats-officedocument.wordprocessingml.document,docx,application/vnd.openxmlformats-officedocument.wordprocessingml.template,dotx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,xlsx,application/vnd.openxmlformats-officedoc
 ument.pr
 esentationml.presentation,pptx,application/vnd.openxmlformats-officedocument.presentationml.template,potx,application/vnd.openxmlformats-officedocument.presentationml.slideshow,ppsx,application/x-javascript,js,application/json,json,audio/mpeg,mpga mpega mp2 mp3,audio/x-wav,wav,audio/mp4,m4a,image/bmp,bmp,image/gif,gif,image/jpeg,jpeg jpg jpe,image/photoshop,psd,image/png,png,image/svg+xml,svg svgz,image/tiff,tiff tif,text/plain,asc txt text diff log,text/html,htm html xhtml,text/css,css,text/csv,csv,text/rtf,rtf,video/mpeg,mpeg mpg mpe m2v,video/quicktime,qt mov,video/mp4,mp4,video/x-m4v,m4v,video/x-flv,flv,video/x-ms-wmv,wmv,video/avi,avi,video/webm,webm,video/3gpp,3gp,video/3gpp2,3g2,video/vnd.rn-realvideo,rv,application/vnd.oasis.opendocument.formula-template,otf,application/octet-stream,exe&quot;);var g={VERSION:&quot;1.5.5&quot;,STOPPED:1,STARTED:2,QUEUED:1,UPLOADING:2,FAILED:4,DONE:5,GENERIC_ERROR:-100,HTTP_ERROR:-200,IO_ERROR:-300,SECURITY_ERROR:-400,INIT_ERROR:-500,F
 ILE_SIZE
 _ERROR:-600,FILE_EXTENSION_ERROR:-601,IMAGE_FORMAT_ERROR:-700,IMAGE_MEMORY_ERROR:-701,IMAGE_DIMENSIONS_ERROR:-702,mimeTypes:i,ua:(function(){var r=navigator,q=r.userAgent,s=r.vendor,o,n,p;o=/WebKit/.test(q);p=o&amp;&amp;s.indexOf(&quot;Apple&quot;)!==-1;n=window.opera&amp;&amp;window.opera.buildNumber;return{windows:navigator.platform.indexOf(&quot;Win&quot;)!==-1,ie:!o&amp;&amp;!n&amp;&amp;(/MSIE/gi).test(q)&amp;&amp;(/Explorer/gi).test(r.appName),webkit:o,gecko:!o&amp;&amp;/Gecko/.test(q),safari:p,opera:!!n}}()),typeOf:function(n){return({}).toString.call(n).match(/\s([a-z|A-Z]+)/)[1].toLowerCase()},extend:function(n){g.each(arguments,function(o,p){if(p&gt;0){g.each(o,function(r,q){n[q]=r})}});return n},cleanName:function(n){var o,p;p=[/[\300-\306]/g,&quot;A&quot;,/[\340-\346]/g,&quot;a&quot;,/\307/g,&quot;C&quot;,/\347/g,&quot;c&quot;,/[\310-\313]/g,&quot;E&quot;,/[\350-\353]/g,&quot;e&quot;,/[\314-\317]/g,&quot;I&quot;,/[\354-\357]/g,&quot;i&quot;,/\321/g,&quot;N&quot;,/
 \361/g,&
 quot;n&quot;,/[\322-\330]/g,&quot;O&quot;,/[\362-\370]/g,&quot;o&quot;,/[\331-\334]/g,&quot;U&quot;,/[\371-\374]/g,&quot;u&quot;];for(o=0;o&lt;p.length;o+=2){n=n.replace(p[o],p[o+1])}n=n.replace(/\s+/g,&quot;_&quot;);n=n.replace(/[^a-z0-9_\-\.]+/gi,&quot;&quot;);return n},addRuntime:function(n,o){o.name=n;k[n]=o;k.push(o);return o},guid:function(){var n=new Date().getTime().toString(32),o;for(o=0;o&lt;5;o++){n+=Math.floor(Math.random()*65535).toString(32)}return(g.guidPrefix||&quot;p&quot;)+n+(f++).toString(32)},buildUrl:function(o,n){var p=&quot;&quot;;g.each(n,function(r,q){p+=(p?&quot;&amp;&quot;:&quot;&quot;)+encodeURIComponent(q)+&quot;=&quot;+encodeURIComponent(r)});if(p){o+=(o.indexOf(&quot;?&quot;)&gt;0?&quot;&amp;&quot;:&quot;?&quot;)+p}return o},each:function(q,r){var p,o,n;if(q){p=q.length;if(p===b){for(o in q){if(q.hasOwnProperty(o)){if(r(q[o],o)===false){return}}}}else{for(n=0;n&lt;p;n++){if(r(q[n],n)===false){return}}}}},formatSize:function(n){if(n===b||/\D/.te
 st(n)){r
 eturn g.translate(&quot;N/A&quot;)}if(n&gt;1073741824){return Math.round(n/1073741824,1)+&quot; GB&quot;}if(n&gt;1048576){return Math.round(n/1048576,1)+&quot; MB&quot;}if(n&gt;1024){return Math.round(n/1024,1)+&quot; KB&quot;}return n+&quot; b&quot;},getPos:function(o,s){var t=0,r=0,v,u=document,p,q;o=o;s=s||u.body;function n(B){var z,A,w=0,C=0;if(B){A=B.getBoundingClientRect();z=u.compatMode===&quot;CSS1Compat&quot;?u.documentElement:u.body;w=A.left+z.scrollLeft;C=A.top+z.scrollTop}return{x:w,y:C}}if(o&amp;&amp;o.getBoundingClientRect&amp;&amp;((navigator.userAgent.indexOf(&quot;MSIE&quot;)&gt;0)&amp;&amp;(u.documentMode&lt;8))){p=n(o);q=n(s);return{x:p.x-q.x,y:p.y-q.y}}v=o;while(v&amp;&amp;v!=s&amp;&amp;v.nodeType){t+=v.offsetLeft||0;r+=v.offsetTop||0;v=v.offsetParent}v=o.parentNode;while(v&amp;&amp;v!=s&amp;&amp;v.nodeType){t-=v.scrollLeft||0;r-=v.scrollTop||0;v=v.parentNode}return{x:t,y:r}},getSize:function(n){return{w:n.offsetWidth||n.clientWidth,h:n.offsetHeight||n.cl
 ientHeig
 ht}},parseSize:function(n){var o;if(typeof(n)==&quot;string&quot;){n=/^([0-9]+)([mgk]?)$/.exec(n.toLowerCase().replace(/[^0-9mkg]/g,&quot;&quot;));o=n[2];n=+n[1];if(o==&quot;g&quot;){n*=1073741824}if(o==&quot;m&quot;){n*=1048576}if(o==&quot;k&quot;){n*=1024}}return n},xmlEncode:function(n){return n?(&quot;&quot;+n).replace(l,function(o){return a[o]?&quot;&amp;&quot;+a[o]+&quot;;&quot;:o}):n},toArray:function(p){var o,n=[];for(o=0;o&lt;p.length;o++){n[o]=p[o]}return n},inArray:function(p,q){if(q){if(Array.prototype.indexOf){return Array.prototype.indexOf.call(q,p)}for(var n=0,o=q.length;n&lt;o;n++){if(q[n]===p){return n}}}return -1},addI18n:function(n){return g.extend(m,n)},translate:function(n){return m[n]||n},isEmptyObj:function(n){if(n===b){return true}for(var o in n){return false}return true},hasClass:function(p,o){var n;if(p.className==&quot;&quot;){return false}n=new RegExp(&quot;(^|\\s+)&quot;+o+&quot;(\\s+|$)&quot;);return n.test(p.className)},addClass:function(o,n){i
 f(!g.has
 Class(o,n)){o.className=o.className==&quot;&quot;?n:o.className.replace(/\s+$/,&quot;&quot;)+&quot; &quot;+n}},removeClass:function(p,o){var n=new RegExp(&quot;(^|\\s+)&quot;+o+&quot;(\\s+|$)&quot;);p.className=p.className.replace(n,function(r,q,s){return q===&quot; &quot;&amp;&amp;s===&quot; &quot;?&quot; &quot;:&quot;&quot;})},getStyle:function(o,n){if(o.currentStyle){return o.currentStyle[n]}else{if(window.getComputedStyle){return window.getComputedStyle(o,null)[n]}}},addEvent:function(s,n,t){var r,q,p,o;o=arguments[3];n=n.toLowerCase();if(e===b){e=&quot;Plupload_&quot;+g.guid()}if(s.addEventListener){r=t;s.addEventListener(n,r,false)}else{if(s.attachEvent){r=function(){var u=window.event;if(!u.target){u.target=u.srcElement}u.preventDefault=h;u.stopPropagation=j;t(u)};s.attachEvent(&quot;on&quot;+n,r)}}if(s[e]===b){s[e]=g.guid()}if(!d.hasOwnProperty(s[e])){d[s[e]]={}}q=d[s[e]];if(!q.hasOwnProperty(n)){q[n]=[]}q[n].push({func:r,orig:t,key:o})},removeEvent:function(s,n){var
  q,t,p;i
 f(typeof(arguments[2])==&quot;function&quot;){t=arguments[2]}else{p=arguments[2]}n=n.toLowerCase();if(s[e]&amp;&amp;d[s[e]]&amp;&amp;d[s[e]][n]){q=d[s[e]][n]}else{return}for(var o=q.length-1;o&gt;=0;o--){if(q[o].key===p||q[o].orig===t){if(s.removeEventListener){s.removeEventListener(n,q[o].func,false)}else{if(s.detachEvent){s.detachEvent(&quot;on&quot;+n,q[o].func)}}q[o].orig=null;q[o].func=null;q.splice(o,1);if(t!==b){break}}}if(!q.length){delete d[s[e]][n]}if(g.isEmptyObj(d[s[e]])){delete d[s[e]];try{delete s[e]}catch(r){s[e]=b}}},removeAllEvents:function(o){var n=arguments[1];if(o[e]===b||!o[e]){return}g.each(d[o[e]],function(q,p){g.removeEvent(o,p,n)})}};g.Uploader=function(r){var o={},u,t=[],q,p=false;u=new g.QueueProgress();r=g.extend({chunk_size:0,multipart:true,multi_selection:true,file_data_name:&quot;file&quot;,filters:[]},r);function s(){var w,x=0,v;if(this.state==g.STARTED){for(v=0;v&lt;t.length;v++){if(!w&amp;&amp;t[v].status==g.QUEUED){w=t[v];w.status=g.UPLOADI
 NG;if(th
 is.trigger(&quot;BeforeUpload&quot;,w)){this.trigger(&quot;UploadFile&quot;,w)}}else{x++}}if(x==t.length){this.stop();this.trigger(&quot;UploadComplete&quot;,t)}}}function n(){var w,v;u.reset();for(w=0;w&lt;t.length;w++){v=t[w];if(v.size!==b){u.size+=v.size;u.loaded+=v.loaded}else{u.size=b}if(v.status==g.DONE){u.uploaded++}else{if(v.status==g.FAILED){u.failed++}else{u.queued++}}}if(u.size===b){u.percent=t.length&gt;0?Math.ceil(u.uploaded/t.length*100):0}else{u.bytesPerSec=Math.ceil(u.loaded/((+new Date()-q||1)/1000));u.percent=u.size&gt;0?Math.ceil(u.loaded/u.size*100):0}}g.extend(this,{state:g.STOPPED,runtime:&quot;&quot;,features:{},files:t,settings:r,total:u,id:g.guid(),init:function(){var A=this,B,x,w,z=0,y;if(typeof(r.preinit)==&quot;function&quot;){r.preinit(A)}else{g.each(r.preinit,function(D,C){A.bind(C,D)})}r.page_url=r.page_url||document.location.pathname.replace(/\/[^\/]+$/g,&quot;/&quot;);if(!/^(\w+:\/\/|\/)/.test(r.url)){r.url=r.page_url+r.url}r.chunk_size=g.par
 seSize(r
 .chunk_size);r.max_file_size=g.parseSize(r.max_file_size);A.bind(&quot;FilesAdded&quot;,function(C,F){var E,D,H=0,I,G=r.filters;if(G&amp;&amp;G.length){I=[];g.each(G,function(J){g.each(J.extensions.split(/,/),function(K){if(/^\s*\*\s*$/.test(K)){I.push(&quot;\\.*&quot;)}else{I.push(&quot;\\.&quot;+K.replace(new RegExp(&quot;[&quot;+(&quot;/^$.*+?|()[]{}\\&quot;.replace(/./g,&quot;\\$&amp;&quot;))+&quot;]&quot;,&quot;g&quot;),&quot;\\$&amp;&quot;))}})});I=new RegExp(I.join(&quot;|&quot;)+&quot;$&quot;,&quot;i&quot;)}for(E=0;E&lt;F.length;E++){D=F[E];D.loaded=0;D.percent=0;D.status=g.QUEUED;if(I&amp;&amp;!I.test(D.name)){C.trigger(&quot;Error&quot;,{code:g.FILE_EXTENSION_ERROR,message:g.translate(&quot;File extension error.&quot;),file:D});continue}if(D.size!==b&amp;&amp;D.size&gt;r.max_file_size){C.trigger(&quot;Error&quot;,{code:g.FILE_SIZE_ERROR,message:g.translate(&quot;File size error.&quot;),file:D});continue}t.push(D);H++}if(H){c(function(){A.trigger(&quot;QueueChanged&
 quot;);A
 .refresh()},1)}else{return false}});if(r.unique_names){A.bind(&quot;UploadFile&quot;,function(C,D){var F=D.name.match(/\.([^.]+)$/),E=&quot;tmp&quot;;if(F){E=F[1]}D.target_name=D.id+&quot;.&quot;+E})}A.bind(&quot;UploadProgress&quot;,function(C,D){D.percent=D.size&gt;0?Math.ceil(D.loaded/D.size*100):100;n()});A.bind(&quot;StateChanged&quot;,function(C){if(C.state==g.STARTED){q=(+new Date())}else{if(C.state==g.STOPPED){for(B=C.files.length-1;B&gt;=0;B--){if(C.files[B].status==g.UPLOADING){C.files[B].status=g.QUEUED;n()}}}}});A.bind(&quot;QueueChanged&quot;,n);A.bind(&quot;Error&quot;,function(C,D){if(D.file){D.file.status=g.FAILED;n();if(C.state==g.STARTED){c(function(){s.call(A)},1)}}});A.bind(&quot;FileUploaded&quot;,function(C,D){D.status=g.DONE;D.loaded=D.size;C.trigger(&quot;UploadProgress&quot;,D);c(function(){s.call(A)},1)});if(r.runtimes){x=[];y=r.runtimes.split(/\s?,\s?/);for(B=0;B&lt;y.length;B++){if(k[y[B]]){x.push(k[y[B]])}}}else{x=k}function v(){var F=x[z++],E,C,
 D;if(F){
 E=F.getFeatures();C=A.settings.required_features;if(C){C=C.split(&quot;,&quot;);for(D=0;D&lt;C.length;D++){if(!E[C[D]]){v();return}}}F.init(A,function(G){if(G&amp;&amp;G.success){A.features=E;A.runtime=F.name;A.trigger(&quot;Init&quot;,{runtime:F.name});A.trigger(&quot;PostInit&quot;);A.refresh()}else{v()}})}else{A.trigger(&quot;Error&quot;,{code:g.INIT_ERROR,message:g.translate(&quot;Init error.&quot;)})}}v();if(typeof(r.init)==&quot;function&quot;){r.init(A)}else{g.each(r.init,function(D,C){A.bind(C,D)})}},refresh:function(){this.trigger(&quot;Refresh&quot;)},start:function(){if(t.length&amp;&amp;this.state!=g.STARTED){this.state=g.STARTED;this.trigger(&quot;StateChanged&quot;);s.call(this)}},stop:function(){if(this.state!=g.STOPPED){this.state=g.STOPPED;this.trigger(&quot;CancelUpload&quot;);this.trigger(&quot;StateChanged&quot;)}},disableBrowse:function(){p=arguments[0]!==b?arguments[0]:true;this.trigger(&quot;DisableBrowse&quot;,p)},getFile:function(w){var v;for(v=t.len
 gth-1;v&
 gt;=0;v--){if(t[v].id===w){return t[v]}}},removeFile:function(w){var v;for(v=t.length-1;v&gt;=0;v--){if(t[v].id===w.id){return this.splice(v,1)[0]}}},splice:function(x,v){var w;w=t.splice(x===b?0:x,v===b?t.length:v);this.trigger(&quot;FilesRemoved&quot;,w);this.trigger(&quot;QueueChanged&quot;);return w},trigger:function(w){var y=o[w.toLowerCase()],x,v;if(y){v=Array.prototype.slice.call(arguments);v[0]=this;for(x=0;x&lt;y.length;x++){if(y[x].func.apply(y[x].scope,v)===false){return false}}}return true},hasEventListener:function(v){return !!o[v.toLowerCase()]},bind:function(v,x,w){var y;v=v.toLowerCase();y=o[v]||[];y.push({func:x,scope:w||this});o[v]=y},unbind:function(v){v=v.toLowerCase();var y=o[v],w,x=arguments[1];if(y){if(x!==b){for(w=y.length-1;w&gt;=0;w--){if(y[w].func===x){y.splice(w,1);break}}}else{y=[]}if(!y.length){delete o[v]}}},unbindAll:function(){var v=this;g.each(o,function(x,w){v.unbind(w)})},destroy:function(){this.stop();this.trigger(&quot;Destroy&quot;);thi
 s.unbind
 All()}})};g.File=function(q,o,p){var n=this;n.id=q;n.name=o;n.size=p;n.loaded=0;n.percent=0;n.status=0};g.Runtime=function(){this.getFeatures=function(){};this.init=function(n,o){}};g.QueueProgress=function(){var n=this;n.size=0;n.loaded=0;n.uploaded=0;n.failed=0;n.queued=0;n.percent=0;n.bytesPerSec=0;n.reset=function(){n.size=n.loaded=n.uploaded=n.failed=n.queued=n.percent=n.bytesPerSec=0}};g.runtimes={};window.plupload=g})();
</del><span class="cx">\ No newline at end of file
</span><ins>+/*1.5.7*/
+(function(){var f=0,k=[],m={},i={},a={&quot;&lt;&quot;:&quot;lt&quot;,&quot;&gt;&quot;:&quot;gt&quot;,&quot;&amp;&quot;:&quot;amp&quot;,'&quot;':&quot;quot&quot;,&quot;'&quot;:&quot;#39&quot;},l=/[&lt;&gt;&amp;\&quot;\']/g,b,c=window.setTimeout,d={},e;function h(){this.returnValue=false}function j(){this.cancelBubble=true}(function(n){var o=n.split(/,/),p,r,q;for(p=0;p&lt;o.length;p+=2){q=o[p+1].split(/ /);for(r=0;r&lt;q.length;r++){i[q[r]]=o[p]}}})(&quot;application/msword,doc dot,application/pdf,pdf,application/pgp-signature,pgp,application/postscript,ps ai eps,application/rtf,rtf,application/vnd.ms-excel,xls xlb,application/vnd.ms-powerpoint,ppt pps pot,application/zip,zip,application/x-shockwave-flash,swf swfl,application/vnd.openxmlformats-officedocument.wordprocessingml.document,docx,application/vnd.openxmlformats-officedocument.wordprocessingml.template,dotx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,xlsx,application/vnd.openxmlformats-officedoc
 ument.pr
 esentationml.presentation,pptx,application/vnd.openxmlformats-officedocument.presentationml.template,potx,application/vnd.openxmlformats-officedocument.presentationml.slideshow,ppsx,application/x-javascript,js,application/json,json,audio/mpeg,mpga mpega mp2 mp3,audio/x-wav,wav,audio/mp4,m4a,image/bmp,bmp,image/gif,gif,image/jpeg,jpeg jpg jpe,image/photoshop,psd,image/png,png,image/svg+xml,svg svgz,image/tiff,tiff tif,text/plain,asc txt text diff log,text/html,htm html xhtml,text/css,css,text/csv,csv,text/rtf,rtf,video/mpeg,mpeg mpg mpe m2v,video/quicktime,qt mov,video/mp4,mp4,video/x-m4v,m4v,video/x-flv,flv,video/x-ms-wmv,wmv,video/avi,avi,video/webm,webm,video/3gpp,3gp,video/3gpp2,3g2,video/vnd.rn-realvideo,rv,application/vnd.oasis.opendocument.formula-template,otf,application/octet-stream,exe&quot;);var g={VERSION:&quot;1.5.7&quot;,STOPPED:1,STARTED:2,QUEUED:1,UPLOADING:2,FAILED:4,DONE:5,GENERIC_ERROR:-100,HTTP_ERROR:-200,IO_ERROR:-300,SECURITY_ERROR:-400,INIT_ERROR:-500,F
 ILE_SIZE
 _ERROR:-600,FILE_EXTENSION_ERROR:-601,IMAGE_FORMAT_ERROR:-700,IMAGE_MEMORY_ERROR:-701,IMAGE_DIMENSIONS_ERROR:-702,mimeTypes:i,ua:(function(){var r=navigator,q=r.userAgent,s=r.vendor,o,n,p;o=/WebKit/.test(q);p=o&amp;&amp;s.indexOf(&quot;Apple&quot;)!==-1;n=window.opera&amp;&amp;window.opera.buildNumber;return{windows:navigator.platform.indexOf(&quot;Win&quot;)!==-1,android:/Android/.test(q),ie:!o&amp;&amp;!n&amp;&amp;(/MSIE/gi).test(q)&amp;&amp;(/Explorer/gi).test(r.appName),webkit:o,gecko:!o&amp;&amp;/Gecko/.test(q),safari:p,opera:!!n}}()),typeOf:function(n){return({}).toString.call(n).match(/\s([a-z|A-Z]+)/)[1].toLowerCase()},extend:function(n){g.each(arguments,function(o,p){if(p&gt;0){g.each(o,function(r,q){n[q]=r})}});return n},cleanName:function(n){var o,p;p=[/[\300-\306]/g,&quot;A&quot;,/[\340-\346]/g,&quot;a&quot;,/\307/g,&quot;C&quot;,/\347/g,&quot;c&quot;,/[\310-\313]/g,&quot;E&quot;,/[\350-\353]/g,&quot;e&quot;,/[\314-\317]/g,&quot;I&quot;,/[\354-\357]/g,&quot;i&quo
 t;,/\321
 /g,&quot;N&quot;,/\361/g,&quot;n&quot;,/[\322-\330]/g,&quot;O&quot;,/[\362-\370]/g,&quot;o&quot;,/[\331-\334]/g,&quot;U&quot;,/[\371-\374]/g,&quot;u&quot;];for(o=0;o&lt;p.length;o+=2){n=n.replace(p[o],p[o+1])}n=n.replace(/\s+/g,&quot;_&quot;);n=n.replace(/[^a-z0-9_\-\.]+/gi,&quot;&quot;);return n},addRuntime:function(n,o){o.name=n;k[n]=o;k.push(o);return o},guid:function(){var n=new Date().getTime().toString(32),o;for(o=0;o&lt;5;o++){n+=Math.floor(Math.random()*65535).toString(32)}return(g.guidPrefix||&quot;p&quot;)+n+(f++).toString(32)},buildUrl:function(o,n){var p=&quot;&quot;;g.each(n,function(r,q){p+=(p?&quot;&amp;&quot;:&quot;&quot;)+encodeURIComponent(q)+&quot;=&quot;+encodeURIComponent(r)});if(p){o+=(o.indexOf(&quot;?&quot;)&gt;0?&quot;&amp;&quot;:&quot;?&quot;)+p}return o},each:function(q,r){var p,o,n;if(q){p=q.length;if(p===b){for(o in q){if(q.hasOwnProperty(o)){if(r(q[o],o)===false){return}}}}else{for(n=0;n&lt;p;n++){if(r(q[n],n)===false){return}}}}},formatSize:fun
 ction(n)
 {if(n===b||/\D/.test(n)){return g.translate(&quot;N/A&quot;)}if(n&gt;1073741824){return Math.round(n/1073741824,1)+&quot; GB&quot;}if(n&gt;1048576){return Math.round(n/1048576,1)+&quot; MB&quot;}if(n&gt;1024){return Math.round(n/1024,1)+&quot; KB&quot;}return n+&quot; b&quot;},getPos:function(o,s){var t=0,r=0,v,u=document,p,q;o=o;s=s||u.body;function n(B){var z,A,w=0,C=0;if(B){A=B.getBoundingClientRect();z=u.compatMode===&quot;CSS1Compat&quot;?u.documentElement:u.body;w=A.left+z.scrollLeft;C=A.top+z.scrollTop}return{x:w,y:C}}if(o&amp;&amp;o.getBoundingClientRect&amp;&amp;g.ua.ie&amp;&amp;(!u.documentMode||u.documentMode&lt;8)){p=n(o);q=n(s);return{x:p.x-q.x,y:p.y-q.y}}v=o;while(v&amp;&amp;v!=s&amp;&amp;v.nodeType){t+=v.offsetLeft||0;r+=v.offsetTop||0;v=v.offsetParent}v=o.parentNode;while(v&amp;&amp;v!=s&amp;&amp;v.nodeType){t-=v.scrollLeft||0;r-=v.scrollTop||0;v=v.parentNode}return{x:t,y:r}},getSize:function(n){return{w:n.offsetWidth||n.clientWidth,h:n.offsetHeight||n.client
 Height}}
 ,parseSize:function(n){var o;if(typeof(n)==&quot;string&quot;){n=/^([0-9]+)([mgk]?)$/.exec(n.toLowerCase().replace(/[^0-9mkg]/g,&quot;&quot;));o=n[2];n=+n[1];if(o==&quot;g&quot;){n*=1073741824}if(o==&quot;m&quot;){n*=1048576}if(o==&quot;k&quot;){n*=1024}}return n},xmlEncode:function(n){return n?(&quot;&quot;+n).replace(l,function(o){return a[o]?&quot;&amp;&quot;+a[o]+&quot;;&quot;:o}):n},toArray:function(p){var o,n=[];for(o=0;o&lt;p.length;o++){n[o]=p[o]}return n},inArray:function(p,q){if(q){if(Array.prototype.indexOf){return Array.prototype.indexOf.call(q,p)}for(var n=0,o=q.length;n&lt;o;n++){if(q[n]===p){return n}}}return -1},addI18n:function(n){return g.extend(m,n)},translate:function(n){return m[n]||n},isEmptyObj:function(n){if(n===b){return true}for(var o in n){return false}return true},hasClass:function(p,o){var n;if(p.className==&quot;&quot;){return false}n=new RegExp(&quot;(^|\\s+)&quot;+o+&quot;(\\s+|$)&quot;);return n.test(p.className)},addClass:function(o,n){if(!g
 .hasClas
 s(o,n)){o.className=o.className==&quot;&quot;?n:o.className.replace(/\s+$/,&quot;&quot;)+&quot; &quot;+n}},removeClass:function(p,o){var n=new RegExp(&quot;(^|\\s+)&quot;+o+&quot;(\\s+|$)&quot;);p.className=p.className.replace(n,function(r,q,s){return q===&quot; &quot;&amp;&amp;s===&quot; &quot;?&quot; &quot;:&quot;&quot;})},getStyle:function(o,n){if(o.currentStyle){return o.currentStyle[n]}else{if(window.getComputedStyle){return window.getComputedStyle(o,null)[n]}}},addEvent:function(s,n,t){var r,q,p,o;o=arguments[3];n=n.toLowerCase();if(e===b){e=&quot;Plupload_&quot;+g.guid()}if(s.addEventListener){r=t;s.addEventListener(n,r,false)}else{if(s.attachEvent){r=function(){var u=window.event;if(!u.target){u.target=u.srcElement}u.preventDefault=h;u.stopPropagation=j;t(u)};s.attachEvent(&quot;on&quot;+n,r)}}if(s[e]===b){s[e]=g.guid()}if(!d.hasOwnProperty(s[e])){d[s[e]]={}}q=d[s[e]];if(!q.hasOwnProperty(n)){q[n]=[]}q[n].push({func:r,orig:t,key:o})},removeEvent:function(s,n){var q,t
 ,p;if(ty
 peof(arguments[2])==&quot;function&quot;){t=arguments[2]}else{p=arguments[2]}n=n.toLowerCase();if(s[e]&amp;&amp;d[s[e]]&amp;&amp;d[s[e]][n]){q=d[s[e]][n]}else{return}for(var o=q.length-1;o&gt;=0;o--){if(q[o].key===p||q[o].orig===t){if(s.removeEventListener){s.removeEventListener(n,q[o].func,false)}else{if(s.detachEvent){s.detachEvent(&quot;on&quot;+n,q[o].func)}}q[o].orig=null;q[o].func=null;q.splice(o,1);if(t!==b){break}}}if(!q.length){delete d[s[e]][n]}if(g.isEmptyObj(d[s[e]])){delete d[s[e]];try{delete s[e]}catch(r){s[e]=b}}},removeAllEvents:function(o){var n=arguments[1];if(o[e]===b||!o[e]){return}g.each(d[o[e]],function(q,p){g.removeEvent(o,p,n)})}};g.Uploader=function(r){var o={},u,t=[],q,p=false;u=new g.QueueProgress();r=g.extend({chunk_size:0,multipart:true,multi_selection:true,file_data_name:&quot;file&quot;,filters:[]},r);function s(){var w,x=0,v;if(this.state==g.STARTED){for(v=0;v&lt;t.length;v++){if(!w&amp;&amp;t[v].status==g.QUEUED){w=t[v];w.status=g.UPLOADING;i
 f(this.t
 rigger(&quot;BeforeUpload&quot;,w)){this.trigger(&quot;UploadFile&quot;,w)}}else{x++}}if(x==t.length){this.stop();this.trigger(&quot;UploadComplete&quot;,t)}}}function n(){var w,v;u.reset();for(w=0;w&lt;t.length;w++){v=t[w];if(v.size!==b){u.size+=v.size;u.loaded+=v.loaded}else{u.size=b}if(v.status==g.DONE){u.uploaded++}else{if(v.status==g.FAILED){u.failed++}else{u.queued++}}}if(u.size===b){u.percent=t.length&gt;0?Math.ceil(u.uploaded/t.length*100):0}else{u.bytesPerSec=Math.ceil(u.loaded/((+new Date()-q||1)/1000));u.percent=u.size&gt;0?Math.ceil(u.loaded/u.size*100):0}}g.extend(this,{state:g.STOPPED,runtime:&quot;&quot;,features:{},files:t,settings:r,total:u,id:g.guid(),init:function(){var A=this,B,x,w,z=0,y;if(typeof(r.preinit)==&quot;function&quot;){r.preinit(A)}else{g.each(r.preinit,function(D,C){A.bind(C,D)})}r.page_url=r.page_url||document.location.pathname.replace(/\/[^\/]+$/g,&quot;/&quot;);if(!/^(\w+:\/\/|\/)/.test(r.url)){r.url=r.page_url+r.url}r.chunk_size=g.parseSi
 ze(r.chu
 nk_size);r.max_file_size=g.parseSize(r.max_file_size);A.bind(&quot;FilesAdded&quot;,function(C,F){var E,D,H=0,I,G=r.filters;if(G&amp;&amp;G.length){I=[];g.each(G,function(J){g.each(J.extensions.split(/,/),function(K){if(/^\s*\*\s*$/.test(K)){I.push(&quot;\\.*&quot;)}else{I.push(&quot;\\.&quot;+K.replace(new RegExp(&quot;[&quot;+(&quot;/^$.*+?|()[]{}\\&quot;.replace(/./g,&quot;\\$&amp;&quot;))+&quot;]&quot;,&quot;g&quot;),&quot;\\$&amp;&quot;))}})});I=new RegExp(I.join(&quot;|&quot;)+&quot;$&quot;,&quot;i&quot;)}for(E=0;E&lt;F.length;E++){D=F[E];D.loaded=0;D.percent=0;D.status=g.QUEUED;if(I&amp;&amp;!I.test(D.name)){C.trigger(&quot;Error&quot;,{code:g.FILE_EXTENSION_ERROR,message:g.translate(&quot;File extension error.&quot;),file:D});continue}if(D.size!==b&amp;&amp;D.size&gt;r.max_file_size){C.trigger(&quot;Error&quot;,{code:g.FILE_SIZE_ERROR,message:g.translate(&quot;File size error.&quot;),file:D});continue}t.push(D);H++}if(H){c(function(){A.trigger(&quot;QueueChanged&quot
 ;);A.ref
 resh()},1)}else{return false}});if(r.unique_names){A.bind(&quot;UploadFile&quot;,function(C,D){var F=D.name.match(/\.([^.]+)$/),E=&quot;tmp&quot;;if(F){E=F[1]}D.target_name=D.id+&quot;.&quot;+E})}A.bind(&quot;UploadProgress&quot;,function(C,D){D.percent=D.size&gt;0?Math.ceil(D.loaded/D.size*100):100;n()});A.bind(&quot;StateChanged&quot;,function(C){if(C.state==g.STARTED){q=(+new Date())}else{if(C.state==g.STOPPED){for(B=C.files.length-1;B&gt;=0;B--){if(C.files[B].status==g.UPLOADING){C.files[B].status=g.QUEUED;n()}}}}});A.bind(&quot;QueueChanged&quot;,n);A.bind(&quot;Error&quot;,function(C,D){if(D.file){D.file.status=g.FAILED;n();if(C.state==g.STARTED){c(function(){s.call(A)},1)}}});A.bind(&quot;FileUploaded&quot;,function(C,D){D.status=g.DONE;D.loaded=D.size;C.trigger(&quot;UploadProgress&quot;,D);c(function(){s.call(A)},1)});if(r.runtimes){x=[];y=r.runtimes.split(/\s?,\s?/);for(B=0;B&lt;y.length;B++){if(k[y[B]]){x.push(k[y[B]])}}}else{x=k}function v(){var F=x[z++],E,C,D;if
 (F){E=F.
 getFeatures();C=A.settings.required_features;if(C){C=C.split(&quot;,&quot;);for(D=0;D&lt;C.length;D++){if(!E[C[D]]){v();return}}}F.init(A,function(G){if(G&amp;&amp;G.success){A.features=E;A.runtime=F.name;A.trigger(&quot;Init&quot;,{runtime:F.name});A.trigger(&quot;PostInit&quot;);A.refresh()}else{v()}})}else{A.trigger(&quot;Error&quot;,{code:g.INIT_ERROR,message:g.translate(&quot;Init error.&quot;)})}}v();if(typeof(r.init)==&quot;function&quot;){r.init(A)}else{g.each(r.init,function(D,C){A.bind(C,D)})}},refresh:function(){this.trigger(&quot;Refresh&quot;)},start:function(){if(t.length&amp;&amp;this.state!=g.STARTED){this.state=g.STARTED;this.trigger(&quot;StateChanged&quot;);s.call(this)}},stop:function(){if(this.state!=g.STOPPED){this.state=g.STOPPED;this.trigger(&quot;CancelUpload&quot;);this.trigger(&quot;StateChanged&quot;)}},disableBrowse:function(){p=arguments[0]!==b?arguments[0]:true;this.trigger(&quot;DisableBrowse&quot;,p)},getFile:function(w){var v;for(v=t.length-
 1;v&gt;=
 0;v--){if(t[v].id===w){return t[v]}}},removeFile:function(w){var v;for(v=t.length-1;v&gt;=0;v--){if(t[v].id===w.id){return this.splice(v,1)[0]}}},splice:function(x,v){var w;w=t.splice(x===b?0:x,v===b?t.length:v);this.trigger(&quot;FilesRemoved&quot;,w);this.trigger(&quot;QueueChanged&quot;);return w},trigger:function(w){var y=o[w.toLowerCase()],x,v;if(y){v=Array.prototype.slice.call(arguments);v[0]=this;for(x=0;x&lt;y.length;x++){if(y[x].func.apply(y[x].scope,v)===false){return false}}}return true},hasEventListener:function(v){return !!o[v.toLowerCase()]},bind:function(v,x,w){var y;v=v.toLowerCase();y=o[v]||[];y.push({func:x,scope:w||this});o[v]=y},unbind:function(v){v=v.toLowerCase();var y=o[v],w,x=arguments[1];if(y){if(x!==b){for(w=y.length-1;w&gt;=0;w--){if(y[w].func===x){y.splice(w,1);break}}}else{y=[]}if(!y.length){delete o[v]}}},unbindAll:function(){var v=this;g.each(o,function(x,w){v.unbind(w)})},destroy:function(){this.stop();this.trigger(&quot;Destroy&quot;);this.un
 bindAll(
 )}})};g.File=function(q,o,p){var n=this;n.id=q;n.name=o;n.size=p;n.loaded=0;n.percent=0;n.status=0};g.Runtime=function(){this.getFeatures=function(){};this.init=function(n,o){}};g.QueueProgress=function(){var n=this;n.size=0;n.loaded=0;n.uploaded=0;n.failed=0;n.queued=0;n.percent=0;n.bytesPerSec=0;n.reset=function(){n.size=n.loaded=n.uploaded=n.failed=n.queued=n.percent=n.bytesPerSec=0}};g.runtimes={};window.plupload=g})();
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjspluploadpluploadsilverlightjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/plupload/plupload.silverlight.js (24075 => 24076)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/plupload/plupload.silverlight.js        2013-04-23 23:19:29 UTC (rev 24075)
+++ trunk/wp-includes/js/plupload/plupload.silverlight.js        2013-04-24 21:54:17 UTC (rev 24076)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(g,b,d,e){var a={},h={};function c(o){var n,m=typeof o,j,l,k;if(o===e||o===null){return&quot;null&quot;}if(m===&quot;string&quot;){n=&quot;\bb\tt\nn\ff\rr\&quot;\&quot;''\\\\&quot;;return'&quot;'+o.replace(/([\u0080-\uFFFF\x00-\x1f\&quot;])/g,function(q,p){var i=n.indexOf(p);if(i+1){return&quot;\\&quot;+n.charAt(i+1)}q=p.charCodeAt().toString(16);return&quot;\\u&quot;+&quot;0000&quot;.substring(q.length)+q})+'&quot;'}if(m==&quot;object&quot;){j=o.length!==e;n=&quot;&quot;;if(j){for(l=0;l&lt;o.length;l++){if(n){n+=&quot;,&quot;}n+=c(o[l])}n=&quot;[&quot;+n+&quot;]&quot;}else{for(k in o){if(o.hasOwnProperty(k)){if(n){n+=&quot;,&quot;}n+=c(k)+&quot;:&quot;+c(o[k])}}n=&quot;{&quot;+n+&quot;}&quot;}return n}return&quot;&quot;+o}function f(r){var u=false,i=null,n=null,j,k,l,t,m,p=0;try{try{n=new ActiveXObject(&quot;AgControl.AgControl&quot;);if(n.IsVersionSupported(r)){u=true}n=null}catch(q){var o=navigator.plugins[&quot;Silverlight Plug-In&quot;];if(o){j=o.de
 scriptio
 n;if(j===&quot;1.0.30226.2&quot;){j=&quot;2.0.30226.2&quot;}k=j.split(&quot;.&quot;);while(k.length&gt;3){k.pop()}while(k.length&lt;4){k.push(0)}l=r.split(&quot;.&quot;);while(l.length&gt;4){l.pop()}do{t=parseInt(l[p],10);m=parseInt(k[p],10);p++}while(p&lt;l.length&amp;&amp;t===m);if(t&lt;=m&amp;&amp;!isNaN(t)){u=true}}}}catch(s){u=false}return u}d.silverlight={trigger:function(n,k){var m=a[n],l,j;if(m){j=d.toArray(arguments).slice(1);j[0]=&quot;Silverlight:&quot;+k;setTimeout(function(){m.trigger.apply(m,j)},0)}}};d.runtimes.Silverlight=d.addRuntime(&quot;silverlight&quot;,{getFeatures:function(){return{jpgresize:true,pngresize:true,chunks:true,progress:true,multipart:true,multi_selection:true}},init:function(p,q){var o,m=&quot;&quot;,n=p.settings.filters,l,k=b.body;if(!f(&quot;2.0.31005.0&quot;)||(g.opera&amp;&amp;g.opera.buildNumber)){q({success:false});return}h[p.id]=false;a[p.id]=p;o=b.createElement(&quot;div&quot;);o.id=p.id+&quot;_silverlight_container&quot;;d.extend(
 o.style,
 {position:&quot;absolute&quot;,top:&quot;0px&quot;,background:p.settings.shim_bgcolor||&quot;transparent&quot;,zIndex:99999,width:&quot;100px&quot;,height:&quot;100px&quot;,overflow:&quot;hidden&quot;,opacity:p.settings.shim_bgcolor||b.documentMode&gt;8?&quot;&quot;:0.01});o.className=&quot;plupload silverlight&quot;;if(p.settings.container){k=b.getElementById(p.settings.container);if(d.getStyle(k,&quot;position&quot;)===&quot;static&quot;){k.style.position=&quot;relative&quot;}}k.appendChild(o);for(l=0;l&lt;n.length;l++){m+=(m!=&quot;&quot;?&quot;|&quot;:&quot;&quot;)+n[l].title+&quot; | *.&quot;+n[l].extensions.replace(/,/g,&quot;;*.&quot;)}o.innerHTML='&lt;object id=&quot;'+p.id+'_silverlight&quot; data=&quot;data:application/x-silverlight,&quot; type=&quot;application/x-silverlight-2&quot; style=&quot;outline:none;&quot; width=&quot;1024&quot; height=&quot;1024&quot;&gt;&lt;param name=&quot;source&quot; value=&quot;'+p.settings.silverlight_xap_url+'&quot;/&gt;&lt;param n
 ame=&quo
 t;background&quot; value=&quot;Transparent&quot;/&gt;&lt;param name=&quot;windowless&quot; value=&quot;true&quot;/&gt;&lt;param name=&quot;enablehtmlaccess&quot; value=&quot;true&quot;/&gt;&lt;param name=&quot;initParams&quot; value=&quot;id='+p.id+&quot;,filter=&quot;+m+&quot;,multiselect=&quot;+p.settings.multi_selection+'&quot;/&gt;&lt;/object&gt;';function j(){return b.getElementById(p.id+&quot;_silverlight&quot;).content.Upload}p.bind(&quot;Silverlight:Init&quot;,function(){var i,r={};if(h[p.id]){return}h[p.id]=true;p.bind(&quot;Silverlight:StartSelectFiles&quot;,function(s){i=[]});p.bind(&quot;Silverlight:SelectFile&quot;,function(s,v,t,u){var w;w=d.guid();r[w]=v;r[v]=w;i.push(new d.File(w,t,u))});p.bind(&quot;Silverlight:SelectSuccessful&quot;,function(){if(i.length){p.trigger(&quot;FilesAdded&quot;,i)}});p.bind(&quot;Silverlight:UploadChunkError&quot;,function(s,v,t,w,u){p.trigger(&quot;Error&quot;,{code:d.IO_ERROR,message:&quot;IO Error.&quot;,details:u,file:s.getFi
 le(r[v])
 })});p.bind(&quot;Silverlight:UploadFileProgress&quot;,function(s,w,t,v){var u=s.getFile(r[w]);if(u.status!=d.FAILED){u.size=v;u.loaded=t;s.trigger(&quot;UploadProgress&quot;,u)}});p.bind(&quot;Refresh&quot;,function(s){var t,u,v;t=b.getElementById(s.settings.browse_button);if(t){u=d.getPos(t,b.getElementById(s.settings.container));v=d.getSize(t);d.extend(b.getElementById(s.id+&quot;_silverlight_container&quot;).style,{top:u.y+&quot;px&quot;,left:u.x+&quot;px&quot;,width:v.w+&quot;px&quot;,height:v.h+&quot;px&quot;})}});p.bind(&quot;Silverlight:UploadChunkSuccessful&quot;,function(s,v,t,y,x){var w,u=s.getFile(r[v]);w={chunk:t,chunks:y,response:x};s.trigger(&quot;ChunkUploaded&quot;,u,w);if(u.status!=d.FAILED&amp;&amp;s.state!==d.STOPPED){j().UploadNextChunk()}if(t==y-1){u.status=d.DONE;s.trigger(&quot;FileUploaded&quot;,u,{response:x})}});p.bind(&quot;Silverlight:UploadSuccessful&quot;,function(s,v,t){var u=s.getFile(r[v]);u.status=d.DONE;s.trigger(&quot;FileUploaded&quot;,u
 ,{respon
 se:t})});p.bind(&quot;FilesRemoved&quot;,function(s,u){var t;for(t=0;t&lt;u.length;t++){j().RemoveFile(r[u[t].id])}});p.bind(&quot;UploadFile&quot;,function(s,u){var v=s.settings,t=v.resize||{};j().UploadFile(r[u.id],s.settings.url,c({name:u.target_name||u.name,mime:d.mimeTypes[u.name.replace(/^.+\.([^.]+)/,&quot;$1&quot;).toLowerCase()]||&quot;application/octet-stream&quot;,chunk_size:v.chunk_size,image_width:t.width,image_height:t.height,image_quality:t.quality,multipart:!!v.multipart,multipart_params:v.multipart_params||{},file_data_name:v.file_data_name,headers:v.headers}))});p.bind(&quot;CancelUpload&quot;,function(){j().CancelUpload()});p.bind(&quot;Silverlight:MouseEnter&quot;,function(s){var t,u;t=b.getElementById(p.settings.browse_button);u=s.settings.browse_button_hover;if(t&amp;&amp;u){d.addClass(t,u)}});p.bind(&quot;Silverlight:MouseLeave&quot;,function(s){var t,u;t=b.getElementById(p.settings.browse_button);u=s.settings.browse_button_hover;if(t&amp;&amp;u){d.rem
 oveClass
 (t,u)}});p.bind(&quot;Silverlight:MouseLeftButtonDown&quot;,function(s){var t,u;t=b.getElementById(p.settings.browse_button);u=s.settings.browse_button_active;if(t&amp;&amp;u){d.addClass(t,u);d.addEvent(b.body,&quot;mouseup&quot;,function(){d.removeClass(t,u)})}});p.bind(&quot;Sliverlight:StartSelectFiles&quot;,function(s){var t,u;t=b.getElementById(p.settings.browse_button);u=s.settings.browse_button_active;if(t&amp;&amp;u){d.removeClass(t,u)}});p.bind(&quot;DisableBrowse&quot;,function(s,t){j().DisableBrowse(t)});p.bind(&quot;Destroy&quot;,function(s){var t;d.removeAllEvents(b.body,s.id);delete h[s.id];delete a[s.id];t=b.getElementById(s.id+&quot;_silverlight_container&quot;);if(t){k.removeChild(t)}});q({success:true})})}})})(window,document,plupload);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(g,b,d,e){var a={},h={};function c(o){var n,m=typeof o,j,l,k;if(o===e||o===null){return&quot;null&quot;}if(m===&quot;string&quot;){n=&quot;\bb\tt\nn\ff\rr\&quot;\&quot;''\\\\&quot;;return'&quot;'+o.replace(/([\u0080-\uFFFF\x00-\x1f\&quot;])/g,function(q,p){var i=n.indexOf(p);if(i+1){return&quot;\\&quot;+n.charAt(i+1)}q=p.charCodeAt().toString(16);return&quot;\\u&quot;+&quot;0000&quot;.substring(q.length)+q})+'&quot;'}if(m==&quot;object&quot;){j=o.length!==e;n=&quot;&quot;;if(j){for(l=0;l&lt;o.length;l++){if(n){n+=&quot;,&quot;}n+=c(o[l])}n=&quot;[&quot;+n+&quot;]&quot;}else{for(k in o){if(o.hasOwnProperty(k)){if(n){n+=&quot;,&quot;}n+=c(k)+&quot;:&quot;+c(o[k])}}n=&quot;{&quot;+n+&quot;}&quot;}return n}return&quot;&quot;+o}function f(r){var u=false,i=null,n=null,j,k,l,t,m,p=0;try{try{n=new ActiveXObject(&quot;AgControl.AgControl&quot;);if(n.IsVersionSupported(r)){u=true}n=null}catch(q){var o=navigator.plugins[&quot;Silverlight Plug-In&quot;];if(o){j=o.de
 scriptio
 n;if(j===&quot;1.0.30226.2&quot;){j=&quot;2.0.30226.2&quot;}k=j.split(&quot;.&quot;);while(k.length&gt;3){k.pop()}while(k.length&lt;4){k.push(0)}l=r.split(&quot;.&quot;);while(l.length&gt;4){l.pop()}do{t=parseInt(l[p],10);m=parseInt(k[p],10);p++}while(p&lt;l.length&amp;&amp;t===m);if(t&lt;=m&amp;&amp;!isNaN(t)){u=true}}}}catch(s){u=false}return u}d.silverlight={trigger:function(n,k){var m=a[n],l,j;if(m){j=d.toArray(arguments).slice(1);j[0]=&quot;Silverlight:&quot;+k;setTimeout(function(){m.trigger.apply(m,j)},0)}}};d.runtimes.Silverlight=d.addRuntime(&quot;silverlight&quot;,{getFeatures:function(){return{jpgresize:true,pngresize:true,chunks:true,progress:true,multipart:true,multi_selection:true}},init:function(p,q){var o,m=&quot;&quot;,n=p.settings.filters,l,k=b.body;if(!f(&quot;2.0.31005.0&quot;)||(g.opera&amp;&amp;g.opera.buildNumber)){q({success:false});return}h[p.id]=false;a[p.id]=p;o=b.createElement(&quot;div&quot;);o.id=p.id+&quot;_silverlight_container&quot;;d.extend(
 o.style,
 {position:&quot;absolute&quot;,top:&quot;0px&quot;,background:p.settings.shim_bgcolor||&quot;transparent&quot;,zIndex:99999,width:&quot;100px&quot;,height:&quot;100px&quot;,overflow:&quot;hidden&quot;,opacity:p.settings.shim_bgcolor||b.documentMode&gt;8?&quot;&quot;:0.01});o.className=&quot;plupload silverlight&quot;;if(p.settings.container){k=b.getElementById(p.settings.container);if(d.getStyle(k,&quot;position&quot;)===&quot;static&quot;){k.style.position=&quot;relative&quot;}}k.appendChild(o);for(l=0;l&lt;n.length;l++){m+=(m!=&quot;&quot;?&quot;|&quot;:&quot;&quot;)+n[l].title+&quot; | *.&quot;+n[l].extensions.replace(/,/g,&quot;;*.&quot;)}o.innerHTML='&lt;object id=&quot;'+p.id+'_silverlight&quot; data=&quot;data:application/x-silverlight,&quot; type=&quot;application/x-silverlight-2&quot; style=&quot;outline:none;&quot; width=&quot;1024&quot; height=&quot;1024&quot;&gt;&lt;param name=&quot;source&quot; value=&quot;'+p.settings.silverlight_xap_url+'&quot;/&gt;&lt;param n
 ame=&quo
 t;background&quot; value=&quot;Transparent&quot;/&gt;&lt;param name=&quot;windowless&quot; value=&quot;true&quot;/&gt;&lt;param name=&quot;enablehtmlaccess&quot; value=&quot;true&quot;/&gt;&lt;param name=&quot;initParams&quot; value=&quot;id='+p.id+&quot;,filter=&quot;+m+&quot;,multiselect=&quot;+p.settings.multi_selection+'&quot;/&gt;&lt;/object&gt;';function j(){return b.getElementById(p.id+&quot;_silverlight&quot;).content.Upload}p.bind(&quot;Silverlight:Init&quot;,function(){var i,r={};if(h[p.id]){return}h[p.id]=true;p.bind(&quot;Silverlight:StartSelectFiles&quot;,function(s){i=[]});p.bind(&quot;Silverlight:SelectFile&quot;,function(s,v,t,u){var w;w=d.guid();r[w]=v;r[v]=w;i.push(new d.File(w,t,u))});p.bind(&quot;Silverlight:SelectSuccessful&quot;,function(){if(i.length){p.trigger(&quot;FilesAdded&quot;,i)}});p.bind(&quot;Silverlight:UploadChunkError&quot;,function(s,v,t,w,u){p.trigger(&quot;Error&quot;,{code:d.IO_ERROR,message:&quot;IO Error.&quot;,details:u,file:s.getFi
 le(r[v])
 })});p.bind(&quot;Silverlight:UploadFileProgress&quot;,function(s,w,t,v){var u=s.getFile(r[w]);if(u.status!=d.FAILED){u.size=v;u.loaded=t;s.trigger(&quot;UploadProgress&quot;,u)}});p.bind(&quot;Refresh&quot;,function(s){var t,u,v;t=b.getElementById(s.settings.browse_button);if(t){u=d.getPos(t,b.getElementById(s.settings.container));v=d.getSize(t);d.extend(b.getElementById(s.id+&quot;_silverlight_container&quot;).style,{top:u.y+&quot;px&quot;,left:u.x+&quot;px&quot;,width:v.w+&quot;px&quot;,height:v.h+&quot;px&quot;})}});p.bind(&quot;Silverlight:UploadChunkSuccessful&quot;,function(s,v,t,y,x){var w,u=s.getFile(r[v]);w={chunk:t,chunks:y,response:x};s.trigger(&quot;ChunkUploaded&quot;,u,w);if(u.status!=d.FAILED&amp;&amp;s.state!==d.STOPPED){j().UploadNextChunk()}if(t==y-1){u.status=d.DONE;s.trigger(&quot;FileUploaded&quot;,u,{response:x})}});p.bind(&quot;Silverlight:UploadSuccessful&quot;,function(s,v,t){var u=s.getFile(r[v]);u.status=d.DONE;s.trigger(&quot;FileUploaded&quot;,u
 ,{respon
 se:t})});p.bind(&quot;FilesRemoved&quot;,function(s,u){var t;for(t=0;t&lt;u.length;t++){j().RemoveFile(r[u[t].id])}});p.bind(&quot;UploadFile&quot;,function(s,u){var v=s.settings,t=v.resize||{};j().UploadFile(r[u.id],s.settings.url,c({name:u.target_name||u.name,mime:d.mimeTypes[u.name.replace(/^.+\.([^.]+)/,&quot;$1&quot;).toLowerCase()]||&quot;application/octet-stream&quot;,chunk_size:v.chunk_size,image_width:t.width,image_height:t.height,image_quality:t.quality,multipart:!!v.multipart,multipart_params:v.multipart_params||{},file_data_name:v.file_data_name,headers:v.headers}))});p.bind(&quot;CancelUpload&quot;,function(){j().CancelUpload()});p.bind(&quot;Silverlight:MouseEnter&quot;,function(s){var t,u;t=b.getElementById(p.settings.browse_button);u=s.settings.browse_button_hover;if(t&amp;&amp;u){d.addClass(t,u)}});p.bind(&quot;Silverlight:MouseLeave&quot;,function(s){var t,u;t=b.getElementById(p.settings.browse_button);u=s.settings.browse_button_hover;if(t&amp;&amp;u){d.rem
 oveClass
 (t,u)}});p.bind(&quot;Silverlight:MouseLeftButtonDown&quot;,function(s){var t,u;t=b.getElementById(p.settings.browse_button);u=s.settings.browse_button_active;if(t&amp;&amp;u){d.addClass(t,u);d.addEvent(b.body,&quot;mouseup&quot;,function(){d.removeClass(t,u)})}});p.bind(&quot;Sliverlight:StartSelectFiles&quot;,function(s){var t,u;t=b.getElementById(p.settings.browse_button);u=s.settings.browse_button_active;if(t&amp;&amp;u){d.removeClass(t,u)}});p.bind(&quot;DisableBrowse&quot;,function(s,t){j().DisableBrowse(t)});p.bind(&quot;Destroy&quot;,function(s){var t;d.removeAllEvents(b.body,s.id);delete h[s.id];delete a[s.id];t=b.getElementById(s.id+&quot;_silverlight_container&quot;);if(t){t.parentNode.removeChild(t)}});q({success:true})})}})})(window,document,plupload);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjspluploadpluploadsilverlightxap"></a>
<div class="binary"><h4>Modified: trunk/wp-includes/js/plupload/plupload.silverlight.xap</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (24075 => 24076)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2013-04-23 23:19:29 UTC (rev 24075)
+++ trunk/wp-includes/script-loader.php        2013-04-24 21:54:17 UTC (rev 24076)
</span><span class="lines">@@ -236,14 +236,14 @@
</span><span class="cx">                 'error_uploading' =&gt; __('&amp;#8220;%s&amp;#8221; has failed to upload.')
</span><span class="cx">         );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'plupload', '/wp-includes/js/plupload/plupload.js', array(), '1.5.5' );
-        $scripts-&gt;add( 'plupload-html5', '/wp-includes/js/plupload/plupload.html5.js', array('plupload'), '1.5.5' );
-        $scripts-&gt;add( 'plupload-flash', '/wp-includes/js/plupload/plupload.flash.js', array('plupload'), '1.5.5' );
-        $scripts-&gt;add( 'plupload-silverlight', '/wp-includes/js/plupload/plupload.silverlight.js', array('plupload'), '1.5.5' );
-        $scripts-&gt;add( 'plupload-html4', '/wp-includes/js/plupload/plupload.html4.js', array('plupload'), '1.5.5' );
</del><ins>+        $scripts-&gt;add( 'plupload', '/wp-includes/js/plupload/plupload.js', array(), '1.5.7' );
+        $scripts-&gt;add( 'plupload-html5', '/wp-includes/js/plupload/plupload.html5.js', array('plupload'), '1.5.7' );
+        $scripts-&gt;add( 'plupload-flash', '/wp-includes/js/plupload/plupload.flash.js', array('plupload'), '1.5.7' );
+        $scripts-&gt;add( 'plupload-silverlight', '/wp-includes/js/plupload/plupload.silverlight.js', array('plupload'), '1.5.7' );
+        $scripts-&gt;add( 'plupload-html4', '/wp-includes/js/plupload/plupload.html4.js', array('plupload'), '1.5.7' );
</ins><span class="cx"> 
</span><span class="cx">         // cannot use the plupload.full.js, as it loads browserplus init JS from Yahoo
</span><del>-        $scripts-&gt;add( 'plupload-all', false, array('plupload', 'plupload-html5', 'plupload-flash', 'plupload-silverlight', 'plupload-html4'), '1.5.5' );
</del><ins>+        $scripts-&gt;add( 'plupload-all', false, array('plupload', 'plupload-html5', 'plupload-flash', 'plupload-silverlight', 'plupload-html4'), '1.5.7' );
</ins><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'plupload-handlers', &quot;/wp-includes/js/plupload/handlers$suffix.js&quot;, array('plupload-all', 'jquery') );
</span><span class="cx">         did_action( 'init' ) &amp;&amp; $scripts-&gt;localize( 'plupload-handlers', 'pluploadL10n', $uploader_l10n );
</span></span></pre>
</div>
</div>

</body>
</html>