/* Copyright (c) 2004-2016, The JS Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/request/util",["exports","../errors/RequestError","../errors/CancelError","../Deferred","../io-query","../_base/array","../_base/lang","../promise/Promise","../has"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9){function _a(_b){return _9("native-arraybuffer")&&_b instanceof ArrayBuffer;};function _c(_d){return _9("native-blob")&&_d instanceof Blob;};function _e(_f){if(typeof Element!=="undefined"){return _f instanceof Element;}return _f.nodeType===1;};function _10(_11){return _9("native-formdata")&&_11 instanceof FormData;};function _12(_13){return _13&&typeof _13==="object"&&!_10(_13)&&!_e(_13)&&!_c(_13)&&!_a(_13);};_1.deepCopy=function(_14,_15){for(var _16 in _15){var _17=_14[_16],_18=_15[_16];if(_16!=="__proto__"&&_17!==_18){if(_12(_18)){if(Object.prototype.toString.call(_18)==="[object Date]"){_14[_16]=new Date(_18);}else{if(_7.isArray(_18)){_14[_16]=_1.deepCopyArray(_18);}else{if(_17&&typeof _17==="object"){_1.deepCopy(_17,_18);}else{_14[_16]=_1.deepCopy({},_18);}}}}else{_14[_16]=_18;}}}return _14;};_1.deepCopyArray=function(_19){var _1a=[];for(var i=0,l=_19.length;i=200&&_3e<300)||_3e===304||_3e===1223||!_3e;};});