-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
dash.offline.min.js
3 lines (3 loc) · 376 KB
/
dash.offline.min.js
1
2
3
/*! For license information please see dash.offline.min.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.dashjs=t():e.dashjs=t()}(self,(function(){return function(){var e={3039:function(e,t){"use strict";function r(e,t){return function(r,o){for(var i,a,s,u=n(r,"tag"),l=n(null==o?"*":o,"range"),f=[],c=-1;++c<l.length;)if(i=l[c].toLowerCase(),t||"*"!==i){for(a=-1,s=[];++a<u.length;)if(e(u[a].toLowerCase(),i)){if(!t)return u[a];f.push(u[a])}else s.push(u[a]);u=s}return t?f:void 0}}function n(e,t){var r=e&&"string"==typeof e?[e]:e;if(!r||"object"!=typeof r||!("length"in r))throw new Error("Invalid "+t+" `"+r+"`, expected non-empty string");return r}t.basicFilter=r((function(e,t){return"*"===t||e===t||e.indexOf(t+"-")>-1}),!0),t.extendedFilter=r((function(e,t){var r=e.split("-"),n=t.split("-"),o=0,i=0;if("*"!==n[i]&&r[o]!==n[i])return!1;for(o++,i++;i<n.length;)if("*"!==n[i]){if(!r[o])return!1;if(r[o]!==n[i]){if(1===r[o].length)return!1;o++}else o++,i++}else i++;return!0}),!0),t.lookup=r((function(e,t){for(var r,n=t;;){if("*"===n||e===n)return!0;if((r=n.lastIndexOf("-"))<0)return!1;"-"===n.charAt(r-2)&&(r-=2),n=n.slice(0,r)}}))},3973:function(e,t,r){"use strict";e.exports=r(3854)},3854:function(e,t,r){"use strict";var n=r(2415),o=r(3039),i=r(7778),a=r(5813),s=r(3165),u=r(9460);e.exports=function(e,t){var r,f=t||{},g=n.parse(String(e||"").toLowerCase(),f),_=n.stringify(g),v=-1;if(!_)return _;for(;++v<i.length;)o.extendedFilter(_,i[v].from).length&&(d(g,i[v].from,i[v].to),_=n.stringify(g));for(v=-1;++v<a.length;)p(g,a[v].from.field,a[v].from.value)&&m(g,a[v].to.field,a[v].to.value);for(_=n.stringify(Object.assign({},g,c)),v=-1;++v<s.length;)_===s[v]&&(d(g,s[v],s[v].split("-").slice(0,-1).join("-")),_=n.stringify(Object.assign({},g,c)));if(g.extensions.sort(h),f.warning)for(r in u)l.call(u[r],g[r])&&f.warning("Deprecated "+r+" `"+g[r]+"`, expected one of `"+u[r][g[r]].join("`, `")+"`",null,7);return g.script&&(g.script=g.script.charAt(0).toUpperCase()+g.script.slice(1)),g.region&&(g.region=g.region.toUpperCase()),n.stringify(g)};var l={}.hasOwnProperty,f=new Intl.Collator,c={variants:[],extensions:[],privateuse:[],irregular:null,regular:null};function d(e,t,r){var o,i=n.parse(t),a=n.parse(r),s=[];for(o in i)i[o]&&i[o].length&&p(e,o,i[o])&&s.push(o);for(o in a)a[o]&&a[o].length&&(s.indexOf(o)>-1||!e[o]||!e[o].length)&&m(e,o,a[o])}function p(e,t,r){var n,o,i,a,s=!1;if(r){if(o=n=e[t],n&&"object"==typeof n)for(o=[],i=-1;++i<n.length;)a=n[i],r.indexOf(a)<0?o.push(a):s=!0;else n===r&&(o=null,s=!0);e[t]=o}return s}function m(e,t,r){var n,o,i,a=e[t];if(a&&"object"==typeof a)for(n=[].concat(r),o=-1;++o<n.length;)i=n[o],a.indexOf(i)<0&&a.push(i);else e[t]=r}function h(e,t){return f.compare(e.singleton,t.singleton)}},2415:function(e,t,r){"use strict";t.parse=r(6903),t.stringify=r(6713)},6903:function(e,t,r){"use strict";var n=r(2219),o=r(3516),i=r(395),a=r(858),s=r(8589);e.exports=function e(t,r){var l,f,c,d=r||{},p={language:null,extendedLanguageSubtags:[],script:null,region:null,variants:[],extensions:[],privateuse:[],irregular:null,regular:null},m=String(t),h=m.toLowerCase(),g=0;if(null==t)throw new Error("Expected string, got `"+t+"`");if(u.call(s,h))return(null==d.normalize||d.normalize)&&s[h]?e(s[h]):(p[-1===a.indexOf(h)?"irregular":"regular"]=m,p);for(;o(h.charCodeAt(g))&&g<9;)g++;if(g>1&&g<9){if(p.language=m.slice(0,g),g<4)for(f=0;45===h.charCodeAt(g)&&o(h.charCodeAt(g+1))&&o(h.charCodeAt(g+2))&&o(h.charCodeAt(g+3))&&!o(h.charCodeAt(g+4));){if(f>2)return _(g,3,"Too many extended language subtags, expected at most 3 subtags");p.extendedLanguageSubtags.push(m.slice(g+1,g+4)),g+=4,f++}for(45===h.charCodeAt(g)&&o(h.charCodeAt(g+1))&&o(h.charCodeAt(g+2))&&o(h.charCodeAt(g+3))&&o(h.charCodeAt(g+4))&&!o(h.charCodeAt(g+5))&&(p.script=m.slice(g+1,g+5),g+=5),45===h.charCodeAt(g)&&(o(h.charCodeAt(g+1))&&o(h.charCodeAt(g+2))&&!o(h.charCodeAt(g+3))?(p.region=m.slice(g+1,g+3),g+=3):i(h.charCodeAt(g+1))&&i(h.charCodeAt(g+2))&&i(h.charCodeAt(g+3))&&!i(h.charCodeAt(g+4))&&(p.region=m.slice(g+1,g+4),g+=4));45===h.charCodeAt(g);){for(c=l=g+1;n(h.charCodeAt(c));){if(c-l>7)return _(c,1,"Too long variant, expected at most 8 characters");c++}if(!(c-l>4||c-l>3&&i(h.charCodeAt(l))))break;p.variants.push(m.slice(l,c)),g=c}for(;45===h.charCodeAt(g)&&120!==h.charCodeAt(g+1)&&n(h.charCodeAt(g+1))&&45===h.charCodeAt(g+2)&&n(h.charCodeAt(g+3));){for(c=g+2,f=0;45===h.charCodeAt(c)&&n(h.charCodeAt(c+1))&&n(h.charCodeAt(c+2));)for(c=(l=c+1)+2,f++;n(h.charCodeAt(c));){if(c-l>7)return _(c,2,"Too long extension, expected at most 8 characters");c++}if(!f)return _(c,4,"Empty extension, extensions must have at least 2 characters of content");p.extensions.push({singleton:m.charAt(g+1),extensions:m.slice(g+3,c).split("-")}),g=c}}else g=0;if(0===g&&120===h.charCodeAt(g)||45===h.charCodeAt(g)&&120===h.charCodeAt(g+1))for(c=g=g?g+2:1;45===h.charCodeAt(c)&&n(h.charCodeAt(c+1));){for(c=l=g+1;n(h.charCodeAt(c));){if(c-l>7)return _(c,5,"Too long private-use area, expected at most 8 characters");c++}p.privateuse.push(m.slice(g+1,c)),g=c}return g!==m.length?_(g,6,"Found superfluous content after tag"):p;function _(e,t,r){return d.warning&&d.warning(r,t,e),d.forgiving?p:{language:null,extendedLanguageSubtags:[],script:null,region:null,variants:[],extensions:[],privateuse:[],irregular:null,regular:null}}};var u={}.hasOwnProperty},6713:function(e){"use strict";e.exports=function(e){var t,r,n,o=e||{},i=[];if(o.irregular||o.regular)return o.irregular||o.regular;if(o.language)for(i=i.concat(o.language,o.extendedLanguageSubtags||[],o.script||[],o.region||[],o.variants||[]),t=o.extensions||[],r=-1;++r<t.length;)(n=t[r]).singleton&&n.extensions&&n.extensions.length&&(i=i.concat(n.singleton,n.extensions));return o.privateuse&&o.privateuse.length&&(i=i.concat("x",o.privateuse)),i.join("-")}},6934:function(e,t){var r={parseBuffer:function(e){return new n(e).parse()},addBoxProcessor:function(e,t){"string"==typeof e&&"function"==typeof t&&(o.prototype._boxProcessors[e]=t)},createFile:function(){return new n},createBox:function(e,t,r){var n=o.create(e);return t&&t.append(n,r),n},createFullBox:function(e,t,n){var o=r.createBox(e,t,n);return o.version=0,o.flags=0,o},Utils:{}};r.Utils.dataViewToString=function(e,t){var r=t||"utf-8";if("undefined"!=typeof TextDecoder)return new TextDecoder(r).decode(e);var n=[],o=0;if("utf-8"===r)for(;o<e.byteLength;){var i=e.getUint8(o++);i<128||(i<224?(i=(31&i)<<6,i|=63&e.getUint8(o++)):i<240?(i=(15&i)<<12,i|=(63&e.getUint8(o++))<<6,i|=63&e.getUint8(o++)):(i=(7&i)<<18,i|=(63&e.getUint8(o++))<<12,i|=(63&e.getUint8(o++))<<6,i|=63&e.getUint8(o++))),n.push(String.fromCharCode(i))}else for(;o<e.byteLength;)n.push(String.fromCharCode(e.getUint8(o++)));return n.join("")},r.Utils.utf8ToByteArray=function(e){var t,r;if("undefined"!=typeof TextEncoder)t=(new TextEncoder).encode(e);else for(t=[],r=0;r<e.length;++r){var n=e.charCodeAt(r);n<128?t.push(n):n<2048?(t.push(192|n>>6),t.push(128|63&n)):n<65536?(t.push(224|n>>12),t.push(128|63&n>>6),t.push(128|63&n)):(t.push(240|n>>18),t.push(128|63&n>>12),t.push(128|63&n>>6),t.push(128|63&n))}return t},r.Utils.appendBox=function(e,t,r){if(t._offset=e._cursor.offset,t._root=e._root?e._root:e,t._raw=e._raw,t._parent=e,-1!==r)if(null!=r){var n,o=-1;if("number"==typeof r)o=r;else{if("string"==typeof r)n=r;else{if("object"!=typeof r||!r.type)return void e.boxes.push(t);n=r.type}for(var i=0;i<e.boxes.length;i++)if(n===e.boxes[i].type){o=i+1;break}}e.boxes.splice(o,0,t)}else e.boxes.push(t)},t.parseBuffer=r.parseBuffer,t.addBoxProcessor=r.addBoxProcessor,t.createFile=r.createFile,t.createBox=r.createBox,t.createFullBox=r.createFullBox,t.Utils=r.Utils,r.Cursor=function(e){this.offset=void 0===e?0:e};var n=function(e){this._cursor=new r.Cursor,this.boxes=[],e&&(this._raw=new DataView(e))};n.prototype.fetch=function(e){var t=this.fetchAll(e,!0);return t.length?t[0]:null},n.prototype.fetchAll=function(e,t){var r=[];return n._sweep.call(this,e,r,t),r},n.prototype.parse=function(){for(this._cursor.offset=0,this.boxes=[];this._cursor.offset<this._raw.byteLength;){var e=o.parse(this);if(void 0===e.type)break;this.boxes.push(e)}return this},n._sweep=function(e,t,r){for(var o in this.type&&this.type==e&&t.push(this),this.boxes){if(t.length&&r)return;n._sweep.call(this.boxes[o],e,t,r)}},n.prototype.write=function(){var e,t=0;for(e=0;e<this.boxes.length;e++)t+=this.boxes[e].getLength(!1);var r=new Uint8Array(t);for(this._rawo=new DataView(r.buffer),this.bytes=r,this._cursor.offset=0,e=0;e<this.boxes.length;e++)this.boxes[e].write();return r.buffer},n.prototype.append=function(e,t){r.Utils.appendBox(this,e,t)};var o=function(){this._cursor=new r.Cursor};o.parse=function(e){var t=new o;return t._offset=e._cursor.offset,t._root=e._root?e._root:e,t._raw=e._raw,t._parent=e,t._parseBox(),e._cursor.offset=t._raw.byteOffset+t._raw.byteLength,t},o.create=function(e){var t=new o;return t.type=e,t.boxes=[],t},o.prototype._boxContainers=["dinf","edts","mdia","meco","mfra","minf","moof","moov","mvex","stbl","strk","traf","trak","tref","udta","vttc","sinf","schi","encv","enca"],o.prototype._boxProcessors={},o.prototype._procField=function(e,t,r){this._parsing?this[e]=this._readField(t,r):this._writeField(t,r,this[e])},o.prototype._procFieldArray=function(e,t,r,n){var o;if(this._parsing)for(this[e]=[],o=0;o<t;o++)this[e][o]=this._readField(r,n);else for(o=0;o<this[e].length;o++)this._writeField(r,n,this[e][o])},o.prototype._procFullBox=function(){this._procField("version","uint",8),this._procField("flags","uint",24)},o.prototype._procEntries=function(e,t,r){var n;if(this._parsing)for(this[e]=[],n=0;n<t;n++)this[e].push({}),r.call(this,this[e][n]);else for(n=0;n<t;n++)r.call(this,this[e][n])},o.prototype._procSubEntries=function(e,t,r,n){var o;if(this._parsing)for(e[t]=[],o=0;o<r;o++)e[t].push({}),n.call(this,e[t][o]);else for(o=0;o<r;o++)n.call(this,e[t][o])},o.prototype._procEntryField=function(e,t,r,n){this._parsing?e[t]=this._readField(r,n):this._writeField(r,n,e[t])},o.prototype._procSubBoxes=function(e,t){var r;if(this._parsing)for(this[e]=[],r=0;r<t;r++)this[e].push(o.parse(this));else for(r=0;r<t;r++)this._rawo?this[e][r].write():this.size+=this[e][r].getLength()},o.prototype._readField=function(e,t){switch(e){case"uint":return this._readUint(t);case"int":return this._readInt(t);case"template":return this._readTemplate(t);case"string":return-1===t?this._readTerminatedString():this._readString(t);case"data":return this._readData(t);case"utf8":return this._readUTF8String();default:return-1}},o.prototype._readInt=function(e){var t=null,r=this._cursor.offset-this._raw.byteOffset;switch(e){case 8:t=this._raw.getInt8(r);break;case 16:t=this._raw.getInt16(r);break;case 32:t=this._raw.getInt32(r);break;case 64:var n=this._raw.getInt32(r),o=this._raw.getInt32(r+4);t=n*Math.pow(2,32)+o}return this._cursor.offset+=e>>3,t},o.prototype._readUint=function(e){var t,r,n=null,o=this._cursor.offset-this._raw.byteOffset;switch(e){case 8:n=this._raw.getUint8(o);break;case 16:n=this._raw.getUint16(o);break;case 24:n=((t=this._raw.getUint16(o))<<8)+(r=this._raw.getUint8(o+2));break;case 32:n=this._raw.getUint32(o);break;case 64:t=this._raw.getUint32(o),r=this._raw.getUint32(o+4),n=t*Math.pow(2,32)+r}return this._cursor.offset+=e>>3,n},o.prototype._readString=function(e){for(var t="",r=0;r<e;r++){var n=this._readUint(8);t+=String.fromCharCode(n)}return t},o.prototype._readTemplate=function(e){return this._readUint(e/2)+this._readUint(e/2)/Math.pow(2,e/2)},o.prototype._readTerminatedString=function(){for(var e="";this._cursor.offset-this._offset<this._raw.byteLength;){var t=this._readUint(8);if(0===t)break;e+=String.fromCharCode(t)}return e},o.prototype._readData=function(e){var t=e>0?e:this._raw.byteLength-(this._cursor.offset-this._offset);if(t>0){var r=new Uint8Array(this._raw.buffer,this._cursor.offset,t);return this._cursor.offset+=t,r}return null},o.prototype._readUTF8String=function(){var e=this._raw.byteLength-(this._cursor.offset-this._offset),t=null;return e>0&&(t=new DataView(this._raw.buffer,this._cursor.offset,e),this._cursor.offset+=e),t?r.Utils.dataViewToString(t):t},o.prototype._parseBox=function(){if(this._parsing=!0,this._cursor.offset=this._offset,this._offset+8>this._raw.buffer.byteLength)this._root._incomplete=!0;else{switch(this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this.size){case 0:this._raw=new DataView(this._raw.buffer,this._offset);break;case 1:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.largesize);break;default:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.size)}this._incomplete||(this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type)?this._parseContainerBox():this._data=this._readData())}},o.prototype._parseFullBox=function(){this.version=this._readUint(8),this.flags=this._readUint(24)},o.prototype._parseContainerBox=function(){for(this.boxes=[];this._cursor.offset-this._raw.byteOffset<this._raw.byteLength;)this.boxes.push(o.parse(this))},o.prototype.append=function(e,t){r.Utils.appendBox(this,e,t)},o.prototype.getLength=function(){if(this._parsing=!1,this._rawo=null,this.size=0,this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type))for(var e=0;e<this.boxes.length;e++)this.size+=this.boxes[e].getLength();return this._data&&this._writeData(this._data),this.size},o.prototype.write=function(){switch(this._parsing=!1,this._cursor.offset=this._parent._cursor.offset,this.size){case 0:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.parent._rawo.byteLength-this._cursor.offset);break;case 1:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.largesize);break;default:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.size)}if(this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type))for(var e=0;e<this.boxes.length;e++)this.boxes[e].write();return this._data&&this._writeData(this._data),this._parent._cursor.offset+=this.size,this.size},o.prototype._writeInt=function(e,t){if(this._rawo){var r=this._cursor.offset-this._rawo.byteOffset;switch(e){case 8:this._rawo.setInt8(r,t);break;case 16:this._rawo.setInt16(r,t);break;case 32:this._rawo.setInt32(r,t);break;case 64:var n=Math.floor(t/Math.pow(2,32)),o=t-n*Math.pow(2,32);this._rawo.setUint32(r,n),this._rawo.setUint32(r+4,o)}this._cursor.offset+=e>>3}else this.size+=e>>3},o.prototype._writeUint=function(e,t){if(this._rawo){var r,n,o=this._cursor.offset-this._rawo.byteOffset;switch(e){case 8:this._rawo.setUint8(o,t);break;case 16:this._rawo.setUint16(o,t);break;case 24:r=(16776960&t)>>8,n=255&t,this._rawo.setUint16(o,r),this._rawo.setUint8(o+2,n);break;case 32:this._rawo.setUint32(o,t);break;case 64:n=t-(r=Math.floor(t/Math.pow(2,32)))*Math.pow(2,32),this._rawo.setUint32(o,r),this._rawo.setUint32(o+4,n)}this._cursor.offset+=e>>3}else this.size+=e>>3},o.prototype._writeString=function(e,t){for(var r=0;r<e;r++)this._writeUint(8,t.charCodeAt(r))},o.prototype._writeTerminatedString=function(e){if(0!==e.length){for(var t=0;t<e.length;t++)this._writeUint(8,e.charCodeAt(t));this._writeUint(8,0)}},o.prototype._writeTemplate=function(e,t){var r=Math.floor(t),n=(t-r)*Math.pow(2,e/2);this._writeUint(e/2,r),this._writeUint(e/2,n)},o.prototype._writeData=function(e){if(e)if(this._rawo){if(e instanceof Array){for(var t=this._cursor.offset-this._rawo.byteOffset,r=0;r<e.length;r++)this._rawo.setInt8(t+r,e[r]);this._cursor.offset+=e.length}e instanceof Uint8Array&&(this._root.bytes.set(e,this._cursor.offset),this._cursor.offset+=e.length)}else this.size+=e.length},o.prototype._writeUTF8String=function(e){var t=r.Utils.utf8ToByteArray(e);if(this._rawo)for(var n=new DataView(this._rawo.buffer,this._cursor.offset,t.length),o=0;o<t.length;o++)n.setUint8(o,t[o]);else this.size+=t.length},o.prototype._writeField=function(e,t,r){switch(e){case"uint":this._writeUint(t,r);break;case"int":this._writeInt(t,r);break;case"template":this._writeTemplate(t,r);break;case"string":-1==t?this._writeTerminatedString(r):this._writeString(t,r);break;case"data":this._writeData(r);break;case"utf8":this._writeUTF8String(r)}},o.prototype._boxProcessors.avc1=o.prototype._boxProcessors.avc2=o.prototype._boxProcessors.avc3=o.prototype._boxProcessors.avc4=o.prototype._boxProcessors.hvc1=o.prototype._boxProcessors.hev1=o.prototype._boxProcessors.encv=function(){this._procFieldArray("reserved1",6,"uint",8),this._procField("data_reference_index","uint",16),this._procField("pre_defined1","uint",16),this._procField("reserved2","uint",16),this._procFieldArray("pre_defined2",3,"uint",32),this._procField("width","uint",16),this._procField("height","uint",16),this._procField("horizresolution","template",32),this._procField("vertresolution","template",32),this._procField("reserved3","uint",32),this._procField("frame_count","uint",16),this._procFieldArray("compressorname",32,"uint",8),this._procField("depth","uint",16),this._procField("pre_defined3","int",16),this._procField("config","data",-1)},o.prototype._boxProcessors.ctts=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,(function(e){this._procEntryField(e,"sample_count","uint",32),this._procEntryField(e,"sample_offset",1===this.version?"int":"uint",32)}))},o.prototype._boxProcessors.dref=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procSubBoxes("entries",this.entry_count)},o.prototype._boxProcessors.elst=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,(function(e){this._procEntryField(e,"segment_duration","uint",1===this.version?64:32),this._procEntryField(e,"media_time","int",1===this.version?64:32),this._procEntryField(e,"media_rate_integer","int",16),this._procEntryField(e,"media_rate_fraction","int",16)}))},o.prototype._boxProcessors.emsg=function(){this._procFullBox(),1==this.version?(this._procField("timescale","uint",32),this._procField("presentation_time","uint",64),this._procField("event_duration","uint",32),this._procField("id","uint",32),this._procField("scheme_id_uri","string",-1),this._procField("value","string",-1)):(this._procField("scheme_id_uri","string",-1),this._procField("value","string",-1),this._procField("timescale","uint",32),this._procField("presentation_time_delta","uint",32),this._procField("event_duration","uint",32),this._procField("id","uint",32)),this._procField("message_data","data",-1)},o.prototype._boxProcessors.free=o.prototype._boxProcessors.skip=function(){this._procField("data","data",-1)},o.prototype._boxProcessors.frma=function(){this._procField("data_format","uint",32)},o.prototype._boxProcessors.ftyp=o.prototype._boxProcessors.styp=function(){this._procField("major_brand","string",4),this._procField("minor_version","uint",32);var e=-1;this._parsing&&(e=(this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset))/4),this._procFieldArray("compatible_brands",e,"string",4)},o.prototype._boxProcessors.hdlr=function(){this._procFullBox(),this._procField("pre_defined","uint",32),this._procField("handler_type","string",4),this._procFieldArray("reserved",3,"uint",32),this._procField("name","string",-1)},o.prototype._boxProcessors.mdat=function(){this._procField("data","data",-1)},o.prototype._boxProcessors.mdhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("timescale","uint",32),this._procField("duration","uint",1==this.version?64:32),this._parsing||"string"!=typeof this.language||(this.language=this.language.charCodeAt(0)-96<<10|this.language.charCodeAt(1)-96<<5|this.language.charCodeAt(2)-96),this._procField("language","uint",16),this._parsing&&(this.language=String.fromCharCode(96+(this.language>>10&31),96+(this.language>>5&31),96+(31&this.language))),this._procField("pre_defined","uint",16)},o.prototype._boxProcessors.mehd=function(){this._procFullBox(),this._procField("fragment_duration","uint",1==this.version?64:32)},o.prototype._boxProcessors.mfhd=function(){this._procFullBox(),this._procField("sequence_number","uint",32)},o.prototype._boxProcessors.mfro=function(){this._procFullBox(),this._procField("mfra_size","uint",32)},o.prototype._boxProcessors.mp4a=o.prototype._boxProcessors.enca=function(){this._procFieldArray("reserved1",6,"uint",8),this._procField("data_reference_index","uint",16),this._procFieldArray("reserved2",2,"uint",32),this._procField("channelcount","uint",16),this._procField("samplesize","uint",16),this._procField("pre_defined","uint",16),this._procField("reserved3","uint",16),this._procField("samplerate","template",32),this._procField("esds","data",-1)},o.prototype._boxProcessors.mvhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("timescale","uint",32),this._procField("duration","uint",1==this.version?64:32),this._procField("rate","template",32),this._procField("volume","template",16),this._procField("reserved1","uint",16),this._procFieldArray("reserved2",2,"uint",32),this._procFieldArray("matrix",9,"template",32),this._procFieldArray("pre_defined",6,"uint",32),this._procField("next_track_ID","uint",32)},o.prototype._boxProcessors.payl=function(){this._procField("cue_text","utf8")},o.prototype._boxProcessors.prft=function(){this._procFullBox(),this._procField("reference_track_ID","uint",32),this._procField("ntp_timestamp_sec","uint",32),this._procField("ntp_timestamp_frac","uint",32),this._procField("media_time","uint",1==this.version?64:32)},o.prototype._boxProcessors.pssh=function(){this._procFullBox(),this._procFieldArray("SystemID",16,"uint",8),this._procField("DataSize","uint",32),this._procFieldArray("Data",this.DataSize,"uint",8)},o.prototype._boxProcessors.schm=function(){this._procFullBox(),this._procField("scheme_type","uint",32),this._procField("scheme_version","uint",32),1&this.flags&&this._procField("scheme_uri","string",-1)},o.prototype._boxProcessors.sdtp=function(){this._procFullBox();var e=-1;this._parsing&&(e=this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset)),this._procFieldArray("sample_dependency_table",e,"uint",8)},o.prototype._boxProcessors.sidx=function(){this._procFullBox(),this._procField("reference_ID","uint",32),this._procField("timescale","uint",32),this._procField("earliest_presentation_time","uint",1==this.version?64:32),this._procField("first_offset","uint",1==this.version?64:32),this._procField("reserved","uint",16),this._procField("reference_count","uint",16),this._procEntries("references",this.reference_count,(function(e){this._parsing||(e.reference=(1&e.reference_type)<<31,e.reference|=2147483647&e.referenced_size,e.sap=(1&e.starts_with_SAP)<<31,e.sap|=(3&e.SAP_type)<<28,e.sap|=268435455&e.SAP_delta_time),this._procEntryField(e,"reference","uint",32),this._procEntryField(e,"subsegment_duration","uint",32),this._procEntryField(e,"sap","uint",32),this._parsing&&(e.reference_type=e.reference>>31&1,e.referenced_size=2147483647&e.reference,e.starts_with_SAP=e.sap>>31&1,e.SAP_type=e.sap>>28&7,e.SAP_delta_time=268435455&e.sap)}))},o.prototype._boxProcessors.smhd=function(){this._procFullBox(),this._procField("balance","uint",16),this._procField("reserved","uint",16)},o.prototype._boxProcessors.ssix=function(){this._procFullBox(),this._procField("subsegment_count","uint",32),this._procEntries("subsegments",this.subsegment_count,(function(e){this._procEntryField(e,"ranges_count","uint",32),this._procSubEntries(e,"ranges",e.ranges_count,(function(e){this._procEntryField(e,"level","uint",8),this._procEntryField(e,"range_size","uint",24)}))}))},o.prototype._boxProcessors.stsd=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procSubBoxes("entries",this.entry_count)},o.prototype._boxProcessors.sttg=function(){this._procField("settings","utf8")},o.prototype._boxProcessors.stts=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,(function(e){this._procEntryField(e,"sample_count","uint",32),this._procEntryField(e,"sample_delta","uint",32)}))},o.prototype._boxProcessors.subs=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,(function(e){this._procEntryField(e,"sample_delta","uint",32),this._procEntryField(e,"subsample_count","uint",16),this._procSubEntries(e,"subsamples",e.subsample_count,(function(e){this._procEntryField(e,"subsample_size","uint",1===this.version?32:16),this._procEntryField(e,"subsample_priority","uint",8),this._procEntryField(e,"discardable","uint",8),this._procEntryField(e,"codec_specific_parameters","uint",32)}))}))},o.prototype._boxProcessors.tenc=function(){this._procFullBox(),this._procField("default_IsEncrypted","uint",24),this._procField("default_IV_size","uint",8),this._procFieldArray("default_KID",16,"uint",8)},o.prototype._boxProcessors.tfdt=function(){this._procFullBox(),this._procField("baseMediaDecodeTime","uint",1==this.version?64:32)},o.prototype._boxProcessors.tfhd=function(){this._procFullBox(),this._procField("track_ID","uint",32),1&this.flags&&this._procField("base_data_offset","uint",64),2&this.flags&&this._procField("sample_description_offset","uint",32),8&this.flags&&this._procField("default_sample_duration","uint",32),16&this.flags&&this._procField("default_sample_size","uint",32),32&this.flags&&this._procField("default_sample_flags","uint",32)},o.prototype._boxProcessors.tfra=function(){this._procFullBox(),this._procField("track_ID","uint",32),this._parsing||(this.reserved=0,this.reserved|=(48&this.length_size_of_traf_num)<<4,this.reserved|=(12&this.length_size_of_trun_num)<<2,this.reserved|=3&this.length_size_of_sample_num),this._procField("reserved","uint",32),this._parsing&&(this.length_size_of_traf_num=(48&this.reserved)>>4,this.length_size_of_trun_num=(12&this.reserved)>>2,this.length_size_of_sample_num=3&this.reserved),this._procField("number_of_entry","uint",32),this._procEntries("entries",this.number_of_entry,(function(e){this._procEntryField(e,"time","uint",1===this.version?64:32),this._procEntryField(e,"moof_offset","uint",1===this.version?64:32),this._procEntryField(e,"traf_number","uint",8*(this.length_size_of_traf_num+1)),this._procEntryField(e,"trun_number","uint",8*(this.length_size_of_trun_num+1)),this._procEntryField(e,"sample_number","uint",8*(this.length_size_of_sample_num+1))}))},o.prototype._boxProcessors.tkhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("track_ID","uint",32),this._procField("reserved1","uint",32),this._procField("duration","uint",1==this.version?64:32),this._procFieldArray("reserved2",2,"uint",32),this._procField("layer","uint",16),this._procField("alternate_group","uint",16),this._procField("volume","template",16),this._procField("reserved3","uint",16),this._procFieldArray("matrix",9,"template",32),this._procField("width","template",32),this._procField("height","template",32)},o.prototype._boxProcessors.trex=function(){this._procFullBox(),this._procField("track_ID","uint",32),this._procField("default_sample_description_index","uint",32),this._procField("default_sample_duration","uint",32),this._procField("default_sample_size","uint",32),this._procField("default_sample_flags","uint",32)},o.prototype._boxProcessors.trun=function(){this._procFullBox(),this._procField("sample_count","uint",32),1&this.flags&&this._procField("data_offset","int",32),4&this.flags&&this._procField("first_sample_flags","uint",32),this._procEntries("samples",this.sample_count,(function(e){256&this.flags&&this._procEntryField(e,"sample_duration","uint",32),512&this.flags&&this._procEntryField(e,"sample_size","uint",32),1024&this.flags&&this._procEntryField(e,"sample_flags","uint",32),2048&this.flags&&this._procEntryField(e,"sample_composition_time_offset",1===this.version?"int":"uint",32)}))},o.prototype._boxProcessors["url "]=o.prototype._boxProcessors["urn "]=function(){this._procFullBox(),"urn "===this.type&&this._procField("name","string",-1),this._procField("location","string",-1)},o.prototype._boxProcessors.vlab=function(){this._procField("source_label","utf8")},o.prototype._boxProcessors.vmhd=function(){this._procFullBox(),this._procField("graphicsmode","uint",16),this._procFieldArray("opcolor",3,"uint",16)},o.prototype._boxProcessors.vttC=function(){this._procField("config","utf8")},o.prototype._boxProcessors.vtte=function(){}},3101:function(e){"use strict";var t=Array.isArray,r=Object.keys,n=Object.prototype.hasOwnProperty;e.exports=function e(o,i){if(o===i)return!0;if(o&&i&&"object"==typeof o&&"object"==typeof i){var a,s,u,l=t(o),f=t(i);if(l&&f){if((s=o.length)!=i.length)return!1;for(a=s;0!=a--;)if(!e(o[a],i[a]))return!1;return!0}if(l!=f)return!1;var c=o instanceof Date,d=i instanceof Date;if(c!=d)return!1;if(c&&d)return o.getTime()==i.getTime();var p=o instanceof RegExp,m=i instanceof RegExp;if(p!=m)return!1;if(p&&m)return o.toString()==i.toString();var h=r(o);if((s=h.length)!==r(i).length)return!1;for(a=s;0!=a--;)if(!n.call(i,h[a]))return!1;for(a=s;0!=a--;)if(!e(o[u=h[a]],i[u]))return!1;return!0}return o!=o&&i!=i}},7227:function(e,t,r){e.exports={XmlEntities:r(3726),Html4Entities:r(7152),Html5Entities:r(5417),AllHtmlEntities:r(5417)}},7152:function(e){for(var t=["apos","nbsp","iexcl","cent","pound","curren","yen","brvbar","sect","uml","copy","ordf","laquo","not","shy","reg","macr","deg","plusmn","sup2","sup3","acute","micro","para","middot","cedil","sup1","ordm","raquo","frac14","frac12","frac34","iquest","Agrave","Aacute","Acirc","Atilde","Auml","Aring","Aelig","Ccedil","Egrave","Eacute","Ecirc","Euml","Igrave","Iacute","Icirc","Iuml","ETH","Ntilde","Ograve","Oacute","Ocirc","Otilde","Ouml","times","Oslash","Ugrave","Uacute","Ucirc","Uuml","Yacute","THORN","szlig","agrave","aacute","acirc","atilde","auml","aring","aelig","ccedil","egrave","eacute","ecirc","euml","igrave","iacute","icirc","iuml","eth","ntilde","ograve","oacute","ocirc","otilde","ouml","divide","oslash","ugrave","uacute","ucirc","uuml","yacute","thorn","yuml","quot","amp","lt","gt","OElig","oelig","Scaron","scaron","Yuml","circ","tilde","ensp","emsp","thinsp","zwnj","zwj","lrm","rlm","ndash","mdash","lsquo","rsquo","sbquo","ldquo","rdquo","bdquo","dagger","Dagger","permil","lsaquo","rsaquo","euro","fnof","Alpha","Beta","Gamma","Delta","Epsilon","Zeta","Eta","Theta","Iota","Kappa","Lambda","Mu","Nu","Xi","Omicron","Pi","Rho","Sigma","Tau","Upsilon","Phi","Chi","Psi","Omega","alpha","beta","gamma","delta","epsilon","zeta","eta","theta","iota","kappa","lambda","mu","nu","xi","omicron","pi","rho","sigmaf","sigma","tau","upsilon","phi","chi","psi","omega","thetasym","upsih","piv","bull","hellip","prime","Prime","oline","frasl","weierp","image","real","trade","alefsym","larr","uarr","rarr","darr","harr","crarr","lArr","uArr","rArr","dArr","hArr","forall","part","exist","empty","nabla","isin","notin","ni","prod","sum","minus","lowast","radic","prop","infin","ang","and","or","cap","cup","int","there4","sim","cong","asymp","ne","equiv","le","ge","sub","sup","nsub","sube","supe","oplus","otimes","perp","sdot","lceil","rceil","lfloor","rfloor","lang","rang","loz","spades","clubs","hearts","diams"],r=[39,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,34,38,60,62,338,339,352,353,376,710,732,8194,8195,8201,8204,8205,8206,8207,8211,8212,8216,8217,8218,8220,8221,8222,8224,8225,8240,8249,8250,8364,402,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,977,978,982,8226,8230,8242,8243,8254,8260,8472,8465,8476,8482,8501,8592,8593,8594,8595,8596,8629,8656,8657,8658,8659,8660,8704,8706,8707,8709,8711,8712,8713,8715,8719,8721,8722,8727,8730,8733,8734,8736,8743,8744,8745,8746,8747,8756,8764,8773,8776,8800,8801,8804,8805,8834,8835,8836,8838,8839,8853,8855,8869,8901,8968,8969,8970,8971,9001,9002,9674,9824,9827,9829,9830],n={},o={},i=0,a=t.length;i<a;){var s=t[i],u=r[i];n[s]=String.fromCharCode(u),o[u]=s,i++}function l(){}l.prototype.decode=function(e){return e&&e.length?e.replace(/&(#?[\w\d]+);?/g,(function(e,t){var r;if("#"===t.charAt(0)){var o="x"===t.charAt(1).toLowerCase()?parseInt(t.substr(2),16):parseInt(t.substr(1));isNaN(o)||o<-32768||o>65535||(r=String.fromCharCode(o))}else r=n[t];return r||e})):""},l.decode=function(e){return(new l).decode(e)},l.prototype.encode=function(e){if(!e||!e.length)return"";for(var t=e.length,r="",n=0;n<t;){var i=o[e.charCodeAt(n)];r+=i?"&"+i+";":e.charAt(n),n++}return r},l.encode=function(e){return(new l).encode(e)},l.prototype.encodeNonUTF=function(e){if(!e||!e.length)return"";for(var t=e.length,r="",n=0;n<t;){var i=e.charCodeAt(n),a=o[i];r+=a?"&"+a+";":i<32||i>126?"&#"+i+";":e.charAt(n),n++}return r},l.encodeNonUTF=function(e){return(new l).encodeNonUTF(e)},l.prototype.encodeNonASCII=function(e){if(!e||!e.length)return"";for(var t=e.length,r="",n=0;n<t;){var o=e.charCodeAt(n);o<=255?r+=e[n++]:(r+="&#"+o+";",n++)}return r},l.encodeNonASCII=function(e){return(new l).encodeNonASCII(e)},e.exports=l},5417:function(e){var t=[["Aacute",[193]],["aacute",[225]],["Abreve",[258]],["abreve",[259]],["ac",[8766]],["acd",[8767]],["acE",[8766,819]],["Acirc",[194]],["acirc",[226]],["acute",[180]],["Acy",[1040]],["acy",[1072]],["AElig",[198]],["aelig",[230]],["af",[8289]],["Afr",[120068]],["afr",[120094]],["Agrave",[192]],["agrave",[224]],["alefsym",[8501]],["aleph",[8501]],["Alpha",[913]],["alpha",[945]],["Amacr",[256]],["amacr",[257]],["amalg",[10815]],["amp",[38]],["AMP",[38]],["andand",[10837]],["And",[10835]],["and",[8743]],["andd",[10844]],["andslope",[10840]],["andv",[10842]],["ang",[8736]],["ange",[10660]],["angle",[8736]],["angmsdaa",[10664]],["angmsdab",[10665]],["angmsdac",[10666]],["angmsdad",[10667]],["angmsdae",[10668]],["angmsdaf",[10669]],["angmsdag",[10670]],["angmsdah",[10671]],["angmsd",[8737]],["angrt",[8735]],["angrtvb",[8894]],["angrtvbd",[10653]],["angsph",[8738]],["angst",[197]],["angzarr",[9084]],["Aogon",[260]],["aogon",[261]],["Aopf",[120120]],["aopf",[120146]],["apacir",[10863]],["ap",[8776]],["apE",[10864]],["ape",[8778]],["apid",[8779]],["apos",[39]],["ApplyFunction",[8289]],["approx",[8776]],["approxeq",[8778]],["Aring",[197]],["aring",[229]],["Ascr",[119964]],["ascr",[119990]],["Assign",[8788]],["ast",[42]],["asymp",[8776]],["asympeq",[8781]],["Atilde",[195]],["atilde",[227]],["Auml",[196]],["auml",[228]],["awconint",[8755]],["awint",[10769]],["backcong",[8780]],["backepsilon",[1014]],["backprime",[8245]],["backsim",[8765]],["backsimeq",[8909]],["Backslash",[8726]],["Barv",[10983]],["barvee",[8893]],["barwed",[8965]],["Barwed",[8966]],["barwedge",[8965]],["bbrk",[9141]],["bbrktbrk",[9142]],["bcong",[8780]],["Bcy",[1041]],["bcy",[1073]],["bdquo",[8222]],["becaus",[8757]],["because",[8757]],["Because",[8757]],["bemptyv",[10672]],["bepsi",[1014]],["bernou",[8492]],["Bernoullis",[8492]],["Beta",[914]],["beta",[946]],["beth",[8502]],["between",[8812]],["Bfr",[120069]],["bfr",[120095]],["bigcap",[8898]],["bigcirc",[9711]],["bigcup",[8899]],["bigodot",[10752]],["bigoplus",[10753]],["bigotimes",[10754]],["bigsqcup",[10758]],["bigstar",[9733]],["bigtriangledown",[9661]],["bigtriangleup",[9651]],["biguplus",[10756]],["bigvee",[8897]],["bigwedge",[8896]],["bkarow",[10509]],["blacklozenge",[10731]],["blacksquare",[9642]],["blacktriangle",[9652]],["blacktriangledown",[9662]],["blacktriangleleft",[9666]],["blacktriangleright",[9656]],["blank",[9251]],["blk12",[9618]],["blk14",[9617]],["blk34",[9619]],["block",[9608]],["bne",[61,8421]],["bnequiv",[8801,8421]],["bNot",[10989]],["bnot",[8976]],["Bopf",[120121]],["bopf",[120147]],["bot",[8869]],["bottom",[8869]],["bowtie",[8904]],["boxbox",[10697]],["boxdl",[9488]],["boxdL",[9557]],["boxDl",[9558]],["boxDL",[9559]],["boxdr",[9484]],["boxdR",[9554]],["boxDr",[9555]],["boxDR",[9556]],["boxh",[9472]],["boxH",[9552]],["boxhd",[9516]],["boxHd",[9572]],["boxhD",[9573]],["boxHD",[9574]],["boxhu",[9524]],["boxHu",[9575]],["boxhU",[9576]],["boxHU",[9577]],["boxminus",[8863]],["boxplus",[8862]],["boxtimes",[8864]],["boxul",[9496]],["boxuL",[9563]],["boxUl",[9564]],["boxUL",[9565]],["boxur",[9492]],["boxuR",[9560]],["boxUr",[9561]],["boxUR",[9562]],["boxv",[9474]],["boxV",[9553]],["boxvh",[9532]],["boxvH",[9578]],["boxVh",[9579]],["boxVH",[9580]],["boxvl",[9508]],["boxvL",[9569]],["boxVl",[9570]],["boxVL",[9571]],["boxvr",[9500]],["boxvR",[9566]],["boxVr",[9567]],["boxVR",[9568]],["bprime",[8245]],["breve",[728]],["Breve",[728]],["brvbar",[166]],["bscr",[119991]],["Bscr",[8492]],["bsemi",[8271]],["bsim",[8765]],["bsime",[8909]],["bsolb",[10693]],["bsol",[92]],["bsolhsub",[10184]],["bull",[8226]],["bullet",[8226]],["bump",[8782]],["bumpE",[10926]],["bumpe",[8783]],["Bumpeq",[8782]],["bumpeq",[8783]],["Cacute",[262]],["cacute",[263]],["capand",[10820]],["capbrcup",[10825]],["capcap",[10827]],["cap",[8745]],["Cap",[8914]],["capcup",[10823]],["capdot",[10816]],["CapitalDifferentialD",[8517]],["caps",[8745,65024]],["caret",[8257]],["caron",[711]],["Cayleys",[8493]],["ccaps",[10829]],["Ccaron",[268]],["ccaron",[269]],["Ccedil",[199]],["ccedil",[231]],["Ccirc",[264]],["ccirc",[265]],["Cconint",[8752]],["ccups",[10828]],["ccupssm",[10832]],["Cdot",[266]],["cdot",[267]],["cedil",[184]],["Cedilla",[184]],["cemptyv",[10674]],["cent",[162]],["centerdot",[183]],["CenterDot",[183]],["cfr",[120096]],["Cfr",[8493]],["CHcy",[1063]],["chcy",[1095]],["check",[10003]],["checkmark",[10003]],["Chi",[935]],["chi",[967]],["circ",[710]],["circeq",[8791]],["circlearrowleft",[8634]],["circlearrowright",[8635]],["circledast",[8859]],["circledcirc",[8858]],["circleddash",[8861]],["CircleDot",[8857]],["circledR",[174]],["circledS",[9416]],["CircleMinus",[8854]],["CirclePlus",[8853]],["CircleTimes",[8855]],["cir",[9675]],["cirE",[10691]],["cire",[8791]],["cirfnint",[10768]],["cirmid",[10991]],["cirscir",[10690]],["ClockwiseContourIntegral",[8754]],["clubs",[9827]],["clubsuit",[9827]],["colon",[58]],["Colon",[8759]],["Colone",[10868]],["colone",[8788]],["coloneq",[8788]],["comma",[44]],["commat",[64]],["comp",[8705]],["compfn",[8728]],["complement",[8705]],["complexes",[8450]],["cong",[8773]],["congdot",[10861]],["Congruent",[8801]],["conint",[8750]],["Conint",[8751]],["ContourIntegral",[8750]],["copf",[120148]],["Copf",[8450]],["coprod",[8720]],["Coproduct",[8720]],["copy",[169]],["COPY",[169]],["copysr",[8471]],["CounterClockwiseContourIntegral",[8755]],["crarr",[8629]],["cross",[10007]],["Cross",[10799]],["Cscr",[119966]],["cscr",[119992]],["csub",[10959]],["csube",[10961]],["csup",[10960]],["csupe",[10962]],["ctdot",[8943]],["cudarrl",[10552]],["cudarrr",[10549]],["cuepr",[8926]],["cuesc",[8927]],["cularr",[8630]],["cularrp",[10557]],["cupbrcap",[10824]],["cupcap",[10822]],["CupCap",[8781]],["cup",[8746]],["Cup",[8915]],["cupcup",[10826]],["cupdot",[8845]],["cupor",[10821]],["cups",[8746,65024]],["curarr",[8631]],["curarrm",[10556]],["curlyeqprec",[8926]],["curlyeqsucc",[8927]],["curlyvee",[8910]],["curlywedge",[8911]],["curren",[164]],["curvearrowleft",[8630]],["curvearrowright",[8631]],["cuvee",[8910]],["cuwed",[8911]],["cwconint",[8754]],["cwint",[8753]],["cylcty",[9005]],["dagger",[8224]],["Dagger",[8225]],["daleth",[8504]],["darr",[8595]],["Darr",[8609]],["dArr",[8659]],["dash",[8208]],["Dashv",[10980]],["dashv",[8867]],["dbkarow",[10511]],["dblac",[733]],["Dcaron",[270]],["dcaron",[271]],["Dcy",[1044]],["dcy",[1076]],["ddagger",[8225]],["ddarr",[8650]],["DD",[8517]],["dd",[8518]],["DDotrahd",[10513]],["ddotseq",[10871]],["deg",[176]],["Del",[8711]],["Delta",[916]],["delta",[948]],["demptyv",[10673]],["dfisht",[10623]],["Dfr",[120071]],["dfr",[120097]],["dHar",[10597]],["dharl",[8643]],["dharr",[8642]],["DiacriticalAcute",[180]],["DiacriticalDot",[729]],["DiacriticalDoubleAcute",[733]],["DiacriticalGrave",[96]],["DiacriticalTilde",[732]],["diam",[8900]],["diamond",[8900]],["Diamond",[8900]],["diamondsuit",[9830]],["diams",[9830]],["die",[168]],["DifferentialD",[8518]],["digamma",[989]],["disin",[8946]],["div",[247]],["divide",[247]],["divideontimes",[8903]],["divonx",[8903]],["DJcy",[1026]],["djcy",[1106]],["dlcorn",[8990]],["dlcrop",[8973]],["dollar",[36]],["Dopf",[120123]],["dopf",[120149]],["Dot",[168]],["dot",[729]],["DotDot",[8412]],["doteq",[8784]],["doteqdot",[8785]],["DotEqual",[8784]],["dotminus",[8760]],["dotplus",[8724]],["dotsquare",[8865]],["doublebarwedge",[8966]],["DoubleContourIntegral",[8751]],["DoubleDot",[168]],["DoubleDownArrow",[8659]],["DoubleLeftArrow",[8656]],["DoubleLeftRightArrow",[8660]],["DoubleLeftTee",[10980]],["DoubleLongLeftArrow",[10232]],["DoubleLongLeftRightArrow",[10234]],["DoubleLongRightArrow",[10233]],["DoubleRightArrow",[8658]],["DoubleRightTee",[8872]],["DoubleUpArrow",[8657]],["DoubleUpDownArrow",[8661]],["DoubleVerticalBar",[8741]],["DownArrowBar",[10515]],["downarrow",[8595]],["DownArrow",[8595]],["Downarrow",[8659]],["DownArrowUpArrow",[8693]],["DownBreve",[785]],["downdownarrows",[8650]],["downharpoonleft",[8643]],["downharpoonright",[8642]],["DownLeftRightVector",[10576]],["DownLeftTeeVector",[10590]],["DownLeftVectorBar",[10582]],["DownLeftVector",[8637]],["DownRightTeeVector",[10591]],["DownRightVectorBar",[10583]],["DownRightVector",[8641]],["DownTeeArrow",[8615]],["DownTee",[8868]],["drbkarow",[10512]],["drcorn",[8991]],["drcrop",[8972]],["Dscr",[119967]],["dscr",[119993]],["DScy",[1029]],["dscy",[1109]],["dsol",[10742]],["Dstrok",[272]],["dstrok",[273]],["dtdot",[8945]],["dtri",[9663]],["dtrif",[9662]],["duarr",[8693]],["duhar",[10607]],["dwangle",[10662]],["DZcy",[1039]],["dzcy",[1119]],["dzigrarr",[10239]],["Eacute",[201]],["eacute",[233]],["easter",[10862]],["Ecaron",[282]],["ecaron",[283]],["Ecirc",[202]],["ecirc",[234]],["ecir",[8790]],["ecolon",[8789]],["Ecy",[1069]],["ecy",[1101]],["eDDot",[10871]],["Edot",[278]],["edot",[279]],["eDot",[8785]],["ee",[8519]],["efDot",[8786]],["Efr",[120072]],["efr",[120098]],["eg",[10906]],["Egrave",[200]],["egrave",[232]],["egs",[10902]],["egsdot",[10904]],["el",[10905]],["Element",[8712]],["elinters",[9191]],["ell",[8467]],["els",[10901]],["elsdot",[10903]],["Emacr",[274]],["emacr",[275]],["empty",[8709]],["emptyset",[8709]],["EmptySmallSquare",[9723]],["emptyv",[8709]],["EmptyVerySmallSquare",[9643]],["emsp13",[8196]],["emsp14",[8197]],["emsp",[8195]],["ENG",[330]],["eng",[331]],["ensp",[8194]],["Eogon",[280]],["eogon",[281]],["Eopf",[120124]],["eopf",[120150]],["epar",[8917]],["eparsl",[10723]],["eplus",[10865]],["epsi",[949]],["Epsilon",[917]],["epsilon",[949]],["epsiv",[1013]],["eqcirc",[8790]],["eqcolon",[8789]],["eqsim",[8770]],["eqslantgtr",[10902]],["eqslantless",[10901]],["Equal",[10869]],["equals",[61]],["EqualTilde",[8770]],["equest",[8799]],["Equilibrium",[8652]],["equiv",[8801]],["equivDD",[10872]],["eqvparsl",[10725]],["erarr",[10609]],["erDot",[8787]],["escr",[8495]],["Escr",[8496]],["esdot",[8784]],["Esim",[10867]],["esim",[8770]],["Eta",[919]],["eta",[951]],["ETH",[208]],["eth",[240]],["Euml",[203]],["euml",[235]],["euro",[8364]],["excl",[33]],["exist",[8707]],["Exists",[8707]],["expectation",[8496]],["exponentiale",[8519]],["ExponentialE",[8519]],["fallingdotseq",[8786]],["Fcy",[1060]],["fcy",[1092]],["female",[9792]],["ffilig",[64259]],["fflig",[64256]],["ffllig",[64260]],["Ffr",[120073]],["ffr",[120099]],["filig",[64257]],["FilledSmallSquare",[9724]],["FilledVerySmallSquare",[9642]],["fjlig",[102,106]],["flat",[9837]],["fllig",[64258]],["fltns",[9649]],["fnof",[402]],["Fopf",[120125]],["fopf",[120151]],["forall",[8704]],["ForAll",[8704]],["fork",[8916]],["forkv",[10969]],["Fouriertrf",[8497]],["fpartint",[10765]],["frac12",[189]],["frac13",[8531]],["frac14",[188]],["frac15",[8533]],["frac16",[8537]],["frac18",[8539]],["frac23",[8532]],["frac25",[8534]],["frac34",[190]],["frac35",[8535]],["frac38",[8540]],["frac45",[8536]],["frac56",[8538]],["frac58",[8541]],["frac78",[8542]],["frasl",[8260]],["frown",[8994]],["fscr",[119995]],["Fscr",[8497]],["gacute",[501]],["Gamma",[915]],["gamma",[947]],["Gammad",[988]],["gammad",[989]],["gap",[10886]],["Gbreve",[286]],["gbreve",[287]],["Gcedil",[290]],["Gcirc",[284]],["gcirc",[285]],["Gcy",[1043]],["gcy",[1075]],["Gdot",[288]],["gdot",[289]],["ge",[8805]],["gE",[8807]],["gEl",[10892]],["gel",[8923]],["geq",[8805]],["geqq",[8807]],["geqslant",[10878]],["gescc",[10921]],["ges",[10878]],["gesdot",[10880]],["gesdoto",[10882]],["gesdotol",[10884]],["gesl",[8923,65024]],["gesles",[10900]],["Gfr",[120074]],["gfr",[120100]],["gg",[8811]],["Gg",[8921]],["ggg",[8921]],["gimel",[8503]],["GJcy",[1027]],["gjcy",[1107]],["gla",[10917]],["gl",[8823]],["glE",[10898]],["glj",[10916]],["gnap",[10890]],["gnapprox",[10890]],["gne",[10888]],["gnE",[8809]],["gneq",[10888]],["gneqq",[8809]],["gnsim",[8935]],["Gopf",[120126]],["gopf",[120152]],["grave",[96]],["GreaterEqual",[8805]],["GreaterEqualLess",[8923]],["GreaterFullEqual",[8807]],["GreaterGreater",[10914]],["GreaterLess",[8823]],["GreaterSlantEqual",[10878]],["GreaterTilde",[8819]],["Gscr",[119970]],["gscr",[8458]],["gsim",[8819]],["gsime",[10894]],["gsiml",[10896]],["gtcc",[10919]],["gtcir",[10874]],["gt",[62]],["GT",[62]],["Gt",[8811]],["gtdot",[8919]],["gtlPar",[10645]],["gtquest",[10876]],["gtrapprox",[10886]],["gtrarr",[10616]],["gtrdot",[8919]],["gtreqless",[8923]],["gtreqqless",[10892]],["gtrless",[8823]],["gtrsim",[8819]],["gvertneqq",[8809,65024]],["gvnE",[8809,65024]],["Hacek",[711]],["hairsp",[8202]],["half",[189]],["hamilt",[8459]],["HARDcy",[1066]],["hardcy",[1098]],["harrcir",[10568]],["harr",[8596]],["hArr",[8660]],["harrw",[8621]],["Hat",[94]],["hbar",[8463]],["Hcirc",[292]],["hcirc",[293]],["hearts",[9829]],["heartsuit",[9829]],["hellip",[8230]],["hercon",[8889]],["hfr",[120101]],["Hfr",[8460]],["HilbertSpace",[8459]],["hksearow",[10533]],["hkswarow",[10534]],["hoarr",[8703]],["homtht",[8763]],["hookleftarrow",[8617]],["hookrightarrow",[8618]],["hopf",[120153]],["Hopf",[8461]],["horbar",[8213]],["HorizontalLine",[9472]],["hscr",[119997]],["Hscr",[8459]],["hslash",[8463]],["Hstrok",[294]],["hstrok",[295]],["HumpDownHump",[8782]],["HumpEqual",[8783]],["hybull",[8259]],["hyphen",[8208]],["Iacute",[205]],["iacute",[237]],["ic",[8291]],["Icirc",[206]],["icirc",[238]],["Icy",[1048]],["icy",[1080]],["Idot",[304]],["IEcy",[1045]],["iecy",[1077]],["iexcl",[161]],["iff",[8660]],["ifr",[120102]],["Ifr",[8465]],["Igrave",[204]],["igrave",[236]],["ii",[8520]],["iiiint",[10764]],["iiint",[8749]],["iinfin",[10716]],["iiota",[8489]],["IJlig",[306]],["ijlig",[307]],["Imacr",[298]],["imacr",[299]],["image",[8465]],["ImaginaryI",[8520]],["imagline",[8464]],["imagpart",[8465]],["imath",[305]],["Im",[8465]],["imof",[8887]],["imped",[437]],["Implies",[8658]],["incare",[8453]],["in",[8712]],["infin",[8734]],["infintie",[10717]],["inodot",[305]],["intcal",[8890]],["int",[8747]],["Int",[8748]],["integers",[8484]],["Integral",[8747]],["intercal",[8890]],["Intersection",[8898]],["intlarhk",[10775]],["intprod",[10812]],["InvisibleComma",[8291]],["InvisibleTimes",[8290]],["IOcy",[1025]],["iocy",[1105]],["Iogon",[302]],["iogon",[303]],["Iopf",[120128]],["iopf",[120154]],["Iota",[921]],["iota",[953]],["iprod",[10812]],["iquest",[191]],["iscr",[119998]],["Iscr",[8464]],["isin",[8712]],["isindot",[8949]],["isinE",[8953]],["isins",[8948]],["isinsv",[8947]],["isinv",[8712]],["it",[8290]],["Itilde",[296]],["itilde",[297]],["Iukcy",[1030]],["iukcy",[1110]],["Iuml",[207]],["iuml",[239]],["Jcirc",[308]],["jcirc",[309]],["Jcy",[1049]],["jcy",[1081]],["Jfr",[120077]],["jfr",[120103]],["jmath",[567]],["Jopf",[120129]],["jopf",[120155]],["Jscr",[119973]],["jscr",[119999]],["Jsercy",[1032]],["jsercy",[1112]],["Jukcy",[1028]],["jukcy",[1108]],["Kappa",[922]],["kappa",[954]],["kappav",[1008]],["Kcedil",[310]],["kcedil",[311]],["Kcy",[1050]],["kcy",[1082]],["Kfr",[120078]],["kfr",[120104]],["kgreen",[312]],["KHcy",[1061]],["khcy",[1093]],["KJcy",[1036]],["kjcy",[1116]],["Kopf",[120130]],["kopf",[120156]],["Kscr",[119974]],["kscr",[12e4]],["lAarr",[8666]],["Lacute",[313]],["lacute",[314]],["laemptyv",[10676]],["lagran",[8466]],["Lambda",[923]],["lambda",[955]],["lang",[10216]],["Lang",[10218]],["langd",[10641]],["langle",[10216]],["lap",[10885]],["Laplacetrf",[8466]],["laquo",[171]],["larrb",[8676]],["larrbfs",[10527]],["larr",[8592]],["Larr",[8606]],["lArr",[8656]],["larrfs",[10525]],["larrhk",[8617]],["larrlp",[8619]],["larrpl",[10553]],["larrsim",[10611]],["larrtl",[8610]],["latail",[10521]],["lAtail",[10523]],["lat",[10923]],["late",[10925]],["lates",[10925,65024]],["lbarr",[10508]],["lBarr",[10510]],["lbbrk",[10098]],["lbrace",[123]],["lbrack",[91]],["lbrke",[10635]],["lbrksld",[10639]],["lbrkslu",[10637]],["Lcaron",[317]],["lcaron",[318]],["Lcedil",[315]],["lcedil",[316]],["lceil",[8968]],["lcub",[123]],["Lcy",[1051]],["lcy",[1083]],["ldca",[10550]],["ldquo",[8220]],["ldquor",[8222]],["ldrdhar",[10599]],["ldrushar",[10571]],["ldsh",[8626]],["le",[8804]],["lE",[8806]],["LeftAngleBracket",[10216]],["LeftArrowBar",[8676]],["leftarrow",[8592]],["LeftArrow",[8592]],["Leftarrow",[8656]],["LeftArrowRightArrow",[8646]],["leftarrowtail",[8610]],["LeftCeiling",[8968]],["LeftDoubleBracket",[10214]],["LeftDownTeeVector",[10593]],["LeftDownVectorBar",[10585]],["LeftDownVector",[8643]],["LeftFloor",[8970]],["leftharpoondown",[8637]],["leftharpoonup",[8636]],["leftleftarrows",[8647]],["leftrightarrow",[8596]],["LeftRightArrow",[8596]],["Leftrightarrow",[8660]],["leftrightarrows",[8646]],["leftrightharpoons",[8651]],["leftrightsquigarrow",[8621]],["LeftRightVector",[10574]],["LeftTeeArrow",[8612]],["LeftTee",[8867]],["LeftTeeVector",[10586]],["leftthreetimes",[8907]],["LeftTriangleBar",[10703]],["LeftTriangle",[8882]],["LeftTriangleEqual",[8884]],["LeftUpDownVector",[10577]],["LeftUpTeeVector",[10592]],["LeftUpVectorBar",[10584]],["LeftUpVector",[8639]],["LeftVectorBar",[10578]],["LeftVector",[8636]],["lEg",[10891]],["leg",[8922]],["leq",[8804]],["leqq",[8806]],["leqslant",[10877]],["lescc",[10920]],["les",[10877]],["lesdot",[10879]],["lesdoto",[10881]],["lesdotor",[10883]],["lesg",[8922,65024]],["lesges",[10899]],["lessapprox",[10885]],["lessdot",[8918]],["lesseqgtr",[8922]],["lesseqqgtr",[10891]],["LessEqualGreater",[8922]],["LessFullEqual",[8806]],["LessGreater",[8822]],["lessgtr",[8822]],["LessLess",[10913]],["lesssim",[8818]],["LessSlantEqual",[10877]],["LessTilde",[8818]],["lfisht",[10620]],["lfloor",[8970]],["Lfr",[120079]],["lfr",[120105]],["lg",[8822]],["lgE",[10897]],["lHar",[10594]],["lhard",[8637]],["lharu",[8636]],["lharul",[10602]],["lhblk",[9604]],["LJcy",[1033]],["ljcy",[1113]],["llarr",[8647]],["ll",[8810]],["Ll",[8920]],["llcorner",[8990]],["Lleftarrow",[8666]],["llhard",[10603]],["lltri",[9722]],["Lmidot",[319]],["lmidot",[320]],["lmoustache",[9136]],["lmoust",[9136]],["lnap",[10889]],["lnapprox",[10889]],["lne",[10887]],["lnE",[8808]],["lneq",[10887]],["lneqq",[8808]],["lnsim",[8934]],["loang",[10220]],["loarr",[8701]],["lobrk",[10214]],["longleftarrow",[10229]],["LongLeftArrow",[10229]],["Longleftarrow",[10232]],["longleftrightarrow",[10231]],["LongLeftRightArrow",[10231]],["Longleftrightarrow",[10234]],["longmapsto",[10236]],["longrightarrow",[10230]],["LongRightArrow",[10230]],["Longrightarrow",[10233]],["looparrowleft",[8619]],["looparrowright",[8620]],["lopar",[10629]],["Lopf",[120131]],["lopf",[120157]],["loplus",[10797]],["lotimes",[10804]],["lowast",[8727]],["lowbar",[95]],["LowerLeftArrow",[8601]],["LowerRightArrow",[8600]],["loz",[9674]],["lozenge",[9674]],["lozf",[10731]],["lpar",[40]],["lparlt",[10643]],["lrarr",[8646]],["lrcorner",[8991]],["lrhar",[8651]],["lrhard",[10605]],["lrm",[8206]],["lrtri",[8895]],["lsaquo",[8249]],["lscr",[120001]],["Lscr",[8466]],["lsh",[8624]],["Lsh",[8624]],["lsim",[8818]],["lsime",[10893]],["lsimg",[10895]],["lsqb",[91]],["lsquo",[8216]],["lsquor",[8218]],["Lstrok",[321]],["lstrok",[322]],["ltcc",[10918]],["ltcir",[10873]],["lt",[60]],["LT",[60]],["Lt",[8810]],["ltdot",[8918]],["lthree",[8907]],["ltimes",[8905]],["ltlarr",[10614]],["ltquest",[10875]],["ltri",[9667]],["ltrie",[8884]],["ltrif",[9666]],["ltrPar",[10646]],["lurdshar",[10570]],["luruhar",[10598]],["lvertneqq",[8808,65024]],["lvnE",[8808,65024]],["macr",[175]],["male",[9794]],["malt",[10016]],["maltese",[10016]],["Map",[10501]],["map",[8614]],["mapsto",[8614]],["mapstodown",[8615]],["mapstoleft",[8612]],["mapstoup",[8613]],["marker",[9646]],["mcomma",[10793]],["Mcy",[1052]],["mcy",[1084]],["mdash",[8212]],["mDDot",[8762]],["measuredangle",[8737]],["MediumSpace",[8287]],["Mellintrf",[8499]],["Mfr",[120080]],["mfr",[120106]],["mho",[8487]],["micro",[181]],["midast",[42]],["midcir",[10992]],["mid",[8739]],["middot",[183]],["minusb",[8863]],["minus",[8722]],["minusd",[8760]],["minusdu",[10794]],["MinusPlus",[8723]],["mlcp",[10971]],["mldr",[8230]],["mnplus",[8723]],["models",[8871]],["Mopf",[120132]],["mopf",[120158]],["mp",[8723]],["mscr",[120002]],["Mscr",[8499]],["mstpos",[8766]],["Mu",[924]],["mu",[956]],["multimap",[8888]],["mumap",[8888]],["nabla",[8711]],["Nacute",[323]],["nacute",[324]],["nang",[8736,8402]],["nap",[8777]],["napE",[10864,824]],["napid",[8779,824]],["napos",[329]],["napprox",[8777]],["natural",[9838]],["naturals",[8469]],["natur",[9838]],["nbsp",[160]],["nbump",[8782,824]],["nbumpe",[8783,824]],["ncap",[10819]],["Ncaron",[327]],["ncaron",[328]],["Ncedil",[325]],["ncedil",[326]],["ncong",[8775]],["ncongdot",[10861,824]],["ncup",[10818]],["Ncy",[1053]],["ncy",[1085]],["ndash",[8211]],["nearhk",[10532]],["nearr",[8599]],["neArr",[8663]],["nearrow",[8599]],["ne",[8800]],["nedot",[8784,824]],["NegativeMediumSpace",[8203]],["NegativeThickSpace",[8203]],["NegativeThinSpace",[8203]],["NegativeVeryThinSpace",[8203]],["nequiv",[8802]],["nesear",[10536]],["nesim",[8770,824]],["NestedGreaterGreater",[8811]],["NestedLessLess",[8810]],["nexist",[8708]],["nexists",[8708]],["Nfr",[120081]],["nfr",[120107]],["ngE",[8807,824]],["nge",[8817]],["ngeq",[8817]],["ngeqq",[8807,824]],["ngeqslant",[10878,824]],["nges",[10878,824]],["nGg",[8921,824]],["ngsim",[8821]],["nGt",[8811,8402]],["ngt",[8815]],["ngtr",[8815]],["nGtv",[8811,824]],["nharr",[8622]],["nhArr",[8654]],["nhpar",[10994]],["ni",[8715]],["nis",[8956]],["nisd",[8954]],["niv",[8715]],["NJcy",[1034]],["njcy",[1114]],["nlarr",[8602]],["nlArr",[8653]],["nldr",[8229]],["nlE",[8806,824]],["nle",[8816]],["nleftarrow",[8602]],["nLeftarrow",[8653]],["nleftrightarrow",[8622]],["nLeftrightarrow",[8654]],["nleq",[8816]],["nleqq",[8806,824]],["nleqslant",[10877,824]],["nles",[10877,824]],["nless",[8814]],["nLl",[8920,824]],["nlsim",[8820]],["nLt",[8810,8402]],["nlt",[8814]],["nltri",[8938]],["nltrie",[8940]],["nLtv",[8810,824]],["nmid",[8740]],["NoBreak",[8288]],["NonBreakingSpace",[160]],["nopf",[120159]],["Nopf",[8469]],["Not",[10988]],["not",[172]],["NotCongruent",[8802]],["NotCupCap",[8813]],["NotDoubleVerticalBar",[8742]],["NotElement",[8713]],["NotEqual",[8800]],["NotEqualTilde",[8770,824]],["NotExists",[8708]],["NotGreater",[8815]],["NotGreaterEqual",[8817]],["NotGreaterFullEqual",[8807,824]],["NotGreaterGreater",[8811,824]],["NotGreaterLess",[8825]],["NotGreaterSlantEqual",[10878,824]],["NotGreaterTilde",[8821]],["NotHumpDownHump",[8782,824]],["NotHumpEqual",[8783,824]],["notin",[8713]],["notindot",[8949,824]],["notinE",[8953,824]],["notinva",[8713]],["notinvb",[8951]],["notinvc",[8950]],["NotLeftTriangleBar",[10703,824]],["NotLeftTriangle",[8938]],["NotLeftTriangleEqual",[8940]],["NotLess",[8814]],["NotLessEqual",[8816]],["NotLessGreater",[8824]],["NotLessLess",[8810,824]],["NotLessSlantEqual",[10877,824]],["NotLessTilde",[8820]],["NotNestedGreaterGreater",[10914,824]],["NotNestedLessLess",[10913,824]],["notni",[8716]],["notniva",[8716]],["notnivb",[8958]],["notnivc",[8957]],["NotPrecedes",[8832]],["NotPrecedesEqual",[10927,824]],["NotPrecedesSlantEqual",[8928]],["NotReverseElement",[8716]],["NotRightTriangleBar",[10704,824]],["NotRightTriangle",[8939]],["NotRightTriangleEqual",[8941]],["NotSquareSubset",[8847,824]],["NotSquareSubsetEqual",[8930]],["NotSquareSuperset",[8848,824]],["NotSquareSupersetEqual",[8931]],["NotSubset",[8834,8402]],["NotSubsetEqual",[8840]],["NotSucceeds",[8833]],["NotSucceedsEqual",[10928,824]],["NotSucceedsSlantEqual",[8929]],["NotSucceedsTilde",[8831,824]],["NotSuperset",[8835,8402]],["NotSupersetEqual",[8841]],["NotTilde",[8769]],["NotTildeEqual",[8772]],["NotTildeFullEqual",[8775]],["NotTildeTilde",[8777]],["NotVerticalBar",[8740]],["nparallel",[8742]],["npar",[8742]],["nparsl",[11005,8421]],["npart",[8706,824]],["npolint",[10772]],["npr",[8832]],["nprcue",[8928]],["nprec",[8832]],["npreceq",[10927,824]],["npre",[10927,824]],["nrarrc",[10547,824]],["nrarr",[8603]],["nrArr",[8655]],["nrarrw",[8605,824]],["nrightarrow",[8603]],["nRightarrow",[8655]],["nrtri",[8939]],["nrtrie",[8941]],["nsc",[8833]],["nsccue",[8929]],["nsce",[10928,824]],["Nscr",[119977]],["nscr",[120003]],["nshortmid",[8740]],["nshortparallel",[8742]],["nsim",[8769]],["nsime",[8772]],["nsimeq",[8772]],["nsmid",[8740]],["nspar",[8742]],["nsqsube",[8930]],["nsqsupe",[8931]],["nsub",[8836]],["nsubE",[10949,824]],["nsube",[8840]],["nsubset",[8834,8402]],["nsubseteq",[8840]],["nsubseteqq",[10949,824]],["nsucc",[8833]],["nsucceq",[10928,824]],["nsup",[8837]],["nsupE",[10950,824]],["nsupe",[8841]],["nsupset",[8835,8402]],["nsupseteq",[8841]],["nsupseteqq",[10950,824]],["ntgl",[8825]],["Ntilde",[209]],["ntilde",[241]],["ntlg",[8824]],["ntriangleleft",[8938]],["ntrianglelefteq",[8940]],["ntriangleright",[8939]],["ntrianglerighteq",[8941]],["Nu",[925]],["nu",[957]],["num",[35]],["numero",[8470]],["numsp",[8199]],["nvap",[8781,8402]],["nvdash",[8876]],["nvDash",[8877]],["nVdash",[8878]],["nVDash",[8879]],["nvge",[8805,8402]],["nvgt",[62,8402]],["nvHarr",[10500]],["nvinfin",[10718]],["nvlArr",[10498]],["nvle",[8804,8402]],["nvlt",[60,8402]],["nvltrie",[8884,8402]],["nvrArr",[10499]],["nvrtrie",[8885,8402]],["nvsim",[8764,8402]],["nwarhk",[10531]],["nwarr",[8598]],["nwArr",[8662]],["nwarrow",[8598]],["nwnear",[10535]],["Oacute",[211]],["oacute",[243]],["oast",[8859]],["Ocirc",[212]],["ocirc",[244]],["ocir",[8858]],["Ocy",[1054]],["ocy",[1086]],["odash",[8861]],["Odblac",[336]],["odblac",[337]],["odiv",[10808]],["odot",[8857]],["odsold",[10684]],["OElig",[338]],["oelig",[339]],["ofcir",[10687]],["Ofr",[120082]],["ofr",[120108]],["ogon",[731]],["Ograve",[210]],["ograve",[242]],["ogt",[10689]],["ohbar",[10677]],["ohm",[937]],["oint",[8750]],["olarr",[8634]],["olcir",[10686]],["olcross",[10683]],["oline",[8254]],["olt",[10688]],["Omacr",[332]],["omacr",[333]],["Omega",[937]],["omega",[969]],["Omicron",[927]],["omicron",[959]],["omid",[10678]],["ominus",[8854]],["Oopf",[120134]],["oopf",[120160]],["opar",[10679]],["OpenCurlyDoubleQuote",[8220]],["OpenCurlyQuote",[8216]],["operp",[10681]],["oplus",[8853]],["orarr",[8635]],["Or",[10836]],["or",[8744]],["ord",[10845]],["order",[8500]],["orderof",[8500]],["ordf",[170]],["ordm",[186]],["origof",[8886]],["oror",[10838]],["orslope",[10839]],["orv",[10843]],["oS",[9416]],["Oscr",[119978]],["oscr",[8500]],["Oslash",[216]],["oslash",[248]],["osol",[8856]],["Otilde",[213]],["otilde",[245]],["otimesas",[10806]],["Otimes",[10807]],["otimes",[8855]],["Ouml",[214]],["ouml",[246]],["ovbar",[9021]],["OverBar",[8254]],["OverBrace",[9182]],["OverBracket",[9140]],["OverParenthesis",[9180]],["para",[182]],["parallel",[8741]],["par",[8741]],["parsim",[10995]],["parsl",[11005]],["part",[8706]],["PartialD",[8706]],["Pcy",[1055]],["pcy",[1087]],["percnt",[37]],["period",[46]],["permil",[8240]],["perp",[8869]],["pertenk",[8241]],["Pfr",[120083]],["pfr",[120109]],["Phi",[934]],["phi",[966]],["phiv",[981]],["phmmat",[8499]],["phone",[9742]],["Pi",[928]],["pi",[960]],["pitchfork",[8916]],["piv",[982]],["planck",[8463]],["planckh",[8462]],["plankv",[8463]],["plusacir",[10787]],["plusb",[8862]],["pluscir",[10786]],["plus",[43]],["plusdo",[8724]],["plusdu",[10789]],["pluse",[10866]],["PlusMinus",[177]],["plusmn",[177]],["plussim",[10790]],["plustwo",[10791]],["pm",[177]],["Poincareplane",[8460]],["pointint",[10773]],["popf",[120161]],["Popf",[8473]],["pound",[163]],["prap",[10935]],["Pr",[10939]],["pr",[8826]],["prcue",[8828]],["precapprox",[10935]],["prec",[8826]],["preccurlyeq",[8828]],["Precedes",[8826]],["PrecedesEqual",[10927]],["PrecedesSlantEqual",[8828]],["PrecedesTilde",[8830]],["preceq",[10927]],["precnapprox",[10937]],["precneqq",[10933]],["precnsim",[8936]],["pre",[10927]],["prE",[10931]],["precsim",[8830]],["prime",[8242]],["Prime",[8243]],["primes",[8473]],["prnap",[10937]],["prnE",[10933]],["prnsim",[8936]],["prod",[8719]],["Product",[8719]],["profalar",[9006]],["profline",[8978]],["profsurf",[8979]],["prop",[8733]],["Proportional",[8733]],["Proportion",[8759]],["propto",[8733]],["prsim",[8830]],["prurel",[8880]],["Pscr",[119979]],["pscr",[120005]],["Psi",[936]],["psi",[968]],["puncsp",[8200]],["Qfr",[120084]],["qfr",[120110]],["qint",[10764]],["qopf",[120162]],["Qopf",[8474]],["qprime",[8279]],["Qscr",[119980]],["qscr",[120006]],["quaternions",[8461]],["quatint",[10774]],["quest",[63]],["questeq",[8799]],["quot",[34]],["QUOT",[34]],["rAarr",[8667]],["race",[8765,817]],["Racute",[340]],["racute",[341]],["radic",[8730]],["raemptyv",[10675]],["rang",[10217]],["Rang",[10219]],["rangd",[10642]],["range",[10661]],["rangle",[10217]],["raquo",[187]],["rarrap",[10613]],["rarrb",[8677]],["rarrbfs",[10528]],["rarrc",[10547]],["rarr",[8594]],["Rarr",[8608]],["rArr",[8658]],["rarrfs",[10526]],["rarrhk",[8618]],["rarrlp",[8620]],["rarrpl",[10565]],["rarrsim",[10612]],["Rarrtl",[10518]],["rarrtl",[8611]],["rarrw",[8605]],["ratail",[10522]],["rAtail",[10524]],["ratio",[8758]],["rationals",[8474]],["rbarr",[10509]],["rBarr",[10511]],["RBarr",[10512]],["rbbrk",[10099]],["rbrace",[125]],["rbrack",[93]],["rbrke",[10636]],["rbrksld",[10638]],["rbrkslu",[10640]],["Rcaron",[344]],["rcaron",[345]],["Rcedil",[342]],["rcedil",[343]],["rceil",[8969]],["rcub",[125]],["Rcy",[1056]],["rcy",[1088]],["rdca",[10551]],["rdldhar",[10601]],["rdquo",[8221]],["rdquor",[8221]],["CloseCurlyDoubleQuote",[8221]],["rdsh",[8627]],["real",[8476]],["realine",[8475]],["realpart",[8476]],["reals",[8477]],["Re",[8476]],["rect",[9645]],["reg",[174]],["REG",[174]],["ReverseElement",[8715]],["ReverseEquilibrium",[8651]],["ReverseUpEquilibrium",[10607]],["rfisht",[10621]],["rfloor",[8971]],["rfr",[120111]],["Rfr",[8476]],["rHar",[10596]],["rhard",[8641]],["rharu",[8640]],["rharul",[10604]],["Rho",[929]],["rho",[961]],["rhov",[1009]],["RightAngleBracket",[10217]],["RightArrowBar",[8677]],["rightarrow",[8594]],["RightArrow",[8594]],["Rightarrow",[8658]],["RightArrowLeftArrow",[8644]],["rightarrowtail",[8611]],["RightCeiling",[8969]],["RightDoubleBracket",[10215]],["RightDownTeeVector",[10589]],["RightDownVectorBar",[10581]],["RightDownVector",[8642]],["RightFloor",[8971]],["rightharpoondown",[8641]],["rightharpoonup",[8640]],["rightleftarrows",[8644]],["rightleftharpoons",[8652]],["rightrightarrows",[8649]],["rightsquigarrow",[8605]],["RightTeeArrow",[8614]],["RightTee",[8866]],["RightTeeVector",[10587]],["rightthreetimes",[8908]],["RightTriangleBar",[10704]],["RightTriangle",[8883]],["RightTriangleEqual",[8885]],["RightUpDownVector",[10575]],["RightUpTeeVector",[10588]],["RightUpVectorBar",[10580]],["RightUpVector",[8638]],["RightVectorBar",[10579]],["RightVector",[8640]],["ring",[730]],["risingdotseq",[8787]],["rlarr",[8644]],["rlhar",[8652]],["rlm",[8207]],["rmoustache",[9137]],["rmoust",[9137]],["rnmid",[10990]],["roang",[10221]],["roarr",[8702]],["robrk",[10215]],["ropar",[10630]],["ropf",[120163]],["Ropf",[8477]],["roplus",[10798]],["rotimes",[10805]],["RoundImplies",[10608]],["rpar",[41]],["rpargt",[10644]],["rppolint",[10770]],["rrarr",[8649]],["Rrightarrow",[8667]],["rsaquo",[8250]],["rscr",[120007]],["Rscr",[8475]],["rsh",[8625]],["Rsh",[8625]],["rsqb",[93]],["rsquo",[8217]],["rsquor",[8217]],["CloseCurlyQuote",[8217]],["rthree",[8908]],["rtimes",[8906]],["rtri",[9657]],["rtrie",[8885]],["rtrif",[9656]],["rtriltri",[10702]],["RuleDelayed",[10740]],["ruluhar",[10600]],["rx",[8478]],["Sacute",[346]],["sacute",[347]],["sbquo",[8218]],["scap",[10936]],["Scaron",[352]],["scaron",[353]],["Sc",[10940]],["sc",[8827]],["sccue",[8829]],["sce",[10928]],["scE",[10932]],["Scedil",[350]],["scedil",[351]],["Scirc",[348]],["scirc",[349]],["scnap",[10938]],["scnE",[10934]],["scnsim",[8937]],["scpolint",[10771]],["scsim",[8831]],["Scy",[1057]],["scy",[1089]],["sdotb",[8865]],["sdot",[8901]],["sdote",[10854]],["searhk",[10533]],["searr",[8600]],["seArr",[8664]],["searrow",[8600]],["sect",[167]],["semi",[59]],["seswar",[10537]],["setminus",[8726]],["setmn",[8726]],["sext",[10038]],["Sfr",[120086]],["sfr",[120112]],["sfrown",[8994]],["sharp",[9839]],["SHCHcy",[1065]],["shchcy",[1097]],["SHcy",[1064]],["shcy",[1096]],["ShortDownArrow",[8595]],["ShortLeftArrow",[8592]],["shortmid",[8739]],["shortparallel",[8741]],["ShortRightArrow",[8594]],["ShortUpArrow",[8593]],["shy",[173]],["Sigma",[931]],["sigma",[963]],["sigmaf",[962]],["sigmav",[962]],["sim",[8764]],["simdot",[10858]],["sime",[8771]],["simeq",[8771]],["simg",[10910]],["simgE",[10912]],["siml",[10909]],["simlE",[10911]],["simne",[8774]],["simplus",[10788]],["simrarr",[10610]],["slarr",[8592]],["SmallCircle",[8728]],["smallsetminus",[8726]],["smashp",[10803]],["smeparsl",[10724]],["smid",[8739]],["smile",[8995]],["smt",[10922]],["smte",[10924]],["smtes",[10924,65024]],["SOFTcy",[1068]],["softcy",[1100]],["solbar",[9023]],["solb",[10692]],["sol",[47]],["Sopf",[120138]],["sopf",[120164]],["spades",[9824]],["spadesuit",[9824]],["spar",[8741]],["sqcap",[8851]],["sqcaps",[8851,65024]],["sqcup",[8852]],["sqcups",[8852,65024]],["Sqrt",[8730]],["sqsub",[8847]],["sqsube",[8849]],["sqsubset",[8847]],["sqsubseteq",[8849]],["sqsup",[8848]],["sqsupe",[8850]],["sqsupset",[8848]],["sqsupseteq",[8850]],["square",[9633]],["Square",[9633]],["SquareIntersection",[8851]],["SquareSubset",[8847]],["SquareSubsetEqual",[8849]],["SquareSuperset",[8848]],["SquareSupersetEqual",[8850]],["SquareUnion",[8852]],["squarf",[9642]],["squ",[9633]],["squf",[9642]],["srarr",[8594]],["Sscr",[119982]],["sscr",[120008]],["ssetmn",[8726]],["ssmile",[8995]],["sstarf",[8902]],["Star",[8902]],["star",[9734]],["starf",[9733]],["straightepsilon",[1013]],["straightphi",[981]],["strns",[175]],["sub",[8834]],["Sub",[8912]],["subdot",[10941]],["subE",[10949]],["sube",[8838]],["subedot",[10947]],["submult",[10945]],["subnE",[10955]],["subne",[8842]],["subplus",[10943]],["subrarr",[10617]],["subset",[8834]],["Subset",[8912]],["subseteq",[8838]],["subseteqq",[10949]],["SubsetEqual",[8838]],["subsetneq",[8842]],["subsetneqq",[10955]],["subsim",[10951]],["subsub",[10965]],["subsup",[10963]],["succapprox",[10936]],["succ",[8827]],["succcurlyeq",[8829]],["Succeeds",[8827]],["SucceedsEqual",[10928]],["SucceedsSlantEqual",[8829]],["SucceedsTilde",[8831]],["succeq",[10928]],["succnapprox",[10938]],["succneqq",[10934]],["succnsim",[8937]],["succsim",[8831]],["SuchThat",[8715]],["sum",[8721]],["Sum",[8721]],["sung",[9834]],["sup1",[185]],["sup2",[178]],["sup3",[179]],["sup",[8835]],["Sup",[8913]],["supdot",[10942]],["supdsub",[10968]],["supE",[10950]],["supe",[8839]],["supedot",[10948]],["Superset",[8835]],["SupersetEqual",[8839]],["suphsol",[10185]],["suphsub",[10967]],["suplarr",[10619]],["supmult",[10946]],["supnE",[10956]],["supne",[8843]],["supplus",[10944]],["supset",[8835]],["Supset",[8913]],["supseteq",[8839]],["supseteqq",[10950]],["supsetneq",[8843]],["supsetneqq",[10956]],["supsim",[10952]],["supsub",[10964]],["supsup",[10966]],["swarhk",[10534]],["swarr",[8601]],["swArr",[8665]],["swarrow",[8601]],["swnwar",[10538]],["szlig",[223]],["Tab",[9]],["target",[8982]],["Tau",[932]],["tau",[964]],["tbrk",[9140]],["Tcaron",[356]],["tcaron",[357]],["Tcedil",[354]],["tcedil",[355]],["Tcy",[1058]],["tcy",[1090]],["tdot",[8411]],["telrec",[8981]],["Tfr",[120087]],["tfr",[120113]],["there4",[8756]],["therefore",[8756]],["Therefore",[8756]],["Theta",[920]],["theta",[952]],["thetasym",[977]],["thetav",[977]],["thickapprox",[8776]],["thicksim",[8764]],["ThickSpace",[8287,8202]],["ThinSpace",[8201]],["thinsp",[8201]],["thkap",[8776]],["thksim",[8764]],["THORN",[222]],["thorn",[254]],["tilde",[732]],["Tilde",[8764]],["TildeEqual",[8771]],["TildeFullEqual",[8773]],["TildeTilde",[8776]],["timesbar",[10801]],["timesb",[8864]],["times",[215]],["timesd",[10800]],["tint",[8749]],["toea",[10536]],["topbot",[9014]],["topcir",[10993]],["top",[8868]],["Topf",[120139]],["topf",[120165]],["topfork",[10970]],["tosa",[10537]],["tprime",[8244]],["trade",[8482]],["TRADE",[8482]],["triangle",[9653]],["triangledown",[9663]],["triangleleft",[9667]],["trianglelefteq",[8884]],["triangleq",[8796]],["triangleright",[9657]],["trianglerighteq",[8885]],["tridot",[9708]],["trie",[8796]],["triminus",[10810]],["TripleDot",[8411]],["triplus",[10809]],["trisb",[10701]],["tritime",[10811]],["trpezium",[9186]],["Tscr",[119983]],["tscr",[120009]],["TScy",[1062]],["tscy",[1094]],["TSHcy",[1035]],["tshcy",[1115]],["Tstrok",[358]],["tstrok",[359]],["twixt",[8812]],["twoheadleftarrow",[8606]],["twoheadrightarrow",[8608]],["Uacute",[218]],["uacute",[250]],["uarr",[8593]],["Uarr",[8607]],["uArr",[8657]],["Uarrocir",[10569]],["Ubrcy",[1038]],["ubrcy",[1118]],["Ubreve",[364]],["ubreve",[365]],["Ucirc",[219]],["ucirc",[251]],["Ucy",[1059]],["ucy",[1091]],["udarr",[8645]],["Udblac",[368]],["udblac",[369]],["udhar",[10606]],["ufisht",[10622]],["Ufr",[120088]],["ufr",[120114]],["Ugrave",[217]],["ugrave",[249]],["uHar",[10595]],["uharl",[8639]],["uharr",[8638]],["uhblk",[9600]],["ulcorn",[8988]],["ulcorner",[8988]],["ulcrop",[8975]],["ultri",[9720]],["Umacr",[362]],["umacr",[363]],["uml",[168]],["UnderBar",[95]],["UnderBrace",[9183]],["UnderBracket",[9141]],["UnderParenthesis",[9181]],["Union",[8899]],["UnionPlus",[8846]],["Uogon",[370]],["uogon",[371]],["Uopf",[120140]],["uopf",[120166]],["UpArrowBar",[10514]],["uparrow",[8593]],["UpArrow",[8593]],["Uparrow",[8657]],["UpArrowDownArrow",[8645]],["updownarrow",[8597]],["UpDownArrow",[8597]],["Updownarrow",[8661]],["UpEquilibrium",[10606]],["upharpoonleft",[8639]],["upharpoonright",[8638]],["uplus",[8846]],["UpperLeftArrow",[8598]],["UpperRightArrow",[8599]],["upsi",[965]],["Upsi",[978]],["upsih",[978]],["Upsilon",[933]],["upsilon",[965]],["UpTeeArrow",[8613]],["UpTee",[8869]],["upuparrows",[8648]],["urcorn",[8989]],["urcorner",[8989]],["urcrop",[8974]],["Uring",[366]],["uring",[367]],["urtri",[9721]],["Uscr",[119984]],["uscr",[120010]],["utdot",[8944]],["Utilde",[360]],["utilde",[361]],["utri",[9653]],["utrif",[9652]],["uuarr",[8648]],["Uuml",[220]],["uuml",[252]],["uwangle",[10663]],["vangrt",[10652]],["varepsilon",[1013]],["varkappa",[1008]],["varnothing",[8709]],["varphi",[981]],["varpi",[982]],["varpropto",[8733]],["varr",[8597]],["vArr",[8661]],["varrho",[1009]],["varsigma",[962]],["varsubsetneq",[8842,65024]],["varsubsetneqq",[10955,65024]],["varsupsetneq",[8843,65024]],["varsupsetneqq",[10956,65024]],["vartheta",[977]],["vartriangleleft",[8882]],["vartriangleright",[8883]],["vBar",[10984]],["Vbar",[10987]],["vBarv",[10985]],["Vcy",[1042]],["vcy",[1074]],["vdash",[8866]],["vDash",[8872]],["Vdash",[8873]],["VDash",[8875]],["Vdashl",[10982]],["veebar",[8891]],["vee",[8744]],["Vee",[8897]],["veeeq",[8794]],["vellip",[8942]],["verbar",[124]],["Verbar",[8214]],["vert",[124]],["Vert",[8214]],["VerticalBar",[8739]],["VerticalLine",[124]],["VerticalSeparator",[10072]],["VerticalTilde",[8768]],["VeryThinSpace",[8202]],["Vfr",[120089]],["vfr",[120115]],["vltri",[8882]],["vnsub",[8834,8402]],["vnsup",[8835,8402]],["Vopf",[120141]],["vopf",[120167]],["vprop",[8733]],["vrtri",[8883]],["Vscr",[119985]],["vscr",[120011]],["vsubnE",[10955,65024]],["vsubne",[8842,65024]],["vsupnE",[10956,65024]],["vsupne",[8843,65024]],["Vvdash",[8874]],["vzigzag",[10650]],["Wcirc",[372]],["wcirc",[373]],["wedbar",[10847]],["wedge",[8743]],["Wedge",[8896]],["wedgeq",[8793]],["weierp",[8472]],["Wfr",[120090]],["wfr",[120116]],["Wopf",[120142]],["wopf",[120168]],["wp",[8472]],["wr",[8768]],["wreath",[8768]],["Wscr",[119986]],["wscr",[120012]],["xcap",[8898]],["xcirc",[9711]],["xcup",[8899]],["xdtri",[9661]],["Xfr",[120091]],["xfr",[120117]],["xharr",[10231]],["xhArr",[10234]],["Xi",[926]],["xi",[958]],["xlarr",[10229]],["xlArr",[10232]],["xmap",[10236]],["xnis",[8955]],["xodot",[10752]],["Xopf",[120143]],["xopf",[120169]],["xoplus",[10753]],["xotime",[10754]],["xrarr",[10230]],["xrArr",[10233]],["Xscr",[119987]],["xscr",[120013]],["xsqcup",[10758]],["xuplus",[10756]],["xutri",[9651]],["xvee",[8897]],["xwedge",[8896]],["Yacute",[221]],["yacute",[253]],["YAcy",[1071]],["yacy",[1103]],["Ycirc",[374]],["ycirc",[375]],["Ycy",[1067]],["ycy",[1099]],["yen",[165]],["Yfr",[120092]],["yfr",[120118]],["YIcy",[1031]],["yicy",[1111]],["Yopf",[120144]],["yopf",[120170]],["Yscr",[119988]],["yscr",[120014]],["YUcy",[1070]],["yucy",[1102]],["yuml",[255]],["Yuml",[376]],["Zacute",[377]],["zacute",[378]],["Zcaron",[381]],["zcaron",[382]],["Zcy",[1047]],["zcy",[1079]],["Zdot",[379]],["zdot",[380]],["zeetrf",[8488]],["ZeroWidthSpace",[8203]],["Zeta",[918]],["zeta",[950]],["zfr",[120119]],["Zfr",[8488]],["ZHcy",[1046]],["zhcy",[1078]],["zigrarr",[8669]],["zopf",[120171]],["Zopf",[8484]],["Zscr",[119989]],["zscr",[120015]],["zwj",[8205]],["zwnj",[8204]]],r={},n={};function o(){}!function(e,r){for(var n=t.length,o=[];n--;){var i,a=t[n],s=a[0],u=a[1],l=u[0],f=l<32||l>126||62===l||60===l||38===l||34===l||39===l;if(f&&(i=r[l]=r[l]||{}),u[1]){var c=u[1];e[s]=String.fromCharCode(l)+String.fromCharCode(c),o.push(f&&(i[c]=s))}else e[s]=String.fromCharCode(l),o.push(f&&(i[""]=s))}}(r,n),o.prototype.decode=function(e){return e&&e.length?e.replace(/&(#?[\w\d]+);?/g,(function(e,t){var n;if("#"===t.charAt(0)){var o="x"===t.charAt(1)?parseInt(t.substr(2).toLowerCase(),16):parseInt(t.substr(1));isNaN(o)||o<-32768||o>65535||(n=String.fromCharCode(o))}else n=r[t];return n||e})):""},o.decode=function(e){return(new o).decode(e)},o.prototype.encode=function(e){if(!e||!e.length)return"";for(var t=e.length,r="",o=0;o<t;){var i=n[e.charCodeAt(o)];if(i){var a=i[e.charCodeAt(o+1)];if(a?o++:a=i[""],a){r+="&"+a+";",o++;continue}}r+=e.charAt(o),o++}return r},o.encode=function(e){return(new o).encode(e)},o.prototype.encodeNonUTF=function(e){if(!e||!e.length)return"";for(var t=e.length,r="",o=0;o<t;){var i=e.charCodeAt(o),a=n[i];if(a){var s=a[e.charCodeAt(o+1)];if(s?o++:s=a[""],s){r+="&"+s+";",o++;continue}}r+=i<32||i>126?"&#"+i+";":e.charAt(o),o++}return r},o.encodeNonUTF=function(e){return(new o).encodeNonUTF(e)},o.prototype.encodeNonASCII=function(e){if(!e||!e.length)return"";for(var t=e.length,r="",n=0;n<t;){var o=e.charCodeAt(n);o<=255?r+=e[n++]:(r+="&#"+o+";",n++)}return r},o.encodeNonASCII=function(e){return(new o).encodeNonASCII(e)},e.exports=o},3726:function(e){var t={"<":"<",">":">",""":'"',"&apos":"'","&":"&","<":"<",">":">",""":'"',"'":"'","&":"&"},r={60:"lt",62:"gt",34:"quot",39:"apos",38:"amp"},n={"<":"<",">":">",'"':""","'":"'","&":"&"};function o(){}o.prototype.encode=function(e){return e&&e.length?e.replace(/<|>|"|'|&/g,(function(e){return n[e]})):""},o.encode=function(e){return(new o).encode(e)},o.prototype.decode=function(e){return e&&e.length?e.replace(/&#?[0-9a-zA-Z]+;?/g,(function(e){if("#"===e.charAt(1)){var r="x"===e.charAt(2).toLowerCase()?parseInt(e.substr(3),16):parseInt(e.substr(2));return isNaN(r)||r<-32768||r>65535?"":String.fromCharCode(r)}return t[e]||e})):""},o.decode=function(e){return(new o).decode(e)},o.prototype.encodeNonUTF=function(e){if(!e||!e.length)return"";for(var t=e.length,n="",o=0;o<t;){var i=e.charCodeAt(o),a=r[i];a?(n+="&"+a+";",o++):(n+=i<32||i>126?"&#"+i+";":e.charAt(o),o++)}return n},o.encodeNonUTF=function(e){return(new o).encodeNonUTF(e)},o.prototype.encodeNonASCII=function(e){if(!e||!e.length)return"";for(var t=e.length,r="",n=0;n<t;){var o=e.charCodeAt(n);o<=255?r+=e[n++]:(r+="&#"+o+";",n++)}return r},o.encodeNonASCII=function(e){return(new o).encodeNonASCII(e)},e.exports=o},3516:function(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}},2219:function(e,t,r){"use strict";var n=r(3516),o=r(395);e.exports=function(e){return n(e)||o(e)}},395:function(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},8729:function(e,t,r){e.exports=function e(t,r,n){function o(a,s){if(!r[a]){if(!t[a]){if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=r[a]={exports:{}};t[a][0].call(l.exports,(function(e){return o(t[a][1][e]||e)}),l,l.exports,e,t,r,n)}return r[a].exports}for(var i=void 0,a=0;a<n.length;a++)o(n[a]);return o}({1:[function(e,t,n){(function(e){"use strict";var r,n,o=e.MutationObserver||e.WebKitMutationObserver;if(o){var i=0,a=new o(f),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),r=function(){s.data=i=++i%2}}else if(e.setImmediate||void 0===e.MessageChannel)r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){f(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(f,0)};else{var u=new e.MessageChannel;u.port1.onmessage=f,r=function(){u.port2.postMessage(0)}}var l=[];function f(){var e,t;n=!0;for(var r=l.length;r;){for(t=l,l=[],e=-1;++e<r;)t[e]();r=l.length}n=!1}t.exports=function(e){1!==l.push(e)||n||r()}}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,r){"use strict";var n=e(1);function o(){}var i={},a=["REJECTED"],s=["FULFILLED"],u=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,e!==o&&p(this,e)}function f(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function c(e,t,r){n((function(){var n;try{n=t(r)}catch(t){return i.reject(e,t)}n===e?i.reject(e,new TypeError("Cannot resolve promise with itself")):i.resolve(e,n)}))}function d(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function p(e,t){var r=!1;function n(t){r||(r=!0,i.reject(e,t))}function o(t){r||(r=!0,i.resolve(e,t))}var a=m((function(){t(o,n)}));"error"===a.status&&n(a.value)}function m(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}t.exports=l,l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var r=new this.constructor(o);return this.state!==u?c(r,this.state===s?e:t,this.outcome):this.queue.push(new f(r,e,t)),r},f.prototype.callFulfilled=function(e){i.resolve(this.promise,e)},f.prototype.otherCallFulfilled=function(e){c(this.promise,this.onFulfilled,e)},f.prototype.callRejected=function(e){i.reject(this.promise,e)},f.prototype.otherCallRejected=function(e){c(this.promise,this.onRejected,e)},i.resolve=function(e,t){var r=m(d,t);if("error"===r.status)return i.reject(e,r.value);var n=r.value;if(n)p(e,n);else{e.state=s,e.outcome=t;for(var o=-1,a=e.queue.length;++o<a;)e.queue[o].callFulfilled(t)}return e},i.reject=function(e,t){e.state=a,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:i.resolve(new this(o),e)},l.reject=function(e){var t=new this(o);return i.reject(t,e)},l.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var a=new Array(r),s=0,u=-1,l=new this(o);++u<r;)f(e[u],u);return l;function f(e,o){t.resolve(e).then((function(e){a[o]=e,++s!==r||n||(n=!0,i.resolve(l,a))}),(function(e){n||(n=!0,i.reject(l,e))}))}},l.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r,n=e.length,a=!1;if(!n)return this.resolve([]);for(var s=-1,u=new this(o);++s<n;)r=e[s],t.resolve(r).then((function(e){a||(a=!0,i.resolve(u,e))}),(function(e){a||(a=!0,i.reject(u,e))}));return u}},{1:1}],3:[function(e,t,n){(function(t){"use strict";"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var o=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}();function i(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(o){if("TypeError"!==o.name)throw o;for(var r=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),n=0;n<e.length;n+=1)r.append(e[n]);return r.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var a=Promise;function s(e,t){t&&e.then((function(e){t(null,e)}),(function(e){t(e)}))}function u(e,t,r){"function"==typeof t&&e.then(t),"function"==typeof r&&e.catch(r)}function l(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function f(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var c="local-forage-detect-blob-support",d=void 0,p={},m=Object.prototype.toString,h="readonly",g="readwrite";function _(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),o=0;o<t;o++)n[o]=e.charCodeAt(o);return r}function v(e){return"boolean"==typeof d?a.resolve(d):function(e){return new a((function(t){var r=e.transaction(c,g),n=i([""]);r.objectStore(c).put(n,"key"),r.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},r.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),r=navigator.userAgent.match(/Edge\//);t(r||!e||parseInt(e[1],10)>=43)}})).catch((function(){return!1}))}(e).then((function(e){return d=e}))}function y(e){var t=p[e.name],r={};r.promise=new a((function(e,t){r.resolve=e,r.reject=t})),t.deferredOperations.push(r),t.dbReady?t.dbReady=t.dbReady.then((function(){return r.promise})):t.dbReady=r.promise}function E(e){var t=p[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function b(e,t){var r=p[e.name].deferredOperations.pop();if(r)return r.reject(t),r.promise}function T(e,t){return new a((function(r,n){if(p[e.name]=p[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return r(e.db);y(e),e.db.close()}var i=[e.name];t&&i.push(e.version);var a=o.open.apply(o,i);t&&(a.onupgradeneeded=function(t){var r=a.result;try{r.createObjectStore(e.storeName),t.oldVersion<=1&&r.createObjectStore(c)}catch(r){if("ConstraintError"!==r.name)throw r;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),a.onerror=function(e){e.preventDefault(),n(a.error)},a.onsuccess=function(){r(a.result),E(e)}}))}function A(e){return T(e,!1)}function S(e){return T(e,!0)}function I(e,t){if(!e.db)return!0;var r=!e.db.objectStoreNames.contains(e.storeName),n=e.version<e.db.version,o=e.version>e.db.version;if(n&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),o||r){if(r){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function R(e){return i([_(atob(e.data))],{type:e.type})}function w(e){return e&&e.__local_forage_encoded_blob}function N(e){var t=this,r=t._initReady().then((function(){var e=p[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return u(r,e,e),r}function O(e,t,r,n){void 0===n&&(n=1);try{var o=e.db.transaction(e.storeName,t);r(null,o)}catch(o){if(n>0&&(!e.db||"InvalidStateError"===o.name||"NotFoundError"===o.name))return a.resolve().then((function(){if(!e.db||"NotFoundError"===o.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),S(e)})).then((function(){return function(e){y(e);for(var t=p[e.name],r=t.forages,n=0;n<r.length;n++){var o=r[n];o._dbInfo.db&&(o._dbInfo.db.close(),o._dbInfo.db=null)}return e.db=null,A(e).then((function(t){return e.db=t,I(e)?S(e):t})).then((function(n){e.db=t.db=n;for(var o=0;o<r.length;o++)r[o]._dbInfo.db=n})).catch((function(t){throw b(e,t),t}))}(e).then((function(){O(e,t,r,n-1)}))})).catch(r);r(o)}}var D={_driver:"asyncStorage",_initStorage:function(e){var t=this,r={db:null};if(e)for(var n in e)r[n]=e[n];var o=p[r.name];o||(o={forages:[],db:null,dbReady:null,deferredOperations:[]},p[r.name]=o),o.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=N);var i=[];function s(){return a.resolve()}for(var u=0;u<o.forages.length;u++){var l=o.forages[u];l!==t&&i.push(l._initReady().catch(s))}var f=o.forages.slice(0);return a.all(i).then((function(){return r.db=o.db,A(r)})).then((function(e){return r.db=e,I(r,t._defaultConfig.version)?S(r):e})).then((function(e){r.db=o.db=e,t._dbInfo=r;for(var n=0;n<f.length;n++){var i=f[n];i!==t&&(i._dbInfo.db=r.db,i._dbInfo.version=r.version)}}))},_support:function(){try{if(!o)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}(),iterate:function(e,t){var r=this,n=new a((function(t,n){r.ready().then((function(){O(r._dbInfo,h,(function(o,i){if(o)return n(o);try{var a=i.objectStore(r._dbInfo.storeName).openCursor(),s=1;a.onsuccess=function(){var r=a.result;if(r){var n=r.value;w(n)&&(n=R(n));var o=e(n,r.key,s++);void 0!==o?t(o):r.continue()}else t()},a.onerror=function(){n(a.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,t),n},getItem:function(e,t){var r=this;e=l(e);var n=new a((function(t,n){r.ready().then((function(){O(r._dbInfo,h,(function(o,i){if(o)return n(o);try{var a=i.objectStore(r._dbInfo.storeName).get(e);a.onsuccess=function(){var e=a.result;void 0===e&&(e=null),w(e)&&(e=R(e)),t(e)},a.onerror=function(){n(a.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,t),n},setItem:function(e,t,r){var n=this;e=l(e);var o=new a((function(r,o){var i;n.ready().then((function(){return i=n._dbInfo,"[object Blob]"===m.call(t)?v(i.db).then((function(e){return e?t:(r=t,new a((function(e,t){var n=new FileReader;n.onerror=t,n.onloadend=function(t){var n=btoa(t.target.result||"");e({__local_forage_encoded_blob:!0,data:n,type:r.type})},n.readAsBinaryString(r)})));var r})):t})).then((function(t){O(n._dbInfo,g,(function(i,a){if(i)return o(i);try{var s=a.objectStore(n._dbInfo.storeName);null===t&&(t=void 0);var u=s.put(t,e);a.oncomplete=function(){void 0===t&&(t=null),r(t)},a.onabort=a.onerror=function(){var e=u.error?u.error:u.transaction.error;o(e)}}catch(e){o(e)}}))})).catch(o)}));return s(o,r),o},removeItem:function(e,t){var r=this;e=l(e);var n=new a((function(t,n){r.ready().then((function(){O(r._dbInfo,g,(function(o,i){if(o)return n(o);try{var a=i.objectStore(r._dbInfo.storeName).delete(e);i.oncomplete=function(){t()},i.onerror=function(){n(a.error)},i.onabort=function(){var e=a.error?a.error:a.transaction.error;n(e)}}catch(e){n(e)}}))})).catch(n)}));return s(n,t),n},clear:function(e){var t=this,r=new a((function(e,r){t.ready().then((function(){O(t._dbInfo,g,(function(n,o){if(n)return r(n);try{var i=o.objectStore(t._dbInfo.storeName).clear();o.oncomplete=function(){e()},o.onabort=o.onerror=function(){var e=i.error?i.error:i.transaction.error;r(e)}}catch(e){r(e)}}))})).catch(r)}));return s(r,e),r},length:function(e){var t=this,r=new a((function(e,r){t.ready().then((function(){O(t._dbInfo,h,(function(n,o){if(n)return r(n);try{var i=o.objectStore(t._dbInfo.storeName).count();i.onsuccess=function(){e(i.result)},i.onerror=function(){r(i.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,e),r},key:function(e,t){var r=this,n=new a((function(t,n){e<0?t(null):r.ready().then((function(){O(r._dbInfo,h,(function(o,i){if(o)return n(o);try{var a=i.objectStore(r._dbInfo.storeName),s=!1,u=a.openCursor();u.onsuccess=function(){var r=u.result;r?0===e||s?t(r.key):(s=!0,r.advance(e)):t(null)},u.onerror=function(){n(u.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,t),n},keys:function(e){var t=this,r=new a((function(e,r){t.ready().then((function(){O(t._dbInfo,h,(function(n,o){if(n)return r(n);try{var i=o.objectStore(t._dbInfo.storeName).openCursor(),a=[];i.onsuccess=function(){var t=i.result;t?(a.push(t.key),t.continue()):e(a)},i.onerror=function(){r(i.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,e),r},dropInstance:function(e,t){t=f.apply(this,arguments);var r=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||r.name,e.storeName=e.storeName||r.storeName);var n,i=this;if(e.name){var u=e.name===r.name&&i._dbInfo.db?a.resolve(i._dbInfo.db):A(e).then((function(t){var r=p[e.name],n=r.forages;r.db=t;for(var o=0;o<n.length;o++)n[o]._dbInfo.db=t;return t}));n=e.storeName?u.then((function(t){if(t.objectStoreNames.contains(e.storeName)){var r=t.version+1;y(e);var n=p[e.name],i=n.forages;t.close();for(var s=0;s<i.length;s++){var u=i[s];u._dbInfo.db=null,u._dbInfo.version=r}var l=new a((function(t,n){var i=o.open(e.name,r);i.onerror=function(e){i.result.close(),n(e)},i.onupgradeneeded=function(){i.result.deleteObjectStore(e.storeName)},i.onsuccess=function(){var e=i.result;e.close(),t(e)}}));return l.then((function(e){n.db=e;for(var t=0;t<i.length;t++){var r=i[t];r._dbInfo.db=e,E(r._dbInfo)}})).catch((function(t){throw(b(e,t)||a.resolve()).catch((function(){})),t}))}})):u.then((function(t){y(e);var r=p[e.name],n=r.forages;t.close();for(var i=0;i<n.length;i++)n[i]._dbInfo.db=null;var s=new a((function(t,r){var n=o.deleteDatabase(e.name);n.onerror=n.onblocked=function(e){var t=n.result;t&&t.close(),r(e)},n.onsuccess=function(){var e=n.result;e&&e.close(),t(e)}}));return s.then((function(e){r.db=e;for(var t=0;t<n.length;t++)E(n[t]._dbInfo)})).catch((function(t){throw(b(e,t)||a.resolve()).catch((function(){})),t}))}))}else n=a.reject("Invalid arguments");return s(n,t),n}};var C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",P=/^~~local_forage_type~([^~]+)~/,L="__lfsc__:",M=L.length,x="arbf",F="blob",k="si08",U="ui08",B="uic8",q="si16",G="si32",j="ur16",z="ui32",H="fl32",Y="fl64",V=M+x.length,W=Object.prototype.toString;function X(e){var t,r,n,o,i,a=.75*e.length,s=e.length,u=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var l=new ArrayBuffer(a),f=new Uint8Array(l);for(t=0;t<s;t+=4)r=C.indexOf(e[t]),n=C.indexOf(e[t+1]),o=C.indexOf(e[t+2]),i=C.indexOf(e[t+3]),f[u++]=r<<2|n>>4,f[u++]=(15&n)<<4|o>>2,f[u++]=(3&o)<<6|63&i;return l}function K(e){var t,r=new Uint8Array(e),n="";for(t=0;t<r.length;t+=3)n+=C[r[t]>>2],n+=C[(3&r[t])<<4|r[t+1]>>4],n+=C[(15&r[t+1])<<2|r[t+2]>>6],n+=C[63&r[t+2]];return r.length%3==2?n=n.substring(0,n.length-1)+"=":r.length%3==1&&(n=n.substring(0,n.length-2)+"=="),n}var Q={serialize:function(e,t){var r="";if(e&&(r=W.call(e)),e&&("[object ArrayBuffer]"===r||e.buffer&&"[object ArrayBuffer]"===W.call(e.buffer))){var n,o=L;e instanceof ArrayBuffer?(n=e,o+=x):(n=e.buffer,"[object Int8Array]"===r?o+=k:"[object Uint8Array]"===r?o+=U:"[object Uint8ClampedArray]"===r?o+=B:"[object Int16Array]"===r?o+=q:"[object Uint16Array]"===r?o+=j:"[object Int32Array]"===r?o+=G:"[object Uint32Array]"===r?o+=z:"[object Float32Array]"===r?o+=H:"[object Float64Array]"===r?o+=Y:t(new Error("Failed to get type for BinaryArray"))),t(o+K(n))}else if("[object Blob]"===r){var i=new FileReader;i.onload=function(){var r="~~local_forage_type~"+e.type+"~"+K(this.result);t(L+F+r)},i.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(r){console.error("Couldn't convert value into a JSON string: ",e),t(null,r)}},deserialize:function(e){if(e.substring(0,M)!==L)return JSON.parse(e);var t,r=e.substring(V),n=e.substring(M,V);if(n===F&&P.test(r)){var o=r.match(P);t=o[1],r=r.substring(o[0].length)}var a=X(r);switch(n){case x:return a;case F:return i([a],{type:t});case k:return new Int8Array(a);case U:return new Uint8Array(a);case B:return new Uint8ClampedArray(a);case q:return new Int16Array(a);case j:return new Uint16Array(a);case G:return new Int32Array(a);case z:return new Uint32Array(a);case H:return new Float32Array(a);case Y:return new Float64Array(a);default:throw new Error("Unkown type: "+n)}},stringToBuffer:X,bufferToString:K};function $(e,t,r,n){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],r,n)}function Z(e,t,r,n,o,i){e.executeSql(r,n,o,(function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,s){s.rows.length?i(e,a):$(e,t,(function(){e.executeSql(r,n,o,i)}),i)}),i):i(e,a)}),i)}function J(e,t,r,n){var o=this;e=l(e);var i=new a((function(i,a){o.ready().then((function(){void 0===t&&(t=null);var s=t,u=o._dbInfo;u.serializer.serialize(t,(function(t,l){l?a(l):u.db.transaction((function(r){Z(r,u,"INSERT OR REPLACE INTO "+u.storeName+" (key, value) VALUES (?, ?)",[e,t],(function(){i(s)}),(function(e,t){a(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(n>0)return void i(J.apply(o,[e,s,r,n-1]));a(t)}}))}))})).catch(a)}));return s(i,r),i}function ee(e){return new a((function(t,r){e.transaction((function(n){n.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(r,n){for(var o=[],i=0;i<n.rows.length;i++)o.push(n.rows.item(i).name);t({db:e,storeNames:o})}),(function(e,t){r(t)}))}),(function(e){r(e)}))}))}var te={_driver:"webSQLStorage",_initStorage:function(e){var t=this,r={db:null};if(e)for(var n in e)r[n]="string"!=typeof e[n]?e[n].toString():e[n];var o=new a((function(e,n){try{r.db=openDatabase(r.name,String(r.version),r.description,r.size)}catch(e){return n(e)}r.db.transaction((function(o){$(o,r,(function(){t._dbInfo=r,e()}),(function(e,t){n(t)}))}),n)}));return r.serializer=Q,o},_support:"function"==typeof openDatabase,iterate:function(e,t){var r=this,n=new a((function(t,n){r.ready().then((function(){var o=r._dbInfo;o.db.transaction((function(r){Z(r,o,"SELECT * FROM "+o.storeName,[],(function(r,n){for(var i=n.rows,a=i.length,s=0;s<a;s++){var u=i.item(s),l=u.value;if(l&&(l=o.serializer.deserialize(l)),void 0!==(l=e(l,u.key,s+1)))return void t(l)}t()}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,t),n},getItem:function(e,t){var r=this;e=l(e);var n=new a((function(t,n){r.ready().then((function(){var o=r._dbInfo;o.db.transaction((function(r){Z(r,o,"SELECT * FROM "+o.storeName+" WHERE key = ? LIMIT 1",[e],(function(e,r){var n=r.rows.length?r.rows.item(0).value:null;n&&(n=o.serializer.deserialize(n)),t(n)}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,t),n},setItem:function(e,t,r){return J.apply(this,[e,t,r,1])},removeItem:function(e,t){var r=this;e=l(e);var n=new a((function(t,n){r.ready().then((function(){var o=r._dbInfo;o.db.transaction((function(r){Z(r,o,"DELETE FROM "+o.storeName+" WHERE key = ?",[e],(function(){t()}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,t),n},clear:function(e){var t=this,r=new a((function(e,r){t.ready().then((function(){var n=t._dbInfo;n.db.transaction((function(t){Z(t,n,"DELETE FROM "+n.storeName,[],(function(){e()}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,e),r},length:function(e){var t=this,r=new a((function(e,r){t.ready().then((function(){var n=t._dbInfo;n.db.transaction((function(t){Z(t,n,"SELECT COUNT(key) as c FROM "+n.storeName,[],(function(t,r){var n=r.rows.item(0).c;e(n)}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,e),r},key:function(e,t){var r=this,n=new a((function(t,n){r.ready().then((function(){var o=r._dbInfo;o.db.transaction((function(r){Z(r,o,"SELECT key FROM "+o.storeName+" WHERE id = ? LIMIT 1",[e+1],(function(e,r){var n=r.rows.length?r.rows.item(0).key:null;t(n)}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,t),n},keys:function(e){var t=this,r=new a((function(e,r){t.ready().then((function(){var n=t._dbInfo;n.db.transaction((function(t){Z(t,n,"SELECT key FROM "+n.storeName,[],(function(t,r){for(var n=[],o=0;o<r.rows.length;o++)n.push(r.rows.item(o).key);e(n)}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,e),r},dropInstance:function(e,t){t=f.apply(this,arguments);var r=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||r.name,e.storeName=e.storeName||r.storeName);var n,o=this;return s(n=e.name?new a((function(t){var n;n=e.name===r.name?o._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:n,storeNames:[e.storeName]}):t(ee(n))})).then((function(e){return new a((function(t,r){e.db.transaction((function(n){function o(e){return new a((function(t,r){n.executeSql("DROP TABLE IF EXISTS "+e,[],(function(){t()}),(function(e,t){r(t)}))}))}for(var i=[],s=0,u=e.storeNames.length;s<u;s++)i.push(o(e.storeNames[s]));a.all(i).then((function(){t()})).catch((function(e){r(e)}))}),(function(e){r(e)}))}))})):a.reject("Invalid arguments"),t),n}};function re(e,t){var r=e.name+"/";return e.storeName!==t.storeName&&(r+=e.storeName+"/"),r}function ne(){return!function(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch(e){return!0}}()||localStorage.length>0}var oe={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var r in e)t[r]=e[r];return t.keyPrefix=re(e,this._defaultConfig),ne()?(this._dbInfo=t,t.serializer=Q,a.resolve()):a.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var r=this,n=r.ready().then((function(){for(var t=r._dbInfo,n=t.keyPrefix,o=n.length,i=localStorage.length,a=1,s=0;s<i;s++){var u=localStorage.key(s);if(0===u.indexOf(n)){var l=localStorage.getItem(u);if(l&&(l=t.serializer.deserialize(l)),void 0!==(l=e(l,u.substring(o),a++)))return l}}}));return s(n,t),n},getItem:function(e,t){var r=this;e=l(e);var n=r.ready().then((function(){var t=r._dbInfo,n=localStorage.getItem(t.keyPrefix+e);return n&&(n=t.serializer.deserialize(n)),n}));return s(n,t),n},setItem:function(e,t,r){var n=this;e=l(e);var o=n.ready().then((function(){void 0===t&&(t=null);var r=t;return new a((function(o,i){var a=n._dbInfo;a.serializer.serialize(t,(function(t,n){if(n)i(n);else try{localStorage.setItem(a.keyPrefix+e,t),o(r)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||i(e),i(e)}}))}))}));return s(o,r),o},removeItem:function(e,t){var r=this;e=l(e);var n=r.ready().then((function(){var t=r._dbInfo;localStorage.removeItem(t.keyPrefix+e)}));return s(n,t),n},clear:function(e){var t=this,r=t.ready().then((function(){for(var e=t._dbInfo.keyPrefix,r=localStorage.length-1;r>=0;r--){var n=localStorage.key(r);0===n.indexOf(e)&&localStorage.removeItem(n)}}));return s(r,e),r},length:function(e){var t=this.keys().then((function(e){return e.length}));return s(t,e),t},key:function(e,t){var r=this,n=r.ready().then((function(){var t,n=r._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(n.keyPrefix.length)),t}));return s(n,t),n},keys:function(e){var t=this,r=t.ready().then((function(){for(var e=t._dbInfo,r=localStorage.length,n=[],o=0;o<r;o++){var i=localStorage.key(o);0===i.indexOf(e.keyPrefix)&&n.push(i.substring(e.keyPrefix.length))}return n}));return s(r,e),r},dropInstance:function(e,t){if(t=f.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var r=this.config();e.name=e.name||r.name,e.storeName=e.storeName||r.storeName}var n,o=this;return n=e.name?new a((function(t){e.storeName?t(re(e,o._defaultConfig)):t(e.name+"/")})).then((function(e){for(var t=localStorage.length-1;t>=0;t--){var r=localStorage.key(t);0===r.indexOf(e)&&localStorage.removeItem(r)}})):a.reject("Invalid arguments"),s(n,t),n}},ie=function(e,t){for(var r=e.length,n=0;n<r;){if((o=e[n])===(i=t)||"number"==typeof o&&"number"==typeof i&&isNaN(o)&&isNaN(i))return!0;n++}var o,i;return!1},ae=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},se={},ue={},le={INDEXEDDB:D,WEBSQL:te,LOCALSTORAGE:oe},fe=[le.INDEXEDDB._driver,le.WEBSQL._driver,le.LOCALSTORAGE._driver],ce=["dropInstance"],de=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(ce),pe={description:"",driver:fe.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function me(e,t){e[t]=function(){var r=arguments;return e.ready().then((function(){return e[t].apply(e,r)}))}}function he(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var r in t)t.hasOwnProperty(r)&&(ae(t[r])?arguments[0][r]=t[r].slice():arguments[0][r]=t[r])}return arguments[0]}var ge=function(){function e(t){for(var r in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),le)if(le.hasOwnProperty(r)){var n=le[r],o=n._driver;this[r]=o,se[o]||this.defineDriver(n)}this._defaultConfig=he({},pe),this._config=he({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch((function(){}))}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":n(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,r){var n=new a((function(t,r){try{var n=e._driver,o=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void r(o);for(var i=de.concat("_initStorage"),u=0,l=i.length;u<l;u++){var f=i[u];if((!ie(ce,f)||e[f])&&"function"!=typeof e[f])return void r(o)}!function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),r=a.reject(t);return s(r,arguments[arguments.length-1]),r}},r=0,n=ce.length;r<n;r++){var o=ce[r];e[o]||(e[o]=t(o))}}();var c=function(r){se[n]&&console.info("Redefining LocalForage driver: "+n),se[n]=e,ue[n]=r,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(c,r):c(!!e._support):c(!0)}catch(e){r(e)}}));return u(n,t,r),n},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,r){var n=se[e]?a.resolve(se[e]):a.reject(new Error("Driver not found."));return u(n,t,r),n},e.prototype.getSerializer=function(e){var t=a.resolve(Q);return u(t,e),t},e.prototype.ready=function(e){var t=this,r=t._driverSet.then((function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready}));return u(r,e,e),r},e.prototype.setDriver=function(e,t,r){var n=this;ae(e)||(e=[e]);var o=this._getSupportedDrivers(e);function i(){n._config.driver=n.driver()}function s(e){return n._extend(e),i(),n._ready=n._initStorage(n._config),n._ready}var l=null!==this._driverSet?this._driverSet.catch((function(){return a.resolve()})):a.resolve();return this._driverSet=l.then((function(){var e=o[0];return n._dbInfo=null,n._ready=null,n.getDriver(e).then((function(e){n._driver=e._driver,i(),n._wrapLibraryMethodsWithReady(),n._initDriver=function(e){return function(){var t=0;return function r(){for(;t<e.length;){var o=e[t];return t++,n._dbInfo=null,n._ready=null,n.getDriver(o).then(s).catch(r)}i();var u=new Error("No available storage method found.");return n._driverSet=a.reject(u),n._driverSet}()}}(o)}))})).catch((function(){i();var e=new Error("No available storage method found.");return n._driverSet=a.reject(e),n._driverSet})),u(this._driverSet,t,r),this._driverSet},e.prototype.supports=function(e){return!!ue[e]},e.prototype._extend=function(e){he(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],r=0,n=e.length;r<n;r++){var o=e[r];this.supports(o)&&t.push(o)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=de.length;e<t;e++)me(this,de[e])},e.prototype.createInstance=function(t){return new e(t)},e}(),_e=new ge;t.exports=_e},{3:3}]},{},[4])(4)},3875:function(e){"use strict";function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",o=0,i=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(i===s-1||1===a);else if(i!==s-1&&2===a){if(n.length<2||2!==o||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var u=n.lastIndexOf("/");if(u!==n.length-1){-1===u?(n="",o=0):o=(n=n.slice(0,u)).length-1-n.lastIndexOf("/"),i=s,a=0;continue}}else if(2===n.length||1===n.length){n="",o=0,i=s,a=0;continue}t&&(n.length>0?n+="/..":n="..",o=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),o=s-i-1;i=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var n={resolve:function(){for(var e,n="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a;i>=0?a=arguments[i]:(void 0===e&&(e=process.cwd()),a=e),t(a),0!==a.length&&(n=a+"/"+n,o=47===a.charCodeAt(0))}return n=r(n,!o),o?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&o&&(e+="/"),n?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,r=0;r<arguments.length;++r){var o=arguments[r];t(o),o.length>0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":n.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r)return"";if((e=n.resolve(e))===(r=n.resolve(r)))return"";for(var o=1;o<e.length&&47===e.charCodeAt(o);++o);for(var i=e.length,a=i-o,s=1;s<r.length&&47===r.charCodeAt(s);++s);for(var u=r.length-s,l=a<u?a:u,f=-1,c=0;c<=l;++c){if(c===l){if(u>l){if(47===r.charCodeAt(s+c))return r.slice(s+c+1);if(0===c)return r.slice(s+c)}else a>l&&(47===e.charCodeAt(o+c)?f=c:0===c&&(f=0));break}var d=e.charCodeAt(o+c);if(d!==r.charCodeAt(s+c))break;47===d&&(f=c)}var p="";for(c=o+f+1;c<=i;++c)c!==i&&47!==e.charCodeAt(c)||(0===p.length?p+="..":p+="/..");return p.length>0?p+r.slice(s+f):(s+=f,47===r.charCodeAt(s)&&++s,r.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,o=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(r=e.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return-1===o?n?"/":".":n&&1===o?"//":e.slice(0,o)},basename:function(e,r){if(void 0!==r&&"string"!=typeof r)throw new TypeError('"ext" argument must be a string');t(e);var n,o=0,i=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var s=r.length-1,u=-1;for(n=e.length-1;n>=0;--n){var l=e.charCodeAt(n);if(47===l){if(!a){o=n+1;break}}else-1===u&&(a=!1,u=n+1),s>=0&&(l===r.charCodeAt(s)?-1==--s&&(i=n):(s=-1,i=u))}return o===i?i=u:-1===i&&(i=e.length),e.slice(o,i)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!a){o=n+1;break}}else-1===i&&(a=!1,i=n+1);return-1===i?"":e.slice(o,i)},extname:function(e){t(e);for(var r=-1,n=0,o=-1,i=!0,a=0,s=e.length-1;s>=0;--s){var u=e.charCodeAt(s);if(47!==u)-1===o&&(i=!1,o=s+1),46===u?-1===r?r=s:1!==a&&(a=1):-1!==r&&(a=-1);else if(!i){n=s+1;break}}return-1===r||-1===o||0===a||1===a&&r===o-1&&r===n+1?"":e.slice(r,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+"/"+n:n}(0,e)},parse:function(e){t(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var n,o=e.charCodeAt(0),i=47===o;i?(r.root="/",n=1):n=0;for(var a=-1,s=0,u=-1,l=!0,f=e.length-1,c=0;f>=n;--f)if(47!==(o=e.charCodeAt(f)))-1===u&&(l=!1,u=f+1),46===o?-1===a?a=f:1!==c&&(c=1):-1!==a&&(c=-1);else if(!l){s=f+1;break}return-1===a||-1===u||0===c||1===c&&a===u-1&&a===s+1?-1!==u&&(r.base=r.name=0===s&&i?e.slice(1,u):e.slice(s,u)):(0===s&&i?(r.name=e.slice(1,a),r.base=e.slice(1,u)):(r.name=e.slice(s,a),r.base=e.slice(s,u)),r.ext=e.slice(a,u)),s>0?r.dir=e.slice(0,s-1):i&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,e.exports=n},1067:function(e,t,r){var n;!function(o,i){"use strict";var a="function",s="undefined",u="object",l="string",f="model",c="name",d="type",p="vendor",m="version",h="architecture",g="console",_="mobile",v="tablet",y="smarttv",E="wearable",b="embedded",T="Amazon",A="Apple",S="ASUS",I="BlackBerry",R="Browser",w="Chrome",N="Firefox",O="Google",D="Huawei",C="LG",P="Microsoft",L="Motorola",M="Opera",x="Samsung",F="Sony",k="Xiaomi",U="Zebra",B="Facebook",q=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},G=function(e,t){return typeof e===l&&-1!==j(t).indexOf(j(e))},j=function(e){return e.toLowerCase()},z=function(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof t===s?e:e.substring(0,255)},H=function(e,t){for(var r,n,o,s,l,f,c=0;c<t.length&&!l;){var d=t[c],p=t[c+1];for(r=n=0;r<d.length&&!l;)if(l=d[r++].exec(e))for(o=0;o<p.length;o++)f=l[++n],typeof(s=p[o])===u&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,f):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=f?f.replace(s[1],s[2]):i:this[s[0]]=f?s[1].call(this,f,s[2]):i:4===s.length&&(this[s[0]]=f?s[3].call(this,f.replace(s[1],s[2])):i):this[s]=f||i;c+=2}},Y=function(e,t){for(var r in t)if(typeof t[r]===u&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(G(t[r][n],e))return"?"===r?i:r}else if(G(t[r],e))return"?"===r?i:r;return e},V={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},W={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,m],[/opios[\/ ]+([\w\.]+)/i],[m,[c,M+" Mini"]],[/\bopr\/([\w\.]+)/i],[m,[c,M]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[c,m],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[c,"UC"+R]],[/\bqbcore\/([\w\.]+)/i],[m,[c,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[m,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[c,"IE"]],[/yabrowser\/([\w\.]+)/i],[m,[c,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure "+R],m],[/\bfocus\/([\w\.]+)/i],[m,[c,N+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[c,M+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[c,M+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[c,"MIUI "+R]],[/fxios\/([-\w\.]+)/i],[m,[c,N]],[/\bqihu|(qi?ho?o?|360)browser/i],[[c,"360 "+R]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1 "+R],m],[/(comodo_dragon)\/([\w\.]+)/i],[[c,/_/g," "],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[c,m],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,B],m],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[c,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[c,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[c,w+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,w+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[c,"Android "+R]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,m],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[m,[c,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[m,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[m,Y,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[c,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[c,N+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[c,m]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,j]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/windows (ce|mobile); ppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[h,/ower/,"",j]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[h,j]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[p,x],[d,v]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[p,x],[d,_]],[/\((ip(?:hone|od)[\w ]*);/i],[f,[p,A],[d,_]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[p,A],[d,v]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[p,D],[d,v]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[f,[p,D],[d,_]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g," "],[p,k],[d,_]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[p,k],[d,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[p,"OPPO"],[d,_]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[p,"Vivo"],[d,_]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[p,"Realme"],[d,_]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[p,L],[d,_]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[p,L],[d,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[p,C],[d,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[p,C],[d,_]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[p,"Lenovo"],[d,v]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[p,"Nokia"],[d,_]],[/(pixel c)\b/i],[f,[p,O],[d,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[p,O],[d,_]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[p,F],[d,_]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[p,F],[d,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[p,"OnePlus"],[d,_]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[p,T],[d,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[p,T],[d,_]],[/(playbook);[-\w\),; ]+(rim)/i],[f,p,[d,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[p,I],[d,_]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[p,S],[d,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[p,S],[d,_]],[/(nexus 9)/i],[f,[p,"HTC"],[d,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[p,[f,/_/g," "],[d,_]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[p,"Acer"],[d,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[p,"Meizu"],[d,_]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[p,"Sharp"],[d,_]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[p,f,[d,_]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[p,f,[d,v]],[/(surface duo)/i],[f,[p,P],[d,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[p,"Fairphone"],[d,_]],[/(u304aa)/i],[f,[p,"AT&T"],[d,_]],[/\bsie-(\w*)/i],[f,[p,"Siemens"],[d,_]],[/\b(rct\w+) b/i],[f,[p,"RCA"],[d,v]],[/\b(venue[\d ]{2,7}) b/i],[f,[p,"Dell"],[d,v]],[/\b(q(?:mv|ta)\w+) b/i],[f,[p,"Verizon"],[d,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[p,"Barnes & Noble"],[d,v]],[/\b(tm\d{3}\w+) b/i],[f,[p,"NuVision"],[d,v]],[/\b(k88) b/i],[f,[p,"ZTE"],[d,v]],[/\b(nx\d{3}j) b/i],[f,[p,"ZTE"],[d,_]],[/\b(gen\d{3}) b.+49h/i],[f,[p,"Swiss"],[d,_]],[/\b(zur\d{3}) b/i],[f,[p,"Swiss"],[d,v]],[/\b((zeki)?tb.*\b) b/i],[f,[p,"Zeki"],[d,v]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],f,[d,v]],[/\b(ns-?\w{0,9}) b/i],[f,[p,"Insignia"],[d,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[p,"NextBook"],[d,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],f,[d,_]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],f,[d,_]],[/\b(ph-1) /i],[f,[p,"Essential"],[d,_]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[p,"Envizen"],[d,v]],[/\b(trio[-\w\. ]+) b/i],[f,[p,"MachSpeed"],[d,v]],[/\btu_(1491) b/i],[f,[p,"Rotor"],[d,v]],[/(shield[\w ]+) b/i],[f,[p,"Nvidia"],[d,v]],[/(sprint) (\w+)/i],[p,f,[d,_]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[p,P],[d,_]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[p,U],[d,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[p,U],[d,_]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,f,[d,g]],[/droid.+; (shield) bui/i],[f,[p,"Nvidia"],[d,g]],[/(playstation [345portablevi]+)/i],[f,[p,F],[d,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[p,P],[d,g]],[/smart-tv.+(samsung)/i],[p,[d,y]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[p,x],[d,y]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,C],[d,y]],[/(apple) ?tv/i],[p,[f,A+" TV"],[d,y]],[/crkey/i],[[f,w+"cast"],[p,O],[d,y]],[/droid.+aft(\w)( bui|\))/i],[f,[p,T],[d,y]],[/\(dtv[\);].+(aquos)/i],[f,[p,"Sharp"],[d,y]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[p,z],[f,z],[d,y]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,y]],[/((pebble))app/i],[p,f,[d,E]],[/droid.+; (glass) \d/i],[f,[p,O],[d,E]],[/droid.+; (wt63?0{2,3})\)/i],[f,[p,U],[d,E]],[/(quest( 2)?)/i],[f,[p,B],[d,E]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[d,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[d,_]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[d,v]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,v]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[d,_]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[c,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[c,m],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,m],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[c,[m,Y,V]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[c,"Windows"],[m,Y,V]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,"Mac OS"],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[m,c],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[c,m],[/\(bb(10);/i],[m,[c,I]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[m,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[c,N+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[c,"webOS"]],[/crkey\/([\d\.]+)/i],[m,[c,w+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[c,"Chromium OS"],m],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[c,m],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[c,m]]},X=function(e,t){if(typeof e===u&&(t=e,e=i),!(this instanceof X))return new X(e,t).getResult();var r=e||(typeof o!==s&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:""),n=t?function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r}(W,t):W;return this.getBrowser=function(){var e,t={};return t[c]=i,t[m]=i,H.call(t,r,n.browser),t.major=typeof(e=t.version)===l?e.replace(/[^\d\.]/g,"").split(".")[0]:i,t},this.getCPU=function(){var e={};return e[h]=i,H.call(e,r,n.cpu),e},this.getDevice=function(){var e={};return e[p]=i,e[f]=i,e[d]=i,H.call(e,r,n.device),e},this.getEngine=function(){var e={};return e[c]=i,e[m]=i,H.call(e,r,n.engine),e},this.getOS=function(){var e={};return e[c]=i,e[m]=i,H.call(e,r,n.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===l&&e.length>255?z(e,255):e,this},this.setUA(r),this};X.VERSION="1.0.2",X.BROWSER=q([c,m,"major"]),X.CPU=q([h]),X.DEVICE=q([f,p,d,g,_,y,v,E,b]),X.ENGINE=X.OS=q([c,m]),typeof t!==s?(e.exports&&(t=e.exports=X),t.UAParser=X):r.amdO?(n=function(){return X}.call(t,r,t,e))===i||(e.exports=n):typeof o!==s&&(o.UAParser=X);var K=typeof o!==s&&(o.jQuery||o.Zepto);if(K&&!K.ua){var Q=new X;K.ua=Q.getResult(),K.ua.get=function(){return Q.getUA()},K.ua.set=function(e){Q.setUA(e);var t=Q.getResult();for(var r in t)K.ua[r]=t[r]}}}("object"==typeof window?window:this)},3165:function(e){"use strict";e.exports=JSON.parse('["mni-beng-in","mni-mtei-in","sat-deva-in","sat-olck-in","shi-latn-ma","shi-tfng-ma","vai-latn-lr","vai-vaii-lr","yue-hans-cn","yue-hant-hk","az-arab-ir","az-cyrl-az","az-latn-az","bm-nkoo-ml","bs-cyrl-ba","bs-latn-ba","en-dsrt-us","ff-adlm-gn","ff-latn-sn","ha-arab-ng","hi-latn-in","iu-latn-ca","ks-arab-in","ks-deva-in","mn-mong-cn","ms-arab-my","pa-arab-pk","pa-guru-in","sd-arab-pk","sd-deva-in","sr-cyrl-rs","sr-latn-rs","su-latn-id","uz-arab-af","uz-cyrl-uz","uz-latn-uz","zh-hans-cn","zh-hant-tw","mni-beng","sat-olck","shi-tfng","vai-vaii","yue-hant","az-latn","bs-latn","ff-latn","jbo-001","ks-arab","pa-guru","prg-001","sd-arab","sr-cyrl","su-latn","uz-latn","zh-hans","agq-cm","ar-001","arn-cl","asa-tz","ast-es","bas-cm","bem-zm","bez-tz","bgn-pk","blt-vn","brx-in","bss-cm","byn-er","cad-us","cch-ng","ccp-bd","ceb-ph","cgg-ug","chr-us","cic-us","ckb-iq","dav-ke","dje-ne","doi-in","dsb-de","dua-cm","dyo-sn","ebu-ke","eo-001","ewo-cm","fil-ph","fur-it","gaa-gh","gez-et","gsw-ch","guz-ke","haw-us","hsb-de","ia-001","ife-tg","io-001","jgo-cm","jmc-tz","kab-dz","kaj-ng","kam-ke","kcg-ng","kde-tz","kea-cv","ken-cm","khq-ml","kkj-cm","kln-ke","kok-in","kpe-lr","ksb-tz","ksf-cm","ksh-de","lag-tz","lkt-us","lrc-ir","luo-ke","luy-ke","mai-in","mas-ke","mer-ke","mfe-mu","mgh-mz","mgo-cm","moh-ca","mua-cm","mus-us","myv-ru","mzn-ir","naq-na","nds-de","nmg-cm","nnh-cm","nqo-gn","nso-za","nus-ss","nyn-ug","osa-us","pcm-ng","quc-gt","rof-tz","rwk-tz","sah-ru","saq-ke","sbp-tz","scn-it","sdh-ir","seh-mz","ses-ml","sid-et","sma-se","smj-se","smn-fi","sms-fi","ssy-er","syr-iq","szl-pl","teo-ug","tig-er","trv-tw","trw-pk","twq-ne","tzm-ma","vo-001","vun-tz","wae-ch","wal-et","wbp-au","xog-ug","yav-cm","yi-001","zgh-ma","aa-et","af-za","ak-gh","am-et","an-es","as-in","ba-ru","be-by","bg-bg","bm-ml","bn-bd","bo-cn","br-fr","ca-es","ce-ru","co-fr","cs-cz","cu-ru","cv-ru","cy-gb","da-dk","de-de","dv-mv","dz-bt","ee-gh","el-gr","en-us","es-es","et-ee","eu-es","fa-ir","fi-fi","fo-fo","fr-fr","fy-nl","ga-ie","gd-gb","gl-es","gn-py","gu-in","gv-im","ha-ng","he-il","hi-in","hr-hr","hu-hu","hy-am","id-id","ig-ng","ii-cn","is-is","it-it","iu-ca","ja-jp","jv-id","ka-ge","ki-ke","kk-kz","kl-gl","km-kh","kn-in","ko-kr","ku-tr","kw-gb","ky-kg","lb-lu","lg-ug","ln-cd","lo-la","lt-lt","lu-cd","lv-lv","mg-mg","mi-nz","mk-mk","ml-in","mn-mn","mr-in","ms-my","mt-mt","my-mm","nb-no","nd-zw","ne-np","nl-nl","nn-no","nr-za","nv-us","ny-mw","oc-fr","om-et","or-in","os-ge","pl-pl","ps-af","pt-br","qu-pe","rm-ch","rn-bi","ro-ro","ru-ru","rw-rw","sa-in","sc-it","se-no","sg-cf","si-lk","sk-sk","sl-si","sn-zw","so-so","sq-al","ss-za","st-za","sv-se","sw-tz","ta-in","te-in","tg-tj","th-th","ti-et","tk-tm","tn-za","to-to","tr-tr","ts-za","tt-ru","ug-cn","uk-ua","ur-pk","ve-za","vi-vn","wa-be","wo-sn","xh-za","yo-ng","zu-za"]')},5813:function(e){"use strict";e.exports=JSON.parse('[{"from":{"field":"script","value":"qaai"},"to":{"field":"script","value":"zinh"}},{"from":{"field":"region","value":"bu"},"to":{"field":"region","value":"mm"}},{"from":{"field":"region","value":"ct"},"to":{"field":"region","value":"ki"}},{"from":{"field":"region","value":"dd"},"to":{"field":"region","value":"de"}},{"from":{"field":"region","value":"dy"},"to":{"field":"region","value":"bj"}},{"from":{"field":"region","value":"fx"},"to":{"field":"region","value":"fr"}},{"from":{"field":"region","value":"hv"},"to":{"field":"region","value":"bf"}},{"from":{"field":"region","value":"jt"},"to":{"field":"region","value":"um"}},{"from":{"field":"region","value":"mi"},"to":{"field":"region","value":"um"}},{"from":{"field":"region","value":"nh"},"to":{"field":"region","value":"vu"}},{"from":{"field":"region","value":"nq"},"to":{"field":"region","value":"aq"}},{"from":{"field":"region","value":"pu"},"to":{"field":"region","value":"um"}},{"from":{"field":"region","value":"pz"},"to":{"field":"region","value":"pa"}},{"from":{"field":"region","value":"qu"},"to":{"field":"region","value":"eu"}},{"from":{"field":"region","value":"rh"},"to":{"field":"region","value":"zw"}},{"from":{"field":"region","value":"tp"},"to":{"field":"region","value":"tl"}},{"from":{"field":"region","value":"uk"},"to":{"field":"region","value":"gb"}},{"from":{"field":"region","value":"vd"},"to":{"field":"region","value":"vn"}},{"from":{"field":"region","value":"wk"},"to":{"field":"region","value":"um"}},{"from":{"field":"region","value":"yd"},"to":{"field":"region","value":"ye"}},{"from":{"field":"region","value":"zr"},"to":{"field":"region","value":"cd"}},{"from":{"field":"region","value":"230"},"to":{"field":"region","value":"et"}},{"from":{"field":"region","value":"280"},"to":{"field":"region","value":"de"}},{"from":{"field":"region","value":"736"},"to":{"field":"region","value":"sd"}},{"from":{"field":"region","value":"886"},"to":{"field":"region","value":"ye"}},{"from":{"field":"region","value":"958"},"to":{"field":"region","value":"aa"}},{"from":{"field":"region","value":"020"},"to":{"field":"region","value":"ad"}},{"from":{"field":"region","value":"784"},"to":{"field":"region","value":"ae"}},{"from":{"field":"region","value":"004"},"to":{"field":"region","value":"af"}},{"from":{"field":"region","value":"028"},"to":{"field":"region","value":"ag"}},{"from":{"field":"region","value":"660"},"to":{"field":"region","value":"ai"}},{"from":{"field":"region","value":"008"},"to":{"field":"region","value":"al"}},{"from":{"field":"region","value":"051"},"to":{"field":"region","value":"am"}},{"from":{"field":"region","value":"024"},"to":{"field":"region","value":"ao"}},{"from":{"field":"region","value":"010"},"to":{"field":"region","value":"aq"}},{"from":{"field":"region","value":"032"},"to":{"field":"region","value":"ar"}},{"from":{"field":"region","value":"016"},"to":{"field":"region","value":"as"}},{"from":{"field":"region","value":"040"},"to":{"field":"region","value":"at"}},{"from":{"field":"region","value":"036"},"to":{"field":"region","value":"au"}},{"from":{"field":"region","value":"533"},"to":{"field":"region","value":"aw"}},{"from":{"field":"region","value":"248"},"to":{"field":"region","value":"ax"}},{"from":{"field":"region","value":"031"},"to":{"field":"region","value":"az"}},{"from":{"field":"region","value":"070"},"to":{"field":"region","value":"ba"}},{"from":{"field":"region","value":"052"},"to":{"field":"region","value":"bb"}},{"from":{"field":"region","value":"050"},"to":{"field":"region","value":"bd"}},{"from":{"field":"region","value":"056"},"to":{"field":"region","value":"be"}},{"from":{"field":"region","value":"854"},"to":{"field":"region","value":"bf"}},{"from":{"field":"region","value":"100"},"to":{"field":"region","value":"bg"}},{"from":{"field":"region","value":"048"},"to":{"field":"region","value":"bh"}},{"from":{"field":"region","value":"108"},"to":{"field":"region","value":"bi"}},{"from":{"field":"region","value":"204"},"to":{"field":"region","value":"bj"}},{"from":{"field":"region","value":"652"},"to":{"field":"region","value":"bl"}},{"from":{"field":"region","value":"060"},"to":{"field":"region","value":"bm"}},{"from":{"field":"region","value":"096"},"to":{"field":"region","value":"bn"}},{"from":{"field":"region","value":"068"},"to":{"field":"region","value":"bo"}},{"from":{"field":"region","value":"535"},"to":{"field":"region","value":"bq"}},{"from":{"field":"region","value":"076"},"to":{"field":"region","value":"br"}},{"from":{"field":"region","value":"044"},"to":{"field":"region","value":"bs"}},{"from":{"field":"region","value":"064"},"to":{"field":"region","value":"bt"}},{"from":{"field":"region","value":"104"},"to":{"field":"region","value":"mm"}},{"from":{"field":"region","value":"074"},"to":{"field":"region","value":"bv"}},{"from":{"field":"region","value":"072"},"to":{"field":"region","value":"bw"}},{"from":{"field":"region","value":"112"},"to":{"field":"region","value":"by"}},{"from":{"field":"region","value":"084"},"to":{"field":"region","value":"bz"}},{"from":{"field":"region","value":"124"},"to":{"field":"region","value":"ca"}},{"from":{"field":"region","value":"166"},"to":{"field":"region","value":"cc"}},{"from":{"field":"region","value":"180"},"to":{"field":"region","value":"cd"}},{"from":{"field":"region","value":"140"},"to":{"field":"region","value":"cf"}},{"from":{"field":"region","value":"178"},"to":{"field":"region","value":"cg"}},{"from":{"field":"region","value":"756"},"to":{"field":"region","value":"ch"}},{"from":{"field":"region","value":"384"},"to":{"field":"region","value":"ci"}},{"from":{"field":"region","value":"184"},"to":{"field":"region","value":"ck"}},{"from":{"field":"region","value":"152"},"to":{"field":"region","value":"cl"}},{"from":{"field":"region","value":"120"},"to":{"field":"region","value":"cm"}},{"from":{"field":"region","value":"156"},"to":{"field":"region","value":"cn"}},{"from":{"field":"region","value":"170"},"to":{"field":"region","value":"co"}},{"from":{"field":"region","value":"188"},"to":{"field":"region","value":"cr"}},{"from":{"field":"region","value":"192"},"to":{"field":"region","value":"cu"}},{"from":{"field":"region","value":"132"},"to":{"field":"region","value":"cv"}},{"from":{"field":"region","value":"531"},"to":{"field":"region","value":"cw"}},{"from":{"field":"region","value":"162"},"to":{"field":"region","value":"cx"}},{"from":{"field":"region","value":"196"},"to":{"field":"region","value":"cy"}},{"from":{"field":"region","value":"203"},"to":{"field":"region","value":"cz"}},{"from":{"field":"region","value":"278"},"to":{"field":"region","value":"de"}},{"from":{"field":"region","value":"276"},"to":{"field":"region","value":"de"}},{"from":{"field":"region","value":"262"},"to":{"field":"region","value":"dj"}},{"from":{"field":"region","value":"208"},"to":{"field":"region","value":"dk"}},{"from":{"field":"region","value":"212"},"to":{"field":"region","value":"dm"}},{"from":{"field":"region","value":"214"},"to":{"field":"region","value":"do"}},{"from":{"field":"region","value":"012"},"to":{"field":"region","value":"dz"}},{"from":{"field":"region","value":"218"},"to":{"field":"region","value":"ec"}},{"from":{"field":"region","value":"233"},"to":{"field":"region","value":"ee"}},{"from":{"field":"region","value":"818"},"to":{"field":"region","value":"eg"}},{"from":{"field":"region","value":"732"},"to":{"field":"region","value":"eh"}},{"from":{"field":"region","value":"232"},"to":{"field":"region","value":"er"}},{"from":{"field":"region","value":"724"},"to":{"field":"region","value":"es"}},{"from":{"field":"region","value":"231"},"to":{"field":"region","value":"et"}},{"from":{"field":"region","value":"246"},"to":{"field":"region","value":"fi"}},{"from":{"field":"region","value":"242"},"to":{"field":"region","value":"fj"}},{"from":{"field":"region","value":"238"},"to":{"field":"region","value":"fk"}},{"from":{"field":"region","value":"583"},"to":{"field":"region","value":"fm"}},{"from":{"field":"region","value":"234"},"to":{"field":"region","value":"fo"}},{"from":{"field":"region","value":"250"},"to":{"field":"region","value":"fr"}},{"from":{"field":"region","value":"249"},"to":{"field":"region","value":"fr"}},{"from":{"field":"region","value":"266"},"to":{"field":"region","value":"ga"}},{"from":{"field":"region","value":"826"},"to":{"field":"region","value":"gb"}},{"from":{"field":"region","value":"308"},"to":{"field":"region","value":"gd"}},{"from":{"field":"region","value":"268"},"to":{"field":"region","value":"ge"}},{"from":{"field":"region","value":"254"},"to":{"field":"region","value":"gf"}},{"from":{"field":"region","value":"831"},"to":{"field":"region","value":"gg"}},{"from":{"field":"region","value":"288"},"to":{"field":"region","value":"gh"}},{"from":{"field":"region","value":"292"},"to":{"field":"region","value":"gi"}},{"from":{"field":"region","value":"304"},"to":{"field":"region","value":"gl"}},{"from":{"field":"region","value":"270"},"to":{"field":"region","value":"gm"}},{"from":{"field":"region","value":"324"},"to":{"field":"region","value":"gn"}},{"from":{"field":"region","value":"312"},"to":{"field":"region","value":"gp"}},{"from":{"field":"region","value":"226"},"to":{"field":"region","value":"gq"}},{"from":{"field":"region","value":"300"},"to":{"field":"region","value":"gr"}},{"from":{"field":"region","value":"239"},"to":{"field":"region","value":"gs"}},{"from":{"field":"region","value":"320"},"to":{"field":"region","value":"gt"}},{"from":{"field":"region","value":"316"},"to":{"field":"region","value":"gu"}},{"from":{"field":"region","value":"624"},"to":{"field":"region","value":"gw"}},{"from":{"field":"region","value":"328"},"to":{"field":"region","value":"gy"}},{"from":{"field":"region","value":"344"},"to":{"field":"region","value":"hk"}},{"from":{"field":"region","value":"334"},"to":{"field":"region","value":"hm"}},{"from":{"field":"region","value":"340"},"to":{"field":"region","value":"hn"}},{"from":{"field":"region","value":"191"},"to":{"field":"region","value":"hr"}},{"from":{"field":"region","value":"332"},"to":{"field":"region","value":"ht"}},{"from":{"field":"region","value":"348"},"to":{"field":"region","value":"hu"}},{"from":{"field":"region","value":"360"},"to":{"field":"region","value":"id"}},{"from":{"field":"region","value":"372"},"to":{"field":"region","value":"ie"}},{"from":{"field":"region","value":"376"},"to":{"field":"region","value":"il"}},{"from":{"field":"region","value":"833"},"to":{"field":"region","value":"im"}},{"from":{"field":"region","value":"356"},"to":{"field":"region","value":"in"}},{"from":{"field":"region","value":"086"},"to":{"field":"region","value":"io"}},{"from":{"field":"region","value":"368"},"to":{"field":"region","value":"iq"}},{"from":{"field":"region","value":"364"},"to":{"field":"region","value":"ir"}},{"from":{"field":"region","value":"352"},"to":{"field":"region","value":"is"}},{"from":{"field":"region","value":"380"},"to":{"field":"region","value":"it"}},{"from":{"field":"region","value":"832"},"to":{"field":"region","value":"je"}},{"from":{"field":"region","value":"388"},"to":{"field":"region","value":"jm"}},{"from":{"field":"region","value":"400"},"to":{"field":"region","value":"jo"}},{"from":{"field":"region","value":"392"},"to":{"field":"region","value":"jp"}},{"from":{"field":"region","value":"404"},"to":{"field":"region","value":"ke"}},{"from":{"field":"region","value":"417"},"to":{"field":"region","value":"kg"}},{"from":{"field":"region","value":"116"},"to":{"field":"region","value":"kh"}},{"from":{"field":"region","value":"296"},"to":{"field":"region","value":"ki"}},{"from":{"field":"region","value":"174"},"to":{"field":"region","value":"km"}},{"from":{"field":"region","value":"659"},"to":{"field":"region","value":"kn"}},{"from":{"field":"region","value":"408"},"to":{"field":"region","value":"kp"}},{"from":{"field":"region","value":"410"},"to":{"field":"region","value":"kr"}},{"from":{"field":"region","value":"414"},"to":{"field":"region","value":"kw"}},{"from":{"field":"region","value":"136"},"to":{"field":"region","value":"ky"}},{"from":{"field":"region","value":"398"},"to":{"field":"region","value":"kz"}},{"from":{"field":"region","value":"418"},"to":{"field":"region","value":"la"}},{"from":{"field":"region","value":"422"},"to":{"field":"region","value":"lb"}},{"from":{"field":"region","value":"662"},"to":{"field":"region","value":"lc"}},{"from":{"field":"region","value":"438"},"to":{"field":"region","value":"li"}},{"from":{"field":"region","value":"144"},"to":{"field":"region","value":"lk"}},{"from":{"field":"region","value":"430"},"to":{"field":"region","value":"lr"}},{"from":{"field":"region","value":"426"},"to":{"field":"region","value":"ls"}},{"from":{"field":"region","value":"440"},"to":{"field":"region","value":"lt"}},{"from":{"field":"region","value":"442"},"to":{"field":"region","value":"lu"}},{"from":{"field":"region","value":"428"},"to":{"field":"region","value":"lv"}},{"from":{"field":"region","value":"434"},"to":{"field":"region","value":"ly"}},{"from":{"field":"region","value":"504"},"to":{"field":"region","value":"ma"}},{"from":{"field":"region","value":"492"},"to":{"field":"region","value":"mc"}},{"from":{"field":"region","value":"498"},"to":{"field":"region","value":"md"}},{"from":{"field":"region","value":"499"},"to":{"field":"region","value":"me"}},{"from":{"field":"region","value":"663"},"to":{"field":"region","value":"mf"}},{"from":{"field":"region","value":"450"},"to":{"field":"region","value":"mg"}},{"from":{"field":"region","value":"584"},"to":{"field":"region","value":"mh"}},{"from":{"field":"region","value":"807"},"to":{"field":"region","value":"mk"}},{"from":{"field":"region","value":"466"},"to":{"field":"region","value":"ml"}},{"from":{"field":"region","value":"496"},"to":{"field":"region","value":"mn"}},{"from":{"field":"region","value":"446"},"to":{"field":"region","value":"mo"}},{"from":{"field":"region","value":"580"},"to":{"field":"region","value":"mp"}},{"from":{"field":"region","value":"474"},"to":{"field":"region","value":"mq"}},{"from":{"field":"region","value":"478"},"to":{"field":"region","value":"mr"}},{"from":{"field":"region","value":"500"},"to":{"field":"region","value":"ms"}},{"from":{"field":"region","value":"470"},"to":{"field":"region","value":"mt"}},{"from":{"field":"region","value":"480"},"to":{"field":"region","value":"mu"}},{"from":{"field":"region","value":"462"},"to":{"field":"region","value":"mv"}},{"from":{"field":"region","value":"454"},"to":{"field":"region","value":"mw"}},{"from":{"field":"region","value":"484"},"to":{"field":"region","value":"mx"}},{"from":{"field":"region","value":"458"},"to":{"field":"region","value":"my"}},{"from":{"field":"region","value":"508"},"to":{"field":"region","value":"mz"}},{"from":{"field":"region","value":"516"},"to":{"field":"region","value":"na"}},{"from":{"field":"region","value":"540"},"to":{"field":"region","value":"nc"}},{"from":{"field":"region","value":"562"},"to":{"field":"region","value":"ne"}},{"from":{"field":"region","value":"574"},"to":{"field":"region","value":"nf"}},{"from":{"field":"region","value":"566"},"to":{"field":"region","value":"ng"}},{"from":{"field":"region","value":"558"},"to":{"field":"region","value":"ni"}},{"from":{"field":"region","value":"528"},"to":{"field":"region","value":"nl"}},{"from":{"field":"region","value":"578"},"to":{"field":"region","value":"no"}},{"from":{"field":"region","value":"524"},"to":{"field":"region","value":"np"}},{"from":{"field":"region","value":"520"},"to":{"field":"region","value":"nr"}},{"from":{"field":"region","value":"570"},"to":{"field":"region","value":"nu"}},{"from":{"field":"region","value":"554"},"to":{"field":"region","value":"nz"}},{"from":{"field":"region","value":"512"},"to":{"field":"region","value":"om"}},{"from":{"field":"region","value":"591"},"to":{"field":"region","value":"pa"}},{"from":{"field":"region","value":"604"},"to":{"field":"region","value":"pe"}},{"from":{"field":"region","value":"258"},"to":{"field":"region","value":"pf"}},{"from":{"field":"region","value":"598"},"to":{"field":"region","value":"pg"}},{"from":{"field":"region","value":"608"},"to":{"field":"region","value":"ph"}},{"from":{"field":"region","value":"586"},"to":{"field":"region","value":"pk"}},{"from":{"field":"region","value":"616"},"to":{"field":"region","value":"pl"}},{"from":{"field":"region","value":"666"},"to":{"field":"region","value":"pm"}},{"from":{"field":"region","value":"612"},"to":{"field":"region","value":"pn"}},{"from":{"field":"region","value":"630"},"to":{"field":"region","value":"pr"}},{"from":{"field":"region","value":"275"},"to":{"field":"region","value":"ps"}},{"from":{"field":"region","value":"620"},"to":{"field":"region","value":"pt"}},{"from":{"field":"region","value":"585"},"to":{"field":"region","value":"pw"}},{"from":{"field":"region","value":"600"},"to":{"field":"region","value":"py"}},{"from":{"field":"region","value":"634"},"to":{"field":"region","value":"qa"}},{"from":{"field":"region","value":"959"},"to":{"field":"region","value":"qm"}},{"from":{"field":"region","value":"960"},"to":{"field":"region","value":"qn"}},{"from":{"field":"region","value":"962"},"to":{"field":"region","value":"qp"}},{"from":{"field":"region","value":"963"},"to":{"field":"region","value":"qq"}},{"from":{"field":"region","value":"964"},"to":{"field":"region","value":"qr"}},{"from":{"field":"region","value":"965"},"to":{"field":"region","value":"qs"}},{"from":{"field":"region","value":"966"},"to":{"field":"region","value":"qt"}},{"from":{"field":"region","value":"967"},"to":{"field":"region","value":"eu"}},{"from":{"field":"region","value":"968"},"to":{"field":"region","value":"qv"}},{"from":{"field":"region","value":"969"},"to":{"field":"region","value":"qw"}},{"from":{"field":"region","value":"970"},"to":{"field":"region","value":"qx"}},{"from":{"field":"region","value":"971"},"to":{"field":"region","value":"qy"}},{"from":{"field":"region","value":"972"},"to":{"field":"region","value":"qz"}},{"from":{"field":"region","value":"638"},"to":{"field":"region","value":"re"}},{"from":{"field":"region","value":"642"},"to":{"field":"region","value":"ro"}},{"from":{"field":"region","value":"688"},"to":{"field":"region","value":"rs"}},{"from":{"field":"region","value":"643"},"to":{"field":"region","value":"ru"}},{"from":{"field":"region","value":"646"},"to":{"field":"region","value":"rw"}},{"from":{"field":"region","value":"682"},"to":{"field":"region","value":"sa"}},{"from":{"field":"region","value":"090"},"to":{"field":"region","value":"sb"}},{"from":{"field":"region","value":"690"},"to":{"field":"region","value":"sc"}},{"from":{"field":"region","value":"729"},"to":{"field":"region","value":"sd"}},{"from":{"field":"region","value":"752"},"to":{"field":"region","value":"se"}},{"from":{"field":"region","value":"702"},"to":{"field":"region","value":"sg"}},{"from":{"field":"region","value":"654"},"to":{"field":"region","value":"sh"}},{"from":{"field":"region","value":"705"},"to":{"field":"region","value":"si"}},{"from":{"field":"region","value":"744"},"to":{"field":"region","value":"sj"}},{"from":{"field":"region","value":"703"},"to":{"field":"region","value":"sk"}},{"from":{"field":"region","value":"694"},"to":{"field":"region","value":"sl"}},{"from":{"field":"region","value":"674"},"to":{"field":"region","value":"sm"}},{"from":{"field":"region","value":"686"},"to":{"field":"region","value":"sn"}},{"from":{"field":"region","value":"706"},"to":{"field":"region","value":"so"}},{"from":{"field":"region","value":"740"},"to":{"field":"region","value":"sr"}},{"from":{"field":"region","value":"728"},"to":{"field":"region","value":"ss"}},{"from":{"field":"region","value":"678"},"to":{"field":"region","value":"st"}},{"from":{"field":"region","value":"222"},"to":{"field":"region","value":"sv"}},{"from":{"field":"region","value":"534"},"to":{"field":"region","value":"sx"}},{"from":{"field":"region","value":"760"},"to":{"field":"region","value":"sy"}},{"from":{"field":"region","value":"748"},"to":{"field":"region","value":"sz"}},{"from":{"field":"region","value":"796"},"to":{"field":"region","value":"tc"}},{"from":{"field":"region","value":"148"},"to":{"field":"region","value":"td"}},{"from":{"field":"region","value":"260"},"to":{"field":"region","value":"tf"}},{"from":{"field":"region","value":"768"},"to":{"field":"region","value":"tg"}},{"from":{"field":"region","value":"764"},"to":{"field":"region","value":"th"}},{"from":{"field":"region","value":"762"},"to":{"field":"region","value":"tj"}},{"from":{"field":"region","value":"772"},"to":{"field":"region","value":"tk"}},{"from":{"field":"region","value":"626"},"to":{"field":"region","value":"tl"}},{"from":{"field":"region","value":"795"},"to":{"field":"region","value":"tm"}},{"from":{"field":"region","value":"788"},"to":{"field":"region","value":"tn"}},{"from":{"field":"region","value":"776"},"to":{"field":"region","value":"to"}},{"from":{"field":"region","value":"792"},"to":{"field":"region","value":"tr"}},{"from":{"field":"region","value":"780"},"to":{"field":"region","value":"tt"}},{"from":{"field":"region","value":"798"},"to":{"field":"region","value":"tv"}},{"from":{"field":"region","value":"158"},"to":{"field":"region","value":"tw"}},{"from":{"field":"region","value":"834"},"to":{"field":"region","value":"tz"}},{"from":{"field":"region","value":"804"},"to":{"field":"region","value":"ua"}},{"from":{"field":"region","value":"800"},"to":{"field":"region","value":"ug"}},{"from":{"field":"region","value":"581"},"to":{"field":"region","value":"um"}},{"from":{"field":"region","value":"840"},"to":{"field":"region","value":"us"}},{"from":{"field":"region","value":"858"},"to":{"field":"region","value":"uy"}},{"from":{"field":"region","value":"860"},"to":{"field":"region","value":"uz"}},{"from":{"field":"region","value":"336"},"to":{"field":"region","value":"va"}},{"from":{"field":"region","value":"670"},"to":{"field":"region","value":"vc"}},{"from":{"field":"region","value":"862"},"to":{"field":"region","value":"ve"}},{"from":{"field":"region","value":"092"},"to":{"field":"region","value":"vg"}},{"from":{"field":"region","value":"850"},"to":{"field":"region","value":"vi"}},{"from":{"field":"region","value":"704"},"to":{"field":"region","value":"vn"}},{"from":{"field":"region","value":"548"},"to":{"field":"region","value":"vu"}},{"from":{"field":"region","value":"876"},"to":{"field":"region","value":"wf"}},{"from":{"field":"region","value":"882"},"to":{"field":"region","value":"ws"}},{"from":{"field":"region","value":"973"},"to":{"field":"region","value":"xa"}},{"from":{"field":"region","value":"974"},"to":{"field":"region","value":"xb"}},{"from":{"field":"region","value":"975"},"to":{"field":"region","value":"xc"}},{"from":{"field":"region","value":"976"},"to":{"field":"region","value":"xd"}},{"from":{"field":"region","value":"977"},"to":{"field":"region","value":"xe"}},{"from":{"field":"region","value":"978"},"to":{"field":"region","value":"xf"}},{"from":{"field":"region","value":"979"},"to":{"field":"region","value":"xg"}},{"from":{"field":"region","value":"980"},"to":{"field":"region","value":"xh"}},{"from":{"field":"region","value":"981"},"to":{"field":"region","value":"xi"}},{"from":{"field":"region","value":"982"},"to":{"field":"region","value":"xj"}},{"from":{"field":"region","value":"983"},"to":{"field":"region","value":"xk"}},{"from":{"field":"region","value":"984"},"to":{"field":"region","value":"xl"}},{"from":{"field":"region","value":"985"},"to":{"field":"region","value":"xm"}},{"from":{"field":"region","value":"986"},"to":{"field":"region","value":"xn"}},{"from":{"field":"region","value":"987"},"to":{"field":"region","value":"xo"}},{"from":{"field":"region","value":"988"},"to":{"field":"region","value":"xp"}},{"from":{"field":"region","value":"989"},"to":{"field":"region","value":"xq"}},{"from":{"field":"region","value":"990"},"to":{"field":"region","value":"xr"}},{"from":{"field":"region","value":"991"},"to":{"field":"region","value":"xs"}},{"from":{"field":"region","value":"992"},"to":{"field":"region","value":"xt"}},{"from":{"field":"region","value":"993"},"to":{"field":"region","value":"xu"}},{"from":{"field":"region","value":"994"},"to":{"field":"region","value":"xv"}},{"from":{"field":"region","value":"995"},"to":{"field":"region","value":"xw"}},{"from":{"field":"region","value":"996"},"to":{"field":"region","value":"xx"}},{"from":{"field":"region","value":"997"},"to":{"field":"region","value":"xy"}},{"from":{"field":"region","value":"998"},"to":{"field":"region","value":"xz"}},{"from":{"field":"region","value":"720"},"to":{"field":"region","value":"ye"}},{"from":{"field":"region","value":"887"},"to":{"field":"region","value":"ye"}},{"from":{"field":"region","value":"175"},"to":{"field":"region","value":"yt"}},{"from":{"field":"region","value":"710"},"to":{"field":"region","value":"za"}},{"from":{"field":"region","value":"894"},"to":{"field":"region","value":"zm"}},{"from":{"field":"region","value":"716"},"to":{"field":"region","value":"zw"}},{"from":{"field":"region","value":"999"},"to":{"field":"region","value":"zz"}},{"from":{"field":"variants","value":"aaland"},"to":{"field":"region","value":"ax"}},{"from":{"field":"variants","value":"polytoni"},"to":{"field":"variants","value":"polyton"}},{"from":{"field":"variants","value":"heploc"},"to":{"field":"variants","value":"alalc97"}},{"from":{"field":"variants","value":"arevela"},"to":{"field":"language","value":"hy"}},{"from":{"field":"variants","value":"arevmda"},"to":{"field":"language","value":"hyw"}}]')},9460:function(e){"use strict";e.exports=JSON.parse('{"region":{"172":["ru","am","az","by","ge","kg","kz","md","tj","tm","ua","uz"],"200":["cz","sk"],"530":["cw","sx","bq"],"532":["cw","sx","bq"],"536":["sa","iq"],"582":["fm","mh","mp","pw"],"810":["ru","am","az","by","ee","ge","kz","kg","lv","lt","md","tj","tm","ua","uz"],"830":["je","gg"],"890":["rs","me","si","hr","mk","ba"],"891":["rs","me"],"an":["cw","sx","bq"],"cs":["rs","me"],"fq":["aq","tf"],"nt":["sa","iq"],"pc":["fm","mh","mp","pw"],"su":["ru","am","az","by","ee","ge","kz","kg","lv","lt","md","tj","tm","ua","uz"],"yu":["rs","me"],"062":["034","143"],"ant":["cw","sx","bq"],"scg":["rs","me"],"ntz":["sa","iq"],"sun":["ru","am","az","by","ee","ge","kz","kg","lv","lt","md","tj","tm","ua","uz"],"yug":["rs","me"]}}')},7778:function(e){"use strict";e.exports=JSON.parse('[{"from":"in","to":"id"},{"from":"iw","to":"he"},{"from":"ji","to":"yi"},{"from":"jw","to":"jv"},{"from":"mo","to":"ro"},{"from":"scc","to":"sr"},{"from":"scr","to":"hr"},{"from":"aam","to":"aas"},{"from":"adp","to":"dz"},{"from":"aue","to":"ktz"},{"from":"ayx","to":"nun"},{"from":"bgm","to":"bcg"},{"from":"bjd","to":"drl"},{"from":"ccq","to":"rki"},{"from":"cjr","to":"mom"},{"from":"cka","to":"cmr"},{"from":"cmk","to":"xch"},{"from":"coy","to":"pij"},{"from":"cqu","to":"quh"},{"from":"drh","to":"mn"},{"from":"drw","to":"fa-af"},{"from":"gav","to":"dev"},{"from":"gfx","to":"vaj"},{"from":"ggn","to":"gvr"},{"from":"gti","to":"nyc"},{"from":"guv","to":"duz"},{"from":"hrr","to":"jal"},{"from":"ibi","to":"opa"},{"from":"ilw","to":"gal"},{"from":"jeg","to":"oyb"},{"from":"kgc","to":"tdf"},{"from":"kgh","to":"kml"},{"from":"koj","to":"kwv"},{"from":"krm","to":"bmf"},{"from":"ktr","to":"dtp"},{"from":"kvs","to":"gdj"},{"from":"kwq","to":"yam"},{"from":"kxe","to":"tvd"},{"from":"kzj","to":"dtp"},{"from":"kzt","to":"dtp"},{"from":"lii","to":"raq"},{"from":"lmm","to":"rmx"},{"from":"meg","to":"cir"},{"from":"mst","to":"mry"},{"from":"mwj","to":"vaj"},{"from":"myt","to":"mry"},{"from":"nad","to":"xny"},{"from":"ncp","to":"kdz"},{"from":"nnx","to":"ngv"},{"from":"nts","to":"pij"},{"from":"oun","to":"vaj"},{"from":"pcr","to":"adx"},{"from":"pmc","to":"huw"},{"from":"pmu","to":"phr"},{"from":"ppa","to":"bfy"},{"from":"ppr","to":"lcq"},{"from":"pry","to":"prt"},{"from":"puz","to":"pub"},{"from":"sca","to":"hle"},{"from":"skk","to":"oyb"},{"from":"tdu","to":"dtp"},{"from":"thc","to":"tpo"},{"from":"thx","to":"oyb"},{"from":"tie","to":"ras"},{"from":"tkk","to":"twm"},{"from":"tlw","to":"weo"},{"from":"tmp","to":"tyj"},{"from":"tne","to":"kak"},{"from":"tnf","to":"fa-af"},{"from":"tsf","to":"taj"},{"from":"uok","to":"ema"},{"from":"xba","to":"cax"},{"from":"xia","to":"acn"},{"from":"xkh","to":"waw"},{"from":"xsj","to":"suj"},{"from":"ybd","to":"rki"},{"from":"yma","to":"lrr"},{"from":"ymt","to":"mtm"},{"from":"yos","to":"zom"},{"from":"yuu","to":"yug"},{"from":"asd","to":"snz"},{"from":"dit","to":"dif"},{"from":"llo","to":"ngt"},{"from":"myd","to":"aog"},{"from":"nns","to":"nbr"},{"from":"sgn-br","to":"bzs"},{"from":"sgn-co","to":"csn"},{"from":"sgn-de","to":"gsg"},{"from":"sgn-dk","to":"dsl"},{"from":"sgn-fr","to":"fsl"},{"from":"sgn-gb","to":"bfi"},{"from":"sgn-gr","to":"gss"},{"from":"sgn-ie","to":"isg"},{"from":"sgn-it","to":"ise"},{"from":"sgn-jp","to":"jsl"},{"from":"sgn-mx","to":"mfs"},{"from":"sgn-ni","to":"ncs"},{"from":"sgn-nl","to":"dse"},{"from":"sgn-no","to":"nsi"},{"from":"sgn-pt","to":"psr"},{"from":"sgn-se","to":"swl"},{"from":"sgn-us","to":"ase"},{"from":"sgn-za","to":"sfs"},{"from":"no-bokmal","to":"nb"},{"from":"no-nynorsk","to":"nn"},{"from":"aa-saaho","to":"ssy"},{"from":"sh","to":"sr-latn"},{"from":"cnr","to":"sr-me"},{"from":"no","to":"nb"},{"from":"tl","to":"fil"},{"from":"az-az","to":"az-latn-az"},{"from":"bs-ba","to":"bs-latn-ba"},{"from":"ha-latn-gh","to":"ha-gh"},{"from":"ha-latn-ne","to":"ha-ne"},{"from":"ha-latn-ng","to":"ha-ng"},{"from":"kk-cyrl-kz","to":"kk-kz"},{"from":"ky-cyrl-kg","to":"ky-kg"},{"from":"ks-arab-in","to":"ks-in"},{"from":"mn-cyrl-mn","to":"mn-mn"},{"from":"ms-latn-bn","to":"ms-bn"},{"from":"ms-latn-my","to":"ms-my"},{"from":"ms-latn-sg","to":"ms-sg"},{"from":"pa-in","to":"pa-guru-in"},{"from":"pa-pk","to":"pa-arab-pk"},{"from":"shi-ma","to":"shi-tfng-ma"},{"from":"sr-ba","to":"sr-cyrl-ba"},{"from":"sr-me","to":"sr-latn-me"},{"from":"sr-rs","to":"sr-cyrl-rs"},{"from":"sr-xk","to":"sr-cyrl-xk"},{"from":"tzm-latn-ma","to":"tzm-ma"},{"from":"ug-arab-cn","to":"ug-cn"},{"from":"uz-af","to":"uz-arab-af"},{"from":"uz-uz","to":"uz-latn-uz"},{"from":"vai-lr","to":"vai-vaii-lr"},{"from":"yue-cn","to":"yue-hans-cn"},{"from":"yue-hk","to":"yue-hant-hk"},{"from":"zh-cn","to":"zh-hans-cn"},{"from":"zh-hk","to":"zh-hant-hk"},{"from":"zh-mo","to":"zh-hant-mo"},{"from":"zh-sg","to":"zh-hans-sg"},{"from":"zh-tw","to":"zh-hant-tw"},{"from":"aju","to":"jrb"},{"from":"als","to":"sq"},{"from":"arb","to":"ar"},{"from":"ayr","to":"ay"},{"from":"azj","to":"az"},{"from":"bcc","to":"bal"},{"from":"bcl","to":"bik"},{"from":"bxk","to":"luy"},{"from":"bxr","to":"bua"},{"from":"cld","to":"syr"},{"from":"cmn","to":"zh"},{"from":"cwd","to":"cr"},{"from":"dgo","to":"doi"},{"from":"dhd","to":"mwr"},{"from":"dik","to":"din"},{"from":"diq","to":"zza"},{"from":"lbk","to":"bnc"},{"from":"ekk","to":"et"},{"from":"emk","to":"man"},{"from":"esk","to":"ik"},{"from":"fat","to":"ak"},{"from":"fuc","to":"ff"},{"from":"gaz","to":"om"},{"from":"gbo","to":"grb"},{"from":"gno","to":"gon"},{"from":"gug","to":"gn"},{"from":"gya","to":"gba"},{"from":"hdn","to":"hai"},{"from":"hea","to":"hmn"},{"from":"ike","to":"iu"},{"from":"kmr","to":"ku"},{"from":"knc","to":"kr"},{"from":"kng","to":"kg"},{"from":"knn","to":"kok"},{"from":"kpv","to":"kv"},{"from":"lvs","to":"lv"},{"from":"mhr","to":"chm"},{"from":"mup","to":"raj"},{"from":"khk","to":"mn"},{"from":"npi","to":"ne"},{"from":"ojg","to":"oj"},{"from":"ory","to":"or"},{"from":"pbu","to":"ps"},{"from":"pes","to":"fa"},{"from":"plt","to":"mg"},{"from":"pnb","to":"lah"},{"from":"quz","to":"qu"},{"from":"rmy","to":"rom"},{"from":"spy","to":"kln"},{"from":"src","to":"sc"},{"from":"swh","to":"sw"},{"from":"ttq","to":"tmh"},{"from":"tw","to":"ak"},{"from":"umu","to":"del"},{"from":"uzn","to":"uz"},{"from":"xpe","to":"kpe"},{"from":"xsl","to":"den"},{"from":"ydd","to":"yi"},{"from":"zai","to":"zap"},{"from":"zsm","to":"ms"},{"from":"zyb","to":"za"},{"from":"him","to":"srx"},{"from":"mnk","to":"man"},{"from":"bh","to":"bho"},{"from":"prs","to":"fa-af"},{"from":"swc","to":"sw-cd"},{"from":"aar","to":"aa"},{"from":"abk","to":"ab"},{"from":"ave","to":"ae"},{"from":"afr","to":"af"},{"from":"aka","to":"ak"},{"from":"amh","to":"am"},{"from":"arg","to":"an"},{"from":"ara","to":"ar"},{"from":"asm","to":"as"},{"from":"ava","to":"av"},{"from":"aym","to":"ay"},{"from":"aze","to":"az"},{"from":"bak","to":"ba"},{"from":"bel","to":"be"},{"from":"bul","to":"bg"},{"from":"bih","to":"bho"},{"from":"bis","to":"bi"},{"from":"bam","to":"bm"},{"from":"ben","to":"bn"},{"from":"bod","to":"bo"},{"from":"bre","to":"br"},{"from":"bos","to":"bs"},{"from":"cat","to":"ca"},{"from":"che","to":"ce"},{"from":"cha","to":"ch"},{"from":"cos","to":"co"},{"from":"cre","to":"cr"},{"from":"ces","to":"cs"},{"from":"chu","to":"cu"},{"from":"chv","to":"cv"},{"from":"cym","to":"cy"},{"from":"dan","to":"da"},{"from":"deu","to":"de"},{"from":"div","to":"dv"},{"from":"dzo","to":"dz"},{"from":"ewe","to":"ee"},{"from":"ell","to":"el"},{"from":"eng","to":"en"},{"from":"epo","to":"eo"},{"from":"spa","to":"es"},{"from":"est","to":"et"},{"from":"eus","to":"eu"},{"from":"fas","to":"fa"},{"from":"ful","to":"ff"},{"from":"fin","to":"fi"},{"from":"fij","to":"fj"},{"from":"fao","to":"fo"},{"from":"fra","to":"fr"},{"from":"fry","to":"fy"},{"from":"gle","to":"ga"},{"from":"gla","to":"gd"},{"from":"glg","to":"gl"},{"from":"grn","to":"gn"},{"from":"guj","to":"gu"},{"from":"glv","to":"gv"},{"from":"hau","to":"ha"},{"from":"heb","to":"he"},{"from":"hin","to":"hi"},{"from":"hmo","to":"ho"},{"from":"hrv","to":"hr"},{"from":"hat","to":"ht"},{"from":"hun","to":"hu"},{"from":"hye","to":"hy"},{"from":"her","to":"hz"},{"from":"ina","to":"ia"},{"from":"ind","to":"id"},{"from":"ile","to":"ie"},{"from":"ibo","to":"ig"},{"from":"iii","to":"ii"},{"from":"ipk","to":"ik"},{"from":"ido","to":"io"},{"from":"isl","to":"is"},{"from":"ita","to":"it"},{"from":"iku","to":"iu"},{"from":"jpn","to":"ja"},{"from":"jav","to":"jv"},{"from":"kat","to":"ka"},{"from":"kon","to":"kg"},{"from":"kik","to":"ki"},{"from":"kua","to":"kj"},{"from":"kaz","to":"kk"},{"from":"kal","to":"kl"},{"from":"khm","to":"km"},{"from":"kan","to":"kn"},{"from":"kor","to":"ko"},{"from":"kau","to":"kr"},{"from":"kas","to":"ks"},{"from":"kur","to":"ku"},{"from":"kom","to":"kv"},{"from":"cor","to":"kw"},{"from":"kir","to":"ky"},{"from":"lat","to":"la"},{"from":"ltz","to":"lb"},{"from":"lug","to":"lg"},{"from":"lim","to":"li"},{"from":"lin","to":"ln"},{"from":"lao","to":"lo"},{"from":"lit","to":"lt"},{"from":"lub","to":"lu"},{"from":"lav","to":"lv"},{"from":"mlg","to":"mg"},{"from":"mah","to":"mh"},{"from":"mri","to":"mi"},{"from":"mkd","to":"mk"},{"from":"mal","to":"ml"},{"from":"mon","to":"mn"},{"from":"mol","to":"ro"},{"from":"mar","to":"mr"},{"from":"msa","to":"ms"},{"from":"mlt","to":"mt"},{"from":"mya","to":"my"},{"from":"nau","to":"na"},{"from":"nob","to":"nb"},{"from":"nde","to":"nd"},{"from":"nep","to":"ne"},{"from":"ndo","to":"ng"},{"from":"nld","to":"nl"},{"from":"nno","to":"nn"},{"from":"nor","to":"nb"},{"from":"nbl","to":"nr"},{"from":"nav","to":"nv"},{"from":"nya","to":"ny"},{"from":"oci","to":"oc"},{"from":"oji","to":"oj"},{"from":"orm","to":"om"},{"from":"ori","to":"or"},{"from":"oss","to":"os"},{"from":"pan","to":"pa"},{"from":"pli","to":"pi"},{"from":"pol","to":"pl"},{"from":"pus","to":"ps"},{"from":"por","to":"pt"},{"from":"que","to":"qu"},{"from":"roh","to":"rm"},{"from":"run","to":"rn"},{"from":"ron","to":"ro"},{"from":"rus","to":"ru"},{"from":"kin","to":"rw"},{"from":"san","to":"sa"},{"from":"srd","to":"sc"},{"from":"snd","to":"sd"},{"from":"sme","to":"se"},{"from":"sag","to":"sg"},{"from":"hbs","to":"sr-latn"},{"from":"sin","to":"si"},{"from":"slk","to":"sk"},{"from":"slv","to":"sl"},{"from":"smo","to":"sm"},{"from":"sna","to":"sn"},{"from":"som","to":"so"},{"from":"sqi","to":"sq"},{"from":"srp","to":"sr"},{"from":"ssw","to":"ss"},{"from":"sot","to":"st"},{"from":"sun","to":"su"},{"from":"swe","to":"sv"},{"from":"swa","to":"sw"},{"from":"tam","to":"ta"},{"from":"tel","to":"te"},{"from":"tgk","to":"tg"},{"from":"tha","to":"th"},{"from":"tir","to":"ti"},{"from":"tuk","to":"tk"},{"from":"tgl","to":"fil"},{"from":"tsn","to":"tn"},{"from":"ton","to":"to"},{"from":"tur","to":"tr"},{"from":"tso","to":"ts"},{"from":"tat","to":"tt"},{"from":"twi","to":"ak"},{"from":"tah","to":"ty"},{"from":"uig","to":"ug"},{"from":"ukr","to":"uk"},{"from":"urd","to":"ur"},{"from":"uzb","to":"uz"},{"from":"ven","to":"ve"},{"from":"vie","to":"vi"},{"from":"vol","to":"vo"},{"from":"wln","to":"wa"},{"from":"wol","to":"wo"},{"from":"xho","to":"xh"},{"from":"yid","to":"yi"},{"from":"yor","to":"yo"},{"from":"zha","to":"za"},{"from":"zho","to":"zh"},{"from":"zul","to":"zu"},{"from":"alb","to":"sq"},{"from":"arm","to":"hy"},{"from":"baq","to":"eu"},{"from":"bur","to":"my"},{"from":"chi","to":"zh"},{"from":"cze","to":"cs"},{"from":"dut","to":"nl"},{"from":"fre","to":"fr"},{"from":"geo","to":"ka"},{"from":"ger","to":"de"},{"from":"gre","to":"el"},{"from":"ice","to":"is"},{"from":"mac","to":"mk"},{"from":"mao","to":"mi"},{"from":"may","to":"ms"},{"from":"per","to":"fa"},{"from":"rum","to":"ro"},{"from":"slo","to":"sk"},{"from":"tib","to":"bo"},{"from":"wel","to":"cy"}]')},8589:function(e){"use strict";e.exports=JSON.parse('{"en-gb-oed":"en-GB-oxendict","i-ami":"ami","i-bnn":"bnn","i-default":null,"i-enochian":null,"i-hak":"hak","i-klingon":"tlh","i-lux":"lb","i-mingo":null,"i-navajo":"nv","i-pwn":"pwn","i-tao":"tao","i-tay":"tay","i-tsu":"tsu","sgn-be-fr":"sfb","sgn-be-nl":"vgt","sgn-ch-de":"sgg","art-lojban":"jbo","cel-gaulish":null,"no-bok":"nb","no-nyn":"nn","zh-guoyu":"cmn","zh-hakka":"hak","zh-min":null,"zh-min-nan":"nan","zh-xiang":"hsn"}')},858:function(e){"use strict";e.exports=JSON.parse('["art-lojban","cel-gaulish","no-bok","no-nyn","zh-guoyu","zh-hakka","zh-min","zh-min-nan","zh-xiang"]')}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.amdO={},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var n={};return function(){"use strict";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)}}r.d(n,{default:function(){return Ho}});var t=new(function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.init()}var r,n;return r=t,(n=[{key:"init",value:function(){this.OFFLINE_SCHEME="offline_indexeddb",this.OFFLINE_URL_REGEX=/^offline_indexeddb:\/\//i,this.OFFLINE_STATUS_CREATED="created",this.OFFLINE_STATUS_STARTED="started",this.OFFLINE_STATUS_STOPPED="stopped",this.OFFLINE_STATUS_FINISHED="finished",this.OFFLINE_STATUS_ERROR="error"}}])&&e(r.prototype,n),t}()),o=r(8729),i=r(7227).XmlEntities;function a(){var e,t;function r(e){return n().then((function(t){if(t){for(var r=null,n=0;n<t.manifests.length;n++)t.manifests[n].manifestId===parseInt(e)&&(r=t.manifests[n]);return null!==r?(r.manifest=i.decode(r.manifest),Promise.resolve(r)):Promise.reject("Cannot found manifest with this manifestId : "+e)}return Promise.reject("Any manifests stored in DB !")})).catch((function(e){return Promise.reject(e)}))}function n(){return e.getItem("manifest").then((function(e){return Promise.resolve(e||{manifests:[]})})).catch((function(e){return Promise.reject(e)}))}function a(t){return n().then((function(r){try{for(var n=0;n<r.manifests.length;n++)r.manifests[n].manifestId===t.manifestId&&(r.manifests[n]=t);return e.setItem("manifest",r)}catch(e){throw new Error("Any results found !")}}))}return t={},"undefined"!=typeof window&&(o.config({driver:o.INDEXEDDB,name:"dash_offline_db"}),e=o.createInstance({driver:o.INDEXEDDB,name:"dash_offline_db",version:1,storeName:"manifest"})),{dropAll:function(){return o.clear().then((function(){return Promise.resolve()})).catch((function(e){return Promise.reject(e)}))},getFragmentByKey:function(e,r){var n=t[e];return n?n.getItem(r).then((function(e){return Promise.resolve(e)})).catch((function(e){return Promise.reject(e)})):Promise.reject(new Error("No fragment store found for manifest ".concat(e)))},getManifestById:r,storeFragment:function(e,r,n){var o=t[e];return o?o.setItem(r,n,(function(){return Promise.resolve()})).catch((function(e){return Promise.reject(e)})):Promise.reject(new Error("No fragment store found for manifest ".concat(e)))},storeManifest:function(t){return e.getItem("manifest").then((function(r){var n=r||{manifests:[]};return n.manifests.push(t),e.setItem("manifest",n)}))},updateManifest:a,saveSelectedRepresentations:function(e,t){return r(e).then((function(e){return e.selected||(e.selected={}),e.selected=t,a(e).catch((function(){return Promise.reject("Cannot save selected representations")}))})).catch((function(e){return Promise.reject(e)}))},createFragmentStore:function(e){if(!t[e]){console.log("setStore "+e);var r=o.createInstance({driver:o.INDEXEDDB,name:"dash_offline_db",version:1,storeName:e});t[e]=r}},setDownloadingStatus:function(e,t){return r(e).then((function(e){return e.status=t,a(e).catch((function(){return Promise.reject("Cannot set status "+t+" for this stream !")}))})).catch((function(e){return Promise.reject(e)}))},setRepresentationCurrentState:function(e,t,n){return r(e).then((function(e){return e.state||(e.state={}),e.state[t]||(e.state[t]={index:-1,downloaded:0}),e.state[t]=n,a(e).catch((function(){return Promise.reject("Cannot set current index for represenation id "+t)}))})).catch((function(e){return Promise.reject(e)}))},getRepresentationCurrentState:function(e,t){return r(e).then((function(e){var r={index:-1,downloaded:0};return e.state&&e.state[t]&&(r=e.state[t]),Promise.resolve(r)})).catch((function(e){return Promise.reject(e)}))},getCurrentHigherManifestId:function(){return n().then((function(e){var t=0;if(e){for(var r=0;r<e.manifests.length;r++)e.manifests[r].manifestId>t&&(t=e.manifests[r].manifestId);return Promise.resolve(t)}return Promise.resolve(t)})).catch((function(e){return Promise.reject(e)}))},getAllManifests:n,dropFragmentStore:function(e){o.dropInstance({driver:o.INDEXEDDB,name:"dash_offline_db",version:1,storeName:e}).then((function(){delete t[e]})).catch((function(e){console.log("dropFragmentStore failed "+e)}))},deleteDownloadById:function(r){return e.getItem("manifest").then((function(n){return n?(i=r,o.createInstance({name:"dash_offline_db",storeName:i}),o.dropInstance({name:"dash_offline_db",storeName:i}).then((function(){return delete t[i],Promise.resolve()})).catch((function(e){return console.log(e),Promise.reject(e)}))).then((function(){for(var t=0;t<n.manifests.length;t++)n.manifests[t].manifestId===parseInt(r)&&n.manifests.splice(t,1);return e.setItem("manifest",n).then((function(){return Promise.resolve("This stream has been successfull removed !")})).catch((function(){return Promise.reject("An error occured when trying to delete this manifest")}))})):Promise.resolve("Nothing to delete !");var i})).catch((function(e){return Promise.reject(e)}))}}}a.__dashjs_factory_name="IndexDBStore";var s=dashjs.FactoryMaker.getSingletonFactory(a);function u(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)}}var l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"extend",value:function(e,t){if(e){var r=!!t&&t.override,n=!!t&&t.publicOnly;for(var o in e)!e.hasOwnProperty(o)||this[o]&&!r||n&&-1===e[o].indexOf("public_")||(this[o]=e[o])}}}])&&u(t.prototype,r),e}();function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function d(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var m=new(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=p(t);if(r){var o=p(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return d(this,e)});function o(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(e=n.call(this)).OFFLINE_ERROR=11e3,e.INDEXEDDB_QUOTA_EXCEED_ERROR=11001,e.INDEXEDDB_INVALID_STATE_ERROR=11002,e.INDEXEDDB_NOT_READABLE_ERROR=11003,e.INDEXEDDB_NOT_FOUND_ERROR=11004,e.INDEXEDDB_NETWORK_ERROR=11005,e.INDEXEDDB_DATA_ERROR=11006,e.INDEXEDDB_TRANSACTION_INACTIVE_ERROR=11007,e.INDEXEDDB_NOT_ALLOWED_ERROR=11008,e.INDEXEDDB_NOT_SUPPORTED_ERROR=11009,e.INDEXEDDB_VERSION_ERROR=11010,e.INDEXEDDB_TIMEOUT_ERROR=11011,e.INDEXEDDB_ABORT_ERROR=11012,e.INDEXEDDB_UNKNOWN_ERROR=11013,e}return o}(l));function h(e){e=e||{};var t,r,n=this.context,o=e.errHandler;function i(e){var t;if(e){switch(e.name){case"QuotaExceededError":t=m.INDEXEDDB_QUOTA_EXCEED_ERROR;break;case"InvalidStateError":t=m.INDEXEDDB_INVALID_STATE_ERROR;break;case"NotFoundError":t=m.INDEXEDDB_NOT_FOUND_ERROR;break;case"VersionError":t=m.INDEXEDDB_VERSION_ERROR}o.error({code:t,message:e.name,data:e})}}return t={storeFragment:function(e,t,n){return r.storeFragment(e,t,n).catch((function(e){i(e)}))},createOfflineManifest:function(e){return r.storeManifest(e).catch((function(e){i(e)}))},updateOfflineManifest:function(e){return r.updateManifest(e).catch((function(e){i(e)}))},getManifestById:function(e){return r.getManifestById(e).catch((function(e){i(e)}))},saveSelectedRepresentations:function(e,t){return r.saveSelectedRepresentations(e,t).catch((function(e){i(e)}))},createFragmentStore:function(e,t){try{r.createFragmentStore(e,t)}catch(e){i(e)}},getCurrentHigherManifestId:function(){return r.getCurrentHigherManifestId().catch((function(e){i(e)}))},getAllManifests:function(){return r.getAllManifests().catch((function(e){i(e)}))},deleteDownloadById:function(e){return r.deleteDownloadById(e).catch((function(e){i(e)}))},setDownloadingStatus:function(e,t){return r.setDownloadingStatus(e,t).catch((function(e){i(e)}))},setRepresentationCurrentState:function(e,t,n){return r.setRepresentationCurrentState(e,t,n).catch((function(e){i(e)}))},getRepresentationCurrentState:function(e,t){return r.getRepresentationCurrentState(e,t).catch((function(e){i(e)}))}},r=s(n).getInstance(),t}h.__dashjs_factory_name="OfflineStoreController";var g=dashjs.FactoryMaker.getClassFactory(h);var _=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.tcpid=null,this.type=null,this.url=null,this.actualurl=null,this.range=null,this.trequest=null,this.tresponse=null,this.responsecode=null,this.interval=null,this.trace=[],this.cmsd=null,this._stream=null,this._tfinish=null,this._mediaduration=null,this._quality=null,this._responseHeaders=null,this._serviceLocation=null,this._fileLoaderType=null};function v(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)}}_.GET="GET",_.HEAD="HEAD",_.MPD_TYPE="MPD",_.XLINK_EXPANSION_TYPE="XLinkExpansion",_.INIT_SEGMENT_TYPE="InitializationSegment",_.INDEX_SEGMENT_TYPE="IndexSegment",_.MEDIA_SEGMENT_TYPE="MediaSegment",_.BITSTREAM_SWITCHING_SEGMENT_TYPE="BitstreamSwitchingSegment",_.MSS_FRAGMENT_INFO_SEGMENT_TYPE="FragmentInfoSegment",_.DVB_REPORTING_TYPE="DVBReporting",_.LICENSE="license",_.CONTENT_STEERING_TYPE="ContentSteering",_.OTHER_TYPE="other";var y=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.action=e.ACTION_DOWNLOAD,this.startTime=NaN,this.mediaStartTime=NaN,this.mediaType=null,this.mediaInfo=null,this.type=null,this.duration=NaN,this.timescale=NaN,this.range=null,this.url=t||null,this.serviceLocation=null,this.requestStartDate=null,this.firstByteDate=null,this.requestEndDate=null,this.quality=NaN,this.index=NaN,this.availabilityStartTime=null,this.availabilityEndTime=null,this.wallStartTime=null,this.bytesLoaded=NaN,this.bytesTotal=NaN,this.delayLoadingTime=NaN,this.responseType="arraybuffer",this.representationId=null}var t,r;return t=e,(r=[{key:"isInitializationRequest",value:function(){return this.type&&this.type===_.INIT_SEGMENT_TYPE}},{key:"setInfo",value:function(e){this.type=e&&e.init?_.INIT_SEGMENT_TYPE:_.MEDIA_SEGMENT_TYPE,this.url=e&&e.url?e.url:null,this.range=e&&e.range?e.range.start+"-"+e.range.end:null,this.mediaType=e&&e.mediaType?e.mediaType:null}}])&&v(t.prototype,r),e}();y.ACTION_DOWNLOAD="download",y.ACTION_COMPLETE="complete";var E=y,b=function(){var e,t=[],r={},n={};function o(e,r){for(var n in t){var o=t[n];if(o.context===e&&o.name===r)return o.instance}return null}function i(e,t){return t[e]}function a(e,t,r){e in r&&(r[e]=t)}function s(t,r,n){var o,i=t.__dashjs_factory_name,a=r[i];if(a){var s=a.instance;if(!a.override)return s.apply({context:r,factory:e},n);for(var u in o=t.apply({context:r},n),s=s.apply({context:r,factory:e,parent:o},n))o.hasOwnProperty(u)&&(o[u]=s[u])}else o=t.apply({context:r},n);return o.getClassName=function(){return i},o}return e={extend:function(e,t,r,n){!n[e]&&t&&(n[e]={instance:t,override:r})},getSingletonInstance:o,setSingletonInstance:function(e,r,n){for(var o in t){var i=t[o];if(i.context===e&&i.name===r)return void(t[o].instance=n)}t.push({name:r,context:e,instance:n})},deleteSingletonInstances:function(e){t=t.filter((function(t){return t.context!==e}))},getSingletonFactory:function(e){var n=i(e.__dashjs_factory_name,r);return n||(n=function(r){var n;return void 0===r&&(r={}),{getInstance:function(){return n||(n=o(r,e.__dashjs_factory_name)),n||(n=s(e,r,arguments),t.push({name:e.__dashjs_factory_name,context:r,instance:n})),n}}},r[e.__dashjs_factory_name]=n),n},getSingletonFactoryByName:function(e){return i(e,r)},updateSingletonFactory:function(e,t){a(e,t,r)},getClassFactory:function(e){var t=i(e.__dashjs_factory_name,n);return t||(t=function(t){return void 0===t&&(t={}),{create:function(){return s(e,t,arguments)}}},n[e.__dashjs_factory_name]=t),t},getClassFactoryByName:function(e){return i(e,n)},updateClassFactory:function(e,t){a(e,t,n)}},e}(),T=b;function A(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)}}var S=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"extend",value:function(e,t){if(e){var r=!!t&&t.override,n=!!t&&t.publicOnly;for(var o in e)!e.hasOwnProperty(o)||this[o]&&!r||n&&-1===e[o].indexOf("public_")||(this[o]=e[o])}}}])&&A(t.prototype,r),e}();function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function R(e,t){return R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},R(e,t)}function w(e,t){return!t||"object"!==I(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function N(e){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},N(e)}var O=new(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R(e,t)}(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=N(t);if(r){var o=N(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return w(this,e)});function o(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(e=n.call(this)).AST_IN_FUTURE="astInFuture",e.BASE_URLS_UPDATED="baseUrlsUpdated",e.BUFFER_EMPTY="bufferStalled",e.BUFFER_LOADED="bufferLoaded",e.BUFFER_LEVEL_STATE_CHANGED="bufferStateChanged",e.BUFFER_LEVEL_UPDATED="bufferLevelUpdated",e.DYNAMIC_TO_STATIC="dynamicToStatic",e.ERROR="error",e.FRAGMENT_LOADING_COMPLETED="fragmentLoadingCompleted",e.FRAGMENT_LOADING_PROGRESS="fragmentLoadingProgress",e.FRAGMENT_LOADING_STARTED="fragmentLoadingStarted",e.FRAGMENT_LOADING_ABANDONED="fragmentLoadingAbandoned",e.LOG="log",e.MANIFEST_LOADING_STARTED="manifestLoadingStarted",e.MANIFEST_LOADING_FINISHED="manifestLoadingFinished",e.MANIFEST_LOADED="manifestLoaded",e.METRICS_CHANGED="metricsChanged",e.METRIC_CHANGED="metricChanged",e.METRIC_ADDED="metricAdded",e.METRIC_UPDATED="metricUpdated",e.PERIOD_SWITCH_STARTED="periodSwitchStarted",e.PERIOD_SWITCH_COMPLETED="periodSwitchCompleted",e.QUALITY_CHANGE_REQUESTED="qualityChangeRequested",e.QUALITY_CHANGE_RENDERED="qualityChangeRendered",e.TRACK_CHANGE_RENDERED="trackChangeRendered",e.STREAM_INITIALIZING="streamInitializing",e.STREAM_UPDATED="streamUpdated",e.STREAM_ACTIVATED="streamActivated",e.STREAM_DEACTIVATED="streamDeactivated",e.STREAM_INITIALIZED="streamInitialized",e.STREAM_TEARDOWN_COMPLETE="streamTeardownComplete",e.TEXT_TRACKS_ADDED="allTextTracksAdded",e.TEXT_TRACK_ADDED="textTrackAdded",e.THROUGHPUT_MEASUREMENT_STORED="throughputMeasurementStored",e.TTML_PARSED="ttmlParsed",e.TTML_TO_PARSE="ttmlToParse",e.CAPTION_RENDERED="captionRendered",e.CAPTION_CONTAINER_RESIZE="captionContainerResize",e.CAN_PLAY="canPlay",e.CAN_PLAY_THROUGH="canPlayThrough",e.PLAYBACK_ENDED="playbackEnded",e.PLAYBACK_ERROR="playbackError",e.PLAYBACK_NOT_ALLOWED="playbackNotAllowed",e.PLAYBACK_METADATA_LOADED="playbackMetaDataLoaded",e.PLAYBACK_LOADED_DATA="playbackLoadedData",e.PLAYBACK_PAUSED="playbackPaused",e.PLAYBACK_PLAYING="playbackPlaying",e.PLAYBACK_PROGRESS="playbackProgress",e.PLAYBACK_RATE_CHANGED="playbackRateChanged",e.PLAYBACK_SEEKED="playbackSeeked",e.PLAYBACK_SEEKING="playbackSeeking",e.PLAYBACK_STALLED="playbackStalled",e.PLAYBACK_STARTED="playbackStarted",e.PLAYBACK_TIME_UPDATED="playbackTimeUpdated",e.PLAYBACK_VOLUME_CHANGED="playbackVolumeChanged",e.PLAYBACK_WAITING="playbackWaiting",e.MANIFEST_VALIDITY_CHANGED="manifestValidityChanged",e.EVENT_MODE_ON_START="eventModeOnStart",e.EVENT_MODE_ON_RECEIVE="eventModeOnReceive",e.CONFORMANCE_VIOLATION="conformanceViolation",e.REPRESENTATION_SWITCH="representationSwitch",e.ADAPTATION_SET_REMOVED_NO_CAPABILITIES="adaptationSetRemovedNoCapabilities",e.CONTENT_STEERING_REQUEST_COMPLETED="contentSteeringRequestCompleted",e.INBAND_PRFT="inbandPrft",e}return o}(S)),D=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.indexRange=null,this.index=null,this.mediaRange=null,this.media=null,this.duration=NaN,this.replacementTime=null,this.replacementNumber=NaN,this.mediaStartTime=NaN,this.presentationStartTime=NaN,this.availabilityStartTime=NaN,this.availabilityEndTime=NaN,this.wallStartTime=NaN,this.representation=null};function C(e,t){for(;e.length<t;)e="0"+e;return e}function P(e,t){if(!t||!e||-1===e.indexOf("$RepresentationID$"))return e;var r=t.toString();return e.split("$RepresentationID$").join(r)}function L(e,t,r){var n,o,i,a,s,u,l=t.length,f="%0".length;if(!e)return e;for(;;){if((n=e.indexOf("$"+t))<0)return e;if((o=e.indexOf("$",n+l))<0)return e;if((i=e.indexOf("%0",n+l))>n&&i<o)switch(a=e.charAt(o-1),s=parseInt(e.substring(i+f,o-1),10),a){case"d":case"i":case"u":u=C(r.toString(),s);break;case"x":u=C(r.toString(16),s);break;case"X":u=C(r.toString(16),s).toUpperCase();break;case"o":u=C(r.toString(8),s);break;default:return e}else u=r;e=e.substring(0,n)+u+e.substring(o+1)}}function M(e,t,r,n,o,i,a,s){var u,l=new D;return l.representation=e,l.duration=t,l.presentationStartTime=r,l.mediaStartTime=n,l.availabilityStartTime=o.calcAvailabilityStartTimeFromPresentationTime(i,e,a),l.availabilityEndTime=o.calcAvailabilityEndTimeFromPresentationTime(i+t,e,a),l.wallStartTime=o.calcWallTimeForSegment(l,a),l.replacementNumber=(u=s,l.representation.startNumber+u),l.index=s,l}function x(e,t,r,n){var o=t.adaptation.period;if(isFinite(o.duration)&&o.start+o.duration<=r.presentationStartTime)return!1;if(n){if("INF"===t.availabilityTimeOffset)return!0;var i=e.getClientReferenceTime();return r.availabilityStartTime.getTime()<=i&&(!isFinite(r.availabilityEndTime)||r.availabilityEndTime.getTime()>=i)}return!0}function F(e,t,r,n){var o,i,a;o=r.segmentDuration,isNaN(o)&&(o=r.adaptation.period.duration),i=parseFloat((r.adaptation.period.start+n*o).toFixed(5)),a=parseFloat((i+o).toFixed(5));var s=M(r,o,i,e.calcMediaTimeFromPresentationTime(i,r),e,a,t,n);return x(e,r,s,t)?s:null}function k(e,t,r,n,o,i,a,s,u,l){var f,c,d=n/i,p=o/i;return f=e.calcPresentationTimeFromMediaTime(d,r),x(e,r,c=M(r,p,f,d,e,f+p,t,u),t)?(c.replacementTime=l||n,a=L(a,"Number",c.replacementNumber),a=L(a,"Time",c.replacementTime),c.media=a,c.mediaRange=s,c):null}function U(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)}}var B=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.init()}var t,r;return t=e,(r=[{key:"init",value:function(){this.BASE_URL="BaseURL",this.SEGMENT_BASE="SegmentBase",this.SEGMENT_TEMPLATE="SegmentTemplate",this.SEGMENT_LIST="SegmentList",this.SEGMENT_URL="SegmentURL",this.SEGMENT_TIMELINE="SegmentTimeline",this.SEGMENT_PROFILES="segmentProfiles",this.ADAPTATION_SET="AdaptationSet",this.REPRESENTATION="Representation",this.REPRESENTATION_INDEX="RepresentationIndex",this.SUB_REPRESENTATION="SubRepresentation",this.INITIALIZATION="Initialization",this.INITIALIZATION_MINUS="initialization",this.MPD="MPD",this.PERIOD="Period",this.ASSET_IDENTIFIER="AssetIdentifier",this.EVENT_STREAM="EventStream",this.ID="id",this.PROFILES="profiles",this.SERVICE_LOCATION="serviceLocation",this.RANGE="range",this.INDEX="index",this.MEDIA="media",this.BYTE_RANGE="byteRange",this.INDEX_RANGE="indexRange",this.MEDIA_RANGE="mediaRange",this.VALUE="value",this.CONTENT_TYPE="contentType",this.MIME_TYPE="mimeType",this.BITSTREAM_SWITCHING="BitstreamSwitching",this.BITSTREAM_SWITCHING_MINUS="bitstreamSwitching",this.CODECS="codecs",this.DEPENDENCY_ID="dependencyId",this.MEDIA_STREAM_STRUCTURE_ID="mediaStreamStructureId",this.METRICS="Metrics",this.METRICS_MINUS="metrics",this.REPORTING="Reporting",this.WIDTH="width",this.HEIGHT="height",this.SAR="sar",this.FRAMERATE="frameRate",this.AUDIO_SAMPLING_RATE="audioSamplingRate",this.MAXIMUM_SAP_PERIOD="maximumSAPPeriod",this.START_WITH_SAP="startWithSAP",this.MAX_PLAYOUT_RATE="maxPlayoutRate",this.CODING_DEPENDENCY="codingDependency",this.SCAN_TYPE="scanType",this.FRAME_PACKING="FramePacking",this.AUDIO_CHANNEL_CONFIGURATION="AudioChannelConfiguration",this.CONTENT_PROTECTION="ContentProtection",this.ESSENTIAL_PROPERTY="EssentialProperty",this.SUPPLEMENTAL_PROPERTY="SupplementalProperty",this.SUPPLEMENTAL_PROPERTY_ASARRAY="SupplementalProperty_asArray",this.INBAND_EVENT_STREAM="InbandEventStream",this.PRODUCER_REFERENCE_TIME="ProducerReferenceTime",this.INBAND="inband",this.TYPE="type",this.ACCESSIBILITY="Accessibility",this.ROLE="Role",this.RATING="Rating",this.CONTENT_COMPONENT="ContentComponent",this.SUBSET="Subset",this.LANG="lang",this.VIEWPOINT="Viewpoint",this.VIEWPOINT_ASARRAY="Viewpoint_asArray",this.ROLE_ASARRAY="Role_asArray",this.REPRESENTATION_ASARRAY="Representation_asArray",this.PRODUCERREFERENCETIME_ASARRAY="ProducerReferenceTime_asArray",this.ACCESSIBILITY_ASARRAY="Accessibility_asArray",this.AUDIOCHANNELCONFIGURATION_ASARRAY="AudioChannelConfiguration_asArray",this.CONTENTPROTECTION_ASARRAY="ContentProtection_asArray",this.MAIN="main",this.DYNAMIC="dynamic",this.STATIC="static",this.MEDIA_PRESENTATION_DURATION="mediaPresentationDuration",this.MINIMUM_UPDATE_PERIOD="minimumUpdatePeriod",this.CODEC_PRIVATE_DATA="codecPrivateData",this.BANDWITH="bandwidth",this.SOURCE_URL="sourceURL",this.TIMESCALE="timescale",this.DURATION="duration",this.START_NUMBER="startNumber",this.PRESENTATION_TIME_OFFSET="presentationTimeOffset",this.AVAILABILITY_START_TIME="availabilityStartTime",this.AVAILABILITY_END_TIME="availabilityEndTime",this.TIMESHIFT_BUFFER_DEPTH="timeShiftBufferDepth",this.MAX_SEGMENT_DURATION="maxSegmentDuration",this.PRESENTATION_TIME="presentationTime",this.MIN_BUFFER_TIME="minBufferTime",this.MAX_SUBSEGMENT_DURATION="maxSubsegmentDuration",this.START="start",this.AVAILABILITY_TIME_OFFSET="availabilityTimeOffset",this.AVAILABILITY_TIME_COMPLETE="availabilityTimeComplete",this.CENC_DEFAULT_KID="cenc:default_KID",this.DVB_PRIORITY="dvb:priority",this.DVB_WEIGHT="dvb:weight",this.SUGGESTED_PRESENTATION_DELAY="suggestedPresentationDelay",this.SERVICE_DESCRIPTION="ServiceDescription",this.SERVICE_DESCRIPTION_SCOPE="Scope",this.SERVICE_DESCRIPTION_LATENCY="Latency",this.SERVICE_DESCRIPTION_PLAYBACK_RATE="PlaybackRate",this.SERVICE_DESCRIPTION_OPERATING_QUALITY="OperatingQuality",this.SERVICE_DESCRIPTION_OPERATING_BANDWIDTH="OperatingBandwidth",this.PATCH_LOCATION="PatchLocation",this.PATCH_LOCATION_AS_ARRAY="PatchLocation_asArray",this.LOCATION="Location",this.LOCATION_AS_ARRAY="Location_asArray",this.PUBLISH_TIME="publishTime",this.ORIGINAL_PUBLISH_TIME="originalPublishTime",this.ORIGINAL_MPD_ID="mpdId",this.WALL_CLOCK_TIME="wallClockTime",this.PRESENTATION_TIME="presentationTime",this.LABEL="Label",this.GROUP_LABEL="GroupLabel",this.CONTENT_STEERING="ContentSteering",this.CONTENT_STEERING_AS_ARRAY="ContentSteering_asArray",this.DEFAULT_SERVICE_LOCATION="defaultServiceLocation",this.QUERY_BEFORE_START="queryBeforeStart",this.CLIENT_REQUIREMENT="clientRequirement",this.TTL="ttl",this.CONTENT_STEERING_RESPONSE={VERSION:"VERSION",TTL:"TTL",RELOAD_URI:"RELOAD-URI",PATHWAY_PRIORITY:"PATHWAY-PRIORITY",PATHWAY_CLONES:"PATHWAY-CLONES",BASE_ID:"BASE-ID",ID:"ID",URI_REPLACEMENT:"URI-REPLACEMENT",HOST:"HOST",PARAMS:"PARAMS"},this.PRODUCER_REFERENCE_TIME_TYPE={ENCODER:"encoder",CAPTURED:"captured",APPLICATION:"application"},this.SEGMENT_ALIGNMENT="segmentAlignment",this.SUB_SEGMENT_ALIGNMENT="subsegmentAlignment"}}])&&U(t.prototype,r),e}());function q(e){var t,r,n,o,i,a=(e=e||{}).eventBus,s=e.debug,u=e.urlUtils,l=e.type,f=e.streamInfo,c=e.segmentsController,d=e.timelineConverter,p=e.baseURLController;function m(){return l}function h(){n=null}function g(e,t,r){var n,o,i=p.resolve(r.path),a={};return i&&t!==i.url&&u.isRelative(t)?(n=i.url,o=i.serviceLocation,a=i.queryParams,t&&(n=u.resolve(t,n))):n=t,!u.isRelative(n)&&(e.url=n,e.serviceLocation=o,e.queryParams=a,!0)}function v(e,t){if(null==t)return null;var r=new E,n=t.representation,o=n.adaptation.period.mpd.manifest.Period_asArray[n.adaptation.period.index].AdaptationSet_asArray[n.adaptation.index].Representation_asArray[n.index].bandwidth,i=t.media;return i=L(i,"Number",t.replacementNumber),i=L(i,"Time",t.replacementTime),i=function(e){return e?e.split("$$").join("$"):e}(i=P(i=L(i,"Bandwidth",o),n.id)),r.mediaType=m(),r.type=_.MEDIA_SEGMENT_TYPE,r.range=t.mediaRange,r.startTime=t.presentationStartTime,r.mediaStartTime=t.mediaStartTime,r.duration=t.duration,r.timescale=n.timescale,r.availabilityStartTime=t.availabilityStartTime,r.availabilityEndTime=t.availabilityEndTime,r.availabilityTimeComplete=n.availabilityTimeComplete,r.wallStartTime=t.wallStartTime,r.quality=n.index,r.index=t.index,r.mediaInfo=e,r.adaptationIndex=n.adaptation.index,r.representationId=n.id,g(r,i,n)?r:void 0}function y(e,t,o){var i=null;if(!t||!t.segmentInfoType)return i;var a=c.getSegmentByTime(t,o);return a&&(n=a,r.debug("Index for time "+o+" is "+a.index),i=v(e,a)),i}function b(){r.debug("Dynamic stream complete"),i=!0}return t={initialize:function(e){o=e,i=!1,c.initialize(e)},getStreamId:function(){return f.id},getType:m,getStreamInfo:function(){return f},getInitRequest:function(e,t){return t?function(e,t,r){var n=new E,i=t.adaptation.period,a=i.start;if(n.mediaType=r,n.type=_.INIT_SEGMENT_TYPE,n.range=t.range,n.availabilityStartTime=d.calcAvailabilityStartTimeFromPresentationTime(a,t,o),n.availabilityEndTime=d.calcAvailabilityEndTimeFromPresentationTime(a+i.duration,t,o),n.quality=t.index,n.mediaInfo=e,n.representationId=t.id,g(n,t.initialization,t))return n.url=L(n.url,"Bandwidth",t.bandwidth),n}(e,t,m()):null},getSegmentRequestForTime:y,getCurrentIndex:function(){return n?n.index:-1},getNextSegmentRequest:function(e,t){var a=null;if(!t||!t.segmentInfoType)return null;var s=n?n.index+1:0,u=c.getSegmentByIndex(t,s,n?n.mediaStartTime:-1);if(u)a=v(e,u),n=u;else{if(o&&!i)return r.debug(m()+" No segment found at index: "+s+". Wait for next loop"),null;i=!0}return a},isLastSegmentRequested:function(e,t){if(!e||!n)return!1;if(i)return!0;if(!isFinite(e.adaptation.period.duration))return!1;if(n.presentationStartTime+n.duration>t)return!1;if(e.mediaFinishedInformation&&!isNaN(e.mediaFinishedInformation.numberOfSegments)&&!isNaN(n.index)&&n.index>=e.mediaFinishedInformation.numberOfSegments-1){if(!o||e.segmentInfoType===B.SEGMENT_TEMPLATE)return!0;if(o&&e.segmentInfoType===B.SEGMENT_LIST&&e.adaptation.period.nextPeriodId)return!0}return!!(o&&e.adaptation.period.nextPeriodId&&e.segmentInfoType===B.SEGMENT_TIMELINE&&e.mediaFinishedInformation&&!isNaN(e.mediaFinishedInformation.mediaTimeOfLastSignaledSegment)&&n&&!isNaN(n.mediaStartTime)&&!isNaN(n.duration)&&n.mediaStartTime+n.duration>=e.mediaFinishedInformation.mediaTimeOfLastSignaledSegment-.05)},reset:function(){h(),a.off(O.DYNAMIC_TO_STATIC,b,t)},getNextSegmentRequestIdempotent:function(e,t){var r=n?n.index+1:0,o=c.getSegmentByIndex(t,r,n?n.mediaStartTime:-1);return o?v(e,o):null},getValidTimeAheadOfTargetTime:function(e,t,r,n){try{if(isNaN(e)||!t||!r)return NaN;if(e<0&&(e=0),isNaN(n)&&(n=.5),y(t,r,e))return e;if(r.adaptation.period.start+r.adaptation.period.duration<e)return NaN;for(var o=isFinite(r.adaptation.period.duration)?r.adaptation.period.start+r.adaptation.period.duration:e+30,i=Math.min(e+n,o),a=NaN,s=null;i<=o;){var u=null;if(i<=o&&(u=y(t,r,i)),u){a=i,s=u;break}i+=n}if(s){var l=s.startTime+s.duration;return e>s.startTime&&l-e>n?e:!isNaN(s.startTime)&&e<s.startTime&&a>s.startTime?s.startTime+.001:Math.min(l-n,a)}return a}catch(e){return NaN}}},r=s.getLogger(t),h(),a.on(O.DYNAMIC_TO_STATIC,b,t),t}q.__dashjs_factory_name="DashHandler";var G=T.getClassFactory(q);function j(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)}}var z=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.init()}var t,r;return t=e,(r=[{key:"init",value:function(){this.STREAM="stream",this.VIDEO="video",this.AUDIO="audio",this.TEXT="text",this.MUXED="muxed",this.IMAGE="image",this.STPP="stpp",this.TTML="ttml",this.VTT="vtt",this.WVTT="wvtt",this.CONTENT_STEERING="contentSteering",this.ABR_STRATEGY_DYNAMIC="abrDynamic",this.ABR_STRATEGY_BOLA="abrBola",this.ABR_STRATEGY_L2A="abrL2A",this.ABR_STRATEGY_LoLP="abrLoLP",this.ABR_STRATEGY_THROUGHPUT="abrThroughput",this.ABR_FETCH_THROUGHPUT_CALCULATION_DOWNLOADED_DATA="abrFetchThroughputCalculationDownloadedData",this.ABR_FETCH_THROUGHPUT_CALCULATION_MOOF_PARSING="abrFetchThroughputCalculationMoofParsing",this.ABR_FETCH_THROUGHPUT_CALCULATION_AAST="abrFetchThroughputCalculationAAST",this.LIVE_CATCHUP_MODE_DEFAULT="liveCatchupModeDefault",this.LIVE_CATCHUP_MODE_LOLP="liveCatchupModeLoLP",this.MOVING_AVERAGE_SLIDING_WINDOW="slidingWindow",this.MOVING_AVERAGE_EWMA="ewma",this.BAD_ARGUMENT_ERROR="Invalid Arguments",this.MISSING_CONFIG_ERROR="Missing config parameter(s)",this.TRACK_SWITCH_MODE_ALWAYS_REPLACE="alwaysReplace",this.TRACK_SWITCH_MODE_NEVER_REPLACE="neverReplace",this.TRACK_SELECTION_MODE_FIRST_TRACK="firstTrack",this.TRACK_SELECTION_MODE_HIGHEST_BITRATE="highestBitrate",this.TRACK_SELECTION_MODE_HIGHEST_EFFICIENCY="highestEfficiency",this.TRACK_SELECTION_MODE_WIDEST_RANGE="widestRange",this.TRACK_SELECTION_MODE_HIGHEST_SELECTION_PRIORITY="highestSelectionPriority",this.CMCD_MODE_QUERY="query",this.CMCD_MODE_HEADER="header",this.INITIALIZE="initialize",this.TEXT_SHOWING="showing",this.TEXT_HIDDEN="hidden",this.CC1="CC1",this.CC3="CC3",this.UTF8="utf-8",this.SCHEME_ID_URI="schemeIdUri",this.START_TIME="starttime",this.SERVICE_DESCRIPTION_DVB_LL_SCHEME="urn:dvb:dash:lowlatency:scope:2019",this.SUPPLEMENTAL_PROPERTY_DVB_LL_SCHEME="urn:dvb:dash:lowlatency:critical:2019",this.XML="XML",this.ARRAY_BUFFER="ArrayBuffer",this.DVB_REPORTING_URL="dvb:reportingUrl",this.DVB_PROBABILITY="dvb:probability",this.VIDEO_ELEMENT_READY_STATES={HAVE_NOTHING:0,HAVE_METADATA:1,HAVE_CURRENT_DATA:2,HAVE_FUTURE_DATA:3,HAVE_ENOUGH_DATA:4},this.FILE_LOADER_TYPES={FETCH:"fetch_loader",XHR:"xhr_loader"}}}])&&j(t.prototype,r),e}());function H(e){var t,r,n,o,i,a,s=(e=e||{}).eventBus,u=e.events,l=e.abrController,f=e.dashMetrics,c=e.playbackController,d=e.timelineConverter,p=e.type,m=e.streamInfo,h=e.dashConstants,g=e.segmentsController,_=e.isDynamic,v=e.adapter;function y(){return p}function E(){return n}function b(){return a}function T(){r=null,n=!0,o=[],i=null}function A(e){return new Promise((function(t,r){var n=e.hasInitialization(),i=e.hasSegments(),s=[];s.push(g.updateInitData(e,n)),s.push(g.updateSegmentData(e,i)),Promise.all(s).then((function(r){var n;r[0]&&!r[0].error&&(e=function(e,t){return t&&!t.error&&t.representation?t.representation:e}(e,r[0])),r[1]&&!r[1].error&&(e=function(e,t){if(t&&!t.error){var r,n,o,i,a=t.segments,s=[],u=0;for(r=0,n=a?a.length:0;r<n;r++)o=a[r],(i=k(d,_,e,o.startTime,o.duration,o.timescale,o.media,o.mediaRange,u))&&(s.push(i),i=null,u++);return s.length>0&&(e.segments=s),e}}(e,r[1])),(n=e).mediaFinishedInformation=g.getMediaFinishedInformation(n),function(e){if(E()){var t,r,n=f.getCurrentManifestUpdate(),i=!1;if(n){for(var s=0;s<n.representationInfo.length;s++)if((t=n.representationInfo[s]).index===e.index&&t.mediaType===y()){i=!0;break}i||f.addManifestUpdateRepresentationInfo(e,y())}if(function(){for(var e=0,t=o.length;e<t;e++){var r=o[e].segmentInfoType;if(!o[e].hasInitialization()||(r===h.SEGMENT_BASE||r===h.BASE_URL)&&!o[e].segments)return!1}return!0}()){l.setPlaybackQuality(p,m,(r=a,o.indexOf(r)));var u=f.getCurrentDVRInfo(p);u&&f.updateManifestUpdateInfo({latency:u.range.end-c.getTime()}),f.getCurrentRepresentationSwitch(b().adaptation.type)||S(),R()}}}(e),t()})).catch((function(e){r(e)}))}))}function S(){!function(){if(!(l&&f&&c&&d))throw new Error(z.MISSING_CONFIG_ERROR)}();var e=new Date,t=b(),r=1e3*c.getTime();t&&f.addRepresentationSwitch(t.adaptation.type,e,r,t.id),s.trigger(O.REPRESENTATION_SWITCH,{mediaType:p,streamId:m.id,currentRepresentation:t,numberOfRepresentations:o.length},{streamId:m.id,mediaType:p})}function I(e){return null==e||e>=o.length?null:o[e]}function R(e){n=!1,s.trigger(u.DATA_UPDATE_COMPLETED,{data:r,currentRepresentation:a,error:e},{streamId:m.id,mediaType:p})}function w(e){a=e,i=v.convertRepresentationToRepresentationInfo(a)}function N(e){if(e.newDuration){var t=b();t&&t.adaptation.period&&(t.adaptation.period.duration=e.newDuration)}}return t={getStreamId:function(){return m.id},getType:y,getData:function(){return r},isUpdating:E,updateData:function(e,t,i,a,s){return new Promise((function(u,l){if(n=!0,o=t,r=e,w(I(s)),i!==z.VIDEO&&i!==z.AUDIO&&(i!==z.TEXT||!a))return R(),void u();for(var f=[],c=0,d=o.length;c<d;c++){var p=o[c];f.push(A(p))}Promise.all(f).then((function(){w(I(s)),u()})).catch((function(e){l(e)}))}))},getCurrentRepresentation:b,getCurrentRepresentationInfo:function(){return i},getRepresentationForQuality:I,prepareQualityChange:function(e){w(I(e)),S()},reset:function(){s.off(O.MANIFEST_VALIDITY_CHANGED,N,t),T()}},T(),s.on(O.MANIFEST_VALIDITY_CHANGED,N,t),t}H.__dashjs_factory_name="RepresentationController";var Y=T.getClassFactory(H),V="loading",W="executed",X="failed";function K(e){var t,r,n,o,i=(e=e||{}).eventBus,a=e.events,s=e.dashMetrics,u=e.fragmentLoader,l=e.debug,f=e.streamInfo,c=e.type;function d(e){var t;return!!e&&(t=!1,n.some((function(r){if(n=e,o=r,!isNaN(n.index)&&n.startTime===o.startTime&&n.adaptationIndex===o.adaptationIndex&&n.type===o.type||function(e,t){return isNaN(e.index)&&isNaN(t.index)&&e.quality===t.quality}(e,r)||function(e,t){return e.action===E.ACTION_COMPLETE&&e.action===t.action}(e,r))return t=!0;var n,o})),t)}function p(e){return isNaN(e.duration)?.25:Math.min(e.duration/8,.5)}function m(e){n=n.filter((function(t){var r=p(t);return isNaN(t.startTime)||void 0!==e&&t.startTime>=e-r}))}function h(e,t){t<=e+.5||(n=n.filter((function(r){var n=p(r);return isNaN(r.startTime)||r.startTime>=t-n||isNaN(r.duration)||r.startTime+r.duration<=e+n})))}function g(e,t,r){for(var n=e.length-1;n>=0;n--){var o=e[n],i=o.startTime,a=i+o.duration;if(r=isNaN(r)?p(o):r,!isNaN(i)&&!isNaN(a)&&t+r>=i&&t-r<a||isNaN(i)&&isNaN(t))return o}return null}function _(e,t){s.addSchedulingInfo(e,t),s.addRequestsQueue(e.mediaType,o,n)}function v(e){e.sender===u&&(o.splice(o.indexOf(e.request),1),e.response&&!e.error&&n.push(e.request),_(e.request,e.error?X:W),i.trigger(a.FRAGMENT_LOADING_COMPLETED,{request:e.request,response:e.response,error:e.error,sender:this},{streamId:f.id,mediaType:c}))}function y(e){e.sender===u&&i.trigger(a.FRAGMENT_LOADING_PROGRESS,{request:e.request,response:e.response,error:e.error,sender:this},{streamId:f.id,mediaType:c})}function b(e){e.sender===u&&i.trigger(a.FRAGMENT_LOADING_ABANDONED,{request:e.request},{streamId:f.id,mediaType:c})}function T(){n=[],o=[]}return t={getStreamId:function(){return f.id},getType:function(){return c},getRequests:function(e){var t=e?e.state instanceof Array?e.state:[e.state]:[],r=[];return t.forEach((function(t){var i=function(e){var t;switch(e){case V:t=o;break;case W:t=n;break;default:t=[]}return t}(t);r=r.concat(function(e,t){return t.hasOwnProperty("time")?[g(e,t.time,t.threshold)]:e.filter((function(e){for(var r in t)if("state"!==r&&t.hasOwnProperty(r)&&e[r]!=t[r])return!1;return!0}))}(i,e))})),r},isFragmentLoaded:d,isFragmentLoadedOrPending:function(e){var t,r=!1,n=0;if(!(r=d(e)))for(n=0;n<o.length;n++)t=o[n],e.url===t.url&&e.startTime===t.startTime&&(r=!0);return r},removeExecutedRequestsBeforeTime:m,removeExecutedRequestsAfterTime:function(e){n=n.filter((function(t){return isNaN(t.startTime)||void 0!==e&&t.startTime<e}))},syncExecutedRequestsWithBufferedRange:function(e,t){if(e&&0!==e.length){for(var r=0,n=0,o=e.length;n<o;n++)h(r,e.start(n)),r=e.end(n);t>0&&h(r,t)}else m()},abortRequests:function(){r.debug("abort requests"),u.abort(),o=[]},executeRequest:function(e){e.action===E.ACTION_DOWNLOAD?(_(e,V),o.push(e),function(e){i.trigger(a.FRAGMENT_LOADING_STARTED,{request:e},{streamId:f.id,mediaType:c}),u.load(e)}(e)):r.warn("Unknown request action.")},reset:function(){i.off(a.LOADING_COMPLETED,v,this),i.off(a.LOADING_DATA_PROGRESS,y,this),i.off(a.LOADING_ABANDONED,b,this),u&&u.reset(),T()},resetInitialSettings:T,addExecutedRequest:function(e){n.push(e)}},r=l.getLogger(t),T(),i.on(a.LOADING_COMPLETED,v,t),i.on(a.LOADING_DATA_PROGRESS,y,t),i.on(a.LOADING_ABANDONED,b,t),t}K.__dashjs_factory_name="FragmentModel";var Q=T.getClassFactory(K);Q.FRAGMENT_MODEL_LOADING=V,Q.FRAGMENT_MODEL_EXECUTED=W,Q.FRAGMENT_MODEL_CANCELED="canceled",Q.FRAGMENT_MODEL_FAILED=X,T.updateClassFactory(K.__dashjs_factory_name,Q);var $=Q;function Z(e,t){var r={url:e.url,method:e.method,headers:Object.assign({},e.headers),credentials:e.withCredentials?"include":void 0};return Promise.resolve(t.modifyRequest(r)).then((function(){return Object.assign(e,r,{withCredentials:"include"===r.credentials})}))}function J(){return{modifyRequest:null,modifyRequestURL:function(e){return e},modifyRequestHeader:function(e,t){return t.url,e}}}J.__dashjs_factory_name="RequestModifier";var ee=T.getSingletonFactory(J);function te(e){var t=(e=e||{}).requestModifier;function r(e){var r=new Date,n=e.request,o=new XMLHttpRequest;if(o.open(e.method,e.url,!0),n.responseType&&(o.responseType=n.responseType),n.range&&o.setRequestHeader("Range","bytes="+n.range),n.requestStartDate||(n.requestStartDate=r),t&&t.modifyRequestHeader&&(o=t.modifyRequestHeader(o,{url:e.url})),e.headers)for(var i in e.headers){var a=e.headers[i];a&&o.setRequestHeader(i,a)}o.withCredentials=e.withCredentials,o.onload=e.onload,o.onloadend=e.onend,o.onerror=e.onerror,o.onprogress=e.progress,o.onabort=e.onabort,o.ontimeout=e.ontimeout,o.timeout=e.timeout,o.send(),e.response=o}return{load:function(e){t&&t.modifyRequest?Z(e,t).then((function(){return r(e)})):r(e)},abort:function(e){var t=e.response;t.onloadend=t.onerror=t.onprogress=void 0,t.abort()}}}te.__dashjs_factory_name="XHRLoader";var re=T.getClassFactory(te),ne=r(3875),oe=r.n(ne),ie=r(1067);function ae(e){return ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ae(e)}function se(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)}}var ue=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"mixin",value:function(t,r,n){var o,i={};if(t)for(var a in r)r.hasOwnProperty(a)&&(o=r[a],a in t&&(t[a]===o||a in i&&i[a]===o)||("object"===ae(t[a])&&null!==t[a]?t[a]=e.mixin(t[a],o,n):t[a]=n(o)));return t}},{key:"clone",value:function(t){if(!t||"object"!==ae(t))return t;var r;if(t instanceof Array){r=[];for(var n=0,o=t.length;n<o;++n)n in t&&r.push(e.clone(t[n]))}else r={};return e.mixin(r,t,e.clone)}},{key:"addAditionalQueryParameterToUrl",value:function(e,t){try{if(!t||0===t.length)return e;var r=new URL(e);return t.forEach((function(e){e.key&&e.value&&r.searchParams.set(e.key,e.value)})),r.href}catch(t){return e}}},{key:"parseHttpHeaders",value:function(e){var t={};if(!e)return t;for(var r=e.trim().split("\r\n"),n=0,o=r.length;n<o;n++){var i=r[n],a=i.indexOf(": ");a>0&&(t[i.substring(0,a)]=i.substring(a+2))}return t}},{key:"generateUuid",value:function(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var r=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?r:3&r|8).toString(16)}))}},{key:"generateHashCode",value:function(e){var t=0;if(0===e.length)return t;for(var r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}},{key:"getRelativeUrl",value:function(e,t){try{var r=new URL(e),n=new URL(t);if(r.protocol=n.protocol,r.origin!==n.origin)return t;var o=oe().relative(r.pathname.substr(0,r.pathname.lastIndexOf("/")),n.pathname.substr(0,n.pathname.lastIndexOf("/"))),i=0===o.length?1:0;return o+=n.pathname.substr(n.pathname.lastIndexOf("/")+i,n.pathname.length-1),n.pathname.length<o.length?n.pathname:o}catch(e){return t}}},{key:"parseUserAgent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;try{var t=null===e&&"undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"";return(0,ie.UAParser)(t)}catch(e){return{}}}},{key:"stringHasProtocol",value:function(e){return/(http(s?)):\/\//i.test(e)}}],null&&se(t.prototype,null),r&&se(t,r),e}(),le=ue;function fe(){var e={};function t(t,r,n){var o=-1;return e[t]?(e[t].some((function(e,t){if(e&&e.callback===r&&(!n||n===e.scope))return o=t,!0})),o):o}var r={on:function(r,n,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!r)throw new Error("event type cannot be null or undefined");if(!n||"function"!=typeof n)throw new Error("listener must be a function: "+n);var a=i.priority||0;if(!(t(r,n,o)>=0)){e[r]=e[r]||[];var s={callback:n,scope:o,priority:a};o&&o.getStreamId&&(s.streamId=o.getStreamId()),o&&o.getType&&(s.mediaType=o.getType()),i&&i.mode&&(s.mode=i.mode);var u=e[r].some((function(t,n){if(t&&a>t.priority)return e[r].splice(n,0,s),!0}));u||e[r].push(s)}},off:function(r,n,o){if(r&&n&&e[r]){var i=t(r,n,o);i<0||(e[r][i]=null)}},trigger:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t&&e[t]){if((r=r||{}).hasOwnProperty("type"))throw new Error("'type' is a reserved word for event dispatching");r.type=t,n.streamId&&(r.streamId=n.streamId),n.mediaType&&(r.mediaType=n.mediaType),e[t].filter((function(e){return!(!e||n.streamId&&e.streamId&&e.streamId!==n.streamId||n.mediaType&&e.mediaType&&e.mediaType!==n.mediaType||n.mode&&e.mode&&e.mode!==n.mode||!e.mode&&n.mode&&n.mode===O.EVENT_MODE_ON_RECEIVE)})).forEach((function(e){return e&&e.callback.call(e.scope,r)}))}},reset:function(){e={}}};return r}fe.__dashjs_factory_name="EventBus";var ce=T.getSingletonFactory(fe);ce.EVENT_PRIORITY_LOW=0,ce.EVENT_PRIORITY_HIGH=5e3,T.updateSingletonFactory(fe.__dashjs_factory_name,ce);var de=ce;function pe(e){return pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pe(e)}function me(e,t){return me=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},me(e,t)}function he(e,t){return!t||"object"!==pe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ge(e){return ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ge(e)}function _e(e){return _e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(e)}function ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ye(e,t){return ye=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ye(e,t)}function Ee(e,t){return!t||"object"!==_e(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function be(e){return be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},be(e)}var Te=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ye(e,t)}(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=be(t);if(r){var o=be(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return Ee(this,e)});function o(){return ve(this,o),n.apply(this,arguments)}return o}(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&me(e,t)}(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=ge(t);if(r){var o=ge(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return he(this,e)});function o(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(e=n.call(this)).ATTEMPT_BACKGROUND_SYNC="attemptBackgroundSync",e.BUFFERING_COMPLETED="bufferingCompleted",e.BUFFER_CLEARED="bufferCleared",e.BYTES_APPENDED_END_FRAGMENT="bytesAppendedEndFragment",e.BUFFER_REPLACEMENT_STARTED="bufferReplacementStarted",e.CHECK_FOR_EXISTENCE_COMPLETED="checkForExistenceCompleted",e.CMSD_STATIC_HEADER="cmsdStaticHeader",e.CURRENT_TRACK_CHANGED="currentTrackChanged",e.DATA_UPDATE_COMPLETED="dataUpdateCompleted",e.INBAND_EVENTS="inbandEvents",e.INITIAL_STREAM_SWITCH="initialStreamSwitch",e.INIT_FRAGMENT_LOADED="initFragmentLoaded",e.INIT_FRAGMENT_NEEDED="initFragmentNeeded",e.INTERNAL_MANIFEST_LOADED="internalManifestLoaded",e.ORIGINAL_MANIFEST_LOADED="originalManifestLoaded",e.LOADING_COMPLETED="loadingCompleted",e.LOADING_PROGRESS="loadingProgress",e.LOADING_DATA_PROGRESS="loadingDataProgress",e.LOADING_ABANDONED="loadingAborted",e.MANIFEST_UPDATED="manifestUpdated",e.MEDIA_FRAGMENT_LOADED="mediaFragmentLoaded",e.MEDIA_FRAGMENT_NEEDED="mediaFragmentNeeded",e.QUOTA_EXCEEDED="quotaExceeded",e.SEGMENT_LOCATION_BLACKLIST_ADD="segmentLocationBlacklistAdd",e.SEGMENT_LOCATION_BLACKLIST_CHANGED="segmentLocationBlacklistChanged",e.SERVICE_LOCATION_BASE_URL_BLACKLIST_ADD="serviceLocationBlacklistAdd",e.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED="serviceLocationBlacklistChanged",e.SERVICE_LOCATION_LOCATION_BLACKLIST_ADD="serviceLocationLocationBlacklistAdd",e.SERVICE_LOCATION_LOCATION_BLACKLIST_CHANGED="serviceLocationLocationBlacklistChanged",e.SET_FRAGMENTED_TEXT_AFTER_DISABLED="setFragmentedTextAfterDisabled",e.SET_NON_FRAGMENTED_TEXT="setNonFragmentedText",e.SOURCE_BUFFER_ERROR="sourceBufferError",e.STREAMS_COMPOSED="streamsComposed",e.STREAM_BUFFERING_COMPLETED="streamBufferingCompleted",e.STREAM_REQUESTING_COMPLETED="streamRequestingCompleted",e.TEXT_TRACKS_QUEUE_INITIALIZED="textTracksQueueInitialized",e.TIME_SYNCHRONIZATION_COMPLETED="timeSynchronizationComplete",e.UPDATE_TIME_SYNC_OFFSET="updateTimeSyncOffset",e.URL_RESOLUTION_FAILED="urlResolutionFailed",e.VIDEO_CHUNK_RECEIVED="videoChunkReceived",e.WALLCLOCK_TIME_UPDATED="wallclockTimeUpdated",e.XLINK_ELEMENT_LOADED="xlinkElementLoaded",e.XLINK_READY="xlinkReady",e.SEEK_TARGET="seekTarget",e.SETTING_UPDATED_LIVE_DELAY="settingUpdatedLiveDelay",e.SETTING_UPDATED_LIVE_DELAY_FRAGMENT_COUNT="settingUpdatedLiveDelayFragmentCount",e.SETTING_UPDATED_CATCHUP_ENABLED="settingUpdatedCatchupEnabled",e.SETTING_UPDATED_PLAYBACK_RATE_MIN="settingUpdatedPlaybackRateMin",e.SETTING_UPDATED_PLAYBACK_RATE_MAX="settingUpdatedPlaybackRateMax",e}return o}(S)),Ae=new Te,Se=1,Ie=2,Re=3,we=4,Ne=5;function Oe(e){e=e||{};var t,r,n,o,i=this.context,a=de(i).getInstance(),s=e.settings,u=[];function l(e){return e&&e.bind?e.bind(window.console):window.console.log.bind(window.console)}function f(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];h.apply(void 0,[Se,this].concat(t))}function c(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];h.apply(void 0,[Ie,this].concat(t))}function d(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];h.apply(void 0,[Re,this].concat(t))}function p(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];h.apply(void 0,[we,this].concat(t))}function m(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];h.apply(void 0,[Ne,this].concat(t))}function h(e,t){var i="",l=null;r&&(l=(new Date).getTime(),i+="["+(l-o)+"]"),n&&t&&t.getClassName&&(i+="["+t.getClassName()+"]",t.getType&&(i+="["+t.getType()+"]")),i.length>0&&(i+=" ");for(var f=arguments.length,c=new Array(f>2?f-2:0),d=2;d<f;d++)c[d-2]=arguments[d];Array.apply(null,c).forEach((function(e){i+=e+" "})),u[e]&&s&&s.get().debug.logLevel>=e&&u[e](i),s&&s.get().debug.dispatchEvent&&a.trigger(Ae.LOG,{message:i,level:e})}return t={getLogger:function(e){return{fatal:f.bind(e),error:c.bind(e),warn:d.bind(e),info:p.bind(e),debug:m.bind(e)}},setLogTimestampVisible:function(e){r=e},setCalleeNameVisible:function(e){n=e}},r=!0,n=!0,o=(new Date).getTime(),"undefined"!=typeof window&&window.console&&(u[Se]=l(window.console.error),u[Ie]=l(window.console.error),u[Re]=l(window.console.warn),u[we]=l(window.console.info),u[Ne]=l(window.console.debug)),t}Oe.__dashjs_factory_name="Debug";var De=T.getSingletonFactory(Oe);De.LOG_LEVEL_NONE=0,De.LOG_LEVEL_FATAL=Se,De.LOG_LEVEL_ERROR=Ie,De.LOG_LEVEL_WARNING=Re,De.LOG_LEVEL_INFO=we,De.LOG_LEVEL_DEBUG=Ne,T.updateSingletonFactory(Oe.__dashjs_factory_name,De);var Ce=De;function Pe(e){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pe(e)}function Le(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Me(){var e,t,r=this.context,n=de(r).getInstance(),o={"streaming.delay.liveDelay":Ae.SETTING_UPDATED_LIVE_DELAY,"streaming.delay.liveDelayFragmentCount":Ae.SETTING_UPDATED_LIVE_DELAY_FRAGMENT_COUNT,"streaming.liveCatchup.enabled":Ae.SETTING_UPDATED_CATCHUP_ENABLED,"streaming.liveCatchup.playbackRate.min":Ae.SETTING_UPDATED_PLAYBACK_RATE_MIN,"streaming.liveCatchup.playbackRate.max":Ae.SETTING_UPDATED_PLAYBACK_RATE_MAX},i={debug:{logLevel:Ce.LOG_LEVEL_WARNING,dispatchEvent:!1},streaming:{abandonLoadTimeout:1e4,wallclockTimeUpdateInterval:100,manifestUpdateRetryInterval:100,cacheInitSegments:!1,applyServiceDescription:!0,applyProducerReferenceTime:!0,applyContentSteering:!0,eventControllerRefreshDelay:100,enableManifestDurationMismatchFix:!0,parseInbandPrft:!1,enableManifestTimescaleMismatchFix:!1,capabilities:{filterUnsupportedEssentialProperties:!0,useMediaCapabilitiesApi:!1},timeShiftBuffer:{calcFromSegmentTimeline:!1,fallbackToSegmentTimeline:!0},metrics:{maxListDepth:100},delay:{liveDelayFragmentCount:NaN,liveDelay:NaN,useSuggestedPresentationDelay:!0},protection:{keepProtectionMediaKeys:!1,ignoreEmeEncryptedEvent:!1,detectPlayreadyMessageFormat:!0},buffer:{enableSeekDecorrelationFix:!1,fastSwitchEnabled:!0,flushBufferAtTrackSwitch:!1,reuseExistingSourceBuffers:!0,bufferPruningInterval:10,bufferToKeep:20,bufferTimeAtTopQuality:30,bufferTimeAtTopQualityLongForm:60,initialBufferLevel:NaN,stableBufferTime:12,longFormContentDurationThreshold:600,stallThreshold:.3,useAppendWindow:!0,setStallState:!0,avoidCurrentTimeRangePruning:!1,useChangeTypeForTrackSwitch:!0,mediaSourceDurationInfinity:!0,resetSourceBuffersForTrackSwitch:!1},gaps:{jumpGaps:!0,jumpLargeGaps:!0,smallGapLimit:1.5,threshold:.3,enableSeekFix:!0,enableStallFix:!1,stallSeek:.1},utcSynchronization:{enabled:!0,useManifestDateHeaderTimeSource:!0,backgroundAttempts:2,timeBetweenSyncAttempts:30,maximumTimeBetweenSyncAttempts:600,minimumTimeBetweenSyncAttempts:2,timeBetweenSyncAttemptsAdjustmentFactor:2,maximumAllowedDrift:100,enableBackgroundSyncAfterSegmentDownloadError:!0,defaultTimingSource:{scheme:"urn:mpeg:dash:utc:http-xsdate:2014",value:"https://time.akamai.com/?iso&ms"}},scheduling:{defaultTimeout:500,lowLatencyTimeout:0,scheduleWhilePaused:!0},text:{defaultEnabled:!0,extendSegmentedCues:!0,webvtt:{customRenderingEnabled:!1}},liveCatchup:{maxDrift:NaN,playbackRate:{min:NaN,max:NaN},playbackBufferMin:.5,enabled:null,mode:z.LIVE_CATCHUP_MODE_DEFAULT},lastBitrateCachingInfo:{enabled:!0,ttl:36e4},lastMediaSettingsCachingInfo:{enabled:!0,ttl:36e4},saveLastMediaSettingsForCurrentStreamingSession:!0,cacheLoadThresholds:{video:50,audio:5},trackSwitchMode:{audio:z.TRACK_SWITCH_MODE_ALWAYS_REPLACE,video:z.TRACK_SWITCH_MODE_NEVER_REPLACE},selectionModeForInitialTrack:z.TRACK_SELECTION_MODE_HIGHEST_SELECTION_PRIORITY,fragmentRequestTimeout:2e4,fragmentRequestProgressTimeout:-1,manifestRequestTimeout:1e4,retryIntervals:(e={},Le(e,_.MPD_TYPE,500),Le(e,_.XLINK_EXPANSION_TYPE,500),Le(e,_.MEDIA_SEGMENT_TYPE,1e3),Le(e,_.INIT_SEGMENT_TYPE,1e3),Le(e,_.BITSTREAM_SWITCHING_SEGMENT_TYPE,1e3),Le(e,_.INDEX_SEGMENT_TYPE,1e3),Le(e,_.MSS_FRAGMENT_INFO_SEGMENT_TYPE,1e3),Le(e,_.LICENSE,1e3),Le(e,_.OTHER_TYPE,1e3),Le(e,"lowLatencyReductionFactor",10),e),retryAttempts:(t={},Le(t,_.MPD_TYPE,3),Le(t,_.XLINK_EXPANSION_TYPE,1),Le(t,_.MEDIA_SEGMENT_TYPE,3),Le(t,_.INIT_SEGMENT_TYPE,3),Le(t,_.BITSTREAM_SWITCHING_SEGMENT_TYPE,3),Le(t,_.INDEX_SEGMENT_TYPE,3),Le(t,_.MSS_FRAGMENT_INFO_SEGMENT_TYPE,3),Le(t,_.LICENSE,3),Le(t,_.OTHER_TYPE,3),Le(t,"lowLatencyMultiplyFactor",5),t),abr:{movingAverageMethod:z.MOVING_AVERAGE_SLIDING_WINDOW,ABRStrategy:z.ABR_STRATEGY_DYNAMIC,additionalAbrRules:{insufficientBufferRule:!0,switchHistoryRule:!0,droppedFramesRule:!0,abandonRequestsRule:!0},bandwidthSafetyFactor:.9,useDefaultABRRules:!0,useDeadTimeLatency:!0,limitBitrateByPortal:!1,usePixelRatioInLimitBitrateByPortal:!1,maxBitrate:{audio:-1,video:-1},minBitrate:{audio:-1,video:-1},maxRepresentationRatio:{audio:1,video:1},initialBitrate:{audio:-1,video:-1},initialRepresentationRatio:{audio:-1,video:-1},autoSwitchBitrate:{audio:!0,video:!0},fetchThroughputCalculationMode:z.ABR_FETCH_THROUGHPUT_CALCULATION_MOOF_PARSING},cmcd:{enabled:!1,sid:null,cid:null,rtp:null,rtpSafetyFactor:5,mode:z.CMCD_MODE_QUERY,enabledKeys:["br","d","ot","tb","bl","dl","mtp","nor","nrr","su","bs","rtp","cid","pr","sf","sid","st","v"]},cmsd:{enabled:!1,abr:{applyMb:!1,etpWeightRatio:0}}},errors:{recoverAttempts:{mediaErrorDecode:5}}},a=le.clone(i);function s(e,t,r){for(var i in e)e.hasOwnProperty(i)&&(t.hasOwnProperty(i)?"object"!==Pe(e[i])||e[i]instanceof Array||null===e[i]?(t[i]=le.clone(e[i]),o[r+i]&&n.trigger(o[r+i])):s(e[i],t[i],r.slice()+i+"."):console.error("Settings parameter "+r+i+" is not supported"))}return{get:function(){return a},update:function(e){"object"===Pe(e)&&s(e,a,"")},reset:function(){a=le.clone(i)}}}Me.__dashjs_factory_name="Settings";var xe=T.getSingletonFactory(Me);function Fe(e,t){if(e){if("string"==typeof e)return ke(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ke(e,t):void 0}}function ke(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 Ue(e){e=e||{};var t,r,n=this.context,o=e.requestModifier,i=e.lowLatencyThroughputModel,a=e.boxParser,s=xe(n).getInstance();function u(e){var t,n=new Date,u=e.request,c=new Headers;if(u.range&&c.append("Range","bytes="+u.range),e.headers)for(var d in e.headers){var p=e.headers[d];p&&c.append(d,p)}u.requestStartDate||(u.requestStartDate=n),o&&o.modifyRequestHeader&&o.modifyRequestHeader({setRequestHeader:function(e,t){c.append(e,t)}},{url:e.url}),"function"==typeof window.AbortController&&(t=new AbortController,e.abortController=t,t.signal.onabort=e.onabort);var m={method:e.method,headers:c,credentials:e.withCredentials?"include":void 0,signal:t?t.signal:void 0},h=s.get().streaming.abr.fetchThroughputCalculationMode,g=Date.now(),_=0;new Promise((function(e){if(h===z.ABR_FETCH_THROUGHPUT_CALCULATION_AAST&&i&&(_=i.getThroughputCapacityDelayMS(u,1e3*r.getCurrentBufferLevel(u.mediaType))))return setTimeout(e,_);e()})).then((function(){var t=Date.now();fetch(e.url,m).then((function(n){e.response||(e.response={}),e.response.status=n.status,e.response.statusText=n.statusText,e.response.responseURL=n.url,n.ok||e.onerror();var o,s="",c=function(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=Fe(e))){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(n.headers.keys());try{for(c.s();!(o=c.n()).done;){var d=o.value;s+=d+": "+n.headers.get(d)+"\r\n"}}catch(e){c.e(e)}finally{c.f()}if(e.response.responseHeaders=s,!n.body)return n.arrayBuffer().then((function(t){e.response.response=t;var r={loaded:t.byteLength,total:t.byteLength,stream:!1};e.progress(r),e.onload(),e.onend()}));var p,m,v,y,E=parseInt(n.headers.get("Content-Length"),10),b=0,T=!1,A=new Uint8Array,S=0;if(h===z.ABR_FETCH_THROUGHPUT_CALCULATION_AAST&&i){var I=t,R=0,w=(v=n.body.tee(),y=2,function(e){if(Array.isArray(e))return e}(v)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}}(v,y)||Fe(v,y)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),N=w[0],O=w[1];p=N.getReader(),m=[],p.read().then((function n(o){var a=o.value,l=o.done;if(R=Date.now(),a&&a.length){var f=R-I,c=a.length;m.push({chunkDownloadTimeRelativeMS:R-t,chunkDownloadDurationMS:f,chunkBytes:c,kbps:Math.round(8*c/(f/1e3)),bufferLevel:r.getCurrentBufferLevel(u.mediaType)})}if(l){var d=R-t,h=m.reduce((function(e,t){return e+t.chunkBytes}),0);return i.addMeasurement(u,d,m,g,_,s),void e.progress({loaded:h,total:h,lengthComputable:!0,time:i.getEstimatedDownloadDurationMS(u),stream:!0})}return I=Date.now(),p.read().then(n)})),e.reader=O.getReader()}else e.reader=n.body.getReader();var D=[],C=[],P=[],L=!0;l(e,(function t(r){var n=r.value;if(r.done){if(A){if(h!==z.ABR_FETCH_THROUGHPUT_CALCULATION_AAST){var o=null,i=null;h===z.ABR_FETCH_THROUGHPUT_CALCULATION_MOOF_PARSING?(o=function(e,t){try{var r,n;r=e.filter((function(t,r){return r<e.length-1})),n=t.filter((function(e,r){return r<t.length-1}));var o=[];if(r.length>1){for(var i=0,a=0,s=0;s<r.length;s++)if(r[s]&&n[s]){var u=n[s].ts-r[s].ts;if(u>1)o.push(8*n[s].bytes/u),a=0;else{0===a&&(a=r[s].ts,i=0);var l=n[s].ts-a;l>1?(i+=n[s].bytes,o.push(8*i/l),a=0):i+=n[s].bytes}}if(o.length>0)return o.reduce((function(e,t){return e+t}),0)/o.length}return null}catch(e){return null}}(C,P),o&&(i=8*b/o)):h===z.ABR_FETCH_THROUGHPUT_CALCULATION_DOWNLOADED_DATA&&(i=f(D,b)),e.progress({loaded:b,total:isNaN(E)?b:E,lengthComputable:!0,time:i,stream:!0})}e.response.response=A.buffer}return e.onload(),void e.onend()}if(n&&n.length>0){A=function(e,t){if(0===e.length)return t;var r=new Uint8Array(e.length+t.length);return r.set(e),r.set(t,e.length),r}(A,n),b+=n.length,D.push({ts:Date.now(),bytes:n.length}),h===z.ABR_FETCH_THROUGHPUT_CALCULATION_MOOF_PARSING&&L&&a.findLastTopIsoBoxCompleted(["moof"],A,S).found&&(L=!1,C.push({ts:performance.now(),bytes:n.length}));var s=a.findLastTopIsoBoxCompleted(["moov","mdat"],A,S);if(s.found){var u,c=s.lastCompletedOffset+s.size;h!==z.ABR_FETCH_THROUGHPUT_CALCULATION_MOOF_PARSING||L||(L=!0,P.push({ts:performance.now(),bytes:A.length})),c===A.length?(u=A,A=new Uint8Array):(u=new Uint8Array(A.subarray(0,c)),A=A.subarray(c)),e.progress({data:u.buffer,lengthComputable:!1,noTrace:!0}),S=0}else S=s.lastCompletedOffset,T||(e.progress({lengthComputable:!1,noTrace:!0}),T=!0)}l(e,t)}))})).catch((function(t){e.onerror&&e.onerror(t)}))}))}function l(e,t){e.reader.read().then(t).catch((function(t){e.onerror&&200===e.response.status&&e.onerror(t)}))}function f(e,t){try{if((e=e.filter((function(r){return r.bytes>t/4/e.length}))).length>1){var r=0,n=(e[e.length-1].ts-e[0].ts)/e.length;return e.forEach((function(t,o){var i=e[o+1];if(i){var a=i.ts-t.ts;r+=a<n?a:0}})),r}return null}catch(e){return null}}return t={load:function(e){o&&o.modifyRequest?Z(e,o).then((function(){return u(e)})):u(e)},abort:function(e){if(e.abortController)e.abortController.abort();else if(e.reader)try{e.reader.cancel(),e.onabort()}catch(e){}},calculateDownloadedTime:f,setup:function(e){r=e.dashMetrics}},t}Ue.__dashjs_factory_name="FetchLoader";var Be=T.getClassFactory(Ue),qe=function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.code=t||null,this.message=r||null,this.data=n||null};function Ge(e){return Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ge(e)}function je(e,t){return je=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},je(e,t)}function ze(e,t){return!t||"object"!==Ge(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function He(e){return He=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},He(e)}var Ye=new(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&je(e,t)}(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=He(t);if(r){var o=He(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return ze(this,e)});function o(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(e=n.call(this)).METRICS_INITIALISATION_COMPLETE="internal_metricsReportingInitialized",e.BECAME_REPORTING_PLAYER="internal_becameReportingPlayer",e.CMCD_DATA_GENERATED="cmcdDataGenerated",e}return o}(S));function Ve(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)}}var We=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=null,this.index=-1,this.adaptation=null,this.segmentInfoType=null,this.initialization=null,this.codecs=null,this.mimeType=null,this.codecPrivateData=null,this.segmentDuration=NaN,this.timescale=1,this.startNumber=1,this.indexRange=null,this.range=null,this.presentationTimeOffset=0,this.MSETimeOffset=NaN,this.mediaFinishedInformation={numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN},this.bandwidth=NaN,this.width=NaN,this.height=NaN,this.scanType=null,this.maxPlayoutRate=NaN,this.availabilityTimeOffset=0,this.availabilityTimeComplete=!0,this.frameRate=null}var t,r;return t=e,(r=[{key:"hasInitialization",value:function(){return null!==this.initialization||null!==this.range}},{key:"hasSegments",value:function(){return this.segmentInfoType!==B.BASE_URL&&this.segmentInfoType!==B.SEGMENT_BASE&&!this.indexRange}}])&&Ve(t.prototype,r),e}(),Xe=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.period=null,this.index=-1,this.type=null},Ke=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=null,this.index=-1,this.duration=NaN,this.start=NaN,this.mpd=null,this.nextPeriodId=null};Ke.DEFAULT_ID="defaultId";var Qe=Ke,$e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.manifest=null,this.suggestedPresentationDelay=0,this.availabilityStartTime=null,this.availabilityEndTime=Number.POSITIVE_INFINITY,this.timeShiftBufferDepth=Number.POSITIVE_INFINITY,this.maxSegmentDuration=Number.POSITIVE_INFINITY,this.publishTime=null,this.minimumUpdatePeriod=NaN,this.mediaPresentationDuration=NaN},Ze=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.schemeIdUri="",this.value=""},Je=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type="",this.duration=NaN,this.presentationTime=NaN,this.id=NaN,this.messageData="",this.eventStream=null,this.presentationTimeDelta=NaN},et=function e(t,r,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.url=t||"",this.serviceLocation=r||t||"",this.dvb_priority=n||1,this.dvb_weight=o||1,this.availabilityTimeOffset=0,this.availabilityTimeComplete=!0,this.queryParams={}};et.DEFAULT_DVB_PRIORITY=1,et.DEFAULT_DVB_WEIGHT=1;var tt=et,rt=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.adaptionSet=null,this.representation=null,this.period=null,this.timescale=1,this.value="",this.schemeIdUri="",this.presentationTimeOffset=0},nt=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=null,this.inband=!1,this.type="encoder",this.applicationScheme=null,this.wallClockTime=null,this.presentationTime=NaN,this.UTCTiming=null},ot=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultServiceLocation=null,this.defaultServiceLocationArray=[],this.queryBeforeStart=!1,this.serverUrl=null,this.clientRequirement=!0};function it(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)}}var at=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.schemeIdUri=null,this.value=null,this.id=null}var t,r;return t=e,(r=[{key:"init",value:function(e){return e&&(this.schemeIdUri=e.schemeIdUri?e.schemeIdUri:null,this.value=e.value?e.value:null,this.id=e.id?e.id:null),this}}])&&it(t.prototype,r),e}(),st=r(3101),ut=r.n(st);function lt(){return{areEqual:function(e,t){return ut()(e,t)}}}lt.__dashjs_factory_name="ObjectUtils";var ft=T.getSingletonFactory(lt);function ct(){var e,t=/^[a-z][a-z0-9+\-_.]*:/i,r=/^https?:\/\//i,n=/^https:\/\//i,o=/^([a-z][a-z0-9+\-_.]*:\/\/[^\/]+)\/?/i,i=function(e,t){try{return new window.URL(e,t).toString()}catch(t){return e}},a=function(e,t){var r=s;if(!t)return e;if(!f(e))return e;c(e)&&(r=u),d(e)&&(r=l);var n=r(t),o="/"!==n.charAt(n.length-1)&&"/"!==e.charAt(0)?"/":"";return[n,e].join(o)};function s(e){var t=e.indexOf("/"),r=e.lastIndexOf("/");return-1!==t?r===t+1?e:(-1!==e.indexOf("?")&&(e=e.substring(0,e.indexOf("?"))),e.substring(0,r+1)):""}function u(e){var t=e.match(o);return t?t[1]:""}function l(e){var r=e.match(t);return r?r[0]:""}function f(e){return!t.test(e)}function c(e){return f(e)&&"/"===e.charAt(0)}function d(e){return 0===e.indexOf("//")}return function(){try{new window.URL("x","http://y"),e=i}catch(e){}finally{e=e||a}}(),{parseBaseUrl:s,parseOrigin:u,parseScheme:l,isRelative:f,isPathAbsolute:c,isSchemeRelative:d,isHTTPURL:function(e){return r.test(e)},isHTTPS:function(e){return n.test(e)},removeHostname:function(e){return/^(?:\w+\:\/\/)?([^\/]+)(.*)$/.exec(e)[2].substring(1)},resolve:function(t,r){return e(t,r)}}}ct.__dashjs_factory_name="DefaultURLUtils";var dt=T.getSingletonFactory(ct);function pt(){var e,t=[],r=this.context;function n(r,n,o){var i=function(r){var n;for(n=0;n<t.length;n++)if(t[n].regex.test(r))return t[n].utils;return e}(o||n);return i&&"function"==typeof i[r]?i[r](n,o):e[r](n,o)}return e=dt(r).getInstance(),{registerUrlRegex:function(e,r){t.push({regex:e,utils:r})},parseBaseUrl:function(e){return n("parseBaseUrl",e)},parseOrigin:function(e){return n("parseOrigin",e)},parseScheme:function(e){return n("parseScheme",e)},isRelative:function(e){return n("isRelative",e)},isPathAbsolute:function(e){return n("isPathAbsolute",e)},isSchemeRelative:function(e){return n("isSchemeRelative",e)},isHTTPURL:function(e){return n("isHTTPURL",e)},isHTTPS:function(e){return n("isHTTPS",e)},removeHostname:function(e){return n("removeHostname",e)},resolve:function(e,t){return n("resolve",e,t)}}}pt.__dashjs_factory_name="URLUtils";var mt=T.getSingletonFactory(pt);function ht(e){return ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ht(e)}function gt(e,t){return gt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},gt(e,t)}function _t(e,t){return!t||"object"!==ht(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function vt(e){return vt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},vt(e)}var yt=new(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&>(e,t)}(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=vt(t);if(r){var o=vt(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return _t(this,e)});function o(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(e=n.call(this)).MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE=10,e.MANIFEST_LOADER_LOADING_FAILURE_ERROR_CODE=11,e.XLINK_LOADER_LOADING_FAILURE_ERROR_CODE=12,e.SEGMENT_BASE_LOADER_ERROR_CODE=15,e.TIME_SYNC_FAILED_ERROR_CODE=16,e.FRAGMENT_LOADER_LOADING_FAILURE_ERROR_CODE=17,e.FRAGMENT_LOADER_NULL_REQUEST_ERROR_CODE=18,e.URL_RESOLUTION_FAILED_GENERIC_ERROR_CODE=19,e.APPEND_ERROR_CODE=20,e.REMOVE_ERROR_CODE=21,e.DATA_UPDATE_FAILED_ERROR_CODE=22,e.CAPABILITY_MEDIASOURCE_ERROR_CODE=23,e.CAPABILITY_MEDIAKEYS_ERROR_CODE=24,e.DOWNLOAD_ERROR_ID_MANIFEST_CODE=25,e.DOWNLOAD_ERROR_ID_SIDX_CODE=26,e.DOWNLOAD_ERROR_ID_CONTENT_CODE=27,e.DOWNLOAD_ERROR_ID_INITIALIZATION_CODE=28,e.DOWNLOAD_ERROR_ID_XLINK_CODE=29,e.MANIFEST_ERROR_ID_PARSE_CODE=31,e.MANIFEST_ERROR_ID_NOSTREAMS_CODE=32,e.TIMED_TEXT_ERROR_ID_PARSE_CODE=33,e.MANIFEST_ERROR_ID_MULTIPLEXED_CODE=34,e.MEDIASOURCE_TYPE_UNSUPPORTED_CODE=35,e.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE="parsing failed for ",e.MANIFEST_LOADER_LOADING_FAILURE_ERROR_MESSAGE="Failed loading manifest: ",e.XLINK_LOADER_LOADING_FAILURE_ERROR_MESSAGE="Failed loading Xlink element: ",e.SEGMENTS_UPDATE_FAILED_ERROR_MESSAGE="Segments update failed",e.SEGMENTS_UNAVAILABLE_ERROR_MESSAGE="no segments are available yet",e.SEGMENT_BASE_LOADER_ERROR_MESSAGE="error loading segment ranges from sidx",e.TIME_SYNC_FAILED_ERROR_MESSAGE="Failed to synchronize client and server time",e.FRAGMENT_LOADER_NULL_REQUEST_ERROR_MESSAGE="request is null",e.URL_RESOLUTION_FAILED_GENERIC_ERROR_MESSAGE="Failed to resolve a valid URL",e.APPEND_ERROR_MESSAGE="chunk is not defined",e.REMOVE_ERROR_MESSAGE="Removing data from the SourceBuffer",e.DATA_UPDATE_FAILED_ERROR_MESSAGE="Data update failed",e.CAPABILITY_MEDIASOURCE_ERROR_MESSAGE="mediasource is not supported",e.CAPABILITY_MEDIAKEYS_ERROR_MESSAGE="mediakeys is not supported",e.TIMED_TEXT_ERROR_MESSAGE_PARSE="parsing error :",e.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE="Error creating source buffer of type : ",e}return o}(l)),Et=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.bitrate=0,this.width=0,this.height=0,this.tilesHor=0,this.tilesVert=0,this.widthPerTile=0,this.heightPerTile=0,this.startNumber=0,this.segmentDuration=0,this.timescale=0,this.templateUrl="",this.id=""};function bt(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)}}var Tt=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.offset=t._offset,this.type=t.type,this.size=t.size,this.boxes=[],t.boxes)for(var r=0;r<t.boxes.length;r++)this.boxes.push(new e(t.boxes[r]));switch(this.isComplete=!0,t.type){case"sidx":if(this.timescale=t.timescale,this.earliest_presentation_time=t.earliest_presentation_time,this.first_offset=t.first_offset,this.references=t.references,t.references){this.references=[];for(var n=0;n<t.references.length;n++){var o={reference_type:t.references[n].reference_type,referenced_size:t.references[n].referenced_size,subsegment_duration:t.references[n].subsegment_duration};this.references.push(o)}}break;case"emsg":this.id=t.id,this.version=1===t.version?1:0,this.value=t.value,this.timescale=t.timescale,this.scheme_id_uri=t.scheme_id_uri,this.presentation_time_delta=1===t.version?t.presentation_time:t.presentation_time_delta,this.event_duration=t.event_duration,this.message_data=t.message_data;break;case"mdhd":this.timescale=t.timescale;break;case"mfhd":this.sequence_number=t.sequence_number;break;case"subs":this.entry_count=t.entry_count,this.entries=t.entries;break;case"tfhd":this.base_data_offset=t.base_data_offset,this.sample_description_index=t.sample_description_index,this.default_sample_duration=t.default_sample_duration,this.default_sample_size=t.default_sample_size,this.default_sample_flags=t.default_sample_flags,this.flags=t.flags;break;case"tfdt":this.version=t.version,this.baseMediaDecodeTime=t.baseMediaDecodeTime,this.flags=t.flags;break;case"trun":if(this.sample_count=t.sample_count,this.first_sample_flags=t.first_sample_flags,this.data_offset=t.data_offset,this.flags=t.flags,this.samples=t.samples,t.samples){this.samples=[];for(var i=0,a=t.samples.length;i<a;i++){var s={sample_size:t.samples[i].sample_size,sample_duration:t.samples[i].sample_duration,sample_composition_time_offset:t.samples[i].sample_composition_time_offset};this.samples.push(s)}}break;case"prft":this.version=t.version,this.reference_track_ID=t.reference_track_ID,this.ntp_timestamp_sec=t.ntp_timestamp_sec,this.ntp_timestamp_frac=t.ntp_timestamp_frac,this.media_time=t.media_time,this.flags=t.flags}}var t,r;return t=e,(r=[{key:"getChildBox",value:function(e){for(var t=0;t<this.boxes.length;t++)if(this.boxes[t].type===e)return this.boxes[t]}},{key:"getChildBoxes",value:function(e){for(var t=[],r=0;r<this.boxes.length;r++)this.boxes[r].type===e&&t.push(this.boxes[r]);return t}}])&&bt(t.prototype,r),e}();function At(){var e;function t(t){var n=[];if(!t||!e||"function"!=typeof e.fetchAll)return n;for(var o,i=e.fetchAll(t),a=0,s=i.length;a<s;a++)(o=r(i[a]))&&n.push(o);return n}function r(e){if(!e)return null;var t=new Tt(e);return e.hasOwnProperty("_incomplete")&&(t.isComplete=!e._incomplete),t}return{getBox:function(t){return t&&e&&e.boxes&&0!==e.boxes.length&&"function"==typeof e.fetch?r(e.fetch(t)):null},getBoxes:t,setData:function(t){e=t},getLastBox:function(){if(!e||!e.boxes||!e.boxes.length)return null;var r=t(e.boxes[e.boxes.length-1].type);return r.length>0?r[r.length-1]:null}}}At.__dashjs_factory_name="IsoFile";var St=T.getClassFactory(At),It=r(6934),Rt=function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.lastCompletedOffset=t,this.found=r,this.size=n};function wt(){var e,t,r=this.context;function n(e){if(!e)return null;void 0===e.fileStart&&(e.fileStart=0);var t=It.parseBuffer(e),n=St(r).create();return n.setData(t),n}function o(e,t){return e[t+3]>>>0|e[t+2]<<8>>>0|e[t+1]<<16>>>0|e[t]<<24>>>0}function i(e,t){return String.fromCharCode(e[t++])+String.fromCharCode(e[t++])+String.fromCharCode(e[t++])+String.fromCharCode(e[t])}return t={parse:n,findLastTopIsoBoxCompleted:function(e,t,r){if(void 0===r&&(r=0),!t||r+8>=t.byteLength)return new Rt(0,!1);for(var n,a=t instanceof ArrayBuffer?new Uint8Array(t):t,s=0;r<a.byteLength;){var u=o(a,r),l=i(a,r+4);if(0===u)break;r+u<=a.byteLength&&(e.indexOf(l)>=0?n=new Rt(r,!0,u):s=r+u),r+=u}return n||new Rt(s,!1)},getMediaTimescaleFromMoov:function(e){var t=n(e),r=t?t.getBox("mdhd"):void 0;return r?r.timescale:NaN},getSamplesInfo:function(e){if(!e||0===e.byteLength)return{sampleList:[],lastSequenceNumber:NaN,totalDuration:NaN,numSequences:NaN};var t,r,o,i,a,s,u,l,f,c,d,p,m,h,g,_,v=n(e),y=v.getBoxes("moof"),E=v.getBoxes("mfhd");g=v.getBoxes("moof").length,h=E[E.length-1].sequence_number,r=0,a=[];var b=-1,T=-1;for(c=0;c<y.length;c++){var A=y[c],S=A.getChildBoxes("traf");for(l=0;l<S.length;l++){var I=S[l],R=I.getChildBox("tfhd"),w=I.getChildBox("tfdt");i=w.baseMediaDecodeTime;var N=I.getChildBoxes("trun"),O=I.getChildBoxes("subs");for(f=0;f<N.length;f++){var D=N[f];for(r=D.sample_count,m=(R.base_data_offset||0)+(D.data_offset||0),u=0;u<r;u++){t=void 0!==(s=D.samples[u]).sample_duration?s.sample_duration:R.default_sample_duration,o=void 0!==s.sample_size?s.sample_size:R.default_sample_size;var C={dts:i,cts:i+(void 0!==s.sample_composition_time_offset?s.sample_composition_time_offset:0),duration:t,offset:A.offset+m,size:o,subSizes:[o]};if(O)for(d=0;d<O.length;d++){var P=O[d];if(b<P.entry_count-1&&u>T&&(b++,T+=P.entries[b].sample_delta),u==T){C.subSizes=[];var L=P.entries[b];for(p=0;p<L.subsample_count;p++)C.subSizes.push(L.subsamples[p].subsample_size)}}a.push(C),m+=o,i+=t}}_=i-w.baseMediaDecodeTime}}return{sampleList:a,lastSequenceNumber:h,totalDuration:_,numSequences:g}},findInitRange:function(t){var r=null,o=n(t);if(!o)return r;var i=o.getBox("ftyp"),a=o.getBox("moov");return e.debug("Searching for initialization."),a&&a.isComplete&&(r=(i?i.offset:a.offset)+"-"+(a.offset+a.size-1),e.debug("Found the initialization. Range: "+r)),r},parsePayload:function(e,t,r){if(void 0===r&&(r=0),!t||r+8>=t.byteLength)return new Rt(0,!1);for(var n,a=t instanceof ArrayBuffer?new Uint8Array(t):t,s=0;r<a.byteLength;){var u=o(a,r),l=i(a,r+4);if(0===u)break;r+u<=a.byteLength&&(e.indexOf(l)>=0?n=new Rt(r,!0,u,l):s=r+u),r+=u}return n||new Rt(s,!1)}},e=Ce(r).getInstance().getLogger(t),t}wt.__dashjs_factory_name="BoxParser";var Nt=T.getSingletonFactory(wt);function Ot(e,t){var r=(e=e||{}).timelineConverter,n=e.dashMetrics;function o(){if(!r)throw new Error(z.MISSING_CONFIG_ERROR)}function i(e,t){var r,n,o,i,s,u,l,f=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentTemplate||e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentList,c=f.SegmentTimeline,d=f.SegmentURL_asArray,p=0,m=-1;l=e.timescale;var h=!1;for(o=0,i=(r=c.S_asArray).length;o<i&&!h;o++)for(u=0,(n=r[o]).hasOwnProperty("r")&&(u=n.r),n.hasOwnProperty("t")&&(p=n.t),u<0&&(u=a(e,r[o+1],n,l,p/l)),s=0;s<=u&&!h;s++)(h=t(p,f,d,n,l,++m,o))&&(e.segmentDuration=n.d/l),p+=n.d}function a(e,t,o,i,a){var s;if(t&&t.hasOwnProperty("t"))s=t.t/i;else try{var u=0;if(isNaN(e.adaptation.period.start)||isNaN(e.adaptation.period.duration)||!isFinite(e.adaptation.period.duration)){var l=n.getCurrentDVRInfo();u=isNaN(l.end)?0:l.end}else u=e.adaptation.period.start+e.adaptation.period.duration;s=r.calcMediaTimeFromPresentationTime(u,e),e.segmentDuration=o.d/i}catch(e){s=0}return Math.max(Math.ceil((s-a)/(o.d/i))-1,0)}return{getSegmentByIndex:function(e,n,a){if(o(),!e)return null;var s=null,u=!1;return i(e,(function(n,o,i,l,f,c,d){if(u||a<0){var p=o.media,m=l.mediaRange;return i&&(p=i[d].media||"",m=i[d].mediaRange),s=k(r,t,e,n,l.d,f,p,m,c,l.tManifest),!0}return n>=a*f-.5*l.d&&(u=!0),!1})),s},getSegmentByTime:function(e,n){if(o(),!e)return null;void 0===n&&(n=null);var a=null,s=r.calcMediaTimeFromPresentationTime(n,e);return i(e,(function(n,o,i,u,l,f,c){var d=parseFloat((s*l).toPrecision(15));if(d<n+u.d&&d>=n){var p=o.media,m=u.mediaRange;return i&&(p=i[c].media||"",m=i[c].mediaRange),a=k(r,t,e,n,u.d,l,p,m,f,u.tManifest),!0}return!1})),a},getMediaFinishedInformation:function(e){if(!e)return 0;var t,r,n,o,i,s,u,l=(e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentTemplate||e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentList).SegmentTimeline,f=0,c=0,d=0;for(u=e.timescale,o=(t=l.S_asArray).length,n=0;n<o;n++)for(s=0,(r=t[n]).hasOwnProperty("r")&&(s=r.r),r.hasOwnProperty("t")&&(c=(f=r.t)/u),s<0&&(s=a(e,t[n+1],r,u,c)),i=0;i<=s;i++)d++,c=(f+=r.d)/u;return{numberOfSegments:d,mediaTimeOfLastSignaledSegment:c}}}}Ot.__dashjs_factory_name="TimelineSegmentsGetter";var Dt=T.getClassFactory(Ot);function Ct(e,t){var r=(e=e||{}).timelineConverter;function n(){if(!r||!r.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(z.MISSING_CONFIG_ERROR)}function o(e,o){if(n(),!e)return null;var i=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentTemplate;o=Math.max(o,0);var a=F(r,t,e,o);if(a){a.replacementTime=Math.round((o-1)*e.segmentDuration*e.timescale,10);var s=i.media;s=L(s,"Number",a.replacementNumber),s=L(s,"Time",a.replacementTime),a.media=s}return a}return{getSegmentByIndex:o,getSegmentByTime:function(e,t){if(n(),!e)return null;var i=e.segmentDuration;if(isNaN(i))return null;var a=r.calcPeriodRelativeTimeFromMpdRelativeTime(e,t);return o(e,Math.floor(a/i))},getMediaFinishedInformation:function(e){var t={numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN};if(!e)return t;var r=e.segmentDuration;return isNaN(r)?t.numberOfSegments=1:t.numberOfSegments=Math.ceil(e.adaptation.period.duration/r),t}}}Ct.__dashjs_factory_name="TemplateSegmentsGetter";var Pt=T.getClassFactory(Ct);function Lt(e,t){var r=(e=e||{}).timelineConverter;function n(){if(!r||!r.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(z.MISSING_CONFIG_ERROR)}function o(e,o){if(n(),!e)return null;var i=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentList,a=i.SegmentURL_asArray.length,s=e&&!isNaN(e.startNumber)?e.startNumber:1,u=Math.max(s-1,0),l=Math.max(o-u,0),f=null;if(l<a){var c=i.SegmentURL_asArray[l];(f=F(r,t,e,o))&&(f.replacementTime=(s+o-1)*e.segmentDuration,f.media=c.media?c.media:"",f.mediaRange=c.mediaRange,f.indexRange=c.indexRange)}return f}return{getSegmentByIndex:o,getSegmentByTime:function(e,t){if(n(),!e)return null;var i=e.segmentDuration;if(isNaN(i))return null;var a=r.calcPeriodRelativeTimeFromMpdRelativeTime(e,t);return o(e,Math.floor(a/i))},getMediaFinishedInformation:function(e){var t={numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN};if(!e)return t;var r=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentList,n=e&&!isNaN(e.startNumber)?e.startNumber:1,o=Math.max(n-1,0);return t.numberOfSegments=o+r.SegmentURL_asArray.length,t}}}Lt.__dashjs_factory_name="ListSegmentsGetter";var Mt=T.getClassFactory(Lt);function xt(e){var t=(e=e||{}).timelineConverter;function r(){if(!t||!t.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(z.MISSING_CONFIG_ERROR)}function n(e,t){if(r(),!e)return null;var n,o=e.segments?e.segments.length:-1;if(t<o&&(n=e.segments[t])&&n.index===t)return n;for(var i=0;i<o;i++)if((n=e.segments[i])&&n.index===t)return n;return null}return{getSegmentByIndex:n,getSegmentByTime:function(e,t){r();var o=function(e,t){if(!e)return-1;var r,n,o,i,a,s=e.segments,u=s?s.length:null,l=-1;if(s&&u>0)for(a=0;a<u;a++)if(o=(n=s[a]).presentationStartTime,t+(r=(i=n.duration)/2)>=o&&t-r<o+i){l=n.index;break}return l}(e,t);return n(e,o)},getMediaFinishedInformation:function(e){var t={numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN};return e&&e.segments?(t.numberOfSegments=e.segments.length,t):t}}}xt.__dashjs_factory_name="SegmentBaseGetter";var Ft=T.getClassFactory(xt);function kt(e){e=e||{};var t,r,n=this.context,o=e.dashConstants,i=e.type,a=e.segmentBaseController;function s(e){return e?e.segments?r[o.SEGMENT_BASE]:r[e.segmentInfoType]:null}return t={initialize:function(t){r[o.SEGMENT_TIMELINE]=Dt(n).create(e,t),r[o.SEGMENT_TEMPLATE]=Pt(n).create(e,t),r[o.SEGMENT_LIST]=Mt(n).create(e,t),r[o.SEGMENT_BASE]=Ft(n).create(e,t)},updateInitData:function(e,t){return t?Promise.resolve():a.getSegmentBaseInitSegment({representation:e,mediaType:i})},updateSegmentData:function(e,t){return t?Promise.resolve():a.getSegmentList({mimeType:e.mimeType,representation:e,mediaType:i})},getSegmentByIndex:function(e,t,r){var n=s(e);return n?n.getSegmentByIndex(e,t,r):null},getSegmentByTime:function(e,t){var r=s(e);return r?r.getSegmentByTime(e,t):null},getMediaFinishedInformation:function(e){var t=s(e);return t?t.getMediaFinishedInformation(e):{numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN}}},r={},t}kt.__dashjs_factory_name="SegmentsController";var Ut=T.getClassFactory(kt),Bt=["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"];function qt(e){var t,r,n,o,i,a,s,u,l=this.context,f=e.adapter,c=e.baseURLController,d=e.streamInfo,p=e.timelineConverter,m=e.debug,h=e.eventBus,g=e.events,_=e.dashConstants,v=mt(l).getInstance();function y(e,t){var n=new Et;n.id=e.id,n.bitrate=e.bandwidth,n.width=e.width,n.height=e.height,n.tilesHor=1,n.tilesVert=1,e.essentialProperties&&e.essentialProperties.forEach((function(e){if(Bt.indexOf(e.schemeIdUri)>=0&&e.value){var t=e.value.split("x");2!==t.length||isNaN(t[0])||isNaN(t[1])||(n.tilesHor=parseInt(t[0],10),n.tilesVert=parseInt(t[1],10))}})),t?a.updateSegmentData(e).then((function(t){!function(e,t,r){var n=[],o=function(e,t){var r,n,o,i,a=[],s=0;for(r=0,n=e.segments.length;r<n;r++)o=e.segments[r],(i=k(p,f.getIsDynamic(),t,o.startTime,o.duration,o.timescale,o.media,o.mediaRange,s))&&(a.push(i),i=null,s++);return a}(r,t);t.segments=o,e.segmentDuration=t.segments[0].duration,e.readThumbnail=function(e,r){var o=null;n.some((function(t){if(t.start<=e&&t.end>e)return o=t.url,!0})),o?r(o):t.segments.some((function(o){if(o.mediaStartTime<=e&&o.mediaStartTime+o.duration>e){var i=c.resolve(t.path);return s.load({method:"get",url:i.url,request:{range:o.mediaRange,responseType:"arraybuffer"},onload:function(e){var t=u.getSamplesInfo(e.target.response),i=new Blob([e.target.response.slice(t.sampleList[0].offset,t.sampleList[0].offset+t.sampleList[0].size)],{type:"image/jpeg"}),a=window.URL.createObjectURL(i);n.push({start:o.mediaStartTime,end:o.mediaStartTime+o.duration,url:a}),r&&r(a)}}),!0}}))}}(n,e,t)})):(n.startNumber=e.startNumber,n.segmentDuration=e.segmentDuration,n.timescale=e.timescale,n.templateUrl=function(e){var t=v.isRelative(e.media)?v.resolve(e.media,c.resolve(e.path).url):e.media;return t?P(t,e.id):""}(e)),n.tilesHor>0&&n.tilesVert>0&&(n.widthPerTile=n.width/n.tilesHor,n.heightPerTile=n.height/n.tilesVert,r.push(n))}function E(){r=[],o=-1,i=null}return t={getTracks:function(){return r},addTracks:function(){if(d&&f&&(i=f.getMediaInfoForType(d,z.IMAGE))){var e=f.getVoRepresentations(i);e&&e.length>0&&e.forEach((function(e){(e.segmentInfoType===B.SEGMENT_TEMPLATE&&e.segmentDuration>0&&e.media||e.segmentInfoType===B.SEGMENT_TIMELINE)&&y(e),e.segmentInfoType===B.SEGMENT_BASE&&y(e,!0)})),r.length>0&&r.sort((function(e,t){return e.bitrate-t.bitrate}))}},reset:E,setTrackByIndex:function(e){r&&0!==r.length&&(e>=r.length&&(e=r.length-1),o=e)},getCurrentTrack:function(){return o<0?null:r[o]},getCurrentTrackIndex:function(){return o},getThumbnailRequestForTime:function(e){for(var t,a=f.getVoRepresentations(i),s=0;s<a.length;s++)if(r[o].id===a[s].id){t=a[s];break}return n.getSegmentRequestForTime(i,t,e)}},E(),s=re(l).create({}),u=Nt(l).getInstance(),a=Ut(l).create({events:g,eventBus:h,streamInfo:d,timelineConverter:p,dashConstants:_,dashMetrics:e.dashMetrics,segmentBaseController:e.segmentBaseController,type:z.IMAGE}),(n=G(l).create({streamInfo:d,type:z.IMAGE,timelineConverter:p,segmentsController:a,baseURLController:c,debug:m,eventBus:h,events:g,dashConstants:_,urlUtils:v})).initialize(!!f&&f.getIsDynamic()),t}qt.__dashjs_factory_name="ThumbnailTracks",T.getClassFactory(qt);var Gt=function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.url=t||"",this.serviceLocation=r||null,this.queryParams={}},jt=function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.url=t||"",this.serviceLocation=r||null,this.ttl=n||NaN,this.queryParams={}};function zt(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=Ht(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Ht(e,t){if(e){if("string"==typeof e)return Yt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Yt(e,t):void 0}}function Yt(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 Vt(){var e,t,r,n,o=this.context,i=mt(o).getInstance(),a=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function s(e,t){if(!e)throw new Error("adaptation is not defined");if(!t)throw new Error("type is not defined");if(e.Representation_asArray&&e.Representation_asArray.length){var r=g(e.Representation_asArray[0]);if(r&&r.length>0&&Bt.indexOf(r[0].schemeIdUri)>=0)return t===z.IMAGE}if(e.ContentComponent_asArray&&e.ContentComponent_asArray.length>0){if(e.ContentComponent_asArray.length>1)return t===z.MUXED;if(e.ContentComponent_asArray[0].contentType===t)return!0}var n=t===z.TEXT?new RegExp("(ttml|vtt|wvtt|stpp)"):new RegExp(t);if(e.Representation_asArray&&e.Representation_asArray.length){var o=e.Representation_asArray[0].codecs;if(n.test(o))return!0}if(e.hasOwnProperty(B.MIME_TYPE))return n.test(e.mimeType);if(e.Representation_asArray)for(var i,a=0;a<e.Representation_asArray.length;a++)if((i=e.Representation_asArray[a]).hasOwnProperty(B.MIME_TYPE))return n.test(i.mimeType);return!1}function u(e){if(!e)throw new Error("adaptation is not defined");if(e.hasOwnProperty(B.SEGMENT_TEMPLATE)||e.hasOwnProperty(B.SEGMENT_TIMELINE)||e.hasOwnProperty(B.SEGMENT_LIST)||e.hasOwnProperty(B.SEGMENT_BASE))return!0;if(e.Representation_asArray&&e.Representation_asArray.length>0){var t=e.Representation_asArray[0];if(t.hasOwnProperty(B.SEGMENT_TEMPLATE)||t.hasOwnProperty(B.SEGMENT_TIMELINE)||t.hasOwnProperty(B.SEGMENT_LIST)||t.hasOwnProperty(B.SEGMENT_BASE))return!0}return!1}function l(e){return s(e,z.VIDEO)}function f(e){return s(e,z.TEXT)}function c(e){return s(e,z.IMAGE)}function d(e){return e&&Array.isArray(e.Representation_asArray)&&e.Representation_asArray.sort((function(e,t){return e.bandwidth-t.bandwidth})),e}function p(e,t){return e&&e.Period_asArray&&a(t)&&e.Period_asArray[t]?e.Period_asArray[t].AdaptationSet_asArray:[]}function m(e){return e&&e.Period_asArray?e.Period_asArray:[]}function h(e){var t=!1;return e&&e.hasOwnProperty("type")&&(t=e.type===B.DYNAMIC),t}function g(e){return e&&e.EssentialProperty_asArray&&e.EssentialProperty_asArray.length?e.EssentialProperty_asArray.map((function(e){return{schemeIdUri:e.schemeIdUri,value:e.value}})):null}function _(e){if(!e||!e.S_asArray)return NaN;var t=e.S_asArray[0],r=e.S_asArray[1];return t.hasOwnProperty("d")?t.d:r.t-t.t}function v(e,t){if(!e)throw new Error("Period cannot be null or undefined");var r=Qe.DEFAULT_ID+"_"+t;return e.hasOwnProperty(B.ID)&&e.id.length>0&&"__proto__"!==e.id&&(r=e.id),r}function y(e,t,r){var n,o=[];if(!e)return o;for(n=0;n<e.length;n++){var i=new rt;if(i.timescale=1,i.representation=t,!e[n].hasOwnProperty(z.SCHEME_ID_URI))throw new Error("Invalid EventStream. SchemeIdUri has to be set");i.schemeIdUri=e[n].schemeIdUri,e[n].hasOwnProperty(B.TIMESCALE)&&(i.timescale=e[n].timescale),e[n].hasOwnProperty(B.VALUE)&&(i.value=e[n].value),o.push(i),i.period=r}return o}function E(e){var t=[],r=e.BaseURL_asArray||[e.baseUri],n=!1;return r.some((function(r){if(r){var o=new tt,a=r.__text||r;return i.isRelative(a)&&(n=!0,e.baseUri&&(a=i.resolve(a,e.baseUri))),o.url=a,r.hasOwnProperty(B.SERVICE_LOCATION)&&r.serviceLocation.length?o.serviceLocation=r.serviceLocation:o.serviceLocation=a,r.hasOwnProperty(B.DVB_PRIORITY)&&(o.dvb_priority=r[B.DVB_PRIORITY]),r.hasOwnProperty(B.DVB_WEIGHT)&&(o.dvb_weight=r[B.DVB_WEIGHT]),r.hasOwnProperty(B.AVAILABILITY_TIME_OFFSET)&&(o.availabilityTimeOffset=r[B.AVAILABILITY_TIME_OFFSET]),r.hasOwnProperty(B.AVAILABILITY_TIME_COMPLETE)&&(o.availabilityTimeComplete="false"!==r[B.AVAILABILITY_TIME_COMPLETE]),t.push(o),n}})),t}function b(e){var t=new ot;return t.serverUrl=e.__text,e.hasOwnProperty(B.DEFAULT_SERVICE_LOCATION)&&(t.defaultServiceLocation=e[B.DEFAULT_SERVICE_LOCATION],t.defaultServiceLocationArray=t.defaultServiceLocation.split(" ")),e.hasOwnProperty(B.QUERY_BEFORE_START)&&(t.queryBeforeStart="true"===e[B.QUERY_BEFORE_START].toLowerCase()),e.hasOwnProperty(B.CLIENT_REQUIREMENT)&&(t.clientRequirement="false"!==e[B.CLIENT_REQUIREMENT].toLowerCase()),t}return e={getIsTypeOf:s,getIsText:f,getIsFragmented:u,getProducerReferenceTimesForAdaptation:function(e){var t=e&&e.hasOwnProperty(B.PRODUCERREFERENCETIME_ASARRAY)?e[B.PRODUCERREFERENCETIME_ASARRAY]:[];(e&&e.hasOwnProperty(B.REPRESENTATION_ASARRAY)?e[B.REPRESENTATION_ASARRAY]:[]).forEach((function(e){var r;e.hasOwnProperty(B.PRODUCERREFERENCETIME_ASARRAY)&&t.push.apply(t,function(e){if(Array.isArray(e))return Yt(e)}(r=e[B.PRODUCERREFERENCETIME_ASARRAY])||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(r)||Ht(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}));var r=[];return t.forEach((function(e){var t=new nt;e.hasOwnProperty(B.ID)&&(t[B.ID]=e[B.ID],e.hasOwnProperty(B.WALL_CLOCK_TIME)&&(t[B.WALL_CLOCK_TIME]=e[B.WALL_CLOCK_TIME],e.hasOwnProperty(B.PRESENTATION_TIME)&&(t[B.PRESENTATION_TIME]=e[B.PRESENTATION_TIME],e.hasOwnProperty(B.INBAND)&&(t[B.INBAND]="false"!==e[B.INBAND]),e.hasOwnProperty(B.TYPE)&&(t[B.TYPE]=e[B.TYPE]),r.push(t))))})),r},getLanguageForAdaptation:function(e){var t="";return e&&e.hasOwnProperty(B.LANG)&&(t=e.lang),t},getViewpointForAdaptation:function(e){return e&&e.hasOwnProperty(B.VIEWPOINT_ASARRAY)&&e[B.VIEWPOINT_ASARRAY].length?e[B.VIEWPOINT_ASARRAY].map((function(e){return(new at).init(e)})):[]},getRolesForAdaptation:function(e){return e&&e.hasOwnProperty(B.ROLE_ASARRAY)&&e[B.ROLE_ASARRAY].length?e[B.ROLE_ASARRAY].map((function(e){return(new at).init(e)})):[]},getAccessibilityForAdaptation:function(e){return e&&e.hasOwnProperty(B.ACCESSIBILITY_ASARRAY)&&e[B.ACCESSIBILITY_ASARRAY].length?e[B.ACCESSIBILITY_ASARRAY].map((function(e){return(new at).init(e)})):[]},getAudioChannelConfigurationForAdaptation:function(e){return e&&e.hasOwnProperty(B.AUDIOCHANNELCONFIGURATION_ASARRAY)&&e[B.AUDIOCHANNELCONFIGURATION_ASARRAY].length?e[B.AUDIOCHANNELCONFIGURATION_ASARRAY].map((function(e){return(new at).init(e)})):[]},getAudioChannelConfigurationForRepresentation:function(e){return e&&e.hasOwnProperty(B.AUDIOCHANNELCONFIGURATION_ASARRAY)&&e[B.AUDIOCHANNELCONFIGURATION_ASARRAY].length?e[B.AUDIOCHANNELCONFIGURATION_ASARRAY].map((function(e){return(new at).init(e)})):[]},getAdaptationForIndex:function(e,t,r){var n=p(t,r);return n.length>0&&a(e)?n[e]:null},getIndexForAdaptation:function(e,t,r){if(!e)return-1;for(var n=p(t,r),i=0;i<n.length;i++)if(ft(o).getInstance().areEqual(n[i],e))return i;return-1},getAdaptationForId:function(e,t,r){var n,o,i=p(t,r);for(n=0,o=i.length;n<o;n++)if(i[n].hasOwnProperty(B.ID)&&i[n].id===e)return i[n];return null},getAdaptationsForType:function(e,t,r){var n,o,i=p(e,t),a=[];for(n=0,o=i.length;n<o;n++)s(i[n],r)&&a.push(d(i[n]));return a},getRealPeriods:m,getRealPeriodForIndex:function(e,t){var r=m(t);return r.length>0&&a(e)?r[e]:null},getCodec:function(e,t,r){var n=null;if(e&&e.Representation_asArray&&e.Representation_asArray.length>0){var o=a(t)&&t>=0&&t<e.Representation_asArray.length?e.Representation_asArray[t]:e.Representation_asArray[0];o&&(n=o.mimeType+';codecs="'+o.codecs+'"',r&&void 0!==o.width&&(n+=';width="'+o.width+'";height="'+o.height+'"'))}return n&&(n=n.replace(/\sprofiles=[^;]*/g,"")),n},getSelectionPriority:function(e){try{var t=e&&void 0!==e.selectionPriority?parseInt(e.selectionPriority):1;return isNaN(t)?1:t}catch(e){return 1}},getMimeType:function(e){return e&&e.Representation_asArray&&e.Representation_asArray.length>0?e.Representation_asArray[0].mimeType:null},getKID:function(e){return e&&e.hasOwnProperty(B.CENC_DEFAULT_KID)?e[B.CENC_DEFAULT_KID]:null},getLabelsForAdaptation:function(e){if(!e||!Array.isArray(e.Label_asArray))return[];for(var t=[],r=0;r<e.Label_asArray.length;r++)t.push({lang:e.Label_asArray[r].lang,text:e.Label_asArray[r].__text||e.Label_asArray[r]});return t},getContentProtectionData:function(e){return e&&e.hasOwnProperty(B.CONTENTPROTECTION_ASARRAY)&&0!==e.ContentProtection_asArray.length?e.ContentProtection_asArray:null},getIsDynamic:h,getId:function(e){return e&&e[B.ID]||null},hasProfile:function(e,t){var r=!1;return e&&e.profiles&&e.profiles.length>0&&(r=-1!==e.profiles.indexOf(t)),r},getDuration:function(e){return e&&e.hasOwnProperty(B.MEDIA_PRESENTATION_DURATION)?e.mediaPresentationDuration:e&&"dynamic"==e.type?Number.POSITIVE_INFINITY:Number.MAX_SAFE_INTEGER||Number.MAX_VALUE},getBandwidth:function(e){return e&&e.bandwidth?e.bandwidth:NaN},getManifestUpdatePeriod:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=NaN;return e&&e.hasOwnProperty(B.MINIMUM_UPDATE_PERIOD)&&(r=e.minimumUpdatePeriod),isNaN(r)?r:Math.max(r-t,1)},getPublishTime:function(e){return e&&e.hasOwnProperty(B.PUBLISH_TIME)?new Date(e[B.PUBLISH_TIME]):null},getRepresentationCount:function(e){return e&&Array.isArray(e.Representation_asArray)?e.Representation_asArray.length:0},getBitrateListForAdaptation:function(e){var t=d(e);return(t&&Array.isArray(t.Representation_asArray)?t.Representation_asArray:[]).map((function(e){return{bandwidth:e.bandwidth,width:e.width||0,height:e.height||0,scanType:e.scanType||null,id:e.id||null}}))},getRepresentationFor:function(e,t){return t&&t.Representation_asArray&&t.Representation_asArray.length>0&&a(e)?t.Representation_asArray[e]:null},getRepresentationsForAdaptation:function(e){var t,r,n,o,i=[],s=function(e){if(e&&e.period&&a(e.period.index)){var t=e.period.mpd.manifest.Period_asArray[e.period.index];if(t&&t.AdaptationSet_asArray&&a(e.index))return d(t.AdaptationSet_asArray[e.index])}}(e);if(s&&s.Representation_asArray){if(e&&e.period&&a(e.period.index)){var l=E(e.period.mpd.manifest);l&&(r=l[0])}for(var c=0,p=s.Representation_asArray.length;c<p;++c){var m=s.Representation_asArray[c],h=new We;if(h.index=c,h.adaptation=e,m.hasOwnProperty(B.ID)&&(h.id=m.id),m.hasOwnProperty(B.CODECS)&&(h.codecs=m.codecs),m.hasOwnProperty(B.MIME_TYPE)&&(h.mimeType=m[B.MIME_TYPE]),m.hasOwnProperty(B.CODEC_PRIVATE_DATA)&&(h.codecPrivateData=m.codecPrivateData),m.hasOwnProperty(B.BANDWITH)&&(h.bandwidth=m.bandwidth),m.hasOwnProperty(B.WIDTH)&&(h.width=m.width),m.hasOwnProperty(B.HEIGHT)&&(h.height=m.height),m.hasOwnProperty(B.SCAN_TYPE)&&(h.scanType=m.scanType),m.hasOwnProperty(B.MAX_PLAYOUT_RATE)&&(h.maxPlayoutRate=m.maxPlayoutRate),m.hasOwnProperty(B.SEGMENT_BASE)?(t=m.SegmentBase,h.segmentInfoType=B.SEGMENT_BASE):m.hasOwnProperty(B.SEGMENT_LIST)?(t=m.SegmentList).hasOwnProperty(B.SEGMENT_TIMELINE)?h.segmentInfoType=B.SEGMENT_TIMELINE:h.segmentInfoType=B.SEGMENT_LIST:m.hasOwnProperty(B.SEGMENT_TEMPLATE)?((t=m.SegmentTemplate).hasOwnProperty(B.SEGMENT_TIMELINE)?h.segmentInfoType=B.SEGMENT_TIMELINE:h.segmentInfoType=B.SEGMENT_TEMPLATE,t.hasOwnProperty(B.INITIALIZATION_MINUS)&&(h.initialization=t.initialization.split("$Bandwidth$").join(m.bandwidth).split("$RepresentationID$").join(m.id))):h.segmentInfoType=B.BASE_URL,h.essentialProperties=g(m),t){if(t.hasOwnProperty(B.INITIALIZATION)){var v=t.Initialization;v.hasOwnProperty(B.SOURCE_URL)&&(h.initialization=v.sourceURL),v.hasOwnProperty(B.RANGE)&&(h.range=v.range)}else f(s)&&u(s)&&s.mimeType&&-1===s.mimeType.indexOf("application/mp4")&&(h.range=0);t.hasOwnProperty(B.TIMESCALE)&&(h.timescale=t.timescale),t.hasOwnProperty(B.DURATION)?h.segmentDuration=t.duration/h.timescale:m.hasOwnProperty(B.SEGMENT_TEMPLATE)&&(t=m.SegmentTemplate).hasOwnProperty(B.SEGMENT_TIMELINE)&&(h.segmentDuration=_(t.SegmentTimeline)/h.timescale),t.hasOwnProperty(B.MEDIA)&&(h.media=t.media),t.hasOwnProperty(B.START_NUMBER)&&(h.startNumber=t.startNumber),t.hasOwnProperty(B.INDEX_RANGE)&&(h.indexRange=t.indexRange),t.hasOwnProperty(B.PRESENTATION_TIME_OFFSET)&&(h.presentationTimeOffset=t.presentationTimeOffset/h.timescale),t.hasOwnProperty(B.AVAILABILITY_TIME_OFFSET)?h.availabilityTimeOffset=t.availabilityTimeOffset:r&&void 0!==r.availabilityTimeOffset&&(h.availabilityTimeOffset=r.availabilityTimeOffset),t.hasOwnProperty(B.AVAILABILITY_TIME_COMPLETE)?h.availabilityTimeComplete="false"!==t.availabilityTimeComplete:r&&void 0!==r.availabilityTimeComplete&&(h.availabilityTimeComplete=r.availabilityTimeComplete)}h.MSETimeOffset=(void 0,o=(n=h).presentationTimeOffset,n.adaptation.period.start-o),h.path=[e.period.index,e.index,c],i.push(h)}}return i},getAdaptationsForPeriod:function(e){var r,n,o,i=e&&a(e.index)?e.mpd.manifest.Period_asArray[e.index]:null,u=[];if(i&&i.AdaptationSet_asArray)for(o=0;o<i.AdaptationSet_asArray.length;o++)n=i.AdaptationSet_asArray[o],r=new Xe,n.hasOwnProperty(B.ID)&&(r.id=n.id),r.index=o,r.period=e,s(n,z.MUXED)?r.type=z.MUXED:s(n,z.AUDIO)?r.type=z.AUDIO:l(n)?r.type=z.VIDEO:f(n)?r.type=z.TEXT:c(n)?r.type=z.IMAGE:t.warn("Unknown Adaptation stream type"),u.push(r);return u},getRegularPeriods:function(e){var n,o,i=!!e&&h(e.manifest),a=[],s=null,u=null,l=null,f=null;for(o=0,n=e&&e.manifest&&e.manifest.Period_asArray?e.manifest.Period_asArray.length:0;o<n;o++)(u=e.manifest.Period_asArray[o]).hasOwnProperty(B.START)?(f=new Qe).start=u.start:null!==s&&s.hasOwnProperty(B.DURATION)&&null!==l?(f=new Qe).start=parseFloat((l.start+l.duration).toFixed(5)):0!==o||i||((f=new Qe).start=0),null!==l&&isNaN(l.duration)&&(null!==f?l.duration=parseFloat((f.start-l.start).toFixed(5)):t.warn("First period duration could not be calculated because lack of start and duration period properties. This will cause timing issues during playback")),null!==f&&(f.id=v(u,o),f.index=o,f.mpd=e,u.hasOwnProperty(B.DURATION)&&(f.duration=u.duration),l&&(l.nextPeriodId=f.id),a.push(f),s=u,l=f),u=null,f=null;return 0===a.length||null!==l&&isNaN(l.duration)&&(l.duration=parseFloat((function(e){!function(){if(!r||!r.hasOwnProperty("error"))throw new Error(z.MISSING_CONFIG_ERROR)}();var t,n=h(e.mpd.manifest);return e.mpd.manifest.mediaPresentationDuration?t=e.mpd.manifest.mediaPresentationDuration:e.duration?t=e.duration:n?t=Number.POSITIVE_INFINITY:r.error(new qe(yt.MANIFEST_ERROR_ID_PARSE_CODE,"Must have @mediaPresentationDuration on MPD or an explicit @duration on the last period.",e)),t}(l)-l.start).toFixed(5))),a},getMpd:function(e){var t=new $e;return e&&(t.manifest=e,e.hasOwnProperty(B.AVAILABILITY_START_TIME)?t.availabilityStartTime=new Date(e.availabilityStartTime.getTime()):e.loadedTime&&(t.availabilityStartTime=new Date(e.loadedTime.getTime())),e.hasOwnProperty(B.AVAILABILITY_END_TIME)&&(t.availabilityEndTime=new Date(e.availabilityEndTime.getTime())),e.hasOwnProperty(B.MINIMUM_UPDATE_PERIOD)&&(t.minimumUpdatePeriod=e.minimumUpdatePeriod),e.hasOwnProperty(B.MEDIA_PRESENTATION_DURATION)&&(t.mediaPresentationDuration=e.mediaPresentationDuration),e.hasOwnProperty(B.SUGGESTED_PRESENTATION_DELAY)&&(t.suggestedPresentationDelay=e.suggestedPresentationDelay),e.hasOwnProperty(B.TIMESHIFT_BUFFER_DEPTH)&&(t.timeShiftBufferDepth=e.timeShiftBufferDepth),e.hasOwnProperty(B.MAX_SEGMENT_DURATION)&&(t.maxSegmentDuration=e.maxSegmentDuration),e.hasOwnProperty(B.PUBLISH_TIME)&&(t.publishTime=new Date(e.publishTime))),t},getEventsForPeriod:function(e){var t,r,o=e&&e.mpd&&e.mpd.manifest?e.mpd.manifest:null,i=o?o.Period_asArray:null,s=i&&e&&a(e.index)?i[e.index].EventStream_asArray:null,u=[];if(s)for(t=0;t<s.length;t++){var l=new rt;if(l.period=e,l.timescale=1,!s[t].hasOwnProperty(z.SCHEME_ID_URI))throw new Error("Invalid EventStream. SchemeIdUri has to be set");for(l.schemeIdUri=s[t][z.SCHEME_ID_URI],s[t].hasOwnProperty(B.TIMESCALE)&&(l.timescale=s[t][B.TIMESCALE]),s[t].hasOwnProperty(B.VALUE)&&(l.value=s[t][B.VALUE]),s[t].hasOwnProperty(B.PRESENTATION_TIME_OFFSET)&&(l.presentationTimeOffset=s[t][B.PRESENTATION_TIME_OFFSET]),r=0;s[t].Event_asArray&&r<s[t].Event_asArray.length;r++){var f=s[t].Event_asArray[r],c=new Je;c.presentationTime=0,c.eventStream=l,f.hasOwnProperty(B.PRESENTATION_TIME)&&(c.presentationTime=f.presentationTime);var d=l.presentationTimeOffset?l.presentationTimeOffset/l.timescale:0;c.calculatedPresentationTime=c.presentationTime/l.timescale+e.start-d,f.hasOwnProperty(B.DURATION)&&(c.duration=f.duration/l.timescale),f.hasOwnProperty(B.ID)?c.id=f.id:c.id=null,f.Signal&&f.Signal.Binary?c.messageData=n.decodeArray(f.Signal.Binary.toString()):c.messageData=f.messageData||f.__cdata||f.__text,u.push(c)}}return u},getEssentialPropertiesForRepresentation:g,getEventStreamForAdaptationSet:function(e,t,r){var n,o,i;return e&&e.Period_asArray&&t&&t.period&&a(t.period.index)&&(o=e.Period_asArray[t.period.index])&&o.AdaptationSet_asArray&&a(t.index)&&(i=o.AdaptationSet_asArray[t.index])&&(n=i.InbandEventStream_asArray),y(n,null,r)},getEventStreamForRepresentation:function(e,t,r){var n,o,i,s;return e&&e.Period_asArray&&t&&t.adaptation&&t.adaptation.period&&a(t.adaptation.period.index)&&(o=e.Period_asArray[t.adaptation.period.index])&&o.AdaptationSet_asArray&&a(t.adaptation.index)&&(i=o.AdaptationSet_asArray[t.adaptation.index])&&i.Representation_asArray&&a(t.index)&&(s=i.Representation_asArray[t.index])&&(n=s.InbandEventStream_asArray),y(n,t,r)},getUTCTimingSources:function(e){var t=h(e),r=!!e&&e.hasOwnProperty(B.AVAILABILITY_START_TIME),n=e?e.UTCTiming_asArray:null,o=[];return(t||r)&&n&&n.forEach((function(e){var t=new Ze;e.hasOwnProperty(z.SCHEME_ID_URI)&&(t.schemeIdUri=e.schemeIdUri,e.hasOwnProperty(B.VALUE)&&(t.value=e.value.toString(),o.push(t)))})),o},getBaseURLsFromElement:E,getRepresentationSortFunction:function(){return function(e,t){return e.bandwidth-t.bandwidth}},getContentSteering:function(e){if(e&&e.hasOwnProperty(B.CONTENT_STEERING_AS_ARRAY))return b(e[B.CONTENT_STEERING_AS_ARRAY][0])},getLocation:function(e){return e&&e.hasOwnProperty(B.LOCATION_AS_ARRAY)?e[B.LOCATION_AS_ARRAY].map((function(e){var t=e.__text||e,r=e.hasOwnProperty(B.SERVICE_LOCATION)?e[B.SERVICE_LOCATION]:null;return new Gt(t,r)})):[]},getPatchLocation:function(e){return e&&e.hasOwnProperty(B.PATCH_LOCATION_AS_ARRAY)?e[B.PATCH_LOCATION_AS_ARRAY].map((function(e){var t=e.__text||e,r=e.hasOwnProperty(B.SERVICE_LOCATION)?e[B.SERVICE_LOCATION]:null,n=e.hasOwnProperty(B.TTL)?1e3*parseFloat(e[B.TTL]):NaN;return new jt(t,r,n)})):[]},getSuggestedPresentationDelay:function(e){return e&&e.hasOwnProperty(B.SUGGESTED_PRESENTATION_DELAY)?e.suggestedPresentationDelay:null},getAvailabilityStartTime:function(e){return e&&e.hasOwnProperty(B.AVAILABILITY_START_TIME)&&null!==e.availabilityStartTime?e.availabilityStartTime.getTime():null},getServiceDescriptions:function(e){var t=[];if(e&&e.hasOwnProperty(B.SERVICE_DESCRIPTION)){var r,n=zt(e.ServiceDescription_asArray);try{for(n.s();!(r=n.n()).done;){var o=r.value,i=null,a=null,s=null,u=null,l=null,f=null,c=null;for(var d in o)o.hasOwnProperty(d)&&(d===B.ID?i=o[d]:d===B.SERVICE_DESCRIPTION_SCOPE?a=o[d].schemeIdUri:d===B.SERVICE_DESCRIPTION_LATENCY?s={target:parseInt(o[d].target),max:parseInt(o[d].max),min:parseInt(o[d].min),referenceId:parseInt(o[d].referenceId)}:d===B.SERVICE_DESCRIPTION_PLAYBACK_RATE?u={max:parseFloat(o[d].max),min:parseFloat(o[d].min)}:d===B.SERVICE_DESCRIPTION_OPERATING_QUALITY?l={mediaType:o[d].mediaType,max:parseInt(o[d].max),min:parseInt(o[d].min),target:parseInt(o[d].target),type:o[d].type,maxQualityDifference:parseInt(o[d].maxQualityDifference)}:d===B.SERVICE_DESCRIPTION_OPERATING_BANDWIDTH?f={mediaType:o[d].mediaType,max:parseInt(o[d].max),min:parseInt(o[d].min),target:parseInt(o[d].target)}:d===B.CONTENT_STEERING&&(c=b(o[d])));t.push({id:i,schemeIdUri:a,latency:s,playbackRate:u,operatingQuality:l,operatingBandwidth:f,contentSteering:c})}}catch(e){n.e(e)}finally{n.f()}}return t},getSegmentAlignment:function(e){return!(!e||!e.hasOwnProperty(B.SEGMENT_ALIGNMENT))&&"true"===e[B.SEGMENT_ALIGNMENT]},getSubSegmentAlignment:function(e){return!(!e||!e.hasOwnProperty(B.SUB_SEGMENT_ALIGNMENT))&&"true"===e[B.SUB_SEGMENT_ALIGNMENT]},getSupplementalPropertiesForAdaptation:function(e){var t={};if(e&&e.hasOwnProperty(B.SUPPLEMENTAL_PROPERTY_ASARRAY)){var r,n=zt(e.SupplementalProperty_asArray);try{for(n.s();!(r=n.n()).done;){var o=r.value;o.hasOwnProperty(z.SCHEME_ID_URI)&&o.hasOwnProperty(B.VALUE)&&(t[o[z.SCHEME_ID_URI]]=o[B.VALUE])}}catch(e){n.e(e)}finally{n.f()}}return t},getSupplementalPropertiesAsArrayForAdaptation:function(e){return e&&e.hasOwnProperty(B.SUPPLEMENTAL_PROPERTY_ASARRAY)&&e.SupplementalProperty_asArray.length?e.SupplementalProperty_asArray.map((function(e){return(new at).init(e)})):[]},getSupplementalPropertiesForRepresentation:function(e){var t={};if(e&&e.hasOwnProperty(B.SUPPLEMENTAL_PROPERTY_ASARRAY)){var r,n=zt(e.SupplementalProperty_asArray);try{for(n.s();!(r=n.n()).done;){var o=r.value;o.hasOwnProperty(z.SCHEME_ID_URI)&&o.hasOwnProperty(B.VALUE)&&(t[o[z.SCHEME_ID_URI]]=o[B.VALUE])}}catch(e){n.e(e)}finally{n.f()}}return t},getSupplementalPropertiesAsArrayForRepresentation:function(e){return e&&e.hasOwnProperty(B.SUPPLEMENTAL_PROPERTY_ASARRAY)&&e.SupplementalProperty_asArray.length?e.SupplementalProperty_asArray.map((function(e){return(new at).init(e)})):[]},setConfig:function(e){e&&(e.errHandler&&(r=e.errHandler),e.BASE64&&(n=e.BASE64))}},t=Ce(o).getInstance().getLogger(e),e}Vt.__dashjs_factory_name="DashManifestModel";var Wt=T.getSingletonFactory(Vt);function Xt(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Kt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Kt(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 Qt(){var e,t,r,n,o,i,a,s,u,l,f=this.context,c=de(f).getInstance(),d=xe(f).getInstance();function p(){r={pr:1,nor:null,st:null,sf:null,sid:"".concat(le.generateUuid()),cid:null},u={},s={},l={},h()}function m(){h()}function h(){if(i){var e=i.getStreamController();if(e&&"function"==typeof e.getActiveStream){var t=e.getActiveStream();t&&(a=t.getProcessors())}}}function g(e,t){var r,n={},o=Xt(t);try{for(o.s();!(r=o.n()).done;){var i=r.value;e[i]&&(n[i]=e[i])}}catch(e){o.e(e)}finally{o.f()}return n}function v(e){var t=d.get().streaming.cmcd.enabledKeys;return e.filter((function(e){return t.includes(e)}))}function y(e){try{return e.type===_.MPD_TYPE?((f=E()).ot="m",f):e.type===_.MEDIA_SEGMENT_TYPE?(t=e.mediaType,l.hasOwnProperty(t)||(l[t]=!1),s.hasOwnProperty(t)||(s[t]=!1),u.hasOwnProperty(t)||(u[t]=!1),function(e){var t,f=E(),c=function(e){try{var t=e.quality,r=e.mediaInfo.bitrateList;return parseInt(r[t].bandwidth/1e3)}catch(e){return null}}(e),p=function(e){try{return isNaN(e.duration)?NaN:Math.round(1e3*e.duration)}catch(e){return null}}(e),m=function(e){try{return 100*parseInt(n.getThroughputHistory().getSafeAverageThroughput(e)/100)}catch(e){return null}}(e.mediaType),h=function(e){try{var t=r.pr,n=o.getCurrentBufferLevel(e);return isNaN(t)||isNaN(n)?null:100*parseInt(n/t*10)}catch(e){return null}}(e.mediaType),g=b(e.mediaType),_=function(e){try{var t=n.getTopBitrateInfoFor(e);return Math.round(t.bitrate/1e3)}catch(e){return null}}(e.mediaType),v=r.pr,y=function(e){if(a&&0!==a.length){var t,r=Xt(a);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(n.getType()===e)return n.probeNextRequest()}}catch(e){r.e(e)}finally{r.f()}}}(e.mediaType);e.mediaType===z.VIDEO&&(t="v"),e.mediaType===z.AUDIO&&(t="a"),e.mediaType===z.TEXT&&(t="application/mp4"===e.mediaInfo.mimeType?"tt":"c");var T=d.get().streaming.cmcd.rtp;return T||(T=function(e){try{var t=i.getPlaybackRate();t||(t=1);var r=e.quality,n=e.mediaType,o=e.mediaInfo,a=e.duration;if(!o)return NaN;var s=b(n);0===s&&(s=500);var u=o.bitrateList[r].bandwidth*a/1e3/(s/t/1e3),l=d.get().streaming.cmcd.rtpSafetyFactor&&!isNaN(d.get().streaming.cmcd.rtpSafetyFactor)?d.get().streaming.cmcd.rtpSafetyFactor:5;return 100*(parseInt(u*l/100)+1)}catch(e){return NaN}}(e)),isNaN(T)||(f.rtp=T),y&&(e.url!==y.url?f.nor=encodeURIComponent(le.getRelativeUrl(e.url,y.url)):y.range&&(f.nrr=y.range)),c&&(f.br=c),t&&(f.ot=t),isNaN(p)||(f.d=p),isNaN(m)||(f.mtp=m),isNaN(h)||(f.dl=h),isNaN(g)||(f.bl=g),isNaN(_)||(f.tb=_),isNaN(v)||1===v||(f.pr=v),u[e.mediaType]&&(f.bs=!0,u[e.mediaType]=!1),!s[e.mediaType]&&l[e.mediaType]||(f.su=!0,s[e.mediaType]=!1,l[e.mediaType]=!0),f}(e)):e.type===_.INIT_SEGMENT_TYPE?function(){var e=E();return e.ot="i",e.su=!0,e}():e.type===_.OTHER_TYPE||e.type===_.XLINK_EXPANSION_TYPE?function(){var e=E();return e.ot="o",e}():e.type===_.LICENSE?function(e){var t=E();return t.ot="k",t}():null}catch(e){return null}var t,f}function E(){var e={},t=d.get().streaming.cmcd.cid?d.get().streaming.cmcd.cid:r.cid;return e.v=1,e.sid=d.get().streaming.cmcd.sid?d.get().streaming.cmcd.sid:r.sid,e.sid="".concat(e.sid),t&&(e.cid="".concat(t)),isNaN(r.pr)||1===r.pr||null===r.pr||(e.pr=r.pr),r.st&&(e.st=r.st),r.sf&&(e.sf=r.sf),e}function b(e){try{var t=o.getCurrentBufferLevel(e);return isNaN(t)?null:100*parseInt(10*t)}catch(e){return null}}function T(e){try{r.pr=e.playbackRate}catch(e){}}function A(t){try{var n=e.getIsDynamic(t.data)?"l":"v",o=t.protocol&&"MSS"===t.protocol?"s":"d";r.st="".concat(n),r.sf="".concat(o)}catch(e){}}function S(e){try{e.state&&e.mediaType&&e.state===O.BUFFER_EMPTY&&(u[e.mediaType]||(u[e.mediaType]=!0),s[e.mediaType]||(s[e.mediaType]=!0))}catch(e){}}function I(){for(var e in u)u.hasOwnProperty(e)&&(u[e]=!0);for(var t in s)s.hasOwnProperty(t)&&(s[t]=!0)}function R(e){try{if(!e)return null;var t=Object.keys(e).sort((function(e,t){return e.localeCompare(t)})),r=t.length,n=t.reduce((function(t,n,o){return"v"===n&&1===e[n]||("string"==typeof e[n]&&"ot"!==n&&"sf"!==n&&"st"!==n?t+="".concat(n,"=").concat(JSON.stringify(e[n])):t+="".concat(n,"=").concat(e[n]),o<r-1&&(t+=",")),t}),"");return(n=n.replace(/=true/g,"")).replace(/,\s*$/,"")}catch(e){return null}}return t={getQueryParameter:function(e){try{if(d.get().streaming.cmcd&&d.get().streaming.cmcd.enabled){var t=y(e),r=function(e){try{var t=d.get().streaming.cmcd.enabledKeys;return Object.keys(e).filter((function(e){return t.includes(e)})).reduce((function(t,r){return t[r]=e[r],t}),{})}catch(t){return e}}(t),n=R(r);return c.trigger(Ye.CMCD_DATA_GENERATED,{url:e.url,mediaType:e.mediaType,cmcdData:t,cmcdString:n}),{key:"CMCD",value:n}}return null}catch(e){return null}},getHeaderParameters:function(e){try{if(d.get().streaming.cmcd&&d.get().streaming.cmcd.enabled){var t=y(e),r=g(t,v(["br","d","ot","tb"])),n=g(t,v(["bl","dl","mtp","nor","nrr","su"])),o=g(t,v(["bs","rtp"])),i=g(t,v(["cid","pr","sf","sid","st","v"])),a={"CMCD-Object":R(r),"CMCD-Request":R(n),"CMCD-Status":R(o),"CMCD-Session":R(i)};return c.trigger(Ye.CMCD_DATA_GENERATED,{url:e.url,mediaType:e.mediaType,cmcdData:t,headers:a}),a}return null}catch(e){return null}},setConfig:function(e){e&&(e.abrController&&(n=e.abrController),e.dashMetrics&&(o=e.dashMetrics),e.playbackController&&(i=e.playbackController))},reset:function(){c.off(O.PLAYBACK_RATE_CHANGED,T,this),c.off(O.MANIFEST_LOADED,A,this),c.off(O.BUFFER_LEVEL_STATE_CHANGED,S,t),c.off(O.PLAYBACK_SEEKED,I,t),p()},initialize:function(){c.on(O.PLAYBACK_RATE_CHANGED,T,t),c.on(O.MANIFEST_LOADED,A,t),c.on(O.BUFFER_LEVEL_STATE_CHANGED,S,t),c.on(O.PLAYBACK_SEEKED,I,t),c.on(O.PERIOD_SWITCH_COMPLETED,m,t)}},e=Wt(f).getInstance(),p(),t}Qt.__dashjs_factory_name="CmcdModel";var $t=T.getSingletonFactory(Qt);function Zt(e){return Zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zt(e)}function Jt(e,t){Jt=function(e,t){return new i(e,void 0,t)};var r=tr(RegExp),n=RegExp.prototype,o=new WeakMap;function i(e,t,n){var i=r.call(this,e,t);return o.set(i,n||o.get(e)),i}function a(e,t){var r=o.get(t);return Object.keys(r).reduce((function(t,n){return t[n]=e[r[n]],t}),Object.create(null))}return er(i,r),i.prototype.exec=function(e){var t=n.exec.call(this,e);return t&&(t.groups=a(t,this)),t},i.prototype[Symbol.replace]=function(e,t){if("string"==typeof t){var r=o.get(this);return n[Symbol.replace].call(this,e,t.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+r[t]})))}if("function"==typeof t){var i=this;return n[Symbol.replace].call(this,e,(function(){var e=[];return e.push.apply(e,arguments),"object"!==Zt(e[e.length-1])&&e.push(a(e,i)),t.apply(this,e)}))}return n[Symbol.replace].call(this,e,t)},Jt.apply(this,arguments)}function er(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&or(e,t)}function tr(e){var t="function"==typeof Map?new Map:void 0;return tr=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;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,n)}function n(){return rr(e,arguments,ir(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),or(n,e)},tr(e)}function rr(e,t,r){return rr=nr()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&or(o,r.prototype),o},rr.apply(null,arguments)}function nr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function or(e,t){return or=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},or(e,t)}function ir(e){return ir=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ir(e)}var ar="static",sr="dynamic",ur="cmsd-",lr=ur+ar,fr=ur+sr,cr="stream",dr=["mb","st","sf","v"],pr={video:"v",audio:"a",text:"tt",stream:cr},mr=/^[-0-9]/;function hr(){var e,t,r,n,o=this.context,i=de(o).getInstance();function a(){r={},n={}}function s(e){e&&Object.keys(e).forEach((function(t){dr.includes(t)||delete e[t]}))}function u(e){return!e||"false"!==e.toLowerCase()&&(mr.test(e)?parseInt(e,10):e.replace(/["]+/g,""))}function l(e){try{for(var r={},n=e.split(","),o=0;o<n.length;o++){var i=n[o].split("="),a=i[0],s=u(i[1]);r[a]=s}return r}catch(e){t.error("Failed to parse CMSD-Static response header value:",e)}}function f(e){try{for(var r={},n=e.split(","),o=n[n.length-1].split(";"),i=1;i<o.length;i++){var a=o[i].split("="),s=a[0],l=u(a[1]);r[s]=l}return r}catch(e){return t.error("Failed to parse CMSD-Dynamic response header value:",e),[]}}function c(e){return pr[e]||"o"}function d(e,t,o){var i=e===ar?r:n,a=i[t]||{},s=i[cr]||{};return a[o]||s[o]}return e={setConfig:function(){},initialize:function(){},reset:function(){a()},parseResponseHeaders:function(e,t){for(var o=null,a=null,u=e.split("\r\n"),d=u.length-1;d>=0;d--){var p=u[d].match(Jt(/^((?:(?!:)[\s\S])*):[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*(.*)$/,{key:1,value:2}));if(p&&p.groups){var m=p.groups.key.toLowerCase(),h=p.groups.value;switch(m){case lr:o=l(h),i.trigger(Ae.CMSD_STATIC_HEADER,o);break;case fr:a||(a=f(h))}}}var g=cr;return o&&o.ot?g=o.ot:t&&(g=c(t)),s(r[g]),s(n[g]),o&&(r[g]=Object.assign(r[g]||{},o)),a&&(n[g]=Object.assign(n[g]||{},a)),{static:o,dynamic:a}},getMaxBitrate:function(e){var t=c(e);return d(sr,t,"mb")||-1},getEstimatedThroughput:function(e){var t=c(e);return d(sr,t,"etp")||null},getResponseDelay:function(e){var t=c(e);return d(sr,t,"rd")||null},getRoundTripTime:function(e){var t=c(e);return d(sr,t,"rtt")||null}},t=Ce(o).getInstance().getLogger(e),a(),e}hr.__dashjs_factory_name="CmsdModel";var gr=T.getSingletonFactory(hr);function _r(){var e,t,r=this.context,n={};function o(){t=Ce(r).getInstance().getLogger(e)}function i(e){for(var t={},r=0,n=0,o=0,i=0,a=e.length,s=0;s<a;++s)r+=e[s].chunkDownloadTimeRelativeMS,n+=e[s].bufferLevel,o+=e[s].chunkDownloadTimeRelativeMS*e[s].bufferLevel,i+=e[s].chunkDownloadTimeRelativeMS*e[s].chunkDownloadTimeRelativeMS;return t.m=(o-r*n/a)/(i-r*r/a),t.b=n/a-t.m*r/a,function(e){return t.m*e+t.b}}function a(e){var t,r=!0,n=e.reduce((function(e,t){return e+t.bufferLevelAtSegmentEnd}),0)/e.length;return e.forEach((function(e){Math.abs(e.bufferLevelAtSegmentEnd/e.bufferLevelAtSegmentStart)<.95&&(r=!1),e.bufferLevelAtSegmentEnd/n<.8&&(r=!1),t?t>e.bitrate&&(r=!1):t=e.bitrate})),r}return e={setup:o,addMeasurement:function(e,t,r,o,a){e&&e.mediaType&&!n[e.mediaType]&&(n[e.mediaType]=[]);var s=e.mediaInfo.bitrateList.find((function(t){return t.id===e.representationId}));n[e.mediaType].push({index:e.index,repId:e.representationId,mediaType:e.mediaType,requestTimeMS:o,adjustedAvailabilityStartTimeMS:e.availabilityStartTime.getTime(),segDurationMS:1e3*e.duration,chunksDurationMS:r.reduce((function(e,t){return e+t.chunkDownloadDurationMS}),0),segmentBytes:r.reduce((function(e,t){return e+t.chunkBytes}),0),bitrate:s&&s.bandwidth,bitrateList:e.mediaInfo.bitrateList,chunkMeasurements:r,fetchDownloadDurationMS:t,throughputCapacityDelayMS:a,getEstimatedBufferLevel:i(r.slice(1))}),n[e.mediaType].length>10&&n[e.mediaType].shift()},getThroughputCapacityDelayMS:function(e,t){var r=n[e.mediaType]&&n[e.mediaType].slice(-3);return!r||r.length<3?0:a(r)?t/4>250?250:t/4:0},getEstimatedDownloadDurationMS:function(e){var r=n[e.mediaType].slice(-1).pop(),o=n[e.mediaType].slice(-3),i=r.chunkMeasurements.slice(-1).pop().chunkDownloadTimeRelativeMS;r.bufferLevelAtSegmentStart=r.getEstimatedBufferLevel(i/2),r.bufferLevelAtSegmentEnd=r.getEstimatedBufferLevel(i);var s=a(o),u=s?.6:.8;if(r.isBufferStable&&1.05*r.segDurationMS<r.fetchDownloadDurationMS)return r.fetchDownloadDurationMS;if(!s||r.segDurationMS<r.fetchDownloadDurationMS)return.8*r.fetchDownloadDurationMS;if(r.adjustedAvailabilityStartTimeMS<=r.requestTimeMS+r.throughputCapacityDelayMS-r.segDurationMS)return.8*r.fetchDownloadDurationMS;for(var l=r.requestTimeMS+r.throughputCapacityDelayMS-r.adjustedAvailabilityStartTimeMS,f=0,c=0,d=0,p=0;p<r.chunkMeasurements.length;p++){var m=r.chunkMeasurements[p];if(l<c+m.chunkDownloadDurationMS)break;c+=m.chunkDownloadDurationMS,f+=m.chunkBytes,d++}if(l<0&&t.warn("request time was before adjusted availibitly start time"),f&&c&&d>.2*r.chunkMeasurements.length){var h=f/c,g=r.segmentBytes/h;return r.fetchDownloadDurationMS<g?r.fetchDownloadDurationMS*u:g*u}var _=r.bitrate;return r.bitrateList.some((function(e){if(e.bandwidth>r.bitrate)return _=e.bandwidth,!0})),_===r.bitrate?r.fetchDownloadDurationMS*u:u*r.segmentBytes*8*1e3/_}},o(),e}_r.__dashjs_factory_name="LowLatencyThroughputModel";var vr=T.getSingletonFactory(_r);function yr(e){return yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yr(e)}function Er(e,t){if(yr(e)!==t)throw z.BAD_ARGUMENT_ERROR}var br={DEFAULT:.5,STRONG:1,WEAK:0};function Tr(e,t,r){var n,o;return n=void 0===e?-1:e,o=function(e){var t=br.DEFAULT;return e!==br.DEFAULT&&e!==br.STRONG&&e!==br.WEAK||(t=e),t}(r),{quality:n,reason:void 0===t?null:t,priority:o}}Tr.__dashjs_factory_name="SwitchRequest";var Ar=T.getClassFactory(Tr);Ar.NO_CHANGE=-1,Ar.PRIORITY=br,T.updateClassFactory(Tr.__dashjs_factory_name,Ar);var Sr=Ar;function Ir(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)}}var Rr=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.init()}var t,r;return t=e,(r=[{key:"init",value:function(){this.TCP_CONNECTION="TcpList",this.HTTP_REQUEST="HttpList",this.TRACK_SWITCH="RepSwitchList",this.BUFFER_LEVEL="BufferLevel",this.BUFFER_LOADED="bufferLoaded",this.ABANDON_LOAD="abandonload",this.ALLOW_LOAD="allowload",this.BUFFER_EMPTY="bufferStalled",this.BUFFER_STATE="BufferState",this.DVR_INFO="DVRInfo",this.DROPPED_FRAMES="DroppedFrames",this.SCHEDULING_INFO="SchedulingInfo",this.REQUESTS_QUEUE="RequestsQueue",this.MANIFEST_UPDATE="ManifestUpdate",this.MANIFEST_UPDATE_STREAM_INFO="ManifestUpdatePeriodInfo",this.MANIFEST_UPDATE_TRACK_INFO="ManifestUpdateRepresentationInfo",this.PLAY_LIST="PlayList",this.DVB_ERRORS="DVBErrors",this.HTTP_REQUEST_DVB_REPORTING_TYPE="DVBReporting"}}])&&Ir(t.prototype,r),e}());function wr(e){e=e||{};var t=this.context,r=e.dashMetrics;return{getMaxIndex:function(e){var n=Sr(t).create();if(!(e&&e.hasOwnProperty("getMediaInfo")&&e.hasOwnProperty("getMediaType")&&e.hasOwnProperty("useBufferOccupancyABR")&&e.hasOwnProperty("getAbrController")&&e.hasOwnProperty("getScheduleController")))return n;!function(){if(!r||!r.hasOwnProperty("getCurrentBufferState"))throw new Error(z.MISSING_CONFIG_ERROR)}();var o=e.getMediaInfo(),i=e.getMediaType(),a=r.getCurrentBufferState(i),s=e.getScheduleController(),u=e.getAbrController(),l=e.getStreamInfo(),f=l?l.id:null,c=l&&l.manifestInfo?l.manifestInfo.isDynamic:null,d=u.getThroughputHistory(),p=d.getSafeAverageThroughput(i,c),m=d.getAverageLatency(i),h=e.useBufferOccupancyABR();return isNaN(p)||!a||h||u.getAbandonmentStateFor(f,i)!==Rr.ABANDON_LOAD&&(a.state===Rr.BUFFER_LOADED||c)&&(n.quality=u.getQualityForBitrate(o,p,f,m),s.setTimeToLoadDelay(0),n.reason={throughput:p,latency:m}),n},reset:function(){}}}wr.__dashjs_factory_name="ThroughputRule";var Nr=T.getClassFactory(wr);function Or(e){e=e||{};var t,r,n,o=this.context,i=de(o).getInstance(),a=e.dashMetrics;function s(){(n={})[z.VIDEO]={ignoreCount:2},n[z.AUDIO]={ignoreCount:2}}function u(){s()}function l(e){isNaN(e.startTime)||e.mediaType!==z.AUDIO&&e.mediaType!==z.VIDEO||n[e.mediaType].ignoreCount>0&&n[e.mediaType].ignoreCount--}return t={getMaxIndex:function(e){var t=Sr(o).create();if(!e||!e.hasOwnProperty("getMediaType"))return t;!function(){if(!a||!a.hasOwnProperty("getCurrentBufferLevel")||!a.hasOwnProperty("getCurrentBufferState"))throw new Error(z.MISSING_CONFIG_ERROR)}();var i=e.getMediaType(),s=a.getCurrentBufferState(i),u=e.getRepresentationInfo().fragmentDuration,l=e.getStreamInfo(),f=l?l.id:null,c=e.getScheduleController(),d=l&&l.manifestInfo&&l.manifestInfo.isDynamic;if(function(e,t){return!e&&n[t].ignoreCount>0}(c.getPlaybackController().getLowLatencyModeEnabled(),i)||!u)return t;if(s&&s.state===Rr.BUFFER_EMPTY)r.debug("["+i+"] Switch to index 0; buffer is empty."),t.quality=0,t.reason="InsufficientBufferRule: Buffer is empty";else{var p=e.getMediaInfo(),m=e.getAbrController(),h=m.getThroughputHistory(),g=a.getCurrentBufferLevel(i),_=h.getAverageThroughput(i,d),v=h.getAverageLatency(i),y=_*(g/u)*.5;t.quality=m.getQualityForBitrate(p,y,f,v),t.reason="InsufficientBufferRule: being conservative to avoid immediate rebuffering"}return t},reset:function(){s(),i.off(O.PLAYBACK_SEEKING,u,t),i.off(Ae.BYTES_APPENDED_END_FRAGMENT,l,t)}},r=Ce(o).getInstance().getLogger(t),s(),i.on(O.PLAYBACK_SEEKING,u,t),i.on(Ae.BYTES_APPENDED_END_FRAGMENT,l,t),t}Or.__dashjs_factory_name="InsufficientBufferRule";var Dr=T.getClassFactory(Or);function Cr(e){e=e||{};var t,r,n,o,i,a=this.context,s=e.mediaPlayerModel,u=e.dashMetrics,l=e.settings;function f(){n={},o={},i=[]}return t={shouldAbandon:function(e){var t=Sr(a).create(Sr.NO_CHANGE,{name:Cr.__dashjs_factory_name});if(!(e&&e.hasOwnProperty("getMediaInfo")&&e.hasOwnProperty("getMediaType")&&e.hasOwnProperty("getCurrentRequest")&&e.hasOwnProperty("getRepresentationInfo")&&e.hasOwnProperty("getAbrController")))return t;var f,c,d=e.getMediaInfo(),p=e.getMediaType(),m=e.getStreamInfo(),h=m?m.id:null,g=e.getCurrentRequest();if(!isNaN(g.index)){f=p,c=g.index,n[f]=n[f]||{},n[f][c]=n[f][c]||{};var _=s.getStableBufferTime();if(u.getCurrentBufferLevel(p)>_)return t;var v=n[p][g.index];if(null===v||null===g.firstByteDate||o.hasOwnProperty(v.id))return t;if(void 0===v.firstByteTime&&(i[p]=[],v.firstByteTime=g.firstByteDate.getTime(),v.segmentDuration=g.duration,v.bytesTotal=g.bytesTotal,v.id=g.index),v.bytesLoaded=g.bytesLoaded,v.elapsedTime=(new Date).getTime()-v.firstByteTime,v.bytesLoaded>0&&v.elapsedTime>0&&function(e,t){i[e]=i[e]||[],i[e].push(t)}(p,Math.round(8*v.bytesLoaded/v.elapsedTime)),i[p].length>=5&&v.elapsedTime>500&&v.bytesLoaded<v.bytesTotal){var y=i[p].reduce((function(e,t){return e+t}),0);if(v.measuredBandwidthInKbps=Math.round(y/i[p].length),v.estimatedTimeOfDownload=+(8*v.bytesTotal/v.measuredBandwidthInKbps/1e3).toFixed(2),v.estimatedTimeOfDownload<1.8*v.segmentDuration||0===e.getRepresentationInfo().quality)return t;if(!o.hasOwnProperty(v.id)){var E=e.getAbrController(),b=v.bytesTotal-v.bytesLoaded,T=E.getBitrateList(d),A=E.getQualityForBitrate(d,v.measuredBandwidthInKbps*l.get().streaming.abr.bandwidthSafetyFactor,h),S=E.getMinAllowedIndexFor(p,h),I=void 0!==S?Math.max(S,A):A;b>v.bytesTotal*T[I].bitrate/T[E.getQualityFor(p,h)].bitrate&&(t.quality=I,t.reason.throughput=v.measuredBandwidthInKbps,t.reason.fragmentID=v.id,t.reason.rule=this.getClassName(),o[v.id]=v,r.debug("["+p+"] frag id",v.id," is asking to abandon and switch to quality to ",I," measured bandwidth was",v.measuredBandwidthInKbps),delete n[p][v.id])}}else v.bytesLoaded===v.bytesTotal&&delete n[p][v.id]}return t},reset:f},r=Ce(a).getInstance().getLogger(t),f(),t}Cr.__dashjs_factory_name="AbandonRequestsRule";var Pr=T.getClassFactory(Cr);function Lr(){var e,t,r=this.context;return e={getMaxIndex:function(e){var n=Sr(r).create();if(!e||!e.hasOwnProperty("getDroppedFramesHistory"))return n;var o=e.getDroppedFramesHistory(),i=e.getStreamInfo().id;if(o){var a=o.getFrameHistory(i);if(!a||0===a.length)return n;for(var s=0,u=0,l=Sr.NO_CHANGE,f=1;f<a.length;f++)if(a[f]&&(s=a[f].droppedVideoFrames,(u=a[f].totalVideoFrames)>375&&s/u>.15)){l=f-1,t.debug("index: "+l+" Dropped Frames: "+s+" Total Frames: "+u);break}return Sr(r).create(l,{droppedFrames:s})}return n}},t=Ce(r).getInstance().getLogger(e),e}Lr.__dashjs_factory_name="DroppedFramesRule";var Mr=T.getClassFactory(Lr);function xr(){var e,t,r=this.context;return e={getMaxIndex:function(e){for(var n=e?e.getSwitchHistory():null,o=n?n.getSwitchRequests():[],i=0,a=0,s=0,u=Sr(r).create(),l=0;l<o.length;l++)if(void 0!==o[l]&&(i+=o[l].drops,a+=o[l].noDrops,s+=o[l].dropSize,i+a>=6&&i/a>.075)){u.quality=l>0&&o[l].drops>0?l-1:l,u.reason={index:u.quality,drops:i,noDrops:a,dropSize:s},t.debug("Switch history rule index: "+u.quality+" samples: "+(i+a)+" drops: "+i);break}return u}},t=Ce(r).getInstance().getLogger(e),e}xr.__dashjs_factory_name="SwitchHistoryRule";var Fr=T.getClassFactory(xr),kr=10;function Ur(e){e=e||{};var t,r,n,o=this.context,i=e.dashMetrics,a=e.mediaPlayerModel,s=de(o).getInstance();function u(e,t,r){var n=r.reduce((function(e,t,n){return t>r[e]?n:e}),0);if(0===n)return null;var o=Math.max(e,kr+2*t.length),i=(r[n]-1)/(o/kr-1);return{gp:i,Vp:kr/i}}function l(e){e.placeholderBuffer=0,e.mostAdvancedSegmentStart=NaN,e.lastSegmentWasReplacement=!1,e.lastSegmentStart=NaN,e.lastSegmentDurationS=NaN,e.lastSegmentRequestTimeMs=NaN,e.lastSegmentFinishTimeMs=NaN}function f(e,t){var r=a.getStableBufferTime();if(e.stableBufferTime!==r){var n=u(r,e.bitrates,e.utilities);if(n.Vp!==e.Vp||n.gp!==e.gp){var o=i.getCurrentBufferLevel(t),s=o+e.placeholderBuffer;s-=kr,s*=n.Vp/e.Vp,s+=kr,e.stableBufferTime=r,e.Vp=n.Vp,e.gp=n.gp,e.placeholderBuffer=Math.max(0,s-o)}}}function c(e,t){return e.Vp*(e.utilities[t]+e.gp)}function d(e,t){for(var r=e.bitrates[t],n=e.utilities[t],o=0,i=t-1;i>=0;--i)if(e.utilities[i]<e.utilities[t]){var a=e.bitrates[i],s=e.utilities[i],u=e.Vp*(e.gp+(r*s-a*n)/(r-a));o=Math.max(o,u)}return o}function p(e){var t=e.mediaType===z.AUDIO?[z.AUDIO]:n;for(var r in t)n.hasOwnProperty(r)&&2===n[r].state&&(n[r].placeholderBuffer=0)}function m(){for(var e in n)if(n.hasOwnProperty(e)){var t=n[e];0!==t.state&&(t.state=1,l(t))}}function h(e){if(e&&e.chunk&&e.chunk.mediaInfo){var t=n[e.chunk.mediaInfo.type];if(t&&0!==t.state){var r=e.chunk.start;isNaN(t.mostAdvancedSegmentStart)||r>t.mostAdvancedSegmentStart?(t.mostAdvancedSegmentStart=r,t.lastSegmentWasReplacement=!1):t.lastSegmentWasReplacement=!0,t.lastSegmentStart=r,t.lastSegmentDurationS=e.chunk.duration,t.lastQuality=e.chunk.quality,v(t,e.chunk.mediaInfo.type)}}}function g(e){if(e&&e.metric===Rr.HTTP_REQUEST&&e.value&&e.value.type===_.MEDIA_SEGMENT_TYPE&&e.value.trace&&e.value.trace.length){var t=n[e.mediaType];t&&0!==t.state&&(t.lastSegmentRequestTimeMs=e.value.trequest.getTime(),t.lastSegmentFinishTimeMs=e.value._tfinish.getTime(),v(t,e.mediaType))}}function v(e,t){if(!isNaN(e.lastSegmentStart)&&!isNaN(e.lastSegmentRequestTimeMs)&&!isNaN(e.placeholderBuffer)){if(e.placeholderBuffer*=.99,!isNaN(e.lastSegmentFinishTimeMs)){var r=i.getCurrentBufferLevel(t)+.001*(e.lastSegmentFinishTimeMs-e.lastSegmentRequestTimeMs),n=c(e,e.lastQuality),o=Math.max(0,n-r);e.placeholderBuffer=Math.min(o,e.placeholderBuffer)}e.lastSegmentWasReplacement&&!isNaN(e.lastSegmentDurationS)&&(e.placeholderBuffer+=e.lastSegmentDurationS),e.lastSegmentStart=NaN,e.lastSegmentRequestTimeMs=NaN}}function y(e){if(e){var t=n[e.mediaType];t&&0!==t.state&&(t.abrQuality=e.newQuality)}}function E(e){if(e){var t=n[e.mediaType];if(t&&0!==t.state){var r,o=i.getCurrentBufferLevel(e.mediaType);r=t.abrQuality>0?d(t,t.abrQuality):kr;var a=Math.max(0,r-o);t.placeholderBuffer=Math.min(t.placeholderBuffer,a)}}}function b(){n={}}return t={getMaxIndex:function(e){var t=Sr(o).create();if(!(e&&e.hasOwnProperty("getMediaInfo")&&e.hasOwnProperty("getMediaType")&&e.hasOwnProperty("getScheduleController")&&e.hasOwnProperty("getStreamInfo")&&e.hasOwnProperty("getAbrController")&&e.hasOwnProperty("useBufferOccupancyABR")))return t;var s=e.getMediaInfo(),p=e.getMediaType(),m=e.getScheduleController(),h=e.getStreamInfo(),g=e.getAbrController(),_=g.getThroughputHistory(),v=h?h.id:null,y=h&&h.manifestInfo&&h.manifestInfo.isDynamic,E=e.useBufferOccupancyABR();if(t.reason=t.reason||{},!E)return t;m.setTimeToLoadDelay(0);var b=function(e){var t=e.getMediaType(),r=n[t];return r?0!==r.state&&f(r,t):(r=function(e){var t={},r=e.getMediaInfo().bitrateList.map((function(e){return e.bandwidth})),n=function(e){return e.map((function(e){return Math.log(e)}))}(r);n=n.map((function(e){return e-n[0]+1}));var o=a.getStableBufferTime(),i=u(o,r,n);return i?(t.state=1,t.bitrates=r,t.utilities=n,t.stableBufferTime=o,t.Vp=i.Vp,t.gp=i.gp,t.lastQuality=0,l(t)):t.state=0,t}(e),n[t]=r),r}(e);if(0===b.state)return t;var T,A=i.getCurrentBufferLevel(p),S=_.getAverageThroughput(p,y),I=_.getSafeAverageThroughput(p,y),R=_.getAverageLatency(p);if(t.reason.state=b.state,t.reason.throughput=S,t.reason.latency=R,isNaN(S))return t;switch(b.state){case 1:T=g.getQualityForBitrate(s,I,v,R),t.quality=T,t.reason.throughput=I,b.placeholderBuffer=Math.max(0,d(b,T)-A),b.lastQuality=T,!isNaN(b.lastSegmentDurationS)&&A>=b.lastSegmentDurationS&&(b.state=2);break;case 2:!function(e,t){var r=Date.now();if(isNaN(e.lastSegmentFinishTimeMs)){if(!isNaN(e.lastCallTimeMs)){var n=.001*(r-e.lastCallTimeMs);e.placeholderBuffer+=Math.max(0,n)}}else{var o=.001*(r-e.lastSegmentFinishTimeMs);e.placeholderBuffer+=Math.max(0,o)}e.lastCallTimeMs=r,e.lastSegmentStart=NaN,e.lastSegmentRequestTimeMs=NaN,e.lastSegmentFinishTimeMs=NaN,f(e,t)}(b,p),T=function(e,t){for(var r=e.bitrates.length,n=NaN,o=NaN,i=0;i<r;++i){var a=(e.Vp*(e.utilities[i]+e.gp)-t)/e.bitrates[i];(isNaN(o)||a>=o)&&(o=a,n=i)}return n}(b,A+b.placeholderBuffer);var w=g.getQualityForBitrate(s,I,v,R);T>b.lastQuality&&T>w&&(T=Math.max(w,b.lastQuality));var N=Math.max(0,A+b.placeholderBuffer-c(b,T));N<=b.placeholderBuffer?(b.placeholderBuffer-=N,N=0):(N-=b.placeholderBuffer,b.placeholderBuffer=0,T<g.getMaxAllowedIndexFor(p,v)?m.setTimeToLoadDelay(1e3*N):N=0),t.quality=T,t.reason.throughput=S,t.reason.latency=R,t.reason.bufferLevel=A,t.reason.placeholderBuffer=b.placeholderBuffer,t.reason.delay=N,b.lastQuality=T;break;default:r.debug("BOLA ABR rule invoked in bad state."),t.quality=g.getQualityForBitrate(s,I,v,R),t.reason.state=b.state,t.reason.throughput=I,t.reason.latency=R,b.state=1,l(b)}return t},reset:function(){b(),s.off(O.BUFFER_EMPTY,p,t),s.off(O.PLAYBACK_SEEKING,m,t),s.off(O.METRIC_ADDED,g,t),s.off(O.QUALITY_CHANGE_REQUESTED,y,t),s.off(O.FRAGMENT_LOADING_ABANDONED,E,t),s.off(Ae.MEDIA_FRAGMENT_LOADED,h,t)}},r=Ce(o).getInstance().getLogger(t),b(),s.on(O.BUFFER_EMPTY,p,t),s.on(O.PLAYBACK_SEEKING,m,t),s.on(O.METRIC_ADDED,g,t),s.on(O.QUALITY_CHANGE_REQUESTED,y,t),s.on(O.FRAGMENT_LOADING_ABANDONED,E,t),s.on(Ae.MEDIA_FRAGMENT_LOADED,h,t),t}Ur.__dashjs_factory_name="BolaRule";var Br=T.getClassFactory(Ur);function qr(e){e=e||{};var t,r,n,o,i=this.context,a=e.dashMetrics,s=de(i).getInstance();function u(e){e.placeholderBuffer=0,e.mostAdvancedSegmentStart=NaN,e.lastSegmentWasReplacement=!1,e.lastSegmentStart=NaN,e.lastSegmentDurationS=NaN,e.lastSegmentRequestTimeMs=NaN,e.lastSegmentFinishTimeMs=NaN,e.lastSegmentUrl=""}function l(){for(var e in r)if(r.hasOwnProperty(e)){var t=r[e];0!==t.state&&(t.state=1,u(t))}}function f(e){if(e&&e.chunk&&e.chunk.mediaInfo){var t=r[e.chunk.mediaInfo.type],o=n[e.chunk.mediaInfo.type];if(t&&0!==t.state){var i=e.chunk.start;isNaN(t.mostAdvancedSegmentStart)||i>t.mostAdvancedSegmentStart?(t.mostAdvancedSegmentStart=i,t.lastSegmentWasReplacement=!1):t.lastSegmentWasReplacement=!0,t.lastSegmentStart=i,t.lastSegmentDurationS=e.chunk.duration,t.lastQuality=e.chunk.quality,d(t,o)}}}function c(e){if(e&&e.metric===Rr.HTTP_REQUEST&&e.value&&e.value.type===_.MEDIA_SEGMENT_TYPE&&e.value.trace&&e.value.trace.length){var t=r[e.mediaType],o=n[e.mediaType];t&&0!==t.state&&(t.lastSegmentRequestTimeMs=e.value.trequest.getTime(),t.lastSegmentFinishTimeMs=e.value._tfinish.getTime(),d(t,o))}}function d(e,t){isNaN(e.lastSegmentStart)||isNaN(e.lastSegmentRequestTimeMs)||(t.segment_request_start_s=.001*e.lastSegmentRequestTimeMs,t.segment_download_finish_s=.001*e.lastSegmentFinishTimeMs,e.lastSegmentStart=NaN,e.lastSegmentRequestTimeMs=NaN)}function p(e){if(e&&e.mediaType){var t=r[e.mediaType];t&&0!==t.state&&(t.abrQuality=e.newQuality)}}function m(e,t){if(e.length!==t.length)return-1;for(var r=0,n=0;n<e.length;n++)r+=e[n]*t[n];return r}function h(){r={},n={}}return t={getMaxIndex:function(e){var t,s=Sr(i).create(),l=Math.pow(4,.99),f=Math.max(Math.pow(4,1),l*Math.sqrt(4)),c=e.getMediaInfo(),d=e.getMediaType(),p=c.bitrateList.map((function(e){return e.bandwidth})),h=p.length,g=e.getScheduleController(),v=e.getStreamInfo(),y=e.getAbrController(),E=y.getThroughputHistory(),b=v&&v.manifestInfo&&v.manifestInfo.isDynamic,T=e.useL2AABR(),A=a.getCurrentBufferLevel(d,!0),S=E.getSafeAverageThroughput(d,b),I=E.getAverageThroughput(d,b),R=E.getAverageLatency(d),w=e.getVideoModel().getPlaybackRate();if(!(e&&e.hasOwnProperty("getMediaInfo")&&e.hasOwnProperty("getMediaType")&&e.hasOwnProperty("getScheduleController")&&e.hasOwnProperty("getStreamInfo")&&e.hasOwnProperty("getAbrController")&&e.hasOwnProperty("useL2AABR")))return s;if(s.reason=s.reason||{},!T||d===z.AUDIO)return s;g.setTimeToLoadDelay(0);var N=function(e){var t=e.getMediaType(),o=r[t];return o||(o=function(e){var t={},r=e.getMediaInfo(),o=r.bitrateList.map((function(e){return e.bandwidth/1e3}));return t.state=1,t.bitrates=o,t.lastQuality=0,function(e){e&&e.type&&(n[e.type]={},n[e.type].w=[],n[e.type].prev_w=[],n[e.type].Q=0,n[e.type].segment_request_start_s=0,n[e.type].segment_download_finish_s=0,n[e.type].B_target=1.5)}(r),u(t),t}(e),r[t]=o),o}(e);if(0===N.state)return s;var O=n[d];if(!O)return s;if(s.reason.state=N.state,s.reason.throughput=I,s.reason.latency=R,isNaN(I))return s;switch(N.state){case 1:if(t=y.getQualityForBitrate(c,S,v.id,R),s.quality=t,s.reason.throughput=S,N.lastQuality=t,!isNaN(N.lastSegmentDurationS)&&A>=O.B_target){N.state=2,O.Q=l;for(var D=0;D<h;++D)D===N.lastQuality?O.prev_w[D]=1:O.prev_w[D]=0}break;case 2:var C=[],P=a.getCurrentHttpRequest(d).trace.reduce((function(e,t){return e+t.d}),0),L=a.getCurrentHttpRequest(d).trace.reduce((function(e,t){return e+t.b[0]}),0),M=Math.round(8*L/P),x=a.getCurrentHttpRequest(d);if(M<1&&(M=1),x.url===N.lastSegmentUrl||x.type===_.INIT_SEGMENT_TYPE)t=N.lastQuality;else{for(var F=N.lastSegmentDurationS,k=1,U=0;U<h;++U)p[U]=p[U]/1e3,w*p[U]>M&&(k=-1),O.w[U]=O.prev_w[U]+k*(F/(2*f))*((O.Q+l)*(w*p[U]/M));O.w=function(e){for(var t=e.length,r=!1,n=[],o=0;o<t;++o)n[o]=e[o];for(var i=e.sort((function(e,t){return t-e})),a=0,s=0,u=[],l=0;l<t-1;++l)if((s=((a+=i[l])-1)/(l+1))>=i[l+1]){r=!0;break}r||(s=(a+i[t-1]-1)/t);for(var f=0;f<t;++f)u[f]=Math.max(n[f]-s,0);return u}(O.w);for(var B=0;B<h;++B)C[B]=O.w[B]-O.prev_w[B],O.prev_w[B]=O.w[B];O.Q=Math.max(0,O.Q-F+F*w*((m(p,O.prev_w)+m(p,C))/M));for(var q=[],G=0;G<h;++G)q[G]=Math.abs(p[G]-m(O.w,p));(t=q.indexOf(Math.min.apply(Math,q)))>N.lastQuality&&p[N.lastQuality+1]<=M&&(t=N.lastQuality+1),p[t]>=M&&(O.Q=2*Math.max(l,O.Q)),N.lastSegmentUrl=x.url}s.quality=t,s.reason.throughput=I,s.reason.latency=R,s.reason.bufferLevel=A,N.lastQuality=s.quality;break;default:o.debug("L2A ABR rule invoked in bad state."),s.quality=y.getQualityForBitrate(c,S,v.id,R),s.reason.state=N.state,s.reason.throughput=S,s.reason.latency=R,N.state=1,u(N)}return s},reset:function(){h(),s.off(Ae.PLAYBACK_SEEKING,l,t),s.off(Ae.MEDIA_FRAGMENT_LOADED,f,t),s.off(Ae.METRIC_ADDED,c,t),s.off(Ae.QUALITY_CHANGE_REQUESTED,p,t)}},o=Ce(i).getInstance().getLogger(t),h(),s.on(Ae.PLAYBACK_SEEKING,l,t),s.on(Ae.MEDIA_FRAGMENT_LOADED,f,t),s.on(Ae.METRIC_ADDED,c,t),s.on(Ae.QUALITY_CHANGE_REQUESTED,p,t),t}qr.__dashjs_factory_name="L2ARule";var Gr=T.getClassFactory(qr);function jr(){var e,t,r,n,o,i,a,s,u,l=this.context;function f(){r=null,n=1,o=100,i=0,a=null,s=null,u="dynamic_weight_selection"}function c(){var e=0;if(r)for(var t=0;t<r.length;t++){var n=r[t];n.state.throughput>e&&(e=n.state.throughput)}return e}function d(e,t,r){var n=e.map((function(e,n){return r[n]*Math.pow(e-t[n],2)})).reduce((function(e,t){return e+t}));return(n<0?-1:1)*Math.sqrt(Math.abs(n))}function p(e,t,r){for(var n=0;n<t.length;n++){var o=t[n],i=(s=e,d([(a=o).state.throughput,a.state.latency,a.state.rebuffer,a.state.switch],[s.state.throughput,s.state.latency,s.state.rebuffer,s.state.switch],[1,1,1,1]));m(o,r,Math.exp(-1*Math.pow(i,2)/(2*Math.pow(.1,2))))}var a,s}function m(e,t,r){var n=e.state,o=[.01,.01,.01,.01];n.throughput=n.throughput+(t[0]-n.throughput)*o[0]*r,n.latency=n.latency+(t[1]-n.latency)*o[1]*r,n.rebuffer=n.rebuffer+(t[2]-n.rebuffer)*o[2]*r,n.switch=n.switch+(t[3]-n.switch)*o[3]*r}return e={getNextQuality:function(e,l,f,m,h,g,_){var v=f,y=m,E=l,b=function(e){if(!r){r=[];var t=e.bitrateList,o=[];i=t[0].bandwidth,t.forEach((function(e){o.push(e.bandwidth),e.bandwidth<i&&(i=e.bandwidth)})),l=o.map((function(e){return Math.pow(e,2)})).reduce((function(e,t){return e+t})),n=Math.sqrt(l);for(var a=0;a<t.length;a++){var u={qualityIndex:a,bitrate:t[a].bandwidth,state:{throughput:t[a].bandwidth/n,latency:0,rebuffer:0,switch:0}};r.push(u)}s=function(e){var t=[],r=function(e){for(var t=[],r=0;r<e;r++){var n=[Math.random()*c(),Math.random(),Math.random(),Math.random()];t.push(n)}return t}(Math.pow(e.length,2));t.push(r[0]);for(var n=[1,1,1,1],o=1;o<e.length;o++){for(var i=null,a=null,s=0;s<r.length;s++){for(var u=r[s],l=null,f=0;f<t.length;f++){var p=d(u,t[f],n);(null===l||p<l)&&(l=p)}(null===a||l>a)&&(i=u,a=l)}t.push(i)}for(var m=null,h=null,g=0;g<t.length;g++){for(var _=0,v=0;v<t.length;v++)g!==v&&(_+=d(t[g],t[v],n));(null===m||_>m)&&(m=_,h=g)}var y=[];for(y.push(t[h]),t.splice(h,1);t.length>0;){for(var E=null,b=null,T=0;T<t.length;T++){var A=d(y[0],t[T],n);(null===E||A<E)&&(E=A,b=T)}y.push(t[b]),t.splice(b,1)}return y}(r)}var l;return r}(e),T=l/n;T>1&&(T=c()),f/=o,t.debug("getNextQuality called throughput:".concat(T," latency:").concat(f," bufferSize:").concat(m," currentQualityIndex:").concat(g," playbackRate:").concat(h));var A=b[g],S=A.bitrate*_.getSegmentDuration()/E,I=Math.max(0,S-y);if(y-S<_.getMinBuffer())return t.debug("Buffer is low for bitrate= ".concat(A.bitrate," downloadTime=").concat(S," currentBuffer=").concat(y," rebuffer=").concat(I)),function(e,t){var n=0,o=e;if(r)for(var i=0;i<r.length;i++){var a=r[i];a.bitrate<e.bitrate&&a.bitrate>n&&t>a.bitrate&&(n=a.bitrate,o=a)}return o}(A,E).qualityIndex;switch(u){case"manual_weight_selection":a=[.4,.4,.4,.4];break;case"random_weight_selection":!function(e){a=function(e,t){for(var r=[],n=Math.sqrt(2/e),o=0;o<4;o++)r.push(Math.random()*n);return a=r}(e.length)}(b);break;default:!function(e,t,r,n,o,i,u){a||(a=s[s.length-1]);var l=e.findWeightVector(t,r,n,o,i,u);null!==l&&-1!==l&&(a=l)}(_,b,v,y,I,E,h)}for(var R=null,w=null,N=null,O=0;O<b.length;O++){var D=b[O],C=D.state,P=[C.throughput,C.latency,C.rebuffer,C.switch],L=a.slice(),M=_.getNextBufferWithBitrate(D.bitrate,y,E),x=M<_.getMinBuffer();x&&t.debug("Buffer is low for bitrate=".concat(D.bitrate," downloadTime=").concat(S," currentBuffer=").concat(y," nextBuffer=").concat(M)),(D.bitrate>l-1e4||x)&&D.bitrate!==i&&(L[0]=100);var F=d(P,[T,0,0,0],L);(null===R||F<R)&&(R=F,w=D.qualityIndex,N=D)}var k=Math.abs(A.bitrate-N.bitrate)/n;return p(A,b,[T,f,I,k]),p(N,b,[T,0,0,k]),w},reset:function(){f()}},t=Ce(l).getInstance().getLogger(e),f(),e}jr.__dashjs_factory_name="LearningAbrController";var zr=T.getClassFactory(jr),Hr=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=null,this.lastBitrate=null,this.weights={},this.weights.bitrateReward=null,this.weights.bitrateSwitchPenalty=null,this.weights.rebufferPenalty=null,this.weights.latencyPenalty=null,this.weights.playbackSpeedPenalty=null,this.bitrateWSum=0,this.bitrateSwitchWSum=0,this.rebufferWSum=0,this.latencyWSum=0,this.playbackSpeedWSum=0,this.totalQoe=0};function Yr(){var e,t,r,n,o;function i(){t=null,r=null,n=null,o=null}function a(e,t,r,n){var o=new Hr;return o.type=e,o.weights.bitrateReward=t||1,o.weights.bitrateSwitchPenalty=1,o.weights.rebufferPenalty=r||1e3,o.weights.latencyPenalty=[],o.weights.latencyPenalty.push({threshold:1.1,penalty:.05*n}),o.weights.latencyPenalty.push({threshold:1e8,penalty:.1*r}),o.weights.playbackSpeedPenalty=n||200,o}function s(e,t,r,n,o){o.bitrateWSum+=o.weights.bitrateReward*e,o.lastBitrate&&(o.bitrateSwitchWSum+=o.weights.bitrateSwitchPenalty*Math.abs(e-o.lastBitrate)),o.lastBitrate=e,o.rebufferWSum+=o.weights.rebufferPenalty*t;for(var i=0;i<o.weights.latencyPenalty.length;i++){var a=o.weights.latencyPenalty[i];if(r<=a.threshold){o.latencyWSum+=a.penalty*r;break}}o.playbackSpeedWSum+=o.weights.playbackSpeedPenalty*Math.abs(1-n),o.totalQoe=o.bitrateWSum-o.bitrateSwitchWSum-o.rebufferWSum-o.latencyWSum-o.playbackSpeedWSum}return e={setupPerSegmentQoe:function(e,i,s){t=a("segment",e,i,s),r=e,n=i,o=s},logSegmentMetrics:function(e,r,n,o){t&&s(e,r,n,o,t)},getPerSegmentQoe:function(){return t},calculateSingleUseQoe:function(e,t,i,u){var l=null;return r&&n&&o&&(l=a("segment",r,n,o)),l?(s(e,t,i,u,l),l.totalQoe):0},reset:function(){i()}},i(),e}Yr.__dashjs_factory_name="LoLpQoeEvaluator";var Vr=T.getClassFactory(Yr);function Wr(e){var t,r,n,o,i=e.targetLatency,a=e.bufferMin,s=e.segmentDuration,u=e.qoeEvaluator;function l(){return s}function f(e,t){var r=l();return t>r?e-r:e+r-t}return t={getMinBuffer:function(){return a},getSegmentDuration:l,getNextBufferWithBitrate:function(e,t,r){return f(t,e*s/r)},getNextBuffer:f,findWeightVector:function(e,t,o,l,c,d){var p=null,m=null,h=null,g=Math.abs(t-n);return e.forEach((function(e){r.forEach((function(r){r[0];var n=r[1],l=r[2],_=(r[3],e.bitrate*s/c),v=f(o,_),y=(0===l?10:1/l)*Math.max(1e-5,_-v),E=(0===n?10:1/n)*e.state.latency,b=u.calculateSingleUseQoe(e.bitrate,y,E,d);(null===p||b>p)&&function(e,t,r){return!(e>i+r)&&t>=a}(t,v,g)&&(p=b,m=r,h=e.bitrate)}))})),null===m&&null===h&&(m=-1),n=t,m}},4,r=function e(t,r,n){if(n===r)return t;for(var i=t.length,a=0;a<i;a++)for(var s=t.shift(),u=0;u<o.length;u++)t.push(s.concat(o[u]));return e(t,r,n+1)}((o=[.2,.4,.6,.8,1]).map((function(e){return[e]})),4,1),n=0,t}Wr.__dashjs_factory_name="LoLpWeightSelector";var Xr=T.getClassFactory(Wr);function Kr(e){var t,r,n,o,i=(e=e||{}).dashMetrics,a=this.context;return r={getMaxIndex:function(e){try{var r=Sr(a).create(),s=e.getMediaInfo().type,u=e.getAbrController(),l=e.getStreamInfo(),f=u.getQualityFor(s,l.id),c=e.getMediaInfo(),d=i.getCurrentBufferState(s),p=e.getScheduleController(),m=i.getCurrentBufferLevel(s,!0),h=l&&l.manifestInfo?l.manifestInfo.isDynamic:null,g=p.getPlaybackController(),_=g.getCurrentLiveLatency();if(!e.useLoLPABR()||s===z.AUDIO)return r;_||(_=0);var v=g.getPlaybackRate(),y=u.getThroughputHistory().getSafeAverageThroughput(s,h);if(t.debug("Throughput ".concat(Math.round(y)," kbps")),isNaN(y)||!d)return r;if(u.getAbandonmentStateFor(l.id,s)===Rr.ABANDON_LOAD)return r;for(var E=c.bitrateList,b=e.getRepresentationInfo().fragmentDuration,T=E[0].bandwidth/1e3,A=E[E.length-1].bandwidth/1e3,S=0;S<E.length;S++){var I=E[S].bandwidth/1e3;I>A?A=I:I<T&&(T=I)}var R=E[f].bandwidth/1e3,w=i.getCurrentHttpRequest(s,!0),N=(w.tresponse.getTime()-w.trequest.getTime())/1e3,O=N>b?N-b:0;o.setupPerSegmentQoe(b,A,T),o.logSegmentMetrics(R,O,_,v);var D=Xr(a).create({targetLatency:1.5,bufferMin:.3,segmentDuration:b,qoeEvaluator:o});return r.quality=n.getNextQuality(c,1e3*y,_,m,v,f,D),r.reason={throughput:y,latency:_},r.priority=Sr.PRIORITY.STRONG,p.setTimeToLoadDelay(0),r.quality!==f&&t.debug("[TgcLearningRule]["+s+"] requesting switch to index: ",r.quality,"Average throughput",Math.round(y),"kbps"),r}catch(e){throw e}},reset:function(){n.reset(),o.reset()}},t=Ce(a).getInstance().getLogger(r),n=zr(a).create(),o=Vr(a).create(),r}Kr.__dashjs_factory_name="LoLPRule";var Qr=T.getClassFactory(Kr),$r="qualitySwitchRules",Zr="abandonFragmentRules";function Jr(e){e=e||{};var t,r,n=this.context,o=e.mediaPlayerModel,i=e.customParametersModel,a=e.dashMetrics,s=e.settings;function u(e){return e.filter((function(e){return e.quality>Sr.NO_CHANGE}))}function l(e){var t,r,o,i,a,s={},u=null;if(0!==e.length){for(s[Sr.PRIORITY.STRONG]={quality:Sr.NO_CHANGE,reason:null},s[Sr.PRIORITY.WEAK]={quality:Sr.NO_CHANGE,reason:null},s[Sr.PRIORITY.DEFAULT]={quality:Sr.NO_CHANGE,reason:null},t=0,r=e.length;t<r;t+=1)(o=e[t]).quality!==Sr.NO_CHANGE&&(s[o.priority].quality===Sr.NO_CHANGE||s[o.priority].quality>o.quality)&&(s[o.priority].quality=o.quality,s[o.priority].reason=o.reason||null);return s[Sr.PRIORITY.WEAK].quality!==Sr.NO_CHANGE&&(u=s[Sr.PRIORITY.WEAK]),s[Sr.PRIORITY.DEFAULT].quality!==Sr.NO_CHANGE&&(u=s[Sr.PRIORITY.DEFAULT]),s[Sr.PRIORITY.STRONG].quality!==Sr.NO_CHANGE&&(u=s[Sr.PRIORITY.STRONG]),u&&(i=u.quality,a=u.reason),Sr(n).create(i,a)}}return{initialize:function(){t=[],r=[],s.get().streaming.abr.useDefaultABRRules&&(s.get().streaming.abr.ABRStrategy===z.ABR_STRATEGY_L2A?t.push(Gr(n).create({dashMetrics:a,settings:s})):s.get().streaming.abr.ABRStrategy===z.ABR_STRATEGY_LoLP?t.push(Qr(n).create({dashMetrics:a})):(t.push(Br(n).create({dashMetrics:a,mediaPlayerModel:o,settings:s})),t.push(Nr(n).create({dashMetrics:a})),s.get().streaming.abr.additionalAbrRules.insufficientBufferRule&&t.push(Dr(n).create({dashMetrics:a,settings:s})),s.get().streaming.abr.additionalAbrRules.switchHistoryRule&&t.push(Fr(n).create()),s.get().streaming.abr.additionalAbrRules.droppedFramesRule&&t.push(Mr(n).create()),s.get().streaming.abr.additionalAbrRules.abandonRequestsRule&&r.push(Pr(n).create({dashMetrics:a,mediaPlayerModel:o,settings:s})))),i.getAbrCustomRules().forEach((function(e){e.type===$r&&t.push(e.rule(n).create()),e.type===Zr&&r.push(e.rule(n).create())}))},reset:function(){[t,r].forEach((function(e){e&&e.length&&e.forEach((function(e){return e.reset&&e.reset()}))})),t=[],r=[]},getMaxQuality:function(e){return l(u(t.map((function(t){return t.getMaxIndex(e)}))))||Sr(n).create()},getMinSwitchRequest:l,shouldAbandonFragment:function(e,t){return l(u(r.map((function(r){return r.shouldAbandon(e,t)}))))||Sr(n).create()},getQualitySwitchRules:function(){return t}}}Jr.__dashjs_factory_name="ABRRulesCollection";var en=T.getClassFactory(Jr);en.QUALITY_SWITCH_RULES=$r,en.ABANDON_FRAGMENT_RULES=Zr,T.updateSingletonFactory(Jr.__dashjs_factory_name,en);var tn=en;function rn(){var e,t,r,n,o,i,a,s,u=this.context,l=xe(u).getInstance();function f(){n=[],o=[],i=[],s=[],a=null,t=[]}function c(e,t){var r=-1;e.some((function(e,n){if(e===t)return r=n,!0})),r<0||e.splice(r,1)}function d(e){var t;for(t=0;t<s.length;t++)if(s[t].rulename===e)return t;return-1}function p(e,r){m(e,r);var n=new Ze;n.schemeIdUri=e,n.value=r,t.push(n)}function m(e,r){Er(e,"string"),Er(r,"string"),t.forEach((function(n,o){n.schemeIdUri===e&&n.value===r&&t.splice(o,1)}))}return e={getCustomInitialTrackSelectionFunction:function(){return a},setCustomInitialTrackSelectionFunction:function(e){a=e},resetCustomInitialTrackSelectionFunction:function(){a=null},getLicenseResponseFilters:function(){return o},getLicenseRequestFilters:function(){return n},getCustomCapabilitiesFilters:function(){return i},registerCustomCapabilitiesFilter:function(e){i.push(e)},registerLicenseResponseFilter:function(e){o.push(e)},registerLicenseRequestFilter:function(e){n.push(e)},unregisterCustomCapabilitiesFilter:function(e){c(i,e)},unregisterLicenseResponseFilter:function(e){c(o,e)},unregisterLicenseRequestFilter:function(e){c(n,e)},addAbrCustomRule:function(e,t,r){if("string"!=typeof e||e!==tn.ABANDON_FRAGMENT_RULES&&e!==tn.QUALITY_SWITCH_RULES||"string"!=typeof t)throw z.BAD_ARGUMENT_ERROR;var n=d(t);-1===n?s.push({type:e,rulename:t,rule:r}):(s[n].type=e,s[n].rule=r)},removeAllAbrCustomRule:function(){s=[]},removeAbrCustomRule:function(e){if(e){var t=d(e);-1!==t&&s.splice(t,1)}else s=[]},getAbrCustomRules:function(){return s},addUTCTimingSource:p,removeUTCTimingSource:m,getUTCTimingSources:function(){return t},clearDefaultUTCTimingSources:function(){t=[]},restoreDefaultUTCTimingSources:function(){var e=l.get().streaming.utcSynchronization.defaultTimingSource;p(e.scheme,e.value)},setXHRWithCredentialsForType:function e(t,n){t?r[t]=!!n:Object.keys(r).forEach((function(t){e(t,n)}))},getXHRWithCredentialsForType:function(e){var t=r[e];return void 0===t?r.default:t},setConfig:function(){},reset:function(){f()}},r={default:!1},f(),e}rn.__dashjs_factory_name="CustomParametersModel";var nn=T.getSingletonFactory(rn);function on(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function an(e){e=e||{};var t,r,n,o,i,a,s,u,l,f,c,d=this.context,p=e.errHandler,m=e.dashMetrics,h=e.mediaPlayerModel,g=e.requestModifier,v=e.boxParser,y=e.errors,E=e.requestTimeout||0,b=de(d).getInstance(),T=xe(d).getInstance();function A(e,t){var c,y=e.request,S=[],I=!0,R=!0,w=new Date,N=w,O=0,D=null,C=null;if(!g||!m||!p)throw new Error("config object is not correct or missing");var P,L=function(e){y.requestStartDate=w,y.requestEndDate=new Date,y.firstByteDate=y.firstByteDate||w,y.fileLoaderType=C;var t=c.response?c.response.responseURL:null,r=c.response?c.response.status:null,n=c.response&&c.response.getAllResponseHeaders?c.response.getAllResponseHeaders():c.response?c.response.responseHeaders:null,o=n&&T.get().streaming.cmsd&&T.get().streaming.cmsd.enabled?s.parseResponseHeaders(n,y.mediaType):null;m.addHttpRequest(y,t,r,n,e?S:null,o)},M=function(e){R=!1,L(e),y.type===_.MPD_TYPE&&(m.addManifestUpdate(y),b.trigger(Ae.MANIFEST_LOADING_FINISHED,{request:y}))},x=function(){if(D&&(clearTimeout(D),D=null),-1!==r.indexOf(c)&&(r.splice(r.indexOf(c),1),R))if(M(!1),t>0){try{T.get().streaming.utcSynchronization.enableBackgroundSyncAfterSegmentDownloadError&&y.type===_.MEDIA_SEGMENT_TYPE&&h.getRetryAttemptsForType(_.MEDIA_SEGMENT_TYPE)===t&&b.trigger(Ae.ATTEMPT_BACKGROUND_SYNC)}catch(e){}t--;var n={config:e};o.push(n),n.timeout=setTimeout((function(){-1!==o.indexOf(n)&&(o.splice(o.indexOf(n),1),A(e,t))}),h.getRetryIntervalsForType(y.type))}else{if(y.type===_.MSS_FRAGMENT_INFO_SEGMENT_TYPE)return;p.error(new qe(i[y.type],y.url+" is not available",{request:y,response:c.response})),e.error&&e.error(y,"error",c.response.statusText,c.response),e.complete&&e.complete(y,c.response.statusText)}};y.hasOwnProperty("availabilityTimeComplete")&&!1===y.availabilityTimeComplete&&window.fetch&&"arraybuffer"===y.responseType&&y.type===_.MEDIA_SEGMENT_TYPE?((P=Be(d).create({requestModifier:g,lowLatencyThroughputModel:l,boxParser:v})).setup({dashMetrics:m}),C=z.FILE_LOADER_TYPES.FETCH):(P=re(d).create({requestModifier:g}),C=z.FILE_LOADER_TYPES.XHR);var F=null,k=g.modifyRequestURL?g.modifyRequestURL(y.url):y.url;if(T.get().streaming.cmcd&&T.get().streaming.cmcd.enabled){var U=T.get().streaming.cmcd.mode;if(U===z.CMCD_MODE_QUERY){var B=function(e){try{var t=[],r=a.getQueryParameter(e);return r&&t.push(r),t}catch(e){return[]}}(y);k=le.addAditionalQueryParameterToUrl(k,B)}else U===z.CMCD_MODE_HEADER&&(F=a.getHeaderParameters(y))}var q=u.getXHRWithCredentialsForType(y.type);if(y.queryParams){var G=Object.keys(y.queryParams).map((function(e){return{key:e,value:y.queryParams[e]}}));k=le.addAditionalQueryParameterToUrl(k,G)}y.url=k,c={url:k,method:_.GET,withCredentials:q,request:y,onload:function(){c.response.status>=200&&c.response.status<=299&&(M(!0),e.success&&e.success(c.response.response,c.response.statusText,c.response.responseURL),e.complete&&e.complete(y,c.response.statusText))},onend:x,onerror:x,progress:function(t){var r=new Date;I&&(I=!1,(!t.lengthComputable||t.lengthComputable&&t.total!==t.loaded)&&(y.firstByteDate=r)),t.lengthComputable&&(y.bytesLoaded=t.loaded,y.bytesTotal=t.total),t.noTrace||(S.push({s:N,d:t.time?t.time:r.getTime()-N.getTime(),b:[t.loaded?t.loaded-O:0]}),N=r,O=t.loaded),D&&(clearTimeout(D),D=null),T.get().streaming.fragmentRequestProgressTimeout>0&&(D=setTimeout((function(){f.warn("Abort request "+c.url+" due to progress timeout"),c.response.onabort=null,c.loader.abort(c),x()}),T.get().streaming.fragmentRequestProgressTimeout)),e.progress&&t&&e.progress(t)},onabort:function(){L(!0),D&&(clearTimeout(D),D=null),e.abort&&e.abort(y)},ontimeout:function(e){var t;if(e.lengthComputable){var r=e.loaded/e.total*100;t="Request timeout: loaded: "+e.loaded+", out of: "+e.total+" : "+r.toFixed(3)+"% Completed"}else t="Request timeout: non-computable download size";f.warn(t)},loader:P,timeout:E,headers:F};var j=(new Date).getTime();if(isNaN(y.delayLoadingTime)||j>=y.delayLoadingTime)r.push(c),P.load(c);else{var H={httpRequest:c};n.push(H),H.delayTimeout=setTimeout((function(){if(-1!==n.indexOf(H)){n.splice(n.indexOf(H),1);try{w=new Date,N=w,r.push(H.httpRequest),P.load(H.httpRequest)}catch(e){H.httpRequest.onerror()}}}),y.delayLoadingTime-j)}}return t={load:function(e){e.request?A(e,h.getRetryAttemptsForType(e.request.type)):e.error&&e.error(e.request,"error")},abort:function(){o.forEach((function(e){clearTimeout(e.timeout),e.config.request&&e.config.abort&&e.config.abort(e.config.request)})),o=[],n.forEach((function(e){return clearTimeout(e.delayTimeout)})),n=[],r.forEach((function(e){e.request.type!==_.MSS_FRAGMENT_INFO_SEGMENT_TYPE&&(e.onloadend=e.onerror=e.onprogress=void 0,e.loader.abort(e))})),r=[]}},f=Ce(d).getInstance().getLogger(t),r=[],n=[],o=[],a=$t(d).getInstance(),s=gr(d).getInstance(),l=vr(d).getInstance(),u=nn(d).getInstance(),on(c={},_.MPD_TYPE,y.DOWNLOAD_ERROR_ID_MANIFEST_CODE),on(c,_.XLINK_EXPANSION_TYPE,y.DOWNLOAD_ERROR_ID_XLINK_CODE),on(c,_.INIT_SEGMENT_TYPE,y.DOWNLOAD_ERROR_ID_INITIALIZATION_CODE),on(c,_.MEDIA_SEGMENT_TYPE,y.DOWNLOAD_ERROR_ID_CONTENT_CODE),on(c,_.INDEX_SEGMENT_TYPE,y.DOWNLOAD_ERROR_ID_CONTENT_CODE),on(c,_.BITSTREAM_SWITCHING_SEGMENT_TYPE,y.DOWNLOAD_ERROR_ID_CONTENT_CODE),on(c,_.OTHER_TYPE,y.DOWNLOAD_ERROR_ID_CONTENT_CODE),i=c,t}an.__dashjs_factory_name="HTTPLoader";var sn=T.getClassFactory(an);function un(){var e;function t(){e={}}function r(){t()}return r(),{getLoader:function(t){for(var r in e)if(e.hasOwnProperty(r)&&t.startsWith(r))return e[r];return sn},registerLoader:function(t,r){e[t]=r},unregisterLoader:function(t){e[t]&&delete e[t]},unregisterAllLoader:t,reset:r}}un.__dashjs_factory_name="SchemeLoaderFactory";var ln=T.getSingletonFactory(un);function fn(e){e=e||{};var t,r,n=this.context;return t=ln(n).getInstance(),{load:function(o){if(!r){var i=t.getLoader(o&&o.request?o.request.url:null);r=i(n).create({errHandler:e.errHandler,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier,dashMetrics:e.dashMetrics,boxParser:e.boxParser?e.boxParser:null,constants:e.constants?e.constants:null,dashConstants:e.dashConstants?e.dashConstants:null,urlUtils:e.urlUtils?e.urlUtils:null,requestTimeout:isNaN(e.requestTimeout)?0:e.requestTimeout,errors:e.errors})}r.load(o)},abort:function(){r&&r.abort()}}}fn.__dashjs_factory_name="URLLoader";var cn=T.getClassFactory(fn);function dn(e){return dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dn(e)}function pn(e,t){return pn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},pn(e,t)}function mn(e,t){return!t||"object"!==dn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function hn(e){return hn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hn(e)}var gn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pn(e,t)}(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=hn(t);if(r){var o=hn(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return mn(this,e)});function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=n.call(this,e)).checkForExistenceOnly=!0,t}return o}(E);function _n(e){e=e||{};var t,r,n=this.context,o=e.eventBus,i=e.events,a=e.urlUtils,s=e.errors,u=e.streamId;return t={checkForExistence:function(e){var t=function(t){o.trigger(i.CHECK_FOR_EXISTENCE_COMPLETED,{request:e,exists:t})};if(e){var n=new gn(e.url);r.load({request:n,success:function(){t(!0)},error:function(){t(!1)}})}else t(!1)},load:function(e){var n=function(r,n){o.trigger(i.LOADING_COMPLETED,{request:e,response:r||null,error:n||null,sender:t})};e?r.load({request:e,progress:function(r){o.trigger(i.LOADING_PROGRESS,{request:e,stream:r.stream,streamId:u}),r.data&&o.trigger(i.LOADING_DATA_PROGRESS,{request:e,response:r.data||null,error:null,sender:t})},success:function(e){n(e)},error:function(e,t,r){n(void 0,new qe(s.FRAGMENT_LOADER_LOADING_FAILURE_ERROR_CODE,r,t))},abort:function(e){e&&o.trigger(i.LOADING_ABANDONED,{mediaType:e.mediaType,request:e,sender:t})}}):n(void 0,new qe(s.FRAGMENT_LOADER_NULL_REQUEST_ERROR_CODE,s.FRAGMENT_LOADER_NULL_REQUEST_ERROR_MESSAGE))},abort:function(){r&&r.abort()},reset:function(){r&&(r.abort(),r=null)}},r=cn(n).create({errHandler:e.errHandler,errors:s,dashMetrics:e.dashMetrics,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier,urlUtils:a,constants:z,boxParser:e.boxParser,dashConstants:e.dashConstants,requestTimeout:e.settings.get().streaming.fragmentRequestTimeout}),t}_n.__dashjs_factory_name="FragmentLoader";var vn=T.getClassFactory(_n);function yn(e){e=e||{};var t,r,n,o,i,a,s,u,l,f,c,d=this.context,p=e.eventBus,m=e.events,h=e.errors,g=e.debug,_=e.constants,v=e.settings,y=e.dashConstants,E=e.id,b=e.type,T=e.streamInfo,A=e.errHandler,S=e.mediaPlayerModel,I=e.abrController,R=e.playbackController,w=e.adapter,N=e.dashMetrics,O=e.baseURLController,D=e.timelineConverter,C=e.bitrate,P=e.offlineStoreController,L=e.callbacks&&e.callbacks.completed,M=e.callbacks&&e.callbacks.progression;function x(e){if(e.sender===a){if(null!==e.request){var t="InitializationSegment"===e.request.type,r=t?"init":e.request.index,n=e.request.representationId+"_"+r;P.storeFragment(E,n,e.response).then((function(){t||P.setRepresentationCurrentState(E,e.request.representationId,{index:e.request.index,downloaded:u})}))}e.error&&e.request.serviceLocation&&!c?a.executeRequest(e.request):(u++,U())}}function F(e){e.fragmentModel===a&&(r.info("[".concat(E,"] Stream is complete")),k(),L())}function k(){c||(c=!0)}function U(){if(!c&&isNaN(i.getCurrentRepresentation())){var e=null;l?(e=o.getNextSegmentRequest(B(),i.getCurrentRepresentation()),M&&M(t,u,q())):(e=i.getCurrentRepresentation()?o.getInitRequest(B(),i.getCurrentRepresentation()):null,l=!0),e?(r.info("[".concat(E,"] download request : ").concat(e.url)),a.executeRequest(e)):r.info("[".concat(E,"] no request to be downloaded"))}}function B(){return n}function q(){return i.getCurrentRepresentation().numberOfSegments+1}function j(){l=!1,u=0,s=!1}return t={initialize:function(e){n=e,o.initialize(!1),function(e){s=!0;var t=w.getVoRepresentations(e),r=t.findIndex((function(e){return e.id===C.id}));b===_.VIDEO||b===_.AUDIO||b===_.TEXT?i.updateData(null,t,b,e.isFragmented,r):s=!1}(n)},getMediaInfo:B,getRepresentationController:function(){return i},removeExecutedRequestsBeforeTime:function(e){a&&a.removeExecutedRequestsBeforeTime(e)},getType:function(){return b},getRepresentationId:function(){return i.getCurrentRepresentation().id},isUpdating:function(){return s},start:function(){if(i){if(!i.getCurrentRepresentation())throw new Error("Start denied to OfflineStreamProcessor");c=!1,P.getRepresentationCurrentState(E,i.getCurrentRepresentation().id).then((function(e){e&&(o.setCurrentIndex(e.index),u=e.downloaded),U()})).catch((function(){U()}))}},stop:k,getAvailableSegmentsNumber:q,reset:function(){j(),o.reset(),p.off(m.STREAM_REQUESTING_COMPLETED,F,t),p.off(m.FRAGMENT_LOADING_COMPLETED,x,t)}},j(),r=g.getLogger(t),f=Ut(d).create({events:m,eventBus:p,streamInfo:T,timelineConverter:D,dashConstants:y,segmentBaseController:e.segmentBaseController,type:b}),o=G(d).create({streamInfo:T,type:b,timelineConverter:D,dashMetrics:N,mediaPlayerModel:S,baseURLController:O,errHandler:A,settings:v,eventBus:p,events:m,debug:g,requestModifier:ee(d).getInstance(),dashConstants:y,constants:_,segmentsController:f,urlUtils:mt(d).getInstance()}),i=Y(d).create({streamInfo:T,type:b,abrController:I,dashMetrics:N,playbackController:R,timelineConverter:D,dashConstants:y,events:m,eventBus:p,errors:h,segmentsController:f}),a=$(d).create({streamInfo:T,dashMetrics:N,fragmentLoader:vn(d).create({dashMetrics:N,mediaPlayerModel:S,errHandler:A,requestModifier:ee(d).getInstance(),settings:v,eventBus:p,events:m,errors:h,constants:_,dashConstants:y,urlUtils:mt(d).getInstance()}),debug:g,eventBus:p,events:m}),p.on(m.STREAM_REQUESTING_COMPLETED,F,t),p.on(m.FRAGMENT_LOADING_COMPLETED,x,t),t}yn.__dashjs_factory_name="OfflineStreamProcessor";var En=dashjs.FactoryMaker.getClassFactory(yn);function bn(e){e=e||{};var t,r,n,o,i,a,s,u,l=this.context,f=e.eventBus,c=e.events,d=e.errors,p=e.constants,m=e.dashConstants,h=e.settings,g=e.debug,_=e.errHandler,v=e.mediaPlayerModel,y=e.abrController,E=e.playbackController,b=e.adapter,T=e.dashMetrics,A=e.baseURLController,S=e.timelineConverter,I=e.segmentBaseController,R=e.offlineStoreController,w=e.id,N=e.callbacks&&e.callbacks.started,O=e.callbacks&&e.callbacks.progression,D=e.callbacks&&e.callbacks.finished,C=e.callbacks&&e.callbacks.updateManifestNeeded;function P(){i=null,r=[],n=0,o=0,s=[],a=[],u={}}function L(e,t){var r=b.getAllMediaInfoForType(t,e);return r.forEach((function(t){t.bitrateList=t.bitrateList.filter((function(t){return!(!s[e]||-1===s[e].indexOf(t.id))}))})),(r=r.filter((function(e){return e.bitrateList&&e.bitrateList.length>0}))).forEach((function(e){e.bitrateList&&e.bitrateList.forEach((function(t){M(e,t)}))})),r}function M(e,t){var n=En(l).create({id:w,streamInfo:i,debug:g,events:c,errors:d,eventBus:f,constants:p,dashConstants:m,settings:h,type:e.type,mimeType:e.mimeType,bitrate:t,errHandler:_,mediaPlayerModel:v,abrController:y,playbackController:E,adapter:b,dashMetrics:T,baseURLController:A,timelineConverter:S,offlineStoreController:R,segmentBaseController:I,callbacks:{completed:x,progression:F}});r.push(n),n.initialize(e),u[t.id]=null}function x(){++o===r.length&&D({sender:this,id:w,message:"Downloading has been successfully completed for this stream !"})}function F(e,r,n){u[e.getRepresentationId()]={downloadedSegments:r,availableSegments:n};var o,i=0,a=0;for(var s in u)u.hasOwnProperty(s)&&(null===u[s]?o=!0:(i+=u[s].downloadedSegments,a+=u[s].availableSegments));!o&&O&&a>0&&O(t,i,a)}function k(e){var t;e.currentRepresentation.segments&&e.currentRepresentation.segments.length>0&&a.push(e.currentRepresentation);for(var o=0;o<r.length;o++)if(r[o].getRepresentationController().getType()===e.mediaType){t=r[o];break}t&&function(){++n===r.length&&(N({sender:this,id:w,message:"Downloading started for this stream !"}),a.length>0?C({sender:this,id:w,representations:a}):B())}()}function U(){for(var e=0;e<r.length;e++)r[e].stop()}function B(){for(var e=0;e<r.length;e++)r[e].start()}return t={initialize:function(e){i=e,f.on(c.DATA_UPDATE_COMPLETED,k,t)},getStreamId:function(){return i.id},getMediaInfos:function(){var e=b.getAllMediaInfoForType(i,p.VIDEO);e=(e=e.concat(b.getAllMediaInfoForType(i,p.AUDIO))).concat(b.getAllMediaInfoForType(i,p.TEXT)),f.trigger(c.OFFLINE_RECORD_LOADEDMETADATA,{id:w,mediaInfos:e})},initializeAllMediasInfoList:function(e){s=e,function(e){L(p.VIDEO,e),L(p.AUDIO,e),L(p.TEXT,e),L(p.MUXED,e),L(p.IMAGE,e)}(i)},getStreamInfo:function(){return i},stopOfflineStreamProcessors:U,startOfflineStreamProcessors:B,reset:function(){U(),function(){for(var e=r?r.length:0,t=0;t<e;t++)r[t].removeExecutedRequestsBeforeTime((i?i.start:NaN)+(i?i.duration:NaN)),r[t].reset()}(),P(),f.off(c.DATA_UPDATE_COMPLETED,k,t)}},P(),t}bn.__dashjs_factory_name="OfflineStream";var Tn=dashjs.FactoryMaker.getClassFactory(bn),An=r(7227).XmlEntities;function Sn(e){var t,r,n,o=e.manifestId,i=e.allMediaInfos,a=e.urlUtils,s=e.debug,u=e.dashConstants,l=e.constants;function f(e){var t,n,i,s="".concat("offline_indexeddb://").concat(o,"/");if(0===(t=e.getElementsByTagName(u.BASE_URL)).length){var l=r.createElement(u.BASE_URL);l.innerHTML=s,e.appendChild(l)}t=e.getElementsByTagName(u.BASE_URL);for(var f=0;f<t.length;f++){var c=t[f].parentNode;if(c.nodeName===u.MPD)t[f].innerHTML=s;else if(c.nodeName===u.REPRESENTATION){var d=c.parentNode;d.nodeName==u.ADAPTATION_SET&&(a.isHTTPS(t[f].innerHTML)||a.isHTTPURL(t[f].innerHTML)?(n=S(t[f].innerHTML),i=A(d),t[f].innerHTML=s+i+"_"+n):"./"===t[f].innerHTML?t[f].innerHTML=s:(n=S(t[f].innerHTML),i=A(d),t[f].innerHTML=i+"_"+n))}else t[f].innerHTML=s}}function c(e,t){for(var r=e.getElementsByTagName(u.PERIOD),n=0;n<r.length;n++)d(r[n],t)}function d(e,t){for(var r,n,o,i,a=(r=e.getElementsByTagName(u.ADAPTATION_SET)).length-1;a>=0;a--)if(n=r[a])if(o=p(n),T(n,g(n),o),i=g(n),v(n),0===i.length)e.removeChild(n);else{for(var s=0;s<i.length;s++){var l=i[s],f=l.getElementsByTagName(u.SEGMENT_LIST);f.length>=1&&E(f,l)}var c=_(n);if(c.length>=1&&y(c),t&&t.length>0){for(var d=void 0,m=0;m<i.length;m++)for(var h=i[m],A=0;t&&A<t.length;A++)if(t[A].id===h.id){d=t[A];break}b(n,d)}}}function p(e){return m(e,l.MUXED)?l.MUXED:m(e,l.AUDIO)?l.AUDIO:function(e){return m(e,l.VIDEO)}(e)?l.VIDEO:function(e){return m(e,l.TEXT)}(e)?l.TEXT:function(e){return m(e,l.IMAGE)}(e)?l.IMAGE:null}function m(e,t){if(!e)throw new Error("adaptation is not defined");if(!t)throw new Error("type is not defined");return function(e,t){var r=t!==l.TEXT?new RegExp(t):new RegExp("(vtt|ttml)"),n=h(e);if(n)return r.test(n);var o=g(e);if(o)for(var i=0;i<o.length;i++)if(n=h(o[i]))return r.test(n);return!1}(e,t)}function h(e){return e.getAttribute(u.MIME_TYPE)}function g(e){return e.getElementsByTagName(u.REPRESENTATION)}function _(e){return e.getElementsByTagName(u.SEGMENT_TEMPLATE)}function v(e){for(var t=e.getElementsByTagName(u.SEGMENT_BASE),r=0;r<t.length;r++){var n=t[r];n.parentNode.removeChild(n)}}function y(e){for(var t=0;t<e.length;t++){var r=e[t].getAttribute(u.MEDIA);r="$RepresentationID$_$Number$"+r.substring(r.indexOf("."),r.length),e[t].setAttribute(u.START_NUMBER,"0"),e[t].setAttribute(u.MEDIA,r),e[t].setAttribute(u.INITIALIZATION_MINUS,"$RepresentationID$_init")}}function E(e,t){for(var r=t.getAttribute(u.ID),n=0;n<e.length;n++){var o=e[n],i=o.getElementsByTagName(u.INITIALIZATION);if(i){var a=i[0].getAttribute(u.SOURCE_URL);a="".concat(r,"_init"),i[0].setAttribute(u.SOURCE_URL,a)}var s=o.getElementsByTagName(u.SEGMENT_URL);if(s)for(var l=0;l<s.length;l++){var f=s[l],c=f.getAttribute(u.MEDIA);c="".concat(r,"_").concat(l),f.setAttribute(u.MEDIA,c)}}}function b(e,t){var n=r.createElement(u.SEGMENT_TEMPLATE);n.setAttribute(u.START_NUMBER,"0"),n.setAttribute(u.MEDIA,"$RepresentationID$-$Time$"),n.setAttribute(u.INITIALIZATION_MINUS,"$RepresentationID$_init"),function(e,t){var n=r.createElement("S");if(t&&t.segments){for(var o=r.createElement(u.SEGMENT_TIMELINE),i=function(e){var t=[];t.push(0);for(var r=1;r<e.segments.length;r++)e.segments[r-1].duration!==e.segments[r].duration&&t.push(r);return t}(t),a=0;a<i.length;a++){var s=a+1<i.length?i[a+1]-i[a]-1:0;s>1&&n.setAttribute("r",s),n.setAttribute("d",t.segments[i[a]].duration),o.appendChild(n),n=r.createElement("S")}e.appendChild(o)}}(n,t),e.appendChild(n)}function T(e,t,r){for(var n=t.length-1;n>=0;n--){var o=t[n],a=o.getAttribute(u.ID);i[r]&&-1===i[r].indexOf(a)&&e.removeChild(o)}}function A(e){var t=e.getElementsByTagName(u.REPRESENTATION)[0];return console.log(t.getAttribute(u.ID)),t.getAttribute(u.ID)}function S(e){var t=e.lastIndexOf("/");return e.substring(t,e.length)}return n=s.getLogger(t),{parse:function(e,t){return new Promise((function(o,i){for(var a=(r=(new DOMParser).parseFromString(e,"application/xml")).getElementsByTagName(u.MPD)?r.getElementsByTagName(u.MPD):null,s=0;s<a.length;s++)null!==a[s]&&(f(a[s]),c(a[s],t));var l=function(e){return n.info("encodedManifest "+(new XMLSerializer).serializeToString(e)),(new An).encode((new XMLSerializer).serializeToString(e))}(r);""!==l?o(l):i("Encoded error")}))}}}Sn.__dashjs_factory_name="OfflineIndexDBManifestParser";var In=dashjs.FactoryMaker.getClassFactory(Sn);function Rn(e){return Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rn(e)}function wn(e){function t(e,t){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}function r(e,r,n){for(var o=0,i=e.length;o<i;++o){var a=e[o];if(r[a.name])if(n[a.name]){if(a.merge){var s=r[a.name],u=n[a.name];"object"===Rn(s)&&"object"===Rn(u)?t(s,u):n[a.name]=s+u}}else n[a.name]=r[a.name]}}function n(e,t){for(var o=0,i=e.children.length;o<i;++o){var a=e.children[o],s=t[a.name+"_asArray"];if(s)for(var u=0,l=s.length;u<l;++u){var f=s[u];r(e.properties,t,f),n(a,f)}}}return{run:function(t){if(null===t||"object"!==Rn(t))return t;if(t.Period_asArray&&"period"in e)for(var r=e.period,o=t.Period_asArray,i=0,a=o.length;i<a;++i){var s=o[i];if(n(r,s),"adaptationset"in e){var u=s.AdaptationSet_asArray;if(u)for(var l=e.adaptationset,f=0,c=u.length;f<c;++f)n(l,u[f])}}return t}}}wn.__dashjs_factory_name="ObjectIron";var Nn=T.getClassFactory(wn),On=function(e){void 0===(e=e||{}).escapeMode&&(e.escapeMode=!0),void 0===e.attributePrefix&&(e.attributePrefix="_"),e.arrayAccessForm=e.arrayAccessForm||"none",e.emptyNodeForm=e.emptyNodeForm||"text",void 0===e.enableToStringFunc&&(e.enableToStringFunc=!0),e.arrayAccessFormPaths=e.arrayAccessFormPaths||[],void 0===e.skipEmptyTextNodesForObj&&(e.skipEmptyTextNodesForObj=!0),void 0===e.stripWhitespaces&&(e.stripWhitespaces=!0),e.datetimeAccessFormPaths=e.datetimeAccessFormPaths||[],void 0===e.useDoubleQuotes&&(e.useDoubleQuotes=!1),e.xmlElementsFilter=e.xmlElementsFilter||[],e.jsonPropertiesFilter=e.jsonPropertiesFilter||[],void 0===e.keepCData&&(e.keepCData=!1),void 0===e.ignoreRoot&&(e.ignoreRoot=!1);function t(e){var t=e.localName;return null==t&&(t=e.baseName),null!=t&&""!=t||(t=e.nodeName),t}function r(e){return"string"==typeof e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):e}function n(e,t,r,n){for(var o=0;o<e.length;o++){var i=e[o];if("string"==typeof i){if(i==n)break}else if(i instanceof RegExp){if(i.test(n))break}else if("function"==typeof i&&i(t,r,n))break}return o!=e.length}function o(t,r,o){"property"===e.arrayAccessForm&&(t[r]instanceof Array?t[r+"_asArray"]=t[r]:t[r+"_asArray"]=[t[r]]),!(t[r]instanceof Array)&&e.arrayAccessFormPaths.length>0&&n(e.arrayAccessFormPaths,t,r,o)&&(t[r]=[t[r]])}function i(e){var t=e.split(/[-T:+Z]/g),r=new Date(t[0],t[1]-1,t[2]),n=t[5].split(".");if(r.setHours(t[3],t[4],n[0]),n.length>1&&r.setMilliseconds(n[1]),t[6]&&t[7]){var o=60*t[6]+Number(t[7]);o=0+("-"==(/\d\d-\d\d:\d\d$/.test(e)?"-":"+")?-1*o:o),r.setMinutes(r.getMinutes()-o-r.getTimezoneOffset())}else-1!==e.indexOf("Z",e.length-1)&&(r=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds())));return r}function a(t,r,o,i){return!(1==r&&e.xmlElementsFilter.length>0)||n(e.xmlElementsFilter,t,o,i)}function s(r,u){if(9==r.nodeType){for(var l=new Object,f=r.childNodes,c=0;c<f.length;c++)1==(p=f[c]).nodeType&&(e.ignoreRoot?l=s(p):(l={})[m=t(p)]=s(p));return l}if(1==r.nodeType){(l=new Object).__cnt=0;var d=[];for(f=r.childNodes,c=0;c<f.length;c++){var p,m=t(p=f[c]);if(8!=p.nodeType){var h=u+"."+m;if(a(l,p.nodeType,m,h))if(l.__cnt++,null==l[m]){var g=s(p,h);("#text"!=m||/[^\s]/.test(g))&&((_={})[m]=g,d.push(_)),l[m]=g,o(l,m,h)}else{var _;null!=l[m]&&(l[m]instanceof Array||(l[m]=[l[m]],o(l,m,h))),g=s(p,h),("#text"!=m||/[^\s]/.test(g))&&((_={})[m]=g,d.push(_)),l[m][l[m].length]=g}}}l.__children=d;for(var v=t(r),y=0;y<r.attributes.length;y++){var E=r.attributes[y];l.__cnt++;for(var b=E.value,T=0,A=e.matchers.length;T<A;T++){var S=e.matchers[T];S.test(E,v)&&(b=S.converter(E.value))}l[e.attributePrefix+E.name]=b}var I=function(e){return e.prefix}(r);return null!=I&&""!=I&&(l.__cnt++,l.__prefix=I),null!=l["#text"]&&(l.__text=l["#text"],l.__text instanceof Array&&(l.__text=l.__text.join("\n")),e.stripWhitespaces&&(l.__text=l.__text.trim()),delete l["#text"],"property"==e.arrayAccessForm&&delete l["#text_asArray"],l.__text=function(t,r,o){if(e.datetimeAccessFormPaths.length>0){var a=o.split(".#")[0];return n(e.datetimeAccessFormPaths,t,r,a)?i(t):t}return t}(l.__text,m,u+"."+m)),null!=l["#cdata-section"]&&(l.__cdata=l["#cdata-section"],delete l["#cdata-section"],"property"==e.arrayAccessForm&&delete l["#cdata-section_asArray"]),0==l.__cnt&&"text"==e.emptyNodeForm?l="":1==l.__cnt&&null!=l.__text?l=l.__text:1!=l.__cnt||null==l.__cdata||e.keepCData?l.__cnt>1&&null!=l.__text&&e.skipEmptyTextNodesForObj&&(e.stripWhitespaces&&""==l.__text||""==l.__text.trim())&&delete l.__text:l=l.__cdata,delete l.__cnt,!e.enableToStringFunc||null==l.__text&&null==l.__cdata||(l.toString=function(){return(null!=this.__text?this.__text:"")+(null!=this.__cdata?this.__cdata:"")}),l}if(3==r.nodeType||4==r.nodeType)return r.nodeValue}function u(t,n,o,i){var a="<"+(null!=t&&null!=t.__prefix?t.__prefix+":":"")+n;if(null!=o)for(var s=0;s<o.length;s++){var u=o[s],l=t[u];e.escapeMode&&(l=r(l)),a+=" "+u.substr(e.attributePrefix.length)+"=",e.useDoubleQuotes?a+='"'+l+'"':a+="'"+l+"'"}return a+(i?"/>":">")}function l(e,t){return"</"+(null!=e.__prefix?e.__prefix+":":"")+t+">"}function f(t,r){return"property"==e.arrayAccessForm&&(o="_asArray",-1!==(n=r.toString()).indexOf(o,n.length-o.length))||0==r.toString().indexOf(e.attributePrefix)||0==r.toString().indexOf("__")||t[r]instanceof Function;var n,o}function c(e){var t=0;if(e instanceof Object)for(var r in e)f(e,r)||t++;return t}function d(t,r,o){return 0==e.jsonPropertiesFilter.length||""==o||n(e.jsonPropertiesFilter,t,r,o)}function p(t){var r=[];if(t instanceof Object)for(var n in t)-1==n.toString().indexOf("__")&&0==n.toString().indexOf(e.attributePrefix)&&r.push(n);return r}function m(t){var n="";return t instanceof Object?n+=function(t){var n="";return null!=t.__cdata&&(n+="<![CDATA["+t.__cdata+"]]>"),null!=t.__text&&(e.escapeMode?n+=r(t.__text):n+=t.__text),n}(t):null!=t&&(e.escapeMode?n+=r(t):n+=t),n}function h(e,t){return""===e?t:e+"."+t}function g(e,t,r,n){var o="";if(0==e.length)o+=u(e,t,r,!0);else for(var i=0;i<e.length;i++)o+=u(e[i],t,p(e[i]),!1),o+=_(e[i],h(n,t)),o+=l(e[i],t);return o}function _(e,t){var r="";if(c(e)>0)for(var n in e)if(!f(e,n)&&(""==t||d(e,n,h(t,n)))){var o=e[n],i=p(o);null==o||null==o?r+=u(o,n,i,!0):o instanceof Object?o instanceof Array?r+=g(o,n,i,t):o instanceof Date?(r+=u(o,n,i,!1),r+=o.toISOString(),r+=l(o,n)):c(o)>0||null!=o.__text||null!=o.__cdata?(r+=u(o,n,i,!1),r+=_(o,h(t,n)),r+=l(o,n)):r+=u(o,n,i,!0):(r+=u(o,n,i,!1),r+=m(o),r+=l(o,n))}return r+m(e)}this.parseXmlString=function(e){var t;if(window.ActiveXObject||window,void 0===e)return null;if(window.DOMParser){var r=new window.DOMParser;try{(t=r.parseFromString(e,"text/xml")).getElementsByTagNameNS("*","parsererror").length>0&&(t=null)}catch(e){t=null}}else 0==e.indexOf("<?")&&(e=e.substr(e.indexOf("?>")+2)),(t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e);return t},this.asArray=function(e){return void 0===e||null==e?[]:e instanceof Array?e:[e]},this.toXmlDateTime=function(e){return e instanceof Date?e.toISOString():"number"==typeof e?new Date(e).toISOString():null},this.asDateTime=function(e){return"string"==typeof e?i(e):e},this.xml2json=function(e){return s(e)},this.xml_str2json=function(e){var t=this.parseXmlString(e);return null!=t?this.xml2json(t):null},this.json2xml_str=function(e){return _(e,"")},this.json2xml=function(e){var t=this.json2xml_str(e);return this.parseXmlString(t)},this.getVersion=function(){return"1.2.0"}};function Dn(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)}}var Cn=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._test=t,this._converter=r}var t,r;return t=e,(r=[{key:"test",get:function(){return this._test}},{key:"converter",get:function(){return this._converter}}])&&Dn(t.prototype,r),e}();function Pn(e){return Pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pn(e)}function Ln(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mn(e,t){return Mn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Mn(e,t)}function xn(e,t){return!t||"object"!==Pn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Fn(e){return Fn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Fn(e)}var kn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mn(e,t)}(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=Fn(t);if(r){var o=Fn(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return xn(this,e)});function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),n.call(this,(function(e,t){var r,n=(Ln(r={},B.MPD,[B.ID,B.PROFILES]),Ln(r,B.PERIOD,[B.ID]),Ln(r,B.BASE_URL,[B.SERVICE_LOCATION,B.BYTE_RANGE]),Ln(r,B.SEGMENT_BASE,[B.INDEX_RANGE]),Ln(r,B.INITIALIZATION,[B.RANGE]),Ln(r,B.REPRESENTATION_INDEX,[B.RANGE]),Ln(r,B.SEGMENT_LIST,[B.INDEX_RANGE]),Ln(r,B.BITSTREAM_SWITCHING,[B.RANGE]),Ln(r,B.SEGMENT_URL,[B.MEDIA_RANGE,B.INDEX_RANGE]),Ln(r,B.SEGMENT_TEMPLATE,[B.INDEX_RANGE,B.MEDIA,B.INDEX,B.INITIALIZATION_MINUS,B.BITSTREAM_SWITCHING_MINUS]),Ln(r,B.ASSET_IDENTIFIER,[B.VALUE,B.ID]),Ln(r,B.EVENT_STREAM,[B.VALUE]),Ln(r,B.ADAPTATION_SET,[B.PROFILES,B.MIME_TYPE,B.SEGMENT_PROFILES,B.CODECS,B.CONTENT_TYPE]),Ln(r,B.FRAME_PACKING,[B.VALUE,B.ID]),Ln(r,B.AUDIO_CHANNEL_CONFIGURATION,[B.VALUE,B.ID]),Ln(r,B.CONTENT_PROTECTION,[B.VALUE,B.ID]),Ln(r,B.ESSENTIAL_PROPERTY,[B.VALUE,B.ID]),Ln(r,B.SUPPLEMENTAL_PROPERTY,[B.VALUE,B.ID]),Ln(r,B.INBAND_EVENT_STREAM,[B.VALUE,B.ID]),Ln(r,B.ACCESSIBILITY,[B.VALUE,B.ID]),Ln(r,B.ROLE,[B.VALUE,B.ID]),Ln(r,B.RATING,[B.VALUE,B.ID]),Ln(r,B.VIEWPOINT,[B.VALUE,B.ID]),Ln(r,B.CONTENT_COMPONENT,[B.CONTENT_TYPE]),Ln(r,B.REPRESENTATION,[B.ID,B.DEPENDENCY_ID,B.MEDIA_STREAM_STRUCTURE_ID]),Ln(r,B.SUBSET,[B.ID]),Ln(r,B.METRICS,[B.METRICS_MINUS]),Ln(r,B.REPORTING,[B.VALUE,B.ID]),r);if(n.hasOwnProperty(t)){var o=n[t];return void 0!==o&&o.indexOf(e.name)>=0}return!1}),(function(e){return String(e)}))}return o}(Cn);function Un(e){return Un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Un(e)}function Bn(e,t){return Bn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Bn(e,t)}function qn(e,t){return!t||"object"!==Un(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Gn(e){return Gn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Gn(e)}var jn=/^([-])?P(([\d.]*)Y)?(([\d.]*)M)?(([\d.]*)D)?T?(([\d.]*)H)?(([\d.]*)M)?(([\d.]*)S)?/,zn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bn(e,t)}(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=Gn(t);if(r){var o=Gn(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return qn(this,e)});function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),n.call(this,(function(e){for(var t=[B.MIN_BUFFER_TIME,B.MEDIA_PRESENTATION_DURATION,B.MINIMUM_UPDATE_PERIOD,B.TIMESHIFT_BUFFER_DEPTH,B.MAX_SEGMENT_DURATION,B.MAX_SUBSEGMENT_DURATION,B.SUGGESTED_PRESENTATION_DELAY,B.START,z.START_TIME,B.DURATION],r=t.length,n=0;n<r;n++)if(e.nodeName===t[n])return jn.test(e.value);return!1}),(function(e){var t=jn.exec(e),r=31536e3*parseFloat(t[3]||0)+2592e3*parseFloat(t[5]||0)+86400*parseFloat(t[7]||0)+3600*parseFloat(t[9]||0)+60*parseFloat(t[11]||0)+parseFloat(t[13]||0);return void 0!==t[1]&&(r=-r),r}))}return o}(Cn);function Hn(e){return Hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hn(e)}function Yn(e,t){return Yn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Yn(e,t)}function Vn(e,t){return!t||"object"!==Hn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Wn(e){return Wn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Wn(e)}var Xn=/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2})(?::([0-9]*)(\.[0-9]*)?)?(?:([+-])([0-9]{2})(?::?)([0-9]{2}))?/,Kn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yn(e,t)}(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=Wn(t);if(r){var o=Wn(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return Vn(this,e)});function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),n.call(this,(function(e){return Xn.test(e.value)}),(function(e){var t,r=Xn.exec(e);if(t=Date.UTC(parseInt(r[1],10),parseInt(r[2],10)-1,parseInt(r[3],10),parseInt(r[4],10),parseInt(r[5],10),r[6]&&parseInt(r[6],10)||0,r[7]&&1e3*parseFloat(r[7])||0),r[9]&&r[10]){var n=60*parseInt(r[9],10)+parseInt(r[10],10);t+=("+"===r[8]?-1:1)*n*60*1e3}return new Date(t)}))}return o}(Cn);function Qn(e){return Qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qn(e)}function $n(e,t){return $n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$n(e,t)}function Zn(e,t){return!t||"object"!==Qn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Jn(e){return Jn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Jn(e)}var eo=/^[-+]?[0-9]+[.]?[0-9]*([eE][-+]?[0-9]+)?$/,to=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$n(e,t)}(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=Jn(t);if(r){var o=Jn(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return Zn(this,e)});function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),n.call(this,(function(e){return eo.test(e.value)}),(function(e){return parseFloat(e)}))}return o}(Cn),ro=r(3973),no=r.n(ro);function oo(e){return oo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oo(e)}function io(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ao(e,t){return ao=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ao(e,t)}function so(e,t){return!t||"object"!==oo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function uo(e){return uo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},uo(e)}var lo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ao(e,t)}(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=uo(t);if(r){var o=uo(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return so(this,e)});function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),n.call(this,(function(e,t){var r,n=(io(r={},B.ADAPTATION_SET,[B.LANG]),io(r,B.REPRESENTATION,[B.LANG]),io(r,B.CONTENT_COMPONENT,[B.LANG]),io(r,B.LABEL,[B.LANG]),io(r,B.GROUP_LABEL,[B.LANG]),r);if(n.hasOwnProperty(t)){var o=n[t];return void 0!==o&&o.indexOf(e.name)>=0}return!1}),(function(e){var t=no()(e);return void 0!==t?t:String(e)}))}return o}(Cn);function fo(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)}}var co=function(){function e(t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._name=t,this._merge=(r=t)&&r.length&&r.charAt(0)===r.charAt(0).toUpperCase()}var t,r;return t=e,(r=[{key:"name",get:function(){return this._name}},{key:"merge",get:function(){return this._merge}}])&&fo(t.prototype,r),e}();function po(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)}}var mo=function(){function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._name=t||"",this._properties=[],this._children=n||[],Array.isArray(r)&&r.forEach((function(e){o._properties.push(new co(e))}))}var t,r;return t=e,(r=[{key:"name",get:function(){return this._name}},{key:"children",get:function(){return this._children}},{key:"properties",get:function(){return this._properties}}])&&po(t.prototype,r),e}();function ho(e){return ho="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ho(e)}function go(e,t){return go=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},go(e,t)}function _o(e,t){return!t||"object"!==ho(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function vo(e){return vo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},vo(e)}var yo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&go(e,t)}(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=vo(t);if(r){var o=vo(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return _o(this,e)});function o(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var e=[B.PROFILES,B.WIDTH,B.HEIGHT,B.SAR,B.FRAMERATE,B.AUDIO_SAMPLING_RATE,B.MIME_TYPE,B.SEGMENT_PROFILES,B.CODECS,B.MAXIMUM_SAP_PERIOD,B.START_WITH_SAP,B.MAX_PLAYOUT_RATE,B.CODING_DEPENDENCY,B.SCAN_TYPE,B.FRAME_PACKING,B.AUDIO_CHANNEL_CONFIGURATION,B.CONTENT_PROTECTION,B.ESSENTIAL_PROPERTY,B.ESSENTIAL_PROPERTY+"_asArray",B.SUPPLEMENTAL_PROPERTY,B.INBAND_EVENT_STREAM];return n.call(this,B.ADAPTATION_SET,e,[new mo(B.REPRESENTATION,e,[new mo(B.SUB_REPRESENTATION,e)])])}return o}(mo);function Eo(e){return Eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Eo(e)}function bo(e,t){return bo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},bo(e,t)}function To(e,t){return!t||"object"!==Eo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ao(e){return Ao=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ao(e)}var So=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bo(e,t)}(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=Ao(t);if(r){var o=Ao(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return To(this,e)});function o(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var e=[B.SEGMENT_BASE,B.SEGMENT_TEMPLATE,B.SEGMENT_LIST];return n.call(this,B.PERIOD,e,[new mo(B.ADAPTATION_SET,e,[new mo(B.REPRESENTATION,e)])])}return o}(mo);function Io(e){e=e||{};var t,r,n,o,i,a=this.context,s=e.debug;return t={parse:function(e){var t,n=window.performance.now();if(!(t=o.xml_str2json(e)))throw new Error("parsing the manifest failed");var a=window.performance.now();t.Patch?((t=t.Patch).add_asArray&&t.add_asArray.forEach((function(e){return i.run(e)})),t.replace_asArray&&t.replace_asArray.forEach((function(e){return i.run(e)}))):(t=t.MPD,i.run(t));var s=window.performance.now();return r.info("Parsing complete: ( xml2json: "+(a-n).toPrecision(3)+"ms, objectiron: "+(s-a).toPrecision(3)+"ms, total: "+((s-n)/1e3).toPrecision(3)+"s)"),t.protocol="DASH",t},getMatchers:function(){return n},getIron:function(){return i}},r=s.getLogger(t),n=[new zn,new Kn,new to,new lo,new kn],o=new On({escapeMode:!1,attributePrefix:"",arrayAccessForm:"property",emptyNodeForm:"object",stripWhitespaces:!1,enableToStringFunc:!0,ignoreRoot:!1,matchers:n}),i=Nn(a).create({adaptationset:new yo,period:new So}),t}Io.__dashjs_factory_name="DashParser";var Ro=T.getClassFactory(Io);function wo(e){e=e||{};var r,n,o,i,a,s,u,l,f,c,d,p,h,g,_=this.context,v=e.manifestLoader,y=e.mediaPlayerModel,E=e.abrController,b=e.playbackController,T=e.adapter,A=e.dashMetrics,S=e.timelineConverter,I=e.offlineStoreController,R=e.id,w=e.eventBus,N=e.errHandler,O=e.events,D=e.errors,C=e.settings,P=e.debug,L=e.manifestUpdater,M=e.baseURLController,x=e.segmentBaseController,F=e.constants,k=e.dashConstants,U=e.urlUtils;function B(){return l}function q(e){if(!f&&!e.error)try{u=e.manifest}catch(e){g=t.OFFLINE_STATUS_ERROR,N.error({code:m.OFFLINE_ERROR,message:e.message,data:{id:R,status:g}})}}function G(e){e.id===R&&(e.error||null===R?(g=t.OFFLINE_STATUS_ERROR,N.error({code:m.OFFLINE_ERROR,message:"Cannot start download ",data:{id:R,status:g,error:e.error}})):(g=t.OFFLINE_STATUS_STARTED,I.setDownloadingStatus(R,g).then((function(){w.trigger(O.OFFLINE_RECORD_STARTED,{id:R,message:"Downloading started for this stream !"})}))))}function j(e,t,r){p[e.getStreamInfo().id]={downloaded:t,available:r};var n,o=0,i=0;for(var a in p)p.hasOwnProperty(a)&&(null===p[a]?n=!0:(o+=p[a].downloaded,i+=p[a].available));n||(h=o/i,I.getManifestById(R).then((function(e){return e.progress=h,W(e)})))}function z(e){e.id===R&&(e.error||null===R?(g=t.OFFLINE_STATUS_ERROR,N.error({code:m.OFFLINE_ERROR,message:"Error finishing download ",data:{id:R,status:g,error:e.error}})):(g=t.OFFLINE_STATUS_FINISHED,I.setDownloadingStatus(R,g).then((function(){w.trigger(O.OFFLINE_RECORD_FINISHED,{id:R,message:"Downloading has been successfully completed for this stream !"}),$()}))))}function H(e){e.id===R&&(c=e.representations).length>0&&d.parse(a,c).then((function(e){if(null===e||null===R)throw"falling parsing offline manifest";I.getManifestById(R).then((function(t){return t.manifest=e,W(t)})).then((function(){for(var e=0,t=s.length;e<t;e++)s[e].startOfflineStreamProcessors()}))})).catch((function(e){throw e}))}function Y(){try{T.updatePeriods(u),M.initialize(u);var e=T.getStreamsInfo();0===e.length&&(g=t.OFFLINE_STATUS_ERROR,N.error({code:m.OFFLINE_ERROR,message:"Cannot download - no streams",data:{id:R,status:g}}));for(var r=0,o=e.length;r<o;r++){var i=e[r],a=Tn(_).create({id:R,callbacks:{started:G,progression:j,finished:z,updateManifestNeeded:H},constants:F,dashConstants:k,eventBus:w,events:O,errors:D,settings:C,debug:P,errHandler:N,mediaPlayerModel:y,abrController:E,playbackController:b,dashMetrics:A,baseURLController:M,timelineConverter:S,adapter:T,segmentBaseController:x,offlineStoreController:I});s.push(a),a.initialize(i),p[i.id]=null}f=!0}catch(e){n.info(e),g=t.OFFLINE_STATUS_ERROR,N.error({code:m.OFFLINE_ERROR,message:e.message,data:{id:R,status:g,error:e.error}})}}function V(e){return I.createFragmentStore(e)}function W(e){return I.updateOfflineManifest(e)}function X(e){return w.off(O.ORIGINAL_MANIFEST_LOADED,X,r),a=e.originalManifest,u.type===k.DYNAMIC?(g=t.OFFLINE_STATUS_ERROR,N.error({code:m.OFFLINE_ERROR,message:"Cannot handle DYNAMIC manifest",data:{id:R,status:g}}),void n.error("Cannot handle DYNAMIC manifest")):u.Period_asArray.length>1?(g=t.OFFLINE_STATUS_ERROR,N.error({code:m.OFFLINE_ERROR,message:"MultiPeriod manifest are not yet supported",data:{id:R,status:g}}),void n.error("MultiPeriod manifest are not yet supported")):(Y(),s.forEach((function(e){e.getMediaInfos()})),void w.trigger(O.STREAMS_COMPOSED))}function K(e){for(var t=0;t<s.length;t++)s[t].initializeAllMediasInfoList(e)}function Q(){if(null!==R&&B()){for(var e=0,r=s.length;e<r;e++)s[e].stopOfflineStreamProcessors();s=[],f=!1,g=t.OFFLINE_STATUS_STOPPED,I.setDownloadingStatus(R,g).then((function(){w.trigger(O.OFFLINE_RECORD_STOPPED,{sender:this,id:R,status:g,message:"Downloading has been stopped for this stream !"}),l=!1}))}}function $(){for(var e=0,t=s.length;e<t;e++)s[e].reset();d=null,l=!1,s=[],w.off(O.MANIFEST_UPDATED,q,r),w.off(O.ORIGINAL_MANIFEST_LOADED,X,r),w.on(O.ERROR,Z,r)}function Z(e){e.error.code!==m.INDEXEDDB_QUOTA_EXCEED_ERROR&&e.error.code!==m.INDEXEDDB_INVALID_STATE_ERROR||Q()}return r={reset:function(){B()&&$(),M.reset(),L.reset()},getId:function(){return R},getOfflineUrl:function(){return i},getManifestUrl:function(){return o},getStatus:function(){return g},setInitialState:function(e){i=e.url,h=e.progress,o=e.originalUrl,g=e.status},initDownload:function(){v.load(o),l=!0},downloadFromUrl:function(e){return o=e,i="".concat(t.OFFLINE_SCHEME,"://").concat(R),g=t.OFFLINE_STATUS_CREATED,w.on(O.MANIFEST_UPDATED,q,r),w.on(O.ORIGINAL_MANIFEST_LOADED,X,r),w.on(O.ERROR,Z,r),n={fragmentStore:R,status:g,manifestId:R,url:i,originalURL:e},I.createOfflineManifest(n);var n},startDownload:function(e){try{var r=function(e){var t={};return t[F.VIDEO]=[],t[F.AUDIO]=[],t[F.TEXT]=[],e.forEach((function(e){e.bitrateList.forEach((function(r){t[e.type].push(r.id)}))})),t}(e);I.saveSelectedRepresentations(R,r).then((function(){return V(R)})).then((function(){return e=r,(d=In(_).create({manifestId:R,allMediaInfos:e,debug:P,dashConstants:k,constants:F,urlUtils:U})).parse(a).then((function(e){return null!==e?I.getManifestById(R).then((function(t){return t.originalURL=u.url,t.originalManifest=a,t.manifest=e,W(t)})):Promise.reject("falling parsing offline manifest")})).catch((function(e){return Promise.reject(e)}));var e})).then((function(){K(r)}))}catch(e){g=t.OFFLINE_STATUS_ERROR,N.error({code:m.OFFLINE_ERROR,message:e.message,data:{id:R,status:g}})}},stopDownload:Q,resumeDownload:function(){var e;B()||(l=!0,I.getManifestById(R).then((function(t){var r=Ro(_).create({debug:P});return u=r.parse(t.originalManifest),Y(),e=t.selected,w.trigger(O.STREAMS_COMPOSED),V(R)})).then((function(){K(e)})))},deleteDownload:function(){Q()},getDownloadProgression:function(){return Math.round(100*h)},isDownloading:B,resetDownload:$},n=P.getLogger(r),L.initialize(),s=[],l=!1,f=!1,p={},h=0,g=void 0,r}wo.__dashjs_factory_name="OfflineDownload";var No=dashjs.FactoryMaker.getClassFactory(wo);function Oo(e){e=e||{};var t,r,n=this.context,o=e.urlUtils,i=e.constants,a=e.dashConstants;return r=s(n).getInstance(),t={load:function(e){if(e.request){var t=(u=e.request.url,o.removeHostname(u).split("/")[0]);if(t%1==0)if(e.request.mediaType===i.AUDIO||e.request.mediaType===i.VIDEO||e.request.mediaType===i.TEXT||e.request.mediaType===i.MUXED||e.request.mediaType===i.IMAGE){var n="InitializationSegment"===e.request.type?"init":e.request.index,s=e.request.representationId+"_"+n;r.getFragmentByKey(t,s).then((function(t){e.success(t,null,e.request.url,i.ARRAY_BUFFER)})).catch((function(t){e.error(t)}))}else e.request.type===a.MPD&&r.getManifestById(t).then((function(t){r.createFragmentStore(t.fragmentStore),e.success(t.manifest,null,e.request.url,i.XML)})).catch((function(t){e.error(e.request,404,t)}));else e.error(e.request,null,"MediaType can not be found")}var u},abort:function(){}},t}Oo.__dashjs_factory_name="IndexDBOfflineLoader";var Do=dashjs.FactoryMaker.getClassFactory(Oo);function Co(){return{getRegex:function(){return t.OFFLINE_URL_REGEX},isRelative:function(){return!1},removeHostname:function(e){return e.replace(/(^\w+:|^)\/\//,"")},resolve:function(e,t){return"/"!==t.charAt(t.length-1)&&(t=t.concat("/")),t+e}}}Co.__dashjs_factory_name="OfflineUrlUtils";var Po=dashjs.FactoryMaker.getSingletonFactory(Co);function Lo(e){return Lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lo(e)}function Mo(e,t){return Mo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Mo(e,t)}function xo(e,t){return!t||"object"!==Lo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Fo(e){return Fo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Fo(e)}var ko=new(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mo(e,t)}(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=Fo(t);if(r){var o=Fo(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return xo(this,e)});function o(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(e=n.call(this)).OFFLINE_RECORD_LOADEDMETADATA="public_offlineRecordLoadedmetadata",e.OFFLINE_RECORD_STARTED="public_offlineRecordStarted",e.OFFLINE_RECORD_STOPPED="public_offlineRecordStopped",e.OFFLINE_RECORD_FINISHED="public_offlineRecordFinished",e}return o}(S)),Uo=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=null,this.url=null,this.originalUrl=null,this.status=null,this.progress=null};function Bo(e){var r,n,o,i,a,s=this.context,u=e.errHandler,l=e.events,f=e.errors,c=e.settings,d=e.eventBus,p=e.debug,m=e.manifestLoader,h=e.manifestModel,_=e.mediaPlayerModel,v=e.abrController,y=e.playbackController,E=e.dashMetrics,b=e.timelineConverter,T=e.segmentBaseController,A=e.adapter,S=e.manifestUpdater,I=e.baseURLController,R=e.schemeLoaderFactory,w=e.constants,N=e.dashConstants,O=e.urlUtils;function D(e){return n.find((function(t){return t.getId()===e}))}function C(e){var t;return(t=D(e))||(t=No(s).create({id:e,eventBus:d,events:l,errors:f,settings:c,manifestLoader:m,manifestModel:h,mediaPlayerModel:_,manifestUpdater:S,baseURLController:I,abrController:v,playbackController:y,adapter:A,dashMetrics:E,timelineConverter:b,errHandler:u,segmentBaseController:T,offlineStoreController:i,debug:p,constants:w,dashConstants:N,urlUtils:O}),n.push(t)),t}function P(e){return new Promise((function(t,o){var a=D(e),s=!1;if(a){a.isDownloading()&&(s=!0,d.on(l.OFFLINE_RECORD_STOPPED,(function n(){return d.off(l.OFFLINE_RECORD_STOPPED,n,r),i.deleteDownloadById(e).then((function(){t()})).catch((function(e){o(e)}))}),r)),a.deleteDownload();var u=n.indexOf(a);n.splice(u,1)}s||t()}))}function L(){n.forEach((function(e){e.resetDownload()}))}return r={loadRecordsFromStorage:function(){return new Promise((function(e,r){i.getAllManifests().then((function(r){r.manifests.forEach((function(e){!function(e){var r=D(e.manifestId);if(!r){r=C(e.manifestId);var n=e.status;n===t.OFFLINE_STATUS_STARTED&&(n=t.OFFLINE_STATUS_STOPPED),r.setInitialState({url:e.url,progress:e.progress,originalUrl:e.originalURL,status:n})}}(e)})),e()})).catch((function(e){o.error("Failed to load downloads "+e),r(e)}))}))},createRecord:function(e){return new Promise((function(t,r){var n=(new Date).getTime(),i=C(n);i.downloadFromUrl(e).then((function(){i.initDownload(),t(n)})).catch((function(e){o.error("Failed to download "+e),P(n).then((function(){r(e)}))}))}))},startRecord:function(e,t){var r=D(e);r&&r.startDownload(t)},stopRecord:function(e){var t=D(e);t&&t.stopDownload()},resumeRecord:function(e){var t=D(e);t&&t.resumeDownload()},deleteRecord:function(e){return P(e).then((function(){return i.deleteDownloadById(e)}))},getRecordProgression:function(e){var t=D(e);return t?t.getDownloadProgression():0},getAllRecords:function(){var e=[];return n.forEach((function(t){var r=new Uo;r.id=t.getId(),r.progress=t.getDownloadProgression(),r.url=t.getOfflineUrl(),r.originalUrl=t.getManifestUrl(),r.status=t.getStatus(),e.push(r)})),e},resetRecords:L,reset:function(){L(),R.unregisterLoader(t.OFFLINE_SCHEME)}},o=p.getLogger(r),i=g(s).create({eventBus:e.eventBus,errHandler:u}),a=Po(s).getInstance(),O.registerUrlRegex(a.getRegex(),a),R.registerLoader(t.OFFLINE_SCHEME,Do),n=[],r}Bo.__dashjs_factory_name="OfflineController";var qo=dashjs.FactoryMaker.getClassFactory(Bo);qo.events=ko,qo.errors=m,dashjs.FactoryMaker.updateClassFactory(Bo.__dashjs_factory_name,qo);var Go=qo,jo="undefined"!=typeof window&&window||r.g,zo=jo.dashjs;zo||(zo=jo.dashjs={}),zo.OfflineController=Go;var Ho=zo}(),n.default}()}));
//# sourceMappingURL=dash.offline.min.js.map