!function(e){if("object"==typeofexports&&"undefined"!=typeofmodule)module.exports=e();elseif("function"==typeofdefine&&define.amd)define([],e);else{vart;t="undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:this,t.Hls=e()}}(function(){returnfunctione(t,r,a){functioni(s,o){if(!r[s]){if(!t[s]){varl="function"==typeofrequire&&require;if(!o&&l)returnl(s,!0);if(n)returnn(s,!0);varu=newError("Cannot find module '"+s+"'");throwu.code="MODULE_NOT_FOUND",u}vard=r[s]={exports:{}};t[s][0].call(d.exports,function(e){varr=t[s][1][e];returni(r?r:e)},d,d.exports,e,t,r,a)}returnr[s].exports}for(varn="function"==typeofrequire&&require,s=0;s<a.length;s++)i(a[s]);returni}({1:[function(e,t,r){functiona(){this._events=this._events||{},this._maxListeners=this._maxListeners||void0}functioni(e){return"function"==typeofe}functionn(e){return"number"==typeofe}functions(e){return"object"==typeofe&&null!==e}functiono(e){returnvoid0===e}t.exports=a,a.EventEmitter=a,a.prototype._events=void0,a.prototype._maxListeners=void0,a.defaultMaxListeners=10,a.prototype.setMaxListeners=function(e){if(!n(e)||e<0||isNaN(e))throwTypeError("n must be a positive number");returnthis._maxListeners=e,this},a.prototype.emit=function(e){vart,r,a,n,l,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if(t=arguments[1],tinstanceofError)throwt;throwTypeError('Uncaught, unspecified "error" event.')}if(r=this._events[e],o(r))return!1;if(i(r))switch(arguments.length){case1:r.call(this);break;case2:r.call(this,arguments[1]);break;case3:r.call(this,arguments[1],arguments[2]);break;default:n=Array.prototype.slice.call(arguments,1),r.apply(this,n)}elseif(s(r))for(n=Array.prototype.slice.call(arguments,1),u=r.slice(),a=u.length,l=0;l<a;l++)u[l].apply(this,n);return!0},a.prototype.addListener=function(e,t){varr;if(!i(t))throwTypeError("listener must be a function");returnthis._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,i(t.listener)?t.listener:t),this._events[e]?s(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,s(this._events[e])&&!this._events[e].warned&&(r=o(this._maxListeners)?a.defaultMaxListeners:this._maxListeners,r&&r>0&&this._events[e].length>r&&(this._events[e].warned=!0,"function"==typeofconsole.trace)),this},a.prototype.on=a.prototype.addListener,a.prototype.once=function(e,t){functionr(){this.removeListener(e,r),a||(a=!0,t.apply(this,arguments))}if(!i(t))throwTypeError("listener must be a function");vara=!1;returnr.listener=t,this.on(e,r),this},a.prototype.removeListener=function(e,t){varr,a,n,o;if(!i(t))throwTypeError("listener must be a function");if(!this._events||!this._events[e])returnthis;if(r=this._events[e],n=r.length,a=-1,r===t||i(r.listener)&&r.listener===t)deletethis._events[e],this._events.removeListener&&this.emit("removeListener",e,t);elseif(s(r)){for(o=n;o-->0;)if(r[o]===t||r[o].listener&&r[o].listener===t){a=o;break}if(a<0)returnthis;1===r.length?(r.length=0,deletethis._events[e]):r.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}returnthis},a.prototype.removeAllListeners=function(e){vart,r;if(!this._events)returnthis;if(!this._events.removeListener)return0===arguments.length?this._events={}:this._events[e]&&deletethis._events[e],this;if(0===arguments.length){for(tinthis._events)"removeListener"!==t&&this.removeAllListeners(t);returnthis.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],i(r))this.removeListener(e,r);elseif(r)for(;r.length;)this.removeListener(e,r[r.length-1]);returndeletethis._events[e],this},a.prototype.listeners=function(e){vart;returnt=this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},a.prototype.listenerCount=function(e){if(this._events){vart=this._events[e];if(i(t))return1;if(t)returnt.length}return0},a.listenerCount=function(e,t){returne.listenerCount(t)}},{}]
l=Math.min(l,i.maxMaxBufferLength),d<l){if(a.nextLoadLevel=t,this.level=t,r=this.levels[t].details,"undefined"==typeofr||r.live&&this.levelLastLoaded!==t){this.state=R.WAITING_LEVEL;break}if(!r.live&&c&&c.sn===r.endSN&&(!s||n.duration-h<=c.duration/2)){this.hls.trigger(f.default.BUFFER_EOS),this.state=R.ENDED;break}varg=r.fragments,y=g.length;if(0===y)break;varE=g[0].start,b=g[y-1].start+g[y-1].duration,A=void0;if(r.live){varL=void0!==i.liveMaxLatencyDuration?i.liveMaxLatencyDuration:i.liveMaxLatencyDurationCount*r.targetduration;if(h<Math.max(E,b-L)){varT=void0!==i.liveSyncDuration?i.liveSyncDuration:i.liveSyncDurationCount*r.targetduration,k=E+Math.max(0,r.totalduration-T);v.logger.log("buffer end: "+h+" is located too far from the end of live sliding playlist, reset currentTime to : "+k.toFixed(3)),h=k,n&&n.readyState&&n.duration>k&&(n.currentTime=k)}if(r.PTSKnown&&h>b)break;if(this.startFragRequested&&!r.PTSKnown){if(c){varS=c.sn+1;S>=r.startSN&&S<=r.endSN&&(A=g[S-r.startSN],v.logger.log("live playlist, switching playlist, load frag with next SN: "+A.sn))}A||(A=g[Math.min(y-1,Math.round(y/2))],v.logger.log("live playlist, switching playlist, unknown, load middle frag : "+A.sn))}}elseh<E&&(A=g[0]);if(A||!function(){vare=i.maxFragLookUpTolerance;h<b?((h>b-e||s)&&(e=0),A=p.default.search(g,function(t){returnt.start+t.duration-e<=h?1:t.start-e>h?-1:0})):A=g[y-1]}(),A){if(E=A.start,c&&A.level===c.level&&A.sn===c.sn){if(!(A.sn<r.endSN))break;varw=c.deltaPTS,D=A.sn-r.startSN;if(w&&w>i.maxBufferHole&&c.dropped?(A=g[D-1],v.logger.warn("SN just loaded, with large PTS gap between audio and video, maybe frag is not starting with a keyframe ? load previous one to try to overcome this"),c.loadCounter--):(A=g[D+1],v.logger.log("SN just loaded, load next one: "+A.sn)),!A)break}if(null!=A.decryptdata.uri&&null==A.decryptdata.key)v.logger.log("Loading key for "+A.sn+" of ["+r.startSN+" ,"+r.endSN+"],level "+t),this.state=R.KEY_LOADING,a.trigger(f.default.KEY_LOADING,{frag:A});else{if(v.logger.log("Loading "+A.sn+" of ["+r.startSN+" ,"+r.endSN+"],level "+t+", currentTime:"+e.toFixed(3)+",bufferEnd:"+h.toFixed(3)),void0!==this.fragLoadIdx?this.fragLoadIdx++:this.fragLoadIdx=0,A.loadCounter){A.loadCounter++;varO=i.fragLoadingLoopThreshold;if(A.loadCounter>O&&Math.abs(this.fragLoadIdx-A.loadIdx)<O)returnvoida.trigger(f.default.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.FRAG_LOOP_LOADING_ERROR,fatal:!1,frag:A})}elseA.loadCounter=1;A.loadIdx=this.fragLoadIdx,this.fragCurrent=A,this.startFragRequested=!0,A.autoLevel=a.autoLevelEnabled,A.bitrateTest=this.fragBitrateTest,a.trigger(f.default.FRAG_LOADING,{frag:A}),this.state=R.FRAG_LOADING}}}break;caseR.WAITING_LEVEL:t=this.levels[this.level],t&&t.details&&(this.state=R.IDLE);break;caseR.FRAG_LOADING_WAITING_RETRY:varP=performance.now(),x=this.retryDate;(!x||P>=x||s)&&(v.logger.log("mediaController: retryDate reached, switch back to IDLE state"),this.state=R.IDLE);break;caseR.STOPPED:caseR.FRAG_LOADING:caseR.PARSING:caseR.PARSED:caseR.ENDED:}this._checkBuffer(),this._checkFragmentChanged()}},{key:"getBufferRange",value:function(e){vart,r,a=this.bufferRange;if(a)for(t=a.length-1;t>=0;t--)if(r=a[t],e>=r.start&&e<=r.end)returnr;returnnull}},{key:"followingBufferRange",value:function(e){returne?this.getBufferRange(e.end+.5):null}},{key:"isBuffered",value:function(e){vart=this.media;if(t)for(varr=t.buffered,a=0;a<r.length;a++)if(e>=r.start(a)&&e<=r.end(a))return!0;return!1}},{key:"_checkFragmentChanged",value:function(){vare,t,r=this.media;if(r&&r.seeking===!1&&(t=r.currentTime,t>r.playbackRate*this.lastCurrentTime&&(this.lastCurrentTime=t),this.isBuffered(t)?e=this.getBufferRange(t):this.isBuffered(t+.1)&&(e=this.getBufferRange(t+.1)),e)){vara=e.frag;a!==this.fragPlaying&&(this.fragPlaying=a,this.hls.trigger(f.default.FRAG_CHANGED,{frag:a}))}}},{key:"immediateLevelSwitch",value:function(){if(v.logger.log("immediateLevelSwitch"),!this.immediateSwitch){this.immediateSwitch=!0;vare=this.media,t=void0;e?(t=e.paused,e.pause()):t=!0,this.previouslyPau
};if(r.config.enableWorker&&"undefined"!=typeofWorker){h.logger.log("demuxing in webworker");try{varn=e("webworkify"),s=this.w=n(f.default);this.onwmsg=this.onWorkerMessage.bind(this),s.addEventListener("message",this.onwmsg),s.onerror=function(e){r.trigger(o.default.ERROR,{type:g.ErrorTypes.OTHER_ERROR,details:g.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",err:{message:e.message+" ("+e.filename+":"+e.lineno+")"}})},s.postMessage({cmd:"init",typeSupported:a})}catch(e){h.logger.error("error while initializing DemuxerWorker, fallback on DemuxerInline"),this.demuxer=newu.default(r,a)}}elsethis.demuxer=newu.default(r,a);this.demuxInitialized=!0}returnn(t,[{key:"destroy",value:function(){vare=this.w;if(e)e.removeEventListener("message",this.onwmsg),e.terminate(),this.w=null;else{vart=this.demuxer;t&&(t.destroy(),this.demuxer=null)}varr=this.decrypter;r&&(r.destroy(),this.decrypter=null)}},{key:"pushDecrypted",value:function(e,t,r,a,i,n,s,o){varl=this.w;if(l)l.postMessage({cmd:"demux",data:e,audioCodec:t,videoCodec:r,timeOffset:a,cc:i,level:n,sn:s,duration:o},[e]);else{varu=this.demuxer;u&&u.push(newUint8Array(e),t,r,a,i,n,s,o)}}},{key:"push",value:function(e,t,r,a,i,n,s,o,l){if(e.byteLength>0&&null!=l&&null!=l.key&&"AES-128"===l.method){null==this.decrypter&&(this.decrypter=newv.default(this.hls));varu=this;this.decrypter.decrypt(e,l.key,l.iv,function(e){u.pushDecrypted(e,t,r,a,i,n,s,o)})}elsethis.pushDecrypted(e,t,r,a,i,n,s,o)}},{key:"onWorkerMessage",value:function(e){vart=e.data;switch(t.event){caseo.default.FRAG_PARSING_INIT_SEGMENT:varr={};r.tracks=t.tracks,r.unique=t.unique,this.hls.trigger(o.default.FRAG_PARSING_INIT_SEGMENT,r);break;caseo.default.FRAG_PARSING_DATA:this.hls.trigger(o.default.FRAG_PARSING_DATA,{data1:newUint8Array(t.data1),data2:newUint8Array(t.data2),startPTS:t.startPTS,endPTS:t.endPTS,startDTS:t.startDTS,endDTS:t.endDTS,type:t.type,nb:t.nb,dropped:t.dropped});break;caseo.default.FRAG_PARSING_METADATA:this.hls.trigger(o.default.FRAG_PARSING_METADATA,{samples:t.samples});break;caseo.default.FRAG_PARSING_USERDATA:this.hls.trigger(o.default.FRAG_PARSING_USERDATA,{samples:t.samples});break;default:this.hls.trigger(t.event,t.data)}}}]),t}();r.default=p},{"../crypt/decrypter":12,"../demux/demuxer-inline":15,"../demux/demuxer-worker":16,"../errors":21,"../events":23,"../utils/logger":38,webworkify:2}],18:[function(e,t,r){"use strict";functiona(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});vari=function(){functione(e,t){for(varr=0;r<t.length;r++){vara=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"ina&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}returnfunction(t,r,a){returnr&&e(t.prototype,r),a&&e(t,a),t}}(),n=e("../utils/logger"),s=function(){functione(t){a(this,e),this.data=t,this.bytesAvailable=this.data.byteLength,this.word=0,this.bitsAvailable=0}returni(e,[{key:"loadWord",value:function(){vare=this.data.byteLength-this.bytesAvailable,t=newUint8Array(4),r=Math.min(4,this.bytesAvailable);if(0===r)thrownewError("no bytes available");t.set(this.data.subarray(e,e+r)),this.word=newDataView(t.buffer).getUint32(0),this.bitsAvailable=8*r,this.bytesAvailable-=r}},{key:"skipBits",value:function(e){vart;this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,t=e>>3,e-=t>>3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)}},{key:"readBits",value:function(e){vart=Math.min(this.bitsAvailable,e),r=this.word>>>32-t;returne>32&&n.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0?this.word<<=t:this.bytesAvailable>0&&this.loadWord(),t=e-t,t>0?r<<t|this.readBits(t):r}},{key:"skipLZ",value:function(){vare;for(e=0;e<this.bitsAvailable;++e)if(0!==(this.word&2147483648>>>e))returnthis.word<<=e,this.bitsAvailable-=e,e;returnthis.loadWord(),e+this.skipLZ()}},{key:"skipUEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"skipEG",value:function(){this.skipBits(
returne&&e.__esModule?e:{default:e}}functioni(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functionn(e,t){if(!e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeoft&&"function"!=typeoft?e:t}functions(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function, not "+typeoft);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(r,"__esModule",{value:!0});varo=function(){functione(e,t){for(varr=0;r<t.length;r++){vara=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"ina&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}returnfunction(t,r,a){returnr&&e(t.prototype,r),a&&e(t,a),t}}(),l=e("../events"),u=a(l),d=e("../event-handler"),f=a(d),h=e("../errors"),c=function(e){functiont(e){returni(this,t),n(this,Object.getPrototypeOf(t).call(this,e,u.default.FRAG_LOADING))}returns(t,e),o(t,[{key:"destroy",value:function(){vare=this.loader;e&&(e.abort(),this.loader=null),f.default.prototype.destroy.call(this)}},{key:"onFragLoading",value:function(e){vart=this.frag=e.frag,r=this.hls.config;t.loaded=0,t.loader=this.loader="undefined"!=typeofr.fLoader?newr.fLoader(r):newr.loader(r),t.loader.load(t.url,"arraybuffer",this.loadsuccess.bind(this),this.loaderror.bind(this),this.loadtimeout.bind(this),r.fragLoadingTimeOut,0,0,this.loadprogress.bind(this),t)}},{key:"loadsuccess",value:function(e,t){varr=e.currentTarget.response,a=this.frag;t.length=r.byteLength,this.loader=a.loader=void0,this.hls.trigger(u.default.FRAG_LOADED,{payload:r,frag:a,stats:t})}},{key:"loaderror",value:function(e){vart=this.loader;t&&t.abort(),this.hls.trigger(u.default.ERROR,{type:h.ErrorTypes.NETWORK_ERROR,details:h.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:this.frag,response:e})}},{key:"loadtimeout",value:function(){vare=this.loader;e&&e.abort(),this.hls.trigger(u.default.ERROR,{type:h.ErrorTypes.NETWORK_ERROR,details:h.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:this.frag})}},{key:"loadprogress",value:function(e,t){varr=this.frag;r.loaded=t.loaded,this.hls.trigger(u.default.FRAG_LOAD_PROGRESS,{frag:r,stats:t})}}]),t}(f.default);r.default=c},{"../errors":21,"../event-handler":22,"../events":23}],29:[function(e,t,r){"use strict";functiona(e){returne&&e.__esModule?e:{default:e}}functioni(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functionn(e,t){if(!e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeoft&&"function"!=typeoft?e:t}functions(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function, not "+typeoft);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(r,"__esModule",{value:!0});varo=function(){functione(e,t){for(varr=0;r<t.length;r++){vara=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"ina&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}returnfunction(t,r,a){returnr&&e(t.prototype,r),a&&e(t,a),t}}(),l=e("../events"),u=a(l),d=e("../event-handler"),f=a(d),h=e("../errors"),c=function(e){functiont(e){i(this,t);varr=n(this,Object.getPrototypeOf(t).call(this,e,u.default.KEY_LOADING));returnr.decryptkey=null,r.decrypturl=null,r}returns(t,e),o(t,[{key:"destroy",value:function(){this.loader&&(this.loader.destroy(),this.loader=null),f.default.prototype.destroy.call(this)}},{key:"onKeyLoading",value:function(e){vart=this.frag=e.frag,r=t.decryptdata,a=r.uri;if(a!==this.decrypturl||null===this.decryptkey){vari=this.hls.config;t.loader=this.loader=newi.loader(i),this.decrypturl=a,this.decryptkey=null,t.loader.load(a,"arraybuffer",this.loadsuccess.bind(this),this.loaderror.bind(this),this.loadtimeout.bind(this),i
vart=!0,r=!1,a=void0;try{for(vari,n=this.memory[Symbol.iterator]();!(t=(i=n.next()).done);t=!0){vars=i.value;s.startTime=e,this._textTrack.addCue(s),this.display.push(s)}}catch(e){r=!0,a=e}finally{try{!t&&n.return&&n.return()}finally{if(r)throwa}}this.memory=[],this.cue=null}},{key:"_clearActiveCues",value:function(e){vart=!0,r=!1,a=void0;try{for(vari,n=this.display[Symbol.iterator]();!(t=(i=n.next()).done);t=!0){vars=i.value;s.endTime=e}}catch(e){r=!0,a=e}finally{try{!t&&n.return&&n.return()}finally{if(r)throwa}}this.display=[]}},{key:"_clearBufferedCues",value:function(){}}]),e}();r.default=n},{}],37:[function(e,t,r){"use strict";functiona(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});vari=function(){functione(e,t){for(varr=0;r<t.length;r++){vara=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"ina&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}returnfunction(t,r,a){returnr&&e(t.prototype,r),a&&e(t,a),t}}(),n=function(){functione(t){a(this,e),this.alpha_=t?Math.exp(Math.log(.5)/t):0,this.estimate_=0,this.totalWeight_=0}returni(e,[{key:"sample",value:function(e,t){varr=Math.pow(this.alpha_,e);this.estimate_=t*(1-r)+r*this.estimate_,this.totalWeight_+=e}},{key:"getTotalWeight",value:function(){returnthis.totalWeight_}},{key:"getEstimate",value:function(){if(this.alpha_){vare=1-Math.pow(this.alpha_,this.totalWeight_);returnthis.estimate_/e}returnthis.estimate_}}]),e}();r.default=n},{}],38:[function(e,t,r){"use strict";functiona(){}functioni(e,t){returnt="["+e+"] > "+t}functionn(e){vart=window.console[e];returnt?function(){for(varr=arguments.length,a=Array(r),n=0;n<r;n++)a[n]=arguments[n];a[0]&&(a[0]=i(e,a[0])),t.apply(window.console,a)}:a}functions(e){for(vart=arguments.length,r=Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];r.forEach(function(t){u[t]=e[t]?e[t].bind(e):n(t)})}Object.defineProperty(r,"__esModule",{value:!0});varo="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol?"symbol":typeofe},l={trace:a,debug:a,log:a,warn:a,info:a,error:a},u=l;r.enableLogs=function(e){if(e===!0||"object"===("undefined"==typeofe?"undefined":o(e))){s(e,"debug","log","info","warn","error");try{u.log()}catch(e){u=l}}elseu=l},r.logger=u},{}],39:[function(e,t,r){"use strict";vara={buildAbsoluteURL:function(e,t){if(t=t.trim(),/^[a-z]+:/i.test(t))returnt;varr=null,i=null,n=/^([^#]*)(.*)$/.exec(t);n&&(i=n[2],t=n[1]);vars=/^([^\?]*)(.*)$/.exec(t);s&&(r=s[2],t=s[1]);varo=/^([^#]*)(.*)$/.exec(e);o&&(e=o[1]);varl=/^([^\?]*)(.*)$/.exec(e);l&&(e=l[1]);varu=/^(([a-z]+:)?\/\/[a-z0-9\.\-_~]+(:[0-9]+)?)?(\/.*)$/i.exec(e);if(!u)thrownewError("Error trying to parse base URL.");vard=u[2]||"",f=u[1]||"",h=u[4],c=null;returnc=/^\/\//.test(t)?d+"//"+a.buildAbsolutePath("",t.substring(2)):/^\//.test(t)?f+"/"+a.buildAbsolutePath("",t.substring(1)):a.buildAbsolutePath(f+h,t),r&&(c+=r),i&&(c+=i),c},buildAbsolutePath:function(e,t){for(varr,a,i=t,n="",s=e.replace(/[^\/]*$/,i.replace(/(\/|^)(?:\.?\/+)+/g,"$1")),o=0;a=s.indexOf("/../",o),a>-1;o=a+r)r=/^\/(?:\.\.\/)*/.exec(s.slice(a))[0].length,n=(n+s.substring(o,a)).replace(newRegExp("(?:\\/+[^\\/]*){0,"+(r-1)/3+"}$"),"/");returnn+s.substr(o)}};t.exports=a},{}],40:[function(e,t,r){"use strict";functiona(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});vari=function(){functione(e,t){for(varr=0;r<t.length;r++){vara=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"ina&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}returnfunction(t,r,a){returnr&&e(t.prototype,r),a&&e(t,a),t}}(),n=e("../utils/logger"),s=function(){functione(t){a(this,e),t&&t.xhrSetup&&(this.xhrSetup=t.xhrSetup)}returni(e,[{key:"destroy",value:function(){this.abort(),this.loader=null}},{key:"abort",value:function(){vare=this.loader,t=this.timeoutHandle;e&&4!==e.readyState&&(this.stats.abo