PageSourceSearch

https://revivalradio.co.uk/bundle.32530.js

js revivalradio.co.uk collected 2026-10-08 10:19:39 UTC 1,207,734 bytes, 2 lines download raw bytes

1!function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var r={};t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var i in e)t.d(n,i,function(t){return e[t]}.bind(null,i));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s="mdyV")}({"+1ZA":function(e,t,r){function n(e){var t=i(e);return r(t)}function i(e){if(!r.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}var a={"./af":"PCLY","./af.js":"PCLY","./ar":"rWbD","./ar-dz":"8fO9","./ar-dz.js":"8fO9","./ar-kw":"jAHx","./ar-kw.js":"jAHx","./ar-ly":"eaVr","./ar-ly.js":"eaVr","./ar-ma":"KjxB","./ar-ma.js":"KjxB","./ar-sa":"Kzfg","./ar-sa.js":"Kzfg","./ar-tn":"E/xU","./ar-tn.js":"E/xU","./ar.js":"rWbD","./az":"+H07","./az.js":"+H07","./be":"epgC","./be.js":"epgC","./bg":"q8m2","./bg.js":"q8m2","./bm":"Ds9W","./bm.js":"Ds9W","./bn":"BYi5","./bn.js":"BYi5","./bo":"kvt3","./bo.js":"kvt3","./br":"2DI3","./br.js":"2DI3","./bs":"Ph7h","./bs.js":"Ph7h","./ca":"7VNv","./ca.js":"7VNv","./cs":"+1Zc","./cs.js":"+1Zc","./cv":"y6JY","./cv.js":"y6JY","./cy":"RS7N","./cy.js":"RS7N","./da":"Zen1","./da.js":"Zen1","./de":"6gdt","./de-at":"DmzJ","./de-at.js":"DmzJ","./de-ch":"VbkY","./de-ch.js":"VbkY","./de.js":"6gdt","./dv":"gCmr","./dv.js":"gCmr","./el":"s2AQ","./el.js":"s2AQ","./en-au":"TJRi","./en-au.js":"TJRi","./en-ca":"ns/j","./en-ca.js":"ns/j","./en-gb":"f+Zs","./en-gb.js":"f+Zs","./en-ie":"VDG+","./en-ie.js":"VDG+","./en-il":"aIWT","./en-il.js":"aIWT","./en-in":"ctPk","./en-in.js":"ctPk","./en-nz":"YtB9","./en-nz.js":"YtB9","./en-sg":"VRbA","./en-sg.js":"VRbA","./eo":"C9Mo","./eo.js":"C9Mo","./es":"Tzm6","./es-do":"FC41","./es-do.js":"FC41","./es-us":"66xG","./es-us.js":"66xG","./es.js":"Tzm6","./et":"LfUM","./et.js":"LfUM","./eu":"mTJk","./eu.js":"mTJk","./fa":"i4ZP","./fa.js":"i4ZP","./fi":"eiii","./fi.js":"eiii","./fil":"UWQU","./fil.js":"UWQU","./fo":"MJ0B","./fo.js":"MJ0B","./fr":"4l5I","./fr-ca":"cc/L","./fr-ca.js":"cc/L","./fr-ch":"+AA/","./fr-ch.js":"+AA/","./fr.js":"4l5I","./fy":"2r41","./fy.js":"2r41","./ga":"y0eM","./ga.js":"y0eM","./gd":"ESyC","./gd.js":"ESyC","./gl":"FcxU","./gl.js":"FcxU","./gom-deva":"4xMu","./gom-deva.js":"4xMu","./gom-latn":"5TAi","./gom-latn.js":"5TAi","./gu":"WBo+","./gu.js":"WBo+","./he":"J09Q","./he.js":"J09Q","./hi":"vZFb","./hi.js":"vZFb","./hr":"fqp+","./hr.js":"fqp+","./hu":"wFEF","./hu.js":"wFEF","./hy-am":"z9lm","./hy-am.js":"z9lm","./id":"OICW","./id.js":"OICW","./is":"fMp8","./is.js":"fMp8","./it":"c7Ev","./it-ch":"qSxU","./it-ch.js":"qSxU","./it.js":"c7Ev","./ja":"8bte","./ja.js":"8bte","./jv":"vsoA","./jv.js":"vsoA","./ka":"C2iA","./ka.js":"C2iA","./kk":"diVh","./kk.js":"diVh","./km":"yCJP","./km.js":"yCJP","./kn":"SwWG","./kn.js":"SwWG","./ko":"pCbo","./ko.js":"pCbo","./ku":"+TGZ","./ku.js":"+TGZ","./ky":"j8dY","./ky.js":"j8dY","./lb":"RGqZ","./lb.js":"RGqZ","./lo":"Wl8+","./lo.js":"Wl8+","./lt":"cGFC","./lt.js":"cGFC","./lv":"n4Ja","./lv.js":"n4Ja","./me":"D1pq","./me.js":"D1pq","./mi":"VPZN","./mi.js":"VPZN","./mk":"uSIl","./mk.js":"uSIl","./ml":"SFiE","./ml.js":"SFiE","./mn":"/B1x","./mn.js":"/B1x","./mr":"sAJi","./mr.js":"sAJi","./ms":"3mDr","./ms-my":"eJ/i","./ms-my.js":"eJ/i","./ms.js":"3mDr","./mt":"uMmE","./mt.js":"uMmE","./my":"Uabd","./my.js":"Uabd","./nb":"0FXm","./nb.js":"0FXm","./ne":"mUFG","./ne.js":"mUFG","./nl":"jQOB","./nl-be":"DImR","./nl-be.js":"DImR","./nl.js":"jQOB","./nn":"LcWX","./nn.js":"LcWX","./oc-lnc":"RGKg","./oc-lnc.js":"RGKg","./pa-in":"AyEX","./pa-in.js":"AyEX","./pl":"lrVE","./pl.js":"lrVE","./pt":"8qDa","./pt-br":"89iQ","./pt-br.js":"89iQ","./pt.js":"8qDa","./ro":"1JUL","./ro.js":"1JUL","./ru":"TEyo","./ru.js":"TEyo","./sd":"Dgb/","./sd.js":"Dgb/","./se":"iNh+","./se.js":"iNh+","./si":"5rvi","./si.js":"5rvi","./sk":"uICS","./sk.js":"uICS","./sl":"lZZk","./sl.js":"lZZk","./sq":"hytz","./sq.js":"hytz","./sr":"BHUR","./sr-cyrl":"rASL","./sr-cyrl.js":"rASL","./sr.js":"BHUR","./ss":"uBSF","./ss.js":"uBSF","./sv":"8wt6","./sv.js":"8wt6","./sw":"Xvk3","./sw.js":"Xvk3","./ta":"lKhH","./ta.js":"lKhH","./te":"7D/J","./te.js":"7D/J","./tet":"r1/O","./tet.js":"r1/O","./tg":"ZJbS","./tg.js":"ZJbS","./th":"8K9R","./th.js":"8K9R","./tk":"fTzc","./tk.js":"fTzc","./tl-ph":"sKBs","./tl-ph.js":"sKBs","./tlh":"yA37","./tlh.js":"yA37","./tr":"ZesP","./tr.js":"ZesP","./tzl":"
vendor: 7,841 bytes, line 1
166bL","./tzl.js":"66bL","./tzm":"7hkg","./tzm-latn":"iGTw","./tzm-latn.js":"iGTw","./tzm.js":"7hkg","./ug-cn":"835Y","./ug-cn.js":"835Y","./uk":"Ifhy","./uk.js":"Ifhy","./ur":"acJm","./ur.js":"acJm","./uz":"WLld","./uz-latn":"cfQs","./uz-latn.js":"cfQs","./uz.js":"WLld","./vi":"lCFP","./vi.js":"lCFP","./x-pseudo":"7kpk","./x-pseudo.js":"7kpk","./yo":"1KeI","./yo.js":"1KeI","./zh-cn":"1DNC","./zh-cn.js":"1DNC","./zh-hk":"ORTk","./zh-hk.js":"ORTk","./zh-mo":"f9fx","./zh-mo.js":"f9fx","./zh-tw":"DyU+","./zh-tw.js":"DyU+"};n.keys=function(){return Object.keys(a)},n.resolve=i,e.exports=n,n.id="+1ZA"},"+1Zc":function(e,t,r){"use strict";function n(e){return e>1&&e<5&&1!=~~(e/10)}function i(e,t,r,i){var a=e+" ";switch(r){case"s":return t||i?"pár sekund":"pár sekundami";case"ss":return t||i?a+(n(e)?"sekundy":"sekund"):a+"sekundami";case"m":return t?"minuta":i?"minutu":"minutou";case"mm":return t||i?a+(n(e)?"minuty":"minut"):a+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?a+(n(e)?"hodiny":"hodin"):a+"hodinami";case"d":return t||i?"den":"dnem";case"dd":return t||i?a+(n(e)?"dny":"dní"):a+"dny";case"M":return t||i?"měsíc":"měsícem";case"MM":return t||i?a+(n(e)?"měsíce":"měsíců"):a+"měsíci";case"y":return t||i?"rok":"rokem";case"yy":return t||i?a+(n(e)?"roky":"let"):a+"lety"}}r.r(t);var a=r("Q/DC"),s="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),o="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),l=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],u=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;t.default=a.default.defineLocale("cs",{months:s,monthsShort:o,monthsRegex:u,monthsShortRegex:u,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:l,longMonthsParse:l,shortMonthsParse:l,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"+AA/":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})},"+H07":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};t.default=n.default.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var t=e%10;return e+(i[t]||i[e%100-t]||i[e>=100?100:null])},week:{dow:1,doy:7}})},"+TGZ":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},a={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},s=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];t.default=n.default.defineLocale("ku",{months:s,monthsShort:s,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%
1d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return a[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return i[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})},"+sWD":function(e,t,r){"use strict";(function(e){function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function d(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e){if(e){if("string"==typeof e)return u(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}function c(e){var t="";return e>=86400&&(t=(e/86400|0)+"."),e>=3600&&(t+=("00"+(e%86400/3600|0)).slice(-2)),e>=60&&(t?t+=":"+("00"+(e%3600/60|0)).slice(-2):t=e%3600/60|0),t+":"+("00"+(e%60|0)).slice(-2)}function h(e,t){try{var r=e()}catch(e){return t(e)}return r&&r.then?r.then(void 0,t):r}function f(e,t){return Array.isArray(t)||(t=[t]),t.map((function(t){var r;return null==e||null==(r=e["app.replace_strings"])?void 0:r[t]})).filter(Boolean).shift()||t[0]}function m(t){var r,i,s=Object(T.useState)(null),o=s[0],l=s[1],u=Object(T.useState)(null),d=u[0],c=u[1],h=Object(T.useState)(null),f=h[0],m=h[1],p=Object(T.useState)([]),g=p[0],_=p[1],v=Object(T.useState)(""),y=v[0],L=v[1],b=Object(T.useState)(!1),M=b[0],k=b[1],S=Object(T.useState)(void 0),w=S[0],D=S[1],E=Object(T.useState)(void 0),A=E[0],I=E[1],x=Object(T.useState)(void 0),C=x[0],R=x[1],P=Object(T.useState)(!1),O=P[0],Y=P[1],N=Object(T.useRef)(null),U=Object(T.useRef)(null),B=t.data.rendered.stationId,W=this.props.base||"",G=function(){l(null),c(null),m(null)},V=Object(T.useCallback)((function(e){L(e.target.value)}),[L]),K=(Object(T.useEffect)((function(){return Y(!0),U.current=setTimeout((function(){try{return Promise.resolve(fetch(W+"/api/v1/station/"+B+"/requests/media/search?"+new URLSearchParams({query:y}))).then((function(e){return Promise.resolve(e.json()).then((function(e){e.body?_(e.body):m("There was an error connecting to the server"),Y(!1)}))}))}catch(e){return Promise.reject(e)}}),500),function(){clearTimeout(U.current)}}),[U,y]),o||d||f),z=d||f,q=t.globalOptions||(null==(r=t.station)?void 0:r.options)||{},J=q["requests.listener.name.visible"]||q["requests.listener.email.visible"]||q["requests.listener.message.visible"],Q=(!q["requests.listener.n
1ame.required"]||!!w)&&(!q["requests.listener.email.required"]||!!A&&String(A).match(/^[^@]+@.+$/))&&(!q["requests.listener.message.required"]||!!C);return e("div",{className:"sr"},e("div",{className:"sr-card"},e("div",{className:"sr-search"},e(F,null),e("input",{type:"text",placeholder:"Search for songs...",value:y,onChange:V})),e("div",{className:"sr-list"},e("div",{className:"sr-scroll"},g.map((function(r){var n;return e(H,{key:r.localReference,base:W,item:r,onRequest:l,station:null==(n=t.data)?void 0:n.station,globalOptions:t.globalOptions})})),0==g.length&&(null==y?void 0:y.length)>2&&!O?e("p",{className:"sr-no-results"},"No results found"):null),K&&e("div",{className:"sr-overlay",onClick:function(e){N.current&&!N.current.contains(e.target)&&G()}},e("div",{ref:N,className:"sr-dialog "+(z?"result":"confirm")},o&&e(T.Fragment,null,e("h6",null,"Confirm Request"),e("p",null,"Would you like to request"," ",e("strong",null,o.title)," by"," ",e(j,{artists:o.artists}),"?"),e("div",{className:"sr-dialog-preview"},e(H,{item:o,base:W,station:null==(i=t.data)?void 0:i.station,globalOptions:t.globalOptions,onRequest:function(){},inDialog:!0}),J?e("div",{className:"sr-contact-details"},q["requests.listener.name.visible"]?e("div",{className:"sr-input"},e("input",{type:"text",placeholder:"Your name"+(q["requests.listener.name.required"]?"*":""),value:w||"",onChange:function(e){return D(e.target.value)}})):null,q["requests.listener.email.visible"]?e("div",{className:"sr-input"},e("input",{type:"email",placeholder:"Your email"+(q["requests.listener.email.required"]?"*":""),value:A||"",onChange:function(e){return I(e.target.value)}})):null,q["requests.listener.message.visible"]?e("div",{className:"sr-input"},e("textarea",{placeholder:"Your message"+(q["requests.listener.message.required"]?"*":""),value:C||"",onChange:function(e){return R(e.target.value)}})):null):null),e("div",{className:"sr-actions"},e("button",{className:"sr-btn sr-btn-outline",onClick:G},"Cancel"),e("button",{className:"sr-btn sr-btn-primary",onClick:function(){var e,r;c(null),l(null),m(null),k(!0),fetch(W+"/api/v1/station/"+B+"/requests",{method:"PUT",body:JSON.stringify(a({mediaId:o.localReference,requestor:{name:w,email:A,message:C}},(null==(e=t.token)?void 0:e.access_token)?{}:{uuid:(r=window.localStorage.getItem("br:uuid"),r||(r=window.crypto.randomUUID(),window.localStorage.setItem("br:uuid",r)),r)})),headers:a({"Content-Type":"application/json"},t.token?{Authorization:"Bearer "+t.token.access_token}:{})}).then((function(e){return e.json()})).then((function(e){var t;e.success?(R(""),c(n({},o,{message:null==(t=e.body)?void 0:t.message}))):m(e.error||"There was an error connecting to the server")})).catch((function(){m("There was an error connecting to the server")})).finally((function(){k(!1)}))},disabled:!Q},"Confirm"))),d&&e(T.Fragment,null,e("h6",null,"Request for ",e("strong",null,d.title)," ","by ",e(j,{artists:d.artists})," received"),e("p",{className:"muted"},d.message?d.message.split("\n").map((function(t,r){return e("p",{key:r},t)})):"Your request has been submitted."),e("div",{className:"sr-actions end"},e("button",{className:"sr-btn sr-btn-primary",onClick:G},"Return to search"))),f&&e(T.Fragment,null,e("h6",null,"Request Rejected"),e("p",{className:"muted"},null!=f?f:"Your request could not be completed."),e("div",{className:"sr-actions end"},e("button",{className:"sr-btn sr-btn-primary",onClick:G},"Return to search"))))),M&&e("div",{className:"sr-loading"},e("div",{className:"sr-spinner-inner"}),e("div",{className:"sr-spinner-outer"})))))}function p(e,t){return Array.isArray(t)||(t=[t]),t.map((function(t){var r;return null==e||null==(r=e["app.replace_strings"])?void 0:r[t]})).filter(Boolean).shift()||t[0]}function g(e){if(!e)return!1;var t="#"===e.charAt(0)?e.substring(1,7):e;return.299*parseInt(t.substring(0,2),16)+.587*parseInt(t.substring(2,4),16)+.114*parseInt(t.substring(4,6),16)>186}function _(e,t){return Array.isArray(t)||(t=[t]),t.map((function(t){var r;return null==e||null==(r=e["app.replace_strings"])?void 0:r[t]})).filter(Boolean).shift()||t[0]}function v(e,t){try{var r=e()}catch(e){return t(e)}return r&&r.then?r.then(void 0,t):r}function y(e,t){return Array.isArray(t)||(t=[t]),t.map((function(t){var r;return null==e||null==(r=e["app.replace_strings"])?void 0:r[t]}
1)).filter(Boolean).shift()||t[0]}var L=r("hosL"),b=r("icLN"),T=r("l8WD"),M=r("uklt"),k=r.n(M),S={player_container_embed:"_PgotD",player_root:"_KjVnJ",player_container:"_Gu0Xd",player_bg:"_18fDo",player_fg:"_3Zksh",station_logo:"_2oQxk",player_artwork:"_yAdDB",player_text:"_2bWaL",transport_controls:"_1vg39",transport_row:"_3-scf",player_button:"_39MlD",player_secondary_button:"_1vVR-",float_controls:"_2mYNb",player_container_embed_only:"_1TnLV",player_track_art:"_1RRUI",fs:"_1fE4X",player_artwork_container:"_2ifs9",float_playing:"_2_qW6",progress_time:"_3Jbiz",transport_row_small:"_S45xA",box_control_in:"_1Um2Y",box_facts:"_25dzn",transport_progress:"_kpRM7",region_select:"_3m7fM",boxed:"_QQfl0",region_select_contain:"_zZ2cD",box_control:"_12YAV",box_control_subtle:"_wS1Jh",box_info_label:"_3z9KD",box_control_not_last:"_swRJC",box_facts_empty:"_PcHSC",box_facts_fact:"_2MBQX",box_fact_title:"_e4twe",box_facts_expand:"_I_LiH",box_fact_body:"_3b8Rr",box_fact_overflow:"_1Pyih",box_fact_overflow_link:"_1geD7",box_fact_credit:"_esIHz",progress_t
1ime_start:"_29peO",progress_time_end:"_1kyai",progress_contain:"_3YuHa",playhead:"_2MM24",playhead_ui:"_37lCl",progress_track:"_2afdv",buffer_track:"_Pb_CT",small_button:"_25QiF",wrapped:"_3eQuf",vote_button:"_1-UUi",vote_active:"_3kA_A",volume_control:"_3OQZ1","volume-slider-container":"_wDeYT",volume_slider:"_3VopB"},w=function(e,t,r){if(e){var n=e.split(":"),i=n[0],a=n[1],s=n[2],o=n[3],l=void 0===o?"":o,u=n[4],d=void 0===u?"":u,c=n[5],h=void 0===c?"":c;isNaN(t||void 0)||(l=t),""!=l&&(l="&w="+l);var f=i.split("/").pop();return isNaN(r||void 0)||(d=r),""!=d&&parseInt(d)&&(d="&h="+parseInt(d)),""==h&&l&&d&&(h="&c=true"),"/api/image/"+a+"."+f+"?g="+s+l+d+h}},D=function(e){return e.stopPropagation()},E=function(t){function r(){for(var e,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))||this).state={},e._onDragStart=function(t){t.dataTransfer?(t.dataTransfer.setDragImage(new Image("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="),window.outerWidth,window.outerHeight),t.dataTransfer.setData("text/plain","e")):t.touches&&(t.preventDefault(),e._clientX=t.touches[0].clientX),e.dragging=!0,e.dragRef=t.target.closest("."+e.props.classNames.container),document.addEventListener("dragover",e._handleDragMove,!1)},e._onDragEnd=function(){e.dragging=!1,document.removeEventListener("dragover",e._handleDragMove,!1),e.props.onDragEnd&&!isNaN(e.state.value)&&e.props.onDragEnd(e.state.value),e.setState({value:null})},e._seekByClick=function(t){t.preventDefault(),e.dragging=!0,e.dragRef=t.target.closest("."+e.props.classNames.container),e._handleDragMove(t);var r=function t(){window.removeEventListener("mousemove",e._handleSeekMove),window.removeEventListener("mouseup",t),window.removeEventListener("blur",t),e._onDragEnd()};window.addEventListener("mousemove",e._handleSeekMove),window.addEventListener("mouseup",r),window.addEventListener("blur",r)},e._handleSeekMove=function(t){e._handleDragMove(t)},e._handleDragMove=function(t){if(e.dragging){var r=e.dragRef.getBoundingClientRect(),n=e.props.vertical?"clientY":"clientX",i=(e.props.invert?-1:1)*((t.changedTouches?t.changedTouches[0][n]:t[n])-r[e.props.vertical?e.props.invert?"bottom":"top":"left"])/r[e.props.vertical?"height":"width"],a=(i=Math.min(1,Math.max(0,i)))*(e.props.max-e.props.min);isNaN(a)||(e.props.onDragMove&&e.props.onDragMove(a),e.setState({value:a}))}},e}return l(r,t),r.prototype.render=function(){var t=this.props,r=t.hideLabel,n=t.classNames,i=t.value,a=t.buffered,s=t.min,o=t.max;return this.dragging&&(i=this.state.value),e("div",{class:n.root,tabIndex:-1},r?null:e("div",{className:n.beforeLabel},c(i)),e("div",{class:n.container,ref:this._dragContainerRef,style:{"--max":o-s},onMouseDown:this._seekByClick},e("div",{class:n.outerThumb,style:{"--value":i},onClick:D},e("div",{class:n.innerThumb,draggable:"true",onDragStart:this._onDragStart,onDragEnd:this._onDragEnd,onTouchStart:this._onDragStart,onTouchMove:this._handleDragMove,onTouchEnd:this._onDragEnd})),e("div",{class:n.track,style:{"--value":i}}),null==a?void 0:a.map((function(t,r){return e("div",{key:r,class:n.bufferTrack,style:{"--start":t.start,"--width":t.end-t.start}})}))),r?null:e("div",{className:n.afterLabel},c(isNaN(o)?"-":o-(i||0))))},r}(L.Component),A="undefined"!=typeof window,I=[".myriadanywhere.com",".broadcast.radio"],x={root:S.transport_progress,beforeLabel:S.progress_time+" "+S.progress_time_start,afterLabel:S.progress_time+" "+S.progress_time_end,container:S.progress_contain,outerThumb:S.playhead,innerThumb:S.playhead_ui,track:S.progress_track,bufferTrack:S.buffer_track},C=o(o({},x),{},{root:x.root+" "+S.small_button}),R={root:S.volume_slider,container:S.progress_contain,outerThumb:S.playhead,innerThumb:S.playhead_ui,track:S.progress_track,bufferTrack:S.buffer_track},P=function(t){function r(e){var r;(r=t.call(this,e)||this).state={volume:1,playState:0,nowPlaying:{},candidate:null},r._onMessage=function(e){try{var t=new URL(e.origin).hostname;if(!I.some((function(e){return t.endsWith(e)})))return console.error("Invalid message source");var n=JSON.parse(e.data);"audio"==n.c&&8==(8&r.state.playState)&&(16==(16&r.state.playState)?"none"==n.d&&r.hasUserInvoked&&r._onPlay(!1,!1):"active"==n.d&&(r.hasUserInvoked=!0,r._onStop()))}catch(e){}},r._onStop=function(){try{return r.audio&&(r.audio.pause(),r.audio.removeAttribute("src")),r._iframe&&r._iframe.contentWindow.postMessage(JSON.stringify({type:"method",data:{methodName:"pause",methodId:1,args:[]}})),Promise.resolve()}catch(e){return Promise.reject(e)}},r._onPlay=function(e,t,n){void 0===n&&(n=!1);try{var i=r.state,a=i.playState,s=i.candidate;t&&(s=r.props.streams[0]),r.audio.stationId=r.props.stationId,r.hasUserInvoked=r.hasUserInvoked||!!e;var o=8==(8&a)&&16!=(16&a);if(o&&e&&(r.hasUserInvoked=!1),e&&r.props.seamless&&!o&&!r.openPopup())return Promise.resolve();var l=r.getURLFromCandidate(s);if(document.cookie.indexOf("sid=")>=0&&l.indexOf("streaming.broadcast.radio")>=0){var u,d=null==(u=document.cookie.split("; ").find((function(e){return e.startsWith("sid=")})))?void 0:u.slice(4);(l=new URL(l)).searchParams.set("access_token",d),l=l.toString()}var c=n?"load":"play",f=r.getSeekParams(s),m=f.seek||!1===f.live;return Promise.resolve(16==(16&a)&&m&&l==String(r.audio.src).split("?")[0]?(r.audio.volume=0,Promise.resolve(r.audio[c]()).then((function(){function e(){r.audio.volume=r.state.volume}var t=h((function(){return Promise.resolve(r.audio.animate({volume:r.state.volume}).finished).then((function(){}))}),(function(){}));return t&&t.then?t.then(e):e()}
1))):function(){if(t||0==a||16==(16&a)||8!=(8&a)){if(!l)return;var e,i=new URL(l),o=i.pathname.endsWith(".m3u8")&&b.a.isSupported();o||i.searchParams.get("e")||i.searchParams.set((new Date).getTime(),""),o?(r.hls||(r.hls=new b.a({autoStartLoad:!1}),r.hls.attachMedia(r.audio)),r.hls._url!=i.toString()&&r.hls.loadSource(i.toString()),r.hls._url=i.toString(),r.hls.startLoad((null==(e=s.params)?void 0:e.restart)?.01:-1)):(r.hls&&(r.hls.destroy(),r.hls=null),r.audio.src=i.toString()),r.audio.autoplay=!n,r.audio.volume=.001,Promise.resolve(r.audio[c]()).then((function(e){try{var t,n=0;if(f.store){var i=window.localStorage.getItem("BR::player::progress::"+r.state.candidate.id);try{n=(i=JSON.parse(i)).currentTime}catch(e){}}return(r.hls&&n>0||(null==(t=s.params)?void 0:t.restart)&&16!=(16&a))&&(r.hls&&0==n&&(n=.01),r.audio.currentTime=n),Promise.resolve(r.audio.animate({volume:r.state.volume}).finished)}catch(e){return Promise.reject(e)}})).then((function(){return r.audio.volume=r.state.volume})).catch((function(e){console.log("autoplay failed",e),r.hls&&
1(r.hls.destroy(),r.hls=null),r.audio.removeAttribute("src"),r.setState((function(e){return{playState:16|e.playState}}))}))}else{var u=function(){if(8==(8&a)){var e=function(){r.audio.pause(),m||r.hls||r.audio.removeAttribute("src")},t=function(){if(r.audio.animate){var e=h((function(){return Promise.resolve(r.audio.animate({volume:0}).finished).then((function(){}))}),(function(){}));if(e&&e.then)return e.then((function(){}))}}();return t&&t.then?t.then(e):e()}}();if(u&&u.then)return u.then((function(){}))}}())}catch(e){return Promise.reject(e)}},r._onSkipBack=function(){r.audio.currentTime=Math.max(0,r.audio.currentTime-30)},r._onSkipForward=function(){r.audio.currentTime=r.audio.currentTime+30},r._showRegions=function(){r.props.onShowRegions&&r.props.onShowRegions()},r._expandFact=function(){r.setState({expandFact:!r.state.expandFact})},r._upvote=function(){var e=r.props.nowPlaying;return r._vote(e,1==e.voted?null:1)},r._downvote=function(){var e=r.props.nowPlaying;return-1==e.voted?r._vote(e):r._vote(e,-1)},r._vote=function(e,t){r.props.onCastVote(e,t),e.voted=t,r.forceUpdate()},r._handleVolumeChange=function(e){r.setState({volume:e}),r.audio&&(r.audio.volume=e)},r._toggleVolumeSlider=function(){r.setState({showVolumeSlider:!r.state.showVolumeSlider})},r._setVolumeSliderRef=function(e){r._volumeSliderRef=e},r._onBlurElement=function(){r._volumeSliderRef&&setTimeout((function(){r._volumeSliderRef&&document.activeElement!=r._volumeSliderRef&&!r._volumeSliderRef.contains(document.activeElement)&&r.setState({showVolumeSlider:!1})}),1)},r._onDragEnd=function(e){r.audio.currentTime=e,r.setState({currentTime:e})},r._media=A&&window.matchMedia("(max-width: 700px)")||{},r._media.onchange=function(){void 0===r.props.hideMain&&r.setState({mainVisible:!r.props.hideMain||!window.matchMedia("(max-width: 700px)").matches})},r.state.mainVisible=null!=r.props.hideMain?!r.props.hideMain:!r._media.matches,r.state.streams=(r.props.streams||[]).slice(0),r.state.streams.sort((function(e,t){return(t.url&&t.url.startsWith("https:")||0)-(e.url&&e.url.startsWith("https:")||0)}));var n=r.state.candidate=r.state.streams[0];return r.state.provider=n&&n.provider,r}l(r,t);var n=r.prototype;return n.componentWillMount=function(){try{var e=this;e.props.audio&&e.props.audio.pauseTimer&&clearTimeout(e.props.audio.pauseTimer);var t="undefined"!=typeof window,r=e._search=new URLSearchParams(t&&window.location.search||"");r.get("force_config")||t&&new URLSearchParams(window.location.hash.substr(1)).get("force_config"),r.get("dev")&&e.setState({dev:!0});var n=e.audio=e.props.audio;n.addEventListener("loadstart",e.__onloadstart=function(){e.setState((function(e){return{playState:2|e.playState}}))}),n.addEventListener("canplay",e.__oncanplay=function(){e.setState((function(e){return{playState:4|e.playState}}))}),n.addEventListener("play",e.__onplay=function(){e.setState((function(e){return{playState:-17&(8|e.playState)}}),(function(){e.hasUserInvoked=!0}))}),n.addEventListener("playing",e.__onplaying=function(){e.setState((function(){return{playState:8}}
1),(function(){e.hasUserInvoked=!0}))}),n.addEventListener("error",e.__onerror=function(){e.setState((function(){return{playState:0}}),(function(){if(e.hasUserInvoked){var t=e.state.candidate,r=Math.max(0,e.state.streams.findIndex((function(e){return e.id==t.id})))+1;if(r>=e.state.streams.length)return;e.setState({candidate:t=e.state.streams[r],provider:t.provider},(function(){setTimeout((function(){return e._onPlay(!1)}),100)})),console.log("Try playing candidate",t)}else console.warn("Autoplay error")}))}),n.addEventListener("pause",e.__onpause=function(){e.setState((function(e){return{playState:16|e.playState}}))}),n.addEventListener("buffering",e.__onbuffering=function(){e.setState((function(e){return{playState:2|e.playState}}))}),n.addEventListener("timeupdate",e.__ontimeupdate=function(t){e.setState({currentTime:t.target.currentTime})}),e.nowPlayTimer=setInterval((function(){e.updateNowPlaying(),e.updateProgress()}),5e3),e.updateNowPlaying();var i=function(){var t;e.props.autoplay?e._onPlay(!1):(null==(t=e.state.candidate)?void 0:t.provider)&&e._onPlay(!1,!1,!0)};if(e.props.audio&&n.readyState>0){var a=0|(n.readyState<4?2:0)|(n.paused?16:0);!n.paused&&!n.ended&&n.currentTime>0&&n.readyState>2?a=8:i(),e.setState({playState:a})}else i();return window.addEventListener("message",e._onMessage),document.addEventListener("blur",e._onBlurElement,!0),Promise.resolve()}catch(e){return Promise.reject(e)}},n.updateProgress=function(){this.getSeekParams(this.state.candidate).store&&window.localStorage.setItem("BR::player::progress::"+this.state.candidate.id,JSON.stringify({currentTime:this.state.currentTime,when:Date.now()}))},n.componentWillUnmount=function(){try{var e=this.props.audio;return e?("undefined"!=typeof navigator&&navigator,clearTimeout(this.nowPlayTimer),e.removeEventListener("loadstart",this.__onloadstart),e.removeEventListener("buffering",this.__onbuffering),e.removeEventListener("pause",this.__onpause),e.removeEventListener("play",this.__onplay),e.removeEventListener("playing",this.__onplaying),e.removeEventListener("error",this.__onerror),e.removeEventListener("canplay",this.__oncanplay),e.removeEventListener("timeupdate",this.__ontimeupdate),window.removeEventListener("message",this._onMessage),document.removeEventListener("blur",this._onBlurElement,!0),this.props.pauseOnLeave&&(e.pauseTimer=setTimeout((function(){e.pause(),e.removeAttribute("src")}),500)),Promise.resolve()):Promise.resolve()}catch(e){return Promise.reject(e)}},n.componentDidUpdate=function(e,t){try{var r,n,i=this;if(e.stationId==i.props.stationId||i.state.streams.find((function(e){return e.id==i.state.candidate.id}))||i.props.autoplay&&setTimeout((function(){return i._onPlay(!0,i.hasUserInvoked)}),1),"undefined"!=typeof navigator&&"mediaSession"in navigator&&(i.state.playState!=t.playState||i.props.nowPlaying!=e.nowPlaying))if(8==(8&i.state.playState)&&i.props.stationId==i.audio.stationId){var a=16==(16&i.state.playState);if(console.log("[MediaSession] set playback state:",a?"paused":"playing"),navigator.mediaSession.playbackState=a?"paused":"playing",!a){var s=i.props,o=s.settings,l=s.nowPlaying,u=void 0===l?{}:l,d=u.artworkUrl,c=new URL(i.props.apiRoot).origin;console.log("[MediaSession] setting playback position state");try{navigator.mediaSession.setPositionState({duration:1/0,playbackRate:i.props.audio.playbackRate,position:i.props.audio.currentTime})}catch(e){navigator.mediaSession.setPositionState({duration:i.props.audio.currentTime+3600,playbackRate:i.props.audio.playbackRate,position:i.props.audio.currentTime})}var h=i.getOverrideDisplayInfo(c),f={title:h[0]||(u.title||"")+(u.artist?" - "+u.artist:""),artist:o["site.title"]||u.artist,artwork:[{src:h[2]||c+(d||w(o["player.background_image"]||o["style.app-icon"]))}]};console.log("[MediaSession] setting now playing metadata",f),navigator.mediaSession.metadata=new MediaMetadata(f)}}else console.log("[MediaSession] set playback state:","none"),navigator.mediaSession.playbackState="none";if(i.props.hideMain!=e.hideMain&&i.setState({mainVisible:!i.props.hideMain}),i.props.streams!=e.streams){var m=i.props.streams;m=m.slice(0).sort((function(e,t){return(t.url&&t.url.startsWith("https:")||0)-(e.url&&e.url.startsWith("https:")||0)})),i.setState({streams:m})}if(i.state.streams.find((function(e){return e.id==i.state.candidate.id}))||JSON.stringify(t.streams)==JSON.stringify(i.state.streams)){if(!i.state.candidate){var p=i.state.streams[0]||null;i.setState({candidate:p,provider:p&&p.provider||null})}}else{i.state.playState>0&&i._onStop();var g=i.state.streams[0];i.setState({candidate:g,provider:g&&g.provider},(function(){console.log("Got new audio candidate",i.state.candidate,i.state.provider),"mixcloud"==i.state.provider||(i.props.autoplay||8==(8&i.state.playState)?setTimeout((function(){return i._onPlay(!1)}),100):i.state.provider&&setTimeout((function(){return i._onPlay(!1,!1,!1)}),100))}))}var _=document.querySelector("."+S.box_fact_body);if(_){var v=document.querySelector("."+S.box_facts),y=v.querySelector("."+S.box_fact_title),L=_.querySelector("span");_.classList[_.clientHeight<_.scrollHeight?"add":"remove"](S.box_fact_overflow);var b=L.getBoundingClientRect().height;if(y){var T=y.getBoundingClientRect().height+b;T=Math.min(T,Math.max(100,window.innerHeight-455)),v.style.setProperty("--height",T+30),v.style.setProperty("--padding",window.innerHeight-455<T+30?"30":"10")}}return(null==(r=i.props.nowPlaying)?void 0:r.fact)!=(null==e||null==(n=e.nowPlaying)?void 0:n.fact)&&i.setState({expandFact:!1}),Promise.resolve()}catch(e){return Promise.reject(e)}},n.updateNowPlaying=function(){return Promise.resolve()},n.openPopup=function(){return this.props.seamless&&"seamless-b"!=this.props.mode&&"embedded-b"!=this.props.mode&&(!this.props.onInitialise||this.props.onInitialise())},n.getURLFromCandidate=function(e){if(e.url)return e.url;switch(e.provider){case"broadcast.radio":var t=e.content.find((function(e){return 4==e.contentTypeId}));t&&(t=JSON.parse(t.body));var r=e.uri||t&&t.id;return"https://api.broadcast.radio/api/media/"+r.split(":")[1]+"."+r.split(":")[0].split("/").pop()}return""},n.getTimeFromCandidate=function(e){switch(e.provider){case"broadcast.radio":case"podbean":var t=e.content.find((function(e){return 4==e.contentTypeId}));return t&&(t=JSON.parse(t.body)),t.duration}return NaN},n.getSeekParams=function(e){var t,r;switch(e||(e=this.state.candidate),null==(t=e)?void 0:t.provider){case"broadcast.radio":case"rss":case"podbean":return a({seek:!0,store:!0,fileDuration:this.getTimeFromCandidate(e)},e.params)}return(null==(r=e)?void 0:r.params)||{}},n.getIconName=function(){var e=["battery-quarter","battery-three-quarters","battery-4"],t=this.state.playState;
1return(16==(16&t)||0==t||!this.props.autoplay&&!this.hasUserInvoked?"play":4==(4&t)&&e[1])||2==(2&t)&&e[0]||8==(8&t)&&"pause"},n.render=function(){var t,r=this,n=this.props.settings||{},i=this.props.seamless,s=this.getIconName(),o=this.props.nowPlaying.artworkUrl,l=new URL(this.props.apiRoot).origin,u=S.player_container,d={};switch(this.props.mode){case"tabbed":case"seamless-b":u=S.player_container_embed;break;case"embed":u=S.player_container_embed_only,d={position:"relative",width:"100%",height:"100%"};break;case"button-only":return this.orderControlBody({settings:n,artRoot:l,artworkUrl:null,styles:S,mainVisible:!0,icon:s,boxed:!1,showVolume:!1})}var c=void 0!==this.props.hideMain?!this.props.hideMain:!this._media.matches,h=a({position:"relative",zIndex:999},c?{top:"calc(50vh + 50px)",width:"calc(100% - 40px)",left:20,right:20,height:"180px",position:"absolute"}:{top:"78px",width:"100%",height:"85px"},this.state.candidate&&"mixcloud"==this.state.provider&&(this.state.candidate.id||this.state.candidate.link)?{}:{display:"none"}),m="about:blank";"mixcloud"==this.state.provider&&(m="https://www.mixcloud.com/widget/iframe/?hide_cover=1&light=0&feed="+escape(this.state.candidate.id||this.state.candidate.link));var p=!(!n["player.show_children"]||!this.props.onShowRegions),g=this.state.provider==this.state.candidate.provider&&e("div",{className:"iframe-contain",style:h},e("iframe",{src:m,frameborder:"0"}),e("a",{href:"#",onClick:function(e){return e.preventDefault(),r.props.openLink(),!1}},"Return To Live Radio"))||null,_=1==n["player.nowplaying.enable"],v="box"==n["player.controls.appearance"],y=1==n["player.nowplaying.show_fact"]&&!(null==(t=this.getSeekParams())?void 0:t.seek),L=this.getOverrideDisplayInfo(l)[2];return e("div",{key:this.props.key,className:u,style:d,"aria-hidden":this.props.ariaHidden},e("div",{key:0,className:S.player_root,style:{backgroundColor:n["player.background_colour"]||n["app.background_colour"],display:null!=this.props.hideMain?this.props.hideMain?"none":"flex":void 0}},e("div",{className:S.player_bg,role:"presentation"},this.props.disableBG?null:n["player.artwork.enable"]&&e("img",{alt:f(n,o?"The album artwork of the current song":"Station logo"),src:L||l+(o||w(n["player.background_image"]||n["style.app-icon"]))})||n["player.background_image"]&&e("img",{alt:f(n,"Default background image"),src:l+w(n["player.background_image"])})),e("div",{className:S.player_fg},p?e("div",{className:S.region_select+" "+(v?S.boxed:""),onClick:this._showRegions},e("span",null,e("svg",{height:"16px",id:"Layer_1",style:{fill:"currentColor",enableBackground:"new 0 0 32 32"},version:"1.1",viewBox:"0 0 32 32",width:"16px"},e("path",{d:"M4,10h24c1.104,0,2-0.896,2-2s-0.896-2-2-2H4C2.896,6,2,6.896,2,8S2.896,10,4,10z M28,14H4c-1.104,0-2,0.896-2,2  s0.896,2,2,2h24c1.104,0,2-0.896,2-2S29.104,14,28,14z M28,22H4c-1.104,0-2,0.896-2,2s0.896,2,2,2h24c1.104,0,2-0.896,2-2  S29.104,22,28,22z"}))),e("p",null,n["player.change_region_text"]||f(n,"Change Station"))):null,e("div",{className:S.station_logo},this.props.disableLogo?null:e(this.props.integrated?"a":"span",this.props.integrated?{href:"/"}:{},e("img",{id:"logo-img",role:"img",alt:f(n,"Station logo"),src:l+w(n["player.logo_override"]||n["style.logo"])}))),e("div",{ref:function(e){return"undefined"!=typeof window&&(window.__r=e)},key:69,className:S.player_embed_frame+" portal-player-target",role:"group","aria-label":f(n,["MixCloud Player","Catch Up"])}),this.orderControlBody({settings:n,artRoot:l,artworkUrl:o,styles:S,mainVisible:c,icon:s,boxed:v,showFacts:y,showVolume:!this.props.hideText||this.props.showVolume}))),!1!==this.props.hideMain&&e("div",{key:1,className:S.float_controls+" float-controls "+(_?"":S.float_playing)},this.renderFloatControlBody({settings:n,artRoot:l,artworkUrl:o,styles:S,seamless:i,mainVisible:c,icon:s,showVolume:!this.props.hideText||this.props.showVolume})),g)},n.orderControlBody=function(t){var r=this.renderControlBody(t);if(!r)return null;var n=this.props.settings;if(t.boxed||t.showFacts){var i=this.props.nowPlaying&&this.props.nowPlaying.fact||!1;return"undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&!["googlebot","bingbot","linkedinbot","mediapartners-google","spider","crawl","google-inspection","googleother","lighthouse","insights"].find((function(e){return window.navigator.userAgent.toLowerCase().indexOf(e)>=0}))||(i=!1),[r[0],e("div",{className:(t.boxed?S.box_control:S.box_control_subtle)+(t.showFacts&&i?"":" "+S.box_control_not_last)},e("div",{className:S.box_control_in},e("div",null,e("div",{className:S.box_info_label+" "+S.player_text},"stationName"===this.props.nowPlayingLabel?this.props.station.name:this.props.nowPlayingLabel||f(n,["Now Playing","Live"])),r[1]),r[2])),t.showFacts&&i&&e("div",{className:S.box_facts+(this.state.expandFact?" "+S.box_facts_expand:"")},e("div",{className:S.box_facts_fact},e("span",{className:S.box_fact_title},"Did you know",e("span",{className:S.box_fact_credit},e("a",{href:"https://www.songfacts.com",target:"_blank"},"Songfacts®"))),e("span",{className:S.box_fact_body}
1,e("span",null,e("span",{dangerouslySetInnerHTML:{__html:i}}),e("div",{style:{clear:"both"}})),e("span",{className:S.box_fact_overflow_link},e("a",{onClick:this._expandFact})))))||e("div",{className:S.box_facts+" "+S.box_facts_empty})]}return r},n.getOverrideDisplayInfo=function(e){var t,r,n,i=this;if("broadcast.radio"==this.state.provider||"podbean"==this.state.provider||"rss"==this.state.provider){var a=e+w(this.props.settings["style.app-icon"],500,500);if(this.state.candidate.content&&this.state.candidate.content[0]){var s=this.state.candidate.content.find((function(e){return 4==e.contentTypeId}))||this.state.candidate.content[0];if(s){var o=JSON.parse(s.body).timeline.find((function(e){return e.start<=i.state.currentTime&&e.end>i.state.currentTime}));if(o)return[o.title,o.artist,o.artworkUrl?timeline.artworkUrl.startsWith("http")?timeline.artworkUrl:e+timeline.artworkUrl:a]}var l=(this.state.candidate.content.find((function(e){return 7==e.contentTypeId}))||{}).body;return[s.display_title||this.props.station.name,s.excerpt||(s.display_title?this.props.station.name:" "),l&&(l.startsWith("http")?l:e+w(l,500,500))||a]}return[this.props.station.name," ",a]}if(this.props.nowPlaying&&this._search&&"schedule"==this._search.get("nowplaying")){var u=this.props.nowPlaying,d=u.currentScheduleContent;if(d){var c,h=null;if(8==d.contentTypeId){c=u.currentScheduleItem.content.filter((function(e){return 9==e.contentTypeId})).map((function(e){return e.display_title})).join(", ");var f=d.content.filter((function(e){return 7==e.contentTypeId}));f[0]&&f[0].body&&(h=new URL(this.props.apiRoot).origin+w(f[0].body,600,600))}return[d.display_title,String(c||"")+" ",h]}}return(null==(t=this.props.nowPlaying)?void 0:t.artworkUrl)&&(null==(r=this.props.nowPlaying)?void 0:r.artworkUrl.match(/^https?:\/\//))?[null,null,null==(n=this.props.nowPlaying)?void 0:n.artworkUrl]:[null,null]},n.renderFloatControlBody=function(t){var r=t.settings,n=t.artRoot,i=t.styles,a=t.seamless,s=t.showVolume;if("mixcloud"==this.state.provider&&!t.mainVisible)return null;var o=this.state.dev?"Placeholder Title":"",l=this.state.dev?"Placeholder Artist":"",u=this.getOverrideDisplayInfo(n),d=u[0],c=u[1],h=u[2],m=this.props,p=m.hideButton,g=m.hideText;return[this.props.hideArt?null:e("div",{className:i.player_track_art+" "+(a?i.fs:""),key:0,onClick:a&&this.props.onInitialise||void 0},e("img",r["player.artwork.enable"]&&h||this.props.nowPlaying.artworkUrl?{role:"img",alt:f(r,"The album artwork of the current song"),src:h||n+this.props.nowPlaying.artworkUrl}:{role:"img",alt:f(r,"Station logo"),src:n+w(r["style.app-icon"],500,500)})),r["player.nowplaying.enable"]&&!g&&e("div",{className:i.player_text+" "+(a?i.fs:"")+" styled-control-text",key:1,onClick:a&&this.props.onInitialise||void 0},e("p",{"aria-label":f(r,"Current song name"),tabIndex:0,className:i.wrapped},e("b",null,d||this.props.nowPlaying.title||o)),e("p",{"aria-label":f(r,"Artist of the current song"),tabIndex:0,className:i.wrapped},c||this.props.nowPlaying.artist||l))||null,p?null:this.renderTransport(!0,s)]},n.getIcon=function(t){switch(t){case"play":return e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"ionicon",viewBox:"0 0 512 512"},e("title",null,f(this.props.settings,"Play")),e("path",{style:{transform:"translateX(16px)"},d:"M133 440a35.37 35.37 0 01-17.5-4.67c-12-6.8-19.46-20-19.46-34.33V111c0-14.37 7.46-27.53 19.46-34.33a35.13 35.13 0 0135.77.45l247.85 148.36a36 36 0 010 61l-247.89 148.4A35.5 35.5 0 01133 440z"}));case"pause":return e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"ionicon",viewBox:"0 0 512 512"},e("title",null,f(this.props.settings,"Pause")),e("path",{d:"M208 432h-48a16 16 0 01-16-16V96a16 16 0 0116-16h48a16 16 0 0116 16v320a16 16 0 01-16 16zM352 432h-48a16 16 0 01-16-16V96a16 16 0 0116-16h48a16 16 0 0116 16v320a16 16 0 01-16 16z"}));case"skip-back":return e("svg",{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",width:"30px",height:"30px"},e("title",null,f(this.props.settings,["Skip back","Rewind 30 seconds"])),e("path",{d:"M 15 3 C 11.946149 3 9.1595062 4.1553732 7.0390625 6.0390625 L 5 4 L 5 10 L 11 10 L 8.4550781 7.4550781 C 10.209519 5.9310235 12.488026 5 15 5 C 20.534534 5 25 9.4654664 25 15 C 25 20.534534 20.534534 25 15 25 C 9.4654664 25 5 20.534534 5 15 A 1.0001 1.0001 0 1 0 3 15 C 3 21.615466 8.3845336 27 15 27 C 21.615466 27 27 21.615466 27 15 C 27 8.3845336 21.615466 3 15 3 z M 11.941406 11.347656 C 10.305406 11.347656 9.2505625 12.226516 9.2265625 13.603516 L 10.851562 13.603516 C 10.871562 13.051516 11.285391 12.685547 11.900391 12.685547 C 12.525391 12.685547 12.912109 13.002625 12.912109 13.515625 C 12.912109 14.028625 12.517016 14.365234 11.916016 14.365234 L 11.052734 14.365234 L 11.052734 15.601562 L 11.917969 15.601562 C 12.601969 15.601563 13.015625 15.932609 
113.015625 16.474609 C 13.015625 17.002609 12.576406 17.363281 11.941406 17.363281 C 11.262406 17.363281 10.828687 17.031141 10.804688 16.494141 L 9.0957031 16.494141 C 9.1587031 17.876141 10.266109 18.775391 11.912109 18.775391 C 13.636109 18.775391 14.837891 17.885328 14.837891 16.611328 C 14.837891 15.703328 14.216141 15.065891 13.244141 14.962891 L 13.244141 14.869141 C 14.035141 14.722141 14.578125 14.082484 14.578125 13.271484 C 14.578125 12.133484 13.503406 11.347656 11.941406 11.347656 z M 18.917969 11.349609 C 17.101969 11.349609 15.958984 12.710922 15.958984 15.044922 C 15.958984 17.378922 17.086969 18.774391 18.917969 18.775391 C 20.743969 18.775391 21.876953 17.374781 21.876953 15.050781 C 21.876953 12.706781 20.729969 11.349609 18.917969 11.349609 z M 18.917969 12.726562 C 19.601969 12.726563 20.060547 13.496922 20.060547 15.044922 C 20.060547 16.602922 19.601969 17.398438 18.917969 17.398438 C 18.233969 17.398438 17.779297 16.602922 17.779297 15.044922 C 17.779297 13.496922 18.233969 12.726562 18.917969 12.726562 z"}));case"skip-forward":return e("svg",{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",width:"30px",height:"30px"},e("title",null,f(this.props.settings,["Skip forwards","Fast forward 30 seconds"])),e("path",{d:"M 15 3 C 8.3845336 3 3 8.3845336 3 15 C 3 21.615466 8.3845336 27 15 27 C 21.615466 27 27 21.615466 27 15 A 1.0001 1.0001 0 1 0 25 15 C 25 20.534534 20.534534 25 15 25 C 9.4654664 25 5 20.534534 5 15 C 5 9.4654664 9.4654664 5 15 5 C 17.511974 5 19.790481 5.9310235 21.544922 7.4550781 L 19 10 L 25 10 L 25 4 L 22.960938 6.0390625 C 20.840494 4.1553732 18.053851 3 15 3 z M 11.941406 11.347656 C 10.305406 11.347656 9.2505625 12.226516 9.2265625 13.603516 L 10.851562 13.603516 C 10.871562 13.051516 11.285391 12.685547 11.900391 12.685547 C 12.525391 12.685547 12.912109 13.002625 12.912109 13.515625 C 12.912109 14.028625 12.517016 14.365234 11.916016 14.365234 L 11.052734 14.365234 L 11.052734 15.601562 L 11.917969 15.601562 C 12.601969 15.601563 13.015625 15.932609 13.015625 16.474609 C 13.015625 17.002609 12.576406 17.363281 11.941406 17.363281 C 11.262406 17.363281 10.828687 17.031141 10.804688 16.494141 L 9.0957031 16.494141 C 9.1587031 17.876141 10.266109 18.775391 11.912109 18.775391 C 13.636109 18.775391 14.837891 17.885328 14.837891 16.611328 C 14.837891 15.703328 14.216141 15.065891 13.244141 14.962891 L 13.244141 14.869141 C 14.035141 14.722141 14.578125 14.082484 14.578125 13.271484 C 14.578125 12.133484 13.503406 11.347656 11.941406 11.347656 z M 18.917969 11.349609 C 17.101969 11.349609 15.958984 12.710922 15.958984 15.044922 C 15.958984 17.378922 17.086969 18.774391 18.917969 18.775391 C 20.743969 18.775391 21.876953 17.374781 21.876953 15.050781 C 21.876953 12.706781 20.729969 11.349609 18.917969 11.349609 z M 18.917969 12.726562 C 19.601969 12.726563 20.060547 13.496922 20.060547 15.044922 C 20.060547 16.602922 19.601969 17.398438 18.917969 17.398438 C 18.233969 17.398438 17.779297 16.602922 17.779297 15.044922 C 17.779297 13.496922 18.233969 12.726562 18.917969 12.726562 z"}));case"VolumeHigh":return e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"ionicon",viewBox:"0 0 512 512"},e("title",null,f(this.props.settings,"Volume High")),e("path",{d:"M232 416a23.88 23.88 0 01-14.2-4.68 8.27 8.27 0 01-.66-.51L125.76 336H56a24 24 0 01-24-24V200a24 24 0 0124-24h69.75l91.37-74.81a8.27 8.27 0 01.66-.51A24 24 0 01256 120v272a24 24 0 01-24 24z"}),e("path",{d:"M320 336a16 16 0 01-14.29-23.19c9.49-18.9 14.3-38.56 14.3-58.81s-4.81-39.91-14.3-58.81A16 16 0 01334.29 176c11.5 23.12 17.71 47.33 17.71 72s-6.21 48.88-17.71 72A16 16 0 01320 336z"}),e("path",{d:"M368 384a16 16 0 01-13.86-24C373.05 327.09 384 299.51 384 256s-10.95-71.09-29.86-104A16 16 0 01384 128c24.5 42.28 40 85.35 40 128s-15.5 85.72-40 128A16 16 0 01368 384z"}),e("path",{d:"M416 432a16 16 0 01-13.39-24.74C429.85 365.47 448 312.76 448 256s-18.15-109.47-45.39-151.26a16 16 0 0126.78-17.48C459.75 134.89 480 194.16 480 256s-20.25 121.11-50.61 168.74A16 16 0 01416 432z"}));case"VolumeMedium":return e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"ionicon",viewBox:"0 0 512 512"},e("title",null,f(this.props.settings,"Volume High")),e("path",{d:"M232 416a23.88 23.88 0 01-14.2-4.68 8.27 8.27 0 01-.66-.51L125.76 336H56a24 24 0 01-24-24V200a24 24 0 0124-24h69.75l91.37-74.81a8.27 8.27 0 01.66-.51A24 24 0 01256 120v272a24 24 0 01-24 24z"}),e("path",{d:"M320 336a16 16 0 01-14.29-23.19c9.49-18.9 14.3-38.56 14.3-58.81s-4.81-39.91-14.3-58.81A16 16 0 01334.29 176c11.5 23.12 17.71 47.33 17.71 72s-6.21 48.88-17.71 72A16 16 0 01320 336z"}),e("path",{d:"M368 384a16 16 0 01-13.86-24C373.05 327.09 384 299.51 384 256s-10.95-71.09-29.86-104A16 16 0 01384 128c24.5 42.28 40 85.35 40 128s-15.5 85.72-40 128A16 16 0 01368 384z"}));case"VolumeLow":return e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"ionicon",viewBox:"0 0 512 512"},e("title",null,f(this.props.settings,"Volume High")),e("path",{d:"M232 416a23.88 23.88 0 01-14.2-4.68 8.27 8.27 0 01-.66-.51L125.76 336H56a24 24 0 01-24-24V200a24 24 0 0124-24h69.75l91.37-74.81a8.27 8.27 0 01.66-.51A24 24 0 01256 120v272a24 24 0 01-24 24z"}),e("path",{d:"M320 336a16 16 0 01-14.29-23.19c9.49-18.9 14.3-38.56 14.3-58.81s-4.81-39.91-14.3-58.81A16 16 0 01334.29 176c11.5 23.12 17.71 47.33 17.71 72s-6.21 48.88-17.71 72A16 16 0 01320 336z"}));case"VolumeMute":return e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"ionicon",viewBox:"0 0 512 512"},e("title",null,f(this.props.settings,"Volume High")),e("path",{d:"M232 416a23.88 23.88 0 01-14.2-4.68 8.27 8.27 0 01-.66-.51L125.76 336H56a24 24 0 01-24-24V200a24 24 0 0124-24h69.75l91.37-74.81a8.27 8.27 0 01.66-.51A24 24 0 01256 120v272a24 24 0 01-24 24z"}));case"battery-quarter":return e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"ionicon",viewBox:"0 0 512 512"},e("title",null,f(this.props.settings,["Buffering","Loading"])),e("rect",{x:"32",y:"144",width:"400",height:"224",rx:"45.7",ry:"45.7",fill:"none",stroke:"currentColor","stroke-linecap":"square","stroke-miterlimit":"10","stroke-width":"32"}),e("rect",{x:"85.69",y:"198.93",width:"154.31",height:"114.13",rx:"4",ry:"4",stroke:"currentColor","stroke-linecap":"square","stroke-miterlimit":"10","stroke-width":"32"}),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M480 218.67v74.66"}));case"battery-4":case"battery-three-quarters":return e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"ionicon",viewBox:"0 0 512 512"},e("title",null,f(this.props.settings,["Click to play","Play"])),e("rect",{x:"32",y:"144",width:"400",height:"224",rx:"45.7",ry:"45.7",fill:"none",stroke:"currentColor","stroke-linecap":"square","stroke-miterlimit":"10","stroke-width":"32"}),e("rect",{x:"85.69",y:"198.93",width:"292.63",height:"114.14",rx:"4",ry:"4",stroke:"currentColor","stroke-linecap":"square","stroke-miterlimit":"10","stroke-width":"32"}),e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M480 218.67v74.66"}));case"thumbs-up":return e("svg",{class:"ionicon",viewBox:"0 0 512 512",style:{width:"16px",height:"16px"}},e("path",{d:"M456 192l-156-12 23-89.4c6-26.6-.78-41.87-22.47-48.6l-34.69-9.85a4 4 0 00-4.4 1.72l-129 202.34a8 8 0 01-6.81 3.81H16V448h117.61a48 48 0 0115.18 2.46l76.3 25.43a80 80 0 0025.3 4.11h177.93c19 0 31.5-13.52 35.23-32.16L496 305.58V232c0-22.06-18-38-40-40z"}));case"thumbs-down":return e("svg",{class:"ionicon",viewBox:"0 0 512 512",style:{width:"16px",height:"16px"}},e("path",{d:"M56 320l156.05 12-23 89.4c-6.08 26.6.7 41.87 22.39 48.62l34.69 9.85a4 4 0 004.4-1.72l129-202.34a8 8 0 016.81-3.81H496V64H378.39a48 48 0 01-1
15.18-2.46l-76.3-25.43a80 80 0 00-25.3-4.11H83.68c-19 0-31.5 13.52-35.23 32.16L16 206.42V280c0 22.06 18 38 40 40z"}),e("path",{d:"M378.45 273.93A15.84 15.84 0 01386 272a15.93 15.93 0 00-7.51 1.91zM337.86 343.22l-.13.22a2.53 2.53 0 01.13-.22c20.5-35.51 30.36-55 33.82-62-3.47 7.06-13.34 26.51-33.82 62z",fill:"none"}),e("path",{d:"M372.66 279.16l-1 2a16.29 16.29 0 016.77-7.26 16.48 16.48 0 00-5.77 5.26z"}))}},n.renderMixcloud=function(t){var r="mixcloud"==this.state.provider,n="https://www.mixcloud.com/widget/iframe/?hide_cover=1&light=0&feed="+escape(this.state.candidate.link);r||(n="about:blank");var i=e("iframe",t?{style:a({flexShrink:1,width:"100%",height:"180px"},r?{}:{display:"none"}),src:n,frameborder:"0"}:{style:a({flex:1,width:"100%",height:"60px"},r?{}:{display:"none"}),src:n,frameborder:"0"}),s=this._host;if(!this._host)return i;(t?this._inlineContainer:this._mainContainer)!=s.parentNode&&s.querySelector("iframe")},n.renderControlBody=function(t){var r=t.settings,n=t.artRoot,i=t.artworkUrl,a=t.styles,s=t.showVolume;if("mixcloud"==this.state.provider&&t.mainVisible)return null;var o=this.props.seamless,l=this.state.dev?"Placeholder Title":"",u=this.state.dev?"Placeholder Artist":"",d=this.getOverrideDisplayInfo(n),c=d[0],h=d[1];return[r["player.artwork.enable"]&&e("div",{className:a.player_artwork+" "+(o?a.fs:""),key:0,onClick:o&&this.props.onInitialise||void 0},e("div",{className:a.player_artwork_container},e("img",{alt:"The album artwork of the current song",role:"img",src:d[2]||n+(i||w(r["style.app-icon"],600,600))})))||null,r["player.nowplaying.enable"]&&e("div",{key:1,className:a.player_text+" styled-control-text "+(o?a.fs:""),onClick:o&&this.props.onInitialise||void 0},e("p",{"aria-label":"Current song is "+(c||this.props.nowPlaying.title||l),tabIndex:0},e("b",null,c||this.props.nowPlaying.title||l)),e("p",{"aria-label":"Artist of the current song is "+(h||this.props.nowPlaying.artist||u),tabIndex:0},h||this.props.nowPlaying.artist||u))||null,this.renderTransport(!1,s)]},n.renderVolumeControl=function(t){var r=this.state,n=r.volume,i=r.showVolumeSlider;return e("div",{className:S.volume_control,key:"volume",tabIndex:-1,ref:this._setVolumeSliderRef},e("button",{className:"small"===t?S.player_button+" "+S.player_secondary_button:S.player_button,onClick:this._toggleVolumeSlider,"aria-label":f(this.props.settings,"Volume"),key:"volume"},this.getIcon(n>.7?"VolumeHigh":n>.3?"VolumeMedium":n>0?"VolumeLow":0==n?"VolumeMute":"VolumeHigh")),i&&e("div",{className:S["volume-slider-container"]||S.volume_slider_container,tabIndex:-1},e(E,{value:n,classNames:R,vertical:!0,invert:!0,min:0,max:1,onDragMove:this._handleVolumeChange,onDragEnd:this._handleVolumeChange,hideLabel:!0})))},n.renderTransport=function(t,r){var n=this.props.settings;r=r&&1==n["player.volume.enable"];var i=n["player.volume.size"]||"small",a=this.getIconName();if(!this.getSeekParams(this.state.candidate).seek){var s;if(n["player.voting.enable"]&&!t){var o=this.props.nowPlaying;if(7==o.mediaItemType)return e("div",{key:2,class:S.transport_controls},e("div",{class:S.transport_row+(t?" "+S.transport_row_small:"")},r?this.renderVolumeControl(i):null,e("button",{className:S.player_button+" "+S.player_secondary_button+" "+S.vote_button+(1==o.voted?" "+S.vote_active:""),onClick:this._upvote,title:f(n,"Like song"),"aria-label":f(n,"Like song"),key:"upvote"},this.getIcon("thumbs-up")),e("button",{className:S.player_button+" "+S.player_secondary_button+" "+S.vote_button+(-1==o.voted?" "+S.vote_active:""),onClick:this._downvote,title:f(n,"Dislike song"),"aria-label":f(n,"Dislike song"),key:"downvote"},this.getIcon("thumbs-down")),e("button",{className:S.player_button,onClick:this._onPlay,title:f(n,"Play"),key:"play","aria-label":f(n,"play"==a?["Play Button","Play"]:["Pause Button","Pause"])},this.getIcon(a))))}return e("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"8px"},key:2,class:S.transport_controls}
1,r?this.renderVolumeControl(i):null,e("button",((s={key:2,className:S.player_button+(this.props.transportButtonClassName?" "+this.props.transportButtonClassName:""),onClick:this._onPlay,title:f(n,"Play")}).key="play",s["aria-label"]=f(n,"play"==a?["Play Button","Play"]:["Pause Button","Pause"]),s),this.getIcon(a)))}for(var l=[],u=0;u<this.audio.buffered.length;u++)this.audio.buffered.start(u)<=this.audio.currentTime&&this.audio.buffered.end(u)>this.audio.currentTime&&l.push({start:this.audio.buffered.start(u),end:this.audio.buffered.end(u)});var d=t?S.small_button:"";return e("div",{key:2,class:S.transport_controls},e("div",{class:S.transport_row+(t?" "+S.transport_row_small:"")},e("button",{className:S.player_button+" "+S.player_secondary_button+" "+d,onClick:this._onSkipBack,title:f(n,"Rewind 30 seconds"),"aria-label":f(n,"Rewind 30 seconds")},this.getIcon("skip-back")),e("button",{className:S.player_button,onClick:this._onPlay,title:f(n,"Play"),"aria-label":f(n,"play"==a?["Play Button","Play"]:["Pause Button","Pause"])},this.getIcon(a)),e("button",{className:S.player_button+" "+S.player_secondary_button+" "+d,onClick:this._onSkipForward,title:f(n,"Fast forward 30 seconds"),"aria-label":f(n,"Fast forward 30 seconds")},this.getIcon("skip-forward"))),e(E,{value:this.state.currentTime,buffered:l,classNames:t?C:x,min:0,max:this.audio.duration||0,onDragEnd:this._onDragEnd,hideLabel:t}))},r}(L.Component),O={root:"_1E0gd",recently_played_head:"_3GQzV",recently_played_container:"_2dtWP",recently_played_list:"_3n0RP",track_time:"_bhST_",recently_played_item:"_29wPd",track_info:"_1-s-r",track_art:"_20Q0-",voting:"_T4TG2",vote_bar:"_2iDwJ",vote_buttons:"_152em",vote_button:"_39VPN",vote_progress:"_1v1P5",vote_active:"_FQ4o4",position_relative:"_uZ0hZ"},Y={root:"_2Jst9",schedule_container:"_39VKK",contact_container:"_2vjlz",fadePopIn:"_8oV9_",full_schedule_overlay:"_22Rkn",recently_played_head:"_1T-H-",contact_head:"_M2UDq",aside_content:"_31cmd",recently_played_container:"_3hCE8",recently_played_list:"_UpCpk",track_time:"_2gteH",recently_played_item:"_1z44C",track_info:"_2XG-k",track_art:"_2oV1I",track_artist:"_2DDAI",schedule_top:"_1dnBB",schedule_close_btn:"_1ncWh",schedule_close_btn_left:"_24LbE",schedule_send_btn:"_33AtK",schedule_date:"_2mgRw",schedule_head:"_1Jyh8",sch_nav_link:"__HnVU",invokable:"_JeF6h",text_field_message:"_3haYH",text_field_name:"_-efEx",rel_container:"_1CoaW",contact_text:"_215LJ",centerFlex:"_1PJ5Q",contact_actions:"_ns90i",fixed_pos:"_3kTX6",no_header:"_uWgyv",on_air_now:"_2GCgC",hidden_recently_played_container:"_MF-W7",contact_overlay:"_HM14p",engage_form:"_392IG",contact_engage_head:"_Pm05M"},F=function(){return e("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}))},N=function(){return e("svg",{viewBox:"0 0 24 24",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",style:{fill:"currentColor",flexShrink:0}},e("path",{d:"M18 3H6C4.9 3 4 3.9 4 5v14c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h6v2zm4-4H7v-2h10v2zm0-4H7V7h10v2z"}))},j=function(t){var r=t.artists;return r.length?r.map((function(t,n){return e(T.Fragment,null,0==n?e("strong",null,t.name):t.name,n==r.length-1?"":", ")})):e(T.Fragment,null,"-")},U=function(t){var r=t.station,n=t.globalOptions||(null==r?void 0:r.options)||{},i=function(e){if(e){var t=e.split(":"),r=t[0],n=t[1],i=t[2],a=t[3],s=void 0===a?"":a,o=t[4],l=void 0===o?"":o,u=t[5],d=void 0===u?"":u;isNaN(void 0)||(s=void 0),""!=s&&(s="&w="+s);var c=r.split("/").pop();return isNaN(void 0)||(l=void 0),""!=l&&parseInt(l)&&(l="&h="+parseInt(l)),""==d&&s&&l&&(d="&c=true"),"/api/image/"+n+"."+c+"?g="+i+s+l+d}}((null==n?void 0:n["style.app-icon"])||(null==n?void 0:n["style.logo"]));return e("img",{alt:((null==n?void 0:n["site.name"])||(null==r?void 0:r.name)||"Station")+" logo",src:i})},H=function(t){var r=t.item,n=t.onRequest,i=t.inDialog,a=r.artworkUrl,s=void 0===a?null:a,o=r.title,l=void 0===o?"":o,u=r.artists,d=void 0===u?[]:u,c=r.album,h=void 0===c?"":c;return e("div",{className:"sr-row"+(i?" dialog":"")},e("div",{className:"sr-row-left"},s&&e("img",{src:t.base+s,alt:l+" artwork"})||e(U,t),e("div",{className:"sr-meta"},e("p",{className:"sr-title"},l),e("div",{className:"sr-sub"},e("p",{className:"sr-artist"},e(j,{artists:d}
1)),h?e(T.Fragment,null,e("p",{className:"sr-sep"},"-"),e("p",{className:"sr-album"},h)):null))),!i&&e("button",{className:"sr-btn sr-btn-outline",onClick:function(){return n(r)}},e(N,null)," Request"))},B=r("60sP"),W=function(e,t){if(e){var r=e.split(":"),n=r[2];return"/api/image/"+r[1]+"."+r[0].split("/").pop()+"?g="+n+(t?"&w="+t:"")}},G=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this)._upvote=function(e){return t._vote(e,1==e.voted?null:1)},t._downvote=function(e){return-1==e.voted?t._vote(e):t._vote(e,-1)},t._vote=function(e,r){var n;e.mediaItemId==(null==(n=t.props.nowPlaying)?void 0:n.mediaItemId)&&(e=t.props.nowPlaying),t.props.onCastVote(e,r),e.voted=r,t.forceUpdate()},t}return l(t,e),t.prototype.render=function(){for(var e,t=this,r=this.props,n=r.settings,i=r.recentlyPlayed,a=new URL(this.props.apiRoot).origin||"",s=d(i);!(e=s()).done;){var o=e.value;o.key=o.startDate+";"+(o.mediaItemId||o.artist+";"+o.title)}return Object(L.h)("div",{className:O.root+(this.props.embed?" "+Y.full_schedule_overlay:"")+(this.props.positionRelative?" "+O.position_relative:"")+" styled-container"},Object(L.h)("div",{className:O.recently_played_container},Object(L.h)("p",{className:O.recently_played_head+" styled-text"},p(n,["Recently Played Tracks","Recent"])),Object(L.h)("div",{className:O.recently_played_list},i.map((function(e,r){var i,s,o,l,u;return Object(L.h)("div",{key:e.key,className:O.recently_played_item},Object(L.h)("div",{className:O.track_art},Object(L.h)("img",e.artworkUrl?{src:String(e.artworkUrl).match(/^https?:\/\//)?e.artworkUrl:a+e.artworkUrl}:{src:a+W(n["style.app-icon"])})),Object(L.h)("div",{className:O.track_info+" styled-text"},Object(L.h)("div",{className:O.track_title},e.title),Object(L.h)("div",{className:O.track_artist},e.artist)),Object(L.h)("div",{className:O.track_time+" styled-text"},Object(L.h)("span",null,n["player.recent_date_format"]?new Date(e.startDate).toLocaleString(navigator.language,n["player.recent_date_format"]):B.ago(new Date(e.startDate))),n["player.voting.enable"]&&e.mediaItemId&&(7==e.mediaItemType||e.votes||e.voted)?Object(L.h)("div",{className:O.voting,key:e.mediaItemId||e.title},n["player.voting.public"]&&Array.isArray(e.votes)?Object(L.h)("div",{className:O.vote_bar},Object(L.h)("div",{className:O.vote_progress,style:{width:(e.votes[0]+e.votes[1]==0?50:100*e.votes[0]/(e.votes[0]+e.votes[1]))+"%"}})):null,0==r&&(null==(i=t.props.nowPlaying)?void 0:i.mediaItemId)==e.mediaItemId?Object(L.h)("div",{className:O.vote_buttons},Object(L.h)("button",{"aria-label":p("Like song"),className:O.vote_button+(1==(null!=(s=e.voted)?s:null==(o=t.props.nowPlaying)?void 0:o.voted)?" "+O.vote_active:""),onClick:t._upvote.bind(t,e)},Object(L.h)("svg",{class:"ionicon",viewBox:"0 0 512 512",style:{width:"16px",height:"16px"}},Object(L.h)("path",{d:"M456 192l-156-12 23-89.4c6-26.6-.78-41.87-22.47-48.6l-34.69-9.85a4 4 0 00-4.4 1.72l-129 202.34a8 8 0 01-6.81 3.81H16V448h117.61a48 48 0 0115.18 2.46l76.3 25.43a80 80 0 0025.3 4.11h177.93c19 0 31.5-13.52 35.23-32.16L496 305.58V232c0-22.06-18-38-40-40z"}))),Object(L.h)("button",{"aria-label":p("Dislike song"),className:O.vote_button+(-1==(null!=(l=e.voted)?l:null==(u=t.props.nowPlaying)?void 0:u.voted)?" "+O.vote_active:""),onClick:t._downvote.bind(t,e)},Object(L.h)("svg",{class:"ionicon",viewBox:"0 0 512 512",style:{width:"16px",height:"16px"}},Object(L.h)("path",{d:"M56 320l156.05 12-23 89.4c-6.08 26.6.7 41.87 22.39 48.62l34.69 9.85a4 4 0 004.4-1.72l129-202.34a8 8 0 016.81-3.81H496V64H378.39a48 48 0 01-1
15.18-2.46l-76.3-25.43a80 80 0 00-25.3-4.11H83.68c-19 0-31.5 13.52-35.23 32.16L16 206.42V280c0 22.06 18 38 40 40z"}),Object(L.h)("path",{d:"M378.45 273.93A15.84 15.84 0 01386 272a15.93 15.93 0 00-7.51 1.91zM337.86 343.22l-.13.22a2.53 2.53 0 01.13-.22c20.5-35.51 30.36-55 33.82-62-3.47 7.06-13.34 26.51-33.82 62z",fill:"none"}),Object(L.h)("path",{d:"M372.66 279.16l-1 2a16.29 16.29 0 016.77-7.26 16.48 16.48 0 00-5.77 5.26z"})))):null):null))})))))},t}(L.Component);r("60sP");var V,K=(V=r("Q/DC")).default||V,z=function(e){function t(t){var r;return(r=e.call(this,t)||this)._onScroll=function(){if(!r.props.child&&r._container&&r._container.getBoundingClientRect){var e=r._container.getBoundingClientRect().y;e>0&&(e=0),clearTimeout(r._scrollTime),r._scrollTime=setTimeout((function(){r.setState({scrollTop:0-e})}),100)}},r._sendMessage=function(){try{var e=r.state,t=e.name,n=e.email,i=e.message;return r.setState({message:""}),Promise.resolve(r.setStateAsync({contactMessage:!0})).then((function(){var e=r.props.settings,a=function(a,s){try{var o=Promise.resolve(r.props.sendMessage({name:t,email:n,message:i})).then((function(){r.setState({contactMessage:_(e,"Your message has been sent"),message:""})}))}catch(e){return s(e)}return o&&o.then?o.then(void 0,s):o}(0,(function(t){r.setState({contactMessage:t.message&&_(e,String(t.message))||_(e,"There was an error sending your message"),message:i})}));if(a&&a.then)return a.then((function(){}))}))}catch(e){return Promise.reject(e)}},r._scrollDownMixcloud=function(){r.loadOnDemand(r.state.onDemand.paging.next)},r.state={child:"",name:"",email:"",contactMessage:null,scheduleDays:{}},r}l(t,e);var r=t.prototype;return r.componentDidUpdate=function(e,t){"undefined"!=typeof window&&"schedule"==this.props.mode&&t.child!=this.state.child&&window.top.postMessage("visibility:"+(this.state.child?"fullscreen":"standard"),"http://localhost:8000"),e.child!=this.props.child&&"on-demand"==this.props.child&&this.loadOnDemand()},r.getMainContent=function(e){return e&&e.content&&(e.content.find((function(e){return 10==e.contentTypeId}))||e.content.find((function(e){return 8==e.contentTypeId}))||e.content.find((function(e){return 9==e.contentTypeId}))||e.content.find((function(e){return 4==e.contentTypeId})))||null},r.loadFullSchedule=function(e){try{var t=this;return Promise.resolve(t.setStateAsync({loading:!e})).then((function(){return Promise.resolve(fetch(t.props.apiRoot+"/api/nowplaying/"+t.props.station.id+"?scheduleLength=7")).then((function(e){return Promise.resolve(e.json()).then((function(e){var r=e.body.schedule,n={};r.forEach((function(e){if(!(Date.now()-e.start_tza>864e5)){var r=e.start_tza_string.slice(0,10);e.main=t.getMainContent(e),e.image=t.getFeaturedImage(e),e.current&&(e.linkProps={href:"javascript:void(0)",onClick:function(e){return e.preventDefault(),e.stopPropagation(),t.props.openLink(),!1}}),n[r]=[].concat(n[r]||[],[e])}})),t.setState({schedule:r,scheduleDays:n,loading:!1}),t.addScheduleTimer()}))}))}))}catch(e){return Promise.reject(e)}},r.addScheduleTimer=function(){var e=this;clearTimeout(this.scheduleTimer),this.scheduleTimer=setTimeout((function(){return e.loadFullSchedule(!0)}),3e4)},r.loadOnDemand=function(e){try{var t=this;return Promise.resolve(t.setStateAsync({loading:!0})).then((function(){var r=e||t.props.apiRoot+"/api/ondemand/"+t.props.station.id;return Promise.resolve(fetch(r)).then((function(n){return Promise.resolve(n.json()).then((function(n){if(n=n.body.content,!(e&&new Date(new URL(e).searchParams.get("before"))<new Date(n[n.length-1].date))){e&&(n=t.state.onDemand.concat(n));var i=new URL(r);i.searchParams.set("before",new Date(new Date(n[n.length-1].date).getTime()-1).toISOString()),n.paging={next:i},t.setState({onDemand:n,loading:!1})}}))}))}))}catch(e){return Promise.reject(e)}},r.getFeaturedImage=function(e){return e&&e.content&&e.content.find((function(e){return 7==e.contentTypeId}))||null},r.componentDidMount=function(){document.addEventListener("scroll",this._onScroll),this.loadFullSchedule(),"on-demand"==this.props.child&&(this.state.loading=!0,this.loadOnDemand())},r.componentWillUnmount=function(){document.removeEventListener("scroll",this._onScroll),this.props.child||(document.body.style.overflowY="auto")},r.renderFullSchedule=function(){if(this.props.scheduleComponent&&this.state.schedule)return Object(L.h)(this.props.scheduleComponent,{schedule:this.state.schedule});var e=this.state.scheduleDays,t=this.props.settings["schedule.lookbehind"]||0,r=!0,n=[];for(var i in e){var a=0,s=e[i].findIndex((function(e){return e.end_time_in_station_tz>=Date.now()}));r&&s<0&&t<2||(r&&s>=0&&(r=!1,t<1&&(a=s)),n.push(this.renderDay(i,e[i].slice(a))))}return n},r.renderChild=function(){var e=this,t=this,r=this,n=arguments,i=this,a=this.props,s=a.settings;new URL(this.props.apiRoot),K.locale(navigator.language);var o=this.props.child||this.state.child;switch(o){case"now":case"nownext":return Object(L.h)("div",{className:Y.full_schedule_overlay+" styled-container "+(this.props.child?Y.fixed_pos:""),style:{zIndex:999999}},this.renderNowNext("now"!=o));case"schedule":return Object(L.h)("div",{className:Y.full_schedule_overlay+" styled-container "+(this.props.child?Y.fixed_pos:""),style:{zIndex:999999}},Object(L.h)("a",{id:Y.schedule_top}),Object(L.h)("div",{className:Y.schedule_container+" styled-container "+(this.props.noHeader?Y.no_header:""),"aria-label":_(s,["Station schedule","Schedule"]),role:"region"},this.props.noHeader?null:Object(L.h)("div",{className:Y.schedule_head},Object(L.h)("p",{className:Y.recently_played_head+" styled-text","aria-label":_(s,"Schedule"),role:"heading"},Object(L.h)("b",null,_(s,"Schedule"))," "),Object(L.h)("button",{className:Y.schedule_close_btn,role:"button","aria-label":_(s,"Close schedule"),onClick:function(){return r.setState({child:""})}},"×")),this.renderFullSchedule()));case"on-demand":return Object(L.h)("div",{className:Y.full_schedule_overlay+" styled-container "+(this.props.child?Y.fixed_pos:""),style:{zIndex:999999},ref:function(e){return r._scrollParentRef=e},role:"document"},Object(L.h)("a",{id:Y.schedule_top}),Object(L.h)("div",{className:Y.schedule_container+" styled-container "+(this.props.noHeader?Y.no_header:"")},this.props.noHeader?null:Object(L.h)("div",{className:Y.schedule_head},Object(L.h)("p",{className:Y.recently_played_head+" styled-text",role:"heading","aria-label":_(s,["On Demand","Catch Up"])},Object(L.h)("b",null,_(s,["On Demand","Catch Up"]))," "),Object(L.h)("button",{className:Y.schedule_close_btn,role:"button","aria-label":_(s,"Close"),onClick:function(){return r.setState({child:""})}},"×")),Object(L.h)(k.a,{pageStart:0,loadMore:this._scrollDownMixcloud,hasMore:!(this.state.loading||!this.state.onDemand||!this.state.onDemand.paging||!this.state.onDemand.paging.next),className:Y.rel_container,useW
1indow:!1,getScrollParent:function(){return r._scrollParentRef&&r._scrollParentRef.closest(".tab-view-contents")||r._scrollParentRef},loader:Object(L.h)("div",{className:"loader",key:0},_(s,"Loading")," ...")},this.renderMixcloud())));case"contact":var l=s["player.background_colour"]||s["app.background_colour"],u=function(){return Object(L.h)("div",{className:Y.full_schedule_overlay+" styled-container "+Y.contact_overlay,style:{zIndex:999999},ref:function(e){return i._scrollParentRef=e}},Object(L.h)("a",{id:Y.schedule_top}),Object(L.h)("div",{className:Y.contact_container+" styled-container "+("string"==typeof n[0]?n[0]:""),style:{backgroundColor:l}},null,[].slice.call(arguments,1)))};if(this.state.contactMessage){var d="Sending Message";return u(Y.centerFlex,Object(L.h)("div",{className:Y.contact_text},Object(L.h)("p",null,Object(L.h)("b",null,(1==this.state.contactMessage?d:this.state.contactMessage)||d)),!0!==this.state.contactMessage?Object(L.h)("div",{className:Y.contact_actions},Object(L.h)("a",{href:"#",className:"styled-text",onClick:function(t){try{return t.preventDefault(),Promise.resolve(e.setStateAsync({child:"",contactMessage:void 0})).then((function(){e.props.openLink(),e.props.scrollTo(Y.schedule_top,20)}))}catch(t){return Promise.reject(t)}}},_(s,"Back")),Object(L.h)("a",{href:"#",className:"styled-text",onClick:function(e){try{return e.preventDefault(),Promise.resolve(t.setStateAsync({child:"contact",contactMessage:void 0})).then((function(){t.props.scrollTo(Y.schedule_top,20)}))}catch(e){return Promise.reject(e)}}},_(s,"Send Another Message"))):null))}var c=this.props.settings["player.contact.engage.room_id"];if(c)return u(null,Object(L.h)("div",{className:Y.contact_engage_head,key:0},Object(L.h)("button",{className:Y.schedule_close_btn_left,onClick:function(){return r.setState({child:"",contactMessage:null},(function(){return r.props.openLink()}))}},Object(L.h)("b",null,"×"))),Object(L.h)("iframe",{src:"https://live--beta.myriadanywhere.com/contribute/"+c+"?theme="+(g(l)?"light":"dark"),allow:"microphone *; autoplay *; speaker-selection *",className:Y.engage_form}));var h=this.props.settings["player.contact.email.visible"],f=this.props.settings["player.contact.name.required"],m=this.props.settings["player.contact.email.required"];return u(null,Object(L.h)("div",{className:Y.schedule_head,key:0},Object(L.h)("button",{className:Y.schedule_close_btn_left,onClick:function(){return r.setState({child:"",contactMessage:null},(function(){return r.props.openLink()}))}},Object(L.h)("b",null,"×")),Object(L.h)("p",{className:Y.contact_head+" styled-text"},Object(L.h)("b",null,_(s,"Send Us A Message"))," "),Object(L.h)("button",{className:Y.schedule_send_btn,disabled:!this.state.message||this.state.message.length<4,style:{backgroundColor:s["style.tint_colour"]},onClick:this._sendMessage},Object(L.h)("b",null,_(s,"Send")))),Object(L.h)("div",{className:Y.text_field_name,key:1},Object(L.h)("input",{type:"text",onInput:function(e){return r.setState({name:e.target.value})},value:this.state.name||"",placeholder:_(s,"Your Name")+(f?" *":"")})),h?Object(L.h)("div",{className:Y.text_field_name,key:2},Object(L.h)("input",{type:"email",onInput:function(e){return r.setState({email:e.target.value})},value:this.state.email||"",placeholder:_(s,"Your Email")+(m?" *":"")})):null,Object(L.h)("div",{className:Y.text_field_message,key:3},Object(L.h)("textarea",{onInput:function(e){return r.setState({message:e.target.value})},value:this.state.message||"",placeholder:_(s,"Compose your message here")})));default:return null}},r.renderMixcloud=function(){for(var e,t=this,r=this.state.onDemand||[],n=d(r);!(e=n()).done;){var i=e.value;i.main=this.getMainContent(i),i.image=this.getFeaturedImage(i),i.image&&i.image.body&&i.image.body.startsWith("http")&&(i.image=i.image.body),i.date_string=new Date(i.date).toLocaleString(navigator.language,{hour:"2-digit",minute:"2-digit",month:"2-digit",day:"2-digit",year:"2-digit"}).replace(", "," "),i.linkProps={href:i.url||i.uri,onClick:function(e,r){return r.preventDefault(),r.stopPropagation(),t.props.openLink(e.provider,e),!1}.bind(this,i),target:"_blank"}}return this.renderDay(Object(L.h)("span",null),r)}
1,r.renderDay=function(e,t){var r=new URL(this.props.apiRoot).origin||"",n=this.props.settings,i="string"==typeof e?K(e,"YYYY-MM-DD").toDate().toLocaleDateString(navigator.language,{weekday:"long",month:"2-digit",day:"2-digit",year:"2-digit"}).replace(", "," "):e;return Object(L.h)("div",{style:{position:"relative"},role:"list"},Object(L.h)("p",{role:"heading","aria-label":i,className:Y.schedule_date+" styled-text"},i),t.map((function(e){return Object(L.h)("a",a({className:Y.recently_played_item+(e.linkProps?" "+Y.invokable:""),role:"listitem"},e.linkProps),Object(L.h)("div",{className:Y.track_art,role:"figure"},Object(L.h)("img",e.image&&e.image.body?{alt:_(n,"Show artwork"),src:r+w(e.image.body,200,200)}:{alt:_(n,"Show artwork"),src:e.image?e.image:r+w(n["style.app-icon"],200,200)})),Object(L.h)("div",{className:Y.track_info+" styled-text"},Object(L.h)("div",{role:"cell",className:Y.track_title},e.main&&e.main.display_title||""),Object(L.h)("div",{role:"cell",className:Y.track_artist},e.main&&e.main.excerpt||"")),Object(L.h)("div",{className:Y.track_time+" styled-text "+(e.current?Y.on_air_now:"")},e.date_string||(e.current?Object(L.h)("span",null,_(n,["On Air","Live"])):new Date(e.start_time_in_station_tz).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}))))})))},r.setStateAsync=function(e){var t=this;return new Promise((function(r){return t.setState(e,r)}))},r.render=function(){var e,t=this,r=this,n=this,i=this,a=this.props.settings,s=this.renderChild();if(s){document.body.style.overflowY="hidden";var o=document.querySelector("iframe");o&&o.getBoundingClientRect().top>0?window.scrollTo(0,o.offsetTop-10):this.props.child&&window.scrollTo(0,0)}else document.body.style.overflowY="auto";switch(a["player.schedule.enable"]&&(a["player.schedule.mode"]||"now-next")){case"today":var l=this.state.scheduleDays,u=Object.keys(l).find((function(e){return l[e].find((function(e){return e.current}))}));u||(u=(new Date).toISOString().slice(0,10)),e=u&&l[u]&&this.renderDay(u,l[u])||null;break;case"week":e=this.renderWeek();break;case"now-next":e=this.renderNowNext();break;default:e=null}return Object(L.h)("div",{className:Y.root,ref:function(e){return i._container=e}},Object(L.h)("div",{className:Y.aside_content+" styled-container"+(s?" "+Y.aside_content_child:"")},Object(L.h)("div",{"aria-hidden":!!s,style:{display:s?"none":void 0},className:Y.recently_played_container+(s?" "+Y.hidden_recently_played_container:"")},Object(L.h)("p",{className:Y.recently_played_head+" styled-text"},Object(L.h)("b",null,a["site.title"])),Object(L.h)("p",{className:Y.recently_played_head+" styled-text"},a["player.schedule.enable"]&&Object(L.h)("a",{href:"#",className:"styled-text",onClick:function(e){try{return e.preventDefault(),Promise.resolve(t.setStateAsync({child:"schedule"})).then((function(){t.props.scrollTo(Y.schedule_top,20)}))}catch(e){return Promise.reject(e)}}},_(a,"Schedule")),a["player.mixcloud.enable"]&&a["player.schedule.enable"]&&Object(L.h)("span",{style:{opacity:.3}}," | ")||null,a["player.mixcloud.enable"]&&Object(L.h)("a",{href:"#",className:" styled-text",onClick:function(e){try{return e.preventDefault(),r.loadOnDemand(),Promise.resolve(r.setStateAsync({child:"on-demand"})).then((function(){r.props.scrollTo(Y.schedule_top,20)}))}catch(e){return Promise.reject(e)}}},_(a,["On Demand","Catch Up"]))),e,Object(L.h)("p",{className:Y.recently_played_head+" styled-text"},a["player.contact.enable"]&&Object(L.h)("a",{href:"#",className:"styled-text",onClick:function(e){try{return e.preventDefault(),Promise.resolve(n.setStateAsync({child:"contact"})).then((function(){n.props.scrollTo(Y.schedule_top,20)}))}catch(e){return Promise.reject(e)}}},_(a,["Message The Studio"])))),s))},r.renderWeek=function(){var e=this,t=this.state.scheduleDays;return Object.keys(t).map((function(r){return e.renderDay(r,t[r])}))},r.renderNowNext=function(e){var t=this;void 0===e&&(e=!0);var r=this.props,n=r.settings,i=r.schedule,a=new URL(this.props.apiRoot).origin||"",s=(i=i||[]).findIndex((function(e){return e.current}));s<0&&(s=i.findIndex((function(e){return e.start_time_in_station_tz>=Date.now()})));var o=s>=0?i[s]:null,l=s>=0&&i[s+1]||null,u=this.getMainContent(o),d=this.getFeaturedImage(
1o),c=this.getMainContent(l),h=this.getFeaturedImage(l);return Object(L.h)("div",{className:Y.recently_played_list},Object(L.h)("a",{className:Y.recently_played_item+" "+Y.invokable,role:"listitem",href:"javascript:void(0)",onClick:function(e){return e.preventDefault(),e.stopPropagation(),t.props.openLink(),!1}},Object(L.h)("div",{className:Y.track_art},Object(L.h)("img",d&&d.body?{src:a+w(d.body,200,200)}:{src:a+w(n["style.app-icon"],200,200)})),Object(L.h)("div",{className:Y.track_info+" styled-text"},Object(L.h)("div",{className:Y.track_title},u&&u.display_title||_(n,"Unknown show")),Object(L.h)("div",{className:Y.track_artist},u&&u.excerpt||"")),Object(L.h)("div",{className:Y.track_time+" styled-text "+(o&&o.current?Y.on_air_now:"")},o&&(o.current?Object(L.h)("span",null,_(n,["On Air","Live"])):this.formatTime(o.start_time_in_station_tz)))),e&&c&&Object(L.h)("div",{className:Y.recently_played_item},Object(L.h)("div",{className:Y.track_art},Object(L.h)("img",h&&h.body?{src:a+w(h.body,200,200)}:{src:a+w(n["style.app-icon"],200,200)})),Object(L.h)("div",{className:Y.track_info+" styled-text"},Object(L.h)("div",{className:Y.track_title},c&&c.display_title),Object(L.h)("div",{className:Y.track_artist},c&&c.excerpt||"")),Object(L.h)("div",{className:Y.track_time+" styled-text"},this.formatTime(l.start_time_in_station_tz))))},r.formatTime=function(e){return new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})},t}(L.Component),q=function(e){function t(){return e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(e){return e.children},t}(L.Component),J=function(t){function r(){for(var e,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))||this).state={activeKey:null},e}l(r,t);var n=r.prototype;return n.componentWillMount=function(){this.change(this.props.defaultKey)},n.change=function(e){document.activeElement&&document.activeElement.blur(),this.setState({activeKey:e}),this.props.onChange&&this.props.onChange(e)},n.render=function(){var t=this,r=Array.isArray(this.props.children)?this.props.children:[this.props.children];r=r.filter(Boolean);var n=this.state.activeKey||this.props.defaultKey,i=r.find((function(e){return e.key===n}));i||(i=null);var a=r.filter((function(e){return"string"!=typeof e.key}));r=r.filter((function(e){return e.props&&"string"==typeof e.props.viewKey}));var s=["function"==typeof i?i(n):i].concat(a.map((function(e){return"function"==typeof e?e(n):e})));return e("div",{key:"tabview",className:"_3pVCc"},e("div",{role:"tablist",key:0,className:"_euqAu"},r.map((function(r){return e("button",{role:"tab","aria-selected":n==r.key,key:r.key,tabIndex:0,"aria-label":r.props.text,className:n==r.key?"_1IqDh":"",onClick:t.change.bind(t,r.key)},e("span",{"aria-hidden":!0},r.props.label))}))),e("div",{style:i&&i.props&&i.props.style,className:"tab-view-contents _fSamW",key:1,role:"tabpanel"},s))},r}(L.Component),Q={requests_container:"_3P5Zb",requests_head:"_1hjPx",requests_inner:"_85iOl"},X=function(e){function t(){return e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.settings,r=e.station;return Object(L.h)("div",{className:O.root+(this.props.embed?" "+Y.full_schedule_overlay:"")+(this.props.positionRelative?" "+Q.position_relative:"")+" styled-container"},Object(L.h)("div",{className:Q.requests_container},Object(L.h)("div",{className:Q.requests_inner},Object(L.h)("p",{className:Q.requests_head+" styled-text"},function(e,t){return Array.isArray(t)||(t=[t]),t.map((function(t){var r;return null==e||null==(r=e["app.replace_strings"])?void 0:r[t]})).filter(Boolean).shift()||t[0]}(t,["Request A Song","Requests"])),Object(L.h)(m,{data:{rendered:{stationId:r.id}},globalOptions:t,base:this.props.apiRoot}))))},t}(L.Component),Z="undefined"!=typeof window&&window.location.origin||"",$="https://staging.broadcast.radio"==Z?Z:Z.startsWith("http://localhost")?"http://localhost:8090":"https://api.broadcast.radio";"undefined"!=typeof window&&window.APIROOT&&($=window.APIROOT);var ee=function(e){function t(t){var r;(r=e.call(this,t)||this).state={ready:!1,nowPlaying:{},fullscreen:!1,autoplay:!1,recentlyPlayed:[],m2edia:{uri:"cms-blob_audio/mp3:b3f5d364-5d5d-5fbe-894c-17467f678523",id:"cms-blob_audio/mp3:b3f5d364-5d5d-5fbe-894c-17467f678523",provider:"broadcast.radio",content:[{contentTypeId:4,contentId:9933,display_title:"he",excerpt:"",body:JSON.stringify({id:"cms-blob_audio/mp3:b3f5d364-5d5d-5fbe-894c-17467f678523",timeline:[{start:0,end:300,title:"Test",artist:"Test"}]})},{contentTypeId:7,contentId:9933,body:"cms-blob_image/png:4ade4e83-6aa6-4056-88e8-01956aac2687:center"}]}},r.TIMERS=[],r.updateEverything=function(){try{if("embed"==r.props.mode||r.props.disableMetadata)return Promise.resolve();var e=v((function(){var e=r.state.settings["player.voting.enable"];return Promise.resolve(fetch(r.apiRoot+"/api/recentlyplayed/"+encodeURIComponent(r.state.station.id)+"?size=100"+(e?"&votes=1":""))).then((function(e){return Promise.resolve(e.json()).then((function(e){r.setState({re
1centlyPlayed:e.body.recently_played})}))}))}),(function(){}));return Promise.resolve(e&&e.then?e.then((function(){})):void 0)}catch(e){return Promise.reject(e)}},r.expand=function(e){return"object"!=typeof e&&(r._audio.readyState>0&&!r._audio.paused||r.state.mode.endsWith("-b"))||r.setState({fullscreen:!0,autoplay:!1}),!0},r._openLink=function(e,t,n){if(r.state._data)if(null==e){if(r.setState({streams:r.state._data.streams.sort((function(e,t){return e.priority-t.priority}))}),!n){var i=new URLSearchParams(location.search),a=i.has("open");i.delete("open"),window.history[a?"replaceState":"pushState"](null,null,"?"+i)}}else{if(r.state.forceScheduleChild){switch(e){case"mixcloud":return"object"==typeof t&&(t=t.url||t.uri),t.startsWith("https://www.mixcloud.com")&&(t=t.slice(24)),window.open("https://www.mixcloud.com"+t,"_blank")}return}if(r.setState({streams:[t.provider?t:{provider:e,link:t}]}),!n){var s=new URLSearchParams(location.search),o=s.has("open");s.set("open",t.id),window.history[o?"replaceState":"pushState"](null,null,"?"+s)}}},r._onClickMessage=function(e){return e.preventDefault(),r.setState({overlay:"contact"}),!1},r._showRegions=function(){r.props.integrated||(document.body.classList.add("no-y"),setTimeout((function(){document.body.classList.remove("no-y")}),5e3)),r.setState({overlay:"regions"})},r._useLocation=function(e){var t=r.searchParams=new URLSearchParams(window.location.search.slice(1));if(r.props.integrated&&"fullPage"!=r.props.integrated)t.set("stationId",e.id),r.componentDidMount();else{t.delete("stationId"),t.set("autoplay",1);var n="/"+(e.domain.replace(".broadcast.radio","")||e.id)+"?"+t.toString();"fullPage"==r.props.integrated&&(n="/listen"+n),window.history.pushState(e.name,"",n),r.componentDidMount()}},r._closeOverlay=function(e){e||r.setState({overlay:null})},r._popup=function(){var e=r.state.settings["player.defaults.size"],t="https://player.broadcast.radio/?autoplay=1&stationId="+r.stationId,n=e[0]&&"number"==typeof e[0];n=n&&screen.width>400;var i=window.opener||window.top||window;return n&&window.open(t,"_blank","width="+e[0]+",height="+e[1]+",scrollbars=yes")||(i.location=t),!1},r._sendMessage=function(e){var t=e.name,n=e.email,i=e.message;try{var a=v((function(){function e(){return v((function(){return Promise.resolve(a.json()).then((function(e){if((a=e).error)throw new Error(a.error);return a.success}))}),(function(){throw new Error(y(r.state.settings,"A server error occurred. Your message was not delivered."))}))}var a,s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t,email:n,message:i,source:"com.broadcastradio.player/web/2",token:"todo"})},o=v((function(){return Promise.resolve(fetch(r.apiRoot+"/api/postMessage/"+encodeURIComponent(r.state.station.id),s)).then((function(e){a=e}))}),(function(){throw new Error(y(r.state.settings,"There was an error connecting to the server. Your message was not delivered."))}));return o&&o.then?o.then(e):e()}),(function(e){throw e}));return Promise.resolve(!a||!a.then||a.then((function(){return!0})))}catch(e){return Promise.reject(e)}},r._onCastVote=function(e,t){try{var n=v((function(){function n(){return v((function(){return Promise.resolve(i.json()).then((function(e){if((i=e).error)throw new Error(i.error);return r.updateEverything(),i.success}))}),(function(){throw new Error(y(r.state.settings,"A server error occurred. Your vote was not cast."))}))}var i,a={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({vote:t,source:"com.broadcastradio.player/web/2",token:"todo"})},s=v((function(){return Promise.resolve(fetch(r.apiRoot+"/api/recentlyplayed/"+encodeURIComponent(r.state.station.id)+"/vote/"+e.mediaItemId,a)).then((function(e){i=e}))}),(function(){throw new Error(y(r.state.settings,"There was an error connecting to the server. Your vote was not cast."))}));return s&&s.then?s.then(n):n()}),(function(e){throw e}));return Promise.resolve(!n||!n.then||n.then((function(){return!0})))}catch(e){return Promise.reject(e)}};var n="undefined"!=typeof window;return r._media=n&&window.matchMedia("(max-height: 500px)")||{},r._media.onchange=function(){r.setState({collapse:!!window.matchMedia("(max-height: 500px)").matches})},r.state.autoplay=r.props.autoplay,r.state.collapse=!!r._media.matches,r.props.integrated&&"fullPage"!=r.props.integrated&&delete r._showRegions,r}l(t,e);var r,n=t.prototype;return n.componentWillUnmount=function(){document.body.style.overflowY="auto",this.TIMERS.splice(0).forEac
1h(clearInterval),"undefined"!=typeof window&&(window.removeEventListener("hashchange",this._hashchange),window.removeEventListener("message",this._message),window.removeEventListener("popstate",this._popstate))},n.componentDidMount=function(){try{var e=function(){r&&window.addEventListener("hashchange",t._hashchange=function(e){var r=new URLSearchParams(window.location.hash.substr(1)).get("force_config");return r&&(r=JSON.parse(r),t.setState({settings:Object.assign.apply(Object,[{}].concat(Object.keys(r.options).map((function(e){var t;return(t={})[e]=r.options[e][1],t})))),station:r.station||t.state.station,ready:!0,streams:r.streams,nowPlayingPath:r.nowPlaying},(function(){return t.updateData()}))),e.preventDefault(),!1}),r&&window.addEventListener("popstate",t._popstate=function(e){try{var r=new URLSearchParams(window.location.search),i=function(){var e,i,a;if(!r.get("open")&&(null==(e=t.state)||null==(i=e.streams)||null==(a=i[0])?void 0:a.provider))t._openLink(void 0,void 0,!0);else{var s=function(){if(r.get("open")){var e=v((function(){var e;return Promise.resolve(n(t.apiRoot+"/api/ondemand/"+(null==(e=t.state.station)?void 0:e.id)+"?target="+encodeURIComponent(r.get("open")))).then((function(e){return Promise.resolve(e.json()).then((function(e){(d=(e=e.body.content).find((function(e){return e.id==r.get("open")})))&&t._openLink(d.provider,d,!0)}))}))}),(function(e){console.error(e)}));if(e&&e.then)return e.then((function(){}))}}();if(s&&s.then)return s.then((function(){}))}}();return Promise.resolve(i&&i.then?i.then((function(){})):void 0)}catch(e){return Promise.reject(e)}}),r&&window.addEventListener("message",t._message=function(e){var r="string"==typeof e.data?e.data.split(":"):null;r&&"visibility"==r[0]&&t.setState("fullscreen"==r[1]?{playerExpanded:!0}:{playerExpanded:!1})})},t=this,r="undefined"!=typeof window,n=t.props.fetch||fetch;t.TIMERS.push(setInterval((function(){t.updateData()}),1e4));var i,s=t.searchParams=t.searchParams||new URLSearchParams(r&&(window.location.search||window.location.hash.substr(1))||t.props.search||""),o=t.props.forceConfig||s.get("force_config")||r&&new URLSearchParams(window.location.hash.substr(1)).get("force_config"),l=t.stationId=t.props.stationId||s.get("stationId");if(!l&&window.location.pathname.length>1?l=window.location.pathname.split("/")[1]:l||(l=8),"fullPage"==t.props.integrated&&window.location.pathname.split("/")[2]&&(l=window.location.pathname.split("/")[2]),s.get("v")&&(i=s.get("v")),s.get("c")){var u=Object.fromEntries(s.get("c").split(",").map((function(e){return e.split(":")})).map((function(e){var t=e[1];return[e[0],[parseInt(l)||0,isNaN(t)?t:"1"==t]]})));a(o=o||{},u)}var d,c=s.get("open"),h=1==parseInt(s.get("dev")),f=t.props.mode||s.get("mode");r&&"tabbed"==f&&t.props.integrated&&(document.body.style.overflowY="hidden");var m=t.props.playerProps&&t.props.playerProps.hideMain||t.props.noAudio,p=t.props.autoplay||null!==s.get("autoplay")&&"0"!=s.get("autoplay"),g="0"==s.get("autoplay");navigator.userAgent.indexOf("MyStation")+1&&(p=!1);var _=Promise.resolve(n(t.apiRoot+"/api/player/"+encodeURIComponent(l)).then((function(e){return e.json()}))).then((function(e){function r(){return Promise.resolve(n(t.apiRoot+"/api/app/"+encodeURIComponent(l)+"?streams=all").then((function(e){return e.json()})).catch((function(){return{}}))).then((function(r){r&&r.body&&(r.allStations=function e(t,r){var n=[];return r(t)&&n.push(t),Array.isArray(t)&&t.map((function(t){return n=n.concat(e(t,r))})),t.children&&t.children.map((function(t){return n=n.concat(e(t,r))})),n}(r.body.station,(function(e){return e.player_enabled})),r.allStations=Object.values(Object.fromEntries(r.allStations.map((function(e){return[e.id,e]}))))),e.success&&e.body&&(e=e.body,t.setState({settings:Object.assign.apply(Object,[{}].concat(Object.keys(e.options).map((function(t){var r;return(r={})[t]=e.options[t],r})))),appData:r,overlay:null,streams:d?[d]:e.streams.sort((function(e,t){return e.priority-t.priority})),apiRoot:e.apiRoot,station:e.station,_data:e,forceScheduleChild:i,autoplay:(p||e.options["player.defaults.autoplay"])&&!g&&!h&&!m&&"expanding"!=f,mode:f||e.options["player.defaults.mode"],ready:!o},(function(){if(o)try{var e="string"==typeof o?JSON.parse(o):{options:o};t.setState((function(r){return{settings:Object.assign.apply(Object,[{},t.state.settings].concat(Object.keys(e.options||{}).map((function(t){var r;return(r={})[t]=e.options[t][1],r})))),station:e.station||r.station,streams:e.streams?e.streams.sort((function(e,t){return e.priority-t.priority})):r.streams,apiRoot:e.apiRoot||r.apiRoot,ready:!0,_data:a({},r._data,e)}}),(function(){return t.updateData()}))}catch(e){console.error("Error loading initial state",e)}(0==t.state.streams.length||0==Object.keys(t.state.streams[0]).length&&t.state.appData.allStations&&t.state.appData.allStations.length)&&t._showRegions(),t.updateData()})))}))}var s=function(){if(c)return Promise.resolve(n(t.apiRoot+"/api/ondemand/"+(e.body&&e.body.station&&e.body.station.id||l)+"?target="+encodeURIComponent(c))).then((function(e){return Promise.resolve(e.json()).then((function(e){d=(e=e.body.content).find((function(e){return e.id==c}))}))}))}();return s&&s.then?s.then(r):r()}));return Promise.resolve(_&&_.then?_.then(e):e())}catch(e){return Promise.reject(e)}},n.updateData=function(){try{var e=this;if(!e.state.station)return Promise.resolve();if(e.props.disableMetadata)return Promise.resolve();var t=e.props.fetch||fetch,r=v((function(){return Promise.resolve(t(e.apiRoot+"/api/nowplaying/"+encodeURIComponent(e.state.station.id)+"?size=600")).then((function(t){return Promise.resolve(t.json()).then((function(t){var r=t.body.schedule&&t.body.schedule.find((function(e){return e.current})),n=r&&(r.content.find((function(e){return 8==e.contentTypeId}))||r.content.find((function(e){return 9==e.contentTypeId}))),i=e.state.nowPlaying,s=t.body.now_playing;(null==i?void 0:i.mediaItemId)==(null==s?void 0:s.mediaItemId)&&(null==i?void 0:i.voted)&&(s.votes=i.votes,s.voted=i.voted),e.setState({nowPlaying:a(t.body.now_playing,{currentScheduleItem:r,currentScheduleContent:n}),schedule:t.body.schedule})}))}))}),(function(){}));return Promise.resolve(r&&r.then?r.then((function(){})):void 0)}catch(e){return Promise.reject(e)}},n.scrollToAnchor=function(e,t){setTimeout((function(){if("string"==typeof e&&(e=document.getElementById(e)),t=window.matchMedia("(max-width: 700px)").matches?t:0,e){var r=document.documentElement.scrollTop+e.getBoundingClientRect().top+(parseFloat(t)||0);document.documentElement.scrollTo({top:r})}}),100)},n.render=function(){if(!this.state.ready)return this.props.x?Object(L.h)("div",null):null;var e=this.state.settings,t=e["player.secondary_colour"]||e["app.secondary_colour"],r=e["player.background_colour"]||e["app.background_colour"],n=e["player.tint_colour"]||e["style.tint_colour"],i=this.props.integrated;"undefined"!=typeof window&&window.location.search.indexOf("&link")>=0&&(i=!0);var a="undefined"!=typeof navigator&&(navigator.userAgent.indexOf("Mobile")>=0||navigator.userAgent.indexOf("MyStation")>=0);return Object(L.h)("div",{className:"_1H1WS styled-container"+(a?" mobile-browser":"")},this.renderContent(),Object(L.h)("style",{dangerouslySetInnerHTML:{__html:"\n\t\t\t\t\t.styled-text {\n\t\t\t\t\t\tcolor: "+t+";\n\t\t\t\t\t}\n\n\t\t\t\t\t._1H1WS .styled-container::before,\n\t\t\t\t\t#app > .styled-container::before {\n\t\t\t\t\t\tcontent: '';\n\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\ttop: 0px;\n\t\t\t\t\t\tleft: 0px;\n\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\theight: 100%;\n\t\t\t\t\t\tbackground: "+r+";\n\t\t\t\t\t\tpointer-events: none;\n\t\t\t\t\t\tdisplay: block;\n\t\t\t\t\t}\n\n\n\n\t\t\t\t\t._1H1WS .styled-container > div, #app .styled-container > div {\n\t\t\t\t\t\tz-index: 1;\n\t\t\t\t\t}\n\n\t\t\t\t\t.styled-control-text {\n\t\t\t\t\t\tcolor: var(--np-col);\n\t\t\t\t\t}\n\n\t\t\t\t\t"+(i?"":" body {\n\t\t\t\t\t\tbackground: "+r+";\n\t\t\t\t\t\toverflow-x: hidden;\n\t\t\t\t\t}")+"\n\n\n\t\t\t\t\ta.styled-text {\n\n\t\t\t\t\t}\n\n\t\t\t\t\t._1H1WS {\n\t\t\t\t\t\t--main-col: "+t+";
1\n\t\t\t\t\t\t--main-bg-col: "+r+";\n\t\t\t\t\t\t--menu-col: "+e["player.menu_text_colour"]+";\n\t\t\t\t\t\t--menu-bg-col: "+e["player.menu_background_colour"]+";\n\t\t\t\t\t\t--np-col: "+(e["app.now_playing_text_colour"]||"#FFF")+";\n\t\t\t\t\t\t--np-bg-col: "+e["app.now_playing_background_colour"]+";\n\t\t\t\t\t\t--tint-col: "+n+";\n\t\t\t\t\t}\n\t\t\t\t"}}))},n.componentDidUpdate=function(e,t){var r=this;if(t.nowPlaying!=this.state.nowPlaying&&JSON.stringify(t.nowPlaying)!=JSON.stringify(this.state.nowPlaying)&&(clearTimeout(this._update),this._update=setTimeout((function(){return r.updateEverything()}),500)),t.station!=this.state.station&&(!this.props.integrated||"fullPage"==this.props.integrated)){var n=document.querySelector('link[rel="shortcut icon"]');n&&this.state.station&&this.state.station.webroot&&n.setAttribute("href",this.state.station.webroot+(this.state.station.webroot.endsWith("/")?"":"/")+"favicon.ico")}if(t.nowPlaying!=this.state.nowPlaying||t.recentlyPlayed!=this.state.recentlyPlayed){var i=a({},this.state.nowPlaying,{recently_played:this.state.recentlyPlayed},{schedule:this.state.schedule});this.props.onNowPlaying&&this.props.onNowPlaying(i)}t.fullscreen!=this.state.fullscreen&&window.top.postMessage("visibility:"+(this.state.fullscreen?"fullscreen":"standard"),"*")},n.makeAudio=function(){return this.audioEl=this.audioEl||new Audio,this.audioEl},n.renderContent=function(){var e=this;if(!this.state.ready)return null;var t=this.state,r=t.settings,n=t.streams,i=t.station,s=t.schedule,o=t.nowPlaying,l=t.recentlyPlayed,u=t.autoplay;n.length||(n[0]={}),o||(o={});var d=this.props.integrated,c="undefined"!=typeof window&&window.location.search.indexOf("&link=1")>=0,h=window.location.search.indexOf("&play=0")>=0,f=this._audio=this.props.audio||this.makeAudio(),m=Math.min(20,Math.max(r["player.history.length"]||5,1)),p=r["player.contact.enable"],g={};this.state.media&&(n=Array.isArray(this.state.media)?this.state.media:[this.state.media]);var _="box"==r["player.controls.appearance"];r["player.controls.props"]&&a(g,r["player.controls.props"]);var v=this.props.scheduleComponent;switch(this.state.mode){case"tabbed":return Object(L.h)(J,{key:0,defaultKey:"player"},(function(t){var s=e.renderOverlay(t,e.state.overlay);return Object(L.h)("div",{key:1,className:"player"==t?"player_visible _1nI1a":""},Object(L.h)(P,a({key:999999,audio:f,integrated:d,settings:r,stationId:e.state.station.id,hideMain:"player"!=t||e.state.collapse,onShowRegions:e._showRegions,onCastVote:e._onCastVote,streams:n,nowPlaying:o,recentlyPlayed:l,autoplay:u,station:i,mode:"tabbed",openLink:e._openLink,apiRoot:e.apiRoot,ariaHidden:!!s},g)),"player"==t&&Object(L.h)("div",{"aria-hidden":!!s,role:"region",className:"_mFF5w"},p&&Object(L.h)("button",{tabIndex:0,role:"button","aria-label":y(r,"Message The Studio"),title:y(r,"Message The Studio"),className:"_2WirX"+(_?" _1sj6N":""),onClick:e._onClickMessage},Object(L.h)("svg",{fill:"currentColor",role:"presentation",xmlns:"http://www.w3.org/2000/svg",class:"ionicon",viewBox:"0 0 32 32",width:"20px",height:"20px"},Object(L.h)("path",{d:"M 3 7 L 3 25 L 29 25 L 29 7 Z M 7.3125 9 L 24.6875 9 L 16 14.78125 Z M 5 9.875 L 11.75 14.375 L 5 19.09375 Z M 27 9.875 L 27 19.09375 L 20.25 14.375 Z M 13.5 15.5625 L 15.4375 16.84375 L 16 17.1875 L 16.5625 16.84375 L 18.5 15.5625 L 27 21.5 L 27 23 L 5 23 L 5 21.5 Z"})),Object(L.h)("span",null,y(r,["Message Us","Message The Studio"]))))||null,"player"==t&&e.state.streams&&e.state.streams[0]&&e.state.streams[0].provider&&Object(L.h)("div",{"aria-hidden":!!s,role:"region",className:"_3gLgk"},Object(L.h)("button",{tabIndex:0,role:"button","aria-label":y(r,["Listen to Live Radio","Live"]),title:y(r,["Listen to Live Radio","Live"]),className:"_2WirX"+(_?" _1sj6N":""),onClick:e._openLink.bind(e,void 0,void 0)},Object(L.h)("svg",{"aria-hidden":"true",role:"presentation",focusable:"false",width:"20px",height:"20px",class:"ionicon",style:"transform: rotate(360deg);",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 512 512"},Object(L.h)("circle",{cx:"256",cy:"256",r:"64",fill:"currentColor"}),Object(L.h)("path",{d:"M144 256c0-36.9 18.553-69.208 46.314-87.034l-23.141-24.512a131.623 131.623 0 0 0-17.684 15.663C125.314 185.729 112 219.781 112 256c0 36.219 13.314 70.271 37.49 95.883a131.615 131.615 0 0 0 17.684 15.662l23.141-24.511C162.553 325.208 144 292.9 144 256z",fill:"
1currentColor"}),Object(L.h)("path",{d:"M368 256c0 36.9-18.553 69.208-46.314 87.034l23.141 24.511a131.615 131.615 0 0 0 17.684-15.662C386.686 326.271 400 292.219 400 256c0-36.219-13.314-70.271-37.49-95.882a131.623 131.623 0 0 0-17.684-15.663l-23.141 24.512C349.447 186.792 368 219.1 368 256z",fill:"currentColor"}),Object(L.h)("path",{d:"M64 256c0-55.578 25.251-104.907 64.263-135.817L105.433 96a197.799 197.799 0 0 0-17.197 16.178c-17.622 18.669-31.462 40.417-41.134 64.641C37.081 201.917 32 228.556 32 256c0 27.443 5.081 54.084 15.102 79.181 9.672 24.226 23.512 45.973 41.134 64.642a198.105 198.105 0 0 0 17.197 16.178l22.829-24.183C89.251 360.907 64 311.578 64 256z",fill:"currentColor"}),Object(L.h)("path",{d:"M448 256c0 55.578-25.251 104.907-64.262 135.817l22.828 23.848c6-5.001 11.74-10.062 17.198-15.843 17.622-18.669 31.462-40.416 41.134-64.642C474.918 310.084 480 283.443 480 256c0-27.444-5.082-54.083-15.102-79.181-9.672-24.225-23.512-45.972-41.134-64.641A197.523 197.523 0 0 0 406.566 96l-22.829 24.183C422.749 151.093 448 200.422 448 256z",fill:"currentColor"}),Object(L.h)("rect",{x:"0",y:"0",width:"512",height:"512",fill:"rgba(0, 0, 0, 0)"})),Object(L.h)("span",null,y(r,["Go Live","Live"]))))||null,s)}),Object(L.h)(q,{key:"player",viewKey:"player",text:y(r,this.state.streams&&this.state.streams[0]&&this.state.streams[0].provider?"Player":"Live"),label:Object(L.h)("span",{className:"_v4whV"},Object(L.h)("svg",{"aria-hidden":"true",role:"presentation",focusable:"false",width:"1em",height:"1em",style:"-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 512 512"},Object(L.h)("circle",{cx:"256",cy:"256",r:"64",fill:"currentColor"}),Object(L.h)("path",{d:"M144 256c0-36.9 18.553-69.208 46.314-87.034l-23.141-24.512a131.623 131.623 0 0 0-17.684 15.663C125.314 185.729 112 219.781 112 256c0 36.219 13.314 70.271 37.49 95.883a131.615 131.615 0 0 0 17.684 15.662l23.141-24.511C162.553 325.208 144 292.9 144 256z",fill:"currentColor"}),Object(L.h)("path",{d:"M368 256c0 36.9-18.553 69.208-46.314 87.034l23.141 24.511a131.615 131.615 0 0 0 17.684-15.662C386.686 326.271 400 292.219 400 256c0-36.219-13.314-70.271-37.49-95.882a131.623 131.623 0 0 0-17.684-15.663l-23.141 24.512C349.447 186.792 368 219.1 368 256z",fill:"currentColor"}),Object(L.h)("path",{d:"M64 256c0-55.578 25.251-104.907 64.263-135.817L105.433 96a197.799 197.799 0 0 0-17.197 16.178c-17.622 18.669-31.462 40.417-41.134 64.641C37.081 201.917 32 228.556 32 256c0 27.443 5.081 54.084 15.102 79.181 9.672 24.226 23.512 45.973 41.134 64.642a198.105 198.105 0 0 0 17.197 16.178l22.829-24.183C89.251 360.907 64 311.578 64 256z",fill:"currentColor"}),Object(L.h)("path",{d:"M448 256c0 55.578-25.251 104.907-64.262 135.817l22.828 23.848c6-5.001 11.74-10.062 17.198-15.843 17.622-18.669 31.462-40.416 41.134-64.642C474.918 310.084 480 283.443 480 256c0-27.444-5.082-54.083-15.102-79.181-9.672-24.225-23.512-45.972-41.134-64.641A197.523 197.523 0 0 0 406.566 96l-22.829 24.183C422.749 151.093 448 200.422 448 256z",fill:"currentColor"}),Object(L.h)("rect",{x:"0",y:"0",width:"512",height:"512",fill:"rgba(0, 0, 0, 0)"})),Object(L.h)("span",null,y(r,this.state.streams&&this.state.streams[0]&&this.state.streams[0].provider?"Player":"Live"))),style:{marginTop:0,marginBottom:0,maxHeight:"100vh",height:"100vh"}}),r["player.schedule.enable"]&&Object(L.h)(q,{key:"schedule",viewKey:"schedule",text:y(r,"Schedule"),label:Object(L.h)("div",{className:"_v4whV"},Object(L.h)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{fill:"currentColor"},class:"ionicon",viewBox:"0 0 512 512","aria-hidden":"true",role:"presentation"},Object(L.h)("title",null,"Calendar"),Object(L.h)("rect",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32",x:"48",y:"80",width:"416",height:"384",rx:"48"}),Object(L.h)("circle",{cx:"296",cy:"232",r:"24"}),Object(L.h)("circle",{cx:"376",cy:"232",r:"24"}),Object(L.h)("circle",{cx:"296",cy:"312",r:"24"}),Object(L.h)("circle",{cx:"376",cy:"312",r:"24"}),Object(L.h)("circle",{cx:"136",cy:"312",r:"24"}),Object(L.h)("circle",{cx:"216",cy:"312",r:"24"}),Object(L.h)("circle",{cx:"136",cy:"392",r:"24"}),Object(L.h)("circle",{cx:"216",cy:"392",r:"24"}),Object(L.h)("circle",{cx:"296",cy:"392",r:"24"}),Object(L.h)("path",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32","stroke-linecap":"round",d:"M128 48v32M384 48v32"}),Object(L.h)("path",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32",d:"M464 160H48"})),Object(L.h)("span",null,y(r,"Schedule")))},Object(L.h)(z,{station:i,settings:r,schedule:s,mode:"schedule",noHeader:!0,scrollTo:this.scrollToAnchor,nowPlaying:o,openLink:this._openLink,autoplay:u,child:"schedule",apiRoot:this.apiRoot,scheduleComponent:v})),r["player.mixcloud.enable"]&&Object(L.h)(q,{key:"mixcloud",viewKey:"mixcloud",text:y(r,["Catch Up","On Demand"]),label:Object(L.h)("div",{className:"_v4whV"},Object(L.h)("svg",{focusable:"false",width:"1em",height:"1em",style:"-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},Object(L.h)("path",{d:"M13 16.493C13 18.427 14.573 20 16.507 20s3.507-1.573 3.507-3.507c0-.177-.027-.347-.053-.517H20V6h2V4h-3a1 1 0 0 0-1 1v8.333a3.465 3.465 0 0 0-1.493-.346A3.51 3.51 0 0 0 13 16.493zM2 5h14v2H2z",fill:"
1currentColor"}),Object(L.h)("path",{d:"M2 9h14v2H2zm0 4h9v2H2zm0 4h9v2H2z",fill:"currentColor"}),Object(L.h)("rect",{x:"0",y:"0",width:"24",height:"24",fill:"rgba(0, 0, 0, 0)"})),Object(L.h)("span",null,y(r,["Catch Up","On Demand"])))},Object(L.h)(z,{station:i,settings:r,schedule:s,mode:"schedule",noHeader:!0,scrollTo:this.scrollToAnchor,nowPlaying:o,openLink:this._openLink,autoplay:u,child:"on-demand",apiRoot:this.apiRoot,scheduleComponent:v})),r["player.history.enable"]&&Object(L.h)(q,{key:"recent",viewKey:"recent",text:y(r,["Recently Played Songs","Recent"]),label:Object(L.h)("div",{className:"_v4whV"},Object(L.h)("svg",{"aria-hidden":"true",role:"presentation",focusable:"false",width:"1em",height:"1em",style:"-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},Object(L.h)("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 5h-3v5.5a2.5 2.5 0 0 1-5 0a2.5 2.5 0 0 1 2.5-2.5c.57 0 1.08.19 1.5.51V5h4v2zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6z",fill:"currentColor"}),Object(L.h)("rect",{x:"0",y:"0",width:"24",height:"24",fill:"rgba(0, 0, 0, 0)"})),Object(L.h)("span",null,y(r,["Recent"])))},Object(L.h)(G,{station:i,nowPlaying:o,recentlyPlayed:l&&l.slice(0,m),onReload:this.updateEverything,onCastVote:this._onCastVote,settings:r,apiRoot:this.apiRoot})),r["player.requests.enable"]&&Object(L.h)(q,{key:"request",viewKey:"request",text:y(r,["Request Song","Requests"]),label:Object(L.h)("div",{className:"_v4whV"},Object(L.h)("svg",{"aria-hidden":"true",role:"presentation",focusable:"false",width:"1em",height:"1em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},Object(L.h)("path",{d:"M 7 3 L 7 9 L 7 15.203125 C 5.9059995 14.819168 4.6278471 15.097746 3.8007812 16 C 2.7007812 17.2 2.8 19.099219 4 20.199219 C 5.2 21.299219 7.0992188 21.2 8.1992188 20 C 8.5992188 19.6 8.8003906 19.1 8.9003906 18.5 C 8.9338942 18.332482 8.9320587 18.166108 8.9375 18 L 9 18 L 9 9 L 18 9 L 18 12.099609 C 18.7 11.999609 19.3 11.999609 20 12.099609 L 20 9 L 20 7 L 20 3 L 7 3 z M 19 14.025391 C 18.675 14.025391 18.35 14.049609 18 14.099609 C 17.1 14.299609 16.299609 14.700391 15.599609 15.400391 C 14.699609 16.200391 14.199609 17.3 14.099609 18.5 L 14.099609 19.099609 C 14.099609 21.899609 16.299609 24.099609 19.099609 24.099609 C 21.899609 24.099609 24.099609 21.899609 24.099609 19.099609 C 23.999609 16.599609 22.3 14.599609 20 14.099609 C 19.65 14.049609 19.325 14.025391 19 14.025391 z M 18 16 L 20 16 L 20 18 L 22 18 L 22 20 L 20 20 L 20 22 L 18 22 L 18 20 L 16 20 L 16 18 L 18 18 L 18 16 z",fill:"currentColor"})),Object(L.h)("span",null,y(r,["Requests"])))},Object(L.h)(X,{station:i,onReload:this.updateEverything,settings:r,apiRoot:this.apiRoot})));case"schedule":return Object(L.h)(z,{station:i,settings:r,schedule:s,mode:"schedule",noHeader:!!this.state.forceScheduleChild,scrollTo:this.scrollToAnchor,nowPlaying:o,openLink:this._openLink,autoplay:u,child:this.state.forceScheduleChild,apiRoot:this.apiRoot,scheduleComponent:v});
1case"recent":return Object(L.h)(G,{station:i,nowPlaying:o,recentlyPlayed:l,onReload:this.updateEverything,onCastVote:this._onCastVote,settings:r,apiRoot:this.apiRoot,embed:!0});case"requests":return Object(L.h)(X,{station:i,onReload:this.updateEverything,settings:r,apiRoot:this.apiRoot});case"embed":return Object(L.h)(L.Fragment,null,Object(L.h)(P,a({settings:r,audio:f,stationId:this.state.station.id,onShowRegions:this._showRegions,onCastVote:this._onCastVote,streams:n,integrated:d,nowPlaying:o,recentlyPlayed:l,seamless:!1,autoplay:u,station:i,mode:"embed",apiRoot:this.apiRoot,openLink:this._openLink,onInitialise:d?this._popup:void 0},g,this.props.playerProps||{})),this.renderOverlay(null,this.state.overlay));default:case void 0:break;case"expanding":case"expanding-b":case"seamless":if(!this.state.fullscreen)return Object(L.h)(L.Fragment,null,Object(L.h)(P,a({settings:r,key:0,audio:f,stationId:this.state.station.id,onShowRegions:this._showRegions,onCastVote:this._onCastVote,streams:n,integrated:d,nowPlaying:o,recentlyPlayed:l,seamless:!0,autoplay:u,onInitialise:c?this._popup:this.expand,hideButton:h,station:i,apiRoot:this.apiRoot,openLink:this._openLink},g)),this.renderOverlay(null,this.state.overlay));break;case"seamless-b":return[Object(L.h)(P,a({settings:r,key:0,onShowRegions:this._showRegions,onCastVote:this._onCastVote,stationId:this.state.station.id,audio:f,streams:n,integrated:d,nowPlaying:o,recentlyPlayed:l,autoplay:u,seamless:!this.state.fullscreen,mode:"seamless-b",onInitialise:this.expand,station:i,apiRoot:this.apiRoot,openLink:this._openLink},g)),this.state.fullscreen?Object(L.h)("div",{key:1,className:"_1tL1t"},Object(L.h)("button",{className:"_1cHSb",onClick:function(t){e.setState({fullscreen:!1}),t.preventDefault()}},"Back")):null,this.renderOverlay(null,this.state.overlay)]}return[Object(L.h)(P,a({settings:r,key:0,onShowRegions:this._showRegions,onCastVote:this._onCastVote,stationId:this.state.station.id,audio:f,maximized:!0,streams:n,integrated:d,nowPlaying:o,recentlyPlayed:l,autoplay:u,station:i,apiRoot:this.apiRoot,openLink:this._openLink},g)),Object(L.h)("div",{key:1,className:"_dVFsg styled-container"},Object(L.h)(z,{station:i,settings:r,schedule:s,scrollTo:this.scrollToAnchor,openLink:this._openLink,sendMessage:this._sendMessage,nowPlaying:o,apiRoot:this.apiRoot,scheduleComponent:v}),r["player.history.enable"]&&Object(L.h)(G,{station:i,positionRelative:!0,nowPlaying:o,recentlyPlayed:l,onReload:this.updateEverything,onCastVote:this._onCastVote,settings:r,apiRoot:this.apiRoot})),this.state.mode.startsWith("seamless")||this.state.mode.startsWith("expanding")?Object(L.h)("div",{key:2,className:"_1szxb"},Object(L.h)("button",{className:"_1cHSb",onClick:function(t){e.setState({fullscreen:!1}),t.preventDefault()}},"×")):null,this.renderOverlay(null,this.state.overlay)]},n.renderOverlay=function(e,t){var r=this,n=this.state,i=n.settings,a=n.station,s=n.schedule,o=n.nowPlaying,l=n.autoplay;switch(t){case"contact":return Object(L.h)("div",{className:"_CPfju styled-container"},Object(L.h)(z,{station:a,settings:i,schedule:s,mode:"schedule",noHeader:!0,scrollTo:this.scrollToAnchor,nowPlaying:o,openLink:this._closeOverlay,sendMessage:this._sendMessage,autoplay:l,child:"contact",apiRoot:this.apiRoot}));case"regions":var u=this.state.appData&&this.state.appData.allStations;if(u=u.filter((function(e){return e.streams&&e.streams.length&&e.streams.some((function(e){return"string"==typeof e||e.player_enabled}))})),this.state.settings["app.child_stations"]){var d=u;!(u=this.state.settings["app.child_stations"].map((function(e){return d.find((function(t){return t.id==e}))}))).length&&d.length&&(u=d)}return Object(L.h)("div",{className:"_CPfju _1t_UT styled-container"},Object(L.h)("div",{className:"_1Yu5l"},Object(L.h)("button",{className:"_1cHSb",onClick:function(){return r._closeOverlay()}},Object(L.h)("b",null,"×"))),Object(L.h)("div",{className:"_3ElAH"},Object(L.h)("div",{className:"_3x4yf"},u.filter(Boolean).map((function(e){var t,n=null==(t=r.state.settings["app.multi_station_label"])||t,i=n?e.options["player.logo_override"]||e.options["style.logo"]:e.options["style.app-icon"]||e.options["style.logo"];return Object(L.h)("div",{className:"_3vtBV",title:e.name,onClick:r._useLocation.bind(r,e)},Object(L.h)("div",{className:"_ASaO6"+(n?" _8fHiL":"")},Object(L.h)("img",{alt:e.name,src:i&&r.apiRoot+w(i)||""})),n?Object(L.h)("b",null,e.name):null)})))));default:return null}},(r=[{key:"apiRoot",get:function(){return this.state.apiRoot||this.props.apiRoot||$}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(L.Component);t.a=ee}).call(this,r("hosL").h)},"/B1x":function(e,t,r){"use strict";function n(e,t,r){switch(r){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}r.r(t);var i=r("Q/DC");t.default=i.default.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш
1] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})},"0FXm":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"1DNC":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})},"1JUL":function(e,t,r){"use strict";function n(e,t,r){var n=" ";return(e%100>=20||e>=100&&e%100==0)&&(n=" de "),e+n+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[r]}r.r(t);var i=r("Q/DC");t.default=i.default.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:n,m:"un minut",mm:n,h:"o oră",hh:n,d:"o zi",dd:n,M:"o lună",MM:n,y:"un an",yy:n},week:{dow:1,doy:7}})},"1KeI":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀n
1à_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})},"20JA":function(e,t,r){"use strict";(function(e){var n=r("hosL"),i=r("+sWD"),a=(r("Q/DC"),"undefined"!=typeof window?window:e),s=0;t.a=function(e){var t=e.data,r=e.currentUrl;return Object(n.h)(n.Fragment,{key:"player"},t&&t.rendered&&t.filteredOptions&&Object(n.h)("div",{class:"br-player-main"},s++?Object(n.h)(i.a,{autoplay:!0,integrated:"fullPage",apiRoot:a.APIROOT,scheduleComponent:!1,mode:t.filteredOptions["player.defaults.mode"],stationId:t.rendered.stationId,search:new URL(r||"","http://null").search,audio:a.__playerAudio,key:!!s,playerProps:{onInitialise:function(){return!0}},x:!0}):Object(n.h)("div",null)))}}).call(this,r("pCvA"))},"2DI3":function(e,t,r){"use strict";function n(e,t,r){return e+" "+function(e,t){if(2===t)return function(e){var t={m:"v",b:"v",d:"z"};if(void 0===t[e.charAt(0)])return e;return t[e.charAt(0)]+e.substring(1)}(e);return e}({mm:"munutenn",MM:"miz",dd:"devezh"}[r],e)}r.r(t);var i=r("Q/DC"),a=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],s=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,o=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];t.default=i.default.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:o,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:o,monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:n,h:"un eur",hh:"%d eur",d:"un devezh",dd:n,M:"ur miz",MM:n,y:"ur bloaz",yy:function(e){switch(function e(t){if(t>9)return e(t%10);return t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e){return e<12?"a.m.":"g.m."}})},"2r41":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),a="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");t.default=n.default.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?a[e.month()]:i[e.month()]:i},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})},"3mDr":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})},"4l5I":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,a=[/^j
vendor: 4,065 bytes, line 1
1anv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];t.default=n.default.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,monthsShortStrictRegex:/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})},"4xMu":function(e,t,r){"use strict";function n(e,t,r,n){var i={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return n?i[r][0]:i[r][1]}r.r(t);var i=r("Q/DC");t.default=i.default.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"}
1,calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){switch(t){case"D":return e+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}})},"5IsQ":function(e){function t(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function n(e){if(l===setTimeout)return setTimeout(e,0);if((l===t||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function i(){f&&c&&(f=!1,c.length?h=c.concat(h):m=-1,h.length&&a())}function a(){if(!f){var e=n(i);f=!0;for(var t=h.length;t;){for(c=h,h=[];++m<t;)c&&c[m].run();m=-1,t=h.length}c=null,f=!1,function(e){if(u===clearTimeout)return clearTimeout(e);if((u===r||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(e);try{u(e)}catch(t){try{return u.call(null,e)}catch(t){return u.call(this,e)}}}(e)}}function s(e,t){this.fun=e,this.array=t}function o(){}var l,u,d=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:t}catch(e){l=t}try{u="function"==typeof clearTimeout?clearTimeout:r}catch(e){u=r}}();var c,h=[],f=!1,m=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new s(e,t)),1!==h.length||f||n(a)},s.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=o,d.addListener=o,d.once=o,d.off=o,d.removeListener=o,d.removeAllListeners=o,d.emit=o,d.prependListener=o,d.prependOnceListener=o,d.listeners=function(){return[]},d.binding=function(){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},"5TAi":function(e,t,r){"use strict";function n(e,t,r,n){var i={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return n?i[r][0]:i[r][1]}r.r(t);var i=r("Q/DC");t.default=i.default.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0}
1,meridiem:function(e){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})},"5rvi":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,r){return e>11?r?"ප.ව.":"පස් වරු":r?"පෙ.ව.":"පෙර වරු"}})},"60sP":function(module,exports,__webpack_require__){"use strict";var timeago=function timeago(){var o={second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6},obj={ago:function(e,t){var r,n=Math.round,i=" ago",a=function(e,r){return void 0===t?r+" "+e+(r>1?"s":"")+i:r+e.substring(0,1)},s=Date.now()-new Date(e).getTime();for(var l in s<0&&(s*=-1,i=" from now"),o){if(n(s)<o[l])return a(r||"m",n(s/(o[r]||1)));r=l}return a(l,n(s/o[l]))},today:function(){var e=new Date,t=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"),r=new Array("January","February","March","April","May","June","July","August","September","October","November","December");return t[e.getDay()]+", "+r[e.getMonth()]+" "+e.getDate()+", "+e.getFullYear()},timefriendly:function(s){var t=s.match(/(\d).([a-z]*?)s?$/);return t[1]*eval(o[t[2]])},mintoread:function(e,t,r){return(Math.round(e.split(" ").length/(r||200))||"< 1")+(t||" min to read")}};return obj};module.exports&&(module.exports=timeago())},"66bL":function(e,t,r){"use strict";function n(e,t,r,n){var i={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return n||t?i[r][0]:i[r][1]}r.r(t);var i=r("Q/DC");t.default=i.default.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,r){return e>11?r?"d'o":"D'O":r?"d'a":"D'A"}
1,calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"66xG":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),a="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.default=n.default.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?a[e.month()]:i[e.month()]:i},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})},"6gdt":function(e,t,r){"use strict";function n(e,t,r){var n={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?n[r][0]:n[r][1]}r.r(t);var i=r("Q/DC");t.default=i.default.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"6lK2":function(e,t,r){"use strict";var n=r("TFld"),i=Array.prototype.concat,a=Array.prototype.slice,s=e.exports=function(e){for(var t=[],r=0,s=e.length;r<s;r++){var o=e[r];n(o)?t=i.call(t,a.call(o)):t.push(o)}return t};s.wrap=function(e){return function(){return e(s(arguments))}}},"7D/J":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",
1ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})},"7KA8":function(e,t,r){"use strict";function n(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=r("hosL"),o=r("l8WD"),l=function(){function e(){}return e.clean=function(){e.plugins=[]},e.register=function(t){if(e.plugins.includes(t))return!1;e.plugins.push(t)},e.get=function(t){return e.plugins.find((function(e){return e.id==t}))},e}();a(l,"plugins",[]),a(l,"consumer",function(){function e(){}return e.collectBlocks=function(){for(var e,t=[],r=n(l.plugins);!(e=r()).done;){var i=e.value;if(i.blocks)for(var a,s=n(i.blocks);!(a=s()).done;){t.push(a.value)}}return t},e.getBlock=function(e){return this.collectBlocks().find((function(t){var r;return t.name==e||(null==(r=t.alias)?void 0:r.includes(e))}))},e.getComponent=function(e){var t=this.getBlock(e);return t&&t.component},e.runHook=function(e,t){for(var r,i=[],a=n(l.plugins);!(r=a()).done;){var s=r.value;s.hooks&&s.hooks[e]&&i.push(s.hooks[e](t))}return i},e.runHookAndCollect=function(e,t){return this.runHook(e,t).join("")},e.runHookOnReference=function(e,t){return this.runHook(e,t),t},e}());var u="undefined"!=typeof window?window:globalThis;u.require=function(e){switch(console.log("req test",e),e){case"preact":return s;case"react":return o}return u.externals[e]},u.h=s.h,u.PluginManager=l},"7VNv":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%
1d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var r=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(r="a"),e+r},week:{dow:1,doy:4}})},"7hkg":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})},"7kpk":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~út
1é",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})},"82Vv":function(e,t,r){var n=r("eMCs"),i=r("8LDc");"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var a={insert:"head",singleton:!1};n(i,a);e.exports=i.locals||{}},"835Y":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})},"89iQ":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})},"8K9R":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}
vendor: 5,421 bytes, line 1
1,"8LDc":function(e,t,r){(t=r("Ai0b")(!1)).push([e.i,"",""]),e.exports=t},"8bte":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})},"8fO9":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},a={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},s=function(e){return function(t,r){var n=i(t),s=a[e][i(t)];return 2===n&&(s=s[r?0:1]),s.replace(/%d/i,t)}},o=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.default=n.default.defineLocale("ar-dz",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:s("s"),ss:s("s"),m:s("m"),mm:s("m"),h:s("h"),hh:s("h"),d:s("d"),dd:s("d"),M:s("M"),MM:s("M"),y:s("y"),yy:s("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})},"8qDa":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%
1d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})},"8wt6":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})},Ai0b:function(e){"use strict";function t(e,t){var r,n,i=e[1]||"",a=e[3];if(!a)return i;if(t&&"function"==typeof btoa){var s=(r=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(n," */")),o=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[i].concat(o).concat([s]).join("\n")}return[i].join("\n")}e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var n=t(r,e);return r[2]?"@media ".concat(r[2]," {").concat(n,"}"):n})).join("")},r.i=function(e,t,n){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(n)for(var a=0;a<this.length;a++){var s=this[a][0];null!=s&&(i[s]=!0)}for(var o=0;o<e.length;o++){var l=[].concat(e[o]);n&&i[l[0]]||(t&&(l[2]=l[2]?"".concat(t," and ").concat(l[2]):t),r.push(l))}},r}},AyEX:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},a={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};t.default=n.default.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return a[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return i[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})},BHUR:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,t,r){var n=i.words[r];return 1===r.length?t?n[0]:n[1]:e+" "+i.correctGrammaticalCase(e,n)}};t.default=n.default.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:"dan",dd:i.translate,M:"mesec",MM:i.translate,y:"godinu",yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})},BYi5:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},a={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};t.default=n.default.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return a[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return i[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>
vendor: 12,406 bytes, line 1
1=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})},C2iA:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,r){return"ი"===r?t+"ში":t+r+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})},C9Mo:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,r){return e>11?r?"p.t.m.":"P.T.M.":r?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})},D1pq:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,t,r){var n=i.words[r];return 1===r.length?t?n[0]:n[1]:e+" "+i.correctGrammaticalCase(e,n)}};t.default=n.default.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:"dan",dd:i.translate,M:"mjesec",MM:i.translate,y:"godinu",yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})},DImR:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),a="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),s=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.default=n.default.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?a[e.month()]:i[e.month()]:i},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})},"Dgb/":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],a=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];t.default=n.default.defineLocale("sd",{months:i,monthsShort:i,weekdays:a,weekdaysShort:a,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})},DmzJ:function(e,t,r){"use strict";function n(e,t,r){var n={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?n[r][0]:n[r][1]}r.r(t);var i=r("Q/DC");t.default=i.default.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},Ds9W:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})},"DyU+":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t){var r=100*e+t;
1return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})},"E/xU":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})},E02R:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},EE4q:function(e){e.exports={"page-header":"page-header__2g6o1","page-header-default":"page-header-default__1a4pi","site-logo":"site-logo__cF_X4","page-header-hidden":"page-header-hidden__8gD2L","header-listen":"header-listen__2gZ1Y","page-footer":"page-footer__KShCO","header-main":"header-main__2oMXZ","social-icon-container":"social-icon-container__3QEqM","social-block-col":"social-block-col__2rT9O","page-head-contain":"page-head-contain__2qbow","player-top-small":"player-top-small__Tjzc9","footer-logo":"footer-logo__yjmqO","icon-button":"icon-button__jPd0h","footer-links":"footer-links__2yjhU","app-block-contain":"app-block-contain__23UNX"}},ESyC:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})},Eo1k:function(e,t,r){"use strict";(function(e){var n=r("hosL"),i=r("+sWD"),a=(r("FpZq"),r("Q/DC"),"undefined"!=typeof window?window:e),s=function(e,t,r,n){if(e){var i=e.split(":"),a=i[0],s=i[1],o=i[2],l=i[3],u=void 0===l?"":l,d=i[4],c=void 0===d?"":d,h=i[5],f=void 0===h?"":h;isNaN(t||void 0)||(u=t),""!=u&&(u="&w="+u);var m=a.split("/").pop();return isNaN(r||void 0)||(c=r),""!=c&&parseInt(c)&&(c="&h="+parseInt(c)),""==f&&!n&&u&&c&&(f="&c=true"),"/api/image/"+s+"."+m+"?g="+o+u+c+f}};t.a=function(e){var t=e.data,r=e.theme;return Object(n.h)(n.Fragment,{key:"default-page"},t&&t.rendered&&t.filteredOptions&&Object(n.h)("div",{key:"page-player",className:"br-player-solo-contain br-player-main styled-container "+Date.now()},Object(n.h)("div",{className:"br-player-solo"},Object(n.h)("div",{className:"br-player-text"},Object(n.h)("div",{className:"br-player-logo"},Object(n.h)("img",{src:"https://api.broadcast.radio"+s(t.filteredOptions["player.logo_override"]||t.filteredOptions["style.logo"],1e3,1e3,!0)})),r&&r["site.description"]&&Object(n.h)("div",{className:"site-text-contain"},(r["site.description"].rendered.bodyText||"").split("\n").map((function(e){return Object(n.h)("p",{className:"styled-text"},e)}
1)))),Object(n.h)("div",{class:"br-player-body br-player-main"},Object(n.h)(i.a,{autoplay:!1,integrated:!0,mode:"embed",stationId:t.entry.stationId||t.rendered.stationId,audio:a.__playerAudio,forceConfig:{"player.artwork.disableBG":!1},noAudio:!0,playerProps:{disableBG:!0,mode:"embed",onInitialise:function(e){return function(e,t){if(t.entry.stationId>0)return e&&route("/listen")||!0;if(!window.popupPlayer){var r=t.filteredOptions&&t.filteredOptions["player.defaults.size"],n="https://player.broadcast.radio/?autoplay=1&stationId="+t.rendered.stationId;e&&e.preventDefault();var i="site"!=t.filteredOptions["player.defaults.mode"];if(i=i&&window.innerWidth>400)window.open(n,"_blank",String(r[0]).indexOf("%")>=0?"scrollbars=yes":"width="+r[0]+",height="+r[1]+",scrollbars=yes")||(window.location=n);else window.location=n;return!1}}(e,t)},disableLogo:!0,hideMain:!1,seamless:!0},x:!0}),a&&a.__playerAudio&&(a.__playerAudio.muted=!0))))||null)}}).call(this,r("pCvA"))},FC41:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),a="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.default=n.default.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?a[e.month()]:i[e.month()]:i},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})},FcxU:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%
1d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})},FpZq:function(){},"G8+F":function(e,t,r){"use strict";function n(e,t){for(var r in t)e[r]=t[r];return e}function i(e,t,r){var n,i=/(?:\?([^#]*))?(#.*)?$/,a=e.match(i),s={};if(a&&a[1])for(var l=a[1].split("&"),d=0;d<l.length;d++){var c=l[d].split("=");s[decodeURIComponent(c[0])]=decodeURIComponent(c.slice(1).join("="))}e=o(e.replace(i,"")),t=o(t||"");for(var h=Math.max(e.length,t.length),f=0;f<h;f++)if(t[f]&&":"===t[f].charAt(0)){var m=t[f].replace(/(^:|[+*?]+$)/g,""),p=(t[f].match(/[+*?]+$/)||u)[0]||"",g=~p.indexOf("+"),_=~p.indexOf("*"),v=e[f]||"";if(!v&&!_&&(p.indexOf("?")<0||g)){n=!1;break}if(s[m]=decodeURIComponent(v),g||_){s[m]=e.slice(f).map(decodeURIComponent).join("/");break}}else if(t[f]!==e[f]){n=!1;break}return(!0===r.default||!1!==n)&&s}function a(e,t){return e.rank<t.rank?1:e.rank>t.rank?-1:e.index-t.index}function s(e,t){return e.index=t,e.rank=function(e){return e.props.default?0:(t=e.props.path,o(t).map(l).join(""));var t}(e),e.props}function o(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")}function l(e){return":"==e.charAt(0)?1+"*+?".indexOf(e.charAt(e.length-1))||4:5}r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return a})),r.d(t,"d",(function(){return s}));var u={}},GFNa:function(){},Gisj:function(e,t,r){"use strict";(function(e){r("l8WD");var n={facebook:{meta:{title:"Facebook",hex:"0866FF",source:"https://about.meta.com/brand/resources/facebook/logo",guidelines:"https://about.meta.com/brand/resources/facebook/logo",share:"https://www.facebook.com/sharer/sharer.php?u=%"},svg:e("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("title",null,"Facebook"),e("path",{d:"M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z"}))},instagram:{meta:{title:"Instagram",hex:"FF0069",source:"https://about.meta.com/brand/resources/instagram",guidelines:"https://about.meta.com/brand/resources/instagram"},svg:e("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("title",null,"Instagram"),e("path",{d:"M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077"}))},x:{meta:{title:"X",hex:"000000",source:"https://x.com",guidelines:"https://about.x.com/en/who-we-are/brand-toolkit",aliases:{aka:["Twitter"]},share:"https://twitter.com/intent/tweet?url=%"},svg:e("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("title",null,"X"),e("path",{d:"M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z"}))},tiktok:{meta:{title:"TikTok",hex:"000000",source:"https://tiktok.com"},svg:e("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("title",null,"TikTok"),e("path",{d:"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08
1-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"}))},mixcloud:{meta:{title:"Mixcloud",hex:"5000FF",source:"https://www.mixcloud.com/about",guidelines:"https://www.mixcloud.com/about"},svg:e("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("title",null,"Mixcloud"),e("path",{d:"M2.462 8.596l1.372 6.49h.319l1.372-6.49h2.462v6.808H6.742v-5.68l.232-.81h-.402l-1.43 6.49H2.854l-1.44-6.49h-.391l.222.81v5.68H0V8.596zM24 8.63v1.429L21.257 12 24 13.941v1.43l-3.235-2.329h-.348l-3.226 2.329v-1.43l2.734-1.94-2.733-1.942V8.63l3.225 2.338h.348zm-7.869 2.75v1.24H9.304v-1.24z"}))},spotify:{meta:{title:"Spotify",hex:"1ED760",source:"https://developer.spotify.com/documentation/general/design-and-branding/#using-our-logo",guidelines:"https://developer.spotify.com/documentation/general/design-and-branding/#using-our-logo"},svg:e("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("title",null,"Spotify"),e("path",{d:"M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.419 1.56-.299.421-1.02.599-1.559.3z"}))},github:{meta:{title:"GitHub",hex:"181717",source:"https://github.com/logos",guidelines:"https://github.com/logos"},svg:e("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("title",null,"GitHub"),e("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"}))},mastodon:{meta:{title:"Mastodon",hex:"6364FF",source:"https://github.com/mastodon/mastodon/blob/7ccf7a73f1c47a8c03712c39f7c591e837cf6d08/app/javascript/images/logo-symbol-icon.svg",guidelines:"https://joinmastodon.org/branding"},svg:e("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("title",null,"Mastodon"),e("path",{d:"M23.268 5.313c-.35-2.578-2.617-4.61-5.304-5.004C17.51.242 15.792 0 11.813 0h-.03c-3.98 0-4.835.242-5.288.309C3.882.692 1.496 2.518.917 5.127.64 6.412.61 7.837.661 9.143c.074 1.874.088 3.745.26 5.611.118 1.24.325 2.47.62 3.68.55 2.237 2.777 4.098 4.96 4.857 2.336.792 4.849.923 7.256.38.265-.061.527-.132.786-.213.585-.184 1.27-.39 1.774-.753a.057.057 0 0 0 .023-.043v-1.809a.052.052 0 0 0-.02-.041.053.053 0 0 0-.046-.01 20.282 20.282 0 0 1-4.709.545c-2.73 0-3.463-1.284-3.674-1.818a5.593 5.593 0 0 1-.319-1.433.053.053 0 0 1 .066-.054c1.517.363 3.072.546 4.632.546.376 0 .75 0 1.125-.01 1.57-.044 3.224-.124 4.768-.422.038-.008.077-.015.11-.024 2.435-.464 4.753-1.92 4.989-5.604.008-.145.03-1.52.03-1.67.002-.512.167-3.63-.024-5.545zm-3.748 9.195h-2.561V8.29c0-1.309-.55-1.976-1.67-1.976-1.23 0-1.846.79-1.846 2.35v3.403h-2.546V8.663c0-1.56-.617-2.35-1.848-2.35-1.112 0-1.668.668-1.67 1.977v6.218H4.822V8.102c0-1.31.337-2.35 1.011-3.12.696-.77 1.608-1.164 2.74-1.164 1.311 0 2.302.5 2.962 1.498l.638 1.06.638-1.06c.66-.999 1.65-1.498 2.96-1.498 1.13 0 2.043.395 2.74 1.164.675.77 1.012 1.81 1.012 3.12z"}))},bluesky:{meta:{title:"Bluesky",hex:"1185FE",source:"https://bsky.social/about/blog/press-faq",guidelines:"https://bsky.social/about/blog/press-faq",aliases:{aka:["bsky"]}},svg:e("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("title",null,"Bluesky"),e("path",{d:"M5.202 2.857C7.954 4.922 10.913 9.11 12 11.358c1.087-2.247 4.046-6.436 6.798-8.501C20.783 1.366 24 .213 24 3.883c0 .732-.42 6.156-.66
17 7.037-.856 3.061-3.978 3.842-6.755 3.37 4.854.826 6.089 3.562 3.422 6.299-5.065 5.196-7.28-1.304-7.847-2.97-.104-.305-.152-.448-.153-.327 0-.121-.05.022-.153.327-.568 1.666-2.782 8.166-7.847 2.97-2.667-2.737-1.432-5.473 3.422-6.3-2.777.473-5.899-.308-6.755-3.369C.42 10.04 0 4.615 0 3.883c0-3.67 3.217-2.517 5.202-1.026"}))},whatsapp:{meta:{title:"WhatsApp",hex:"25D366",source:"https://about.meta.com/brand/resources/whatsapp/whatsapp-brand",guidelines:"https://about.meta.com/brand/resources/whatsapp/whatsapp-brand"},svg:e("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("title",null,"WhatsApp"),e("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"}))},youtube:{meta:{title:"YouTube",hex:"FF0000",source:"https://www.youtube.com/howyoutubeworks/resources/brand-resources/#logos-icons-and-colors",guidelines:"https://www.youtube.com/howyoutubeworks/resources/brand-resources/#logos-icons-and-colors"},svg:e("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("title",null,"YouTube"),e("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"}))},beatport:{meta:{title:"Beatport",hex:"01FF95",source:"https://www.beatport.com",guidelines:"https://support.beatport.com/hc/en-us/articles/4412316336404-Beatport-Logos-and-Images"},svg:e("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("title",null,"Beatport"),e("path",{d:"M21.429 17.055a7.114 7.114 0 0 1-.794 3.246 6.917 6.917 0 0 1-2.181 2.492 6.698 6.698 0 0 1-3.063 1.163 6.653 6.653 0 0 1-3.239-.434 6.796 6.796 0 0 1-2.668-1.932 7.03 7.03 0 0 1-1.481-2.983 7.124 7.124 0 0 1 .049-3.345 7.015 7.015 0 0 1 1.566-2.937l-4.626 4.73-2.421-2.479 5.201-5.265a3.791 3.791 0 0 0 1.066-2.675V0h3.41v6.613a7.172 7.172 0 0 1-.519 2.794 7.02 7.02 0 0 1-1.559 2.353l-.153.156a6.768 6.768 0 0 1 3.49-1.725 6.687 6.687 0 0 1 3.845.5 6.873 6.873 0 0 1 2.959 2.564 7.118 7.118 0 0 1 1.118 3.8Zm-3.089 0a3.89 3.89 0 0 0-.611-2.133 3.752 3.752 0 0 0-1.666-1.424 3.65 3.65 0 0 0-2.158-.233 3.704 3.704 0 0 0-1.92 1.037 3.852 3.852 0 0 0-1.031 1.955 3.908 3.908 0 0 0 .205 2.213c.282.7.76 1.299 1.374 1.721a3.672 3.672 0 0 0 2.076.647 3.637 3.637 0 0 0 2.635-1.096c.347-.351.622-.77.81-1.231.188-.461.285-.956.286-1.456Z"}))},soundcloud:{meta:{title:"SoundCloud",hex:"FF5500",source:"https://press.soundcloud.com"},svg:e("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("title",null,"SoundCloud"),e("path",{d:"M23.999 14.165c-.052 1.796-1.612 3.169-3.4 3.169h-8.18a.68.68 0 0 1-.675-.683V7.862a.747.747 0 0 1 .452-.724s.75-.513 2.333-.513a5.364 5.364 0 0 1 2.763.755 5.433 5.433 0 0 1 2.57 3.54c.282-.08.574-.121.868-.12.884 0 1.73.358 2.347.992s.948 1.49.922 2.373ZM10.721 8.421c.247 2.98.427 5.697 0 8.672a.264.264 0 0 1-.53 0c-.395-2.946-.22-5.718 0-8.672a.264.264 0 0 1 .53 0ZM9.072 9.448c.285 2.659.37 4.986-.006 7.655a.277.277 0 0 1-.55 0c-.331-2.63-.256-5.02 0-7.655a.277.277 0 0 1 .556 0Zm-1.663-.257c.27 2.726.39 5.171 0 7.904a.266.266 0 0 1-.532 0c-.38-2.69-.257-5.21 0-7.904a.266.266 0 0 1 .532 0Zm-1.647.77a26.108 26.108 0 0 1-.008 7.147.272.272 0 0 1-.542 0 27.955 27.955 0 0 1 0-7.147.275.275 0 0 1 .55 0Zm-1.67 1.769c.421 1.865.228 3.5-.029 5.388a.257.257 0 0 1-.514 0c-.21-1.858-.398-3.549 0-5.389a.272.272 0 0 1 .543 0Zm-1.655-.273c.388 1.897.26 3.508-.01 5.412-.026.28-.514.283-.54 0-.244-1.878-.347-3.54-.01-5.412a.283.283 0 0 1 .56 0Zm-1.668.911c.4 1.268.257 2.292-.026 3.572a.257.257 0 0 1-.514 0c-.241-1.262-.354-2.312-.023-3.572a.283.283 0 0 1 .563 0Z"}))},discord:{meta:{title:"Discord",hex:"5865F2",source:"https://discord.com/branding",guidelines:"https://discord.com/branding"},svg:e("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("title",null,"Discord"),e("path",{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 
10 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"}))},telegram:{meta:{title:"Telegram",hex:"26A5E4",source:"https://telegram.org/tour/screenshots",share:"https://telegram.me/share/url?url=%"},svg:e("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("title",null,"Telegram"),e("path",{d:"M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"}))},reddit:{meta:{title:"Reddit",hex:"FF4500",source:"https://www.redditinc.com/brand",guidelines:"https://www.redditinc.com/brand",share:"https://reddit.com/submit?url=%"},svg:e("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("title",null,"Reddit"),e("path",{d:"M12 0C5.373 0 0 5.373 0 12c0 3.314 1.343 6.314 3.515 8.485l-2.286 2.286C.775 23.225 1.097 24 1.738 24H12c6.627 0 12-5.373 12-12S18.627 0 12 0Zm4.388 3.199c1.104 0 1.999.895 1.999 1.999 0 1.105-.895 2-1.999 2-.946 0-1.739-.657-1.947-1.539v.002c-1.147.162-2.032 1.15-2.032 2.341v.007c1.776.067 3.4.567 4.686 1.363.473-.363 1.064-.58 1.707-.58 1.547 0 2.802 1.254 2.802 2.802 0 1.117-.655 2.081-1.601 2.531-.088 3.256-3.637 5.876-7.997 5.876-4.361 0-7.905-2.617-7.998-5.87-.954-.447-1.614-1.415-1.614-2.538 0-1.548 1.255-2.802 2.803-2.802.645 0 1.239.218 1.712.585 1.275-.79 2.881-1.291 4.64-1.365v-.01c0-1.663 1.263-3.034 2.88-3.207.188-.911.993-1.595 1.959-1.595Zm-8.085 8.376c-.784 0-1.459.78-1.506 1.797-.047 1.016.64 1.429 1.426 1.429.786 0 1.371-.369 1.418-1.385.047-1.017-.553-1.841-1.338-1.841Zm7.406 0c-.786 0-1.385.824-1.338 1.841.047 1.017.634 1.385 1.418 1.385.785 0 1.473-.413 1.426-1.429-.046-1.017-.721-1.797-1.506-1.797Zm-3.703 4.013c-.974 0-1.907.048-2.77.135-.147.015-.241.168-.183.305.483 1.154 1.622 1.964 2.953 1.964 1.33 0 2.47-.81 2.953-1.964.057-.137-.037-.29-.184-.305-.863-.087-1.795-.135-2.769-.135Z"}))},lastdotfm:{meta:{title:"Last.fm",hex:"D51007",source:"https://commons.wikimedia.org/wiki/File:Lastfm_logo.svg"},svg:e("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("title",null,"Last.fm"),e("path",{d:"M10.584 17.21l-.88-2.392s-1.43 1.594-3.573 1.594c-1.897 0-3.244-1.649-3.244-4.288 0-3.382 1.704-4.591 3.381-4.591 2.42 0 3.189 1.567 3.849 3.574l.88 2.749c.88 2.666 2.529 4.81 7.285 4.81 3.409 0 5.718-1.044 5.718-3.793 0-2.227-1.265-3.381-3.63-3.931l-1.758-.385c-1.21-.275-1.567-.77-1.567-1.595 0-.934.742-1.484 1.952-1.484 1.32 0 2.034.495 2.144 1.677l2.749-.33c-.22-2.474-1.924-3.492-4.729-3.492-2.474 0-4.893.935-4.893 3.932 0 1.87.907 3.051 3.189 3.601l1.87.44c1.402.33 1.869.907 1.869 1.704 0 1.017-.99 1.43-2.86 1.43-2.776 0-3.93-1.457-4.59-3.464l-.907-2.75c-1.155-3.573
1-2.997-4.893-6.653-4.893C2.144 5.333 0 7.89 0 12.233c0 4.18 2.144 6.434 5.993 6.434 3.106 0 4.591-1.457 4.591-1.457z"}))},snapchat:{meta:{title:"Snapchat",hex:"FFFC00",source:"https://www.snapchat.com/brand-guidelines",guidelines:"https://www.snapchat.com/brand-guidelines"},svg:e("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("title",null,"Snapchat"),e("path",{d:"M12.206.793c.99 0 4.347.276 5.93 3.821.529 1.193.403 3.219.299 4.847l-.003.06c-.012.18-.022.345-.03.51.075.045.203.09.401.09.3-.016.659-.12 1.033-.301.165-.088.344-.104.464-.104.182 0 .359.029.509.09.45.149.734.479.734.838.015.449-.39.839-1.213 1.168-.089.029-.209.075-.344.119-.45.135-1.139.36-1.333.81-.09.224-.061.524.12.868l.015.015c.06.136 1.526 3.475 4.791 4.014.255.044.435.27.42.509 0 .075-.015.149-.045.225-.24.569-1.273.988-3.146 1.271-.059.091-.12.375-.164.57-.029.179-.074.36-.134.553-.076.271-.27.405-.555.405h-.03c-.135 0-.313-.031-.538-.074-.36-.075-.765-.135-1.273-.135-.3 0-.599.015-.913.074-.6.104-1.123.464-1.723.884-.853.599-1.826 1.288-3.294 1.288-.06 0-.119-.015-.18-.015h-.149c-1.468 0-2.427-.675-3.279-1.288-.599-.42-1.107-.779-1.707-.884-.314-.045-.629-.074-.928-.074-.54 0-.958.089-1.272.149-.211.043-.391.074-.54.074-.374 0-.523-.224-.583-.42-.061-.192-.09-.389-.135-.567-.046-.181-.105-.494-.166-.57-1.918-.222-2.95-.642-3.189-1.226-.031-.063-.052-.15-.055-.225-.015-.243.165-.465.42-.509 3.264-.54 4.73-3.879 4.791-4.02l.016-.029c.18-.345.224-.645.119-.869-.195-.434-.884-.658-1.332-.809-.121-.029-.24-.074-.346-.119-1.107-.435-1.257-.93-1.197-1.273.09-.479.674-.793 1.168-.793.146 0 .27.029.383.074.42.194.789.3 1.104.3.234 0 .384-.06.465-.105l-.046-.569c-.098-1.626-.225-3.651.307-4.837C7.392 1.077 10.739.807 11.727.807l.419-.015h.06z"}))}
1,app_store:{meta:{title:"App Store"},svg:e("svg",{"enable-background":"new 0 0 135 40",viewBox:"0 0 135 40",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M130.197,40H4.729C2.122,40,0,37.872,0,35.267V4.726C0,2.12,2.122,0,4.729,0h125.468 C132.803,0,135,2.12,135,4.726v30.541C135,37.872,132.803,40,130.197,40L130.197,40z",fill:"#A6A6A6"}),e("path",{d:"m134.03 35.268c0 2.116-1.714 3.83-3.834 3.83h-125.47c-2.119 0-3.839-1.714-3.839-3.83v-30.543c0-2.115 1.72-3.835 3.839-3.835h125.47c2.121 0 3.834 1.72 3.834 3.835l1e-3 30.543z"}),e("g",{fill:"#fff"},e("path",{d:"m30.128 19.784c-0.029-3.223 2.639-4.791 2.761-4.864-1.511-2.203-3.853-2.504-4.676-2.528-1.967-0.207-3.875 1.177-4.877 1.177-1.022 0-2.565-1.157-4.228-1.123-2.14 0.033-4.142 1.272-5.24 3.196-2.266 3.923-0.576 9.688 1.595 12.859 1.086 1.553 2.355 3.287 4.016 3.226 1.625-0.067 2.232-1.036 4.193-1.036 1.943 0 2.513 1.036 4.207 0.997 1.744-0.028 2.842-1.56 3.89-3.127 1.255-1.78 1.759-3.533 1.779-3.623-0.041-0.014-3.387-1.291-3.42-5.154z"}),e("path",{d:"m26.928 10.306c0.874-1.093 1.472-2.58 1.306-4.089-1.265 0.056-2.847 0.875-3.758 1.944-0.806 0.942-1.526 2.486-1.34 3.938 1.421 0.106 2.88-0.717 3.792-1.793z"})),e("g",{fill:"#fff"},e("path",{d:"m53.645 31.504h-2.271l-1.244-3.909h-4.324l-1.185 3.909h-2.211l4.284-13.308h2.646l4.305 13.308zm-3.89-5.549-1.125-3.475c-0.119-0.355-0.342-1.191-0.671-2.507h-0.04c-0.131 0.566-0.342 1.402-0.632 2.507l-1.105 3.475h3.573z"}),e("path",{d:"m64.662 26.588c0 1.632-0.441 2.922-1.323 3.869-0.79 0.843-1.771 1.264-2.942 1.264-1.264 0-2.172-0.454-2.725-1.362h-0.04v5.055h-2.132v-10.347c0-1.026-0.027-2.079-0.079-3.159h1.875l0.119 1.521h0.04c0.711-1.146 1.79-1.718 3.238-1.718 1.132 0 2.077 0.447 2.833 1.342 0.758 0.896 1.136 2.074 1.136 3.535zm-2.172 0.078c0-0.934-0.21-1.704-0.632-2.31-0.461-0.632-1.08-0.948-1.856-0.948-0.526 0-1.004 0.176-1.431 0.523-0.428 0.35-0.708 0.807-0.839 1.373-0.066 0.264-0.099 0.48-0.099 0.65v1.6c0 0.698 0.214 1.287 0.642 1.768s0.984 0.721 1.668 0.721c0.803 0 1.428-0.31 1.875-0.928 0.448-0.619 0.672-1.435 0.672-2.449z"}),e("path",{d:"m75.699 26.588c0 1.632-0.441 2.922-1.324 3.869-0.789 0.843-1.77 1.264-2.941 1.264-1.264 0-2.172-0.454-2.724-1.362h-0.04v5.055h-2.132v-10.347c0-1.026-0.027-2.079-0.079-3.159h1.875l0.119 1.521h0.04c0.71-1.146 1.789-1.718 3.238-1.718 1.131 0 2.076 0.447 2.834 1.342 0.755 0.896 1.134 2.074 1.134 3.535zm-2.172 0.078c0-0.934-0.211-1.704-0.633-2.31-0.461-0.632-1.078-0.948-1.855-0.948-0.527 0-1.004 0.176-1.432 0.523-0.428 0.35-0.707 0.807-0.838 1.373-0.065 0.264-0.099 0.48-0.099 0.65v1.6c0 0.698 0.214 1.287 0.64 1.768 0.428 0.48 0.984 0.721 1.67 0.721 0.803 0 1.428-0.31 1.875-0.928 0.448-0.619 0.672-1.435 0.672-2.449z"}),e("path",{d:"m88.039 27.772c0 1.132-0.393 2.053-1.182 2.764-0.867 0.777-2.074 1.165-3.625 1.165-1.432 0-2.58-0.276-3.449-0.829l0.494-1.777c0.936 0.566 1.963 0.85 3.082 0.85 0.803 0 1.428-0.182 1.877-0.544 0.447-0.362 0.67-0.848 0.67-1.454 0-0.54-0.184-0.995-0.553-1.364-0.367-0.369-0.98-0.712-1.836-1.029-2.33-0.869-3.494-2.142-3.494-3.816 0-1.094 0.408-1.991 1.225-2.689 0.814-0.699 1.9-1.048 3.258-1.048 1.211 0 2.217 0.211 3.02 0.632l-0.533 1.738c-0.75-0.408-1.598-0.612-2.547-0.612-0.75 0-1.336 0.185-1.756 0.553-0.355 0.329-0.533 0.73-0.533 1.205 0 0.526 0.203 0.961 0.611 1.303 0.355 0.316 1 0.658 1.936 1.027 1.145 0.461 1.986 1 2.527 1.618 0.539 0.616 0.808 1.387 0.808 2.307z"}),e("path",{d:"m95.088 23.508h-2.35v4.659c0 1.185 0.414 1.777 1.244 1.7
177 0.381 0 0.697-0.033 0.947-0.099l0.059 1.619c-0.42 0.157-0.973 0.236-1.658 0.236-0.842 0-1.5-0.257-1.975-0.77-0.473-0.514-0.711-1.376-0.711-2.587v-4.837h-1.4v-1.6h1.4v-1.757l2.094-0.632v2.389h2.35v1.602z"}),e("path",{d:"m105.69 26.627c0 1.475-0.422 2.686-1.264 3.633-0.883 0.975-2.055 1.461-3.516 1.461-1.408 0-2.529-0.467-3.365-1.401s-1.254-2.113-1.254-3.534c0-1.487 0.43-2.705 1.293-3.652 0.861-0.948 2.023-1.422 3.484-1.422 1.408 0 2.541 0.467 3.396 1.402 0.818 0.907 1.226 2.078 1.226 3.513zm-2.212 0.069c0-0.885-0.189-1.644-0.572-2.277-0.447-0.766-1.086-1.148-1.914-1.148-0.857 0-1.508 0.383-1.955 1.148-0.383 0.634-0.572 1.405-0.572 2.317 0 0.885 0.189 1.644 0.572 2.276 0.461 0.766 1.105 1.148 1.936 1.148 0.814 0 1.453-0.39 1.914-1.168 0.393-0.645 0.591-1.412 0.591-2.296z"}),e("path",{d:"m112.62 23.783c-0.211-0.039-0.436-0.059-0.672-0.059-0.75 0-1.33 0.283-1.738 0.85-0.355 0.5-0.533 1.132-0.533 1.895v5.035h-2.131l0.02-6.574c0-1.106-0.027-2.113-0.08-3.021h1.857l0.078 1.836h0.059c0.225-0.631 0.58-1.139 1.066-1.52 0.475-0.343 0.988-0.514 1.541-0.514 0.197 0 0.375 0.014 0.533 0.039v2.033z"}),e("path",{d:"m122.16 26.252c0 0.382-0.025 0.704-0.078 0.967h-6.396c0.025 0.948 0.334 1.673 0.928 2.173 0.539 0.447 1.236 0.671 2.092 0.671 0.947 0 1.811-0.151 2.588-0.454l0.334 1.48c-0.908 0.396-1.98 0.593-3.217 0.593-1.488 0-2.656-0.438-3.506-1.313-0.848-0.875-1.273-2.05-1.273-3.524 0-1.447 0.395-2.652 1.186-3.613 0.828-1.026 1.947-1.539 3.355-1.539 1.383 0 2.43 0.513 3.141 1.539 0.563 0.815 0.846 1.823 0.846 3.02zm-2.033-0.553c0.014-0.632-0.125-1.178-0.414-1.639-0.369-0.593-0.936-0.889-1.699-0.889-0.697 0-1.264 0.289-1.697 0.869-0.355 0.461-0.566 1.014-0.631 1.658h4.441z"})),e("g",{fill:"#fff"},e("path",{d:"m49.05 10.009c0 1.177-0.353 2.063-1.058 2.658-0.653 0.549-1.581 0.824-2.783 0.824-0.596 0-1.106-0.026-1.533-0.078v-6.431c0.557-0.09 1.157-0.136 1.805-0.136 1.145 0 2.008 0.249 2.59 0.747 0.652 0.563 0.979 1.368 0.979 2.416zm-1.105 0.029c0-0.763-0.202-1.348-0.606-1.756-0.404-0.407-0.994-0.611-1.771-0.611-0.33 0-0.611 0.022-0.844 0.068v4.889c0.129 0.02 0.365 0.029 0.708 0.029 0.802 0 1.421-0.223 1.857-0.669s0.656-1.096 0.656-1.95z"}),e("path",{d:"m54.909 11.037c0 0.725-0.207 1.319-0.621 1.785-0.434 0.479-1.009 0.718-1.727 0.718-0.692 0-1.243-0.229-1.654-0.689-0.41-0.459-0.615-1.038-0.615-1.736 0-0.73 0.211-1.329 0.635-1.794s0.994-0.698 1.712-0.698c0.692 0 1.248 0.229 1.669 0.688 0.4 0.446 0.601 1.022 0.601 1.726zm-1.087 0.034c0-0.435-0.094-0.808-0.281-1.119-0.22-0.376-0.533-0.564-0.94-0.564-0.421 0-0.741 0.188-0.961 0.564-0.188 0.311-0.281 0.69-0.281 1.138 0 0.435 0.094 0.808 0.281 1.119 0.227 0.376 0.543 0.564 0.951 0.564 0.4 0 0.714-0.191 0.94-0.574 0.194-0.317 0.291-0.693 0.291-1.128z"}),e("path",{d:"m62.765 8.719-1.475 4.714h-0.96l-0.611-2.047c-0.155-0.511-0.281-1.019-0.379-1.523h-0.019c-0.091 0.518-0.217 1.025-0.379 1.523l-0.649 2.047h-0.971l-1.387-4.714h1.077l0.533 2.241c0.129 0.53 0.235 1.035 0.32 1.513h0.019c0.078-0.394 0.207-0.896 0.389-1.503l0.669-2.25h0.854l0.641 2.202c0.155 0.537 0.281 1.054 0.378 1.552h0.029c0.071-0.485 0.178-1.002 0.32-1.552l0.572-2.202h1.029z"}),e("path",{d:"m68.198 13.433h-1.048v-2.7c0-0.832-0.316-1.248-0.95-1.248-0.311 0-0.562 0.114-0.757 0.343-0.193 0.229-0.291 0.499-0.291 0.808v2.796h-1.048v-3.366c0-0.414-0.013-0.863-0.038-1.349h0.921l0.049 0.737h0.029c0.122-0.229 0.304-0.418 0.543-0.569 0.284-0.176 0.602-0.265 0.95-0.265 0.44 0 0.806 0.142 1.097 0.427 0.362 0.349 0.543 0.87 0.543 1.562v2.824z"}),e("path",{d:"m71.088 13.433h-1.047v-6.877h1.047v6.877z"}),e("path",{d:"m77.258 11.037c0 0.725-0.207 1.319-0.621 1.785-0.434 0.479-1.01 0.718-1.727 0.718-0.693 0-1.244-0.229-1.654-0.689-0.41-0.459-0.615-1.038-0.615-1.736 0-0.73 0.211-1.329 0.635-1.794s0.994-0.698 1.711-0.698c0.693 0 1.248 0.229 1.67 0.688 0.4 0.446 0.601 1.022 0.601 1.726zm-1.088 0.034c0-0.435-0.094-0.808-0.281-1.119-0.219-0.376-0.533-0.564-0.939-0.564-0.422 0-0.742 0.188-0.961 0.564-0.188 0.311-0.281 0.69-0.281 1.138 0 0.435 0.094 0.808 0.281 1.119 0.227 0.376 0.543 0.564 0.951 0.564 0.4 0 0.713-0.191 0.939-0.574 0.195-0.317 0.291-0.693 0.291-1.128z"}),e("path",{d:"m82.33 13.433h-0.941l-0.078-0.543h-0.029c-0.322 0.433-0.781 0.65-1.377 0.65-0.445 0-0.805-0.143-1.076-0.427-0.246-0.258-0.369-0.579-0.369-0.96 0-0.576 0.24-1.015 0.723-1.319 0.482-0.304 1.16-0.453 2.033-0.446v-0.088c0-0.621-0.326-0.931-0.979-0.931-0.465 0-0.875 0.117-1.229 0.349l-0.213-0.688c0.438-0.271 0.979
1-0.407 1.617-0.407 1.232 0 1.85 0.65 1.85 1.95v1.736c0 0.471 0.023 0.846 0.068 1.124zm-1.088-1.62v-0.727c-1.156-0.02-1.734 0.297-1.734 0.95 0 0.246 0.066 0.43 0.201 0.553s0.307 0.184 0.512 0.184c0.23 0 0.445-0.073 0.641-0.218 0.197-0.146 0.318-0.331 0.363-0.558 0.011-0.051 0.017-0.113 0.017-0.184z"}),e("path",{d:"m88.285 13.433h-0.93l-0.049-0.757h-0.029c-0.297 0.576-0.803 0.864-1.514 0.864-0.568 0-1.041-0.223-1.416-0.669s-0.562-1.025-0.562-1.736c0-0.763 0.203-1.381 0.611-1.853 0.395-0.44 0.879-0.66 1.455-0.66 0.633 0 1.076 0.213 1.328 0.64h0.02v-2.706h1.049v5.607c0 0.459 0.012 0.882 0.037 1.27zm-1.086-1.988v-0.786c0-0.136-0.01-0.246-0.029-0.33-0.059-0.252-0.186-0.464-0.379-0.635-0.195-0.171-0.43-0.257-0.701-0.257-0.391 0-0.697 0.155-0.922 0.466-0.223 0.311-0.336 0.708-0.336 1.193 0 0.466 0.107 0.844 0.322 1.135 0.227 0.31 0.533 0.465 0.916 0.465 0.344 0 0.619-0.129 0.828-0.388 0.202-0.239 0.301-0.527 0.301-0.863z"}),e("path",{d:"m97.248 11.037c0 0.725-0.207 1.319-0.621 1.785-0.434 0.479-1.008 0.718-1.727 0.718-0.691 0-1.242-0.229-1.654-0.689-0.41-0.459-0.615-1.038-0.615-1.736 0-0.73 0.211-1.329 0.635-1.794s0.994-0.698 1.713-0.698c0.691 0 1.248 0.229 1.668 0.688 0.4 0.446 0.601 1.022 0.601 1.726zm-1.086 0.034c0-0.435-0.094-0.808-0.281-1.119-0.221-0.376-0.533-0.564-0.941-0.564-0.42 0-0.74 0.188-0.961 0.564-0.188 0.311-0.281 0.69-0.281 1.138 0 0.435 0.094 0.808 0.281 1.119 0.227 0.376 0.543 0.564 0.951 0.564 0.4 0 0.715-0.191 0.941-0.574 0.193-0.317 0.291-0.693 0.291-1.128z"}),e("path",{d:"m102.88 13.433h-1.047v-2.7c0-0.832-0.316-1.248-0.951-1.248-0.311 0-0.562 0.114-0.756 0.343s-0.291 0.499-0.291 0.808v2.796h-1.049v-3.366c0-0.414-0.012-0.863-0.037-1.349h0.92l0.049 0.737h0.029c0.123-0.229 0.305-0.418 0.543-0.569 0.285-0.176 0.602-0.265 0.951-0.265 0.439 0 0.805 0.142 1.096 0.427 0.363 0.349 0.543 0.87 0.543 1.562v2.824z"}),e("path",{d:"m109.94 9.504h-1.154v2.29c0 0.582 0.205 0.873 0.611 0.873 0.188 0 0.344-0.016 0.467-0.049l0.027 0.795c-0.207 0.078-0.479 0.117-0.814 0.117-0.414 0-0.736-0.126-0.969-0.378-0.234-0.252-0.35-0.676-0.35-1.271v-2.377h-0.689v-0.785h0.689v-0.864l1.027-0.31v1.173h1.154v0.786z"}),e("path",{d:"m115.48 13.433h-1.049v-2.68c0-0.845-0.316-1.268-0.949-1.268-0.486 0-0.818 0.245-1 0.735-0.031 0.103-0.049 0.229-0.049 0.377v2.835h-1.047v-6.876h1.047v2.841h0.02c0.33-0.517 0.803-0.775 1.416-0.775 0.434 0 0.793 0.142 1.078 0.427 0.355 0.355 0.533 0.883 0.533 1.581v2.803z"}),e("path",{d:"m121.21 10.853c0 0.188-0.014 0.346-0.039 0.475h-3.143c0.014 0.466 0.164 0.821 0.455 1.067 0.266 0.22 0.609 0.33 1.029 0.33 0.465 0 0.889-0.074 1.271-0.223l0.164 0.728c-0.447 0.194-0.973 0.291-1.582 0.291-0.73 0-1.305-0.215-1.721-0.645-0.418-0.43-0.625-1.007-0.625-1.731 0-0.711 0.193-1.303 0.582-1.775 0.406-0.504 0.955-0.756 1.648-0.756 0.678 0 1.193 0.252 1.541 0.756 0.281 0.4 0.42 0.895 0.42 1.483zm-1-0.271c8e-3 -0.311-0.061-0.579-0.203-0.805-0.182-0.291-0.459-0.437-0.834-0.437-0.342 0-0.621 0.142-0.834 0.427-0.174 0.227-0.277 0.498-0.311 0.815h2.182z"})))},play_store:{meta:{title:"Download on the Play Store"},svg:e("svg",{"enable-background":"new 0 0 5435.8 1604",version:"1.1",viewBox:"0 0 5435.8 1604",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5234.4,1604h-5033C90.4,1604,0,1513.6,0,1403.5v-1203C0,90,90.4,0,201.4,0h5033c110.9,0,201.4,90,201.4,200.5  v1203C5435.8,1513.6,5345.3,1604,5234.4,1604z"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"#A6A6A6",d:"m5234.4 32.1c93.1 0 169.3 75.7 169.3 168.4v1203c0 92.7-75.7 168.4-169.3 168.4h-5033c-93.1 0-169.3-75.7-169.3-168.4v-1203c0-92.7 75.7-168.4 169.3-168.4h5033zm0-32.1h-5033c-111 0-201.4 90.4-201.4 200.5v1203c0 110.5 90.4 200.5 201.4 200.5h5033c110.9 0 201.4-90 201.4-200.5v-1203c0-110.1-90.5-200.5-201.4-200.5z"}),e("path",{fill:"#FFFFFF",d:"m2863.6 530.6c-36.3 0-66.9-12.7-91.1-37.7-24-24.3-37.4-57.8-36.8-92 0-36.5 12.4-67.4 36.8-91.9 24.1-25 54.7-37.7 91-37.7 35.9 0 66.5 12.7 91.1 37.7 24.4 25.3 36.8 56.2 36.8 91.9-0.4 36.6-12.8 67.5-36.8 91.9-24.1 25.2-54.7 37.8-91 37.8zm-1080.1 0c-35.5 0-66.3-12.5-91.5-37.2-25-24.6-37.7-55.7-37.7-92.4s12.7-67.8 37.7-92.4c24.7-24.7 55.5-37.2 91.5-37.2 17.6 0 34.7 3.5 51.1 10.6 16.1 6.9 29.2 16.3 38.9 27.8l2.4 2.9-27.1 26.6-2.8-3.3c-15.3-18.2-35.8-27.1-62.9-27.1-24.2 0-45.3 8.6-62.7 25.6-17.5 17.1-26.4 39.5-26.4 66.6s8.9 49.5 26.4 66.6c17.4 17 38.5 25.
16 62.7 25.6 25.8 0 47.5-8.6 64.4-25.6 10-10 16.2-24 18.4-41.7h-86.9v-37.4h124.2l0.5 3.4c0.9 6.3 1.8 12.8 1.8 18.8 0 34.5-10.4 62.4-31 83-23.4 24.4-54 36.8-91 36.8zm1436.1-5.3h-38.3l-117.3-187.7 1 33.8v153.8h-38.3v-248.5h43.7l1.2 1.9 110.3 176.8-1-33.7v-145h38.7v248.6zm-643.8 0h-38.8v-211.2h-67.3v-37.4h173.3v37.4h-67.3v211.2zm-137.7 0h-38.7v-248.6h38.7v248.6zm-217.5 0h-38.7v-211.2h-67.3v-37.4h173.3v37.4h-67.3v211.2zm-130.5-0.4h-148.4v-248.2h148.4v37.4h-109.6v68.2h98.9v37h-98.9v68.2h109.6v37.4zm710.8-57.7c17.3 17.3 38.3 26 62.7 26 25.1 0 45.6-8.5 62.7-26 17-17 25.6-39.3 25.6-66.2s-8.6-49.3-25.5-66.2c-17.3-17.3-38.4-26-62.7-26-25.1 0-45.6 8.5-62.6 26-17 17-25.6 39.3-25.6 66.2s8.5 49.3 25.4 66.2z"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"#FFF",d:"m2732.1 872.4c-94.5 0-171.1 71.7-171.1 170.6 0 98 77.1 170.6 171.1 170.6 94.5 0 171.1-72.2 171.1-170.6 0-98.9-76.6-170.6-171.1-170.6zm0 273.6c-51.7 0-96.2-42.8-96.2-103.4 0-61.5 44.6-103.4 96.2-103.4 51.7 0 96.2 41.9 96.2 103.4 0.1 61-44.5 103.4-96.2 103.4zm-373.3-273.6c-94.5 0-171.1 71.7-171.1 170.6 0 98 77.1 170.6 171.1 170.6 94.5 0 171.1-72.2 171.1-170.6 0-98.9-76.7-170.6-171.1-170.6zm0 273.6c-51.7 0-96.2-42.8-96.2-103.4 0-61.5 44.6-103.4 96.2-103.4 51.7 0 96.2 41.9 96.2 103.4 0 61-44.5 103.4-96.2 103.4zm-444.2-221.5v72.2h173.3c-5.3 40.5-18.7 70.4-39.2 90.9-25.4 25.4-64.6 53-133.7 53-106.5 0-189.8-86-189.8-192.5s83.3-192.5 189.8-192.5c57.5 0 99.4 22.7 130.5 51.7l51.2-51.2c-43.2-41.4-100.7-73.1-181.3-73.1-146.1 0-268.7 119-268.7 264.7 0 146.1 122.5 264.7 268.7 264.7 78.9 0 138.1-25.8 184.9-74.4 47.7-47.7 62.8-115 62.8-169.3 0-16.9-1.3-32.1-4-45h-244.6c0.1-0.1 0.1 0.8 0.1 0.8zm1816.9 56.2c-14.3-38.3-57.5-108.7-146.1-108.7-87.8 0-160.8 69.1-160.8 170.6 0 95.8 72.2 170.6 169.3 170.6 78 0 123.4-47.7 142.1-75.7l-57.9-38.8c-19.2 28.5-45.9 47.2-83.8 47.2-38.3 0-65.1-17.4-82.9-51.7l228.1-94.5c0 0.1-8-19-8-19zm-232.6 57c-1.8-65.9 51.2-99.4 89.1-99.4 29.9 0 54.8 14.7 63.3 36.1l-152.4 63.3zm-185.3 165.3h74.9v-501.2h-74.9v501.2zm-123-292.7h-2.7c-16.9-20.1-49-38.3-90-38.3-85.1 0-163.5 74.9-163.5 171.1 0 95.8 78 169.8 163.5 169.8 40.5 0 73.1-18.3 90-38.8h2.7v24.5c0 65.1-34.8 100.2-90.9 100.2-45.9 0-74.4-33-86-60.6l-65.1 27.2c18.7 45 68.6 100.7 151 100.7 87.8 0 162.2-51.7 162.2-177.8v-306.1h-70.8v28.1h-0.4zm-86 235.7c-51.7 0-94.9-43.2-94.9-102.9 0-60.2 43.2-103.8 94.9-103.8 51.2 0 90.9 44.1 90.9 103.8 0.5 59.7-39.6 102.9-90.9 102.9zm977.6-444.2h-179.1v501.2h74.9v-189.8h104.3c82.9 0 164.4-60.1 164.4-155.5s-81.2-155.9-164.5-155.9zm2.2 241.4h-106.5v-172h106.5c56.1 0 87.8 46.3 87.8 86 0 39.3-32.1 86-87.8 86zm462.5-71.7c-54.4 0-110.5 24.1-133.7 76.6l66.4 27.6c14.3-27.6 40.5-37 68.2-37 38.8 0 78 23.2 78.9 64.6v5.3c-13.4-7.6-42.8-19.2-78-19.2-71.7 0-144.4 39.2-144.4 112.7 0 67.3 58.8 110.5 124.3 110.5 50.3 0 78-22.7 95.3-49h2.7v38.8h72.2v-192c0-89.4-66.4-138.9-151.9-138.9zm-9.4 274.5c-24.5 0-58.8-12-58.8-42.8 0-38.8 42.8-53.5 79.3-53.5 33 0 48.6 7.1 68.2 16.9-5.4 45-43.4 79-88.7 79.4zm424.7-263.8-86 217.4h-2.7l-89.1-217.4h-80.6l133.7 303.9-76.2 168.9h78l205.7-472.8h-82.8zm-674.2 320.8h74.9v-501.2h-74.9v501.2z"}),e("linearGradient",{id:"d",x1:"1682.1",x2:"1624.3",y1:"1339.5",y2:"1309.6",gradientTransform:"matrix(11.64 0 0 -22.55 -18706 30554)",gradientUnits:"userSpaceOnUse"},e("stop",{"stop-color":"#00A0FF",offset:"0"}),e("stop",{"stop-color":"#00A1FF",offset:".00657"}),e("stop",{"stop-color":"#00BEFF",offset:".2601"}),e("stop",{"stop-color":"#00D2FF",offset:".5122"}),e("stop",{"stop-color":"#00DFFF",offset:".7604"}),e("stop",{"stop-color":"#00E3FF",offset:"1"})),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"url(#d)",d:"m418.4 302.1c-11.6 12.5-18.3 31.6-18.3 56.6v886.7c0 25 6.7 44.1 18.7 56.1l3.1 2.7 496.8-496.8v-11.1l-497.2-496.9-3.1 2.7z"}),e("linearGradient",{id:"c",x1:"1712.7",x2:"1606.6",y1:"1274.8",y2:"1274.8",gradientTransform:"matrix(9.145 0 0 -7.7 -14306 10618)",gradientUnits:"userSpaceOnUse"},e("stop",{"stop-color":"#FFE000",offset:"0"}),e("stop",{"stop-color":"#FFBD00",offset:".4087"}),e("stop",{"stop-color":"#FFA500",offset:".7754"}),e("stop",{"stop-color":"#FF9C00",offset:"1"})),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"url(#c)",d:"m1084 973.5-165.7-165.7v-11.6l165.7-165.7 3.6 2.2 196 111.4c56.1 31.6 56.1 83.8 0 115.8l-196 111.4-3.6 2.2z"}),e("linearGradient",{id:"b",x1:"1707.4",x2:"1646.7",y1:"1290",y2:"1211.2",gradientTransform:"matrix(15.02 0 0 -11.578 -24650 15830)",gradientUnits:"userSpaceOnUse"},e("stop",{"stop-color":"#FF3A44",offset:"0"}),e("stop",{"stop-color":"#C31162",offset:"1"})),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"url(#b)",d:"m1087.6 971.3-169.3-169.3-499.9 499.9c18.3 19.6 49 21.8 83.3 2.7l585.9-333.3"}),e("linearGradient",{id:"a",x1:"1660.6",x2:"1687.8",y1:"1365.7",y2:"1330.5",gradientTransform:"matrix(15.02 0 0 -11.572 -24650 15810)",gradientUnits:"userSpaceOnUse"},e("stop",{"stop-color":"#32A071",offset:"0"}),e("stop",{"stop-color":"#2DA771",offset:".0685"}),e("stop",{"stop-color":"#15CF74",offset:".4762"}),e("stop",{"stop-color":"#06E775",offset:".8009"}),e("stop",{"stop-color":"#00F076",offset:"1"})),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"url(#a)",d:"M1087.6,632.7L501.7,299.9c-34.3-19.6-65.1-16.9-83.3,2.7L918.3,802L1087.6,632.7z"}),e("path",{opacity:"0.2","fill-rule":"evenodd","clip-rule":"evenodd","enable-background":"new",d:"m1084 967.7-581.9 330.6c-32.5 18.7-61.5 17.4-80.2 0.4l-3.1 3.1 3.1 2.7c18.7 16.9 47.7 18.3 80.2-0.4l585.9-332.8-4-3.6z"}),e("path",{opacity:"0.12","fill-rule":"evenodd","clip-rule":"evenodd","enable-background":"new",d:"m1283.6 854.1-200.1 113.6 3.6 3.6 196-111.4c28.1-16 41.9-37 41.9-57.9-1.7 19.2-16 37.4-41.4 52.1z"}),e("path",{opacity:"0.25","fill-rule":"evenodd","clip-rule":"evenodd","enable-background":"new",d:"m501.7 305.7 781.9 444.2c25.4 14.3 39.7 33 41.9 52.1 0-20.9-13.8-41.9-41.9-57.9l-781.9-444.2c-56.1-32.1-101.6-5.3-101.6 58.8v5.8c0-64.2 45.5-90.5 101.6-58.8z"}))}};t.a=n}).call(this,r("hosL").h)},I4e3:function(e,t,r){"use strict";(function(e){function n(){return typeof globalThis!==s.l&&globalThis?globalThis:typeof self!==s.l&&self?self:typeof window!==s.l&&window?window:typeof e!==s.l&&e?e:null}function i(e){throw new TypeError(e)}function a(e){function t(){}var r=s.c;if(r)return r(e);if(null==e)return{};var n=typeof e;return n!==s.j&&n!==s.h&&i("Object prototype may only be an Object:"+e),t[s.k]=e,new t}r.d(t,"a",(function(){return n})),r.d(t,"c",(function(){return i})),r.d(t,"b",(function(){return a}));var s=r("ogkr")}).call(this,r("pCvA"))},Ifhy:function(e,t,r){"use strict";function n(e,t,r){var n,i;return"m"===r?t?"хвилина":"хвилину":"h"===r?t?"година":"годину":e+" "+(n=+e,i={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[r].split("_"),n%10==1&&n%100!=11?i[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?i[1]:i[2])}function i(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}r.r(t);var a=r("Q/DC");t.default=a.default.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var r={
vendor: 7,110 bytes, line 1
1nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?r.nominative.slice(1,7).concat(r.nominative.slice(0,1)):e?r[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:r.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:i("[Сьогодні "),nextDay:i("[Завтра "),lastDay:i("[Вчора "),nextWeek:i("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[Минулої] dddd [").call(this);case 1:case 2:case 4:return i("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:n,m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})},J09Q:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,r){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?r?'לפנה"צ':"לפני הצהריים":e<18?r?'אחה"צ':"אחרי הצהריים":"בערב"}})},KjxB:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})},Kzfg:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},a={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};t.default=n.default.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return a[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return i[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})},LcWX:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._t
1y._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},LfUM:function(e,t,r){"use strict";function n(e,t,r,n){var i={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?i[r][2]?i[r][2]:i[r][1]:n?i[r][0]:i[r][1]}r.r(t);var i=r("Q/DC");t.default=i.default.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:"%d päeva",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},MJ0B:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},MXrV:function(e,t,r){"use strict";var n=r("wZKB"),i=r("eyDr"),a=r("20JA");t.a={page:n.a,post:i.a,player:a.a}},NS33:function(e,t,r){"use strict";function n(){}function i(){}var a=r("E02R");i.resetWarningCache=n,e.exports=function(){function e(e,t,r,n,i,s){if(s!==a){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:n};return r.PropTypes=r,r}},OICW:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})},ORTk:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t){var r=100*e+t;
1return r<600?"凌晨":r<900?"早上":r<1200?"上午":1200===r?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})},ObL2:function(){},Ono3:function(e){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},PCLY:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,r){return e<12?r?"vm":"VM":r?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})},Ph7h:function(e,t,r){"use strict";function n(e,t,r){var n=e+" ";switch(r){case"ss":return n+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return n+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return n+=1===e?"dan":"dana";case"MM":return n+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return n+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}r.r(t);var i=r("Q/DC");t.default=i.default.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:n,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})},"Q/DC":function(e,t,r){"use strict";r.r(t),function(e){function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 5,541 bytes, line 1
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function i(){return pt.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(o(e,t))return!1;return!0}function u(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var r,n=[];for(r=0;r<e.length;++r)n.push(t(e[r],r));return n}function f(e,t){for(var r in t)o(t,r)&&(e[r]=t[r]);return o(t,"toString")&&(e.toString=t.toString),o(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,r,n){return Se(e,t,r,n,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function g(e){if(null==e._isValid){var t=p(e),r=gt.call(t.parsedDateParts,(function(e){return null!=e})),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function _(e){var t=m(NaN);return null!=e?f(p(t),e):p(t).userInvalidated=!0,t}function v(e,t){var r,n,i;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=p(t)),u(t._locale)||(e._locale=t._locale),vt.length>0)for(r=0;r<vt.length;r++)u(i=t[n=vt[r]])||(e[n]=i);return e}function y(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===yt&&(yt=!0,i.updateOffset(this),yt=!1)}function L(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function b(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var r=!0;return f((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),r){var n,a,s,l=[];for(a=0;a<arguments.length;a++){if(n="","object"==typeof arguments[a]){for(s in n+="\n["+a+"] ",arguments[0])o(arguments[0],s)&&(n+=s+": "+arguments[0][s]+", ");n=n.slice(0,-2)}else n=arguments[a];l.push(n)}b(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),r=!1}return t.apply(this,arguments)}),t)}function M(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),Lt[e]||(b(t),Lt[e]=!0)}function k(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function S(e,t){var r,n=f({},e);for(r in t)o(t,r)&&(s(e[r])&&s(t[r])?(n[r]={},f(n[r],e[r]),f(n[r],t[r])):null!=t[r]?n[r]=t[r]:delete n[r]);for(r in e)o(e,r)&&!o(t,r)&&s(e[r])&&(n[r]=f({},n[r]));return n}function w(e){null!=e&&this.set(e)}function D(e,t,r){var n=""+Math.abs(e);return(e>=0?r?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}function E(e,t,r,n){var i=n;"string"==typeof n&&(i=function(){return this[n]()}),e&&(St[e]=i),t&&(St[t[0]]=function(){return D(i.apply(this,arguments),t[1],t[2])}),r&&(St[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function A(e,t){return e.isValid()?(t=I(t,e.localeData()),kt[t]=kt[t]||function(e){var t,r,n,i=e.match(Tt);for(t=0,r=i.length;t<r;t++)i[t]=St[i[t]]?St[i[t]]:(n=i[t]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(t){var n,a="";for(n=0;n<r;n++)a+=k(i[n])?i[n].call(t,e):i[n];return a}}(t),kt[t](e)):e.localeData().invalidDate()}function I(e,t){function r(e){return t.longDateFormat(e)||e}var n=5;for(Mt.lastIndex=0;n>=0&&Mt.test(e);)e=e.replace(Mt,r),Mt.lastIndex=0,n-=1;return e}function x(e,t){var r=e.toLowerCase();wt[r]=wt[r+"s"]=wt[t]=e}function C(e){return"string"==typeof e?wt[e]||wt[e.toLowerCase()]:void 0}function R(e){var t,r,n={};for(r in e)o(e,r)&&(t=C(r))&&(n[t]=e[r]);return n}function P(e,t){Dt[e]=t}function O(e){return e%4==0&&e%100!=0||e%400==0}function Y(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function F(e){var t=+e,r=0;return 0!==t&&isFinite(t)&&(r=Y(t)),r}function N(e,t){return function(r){return null!=r?(U(this,e,r),i.updateOffset(this,t),this):j(this,e)}}function j(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function U(e,t,r){e.isValid()&&!isNaN(r)&&("FullYear"===t&&O(e.year())&&1===e.month()&&29===e.date()?(r=F(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),z(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}function H(e,t,r){bt[e]=k(t)?t:function(e){return e&&r?r:t}}function B(e,t){return o(bt,e)?bt[e](t._strict,t._locale):new RegExp(W(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,r,n,i){return t||r||n||i}))))}function W(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function G(e,t){var r,n=t;
vendor: 4,897 bytes, line 1
1for("string"==typeof e&&(e=[e]),d(t)&&(n=function(e,r){r[t]=F(e)}),r=0;r<e.length;r++)Vt[e[r]]=n}function V(e,t){G(e,(function(e,r,n,i){n._w=n._w||{},t(e,n._w,n,i)}))}function K(e,t,r){null!=t&&o(Vt,e)&&Vt[e](t,r._a,r,e)}function z(e,t){if(isNaN(e)||isNaN(t))return NaN;var r,n=(t%(r=12)+r)%r;return e+=(t-n)/12,1===n?O(e)?29:28:31-n%7%2}function q(e,t,r){var n,i,a,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)a=m([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(a,"").toLocaleLowerCase();return r?"MMM"===t?-1!==(i=Gt.call(this._shortMonthsParse,s))?i:null:-1!==(i=Gt.call(this._longMonthsParse,s))?i:null:"MMM"===t?-1!==(i=Gt.call(this._shortMonthsParse,s))||-1!==(i=Gt.call(this._longMonthsParse,s))?i:null:-1!==(i=Gt.call(this._longMonthsParse,s))||-1!==(i=Gt.call(this._shortMonthsParse,s))?i:null}function J(e,t){var r;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=F(t);else if(!d(t=e.localeData().monthsParse(t)))return e;return r=Math.min(e.date(),z(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,r),e}function Q(e){return null!=e?(J(this,e),i.updateOffset(this,!0),this):j(this,"Month")}function X(){function e(e,t){return t.length-e.length}var t,r,n=[],i=[],a=[];for(t=0;t<12;t++)r=m([2e3,t]),n.push(this.monthsShort(r,"")),i.push(this.months(r,"")),a.push(this.months(r,"")),a.push(this.monthsShort(r,""));for(n.sort(e),i.sort(e),a.sort(e),t=0;t<12;t++)n[t]=W(n[t]),i[t]=W(i[t]);for(t=0;t<24;t++)a[t]=W(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Z(e){return O(e)?366:365}function $(e,t,r,n,i,a,s){var o;return e<100&&e>=0?(o=new Date(e+400,t,r,n,i,a,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,r,n,i,a,s),o}function ee(e){var t,r;return e<100&&e>=0?((r=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function te(e,t,r){var n=7+t-r;return-((7+ee(e,0,n).getUTCDay()-t)%7)+n-1}function re(e,t,r,n,i){var a,s,o=1+7*(t-1)+(7+r-n)%7+te(e,n,i);return o<=0?s=Z(a=e-1)+o:o>Z(e)?(a=e+1,s=o-Z(e)):(a=e,s=o),{year:a,dayOfYear:s}}function ne(e,t,r){var n,i,a=te(e.year(),t,r),s=Math.floor((e.dayOfYear()-a-1)/7)+1;return s<1?n=s+ie(i=e.year()-1,t,r):s>ie(e.year(),t,r)?(n=s-ie(e.year(),t,r),i=e.year()+1):(i=e.year(),n=s),{week:n,year:i}}function ie(e,t,r){var n=te(e,t,r),i=te(e+1,t,r);return(Z(e)-n+i)/7}function ae(e,t){return e.slice(t,7).concat(e.slice(0,t))}function se(e,t,r){var n,i,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=m([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return r?"dddd"===t?-1!==(i=Gt.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Gt.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=Gt.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=Gt.call(this._weekdaysParse,s))||-1!==(i=Gt.call(this._shortWeekdaysParse,s))||-1!==(i=Gt.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Gt.call(this._shortWeekdaysParse,s))||-1!==(i=Gt.call(this._weekdaysParse,s))||-1!==(i=Gt.call(this._minWeekdaysParse,s))?i:null:-1!==(i=Gt.call(this._minWeekdaysParse,s))||-1!==(i=Gt.call(this._weekdaysParse,s))||-1!==(i=Gt.call(this._shortWeekdaysParse,s))?i:null}function oe(){function e(e,t){return t.length-e.length}var t,r,n,i,a,s=[],o=[],l=[],u=[];for(t=0;t<7;t++)r=m([2e3,1]).day(t),n=W(this.weekdaysMin(r,"")),i=W(this.weekdaysShort(r,"")),a=W(this.weekdays(r,"")),s.push(n),o.push(i),l.push(a),u.push(n),u.push(i),u.push(a);s.sort(e),o.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function le(){return this.hours()%12||12}function ue(e,t){E(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function de(e,t){return t._meridiemParse}function ce(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function he(e){return e?e.toLowerCase().replace("_","-"):e}function fe(t){var n=null;if(void 0===or[t]&&void 0!==e&&e&&e.exports)try{n=ir._abbr,void 0,r("+1
1ZA")("./"+t),me(n)}catch(e){or[t]=null}return or[t]}function me(e,t){var r;return e&&((r=u(t)?ge(e):pe(e,t))?ir=r:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ir._abbr}function pe(e,t){if(null!==t){var r,n=sr;if(t.abbr=e,null!=or[e])M("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=or[e]._config;else if(null!=t.parentLocale)if(null!=or[t.parentLocale])n=or[t.parentLocale]._config;else{if(null==(r=fe(t.parentLocale)))return lr[t.parentLocale]||(lr[t.parentLocale]=[]),lr[t.parentLocale].push({name:e,config:t}),null;n=r._config}return or[e]=new w(S(n,t)),lr[e]&&lr[e].forEach((function(e){pe(e.name,e.config)})),me(e),or[e]}return delete or[e],null}function ge(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ir;if(!a(e)){if(t=fe(e))return t;e=[e]}return function(e){for(var t,r,n,i,a=0;a<e.length;){for(t=(i=he(e[a]).split("-")).length,r=(r=he(e[a+1]))?r.split("-"):null;t>0;){if(n=fe(i.slice(0,t).join("-")))return n;if(r&&r.length>=t&&ce(i,r)>=t-1)break;t--}a++}return ir}(e)}function _e(e){var t,r=e._a;return r&&-2===p(e).overflow&&(t=r[1]<0||r[1]>11?1:r[2]<1||r[2]>z(r[0],r[1])?2:r[3]<0||r[3]>24||24===r[3]&&(0!==r[4]||0!==r[5]||0!==r[6])?3:r[4]<0||r[4]>59?4:r[5]<0||r[5]>59?5:r[6]<0||r[6]>999?6:-1,p(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),p(e)._overflowWeeks&&-1===t&&(t=7),p(e)._overflowWeekday&&-1===t&&(t=8),p(e).overflow=t),e}function ve(e){var t,r,n,i,a,s,o=e._i,l=ur.exec(o)||dr.exec(o);if(l){for(p(e).iso=!0,t=0,r=hr.length;t<r;t++)if(hr[t][1].exec(l[1])){i=hr[t][0],n=!1!==hr[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,r=fr.length;t<r;t++)if(fr[t][1].exec(l[3])){a=(l[2]||" ")+fr[t][0];break}if(null==a)return void(e._isValid=!1)}if(!n&&null!=a)return void(e._isValid=!1);if(l[4]){if(!cr.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(a||"")+(s||""),Me(e)}else e._isValid=!1}function ye(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Le(e){var t,r,n,i,a,s,o,l=pr.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){if(r=l[3],n=l[2],i=l[5],a=l[6],s=l[7],o=[ye(l[4]),zt.indexOf(r),parseInt(n,10),parseInt(i,10),parseInt(a,10)],s&&o.push(parseInt(s,10)),!function(e,t,r){return!e||$t.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(p(r).weekdayMismatch=!0,r._isValid=!1,!1)}(l[1],t=o,e))return;e._a=t,e._tzm=function(e,t,r){if(e)return gr[e];if(t)return 0;var n=parseInt(r,10),i=n%100;return 60*((n-i)/100)+i}(l[8],l[9],l[10]),e._d=ee.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function be(e,t,r){return null!=e?e:null!=t?t:r}function Te(e){var t,r,n,a,s,o=[];if(!e._d){for(n=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,r,n,i,a,s,o,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,s=4,r=be(t.GG,e._a[0],ne(we(),1,4).year),n=be(t.W,1),((i=be(t.E,1))<1||i>7)&&(l=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,u=ne(we(),a,s),r=be(t.gg,e._a[0],u.year),n=be(t.w,u.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a);n<1||n>ie(r,a,s)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(o=re(r,n,i,a,s),e._a[0]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(s=be(e._a[0],n[0]),(e._dayOfYear>Z(s)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),r=ee(s,0,e._dayOfYear),e._a[1]=r.getUTCMonth(),e._a[2]=r.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=n[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?ee:$).apply(null,o),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(p(e).weekdayMismatch=!0)}}function Me(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],p(e).empty=!0;var t,r,n,a,s,o,l=""+e._i,u=l.length,d=0;for(n=I(e._f,e._locale).match(Tt)||[],t=0;t<n.length;t++)(r=(l.match(B(a=n[t],e))||[])[0])&&((s=l.substr(0,l.indexOf(r))).length>0&&p(e).unusedInput.push(s),l=l.slice(l.indexOf(r)+r.length),d+=r.length),St[a]?(r?p(e).empty=!1:p(e).unusedTokens.push(a),K(a,r,e)):e._strict&&!r&&p(e).unusedTokens.push(a);p(e).charsLeftOver=u-d,l.length>0&&p(e).unusedInput.push(l),e._a[3]<=12&&!0===p(e).bigHour&&e._a[3]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[3]=function(e,t,r){var n;if(null==r)return t;return null!=e.meridiemHour?e.meridiemHour(t,r):null!=e.isPM?((n=e.isPM(r))&&t<12&&(t+=12),n||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(o=p(e).era)&&(e._a[0]=e._locale.erasConvertYear(o,e._a[0])),Te(e),_e(e)}else Le(e);else ve(e)}function ke(e){var t=e._i,r=e._f;return e._locale=e._locale||ge(e._l),null===t||void 0===r&&""===t?_({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),L(t)?new y(_e(t)):(c(t)?e._d=t:a(r)?function(e){var t,r,n,i,a,s,o=!1;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)a=0,s=!1,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Me(t),g(t)&&(s=!0),a+=p(t).charsLeftOver,a+=10*p(t).unusedTokens.length,p(t).score=a,o?a<n&&(n=a,r=t):(null==n||a<n||s)&&(n=a,r=t,s&&(o=!0));f(e,r||t)}(e):r?Me(e):function(e){var t=e._i;u(t)?e._d=new Date(i.now()):c(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=mr.exec(e._i);
vendor: 5,590 bytes, line 1
1null===t?(ve(e),!1===e._isValid&&(delete e._isValid,Le(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):a(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),Te(e)):s(t)?function(e){if(!e._d){var t=R(e._i);e._a=h([t.year,t.month,void 0===t.day?t.date:t.day,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Te(e)}}(e):d(t)?e._d=new Date(t):i.createFromInputFallback(e)}(e),g(e)||(e._d=null),e))}function Se(e,t,r,n,i){var o,u={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==r&&!1!==r||(n=r,r=void 0),(s(e)&&l(e)||a(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=i,u._l=r,u._i=e,u._f=t,u._strict=n,(o=new y(_e(ke(u))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function we(e,t,r,n){return Se(e,t,r,n,!1)}function De(e,t){var r,n;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return we();for(r=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](r)||(r=t[n]);return r}function Ee(e){var t=R(e),r=t.year||0,n=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,u=t.minute||0,d=t.second||0,c=t.millisecond||0;this._isValid=function(e){var t,r,n=!1;for(t in e)if(o(e,t)&&(-1===Gt.call(yr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(r=0;r<yr.length;++r)if(e[yr[r]]){if(n)return!1;parseFloat(e[yr[r]])!==F(e[yr[r]])&&(n=!0)}return!0}(t),this._milliseconds=+c+1e3*d+6e4*u+1e3*l*60*60,this._days=+s+7*a,this._months=+i+3*n+12*r,this._data={},this._locale=ge(),this._bubble()}function Ae(e){return e instanceof Ee}function Ie(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function xe(e,t){E(e,0,0,(function(){var e=this.utcOffset(),r="+";return e<0&&(e=-e,r="-"),r+D(~~(e/60),2)+t+D(~~e%60,2)}))}function Ce(e,t){var r,n,i=(t||"").match(e);return null===i?null:0===(n=60*(r=((i[i.length-1]||[])+"").match(Lr)||["-",0,0])[1]+F(r[2]))?0:"+"===r[0]?n:-n}function Re(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(L(e)||c(e)?e.valueOf():we(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),i.updateOffset(r,!1),r):we(e).local()}function Pe(e){return-Math.round(e._d.getTimezoneOffset())}function Oe(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Ye(e,t){var r,n,i,a=e,s=null;return Ae(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(s=br.exec(e))?(r="-"===s[1]?-1:1,a={y:0,d:F(s[2])*r,h:F(s[3])*r,m:F(s[4])*r,s:F(s[5])*r,ms:F(Ie(1e3*s[6]))*r}):(s=Tr.exec(e))?a={y:Fe(s[2],r="-"===s[1]?-1:1),M:Fe(s[3],r),w:Fe(s[4],r),d:Fe(s[5],r),h:Fe(s[6],r),m:Fe(s[7],r),s:Fe(s[8],r)}:null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=function(e,t){var r;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=Re(t,e),e.isBefore(t)?r=Ne(e,t):((r=Ne(t,e)).milliseconds=-r.milliseconds,r.months=-r.months);return r}(we(a.from),we(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),n=new Ee(a),Ae(e)&&o(e,"_locale")&&(n._locale=e._locale),Ae(e)&&o(e,"_isValid")&&(n._isValid=e._isValid),n}function Fe(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Ne(e,t){var r={};return r.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function je(e,t){return function(r,n){var i;return null===n||isNaN(+n)||(M(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),Ue(this,Ye(r,n),e),this}}function Ue(e,t,r,n){var a=t._milliseconds,s=Ie(t._days),o=Ie(t._months);e.isValid()&&(n=null==n||n,o&&J(e,j(e,"Month")+o*r),s&&U(e,"Date",j(e,"Date")+s*r),a&&e._d.setTime(e._d.valueOf()+a*r),n&&i.updateOffset(e,s||o))}function He(e){return"string"==typeof e||e instanceof String}function Be(e){return L(e)||c(e)||He(e)||d(e)||function(e){var t=a(e),r=!1;t&&(r=0===e.filter((function(t){return!d(t)&&He(e)})).length);return t&&r}(e)||function(e){var t,r,n=s(e)&&!l(e),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<a.length;t+=1)r=a[t],i=i||o(e,r);return n&&i}(e)||null==e}function We(e){var t,r=s(e)&&!l(e),n=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)n=n||o(e,i[t]);return r&&n}function Ge(e,t){if(e.date()<t.date())return-Ge(t,e);var r=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(r,"months");return-(r+(t-n<0?(t-n)/(n-e.clone().add(r-1,"months")):(t-n)/(e.clone().add(r+1,"months")-n)))||0}function Ve(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ge(e))&&(this._locale=t),this)}function Ke(){return this._locale}function ze(e,t){return(e%t+t)%t}function qe(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-126227808e5:new Date(e,t,r).valueOf()}function Je(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-126227808e5:Date.UTC(e,t,r)}function Qe(e,t){return t.erasAbbrRegex(e)}function Xe(){var e,t,r=[],n=[],i=[],a=[],s=this.eras();for(e=0,t=s.length;e<t;++e)n.push(W(s[e].name)),r.push(W(s[e].abbr)),i.push(W(s[e].narrow)),a.push(W(s[e].name)),a.push(W(s[e].abbr)),a.push(W(s[e].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function Ze(e,t){E(0,[e,e.length],0,t)}function $e(e,t,r,n,i){var a;return null==e?ne(this,n,i).year:(t>
vendor: 5,532 bytes, line 1
1(a=ie(e,n,i))&&(t=a),et.call(this,e,t,r,n,i))}function et(e,t,r,n,i){var a=re(e,t,r,n,i),s=ee(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function tt(e,t){t[6]=F(1e3*("0."+e))}function rt(e){return e}function nt(e,t,r,n){var i=ge(),a=m().set(n,t);return i[r](a,e)}function it(e,t,r){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return nt(e,t,r,"month");var n,i=[];for(n=0;n<12;n++)i[n]=nt(e,n,r,"month");return i}function at(e,t,r,n){"boolean"==typeof e?(d(t)&&(r=t,t=void 0),t=t||""):(r=t=e,e=!1,d(t)&&(r=t,t=void 0),t=t||"");var i,a=ge(),s=e?a._week.dow:0,o=[];if(null!=r)return nt(t,(r+s)%7,n,"day");for(i=0;i<7;i++)o[i]=nt(t,(i+s)%7,n,"day");return o}function st(e,t,r,n){var i=Ye(t,r);return e._milliseconds+=n*i._milliseconds,e._days+=n*i._days,e._months+=n*i._months,e._bubble()}function ot(e){return e<0?Math.floor(e):Math.ceil(e)}function lt(e){return 4800*e/146097}function ut(e){return 146097*e/4800}function dt(e){return function(){return this.as(e)}}function ct(e){return function(){return this.isValid()?this._data[e]:NaN}}function ht(e,t,r,n,i){return i.relativeTime(t||1,!!r,e,n)}function ft(e){return(e>0)-(e<0)||+e}function mt(){if(!this.isValid())return this.localeData().invalidDate();var e,t,r,n,i,a,s,o,l=Zr(this._milliseconds)/1e3,u=Zr(this._days),d=Zr(this._months),c=this.asSeconds();return c?(e=Y(l/60),t=Y(e/60),l%=60,e%=60,r=Y(d/12),d%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=c<0?"-":"",a=ft(this._months)!==ft(c)?"-":"",s=ft(this._days)!==ft(c)?"-":"",o=ft(this._milliseconds)!==ft(c)?"-":"",i+"P"+(r?a+r+"Y":"")+(d?a+d+"M":"")+(u?s+u+"D":"")+(t||e||l?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(l?o+n+"S":"")):"P0D"}var pt,gt;gt=Array.prototype.some?Array.prototype.some:function(e){var t,r=Object(this),n=r.length>>>0;for(t=0;t<n;t++)if(t in r&&e.call(this,r[t],t,r))return!0;return!1};var _t,vt=i.momentProperties=[],yt=!1,Lt={};i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,_t=Object.keys?Object.keys:function(e){var t,r=[];for(t in e)o(e,t)&&r.push(t);return r};var bt,Tt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Mt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,kt={},St={},wt={},Dt={},Et=/\d/,At=/\d\d/,It=/\d{3}/,xt=/\d{4}/,Ct=/[+-]?\d{6}/,Rt=/\d\d?/,Pt=/\d\d\d\d?/,Ot=/\d\d\d\d\d\d?/,Yt=/\d{1,3}/,Ft=/\d{1,4}/,Nt=/[+-]?\d{1,6}/,jt=/\d+/,Ut=/[+-]?\d+/,Ht=/Z|[+-]\d\d:?\d\d/gi,Bt=/Z|[+-]\d\d(?::?\d\d)?/gi,Wt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;bt={};var Gt,Vt={};Gt=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},E("M",["MM",2],"Mo",(function(){return this.month()+1})),E("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),E("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),x("month","M"),P("month",8),H("M",Rt),H("MM",Rt,At),H("MMM",(function(e,t){return t.monthsShortRegex(e)})),H("MMMM",(function(e,t){return t.monthsRegex(e)})),G(["M","MM"],(function(e,t){t[1]=F(e)-1})),G(["MMM","MMMM"],(function(e,t,r,n){var i=r._locale.monthsParse(e,n,r._strict);null!=i?t[1]=i:p(r).invalidMonth=e}));var Kt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),zt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),qt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Jt=Wt,Qt=Wt;E("Y",0,0,(function(){var e=this.year();return e<=9999?D(e,4):"+"+e})),E(0,["YY",2],0,(function(){return this.year()%100})),E(0,["YYYY",4],0,"year"),E(0,["YYYYY",5],0,"year"),E(0,["YYYYYY",6,!0],0,"year"),x("year","y"),P("year",1),H("Y",Ut),H("YY",Rt,At),H("YYYY",Ft,xt),H("YYYYY",Nt,Ct),H("YYYYYY",Nt,Ct),G(["YYYYY","YYYYYY"],0),G("YYYY",(function(e,t){t[0]=2===e.length?i.parseTwoDigitYear(e):F(e)})),G("YY",(function(e,t){t[0]=i.parseTwoDigitYear(e)})),G("Y",(function(e,t){t[0]=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return F(e)+(F(e)>68?1900:2e3)};var Xt=N("FullYear",!0);E("w",["ww",2],"wo","week"),E("W",["WW",2],"Wo","isoWeek"),x("week","w"),x("isoWeek","W"),P("week",5),P("isoWeek",5),H("w",Rt),H("ww",Rt,At),H("W",Rt),H("WW",Rt,At),V(["w","ww","W","WW"],(function(e,t,r,n){t[n.substr(0,1)]=F(e)}));E("d",0,"do","day"),E("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),E("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),E("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),E("e",0,0,"weekday"),E("E",0,0,"isoWeekday"),x("day","d"),x("weekday","e"),x("isoWeekday","E"),P("day",11),P("weekday",11),P("isoWeekday",11),H("d",Rt),H("e",Rt),H("E",Rt),H("dd",(function(e,t){return t.weekdaysMinRegex(e)})),H("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),H("dddd",(function(e,t){return t.weekdaysRegex(e)})),V(["dd","ddd","dddd"],(function(e,t,r,n){var i=r._locale.weekdaysParse(e,n,r._strict);null!=i?t.d=i:p(r).invalidWeekday=e})),V(["d","e","E"],(function(e,t,r,n){t[n]=F(e)}));var Zt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),$t="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),er="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),tr=Wt,rr=Wt,nr=Wt;E("H",["HH",2],0,"hour"),E("h",["hh",2],0,le),E("k",["kk",2],0,(function(){return this.hours()||24})),E("hmm",0,0,(function(){return""+le.apply(this)+D(this.minutes(),2)}
vendor: 8,913 bytes, line 1
1)),E("hmmss",0,0,(function(){return""+le.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)})),E("Hmm",0,0,(function(){return""+this.hours()+D(this.minutes(),2)})),E("Hmmss",0,0,(function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)})),ue("a",!0),ue("A",!1),x("hour","h"),P("hour",13),H("a",de),H("A",de),H("H",Rt),H("h",Rt),H("k",Rt),H("HH",Rt,At),H("hh",Rt,At),H("kk",Rt,At),H("hmm",Pt),H("hmmss",Ot),H("Hmm",Pt),H("Hmmss",Ot),G(["H","HH"],3),G(["k","kk"],(function(e,t){var r=F(e);t[3]=24===r?0:r})),G(["a","A"],(function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e})),G(["h","hh"],(function(e,t,r){t[3]=F(e),p(r).bigHour=!0})),G("hmm",(function(e,t,r){var n=e.length-2;t[3]=F(e.substr(0,n)),t[4]=F(e.substr(n)),p(r).bigHour=!0})),G("hmmss",(function(e,t,r){var n=e.length-4,i=e.length-2;t[3]=F(e.substr(0,n)),t[4]=F(e.substr(n,2)),t[5]=F(e.substr(i)),p(r).bigHour=!0})),G("Hmm",(function(e,t){var r=e.length-2;t[3]=F(e.substr(0,r)),t[4]=F(e.substr(r))})),G("Hmmss",(function(e,t){var r=e.length-4,n=e.length-2;t[3]=F(e.substr(0,r)),t[4]=F(e.substr(r,2)),t[5]=F(e.substr(n))}));var ir,ar=N("Hours",!0),sr={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Kt,monthsShort:zt,week:{dow:0,doy:6},weekdays:Zt,weekdaysMin:er,weekdaysShort:$t,meridiemParse:/[ap]\.?m?\.?/i},or={},lr={},ur=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,cr=/Z|[+-]\d\d(?::?\d\d)?/,hr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],fr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],mr=/^\/?Date\((-?\d+)/i,pr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,gr={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};i.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var _r=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=we.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:_()})),vr=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=we.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:_()})),yr=["year","quarter","month","week","day","hour","minute","second","millisecond"];xe("Z",":"),xe("ZZ",""),H("Z",Bt),H("ZZ",Bt),G(["Z","ZZ"],(function(e,t,r){r._useUTC=!0,r._tzm=Ce(Bt,e)}));var Lr=/([\+\-]|\d\d)/gi;i.updateOffset=function(){};var br=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Tr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Ye.fn=Ee.prototype,Ye.invalid=function(){return Ye(NaN)};var Mr=je(1,"add"),kr=je(-1,"subtract");i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Sr=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));E("N",0,0,"eraAbbr"),E("NN",0,0,"eraAbbr"),E("NNN",0,0,"eraAbbr"),E("NNNN",0,0,"eraName"),E("NNNNN",0,0,"eraNarrow"),E("y",["y",1],"yo","eraYear"),E("y",["yy",2],0,"eraYear"),E("y",["yyy",3],0,"eraYear"),E("y",["yyyy",4],0,"eraYear"),H("N",Qe),H("NN",Qe),H("NNN",Qe),H("NNNN",(function(e,t){return t.erasNameRegex(e)})),H("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),G(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,r,n){var i=r._locale.erasParse(e,n,r._strict);i?p(r).era=i:p(r).invalidEra=e})),H("y",jt),H("yy",jt),H("yyy",jt),H("yyyy",jt),H("yo",(function(e,t){return t._eraYearOrdinalRegex||jt})),G(["y","yy","yyy","yyyy"],0),G(["yo"],(function(e,t,r){var n;r._locale._eraYearOrdinalRegex&&(n=e.match(r._locale._eraYearOrdinalRegex)),t[0]=r._locale.eraYearOrdinalParse?r._locale.eraYearOrdinalParse(e,n):parseInt(e,10)})),E(0,["gg",2],0,(function(){return this.weekYear()%100})),E(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ze("gggg","weekYear"),Ze("ggggg","weekYear"),Ze("GGGG","isoWeekYear"),Ze("GGGGG","isoWeekYear"),x("weekYear","gg"),x("isoWeekYear","GG"),P("weekYear",1),P("isoWeekYear",1),H("G",Ut),H("g",Ut),H("GG",Rt,At),H("gg",Rt,At),H("GGGG",Ft,xt),H("gggg",Ft,xt),H("GGGGG",Nt,Ct),H("ggggg",Nt,Ct),V(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,r,n){t[n.substr(0,2)]=F(e)})),V(["gg","GG"],(function(e,t,r,n){t[n]=i.parseTwoDigitYear(e)})),E("Q",0,"Qo","quarter"),x("quarter","Q"),P("quarter",7),H("Q",Et),G("Q",(function(e,t){t[1]=3*(F(e)-1)})),E("D",["DD",2],"Do","date"),x("date","D"),P("date",9),H("D",Rt),H("DD",Rt,At),H("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),G(["D","DD"],2),G("Do",(function(e,t){t[2]=F(e.match(Rt)[0])}));var wr=N("Date",!0);E("DDD",["DDDD",3],"DDDo","dayOfYear"),x("dayOfYear","DDD"),P("dayOfYear",4),H("DDD",Yt),H("DDDD",It),G(["DDD","DDDD"],(function(e,t,r){r._dayOfYear=F(e)})),E("m",["mm",2],0,"minute"),x("minute","m"),P("minute",14),H("m",Rt),H("mm",Rt,At),G(["m","mm"],4);var Dr=N("Minutes",!1);E("s",["ss",2],0,"second"),x("second","s"),P("second",15),H("s",Rt),H("ss",Rt,At),G(["s","ss"],5);var Er,Ar,Ir=N("Seconds",!1);for(E("S",0,0,(function(){return~~(this.millisecond()/100)})),E(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),E(0,["SSS",3],0,"millisecond"),E(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),E(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),E(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),E(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),E(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),E(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),x("millisecond","ms"),P("millisecond",16),H("S",Yt,Et),H("SS",Yt,At),H("SSS",Yt,It),Er="SSSS";Er.length<=9;Er+="S")H(Er,jt);for(Er="S";Er.length<=9;Er+="S")G(Er,tt);Ar=N("Milliseconds",!1),E("z",0,0,"zoneAbbr"),E("zz",0,0,"zoneName");var xr=y.prototype;xr.add=Mr,xr.calendar=function(e,t){1===arguments.length&&(Be(arguments[0])?(e=arguments[0],t=void 0):We(arguments[0])&&(t=arguments[0],e=void 0));var r=e||we(),n=Re(r,this).startOf("day"),a=i.calendarFormat(this,n)||"sameElse",s=t&&(k(t[a])?t[a].call(this,r):t[a]);return this.format(s||this.localeData().calendar(a,this,we(r)))},xr.clone=function(){return new y(this)},xr.diff=function(e,t,r){var n,i,a;if(!this.isValid())return NaN;if(!(n=Re(e,this)).isValid())return NaN;switch(i=6e4*(n.utcOffset()-this.utcOffset()),t=C(t)){case"year":a=Ge(this,n)/12;break;case"month":a=Ge(this,n);break;case"quarter":a=Ge(this,n)/3;break;case"second":a=(this-n)/1e3;break;case"minute":a=(this-n)/6e4;break;case"hour":a=(this-n)/36e5;break;case"day":a=(this-n-i)/864e5;break;case"week":a=(this-n-i)/6048e5;break;default:a=this-n}return r?a:Y(a)},xr.endOf=function(e){var t,r;if(void 0===(e=C(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?Je:qe,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;
vendor: 4,242 bytes, line 1
1case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-ze(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-ze(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-ze(t,1e3)-1}return this._d.setTime(t),i.updateOffset(this,!0),this},xr.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=A(this,e);return this.localeData().postformat(t)},xr.from=function(e,t){return this.isValid()&&(L(e)&&e.isValid()||we(e).isValid())?Ye({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},xr.fromNow=function(e){return this.from(we(),e)},xr.to=function(e,t){return this.isValid()&&(L(e)&&e.isValid()||we(e).isValid())?Ye({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},xr.toNow=function(e){return this.to(we(),e)},xr.get=function(e){return k(this[e=C(e)])?this[e]():this},xr.invalidAt=function(){return p(this).overflow},xr.isAfter=function(e,t){var r=L(e)?e:we(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=C(t)||"millisecond")?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf())},xr.isBefore=function(e,t){var r=L(e)?e:we(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=C(t)||"millisecond")?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf())},xr.isBetween=function(e,t,r,n){var i=L(e)?e:we(e),a=L(t)?t:we(t);return!!(this.isValid()&&i.isValid()&&a.isValid())&&(("("===(n=n||"()")[0]?this.isAfter(i,r):!this.isBefore(i,r))&&(")"===n[1]?this.isBefore(a,r):!this.isAfter(a,r)))},xr.isSame=function(e,t){var r,n=L(e)?e:we(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=C(t)||"millisecond")?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf()))},xr.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},xr.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},xr.isValid=function(){return g(this)},xr.lang=Sr,xr.locale=Ve,xr.localeData=Ke,xr.max=vr,xr.min=_r,xr.parsingFlags=function(){return f({},p(this))},xr.set=function(e,t){if("object"==typeof e){var r,n=function(e){var t,r=[];for(t in e)o(e,t)&&r.push({unit:t,priority:Dt[t]});return r.sort((function(e,t){return e.priority-t.priority})),r}(e=R(e));for(r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit])}else if(k(this[e=C(e)]))return this[e](t);return this},xr.startOf=function(e){var t,r;if(void 0===(e=C(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?Je:qe,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ze(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=ze(t,6e4);break;case"second":t=this._d.valueOf(),t-=ze(t,1e3)}return this._d.setTime(t),i.updateOffset(this,!0),this},xr.subtract=kr,xr.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},xr.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},xr.toDate=function(){return new Date(this.valueOf())},xr.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?A(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):k(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",A(r,"Z")):A(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}
vendor: 6,503 bytes, line 1
1,xr.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,r="moment",n="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY","-MM-DD[T]HH:mm:ss.SSS",this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))},"undefined"!=typeof Symbol&&null!=Symbol.for&&(xr[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),xr.toJSON=function(){return this.isValid()?this.toISOString():null},xr.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},xr.unix=function(){return Math.floor(this.valueOf()/1e3)},xr.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},xr.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},xr.eraName=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(r=this.startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].name;if(n[e].until<=r&&r<=n[e].since)return n[e].name}return""},xr.eraNarrow=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(r=this.startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].narrow;if(n[e].until<=r&&r<=n[e].since)return n[e].narrow}return""},xr.eraAbbr=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(r=this.startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].abbr;if(n[e].until<=r&&r<=n[e].since)return n[e].abbr}return""},xr.eraYear=function(){var e,t,r,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=a[e].since<=a[e].until?1:-1,n=this.startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until||a[e].until<=n&&n<=a[e].since)return(this.year()-i(a[e].since).year())*r+a[e].offset;return this.year()},xr.year=Xt,xr.isLeapYear=function(){return O(this.year())},xr.weekYear=function(e){return $e.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},xr.isoWeekYear=function(e){return $e.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},xr.quarter=xr.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},xr.month=Q,xr.daysInMonth=function(){return z(this.year(),this.month())},xr.week=xr.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},xr.isoWeek=xr.isoWeeks=function(e){var t=ne(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},xr.weeksInYear=function(){var e=this.localeData()._week;return ie(this.year(),e.dow,e.doy)},xr.weeksInWeekYear=function(){var e=this.localeData()._week;return ie(this.weekYear(),e.dow,e.doy)},xr.isoWeeksInYear=function(){return ie(this.year(),1,4)},xr.isoWeeksInISOWeekYear=function(){return ie(this.isoWeekYear(),1,4)},xr.date=wr,xr.day=xr.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},xr.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},xr.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},xr.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},xr.hour=xr.hours=ar,xr.minute=xr.minutes=Dr,xr.second=xr.seconds=Ir,xr.millisecond=xr.milliseconds=Ar,xr.utcOffset=function(e,t,r){var n,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ce(Bt,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&t&&(n=Pe(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),a!==e&&(!t||this._changeInProgress?Ue(this,Ye(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Pe(this)},xr.utc=function(e){return this.utcOffset(0,e)},xr.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Pe(this),"m")),this},xr.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ce(Ht,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},xr.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?we(e).utcOffset():0,(this.utcOffset()-e)%60==0)},xr.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},xr.isLocal=function(){return!!this.isValid()&&!this._isUTC},xr.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},xr.isUtc=Oe,xr.isUTC=Oe,xr.zoneAbbr=function(){return this._isUTC?"UTC":""},xr.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},xr.dates=T("dates accessor is deprecated. Use date instead.",wr),xr.months=T("months accessor is deprecated. Use month instead",Q),xr.years=T("years accessor is deprecated. Use year instead",Xt),xr.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),xr.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return v(t,this),(t=ke(t))._a?(e=t._isUTC?m(t._a):we(t._a),this._isDSTShifted=this.isValid()&&function(e,t,r){var n,i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),s=0;for(n=0;n<i;n++)(r&&e[n]!==t[n]||!r&&F(e[n])!==F(t[n]))&&s++;return s+a}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Cr=w.prototype;Cr.calendar=function(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return k(n)?n.call(t,r):n},Cr.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Tt).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}
vendor: 13,024 bytes, line 1
1,Cr.invalidDate=function(){return this._invalidDate},Cr.ordinal=function(e){return this._ordinal.replace("%d",e)},Cr.preparse=rt,Cr.postformat=rt,Cr.relativeTime=function(e,t,r,n){var i=this._relativeTime[r];return k(i)?i(e,t,r,n):i.replace(/%d/i,e)},Cr.pastFuture=function(e,t){var r=this._relativeTime[e>0?"future":"past"];return k(r)?r(t):r.replace(/%s/i,t)},Cr.set=function(e){var t,r;for(r in e)o(e,r)&&(k(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Cr.eras=function(){var e,t,r,n=this._eras||ge("en")._eras;for(e=0,t=n.length;e<t;++e){switch(typeof n[e].since){case"string":r=i(n[e].since).startOf("day"),n[e].since=r.valueOf()}switch(typeof n[e].until){case"undefined":n[e].until=1/0;break;case"string":r=i(n[e].until).startOf("day").valueOf(),n[e].until=r.valueOf()}}return n},Cr.erasParse=function(e,t,r){var n,i,a,s,o,l=this.eras();for(e=e.toUpperCase(),n=0,i=l.length;n<i;++n)if(a=l[n].name.toUpperCase(),s=l[n].abbr.toUpperCase(),o=l[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[n];break;case"NNNN":if(a===e)return l[n];break;case"NNNNN":if(o===e)return l[n]}else if([a,s,o].indexOf(e)>=0)return l[n]},Cr.erasConvertYear=function(e,t){var r=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*r},Cr.erasAbbrRegex=function(e){return o(this,"_erasAbbrRegex")||Xe.call(this),e?this._erasAbbrRegex:this._erasRegex},Cr.erasNameRegex=function(e){return o(this,"_erasNameRegex")||Xe.call(this),e?this._erasNameRegex:this._erasRegex},Cr.erasNarrowRegex=function(e){return o(this,"_erasNarrowRegex")||Xe.call(this),e?this._erasNarrowRegex:this._erasRegex},Cr.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||qt).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},Cr.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[qt.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Cr.monthsParse=function(e,t,r){var n,i,a;if(this._monthsParseExact)return q.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(i=m([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),r||this._monthsParse[n]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[n]=new RegExp(a.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(r&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}},Cr.monthsRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||X.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=Qt),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Cr.monthsShortRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||X.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=Jt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Cr.week=function(e){return ne(e,this._week.dow,this._week.doy).week},Cr.firstDayOfYear=function(){return this._week.doy},Cr.firstDayOfWeek=function(){return this._week.dow},Cr.weekdays=function(e,t){var r=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?ae(r,this._week.dow):e?r[e.day()]:r},Cr.weekdaysMin=function(e){return!0===e?ae(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Cr.weekdaysShort=function(e){return!0===e?ae(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Cr.weekdaysParse=function(e,t,r){var n,i,a;if(this._weekdaysParseExact)return se.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(i=m([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(r&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(r&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}},Cr.weekdaysRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||oe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=tr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Cr.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||oe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=rr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Cr.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||oe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Cr.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Cr.meridiem=function(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"},me("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===F(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=T("moment.lang is deprecated. Use moment.locale instead.",me),i.langData=T("moment.langData is deprecated. Use moment.localeData instead.",ge);var Rr=Math.abs,Pr=dt("ms"),Or=dt("s"),Yr=dt("m"),Fr=dt("h"),Nr=dt("d"),jr=dt("w"),Ur=dt("M"),Hr=dt("Q"),Br=dt("y"),Wr=ct("milliseconds"),Gr=ct("seconds"),Vr=ct("minutes"),Kr=ct("hours"),zr=ct("days"),qr=ct("months"),Jr=ct("years"),Qr=Math.round,Xr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11},Zr=Math.abs,$r=Ee.prototype;$r.isValid=function(){return this._isValid},$r.abs=function(){var e=this._data;return this._milliseconds=Rr(this._milliseconds),this._days=Rr(this._days),this._months=Rr(this._months),e.milliseconds=Rr(e.milliseconds),e.seconds=Rr(e.seconds),e.minutes=Rr(e.minutes),e.hours=Rr(e.hours),e.months=Rr(e.months),e.years=Rr(e.years),this},$r.add=function(e,t){return st(this,e,t,1)},$r.subtract=function(e,t){return st(this,e,t,-1)},$r.as=function(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if("month"===(e=C(e))||"quarter"===e||"year"===e)switch(r=this._months+lt(t=this._days+n/864e5),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(ut(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},$r.asMilliseconds=Pr,$r.asSeconds=Or,$r.asMinutes=Yr,$r.asHours=Fr,$r.asDays=Nr,$r.asWeeks=jr,$r.asMonths=Ur,$r.asQuarters=Hr,$r.asYears=Br,$r.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*F(this._months/12):NaN},$r._bubble=function(){var e,t,r,n,i,a=this._milliseconds,s=this._days,o=this._months,l=this._data;return a>=0&&s>=0&&o>=0||a<=0&&s<=0&&o<=0||(a+=864e5*ot(ut(o)+s),s=0,o=0),l.milliseconds=a%1e3,e=Y(a/1e3),l.seconds=e%60,t=Y(e/60),l.minutes=t%60,r=Y(t/60),l.hours=r%24,s+=Y(r/24),o+=i=Y(lt(s)),s-=ot(ut(i)),n=Y(o/12),o%=12,l.days=s,l.months=o,l.years=n,this},$r.clone=function(){return Ye(this)},$r.get=function(e){return e=C(e),this.isValid()?this[e+"s"]():NaN},$r.milliseconds=Wr,$r.seconds=Gr,$r.minutes=Vr,$r.hours=Kr,$r.days=zr,$r.weeks=function(){return Y(this.days()/7)},$r.months=qr,$r.years=Jr,$r.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var r,i,a=!1,s=Xr;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(a=e),"object"==typeof t&&(s=n({},Xr,t),null!=t.s&&null==t.ss&&(s.ss=t.s-1)),i=function(e,t,r,n){var i=Ye(e).abs(),a=Qr(i.as("s")),s=Qr(i.as("m")),o=Qr(i.as("h")),l=Qr(i.as("d")),u=Qr(i.as("M")),d=Qr(i.as("w")),c=Qr(i.as("y")),h=a<=r.ss&&["s",a]||a<r.s&&["ss",a]||s<=1&&["m"]||s<r.m&&["mm",s]||o<=1&&["h"]||o<r.h&&["hh",o]||l<=1&&["d"]||l<r.d&&["dd",l];return null!=r.w&&(h=h||d<=1&&["w"]||d<r.w&&["ww",d]),(h=h||u<=1&&["M"]||u<r.M&&["MM",u]||c<=1&&["y"]||["yy",c])[2]=t,h[3]=+e>0,h[4]=n,ht.apply(null,h)}(this,!a,s,r=this.localeData()),a&&(i=r.pastFuture(+this,i)),r.postformat(i)},$r.toISOString=mt,$r.toString=mt,$r.toJSON=mt,$r.locale=Ve,$r.localeData=Ke,$r.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",mt),$r.lang=Sr,E("X",0,0,"unix"),E("x",0,0,"valueOf"),H("x",Ut),H("X",/[+-]?\d+(\.\d{1,3})?/),G("X",(function(e,t,r){r._d=new Date(1e3*parseFloat(e))})),G("x",(function(e,t,r){r._d=new Date(F(e))})),i.version="2.27.0",pt=we,i.fn=xr,i.min=function(){var e=[].slice.call(arguments,0);return De("isBefore",e)},i.max=function(){var e=[].slice.call(arguments,0);return De("isAfter",e)},i.now=function(){return Date.now?Date.now():+new Date},i.utc=m,i.unix=function(e){return we(1e3*e)},i.months=function(e,t){return it(e,t,"months")},i.isDate=c,i.locale=me,i.invalid=_,i.duration=Ye,i.isMoment=L,i.weekdays=function(e,t,r){return at(e,t,r,"weekdays")},i.parseZone=function(){return we.apply(null,arguments).parseZone()},i.localeData=ge,i.isDuration=Ae,i.monthsShort=function(e,t){return it(e,t,"monthsShort")},i.weekdaysMin=function(e,t,r){return at(e,t,r,"weekdaysMin")},i.defineLocale=pe,i.updateLocale=function(e,t){if(null!=t){var r,n,i=sr;null!=or[e]&&null!=or[e].parentLocale?or[e].set(S(or[e]._config,t)):(null!=(n=fe(e))&&(i=n._config),t=S(i,t),null==n&&(t.abbr=e),(r=new w(t)).parentLocale=or[e],or[e]=r),me(e)}else null!=or[e]&&(null!=or[e].parentLocale?(or[e]=or[e].parentLocale,e===me()&&me(e)):null!=or[e]&&delete or[e]);return or[e]},i.locales=function(){return _t(or)},i.weekdaysShort=function(e,t,r){return at(e,t,r,"weekdaysShort")},i.normalizeUnits=C,i.relativeTimeRounding=function(e){return void 0===e?Qr:"function"==typeof e&&(Qr=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==Xr[e]&&(void 0===t?Xr[e]:(Xr[e]=t,"s"===e&&(Xr.ss=t-1),!0))},i.calendarFormat=function(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"},i.prototype=xr,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t.default=i}.call(this,r("Ono3")(e))},QfWi:function(e,t,r){"use strict";r.r(t);r("hosL"),r("GFNa"),r("FpZq"),r("ObL2");var n=r("ugae");t.default=n.a},RGKg:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%
1d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var r=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(r="a"),e+r},week:{dow:1,doy:4}})},RGqZ:function(e,t,r){"use strict";function n(e,t,r){var n={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?n[r][0]:n[r][1]}function i(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return i(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return i(e)}return i(e/=1e3)}r.r(t);var a=r("Q/DC");t.default=a.default.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return i(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return i(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:n,mm:"%d Minutten",h:n,hh:"%d Stonnen",d:n,dd:"%d Deeg",M:n,MM:"%d Méint",y:n,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},RS7N:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})},SFiE:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})},SwWG:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"}
1,a={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};t.default=n.default.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return a[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return i[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})},TEyo:function(e,t,r){"use strict";function n(e,t,r){var n,i;return"m"===r?t?"минута":"минуту":e+" "+(n=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[r].split("_"),n%10==1&&n%100!=11?i[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?i[1]:i[2])}r.r(t);var i=r("Q/DC"),a=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];t.default=i.default.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:a,longMonthsParse:a,shortMonthsParse:a,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|ок
vendor: 4,698 bytes, line 1
1т\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:n,m:n,mm:n,h:"час",hh:n,d:"день",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})},TFld:function(e){"use strict";e.exports=function(e){return!!e&&(e instanceof Array||Array.isArray(e)||e.length>=0&&e.splice instanceof Function)}},TJRi:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})},Tzm6:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),a="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.default=n.default.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?a[e.month()]:i[e.month()]:i},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%
1d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha invalida"})},UIJS:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(e,t){if(t.filteredOptions["player.integrated"])return e&&route("/listen")||!0;if(!window.popupPlayer){var r=t.filteredOptions&&t.filteredOptions["player.defaults.size"],n=t.entry.stationId>0?"/listen":"https://player.broadcast.radio/?autoplay=1&stationId="+t.rendered.stationId;e&&e.preventDefault();var i="site"!=t.filteredOptions["player.defaults.mode"];if(i=i&&window.innerWidth>400)window.open(n,"_blank","width="+r[0]+",height="+r[1]+",scrollbars=yes")||(window.location=n);else window.location=n;return!1}}},UWQU:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})},Uabd:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},a={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};t.default=n.default.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return a[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return i[e]}))},week:{dow:1,doy:4}})},"V/SH":function(e,t,r){"use strict";function n(e,t){return e&&$t.prototype.hasOwnProperty.call(e,t)}function i(e){return e&&(e===$t.prototype||e===Array.prototype)}function a(e){return i(e)||e===Function.prototype}function s(e){if(e){if(er)return er(e);var t=e.__proto__||e.prototype||(e.constructor?e.constructor.prototype:null);if(t)return t}return null}function o(e,t){var r=[],i=$t.getOwnPropertyNames;if(i)r=i(e);else for(var a in e)"string"==typeof a&&n(e,a)&&r.push(a);if(r&&r.length>0)for(var s=0;s<r.length;s++)t(r[s])}function l(e,t,r){return"constructor"!==t&&"function"==typeof e[t]&&(r||n(e,t))}function u(e){throw new TypeError("DynamicProto: "+e)}function d(e,t){for(var r=e.length-1;r>=0;r--)if(e[r]===t)return!0;return!1}function c(e,t,r,i){var o=null;if(e&&n(r,"_dynClass")){var l=e._dynInstFuncs||{};if((o=(l[r._dynClass]||{})[t])||u("Missing ["+t+"] function"),!o._dynInstChk&&!1!==l._dynInstChk){for(var c=!n(e,t),h=s(e),f=[];c&&h&&!a(h)&&!d(f,h);){var m=h[t];if(m){c=m===i;break}f.push(h),h=s(h)}try{c&&(e[t]=o),o._dynInstChk=1}catch(e){l._dynInstChk=!1}}}return o}function h(e,t,r){var n=t[e];return n===r&&(n=s(t)[e]),"function"!=typeof n&&u("["+e+"] is not a function"),n}function f(e,t,r,a,s){if(!i(e)){var u=r._dynInstFuncs=r._dynInstFuncs||{},d=u[t]=u[t]||{};!1!==u._dynInstChk&&(u._dynInstChk=!!s),o(r,(function(t){l(r,t,!1)&&r[t]!==a[t]&&(d[t]=r[t],delete r[t],(!n(e,t)||e[t]&&!e[t]._isDynProxy)&&(e[t]=function(e,t){var r=function r(){var n=c(this,t,e,r)||h(t,e,r);return n.apply(this,arguments)};return r._isDynProxy=1,r}(e,t)))}))}}function m(e,t){return n(e,"prototype")?e.name||t||"_unknown_":((e||{}).constructor||{}).name||t||"_unknown_"}
1function p(e,t,r,i){n(e,"prototype")||u("theClass is an invalid class definition.");var c=e.prototype;(function(e,t){if(er)for(var r=[],n=s(t);n&&!a(n)&&!d(r,n);){if(n===e)return!0;r.push(n),n=s(n)}return!1})(c,t)||u("["+m(e)+"] is not in class hierarchy of ["+m(t)+"]");var h=null;n(c,"_dynClass")?h=c._dynClass:(h="_dynCls$"+m(e,"_")+"$"+tr,tr++,c._dynClass=h);var g=p._dfOpts,_=!!g.useBaseInst;_&&i&&void 0!==i.useBaseInst&&(_=!!i.useBaseInst);var v=function(e){var t={};return o(e,(function(r){!t[r]&&l(e,r,!1)&&(t[r]=e[r])})),t}(t);r(t,function(e,t,r,n){function i(e,t,r){var i=t[r];if(i._isDynProxy&&n){var a=e._dynInstFuncs||{};!1!==a._dynInstChk&&(i=(a[t._dynClass]||{})[r]||i)}return function(){return i.apply(e,arguments)}}var u={};o(r,(function(e){u[e]=i(t,r,e)}));for(var c=s(e),h=[];c&&!a(c)&&!d(h,c);)o(c,(function(e){!u[e]&&l(c,e,!er)&&(u[e]=i(t,c,e))})),h.push(c),c=s(c);return u}(c,t,v,_));var y=!!er&&!!g.setInstFuncs;y&&i&&(y=!!i.setInstFuncs),f(c,h,t,v,!1!==y)}function g(e){return Tn.f.toString.call(e)}function _(e){return void 0===e||typeof e===Tn.l}function v(e){return null===e||_(e)}function y(e){return!v(e)}function L(e,t){return e&&Tn.e.call(e,t)}function b(e){return typeof e===Tn.j}function T(e){return typeof e===Tn.h}function M(e,t,r,n){void 0===n&&(n=!1);var i=!1;if(!v(e))try{v(e.addEventListener)?v(e.attachEvent)||(e.attachEvent("on"+t,r),i=!0):(e.addEventListener(t,r,n),i=!0)}catch(e){}return i}function k(e,t){if(e)for(var r in e)Tn.e.call(e,r)&&t.call(e,r,e[r])}function S(e,t){return!(!e||!t)&&-1!==e.indexOf(t)}function w(e){return"[object Date]"===g(e)}function D(e){return"[object Array]"===g(e)}function E(e){return"[object Error]"===g(e)}function A(e){return"string"==typeof e}function I(e){return"number"==typeof e}function x(e){if(w(e)){var t=function(e){var t=String(e);return 1===t.length&&(t="0"+t),t};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function C(e,t,r){var n=e.length;try{for(var i=0;i<n&&(!(i in e)||-1!==t.call(r||e,e[i],i,e));i++);}catch(e){}}function R(e,t,r){var n=e.length,i=r||0;try{for(var a=Math.max(i>=0?i:n-Math.abs(i),0);a<n;a++)if(a in e&&e[a]===t)return a}catch(e){}return-1}function P(e,t,r){var n=e.length,i=r||e,a=new Array(n);try{for(var s=0;s<n;s++)s in e&&(a[s]=t.call(i,e[s],e))}catch(e){}return a}function O(e,t){var r,n=e.length,i=0;if(arguments.length>=3)r=arguments[2];else{for(;i<n&&!(i in e);)i++;r=e[i++]}for(;i<n;)i in e&&(r=t(r,e[i],i,e)),i++;return r}function Y(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}function F(e){var t=typeof e;t===Tn.h||t===Tn.j&&null!==e||Object(Zt.c)("objKeys called on non-object");var r=[];for(var n in e)e&&Tn.e.call(e,n)&&r.push(n);if(kn)for(var i=Sn.length,a=0;a<i;a++)e&&Tn.e.call(e,Sn[a])&&r.push(Sn[a]);return r}function N(e,t,r,n){if(Mn)try{var i={enumerable:!0,configurable:!0};return r&&(i.get=r),n&&(i.set=n),Mn(e,t,i),!0}catch(e){}return!1}function j(){var e=Date;return e.now?e.now():(new e).getTime()}function U(e){return E(e)?e.name:""}function H(e,t,r,n,i){var a=r;return e&&((a=e[t])===r||i&&!i(a)||n&&!n(r)||(e[t]=a=r)),a}function B(e,t,r){var n;return e?!(n=e[t])&&v(n)&&(n=_(r)?{}:r,e[t]=n):n=_(r)?{}:r,n}function W(e){return!e}function G(e){return!!e}function V(e){throw new Error(e)}function K(e){return e&&(e=Object(Tn.b)(Tn.a?Object(Tn.a)({},e):e)),e}function z(e,t){var r=!1;if(e){try{if(!(r=t in e)){var n=e[Tn.k];n&&(r=t in n)}}catch(e){}if(!r)try{r=!_((new e)[t])}catch(e){}}return r}function q(e){var t=Object(Zt.a)();return t&&t[e]?t[e]:"window"===e&&J()?window:null}function J(){return Boolean(typeof window===Tn.j&&window)}function Q(){return J()?window:q("window")}function X(){return Boolean(typeof document===Tn.j&&document)}function Z(){return X()?document:q("document")}function $(){return Boolean(typeof navigator===Tn.j&&navigator)}function ee(){return $()?navigator:q("navigator")}function te(){return Boolean(typeof history===Tn.j&&history)?history:q("history")}function re(e){if(e&&En){var t=q("__mockLocation");if(t)return t}return typeof location===Tn.j&&location?location:q("location")}function ne(){return q("performance")}function ie(){return Boolean(typeof JSON===Tn.j&&JSON||null!==q("JSON"))}function ae(){return ie()?JSON||q("JSON"):null}function se(){var e=ee();if(e&&(e.userAgent!==Dn||null===wn)){var t=((Dn=e.userAgent)||"").toLowerCase();wn=S(t,"msie")||S(t,"trident/")}return wn}function oe(e){if(void 0===e&&(e=null),!e){var t=ee()||{};e=t?(t.userAgent||"").toLowerCase():""}var r=(e||"").toLowerCase();if(S(r,"msie"))return parseInt(r.split("msie")[1]);if(S(r,"trident/")){var n=parseInt(r.split("trident/")[1]);if(n)return n+4}return null}function le(e){var t=Object[Tn.k].toString.call(e),r="";return"[object Error]"===t?r="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":ie()&&(r=ae().stringify(e)),t+r}function ue(){return null===In&&(In=$()&&Boolean(ee().sendBeacon)),In}function de(e){var t=!1;try{t=!!q("fetch");var r=q("Request");t&&e&&r&&(t=z(r,"keepalive"))}catch(e){}return t}function ce(){return null===An&&(An=void 0!==typeof XDomainRequest)&&he()&&(An=An&&!z(q("XMLHttpRequest"),"withCredentials")),An}function he(){var e=!1;try{e=!!q("XMLHttpRequest")}catch(e){}return e}function fe(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function me(e,t){return(e||{}).logger||new Cn(t)}function pe(e,t,r,n,i){if(e){var a=e;if(T(a.getPerfMgr)&&(a=a.getPerfMgr()),a){var s=void 0,o=a.getCtx("CoreUtils.doPerf");try{if(s=a.create(t(),n,i)){if(o&&s.setCtx&&(s.setCtx(Pn.ParentContextKey,o),o.getCtx&&o.setCtx)){var l=o.getCtx(Pn.ChildrenContextKey);l||o.setCtx(Pn.ChildrenContextKey,l=[]),l.push(s)}
1return a.setCtx("CoreUtils.doPerf",s),r(s)}}catch(e){s&&s.setCtx&&s.setCtx("exception",e)}finally{s&&a.fire(s),a.setCtx("CoreUtils.doPerf",o)}}}return r()}function ge(e,t){var r=[];if(e&&e.length>0)for(var n=null,i=0;i<e.length;i++){var a=e[i];if(a&&T(a.processTelemetry)){var s=new Yn(a,t);r.push(s),n&&n.setNext(s),n=s}}return r.length>0?r[0]:null}function _e(e,t){for(var r=[],n=null,i=e.getNext();i;){var a=i.getPlugin();a&&(n&&T(n.setNextPlugin)&&T(a.processTelemetry)&&n.setNextPlugin(a),T(a.isInitialized)&&a.isInitialized()||r.push(a),n=a,i=i.getNext())}C(r,(function(r){r.initialize(e.getCfg(),e.core(),t,e.getNext())}))}function ve(e){return e.sort((function(e,t){var r=0,n=T(t.processTelemetry);return T(e.processTelemetry)?r=n?e.priority-t.priority:1:n&&(r=-1),r}))}function ye(e,t){var r=Te._ckMgr||Vn._ckMgr;return r||(r=Te._ckMgr=Te(e,t),Vn._ckMgr=r),r}function Le(e){return!e||e.isEnabled()}function be(e,t){var r;if(e)r=e.getCookieMgr();else if(t){var n=t.cookieCfg;r=n._ckMgr?n._ckMgr:Te(t)}return r||(r=ye(t,(e||{}).logger)),r}function Te(e,t){var r=function(e){var t=e.cookieCfg=e.cookieCfg||{};if(H(t,"domain",e.cookieDomain,y,v),H(t,"path",e.cookiePath||"/",null,v),v(t.enabled)){var r=void 0;_(e.isCookieUseDisabled)||(r=!e.isCookieUseDisabled),_(e.disableCookiesUsage)||(r=!e.disableCookiesUsage),t.enabled=r}return t}(e||Vn),n=r.path||"/",i=r.domain,a=!1!==r.enabled,s={isEnabled:function(){var e=a&&Me(t),r=Vn._ckMgr;return e&&r&&s!==r&&(e=Le(r)),e},setEnabled:function(e){a=!1!==e},set:function(e,t,a,o,l){var u=!1;if(Le(s)){var d={},c=Y(t||""),h=c.indexOf(";");if(-1!==h&&(c=Y(t.substring(0,h)),d=ke(t.substring(h+1))),H(d,"domain",o||i,G,_),!v(a)){var f=se();if(_(d.expires)){var m=j()+1e3*a;if(m>0){var p=new Date;p.setTime(m),H(d,"expires",Se(p,f?"toGMTString":"toUTCString")||Se(p,f?"toGMTString":"toUTCString")||"",G)}}f||H(d,"max-age",""+a,null,_)}var g=re();g&&"https:"===g.protocol&&(H(d,"secure",null,null,_),null===Hn&&(Hn=!Ae((ee()||{}).userAgent)),Hn&&H(d,"SameSite","None",null,_)),H(d,"path",l||n,null,_),(r.setCookie||Ee)(e,we(c,d)),u=!0}return u},get:function(e){var t="";return Le(s)&&(t=(r.getCookie||De)(e)),t},del:function(e,t){var r=!1;return Le(s)&&(r=s.purge(e,t)),r},purge:function(e,n){var i,a=!1;if(Me(t)){var s=((i={}).path=n||"/",i.expires="Thu, 01 Jan 1970 00:00:01 GMT",i);se()||(s["max-age"]="0"),(r.delCookie||Ee)(e,we("",s)),a=!0}return a}};return s._ckMgr=s,s}function Me(e){if(null===Un){Un=!1;try{Un=void 0!==(Wn||{}).cookie}catch(t){e&&e.throwInternal(rr.WARNING,fn,"Cannot access document.cookie - "+U(t),{exception:le(t)})}}return Un}function ke(e){var t={};e&&e.length&&C(Y(e).split(";"),(function(e){if(e=Y(e||"")){var r=e.indexOf("=");-1===r?t[e]=null:t[Y(e.substring(0,r))]=Y(e.substring(r+1))}}));return t}function Se(e,t){return T(e[t])?e[t]():null}function we(e,t){var r=e||"";return k(t,(function(e,t){r+="; "+e+(v(t)?"":"="+t)})),r}function De(e){var t="";if(Wn){var r=Wn.cookie||"";Bn!==r&&(Gn=ke(r),Bn=r),t=Y(Gn[e]||"")}return t}function Ee(e,t){Wn&&(Wn.cookie=e+"="+t)}function Ae(e){return!!A(e)&&(!(!S(e,"CPU iPhone OS 12")&&!S(e,"iPad; CPU OS 12"))||(!!(S(e,"Macintosh; Intel Mac OS X 10_14")&&S(e,"Version/")&&S(e,"Safari"))||(!(!S(e,"Macintosh; Intel Mac OS X 10_14")||!function(e,t){if(e&&t){var r=t.length,n=e.length;if(e===t)return!0;if(n>=r){for(var i=n-1,a=r-1;a>=0;a--){if(e[i]!=t[a])return!1;i--}return!0}}return!1}(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))||(!(!S(e,"Chrome/5")&&!S(e,"Chrome/6"))||(!(!S(e,"UnrealEngine")||S(e,"Chrome"))||!(!S(e,"UCBrowser/12")&&!S(e,"UCBrowser/11")))))))}function Ie(e,t){return new On(t)}function xe(e){e<0&&(e>>>=0),Qn=123456789+e&4294967295,Xn=987654321-e&4294967295,Jn=!0}function Ce(){try{var e=2147483647&j();xe((4294967296*Math.random()^e)+e)}catch(e){}}function Re(e){var t,r=q("crypto")||q("msCrypto");return r&&r.getRandomValues?t=4294967295&r.getRandomValues(new Uint32Array(1))[0]:se()?(Jn||Ce(),t=4294967295&Pe()):t=Math.floor(4294967296*Math.random()|0),e||(t>>>=0),t}function Pe(e){var t=((Xn=36969*(65535&Xn)+(Xn>>16)&4294967295)<<16)+(65535&(Qn=18e3*(65535&Qn)+(Qn>>16)&4294967295))>>>0&4294967295|0;return e||(t>>>=0),t}function Oe(e,t){var r=!1,n=Q();n&&(r=M(n,e,t),r=M(n.body,e,t)||r);var i=Z();return i&&(r=M(i,e,t)||r),r}function Ye(e){void 0===e&&(e=22);for(var t=Re()>>>0,r=0,n="";n.length<e;)r++,n+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/".charAt(63&t),t>>>=6,5===r&&(t=(Re()<<2&4294967295|3&t)>>>0,r=0);return n}function Fe(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],r="",n=0;n<4;n++)r+=t[15&(e=Re())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&Re())|0];return r.substr(0,8)+r.substr(9,4)+"4"+r.substr(13,3)+i+r.substr(16,3)+r.substr(19,12)}function Ne(e,t,r){var n=t.length,i=je(e,t);if(i.length!==n){for(var a=0,s=i;void 0!==r[s];)a++,s=i.substring(0,147)+qe(a);i=s}return i}function je(e,t){var r;return t&&(t=Y(t.toString())).length>150&&(r=t.substring(0,150),e.throwInternal(rr.WARNING,nn,"name is too long.  It has been truncated to 150 characters.",{name:t},!0)),r||t}function Ue(e,t,r){var n;return void 0===r&&(r=1024),t&&(r=r||1024,(t=Y(t)).toString().length>r&&(n=t.toString().substring(0,r),e.throwInternal(rr.WARNING,on,"string value is too long. It has been truncated to "+r+" characters.",{value:t},!0))),n||t}function He(e,t){return ze(e,t,2048,cn)}function Be(e,t){var r;return t&&t.length>32768&&(r=t.substring(0,32768),e.throwInternal(rr.WARNING,rn,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),r||t}function We(e,t){var r;if(t){var n=""+t;n.length>32768&&(r=n.substring(0,32768),e.throwInternal(rr.WARNING,$r,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return r||t}function Ge(e,t){if(t){var r={};k(t,(function(t,n){if(b(n)&&ie())try{n=ae().stringify(n)}catch(t){e.throwInternal(rr.WARNING,Xr,"custom property is not valid",{exception:t},!0)}n=Ue(e,n,8192),t=Ne(e,t,r),r[t]=n})),t=r}return t}function Ve(e,t){if(t){var r={};k(t,(function(t,n){t=Ne(e,t,r),r[t]=n})),t=r}return t}function Ke(e,t){return t?ze(e,t,128,mn).toString():t}function ze(e,t,r,n){var i;return t&&(t=Y(t)).length>r&&(i=t.substring(0,r),e.throwInternal(rr.WARNING,n,"input is too long, it has been truncated to "+r+" characters.",{data:t},!0)),i||t}function qe(e){var t="00"+e;return t.substr(t.length-3)}function Je(e,t){return void 0===t&&(t=!1),null==e?t:"true"===e.toString().toLowerCase()}function Qe(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,r=""+Math.floor(e/1e3)%60,n=""+Math.floor(e/6e4)%60,i=""+Math.floor(e/36e5)%24,a=Math.floor(e/864e5);return(a>0?a+".":"")+(i=i.length<2?"0"+i:i)+":"+(n=n.length<2?"0"+n:n)+":"+(r=r.length<2?"0"+r:r)+"."+(t=1===t.length?"00"+t:2===t.length?"0"+t:t)}function Xe(e,t){var r=null;return C(e,(function(e){if(e.identifier===t)return r=e,-1})),r}function Ze(e,t,r,n,i){return!i&&A(e)&&("Script error."===e||"Script error"===e)}function $e(e,t){var r=e;return r&&!A(r)&&(JSON&&JSON.stringify?(r=JSON.stringify(e),!t||r&&"{}"!==r||(r=T(e.toString)?e.toString():""+e)):r=e+" - (Missing JSON.stringify)"),r||""}function et(e,t){var r=e;return e&&(r&&!A(r)&&(r=e.message||e.description||r),r&&!A(r)&&(r=$e(r,!0)),e.filename&&(r=r+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&"String"!==t&&"Object"!==t&&"Error"!==t&&-1===(r||"").indexOf(t)&&(r=t+": "+r),r||""}function tt(e){return e&&e.src&&A(e.src)&&e.obj&&D(e.obj)}function rt(e){var t=e||"";A(t)||(t=A(t.stack)?t.stack:""+t);var r=t.split("\n");return{src:t,obj:r}}function nt(e){var t=null;if(e)try{if(e.stack)t=rt(e.stack);else if(e.error&&e.error.stack)t=rt(e.error.stack);else if(e.exception&&e.exception.stack)t=rt(e.exception.stack);else if(tt(e))t=e;else if(tt(e.stackDetails))t=e.stackDetails;else if(window.opera&&e.message)t=function(e){for(var t=[],r=e.split("\n"),n=0;n<r.length;n++){var i=r[n];r[n+1]&&(i+="@"+r[n+1],n++),t.push(i)}return{src:e,obj:t}}(e.message);else if(A(e))t=rt(e);else{var r=e.message||e.description||"";A(e.errorSrc)&&(r&&(r+="\n"),r+=" from "+e.errorSrc),r&&(t=rt(r))}}catch(e){t=rt(e)}return t||{src:"",obj:null}}function it(e){var t="";if(e&&!(t=e.typeName||e.name||""))try{var r=/function (.{1,200})\(/.exec(e.constructor.toString());t=r&&r.length>1?r[1]:""}catch(e){}return t}function at(e){if(e)try{if(!A(e)){var t=it(e),r=$e(e,!1);return r&&"{}"!==r||(e.error&&(t=it(e=e.error)),r=$e(e,!0)),0!==r.indexOf(t)&&"String"!==t?t+":"+r:r}}catch(e){}return""+(e||"")}function st(){return dt()?ot(ai.LocalStorage):null}function ot(e){try{if(v(Object(Zt.a)()))return null;var t=new Date,r=q(e===ai.LocalStorage?"localStorage":"sessionStorage");r.setItem(t.toString(),t.toString());var n=r.getItem(t.toString())!==t.toString();if(r.removeItem(t.toString()),!n)return r}catch(e){}return null}function lt(){return mt()?ot(ai.SessionStorage):null}function ut(){Li=!1,bi=!1}function dt(){return void 0===Li&&(Li=!!ot(ai.LocalStorage)),Li}function ct(e,t){var r=st();if(null!==r)try{return r.getItem(t)}catch(t){Li=!1,e.throwInternal(rr.WARNING,sr,"Browser failed read of local storage. "+U(t),{exception:le(t)})}return null}function ht(e,t,r){var n=st();if(null!==n)try{return n.setItem(t,r),!0}catch(t){Li=!1,e.throwInternal(rr.WARNING,lr,"Browser failed write to local storage. "+U(t),{exception:le(t)})}return!1}function ft(e,t){var r=st();if(null!==r)try{return r.removeItem(t),!0}catch(t){Li=!1,e.throwInternal(rr.WARNING,dr,"Browser failed removal of local storage item. "+U(t),{exception:le(t)})}return!1}function mt(){return void 0===bi&&(bi=!!ot(ai.SessionStorage)),bi}function pt(e,t){var r=lt();if(null!==r)try{return r.getItem(t)}catch(t){bi=!1,e.throwInternal(rr.WARNING,or,"Browser failed read of session storage. "+U(t),{exception:le(t)})}return null}function gt(e,t,r){var n=lt();if(null!==n)try{return n.setItem(t,r),!0}catch(t){bi=!1,e.throwInternal(rr.WARNING,ur,"Browser failed write to session storage. "+U(t),{exception:le(t)})}return!1}function _t(e,t){var r=lt();if(null!==r)try{return r.removeItem(t),!0}catch(t){bi=!1,e.throwInternal(rr.WARNING,cr,"Browser failed removal of session storage item. "+U(t),{exception:le(t)})}return!1}function vt(e){var t=null;
1if(T(Event))t=new Event(e);else{var r=Z();r&&r.createEvent&&(t=r.createEvent("Event")).initEvent(e,!0,!0)}return t}function yt(e){var t=ki,r=Si,n=r[t];return Mi.createElement?r[t]||(n=r[t]=Mi.createElement("a")):n={host:Tt(e,!0)},n.href=e,++t>=r.length&&(t=0),ki=t,n}function Lt(e){var t,r=yt(e);return r&&(t=r.href),t}function bt(e,t){return e?e.toUpperCase()+" "+t:t}function Tt(e,t){var r=Mt(e,t)||"";if(r){var n=r.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(null!=n&&n.length>3&&A(n[2])&&n[2].length>0)return n[2]+(n[3]||"")}return r}function Mt(e,t){var r=null;if(e){var n=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i);if(null!=n&&n.length>2&&A(n[2])&&n[2].length>0&&(r=n[2]||"",t&&n.length>2)){var i=(n[1]||"").toLowerCase(),a=n[3]||"";("http"===i&&":80"===a||"https"===i&&":443"===a)&&(a=""),r+=a}}return r}function kt(e){return-1!==wi.indexOf(e.toLowerCase())}function St(){var e=ne();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0)return t}return j()}function wt(e,t){var r=null;return 0===e||0===t||v(e)||v(t)||(r=t-e),r}function Dt(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}function Et(e){var t="ai."+e+".";return function(e){return t+e}}function At(e,t,r){return H(e,t,r,G)}function It(e,t,r){v(e)||k(e,(function(e,n){I(n)?r[e]=n:A(n)?t[e]=n:ie()&&(t[e]=ae().stringify(n))}))}function xt(e,t){v(e)||k(e,(function(r,n){e[r]=n||t}))}function Ct(e,t,r,n){var i=new Ji(e,n,t);At(i,"sampleRate",r.sampleRate),(r.baseData||{}).startTime&&(i.time=x(r.baseData.startTime)),i.iKey=r.iKey;var a=r.iKey.replace(/-/g,"");return i.name=i.name.replace("{0}",a),function(e,t){var r=t.tags=t.tags||{},n=e.ext=e.ext||{},i=e.tags=e.tags||[],a=n.user;a&&(At(r,qi.userAuthUserId,a.authId),At(r,qi.userId,a.id||a.localId));var s=n.app;s&&At(r,qi.sessionId,s.sesId);var o=n.device;o&&(At(r,qi.deviceId,o.id||o.localId),At(r,qi.deviceType,o.deviceClass),At(r,qi.deviceIp,o.ip),At(r,qi.deviceModel,o.model),At(r,qi.deviceType,o.deviceType));var l=e.ext.web;if(l){At(r,qi.deviceLanguage,l.browserLang),At(r,qi.deviceBrowserVersion,l.browserVer),At(r,qi.deviceBrowser,l.browser);var u=t.data=t.data||{},d=u.baseData=u.baseData||{},c=d.properties=d.properties||{};At(c,"domain",l.domain),At(c,"isManual",l.isManual?"true":null),At(c,"screenRes",l.screenRes),At(c,"userConsent",l.userConsent?"true":null)}var h=n.os;h&&At(r,qi.deviceOS,h.name);var f=n.trace;f&&(At(r,qi.operationParentId,f.parentID),At(r,qi.operationName,f.name),At(r,qi.operationId,f.traceID));for(var m={},p=i.length-1;p>=0;p--){k(i[p],(function(e,t){m[e]=t})),i.splice(p,1)}k(i,(function(e,t){m[e]=t}));var g=Object(Xt.a)(Object(Xt.a)({},r),m);g[qi.internalSdkVersion]||(g[qi.internalSdkVersion]="javascript:"+$i.Version),t.tags=K(g)}(r,i),r.tags=r.tags||[],K(i)}function Rt(e,t){v(t.baseData)&&e.throwInternal(rr.CRITICAL,qr,"telemetryItem.baseData cannot be null.")}function Pt(e,t,r){Rt(e,t);var n={},i={};t.baseType!==ti.dataType&&(n.baseTypeSource=t.baseType),t.baseType===ti.dataType?(n=t.baseData.properties||{},i=t.baseData.measurements||{}):t.baseData&&It(t.baseData,n,i),It(t.data,n,i),v(r)||xt(n,r);var a=new ti(e,t.baseData.name,n,i),s=new Zi(ti.dataType,a);return Ct(e,ti.envelopeType,t,s)}function Ot(e){try{return e.responseText}catch(e){}return null}function Yt(e){return!("string"!=typeof e||!e||e.match(/,|;|=| |\|/))}function Ft(e,t){e&&e[t]&&0===F(e[t]).length&&delete e[t]}function Nt(e,t){if(e)for(var r=0;r<e.length&&!t(e[r],r);r++);}function jt(e,t,r,n,i){i>=0&&i<=2&&Nt(e,(function(e,a){var s=e.cbks,o=s[_a[i]];if(o){t.ctx=function(){return n[a]=n[a]||{}};try{o.apply(t.inst,r)}catch(e){var l=t.err;try{var u=s[_a[2]];u&&(t.err=e,u.apply(t.inst,r))}catch(e){}finally{t.err=l}}}}))}function Ut(e,t,r){var n=null;return e&&(L(e,t)?n=e:r&&(n=Ut(function(e){if(e){if(va)return va(e);var t=e.__proto__||e[Tn.k]||e.constructor;if(t)return t}return null}(e),t,!1))),n}function Ht(e,t,r,n){if(void 0===n&&(n=!0),e&&t&&r){var i=Ut(e,t,n);if(i){var a=i[t];if(typeof a===Tn.h){var s=a._aiHooks;if(!s){var o=(u=s={i:0,n:t,f:a,h:[]},function(){function e(e,t){return Nt(t,(function(t){e.push(t)})),e}function t(t,r){(n=e([],n))[t]=r,o=e([a],n)}var r=this,n=arguments,i=u.h,a={name:u.n,inst:r,ctx:null,set:t},s=[],o=e([a],n);jt(i,a,o,s,0);var l=u.f;try{a.rslt=l.apply(r,n)}catch(e){throw a.err=e,jt(i,a,o,s,3),e}return jt(i,a,o,s,1),a.rslt});o._aiHooks=s,i[t]=o}var l={id:s.i,cbks:r,rm:function(){var e=this.id;Nt(s.h,(function(t,r){if(t.id===e)return s.h.splice(r,1),1}))}};return s.i++,s.h.push(l),l}}}var u;return null}function Bt(e,t,r){var n=0,i=e[t],a=e[r];return i&&a&&(n=wt(i,a)),n}
1function Wt(e,t,r,n,i){var a=0,s=Bt(r,n,i);return s&&(a=Gt(e,t,Qe(s))),a}function Gt(e,t,r){var n=0;e&&t&&r&&((e.ajaxPerf=e.ajaxPerf||{})[t]=r,n=1);return n}function Vt(e){var t="";try{v(e)||v(e.ajaxData)||v(e.ajaxData.requestUrl)||(t+="(url: '"+e.ajaxData.requestUrl+"')")}catch(e){}return t}function Kt(e,t,r,n,i){e.diagLog().throwInternal(rr.CRITICAL,t,r,n,i)}function zt(e,t,r,n,i){e.diagLog().throwInternal(rr.WARNING,t,r,n,i)}function qt(e,t,r){return function(n){Kt(e,t,r,{ajaxDiagnosticsMessage:Vt(n.inst),exception:le(n.err)})}}function Jt(e,t){return e&&t?e.indexOf(t):-1}function Qt(e){if(!e)return{};var t=O(e.split(";"),(function(e,t){var r=t.split("=");2===r.length&&(e[r[0].toLowerCase()]=r[1]);return e}),{});if(F(t).length>0){if(t.endpointsuffix)t.ingestionendpoint=t.ingestionendpoint||"https://"+(t.location?t.location+".":"")+"dc."+t.endpointsuffix;t.ingestionendpoint=t.ingestionendpoint||"https://dc.services.visualstudio.com"}return t}r.d(t,"a",(function(){return Sa}));var Xt=r("f2uY"),Zt=r("I4e3"),$t=Object,er=$t.getPrototypeOf,tr=0;p._dfOpts={setInstFuncs:!0,useBaseInst:!0};var rr,nr=p;!function(e){e[e.CRITICAL=1]="CRITICAL",e[e.WARNING=2]="WARNING"}(rr||(rr={}));var ir,ar=0,sr=1,or=2,lr=3,ur=4,dr=5,cr=6,hr=7,fr=8,mr=9,pr=10,gr=11,_r=12,vr=13,yr=14,Lr=15,br=16,Tr=17,Mr=18,kr=19,Sr=20,wr=22,Dr=23,Er=24,Ar=25,Ir=26,xr=27,Cr=28,Rr=29,Pr=30,Or=31,Yr=32,Fr=33,Nr=35,jr=36,Ur=37,Hr=38,Br=39,Wr=40,Gr=41,Vr=42,Kr=43,zr=45,qr=46,Jr=47,Qr=48,Xr=49,Zr=50,$r=52,en=54,tn=55,rn=56,nn=57,an=58,sn=60,on=61,ln=62,un=63,dn=64,cn=66,hn=67,fn=68,mn=69,pn=70,gn=71,_n=72,vn=73,yn=74,Ln=100,bn=104,Tn=r("ogkr"),Mn=Tn.d,kn=!{toString:null}.propertyIsEnumerable("toString"),Sn=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],wn=null,Dn=null,En=!1,An=null,In=null,xn=function(){function e(e,t,r,n){void 0===r&&(r=!1);this.messageId=e,this.message=(r?"AI: ":"AI (Internal): ")+e;var i="";ie()&&(i=ae().stringify(n));var a=(t?" message:"+fe(t):"")+(n?" props:"+fe(i):"");this.message+=a}return e.dataType="MessageData",e}(),Cn=function e(t){this.identifier="DiagnosticLogger",this.queue=[];var r=0,n={};nr(e,this,(function(e){function i(e,r){var n=t[e];return v(n)?r:n}v(t)&&(t={}),e.consoleLoggingLevel=function(){return i("loggingLevelConsole",0)},e.telemetryLoggingLevel=function(){return i("loggingLevelTelemetry",1)},e.maxInternalMessageLimit=function(){return i("maxMessageLimit",25)},e.enableDebugExceptions=function(){return i("enableDebugExceptions",!1)},e.throwInternal=function(t,r,i,a,s){void 0===s&&(s=!1);var o=new xn(r,i,s,a);if(e.enableDebugExceptions())throw o;if(!_(o.message)){var l=e.consoleLoggingLevel();if(s){var u=+o.messageId;!n[u]&&l>=rr.WARNING&&(e.warnToConsole(o.message),n[u]=!0)}else l>=rr.WARNING&&e.warnToConsole(o.message);e.logInternalMessage(t,o)}},e.warnToConsole=function(e){var t=typeof console!==Tn.l?console:q("console");if(t){var r="log";t.warn&&(r="warn"),T(t[r])&&t[r](e)}},e.resetInternalMessageCount=function(){r=0,n={}},e.logInternalMessage=function(t,i){if(!(r>=e.maxInternalMessageLimit())){var a=!0,s="AITR_"+i.messageId;if(n[s]?a=!1:n[s]=!0,a&&(t<=e.telemetryLoggingLevel()&&(e.queue.push(i),r++),r===e.maxInternalMessageLimit())){var o="Internal events throttle limit per PageView reached for this app.",l=new xn(Dr,o,!1);e.queue.push(l),e.warnToConsole(o)}}}}))},Rn=null,Pn=function(){function e(t,r,n){var i,a=this,s=!1;(a.start=j(),a.name=t,a.isAsync=n,a.isChildEvt=function(){return!1},T(r))&&(s=N(a,"payload",(function(){return!i&&T(r)&&(i=r(),r=null),i})));a.getCtx=function(t){return t?t===e.ParentContextKey||t===e.ChildrenContextKey?a[t]:(a.ctx||{})[t]:null},a.setCtx=function(t,r){if(t)if(t===e.ParentContextKey)a[t]||(a.isChildEvt=function(){return!0}),a[t]=r;else if(t===e.ChildrenContextKey)a[t]=r;else{(a.ctx=a.ctx||{})[t]=r}},a.complete=function(){var t=0,n=a.getCtx(e.ChildrenContextKey);if(D(n))for(var i=0;i<n.length;i++){var o=n[i];o&&(t+=o.time)}a.time=j()-a.start,a.exTime=a.time-t,a.complete=function(){},!s&&T(r)&&(a.payload=r())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),On=function e(t){this.ctx={},nr(e,this,(function(e){e.create=function(e,t,r){return new Pn(e,t,r)},e.fire=function(e){e&&(e.complete(),t&&T(t.perfEvent)&&t.perfEvent(e))},e.setCtx=function(t,r){t&&((e.ctx=e.ctx||{})[t]=r)},e.getCtx=function(t){return(e.ctx||{})[t]}}
1))},Yn=function(e,t){var r=this,n=null,i=T(e.processTelemetry),a=T(e.setNextPlugin);r._hasRun=!1,r.getPlugin=function(){return e},r.getNext=function(){return n},r.setNext=function(e){n=e},r.processTelemetry=function(s,o){o||(o=t);var l=e?e.identifier:"TelemetryPluginChain";pe(o?o.core():null,(function(){return l+":processTelemetry"}),(function(){if(e&&i){r._hasRun=!0;try{o.setNext(n),a&&e.setNextPlugin(n),n&&(n._hasRun=!1),e.processTelemetry(s,o)}catch(r){var t=n&&n._hasRun;n&&t||o.diagLog().throwInternal(rr.CRITICAL,vn,"Plugin ["+e.identifier+"] failed during processTelemetry - "+le(r)),n&&!t&&n.processTelemetry(s,o)}}else n&&(r._hasRun=!0,n.processTelemetry(s,o))}),(function(){return{item:s}}),!s.sync)}},Fn=function e(t,r,n,i){var a=this,s=null;null!==i&&(t&&T(t.getPlugin)?s=function(e,t,r){var n=[],i=!r;if(e)for(;e;){var a=e.getPlugin();(i||a===r)&&(i=!0,n.push(a)),e=e.getNext()}return i||n.push(r),ge(n,t)}(t,a,i||t.getPlugin()):i?s=function(e,t,r){var n=e,i=!1;return r&&e&&(n=[],C(e,(function(e){(i||e===r)&&(i=!0,n.push(e))}))),r&&!i&&(n||(n=[]),n.push(r)),ge(n,t)}(t,a,i):_(i)&&(s=ge(t,a))),a.core=function(){return n},a.diagLog=function(){return me(n,r)},a.getCfg=function(){return r},a.getExtCfg=function(e,t){var n;if(void 0===t&&(t={}),r){var i=r.extensionConfig;i&&e&&(n=i[e])}return n||t},a.getConfig=function(e,t,n){var i;void 0===n&&(n=!1);var s=a.getExtCfg(e,null);return s&&!v(s[t])?i=s[t]:r&&!v(r[t])&&(i=r[t]),v(i)?n:i},a.hasNext=function(){return null!=s},a.getNext=function(){return s},a.setNext=function(e){s=e},a.processNext=function(e){var t=s;t&&(s=t.getNext(),t.processTelemetry(e,a))},a.createNew=function(t,i){return void 0===t&&(t=null),new e(t||s,r,n,i)}},Nn=function(){function e(){var e=this,t=!1,r=null,n=null;e.core=null,e.diagLog=function(t){return e._getTelCtx(t).diagLog()},e.isInitialized=function(){return t},e.setInitialized=function(e){t=e},e.setNextPlugin=function(e){n=e},e.processNext=function(e,t){t?t.processNext(e):n&&T(n.processTelemetry)&&n.processTelemetry(e,null)},e._getTelCtx=function(t){void 0===t&&(t=null);var i=t;if(!i){var a=r||new Fn(null,{},e.core);i=a.createNew(null,n&&n.getPlugin?n.getPlugin:n)}return i},e._baseTelInit=function(i,a,s,o){i&&H(i,"extensionConfig",[],null,v),!o&&a&&(o=a.getProcessTelContext().getNext());var l=n;n&&n.getPlugin&&(l=n.getPlugin()),e.core=a,r=new Fn(o,i,a,l),t=!0}}return e.prototype.initialize=function(e,t,r,n){this._baseTelInit(e,t,r,n)},e}(),jn=function(e){function t(){function r(e){e&&e.length>0&&(function(e){C(e,(function(e){e.priority<500&&V("Channel has invalid priority"+e.identifier)}))}(e=e.sort((function(e,t){return e.priority-t.priority}))),n.push(e))}var n,i=e.call(this)||this;return i.identifier="ChannelControllerPlugin",i.priority=500,nr(t,i,(function(e,t){e.setNextPlugin=function(){},e.processTelemetry=function(e,t){n&&C(n,(function(r){r.length>0&&i._getTelCtx(t).createNew(r).processNext(e)}))},e.getChannelControls=function(){return n},e.initialize=function(i,a,s){e.isInitialized()||(t.initialize(i,a,s),function(e,t){if(n=[],e&&C(e,(function(e){return r(e)})),t){var i=[];C(t,(function(e){e.priority>500&&i.push(e)})),r(i)}}((i||{}).channels,s),C(n,(function(e){return _e(new Fn(e,i,a),s)})))}})),i}var r;return Object(Xt.b)(t,e),t._staticInit=(N(r=t.prototype,"ChannelControls",r.getChannelControls),void N(r,"channelQueue",r.getChannelControls)),t}(Nn),Un=null,Hn=null,Bn=null,Wn=Z(),Gn={},Vn={},Kn=2,zn=function e(t){this.listeners=[];var r=!!(t||{}).perfEvtsSendAll;nr(e,this,(function(e){e.addNotificationListener=function(t){e.listeners.push(t)},e.removeNotificationListener=function(t){for(var r=R(e.listeners,t);r>-1;)e.listeners.splice(r,1),r=R(e.listeners,t)},e.eventsSent=function(t){C(e.listeners,(function(e){e&&e.eventsSent&&setTimeout((function(){return e.eventsSent(t)}),0)}))},e.eventsDiscarded=function(t,r){C(e.listeners,(function(e){e&&e.eventsDiscarded&&setTimeout((function(){return e.eventsDiscarded(t,r)}),0)}))},e.eventsSendRequest=function(t,r){C(e.listeners,(function(e){if(e&&e.eventsSendRequest)if(r)setTimeout((function(){return e.eventsSendRequest(t,r)}),0);else try{e.eventsSendRequest(t,r)}catch(e){}}))},e.perfEvent=function(t){t&&(!r&&t.isChildEvt()||C(e.listeners,(function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout((function(){return e.perfEvent(t)}),0);else try{e.perfEvent(t)}catch(e){}})))}}))},qn=function(e){function t(){var r=e.call(this)||this;return nr(t,r,(function(e,t){function r(t){var r=e.getNotifyMgr();r&&r.eventsDiscarded([t],Kn)}e.initialize=function(e,r,n,i){t.initialize(e,r,n||new Cn(e),i||new zn(e))},e.track=function(n){pe(e.getPerfMgr(),(function(){return"AppInsightsCore:track"}),(function(){null===n&&(r(n),V("Invalid telemetry item")),function(e){if(v(e.name))throw r(e),Error("telemetry name required")}(n),t.track(n)}),(function(){return{item:n}}),!n.sync)},e.addNotificationListener=function(t){var r=e.getNotifyMgr();r&&r.addNotificationListener(t)},e.removeNotificationListener=function(t){var r=e.getNotifyMgr();r&&r.removeNotificationListener(t)},e.pollInternalLogs=function(t){var r=e.config.diagnosticLogInterval;return r&&r>0||(r=1e4),setInterval((function(){var r=e.logger?e.logger.queue:[];C(r,(function(r){var n={name:t||"InternalMessageId: "+r.messageId,iKey:e.config.instrumentationKey,time:x(new Date),baseType:xn.dataType,baseData:{message:r.message}};e.track(n)})),r.length=0}),r)}})),r}return Object(Xt.b)(t,e),t}((function e(){var t,r,n,i,a,s=!1;nr(e,this,(function(e){e._extensions=new Array,r=new jn,e.logger=Object(Zt.b)({throwInternal:function(e,t,r,n,i){void 0===i&&(i=!1)},warnToConsole:function(){},resetInternalMessageCount:function(){}}),t=[],e.isInitialized=function(){return s},e.initialize=function(t,i,a,o){e.isInitialized()&&V("Core should not be initialized more than once"),t&&!v(t.instrumentationKey)||V("Please provide instrumentation key"),n=o,e._notificationManager=o,e.config=t||{},e.config.enablePerfMgr&&H(e.config,"createPerfMgr",Ie),t.extensions=v(t.extensions)?[]:t.extensions,B(t,"extensionConfig").NotificationManager=o,a&&(e.logger=a);var l=[];l.push.apply(l,Object(Xt.c)(Object(Xt.c)([],i,!1),t.extensions,!1)),l=ve(l);var u=[],d=[],c={};C(l,(function(e){(v(e)||v(e.initialize))&&V("Extensions must provide callback to initialize");var t=e.priority,n=e.identifier;e&&t&&(v(c[t])?c[t]=n:a.warnToConsole("Two extensions have same priority #"+t+" - "+c[t]+", "+n)),!t||t<r.priority?u.push(e):d.push(e)})),l.push(r),u.push(r),l=ve(l),e._extensions=l,_e(new Fn([r],t,e),l),_e(new Fn(u,t,e),l),e._extensions=u,0===e.getTransmissionControls().length&&V("No channels available"),s=!0,e.releaseQueue()},e.getTransmissionControls=function(){return r.getChannelControls()},e.track=function(r){H(r,"iKey",e.config.instrumentationKey,null,W),H(r,"time",x(new Date),null,W),H(r,"ver","4.0",null,v),e.isInitialized()?e.getProcessTelContext().processNext(r):t.push(r)},e.getProcessTelContext=function(){var t=e._extensions,n=t;return t&&0!==t.length||(n=[r]),new Fn(n,e.config,e)},e.getNotifyMgr=function(){return n||(n=Object(Zt.b)({addNotificationListener:function(){},removeNotificationListener:function(){},eventsSent:function(){},eventsDiscarded:function(){},eventsSendRequest:function(){}}),e._notificationManager=n),n},e.getCookieMgr=function(){return a||(a=Te(e.config,e.logger)),a},e.setCookieMgr=function(e){a=e},e.getPerfMgr=function(){return i||e.config&&e.config.enablePerfMgr&&T(e.config.createPerfMgr)&&(i=e.config.createPerfMgr(e,e.getNotifyMgr())),i||Rn},e.setPerfMgr=function(e){i=e},e.eventCnt=function(){return t.length},e.releaseQueue=function(){t.length>0&&(C(t,(function(t){e.getProcessTelContext().processNext(t)})),t=[])}}))}
1)),Jn=!1,Qn=123456789,Xn=987654321,Zn="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",$n=function(){function e(){}return e.create=function(e,t,r,n,i,a){if(r=Ue(n,r)||"not_specified",v(e)||v(t)||v(r))throw Error("Input doesn't contain all required fields");var s="";e.iKey&&(s=e.iKey,delete e.iKey);var o={name:r,time:x(new Date),iKey:s,ext:a||{},tags:[],data:{},baseType:t,baseData:e};return v(i)||k(i,(function(e,t){o.data[e]=t})),o},e}(),ei=function(){this.ver=2,this.properties={},this.measurements={}},ti=function(e){function t(t,r,n,i){var a=e.call(this)||this;return a.aiDataContract={ver:1,name:1,properties:0,measurements:0},a.name=Ue(t,r)||"not_specified",a.properties=Ge(t,n),a.measurements=Ve(t,i),a}return Object(Xt.b)(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Event",t.dataType="EventData",t}(ei),ri=function(e){function t(t,r,n,i,a){var s=e.call(this)||this;return s.aiDataContract={ver:1,message:1,severityLevel:0,properties:0},s.message=Be(t,r=r||"not_specified"),s.properties=Ge(t,i),s.measurements=Ve(t,a),n&&(s.severityLevel=n),s}return Object(Xt.b)(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Message",t.dataType="MessageData",t}((function(){this.ver=2,this.properties={},this.measurements={}})),ni=function(){this.ver=2,this.metrics=[],this.properties={},this.measurements={}};!function(e){e[e.Measurement=0]="Measurement",e[e.Aggregation=1]="Aggregation"}(ir||(ir={}));var ii,ai,si,oi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},t}return Object(Xt.b)(t,e),t}((function(){this.kind=ir.Measurement})),li=function(e){function t(t,r,n,i,a,s,o,l){var u=e.call(this)||this;u.aiDataContract={ver:1,metrics:1,properties:0};var d=new oi;return d.count=i>0?i:void 0,d.max=isNaN(s)||null===s?void 0:s,d.min=isNaN(a)||null===a?void 0:a,d.name=Ue(t,r)||"not_specified",d.value=n,u.metrics=[d],u.properties=Ge(t,o),u.measurements=Ve(t,l),u}return Object(Xt.b)(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",t.dataType="MetricData",t}(ni),ui=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return Object(Xt.b)(t,e),t}(ei),di=function(e){function t(t,r,n,i,a,s,o){var l=e.call(this)||this;return l.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0}
1,l.id=Ke(t,o),l.url=He(t,n),l.name=Ue(t,r)||"not_specified",isNaN(i)||(l.duration=Qe(i)),l.properties=Ge(t,a),l.measurements=Ve(t,s),l}return Object(Xt.b)(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",t.dataType="PageviewData",t}(ui),ci=function(e){function t(t,r,n,i,a,s,o){var l=e.call(this)||this;return l.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0},l.url=He(t,n),l.name=Ue(t,r)||"not_specified",l.properties=Ge(t,a),l.measurements=Ve(t,s),o&&(l.domProcessing=o.domProcessing,l.duration=o.duration,l.networkConnect=o.networkConnect,l.perfTotal=o.perfTotal,l.receivedResponse=o.receivedResponse,l.sentRequest=o.sentRequest),l}return Object(Xt.b)(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",t.dataType="PageviewPerformanceData",t}(function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return Object(Xt.b)(t,e),t}(ui)),hi=function(){},fi=function(){this.hasFullStack=!0,this.parsedStack=[]},mi=function(e){function t(t,r,n,i,a,s){var o=e.call(this)||this;return o.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0},!function(e){try{if(b(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(e){}return!1}(r)?(n||(n={}),o.exceptions=[new pi(t,r,n)],o.properties=Ge(t,n),o.measurements=Ve(t,i),a&&(o.severityLevel=a),s&&(o.id=s)):(o.exceptions=r.exceptions,o.properties=r.properties,o.measurements=r.measurements,r.severityLevel&&(o.severityLevel=r.severityLevel),r.id&&(o.id=r.id),r.problemGroup&&(o.problemGroup=r.problemGroup),o.ver=2,v(r.isManual)||(o.isManual=r.isManual)),o}return Object(Xt.b)(t,e),t.CreateAutoException=function(e,t,r,n,i,a,s,o){var l=it(i||a||e);return{message:et(e,l),url:t,lineNumber:r,columnNumber:n,error:at(i||a||e),evt:at(a||e),typeName:l,stackDetails:nt(s||i||a),errorSrc:o}},t.CreateFromInterface=function(e,r,n,i){var a=r.exceptions&&P(r.exceptions,(function(t){return pi.CreateFromInterface(e,t)}));return new t(e,Object(Xt.a)(Object(Xt.a)({},r),{exceptions:a}),n,i)},t.prototype.toInterface=function(){var e=this,t=e.exceptions,r=e.properties,n=e.measurements,i=e.severityLevel,a=e.problemGroup,s=e.id,o=e.isManual;return{ver:"4.0",exceptions:t instanceof Array&&P(t,(function(e){return e.toInterface()}))||void 0,severityLevel:i,properties:r,measurements:n,problemGroup:a,id:s,isManual:o}},t.CreateSimpleException=function(e,t,r,n,i){return{exceptions:[{hasFullStack:!0,message:e,stack:i,typeName:t}]}},t.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",t.dataType="ExceptionData",t.formatError=at,t}((function(){this.ver=2,this.exceptions=[],this.properties={},this.measurements={}})),pi=function(e){function t(t,r,n){var i=e.call(this)||this;if(i.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2},function(e){try{if(b(e))return"hasFullStack"in e&&"typeName"in e}catch(e){}return!1}(r))i.typeName=r.typeName,i.message=r.message,i.stack=r.stack,i.parsedStack=r.parsedStack,i.hasFullStack=r.hasFullStack;else{var a=r,s=a&&a.evt;E(a)||(a=a.error||s||a),i.typeName=Ue(t,it(a))||"not_specified",i.message=Be(t,et(r||a,i.typeName))||"not_specified";var o=r.stackDetails||nt(r);i.parsedStack=function(e){var t,r=e.obj;if(r&&r.length>0){t=[];var n=0,i=0;C(r,(function(e){var r=e.toString();if(gi.regex.test(r)){var a=new gi(r,n++);i+=a.sizeInBytes,t.push(a)}}));if(i>32768)for(var a=0,s=t.length-1,o=0,l=a,u=s;a<s;){if((o+=t[a].sizeInBytes+t[s].sizeInBytes)>32768){t.splice(l,u-l+1);break}l=a,u=s,a++,s--}}return t}(o),i.stack=We(t,function(e){var t="";return e&&(e.obj?C(e.obj,(function(e){t+=e+"\n"})):t=e.src||""),t}(o)),i.hasFullStack=D(i.parsedStack)&&i.parsedStack.length>0,n&&(n.typeName=n.typeName||i.typeName)}return i}return Object(Xt.b)(t,e),t.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&P(this.parsedStack,(function(e){return e.toInterface()}));return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this.stack,parsedStack:e||void 0}},t.CreateFromInterface=function(e,r){var n=r.parsedStack instanceof Array&&P(r.parsedStack,(function(e){return gi.CreateFromInterface(e)}))||r.parsedStack;return new t(e,Object(Xt.a)(Object(Xt.a)({},r),{parsedStack:n}))},t}(fi),gi=function(e){function t(r,n){var i=e.call(this)||this;if(i.sizeInBytes=0,i.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0},"string"==typeof r){var a=r;i.level=n,i.method="<no_method>",i.assembly=Y(a),i.fileName="",i.line=0;var s=a.match(t.regex);s&&s.length>=5&&(i.method=Y(s[2])||i.method,i.fileName=Y(s[4]),i.line=parseInt(s[5])||0)}else i.level=r.level,i.method=r.method,i.assembly=r.assembly,i.fileName=r.fileName,i.line=r.line,i.sizeInBytes=0;return i.sizeInBytes+=i.method.length,i.sizeInBytes+=i.fileName.length,i.sizeInBytes+=i.assembly.length,i.sizeInBytes+=t.baseSize,i.sizeInBytes+=i.level.toString().length,i.sizeInBytes+=i.line.toString().length,i}return Object(Xt.b)(t,e),t.CreateFromInterface=function(e){return new t(e,null)},t.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},t.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,t.baseSize=58,t}(hi);!function(e){e[e.Verbose=0]="Verbose",e[e.Information=1]="Information",e[e.Warning=2]="Warning",e[e.Error=3]="Error",e[e.Critical=4]="Critical"}(ii||(ii={})),function(e){e[e.LocalStorage=0]="LocalStorage",e[e.SessionStorage=1]="SessionStorage"}(ai||(ai={})),function(e){e[e.AI=0]="AI",e[e.AI_AND_W3C=1]="AI_AND_W3C",e[e.W3C=2]="W3C"}(si||(si={}));var _i,vi,yi,Li=void 0,bi=void 0,Ti={requestContextHeader:"Request-Context",requestContextTargetKey:"appId",requestContextAppIdFormat:"appId=cid-v1:",requestIdHeader:"Request-Id",traceParentHeader:"traceparent",traceStateHeader:"tracestate",sdkContextHeader:"Sdk-Context",sdkContextHeaderAppIdRequest:"appId",requestContextHeaderLowerCase:"request-context"},Mi=Z()||{},ki=0,Si=[null,null,null,null,null],wi=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],Di={correlationIdPrefix:"cid-v1:",canIncludeCorrelationHeader:function(e,t,r){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e.correlationHeaderExcludePatterns)for(var n=0;n<e.correlationHeaderExcludePatterns.length;n++)if(e.correlationHeaderExcludePatterns[n].test(t))return!1;var i=yt(t).host.toLowerCase();if(!i||-1===i.indexOf(":443")&&-1===i.indexOf(":80")||(i=(Mt(t,!0)||"").toLowerCase()),(!e||!e.enableCorsCorrelation)&&i&&i!==r)return!1;var a,s=e&&e.correlationHeaderDomains;if(s&&(C(s,(function(e){var t=new RegExp(e.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));a=a||t.test(i)})),!a))return!1;var o=e&&e.correlationHeaderExcludedDomains;if(!o||0===o.length)return!0;for(n=0;n<o.length;n++){if(new RegExp(o[n].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(i))return!1}return i&&i.length>0},getCorrelationContext:function(e){if(e){var t=Di.getCorrelationContextValue(e,Ti.requestContextTargetKey);if(t&&t!==Di.correlationIdPrefix)return t}},getCorrelationContextValue:function(e,t){if(e)for(var r=e.split(","),n=0;n<r.length;++n){var i=r[n].split("=");if(2===i.length&&i[0]===t)return i[1]}}},Ei=function(e){function t(t,r,n,i,a,s,o,l,u,d,c,h){void 0===u&&(u="Ajax");var f=e.call(this)||this;f.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0},f.id=r,f.duration=Qe(a),f.success=s,f.resultCode=o+"",f.type=Ue(t,u);var m=function(e,t,r,n){var i,a=n,s=n;if(t&&t.length>0){var o=yt(t);if(i=o.host,!a)if(null!=o.pathname){var l=0===o.pathname.length?"/":o.pathname;"/"!==l.charAt(0)&&(l="/"+l),s=o.pathname,a=Ue(e,r?r+" "+l:l)}else a=Ue(e,t)}else i=n,a=n;return{target:i,name:a,data:s}}
1(t,n,l,i);return f.data=He(t,i)||m.data,f.target=Ue(t,m.target),d&&(f.target=f.target+" | "+d),f.name=Ue(t,m.name),f.properties=Ge(t,c),f.measurements=Ve(t,h),f}return Object(Xt.b)(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",t.dataType="RemoteDependencyData",t}((function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}})),Ai=function e(t,r,n,i){nr(e,this,(function(e){function a(){n&&C(n.getTransmissionControls(),(function(e){C(e,(function(e){return e.flush(!0)}))}))}var s,o=null,l=[],u=!1;n&&(s=n.logger),e.trackPageView=function(e,n){var d=e.name;if(v(d)||"string"!=typeof d){var c=Z();d=e.name=c&&c.title||""}var h=e.uri;if(v(h)||"string"!=typeof h){var f=re();h=e.uri=f&&f.href||""}if(!i.isPerformanceTimingSupported())return t.sendPageViewInternal(e,n),a(),void s.throwInternal(rr.WARNING,Ar,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");var m,p,g=!1,_=i.getPerformanceTiming().navigationStart;_>0&&(m=wt(_,+new Date),i.shouldCollectDuration(m)||(m=void 0)),v(n)||v(n.duration)||(p=n.duration),!r&&isNaN(p)||(isNaN(p)&&(n||(n={}),n.duration=m),t.sendPageViewInternal(e,n),a(),g=!0),n||(n={}),l.push((function(){var r=!1;try{if(i.isPerformanceTimingDataReady()){r=!0;var a={name:d,uri:h};i.populatePageViewPerformanceEvent(a),a.isValid||g?(g||(n.duration=a.durationMs,t.sendPageViewInternal(e,n)),u||(t.sendPageViewPerformanceInternal(a,n),u=!0)):(n.duration=m,t.sendPageViewInternal(e,n))}else _>0&&wt(_,+new Date)>6e4&&(r=!0,g||(n.duration=6e4,t.sendPageViewInternal(e,n)))}catch(e){s.throwInternal(rr.CRITICAL,Hr,"trackPageView failed on page load calculation: "+U(e),{exception:le(e)})}return r})),o||(o=setInterval((function(){var e=l.slice(0),t=!1;l=[],C(e,(function(e){e()?t=!0:l.push(e)})),0===l.length&&(clearInterval(o),o=null),t&&a()}),100))}}))},Ii=function(){function e(e,t){this.prevPageVisitDataKeyName="prevPageVisitData",this.pageVisitTimeTrackingHandler=t,this._logger=e}return e.prototype.trackPreviousPageVisit=function(e,t){try{var r=this.restartPageVisitTimer(e,t);r&&this.pageVisitTimeTrackingHandler(r.pageName,r.pageUrl,r.pageVisitTime)}catch(e){this._logger.warnToConsole("Auto track page visit time failed, metric will not be collected: "+le(e))}},e.prototype.restartPageVisitTimer=function(e,t){try{var r=this.stopPageVisitTimer();return this.startPageVisitTimer(e,t),r}catch(e){return this._logger.warnToConsole("Call to restart failed: "+le(e)),null}},e.prototype.startPageVisitTimer=function(e,t){try{if(mt()){null!=pt(this._logger,this.prevPageVisitDataKeyName)&&V("Cannot call startPageVisit consecutively without first calling stopPageVisit");var r=new xi(e,t),n=ae().stringify(r);gt(this._logger,this.prevPageVisitDataKeyName,n)}}catch(e){this._logger.warnToConsole("Call to start failed: "+le(e))}},e.prototype.stopPageVisitTimer=function(){try{if(mt()){var e=j(),t=pt(this._logger,this.prevPageVisitDataKeyName);if(t&&ie()){var r=ae().parse(t);return r.pageVisitTime=e-r.pageVisitStartTime,_t(this._logger,this.prevPageVisitDataKeyName),r}return null}return null}catch(e){return this._logger.warnToConsole("Stop page visit timer failed: "+le(e)),null}},e}(),xi=function(e,t){this.pageVisitStartTime=j(),this.pageName=e,this.pageUrl=t},Ci=function(){function e(e){this.MAX_DURATION_ALLOWED=36e5,e&&(this._logger=e.logger)}return e.prototype.populatePageViewPerformanceEvent=function(e){e.isValid=!1;var t=this.getPerformanceNavigationTiming(),r=this.getPerformanceTiming(),n=0,i=0,a=0,s=0,o=0;(t||r)&&(t?(n=t.duration,i=0===t.startTime?t.connectEnd:wt(t.startTime,t.connectEnd),a=wt(t.requestStart,t.responseStart),s=wt(t.responseStart,t.responseEnd),o=wt(t.responseEnd,t.loadEventEnd)):(n=wt(r.navigationStart,r.loadEventEnd),i=wt(r.navigationStart,r.connectEnd),a=wt(r.requestStart,r.responseStart),s=wt(r.responseStart,r.responseEnd),o=wt(r.responseEnd,r.loadEventEnd)),0===n?this._logger.throwInternal(rr.WARNING,pr,"error calculating page view performance.",{total:n,network:i,request:a,response:s,dom:o}):this.shouldCollectDuration(n,i,a,s,o)?n<Math.floor(i)+Math.floor(a)+Math.floor(s)+Math.floor(o)?this._logger.throwInternal(rr.WARNING,fr,"client performance math error.",{total:n,network:i,request:a,response:s,dom:o}):(e.durationMs=n,e.perfTotal=e.duration=Qe(n),e.networkConnect=Qe(i),e.sentRequest=Qe(a),e.receivedResponse=Qe(s),e.domProcessing=Qe(o),e.isValid=!0):this._logger.throwInternal(rr.WARNING,zr,"Invalid page load duration value. Browser perf data won't be sent.",{total:n,network:i,request:a,response:s,dom:o}))},e.prototype.getPerformanceTiming=function(){return this.isPerformanceTimingSupported()?ne().timing:null},e.prototype.getPerformanceNavigationTiming=function(){return this.isPerformanceNavigationTimingSupported()?ne().getEntriesByType("navigation")[0]:null},e.prototype.isPerformanceNavigationTimingSupported=function(){var e=ne();return e&&e.getEntriesByType&&e.getEntriesByType("navigation").length>0},e.prototype.isPerformanceTimingSupported=function(){var e=ne();return e&&e.timing},e.prototype.isPerformanceTimingDataReady=function(){var e=ne(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t.navigationStart>0&&t.responseStart>0&&t.requestStart>0&&t.loadEventEnd>0&&t.responseEnd>0&&t.connectEnd>0&&t.domLoading>0},e.prototype.shouldCollectDuration=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ee()||{},n=["googlebot","adsbot-google","apis-google","mediapartners-google"],i=r.userAgent,a=!1;if(i)for(var s=0;s<n.length;s++)a=a||-1!==i.toLowerCase().indexOf(n[s]);if(a)return!1;for(s=0;s<e.length;s++)if(e[s]<0||e[s]>=this.MAX_DURATION_ALLOWED)return!1;return!0},e}(),Ri=function(e){function t(){var r,n,i,a=e.call(this)||this;a.identifier="ApplicationInsightsAnalytics",a.priority=180,a.autoRoutePVDelay=500;var s,o;return nr(t,a,(function(e,l){function u(t){if(!t.isBrowserLinkTrackingEnabled()){var r=["/browserLinkSignalR/","/__browserLink/"];
1e._telemetryInitializers.push((function(e){if(e.baseType===Ei.dataType){var t=e.baseData;if(t)for(var n=0;n<r.length;n++)if(t.target&&t.target.indexOf(r[n])>=0)return!1}return!0}))}}var d=re(!0);s=d&&d.href||"",e.getCookieMgr=function(){return be(e.core)},e.processTelemetry=function(t,r){pe(e.core,(function(){return e.identifier+":processTelemetry"}),(function(){var n=!1,i=e._telemetryInitializers.length;r=e._getTelCtx(r);for(var a=0;a<i;++a){var s=e._telemetryInitializers[a];if(s)try{if(!1===s.apply(null,[t])){n=!0;break}}catch(e){r.diagLog().throwInternal(rr.CRITICAL,dn,"One of telemetry initializers failed, telemetry item will not be sent: "+U(e),{exception:le(e)},!0)}}n||e.processNext(t,r)}),(function(){return{item:t}}),!t.sync)},e.trackEvent=function(t,r){try{var n=$n.create(t,ti.dataType,ti.envelopeType,e.diagLog(),r);e.core.track(n)}catch(t){e.diagLog().throwInternal(rr.WARNING,Br,"trackTrace failed, trace will not be collected: "+U(t),{exception:le(t)})}},e.startTrackEvent=function(t){try{r.start(t)}catch(t){e.diagLog().throwInternal(rr.CRITICAL,Rr,"startTrackEvent failed, event will not be collected: "+U(t),{exception:le(t)})}},e.stopTrackEvent=function(t,n){try{r.stop(t,void 0,n)}catch(t){e.diagLog().throwInternal(rr.CRITICAL,Pr,"stopTrackEvent failed, event will not be collected: "+U(t),{exception:le(t)})}},e.trackTrace=function(t,r){try{var n=$n.create(t,ri.dataType,ri.envelopeType,e.diagLog(),r);e.core.track(n)}catch(t){e.diagLog().throwInternal(rr.WARNING,Br,"trackTrace failed, trace will not be collected: "+U(t),{exception:le(t)})}},e.trackMetric=function(t,r){try{var n=$n.create(t,li.dataType,li.envelopeType,e.diagLog(),r);e.core.track(n)}catch(t){e.diagLog().throwInternal(rr.CRITICAL,jr,"trackMetric failed, metric will not be collected: "+U(t),{exception:le(t)})}},e.trackPageView=function(t,r){try{var n=t||{};e._pageViewManager.trackPageView(n,Object(Xt.a)(Object(Xt.a)(Object(Xt.a)({},n.properties),n.measurements),r)),e.config.autoTrackPageVisitTime&&e._pageVisitTimeManager.trackPreviousPageVisit(n.name,n.uri)}catch(t){e.diagLog().throwInternal(rr.CRITICAL,Ur,"trackPageView failed, page view will not be collected: "+U(t),{exception:le(t)})}},e.sendPageViewInternal=function(t,r,n){var i=Z();i&&(t.refUri=void 0===t.refUri?i.referrer:t.refUri);var a=$n.create(t,di.dataType,di.envelopeType,e.diagLog(),r,n);e.core.track(a),0},e.sendPageViewPerformanceInternal=function(t,r,n){var i=$n.create(t,ci.dataType,ci.envelopeType,e.diagLog(),r,n);e.core.track(i)},e.trackPageViewPerformance=function(t,r){try{e._pageViewPerformanceManager.populatePageViewPerformanceEvent(t),e.sendPageViewPerformanceInternal(t,r)}catch(t){e.diagLog().throwInternal(rr.CRITICAL,Ur,"trackPageViewPerformance failed, page view will not be collected: "+U(t),{exception:le(t)})}},e.startTrackPage=function(t){try{if("string"!=typeof t){var r=Z();t=r&&r.title||""}n.start(t)}catch(t){e.diagLog().throwInternal(rr.CRITICAL,Or,"startTrackPage failed, page view may not be collected: "+U(t),{exception:le(t)})}},e.stopTrackPage=function(t,r,i,a){try{if("string"!=typeof t){var s=Z();t=s&&s.title||""}if("string"!=typeof r){var o=re();r=o&&o.href||""}n.stop(t,r,i,a),e.config.autoTrackPageVisitTime&&e._pageVisitTimeManager.trackPreviousPageVisit(t,r)}catch(t){e.diagLog().throwInternal(rr.CRITICAL,Yr,"stopTrackPage failed, page view will not be collected: "+U(t),{exception:le(t)})}},e.sendExceptionInternal=function(t,r,n){var i=t.exception||t.error||new Error("not_specified"),a=new mi(e.diagLog(),i,t.properties||r,t.measurements,t.severityLevel,t.id).toInterface(),s=$n.create(a,mi.dataType,mi.envelopeType,e.diagLog(),r,n);e.core.track(s)},e.trackException=function(t,r){try{e.sendExceptionInternal(t,r)}catch(t){e.diagLog().throwInternal(rr.CRITICAL,Nr,"trackException failed, exception will not be collected: "+U(t),{exception:le(t)})}},e._onerror=function(t){var r=t&&t.error,n=t&&t.evt;try{if(!n){var i=Q();i&&(n=i.event)}var a=t&&t.url||(Z()||{}).URL,s=t.errorSrc||"window.onerror@"+a+":"+(t.lineNumber||0)+":"+(t.columnNumber||0),o={errorSrc:s,url:a,lineNumber:t.lineNumber||0,columnNumber:t.columnNumber||0,message:t.message};Ze(t.message,0,0,0,t.error)?function(t,r){var n=$n.create(t,mi.dataType,mi.envelopeType,e.diagLog(),r);e.core.track(n)}(mi.CreateAutoException("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",a,t.lineNumber||0,t.columnNumber||0,r,n,null,s),o):(t.errorSrc||(t.errorSrc=s),e.trackException({exception:t,severityLevel:ii.Error},o))}catch(t){var l=r?r.name+", "+r.message:"null";e.diagLog().throwInternal(rr.CRITICAL,gr,"_onError threw exception while logging error, error will not be collected: "+U(t),{exception:le(t),errorString:l})}}
1,e.addTelemetryInitializer=function(t){e._telemetryInitializers.push(t)},e.initialize=function(d,c,h,f){if(!e.isInitialized()){if(v(c))throw Error("Error initializing");l.initialize(d,c,h,f),e.setInitialized(!1);var m=e._getTelCtx(),p=e.identifier;e.config=m.getExtCfg(p);var g=t.getDefaultConfig(d);void 0!==g&&k(g,(function(t,r){e.config[t]=m.getConfig(p,t,r),void 0===e.config[t]&&(e.config[t]=r)})),e.config.isStorageUseDisabled&&ut();var _={instrumentationKey:function(){return d.instrumentationKey},accountId:function(){return e.config.accountId||d.accountId},sessionRenewalMs:function(){return e.config.sessionRenewalMs||d.sessionRenewalMs},sessionExpirationMs:function(){return e.config.sessionExpirationMs||d.sessionExpirationMs},sampleRate:function(){return e.config.samplingPercentage||d.samplingPercentage},sdkExtension:function(){return e.config.sdkExtension||d.sdkExtension},isBrowserLinkTrackingEnabled:function(){return e.config.isBrowserLinkTrackingEnabled||d.isBrowserLinkTrackingEnabled},appId:function(){return e.config.appId||d.appI
1d}};e._pageViewPerformanceManager=new Ci(e.core),e._pageViewManager=new Ai(a,e.config.overridePageViewDuration,e.core,e._pageViewPerformanceManager),e._pageVisitTimeManager=new Ii(e.diagLog(),(function(t,r,n){return function(t,r,n){e.trackMetric({name:"PageVisitTime",average:n,max:n,min:n,sampleCount:1},{PageName:t,PageUrl:r})}(t,r,n)})),e._telemetryInitializers=e._telemetryInitializers||[],u(_),(r=new Pi(e.diagLog(),"trackEvent")).action=function(t,r,n,i){i||(i={}),i.duration=n.toString(),e.trackEvent({name:t,properties:i})},(n=new Pi(e.diagLog(),"trackPageView")).action=function(t,r,n,i,a){v(i)&&(i={}),i.duration=n.toString(),e.sendPageViewInternal({name:t,uri:r,properties:i,measurements:a},i)};var y,L=Q(),b=te(),M=re(!0),S=a;if(!1===e.config.disableExceptionTracking&&!e.config.autoExceptionInstrumented&&L){var w=L.onerror;L.onerror=function(e,t,r,n,i){var a=L.event,s=w&&w(e,t,r,n,i);return!0!==s&&S._onerror(mi.CreateAutoException(e,t,r,n,i,a)),s},e.config.autoExceptionInstrumented=!0}if(!1===e.config.disableExceptionTracking&&!0===e.config.enableUnhandledPromiseRejectionTracking&&!e.config.autoUnhandledPromiseInstrumented&&L){var D=L.onunhandledrejection;L.onunhandledrejection=function(e){var t=L.event,r=D&&D.call(L,e);return!0!==r&&S._onerror(mi.CreateAutoException(function(e){if(e&&e.reason){var t=e.reason;return!A(t)&&T(t.toString)?t.toString():le(t)}return e||""}(e),M?M.href:"",0,0,e,t)),r},e.config.autoUnhandledPromiseInstrumented=!0}if(!0===e.config.enableAutoRouteTracking&&b&&T(b.pushState)&&T(b.replaceState)&&L&&"undefined"!=typeof Event){var E=a;C(h,(function(e){"AppInsightsPropertiesPlugin"===e.identifier&&(i=e)})),b.pushState=(y=b.pushState,function(){var e=y.apply(this,arguments);return Dt(L,vt(E.config.namePrefix+"pushState")),Dt(L,vt(E.config.namePrefix+"locationchange")),e}),b.replaceState=function(e){return function(){var t=e.apply(this,arguments);return Dt(L,vt(E.config.namePrefix+"replaceState")),Dt(L,vt(E.config.namePrefix+"locationchange")),t}}(b.replaceState),L.addEventListener&&(L.addEventListener(E.config.namePrefix+"popstate",(function(){Dt(L,vt(E.config.namePrefix+"locationchange"))})),L.addEventListener(E.config.namePrefix+"locationchange",(function(){if(i&&i.context&&i.context.telemetryTrace){i.context.telemetryTrace.traceID=Fe();var e="_unknown_";M&&M.pathname&&(e=M.pathname+(M.hash||"")),i.context.telemetryTrace.name=e}o?(s=o,o=M&&M.href||""):o=M&&M.href||"",setTimeout(function(e){E.trackPageView({refUri:e,properties:{duration:0}})}.bind(a,s),E.autoRoutePVDelay)})))}e.setInitialized(!0)}}})),a}return Object(Xt.b)(t,e),t.getDefaultConfig=function(e){return e||(e={}),e.sessionRenewalMs=18e5,e.sessionExpirationMs=864e5,e.disableExceptionTracking=Je(e.disableExceptionTracking),e.autoTrackPageVisitTime=Je(e.autoTrackPageVisitTime),e.overridePageViewDuration=Je(e.overridePageViewDuration),e.enableUnhandledPromiseRejectionTracking=Je(e.enableUnhandledPromiseRejectionTracking),(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||e.samplingPercentage>=100)&&(e.samplingPercentage=100),e.isStorageUseDisabled=Je(e.isStorageUseDisabled),e.isBrowserLinkTrackingEnabled=Je(e.isBrowserLinkTrackingEnabled),e.enableAutoRouteTracking=Je(e.enableAutoRouteTracking),e.namePrefix=e.namePrefix||"",e.enableDebug=Je(e.enableDebug),e.disableFlushOnBeforeUnload=Je(e.disableFlushOnBeforeUnload),e.disableFlushOnUnload=Je(e.disableFlushOnUnload,e.disableFlushOnBeforeUnload),e},t.Version="2.7.0",t}(Nn),Pi=function(e){var t=this,r={};t.start=function(t){void 0!==r[t]&&e.throwInternal(rr.WARNING,ln,"start was called more than once for this event without calling stop.",{name:t,key:t},!0),r[t]=+new Date},t.stop=function(n,i,a,s){var o=r[n];if(isNaN(o))e.throwInternal(rr.WARNING,un,"stop was called without a corresponding start.",{name:n,key:n},!0);else{var l=wt(o,+new Date);t.action(n,i,l,a,s)}delete r[n],r[n]=void 0}},Oi=function e(t){var r=[];this._get=function(){return r},this._set=function(e){return r=e},nr(e,this,(function(e){e.enqueue=function(e){r.push(e)},e.count=function(){return r.length},e.size=function(){for(var e=r.length,n=0;n<r.length;n++)e+=r[n].length;return t.emitLineDelimitedJson()||(e+=2),e},e.clear=function(){r=[]},e.getItems=function(){return r.slice(0)},e.batchPayloads=function(e){return e&&e.length>0?t.emitLineDelimitedJson()?e.join("\n"):"["+e.join(",")+"]":null}}))},Yi=function(e){function t(r){var n=e.call(this,r)||this;return nr(t,n,(function(e,t){e.markAsSent=function(){t.clear()},e.clearSent=function(){}})),n}return Object(Xt.b)(t,e),t}(Oi),Fi=function(e){function t(r,n){var i=e.call(this,n)||this,a=!1;return nr(t,i,(function(e,i){function s(e,t){var r=[];return C(t,(function(t){T(t)||-1!==R(e,t)||r.push(t)})),r}function o(e){var t=e;try{t=n.namePrefix&&n.namePrefix()?n.namePrefix()+"_"+t:t;var i=pt(r,t);if(i){var a=ae().parse(i);if(A(a)&&(a=ae().parse(a)),a&&D(a))return a}}catch(e){r.throwInternal(rr.CRITICAL,Vr," storage key: "+t+", "+U(e),{exception:le(e)})}return[]}function l(e,t){var i=e;try{i=n.namePrefix&&n.namePrefix()?n.namePrefix()+"_"+i:i;var a=JSON.stringify(t);gt(r,i,a)}catch(e){gt(r,i,JSON.stringify([])),r.throwInternal(rr.WARNING,Gr," storage key: "+i+", "+U(e)+". Buffer cleared",{exception:le(e)})}}var u=o(t.BUFFER_KEY),d=o(t.SENT_BUFFER_KEY),c=e._set(u.concat(d));c.length>t.MAX_BUFFER_SIZE&&(c.length=t.MAX_BUFFER_SIZE),l(t.SENT_BUFFER_KEY,[]),l(t.BUFFER_KEY,c),e.enqueue=function(n){e.count()>=t.MAX_BUFFER_SIZE?a||(r.throwInternal(rr.WARNING,hn,"Maximum buffer size reached: "+e.count(),!0),a=!0):(i.enqueue(n),l(t.BUFFER_KEY,e._get()))},e.clear=function(){i.clear(),l(t.BUFFER_KEY,e._get()),l(t.SENT_BUFFER_KEY,[]),a=!1},e.markAsSent=function(n){l(t.BUFFER_KEY,e._set(s(n,e._get())));var i=o(t.SENT_BUFFER_KEY);i instanceof Array&&n instanceof Array&&((i=i.concat(n)).length>t.MAX_BUFFER_SIZE&&(r.throwInternal(rr.CRITICAL,hn,"Sent buffer reached its maximum size: "+i.length,!0),i.length=t.MAX_BUFFER_SIZE),l(t.SENT_BUFFER_KEY,i))},e.clearSent=function(e){var r=o(t.SENT_BUFFER_KEY);r=s(e,r),l(t.SENT_BUFFER_KEY,r)}})),i}return Object(Xt.b)(t,e),t.BUFFER_KEY="AI_buffer",t.SENT_BUFFER_KEY="AI_sentBuffer",t.MAX_BUFFER_SIZE=2e3,t}(Oi),Ni=Et("application"),ji=Et("device"),Ui=Et("location"),Hi=Et("operation"),Bi=Et("session"),Wi=Et("user"),Gi=Et("cloud"),Vi=Et("internal"),Ki=function(e){function t(){return e.call(this)||this}return Object(Xt.b)(t,e),t}((_i={applicationVersion:Ni("ver"),applicationBuild:Ni("build"),applicationTypeId:Ni("typeId"),applicationId:Ni("applicationId"),applicationLayer:Ni("layer"),deviceId:ji("id"),deviceIp:ji("ip"),deviceLanguage:ji("language"),deviceLocale:ji("locale"),deviceModel:ji("model"),deviceFriendlyName:ji("friendlyName"),deviceNetwork:ji("network"),deviceNetworkName:ji("networkName"),deviceOEMName:ji("oemName"),deviceOS:ji("os"),deviceOSVersion:ji("osVersion"),deviceRoleInstance:ji("roleInstance"),deviceRoleName:ji("roleName"),deviceScreenResolution:ji("screenResolution"),deviceType:ji("type"),deviceMachineName:ji("machineName"),deviceVMName:ji("vmName"),deviceBrowser:ji("browser"),deviceBrowserVersion:ji("browserVersion"),locationIp:Ui("ip"),locationCountry:Ui("country"),locationProvince:Ui("province"),locationCity:Ui("city"),operationId:Hi("id"),operationName:Hi("name"),operationParentId:Hi("parentId"),operationRootId:Hi("rootId"),operationSyntheticSource:Hi("syntheticSource"),operationCorrelationVector:Hi("correlationVector"),sessionId:Bi("id"),sessionIsFirst:Bi("isFirst"),sessionIsNew:Bi("isNew"),userAccountAcquisitionDate:Wi("accountAcquisitionDate"),userAccountId:Wi("accountId"),userAgent:Wi("userAgent"),userId:Wi("id"),userStoreRegion:Wi("storeRegion"),userAuthUserId:Wi("authUserId"),userAnonymousUserAcquisitionDate:Wi("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Wi("authUserAcquisitionDate"),cloudName:Gi("name"),cloudRole:Gi("role"),cloudRoleVer:Gi("roleVer"),cloudRoleInstance:Gi("roleInstance"),cloudEnvironment:Gi("environment"),cloudLocation:Gi("location"),cloudDeploymentUnit:Gi("deploymentUnit"),internalNodeName:Vi("nodeName"),internalSdkVersion:Vi("sdkVersion"),internalAgentVersion:Vi("agentVersion"),internalSnippet:Vi("snippet"),internalSdkSrc:Vi("sdkSrc")},function(){var e=this;_i&&k(_i,(function(t,r){e[t]=r}))})),zi={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os",SessionExt:"ses",SDKExt:"sdk"},qi=new Ki,Ji=function(e){function t(t,r,n){var i=e.call(this)||this;return i.name=Ue(t,n)||"not_specified",i.data=r,i.time=x(new Date),i.aiDataContract={t
1ime:1,iKey:1,name:1,sampleRate:function(){return 100===i.sampleRate?4:1},tags:1,data:1},i}return Object(Xt.b)(t,e),t}((function(){this.ver=1,this.sampleRate=100,this.tags={}})),Qi=function(){},Xi=function(e){function t(){return e.call(this)||this}return Object(Xt.b)(t,e),t}(Qi),Zi=function(e){function t(t,r){var n=e.call(this)||this;return n.aiDataContract={baseType:1,baseData:1},n.baseType=t,n.baseData=r,n}return Object(Xt.b)(t,e),t}(Xi),$i={Version:"2.7.0"},ea=function e(t){nr(e,this,(function(e){function r(e,a){var s={};if(!e)return t.throwInternal(rr.CRITICAL,Qr,"cannot serialize object because it is null or undefined",{name:a},!0),s;if(e.__aiCircularRefCheck)return t.throwInternal(rr.WARNING,Zr,"Circular reference detected while serializing object",{name:a},!0),s;if(!e.aiDataContract){if("measurements"===a)s=i(e,"number",a);else if("properties"===a)s=i(e,"string",a);else if("tags"===a)s=i(e,"string",a);else if(D(e))s=n(e,a);else{t.throwInternal(rr.WARNING,Xr,"Attempting to serialize an object which does not implement ISerializable",{name:a},!0);try{ae().stringify(e),s=e}catch(e){t.throwInternal(rr.CRITICAL,Qr,e&&T(e.toString)?e.toString():"Error serializing object",null,!0)}}return s}return e.__aiCircularRefCheck=!0,k(e.aiDataContract,(function(i,o){var l=T(o)?1&o():1&o,u=T(o)?4&o():4&o,d=2&o,c=void 0!==e[i],h=b(e[i])&&null!==e[i];if(!l||c||d){if(!u){var f=void 0;void 0!==(f=h?d?n(e[i],i):r(e[i],i):e[i])&&(s[i]=f)}}else t.throwInternal(rr.CRITICAL,Er,"Missing required field specification. The field is required but not present on source",{field:i,name:a})})),delete e.__aiCircularRefCheck,s}function n(e,n){var i;if(e)if(D(e)){i=[];for(var a=0;a<e.length;a++){var s=r(e[a],n+"["+a+"]");i.push(s)}}else t.throwInternal(rr.CRITICAL,en,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:n},!0);return i}function i(e,r,n){var i;return e&&(i={},k(e,(function(e,a){if("string"===r)i[e]=void 0===a?"undefined":null===a?"null":a.toString?a.toString():"invalid field: toString() is not defined.";else if("number"===r)if(void 0===a)i[e]="undefined";else if(null===a)i[e]="null";else{var s=parseFloat(a);i[e]=isNaN(s)?"NaN":s}else i[e]="invalid field: "+n+" is of unknown type.",t.throwInternal(rr.CRITICAL,i[e],null,!0)}))),i}e.serialize=function(e){var n=r(e,"root");try{return ae().stringify(n)}catch(e){t.throwInternal(rr.CRITICAL,Qr,e&&T(e.toString)?e.toString():"Error serializing object",null,!0)}}}))},ta=function(){function e(){var t=Q(),r=Z(),n=!1,i=!0;nr(e,this,(function(e){function a(){i=!0}function s(){i=!1}try{if(t&&M(t,"online",a)&&(M(t,"offline",s),n=!0),r){var o=r.body||r;_(o.ononline)||(o.ononline=a,o.onoffline=s,n=!0)}if(n){var l=ee();l&&!v(l.onLine)&&(i=l.onLine)}}catch(e){n=!1}e.isListening=n,e.isOnline=function(){var e=!0,t=ee();return n?e=i:t&&!v(t.onLine)&&(e=t.onLine),e},e.isOffline=function(){return!e.isOnline()}}))}return e.Offline=new e,e}().Offline,ra=function(){function e(){}return e.prototype.getHashCodeScore=function(t){return 100*(this.getHashCode(t)/e.INT_MAX_VALUE)},e.prototype.getHashCode=function(e){if(""===e)return 0;for(;e.length<8;)e=e.concat(e);for(var t=5381,r=0;r<e.length;++r)t=(t<<5)+t+e.charCodeAt(r),t&=t;return Math.abs(t)},e.INT_MAX_VALUE=2147483647,e}(),na=function(){var e=new ra,t=new Ki;this.getSamplingScore=function(r){return r.tags&&r.tags[t.userId]?e.getHashCodeScore(r.tags[t.userId]):r.ext&&r.ext.user&&r.ext.user.id?e.getHashCodeScore(r.ext.user.id):r.tags&&r.tags[t.operationId]?e.getHashCodeScore(r.tags[t.operationId]):r.ext&&r.ext.telemetryTrace&&r.ext.telemetryTrace.traceID?e.getHashCodeScore(r.ext.telemetryTrace.traceID):100*Math.random()}},ia=function(){function e(e,t){this.INT_MAX_VALUE=2147483647;var r=t||me(null);(e>100||e<0)&&(r.throwInternal(rr.WARNING,an,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),e=100),this.sampleRate=e,this.samplingScoreGenerator=new na}return e.prototype.isSampledIn=function(e){var t=this.sampleRate;return null==t||t>=100||(e.baseType===li.dataType||this.samplingScoreGenerator.getSamplingScore(e)<t)},e}(),aa=((vi={})[ti.dataType]=Pt,vi[ri.dataType]=function(e,t,r){Rt(e,t);var n=t.baseData.message,i=t.baseData.severityLevel,a=t.baseData.properties||{},s=t.baseData.measurements||{};It(t.data,a,s),v(r)||xt(a,r);var o=new ri(e,n,i,a,s),l=new Zi(ri.dataType,o);return Ct(e,ri.envelopeType,t,l)},vi[di.dataType]=function(e,t,r){Rt(e,t);var n,i=t.baseData;v(i)||v(i.properties)||v(i.properties.duration)?v(t.data)||v(t.data.duration)||(n=t.data.duration,delete t.data.duration):(n=i.properties.duration,delete i.properties.duration);var a,s=t.baseData;((t.ext||{}).trace||{}).traceID&&(a=t.ext.trace.traceID);var o=s.id||a,l=s.name,u=s.uri,d=s.properties||{},c=s.measurements||{};v(s.refUri)||(d.refUri=s.refUri),v(s.pageType)||(d.pageType=s.pageType),v(s.isLoggedIn)||(d.isLoggedIn=s.isLoggedIn.toString()),v(s.properties)||k(s.properties,(function(e,t){d[e]=t})),It(t.data,d,c),v(r)||xt(d,r);var h=new di(e,l,u,n,d,c,o),f=new Zi(di.dataType,h);return Ct(e,di.envelopeType,t,f)},vi[ci.dataType]=function(e,t,r){Rt(e,t);var n=t.baseData,i=n.name,a=n.uri||n.url,s=n.properties||{},o=n.measurements||{};It(t.data,s,o),v(r)||xt(s,r);var l=new ci(e,i,a,void 0,s,o,n),u=new Zi(ci.dataType,l);return Ct(e,ci.envelopeType,t,u)},vi[mi.dataType]=function(e,t,r){Rt(e,t);var n=t.baseData.measurements||{},i=t.baseData.properties||{};It(t.data,i,n),v(r)||xt(i,r);var a=mi.CreateFromInterface(e,t.baseData,i,n),s=new Zi(mi.dataType,a);return Ct(e,mi.envelopeType,t,s)},vi[li.dataType]=function(e,t,r){Rt(e,t);var n=t.baseData,i=n.properties||{},a=n.measurements||{};It(t.data,i,a),v(r)||xt(i,r);var s=new li(e,n.name,n.average,n.sampleCount,n.min,n.max,i,a),o=new Zi(l
1i.dataType,s);return Ct(e,li.envelopeType,t,o)},vi[Ei.dataType]=function(e,t,r){Rt(e,t);var n=t.baseData.measurements||{},i=t.baseData.properties||{};It(t.data,i,n),v(r)||xt(i,r);var a=t.baseData;if(v(a))return e.warnToConsole("Invalid input for dependency data"),null;var s=new Ei(e,a.id,a.target,a.name,a.duration,a.success,a.responseCode,a.properties&&a.properties["http.method"]?a.properties["http.method"]:"GET",a.type,a.correlationContext,i,n),o=new Zi(Ei.dataType,s);return Ct(e,Ei.envelopeType,t,o)},vi),sa=function(e){function t(){var r,n,i,a,s,o=e.call(this)||this;o.priority=1001,o.identifier="AppInsightsChannelPlugin";var l,u,d={},c=0;return o._senderConfig={endpointUrl:function(){return"https://dc.services.visualstudio.com/v2/track"},emitLineDelimitedJson:function(){return!1},maxBatchInterval:function(){return 15e3},maxBatchSizeInBytes:function(){return 102400},disableTelemetry:function(){return!1},enableSessionStorageBuffer:function(){return!0},isRetryDisabled:function(){return!1},isBeaconApiDisabled:function(){return!0},disableXhr:function(){return!1},onunloadDisableFetch:function(){return!1},onunloadDisableBeacon:function(){return!1},instrumentationKey:function(){},namePrefix:function(){},samplingPercentage:function(){return 100},customHeaders:function(){},convertUndefined:function(){}},nr(t,o,(function(e,h){function f(){V("Method not implemented.")}function m(t,n,i,a,s,o){var l=null;if(e._appId||(l=S(o))&&l.appId&&(e._appId=l.appId),(t<200||t>=300)&&0!==t){if((301===t||307===t||308===t)&&!p(i))return void e._onError(n,s);!e._senderConfig.isRetryDisabled()&&A(t)?(w(n),e.diagLog().throwInternal(rr.WARNING,Wr,". Response code "+t+". Will retry to send "+n.length+" items.")):e._onError(n,s)}else if(ta.isOffline()){if(!e._senderConfig.isRetryDisabled()){w(n,10),e.diagLog().throwInternal(rr.WARNING,Wr,". Offline - Response Code: "+t+". Offline status: "+ta.isOffline()+". Will retry to send "+n.length+" items.")}}else p(i),206===t?(l||(l=S(o)),l&&!e._senderConfig.isRetryDisabled()?e._onPartialSuccess(n,l):e._onError(n,s)):(r=0,e._onSuccess(n,a))}function p(t){return!(s>=10)&&(!v(t)&&""!==t&&t!==e._senderConfig.endpointUrl()&&(e._senderConfig.endpointUrl=function(){return t},++s,!0))}function g(e,t){u?u(e,!1):y(e,t)}function _(t){var r=ee(),n=e._buffer,i=e._senderConfig.endpointUrl(),a=e._buffer.batchPayloads(t),s=new Blob([a],{type:"text/plain;charset=UTF-8"}),o=r.sendBeacon(i,s);return o&&(n.markAsSent(t),e._onSuccess(t,t.length)),o}function y(t){if(D(t)&&t.length>0&&!_(t)){for(var r=[],n=0;n<t.length;n++){var i=t[n];_([i])||r.push(i)}r.length>0&&(l(r,!0),e.diagLog().throwInternal(rr.WARNING,Wr,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function L(t,r){var n=new XMLHttpRequest,i=e._senderConfig.endpointUrl();try{n[Zn]=!0}catch(e){}n.open("POST",i,r),n.setRequestHeader("Content-type","application/json"),kt(i)&&n.setRequestHeader(Ti.sdkContextHeader,Ti.sdkContextHeaderAppIdRequest),C(F(d),(function(e){n.setRequestHeader(e,d[e])})),n.onreadystatechange=function(){return e._xhrReadyStateChange(n,t,t.length)},n.onerror=function(r){return e._onError(t,I(n),r)};var a=e._buffer.batchPayloads(t);n.send(a),e._buffer.markAsSent(t)}function b(t){if(D(t)){for(var r=t.length,n=0;n<t.length;n++)r+=t[n].length;c+r<=65e3?M(t,!1):ue()?y(t):(l&&l(t,!0),e.diagLog().throwInternal(rr.WARNING,Wr,". Failed to send telemetry with Beacon API, retried with xhrSender."))}}function T(e){M(e,!0)}function M(t,r){var n,i=e._senderConfig.endpointUrl(),a=e._buffer.batchPayloads(t),s=new Blob([a],{type:"application/json"}),o=new Headers,l=a.length;kt(i)&&o.append(Ti.sdkContextHeader,Ti.sdkContextHeaderAppIdRequest),C(F(d),(function(e){o.append(e,d[e])}));var u=((n={method:"POST",headers:o,body:s})[Zn]=!0,n);r||(u.keepalive=!0,c+=l);var h=new Request(i,u);try{h[Zn]=!0}catch(e){}fetch(h).then((function(n){r||(c-=l,l=0),n.ok?n.text().then((function(e){m(n.status,t,n.url,t.length,n.statusText,e)})):e._onError(t,n.statusText)})).catch((function(n){r||(c-=l,l=0),e._onError(t,n.message)})),e._buffer.markAsSent(t)}function S(t){try{if(t&&""!==t){var r=ae().parse(t);if(r&&r.itemsReceived&&r.itemsReceived>=r.itemsAccepted&&r.itemsReceived-r.itemsAccepted===r.errors.length)return r}}catch(r){e.diagLog().throwInternal(rr.CRITICAL,Kr,"Cannot parse the response. "+U(r),{response:t})}return null}function w(t,i){if(void 0===i&&(i=1),t&&0!==t.length){var a=e._buffer;a.clearSent(t),r++;for(var s=0,o=t;s<o.length;s++){a.enqueue(o[s])}!function(e){var t;if(r<=1)t=10;else{var i=(Math.pow(2,r)-1)/2,a=Math.floor(Math.random()*i*10)+1;a*=e,t=Math.max(Math.min(a,3600),10)}var s=j()+1e3*t;n=s}(i),E()}}
1function E(){if(!i){var t=n?Math.max(0,n-j()):0,r=Math.max(e._senderConfig.maxBatchInterval(),t);i=setTimeout((function(){e.triggerSend(!0,null,1)}),r)}}function A(e){return 408===e||429===e||500===e||503===e}function I(e,t){return e?"XMLHttpRequest,Status:"+e.status+",Response:"+Ot(e)||!1:t}function x(t){var r=e._buffer,n=Q(),i=new XDomainRequest;i.onload=function(){return e._xdrOnLoad(i,t)},i.onerror=function(r){return e._onError(t,R(i),r)};var a=n&&n.location&&n.location.protocol||"";if(0!==e._senderConfig.endpointUrl().lastIndexOf(a,0))return e.diagLog().throwInternal(rr.WARNING,Wr,". Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol."),void r.clear();var s=e._senderConfig.endpointUrl().replace(/^(https?:)/,"");i.open("POST",s);var o=r.batchPayloads(t);i.send(o),r.markAsSent(t)}function R(e,t){return e?"XDomainRequest,Response:"+Ot(e)||!1:t}function P(t,r){var n=e.core.getNotifyMgr?e.core.getNotifyMgr():e.core._notificationManager;if(n&&n.eventsSendRequest)try{n.eventsSendRequest(t,r)}catch(t){e.diagLog().throwInternal(rr.CRITICAL,yn,"send request notification failed: "+U(t),{exception:le(t)})}}e.pause=f,e.resume=f,e.flush=function(){try{e.triggerSend(!0,null,1)}catch(t){e.diagLog().throwInternal(rr.CRITICAL,wr,"flush failed, telemetry will not be collected: "+U(t),{exception:le(t)})}},e.onunloadFlush=function(){if(!1!==e._senderConfig.onunloadDisableBeacon()&&!1!==e._senderConfig.isBeaconApiDisabled()||!ue())e.flush();else try{e.triggerSend(!0,g,2)}catch(t){e.diagLog().throwInternal(rr.CRITICAL,Sr,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+U(t),{exception:le(t)})}},e.teardown=f,e.addHeader=function(e,t){d[e]=t},e.initialize=function(t,i,d,c){h.initialize(t,i,d,c);var f=e._getTelCtx(),m=e.identifier;a=new ea(i.logger),r=0,n=null,0,e._sender=null,s=0,k({endpointUrl:function(){return"https://dc.services.visualstudio.com/v2/track"},emitLineDelimitedJson:function(){return!1},maxBatchInterval:function(){return 15e3},maxBatchSizeInBytes:function(){return 102400},disableTelemetry:function(){return!1},enableSessionStorageBuffer:function(){return!0},isRetryDisabled:function(){return!1},isBeaconApiDisabled:function(){return!0},disableXhr:function(){return!1},onunloadDisableFetch:function(){return!1},onunloadDisableBeacon:function(){return!1},instrumentationKey:function(){},namePrefix:function(){},samplingPercentage:function(){return 100},customHeaders:function(){},convertUndefined:function(){}},(function(t,r){e._senderConfig[t]=function(){return f.getConfig(m,t,r())}})),e._buffer=e._senderConfig.enableSessionStorageBuffer()&&mt()?new Fi(e.diagLog(),e._senderConfig):new Yi(e._senderConfig),e._sample=new ia(e._senderConfig.samplingPercentage(),e.diagLog()),function(e){return!(v(e.disableInstrumentationKeyValidation)||!e.disableInstrumentationKeyValidation)||new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$").test(e.instrumentationKey)}(t)||e.diagLog().throwInternal(rr.CRITICAL,Ln,"Invalid Instrumentation key "+t.instrumentationKey),!kt(e._senderConfig.endpointUrl())&&e._senderConfig.customHeaders()&&e._senderConfig.customHeaders().length>0&&C(e._senderConfig.customHeaders(),(function(e){o.addHeader(e.header,e.value)}));var p=e._senderConfig,g=null;!p.disableXhr()&&ce()?g=x:!p.disableXhr()&&he()&&(g=L),!g&&de()&&(g=T),l=g||L,!p.isBeaconApiDisabled()&&ue()&&(g=y),e._sender=g||L,u=!p.onunloadDisableFetch()&&de(!0)?b:ue()?y:!p.disableXhr()&&ce()?x:!p.disableXhr()&&he()?L:l},e.processTelemetry=function(r,n){n=e._getTelCtx(n);try{if(e._senderConfig.disableTelemetry())return;if(!r)return void n.diagLog().throwInternal(rr.CRITICAL,hr,"Cannot send empty telemetry");if(r.baseData&&!r.baseType)return void n.diagLog().throwInternal(rr.CRITICAL,pn,"Cannot send telemetry without baseData and baseType");if(r.baseType||(r.baseType="EventData"),!e._sender)return void n.diagLog().throwInternal(rr.CRITICAL,Cr,"Sender was not initialized");if(!e._sample.isSampledIn(r))return void n.diagLog().throwInternal(rr.WARNING,Fr,"Telemetry item was sampled out and not sent",{SampleRate:e._sample.
1sampleRate});r.sampleRate=e._sample.sampleRate;var i=e._senderConfig.convertUndefined()||void 0,s=r.iKey||e._senderConfig.instrumentationKey(),o=t.constructEnvelope(r,s,n.diagLog(),i);if(!o)return void n.diagLog().throwInternal(rr.CRITICAL,Jr,"Unable to create an AppInsights envelope");var l=!1;if(r.tags&&r.tags.ProcessLegacy&&(C(r.tags.ProcessLegacy,(function(e){try{e&&!1===e(o)&&(l=!0,n.diagLog().warnToConsole("Telemetry processor check returns false"))}catch(e){n.diagLog().throwInternal(rr.CRITICAL,dn,"One of telemetry initializers failed, telemetry item will not be sent: "+U(e),{exception:le(e)},!0)}})),delete r.tags.ProcessLegacy),l)return;var u=a.serialize(o),d=e._buffer;d.size()+u.length>e._senderConfig.maxBatchSizeInBytes()&&e.triggerSend(!0,null,10),d.enqueue(u),E()}catch(e){n.diagLog().throwInternal(rr.WARNING,_r,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+U(e),{exception:le(e)})}e.processNext(r,n)},e._xhrReadyStateChange=function(e,t,r){4===e.readyState&&m(e.status,t,e.responseURL,r,I(e),Ot(e)||e.response)},e.triggerSend=function(t,r,a){void 0===t&&(t=!0);try{var s=e._buffer;if(e._senderConfig.disableTelemetry())s.clear();else{if(s.count()>0){var l=s.getItems();P(a||0,t),r?r.call(o,l,t):e._sender(l,t)}+new Date}clearTimeout(i),i=null,n=null}catch(t){var u=oe();(!u||u>9)&&e.diagLog().throwInternal(rr.CRITICAL,Wr,"Telemetry transmission failed, some telemetry will be lost: "+U(t),{exception:le(t)})}},e._onError=function(t,r){e.diagLog().throwInternal(rr.WARNING,Ir,"Failed to send telemetry.",{message:r}),e._buffer.clearSent(t)},e._onPartialSuccess=function(t,r){for(var n=[],i=[],a=0,s=r.errors.reverse();a<s.length;a++){var o=s[a],l=t.splice(o.index,1)[0];
1A(o.statusCode)?i.push(l):n.push(l)}t.length>0&&e._onSuccess(t,r.itemsAccepted),n.length>0&&e._onError(n,I(null,["partial success",r.itemsAccepted,"of",r.itemsReceived].join(" "))),i.length>0&&(w(i),e.diagLog().throwInternal(rr.WARNING,Wr,"Partial success. Delivered: "+t.length+", Failed: "+n.length+". Will retry to send "+i.length+" our of "+r.itemsReceived+" items"))},e._onSuccess=function(t){e._buffer.clearSent(t)},e._xdrOnLoad=function(t,n){var i=Ot(t);if(!t||i+""!="200"&&""!==i){var a=S(i);a&&a.itemsReceived&&a.itemsReceived>a.itemsAccepted&&!e._senderConfig.isRetryDisabled()?e._onPartialSuccess(n,a):e._onError(n,R(t))}else r=0,e._onSuccess(n,0)}})),o}return Object(Xt.b)(t,e),t.constructEnvelope=function(e,t,r,n){var i;return i=t===e.iKey||v(t)?e:Object(Xt.a)(Object(Xt.a)({},e),{iKey:t}),(aa[i.baseType]||Pt)(r,i,n)},t}(Nn),oa=function(){},la=function(){function e(t,r){var n,i,a=me(r),s=be(r);nr(e,this,(function(r){function o(e,t){var r=!1,n=t.split("|");if(n.length>=2)try{var i=+n[1]||0,s=+n[2]||0;isNaN(i)||i<=0?a.throwInternal(rr.WARNING,xr,"AI session acquisition date is 0, session will be reset"):isNaN(s)||s<=0?a.throwInternal(rr.WARNING,xr,"AI session renewal date is 0, session will be reset"):n[0]&&(e.id=n[0],e.acquisitionDate=i,e.renewalDate=s,r=!0)}catch(e){a.throwInternal(rr.CRITICAL,mr,"Error parsing ai_session value ["+(t||"")+"], session will be reset - "+U(e),{exception:le(e)})}return r}function l(e,t){var a=e.acquisitionDate;e.renewalDate=t;var o=r.config,l=o.sessionRenewalMs(),u=a+o.sessionExpirationMs()-t,d=[e.id,a,t],c=0;c=u<l?u/1e3:l/1e3;var h=o.cookieDomain?o.cookieDomain():null;s.set(n(),d.join("|"),o.sessionExpirationMs()>0?c:null,h),i=t}t||(t={}),T(t.sessionExpirationMs)||(t.sessionExpirationMs=function(){return e.acquisitionSpan}),T(t.sessionRenewalMs)||(t.sessionRenewalMs=function(){return e.renewalSpan}),r.config=t;var u=r.config.sessionCookiePostfix&&r.config.sessionCookiePostfix()?r.config.sessionCookiePostfix():r.config.namePrefix&&r.config.namePrefix()?r.config.namePrefix():"";n=function(){return"ai_session"+u},r.automaticSession=new oa,r.update=function(){var t=j(),u=!1,d=r.automaticSession;d.id||(u=!function(e){var t=!1,r=s.get(n());if(r&&T(r.split))t=o(e,r);else{var i=ct(a,n());i&&(t=o(e,i))}return t||!!e.id}(d));var c=r.config.sessionExpirationMs();if(!u&&c>0){var h=r.config.sessionRenewalMs(),f=t-d.acquisitionDate,m=t-d.renewalDate;u=(u=(u=f<0||m<0)||f>c)||m>h}u?function(e){var t=r.config||{},n=(t.getNewId?t.getNewId():null)||Ye;r.automaticSession.id=n(t.idLength?t.idLength():22),r.automaticSession.acquisitionDate=e,l(r.automaticSession,e),dt()||a.throwInternal(rr.WARNING,ar,"Browser does not support local storage. Session durations will be inaccurate.")}(t):(!i||t-i>e.cookieUpdateInterval)&&l(d,t)},r.backup=function(){var e,t,i,s=r.automaticSession;e=s.id,t=s.acquisitionDate,i=s.renewalDate,ht(a,n(),[e,t,i].join("|"))}}))}return e.acquisitionSpan=864e5,e.renewalSpan=18e5,e.cookieUpdateInterval=6e4,e}(),ua=function(){},da=function(){this.id="browser",this.deviceClass="Browser"},ca=function(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.7.0"},ha=function(){function e(t,r){this.isNewUser=!1,this.isUserCookieSet=!1;var n,i=me(r),a=be(r);nr(e,this,(function(r){function s(){var e=t||{};return((e.getNewId?e.getNewId():null)||Ye)(e.idLength?t.idLength():22)}function o(e){var t=x(new Date);return r.accountAcquisitionDate=t,r.isNewUser=!0,[e,t]}function l(e){r.isUserCookieSet=a.set(n(),e,31536e3)}r.config=t;var u=r.config.userCookiePostfix&&r.config.userCookiePostfix()?r.config.userCookiePostfix():"",d=a.get((n=function(){return e.userCookieName+u})());if(d){r.isNewUser=!1;var c=d.split(e.cookieSeparator);c.length>0&&(r.id=c[0],r.isUserCookieSet=!!r.id)}if(!r.id){r.id=s(),l(o(r.id).join(e.cookieSeparator));var h=t.namePrefix&&t.namePrefix()?t.namePrefix()+"ai_session":"ai_session";ft(i,h)}r.accountId=t.accountId?t.accountId():void 0;var f=a.get(e.authUserCookieName);if(f){var m=(f=decodeURI(f)).split(e.cookieSeparator);m[0]&&(r.authenticatedId=m[0]),m.length>1&&m[1]&&(r.accountId=m[1])}r.setAuthenticatedUserContext=function(t,n,s){if(void 0===s&&(s=!1),!Yt(t)||n&&!Yt(n))i.throwInternal(rr.WARNING,sn,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);else{r.authenticatedId=t;var o=r.authenticatedId;n&&(r.accountId=n,o=[r.authenticatedId,r.accountId].join(e.cookieSeparator)),s&&a.set(e.authUserCookieName,encodeURI(o))}},r.clearAuthenticatedUserContext=function(){r.authenticatedId=null,r.accountId=null,a.del(e.authUserCookieName)},r.update=function(t){r.id===t&&r.isUserCookieSet||l(o(t||s()).join(e.cookieSeparator))}}))}return e.cookieSeparator="|",e.userCookieName="ai_user",e.authUserCookieName="ai_authUser",e}(),fa=function(){},ma=function(e,t,r,n){this.traceID=e||Fe(),this.parentID=t,this.name=r;var i=re();!r&&i&&i.pathname&&(this.name=i.pathname),this.name=Ue(n,this.name)},pa=function e(t,r){var n=this,i=t.logger;this.appId=function(){return null}
1,this.getSessionId=function(){return null},nr(e,this,(function(e){e.application=new ua,e.internal=new ca(r),J()&&(e.sessionManager=new la(r,t),e.device=new da,e.location=new fa,e.user=new ha(r,t),e.telemetryTrace=new ma(void 0,void 0,void 0,i),e.session=new oa),e.getSessionId=function(){var t=e.session,r=null;if(t&&A(t.id))r=t.id;else{var n=(e.sessionManager||{}).automaticSession;r=n&&A(n.id)?n.id:null}return r},e.applySessionContext=function(t){H(B(t.ext,zi.AppExt),"sesId",e.getSessionId(),A)},e.applyOperatingSystemContxt=function(t){H(t.ext,zi.OSExt,e.os)},e.applyApplicationContext=function(t){var r=e.application;if(r){var n=B(t,"tags");H(n,qi.applicationVersion,r.ver,A),H(n,qi.applicationBuild,r.build,A)}},e.applyDeviceContext=function(t){var r=e.device;if(r){var n=B(B(t,"ext"),zi.DeviceExt);H(n,"localId",r.id,A),H(n,"ip",r.ip,A),H(n,"model",r.model,A),H(n,"deviceClass",r.deviceClass,A)}},e.applyInternalContext=function(t){var r=e.internal;if(r){var n=B(t,"tags");H(n,qi.internalAgentVersion,r.agentVersion,A),H(n,qi.internalSdkVersion,r.sdkVersion,A),t.baseType!==xn.dataType&&t.baseType!==di.dataType||(H(n,qi.internalSnippet,r.snippetVer,A),H(n,qi.internalSdkSrc,r.sdkSrc,A))}},e.applyLocationContext=function(e){var t=n.location;t&&H(B(e,"tags",[]),qi.locationIp,t.ip,A)},e.applyOperationContext=function(t){var r=e.telemetryTrace;if(r){var n=B(B(t,"ext"),zi.TraceExt,{traceID:void 0,parentID:void 0});H(n,"traceID",r.traceID,A),H(n,"name",r.name,A),H(n,"parentID",r.parentID,A)}},e.applyWebContext=function(e){var t=n.web;t&&H(B(e,"ext"),zi.WebExt,t)},e.applyUserContext=function(t){var r=e.user;if(r){H(B(t,"tags",[]),qi.userAccountId,r.accountId,A);var n=B(B(t,"ext"),zi.UserExt);H(n,"id",r.id,A),H(n,"authId",r.authenticatedId,A)}},e.cleanUp=function(e){var t=e.ext;t&&(Ft(t,zi.DeviceExt),Ft(t,zi.UserExt),Ft(t,zi.WebExt),Ft(t,zi.OSExt),Ft(t,zi.AppExt),Ft(t,zi.TraceExt))}}))},ga=function(e){function t(){var r,n,i=e.call(this)||this;return i.priority=110,i.identifier="AppInsightsPropertiesPlugin",nr(t,i,(function(e,i){e.initialize=function(a,s,o,l){i.initialize(a,s,o,l);var u=e._getTelCtx(),d=e.identifier,c=t.getDefaultConfig();n=n||{},k(c,(function(e,t){n[e]=function(){return u.getConfig(d,e,t())}})),e.context=new pa(s,n),r=Xe(o,"AppInsightsChannelPlugin"),e.context.appId=function(){return r?r._appId:null},e._extConfig=n},e.processTelemetry=function(t,r){if(v(t));else{r=e._getTelCtx(r),t.name===di.envelopeType&&r.diagLog().resetInternalMessageCount();var n=e.context||{};n.session&&"string"!=typeof e.context.session.id&&n.sessionManager&&n.sessionManager.update();var i=n.user;if(i&&!i.isUserCookieSet&&i.update(n.user.id),function(t,r){B(t,"tags",[]),B(t,"ext",{});var n=e.context;n.applySessionContext(t,r),n.applyApplicationContext(t,r),n.applyDeviceContext(t,r),n.applyOperationContext(t,r),n.applyUserContext(t,r),n.applyOperatingSystemContxt(t,r),n.applyWebContext(t,r),n.applyLocationContext(t,r),n.applyInternalContext(t,r),n.cleanUp(t,r)}(t,r),i&&i.isNewUser){i.isNewUser=!1;var a=new xn(_n,(ee()||{}).userAgent||"");r.diagLog().logInternalMessage(rr.CRITICAL,a)}e.processNext(t,r)}}})),i}return Object(Xt.b)(t,e),t.getDefaultConfig=function(){return{instrumentationKey:function(){},accountId:function(){return null},sessionRenewalMs:function(){return 18e5},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 864e5},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return!1},appId:function(){return null},getSessionId:function(){return null},namePrefix:function(){},sessionCookiePostfix:function(){},userCookiePostfix:function(){},idLength:function(){return 22},getNewId:function(){return null}}},t}(Nn),_a=["req","rsp","hkErr","fnErr"],va=Object.getPrototypeOf,ya=function(){this.openDone=!1,this.setRequestHeaderDone=!1,this.sendDone=!1,this.abortDone=!1,this.stateChangeAttached=!1},La=function e(t,r,n){var i=n;this.perfMark=null,this.completed=!1,this.requestHeadersSize=null,this.requestHeaders=null,this.responseReceivingDuration=null,this.callbackDuration=null,this.ajaxTotalDuration=null,this.aborted=0,this.pageUrl=null,this.requestUrl=null,this.requestSize=0,this.method=null,this.status=null,this.requestSentTime=null,this.responseStartedTime=null,this.responseFinishedTime=null,this.callbackFinishedTime=null,this.endTime=null,this.xhrMonitoringState=new ya,this.clientFailure=0,this.traceID=t,this.spanID=r,nr(e,this,(function(e){e.getAbsoluteUrl=function(){return e.requestUrl?Lt(e.requestUrl):null},e.getPathName=function(){return e.requestUrl?He(i,bt(e.method,e.requestUrl)):null},e.CreateTrackItem=function(t,r,n){var i;if(e.ajaxTotalDuration=Math.round(1e3*wt(e.requestSentTime,e.responseFinishedTime))/1e3,e.ajaxTotalDuration<0)return null;var a=((i={id:"|"+e.traceID+"."+e.spanID,target:e.getAbsoluteUrl(),name:e.getPathName(),type:t,startTime:null,duration:e.ajaxTotalDuration,success:+e.status>=200&&+e.status<400,responseCode:+e.status,method:e.method}).properties={HttpMethod:e.method},i);if(e.requestSentTime&&(a.startTime=new Date,a.startTime.setTime(e.requestSentTime)),function(e,t){var r=e.perfTiming,n=t.properties||{},i=0,a="redirect",s=a+"Start",o=a="End";if(r){i|=Wt(n,a,r,s,o),i|=Wt(n,"domainLookup",r,"domainLookupStart","domainLookupEnd"),i|=Wt(n,"connect",r,"connectStart","connectEnd"),i|=Wt(n,"request",r,"requestStart","requestEnd"),i|=Wt(n,"response",r,"responseStart","responseEnd"),i|=Wt(n,"networkConnect",r,"startTime","connectEnd"),i|=Wt(n,"sentRequest",r,"requestStart","responseEnd");var l=r.duration;l||(l=Bt(r,"startTime","responseEnd")||0),i|=Gt(n,"duration",l),i|=Gt(n,"perfTotal",l);var u=r.serverTiming;if(u){var d={};C(u,(function(e,t){var r=function(e){var t=e,r=/([^\w\d_$])/g;return r.test(e)&&(t=e.replace(r,"_")),t}(e.name||""+t),n=d[r]||{};k(e,(function(e,t){("name"!==e&&A(t)||I(t))&&(n[e]&&(t=n[e]+";"+t),!t&&A(t)||(n[e]=t))})),d[r]=n})),i|=Gt(n,"serverTiming",d)}i|=Gt(n,"transferSize",r.transferSize),i|=Gt(n,"encodedBodySize",r.encodedBodySize),i|=Gt(n,"decodedBodySize",r.decodedBodySize)}else e.perfMark&&(i|=Gt(n,"missing",e.perfAttempts));i&&(t.properties=n)}(e,a),r&&F(e.requestHeaders).length>0&&(a.properties=a.properties||{},a.properties.requestHeaders=e.requestHeaders),n){var s=n();if(s){var o=s.correlationContext;if(o&&(a.correlationContext=o),s.headerMap&&F(s.headerMap).length>0&&(a.properties=a.properties||{},a.properties.responseHeaders=s.headerMap),e.errorStatusText&&e.status>=400){var l=s.type;a.properties=a.properties||{},""!==l&&"text"!==l||(a.properties.responseText=s.responseText?s.statusText+" - "+s.responseText:s.statusText),"json"===l&&(a.properties.responseText=s.response?s.statusText+" - "+JSON.stringify(s.response):s.statusText)}}}return a}}))},ba=function(){function e(t,r){this.traceFlag=e.DEFAULT_TRACE_FLAG,this.version=e.DEFAULT_VERSION,this.traceId=t&&e.isValidTraceId(t)?t:Fe(),this.spanId=r&&e.isValidSpanId(r)?r:Fe().substr(0,16)}return e.isValidTraceId=function(e){return e.match(/^[0-9a-f]{32}$/)&&"00000000000000000000000000000000"!==e},e.isValidSpanId=function(e){return e.match(/^[0-9a-f]{16}$/)&&"0000000000000000"!==e},e.prototype.toString=function(){return this.version+"-"+this.traceId+"-"+this.spanId+"-"+this.traceFlag},e.DEFAULT_TRACE_FLAG="01",e.DEFAULT_VERSION="00",e}(),Ta=0,Ma=function(e){function t(){var r=e.call(this)||this;r.identifier=t.identifier,r.priority=120;var n,i,a,s,o,l,u=re(),d=!1,c=!1,h=u&&u.host&&u.host.toLowerCase(),f=t.getEmptyConfig(),m=!1,p=!1,g=0,_=!1,y=0,L=!1,b=[],S={};return nr(t,r,(function(e,r){function u(e){var t=!0;return(e||f.ignoreHeaders)&&C(f.ignoreHeaders,(function(r){if(r.toLowerCase()===e.toLowerCase())return t=!1,-1})),t}function w(){var t,r=!(t=Object(Zt.a)())||v(t.Request)||v(t.Request[Tn.k])||v(t.fetch)?null:t.fetch;if(r){var i=Object(Zt.a)(),a=r.polyfill;!1===f.disableFetchTracking?(b.push(Ht(i,"fetch",{req:function(t,r,i){var s;if(d&&!I(null,r,i)&&(!a||!c)){var o=t.ctx();s=function(t,r){var i=n&&n.telemetryTrace&&n.telemetryTrace.traceID||Fe(),a=Fe().substr(0,16),s=new La(i,a,e.diagLog());s.requestSentTime=St(),s.errorStatusText=p,s.requestUrl=t instanceof Request?t?t.url:"":t;var o="GET";r&&r.method?o=r.method:t&&t instanceof Request&&(o=t.method);s.method=o;var l={};if(m){new Headers((r?r.headers:0)||t instanceof Request&&t.headers||{}
1).forEach((function(e,t){u(t)&&(l[t]=e)}))}return s.requestHeaders=l,O("fetch",s),s}(r,i);var l=e.includeCorrelationHeaders(s,r,i);l!==i&&t.set(1,l),o.data=s}},rsp:function(e,t){var r=e.ctx().data;r&&(e.rslt=e.rslt.then((function(n){return j(e,(n||{}).status,t,n,r,(function(){var e={statusText:n.statusText,headerMap:null,correlationContext:U(n)};if(L){var t={};n.headers.forEach((function(e,r){u(r)&&(t[r]=e)})),e.headerMap=t}return e})),n})).catch((function(n){throw j(e,0,t,null,r,null,{error:n.message}),n})))},hkErr:qt(e,Lr,"Failed to monitor Window.fetch, monitoring data for this fetch call may be incorrect.")})),d=!0):a&&b.push(Ht(i,"fetch",{req:function(e,t,r){I(null,t,r)}})),a&&(i.fetch.polyfill=a)}}function D(e,t,r){b.push(function(e,t,r){return e?Ht(e[Tn.k],t,r,!1):null}(e,t,r))}function E(){(function(e){var t=!1;if(he()){var r=XMLHttpRequest[Tn.k];t=!(v(r)||v(r.open)||v(r.send)||v(r.abort))}var n=oe();if(n&&n<9&&(t=!1),t)try{(new XMLHttpRequest).ajaxData={};var i=XMLHttpRequest[Tn.k].open;XMLHttpRequest[Tn.k].open=i}catch(r){t=!1,Kt(e,Lr,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:le(r)})}return t})(e)&&!c&&(D(XMLHttpRequest,"open",{req:function(t,r,i,a){var s=t.inst,o=s.ajaxData;I(s,i)||!x(s,!0)||o&&o.xhrMonitoringState.openDone||function(t,r,i,a){var s=n&&n.telemetryTrace&&n.telemetryTrace.traceID||Fe(),o=Fe().substr(0,16),d=new La(s,o,e.diagLog());d.method=r,d.requestUrl=i,d.xhrMonitoringState.openDone=!0,d.requestHeaders={},d.async=a,d.errorStatusText=p,t.ajaxData=d,function(t){t.ajaxData.xhrMonitoringState.stateChangeAttached=M(t,"readystatechange",(function(){try{t&&4===t.readyState&&x(t)&&function(t){function r(r,n){var i=n||{};i.ajaxDiagnosticsMessage=Vt(t),r&&(i.exception=le(r)),zt(e,yr,"Failed to calculate the duration of the ajax call, monitoring data for this ajax call won't be sent.",i)}var n=t.ajaxData;n.responseFinishedTime=St(),n.status=t.status,F("xmlhttprequest",n,(function(){try{var i=n.CreateTrackItem("Ajax",m,(function(){var e={statusText:t.statusText,headerMap:null,correlationContext:P(t),type:t.responseType,responseText:R(t),response:t.response};if(L){var r=t.getAllResponseHeaders();if(r){var n=Y(r).split(/[\r\n]+/),i={};C(n,(function(e){var t=e.split(": "),r=t.shift(),n=t.join(": ");u(r)&&(i[r]=n)})),e.headerMap=i}}return e})),a=void 0;try{l&&(a=l({status:t.status,xhr:t}))}catch(t){zt(e,bn,"Failed to add custom defined request context as configured call back may missing a null check.")}i?(void 0!==a&&(i.properties=Object(Xt.a)(Object(Xt.a)({},i.properties),a)),e.trackDependencyDataInternal(i)):r(null,{requestSentTime:n.requestSentTime,responseFinishedTime:n.responseFinishedTime})}finally{try{t.ajaxData=null}catch(e){}}}),(function(e){r(e,null)}))}(t)}catch(n){var r=le(n);r&&-1!==Jt(r.toLowerCase(),"c00c023f")||Kt(e,br,"Failed to monitor XMLHttpRequest 'readystatechange' event handler, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:Vt(t),exception:r})}}))}(t)}(s,r,i,a)},hkErr:qt(e,Lr,"Failed to monitor XMLHttpRequest.open, monitoring data for this ajax call may be incorrect.")}),D(XMLHttpRequest,"send",{req:function(t){var r=t.inst,n=r.ajaxData;x(r)&&!n.xhrMonitoringState.sendDone&&(O("xhr",n),n.requestSentTime=St(),e.includeCorrelationHeaders(n,void 0,void 0,r),n.xhrMonitoringState.sendDone=!0)},hkErr:qt(e,Tr,"Failed to monitor XMLHttpRequest, monitoring data for this ajax call may be incorrect.")}),D(XMLHttpRequest,"abort",{req:function(e){var t=e.inst,r=t.ajaxData;x(t)&&!r.xhrMonitoringState.abortDone&&(r.aborted=1,r.xhrMonitoringState.abortDone=!0)},hkErr:qt(e,vr,"Failed to monitor XMLHttpRequest.abort, monitoring data for this ajax call may be incorrect.")}),m&&D(XMLHttpRequest,"setRequestHeader",{req:function(e,t,r){var n=e.inst;x(n)&&u(t)&&(n.ajaxData.requestHeaders[t]=r)},hkErr:qt(e,gn,"Failed to monitor XMLHttpRequest.setRequestHeader, monitoring data for this ajax call may be incorrect.")}),c=!0)}function I(e,t,r){var n=!1,i=((A(t)?t:(t||{}).url||"")||"").toLowerCase();if(C(o,(function(e){var t=e;A(e)&&(t=new RegExp(e)),n||(n=t.test(i))})),n)return n;var a=Jt(i,"?"),s=Jt(i,"#");return(-1===a||-1!==s&&s<a)&&(a=s),-1!==a&&(i=i.substring(0,a)),v(e)?v(t)||(n="object"==typeof t&&!0===t[Zn]||!!r&&!0===r[Zn]):n=!0===e[Zn]||!0===i[Zn],!n&&i&&kt(i)&&(n=!0),n?S[i]||(S[i]=1):S[i]&&(n=!0),n}function x(e,t){var r=!0,n=c;return v(e)||(r=!0===t||!v(e.ajaxData)),n&&r}function R(e){try{var t=e.responseType;if(""===t||"text"===t)return e.responseText}catch(e){}return null}function P(t){try{var r=t.getAllResponseHeaders();if(null!==r)if(-1!==Jt(r.toLowerCase(),Ti.requestContextHeaderLowerCase)){var n=t.getResponseHeader(Ti.requestContextHeader);return Di.getCorrelationContext(n)}}catch(r){zt(e,Mr,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{ajaxDiagnosticsMessage:Vt(t),exception:le(r)})}}function O(e,t){if(t.requestUrl&&s&&_){var r=ne();if(r&&T(r.mark)){Ta++;var n=s+e+"#"+Ta;r.mark(n);var i=r.getEntriesByName(n);i&&1===i.length&&(t.perfMark=i[0])}}}function F(e,t,r,n){var i=t.perfMark,a=ne(),s=f.maxAjaxPerfLookupAttempts,o=f.ajaxPerfLookupDelay,l=t.requestUrl,u=0;!function d(){try{if(a&&i){u++;for(var c=null,h=a.getEntries(),f=h.length-1;f>=0;f--){var m=h[f];if(m){if("resource"===m.entryType)m.initiatorType!==e||-1===Jt(m.name,l)&&-1===Jt(l,m.name)||(c=m);else if("mark"===m.entryType&&m.name===i.name){t.perfTiming=c;break}if(m.startTime<i.startTime-1e3)break}}}!i||t.perfTiming||u>=s||!1===t.async?(i&&T(a.clearMarks)&&a.clearMarks(i.name),t.perfAttempts=u,r()):setTimeout(d,o)}catch(e){n(e)}}()}function N(t){var r="";try{v(t)||(r+="string"==typeof t?"(url: '"+t+"')":"(url: '"+t.url+"')")}catch(t){Kt(e,Lr,"Failed to grab failed fetch diagnostics message",{exception:le(t)})}return r}function j(t,r,n,i,a,s){function o(t,r,i){var a=i||{};a.fetchDiagnosticsMessage=N(n),r&&(a.exception=le(r)),zt(e,t,"Failed to calculate the duration of the fetch call, monitoring data for this fetch call won't be sent.",a)}a&&(a.responseFinishedTime=St(),a.status=r,F("fetch",a,(function(){var t,u=a.CreateTrackItem("Fetch",m,s);try{l&&(t=l({status:r,request:n,response:i}))}catch(t){zt(e,bn,"Failed to add custom defined request context as configured call back may missing a null check.")}u?(void 0!==t&&(u.properties=Object(Xt.a)(Object(Xt.a)({},u.properties),t)),e.trackDependencyDataInternal(u)):o(yr,null,{requestSentTime:a.requestSentTime,responseFinishedTime:a.responseFinishedTime})}),(function(e){o(Mr,e,null)})))}function U(t){if(t&&t.headers)try{var r=t.headers.get(Ti.requestContextHeader);return Di.getCorrelationContext(r)}catch(r){zt(e,Mr,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{fetchDiagnosticsMessage:N(t),exception:le(r)})}}e.initialize=function(u,d,c,h){if(!e.isInitialized()){r.initialize(u,d,c,h);var g=e._getTelCtx();k(t.getDefaultConfig(),(function(e,r){f[e]=g.getConfig(t.identifier,e,r)}));var v=f.distributedTracingMode;if(m=f.enableRequestHeaderTracking,p=f.enableAjaxErrorStatusText,y=f.maxAjaxCallsPerVie
1w,L=f.enableResponseHeaderTracking,o=f.excludeRequestFromAutoTrackingPatterns,l=f.addRequestContext,a=v===si.AI||v===si.AI_AND_W3C,i=v===si.AI_AND_W3C||v===si.W3C,_=f.enableAjaxPerfTracking){var b=u.instrumentationKey||"unkwn";s=b.length>5?"ai.ajxmn."+b.substring(b.length-5)+".":"ai.ajxmn."+b+"."}if(!1===f.disableAjaxTracking&&E(),w(),c.length>0&&c){for(var T=void 0,M=0;!T&&M<c.length;)c[M]&&"AppInsightsPropertiesPlugin"===c[M].identifier&&(T=c[M]),M++;T&&(n=T.context)}}},e.teardown=function(){C(b,(function(e){e.rm()})),b=[],d=!1,c=!1,e.setInitialized(!1)},e.trackDependencyData=function(t,r){e.trackDependencyDataInternal(t,r)},e.includeCorrelationHeaders=function(t,r,s,o){var l=e._currentWindowHost||h;if(r){if(Di.canIncludeCorrelationHeader(f,t.getAbsoluteUrl(),l)){if(s||(s={}),s.headers=new Headers(s.headers||r instanceof Request&&r.headers||{}),a)s.headers.set(Ti.requestIdHeader,d="|"+t.traceID+"."+t.spanID),m&&(t.requestHeaders[Ti.requestIdHeader]=d);if((c=f.appId||n&&n.appId())&&(s.headers.set(Ti.requestContextHeader,Ti.requestContextAppIdFormat+c),m&&(t.requestHeaders[Ti.requestContextHeader]=Ti.requestContextAppIdFormat+c)),i){var u=new ba(t.traceID,t.spanID);s.headers.set(Ti.traceParentHeader,u.toString()),m&&(t.requestHeaders[Ti.traceParentHeader]=u.toString())}}return s}if(o){if(Di.canIncludeCorrelationHeader(f,t.getAbsoluteUrl(),l)){var d,c;if(a)o.setRequestHeader(Ti.requestIdHeader,d="|"+t.traceID+"."+t.spanID),m&&(t.requestHeaders[Ti.requestIdHeader]=d);if((c=f.appId||n&&n.appId())&&(o.setRequestHeader(Ti.requestContextHeader,Ti.requestContextAppIdFormat+c),m&&(t.requestHeaders[Ti.requestContextHeader]=Ti.requestContextAppIdFormat+c)),i){u=new ba(t.traceID,t.spanID);o.setRequestHeader(Ti.traceParentHeader,u.toString()),m&&(t.requestHeaders[Ti.traceParentHeader]=u.toString())}}return o}},e.trackDependencyDataInternal=function(t,r,n){if(-1===y||g<y){f.distributedTracingMode!==si.W3C&&f.distributedTracingMode!==si.AI_AND_W3C||"string"!=typeof t.id||"."===t.id[t.id.length-1]||(t.id+="."),v(t.startTime)&&(t.startTime=new Date);var i=$n.create(t,Ei.dataType,Ei.envelopeType,e.diagLog(),r,n);e.core.track(i)}else g===y&&Kt(e,tn,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0);++g}})),r}return Object(Xt.b)(t,e),t.getDefaultConfig=function(){return{maxAjaxCallsPerView:500,disableAjaxTracking:!1,disableFetchTracking:!0,excludeRequestFromAutoTrackingPatterns:void 0,disableCorrelationHeaders:!1,distributedTracingMode:si.AI_AND_W3C,correlationHeaderExcludedDomains:["*.blob.core.windows.net","*.blob.core.chinacloudapi.cn","*.blob.core.cloudapi.de","*.blob.core.usgovcloudapi.net"],correlationHeaderDomains:void 0,correlationHeaderExcludePatterns:void 0,appId:void 0,enableCorsCorrelation:!1,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,enableAjaxErrorStatusText:!1,enableAjaxPerfTracking:!1,maxAjaxPerfLookupAttempts:3,ajaxPerfLookupDelay:25,ignoreHeaders:["Authorization","X-API-Key","WWW-Authenticate"],addRequestContext:void 0}},t.getEmptyConfig=function(){var e=this.getDefaultConfig();return k(e,(function(t){e[t]=void 0})),e},t.prototype.processTelemetry=function(e,t){this.processNext(e,t)},t.identifier="AjaxDependencyPlugin",t}(Nn),ka=(function(){function e(){}e.getConfig=function(e,t,r,n){var i;return void 0===n&&(n=!1),i=r&&e.extensionConfig&&e.extensionConfig[r]&&!v(e.extensionConfig[r][t])?e.extensionConfig[r][t]:e[t],v(i)?n:i}}(),["snippet","dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"]),Sa=function(){function e(e){this._snippetVersion=""+(e.sv||e.version||""),e.queue=e.queue||[],e.version=e.version||2;var t=e.config||{};if(t.connectionString){var r=Qt(t.connectionString),n=r.ingestionendpoint;t.endpointUrl=n?n+"/v2/track":t.endpointUrl,t.instrumentationKey=r.instrumentationkey||t.instrumentationKey}this.appInsights=new Ri,this.properties=new ga,this.dependencies=new Ma,this.core=new qn,this._sender=new sa,this.snippet=e,this.config=t,this.get
1SKUDefaults()}return e.prototype.getCookieMgr=function(){return this.appInsights.getCookieMgr()},e.prototype.trackEvent=function(e,t){this.appInsights.trackEvent(e,t)},e.prototype.trackPageView=function(e){this.appInsights.trackPageView(e||{})},e.prototype.trackPageViewPerformance=function(e){this.appInsights.trackPageViewPerformance(e||{})},e.prototype.trackException=function(e,t){e&&!e.exception&&e.error&&(e.exception=e.error),this.appInsights.trackException(e,t)},e.prototype._onerror=function(e){this.appInsights._onerror(e)},e.prototype.trackTrace=function(e,t){this.appInsights.trackTrace(e,t)},e.prototype.trackMetric=function(e,t){this.appInsights.trackMetric(e,t)},e.prototype.startTrackPage=function(e){this.appInsights.startTrackPage(e)},e.prototype.stopTrackPage=function(e,t,r,n){this.appInsights.stopTrackPage(e,t,r,n)},e.prototype.startTrackEvent=function(e){this.appInsights.startTrackEvent(e)},e.prototype.stopTrackEvent=function(e,t,r){this.appInsights.stopTrackEvent(e,t,r)},e.prototype.addTelemetryInitializer=function(e){return this.appInsights.addTelemetryInitializer(e)},e.prototype.setAuthenticatedUserContext=function(e,t,r){void 0===r&&(r=!1),this.properties.context.user.setAuthenticatedUserContext(e,t,r)},e.prototype.clearAuthenticatedUserContext=function(){this.properties.context.user.clearAuthenticatedUserContext()},e.prototype.trackDependencyData=function(e){this.dependencies.trackDependencyData(e)},e.prototype.flush=function(e){var t=this;void 0===e&&(e=!0),pe(this.core,(function(){return"AISKU.flush"}),(function(){C(t.core.getTransmissionControls(),(function(t){C(t,(function(t){t.flush(e)}))}))}),null,e)},e.prototype.onunloadFlush=function(e){void 0===e&&(e=!0),C(this.core.getTransmissionControls(),(function(t){C(t,(function(t){t.onunloadFlush?t.onunloadFlush():t.flush(e)}))}))},e.prototype.loadAppInsights=function(e,t,r){var n=this;void 0===e&&(e=!1);var i=this;return e&&i.config.extensions&&i.config.extensions.length>0&&V("Extensions not allowed in legacy mode"),pe(i.core,(function(){return"AISKU.loadAppInsights"}),(function(){var a=[];a.push(i._sender),a.push(i.properties),a.push(i.dependencies),a.push(i.appInsights),i.core.initialize(i.config,a,t,r),i.context=i.properties.context,yi&&i.context&&(i.context.internal.sdkSrc=yi),function(t){if(t){var r="";v(i._snippetVersion)||(r+=i._snippetVersion),e&&(r+=".lg"),i.context&&i.context.internal&&(i.context.internal.snippetVer=r||"-"),k(i,(function(e,r){A(e)&&!T(r)&&e&&"_"!==e[0]&&-1===ka.indexOf(e)&&(t[e]=r)}))}}(i.snippet),i.emptyQueue(),i.pollInternalLogs(),i.addHousekeepingBeforeUnload(n)})),i},e.prototype.updateSnippetDefinitions=function(e){!function(e,t,r){if(e&&t&&e!==t&&b(e)&&b(t)){var n=function(n){if(A(n)){var i=t[n];T(i)?r&&!r(n,!0,t,e)||(e[n]=(a=n,function(){var e=arguments;return t[a].apply(t,e)})):r&&!r(n,!1,t,e)||(L(e,n)&&delete e[n],N(e,n,(function(){return t[n]}),(function(e){t[n]=e}))||(e[n]=i))}var a};for(var i in t)n(i)}}(e,this,(function(e){return e&&-1===ka.indexOf(e)}))},e.prototype.emptyQueue=function(){try{if(D(this.snippet.queue)){for(var e=this.snippet.queue.length,t=0;t<e;t++){(0,this.snippet.queue[t])()}this.snippet.queue=void 0,delete this.snippet.queue}}catch(e){e&&T(e.toString)&&e.toString()}},e.prototype.pollInternalLogs=function(){this.core.pollInternalLogs()},e.prototype.addHousekeepingBeforeUnload=function(e){if(J()||X()){var t=function(){e.onunloadFlush(!1),C(e.appInsights.core._extensions,(function(e){if("AppInsightsPropertiesPlugin"===e.identifier)return e&&e.context&&e.context._sessionManager&&e.context._sessionManager.backup(),-1}))};if(!e.appInsights.config.disableFlushOnBeforeUnload){var r=Oe("beforeunload",t);r=Oe("unload",t)||r,r=Oe("pagehide",t)||r,(r=Oe("visibilitychange",t)||r)||(n=ee())&&n.product&&"ReactNative"===n.product||e.appInsights.core.logger.throwInternal(rr.CRITICAL,kr,"Could not add handler for beforeunload and pagehide")}e.appInsights.config.disableFlushOnUnload||(Oe("pagehide",t),Oe("visibilitychange",t))}var n},e.prototype.getSender=function(){return this._sender},e.prototype.getSKUDefaults=function(){this.config.diagnosticLogInterval=this.config.diagnosticLogInterval&&this.config.diagnosticLogInterval>0?this.config.diagnosticLogInterval:1e4},e}();
1!function(){var e=null,t=["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"];try{var r=(document||{}).currentScript;r&&(e=r.src)}catch(e){}if(e)try{var n=e.toLowerCase();if(n)for(var i="",a=0;a<t.length;a++)if(-1!==n.indexOf(t[a])){i="cdn"+(a+1),-1===n.indexOf("/scripts/")&&(-1!==n.indexOf("/next/")?i+="-next":-1!==n.indexOf("/beta/")&&(i+="-beta")),yi=i+"";break}}catch(e){}}()},"VDG+":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})},VPZN:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_PoutÅ«-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_TÅ«rei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_TÅ«_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_TÅ«_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})},VRbA:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})},VbkY:function(e,t,r){"use strict";function n(e,t,r){var n={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?n[r][0]:n[r][1]}r.r(t);var i=r("Q/DC");t.default=i.default.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},W0B4:function(e,t,r){e.exports=r("NS33")()},"WBo+":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i={1:"à«§",2:"૨",3:"à«©",4:"૪",5:"à««",6:"૬",7:"à«­",8:"à«®",9:"૯",0:"૦"},a={"à«§":"1","૨":"2","à«©":"3","૪":"4","à««":"5","૬":"6","à«­":"7","à«®":"8","૯":"9","૦":"0"};t.default=n.default.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડà
1ª¿àª¸à«‡.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return a[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return i[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})},WLld:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})},"Wl8+":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%
1d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})},Xvk3:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})},Y3FI:function(e,t,r){"use strict";r.r(t),function(e){function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){for(var r in t)e[r]=t[r];return e}function a(e,t,r){var n,i=/(?:\?([^#]*))?(#.*)?$/,a=e.match(i),s={};if(a&&a[1])for(var o=a[1].split("&"),u=0;u<o.length;u++){var d=o[u].split("=");s[decodeURIComponent(d[0])]=decodeURIComponent(d.slice(1).join("="))}e=l(e.replace(i,"")),t=l(t||"");for(var c=Math.max(e.length,t.length),h=0;h<c;h++)if(t[h]&&":"===t[h].charAt(0)){var f=t[h].replace(/(^:|[+*?]+$)/g,""),m=(t[h].match(/[+*?]+$/)||L)[0]||"",p=~m.indexOf("+"),g=~m.indexOf("*"),_=e[h]||"";if(!_&&!g&&(m.indexOf("?")<0||p)){n=!1;break}if(s[f]=decodeURIComponent(_),p||g){s[f]=e.slice(h).map(decodeURIComponent).join("/");break}}else if(t[h]!==e[h]){n=!1;break}return(!0===r.default||!1!==n)&&s}function s(e,t){return e.rank<t.rank?1:e.rank>t.rank?-1:e.index-t.index}function o(e,t){return e.index=t,e.rank=function(e){return e.props.default?0:l(e.props.path).map(u).join("")}(e),e.props}function l(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")}function u(e){return":"==e.charAt(0)?1+"*+?".indexOf(e.charAt(e.length-1))||4:5}function d(e){v=e;var t="undefined"!=typeof window?window:{};"undefined"!=typeof history&&history.replaceState&&history.replaceState({scrollY:t.scrollY,pageState:v},null)}function c(){var e;return""+((e=b&&b.location?b.location:b&&b.getCurrentLocation?b.getCurrentLocation():"undefined"!=typeof location?location:k).pathname||"")+(e.search||"")}function h(t,r){return void 0===r&&(r=!1),console.log("! ROUTE",t),"string"!=typeof t&&t.url&&(r=t.replace,t=t.url),e.nagivateNatively?(window.top.postMessage("navigate:"+JSON.stringify(t),"*"),g(window.event)):f(t,void 0,r)}function f(e,t,r){var n;void 0===r&&(r=!1);for(var i=!1,a=0;a<T.length;a++){var s=T[a].routeTo(e,t);s&&(i=s)}return(null==(n=i)?void 0:n.then)&&i.then((function(n){var i=n;i&&!t&&function(e,t){if(void 0===t&&(t="push"),b&&b[t])b[t](e);else if("undefined"!=typeof history&&history[t+"State"]){var r="undefined"!=typeof window?window:{};"push"==t&&history.replaceState&&history.replaceState({scrollY:r.scrollY,pageState:v},null),history[t+"State"](null,null,e)}v=void 0}(e,r?"replace":"push");for(var a=M.length;a--;)M[a](e);var s=t&&t.scrollY||0;i&&!isNaN(s)&&window.scrollTo({top:s}),console.log("routeTo end",i)})),i}function m(t){if(console.log("route 1"),t&&t.getAttribute){var r=t.getAttribute("href"),n=t.getAttribute("target");if(e.nagivateNatively||r&&r.match(/^\//g)&&(!n||n.match(/^_?self$/i)))return h(r)}}function p(e){if(!(e.ctrlKey||e.metaKey||e.altKey||e.shiftKey||0!==e.button))return m(e.currentTarget||e.target||this),g(e)}function g(e){return e&&(e.stopImmediatePropagation&&e.stopImmediatePropagation(),e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()),!1}function _(t){if(!(t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||0!==t.button)){var r=t.target;do{if("A"===String(r.nodeName).toUpperCase()&&r.getAttribute("href")){if(r.hasAttribute("native"))return;if(e.nagivateNatively)return window.top.postMessage("navigate:"+JSON.stringify(r.getAttribute("href")),"*"),g(t);if(m(r))return g(t)}}while(r=r.parentNode)}}r.d(t,"Link",(function(){return D})),r.d(t,"Route",(function(){return E})),r.d(t,"Router",(function(){return w})),r.d(t,"exec",(function(){return a})),r.d(t,"getCurrentUrl",(function(){return c})),r.d(t,"route",(function(){return h})),r.d(t,"setPageState",(function(){return d})),r.d(t,"subscribers",(function(){return M}));var v,y=r("hosL"),L={},b=null,T=[],M=[],k={},S=!1,w=function(e){function t(t){var r;return r=e.call(this,t)||this,t.history&&(b=t.history),r.state={url:t.url||c()},S||("function"==typeof addEventListener&&(b||addEventListener("popstate",(function(e){var t=e.state;f(c(),t)})),addEventListener("click",_)),S=!0),r}var r,l;l=e,(r=t).prototype=Object.create(l.prototype),r.prototype.constructor=r,n(r,l);var u=t.prototype;return u.shouldComponentUpdate=function(e){return!0!==e.static||e.url!==this.props.url||e.onChange!==this.props.onChange},u.canRoute=function(e){var t=Object(y.toChildArray)(this.props.children);return this.getMatchingChildren(t,e,!1).length>0},u.routeTo=function(e,t){void 0===t&&(t=void 0);try{var r=this;return Promise.resolve(r.rendered(e,t)).then((function(){r.setState({url:e,pageState:t&&t.pageState});var n=r.canRoute(e);return r.updating||r.forceUpdate(),n}))}catch(e){return Promise.reject(e)}},u.componentWillMount=function(){this.updating=!0},u.componentDidMount=function(){var e=this;T.push(this),b&&(this.unlisten=b.listen((function(t){e.routeTo(""+(t.pathname||"")+(t.search||""))}))),this.rendered(this.state.url,this.state.pageState),this.updating=!1},u.componentWillUnmount=function(){"function"==typeof this.unlisten&&this.unlisten(),T.splice(T.indexOf(this),1)},u.componentWillUpdate=function(){this.updating=!0},u.componentDidUpdate=function(){this.updating=!1},u.rendered=function(e,t){var r=this.previousUrl,n=this.props,i=n.children,a=n.onChange;if(e!==r&&(this.previousUrl=e,"function"==typeof a)){var s=this.getMatchingChildren(Object(y.toChildArray)(i),e,!0);return a({router:this,url:e,pageState:t,previous:r,active:s,current:s[0]||null})}return Promise.resolve(void 0)},u.getMatchingChildren=function(e,t,r){return e.filter(o).sort(s).map((function(e){var n=a(t,e.props.path,e.props);if(n){if(!1!==r){var s={url:t,matches:n};return i(s,n),delete s.ref,delete s.key,Object(y.cloneElement)(e,s)}return e}}
1)).filter(Boolean)},u.render=function(e,t){var r=t.url;return this.getMatchingChildren(Object(y.toChildArray)(e.children),r,!0)[0]||null},t}(y.Component),D=function(e){return Object(y.createElement)("a",i({onClick:p},e))},E=function(e){return Object(y.createElement)(e.component,e)};t.default=w}.call(this,r("pCvA"))},YtB9:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})},ZGeT:function(e,t,r){"use strict";(function(e){function n(){}function i(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function a(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,"a",(function(){return f}));var o,l,u,d=r("hosL"),c=r("gVhb"),h=function(){function e(e){this.props=e,this.data={}}e.getInstance=function(t,r){var n=e.INSTANCES;return(n[t]||(n[t]=new e({stationId:t}))).setUrl(r)};var t=e.prototype;return t.setUrl=function(e){return e!=this.url&&(this.url=e,this.data={}),this},t.fillSlot=function(e,t,r){try{var s=this;return i((o=function(){for(var n,i=s.data[e+"x"+t],o=a(i);!(n=o()).done;){var l=n.value;if(l.slotId==r)return l}for(var u,d=a(i);!(u=d()).done;){var c=u.value;if(!c.slotId)return c.slotId=r,c}s.shuffle(i);for(var h,f=a(i);!(h=f()).done;){var m=h.value;if(!m.slotId)return m.slotId=r,m}},(l=function(){if(!s.data[e+"x"+t])return function(e,t){if(!t)return e&&e.then?e.then(n):Promise.resolve()}(s.populateList(e,t))}())&&l.then?l.then(o):o(l)))}catch(e){return Promise.reject(e)}var o,l},t.populateList=function(e,t){try{var r=this;return i(fetch(window.APIROOT+"/api/list/"+r.props.stationId+"/"+e+"x"+t).then((function(e){return e.json()})),(function(n){n=r.shuffle(n.body),r.data[e+"x"+t]=n}))}catch(e){return Promise.reject(e)}},t.shuffle=function(e){for(var t=0;t<e.length;t++){var r=Math.random()*(1+t)|0,n=e[t];delete n.slotId,e[t]=e[r],e[r]=n}return e},e}();u={},(l="INSTANCES")in(o=h)?Object.defineProperty(o,l,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[l]=u;var f=function(t){function r(){return t.apply(this,arguments)||this}var a,s;s=t,(a=r).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s;var o=r.prototype;return o.componentDidMount=function(){try{var e=this;return"undefined"==typeof window?i():i(function(e){if(e&&e.then)return e.then(n)}(function(e,t){try{var r=e()}catch(e){return t(e)}return r&&r.then?r.then(void 0,t):r}((function(){return i(h.getInstance(e.props.stationId,e.props.url).fillSlot(e.props.width,e.props.height,e.props.name),(function(t){e.setState({currentItem:t})}))}),(function(e){console.error(e)}))))}catch(e){return Promise.reject(e)}},o.renderBanner=function(){var t=this.state.currentItem;return e("a",{target:!t.href||t.href.startsWith("/")?void 0:"_blank",href:t.href},e("img",{src:Object(c.a)(t.thumbnail_url,this.props.width,this.props.height),alt:t.display_title}))},o.render=function(){return e("div",{style:{width:this.props.width,height:this.props.height,background:"#CCC",margin:this.props.height>this.props.width?"20px 20px 0 0":"0"}},this.state.currentItem&&this.renderBanner()||null)},r}(d.Component)}).call(this,r("hosL").h)},ZJbS:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};t.default=n.default.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Ñ
1ÐºÑˆÐ°Ð½Ð±Ðµ_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(i[e]||i[e%10]||i[e>=100?100:null])},week:{dow:1,doy:7}})},ZOT7:function(e,t,r){function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var a=r("hosL"),s=r("Y3FI"),o=["class","className","activeClass","activeClassName","path"],l=function(e){function t(){return e.apply(this,arguments)||this}var r,n;n=e,(r=t).prototype=Object.create(n.prototype),r.prototype.constructor=r,i(r,n);var a=t.prototype;return a.componentDidMount=function(){var e=this;this.update=function(t){e.nextUrl=t,e.setState({})},s.subscribers.push(this.update)},a.componentWillUnmount=function(){s.subscribers.splice(s.subscribers.indexOf(this.update)>>>0,1)},a.render=function(e){var t=this.nextUrl||s.getCurrentUrl(),r=t.replace(/\?.+$/,"");return this.nextUrl=null,e.children({url:t,path:r,matches:!1!==s.exec(r,e.path,{})})},t}(a.Component);l.Link=function(e){var t=e.class,r=e.className,i=e.activeClass,u=e.activeClassName,d=e.path,c=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(i[r]=e[r]);return i}(e,o),h=[t,r].filter(Boolean).join(" "),f=[t,r,i,u].filter(Boolean).join(" ");return a.h(l,{path:d||c.href},(function(e){return a.h(s.Link,n({},c,{class:e.matches?f:h}))}))},e.exports=l},Zen1:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"pÃ¥ dddd [kl.] LT",lastDay:"[i gÃ¥r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"fÃ¥ sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en mÃ¥ned",MM:"%d mÃ¥neder",y:"et Ã¥r",yy:"%d Ã¥r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},ZesP:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};t.default=n.default.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,r){return e<12?r?"öö":"ÖÖ":r?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,t){switch(t){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10;return e+(i[r]||i[e%100-r]||i[e>=100?100:null])}},week:{dow:1,doy:7}})},aIWT:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})},acJm:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],a=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];t.default=n.default.defineLocale("ur",{months:i,monthsShort:i,weekdays:a,weekdaysShort:a,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})},c7Ev:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%
1d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})},cGFC:function(e,t,r){"use strict";function n(e,t,r,n){return t?a(r)[0]:n?a(r)[1]:a(r)[2]}function i(e){return e%10==0||e>10&&e<20}function a(e){return l[e].split("_")}function s(e,t,r,s){var o=e+" ";return 1===e?o+n(0,t,r[0],s):t?o+(i(e)?a(r)[1]:a(r)[0]):s?o+a(r)[1]:o+(i(e)?a(r)[1]:a(r)[2])}r.r(t);var o=r("Q/DC"),l={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};t.default=o.default.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,r,n){return t?"kelios sekundės":n?"kelių sekundžių":"kelias sekundes"},ss:s,m:n,mm:s,h:n,hh:s,d:n,dd:s,M:n,MM:s,y:n,yy:s},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})},"cc/L":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})},cfQs:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})},ctPk:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LT
1S:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})},diVh:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};t.default=n.default.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(i[e]||i[e%10]||i[e>=100?100:null])},week:{dow:1,doy:7}})},"eJ/i":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})},eMCs:function(e,t,r){"use strict";function n(e){for(var t=-1,r=0;r<f.length;r++)if(f[r].identifier===e){t=r;break}return t}function i(e,t){for(var r={},i=[],a=0;a<e.length;a++){var s=e[a],o=t.base?s[0]+t.base:s[0],u=r[o]||0,d="".concat(o," ").concat(u);r[o]=u+1;var c=n(d),h={css:s[1],media:s[2],sourceMap:s[3]};-1!==c?(f[c].references++,f[c].updater(h)):f.push({identifier:d,updater:l(h,t),references:1}),i.push(d)}return i}function a(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var i=r.nc;i&&(n.nonce=i)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var a=h(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invali
1d.");a.appendChild(t)}return t}function s(e,t,r,n){var i=r?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=m(t,i);else{var a=document.createTextNode(i),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(a,s[t]):e.appendChild(a)}}function o(e,t,r){var n=r.css,i=r.media,a=r.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),a&&btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function l(e,t){var r,n,i;if(t.singleton){var l=g++;r=p||(p=a(t)),n=s.bind(null,r,l,!1),i=s.bind(null,r,l,!0)}else r=a(t),n=o.bind(null,r,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else i()}}var u,d,c=function(){return void 0===u&&(u=Boolean(window&&document&&document.all&&!window.atob)),u},h=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),f=[],m=(d=[],function(e,t){return d[e]=t,d.filter(Boolean).join("\n")}),p=null,g=0;e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=c());var r=i(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var a=0;a<r.length;a++){var s=n(r[a]);f[s].references--}for(var o=i(e,t),l=0;l<r.length;l++){var u=n(r[l]);0===f[u].references&&(f[u].updater(),f.splice(u,1))}r=o}}}},eaVr:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},a=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},s={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(e){return function(t,r){var n=a(t),i=s[e][a(t)];return 2===n&&(i=i[r?0:1]),i.replace(/%d/i,t)}},l=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.default=n.default.defineLocale("ar-ly",{months:l,monthsShort:l,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return i[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})},eiii:function(e,t,r){"use strict";function n(e,t,r,n){var i="";switch(r){case"s":return n?"muutaman sekunnin":"muutama sekunti";case"ss":i=n?"sekunnin":"sekuntia";break;case"m":return n?"minuutin":"minuutti";case"mm":i=n?"minuutin":"minuuttia";break;case"h":return n?"tunnin":"tunti";case"hh":i=n?"tunnin":"tuntia";break;case"d":return n?"päivän":"päivä";case"dd":i=n?"päivän":"päivää";break;case"M":return n?"kuukauden":"kuukausi";case"MM":i=n?"kuukauden":"kuukautta";break;case"y":return n?"vuoden":"vuosi";case"yy":i=n?"vuoden":"vuotta"}return i=function(e,t){return e<10?t?s[e]:a[e]:e}(e,n)+" "+i}r.r(t);var i=r("Q/DC"),a="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),s=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",a[7],a[8],a[9]];t.default=i.default.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_t
1i_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},epgC:function(e,t,r){"use strict";function n(e,t,r){var n,i;return"m"===r?t?"хвіліна":"хвіліну":"h"===r?t?"гадзіна":"гадзіну":e+" "+(n=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[r].split("_"),n%10==1&&n%100!=11?i[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?i[1]:i[2])}r.r(t);var i=r("Q/DC");t.default=i.default.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})},eyDr:function(e,t,r){"use strict";(function(){var e=r("hosL"),n=r("meT2");"undefined"!=typeof window&&window;t.a=function(t){var r=t.data;return Object(e.h)(e.Fragment,{key:"post"},!1,Object(e.h)("div",{className:"page-content-contain",key:"post-content"},Object(e.h)(n.a,{allProps:t,data:r.rendered.body})))}}).call(this,r("pCvA"))},"f+Zs":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})},f2uY:function(e,t,r){"use strict";function n(e,t){function r(){this.constructor=e}typeof t!==a.h&&null!==t&&Object(s.c)("Class extends value "+String(t)+" is not a constructor or null"),l(e,t),e[a.k]=null===t?Object(s.b)(t):(r[a.k]=t[a.k],new r)}function i(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}r.d(t,"a",(function(){return o}
1)),r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return i}));var a=r("ogkr"),s=r("I4e3"),o=(Object(s.a)(),Object(s.a)(),a.a||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])a.f[a.i].call(t,i)&&(e[i]=t[i]);return e}),l=function(e,t){return(l=a.b.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t[a.i](r)&&(e[r]=t[r])})(e,t)}},f9fx:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})},fGc1:function(module,__webpack_exports__,__webpack_require__){"use strict";(function(global){function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function loadPlugins(js,styles){styles&&(global.pluginStyles=styles);var require=function(e){return function(e){switch(e){case"api":return{withToken:empty};case"editor":return{withContentContext:empty,withSimulatedEntry:empty};case"dialog":return{withDialog:empty};case"preact":return preact__WEBPACK_IMPORTED_MODULE_0__;case"time-ago":return time_ago__WEBPACK_IMPORTED_MODULE_6___default.a;case"preact-router":return{route:preact_router_src_index__WEBPACK_IMPORTED_MODULE_2__.b};case"brplayer":return brplayer__WEBPACK_IMPORTED_MODULE_3__.a;case"react":case"preact/compat":return preact_compat__WEBPACK_IMPORTED_MODULE_1__;case"resolveBlobSync":return _resolveBlobSync__WEBPACK_IMPORTED_MODULE_4__.a;case"./main.css":return css;case"./meta.js":var t="undefined"!=typeof window&&window.location.hash&&new URLSearchParams(window.location.hash.slice(1));return _extends(theme.meta.options=theme.meta.options||{},theme.defaultOptions,global.lastLoadedThemeOptions||{},t&&t.get("config")&&JSON.parse(decodeURIComponent(t.get("config")))),theme.meta}}(e)},exports={},module={exports:exports};(function(){eval(js)}).apply({require:require,exports:exports,module:module})}__webpack_require__.d(__webpack_exports__,"a",(function(){return loadPlugins}));var preact__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("hosL"),preact_compat__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("l8WD"),preact_router_src_index__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("hXKq"),brplayer__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("+sWD"),_resolveBlobSync__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("gVhb"),color_string__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("vvXj"),color_string__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(color_string__WEBPACK_IMPORTED_MODULE_5__),time_ago__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("60sP"),time_ago__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(time_ago__WEBPACK_IMPORTED_MODULE_6__),empty=function(e){return e},glob="undefined"!=typeof window?window:globalThis;glob.loadPlugins=loadPlugins}).call(this,__webpack_require__("pCvA"))},fMp8:function(e,t,r){"use strict";function n(e){return e%100==11||e%10!=1}function i(e,t,r,i){var a=e+" ";switch(r){case"s":return t||i?"nokkrar sekúndur":"nokkrum sekúndum";
1case"ss":return n(e)?a+(t||i?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return t?"mínúta":"mínútu";case"mm":return n(e)?a+(t||i?"mínútur":"mínútum"):t?a+"mínúta":a+"mínútu";case"hh":return n(e)?a+(t||i?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return t?"dagur":i?"dag":"degi";case"dd":return n(e)?t?a+"dagar":a+(i?"daga":"dögum"):t?a+"dagur":a+(i?"dag":"degi");case"M":return t?"mánuður":i?"mánuð":"mánuði";case"MM":return n(e)?t?a+"mánuðir":a+(i?"mánuði":"mánuðum"):t?a+"mánuður":a+(i?"mánuð":"mánuði");case"y":return t||i?"ár":"ári";case"yy":return n(e)?a+(t||i?"ár":"árum"):a+(t||i?"ár":"ári")}}r.r(t);var a=r("Q/DC");t.default=a.default.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:i,ss:i,m:i,mm:i,h:"klukkustund",hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},fTzc:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};t.default=n.default.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,t){switch(t){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var r=e%10;return e+(i[r]||i[e%100-r]||i[e>=100?100:null])}},week:{dow:1,doy:7}})},ffya:function(e,t,r){"use strict";(function(e){function n(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var s=r("hosL"),o=r("l8WD"),l=(r("Y3FI"),r("ZOT7"),r("+sWD")),u=r("meT2"),d=r("UIJS"),c=r("EE4q"),h=r.n(c),f=r("MXrV"),m=r("Gisj"),p=r("gVhb"),g="undefined"!=typeof window?window:e,_="undefined"!=typeof navigator&&!!(navigator.userAgent.indexOf("MyStation/")+1);Object.fromEntries||(Object.fromEntries=function(e){for(var t={},r=0;r<e.length;r++)t[e[r][0]]=e[r][1];return t}),Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),r=t.length,n=new Array(r);r--;)n[r]=[t[r],e[t[r]]];return n});var v="undefined"!=typeof window?Object.fromEntries(new URLSearchParams(window.location.search).entries()):{},y=function(e){var t=e.data,r=t&&t.entry,n=r&&r.contentType&&f.a[r.contentType.slug]||f.a.page;return Object(s.h)(n,a({key:"page-main-render"},e))},L=function(e){var t,r=e.data,n=e.theme;e.page=r;var i="/"==((null==(t=r.page)?void 0:t.url)||(null==r?void 0:r.url))&&(null==n?void 0:n["header.home"])?"header.home":"header.main";return n&&n.filteredOptions&&(g.themes&&g.themes.renderHeader&&g.themes.renderHeader(e,n,s.h)||Object(s.h)(M,a({key:"header-default"},e,{part:i,data:r,isAppPage:e.isAppPage,theme:n})))||null},b=function(e){var t,r=e.data,n=e.theme,i="/"==((null==(t=r.page)?void 0:t.url)||(null==r?void 0:r.url))&&(null==n?void 0:n["footer.home"])?"footer.home":"footer.main";return"footer.main"==i&&!(null==n?void 0:n["footer.main"])&&(null==n?void 0:n.footer)&&(i="footer"),n&&n.filteredOptions&&n[i]&&Object(s.h)(S,a({key:"default-footer"},e,{part:i,data:r,theme:n}))||n&&g.themes&&g.themes.renderFooter&&g.themes.renderFooter(r,n,s.h)||Object(s.h)(k,{key:"resp-footer",data:r,theme:n})},T=Object(o.memo)((function(e){var t=e.data;return Object(s.h)(s.Fragment,{key:"listen"},Object(s.h)("div",{className:h.a["player-top-small"],key:"player-top-small"},t.rendered&&t.filteredOptions["player.enable"]&&!_&&t.rendered.stationId&&Object(s.h)(l.a,{integrated:!0,key:"player",mode:"embed",stationId:t.rendered.stationId,playerProps:{mode:"tabbed",hideMain:!0,seamless:!0,onInitialise:function(e){return Object(d.a)(e,t)}},audio:g.__playerAudio})||null,(t.entry&&0==t.entry.stationId&&"object"==typeof g.__playerAudio&&(g.__playerAudio.muted=!0),null)))}),(function(e,t){var r=e.data,n=t.data;return!r||n&&r.rendered&&n.rendered&&n.rendered.stationId==r.rendered.stationId})),M=function(e){var t,r=e.data,n=e.theme,i=e.isAppPage,o=null==n||null==(t=n[e.part])?void 0:t.rendered;if(o){var l,d,c,f=o.bodyHtml.match(/wp:columns (\{.*\})/);f=f&&JSON.parse(f[1]||"{}")||{};return f=a({"--tint":n.filteredOptions["style.tint_colour"]}),Object(s.h)("div",{className:f["page-header"]+" "+f["page-header-default"],key:"header-main-default",style:{"--tint":n.filteredOptions["style.tint_colour"]}},Object(s.h)(u.a,{allProps:e,data:(null==(l=o.body)||null==(d=l.children)||null==(c=d[0])?void 0:c.children)||o.body}))}return Object(s.h)("div",{className:h.a["page-header"]+" "+h.a["page-header-default"],key:"header-main-default",style:{"--tint":n.filteredOptions["style.tint_colour"]}},Object(s.h)("div",{className:h.a["header-main"]},Object(s.h)("div",{className:h.a["site-logo"]},Object(s.h)("a",{href:i?void 0:"/"},Object(s.h)("img",{src:Object(p.a)(n.filteredOptions["style.logo"],null,200)}))),Object(s.h)("div",{className:h.a["header-schedule"]},r&&r.schedule&&r.schedule.now&&r.schedule.now.display_title),Object(s.h)("div",{className:h.a["header-listen"]},Object(s.h)(T,{data:r}))))},k=function(e){var t,r=e.data,i=e.theme;if(!i)return null;var o=i.filteredOptions||{},l={backgroundColor:o["app.background_colour"],color:o["app.secondary_colour"]},u=l&&l.backgroundColor?"has-"+l.backgroundColor+"-background-color":"";a(l,{"--tint":o["style.tint_colour"]});for(var d=[],c=0,f=["facebook","twitter","instagram","mixcloud"];c<f.length;c++){var g=f[c],_=o["social."+g];if(_){"twitter"==g&&(g="x");var v={title:m.a[g].meta.title,svg:m.a[g].svg,href:_};if(v&&!v.href.startsWith("https://")&&!v.href.startsWith("http://"))switch(g){case"facebook":v.href="https://www.facebook.com/"+encodeURIComponent(v.href);break;case"x":v.href="https://x.com/"+encodeURIComponent(v.href);break;case"instagram":v.href="https://www.instagram.com/"+encodeURIComponent(v.href);break;case"mixcloud":v.href="https://www.mixcloud.com/"+encodeURIComponent(v.href)}d.push(v)}}if(null==(t=o["social.extra"])?void 0:t.length)for(var y,L=n(o["social.extra"]);!(y=L()).done;){var b,T=y.value;if(null==(b=T.icon_key)?void 0:b.startsWith("logo-")){var M=T.icon_key.slice(5);m.a[M]&&d.push({title:m.a[M].meta.title,svg:m.a[M].svg,href:T.href||T.link})}}var k=d.length,S=r&&r.menus&&r.menus.find((function(e){return"footer"==e.location})),w=o["app.play_store_url"]||o["app.app_store_url"],D=o["style.footer_logo"]||o["style.logo"];return Object(s.h)("div",{className:l["page-footer"]+" page-footer "+u,style:l,key:"footer"},Object(s.h)("div",{class:"page-main"},Object(s.h)("div",{class:"wp-block-columns"},Object(s.h)("div",{class:"wp-block-column"},D?Object(s.h)("img",{class:h.a["footer-logo"],src:Object(p.a)(D,void 0,200)}):Object(s.h)(s.Fragment,null,Object(s.h)("h3",{style:{marginBottom:0}}
1,o["site.title"]),Object(s.h)("h4",{style:{marginTop:"0.5em"}},o["site.tagline"])),Object(s.h)("p",null,"Copyright © ",(new Date).getFullYear()," ",o["site.title"]),Object(s.h)("p",null,Object(s.h)("a",{href:"https://broadrad.com/mystation"},"Powered by Broadcast.Radio"))),S&&S.items&&Object(s.h)("div",{key:"menu",class:"wp-block-column "+h.a["footer-links-col"]},Object(s.h)("div",{class:h.a["footer-links"]+" footer-links"},S.items.map((function(e,t){return Object(s.h)("a",{key:t,href:e.href.startsWith("/")?e.href:"/"+e.href},e.display_name)})))),w&&Object(s.h)("div",{key:"app",class:"wp-block-column "+h.a["app-block-col"]},Object(s.h)("div",{class:h.a["app-block-contain"]},o["app.app_store_url"]&&Object(s.h)("a",{key:"as",href:o["app.app_store_url"]},m.a.app_store.svg),o["app.play_store_url"]&&Object(s.h)("a",{key:"ps",href:o["app.play_store_url"]},m.a.play_store.svg))),k&&Object(s.h)("div",{key:"social",class:"wp-block-column "+h.a["social-block-col"]},Object(s.h)("div",{style:{flex:1}}),Object(s.h)("div",{class:h.a["social-block-contain"]},Object(s.h)("h3",null,"Find Us On:"),Object(s.h)("div",{className:h.a["social-icon-container"]},d.map((function(e){return Object(s.h)("a",{tabIndex:-1,class:h.a["icon-button"],target:"_blank",title:e.title,href:e.href||e.link},e.svg)})))))||null)))},S=function(e){var t,r,n,i,o=e.theme,l=e.part,d=null==o||null==(t=o[void 0===l?"footer":l])?void 0:t.rendered,c=null==d?void 0:d.bodyHtml;if(!c)return null;var h=c.match(/wp:columns (\{.*\})/),f=(h=h&&JSON.parse(h[1]||"{}")||{})&&h.backgroundColor?"has-"+h.backgroundColor+"-background-color":"";return h=a({"--tint":o.filteredOptions["style.tint_colour"]}),Object(s.h)("div",{className:h["page-footer"]+" page-footer "+f,style:h,key:"default-footer"},Object(s.h)(u.a,{allProps:e,data:(null==(r=d.body)||null==(n=r.children)||null==(i=n[0])?void 0:i.children)||d.body}))};t.a=function(e){var t,r=e.data&&e.data.entry,n=r&&r.contentType,i=e.data&&e.data.rendered&&e.data.rendered.meta;e.url=e.url||e.data&&e.data.url;var a=r&&"no-website"==r.permalink||n&&"player"==n.slug,o=e.isAppPage=e.data.isAppPage="undefined"!=typeof navigator&&!!(navigator.userAgent.indexOf("MyStation/")+1),l=i&&"menu.visible"in i&&!i["menu.visible"],u="undefined"!=typeof document&&"player.broadcast.radio"==document.domain||!!v.site_preview&&!v.full_preview;return Object(s.h)(s.Fragment,{key:"page-contain"},Object(s.h)(s.Fragment,{key:"header-contain"},u||l?null:a?Object(s.h)("div",{key:"header-main",className:h.a["page-header"]+" "+h.a["page-header-hidden"]}):L(e)),Object(s.h)(s.Fragment,{key:"main-contain-"+((null==(t=e.data)?void 0:t.url)||e.url)},y(e)),Object(s.h)(s.Fragment,{key:"footer"},u||o?null:b(e)))}}).call(this,r("pCvA"))},"fqp+":function(e,t,r){"use strict";function n(e,t,r){var n=e+" ";switch(r){case"ss":return n+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return n+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return n+=1===e?"dan":"dana";case"MM":return n+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return n+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}r.r(t);var i=r("Q/DC");t.default=i.default.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:n,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})},gCmr:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],a=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];t.default=n.default.defineLocale("dv",{months:i,monthsShort:i,weekdays:a,weekdaysShort:a,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",
1s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})},gVhb:function(e,t){"use strict";t.a=function(e,t,r,n){if(e){var i=e.split(":"),a=i[0],s=i[1],o=i[2],l=i[3],u=void 0===l?"":l,d=i[4],c=void 0===d?"":d,h=i[5],f=void 0===h?"":h;u&&c&&f&&!n&&t&&!r&&(r=t*(c/u)),isNaN(t||void 0)||(u=t),""!=u&&(u="&w="+u);var m=a.split("/").pop();return isNaN(r||void 0)||(c=r),""!=c&&parseInt(c)&&(c="&h="+parseInt(c)),""==f&&!n&&u&&c&&(f="&c=true"),"/api/image/"+s+"."+m+"?g="+o+u+c+f}}},h2LZ:function(e,t,r){"use strict";(function(e){function n(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function i(e,t){try{var r=e()}catch(e){return t(e)}return r&&r.then?r.then(void 0,t):r}function a(e,t){return e&&e.then?e.then(t):t(e)}function s(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}function o(){}function l(e){if(e&&e.then)return e.then(o)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return p}));var f=r("hosL"),m=s((function(e,t,r){return void 0===r&&(r=null),a(i((function(){var s,o={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c(c({},t),{},{source:"com.broadcastradio.player/web/"+e+(r&&"/"+r||""),token:"todo"}))};return a(i((function(){return n(fetch("/api/postMessage/"+e,o),(function(e){s=e}))}),(function(){throw new Error("There was an error connecting to the server. Your message was not delivered.")})),(function(){return i((function(){return n(s.json(),(function(e){if((s=e).error){var t=new Error(s.error);throw t.internal=!0,t}return s.success}))}),(function(e){throw new Error(e.internal?e.message:"A server error occurred. Your message was not delivered.")}))}))}),(function(e){throw e})),(function(){return!0}))})),p=function(t){function r(){for(var e,r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return h(u(e=t.call.apply(t,[this].concat(a))||this),"state",{message:"",name:"undefined"!=typeof window&&window.localStorage.getItem("br-contact-form-name")||""}),h(u(e),"_sendMessage",s((function(){var t=e.state,r=t.name,a=t.email,s=t.message,o=t.custom_fields,u=e.props,d=u.page,c=u.data,h=u.originalContentId,f=u.originalBlockRef;e.setState({busy:!0});var p=d&&d.rendered&&d.rendered.stationId||c&&c.rendered&&c.rendered.stationId;return l(i((function(){return n(m(p,{name:r,email:a,message:s,custom_fields:o},h+"-"+f),(function(){e.setState({contactMessage:"Your message has been sent",name:"",email:"",custom_fields:null,message:"",busy:!1})}))}),(function(t){e.setState({contactMessage:t.message||"There was an error sending your message",busy:!1})})))}))),h(u(e),"_clearMessage",(function(){e.setState({contactMessage:void 0})})),e}var a,o;o=t,(a=r).prototype=Object.create(o.prototype),a.prototype.constructor=a,a.__proto__=o;var d=r.prototype;return d.componentDidUpdate=function(){this.state.contactMessage&&(clearTimeout(this.hideMessage),this.hideMessage=setTimeout(this._clearMessage,4e3))},d.componentDidMount=function(){this.forceUpdate()},d.valid=function(){var e,t,r=this.props.options,n=r.name_visible,i=r.message_visible,a=void 0===i||i,s=r.message_required,o=void 0===s||s,l=r.custom_fields;if((void 0===n||n)&&r.name_required&&!(null==(e=this.state.name)?void 0:e.length))return!1;if(r.email_visible&&r.email_required&&!String(this.state.email).match(/^[^\s@]+@[^\s@]+\.[^\s@]+$/))return!1;if(a&&o&&(null==(t=this.state.message)?void 0:t.length)<4)return!1;if(l)for(var u=0;u<l.length;u++){var d;if(l[u].required&&!(null==(d=this.state.custom_fields)?void 0:d[u]))return!1}return!0},d.render=function(t){var r=this,n=t.heading,i=void 0===n?null:n,a=this.props.options,s=a.button_style,o=void 0===s?0:s,l=a.button_label,u=a.name_required,d=a.email_visible,c=a.email_required,h=a.message_visible,f=void 0===h||h,m=a.message_required,p=void 0===m||m,g=a.custom_fields;return e("div",{className:"contact-form-contain"+(this.state.busy?" contact-busy":""),"data-overlay-text":this.state.contactMessage},(this.props.showClose||0==o)&&e("div",{className:"contact-form-head",key:0},this.props.showClose&&e("button",{className:"contact-form-close",onClick:function(){return r.setState({child:"",contactMessage:null},(function(){return r.props.openLink()}))}},e("b",null,"×")),e("p",{className:"contact-head styled-text"},e("b",null,i||"")," "),0==o&&e("button",{className:"contact-form-send",disabled:!this.valid(),style:{backgroundColor:"var(--tint)",color:"var(--tint-alt)"},onClick:this._sendMessage},e("b",null,l||"Send"))),e("div",{className:"contact-text-name",ke
1y:1},e("input",{type:"text",onInput:function(e){return r.setState({name:e.target.value})},value:this.state.name||"",placeholder:"Your Name"+(u?"*":""),required:u})),e("div",{style:{display:d?"flex":"none"},className:"contact-text-name",key:2},d&&e("input",{type:"email",onInput:function(e){return r.setState({email:e.target.value})},value:this.state.email||"",placeholder:"Your Email"+(c?"*":""),required:c})||null),null==g?void 0:g.map((function(t,n){var i,a;return e("div",{className:"contact-text-name",key:4+n},"dropdown"==t.type?e("select",{onChange:function(e){var t=r.state.custom_fields||[];t[n]=e.target.value,console.log(t),r.setState({custom_fields:t})}},e("option",{selected:!(null==(a=r.state.custom_fields)?void 0:a[n]),key:-1,disabled:!0},e("b",null,t.label+(t.required?"*":""))),t.values.replace(/\r\n/g,"\n").split("\n").map((function(t,n){var i;return e("option",{key:n,selected:(null==(i=r.state.custom_fields)?void 0:i[n])==t,value:t},t)}))):"checkbox"==t.type?e("label",null,e("input",{type:"checkbox",onChange:function(e){var t=r.state.custom_fields||[];t[n]=e.target.checked,console.log(t),r.setState({custom_fields:t})}})," ",e("span",{dangerouslySetInnerHTML:{__html:t.label+(t.required?"*":"")}})):e("input",{type:"text",onInput:function(e){var t=r.state.custom_fields||[];t[n]=e.target.value,r.setState({custom_fields:t})},value:(null==(i=r.state.custom_fields)?void 0:i[n])||"",placeholder:t.label+(u?"*":""),required:t.required}))})),f&&e("div",{className:"contact-text-message",key:3},e("textarea",{onInput:function(e){return r.setState({message:e.target.value})},value:this.state.message||"",placeholder:"Compose your message here"+(p?"*":"")})),1==o&&e("div",{className:"contact-form-footer"},e("button",{className:"contact-form-send contact-form-send-large",disabled:!this.valid(),style:{backgroundColor:"var(--tint)",color:"var(--tint-alt)"},onClick:this._sendMessage},e("b",null,l||"Send"))))},r}(f.Component)}).call(this,r("hosL").h)},hXKq:function(e,t,r){"use strict";(function(e){function n(e){d=e;var t="undefined"!=typeof window?window:{};"undefined"!=typeof history&&history.replaceState&&history.replaceState({scrollY:t.scrollY,pageState:d},null)}function i(){var e;return""+((e=f&&f.location?f.location:f&&f.getCurrentLocation?f.getCurrentLocation():"undefined"!=typeof location?location:g).pathname||"")+(e.search||"")}function a(t,r){return void 0===r&&(r=!1),console.log("! ROUTE",t),"string"!=typeof t&&t.url&&(r=t.replace,t=t.url),e.nagivateNatively?(window.top.postMessage("navigate:"+JSON.stringify(t),"*"),l(window.event)):s(t,void 0,r)}function s(e,t,r){var n;void 0===r&&(r=!1);for(var i=!1,a=0;a<m.length;a++){var s=m[a].routeTo(e,t);s&&(i=s)}return(null==(n=i)?void 0:n.then)&&i.then((function(n){var i=n;i&&!t&&function(e,t){if(void 0===t&&(t="push"),f&&f[t])f[t](e);else if("undefined"!=typeof history&&history[t+"State"]){var r="undefined"!=typeof window?window:{};"push"==t&&history.replaceState&&history.replaceState({scrollY:r.scrollY,pageState:d},null),history[t+"State"](null,null,e)}d=void 0}(e,r?"replace":"push");for(var a=p.length;a--;)p[a](e);var s=t&&t.scrollY||0;i&&!isNaN(s)&&window.scrollTo({top:s}),console.log("routeTo end",i)})),i}function o(t){if(console.log("route 1"),t&&t.getAttribute){var r=t.getAttribute("href"),n=t.getAttribute("target");if(e.nagivateNatively||r&&r.match(/^\//g)&&(!n||n.match(/^_?self$/i)))return a(r)}}function l(e){return e&&(e.stopImmediatePropagation&&e.stopImmediatePropagation(),e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()),!1}function u(t){if(!(t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||0!==t.button)){var r=t.target;do{if("A"===String(r.nodeName).toUpperCase()&&r.getAttribute("href")){if(r.hasAttribute("native"))return;if(e.nagivateNatively)return window.top.postMessage("navigate:"+JSON.stringify(r.getAttribute("href")),"*"),l(t);if(o(r))return l(t)}}while(r=r.parentNode)}}r.d(t,"b",(function(){return a})),r.d(t,"a",(function(){return v})),r.d(t,"c",(function(){return n}));var d,c=r("hosL"),h=r("G8+F"),f=null,m=[],p=[],g={},_=!1,v=function(e){function t(t){var r;return r=e.call(this,t)||this,t.history&&(f=t.history),r.state={url:t.url||i()},_||("function"==typeof addEventListener&&(f||addEventListener("popstate",(function(e){var t=e.state;s(i(),t)})),addEventListener("click",u)),_=!0),r}var r,n;n=e,(r=t).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n;var a=t.prototype;return a.shouldComponentUpdate=function(e){return!0!==e.static||(e.url!==this.props.url||e.onChange!==this.props.onChange)},a.canRoute=function(e){var t=Object(c.toChildArray)(this.props.children);return this.getMatchingChildren(t,e,!1).length>0},a.routeTo=function(e,t){void 0===t&&(t=void 0);try{var r=this;return n=r.rendered(e,t),i=function(){r.setState({url:e,pageState:t&&t.pageState});var n=r.canRoute(e);return r.updating||r.forceUpdate(),n}
1,a?i?i(n):n:(n&&n.then||(n=Promise.resolve(n)),i?n.then(i):n)}catch(e){return Promise.reject(e)}var n,i,a},a.componentWillMount=function(){this.updating=!0},a.componentDidMount=function(){var e=this;m.push(this),f&&(this.unlisten=f.listen((function(t){e.routeTo(""+(t.pathname||"")+(t.search||""))}))),this.rendered(this.state.url,this.state.pageState),this.updating=!1},a.componentWillUnmount=function(){"function"==typeof this.unlisten&&this.unlisten(),m.splice(m.indexOf(this),1)},a.componentWillUpdate=function(){this.updating=!0},a.componentDidUpdate=function(){this.updating=!1},a.rendered=function(e,t){var r=this.previousUrl,n=this.props,i=n.children,a=n.onChange;if(e!==r&&(this.previousUrl=e,"function"==typeof a)){var s=this.getMatchingChildren(Object(c.toChildArray)(i),e,!0);return a({router:this,url:e,pageState:t,previous:r,active:s,current:s[0]||null})}return Promise.resolve(void 0)},a.getMatchingChildren=function(e,t,r){return e.filter(h.d).sort(h.c).map((function(e){var n=Object(h.b)(t,e.props.path,e.props);if(n){if(!1!==r){var i={url:t,matches:n};return Object(h.a)(i,n),delete i.ref,delete i.key,Object(c.cloneElement)(e,i)}return e}})).filter(Boolean)},a.render=function(e,t){var r=e.children,n=t.url;return this.getMatchingChildren(Object(c.toChildArray)(r),n,!0)[0]||null},t}(c.Component)}).call(this,r("pCvA"))},hosL:function(e,t,r){"use strict";function n(e,t){for(var r in t)e[r]=t[r];return e}function i(e){var t=e.parentNode;t&&t.removeChild(e)}function a(e,t,r){var n,i,a,o=arguments,l={};for(a in t)"key"==a?n=t[a]:"ref"==a?i=t[a]:l[a]=t[a];if(arguments.length>3)for(r=[r],a=3;a<arguments.length;a++)r.push(o[a]);if(null!=r&&(l.children=r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===l[a]&&(l[a]=e.defaultProps[a]
vendor: 5,326 bytes, line 1
1);return s(e,l,n,i,null)}function s(e,t,r,n,i){var a={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i};return null==i&&(a.__v=a),null!=x.vnode&&x.vnode(a),a}function o(){return{current:null}}function l(e){return e.children}function u(e,t){this.props=e,this.context=t}function d(e,t){if(null==t)return e.__?d(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?d(e):null}function c(e){var t,r;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e){e.__e=e.__c.base=r.__e;break}return c(e)}}function h(e){(!e.__d&&(e.__d=!0)&&R.push(e)&&!f.__r++||O!==x.debounceRendering)&&((O=x.debounceRendering)||P)(f)}function f(){for(var e;f.__r=R.length;)e=R.sort((function(e,t){return e.__v.__b-t.__v.__b})),R=[],e.some((function(e){var t,r,i,a,s,o,l;e.__d&&(o=(s=(t=e).__v).__e,(l=t.__P)&&(r=[],(i=n({},s)).__v=i,a=b(l,s,i,t.__n,void 0!==l.ownerSVGElement,null,r,null==o?d(s):o),T(r,s),a!=o&&c(s)))}))}function m(e,t,r,n,a,o,u,c,h,f){var m,p,_,v,y,L,T,M=n&&n.__k||j,w=M.length;for(h==N&&(h=null!=u?u[0]:w?d(n,0):null),r.__k=[],m=0;m<t.length;m++)if(null!=(v=r.__k[m]=null==(v=t[m])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v?s(null,v,null,null,v):Array.isArray(v)?s(l,{children:v},null,null,null):null!=v.__e||null!=v.__c?s(v.type,v.props,v.key,null,v.__v):v)){if(v.__=r,v.__b=r.__b+1,null===(_=M[m])||_&&v.key==_.key&&v.type===_.type)M[m]=void 0;else for(p=0;p<w;p++){if((_=M[p])&&v.key==_.key&&v.type===_.type){M[p]=void 0;break}_=null}y=b(e,v,_=_||N,a,o,u,c,h,f),(p=v.ref)&&_.ref!=p&&(T||(T=[]),_.ref&&T.push(_.ref,null,v),T.push(p,v.__c||y,v)),null!=y?(null==L&&(L=y),h=g(e,v,_,M,u,y,h),f||"option"!=r.type?"function"==typeof r.type&&(r.__d=h):e.value=""):h&&_.__e==h&&h.parentNode!=e&&(h=d(_))}if(r.__e=L,null!=u&&"function"!=typeof r.type)for(m=u.length;m--;)null!=u[m]&&i(u[m]);for(m=w;m--;)null!=M[m]&&S(M[m],M[m]);if(T)for(m=0;m<T.length;m++)k(T[m],T[++m],T[++m])}function p(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){p(e,t)})):t.push(e)),t}function g(e,t,r,n,i,a,s){var o,l,u;if(void 0!==t.__d)o=t.__d,t.__d=void 0;else if(i==r||a!=s||null==a.parentNode)e:if(null==s||s.parentNode!==e)e.appendChild(a),o=null;else{for(l=s,u=0;(l=l.nextSibling)&&u<n.length;u+=2)if(l==a)break e;e.insertBefore(a,s),o=s}return void 0!==o?o:a.nextSibling}function _(e,t,r){"-"===t[0]?e.setProperty(t,r):e[t]=null==r?"":"number"!=typeof r||U.test(t)?r:r+"px"}function v(e,t,r,n,i){var a,s;if(i&&"className"==t&&(t="class"),"style"===t)if("string"==typeof r)e.style=r;else{if("string"==typeof n&&(e.style=n=""),n)for(t in n)r&&t in r||_(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||_(e.style,t,r[t])}else"o"===t[0]&&"n"===t[1]?(a=t!==(t=t.replace(/Capture$/,"")),(s=t.toLowerCase())in e&&(t=s),t=t.slice(2),e.l||(e.l={}),e.l[t]=r,r?n||e.addEventListener(t,y,a):e.removeEventListener(t,y,a)):"list"!==t&&"tagName"!==t&&"form"!==t&&"type"!==t&&"size"!==t&&"download"!==t&&"href"!==t&&!i&&t in e?e[t]=null==r?"":r:"function"!=typeof r&&"dangerouslySetInnerHTML"!==t&&(t!==(t=t.replace(/xlink:?/,""))?null==r||!1===r?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):null==r||!1===r&&!/^ar/.test(t)?e.removeAttribute(t):e.setAttribute(t,r))}function y(e){this.l[e.type](x.event?x.event(e):e)}function L(e,t,r){var n,i;for(n=0;n<e.__k.length;n++)(i=e.__k[n])&&(i.__=e,i.__e&&("function"==typeof i.type&&i.__k.length>1&&L(i,t,r),t=g(r,i,i,e.__k,null,i.__e,t),"function"==typeof e.type&&(e.__d=t)))}function b(e,t,r,i,a,s,o,d,c){var h,f,p,g,_,v,y,b,T,k,S,D=t.type;if(void 0!==t.constructor)return null;(h=x.__b)&&h(t);try{e:if("function"==typeof D){if(b=t.props,T=(h=D.contextType)&&i[h.__c],k=h?T?T.props.value:h.__:i,r.__c?y=(f=t.__c=r.__c).__=f.__E:("prototype"in D&&D.prototype.render?t.__c=f=new D(b,k):(t.__c=f=new u(b,k),f.constructor=D,f.render=w),T&&T.sub(f),f.props=b,f.state||(f.state={}),f.context=k,f.__n=i,p=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=D.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=n({},f.__s)),n(f.__s,D.getDerivedStateFromProps(b,f.__s))),g=f.props,_=f.state,p)null==D.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==D.getDerivedStateFromProps&&b!==g&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(b,k),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(b,f.__s,k)||t.__v===r.__v){f.props=b,f.state=f.__s,t.__v!==r.__v&&(f.__d=!1),f.__v=t,t.__e=r.__e,t.__k=r.__k,f.__h.length&&o.push(f),L(t,d,e);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(b,f.__s,k),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(g,_,v)}))}f.context=k,f.props=b,f.state=f.__s,(h=x.__r)&&h(t),f.__d=!1,f.__v=t,f.__P=e,h=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(i=n(n({},i),f.getChildContext())),p||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(g,_)),S=null!=h&&h.type==l&&null==h.key?h.props.children:h,m(e,Array.isArray(S)?S:[S],t,r,i,a,s,o,d,c),f.base
1=t.__e,f.__h.length&&o.push(f),y&&(f.__E=f.__=null),f.__e=!1}else null==s&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=M(r.__e,t,r,i,a,s,o,c);(h=x.diffed)&&h(t)}catch(e){t.__v=null,x.__e(e,t,r)}return t.__e}function T(e,t){x.__c&&x.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){x.__e(e,t.__v)}}))}function M(e,t,r,n,i,a,s,o){var l,u,d,c,h,f=r.props,p=t.props;if(i="svg"===t.type||i,null!=a)for(l=0;l<a.length;l++)if(null!=(u=a[l])&&((null===t.type?3===u.nodeType:u.localName===t.type)||e==u)){e=u,a[l]=null;break}if(null==e){if(null===t.type)return document.createTextNode(p);e=i?document.createElementNS("http://www.w3.org/2000/svg",t.type):document.createElement(t.type,p.is&&{is:p.is}),a=null,o=!1}if(null===t.type)f!==p&&e.data!==p&&(e.data=p);else{if(null!=a&&(a=j.slice.call(e.childNodes)),d=(f=r.props||N).dangerouslySetInnerHTML,c=p.dangerouslySetInnerHTML,!o){if(null!=a)for(f={},h=0;h<e.attributes.length;h++)f[e.attributes[h].name]=e.attributes[h].value;(c||d)&&(c&&d&&c.__html==d.__html||(e.innerHTML=c&&c.__html||""))}(function(e,t,r,n,i){var a;for(a in r)"children"===a||"key"===a||a in t||v(e,a,null,r[a],n);for(a in t)i&&"function"!=typeof t[a]||"children"===a||"key"===a||"value"===a||"checked"===a||r[a]===t[a]||v(e,a,t[a],r[a],n)})(e,p,f,i,o),c?t.__k=[]:(l=t.props.children,m(e,Array.isArray(l)?l:[l],t,r,n,"foreignObject"!==t.type&&i,a,s,N,o)),o||("value"in p&&void 0!==(l=p.value)&&l!==e.value&&v(e,"value",l,f.value,!1),"checked"in p&&void 0!==(l=p.checked)&&l!==e.checked&&v(e,"checked",l,f.checked,!1))}return e}function k(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){x.__e(e,r)}}function S(e,t,r){var n,a,s;if(x.unmount&&x.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||k(n,null,t)),r||"function"==typeof e.type||(r=null!=(a=e.__e)),e.__e=e.__d=void 0,null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){x.__e(e,t)}n.base=n.__P=null}if(n=e.__k)for(s=0;s<n.length;s++)n[s]&&S(n[s],t,r);null!=a&&i(a)}function w(e,t,r){return this.constructor(e,r)}function D(e,t,r){var n,i,s;x.__&&x.__(e,t),i=(n=r===Y)?null:r&&r.__k||t.__k,e=a(l,null,[e]),s=[],b(t,(n?t:r||t).__k=e,i||N,N,void 0!==t.ownerSVGElement,r&&!n?[r]:i?null:t.childNodes.length?j.slice.call(t.childNodes):null,s,r||N,n),T(s,e)}function E(e,t){D(e,t,Y)}function A(e,t,r){var i,a,o,l=arguments,u=n({},e.props);for(o in t)"key"==o?i=t[o]:"ref"==o?a=t[o]:u[o]=t[o];if(arguments.length>3)for(r=[r],o=3;o<arguments.length;o++)r.push(l[o]);return null!=r&&(u.children=r),s(e.type,u,i||e.key,a||e.ref,null)}function I(e,t){var r={__c:t="__cC"+F++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e,r,n){return this.getChildContext||(r=[],(n={})[t]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&r.some(h)},this.sub=function(e){r.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r.splice(r.indexOf(e),1),t&&t.call(e)}}),e.children}};return r.Provider.__=r.Consumer.contextType=r}r.r(t),r.d(t,"render",(function(){return D})),r.d(t,"hydrate",(function(){return E})),r.d(t,"createElement",(function(){return a})),r.d(t,"h",(function(){return a})),r.d(t,"Fragment",(function(){return l})),r.d(t,"createRef",(function(){return o})),r.d(t,"isValidElement",(function(){return C})),r.d(t,"Component",(function(){return u})),r.d(t,"cloneElement",(function(){return A})),r.d(t,"createContext",(function(){return I})),r.d(t,"toChildArray",(function(){return p})),r.d(t,"__u",(function(){return S})),r.d(t,"options",(function(){return x}));var x,C,R,P,O,Y,F,N={},j=[],U=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;x={__e:function(e,t){for(var r,n;t=t.__;)if((r=t.__c)&&!r.__)try{if(r.constructor&&null!=r.constructor.getDerivedStateFromError&&(n=!0,r.setState(r.constructor.getDerivedStateFromError(e))),null!=r.componentDidCatch&&(n=!0,r.componentDidCatch(e)),n)return h(r.__E=r)}catch(t){e=t}throw e}},C=function(e){return null!=e&&void 0===e.constructor},u.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=n({},this.state),"function"==typeof e&&(e=e(n({},r),this.props)),e&&n(r,e),null!=e&&this.__v&&(t&&this.__h.push(t),h(this))},u.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),h(this))},u.prototype.render=l,R=[],P="function"==typeof Promise?Promise.prototype.then.bind(Prom
1ise.resolve()):setTimeout,f.__r=0,Y=N,F=0},hytz:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},i4ZP:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},a={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};t.default=n.default.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return a[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return i[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})},iGTw:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibr
1ir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})},"iNh+":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},icLN:function(e,t,r){"use strict";function n(e){var t="function"==typeof Map?new Map:void 0;return(n=function(e){function r(){return i(e,arguments,o(this).constructor)}if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)})(e)}function i(){return(i=a()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&s(i,r.prototype),i}).apply(null,arguments)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&d(e.prototype,t),r&&d(e,r),e}function h(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
vendor: 4,804 bytes, line 1
1).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(){return f({},mi)}function _(e,t,r){return t[e]?t[e].bind(t):function(e,t){var r=self.console[e];return r?r.bind(self.console,(t?"["+t+"] ":"")+"["+e+"] >"):fi}(e,r)}function v(e){if(void 0===e&&(e=!0),"undefined"!=typeof self)return(e||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function y(e,t){var r=Object.keys(e),n=Object.keys(t),i=r.length,a=n.length;return!i||!a||i===a&&!r.some((function(e){return-1===n.indexOf(e)}))}function L(e,t){if(void 0===t&&(t=!1),"undefined"!=typeof TextDecoder){var r=new TextDecoder("utf-8").decode(e);if(t){var n=r.indexOf("\0");return-1!==n?r.substring(0,n):r}return r.replace(/\0/g,"")}for(var i,a,s,o=e.length,l="",u=0;u<o;){if(0===(i=e[u++])&&t)return l;if(0!==i&&3!==i)switch(i>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:l+=String.fromCharCode(i);break;case 12:case 13:a=e[u++],l+=String.fromCharCode((31&i)<<6|63&a);break;case 14:a=e[u++],s=e[u++],l+=String.fromCharCode((15&i)<<12|(63&a)<<6|(63&s)<<0)}}return l}function b(e){for(var t="",r=0;r<e.length;r++){var n=e[r].toString(16);n.length<2&&(n="0"+n),t+=n}return t}function T(e){return Uint8Array.from(e.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}function M(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function k(e){return"initSegment"!==e.sn}function S(e,t){var r=function e(t,r){var n=Object.getPrototypeOf(t);if(n){var i=Object.getOwnPropertyDescriptor(n,r);return i||e(n,r)}}(e,t);r&&(r.enumerable=!0,Object.defineProperty(e,t,r))}function w(e){return String.fromCharCode.apply(null,e)}function D(e,t){var r=e[t]<<8|e[t+1];return r<0?65536+r:r}function E(e,t){var r=I(e,t);return r<0?4294967296+r:r}function A(e,t){var r=E(e,t);return r*=Math.pow(2,32),r+=E(e,t+4)}function I(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function x(e,t){var r=[];if(!t.length)return r;for(var n=e.byteLength,i=0;i<n;){var a=E(e,i),s=a>1?i+a:n;if(w(e.subarray(i+4,i+8))===t[0])if(1===t.length)r.push(e.subarray(i+8,s));else{var o=x(e.subarray(i+8,s),t.slice(1));o.length&&Di.apply(r,o)}i=s}return r}function C(e){var t=[],r=e[0],n=8,i=E(e,n);n+=4;var a=0,s=0;0===r?(a=E(e,n),s=E(e,n+4),n+=8):(a=A(e,n),s=A(e,n+8),n+=16);var o=e.length+s,l=D(e,n+=2);n+=2;for(var u=0;u<l;u++){var d=n,c=E(e,d);d+=4;var h=2147483647&c;if(1===(2147483648&c)>>>31)return gi.warn("SIDX has hierarchical references (not supported)"),null;var f=E(e,d);d+=4,t.push({referenceSize:h,subsegmentDuration:f,info:{duration:f/i,start:o,end:o+h-1}}),o+=h,n=d+=4}return{earliestPresentationTime:a,timescale:i,version:r,referencesCount:l,references:t}}function R(e){for(var t=[],r=x(e,["moov","trak"]),n=0;n<r.length;n++){var i=r[n],a=x(i,["tkhd"])[0];if(a){var s=a[0],o=E(a,0===s?12:20),l=x(i,["mdia","mdhd"])[0];if(l){var u=E(l,0===(s=l[0])?12:20),d=x(i,["mdia","hdlr"])[0];if(d){var c=w(d.subarray(8,12)),h={soun:Li,vide:bi}[c],f=P(x(i,["mdia","minf","stbl","stsd"])[0]);h?(t[o]={timescale:u,type:h,stsd:f},t[h]=p({timescale:u,id:o},f)):t[o]={timescale:u,type:c,stsd:f}}}}}return x(e,["moov","mvex","trex"]).forEach((function(e){var r=E(e,4),n=t[r];n&&(n.default={duration:E(e,12),flags:E(e,20)})})),t}function P(e){var t,r=e.subarray(8),n=r.subarray(86),i=w(r.subarray(4,8)),a=i,s="enca"===i||"encv"===i;if(s){var o=x(r,[i])[0];x(o.subarray("enca"===i?28:78),["sinf"]).forEach((function(e){var t=x(e,["schm"])[0];if(t){var r=w(t.subarray(4,8));if("cbcs"===r||"cenc"===r){var n=x(e,["frma"])[0];n&&(a=w(n))}}}))}var l=a;switch(a){case"avc1":case"avc2":case"avc3":case"avc4":var u=x(n,["avcC"])[0];u&&u.length>3&&(a+="."+F(u[1])+F(u[2])+F(u[3]),t=O("avc1"===l?"dva1":"dvav",n));break;case"mp4a":var d=x(r,[i])[0],c=x(d.subarray(28),["esds"])[0];if(c&&c.length>7){var h=4;if(3!==c[h++])break;h=Y(c,h),h+=2;var f=c[h++];if(128&f&&(h+=2),64&f&&(h+=c[h++]),4!==c[h++])break;h=Y(c,h);var m=c[h++];if(64!==m)break;if(a+="."+F(m),h+=12,5!==c[h++])break;h=Y(c,h);var p=c[h++],g=(248&p)>>3;31===g&&(g+=1+((7&p)<<3)+((224&c[h])>>5)),a+="."+g}break;case"hvc1":case"hev1":var _=x(n,["hvcC"])[0];if(_&&_.length>12){var v=_[1],y=["","A","B","C"][v>>
16],L=31&v,b=E(_,2),T=(32&v)>>5?"H":"L",M=_[12],k=_.subarray(6,12);a+="."+y+L,a+="."+function(e){for(var t=0,r=0;r<32;r++)t|=(e>>r&1)<<31-r;return t>>>0}(b).toString(16).toUpperCase(),a+="."+T+M;for(var S="",D=k.length;D--;){var A=k[D];if(A||S)S="."+A.toString(16).toUpperCase()+S}a+=S}t=O("hev1"==l?"dvhe":"dvh1",n);break;case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":a=O(a,n)||a;break;case"vp09":var I=x(n,["vpcC"])[0];if(I&&I.length>6){var C=I[5],R=I[6]>>4&15;a+="."+N(I[4])+"."+N(C)+"."+N(R)}break;case"av01":var P=x(n,["av1C"])[0];if(P&&P.length>2){var j=P[1]>>>5,U=P[2]>>>7?"H":"M",H=(64&P[2])>>6,B=2===j&&H?(32&P[2])>>5?12:10:H?10:8,W=(16&P[2])>>4,G=(8&P[2])>>3,V=(4&P[2])>>2,K=3&P[2];a+="."+j+"."+N(31&P[1])+U+"."+N(B)+"."+W+"."+G+V+K+"."+N(1)+"."+N(1)+"."+N(1)+".0",t=O("dav1",n)}}return{codec:a,encrypted:s,supplemental:t}}function O(e,t){var r=x(t,["dvvC"]),n=r.length?r[0]:x(t,["dvcC"])[0];if(n){var i=n[2]<<5&32|n[3]>>3&31;return e+"."+N(n[2]>>1&127)+"."+N(i)}}function Y(e,t){for(var r=t+5;128&e[t++]&&t<r;);return t}function F(e){return("0"+e.toString(16).toUpperCase()).slice(-2)}function N(e){return(e<10?"0":"")+e}function j(e,t){x(e,["moov","trak"]).forEach((function(e){var r=x(e,["mdia","minf","stbl","stsd"])[0];if(r){var n=r.subarray(8),i=x(n,["enca"]),a=i.length>0;
vendor: 4,587 bytes, line 1
1a||(i=x(n,["encv"])),i.forEach((function(e){x(e.subarray(a?28:78),["sinf"]).forEach((function(e){var r=U(e);r&&t(r,a)}))}))}}))}function U(e){var t=x(e,["schm"])[0];if(t){var r=w(t.subarray(4,8));if("cbcs"===r||"cenc"===r){var n=x(e,["schi","tenc"])[0];if(n)return n}}}function H(e,t){var r=new Uint8Array(e.length+t.length);return r.set(e),r.set(t,e.length),r}function B(e,t){var r=[],n=t.samples,i=t.timescale,a=t.id,s=!1;return x(n,["moof"]).map((function(o){var l=o.byteOffset-8;x(o,["traf"]).map((function(o){var u=x(o,["tfdt"]).map((function(e){var t=e[0],r=E(e,4);return 1===t&&(r*=Math.pow(2,32),r+=E(e,8)),r/i}))[0];return void 0!==u&&(e=u),x(o,["tfhd"]).map((function(u){var d=E(u,4),c=16777215&E(u,0),h=0,f=0!=(16&c),m=0,p=0!=(32&c),g=8;d===a&&(0!=(1&c)&&(g+=8),0!=(2&c)&&(g+=4),0!=(8&c)&&(h=E(u,g),g+=4),f&&(m=E(u,g),g+=4),p&&(g+=4),"video"===t.type&&(s=W(t.codec)),x(o,["trun"]).map((function(a){var o=a[0],u=16777215&E(a,0),d=0!=(1&u),c=0,f=0!=(4&u),p=0!=(256&u),g=0,_=0!=(512&u),v=0,y=0!=(1024&u),L=0!=(2048&u),b=0,T=E(a,4),M=8;d&&(c=E(a,M),M+=4),f&&(M+=4);for(var k=c+l,S=0;S<T;S++){if(p?(g=E(a,M),M+=4):g=h,_?(v=E(a,M),M+=4):v=m,y&&(M+=4),L&&(b=0===o?E(a,M):I(a,M),M+=4),t.type===bi)for(var w=0;w<v;){var D=E(n,k);if(G(s,n[k+=4]))V(n.subarray(k,k+D),s?2:1,e+b/i,r);k+=D,w+=D+4}e+=g/i}})))}))}))})),r}function W(e){if(!e)return!1;var t=e.substring(0,4);return"hvc1"===t||"hev1"===t||"dvh1"===t||"dvhe"===t}function G(e,t){if(e){var r=t>>1&63;return 39===r||40===r}return 6===(31&t)}function V(e,t,r,n){var i=K(e),a=0;a+=t;for(var s=0,o=0,l=0;a<i.length;){s=0;do{if(a>=i.length)break;s+=l=i[a++]}while(255===l);o=0;do{if(a>=i.length)break;o+=l=i[a++]}while(255===l);var u=i.length-a,d=a;if(o<u)a+=o;else if(o>u){gi.error("Malformed SEI payload. "+o+" is too small, only "+u+" bytes left to parse.");break}if(4===s){if(181===i[d++]){var c=D(i,d);if(d+=2,49===c){var h=E(i,d);if(d+=4,1195456820===h){var f=i[d++];if(3===f){var m=i[d++],p=64&m,g=p?2+3*(31&m):0,_=new Uint8Array(g);if(p){_[0]=m;for(var v=1;v<g;v++)_[v]=i[d++]}n.push({type:f,payloadType:s,pts:r,bytes:_})}}}}}else if(5===s&&o>16){for(var y=[],b=0;b<16;b++){var T=i[d++].toString(16);y.push(1==T.length?"0"+T:T),3!==b&&5!==b&&7!==b&&9!==b||y.push("-")}for(var M=o-16,k=new Uint8Array(M),S=0;S<M;S++)k[S]=i[d++];n.push({payloadType:s,pts:r,uuid:y.join(""),userData:L(k),userDataBytes:k})}}}function K(e){for(var t=e.byteLength,r=[],n=1;n<t-2;)0===e[n]&&0===e[n+1]&&3===e[n+2]?(r.push(n+2),n+=2):n++;if(0===r.length)return e;var i=t-r.length,a=new Uint8Array(i),s=0;for(n=0;n<i;s++,n++)s===r[0]&&(s++,r.shift()),a[n]=e[s];return a}function z(e,t,r){if(16!==e.byteLength)throw new RangeError("Invalid system id");var n,i;n=new Uint8Array,i=new Uint8Array;var a=new Uint8Array(4);return r.byteLength>0&&new DataView(a.buffer).setUint32(0,r.byteLength,!1),function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var i=r.length,a=8,s=i;s--;)a+=r[s].byteLength;var o=new Uint8Array(a);for(o[0]=a>>24&255,o[1]=a>>16&255,o[2]=a>>8&255,o[3]=255&a,o.set(e,4),s=0,a=8;s<i;s++)o.set(r[s],a),a+=r[s].byteLength;return o}([112,115,115,104],new Uint8Array([0,0,0,0]),e,i,n,a,r)}function q(e){var t=e.getUint32(0),r=e.byteOffset,n=e.byteLength;if(n<t)return{offset:r,size:n};if(1886614376!==e.getUint32(4))return{offset:r,size:t};var i=e.getUint32(8)>>>24;if(0!==i&&1!==i)return{offset:r,size:t};var a=e.buffer,s=b(new Uint8Array(a,r+12,16)),o=null,l=0;if(0===i)l=28;else{var u=e.getUint32(28);if(!u||n<32+16*u)return{offset:r,size:t};o=[];for(var d=0;d<u;d++)o.push(new Uint8Array(a,r+32+16*d,16));l=32+16*u}if(!l)return{offset:r,size:t};var c=e.getUint32(l);return t-32<c?{offset:r,size:t}:{version:i,systemId:s,kids:o,data:new Uint8Array(a,r+l+4,c),offset:r,size:t}}function J(e,t){var r=Ii[t];return!!r&&!!r[e.slice(0,4)]}function Q(e,t,r){return void 0===r&&(r=!0),!e.split(",").some((function(e){return!X(e,t,r)}))}function X(e,t,r){var n;void 0===r&&(r=!0);var i=v(r);return null!=(n=null==i?void 0:i.isTypeSupported(Z(e,t)))&&n}function Z(e,t){return t+"/mp4;codecs="+e}function $(e){if(e){var t=e.substring(0,4);return Ii.video[t]}return 2}function ee(e){var t=Ai();return e.split(",").reduce((function(e,r){var n=t&&W(r)?9:Ii.video[r];return n?(2*n+e)/(e?3:2):(Ii.audio[r]+e)/(e?2:1)}),0)}function te(e,t){return void 0===t&&(t=!0),e.replace(Ci,(function(e){return function(e,t){if(void 0===t&&(t=!0),xi[e])return xi[e];for(var r={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[e],n=0;n<r.length;n++){var i;if(X(r[n],"audio",t))return xi[e]=r[n],r[n];
vendor: 10,394 bytes, line 1
1if("mp3"===r[n]&&null!=(i=v(t))&&i.isTypeSupported("audio/mpeg"))return""}return e}(e.toLowerCase(),t)}))}function re(e,t){if(e&&(e.length>4||-1!==["ac-3","ec-3","alac","fLaC","Opus"].indexOf(e))&&(ne(e,"audio")||ne(e,"video")))return e;if(t){var r=t.split(",");if(r.length>1){if(e)for(var n=r.length;n--;)if(r[n].substring(0,4)===e.substring(0,4))return r[n];return r[0]}}return t||e}function ne(e,t){return J(e,t)&&X(e,t)}function ie(e){if(e.startsWith("av01.")){for(var t=e.split("."),r=["0","111","01","01","01","0"],n=t.length;n>4&&n<10;n++)t[n]=r[n-4];return t.join(".")}return e}function ae(e){var t=v(e)||{isTypeSupported:function(){return!1}};return{mpeg:t.isTypeSupported("audio/mpeg"),mp3:t.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:t.isTypeSupported('audio/mp4; codecs="ac-3"')}}function se(e){return e.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}function oe(e,t){return{supported:!1,configurations:t,decodingInfoResults:[Ri],error:e}}function le(e,t,r,n){void 0===n&&(n={});var i=e.videoCodec;if(!i&&!e.audioCodec||!r)return Promise.resolve(Pi);for(var a=[],s=function(e){var t,r=null==(t=e.videoCodec)?void 0:t.split(","),n=de(e),i=e.width||640,a=e.height||480,s=e.frameRate||30,o=e.videoRange.toLowerCase();return r?r.map((function(e){var t={contentType:Z(ie(e),"video"),width:i,height:a,bitrate:n,framerate:s};return"sdr"!==o&&(t.transferFunction=o),t})):[]}(e),o=s.length,l=function(e,t,r){var n,i=null==(n=e.audioCodec)?void 0:n.split(","),a=de(e);if(i&&e.audioGroups)return e.audioGroups.reduce((function(e,n){var s,o=n?null==(s=t.groups[n])?void 0:s.tracks:null;return o?o.reduce((function(e,t){if(t.groupId===n){var s=parseFloat(t.channels||"");i.forEach((function(t){var n={contentType:Z(t,"audio"),bitrate:r?ue(t,a):a};s&&(n.channels=""+s),e.push(n)}))}return e}),e):e}),[]);return[]}(e,t,o>0),u=l.length,d=o||1*u||1;d--;){var c={type:"media-source"};if(o&&(c.video=s[d%o]),u){c.audio=l[d%u];var h=c.audio.bitrate;c.video&&h&&(c.video.bitrate-=h)}a.push(c)}if(i){var f=navigator.userAgent;if(i.split(",").some((function(e){return W(e)}))&&Ai())return Promise.resolve(oe(new Error("Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: ("+f+")"),a))}return Promise.all(a.map((function(e){var t=function(e){var t="",r=e.audio,n=e.video;if(n){var i=se(n.contentType);t+=i+"_r"+n.height+"x"+n.width+"f"+Math.ceil(n.framerate)+(n.transferFunction||"sd")+"_"+Math.ceil(n.bitrate/1e5)}if(r){var a=se(r.contentType);t+=(n?"_":"")+a+"_c"+r.channels}return t}(e);return n[t]||(n[t]=r.decodingInfo(e))}))).then((function(e){return{supported:!e.some((function(e){return!e.supported})),configurations:a,decodingInfoResults:e}})).catch((function(e){return{supported:!1,configurations:a,decodingInfoResults:[],error:e}}))}function ue(e,t){if(t<=1)return 1;var r=128e3;return"ec-3"===e?r=768e3:"ac-3"===e&&(r=64e4),Math.min(t/2,r)}function de(e){return 1e3*Math.ceil(Math.max(.9*e.bitrate,e.averageBitrate)/1e3)||1}function ce(e){var t=e.canSkipUntil;return t&&e.age<t/2?e.canSkipDateRanges?ji:Ni:Fi}function he(e,t){return!(!t||!e)&&-1!==e.indexOf(t)}function fe(e,t){var r=!1,n=[];if(e&&(r="SDR"!==e,n=[e]),t){var i="SDR"!==(n=t.allowedVideoRanges||Yi.slice(0)).join("")&&!t.videoCodec;(r=void 0!==t.preferHDR?t.preferHDR:i&&function(){if("function"==typeof matchMedia){var e=matchMedia("(dynamic-range: high)"),t=matchMedia("bad query");if(e.media!==t.media)return!0===e.matches}return!1}())||(n=["SDR"])}return{preferHDR:r,allowedVideoRanges:n}}function me(e,t){gi.log('[abr] start candidates with "'+e+'" ignored because '+t)}function pe(e){return e.reduce((function(e,t){var r=e.groups[t.groupId];r||(r=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),r.tracks.push(t);var n=t.channels||"2";return r.channels[n]=(r.channels[n]||0)+1,r.hasDefault=r.hasDefault||t.default,r.hasAutoSelect=r.hasAutoSelect||t.autoselect,r.hasDefault&&(e.hasDefaultAudio=!0),r.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e}),{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function ge(e){return e?{lang:e.lang,assocLang:e.assocLang,characteristics:e.characteristics,channels:e.channels,audioCodec:e.audioCodec}:e}function _e(e,t,r){if("attrs"in e){var n=t.indexOf(e);if(-1!==n)return n}for(var i=0;i<t.length;i++){if(ve(e,t[i],r))return i}return-1}function ve(e,t,r){var n=e.groupId,i=e.name,a=e.lang,s=e.assocLang,o=e.default,l=e.forced;return(void 0===n||t.groupId===n)&&(void 0===i||t.name===i)&&(void 0===a||function(e,t){void 0===t&&(t="--");if(e.length===t.length)return e===t;return e.startsWith(t)||t.startsWith(e)}(a,t.lang))&&(void 0===a||t.assocLang===s)&&(void 0===o||t.default===o)&&(void 0===l||t.forced===l)&&(!("characteristics"in e)||function(e,t){void 0===t&&(t="");var r=e.split(","),n=t.split(",");return r.length===n.length&&!r.some((function(e){return-1===n.indexOf(e)}))}(e.characteristics||"",t.characteristics))&&(void 0===r||r(e,t))}function ye(e,t){var r=e.audioCodec,n=e.channels;return!(void 0!==r&&(t.audioCodec||"").substring(0,4)!==r.substring(0,4)||void 0!==n&&n!==(t.channels||"2"))}function Le(e,t,r){for(var n=t;n>-1;n--)if(r(e[n]))return n;for(var i=t+1;i<e.length;i++)if(r(e[i]))return i;return-1}function be(e,t){var r;return!!e&&e!==(null==(r=t.loadLevelObj)?void 0:r.uri)}function Te(e,t,r,n,i){void 0===r&&(r=0),void 0===n&&(n=0),void 0===i&&(i=.005);var a=null;if(e){var s=e.endDTS-r;s>0&&s<15e-7&&(r+=15e-7),(a=t[1+e.sn-t[0].sn]||null)&&e.level!==a.level&&a.end<=e.end&&(a=t[2+e.sn-t[0].sn]||null)}else 0===r&&0===t[0].start&&(a=t[0]);if(a&&((!e||e.level===a.level)&&0===Me(r,n,a)||function(e,t,r){if(t&&0===t.start&&t.level<e.level&&(t.endPTS||0)>0){var n=t.tagList.reduce((function(e,t){return"INF"===t[0]&&(e+=parseFloat(t[1])),e}),r);return e.start<=n}return!1}(a,e,Math.min(i,n))))return a;var o=Gi(t,Me.bind(null,r,n));return!o||o===e&&a?a:o}function Me(e,t,r){if(void 0===e&&(e=0),void 0===t&&(t=0),r.start<=e&&r.start+r.duration>e)return 0;var n=Math.min(t,r.duration+(r.deltaPTS?r.deltaPTS:0));return r.start+r.duration-n<=e?1:r.start-n>e&&r.start?-1:0}function ke(e,t,r){var n=1e3*Math.min(t,r.duration+(r.deltaPTS?r.deltaPTS:0));return(r.endProgramDateTime||0)-n>e}function Se(e,t,r){if(e&&e.startCC<=t&&e.endCC>=t){var n,i=e.fragments,a=e.fragmentHint;return a&&(i=i.concat(a)),Gi(i,(function(e){return e.cc<t?1:e.cc>t?-1:(n=e,e.end<=r?1:e.start>r?-1:0)})),n||null}return null}function we(e){switch(e.details){case ti.FRAG_LOAD_TIMEOUT:case ti.KEY_LOAD_TIMEOUT:case ti.LEVEL_LOAD_TIMEOUT:case ti.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function De(e){return e.details.startsWith("key")}function Ee(e){return De(e)&&!!e.frag&&!e.frag.decryptdata}function Ae(e,t){var r=we(t);return e.default[(r?"timeout":"error")+"Retry"]}function Ie(e,t){var r="linear"===e.backoff?1:Math.pow(2,t);return Math.min(r*e.retryDelayMs,e.maxRetryDelayMs)}function xe(e){return p(p({},e),{errorRetry:null,timeoutRetry:null})}function Ce(e,t,r,n){if(!e)return!1;var i=t<e.maxNumRetry&&(function(e){return Re(e)||!!e&&(e<400||e>499)}(null==n?void 0:n.code)||!!r);return e.shouldRetry?e.shouldRetry(e,t,r,n,i):i}function Re(e){return 0===e&&!1===navigator.onLine}function Pe(e){var t={action:Vi,flags:Ji};return e&&(t.resolved=!0),t}function Oe(e){var t,r,n;return e.buffered&&!!(e.body.gap||null!=(t=e.range.video)&&t.partial||null!=(r=e.range.audio)&&r.partial||null!=(n=e.range.audiovideo)&&n.partial)}function Ye(e){return e.type+"_"+e.level+"_"+e.sn}function Fe(e,t){return e.filter((function(e){var r=t(e);return r||e.clearElementaryStreamInfo(),r}))}function Ne(e,t){void 0===t&&(t=null);var r,n=t||e,i={frag:e,part:t,responseType:"arraybuffer",url:n.url,headers:{},rangeStart:0,rangeEnd:0},a=n.byteRangeStartOffset,s=n.byteRangeEndOffset;if(Xn(a)&&Xn(s)){var o,l=a,u=s;if("initSegment"===e.sn&&("AES-128"===(r=null==(o=e.decryptdata)?void 0:o.method)||"AES-256"===r)){var d=s-a;d%16&&(u=s+(16-d%16)),0!==a&&(i.resetIV=!0,l=a-16)}i.rangeStart=l,i.rangeEnd=u}return i}function je(e,t){var r=new Error("GAP "+(e.gap?"tag":"attribute")+" found"),n={type:ei.MEDIA_ERROR,details:ti.FRAG_GAP,fatal:!1,frag:e,error:r,networkDetails:null};return t&&(n.part=t),(t||e).stats.aborted=!0,new fa(n)}function Ue(e){return va.test(e)}function He(e,t){if(null!==e.variableList||e.hasVariableRefs){var r=e.variableList;return t.replace(va,(function(t){var n=t.substring(2,t.length-1),i=null==r?void 0:r[n];return void 0===i?(e.playlistParsingError||(e.playlistParsingError=new Error('Missing preceding EXT-X-DEFINE tag for Variable Reference: "'+n+'"')),t):i}))}return t}function Be(e,t,r){var n,i,a=e.variableList;if(a||(e.variableList=a={}),"QUERYPARAM"in t){n=t.QUERYPARAM;try{var s=new self.URL(r).searchParams;if(!s.has(n))throw new Error('"'+n+'" does not match any query parameter in URI: "'+r+'"');i=s.get(n)}catch(t){e.playlistParsingError||(e.playlistParsingError=new Error("EXT-X-DEFINE QUERYPARAM: "+t.message))}}else n=t.NAME,i=t.VALUE;n in a?e.playlistParsingError||(e.playlistParsingError=new Error('EXT-X-DEFINE duplicate Variable Name declarations: "'+n+'"')):a[n]=i||""}function We(e,t,r){var n=t.IMPORT;if(r&&n in r){var i=e.variableList;i||(e.variableList=i={}),i[n]=r[n]}else e.playlistParsingError||(e.playlistParsingError=new Error('EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "'+n+'"'))}function Ge(e){return"SCTE35-OUT"===e||"SCTE35-IN"===e||"SCTE35-CMD"===e}function Ve(e,t){return e.length===t.length&&!e.some((function(e,r){return e!==t[r]}))}function Ke(e,t){return!e&&!t||!(!e||!t)&&Ve(e,t)}function ze(e){return"AES-128"===e||"AES-256"===e||"AES-256-CTR"===e}function qe(e){switch(e){case"AES-128":case"AES-256":return aa;case"AES-256-CTR":return sa;default:throw new Error("invalid full segment method "+e)}}function Je(e){return Uint8Array.from(atob(e),(function(e){return e.charCodeAt(0)}))}function Qe(e){return Uint8Array.from(unescape(encodeURIComponent(e)),(function(e){return e.charCodeAt(0)}))}function Xe(e){var t=function(e,t,r){var n=e[t];e[t]=e[r],e[r]=n};t(e,0,3),t(e,1,2),t(e,4,5),t(e,6,7)}function Ze(e){var t,r,n=e.split(":"),i=null;if("data"===n[0]&&2===n.length){var a=n[1].split(";"),s=a[a.length-1].split(",");if(2===s.length){var o=s[1];"base64"===s[0]?(a.splice(-1,1),i=Je(o)):(t=Qe(o).subarray(0,16),(r=new Uint8Array(16)).set(t,16-t.length),i=r)}}return i}function $e(e){switch(e){case Da:return Sa.FAIRPLAY;case Ea:return Sa.PLAYREADY;
vendor: 5,504 bytes, line 1
1case Aa:return Sa.WIDEVINE;case wa:return Sa.CLEARKEY}}function et(e){switch(e){case Sa.FAIRPLAY:return Da;case Sa.PLAYREADY:return Ea;case Sa.WIDEVINE:return Aa;case Sa.CLEARKEY:return wa}}function tt(e){var t=e.drmSystems,r=e.widevineLicenseUrl,n=t?[Sa.FAIRPLAY,Sa.WIDEVINE,Sa.PLAYREADY,Sa.CLEARKEY].filter((function(e){return!!t[e]})):[];return!n[Sa.WIDEVINE]&&r&&n.push(Sa.WIDEVINE),n}function rt(e){var t=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),r=String.fromCharCode.apply(null,Array.from(t)),n=r.substring(r.indexOf("<"),r.length),i=(new DOMParser).parseFromString(n,"text/xml").getElementsByTagName("KID")[0];if(i){var a=i.childNodes[0]?i.childNodes[0].nodeValue:i.getAttribute("VALUE");if(a){var s=Je(a).subarray(0,16);return Xe(s),s}}return null}function nt(e){var t=null==e?void 0:e[Ea];if(t){var r=Ze(t.uri);if(r)return rt(r)}return null}function it(e,t){var r=e.length;if(!r){if(!t.hasProgramDateTime)return;e.push(t.fragments[t.fragments.length-1]),r++}for(var n=e[r-1],i=t.live?1/0:t.totalduration,a=Object.keys(t.dateRanges),s=a.length;s--;){var o=t.dateRanges[a[s]],l=o.startDate.getTime();o.tagAnchor=n.ref;for(var u=r;u--;){var d;if((null==(d=e[u])?void 0:d.sn)<t.startSN)break;var c=at(t,l,e,u,i);if(-1!==c){o.tagAnchor=t.fragments[c].ref;break}}}}function at(e,t,r,n,i){var a=r[n];if(a){var s,o=a.programDateTime;if(t>=o||0===n)if(t<=o+1e3*(((null==(s=r[n+1])?void 0:s.start)||i)-a.start)){var l=r[n].sn-e.startSN;if(l<0)return-1;var u=e.fragments;if(u.length>r.length)for(var d=(r[n+1]||u[u.length-1]).sn-e.startSN;d>l;d--){var c=u[d].programDateTime;if(t>=c&&t<c+1e3*u[d].duration)return d}return l}}return-1}function st(e,t,r){var n,i,a=new ba(e,r),s=null!=(n=a.METHOD)?n:"",o=a.URI,l=a.hexadecimalInteger("IV"),u=a.KEYFORMATVERSIONS,d=null!=(i=a.KEYFORMAT)?i:"identity";o&&a.IV&&!l&&gi.error("Invalid IV: "+a.IV);var c=o?Na.resolve(o,t):"",h=(u||"1").split("/").map(Number).filter(Number.isFinite);return new Ca(s,c,d,h,l,a.KEYID)}function ot(e){var t=new ba(e).decimalFloatingPoint("TIME-OFFSET");return Xn(t)?t:null}function lt(e,t){var r=(e||"").split(/[ ,]+/).filter((function(e){return e}));["video","audio","text"].forEach((function(e){var n=r.filter((function(t){return J(t,e)}));n.length&&(t[e+"Codec"]=n.map((function(e){return e.split("/")[0]})).join(","),r=r.filter((function(e){return-1===n.indexOf(e)})))})),t.unknownCodecs=r}function ut(e,t,r){var n=t[r];n&&(e[r]=n)}function dt(e,t,r){e.rawProgramDateTime?r.push(e):null!=t&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime)}function ct(e,t,r,n){e.relurl=t.URI,t.BYTERANGE&&e.setByteRange(t.BYTERANGE),e.level=r,e.sn="initSegment",n&&(e.levelkeys=n),e.initSegment=null}function ht(e,t,r){e.levelkeys=t;var n=r.encryptedFragments;n.length&&n[n.length-1].levelkeys===t||!Object.keys(t).some((function(e){return t[e].isCommonEncryption}))||n.push(e)}function ft(e,t,r){e.playlistParsingError=new Error("#EXT-X-"+t+" must not appear more than once ("+r[0]+")")}function mt(e,t,r){e.playlistParsingError=new Error("#EXT-X-"+t+" must appear before the first Media Segment ("+r[0]+")")}function pt(e,t){var r=t.startPTS;if(Xn(r)){var n,i=0;t.sn>e.sn?(i=r-e.start,n=e):(i=e.start-r,n=t),n.duration!==i&&n.setDuration(i)}else if(t.sn>e.sn){t.setStart(e.cc===t.cc&&e.minEndPTS?e.start+(e.minEndPTS-e.start):e.start+e.duration)}else t.setStart(Math.max(e.start-t.duration,0))}function gt(e,t,r,n,i,a,s){n-r<=0&&(s.warn("Fragment should have a positive duration",t),n=r+t.duration,a=i+t.duration);var o=r,l=n,u=t.startPTS,d=t.endPTS;if(Xn(u)){var c=Math.abs(u-r);e&&c>e.totalduration?s.warn("media timestamps and playlist times differ by "+c+"s for level "+t.level+" "+e.url):t.deltaPTS=Xn(t.deltaPTS)?Math.max(c,t.deltaPTS):c,o=Math.max(r,u),r=Math.min(r,u),i=void 0!==t.startDTS?Math.min(i,t.startDTS):i,l=Math.min(n,d),n=Math.max(n,d),a=void 0!==t.endDTS?Math.max(a,t.endDTS):a}var h=r-t.start;0!==t.start&&t.setStart(r),t.setDuration(n-t.start),t.startPTS=r,t.maxStartPTS=o,t.startDTS=i,t.endPTS=n,t.minEndPTS=l,t.endDTS=a;var f,m=t.sn;if(!e||m<e.startSN||m>e.endSN)return 0;var p=m-e.startSN,g=e.fragments;for(g[p]=t,f=p;f>0;f--)pt(g[f],g[f-1]);for(f=p;f<g.length-1;f++)pt(g[f],g[f+1]);return e.fragmentHint&&pt(g[g.length-1],e.fragmentHint),e.PTSKnown=e.alignedSliding=!0,h}function _t(e,t,r){if(e!==t){for(var n,i=null,a=e.fragments,s=a.length-1;s>=0;s--){var o=a[s].initSegment;if(o){i=o;break}}e.fragmentHint&&delete e.fragmentHint.endPTS,function(e,t,r){for(var n=t.skippedSegments,i=Math.max(e.startSN,t.startSN)-t.startSN,a=(e.fragmentHint?1:0)+(n?t.endSN:Math.min(e.endSN,t.endSN))-t.startSN,s=t.startSN-e.startSN,o=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,l=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,u=i;u<=a;u++){var d=l[s+u],c=o[u];if(n&&!c&&d&&(c=t.fragments[u]=d),d&&c){r(d,c,u,o);var h=d.relurl,f=c.relurl;if(h&&wt(h,f))return void(t.playlistParsingError=vt("media sequence mismatch "+c.sn+":",e,t,d,c));if(d.cc!==c.cc)return void(t.playlistParsingError=vt("discontinuity sequence mismatch ("+d.cc+"!="+c.cc+")",e,t,d,c))}}}(e,t,(function(e,r,a,s){if((!t.startCC||t.skippedSegments)&&r.cc!==e.cc){for(var o=e.cc-r.cc,l=a;l<s.length;l++)s[l].cc+=o;t.endCC=s[s.length-1].cc}Xn(e.startPTS)&&Xn(e.endPTS)&&(r.setStart(r.startPTS=e.startPTS),r.startDTS=e.startDTS,r.maxStartPTS=e.maxStartPTS,r.endPTS=e.endPTS,r.endDTS=e.endDTS,r.minEndPTS=e.minEndPTS,r.setDuration(e.endPTS-e.startPTS),r.duration&&(n=r),t.PTSKnown=t.alignedSliding=!0),e.hasStream
vendor: 7,862 bytes, line 1
1s&&(r.elementaryStreams=e.elementaryStreams),r.loader=e.loader,e.hasStats&&(r.stats=e.stats),e.initSegment&&(r.initSegment=e.initSegment,i=e.initSegment)}));var l=t.fragments,u=t.fragmentHint?l.concat(t.fragmentHint):l;if(i&&u.forEach((function(e){var t;!e||e.initSegment&&e.initSegment.relurl!==(null==(t=i)?void 0:t.relurl)||(e.initSegment=i)})),t.skippedSegments){if(t.deltaUpdateFailed=l.some((function(e){return!e})),t.deltaUpdateFailed){r.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var d=t.skippedSegments;d--;)l.shift();t.startSN=l[0].sn}else{t.canSkipDateRanges&&(t.dateRanges=function(e,t,r){var n=t.dateRanges,i=t.recentlyRemovedDateranges,a=f({},e);i&&i.forEach((function(e){delete a[e]}));var s=Object.keys(a).length;if(!s)return n;return Object.keys(n).forEach((function(e){var t=a[e],i=new Ta(n[e].attr,t);i.isValid?(a[e]=i,t||(i.tagOrder+=s)):r.warn('Ignoring invalid Playlist Delta Update DATERANGE tag: "'+Bi(n[e].attr)+'"')})),a}(e.dateRanges,t,r));var c=e.fragments.filter((function(e){return e.rawProgramDateTime}));if(e.hasProgramDateTime&&!t.hasProgramDateTime)for(var h=1;h<u.length;h++)null===u[h].programDateTime&&dt(u[h],u[h-1],c);it(c,t)}t.endCC=l[l.length-1].cc}if(!t.startCC){var m,p=Tt(e,t.startSN-1);t.startCC=null!=(m=null==p?void 0:p.cc)?m:l[0].cc}!function(e,t,r){if(e&&t)for(var n=0,i=0,a=e.length;i<=a;i++){var s=e[i],o=t[i+n];s&&o&&s.index===o.index&&s.fragment.sn===o.fragment.sn?r(s,o):n--}}(e.partList,t.partList,(function(e,t){t.elementaryStreams=e.elementaryStreams,t.stats=e.stats})),n?gt(t,n,n.startPTS,n.endPTS,n.startDTS,n.endDTS,r):yt(e,t),l.length&&(t.totalduration=t.edge-l[0].start),t.driftStartTime=e.driftStartTime,t.driftStart=e.driftStart;var g=t.advancedDateTime;if(t.advanced&&g){var _=t.edge;t.driftStart||(t.driftStartTime=g,t.driftStart=_),t.driftEndTime=g,t.driftEnd=_}else t.driftEndTime=e.driftEndTime,t.driftEnd=e.driftEnd,t.advancedDateTime=e.advancedDateTime;-1===t.requestScheduled&&(t.requestScheduled=e.requestScheduled)}}function vt(e,t,r,n,i){return new Error(e+" "+i.url+"\nPlaylist starting @"+t.startSN+"\n"+t.m3u8+"\n\nPlaylist starting @"+r.startSN+"\n"+r.m3u8)}function yt(e,t,r){void 0===r&&(r=!0);var n=t.startSN+t.skippedSegments-e.startSN,i=e.fragments,a=n>=0,s=0;if(a&&n<i.length)s=i[n].start;else if(a&&t.startSN===e.endSN+1)s=e.fragmentEnd;else if(a&&r)s=e.fragmentStart+n*t.levelTargetDuration;else{if(t.skippedSegments||0!==t.fragmentStart)return;s=e.fragmentStart}Lt(t,s)}function Lt(e,t){if(t){for(var r=e.fragments,n=e.skippedSegments;n<r.length;n++)r[n].addStart(t);e.fragmentHint&&e.fragmentHint.addStart(t)}}function bt(e,t){void 0===t&&(t=1/0);var r=1e3*e.targetduration;if(e.updated){var n=e.fragments;if(n.length&&4*r>t){var i=1e3*n[n.length-1].duration;i<r&&(r=i)}}else r/=2;return Math.round(r)}function Tt(e,t,r){if(!e)return null;var n=e.fragments[t-e.startSN];return n||((n=e.fragmentHint)&&n.sn===t?n:t<e.startSN&&r&&r.sn===t?r:null)}function Mt(e,t,r){return e?kt(e.partList,t,r):null}function kt(e,t,r){if(e)for(var n=e.length;n--;){var i=e[n];if(i.index===r&&i.fragment.sn===t)return i}return null}function St(e){e.forEach((function(e,t){var r;null==(r=e.details)||r.fragments.forEach((function(e){e.level=t,e.initSegment&&(e.initSegment.level=t)}))}))}function wt(e,t){return!(e===t||!t)&&Dt(e)!==Dt(t)}function Dt(e){return e.replace(/\?[^?]*$/,"")}function Et(e,t){for(var r=0,n=e.length;r<n;r++){var i;if((null==(i=e[r])?void 0:i.cc)===t)return e[r]}return null}function At(e,t){var r=e.start+t;e.startPTS=r,e.setStart(r),e.endPTS=r+e.duration}function It(e,t){for(var r=t.fragments,n=0,i=r.length;n<i;n++)At(r[n],e);t.fragmentHint&&At(t.fragmentHint,e),t.alignedSliding=!0}function xt(e,t){if(function(e,t){return!!(e&&t.startCC<e.endCC&&t.endCC>e.startCC)}(t,e)){var r=Math.min(t.endCC,e.endCC),n=Et(t.fragments,r),i=Et(e.fragments,r);if(n&&i)gi.log("Aligning playlist at start of dicontinuity sequence "+r),It(n.start-i.start,e)}}function Ct(e,t){if(e.hasProgramDateTime&&t.hasProgramDateTime){var r=e.fragments,n=t.fragments;if(r.length&&n.length){var i,a,s=Math.min(t.endCC,e.endCC);t.startCC<s&&e.startCC<s&&(i=Et(n,s),a=Et(r,s)),i&&a||(a=Et(r,(i=n[Math.floor(n.length/2)]).cc)||r[Math.floor(r.length/2)]);var o=i.programDateTime,l=a.programDateTime;if(o&&l)It((l-o)/1e3-(a.start-i.start),e)}}}function Rt(e,t,r){Pt(e,t,r),e.addEventListener(t,r)}function Pt(e,t,r){e.removeEventListener(t,r)}function Ot(e){return!!e.interstitialsController&&!1!==e.enableInterstitialPlayback}function Yt(e,t){return t+10<=e.length&&51===e[t]&&68===e[t+1]&&73===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128}function Ft(e,t){return t+10<=e.length&&73===e[t]&&68===e[t+1]&&51===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128}function Nt(e,t){var r=0;return r=(127&e[t])<<21,r|=(127&e[t+1])<<14,r|=(127&e[t+2])<<7,r|=127&e[t+3]}function jt(e,t){for(var r=t,n=0;Ft(e,t);){n+=10,n+=Nt(e,t+6),Yt(e,t+10)&&(n+=10),t+=n}if(n>0)return e.subarray(r,r+n)}function Ut(e,t){return 255===e[t]&&240==(246&e[t+1])}function Ht(e,t){return 1&e[t+1]?7:9}function Bt(e,t){return(3&e[t+3])<<11|e[t+4]<<3|(224&e[t+5])>>>5}function Wt(e,t){return t+1<e.length&&Ut(e,t)}function Gt(e,t){if(Wt(e,t)){var r=Ht(e,t);if(t+r>=e.length)return!1;var n=Bt(e,t);if(n<=r)return!1;var i=t+n;return i===e.length||Wt(e,i)}return!1}function Vt(e,t,r,n,i){if(!e.samplerate){var a=function(e,t,r,n){var i=t[r+2],a=i>>2&15;if(!(a>12)){var s=1+(i>>6&3),o=t[r+3]>>6&3|(1&i)<<2,l="mp4a.40."+s,u=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350][a],d=a;5!==s&&29!==s||(d-=3);var c=[s<<3|(14&d)>>1,(1&d)<<7|o<<3];return gi.log("manifest codec:"+n+", parsed codec:"+l+", channels:"+o+", rate:"+u+" (ADTS object type:"+s+" sampling index:"+a+")"),{config:c,samplerate:u,channelCount:o,codec:l,parsedCodec:l,manifestCodec:n}}var h=new Error("invalid ADTS sampling index:"+a);e.emit(ri.ERROR,ri.ERROR,{type:ei.MEDIA_ERROR,details:ti.FRAG_PARSING_ERROR,fatal:!0,error:h,reason:h.message})}(t,r,n,i);if(!a)return;f(e,a)}}function Kt(e){return 9216e4/e}function zt(e,t,r,n,i){var a,s=n+i*Kt(e.samplerate),o=function(e,t){var r=Ht(e,t);if(t+r<=e.length){var n=Bt(e,t)-r;if(n>0)return{headerLength:r,frameLength:n}}}(t,r);if(o){var l=o.headerLength,u=l+o.frameLength,d=Math.max(0,r+u-t.length);d?(a=new Uint8Array(u-l)).set(t.subarray(r+l,t.length),0):a=t.subarray(r+l,r+u);var c={unit:a,pts:s};return d||e.samples.push(c),{sample:c,length:u,missing:d}}var h=t.length-r;return(a=new Uint8Array(h)).set(t.subarray(r,t.length),0),{sample:{unit:a,pts:s},length:h,missing:-1}}function qt(e,t){return Ft(e,t)&&Nt(e,t+6)+10<=e.length-t}function Jt(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=1/0),function(e,t,r,n){var i=function(e){return e instanceof ArrayBuffer?e:e.buffer}(e),a=1;"BYTES_PER_ELEMENT"in n&&(a=n.BYTES_PER_ELEMENT);var s=(d=e,d&&d.buffer instanceof ArrayBuffer&&void 0!==d.byteLength&&void 0!==d.byteOffset?e.byteOffset:0),o=(s+e.byteLength)/a,l=Math.floor(Math.max(0,Math.min((s+t)/a,o))),u=Math.floor(Math.min(l+Math.max(r,0),o));var d;return new n(i,l,u-l)}(e,t,r,Uint8Array)}function Qt(e){var t={key:e.type,description:"",data:"",mimeType:null,pictureType:null};if(!(e.size<2))if(3===e.data[0]){var r=e.data.subarray(1).indexOf(0);if(-1!==r){var n=L(Jt(e.data,1,r)),i=e.data[2+r],a=e.data.subarray(3+r).indexOf(0);if(-1!==a){var s,o=L(Jt(e.data,3+r,a));return s="--\x3e"===n?L(Jt(e.data,4+r+a)):function(e){return e instanceof ArrayBuffer?e:0==e.byteOffset&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}(e.data.subarray(4+r+a)),t.mimeType=n,t.pictureType=i,t.description=o,t.data=s,t}}}else console.log("Ignore frame with unrecognized character encoding")}function Xt(e){return"PRIV"===e.type?function(e){if(!(e.size<2)){var t=L(e.data,!0),r=new 
vendor: 6,592 bytes, line 1
1Uint8Array(e.data.subarray(t.length+1));return{key:e.type,info:t,data:r.buffer}}}(e):"W"===e.type[0]?function(e){if("WXXX"===e.type){if(e.size<2)return;var t=1,r=L(e.data.subarray(t),!0),n=L(e.data.subarray(t+=r.length+1));return{key:e.type,info:r,data:n}}var i=L(e.data);return{key:e.type,info:"",data:i}}(e):"APIC"===e.type?Qt(e):function(e){if(!(e.size<2)){if("TXXX"===e.type){var t=1,r=L(e.data.subarray(t),!0),n=L(e.data.subarray(t+=r.length+1));return{key:e.type,info:r,data:n}}var i=L(e.data.subarray(1));return{key:e.type,info:"",data:i}}}(e)}function Zt(e){var t=String.fromCharCode(e[0],e[1],e[2],e[3]),r=Nt(e,4);return{type:t,size:r,data:e.subarray(10,10+r)}}function $t(e){for(var t=0,r=[];Ft(e,t);){var n=Nt(e,t+6);e[t+5]>>6&1&&(t+=10);for(var i=(t+=10)+n;t+10<i;){var a=Zt(e.subarray(t)),s=Xt(a);s&&r.push(s),t+=a.size+10}Yt(e,t)&&(t+=10)}return r}function er(e){return e&&"PRIV"===e.key&&"com.apple.streaming.transportStreamTimestamp"===e.info}function tr(e){if(8===e.data.byteLength){var t=new Uint8Array(e.data),r=(t[4]<<23)+(t[5]<<15)+(t[6]<<7)+t[7];return r/=45,1&t[3]&&(r+=47721858.84),Math.round(r)}}function rr(e){for(var t=$t(e),r=0;r<t.length;r++){var n=t[r];if(er(n))return tr(n)}}function nr(e,t){return void 0===e&&(e=""),void 0===t&&(t=9e4),{type:e,id:-1,pid:-1,inputTimeScale:t,sequenceNumber:-1,samples:[],dropped:0}}function ir(e,t,r,n,i){if(!(r+24>t.length)){var a=ar(t,r);if(a&&r+a.frameLength<=t.length){var s=n+i*(9e4*a.samplesPerFrame/a.sampleRate),o={unit:t.subarray(r,r+a.frameLength),pts:s,dts:s};return e.config=[],e.channelCount=a.channelCount,e.samplerate=a.sampleRate,e.samples.push(o),{sample:o,length:a.frameLength,missing:0}}}}function ar(e,t){var r=e[t+1]>>3&3,n=e[t+1]>>1&3,i=e[t+2]>>4&15,a=e[t+2]>>2&3;if(1!==r&&0!==i&&15!==i&&3!==a){var s=e[t+3]>>6,o=1e3*os[14*(3===r?3-n:3===n?3:4)+i-1],l=ls[3*(3===r?0:2===r?1:2)+a],u=3===s?1:2,d=us[r][n],c=ds[n],h=8*d*c,f=Math.floor(d*o/l+(e[t+2]>>1&1))*c;if(null===ss){var m=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);ss=m?parseInt(m[1]):0}return!!ss&&ss<=87&&2===n&&o>=224e3&&0===s&&(e[t+3]=128|e[t+3]),{sampleRate:l,channelCount:u,frameLength:f,samplesPerFrame:h}}}function sr(e,t){return 255===e[t]&&224==(224&e[t+1])&&0!=(6&e[t+1])}function or(e,t){return t+1<e.length&&sr(e,t)}function lr(e,t){if(t+1<e.length&&sr(e,t)){var r=ar(e,t),n=4;null!=r&&r.frameLength&&(n=r.frameLength);var i=t+n;return i===e.length||or(e,i)}return!1}function ur(e,t,r,n,i){if(r+8>t.length)return-1;if(11!==t[r]||119!==t[r+1])return-1;var a=t[r+4]>>6;if(a>=3)return-1;var s=[48e3,44100,32e3][a],o=63&t[r+4],l=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*o+a];if(r+l>t.length)return-1;var u=t[r+6]>>5,d=0;2===u?d+=2:(1&u&&1!==u&&(d+=2),4&u&&(d+=2));var c=(t[r+6]<<8|t[r+7])>>12-d&1,h=[2,1,2,3,3,4,4,5][u]+c,f=7&t[r+5],m=new Uint8Array([a<<6|t[r+5]>>3<<1|f>>2,(3&f)<<6|u<<3|c<<2|o>>4,o<<4&224]),p=n+i*(1536/s*9e4),g=t.subarray(r,r+l);return e.config=m,e.channelCount=h,e.samplerate=s,e.samples.push({unit:g,pts:p}),l}function dr(e,t){return Xn(e.presentationTime)?e.presentationTime/e.timeScale:t+e.presentationTimeDelta/e.timeScale}function cr(e,t){return((31&e[t+1])<<8)+e[t+2]}function hr(e,t){return(31&e[t+10])<<8|e[t+11]}function fr(e,t,r,n,i,a){var s={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},o=t+3+((15&e[t+1])<<8|e[t+2])-4;for(t+=12+((15&e[t+10])<<8|e[t+11]);t<o;){var l=cr(e,t),u=(15&e[t+3])<<8|e[t+4];switch(e[t]){case 207:if(!n){pr("ADTS AAC",a);break}case 15:-1===s.audioPid&&(s.audioPid=l);break;case 21:-1===s.id3Pid&&(s.id3Pid=l);break;case 219:if(!n){pr("H.264",a);break}case 27:-1===s.videoPid&&(s.videoPid=l);break;case 3:case 4:r.mpeg||r.mp3?-1===s.audioPid&&(s.audioPid=l,s.segmentAudioCodec="mp3"):a.log("MPEG audio found, not supported in this browser");break;case 193:if(!n){pr("AC-3",a);break}case 129:r.ac3?-1===s.audioPid&&(s.audioPid=l,s.segmentAudioCodec="ac3"):a.log("AC-3 audio found, not supported in this browser");break;case 6:if(-1===s.audioPid&&u>0)for(var d=t+5,c=u;c>2;){switch(e[d]){case 106:!0!==r.ac3?a.log("AC-3 audio found, not supported in this browser for now"):(s.audioPid=l,s.segmentAudioCodec="ac3")}var h=e[d+1]+2;d+=h,c-=h}break;case 194:case 135:return mr(i,new Error("Unsupported EC-3 in M2TS found"),void 0,a),s;case 36:-1===s.videoPid&&(s.videoPid=l,s.segmentVideoCodec="hevc",a.log("HEVC in M2TS found"))}t+=u+5}return s}function mr(e,t,r,n){n.warn("parsing error: "+t.message),e.emit(ri.ERROR,ri.ERROR,{type:ei.MEDIA_ERROR,details:ti.FRAG_PARSING_ERROR,fatal:!1,levelRetry:r,error:t,reason:t.message})}function pr(e,t){t.log(e+" with AES-128-CBC encryption found in unencrypted stream")}function gr(e,t){var r,n,i,a,s,o=0,l=e.data;if(!e||0===e.size)return null;for(;l[0].length<19&&l.length>1;)l[0]=H(l[0],l[1]),l.splice(1,1);if(1===((r=l[0])[0]<<16)+(r[1]<<8)+r[2]){if((n=(r[4]<<8)+r[5])&&n>e.size-6)return null;var u=r[7];192&u&&(a=536870912*(14&r[9])+4194304*(255&r[10])+16384*(254&r[11])+128*(255&r[12])+(254&r[13])/2,64&u?a-(s=536870912*(14&r[14])+4194304*(255&r[15])+16384*(254&r[16])+128*(255&r[17])+(254&r[18])/2)>54e5&&(t.warn(Math.round((a-s)/9e4)+"s delta between PTS and DTS, align them"),a=s):s=a);var d=(i=r[8])+9;if(e.size<=d)return null;e.size-=d;for(var c=new Uint8Array(e.size),h=0,f=l.length;h<f;h++){var m=(r=l[h]).byteLength;if(d){if(d>m){d-=m;continue}r=r.subarray(d),m-=d,d=0}c.set(r,o),o+=m}return n&&(n-=i+3),{data:c,pts:a,dts:s,len:n}}return null}function _r(e,t,r,n){void 0===r&&(r=1),void 0===n&&(n=!1);var i=e*t*r;return n?Math.round(i):i}function vr(e,t){return void 0===t&&(t=!1),_r(e,1e3,1/9e4,t)}function yr(e){var t=e.baseTime,r=e.timescale;return t/r+" ("+t+"/"+r+") trackId: "+e.trackId}function Lr(e,t,r,n){return{duration:t,size:r,cts:n,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}function br(e,t){var r;if(null===t)return e;for(r=t<e?-8589934592:8589934592;Math.abs(e-t)>4294967296;)e+=r;return e}function Tr(e,t,r,n){var i=e.samples.length;if(i){for(var a=e.inputTimeScale,s=0;s<i;s++){var o=e.samples[s];o.pts=br(o.pts-r.baseTime*a/r.timescale,t*a)/a,o.dts=br(o.dts-n.baseTime*a/n.timescale,t*a)/a}
1var l=e.samples;return e.samples=[],{samples:l}}}function Mr(e,t,r){var n=e.samples.length;if(n){for(var i=e.inputTimeScale,a=0;a<n;a++){var s=e.samples[a];s.pts=br(s.pts-r.baseTime*i/r.timescale,t*i)/i}e.samples.sort((function(e,t){return e.pts-t.pts}));var o=e.samples;return e.samples=[],{samples:o}}}function kr(e,t,r){return void 0===r&&(r=!1),void 0!==(null==e?void 0:e.start)?(e.start+(r?e.duration:0))/e.timescale:t}function Sr(e,t,r){var n=e.codec;if(n&&n.length>4)return n;if(t===Li){if("ec-3"===n||"ac-3"===n||"alac"===n)return n;if("fLaC"===n||"Opus"===n){return te(n,!1)}return r.warn('Unhandled audio codec "'+n+'" in mp4 MAP'),n||"mp4a"}return r.warn('Unhandled video codec "'+n+'" in mp4 MAP'),n||"avc1"}function wr(e){return"then"in e&&e.then instanceof Function}function Dr(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!Er(e[r].attrs,t[r].attrs))return!1;return!0}function Er(e,t,r){var n=e["STABLE-RENDITION-ID"];return n&&!r?n===t["STABLE-RENDITION-ID"]:!(r||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some((function(r){return e[r]!==t[r]}))}function Ar(e,t){return t.label.toLowerCase()===e.name.toLowerCase()&&(!t.language||t.language.toLowerCase()===(e.lang||"").toLowerCase())}function Ir(e){var t=e.querySelectorAll("source");[].slice.call(t).forEach((function(t){e.removeChild(t)}))}function xr(e){return"audio"===e?1:0}function Cr(e,t,r,n){return new Error("failed to "+e+' "'+(i=t,(Array.isArray(i)?JSON.stringify(i):i instanceof Map?"Map{}":i instanceof Set?"Set{}":"object"==typeof i?JSON.stringify(i):String(i))+'" as ')+r,{cause:n});var i}function Rr(e,t,r){return Cr("serialize",e,t,r)}function Pr(e){if(!1===ArrayBuffer.isView(e))throw Rr(e,"Byte Sequence");return":"+(btoa(String.fromCharCode.apply(String,e))+":")}function Or(e){if(function(e){return e<-999999999999999||999999999999999<e}(e))throw Rr(e,"Integer");return e.toString()}function Yr(e){var t=function e(t,r){if(t<0)return-e(-t,r);var n=Math.pow(10,r);if(Math.abs(t*n%1-.5)<Number.EPSILON){var i=Math.floor(t*n);return(i%2==0?i:i+1)/n}return Math.round(t*n)/n}(e,3);if(Math.floor(Math.abs(t)).toString().length>12)throw Rr(e,"Decimal");var r=t.toString();return r.includes(".")?r:r+".0"}function Fr(e){var t,r=(t=e).description||t.toString().slice(7,-1);if(!1===/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(r))throw Rr(r,"Token");return r}function Nr(e){switch(typeof e){case"number":if(!Xn(e))throw Rr(e,"Bare Item");return Number.isInteger(e)?Or(e):Yr(e);case"string":return function(e){if(Qs.test(e))throw Rr(e,"String");return'"'+e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}(e);case"symbol":return Fr(e);case"boolean":return function(e){if("boolean"!=typeof e)throw Rr(e,"Boolean");return e?"?1":"?0"}(e);case"object":if(e instanceof Date)return function(e){return"@"+Or(e.getTime()/1e3)}(e);if(e instanceof Uint8Array)return Pr(e);if(e instanceof Js)return Fr(e);default:throw Rr(e,"Bare Item")}}function jr(e){if(!1===/^[a-z*][a-z0-9\-_.*]*$/.test(e))throw Rr(e,"Key");return e}function Ur(e){return null==e?"":Object.entries(e).map((function(e){var t=e[0],r=e[1];return!0===r?";"+jr(t):";"+jr(t)+"="+Nr(r)})).join("")}function Hr(e){return e instanceof qs?""+Nr(e.value)+Ur(e.params):Nr(e)}function Br(e,t){if(void 0===t&&(t={whitespace:!0}),"object"!=typeof e||null==e)throw Rr(e,"Dict");var r=e instanceof Map?e.entries():Object.entries(e),n=(null==t?void 0:t.whitespace)?" ":"";return Array.from(r).map((function(e){var t=e[0],r=e[1];r instanceof qs==!1&&(r=new qs(r));var n,i=jr(t);return!0===r.value?i+=Ur(r.params):(i+="=",Array.isArray(r.value)?i+="("+(n=r).value.map(Hr).join(" ")+")"+Ur(n.params):i+=Hr(r)),i})).join(","+n)}function Wr(e,t){return Br(e,t)}function Gr(e,t){var r={};if(!e)return r;var n,i=Object.keys(e),a=t?(n=t,Object.keys(n).reduce((function(e,t){var r;return null===(r=n[t])||void 0===r||r.forEach((function(r){return e[r]=t})),e}),{})):{};return i.reduce((function(t,r){var n,i=Zs[r]||a[r]||$s;return(null!==(n=t[i])&&void 0!==n?n:t[i]={})[r]=e[r],t}),r)}function Vr(e){return so.test(e)}function Kr(e){return uo.includes(e)||Vr(e)}function zr(e,t){void 0===t&&(t={});var r={};if(null==e||"object"!=typeof e)return r;
vendor: 11,185 bytes, line 1
1var n=t.version||e.v||1,i=t.reportingMode||"request",a=1===n?Kr:co[i],s=Object.keys(e).filter(a),o=t.filter;"function"==typeof o&&(s=s.filter(o));var l="response"===i||"event"===i;l&&!s.includes("ts")&&s.push("ts"),n>1&&!s.includes("v")&&s.push("v");var u=f({},no,t.formatters),d={version:n,reportingMode:i,baseUrl:t.baseUrl};return s.sort().forEach((function(t){var i=e[t],a=u[t];if("function"==typeof a&&(i=a(i,d)),"v"===t){if(1===n)return;i=n}"pr"==t&&1===i||(l&&"ts"===t&&!Xn(i)&&(i=Date.now()),function(e){return"number"==typeof e?Xn(e):null!=e&&""!==e&&!1!==e}(i)&&(function(e){return["ot","sf","st","e","sta"].includes(e)}(t)&&"string"==typeof i&&(i=new Js(i)),r[t]=i))})),r}function qr(e,t,r){return f(e,function(e,t){void 0===t&&(t={});var r={};if(!e)return r;var n=Gr(zr(e,t),null==t?void 0:t.customHeaderMap);return Object.entries(n).reduce((function(e,t){var r=t[0],n=Wr(t[1],{whitespace:!1});return n&&(e[r]=n),e}),r)}(t,r))}function Jr(e,t){if(void 0===t&&(t={}),!e)return"";var r=function(e,t){return void 0===t&&(t={}),e?Wr(zr(e,t),{whitespace:!1}):""}(e,t);return encodeURIComponent(r)}function Qr(e,t,r){var n=function(e,t){return void 0===t&&(t={}),e?"CMCD="+Jr(e,t):""}(t,r);if(!n)return e;if(ho.test(e))return e.replace(ho,n);var i=e.includes("?")?"&":"?";return""+e+i+n}function Xr(e,t,r,n){e&&Object.keys(t).forEach((function(i){var a=e.filter((function(e){return e.groupId===i})).map((function(e){var a=f({},e);return a.details=void 0,a.attrs=new ba(a.attrs),a.url=a.attrs.URI=Zr(e.url,e.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",r),a.groupId=a.attrs["GROUP-ID"]=t[i],a.attrs["PATHWAY-ID"]=n,a}));e.push.apply(e,a)}))}function Zr(e,t,r,n){var i,a=n.HOST,s=n.PARAMS,o=n[r];t&&(i=null==o?void 0:o[t])&&(e=i);var l=new self.URL(e);return a&&!i&&(l.host=a),s&&Object.keys(s).sort().forEach((function(e){e&&l.searchParams.set(e,s[e])})),l.href}function $r(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(null===e.keyId)throw new Error("keyId is null");return b(e.keyId)}function en(e,t){return e.keyId&&t.mediaKeysSession.keyStatuses.has(e.keyId)?t.mediaKeysSession.keyStatuses.get(e.keyId):e.matches(t.decryptdata)?t.keyStatus:void 0}function tn(e,t){var r="output-restricted"===e;return new go({type:ei.KEY_SYSTEM_ERROR,details:r?ti.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:ti.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!1,decryptdata:t},r?"HDCP level output restricted":'key status changed to "'+e+'"')}function rn(e,t){var r;try{r=new Event("addtrack")}catch(e){(r=document.createEvent("Event")).initEvent("addtrack",!1,!1)}r.track=e,t.dispatchEvent(r)}function nn(e,t){var r=e.mode;if("disabled"===r&&(e.mode="hidden"),e.cues&&!e.cues.getCueById(t.id))try{if(e.addCue(t),!e.cues.getCueById(t.id))throw new Error("addCue is failed for: "+t)}catch(r){gi.debug("[texttrack-utils]: "+r);try{var n=new self.TextTrackCue(t.startTime,t.endTime,t.text);n.id=t.id,e.addCue(n)}catch(e){gi.debug("[texttrack-utils]: Legacy TextTrackCue fallback failed: "+e)}}"disabled"===r&&(e.mode=r)}function an(e,t){var r=e.mode;if("disabled"===r&&(e.mode="hidden"),e.cues)for(var n=e.cues.length;n--;)t&&e.cues[n].removeEventListener("enter",t),e.removeCue(e.cues[n]);"disabled"===r&&(e.mode=r)}function sn(e,t,r,n){var i=e.mode;if("disabled"===i&&(e.mode="hidden"),e.cues&&e.cues.length>0)for(var a=function(e,t,r){var n=[],i=function(e,t){if(t<=e[0].startTime)return 0;var r=e.length-1;if(t>e[r].endTime)return-1;var n,i=0,a=r;for(;i<=a;)if(n=Math.floor((a+i)/2),t<e[n].startTime)a=n-1;else{if(!(t>e[n].startTime&&i<r))return n;i=n+1}return e[i].startTime-t<t-e[a].startTime?i:a}(e,t);if(i>-1)for(var a=i,s=e.length;a<s;a++){var o=e[a];if(o.startTime>=t&&o.endTime<=r)n.push(o);else if(o.startTime>r)return n}return n}(e.cues,t,r),s=0;s<a.length;s++)n&&!n(a[s])||e.removeCue(a[s]);"disabled"===i&&(e.mode=i)}function on(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];"subtitles"!==n.kind&&"captions"!==n.kind||!n.label||t.push(e[r])}return t}function ln(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return(t>>>0).toString()}function un(e,t,r){return e.identifier+"-"+(r+1)+"-"+ln(t)}function dn(e,t){return e-t.start<t.duration/2&&!(Math.abs(e-(t.start+t.duration))<.025)?t.start:t.start+t.duration}function cn(e,t,r){var n=new self.URL(e,r);return"data:"!==n.protocol&&n.searchParams.set("_HLS_primary_id",t),n}function hn(e,t){for(;null!=(r=e.assetList[++t])&&r.error;)var r;return t}function fn(e){var t=e.timelineStart,r=e.duration||0;return'["'+e.identifier+'" '+t.toFixed(2)+"-"+(t+r).toFixed(2)+"]"}function mn(e){return"["+(e.event?'"'+e.event.identifier+'"':"primary")+": "+e.start.toFixed(2)+"-"+e.end.toFixed(2)+"]"}function pn(e){var t;null==e||null==(t=e.play())||t.catch((function(){}))}function gn(e,t){return"["+e+"] Advancing timeline position to "+t}function _n(e,t,r){r.a=e,r.b=t}function vn(e){function t(e,t,r,n){return 3600*(0|e)+60*(0|t)+(0|r)+parseFloat(n||0)}var r=e.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return r?parseFloat(r[2])>59?t(r[2],r[3],0,r[4]):t(r[1],r[2],r[3],r[4]):null}function yn(e,t,r,n){var i=n?e.split(n):[e];for(var a in i)if("string"==typeof i[a]){var s=i[a].split(r);if(2===s.length)t(s[0],s[1])}}function Ln(e,t,r){function n(){var t=vn(e);if(null===t)throw new Error("Malformed timestamp: "+a);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function i(){e=e.replace(/^\s+/,"")}var a=e;if(i(),t.startTime=n(),i(),"--\x3e"!==e.slice(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+a);e=e.slice(3),i(),t.endTime=n(),i(),function(e,t){var n=new Go;yn(e,(function(e,t){var i;switch(e){case"region":for(var a=r.length-1;a>=0;a--)if(r[a].id===t){n.set(e,r[a].region);break}break;case"vertical":n.alt(e,t,["rl","lr"]);break;case"line":i=t.split(","),n.integer(e,i[0]),n.percent(e,i[0])&&n.set("snapToLines",!1),n.alt(e,i[0],["auto"]),2===i.length&&n.alt("lineAlign",i[1],["start",Ko,"end"]);break;case"position":i=t.split(","),n.percent(e,i[0]),2===i.length&&n.alt("positionAlign",i[1],["start",Ko,"end","line-left","line-right","auto"]);break;case"size":n.percent(e,t);break;case"align":n.alt(e,t,["start",Ko,"end","left","right"])}}),/:/,/\s/),t.region=n.get("region",null),t.vertical=n.get("vertical","");var i=n.get("line","auto");"auto"===i&&-1===Vo.line&&(i=-1),t.line=i,t.lineAlign=n.get("lineAlign","start"),t.snapToLines=n.get("snapToLines",!0),t.size=n.get("size",100),t.align=n.get("align",Ko);var a=n.get("position","auto");"auto"===a&&50===Vo.position&&(a="start"===t.align||"left"===t.align?0:"end"===t.align||"right"===t.align?100:50),t.position=a}(e,t)}function bn(e){return e.replace(/<br(?: \/)?>/gi,"\n")}function Tn(e,t,r){return ln(e.toString())+ln(t.toString())+ln(r)}function Mn(e,t,r,n,i,a,s){var o,l,u=new zo,d=L(new Uint8Array(e)).trim().replace(qo,"\n").split("\n"),c=[],h=t?(void 0===(o=t.timescale)&&(o=1),_r(t.baseTime,9e4,1/o)):0,f="00:00.000",m=0,p=0,g=!0;u.oncue=function(e){var a=r[n],s=r.ccOffset,o=(m-h)/9e4;if(null!=a&&a.new&&(void 0!==p?s=r.ccOffset=a.start:function(e,t,r){var n=e[t],i=e[n.prevCC];if(!i||!i.new&&n.new)return e.ccOffset=e.presentationOffset=n.start,void(n.new=!1);for(;null!=(a=i)&&a.new;){var a;e.ccOffset+=n.start-i.start,n.new=!1,i=e[(n=i).prevCC]}e.presentationOffset=r}(r,n,o)),o){if(!t)return void(l=new Error("Missing initPTS for VTT MPEGTS"));s=o-r.presentationOffset}var u=e.endTime-e.startTime,d=br(9e4*(e.startTime+s-p),9e4*i)/9e4;e.startTime=Math.max(d,0),e.endTime=Math.max(d+u,0);var f=e.text.trim();e.text=decodeURIComponent(encodeURIComponent(f)),e.id||(e.id=Tn(e.startTime,e.endTime,f)),e.endTime>0&&c.push(e)},u.onparsingerror=function(e){l=e},u.onflush=function(){l?s(l):a(c)},d.forEach((function(e){if(g){if(Jo(e,"X-TIMESTAMP-MAP=")){g=!1,e.slice(16).split(",").forEach((function(e){Jo(e,"LOCAL:")?f=e.slice(6):Jo(e,"MPEGTS:")&&(m=parseInt(e.slice(7)))}));try{p=function(e){var t=parseInt(e.slice(-3)),r=parseInt(e.slice(-6,-4)),n=parseInt(e.slice(-9,-7)),i=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!(Xn(t)&&Xn(r)&&Xn(n)&&Xn(i)))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+e);return t+=1e3*r,t+=6e4*n,t+=36e5*i}(f)/1e3}catch(e){l=e}return}""===e&&(g=!1)}u.parse(e+"\n")})),u.flush()}function kn(e,t,r,n){var i=x(new Uint8Array(e),["mdat"]);if(0!==i.length){var a,s,o=i.map((function(e){return L(e)})),l=(void 0===(a=t.timescale)&&(a=1),void 0===s&&(s=!1),_r(t.baseTime,1,1/a,s));try{o.forEach((function(e){return r(function(e,t){var r=(new DOMParser).parseFromString(e,"text/xml").getElementsByTagName("tt")[0];if(!r)throw new Error("Invalid ttml");var n={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},i=Object.keys(n).reduce((function(e,t){return e[t]=r.getAttribute("ttp:"+t)||n[t],e}),{}),a="preserve"!==r.getAttribute("xml:space"),s=wn(Sn(r,"styling","style")),o=wn(Sn(r,"layout","region")),l=Sn(r,"body","[begin]");return[].map.call(l,(function(e){var r=function e(t,r){return[].slice.call(t.childNodes).reduce((function(t,n,i){var a;return"br"===n.nodeName&&i?t+"\n":null!=(a=n.childNodes)&&a.length?e(n,r):r?t+n.textContent.trim().replace(/\s+/g," "):t+n.textContent}),"")}(e,a);if(!r||!e.hasAttribute("begin"))return null;var n=An(e.getAttribute("begin"),i),l=An(e.getAttribute("dur"),i),u=An(e.getAttribute("end"),i);if(null===n)throw En(e);if(null===u){if(null===l)throw En(e);u=n+l}var d=new Bo(n-t,u-t,r);d.id=Tn(d.startTime,d.endTime,d.text);var c=function(e,t,r){var n="http://www.w3.org/ns/ttml#styling",i=null,a=null!=e&&e.hasAttribute("style")?e.getAttribute("style"):null;a&&r.hasOwnProperty(a)&&(i=r[a]);return["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"].reduce((function(r,a){var s=Dn(t,n,a)||Dn(e,n,a)||Dn(i,n,a);return s&&(r[a]=s),r}),{})}(o[e.getAttribute("region")],s[e.getAttribute("style")],s),h=c.textAlign;if(h){var m=Zo[h];m&&(d.lineAlign=m),d.align=h}return f(d,c),d})).filter((function(e){return null!==e}))}(e,l))}))}catch(e){n(e)}}else n(new Error("Could not parse IMSC1 mdat"))}function Sn(e,t,r){var n=e.getElementsByTagName(t)[0];return n?[].slice.call(n.querySelectorAll(r)):[]}function wn(e){return e.reduce((function(e,t){var r=t.getAttribute("xml:id");return r&&(e[r]=t),e}),{})}function Dn(e,t,r){return e&&e.hasAttributeNS(t,r)?e.getAttributeNS(t,r):null}function En(e){return new Error("Could not parse ttml timestamp "+e)}function An(e,t){if(!e)return null;var r=vn(e);return null===r&&(Qo.test(e)?r=function(e,t){var r=Qo.exec(e);return 3600*(0|r[1])+60*(0|r[2])+(0|r[3])+((0|r[4])+(0|r[5])/t.subFrameRate)/t.frameRate}(e,t):Xo.test(e)&&(r=function(e,t){var r=Xo.exec(e),n=Number(r[1]);switch(r[2]){case"h":return 3600*n;case"m":return 60*n;case"ms":return 1e3*n;case"f":return n/t.frameRate;case"t":return n/t.tickRate}return n}(e,t))),r}function In(e){return e.characteristics&&/transcribes-spoken-dialog/gi.test(e.characteristics)&&/describes-music-and-sound/gi.test(e.characteristics)?"captions":"subtitles"}function xn(e,t){return!!e&&e.kind===In(t)&&Ar(t,e)}function Cn(e){var t=e.get("Content-Range");if(t){var r=function(e){var t=nl.exec(e);if(t)return parseInt(t[2])-parseInt(t[1])+1}(t);if(Xn(r))return r}var n=e.get("Content-Length");if(n)return parseInt(n)}
vendor: 8,564 bytes, line 1
1function Rn(e,t){return new self.Request(e.url,t)}function Pn(e){return e&&"object"==typeof e?Array.isArray(e)?e.map(Pn):Object.keys(e).reduce((function(t,r){return t[r]=Pn(e[r]),t}),{}):e}function On(e,t){var r=e.loader;r!==il&&r!==ol?(t.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1):function(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(e){}return!1}()&&(e.loader=il,e.progressive=!0,e.enableSoftwareAES=!0,t.log("[config]: Progressive streaming enabled, using FetchLoader"))}function Yn(e,t){var r=Fn(e.main);if(r&&r.start<=t)return r;var n=Fn(e.audio);return n&&n.start<=t?n:null}function Fn(e){if(!e)return null;switch(e.state){case Ha:case Ua:case qa:case Ja:return null}return e.frag}function Nn(e,t){return t.getAppendedFrag(e,oi)||t.getPartialFragment(e)}function jn(){if("undefined"!=typeof self)return self.VTTCue||self.TextTrackCue}function Un(e,t,r,n,i){var a=new e(t,r,"");try{a.value=n,i&&(a.type=i)}catch(s){a=new e(t,r,Bi(i?p({type:i},n):n))}return a}function Hn(e){var t={};e.forEach((function(e){var r=e.groupId||"";e.id=t[r]=t[r]||0,t[r]++}))}function Bn(){return self.SourceBuffer||self.WebKitSourceBuffer}function Wn(){if(!v())return!1;var e=Bn();return!e||e.prototype&&"function"==typeof e.prototype.appendBuffer&&"function"==typeof e.prototype.remove}function Gn(e){if(e.keyFormat!==Da){var t=e.keyId;if(t)return b(t)}return e.uri}function Vn(e){switch(e.type){case ai:return li;case si:return ui;default:return oi}}function Kn(e,t){var r=e.url;return void 0!==r&&0!==r.indexOf("data:")||(r=t.url),r}var zn;r.d(t,"a",(function(){return _l}));var qn,Jn,Qn,Xn=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},Zn=Number.isSafeInteger||function(e){return"number"==typeof e&&Math.abs(e)<=$n},$n=Number.MAX_SAFE_INTEGER||9007199254740991,ei=function(e){return e.NETWORK_ERROR="networkError",e.MEDIA_ERROR="mediaError",e.KEY_SYSTEM_ERROR="keySystemError",e.MUX_ERROR="muxError",e.OTHER_ERROR="otherError",e}({}),ti=function(e){return e.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",e.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",e.KEY_SYSTEM_NO_SESSION="keySystemNoSession",e.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",e.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",e.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",e.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",e.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",e.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",e.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",e.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",e.MANIFEST_LOAD_ERROR="manifestLoadError",e.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",e.MANIFEST_PARSING_ERROR="manifestParsingError",e.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",e.LEVEL_EMPTY_ERROR="levelEmptyError",e.LEVEL_LOAD_ERROR="levelLoadError",e.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",e.LEVEL_PARSING_ERROR="levelParsingError",e.LEVEL_SWITCH_ERROR="levelSwitchError",e.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",e.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",e.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",e.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",e.FRAG_LOAD_ERROR="fragLoadError",e.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",e.FRAG_DECRYPT_ERROR="fragDecryptError",e.FRAG_PARSING_ERROR="fragParsingError",e.FRAG_GAP="fragGap",e.REMUX_ALLOC_ERROR="remuxAllocError",e.KEY_LOAD_ERROR="keyLoadError",e.KEY_LOAD_TIMEOUT="keyLoadTimeOut",e.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",e.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",e.BUFFER_APPEND_ERROR="bufferAppendError",e.BUFFER_APPENDING_ERROR="bufferAppendingError",e.BUFFER_STALLED_ERROR="bufferStalledError",e.BUFFER_FULL_ERROR="bufferFullError",e.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",e.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",e.ASSET_LIST_LOAD_ERROR="assetListLoadError",e.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",e.ASSET_LIST_PARSING_ERROR="assetListParsingError",e.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",e.INTERNAL_EXCEPTION="internalException",e.INTERNAL_ABORTED="aborted",e.ATTACH_MEDIA_ERROR="attachMediaError",e.UNKNOWN="unknown",e}({}),ri=function(e){return e.MEDIA_ATTACHING="hlsMediaAttaching",e.MEDIA_ATTACHED="hlsMediaAttached",e.MEDIA_DETACHING="hlsMediaDetaching",e.MEDIA_DETACHED="hlsMediaDetached",e.MEDIA_ENDED="hlsMediaEnded",e.STALL_RESOLVED="hlsStallResolved",e.BUFFER_RESET="hlsBufferReset",e.BUFFER_CODECS="hlsBufferCodecs",e.BUFFER_CREATED="hlsBufferCreated",e.BUFFER_APPENDING="hlsBufferAppending",e.BUFFER_APPENDED="hlsBufferAppended",e.BUFFER_EOS="hlsBufferEos",e.BUFFERED_TO_END="hlsBufferedToEnd",e.BUFFER_FLUSHING="hlsBufferFlushing",e.BUFFER_FLUSHED="hlsBufferFlushed",e.MANIFEST_LOADING="hlsManifestLoading",e.MANIFEST_LOADED="hlsManifestLoaded",e.MANIFEST_PARSED="hlsManifestParsed",e.LEVEL_SWITCHING="hlsLevelSwitching",e.LEVEL_SWITCHED="hlsLevelSwitched",e.LEVEL_LOADING="hlsLevelLoading",e.LEVEL_LOADED="hlsLevelLoaded",e.LEVEL_UPDATED="hlsLevelUpdated",e.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",e.LEVELS_UPDATED="hlsLevelsUpdated",e.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",e.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",e.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",e.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",e.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",e.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",e.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",e.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",e.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",e.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",e.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",e.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",e.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",e.CUES_PARSED="hlsCuesParsed",e.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",e.INIT_PTS_FOUND="hlsInitPtsFound",e.FRAG_LOADING="hlsFragLoading",e.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",e.FRAG_LOADED="hlsFragLoaded",e.FRAG_DECRYPTED="hlsFragDecrypted",e.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",e.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",e.FRAG_PARSING_METADATA="hlsFragParsingMetadata",e.FRAG_PARSED="hlsFragParsed",e.FRAG_BUFFERED="hlsFragBuffered",e.FRAG_CHANGED="hlsFragChanged",e.FPS_DROP="hlsFpsDrop",e.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",e.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",e.ERROR="hlsError",e.DESTROYING="hlsDestroying",e.KEY_LOADING="hlsKeyLoading",e.KEY_LOADED="hlsKeyLoaded",e.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",e.BACK_BUFFER_REACHED="hlsBackBufferReached",e.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",e.ASSET_LIST_LOADING="hlsAssetListLoading",e.ASSET_LIST_LOADED="hlsAssetListLoaded",e.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",e.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",e.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",e.INTERSTITIAL_STARTED="hlsInterstitialStarted",e.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",e.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",e.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",e.INTERSTITIAL_ENDED="hlsInterstitialEnded",e.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",e.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",e.EVENT_CUE_ENTER="hlsEventCueEnter",e}({}),ni="manifest",ii="level",ai="audioTrack",si="subtitleTrack",oi="main",li="audio",ui="subtitle",di=function(){function e(e,t,r){void 0===t&&(t=0),void 0===r&&(r=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=r}var t=e.prototype;return t.sample=function(e,t){var r=Math.pow(this.alpha_,e);this.estimate_=t*(1-r)+r*this.estimate_,this.totalWeight_+=e},t.getTotalWeight=function(){return this.totalWeight_},t.getEstimate=function(){if(this.alpha_){var e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_},e}(),ci=function(){function e(e,t,r,n){void 0===n&&(n=100),this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_
vendor: 4,593 bytes, line 1
1=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new di(e),this.fast_=new di(t),this.defaultTTFB_=n,this.ttfb_=new di(e)}var t=e.prototype;return t.update=function(e,t){var r=this.slow_,n=this.fast_,i=this.ttfb_;r.halfLife!==e&&(this.slow_=new di(e,r.getEstimate(),r.getTotalWeight())),n.halfLife!==t&&(this.fast_=new di(t,n.getEstimate(),n.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new di(e,i.getEstimate(),i.getTotalWeight()))},t.sample=function(e,t){var r=(e=Math.max(e,this.minDelayMs_))/1e3,n=8*t/r;this.fast_.sample(r,n),this.slow_.sample(r,n)},t.sampleTTFB=function(e){var t=e/1e3,r=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(r,Math.max(e,5))},t.canEstimate=function(){return this.fast_.getTotalWeight()>=this.minWeight_},t.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},t.getEstimateTTFB=function(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_},t.destroy=function(){},c(e,[{key:"defaultEstimate",get:function(){return this.defaultEstimate_}}]),e}(),hi=function(e,t){this.trace=void 0,this.debug=void 0,this.log=void 0,this.warn=void 0,this.info=void 0,this.error=void 0;var r="["+e+"]:";this.trace=fi,this.debug=t.debug.bind(null,r),this.log=t.log.bind(null,r),this.warn=t.warn.bind(null,r),this.info=t.info.bind(null,r),this.error=t.error.bind(null,r)},fi=function(){},mi={trace:fi,debug:fi,log:fi,warn:fi,info:fi,error:fi},pi=g(),gi=pi,_i={exports:{}},vi=(qn||(qn=1,function(e){var t,r,n,i,a;t=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,n=/(?:\/|^)\.(?=\/)/g,i=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,e.exports=a={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)return e;var i=a.parseURL(e);if(!i)throw new Error("Error trying to parse base URL.");return i.path=a.normalizePath(i.path),a.buildURLFromParts(i)}var s=a.parseURL(t);if(!s)throw new Error("Error trying to parse relative URL.");if(s.scheme)return n.alwaysNormalize?(s.path=a.normalizePath(s.path),a.buildURLFromParts(s)):t;var o=a.parseURL(e);if(!o)throw new Error("Error trying to parse base URL.");if(!o.netLoc&&o.path&&"/"!==o.path[0]){var l=r.exec(o.path);o.netLoc=l[1],o.path=l[2]}o.netLoc&&!o.path&&(o.path="/");var u={scheme:o.scheme,netLoc:s.netLoc,path:null,params:s.params,query:s.query,fragment:s.fragment};if(!s.netLoc&&(u.netLoc=o.netLoc,"/"!==s.path[0]))if(s.path){var d=o.path,c=d.substring(0,d.lastIndexOf("/")+1)+s.path;u.path=a.normalizePath(c)}else u.path=o.path,s.params||(u.params=o.params,s.query||(u.query=o.query));return null===u.path&&(u.path=n.alwaysNormalize?a.normalizePath(s.path):s.path),a.buildURLFromParts(u)},parseURL:function(e){var r=t.exec(e);return r?{scheme:r[1]||"",netLoc:r[2]||"",path:r[3]||"",params:r[4]||"",query:r[5]||"",fragment:r[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(n,"");e.length!==(e=e.replace(i,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}}}(_i)),_i.exports),yi=function(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}},Li="audio",bi="video",Ti="audiovideo",Mi=function(){function e(e){this._byteRange=null,this._url=null,this._stats=null,this._streams=null,this.base=void 0,this.relurl=void 0,"string"==typeof e&&(e={url:e}),this.base=e,S(this,"stats")}var t=e.prototype;return t.setByteRange=function(e,t){var r,n=e.split("@",2);r=1===n.length?(null==t?void 0:t.byteRangeEndOffset)||0:parseInt(n[1]),this._byteRange=[r,parseInt(n[0])+r]},t.clearElementaryStreamInfo=function(){var e=this.elementaryStreams;e[Li]=null,e[bi]=null,e[Ti]=null},c(e,[{key:"baseurl",get:function(){return this.base.url}},{key:"byteRange",get:function(){return null===this._byteRange?[]:this._byteRange}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"elementaryStreams",get:function(){var e;null===this._streams&&(this._streams=((e={})[Li]=null,e[bi]=null,e[Ti]=null,e));return this._streams},set:function(e){this._streams=e}},{key:"hasStats",get:function(){return null!==this._stats}}
vendor: 19,854 bytes, line 1
1,{key:"hasStreams",get:function(){return null!==this._streams}},{key:"stats",get:function(){return null===this._stats&&(this._stats=new yi),this._stats},set:function(e){this._stats=e}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=vi.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(e){this._url=e}}]),e}(),ki=function(e){function t(t,r){var n;return(n=e.call(this,r)||this)._decryptdata=null,n._programDateTime=null,n._ref=null,n._bitrate=void 0,n.rawProgramDateTime=null,n.tagList=[],n.duration=0,n.sn=0,n.levelkeys=void 0,n.type=void 0,n.loader=null,n.keyLoader=null,n.level=-1,n.cc=0,n.startPTS=void 0,n.endPTS=void 0,n.startDTS=void 0,n.endDTS=void 0,n.start=0,n.playlistOffset=0,n.deltaPTS=void 0,n.maxStartPTS=void 0,n.minEndPTS=void 0,n.data=void 0,n.bitrateTest=!1,n.title=null,n.initSegment=null,n.endList=void 0,n.gap=void 0,n.urlId=0,n.type=t,n}u(t,e);var r=t.prototype;return r.addStart=function(e){this.setStart(this.start+e)},r.setStart=function(e){this.start=e,this._ref&&(this._ref.start=e)},r.setDuration=function(e){this.duration=e,this._ref&&(this._ref.duration=e)},r.setKeyFormat=function(e){var t=this.levelkeys;if(t){var r,n=t[e];!n||null!=(r=this._decryptdata)&&r.keyId||(this._decryptdata=n.getDecryptData(this.sn,t))}},r.abortRequests=function(){var e,t;null==(e=this.loader)||e.abort(),null==(t=this.keyLoader)||t.abort()},r.setElementaryStreamInfo=function(e,t,r,n,i,a){void 0===a&&(a=!1);var s=this.elementaryStreams,o=s[e];o?(o.startPTS=Math.min(o.startPTS,t),o.endPTS=Math.max(o.endPTS,r),o.startDTS=Math.min(o.startDTS,n),o.endDTS=Math.max(o.endDTS,i)):s[e]={startPTS:t,endPTS:r,startDTS:n,endDTS:i,partial:a}},c(t,[{key:"byteLength",get:function(){if(this.hasStats){var e=this.stats.total;if(e)return e}if(this.byteRange.length){var t=this.byteRange[0],r=this.byteRange[1];if(Xn(t)&&Xn(r))return r-t}return null}},{key:"bitrate",get:function(){return this.byteLength?8*this.byteLength/this.duration:this._bitrate?this._bitrate:null},set:function(e){this._bitrate=e}},{key:"decryptdata",get:function(){var e,t=this.levelkeys;if(!t||t.NONE)return null;if(t.identity)this._decryptdata||(this._decryptdata=t.identity.getDecryptData(this.sn));else if(null==(e=this._decryptdata)||!e.keyId){var r=Object.keys(t);if(1===r.length){var n=this._decryptdata=t[r[0]]||null;n&&(this._decryptdata=n.getDecryptData(this.sn,t))}}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(null===this.programDateTime)return null;var e=Xn(this.duration)?this.duration:0;return this.programDateTime+1e3*e}},{key:"encrypted",get:function(){var e;if(null!=(e=this._decryptdata)&&e.encrypted)return!0;if(this.levelkeys){var t,r=Object.keys(this.levelkeys),n=r.length;if(n>1||1===n&&null!=(t=this.levelkeys[r[0]])&&t.encrypted)return!0}return!1}},{key:"programDateTime",get:function(){return null===this._programDateTime&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime},set:function(e){this._programDateTime=Xn(e)?e:this.rawProgramDateTime=null}},{key:"ref",get:function(){return k(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}}]),t}(Mi),Si=function(e){function t(t,r,n,i,a){var s;(s=e.call(this,n)||this).fragOffset=0,s.duration=0,s.gap=!1,s.independent=!1,s.relurl=void 0,s.fragment=void 0,s.index=void 0,s.duration=t.decimalFloatingPoint("DURATION"),s.gap=t.bool("GAP"),s.independent=t.bool("INDEPENDENT"),s.relurl=t.enumeratedString("URI"),s.fragment=r,s.index=i;var o=t.enumeratedString("BYTERANGE");return o&&s.setByteRange(o,a),a&&(s.fragOffset=a.fragOffset+a.duration),s}return u(t,e),c(t,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var e=this.elementaryStreams;return!!(e.audio||e.video||e.audiovideo)}}]),t}(Mi),wi=Math.pow(2,32)-1,Di=[].push,Ei={video:1,audio:2,id3:3,text:4},Ai=function(){return/\(Windows.+Firefox\//i.test(navigator.userAgent)},Ii={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,dav1:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}},xi={},Ci=/flac|opus|mp4a\.40\.34/i,Ri={supported:!1,smooth:!1,powerEfficient:!1},Pi={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]},Oi=["NONE","TYPE-0","TYPE-1",null],Yi=["SDR","PQ","HLG"],Fi="",Ni="YES",ji="v2",Ui=function(){function e(e,t,r){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=r}return e.prototype.addDirectives=function(e){var t=new self.URL(e);return void 0!==this.msn&&t.searchParams.set("_HLS_msn",this.msn.toString()),void 0!==this.part&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.href},e}(),Hi=function(){function e(e){if(this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.supplemental=void 0,this.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[e.url],this._attrs=[e.attrs],this.bitrate=e.bitrate,e.details&&(this.details=e.details),this.id=e.id||0,this.name=e.name,this.width=e.width||0,this.height=e.height||0,this.frameRate=e.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=e.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,this.codecSet=[e.videoCodec,e.audioCodec].filter((function(e){return!!e})).map((function(e){return e.substring(0,4)})).join(","),"supplemental"in e){var t;this.supplemental=e.supplemental;var r=null==(t=e.supplemental)?void 0:t.videoCodec;r&&r!==e.videoCodec&&(this.codecSet+=","+r.substring(0,4))}this.addGroupId("audio",e.attrs.AUDIO),this.addGroupId("text",e.attrs.SUBTITLES)}var t=e.prototype;return t.hasAudioGroup=function(e){return he(this._audioGroups,e)},t.hasSubtitleGroup=function(e){return he(this._subtitleGroups,e)},t.addGroupId=function(e,t){if(t)if("audio"===e){var r=this._audioGroups;r||(r=this._audioGroups=[]),-1===r.indexOf(t)&&r.push(t)}else if("text"===e){var n=this._subtitleGroups;n||(n=this._subtitleGroups=[]),-1===n.indexOf(t)&&n.push(t)}},t.addFallback=function(){},c(e,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"averageBitrate",get:function(){return this._avgBitrate||this.realBitrate||this.bitrate}},{key:"attrs",get:function(){return this._attrs[0]}},{key:"codecs",get:function(){return this.attrs.CODECS||""}},{key:"pathwayId",get:function(){return this.attrs["PATHWAY-ID"]||"."}},{key:"videoRange",get:function(){return this.attrs["VIDEO-RANGE"]||"SDR"}},{key:"score",get:function(){return this.attrs.optionalFloat("SCORE",0)}},{key:"uri",get:function(){return this.url[0]||""}},{key:"audioGroups",get:function(){return this._audioGroups}},{key:"subtitleGroups",get:function(){return this._subtitleGroups}},{key:"urlId",get:function(){return 0},set:function(){}},{key:"audioGroupIds",get:function(){return this.audioGroups?[this.audioGroupId]:void 0}},{key:"textGroupIds",get:function(){return this.subtitleGroups?[this.textGroupId]:void 0}},{key:"audioGroupId",get:function(){var e;return null==(e=this.audioGroups)?void 0:e[0]}},{key:"textGroupId",get:function(){var e;return null==(e=this.subtitleGroups)?void 0:e[0]}}]),e}(),Bi=function(e,t){return JSON.stringify(e,function(e){var t=new WeakSet;return function(r,n){if(e&&(n=e(r,n)),"object"==typeof n&&null!==n){if(t.has(n))return;t.add(n)}return n}}(t))},Wi=function(e){function t(t){var r;return(r=e.call(this,"abr",t.logger)||this).hls=void 0,r.lastLevelLoadSec=0,r.lastLoadedFragLevel=-1,r.firstSelection=-1,r._nextAutoLevel=-1,r.nextAutoLevelKey="",r.audioTracksByGroup=null,r.codecTiers=null,r.timer=-1,r.fragCurrent=null,r.partCurrent=null,r.bitrateTestDelay=0,r.rebufferNotice=-1,r.supportedCache={},r.bwEstimator=void 0,r._abandonRulesCheck=function(e){var t,n=l(r),i=n.fragCurrent,a=n.partCurrent,s=n.hls,o=s.autoLevelEnabled,u=s.media;if(i&&u){var d=performance.now(),c=a?a.stats:i.stats,h=a?a.duration:i.duration,f=d-c.loading.start,m=s.minAutoLevel,p=i.level,g=r._nextAutoLevel;if(c.aborted||c.loaded&&c.loaded===c.total||p<=m)return r.clearTimer(),void(r._nextAutoLevel=-1);if(o){var _=g>-1&&g!==p,v=!!e||_;if(v||!u.paused&&u.playbackRate&&u.readyState){var y=s.mainForwardBufferInfo;if(v||null!==y){var L=r.bwEstimator.getEstimateTTFB(),b=Math.abs(u.playbackRate);if(!(f<=Math.max(L,h/(2*b)*1e3))){var T=y?y.len/b:0,M=c.loading.first?c.loading.first-c.loading.start:-1,k=c.loaded&&M>-1,S=r.getBwEstimate(),w=s.levels,D=Math.max(c.loaded,Math.round(h*(i.bitrate||w[p].averageBitrate)/8)),E=k?f-M:f;E<1&&k&&(E=Math.min(f,8*c.loaded/S));var A=k?1e3*c.loaded/E:0,I=L/1e3,x=A?(D-c.loaded)/A:8*D/S+I;if(!(x<=T)){var C,R=A?8*A:S,P=!0===(null==(t=(null==e?void 0:e.details)||r.hls.latestLevelDetails)?void 0:t.live),O=r.hls.config.abrBandWidthUpFactor,Y=Number.POSITIVE_INFINITY;for(C=p-1;C>m;C--){if((Y=r.getTimeToLoadFrag(I,R,h*w[C].maxBitrate,!w[C].details||P))<Math.min(T,h+I))break}if(!(Y>=x||Y>10*h)){k?r.bwEstimator.sample(f-Math.min(L,M),c.loaded):r.bwEstimator.sampleTTFB(f);var F=w[C].maxBitrate;r.getBwEstimate()*O>F&&r.resetEstimator(F);var N=r.findBestLevel(F,m,C,0,T,1,1);N>-1&&(C=N),r.warn("Fragment "+i.sn+(a?" part "+a.index:"")+" of level "+p+" is loading too slowly;\n      Fragment duration: "+i.duration.toFixed(3)+"\n      Time to underbuffer: "+T.toFixed(3)+" s\n      Estimated load time for current fragment: "+x.toFixed(3)+" s\n      Estimated load time for down switch fragment: "+Y.toFixed(3)+" s\n      TTFB estimate: "+(0|M)+" ms\n      Current BW estimate: "+(Xn(S)?0|S:"Unknown")+" bps\n      New BW estimate: "+(0|r.getBwEstimate())+" bps\n      Switching to level "+C+" @ "+(0|F)+" bps"),s.nextLoadLevel=s.nextAutoLevel=C,r.clearTimer();var j=function(){if(r.clearTimer(),r.fragCurrent===i&&r.hls.loadLevel===C&&C>0){var e=r.getStarvationDelay();if(r.warn("Aborting inflight request "+(C>0?"and switching down":"")+"\n      Fragment duration: "+i.duration.toFixed(3)+" s\n      Time to underbuffer: "+e.toFixed(3)+" s"),i.abortRequests(),r.fragCurrent=r.partCurrent=null,C>m){var t=r.findBestLevel(r.hls.levels[m].bitrate,m,C,0,e,1,1);-1===t&&(t=m),r.hls.nextLoadLevel=r.hls.nextAutoLevel=t,r.resetEstimator(r.hls.levels[t].bitrate)}}};_||x>2*Y?j():r.timer=self.setInterval(j,1e3*Y),s.trigger(ri.FRAG_LOAD_EMERGENCY_ABORTED,{frag:i,part:a,stats:c})}}}}}}}},r.hls=t,r.bwEstimator=r.initEstimator(),r.registerListeners(),r}u(t,e);var r=t.prototype;return r.resetEstimator=function(e){e&&(this.log("setting initial bwe to "+e),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator()},r.initEstimator=function(){var e=this.hls.config;return new ci(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)},r.registerListeners=function(){var e=this.hls;e.on(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ri.FRAG_LOADING,this.onFragLoading,this),e.on(ri.FRAG_LOADED,this.onFragLoaded,this),e.on(ri.FRAG_BUFFERED,this.onFragBuffered,this),e.on(ri.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(ri.LEVEL_LOADED,this.onLevelLoaded,this),e.on(ri.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(ri.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(ri.ERROR,this.onError,this)},r.unregisterListeners=function(){var e=this.hls;e&&(e.off(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ri.FRAG_LOADING,this.onFragLoading,this),e.off(ri.FRAG_LOADED,this.onFragLoaded,this),e.off(ri.FRAG_BUFFERED,this.onFragBuffered,this),e.off(ri.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(ri.LEVEL_LOADED,this.onLevelLoaded,this),e.off(ri.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(ri.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(ri.ERROR,this.onError,this))},r.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=this.supportedCache=null,this.fragCurrent=this.partCurrent=null},r.onManifestLoading=function(){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.supportedCache={},this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()},r.onLevelsUpdated=function(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null},r.onMaxAutoLevelUpdated=function(){this.firstSelection=-1,this.nextAutoLevelKey=""},r.onFragLoading=function(e,t){var r=t.frag;if(!this.ignoreFragment(r)){var n;if(!r.bitrateTest)this.fragCurrent=r,this.partCurrent=null!=(n=t.part)?n:null;this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}},r.onLevelSwitching=function(){this.clearTimer()},r.onError=function(e,t){if(!t.fatal)switch(t.details){case ti.BUFFER_ADD_CODEC_ERROR:case ti.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case ti.FRAG_LOAD_TIMEOUT:var r=t.frag,n=this.fragCurrent,i=this.partCurrent;if(r&&n&&r.sn===n.sn&&r.level===n.level){var a=performance.now(),s=i?i.stats:r.stats,o=a-s.loading.start,l=s.loading.first?s.loading.first-s.loading.start:-1;if(s.loaded&&l>-1){var u=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(o-Math.min(u,l),s.loaded)}else this.bwEstimator.sampleTTFB(o)}}},r.getTimeToLoadFrag=function(e,t,r,n){return e+r/t+(n?e+this.lastLevelLoadSec:0)},r.onLevelLoaded=function(e,t){var r=this.hls.config,n=t.stats.loading,i=n.end-n.first;Xn(i)&&(this.lastLevelLoadSec=i/1e3),t.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(t.levelInfo)},r.onFragLoaded=function(e,t){var r=t.frag,n=t.part,i=n?n.stats:r.stats;if(r.type===oi&&this.bwEstimator.sampleTTFB(i.loading.first-i.loading.start),!this.ignoreFragment(r)){if(this.clearTimer(),r.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){var a=this.hls.levels[r.level],s=(a.loaded?a.loaded.bytes:0)+i.loaded,o=(a.loaded?a.loaded.duration:0)+(n?n.duration:r.duration);a.loaded={bytes:s,duration:o},a.realBitrate=Math.round(8*s/o)}if(r.bitrateTest)this.onFragBuffered(ri.FRAG_BUFFERED,{stats:i,frag:r,part:n,id:r.type}),r.bitrateTest=!1;else this.lastLoadedFragLevel=r.level}},r.onFragBuffered=function(e,t){var r=t.frag,n=t.part,i=null!=n&&n.stats.loaded?n.stats:r.stats;if(!i.aborted&&!this.ignoreFragment(r)){var a=i.parsing.end-i.loading.start-Math.min(i.loading.first-i.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(a,i.loaded),i.bwEstimate=this.getBwEstimate(),this.bitrateTestDelay=r.bitrateTest?a/1e3:0}},r.ignoreFragment=function(e){return e.type!==oi||"initSegment"===e.sn},r.clearTimer=function(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)},r.getAutoLevelKey=function(){return this.getBwEstimate()+"_"+this.getStarvationDelay().toFixed(2)},r.getNextABRAutoLevel=function(){var e=this.fragCurrent,t=this.partCurrent,r=this.hls;if(r.levels.length<=1)return r.loadLevel;var n=r.maxAutoLevel,i=r.config,a=r.minAutoLevel,s=t?t.duration:e?e.duration:0,o=this.getBwEstimate(),l=this.getStarvationDelay(),u=i.abrBandWidthFactor,d=i.abrBandWidthUpFactor;if(l){var c=this.findBestLevel(o,a,n,l,0,u,d);if(c>=0)return this.rebufferNotice=-1,c}var h=s?Math.min(s,i.maxStarvationDelay):i.maxStarvationDelay;if(!l){var f=this.bitrateTestDelay;if(f)h=(s?Math.min(s,i.maxLoadingDelay):i.maxLoadingDelay)-f,this.info("bitrate test took "+Math.round(1e3*f)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*h)+" ms"),u=d=1}var m=this.findBestLevel(o,a,n,l,h,u,d);if(this.rebufferNotice!==m&&(this.rebufferNotice=m,this.info((l?"rebuffering expected":"buffer is empty")+", optimal quality level "+m)),m>-1)return m;var p=r.levels[a],g=r.loadLevelObj;return g&&(null==p?void 0:p.bitrate)<g.bitrate?a:r.loadLevel},r.getStarvationDelay=function(){var e=this.hls,t=e.media;if(!t)return 1/0;var r=t&&0!==t.playbackRate?Math.abs(t.playbackRate):1,n=e.mainForwardBufferInfo;return(n?n.len:0)/r},r.getBwEstimate=function(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate},r.findBestLevel=function(e,t,r,n,i,a,s){var o,l=this,u=n+i,d=this.lastLoadedFragLevel,c=-1===d?this.hls.firstLevel:d,h=this.fragCurrent,f=this.partCurrent,m=this.hls,p=m.levels,g=m.loadLevel,_=m.config;if(1===p.length)return 0;var v,y=p[c],L=!(null==(o=this.hls.latestLevelDetails)||!o.live),b=-1===g||-1===d,T="SDR",M=(null==y?void 0:y.frameRate)||0,k=_.audioPreference,S=_.videoPreference,w=this.audioTracksByGroup||(this.audioTracksByGroup=pe(m.allAudioTracks)),D=-1;if(b){if(-1!==this.firstSelection)return this.firstSelection;var E=function(e,t,r,n,i){for(var a=Object.keys(e),s=null==n?void 0:n.channels,o=null==n?void 0:n.audioCodec,l=null==i?void 0:i.videoCodec,u=s&&2===parseInt(s),d=!1,c=!1,h=1/0,f=1/0,m=1/0,p=1/0,g=0,_=[],v=fe(t,i),y=v.preferHDR,L=v.allowedVideoRanges,b=function(t){var r=e[a[t]];d||(d=r.channels[2]>0),h=Math.min(h,r.minHeight),f=Math.min(f,r.minFramerate),m=Math.min(m,r.minBitrate),L.filter((function(e){return r.videoRanges[e]>0})).length>0&&(c=!0)},T=a.length;T--;)b(T);h=Xn(h)?h:0,f=Xn(f)?f:0;var M=Math.max(1080,h),k=Math.max(30,f);m=Xn(m)?m:r,r=Math.max(m,r),c||(t=void 0);var S=a.length>1;return{codecSet:a.reduce((function(t,n){var i=e[n];if(n===t)return t;if(_=c?L.filter((function(e){return i.videoRanges[e]>0})):[],S){if(i.minBitrate>r)return me(n,"min bitrate of "+i.minBitrate+" > current estimate of "+r),t;if(!i.hasDefaultAudio)return me(n,"no renditions with default or auto-select sound found"),t;if(o&&n.indexOf(o.substring(0,4))%5!=0)return me(n,'audio codec preference "'+o+'" not found'),t;if(s&&!u){if(!i.channels[s])return me(n,"no renditions with "+s+" channel sound found (channels options: "+Object.keys(i.channels)+")"),t}else if((!o||u)&&d&&0===i.channels[2])return me(n,"no renditions with stereo sound found"),t;if(i.minHeight>M)return me(n,"min resolution of "+i.minHeight+" > maximum of "+M),t;if(i.minFramerate>k)return me(n,"min framerate of "+i.minFramerate+" > maximum of "+k),t;if(!_.some((function(e){return i.videoRanges[e]>0})))return me(n,"no variants with VIDEO-RANGE of "+Bi(_)+" found"),t;if(l&&n.indexOf(l.substring(0,4))%5!=0)return me(n,'video codec preference "'+l+'" not found'),t;if(i.maxScore<g)return me(n,"max score of "+i.maxScore+" < selected max of "+g),t}return t&&(ee(n)>=ee(t)||i.fragmentError>e[t].fragmentError)?t:(p=i.minIndex,g=i.maxScore,n)}),void 0),videoRanges:_,preferHDR:y,minFramerate:f,minBitrate:m,minIndex:p}}(this.codecTiers||(this.codecTiers=function(e,t,r,n){return e.slice(r,n+1).reduce((function(e,r,n){if(!r.codecSet)return e;var i=r.audioGroups,a=e[r.codecSet];a||(e[r.codecSet]=a={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:n,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!i,fragmentError:0}
vendor: 7,953 bytes, line 1
1),a.minBitrate=Math.min(a.minBitrate,r.bitrate);var s=Math.min(r.height,r.width);return a.minHeight=Math.min(a.minHeight,s),a.minFramerate=Math.min(a.minFramerate,r.frameRate),a.minIndex=Math.min(a.minIndex,n),a.maxScore=Math.max(a.maxScore,r.score),a.fragmentError+=r.fragmentError,a.videoRanges[r.videoRange]=(a.videoRanges[r.videoRange]||0)+1,i&&i.forEach((function(e){if(e){var r=t.groups[e];r&&(a.hasDefaultAudio=a.hasDefaultAudio||t.hasDefaultAudio?r.hasDefault:r.hasAutoSelect||!t.hasDefaultAudio&&!t.hasAutoSelectAudio,Object.keys(r.channels).forEach((function(e){a.channels[e]=(a.channels[e]||0)+r.channels[e]})))}})),e}),{})}(p,w,t,r)),T,e,k,S),A=E.videoRanges;D=E.minIndex,v=E.codecSet,T=E.preferHDR?A[A.length-1]:A[0],M=E.minFramerate,e=Math.max(e,E.minBitrate),this.log("picked start tier "+Bi(E))}else v=null==y?void 0:y.codecSet,T=null==y?void 0:y.videoRange;for(var I=f?f.duration:h?h.duration:0,x=this.bwEstimator.getEstimateTTFB()/1e3,C=[],R=function(t){var o=p[t],h=t>c;if(!o)return"continue";if(_.useMediaCapabilities&&!o.supportedResult&&!o.supportedPromise){var m=navigator.mediaCapabilities;"function"==typeof(null==m?void 0:m.decodingInfo)&&function(e,t,r,n,i,a){var s=e.videoCodec,o=e.audioCodec?e.audioGroups:null,l=null==a?void 0:a.audioCodec,u=null==a?void 0:a.channels,d=u?parseInt(u):l?1/0:2,c=null;if(null!=o&&o.length)try{c=1===o.length&&o[0]?t.groups[o[0]].channels:o.reduce((function(e,r){if(r){var n=t.groups[r];if(!n)throw new Error("Audio track group "+r+" not found");Object.keys(n.channels).forEach((function(t){e[t]=(e[t]||0)+n.channels[t]}))}return e}),{2:0})}catch(e){return!0}return void 0!==s&&(s.split(",").some((function(e){return W(e)}))||e.width>1920&&e.height>1088||e.height>1920&&e.width>1088||e.frameRate>Math.max(n,30)||"SDR"!==e.videoRange&&e.videoRange!==r||e.bitrate>Math.max(i,8e6))||!!c&&Xn(d)&&Object.keys(c).some((function(e){return parseInt(e)>d}))}(o,w,T,M,e,k)?(o.supportedPromise=le(o,w,m,l.supportedCache),o.supportedPromise.then((function(e){if(l.hls){o.supportedResult=e;var t=l.hls.levels,r=t.indexOf(o);e.error?l.warn('MediaCapabilities decodingInfo error: "'+e.error+'" for level '+r+" "+Bi(e)):e.supported?e.decodingInfoResults.some((function(e){return!1===e.smooth||!1===e.powerEfficient}))&&l.log("MediaCapabilities decodingInfo for level "+r+" not smooth or powerEfficient: "+Bi(e)):(l.warn("Unsupported MediaCapabilities decodingInfo result for level "+r+" "+Bi(e)),r>-1&&t.length>1&&(l.log("Removing unsupported level "+r),l.hls.removeLevel(r),-1===l.hls.loadLevel&&(l.hls.nextLoadLevel=0)))}})).catch((function(e){l.warn("Error handling MediaCapabilities decodingInfo: "+e)}))):o.supportedResult=Pi}if((v&&o.codecSet!==v||T&&o.videoRange!==T||h&&M>o.frameRate||!h&&M>0&&M<o.frameRate||null!=(O=o.supportedResult)&&null!=(O=O.decodingInfoResults)&&O.some((function(e){return!1===e.smooth})))&&(!b||t!==D))return C.push(t),"continue";var y=o.details,S=(f?null==y?void 0:y.partTarget:null==y?void 0:y.averagetargetduration)||I,E=void 0,A=I&&n>=2*I&&0===i?o.averageBitrate:o.maxBitrate,R=l.getTimeToLoadFrag(x,E=h?s*e:a*e,A*S,void 0===y);if(E>=A&&(t===d||0===o.loadError&&0===o.fragmentError)&&(R<=x||!Xn(R)||L&&!l.bitrateTestDelay||R<u)){var P=l.forcedAutoLevel;return t===g||-1!==P&&P===g||(C.length&&l.trace("Skipped level(s) "+C.join(",")+" of "+r+' max with CODECS and VIDEO-RANGE:"'+p[C[0]].codecs+'" '+p[C[0]].videoRange+'; not compatible with "'+v+'" '+T),l.info("switch candidate:"+c+"->"+t+" adjustedbw("+Math.round(E)+")-bitrate="+Math.round(E-A)+" ttfb:"+x.toFixed(1)+" avgDuration:"+S.toFixed(1)+" maxFetchDuration:"+u.toFixed(1)+" fetchDuration:"+R.toFixed(1)+" firstSelection:"+b+" codecSet:"+o.codecSet+" videoRange:"+o.videoRange+" hls.loadLevel:"+g)),b&&(l.firstSelection=t),{v:t}}},P=r;P>=t;P--){var O,Y=R(P);if("continue"!==Y&&"object"==typeof Y)return Y.v}return-1},r.deriveNextAutoLevel=function(e){var t=this.hls,r=t.maxAutoLevel;return Math.min(Math.max(e,t.minAutoLevel),r)},c(t,[{key:"firstAutoLevel",get:function(){var e=this.hls,t=e.maxAutoLevel,r=e.minAutoLevel,n=this.getBwEstimate(),i=this.findBestLevel(n,r,t,0,this.hls.config.maxStarvationDelay,1,1);if(i>-1)return i;var a=this.hls.firstLevel,s=Math.min(Math.max(a,r),t);return this.warn("Could not find best starting auto level. Defaulting to first in playlist "+a+" clamped to "+s),s}},{key:"forcedAutoLevel",get:function(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}},{key:"nextAutoLevel",get:function(){var e=this.forcedAutoLevel,t=this.bwEstimator.canEstimate(),r=this.lastLoadedFragLevel>-1;if(!(-1===e||t&&r&&this.nextAutoLevelKey!==this.getAutoLevelKey()))return e;var n=t&&r?this.getNextABRAutoLevel():this.firstAutoLevel;if(-1!==e){var i=this.hls.levels;if(i.length>Math.max(e,n)&&i[e].loadError<=i[n].loadError)return e}return this._nextAutoLevel=n,this.nextAutoLevelKey=this.getAutoLevelKey(),n},set:function(e){var t=this.deriveNextAutoLevel(e);this._nextAutoLevel!==t&&(this.nextAutoLevelKey="",this._nextAutoLevel=t)}}]),t}(hi),Gi=function(e,t){for(var r=0,n=e.length-1,i=null,a=null;r<=n;){var s=t(a=e[i=(r+n)/2|0]);if(s>0)r=i+1;else{if(!(s<0))return a;n=i-1}}return null},Vi=0,Ki=2,zi=3,qi=5,Ji=0,Qi=1,Xi=2,Zi=4,$i=function(e){function t(t){var r;return(r=e.call(this,"error-controller",t.logger)||this).hls=void 0,r.playlistError=0,r.hls=t,r.registerListeners(),r}u(t,e);var r=t.prototype;return r.registerListeners=function(){var e=this.hls;e.on(ri.ERROR,this.onError,this),e.on(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ri.LEVEL_UPDATED,this.onLevelUpdated,this)},r.unregisterListeners=function(){var e=this.hls;e&&(e.off(ri.ERROR,this.onError,this),e.off(ri.ERROR,this.onErrorOut,this),e.off(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ri.LEVEL_UPDATED,this.onLevelUpdated,this))},r.destroy=function(){this.unregisterListeners(),this.hls=null},r.startLoad=function(){},r.stopLoad=function(){this.playlistError=0},r.getVariantLevelIndex=function(e){return(null==e?void 0:e.type)===oi?e.level:this.getVariantIndex()},r.getVariantIndex=function(){var e,t=this.hls,r=t.currentLevel;return null!=(e=t.loadLevelObj)&&e.details||-1===r?t.loadLevel:r},r.variantHasKey=function(e,t){if(e){var r;if(null!=(r=e.details)&&r.hasKey(t))return!0;var n=e.audioGroups;if(n)return this.hls.allAudioTracks.filter((function(e){return n.indexOf(e.groupId)>=0})).some((function(e){var r;return null==(r=e.details)?void 0:r.hasKey(t)}))}return!1},r.onManifestLoading=function(){this.playlistError=0},r.onLevelUpdated=function(){this.playlistError=0},r.onError=function(e,t){var r;if(!t.fatal){var n=this.hls,i=t.context;switch(t.details){case ti.FRAG_LOAD_ERROR:case ti.FRAG_LOAD_TIMEOUT:case ti.KEY_LOAD_ERROR:case ti.KEY_LOAD_TIMEOUT:return void(t.errorAction=this.getFragRetryOrSwitchAction(t));case ti.FRAG_PARSING_ERROR:if(null!=(r=t.frag)&&r.gap)return void(t.errorAction=Pe());case ti.FRAG_GAP:case ti.FRAG_DECRYPT_ERROR:return t.errorAction=this.getFragRetryOrSwitchAction(t),void(t.errorAction.action=Ki);case ti.LEVEL_EMPTY_ERROR:case ti.LEVEL_PARSING_ERROR:var a,s=t.parent===oi?t.level:n.loadLevel;return void(t.details===ti.LEVEL_EMPTY_ERROR&&null!=(a=t.context)&&null!=(a=a.levelDetails)&&a.live?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,s):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,s)));case ti.LEVEL_LOAD_ERROR:case ti.LEVEL_LOAD_TIMEOUT:return void("number"==typeof(null==i?void 0:i.level)&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.level)));case ti.AUDIO_TRACK_LOAD_ERROR:case ti.AUDIO_TRACK_LOAD_TIMEOUT:case ti.SUBTITLE_LOAD_ERROR:case ti.SUBTITLE_TRACK_LOAD_TIMEOUT:if(i){var o=n.loadLevelObj;if(o&&(i.type===ai&&o.hasAudioGroup(i.groupId)||i.type===si&&o.hasSubtitleGroup(i.groupId)))return t.errorAction=this.getPlaylistRetryOrSwitchAction(t,n.loadLevel),t.errorAction.action=Ki,void(t.errorAction.flags=Qi)}return;case ti.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:return void(t.errorAction={action:Ki,flags:Xi}
vendor: 29,755 bytes, line 1
1);case ti.KEY_SYSTEM_SESSION_UPDATE_FAILED:case ti.KEY_SYSTEM_STATUS_INTERNAL_ERROR:case ti.KEY_SYSTEM_NO_SESSION:return void(t.errorAction={action:Ki,flags:Zi});case ti.BUFFER_ADD_CODEC_ERROR:case ti.REMUX_ALLOC_ERROR:case ti.BUFFER_APPEND_ERROR:var l;if(!t.errorAction)t.errorAction=this.getLevelSwitchAction(t,null!=(l=t.level)?l:n.loadLevel);return;case ti.INTERNAL_EXCEPTION:case ti.BUFFER_APPENDING_ERROR:case ti.BUFFER_FULL_ERROR:case ti.LEVEL_SWITCH_ERROR:case ti.BUFFER_STALLED_ERROR:case ti.BUFFER_SEEK_OVER_HOLE:case ti.BUFFER_NUDGE_ON_STALL:return void(t.errorAction=Pe())}t.type===ei.KEY_SYSTEM_ERROR&&(t.levelRetry=!1,t.errorAction=Pe())}},r.getPlaylistRetryOrSwitchAction=function(e,t){var r=Ae(this.hls.config.playlistLoadPolicy,e),n=this.playlistError++;if(Ce(r,n,we(e),e.response))return{action:qi,flags:Ji,retryConfig:r,retryCount:n};var i=this.getLevelSwitchAction(e,t);return r&&(i.retryConfig=r,i.retryCount=n),i},r.getFragRetryOrSwitchAction=function(e){var t=this.hls,r=this.getVariantLevelIndex(e.frag),n=t.levels[r],i=t.config,a=i.fragLoadPolicy,s=i.keyLoadPolicy,o=Ae(De(e)?s:a,e),l=t.levels.reduce((function(e,t){return e+t.fragmentError}),0);if(n&&(e.details!==ti.FRAG_GAP&&n.fragmentError++,!Ee(e)&&Ce(o,l,we(e),e.response)))return{action:qi,flags:Ji,retryConfig:o,retryCount:l};var u=this.getLevelSwitchAction(e,r);return o&&(u.retryConfig=o,u.retryCount=l),u},r.getLevelSwitchAction=function(e,t){var r=this.hls;null==t&&(t=r.loadLevel);var n=this.hls.levels[t];if(n){var i,a,s=e.details;n.loadError++,s===ti.BUFFER_APPEND_ERROR&&n.fragmentError++;var o=-1,l=r.levels,u=r.loadLevel,d=r.minAutoLevel,c=r.maxAutoLevel;r.autoLevelEnabled||r.config.preserveManualLevelOnError||(r.loadLevel=-1);for(var h=null==(i=e.frag)?void 0:i.type,f=(h===li&&s===ti.FRAG_PARSING_ERROR||"audio"===e.sourceBufferName&&(s===ti.BUFFER_ADD_CODEC_ERROR||s===ti.BUFFER_APPEND_ERROR))&&l.some((function(e){return n.audioCodec!==e.audioCodec})),m="video"===e.sourceBufferName&&(s===ti.BUFFER_ADD_CODEC_ERROR||s===ti.BUFFER_APPEND_ERROR)&&l.some((function(e){return n.codecSet!==e.codecSet&&n.audioCodec===e.audioCodec})),p=null!=(a=e.context)?a:{},g=p.type,_=p.groupId,v=l.length;v--;){var y=(v+u)%l.length;if(y!==u&&y>=d&&y<=c&&0===l[y].loadError){var L,b,T=function(){var t=l[y];if(s===ti.FRAG_GAP&&h===oi&&e.frag){var r=l[y].details;if(r){var i=Te(e.frag,r.fragments,e.frag.start);if(null!=i&&i.gap)return"continue"}}else{if(g===ai&&t.hasAudioGroup(_)||g===si&&t.hasSubtitleGroup(_))return"continue";if(h===li&&null!=(L=n.audioGroups)&&L.some((function(e){return t.hasAudioGroup(e)}))||h===ui&&null!=(b=n.subtitleGroups)&&b.some((function(e){return t.hasSubtitleGroup(e)}))||f&&n.audioCodec===t.audioCodec||m&&n.codecSet===t.codecSet||!f&&n.codecSet!==t.codecSet)return"continue"}return o=y,"break"}();if("continue"===T)continue;if("break"===T)break}}if(o>-1&&r.loadLevel!==o)return e.levelRetry=!0,this.playlistError=0,{action:Ki,flags:Ji,nextAutoLevel:o}}return{action:Ki,flags:Qi}},r.onErrorOut=function(e,t){var r;switch(null==(r=t.errorAction)?void 0:r.action){case Vi:break;case Ki:this.sendAlternateToPenaltyBox(t),t.errorAction.resolved||t.details===ti.FRAG_GAP?/MediaSource readyState: ended/.test(t.error.message)&&(this.warn('MediaSource ended after "'+t.sourceBufferName+'" sourceBuffer append error. Attempting to recover from media error.'),this.hls.recoverMediaError()):t.fatal=!0}t.fatal&&this.hls.stopLoad()},r.sendAlternateToPenaltyBox=function(e){var t=this.hls,r=e.errorAction;if(r){var n=r.nextAutoLevel;switch(r.flags){case Ji:this.switchLevel(e,n);break;case Xi:var i=this.getVariantLevelIndex(e.frag),a=t.levels[i],s=null==a?void 0:a.attrs["HDCP-LEVEL"];if(r.hdcpLevel=s,"NONE"===s)this.warn("HDCP policy resticted output with HDCP-LEVEL=NONE");else if(s){t.maxHdcpLevel=Oi[Oi.indexOf(s)-1],r.resolved=!0,this.warn('Restricting playback to HDCP-LEVEL of "'+t.maxHdcpLevel+'" or lower');break}case Zi:var o=e.decryptdata;if(o){for(var l=this.hls.levels,u=l.length,d=u;d--;){var c,h;if(this.variantHasKey(l[d],o))this.log("Banned key found in level "+d+" ("+l[d].bitrate+'bps) or audio group "'+(null==(c=l[d].audioGroups)?void 0:c.join(","))+'" ('+(null==(h=e.frag)?void 0:h.type)+" fragment) "+b(o.keyId||[])),l[d].fragmentError++,l[d].loadError++,this.log("Removing level "+d+" with key error ("+e.error+")"),this.hls.removeLevel(d)}var f=e.frag;if(this.hls.levels.length<u)r.resolved=!0;else if(f&&f.type!==oi){var m=f.decryptdata;m&&!o.matches(m)&&(r.resolved=!0)}}}r.resolved||this.switchLevel(e,n)}},r.switchLevel=function(e,t){if(void 0!==t&&e.errorAction&&(this.warn("switching to level "+t+" after "+e.details),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel,e.details===ti.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&"audiovideo"!==e.sourceBufferName))for(var r=se(e.mimeType),n=this.hls.levels,i=n.length;i--;)n[i][e.sourceBufferName+"Codec"]===r&&(this.log("Removing level "+i+" for "+e.details+' ("'+r+'" not supported)'),this.hls.removeLevel(i))},t}(hi),ea="NOT_LOADED",ta="APPENDING",ra="PARTIAL",na="OK",ia=function(){function e(e){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=e,this._registerListeners()}var t=e.prototype;return t._registerListeners=function(){var e=this.hls;e&&(e.on(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ri.BUFFER_APPENDED,this.onBufferAppended,this),e.on(ri.FRAG_BUFFERED,this.onFragBuffered,this),e.on(ri.FRAG_LOADED,this.onFragLoaded,this))},t._unregisterListeners=function(){var e=this.hls;e&&(e.off(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ri.BUFFER_APPENDED,this.onBufferAppended,this),e.off(ri.FRAG_BUFFERED,this.onFragBuffered,this),e.off(ri.FRAG_LOADED,this.onFragLoaded,this))},t.destroy=function(){this._unregisterListeners(),this.hls=this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null},t.getAppendedFrag=function(e,t){var r=this.activePartLists[t];if(r)for(var n=r.length;n--;){var i=r[n];if(!i)break;if(i.start<=e&&e<=i.end&&i.loaded)return i}return this.getBufferedFrag(e,t)},t.getBufferedFrag=function(e,t){return this.getFragAtPos(e,t,!0)},t.getFragAtPos=function(e,t,r){for(var n=this.fragments,i=Object.keys(n),a=i.length;a--;){var s=n[i[a]];if((null==s?void 0:s.body.type)===t&&(!r||s.buffered)){var o=s.body;if(o.start<=e&&e<=o.end)return o}}return null},t.detectEvictedFragments=function(e,t,r,n,i){var a=this;this.timeRanges&&(this.timeRanges[e]=t);var s=(null==n?void 0:n.fragment.sn)||-1;Object.keys(this.fragments).forEach((function(n){var o=a.fragments[n];if(o&&!(s>=o.body.sn))if(o.buffered||o.loaded&&!i){var l=o.range[e];l&&(0!==l.time.length?l.time.some((function(e){var r=!a.isTimeBuffered(e.startPTS,e.endPTS,t);return r&&a.removeFragment(o.body),r})):a.removeFragment(o.body))}else o.body.type===r&&a.removeFragment(o.body)}))},t.detectPartialFragments=function(e){var t=this,r=this.timeRanges;if(r&&"initSegment"!==e.frag.sn){var n=e.frag,i=Ye(n),a=this.fragments[i];if(!(!a||a.buffered&&n.gap)){var s=!n.relurl;Object.keys(r).forEach((function(i){var o=n.elementaryStreams[i];o&&(a.range[i]=t.getBufferedTimes(n,e.part,s||!0===o.partial,r[i]))})),a.loaded=null,Object.keys(a.range).length?(this.bufferedEnd(a,n),Oe(a)||this.removeParts(n.sn-1,n.type)):this.removeFragment(a.body)}}},t.bufferedEnd=function(e,t){e.buffered=!0,(e.body.endList=t.endList||e.body.endList)&&(this.endListFragments[e.body.type]=e)},t.removeParts=function(e,t){var r=this.activePartLists[t];r&&(this.activePartLists[t]=Fe(r,(function(t){return t.fragment.sn>=e})))},t.fragBuffered=function(e,t){var r=Ye(e),n=this.fragments[r];!n&&t&&(n=this.fragments[r]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),n&&(n.loaded=null,this.bufferedEnd(n,e))},t.getBufferedTimes=function(e,t,r,n){for(var i={time:[],partial:r},a=e.start,s=e.end,o=e.minEndPTS||s,l=e.maxStartPTS||a,u=0;u<n.length;u++){var d=n.start(u)-this.bufferPadding,c=n.end(u)+this.bufferPadding;if(l>=d&&o<=c){i.time.push({startPTS:Math.max(a,n.start(u)),endPTS:Math.min(s,n.end(u))});break}if(a<c&&s>d){var h=Math.max(a,n.start(u)),f=Math.min(s,n.end(u));f>h&&(i.partial=!0,i.time.push({startPTS:h,endPTS:f}))}else if(s<=d)break}return i},t.getPartialFragment=function(e){var t,r,n,i=null,a=0,s=this.bufferPadding,o=this.fragments;return Object.keys(o).forEach((function(l){var u=o[l];u&&Oe(u)&&(n=u.body.end+s,e>=(r=u.body.start-s)&&e<=n&&(t=Math.min(e-r,n-e),a<=t&&(i=u.body,a=t)))})),i},t.isEndListAppended=function(e){var t=this.endListFragments[e];return void 0!==t&&(t.buffered||Oe(t))},t.getState=function(e){var t=Ye(e),r=this.fragments[t];return r?r.buffered?Oe(r)?ra:na:ta:ea},t.isTimeBuffered=function(e,t,r){for(var n,i,a=0;a<r.length;a++){if(n=r.start(a)-this.bufferPadding,i=r.end(a)+this.bufferPadding,e>=n&&t<=i)return!0;if(t<=n)return!1}return!1},t.onManifestLoading=function(){this.removeAllFragments()},t.onFragLoaded=function(e,t){if("initSegment"!==t.frag.sn&&!t.frag.bitrateTest){var r=t.frag,n=t.part?null:t,i=Ye(r);this.fragments[i]={body:r,appendedPTS:null,loaded:n,buffered:!1,range:Object.create(null)}}},t.onBufferAppended=function(e,t){var r=t.frag,n=t.part,i=t.timeRanges,a=t.type;if("initSegment"!==r.sn){var s=r.type;if(n){var o=this.activePartLists[s];o||(this.activePartLists[s]=o=[]),o.push(n)}this.timeRanges=i,this.detectEvictedFragments(a,i[a],s,n)}},t.onFragBuffered=function(e,t){this.detectPartialFragments(t)},t.hasFragment=function(e){var t=Ye(e);return!!this.fragments[t]},t.hasFragments=function(e){var t=this.fragments,r=Object.keys(t);if(!e)return r.length>0;for(var n=r.length;n--;){var i=t[r[n]];if((null==i?void 0:i.body.type)===e)return!0}return!1},t.hasParts=function(e){var t;return!(null==(t=this.activePartLists[e])||!t.length)},t.removeFragmentsInRange=function(e,t,r,n,i){var a=this;n&&!this.hasGaps||Object.keys(this.fragments).forEach((function(s){var o=a.fragments[s];if(o){var l=o.body;l.type!==r||n&&!l.gap||l.start<t&&l.end>e&&(o.buffered||i)&&a.removeFragment(l)}}))},t.removeFragment=function(e){var t=Ye(e);e.clearElementaryStreamInfo();var r=this.activePartLists[e.type];if(r){var n=e.sn;this.activePartLists[e.type]=Fe(r,(function(e){return e.fragment.sn!==n}))}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]},t.removeAllFragments=function(){var e;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;var t=null==(e=this.hls)||null==(e=e.latestLevelDetails)?void 0:e.partList;t&&t.forEach((function(e){return e.clearElementaryStreamInfo()}))},e}(),aa=0,sa=1,oa=function(){function e(e,t,r){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=e,this.aesIV=t,this.aesMode=r}return e.prototype.decrypt=function(e,t){switch(this.aesMode){case aa:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e);case sa:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},t,e);default:throw new Error("[AESCrypto] invalid aes mode "+this.aesMode)}},e}(),la=function(){function e(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}var t=e.prototype;return t.uint8ArrayToUint32Array_=function(e){for(var t=new DataView(e),r=new Uint32Array(4),n=0;n<4;n++)r[n]=t.getUint32(4*n);return r},t.initTable=function(){var e=this.sBox,t=this.invSBox,r=this.subMix,n=r[0],i=r[1],a=r[2],s=r[3],o=this.invSubMix,l=o[0],u=o[1],d=o[2],c=o[3],h=new Uint32Array(256),f=0,m=0,p=0;for(p=0;p<256;p++)h[p]=p<128?p<<1:p<<1^283;for(p=0;p<256;p++){var g=m^m<<1^m<<2^m<<3^m<<4;e[f]=g=g>>>8^255&g^99,t[g]=f;var _=h[f],v=h[_],y=h[v],L=257*h[g]^16843008*g;n[f]=L<<24|L>>>8,i[f]=L<<16|L>>>16,a[f]=L<<8|L>>>24,s[f]=L,l[g]=(L=16843009*y^65537*v^257*_^16843008*f)<<24|L>>>8,u[g]=L<<16|L>>>16,d[g]=L<<8|L>>>24,c[g]=L,f?(f=_^h[h[h[y^_]]],m^=h[h[m]]):f=m=1}},t.expandKey=function(e){for(var t=this.uint8ArrayToUint32Array_(e),r=!0,n=0;n<t.length&&r;)r=t[n]===this.key[n],n++;if(!r){this.key=t;var i=this.keySize=t.length;if(4!==i&&6!==i&&8!==i)throw new Error("Invalid aes key size="+i);var a,s,o,l,u=this.ksRows=4*(i+6+1),d=this.keySchedule=new Uint32Array(u),c=this.invKeySchedule=new Uint32Array(u),h=this.sBox,f=this.rcon,m=this.invSubMix,p=m[0],g=m[1],_=m[2],v=m[3];for(a=0;a<u;a++)a<i?o=d[a]=t[a]:(l=o,a%i==0?(l=h[(l=l<<8|l>>>24)>>>24]<<24|h[l>>>16&255]<<16|h[l>>>8&255]<<8|h[255&l],l^=f[a/i|0]<<24):i>6&&a%i==4&&(l=h[l>>>24]<<24|h[l>>>16&255]<<16|h[l>>>8&255]<<8|h[255&l]),d[a]=o=(d[a-i]^l)>>>0);for(s=0;s<u;s++)a=u-s,l=3&s?d[a]:d[a-4],c[s]=s<4||a<=4?l:p[h[l>>>24]]^g[h[l>>>16&255]]^_[h[l>>>8&255]]^v[h[255&l]],c[s]=c[s]>>>0}},t.networkToHostOrderSwap=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},t.decrypt=function(e,t,r){for(var n,i,a,s,o,l,u,d,c,h,f,m,p,g=this.keySize+6,_=this.invKeySchedule,v=this.invSBox,y=this.invSubMix,L=y[0],b=y[1],T=y[2],M=y[3],k=this.uint8ArrayToUint32Array_(r),S=k[0],w=k[1],D=k[2],E=k[3],A=new Int32Array(e),I=new Int32Array(A.length),x=this.networkToHostOrderSwap;t<A.length;){for(d=x(A[t]),c=x(A[t+1]),h=x(A[t+2]),f=x(A[t+3]),s=d^_[0],o=f^_[1],l=h^_[2],u=c^_[3],m=4,p=1;p<g;p++)n=L[o>>>24]^b[l>>16&255]^T[u>>8&255]^M[255&s]^_[m+1],i=L[l>>>24]^b[u>>16&255]^T[s>>8&255]^M[255&o]^_[m+2],a=L[u>>>24]^b[s>>16&255]^T[o>>8&255]^M[255&l]^_[m+3],s=L[s>>>24]^b[o>>16&255]^T[l>>8&255]^M[255&u]^_[m],o=n,l=i,u=a,m+=4;n=v[o>>>24]<<24^v[l>>16&255]<<16^v[u>>8&255]<<8^v[255&s]^_[m+1],i=v[l>>>24]<<24^v[u>>16&255]<<16^v[s>>8&255]<<8^v[255&o]^_[m+2],a=v[u>>>24]<<24^v[s>>16&255]<<16^v[o>>8&255]<<8^v[255&l]^_[m+3],I[t]=x(v[s>>>24]<<24^v[o>>16&255]<<16^v[l>>8&255]<<8^v[255&u]^_[m]^S),I[t+1]=x(a^w),I[t+2]=x(i^D),I[t+3]=x(n^E),S=d,w=c,D=h,E=f,t+=4}return I.buffer},e}(),ua=function(){function e(e,t,r){this.subtle=void 0,this.key=void 0,this.aesMode=void 0,this.subtle=e,this.key=t,this.aesMode=r}return e.prototype.expandKey=function(){var e=function(e){switch(e){case aa:return"AES-CBC";case sa:return"AES-CTR";default:throw new Error("[FastAESKey] invalid aes mode "+e)}}(this.aesMode);return this.subtle.importKey("raw",this.key,{name:e},!1,["encrypt","decrypt"])},e}(),da=function(){function e(e,t){var r=(void 0===t?{}:t).removePKCS7Padding,n=void 0===r||r;if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.enableSoftwareAES=void 0,this.enableSoftwareAES=e.enableSoftwareAES,this.removePKCS7Padding=n,n)try{var i=self.crypto;i&&(this.subtle=i.subtle||i.webkitSubtle)}catch(e){}this.useSoftware=!this.subtle}var t=e.prototype;return t.destroy=function(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null},t.isSync=function(){return this.useSoftware},t.flush=function(){var e=this.currentResult;if(!e||this.remainderData)return this.reset(),null;var t,r,n,i=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?(n=(r=(t=i).byteLength)&&new DataView(t.buffer).getUint8(r-1))?t.slice(0,r-n):t:i},t.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},t.decrypt=function(e,t,r,n){var i=this;return this.useSoftware?new Promise((function(a,s){var o=ArrayBuffer.isView(e)?e:new Uint8Array(e);i.softwareDecrypt(o,t,r,n);var l=i.flush();l?a(l.buffer):s(new Error("[softwareDecrypt] Failed to decrypt data"))})):this.webCryptoDecrypt(new Uint8Array(e),t,r,n)},t.softwareDecrypt=function(e,t,r,n){var i=this.currentIV,a=this.currentResult,s=this.remainderData;if(n!==aa||16!==t.byteLength)return gi.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),s&&(e=H(s,e),this.remainderData=null);var o=this.getValidChunk(e);if(!o.length)return null;i&&(r=i);var l=this.softwareDecrypter;l||(l=this.softwareDecrypter=new la),l.expandKey(t);var u=a;return this.currentResult=l.decrypt(o.buffer,0,r),this.currentIV=o.slice(-16).buffer,u||null},t.webCryptoDecrypt=function(e,t,r,n){var i=this;if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,r,n));this.key=t,this.fastAesKey=new ua(this.subtle,t,n)}return this.fastAesKey.expandKey().then((function(t){return i.subtle?(i.logOnce("WebCrypto AES decrypt"),new oa(i.subtle,new Uint8Array(r),n).decrypt(e.buffer,t)):Promise.reject(new Error("web crypto not initialized"))})).catch((function(a){return gi.warn("[decrypter]: WebCrypto Error, disable WebCrypto API, "+a.name+": "+a.message),i.onWebCryptoError(e,t,r,n)}))},t.onWebCryptoError=function(e,t,r,n){var i=this.enableSoftwareAES;if(i){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,r,n);var a=this.flush();if(a)return a.buffer}throw new Error("WebCrypto"+(i?" and softwareDecrypt":"")+": failed to decrypt data")},t.getValidChunk=function(e){var t=e,r=e.length-e.length%16;return r!==e.length&&(t=e.slice(0,r),this.remainderData=e.slice(r)),t},t.logOnce=function(e){this.logEnabled&&(gi.log("[decrypter]: "+e),this.logEnabled=!1)},e}(),ca=Math.pow(2,17),ha=function(){function e(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}var t=e.prototype;return t.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},t.abort=function(){this.loader&&this.loader.abort()},t.load=function(e,t){var r=this,n=e.url;if(!n)return Promise.reject(new fa({type:ei.NETWORK_ERROR,details:ti.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error("Fragment does not have a "+(n?"part list":"url")),networkDetails:null}));this.abort();var i=this.config,a=i.fLoader,s=i.loader;return new Promise((function(o,l){if(r.loader&&r.loader.destroy(),e.gap){if(e.tagList.some((function(e){return"GAP"===e[0]})))return void l(je(e));e.gap=!1}var u=r.loader=a?new a(i):new s(i),d=Ne(e);e.loader=u;var c=xe(i.fragLoadPolicy.default),h={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:"initSegment"===e.sn?1/0:ca};e.stats=u.stats;var f={onSuccess:function(t,n,i,a){r.resetLoader(e,u);var s=t.data;i.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(s.slice(0,16)),s=s.slice(16)),o({frag:e,part:null,payload:s,networkDetails:a})},onError:function(t,i,a,s){r.resetLoader(e,u),l(new fa({type:ei.NETWORK_ERROR,details:ti.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:p({url:n,data:void 0},t),error:new Error("HTTP Error "+t.code+" "+t.text),networkDetails:a,stats:s}))},onAbort:function(t,n,i){r.resetLoader(e,u),l(new fa({type:ei.NETWORK_ERROR,details:ti.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:i,stats:t}))},onTimeout:function(t,n,i){r.resetLoader(e,u),l(new fa({type:ei.NETWORK_ERROR,details:ti.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error("Timeout after "+h.timeout+"ms"),networkDetails:i,stats:t}))}};t&&(f.onProgress=function(r,n,i,a){return t({frag:e,part:null,payload:i,networkDetails:a})}),u.load(d,h,f)}))},t.loadPart=function(e,t,r){var n=this;this.abort();var i=this.config,a=i.fLoader,s=i.loader;return new Promise((function(o,l){if(n.loader&&n.loader.destroy(),e.gap||t.gap)l(je(e,t));else{var u=n.loader=a?new a(i):new s(i),d=Ne(e,t);e.loader=u;var c=xe(i.fragLoadPolicy.default),h={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:ca};t.stats=u.stats,u.load(d,h,{onSuccess:function(i,a,s,l){n.resetLoader(e,u),n.updateStatsFromPart(e,t);var d={frag:e,part:t,payload:i.data,networkDetails:l};r(d),o(d)},onError:function(r,i,a,s){n.resetLoader(e,u),l(new fa({type:ei.NETWORK_ERROR,details:ti.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:p({url:d.url,data:void 0},r),error:new Error("HTTP Error "+r.code+" "+r.text),networkDetails:a,stats:s}))},onAbort:function(r,i,a){e.stats.aborted=t.stats.aborted,n.resetLoader(e,u),l(new fa({type:ei.NETWORK_ERROR,details:ti.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:a,stats:r}))},onTimeout:function(r,i,a){n.resetLoader(e,u),l(new fa({type:ei.NETWORK_ERROR,details:ti.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error("Timeout after "+h.timeout+"ms"),networkDetails:a,stats:r}))}})}}))},t.updateStatsFromPart=function(e,t){var r=e.stats,n=t.stats,i=n.total;if(r.loaded+=n.loaded,i){var a=Math.round(e.duration/t.duration),s=Math.min(Math.round(r.loaded/i),a),o=(a-s)*Math.round(r.loaded/s);r.total=r.loaded+o}else r.total=Math.max(r.loaded,r.total);var l=r.loading,u=n.loading;l.start?l.first+=u.first-u.start:(l.start=u.start,l.first=u.first),l.end=u.end},t.resetLoader=function(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()},e}(),fa=function(e){function t(t){var r;return(r=e.call(this,t.error.message)||this).data=void 0,r.data=t,r}return u(t,e),t}(n(Error)),ma=function(e){function t(t,r){var n;return(n=e.call(this,t,r)||this)._boundTick=void 0,n._tickTimer=null,n._tickInterval=null,n._tickCallCount=0,n._boundTick=n.tick.bind(l(n)),n}u(t,e);var r=t.prototype;return r.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},r.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},r.onHandlerDestroyed=function(){},r.hasInterval=function(){return!!this._tickInterval},r.hasNextTick=function(){return!!this._tickTimer},r.setInterval=function(e){return!this._tickInterval&&(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)},r.clearInterval=function(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)},r.clearNextTick=function(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)},r.tick=function(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},r.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},r.doTick=function(){},t}(hi),pa=function(e,t,r,n,i,a){void 0===n&&(n=0),void 0===i&&(i=-1),void 0===a&&(a=!1),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing={start:0,executeStart:0,executeEnd:0,end:0},this.buffering={audio:{start:0,executeStart:0,executeEnd:0,end:0},video:{start:0,executeStart:0,executeEnd:0,end:0},audiovideo:{start:0,executeStart:0,executeEnd:0,end:0}},this.level=e,this.sn=t,this.id=r,this.size=n,this.part=i,this.partial=a},ga={length:0,start:function(){return 0},end:function(){return 0}},_a=function(){function e(){}return e.isBuffered=function(t,r){if(t)for(var n=e.getBuffered(t),i=n.length;i--;)if(r>=n.start(i)&&r<=n.end(i))return!0;return!1},e.bufferedRanges=function(t){if(t){var r=e.getBuffered(t);return e.timeRangesToArray(r)}return[]},e.timeRangesToArray=function(e){for(var t=[],r=0;r<e.length;r++)t.push({start:e.start(r),end:e.end(r)});return t},e.bufferInfo=function(t,r,n){if(t){var i=e.bufferedRanges(t);if(i.length)return e.bufferedInfo(i,r,n)}return{len:0,start:r,end:r,bufferedIndex:-1}},e.bufferedInfo=function(e,t,r){t=Math.max(0,t),e.length>1&&e.sort((function(e,t){return e.start-t.start||t.end-e.end}));var n=-1,i=[];if(r)for(var a=0;a<e.length;a++){t>=e[a].start&&t<=e[a].end&&(n=a);var s=i.length;if(s){var o=i[s-1].end;e[a].start-o<r?e[a].end>o&&(i[s-1].end=e[a].end):i.push(e[a])}else i.push(e[a])}else i=e;for(var l,u=0,d=t,c=t,h=0;h<i.length;h++){var f=i[h].start,m=i[h].end;if(-1===n&&t>=f&&t<=m&&(n=h),t+r>=f&&t<m)d=f,u=(c=m)-t;else if(t+r<f){l=f;break}}return{len:u,start:d||0,end:c||0,nextStart:l,buffered:e,bufferedIndex:n}},e.getBuffered=function(e){try{return e.buffered||ga}catch(e){return gi.log("failed to get media.buffered",e),ga}},e}(),va=/\{\$([a-zA-Z0-9-_]+)\}/g,ya=/^(\d+)x(\d+)$/,La=/(.+?)=(".*?"|.*?)(?:,|$)/g,ba=function(){function e(t,r){"string"==typeof t&&(t=e.parseAttrList(t,r)),f(this,t)}var t=e.prototype;return t.decimalInteger=function(e){var t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t},t.hexadecimalInteger=function(e){if(this[e]){var t=(this[e]||"0x").slice(2);t=(1&t.length?"0":"")+t;for(var r=new Uint8Array(t.length/2),n=0;n<t.length/2;n++)r[n]=parseInt(t.slice(2*n,2*n+2),16);return r}return null},t.hexadecimalIntegerAsNumber=function(e){var t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t},t.decimalFloatingPoint=function(e){return parseFloat(this[e])},t.optionalFloat=function(e,t){var r=this[e];return r?parseFloat(r):t},t.enumeratedString=function(e){return this[e]},t.enumeratedStringList=function(e,t){var r=this[e];return(r?r.split(/[ ,]+/):[]).reduce((function(e,t){return e[t.toLowerCase()]=!0,e}),t)},t.bool=function(e){return"YES"===this[e]},t.decimalResolution=function(e){var t=ya.exec(this[e]);if(null!==t)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}},e.parseAttrList=function(e,t){var r,n={};for(La.lastIndex=0;null!==(r=La.exec(e));){var i=r[1].trim(),a=r[2],s=0===a.indexOf('"')&&a.lastIndexOf('"')===a.length-1,o=!1;if(s)a=a.slice(1,-1);else switch(i){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":o=!0}if(t&&(s||o))a=He(t,a);else if(!o&&!s)switch(i){case"CLOSED-CAPTIONS":if("NONE"===a)break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":gi.warn(e+": attribute "+i+" is missing quotes")}n[i]=a}return n},c(e,[{key:"clientAttrs",get:function(){return Object.keys(this).filter((function(e){return"X-"===e.substring(0,2)}))}}]),e}(),Ta=function(){function e(e,t,r){var n;if(void 0===r&&(r=0),this.attr=void 0,this.tagAnchor=void 0,this.tagOrder=void 0,this._startDate=void 0,this._endDate=void 0,this._dateAtEnd=void 0,this._cue=void 0,this._badValueForSameId=void 0,this.tagAnchor=(null==t?void 0:t.tagAnchor)||null,this.tagOrder=null!=(n=null==t?void 0:t.tagOrder)?n:r,t){var i=t.attr;for(var a in i)if(Object.prototype.hasOwnProperty.call(e,a)&&e[a]!==i[a]){gi.warn('DATERANGE tag attribute: "'+a+'" does not match for tags with ID: "'+e.ID+'"'),this._badValueForSameId=a;break}e=f(new ba({}),i,e)}if(this.attr=e,t?(this._startDate=t._startDate,this._cue=t._cue,this._endDate=t._endDate,this._dateAtEnd=t._dateAtEnd):this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){var s=(null==t?void 0:t.endDate)||new Date(this.attr["END-DATE"]);Xn(s.getTime())&&(this._endDate=s)}}return c(e,[{key:"id",get:function(){return this.attr.ID}},{key:"class",get:function(){return this.attr.CLASS}},{key:"cue",get:function(){var e=this._cue;return void 0===e?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):e}},{key:"startTime",get:function(){var e=this.tagAnchor;return null===e||null===e.programDateTime?(gi.warn('Expected tagAnchor Fragment with PDT set for DateRange "'+this.id+'": '+e),NaN):e.start+(this.startDate.getTime()-e.programDateTime)/1e3}},{key:"startDate",get:function(){return this._startDate}},{key:"endDate",get:function(){var e=this._endDate||this._dateAtEnd;if(e)return e;var t=this.duration;return null!==t?this._dateAtEnd=new Date(this._startDate.getTime()+1e3*t):null}},{key:"duration",get:function(){if("DURATION"in this.attr){var e=this.attr.decimalFloatingPoint("DURATION");if(Xn(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}},{key:"plannedDuration",get:function(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}},{key:"endOnNext",get:function(){return this.attr.bool("END-ON-NEXT")}},{key:"isInterstitial",get:function(){return"com.apple.hls.interstitial"===this.class}},{key:"isValid",get:function(){return!!this.id&&!this._badValueForSameId&&Xn(this.startDate.getTime())&&(null===this.duration||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}}]),e}(),Ma=function(){function e(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.dateRangeTagCount=0,this.live=!0,this.requestScheduled=-1,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.drift
vendor: 1,047 bytes, line 1
1StartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.appliedTimelineOffset=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}var t=e.prototype;return t.reloaded=function(e){if(!e)return this.advanced=!0,void(this.updated=!0);var t=this.lastPartSn-e.lastPartSn,r=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!r||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||0===t&&r>0,this.misses=this.updated||this.advanced?Math.floor(.6*e.misses):e.misses+1},t.hasKey=function(e){return this.encryptedFragments.some((function(t){var r=t.decryptdata;return r||(t.setKeyFormat(e.keyFormat),r=t.decryptdata),!!r&&e.matches(r)}))},c(e,[{key:"hasProgramDateTime",get:function(){return!!this.fragments.length&&Xn(this.fragments[this.fragments.length-1].programDateTime)}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||10}}
vendor: 12,868 bytes, line 1
1,{key:"drift",get:function(){var e=this.driftEndTime-this.driftStartTime;return e>0?1e3*(this.driftEnd-this.driftStart)/e:1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){return this.fragments.length?this.fragments[this.fragments.length-1].end:0}},{key:"fragmentStart",get:function(){return this.fragments.length?this.fragments[0].start:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].index:-1}},{key:"maxPartIndex",get:function(){var e=this.partList;if(e){var t=this.lastPartIndex;if(-1!==t){for(var r=e.length;r--;)if(e[r].index>t)return e[r].index;return t}}return 0}},{key:"lastPartSn",get:function(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}},{key:"expired",get:function(){return!!(this.live&&this.age&&this.misses<3)&&this.age>Math.max(this.partEnd-this.fragmentStart,this.totalduration)+this.levelTargetDuration}}]),e}(),ka="undefined"!=typeof self?self:void 0,Sa={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},wa="org.w3.clearkey",Da="com.apple.streamingkeydelivery",Ea="com.microsoft.playready",Aa="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",Ia=null!=ka&&null!=(Jn=ka.navigator)&&Jn.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null,xa={},Ca=function(){function e(e,t,r,n,i,a){void 0===n&&(n=[1]),void 0===i&&(i=null),this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=e,this.uri=t,this.keyFormat=r,this.keyFormatVersions=n,this.iv=i,this.encrypted=!!e&&"NONE"!==e,this.isCommonEncryption=this.encrypted&&!ze(e),null!=a&&a.startsWith("0x")&&(this.keyId=new Uint8Array(T(a)))}e.clearKeyUriToKeyIdMap=function(){xa={}},e.setKeyIdForUri=function(e,t){xa[e]=t},e.addKeyIdForUri=function(e){var t=Object.keys(xa).length%Number.MAX_SAFE_INTEGER,r=new Uint8Array(16);return new DataView(r.buffer,12,4).setUint32(0,t),xa[e]=r,r};var t=e.prototype;return t.matches=function(e){return e.uri===this.uri&&e.method===this.method&&e.encrypted===this.encrypted&&e.keyFormat===this.keyFormat&&Ve(e.keyFormatVersions,this.keyFormatVersions)&&Ke(e.iv,this.iv)&&Ke(e.keyId,this.keyId)},t.isSupported=function(){if(this.method){if(ze(this.method)||"NONE"===this.method)return!0;if("identity"===this.keyFormat)return"SAMPLE-AES"===this.method;switch(this.keyFormat){case Da:case Aa:case Ea:case wa:return-1!==["SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)}}return!1},t.getDecryptData=function(t,r){if(!this.encrypted||!this.uri)return null;if(ze(this.method)){var n=this.iv;return n||("number"!=typeof t&&(gi.warn('missing IV for initialization segment with method="'+this.method+'" - compliance issue'),t=0),n=function(e){for(var t=new Uint8Array(16),r=12;r<16;r++)t[r]=e>>8*(15-r)&255;return t}(t)),new e(this.method,this.uri,"identity",this.keyFormatVersions,n)}if(this.keyId){var i=xa[this.uri];if(i&&!Ve(this.keyId,i)&&e.setKeyIdForUri(this.uri,this.keyId),this.pssh)return this}var a,s=Ze(this.uri);if(s)switch(this.keyFormat){case Aa:if(this.pssh=s,!this.keyId){var o=function(e){var t=[];if(e instanceof ArrayBuffer)for(var r=e.byteLength,n=0;n+32<r;){var i=q(new DataView(e,n));t.push(i),n+=i.size}return t}(s.buffer);if(o.length){var l,u=o[0];this.keyId=null!=(l=u.kids)&&l.length?u.kids[0]:null}}this.keyId||(this.keyId=nt(r));break;case Ea:var d=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=z(d,0,s),this.keyId=rt(s);break;default:var c=s.subarray(0,16);if(16!==c.length){var h=new Uint8Array(16);h.set(c,16-c.length),c=h}this.keyId=c}this.keyId&&16===this.keyId.byteLength||((a=function(e){var t=null==e?void 0:e[Aa];return t?t.keyId:null}(r))||(a=nt(r))||(a=xa[this.uri]),a&&(this.keyId=a,e.setKeyIdForUri(this.uri,a)));return this},e}(),Ra=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,Pa=/#EXT-X-MEDIA:(.*)/g,Oa=/^#EXT(?:INF|-X-TARGETDURATION):/m,Ya=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),Fa=new RegExp([/#EXT-X-(PROGRAM-DATE-TIME|BYTERANGE|DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),Na=function(){function e(){}return e.findGroup=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.id===t)return n}},e.resolve=function(e,t){return vi.buildAbsoluteURL(t,e,{alwaysNormalize:!0})},e.isMediaPlaylist=function(e){return Oa.test(e)},e.parseMasterPlaylist=function(t,r){var n,i={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:Ue(t)},a=[];if(Ra.lastIndex=0,!t.startsWith("#EXTM3U"))return i.playlistParsingError=new Error("no EXTM3U delimiter"),i;for(;null!=(n=Ra.exec(t));)if(n[1]){var s,o=new ba(n[1],i),l=He(i,n[2]),u={attrs:o,bitrate:o.decimalInteger("BANDWIDTH")||o.decimalInteger("AVERAGE-BANDWIDTH"),name:o.NAME,url:e.resolve(l,r)},d=o.decimalResolution("RESOLUTION");d&&(u.width=d.width,u.height=d.height),lt(o.CODECS,u);var c=o["SUPPLEMENTAL-CODECS"];c&&(u.supplemental={},lt(c,u.supplemental)),null!=(s=u.unknownCodecs)&&s.length||a.push(u),i.levels.push(u)}else if(n[3]){var h=n[4];switch(n[3]){case"SESSION-DATA":var f=new ba(h,i),m=f["DATA-ID"];m&&(null===i.sessionData&&(i.sessionData={}),i.sessionData[m]=f);break;case"SESSION-KEY":var p=st(h,r,i);p.encrypted&&p.isSupported()?(null===i.sessionKeys&&(i.sessionKeys=[]),i.sessionKeys.push(p)):gi.warn('[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "'+h+'"');break;case"DEFINE":Be(i,new ba(h,i),r);break;case"CONTENT-STEERING":var g=new ba(h,i);i.contentSteering={uri:e.resolve(g["SERVER-URI"],r),pathwayId:g["PATHWAY-ID"]||"."};break;case"START":i.startTimeOffset=ot(h)}}return i.levels=a.length>0&&a.length<i.levels.length?a:i.levels,0===i.levels.length&&(i.playlistParsingError=new Error("no levels found in manifest")),i},e.parseMasterPlaylistMedia=function(t,r,n){var i,a={},s=n.levels,o={AUDIO:s.map((function(e){return{id:e.attrs.AUDIO,audioCodec:e.audioCodec}})),SUBTITLES:s.map((function(e){return{id:e.attrs.SUBTITLES,textCodec:e.textCodec}})),"CLOSED-CAPTIONS":[]},l=0;for(Pa.lastIndex=0;null!==(i=Pa.exec(t));){var u=new ba(i[1],n),d=u.TYPE;if(d){var c=o[d],h=a[d]||[];a[d]=h;var f=u.LANGUAGE,m=u["ASSOC-LANGUAGE"],p=u.CHANNELS,g=u.CHARACTERISTICS,_=u["INSTREAM-ID"],v={attrs:u,bitrate:0,id:l++,groupId:u["GROUP-ID"]||"",name:u.NAME||f||"",type:d,default:u.bool("DEFAULT"),autoselect:u.bool("AUTOSELECT"),forced:u.bool("FORCED"),lang:f,url:u.URI?e.resolve(u.URI,r):""};if(m&&(v.assocLang=m),p&&(v.channels=p),g&&(v.characteristics=g),_&&(v.instreamId=_),null!=c&&c.length){var y=e.findGroup(c,v.groupId)||c[0];ut(v,y,"audioCodec"),ut(v,y,"textCodec")}h.push(v)}}return a},e.parseLevelPlaylist=function(e,t,r,n,i,a){var s,o,l,u,d,c={url:t},h=new Ma(t),m=h.fragments,p=[],g=null,_=0,v=0,y=0,L=0,b=0,T=null,M=new ki(n,c),k=-1,S=!1,w=null;if(Ya.lastIndex=0,h.m3u8=e,h.hasVariableRefs=Ue(e),"#EXTM3U"!==(null==(s=Ya.exec(e))?void 0:s[0]))return h.playlistParsingError=new Error("Missing format identifier #EXTM3U"),h;for(;null!==(o=Ya.exec(e));){S&&(S=!1,(M=new ki(n,c)).playlistOffset=y,M.setStart(y),M.sn=_,M.cc=L,b&&(M.bitrate=b),M.level=r,g&&(M.initSegment=g,g.rawProgramDateTime&&(M.rawProgramDateTime=g.rawProgramDateTime,g.rawProgramDateTime=null),w&&(M.setByteRange(w),w=null)));var D=o[1];if(D){M.duration=parseFloat(D);var E=(" "+o[2]).slice(1);M.title=E||null,M.tagList.push(E?["INF",D,E]:["INF",D])}else if(o[3]){if(Xn(M.duration)){M.playlistOffset=y,M.setStart(y),u&&ht(M,u,h),M.sn=_,M.level=r,M.cc=L,m.push(M);var A=(" "+o[3]).slice(1);M.relurl=He(h,A),dt(M,T,p),T=M,y+=M.duration,_++,v=0,S=!0}}else{if(!(o=o[0].match(Fa))){gi.warn("No matches on slow regex match for level playlist!");continue}for(l=1;l<o.length&&void 0===o[l];l++);var I=(" "+o[l]).slice(1),x=(" "+o[l+1]).slice(1),C=o[l+2]?(" "+o[l+2]).slice(1):null;switch(I){case"BYTERANGE":T?M.setByteRange(x,T):M.setByteRange(x);break;case"PROGRAM-DATE-TIME":M.rawProgramDateTime=x,M.tagList.push(["PROGRAM-DATE-TIME",x]),-1===k&&(k=m.length);break;case"PLAYLIST-TYPE":h.type&&ft(h,I,o),h.type=x.toUpperCase();break;case"MEDIA-SEQUENCE":0!==h.startSN?ft(h,I,o):m.length>0&&mt(h,I,o),_=h.startSN=parseInt(x);break;case"SKIP":h.skippedSegments&&ft(h,I,o);var R=new ba(x,h),P=R.decimalInteger("SKIPPED-SEGMENTS");if(Xn(P)){h.skippedSegments+=P;for(var O=P;O--;)m.push(null);_+=P}var Y=R.enumeratedString("RECENTLY-REMOVED-DATERANGES");Y&&(h.recentlyRemovedDateranges=(h.recentlyRemovedDateranges||[]).concat(Y.split("\t")));break;case"TARGETDURATION":0!==h.targetduration&&ft(h,I,o),h.targetduration=Math.max(parseInt(x),1);break;case"VERSION":null!==h.version&&ft(h,I,o),h.version=parseInt(x);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":h.live||ft(h,I,o),h.live=!1;break;case"#":(x||C)&&M.tagList.push(C?[x,C]:[x]);break;case"DISCONTINUITY":L++,M.tagList.push(["DIS"]);break;case"GAP":M.gap=!0,M.tagList.push([I]);break;case"BITRATE":M.tagList.push([I,x]),b=1e3*parseInt(x),Xn(b)?M.bitrate=b:b=0;break;case"DATERANGE":var F=new ba(x,h),N=new Ta(F,h.dateRanges[F.ID],h.dateRangeTagCount);h.dateRangeTagCount++,N.isValid||h.skippedSegments?h.dateRanges[N.id]=N:gi.warn('Ignoring invalid DATERANGE tag: "'+x+'"'),M.tagList.push(["EXT-X-DATERANGE",x]);break;case"DEFINE":var j=new ba(x,h);"IMPORT"in j?We(h,j,a):Be(h,j,t);break;case"DISCONTINUITY-SEQUENCE":0!==h.startCC?ft(h,I,o):m.length>0&&mt(h,I,o),h.startCC=L=parseInt(x);break;case"KEY":var U=st(x,t,h);if(U.isSupported()){if("NONE"===U.method){u=void 0;break}u||(u={});var H=u[U.keyFormat];null!=H&&H.matches(U)||(H&&(u=f({},u)),u[U.keyFormat]=U)}else gi.warn('[Keys] Ignoring unsupported EXT-X-KEY tag: "'+x+'"');break;case"START":h.startTimeOffset=ot(x);break;case"MAP":var B=new ba(x,h);if(M.duration){var W=new ki(n,c);ct(W,B,r,u),M.initSegment=g=W,g.rawProgramDateTime&&!M.rawProgramDateTime&&(M.rawProgramDateTime=g.rawProgramDateTime)}else{var G=M.byteRangeEndOffset;if(G){var V=M.byteRangeStartOffset;w=G-V+"@"+V}else w=null;ct(M,B,r,u),g=M,S=!0}g.cc=L;break;case"SERVER-CONTROL":d&&ft(h,I,o),d=new ba(x),h.canBlockReload=d.bool("CAN-BLOCK-RELOAD"),h.canSkipUntil=d.optionalFloat("CAN-SKIP-UNTIL",0),h.canSkipDateRanges=h.canSkipUntil>0&&d.bool("CAN-SKIP-DATERANGES"),h.partHoldBack=d.optionalFloat("PART-HOLD-BACK",0),h.holdBack=d.optionalFloat("HOLD-BACK",0);break;case"PART-INF":h.partTarget&&ft(h,I,o);var K=new ba(x);h.partTarget=K.decimalFloatingPoint("PART-TARGET");break;case"PART":var z=h.partList;z||(z=h.partList=[]);var q=v>0?z[z.length-1]:void 0,J=v++,Q=new ba(x,h),X=new Si(Q,M,c,J,q);z.push(X),M.duration+=X.duration;break;case"PRELOAD-HINT":var Z=new ba(x,h);h.preloadHint=Z;break;case"RENDITION-REPORT":var $=new ba(x,h);h.renditionReports=h.renditionReports||[],h.renditionReports.push($);break;default:gi.warn("line parsed but not handled: "+o)}}}T&&!T.relurl?(m.pop(),y-=T.duration,h.partList&&(h.fragmentHint=T)):h.partList&&(dt(M,T,p),M.cc=L,h.fragmentHint=M,u&&ht(M,u,h)),h.targetduration||(h.playlistParsingError=new Error("Missing Target Duration"));var ee=m.length,te=m[0],re=m[ee-1];if((y+=h.skippedSegments*h.targetduration)>0&&ee&&re){h.averagetargetduration=y/ee;var ne=re.sn;h.endSN="initSegment"!==ne?ne:0,h.live||(re.endList=!0),k>0&&(!function(e,t){for(var r=e[t],n=t;n--;){var i=e[n];if(!i)return;i.programDateTime=r.programDateTime-1e3*i.duration,r=i}}(m,k),te&&p.unshift(te))}return h.fragmentHint&&(y+=h.fragmentHint.duration),h.totalduration=y,p.length&&h.dateRangeTagCount&&te&&it(p,h),h.endCC=L,h},e}(),ja=function(e){for(var t="",r=e.length,n=0;n<r;n++)t+="["+e.start(n).toFixed(3)+"-"+e.end(n).toFixed(3)+"]";return t},Ua="STOPPED",Ha="IDLE",Ba="KEY_LOADING",Wa="FRAG_LOADING",Ga="FRAG_LOADING_WAITING_RETRY",Va="WAITING_TRACK",Ka="PARSING",za="PARSED",qa="ENDED",Ja="ERROR",Qa="WAITING_INIT_PTS",Xa="WAITING_LEVEL",Za=function(e){function t(t,r,n,i,a){var s;return(s=e.call(this,i,t.logger)||this).hls=void 0,s.fragPrevious=null,
vendor: 7,364 bytes, line 1
1s.fragCurrent=null,s.fragmentTracker=void 0,s.transmuxer=null,s._state=Ua,s.playlistType=void 0,s.media=null,s.mediaBuffer=null,s.config=void 0,s.bitrateTest=!1,s.lastCurrentTime=0,s.nextLoadPosition=0,s.startPosition=0,s.startTimeOffset=null,s.retryDate=0,s.levels=null,s.fragmentLoader=void 0,s.keyLoader=void 0,s.levelLastLoaded=null,s.startFragRequested=!1,s.decrypter=void 0,s.initPTS=[],s.buffering=!0,s.loadingParts=!1,s.loopSn=void 0,s.onMediaSeeking=function(){var e=l(s),t=e.config,r=e.fragCurrent,n=e.media,i=e.mediaBuffer,a=e.state,o=n?n.currentTime:0,u=_a.bufferInfo(i||n,o,t.maxBufferHole),d=!u.len;if(s.log("Media seeking to "+(Xn(o)?o.toFixed(3):o)+", state: "+a+", "+(d?"out of":"in")+" buffer"),s.state===qa)s.resetLoadingState();else if(r){var c=t.maxFragLookUpTolerance,h=r.start-c,f=r.start+r.duration+c;if(d||f<u.start||h>u.end){var m=o>f;(o<h||m)&&(m&&r.loader&&(s.log("Cancelling fragment load for seek (sn: "+r.sn+")"),r.abortRequests(),s.resetLoadingState()),s.fragPrevious=null)}}if(n&&(s.fragmentTracker.removeFragmentsInRange(o,1/0,s.playlistType,!0),o>s.lastCurrentTime&&(s.lastCurrentTime=o),!s.loadingParts)){var p=Math.max(u.end,o),g=s.shouldLoadParts(s.getLevelDetails(),p);g&&(s.log("LL-Part loading ON after seeking to "+o.toFixed(2)+" with buffer @"+p.toFixed(2)),s.loadingParts=g)}s.hls.hasEnoughToStart||(s.log("Setting "+(d?"startPosition":"nextLoadPosition")+" to "+o+" for seek without enough to start"),s.nextLoadPosition=o,d&&(s.startPosition=o)),d&&s.state===Ha&&s.tickImmediate()},s.onMediaEnded=function(){s.log("setting startPosition to 0 because media ended"),s.startPosition=s.lastCurrentTime=0},s.playlistType=a,s.hls=t,s.fragmentLoader=new ha(t.config),s.keyLoader=n,s.fragmentTracker=r,s.config=t.config,s.decrypter=new da(t.config),s}u(t,e);var r=t.prototype;return r.registerListeners=function(){var e=this.hls;e.on(ri.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(ri.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ri.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(ri.ERROR,this.onError,this)},r.unregisterListeners=function(){var e=this.hls;e.off(ri.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(ri.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ri.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(ri.ERROR,this.onError,this)},r.doTick=function(){this.onTickEnd()},r.onTickEnd=function(){},r.startLoad=function(){},r.stopLoad=function(){if(this.state!==Ua){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);var e=this.fragCurrent;null!=e&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=Ua}},r.pauseBuffering=function(){this.buffering=!1},r.resumeBuffering=function(){this.buffering=!0},r._streamEnded=function(e,t){if(t.live||!this.media)return!1;var r=this.config.timelineOffset||0;if((e.end||0)<=r)return!1;var n=e.buffered;this.config.maxBufferHole&&n&&n.length>1&&(e=_a.bufferedInfo(n,e.start,0));var i=e.nextStart;if(i&&i>r&&i<t.edge)return!1;if(this.media.currentTime<e.start)return!1;var a=t.partList;if(null!=a&&a.length){var s=a[a.length-1];return _a.isBuffered(this.media,s.start+s.duration/2)}return this.fragmentTracker.isEndListAppended(t.fragments[t.fragments.length-1].type)},r.getLevelDetails=function(){if(this.levels&&null!==this.levelLastLoaded)return this.levelLastLoaded.details},r.onMediaAttached=function(e,t){var r=this.media=this.mediaBuffer=t.media;Rt(r,"seeking",this.onMediaSeeking),Rt(r,"ended",this.onMediaEnded);var n=this.config;this.levels&&n.autoStartLoad&&this.state===Ua&&this.startLoad(n.startPosition)},r.onMediaDetaching=function(e,t){var r=!!t.transferMedia,n=this.media;if(null!==n){if(n.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),Pt(n,"seeking",this.onMediaSeeking),Pt(n,"ended",this.onMediaEnded),this.keyLoader&&!r&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loopSn=void 0,r)return this.resetLoadingState(),void this.resetTransmuxer();this.loadingParts=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}},r.onManifestLoading=function(){this.initPTS=[],this.levels=this.levelLastLoaded=this.fragCurrent=null,this.lastCurrentTime=this.startPosition=0,this.startFragRequested=!1},r.onError=function(){},r.onManifestLoaded=function(e,t){this.startTimeOffset=t.startTimeOffset},r.onHandlerDestroying=function(){this.stopLoad(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),e.prototype.onHandlerDestroying.call(this),this.hls=this.onMediaSeeking=this.onMediaEnded=null},r.onHandlerDestroyed=function(){this.state=Ua,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,e.prototype.onHandlerDestroyed.call(this)},r.loadFragment=function(e,t,r){this.startFragRequested=!0,this._loadFragForPlayback(e,t,r)},r._loadFragForPlayback=function(e,t,r){var n=this;this._doFragLoad(e,t,r,(function(e){var t=e.frag;if(n.fragContextChanged(t))return n.warn(t.type+" sn: "+t.sn+(e.part?" part: "+e.part.index:"")+" of "+n.fragInfo(t,!1,e.part)+") was dropped during download."),void n.fragmentTracker.removeFragment(t);t.stats.chunkCount++,n._handleFragmentLoadProgress(e)})).then((function(e){if(e){var t=n.state,r=e.frag;n.fragContextChanged(r)?(t===Wa||!n.fragCurrent&&t===Ka)&&(n.fragmentTracker.removeFragment(r),n.state=Ha):("payload"in e&&(n.log("Loaded "+r.type+" sn: "+r.sn+" of "+n.playlistLabel()+" "+r.level),n.hls.trigger(ri.FRAG_LOADED,e)),n._handleFragmentLoadComplete(e))}})).catch((function(t){n.state!==Ua&&n.state!==Ja&&(n.warn("Frag error: "+((null==t?void 0:t.message)||t)),n.resetFragmentLoading(e))}))},r.clearTrackerIfNeeded=function(e){var t,r=this.fragmentTracker;if(r.getState(e)===ta){var n=this.getFwdBufferInfo(this.mediaBuffer,e.type),i=Math.max(e.duration,n?n.len:this.config.maxBufferLength),a=this.backtrackFragment;(1===(a?e.sn-a.sn:0)||this.reduceMaxBufferLength(i,e.duration))&&r.removeFragment(e)}else 0===(null==(t=this.mediaBuffer)?void 0:t.buffered.length)?r.removeAllFragments():r.hasParts(e.type)&&(r.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),r.getState(e)===ra&&r.removeFragment(e))},r.checkLiveUpdate=function(e){if(e.updated&&!e.live){var t=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)},r.waitForLive=function(e){var t=e.details;return(null==t?void 0:t.live)&&"EVENT"!==t.type&&(this.levelLastLoaded!==e||t.expired)},r.flushMainBuffer=function(e,t,r){(void 0===r&&(r=null),e-t)&&this.hls.trigger(ri.BUFFER_FLUSHING,{startOffset:e,endOffset:t,type:r})},r._loadInitSegment=function(e,t){var r=this;this._doFragLoad(e,t).then((function(e){var t=null==e?void 0:e.frag;if(!t||r.fragContextChanged(t)||!r.levels)throw new Error("init load aborted");return e})).then((function(e){var t=r.hls,n=e.frag,i=e.payload,a=n.decryptdata;if(i&&i.byteLength>0&&null!=a&&a.key&&a.iv&&ze(a.method)){var s=self.performance.now();
vendor: 8,650 bytes, line 1
1return r.decrypter.decrypt(new Uint8Array(i),a.key.buffer,a.iv.buffer,qe(a.method)).catch((function(e){throw t.trigger(ri.ERROR,{type:ei.MEDIA_ERROR,details:ti.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:n}),e})).then((function(i){var a=self.performance.now();return t.trigger(ri.FRAG_DECRYPTED,{frag:n,payload:i,stats:{tstart:s,tdecrypt:a}}),e.payload=i,r.completeInitSegmentLoad(e)}))}return r.completeInitSegmentLoad(e)})).catch((function(t){r.state!==Ua&&r.state!==Ja&&(r.warn(t),r.resetFragmentLoading(e))}))},r.completeInitSegmentLoad=function(e){if(!this.levels)throw new Error("init load aborted, missing levels");var t=e.frag.stats;this.state!==Ua&&(this.state=Ha),e.frag.data=new Uint8Array(e.payload),t.parsing.start=t.buffering.start=self.performance.now(),t.parsing.end=t.buffering.end=self.performance.now(),this.tick()},r.unhandledEncryptionError=function(e,t){var r,n,i=e.tracks;if(i&&!t.encrypted&&(null!=(r=i.audio)&&r.encrypted||null!=(n=i.video)&&n.encrypted)&&(!this.config.emeEnabled||!this.keyLoader.emeController)){var a=this.media,s=new Error("Encrypted track with no key in "+this.fragInfo(t)+" (media "+(a?"attached mediaKeys: "+a.mediaKeys:"detached")+")");return this.warn(s.message),!a||a.mediaKeys?!1:(this.hls.trigger(ri.ERROR,{type:ei.KEY_SYSTEM_ERROR,details:ti.KEY_SYSTEM_NO_KEYS,fatal:!1,error:s,frag:t}),this.resetTransmuxer(),!0)}return!1},r.fragContextChanged=function(e){var t=this.fragCurrent;return!e||!t||e.sn!==t.sn||e.level!==t.level},r.fragBufferedComplete=function(e,t){var r=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log("Buffered "+e.type+" sn: "+e.sn+(t?" part: "+t.index:"")+" of "+this.fragInfo(e,!1,t)+" > buffer:"+(r?ja(_a.getBuffered(r)):"(detached)")+")"),k(e)){var n;if(e.type!==ui){var i=e.elementaryStreams;if(!Object.keys(i).some((function(e){return!!i[e]})))return void(this.state=Ha)}var a=null==(n=this.levels)?void 0:n[e.level];null!=a&&a.fragmentError&&(this.log("Resetting level fragment error count of "+a.fragmentError+" on frag buffered"),a.fragmentError=0)}this.state=Ha},r._handleFragmentLoadComplete=function(e){var t=this.transmuxer;if(t){var r=e.frag,n=e.part,i=e.partsLoaded,a=!i||0===i.length||i.some((function(e){return!e})),s=new pa(r.level,r.sn,r.stats.chunkCount+1,0,n?n.index:-1,!a);t.flush(s)}},r._handleFragmentLoadProgress=function(){},r._doFragLoad=function(e,t,r,n){var i,a=this;void 0===r&&(r=null),this.fragCurrent=e;var s=t.details;if(!this.levels||!s)throw new Error("frag load aborted, missing level"+(s?"":" detail")+"s");var o=null;if(!e.encrypted||null!=(i=e.decryptdata)&&i.key)e.encrypted||(o=this.keyLoader.loadClear(e,s.encryptedFragments,this.startFragRequested))&&this.log("[eme] blocking frag load until media-keys acquired");else if(this.log("Loading key for "+e.sn+" of ["+s.startSN+"-"+s.endSN+"], "+this.playlistLabel()+" "+e.level),this.state=Ba,this.fragCurrent=e,o=this.keyLoader.load(e).then((function(e){if(!a.fragContextChanged(e.frag))return a.hls.trigger(ri.KEY_LOADED,e),a.state===Ba&&(a.state=Ha),e})),this.hls.trigger(ri.KEY_LOADING,{frag:e}),null===this.fragCurrent)return this.log("context changed in KEY_LOADING"),Promise.resolve(null);var l,u=this.fragPrevious;if(k(e)&&(!u||e.sn!==u.sn)){var d=this.shouldLoadParts(t.details,e.end);d!==this.loadingParts&&(this.log("LL-Part loading "+(d?"ON":"OFF")+" loading sn "+(null==u?void 0:u.sn)+"->"+e.sn),this.loadingParts=d)}if(r=Math.max(e.start,r||0),this.loadingParts&&k(e)){var c=s.partList;if(c&&n){r>s.fragmentEnd&&s.fragmentHint&&(e=s.fragmentHint);var h=this.getNextPart(c,e,r);if(h>-1){var f,m=c[h];return e=this.fragCurrent=m.fragment,this.log("Loading "+e.type+" sn: "+e.sn+" part: "+m.index+" ("+h+"/"+(c.length-1)+") of "+this.fragInfo(e,!1,m)+") cc: "+e.cc+" ["+s.startSN+"-"+s.endSN+"], target: "+parseFloat(r.toFixed(3))),this.nextLoadPosition=m.start+m.duration,this.state=Wa,f=o?o.then((function(r){return!r||a.fragContextChanged(r.frag)?null:a.doFragPartsLoad(e,m,t,n)})).catch((function(e){return a.handleFragLoadError(e)})):this.doFragPartsLoad(e,m,t,n).catch((function(e){return a.handleFragLoadError(e)})),this.hls.trigger(ri.FRAG_LOADING,{frag:e,part:m,targetBufferTime:r}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):f}if(!e.url||this.loadedEndOfParts(c,r))return Promise.resolve(null)}}if(k(e)&&this.loadingParts)this.log("LL-Part loading OFF after next part miss @"+r.toFixed(2)+" Check buffer at sn: "+e.sn+" loaded parts: "+(null==(l=s.partList)?void 0:l.filter((function(e){return e.loaded})).map((function(e){return"["+e.start+"-"+e.end+"]"})))),this.loadingParts=!1;else if(!e.url)return Promise.resolve(null);this.log("Loading "+e.type+" sn: "+e.sn+" of "+this.fragInfo(e,!1)+") cc: "+e.cc+" ["+s.startSN+"-"+s.endSN+"], target: "+parseFloat(r.toFixed(3))),Xn(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=Wa;var p,g=this.config.progressive&&e.type!==ui;return p=g&&o?o.then((function(t){return!t||a.fragContextChanged(t.frag)?null:a.fragmentLoader.load(e,n)})).catch((function(e){return a.handleFragLoadError(e)})):Promise.all([this.fragmentLoader.load(e,g?n:void 0),o]).then((function(e){var t=e[0];return!g&&n&&n(t),t})).catch((function(e){return a.handleFragLoadError(e)})),this.hls.trigger(ri.FRAG_LOADING,{frag:e,targetBufferTime:r}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):p},r.doFragPartsLoad=function(e,t,r,n){var i=this;return new Promise((function(a,s){var o,l=[],u=null==(o=r.details)?void 0:o.partList;!function t(o){i.fragmentLoader.loadPart(e,o,n).then((function(n){l[o.index]=n;var s=n.part;i.hls.trigger(ri.FRAG_LOADED,n);var d=Mt(r.details,e.sn,o.index+1)||kt(u,e.sn,o.index+1);if(!d)return a({frag:e,part:s,partsLoaded:l});t(d)})).catch(s)}(t)}))},r.handleFragLoadError=function(e){if("data"in e){var t=e.data;t.frag&&t.details===ti.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):t.frag&&t.type===ei.KEY_SYSTEM_ERROR?(t.frag.abortRequests(),this.resetStartWhenNotLoaded(),this.resetFragmentLoading(t.frag)):this.hls.trigger(ri.ERROR,t)}else this.hls.trigger(ri.ERROR,{type:ei.OTHER_ERROR,details:ti.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null},r._handleTransmuxerFlush=function(e){var t=this.getCurrentContext(e);if(t&&this.state===Ka){var r=t.frag,n=t.part,i=t.level,a=self.performance.now();r.stats.parsing.end=a,n&&(n.stats.parsing.end=a);var s=this.getLevelDetails(),o=s&&r.sn>s.endSN||this.shouldLoadParts(s,r.end);o!==this.loadingParts&&(this.log("LL-Part loading "+(o?"ON":"OFF")+" after parsing segment ending @"+r.end.toFixed(2)),this.loadingParts=o),this.updateLevelTiming(r,n,i,e.partial)}else this.fragCurrent||this.state===Ua||this.state===Ja||(this.state=Ha)},r.shouldLoadParts=function(e,t){if(this.config.lowLatencyMode){if(!e)return this.loadingParts;if(e.partList){var r,n,i=e.partList[0];if(i.fragment.type===ui)return!1;if(t>=i.end+((null==(r=e.fragmentHint)?void 0:r.duration)||0))if((this.hls.hasEnoughToStart?(null==(n=this.media)?void 0:n.currentTime)||this.lastCurrentTime:this.getLoadPosition())>i.start-i.fragment.duration)return!0}}return!1},r.getCurrentContext=function(e){var t=this.levels,r=this.fragCurrent,n=e.level,i=e.sn,a=e.part;if(null==t||!t[n])return this.warn("Levels object was unset while buffering fragment "+i+" of "+this.playlistLabel()+" "+n+". The current chunk will not be buffered."),null;var s=t[n],o=s.details,l=a>-1?Mt(o,i,a):null,u=l?l.fragment:Tt(o,i,r);return u?(r&&r!==u&&(u.stats=r.stats),{frag:u,part:l,level:s}):null},r.bufferFragmentData=function(e,t,r,n,i){if(this.state===Ka){var a=e.data1,s=e.data2,o=a;if(s&&(o=H(a,s)),o.length){var l=this.initPTS[t.cc];if(this.hls.trigger(ri.BUFFER_APPENDING,{type:e.type,frag:t,part:r,chunkMeta:n,offset:l?-l.baseTime/l.timescale:void 0,parent:t.type,data:o}),e.dropped&&e.independent&&!r){if(i)return;this.flushBufferGap(t)}}}},r.flushBufferGap=function(e){var t=this.media;if(t)if(_a.isBuffered(t,t.currentTime)){var r=t.currentTime,n=_a.bufferInfo(t,r,0),i=Math.min(2*this.config.maxFragLookUpTolerance,.25*e.duration),a=Math.max(Math.min(e.start-i,n.end-i),r+i);e.start-a>i&&this.flushMainBuffer(a,e.start)}else this.flushMainBuffer(0,e.start)},r.getFwdBufferInfo=function(e,t){var r,n=this.getLoadPosition();if(!Xn(n))return null;var i=this.lastCurrentTime>n||null!=(r=this.media)&&r.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(e,n,t,i)},r.getFwdBufferInfoAtPos=function(e,t,r,n){var i=_a.bufferInfo(e,t,n);if(0===i.len&&void 0!==i.nextStart){var a=this.fragmentTracker.getBufferedFrag(t,r);
vendor: 8,417 bytes, line 1
1if(a&&(i.nextStart<=a.end||a.gap)){var s=Math.max(Math.min(i.nextStart,a.end)-t,n);return _a.bufferInfo(e,t,s)}}return i},r.getMaxBufferLength=function(e){var t,r=this.config;return t=e?Math.max(8*r.maxBufferSize/e,r.maxBufferLength):r.maxBufferLength,Math.min(t,r.maxMaxBufferLength)},r.exceedsMaxBuffer=function(e,t,r){var n=e.nextStart;if(n&&r.start>n){var i=e.buffered;if(i){for(var a=e.len,s=e.bufferedIndex,o=i.length-1;o>s;o--)i[o].start<r.start&&(a+=i[o].end-i[o].start);return a>=t}}return!1},r.reduceMaxBufferLength=function(e,t){var r=this.config,n=Math.max(Math.min(e-t,r.maxBufferLength),t),i=Math.max(e-3*t,r.maxMaxBufferLength/2,n);return i>=n&&(r.maxMaxBufferLength=i,this.warn("Reduce max buffer length to "+i+"s"),!0)},r.getAppendedFrag=function(e,t){void 0===t&&(t=oi);var r=this.fragmentTracker?this.fragmentTracker.getAppendedFrag(e,t):null;return r&&"fragment"in r?r.fragment:r},r.getNextFragment=function(e,t){var r=t.fragments,n=r.length;if(!n)return null;var i=this.config,a=t.fragmentStart,s=i.lowLatencyMode&&!!t.partList,o=null;if(t.live){var l=i.initialLiveManifestSize;if(n<l)return this.warn("Not enough fragments to start playback (have: "+n+", need: "+l+")"),null;if(!t.PTSKnown&&!this.startFragRequested&&-1===this.startPosition||e<a){var u;s&&!this.loadingParts&&(this.log("LL-Part loading ON for initial live fragment"),this.loadingParts=!0),o=this.getInitialLiveFragment(t);var d,c,h=this.config.startPosition,f=this.hls.startPosition,m=this.hls.liveSyncPosition,p=(null==(u=o)?void 0:u.start)||0;-1!==f&&f>=a?(d=f,c=f===h?"config":"next load start"):null!==m?(d=m,c="live edge"):(d=e,c="buffer pos"),d<p&&(d=p,c="live frag start"),d<a&&(d=a,c="playlist start"),this.startPosition==d&&this.nextLoadPosition==d||(this.log("Setting startPosition to "+d.toFixed(3)+" "+(-1===f?"":"(from "+h+") ")+"based on "+c+". live edge: "+m+" live frag start: "+p.toFixed(3)+" playlist start: "+a.toFixed(3)+" buffer pos: "+e),this.startPosition=this.nextLoadPosition=d)}}else e<=a&&(o=r[0]);o||(o=this.getFragmentAtPosition(e,this.loadingParts?t.partEnd:t.fragmentEnd,t));var g=this.filterReplacedPrimary(o,t);!g&&o&&(g=this.filterReplacedPrimary(r[o.sn-t.startSN+1]||null,t));return this.mapToInitFragWhenRequired(g)},r.isLoopLoading=function(e,t){if(this.nextLoadPosition<=t)return!1;var r=this.fragmentTracker.getState(e);return r===na||r===ra&&!!e.gap},r.getNextFragmentLoopLoading=function(e,t,r,n,i){var a=null;if(e.gap&&(a=this.getNextFragment(this.nextLoadPosition,t))&&!a.gap&&r.nextStart){var s=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,r.nextStart,n,0);if(null!==s&&r.len+s.len>=i){var o=a.sn;return this.loopSn!==o&&(this.log('buffer full after gaps in "'+n+'" playlist starting at sn: '+o),this.loopSn=o),null}}return this.loopSn=void 0,a},r.filterReplacedPrimary=function(e,t){if(!e)return e;if(Ot(this.config)&&e.type!==ui){var r=this.hls.interstitialsManager,n=null==r?void 0:r.bufferingItem;if(n){var i=n.event;if(i){if(i.appendInPlace||Math.abs(e.start-n.start)>1||0===n.start)return null}else{if(e.end<=n.start&&!1===(null==t?void 0:t.live))return null;if(e.start>n.end&&n.nextEvent&&(n.nextEvent.appendInPlace||e.start-n.end>1))return null}}var a=null==r?void 0:r.playerQueue;if(a)for(var s=a.length;s--;){var o=a[s].interstitial;if(o.appendInPlace&&e.start>=o.startTime&&e.end<=o.resumeTime)return null}}return e},r.mapToInitFragWhenRequired=function(e){return null==e||!e.initSegment||e.initSegment.data||this.bitrateTest?e:e.initSegment},r.getNextPart=function(e,t,r){for(var n=-1,i=!1,a=!0,s=0,o=e.length;s<o;s++){var l=e[s];if(a=a&&!l.independent,n>-1&&r<l.start)break;var u=l.loaded;u?n=-1:(i||(l.independent||a)&&l.fragment===t)&&(l.fragment!==t&&this.warn("Need buffer at "+r+" but next unloaded part starts at "+l.start),n=s),i=u}return n},r.loadedEndOfParts=function(e,t){for(var r,n=e.length;n--;){if(!(r=e[n]).loaded)return!1;if(t>r.start)return!0}return!1},r.getInitialLiveFragment=function(e){var t=e.fragments,r=this.fragPrevious,n=null;if(r){if(e.hasProgramDateTime&&(n=function(e,t,r){if(null===t||!Array.isArray(e)||!e.length||!Xn(t))return null;if(t<(e[0].programDateTime||0))return null;if(t>=(e[e.length-1].endProgramDateTime||0))return null;for(var n=0;n<e.length;++n){var i=e[n];if(ke(t,r,i))return i}return null}(t,r.endProgramDateTime,this.config.maxFragLookUpTolerance))&&this.log("Live playlist, switching playlist, load frag with same PDT: "+r.programDateTime),!n){var i=r.sn+1;if(i>=e.startSN&&i<=e.endSN){var a=t[i-e.startSN];r.cc===a.cc&&this.log("Live playlist, switching playlist, load frag with next SN: "+(n=a).sn)}n||(n=Se(e,r.cc,r.end))&&this.log("Live playlist, switching playlist, load frag with same CC: "+n.sn)}}else{var s=this.hls.liveSyncPosition;null!==s&&(n=this.getFragmentAtPosition(s,this.bitrateTest?e.fragmentEnd:e.edge,e))}return n},r.getFragmentAtPosition=function(e,t,r){var n,i,a=this.fragPrevious,s=r.fragments,o=r.endSN,l=r.fragmentHint,u=this.config.maxFragLookUpTolerance,d=r.partList,c=!!(this.loadingParts&&null!=d&&d.length&&l);(c&&!this.bitrateTest&&d[d.length-1].fragment.sn===l.sn&&(s=s.concat(l),o=l.sn),e<t)?n=Te(a,s,e,e<this.lastCurrentTime||e>t-u||null!=(i=this.media)&&i.paused||!this.startFragRequested?0:u):n=s[s.length-1];if(n){var h=n.sn-r.startSN,f=this.fragmentTracker.getState(n);if((f===na||f===ra&&n.gap)&&(a=n),a&&n.sn===a.sn&&(!c||d[0].fragment.sn>n.sn||!r.live))if(n.level===a.level){var m=s[h+1];n=n.sn<o&&this.fragmentTracker.getState(m)!==na?m:null}}return n},r.alignPlaylists=function(e,t,r){var n=e.fragments.length;if(!n)return this.warn("No fragments in live playlist"),0;var i=e.fragmentStart,a=!t,s=e.alignedSliding&&Xn(i);if(a||!s&&!i){!function(e,t){e&&(xt(t,e),t.alignedSliding||Ct(t,e),t.alignedSliding||t.skippedSegments||yt(e,t,!1))}(r,e);var o=e.fragmentStart;return this.log("Live playlist sliding: "+o.toFixed(2)+" start-sn: "+(t?t.startSN:"na")+"->"+e.startSN+" fragments: "+n),o}return i},r.waitForCdnTuneIn=function(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,3*e.partTarget)},r.setStartPosition=function(e,t){var r=this.startPosition;r<t&&(r=-1);var n=this.timelineOffset;if(-1===r){var i=null!==this.startTimeOffset,a=i?this.startTimeOffset:e.startTimeOffset;null!==a&&Xn(a)?(r=t+a,a<0&&(r+=e.edge),r=Math.min(Math.max(t,r),t+e.totalduration),this.log("Setting startPosition to "+r+" for start time offset "+a+" found in "+(i?"multivariant":"media")+" playlist"),this.startPosition=r):e.live?(this.log("Setting startPosition to -1 to start at live edge "+(r=this.hls.liveSyncPosition||t)),this.startPosition=-1):(this.log("setting startPosition to 0 by default"),this.startPosition=r=0),this.lastCurrentTime=r+n}this.nextLoadPosition=r+n},r.getLoadPosition=function(){var e,t=this.media,r=0;return null!=(e=this.hls)&&e.hasEnoughToStart&&t?r=t.currentTime:this.nextLoadPosition>=0&&(r=this.nextLoadPosition),r},r.handleFragLoadAborted=function(e,t){this.transmuxer&&e.type===this.playlistType&&k(e)&&e.stats.aborted&&(this.log("Fragment "+e.sn+(t?" part "+t.index:"")+" of "+this.playlistLabel()+" "+e.level+" was aborted"),this.resetFragmentLoading(e))},r.resetFragmentLoading=function(e){this.fragCurrent&&(this.fragContextChanged(e)||this.state===Ga)||(this.state=Ha)},r.onFragmentOrKeyLoadError=function(e,t){var r;if(t.chunkMeta&&!t.frag){var n=this.getCurrentContext(t.chunkMeta);n&&(t.frag=n.frag)}var i=t.frag;if(i&&i.type===e&&this.levels)if(this.fragContextChanged(i)){var a;this.warn("Frag load error must match current frag to retry "+i.url+" > "+(null==(a=this.fragCurrent)?void 0:a.url))}else{var s=t.details===ti.FRAG_GAP;s&&this.fragmentTracker.fragBuffered(i,!0);var o=t.errorAction;if(o){var l=o.action,u=o.retryCount,d=void 0===u?0:u,c=o.retryConfig,h=!!c,f=h&&l===qi,m=h&&!o.resolved&&o.flags===Qi,p=null==(r=this.hls.latestLevelDetails)?void 0:r.live;if(!f&&m&&k(i)&&!i.endList&&p&&!Ee(t))this.resetFragmentErrors(e),this.treatAsGap(i),o.resolved=!0;else if((f||m)&&d<c.maxNumRetry){var g,_=Re(null==(g=t.response)?void 0:g.code),v=Ie(c,d);if(this.resetStartWhenNotLoaded(),this.retryDate=self.performance.now()+v,this.state=Ga,o.resolved=!0,_)return this.log("Waiting for connection (offline)"),this.retryDate=1/0,void(t.reason="offline");this.warn("Fragment "+i.sn+" of "+e+" "+i.level+" errored with "+t.details+", retrying loading "+(d+1)+"/"+c.maxNumRetry+" in "+v+"ms")}
vendor: 4,509 bytes, line 1
1else if(c){if(this.resetFragmentErrors(e),!(d<c.maxNumRetry))return void this.warn(t.details+" reached or exceeded max retry ("+d+")");s||l===zi||(o.resolved=!0)}else this.state=l===Ki?Xa:Ja;this.tickImmediate()}else this.state=Ja}},r.checkRetryDate=function(){var e=self.performance.now(),t=this.retryDate,r=t===1/0;(!t||e>=t||r&&!Re(0))&&(r&&this.log("Connection restored (online)"),this.resetStartWhenNotLoaded(),this.state=Ha)},r.reduceLengthAndFlushBuffer=function(e){if(this.state===Ka||this.state===za){var t=e.frag,r=e.parent,n=this.getFwdBufferInfo(this.mediaBuffer,r),i=n&&n.len>.5;i&&this.reduceMaxBufferLength(n.len,(null==t?void 0:t.duration)||10);var a=!i;return a&&this.warn("Buffer full error while media.currentTime ("+this.getLoadPosition()+") is not buffered, flush "+r+" buffer"),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),a}return!1},r.resetFragmentErrors=function(e){e===li&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==Ua&&(this.state=Ha)},r.afterBufferFlushed=function(e,t,r){if(e){var n=_a.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,n,r),this.state===qa&&this.resetLoadingState()}},r.resetLoadingState=function(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==Ua&&(this.state=Ha)},r.resetStartWhenNotLoaded=function(){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;var e=this.levelLastLoaded,t=e?e.details:null;null!=t&&t.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(t,t.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}},r.resetWhenMissingContext=function(e){this.log("Loading context changed while buffering sn "+e.sn+" of "+this.playlistLabel()+" "+(-1===e.level?"<removed>":e.level)+". This chunk will not be buffered."),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(),this.resetLoadingState()},r.removeUnbufferedFrags=function(e){void 0===e&&(e=0),this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)},r.updateLevelTiming=function(e,t,r,n){var i=this,a=r.details;if(a){if(!Object.keys(e.elementaryStreams).reduce((function(t,s){var o=e.elementaryStreams[s];if(o){var l=o.endPTS-o.startPTS;if(l<=0)return i.warn("Could not parse fragment "+e.sn+" "+s+" duration reliably ("+l+")"),t||!1;var u=n?0:gt(a,e,o.startPTS,o.endPTS,o.startDTS,o.endDTS,i);return i.hls.trigger(ri.LEVEL_PTS_UPDATED,{details:a,level:r,drift:u,type:s,frag:e,start:o.startPTS,end:o.endPTS}),!0}return t}),!1)){var s,o=null===(null==(s=this.transmuxer)?void 0:s.error);if((0===r.fragmentError||o&&(r.fragmentError<2||e.endList))&&this.treatAsGap(e,r),o){var l=new Error("Found no media in fragment "+e.sn+" of "+this.playlistLabel()+" "+e.level+" resetting transmuxer to fallback to playlist timing");if(this.warn(l.message),this.hls.trigger(ri.ERROR,{type:ei.MEDIA_ERROR,details:ti.FRAG_PARSING_ERROR,fatal:!1,error:l,frag:e,reason:"Found no media in msn "+e.sn+" of "+this.playlistLabel()+' "'+r.url+'"'}),!this.hls)return;this.resetTransmuxer()}}this.state=za,this.log("Parsed "+e.type+" sn: "+e.sn+(t?" part: "+t.index:"")+" of "+this.fragInfo(e,!1,t)+")"),this.hls.trigger(ri.FRAG_PARSED,{frag:e,part:t})}else this.warn("level.details undefined")},r.playlistLabel=function(){return this.playlistType===oi?"level":"track"},r.fragInfo=function(e,t,r){var n,i;return void 0===t&&(t=!0),this.playlistLabel()+" "+e.level+" ("+(r?"part":"frag")+":["+(null!=(n=t&&!r?e.startPTS:(r||e).start)?n:NaN).toFixed(3)+"-"+(null!=(i=t&&!r?e.endPTS:(r||e).end)?i:NaN).toFixed(3)+"]"+(r&&"main"===e.type?"INDEPENDENT="+(r.independent?"YES":"NO"):"")},r.treatAsGap=function(e,t){t&&t.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)},r.resetTransmuxer=function(){var e;null==(e=this.transmuxer)||e.reset()},r.recoverWorkerError=function(e){"demuxerWorker"===e.event&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),this.resetStartWhenNotLoaded(),this.resetLoadingState())},c(t,[{key:"startPositionValue",get:function(){var e=this.nextLoadPosition,t=this.startPosition;return-1===t&&e?e:t}},{key:"bufferingEnabled",get:function(){return this.buffering}},{key:"inFlightFrag",get:function(){return{frag:this.fragCurrent,state:this.state}}},{key:"timelineOffset",get:function(){var e,t=this.config.timelineOffset;
vendor: 10,460 bytes, line 1
1return t?(null==(e=this.getLevelDetails())?void 0:e.appliedTimelineOffset)||t:0}},{key:"primaryPrefetch",get:function(){var e;if(Ot(this.config)&&(null==(e=this.hls.interstitialsManager)||null==(e=e.playingItem)?void 0:e.event))return!0;return!1}},{key:"state",set:function(e){var t=this._state;t!==e&&(this._state=e,this.log(t+"->"+e))},get:function(){return this._state}}]),t}(ma),$a=function(){function e(){this.chunks=[],this.dataLength=0}var t=e.prototype;return t.push=function(e){this.chunks.push(e),this.dataLength+=e.length},t.flush=function(){var e,t=this.chunks;return t.length?(e=1===t.length?t[0]:function(e,t){for(var r=new Uint8Array(t),n=0,i=0;i<e.length;i++){var a=e[i];r.set(a,n),n+=a.length}return r}(t,this.dataLength),this.reset(),e):new Uint8Array(0)},t.reset=function(){this.chunks.length=0,this.dataLength=0},e}(),es={exports:{}},ts=M((Qn||(Qn=1,function(e){function t(){}function r(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function n(e,t,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new r(n,i||e,a),l=o?o+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function i(e,r){0==--e._eventsCount?e._events=new t:delete e._events[r]}function a(){this._events=new t,this._eventsCount=0}var s=Object.prototype.hasOwnProperty,o="~";Object.create&&(t.prototype=Object.create(null),(new t).__proto__||(o=!1)),a.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)s.call(e,t)&&r.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},a.prototype.listeners=function(e){var t=this._events[o?o+e:e];if(!t)return[];if(t.fn)return[t.fn];for(var r=0,n=t.length,i=new Array(n);r<n;r++)i[r]=t[r].fn;return i},a.prototype.listenerCount=function(e){var t=this._events[o?o+e:e];return t?t.fn?1:t.length:0},a.prototype.emit=function(e,t,r,n,i,a){var s=o?o+e:e;if(!this._events[s])return!1;var l,u,d=this._events[s],c=arguments.length;if(d.fn){switch(d.once&&this.removeListener(e,d.fn,void 0,!0),c){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,r),!0;case 4:return d.fn.call(d.context,t,r,n),!0;case 5:return d.fn.call(d.context,t,r,n,i),!0;case 6:return d.fn.call(d.context,t,r,n,i,a),!0}for(u=1,l=new Array(c-1);u<c;u++)l[u-1]=arguments[u];d.fn.apply(d.context,l)}else{var h,f=d.length;for(u=0;u<f;u++)switch(d[u].once&&this.removeListener(e,d[u].fn,void 0,!0),c){case 1:d[u].fn.call(d[u].context);break;case 2:d[u].fn.call(d[u].context,t);break;case 3:d[u].fn.call(d[u].context,t,r);break;case 4:d[u].fn.call(d[u].context,t,r,n);break;default:if(!l)for(h=1,l=new Array(c-1);h<c;h++)l[h-1]=arguments[h];d[u].fn.apply(d[u].context,l)}}return!0},a.prototype.on=function(e,t,r){return n(this,e,t,r,!1)},a.prototype.once=function(e,t,r){return n(this,e,t,r,!0)},a.prototype.removeListener=function(e,t,r,n){var a=o?o+e:e;if(!this._events[a])return this;if(!t)return i(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||n&&!s.once||r&&s.context!==r||i(this,a);else{for(var l=0,u=[],d=s.length;l<d;l++)(s[l].fn!==t||n&&!s[l].once||r&&s[l].context!==r)&&u.push(s[l]);u.length?this._events[a]=1===u.length?u[0]:u:i(this,a)}return this},a.prototype.removeAllListeners=function(e){var r;return e?this._events[r=o?o+e:e]&&i(this,r):(this._events=new t,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=o,a.EventEmitter=a,e.exports=a}(es)),es.exports)),rs={},ns=function(e){return e.audioId3="org.id3",e.dateRange="com.apple.quicktime.HLS",e.emsg="https://aomedia.org/emsg/ID3",e.misbklv="urn:misb:KLV:bin:1910.1",e}({}),is=function(){function e(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}var t=e.prototype;return t.resetInitSegment=function(){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},t.resetTimeStamp=function(e){this.initPTS=e,this.resetContiguity()},t.resetContiguity=function(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0},t.canParse=function(){return!1},t.appendFrame=function(){},t.demux=function(e,t){this.cachedData&&(e=H(this.cachedData,e),this.cachedData=null);var r,n=jt(e,0),i=n?n.length:0,a=this._audioTrack,s=this._id3Track,o=n?rr(n):void 0,l=e.length;for((null===this.basePTS||0===this.frameIndex&&Xn(o))&&(this.basePTS=as(o,t,this.initPTS),this.lastPTS=this.basePTS),null===this.lastPTS&&(this.lastPTS=this.basePTS),n&&n.length>0&&s.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:ns.audioId3,duration:Number.POSITIVE_INFINITY});i<l;){if(this.canParse(e,i)){var u=this.appendFrame(a,e,i);u?(this.frameIndex++,this.lastPTS=u.sample.pts,r=i+=u.length):i=l}else qt(e,i)?(n=jt(e,i),s.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:ns.audioId3,duration:Number.POSITIVE_INFINITY}),r=i+=n.length):i++;if(i===l&&r!==l){var d=e.slice(r);this.cachedData=this.cachedData?H(this.cachedData,d):d}}return{audioTrack:a,videoTrack:nr(),id3Track:s,textTrack:nr()}},t.demuxSampleAes=function(){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},t.flush=function(){var e=this.cachedData;return e&&(this.cachedData=null,this.demux(e,0)),{audioTrack:this._audioTrack,videoTrack:nr(),id3Track:this._id3Track,textTrack:nr()}},t.destroy=function(){this.cachedData=null,this._audioTrack=this._id3Track=void 0},e}(),as=function(e,t,r){return Xn(e)?90*e:9e4*t+(r?9e4*r.baseTime/r.timescale:0)},ss=null,os=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],ls=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],us=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],ds=[0,1,1,4],cs=function(e){function t(t,r){var n;return(n=e.call(this)||this).observer=void 0,n.config=void 0,n.observer=t,n.config=r,n}u(t,e);var r=t.prototype;return r.resetInitSegment=function(t,r,n,i){e.prototype.resetInitSegment.call(this,t,r,n,i),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:r,duration:i,inputTimeScale:9e4,dropped:0}},t.probe=function(e,t){if(!e)return!1;var r=jt(e,0),n=(null==r?void 0:r.length)||0;if(lr(e,n))return!1;for(var i=e.length;n<i;n++)if(Gt(e,n))return t.log("ADTS sync word found !"),!0;return!1},r.canParse=function(e,t){return function(e,t){return function(e,t){return t+5<e.length}(e,t)&&Ut(e,t)&&Bt(e,t)<=e.length-t}(e,t)},r.appendFrame=function(e,t,r){Vt(e,this.observer,t,r,e.manifestCodec);var n=zt(e,t,r,this.basePTS,this.frameIndex);if(n&&0===n.missing)return n},t}(is),hs=function(e,t){var r=0,n=5;t+=n;for(var i=new Uint32Array(1),a=new Uint32Array(1),s=new Uint8Array(1);n>0;){s[0]=e[t];var o=Math.min(n,8),l=8-o;a[0]=4278190080>>>24+l<<l,i[0]=(s[0]&a[0])>>l,r=r?r<<o|i[0]:i[0],t+=1,n-=o}return r},fs=function(e){function t(t){var r;return(r=e.call(this)||this).observer=void 0,r.observer=t,r}u(t,e);var r=t.prototype;return r.resetInitSegment=function(t,r,n,i){e.prototype.resetInitSegment.call(this,t,r,n,i),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:r,duration:i,inputTimeScale:9e4,dropped:0}},r.canParse=function(e,t){return t+64<e.length},r.appendFrame=function(e,t,r){var n=ur(e,t,r,this.basePTS,this.frameIndex);if(-1!==n)return{sample:e.samples[e.samples.length-1],length:n,missing:0}},t.probe=function(e){if(!e)return!1;var t=jt(e,0);if(!t)return!1;var r=t.length;return 11===e[r]&&119===e[r+1]&&void 0!==rr(t)&&hs(e,r)<16},t}(is),ms=function(e){function t(){return e.apply(this,arguments)||this}u(t,e);var r=t.prototype;return r.resetInitSegment=function(t,r,n,i){e.prototype.resetInitSegment.call(this,t,r,n,i),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:r,duration:i,inputTimeScale:9e4,dropped:0}},t.probe=function(e){if(!e)return!1;var t=jt(e,0),r=(null==t?void 0:t.length)||0;if(t&&11===e[r]&&119===e[r+1]&&void 0!==rr(t)&&hs(e,r)<=16)return!1;for(var n=e.length;r<n;r++)if(lr(e,r))return gi.log("MPEG Audio sync word found !"),!0;return!1},r.canParse=function(e,t){return function(e,t){return sr(e,t)&&4<=e.length-t}(e,t)},r.appendFrame=function(e,t,r){if(null!==this.basePTS)return ir(e,t,r,this.basePTS,this.frameIndex)},t}(is),ps=/\/emsg[-/]ID3/i,gs=function(){function e(e,t){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=t}var t=e.prototype;return t.resetTimeStamp=function(){},t.resetInitSegment=function(e,t,r,n){var i=this.videoTrack=nr("video",1),a=this.audioTrack=nr("audio",1),s=this.txtTrack=nr("text",1);if(this.id3Track=nr("id3",1),this.timeOffset=0,null!=e&&e.byteLength){var o=R(e);if(o.video){var l=o.video,u=l.timescale,d=l.codec,c=l.supplemental;i.id=l.id,i.timescale=s.timescale=u,i.codec=d,i.supplemental=c}if(o.audio){var h=o.audio,f=h.timescale,m=h.codec;a.id=h.id,a.timescale=f,a.codec=m}s.id=Ei.text,i.sampleDuration=0,i.duration=a.duration=n}},t.resetContiguity=function(){this.remainderData=null},e.probe=function(e){return function(e){for(var t=e.byteLength,r=0;r<t;){var n=E(e,r);if(n>8&&109===e[r+4]&&111===e[r+5]&&111===e[r+6]&&102===e[r+7])return!0;r=n>1?r+n:t}return!1}(e)},t.demux=function(e,t){this.timeOffset=t;var r=e,n=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(r=H(this.remainderData,e));var a=function(e){var t={valid:null,remainder:null},r=x(e,["moof"]);if(r.length<2)return t.remainder=e,t;var n=r[r.length-1];return t.valid=e.slice(0,n.byteOffset-8),t.remainder=e.slice(n.byteOffset-8),t}(r);this.remainderData=a.remainder,n.samples=a.valid||new Uint8Array}else n.samples=r;var s=this.extractID3Track(n,t);return i.samples=B(t,n),{videoTrack:n,audioTrack:this.audioTrack,id3Track:s,textTrack:this.txtTrack}},t.flush=function(){var e=this.timeOffset,t=this.videoTrack,r=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;var n=this.extractID3Track(t,this.timeOffset);
vendor: 15,859 bytes, line 1
1return r.samples=B(e,t),{videoTrack:t,audioTrack:nr(),id3Track:n,textTrack:nr()}},t.extractID3Track=function(e,t){var r=this,n=this.id3Track;if(e.samples.length){var i=x(e.samples,["emsg"]);i&&i.forEach((function(e){var i=function(e){var t=e[0],r="",n="",i=0,a=0,s=0,o=0,l=0,u=0;if(0===t){for(;"\0"!==w(e.subarray(u,u+1));)r+=w(e.subarray(u,u+1)),u+=1;for(r+=w(e.subarray(u,u+1)),u+=1;"\0"!==w(e.subarray(u,u+1));)n+=w(e.subarray(u,u+1)),u+=1;n+=w(e.subarray(u,u+1)),u+=1,i=E(e,12),a=E(e,16),o=E(e,20),l=E(e,24),u=28}else if(1===t){i=E(e,u+=4);var d=E(e,u+=4),c=E(e,u+=4);for(u+=4,s=Math.pow(2,32)*d+c,Zn(s)||(s=Number.MAX_SAFE_INTEGER,gi.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),o=E(e,u),l=E(e,u+=4),u+=4;"\0"!==w(e.subarray(u,u+1));)r+=w(e.subarray(u,u+1)),u+=1;for(r+=w(e.subarray(u,u+1)),u+=1;"\0"!==w(e.subarray(u,u+1));)n+=w(e.subarray(u,u+1)),u+=1;n+=w(e.subarray(u,u+1)),u+=1}return{schemeIdUri:r,value:n,timeScale:i,presentationTime:s,presentationTimeDelta:a,eventDuration:o,id:l,payload:e.subarray(u,e.byteLength)}}(e);if(ps.test(i.schemeIdUri)){var a=dr(i,t),s=4294967295===i.eventDuration?Number.POSITIVE_INFINITY:i.eventDuration/i.timeScale;s<=.001&&(s=Number.POSITIVE_INFINITY);var o=i.payload;n.samples.push({data:o,len:o.byteLength,dts:a,pts:a,type:ns.emsg,duration:s})}else if(r.config.enableEmsgKLVMetadata&&i.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){var l=dr(i,t);n.samples.push({data:i.payload,len:i.payload.byteLength,dts:l,pts:l,type:ns.misbklv,duration:Number.POSITIVE_INFINITY})}}))}return n},t.demuxSampleAes=function(){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},t.destroy=function(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0},e}(),_s=function(){function e(e,t,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new da(t,{removePKCS7Padding:!1})}var t=e.prototype;return t.decryptBuffer=function(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,aa)},t.decryptAacSample=function(e,t,r){var n=this,i=e[t].unit;if(!(i.length<=16)){var a=i.subarray(16,i.length-i.length%16),s=a.buffer.slice(a.byteOffset,a.byteOffset+a.length);this.decryptBuffer(s).then((function(a){var s=new Uint8Array(a);i.set(s,16),n.decrypter.isSync()||n.decryptAacSamples(e,t+1,r)})).catch(r)}},t.decryptAacSamples=function(e,t,r){for(;;t++){if(t>=e.length)return void r();if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,r),!this.decrypter.isSync()))return}},t.getAvcEncryptedData=function(e){for(var t=16*Math.floor((e.length-48)/160)+16,r=new Int8Array(t),n=0,i=32;i<e.length-16;i+=160,n+=16)r.set(e.subarray(i,i+16),n);return r},t.getAvcDecryptedUnit=function(e,t){for(var r=new Uint8Array(t),n=0,i=32;i<e.length-16;i+=160,n+=16)e.set(r.subarray(n,n+16),i);return e},t.decryptAvcSample=function(e,t,r,n,i){var a=this,s=K(i.data),o=this.getAvcEncryptedData(s);this.decryptBuffer(o.buffer).then((function(o){i.data=a.getAvcDecryptedUnit(s,o),a.decrypter.isSync()||a.decryptAvcSamples(e,t,r+1,n)})).catch(n)},t.decryptAvcSamples=function(e,t,r,n){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,r=0){if(t>=e.length)return void n();for(var i=e[t].units;!(r>=i.length);r++){var a=i[r];if(!(a.data.length<=48||1!==a.type&&5!==a.type||(this.decryptAvcSample(e,t,r,n,a),this.decrypter.isSync())))return}}},e}(),vs=function(){function e(){this.VideoSample=null}var t=e.prototype;return t.createVideoSample=function(e,t,r){return{key:e,frame:!1,pts:t,dts:r,units:[],length:0}},t.getLastNalUnit=function(e){var t,r,n=this.VideoSample;if(n&&0!==n.units.length||(n=e[e.length-1]),null!=(t=n)&&t.units){var i=n.units;r=i[i.length-1]}return r},t.pushAccessUnit=function(e,t){if(e.units.length&&e.frame){if(void 0===e.pts){var r=t.samples,n=r.length;if(!n)return void t.dropped++;var i=r[n-1];e.pts=i.pts,e.dts=i.dts}t.samples.push(e)}},t.parseNALu=function(e,t){var r,n,i=t.byteLength,a=e.naluState||0,s=a,o=[],l=0,u=-1,d=0;for(-1===a&&(u=0,d=this.getNALuType(t,0),a=0,l=1);l<i;)if(r=t[l++],a)if(1!==a)if(r)if(1===r){if(n=l-a-1,u>=0){var c={data:t.subarray(u,n),type:d};o.push(c)}else{var h=this.getLastNalUnit(e.samples);h&&(s&&l<=4-s&&h.state&&(h.data=h.data.subarray(0,h.data.byteLength-s)),n>0&&(h.data=H(h.data,t.subarray(0,n)),h.state=0))}l<i?(u=l,d=this.getNALuType(t,l),a=0):a=-1}else a=0;else a=3;else a=r?0:2;else a=r?0:1;if(u>=0&&a>=0){var f={data:t.subarray(u,i),type:d,state:a};o.push(f)}if(0===o.length){var m=this.getLastNalUnit(e.samples);m&&(m.data=H(m.data,t))}return e.naluState=a,o},e}(),ys=function(){function e(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}var t=e.prototype;return t.loadWord=function(){var e=this.data,t=this.bytesAvailable,r=e.byteLength-t,n=new Uint8Array(4),i=Math.min(4,t);if(0===i)throw new Error("no bytes available");n.set(e.subarray(r,r+i)),this.word=new DataView(n.buffer).getUint32(0),this.bitsAvailable=8*i,this.bytesAvailable-=i},t.skipBits=function(e){var t;e=Math.min(e,8*this.bytesAvailable+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,e-=(t=e>>3)<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)},t.readBits=function(e){var t=Math.min(this.bitsAvailable,e),r=this.word>>>32-t;if(e>32&&gi.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else{if(!(this.bytesAvailable>0))throw new Error("no bits available");this.loadWord()}return(t=e-t)>0&&this.bitsAvailable?r<<t|this.readBits(t):r},t.skipLZ=function(){var e;for(e=0;e<this.bitsAvailable;++e)if(0!=(this.word&2147483648>>>e))return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()},t.skipUEG=function(){this.skipBits(1+this.skipLZ())},t.skipEG=function(){this.skipBits(1+this.skipLZ())},t.readUEG=function(){var e=this.skipLZ();return this.readBits(e+1)-1},t.readEG=function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)},t.readBoolean=function(){return 1===this.readBits(1)},t.readUByte=function(){return this.readBits(8)},t.readUShort=function(){return this.readBits(16)},t.readUInt=function(){return this.readBits(32)},e}(),Ls=function(e){function t(){return e.apply(this,arguments)||this}u(t,e);var r=t.prototype;return r.parsePES=function(e,t,r,n){var i,a=this,s=this.parseNALu(e,r.data,n),o=this.VideoSample,l=!1;r.data=null,o&&s.length&&!e.audFound&&(this.pushAccessUnit(o,e),o=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts)),s.forEach((function(n){var s,u;switch(n.type){case 1:var d=!1;i=!0;var c,h=n.data;if(l&&h.length>4){var f=a.readSliceType(h);2!==f&&4!==f&&7!==f&&9!==f||(d=!0)}if(d)null!=(c=o)&&c.frame&&!o.key&&(a.pushAccessUnit(o,e),o=a.VideoSample=null);o||(o=a.VideoSample=a.createVideoSample(!0,r.pts,r.dts)),o.frame=!0,o.key=d;break;case 5:i=!0,null!=(s=o)&&s.frame&&!o.key&&(a.pushAccessUnit(o,e),o=a.VideoSample=null),o||(o=a.VideoSample=a.createVideoSample(!0,r.pts,r.dts)),o.key=!0,o.frame=!0;break;case 6:i=!0,V(n.data,1,r.pts,t.samples);break;case 7:var m,p;i=!0,l=!0;var g=n.data,_=a.readSPS(g);if(!e.sps||e.width!==_.width||e.height!==_.height||(null==(m=e.pixelRatio)?void 0:m[0])!==_.pixelRatio[0]||(null==(p=e.pixelRatio)?void 0:p[1])!==_.pixelRatio[1]){e.width=_.width,e.height=_.height,e.pixelRatio=_.pixelRatio,e.sps=[g];for(var v=g.subarray(1,4),y="avc1.",L=0;L<3;L++){var b=v[L].toString(16);b.length<2&&(b="0"+b),y+=b}e.codec=y}break;case 8:i=!0,e.pps=[n.data];break;case 9:i=!0,e.audFound=!0,null!=(u=o)&&u.frame&&(a.pushAccessUnit(o,e),o=null),o||(o=a.VideoSample=a.createVideoSample(!1,r.pts,r.dts));break;case 12:i=!0;break;default:i=!1}o&&i&&o.units.push(n)})),n&&o&&(this.pushAccessUnit(o,e),this.VideoSample=null)},r.getNALuType=function(e,t){return 31&e[t]},r.readSliceType=function(e){var t=new ys(e);return t.readUByte(),t.readUEG(),t.readUEG()},r.skipScalingList=function(e,t){for(var r=8,n=8,i=0;i<e;i++)0!==n&&(n=(r+t.readEG()+256)%256),r=0===n?r:n},r.readSPS=function(e){var t,r,n,i=new ys(e),a=0,s=0,o=0,l=0,u=i.readUByte.bind(i),d=i.readBits.bind(i),c=i.readUEG.bind(i),h=i.readBoolean.bind(i),f=i.skipBits.bind(i),m=i.skipEG.bind(i),p=i.skipUEG.bind(i),g=this.skipScalingList.bind(this);u();var _=u();if(d(5),f(3),u(),p(),100===_||110===_||122===_||244===_||44===_||83===_||86===_||118===_||128===_){var v=c();if(3===v&&f(1),p(),p(),f(1),h())for(r=3!==v?8:12,n=0;n<r;n++)h()&&g(n<6?16:64,i)}p();var y=c();if(0===y)c();else if(1===y)for(f(1),m(),m(),t=c(),n=0;n<t;n++)m();p(),f(1);var L=c(),b=c(),T=d(1);0===T&&f(1),f(1),h()&&(a=c(),s=c(),o=c(),l=c());var M=[1,1];if(h()&&h())switch(u()){case 1:M=[1,1];break;case 2:M=[12,11];break;case 3:M=[10,11];break;case 4:M=[16,11];break;case 5:M=[40,33];break;case 6:M=[24,11];break;case 7:M=[20,11];break;case 8:M=[32,11];break;case 9:M=[80,33];break;case 10:M=[18,11];break;case 11:M=[15,11];break;case 12:M=[64,33];break;case 13:M=[160,99];break;case 14:M=[4,3];break;case 15:M=[3,2];break;case 16:M=[2,1];break;case 255:M=[u()<<8|u(),u()<<8|u()]}return{width:Math.ceil(16*(L+1)-2*a-2*s),height:(2-T)*(b+1)*16-(T?2:4)*(o+l),pixelRatio:M}},t}(vs),bs=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).initVPS=null,t}u(t,e);var r=t.prototype;return r.parsePES=function(e,t,r,n){var i,a=this,s=this.parseNALu(e,r.data,n),o=this.VideoSample,l=!1;r.data=null,o&&s.length&&!e.audFound&&(this.pushAccessUnit(o,e),o=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts)),s.forEach((function(n){var s,u;switch(n.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:o||(o=a.VideoSample=a.createVideoSample(!1,r.pts,r.dts)),o.frame=!0,i=!0;break;case 16:case 17:case 18:case 21:var d;if(i=!0,l)null!=(d=o)&&d.frame&&!o.key&&(a.pushAccessUnit(o,e),o=a.VideoSample=null);o||(o=a.VideoSample=a.createVideoSample(!0,r.pts,r.dts)),o.key=!0,o.frame=!0;break;case 19:case 20:i=!0,null!=(s=o)&&s.frame&&!o.key&&(a.pushAccessUnit(o,e),o=a.VideoSample=null),o||(o=a.VideoSample=a.createVideoSample(!0,r.pts,r.dts)),o.key=!0,o.frame=!0;break;case 39:i=!0,V(n.data,2,r.pts,t.samples);break;case 32:i=!0,e.vps||("object"!=typeof e.params&&(e.params={}),e.params=f(e.params,a.readVPS(n.data)),a.initVPS=n.data),e.vps=[n.data];break;case 33:if(i=!0,l=!0,void 0===e.vps||e.vps[0]===a.initVPS||void 0===e.sps||a.matchSPS(e.sps[0],n.data)||(a.initVPS=e.vps[0],e.sps=e.pps=void 0),!e.sps){var c=a.readSPS(n.data);for(var h in e.width=c.width,e.height=c.height,e.pixelRatio=c.pixelRatio,e.codec=c.codecString,e.sps=[],"object"!=typeof e.params&&(e.params={}),c.params)e.params[h]=c.params[h]}a.pushParameterSet(e.sps,n.data,e.vps),o||(o=a.VideoSample=a.createVideoSample(!0,r.pts,r.dts)),o.key=!0;break;case 34:if(i=!0,"object"==typeof e.params){if(!e.pps){e.pps=[];var m=a.readPPS(n.data);for(var p in m)e.params[p]=m[p]}a.pushParameterSet(e.pps,n.data,e.vps)}break;case 35:i=!0,e.audFound=!0,null!=(u=o)&&u.frame&&(a.pushAccessUnit(o,e),o=null),o||(o=a.VideoSample=a.createVideoSample(!1,r.pts,r.dts));break;default:i=!1}o&&i&&o.units.push(n)})),n&&o&&(this.pushAccessUnit(o,e),this.VideoSample=null)},r.pushParameterSet=function(e,t,r){(r&&r[0]===this.initVPS||!r&&!e.length)&&e.push(t)},r.getNALuType=function(e,t){return(126&e[t])>>>1},r.ebsp2rbsp=function(e){for(var t=new Uint8Array(e.byteLength),r=0,n=0;n<e.byteLength;n++)n>=2&&3===e[n]&&0===e[n-1]&&0===e[n-2]||(t[r]=e[n],r++);return new Uint8Array(t.buffer,0,r)},r.pushAccessUnit=function(t,r){e.prototype.pushAccessUnit.call(this,t,r),this.initVPS&&(this.initVPS=null)},r.readVPS=function(e){var t=new ys(e);return t.readUByte(),t.readUByte(),t.readBits(4),t.skipBits(2),t.readBits(6),{numTemporalLayers:t.readBits(3)+1,temporalIdNested:t.readBoolean()}},r.readSPS=function(e){var t=new ys(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.readBits(4);var r=t.readBits(3);t.readBoolean();for(var n=t.readBits(2),i=t.readBoolean(),a=t.readBits(5),s=t.readUByte(),o=t.readUByte(),l=t.readUByte(),u=t.readUByte(),d=t.readUByte(),c=t.readUByte(),h=t.readUByte(),f=t.readUByte(),m=t.readUByte(),p=t.readUByte(),g=t.readUByte(),_=[],v=[],y=0;y<r;y++)_.push(t.readBoolean()),v.push(t.readBoolean());if(r>0)for(var L=r;L<8;L++)t.readBits(2);for(var b=0;b<r;b++)_[b]&&(t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte()),v[b]&&t.readUByte();t.readUEG();var T=t.readUEG();3==T&&t.skipBits(1);var M=t.readUEG(),k=t.readUEG(),S=t.readBoolean(),w=0,D=0,E=0,A=0;S&&(w+=t.readUEG(),D+=t.readUEG(),E+=t.readUEG(),A+=t.readUEG());for(var I=t.readUEG(),x=t.readUEG(),C=t.readUEG(),R=t.readBoolean()?0:r;R<=r;R++)t.skipUEG(),t.skipUEG(),t.skipUEG();if((t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.readBoolean())&&t.readBoolean())for(var P=0;P<4;P++)for(var O=0;O<(3===P?2:6);O++){if(t.readBoolean()){var Y=Math.min(64,1<<4+(P<<1));P>1&&t.readEG();for(var F=0;F<Y;F++)t.readEG()}else t.readUEG()}t.readBoolean(),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.skipUEG(),t.skipUEG(),t.readBoolean());for(var N=t.readUEG(),j=0,U=0;U<N;U++){var H=!1;if(0!==U&&(H=t.readBoolean()),H){U===N&&t.readUEG(),t.readBoolean(),t.readUEG();for(var B=0,W=0;W<=j;W++){var G=t.readBoolean(),V=!1;G||(V=t.readBoolean()),(G||V)&&B++}j=B}else{var K=t.readUEG(),z=t.readUEG();j=K+z;for(var q=0;q<K;q++)t.readUEG(),t.readBoolean();for(var J=0;J<z;J++)t.readUEG(),t.readBoolean()}}if(t.readBoolean())for(var Q=t.readUEG(),X=0;X<Q;X++){for(var Z=0;Z<C+4;Z++)t.readBits(1);t.readBits(1)}var $=0,ee=1,te=1,re=!0,ne=1,ie=0;t.readBoolean(),t.readBoolean();if(t.readBoolean()){if(t.readBoolean()){var ae=t.readUByte();ae>0&&ae<16?(ee=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][ae-1],te=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][ae-1]):255===ae&&(ee=t.readBits(16),te=t.readBits(16))}if(t.readBoolean()&&t.readBoolean(),t.readBoolean())t.readBits(3),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.readUByte(),t.readUByte());if(t.readBoolean()&&(t.readUEG(),t.readUEG()),t.readBoolean(),t.readBoolean(),t.readBoolean(),t.readBoolean()&&(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG()),t.readBoolean())if(ne=t.readBits(32),ie=t.readBits(32),t.readBoolean()&&t.readUEG(),t.readBoolean()){var se=t.readBoolean(),oe=t.readBoolean(),le=!1;(se||oe)&&((le=t.readBoolean())&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),le&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(var ue=0;ue<=r;ue++){var de=!1;(re=t.readBoolean())||t.readBoolean()?t.readEG():de=t.readBoolean();var ce=de?1:t.readUEG()+1;if(se)for(var he=0;he<ce;he++)t.readUEG(),t.readUEG(),le&&(t.readUEG(),t.readUEG()),t.skipBits(1);if(oe)for(var fe=0;fe<ce;fe++)t.readUEG(),t.readUEG(),le&&(t.readUEG(),t.readUEG()),t.skipBits(1)}}t.readBoolean()&&(t.readBoolean(),t.readBoolean(),t.readBoolean(),$=t.readUEG())}var me=M,pe=k;if(S){var ge=1,_e=1;1===T?ge=_e=2:2==T&&(ge=2),me=M-ge*D-ge*w,pe=k-_e*A-_e*E}for(var ve=n?["A","B","C"][n]:"",ye=s<<24|o<<16|l<<8|u,Le=0,be=0;be<32;be++)Le=(Le|(ye>>be&1)<<31-be)>>>0;var Te=Le.toString(16);return 1===a&&"2"===Te&&(Te="6"),{codecString:"hvc1."+ve+a+"."+Te+"."+(i?"H":"L")+g+".B0",params:{general_tier_flag:i,general_profile_idc:a,general_profile_space:n,general_profile_compatibility_flags:[s,o,l,u],general_constraint_indicator_flags:[d,c,h,f,m,p],general_level_idc:g,bit_depth:I+8,bit_depth_luma_minus8:I,bit_depth_chroma_minus8:x,min_spatial_segmentation_idc:$,chroma_format_idc:T,frame_rate:{fixed:re,fps:ie/ne}},width:me,height:pe,pixelRatio:[ee,te]}}
vendor: 4,410 bytes, line 1
1,r.readPPS=function(e){var t=new ys(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.skipUEG(),t.skipUEG(),t.skipBits(2),t.skipBits(3),t.skipBits(2),t.skipUEG(),t.skipUEG(),t.skipEG(),t.skipBits(2),t.readBoolean()&&t.skipUEG(),t.skipEG(),t.skipEG(),t.skipBits(4);var r=t.readBoolean(),n=t.readBoolean(),i=1;return n&&r?i=0:n?i=3:r&&(i=2),{parallelismType:i}},r.matchSPS=function(e,t){return String.fromCharCode.apply(null,e).substr(3)===String.fromCharCode.apply(null,t).substr(3)},t}(vs),Ts=function(){function e(e,t,r,n){this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=e,this.config=t,this.typeSupported=r,this.logger=n,this.videoParser=null}e.probe=function(t,r){var n=e.syncOffset(t);return n>0&&r.warn("MPEG2-TS detected but first sync word found @ offset "+n),-1!==n},e.syncOffset=function(e){for(var t=e.length,r=Math.min(940,t-188)+1,n=0;n<r;){for(var i=!1,a=-1,s=0,o=n;o<t;o+=188){if(71!==e[o]||t-o!=188&&71!==e[o+188]){if(s)return-1;break}if(s++,-1===a&&0!==(a=o)&&(r=Math.min(a+18612,e.length-188)+1),i||(i=0===cr(e,o)),i&&s>1&&(0===a&&s>2||o+188>r))return a}n++}return-1},e.createTrack=function(e,t){return{container:"video"===e||"audio"===e?"video/mp2t":void 0,type:e,id:Ei[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:"audio"===e?t:void 0}};var t=e.prototype;return t.resetInitSegment=function(t,r,n,i){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=e.createTrack("video"),this._videoTrack.duration=i,this._audioTrack=e.createTrack("audio",i),this._id3Track=e.createTrack("id3"),this._txtTrack=e.createTrack("text"),this._audioTrack.segmentCodec="aac",this.videoParser=null,this.aacOverFlow=null,this.remainderData=null,this.audioCodec=r,this.videoCodec=n},t.resetTimeStamp=function(){},t.resetContiguity=function(){var e=this._audioTrack,t=this._videoTrack,r=this._id3Track;e&&(e.pesData=null),t&&(t.pesData=null),r&&(r.pesData=null),this.aacOverFlow=null,this.remainderData=null},t.demux=function(t,r,n,i){var a;void 0===n&&(n=!1),void 0===i&&(i=!1),n||(this.sampleAes=null);var s=this._videoTrack,o=this._audioTrack,l=this._id3Track,u=this._txtTrack,d=s.pid,c=s.pesData,h=o.pid,f=l.pid,m=o.pesData,p=l.pesData,g=null,_=this.pmtParsed,v=this._pmtId,y=t.length;if(this.remainderData&&(y=(t=H(this.remainderData,t)).length,this.remainderData=null),y<188&&!i)return this.remainderData=t,{audioTrack:o,videoTrack:s,id3Track:l,textTrack:u};var L=Math.max(0,e.syncOffset(t));(y-=(y-L)%188)<t.byteLength&&!i&&(this.remainderData=new Uint8Array(t.buffer,y,t.buffer.byteLength-y));for(var b=0,T=L;T<y;T+=188)if(71===t[T]){var M=!!(64&t[T+1]),k=cr(t,T),S=void 0;if((48&t[T+3])>>4>1){if((S=T+5+t[T+4])===T+188)continue}else S=T+4;switch(k){case d:M&&(c&&(a=gr(c,this.logger))&&(this.readyVideoParser(s.segmentCodec),null!==this.videoParser&&this.videoParser.parsePES(s,u,a,!1)),c={data:[],size:0}),c&&(c.data.push(t.subarray(S,T+188)),c.size+=T+188-S);break;case h:if(M){if(m&&(a=gr(m,this.logger)))switch(o.segmentCodec){case"aac":this.parseAACPES(o,a);break;case"mp3":this.parseMPEGPES(o,a);break;case"ac3":this.parseAC3PES(o,a)}m={data:[],size:0}}m&&(m.data.push(t.subarray(S,T+188)),m.size+=T+188-S);break;case f:M&&(p&&(a=gr(p,this.logger))&&this.parseID3PES(l,a),p={data:[],size:0}),p&&(p.data.push(t.subarray(S,T+188)),p.size+=T+188-S);break;case 0:M&&(S+=t[S]+1),v=this._pmtId=hr(t,S);break;case v:M&&(S+=t[S]+1);var w=fr(t,S,this.typeSupported,n,this.observer,this.logger);(d=w.videoPid)>0&&(s.pid=d,s.segmentCodec=w.segmentVideoCodec),(h=w.audioPid)>0&&(o.pid=h,o.segmentCodec=w.segmentAudioCodec),(f=w.id3Pid)>0&&(l.pid=f),null===g||_||(this.logger.warn("MPEG-TS PMT found at "+T+" after unknown PID '"+g+"'. Backtracking to sync byte @"+L+" to parse all TS packets."),g=null,T=L-188),_=this.pmtParsed=!0;break;case 17:case 8191:break;default:g=k}}else b++;b>0&&mr(this.observer,new Error("Found "+b+" TS packet/s that do not start with 0x47"),void 0,this.logger),s.pesData=c,o.pesData=m,l.pesData=p;var D={audioTrack:o,videoTrack:s,id3Track:l,textTrack:u};return i&&this.extractRemainingSamples(D),D},t.flush=function(){var e,t=this.remainderData;
vendor: 27,807 bytes, line 1
1return this.remainderData=null,e=t?this.demux(t,-1,!1,!0):{videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(e),this.sampleAes?this.decrypt(e,this.sampleAes):e},t.extractRemainingSamples=function(e){var t,r=e.audioTrack,n=e.videoTrack,i=e.id3Track,a=e.textTrack,s=n.pesData,o=r.pesData,l=i.pesData;if(s&&(t=gr(s,this.logger))?(this.readyVideoParser(n.segmentCodec),null!==this.videoParser&&(this.videoParser.parsePES(n,a,t,!0),n.pesData=null)):n.pesData=s,o&&(t=gr(o,this.logger))){switch(r.segmentCodec){case"aac":this.parseAACPES(r,t);break;case"mp3":this.parseMPEGPES(r,t);break;case"ac3":this.parseAC3PES(r,t)}r.pesData=null}else null!=o&&o.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),r.pesData=o;l&&(t=gr(l,this.logger))?(this.parseID3PES(i,t),i.pesData=null):i.pesData=l},t.demuxSampleAes=function(e,t,r){var n=this.demux(e,r,!0,!this.config.progressive),i=this.sampleAes=new _s(this.observer,this.config,t);return this.decrypt(n,i)},t.readyVideoParser=function(e){null===this.videoParser&&("avc"===e?this.videoParser=new Ls:"hevc"===e&&(this.videoParser=new bs))},t.decrypt=function(e,t){return new Promise((function(r){var n=e.audioTrack,i=e.videoTrack;n.samples&&"aac"===n.segmentCodec?t.decryptAacSamples(n.samples,0,(function(){i.samples?t.decryptAvcSamples(i.samples,0,0,(function(){r(e)})):r(e)})):i.samples&&t.decryptAvcSamples(i.samples,0,0,(function(){r(e)}))}))},t.destroy=function(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0},t.parseAACPES=function(e,t){var r,n,i,a=0,s=this.aacOverFlow,o=t.data;if(s){this.aacOverFlow=null;var l=s.missing,u=s.sample.unit.byteLength;if(-1===l)o=H(s.sample.unit,o);else{var d=u-l;s.sample.unit.set(o.subarray(0,l),d),e.samples.push(s.sample),a=s.missing}}for(r=a,n=o.length;r<n-1&&!Wt(o,r);r++);if(r!==a){var c,h=r<n-1;if(c=h?"AAC PES did not start with ADTS header,offset:"+r:"No ADTS header found in AAC PES",mr(this.observer,new Error(c),h,this.logger),!h)return}if(Vt(e,this.observer,o,r,this.audioCodec),void 0!==t.pts)i=t.pts;else{if(!s)return void this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");var f=Kt(e.samplerate);i=s.sample.pts+f}for(var m,p=0;r<n;){if(r+=(m=zt(e,o,r,i,p)).length,m.missing){this.aacOverFlow=m;break}for(p++;r<n-1&&!Wt(o,r);r++);}},t.parseMPEGPES=function(e,t){var r=t.data,n=r.length,i=0,a=0,s=t.pts;if(void 0!==s)for(;a<n;)if(or(r,a)){var o=ir(e,r,a,s,i);if(!o)break;a+=o.length,i++}else a++;else this.logger.warn("[tsdemuxer]: MPEG PES unknown PTS")},t.parseAC3PES=function(e,t){var r=t.data,n=t.pts;if(void 0!==n)for(var i,a=r.length,s=0,o=0;o<a&&(i=ur(e,r,o,n,s++))>0;)o+=i;else this.logger.warn("[tsdemuxer]: AC3 PES unknown PTS")},t.parseID3PES=function(e,t){if(void 0!==t.pts){var r=f({},t,{type:this._videoTrack?ns.emsg:ns.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(r)}else this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS")},e}(),Ms=function(){function e(){}return e.getSilentFrame=function(e,t){switch(e){case"mp4a.40.2":if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}},e}(),ks=Math.pow(2,32)-1,Ss=function(){function e(){}return e.init=function(){var t;for(t in e.types={avc1:[],avcC:[],hvc1:[],hvcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]})e.types.hasOwnProperty(t)&&(e.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);var r=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),n=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);e.HDLR_TYPES={video:r,audio:n};var i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),a=new Uint8Array([0,0,0,0,0,0,0,0]);e.STTS=e.STSC=e.STCO=a,e.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),e.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),e.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),e.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var s=new Uint8Array([105,115,111,109]),o=new Uint8Array([97,118,99,49]),l=new Uint8Array([0,0,0,1]);e.FTYP=e.box(e.types.ftyp,s,l,s,o),e.DINF=e.box(e.types.dinf,e.box(e.types.dref,i))},e.box=function(e){for(var t=8,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];for(var a=n.length,s=a;a--;)t+=n[a].byteLength;var o=new Uint8Array(t);for(o[0]=t>>24&255,o[1]=t>>16&255,o[2]=t>>8&255,o[3]=255&t,o.set(e,4),a=0,t=8;a<s;a++)o.set(n[a],t),t+=n[a].byteLength;return o},e.hdlr=function(t){return e.box(e.types.hdlr,e.HDLR_TYPES[t])},e.mdat=function(t){return e.box(e.types.mdat,t)},e.mdhd=function(t,r){r*=t;var n=Math.floor(r/(ks+1)),i=Math.floor(r%(ks+1));return e.box(e.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i,85,196,0,0]))},e.mdia=function(t){return e.box(e.types.mdia,e.mdhd(t.timescale||0,t.duration||0),e.hdlr(t.type),e.minf(t))},e.mfhd=function(t){return e.box(e.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))},e.minf=function(t){return e.box(e.types.minf,"audio"===t.type?e.box(e.types.smhd,e.SMHD):e.box(e.types.vmhd,e.VMHD),e.DINF,e.stbl(t))},e.moof=function(t,r,n){return e.box(e.types.moof,e.mfhd(t),e.traf(n,r))},e.moov=function(t){for(var r=t.length,n=[];r--;)n[r]=e.trak(t[r]);return e.box.apply(null,[e.types.moov,e.mvhd(t[0].timescale||0,t[0].duration||0)].concat(n).concat(e.mvex(t)))},e.mvex=function(t){for(var r=t.length,n=[];r--;)n[r]=e.trex(t[r]);return e.box.apply(null,[e.types.mvex].concat(n))},e.mvhd=function(t,r){r*=t;var n=Math.floor(r/(ks+1)),i=Math.floor(r%(ks+1)),a=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return e.box(e.types.mvhd,a)},e.sdtp=function(t){var r,n,i=t.samples||[],a=new Uint8Array(4+i.length);for(r=0;r<i.length;r++)a[r+4]=(n=i[r].flags).dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return e.box(e.types.sdtp,a)},e.stbl=function(t){return e.box(e.types.stbl,e.stsd(t),e.box(e.types.stts,e.STTS),e.box(e.types.stsc,e.STSC),e.box(e.types.stsz,e.STSZ),e.box(e.types.stco,e.STCO))},e.avc1=function(t){var r,n,i,a=[],s=[];for(r=0;r<t.sps.length;r++)a.push((i=(n=t.sps[r]).byteLength)>>>8&255),a.push(255&i),a=a.concat(Array.prototype.slice.call(n));for(r=0;r<t.pps.length;r++)s.push((i=(n=t.pps[r]).byteLength)>>>8&255),s.push(255&i),s=s.concat(Array.prototype.slice.call(n));var o=e.box(e.types.avcC,new Uint8Array([1,a[3],a[4],a[5],255,224|t.sps.length].concat(a).concat([t.pps.length]).concat(s))),l=t.width,u=t.height,d=t.pixelRatio[0],c=t.pixelRatio[1];return e.box(e.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,l>>8&255,255&l,u>>8&255,255&u,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),o,e.box(e.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),e.box(e.types.pasp,new Uint8Array([d>>24,d>>16&255,d>>8&255,255&d,c>>24,c>>16&255,c>>8&255,255&c])))},e.esds=function(e){return new Uint8Array([0,0,0,0,3,25,0,1,0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2].concat(e.config,[6,1,2]))},e.audioStsd=function(e){var t=e.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount||0,0,16,0,0,0,0,t>>8&255,255&t,0,0])},e.mp4a=function(t){return e.box(e.types.mp4a,e.audioStsd(t),e.box(e.types.esds,e.esds(t)))},e.mp3=function(t){return e.box(e.types[".mp3"],e.audioStsd(t))},e.ac3=function(t){return e.box(e.types["ac-3"],e.audioStsd(t),e.box(e.types.dac3,t.config))},e.stsd=function(t){var r=t.segmentCodec;if("audio"===t.type){if("aac"===r)return e.box(e.types.stsd,e.STSD,e.mp4a(t));if("ac3"===r&&t.config)return e.box(e.types.stsd,e.STSD,e.ac3(t));if("mp3"===r&&"mp3"===t.codec)return e.box(e.types.stsd,e.STSD,e.mp3(t))}else{if(!t.pps||!t.sps)throw new Error("video track missing pps or sps");if("avc"===r)return e.box(e.types.stsd,e.STSD,e.avc1(t));if("hevc"===r&&t.vps)return e.box(e.types.stsd,e.STSD,e.hvc1(t))}throw new Error("unsupported "+t.type+" segment codec ("+r+"/"+t.codec+")")},e.tkhd=function(t){var r=t.id,n=(t.duration||0)*(t.timescale||0),i=t.width||0,a=t.height||0,s=Math.floor(n/(ks+1)),o=Math.floor(n%(ks+1));return e.box(e.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,r>>24&255,r>>16&255,r>>8&255,255&r,0,0,0,0,s>>24,s>>16&255,s>>8&255,255&s,o>>24,o>>16&255,o>>8&255,255&o,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>8&255,255&i,0,0,a>>8&255,255&a,0,0]))},e.traf=function(t,r){var n=e.sdtp(t),i=t.id,a=Math.floor(r/(ks+1)),s=Math.floor(r%(ks+1));return e.box(e.types.traf,e.box(e.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i])),e.box(e.types.tfdt,new Uint8Array([1,0,0,0,a>>24,a>>16&255,a>>8&255,255&a,s>>24,s>>16&255,s>>8&255,255&s])),e.trun(t,n.length+16+20+8+16+8+8),n)},e.trak=function(t){return t.duration=t.duration||4294967295,e.box(e.types.trak,e.tkhd(t),e.mdia(t))},e.trex=function(t){var r=t.id;return e.box(e.types.trex,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},e.trun=function(t,r){var n,i,a,s,o,l,u=t.samples||[],d=u.length,c=12+16*d,h=new Uint8Array(c);for(h.set(["video"===t.type?1:0,0,15,1,d>>>24&255,d>>>16&255,d>>>8&255,255&d,(r+=8+c)>>>24&255,r>>>16&255,r>>>8&255,255&r],0),n=0;n<d;n++)h.set([(a=(i=u[n]).duration)>>>24&255,a>>>16&255,a>>>8&255,255&a,(s=i.size)>>>24&255,s>>>16&255,s>>>8&255,255&s,(o=i.flags).isLeading<<2|o.dependsOn,o.isDependedOn<<6|o.hasRedundancy<<4|o.paddingValue<<1|o.isNonSync,61440&o.degradPrio,15&o.degradPrio,(l=i.cts)>>>24&255,l>>>16&255,l>>>8&255,255&l],12+16*n);return e.box(e.types.trun,h)},e.initSegment=function(t){e.types||e.init();var r=e.moov(t);return H(e.FTYP,r)},e.hvc1=function(t){for(var r=t.params,n=[t.vps,t.sps,t.pps],i=new Uint8Array([1,r.general_profile_space<<6|(r.general_tier_flag?32:0)|r.general_profile_idc,r.general_profile_compatibility_flags[0],r.general_profile_compatibility_flags[1],r.general_profile_compatibility_flags[2],r.general_profile_compatibility_flags[3],r.general_constraint_indicator_flags[0],r.general_constraint_indicator_flags[1],r.general_constraint_indicator_flags[2],r.general_constraint_indicator_flags[3],r.general_constraint_indicator_flags[4],r.general_constraint_indicator_flags[5],r.general_level_idc,240|r.min_spatial_segmentation_idc>>8,255&r.min_spatial_segmentation_idc,252|r.parallelismType,252|r.chroma_format_idc,248|r.bit_depth_luma_minus8,248|r.bit_depth_chroma_minus8,0,parseInt(r.frame_rate.fps),3|r.temporal_id_nested<<2|r.num_temporal_layers<<3|(r.frame_rate.fixed?64:0),n.length]),a=i.length,s=0;s<n.length;s+=1){a+=3;for(var o=0;o<n[s].length;o+=1)a+=2+n[s][o].length}var l=new Uint8Array(a);l.set(i,0),a=i.length;for(var u=n.length-1,d=0;d<n.length;d+=1){l.set(new Uint8Array([32+d|(d===u?128:0),0,n[d].length]),a),a+=3;for(var c=0;c<n[d].length;c+=1)l.set(new Uint8Array([n[d][c].length>>8,255&n[d][c].length]),a),l.set(n[d][c],a+=2),a+=n[d][c].length}var h=e.box(e.types.hvcC,l),f=t.width,m=t.height,p=t.pixelRatio[0],g=t.pixelRatio[1];return e.box(e.types.hvc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,f>>8&255,255&f,m>>8&255,255&m,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),h,e.box(e.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),e.box(e.types.pasp,new Uint8Array([p>>24,p>>16&255,p>>8&255,255&p,g>>24,g>>16&255,g>>8&255,255&g])))},e}();Ss.types=void 0,Ss.HDLR_TYPES=void 0,Ss.STTS=void 0,Ss.STSC=void 0,Ss.STCO=void 0,Ss.STSZ=void 0,Ss.VMHD=void 0,Ss.SMHD=void 0,Ss.STSD=void 0,Ss.FTYP=void 0,Ss.DINF=void 0;var ws,Ds=null,Es=null,As=function(e){function t(t,r,n,i){var a;if((a=e.call(this,"mp4-remuxer",i)||this).observer=void 0,a.config=void 0,a.typeSupported=void 0,a.ISGenerated=!1,a._initPTS=null,a._initDTS=null,a.nextVideoTs=null,a.nextAudioTs=null,a.videoSampleDuration=null,a.isAudioContiguous=!1,a.isVideoContiguous=!1,a.videoTrackConfig=void 0,a.observer=t,a.config=r,a.typeSupported=n,a.ISGenerated=!1,null===Ds){var s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Ds=s?parseInt(s[1]):0}if(null===Es){var o=navigator.userAgent.match(/Safari\/(\d+)/i);Es=o?parseInt(o[1]):0}return a}u(t,e);var r=t.prototype;return r.destroy=function(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null},r.resetTimeStamp=function(e){var t=this._initPTS;t&&e&&e.trackId===t.trackId&&e.baseTime===t.baseTime&&e.timescale===t.timescale||this.log("Reset initPTS: "+(t?yr(t):t)+" > "+(e?yr(e):e)),this._initPTS=this._initDTS=e},r.resetNextTimestamp=function(){this.log("reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},r.resetInitSegment=function(){this.log("ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0},r.getVideoStartPts=function(e){var t=!1,r=e[0].pts,n=e.reduce((function(e,n){var i=n.pts,a=i-e;return a<-4294967296&&(t=!0,a=(i=br(i,r))-e),a>0?e:i}),r);return t&&this.debug("PTS rollover detected"),n},r.remux=function(e,t,r,n,i,a,s,o){var l,u,d,c,h,f,m=i,p=i,g=t.pid>-1,_=t.samples.length,v=e.samples.length>0,y=s&&_>0||_>1;if((!(e.pid>-1)||v)&&(!g||y)||this.ISGenerated||s){if(this.ISGenerated){var L,b,T,M,k=this.videoTrackConfig;(k&&(t.width!==k.width||t.height!==k.height||(null==(L=t.pixelRatio)?void 0:L[0])!==(null==(b=k.pixelRatio)?void 0:b[0])||(null==(T=t.pixelRatio)?void 0:T[1])!==(null==(M=k.pixelRatio)?void 0:M[1]))||!k&&y||null===this.nextAudioTs&&v)&&this.resetInitSegment()}this.ISGenerated||(d=this.generateIS(e,t,i,a));var S,w=this.isVideoContiguous,D=-1;if(y&&(D=function(e){for(var t=0;t<e.length;t++)if(e[t].key)return t;return-1}(t.samples),!w&&this.config.forceKeyFrameOnDiscontinuity))if(f=!0,D>0){this.warn("Dropped "+D+" out of "+_+" video samples due to a missing keyframe");var E=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(D),t.dropped+=D,S=p+=(t.samples[0].pts-E)/t.inputTimeScale}else-1===D&&(this.warn("No keyframe found out of "+_+" video samples"),f=!1);if(this.ISGenerated){if(v&&y){var A=this.getVideoStartPts(t.samples),I=(br(e.samples[0].pts,A)-A)/t.inputTimeScale;m+=Math.max(0,I),p+=Math.max(0,-I)}if(v){if(e.samplerate||(this.warn("regenerate InitSegment as audio detected"),d=this.generateIS(e,t,i,a)),u=this.remuxAudio(e,m,this.isAudioContiguous,a,g||y||o===li?p:void 0),y){var x=u?u.endPTS-u.startPTS:0;t.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),d=this.generateIS(e,t,i,a)),l=this.remuxVideo(t,p,w,x)}}else y&&(l=this.remuxVideo(t,p,w,0));l&&(l.firstKeyFrame=D,l.independent=-1!==D,l.firstKeyFramePTS=S)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(h=Tr(r,i,this._initPTS,this._initDTS)),n.samples.length&&(c=Mr(n,i,this._initPTS))),{audio:u,video:l,initSegment:d,independent:f,text:c,id3:h}},r.computeInitPts=function(e,t,r,n){var i=Math.round(r*t),a=br(e,i);if(a<i+t)for(this.log("Adjusting PTS for rollover in timeline near "+(i-a)/t+" "+n);a<i+t;)a+=8589934592;return a-i},r.generateIS=function(e,t,r,n){var i,a,s,o=e.samples,l=t.samples,u=this.typeSupported,d={},c=this._initPTS,h=!c||n,f="audio/mp4",m=-1;if(h&&(i=a=1/0),e.config&&o.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":u.mpeg?(f="audio/mpeg",e.codec=""):u.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3"}d.audio={id:"audio",container:f,codec:e.codec,initSegment:"mp3"===e.segmentCodec&&u.mpeg?new Uint8Array(0):Ss.initSegment([e]),metadata:{channelCount:e.channelCount}},h&&(m=e.id,s=e.inputTimeScale,c&&s===c.timescale?h=!1:i=a=this.computeInitPts(o[0].pts,s,r,"audio"))}if(t.sps&&t.pps&&l.length){if(t.timescale=t.inputTimeScale,d.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:Ss.initSegment([t]),metadata:{width:t.width,height:t.height}},h)if(m=t.id,s=t.inputTimeScale,c&&s===c.timescale)h=!1;else{var p=this.getVideoStartPts(l),g=br(l[0].dts,p),_=this.computeInitPts(g,s,r,"video"),v=this.computeInitPts(p,s,r,"video");a=Math.min(a,_),i=Math.min(i,v)}this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(d).length)return this.ISGenerated=!0,h?(c&&this.warn("Timestamps at playlist time: "+(n?"":"~")+r+" "+i/s+" != initPTS: "+c.baseTime/c.timescale+" ("+c.baseTime+"/"+c.timescale+") trackId: "+c.trackId),this.log("Found initPTS at playlist time: "+r+" offset: "+i/s+" ("+i+"/"+s+") trackId: "+m),this._initPTS={baseTime:i,timescale:s,trackId:m},this._initDTS={baseTime:a,timescale:s,trackId:m}):i=s=void 0,{tracks:d,initPTS:i,timescale:s,trackId:m}},r.remuxVideo=function(e,t,r,n){var i,a,s=e.inputTimeScale,o=e.samples,l=[],u=o.length,d=this._initPTS,c=d.baseTime*s/d.timescale,h=this.nextVideoTs,m=8,p=this.videoSampleDuration,g=Number.POSITIVE_INFINITY,_=Number.NEGATIVE_INFINITY,v=!1;if(!r||null===h){var y=c+t*s,L=o[0].pts-br(o[0].dts,o[0].pts);Ds&&null!==h&&Math.abs(y-L-(h+c))<15e3?r=!0:h=y-L-c}for(var b=h+c,T=0;T<u;T++){var M=o[T];M.pts=br(M.pts,b),M.dts=br(M.dts,b),M.dts<o[T>0?T-1:T].dts&&(v=!0)}v&&o.sort((function(e,t){return e.dts-t.dts||e.pts-t.pts}));var k=(a=o[o.length-1].dts)-(i=o[0].dts),S=k?Math.round(k/(u-1)):p||e.inputTimeScale/30;if(r){var w=i-b,D=w>S,E=w<-1;if((D||E)&&(this.warn(D?(e.segmentCodec||"").toUpperCase()+": "+vr(w,!0)+" ms ("+w+"dts) hole between fragments detected at "+t.toFixed(3):(e.segmentCodec||"").toUpperCase()+": "+vr(-w,!0)+" ms ("+w+"dts) overlapping between fragments detected at "+t.toFixed(3)),!E||b>=o[0].pts||Ds)){i=b;var A=o[0].pts-w;if(D)o[0].dts=i,o[0].pts=A;else for(var I=!0,x=0;x<o.length&&!(o[x].dts>A&&I);x++){var C=o[x].pts;if(o[x].dts-=w,o[x].pts-=w,x<o.length-1){var R=o[x+1].pts;I=R<=o[x].pts==R<=C}}this.log("Video: Initial PTS/DTS adjusted: "+vr(A,!0)+"/"+vr(i,!0)+", delta: "+vr(w,!0)+" ms")}}for(var P=0,O=0,Y=i=Math.max(0,i),F=0;F<u;F++){for(var N=o[F],j=N.units,U=j.length,H=0,B=0;B<U;B++)H+=j[B].data.length;O+=H,P+=U,N.length=H,N.dts<Y?(N.dts=Y,Y+=S/4|0||1):Y=N.dts,g=Math.min(N.pts,g),_=Math.max(N.pts,_)}a=o[u-1].dts;var W,G=O+4*P+8;try{W=new Uint8Array(G)}catch(e){return void this.observer.emit(ri.ERROR,ri.ERROR,{type:ei.MUX_ERROR,details:ti.REMUX_ALLOC_ERROR,fatal:!1,error:e,bytes:G,reason:"fail allocating video mdat "+G})}var V=new DataView(W.buffer);V.setUint32(0,G),W.set(Ss.types.mdat,4);for(var K=!1,z=Number.POSITIVE_INFINITY,q=Number.POSITIVE_INFINITY,J=Number.NEGATIVE_INFINITY,Q=Number.NEGATIVE_INFINITY,X=0;X<u;X++){for(var Z=o[X],$=Z.units,ee=0,te=0,re=$.length;te<re;te++){var ne=$[te],ie=ne.data,ae=ne.data.byteLength;V.setUint32(m,ae),W.set(ie,m+=4),m+=ae,ee+=4+ae}var se=void 0;if(X<u-1)p=o[X+1].dts-Z.dts,se=o[X+1].pts-Z.pts;else{var oe=this.config,le=X>0?Z.dts-o[X-1].dts:S;if(se=X>0?Z.pts-o[X-1].pts:S,oe.stretchShortVideoTrack&&null!==this.nextAudioTs){var ue=Math.floor(oe.maxBufferHole*s),de=(n?g+n*s:this.nextAudioTs+c)-Z.pts;de>ue?((p=de-le)<0?p=le:K=!0,this.log("It is approximately "+de/90+" ms to the next segment; using duration "+p/90+" ms for the last video frame.")):p=le}else p=le}var ce=Math.round(Z.pts-Z.dts);z=Math.min(z,p),J=Math.max(J,p),q=Math.min(q,se),Q=Math.max(Q,se),l.push(Lr(Z.key,p,ee,ce))}if(l.length)if(Ds){if(Ds<70){var he=l[0].flags;he.dependsOn=2,he.isNonSync=0}}else if(Es&&Q-q<J-z&&S/J<.025&&0===l[0].cts){this.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");for(var fe=i,me=0,pe=l.length;me<pe;me++){var ge=fe+l[me].duration;if(me<pe-1)l[me].duration=ge+l[me+1].cts-(fe+l[me].cts);else l[me].duration=me?l[me-1].duration:S;l[me].cts=0,fe=ge}}this.nextVideoTs=h=a+(p=K||!p?S:p)-c,this.videoSampleDuration=p,this.isVideoContiguous=!0;var _e={data1:Ss.moof(e.sequenceNumber++,i,f(e,{samples:l})),data2:W,startPTS:(g-c)/s,endPTS:(_+p-c)/s,startDTS:(i-c)/s,endDTS:h/s,type:"video",hasAudio:!1,hasVideo:!0,nb:l.length,dropped:e.dropped};return e.samples=[],e.dropped=0,_e},r.getSamplesPerFrame=function(e){switch(e.segmentCodec){case"mp3":return 1152;case"ac3":return 1536;default:return 1024}},r.remuxAudio=function(e,t,r,n,i){var a=e.inputTimeScale,s=a/(e.samplerate?e.samplerate:a),o=this.getSamplesPerFrame(e),l=o*s,u=this._initPTS,d="mp3"===e.segmentCodec&&this.typeSupported.mpeg,c=[],h=void 0!==i,m=e.samples,p=d?0:8,g=this.nextAudioTs||-1,_=u.baseTime*a/u.timescale,v=_+t*a;if(this.isAudioContiguous=r=r||m.length&&g>0&&(n&&Math.abs(v-(g+_))<9e3||Math.abs(br(m[0].pts,v)-(g+_))<20*l),m.forEach((function(e){e.pts=br(e.pts,v)})),!r||g<0){var y=m.length;if(y!==(m=m.filter((function(e){return e.pts>=0}))).length&&this.warn("Removed "+(m.length-y)+" of "+y+" samples (initPTS "+_+" / "+a+")"),!m.length)return;g=0===i?0:n&&!h?Math.max(0,v-_):m[0].pts-_}if("aac"===e.segmentCodec)for(var L=this.config.maxAudioFramesDrift,b=0,T=g+_;b<m.length;b++){var M=m[b],k=M.pts,S=k-T,w=Math.abs(1e3*S/a);if(S<=-L*l&&h)0===b&&(this.warn("Audio frame @ "+(k/a).toFixed(3)+"s overlaps marker by "+Math.round(1e3*S/a)+" ms."),this.nextAudioTs=g=k-_,T=k);else if(S>=L*l&&w<1e4&&h){var D=Math.round(S/l);for(T=k-D*l;T<0&&D&&l;)D--,T+=l;0===b&&(this.nextAudioTs=g=T-_),this.warn("Injecting "+D+" audio frames @ "+((T-_)/a).toFixed(3)+"s due to "+Math.round(1e3*S/a)+" ms gap.");for(var E=0;E<D;E++){var A=Ms.getSilentFrame(e.parsedCodec||e.manifestCodec||e.codec,e.channelCount);A||(this.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),A=M.unit.subarray()),m.splice(b,0,{unit:A,pts:T}),T+=l,b++}}M.pts=T,T+=l}for(var I,x=null,C=null,R=0,P=m.length;P--;)R+=m[P].unit.byteLength;for(var O=0,Y=m.length;O<Y;O++){var F=m[O],N=F.unit,j=F.pts;if(null!==C){c[O-1].duration=Math.round((j-C)/s)}else{if(r&&"aac"===e.segmentCodec&&(j=g+_),x=j,!(R>0))return;R+=p;try{I=new Uint8Array(R)}catch(e){return void this.observer.emit(ri.ERROR,ri.ERROR,{type:ei.MUX_ERROR,details:ti.REMUX_ALLOC_ERROR,fatal:!1,error:e,bytes:R,reason:"fail allocating audio mdat "+R})}d||(new DataView(I.buffer).setUint32(0,R),I.set(Ss.types.mdat,4))}I.set(N,p);var U=N.byteLength;p+=U,c.push(Lr(!0,o,U,0)),C=j}var H=c.length;if(H){this.nextAudioTs=(g=C-_)+s*c[c.length-1].duration;var B=d?new Uint8Array(0):Ss.moof(e.sequenceNumber++,x/s,f({},e,{samples:c}));e.samples=[];var W=(x-_)/a,G=this.nextAudioTs/a,V={data1:B,data2:I,startPTS:W,endPTS:G,startDTS:W,endDTS:G,type:"audio",hasAudio:!0,hasVideo:!1,nb:H};return this.isAudioContiguous=!0,V}},t}(hi),Is=function(e){function t(t,r,n,i){var a;return(a=e.call(this,"passthrough-remuxer",i)||this).emitInitSegment=!1,a.audioCodec=void 0,a.videoCodec=void 0,a.initData=void 0,a.initPTS=null,a.initTracks=void 0,a.lastEndTime=null,a.isVideoContiguous=!1,a}u(t,e);var r=t.prototype;return r.destroy=function(){},r.resetTimeStamp=function(e){this.lastEndTime=null;var t=this.initPTS;t&&e&&t.baseTime===e.baseTime&&t.timescale===e.timescale||(this.initPTS=e)},r.resetNextTimestamp=function(){this.isVideoContiguous=!1,this.lastEndTime=null},r.resetInitSegment=function(e,t,r,n){this.audioCodec=t,this.videoCodec=r,this.generateInitSegment(e,n),this.emitInitSegment=!0},r.generateInitSegment=function(e,t){var r=this.audioCodec,n=this.videoCodec;if(null==e||!e.byteLength)return this.initTracks=void 0,void(this.initData=void 0);var i=this.initData=R(e),a=i.audio,s=i.video;if(t)!function(e,t){if(e&&t){var r=t.keyId;r&&t.isCommonEncryption&&j(e,(function(e,t){var n=e.subarray(8,24);n.some((function(e){return 0!==e}))||(gi.log("[eme] Patching keyId in 'enc"+(t?"a":"v")+">sinf>>tenc' box: "+b(n)+" -> "+b(r)),e.set(r,8))}))}}(e,t);else{var o=a||s;null!=o&&o.encrypted&&this.warn('Init segment with encrypted track with has no key ("'+o.codec+'")!')}a&&(r=Sr(a,Li,this)),s&&(n=Sr(s,bi,this));var l={};a&&s?l.audiovideo={container:"video/mp4",codec:r+","+n,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:e,id:"main"}:a?l.audio={container:"audio/mp4",codec:r,encrypted:a.encrypted,initSegment:e,id:"audio"}:s?l.video={container:"video/mp4",codec:n,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:e,id:"main"}:this.warn("initSegment does not contain moov or trak boxes."),this.initTracks=l},r.remux=function(e,t,r,n,i,a){var s,o,l=this.initPTS,u=this.lastEndTime,d={audio:void 0,video:void 0,text:n,id3:r,initSegment:void 0};Xn(u)||(u=this.lastEndTime=i||0);var c=t.samples;if(!c.length)return d;var h={initPTS:void 0,timescale:void 0,trackId:void 0},f=this.initData;if(null!=(s=f)&&s.length||(this.generateInitSegment(c),f=this.initData),null==(o=f)||!o.length)return this.warn("Failed to generate initSegment."),d;this.emitInitSegment&&(h.tracks=this.initTracks,this.emitInitSegment=!1);var m=function(e,t,r){for(var n={},i=x(e,["moof","traf"]),a=0;a<i.length;a++){var s=i[a],o=x(s,["tfhd"])[0],l=E(o,4),u=t[l];if(u){n[l]||(n[l]={start:NaN,duration:0,sampleCount:0,timescale:u.timescale,type:u.type});var d=n[l],c=x(s,["tfdt"])[0];if(c){var h=c[0],f=E(c,4);1===h&&(f===wi?r.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"):(f*=wi+1,f+=E(c,8))),Xn(f)&&(!Xn(d.start)||f<d.start)&&(d.start=f)}var m=u.default,p=E(o,0)|(null==m?void 0:m.flags),g=(null==m?void 0:m.duration)||0;8&p&&(g=E(o,2&p?12:8));for(var _=x(s,["trun"]),v=d.start||0,y=0,L=g,b=0;b<_.length;b++){var T=_[b],M=E(T,4),k=d.sampleCount;d.sampleCount+=M;var S=1&T[2],w=2&T[2],D=4&T[2],A=8&T[2],I=8,R=M;if(1&T[3]&&(I+=4),4&T[3]&&M)1&T[I+1]||void 0!==d.keyFrameIndex||(d.keyFrameIndex=k),I+=4,S?(L=E(T,I),I+=4):L=g,w&&(I+=4),A&&(I+=4),v+=L,y+=L,R--;for(;R--;){if(S?(L=E(T,I),I+=4):L=g,w&&(I+=4),D)1&T[I+1]||void 0===d.keyFrameIndex&&(d.keyFrameIndex=d.sampleCount-(R+1),d.keyFrameStart=v),I+=4;A&&(I+=4),v+=L,y+=L}!y&&g&&(y+=g*M)}d.duration+=y}}if(!Object.keys(n).some((function(e){return n[e].duration}))){for(var P=1/0,O=0,Y=x(e,["sidx"]),F=0;F<Y.length;F++){var N=C(Y[F]);if(null!=N&&N.references){P=Math.min(P,N.earliestPresentationTime/N.timescale);var j=N.references.reduce((function(e,t){return e+t.info.duration||0}),0);O=Math.max(O,j+N.earliestPresentationTime/N.timescale)}}
vendor: 5,097 bytes, line 1
1O&&Xn(O)&&Object.keys(n).forEach((function(e){n[e].duration||(n[e].duration=O*n[e].timescale-n[e].start)}))}return n}(c,f,this),p=f.audio?m[f.audio.id]:null,g=f.video?m[f.video.id]:null,_=kr(g,1/0),v=kr(p,1/0),y=kr(g,0,!0),L=kr(p,0,!0),b=i,T=0,M=p&&(!g||!l&&v<_||l&&l.trackId===f.audio.id),k=M?p:g;if(k){var S=k.timescale,w=k.start-i*S,D=M?f.audio.id:f.video.id;b=k.start/S,T=M?L-v:y-_,!a&&l||!function(e,t,r,n){if(null===e)return!0;var i=Math.max(n,1);return Math.abs(t-e.baseTime/e.timescale-r)>i}(l,b,i,T)&&S===l.timescale||(l&&this.warn("Timestamps at playlist time: "+(a?"":"~")+i+" "+w/S+" != initPTS: "+l.baseTime/l.timescale+" ("+l.baseTime+"/"+l.timescale+") trackId: "+l.trackId),this.log("Found initPTS at playlist time: "+i+" offset: "+(b-i)+" ("+w+"/"+S+") trackId: "+D),l=null,h.initPTS=w,h.timescale=S,h.trackId=D)}else this.warn("No audio or video samples found for initPTS at playlist time: "+i);l?(h.initPTS=l.baseTime,h.timescale=l.timescale,h.trackId=l.trackId):(h.timescale&&void 0!==h.trackId&&void 0!==h.initPTS||(this.warn("Could not set initPTS"),h.initPTS=b,h.timescale=1,h.trackId=-1),this.initPTS=l={baseTime:h.initPTS,timescale:h.timescale,trackId:h.trackId});var A=b-l.baseTime/l.timescale,I=A+T;T>0?this.lastEndTime=I:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var R=!!f.audio,P=!!f.video,O="";R&&(O+="audio"),P&&(O+="video");var Y={data1:c,startPTS:A,startDTS:A,endPTS:I,endDTS:I,type:O,hasAudio:R,hasVideo:P,nb:1,dropped:0,encrypted:!!f.audio&&f.audio.encrypted||!!f.video&&f.video.encrypted};d.audio=R&&!P?Y:void 0,d.video=P?Y:void 0;var F=null==g?void 0:g.sampleCount;if(F){var N=g.keyFrameIndex,j=-1!==N;Y.nb=F,Y.dropped=0===N||this.isVideoContiguous?0:j?N:F,Y.independent=j,Y.firstKeyFrame=N,j&&g.keyFrameStart&&(Y.firstKeyFramePTS=(g.keyFrameStart-l.baseTime)/l.timescale),this.isVideoContiguous||(d.independent=j),this.isVideoContiguous||(this.isVideoContiguous=j),Y.dropped&&this.warn("fmp4 does not start with IDR: firstIDR "+N+"/"+F+" dropped: "+Y.dropped+" start: "+(Y.firstKeyFramePTS||"NA"))}return d.initSegment=h,d.id3=Tr(r,i,l,l),n.samples.length&&(d.text=Mr(n,i,l)),d},t}(hi);try{ws=self.performance.now.bind(self.performance)}catch(e){ws=Date.now}var xs=[{demux:gs,remux:Is},{demux:Ts,remux:As},{demux:cs,remux:As},{demux:ms,remux:As}];xs.splice(2,0,{demux:fs,remux:As});var Cs=function(){function e(e,t,r,n,i,a){this.asyncResult=!1,this.logger=void 0,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=e,this.typeSupported=t,this.config=r,this.id=i,this.logger=a}var t=e.prototype;return t.configure=function(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()},t.push=function(e,t,r,n){var i=this,a=r.transmuxing;a.executeStart=ws();var s=new Uint8Array(e),o=this.currentTransmuxState,l=this.transmuxConfig;n&&(this.currentTransmuxState=n);var u=n||o,d=u.contiguous,c=u.discontinuity,h=u.trackSwitch,f=u.accurateTimeOffset,m=u.timeOffset,p=u.initSegmentChange,g=l.audioCodec,_=l.videoCodec,v=l.defaultInitPts,y=l.duration,L=l.initSegmentData,b=function(e,t){var r=null;return e.byteLength>0&&null!=(null==t?void 0:t.key)&&null!==t.iv&&null!=t.method&&(r=t),r}(s,t);if(b&&ze(b.method)){var T=this.getDecrypter(),M=qe(b.method);if(!T.isSync())return this.asyncResult=!0,this.decryptionPromise=T.webCryptoDecrypt(s,b.key.buffer,b.iv.buffer,M).then((function(e){var t=i.push(e,null,r);return i.decryptionPromise=null,t})),this.decryptionPromise;var k=T.softwareDecrypt(s,b.key.buffer,b.iv.buffer,M);if(r.part>-1){var S=T.flush();k=S?S.buffer:S}if(!k)return a.executeEnd=ws(),Rs(r);s=new Uint8Array(k)}var w=this.needsProbing(c,h);if(w){var D=this.configureTransmuxer(s);if(D)return this.logger.warn("[transmuxer] "+D.message),this.observer.emit(ri.ERROR,ri.ERROR,{type:ei.MEDIA_ERROR,details:ti.FRAG_PARSING_ERROR,fatal:!1,error:D,reason:D.message}),a.executeEnd=ws(),Rs(r)}(c||h||p||w)&&this.resetInitSegment(L,g,_,y,t),(c||p||w)&&this.resetInitialTimestamp(v),d||this.resetContiguity();var E=this.transmux(s,b,m,f,r);this.asyncResult=wr(E);var A=this.currentTransmuxState;return A.contiguous=!0,A.discontinuity=!1,A.trackSwitch=!1,a.executeEnd=ws(),E},t.flush=function(e){var t=this,r=e.transmuxing;r.executeStart=ws();var n=this.decrypter,i=this.currentTransmuxState,a=this.decryptionPromise;if(a)return this.asyncResult=!0,a.then((function(){return t.flush(e)}));var s=[],o=i.timeOffset;if(n){var l=n.flush();l&&s.push(this.push(l.buffer,null,e))}var u=this.demuxer;if(!u||!this.remuxer){r.executeEnd=ws();var d=[Rs(e)];return this.asyncResult?Promise.resolve(d):d}var c=u.flush(o);return wr(c)?(this.asyncResult=!0,c.then((function(r){return t.flushRemux(s,r,e),s}))):(this.flushRemux(s,c,e),this.asyncResult?Promise.resolve(s):s)},t.flushRemux=function(e,t,r){var n=t.audioTrack,i=t.videoTrack,a=t.id3Track,s=t.textTrack,o=this.currentTransmuxState,l=o.accurateTimeOff
vendor: 4,814 bytes, line 1
1set,u=o.timeOffset;this.logger.log("[transmuxer.ts]: Flushed "+this.id+" sn: "+r.sn+(r.part>-1?" part: "+r.part:"")+" of "+(this.id===oi?"level":"track")+" "+r.level);var d=this.remuxer.remux(n,i,a,s,u,l,!0,this.id);e.push({remuxResult:d,chunkMeta:r}),r.transmuxing.executeEnd=ws()},t.resetInitialTimestamp=function(e){var t=this.demuxer,r=this.remuxer;t&&r&&(t.resetTimeStamp(e),r.resetTimeStamp(e))},t.resetContiguity=function(){var e=this.demuxer,t=this.remuxer;e&&t&&(e.resetContiguity(),t.resetNextTimestamp())},t.resetInitSegment=function(e,t,r,n,i){var a=this.demuxer,s=this.remuxer;a&&s&&(a.resetInitSegment(e,t,r,n),s.resetInitSegment(e,t,r,i))},t.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},t.transmux=function(e,t,r,n,i){return t&&"SAMPLE-AES"===t.method?this.transmuxSampleAes(e,t,r,n,i):this.transmuxUnencrypted(e,r,n,i)},t.transmuxUnencrypted=function(e,t,r,n){var i=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(i.audioTrack,i.videoTrack,i.id3Track,i.textTrack,t,r,!1,this.id),chunkMeta:n}},t.transmuxSampleAes=function(e,t,r,n,i){var a=this;return this.demuxer.demuxSampleAes(e,t,r).then((function(e){return{remuxResult:a.remuxer.remux(e.audioTrack,e.videoTrack,e.id3Track,e.textTrack,r,n,!1,a.id),chunkMeta:i}}))},t.configureTransmuxer=function(e){for(var t,r=this.config,n=this.observer,i=this.typeSupported,a=0,s=xs.length;a<s;a++){var o;if(null!=(o=xs[a].demux)&&o.probe(e,this.logger)){t=xs[a];break}}if(!t)return new Error("Failed to find demuxer by probing fragment data");var l=this.demuxer,u=this.remuxer,d=t.remux,c=t.demux;u&&u instanceof d||(this.remuxer=new d(n,r,i,this.logger)),l&&l instanceof c||(this.demuxer=new c(n,r,i,this.logger),this.probe=c.probe)},t.needsProbing=function(e,t){return!this.demuxer||!this.remuxer||e||t},t.getDecrypter=function(){var e=this.decrypter;return e||(e=this.decrypter=new da(this.config)),e},e}(),Rs=function(e){return{remuxResult:{},chunkMeta:e}},Ps=function(e,t,r,n,i){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=t,this.initSegmentData=r,this.duration=n,this.defaultInitPts=i||null},Os=function(e,t,r,n,i,a){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=t,this.accurateTimeOffset=r,this.trackSwitch=n,this.timeOffset=i,this.initSegmentChange=a},Ys=0,Fs=function(){function e(e,t,r,n){var i=this;this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=Ys++,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.onWorkerMessage=function(e){var t=e.data,r=i.hls;if(r&&null!=t&&t.event&&t.instanceNo===i.instanceNo)switch(t.event){case"init":var n,a=null==(n=i.workerContext)?void 0:n.objectURL;a&&self.URL.revokeObjectURL(a);break;case"transmuxComplete":i.handleTransmuxComplete(t.data);break;case"flush":i.onFlush(t.data);break;case"workerLog":r.logger[t.data.logType]&&r.logger[t.data.logType](t.data.message);break;default:t.data=t.data||{},t.data.frag=i.frag,t.data.part=i.part,t.data.id=i.id,r.trigger(t.event,t.data)}},this.onWorkerError=function(e){if(i.hls){var t=new Error(e.message+"  ("+e.filename+":"+e.lineno+")");i.hls.config.enableWorker=!1,i.hls.logger.warn('Error in "'+i.id+'" Web Worker, fallback to inline'),i.hls.trigger(ri.ERROR,{type:ei.OTHER_ERROR,details:ti.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:t})}};var a=e.config;this.hls=e,this.id=t,this.useWorker=!!a.enableWorker,this.onTransmuxComplete=r,this.onFlush=n;var s=function(e,t){(t=t||{}).frag=i.frag||void 0,e===ri.ERROR&&((t=t).parent=i.id,t.part=i.part,i.error=t.error),i.hls.trigger(e,t)};this.observer=new ts,this.observer.on(ri.FRAG_DECRYPTED,s),this.observer.on(ri.ERROR,s);var o=ae(a.preferManagedMediaSource);if(this.useWorker&&"undefined"!=typeof Worker){var l=this.hls.logger;if(a.workerPath||"function"==typeof __HLS_WORKER_BUNDLE__){try{a.workerPath?(l.log("loading Web Worker "+a.workerPath+' for "'+t+'"'),this.workerContext=function(e){var t=rs[e];if(t)return t.clientCount++,t;var r=new self.URL(e,self.location.href).href,n={worker:new self.Worker(r),scriptURL:r,clientCount:1};return rs[e]=n,n}(a.workerPath)):(l.log('injecting Web Worker for "'+t+'"'),this.workerContext=function(){var e=rs["1.6.16"];if(e)return e.clientCount++,e;var t=new self.Blob(["var exports={};var module={exports:exports};function define(f){f()};define.amd=true;("+__HLS_WORKER_BUNDLE__.toString()+")(true);"],{type:"text/javascript"}
vendor: 6,072 bytes, line 1
1),r=self.URL.createObjectURL(t),n={worker:new self.Worker(r),objectURL:r,clientCount:1};return rs["1.6.16"]=n,n}());var u=this.workerContext.worker;u.addEventListener("message",this.onWorkerMessage),u.addEventListener("error",this.onWorkerError),u.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:o,id:t,config:Bi(a)})}catch(r){l.warn('Error setting up "'+t+'" Web Worker, fallback to inline',r),this.terminateWorker(),this.error=null,this.transmuxer=new Cs(this.observer,o,a,"",t,e.logger)}return}}this.transmuxer=new Cs(this.observer,o,a,"",t,e.logger)}var t=e.prototype;return t.reset=function(){if(this.frag=null,this.part=null,this.workerContext){var e=this.instanceNo;this.instanceNo=Ys++;var t=this.hls.config,r=ae(t.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:e,typeSupported:r,id:this.id,config:Bi(t)})}},t.terminateWorker=function(){if(this.workerContext){var e=this.workerContext.worker;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),function(e){var t=rs[e||"1.6.16"];if(t&&1===t.clientCount--){var r=t.worker,n=t.objectURL;delete rs[e||"1.6.16"],n&&self.URL.revokeObjectURL(n),r.terminate()}}(this.hls.config.workerPath)}},t.destroy=function(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{var e=this.transmuxer;e&&(e.destroy(),this.transmuxer=null)}var t=this.observer;t&&t.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null},t.push=function(e,t,r,n,i,a,s,o,l,u){var d,c,h=this;l.transmuxing.start=self.performance.now();var f=this.instanceNo,m=this.transmuxer,p=a?a.start:i.start,g=i.decryptdata,_=this.frag,v=!(_&&i.cc===_.cc),y=!(_&&l.level===_.level),L=_?l.sn-_.sn:-1,b=this.part?l.part-this.part.index:-1,T=!y&&(1===L||0===L&&(1===b||0===L&&l.id>1&&l.id===(null==_?void 0:_.stats.chunkCount)&&b<=0)),M=self.performance.now();(y||L||0===i.stats.parsing.start)&&(i.stats.parsing.start=M),!a||!b&&T||(a.stats.parsing.start=M);var k=!(_&&(null==(d=i.initSegment)?void 0:d.url)===(null==(c=_.initSegment)?void 0:c.url)),S=new Os(v,T,o,y,p,k);if(!T||v||k){this.hls.logger.log("[transmuxer-interface]: Starting new transmux session for "+i.type+" sn: "+l.sn+(l.part>-1?" part: "+l.part:"")+" "+(this.id===oi?"level":"track")+": "+l.level+" id: "+l.id+"\n        discontinuity: "+v+"\n        trackSwitch: "+y+"\n        contiguous: "+T+"\n        accurateTimeOffset: "+o+"\n        timeOffset: "+p+"\n        initSegmentChange: "+k);var w=new Ps(r,n,t,s,u);this.configureTransmuxer(w)}if(this.frag=i,this.part=a,this.workerContext)this.workerContext.worker.postMessage({instanceNo:f,cmd:"demux",data:e,decryptdata:g,chunkMeta:l,state:S},e instanceof ArrayBuffer?[e]:[]);else if(m){var D=m.push(e,g,l,S);wr(D)?D.then((function(e){h.handleTransmuxComplete(e)})).catch((function(e){h.transmuxerError(e,l,"transmuxer-interface push error")})):this.handleTransmuxComplete(D)}},t.flush=function(e){var t=this;e.transmuxing.start=self.performance.now();var r=this.transmuxer;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"flush",chunkMeta:e});else if(r){var n=r.flush(e);wr(n)?n.then((function(r){t.handleFlushResult(r,e)})).catch((function(r){t.transmuxerError(r,e,"transmuxer-interface flush error")})):this.handleFlushResult(n,e)}},t.transmuxerError=function(e,t,r){this.hls&&(this.error=e,this.hls.trigger(ri.ERROR,{type:ei.MEDIA_ERROR,details:ti.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:e,err:e,reason:r}))},t.handleFlushResult=function(e,t){var r=this;e.forEach((function(e){r.handleTransmuxComplete(e)})),this.onFlush(t)},t.configureTransmuxer=function(e){var t=this.transmuxer;this.workerContext?this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"configure",config:e}):t&&t.configure(e)},t.handleTransmuxComplete=function(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)},e}(),Ns=function(e){function t(t,r,n){var i;return(i=e.call(this,t,r,n,"audio-stream-controller",li)||this).mainAnchor=null,i.mainFragLoading=null,i.audioOnly=!1,i.bufferedTrack=null,i.switchingTrack=null,i.trackId=-1,i.waitingData=null,i.mainDetails=null,i.flushing=!1,i.bufferFlushed=!1,i.cachedTrackLoadedData=null,i.registerListeners(),i}u(t,e);var r=t.prototype;return r.onHandlerDestroying=function(){this.unregisterListeners(),e.prototype.onHandlerDestroying.call(this),this.resetItem()},r.resetItem=function(){this.mainDetails=this.mainAnchor=this.mainFragLoading=this.bufferedTrack=this.switchingTrack=this.waitingData=this.cachedTrackLoadedData=null},r.registerListeners=function(){e.prototype.registerListeners.call(this);var t=this.hls;t.on(ri.LEVEL_LOADED,this.onLevelLoaded,this),t.on(ri.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.on(ri.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(ri.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(ri.BUFFER_RESET,this.onBufferReset,this),t.on(ri.BUFFER_CREATED,this.onBufferCreated,this),t.on(ri.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(ri.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(ri.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(ri.FRAG_LOADING,this.onFragLoading,this),t.on(ri.FRAG_BUFFERED,this.onFragBuffered,this)},r.unregisterListeners=function(){var t=this.hls;t&&(e.prototype.unregisterListeners.call(this),t.off(ri.LEVEL_LOADED,this.onLevelLoaded,this),t.off(ri.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.off(ri.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(ri.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(ri.BUFFER_RESET,this.onBufferReset,this),t.off(ri.BUFFER_CREATED,this.onBufferCreated,this),t.off(ri.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(ri.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(ri.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(ri.FRAG_LOADING,this.onFragLoading,this),t.off(ri.FRAG_BUFFERED,this.onFragBuffered,this))}
1,r.onInitPtsFound=function(e,t){var r=t.frag,n=t.initPTS,i=t.timescale,a=t.trackId;if(t.id===oi){var s=r.cc,o=this.fragCurrent;if(this.initPTS[s]={baseTime:n,timescale:i,trackId:a},this.log("InitPTS for cc: "+s+" found from main: "+n/i+" ("+n+"/"+i+") trackId: "+a),this.mainAnchor=r,this.state===Qa){var l=this.waitingData;(!l&&!this.loadingParts||l&&l.frag.cc!==s)&&this.syncWithAnchor(r,null==l?void 0:l.frag)}else!this.hls.hasEnoughToStart&&o&&o.cc!==s?(o.abortRequests(),this.syncWithAnchor(r,o)):this.state===Ha&&this.tick()}},r.getLoadPosition=function(){return!this.startFragRequested&&this.nextLoadPosition>=0?this.nextLoadPosition:e.prototype.getLoadPosition.call(this)},r.syncWithAnchor=function(e,t){var r,n=(null==(r=this.mainFragLoading)?void 0:r.frag)||null;if(!t||(null==n?void 0:n.cc)!==t.cc){var i=(n||e).cc,a=Se(this.getLevelDetails(),i,this.getLoadPosition());a&&(this.log("Syncing with main frag at "+a.start+" cc "+a.cc),this.startFragRequested=!1,this.nextLoadPosition=a.start,this.resetLoadingState(),this.state===Ha&&this.doTickIdle())}},r.startLoad=function(e,t){if(!this.levels)return this.startPosition=e,void(this.state=Ua);var r=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),r>0&&-1===e?(this.log("Override startPosition with lastCurrentTime @"+r.toFixed(3)),e=r,this.state=Ha):this.state=Va,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()},r.doTick=function(){switch(this.state){case Ha:this.doTickIdle();break;case Va:var t=this.levels,r=null==t?void 0:t[this.trackId],n=null==r?void 0:r.details;if(n&&!this.waitForLive(r)){if(this.waitForCdnTuneIn(n))break;this.state=Qa}break;case Ga:this.checkRetryDate();break;case Qa:var i=this.waitingData;if(i){var a=i.frag,s=i.part,o=i.cache,l=i.complete,u=this.mainAnchor;if(void 0!==this.initPTS[a.cc]){this.waitingData=null,this.state=Wa;var d={frag:a,part:s,payload:o.flush().buffer,networkDetails:null};this._handleFragmentLoadProgress(d),l&&e.prototype._handleFragmentLoadComplete.call(this,d)}else u&&u.cc!==i.frag.cc&&this.syncWithAnchor(u,i.frag)}else this.state=Ha}this.onTickEnd()},r.resetLoadingState=function(){var t=this.waitingData;t&&(this.fragmentTracker.removeFragment(t.frag),this.waitingData=null),e.prototype.resetLoadingState.call(this)},r.onTickEnd=function(){var e=this.media;null!=e&&e.readyState&&(this.lastCurrentTime=e.currentTime)},r.doTickIdle=function(){var e,t=this.hls,r=this.levels,n=this.media,i=this.trackId;if(this.buffering&&(n||this.primaryPrefetch||!this.startFragRequested&&t.config.startFragPrefetch)&&null!=r&&r[i]){var a=r[i],s=a.details;if(!s||this.waitForLive(a)||this.waitForCdnTuneIn(s))return this.state=Va,void(this.startFragRequested=!1);var o=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&o&&(this.bufferFlushed=!1,this.afterBufferFlushed(o,Li,li));var l=this.getFwdBufferInfo(o,li);if(null!==l){if(!this.switchingTrack&&this._streamEnded(l,s))return t.trigger(ri.BUFFER_EOS,{type:"audio"}),void(this.state=qa);var u=l.len,d=t.maxBufferLength,c=s.fragments,h=c[0].start,f=this.getLoadPosition(),m=this.flushing?f:l.end;if(this.switchingTrack&&n)s.PTSKnown&&f<h&&(l.end>h||l.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),n.currentTime=h+.05);if(!(u>=d&&!this.switchingTrack&&m<c[c.length-1].start)){var p=this.getNextFragment(m,s);if(p&&this.isLoopLoading(p,m)&&(p=this.getNextFragmentLoopLoading(p,s,l,oi,d)),p){if(!this.exceedsMaxBuffer(l,d,p)){var g=(null==(e=this.mainFragLoading)?void 0:e.frag)||null;if(!this.audioOnly&&this.startFragRequested&&g&&k(p)&&!p.endList&&(!s.live||!this.loadingParts&&m<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(g)===na&&(this.mainFragLoading=g=null),g&&k(g))){if(p.start>g.end){var _=this.fragmentTracker.getFragAtPos(m,oi);_&&_.end>g.end&&(g=_,this.mainFragLoading={frag:_,targetBufferTime:null})}if(p.start>g.end)return}this.loadFragment(p,a,m)}}else this.bufferFlushed=!0}}}},r.onMediaDetaching=function(t,r){this.bufferFlushed=this.flushing=!1,e.prototype.onMediaDetaching.call(this,t,r)},r.onAudioTracksUpdated=function(e,t){var r=t.audioTracks;this.resetTransmuxer(),this.levels=r.map((function(e){return new Hi(e)}))},r.onAudioTrackSwitching=function(e,t){var r=!!t.url;this.trackId=t.id;var n=this.fragCurrent;n&&(n.abortRequests(),this.removeUnbufferedFrags(n.start)),this.resetLoadingState(),r?(this.switchingTrack=t,this.flushAudioIfNeeded(t),this.state!==Ua&&(this.setInterval(100),this.state=Ha,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=t,this.clearInterval())},r.onManifestLoading=function(){e.prototype.onManifestLoading.call(this),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1},r.onLevelLoaded=function(e,t){this.mainDetails=t.details;var r=this.cachedTrackLoadedData;r&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(ri.AUDIO_TRACK_LOADED,r))},r.onAudioTrackLoaded=function(e,t){var r,n=this.levels,i=t.details,a=t.id,s=t.groupId,o=t.track;if(n){var l=this.mainDetails;if(!l||i.endCC>l.endCC||l.expired)return this.cachedTrackLoadedData=t,void(this.state!==Ua&&(this.state=Va));this.cachedTrackLoadedData=null,this.log("Audio track "+a+' "'+o.name+'" of "'+s+'" loaded ['+i.startSN+","+i.endSN+"]"+(i.lastPartSn?"[part-"+i.lastPartSn+"-"+i.lastPartIndex+"]":"")+",duration:"+i.totalduration);var u=n[a],d=0;if(i.live||null!=(r=u.details)&&r.live){if(this.checkLiveUpdate(i),i.deltaUpdateFailed)return;var c;if(u.details)d=this.alignPlaylists(i,u.details,null==(c=this.levelLastLoaded)?void 0:c.details);i.alignedSliding||(xt(i,l),i.alignedSliding||Ct(i,l),d=i.fragmentStart)}u.details=i,this.levelLastLoaded=u,this.startFragRequested||this.setStartPosition(l,d),this.hls.trigger(ri.AUDIO_TRACK_UPDATED,{details:i,id:a,groupId:t.groupId}),this.state!==Va||this.waitForCdnTuneIn(i)||(this.state=Ha),this.tick()}else this.warn("Audio tracks reset while loading track "+a+' "'+o.name+'" of "'+s+'"')},r._handleFragmentLoadProgress=function(e){var t,r=e.frag,n=e.part,i=e.payload,a=this.config,s=this.trackId,o=this.levels;if(o){var l=o[s];if(l){var u=l.details;if(!u)return this.warn("Audio track details undefined on fragment load progress"),void this.removeUnbufferedFrags(r.start);var d=a.defaultAudioCodec||l.audioCodec||"mp4a.40.2",c=this.transmuxer;c||(c=this.transmuxer=new Fs(this.hls,li,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var h=this.initPTS[r.cc],f=null==(t=r.initSegment)?void 0:t.data;if(void 0!==h){var m=n?n.index:-1,p=new pa(r.level,r.sn,r.stats.chunkCount,i.byteLength,m,-1!==m);c.push(i,f,d,"",r,n,u.totalduration,!1,p,h)}else{this.log("Unknown video PTS for cc "+r.cc+", waiting for video PTS before demuxing audio frag "+r.sn+" of ["+u.startSN+" ,"+u.endSN+"],track "+s),(this.waitingData=this.waitingData||{frag:r,part:n,cache:new $a,complete:!1}
vendor: 6,781 bytes, line 1
1).cache.push(new Uint8Array(i)),this.state!==Ua&&(this.state=Qa)}}else this.warn("Audio track is undefined on fragment load progress")}else this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+r.sn+" of level "+r.level+" will not be buffered")},r._handleFragmentLoadComplete=function(t){this.waitingData?this.waitingData.complete=!0:e.prototype._handleFragmentLoadComplete.call(this,t)},r.onBufferReset=function(){this.mediaBuffer=null},r.onBufferCreated=function(e,t){this.bufferFlushed=this.flushing=!1;var r=t.tracks.audio;r&&(this.mediaBuffer=r.buffer||null)},r.onFragLoading=function(e,t){!this.audioOnly&&t.frag.type===oi&&k(t.frag)&&(this.mainFragLoading=t,this.state===Ha&&this.tick())},r.onFragBuffered=function(e,t){var r=t.frag,n=t.part;if(r.type===li)if(this.fragContextChanged(r))this.warn("Fragment "+r.sn+(n?" p: "+n.index:"")+" of level "+r.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+(this.switchingTrack?this.switchingTrack.name:"false"));else{if(k(r)){this.fragPrevious=r;var i=this.switchingTrack;i&&(this.bufferedTrack=i,this.switchingTrack=null,this.hls.trigger(ri.AUDIO_TRACK_SWITCHED,p({},i)))}this.fragBufferedComplete(r,n),this.media&&this.tick()}else this.audioOnly||r.type!==oi||r.elementaryStreams.video||r.elementaryStreams.audiovideo||(this.audioOnly=!0,this.mainFragLoading=null)},r.onError=function(t,r){var n;if(r.fatal)this.state=Ja;else switch(r.details){case ti.FRAG_GAP:case ti.FRAG_PARSING_ERROR:case ti.FRAG_DECRYPT_ERROR:case ti.FRAG_LOAD_ERROR:case ti.FRAG_LOAD_TIMEOUT:case ti.KEY_LOAD_ERROR:case ti.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(li,r);break;case ti.AUDIO_TRACK_LOAD_ERROR:case ti.AUDIO_TRACK_LOAD_TIMEOUT:case ti.LEVEL_PARSING_ERROR:r.levelRetry||this.state!==Va||(null==(n=r.context)?void 0:n.type)!==ai||(this.state=Ha);break;case ti.BUFFER_ADD_CODEC_ERROR:case ti.BUFFER_APPEND_ERROR:if("audio"!==r.parent)return;this.reduceLengthAndFlushBuffer(r)||this.resetLoadingState();break;case ti.BUFFER_FULL_ERROR:if("audio"!==r.parent)return;this.reduceLengthAndFlushBuffer(r)&&(this.bufferedTrack=null,e.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio"));break;case ti.INTERNAL_EXCEPTION:this.recoverWorkerError(r)}},r.onBufferFlushing=function(e,t){t.type!==bi&&(this.flushing=!0)},r.onBufferFlushed=function(e,t){var r=t.type;if(r!==bi){this.flushing=!1,this.bufferFlushed=!0,this.state===qa&&(this.state=Ha);var n=this.mediaBuffer||this.media;n&&(this.afterBufferFlushed(n,r,li),this.tick())}},r._handleTransmuxComplete=function(e){var t,r="audio",n=this.hls,i=e.remuxResult,a=e.chunkMeta,s=this.getCurrentContext(a);if(s){var o=s.frag,l=s.part,u=s.level,d=u.details,c=i.audio,h=i.text,m=i.id3,p=i.initSegment;if(!this.fragContextChanged(o)&&d){if(this.state=Ka,this.switchingTrack&&c&&this.completeAudioSwitch(this.switchingTrack),null!=p&&p.tracks){var g=o.initSegment||o;if(this.unhandledEncryptionError(p,o))return;this._bufferInitSegment(u,p.tracks,g,a),n.trigger(ri.FRAG_PARSING_INIT_SEGMENT,{frag:g,id:r,tracks:p.tracks})}if(c){var _=c.startPTS,v=c.endPTS,y=c.startDTS,L=c.endDTS;l&&(l.elementaryStreams[Li]={startPTS:_,endPTS:v,startDTS:y,endDTS:L}),o.setElementaryStreamInfo(Li,_,v,y,L),this.bufferFragmentData(c,o,l,a)}if(null!=m&&null!=(t=m.samples)&&t.length){var b=f({id:r,frag:o,details:d},m);n.trigger(ri.FRAG_PARSING_METADATA,b)}if(h){var T=f({id:r,frag:o,details:d},h);n.trigger(ri.FRAG_PARSING_USERDATA,T)}}else this.fragmentTracker.removeFragment(o)}else this.resetWhenMissingContext(a)},r._bufferInitSegment=function(e,t,r,n){if(this.state===Ka&&(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,t.audio)){var i=t.audio;i.id=li;var a=e.audioCodec;this.log("Init audio buffer, container:"+i.container+", codecs[level/parsed]=["+a+"/"+i.codec+"]"),a&&1===a.split(",").length&&(i.levelCodec=a),this.hls.trigger(ri.BUFFER_CODECS,t);var s=i.initSegment;if(null!=s&&s.byteLength)this.hls.trigger(ri.BUFFER_APPENDING,{type:"audio",frag:r,part:null,chunkMeta:n,parent:r.type,data:s});this.tickImmediate()}},r.loadFragment=function(t,r,n){var i,a=this.fragmentTracker.getState(t);if(this.switchingTrack||a===ea||a===ra)if(k(t))if(null!=(i=r.details)&&i.live&&!this.initPTS[t.cc]){this.log("Waiting for video PTS in continuity counter "+t.cc+" of live stream before loading audio fragment "+t.sn+" of level "+this.trackId),this.state=Qa;var s=this.mainDetails;s&&s.fragmentStart!==r.details.fragmentStart&&Ct(r.details,s)}else e.prototype.loadFragment.call(this,t,r,n);else this._loadInitSegment(t,r);else this.clearTrackerIfNeeded(t)},r.flushAudioIfNeeded=function(t){if(this.media&&this.bufferedTrack){var r=this.bufferedTrack;ve({name:r.name,lang:r.lang,assocLang:r.assocLang,characteristics:r.characteristics,audioCodec:r.audioCodec,channels:r.channels},t,ye)||(be(t.url,this.hls)?(this.log("Switching audio track : flushing all audio"),e.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=t)}},r.completeAudioSwitch=function(e){var t=this.hls;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(ri.AUDIO_TRACK_SWITCHED,p({},e))},t}(Za),js=function(e){function t(t,r){var n;return(n=e.call(this,r,t.logger)||this).hls=void 0,n.canLoad=!1,n.timer=-1,n.hls=t,n}u(t,e);var r=t.prototype;return r.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},r.clearTimer=function(){-1!==this.timer&&(self.clearTimeout(this.timer),this.timer=-1)},r.startLoad=function(){this.canLoad=!0,this.loadPlaylist()},r.stopLoad=function(){this.canLoad=!1,this.clearTimer()},r.switchParams=function(e,t,r){var n=null==t?void 0:t.renditionReports;if(n){for(var i=-1,a=0;a<n.length;a++){var s=n[a],o=void 0;try{o=new self.URL(s.URI,t.url).href}catch(e){this.warn("Could not construct new URL for Rendition Report: "+e),o=s.URI||""}if(o===e){i=a;break}o===e.substring(0,o.length)&&(i=a)}if(-1!==i){var l=n[i],u=parseInt(l["LAST-MSN"])||t.lastPartSn,d=parseInt(l["LAST-PART"])||t.lastPartIndex;if(this.hls.config.lowLatencyMode){var c=Math.min(t.age-t.partTarget,t.targetduration);d>=0&&c>t.partTarget&&(d+=1)}var h=r&&ce(r);return new Ui(u,d>=0?d:void 0,h)}}},r.loadPlaylist=function(){this.clearTimer()},r.loadingPlaylist=function(){this.clearTimer()},r.shouldLoadPlaylist=function(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)},r.getUrlWithDirectives=function(e,t){if(t)try{return t.addDirectives(e)}catch(e){this.warn("Could not construct new URL with HLS Delivery Directives: "+e)}return e},r.playlistLoaded=function(e,t,r){var n=t.details,i=t.stats,a=self.performance.now(),s=i.loading.first?Math.max(0,a-i.loading.first):0;n.advancedDateTime=Date.now()-s;var o=this.hls.config.timelineOffset;
vendor: 12,747 bytes, line 1
1if(o!==n.appliedTimelineOffset){var l=Math.max(o||0,0);n.appliedTimelineOffset=l,n.fragments.forEach((function(e){e.setStart(e.playlistOffset+l)}))}if(n.live||null!=r&&r.live){var u="levelInfo"in t?t.levelInfo:t.track;if(n.reloaded(r),r&&n.fragments.length>0){_t(r,n,this);var d=n.playlistParsingError;if(d){this.warn(d);var c,h=this.hls;if(!h.config.ignorePlaylistParsingErrors)return void h.trigger(ri.ERROR,{type:ei.NETWORK_ERROR,details:ti.LEVEL_PARSING_ERROR,fatal:!1,url:n.url,error:d,reason:d.message,level:t.level||void 0,parent:null==(c=n.fragments[0])?void 0:c.type,networkDetails:t.networkDetails,stats:i});n.playlistParsingError=null}}-1===n.requestScheduled&&(n.requestScheduled=i.loading.start);var f,m=this.hls.mainForwardBufferInfo,p=bt(n,1e3*(n.edge-(m?m.end-m.len:0)));if(n.requestScheduled+p<a?n.requestScheduled=a:n.requestScheduled+=p,this.log("live playlist "+e+" "+(n.advanced?"REFRESHED "+n.lastPartSn+"-"+n.lastPartIndex:n.updated?"UPDATED":"MISSED")),!this.canLoad||!n.live)return;var g=void 0,_=void 0;if(n.canBlockReload&&n.endSN&&n.advanced){var v=this.hls.config.lowLatencyMode,y=n.lastPartSn,L=n.endSN,b=n.lastPartIndex,T=y===L;-1!==b?T?(g=L+1,_=v?0:b):(g=y,_=v?b+1:n.maxPartIndex):g=L+1;var M=n.age,k=M+n.ageHeader,S=Math.min(k-n.partTarget,1.5*n.targetduration);if(S>0){if(k>3*n.targetduration)this.log("Playlist last advanced "+M.toFixed(2)+"s ago. Omitting segment and part directives."),g=void 0,_=void 0;else if(null!=r&&r.tuneInGoal&&k-n.partTarget>r.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+r.tuneInGoal+" to: "+S+" with playlist age: "+n.age),S=0;else{var w=Math.floor(S/n.targetduration);if(g+=w,void 0!==_)_+=Math.round(S%n.targetduration/n.partTarget);this.log("CDN Tune-in age: "+n.ageHeader+"s last advanced "+M.toFixed(2)+"s goal: "+S+" skip sn "+w+" to part "+_)}n.tuneInGoal=S}if(f=this.getDeliveryDirectives(n,t.deliveryDirectives,g,_),v||!T)return n.requestScheduled=a,void this.loadingPlaylist(u,f)}else(n.canBlockReload||n.canSkipUntil)&&(f=this.getDeliveryDirectives(n,t.deliveryDirectives,g,_));f&&void 0!==g&&n.canBlockReload&&(n.requestScheduled=i.loading.first+Math.max(p-2*s,p/2)),this.scheduleLoading(u,f,n)}else this.clearTimer()},r.scheduleLoading=function(e,t,r){var n=this,i=r||e.details;if(i){var a=self.performance.now(),s=i.requestScheduled;if(a>=s)this.loadingPlaylist(e,t);else{var o=s-a;this.log("reload live playlist "+(e.name||e.bitrate+"bps")+" in "+Math.round(o)+" ms"),this.clearTimer(),this.timer=self.setTimeout((function(){return n.loadingPlaylist(e,t)}),o)}}else this.loadingPlaylist(e,t)},r.getDeliveryDirectives=function(e,t,r,n){var i=ce(e);return null!=t&&t.skip&&e.deltaUpdateFailed&&(r=t.msn,n=t.part,i=Fi),new Ui(r,n,i)},r.checkRetry=function(e){var t=this,r=e.details,n=we(e),i=e.errorAction,a=i||{},s=a.action,o=a.retryCount,l=void 0===o?0:o,u=a.retryConfig,d=!!i&&!!u&&(s===qi||!i.resolved&&s===Ki);if(d){var c;if(l>=u.maxNumRetry)return!1;if(n&&null!=(c=e.context)&&c.deliveryDirectives)this.warn("Retrying playlist loading "+(l+1)+"/"+u.maxNumRetry+' after "'+r+'" without delivery-directives'),this.loadPlaylist();else{var h=Ie(u,l);this.clearTimer(),this.timer=self.setTimeout((function(){return t.loadPlaylist()}),h),this.warn("Retrying playlist loading "+(l+1)+"/"+u.maxNumRetry+' after "'+r+'" in '+h+"ms")}e.levelRetry=!0,i.resolved=!0}return d},t}(hi),Us=function(e){function t(t){var r;return(r=e.call(this,t,"audio-track-controller")||this).tracks=[],r.groupIds=null,r.tracksInGroup=[],r.trackId=-1,r.currentTrack=null,r.selectDefaultTrack=!0,r.registerListeners(),r}u(t,e);var r=t.prototype;return r.registerListeners=function(){var e=this.hls;e.on(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ri.MANIFEST_PARSED,this.onManifestParsed,this),e.on(ri.LEVEL_LOADING,this.onLevelLoading,this),e.on(ri.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(ri.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(ri.ERROR,this.onError,this)},r.unregisterListeners=function(){var e=this.hls;e.off(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ri.MANIFEST_PARSED,this.onManifestParsed,this),e.off(ri.LEVEL_LOADING,this.onLevelLoading,this),e.off(ri.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(ri.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(ri.ERROR,this.onError,this)},r.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,e.prototype.destroy.call(this)},r.onManifestLoading=function(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0},r.onManifestParsed=function(e,t){this.tracks=t.audioTracks||[]},r.onAudioTrackLoaded=function(e,t){var r=t.id,n=t.groupId,i=t.details,a=this.tracksInGroup[r];if(a&&a.groupId===n){var s=a.details;a.details=t.details,this.log("Audio track "+r+' "'+a.name+'" lang:'+a.lang+" group:"+n+" loaded ["+i.startSN+"-"+i.endSN+"]"),r===this.trackId&&this.playlistLoaded(r,t,s)}else this.warn("Audio track with id:"+r+" and group:"+n+" not found in active group "+(null==a?void 0:a.groupId))},r.onLevelLoading=function(e,t){this.switchLevel(t.level)},r.onLevelSwitching=function(e,t){this.switchLevel(t.level)},r.switchLevel=function(e){var t=this.hls.levels[e];if(t){var r=t.audioGroups||null,n=this.groupIds,i=this.currentTrack;if(!r||(null==n?void 0:n.length)!==(null==r?void 0:r.length)||null!=r&&r.some((function(e){return-1===(null==n?void 0:n.indexOf(e))}))){this.groupIds=r,this.trackId=-1,this.currentTrack=null;var a=this.tracks.filter((function(e){return!r||-1!==r.indexOf(e.groupId)}));if(a.length)this.selectDefaultTrack&&!a.some((function(e){return e.default}))&&(this.selectDefaultTrack=!1),a.forEach((function(e,t){e.id=t}));else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=a;var s=this.hls.config.audioPreference;if(!i&&s){var o=_e(s,a,ye);if(o>-1)i=a[o];else{var l=_e(s,this.tracks);i=this.tracks[l]}}var u=this.findTrackId(i);-1===u&&i&&(u=this.findTrackId(null));var d={audioTracks:a};this.log("Updating audio tracks, "+a.length+" track(s) found in group(s): "+(null==r?void 0:r.join(","))),this.hls.trigger(ri.AUDIO_TRACKS_UPDATED,d);var c=this.trackId;if(-1!==u&&-1===c)this.setAudioTrack(u);else if(a.length&&-1===c){var h,f=new Error("No audio track selected for current audio group-ID(s): "+(null==(h=this.groupIds)?void 0:h.join(","))+" track count: "+a.length);this.warn(f.message),this.hls.trigger(ri.ERROR,{type:ei.MEDIA_ERROR,details:ti.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:f})}}}},r.onError=function(e,t){!t.fatal&&t.context&&(t.context.type!==ai||t.context.id!==this.trackId||this.groupIds&&-1===this.groupIds.indexOf(t.context.groupId)||this.checkRetry(t))},r.setAudioOption=function(e){var t=this.hls;if(t.config.audioPreference=e,e){var r=this.allAudioTracks;if(this.selectDefaultTrack=!1,r.length){var n=this.currentTrack;if(n&&ve(e,n,ye))return n;var i=_e(e,this.tracksInGroup,ye);if(i>-1){var a=this.tracksInGroup[i];return this.setAudioTrack(i),a}if(n){var s=t.loadLevel;-1===s&&(s=t.firstAutoLevel);var o=function(e,t,r,n,i){var a=t[n],s=t.reduce((function(e,t,r){var n=t.uri;return(e[n]||(e[n]=[])).push(r),e}),{})[a.uri];s.length>1&&(n=Math.max.apply(Math,s));var o=a.videoRange,l=a.frameRate,u=a.codecSet.substring(0,4),d=Le(t,n,(function(t){if(t.videoRange!==o||t.frameRate!==l||t.codecSet.substring(0,4)!==u)return!1;var n=t.audioGroups,a=r.filter((function(e){return!n||-1!==n.indexOf(e.groupId)}));return _e(e,a,i)>-1}));return d>-1?d:Le(t,n,(function(t){var n=t.audioGroups,a=r.filter((function(e){return!n||-1!==n.indexOf(e.groupId)}));return _e(e,a,i)>-1}))}(e,t.levels,r,s,ye);if(-1===o)return null;t.nextLoadLevel=o}if(e.channels||e.audioCodec){var l=_e(e,r);if(l>-1)return r[l]}}}return null},r.setAudioTrack=function(e){var t=this.tracksInGroup;if(e<0||e>=t.length)this.warn("Invalid audio track id: "+e);else{this.selectDefaultTrack=!1;var r=this.currentTrack,n=t[e],i=n.details&&!n.details.live;if(!(e===this.trackId&&n===r&&i||(this.log("Switching to audio-track "+e+' "'+n.name+'" lang:'+n.lang+" group:"+n.groupId+" channels:"+n.channels),this.trackId=e,this.currentTrack=n,this.hls.trigger(ri.AUDIO_TRACK_SWITCHING,p({},n)),i))){var a=this.switchParams(n.url,null==r?void 0:r.details,n.details);this.loadPlaylist(a)}}},r.findTrackId=function(e){for(var t=this.tracksInGroup,r=0;r<t.length;r++){var n=t[r];if((!this.selectDefaultTrack||n.default)&&(!e||ve(e,n,ye)))return r}if(e){for(var i=e.name,a=e.lang,s=e.assocLang,o=e.characteristics,l=e.audioCodec,u=e.channels,d=0;d<t.length;d++){if(ve({name:i,lang:a,assocLang:s,characteristics:o,audioCodec:l,channels:u},t[d],ye))return d}for(var c=0;c<t.length;c++){if(Er(e.attrs,t[c].attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return c}for(var h=0;h<t.length;h++){if(Er(e.attrs,t[h].attrs,["LANGUAGE"]))return h}}return-1},r.loadPlaylist=function(t){e.prototype.loadPlaylist.call(this);var r=this.currentTrack;this.shouldLoadPlaylist(r)&&be(r.url,this.hls)&&this.scheduleLoading(r,t)},r.loadingPlaylist=function(t,r){e.prototype.loadingPlaylist.call(this,t,r);var n=t.id,i=t.groupId,a=this.getUrlWithDirectives(t.url,r),s=t.details,o=null==s?void 0:s.age;this.log("Loading audio-track "+n+' "'+t.name+'" lang:'+t.lang+" group:"+i+(void 0!==(null==r?void 0:r.msn)?" at sn "+r.msn+" part "+r.part:"")+(o&&s.live?" age "+o.toFixed(1)+(s.type?" "+s.type||!1:""):"")+" "+a),this.hls.trigger(ri.AUDIO_TRACK_LOADING,{url:a,id:n,groupId:i,deliveryDirectives:r||null,track:t})},c(t,[{key:"allAudioTracks",get:function(){return this.tracks}},{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}}]),t}(js),Hs=function(){function e(e){this.tracks=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.tracks=e}var t=e.prototype;return t.destroy=function(){this.tracks=this.queues=null},t.append=function(e,t,r){if(null!==this.queues&&null!==this.tracks){var n=this.queues[t];n.push(e),1!==n.length||r||this.executeNext(t)}},t.appendBlocker=function(e){var t=this;return new Promise((function(r){t.append({label:"async-blocker",execute:r,onStart:function(){},onComplete:function(){},onError:function(){}},e)}))},t.prependBlocker=function(e){var t=this;return new Promise((function(r){t.queues&&t.queues[e].unshift({label:"async-blocker-prepend",execute:r,onStart:function(){},onComplete:function(){},onError:function(){}})}))},t.removeBlockers=function(){null!==this.queues&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach((function(e){var t,r=null==(t=e[0])?void 0:t.label;"async-blocker"!==r&&"async-blocker-prepend"!==r||(e[0].execute(),e.splice(0,1))}))},t.unblockAudio=function(e){null!==this.queues&&(this.queues.audio[0]===e&&this.shiftAndExecuteNext("audio"))},t.executeNext=function(e){if(null!==this.queues&&null!==this.tracks){var t=this.queues[e];if(t.length){var r=t[0];try{r.execute()}catch(t){var n;if(r.onError(t),null===this.queues||null===this.tracks)return;var i=null==(n=this.tracks[e])?void 0:n.buffer;null!=i&&i.updating||this.shiftAndExecuteNext(e)}}}},t.shiftAndExecuteNext=function(e){null!==this.queues&&(this.queues[e].shift(),this.executeNext(e))},t.current=function(e){var t;return(null==(t=this.queues)?void 0:t[e][0])||null},t.toString=function(){return null===this.queues||null===this.tracks?"<destroyed>":"\n"+this.list("video")+"\n"+this.list("audio")+"\n"+this.list("audiovideo")+"}"},t.list=function(e){var t,r;return null!=(t=this.queues)&&t[e]||null!=(r=this.tracks)&&r[e]?e+": ("+this.listSbInfo(e)+") "+this.listOps(e):""},t.listSbInfo=function(e){var t,r=null==(t=this.tracks)?void 0:t[e],n=null==r?void 0:r.buffer;return n?"SourceBuffer"+(n.updating?" updating":"")+(r.ended?" ended":"")+(r.ending?" ending":""):"none"},t.listOps=function(e){var t;return(null==(t=this.queues)?void 0:t[e].map((function(e){return e.label})).join(", "))||""},e}(),Bs=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,Ws=function(e){function t(t){var r;return(r=e.call(this,t)||this).name="HlsJsTrackRemovedError",r}return u(t,e),t}(n(Error)),Gs=function(e){function t(t,r){var n,i;return(n=e.call(this,"buffer-controller",t.logger)||this).hls=void 0,n.fragmentTracker=void 0,n.details=null,n._objectUrl=null,n.operationQueue=null,n.bufferCodecEventsTotal=0,n.media=null,n.mediaSource=null,n.lastMpegAudioChunk=null,n.blockedAudioAppend=null,n.lastVideoAppendEnd=0,n.appendSource=void 0,n.transferData=void 0,n.overrides=void 0,n.appendErrors={audio:0,video:0,audiovideo:0},n.tracks={},n.sourceBuffers=[[null,null],[null,null]],n._onEndStreaming=function(){var e;n.hls&&"open"===(null==(e=n.mediaSource)?void 0:e.readyState)&&n.hls.pauseBuffer
vendor: 6,244 bytes, line 1
1ing()},n._onStartStreaming=function(){n.hls&&n.hls.resumeBuffering()},n._onMediaSourceOpen=function(e){var t=l(n),r=t.media,i=t.mediaSource;e&&n.log("Media source opened"),r&&i&&(i.removeEventListener("sourceopen",n._onMediaSourceOpen),r.removeEventListener("emptied",n._onMediaEmptied),n.updateDuration(),n.hls.trigger(ri.MEDIA_ATTACHED,{media:r,mediaSource:i}),null!==n.mediaSource&&n.checkPendingTracks())},n._onMediaSourceClose=function(){n.log("Media source closed")},n._onMediaSourceEnded=function(){n.log("Media source ended")},n._onMediaEmptied=function(){var e=l(n),t=e.mediaSrc,r=e._objectUrl;t!==r&&n.error("Media element src was set while attaching MediaSource ("+r+" > "+t+")")},n.hls=t,n.fragmentTracker=r,n.appendSource=(i=v(t.config.preferManagedMediaSource),"undefined"!=typeof self&&i===self.ManagedMediaSource),n.initTracks(),n.registerListeners(),n}u(t,e);var r=t.prototype;return r.hasSourceTypes=function(){return Object.keys(this.tracks).length>0},r.destroy=function(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null},r.registerListeners=function(){var e=this.hls;e.on(ri.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(ri.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ri.MANIFEST_PARSED,this.onManifestParsed,this),e.on(ri.BUFFER_RESET,this.onBufferReset,this),e.on(ri.BUFFER_APPENDING,this.onBufferAppending,this),e.on(ri.BUFFER_CODECS,this.onBufferCodecs,this),e.on(ri.BUFFER_EOS,this.onBufferEos,this),e.on(ri.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(ri.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(ri.FRAG_PARSED,this.onFragParsed,this),e.on(ri.FRAG_CHANGED,this.onFragChanged,this),e.on(ri.ERROR,this.onError,this)},r.unregisterListeners=function(){var e=this.hls;e.off(ri.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(ri.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ri.MANIFEST_PARSED,this.onManifestParsed,this),e.off(ri.BUFFER_RESET,this.onBufferReset,this),e.off(ri.BUFFER_APPENDING,this.onBufferAppending,this),e.off(ri.BUFFER_CODECS,this.onBufferCodecs,this),e.off(ri.BUFFER_EOS,this.onBufferEos,this),e.off(ri.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(ri.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(ri.FRAG_PARSED,this.onFragParsed,this),e.off(ri.FRAG_CHANGED,this.onFragChanged,this),e.off(ri.ERROR,this.onError,this)},r.transferMedia=function(){var e=this,t=this.media,r=this.mediaSource;if(!t)return null;var n={};if(this.operationQueue){var i=this.isUpdating();i||this.operationQueue.removeBlockers();var a=this.isQueued();(i||a)&&this.warn("Transfering MediaSource with"+(a?" operations in queue":"")+(i?" updating SourceBuffer(s)":"")+" "+this.operationQueue),this.operationQueue.destroy()}var s=this.transferData;return!this.sourceBufferCount&&s&&s.mediaSource===r?f(n,s.tracks):this.sourceBuffers.forEach((function(t){var r=t[0];r&&(n[r]=f({},e.tracks[r]),e.removeBuffer(r)),t[0]=t[1]=null})),{media:t,mediaSource:r,tracks:n}},r.initTracks=function(){this.sourceBuffers=[[null,null],[null,null]],this.tracks={},this.resetQueue(),this.resetAppendErrors(),this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.lastVideoAppendEnd=0},r.onManifestLoading=function(){this.bufferCodecEventsTotal=0,this.details=null},r.onManifestParsed=function(e,t){var r,n=2;(t.audio&&!t.video||!t.altAudio)&&(n=1),this.bufferCodecEventsTotal=n,this.log(n+" bufferCodec event(s) expected."),null!=(r=this.transferData)&&r.mediaSource&&this.sourceBufferCount&&n&&this.bufferCreated()},r.onMediaAttaching=function(e,t){var r=this.media=t.media;this.transferData=this.overrides=void 0;var n=v(this.appendSource);if(n){var i=!!t.mediaSource;(i||t.overrides)&&(this.transferData=t,this.overrides=t.overrides);var a=this.mediaSource=t.mediaSource||new n;if(this.assignMediaSource(a),i)this._objectUrl=r.src,this.attachTransferred();else{var s=this._objectUrl=self.URL.createObjectURL(a);if(this.appendSource)try{r.removeAttribute("src");var o=self.ManagedMediaSource;r.disableRemotePlayback=r.disableRemotePlayback||o&&a instanceof o,Ir(r),function(e,t){var r=self.document.createElement("source");r.type="video/mp4",r.src=t,e.appendChild(r)}(r,s),r.load()}catch(e){r.src=s}else r.src=s}r.addEventListener("emptied",this._onMediaEmptied)}},r.assignMediaSource=function(e){var t,r;this.log(((null==(t=this.transferData)?void 0:t.mediaSource)===e?"transferred":"created")+" media source: "+(null==(r=e.constructor)?void 0:r.name)),e.addEventListener("sourceopen",this._onMediaSourceOpen),e.addEventListener("sourceended",this._onMediaSourceEnded),e.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(e.addEventListener("startstreaming",this._onStartStreaming),e.addEventListener("endstreaming",this._onEndStreaming))},r.attachTransferred=function(){var e=this,t=this.media,r=this.transferData;if(r&&t){var n=this.tracks,i=r.tracks,a=i?Object.keys(i):null,s=function(){Promise.resolve().then((function(){e.media&&e.mediaSourceOpenOrEnded&&e._onMediaSourceOpen()}))};if(i&&a&&(a?a.length:0)){if(!this.tracksReady)return this.hls.config.startFragPrefetch=!0,void this.log("attachTransferred: waiting for SourceBuffer track info");if(this.log("attachTransferred: (bufferCodecEventsTotal "+this.bufferCodecEventsTotal+")\nrequired tracks: "+Bi(n,(function(e,t){return"initSegment"===e?void 0:t}))+";\ntransfer tracks: "+Bi(i,(function(e,t){return"initSegment"===e?void 0:t}))+"}"),!y(i,n)){r.mediaSource=null,r.tracks=void 0;var o=t.currentTime,l=this.details,u=Math.max(o,(null==l?void 0:l.fragments[0].start)||0);return u-o>1?void this.log("attachTransferred: waiting for playback to reach new tracks start time "+o+" -> "+u):(this.warn('attachTransferred: resetting MediaSource for incompatible tracks ("'+Object.keys(i)+'"->"'+Object.keys(n)+'") start time: '+u+" currentTime: "+o),this.onMediaDetaching(ri.MEDIA_DETACHING,{}
vendor: 11,084 bytes, line 1
1),this.onMediaAttaching(ri.MEDIA_ATTACHING,r),void(t.currentTime=u))}this.transferData=void 0,a.forEach((function(t){var r=t,n=i[r];if(n){var a=n.buffer;if(a){var s=e.fragmentTracker,o=n.id;if(s.hasFragments(o)||s.hasParts(o)){var l=_a.getBuffered(a);s.detectEvictedFragments(r,l,o,null,!0)}var u=xr(r);e.sourceBuffers[u]=[r,a],a.updating&&e.operationQueue&&e.operationQueue.prependBlocker(r),e.trackSourceBuffer(r,n)}}})),s(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),s()}},r.onMediaDetaching=function(e,t){var r=this,n=!!t.transferMedia;this.transferData=this.overrides=void 0;var i=this.media,a=this.mediaSource,s=this._objectUrl;if(a){if(this.log("media source "+(n?"transferring":"detaching")),n)this.sourceBuffers.forEach((function(e){var t=e[0];t&&r.removeBuffer(t)})),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){var o="open"===a.readyState;try{for(var l=a.sourceBuffers,u=l.length;u--;)o&&l[u].abort(),a.removeSourceBuffer(l[u]);o&&a.endOfStream()}catch(e){this.warn("onMediaDetaching: "+e.message+" while calling endOfStream")}}this.sourceBufferCount&&this.onBufferReset()}a.removeEventListener("sourceopen",this._onMediaSourceOpen),a.removeEventListener("sourceended",this._onMediaSourceEnded),a.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(a.removeEventListener("startstreaming",this._onStartStreaming),a.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}i&&(i.removeEventListener("emptied",this._onMediaEmptied),n||(s&&self.URL.revokeObjectURL(s),this.mediaSrc===s?(i.removeAttribute("src"),this.appendSource&&Ir(i),i.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(ri.MEDIA_DETACHED,t)},r.onBufferReset=function(){var e=this;this.sourceBuffers.forEach((function(t){var r=t[0];r&&e.resetBuffer(r)})),this.initTracks()},r.resetBuffer=function(e){var t,r=null==(t=this.tracks[e])?void 0:t.buffer;if(this.removeBuffer(e),r)try{var n;null!=(n=this.mediaSource)&&n.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(r)}catch(t){this.warn("onBufferReset "+e,t)}delete this.tracks[e]},r.removeBuffer=function(e){this.removeBufferListeners(e),this.sourceBuffers[xr(e)]=[null,null];var t=this.tracks[e];t&&(t.buffer=void 0)},r.resetQueue=function(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new Hs(this.tracks)},r.onBufferCodecs=function(e,t){var r,n=this,i=this.tracks,a=Object.keys(t);this.log('BUFFER_CODECS: "'+a+'" (current SB count '+this.sourceBufferCount+")");var s="audiovideo"in t&&(i.audio||i.video)||i.audiovideo&&("audio"in t||"video"in t),o=!s&&this.sourceBufferCount&&this.media&&a.some((function(e){return!i[e]}));s||o?this.warn('Unsupported transition between "'+Object.keys(i)+'" and "'+a+'" SourceBuffers'):(a.forEach((function(e){var r,a,s=t[e],o=s.codec,l=s.levelCodec,u=s.container,d=i[e],c=null==(r=n.transferData)||null==(r=r.tracks)?void 0:r[e],h=null!=c&&c.buffer?c:d,f=(null==h?void 0:h.pendingCodec)||(null==h?void 0:h.codec),m=null==h?void 0:h.levelCodec;d||(d=i[e]={buffer:void 0,listeners:[],codec:o,supplemental:s.supplemental,container:u,levelCodec:l,metadata:s.metadata,id:s.id});var p=re(f,m),g=null==p?void 0:p.replace(Bs,"$1"),_=re(o,l),v=null==(a=_)?void 0:a.replace(Bs,"$1");_&&p&&g!==v&&("audio"===e.slice(0,5)&&(_=te(_,n.appendSource)),n.log("switching codec "+f+" to "+_),_!==(d.pendingCodec||d.codec)&&(d.pendingCodec=_),d.container=u,n.appendChangeType(e,u,_))})),(this.tracksReady||this.sourceBufferCount)&&(t.tracks=this.sourceBufferTracks),this.sourceBufferCount||(this.bufferCodecEventsTotal>1&&!this.tracks.video&&!t.video&&"main"===(null==(r=t.audio)?void 0:r.id)&&(this.log("Main audio-only"),this.bufferCodecEventsTotal=1),this.mediaSourceOpenOrEnded&&this.checkPendingTracks()))},r.appendChangeType=function(e,t,r){var n=this,i=t+";codecs="+r;this.append({label:"change-type="+i,execute:function(){var a=n.tracks[e];if(a){var s=a.buffer;null!=s&&s.changeType&&(n.log("changing "+e+" sourceBuffer type to "+i),s.changeType(i),a.codec=r,a.container=t)}n.shiftAndExecuteNext(e)},onStart:function(){},onComplete:function(){},onError:function(t){n.warn("Failed to change "+e+" SourceBuffer type",t)}},e,this.isPending(this.tracks[e]))},r.blockAudio=function(e){var t,r=this,n=e.start,i=n+.05*e.duration;if(!(!0===(null==(t=this.fragmentTracker.getAppendedFrag(n,oi))?void 0:t.gap))){var a={label:"block-audio",execute:function(){var e,t=r.tracks.video;(r.lastVideoAppendEnd>i||null!=t&&t.buffer&&_a.isBuffered(t.buffer,i)||!0===(null==(e=r.fragmentTracker.getAppendedFrag(i,oi))?void 0:e.gap))&&(r.blockedAudioAppend=null,r.shiftAndExecuteNext("audio"))},onStart:function(){},onComplete:function(){},onError:function(e){r.warn("Error executing block-audio operation",e)}};this.blockedAudioAppend={op:a,frag:e},this.append(a,"audio",!0)}},r.unblockAudio=function(){var e=this.blockedAudioAppend,t=this.operationQueue;e&&t&&(this.blockedAudioAppend=null,t.unblockAudio(e.op))},r.onBufferAppending=function(e,t){var r=this,n=this.tracks,i=t.data,a=t.type,s=t.parent,o=t.frag,l=t.part,u=t.chunkMeta,d=t.offset,c=u.buffering[a],h=o.sn,f=o.cc,m=self.performance.now();c.start=m;var p=o.stats.buffering,g=l?l.stats.buffering:null;0===p.start&&(p.start=m),g&&0===g.start&&(g.start=m);var _=n.audio,v=!1;"audio"===a&&"audio/mpeg"===(null==_?void 0:_.container)&&(v=!this.lastMpegAudioChunk||1===u.id||this.lastMpegAudioChunk.sn!==u.sn,this.lastMpegAudioChunk=u);var y=n.video,L=null==y?void 0:y.buffer;if(L&&"initSegment"!==h){var b=l||o,T=this.blockedAudioAppend;if("audio"!==a||"main"===s||this.blockedAudioAppend||y.ending||y.ended){if("video"===a){var M=b.end;if(T){var k=T.frag.start;(M>k||M<this.lastVideoAppendEnd||_a.isBuffered(L,k))&&this.unblockAudio()}this.lastVideoAppendEnd=M}}else{var S=b.start+.05*b.duration,w=L.buffered,D=this.currentOp("video");w.length||D?!D&&!_a.isBuffered(L,S)&&this.lastVideoAppendEnd<S&&this.blockAudio(b):this.blockAudio(b)}}var E=(l||o).start,A={label:"append-"+a,execute:function(){var e;c.executeStart=self.performance.now();var t=null==(e=r.tracks[a])?void 0:e.buffer;t&&(v?r.updateTimestampOffset(t,E,.1,a,h,f):void 0!==d&&Xn(d)&&r.updateTimestampOffset(t,d,1e-6,a,h,f)),r.appendExecutor(i,a)},onStart:function(){},onComplete:function(){var e=self.performance.now();c.executeEnd=c.end=e,0===p.first&&(p.first=e),g&&0===g.first&&(g.first=e);var t={};r.sourceBuffers.forEach((function(e){var r=e[0];r&&(t[r]=_a.getBuffered(e[1]))})),r.appendErrors[a]=0,"audio"===a||"video"===a?r.appendErrors.audiovideo=0:(r.appendErrors.audio=0,r.appendErrors.video=0),r.hls.trigger(ri.BUFFER_APPENDED,{type:a,frag:o,part:l,chunkMeta:u,parent:o.type,timeRanges:t})},onError:function(e){var t,n={type:ei.MEDIA_ERROR,parent:o.type,details:ti.BUFFER_APPEND_ERROR,sourceBufferName:a,frag:o,part:l,chunkMeta:u,error:e,err:e,fatal:!1},i=null==(t=r.media)?void 0:t.error;if(e.code===DOMException.QUOTA_EXCEEDED_ERR||"QuotaExceededError"==e.name||"quota"in e)n.details=ti.BUFFER_FULL_ERROR;else if(e.code===DOMException.INVALID_STATE_ERR&&r.mediaSourceOpenOrEnded&&!i)n.errorAction=Pe(!0);else if("HlsJsTrackRemovedError"===e.name&&0===r.sourceBufferCount)n.errorAction=Pe(!0);else{var s=++r.appendErrors[a];r.warn("Failed "+s+"/"+r.hls.config.appendErrorMaxRetry+' times to append segment in "'+a+'" sourceBuffer ('+(i||"no media error")+")"),(s>=r.hls.config.appendErrorMaxRetry||i)&&(n.fatal=!0)}r.hls.trigger(ri.ERROR,n)}};this.log('queuing "'+a+'" append sn: '+h+(l?" p: "+l.index:"")+" of "+(o.type===oi?"level":"track")+" "+o.level+" cc: "+f),this.append(A,a,this.isPending(this.tracks[a]))},r.getFlushOp=function(e,t,r){var n=this;return this.log('queuing "'+e+'" remove '+t+"-"+r),{label:"remove",execute:function(){n.removeExecutor(e,t,r)},onStart:function(){},onComplete:function(){n.hls.trigger(ri.BUFFER_FLUSHED,{type:e})},onError:function(i){n.warn("Failed to remove "+t+"-"+r+' from "'+e+'" SourceBuffer',i)}}},r.onBufferFlushing=function(e,t){var r=this,n=t.type,i=t.startOffset,a=t.endOffset;n?this.append(this.getFlushOp(n,i,a),n):this.sourceBuffers.forEach((function(e){var t=e[0];t&&r.append(r.getFlushOp(t,i,a),t)}))},r.onFragParsed=function(e,t){var r=this,n=t.frag,i=t.part,a=[],s=i?i.elementaryStreams:n.elementaryStreams;s[Ti]?a.push("audiovideo"):(s[Li]&&a.push("audio"),s[bi]&&a.push("video"));0===a.length&&this.warn("Fragments must have at least one ElementaryStreamType set. type: "+n.type+" level: "+n.level+" sn: "+n.sn),this.blockBuffers((function(){var e=self.performance.now();n.stats.buffering.end=e,i&&(i.stats.buffering.end=e),r.hls.trigger(ri.FRAG_BUFFERED,{frag:n,part:i,stats:i?i.stats:n.stats,id:n.type})}),a).catch((function(e){r.warn("Fragment buffered callback "+e),r.stepOperationQueue(r.sourceBufferTypes)}))},r.onFragChanged=function(){this.trimBuffers()},r.onBufferEos=function(e,t){var r,n=this;this.sourceBuffers.forEach((function(e){var r=e[0];if(r){var i=n.tracks[r];t.type&&t.type!==r||(i.ending=!0,i.ended||(i.ended=!0,n.log(r+" buffer reached EOS")))}}));var i=!1!==(null==(r=this.overrides)?void 0:r.endOfStream);this.sourceBufferCount>0&&!this.sourceBuffers.some((function(e){var t,r=e[0];return r&&!(null!=(t=n.tracks[r])&&t.ended)}))?i?(this.log("Queueing EOS"),this.blockUntilOpen((function(){n.tracksEnded();var e=n.mediaSource;e&&"open"===e.readyState?(n.log("Calling mediaSource.endOfStream()"),e.endOfStream(),n.hls.trigger(ri.BUFFERED_TO_END,void 0)):e&&n.log("Could not call mediaSource.endOfStream(). mediaSource.readyState: "+e.readyState)}))):(this.tracksEnded(),this.hls.trigger(ri.BUFFERED_TO_END,void 0)):"video"===t.type&&this.unblockAudio()},r.tracksEnded=function(){var e=this;this.sourceBuffers.forEach((function(t){var r=t[0];if(null!==r){var n=e.tracks[r];n&&(n.ending=!1)}}))},r.onLevelUpdated=function(e,t){var r=t.details;r.fragments.length&&(this.details=r,this.updateDuration())},r.updateDuration=function(){var e=this;this.blockUntilOpen((function(){var t=e.getDurationAndRange();t&&e.updateMediaSource(t)}))},r.onError=function(e,t){if(t.details===ti.BUFFER_APPEND_ERROR&&t.frag){var r,n=null==(r=t.errorAction)?void 0:r.nextAutoLevel;Xn(n)&&n!==t.frag.level&&this.resetAppendErrors()}},r.resetAppendErrors=function(){this.appendErrors={audio:0,video:0,audiovideo:0}},r.trimBuffers=function(){var e=this.details,t=this.media;if(t&&null!==e&&this.sourceBufferCount){var r=this.hls.config,n=t.currentTime,i=e.levelTargetDuration,a=e.live&&null!==r.liveBackBufferLength?r.liveBackBufferLength:r.backBufferLength;if(Xn(a)&&a>=0){var s=Math.max(a,i),o=Math.floor(n/i)*i-s;this.flushBackBuffer(n,i,o)}var l=r.frontBufferFlushThreshold;if(Xn(l)&&l>0){var u=Math.max(r.maxBufferLength,l),d=Math.max(u,i),c=Math.floor(n/i)*i+d;this.flushFrontBuffer(n,i,c)}}},r.flushBackBuffer=function(e,t,r){var n=this;this.sourceBuffers.forEach((function(e){var t=e[0],i=e[1];if(i){var a=_a.getBuffered(i);if(a.length>0&&r>a.start(0)){var s;n.hls.trigger(ri.BACK_BUFFER_REACHED,{bufferEnd:r});var o=n.tracks[t];
vendor: 5,914 bytes, line 1
1if(null!=(s=n.details)&&s.live)n.hls.trigger(ri.LIVE_BACK_BUFFER_REACHED,{bufferEnd:r});else if(null!=o&&o.ended)return void n.log("Cannot flush "+t+" back buffer while SourceBuffer is in ended state");n.hls.trigger(ri.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:t})}}}))},r.flushFrontBuffer=function(e,t,r){var n=this;this.sourceBuffers.forEach((function(t){var i=t[0],a=t[1];if(a){var s=_a.getBuffered(a),o=s.length;if(o<2)return;var l=s.start(o-1),u=s.end(o-1);if(r>l||e>=l&&e<=u)return;n.hls.trigger(ri.BUFFER_FLUSHING,{startOffset:l,endOffset:1/0,type:i})}}))},r.getDurationAndRange=function(){var e,t=this.details,r=this.mediaSource;if(!t||!this.media||"open"!==(null==r?void 0:r.readyState))return null;var n=t.edge;if(t.live&&this.hls.config.liveDurationInfinity){if(t.fragments.length&&r.setLiveSeekableRange){var i=Math.max(0,t.fragmentStart);return{duration:1/0,start:i,end:Math.max(i,n)}}return{duration:1/0}}var a=null==(e=this.overrides)?void 0:e.duration;if(a)return Xn(a)?{duration:a}:null;var s=this.media.duration;return n>(Xn(r.duration)?r.duration:0)&&n>s||!Xn(s)?{duration:n}:null},r.updateMediaSource=function(e){var t=e.duration,r=e.start,n=e.end,i=this.mediaSource;this.media&&i&&"open"===i.readyState&&(i.duration!==t&&(Xn(t)&&this.log("Updating MediaSource duration to "+t.toFixed(3)),i.duration=t),void 0!==r&&void 0!==n&&(this.log("MediaSource duration is set to "+i.duration+". Setting seekable range to "+r+"-"+n+"."),i.setLiveSeekableRange(r,n)))},r.checkPendingTracks=function(){if(this.log("checkPendingTracks (pending: "+this.pendingTrackCount+" codec events expected: "+this.bufferCodecEventsTotal+") "+Bi(this.tracks)),this.tracksReady){var e,t=null==(e=this.transferData)?void 0:e.tracks;t&&Object.keys(t).length?this.attachTransferred():this.createSourceBuffers()}},r.bufferCreated=function(){var e=this;if(this.sourceBufferCount){var t={};this.sourceBuffers.forEach((function(r){var n=r[0];if(n){var i=e.tracks[n];t[n]={buffer:r[1],container:i.container,codec:i.codec,supplemental:i.supplemental,levelCodec:i.levelCodec,id:i.id,metadata:i.metadata}}})),this.hls.trigger(ri.BUFFER_CREATED,{tracks:t}),this.log("SourceBuffers created. Running queue: "+this.operationQueue),this.sourceBuffers.forEach((function(t){e.executeNext(t[0])}))}else{var r=new Error("could not create source buffer for media codec(s)");this.hls.trigger(ri.ERROR,{type:ei.MEDIA_ERROR,details:ti.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:r,reason:r.message})}},r.createSourceBuffers=function(){var e=this.tracks,t=this.sourceBuffers,r=this.mediaSource;if(!r)throw new Error("createSourceBuffers called when mediaSource was null");for(var n in e){var i=n,a=e[i];if(this.isPending(a)){var s=this.getTrackCodec(a,i),o=a.container+";codecs="+s;a.codec=s,this.log("creating sourceBuffer("+o+")"+(this.currentOp(i)?" Queued":"")+" "+Bi(a));try{var l=r.addSourceBuffer(o);t[xr(i)]=[i,l],a.buffer=l}catch(e){var u;return this.error("error while trying to add sourceBuffer: "+e.message),this.shiftAndExecuteNext(i),null==(u=this.operationQueue)||u.removeBlockers(),delete this.tracks[i],void this.hls.trigger(ri.ERROR,{type:ei.MEDIA_ERROR,details:ti.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:e,sourceBufferName:i,mimeType:o,parent:a.id})}this.trackSourceBuffer(i,a)}}this.bufferCreated()},r.getTrackCodec=function(e,t){var r=e.supplemental,n=e.codec;r&&("video"===t||"audiovideo"===t)&&Q(r,"video")&&(n=function(e,t){var r=[];if(e)for(var n=e.split(","),i=0;i<n.length;i++)J(n[i],"video")||r.push(n[i]);return t&&r.push(t),r.join(",")}(n,r));var i=re(n,e.levelCodec);return i?"audio"===t.slice(0,5)?te(i,this.appendSource):i:""},r.trackSourceBuffer=function(e,t){var r=this,n=t.buffer;if(n){var i=this.getTrackCodec(t,e);this.tracks[e]={buffer:n,codec:i,container:t.container,levelCodec:t.levelCodec,supplemental:t.supplemental,metadata:t.metadata,id:t.id,listeners:[]},this.removeBufferListeners(e),this.addBufferListener(e,"updatestart",this.onSBUpdateStart),this.addBufferListener(e,"updateend",this.onSBUpdateEnd),this.addBufferListener(e,"error",this.onSBUpdateError),this.appendSource&&this.addBufferListener(e,"bufferedchange",(function(e,t){var n=t.removedRanges;null!=n&&n.length&&r.hls.trigger(ri.BUFFER_FLUSHED,{type:e})}))}},r.onSBUpdateStart=function(e){var t=this.currentOp(e);t&&t.onStart()},r.onSBUpdateEnd=function(e){var t;if("closed"!==(null==(t=this.mediaSource)?void 0:t.readyState)){var r=this.currentOp(e);r&&(r.onComplete(),this.shiftAndExecuteNext(e))}else this.resetBuffer(e)},r.onSBUpdateError=function(e,t){var r,n=new Error(e+" SourceBuffer error. MediaSource readyState: "+(null==(r=this.mediaSource)?void 0:r.readyState));this.error(""+n,t),this.hls.trigger(ri.ERROR,{type:ei.MEDIA_ERROR,details:ti.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:n,fatal:!1});var i=this.currentOp(e);i&&i.onError(n)},r.updateTimestampOffset=function(e,t,r,n,i,a){Math.abs(t-e.timestampOffset)>=r&&(this.log("Updating "+n+" SourceBuffer timestampOffset to "+t+" (sn: "+i+" cc: "+a+")"),e.timestampOffset=t)},r.removeExecutor=function(e,t,r){var n=this.media,i=this.mediaSource,a=this.tracks[e],s=null==a?void 0:a.buffer;if(!n||!i||!s)return this.warn("Attempting to remove from the "+e+" SourceBuffer, but it does not exist"),void this.shiftAndExecuteNext(e);var o=Xn(n.duration)?n.duration:1/0,l=Xn(i.duration)?i.duration:1/0,u=Math.max(0,t),d=Math.min(r,o,l);d>u&&(!a.ending||a.ended)?(a.ended=!1,this.log("Removing ["+u+","+d+"] from the "+e+" SourceBuffer"),s.remove(u,d)):this.shiftAndExecuteNext(e)},r.appendExecutor=function(e,t){var r=this.tracks[t],n=null==r?void 0:r.buffer;if(!n)throw new Ws("Attempting to append to the "+t+" SourceBuffer, but it does not exist");r.ending=!1,r.ended=!1,n.appendBuffer(e)},r.blockUntilOpen=function(e){var t=this;if(this.isUpdating()||this.isQueued())this.blockBuffers(e).catch((function(e){t.warn("SourceBuffer blocked callback "+e),t.stepOperation
vendor: 6,614 bytes, line 1
1Queue(t.sourceBufferTypes)}));else try{e()}catch(e){this.warn("Callback run without blocking "+this.operationQueue+" "+e)}},r.isUpdating=function(){return this.sourceBuffers.some((function(e){return e[0]&&e[1].updating}))},r.isQueued=function(){var e=this;return this.sourceBuffers.some((function(t){var r=t[0];return r&&!!e.currentOp(r)}))},r.isPending=function(e){return!!e&&!e.buffer},r.blockBuffers=function(e,t){var r=this;if(void 0===t&&(t=this.sourceBufferTypes),!t.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);var n=this.operationQueue,i=t.map((function(e){return r.appendBlocker(e)}));return t.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(i).then((function(){n===r.operationQueue&&(e(),r.stepOperationQueue(r.sourceBufferTypes))}))},r.stepOperationQueue=function(e){var t=this;e.forEach((function(e){var r,n=null==(r=t.tracks[e])?void 0:r.buffer;n&&!n.updating&&t.shiftAndExecuteNext(e)}))},r.append=function(e,t,r){this.operationQueue&&this.operationQueue.append(e,t,r)},r.appendBlocker=function(e){if(this.operationQueue)return this.operationQueue.appendBlocker(e)},r.currentOp=function(e){return this.operationQueue?this.operationQueue.current(e):null},r.executeNext=function(e){e&&this.operationQueue&&this.operationQueue.executeNext(e)},r.shiftAndExecuteNext=function(e){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(e)},r.addBufferListener=function(e,t,r){var n=this.tracks[e];if(n){var i=n.buffer;if(i){var a=r.bind(this,e);n.listeners.push({event:t,listener:a}),i.addEventListener(t,a)}}},r.removeBufferListeners=function(e){var t=this.tracks[e];if(t){var r=t.buffer;r&&(t.listeners.forEach((function(e){r.removeEventListener(e.event,e.listener)})),t.listeners.length=0)}},c(t,[{key:"mediaSourceOpenOrEnded",get:function(){var e,t=null==(e=this.mediaSource)?void 0:e.readyState;return"open"===t||"ended"===t}},{key:"sourceBufferTracks",get:function(){var e=this;return Object.keys(this.tracks).reduce((function(t,r){var n=e.tracks[r];return t[r]={id:n.id,container:n.container,codec:n.codec,levelCodec:n.levelCodec},t}),{})}},{key:"bufferedToEnd",get:function(){var e=this;return this.sourceBufferCount>0&&!this.sourceBuffers.some((function(t){var r=t[0];if(r){var n=e.tracks[r];if(n)return!n.ended||n.ending}return!1}))}},{key:"tracksReady",get:function(){var e=this.pendingTrackCount;return e>0&&(e>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}},{key:"mediaSrc",get:function(){var e,t,r=(null==(e=this.media)||null==(t=e.querySelector)?void 0:t.call(e,"source"))||this.media;return null==r?void 0:r.src}},{key:"pendingTrackCount",get:function(){var e=this;return Object.keys(this.tracks).reduce((function(t,r){return t+(e.isPending(e.tracks[r])?1:0)}),0)}},{key:"sourceBufferCount",get:function(){return this.sourceBuffers.reduce((function(e,t){return e+(t[0]?1:0)}),0)}},{key:"sourceBufferTypes",get:function(){return this.sourceBuffers.map((function(e){return e[0]})).filter((function(e){return!!e}))}}]),t}(hi),Vs=function(){function e(e){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=e,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var t=e.prototype;return t.setStreamController=function(e){this.streamController=e},t.destroy=function(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},t.registerListeners=function(){var e=this.hls;e.on(ri.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(ri.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(ri.MANIFEST_PARSED,this.onManifestParsed,this),e.on(ri.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(ri.BUFFER_CODECS,this.onBufferCodecs,this),e.on(ri.MEDIA_DETACHING,this.onMediaDetaching,this)},t.unregisterListener=function(){var e=this.hls;e.off(ri.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(ri.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(ri.MANIFEST_PARSED,this.onManifestParsed,this),e.off(ri.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(ri.BUFFER_CODECS,this.onBufferCodecs,this),e.off(ri.MEDIA_DETACHING,this.onMediaDetaching,this)},t.onFpsDropLevelCapping=function(e,t){var r=this.hls.levels[t.droppedLevel];this.isLevelAllowed(r)&&this.restrictedLevels.push({bitrate:r.bitrate,height:r.height,width:r.width})},t.onMediaAttaching=function(e,t){this.media=t.media instanceof HTMLVideoElement?t.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()},t.onManifestParsed=function(e,t){var r=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,r.config.capLevelToPlayerSize&&t.video&&this.startCapping()},t.onLevelsUpdated=function(){this.timer&&Xn(this.autoLevelCapping)&&this.detectPlayerSize()},t.onBufferCodecs=function(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()},t.onMediaDetaching=function(){this.stopCapping(),this.media=null},t.detectPlayerSize=function(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0)return void(this.clientRect=null);var e=this.hls.levels;if(e.length){var t=this.hls,r=this.getMaxLevel(e.length-1);r!==this.autoLevelCapping&&t.logger.log("Setting autoLevelCapping to "+r+": "+e[r].height+"p@"+e[r].bitrate+" for media "+this.mediaWidth+"x"+this.mediaHeight),t.autoLevelCapping=r,t.autoLevelEnabled&&t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}},t.getMaxLevel=function(t){var r=this,n=this.hls.levels;if(!n.length)return-1;var i=n.filter((function(e,n){return r.isLevelAllowed(e)&&n<=t}));return this.clientRect=null,e.getMaxLevelByMediaSize(i,this.mediaWidth,this.mediaHeight)},t.startCapping=function(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())},t.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},t.getDimensions=function(){if(this.clientRect)return this.clientRect;var e=this.media,t={width:0,height:0};if(e){var r=e.getBoundingClientRect();t.width=r.width,t.height=r.height,t.width||t.height||(t.width=r.right-r.left||e.
vendor: 4,538 bytes, line 1
1width||0,t.height=r.bottom-r.top||e.height||0)}return this.clientRect=t,t},t.isLevelAllowed=function(e){return!this.restrictedLevels.some((function(t){return e.bitrate===t.bitrate&&e.width===t.width&&e.height===t.height}))},e.getMaxLevelByMediaSize=function(e,t,r){if(null==e||!e.length)return-1;for(var n,i,a=e.length-1,s=Math.max(t,r),o=0;o<e.length;o+=1){var l=e[o];if((l.width>=s||l.height>=s)&&(n=l,!(i=e[o+1])||n.width!==i.width||n.height!==i.height)){a=o;break}}return a},c(e,[{key:"mediaWidth",get:function(){return this.getDimensions().width*this.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*this.contentScaleFactor}},{key:"contentScaleFactor",get:function(){var e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(e){}return Math.min(e,this.hls.config.maxDevicePixelRatio)}}]),e}(),Ks={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},zs={HLS:"h"},qs=function e(t,r){Array.isArray(t)&&(t=t.map((function(t){return t instanceof e?t:new e(t)}))),this.value=t,this.params=r},Js=function(e){this.description=e},Qs=/[\x00-\x1f\x7f]+/,Xs="CMCD-Request",Zs={br:"CMCD-Object",ab:"CMCD-Object",d:"CMCD-Object",ot:"CMCD-Object",tb:"CMCD-Object",tpb:"CMCD-Object",lb:"CMCD-Object",tab:"CMCD-Object",lab:"CMCD-Object",url:"CMCD-Object",pb:Xs,bl:Xs,tbl:Xs,dl:Xs,ltc:Xs,mtp:Xs,nor:Xs,nrr:Xs,rc:Xs,sn:Xs,sta:Xs,su:Xs,ttfb:Xs,ttfbb:Xs,ttlb:Xs,cmsdd:Xs,cmsds:Xs,smrt:Xs,df:Xs,cs:Xs,ts:Xs,cid:"CMCD-Session",pr:"CMCD-Session",sf:"CMCD-Session",sid:"CMCD-Session",st:"CMCD-Session",v:"CMCD-Session",msd:"CMCD-Session",bs:"CMCD-Status",bsd:"CMCD-Status",cdn:"CMCD-Status",rtp:"CMCD-Status",bg:"CMCD-Status",pt:"CMCD-Status",ec:"CMCD-Status",e:"CMCD-Status"},$s=Xs,eo=function(e){return Math.round(e)},to=function e(t,r){return Array.isArray(t)?t.map((function(t){return e(t,r)})):t instanceof qs&&"string"==typeof t.value?new qs(e(t.value,r),t.params):(r.baseUrl&&(t=function(e,t){var r=new URL(e),n=new URL(t);if(r.origin!==n.origin)return e;for(var i=r.pathname.split("/").slice(1),a=n.pathname.split("/").slice(1,-1);i[0]===a[0];)i.shift(),a.shift();for(;a.length;)a.shift(),i.unshift("..");return i.join("/")+r.search+r.hash}(t,r.baseUrl)),1===r.version?encodeURIComponent(t):t)},ro=function(e){return 100*eo(e/100)},no={br:eo,d:eo,bl:ro,dl:ro,mtp:ro,nor:function(e,t){var r=e;return t.version>=2&&(e instanceof qs&&"string"==typeof e.value?r=new qs([e]):"string"==typeof e&&(r=[e])),to(r,t)},rtp:ro,tb:eo},io=["ab","bg","bl","br","bs","bsd","cdn","cid","cs","df","ec","lab","lb","ltc","msd","mtp","pb","pr","pt","sf","sid","sn","st","sta","tab","tb","tbl","tpb","ts","v"],ao=["e"],so=/^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/,oo=["d","dl","nor","ot","rtp","su"],lo=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"],uo=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"],co=((zn={}).response=function(e){return io.includes(e)||oo.includes(e)||lo.includes(e)||Vr(e)},zn.event=function(e){return io.includes(e)||ao.includes(e)||Vr(e)},zn.request=function(e){return io.includes(e)||oo.includes(e)||Vr(e)},zn),ho=/CMCD=[^&#]+/,fo=function(){function e(e){var t=this;this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){t.initialized&&(t.starved=!0),t.buffering=!0},this.onPlaying=function(){t.initialized||(t.initialized=!0),t.buffering=!1},this.applyPlaylistData=function(e){try{t.apply(e,{ot:Ks.MANIFEST,su:!t.initialized})}catch(e){t.hls.logger.warn("Could not generate manifest CMCD data.",e)}},this.applyFragmentData=function(e){try{var r=e.frag,n=e.part,i=t.hls.levels[r.level],a=t.getObjectType(r),s={d:1e3*(n||r).duration,ot:a};a!==Ks.VIDEO&&a!==Ks.AUDIO&&a!=Ks.MUXED||(s.br=i.bitrate/1e3,s.tb=t.getTopBandwidth(a)/1e3,s.bl=t.getBufferLength(a));var o=n?t.getNextPart(n):t.getNextFrag(r);null!=o&&o.url&&o.url!==r.url&&(s.nor=o.url),t.apply(e,s)}catch(e){t.hls.logger.warn("Could not generate segment CMCD data.",e)}},this.hls=e;var r=this.config=e.config,n=r.cmcd;null!=n&&(r.pLoader=this.createPlaylistLoader(),r.fLoader=this.createFragmentLoader(),this.sid=n.sessionId||e.sessionId,this.cid=n.contentId,this.useHeaders=!0===n.useHeaders,this.includeKeys=n.includeKeys,this.registerListeners())}var t=e.prototype;return t.registerListeners=function(){var e=this.hls;
vendor: 15,985 bytes, line 1
1e.on(ri.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(ri.MEDIA_DETACHED,this.onMediaDetached,this),e.on(ri.BUFFER_CREATED,this.onBufferCreated,this)},t.unregisterListeners=function(){var e=this.hls;e.off(ri.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(ri.MEDIA_DETACHED,this.onMediaDetached,this),e.off(ri.BUFFER_CREATED,this.onBufferCreated,this)},t.destroy=function(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=this.media=null},t.onMediaAttached=function(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},t.onMediaDetached=function(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)},t.onBufferCreated=function(e,t){var r,n;this.audioBuffer=null==(r=t.tracks.audio)?void 0:r.buffer,this.videoBuffer=null==(n=t.tracks.video)?void 0:n.buffer},t.createData=function(){var e;return{v:1,sf:zs.HLS,sid:this.sid,cid:this.cid,pr:null==(e=this.media)?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},t.apply=function(e,t){void 0===t&&(t={}),f(t,this.createData()),this.starved&&(t.ot===Ks.INIT||t.ot===Ks.VIDEO||t.ot===Ks.MUXED)&&(t.bs=!0,t.su=!0,this.starved=!1),null==t.su&&(t.su=this.buffering);var r=this.includeKeys;r&&(t=Object.keys(t).reduce((function(e,n){return r.includes(n)&&(e[n]=t[n]),e}),{}));var n={baseUrl:e.url};this.useHeaders?(e.headers||(e.headers={}),qr(e.headers,t,n)):e.url=Qr(e.url,t,n)},t.getNextFrag=function(e){var t,r=null==(t=this.hls.levels[e.level])?void 0:t.details;if(r)return r.fragments[e.sn-r.startSN+1]},t.getNextPart=function(e){var t,r=e.index,n=e.fragment,i=null==(t=this.hls.levels[n.level])||null==(t=t.details)?void 0:t.partList;if(i)for(var a=n.sn,s=i.length-1;s>=0;s--){var o=i[s];if(o.index===r&&o.fragment.sn===a)return i[s+1]}},t.getObjectType=function(e){var t=e.type;return"subtitle"===t?Ks.TIMED_TEXT:"initSegment"===e.sn?Ks.INIT:"audio"===t?Ks.AUDIO:"main"===t?this.hls.audioTracks.length?Ks.VIDEO:Ks.MUXED:void 0},t.getTopBandwidth=function(e){var t,r=0,n=this.hls;if(e===Ks.AUDIO)t=n.audioTracks;else{var i=n.maxAutoLevel;t=n.levels.slice(0,i>-1?i+1:n.levels.length)}return t.forEach((function(e){e.bitrate>r&&(r=e.bitrate)})),r>0?r:NaN},t.getBufferLength=function(e){var t=this.media,r=e===Ks.AUDIO?this.audioBuffer:this.videoBuffer;return r&&t?1e3*_a.bufferInfo(r,t.currentTime,this.config.maxBufferHole).len:NaN},t.createPlaylistLoader=function(){var e=this.applyPlaylistData,t=this.config.pLoader||this.config.loader;return function(){function r(e){this.loader=void 0,this.loader=new t(e)}var n=r.prototype;return n.destroy=function(){this.loader.destroy()},n.abort=function(){this.loader.abort()},n.load=function(t,r,n){e(t),this.loader.load(t,r,n)},c(r,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),r}()},t.createFragmentLoader=function(){var e=this.applyFragmentData,t=this.config.fLoader||this.config.loader;return function(){function r(e){this.loader=void 0,this.loader=new t(e)}var n=r.prototype;return n.destroy=function(){this.loader.destroy()},n.abort=function(){this.loader.abort()},n.load=function(t,r,n){e(t),this.loader.load(t,r,n)},c(r,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),r}()},e}(),mo=function(e){function t(t){var r;return(r=e.call(this,"content-steering",t.logger)||this).hls=void 0,r.loader=null,r.uri=null,r.pathwayId=".",r._pathwayPriority=null,r.timeToLoad=300,r.reloadTimer=-1,r.updated=0,r.started=!1,r.enabled=!0,r.levels=null,r.audioTracks=null,r.subtitleTracks=null,r.penalizedPathways={},r.hls=t,r.registerListeners(),r}u(t,e);var r=t.prototype;return r.registerListeners=function(){var e=this.hls;e.on(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ri.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(ri.MANIFEST_PARSED,this.onManifestParsed,this),e.on(ri.ERROR,this.onError,this)},r.unregisterListeners=function(){var e=this.hls;e&&(e.off(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ri.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(ri.MANIFEST_PARSED,this.onManifestParsed,this),e.off(ri.ERROR,this.onError,this))},r.pathways=function(){return(this.levels||[]).reduce((function(e,t){return-1===e.indexOf(t.pathwayId)&&e.push(t.pathwayId),e}),[])},r.startLoad=function(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){var e=1e3*this.timeToLoad-(performance.now()-this.updated);if(e>0)return void this.scheduleRefresh(this.uri,e)}this.loadSteeringManifest(this.uri)}},r.stopLoad=function(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()},r.clearTimeout=function(){-1!==this.reloadTimer&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)},r.destroy=function(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null},r.removeLevel=function(e){var t=this.levels;t&&(this.levels=t.filter((function(t){return t!==e})))},r.onManifestLoading=function(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null},r.onManifestLoaded=function(e,t){var r=t.contentSteering;null!==r&&(this.pathwayId=r.pathwayId,this.uri=r.uri,this.started&&this.startLoad())},r.onManifestParsed=function(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks},r.onError=function(e,t){var r=t.errorAction;if((null==r?void 0:r.action)===Ki&&r.flags===Qi){var n=this.levels,i=this._pathwayPriority,a=this.pathwayId;if(t.context){var s=t.context,o=s.groupId,l=s.pathwayId;o&&n?a=this.getPathwayForGroupId(o,s.type,a):l&&(a=l)}a in this.penalizedPathways||(this.penalizedPathways[a]=performance.now()),!i&&n&&(i=this.pathways()),i&&i.length>1&&(this.updatePathwayPriority(i),r.resolved=this.pathwayId!==a),t.details!==ti.BUFFER_APPEND_ERROR||t.fatal?r.resolved||this.warn("Could not resolve "+t.details+' ("'+t.error.message+'") with content-steering for Pathway: '+a+" levels: "+(n?n.length:n)+" priorities: "+Bi(i)+" penalized: "+Bi(this.penalizedPathways)):r.resolved=!0}},r.filterParsedLevels=function(e){this.levels=e;var t=this.getLevelsForPathway(this.pathwayId);if(0===t.length){var r=e[0].pathwayId;this.log("No levels found in Pathway "+this.pathwayId+'. Setting initial Pathway to "'+r+'"'),t=this.getLevelsForPathway(r),this.pathwayId=r}return t.length!==e.length&&this.log("Found "+t.length+"/"+e.length+' levels in Pathway "'+this.pathwayId+'"'),t},r.getLevelsForPathway=function(e){return null===this.levels?[]:this.levels.filter((function(t){return e===t.pathwayId}))},r.updatePathwayPriority=function(e){var t;this._pathwayPriority=e;var r=this.penalizedPathways,n=performance.now();Object.keys(r).forEach((function(e){n-r[e]>3e5&&delete r[e]}));for(var i=0;i<e.length;i++){var a=e[i];if(!(a in r)){if(a===this.pathwayId)return;var s=this.hls.nextLoadLevel,o=this.hls.levels[s];if((t=this.getLevelsForPathway(a)).length>0){this.log('Setting Pathway to "'+a+'"'),this.pathwayId=a,St(t),this.hls.trigger(ri.LEVELS_UPDATED,{levels:t});var l=this.hls.levels[s];o&&l&&this.levels&&(l.attrs["STABLE-VARIANT-ID"]!==o.attrs["STABLE-VARIANT-ID"]&&l.bitrate!==o.bitrate&&this.log("Unstable Pathways change from bitrate "+o.bitrate+" to "+l.bitrate),this.hls.nextLoadLevel=s);break}}}},r.getPathwayForGroupId=function(e,t,r){for(var n=this.getLevelsForPathway(r).concat(this.levels||[]),i=0;i<n.length;i++)if(t===ai&&n[i].hasAudioGroup(e)||t===si&&n[i].hasSubtitleGroup(e))return n[i].pathwayId;return r},r.clonePathways=function(e){var t=this,r=this.levels;if(r){var n={},i={};e.forEach((function(e){var a=e.ID,s=e["BASE-ID"],o=e["URI-REPLACEMENT"];if(!r.some((function(e){return e.pathwayId===a}))){var l=t.getLevelsForPathway(s).map((function(e){var t=new ba(e.attrs);t["PATHWAY-ID"]=a;var r=t.AUDIO&&t.AUDIO+"_clone_"+a,s=t.SUBTITLES&&t.SUBTITLES+"_clone_"+a;r&&(n[t.AUDIO]=r,t.AUDIO=r),s&&(i[t.SUBTITLES]=s,t.SUBTITLES=s);var l=Zr(e.uri,t["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",o),u=new Hi({attrs:t,audioCodec:e.audioCodec,bitrate:e.bitrate,height:e.height,name:e.name,url:l,videoCodec:e.videoCodec,width:e.width});if(e.audioGroups)for(var d=1;d<e.audioGroups.length;d++)u.addGroupId("audio",e.audioGroups[d]+"_clone_"+a);if(e.subtitleGroups)for(var c=1;c<e.subtitleGroups.length;c++)u.addGroupId("text",e.subtitleGroups[c]+"_clone_"+a);return u}));r.push.apply(r,l),Xr(t.audioTracks,n,o,a),Xr(t.subtitleTracks,i,o,a)}}))}},r.loadSteeringManifest=function(e){var t,r=this,n=this.hls.config,i=n.loader;this.loader&&this.loader.destroy(),this.loader=new i(n);try{t=new self.URL(e)}catch(t){return this.enabled=!1,void this.log("Failed to parse Steering Manifest URI: "+e)}if("data:"!==t.protocol){var a=0|(this.hls.bandwidthEstimate||n.abrEwmaDefaultEstimate);t.searchParams.set("_HLS_pathway",this.pathwayId),t.searchParams.set("_HLS_throughput",""+a)}var s={responseType:"json",url:t.href},o=n.steeringManifestLoadPolicy.default,l=o.errorRetry||o.timeoutRetry||{},u={loadPolicy:o,timeout:o.maxLoadTimeMs,maxRetry:l.maxNumRetry||0,retryDelay:l.retryDelayMs||0,maxRetryDelay:l.maxRetryDelayMs||0},d={onSuccess:function(e,n,i){r.log('Loaded steering manifest: "'+t+'"');var a=e.data;if(1===(null==a?void 0:a.VERSION)){r.updated=performance.now(),r.timeToLoad=a.TTL;var s=a["RELOAD-URI"],o=a["PATHWAY-CLONES"],l=a["PATHWAY-PRIORITY"];if(s)try{r.uri=new self.URL(s,t).href}catch(e){return r.enabled=!1,void r.log("Failed to parse Steering Manifest RELOAD-URI: "+s)}r.scheduleRefresh(r.uri||i.url),o&&r.clonePathways(o);var u={steeringManifest:a,url:t.toString()};r.hls.trigger(ri.STEERING_MANIFEST_LOADED,u),l&&r.updatePathwayPriority(l)}else r.log("Steering VERSION "+a.VERSION+" not supported!")},onError:function(e,t){if(r.log("Error loading steering manifest: "+e.code+" "+e.text+" ("+t.url+")"),r.stopLoad(),410===e.code)return r.enabled=!1,void r.log("Steering manifest "+t.url+" no longer available");var n=1e3*r.timeToLoad;if(429!==e.code)r.scheduleRefresh(r.uri||t.url,n);else{var i=r.loader;if("function"==typeof(null==i?void 0:i.getResponseHeader)){var a=i.getResponseHeader("Retry-After");a&&(n=1e3*parseFloat(a))}r.log("Steering manifest "+t.url+" rate limited")}},onTimeout:function(e,t){r.log("Timeout loading steering manifest ("+t.url+")"),r.scheduleRefresh(r.uri||t.url)}};this.log("Requesting steering manifest: "+t),this.loader.load(s,u,d)},r.scheduleRefresh=function(e,t){var r=this;void 0===t&&(t=1e3*this.timeToLoad),this.clearTimeout(),this.reloadTimer=self.setTimeout((function(){var t,n=null==(t=r.hls)?void 0:t.media;!n||n.ended?r.scheduleRefresh(e,1e3*r.timeToLoad):r.loadSteeringManifest(e)}),t)},c(t,[{key:"pathwayPriority",get:function(){return this._pathwayPriority},set:function(e){this.updatePathwayPriority(e)}}]),t}(hi),po=function(e){function t(r){var n;return(n=e.call(this,"eme",r.logger)||this).hls=void 0,n.config=void 0,n.media=null,n.mediaResolved=void 0,n.keyFormatPromise=null,n.keySystemAccessPromises={},n._requestLicenseFailureCount=0,n.mediaKeySessions=[],n.keyIdToKeySessionPromise={},n.mediaKeys=null,n.setMediaKeysQueue=t.CDMCleanupPromise?[t.CDMCleanupPromise]:[],n.bannedKeyIds={},n.onMediaEncrypted=function(e){var t=e.initDataType,r=e.initData,i='"'+e.type+'" event: init data type: "'+t+'"';if(n.debug(i),null!==r){if(!n.keyFormatPromise){var a=Object.keys(n.keySystemAccessPromises);a.length||(a=tt(n.config));var s=a.map(et).filter((function(e){return!!e}));n.keyFormatPromise=n.getKeyFormatPromise(s)}n.keyFormatPromise.then((function(a){var s=$e(a);if("sinf"===t&&s===Sa.FAIRPLAY){var o;try{var u=w(new Uint8Array(r)),d=U(Je(JSON.parse(u).sinf));if(!d)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");o=new Uint8Array(d.subarray(8,24))}catch(e){return void n.warn(i+" Failed to parse sinf: "+e)}for(var c=b(o),h=l(n),f=h.keyIdToKeySessionPromise,m=h.mediaKeySessions,p=f[c],g=function(e){var i=m[e],a=i.decryptdata;if(!a.keyId)return"continue";var s=b(a.keyId);return Ve(o,a.keyId)||-1!==a.uri.replace(/-/g,"").indexOf(c)?(p=f[s])?(a.pssh||(delete f[s],a.pssh=new Uint8Array(r),a.keyId=o,(p=f[c]=p.then((function(){return n.generateRequestWithPreferredKeySession(i,t,r,"encrypted-event-key-match")}))).catch((function(e){return n.handleError(e)}))),"break"):"continue":void 0},_=0;_<m.length;_++){var v=g(_);if("continue"!==v&&"break"===v)break}p||n.handleError(new Error("Key ID "+c+" not encountered in playlist. Key-system sessions "+m.length+"."))}else n.log('Ignoring "'+e.type+'" event with init data type: "'+t+'" for selected key-system '+s)})).catch((function(e){return n.handleError(e)}))}},n.onWaitingForKey=function(e){n.log('"'+e.type+'" event')},n.hls=r,n.config=r.config,n.registerListeners(),n}u(t,e);var r=t.prototype;return r.destroy=function(){this.onDestroying(),this.onMediaDetached();var e=this.config;e.requestMediaKeySystemAccessFunc=null,e.licenseXhrSetup=e.licenseResponseCallback=void 0,e.drmSystems=e.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null},r.registerListeners=function(){this.hls.on(ri.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(ri.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(ri.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(ri.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.on(ri.DESTROYING,this.onDestroying,this)},r.unregisterListeners=function(){this.hls.off(ri.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(ri.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(ri.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(ri.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.off(ri.DESTROYING,this.onDestroying,this)},r.getLicenseServerUrl=function(e){var t=this.config,r=t.drmSystems,n=t.widevineLicenseUrl,i=null==r?void 0:r[e];return i?i.licenseUrl:e===Sa.WIDEVINE&&n?n:void 0},r.getLicenseServerUrlOrThrow=function(e){var t=this.getLicenseServerUrl(e);if(void 0===t)throw new Error('no license server URL configured for key-system "'+e+'"');return t},r.getServerCertificateUrl=function(e){var t=this.config.drmSystems,r=null==t?void 0:t[e];if(r)return r.serverCertificateUrl;this.log('No Server Certificate in config.drmSystems["'+e+'"]')},r.attemptKeySystemAccess=function(e){var t=this,r=this.hls.levels,n=function(e,t,r){return!!e&&r.indexOf(e)===t},i=r.map((function(e){return e.audioCodec})).filter(n),a=r.map((function(e){return e.videoCodec})).filter(n);return i.length+a.length===0&&a.push("avc1.42e01e"),new Promise((function(r,n){!function e(s){var o=s.shift();t.getMediaKeysPromise(o,i,a).then((function(e){return r({keySystem:o,mediaKeys:e})})).catch((function(t){s.length?e(s):n(t instanceof go?t:new go({type:ei.KEY_SYSTEM_ERROR,details:ti.KEY_SYSTEM_NO_ACCESS,error:t,fatal:!0},t.message))}))}(e)}))},r.requestMediaKeySystemAccess=function(e,t){var r=this.config.requestMediaKeySystemAccessFunc;if("function"!=typeof r){var n="Configured requestMediaKeySystemAccess is not a function "+r;return null===Ia&&"http:"===self.location.protocol&&(n="navigator.requestMediaKeySystemAccess is not available over insecure protocol "+location.protocol),Promise.reject(new Error(n))}return r(e,t)},r.getMediaKeysPromise=function(e,t,r){var n,i=this,a=function(e,t,r,n){var i;switch(e){case Sa.FAIRPLAY:i=["cenc","sinf"];break;case Sa.WIDEVINE:case Sa.PLAYREADY:i=["cenc"];break;case Sa.CLEARKEY:i=["cenc","keyids"];break;default:throw new Error("Unknown key-system: "+e)}return function(e,t,r,n){return[{initDataTypes:e,persistentState:n.persistentState||"optional",distinctiveIdentifier:n.distinctiveIdentifier||"optional",sessionTypes:n.sessionTypes||[n.sessionType||"temporary"],audioCapabilities:t.map((function(e){return{contentType:"audio/mp4;
1 codecs="+e,robustness:n.audioRobustness||"",encryptionScheme:n.audioEncryptionScheme||null}})),videoCapabilities:r.map((function(e){return{contentType:"video/mp4; codecs="+e,robustness:n.videoRobustness||"",encryptionScheme:n.videoEncryptionScheme||null}}))}]}(i,t,r,n)}(e,t,r,this.config.drmSystemOptions||{}),s=this.keySystemAccessPromises[e],o=null==(n=s)?void 0:n.keySystemAccess;if(!o){this.log('Requesting encrypted media "'+e+'" key-system access with config: '+Bi(a)),o=this.requestMediaKeySystemAccess(e,a);var l=s=this.keySystemAccessPromises[e]={keySystemAccess:o};return o.catch((function(t){i.log('Failed to obtain access to key-system "'+e+'": '+t)})),o.then((function(t){i.log('Access for key-system "'+t.keySystem+'" obtained');var r=i.fetchServerCertificate(e);i.log('Create media-keys for "'+e+'"');var n=l.mediaKeys=t.createMediaKeys().then((function(t){return i.log('Media-keys created for "'+e+'"'),l.hasMediaKeys=!0,r.then((function(r){return r?i.setMediaKeysServerCertificate(t,e,r):t}))}));return n.catch((function(t){i.error('Failed to create media-keys for "'+e+'"}: '+t)})),n}))}return o.then((function(){return s.mediaKeys}))},r.createMediaKeySessionContext=function(e){var t=e.decryptdata,r=e.keySystem,n=e.mediaKeys;this.log('Creating key-system session "'+r+'" keyId: '+b(t.keyId||[])+" keyUri: "+t.uri);var i=n.createSession(),a={decryptdata:t,keySystem:r,mediaKeys:n,mediaKeysSession:i,keyStatus:"status-pending"};return this.mediaKeySessions.push(a),a},r.renewKeySession=function(e){var t=e.decryptdata;if(t.pssh){var r=this.createMediaKeySessionContext(e),n=$r(t);this.keyIdToKeySessionPromise[n]=this.generateRequestWithPreferredKeySession(r,"cenc",t.pssh.buffer,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)},r.updateKeySession=function(e,t){var r=e.mediaKeysSession;return this.log('Updating key-session "'+r.sessionId+'" for keyId '+b(e.decryptdata.keyId||[])+"\n      } (data length: "+t.byteLength+")"),r.update(t)},r.getSelectedKeySystemFormats=function(){var e=this;return Object.keys(this.keySystemAccessPromises).map((function(t){return{keySystem:t,hasMediaKeys:e.keySystemAccessPromises[t].hasMediaKeys}})).filter((function(e){return!!e.hasMediaKeys})).map((function(e){return et(e.keySystem)})).filter((function(e){return!!e}))},r.getKeySystemAccess=function(e){var t=this;return this.getKeySystemSelectionPromise(e).then((function(e){return t.attemptSetMediaKeys(e.keySystem,e.mediaKeys)}))},r.selectKeySystem=function(e){var t=this;return new Promise((function(r,n){t.getKeySystemSelectionPromise(e).then((function(e){var t=e.keySystem,i=et(t);i?r(i):n(new Error('Unable to find format for key-system "'+t+'"'))})).catch(n)}))},r.selectKeySystemFormat=function(e){var t=Object.keys(e.levelkeys||{});return this.keyFormatPromise||(this.log("Selecting key-system from fragment (sn: "+e.sn+" "+e.type+": "+e.level+") key formats "+t.join(", ")),this.keyFormatPromise=this.getKeyFormatPromise(t)),this.keyFormatPromise},r.getKeyFormatPromise=function(e){var t=tt(this.config),r=e.map($e).filter((function(e){return!!e&&-1!==t.indexOf(e)}));return this.selectKeySystem(r)},r.getKeyStatus=function(e){for(var t=this.mediaKeySessions,r=0;r<t.length;r++){var n=en(e,t[r]);if(n)return n}},r.loadKey=function(e){var t=this,r=e.keyInfo.decryptdata,n=$r(r),i=this.bannedKeyIds[n];if(i||"internal-error"===this.getKeyStatus(r)){var a=tn(i||"internal-error",r);return this.handleError(a,e.frag),Promise.reject(a)}var s="(keyId: "+n+' format: "'+r.keyFormat+'" method: '+r.method+" uri: "+r.uri+")";this.log("Starting session for key "+s);var o=this.keyIdToKeySessionPromise[n];if(!o){var l=this.getKeySystemForKeyPromise(r).then((function(n){var i=n.keySystem,a=n.mediaKeys;return t.throwIfDestroyed(),t.log("Handle encrypted media sn: "+e.frag.sn+" "+e.frag.type+": "+e.frag.level+" using key "+s),t.attemptSetMediaKeys(i,a).then((function(){return t.throwIfDestroyed(),t.createMediaKeySessionContext({keySystem:i,mediaKeys:a,decryptdata:r})}))})).then((function(e){return t.generateRequestWithPreferredKeySession(e,"cenc",r.pssh?r.pssh.buffer:null,"playlist-key")}));return l.catch((function(r){return t.handleError(r,e.frag)})),this.keyIdToKeySessionPromise[n]=l,l}return o.catch((function(n){if(n instanceof go){var i=p({},n.data);"internal-error"===t.getKeyStatus(r)&&(i.decryptdata=r);var a=new go(i,n.message);t.handleError(a,e.frag)}})),o},r.throwIfDestroyed=function(e){if(void 0===e&&(e="Invalid state"),!this.hls)throw new Error("invalid state")},r.handleError=function(e,t){if(this.hls)if(e instanceof go){t&&(e.data.frag=t);var r=e.data.decryptdata;this.error(e.message+(r?" ("+b(r.keyId||[])+")":"")),this.hls.trigger(ri.ERROR,e.data)}else this.error(e.message),this.hls.trigger(ri.ERROR,{type:ei.KEY_SYSTEM_ERROR,details:ti.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0})},r.getKeySystemForKeyPromise=function(e){var t=$r(e),r=this.keyIdToKeySessionPromise[t];if(!r){var n=$e(e.keyFormat),i=n?[n]:tt(this.config);return this.attemptKeySystemAccess(i)}return r},r.getKeySystemSelectionPromise=function(e){if(e.length||(e=tt(this.config)),0===e.length)throw new go({type:ei.KEY_SYSTEM_ERROR,details:ti.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},"Missing key-system license configuration options "+Bi({drmSystems:this.config.drmSystems}));return this.attemptKeySystemAccess(e)},r.attemptSetMediaKeys=function(e,t){var r=this;if(this.mediaResolved=void 0,this.mediaKeys===t)return Promise.resolve();var n=this.setMediaKeysQueue.slice();this.log('Setting media-keys for "'+e+'"');var i=Promise.all(n).then((function(){return r.media?r.media.setMediaKeys(t):new Promise((function(e,n){r.mediaResolved=function(){if(r.mediaResolved=void 0,!r.media)return n(new Error("Attempted to set mediaKeys without media element attached"));r.mediaKeys=t,r.media.setMediaKeys(t).then(e).catch(n)}}))}));return this.mediaKeys=t,this.setMediaKeysQueue.push(i),i.then((function(){r.log('Media-keys set for "'+e+'"'),n.push(i),r.setMediaKeysQueue=r.setMediaKeysQueue.filter((function(e){return-1===n.indexOf(e)}))}))},r.generateRequestWithPreferredKeySession=function(e,t,r,n){var i,a=this,s=null==(i=this.config.drmSystems)||null==(i=i[e.keySystem])?void 0:i.generateRequest;if(s)try{var o=s.call(this.hls,t,r,e);if(!o)throw new Error("Invalid response from configured generateRequest filter");t=o.initDataType,e.decryptdata.pssh=(r=o.initData?o.initData:null)?new Uint8Array(r):null}catch(e){if(this.warn(e.message),this.hls&&this.hls.config.debug)throw e}if(null===r)return this.log('Skipping key-session request for "'+n+'" (no initData)'),Promise.resolve(e);var l=$r(e.decryptdata),u=e.decryptdata.uri;this.log('Generating key-session request for "'+n+'" keyId: '+l+" URI: "+u+" (init data type: "+t+" length: "+r.byteLength+")");var d=new ts,c=e._onmessage=function(t){var r=e.mediaKeysSession;if(r){var n=t.messageType,i=t.message;a.log('"'+n+'" message event for session "'+r.sessionId+'" message size: '+i.byteLength),"license-request"===n||"license-renewal"===n?a.renewLicense(e,i
vendor: 9,596 bytes, line 1
1).catch((function(e){d.eventNames().length?d.emit("error",e):a.handleError(e)})):"license-release"===n?e.keySystem===Sa.FAIRPLAY&&a.updateKeySession(e,Qe("acknowledged")).then((function(){return a.removeSession(e)})).catch((function(e){return a.handleError(e)})):a.warn('unhandled media key message type "'+n+'"')}else d.emit("error",new Error("invalid state"))},h=function(e,t){var r;t.keyStatus=e,e.startsWith("usable")?d.emit("resolved"):"internal-error"===e||"output-restricted"===e||"output-downscaled"===e?r=tn(e,t.decryptdata):"expired"===e?r=new Error("key expired (keyId: "+l+")"):"released"===e?r=new Error("key released"):"status-pending"===e||a.warn('unhandled key status change "'+e+'" (keyId: '+l+")"),r&&(d.eventNames().length?d.emit("error",r):a.handleError(r))},f=e._onkeystatuseschange=function(){if(e.mediaKeysSession){var t=a.getKeyStatuses(e);if(Object.keys(t).some((function(e){return"status-pending"!==t[e]}))){if("expired"===t[l])return a.log("Expired key "+Bi(t)+' in key-session "'+e.mediaKeysSession.sessionId+'"'),void a.renewKeySession(e);var r=t[l];if(r)h(r,e);else{var n;e.keyStatusTimeouts||(e.keyStatusTimeouts={}),(n=e.keyStatusTimeouts)[l]||(n[l]=self.setTimeout((function(){if(e.mediaKeysSession&&a.mediaKeys){var t=a.getKeyStatus(e.decryptdata);if(t&&"status-pending"!==t)return a.log("No status for keyId "+l+' in key-session "'+e.mediaKeysSession.sessionId+'". Using session key-status '+t+" from other session."),h(t,e);a.log("key status for "+l+' in key-session "'+e.mediaKeysSession.sessionId+'" timed out after 1000ms'),h(r="internal-error",e)}}),1e3)),a.log("No status for keyId "+l+" ("+Bi(t)+").")}}}else d.emit("error",new Error("invalid state"))};Rt(e.mediaKeysSession,"message",c),Rt(e.mediaKeysSession,"keystatuseschange",f);var m=new Promise((function(e,t){d.on("error",t),d.on("resolved",e)}));return e.mediaKeysSession.generateRequest(t,r).then((function(){a.log('Request generated for key-session "'+e.mediaKeysSession.sessionId+'" keyId: '+l+" URI: "+u)})).catch((function(t){throw new go({type:ei.KEY_SYSTEM_ERROR,details:ti.KEY_SYSTEM_NO_SESSION,error:t,decryptdata:e.decryptdata,fatal:!1},"Error generating key-session request: "+t)})).then((function(){return m})).catch((function(t){return d.removeAllListeners(),a.removeSession(e).then((function(){throw t}))})).then((function(){return d.removeAllListeners(),e}))},r.getKeyStatuses=function(e){var t=this,r={};return e.mediaKeysSession.keyStatuses.forEach((function(n,i){if("string"==typeof i&&"object"==typeof n){var a=i;i=n,n=a}var s="buffer"in i?new Uint8Array(i.buffer,i.byteOffset,i.byteLength):new Uint8Array(i);if(e.keySystem===Sa.PLAYREADY&&16===s.length){var o=b(s);r[o]=n,Xe(s)}var l=b(s);"internal-error"===n&&(t.bannedKeyIds[l]=n),t.log('key status change "'+n+'" for keyStatuses keyId: '+l+' key-session "'+e.mediaKeysSession.sessionId+'"'),r[l]=n})),r},r.fetchServerCertificate=function(e){var t=this.config,r=new(0,t.loader)(t),n=this.getServerCertificateUrl(e);return n?(this.log('Fetching server certificate for "'+e+'"'),new Promise((function(i,a){var s={responseType:"arraybuffer",url:n},o=t.certLoadPolicy.default;r.load(s,{loadPolicy:o,timeout:o.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},{onSuccess:function(e){i(e.data)},onError:function(t,r,i){a(new go({type:ei.KEY_SYSTEM_ERROR,details:ti.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:i,response:p({url:s.url,data:void 0},t)},'"'+e+'" certificate request failed ('+n+"). Status: "+t.code+" ("+t.text+")"))},onTimeout:function(t,r,i){a(new go({type:ei.KEY_SYSTEM_ERROR,details:ti.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:i,response:{url:s.url,data:void 0}},'"'+e+'" certificate request timed out ('+n+")"))},onAbort:function(){a(new Error("aborted"))}})}))):Promise.resolve()},r.setMediaKeysServerCertificate=function(e,t,r){var n=this;return new Promise((function(i,a){e.setServerCertificate(r).then((function(a){n.log("setServerCertificate "+(a?"success":"not supported by CDM")+" ("+r.byteLength+') on "'+t+'"'),i(e)})).catch((function(e){a(new go({type:ei.KEY_SYSTEM_ERROR,details:ti.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:e,fatal:!0},e.message))}))}))},r.renewLicense=function(e,t){var r=this;return this.requestLicense(e,new Uint8Array(t)).then((function(t){return r.updateKeySession(e,new Uint8Array(t)).catch((function(t){throw new go({type:ei.KEY_SYSTEM_ERROR,details:ti.KEY_SYSTEM_SESSION_UPDATE_FAILED,decryptdata:e.decryptdata,error:t,fatal:!1},t.message)}))}))},r.unpackPlayReadyKeyMessage=function(e,t){var r=String.fromCharCode.apply(null,new Uint16Array(t.buffer));if(!r.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;var n=(new DOMParser).parseFromString(r,"application/xml"),i=n.querySelectorAll("HttpHeader");if(i.length>0)for(var a,s=0,o=i.length;s<o;s++){var l,u,d=null==(l=(a=i[s]).querySelector("name"))?void 0:l.textContent,c=null==(u=a.querySelector("value"))?void 0:u.textContent;d&&c&&e.setRequestHeader(d,c)}var h=n.querySelector("Challenge"),f=null==h?void 0:h.textContent;if(!f)throw new Error("Cannot find <Challenge> in key message");return Qe(atob(f))},r.setupLicenseXHR=function(e,t,r,n){var i=this,a=this.config.licenseXhrSetup;return a?Promise.resolve().then((function(){if(!r.decryptdata)throw new Error("Key removed");return a.call(i.hls,e,t,r,n)})).catch((function(s){if(!r.decryptdata)throw s;return e.open("POST",t,!0),a.call(i.hls,e,t,r,n)})).then((function(r){return e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:r||n}})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:n}))},r.requestLicense=function(e,t){var r=this,n=this.config.keyLoadPolicy.default;return new Promise((function(i,a){var s=r.getLicenseServerUrlOrThrow(e.keySystem);r.log("Sending license request to URL: "+s);var o=new XMLHttpRequest;o.responseType="arraybuffer",o.onreadystatechange=function(){if(!r.hls||!e.mediaKeysSession)return a(new Error("invalid state"));if(4===o.readyState)if(200===o.status){r._requestLicenseFailureCount=0;var l=o.response;r.log("License received "+(l instanceof ArrayBuffer?l.byteLength:l));var u=r.config.licenseResponseCallback;if(u)try{l=u.call(r.hls,o,s,e)}catch(e){r.error(e)}i(l)}else{var d=n.errorRetry,c=d?d.maxNumRetry:0;if(r._requestLicenseFailureCount++,r._requestLicenseFailureCount>c||o.status>=400&&o.status<500)a(new go({type:ei.KEY_SYSTEM_ERROR,details:ti.KEY_SYSTEM_LICENSE_REQUEST_FAILED,decryptdata:e.decryptdata,fatal:!0,networkDetails:o,response:{url:s,data:void 0,code:o.status,text:o.statusText}},"License Request XHR failed ("+s+"). Status: "+o.status+" ("+o.statusText+")"));else r.warn("Retrying license request, "+(c-r._requestLicenseFailureCount+1)+" attempts left"),r.requestLicense(e,t).then(i,a)}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=o,r.setupLicenseXHR(o,s,e,t).then((function(t){var n=t.xhr,i=t.licenseChallenge;e.keySystem==Sa.PLAYREADY&&(i=r.unpackPlayReadyKeyMessage(n,i)),n.send(i)})).catch(a)}))},r.onDestroying=function(){this.unregisterListeners(),this._clear()},r.onMediaAttached=function(e,t){if(this.config.emeEnabled){var r=t.media;this.media=r,Rt(r,"encrypted",this.onMediaEncrypted),Rt(r,"waitingforkey",this.onWaitingForKey);var n=this.mediaResolved;n?n():this.mediaKeys=r.mediaKeys}},r.onMediaDetached=function(){var e=this.media;e&&(Pt(e,"encrypted",this.onMediaEncrypted),Pt(e,"waitingforkey",this.onWaitingForKey),this.media=null,this.mediaKeys=null)},r._clear=function(){var e,r=this;this._requestLicenseFailureCount=0,this.keyIdToKeySessionPromise={},this.bannedKeyIds={};var n=this.mediaResolved;if(n&&n(),this.mediaKeys||this.mediaKeySessions.length){var i=this.media,a=this.mediaKeySessions.slice();this.mediaKeySessions=[],this.mediaKeys=null,Ca.clearKeyUriToKeyIdMap();var s=a.length;t.CDMCleanupPromise=Promise.all(a.map((function(e){return r.removeSession(e)})).concat((null==i||null==(e=i.setMediaKeys(null))?void 0:e.catch((function(e){r.log("Could not clear media keys: "+e),r.hls&&r.hls.trigger(ri.ERROR,{type:ei.OTHER_ERROR,details:ti.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error("Could not clear media keys: "+e)})})))||Promise.resolve())).catch((function(e){r.log("Could not close sessions and clear media keys: "+e),r.hls&&r.hls.trigger(ri.ERROR,{type:ei.OTHER_ERROR,details:ti.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error("Could not close sessions and clear media keys: "+e)})})).then((function(){s&&r.log("finished closing key sessions and clearing media keys")}))}},r.onManifestLoading=function(){this._clear()},r.onManifestLoaded=function(e,t){var r=t.sessionKeys;if(r&&this.config.emeEnabled&&!this.keyFormatPromise){var n=r.reduce((function(e,t){return-1===e.indexOf(t.keyFormat)&&e.push(t.keyFormat),e}),[]);this.log("Selecting key-system from session-keys "+n.join(", ")),this.keyFormatPromise=this.getKeyFormatPromise(n)}},r.removeSession=function(e){var t=this,r=e.mediaKeysSession,n=e.licenseXhr,i=e.decryptdata;if(r){this.log('Remove licenses and keys and close session "'+r.sessionId+'" keyId: '+b((null==i?void 0:i.keyId)||[])),e._onmessage&&(r.removeEventListener("message",e._onmessage),e._onmessage=void 0),e._onkeystatuseschange&&(r.removeEventListener("keystatuseschange",e._onkeystatuseschange),e._onkeystatuseschange=void 0),n&&n.readyState!==XMLHttpRequest.DONE&&n.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;var a=this.mediaKeySessions.indexOf(e);a>-1&&this.mediaKeySessions.splice(a,1);var s=e.keyStatusTimeouts;
vendor: 10,772 bytes, line 1
1return s&&Object.keys(s).forEach((function(e){return self.clearTimeout(s[e])})),(function(e){var t;return!(!e||"persistent-license"!==e.sessionType&&(null==(t=e.sessionTypes)||!t.some((function(e){return"persistent-license"===e}))))}(this.config.drmSystemOptions)?new Promise((function(e,t){self.setTimeout((function(){return t(new Error("MediaKeySession.remove() timeout"))}),8e3),r.remove().then(e).catch(t)})):Promise.resolve()).catch((function(e){t.log("Could not remove session: "+e),t.hls&&t.hls.trigger(ri.ERROR,{type:ei.OTHER_ERROR,details:ti.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error("Could not remove session: "+e)})})).then((function(){return r.close()})).catch((function(e){t.log("Could not close session: "+e),t.hls&&t.hls.trigger(ri.ERROR,{type:ei.OTHER_ERROR,details:ti.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error("Could not close session: "+e)})}))}return Promise.resolve()},t}(hi);po.CDMCleanupPromise=void 0;var go=function(e){function t(t,r){var n;return(n=e.call(this,r)||this).data=void 0,t.error||(t.error=new Error(r)),n.data=t,t.err=t.error,n}return u(t,e),t}(n(Error)),_o=function(){function e(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}var t=e.prototype;return t.setStreamController=function(e){this.streamController=e},t.registerListeners=function(){this.hls.on(ri.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(ri.MEDIA_DETACHING,this.onMediaDetaching,this)},t.unregisterListeners=function(){this.hls.off(ri.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(ri.MEDIA_DETACHING,this.onMediaDetaching,this)},t.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},t.onMediaAttaching=function(e,t){var r=this.hls.config;if(r.capLevelOnFPSDrop){var n=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=n,n&&"function"==typeof n.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),r.fpsDroppedMonitoringPeriod)}},t.onMediaDetaching=function(){this.media=null},t.checkFPS=function(e,t,r){var n=performance.now();if(t){if(this.lastTime){var i=r-this.lastDroppedFrames,a=t-this.lastDecodedFrames,s=1e3*i/(n-this.lastTime),o=this.hls;if(o.trigger(ri.FPS_DROP,{currentDropped:i,currentDecoded:a,totalDroppedFrames:r}),s>0&&i>o.config.fpsDroppedMonitoringThreshold*a){var l=o.currentLevel;o.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+l),l>0&&(-1===o.autoLevelCapping||o.autoLevelCapping>=l)&&(o.trigger(ri.FPS_DROP_LEVEL_CAPPING,{level:l-=1,droppedLevel:o.currentLevel}),o.autoLevelCapping=l,this.streamController.nextLevelSwitch())}}this.lastTime=n,this.lastDroppedFrames=r,this.lastDecodedFrames=t}},t.checkFPSInterval=function(){var e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){var t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)},e}(),vo=function(e){function t(t){var r;return(r=e.call(this,t,"subtitle-track-controller")||this).media=null,r.tracks=[],r.groupIds=null,r.tracksInGroup=[],r.trackId=-1,r.currentTrack=null,r.selectDefaultTrack=!0,r.queuedDefaultTrack=-1,r.useTextTrackPolling=!1,r.subtitlePollingInterval=-1,r._subtitleDisplay=!0,r.asyncPollTrackChange=function(){return r.pollTrackChange(0)},r.onTextTracksChanged=function(){if(r.useTextTrackPolling||self.clearInterval(r.subtitlePollingInterval),r.media&&r.hls.config.renderTextTracksNatively){for(var e=null,t=on(r.media.textTracks),n=0;n<t.length;n++)if("hidden"===t[n].mode)e=t[n];else if("showing"===t[n].mode){e=t[n];break}var i=r.findTrackForTextTrack(e);r.subtitleTrack!==i&&r.setSubtitleTrack(i)}},r.registerListeners(),r}u(t,e);var r=t.prototype;return r.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,e.prototype.destroy.call(this)},r.registerListeners=function(){var e=this.hls;e.on(ri.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(ri.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ri.MANIFEST_PARSED,this.onManifestParsed,this),e.on(ri.LEVEL_LOADING,this.onLevelLoading,this),e.on(ri.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(ri.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(ri.ERROR,this.onError,this)},r.unregisterListeners=function(){var e=this.hls;e.off(ri.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(ri.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ri.MANIFEST_PARSED,this.onManifestParsed,this),e.off(ri.LEVEL_LOADING,this.onLevelLoading,this),e.off(ri.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(ri.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(ri.ERROR,this.onError,this)},r.onMediaAttached=function(e,t){this.media=t.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))},r.pollTrackChange=function(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)},r.onMediaDetaching=function(e,t){var r=this.media;if(r){var n=!!t.transferMedia;if(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||r.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),this.subtitleTrack=-1,this.media=null,!n)on(r.textTracks).forEach((function(e){an(e)}))}},r.onManifestLoading=function(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0},r.onManifestParsed=function(e,t){this.tracks=t.subtitleTracks},r.onSubtitleTrackLoaded=function(e,t){var r=t.id,n=t.groupId,i=t.details,a=this.tracksInGroup[r];if(a&&a.groupId===n){var s=a.details;a.details=t.details,this.log("Subtitle track "+r+' "'+a.name+'" lang:'+a.lang+" group:"+n+" loaded ["+i.startSN+"-"+i.endSN+"]"),r===this.trackId&&this.playlistLoaded(r,t,s)}else this.warn("Subtitle track with id:"+r+" and group:"+n+" not found in active group "+(null==a?void 0:a.groupId))},r.onLevelLoading=function(e,t){this.switchLevel(t.level)},r.onLevelSwitching=function(e,t){this.switchLevel(t.level)},r.switchLevel=function(e){var t=this.hls.levels[e];if(t){var r=t.subtitleGroups||null,n=this.groupIds,i=this.currentTrack;if(!r||(null==n?void 0:n.length)!==(null==r?void 0:r.length)||null!=r&&r.some((function(e){return-1===(null==n?void 0:n.indexOf(e))}))){this.groupIds=r,this.trackId=-1,this.currentTrack=null;var a=this.tracks.filter((function(e){return!r||-1!==r.indexOf(e.groupId)}));if(a.length)this.selectDefaultTrack&&!a.some((function(e){return e.default}))&&(this.selectDefaultTrack=!1),a.forEach((function(e,t){e.id=t}));else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=a;var s=this.hls.config.subtitlePreference;if(!i&&s){this.selectDefaultTrack=!1;var o=_e(s,a);if(o>-1)i=a[o];else{var l=_e(s,this.tracks);i=this.tracks[l]}}var u=this.findTrackId(i);-1===u&&i&&(u=this.findTrackId(null));var d={subtitleTracks:a};this.log("Updating subtitle tracks, "+a.length+' track(s) found in "'+(null==r?void 0:r.join(","))+'" group-id'),this.hls.trigger(ri.SUBTITLE_TRACKS_UPDATED,d),-1!==u&&-1===this.trackId&&this.setSubtitleTrack(u)}}},r.findTrackId=function(e){for(var t=this.tracksInGroup,r=this.selectDefaultTrack,n=0;n<t.length;n++){var i=t[n];if((!r||i.default)&&(r||e)&&(!e||ve(i,e)))return n}if(e){for(var a=0;a<t.length;a++){if(Er(e.attrs,t[a].attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return a}for(var s=0;s<t.length;s++){if(Er(e.attrs,t[s].attrs,["LANGUAGE"]))return s}}return-1},r.findTrackForTextTrack=function(e){if(e)for(var t=this.tracksInGroup,r=0;r<t.length;r++){if(Ar(t[r],e))return r}return-1},r.onError=function(e,t){!t.fatal&&t.context&&(t.context.type!==si||t.context.id!==this.trackId||this.groupIds&&-1===this.groupIds.indexOf(t.context.groupId)||this.checkRetry(t))},r.setSubtitleOption=function(e){if(this.hls.config.subtitlePreference=e,e){if(-1===e.id)return this.setSubtitleTrack(-1),null;var t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){var r=this.currentTrack;if(r&&ve(e,r))return r;var n=_e(e,this.tracksInGroup);if(n>-1){var i=this.tracksInGroup[n];return this.setSubtitleTrack(n),i}if(r)return null;var a=_e(e,t);if(a>-1)return t[a]}}return null},r.loadPlaylist=function(t){e.prototype.loadPlaylist.call(this),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,t)},r.loadingPlaylist=function(t,r){e.prototype.loadingPlaylist.call(this,t,r);var n=t.id,i=t.groupId,a=this.getUrlWithDirectives(t.url,r),s=t.details,o=null==s?void 0:s.age;this.log("Loading subtitle "+n+' "'+t.name+'" lang:'+t.lang+" group:"+i+(void 0!==(null==r?void 0:r.msn)?" at sn "+r.msn+" part "+r.part:"")+(o&&s.live?" age "+o.toFixed(1)+(s.type?" "+s.type||!1:""):"")+" "+a),this.hls.trigger(ri.SUBTITLE_TRACK_LOADING,{url:a,id:n,groupId:i,deliveryDirectives:r||null,track:t})},r.toggleTrackModes=function(){var e=this.media;if(e){var t,r=on(e.textTracks),n=this.currentTrack;if(n&&((t=r.filter((function(e){return Ar(n,e)}))[0])||this.warn('Unable to find subtitle TextTrack with name "'+n.name+'" and language "'+n.lang+'"')),[].slice.call(r).forEach((function(e){"disabled"!==e.mode&&e!==t&&(e.mode="disabled")})),t){var i=this.subtitleDisplay?"showing":"hidden";t.mode!==i&&(t.mode=i)}}},r.setSubtitleTrack=function(e){var t=this.tracksInGroup;if(this.media)if(e<-1||e>=t.length||!Xn(e))this.warn("Invalid subtitle track id: "+e);else{this.selectDefaultTrack=!1;var r=this.currentTrack,n=t[e]||null;if(this.trackId=e,this.currentTrack=n,this.toggleTrackModes(),n){if(e!==this.trackId||n!==r||!(!!n.details&&!n.details.live)){this.log("Switching to subtitle-track "+e+(n?' "'+n.name+'" lang:'+n.lang+" group:"+n.groupId:""));var i=n.groupId;this.hls.trigger(ri.SUBTITLE_TRACK_SWITCH,{id:n.id,groupId:void 0===i?"":i,name:n.name,type:n.type,url:n.url});var a=this.switchParams(n.url,null==r?void 0:r.details,n.details);this.loadPlaylist(a)}}else this.hls.trigger(ri.SUBTITLE_TRACK_SWITCH,{id:e})}else this.queuedDefaultTrack=e}
vendor: 4,469 bytes, line 1
1,c(t,[{key:"subtitleDisplay",get:function(){return this._subtitleDisplay},set:function(e){this._subtitleDisplay=e,this.trackId>-1&&this.toggleTrackModes()}},{key:"allSubtitleTracks",get:function(){return this.tracks}},{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(e){this.selectDefaultTrack=!1,this.setSubtitleTrack(e)}}]),t}(js),yo=function(e){return e[e.Point=0]="Point",e[e.Range=1]="Range",e}({}),Lo=function(){function e(e,t){this.base=void 0,this._duration=null,this._timelineStart=null,this.appendInPlaceDisabled=void 0,this.appendInPlaceStarted=void 0,this.dateRange=void 0,this.hasPlayed=!1,this.cumulativeDuration=0,this.resumeOffset=NaN,this.playoutLimit=NaN,this.restrictions={skip:!1,jump:!1},this.snapOptions={out:!1,in:!1},this.assetList=[],this.assetListLoader=void 0,this.assetListResponse=null,this.resumeAnchor=void 0,this.error=void 0,this.resetOnResume=void 0,this.base=t,this.dateRange=e,this.setDateRange(e)}var t=e.prototype;return t.setDateRange=function(e){this.dateRange=e,this.resumeOffset=e.attr.optionalFloat("X-RESUME-OFFSET",this.resumeOffset),this.playoutLimit=e.attr.optionalFloat("X-PLAYOUT-LIMIT",this.playoutLimit),this.restrictions=e.attr.enumeratedStringList("X-RESTRICT",this.restrictions),this.snapOptions=e.attr.enumeratedStringList("X-SNAP",this.snapOptions)},t.reset=function(){var e;this.appendInPlaceStarted=!1,null==(e=this.assetListLoader)||e.destroy(),this.assetListLoader=void 0,this.supplementsPrimary||(this.assetListResponse=null,this.assetList=[],this._duration=null)},t.isAssetPastPlayoutLimit=function(e){var t;if(e>0&&e>=this.assetList.length)return!0;var r=this.playoutLimit;return!(e<=0||isNaN(r))&&(0===r||((null==(t=this.assetList[e])?void 0:t.startOffset)||0)>r)},t.findAssetIndex=function(e){return this.assetList.indexOf(e)},t.toString=function(){return'["'+(e=this).identifier+'" '+(e.cue.pre?"<pre>":e.cue.post?"<post>":"")+e.timelineStart.toFixed(2)+"-"+e.resumeTime.toFixed(2)+"]";var e},c(e,[{key:"identifier",get:function(){return this.dateRange.id}},{key:"startDate",get:function(){return this.dateRange.startDate}},{key:"startTime",get:function(){var e=this.dateRange.startTime;if(this.snapOptions.out){var t=this.dateRange.tagAnchor;if(t)return dn(e,t)}return e}},{key:"startOffset",get:function(){return this.cue.pre?0:this.startTime}},{key:"startIsAligned",get:function(){if(0===this.startTime||this.snapOptions.out)return!0;var e=this.dateRange.tagAnchor;if(e){var t=this.dateRange.startTime;return t-dn(t,e)<.1}return!1}},{key:"resumptionOffset",get:function(){var e=this.resumeOffset,t=Xn(e)?e:this.duration;return this.cumulativeDuration+t}},{key:"resumeTime",get:function(){var e=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){var t=this.resumeAnchor;if(t)return dn(e,t)}return e}},{key:"appendInPlace",get:function(){return!!this.appendInPlaceStarted||!this.appendInPlaceDisabled&&!(this.cue.once||this.cue.pre||!this.startIsAligned||!(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)<.025))},set:function(e){this.appendInPlaceStarted?this.resetOnResume=!e:this.appendInPlaceDisabled=!e}},{key:"timelineStart",get:function(){return null!==this._timelineStart?this._timelineStart:this.startTime},set:function(e){this._timelineStart=e}},{key:"duration",get:function(){var e,t=this.playoutLimit;return e=null!==this._duration?this._duration:this.dateRange.duration?this.dateRange.duration:this.dateRange.plannedDuration||0,!isNaN(t)&&t<e&&(e=t),e},set:function(e){this._duration=e}},{key:"cue",get:function(){return this.dateRange.cue}},{key:"timelineOccupancy",get:function(){return"RANGE"===this.dateRange.attr["X-TIMELINE-OCCUPIES"]?yo.Range:yo.Point}},{key:"supplementsPrimary",get:function(){return"PRIMARY"===this.dateRange.attr["X-TIMELINE-STYLE"]}},{key:"contentMayVary",get:function(){return"NO"!==this.dateRange.attr["X-CONTENT-MAY-VARY"]}},{key:"assetUrl",get:function(){return this.dateRange.attr["X-ASSET-URI"]}},{key:"assetListUrl",get:function(){return this.dateRange.attr["X-ASSET-LIST"]}},{key:"baseUrl",get:function(){return this.base.url}},{key:"assetListLoaded",get:function(){return this.assetList.length>0||null!==this.assetListResponse}}]),e}(),bo=function(){function e(e,t,r,n){var i=this;this.hls=void 0,this.interstitial=void 0,this.assetItem=void 0,this.tracks=null,this.hasDetail
vendor: 4,160 bytes, line 1
1s=!1,this.mediaAttached=null,this._currentTime=void 0,this._bufferedEosTime=void 0,this.checkPlayout=function(){i.reachedPlayout(i.currentTime)&&i.hls&&i.hls.trigger(ri.PLAYOUT_LIMIT_REACHED,{})};var a=this.hls=new e(t);this.interstitial=r,this.assetItem=n;var s=function(){i.hasDetails=!0};a.once(ri.LEVEL_LOADED,s),a.once(ri.AUDIO_TRACK_LOADED,s),a.once(ri.SUBTITLE_TRACK_LOADED,s),a.on(ri.MEDIA_ATTACHING,(function(e,t){var r=t.media;i.removeMediaListeners(),i.mediaAttached=r,i.interstitial.playoutLimit&&(r.addEventListener("timeupdate",i.checkPlayout),i.appendInPlace&&a.on(ri.BUFFER_APPENDED,(function(){var e=i.bufferedEnd;i.reachedPlayout(e)&&(i._bufferedEosTime=e,a.trigger(ri.BUFFERED_TO_END,void 0))})))}))}var t=e.prototype;return t.loadSource=function(){var e=this.hls;if(e)if(e.url)e.levels.length&&!e.started&&e.startLoad(-1,!0);else{var t=this.assetItem.uri;try{t=cn(t,e.config.primarySessionId||"").href}catch(e){}e.loadSource(t)}},t.bufferedInPlaceToEnd=function(e){var t;if(!this.appendInPlace)return!1;if(null!=(t=this.hls)&&t.bufferedToEnd)return!0;if(!e)return!1;var r=Math.min(this._bufferedEosTime||1/0,this.duration),n=_a.bufferInfo(e,this.timelineOffset,0);return this.getAssetTime(n.end)>=r-.02},t.reachedPlayout=function(e){return this.startOffset+e>=this.interstitial.playoutLimit},t.getAssetTime=function(e){var t=this.duration;return Math.min(Math.max(0,e-this.timelineOffset),t)},t.removeMediaListeners=function(){var e=this.mediaAttached;e&&(this._currentTime=e.currentTime,this.bufferSnapShot(),e.removeEventListener("timeupdate",this.checkPlayout))},t.bufferSnapShot=function(){var e;this.mediaAttached&&(null!=(e=this.hls)&&e.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd))},t.destroy=function(){this.removeMediaListeners(),this.hls&&this.hls.destroy(),this.hls=null,this.tracks=this.mediaAttached=this.checkPlayout=null},t.attachMedia=function(e){var t;this.loadSource(),null==(t=this.hls)||t.attachMedia(e)},t.detachMedia=function(){var e;this.removeMediaListeners(),this.mediaAttached=null,null==(e=this.hls)||e.detachMedia()},t.resumeBuffering=function(){var e;null==(e=this.hls)||e.resumeBuffering()},t.pauseBuffering=function(){var e;null==(e=this.hls)||e.pauseBuffering()},t.transferMedia=function(){var e;return this.bufferSnapShot(),(null==(e=this.hls)?void 0:e.transferMedia())||null},t.resetDetails=function(){var e=this.hls;if(e&&this.hasDetails){e.stopLoad();var t=function(e){return delete e.details};e.levels.forEach(t),e.allAudioTracks.forEach(t),e.allSubtitleTracks.forEach(t),this.hasDetails=!1}},t.on=function(e,t){var r;null==(r=this.hls)||r.on(e,t)},t.once=function(e,t){var r;null==(r=this.hls)||r.once(e,t)},t.off=function(e,t){var r;null==(r=this.hls)||r.off(e,t)},t.toString=function(){var e;return"HlsAssetPlayer: "+fn(this.assetItem)+" "+(null==(e=this.hls)?void 0:e.sessionId)+" "+(this.appendInPlace?"append-in-place":"")},c(e,[{key:"appendInPlace",get:function(){return this.interstitial.appendInPlace}},{key:"destroyed",get:function(){var e;return!(null!=(e=this.hls)&&e.userConfig)}},{key:"assetId",get:function(){return this.assetItem.identifier}},{key:"interstitialId",get:function(){return this.assetItem.parentIdentifier}},{key:"media",get:function(){var e;return(null==(e=this.hls)?void 0:e.media)||null}},{key:"bufferedEnd",get:function(){var e=this.media||this.mediaAttached;if(!e)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;var t=_a.bufferInfo(e,e.currentTime,.001);return this.getAssetTime(t.end)}},{key:"currentTime",get:function(){var e=this.media||this.mediaAttached;return e?this.getAssetTime(e.currentTime):this._currentTime||0}},{key:"duration",get:function(){var e=this.assetItem.duration;if(!e)return 0;var t=this.interstitial.playoutLimit;if(t){var r=t-this.startOffset;if(r>0&&r<e)return r}return e}},{key:"remaining",get:function(){var e=this.duration;return e?Math.max(0,e-this.currentTime):0}},{key:"startOffset",get:function(){return this.assetItem.startOffset}},{key:"timelineOffset",get:function(){var e;return(null==(e=this.hls)?void 0:e.config.timelineOffset)||0},set:function(e){var t=this.timelineOffset;if(e!==t&&(Math.abs(e-t)>
vendor: 2,645 bytes, line 1
11/9e4&&this.hls)){if(this.hasDetails)throw new Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=e}}}]),e}(),To=function(e){function t(t,r){var n;return(n=e.call(this,"interstitials-sched",r)||this).onScheduleUpdate=void 0,n.eventMap={},n.events=null,n.items=null,n.durations={primary:0,playout:0,integrated:0},n.onScheduleUpdate=t,n}u(t,e);var r=t.prototype;return r.destroy=function(){this.reset(),this.onScheduleUpdate=null},r.reset=function(){this.eventMap={},this.setDurations(0,0,0),this.events&&this.events.forEach((function(e){return e.reset()})),this.events=this.items=null},r.resetErrorsInRange=function(e,t){return this.events?this.events.reduce((function(r,n){return e<=n.startOffset&&t>n.startOffset?(delete n.error,r+1):r}),0):0},r.getEvent=function(e){return e&&this.eventMap[e]||null},r.hasEvent=function(e){return e in this.eventMap},r.findItemIndex=function(e,t){if(e.event)return this.findEventIndex(e.event.identifier);var r=-1;e.nextEvent?r=this.findEventIndex(e.nextEvent.identifier)-1:e.previousEvent&&(r=this.findEventIndex(e.previousEvent.identifier)+1);var n=this.items;if(n)for(n[r]||(void 0===t&&(t=e.start),r=this.findItemIndexAtTime(t));r>=0&&null!=(i=n[r])&&i.event;){var i;r--}return r},r.findItemIndexAtTime=function(e,t){var r=this.items;if(r)for(var n=0;n<r.length;n++){var i=r[n];if(t&&"primary"!==t&&(i=i[t]),e===i.start||e>i.start&&e<i.end)return n}return-1},r.findJumpRestrictedIndex=function(e,t){var r=this.items;if(r)for(var n=e;n<=t&&r[n];n++){var i=r[n].event;if(null!=i&&i.restrictions.jump&&!i.appendInPlace)return n}return-1},r.findEventIndex=function(e){var t=this.items;if(t)for(var r=t.length;r--;){var n;if((null==(n=t[r].event)?void 0:n.identifier)===e)return r}return-1},r.findAssetIndex=function(e,t){var r=e.assetList,n=r.length;if(n>1)for(var i=0;i<n;i++){var a=r[i];if(!a.error){var s=a.timelineStart;if(t===s||t>s&&(t<s+(a.duration||0)||i===n-1))return i}}return 0},r.parseInterstitialDateRanges=function(e,t){var r=this,n=e.main.details,i=n.dateRanges,a=this.events,s=this.parseDateRanges(i,{url:n.url},t),o=Object.keys(i),l=a?a.filter((function(e){return!o.includes(e.identifier)})):[];s.length&&s.sort((function(e,t){var r=e.cue.pre,n=e.cue.post,i=t.cue.pre,a=t.cue.post;if(r&&!i)return-1;if(i&&!r)return 1;if(n&&!a)return 1;if(a&&!n)return-1;if(!(r||i||n||a)){var s=e.startTime,o=t.startTime;if(s!==o)return s-o}return e.dateRange.tagOrder-t.dateRange.tagOrder})),this.events=s,l.forEach((function(e){r.removeEvent(e)})),this.updateSchedule(e,l)},r.updateSchedule=function(e,t,r){void 0===t&&(t=[]),void 0===r&&(r=!1);var n=this.events||[];
1if(n.length||t.length||this.length<2){var i=this.items,a=this.parseSchedule(n,e);(r||t.length||(null==i?void 0:i.length)!==a.length||a.some((function(e,t){return Math.abs(e.playout.start-i[t].playout.start)>.005||Math.abs(e.playout.end-i[t].playout.end)>.005})))&&(this.items=a,this.onScheduleUpdate(t,i))}},r.parseDateRanges=function(e,t,r){for(var n=[],i=Object.keys(e),a=0;a<i.length;a++){var s=i[a],o=e[s];if(o.isInterstitial){var l=this.eventMap[s];l?l.setDateRange(o):(l=new Lo(o,t),this.eventMap[s]=l,!1===r&&(l.appendInPlace=r)),n.push(l)}}return n},r.parseSchedule=function(e,t){var r=[],n=t.main.details,i=n.live?1/0:n.edge,a=0;if((e=e.filter((function(e){return!(e.error||e.cue.once&&e.hasPlayed)}))).length){this.resolveOffsets(e,t);var s=0,o=0;if(e.forEach((function(t,n){var l=t.cue.post,u=e[n-1]||null,d=l?i:t.startOffset,c=t.duration,h=t.timelineOccupancy===yo.Range?c:0,f=(null==u?void 0:u.startTime)===d,m=d+t.cumulativeDuration,p=t.appendInPlace?m+c:d+t.resumptionOffset;if(t.cue.pre||!l&&d<=0){var g=o;o+=h,t.timelineStart=m,r.push({event:t,start:m,end:p,playout:{start:a,end:a+=c},integrated:{start:g,end:o}})}else{if(!(d<=i))return;if(!f){var _=d-s;if(_>.033){r.push({previousEvent:e[n-1]||null,nextEvent:t,start:s,end:s+_,playout:{start:a,end:a+=_},integrated:{start:o,end:o+=_}})}else _>0&&u&&(u.cumulativeDuration+=_,r[r.length-1].end=d)}l&&(p=m),t.timelineStart=m,r.push({event:t,start:m,end:p,playout:{start:a,end:a+=c},integrated:{start:o,end:o+=h}})}var v=t.resumeTime;s=l||v>i?i:v})),s<i){var l,u=i-s;r.push({previousEvent:(null==(l=r[r.length-1])?void 0:l.event)||null,nextEvent:null,start:s,end:s+u,playout:{start:a,end:a+=u},integrated:{start:o,end:o+=u}})}this.setDurations(i,a,o)}else{r.push({previousEvent:null,nextEvent:null,start:0,end:i,playout:{start:0,end:i},integrated:{start:0,end:i}}),this.setDurations(i,i,i)}return r},r.setDurations=function(e,t,r){this.durations={primary:e,playout:t,integrated:r}},r.resolveOffsets=function(e,t){var r=this,n=t.main.details,i=n.live?1/0:n.edge,a=0,s=-1;e.forEach((function(o,l){var u=o.cue.post,d=o.cue.pre?0:u?i:o.startTime;(r.updateAssetDurations(o),s===d?o.cumulativeDuration=a:(a=0,s=d),!u&&o.snapOptions.in&&(o.resumeAnchor=Te(null,n.fragments,o.startOffset+o.resumptionOffset,0,0)||void 0),o.appendInPlace&&!o.appendInPlaceStarted)&&(r.primaryCanResumeInPlaceAt(o,t)||(o.appendInPlace=!1));!o.appendInPlace&&l+1<e.length&&(e[l+1].startTime-e[l].resumeTime<.033&&(e[l+1].appendInPlace=!1,e[l+1].appendInPlace&&r.warn("Could not change append strategy for abutting event "+o)));var c=Xn(o.resumeOffset)?o.resumeOffset:o.duration;a+=c}))},r.primaryCanResumeInPlaceAt=function(e,t){var r=this,n=e.resumeTime,i=e.startTime+e.resumptionOffset;return Math.abs(n-i)>.025?(this.log('"'+e.identifier+'" resumption '+n+" not aligned with estimated timeline end "+i),!1):!Object.keys(t).some((function(i){var a=t[i].details,s=a.edge;if(n>=s)return r.log('"'+e.identifier+'" resumption '+n+" past "+i+" playlist end "+s),!1;var o=Te(null,a.fragments,n);if(!o)return r.log('"'+e.identifier+'" resumption '+n+" does not align with any fragments in "+i+" playlist ("+a.fragStart+"-"+a.fragmentEnd+")"),!0;var l="audio"===i?.175:0;return!(Math.abs(o.start-n)<.025+l||Math.abs(o.end-n)<.025+l)&&(r.log('"'+e.identifier+'" resumption '+n+" not aligned with "+i+" fragment bounds ("+o.start+"-"+o.end+" sn: "+o.sn+" cc: "+o.cc+")"),!0)}))},r.updateAssetDurations=function(e){if(e.assetListLoaded){for(var t=e.timelineStart,r=0,n=!1,i=!1,a=0;a<e.assetList.length;a++){var s=e.assetList[a],o=t+r;s.startOffset=r,s.timelineStart=o,n||(n=null===s.duration),i||(i=!!s.error),r+=s.error?0:s.duration||0}e.duration=n&&!i?Math.max(r,e.duration):r}},r.removeEvent=function(e){e.reset(),delete this.eventMap[e.identifier]},c(t,[{key:"duration",get:function(){var e=this.items;return e?e[e.length-1].end:0}},{key:"length",get:function(){return this.items?this.items.length:0}},{key:"assetIdAtEnd",get:function(){var e,t=null==(e=this.items)||null==(e=e[this.length-1])?void 0:e.event;if(t){var r=t.assetList,n=r[r.length-1];if(n)return n.identifier}return null}}]),t}(hi),Mo=function(){function e(e){this.hls=void 0,this.hls=e}var t=e.prototype;return t.destroy=function(){this.hls=null},t.loadAssetList=function(e,t){var r,n=this,i=e.assetListUrl;try{r=cn(i,this.hls.sessionId,e.baseUrl)}catch(t){var a=this.assignAssetListError(e,ti.ASSET_LIST_LOAD_ERROR,t,i
1);return void this.hls.trigger(ri.ERROR,a)}t&&"data:"!==r.protocol&&r.searchParams.set("_HLS_start_offset",""+t);var s=this.hls.config,o=new(0,s.loader)(s),l=s.interstitialAssetListLoadPolicy.default;return o.load({responseType:"json",url:r.href},{loadPolicy:l,timeout:l.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},{onSuccess:function(t,r,i,a){var s=t.data;if(Array.isArray(null==s?void 0:s.ASSETS))e.assetListResponse=s,n.hls.trigger(ri.ASSET_LIST_LOADED,{event:e,assetListResponse:s,networkDetails:a});else{var o=n.assignAssetListError(e,ti.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),i.url,r,a);n.hls.trigger(ri.ERROR,o)}},onError:function(t,r,i,a){var s=n.assignAssetListError(e,ti.ASSET_LIST_LOAD_ERROR,new Error("Error loading X-ASSET-LIST: HTTP status "+t.code+" "+t.text+" ("+r.url+")"),r.url,a,i);n.hls.trigger(ri.ERROR,s)},onTimeout:function(t,r,i){var a=n.assignAssetListError(e,ti.ASSET_LIST_LOAD_TIMEOUT,new Error("Timeout loading X-ASSET-LIST ("+r.url+")"),r.url,t,i);n.hls.trigger(ri.ERROR,a)}}),this.hls.trigger(ri.ASSET_LIST_LOADING,{event:e}),o},t.assignAssetListError=function(e,t,r,n,i,a){return e.error=r,{type:ei.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:n,error:r,networkDetails:a,stats:i}},e}(),ko=function(e){function t(t,r){var n;return(n=e.call(this,"interstitials",t.logger)||this).HlsPlayerClass=void 0,n.hls=void 0,n.assetListLoader=void 0,n.mediaSelection=null,n.altSelection=null,n.media=null,n.detachedData=null,n.requiredTracks=null,n.manager=null,n.playerQueue=[],n.bufferedPos=-1,n.timelinePos=-1,n.schedule=void 0,n.playingItem=null,n.bufferingItem=null,n.waitingItem=null,n.endedItem=null,n.playingAsset=null,n.endedAsset=null,n.bufferingAsset=null,n.shouldPlay=!1,n.onPlay=function(){n.shouldPlay=!0},n.onPause=function(){n.shouldPlay=!1},n.onSeeking=function(){var e=n.currentTime;if(void 0!==e&&!n.playbackDisabled&&n.schedule){var t=e-n.timelinePos;if(!(Math.abs(t)<1/7056e5)){var r=t<=-.01;-1!==n.timelinePos||n.effectivePlayingItem||n.checkStart(),n.timelinePos=e,n.bufferedPos=e;var i=n.playingItem;if(i){if(r)n.schedule.resetErrorsInRange(e,e-t)&&n.updateSchedule(!0);if(n.checkBuffer(),r&&e<i.start||e>=i.end){var a,s=n.findItemIndex(i),o=n.schedule.findItemIndexAtTime(e);if(-1===o&&n.log("seeked "+(r?"back ":"")+"to position not covered by schedule "+e+" (resolving from "+s+" to "+(o=s+(r?-1:1))+")"),!n.isInterstitial(i)&&null!=(a=n.media)&&a.paused&&(n.shouldPlay=!1),!r&&o>s){var l=n.schedule.findJumpRestrictedIndex(s+1,o);if(l>s)return void n.setSchedulePosition(l)}n.setSchedulePosition(o)}else{var u=n.playingAsset;if(u){var d,c=u.timelineStart;if(r&&e<c||e>=c+(u.duration||0))null!=(d=i.event)&&d.appendInPlace&&(n.clearAssetPlayers(i.event,i),n.flushFrontBuffer(e)),n.setScheduleToAssetAtTime(e,u)}else if(n.playingLastItem&&n.isInterstitial(i)){var h=i.event.assetList[0];h&&(n.endedItem=n.playingItem,n.playingItem=null,n.setScheduleToAssetAtTime(e,h))}}}else n.checkBuffer()}}},n.onTimeupdate=function(){var e=n.currentTime;if(void 0!==e&&!n.playbackDisabled&&(-1!==n.timelinePos||n.effectivePlayingItem||n.checkStart(),e>n.timelinePos)){n.timelinePos=e,e>n.bufferedPos&&n.checkBuffer();var t=n.playingItem;if(t&&!n.playingLastItem){if(e>=t.end){n.timelinePos=t.end;var r=n.findItemIndex(t);n.setSchedulePosition(r+1)}var i=n.playingAsset;if(i)e>=i.timelineStart+(i.duration||0)&&n.setScheduleToAssetAtTime(e,i)}}},n.onScheduleUpdate=function(e,t){var r=n.schedule;if(r){var i=n.playingItem,a=r.events||[],s=r.items||[],o=r.durations,l=e.map((function(e){return e.identifier})),u=!(!a.length&&!l.length);(u||t)&&n.log("INTERSTITIALS_UPDATED ("+a.length+"): "+a+"\nSchedule: "+s.map((function(e){return mn(e)}))+" pos: "+n.timelinePos),l.length&&n.log("Removed events "+l);var d=null,c=null;i&&(d=n.updateItem(i,n.timelinePos),n.itemsMatch(i,d)?n.playingItem=d:n.waitingItem=n.endedItem=null),n.waitingItem=n.updateItem(n.waitingItem),n.endedItem=n.updateItem(n.endedItem);var h=n.bufferingItem;if(h&&(c=n.updateItem(h,n.bufferedPos),n.itemsMatch(h,c)?n.bufferingItem=c:h.event&&(n.bufferingItem=n.playingItem,n.clearInterstitial(h.event,null))),e.forEach((function(e){e.assetList.forEach((function(e){n.clearAssetPlayer(e.identifier,null)}))})),n.playerQueue.forEach((function(e){if(e.interstitial.appendInPlace){var t=e.assetItem.timelineStart,r=e.timelineOffset-t;if(r)try{e.timelineOffset=t}catch(i){Math.abs(r)>.025&&n.warn(i+' ("'+e.assetId+'" '+e.timelineOffset+"->"+t+")")}}})),u||t){if(n.hls.trigger(ri.INTERSTITIALS_UPDATED,{events:a.slice(0),schedule:s.slice(0),durations:o,removedIds:l}),n.isInterstitial(i)&&l.includes(i.event.identifier))return n.warn('Interstitial "'+i.event.identifier+'" removed while playing'),void n.primaryFallback(i.event);i&&n.trimInPlace(d,i),h&&c!==d&&n.trimInPlace(c,h),n.checkBuffer()}}}
vendor: 4,120 bytes, line 1
1,n.hls=t,n.HlsPlayerClass=r,n.assetListLoader=new Mo(t),n.schedule=new To(n.onScheduleUpdate,t.logger),n.registerListeners(),n}u(t,e);var r=t.prototype;return r.registerListeners=function(){var e=this.hls;e&&(e.on(ri.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(ri.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(ri.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ri.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(ri.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(ri.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.on(ri.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(ri.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.on(ri.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.on(ri.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.on(ri.BUFFER_APPENDED,this.onBufferAppended,this),e.on(ri.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(ri.BUFFERED_TO_END,this.onBufferedToEnd,this),e.on(ri.MEDIA_ENDED,this.onMediaEnded,this),e.on(ri.ERROR,this.onError,this),e.on(ri.DESTROYING,this.onDestroying,this))},r.unregisterListeners=function(){var e=this.hls;e&&(e.off(ri.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(ri.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(ri.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ri.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(ri.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(ri.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.off(ri.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(ri.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.off(ri.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.off(ri.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.off(ri.BUFFER_CODECS,this.onBufferCodecs,this),e.off(ri.BUFFER_APPENDED,this.onBufferAppended,this),e.off(ri.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(ri.BUFFERED_TO_END,this.onBufferedToEnd,this),e.off(ri.MEDIA_ENDED,this.onMediaEnded,this),e.off(ri.ERROR,this.onError,this),e.off(ri.DESTROYING,this.onDestroying,this))},r.startLoad=function(){this.resumeBuffering()},r.stopLoad=function(){this.pauseBuffering()},r.resumeBuffering=function(){var e;null==(e=this.getBufferingPlayer())||e.resumeBuffering()},r.pauseBuffering=function(){var e;null==(e=this.getBufferingPlayer())||e.pauseBuffering()},r.destroy=function(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.schedule=this.manager=null,this.hls=this.HlsPlayerClass=this.log=null,this.assetListLoader=null,this.onPlay=this.onPause=this.onSeeking=this.onTimeupdate=null,this.onScheduleUpdate=null},r.onDestroying=function(){var e=this.primaryMedia||this.media;e&&this.removeMediaListeners(e)},r.removeMediaListeners=function(e){Pt(e,"play",this.onPlay),Pt(e,"pause",this.onPause),Pt(e,"seeking",this.onSeeking),Pt(e,"timeupdate",this.onTimeupdate)},r.onMediaAttaching=function(e,t){var r=this.media=t.media;Rt(r,"seeking",this.onSeeking),Rt(r,"timeupdate",this.onTimeupdate),Rt(r,"play",this.onPlay),Rt(r,"pause",this.onPause)},r.onMediaAttached=function(){var e=this.effectivePlayingItem,t=this.detachedData;if(this.detachedData=null,null===e)this.checkStart();else if(!t){this.clearScheduleState();var r=this.findItemIndex(e);this.setSchedulePosition(r)}},r.clearScheduleState=function(){this.log("clear schedule state"),this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null},r.onMediaDetaching=function(e,t){var r=!!t.transferMedia,n=this.media;if(this.media=null,!r&&(n&&this.removeMediaListeners(n),this.detachedData)){var i=this.getBufferingPlayer();i&&(this.log("Removing schedule state for detachedData and "+i),this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,i.detachMedia()),this.shouldPlay=!1}
vendor: 16,374 bytes, line 1
1},r.isInterstitial=function(e){return!(null==e||!e.event)},r.retreiveMediaSource=function(e,t){var r=this.getAssetPlayer(e);r&&this.transferMediaFromPlayer(r,t)},r.transferMediaFromPlayer=function(e,t){var r=e.media;if(e.interstitial.appendInPlace&&r===this.primaryMedia){if(this.bufferingAsset=null,(!t||this.isInterstitial(t)&&!t.event.appendInPlace)&&t&&r)return void(this.detachedData={media:r});var n=e.transferMedia();this.log("transfer MediaSource from "+e+" "+Bi(n)),this.detachedData=n}else t&&r&&(this.shouldPlay||(this.shouldPlay=!r.paused))},r.transferMediaTo=function(e,t){var r,n,i=this;if(e.media!==t){var a,s=null,o=this.hls,l=e!==o,u=l&&e.interstitial.appendInPlace,d=null==(r=this.detachedData)?void 0:r.mediaSource;if(o.media)u&&(s=o.transferMedia(),this.detachedData=s),a="Primary";else if(d){var c=this.getBufferingPlayer();c?(s=c.transferMedia(),a=""+c):a="detached MediaSource"}else a="detached media";if(!s)if(d)this.log("using detachedData: MediaSource "+Bi(s=this.detachedData));else if(!this.detachedData||o.media===t){var h=this.playerQueue;h.length>1&&h.forEach((function(e){if(l&&e.interstitial.appendInPlace!==u){var t=e.interstitial;i.clearInterstitial(e.interstitial,null),t.appendInPlace=!1,t.appendInPlace&&i.warn("Could not change append strategy for queued assets "+t)}})),this.hls.detachMedia(),this.detachedData={media:t}}var f=s&&"mediaSource"in s&&"closed"!==(null==(n=s.mediaSource)?void 0:n.readyState),m=f&&s?s:t;this.log((f?"transfering MediaSource":"attaching media")+" to "+(l?e:"Primary")+" from "+a+" (media.currentTime: "+t.currentTime+")");var p=this.schedule;if(m===s&&p)m.overrides={duration:p.duration,endOfStream:!l||l&&e.assetId===p.assetIdAtEnd,cueRemoval:!l};e.attachMedia(m)}},r.onInterstitialCueEnter=function(){this.onTimeupdate()},r.checkStart=function(){var e=this.schedule,t=null==e?void 0:e.events;if(t&&!this.playbackDisabled&&this.media){-1===this.bufferedPos&&(this.bufferedPos=0);var r=this.effectivePlayingItem;if(-1===this.timelinePos){var n=this.hls.startPosition;if(this.timelinePos=n,0===t.length)this.setSchedulePosition(0);else if(t[0].cue.pre){this.log(gn("checkStart (preroll)",n));var i=e.findEventIndex(t[0].identifier);this.setSchedulePosition(i)}else if(n>=0||!this.primaryLive){this.log(gn("checkStart",n));var a=this.timelinePos=n>0?n:0,s=e.findItemIndexAtTime(a);this.setSchedulePosition(s)}else 0===this.hls.liveSyncPosition?this.setSchedulePosition(0):this.log("[checkStart] waiting for live start")}else if(r&&!this.playingItem){this.log(gn("checkStart (playing item)",r.start));var o=e.findItemIndex(r);this.setSchedulePosition(o)}}},r.advanceAssetBuffering=function(e,t){var r=e.event,n=r.findAssetIndex(t),i=hn(r,n);if(r.isAssetPastPlayoutLimit(i)){if(this.schedule){var a,s=null==(a=this.schedule.items)?void 0:a[this.findItemIndex(e)+1];s&&this.bufferedToItem(s)}}else this.bufferedToEvent(e,i)},r.advanceAfterAssetEnded=function(e,t,r){var n=hn(e,r);if(e.isAssetPastPlayoutLimit(n)){if(this.schedule){var i=this.schedule.items;if(i){var a=t+1;if(a>=i.length)return void this.setSchedulePosition(-1);var s=e.resumeTime;this.timelinePos<s&&(this.log(gn("advanceAfterAssetEnded",s)),this.timelinePos=s,e.appendInPlace&&this.advanceInPlace(s),this.checkBuffer(this.bufferedPos<s)),this.setSchedulePosition(a)}}}else{if(e.appendInPlace){var o=e.assetList[n];o&&this.advanceInPlace(o.timelineStart)}this.setSchedulePosition(t,n)}},r.setScheduleToAssetAtTime=function(e,t){var r=this.schedule;if(r){var n=t.parentIdentifier,i=r.getEvent(n);if(i){var a=r.findEventIndex(n),s=r.findAssetIndex(i,e);this.advanceAfterAssetEnded(i,a,s-1)}}},r.setSchedulePosition=function(e,t){var r,n=null==(r=this.schedule)?void 0:r.items;if(n&&!this.playbackDisabled){var i=e>=0?n[e]:null;this.log("setSchedulePosition "+e+", "+t+" ("+(i?mn(i):i)+") pos: "+this.timelinePos);var a=this.waitingItem||this.playingItem,s=this.playingLastItem;if(this.isInterstitial(a)){var o=a.event,l=this.playingAsset,u=null==l?void 0:l.identifier,d=u?this.getAssetPlayer(u):null;if(d&&u&&(!this.eventItemsMatch(a,i)||void 0!==t&&u!==o.assetList[t].identifier)){var c,h=o.findAssetIndex(l);if(this.log("INTERSTITIAL_ASSET_ENDED "+(h+1)+"/"+o.assetList.length+" "+fn(l)),this.endedAsset=l,this.playingAsset=null,this.hls.trigger(ri.INTERSTITIAL_ASSET_ENDED,{asset:l,assetListIndex:h,event:o,schedule:n.slice(0),scheduleIndex:e,player:d}),a!==this.playingItem)return void(this.itemsMatch(a,this.playingItem)&&!this.playingAsset&&this.advanceAfterAssetEnded(o,this.findItemIndex(this.playingItem),h));this.retreiveMediaSource(u,i),!d.media||null!=(c=this.detachedData)&&c.mediaSource||d.detachMedia()}if(!this.eventItemsMatch(a,i)&&(this.endedItem=a,this.playingItem=null,this.log("INTERSTITIAL_ENDED "+o+" "+mn(a)),o.hasPlayed=!0,this.hls.trigger(ri.INTERSTITIAL_ENDED,{event:o,schedule:n.slice(0),scheduleIndex:e}),o.cue.once)){var f;this.updateSchedule();var m=null==(f=this.schedule)?void 0:f.items;if(i&&m){var p=this.findItemIndex(i);this.advanceSchedule(p,m,t,a,s)}return}}this.advanceSchedule(e,n,t,a,s)}},r.advanceSchedule=function(e,t,r,n,i){var a=this,s=this.schedule;if(s){var o=t[e]||null,l=this.primaryMedia,u=this.playerQueue;if(u.length&&u.forEach((function(t){var r=t.interstitial,n=s.findEventIndex(r.identifier);(n<e||n>e+1)&&a.clearInterstitial(r,o)})),this.isInterstitial(o)){this.timelinePos=Math.min(Math.max(this.timelinePos,o.start),o.end);var d=o.event;if(void 0===r){var c=hn(d,(r=s.findAssetIndex(d,this.timelinePos))-1);if(d.isAssetPastPlayoutLimit(c)||d.appendInPlace&&this.timelinePos===o.end)return void this.advanceAfterAssetEnded(d,e,r);r=c}var h=this.waitingItem;this.assetsBuffered(o,l)||this.setBufferingItem(o);var f=this.preloadAssets(d,r);if(this.eventItemsMatch(o,h||n)||(this.waitingItem=o,this.log("INTERSTITIAL_STARTED "+mn(o)+" "+(d.appendInPlace?"append in place":"")),this.hls.trigger(ri.INTERSTITIAL_STARTED,{event:d,schedule:t.slice(0),scheduleIndex:e})),!d.assetListLoaded)return void this.log("Waiting for ASSET-LIST to complete loading "+d);if(d.assetListLoader&&(d.assetListLoader.destroy(),d.assetListLoader=void 0),!l)return void this.log("Waiting for attachMedia to start Interstitial "+d);this.waitingItem=this.endedItem=null,this.playingItem=o;var m=d.assetList[r];if(!m)return void this.advanceAfterAssetEnded(d,e,r||0);if(f||(f=this.getAssetPlayer(m.identifier)),null===f||f.destroyed)this.warn("asset "+(r+1)+"/"+d.assetList.length+" player destroyed "+d),(f=this.createAssetPlayer(d,m,r)).loadSource();if(!this.eventItemsMatch(o,this.bufferingItem)&&d.appendInPlace&&this.isAssetBuffered(m))return;this.startAssetPlayer(f,r,t,e,l),this.shouldPlay&&pn(f.media)}else o?(this.resumePrimary(o,e,n),this.shouldPlay&&pn(this.hls.media)):i&&this.isInterstitial(n)&&(this.endedItem=null,this.playingItem=n,n.event.appendInPlace||this.attachPrimary(s.durations.primary,null))}},r.resumePrimary=function(e,t,r){var n,i;if(this.playingItem=e,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(e),this.log("resuming "+mn(e)),null==(n=this.detachedData)||!n.mediaSource){var a=this.timelinePos;(a<e.start||a>=e.end)&&(a=this.getPrimaryResumption(e,t),this.log(gn("resumePrimary",a)),this.timelinePos=a),this.attachPrimary(a,e)}if(r){var s=null==(i=this.schedule)?void 0:i.items;s&&(this.log("INTERSTITIALS_PRIMARY_RESUMED "+mn(e)),this.hls.trigger(ri.INTERSTITIALS_PRIMARY_RESUMED,{schedule:s.slice(0),scheduleIndex:t}),this.checkBuffer())}},r.getPrimaryResumption=function(e,t){var r=e.start;if(this.primaryLive){var n=this.primaryDetails;if(0===t)return this.hls.startPosition;if(n&&(r<n.fragmentStart||r>n.edge))return this.hls.liveSyncPosition||-1}return r},r.isAssetBuffered=function(e){var t=this.getAssetPlayer(e.identifier);return null!=t&&t.hls?t.hls.bufferedToEnd:_a.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=e.timelineStart+(e.duration||0)},r.attachPrimary=function(e,t,r){t?this.setBufferingItem(t):this.bufferingItem=this.playingItem,this.bufferingAsset=null;var n=this.primaryMedia;if(n){var i=this.hls;i.media?this.checkBuffer():(this.transferMediaTo(i,n),r&&this.startLoadingPrimaryAt(e,r)),r||(this.log(gn("attachPrimary",e)),this.timelinePos=e,this.startLoadingPrimaryAt(e,r))}},r.startLoadingPrimaryAt=function(e,t){var r,n=this.hls;!n.loadingEnabled||!n.media||Math.abs(((null==(r=n.mainForwardBufferInfo)?void 0:r.start)||n.media.currentTime)-e)>.5?n.startLoad(e,t):n.bufferingEnabled||n.resumeBuffering()},r.onManifestLoading=function(){var e;this.stopLoad(),null==(e=this.schedule)||e.reset(),this.emptyPlayerQueue(),this.clearScheduleState(),this.shouldPlay=!1,this.bufferedPos=this.timelinePos=-1,this.mediaSelection=this.altSelection=this.manager=this.requiredTracks=null,this.hls.off(ri.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(ri.BUFFER_CODECS,this.onBufferCodecs,this)},r.onLevelUpdated=function(e,t){if(-1!==t.level&&this.schedule){var r=this.hls.levels[t.level];if(r.details){var n=p(p({},this.mediaSelection||this.altSelection),{},{main:r});this.mediaSelection=n,this.schedule.parseInterstitialDateRanges(n,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}}},r.onAudioTrackUpdated=function(e,t){var r=this.hls.audioTracks[t.id],n=this.mediaSelection;if(n){var i=p(p({},n),{},{audio:r});this.mediaSelection=i}else this.altSelection=p(p({},this.altSelection),{},{audio:r})},r.onSubtitleTrackUpdated=function(e,t){var r=this.hls.subtitleTracks[t.id],n=this.mediaSelection;if(n){var i=p(p({},n),{},{subtitles:r});this.mediaSelection=i}else this.altSelection=p(p({},this.altSelection),{},{subtitles:r})},r.onAudioTrackSwitching=function(e,t){var r=ge(t);this.playerQueue.forEach((function(e){var n=e.hls;return n&&(n.setAudioOption(t)||n.setAudioOption(r))}))},r.onSubtitleTrackSwitch=function(e,t){var r=ge(t);this.playerQueue.forEach((function(e){var n=e.hls;return n&&(n.setSubtitleOption(t)||-1!==t.id&&n.setSubtitleOption(r))}))},r.onBufferCodecs=function(e,t){var r=t.tracks;r&&(this.requiredTracks=r)},r.onBufferAppended=function(){this.checkBuffer()},r.onBufferFlushed=function(){var e=this.playingItem;!e||this.itemsMatch(e,this.bufferingItem)||this.isInterstitial(e)||(this.bufferedPos=this.timelinePos,this.checkBuffer())},r.onBufferedToEnd=function(){if(this.schedule){var e=this.schedule.events;if(this.bufferedPos<Number.MAX_VALUE&&e){for(var t=0;t<e.length;t++){var r=e[t];if(r.cue.post){var n,i=this.schedule.findEventIndex(r.identifier),a=null==(n=this.schedule.items)?void 0:n[i];this.isInterstitial(a)&&this.eventItemsMatch(a,this.bufferingItem)&&this.bufferedToItem(a,0);break}}this.bufferedPos=Number.MAX_VALUE}}},r.onMediaEnded=function(){var e=this.playingItem;if(!this.playingLastItem&&e){var t=this.findItemIndex(e);this.setSchedulePosition(t+1)}else this.shouldPlay=!1},r.updateItem=function(e,t){var r,n=null==(r=this.schedule)?void 0:r.items;return e&&n&&n[this.findItemIndex(e,t)]||null},r.trimInPlace=function(e,t){var r=this;if(this.isInterstitial(e)&&e.event.appendInPlace&&t.end-e.end>.25){e.event.assetList.forEach((function(t,n){e.event.isAssetPastPlayoutLimit(n)&&r.clearAssetPlayer(t.identifier,null)}));var n=e.end+.25,i=_a.bufferInfo(this.primaryMedia,n,0);if(i.end>n||(i.nextStart||0)>n){this.log("trim buffered interstitial "+mn(e)+" (was "+mn(t)+")");this.attachPrimary(n,null,!0),this.flushFrontBuffer(n)}}},r.itemsMatch=function(e,t){return!!t&&(e===t||e.event&&t.event&&this.eventItemsMatch(e,t)||!e.event&&!t.event&&this.findItemIndex(e)===this.findItemIndex(t))},r.eventItemsMatch=function(e,t){var r;return!!t&&(e===t||e.event.identifier===(null==(r=t.event)?void 0:r.identifier))},r.findItemIndex=function(e,t){return e&&this.schedule?this.schedule.findItemIndex(e,t):-1},r.updateSchedule=function(e){var t;void 0===e&&(e=!1);var r=this.mediaSelection;r&&(null==(t=this.schedule)||t.updateSchedule(r,[],e))},r.checkBuffer=function(e){var t,r=null==(t=this.schedule)?void 0:t.items;if(r){var n=_a.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=n.len<1),this.updateBufferedPos(n.end,r,e)}},r.updateBufferedPos=function(e,t,r){var n=this.schedule,i=this.bufferingItem;if(!(this.bufferedPos>e)&&n)if(1===t.length&&this.itemsMatch(t[0],i))this.bufferedPos=e;else{var a=this.playingItem,s=this.findItemIndex(a),o=n.findItemIndexAtTime(e);if(this.bufferedPos<e){var l,u=this.findItemIndex(i),d=Math.min(u+1,t.length-1),c=t[d];if((-1===o&&i&&e>=i.end||null!=(l=c.event)&&l.appendInPlace&&e+.01>=c.start)&&(o=d),this.isInterstitial(i)){var h=i.event;if(d-s>1&&!1===h.appendInPlace)return;if(0===h.assetList.length&&h.assetListLoader)return}if(this.bufferedPos=e,o>u&&o>s)this.bufferedToItem(c);else{var f=this.primaryDetails;this.primaryLive&&f&&e>f.edge-f.targetduration&&c.start<f.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(c)&&this.preloadAssets(c.event,0)}}else r&&a&&!this.itemsMatch(a,i)&&(o===s?this.bufferedToItem(a):o===s+1&&this.bufferedToItem(t[o]))}},r.assetsBuffered=function(e,t){var r=this;return 0!==e.event.assetList.length&&!e.event.assetList.some((function(e){var n=r.getAssetPlayer(e.identifier);return!(null!=n&&n.bufferedInPlaceToEnd(t))}))},r.setBufferingItem=function(e){var t=this,r=this.bufferingItem,n=this.schedule;if(!this.itemsMatch(e,r)&&n){var i=n.items,a=n.events;if(!i||!a)return r;var s=this.isInterstitial(e),o=this.getBufferingPlayer();this.bufferingItem=e,this.bufferedPos=Math.max(e.start,Math.min(e.end,this.timelinePos));var l=o?o.remaining:r?r.end-this.timelinePos:0;if(this.log("INTERSTITIALS_BUFFERED_TO_BOUNDARY "+mn(e)+(r?" ("+l.toFixed(2)+" remaining)":"")),!this.playbackDisabled)if(s){var u=n.findAssetIndex(e.event,this.bufferedPos);e.event.assetList.forEach((function(e,r){var n=t.getAssetPlayer(e.identifier);n&&(r===u&&n.loadSource(),n.resumeBuffering())}))}else this.hls.resumeBuffering(),this.playerQueue.forEach((function(e){return e.pauseBuffering()}));this.hls.trigger(ri.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:a.slice(0),schedule:i.slice(0),bufferingIndex:this.findItemIndex(e),playingIndex:this.findItemIndex(this.playingItem)})}else this.bufferingItem!==e&&(this.bufferingItem=e);return r},r.bufferedToItem=function(e,t){void 0===t&&(t=0);var r=this.setBufferingItem(e);if(!this.playbackDisabled)if(this.isInterstitial(e))this.bufferedToEvent(e,t);else if(null!==r){this.bufferingAsset=null;var n=this.detachedData;if(n)if(n.mediaSource){this.attachPrimary(e.start,e,!0)}else this.preloadPrimary(e);else this.preloadPrimary(e)}},r.preloadPrimary=function(e){var t=this.findItemIndex(e),r=this.getPrimaryResumption(e,t);this.startLoadingPrimaryAt(r)},r.bufferedToEvent=function(e,t){var r=e.event;if(0===r.assetList.length&&!r.assetListLoader||!r.cue.once){var n=this.preloadAssets(r,t);if(null!=n&&n.interstitial.appendInPlace){var i=this.primaryMedia;i&&this.bufferAssetPlayer(n,i)}}},r.preloadAssets=function(e,t){var r=e.assetUrl,n=e.assetList.length,i=e.cue.once;if(0===n&&!e.assetListLoader){var a,s=e.timelineStart;if(e.appendInPlace){var o,l=this.playingItem;this.isInterstitial(l)||(null==l||null==(o=l.nextEvent)?void 0:o.identifier)!==e.identifier||this.flushFrontBuffer(s+.25)}var u=0;if(!this.playingItem&&this.primaryLive&&-1===(u=this.hls.startPosition)&&(u=this.hls.liveSyncPosition||0),u&&!e.cue.pre&&!e.cue.post){var d=u-s;d>0&&(a=Math.round(1e3*d)/1e3)}if(this.log("Load interstitial asset "+(t+1)+"/"+(r?1:n)+" "+e+(a?" live-start: "+u+" start-offset: "+a:"")),r)return this.createAsset(e,0,0,s,e.duration,r);var c=this.assetListLoader.loadAssetList(e,a);c&&(e.assetListLoader=c)}else if(!i&&n){for(var h=t;h<n;h++){var f=e.assetList[h],m=this.getAssetPlayerQueueIndex(f.identifier);-1!==m&&!this.playerQueue[m].destroyed||f.error||this.createAssetPlayer(e,f,h)}var p=e.assetList[t];if(p){var g=this.getAssetPlayer(p.identifier);return g&&g.loadSource(),g}}return null},r.flushFrontBuffer=function(e){var t=this,r=this.requiredTracks;r&&(this.log("Removing front buffer starting at "+e),Object.keys(r).forEach((function(r){t.hls.trigger(ri.BUFFER_FLUSHING,{startOffset:e,endOffset:1/0,type:r})})))},r.getAssetPlayerQueueIndex=function(e){for(var t=this.playerQueue,r=0;r<t.length;r++)if(e===t[r].assetId)return r;return-1},r.getAssetPlayer=function(e){var t=this.getAssetPlayerQueueIndex(e);return this.playerQueue[t]||null}
vendor: 5,134 bytes, line 1
1,r.getBufferingPlayer=function(){var e=this.playerQueue,t=this.primaryMedia;if(t)for(var r=0;r<e.length;r++)if(e[r].media===t)return e[r];return null},r.createAsset=function(e,t,r,n,i,a){var s={parentIdentifier:e.identifier,identifier:un(e,a,t),duration:i,startOffset:r,timelineStart:n,uri:a};return this.createAssetPlayer(e,s,t)},r.createAssetPlayer=function(e,t,r){var n=this,i=this.hls,a=i.userConfig,s=a.videoPreference,o=i.loadLevelObj||i.levels[i.currentLevel];(s||o)&&(s=f({},s),o.videoCodec&&(s.videoCodec=o.videoCodec),o.videoRange&&(s.allowedVideoRanges=[o.videoRange]));var l=i.audioTracks[i.audioTrack],u=i.subtitleTracks[i.subtitleTrack],d=0;if(this.primaryLive||e.appendInPlace){var c=this.timelinePos-t.timelineStart;if(c>1){var h=t.duration;h&&c<h&&(d=c)}}var m=t.identifier,g=p(p({},a),{},{maxMaxBufferLength:Math.min(180,i.config.maxMaxBufferLength),autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:i.sessionId,assetPlayerId:m,abrEwmaDefaultEstimate:i.bandwidthEstimate,interstitialsController:void 0,startPosition:d,liveDurationInfinity:!1,testBandwidth:!1,videoPreference:s,audioPreference:l||a.audioPreference,subtitlePreference:u||a.subtitlePreference});e.appendInPlace&&(e.appendInPlaceStarted=!0,t.timelineStart&&(g.timelineOffset=t.timelineStart));var _=g.cmcd;null!=_&&_.sessionId&&_.contentId&&(g.cmcd=f({},_,{contentId:ln(t.uri)})),this.getAssetPlayer(m)&&this.warn("Duplicate date range identifier "+e+" and asset "+m);var v=new bo(this.HlsPlayerClass,g,e,t);this.playerQueue.push(v),e.assetList[r]=t;var y=!0,L=function(i){if(i.live){var a,s=new Error("Interstitials MUST be VOD assets "+e),o={fatal:!0,type:ei.OTHER_ERROR,details:ti.INTERSTITIAL_ASSET_ITEM_ERROR,error:s},l=(null==(a=n.schedule)?void 0:a.findEventIndex(e.identifier))||-1;n.handleAssetItemError(o,e,l,r,s.message)}else{var u=i.edge-i.fragmentStart,d=t.duration;(y||null===d||u>d)&&(y=!1,n.log('Interstitial asset "'+m+'" duration change '+d+" > "+u),t.duration=u,n.updateSchedule())}};v.on(ri.LEVEL_UPDATED,(function(e,t){return L(t.details)})),v.on(ri.LEVEL_PTS_UPDATED,(function(e,t){return L(t.details)})),v.on(ri.EVENT_CUE_ENTER,(function(){return n.onInterstitialCueEnter()}));v.on(ri.BUFFER_CODECS,(function e(t,r){var i=n.getAssetPlayer(m);if(i&&r.tracks){i.off(ri.BUFFER_CODECS,e),i.tracks=r.tracks;var a=n.primaryMedia;n.bufferingAsset===i.assetItem&&a&&!i.media&&n.bufferAssetPlayer(i,a)}}));v.on(ri.BUFFERED_TO_END,(function(){var r,i=n.getAssetPlayer(m);if(n.log("buffered to end of asset "+i),i&&n.schedule){var a=n.schedule.findEventIndex(e.identifier),s=null==(r=n.schedule.items)?void 0:r[a];n.isInterstitial(s)&&n.advanceAssetBuffering(s,t)}}));var b=function(t){return function(){if(n.getAssetPlayer(m)&&n.schedule){n.shouldPlay=!0;var r=n.schedule.findEventIndex(e.identifier);n.advanceAfterAssetEnded(e,r,t)}}};return v.once(ri.MEDIA_ENDED,b(r)),v.once(ri.PLAYOUT_LIMIT_REACHED,b(1/0)),v.on(ri.ERROR,(function(t,i){if(n.schedule){var a=n.getAssetPlayer(m);if(i.details===ti.BUFFER_STALLED_ERROR)return null!=a&&a.appendInPlace?void n.handleInPlaceStall(e):(n.onTimeupdate(),void n.checkBuffer(!0));n.handleAssetItemError(i,e,n.schedule.findEventIndex(e.identifier),r,"Asset player error "+i.error+" "+e)}})),v.on(ri.DESTROYING,(function(){if(n.getAssetPlayer(m)&&n.schedule){var t=new Error("Asset player destroyed unexpectedly "+m);n.handleAssetItemError({fatal:!0,type:ei.OTHER_ERROR,details:ti.INTERSTITIAL_ASSET_ITEM_ERROR,error:t},e,n.schedule.findEventIndex(e.identifier),r,t.message)}})),this.log("INTERSTITIAL_ASSET_PLAYER_CREATED "+fn(t)),this.hls.trigger(ri.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:t,assetListIndex:r,event:e,player:v}),v},r.clearInterstitial=function(e,t){this.clearAssetPlayers(e,t),e.reset()},r.clearAssetPlayers=function(e,t){var r=this;e.assetList.forEach((function(e){r.clearAssetPlayer(e.identifier,t)}))},r.resetAssetPlayer=function(e){var t=this.getAssetPlayerQueueIndex(e);if(-1!==t){this.log('reset asset player "'+e+'" after error');var r=this.playerQueue[t];this.transferMediaFromPlayer(r,null),r.resetDetails()}},r.clearAssetPlayer=function(e,t){var r=this.getAssetPlayerQueueIndex(e);if(-1!==r){var n=this.playerQueue[r];this.log("clear "+n+" toSegment: "+(t?mn(t):t)),this.transferMediaFromPlayer(n,t),this.playerQueue.splice(r,1),n.destroy()}},r.emptyPlayerQueue=function(){for(var e;e=this.playerQueue.pop();)e.destroy();this.playerQueue=[]},r.startAssetPlayer=function(e,t,r,n,i){var a=e.interstitial,s=e.assetItem,o=e.assetId,l=a.assetList.length,u=this.playingAsset;this.endedAsset=null,this.playingAsset=s,u&&u.identifier===o||(u&&(this.clearAssetPlayer(u.identifier,r[n]),delete u.error),this.log("INTERSTITIAL_ASSET_STARTED "+(t+1)+"/"+l+" "+fn(s)),this.hls.trigger(ri.INTERSTITIAL_ASSET_STARTED,{asset:s,assetListIndex:t,event:a,schedule:r.slice(0),scheduleIndex:n,player:e})),this.bufferAssetPlayer(e,i)},r.bufferAssetPlayer=function(e,t){var r,n;if(this.schedule){var i=e.interstitial,a=e.assetItem,s=this.schedule.findEventIndex(i.identifier),o=null==(r=this.schedule.items)?void 0:r[s];if(o){e.loadSource(),this.setBufferingItem(o),this.bufferingAsset=a;
vendor: 15,066 bytes, line 1
1var l=this.getBufferingPlayer();if(l!==e){var u=i.appendInPlace;if(!u||!1!==(null==l?void 0:l.interstitial.appendInPlace)){var d=(null==l?void 0:l.tracks)||(null==(n=this.detachedData)?void 0:n.tracks)||this.requiredTracks;if(u&&a!==this.playingAsset){if(!e.tracks)return void this.log("Waiting for track info before buffering "+e);if(d&&!y(d,e.tracks)){var c=new Error("Asset "+fn(a)+" SourceBuffer tracks ('"+Object.keys(e.tracks)+"') are not compatible with primary content tracks ('"+Object.keys(d)+"')"),h={fatal:!0,type:ei.OTHER_ERROR,details:ti.INTERSTITIAL_ASSET_ITEM_ERROR,error:c},f=i.findAssetIndex(a);return void this.handleAssetItemError(h,i,s,f,c.message)}}this.transferMediaTo(e,t)}}}}},r.handleInPlaceStall=function(e){var t=this.schedule,r=this.primaryMedia;if(t&&r){var n=r.currentTime,i=t.findAssetIndex(e,n),a=e.assetList[i];if(a){var s=this.getAssetPlayer(a.identifier);if(s){var o=s.currentTime||n-a.timelineStart,l=s.duration-o;if(this.warn("Stalled at "+o+" of "+(o+l)+" in "+s+" "+e+" (media.currentTime: "+n+")"),o&&(l/r.playbackRate<.5||s.bufferedInPlaceToEnd(r))&&s.hls){var u=t.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,u,i)}}}}},r.advanceInPlace=function(e){var t=this.primaryMedia;t&&t.currentTime<e&&(t.currentTime=e)},r.handleAssetItemError=function(e,t,r,n,i){if(e.details!==ti.BUFFER_STALLED_ERROR){var a=t.assetList[n]||null;if(this.warn("INTERSTITIAL_ASSET_ERROR "+(a?fn(a):a)+" "+e.error),this.schedule){var s=(null==a?void 0:a.identifier)||"",o=this.getAssetPlayerQueueIndex(s),l=this.playerQueue[o]||null,u=this.schedule.items,d=f({},e,{fatal:!1,errorAction:Pe(!0),asset:a,assetListIndex:n,event:t,schedule:u,scheduleIndex:r,player:l});if(this.hls.trigger(ri.INTERSTITIAL_ASSET_ERROR,d),e.fatal){var c=this.playingAsset,h=this.bufferingAsset,m=new Error(i);if(a&&(this.clearAssetPlayer(s,null),a.error=m),t.assetList.some((function(e){return!e.error})))for(var p=n;p<t.assetList.length;p++)this.resetAssetPlayer(t.assetList[p].identifier);else t.error=m;this.updateSchedule(!0),t.error?this.primaryFallback(t):c&&c.identifier===s?this.advanceAfterAssetEnded(t,r,n):h&&h.identifier===s&&this.isInterstitial(this.bufferingItem)&&this.advanceAssetBuffering(this.bufferingItem,h)}}}},r.primaryFallback=function(e){var t=e.timelineStart,r=this.effectivePlayingItem,n=this.timelinePos;if(r){this.log('Fallback to primary from event "'+e.identifier+'" start: '+t+" pos: "+n+" playing: "+mn(r)+" error: "+e.error),-1===n&&(n=this.hls.startPosition);var i=this.updateItem(r,n);this.itemsMatch(r,i)&&this.clearInterstitial(e,null),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t))}else if(-1===n)return void this.checkStart();if(this.schedule){var a=this.schedule.findItemIndexAtTime(n);this.setSchedulePosition(a)}},r.onAssetListLoaded=function(e,t){var r,n,i=this,a=t.event,s=a.identifier,o=t.assetListResponse.ASSETS;if(null!=(r=this.schedule)&&r.hasEvent(s)){var l=a.timelineStart,u=a.duration,d=0;o.forEach((function(e,t){var r=parseFloat(e.DURATION);i.createAsset(a,t,d,l+d,r,e.URI),d+=r})),a.duration=d,this.log("Loaded asset-list with duration: "+d+" (was: "+u+") "+a);var c=this.waitingItem,h=(null==c?void 0:c.event.identifier)===s;this.updateSchedule();var f=null==(n=this.bufferingItem)?void 0:n.event;if(h){var m,p=this.schedule.findEventIndex(s),g=null==(m=this.schedule.items)?void 0:m[p];if(g){if(!this.playingItem&&this.timelinePos>g.end)if(this.schedule.findItemIndexAtTime(this.timelinePos)!==p)return a.error=new Error("Interstitial "+(o.length?"no longer within playback range":"asset-list is empty")+" "+this.timelinePos+" "+a),this.log(a.error.message),this.updateSchedule(!0),void this.primaryFallback(a);this.setBufferingItem(g)}this.setSchedulePosition(p)}else if((null==f?void 0:f.identifier)===s){var _=a.assetList[0];if(_){var v=this.getAssetPlayer(_.identifier);if(f.appendInPlace){var y=this.primaryMedia;v&&y&&this.bufferAssetPlayer(v,y)}else v&&v.loadSource()}}}},r.onError=function(e,t){if(this.schedule)switch(t.details){case ti.ASSET_LIST_PARSING_ERROR:case ti.ASSET_LIST_LOAD_ERROR:case ti.ASSET_LIST_LOAD_TIMEOUT:var r=t.interstitial;r&&(this.updateSchedule(!0),this.primaryFallback(r));break;case ti.BUFFER_STALLED_ERROR:var n=this.endedItem||this.waitingItem||this.playingItem;if(this.isInterstitial(n)&&n.event.appendInPlace)return void this.handleInPlaceStall(n.event);this.log("Primary player stall @"+this.timelinePos+" bufferedPos: "+this.bufferedPos),this.onTimeupdate(),this.checkBuffer(!0)}},c(t,[{key:"interstitialsManager",get:function(){if(!this.hls)return null;if(this.manager)return this.manager;var e=this,t=function(){return e.bufferingItem||e.waitingItem},r=function(t){return t?e.getAssetPlayer(t.identifier):t},n=function(t,n,a,s,o){if(t){var l=t[n].start,u=t.event;if(u){if("playout"===n||u.timelineOccupancy!==yo.Point){var d=r(a);(null==d?void 0:d.interstitial)===u&&(l+=d.assetItem.startOffset+d[o])}}else l+=("bufferedPos"===s?i():e[s])-t.start;return l}return 0},i=function(){var t=e.bufferedPos;return t===Number.MAX_VALUE?a("primary"):Math.max(t,0)},a=function(t){var r,n;return null!=(r=e.primaryDetails)&&r.live?e.primaryDetails.edge:(null==(n=e.schedule)?void 0:n.durations[t])||0},s=function(t,i){var a,s,o=e.effectivePlayingItem;if((null==o||null==(a=o.event)||!a.restrictions.skip)&&e.schedule){e.log("seek to "+t+' "'+i+'"');var l=e.effectivePlayingItem,u=e.schedule.findItemIndexAtTime(t,i),d=null==(s=e.schedule.items)?void 0:s[u],c=e.getBufferingPlayer(),h=null==c?void 0:c.interstitial,f=null==h?void 0:h.appendInPlace,m=l&&e.itemsMatch(l,d);if(l&&(f||m)){var p=r(e.playingAsset),g=(null==p?void 0:p.media)||e.primaryMedia;if(g){var _="primary"===i?g.currentTime:n(l,i,e.playingAsset,"timelinePos","currentTime"),v=(f?_:g.currentTime)+(t-_);if(v>=0&&(!p||f||v<=p.duration))return void(g.currentTime=v)}}if(d){var y=t;if("primary"!==i)y=d.start+(t-d[i].start);var L=!e.isInterstitial(d);if(e.isInterstitial(l)&&!l.event.appendInPlace||!L&&!d.event.appendInPlace){if(l){var b=e.findItemIndex(l);if(u>b){var T=e.schedule.findJumpRestrictedIndex(b+1,u);if(T>b)return void e.setSchedulePosition(T)}var M=0;if(L)e.timelinePos=y,e.checkBuffer();else for(var k=d.event.assetList,S=t-(d[i]||d).start,w=k.length;w--;){var D=k[w];if(D.duration&&S>=D.startOffset&&S<D.startOffset+D.duration){M=w;break}}e.setSchedulePosition(u,M)}}else{var E=e.media||(f?null==c?void 0:c.media:null);E&&(E.currentTime=y)}}}},o=function(){var r=e.effectivePlayingItem;if(e.isInterstitial(r))return r;var n=t();return e.isInterstitial(n)?n:null},l={get bufferedEnd(){var r,i=t(),a=e.bufferingItem;return a&&a===i&&(n(a,"playout",e.bufferingAsset,"bufferedPos","bufferedEnd")-a.playout.start||(null==(r=e.bufferingAsset)?void 0:r.startOffset))||0},get currentTime(){var t=o(),r=e.effectivePlayingItem;return r&&r===t?n(r,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-r.playout.start:0},set currentTime(t){var r=o(),n=e.effectivePlayingItem;n&&n===r&&s(t+n.playout.start,"playout")},get duration(){var e=o();return e?e.playout.end-e.playout.start:0},get assetPlayers(){var t,r=null==(t=o())?void 0:t.event.assetList;return r?r.map((function(t){return e.getAssetPlayer(t.identifier)})):[]},get playingIndex(){var t,r=null==(t=o())?void 0:t.event;return r&&e.effectivePlayingAsset?r.findAssetIndex(e.effectivePlayingAsset):-1},get scheduleItem(){return o()}};return this.manager={get events(){var t;return(null==(t=e.schedule)||null==(t=t.events)?void 0:t.slice(0))||[]},get schedule(){var t;return(null==(t=e.schedule)||null==(t=t.items)?void 0:t.slice(0))||[]},get interstitialPlayer(){return o()?l:null},get playerQueue(){return e.playerQueue.slice(0)},get bufferingAsset(){return e.bufferingAsset},get bufferingItem(){return t()},get bufferingIndex(){var r=t();return e.findItemIndex(r)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){return e.findItemIndex(e.effectivePlayingItem)},primary:{get bufferedEnd(){return i()},get currentTime(){var t=e.timelinePos;return t>0?t:0},set currentTime(e){s(e,"primary")},get duration(){return a("primary")},get seekableStart(){var t;return(null==(t=e.primaryDetails)?void 0:t.fragmentStart)||0}},integrated:{get bufferedEnd(){return n(t(),"integrated",e.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return n(e.effectivePlayingItem,"integrated",e.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(e){s(e,"integrated")},get duration(){return a("integrated")},get seekableStart(){var t;return function(t,r){var n;if(0!==t&&"primary"!==r&&null!=(n=e.schedule)&&n.length){var i,a=e.schedule.findItemIndexAtTime(t),s=null==(i=e.schedule.items)?void 0:i[a];if(s)return t+(s[r].start-s.start)}return t}((null==(t=e.primaryDetails)?void 0:t.fragmentStart)||0,"integrated")}},skip:function(){var t=e.effectivePlayingItem,r=null==t?void 0:t.event;if(r&&!r.restrictions.skip){var n=e.findItemIndex(t);if(r.appendInPlace)s(t.playout.start+t.event.duration+.001,"playout");else e.advanceAfterAssetEnded(r,n,1/0)}}}}},{key:"effectivePlayingItem",get:function(){return this.waitingItem||this.playingItem||this.endedItem}},{key:"effectivePlayingAsset",get:function(){return this.playingAsset||this.endedAsset}},{key:"playingLastItem",get:function(){var e,t=this.playingItem,r=null==(e=this.schedule)?void 0:e.items;return!!(this.playbackStarted&&t&&r)&&this.findItemIndex(t)===r.length-1}},{key:"playbackStarted",get:function(){return null!==this.effectivePlayingItem}},{key:"currentTime",get:function(){var e,t;if(null!==this.mediaSelection){var r=this.waitingItem||this.playingItem;if(!this.isInterstitial(r)||r.event.appendInPlace){var n=this.media;!n&&null!=(e=this.bufferingItem)&&null!=(e=e.event)&&e.appendInPlace&&(n=this.primaryMedia);var i=null==(t=n)?void 0:t.currentTime;if(void 0!==i&&Xn(i))return i}}}},{key:"primaryMedia",get:function(){var e;return this.media||(null==(e=this.detachedData)?void 0:e.media)||null}},{key:"playbackDisabled",get:function(){return!1===this.hls.config.enableInterstitialPlayback}},{key:"primaryDetails",get:function(){var e;return null==(e=this.mediaSelection)?void 0:e.main.details}},{key:"primaryLive",get:function(){var e;return!(null==(e=this.primaryDetails)||!e.live)}}]),t}(hi),So=function(e){function t(t,r,n){var i;return(i=e.call(this,t,r,n,"subtitle-stream-controller",ui)||this).currentTrackId=-1,i.tracksBuffered=[],i.mainDetails=null,i.registerListeners(),i}u(t,e);var r=t.prototype;return r.onHandlerDestroying=function(){this.unregisterListeners(),e.prototype.onHandlerDestroying.call(this),this.mainDetails=null},r.registerListeners=function(){e.prototype.registerListeners.call(this);var t=this.hls;t.on(ri.LEVEL_LOADED,this.onLevelLoaded,this),t.on(ri.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(ri.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(ri.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(ri.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.on(ri.BUFFER_FLUSHING,this.onBufferFlushing,this)},r.unregisterListeners=function(){e.prototype.unregisterListeners.call(this);var t=this.hls;t.off(ri.LEVEL_LOADED,this.onLevelLoaded,this),t.off(ri.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(ri.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(ri.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(ri.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.off(ri.BUFFER_FLUSHING,this.onBufferFlushing,this)},r.startLoad=function(e,t){this.stopLoad(),this.state=Ha,this.setInterval(500),this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()},r.onManifestLoading=function(){e.prototype.onManifestLoading.call(this),this.mainDetails=null},r.onMediaDetaching=function(t,r){this.tracksBuffered=[],e.prototype.onMediaDetaching.call(this,t,r)},r.onLevelLoaded=function(e,t){this.mainDetails=t.details},r.onSubtitleFragProcessed=function(e,t){var r=t.frag,n=t.success;if(this.fragContextChanged(r)||(k(r)&&(this.fragPrevious=r),this.state=Ha),n){var i=this.tracksBuffered[this.currentTrackId];if(i){for(var a,s=r.start,o=0;o<i.length;o++)if(s>=i[o].start&&s<=i[o].end){a=i[o];break}var l=r.start+r.duration;a?a.end=l:i.push(a={start:s,end:l}),this.fragmentTracker.fragBuffered(r),this.fragBufferedComplete(r,null),this.media&&this.tick()}}},r.onBufferFlushing=function(e,t){var r=t.startOffset,n=t.endOffset;if(0===r&&n!==Number.POSITIVE_INFINITY){var i=n-1;if(i<=0)return;t.endOffsetSubtitles=Math.max(0,i),this.tracksBuffered.forEach((function(e){for(var t=0;t<e.length;)if(e[t].end<=i)e.shift();else{if(!(e[t].start<i))break;e[t].start=i,t++}})),this.fragmentTracker.removeFragmentsInRange(r,i,ui)}},r.onError=function(e,t){var r=t.frag;(null==r?void 0:r.type)===ui&&(t.details===ti.FRAG_GAP&&this.fragmentTracker.fragBuffered(r,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Ua&&(this.state=Ha))},r.onSubtitleTracksUpdated=function(e,t){var r=this,n=t.subtitleTracks;this.levels&&Dr(this.levels,n)?this.levels=n.map((function(e){return new Hi(e)})):(this.tracksBuffered=[],this.levels=n.map((function(e){var t=new Hi(e);return r.tracksBuffered[t.id]=[],t})),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,ui),this.fragPrevious=null,this.mediaBuffer=null)},r.onSubtitleTrackSwitch=function(e,t){var r;if(this.currentTrackId=t.id,null!=(r=this.levels)&&r.length&&-1!==this.currentTrackId){var n=this.levels[this.currentTrackId];this.mediaBuffer=null!=n&&n.details?this.mediaBufferTimeRanges:null,n&&this.state!==Ua&&this.setInterval(500)}else this.clearInterval()},r.onSubtitleTrackLoaded=function(e,t){var r,n=this.currentTrackId,i=this.levels,a=t.details,s=t.id;if(i){var o=i[s];if(!(s>=i.length)&&o){this.log("Subtitle track "+s+" loaded ["+a.startSN+","+a.endSN+"]"+(a.lastPartSn?"[part-"+a.lastPartSn+"-"+a.lastPartIndex+"]":"")+",duration:"+a.totalduration),this.mediaBuffer=this.mediaBufferTimeRanges;var l=0;if(a.live||null!=(r=o.details)&&r.live){if(a.deltaUpdateFailed)return;var u=this.mainDetails;if(!u)return void(this.startFragRequested=!1);var d,c=u.fragments[0];if(o.details)0===(l=this.alignPlaylists(a,o.details,null==(d=this.levelLastLoaded)?void 0:d.details))&&c&&Lt(a,l=c.start);else a.hasProgramDateTime&&u.hasProgramDateTime?(Ct(a,u),l=a.fragmentStart):c&&Lt(a,l=c.start);u&&!this.startFragRequested&&this.setStartPosition(u,l)}if(o.details=a,this.levelLastLoaded=o,s===n)if(this.hls.trigger(ri.SUBTITLE_TRACK_UPDATED,{details:a,id:s,groupId:t.groupId}),this.tick(),a.live&&!this.fragCurrent&&this.media&&this.state===Ha)Te(null,a.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),o.details=void 0)}}else this.warn("Subtitle tracks were reset while loading level "+s)},r._handleFragmentLoadComplete=function(e){var t=this,r=e.frag,n=e.payload,i=r.decryptdata,a=this.hls;if(!this.fragContextChanged(r)&&n&&n.byteLength>0&&null!=i&&i.key&&i.iv&&ze(i.method)){var s=performance.now();
vendor: 8,710 bytes, line 1
1this.decrypter.decrypt(new Uint8Array(n),i.key.buffer,i.iv.buffer,qe(i.method)).catch((function(e){throw a.trigger(ri.ERROR,{type:ei.MEDIA_ERROR,details:ti.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:r}),e})).then((function(e){var t=performance.now();a.trigger(ri.FRAG_DECRYPTED,{frag:r,payload:e,stats:{tstart:s,tdecrypt:t}})})).catch((function(e){t.warn(e.name+": "+e.message),t.state=Ha}))}},r.doTick=function(){if(this.media){if(this.state===Ha){var e=this.levels,t=null==e?void 0:e[this.currentTrackId];if(!t||!e.length||!t.details)return;if(this.waitForLive(t))return;var r=this.config,n=this.getLoadPosition(),i=_a.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],n,r.maxBufferHole),a=i.end,s=t.details;if(i.len>this.hls.maxBufferLength+s.levelTargetDuration)return;var o=s.fragments,l=o.length,u=s.edge,d=null,c=this.fragPrevious;if(a<u){var h=r.maxFragLookUpTolerance,f=a>u-h?0:h;!(d=Te(c,o,Math.max(o[0].start,a),f))&&c&&c.start<o[0].start&&(d=o[0])}else d=o[l-1];if(!(d=this.filterReplacedPrimary(d,t.details)))return;var m=o[d.sn-s.startSN-1];if(m&&m.cc===d.cc&&this.fragmentTracker.getState(m)===ea&&(d=m),this.fragmentTracker.getState(d)===ea){var p=this.mapToInitFragWhenRequired(d);p&&this.loadFragment(p,t,a)}}}else this.state=Ha},r.loadFragment=function(t,r,n){k(t)?e.prototype.loadFragment.call(this,t,r,n):this._loadInitSegment(t,r)},c(t,[{key:"mediaBufferTimeRanges",get:function(){return new wo(this.tracksBuffered[this.currentTrackId]||[])}}]),t}(Za),wo=function(e){this.buffered=void 0;var t=function(t,r,n){if((r>>>=0)>n-1)throw new DOMException("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+r+") is greater than the maximum bound ("+n+")");return e[r][t]};this.buffered={get length(){return e.length},end:function(r){return t("end",r,e.length)},start:function(r){return t("start",r,e.length)}}},Do={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},Eo=function(e){return String.fromCharCode(Do[e]||e)},Ao={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Io={17:2,18:4,21:6,22:8,23:10,19:13,20:15},xo={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Co={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Ro=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],Po=function(){function e(){this.time=null,this.verboseLevel=0}return e.prototype.log=function(e,t){if(this.verboseLevel>=e){var r="function"==typeof t?t():t;gi.log(this.time+" ["+e+"] "+r)}},e}(),Oo=function(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].toString(16));return t},Yo=function(){function e(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}var t=e.prototype;return t.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},t.setStyles=function(e){for(var t=["foreground","underline","italics","background","flash"],r=0;r<t.length;r++){var n=t[r];e.hasOwnProperty(n)&&(this[n]=e[n])}},t.isDefault=function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash},t.equals=function(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash},t.copy=function(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash},t.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},e}(),Fo=function(){function e(){this.uchar=" ",this.penState=new Yo}var t=e.prototype;return t.reset=function(){this.uchar=" ",this.penState.reset()},t.setChar=function(e,t){this.uchar=e,this.penState.copy(t)},t.setPenState=function(e){this.penState.copy(e)},t.equals=function(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)},t.copy=function(e){this.uchar=e.uchar,this.penState.copy(e.penState)},t.isEmpty=function(){return" "===this.uchar&&this.penState.isDefault()},e}(),No=function(){function e(e){this.chars=[],this.pos=0,this.currPenState=new Yo,this.cueStartTime=null,this.logger=void 0;for(var t=0;t<100;t++)this.chars.push(new Fo);this.logger=e}var t=e.prototype;return t.equals=function(e){for(var t=0;t<100;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0},t.copy=function(e){for(var t=0;t<100;t++)this.chars[t].copy(e.chars[t])},t.isEmpty=function(){for(var e=!0,t=0;t<100;t++)if(!this.chars[t].isEmpty()){e=!1;break}return e},t.setCursor=function(e){this.pos!==e&&(this.pos=e),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>100&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=100)},t.moveCursor=function(e){var t=this.pos+e;if(e>1)for(var r=this.pos+1;r<t+1;r++)this.chars[r].setPenState(this.currPenState);this.setCursor(t)},t.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},t.insertChar=function(e){var t=this;e>=144&&this.backSpace();var r=Eo(e);this.pos>=100?this.logger.log(0,(function(){return"Cannot insert "+e.toString(16)+" ("+r+") at position "+t.pos+". Skipping it!"})):(this.chars[this.pos].setChar(r,this.currPenState),this.moveCursor(1))},t.clearFromPos=function(e){var t;for(t=e;t<100;t++)this.chars[t].reset()},t.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},t.clearToEndOfRow=function(){this.clearFromPos(this.pos)},t.getTextString=function(){for(var e=[],t=!0,r=0;r<100;r++){var n=this.chars[r].uchar;" "!==n&&(t=!1),e.push(n)}return t?"":e.join("")},t.setPenStyles=function(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)},e}(),jo=function(){function e(e){this.rows=[],this.currRow=14,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(var t=0;t<15;t++)this.rows.push(new No(e));this.logger=e}var t=e.prototype;return t.reset=function(){for(var e=0;e<15;e++)this.rows[e].clear();this.currRow=14},t.equals=function(e){for(var t=!0,r=0;r<15;r++)if(!this.rows[r].equals(e.rows[r])){t=!1;break}return t},t.copy=function(e){for(var t=0;t<15;t++)this.rows[t].copy(e.rows[t])},t.isEmpty=function(){for(var e=!0,t=0;t<15;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e},t.backSpace=function(){this.rows[this.currRow].backSpace()},t.clearToEndOfRow=function(){this.rows[this.currRow].clearToEndOfRow()},t.insertChar=function(e){this.rows[this.currRow].insertChar(e)},t.setPen=function(e){this.rows[this.currRow].setPenStyles(e)},t.moveCursor=function(e){this.rows[this.currRow].moveCursor(e)},t.setCursor=function(e){this.logger.log(2,"setCursor: "+e),this.rows[this.currRow].setCursor(e)},t.setPAC=function(e){this.logger.log(2,(function(){return"pacData = "+Bi(e)}));var t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(var r=0;r<15;r++)this.rows[r].clear();var n=this.currRow+1-this.nrRollUpRows,i=this.lastOutputScreen;if(i){var a=i.rows[n].cueStartTime,s=this.logger.time;if(null!==a&&null!==s&&a<s)for(var o=0;o<this.nrRollUpRows;o++)this.rows[t-this.nrRollUpRows+o+1].copy(i.rows[n+o])}}this.currRow=t;var l=this.rows[this.currRow];if(null!==e.indent){var u=Math.max(e.indent-1,0);l.setCursor(e.indent),e.color=l.chars[u].penState.foreground}this.setPen({foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1})},t.setBkgData=function(e){this.logger.log(2,(function(){return"bkgData = "+Bi(e)})),this.backSpace(),this.setPen(e),this.insertChar(32)},t.setRollUpRows=function(e){this.nrRollUpRows=e},t.rollUp=function(){var e=this;if(null!==this.nrRollUpRows){this.logger.log(1,(function(){return e.getDisplayText()}));var t=this.rows.splice(this.currRow+1-this.nrRollUpRows,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),this.logger.log(2,"Rolling up")}else this.logger.log(3,"roll_up but nrRollUpRows not set yet")},t.getDisplayText=function(e){e=e||!1;for(var t=[],r="",n=0;n<15;n++){var i=this.rows[n].getTextString();
vendor: 5,464 bytes, line 1
1i&&t.push(e?"Row "+(n+1)+": '"+i+"'":i.trim())}return t.length>0&&(r=e?"["+t.join(" | ")+"]":t.join("\n")),r},t.getTextAndFormat=function(){return this.rows},e}(),Uo=function(){function e(e,t,r){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new jo(r),this.nonDisplayedMemory=new jo(r),this.lastOutputScreen=new jo(r),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}var t=e.prototype;return t.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},t.getHandler=function(){return this.outputFilter},t.setHandler=function(e){this.outputFilter=e},t.setPAC=function(e){this.writeScreen.setPAC(e)},t.setBkgData=function(e){this.writeScreen.setBkgData(e)},t.setMode=function(e){e!==this.mode&&(this.mode=e,this.logger.log(2,(function(){return"MODE="+e})),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)},t.insertChars=function(e){for(var t=this,r=0;r<e.length;r++)this.writeScreen.insertChar(e[r]);var n=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,(function(){return n+": "+t.writeScreen.getDisplayText(!0)})),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(this.logger.log(1,(function(){return"DISPLAYED: "+t.displayedMemory.getDisplayText(!0)})),this.outputDataUpdate())},t.ccRCL=function(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},t.ccBS=function(){this.logger.log(2,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},t.ccAOF=function(){},t.ccAON=function(){},t.ccDER=function(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},t.ccRU=function(e){this.logger.log(2,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)},t.ccFON=function(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},t.ccRDC=function(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},t.ccTR=function(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")},t.ccRTD=function(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")},t.ccEDM=function(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},t.ccCR=function(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},t.ccENM=function(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},t.ccEOC=function(){var e=this;if(this.logger.log(2,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,(function(){return"DISP: "+e.displayedMemory.getDisplayText()}))}this.outputDataUpdate(!0)},t.ccTO=function(e){this.logger.log(2,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)},t.ccMIDROW=function(e){var t={flash:!1};if(t.underline=e%2==1,t.italics=e>=46,t.italics)t.foreground="white";else{var r=Math.floor(e/2)-16;t.foreground=["white","green","blue","cyan","red","yellow","magenta"][r]}this.logger.log(2,"MIDROW: "+Bi(t)),this.writeScreen.setPen(t)},t.outputDataUpdate=function(e){void 0===e&&(e=!1);var t=this.logger.time;null!==t&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t):this.cueStartTime=t,this.lastOutputScreen.copy(this.displayedMemory))},t.cueSplitAtTime=function(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))},e}(),Ho=function(){function e(e,t,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory={a:null,b:null},this.logger=void 0;var n=this.logger=new Po;this.channels=[null,new Uo(e,t,n),new Uo(e+1,r,n)]}var t=e.prototype;return t.getHandler=function(e){return this.channels[e].getHandler()},t.setHandler=function(e,t){this.channels[e].setHandler(t)},t.addData=function(e,t){var r=this;this.logger.time=e;for(var n=function(e){var n=127&t[e],i=127&t[e+1],a=!1,s=null;if(0===n&&0===i)return"continue";r.logger.log(3,(function(){return"["+Oo([t[e],t[e+1]])+"] -> ("+Oo([n,i])+")"}));var o=r.cmdHistory;if(n>=16&&n<=31){if(function(e,t,r){return r.a===e&&r.b===t}(n,i,o))return _n(null,null,o),r.logger.log(3,(function(){return"Repeated command ("+Oo([n,i])+") 
1is dropped"})),"continue";_n(n,i,r.cmdHistory),(a=r.parseCmd(n,i))||(a=r.parseMidrow(n,i)),a||(a=r.parsePAC(n,i)),a||(a=r.parseBackgroundAttributes(n,i))}else _n(null,null,o);if(!a&&(s=r.parseChars(n,i))){var l=r.currentChannel;if(l&&l>0)r.channels[l].insertChars(s);else r.logger.log(2,"No channel found yet. TEXT-MODE?")}a||s||r.logger.log(2,(function(){return"Couldn't parse cleaned data "+Oo([n,i])+" orig: "+Oo([t[e],t[e+1]])}))},i=0;i<t.length;i+=2)n(i)},t.parseCmd=function(e,t){if(!((20===e||28===e||21===e||29===e)&&t>=32&&t<=47)&&!((23===e||31===e)&&t>=33&&t<=35))return!1;var r=20===e||21===e||23===e?1:2,n=this.channels[r];return 20===e||21===e||28===e||29===e?32===t?n.ccRCL():33===t?n.ccBS():34===t?n.ccAOF():35===t?n.ccAON():36===t?n.ccDER():37===t?n.ccRU(2):38===t?n.ccRU(3):39===t?n.ccRU(4):40===t?n.ccFON():41===t?n.ccRDC():42===t?n.ccTR():43===t?n.ccRTD():44===t?n.ccEDM():45===t?n.ccCR():46===t?n.ccENM():47===t&&n.ccEOC():n.ccTO(t-32),this.currentChannel=r,!0},t.parseMidrow=function(e,t){var r=0;if((17===e||25===e)&&t>=32&&t<=47){if((r=17===e?1:2)!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;var n=this.channels[r];return!!n&&(n.ccMIDROW(t),this.logger.log(3,(function(){return"MIDROW ("+Oo([e,t])+")"})),!0)}return!1},t.parsePAC=function(e,t){if(!((e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127)&&!((16===e||24===e)&&t>=64&&t<=95))return!1;var r=e<=23?1:2,n=this.channels[r];return!!n&&(n.setPAC(this.interpretPAC(t>=64&&t<=95?1===r?Ao[e]:xo[e]:1===r?Io[e]:Co[e],t)),this.currentChannel=r,!0)},t.interpretPAC=function(e,t){var r,n={color:null,italics:!1,indent:null,underline:!1,row:e};return n.underline=1==(1&(r=t>95?t-96:t-64)),r<=13?n.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(n.italics=!0,n.color="white"):n.indent=4*Math.floor((r-16)/2),n},t.parseChars=function(e,t){var r,n,i=null,a=null;(e>=25?(r=2,a=e-8):(r=1,a=e),a>=17&&a<=19)?(n=17===a?t+80:18===a?t+112:t+144,this.logger.log(2,(function(){return"Special char '"+Eo(n)+"' in channel "+r})),i=[n]):e>=32&&e<=127&&(i=0===t?[e]:[e,t]);return i&&this.logger.log(3,(function(){return"Char codes =  "+Oo(i).join(",")})),i},t.parseBackgroundAttributes=function(e,t){var r;if(!((16===e||24===e)&&t>=32&&t<=47)&&!((23===e||31===e)&&t>=45&&t<=47))return!1;var n={};return 16===e||24===e?(r=Math.floor((t-32)/2),n.background=Ro[r],t%2==1&&(n.background=n.background+"_semi")):45===t?n.background="transparent":(n.foreground="black",47===t&&(n.underline=!0)),this.channels[e<=23?1:2].setBkgData(n),!0},t.reset=function(){for(var e=0;e<Object.keys(this.channels).length;e++){var t=this.channels[e];t&&t.reset()}_n(null,null,this.cmdHistory)},t.cueSplitAtTime=function(e){for(var t=0;t<this.channels.length;t++){var r=this.channels[t];r&&r.cueSplitAtTime(e)}},e}(),Bo=function(){function e(e,t){if("string"!=typeof t)return!1;if(!Array.isArray(e))return!1;var r=t.toLowerCase();return!!~e.indexOf(r)&&r}function t(t){return e(a,t)}function r(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var s in a)e[s]=a[s]}return e}function n(n,a,s){var o=this,l={enumerable:!0};o.hasBeenReset=!1;var u="",d=!1,c=n,h=a,f=s,m=null,p="",g=!0,_="auto",v="start",y=50,L="middle",b=50,T="middle";Object.defineProperty(o,"id",r({},l,{get:function(){return u},set:function(e){u=""+e}})),Object.defineProperty(o,"pauseOnExit",r({},l,{get:function(){return d},set:function(e){d=!!e}})),Object.defineProperty(o,"startTime",r({},l,{get:function(){return c},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");c=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"endTime",r({},l,{get:function(){return h},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");h=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"text",r({},l,{get:function(){return f},set:function(e){f=""+e,this.hasBeenReset=!0}})),Object.defineProperty(o,"region",r({},l,{get:function(){return m},set:function(e){m=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"vertical",r({},l,{get:function(){return p},set:function(t){var r=function(t){return e(i,t)}(t);if(!1===r)throw new SyntaxError("An invalid or illegal string was specified.");p=r,this.hasBeenReset=!0}})),Object.defineProperty(o,"snapToLines",r({},l,{get:function(){return g},set:function(e){g=!!e,this.hasBeenReset=!0}})),Object.defineProperty(o,"line",r({},l,{get:function(){return _},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("An invalid number or illegal string was specified.");_=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"lineAlign",r({},l,{get:function(){return v},set:function(e){var r=t(e);
vendor: 5,659 bytes, line 1
1if(!r)throw new SyntaxError("An invalid or illegal string was specified.");v=r,this.hasBeenReset=!0}})),Object.defineProperty(o,"position",r({},l,{get:function(){return y},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"positionAlign",r({},l,{get:function(){return L},set:function(e){var r=t(e);if(!r)throw new SyntaxError("An invalid or illegal string was specified.");L=r,this.hasBeenReset=!0}})),Object.defineProperty(o,"size",r({},l,{get:function(){return b},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"align",r({},l,{get:function(){return T},set:function(e){var r=t(e);if(!r)throw new SyntaxError("An invalid or illegal string was specified.");T=r,this.hasBeenReset=!0}})),o.displayState=void 0}if(null!=ka&&ka.VTTCue)return self.VTTCue;var i=["","lr","rl"],a=["start","middle","end","left","right"];return n.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},n}(),Wo=function(){function e(){}return e.prototype.decode=function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))},e}(),Go=function(){function e(){this.values=Object.create(null)}var t=e.prototype;return t.set=function(e,t){this.get(e)||""===t||(this.values[e]=t)},t.get=function(e,t,r){return r?this.has(e)?this.values[e]:t[r]:this.has(e)?this.values[e]:t},t.has=function(e){return e in this.values},t.alt=function(e,t,r){for(var n=0;n<r.length;++n)if(t===r[n]){this.set(e,t);break}},t.integer=function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},t.percent=function(e,t){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(t)){var r=parseFloat(t);if(r>=0&&r<=100)return this.set(e,r),!0}return!1},e}(),Vo=new Bo(0,0,""),Ko="middle"===Vo.align?"middle":"center",zo=function(){function e(){this.state="INITIAL",this.buffer="",this.decoder=new Wo,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var t=e.prototype;return t.parse=function(e){function t(){var e=r.buffer,t=0;for(e=bn(e);t<e.length&&"\r"!==e[t]&&"\n"!==e[t];)++t;var n=e.slice(0,t);return"\r"===e[t]&&++t,"\n"===e[t]&&++t,r.buffer=e.slice(t),n}var r=this;e&&(r.buffer+=r.decoder.decode(e,{stream:!0}));try{var n="";if("INITIAL"===r.state){if(!/\r\n|\n/.test(r.buffer))return this;var i=(n=t()).match(/^()?WEBVTT([ \t].*)?$/);if(null==i||!i[0])throw new Error("Malformed WebVTT signature.");r.state="HEADER"}for(var a=!1;r.buffer;){if(!/\r\n|\n/.test(r.buffer))return this;switch(a?a=!1:n=t(),r.state){case"HEADER":/:/.test(n)?yn(n,(function(){}),/:/):n||(r.state="ID");continue;case"NOTE":n||(r.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(n)){r.state="NOTE";break}if(!n)continue;if(r.cue=new Bo(0,0,""),r.state="CUE",-1===n.indexOf("--\x3e")){r.cue.id=n;continue}case"CUE":if(!r.cue){r.state="BADCUE";continue}try{Ln(n,r.cue,r.regionList)}catch(e){r.cue=null,r.state="BADCUE";continue}r.state="CUETEXT";continue;case"CUETEXT":var s=-1!==n.indexOf("--\x3e");if(!n||s&&(a=!0)){r.oncue&&r.cue&&r.oncue(r.cue),r.cue=null,r.state="ID";continue}if(null===r.cue)continue;r.cue.text&&(r.cue.text+="\n"),r.cue.text+=n;continue;case"BADCUE":n||(r.state="ID")}}}catch(e){"CUETEXT"===r.state&&r.cue&&r.oncue&&r.oncue(r.cue),r.cue=null,r.state="INITIAL"===r.state?"BADWEBVTT":"BADCUE"}return this},t.flush=function(){try{if((this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state||"BADWEBVTT"===this.state)throw new Error("Malformed WebVTT signature.")}catch(e){this.onparsingerror&&this.onparsingerror(e)}return this.onflush&&this.onflush(),this},e}(),qo=/\r\n|\n\r|\n|\r/g,Jo=function(e,t,r){return void 0===r&&(r=0),e.slice(r,r+t.length)===t},Qo=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Xo=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,Zo={left:"start",center:"center",right:"end",start:"start",end:"end"},$o=function(){function e(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}var t=e.prototype;return t.dispatchCue=function(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)},t.newCue=function(e,t,r){(null===this.startTime||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)},t.reset=function(){this.cueRanges=[],this.startTime=null},e}(),el=function(){function e(e){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this.captionsProperties=void 0,this.hls=e,this.config=e.config,this.Cues=e.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}}
vendor: 14,876 bytes, line 1
1,e.on(ri.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(ri.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ri.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(ri.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(ri.FRAG_LOADING,this.onFragLoading,this),e.on(ri.FRAG_LOADED,this.onFragLoaded,this),e.on(ri.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(ri.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(ri.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(ri.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(ri.BUFFER_FLUSHING,this.onBufferFlushing,this)}var t=e.prototype;return t.destroy=function(){var e=this.hls;e.off(ri.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(ri.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ri.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(ri.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(ri.FRAG_LOADING,this.onFragLoading,this),e.off(ri.FRAG_LOADED,this.onFragLoaded,this),e.off(ri.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(ri.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(ri.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(ri.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(ri.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0},t.initCea608Parsers=function(){var e=new $o(this,"textTrack1"),t=new $o(this,"textTrack2"),r=new $o(this,"textTrack3"),n=new $o(this,"textTrack4");this.cea608Parser1=new Ho(1,e,t),this.cea608Parser2=new Ho(3,r,n)},t.addCues=function(e,t,r,n,i){for(var a,s,o=!1,l=i.length;l--;){var u=i[l],d=(a=u[0],s=t,Math.min(u[1],r)-Math.max(a,s));if(d>=0&&(u[0]=Math.min(u[0],t),u[1]=Math.max(u[1],r),o=!0,d/(r-t)>.5))return}if(o||i.push([t,r]),this.config.renderTextTracksNatively){this.Cues.newCue(this.captionsTracks[e],t,r,n)}else{var c=this.Cues.newCue(null,t,r,n);this.hls.trigger(ri.CUES_PARSED,{type:"captions",cues:c,track:e})}},t.onInitPtsFound=function(e,t){var r=this,n=this.unparsedVttFrags;t.id===oi&&(this.initPTS[t.frag.cc]={baseTime:t.initPTS,timescale:t.timescale,trackId:t.trackId}),n.length&&(this.unparsedVttFrags=[],n.forEach((function(e){r.initPTS[e.frag.cc]?r.onFragLoaded(ri.FRAG_LOADED,e):r.hls.trigger(ri.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e.frag,error:new Error("Subtitle discontinuity domain does not match main")})})))},t.getExistingTrack=function(e,t){var r=this.media;if(r)for(var n=0;n<r.textTracks.length;n++){var i=r.textTracks[n];if(xn(i,{name:e,lang:t,characteristics:"transcribes-spoken-dialog,describes-music-and-sound"}))return i}return null},t.createCaptionsTrack=function(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)},t.createNativeTrack=function(e){if(!this.captionsTracks[e]){var t=this.captionsTracks,r=this.media,n=this.captionsProperties[e],i=n.label,a=n.languageCode,s=this.getExistingTrack(i,a);if(s)t[e]=s,an(t[e]),rn(t[e],r);else{var o=this.createTextTrack("captions",i,a);o&&(o[e]=!0,t[e]=o)}}},t.createNonNativeTrack=function(e){if(!this.nonNativeCaptionsTracks[e]){var t=this.captionsProperties[e];if(t){var r={_id:e,label:t.label,kind:"captions",default:!!t.media&&!!t.media.default,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=r,this.hls.trigger(ri.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[r]})}}},t.createTextTrack=function(e,t,r){var n=this.media;if(n)return n.addTextTrack(e,t,r)},t.onMediaAttaching=function(e,t){this.media=t.media,t.mediaSource||this._cleanTracks()},t.onMediaDetaching=function(e,t){var r=!!t.transferMedia;if(this.media=null,!r){var n=this.captionsTracks;Object.keys(n).forEach((function(e){an(n[e]),delete n[e]})),this.nonNativeCaptionsTracks={}}},t.onManifestLoading=function(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())},t._cleanTracks=function(){var e=this.media;if(e){var t=e.textTracks;if(t)for(var r=0;r<t.length;r++)an(t[r])}},t.onSubtitleTracksUpdated=function(e,t){var r=this,n=t.subtitleTracks||[],i=n.some((function(e){return"stpp.ttml.im1t"===e.textCodec}));if(this.config.enableWebVTT||i&&this.config.enableIMSC1){if(Dr(this.tracks,n))return void(this.tracks=n);if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){var a=this.media,s=a?on(a.textTracks):null;if(this.tracks.forEach((function(e){var t;if(s){for(var n=null,i=0;i<s.length;i++)if(s[i]&&xn(s[i],e)){n=s[i],s[i]=null;break}n&&(t=n)}if(t)an(t);else{var a=In(e);(t=r.createTextTrack(a,e.name,e.lang))&&(t.mode="disabled")}t&&r.textTracks.push(t)})),null!=s&&s.length){var o=s.filter((function(e){return null!==e})).map((function(e){return e.label}));o.length&&this.hls.logger.warn("Media element contains unused subtitle tracks: "+o.join(", ")+". Replace media element for each source to clear TextTracks and captions menu.")}}else if(this.tracks.length){var l=this.tracks.map((function(e){return{label:e.name,kind:e.type.toLowerCase(),default:e.default,subtitleTrack:e}}));this.hls.trigger(ri.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:l})}}},t.onManifestLoaded=function(e,t){var r=this;this.config.enableCEA708Captions&&t.captions&&t.captions.forEach((function(e){var t=/(?:CC|SERVICE)([1-4])/.exec(e.instreamId);if(t){var n=r.captionsProperties["textTrack"+t[1]];n&&(n.label=e.name,e.lang&&(n.languageCode=e.lang),n.media=e)}}))},t.closedCaptionsForLevel=function(e){var t=this.hls.levels[e.level];return null==t?void 0:t.attrs["CLOSED-CAPTIONS"]},t.onFragLoading=function(e,t){if(this.enabled&&t.frag.type===oi){var r,n,i=this.cea608Parser1,a=this.cea608Parser2,s=this.lastSn,o=t.frag,l=o.cc,u=o.sn,d=null!=(r=null==(n=t.part)?void 0:n.index)?r:-1;i&&a&&(u!==s+1||u===s&&d!==this.lastPartIndex+1||l!==this.lastCc)&&(i.reset(),a.reset()),this.lastCc=l,this.lastSn=u,this.lastPartIndex=d}},t.onFragLoaded=function(e,t){var r=t.frag,n=t.payload;if(r.type===ui)if(n.byteLength){var i=r.decryptdata;if(null==i||!i.encrypted||"stats"in t){var a=this.tracks[r.level],s=this.vttCCs;s[r.cc]||(s[r.cc]={start:r.start,prevCC:this.prevCC,new:!0},this.prevCC=r.cc),a&&"stpp.ttml.im1t"===a.textCodec?this._parseIMSC1(r,n):this._parseVTTs(t)}}else this.hls.trigger(ri.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})},t._parseIMSC1=function(e,t){var r=this,n=this.hls;kn(t,this.initPTS[e.cc],(function(t){r._appendCues(t,e.level),n.trigger(ri.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})}),(function(t){n.logger.log("Failed to parse IMSC1: "+t),n.trigger(ri.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:t})}))},t._parseVTTs=function(e){var t,r=this,n=e.frag,i=e.payload,a=this.initPTS,s=this.unparsedVttFrags,o=a.length-1;if(a[n.cc]||-1!==o){var l=this.hls;Mn(null!=(t=n.initSegment)&&t.data?H(n.initSegment.data,new Uint8Array(i)).buffer:i,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,(function(e){r._appendCues(e,n.level),l.trigger(ri.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})}),(function(t){var a="Missing initPTS for VTT MPEGTS"===t.message;a?s.push(e):r._fallbackToIMSC1(n,i),l.logger.log("Failed to parse VTT cue: "+t),a&&o>n.cc||l.trigger(ri.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:t})}))}else s.push(e)},t._fallbackToIMSC1=function(e,t){var r=this,n=this.tracks[e.level];n.textCodec||kn(t,this.initPTS[e.cc],(function(){n.textCodec="stpp.ttml.im1t",r._parseIMSC1(e,t)}),(function(){n.textCodec="wvtt"}))},t._appendCues=function(e,t){var r=this.hls;if(this.config.renderTextTracksNatively){var n=this.textTracks[t];if(!n||"disabled"===n.mode)return;e.forEach((function(e){return nn(n,e)}))}else{var i=this.tracks[t];if(!i)return;r.trigger(ri.CUES_PARSED,{type:"subtitles",cues:e,track:i.default?"default":"subtitles"+t})}},t.onFragDecrypted=function(e,t){t.frag.type===ui&&this.onFragLoaded(ri.FRAG_LOADED,t)},t.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},t.onFragParsingUserdata=function(e,t){if(this.enabled&&this.config.enableCEA708Captions){var r=t.frag,n=t.samples;if(r.type!==oi||"NONE"!==this.closedCaptionsForLevel(r))for(var i=0;i<n.length;i++){var a=n[i].bytes;if(a){this.cea608Parser1||this.initCea608Parsers();var s=this.extractCea608Data(a);this.cea608Parser1.addData(n[i].pts,s[0]),this.cea608Parser2.addData(n[i].pts,s[1])}}}},t.onBufferFlushing=function(e,t){var r=t.startOffset,n=t.endOffset,i=t.endOffsetSubtitles,a=t.type,s=this.media;if(s&&!(s.currentTime<n)){if(!a||"video"===a){var o=this.captionsTracks;Object.keys(o).forEach((function(e){return sn(o[e],r,n)}))}if(this.config.renderTextTracksNatively&&0===r&&void 0!==i){var l=this.textTracks;Object.keys(l).forEach((function(e){return sn(l[e],r,i)}))}}},t.extractCea608Data=function(e){for(var t=[[],[]],r=31&e[0],n=2,i=0;i<r;i++){var a=e[n++],s=127&e[n++],o=127&e[n++];if(0!==s||0!==o)if(0!=(4&a)){var l=3&a;0!==l&&1!==l||(t[l].push(s),t[l].push(o))}}return t},e}(),tl=/\s/,rl={newCue:function(e,t,r,n){for(var i,a,s,o,l,u=[],d=self.VTTCue||self.TextTrackCue,c=0;c<n.rows.length;c++)if(s=!0,o=0,l="",!(i=n.rows[c]).isEmpty()){for(var h,f=0;f<i.chars.length;f++)tl.test(i.chars[f].uchar)&&s?o++:(l+=i.chars[f].uchar,s=!1);i.cueStartTime=t,t===r&&(r+=1e-4),o>=16?o--:o++;var m=bn(l.trim()),p=Tn(t,r,m);null!=e&&null!=(h=e.cues)&&h.getCueById(p)||((a=new d(t,r,m)).id=p,a.line=c+1,a.align="left",a.position=10+Math.min(80,10*Math.floor(8*o/32)),u.push(a))}return e&&u.length&&(u.sort((function(e,t){return"auto"===e.line||"auto"===t.line?0:e.line>8&&t.line>8?t.line-e.line:e.line-t.line})),u.forEach((function(t){return nn(e,t)}))),u}},nl=/(\d+)-(\d+)\/(\d+)/,il=function(){function e(e){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=e.fetchSetup||Rn,this.controller=new self.AbortController,this.stats=new yi}var t=e.prototype;return t.destroy=function(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null},t.abortInternal=function(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())},t.abort=function(){var e;this.abortInternal(),null!=(e=this.callbacks)&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},t.load=function(e,t,r){var n=this,i=this.stats;if(i.loading.start)throw new Error("Loader can only be used once.");i.loading.start=self.performance.now();var a=function(e,t){var r={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(f({},e.headers))};return e.rangeEnd&&r.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1)),r}(e,this.controller.signal),s="arraybuffer"===e.responseType,o=s?"byteLength":"length",l=t.loadPolicy,u=l.maxTimeToFirstByteMs,d=l.maxLoadTimeMs;this.context=e,this.config=t,this.callbacks=r,this.request=this.fetchSetup(e,a),self.clearTimeout(this.requestTimeout),t.timeout=u&&Xn(u)?u:d,this.requestTimeout=self.setTimeout((function(){n.callbacks&&(n.abortInternal(),n.callbacks.onTimeout(i,e,n.response))}),t.timeout),(wr(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then((function(r){var a;n.response=n.loader=r;var o=Math.max(self.performance.now(),i.loading.start);if(self.clearTimeout(n.requestTimeout),t.timeout=d,n.requestTimeout=self.setTimeout((function(){n.callbacks&&(n.abortInternal(),n.callbacks.onTimeout(i,e,n.response))}),d-(o-i.loading.start)),!r.ok)throw new al(r.statusText||"fetch, bad network response",r.status,r);i.loading.first=o,i.total=Cn(r.headers)||i.total;var l=null==(a=n.callbacks)?void 0:a.onProgress;return l&&Xn(t.highWaterMark)?n.loadProgressively(r,i,e,t.highWaterMark,l):s?r.arrayBuffer():"json"===e.responseType?r.json():r.text()})).then((function(r){var a,s,l=n.response;if(!l)throw new Error("loader destroyed");self.clearTimeout(n.requestTimeout),i.loading.end=Math.max(self.performance.now(),i.loading.first);var u=r[o];u&&(i.loaded=i.total=u);var d={url:l.url,data:r,code:l.status},c=null==(a=n.callbacks)?void 0:a.onProgress;c&&!Xn(t.highWaterMark)&&c(i,e,r,l),null==(s=n.callbacks)||s.onSuccess(d,i,e,l)})).catch((function(t){var r;(self.clearTimeout(n.requestTimeout),i.aborted)||(null==(r=n.callbacks)||r.onError({code:t&&t.code||0,text:t?t.message:null},e,t?t.details:null,i))}))},t.getCacheAge=function(){var e=null;if(this.response){var t=this.response.headers.get("age");e=t?parseFloat(t):null}return e},t.getResponseHeader=function(e){return this.response?this.response.headers.get(e):null},t.loadProgressively=function(e,t,r,n,i){void 0===n&&(n=0);var a=new $a,s=e.body.getReader();return function o(){return s.read().then((function(s){if(s.done)return a.dataLength&&i(t,r,a.flush().buffer,e),Promise.resolve(new ArrayBuffer(0));var l=s.value,u=l.length;return t.loaded+=u,u<n||a.dataLength?(a.push(l),a.dataLength>=n&&i(t,r,a.flush().buffer,e)):i(t,r,l.buffer,e),o()})).catch((function(){return Promise.reject()}))}()},e}(),al=function(e){function t(t,r,n){var i;return(i=e.call(this,t)||this).code=void 0,i.details=void 0,i.code=r,i.details=n,i}return u(t,e),t}(n(Error)),sl=/^age:\s*[\d.]+\s*$/im,ol=function(){function e(e){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=e&&e.xhrSetup||null,this.stats=new yi,this.retryDelay=0}var t=e.prototype;return t.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null},t.abortInternal=function(){var e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,4!==e.readyState&&(this.stats.aborted=!0,e.abort()))},t.abort=function(){var e;this.abortInternal(),null!=(e=this.callbacks)&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},t.load=function(e,t,r){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=r,this.loadInternal()},t.loadInternal=function(){var e=this,t=this.config,r=this.context;if(t&&r){var n=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0,i.aborted=!1;var a=this.xhrSetup;a?Promise.resolve().then((function(){if(e.loader===n&&!e.stats.aborted)return a(n,r.url)}
vendor: 5,246 bytes, line 1
1)).catch((function(){if(e.loader===n&&!e.stats.aborted)return n.open("GET",r.url,!0),a(n,r.url)})).then((function(){e.loader!==n||e.stats.aborted||e.openAndSendXhr(n,r,t)})).catch((function(t){var a;null==(a=e.callbacks)||a.onError({code:n.status,text:t.message},r,n,i)})):this.openAndSendXhr(n,r,t)}},t.openAndSendXhr=function(e,t,r){e.readyState||e.open("GET",t.url,!0);var n=t.headers,i=r.loadPolicy,a=i.maxTimeToFirstByteMs,s=i.maxLoadTimeMs;if(n)for(var o in n)e.setRequestHeader(o,n[o]);t.rangeEnd&&e.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,self.clearTimeout(this.requestTimeout),r.timeout=a&&Xn(a)?a:s,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),e.send()},t.readystatechange=function(){var e=this.context,t=this.loader,r=this.stats;if(e&&t){var n=t.readyState,i=this.config;if(!r.aborted&&n>=2&&(0===r.loading.first&&(r.loading.first=Math.max(self.performance.now(),r.loading.start),i.timeout!==i.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),i.timeout=i.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.loadPolicy.maxLoadTimeMs-(r.loading.first-r.loading.start)))),4===n)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;var a=t.status,s="text"===t.responseType?t.responseText:null;if(a>=200&&a<300){var o=null!=s?s:t.response;if(null!=o){var l,u;r.loading.end=Math.max(self.performance.now(),r.loading.first),r.loaded=r.total="arraybuffer"===t.responseType?o.byteLength:o.length,r.bwEstimate=8e3*r.total/(r.loading.end-r.loading.first);var d=null==(l=this.callbacks)?void 0:l.onProgress;return d&&d(r,e,o,t),void(null==(u=this.callbacks)||u.onSuccess({url:t.responseURL,data:o,code:a},r,e,t))}}var c,h=i.loadPolicy.errorRetry;if(Ce(h,r.retry,!1,{url:e.url,data:void 0,code:a}))this.retry(h);else gi.error(a+" while loading "+e.url),null==(c=this.callbacks)||c.onError({code:a,text:t.statusText},e,t,r)}}},t.loadtimeout=function(){if(this.config){var e=this.config.loadPolicy.timeoutRetry;if(Ce(e,this.stats.retry,!0))this.retry(e);else{var t;gi.warn("timeout while loading "+(null==(t=this.context)?void 0:t.url));var r=this.callbacks;r&&(this.abortInternal(),r.onTimeout(this.stats,this.context,this.loader))}}},t.retry=function(e){var t=this.context,r=this.stats;this.retryDelay=Ie(e,r.retry),r.retry++,gi.warn((status?"HTTP Status "+status:"Timeout")+" while loading "+(null==t?void 0:t.url)+", retrying "+r.retry+"/"+e.maxNumRetry+" in "+this.retryDelay+"ms"),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)},t.loadprogress=function(e){var t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)},t.getCacheAge=function(){var e=null;if(this.loader&&sl.test(this.loader.getAllResponseHeaders())){var t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e},t.getResponseHeader=function(e){return this.loader&&new RegExp("^"+e+":\\s*[\\d.]+\\s*$","im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null},e}(),ll=p(p({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,startOnSegmentBoundary:!1,maxBufferSize:6e7,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncMode:"edge",liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:ol,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Wi,bufferController:Gs,capLevelController:Vs,errorController:$i,fpsController:_o,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:Ia,requireKeySystemAccessOnStart:!1,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!0,preserveManualLevelOnError:!1,certLoa
vendor: 14,789 bytes, line 1
1dPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null}},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},interstitialAssetListLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},{cueHandler:rl,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:So,subtitleTrackController:vo,timelineController:el,audioStreamController:Ns,audioTrackController:Us,emeController:po,cmcdController:fo,contentSteeringController:mo,interstitialsController:ko}),ul=function(e){function t(t,r){var n;return(n=e.call(this,"gap-controller",t.logger)||this).hls=void 0,n.fragmentTracker=void 0,n.media=null,n.mediaSource=void 0,n.nudgeRetry=0,n.stallReported=!1,n.stalled=null,n.moved=!1,n.seeking=!1,n.buffered={},n.lastCurrentTime=0,n.ended=0,n.waiting=0,n.onMediaPlaying=function(){n.ended=0,n.waiting=0},n.onMediaWaiting=function(){var e;null!=(e=n.media)&&e.seeking||(n.waiting=self.performance.now(),n.tick())},n.onMediaEnded=function(){var e;n.hls&&(n.ended=(null==(e=n.media)?void 0:e.currentTime)||1,n.hls.trigger(ri.MEDIA_ENDED,{stalled:!1}))},n.hls=t,n.fragmentTracker=r,n.registerListeners(),n}u(t,e);var r=t.prototype;return r.registerListeners=function(){var e=this.hls;e&&(e.on(ri.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(ri.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(ri.BUFFER_APPENDED,this.onBufferAppended,this))},r.unregisterListeners=function(){var e=this.hls;e&&(e.off(ri.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(ri.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(ri.BUFFER_APPENDED,this.onBufferAppended,this))},r.destroy=function(){e.prototype.destroy.call(this),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0},r.onMediaAttached=function(e,t){this.setInterval(100),this.mediaSource=t.mediaSource;var r=this.media=t.media;Rt(r,"playing",this.onMediaPlaying),Rt(r,"waiting",this.onMediaWaiting),Rt(r,"ended",this.onMediaEnded)},r.onMediaDetaching=function(){this.clearInterval();var e=this.media;e&&(Pt(e,"playing",this.onMediaPlaying),Pt(e,"waiting",this.onMediaWaiting),Pt(e,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0},r.onBufferAppended=function(e,t){this.buffered=t.timeRanges},r.tick=function(){var e;if(null!=(e=this.media)&&e.readyState&&this.hasBuffered){var t=this.media.currentTime;this.poll(t,this.lastCurrentTime),this.lastCurrentTime=t}},r.poll=function(e,t){var r,n,i=null==(r=this.hls)?void 0:r.config;if(i){var a=this.media;if(a){var s=a.seeking,o=this.seeking&&!s,l=!this.seeking&&s,u=a.paused&&!s||a.ended||0===a.playbackRate;if(this.seeking=s,e!==t)return t&&(this.ended=0),this.moved=!0,s||(this.nudgeRetry=0,i.nudgeOnVideoHole&&!u&&e>t&&this.nudgeOnVideoHole(e,t)),void(0===this.waiting&&this.stallResolved(e));if(l||o)o&&this.stallResolved(e);else{if(u)return this.nudgeRetry=0,this.stallResolved(e),void(!this.ended&&a.ended&&this.hls&&(this.ended=e||1,this.hls.trigger(ri.MEDIA_ENDED,{stalled:!1})));if(_a.getBuffered(a).length){var d=_a.bufferInfo(a,e,0),c=d.nextStart||0,h=this.fragmentTracker;if(s&&h&&this.hls){var f=Yn(this.hls.inFlightFragments,e),m=d.len>2,p=!c||f||c-e>2&&!h.getPartialFragment(e);if(m||p)return;this.moved=!1}var g=null==(n=this.hls)?void 0:n.latestLevelDetails;if(!this.moved&&null!==this.stalled&&h){if(!(d.len>0)&&!c)return;var _=Math.max(c,d.start||0)-e,v=!(null==g||!g.live)?2*g.targetduration:2,y=Nn(e,h);if(_>0&&(_<=v||y))return void(a.paused||this._trySkipBufferHole(y))}var L=i.detectStallWithCurrentTimeMs,b=self.performance.now(),T=this.waiting,M=this.stalled;if(null===M){if(!(T>0&&b-T<L))return void(this.stalled=b);M=this.stalled=T}var k=b-M;if(!s&&(k>=L||T)&&this.hls){var S;if("ended"===(null==(S=this.mediaSource)?void 0:S.readyState)&&(null==g||!g.live)&&Math.abs(e-((null==g?void 0:g.edge)||0))<1){if(this.ended)return;return this.ended=e||1,void this.hls.trigger(ri.MEDIA_ENDED,{stalled:!0})}if(this._reportStall(d),!this.media||!this.hls)return}var w=_a.bufferInfo(a,e,i.maxBufferHole);this._tryFixBufferStall(w,k,e)}else this.nudgeRetry=0}}}},r.stallResolved=function(e){var t=this.stalled;if(t&&this.hls&&(this.stalled=null,this.stallReported)){var r=self.performance.now()-t;this.log("playback not stuck anymore @"+e+", after "+Math.round(r)+"ms"),this.stallReported=!1,this.waiting=0,this.hls.trigger(ri.STALL_RESOLVED,{})}},r.nudgeOnVideoHole=function(e,t){var r,n=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&null!=(r=this.buffered.audio)&&r.length&&n&&n.length>1&&e>n.end(0)){var i=_a.bufferedInfo(_a.timeRangesToArray(this.buffered.audio),e,0);if(i.len>1&&t>=i.start){var a=_a.timeRangesToArray(n),s=_a.bufferedInfo(a,t,0).bufferedIndex;if(s>-1&&s<a.length-1){var o=_a.bufferedInfo(a,e,0).bufferedIndex,l=a[s].end,u=a[s+1].start;if((-1===o||o>s)&&u-l<1&&e-l<2){var d=new Error("nudging playhead to flush pipeline after video hole. currentTime: "+e+" hole: "+l+" -> "+u+" buffered index: "+o);this.warn(d.message),this.media.currentTime+=1e-6;var c=Nn(e,this.fragmentTracker);c&&"fragment"in c?c=c.fragment:c||(c=void 0);var h=_a.bufferInfo(this.media,e,0);this.hls.trigger(ri.ERROR,{type:ei.MEDIA_ERROR,details:ti.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:d,reason:d.message,frag:c,buffer:h.len,bufferInfo:h})}}}}},r._tryFixBufferStall=function(e,t,r){var n,i,a=this.fragmentTracker,s=null==(n=this.hls)?void 0:n.config;if(this.media&&a&&s){var o=null==(i=this.hls)?void 0:i.latestLevelDetails,l=Nn(r,a);if(l||null!=o&&o.live&&r<o.fragmentStart)if(this._trySkipBufferHole(l)||!this.media)return;var u=e.buffered,d=this.adjacentTraversal(e,r);(u&&u.length>1&&e.len>s.maxBufferHole||e.nextStart&&(e.nextStart-r<s.maxBufferHole||d))&&(t>1e3*s.highBufferWatchdogPeriod||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(e))}},r.adjacentTraversal=function(e,t){var r=this.fragmentTracker,n=e.nextStart;if(r&&n){var i=r.getFragAtPos(t,oi),a=r.getFragAtPos(n,oi);if(i&&a)return a.sn-i.sn<2}return!1},r._reportStall=function(e){var t=this.hls,r=this.media,n=this.stalled;if(!this.stallReported&&null!==n&&r&&t){this.stallReported=!0;var i=new Error("Playback stalling at @"+r.currentTime+" due to low buffer ("+Bi(e)+")");this.warn(i.message),t.trigger(ri.ERROR,{type:ei.MEDIA_ERROR,details:ti.BUFFER_STALLED_ERROR,fatal:!1,error:i,buffer:e.len,bufferInfo:e,stalled:{start:n}})}},r._trySkipBufferHole=function(e){var t,r=this.fragmentTracker,n=this.media,i=null==(t=this.hls)?void 0:t.config;if(!n||!r||!i)return 0;var a=n.currentTime,s=_a.bufferInfo(n,a,0),o=a<s.start?s.start:s.nextStart;if(o&&this.hls){var l=o-a;if(l>0&&(s.len<=i.maxBufferHole||s.len>0&&s.len<1&&n.readyState<3)){if(l>i.maxBufferHole){var u=!1;if(0===a){var d=r.getAppendedFrag(0,oi);d&&o<d.end&&(u=!0)}if(!u&&e){var c;if(null==(c=this.hls.loadLevelObj)||!c.details)return 0;if(Yn(this.hls.inFlightFragments,o))return 0;for(var h=!1,f=e.end;f<o;){var m=Nn(f,r);if(!m){h=!0;break}f+=m.duration}if(h)return 0}}var p=Math.max(o+.05,a+.1);if(this.warn("skipping hole, adjusting currentTime from "+a+" to "+p),this.moved=!0,n.currentTime=p,null==e||!e.gap){var g=new Error("fragment loaded with buffer holes, seeking from "+a+" to "+p),_={type:ei.MEDIA_ERROR,details:ti.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:g,reason:g.message,buffer:s.len,bufferInfo:s};e&&("fragment"in e?_.part=e:_.frag=e),this.hls.trigger(ri.ERROR,_)}return p}}return 0},r._tryNudgeBuffer=function(e){var t=this.hls,r=this.media,n=this.nudgeRetry,i=null==t?void 0:t.config;if(!r||!i)return 0;var a=r.currentTime;if(this.nudgeRetry++,n<i.nudgeMaxRetry){var s=a+(n+1)*i.nudgeOffset,o=new Error("Nudging 'currentTime' from "+a+" to "+s);this.warn(o.message),r.currentTime=s,t.trigger(ri.ERROR,{type:ei.MEDIA_ERROR,details:ti.BUFFER_NUDGE_ON_STALL,error:o,fatal:!1,buffer:e.len,bufferInfo:e})}else{var l=new Error("Playhead still not moving while enough data buffered @"+a+" after "+i.nudgeMaxRetry+" nudges");this.error(l.message),t.trigger(ri.ERROR,{type:ei.MEDIA_ERROR,details:ti.BUFFER_STALLED_ERROR,error:l,fatal:!0,buffer:e.len,bufferInfo:e})}},c(t,[{key:"hasBuffered",get:function(){return Object.keys(this.buffered).length>0}}]),t}(ma),dl=function(){var e=jn();try{e&&new e(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY}(),cl=function(){function e(e){var t=this;this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.assetCue=void 0,this.onEventCueEnter=function(){t.hls&&t.hls.trigger(ri.EVENT_CUE_ENTER,{})},this.hls=e,this._registerListeners()}var t=e.prototype;return t.destroy=function(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null},t._registerListeners=function(){var e=this.hls;e&&(e.on(ri.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(ri.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(ri.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ri.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(ri.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(ri.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(ri.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))},t._unregisterListeners=function(){var e=this.hls;e&&(e.off(ri.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(ri.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(ri.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ri.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(ri.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(ri.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(ri.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))},t.onMediaAttaching=function(e,t){var r;this.media=t.media,!1===(null==(r=t.overrides)?void 0:r.cueRemoval)&&(this.removeCues=!1)},t.onMediaAttached=function(){var e,t=null==(e=this.hls)?void 0:e.latestLevelDetails;t&&this.updateDateRangeCues(t)},t.onMediaDetaching=function(e,t){this.media=null,!!t.transferMedia||(this.id3Track&&(this.removeCues&&an(this.id3Track,this.onEventCueEnter),this.id3Track=null),this.dateRangeCuesAppended={})},t.onManifestLoading=function(){this.dateRangeCuesAppended={}},t.createTrack=function(e){var t=this.getID3Track(e.textTracks);return t.mode="hidden",t},t.getID3Track=function(e){if(this.media){for(var t=0;t<e.length;t++){var r=e[t];if("metadata"===r.kind&&"id3"===r.label)return rn(r,this.media),r}return this.media.addTextTrack("metadata","id3")}},t.onFragParsingMetadata=function(e,t){if(this.media&&this.hls){var r=this.hls.config,n=r.enableEmsgMetadataCues,i=r.enableID3MetadataCues;if(n||i){var a=t.samples;this.id3Track||(this.id3Track=this.createTrack(this.media));var s=jn();if(s)for(var o=0;o<a.length;o++){var l=a[o].type;if((l!==ns.emsg||n)&&i){var u=$t(a[o].data),d=a[o].pts,c=d+a[o].duration;c>dl&&(c=dl),c-d<=0&&(c=d+.25);for(var h=0;h<u.length;h++){var f=u[h];if(!er(f)){this.updateId3CueEnds(d,l);var m=Un(s,d,c,f,l);m&&this.id3Track.addCue(m)}}}}}}},t.updateId3CueEnds=function(e,t){var r,n=null==(r=this.id3Track)?void 0:r.cues;if(n)for(var i=n.length;i--;){var a=n[i];a.type===t&&a.startTime<e&&a.endTime===dl&&(a.endTime=e)}},t.onBufferFlushing=function(e,t){var r=t.type,n=this.id3Track,i=this.hls;if(i){var a=i.config,s=a.enableEmsgMetadataCues,o=a.enableID3MetadataCues;if(n&&(s||o))sn(n,t.startOffset,t.endOffset,"audio"===r?function(e){return e.type===ns.audioId3&&o}:"video"===r?function(e){return e.type===ns.emsg&&s}:function(e){return e.type===ns.audioId3&&o||e.type===ns.emsg&&s})}},t.onLevelUpdated=function(e,t){this.updateDateRangeCues(t.details,!0)},t.onLevelPtsUpdated=function(e,t){Math.abs(t.drift)>.01&&this.updateDateRangeCues(t.details)},t.updateDateRangeCues=function(e,t){var r=this;if(this.hls&&this.media){var n=this.hls.config,i=n.assetPlayerId,a=n.timelineOffset,s=n.interstitialsController;if(n.enableDateRangeMetadataCues){var o=jn();if(i&&a&&!s){var l=e.fragmentStart,u=e.fragmentEnd,d=this.assetCue;d?(d.startTime=l,d.endTime=u):o&&(d=this.assetCue=Un(o,l,u,{assetPlayerId:this.hls.config.assetPlayerId},"hlsjs.interstitial.asset"))&&(d.id=i,this.id3Track||(this.id3Track=this.createTrack(this.media)),this.id3Track.addCue(d),d.addEventListener("enter",this.onEventCueEnter))}if(e.hasProgramDateTime){var c,h=this.id3Track,f=e.dateRanges,m=Object.keys(f),p=this.dateRangeCuesAppended;if(h&&t)if(null!=(c=h.cues)&&c.length)for(var g=Object.keys(p).filter((function(e){return!m.includes(e)})),_=function(e){var t=g[e],n=null==(y=p[t])?void 0:y.cues;delete p[t],n&&Object.keys(n).forEach((function(e){var t=n[e];if(t){t.removeEventListener("enter",r.onEventCueEnter);try{h.removeCue(t)}catch(e){}}}))},v=g.length;v--;){var y;_(v)}else p=this.dateRangeCuesAppended={};var L=e.fragments[e.fragments.length-1];if(0!==m.length&&Xn(null==L?void 0:L.programDateTime)){this.id3Track||(this.id3Track=this.createTrack(this.media));for(var b=function(e){var t=m[e],n=f[t],i=n.startTime,a=p[t],l=(null==a?void 0:a.cues)||{}
vendor: 4,439 bytes, line 1
1,u=(null==a?void 0:a.durationKnown)||!1,d=dl,c=n.duration;if(n.endDate&&null!==c)d=i+c,u=!0;else if(n.endOnNext&&!u){var h=m.reduce((function(e,t){if(t!==n.id){var r=f[t];if(r.class===n.class&&r.startDate>n.startDate&&(!e||n.startDate<e.startDate))return r}return e}),null);h&&(d=h.startTime,u=!0)}for(var g,_=Object.keys(n.attr),v=0;v<_.length;v++){var y=_[v];if("ID"!==(g=y)&&"CLASS"!==g&&"CUE"!==g&&"START-DATE"!==g&&"DURATION"!==g&&"END-DATE"!==g&&"END-ON-NEXT"!==g){var L=l[y];if(L)!u||null!=a&&a.durationKnown?Math.abs(L.startTime-i)>.01&&(L.startTime=i,L.endTime=d):L.endTime=d;else if(o){var b=n.attr[y];Ge(y)&&(b=T(b));var M=Un(o,i,d,{key:y,data:b},ns.dateRange);M&&(M.id=t,r.id3Track.addCue(M),l[y]=M,s&&("X-ASSET-LIST"!==y&&"X-ASSET-URL"!==y||M.addEventListener("enter",r.onEventCueEnter)))}}}p[t]={cues:l,dateRange:n,durationKnown:u}},M=0;M<m.length;M++)b(M)}}}}},e}(),hl=function(){function e(e){var t=this;this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=function(){var e=t.media,r=t.levelDetails;if(e&&r){t.currentTime=e.currentTime;var n=t.computeLatency();if(null!==n){t._latency=n;var i=t.config,a=i.maxLiveSyncPlaybackRate;if(i.lowLatencyMode&&1!==a&&r.live){var s=t.targetLatency;if(null!==s){var o=n-s;if(o<Math.min(t.maxLatency,s+r.targetduration)&&o>.05&&t.forwardBufferLength>1){var l=Math.min(2,Math.max(1,a)),u=Math.round(2/(1+Math.exp(-.75*o-t.edgeStalled))*20)/20,d=Math.min(l,Math.max(1,u));t.changeMediaPlaybackRate(e,d)}else 1!==e.playbackRate&&0!==e.playbackRate&&t.changeMediaPlaybackRate(e,1)}}}}},this.hls=e,this.config=e.config,this.registerListeners()}var t=e.prototype;return t.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null},t.registerListeners=function(){var e=this.hls;e&&(e.on(ri.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(ri.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ri.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(ri.ERROR,this.onError,this))},t.unregisterListeners=function(){var e=this.hls;e&&(e.off(ri.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(ri.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ri.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(ri.ERROR,this.onError,this))},t.onMediaAttached=function(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.onTimeupdate)},t.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)},t.onManifestLoading=function(){this._latency=null,this.stallCount=0},t.onLevelUpdated=function(e,t){var r=t.details;r.advanced&&this.onTimeupdate(),!r.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)},t.onError=function(e,t){var r;t.details===ti.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&null!=(r=this.levelDetails)&&r.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))},t.changeMediaPlaybackRate=function(e,t){var r,n;e.playbackRate!==t&&(null==(r=this.hls)||r.logger.debug("[latency-controller]: latency="+this.latency.toFixed(3)+", targetLatency="+(null==(n=this.targetLatency)?void 0:n.toFixed(3))+", forwardBufferLength="+this.forwardBufferLength.toFixed(3)+": adjusting playback rate from "+e.playbackRate+" to "+t),e.playbackRate=t)},t.estimateLiveEdge=function(){var e=this.levelDetails;return null===e?null:e.edge+e.age},t.computeLatency=function(){var e=this.estimateLiveEdge();return null===e?null:e-this.currentTime},c(e,[{key:"levelDetails",get:function(){var e;return(null==(e=this.hls)?void 0:e.latestLevelDetails)||null}},{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var e=this.config;if(void 0!==e.liveMaxLatencyDuration)return e.liveMaxLatencyDuration;var t=this.levelDetails;return t?e.liveMaxLatencyDurationCount*t.targetduration:0}},{key:"targetLatency",get:function(){var e=this.levelDetails;if(null===e||null===this.hls)return null;var t=e.holdBack,r=e.targetduration,n=this.config,i=n.liveSyncDuration,a=this.hls.userConfig,s=n.lowLatencyMode&&e.partHoldBack||t;return(this._targetLatencyUpdated||a.liveSyncDuration||a.liveSyncDurationCount||0===s)&&(s=void 0!==i?i:n.liveSyncDurationCount*r),s+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,r)}
1,set:function(e){this.stallCount=0,this.config.liveSyncDuration=e,this._targetLatencyUpdated=!0}},{key:"liveSyncPosition",get:function(){var e=this.estimateLiveEdge(),t=this.targetLatency;if(null===e||null===t)return null;var r=this.levelDetails;if(null===r)return null;var n=r.edge,i=n-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(n-r.totalduration,e-t-this.edgeStalled),i)}},{key:"drift",get:function(){var e=this.levelDetails;return null===e?1:e.drift}},{key:"edgeStalled",get:function(){var e=this.levelDetails;return null===e?0:Math.max(e.age-3*(this.config.lowLatencyMode&&e.partTarget||e.targetduration),0)}},{key:"forwardBufferLength",get:function(){var e=this.media,t=this.levelDetails;if(!e||!t)return 0;var r=e.buffered.length;return(r?e.buffered.end(r-1):t.edge)-this.currentTime}}]),e}(),fl=function(e){function t(t,r){var n;return(n=e.call(this,t,"level-controller")||this)._levels=[],n._firstLevel=-1,n._maxAutoLevel=-1,n._startLevel=void 0,n.currentLevel=null,n.currentLevelIndex=-1,n.manualLevelIndex=-1,n.steering=void 0,n.onParsedComplete=void 0,n.steering=r,n._registerListeners(),n}u(t,e);var r=t.prototype;return r._registerListeners=function(){var e=this.hls;e.on(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ri.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(ri.LEVEL_LOADED,this.onLevelLoaded,this),e.on(ri.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(ri.FRAG_BUFFERED,this.onFragBuffered,this),e.on(ri.ERROR,this.onError,this)},r._unregisterListeners=function(){var e=this.hls;e.off(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ri.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(ri.LEVEL_LOADED,this.onLevelLoaded,this),e.off(ri.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(ri.FRAG_BUFFERED,this.onFragBuffered,this),e.off(ri.ERROR,this.onError,this)},r.destroy=function(){this._unregisterListeners(),this.steering=null,this.resetLevels(),e.prototype.destroy.call(this)},r.stopLoad=function(){this._levels.forEach((function(e){e.loadError=0,e.fragmentError=0})),e.prototype.stopLoad.call(this)},r.resetLevels=function(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1},r.onManifestLoading=function(){this.resetLevels()},r.onManifestLoaded=function(e,t){var r=this,n=this.hls.config.preferManagedMediaSource,i=[],a={},s={},o=!1,l=!1,u=!1;t.levels.forEach((function(e){var t=e.attrs,d=e.audioCodec,c=e.videoCodec;d&&(e.audioCodec=d=te(d,n)||void 0),c&&(c=e.videoCodec=function(e){for(var t=e.split(","),r=0;r<t.length;r++){var n=t[r].split(".");n.length>2&&"avc1"===n[0]&&(t[r]="avc1."+parseInt(n[1]).toString(16)+("000"+parseInt(n[2]).toString(16)).slice(-4))}return t.join(",")}(c));var h=e.unknownCodecs;if(o||(o=!(!e.width||!e.height)),l||(l=!!c),u||(u=!!d),(null==h?void 0:h.length)||0||d&&!r.isAudioSupported(d)||c&&!r.isVideoSupported(c))r.log('Some or all CODECS not supported "'+t.CODECS+'"');
vendor: 4,343 bytes, line 1
1else{var f=""+((t["PATHWAY-ID"]||".")+"-")+e.bitrate+"-"+t.RESOLUTION+"-"+t["FRAME-RATE"]+"-"+t.CODECS+"-"+t["VIDEO-RANGE"]+"-"+t["HDCP-LEVEL"];if(a[f])if(a[f].uri===e.url||e.attrs["PATHWAY-ID"])a[f].addGroupId("audio",t.AUDIO),a[f].addGroupId("text",t.SUBTITLES);else{var m=s[f]+=1;e.attrs["PATHWAY-ID"]=new Array(m+1).join(".");var p=r.createLevel(e);a[f]=p,i.push(p)}else{var g=r.createLevel(e);a[f]=g,s[f]=1,i.push(g)}}})),this.filterAndSortMediaOptions(i,t,o,l,u)},r.createLevel=function(e){var t=new Hi(e),r=e.supplemental;if(null!=r&&r.videoCodec&&!this.isVideoSupported(r.videoCodec)){var n=new Error('SUPPLEMENTAL-CODECS not supported "'+r.videoCodec+'"');this.log(n.message),t.supportedResult=oe(n,[])}return t},r.isAudioSupported=function(e){return Q(e,"audio",this.hls.config.preferManagedMediaSource)},r.isVideoSupported=function(e){return Q(e,"video",this.hls.config.preferManagedMediaSource)},r.filterAndSortMediaOptions=function(e,t,r,n,i){var a,s=this,o=[],l=[],u=e,d=(null==(a=t.stats)?void 0:a.parsing)||{};if((r||n)&&i&&(u=u.filter((function(e){var t;return(!!e.videoCodec||!(!e.width||!e.height))&&(!!(t=e.videoRange)&&Yi.indexOf(t)>-1)}))),0===u.length)return Promise.resolve().then((function(){if(s.hls){var e="no level with compatible codecs found in manifest",r=e;t.levels.length&&(r="one or more CODECS in variant not supported: "+Bi(t.levels.map((function(e){return e.attrs.CODECS})).filter((function(e,t,r){return r.indexOf(e)===t}))),s.warn(r),e+=" ("+r+")");var n=new Error(e);s.hls.trigger(ri.ERROR,{type:ei.MEDIA_ERROR,details:ti.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:n,reason:r})}})),void(d.end=performance.now());t.audioTracks&&Hn(o=t.audioTracks.filter((function(e){return!e.audioCodec||s.isAudioSupported(e.audioCodec)}))),t.subtitles&&Hn(l=t.subtitles);var c=u.slice(0);u.sort((function(e,t){if(e.attrs["HDCP-LEVEL"]!==t.attrs["HDCP-LEVEL"])return(e.attrs["HDCP-LEVEL"]||"")>(t.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&&e.height!==t.height)return e.height-t.height;if(e.frameRate!==t.frameRate)return e.frameRate-t.frameRate;if(e.videoRange!==t.videoRange)return Yi.indexOf(e.videoRange)-Yi.indexOf(t.videoRange);if(e.videoCodec!==t.videoCodec){var n=$(e.videoCodec),i=$(t.videoCodec);if(n!==i)return i-n}if(e.uri===t.uri&&e.codecSet!==t.codecSet){var a=ee(e.codecSet),s=ee(t.codecSet);if(a!==s)return s-a}return e.averageBitrate!==t.averageBitrate?e.averageBitrate-t.averageBitrate:0}));var h=c[0];if(this.steering&&(u=this.steering.filterParsedLevels(u)).length!==c.length)for(var f=0;f<c.length;f++)if(c[f].pathwayId===u[0].pathwayId){h=c[f];break}this._levels=u;for(var m=0;m<u.length;m++)if(u[m]===h){var p;this._firstLevel=m;var g=h.bitrate,_=this.hls.bandwidthEstimate;if(this.log("manifest loaded, "+u.length+" level(s) found, first bitrate: "+g),void 0===(null==(p=this.hls.userConfig)?void 0:p.abrEwmaDefaultEstimate)){var v=Math.min(g,this.hls.config.abrEwmaDefaultEstimateMax);v>_&&_===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=v)}break}var y=this.hls.config,L={levels:u,audioTracks:o,subtitleTracks:l,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:n,altAudio:!(!y.audioStreamController||!y.audioTrackController)&&!(i&&!n)&&o.some((function(e){return!!e.url}))};d.end=performance.now(),this.hls.trigger(ri.MANIFEST_PARSED,L)},r.onError=function(e,t){!t.fatal&&t.context&&t.context.type===ii&&t.context.level===this.level&&this.checkRetry(t)},r.onFragBuffered=function(e,t){var r=t.frag;if(void 0!==r&&r.type===oi){var n=r.elementaryStreams;if(!Object.keys(n).some((function(e){return!!n[e]})))return;var i=this._levels[r.level];null!=i&&i.loadError&&(this.log("Resetting level error count of "+i.loadError+" on frag buffered"),i.loadError=0)}},r.onLevelLoaded=function(e,t){var r,n,i=t.level,a=t.details,s=t.levelInfo;if(!s)return this.warn("Invalid level index "+i),void(null!=(n=t.deliveryDirectives)&&n.skip&&(a.deltaUpdateFailed=!0));if(s===this.currentLevel||t.withoutMultiVariant){0===s.fragmentError&&(s.loadError=0);var o=s.details;o===t.details&&o.advanced&&(o=void 0),this.playlistLoaded(i,t,o)}else null!=(r=t.deliveryDirectives)&&r.skip&&(a.deltaUpdateFailed=!0)},r.loadPlaylist=function(t){e.prototype.loadPlaylist.call(this),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLo
vendor: 20,490 bytes, line 1
1ading(this.currentLevel,t)},r.loadingPlaylist=function(t,r){e.prototype.loadingPlaylist.call(this,t,r);var n=this.getUrlWithDirectives(t.uri,r),i=this.currentLevelIndex,a=t.attrs["PATHWAY-ID"],s=t.details,o=null==s?void 0:s.age;this.log("Loading level index "+i+(void 0!==(null==r?void 0:r.msn)?" at sn "+r.msn+" part "+r.part:"")+(a?" Pathway "+a:"")+(o&&s.live?" age "+o.toFixed(1)+(s.type?" "+s.type||!1:""):"")+" "+n),this.hls.trigger(ri.LEVEL_LOADING,{url:n,level:i,levelInfo:t,pathwayId:t.attrs["PATHWAY-ID"],id:0,deliveryDirectives:r||null})},r.removeLevel=function(e){var t,r=this;if(1!==this._levels.length){var n=this._levels.filter((function(t,n){return n!==e||(r.steering&&r.steering.removeLevel(t),t===r.currentLevel&&(r.currentLevel=null,r.currentLevelIndex=-1,t.details&&t.details.fragments.forEach((function(e){return e.level=-1}))),!1)}));St(n),this._levels=n,this.currentLevelIndex>-1&&null!=(t=this.currentLevel)&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);var i=n.length-1;this._firstLevel=Math.min(this._firstLevel,i),this._startLevel&&(this._startLevel=Math.min(this._startLevel,i)),this.hls.trigger(ri.LEVELS_UPDATED,{levels:n})}},r.onLevelsUpdated=function(e,t){this._levels=t.levels},r.checkMaxAutoUpdated=function(){var e=this.hls,t=e.autoLevelCapping,r=e.maxAutoLevel,n=e.maxHdcpLevel;this._maxAutoLevel!==r&&(this._maxAutoLevel=r,this.hls.trigger(ri.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:t,levels:this.levels,maxAutoLevel:r,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:n}))},c(t,[{key:"levels",get:function(){return 0===this._levels.length?null:this._levels}},{key:"loadLevelObj",get:function(){return this.currentLevel}},{key:"level",get:function(){return this.currentLevelIndex},set:function(e){var t=this._levels;if(0!==t.length){if(e<0||e>=t.length){var r=new Error("invalid level idx"),n=e<0;if(this.hls.trigger(ri.ERROR,{type:ei.OTHER_ERROR,details:ti.LEVEL_SWITCH_ERROR,level:e,fatal:n,error:r,reason:r.message}),n)return;e=Math.min(e,t.length-1)}var i=this.currentLevelIndex,a=this.currentLevel,s=a?a.attrs["PATHWAY-ID"]:void 0,o=t[e],l=o.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=o,i!==e||!a||s!==l){this.log("Switching to level "+e+" ("+(o.height?o.height+"p ":"")+(o.videoRange?o.videoRange+" ":"")+(o.codecSet?o.codecSet+" ":"")+"@"+o.bitrate+")"+(l?" with Pathway "+l:"")+" from level "+i+(s?" with Pathway "+s:"")),this.hls.trigger(ri.LEVEL_SWITCHING,{level:e,attrs:o.attrs,details:o.details,bitrate:o.bitrate,averageBitrate:o.averageBitrate,maxBitrate:o.maxBitrate,realBitrate:o.realBitrate,width:o.width,height:o.height,codecSet:o.codecSet,audioCodec:o.audioCodec,videoCodec:o.videoCodec,audioGroups:o.audioGroups,subtitleGroups:o.subtitleGroups,loaded:o.loaded,loadError:o.loadError,fragmentError:o.fragmentError,name:o.name,id:o.id,uri:o.uri,url:o.url,urlId:0,audioGroupIds:o.audioGroupIds,textGroupIds:o.textGroupIds});var u=o.details;if(!u||u.live){var d=this.switchParams(o.uri,null==a?void 0:a.details,u);this.loadPlaylist(d)}}}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(e){this.manualLevelIndex=e,void 0===this._startLevel&&(this._startLevel=e),-1!==e&&(this.level=e)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(e){this._firstLevel=e}},{key:"startLevel",get:function(){if(void 0===this._startLevel){var e=this.hls.config.startLevel;return void 0!==e?e:this.hls.firstAutoLevel}return this._startLevel},set:function(e){this._startLevel=e}},{key:"pathways",get:function(){return this.steering?this.steering.pathways():[]}},{key:"pathwayPriority",get:function(){return this.steering?this.steering.pathwayPriority:null},set:function(e){if(this.steering){var t=this.steering.pathways(),r=e.filter((function(e){return-1!==t.indexOf(e)}));if(e.length<1)return void this.warn("pathwayPriority "+e+" should contain at least one pathway from list: "+t);this.steering.pathwayPriority=r}}},{key:"nextLoadLevel",get:function(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(e){this.level=e,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=e)}}]),t}(js),ml=function(e){function t(t,r,n){var i;return(i=e.call(this,t,r,n,"stream-controller",oi)||this).audioCodecSwap=!1,i.level=-1,i._forceStartLoad=!1,i._hasEnoughToStart=!1,i.altAudio=0,i.audioOnly=!1,i.fragPlaying=null,i.fragLastKbps=0,i.couldBacktrack=!1,i.backtrackFragment=null,i.audioCodecSwitch=!1,i.videoBuffer=null,i.onMediaPlaying=function(){i.tick()},i.onMediaSeeked=function(){var e=i.media,t=e?e.currentTime:null;if(null!==t&&Xn(t)&&(i.log("Media seeked to "+t.toFixed(3)),i.getBufferedFrag(t))){var r=i.getFwdBufferInfoAtPos(e,t,oi,0);null!==r&&0!==r.len?i.tick():i.warn("Main forward buffer length at "+t+' on "seeked" event '+(r?r.len:"empty")+")")}},i.registerListeners(),i}u(t,e);var r=t.prototype;return r.registerListeners=function(){e.prototype.registerListeners.call(this);var t=this.hls;t.on(ri.MANIFEST_PARSED,this.onManifestParsed,this),t.on(ri.LEVEL_LOADING,this.onLevelLoading,this),t.on(ri.LEVEL_LOADED,this.onLevelLoaded,this),t.on(ri.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.on(ri.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(ri.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(ri.BUFFER_CREATED,this.onBufferCreated,this),t.on(ri.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(ri.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(ri.FRAG_BUFFERED,this.onFragBuffered,this)},r.unregisterListeners=function(){e.prototype.unregisterListeners.call(this);var t=this.hls;t.off(ri.MANIFEST_PARSED,this.onManifestParsed,this),t.off(ri.LEVEL_LOADED,this.onLevelLoaded,this),t.off(ri.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.off(ri.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(ri.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(ri.BUFFER_CREATED,this.onBufferCreated,this),t.off(ri.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(ri.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(ri.FRAG_BUFFERED,this.onFragBuffered,this)},r.onHandlerDestroying=function(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),e.prototype.onHandlerDestroying.call(this)},r.startLoad=function(e,t){if(this.levels){var r=this.lastCurrentTime,n=this.hls;if(this.stopLoad(),this.setInterval(100),this.level=-1,!this.startFragRequested){var i=n.startLevel;-1===i&&(n.config.testBandwidth&&this.levels.length>1?(i=0,this.bitrateTest=!0):i=n.firstAutoLevel),n.nextLoadLevel=i,this.level=n.loadLevel,this._hasEnoughToStart=!!t}r>0&&-1===e&&!t&&(this.log("Override startPosition with lastCurrentTime @"+r.toFixed(3)),e=r),this.state=Ha,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=Ua},r.stopLoad=function(){this._forceStartLoad=!1,e.prototype.stopLoad.call(this)},r.doTick=function(){switch(this.state){case Xa:var e=this.levels,t=null==e?void 0:e[this.level],r=null==t?void 0:t.details;if(r&&(!r.live||this.levelLastLoaded===t&&!this.waitForLive(t))){if(this.waitForCdnTuneIn(r))break;this.state=Ha;break}if(this.hls.nextLoadLevel!==this.level){this.state=Ha;break}break;case Ga:this.checkRetryDate()}this.state===Ha&&this.doTickIdle(),this.onTickEnd()},r.onTickEnd=function(){var t;e.prototype.onTickEnd.call(this),null!=(t=this.media)&&t.readyState&&!1===this.media.seeking&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()},r.doTickIdle=function(){var e=this.hls,t=this.levels;if(null!==this.levelLastLoaded&&(this.media||this.primaryPrefetch||!this.startFragRequested&&e.config.startFragPrefetch)&&(!this.altAudio||!this.audioOnly)){var r=this.buffering?e.nextLoadLevel:e.loadLevel;if(null!=t&&t[r]){var n=t[r],i=this.getMainFwdBufferInfo();if(null!==i){var a=this.getLevelDetails();if(a&&this._streamEnded(i,a)){var s={};return 2===this.altAudio&&(s.type="video"),this.hls.trigger(ri.BUFFER_EOS,s),void(this.state=qa)}if(this.buffering){e.loadLevel!==r&&-1===e.manualLevel&&this.log("Adapting to level "+r+" from level "+this.level),this.level=e.nextLoadLevel=r;var o=n.details;if(!o||this.state===Xa||this.waitForLive(n))return this.level=r,this.state=Xa,void(this.startFragRequested=!1);var l=i.len,u=this.getMaxBufferLength(n.maxBitrate);if(!(l>=u)){this.backtrackFragment&&this.backtrackFragment.start>i.end&&(this.backtrackFragment=null);var d=this.backtrackFragment?this.backtrackFragment.start:i.end,c=this.getNextFragment(d,o);if(this.couldBacktrack&&!this.fragPrevious&&c&&k(c)&&this.fragmentTracker.getState(c)!==na){var h,f=(null!=(h=this.backtrackFragment)?h:c).sn,m=o.fragments[f-o.startSN-1];m&&c.cc===m.cc&&(c=m,this.fragmentTracker.removeFragment(m))}else this.backtrackFragment&&i.len&&(this.backtrackFragment=null);if(c&&this.isLoopLoading(c,d)){if(!c.gap){var p=this.audioOnly&&!this.altAudio?Li:bi,g=(p===bi?this.videoBuffer:this.mediaBuffer)||this.media;g&&this.afterBufferFlushed(g,p,oi)}c=this.getNextFragmentLoopLoading(c,o,i,oi,u)}c&&(this.exceedsMaxBuffer(i,u,c)||(!c.initSegment||c.initSegment.data||this.bitrateTest||(c=c.initSegment),this.loadFragment(c,n,d)))}}}}}},r.loadFragment=function(t,r,n){var i=this.fragmentTracker.getState(t);i===ea||i===ra?k(t)?this.bitrateTest?(this.log("Fragment "+t.sn+" of level "+t.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(t,r)):e.prototype.loadFragment.call(this,t,r,n):this._loadInitSegment(t,r):this.clearTrackerIfNeeded(t)},r.getBufferedFrag=function(e){return this.fragmentTracker.getBufferedFrag(e,oi)},r.followingBufferedFrag=function(e){return e?this.getBufferedFrag(e.end+.5):null},r.immediateLevelSwitch=function(){var t;(this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY),0!==this.altAudio)&&(((null==(t=this.getLevelDetails())?void 0:t.fragmentStart)||0)>this.lastCurrentTime&&e.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio"))},r.nextLevelSwitch=function(){var e=this.levels,t=this.media;if(null!=t&&t.readyState){var r,n=this.getAppendedFrag(t.currentTime);n&&n.start>1&&this.flushMainBuffer(0,n.start-1);var i=this.getLevelDetails();if(null!=i&&i.live){var a=this.getMainFwdBufferInfo();if(!a||a.len<2*i.targetduration)return}if(!t.paused&&e){var s=this.fragLastKbps;r=s&&this.fragCurrent?this.fragCurrent.duration*e[this.hls.nextLoadLevel].maxBitrate/(1e3*s)+1:0}else r=0;var o=this.getBufferedFrag(t.currentTime+r);if(o){var l=this.followingBufferedFrag(o);if(l){this.abortCurrentFrag();var u=l.duration,d=Math.max(o.end,(l.maxStartPTS?l.maxStartPTS:l.start)+Math.min(Math.max(u-this.config.maxFragLookUpTolerance,u*(this.couldBacktrack?.5:.125)),u*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(d,Number.POSITIVE_INFINITY)}}}},r.abortCurrentFrag=function(){var e=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,e&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.state){case Ba:case Wa:case Ga:case Ka:case za:this.state=Ha}this.nextLoadPosition=this.getLoadPosition()},r.flushMainBuffer=function(t,r){e.prototype.flushMainBuffer.call(this,t,r,2===this.altAudio?"video":null)},r.onMediaAttached=function(t,r){e.prototype.onMediaAttached.call(this,t,r);var n=r.media;Rt(n,"playing",this.onMediaPlaying),Rt(n,"seeked",this.onMediaSeeked)},r.onMediaDetaching=function(t,r){var n=this.media;n&&(Pt(n,"playing",this.onMediaPlaying),Pt(n,"seeked",this.onMediaSeeked)),this.videoBuffer=null,this.fragPlaying=null,e.prototype.onMediaDetaching.call(this,t,r),!!r.transferMedia||(this._hasEnoughToStart=!1)},r.onManifestLoading=function(){e.prototype.onManifestLoading.call(this),this.log("Trigger BUFFER_RESET"),this.hls.trigger(ri.BUFFER_RESET,void 0),this.couldBacktrack=!1,this.fragLastKbps=0,this.fragPlaying=this.backtrackFragment=null,this.altAudio=0,this.audioOnly=!1},r.onManifestParsed=function(e,t){for(var r,n,i=!1,a=!1,s=0;s<t.levels.length;s++){var o=t.levels[s].audioCodec;o&&(i=i||-1!==o.indexOf("mp4a.40.2"),a=a||-1!==o.indexOf("mp4a.40.5"))}this.audioCodecSwitch=i&&a&&!("function"==typeof(null==(n=Bn())||null==(r=n.prototype)?void 0:r.changeType)),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=t.levels,this.startFragRequested=!1},r.onLevelLoading=function(e,t){if(this.levels&&this.state===Ha){var r=t.levelInfo;(!r.details||r.details.live&&(this.levelLastLoaded!==r||r.details.expired)||this.waitForCdnTuneIn(r.details))&&(this.state=Xa)}},r.onLevelLoaded=function(e,t){var r,n=this.startFragRequested,i=t.level,a=t.details;if(this.levels){this.log("Level "+i+" loaded ["+a.startSN+","+a.endSN+"]"+(a.lastPartSn?"[part-"+a.lastPartSn+"-"+a.lastPartIndex+"]":"")+", cc ["+a.startCC+", "+a.endCC+"] duration:"+a.totalduration);var s=t.levelInfo,o=this.fragCurrent;!o||this.state!==Wa&&this.state!==Ga||o.level!==t.level&&o.loader&&this.abortCurrentFrag();var l=0;if(a.live||null!=(r=s.details)&&r.live){var u;if(this.checkLiveUpdate(a),a.deltaUpdateFailed)return;l=this.alignPlaylists(a,s.details,null==(u=this.levelLastLoaded)?void 0:u.details)}if(s.details=a,this.levelLastLoaded=s,n||this.setStartPosition(a,l),this.hls.trigger(ri.LEVEL_UPDATED,{details:a,level:i}),this.state===Xa){if(this.waitForCdnTuneIn(a))return;this.state=Ha}n&&a.live&&this.synchronizeToLiveEdge(a),this.tick()}else this.warn("Levels were reset while loading level "+i)},r.synchronizeToLiveEdge=function(e){var t=this.config,r=this.media;if(r){var n=this.hls.liveSyncPosition,i=this.getLoadPosition(),a=e.edge,s=i>=e.fragmentStart-t.maxFragLookUpTolerance&&i<=a;if(null!==n&&r.duration>n&&(i<n||!s))if((!s&&r.readyState<4||i<a-(void 0!==t.liveMaxLatencyDuration?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration))&&(this._hasEnoughToStart||(this.nextLoadPosition=n),r.readyState))if(this.warn("Playback: "+i.toFixed(3)+" is located too far from the end of live sliding playlist: "+a+", reset currentTime to : "+n.toFixed(3)),"buffered"===this.config.liveSyncMode){var o,l=_a.bufferInfo(r,n,0);if(null==(o=l.buffered)||!o.length)return void(r.currentTime=n);if(l.start<=i)return void(r.currentTime=n);var u=_a.bufferedInfo(l.buffered,i,0).nextStart;u&&(r.currentTime=u)}else r.currentTime=n}},r._handleFragmentLoadProgress=function(e){var t,r=e.frag,n=e.part,i=e.payload,a=this.levels;if(a){var s=a[r.level];if(s){var o=s.details;if(!o)return this.warn("Dropping fragment "+r.sn+" of level "+r.level+" after level details were reset"),void this.fragmentTracker.removeFragment(r);var l=s.videoCodec,u=o.PTSKnown||!o.live,d=null==(t=r.initSegment)?void 0:t.data,c=this._getAudioCodec(s),h=this.transmuxer=this.transmuxer||new Fs(this.hls,oi,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),f=n?n.index:-1,m=new pa(r.level,r.sn,r.stats.chunkCount,i.byteLength,f,-1!==f);h.push(i,d,c,l,r,n,o.totalduration,u,m,this.initPTS[r.cc])}else this.warn("Level "+r.level+" not found on progress")}else this.warn("Levels were reset while fragment load was in progress. Fragment "+r.sn+" of level "+r.level+" will not be buffered")},r.onAudioTrackSwitching=function(e,t){var r=this,n=this.hls,i=0!==this.altAudio;if(be(t.url,n))this.altAudio=1;else{if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var a=this.fragCurrent;a&&(this.log("Switching to main audio track, cancel main fragment load"),a.abortRequests(),this.fragmentTracker.removeFragment(a)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();if(i)return this.altAudio=0,this.fragmentTracker.removeAllFragments(),n.once(ri.BUFFER_FLUSHED,(function(){r.hls&&r.hls.trigger(ri.AUDIO_TRACK_SWITCHED,t)})),void n.trigger(ri.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});n.trigger(ri.AUDIO_TRACK_SWITCHED,t)}},r.onAudioTrackSwitched=function(e,t){var r=be(t.url,this.hls);if(r){var n=this.videoBuffer;n&&this.mediaBuffer!==n&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=n)}this.altAudio=r?2:0,this.tick()},r.onBufferCreated=function(e,t){var r,n,i=t.tracks,a=!1;for(var s in i){var o=i[s];if("main"===o.id){if(n=s,r=o,"video"===s){var l=i[s];l&&(this.videoBuffer=l.buffer)}}else a=!0}a&&r?(this.log("Alternate track found, use "+n+".buffered to schedule main fragment loading"),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media},r.onFragBuffered=function(e,t){var r=t.frag,n=t.part,i=r.type===oi;if(i){if(this.fragContextChanged(r))return this.warn("Fragment "+r.sn+(n?" p: "+n.index:"")+" of level "+r.level+" finished buffering, but was aborted. state: "+this.state),void(this.state===za&&(this.state=Ha));var a=n?n.stats:r.stats;this.fragLastKbps=Math.round(8*a.total/(a.buffering.end-a.loading.first)),k(r)&&(this.fragPrevious=r),this.fragBufferedComplete(r,n)}var s=this.media;s&&(!this._hasEnoughToStart&&_a.getBuffered(s).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),i&&this.tick())},r.onError=function(e,t){var r;if(t.fatal)this.state=Ja;else switch(t.details){case ti.FRAG_GAP:case ti.FRAG_PARSING_ERROR:case ti.FRAG_DECRYPT_ERROR:case ti.FRAG_LOAD_ERROR:case ti.FRAG_LOAD_TIMEOUT:case ti.KEY_LOAD_ERROR:case ti.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(oi,t);break;case ti.LEVEL_LOAD_ERROR:case ti.LEVEL_LOAD_TIMEOUT:case ti.LEVEL_PARSING_ERROR:t.levelRetry||this.state!==Xa||(null==(r=t.context)?void 0:r.type)!==ii||(this.state=Ha);break;case ti.BUFFER_ADD_CODEC_ERROR:case ti.BUFFER_APPEND_ERROR:if("main"!==t.parent)return;this.reduceLengthAndFlushBuffer(t)&&this.resetLoadingState();break;case ti.BUFFER_FULL_ERROR:if("main"!==t.parent)return;if(this.reduceLengthAndFlushBuffer(t))!this.config.interstitialsController&&this.config.assetPlayerId?this._hasEnoughToStart=!0:this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case ti.INTERNAL_EXCEPTION:this.recoverWorkerError(t)}},r.onFragLoadEmergencyAborted=function(){this.state=Ha,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()},r.onBufferFlushed=function(e,t){var r=t.type;if(r!==Li||!this.altAudio){var n=(r===bi?this.videoBuffer:this.mediaBuffer)||this.media;n&&(this.afterBufferFlushed(n,r,oi),this.tick())}},r.onLevelsUpdated=function(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,-1===this.level&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=t.levels},r.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},r.seekToStartPos=function(){var e=this.media;if(e){var t=e.currentTime,r=this.startPosition;if(r>=0&&t<r){if(e.seeking)return void this.log("could not seek to "+r+", already seeking at "+t);var n=this.timelineOffset;n&&r&&(r+=n);var i=this.getLevelDetails(),a=_a.getBuffered(e),s=a.length?a.start(0):0,o=s-r,l=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);(this.config.startOnSegmentBoundary||o>0&&(o<l||this.loadingParts&&o<2*((null==i?void 0:i.partTarget)||0)))&&(this.log("adjusting start position by "+o+" to match buffer start"),this.startPosition=r+=o),t<r&&(this.log("seek to target start position "+r+" from current time "+t+" buffer start "+s),e.currentTime=r)}}},r._getAudioCodec=function(e){var t=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&t&&(this.log("Swapping audio codec"),t=-1!==t.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),t},r._loadBitrateTestFrag=function(e,t){var r=this;e.bitrateTest=!0,this._doFragLoad(e,t).then((function(e){var n=r.hls,i=null==e?void 0:e.frag;if(i&&!r.fragContextChanged(i)){t.fragmentError=0,r.state=Ha,r.startFragRequested=!1,r.bitrateTest=!1;var a=i.stats;a.parsing.start=a.parsing.end=a.buffering.start=a.buffering.end=self.performance.now(),n.trigger(ri.FRAG_LOADED,e),i.bitrateTest=!1}})).catch((function(t){r.state!==Ua&&r.state!==Ja&&(r.warn(t),r.resetFragmentLoading(e))}))},r._handleTransmuxComplete=function(e){var t=this.playlistType,r=this.hls,n=e.remuxResult,i=e.chunkMeta,a=this.getCurrentContext(i);if(a){var s=a.frag,o=a.part,l=a.level,u=n.video,d=n.text,c=n.id3,h=n.initSegment,f=l.details,m=this.altAudio?void 0:n.audio;if(this.fragContextChanged(s))this.fragmentTracker.removeFragment(s);else{if(this.state=Ka,h){var p=h.tracks;
vendor: 23,872 bytes, line 1
1if(p){var g=s.initSegment||s;if(this.unhandledEncryptionError(h,s))return;this._bufferInitSegment(l,p,g,i),r.trigger(ri.FRAG_PARSING_INIT_SEGMENT,{frag:g,id:t,tracks:p})}var _=h.initPTS,v=h.timescale,y=this.initPTS[s.cc];if(Xn(_)&&(!y||y.baseTime!==_||y.timescale!==v)){var L=h.trackId;this.initPTS[s.cc]={baseTime:_,timescale:v,trackId:L},r.trigger(ri.INIT_PTS_FOUND,{frag:s,id:t,initPTS:_,timescale:v,trackId:L})}}if(u&&f){m&&"audiovideo"===u.type&&this.logMuxedErr(s);var b=f.fragments[s.sn-1-f.startSN],T=s.sn===f.startSN,M=!b||s.cc>b.cc;if(!1!==n.independent){var k=u.startPTS,S=u.endPTS,w=u.startDTS,D=u.endDTS;if(o)o.elementaryStreams[u.type]={startPTS:k,endPTS:S,startDTS:w,endDTS:D};else if(u.firstKeyFrame&&u.independent&&1===i.id&&!M&&(this.couldBacktrack=!0),u.dropped&&u.independent){var E=this.getMainFwdBufferInfo(),A=(E?E.end:this.getLoadPosition())+this.config.maxBufferHole;if(!T&&A<(u.firstKeyFramePTS?u.firstKeyFramePTS:k)-this.config.maxBufferHole&&!M)return void this.backtrack(s);M&&(s.gap=!0),s.setElementaryStreamInfo(u.type,s.start,S,s.start,D,!0)}else T&&k-(f.appliedTimelineOffset||0)>2&&(s.gap=!0);s.setElementaryStreamInfo(u.type,k,S,w,D),this.backtrackFragment&&(this.backtrackFragment=s),this.bufferFragmentData(u,s,o,i,T||M)}else{if(!T&&!M)return void this.backtrack(s);s.gap=!0}}if(m){var I=m.startPTS,x=m.endPTS,C=m.startDTS,R=m.endDTS;o&&(o.elementaryStreams[Li]={startPTS:I,endPTS:x,startDTS:C,endDTS:R}),s.setElementaryStreamInfo(Li,I,x,C,R),this.bufferFragmentData(m,s,o,i)}if(f&&null!=c&&c.samples.length)r.trigger(ri.FRAG_PARSING_METADATA,{id:t,frag:s,details:f,samples:c.samples});if(f&&d)r.trigger(ri.FRAG_PARSING_USERDATA,{id:t,frag:s,details:f,samples:d.samples})}}else this.resetWhenMissingContext(i)},r.logMuxedErr=function(e){this.warn((k(e)?"Media":"Init")+" segment with muxed audiovideo where only video expected: "+e.url)},r._bufferInitSegment=function(e,t,r,n){var i=this;if(this.state===Ka){this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&(delete t.audio,t.audiovideo&&this.logMuxedErr(r));var a=t.audio,s=t.video,o=t.audiovideo;if(a){var l=e.audioCodec,u=re(a.codec,l);"mp4a"===u&&(u="mp4a.40.5");var d=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){u&&(u=-1!==u.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5");var c=a.metadata;c&&"channelCount"in c&&1!==(c.channelCount||1)&&-1===d.indexOf("firefox")&&(u="mp4a.40.5")}u&&-1!==u.indexOf("mp4a.40.5")&&-1!==d.indexOf("android")&&"audio/mpeg"!==a.container&&this.log("Android: force audio codec to "+(u="mp4a.40.2")),l&&l!==u&&this.log('Swapping manifest audio codec "'+l+'" for "'+u+'"'),a.levelCodec=u,a.id=oi,this.log("Init audio buffer, container:"+a.container+", codecs[selected/level/parsed]=["+(u||"")+"/"+(l||"")+"/"+a.codec+"]"),delete t.audiovideo}if(s){s.levelCodec=e.videoCodec,s.id=oi;var h=s.codec;if(4===(null==h?void 0:h.length))switch(h){case"hvc1":case"hev1":s.codec="hvc1.1.6.L120.90";break;case"av01":s.codec="av01.0.04M.08";break;case"avc1":s.codec="avc1.42e01e"}this.log("Init video buffer, container:"+s.container+", codecs[level/parsed]=["+(e.videoCodec||"")+"/"+h+"]"+(s.codec!==h?" parsed-corrected="+s.codec:"")+(s.supplemental?" supplemental="+s.supplemental:"")),delete t.audiovideo}o&&(this.log("Init audiovideo buffer, container:"+o.container+", codecs[level/parsed]=["+e.codecs+"/"+o.codec+"]"),delete t.video,delete t.audio);var f=Object.keys(t);if(f.length){if(this.hls.trigger(ri.BUFFER_CODECS,t),!this.hls)return;f.forEach((function(e){var a=t[e].initSegment;null!=a&&a.byteLength&&i.hls.trigger(ri.BUFFER_APPENDING,{type:e,data:a,frag:r,part:null,chunkMeta:n,parent:r.type})}))}this.tickImmediate()}},r.getMainFwdBufferInfo=function(){return this.getFwdBufferInfo(this.mediaBuffer&&2===this.altAudio?this.mediaBuffer:this.media,oi)},r.backtrack=function(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=Ha},r.checkFragmentChanged=function(){var e=this.media,t=null;if(e&&e.readyState>1&&!1===e.seeking){var r=e.currentTime;if(_a.isBuffered(e,r)?t=this.getAppendedFrag(r):_a.isBuffered(e,r+.1)&&(t=this.getAppendedFrag(r+.1)),t){this.backtrackFragment=null;var n=this.fragPlaying,i=t.level;n&&t.sn===n.sn&&n.level===i||(this.fragPlaying=t,this.hls.trigger(ri.FRAG_CHANGED,{frag:t}),n&&n.level===i||this.hls.trigger(ri.LEVEL_SWITCHED,{level:i}))}}},c(t,[{key:"hasEnoughToStart",get:function(){return this._hasEnoughToStart}},{key:"maxBufferLength",get:function(){var e=this.levels,t=null==e?void 0:e[this.level];return t?this.getMaxBufferLength(t.maxBitrate):this.config.maxBufferLength}},{key:"nextLevel",get:function(){var e=this.nextBufferedFrag;return e?e.level:-1}},{key:"currentFrag",get:function(){var e;if(this.fragPlaying)return this.fragPlaying;var t=(null==(e=this.media)?void 0:e.currentTime)||this.lastCurrentTime;return Xn(t)?this.getAppendedFrag(t):null}},{key:"currentProgramDateTime",get:function(){var e,t=(null==(e=this.media)?void 0:e.currentTime)||this.lastCurrentTime;if(Xn(t)){var r=this.getLevelDetails(),n=this.currentFrag||(r?Te(null,r.fragments,t):null);if(n){var i=n.programDateTime;if(null!==i)return new Date(i+1e3*(t-n.start))}}return null}},{key:"currentLevel",get:function(){var e=this.currentFrag;return e?e.level:-1}},{key:"nextBufferedFrag",get:function(){var e=this.currentFrag;return e?this.followingBufferedFrag(e):null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),t}(Za),pl=function(e){function t(t,r){var n;return(n=e.call(this,"key-loader",r)||this).config=void 0,n.keyIdToKeyInfo={},n.emeController=null,n.config=t,n}u(t,e);var r=t.prototype;return r.abort=function(e){for(var t in this.keyIdToKeyInfo){var r=this.keyIdToKeyInfo[t].loader;if(r){var n;if(e&&e!==(null==(n=r.context)?void 0:n.frag.type))return;r.abort()}}},r.detach=function(){for(var e in this.keyIdToKeyInfo){var t=this.keyIdToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyIdToKeyInfo[e]}},r.destroy=function(){for(var e in this.detach(),this.keyIdToKeyInfo){var t=this.keyIdToKeyInfo[e].loader;t&&t.destroy()}this.keyIdToKeyInfo={}},r.createKeyLoadError=function(e,t,r,n,i){return void 0===t&&(t=ti.KEY_LOAD_ERROR),new fa({type:ei.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:i,error:r,networkDetails:n})},r.loadClear=function(e,t,r){var n=this;if(this.emeController&&this.config.emeEnabled&&!this.emeController.getSelectedKeySystemFormats().length){if(t.length)for(var i=function(i,a){var s=t[i];if(e.cc<=s.cc&&(!k(e)||!k(s)||e.sn<s.sn)||!r&&i==a-1)return{v:n.emeController.selectKeySystemFormat(s).then((function(e){if(n.emeController){s.setKeyFormat(e);var t=$e(e);return t?n.emeController.getKeySystemAccess([t]):void 0}}))}},a=0,s=t.length;a<s;a++){var o=i(a,s);if("object"==typeof o)return o.v}if(this.config.requireKeySystemAccessOnStart){var l=tt(this.config);if(l.length)return this.emeController.getKeySystemAccess(l)}}return null},r.load=function(e){var t=this;return!e.decryptdata&&e.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(e).then((function(r){return t.loadInternal(e,r)})):this.loadInternal(e)},r.loadInternal=function(e,t){var r,n;t&&e.setKeyFormat(t);var i=e.decryptdata;if(!i){var a=new Error(t?"Expected frag.decryptdata to be defined after setting format "+t:"Missing decryption data on fragment in onKeyLoading (emeEnabled with controller: "+(this.emeController&&this.config.emeEnabled)+")");return Promise.reject(this.createKeyLoadError(e,ti.KEY_LOAD_ERROR,a))}var s=i.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,ti.KEY_LOAD_ERROR,new Error('Invalid key URI: "'+s+'"')));var o=Gn(i),l=this.keyIdToKeyInfo[o];if(null!=(r=l)&&r.decryptdata.key)return i.key=l.decryptdata.key,Promise.resolve({frag:e,keyInfo:l});if(this.emeController&&null!=(n=l)&&n.keyLoadPromise)switch(this.emeController.getKeyStatus(l.decryptdata)){case"usable":case"usable-in-future":return l.keyLoadPromise.then((function(t){var r=t.keyInfo;return i.key=r.decryptdata.key,{frag:e,keyInfo:r}}))}switch(this.log((this.keyIdToKeyInfo[o]?"Rel":"L")+"oading"+(i.keyId?" keyId: "+b(i.keyId):"")+" URI: "+i.uri+" from "+e.type+" "+e.level),l=this.keyIdToKeyInfo[o]={decryptdata:i,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},i.method){case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return"identity"===i.keyFormat?this.loadKeyHTTP(l,e):this.loadKeyEME(l,e);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(l,e);default:return Promise.reject(this.createKeyLoadError(e,ti.KEY_LOAD_ERROR,new Error('Key supplied with unsupported METHOD: "'+i.method+'"')))}},r.loadKeyEME=function(e,t){var r={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){var n;if(!e.decryptdata.keyId&&null!=(n=t.initSegment)&&n.data){var i=function(e){var t=[];return j(e,(function(e){return t.push(e.subarray(8,24))})),t}(t.initSegment.data);if(i.length){var a=i[0];a.some((function(e){return 0!==e}))?(this.log("Using keyId found in init segment "+b(a)),Ca.setKeyIdForUri(e.decryptdata.uri,a)):(a=Ca.addKeyIdForUri(e.decryptdata.uri),this.log("Generating keyId to patch media "+b(a))),e.decryptdata.keyId=a}}if(!e.decryptdata.keyId&&!k(t))return Promise.resolve(r);var s=this.emeController.loadKey(r);return(e.keyLoadPromise=s.then((function(t){return e.mediaKeySessionContext=t,r}))).catch((function(r){throw e.keyLoadPromise=null,"data"in r&&(r.data.frag=t),r}))}return Promise.resolve(r)},r.loadKeyHTTP=function(e,t){var r=this,n=this.config,i=new(0,n.loader)(n);return t.keyLoader=e.loader=i,e.keyLoadPromise=new Promise((function(a,s){var o={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},l=n.keyLoadPolicy.default;i.load(o,{loadPolicy:l,timeout:l.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},{onSuccess:function(e,t,n,i){var o=n.frag,l=n.keyInfo,u=Gn(l.decryptdata);if(!o.decryptdata||l!==r.keyIdToKeyInfo[u])return s(r.createKeyLoadError(o,ti.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),i));l.decryptdata.key=o.decryptdata.key=new Uint8Array(e.data),o.keyLoader=null,l.loader=null,a({frag:o,keyInfo:l})},onError:function(e,n,i){r.resetLoader(n),s(r.createKeyLoadError(t,ti.KEY_LOAD_ERROR,new Error("HTTP Error "+e.code+" loading key "+e.text),i,p({url:o.url,data:void 0},e)))},onTimeout:function(e,n,i){r.resetLoader(n),s(r.createKeyLoadError(t,ti.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),i))},onAbort:function(e,n,i){r.resetLoader(n),s(r.createKeyLoadError(t,ti.INTERNAL_ABORTED,new Error("key loading aborted"),i))}})}))},r.resetLoader=function(e){var t=e.frag,r=e.keyInfo,n=e.url,i=r.loader;t.keyLoader===i&&(t.keyLoader=null,r.loader=null);var a=Gn(r.decryptdata)||n;delete this.keyIdToKeyInfo[a],i&&i.destroy()},t}(hi),gl=function(){function e(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=e,this.registerListeners()}var t=e.prototype;return t.startLoad=function(){},t.stopLoad=function(){this.destroyInternalLoaders()},t.registerListeners=function(){var e=this.hls;e.on(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ri.LEVEL_LOADING,this.onLevelLoading,this),e.on(ri.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(ri.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.on(ri.LEVELS_UPDATED,this.onLevelsUpdated,this)},t.unregisterListeners=function(){var e=this.hls;e.off(ri.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ri.LEVEL_LOADING,this.onLevelLoading,this),e.off(ri.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(ri.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.off(ri.LEVELS_UPDATED,this.onLevelsUpdated,this)},t.createInternalLoader=function(e){var t=this.hls.config,r=new(t.pLoader||t.loader)(t);return this.loaders[e.type]=r,r},t.getInternalLoader=function(e){return this.loaders[e.type]},t.resetInternalLoader=function(e){this.loaders[e]&&delete this.loaders[e]},t.destroyInternalLoaders=function(){for(var e in this.loaders){var t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}},t.destroy=function(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()},t.onManifestLoading=function(e,t){var r=t.url;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:ni,url:r,deliveryDirectives:null,levelOrTrack:null})},t.onLevelLoading=function(e,t){this.load({id:t.id,level:t.level,pathwayId:t.pathwayId,responseType:"text",type:ii,url:t.url,deliveryDirectives:t.deliveryDirectives,levelOrTrack:t.levelInfo})},t.onAudioTrackLoading=function(e,t){this.load({id:t.id,groupId:t.groupId,level:null,responseType:"text",type:ai,url:t.url,deliveryDirectives:t.deliveryDirectives,levelOrTrack:t.track})},t.onSubtitleTrackLoading=function(e,t){this.load({id:t.id,groupId:t.groupId,level:null,responseType:"text",type:si,url:t.url,deliveryDirectives:t.deliveryDirectives,levelOrTrack:t.track})},t.onLevelsUpdated=function(e,t){var r=this.loaders[ii];if(r){var n=r.context;n&&!t.levels.some((function(e){return e===n.levelOrTrack}))&&(r.abort(),delete this.loaders[ii])}},t.load=function(e){var t,r,n,i=this,a=this.hls.config,s=this.getInternalLoader(e);if(s){var o=this.hls.logger,l=s.context;if(l&&l.levelOrTrack===e.levelOrTrack&&(l.url===e.url||l.deliveryDirectives&&!e.deliveryDirectives))return void o.log(l.url===e.url?"[playlist-loader]: ignore "+e.url+" ongoing request":"[playlist-loader]: ignore "+e.url+" in favor of "+l.url);o.log("[playlist-loader]: aborting previous loader for type: "+e.type),s.abort()}if((r=e.type===ni?a.manifestLoadPolicy.default:f({},a.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),s=this.createInternalLoader(e),Xn(null==(t=e.deliveryDirectives)?void 0:t.part))&&(e.type===ii&&null!==e.level?n=this.hls.levels[e.level].details:e.type===ai&&null!==e.id?n=this.hls.audioTracks[e.id].details:e.type===si&&null!==e.id&&(n=this.hls.subtitleTracks[e.id].details),n)){var u=n.partTarget,d=n.targetduration;if(u&&d){var c=1e3*Math.max(3*u,.8*d);r=f({},r,{maxTimeToFirstByteMs:Math.min(c,r.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(c,r.maxTimeToFirstByteMs)})}}var h=r.errorRetry||r.timeoutRetry||{};s.load(e,{loadPolicy:r,timeout:r.maxLoadTimeMs,maxRetry:h.maxNumRetry||0,retryDelay:h.retryDelayMs||0,maxRetryDelay:h.maxRetryDelayMs||0},{onSuccess:function(e,t,r,n){var a=i.getInternalLoader(r);i.resetInternalLoader(r.type);var s=e.data;t.parsing.start=performance.now(),Na.isMediaPlaylist(s)||r.type!==ni?i.handleTrackOrLevelPlaylist(e,t,r,n||null,a):i.handleMasterPlaylist(e,t,r,n)},onError:function(e,t,r,n){i.handleNetworkError(t,r,!1,e,n)},onTimeout:function(e,t,r){i.handleNetworkError(t,r,!0,void 0,e)}})},t.checkAutostartLoad=function(){if(this.hls){var e=this.hls,t=e.config,r=t.autoStartLoad,n=t.startPosition;(r||e.forceStartLoad)&&(this.hls.logger.log((r?"auto":"force")+" startLoad with configured startPosition "+n),this.hls.startLoad(n))}},t.handleMasterPlaylist=function(e,t,r,n){var i=this,a=this.hls,s=e.data,o=Kn(e,r),l=Na.parseMasterPlaylist(s,o);if(l.playlistParsingError)return t.parsing.end=performance.now(),void this.handleManifestParsingError(e,r,l.playlistParsingError,n,t);var u=l.contentSteering,d=l.levels,c=l.sessionData,h=l.sessionKeys,f=l.startTimeOffset,m=l.variableList;this.variableList=m,d.forEach((function(e){var t=e.unknownCodecs;if(t)for(var r=i.hls.config.preferManagedMediaSource,n=e.audioCodec,a=e.videoCodec,s=t.length;s--;){var o=t[s];Q(o,"audio",r)?(e.audioCodec=n=n?n+","+o:o,Ii.audio[n.substring(0,4)]=2,t.splice(s,1)):Q(o,"video",r)&&(e.videoCodec=a=a?a+","+o:o,Ii.video[a.substring(0,4)]=2,t.splice(s,1))}}));var p=Na.parseMasterPlaylistMedia(s,o,l),g=p.AUDIO,_=void 0===g?[]:g,v=p.SUBTITLES,y=p["CLOSED-CAPTIONS"];_.length&&(_.some((function(e){return!e.url}))||!d[0].audioCodec||d[0].attrs.AUDIO||(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),_.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new ba({}),bitrate:0,url:""})));a.trigger(ri.MANIFEST_LOADED,{levels:d,audioTracks:_,subtitles:v,captions:y,contentSteering:u,url:o,stats:t,networkDetails:n,sessionData:c,sessionKeys:h,startTimeOffset:f,variableList:m})},t.handleTrackOrLevelPlaylist=function(e,t,r,n,i){var a=this.hls,s=r.id,o=r.level,l=r.type,u=Kn(e,r),d=Xn(o)?o:Xn(s)?s:0,c=Vn(r),h=Na.parseLevelPlaylist(e.data,u,d,c,0,this.variableList);if(l===ni){var f={attrs:new ba({}),bitrate:0,details:h,name:"",url:u};h.requestScheduled=t.loading.start+bt(h,0),a.trigger(ri.MANIFEST_LOADED,{levels:[f],audioTracks:[],url:u,stats:t,networkDetails:n,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),r.levelDetails=h,this.handlePlaylistLoaded(h,e,t,r,n,i)},t.handleManifestParsingError=function(e,t,r,n,i){this.hls.trigger(ri.ERROR,{type:ei.NETWORK_ERROR,details:ti.MANIFEST_PARSING_ERROR,fatal:t.type===ni,url:e.url,err:r,error:r,reason:r.message,response:e,context:t,networkDetails:n,stats:i})},t.handleNetworkError=function(e,t,r,n,i){void 0===r&&(r=!1);var a="A network "+(r?"timeout":"error"+(n?" (status "+n.code+")":""))+" occurred while loading "+e.type;e.type===ii?a+=": "+e.level+" id: "+e.id:e.type!==ai&&e.type!==si||(a+=" id: "+e.id+' group-id: "'+e.groupId+'"');var s=new Error(a);this.hls.logger.warn("[playlist-loader]: "+a);var o=ti.UNKNOWN,l=!1,u=this.getInternalLoader(e);switch(e.type){case ni:o=r?ti.MANIFEST_LOAD_TIMEOUT:ti.MANIFEST_LOAD_ERROR,l=!0;break;case ii:o=r?ti.LEVEL_LOAD_TIMEOUT:ti.LEVEL_LOAD_ERROR,l=!1;break;case ai:o=r?ti.AUDIO_TRACK_LOAD_TIMEOUT:ti.AUDIO_TRACK_LOAD_ERROR,l=!1;break;case si:o=r?ti.SUBTITLE_TRACK_LOAD_TIMEOUT:ti.SUBTITLE_LOAD_ERROR,l=!1}u&&this.resetInternalLoader(e.type);var d={type:ei.NETWORK_ERROR,details:o,fatal:l,url:e.url,loader:u,context:e,error:s,networkDetails:t,stats:i};n&&(d.response=p({url:(null==t?void 0:t.url)||e.url,data:void 0},n));this.hls.trigger(ri.ERROR,d)},t.handlePlaylistLoaded=function(e,t,r,n,i,a){var s=this.hls,o=n.type,l=n.level,u=n.levelOrTrack,d=n.id,c=n.groupId,h=n.deliveryDirectives,f=Kn(t,n),m=Vn(n),p="number"==typeof n.level&&m===oi?l:void 0,g=e.playlistParsingError;if(g){if(this.hls.logger.warn(g+" "+e.url),!s.config.ignorePlaylistParsingErrors)return void s.trigger(ri.ERROR,{type:ei.NETWORK_ERROR,details:ti.LEVEL_PARSING_ERROR,fatal:!1,url:f,error:g,reason:g.message,response:t,context:n,level:p,parent:m,networkDetails:i,stats:r});e.playlistParsingError=null}if(e.fragments.length)switch(e.live&&a&&(a.getCacheAge&&(e.ageHeader=a.getCacheAge()||0),a.getCacheAge&&!isNaN(e.ageHeader)||(e.ageHeader=0)),o){case ni:case ii:if(p)if(u){if(u!==s.levels[p]){var _=s.levels.indexOf(u);_>-1&&(p=_)}}else p=0;s.trigger(ri.LEVEL_LOADED,{details:e,levelInfo:u||s.levels[0],level:p||0,id:d||0,stats:r,networkDetails:i,deliveryDirectives:h,withoutMultiVariant:o===ni});break;case ai:s.trigger(ri.AUDIO_TRACK_LOADED,{details:e,track:u,id:d||0,groupId:c||"",stats:r,networkDetails:i,deliveryDirectives:h});break;case si:s.trigger(ri.SUBTITLE_TRACK_LOADED,{details:e,track:u,id:d||0,groupId:c||"",stats:r,networkDetails:i,deliveryDirectives:h})}else{var v=e.playlistParsingError=new Error("No Segments found in Playlist");s.trigger(ri.ERROR,{type:ei.NETWORK_ERROR,details:ti.LEVEL_EMPTY_ERROR,fatal:!1,url:f,error:v,reason:v.message,response:t,context:n,level:p,parent:m,networkDetails:i,stats:r})}},e}(),_l=function(){function e(t){void 0===t&&(t={}),this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new ts,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._url=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;var r=this.logger=function(e,t,r){var n=g();if("object"==typeof console&&!0===e||"object"==typeof e){var i=["debug","log","info","warn","error"];i.forEach((function(t){n[t]=_(t,e,r)}));try{n.log('Debug logs enabled for "'+t+'" in hls.js version 1.6.16')}catch(e){return g()}i.forEach((function(t){pi[t]=_(t,e)}))}else f(pi,n);return n}(t.debug||!1,"Hls instance",t.assetPlayerId),n=this.config=function(e,t,r){if((t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(void 0!==t.liveMaxLatencyDurationCount&&(void 0===t.liveSyncDurationCount||t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(void 0!==t.liveMaxLatencyDuration&&(void 0===t.liveSyncDuration||t.liveMaxLatencyDuration<=t.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');var n=Pn(e),i=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return["manifest","level","frag"].forEach((function(e){var a=("level"===e?"playlist":e)+"LoadPolicy",s=void 0===t[a],o=[];i.forEach((function(r){var i=e+"Loading"+r,l=t[i];if(void 0!==l&&s){o.push(i);var u=n[a].default;switch(t[a]={default:u},r){case"TimeOut":u.maxLoadTimeMs=l,u.maxTimeToFirstByteMs=l;break;case"MaxRetry":u.errorRetry.maxNumRetry=l,u.timeoutRetry.maxNumRetry=l;break;case"RetryDelay":u.errorRetry.retryDelayMs=l,u.timeoutRetry.retryDelayMs=l;break;case"MaxRetryTimeout":u.errorRetry.maxRetryDelayMs=l,u.timeoutRetry.maxRetryDelayMs=l}}})),o.length&&r.warn('hls.js config: "'+o.join('", "')+'" setting(s) are deprecated, use "'+a+'": '+Bi(t[a]))})),p(p({},n),t)}(e.DefaultConfig,t,r);this.userConfig=t,n.progressive&&On(n,r);var i=n.abrController,a=n.bufferController,s=n.capLevelController,o=n.fpsController,l=new(0,n.errorController)(this),u=this.abrController=new i(this),d=new ia(this),c=n.interstitialsController,h=c?this.interstitialsController=new c(this,e):null,m=this.bufferController=new a(this,d),v=this.capLevelController=new s(this),y=new o(this),L=new gl(this),b=n.contentSteeringController,T=b?new b(this):null,M=this.levelController=new fl(this,T),k=new cl(this),S=new pl(this.config,this.logger),w=this.streamController=new ml(this,d,S),D=this.gapController=new ul(this,d);v.setStreamController(w),y.setStreamController(w);var E=[L,M,w];h&&E.splice(1,0,h),T&&E.splice(1,0,T),this.networkControllers=E;var A=[u,m,D,v,y,k,d];this.audioTrackController=this.createController(n.audioTrackController,E);var I=n.audioStreamController;I&&E.push(this.audioStreamController=new I(this,d,S)),this.subtitleTrackController=this.createController(n.subtitleTrackController,E);var x=n.subtitleStreamController;x&&E.push(this.subtititleStreamController=new x(this,d,S)),this.createController(n.timelineController,A),S.emeController=this.emeController=this.createController(n.emeController,A),this.cmcdController=this.createController(n.cmcdController,A),this.latencyController=this.createController(hl,A),this.coreComponents=A,E.push(l);var C=l.onErrorOut;"function"==typeof C&&this.on(ri.ERROR,C,l),this.on(ri.MANIFEST_LOADED,L.onManifestLoaded,L)}e.isMSESupported=function(){return Wn()},e.isSupported=function(){return function(){if(!Wn())return!1;var e=v();
vendor: 5,149 bytes, line 1
1return"function"==typeof(null==e?void 0:e.isTypeSupported)&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some((function(t){return e.isTypeSupported(Z(t,"video"))}))||["mp4a.40.2","fLaC"].some((function(t){return e.isTypeSupported(Z(t,"audio"))})))}()},e.getMediaSource=function(){return v()},c(e,null,[{key:"version",get:function(){return"1.6.16"}},{key:"Events",get:function(){return ri}},{key:"MetadataSchema",get:function(){return ns}},{key:"ErrorTypes",get:function(){return ei}},{key:"ErrorDetails",get:function(){return ti}},{key:"DefaultConfig",get:function(){return e.defaultConfig?e.defaultConfig:ll},set:function(t){e.defaultConfig=t}}]);var t=e.prototype;return t.createController=function(e,t){if(e){var r=new e(this);return t&&t.push(r),r}return null},t.on=function(e,t,r){void 0===r&&(r=this),this._emitter.on(e,t,r)},t.once=function(e,t,r){void 0===r&&(r=this),this._emitter.once(e,t,r)},t.removeAllListeners=function(e){this._emitter.removeAllListeners(e)},t.off=function(e,t,r,n){void 0===r&&(r=this),this._emitter.off(e,t,r,n)},t.listeners=function(e){return this._emitter.listeners(e)},t.emit=function(e,t,r){return this._emitter.emit(e,t,r)},t.trigger=function(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(t){if(this.logger.error("An internal error happened while handling event "+e+'. Error message: "'+t.message+'". Here is a stacktrace:',t),!this.triggeringException)this.triggeringException=!0,this.trigger(ri.ERROR,{type:ei.OTHER_ERROR,details:ti.INTERNAL_EXCEPTION,fatal:e===ri.ERROR,event:e,error:t}),this.triggeringException=!1}return!1},t.listenerCount=function(e){return this._emitter.listenerCount(e)},t.destroy=function(){this.logger.log("destroy"),this.trigger(ri.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach((function(e){return e.destroy()})),this.networkControllers.length=0,this.coreComponents.forEach((function(e){return e.destroy()})),this.coreComponents.length=0;var e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null},t.attachMedia=function(e){if(!e||"media"in e&&!e.media){var t=new Error("attachMedia failed: invalid argument ("+e+")");this.trigger(ri.ERROR,{type:ei.OTHER_ERROR,details:ti.ATTACH_MEDIA_ERROR,fatal:!0,error:t})}else{this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());var r="media"in e,n=r?e.media:e,i=r?e:{media:n};this._media=n,this.trigger(ri.MEDIA_ATTACHING,i)}},t.detachMedia=function(){this.logger.log("detachMedia"),this.trigger(ri.MEDIA_DETACHING,{}),this._media=null},t.transferMedia=function(){this._media=null;var e=this.bufferController.transferMedia();return this.trigger(ri.MEDIA_DETACHING,{transferMedia:e}),e},t.loadSource=function(e){this.stopLoad();var t=this.media,r=this._url,n=this._url=vi.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log("loadSource:"+n),t&&r&&(r!==n||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(ri.MANIFEST_LOADING,{url:e})},t.startLoad=function(e,t){void 0===e&&(e=-1),this.logger.log("startLoad("+e+(t?", <skip seek to start>":"")+")"),this.started=!0,this.resumeBuffering();for(var r=0;r<this.networkControllers.length&&(this.networkControllers[r].startLoad(e,t),this.started&&this.networkControllers);r++);},t.stopLoad=function(){this.logger.log("stopLoad"),this.started=!1;for(var e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!this.started&&this.networkControllers);e++);},t.resumeBuffering=function(){this.bufferingEnabled||(this.logger.log("resume buffering"),this.networkControllers.forEach((function(e){e.resumeBuffering&&e.resumeBuffering()})))},t.pauseBuffering=function(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach((function(e){e.pauseBuffering&&e.pauseBuffering()})))},t.swapAudioCodec=function(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},t.recoverMediaError=function(){this.logger.log("recoverMediaError");var e=this._media,t=null==e?void 0:e.currentTime;this.detachMedia(),e&&(this.attachMedia(e),t&&this.startLoad(t))},t.removeLevel=function(e){this.levelController.removeLevel(e)},t.setAudioOption=function(e){var t;return(null==(t=this.audioTrackController)?void 0:t.setAudioOption(e))||null},t.setSubtitleOption=function(e){var t;return(null==(t=this.subtitleTrackController)?void 0:t.setSubtitleOption(e))||null},t.getMediaDecodingInfo=function(e,t){return void 0===t&&(t=this.allAudioTracks),le(e,pe(t),navigator.mediaCapabilities)},c(e,[{key:"url",get:function(){return this._url}},{key:"hasEnoughToStart",get:function(){return this.streamController.hasEnoughToStart}},{key:"startPosition",get:function(){return this.streamController.startPositionValue}},{key:"loadingEnabled",get:function(){return this.started}},{key:"bufferingEnabled",get:function(){return this.streamController.bufferingEnabled}},{key:"inFlightFragments",get:function(){var e,t=((e={}
vendor: 5,207 bytes, line 1
1)[oi]=this.streamController.inFlightFrag,e);return this.audioStreamController&&(t[li]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(t[ui]=this.subtititleStreamController.inFlightFrag),t}},{key:"sessionId",get:function(){var e=this._sessionId;return e||(e=this._sessionId=function(){try{return crypto.randomUUID()}catch(n){try{var e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.slice(t.lastIndexOf("/")+1)}catch(e){var r=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=(r+16*Math.random())%16|0;return r=Math.floor(r/16),("x"==e?t:3&t|8).toString(16)}))}}}()),e}},{key:"levels",get:function(){var e=this.levelController.levels;return e||[]}},{key:"latestLevelDetails",get:function(){return this.streamController.getLevelDetails()||null}},{key:"loadLevelObj",get:function(){return this.levelController.loadLevelObj}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(e){this.logger.log("set currentLevel:"+e),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(e){this.logger.log("set nextLevel:"+e),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(e){this.logger.log("set loadLevel:"+e),this.levelController.manualLevel=e}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(e){this.levelController.nextLoadLevel=e}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(e){this.logger.log("set firstLevel:"+e),this.levelController.firstLevel=e}},{key:"startLevel",get:function(){var e=this.levelController.startLevel;return-1===e&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e},set:function(e){this.logger.log("set startLevel:"+e),-1!==e&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(e){var t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(e){this._autoLevelCapping!==e&&(this.logger.log("set autoLevelCapping:"+e),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}},{key:"bandwidthEstimate",get:function(){var e=this.abrController.bwEstimator;return e?e.getEstimate():NaN},set:function(e){this.abrController.resetEstimator(e)}},{key:"abrEwmaDefaultEstimate",get:function(){var e=this.abrController.bwEstimator;return e?e.defaultEstimate:NaN}},{key:"ttfbEstimate",get:function(){var e=this.abrController.bwEstimator;return e?e.getEstimateTTFB():NaN}},{key:"maxHdcpLevel",get:function(){return this._maxHdcpLevel},set:function(e){(function(e){return Oi.indexOf(e)>-1})(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}},{key:"autoLevelEnabled",get:function(){return-1===this.levelController.manualLevel}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var e=this.levels,t=this.config.minAutoBitrate;if(!e)return 0;for(var r=e.length,n=0;n<r;n++)if(e[n].maxBitrate>=t)return n;return 0}},{key:"maxAutoLevel",get:function(){var e,t=this.levels,r=this.autoLevelCapping,n=this.maxHdcpLevel;if(e=-1===r&&null!=t&&t.length?t.length-1:r,n)for(var i=e;i--;){var a=t[i].attrs["HDCP-LEVEL"];if(a&&a<=n)return i}return e}},{key:"firstAutoLevel",get:function(){return this.abrController.firstAutoLevel}},{key:"nextAutoLevel",get:function(){return this.abrController.nextAutoLevel},set:function(e){this.abrController.nextAutoLevel=e}},{key:"playingDate",get:function(){return this.streamController.currentProgramDateTime}},{key:"mainForwardBufferInfo",get:function(){return this.streamController.getMainFwdBufferInfo()}},{key:"maxBufferLength",get:function(){return this.streamController.maxBufferLength}},{key:"allAudioTracks",get:function(){var e=this.audioTrackController;return e?e.allAudioTracks:[]}},{key:"audioTracks",get:function(){var e=this.audioTrackController;return e?e.audioTracks:[]}},{key:"audioTrack",get:function(){var e=this.audioTrackController;return e?e.audioTrack:-1},set:function(e){var t=this.audioTrackController;t&&(t.audioTrack=e)}},{key:"allSubtitleTracks",get:function(){var e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}},{key:"subtitleTracks",get:function(){var e=this.subtitleTrackController;return e?e.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var e=this.subtitleTrackController;return e?e.subtitleTrack:-1},set:function(e){var t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var e=this.subtitleTrackController;return!!e&&e.subtitleDisplay}
1,set:function(e){var t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(e){this.config.lowLatencyMode=e}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency},set:function(e){this.latencyController.targetLatency=e}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}},{key:"pathways",get:function(){return this.levelController.pathways}},{key:"pathwayPriority",get:function(){return this.levelController.pathwayPriority},set:function(e){this.levelController.pathwayPriority=e}},{key:"bufferedToEnd",get:function(){var e;return!(null==(e=this.bufferController)||!e.bufferedToEnd)}},{key:"interstitialsManager",get:function(){var e;return(null==(e=this.interstitialsController)?void 0:e.interstitialsManager)||null}}]),e}();_l.defaultConfig=void 0},j8dY:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};t.default=n.default.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%
1d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(i[e]||i[e%10]||i[e>=100?100:null])},week:{dow:1,doy:7}})},jAHx:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})},jQOB:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),a="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),s=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.default=n.default.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?a[e.month()]:i[e.month()]:i},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})},kvt3:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},a={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};t.default=n.default.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%
1d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return a[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return i[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})},l8WD:function(e,t,r){"use strict";function n(e,t){V.options.__h&&V.options.__h(W,e,K||t),K=0;var r=W.__H||(W.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function i(e){return K=1,a(y,e)}function a(e,t,r){var i=n(B++,2);return i.t=e,i.__c||(i.__c=W,i.__=[r?r(t):y(void 0,t),function(e){var t=i.t(i.__[0],e);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}))}]),i.__}function s(e,t){var r=n(B++,3);!V.options.__s&&v(r.__H,t)&&(r.__=e,r.__H=t,W.__H.__h.push(r))}function o(e,t){var r=n(B++,4);!V.options.__s&&v(r.__H,t)&&(r.__=e,r.__H=t,W.__h.push(r))}function l(e){return K=5,d((function(){return{current:e}}),[])}function u(e,t,r){K=6,o((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==r?r:r.concat(e))}function d(e,t){var r=n(B++,7);return v(r.__H,t)?(r.__H=t,r.__h=e,r.__=e()):r.__}function c(e,t){return K=8,d((function(){return e}),t)}function h(e){var t=W.context[e.__c],r=n(B++,9);return r.__c=e,t?(null==r.__&&(r.__=!0,t.sub(W)),t.props.value):e.__}function f(e,t){V.options.useDebugValue&&V.options.useDebugValue(t?t(e):e)}function m(e){var t=n(B++,10),r=i();return t.__=e,W.componentDidCatch||(W.componentDidCatch=function(e){t.__&&t.__(e),r[1](e)}),[r[0],function(){r[1](void 0)}]}function p(){z.some((function(e){if(e.__P)try{e.__H.__h.forEach(g),e.__H.__h.forEach(_),e.__H.__h=[]}catch(t){return e.__H.__h=[],V.options.__e(t,e.__v),!0}})),z=[]}function g(e){"function"==typeof e.u&&e.u()}function _(e){e.u=e.__()}function v(e,t){return!e||t.some((function(t,r){return t!==e[r]}))}function y(e,t){return"function"==typeof t?t(e):t}function L(e,t){for(var r in t)e[r]=t[r];return e}function b(e,t){for(var r in e)if("__source"!==r&&!(r in t))return!0;for(var n in t)if("__source"!==n&&e[n]!==t[n])return!0;return!1}function T(e){this.props=e}function M(e,t){function r(e){var r=this.props.ref,n=r==e.ref;return!n&&r&&(r.call?r(null):r.current=null),t?!t(this.props,e)||!n:b(this.props,e)}function n(t){return this.shouldComponentUpdate=r,Object(V.createElement)(e,t)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function k(e){function t(t,r){var n=L({},t);return delete n.ref,e(n,(r=t.ref||r)&&("object"!=typeof r||"current"in r)?r:null)}return t.$$typeof=ee,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function S(e){return e&&((e=L({},e)).__c=null,e.__k=e.__k&&e.__k.map(S)),e}function w(e){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(w)),e}function D(){this.__u=0,this.t=null,this.__b=null}function E(e){var t=e.__.__c;return t&&t.o&&t.o(e)}function A(e){function t(t){if(r||(r=e()).then((function(e){n=e.default||e}),(function(e){i=e})),i)throw i;if(!n)throw r;return Object(V.createElement)(n,t)}var r,n,i;return t.displayName="Lazy",t.__f=!0,t}function I(){this.u=null,this.i=null}function x(e){return this.getChildContext=function(){return e.context},e.children}function C(e){var t=this,r=e.l,n=Object(V.createElement)(x,{context:t.context},e.__v);t.componentWillUnmount=function(){var e=t.s.parentNode;e&&e.removeChild(t.s),Object(V.__u)(t.v)},t.l&&t.l!==r&&(t.componentWillUnmount(),t.h=!1),e.__v?t.h?(r.__k=t.__k,Object(V.render)(n,r),t.__k=r.__k):(t.s=document.createTextNode(""),t.__k=r.__k,Object(V.hydrate)("",r),r.appendChild(t.s),t.h=!0,t.l=r,Object(V.render)(n,r,t.s),r.__k=t.__k,t.__k=t.s.__k):t.h&&t.componentWillUnmount(),t.v=n}function R(e,t){return Object(V.createElement)(C,{__v:e,l:t})}function P(e,t,r){if(null==t.__k)for(;t.firstChild;)t.removeChild(t.firstChild);return Object(V.render)(e,t),"function"==typeof r&&r(),e?e.__c:null}function O(e,t,r){return Object(V.hydrate)(e,t),"function"==typeof r&&r(),e?e.__c:null}function Y(e,t){e["UNSAFE_"+t]&&!e[t]&&Object.defineProperty(e,t,{get:function(){return this["UNSAFE_"+t]}
1,set:function(e){this["UNSAFE_"+t]=e}})}function F(e){return V.createElement.bind(null,e)}function N(e){return!!e&&e.$$typeof===se}function j(e){return N(e)?V.cloneElement.apply(null,arguments):e}function U(e){return!!e.__k&&(Object(V.render)(null,e),!0)}function H(e){return e&&(e.base||1===e.nodeType&&e)||null}r.r(t),r.d(t,"useState",(function(){return i})),r.d(t,"useReducer",(function(){return a})),r.d(t,"useEffect",(function(){return s})),r.d(t,"useLayoutEffect",(function(){return o})),r.d(t,"useRef",(function(){return l})),r.d(t,"useImperativeHandle",(function(){return u})),r.d(t,"useMemo",(function(){return d})),r.d(t,"useCallback",(function(){return c})),r.d(t,"useContext",(function(){return h})),r.d(t,"useDebugValue",(function(){return f})),r.d(t,"useErrorBoundary",(function(){return m})),r.d(t,"createElement",(function(){return V.createElement})),r.d(t,"createContext",(function(){return V.createContext})),r.d(t,"createRef",(function(){return V.createRef})),r.d(t,"Fragment",(function(){return V.Fragment})),r.d(t,"Component",(function(){return V.Component})),r.d(t,"version",(function(){return fe})),r.d(t,"Children",(function(){return re})),r.d(t,"render",(function(){return P})),r.d(t,"hydrate",(function(){return O})),r.d(t,"unmountComponentAtNode",(function(){return U})),r.d(t,"createPortal",(function(){return R})),r.d(t,"createFactory",(function(){return F})),r.d(t,"cloneElement",(function(){return j})),r.d(t,"isValidElement",(function(){return N})),r.d(t,"findDOMNode",(function(){return H})),r.d(t,"PureComponent",(function(){return T})),r.d(t,"memo",(function(){return M})),r.d(t,"forwardRef",(function(){return k})),r.d(t,"unstable_batchedUpdates",(function(){return me})),r.d(t,"StrictMode",(function(){return pe})),r.d(t,"Suspense",(function(){return D})),r.d(t,"SuspenseList",(function(){return I})),r.d(t,"lazy",(function(){return A})),r.d(t,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(function(){return he}));var B,W,G,V=r("hosL"),K=0,z=[],q=V.options.__r,J=V.options.diffed,Q=V.options.__c,X=V.options.unmount;V.options.__r=function(e){q&&q(e),B=0;var t=(W=e.__c).__H;t&&(t.__h.forEach(g),t.__h.forEach(_),t.__h=[])},V.options.diffed=function(e){J&&J(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==z.push(t)&&G===V.options.requestAnimationFrame||((G=V.options.requestAnimationFrame)||function(e){var t,r=function(){clearTimeout(n),Z&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Z&&(t=requestAnimationFrame(r))})(p))},V.options.__c=function(e,t){t.some((function(e){try{e.__h.forEach(g),e.__h=e.__h.filter((function(e){return!e.__||_(e)}
1))}catch(r){t.some((function(e){e.__h&&(e.__h=[])})),t=[],V.options.__e(r,e.__v)}})),Q&&Q(e,t)},V.options.unmount=function(e){X&&X(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(g)}catch(e){V.options.__e(e,t.__v)}};var Z="function"==typeof requestAnimationFrame;(T.prototype=new V.Component).isPureReactComponent=!0,T.prototype.shouldComponentUpdate=function(e,t){return b(this.props,e)||b(this.state,t)};var $=V.options.__b;V.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),$&&$(e)};var ee="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,te=function(e,t){return e?Object(V.toChildArray)(Object(V.toChildArray)(e).map(t)):null},re={map:te,forEach:te,count:function(e){return e?Object(V.toChildArray)(e).length:0},only:function(e){var t=Object(V.toChildArray)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:V.toChildArray},ne=V.options.__e;V.options.__e=function(e,t,r){if(e.then)for(var n,i=t;i=i.__;)if((n=i.__c)&&n.__c)return null==t.__e&&(t.__e=r.__e,t.__k=r.__k),n.__c(e,t.__c);ne(e,t,r)},(D.prototype=new V.Component).__c=function(e,t){var r=this;null==r.t&&(r.t=[]),r.t.push(t);var n=E(r.__v),i=!1,a=function(){i||(i=!0,t.componentWillUnmount=t.__c,n?n(s):s())};t.__c=t.componentWillUnmount,t.componentWillUnmount=function(){a(),t.__c&&t.__c()};var s=function(){var e;if(!--r.__u)for(r.__v.__k[0]=w(r.state.o),r.setState({o:r.__b=null});e=r.t.pop();)e.forceUpdate()};r.__u++||r.setState({o:r.__b=r.__v.__k[0]}),e.then(a,a)},D.prototype.componentWillUnmount=function(){this.t=[]},D.prototype.render=function(e,t){return this.__b&&(this.__v.__k&&(this.__v.__k[0]=S(this.__b)),this.__b=null),[Object(V.createElement)(V.Fragment,null,t.o?null:e.children),t.o&&e.fallback]};var ie=function(e,t,r){if(++r[1]===r[0]&&e.i.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.i.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};(I.prototype=new V.Component).o=function(e){var t=this,r=E(t.__v),n=t.i.get(e);return n[0]++,function(i){var a=function(){t.props.revealOrder?(n.push(i),ie(t,e,n)):i()};r?r(a):a()}},I.prototype.render=function(e){this.u=null,this.i=new Map;var t=Object(V.toChildArray)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var r=t.length;r--;)this.i.set(t[r],this.u=[1,0,this.u]);return e.children},I.prototype.componentDidUpdate=I.prototype.componentDidMount=function(){var e=this;this.i.forEach((function(t,r){ie(e,r,t)}))};var ae=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/;V.Component.prototype.isReactComponent={};var se="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,oe=V.options.event;V.options.event=function(e){oe&&(e=oe(e)),e.persist=function(){};var t=!1,r=!1,n=e.stopPropagation;e.stopPropagation=function(){n.call(e),t=!0};var i=e.preventDefault;return e.preventDefault=function(){i.call(e),r=!0},e.isPropagationStopped=function(){return t},e.isDefaultPrevented=function(){return r},e.nativeEvent=e};var le,ue={configurable:!0,get:function(){return this.class}},de=V.options.vnode;V.options.vnode=function(e){e.$$typeof=se;var t=e.type,r=e.props;if(t){var n;if(r.class!=r.className&&(ue.enumerable="className"in r,null!=r.className&&(r.class=r.className),Object.defineProperty(r,"className",ue)),"function"!=typeof t)for(n in r.defaultValue&&void 0!==r.value&&(r.value||0===r.value||(r.value=r.defaultValue),r.defaultValue=void 0),"select"===t&&r.multiple&&Array.isArray(r.value)&&(Object(V.toChildArray)(r.children).forEach((function(e){-1!=r.value.indexOf(e.props.value)&&(e.props.selected=!0)})),r.value=void 0),!0===r.download&&(r.download=""),r){var i=ae.test(n);i&&(e.props[n.replace(/[A-Z0-9]/,"-$&").toLowerCase()]=r[n]),(i||null===r[n])&&(r[n]=void 0)}else t.prototype&&!t.prototype.p&&(t.prototype.p=!0,Y(t.prototype,"componentWillMount"),Y(t.prototype,"componentWillReceiveProps"),Y(t.prototype,"componentWillUpdate"));!function(){var t=e.type,r=e.props;if(r&&"string"==typeof t){var n={};for(var i in r)/^on(Ani|Tra|Tou)/.test(i)&&(r[i.toLowerCase()]=r[i],delete r[i]),n[i.toLowerCase()]=i;if(n.ondoubleclick&&(r.ondblclick=r[n.ondoubleclick],delete r[n.ondoubleclick]),n.onbeforeinput&&(r.onbeforeinput=r[n.onbeforeinput],delete r[n.onbeforeinput]),n.onchange&&("textarea"===t||"input"===t.toLowerCase()&&!/^fil|che|ra/i.test(r.type))){var a=n.oninput||"oninput";r[a]||(r[a]=r[n.onchange],delete r[n.onchange])}}}()}de&&de(e)};var ce=V.options.__r;V.options.__r=function(e){ce&&ce(e),le=e.__c};var he={ReactCurrentDispatcher:{current:{readContext:function(e){return le.__n[e.__c].props.value}}}},fe="16.8.0",me=function(e,t){return e(t)},pe=V.Fragment;t.default={useState:i,useReducer:a,useEffect:s,useLayoutEffect:o,useRef
1:l,useImperativeHandle:u,useMemo:d,useCallback:c,useContext:h,useDebugValue:f,version:"16.8.0",Children:re,render:P,hydrate:O,unmountComponentAtNode:U,createPortal:R,createElement:V.createElement,createContext:V.createContext,createFactory:F,cloneElement:j,createRef:V.createRef,Fragment:V.Fragment,isValidElement:N,findDOMNode:H,Component:V.Component,PureComponent:T,memo:M,forwardRef:k,unstable_batchedUpdates:me,StrictMode:V.Fragment,Suspense:D,SuspenseList:I,lazy:A,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:he}},lCFP:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,r){return e<12?r?"sa":"SA":r?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})},lKhH:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},a={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};t.default=n.default.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return a[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return i[e]}))}
vendor: 2,962 bytes, line 1
1,meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})},lZZk:function(e,t,r){"use strict";function n(e,t,r,n){var i=e+" ";switch(r){case"s":return t||n?"nekaj sekund":"nekaj sekundami";case"ss":return i+=1===e?t?"sekundo":"sekundi":2===e?t||n?"sekundi":"sekundah":e<5?t||n?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return i+=1===e?t?"minuta":"minuto":2===e?t||n?"minuti":"minutama":e<5?t||n?"minute":"minutami":t||n?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return i+=1===e?t?"ura":"uro":2===e?t||n?"uri":"urama":e<5?t||n?"ure":"urami":t||n?"ur":"urami";case"d":return t||n?"en dan":"enim dnem";case"dd":return i+=1===e?t||n?"dan":"dnem":2===e?t||n?"dni":"dnevoma":t||n?"dni":"dnevi";case"M":return t||n?"en mesec":"enim mesecem";case"MM":return i+=1===e?t||n?"mesec":"mesecem":2===e?t||n?"meseca":"mesecema":e<5?t||n?"mesece":"meseci":t||n?"mesecev":"meseci";case"y":return t||n?"eno leto":"enim letom";case"yy":return i+=1===e?t||n?"leto":"letom":2===e?t||n?"leti":"letoma":e<5?t||n?"leta":"leti":t||n?"let":"leti"}}r.r(t);var i=r("Q/DC");t.default=i.default.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})},lrVE:function(e,t,r){"use strict";function n(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function i(e,t,r){var i=e+" ";
1switch(r){case"ss":return i+(n(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return i+(n(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return i+(n(e)?"godziny":"godzin");case"MM":return i+(n(e)?"miesiące":"miesięcy");case"yy":return i+(n(e)?"lata":"lat")}}r.r(t);var a=r("Q/DC"),s="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),o="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");t.default=a.default.defineLocale("pl",{months:function(e,t){return e?""===t?"("+o[e.month()]+"|"+s[e.month()]+")":/D MMMM/.test(t)?o[e.month()]:s[e.month()]:s},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:i,m:i,mm:i,h:i,hh:i,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:i,y:"rok",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},mTJk:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})},mUFG:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},a={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};t.default=n.default.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return a[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return i[e]}))}
1,meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})},mdyV:function(e,t,r){"use strict";r.r(t);var n=r("hosL"),i=n.h,a=n.render,s=n.hydrate,o=function(e){return e&&e.default?e.default:e},l=function(e){return"/"===e[e.length-1]?e:e+"/"};if("function"==typeof o(r("QfWi"))){var u=document.getElementById("preact_root")||document.body.firstElementChild;0,function(){var e=o(r("QfWi")),t={},n=document.querySelector('[type="__PREACT_CLI_DATA__"]');n&&(t=JSON.parse(decodeURI(n.innerHTML)).preRenderData||t);var d={preRenderData:t},c=t.url?l(t.url):"",h=s&&c===l(location.pathname);u=(h?s:a)(i(e,{CLI_DATA:d}),document.body,u)}()}},meT2:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function i(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return f}));var d=r("hosL"),c=r("h2LZ"),h="undefined"!=typeof window?window:globalThis,f=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return u(s(t=e.call.apply(e,[this].concat(n))||this),"renderChild",(function(e,r){var n;return e.html?t.renderHTML(e.html,r):(null==(n=e.component)?void 0:n[0])&&e.component[0]==e.component[0].toUpperCase()?t.renderComponent({data:e,key:r}):t.render({data:e,key:r})})),u(s(t),"_setBaseRef",(function(e){t.base=e})),t}var r,a;a=e,(r=t).prototype=Object.create(a.prototype),r.prototype.constructor=r,r.__proto__=a;var o=t.prototype;return o.render=function(e){var t=e.data,r=e.key,n=void 0===r?0:r;if(Array.isArray(t))return t.map(this.renderChild);if(!t)return null;if(t.component&&h.PluginManager.consumer.getComponent(t.component))return this.renderComponent({data:t,key:n});if(t.style&&"string"==typeof t.style)try{t.style=t.style.split(";").filter((function(e){return e.split(":")[0]&&e.split(":")[1]})).map((function(e){return[e.split(":")[0].trim().replace(/-./g,(function(e){return e.substr(1).toUpperCase()})),e.split(":")[1].trim()]})).reduce((function(e,t){var r;return l(l({},e),{},((r={})[t[0]]=t[1],r))}),{})}catch(e){}return t.component||t.type?Object(d.h)(t.component||t.type,l(l({key:n,ref:this._setBaseRef},t),{},{children:void 0,text:void 0,html:void 0,component:void 0},{}),t.text||t.html&&this.renderHTML(t.html)||t.children&&t.children.map(this.renderChild)):null},o.componentDidMount=function(){var e,t,r=this;this.props.allProps&&this.props.allProps.data&&this.props.allProps.data.ssr||(null==(e=this.props.allProps)||null==(t=e.data)?void 0:t.filteredOptions)["web.allow_scripts"]&&(this._runScripts=setTimeout((function(){return r.runScripts()}),1))},o.componentWillUnmount=function(){clearTimeout(this._runScripts)},o.runScripts=function(){function e(t){if(!0===function(e){return"SCRIPT"===e.tagName}(t))t.parentNode.replaceChild(function(e){if(e.evaluated)return e;var t=document.createElement("script");t.text=e.innerHTML,t.evaluated=1;var r,n=-1,i=e.attributes;for(;++n<i.length;)t.setAttribute((r=i[n]).name,r.value);return t}(t),t);else for(var r=-1,n=t.childNodes;++r<n.length;)e(n[r]);return t}for(var t,r=i(this.base&&Array.from(this.base.querySelectorAll("script"))||[]);!(t=r()).done;){e(t.value)}},o.renderHTML=function(e,t){return Object(d.h)("div",{key:"html"+t,dangerouslySetInnerHTML:{__html:e}})},o.renderComponent=function(e){var t,r=e.data,i=e.key,a=void 0===i?0:i,s=this.props.allProps;s=n({originalBlockRef:r.originalBlockRef,originalContentId:r.originalContentId,themeOptions:h.themes&&h.themes.meta&&h.themes.meta.options||{},themeRenderOptions:null==(t=s.theme)?void 0:t.filteredOptions,className:r.className,key:a,globalOptions:s.data.filteredOptions,entry:s.data.entry},s);var o=h.PluginManager.consumer.getComponent(r.component),l=n({},r,{component:void 0,class:void 0,className:void 0,children:void 0,content:void 0});if(o)return r.children?Object(d.h)(o,n({key:a},l,s,r.options),Array.isArray(r.children)?r.children.map(this.renderChild):this.renderChild(r.children)):Object(d.h)(o,n({key:a},l,s,r.options));switch(r.component){case"Player":return null;case"Contact":return Object(d.h)(c.a,n({key:a},r,s))}return null},t}(d.Component)},n4Ja:function(e,t,r){"use strict";function n(e,t,r){return r?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function i(e,t,r){return e+" "+n(o[r],e,t)}function a(e,t,r){return n(o[r],e,t)}r.r(t);var s=r("Q/DC"),o={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_die
1nām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};t.default=s.default.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:i,m:a,mm:i,h:a,hh:i,d:a,dd:i,M:a,MM:i,y:a,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"ns/j":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})},ogkr:function(e,t,r){"use strict";r.d(t,"h",(function(){return n})),r.d(t,"j",(function(){return i})),r.d(t,"l",(function(){return a})),r.d(t,"k",(function(){return s})),r.d(t,"i",(function(){return o})),r.d(t,"g",(function(){return l})),r.d(t,"b",(function(){return u})),r.d(t,"f",(function(){return d})),r.d(t,"a",(function(){return c})),r.d(t,"c",(function(){return h})),r.d(t,"d",(function(){return f})),r.d(t,"e",(function(){return m}));var n="function",i="object",a="undefined",s="prototype",o="hasOwnProperty",l="default",u=Object,d=u[s],c=u.assign,h=u.create,f=u.defineProperty,m=d[o]},pCbo:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e){return e<12?"오전":"오후"}})},pCvA:function(e){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(e){"object"==typeof window&&(t=window)}e.exports=t},q8m2:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%
1d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,r=e%100;return 0===e?e+"-ев":0===r?e+"-ен":r>10&&r<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})},qSxU:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})},"r1/O":function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})},rASL:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,t,r){var n=i.words[r];return 1===r.length?t?n[0]:n[1]:e+" "+i.correctGrammaticalCase(e,n)}};t.default=n.default.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:"дан",dd:i.translate,M:"месец",MM:i.translate,y:"годину",yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})},rRnI:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
vendor: 4,862 bytes, line 1
1ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},rWbD:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},a={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},s=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},o={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},l=function(e){return function(t,r){var n=s(t),i=o[e][s(t)];return 2===n&&(i=i[r?0:1]),i.replace(/%d/i,t)}},u=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.default=n.default.defineLocale("ar",{months:u,monthsShort:u,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:l("s"),ss:l("s"),m:l("m"),mm:l("m"),h:l("h"),hh:l("h"),d:l("d"),dd:l("d"),M:l("M"),MM:l("M"),y:l("y"),yy:l("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return a[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return i[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})},s2AQ:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,r){return e>11?r?"μμ":"ΜΜ":r?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LT
1S:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var r,n=this._calendarEl[e],i=t&&t.hours();return r=n,("undefined"!=typeof Function&&r instanceof Function||"[object Function]"===Object.prototype.toString.call(r))&&(n=n.apply(t)),n.replace("{}",i%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})},sAJi:function(e,t,r){"use strict";function n(e,t,r){var n="";if(t)switch(r){case"s":n="काही सेकंद";break;case"ss":n="%d सेकंद";break;case"m":n="एक मिनिट";break;case"mm":n="%d मिनिटे";break;case"h":n="एक तास";break;case"hh":n="%d तास";break;case"d":n="एक दिवस";break;case"dd":n="%d दिवस";break;case"M":n="एक महिना";break;case"MM":n="%d महिने";break;case"y":n="एक वर्ष";break;case"yy":n="%d वर्षे"}else switch(r){case"s":n="काही सेकंदां";break;case"ss":n="%d सेकंदां";break;case"m":n="एका मिनिटा";break;case"mm":n="%d मिनिटां";break;case"h":n="एका तासा";break;case"hh":n="%d तासां";break;case"d":n="एका दिवसा";break;case"dd":n="%d दिवसां";break;case"M":n="एका महिन्या";break;case"MM":n="%d महिन्यां";break;case"y":n="एका वर्षा";break;case"yy":n="%d वर्षां"}return n.replace(/%d/i,e)}r.r(t);var i=r("Q/DC"),a={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},s={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};t.default=i.default.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return s[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return a[e]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"राà
1¤¤à¥à¤°à¥€"===t?e>=12?e:e+12:void 0},meridiem:function(e){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})},sKBs:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})},uBSF:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})},uICS:function(e,t,r){"use strict";function n(e){return e>1&&e<5}function i(e,t,r,i){var a=e+" ";switch(r){case"s":return t||i?"pár sekúnd":"pár sekundami";case"ss":return t||i?a+(n(e)?"sekundy":"sekúnd"):a+"sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":return t||i?a+(n(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?a+(n(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||i?"deň":"dňom";case"dd":return t||i?a+(n(e)?"dni":"dní"):a+"dňami";case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?a+(n(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":return t||i?a+(n(e)?"roky":"rokov"):a+"rokmi"}}r.r(t);var a=r("Q/DC"),s="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),o="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");t.default=a.default.defineLocale("sk",{months:s,monthsShort:o,weekdays:"nedeľa_pondelok_utorok_streda_Å¡tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_Å¡t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_Å¡t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo Å¡tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},uMmE:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ä unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ä un_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ä imgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ä im_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ä i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"Ä¡urnata",dd:"%d Ä¡ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})},uSIl:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%
1d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,r=e%100;return 0===e?e+"-ев":0===r?e+"-ен":r>10&&r<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})},ugae:function(e,t,r){"use strict";(function(e){function n(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function i(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}function a(e,t){var r=e();return r&&r.then?r.then(t):t(r)}function s(e,t){try{var r=e()}catch(e){return t(e)}return r&&r.then?r.then(void 0,t):r}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function f(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,"a",(function(){return R}));r("5IsQ");var p=r("hosL"),g=r("hXKq"),_=r("vvXj"),v=r.n(_),y=r("wTB2"),L=r("fGc1"),b=(r("7KA8"),r("UIJS")),T=r("ffya"),M=r("V/SH");if("undefined"!=typeof window){var k,S=[],w=window.fetch;window.batchFetch=function(e,t){function r(){k=null;var e=S;S=[];for(var t,r=new URLSearchParams,a=f(e);!(t=a()).done;){r.append("url",t.value[0])}w("/api/v1/batch?"+r).then(i((function(t){return n(t.json(),(function(t){t.body.forEach((function(t,r){e[r][2]({status:t.statusCode,headers:new Headers(t.headers),json:function(){return Promise.resolve(t.body)}})}))}))}))).catch((function(t){e.forEach((function(e){return e[3](t)}))}))}return t||"object"!=typeof e||(e=t.url),S.length>=20?r():k||(k=setTimeout(r,200)),new Promise((function(r,n){S.push([e,t,r,n])}))}}else globalThis.batchFetch=function(){return fetch.apply(void 0,arguments)};var D=function(e){return.299*(e=v.a.get.rgb(e))[0]+.587*e[1]+.114*e[2]>186?"light":"dark"};if(!("undefined"==typeof window)){window.APIROOT=window.APIROOT||"https://api.broadcast.radio";try{(window.appInsights=new M.a({config:{instrumentationKey:"3568d95a-f8c7-480a-8379-76c36af9ed0e",enableDebug:!1,disableTelemetry:!1,disableExceptionTracking:!1,autoTrackPageVisitTime:!1}})).loadAppInsights()}catch(e){}}Object.fromEntries||(Object.fromEntries=function(e){for(var t={},r=0;r<e.length;r++)t[e[r][0]]=e[r][1];return t}),Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),r=t.length,n=new Array(r);r--;)n[r]=[t[r],e[t[r]]];return n}),Object.values||(Object.values=function(e){return Object.keys(e).map((function(t){return e[t]}))});var E={meta:{name:"Default Theme",version:"0.1"},css:".page-header_6c1b8129a8bafdc2106ad170fdd0bae3{width:100%;min-height:150px;display:flex;justify-content:center}.page-header-hidden_6e6c2b89a32f4dcb06fba101aa1a707f{display:none}.page-header_6c1b8129a8bafdc2106ad170fdd0bae3+div{min-height:calc(100vh - 548px)}
1.page-footer,.page-footer_73dcd9d72c15e5a7f7dde0fb0797d5d0{width:100%;display:flex;font-size:11pt;justify-content:center;min-height:318px;box-sizing:border-box}.header-main_6e760fd5ee23f4e6b4604e04edfa4a13{flex:1;max-width:var(--page-basis);align-items:center;justify-content:center;display:flex;flex-wrap:wrap;flex-direction:row}.site-logo_800c2c7a57f6daf1a875138e70920c5e{flex:1;flex-basis:250px}@media (max-width:550px){.site-logo_800c2c7a57f6daf1a875138e70920c5e{display:flex;justify-content:center}.page-footer,.page-footer_73dcd9d72c15e5a7f7dde0fb0797d5d0{text-align:center}.page-header_6c1b8129a8bafdc2106ad170fdd0bae3{padding-top:15px}.social-icon-container_cfe8d214378e39e44451e6bb96380837{max-width:100%!important;justify-content:space-around!important;justify-content:space-evenly!important}.social-block-col_296d40b7e067796a99c428f4376f34fa>div:first-child{display:none}.social-block-col_296d40b7e067796a99c428f4376f34fa>div:nth-child(2){flex:1}}.site-logo_800c2c7a57f6daf1a875138e70920c5e img{max-height:80px}.header-listen_6b33eea430f802906a38cee0f400e222 a{display:block;background:#333;background:var(--tint);font-size:14pt;color:#fff;color:var(--tint-alt);padding:10px 15px;text-decoration:none;text-align:center;border-radius:4px;transition:all .05s}.header-listen_6b33eea430f802906a38cee0f400e222 a:hover{filter:brightness(90%)}.player-top-small_49e95705c79ef88f6917cd408d8ce48f{overflow:hidden;height:100px;width:300px}.player-top-small_49e95705c79ef88f6917cd408d8ce48f>div,.player-top-small_49e95705c79ef88f6917cd408d8ce48f>div>div{height:auto;min-height:auto}.player-top-small_49e95705c79ef88f6917cd408d8ce48f .styled-container{background:transparent!important}.player-top-small_49e95705c79ef88f6917cd408d8ce48f .float-controls{max-width:350px;display:flex;position:unset;background:transparent!important;color:var(--tint)!important}.player-top-small_49e95705c79ef88f6917cd408d8ce48f .styled-control-text{color:var(--tint)!important;text-shadow:none!important}.player-top-small_49e95705c79ef88f6917cd408d8ce48f>*{color:var(--tint)}.player-top-small_49e95705c79ef88f6917cd408d8ce48f button{border-color:var(--tint);color:var(--tint);fill:inheritColor}.footer-logo_aa332c06ea010edfa83b21220655b691{height:100px;max-height:100px}.icon-button_c75c11f87f56bae64fc4d4c474efd95f:first-of-type{margin-left:0}.icon-button_c75c11f87f56bae64fc4d4c474efd95f{padding:5px;display:flex;align-items:center;justify-content:center;line-height:10px;background:hsla(0,0%,100%,0);border-radius:3px;transition:all .05s;margin-left:15px}.icon-button_c75c11f87f56bae64fc4d4c474efd95f:hover{background:hsla(0,0%,100%,.15)}.icon-button_c75c11f87f56bae64fc4d4c474efd95f svg{height:40px;min-width:40px;fill:currentColor}.icon-button_c75c11f87f56bae64fc4d4c474efd95f:hover svg{filter:invert(.3) brightness(1.5)}.icon-button_c75c11f87f56bae64fc4d4c474efd95f:active svg{filter:invert(.3) brightness(.5)}.social-icon-container_cfe8d214378e39e44451e6bb96380837{display:flex;justify-content:flex-end;flex-wrap:wrap}.social-block-col_296d40b7e067796a99c428f4376f34fa{display:flex;flex-direction:row}\n/*# sourceMappingURL=index.css.map */",js:'!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports,require("preact"),require("preact/compat"),require("preact-router"),require("brplayer"),require("resolveBlobSync")):"function"==typeof define&&define.amd?define(["exports","preact","preact/compat","preact-router","brplayer","resolveBlobSync"],a):a((e||self).themepack={},e.preact,e.compat,e.preactRouter,e.brplayer,e.resolveBlobSync)}(this,function(e,a,t,r,o,n){function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=d(o),l=d(n);function s(){return(s=Object.assign||function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var c,f=a.createContext(),p=f.Provider,u={"page-header":"page-header_6c1b8129a8bafdc2106ad170fdd0bae3","page-header-hidden":"page-header-hidden_6e6c2b89a32f4dcb06fba101aa1a707f","page-footer":"page-footer_73dcd9d
172c15e5a7f7dde0fb0797d5d0","header-main":"header-main_6e760fd5ee23f4e6b4604e04edfa4a13","site-logo":"site-logo_800c2c7a57f6daf1a875138e70920c5e","social-icon-container":"social-icon-container_cfe8d214378e39e44451e6bb96380837","social-block-col":"social-block-col_296d40b7e067796a99c428f4376f34fa","header-listen":"header-listen_6b33eea430f802906a38cee0f400e222","player-top-small":"player-top-small_49e95705c79ef88f6917cd408d8ce48f","footer-logo":"footer-logo_aa332c06ea010edfa83b21220655b691","icon-button":"icon-button_c75c11f87f56bae64fc4d4c474efd95f"},h="undefined"==typeof window?global:window,y=t.memo(function(e){var t=e.page;return a.h(a.Fragment,{key:"listen"},a.h("div",{className:e.className||u["player-top-small"],key:"player-top-small"},t.rendered&&t.filteredOptions["player.enable"]&&t.rendered.stationId&&a.h(i.default,{integrated:!0,key:"player",mode:"embed",stationId:t.rendered.stationId,playerProps:{mode:"tabbed",hideMain:!0,seamless:!0,onInitialise:function(e){return function(e,a){if(a.entry.stationId>0)return e&&r.route("/listen")||!0;if(!window.popupPlayer){var t=a.filteredOptions&&a.filteredOptions["player.defaults.size"],o="https://player.broadcast.radio/?autoplay=1&stationId="+a.rendered.stationId;e&&e.preventDefault();var n="site"!=a.filteredOptions["player.defaults.mode"];return(n=n&&window.innerWidth>400)&&window.open(o,"_blank","width="+t[0]+",height="+t[1]+",scrollbars=yes")||(window.location=o),!1}}(e,t)}},audio:h.__playerAudio})||null,t.entry&&0==t.entry.stationId&&"object"==typeof h.__playerAudio&&(h.__playerAudio.muted=!0)||null))},function(e,a){var t=e.page,r=a.page;return!t||r&&t.rendered&&r.rendered&&r.rendered.stationId==t.rendered.stationId}),b=(c=y,function(e){return a.h(f.Consumer,null,function(t){return t&&a.h(c,s({},e,{page:t.data,theme:t.theme}))})}),m=require("./main.css"),g={__proto__:null,default:{meta:require("./meta.js"),styles:m,renderHeader:function(e,t){return console.log("got h",a.h,l.default),a.h("div",{class:u.header},a.h("div",{className:u["page-header"],key:"header-main-default",style:{"--tint":t.filteredOptions["style.tint_colour"]}},a.h("div",{className:u["header-main"]},a.h("div",{className:u["site-logo"]},a.h("a",{href:"/"},a.h("img",{src:l.default(t.filteredOptions["style.logo"],null,200)}))),a.h("div",{className:u["header-schedule"]}),a.h("div",{className:u["header-listen"]},a.h(b,null)))))},PageProvider:p}};e.default=g,e.theme=g});\n//# sourceMappingURL=index.umd.js.map\n'},A="undefined"!=typeof window?Object.fromEntries(new URLSearchParams(window.location.search).entries()):{},I="undefined"!=typeof navigator&&!!(navigator.userAgent.indexOf("MyStation/")+1);I&&(e.route=g.b);var x=!1,C=function(t){function r(){return t.apply(this,arguments)||this}h(r,t);var n=r.prototype;return n.render=function(){for(var e,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(e=t.prototype.render).call.apply(e,[this].concat(n))},n.routeTo=function(r,n){if(I&&e.nagivateNatively)return event&&event.preventDefault(),event&&event.stopPropagation(),!0;"undefined"!=typeof window&&(window.origin||(window.origin=window.location.origin),r.startsWith(window.origin)&&(r=r.slice(window.origin.length)));var i=(this.props.data||{}).filteredOptions;return"/listen"!=r||i&&i["player.integrated"]?t.prototype.routeTo.call(this,r,n):(event&&event.preventDefault(),event&&event.stopPropagation(),Object(b.a)(null,this.props.data),!0)},n.canRoute=function(e){if("/listen"==e)return!1;if("undefined"==typeof window)return!0;var r="undefined"==typeof location?this.state.url:location.href,n=new URL(e,r);return n=n.toString().slice(n.origin.length),!(r.indexOf("#")>=0&&e.split("#")[0]==this.state.url.split("#")[0])&&t.prototype.canRoute.call(this,e)},r}(g.a),R=function(t){function o(o){for(var h,f=arguments.length,m=new Array(f>1?f-1:0),p=1;p<f;p++)m[p-1]=arguments[p];c(d(h=t.call.apply(t,[this,o].concat(m))||this),"handleRoute",i((function(t){var r=!1;if(h.currentUrl=t.url||"/",t.pageState&&t.pageState.data&&t.pageState.data.rendered&&t.pageState.theme){var i=t.pageState,o=i.data;if(o.entry&&(o.entry.href==t.url||o.entry.permalink==t.url)&&!o.ssr)return h.setState({data:o,theme:i.theme,stationId:o.rendered.stationId,uri:h.currentUrl,loadedUrl:h.currentUrl}),t.done&&t.done()}var d,c=h.state.data,f="undefined"!=typeof window&&window.location.hostname||"",m=h.state.domain||String(f).endsWith(".localhost")&&f.replace(".localhost",".broadcast.radio")||f;if(void 0===p)var p=e.document||{};if(t.fetchOptions||(t.fetchOptions={}),t.fetchOptions.headers||(t.fetchOptions.headers={}),p.cookie){var _,v=null==(_=p.cookie.split("; ").find((function(e){return e.startsWith("sid=")})))?void 0:_.slice(4);t.fetchOptions.headers={"x-br-access-token":v}}return a((function(){if(p.head&&"undefined"!=typeof fetch&&h.state.loadedUrl.split("#")[0]!=h.currentUrl.split("#")[0]){var e,i,o;null==(e=p.body)||e.classList.add("navigating");var f=h.currentUrl;return s((function(){var e=fetch((window.APIROOT_THEME||window.APIROOT)+"/theme/"+m+t.url,t.fetchOptions).then((function(e){return e.json()})).then((function(e){return o=e})),s=fetch(window.APIROOT+"/render/"+m+t.url,t.fetchOptions).then((function(e){return e,e.json()})).then((function(e){return i=e}));return n(Promise.allSettled([e,s]),(function(){var e,s;if(i&&i.code>=300&&i.code<=399){if(!i.url.startsWith(window.APIROOT))throw 305==i.code?window.open(i.url,"_blank"):location.href=i.url,new Error("stop propagation");var m=i.url.slice(window.APIROOT.length);return history.replaceState({},"",m),h.handleRoute({url:m}),void(r=!0)}if(null==(e=t.fetchOptions)||null==(s=e.signal)?void 0:s.aborted)r=!0;else{if(i&&i.success){var p=(c=i.body).rendered.stationId,g={};return a((function(){if(p!=h.state.stationId)return n(fetch(window.APIROOT+"/api/nowplaying/"+p,t.fetchOptions).then((function(e){return e.json()})).then((function(e){return e.body})),(function(e){u(g,e)}))}),(function(){var e,n;(null==(e=t.fetchOptions)||null==(n=e.signal)?void 0:n.aborted)?r=!0:(x||(x=!0,Object(L.a)(o.body.plugins,o.body.pluginStyles)),h.setState(l({data:c,stationId:p,theme:o.body,uri:h.currentUrl,loadedUrl:f},g)),d={data:c,theme:o.body})}))}r=!0}}))}),(function(e){var t,n;console.log("theme load error",o,e),(null==(t=e.fetchOptions)||null==(n=t.signal)?void 0:n.aborted)?r=!0:o&&(h.setState({data:i&&i.body||o&&o.body&&o.body["errors.404"],theme:o.body,uri:h.currentUrl}),d={data:i&&i.body||o&&o.body&&o.body["errors.404"],theme:o.body})}))}}),(function(e){if(r)return e;p.head&&""!=p.title&&[].slice.call(p.head.querySelectorAll(":scope > *")).filter((function(e){return(p.head.querySelector('meta[name=marker][content=managed-header-start], meta[property="cms:uuid"], title').compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)!=Node.DOCUMENT_POSITION_PRECEDING})).filter((function(e){return(p.head.querySelector("meta[name=marker][content=managed-header-end], meta[name=description]").compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING)!=Node.DOCUMENT_POSITION_FOLLOWING})).map((function(e){return e.parentNode.removeChild(e)})),c.rendered&&p.head&&(p.head.querySelector("style#theme")?p.head.querySelector("style#theme").insertAdjacentHTML("afterend",c.rendered.headerHtml):p.head.insertAdjacentHTML("beforeend",c.rendered.headerHtml)),t.done&&t.done();try{"undefined"!=typeof window&&p.querySelector(window.location.hash)&&p.querySelector(window.location.hash).scrollIntoView()}catch(e){}return function(){d&&Object(g.c)(d),"undefined"!=typeof appInsights&&appInsights&&appInsights.trackPageView({})}}))})));var _="undefined"==typeof window;if(_||(window.APIROOT=window.APIROOT||"",window.__playerAudio=window.__playerAudio||new window.Audio,window.addEventListener("message",(function(t){try{var r=t.data.split(":")[0],n=JSON.parse(t.data.slice(r.length+1)),i=!1;if(console.log("received iframe message",r,n),"route"==r){var a=n+(n.indexOf("?")?"&":"?")+"_="+Date.now();Object(g.b)(a)}"css"==r&&(e.theme&&!i&&(i=!0,window.top.postMessage("classes:"+JSON.stringify(e.themes.style),"*")),h.setState({customCSS:n}))}catch(e){}}))),h.state={data:{},root:"/",uri:"undefined"!=typeof window&&window.location.pathname||"/",customCSS:A["--custom-css"]||"",loadedUrl:""},o.data&&(h.state={data:o.data.data,theme:o.data.theme,uri:h.currentUrl=o.url}),o.CLI_DATA&&o.CLI_DATA.preRenderData&&o.CLI_DATA.preRenderData.data){var v=o.CLI_DATA.preRenderData;v.data.ssr=!0,h.state={data:v.data,theme:v.theme,uri:(h.currentUrl=v.url)||"undefined"!=typeof window&&window.location.pathname||"/",loadedUrl:v.url,domain:v.domain,now_playing:v.now_playing,schedule:v.schedule,recently_played:v.recently_played,preRenderData:v}}else if(o.CLI_DATA&&o.CLI_DATA.preRenderData&&o.CLI_DATA.preRenderData.domain){var b=o.CLI_DATA.preRenderData;h.state={domain:o.CLI_DATA.preRenderData.domain,theme:b.theme,preRenderData:b}}A.site_preview&&history.replaceState({},"",A.site_preview+location.search+location.hash);var T=h.theme=Object(y.a)(h.state.theme&&h.state.theme.theme||E);return h.state.theme&&h.state.theme.plugins&&Object(L.a)(h.state.theme.plugins,h.state.theme.pluginStyles),h.state.data&&Object(g.c)({data:h.state.data,theme:h.state.theme}),!I||h.state.data&&h.state.data.rendered||h.handleRoute({url:h.state.uri}),T.onUpdate=h.updateView.bind(d(h)),h._PageProvider=T.PageProvider,"undefined"!=typeof navigator&&navigator.userAgent.indexOf("MyStation/")+1&&(r("82Vv"),document.body.classList.add("msa-embed")),h}h(o,t);var f=o.prototype;return f.componentDidUpdate=function(e,t){if(t.theme!=this.state.theme){var r=this.state.theme&&this.state.theme.theme;if(JSON.stringify(t.theme&&t.theme.theme)!=JSON.stringify(r)){var n=this.theme=Object(y.a)(this.state.theme&&this.state.theme.theme||E);n.onUpdate=this.updateView.bind(this),n&&(this._PageProvider&&this._PageProvider.constructor==n.PageProvider.constructor?this.forceUpdate():this.setState({pageProvider:this._PageProvider=n.PageProvider}))}}t.uri!=this.state.uri&&"undefined"!=typeof document&&document.body.classList.remove("navigating")},f.updateView=function(){this.forceUpdate()},f.componentDidMount=function(){this.forceUpdate(),"undefined"!=typeof document&&"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((function(e){var t=e[0],r=Math.ceil(t.contentRect.height);window.top.postMessage("height:"+r+"px","*"),document.body.style.setProperty("--vw",Math.floor(t.contentRect.width)+"px"),document.body.style.setProperty("--vh",Math.min(window.innerHeight,screen.availHeight)+"px")})),this.resizeObserver.observe(document.querySelector("#app"))),"undefined"!=typeof appInsights&&appInsights&&appInsights.trackPageView({})},f.render=function(e,t){var r=e.url,n=t.data,i=t.theme,a=t.now_playing,s=t.schedule,o=t.recently_played,l=this.currentUrl;t.url=this.currentUrl;var d=A.styles&&JSON.parse(A.styles),c=u({},n&&n.filteredOptions&&{"--tint":n.filteredOptions["style.tint_colour"],"--tint-alt":"light"==D(n.filteredOptions["style.tint_colour"])?"#000":"#FFF","--tint-alt-two":"light"==D(n.filteredOptions["style.tint_colour"])?"#FFF":"#000","--main-col":n.filteredOptions["app.secondary_colour"],"--main-bg-col":n.filteredOptions["app.background_colour"],"--menu-col":n.filteredOptions["player.menu_text_colour"],"--menu-bg-col":n.filteredOptions["player.menu_background_colour"],"--player-col":n.filteredOptions["player.secondary_colour"],"--player-bg-col":n.filteredOptions["player.background_colour"],"--np-col":n.filteredOptions["app.now_playing_text_colour"]||"#FFF","--np-bg-col":n.filteredOptions["app.now_playing_background_colour"]}||void 0,I&&d&&{"--main-col":d["app.colours.text_colour"],"--main-bg-col":d["app.colours.background_colour"],"--tint":d["app.colours.tint_colour"],"--tint-alt":"light"==D(d["app.colours.tint_colour"])?"#000":"#FFF","--tint-alt-two":"light"==D(d["app.colours.tint_colour"])?"#FFF":"#000","--np-col":d["app.colours.now_playing_text_colour"],"--np-bg-col":d["app.colours.now_playing_background_colour"]}||void 0,n&&n.filteredOptions&&this.theme&&this.theme.getCSSVars&&this.theme.getCSSVars(n.filteredOptions)||void 0,{"--vh":"undefined"!=typeof screen&&Math.min(window.innerHeight,screen.availHeight)+"px"||"100vh"});PluginManager.consumer.runHookOnReference("getCSSVars",c);var h,f=Object(p.h)(C,{key:"router",url:r,onChange:this.handleRoute,data:n,canRoute:this.canRoute},Object(p.h)(T.a,{template:"page",key:l,url:l||r||this.currentUrl,currentUrl:this.currentUrl,data:n,theme:i,now_playing:a,schedule:s,recently_played:o,default:!0})),m=this._PageProvider,g=this.state.customCSS||n&&n.filteredOptions&&n.filteredOptions["web.custom_css"]||"";if(g=this.theme&&this.theme.compileStyle&&this.theme.compileStyle(g)||g,I&&!n.rendered){return Object(p.h)("div",{id:"app"},Object(p.h)("div",{style:{position:"absolute",background:"#000",top:"0px",left:"0px",width:"100vw",height:"100vh",display:"flex",alignItems:"center",justifyContent:"center"}},Object(p.h)("svg",{width:"32",height:"32",viewBox:"0 0 48 48",class:"spinner",xmlns:"http://www.w3.org/2000/svg"},Object(p.h)("g",null,Object(p.h)("title",null,"Layer 1"),Object(p.h)("path",{opacity:"0.5",id:"svg_1",d:"m1.87899,23.89307c0,-12.1547 9.8453,-22 22,-22c12.1547,0 22,9.8453 22,22c0,12.1547 -9.8453,22 -22,22c-12.1547,0 -22,-9.8453 -22,-22z","stroke-linecap":"null","stroke-linejoin":"null","stroke-width":"3",stroke:"#FFF",fill:"none"}),Object(p.h)("path",{id:"svg_2",d:"m23.57645,1.66691",opacity:"0.5","stroke-width":"3",stroke:"#FFF",style:{filter:"brightness(50%)"},fill:"none"}),Object(p.h)("path",{id:"svg_9",d:"m23.69747,1.90893c12.57824,0.22617 22.14552,9.31806 22.26653,22.50856","fill-opacity":"null","stroke-width":"3",stroke:"#FFF",fill:"none"})))),Object(p.h)("style",{dangerouslySetInnerHTML:{__html:"@keyframes spin{0%{transform: rotate(0deg);}100%{transform: rotate(360deg);}}.spinner{animation: spin 1s linear infinite;}"}}
1))}return Object(p.h)("div",{id:"app"},m?Object(p.h)(m,{key:"1",value:t},f):f,Object(p.h)("style",{dangerouslySetInnerHTML:{__html:":root { "+(h=c,void 0===h&&(h={}),Object.entries(h).map((function(e){return e[0]+": "+e[1]+";"})).join(" ")+" } ")}}),g&&Object(p.h)("style",{dangerouslySetInnerHTML:{__html:g}}))},o}(p.Component)}).call(this,r("pCvA"))},uklt:function(e,t,r){e.exports=r("viua")},vZFb:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},a={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};t.default=n.default.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return a[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return i[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})},viua:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),s=r("l8WD"),o=n(s),l=n(r("W0B4")),u=function(e){function t(e){var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.scrollListener=r.scrollListener.bind(r),r.eventListenerOptions=r.eventListenerOptions.bind(r),r.mousewheelListener=r.mousewheelListener.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);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)}
1(t,e),a(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(e){}return e}},{key:"eventListenerOptions",value:function(){var e=this.props.useCapture;return this.isPassiveSupported()&&(e={useCapture:this.props.useCapture,passive:!0}),e}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,r=this.getParentElement(e),n=void 0;if(this.props.useWindow){var i=document.documentElement||document.body.parentNode||document.body,a=void 0!==t.pageYOffset?t.pageYOffset:i.scrollTop;n=this.props.isReverse?a:this.calculateOffset(e,a)}else n=this.props.isReverse?r.scrollTop:e.scrollHeight-r.scrollTop-r.clientHeight;n<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=r.scrollHeight,this.beforeScrollTop=r.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),r=t.children,n=t.element,i=t.hasMore,a=t.isReverse,s=t.loader,l=t.ref,u=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);u.ref=function(t){e.scrollComponent=t,l&&l(t)};var d=[r];return i&&(s?a?d.unshift(s):d.push(s):this.defaultLoader&&(a?d.unshift(this.defaultLoader):d.push(this.defaultLoader))),o.default.createElement(n,u,d)}}]),t}(s.Component);u.propTypes={children:l.default.node.isRequired,element:l.default.node,hasMore:l.default.bool,initialLoad:l.default.bool,isReverse:l.default.bool,loader:l.default.node,loadMore:l.default.func.isRequired,pageStart:l.default.number,ref:l.default.func,getScrollParent:l.default.func,threshold:l.default.number,useCapture:l.default.bool,useWindow:l.default.bool},u.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=u,e.exports=t.default},vsoA:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>
vendor: 5,584 bytes, line 1
1=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})},vvXj:function(e,t,r){function n(e,t,r){return Math.min(Math.max(t,e),r)}function i(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var a=r("rRnI"),s=r("6lK2"),o={};for(var l in a)a.hasOwnProperty(l)&&(o[a[l]]=l);var u=e.exports={to:{},get:{}};u.get=function(e){var t,r;switch(e.substring(0,3).toLowerCase()){case"hsl":t=u.get.hsl(e),r="hsl";break;case"hwb":t=u.get.hwb(e),r="hwb";break;default:t=u.get.rgb(e),r="rgb"}return t?{model:r,value:t}:null},u.get.rgb=function(e){if(!e)return null;var t,r,i,s=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=t[2],t=t[1],r=0;r<3;r++){var o=2*r;s[r]=parseInt(t.slice(o,o+2),16)}i&&(s[3]=parseInt(i,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(i=(t=t[1])[3],r=0;r<3;r++)s[r]=parseInt(t[r]+t[r],16);i&&(s[3]=parseInt(i+i,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(r=0;r<3;r++)s[r]=parseInt(t[r+1],0);t[4]&&(s[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)))return(t=e.match(/(\D+)/))?"transparent"===t[1]?[0,0,0,0]:(s=a[t[1]])?(s[3]=1,s):null:null;for(r=0;r<3;r++)s[r]=Math.round(2.55*parseFloat(t[r+1]));t[4]&&(s[3]=parseFloat(t[4]))}for(r=0;r<3;r++)s[r]=n(s[r],0,255);return s[3]=n(s[3],0,1),s},u.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])+360)%360,n(parseFloat(t[2]),0,100),n(parseFloat(t[3]),0,100),n(isNaN(r)?1:r,0,1)]}return null},u.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,n(parseFloat(t[2]),0,100),n(parseFloat(t[3]),0,100),n(isNaN(r)?1:r,0,1)]}return null},u.to.hex=function(){var e=s(arguments);return"#"+i(e[0])+i(e[1])+i(e[2])+(e[3]<1?i(Math.round(255*e[3])):"")},u.to.rgb=function(){var e=s(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},u.to.rgb.percent=function(){var e=s(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"},u.to.hsl=function(){var e=s(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},u.to.hwb=function(){var e=s(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},u.to.keyword=function(e){return o[e.slice(0,3)]}},wFEF:function(e,t,r){"use strict";function n(e,t,r,n){var i=e;switch(r){case"s":return n||t?"néhány másodperc":"néhány másodperce";case"ss":return i+(n||t)?" másodperc":" másodperce";case"m":return"egy"+(n||t?" perc":" perce");case"mm":return i+(n||t?" perc":" perce");case"h":return"egy"+(n||t?" óra":" órája");case"hh":return i+(n||t?" óra":" órája");case"d":return"egy"+(n||t?" nap":" napja");case"dd":return i+(n||t?" nap":" napja");case"M":return"egy"+(n||t?" hónap":" hónapja");case"MM":return i+(n||t?" hónap":" hónapja");case"y":return"egy"+(n||t?" év":" éve");case"yy":return i+(n||t?" év":" éve")}return""}function i(e){return(e?"":"[múlt] ")+"["+s[this.day()]+"] LT[-kor]"}r.r(t);var a=r("Q/DC"),s="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");t.default=a.default.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,r){return e<12?!0===r?"de":"DE":!0===r?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},wTB2:function(module,__webpack_exports__,__webpack_require__){"use strict";(function(global){function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function loadThemeBundle(theme){var ssr="undefined"==typeof window;if(!theme.js||!theme.css)throw new Error("Invalid theme");var _theme=theme,js=_theme.js,css=_theme.css,require=global.brRequire=function(e){return function(e){switch(e){case"preact":return preact__WEBPACK_IMPORTED_MODULE_0__;case"time-ago":return time_ago__WEBPACK_IMPORTED_MODULE_6___default.a;case"preact-router":return{route:preact_router_src_index__WEBPACK_IMPORTED_MODULE_2__.b};case"brplayer":return brplayer__WEBPACK_IMPORTED_MODULE_3__.a;case"preact/compat":return preact_compat__WEBPACK_IMPORTED_MODULE_1__.default;case"resolveBlobSync":return _resolveBlobSync__WEBPACK_IMPORTED_MODULE_4__.a;case"./main.css":return css;case"./meta.js":var t="undefined"!=typeof window&&window.location.hash&&new URLSearchParams(window.location.hash.slice(1));return _extends(theme.meta.options=theme.meta.options||{},theme.defaultOptions,global.lastLoadedThemeOptions||{},t&&t.get("config")&&JSON.parse(decodeURIComponent(t.get("config")))),theme.meta}}(e)},exports={},module={exports:exports};if(function(){eval(js),theme=this.exports.default.default}.apply({require:require,exports:exports,module:module}),global.themes=theme,theme.styles&&!ssr){var styleType=String(theme.styles).startsWith("http")?"link":"style",styleNode=document.querySelector("style#theme, link[rel=stylesheet]#theme")||document.createElement(styleType);styleNode.id="theme","style"==styleType?styleNode.innerHTML=theme.styles:(styleNode.rel="stylesheet",styleNode.href=theme.styles),styleNode.parentNode||document.head.insertBefore(styleNode,document.head.firstChild)}return theme.getCSSVars=function(e){var t=theme.meta.options,r={};if(theme.meta.colours)for(var n=0,i=Object.entries(theme.meta.colours);n<i.length;n++){var a=i[n],s=a[0],o=a[1],l=o[0],u=o[1],d=o[2],c=o[3],h=void 0;try{h=JSON.parse(d)}catch(e){}h=e[u]||h,r["--"+s]=h=global.themes.meta.options[l]||t[l]||h,c&&(r["--"+s+"-alt"]="light"==getDarkness(h)?r["--dark"]||"#000000":r["--light"]||"#FFFFFF",r["--"+s+"-alt-b"]="dark"==getDarkness(h)?r["--dark"]||"#000000":r["--light"]||"#FFFFFF")}return r},theme}__webpack_require__.d(__webpack_exports__,"a",(function(){return loadThemeBundle}));var preact__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("hosL"),preact_compat__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("l8WD"),preact_router_src_index__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("hXKq"),brplayer__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("+sWD"),_resolveBlobSync__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("gVhb"),color_string__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("vvXj"),color_string__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(color_string__WEBPACK_IMPORTED_MODULE_5__),time_ago__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("60sP"),time_ago__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(time_ago__WEBPACK_IMPORTED_MODULE_6__),getDarkness=function(e){return.299*(e=color_string__WEBPACK_IMPORTED_MODULE_5___default.a.get.rgb(e))[0]+.587*e[1]+.114*e[2]>186?"light":"dark"};"undefined"!=typeof window&&(window.addEventListener("hashchange",(function(){try{var e=window.location.hash&&new URLSearchParams(window.location.hash.slice(1)),t=e&&e.get("config")&&JSON.parse(decodeURIComponent(e.get("config")));if(!t){var r=document.querySelector(window.location.hash);return void(r&&r.scrollIntoView())}_extends(global.themes.meta.options,global.themes.defaultOptions,t),global.lastLoadedThemeOptions=_extends({},t),Object(preact_router_src_index__WEBPACK_IMPORTED_MODULE_2__.b)(window.location.pathname+window.location.hash),global.themes.onUpdate&&global.themes.onUpdate()}catch(e){}})),window.addEventListener("message",(function(e){try{var t=e.data.split(":")[0],r=JSON.parse(e.data.slice(t.length+1));switch(t){case"theme":try{var n=window.location.hash&&new URLSearchParams(window.location.hash.slice(1)),i=n&&n.get("config")&&JSON.parse(decodeURIComponent(n.get("config")));_extends(global.themes.meta.options,global.themes.defaultOptions,i,r),global.lastLoadedThemeOptions=_extends({},i),global.themes.onUpdate&&global.themes.onUpdate()}catch(e){console.warn("Failed to update theme",e)}}}catch(e){}})))}).call(this,__webpack_require__("pCvA"))},wZKB:function(e,t,r){"use strict";(function(e){var n=r("hosL"),i=r("+sWD"),a=r("Eo1k"),s=r("ZGeT"),o=r("meT2"),l=r("EE4q"),u=r.n(l),d="undefined"!=typeof window?window:e,c=function(e){e&&(d.innerWidth||0)>=850&&(e.style.display="block")};t.a=function(e){var t=e.data,r=e.url,l=e.theme;if("undefined"!=typeof document&&"player.broadcast.radio"==document.domain)return Object(n.h)(i.a,{audio:d.__playerAudio,apiRoot:d.APIROOT,search:window.location.search});if(t&&t.entry&&"no-website"==t.entry.permalink)return Object(n.h)(n.Fragment,{key:"page"},Object(n.h)(a.a,{key:"page-default",theme:l,data:t}));var h=d&&d.themes&&d.themes.meta&&d.themes.meta.options&&d.themes.meta.options["list.advert.map"]&&d.themes.meta.options["list.advert.map"]["300x600"],f=d&&d.themes&&d.themes.meta&&d.themes.meta.options&&d.themes.meta.options["list.advert.map"]&&d.themes.meta.options["list.advert.map"]["728x90"],m=d.innerWidth||0;return Object(n.h)(n.Fragment,{key:"page"},Object(n.h)("div",{class:u.a["page-head-contain"]},f&&t&&t.rendered&&!(!t.rendered.meta||"menu.visible"in t.rendered.meta&&!t.rendered.meta["menu.visible"])&&Object(n.h)(s.a,{name:"aside",key:r,url:r,width:728,height:90,stationId:t.rendered.stationId})),t&&t.rendered&&Object(n.h)("div",{class:"page-content-contain"+(h&&m>=850?" has-aside":"")},Object(n.h)(o.a,{allProps:e,data:t.rendered.body}),h?Object(n.h)("div",{className:"page-content-aside",style:{display:m<850?"none":"block"},ref:c},Object(n.h)("div",{className:"page-content-side-sticky"},Object(n.h)(s.a,{name:"aside",key:r,url:r,width:300,height:600,stationId:t.rendered.stationId}))):null))}}).call(this,r("pCvA"))},y0eM:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],weekdaysShort:["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],weekdaysMin:["Do","Lu","Má","Cé","Dé","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})},y6JY:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%
1d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})},yA37:function(e,t,r){"use strict";function n(e,t,r){var n=function(e){var t=Math.floor(e%1e3/100),r=Math.floor(e%100/10),n=e%10,i="";t>0&&(i+=a[t]+"vatlh");r>0&&(i+=(""!==i?" ":"")+a[r]+"maH");n>0&&(i+=(""!==i?" ":"")+a[n]);return""===i?"pagh":i}(e);switch(r){case"ss":return n+" lup";case"mm":return n+" tup";case"hh":return n+" rep";case"dd":return n+" jaj";case"MM":return n+" jar";case"yy":return n+" DIS"}}r.r(t);var i=r("Q/DC"),a="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");t.default=i.default.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},yCJP:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC"),i={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},a={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};t.default=n.default.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦áŸ
vendor: 2,192 bytes, lines 1-2
1§áŸ¨áŸ©áŸ ]/g,(function(e){return a[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return i[e]}))},week:{dow:1,doy:4}})},z9lm:function(e,t,r){"use strict";r.r(t);var n=r("Q/DC");t.default=n.default.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_Õ´Õ¡ÕµÕ«Õ½Õ«_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_Õ´Õ¡ÕµÕ«Õ½_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"Õ°Õ¶Õ¾_փտր_մրտ_ապր_Õ´ÕµÕ½_Õ°Õ¶Õ½_Õ°Õ¬Õ½_օգս_Õ½ÕºÕ¿_Õ°Õ¯Õ¿_Õ¶Õ´Õ¢_Õ¤Õ¯Õ¿".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_Õ°Õ«Õ¶Õ£Õ·Õ¡Õ¢Õ©Õ«_ուրբաթ_Õ·Õ¡Õ¢Õ¡Õ©".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_Õ°Õ¶Õ£_ուրբ_Õ·Õ¢Õ©".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_Õ°Õ¶Õ£_ուրբ_Õ·Õ¢Õ©".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY Õ©.",LLL:"D MMMM YYYY Õ©., HH:mm",LLLL:"dddd, D MMMM YYYY Õ©., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[Õ¾Õ¡Õ²Õ¨] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ÕªÕ¡Õ´Õ¨] LT"},lastWeek:function(){return"[անցած] dddd [օրը ÕªÕ¡Õ´Õ¨] LT"},sameElse:"L"},relativeTime:{future:"%s Õ°Õ¥Õ¿Õ¸",past:"%s Õ¡Õ¼Õ¡Õ»",s:"Õ´Õ« քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ÕªÕ¡Õ´",hh:"%d ÕªÕ¡Õ´",d:"օր",dd:"%d օր",M:"Õ¡Õ´Õ«Õ½",MM:"%d Õ¡Õ´Õ«Õ½",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|Õ¡Õ¼Õ¡Õ¾Õ¸Õ¿Õ¾Õ¡|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"Õ¡Õ¼Õ¡Õ¾Õ¸Õ¿Õ¾Õ¡":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(Õ«Õ¶|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-Õ«Õ¶":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}});
2//# sourceMappingURL=bundle.32530.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.