/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[8],{458:function(Ba,wa,r){r.r(wa);var oa=r(0),na=r(2),ma=r(157);Ba=r(100);var fa=r(262);r=r(394);var ea=window;Ba=function(aa){function w(x,h,e){h=aa.call(this,x,h,e)||this;if(x.name&&"xod"!==x.name.toLowerCase().split(".").pop())throw Error("Not an XOD file");if(!ea.FileReader||!ea.File||!ea.Blob)throw Error("File API is not supported in this browser");h.file=x;h.cC=[];h.aJ=0;return h}Object(oa.c)(w,aa);w.prototype.UL=function(x,
h,e){var a=this,b=new FileReader;b.onloadend=function(f){if(0<a.cC.length){var n=a.cC.shift();n.Oka.readAsBinaryString(n.file)}else a.aJ--;if(b.error){f=b.error;if(f.code===f.ABORT_ERR){Object(na.j)("Request for chunk "+h.start+"-"+h.stop+" was aborted");return}return e(f)}if(f=b.content||f.target.result)return e(!1,f);Object(na.j)("No data was returned from FileReader.")};h&&(x=(x.slice||x.webkitSlice||x.mozSlice||x.Usa).call(x,h.start,h.stop));0===a.cC.length&&50>a.aJ?(b.readAsBinaryString(x),a.aJ++):
a.cC.push({Oka:b,file:x});return function(){b.abort()}};w.prototype.Xt=function(x){var h=this;h.ZB=!0;var e=ma.a;h.UL(h.file,{start:-e,stop:h.file.size},function(a,b){if(a)return Object(na.j)("Error loading end header: %s "+a),x(a);if(b.length!==e)throw Error("Zip end header data is wrong size!");h.Cd=new fa.a(b);var f=h.Cd.yV();h.UL(h.file,f,function(n,z){if(n)return Object(na.j)("Error loading central directory: %s "+n),x(n);if(z.length!==f.stop-f.start)throw Error("Zip central directory data is wrong size!");
h.Cd.yZ(z);h.NI=!0;h.ZB=!1;return x(!1)})})};w.prototype.UM=function(x,h){var e=this,a=e.xh[x];if(e.Cd.zT(x)){var b=e.Cd.hx(x),f=e.UL(e.file,b,function(n,z){delete e.xh[x];if(n)return Object(na.j)('Error loading part "%s": %s, '+x+", "+n),h(n);if(z.length!==b.stop-b.start)throw Error("Part data is wrong size!");h(!1,x,z,e.Cd.bX(x))});a.N0=!0;a.cancel=f}else h(Error('File not found: "'+x+'"'),x)};return w}(Ba.a);Object(r.a)(Ba);Object(r.b)(Ba);wa["default"]=Ba}}]);}).call(this || window)
