require.def("xhr-spy/xhr",["core/lib"],function(i){function n(){this.requestHeaders=[];this.responseHeaders=[]}var t=function(a){function k(){for(var b in a)try{var c=a[b];i.isFunction(c)||(f[b]=c)}catch(e){}}function o(){for(var b in f)try{var c=f[b];a[b]||(a[b]=c)}catch(e){}}function u(){d.logRow=d.log();i.setClass(d.logRow,"loading")}function p(){d.response.status=a.status;d.response.statusText=a.statusText;(new Date).getTime();var b=a.status==200;v(a,d);setTimeout(function(){var c=a.responseText; d.response.content.text=c;d.response.content.size=c;d.response.bodySize=c?c.length:0;i.removeClass(d.logRow,"loading");b||i.setClass(d.logRow,"error")},200);d.loaded=true;k()}function v(b,c){b=(b=b.getAllResponseHeaders())?b.split(/[\n\r]/):[];for(var e=/^(\S+):\s*(.*)/,g=0,l=b.length;g