/** 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([[15],{393:function(ia,y,e){e.r(y);var fa=e(1),x=e(0);e.n(x);var ha=e(2),ea=e(132);ia=e(48);var da=e(84),ba=e(216),w=e(61),z=e(215);e=e(316);var r=window,h=function(){function e(e,f,h){var n=-1===e.indexOf("?")?"?":"&";switch(f){case w.a.NEVER_CACHE:this.url=e+n+"_="+Object(x.uniqueId)();break;default:this.url=e}this.He=h;this.request=new XMLHttpRequest;this.request.open("GET",this.url,!0);this.request.setRequestHeader("X-Requested-With", "XMLHttpRequest");this.request.overrideMimeType?this.request.overrideMimeType("text/plain; charset=x-user-defined"):this.request.setRequestHeader("Accept-Charset","x-user-defined");this.status=z.a.NOT_STARTED}e.prototype.start=function(f,h){var n=this,r=this,w=this.request,x;r.Pu=0;f&&Object.keys(f).forEach(function(e){n.request.setRequestHeader(e,f[e])});h&&(this.request.withCredentials=h);this.SA=setInterval(function(){var f=0===window.document.URL.indexOf("file:///");f=200===w.status||f&&0===w.status; if(w.readyState!==z.b.DONE||f){try{w.responseText}catch(za){return}r.Pu=this.lr;)switch(this.state){case f.LOCAL_HEADER:this.Fk=n=this.T$(e.slice(0,this.lr));if(n.Rr!==ea.g)throw Error("Wrong signature in local header: "+ n.Rr);e=e.slice(this.lr);this.state=f.FILE;this.lr=n.HD+n.Do+n.Ut+this.sI;this.trigger(h.Events.HEADER,[n]);break;case f.FILE:this.Fk.name=e.slice(0,this.Fk.Do);this.Wl[this.Fk.name]=this.Fk;n=this.lr-this.sI;var r=e.slice(this.Fk.Do+this.Fk.Ut,n);this.trigger(h.Events.FILE,[this.Fk.name,r,this.Fk.WD]);e=e.slice(n);if(e.slice(0,this.sI)===ea.h)this.state=f.LOCAL_HEADER,this.lr=ea.c;else return this.state=f.CENTRAL_DIR,!0}this.buffer=e;return!1};h.Events={HEADER:"header",FILE:"file"};return h}(ba.a); Object(ia.a)(n);ia=function(e){function f(f,r,w,x,y){w=e.call(this,f,w,x)||this;w.url=f;w.stream=new h(f,r);w.wd=new n;w.yR=window.createPromiseCapability();w.ZR={};w.He=y;return w}Object(fa.c)(f,e);f.prototype.Dv=function(e){var f=this;this.request([this.yi,this.Gj,this.xi]);this.stream.addEventListener(h.Events.DATA,function(h){try{if(f.wd.J$(h))return f.stream.finish()}catch(xa){throw f.stream.abort(),f.Rt(xa),e(xa),xa;}});this.stream.addEventListener(h.Events.DONE,function(h){f.q$=!0;f.yR.resolve(); h&&(f.Rt(h),e(h))});this.wd.addEventListener(n.Events.HEADER,Object(x.bind)(this.YR,this));this.wd.addEventListener(n.Events.FILE,Object(x.bind)(this.iaa,this));return this.stream.start(this.He,this.withCredentials)};f.prototype.KO=function(e){var f=this;this.yR.promise.then(function(){e(Object.keys(f.wd.Wl))})};f.prototype.Em=function(){return!0};f.prototype.request=function(e){var f=this;this.q$&&e.forEach(function(e){f.ZR[e]||f.Vda(e)})};f.prototype.YR=function(){};f.prototype.abort=function(){this.stream&& this.stream.abort()};f.prototype.Vda=function(e){this.trigger(da.a.Events.PART_READY,[{Ya:e,error:"Requested part not found",Gh:!1,xf:!1}])};f.prototype.iaa=function(e,f,h){this.ZR[e]=!0;this.trigger(da.a.Events.PART_READY,[{Ya:e,data:f,Gh:!1,xf:!1,error:null,Jc:h}])};return f}(da.a);Object(e.a)(ia);Object(e.b)(ia);y["default"]=ia}}]);}).call(this || window)