/** 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([[0],{324:function(Ca,va,ba){ba.r(va);ba.d(va,"ByteRangeRequest",function(){return h});var pa=ba(2),ka=ba(0);ba.n(ka);var la=ba(1),fa=ba(116);Ca=ba(70);var ca=ba(188),z=ba(56),r=ba(52),n=ba(187),b=ba(126);ba=ba(283);var a=[],e=[],f=window,x=function(){return function(){this.Aj=1}}(),w;(function(aa){aa[aa.UNSENT=0]="UNSENT";aa[aa.DONE=4]="DONE"})(w||(w={}));var h=function(){function aa(ja,ha,ia,ea){var oa=this;this.url=ja;this.range=
ha;this.he=ia;this.withCredentials=ea;this.uS=w;this.request=new XMLHttpRequest;this.request.open("GET",this.url,!0);f.Uint8Array&&(this.request.responseType="arraybuffer");ea&&(this.request.withCredentials=ea);y.DISABLE_RANGE_HEADER||(Object(ka.isUndefined)(ha.stop)?this.request.setRequestHeader("Range","bytes="+ha.start):this.request.setRequestHeader("Range",["bytes=",ha.start,"-",ha.stop-1].join("")));this.request.setRequestHeader("X-Requested-With","XMLHttpRequest");ia&&Object.keys(ia).forEach(function(sa){oa.request.setRequestHeader(sa,
ia[sa])});this.request.overrideMimeType?this.request.overrideMimeType("text/plain; charset=x-user-defined"):this.request.setRequestHeader("Accept-Charset","x-user-defined");this.status=n.a.NOT_STARTED}aa.prototype.start=function(ja){var ha=this,ia=this.request;ia.onreadystatechange=function(){if(ha.aborted)return ha.status=n.a.ABORTED,ja({code:n.a.ABORTED});if(this.readyState===ha.uS.DONE){ha.Xw();var ea=0===window.document.URL.indexOf("file:///");200===ia.status||206===ia.status||ea&&0===ia.status?
(ea=f.NK(this),ha.kF(ea,ja)):(ha.status=n.a.ERROR,ja({code:ha.status,status:ha.status}))}};this.request.send(null);this.status=n.a.STARTED};aa.prototype.kF=function(ja,ha){this.status=n.a.SUCCESS;if(ha)return ha(!1,ja)};aa.prototype.abort=function(){this.Xw();this.aborted=!0;this.request.abort()};aa.prototype.Xw=function(){var ja=Object(b.c)(this.url,this.range,e);-1!==ja&&e.splice(ja,1);if(0<a.length){ja=a.shift();var ha=new aa(ja.url,ja.range,this.he,this.withCredentials);ja.request=ha;e.push(ja);
ha.start(Object(b.d)(ja))}};aa.prototype.extend=function(ja){var ha=Object.assign({},this,ja.prototype);ha.constructor=ja;return ha};return aa}(),y=function(aa){function ja(ha,ia,ea,oa,sa){ea=aa.call(this,ha,ea,oa)||this;ea.Cj={};ea.Hv=ia;ea.url=ha;ea.DISABLE_RANGE_HEADER=!1;ea.Vs=h;ea.$F=3;ea.he=sa||{};return ea}Object(pa.c)(ja,aa);ja.prototype.dr=function(ha,ia,ea){var oa=-1===ha.indexOf("?")?"?":"&";switch(ea){case !1:case r.a.NEVER_CACHE:ha=ha+oa+"_="+Object(ka.uniqueId)();break;case !0:case r.a.CACHE:ha=
ha+oa+"_="+ia.start+","+(Object(ka.isUndefined)(ia.stop)?"":ia.stop)}return ha};ja.prototype.iJ=function(ha,ia,ea,oa){void 0===ea&&(ea={});return new this.Vs(ha,ia,ea,oa)};ja.prototype.kY=function(ha,ia,ea,oa,sa){for(var na=0;na<a.length;na++)if(Object(ka.isEqual)(a[na].range,ia)&&Object(ka.isEqual)(a[na].url,ha))return a[na].sf.push(oa),a[na].Qx++,null;for(na=0;na<e.length;na++)if(Object(ka.isEqual)(e[na].range,ia)&&Object(ka.isEqual)(e[na].url,ha))return e[na].sf.push(oa),e[na].Qx++,null;ea={url:ha,
range:ia,Hv:ea,sf:[oa],Qx:1};if(0===a.length&&e.length<this.$F)return e.push(ea),ea.request=this.iJ(ha,ia,sa,this.withCredentials),ea;a.push(ea);return null};ja.prototype.Ok=function(ha,ia,ea){var oa=this.dr(ha,ia,this.Hv);(ha=this.kY(oa,ia,this.Hv,ea,this.he))&&ha.request.start(Object(b.d)(ha));return function(){var sa=Object(b.c)(oa,ia,e);if(-1!==sa){var na=--e[sa].Qx;0===na&&e[sa].request&&e[sa].request.abort()}else sa=Object(b.c)(oa,ia,a),-1!==sa&&(na=--a[sa].Qx,0===na&&a.splice(sa,1))}};ja.prototype.vK=
function(){return{start:-fa.a}};ja.prototype.W_=function(){var ha=-(fa.a+fa.e);return{start:ha-fa.d,end:ha}};ja.prototype.ip=function(ha){var ia=this;this.Nv=!0;var ea=fa.a;this.Ok(this.url,this.vK(),function(oa,sa,na){function za(){var ta=ia.Wc.sK();ia.Ok(ia.url,ta,function(ua,xa){if(ua)return Object(la.i)("Error loading central directory: "+ua),ha(ua);xa=Object(z.a)(xa);if(xa.length!==ta.stop-ta.start)return ha("Invalid XOD file: Zip central directory data is wrong size! Should be "+(ta.stop-ta.start)+
" but is "+xa.length);ia.Wc.CN(xa);ia.YA=!0;ia.Nv=!1;return ha(!1)})}if(oa)return Object(la.i)("Error loading end header: "+oa),ha(oa,sa,na);sa=Object(z.a)(sa);if(sa.length!==ea)return ha("Invalid XOD file: Zip end header data is wrong size!");try{ia.Wc=new ca.a(sa)}catch(ta){return ha(ta)}ia.Wc.r1?ia.Ok(ia.url,ia.W_(),function(ta,ua){if(ta)return Object(la.i)("Error loading zip64 header: "+ta),ha(ta);ua=Object(z.a)(ua);ia.Wc.J1(ua);za()}):za()})};ja.prototype.LK=function(ha){ha(Object.keys(this.Wc.sk))};
ja.prototype.dE=function(ha,ia){var ea=this;if(this.Wc.cJ(ha)){var oa=this.Wc.Nw(ha);if(oa in this.Cj){var sa=this.mg[ha];sa.io=this.Cj[oa];sa.io.Aj++;sa.cancel=sa.io.cancel}else{var na=this.Wc.yZ(ha),za=this.Ok(this.url,na,function(ua,xa){ua?(Object(la.i)('Error loading part "'+ha+'": '+ua),ea.Ok(ea.url,na,function(qa,ya){if(qa)return ia(qa,ha);ea.GN(ya,na,oa,ha,ia)})):ea.GN(xa,na,oa,ha,ia)}),ta=this.mg[ha];ta&&(ta.FP=!0,ta.cancel=function(){ta.io.Aj--;0===ta.io.Aj&&(za(),delete ea.Cj[oa])},this.Cj[oa]=
new x(oa),ta.io=this.Cj[oa],ta.io.cancel=ta.cancel)}}else delete this.mg[ha],ia(Error('File not found: "'+ha+'"'),ha)};ja.prototype.GN=function(ha,ia,ea,oa,sa){if(ha.length!==ia.stop-ia.start)sa(Error("Part data is wrong size!"),oa);else{do{if(!this.Cj[ea])return;oa=this.Cj[ea].Aj;for(var na=ia.gn.length,za=0;za<na;++za){var ta=ia.gn[za];sa(!1,ta.cn,ha["string"===typeof ha?"substring":"subarray"](ta.start,ta.stop),this.Wc.EL(ta.cn));ta.cn in this.mg&&delete this.mg[ta.cn]}}while(oa!==this.Cj[ea].Aj);
delete this.Cj[ea]}};ja.DISABLE_RANGE_HEADER=!1;ja.$F=3;return ja}(Ca.a);(function(aa){function ja(ha,ia,ea){var oa=aa.call(this)||this,sa;for(sa in ha)oa[sa]=ha[sa];oa.Eca=ha;oa.startOffset=ia;oa.endOffset=ea;oa.iJ=function(na,za,ta,ua){Object(ka.isUndefined)(za.stop)?(za.start+=oa.endOffset,za.stop=oa.endOffset):(za.start+=oa.startOffset,za.stop+=oa.startOffset);na=oa.dr(oa.url,za,oa.Hv);return new ha.Vs(na,za,ta,ua)};return oa}Object(pa.c)(ja,aa);return ja})(y);Object(ba.a)(y);Object(ba.b)(y);
va["default"]=y}}]);}).call(this || window)
