var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); /*! For license information please see Support.Main.min.js.LICENSE.txt */ !function(){var e,t={7046:function(e,t){var n={parseBuffer:function(e){return new r(e).parse()},addBoxProcessor:function(e,t){"string"==typeof e&&"function"==typeof t&&(i.prototype._boxProcessors[e]=t)},createFile:function(){return new r},createBox:function(e,t,n){var r=i.create(e);return t&&t.append(r,n),r},createFullBox:function(e,t,r){var i=n.createBox(e,t,r);return i.version=0,i.flags=0,i},Utils:{}};n.Utils.dataViewToString=function(e,t){var n=t||"utf-8";if("undefined"!=typeof TextDecoder)return new TextDecoder(n).decode(e);var r=[],i=0;if("utf-8"===n)for(;i>6),t.push(128|63&r)):r<65536?(t.push(224|r>>12),t.push(128|63&r>>6),t.push(128|63&r)):(t.push(240|r>>18),t.push(128|63&r>>12),t.push(128|63&r>>6),t.push(128|63&r))}return t},n.Utils.appendBox=function(e,t,n){if(t._offset=e._cursor.offset,t._root=e._root?e._root:e,t._raw=e._raw,t._parent=e,-1!==n)if(null!=n){var r,i=-1;if("number"==typeof n)i=n;else{if("string"==typeof n)r=n;else{if("object"!=typeof n||!n.type)return void e.boxes.push(t);r=n.type}for(var a=0;a>3,t},i.prototype._readUint=function(e){var t,n,r=null,i=this._cursor.offset-this._raw.byteOffset;switch(e){case 8:r=this._raw.getUint8(i);break;case 16:r=this._raw.getUint16(i);break;case 24:r=((t=this._raw.getUint16(i))<<8)+(n=this._raw.getUint8(i+2));break;case 32:r=this._raw.getUint32(i);break;case 64:t=this._raw.getUint32(i),n=this._raw.getUint32(i+4),r=t*Math.pow(2,32)+n}return this._cursor.offset+=e>>3,r},i.prototype._readString=function(e){for(var t="",n=0;n0?e:this._raw.byteLength-(this._cursor.offset-this._offset);if(t>0){var n=new Uint8Array(this._raw.buffer,this._cursor.offset,t);return this._cursor.offset+=t,n}return null},i.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?n.Utils.dataViewToString(t):t},i.prototype._readUTF8TerminatedString=function(){var e=this._raw.byteLength-(this._cursor.offset-this._offset),t=null;if(e>0){var r;for(t=new DataView(this._raw.buffer,this._cursor.offset,e),r=0;rthis._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())}},i.prototype._parseFullBox=function(){this.version=this._readUint(8),this.flags=this._readUint(24)},i.prototype._parseContainerBox=function(){for(this.boxes=[];this._cursor.offset-this._raw.byteOffset>3}else this.size+=e>>3},i.prototype._writeUint=function(e,t){if(this._rawo){var n,r,i=this._cursor.offset-this._rawo.byteOffset;switch(e){case 8:this._rawo.setUint8(i,t);break;case 16:this._rawo.setUint16(i,t);break;case 24:n=(16776960&t)>>8,r=255&t,this._rawo.setUint16(i,n),this._rawo.setUint8(i+2,r);break;case 32:this._rawo.setUint32(i,t);break;case 64:r=t-(n=Math.floor(t/Math.pow(2,32)))*Math.pow(2,32),this._rawo.setUint32(i,n),this._rawo.setUint32(i+4,r)}this._cursor.offset+=e>>3}else this.size+=e>>3},i.prototype._writeString=function(e,t){for(var n=0;n>10&31),96+(this.language>>5&31),96+(31&this.language))),this._procField("pre_defined","uint",16)},i.prototype._boxProcessors.mehd=function(){this._procFullBox(),this._procField("fragment_duration","uint",1==this.version?64:32)},i.prototype._boxProcessors.meta=function(){this._procFullBox()},i.prototype._boxProcessors.mfhd=function(){this._procFullBox(),this._procField("sequence_number","uint",32)},i.prototype._boxProcessors.mfro=function(){this._procFullBox(),this._procField("mfra_size","uint",32)},i.prototype._boxProcessors.mp4a=i.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)},i.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)},i.prototype._boxProcessors.payl=function(){this._procField("cue_text","utf8")},i.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)},i.prototype._boxProcessors.prsl=function(){this._procFullBox(),this._procField("group_id","uint",32),this._procField("num_entities_in_group","uint",32),this._procEntries("entities",this.num_entities_in_group,(function(e){this._procEntryField(e,"entity_id","uint",32)})),4096&this.flags&&this._procField("preselection_tag","utf8string"),8192&this.flags&&this._procField("selection_priority","uint",8),16384&this.flags&&this._procField("interleaving_tag","utf8string")},i.prototype._boxProcessors.pssh=function(){this._procFullBox(),this._procFieldArray("SystemID",16,"uint",8),this._procField("DataSize","uint",32),this._procFieldArray("Data",this.DataSize,"uint",8)},i.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)},i.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)},i.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)}))},i.prototype._boxProcessors.smhd=function(){this._procFullBox(),this._procField("balance","uint",16),this._procField("reserved","uint",16)},i.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)}))}))},i.prototype._boxProcessors.stsd=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procSubBoxes("entries",this.entry_count)},i.prototype._boxProcessors.sttg=function(){this._procField("settings","utf8")},i.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)}))},i.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)}))}))},i.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)},i.prototype._boxProcessors.tfdt=function(){this._procFullBox(),this._procField("baseMediaDecodeTime","uint",1==this.version?64:32)},i.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)},i.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))}))},i.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)},i.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)},i.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)}))},i.prototype._boxProcessors["url "]=i.prototype._boxProcessors["urn "]=function(){this._procFullBox(),"urn "===this.type&&this._procField("name","string",-1),this._procField("location","string",-1)},i.prototype._boxProcessors.vlab=function(){this._procField("source_label","utf8")},i.prototype._boxProcessors.vmhd=function(){this._procFullBox(),this._procField("graphicsmode","uint",16),this._procFieldArray("opcolor",3,"uint",16)},i.prototype._boxProcessors.vttC=function(){this._procField("config","utf8")},i.prototype._boxProcessors.vtte=function(){}},8488:function(e,t,n){var r=n(2746);e.exports=r},3104:function(e,t,n){var r=n(7273);e.exports=r},6564:function(e,t,n){var r=n(2445),i=n(3478),a=n(7269),o=r.TypeError;e.exports=function(e){if(i(e))return e;throw o(a(e)+" is not a function")}},5719:function(e,t,n){var r=n(2445),i=n(3478),a=r.String,o=r.TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw o("Can't set "+a(e)+" as a prototype")}},1313:function(e,t,n){var r=n(4486),i=n(6635),a=n(9783),o=r("unscopables"),s=Array.prototype;null==s[o]&&a.f(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}},3855:function(e,t,n){var r=n(2445),i=n(7455),a=r.TypeError;e.exports=function(e,t){if(i(t,e))return e;throw a("Incorrect invocation")}},4482:function(e,t,n){var r=n(2445),i=n(3406),a=r.String,o=r.TypeError;e.exports=function(e){if(i(e))return e;throw o(a(e)+" is not an object")}},3410:function(e,t,n){"use strict";var r=n(2445),i=n(6981),a=n(5633),o=n(2048),s=n(7065),u=n(1977),c=n(9795),l=n(579),d=n(1859),f=n(7172),p=n(2506),h=r.Array;e.exports=function(e){var t=o(e),n=c(this),r=arguments.length,g=r>1?arguments[1]:void 0,v=void 0!==g;v&&(g=i(g,r>2?arguments[2]:void 0));var m,y,b,w,x,S,T=p(t),k=0;if(!T||this==h&&u(T))for(m=l(t),y=n?new this(m):h(m);m>k;k++)S=v?g(t[k],k):t[k],d(y,k,S);else for(x=(w=f(t,T)).next,y=n?new this:[];!(b=a(x,w)).done;k++)S=v?s(w,g,[b.value,k],!0):b.value,d(y,k,S);return y.length=k,y}},6272:function(e,t,n){var r=n(8436),i=n(3088),a=n(579),o=function(e){return function(t,n,o){var s,u=r(t),c=a(u),l=i(o,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},8330:function(e,t,n){var r=n(2445),i=n(3088),a=n(579),o=n(1859),s=r.Array,u=Math.max;e.exports=function(e,t,n){for(var r=a(e),c=i(t,r),l=i(void 0===n?r:n,r),d=s(u(l-c,0)),f=0;c0;)e[r]=e[--r];r!==a++&&(e[r]=n)}return e},s=function(e,t,n,r){for(var i=t.length,a=n.length,o=0,s=0;o0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},1769:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4418:function(e,t,n){var r=n(2445),i=n(1472).f,a=n(8502),o=n(9825),s=n(1680),u=n(4189),c=n(1958);e.exports=function(e,t){var n,l,d,f,p,h=e.target,g=e.global,v=e.stat;if(n=g?r:v?r[h]||s(h,{}):(r[h]||{}).prototype)for(l in t){if(f=t[l],d=e.noTargetGet?(p=i(n,l))&&p.value:n[l],!c(g?l:h+(v?".":"#")+l,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;u(f,d)}(e.sham||d&&d.sham)&&a(f,"sham",!0),o(n,l,f,e)}}},8772:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},6981:function(e,t,n){var r=n(6460),i=n(6564),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:a?a(e,t):function(){return e.apply(t,arguments)}}},5633:function(e){var t=Function.prototype.call;e.exports=t.bind?t.bind(t):function(){return t.apply(t,arguments)}},7698:function(e,t,n){var r=n(9751),i=n(680),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(a,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&o(a,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},6460:function(e){var t=Function.prototype,n=t.bind,r=t.call,i=n&&n.bind(r);e.exports=n?function(e){return e&&i(r,e)}:function(e){return e&&function(){return r.apply(e,arguments)}}},3688:function(e,t,n){var r=n(2445),i=n(3478);e.exports=function(e,t){return arguments.length<2?(n=r[e],i(n)?n:void 0):r[e]&&r[e][t];var n}},2506:function(e,t,n){var r=n(6394),i=n(9984),a=n(3031),o=n(4486)("iterator");e.exports=function(e){if(null!=e)return i(e,o)||i(e,"@@iterator")||a[r(e)]}},7172:function(e,t,n){var r=n(2445),i=n(5633),a=n(6564),o=n(4482),s=n(7269),u=n(2506),c=r.TypeError;e.exports=function(e,t){var n=arguments.length<2?u(e):t;if(a(n))return o(i(n,e));throw c(s(e)+" is not iterable")}},9984:function(e,t,n){var r=n(6564);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},2445:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},680:function(e,t,n){var r=n(6460),i=n(2048),a=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(i(e),t)}},1475:function(e){e.exports={}},1984:function(e,t,n){var r=n(3688);e.exports=r("document","documentElement")},8452:function(e,t,n){var r=n(9751),i=n(8772),a=n(7189);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},6037:function(e,t,n){var r=n(2445),i=n(6460),a=n(8772),o=n(7730),s=r.Object,u=i("".split);e.exports=a((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?u(e,""):s(e)}:s},5409:function(e,t,n){var r=n(6460),i=n(3478),a=n(1447),o=r(Function.toString);i(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),e.exports=a.inspectSource},425:function(e,t,n){var r,i,a,o=n(5057),s=n(2445),u=n(6460),c=n(3406),l=n(8502),d=n(680),f=n(1447),p=n(5913),h=n(1475),g="Object already initialized",v=s.TypeError,m=s.WeakMap;if(o||f.state){var y=f.state||(f.state=new m),b=u(y.get),w=u(y.has),x=u(y.set);r=function(e,t){if(w(y,e))throw new v(g);return t.facade=e,x(y,e,t),t},i=function(e){return b(y,e)||{}},a=function(e){return w(y,e)}}else{var S=p("state");h[S]=!0,r=function(e,t){if(d(e,S))throw new v(g);return t.facade=e,l(e,S,t),t},i=function(e){return d(e,S)?e[S]:{}},a=function(e){return d(e,S)}}e.exports={set:r,get:i,has:a,enforce:function(e){return a(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw v("Incompatible receiver, "+e+" required");return n}}}},1977:function(e,t,n){var r=n(4486),i=n(3031),a=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||o[a]===e)}},3478:function(e){e.exports=function(e){return"function"==typeof e}},9795:function(e,t,n){var r=n(6460),i=n(8772),a=n(3478),o=n(6394),s=n(3688),u=n(5409),c=function(){},l=[],d=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,p=r(f.exec),h=!f.exec(c),g=function(e){if(!a(e))return!1;try{return d(c,l,e),!0}catch(e){return!1}};e.exports=!d||i((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?function(e){if(!a(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return h||!!p(f,u(e))}:g},1958:function(e,t,n){var r=n(8772),i=n(3478),a=/#|\.prototype\./,o=function(e,t){var n=u[s(e)];return n==l||n!=c&&(i(t)?r(t):!!t)},s=o.normalize=function(e){return String(e).replace(a,".").toLowerCase()},u=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},3406:function(e,t,n){var r=n(3478);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},4571:function(e){e.exports=!1},4013:function(e,t,n){var r=n(2445),i=n(3688),a=n(3478),o=n(7455),s=n(1731),u=r.Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return a(t)&&o(t.prototype,u(e))}},6911:function(e,t,n){var r=n(5633),i=n(4482),a=n(9984);e.exports=function(e,t,n){var o,s;i(e);try{if(!(o=a(e,"return"))){if("throw"===t)throw n;return n}o=r(o,e)}catch(e){s=!0,o=e}if("throw"===t)throw n;if(s)throw o;return i(o),n}},5022:function(e,t,n){"use strict";var r,i,a,o=n(8772),s=n(3478),u=n(6635),c=n(3716),l=n(9825),d=n(4486),f=n(4571),p=d("iterator"),h=!1;[].keys&&("next"in(a=[].keys())?(i=c(c(a)))!==Object.prototype&&(r=i):h=!0),null==r||o((function(){var e={};return r[p].call(e)!==e}))?r={}:f&&(r=u(r)),s(r[p])||l(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},3031:function(e){e.exports={}},579:function(e,t,n){var r=n(1276);e.exports=function(e){return r(e.length)}},1226:function(e,t,n){var r=n(9224),i=n(8772);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},1779:function(e,t,n){var r=n(8772),i=n(4486),a=n(4571),o=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),a&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},5057:function(e,t,n){var r=n(2445),i=n(3478),a=n(5409),o=r.WeakMap;e.exports=i(o)&&/native code/.test(a(o))},7501:function(e,t,n){"use strict";var r=n(9751),i=n(6460),a=n(5633),o=n(8772),s=n(577),u=n(1432),c=n(8590),l=n(2048),d=n(6037),f=Object.assign,p=Object.defineProperty,h=i([].concat);e.exports=!f||o((function(){if(r&&1!==f({b:1},f(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=f({},e)[n]||s(f({},t)).join("")!=i}))?function(e,t){for(var n=l(e),i=arguments.length,o=1,f=u.f,p=c.f;i>o;)for(var g,v=d(arguments[o++]),m=f?h(s(v),f(v)):s(v),y=m.length,b=0;y>b;)g=m[b++],r&&!a(p,v,g)||(n[g]=v[g]);return n}:f},6635:function(e,t,n){var r,i=n(4482),a=n(5678),o=n(1769),s=n(1475),u=n(1984),c=n(7189),l=n(5913),d="prototype",f="script",p=l("IE_PROTO"),h=function(){},g=function(e){return"<"+f+">"+e+""},v=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;m="undefined"!=typeof document?document.domain&&r?v(r):(t=c("iframe"),n="java"+f+":",t.style.display="none",u.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F):v(r);for(var i=o.length;i--;)delete m[d][o[i]];return m()};s[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h[d]=i(e),n=new h,h[d]=null,n[p]=e):n=m(),void 0===t?n:a(n,t)}},5678:function(e,t,n){var r=n(9751),i=n(9783),a=n(4482),o=n(8436),s=n(577);e.exports=r?Object.defineProperties:function(e,t){a(e);for(var n,r=o(t),u=s(t),c=u.length,l=0;c>l;)i.f(e,n=u[l++],r[n]);return e}},9783:function(e,t,n){var r=n(2445),i=n(9751),a=n(8452),o=n(4482),s=n(7118),u=r.TypeError,c=Object.defineProperty;t.f=i?c:function(e,t,n){if(o(e),t=s(t),o(n),a)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1472:function(e,t,n){var r=n(9751),i=n(5633),a=n(8590),o=n(4226),s=n(8436),u=n(7118),c=n(680),l=n(8452),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=u(t),l)try{return d(e,t)}catch(e){}if(c(e,t))return o(!i(a.f,e,t),e[t])}},3856:function(e,t,n){var r=n(1015),i=n(1769).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},1432:function(e,t){t.f=Object.getOwnPropertySymbols},3716:function(e,t,n){var r=n(2445),i=n(680),a=n(3478),o=n(2048),s=n(5913),u=n(6206),c=s("IE_PROTO"),l=r.Object,d=l.prototype;e.exports=u?l.getPrototypeOf:function(e){var t=o(e);if(i(t,c))return t[c];var n=t.constructor;return a(n)&&t instanceof n?n.prototype:t instanceof l?d:null}},7455:function(e,t,n){var r=n(6460);e.exports=r({}.isPrototypeOf)},1015:function(e,t,n){var r=n(6460),i=n(680),a=n(8436),o=n(6272).indexOf,s=n(1475),u=r([].push);e.exports=function(e,t){var n,r=a(e),c=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&u(l,n);for(;t.length>c;)i(r,n=t[c++])&&(~o(l,n)||u(l,n));return l}},577:function(e,t,n){var r=n(1015),i=n(1769);e.exports=Object.keys||function(e){return r(e,i)}},8590:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},4987:function(e,t,n){var r=n(6460),i=n(4482),a=n(5719);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return i(n),a(r),t?e(n,r):n.__proto__=r,n}}():void 0)},2516:function(e,t,n){var r=n(2445),i=n(5633),a=n(3478),o=n(3406),s=r.TypeError;e.exports=function(e,t){var n,r;if("string"===t&&a(n=e.toString)&&!o(r=i(n,e)))return r;if(a(n=e.valueOf)&&!o(r=i(n,e)))return r;if("string"!==t&&a(n=e.toString)&&!o(r=i(n,e)))return r;throw s("Can't convert object to primitive value")}},3512:function(e,t,n){var r=n(3688),i=n(6460),a=n(3856),o=n(1432),s=n(4482),u=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(s(e)),n=o.f;return n?u(t,n(e)):t}},1430:function(e,t,n){var r=n(2445);e.exports=r},4792:function(e,t,n){var r=n(9825);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},9825:function(e,t,n){var r=n(2445),i=n(3478),a=n(680),o=n(8502),s=n(1680),u=n(5409),c=n(425),l=n(7698).CONFIGURABLE,d=c.get,f=c.enforce,p=String(String).split("String");(e.exports=function(e,t,n,u){var c,d=!!u&&!!u.unsafe,h=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet,v=u&&void 0!==u.name?u.name:t;i(n)&&("Symbol("===String(v).slice(0,7)&&(v="["+String(v).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!a(n,"name")||l&&n.name!==v)&&o(n,"name",v),(c=f(n)).source||(c.source=p.join("string"==typeof v?v:""))),e!==r?(d?!g&&e[t]&&(h=!0):delete e[t],h?e[t]=n:o(e,t,n)):h?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return i(this)&&d(this).source||u(this)}))},9018:function(e,t,n){var r=n(2445).TypeError;e.exports=function(e){if(null==e)throw r("Can't call method on "+e);return e}},1680:function(e,t,n){var r=n(2445),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},4544:function(e,t,n){var r=n(9783).f,i=n(680),a=n(4486)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},5913:function(e,t,n){var r=n(2126),i=n(4722),a=r("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},1447:function(e,t,n){var r=n(2445),i=n(1680),a="__core-js_shared__",o=r[a]||i(a,{});e.exports=o},2126:function(e,t,n){var r=n(4571),i=n(1447);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},1726:function(e,t,n){var r=n(6460),i=n(524),a=n(4066),o=n(9018),s=r("".charAt),u=r("".charCodeAt),c=r("".slice),l=function(e){return function(t,n){var r,l,d=a(o(t)),f=i(n),p=d.length;return f<0||f>=p?e?"":void 0:(r=u(d,f))<55296||r>56319||f+1===p||(l=u(d,f+1))<56320||l>57343?e?s(d,f):r:e?c(d,f,f+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},1187:function(e,t,n){"use strict";var r=n(2445),i=n(6460),a=2147483647,o=/[^\0-\u007E]/,s=/[.\u3002\uFF0E\uFF61]/g,u="Overflow: input needs wider integers to process",c=r.RangeError,l=i(s.exec),d=Math.floor,f=String.fromCharCode,p=i("".charCodeAt),h=i([].join),g=i([].push),v=i("".replace),m=i("".split),y=i("".toLowerCase),b=function(e){return e+22+75*(e<26)},w=function(e,t,n){var r=0;for(e=n?d(e/700):e>>1,e+=d(e/t);e>455;)e=d(e/35),r+=36;return d(r+36*e/(e+38))},x=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n=55296&&i<=56319&&n=o&&rd((a-s)/x))throw c(u);for(s+=(y-o)*x,o=y,n=0;na)throw c(u);if(r==o){for(var S=s,T=36;;){var k=T<=l?1:T>=l+26?26:T-l;if(S0?n:t)(r)}},1276:function(e,t,n){var r=n(524),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},2048:function(e,t,n){var r=n(2445),i=n(9018),a=r.Object;e.exports=function(e){return a(i(e))}},6189:function(e,t,n){var r=n(2445),i=n(5633),a=n(3406),o=n(4013),s=n(9984),u=n(2516),c=n(4486),l=r.TypeError,d=c("toPrimitive");e.exports=function(e,t){if(!a(e)||o(e))return e;var n,r=s(e,d);if(r){if(void 0===t&&(t="default"),n=i(r,e,t),!a(n)||o(n))return n;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},7118:function(e,t,n){var r=n(6189),i=n(4013);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},7956:function(e,t,n){var r={};r[n(4486)("toStringTag")]="z",e.exports="[object z]"===String(r)},4066:function(e,t,n){var r=n(2445),i=n(6394),a=r.String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return a(e)}},7269:function(e,t,n){var r=n(2445).String;e.exports=function(e){try{return r(e)}catch(e){return"Object"}}},4722:function(e,t,n){var r=n(6460),i=0,a=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++i+a,36)}},1731:function(e,t,n){var r=n(1226);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},4486:function(e,t,n){var r=n(2445),i=n(2126),a=n(680),o=n(4722),s=n(1226),u=n(1731),c=i("wks"),l=r.Symbol,d=l&&l.for,f=u?l:l&&l.withoutSetter||o;e.exports=function(e){if(!a(c,e)||!s&&"string"!=typeof c[e]){var t="Symbol."+e;s&&a(l,e)?c[e]=l[e]:c[e]=u&&d?d(t):f(t)}return c[e]}},2891:function(e,t,n){"use strict";var r=n(8436),i=n(1313),a=n(3031),o=n(425),s=n(3212),u="Array Iterator",c=o.set,l=o.getterFor(u);e.exports=s(Array,"Array",(function(e,t){c(this,{type:u,target:r(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},1282:function(e,t,n){"use strict";var r=n(1726).charAt,i=n(4066),a=n(425),o=n(3212),s="String Iterator",u=a.set,c=a.getterFor(s);o(String,"String",(function(e){u(this,{type:s,string:i(e),index:0})}),(function(){var e,t=c(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},3472:function(e,t,n){var r=n(2445),i=n(7221),a=n(8620),o=n(2891),s=n(8502),u=n(4486),c=u("iterator"),l=u("toStringTag"),d=o.values,f=function(e,t){if(e){if(e[c]!==d)try{s(e,c,d)}catch(t){e[c]=d}if(e[l]||s(e,l,t),i[t])for(var n in o)if(e[n]!==o[n])try{s(e,n,o[n])}catch(t){e[n]=o[n]}}};for(var p in i)f(r[p]&&r[p].prototype,p);f(a,"DOMTokenList")},5151:function(e,t,n){"use strict";n(2891);var r=n(4418),i=n(2445),a=n(3688),o=n(5633),s=n(6460),u=n(1779),c=n(9825),l=n(4792),d=n(4544),f=n(6065),p=n(425),h=n(3855),g=n(3478),v=n(680),m=n(6981),y=n(6394),b=n(4482),w=n(3406),x=n(4066),S=n(6635),T=n(4226),k=n(7172),C=n(2506),A=n(4486),E=n(9827),I=A("iterator"),M="URLSearchParams",_=M+"Iterator",P=p.set,D=p.getterFor(M),L=p.getterFor(_),R=a("fetch"),N=a("Request"),O=a("Headers"),U=N&&N.prototype,j=O&&O.prototype,F=i.RegExp,B=i.TypeError,V=i.decodeURIComponent,$=i.encodeURIComponent,z=s("".charAt),H=s([].join),q=s([].push),K=s("".replace),G=s([].shift),X=s([].splice),W=s("".split),Y=s("".slice),J=/\+/g,Z=Array(4),Q=function(e){return Z[e-1]||(Z[e-1]=F("((?:%[\\da-f]{2}){"+e+"})","gi"))},ee=function(e){try{return V(e)}catch(t){return e}},te=function(e){var t=K(e,J," "),n=4;try{return V(t)}catch(e){for(;n;)t=K(t,Q(n--),ee);return t}},ne=/[!'()~]|%20/g,re={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ie=function(e){return re[e]},ae=function(e){return K($(e),ne,ie)},oe=function(e,t){if(e0?arguments[0]:void 0))},le=ce.prototype;if(l(le,{append:function(e,t){oe(arguments.length,2);var n=D(this);q(n.entries,{key:x(e),value:x(t)}),n.updateURL()},delete:function(e){oe(arguments.length,1);for(var t=D(this),n=t.entries,r=x(e),i=0;it.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=D(this).entries,r=m(e,arguments.length>1?arguments[1]:void 0),i=0;i1?pe(arguments[1]):{})}}),g(N)){var he=function(e){return h(this,U),new N(e,arguments.length>1?pe(arguments[1]):{})};U.constructor=he,he.prototype=U,r({global:!0,forced:!0},{Request:he})}}e.exports={URLSearchParams:ce,getState:D}},9693:function(e,t,n){"use strict";n(1282);var r,i=n(4418),a=n(9751),o=n(1779),s=n(2445),u=n(6981),c=n(6460),l=n(5678),d=n(9825),f=n(3855),p=n(680),h=n(7501),g=n(3410),v=n(8330),m=n(1726).codeAt,y=n(1187),b=n(4066),w=n(4544),x=n(5151),S=n(425),T=S.set,k=S.getterFor("URL"),C=x.URLSearchParams,A=x.getState,E=s.URL,I=s.TypeError,M=s.parseInt,_=Math.floor,P=Math.pow,D=c("".charAt),L=c(/./.exec),R=c([].join),N=c(1..toString),O=c([].pop),U=c([].push),j=c("".replace),F=c([].shift),B=c("".split),V=c("".slice),$=c("".toLowerCase),z=c([].unshift),H="Invalid scheme",q="Invalid host",K="Invalid port",G=/[a-z]/i,X=/[\d+-.a-z]/i,W=/\d/,Y=/^0x/i,J=/^[0-7]+$/,Z=/^\d+$/,Q=/^[\da-f]+$/i,ee=/[\0\t\n\r #%/:<>?@[\\\]^|]/,te=/[\0\t\n\r #/:<>?@[\\\]^|]/,ne=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,re=/[\t\n\r]/g,ie=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)z(t,e%256),e=_(e/256);return R(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,a=0;a<8;a++)0!==e[a]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=a),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=N(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},ae={},oe=h({},ae,{" ":1,'"':1,"<":1,">":1,"`":1}),se=h({},oe,{"#":1,"?":1,"{":1,"}":1}),ue=h({},se,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ce=function(e,t){var n=m(e,0);return n>32&&n<127&&!p(t,e)?e:encodeURIComponent(e)},le={ftp:21,file:null,http:80,https:443,ws:80,wss:443},de=function(e,t){var n;return 2==e.length&&L(G,D(e,0))&&(":"==(n=D(e,1))||!t&&"|"==n)},fe=function(e){var t;return e.length>1&&de(V(e,0,2))&&(2==e.length||"/"===(t=D(e,2))||"\\"===t||"?"===t||"#"===t)},pe=function(e){return"."===e||"%2e"===$(e)},he={},ge={},ve={},me={},ye={},be={},we={},xe={},Se={},Te={},ke={},Ce={},Ae={},Ee={},Ie={},Me={},_e={},Pe={},De={},Le={},Re={},Ne=function(e,t,n){var r,i,a,o=b(e);if(t){if(i=this.parse(o))throw I(i);this.searchParams=null}else{if(void 0!==n&&(r=new Ne(n,!0)),i=this.parse(o,null,r))throw I(i);(a=A(new C)).bindURL(this),this.searchParams=a}};Ne.prototype={type:"URL",parse:function(e,t,n){var i,a,o,s,u,c=this,l=t||he,d=0,f="",h=!1,m=!1,y=!1;for(e=b(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=j(e,ne,"")),e=j(e,re,""),i=g(e);d<=i.length;){switch(a=i[d],l){case he:if(!a||!L(G,a)){if(t)return H;l=ve;continue}f+=$(a),l=ge;break;case ge:if(a&&(L(X,a)||"+"==a||"-"==a||"."==a))f+=$(a);else{if(":"!=a){if(t)return H;f="",l=ve,d=0;continue}if(t&&(c.isSpecial()!=p(le,f)||"file"==f&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=f,t)return void(c.isSpecial()&&le[c.scheme]==c.port&&(c.port=null));f="","file"==c.scheme?l=Ee:c.isSpecial()&&n&&n.scheme==c.scheme?l=me:c.isSpecial()?l=xe:"/"==i[d+1]?(l=ye,d++):(c.cannotBeABaseURL=!0,U(c.path,""),l=De)}break;case ve:if(!n||n.cannotBeABaseURL&&"#"!=a)return H;if(n.cannotBeABaseURL&&"#"==a){c.scheme=n.scheme,c.path=v(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,l=Re;break}l="file"==n.scheme?Ee:be;continue;case me:if("/"!=a||"/"!=i[d+1]){l=be;continue}l=Se,d++;break;case ye:if("/"==a){l=Te;break}l=Pe;continue;case be:if(c.scheme=n.scheme,a==r)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query=n.query;else if("/"==a||"\\"==a&&c.isSpecial())l=we;else if("?"==a)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query="",l=Le;else{if("#"!=a){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.path.length--,l=Pe;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query=n.query,c.fragment="",l=Re}break;case we:if(!c.isSpecial()||"/"!=a&&"\\"!=a){if("/"!=a){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,l=Pe;continue}l=Te}else l=Se;break;case xe:if(l=Se,"/"!=a||"/"!=D(f,d+1))continue;d++;break;case Se:if("/"!=a&&"\\"!=a){l=Te;continue}break;case Te:if("@"==a){h&&(f="%40"+f),h=!0,o=g(f);for(var w=0;w65535)return K;c.port=c.isSpecial()&&T===le[c.scheme]?null:T,f=""}if(t)return;l=_e;continue}return K}f+=a;break;case Ee:if(c.scheme="file","/"==a||"\\"==a)l=Ie;else{if(!n||"file"!=n.scheme){l=Pe;continue}if(a==r)c.host=n.host,c.path=v(n.path),c.query=n.query;else if("?"==a)c.host=n.host,c.path=v(n.path),c.query="",l=Le;else{if("#"!=a){fe(R(v(i,d),""))||(c.host=n.host,c.path=v(n.path),c.shortenPath()),l=Pe;continue}c.host=n.host,c.path=v(n.path),c.query=n.query,c.fragment="",l=Re}}break;case Ie:if("/"==a||"\\"==a){l=Me;break}n&&"file"==n.scheme&&!fe(R(v(i,d),""))&&(de(n.path[0],!0)?U(c.path,n.path[0]):c.host=n.host),l=Pe;continue;case Me:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!t&&de(f))l=Pe;else if(""==f){if(c.host="",t)return;l=_e}else{if(s=c.parseHost(f))return s;if("localhost"==c.host&&(c.host=""),t)return;f="",l=_e}continue}f+=a;break;case _e:if(c.isSpecial()){if(l=Pe,"/"!=a&&"\\"!=a)continue}else if(t||"?"!=a)if(t||"#"!=a){if(a!=r&&(l=Pe,"/"!=a))continue}else c.fragment="",l=Re;else c.query="",l=Le;break;case Pe:if(a==r||"/"==a||"\\"==a&&c.isSpecial()||!t&&("?"==a||"#"==a)){if(".."===(u=$(u=f))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(c.shortenPath(),"/"==a||"\\"==a&&c.isSpecial()||U(c.path,"")):pe(f)?"/"==a||"\\"==a&&c.isSpecial()||U(c.path,""):("file"==c.scheme&&!c.path.length&&de(f)&&(c.host&&(c.host=""),f=D(f,0)+":"),U(c.path,f)),f="","file"==c.scheme&&(a==r||"?"==a||"#"==a))for(;c.path.length>1&&""===c.path[0];)F(c.path);"?"==a?(c.query="",l=Le):"#"==a&&(c.fragment="",l=Re)}else f+=ce(a,se);break;case De:"?"==a?(c.query="",l=Le):"#"==a?(c.fragment="",l=Re):a!=r&&(c.path[0]+=ce(a,ae));break;case Le:t||"#"!=a?a!=r&&("'"==a&&c.isSpecial()?c.query+="%27":c.query+="#"==a?"%23":ce(a,ae)):(c.fragment="",l=Re);break;case Re:a!=r&&(c.fragment+=ce(a,oe))}d++}},parseHost:function(e){var t,n,r;if("["==D(e,0)){if("]"!=D(e,e.length-1))return q;if(t=function(e){var t,n,r,i,a,o,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,d=0,f=function(){return D(e,d)};if(":"==f()){if(":"!=D(e,1))return;d+=2,l=++c}for(;f();){if(8==c)return;if(":"!=f()){for(t=n=0;n<4&&L(Q,f());)t=16*t+M(f(),16),d++,n++;if("."==f()){if(0==n)return;if(d-=n,c>6)return;for(r=0;f();){if(i=null,r>0){if(!("."==f()&&r<4))return;d++}if(!L(W,f()))return;for(;L(W,f());){if(a=M(f(),10),null===i)i=a;else{if(0==i)return;i=10*i+a}if(i>255)return;d++}u[c]=256*u[c]+i,2!=++r&&4!=r||c++}if(4!=r)return;break}if(":"==f()){if(d++,!f())return}else if(f())return;u[c++]=t}else{if(null!==l)return;d++,l=++c}}if(null!==l)for(o=c-l,c=7;0!=c&&o>0;)s=u[c],u[c--]=u[l+o-1],u[l+--o]=s;else if(8!=c)return;return u}(V(e,1,-1)),!t)return q;this.host=t}else if(this.isSpecial()){if(e=y(e),L(ee,e))return q;if(t=function(e){var t,n,r,i,a,o,s,u=B(e,".");if(u.length&&""==u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(n=[],r=0;r1&&"0"==D(i,0)&&(a=L(Y,i)?16:8,i=V(i,8==a?1:2)),""===i)o=0;else{if(!L(10==a?Z:8==a?J:Q,i))return e;o=M(i,a)}U(n,o)}for(r=0;r=P(256,5-t))return null}else if(o>255)return null;for(s=O(n),r=0;r1?arguments[1]:void 0));a||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},Ue=Oe.prototype,je=function(e,t){return{get:function(){return k(this)[e]()},set:t&&function(e){return k(this)[t](e)},configurable:!0,enumerable:!0}};if(a&&l(Ue,{href:je("serialize","setHref"),origin:je("getOrigin"),protocol:je("getProtocol","setProtocol"),username:je("getUsername","setUsername"),password:je("getPassword","setPassword"),host:je("getHost","setHost"),hostname:je("getHostname","setHostname"),port:je("getPort","setPort"),pathname:je("getPathname","setPathname"),search:je("getSearch","setSearch"),searchParams:je("getSearchParams"),hash:je("getHash","setHash")}),d(Ue,"toJSON",(function(){return k(this).serialize()}),{enumerable:!0}),d(Ue,"toString",(function(){return k(this).serialize()}),{enumerable:!0}),E){var Fe=E.createObjectURL,Be=E.revokeObjectURL;Fe&&d(Oe,"createObjectURL",u(Fe,E)),Be&&d(Oe,"revokeObjectURL",u(Be,E))}w(Oe,"URL"),i({global:!0,forced:!o,sham:!a},{URL:Oe})},6989:function(e,t,n){"use strict";var r=n(4418),i=n(5633);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},2746:function(e,t,n){var r=n(8907);n(3472),e.exports=r},7273:function(e,t,n){var r=n(2097);e.exports=r},8907:function(e,t,n){n(5151);var r=n(1430);e.exports=r.URLSearchParams},2097:function(e,t,n){n(9693),n(6989),n(5151);var r=n(1430);e.exports=r.URL},917:function(e,t,n){!function(){var e="undefined"!=typeof window?window:n.g,r={};for(var i in function(e,t,n){var r;function i(e){var t=0;return function(){return t>>0)+"_",r=0;return function e(i){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new t(n+(i||"")+"_"+r++,i)}})),s("Symbol.iterator",(function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n(t=t||0)&&(t=Math.max(t+r,0));tr||1114111=r?t+=String.fromCharCode(r):(r-=65536,t+=String.fromCharCode(r>>>10&1023|55296),t+=String.fromCharCode(1023&r|56320))}return t}})),s("WeakSet",(function(e){function t(e){if(this.g=new WeakMap,e){e=c(e);for(var t;!(t=e.next()).done;)this.add(t.value)}}return function(){if(!e||!Object.seal)return!1;try{var t=Object.seal({}),n=Object.seal({}),r=new e([t]);return!(!r.has(t)||r.has(n))&&(r.delete(t),r.add(n),!r.has(t)&&r.has(n))}catch(e){return!1}}()?e:(t.prototype.add=function(e){return this.g.set(e,!0),this},t.prototype.has=function(e){return this.g.has(e)},t.prototype.delete=function(e){return this.g.delete(e)},t)})),s("Array.prototype.find",(function(e){return e||function(e,t){return O(this,e,t).v}})),s("String.prototype.startsWith",(function(e){return e||function(e,t){var n=U(this,e,"startsWith"),r=n.length,i=e.length;t=Math.max(0,Math.min(0|t,n.length));for(var a=0;a=i}})),s("Object.entries",(function(e){return e||function(e){var t,n=[];for(t in e)R(e,t)&&n.push([t,e[t]]);return n}}));var j="function"==typeof Object.assign?Object.assign:function(e,t){for(var n=1;ne||1342177279>>=1)&&(t+=t);return n}})),s("Number.isFinite",(function(e){return e||function(e){return"number"==typeof e&&!isNaN(e)&&1/0!==e&&-1/0!==e}})),s("Object.values",(function(e){return e||function(e){var t,n=[];for(t in e)R(e,t)&&n.push(e[t]);return n}})),s("Math.log2",(function(e){return e||function(e){return Math.log(e)/Math.LN2}})),s("Number.MAX_SAFE_INTEGER",(function(){return 9007199254740991})),s("String.prototype.endsWith",(function(e){return e||function(e,t){var n=U(this,e,"endsWith");void 0===t&&(t=n.length),t=Math.max(0,Math.min(0|t,n.length));for(var r=e.length;0=r}})),s("Math.trunc",(function(e){return e||function(e){if(e=Number(e),isNaN(e)||1/0===e||-1/0===e||0===e)return e;var t=Math.floor(Math.abs(e));return 0>e?-t:t}}));var F=this||self;function B(e,t){e=e.split(".");var n,r=F;e[0]in r||void 0===r.execScript||r.execScript("var "+e[0]);for(;e.length&&(n=e.shift());)e.length||void 0===t?r=r[n]&&r[n]!==Object.prototype[n]?r[n]:r[n]={}:r[n]=t}function V(){}function $(){}function z(e){this.g=Math.exp(Math.log(.5)/e),this.i=this.h=0}function H(e){return e.h/(1-Math.pow(e.g,e.i))}function q(){this.h=new z(2),this.j=new z(5),this.g=0,this.i=128e3,this.l=16e3}function K(){}function G(){}function X(){}function W(e){var t=L.apply(1,arguments);J.has(e)||(J.add(e),X.apply(K,l(t)))}function Y(){}z.prototype.sample=function(e,t){var n=Math.pow(this.g,e);t=t*(1-n)+n*this.h,isNaN(t)||(this.h=t,this.i+=e)},q.prototype.configure=function(e){this.i=e.minTotalBytes,this.l=e.minBytes,this.h.g=Math.exp(Math.log(.5)/e.fastHalfLife),this.j.g=Math.exp(Math.log(.5)/e.slowHalfLife)},q.prototype.sample=function(e,t){if(!(t=r+2&&192==(224&t[r])&&128==(192&t[r+1])?(i=(31&t[r])<<6|63&t[r+1],r+=1):t.length>=r+3&&224==(240&t[r])&&128==(192&t[r+1])&&128==(192&t[r+2])?(i=(15&t[r])<<12|(63&t[r+1])<<6|63&t[r+2],r+=2):t.length>=r+4&&240==(241&t[r])&&128==(192&t[r+1])&&128==(192&t[r+2])&&128==(192&t[r+3])&&(i=(7&t[r])<<18|(63&t[r+1])<<12|(63&t[r+2])<<6|63&t[r+3],r+=3),65535>=i)n+=String.fromCharCode(i);else{var a=1023&(i-=65536);n+=String.fromCharCode(55296+(i>>10)),n+=String.fromCharCode(56320+a)}}return n}function pt(e,t,n){if(!e)return"";if(!n&&0!=e.byteLength%2)throw new Pe(2,2,2004);n=Math.floor(e.byteLength/2);var r=new Uint16Array(n);e=ye(e);for(var i=0;i=n[e]}if(!e)return"";var n=ve(e);if(239==n[0]&&187==n[1]&&191==n[2])return ft(n);if(254==n[0]&&255==n[1])return pt(n.subarray(2),!1);if(255==n[0]&&254==n[1])return pt(n.subarray(2),!0);if(0==n[0]&&0==n[2])return pt(e,!1);if(0==n[1]&&0==n[3])return pt(e,!0);if(t(0)&&t(1)&&t(2)&&t(3))return ft(e);throw new Pe(2,2,2003)}function gt(t){if(e.TextEncoder&&!Ze()){var n=new TextEncoder;return ge(n.encode(t))}t=encodeURIComponent(t),t=unescape(t),n=new Uint8Array(t.length);for(var r=0;r",""":'"',"'":"'"," ":" ","‎":"‎","‏":"‏"},n=/&(?:amp|lt|gt|quot|apos|nbsp|lrm|rlm|#[xX]?[0-9a-fA-F]+);/g,r=RegExp(n.source);return e&&r.test(e)?e.replace(n,(function(e){return"#"==e[1]?0<=(e="x"==e[2]||"X"==e[2]?parseInt(e.substring(3),16):parseInt(e.substring(2),10))&&1114111>=e?String.fromCodePoint(e):"":t[e]||"'"})):e||""}B("shaka.util.StringUtils",dt),dt.resetFromCharCode=function(){bt.g=void 0},dt.toUTF16=vt,dt.toUTF8=gt,dt.fromBytesAutoDetect=ht,dt.fromUTF16=pt,dt.fromUTF8=ft;var bt=new Le((function(){function e(e){try{var t=new Uint8Array(e);return 0/= ".indexOf(e[r])&&e[r];)r++;return e.slice(t,r)}var r=0;return function i(a,o){o=void 0!==o&&o;for(var s=[];e[r];)if(60==e.charCodeAt(r)){if(47===e.charCodeAt(r+1)){o=r+2,r=e.indexOf(">",r);var u=(o=e.substring(o,r)).indexOf(a);if(-1==u){var c=a.indexOf(".");0",r+1);-1===r&&(r=e.length)}else if(91===e.charCodeAt(r+2)&&91===e.charCodeAt(r+8)&&"cdata"===e.substr(r+3,5).toLowerCase()){-1==(u=e.indexOf("]]>",r))?(s.push(e.substr(r+9)),r=e.length):(s.push(e.substring(r+9,u)),r=u+3);continue}r++;continue}e:{c=o,r++;var d=n(),f={};for(u=[];62!==e.charCodeAt(r)&&e[r];){var p=e.charCodeAt(r);if(64p||96p){p=n();for(var h=e.charCodeAt(r);h&&39!==h&&34!==h&&!(64h||96h)&&62!==h;)r++,h=e.charCodeAt(r);var g=r+1;if(r=e.indexOf(e[r],g),g=e.slice(g,r),39===h||34===h){if(-1===r){if(c={tagName:d,attributes:f,children:u,parent:null},t)for(d=0;d"===r[a]&&0",'
'),r+="
";e:{a=r,i=[];var o=-1;n="",r=!1;for(var s=0;s",s);if(-1===u){n=a;break e}if((u=a.substring(s+1,u))&&"v"==u){r=!0;var l=null;if(i.length&&(l=i[i.length-1]),l){if(l===u)n+="/"+u+">";else{if(!l.startsWith("v")){n+=a[s];continue}n+="/"+l+">"}s+=u.length+1}else n+=a[s]}else n+=a[s]}else"<"===a[s]?"v"!=a[o=s+1]&&(o=-1):">"===a[s]&&0","<"+o+">")).replace("",""),r||(n+="")}n=function(e){var t={"< ":""," >":" >"},n=/(< +>|<\s|\s>)/g,r=RegExp(n.source);return e&&r.test(e)?e.replace(n,(function(e){return t[e]||""})):e||""}(n),e.payload="";try{var d=_t(""+n+"","span")}catch(e){}if(d)if(1!=(d=d.children).length||d[0].tagName)for(n=(d=c(d)).next();!n.done;n=d.next())pn(n.value,e,t);else e.payload=yt(n);else e.payload=yt(n)}else e.payload=yt(n)}function fn(e){for(var t=c(Object.entries(Cn)),n=t.next();!n.done;n=t.next()){var r=c(n.value);n=r.next().value,r=r.next().value;var i=new un(0,0,"");i.color=r,e.set("."+n,i)}for(n=(t=c(Object.entries(An))).next();!n.done;n=t.next())n=(r=c(n.value)).next().value,r=r.next().value,(i=new un(0,0,"")).backgroundColor=r,e.set("."+n,i)}function pn(e,t,n){var r=t.clone();if(r.nestedCues=[],r.payload="",r.rubyTag="",r.line=null,r.region=new ke,r.position=null,r.size=0,r.textAlign=vn,e.tagName)for(var i=c(e.tagName.split(/(?=[ .])+/g)),a=i.next();!a.done;a=i.next()){var o=a=a.value;if(o.startsWith(".voice-")){var s=o.split("-").pop();o='v[voice="'+s+'"]',n.has(o)||(o="v[voice="+s+"]")}switch(n.has(o)&&(s=r,o=n.get(o))&&(s.backgroundColor=hn(o.backgroundColor,s.backgroundColor),s.color=hn(o.color,s.color),s.fontFamily=hn(o.fontFamily,s.fontFamily),s.fontSize=hn(o.fontSize,s.fontSize),s.textShadow=hn(o.textShadow,s.textShadow),s.fontWeight=o.fontWeight,s.fontStyle=o.fontStyle,s.opacity=o.opacity,s.rubyTag=o.rubyTag,s.textCombineUpright=o.textCombineUpright,s.wrapLine=o.wrapLine),a){case"br":return r=cn(r.startTime,r.endTime),void t.nestedCues.push(r);case"b":r.fontWeight=In;break;case"i":r.fontStyle=_n;break;case"u":r.textDecoration.push(Dn);break;case"font":(a=e.attributes.color)&&(r.color=a);break;case"div":if(!(a=e.attributes.time))break;(a=Ct(a))&&(r.startTime=a);break;case"ruby":case"rp":case"rt":r.rubyTag=a}}if(i=e.children,Dt(e)||1==i.length&&Dt(i[0]))for(n=Nt(e).split("\n"),e=!0,i=(n=c(n)).next();!i.done;i=n.next())i=i.value,e||(e=cn(r.startTime,r.endTime),t.nestedCues.push(e)),0t)throw Error("Bad port number "+t);e.Sc=t}else e.Sc=null}function Gn(e,t,n){t instanceof nr?e.g=t:(n||(t=Wn(t,er)),e.g=new nr(t))}function Xn(e,t){return e?t?decodeURI(e):decodeURIComponent(e):""}function Wn(e,t,n){return null!=e?(e=encodeURI(e).replace(t,Yn),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Yn(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}(r=zn.prototype).Db="",r.Ac="",r.Fb="",r.Sc=null,r.Ua="",r.mc="",r.toString=function(){var e=[],t=this.Db;if(t&&e.push(Wn(t,Jn,!0),":"),t=this.Fb){e.push("//");var n=this.Ac;n&&e.push(Wn(n,Jn,!0),"@"),e.push(encodeURIComponent(t).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(t=this.Sc)&&e.push(":",String(t))}return(t=this.Ua)&&(this.Fb&&"/"!=t.charAt(0)&&e.push("/"),e.push(Wn(t,"/"==t.charAt(0)?Qn:Zn,!0))),(t=this.g.toString())&&e.push("?",t),(t=this.mc)&&e.push("#",Wn(t,tr)),e.join("")},r.resolve=function(e){var t=this.clone();"data"===t.Db&&(t=new zn);var n=!!e.Db;n?Hn(t,e.Db):n=!!e.Ac,n?t.Ac=e.Ac:n=!!e.Fb,n?qn(t,e.Fb):n=null!=e.Sc;var r=e.Ua;if(n)Kn(t,e.Sc);else if(n=!!e.Ua){if("/"!=r.charAt(0))if(this.Fb&&!this.Ua)r="/"+r;else{var i=t.Ua.lastIndexOf("/");-1!=i&&(r=t.Ua.substr(0,i+1)+r)}if(".."==r||"."==r)r="";else if(-1!=r.indexOf("./")||-1!=r.indexOf("/.")){i=0==r.lastIndexOf("/",0),r=r.split("/");for(var a=[],o=0;o=n.h||(e<=n.g&&t>=n.h?n.g=n.h=null:e<=n.g&&tn.g&&t>=n.h&&(n.h=e)),x(r)}))},B("shaka.text.TextEngine",Or),Or.prototype.destroy=Or.prototype.destroy,Or.findParser=function(e){return Br[e]},Or.unregisterParser=function(e){delete Br[e]},Or.registerParser=function(e,t){Br[e]=t};var Br={};function Vr(e,t){return e.concat(t)}function $r(){}function zr(e){return null!=e}function Hr(){}function qr(e,t){return e=Xr(e),t=Xr(t),e.split("-")[0]==t.split("-")[0]}function Kr(e,t){return e=Xr(e),t=Xr(t),e=e.split("-"),t=t.split("-"),e[0]==t[0]&&1==e.length&&2==t.length}function Gr(e,t){return e=Xr(e),t=Xr(t),e=e.split("-"),t=t.split("-"),2==e.length&&2==t.length&&e[0]==t[0]}function Xr(e){var t=(e=c(e.split("-x-"))).next().value;t=void 0===t?"":t,e=void 0===(e=e.next().value)?"":e;var n=c(t.split("-"));return t=void 0===(t=n.next().value)?"":t,n=void 0===(n=n.next().value)?"":n,e=e?"x-"+e:"",t=t.toLowerCase(),t=Qr.get(t)||t,((n=n.toUpperCase())?t+"-"+n:t)+(e?"-"+e:"")}function Wr(e,t){return e=Xr(e),(t=Xr(t))==e?4:Kr(t,e)?3:Gr(t,e)?2:Kr(e,t)?1:0}function Yr(e){var t=e.indexOf("-");return e=(e=0<=t?e.substring(0,t):e).toLowerCase(),Qr.get(e)||e}function Jr(e){return e.language?Xr(e.language):e.audio&&e.audio.language?Xr(e.audio.language):e.video&&e.video.language?Xr(e.video.language):"und"}function Zr(e,t){e=Xr(e);for(var n=new Set,r=(t=c(t)).next();!r.done;r=t.next())n.add(Xr(r.value));for(r=(t=c(n)).next();!r.done;r=t.next())if((r=r.value)==e)return r;for(r=(t=c(n)).next();!r.done;r=t.next())if(Kr(r=r.value,e))return r;for(r=(t=c(n)).next();!r.done;r=t.next())if(Gr(r=r.value,e))return r;for(t=(n=c(n)).next();!t.done;t=n.next())if(Kr(e,t=t.value))return t;return null}B("shaka.util.LanguageUtils",Hr),Hr.findClosestLocale=Zr,Hr.getLocaleForVariant=Jr,Hr.getLocaleForText=function(e){return Xr(e.language||"und")},Hr.getBase=Yr,Hr.relatedness=Wr,Hr.areSiblings=function(e,t){var n=Yr(e),r=Yr(t);return e!=n&&t!=r&&n==r},Hr.normalize=Xr,Hr.isSiblingOf=Gr,Hr.isParentOf=Kr,Hr.areLanguageCompatible=qr,Hr.areLocaleCompatible=function(e,t){return(e=Xr(e))==Xr(t)};var Qr=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze","cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice","is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao","mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san","sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie","vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function ei(){}function ti(e,t,n,r,i){if(i.length){for(var a=e.textStreams,o=(i=c(i)).next(),s={};!o.done;s={ag:void 0},o=i.next())if(s.ag=o.value,(o=a.filter(function(e){return function(t){return!(!t.codecs.startsWith(e.ag)&&!t.mimeType.startsWith(e.ag))}}(s))).length){a=o;break}e.textStreams=a}if(a=e.variants,(t.length||n.length)&&(a=function(e,t,n){for(var r=(t=c(t)).next(),i={};!r.done;i={rh:void 0},r=t.next())if(i.rh=r.value,r=e.filter(function(e){return function(t){return t.video&&t.video.codecs.startsWith(e.rh)}}(i)),r.length){e=r;break}for(t=(n=c(n)).next(),r={};!t.done;r={kg:void 0},t=n.next())if(r.kg=t.value,t=e.filter(function(e){return function(t){return t.audio&&t.audio.codecs.startsWith(e.kg)}}(r)),t.length){e=t;break}return e}(a,t,n)),r.length){for(t=new Z,a=(n=c(a)).next();!a.done;a=n.next())a=a.value,t.push(String(a.video.width||0),a);var u=[];t.forEach((function(e,t){e=0;for(var n=[],i=(t=c(t)).next(),a={};!i.done;a={Be:void 0},i=t.next())a.Be=i.value,(i=r.filter(function(e){return function(t){return e.Be.decodingInfos[0][t]}}(a)).length)>e?(e=i,n=[a.Be]):i==e&&n.push(a.Be);u.push.apply(u,l(n))})),a=u}for(n=new Set,t=new Set,i=(a=c(a)).next();!i.done;i=a.next())(i=i.value).audio&&n.add(i.audio),i.video&&t.add(i.video);a=Array.from(n).sort((function(e,t){return e.bandwidth-t.bandwidth}));var d=[];for(n=new Map,i=(a=c(a)).next();!i.done;i=a.next()){if(o=(i=i.value).language+(i.channelsCount||0)+(i.audioSamplingRate||0)+i.roles.join(",")+i.label+i.groupId+i.fastSwitching,(s=n.get(o)||[]).length){var f=s[s.length-1],p=Ir(f.codecs),h=Ir(i.codecs);p!=h||i.bandwidth&&f.bandwidth&&!(i.bandwidth>f.bandwidth)||(s.push(i),d.push(i.id))}else s.push(i),d.push(i.id);n.set(o,s)}var g={vp8:1,avc:1,"dovi-avc":.95,vp9:.9,vp09:.9,hevc:.85,"dovi-hevc":.8,av01:.75,"dovi-av1":.7,vvc:.65};a=Array.from(t).sort((function(e,t){if(!e.bandwidth||!t.bandwidth||e.bandwidth==t.bandwidth){if(e.codecs&&t.codecs&&e.codecs!=t.codecs&&e.width==t.width){var n=Ir(e.codecs),r=Ir(t.codecs);if(n!=r)return(g[n]||1)-(g[r]||1)}return e.width-t.width}return e.bandwidth-t.bandwidth})),t=re();var v=[];for(n=new Map,i=(a=c(a)).next();!i.done;i=a.next()){if(i=i.value,o=Math.round(i.frameRate||0)+(i.hdr||"")+i.fastSwitching,(s=n.get(o)||[]).length){if(f=s[s.length-1],!t&&(p=Ir(f.codecs))!==(h=Ir(i.codecs)))continue;i.width>f.width||i.height>f.height?(s.push(i),v.push(i.id)):i.width==f.width&&i.height==f.height&&((p=Ir(f.codecs))!=(h=Ir(i.codecs))||i.bandwidth&&f.bandwidth&&!(i.bandwidth>f.bandwidth)||(s.push(i),v.push(i.id)))}else s.push(i),v.push(i.id);n.set(o,s)}e.variants=e.variants.filter((function(e){var t=e.audio;return e=e.video,!(t&&!d.includes(t.id)||e&&!v.includes(e.id))}))}function ni(e,t,n){function r(e,t,n){return e>=t&&e<=n}var i=e.video;if(i&&i.width&&i.height){var a=i.width,o=i.height;if(o>a&&(a=(o=c([o,a])).next().value,o=o.next().value),!r(a,t.minWidth,Math.min(t.maxWidth,n.width))||!r(o,t.minHeight,Math.min(t.maxHeight,n.height))||!r(i.width*i.height,t.minPixels,t.maxPixels))return!1}return!(e&&e.video&&e.video.frameRate&&!r(e.video.frameRate,t.minFrameRate,t.maxFrameRate)||e&&e.audio&&e.audio.channelsCount&&!r(e.audio.channelsCount,t.minChannelsCount,t.maxChannelsCount)||!r(e.bandwidth,t.minBandwidth,t.maxBandwidth))}function ri(e,t,n,r){var i,a;return D((function(o){if(1==o.g)return He()&&function(e){for(var t={dvav:"avc3",dva1:"avc1",dvhe:"hev1",dvh1:"hvc1",dvc1:"vvc1",dvi1:"vvi1"},n=new Set,r=(e=c(e)).next();!r.done;r=e.next())(r=r.value).video&&n.add(r.video);for(e=(n=c(n)).next();!e.done;e=n.next()){e=e.value;for(var i=(r=c(Object.keys(t))).next();!i.done;i=r.next())if(i=i.value,e.codecs.includes(i)){e.codecs=e.codecs.replace(i,t[i]);break}}}(t.variants),w(o,si(t.variants,n,!1,r),2);i=null,e&&(a=e.g)&&(i=a.keySystem),t.variants=t.variants.filter((function(e){var t=function(e,t){var n=He(),r=at("Firefox")&&rt(),i=e.video,a=i&&i.width||0,o=i&&i.height||0;if(n&&i&&(1920=t.i))return;e.G=!0,e.l-=1e3*(e.g.switchInterval-e.g.minTimeToSwitch)}Date.now()-e.l<1e3*e.g.switchInterval||(t=e.chooseVariant(),e.getBandwidthEstimate(),t&&e.A(t,e.g.clearBufferSwitch,e.g.safeMarginSwitch))}function _i(e,t,n,r,i){if(e.m){var a=e.m.Cg();a&&(n=n.filter((function(e){return!e.bandwidth||!a||e.bandwidth<=a})))}return t&&(n=n.filter((function(e){return ni(e,t,{width:i,height:r})}))),n.sort((function(e,t){return e.bandwidth-t.bandwidth}))}(r=Ii.prototype).stop=function(){this.A=null,this.j=!1,this.s=[],this.B=1,this.o=this.l=null,this.h&&(this.h.disconnect(),this.h=null),this.C.stop(),this.m=null},r.release=function(){this.F.release(),this.C=null},r.init=function(e){this.A=e},r.chooseVariant=function(){var t=1/0,n=1/0;if(this.g.restrictToScreenSize){var r=this.g.ignoreDevicePixelRatio?1:e.devicePixelRatio;t=e.screen.height*r,n=e.screen.width*r}this.h&&this.g.restrictToElementSize&&(r=this.g.ignoreDevicePixelRatio?1:e.devicePixelRatio,t=Math.min(t,this.o.clientHeight*r),n=Math.min(n,this.o.clientWidth*r)),(r=this.s.filter((function(e){return e&&!(e.audio&&e.audio.fastSwitching||e.video&&e.video.fastSwitching)}))).length||(r=this.s);var i=r;if(r.length!=this.s.length&&(i=this.s.filter((function(e){return e&&!!(e.audio&&e.audio.fastSwitching||e.video&&e.video.fastSwitching)}))),r=_i(this,this.g.restrictions,i,1/0,1/0),1/0!=t||1/0!=n){r=function(e){for(var t=[],n=(e=c(e)).next();!n.done;n=e.next())(n=n.value.video)&&n.height&&n.width&&t.push({height:n.height,width:n.width});return t.sort((function(e,t){return e.width-t.width}))}(r);for(var a=(r=c(r)).next();!a.done;a=r.next())if((a=a.value).height>=t&&a.width>=n){t=a.height,n=a.width;break}r=_i(this,this.g.restrictions,i,t,n)}for(t=this.getBandwidthEstimate(),i.length&&!r.length&&(r=[(r=_i(this,null,i,1/0,1/0))[0]]),n=r[0]||null,i=0;i=s&&t<=o&&(n.bandwidth!=a.bandwidth||n.bandwidth==a.bandwidth&&n.video&&a.video&&(n.video.width=e.l){if(!e.i)throw new Pe(2,7,1010);e.g=1,e.h=e.j}return t=e.g,e.g++,0==t?r.return():(n=e.h*(1+(2*Math.random()-1)*e.o),w(r,new Promise((function(e){new Be(e).Z(n/1e3)})),2))}e.h*=e.m,x(r)}))}function zi(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function Hi(e,t){this.promise=e,this.i=t,this.g=null}function qi(e){return new Hi(Promise.reject(e),(function(){return Promise.resolve()}))}function Ki(){var e=Promise.reject(new Pe(2,7,7001));return e.catch((function(){})),new Hi(e,(function(){return Promise.resolve()}))}function Gi(e){return new Hi(Promise.resolve(e),(function(){return Promise.resolve()}))}function Xi(e){return new Hi(e,(function(){return e.catch((function(){}))}))}function Wi(e){return new Hi(Promise.all(e.map((function(e){return e.promise}))),(function(){return Promise.all(e.map((function(e){return e.abort()})))}))}function Yi(t,n){if(n)if(n instanceof Map)for(var r=c(n.keys()),i=r.next();!i.done;i=r.next())i=i.value,Object.defineProperty(this,i,{value:n.get(i),writable:!0,enumerable:!0});else for(r in n)Object.defineProperty(this,r,{value:n[r],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1,this.timeStamp=e.performance&&e.performance.now?e.performance.now():Date.now(),this.type=t,this.isTrusted=!1,this.target=this.currentTarget=null,this.g=!1}function Ji(e){var t,n=new Yi(e.type);for(t in e)Object.defineProperty(n,t,{value:e[t],writable:!0,enumerable:!0});return n}zi.prototype.resolve=function(){},zi.prototype.reject=function(){},Hi.prototype.abort=function(){return this.g||(this.g=this.i()),this.g},Hi.prototype.finally=function(e){return this.promise.then((function(){return e(!0)}),(function(){return e(!1)})),this},Hi.prototype.Ca=function(e,t){function n(n){return function(s){if(i.g&&n)a.reject(o);else{var u=n?e:t;u?r=function(e,t,n){try{var r=e(t);return r&&r.promise&&r.abort?(n.resolve(r.promise),function(){return r.abort()}):(n.resolve(r),function(){return Promise.resolve(r).then((function(){}),(function(){}))})}catch(e){return n.reject(e),function(){return Promise.resolve()}}}(u,s,a):(n?a.resolve:a.reject)(s)}}}function r(){return a.reject(o),i.abort()}var i=this,a=new zi,o=new Pe(2,7,7001);return this.promise.then(n(!0),n(!1)),new Hi(a,(function(){return r()}))},o.Object.defineProperties(Hi.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return null!==this.g}}}),B("shaka.util.AbortableOperation",Hi),Hi.prototype.chain=Hi.prototype.Ca,Hi.prototype.finally=Hi.prototype.finally,Hi.all=Wi,Hi.prototype.abort=Hi.prototype.abort,Hi.notAbortable=Xi,Hi.completed=Gi,Hi.aborted=Ki,Hi.failed=qi,Yi.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},Yi.prototype.stopImmediatePropagation=function(){this.g=!0},Yi.prototype.stopPropagation=function(){},B("shaka.util.FakeEvent",Yi);var Zi={mj:"abrstatuschanged",nj:"adaptation",oj:"audiotrackchanged",pj:"buffering",qj:"complete",rj:"downloadfailed",sj:"downloadheadersreceived",tj:"drmsessionupdate",vj:"emsg",Pj:"prft",Error:"error",wj:"expirationupdated",xj:"firstquartile",yj:"gapjumped",Bj:"keystatuschanged",Fj:"loaded",Gj:"loading",Ij:"manifestparsed",Jj:"manifestupdated",Kj:"mediaqualitychanged",Lj:"mediasourcerecovered",Metadata:"metadata",Mj:"midpoint",Nj:"nospatialvideoinfo",Oj:"onstatechange",Qj:"ratechange",Sj:"segmentappended",Tj:"sessiondata",Uj:"spatialvideoinfo",Vj:"stalldetected",Wj:"started",Xj:"statechanged",Yj:"streaming",Zj:"textchanged",$j:"texttrackvisibility",ak:"thirdquartile",bk:"timelineregionadded",ck:"timelineregionenter",dk:"timelineregionexit",ek:"trackschanged",gk:"unloading",ik:"variantchanged"};function Qi(){this.qa=new Z,this.te=this}function ea(){this.g=[]}function ta(e,t){e.g.push(t.finally((function(){Ie(e.g,t)})))}function na(e,t,n,r,i,a){Qi.call(this),this.i=!1,this.o=new ea,this.g=new Set,this.h=new Set,this.l=e||null,this.j=t||null,this.B=n||null,this.C=r||null,this.G=i||null,this.F=a||null,this.s=this.A=!1,this.m=16e3}function ra(e,t,n,r){n=n||da;var i=fa[e];(!i||n>=i.priority)&&(fa[e]={priority:n,he:t,Hi:void 0!==r&&r})}function ia(e,t){for(var n=c(e.g),r=n.next();!r.done;r=n.next())t.g.add(r.value);for(n=(e=c(e.h)).next();!n.done;n=e.next())t.h.add(n.value)}function aa(e,t,n){return{uris:e,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:t,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===n?null:n}}function oa(e,t,n,r,i,a,o,s){e.A&&(n.uris[a]=n.uris[a].replace("https://","http://")),e.s&&(n.uris[a]=n.uris[a].replace("http://","https://")),0this.h.byteLength)throw ba();var t=ve(this.h,this.g,e);return this.g+=e,t},r.skip=function(e){if(this.g+e>this.h.byteLength)throw ba();this.g+=e},r.Si=function(e){if(this.ge||e>this.h.byteLength)throw ba();this.g=e},r.wc=function(){for(var e=this.g;this.sa()&&0!=this.h.getUint8(this.g);)this.g+=1;return e=ve(this.h,e,this.g-e),this.g+=1,ft(e)},B("shaka.util.DataViewReader",ya),ya.prototype.readTerminatedString=ya.prototype.wc,ya.prototype.seek=ya.prototype.seek,ya.prototype.rewind=ya.prototype.Si,ya.prototype.skip=ya.prototype.skip,ya.prototype.readBytes=ya.prototype.vb,ya.prototype.readUint64=ya.prototype.Tc,ya.prototype.readInt32=ya.prototype.Vg,ya.prototype.readUint32=ya.prototype.P,ya.prototype.readUint16=ya.prototype.ma,ya.prototype.readUint8=ya.prototype.T,ya.prototype.getLength=ya.prototype.getLength,ya.prototype.getPosition=ya.prototype.ya,ya.prototype.hasMoreData=ya.prototype.sa;var wa=1;function xa(){this.i=[],this.h=[],this.g=!1}function Sa(e){for(var t=Ma(e);e.reader.sa()&&!e.parser.g;)e.parser.Qc(e.start+t,e.reader,e.partialOkay)}function Ta(e){for(var t=Ma(e),n=e.reader.P(),r=0;r>24&255,e>>16&255,e>>8&255,255&e)}function Ma(e){return 8+(e.has64BitSize?8:0)+(null!=e.flags?4:0)}ya.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:wa},(r=xa.prototype).box=function(e,t){return e=Ea(e),this.i[e]=_a,this.h[e]=t,this},r.R=function(e,t){return e=Ea(e),this.i[e]=Pa,this.h[e]=t,this},r.stop=function(){this.g=!0},r.parse=function(e,t,n){for(e=new ya(e,0),this.g=!1;e.sa()&&!this.g;)this.Qc(0,e,t,n)},r.Qc=function(e,t,n,r){var i=t.ya();if(r&&i+8>t.getLength())this.g=!0;else{var a=t.P(),o=t.P(),s=Ia(o),u=!1;switch(a){case 0:a=t.getLength()-i;break;case 1:if(r&&t.ya()+8>t.getLength())return void(this.g=!0);a=t.Tc(),u=!0}var c=this.h[o];if(c){var l=null,d=null;if(this.i[o]==Pa){if(r&&t.ya()+4>t.getLength())return void(this.g=!0);l=(d=t.P())>>>24,d&=16777215}o=i+a,n&&o>t.getLength()&&(o=t.getLength()),r&&o>t.getLength()?this.g=!0:(r=o-t.ya(),c({name:s,parser:this,partialOkay:n||!1,version:l,flags:d,reader:t=new ya(t=0r?s.setUint32(u,0):s.setUint32(u,16777216),u+=4,o.set(t,u),u+=t.length,0r&&(r+=Math.pow(2,32)),r="0x"+r.toString(16)}e.s(new Pe(2,6,6006,t.message,t,r))}}))}(e,t,n,e.g.sessionType)}}function Ba(e){return e=ga(e=e.i.keys(),(function(e){return e.sessionId})),Array.from(e)}function Va(e,t,n){var r,i,a,o,s,u;return D((function(l){switch(l.g){case 1:if(r=new Map,n.length){i=function(e,t,n){for(var r=c(t),i=r.next();!i.done;i=r.next())for(var a=(i=c(Xa(i.value))).next();!a.done;a=i.next())a=a.value,n.has(a.keySystem)||n.set(a.keySystem,[]),n.get(a.keySystem).push(a);if(1==n.size&&n.has(""))throw new Pe(2,6,6e3);for(i=(e=c(e.h.preferredKeySystems)).next(),r={};!i.done;r={Ug:void 0},i=e.next())for(r.Ug=i.value,a=(i=c(t)).next();!a.done;a=i.next())if(a=a.value.decodingInfos.find(function(e){return function(t){return t.supported&&null!=t.keySystemAccess&&t.keySystemAccess.keySystem==e.Ug}}(r)))return a.keySystemAccess;for(r=(e=c([!0,!1])).next();!r.done;r=e.next())for(r=r.value,a=(i=c(t)).next();!a.done;a=i.next())for(var o=(a=c(a.value.decodingInfos)).next();!o.done;o=a.next())if((o=o.value).supported&&o.keySystemAccess)for(var s=n.get(o.keySystemAccess.keySystem),u=(s=c(s)).next();!u.done;u=s.next())if(!!u.value.licenseServerUri==r)return o.keySystemAccess;return null}(e,n,r),l.u(2);break}return w(l,function(e,t){var n,r,i,a,o,s,u,l,d,f,p,h,g,v,m,y;return D((function(b){switch(b.g){case 1:if(1==t.size&&t.has(""))throw new Pe(2,6,6e3);for(r=c(t.values()),i=r.next();!i.done;i=r.next())0==(a=i.value).audioCapabilities.length&&delete a.audioCapabilities,0==a.videoCapabilities.length&&delete a.videoCapabilities;o=c(e.h.preferredKeySystems),s=o.next();case 2:if(s.done){b.u(4);break}if(u=s.value,!t.has(u)){b.u(3);break}return l=t.get(u),S(b,6),w(b,navigator.requestMediaKeySystemAccess(u,[l]),8);case 8:return n=b.h,b.return(n);case 6:C(b);case 7:ha(e.j);case 3:s=o.next(),b.u(2);break;case 4:d=c([!0,!1]),f=d.next();case 9:if(f.done){b.u(11);break}p=f.value,h=c(t.keys()),g=h.next();case 12:if(g.done){f=d.next(),b.u(9);break}if(v=g.value,m=t.get(v),y=m.drmInfos.some((function(e){return!!e.licenseServerUri})),y!=p){b.u(13);break}return S(b,15),w(b,navigator.requestMediaKeySystemAccess(v,[m]),17);case 17:return n=b.h,b.return(n);case 15:C(b);case 16:ha(e.j);case 13:g=h.next(),b.u(12);break;case 11:return b.return(n)}}))}(e,t),3);case 3:i=l.h;case 2:if(!(a=i))throw new Pe(2,6,6001);if(ha(e.j),S(l,4),a.getConfiguration(),n.length){var d=a.keySystem,f=r.get(a.keySystem),p=[],h=[],g=[],v=[],m=[],y=new Set,b=new Set;Ya(f,p,h,v,g,m,y,b);var x=e.M?"persistent-license":"temporary";for(d={keySystem:d,encryptionScheme:p[0],licenseServerUri:h[0],distinctiveIdentifierRequired:f[0].distinctiveIdentifierRequired,persistentStateRequired:f[0].persistentStateRequired,sessionType:f[0].sessionType||x,audioRobustness:f[0].audioRobustness||"",videoRobustness:f[0].videoRobustness||"",serverCertificate:v[0],serverCertificateUri:g[0],initData:m,keyIds:y},0i||r&&1e3>i)&&n&&!n.nb&&(e.i.delete(t),t.close().catch((function(){}))),Wa(e)&&(e.m.resolve(),e.K.Z(eo))}function Ga(e){var t;return D((function(n){return t=Array.from(e.i.entries()),e.i.clear(),w(n,Promise.all(t.map((function(t){var n=(t=c(t)).next().value,r=t.next().value;return D((function(t){return 1==t.g?(S(t,2),e.fa||e.B.has(n.sessionId)||"persistent-license"!==r.type||e.h.persistentSessionOnlinePlayback?w(t,function(e){var t;return D((function(n){return 1==n.g?(t=new Promise((function(e,t){new Be(t).Z(Za)})),S(n,2),w(n,Promise.race([Promise.all([e.close(),e.closed]),t]),4)):2!=n.g?k(n,0):(C(n),void x(n))}))}(n),5):w(t,n.remove(),5)):2!=t.g?k(t,0):(C(t),void x(t))}))}))),0)}))}function Xa(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])}function Wa(e){return function(e,t){for(var n=(e=c(e)).next();!n.done;n=e.next())if(!t(n.value))return!1;return!0}(e=e.i.values(),(function(e){return e.loaded}))}function Ya(t,n,r,i,a,o,s,u){for(var d=[],f=(t=c(t)).next(),p={};!f.done;p={ta:void 0},f=t.next()){if(p.ta=f.value,n.includes(p.ta.encryptionScheme)||n.push(p.ta.encryptionScheme),"org.w3.clearkey"==p.ta.keySystem&&p.ta.licenseServerUri.startsWith("data:application/json;base64,")?d.includes(p.ta.licenseServerUri)||d.push(p.ta.licenseServerUri):r.includes(p.ta.licenseServerUri)||r.push(p.ta.licenseServerUri),a.includes(p.ta.serverCertificateUri)||a.push(p.ta.serverCertificateUri),p.ta.serverCertificate&&(i.some(function(e){return function(t){return pe(t,e.ta.serverCertificate)}}(p))||i.push(p.ta.serverCertificate)),p.ta.initData)for(var h=(f=c(p.ta.initData)).next(),g={};!h.done;g={rf:void 0},h=f.next())g.rf=h.value,o.some(function(e){return function(t){var n=e.rf;return!(!t.keyId||t.keyId!=n.keyId)||t.initDataType==n.initDataType&&pe(t.initData,n.initData)}}(g))||o.push(g.rf);if(p.ta.keyIds)for(h=(f=c(p.ta.keyIds)).next();!h.done;h=f.next())s.add(h.value);if(p.ta.keySystemUris&&u)for(f=(p=c(p.ta.keySystemUris)).next();!f.done;f=p.next())u.add(f.value)}if(1==d.length)r.push(d[0]);else if(0>32),e.setUint32(12,4294967295&n)):e.setUint32(0,n))}var ho=new Le((function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])}));function go(e,t,n,r,i,a,o){this.N=e,this.Ka=t,this.ua=n,this.Oc=void 0===r?null:r,this.timescale=void 0===i?null:i,this.g=void 0===a?null:a,this.aesKey=void 0===o?null:o,this.mimeType=this.codecs=null}function vo(e,t){return e===t||(e&&t?e.$b()==t.$b()&&e.Yb()==t.Yb()&&_e(e.N().sort(),t.N().sort())&&pe(e.pc(),t.pc()):e==t)}function mo(e,t,n,r,i,a,o,s,u,l,d,f,p,h,g,v){for(l=void 0===l?[]:l,h=void 0===h?bo:h,this.startTime=e,this.j=this.endTime=t,this.C=n,this.Ka=r,this.ua=i,this.ba=a,this.timestampOffset=o,this.appendWindowStart=s,this.appendWindowEnd=u,this.g=l,this.tilesLayout=void 0===d?"":d,this.A=void 0===f?null:f,this.h=void 0===p?null:p,this.status=h,this.preload=!1,this.l=!0,this.m=!1,this.aesKey=void 0===g?null:g,this.thumbnailSprite=null,this.i=-1,this.s=void 0!==v&&v,this.F=this.o=!1,t=(e=c(this.g)).next();!t.done;t=e.next())t.value.Ng();this.s&&this.g.length&&this.g[this.g.length-1].Mg(),this.B=this.bandwidth=this.mimeType=this.codecs=null}function yo(e,t){e.ba=t;for(var n=(e=c(e.g)).next();!n.done;n=e.next())yo(n.value,t)}go.prototype.$b=function(){return this.Ka},go.prototype.Yb=function(){return this.ua},go.prototype.pc=function(){return this.g},B("shaka.media.InitSegmentReference",go),go.prototype.getEndByte=go.prototype.Yb,go.prototype.getStartByte=go.prototype.$b,(r=mo.prototype).N=function(){return this.C()},r.getStartTime=function(){return this.startTime},r.Ph=function(){return this.endTime},r.$b=function(){return this.Ka},r.Yb=function(){return this.ua},r.hi=function(){return this.tilesLayout},r.gi=function(){return this.A},r.ac=function(){return this.status},r.Ai=function(){this.status=wo},r.Bf=function(){this.preload=!0},r.isPreload=function(){return this.preload},r.Nc=function(){this.l=!1},r.si=function(){return this.l},r.Ng=function(){this.o=!0},r.ui=function(){return this.o},r.Mg=function(){this.F=!0},r.ti=function(){return this.F},r.Lg=function(){this.m=!0},r.ni=function(){return this.m},r.qe=function(e){this.thumbnailSprite=e},r.fi=function(){return this.thumbnailSprite},r.offset=function(e){this.startTime+=e,this.endTime+=e,this.j+=e;for(var t=c(this.g),n=t.next();!n.done;n=t.next())(n=n.value).startTime+=e,n.endTime+=e,n.j+=e},r.Zf=function(e){null==this.h?G("Sync attempted without sync time!"):(e=this.h-e-this.startTime,.001<=Math.abs(e)&&this.offset(e))},r.cj=function(e){this.B=e},r.pc=function(){return this.B},B("shaka.media.SegmentReference",mo),mo.prototype.getSegmentData=mo.prototype.pc,mo.prototype.setSegmentData=mo.prototype.cj,mo.prototype.syncAgainst=mo.prototype.Zf,mo.prototype.offset=mo.prototype.offset,mo.prototype.getThumbnailSprite=mo.prototype.fi,mo.prototype.setThumbnailSprite=mo.prototype.qe,mo.prototype.hasByterangeOptimization=mo.prototype.ni,mo.prototype.markAsByterangeOptimization=mo.prototype.Lg,mo.prototype.isLastPartial=mo.prototype.ti,mo.prototype.markAsLastPartial=mo.prototype.Mg,mo.prototype.isPartial=mo.prototype.ui,mo.prototype.markAsPartial=mo.prototype.Ng,mo.prototype.isIndependent=mo.prototype.si,mo.prototype.markAsNonIndependent=mo.prototype.Nc,mo.prototype.isPreload=mo.prototype.isPreload,mo.prototype.markAsPreload=mo.prototype.Bf,mo.prototype.markAsUnavailable=mo.prototype.Ai,mo.prototype.getStatus=mo.prototype.ac,mo.prototype.getTileDuration=mo.prototype.gi,mo.prototype.getTilesLayout=mo.prototype.hi,mo.prototype.getEndByte=mo.prototype.Yb,mo.prototype.getStartByte=mo.prototype.$b,mo.prototype.getEndTime=mo.prototype.Ph,mo.prototype.getStartTime=mo.prototype.getStartTime,mo.prototype.getUris=mo.prototype.N;var bo=0,wo=1;function xo(e){return 1==e.length&&1e-4>e.end(0)-e.start(0)}function So(e){return!e||xo(e)?null:e.length?e.end(e.length-1):null}function To(e,t){return!(!e||!e.length||xo(e)||t>e.end(e.length-1))&&t>=e.start(0)}function ko(e,t){if(!e||!e.length||xo(e))return 0;for(var n=0,r=(e=c(Co(e))).next();!r.done;r=e.next()){var i=r.value;r=i.start,(i=i.end)>t&&(n+=i-Math.max(r,t))}return n}function Co(e){if(!e)return[];for(var t=[],n=0;ne[t+3]&&255>e[t+4]&&128>e[t+6]&&128>e[t+7]&&128>e[t+8]&&128>e[t+9]}function Po(e,t){return t+10<=e.length&&51===e[t]&&68===e[t+1]&&73===e[t+2]&&255>e[t+3]&&255>e[t+4]&&128>e[t+6]&&128>e[t+7]&&128>e[t+8]&&128>e[t+9]}function Do(e,t){var n=(127&e[t])<<21;return n|=(127&e[t+1])<<14,(n|=(127&e[t+2])<<7)|127&e[t+3]}function Lo(e){var t={key:e.type,description:"",data:"",mimeType:null,pictureType:null};if("APIC"===e.type){if(2>e.size||3!==e.data[0])return null;var n=e.data.subarray(1).indexOf(0);if(-1===n)return null;var r=ft(ve(e.data,1,n)),i=e.data[2+n],a=e.data.subarray(3+n).indexOf(0);if(-1===a)return null;var o,s=ft(ve(e.data,3+n,a));return o="--\x3e"===r?ft(ve(e.data,4+n+a)):ge(e.data.subarray(4+n+a)),t.mimeType=r,t.pictureType=i,t.description=s,t.data=o,t}return"TXXX"===e.type||"WXXX"===e.type?2>e.size||3!==e.data[0]||-1===(r=e.data.subarray(1).indexOf(0))?null:(n=ft(ve(e.data,1,r)),e=ft(ve(e.data,2+r)).replace(/\0*$/,""),t.description=n,t.data=e,t):"PRIV"===e.type?2>e.size||-1===(n=e.data.indexOf(0))?null:(n=ft(ve(e.data,0,n)),t.description=n,"com.apple.streaming.transportStreamTimestamp"==n?(n=e.data.subarray(n.length+1),e=1&n[3],n=(n[4]<<23)+(n[5]<<15)+(n[6]<<7)+n[7],n/=45,e&&(n+=47721858.84),t.data=n):(e=ge(e.data.subarray(n.length+1)),t.data=e),t):"T"===e.type[0]?2>e.size||3!==e.data[0]?null:(e=ft(e.data.subarray(1)).replace(/\0*$/,""),t.data=e,t):"W"===e.type[0]?(e=ft(e.data).replace(/\0*$/,""),t.data=e,t):e.data?(t.data=ge(e.data),t):null}function Ro(e){for(var t=0,n=[];_o(e,t);){var r=Do(e,t+6);for(e[t+5]>>6&1&&(t+=10),r=(t+=10)+r;t+10>6&1&&(r+=10),r+=10,r+=Do(e,t+6),Po(e,t+10)&&(r+=10),t+=r;return 0>10))+String.fromCharCode(96+((960&e)>>5))+String.fromCharCode(96+(31&e))}}function Fo(e,t,n){var r=e.P(),i=[],a=null;1&n&&(a=e.P()),4&n&&e.skip(4);for(var o=0;oe?"0":"")+e}function Ho(e,t){if(this.j=e,void 0!==t&&t){t=new Uint8Array(e.byteLength);for(var n=0,r=0;r>>32-n;return e.g-=n,0>>t))return e.h<<=t,e.g-=t,t;return qo(e),t+Xo(e)}function Wo(e){Ko(e,1+Xo(e))}function Yo(e){return Go(e,Xo(e)+1)-1}function Jo(e){return 1&(e=Yo(e))?1+e>>>1:-1*(e>>>1)}function Zo(e){return 1===Go(e,1)}function Qo(e){return Go(e,8)}function es(e,t){for(var n=8,r=8,i=0;it.byteLength-6)return null;var r=t[7];if(192&r){var i=536870912*(14&t[9])+4194304*(255&t[10])+16384*(254&t[11])+128*(255&t[12])+(254&t[13])/2;null==e.s&&(e.s=i),n.pts=as(i,e.s),e.s=n.pts,n.dts=n.pts,64&r&&(r=536870912*(14&t[14])+4194304*(255&t[15])+16384*(254&t[16])+128*(255&t[17])+(254&t[18])/2,null==e.o&&(e.o=r),n.dts=as(r,e.o)),e.o=n.dts}return e=t[8]+9,t.byteLength<=e?null:(n.data=t.subarray(e),n)}function is(e){var t=e.sc();return 1t&&(n=-1);4294967296ss(e))}function ss(e){for(var t=Math.min(1e3,e.length-564),n=0;ne.length)return this;for(var t=Math.max(0,ss(e)),n=e.length-(e.length+t)%188,r=!1,i=t;i>4){var s=i+5+e[i+4];if(s==i+188)continue}else s=i+4;switch(o){case 0:a&&(s+=e[s]+1),this.G=(31&e[s+10])<<8|e[s+11];break;case 17:case 8191:break;case this.G:a&&(s+=e[s]+1),o={audio:-1,video:-1,Sd:-1,audioCodec:"",videoCodec:""};var u=s+3+((15&(a=e)[s+1])<<8|a[s+2])-4;for(s+=12+((15&a[s+10])<<8|a[s+11]);s=i-a)return u;c=++d,l="hvc"==this.m?e[d]>>1&63:31&e[d]}s=0}else s++;d>=i-1&&0<=c&&0<=s&&(o={data:e.subarray(c+a,i),fullData:e.subarray(c,i),type:l,time:r})}return o&&u.push(o),!u.length&&t&&(t.data=dr(t.data,e),t.fullData=dr(t.fullData,e)),u},r.getMetadata=function(){for(var e=[],t=c(this.l),n=t.next();!n.done;n=t.next())(n=rs(this,n=dr.apply(ar,l(n.value))))&&e.push({cueTime:n.pts?n.pts/9e4:null,data:n.data,frames:Ro(n.data),dts:n.dts,pts:n.pts});return e},r.Xb=function(){if(this.i.length&&!this.h.length){for(var e=!1,t=c(this.i),n=t.next();!n.done;n=t.next()){var r=dr.apply(ar,l(n.value)),i=rs(this,r);n=this.h.length?this.h[this.h.length-1]:null,i&&null!=i.pts&&null!=i.dts&&(!n||n.pts!=i.pts&&n.dts!=i.dts)?(this.h.length&&i.dts<(n.dts||0)&&(e=!0),this.h.push(i)):this.h.length&&(r=i?i.data:r)&&((n=this.h.pop()).data=dr(n.data,r),this.h.push(n))}e&&(this.h=this.h.sort((function(e,t){var n=(e.pts||0)-(t.pts||0);return(e.dts||0)-(t.dts||0)||n})))}return this.h},r.sc=function(e){if(e=void 0===e||e,this.j.length&&!this.g.length){for(var t=!1,n=c(this.j),r=n.next();!r.done;r=n.next()){var i=dr.apply(ar,l(r.value)),a=rs(this,i);r=this.g.length?this.g[this.g.length-1]:null,a&&null!=a.pts&&null!=a.dts&&(!r||r.pts!=a.pts&&r.dts!=a.dts)?(this.g.length&&a.dts<(r.dts||0)&&(t=!0),this.g.push(a)):this.g.length&&(i=a?a.data:i)&&((r=this.g.pop()).data=dr(r.data,i),this.g.push(r))}if(e){for(n=[],i=(r=c(this.g)).next();!i.done;i=r.next())if((i=i.value).nalus=this.Hf(i,o,void 0),i.nalus.length){n.push(i);var o=i.nalus[i.nalus.length-1]}this.g=n}t&&(this.g=this.g.sort((function(e,t){var n=(e.pts||0)-(t.pts||0);return(e.dts||0)-(t.dts||0)||n})))}return e?this.g:(e=this.g,this.g=[],e)},r.getStartTime=function(e){if("audio"==e){e=null;var t=this.Xb();return t.length&&(e=t[0],e=Math.min(e.dts,e.pts)/9e4),e}return"video"==e?(e=null,(t=this.sc(!1)).length&&(e=t[0],e=Math.min(e.dts,e.pts)/9e4),e):null},r.dd=function(){return{audio:this.A,video:this.m}},r.Qd=function(){for(var e=[],t=c(this.sc()),n=t.next();!n.done;n=t.next())e.push.apply(e,l(n.value.nalus));return e},r.ki=function(){oe("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var e=this.pf();return{height:e.height,width:e.width}},r.pf=function(){return"hvc"==this.m?function(e){var t={height:null,width:null,codec:null,frameRate:null},n=e.Qd();if(!n.length)return t;if(!(n=n.find((function(e){return 33==e.type}))))return t;var r=new Ho(n.fullData,!0);Qo(r),Qo(r),Go(r,4);var i=Go(r,3);Zo(r);var a=Go(r,2),o=Go(r,1),s=Go(r,5),u=Go(r,32);n=Qo(r);for(var c=Qo(r),l=Qo(r),d=Qo(r),f=Qo(r),p=Qo(r),h=Qo(r),g=[],v=[],m=0;mm;m++)Go(r,2);for(m=0;mn;n++)t|=(e>>n&1)<<31-n;return t>>>0}(u),o=1==o?"H":"L",a="hvc1."+["","A","B","C"][a]+s,a+="."+r.toString(16).toUpperCase(),a+="."+o+h,p&&(a+="."+p.toString(16).toUpperCase()),f&&(a+="."+f.toString(16).toUpperCase()),d&&(a+="."+d.toString(16).toUpperCase()),l&&(a+="."+l.toString(16).toUpperCase()),c&&(a+="."+c.toString(16).toUpperCase()),n&&(a+="."+n.toString(16).toUpperCase()),t.codec=a,t.frameRate=is(e),t}(this):function(e){var t={height:null,width:null,codec:null,frameRate:null},n=e.Qd();if(!n.length)return t;if(!(n=n.find((function(e){return 7==e.type}))))return t;var r=Qo(n=new Ho(n.data)),i=Qo(n),a=Qo(n);if(Wo(n),us.includes(r)){var o=Yo(n);if(3===o&&Ko(n,1),Wo(n),Wo(n),Ko(n,1),Zo(n)){o=3!==o?8:12;for(var s=0;ss?16:64)}}if(Wo(n),0===(o=Yo(n)))Yo(n);else if(1===o)for(Ko(n,1),Wo(n),Wo(n),o=Yo(n),s=0;se.start(0)?0:e.length?e.start(0):null:null}function ys(e,t){return Object.keys(e.h).length?t==yr?e.i.h:So(bs(e,t)):null}function bs(e,t){if(e.S||e.$)return null;try{return e.h[t].buffered}catch(e){return null}}function ws(e,t,n,r,i,a,o,s,u,l){var d,f,p,h,g,v,m,y,b,S,T,k,C,A;return o=void 0!==o&&o,s=void 0!==s&&s,u=void 0!==u&&u,l=void 0!==l&&l,D((function(E){switch(E.g){case 1:if(t!=(d=br).wa){E.u(2);break}if(!("HLS"==e.aa&&0<=r.i)){E.u(3);break}return w(E,e.Ba,4);case 4:f=E.h,e.i.s=f;case 3:return w(E,function(e,t,n,r,i){var a,o,s,u,l,d,f;return D((function(p){if(1==p.g)return w(p,Promise.resolve(),2);if(!e.i||!e.j)return p.return();if(null==n||null==r)return e.i.parseInit(ve(t)),p.return();for(a=e.B?n:e.s,o={periodStart:e.s,segmentStart:n,segmentEnd:r,vttOffset:a},s=e.i.parseMedia(ve(t),o,i,[]),u=c(s),l=u.next();!l.done;l=u.next())d=l.value,e.A(d,i||null,o);f=s.filter((function(t){return t.startTime>=e.l&&t.startTime=e.l&&u.startTimen&&(n+=.001),e.h[t].timestampOffset=n,Cs(e,t)}function Cs(e,t){if(!e.S){var n=e.l[t][0];n&&(n.p.resolve(),Is(e,t))}}function As(e,t,n,r){return ha(e.K),n={start:n,p:new zi,uri:r},e.l[t].push(n),1==e.l[t].length&&Ms(e,t),n.p}function Es(e,t){var n,r,i,a,o;return D((function(s){switch(s.g){case 1:for(i in ha(e.K),n=[],r={},e.h)(r={ready:void 0}).ready=new zi,a={start:function(e){return function(){return e.ready.resolve()}}(r),p:r.ready,uri:null},e.l[i].push(a),n.push(r.ready),1==e.l[i].length&&a.start();return S(s,2),w(s,Promise.all(n),4);case 4:k(s,3);break;case 2:throw C(s);case 3:return S(s,5,6),w(s,t(),6);case 6:for(o in A(s),e.h)Is(e,o);E(s,0);break;case 5:throw new Pe(2,3,3015,C(s),e.g.error||"No error in the media element",null)}}))}function Is(e,t){e.l[t].shift(),Ms(e,t)}function Ms(e,t){var n=e.l[t][0];if(n)try{n.start()}catch(r){"QuotaExceededError"==r.name?n.p.reject(new Pe(2,3,3017,t)):n.p.reject(new Pe(2,3,3015,r,e.g.error||"No error in the media element",n.uri)),Is(e,t)}}function _s(e,t){return Es(e,(function(){return function(e,t){var n,r,i,a,o,s,u,l,d,f,p,h,g,v,m,y,b,x,S,k,C,I,M,_,P;return D((function(D){switch(D.g){case 1:for(s in n=br,e.S=!0,e.o=!1,r=e.g.currentTime,i=e.g.autoplay,a=e.g.paused,e.Na&&(e.g.autoplay=!1),T(D,2),e.s.Va(),o=[],e.j)o.push(e.j[s].destroy());for(u in e.l)for(l=e.l[u],d=l[0],e.l[u]=l.slice(0,1),d&&o.push(d.p.catch($r)),f=c(l.slice(1)),p=f.next();!p.done;p=f.next())p.value.p.reject(new Pe(2,7,7003,void 0));for(h in e.h){g=e.h[h];try{e.m.removeSourceBuffer(g)}catch(e){}}return w(D,Promise.all(o),4);case 4:return e.j={},v=e.m.duration,e.O=new zi,e.m=ps(e,e.O),w(D,e.O,5);case 5:!isNaN(v)&&v?e.m.duration=v:!isNaN(e.qa)&&e.qa&&(e.m.duration=e.qa),m=new zi,y=e.m.sourceBuffers,b=t.size,x=0,S=function(){++x===b&&(m.resolve(),e.s.cb(y,"addsourcebuffer",S))},e.s.D(y,"addsourcebuffer",S),k=c(t.keys()),C=k.next();case 6:return C.done?((P=t.get(n.Y))&&P.isAudioMuxedInVideo&&(e.o=!0),e.g.currentTime=r,w(D,m,2)):(I=C.value,M=e.h[I]?{timestampOffset:e.h[I].timestampOffset,appendWindowStart:e.h[I].appendWindowStart,appendWindowEnd:e.h[I].appendWindowEnd}:null,_=t.get(I),w(D,hs(e,I,_,_.codecs),9));case 9:e.o?(e.l[n.Y]=[],e.l[n.la]=[]):e.l[I]=[],M&&e.h[I]&&(e.h[I].timestampOffset=M.timestampOffset,e.h[I].appendWindowEnd=M.appendWindowEnd,e.h[I].appendWindowStart=M.appendWindowStart),C=k.next(),D.u(6);break;case 2:A(D),e.S=!1,ha(e.K),e.s.va(e.g,"canplaythrough",(function(){e.K.g||(e.g.autoplay=i,a||e.g.play())})),E(D,0)}}))}(e,t)}))}cs.prototype.release=function(){this.g&&(this.g.close(),this.g=null)},B("shaka.lcevc.Dec",cs),cs.prototype.release=cs.prototype.release,(r=fs.prototype).destroy=function(){return this.K.destroy()},r.init=function(e,t,n,r){t=void 0!==t&&t,n=void 0===n?"UNKNOWN":n,r=void 0!==r&&r;var i,a,o,s,u,l,d=this;return D((function(f){switch(f.g){case 1:return i=br,w(f,d.O,2);case 2:d.C=t,d.aa=n,d.La=r,d.Ga=!d.C&&"HLS"==d.aa&&!d.La,d.V={},d.M=null,d.na=null,d.L=null,d.ka=null,d.ja=new zi,a=c(e.keys()),o=a.next();case 3:if(o.done){f.u(5);break}return s=o.value,u=e.get(s),w(f,hs(d,s,u,u.codecs),6);case 6:d.o?(d.l[i.Y]=[],d.l[i.la]=[]):d.l[s]=[],o=a.next(),f.u(3);break;case 5:(l=e.get(i.Y))&&l.isAudioMuxedInVideo&&(d.o=!0),x(f)}}))},r.configure=function(e){this.A=e,this.i&&(this.i.A=e.modifyCueCallback)},r.zb=function(){var e={total:this.S?[]:Co(this.g.buffered),audio:Co(bs(this,"audio")),video:Co(bs(this,"video")),text:[]};if(this.i){var t=this.i.g,n=this.i.h;null!=t&&null!=n&&e.text.push({start:t,end:n})}return e},r.remove=function(e,t,n){var r,i=this;return D((function(a){return 1==a.g?e==(r=br).wa?w(a,i.i.remove(t,n),0):w(a,As(i,e,(function(){return Ss(i,e,t,n)}),null),4):i.o?w(a,As(i,r.Y,(function(){return Ss(i,r.Y,t,n)}),null),0):a.u(0)}))},r.flush=function(e){var t,n=this;return D((function(r){return 1==r.g?e==(t=br).wa?r.return():w(r,As(n,e,(function(){n.g.currentTime-=.001,Cs(n,e)}),null),2):n.o?w(r,As(n,t.Y,(function(){var e=t.Y;n.g.currentTime-=.001,Cs(n,e)}),null),0):r.u(0)}))},r.endOfStream=function(e){var t=this;return D((function(n){return w(n,Es(t,(function(){vs(t)||"closed"===t.m.readyState||(e?t.m.endOfStream(e):t.m.endOfStream())})),0)}))},r.bb=function(e){var t=this;return D((function(n){return w(n,Es(t,(function(){if(en.end-.5)){t=!0;break e}t=!1}return t}function Us(e,t,n,r,i){var a=this;this.A=i,this.g=e,this.B=t,this.m=n,this.l=new Q,this.j=!1,this.F=e.readyState,this.C=this.i=0,this.h=r,this.s=!1,this.l.D(e,"waiting",(function(){return js(a)})),this.o=new Be((function(){js(a)})).Ra(this.m.gapJumpTimerTime)}function js(e){if(0!=e.g.readyState){if(e.g.seeking){if(!e.j)return}else e.j=!1;if(!e.g.paused||e.g.currentTime==e.i&&(e.g.autoplay||e.g.currentTime!=e.i)){var t;if(e.g.readyState!=e.F&&(e.F=e.g.readyState),!(t=!e.h)){var n=(t=e.h).l,r=Os(n),i=n.g.currentTime,a=Date.now()/1e3;t.g==i&&t.s==r||(t.m=a,t.g=i,t.s=r,t.h=!1),(r=(i=a-t.m)>=t.A&&r&&!t.h)&&(t.i(t.g,i),t.h=!0,t.g=n.g.currentTime,t.o++,t.j(new Yi("stalldetected"))),t=!r}t&&(t=e.g.currentTime,r=function(e,t,n){return e&&e.length&&!xo(e)&&0<=(e=Co(e).findIndex((function(e,r,i){return e.start>t&&(0==r||i[r-1].end-t<=n)})))?e:null}(n=e.g.buffered,t,e.m.gapDetectionThreshold),null!=r&&(0!=r||e.s))&&(i=n.start(r),(navigator.userAgent.match(/Edge\//)||He()||qe())&&(i=Math.ceil(100*(i+e.m.gapPadding))/100),i>=e.B.Bb()||.001>i-t||(0!=r&&n.end(r-1),e.g.currentTime=i,t==e.i&&(e.i=i),e.C++,e.A(new Yi("gapjumped"))))}}}function Fs(e,t,n,r){t==HTMLMediaElement.HAVE_NOTHING||e.readyState>=t?r():(t=Bs.value().get(t),n.va(e,t,r))}(r=Ls.prototype).getDuration=function(){return this.l},r.Wh=function(){return this.h},r.gh=function(e){this.i=e},r.bb=function(e){this.l=e},r.ai=function(){return this.i},r.eh=function(e){this.A=e},r.zc=function(e){e&&!this.B&&(this.I=!0),this.B=e},r.pe=function(e){this.o=e},r.Pd=function(){return this.o},r.Tf=function(e){this.C=e},r.Oh=function(){return this.C},r.Rg=function(e,t){if(0!=e.length){var n=(Date.now()+this.A)/1e3;if(0!=(e=e.filter((function(e){return e.start+tMath.abs(e.g.currentTime-t)?qs(e):(e.h.va(e.g,"seeking",(function(){qs(e)})),Gs(e.i,e.g.currentTime&&0!=e.g.currentTime?e.g.currentTime:t))}function qs(e){e.o=!0,e.h.D(e.g,"seeking",(function(){return e.m()})),e.s(e.g.currentTime)}function Ks(e){var t=this;this.g=e,this.m=10,this.j=this.l=this.i=0,this.h=new Be((function(){0>=t.i||t.g.currentTime!=t.l||t.g.currentTime===t.j?t.h.stop():(t.g.currentTime=t.j,t.i--)}))}function Gs(e,t){e.l=e.g.currentTime,e.j=t,e.i=e.m,e.g.currentTime=t,e.h.Ra(.1)}function Xs(e){this.h=e,this.j=!1,this.g=null,this.i=new Q}function Ws(e,t,n,r,i,a){var o=this;this.i=e,this.g=t.presentationTimeline,this.B=t.minBufferTime||0,this.l=n,this.A=i,this.s=null,this.o=function(e,t,n){if(!t.stallEnabled)return null;var r=t.stallSkip;return function(e,t){e.i=t}(t=new Rs(new Ns(e),t.stallThreshold,n),(function(){r?e.currentTime+=r:(e.pause(),e.play())})),t}(e,n,a),this.j=new Us(e,t.presentationTimeline,n,this.o,a),this.h=new Vs(e,(function(){e:{var e=o.j;e.j=!0,e.s=!1;var t=$s(o.h);if(e=Js(o,t),.001o.g.getDuration()?o.g.Kb():o.g.Bb():0>e&&(e=o.g.Bb()+e),Ys(o,Zs(o,e))})),this.m=new Be((function(){if(0!=o.i.readyState&&!o.i.paused){var e=$s(o.h),t=o.g.Kb(),n=o.g.Bb();3>n-t&&(t=n-3),e=n?n-e.l.durationBackoff:t}function Js(e,t){var n=Math.max(e.B,e.l.rebufferingGoal),r=e.l.safeSeekOffset,i=e.g.Kb(),a=e.g.Bb(),o=e.g.getDuration();3>a-i&&(i=a-3);var s=e.g.gd(n),u=e.g.gd(r);return n=e.g.gd(n+r),t>=o?Ys(e,t):t>a?a-e.l.safeSeekEndOffset:t=s||To(e.i.buffered,t)?t:n}function Zs(e,t){var n=e.g.Kb();return t(e=e.g.Bb())?e:t}function Qs(e){this.g=e,this.m=null,this.i=0,this.o=!1}function eu(e){return e.g[0]||null}function tu(e,t,n){return new Qs([e=new mo(e,e+t,(function(){return n}),0,null,null,e,e,e+t)])}function nu(e,t,n,r){this.i=e,this.h=t,this.g=n,this.reverse=r}function ru(){Qs.call(this,[]),this.h=[]}function iu(e){var t=this;this.g=e,this.j=!1,this.i=this.g.Od(),this.h=new Be((function(){t.g.Og(.25*t.i)}))}function au(e){e.h.stop();var t=e.j?0:e.i;if(0<=t)try{return void(e.g.Od()!=t&&e.g.Wf(t))}catch(e){}e.h.Ra(.25),0!=e.g.Od()&&e.g.Wf(0)}function ou(e){var t=this;this.h=e,this.g=new Set,this.i=new Be((function(){su(t,!1)})).Ra(.25)}function su(e,t){for(var n=c(e.g),r=n.next();!r.done;r=n.next())r.value.j(e.h.currentTime,t)}function uu(){this.g=null,this.h=[]}function cu(e,t){var n=0;e.g&&e.g.state==t&&(n+=e.g.duration);for(var r=(e=c(e.h)).next();!r.done;r=e.next())n+=(r=r.value).state==t?r.duration:0;return n}function lu(){this.i=this.h=null,this.g=[]}function du(e,t,n){e.i!=t&&(e.i=t,e.g.push({timestamp:Date.now()/1e3,id:t.id,type:"text",fromAdaptation:n,bandwidth:null}))}function fu(){this.kc=this.Kg=this.s=this.A=this.I=this.B=this.o=this.j=this.H=this.C=this.i=this.S=this.V=this.L=this.M=this.O=this.l=this.m=NaN,this.K=0,this.F=this.G=NaN,this.g=new uu,this.h=new lu}function pu(e,t,n,r){this.m=e,this.i=t,this.l=n,this.h=new Map,this.j=new Map,this.g=null,this.o=r}function hu(e,t){e.l=t;for(var n=(e=c(e.h.values())).next();!n.done;n=e.next())n.value.g=t}function gu(e,t,n){if(n=void 0!==n&&n,!e.i.segmentIndex)return Promise.resolve();if(e.g||(e.g=e.i.segmentIndex.Jb(t,!0,e.o)),!e.g)return Promise.resolve();for(n&&e.g.next(),t=[];e.h.sizet;){var r=n.pop();r&&xu(e,r)}bu(e)}function xu(e,t){var n=e.h;t instanceof go&&(n=e.j),e=n.get(t),n.delete(t),e&&e.abort()}function Su(e){this.g=e,this.vd=this.Yf=null}function Tu(e,t,n){var r=new Uint8Array(0);return e.vd=e.g(t,n,(function(t){return D((function(n){if(1==n.g)return r=0=e[0].start&&t=e.length)return e;var t=e.find((function(e){return e.startsWith("dvav.")||e.startsWith("dva1.")||e.startsWith("dvh1.")||e.startsWith("dvhe.")||e.startsWith("dav1.")||e.startsWith("dvc1.")||e.startsWith("dvi1.")}));return t?ne('video/mp4; codecs="'+t+'"')?[t]:e.filter((function(e){return e!=t})):e}(r),t=t.concat(r).concat(e),n.length&&!t.length?n:t}function _u(t,n,r){var i,a,o,s,u;return D((function(c){if(1==c.g)return(i=n).cryptoKey?c.u(2):w(c,i.fetchKey(),3);if(!(a=i.iv))for(a=ve(new ArrayBuffer(16)),o=i.firstMediaSequenceNumber+r,s=a.byteLength-1;0<=s;s--)a[s]=255&o,o>>=8;return u="CBC"==n.blockCipherMode?{name:"AES-CBC",iv:a}:{name:"AES-CTR",counter:a,length:64},c.return(e.crypto.subtle.decrypt(u,i.cryptoKey,t))}))}function Pu(e,t,n,r,i){return e=aa(e,r,i),0==t&&null==n||(e.headers.Range=n?"bytes="+t+"-"+n:"bytes="+t+"-"),e}function Du(e,t){var n=this;this.g=t,this.l=e,this.h=null,this.G=new Map,this.B=1,this.s=this.j=null,this.I=0,this.i=new Map,this.F=!1,this.K=null,this.A=!1,this.m=new pa((function(){return function(e){var t,n,r,i,a,o;return D((function(s){if(1==s.g){for(t=[],n=c(e.i.values()),r=n.next();!r.done;r=n.next())Xu(i=r.value),t.push(Wu(i)),i.W&&(yu(i.W),i.W=null);for(a=c(e.o.values()),o=a.next();!o.done;o=a.next())yu(o.value);return w(s,Promise.all(t),2)}e.i.clear(),e.o.clear(),e.g=null,e.l=null,e.h=null,x(s)}))}(n)})),this.L=Date.now()/1e3,this.o=new Map,this.H={projection:null,hfov:null},this.O=0,this.M=1/0,this.C=null}function Lu(e,t){for(var n=0>e.g.ib(),r=c(e.i.values()),i=r.next();!i.done;i=r.next())(i=i.value).ha&&i.ha.Xc(n),i.W&&i.W.Xc(n);for(i=(r=c(e.o.values())).next();!i.done;i=r.next())i.value.Xc(n);(n=e.i.get("video"))&&(r=n.stream)&&(t?(t=r.trickModeVideo)&&!n.dc&&(Ou(e,t,!1,0,!1),n.dc=r):(t=n.dc)&&(n.dc=null,Ou(e,t,!0,0,!1)))}function Ru(e,t,n,r,i,a){n=void 0!==n&&n,r=void 0===r?0:r,i=void 0!==i&&i,a=void 0!==a&&a,e.j=t,e.F&&(t.video&&Ou(e,t.video,n,r,i,a),t.audio&&Ou(e,t.audio,n,r,i,a))}function Nu(e,t){D((function(n){if(1==n.g)return e.C=null,e.s=t,e.F?t.segmentIndex?n.u(2):w(n,t.createSegmentIndex(),2):n.return();Ou(e,t,!0,0,!1),x(n)}))}function Ou(e,t,n,r,i,a){var o=e.i.get(t.type);o||t.type!=yr?o&&(o.dc&&(t.trickModeVideo?(o.dc=t,t=t.trickModeVideo):o.dc=null),o.stream!=t||i)&&(e.o.has(t)?o.W=e.o.get(t):o.W&&function(e,t){t&&t!==e.i&&(yu(e),e.i=t)}(o.W,t),t.type==yr&&(i=Tr(t.mimeType,t.codecs),gs(e.g.ca,i,e.l.sequenceMode,t.external)),!e.o.has(o.stream)&&o.stream.closeSegmentIndex&&(o.Ea?(i="("+o.type+":"+o.stream.id+")",e.G.has(i)||e.G.set(i,o.stream.closeSegmentIndex)):o.stream.closeSegmentIndex()),i=o.stream.isAudioMuxedInVideo!=t.isAudioMuxedInVideo,o.stream=t,o.ha=null,o.jg=!!a,i?Ju(e,!0,!1):(n?o.$c?o.De=!0:o.Ea?(o.jc=!0,o.Jd=r,o.De=!0):(Xu(o),Ku(e,o,!0,r).catch((function(t){e.g&&e.g.onError(t)}))):o.Ea||o.eb||Gu(e,o,0),function(e,t){var n,r;return D((function(i){if(1==i.g)return t.mb?(n=t.stream,r=t.mb,n.segmentIndex?i.u(2):w(i,n.createSegmentIndex(),2)):i.return();if(t.mb!=r||t.stream!=n)return i.return();var a=e.g.fd(),o=ys(e.g.ca,t.type),s=t.stream.segmentIndex.find(t.Sa?t.Sa.endTime:a),u=null==s?null:t.stream.segmentIndex.get(s);s=u&&u.ua?u.ua-u.Ka:null,u&&!s&&(s=(u.endTime-u.getStartTime())*(t.stream.bandwidth||0)/8),s?((u=u.ba)&&(s+=(u.ua?u.ua-u.Ka:null)||0),a=8*s/(u=e.g.getBandwidthEstimate())<(o||0)-a-Math.max(e.l.minBufferTime||0,e.h.rebufferingGoal)||t.mb.h.g>s):a=!1,a&&t.mb.abort(),x(i)}))}(e,o).catch((function(t){e.g&&e.g.onError(t)})))):function(e,t){var n,r,i,a,o;D((function(s){switch(s.g){case 1:return n=br,e.I++,r=e.I,S(s,2),w(s,xs(e.g.ca,n.wa),4);case 4:k(s,3);break;case 2:i=C(s),e.g&&e.g.onError(i);case 3:a=Tr(t.mimeType,t.codecs),gs(e.g.ca,a,e.l.sequenceMode,t.external),(e.g.ca.fa.isTextVisible()||e.h.alwaysStreamText)&&e.I==r&&(o=ju(e,t),e.i.set(n.wa,o),Gu(e,o,0)),x(s)}}))}(e,t)}function Uu(e,t){t.$c||t.jc||(t.Ea?(t.jc=!0,t.Jd=0):null==ms(e.g.ca,t.type)?null==t.eb&&Gu(e,t,0):(Xu(t),Ku(e,t,!1,0).catch((function(t){e.g&&e.g.onError(t)}))))}function ju(e,t){return{stream:t,type:t.type,ha:null,W:Fu(e,t),Sa:null,Mc:null,Xd:null,Wd:null,Vd:null,dc:null,endOfStream:!1,Ea:!1,eb:null,jc:!1,Jd:0,De:!1,$c:!1,Vc:!0,Lf:!1,jd:!1,mb:null}}function Fu(e,t){if("video"===t.type&&e.h.disableVideoPrefetch||"audio"===t.type&&e.h.disableAudioPrefetch||t.type===yr&&("application/cea-608"==t.mimeType||"application/cea-708"==t.mimeType)||t.type===yr&&e.h.disableTextPrefetch)return null;if(e.o.has(t))return e.o.get(t);var n=e.i.get(t.type);return(n=n&&n.W)&&t===n.i?n:0e.g.ib()):null}function Bu(e,t,n,r,i,a,o,s){var u,c,l,d;return D((function(f){if(1==f.g)return u=br,c=new Map,e.j.audio&&c.set(u.Y,e.j.audio),e.j.video&&c.set(u.la,e.j.video),S(f,2),t.Wd=r,t.Vd=i,o&&(t.yf=o),s&&(t.zf=s),t.Xd=n,l=e.l.sequenceMode||"HLS"==e.l.type,w(f,function(e,t,n,r,i,a,o,s,u){var c,l;return D((function(d){return 1==d.g?t==(c=br).wa?(a||(e.i.s=n),function(e,t,n){e.l=t,e.m=n}(e.i,r,i),d.return()):(l=[],w(d,function(e,t,n,r,i){var a,o,s,u,c,l,d,f,p,h,g,v,m,y,b;return D((function(x){return 1==x.g?t==(a=br).wa?x.return(!1):(o=Ir(Pr(e.G[t])),s=_r(e.G[t]),c=!1,l=Tr(n,r),d=e.A.forceTransmux,(!ne(l)||!e.C&&Nr.includes(l))&&(d=!0),d&&(f=kr(n,r),p=On(f))&&(u=p(),h=vr(a.Y,(r||"").split(",")),g=vr(a.la,(r||"").split(",")),h&&g?(c=!0,v=g,t==a.Y&&(v=h),l=u.convertCodecs(t,kr(n,v))):l=u.convertCodecs(t,f)),m=Ir(Pr(l)),y=_r(l),o===m&&s===y?(e.j[t]&&!u?(e.j[t].destroy(),delete e.j[t]):!e.j[t]&&u?e.j[t]=u:u&&(e.j[t]&&e.j[t].transmux!=u.transmux?(e.j[t].destroy(),delete e.j[t],e.j[t]=u):u.destroy()),x.return(!1)):(b=!0,(e.o||c&&u&&!e.j[t])&&(b=!1),b&&"smooth"===e.A.codecSwitchingStrategy&&re()?w(x,function(e,t,n,r){return As(e,t,(function(){t!==yr&&(re()&&(e.j[t]&&(e.j[t].destroy(),delete e.j[t]),r&&(e.j[t]=r),e.h[t].changeType(n+e.A.addExtraFeaturesToSourceBuffer(n)),e.G[t]=n),Cs(e,t))}),null)}(e,t,l,u),3):(u&&u.destroy(),w(x,_s(e,i),3)))):x.return(!0)}))}(e,t,o,s,u),2)):(d.h||(l.push(As(e,t,(function(){return Ts(e,t)}),null)),e.o&&l.push(As(e,c.Y,(function(){return Ts(e,c.Y)}),null))),a||(l.push(As(e,t,(function(){return ks(e,t,n)}),null)),e.o&&l.push(As(e,c.Y,(function(){return ks(e,c.Y,n)}),null))),l.push(As(e,t,(function(){e.h[t].appendWindowStart=0,e.h[t].appendWindowEnd=i,e.h[t].appendWindowStart=r,Cs(e,t)}),null)),e.o&&l.push(As(e,c.Y,(function(){var t=c.Y;e.h[t].appendWindowStart=0,e.h[t].appendWindowEnd=i,e.h[t].appendWindowStart=r,Cs(e,t)}),null)),w(d,Promise.all(l),0))}))}(e.g.ca,t.type,n,r,i,l,a.mimeType||t.stream.mimeType,a.codecs||t.stream.codecs,c),4);if(2!=f.g)return k(f,0);throw d=C(f),t.Wd=null,t.Vd=null,t.yf=null,t.zf=null,t.Xd=null,d}))}function Vu(e,t,n,r,i,a,o,s){var u,c,l,d,f,p;return o=void 0!==o&&o,s=void 0!==s&&s,D((function(h){switch(h.g){case 1:return u=r.closedCaptions&&0u&&a)return n.endOfStream=!0,"video"==n.type&&(t=t.i.get(yr))&&zu(t)&&(t.endOfStream=!0),null;if(n.endOfStream=!1,o>=s)return t.h.updateIntervalSeconds/2;if(s=!n.ha,a=function(e,t,n,r){if(t.ha)return t.ha.current();if(t.Sa||r)return n=t.Sa?t.Sa.endTime:r,e=0>e.g.ib(),t.stream.segmentIndex&&(t.ha=t.stream.segmentIndex.Jb(n,!1,e)),t.ha&&t.ha.next().value;r=e.l.sequenceMode?0:e.h.inaccurateManifestTolerance;var i=Math.max(n-r,0);e=0>e.g.ib();var a=null;return r&&(t.stream.segmentIndex&&(t.ha=t.stream.segmentIndex.Jb(i,!1,e)),a=t.ha&&t.ha.next().value),a||(t.stream.segmentIndex&&(t.ha=t.stream.segmentIndex.Jb(n,!1,e)),a=t.ha&&t.ha.next().value),a}(t,n,r,a),!a)return t.h.updateIntervalSeconds;o=!1,s&&n.jg&&(o=!0,n.jg=!1),s=1/0;for(var l=(u=c(u=Array.from(t.i.values()))).next();!l.done;l=u.next())zu(l=l.value)||l.ha&&!l.ha.current()||(s=Math.min(s,l.Sa?l.Sa.endTime:r));return i>=s+t.l.presentationTimeline.h?t.h.updateIntervalSeconds:(n.W&&n.ha&&!t.o.has(n.stream)&&(n.W.Ia(a.startTime),gu(n.W,a.startTime)),function(t,n,r,i,a){var o,s,u,c,l,d,f,p,h,g,v,m,y,b,T;return D((function(A){switch(A.g){case 1:if(o=br,s=n.stream,u=n.ha,n.Ea=!0,S(A,2),2==i.ac())throw new Pe(1,1,1011);return w(A,function(e,t,n,r){var i,a,o,s,u,c,l,d,f,p,h,g,v,m,y,b;return D((function(x){switch(x.g){case 1:if(i=br,a=null==t.Sa,o=[],s=Math.max(0,Math.max(n.appendWindowStart,e.O)-.1),u=Math.min(n.appendWindowEnd,e.M)+.01,c=n.codecs||t.stream.codecs,l=Mr(c),d=_r(n.mimeType||t.stream.mimeType),(f=n.timestampOffset)==t.Xd&&s==t.Wd&&u==t.Vd&&l==t.yf&&d==t.zf){x.u(2);break}if(p=t.yf&&t.zf&&function(e,t,n,r){if(t==yr)var i=!1;else{i=Ir(Pr(e.G[t]));var a=_r(e.G[t]),o=Tr(n,r),s=e.A.forceTransmux;(!ne(o)||!e.C&&Nr.includes(o))&&(s=!0),n=kr(n,r),s&&(s=On(n))&&(o=(s=s()).convertCodecs(t,n),s.destroy()),t=Ir(Pr(o)),o=_r(o),i=i!==t||a!==o}return!!i&&("smooth"!==e.A.codecSwitchingStrategy||!re()||e.o)}(e.g.ca,t.type,d,c),!p){x.u(3);break}if(h=null,t.type===i.la?h=e.i.get(i.Y):t.type===i.Y&&(h=e.i.get(i.la)),!h){x.u(3);break}return w(x,Wu(h).catch((function(){})),5);case 5:h.Mc=null,Uu(e,h);case 3:return w(x,Bu(e,t,f,s,u,n,l,d),2);case 2:return vo(n.ba,t.Mc)||(t.Mc=n.ba,n.l&&n.ba&&(g=Hu(e,t,n.ba),v=function(){var a,o,s,u,c,l;return D((function(d){switch(d.g){case 1:return S(d,2),w(d,g,4);case 4:return a=d.h,ha(e.m),o=null,s=new Map,u={projection:null,hfov:null},(new xa).box("moov",Sa).box("trak",Sa).box("mdia",Sa).R("mdhd",(function(e){o=jo(e.reader,e.version).timescale})).box("hdlr",(function(e){switch((e=e.reader).skip(8),e.wc()){case"soun":s.set(i.Y,o);break;case"vide":s.set(i.la,o)}o=null})).box("minf",Sa).box("stbl",Sa).R("stsd",Ta).box("encv",ka).box("avc1",ka).box("avc3",ka).box("hev1",ka).box("hvc1",ka).box("dvav",ka).box("dva1",ka).box("dvh1",ka).box("dvhe",ka).box("dvc1",ka).box("dvi1",ka).box("vexu",Sa).box("proj",Sa).R("prji",(function(e){e=e.reader.wc(),u.projection=e})).box("hfov",(function(e){e=e.reader.P()/1e3,u.hfov=e})).parse(a),function(e,t){if(e.H.projection!=t.projection||e.H.hfov!=t.hfov){if(null!=t.projection||null!=t.hfov){var n=(new Map).set("detail",t);n=new Yi("spatialvideoinfo",n)}else n=new Yi("nospatialvideoinfo");n.cancelable=!0,e.g.onEvent(n),e.H=t}}(e,u),s.has(t.type)?n.ba.timescale=s.get(t.type):null!=o&&(n.ba.timescale=o),c=t.stream.closedCaptions&&0(i=e.indexOf(".",i)));)0!=i&&"\\"==e[i-1]||(r[a=e.substring(a,i).replace(/\\\./g,".")]={},r=r[a],a=i+1),i+=1;return r[e.substring(a).replace(/\\\./g,".")]=t,n}function tc(e,t){return e&&t}function nc(e,t){function n(e){return Array.isArray(e)&&0===e.length}function r(e){return e&&"object"==typeof e&&!Array.isArray(e)}return e=function e(t,i){return Object.keys(t).reduce((function(a,o){var s=t[o];return i.hasOwnProperty(o)?r(s)&&r(i[o])?(s=e(s,i[o]),(0=e.height}));for(s.length&&(s.sort((function(e,t){return t.height-e.height})),r=s.filter((function(e){return e.height==s[0].height}))),n=[],r.length&&(a=Math.floor(r.length/2),r.sort((function(e,t){return e.bandwidth-t.bandwidth})),n.push(r[a])),r=(t=c(t)).next();!r.done;r=t.next())(r=r.value).type!=yr&&"image"!=r.type||n.push(r);return n}(t,d.preferredAudioLanguage,d.preferredVideoHdrLevel))}))},d}function lc(e,t,n){var r={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:"",headers:{}}};return Qu(e,t,n||cc(),r,"")}function dc(e){return tc([e],e)}function fc(e){return tc([e],e)}function pc(e,t,n,r){Qi.call(this),this.M=e,this.V=t,this.Ba=r.networkingEngine,this.B=n,this.o=null,this.xa=0,this.La=r.Ec,this.F=r.yi,this.Na=r.zi,this.g=r.config,this.j=this.G=this.h=null,this.ja=!1,this.H=r.Ji,this.na=!1,this.l=null,this.da=!1,this.i=this.C=null,this.aa=!1,this.L=new Map,this.ra=!1,this.Aa=r.Ii,this.$=new fu,this.fa=new zi,this.m=new zi,this.O=null,this.s=!1,this.Ha=r.Bh,this.ka=null,this.Ga=r.Ah,this.S=!1,this.K=[],this.I=[],this.A=!0}function hc(e,t,n){(e=t?e.I:e.K)?e.push(n):n()}function gc(e,t){if(e.O=t,e.S=!0,e.K)for(var n=(t=c(e.K)).next();!n.done;n=t.next())(n=n.value)();e.K=null}function vc(e){if(e.s)throw new Pe(2,7,7003)}function mc(e,t){e.dispatchEvent(new Yi("onstatechange",(new Map).set("state",t)))}function yc(e,t,n){var r,i,a,o,s;return D((function(u){return 1==u.g?(r=e.g.streaming.segmentPrefetchLimit||2,i=new pu(r,t,(function(t,n,r){return qu(t,n,r||null,e.g.streaming.retryParameters,e.Ba,e.A)}),!1),e.L.set(t.id,i),w(u,t.createSegmentIndex(),2)):(a=e.B||0,(s=(o=t.segmentIndex.Jb(a))?o.current():null)||(s=eu(t.segmentIndex)),s?n?s.ba?w(u,vu(i,s.ba),0):u.u(0):w(u,gu(i,s.startTime),0):u.u(0))}))}function bc(e,t){Qi.call(this);var n=this;this.i=e,this.l=t,this.g=new Map,this.m=[{Cc:null,Bc:Sc,tc:function(e,t){return wc(n,"enter",e,t)}},{Cc:xc,Bc:Sc,tc:function(e,t){return wc(n,"enter",e,t)}},{Cc:Tc,Bc:Sc,tc:function(e,t){return wc(n,"enter",e,t)}},{Cc:Sc,Bc:xc,tc:function(e,t){return wc(n,"exit",e,t)}},{Cc:Sc,Bc:Tc,tc:function(e,t){return wc(n,"exit",e,t)}},{Cc:xc,Bc:Tc,tc:function(e,t){return wc(n,"skip",e,t)}},{Cc:Tc,Bc:xc,tc:function(e,t){return wc(n,"skip",e,t)}}],this.h=new Q,this.h.D(this.i,"regionremove",(function(e){n.g.delete(e.region)}))}function wc(e,t,n,r){t=new Yi(t,new Map([["region",n],["seeking",r]])),e.dispatchEvent(t)}Vs.prototype.release=function(){this.h&&(this.h.release(),this.h=null),null!=this.i&&(this.i.release(),this.i=null),this.m=function(){},this.g=null},Ks.prototype.release=function(){this.h&&(this.h.stop(),this.h=null),this.g=null},(r=Xs.prototype).ready=function(){var e=this;Fs(this.h,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,(function(){!function(){if(null==e.g||0==e.g&&1/0!=e.h.duration)e.j=!0;else{var t=e.h.currentTime,n=e.g;0>e.g&&(n=Math.max(0,t+e.g)),t!=n?(e.i.va(e.h,"seeking",(function(){e.j=!0})),e.h.currentTime=n):e.j=!0}}()}))},r.release=function(){this.i&&(this.i.release(),this.i=null),this.h=null},r.Je=function(e){this.g=this.j?this.g:e},r.Cd=function(){return(this.j?this.h.currentTime:this.g)||0},r.ig=function(){return 0},r.hg=function(){return 0},r.Pg=function(){},(r=Ws.prototype).ready=function(){this.m.Ra(.25)},r.release=function(){this.h&&(this.h.release(),this.h=null),this.j&&(this.j.release(),this.j=null),this.m&&(this.m.stop(),this.m=null),this.i=this.h=this.g=this.l=null,this.A=function(){}},r.Je=function(e){zs(this.h,e)},r.Cd=function(){var e=$s(this.h);return 0=r.startTime&&e(e-=this.i)||e>=this.g.length?null:this.g[e]},r.offset=function(e){if(!this.o)for(var t=c(this.g),n=t.next();!n.done;n=t.next())n.value.offset(e)},r.$d=function(e){if(!this.o&&e.length){var t=Math.round(1e3*e[0].startTime)/1e3;this.g=this.g.filter((function(e){return Math.round(1e3*e.startTime)/1e3t&&(0==n.g.length||e.endTime>n.g[0].startTime)})),this.$d(e),this.Ia(t)},r.Ia=function(e){if(!this.o){var t=this.g.length;this.g=this.g.filter((function(t){return t.endTime>e})),this.i+=t-this.g.length}},r.Ic=function(e,t,n){if(n=void 0!==n&&n,!this.o){for(;this.g.length&&this.g[this.g.length-1].startTime>=t;)this.g.pop();for(;this.g.length&&this.g[0].endTime<=e;)this.g.shift(),n||this.i++;0!=this.g.length&&((t=new mo((e=this.g[this.g.length-1]).startTime,t,e.C,e.Ka,e.ua,e.ba,e.timestampOffset,e.appendWindowStart,e.appendWindowEnd,e.g,e.tilesLayout,e.A,e.h,e.status,e.aesKey)).mimeType=e.mimeType,t.codecs=e.codecs,t.i=e.i,this.g[this.g.length-1]=t)}},r.ue=function(e,t){var n=this;this.o||(this.m&&this.m.stop(),this.m=new Be((function(){var e=t();e?n.g.push.apply(n.g,l(e)):(n.m.stop(),n.m=null)})),this.m.Ra(e))},Qs.prototype[Symbol.iterator]=function(){return this.Jb(0)},Qs.prototype.Jb=function(e,t,n){t=void 0!==t&&t,n=void 0!==n&&n;var r=this.find(e);if(null==r)return null;var i=this.get(r);n?r++:r--;var a=-1;if(i&&0=s.startTime&&e=e.g.length&&(this.h++,this.g=0,e=this.i.get(this.h)),e&&0this.g&&(this.h--,this.g=(e=this.i.get(this.h))&&0=this.g);)this.g--,t=e.g[this.g]},B("shaka.media.SegmentIterator",nu),nu.prototype.resetToLastIndependent=nu.prototype.Nf,nu.prototype.next=nu.prototype.next,nu.prototype.current=nu.prototype.current,nu.prototype.currentPosition=nu.prototype.Hh,nu.prototype.setReverse=nu.prototype.Xc,v(ru,Qs),(r=ru.prototype).clone=function(){var e=new ru;return e.h=this.h.slice(),e.i=this.i,e},r.release=function(){for(var e=c(this.h),t=e.next();!t.done;t=e.next())t.value.release();this.h=[]},r.yb=function(e){for(var t=c(this.h),n=t.next();!n.done;n=t.next())n.value.yb(e)},r.find=function(e){for(var t=this.i,n=c(this.h),r=n.next();!r.done;r=n.next()){var i=(r=r.value).find(e);if(null!=i)return i+t;t+=r.getNumEvicted()+r.getNumReferences()}return null},r.get=function(e){for(var t=this.i,n=c(this.h),r=n.next();!r.done;r=n.next()){var i=(r=r.value).get(e-t);if(i)return i;i=r.getNumReferences(),t+=r.getNumEvicted()+i}return null},r.offset=function(){},r.$d=function(){},r.Ia=function(e){for(var t=c(this.h),n=t.next();!n.done;n=t.next())n.value.Ia(e);for(;1(r=r.value).endTime&&xu(this,r);t&&bu(this)},pu.prototype.Xc=function(e){this.o=e,this.g&&this.g.Xc(e)},Su.prototype.abort=function(){this.vd&&this.vd.abort()},v(ku,Qi),ku.prototype.release=function(){this.g.clear(),this.h.stop(),Qi.prototype.release.call(this)},v(Cu,Qi),Cu.prototype.release=function(){this.g.clear(),Qi.prototype.release.call(this)},Cu.prototype.j=function(e){for(var t=c(this.g.values()),n=t.next();!n.done;n=t.next()){var r=(n=n.value).Te;e:{for(var i=n.xd,a=i.length-1;0<=a;a--){var o=i[a];if(o.position<=e){i=o.Oc;break e}}i=null}a=i&&!(r===i||r&&i&&r.bandwidth==i.bandwidth&&r.audioSamplingRate==i.audioSamplingRate&&r.codecs==i.codecs&&r.contentType==i.contentType&&r.frameRate==i.frameRate&&r.height==i.height&&r.mimeType==i.mimeType&&r.channelsCount==i.channelsCount&&r.pixelAspectRatio==i.pixelAspectRatio&&r.width==i.width),o=i&&r&&i.label&&r.label&&r.label!==i.label;var s=i&&r&&i.language&&r.language&&r.language!==i.language;r=i&&r&&i.roles&&r.roles&&!_e(r.roles,i.roles),(o||s||r)&&Au(this,e,i.contentType)&&(n.Te=i,r=new Yi("audiotrackchange",new Map([["quality",i],["position",e]])),this.dispatchEvent(r)),a&&Au(this,e,i.contentType)&&(n.Te=i,JSON.stringify(i),n=new Yi("qualitychange",new Map([["quality",i],["position",e]])),this.dispatchEvent(n))}},(r=Du.prototype).destroy=function(){return this.m.destroy()},r.configure=function(e){if(this.h=e,this.K=new Vi({maxAttempts:Math.max(e.retryParameters.maxAttempts,2),baseDelay:e.retryParameters.baseDelay,backoffFactor:e.retryParameters.backoffFactor,fuzzFactor:e.retryParameters.fuzzFactor,timeout:0,stallTimeout:0,connectionTimeout:0},!0),e.disableAudioPrefetch){var t=this.i.get("audio");t&&t.W&&(yu(t.W),t.W=null);for(var n=(t=c(this.o.keys())).next();!n.done;n=t.next())n=n.value,yu(this.o.get(n)),this.o.delete(n)}for(e.disableTextPrefetch&&(t=this.i.get(yr))&&t.W&&(yu(t.W),t.W=null),e.disableVideoPrefetch&&(t=this.i.get("video"))&&t.W&&(yu(t.W),t.W=null),n=(t=c(this.i.keys())).next();!n.done;n=t.next())(n=this.i.get(n.value)).W?(wu(n.W,e.segmentPrefetchLimit),0=t||!n.some(function(e){return function(t){return qr(e.pb.audio.language,t)}}(a))||!(i=Fu(e,a.pb.audio))||(a.pb.audio.segmentIndex||a.pb.audio.createSegmentIndex(),e.o.set(a.pb.audio,i))}(this)},r.start=function(e){var t=this;return D((function(n){if(1==n.g)return w(n,function(e,t){var n,r,i,a,o,s,u,l,d;return D((function(f){if(1==f.g){if(n=br,!e.j)throw new Pe(2,5,5006);return r=new Map,i=new Set,e.j.audio&&(r.set(n.Y,e.j.audio),i.add(e.j.audio)),e.j.video&&(r.set(n.la,e.j.video),i.add(e.j.video)),e.s&&(r.set(n.wa,e.s),i.add(e.s)),w(f,e.g.ca.init(r,e.l.sequenceMode,e.l.type,e.l.ignoreManifestTimestampsInSegmentsMode),2)}for(ha(e.m),e.updateDuration(),a=c(r.keys()),o=a.next();!o.done;o=a.next())s=o.value,u=r.get(s),e.i.has(s)||(l=ju(e,u),t.has(u.id)&&(hu(d=t.get(u.id),(function(t,n,r){return qu(t,n,r||null,e.h.retryParameters,e.g.Ob)})),l.W=d),e.i.set(s,l),Gu(e,l,0));x(f)}))}(t,e||new Map),2);ha(t.m),t.F=!0,x(n)}))},r.Vc=function(){if(this.g)for(var e=this.g.fd(),t=c(this.i.keys()),n=t.next();!n.done;n=t.next()){var r=n.value;n=this.i.get(r);var i=this.g.ca;if(!(i=r==yr?null!=(i=i.i).g&&null!=i.h&&e>=i.g&&ee?this.g.ca.bb(e):this.g.ca.bb(this.h.infiniteLiveStreamDuration?1/0:Math.pow(2,32))},B("shaka.util.ConfigUtils",Zu),Zu.getDifferenceFromConfigObjects=nc,Zu.convertToConfigObject=ec,Zu.mergeConfigObjects=Qu,B("shaka.util.FairPlayUtils",rc),rc.commonFairPlayResponse=function(e,t){if(2===e){try{var n=ft(t.data)}catch(e){return}e=!1,""===(n=n.trim()).substr(0,5)&&""===n.substr(-6)&&(n=n.slice(5,-6),e=!0);try{var r=JSON.parse(n);r.ckc&&(n=r.ckc,e=!0),r.CkcMessage&&(n=r.CkcMessage,e=!0),r.License&&(n=r.License,e=!0)}catch(e){}e&&(t.data=ge(ur(n)))}},rc.expressplayFairPlayRequest=function(e,t){sc(e,t)},rc.conaxFairPlayRequest=function(e,t){sc(e,t)},rc.ezdrmFairPlayRequest=function(e,t){sc(e,t)},rc.verimatrixFairPlayRequest=function(e,t){2===e&&(e=sr(e=ve(t.body)),t.headers["Content-Type"]="application/x-www-form-urlencoded",t.body=gt("spc="+e))},rc.expressplayInitDataTransform=function(e,t,n){return oc(e,t,n)},rc.conaxInitDataTransform=function(t,n,r){if("skd"!==n)return t;n=r.serverCertificate,r=ht(t).split("skd://").pop().split("?").shift(),r=e.atob(r);var i=new ArrayBuffer(2*r.length);i=me(i);for(var a=0,o=r.length;ar.endTime?Tc:Sc;this.g.set(r,a);for(var o=c(this.m),s=o.next();!s.done;s=o.next())(s=s.value).Cc==i&&s.Bc==a&&s.tc(r,t)}}};var xc=1,Sc=2,Tc=3;function kc(e,t,n){var r,i,a,o,s,u,c;return D((function(l){switch(l.g){case 1:var d=new zn(e).Ua.split("/").pop().split(".");return r=1==d.length?"":d.pop().toLowerCase(),(i=Cc[r])?l.return(i):(a=0,o=aa([e],n),S(l,2),o.method="HEAD",w(l,t.request(a,o).promise,4));case 4:s=l.h,i=s.headers["content-type"],k(l,3);break;case 2:if(!(u=C(l))||1002!=u.code&&1001!=u.code){l.u(3);break}return o.method="GET",w(l,t.request(a,o).promise,6);case 6:c=l.h,i=c.headers["content-type"];case 3:return l.return(i?i.toLowerCase().split(";").shift():"")}}))}var Cc={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mpd:"application/dash+xml",ism:"application/vnd.ms-sstr+xml",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav",sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",ssa:"text/x-ssa",ass:"text/x-ssa",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"};function Ac(e,t){if(e.lineBreak)return"\n";if(e.nestedCues.length)return e.nestedCues.map((function(t){return Ac(t,e)})).join("");if(!e.payload)return e.payload;var n=[],r=e.fontWeight>=In,i=e.fontStyle==_n,a=e.textDecoration.includes(Dn);return r&&n.push(["b"]),i&&n.push(["i"]),a&&n.push(["u"]),""==(i=e.color)&&t&&(i=t.color),r="",(i=Ec(i))&&(r+="."+i),""==(i=e.backgroundColor)&&t&&(i=t.backgroundColor),(t=Ec(i))&&(r+=".bg_"+t),r&&n.push(["c",r]),n.reduceRight((function(e,t){var n=c(t);return"<"+(t=n.next().value)+(void 0===(n=n.next().value)?"":n)+">"+e+""}),e.payload)}function Ec(e){var t=(e=e.toLowerCase()).replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i);switch(t?e="#"+(256|parseInt(t[1],10)).toString(16).slice(1)+(256|parseInt(t[2],10)).toString(16).slice(1)+(256|parseInt(t[3],10)).toString(16).slice(1):e.startsWith("#")&&7>>0).toString()}if(e.startTime>=e.endTime)return null;var n=new VTTCue(e.startTime,e.endTime,e.payload);n.id=t(e.startTime.toString())+t(e.endTime.toString())+t(e.payload),n.lineAlign=e.lineAlign,n.positionAlign=e.positionAlign,e.size&&(n.size=e.size);try{n.align=e.textAlign}catch(e){}return"center"==e.textAlign&&"center"!=n.align&&(n.align="middle"),"vertical-lr"==e.writingMode?n.vertical="lr":"vertical-rl"==e.writingMode&&(n.vertical="rl"),1==e.lineInterpretation&&(n.snapToLines=!1),null!=e.line&&(n.line=e.line),null!=e.position&&(n.position=e.position),n}function Pc(e){if(1/0===e.endTime||e.endTimer,f=l?l.th:null;l&&(o.push(l.Se),l.yc&&o.push(l.yc),d||(a=!0,e.i.delete(u),l=null)),d&&(s.push(u),l?Oc(e,f)||(a=!0):(Fc(e,u,i),f=(l=e.i.get(u)).th,a=!0)),0e.l&&(s=32),r=0>r?100+r/s*100:r/s*100),1==o&&(a.position="absolute",n.writingMode==xn?(a.width="100%",n.lineAlign==Tn?a.top=r+"%":"end"==n.lineAlign&&(a.bottom=100-r+"%")):"vertical-lr"==n.writingMode?(a.height="100%",n.lineAlign==Tn?a.left=r+"%":"end"==n.lineAlign&&(a.right=100-r+"%")):(a.height="100%",n.lineAlign==Tn?a.right=r+"%":"end"==n.lineAlign&&(a.left=100-r+"%")))),a.lineHeight=n.lineHeight,e=function(e){var t=e.direction,n=e.positionAlign;return e=e.textAlign,n!==gn?n:"left"===e||"start"===e&&t===wn||"end"===e&&"rtl"===t?"line-left":"right"===e||"start"===e&&"rtl"===t||"end"===e&&t===wn?"line-right":"center"}(n),"line-left"==e?(a.cssFloat="left",null!==n.position&&(a.position="absolute",n.writingMode==xn?(a.left=n.position+"%",a.width="auto"):a.top=n.position+"%")):"line-right"==e?(a.cssFloat="right",null!==n.position&&(a.position="absolute",n.writingMode==xn?(a.right=100-n.position+"%",a.width="auto"):a.bottom=n.position+"%")):null!==n.position&&50!=n.position&&(a.position="absolute",n.writingMode==xn?(a.left=n.position+"%",a.width="auto"):a.top=n.position+"%"),a.textAlign=n.textAlign,a.textDecoration=n.textDecoration.join(" "),a.writingMode=n.writingMode,"writingMode"in document.documentElement.style&&a.writingMode==n.writingMode||(a.webkitWritingMode=n.writingMode),n.size&&(n.writingMode==xn?a.width=n.size+"%":a.height=n.size+"%")}(e,a,t,n,r),n=null,t.region&&t.region.id){var o=t.region,s=e.l===4/3?2.5:1.9;if(n=o.id+"_"+o.width+"x"+o.height+(o.heightUnits==Ce?"%":"px")+"-"+o.viewportAnchorX+"x"+o.viewportAnchorY+(o.viewportAnchorUnits==Ce?"%":"px"),e.B.has(n))n=e.B.get(n);else{i=document.createElement("span");var u=o.heightUnits==Ce?"%":"px",c=o.widthUnits==Ce?"%":"px",l=o.viewportAnchorUnits==Ce?"%":"px";i.id="shaka-text-region---"+n,i.classList.add("shaka-text-region"),i.style.position="absolute";var d=o.height,f=o.width;2===o.heightUnits&&(d=5.33*o.height,u="%"),2===o.widthUnits&&(f=o.width*s,c="%"),i.style.height=d+u,i.style.width=f+c,2===o.viewportAnchorUnits?(s=o.viewportAnchorY/75*100,u=o.viewportAnchorX/(e.l===4/3?160:210)*100,s-=o.regionAnchorY*d/100,u-=o.regionAnchorX*f/100,i.style.top=s+"%",i.style.left=u+"%"):(i.style.top=o.viewportAnchorY-o.regionAnchorY*d/100+l,i.style.left=o.viewportAnchorX-o.regionAnchorX*f/100+l),0!==o.heightUnits&&0!==o.widthUnits&&0!==o.viewportAnchorUnits&&(o=Math.max(0,Math.min(100-(parseInt(i.style.width.slice(0,-1),10)||0),parseInt(i.style.left.slice(0,-1),10)||0)),i.style.top=Math.max(0,Math.min(100-(parseInt(i.style.height.slice(0,-1),10)||0),parseInt(i.style.top.slice(0,-1),10)||0))+"%",i.style.left=o+"%"),i.style.display="flex",i.style.flexDirection="column",i.style.alignItems="center",i.style.justifyContent="before"==t.displayAlign?"flex-start":"center"==t.displayAlign?"center":"flex-end",e.B.set(n,i),n=i}}i=a,r&&((i=document.createElement("span")).classList.add("shaka-text-wrapper"),i.style.backgroundColor=t.backgroundColor,i.style.lineHeight="normal",a.appendChild(i)),e.i.set(t,{Se:a,th:i,yc:n})}function Bc(e,t,n){var r=(r=new RegExp(/(\d*\.?\d+)([a-z]+|%+)/).exec(e))?{value:Number(r[1]),unit:r[2]}:null;if(!r)return e;var i=r.value;switch(r.unit){case"%":return i/100*n.clientHeight/t.cellResolution.rows+"px";case"c":return n.clientHeight*i/t.cellResolution.rows+"px";default:return e}}function Vc(e,t){this.h=e,this.g=t,this.i=void 0,this.l=!1,this.o=!0,this.j=this.m=!1}function $c(t){return t.g.sessionId||(t.g.sessionId=e.crypto.randomUUID()),{v:1,sf:t.i,sid:t.g.sessionId,cid:t.g.contentId,mtp:t.h.getBandwidthEstimate()/1e3}}function zc(e,t,n){n=void 0===n?{}:n;var r=void 0===r?e.g.useHeaders:r;if(e.g.enabled){Object.assign(n,$c(e)),n.pr=e.h.ib();var i=n.ot===Wc||n.ot===Yc;if(e.m&&i&&(n.bs=!0,n.su=!0,e.m=!1),null==n.su&&(n.su=e.o),e=function(e,t){var n=e.g.includeKeys;return n.length?Object.keys(t).reduce((function(e,r){return n.includes(r)&&(e[r]=t[r]),e}),{}):t}(e,n),r)r=function(e){for(var t=Object.keys(e),n={},r=["Object","Request","Session","Status"],i=[{},{},{},{}],a={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},o=(t=c(t)).next();!o.done;o=t.next())i[null!=a[o=o.value]?a[o]:1][o]=e[o];for(e=0;e=n})))?1e3*(e.end-n):0}function qc(e){function t(e){return 100*n(e/100)}function n(e){return Math.round(e)}for(var r,i=[],a={br:n,d:n,bl:t,dl:t,mtp:t,nor:function(e){return encodeURIComponent(e)},rtp:t,tb:n},o=Object.keys(e||{}).sort(),s=(o=c(o)).next();!s.done;s=o.next()){var u=e[s=s.value];if(r=u,!(Number.isNaN(r)||null==r||""===r||!1===r||"v"===s&&1===u||"pr"==s&&1===u)){var l,d=a[s];d&&(u=d(u)),l="string"==(d=typeof u)&&"ot"!==s&&"sf"!==s&&"st"!==s?s+"="+JSON.stringify(u):"boolean"===d?s:"symbol"===d?s+"="+u.description:s+"="+u,i.push(l)}}return i.join(",")}function Kc(e,t){return!t||e.includes("offline:")?e:((e=new zn(e)).g.set("CMCD",t),e.toString())}(r=Dc.prototype).configure=function(){},r.remove=function(e,t){return!!this.g&&(Lc(this.g,(function(n){return n.startTimee})),!0)},r.append=function(e){var t=Ic(e),n=[];e=this.g.cues?Array.from(this.g.cues):[];for(var r=(t=c(t)).next(),i={};!r.done;i={Lc:void 0},r=t.next())i.Lc=r.value,!e.some(function(e){return function(t){return t.startTime==e.Lc.startTime&&t.endTime==e.Lc.endTime&&t.text==e.Lc.payload}}(i))&&i.Lc.payload&&(r=_c(i.Lc))&&n.push(r);for(t=(e=c(e=n.slice().sort((function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime!=t.endTime?e.endTime-t.startTime:"line"in VTTCue.prototype?n.indexOf(t)-n.indexOf(e):n.indexOf(e)-n.indexOf(t)})))).next();!t.done;t=e.next())this.g.addCue(t.value)},r.destroy=function(){return this.g&&(Lc(this.g,(function(){return!0})),this.g.mode="disabled"),this.g=null,Promise.resolve()},r.isTextVisible=function(){return"showing"==this.g.mode},r.setTextVisibility=function(e){this.g.mode=e?"showing":"hidden"},r.setTextLanguage=function(){},B("shaka.text.SimpleTextDisplayer",Dc),Dc.prototype.setTextLanguage=Dc.prototype.setTextLanguage,Dc.prototype.setTextVisibility=Dc.prototype.setTextVisibility,Dc.prototype.isTextVisible=Dc.prototype.isTextVisible,Dc.prototype.destroy=Dc.prototype.destroy,Dc.prototype.append=Dc.prototype.append,Dc.prototype.remove=Dc.prototype.remove,Dc.prototype.configure=Dc.prototype.configure,(r=Rc.prototype).configure=function(){},r.remove=function(){},r.append=function(){},r.destroy=function(){},r.isTextVisible=function(){return!1},r.setTextVisibility=function(){},r.setTextLanguage=function(){},B("shaka.text.StubTextDisplayer",Rc),Rc.prototype.setTextLanguage=Rc.prototype.setTextLanguage,Rc.prototype.setTextVisibility=Rc.prototype.setTextVisibility,Rc.prototype.isTextVisible=Rc.prototype.isTextVisible,Rc.prototype.destroy=Rc.prototype.destroy,Rc.prototype.append=Rc.prototype.append,Rc.prototype.remove=Rc.prototype.remove,Rc.prototype.configure=Rc.prototype.configure,(r=Nc.prototype).configure=function(e){this.C&&this.C.Ra(e.captionsUpdatePeriod)},r.append=function(e){for(var t=[].concat(l(this.h)),n=(e=c(Mc(e))).next(),r={};!n.done;r={Re:void 0},n=e.next())r.Re=n.value,t.some(function(e){return function(t){return ln(t,e.Re)}}(r))||this.h.push(r.Re);jc(this)},r.destroy=function(){return this.g?(this.s.removeChild(this.g),this.g=null,this.m=!1,this.h=[],this.C&&this.C.stop(),this.i.clear(),this.j&&(this.j.release(),this.j=null),this.o&&(this.o.disconnect(),this.o=null),Promise.resolve()):Promise.resolve()},r.remove=function(e,t){if(!this.g)return!1;var n=this.h.length;return this.h=this.h.filter((function(n){return n.startTime=t})),jc(this,n>this.h.length),!0},r.isTextVisible=function(){return this.m},r.setTextVisibility=function(e){this.m=e,jc(this,!0)},r.setTextLanguage=function(e){e&&"und"!=e?this.g.setAttribute("lang",e):this.g.setAttribute("lang","")},B("shaka.text.UITextDisplayer",Nc),Nc.prototype.setTextLanguage=Nc.prototype.setTextLanguage,Nc.prototype.setTextVisibility=Nc.prototype.setTextVisibility,Nc.prototype.isTextVisible=Nc.prototype.isTextVisible,Nc.prototype.remove=Nc.prototype.remove,Nc.prototype.destroy=Nc.prototype.destroy,Nc.prototype.append=Nc.prototype.append,Nc.prototype.configure=Nc.prototype.configure,B("shaka.text.WebVttGenerator",(function(){})),Vc.prototype.configure=function(e){this.g=e};var Gc="m",Xc="a",Wc="v",Yc="av",Jc="i",Zc="c",Qc="tt",el="d",tl="ld",nl="h",rl="lh";function il(e){this.h=e,this.g=null}function al(e){return!e||"false"!==e.toLowerCase()&&(/^[-0-9]/.test(e)?parseInt(e,10):e.replace(/["]+/g,""))}B("shaka.util.CmcdManager.StreamingFormat",{DASH:el,Dj:tl,HLS:nl,Ej:rl,Rj:"s",OTHER:"o"}),(r=il.prototype).configure=function(e){this.h=e},r.Cg=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(sl)?1e3*this.g.get(sl):null},r.Ag=function(){return this.h.enabled&&this.g&&this.g.has(ol)?1e3*this.g.get(ol):null},r.bi=function(){return this.h.enabled&&this.g&&this.g.has(ul)?this.g.get(ul):null},r.ci=function(){return this.h.enabled&&this.g&&this.g.has(cl)?this.g.get(cl):null},r.getBandwidthEstimate=function(e){var t=this.Ag();if(!t)return e;var n=this.h.estimatedThroughputWeightRatio;return 0=n?e*(1-n)+t*n:e},B("shaka.util.CmsdManager",il),il.prototype.getBandwidthEstimate=il.prototype.getBandwidthEstimate,il.prototype.getRoundTripTime=il.prototype.ci,il.prototype.getResponseDelay=il.prototype.bi,il.prototype.getEstimatedThroughput=il.prototype.Ag,il.prototype.getMaxBitrate=il.prototype.Cg;var ol="etp",sl="mb",ul="rd",cl="rtt";function ll(){this.g=null,this.h=[]}function dl(e,t){return D((function(n){if(1==n.g)return e.g?w(n,new Promise((function(t){return e.h.push(t)})),2):n.u(2);e.g=t,x(n)}))}function fl(t,n,r){n=void 0===n?null:n,Qi.call(this);var i=this;this.m=ud,this.h=null,this.ie=n,this.na=!1,this.Ae=new Q,this.od=new Q,this.l=new Q,this.Ha=new Q,this.Gb=new Q,this.F=this.I=this.C=this.G=null,this.Ee=0,this.aa=new ll,this.ka=this.La=this.$=this.i=this.Na=this.H=this.j=this.bc=this.L=this.gg=this.fa=this.O=this.md=this.M=this.je=this.K=this.Ib=null,this.Aa=!1,this.xa=this.o=null,this.fg=1e9,this.ud=[],this.V=NaN,this.g=Ul(this),this.S=null,this.Fe=-1,this.Ga=null,this.ja={width:1/0,height:1/0},this.ge=new to(this.g,this.ja,null),this.re=[],this.A=null,this.Ba=new Oi(this.g.preferredAudioLanguage,this.g.preferredVariantRole,this.g.preferredAudioChannelCount,this.g.preferredVideoHdrLevel,this.g.preferSpatialAudio,this.g.preferredVideoLayout,this.g.preferredAudioLabel,this.g.preferredVideoLabel,this.g.mediaSource.codecSwitchingStrategy,""),this.Hb=this.g.preferredTextLanguage,this.sd=this.g.preferredTextRole,this.qd=this.g.preferForcedSubs,this.pd=[],r&&r(this),this.O=function(e){return new Vc({getBandwidthEstimate:function(){return e.o?e.o.getBandwidthEstimate():NaN},zb:function(){return e.zb()},getCurrentTime:function(){return e.h?e.h.currentTime:0},ib:function(){return e.ib()},Ab:function(){return e.Ab()},rc:function(){return e.rc()},U:function(){return e.U()}},e.g.cmcd)}(this),this.fa=new il(this.g.cmsd),this.G=Cl(this),this.G.Uf(this.g.streaming.forceHTTP),this.G.Vf(this.g.streaming.forceHTTPS),this.G.m=this.g.streaming.minBytesForProgressEvents,this.Lb=this.da=this.s=null,this.He=!1,this.Ge=new Be((function(){return D((function(e){return 1==e.g?i.da?w(e,i.Ub(i.Lb,!0),3):e.u(0):4!=e.g?w(e,i.load(i.da),4):(i.He?i.Lb.pause():i.Lb.play(),i.da=null,i.He=!1,void x(e))}))})),pd&&(this.s=pd(),this.s.configure(this.g.ads),this.Gb.D(this.s,"ad-content-pause-requested",(function(e){var t;return D((function(n){if(1==n.g)return i.Ge.stop(),i.da?n.u(0):(i.Lb=i.h,i.He=i.h.ended,t=e.saveLivePosition||!1,w(n,i.tg(!0,t),3));i.da=n.h,x(n)}))})),this.Gb.D(this.s,"ad-content-resume-requested",(function(e){if(e=e.offset||0,i.da){var t=i.da;t.B&&e&&(t.B+=e)}i.Ge.Z(.1)})),this.Gb.D(this.s,"ad-content-attach-requested",(function(){return D((function(e){return i.h||!i.Lb?e.u(0):w(e,i.Ub(i.Lb,!0),0)}))}))),this.Ae.D(e,"online",(function(){Zl(i),i.Of()})),this.le=new Be((function(){for(var e=Date.now()/1e3,t=!1,n=!0,r=c(i.i.variants),a=r.next();!a.done;a=r.next())0<(a=a.value).disabledUntilTime&&a.disabledUntilTime<=e&&(a.disabledUntilTime=0,t=!0),0o&&(o=a);for(var s=c(i.frames),u=s.next();!u.done;u=s.next())kl(e,a,o,"org.id3",u.value);e.s&&e.s.onHlsTimedMetadata(i,a)}},onEvent:function(t){return e.dispatchEvent(t)},Fi:function(){e.H&&e.H.update&&e.H.update()}},e.L),t.configure(e.g.mediaSource),n=e.g.manifest,r=n.segmentRelativeVttTiming,t.xa=r,w(i,t.O,2);e.I=t,x(i)}))}function Tl(e,t,n){function r(){return Fl(e)}e.l.D(t,"playing",r),e.l.D(t,"pause",r),e.l.D(t,"ended",r),e.l.D(t,"ratechange",(function(){var t=e.h.playbackRate;0!=t&&(e.K&&e.K.set(t),t=hl("ratechange"),e.dispatchEvent(t))})),t.remote&&(e.l.D(t.remote,"connect",(function(){return Kl(e)})),e.l.D(t.remote,"connecting",(function(){return Kl(e)})),e.l.D(t.remote,"disconnect",(function(){return D((function(n){if(1==n.g)return e.j&&"disconnected"==t.remote.state?w(n,Ju(e.j),2):n.u(2);Kl(e),x(n)}))}))),t.audioTracks&&(e.l.D(t.audioTracks,"addtrack",(function(){return Kl(e)})),e.l.D(t.audioTracks,"removetrack",(function(){return Kl(e)})),e.l.D(t.audioTracks,"change",(function(){return Kl(e)}))),t.textTracks&&(e.l.D(t.textTracks,"addtrack",(function(t){if(t.track)switch(t=t.track,t.kind){case"metadata":!function(e,t){if("metadata"==t.kind){t.mode="hidden",e.l.D(t,"cuechange",(function(){if(t.activeCues)for(var n=c(t.activeCues),r=n.next();!r.done;r=n.next())r=r.value,kl(e,r.startTime,r.endTime,r.type,r.value),e.s&&e.s.onCueMetadataChange(r.value);if(t.cues){n=[];for(var i=(r=c(t.cues)).next(),a={};!i.done;a={Wb:void 0},i=r.next())a.Wb=i.value,"com.apple.quicktime.HLS"==a.Wb.type&&null!=a.Wb.startTime&&(i=n.find(function(e){return function(t){return t.startTime==e.Wb.startTime&&t.endTime==e.Wb.endTime}}(a)),i||(i={startTime:a.Wb.startTime,endTime:a.Wb.endTime,values:[]},n.push(i)),i.values.push(a.Wb.value));for(r=(n=c(n)).next();!r.done;r=n.next())(r=r.value).values.some((function(e){return"X-ASSET-URI"==e.key||"X-ASSET-LIST"==e.key}))&&e.s&&(r.values.push({key:"CUE",description:"",data:0!=r.startTime||e.U()?"ONCE":"ONCE,PRE",mimeType:null,pictureType:null}),e.s.onHLSInterstitialMetadata(e,e.h,r))}}));var n=new Be((function(){for(var t=function(e){return Array.from(e.h.textTracks).filter((function(e){return"metadata"==e.kind}))}(e),n=(t=c(t)).next();!n.done;n=t.next())n.value.mode="hidden"})).hc().Z(.5);e.pd.push((function(){n.stop()}))}}(e,t);break;case"chapters":!function(e,t){if(t&&"chapters"==t.kind){t.mode="hidden";var n=new Be((function(){t.mode="hidden"})).hc().Z(.5);e.pd.push((function(){n.stop()}))}}(e,t);break;default:Kl(e)}})),e.l.D(t.textTracks,"removetrack",(function(){return Kl(e)})),e.l.D(t.textTracks,"change",(function(){return Kl(e)}))),"none"!=t.preload&&e.l.va(t,"loadedmetadata",(function(){e.A.C=Date.now()/1e3-n}))}function kl(e,t,n,r,i){t=(new Map).set("startTime",t).set("endTime",n).set("metadataType",r).set("payload",i),e.dispatchEvent(hl("metadata",t))}function Cl(e,t){function n(n){t()?t().dispatchEvent(n):e.dispatchEvent(n)}function r(e){t()?hc(t(),!0,e):e()}return t||(t=function(){return null}),new na((function(n,r,i,a){var o=t()?t().i:e.o;o&&o.segmentDownloaded(n,r,i,a)}),(function(t,i,a){n(hl("downloadheadersreceived",i=(new Map).set("headers",t).set("request",i).set("requestType",a))),r((function(){if(e.fa){var n=e.fa;if(n.h.enabled){var r=t["cmsd-static"];if(r)try{var i=new Map,a=r.split(",");for(r=0;r=n})))?1e3*(e.end-n):NaN}(r,d.type),u.ot!==Qc)){var p=Hc(r,d.type);u.dl=f?p/Math.abs(f):p}if(d.bandwidth&&(u.br=d.bandwidth/1e3),d.segmentIndex&&s){var h=d.segmentIndex.Jb(s.endTime,!0,0>f);if(h){var g=h.next().value;if(g&&g!=s){if(!_e(s.N(),g.N())){var v=g.N()[0],m=n.uris[0],y=new URL(v),b=new URL(m);if(y.origin!==b.origin)var w=v;else{for(var x=y.pathname.split("/").slice(1),S=b.pathname.split("/").slice(1,-1);x[0]===S[0];)x.shift(),S.shift();for(;S.length;)S.shift(),x.unshift("..");w=x.join("/")}u.nor=w}if((g.Ka||g.ua)&&(s.Ka!=g.Ka||s.ua!=g.ua)){var T=g.Ka+"-";g.ua&&(T+=g.ua),u.nrr=T}}}var k=r.h.ib()||1,C=Hc(r,d.type)||500,A=d.bandwidth,E=A?A*(s.endTime-s.startTime)/1e3/(C/k/1e3)*r.g.rtpSafetyFactor:NaN;isNaN(E)||(u.rtp=E)}}l&&u.ot!==Qc&&(u.tb=function(e,t){var n=e.h.rc();if(!n.length)return NaN;e=n[0];for(var r=(n=c(n)).next();!r.done;r=n.next())"variant"===(r=r.value).type&&r.bandwidth>e.bandwidth&&(e=r);switch(t){case Wc:return e.videoBandwidth||NaN;case Xc:return e.audioBandwidth||NaN;default:return e.bandwidth}}(r,u.ot)/1e3),zc(r,n,u)}}catch(e){W("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",e)}break;case 2:case 5:case 6:zc(r,n,{ot:"k"});break;case 4:zc(r,n,{ot:"o"})}}))}),(function(n,r,i,a){(n=t()?t().j:e.H)&&n.banLocation&&n.banLocation(a)}),(function(n,r){if(r.data){r=r.data.byteLength;var i=t()?t().getStats():e.A;i&&(i.kc=isNaN(i.kc)?r:i.kc+r,0===n&&(i.Kg=r))}}))}function Al(e,t,n){e.M=new Ui,e.M.g=Fi,ji(e.M,n,Math.min(.5,n/2)),jl(e),e.je=new Be((function(){El(e)})).Ra(.25),e.l.D(t,"waiting",(function(){return El(e)})),e.l.D(t,"stalled",(function(){return El(e)})),e.l.D(t,"canplaythrough",(function(){return El(e)})),e.l.D(t,"progress",(function(){return El(e)}))}function El(e){switch(e.m){case ld:if(e.h.ended)var t=!0;else{var n=So(e.h.buffered);t=null!=n&&n>=e.h.duration-1}break;case cd:e:if(e.h.ended||vs(e.I))t=!0;else{if(e.i.presentationTimeline.U()){n=e.i.presentationTimeline.Zb();var r=So(e.h.buffered);if(null!=r&&r>=n){t=!0;break e}}t=!1}break;default:t=!1}r=ko(e.h.buffered,e.h.currentTime);var i=t,a=(n=e.M).i.get(n.g);t=n.g,r=i||r>=a?Bi:Fi,n.g=r,(t=t!=r)&&r===Bi&&(n.h=Date.now()),t&&jl(e)}function Il(e){if(e.ge=new to(e.g,e.ja,e.C),e.H){var t=Et(e.g.manifest);e.h&&"AUDIO"===e.h.nodeName&&(t.disableVideo=!0),e.H.configure(t)}if(e.C&&e.C.configure(e.g.drm),e.j){e.j.configure(e.g.streaming);try{e.m!=sd&&io(e.ge,e.i)&&Kl(e)}catch(t){Ql(e,t)}e.o&&$l(e),!(t=e.j.j)||t.allowedByApplication&&t.allowedByKeySystem||zl(e)}if(e.G&&(e.G.Uf(e.g.streaming.forceHTTP),e.G.Vf(e.g.streaming.forceHTTPS),e.G.m=e.g.streaming.minBytesForProgressEvents),e.I&&(e.I.configure(e.g.mediaSource),e.I.xa=e.g.manifest.segmentRelativeVttTiming),e.B)if(t=e.g.textDisplayFactory,e.Ce!=t){var n=e.B;if(e.B=t(),e.B.configure?e.B.configure(e.g.textDisplayer):oe("Text displayer w/ configure",'Text displayer should have a "configure" method!'),e.B.setTextLanguage||oe("Text displayer w/ setTextLanguage",'Text displayer should have a "setTextLanguage" method!'),e.B.setTextVisibility(n.isTextVisible()),n.destroy(),e.I){n=e.I;var r=e.B;n.fa=r,n.i&&(n.i.j=r)}e.Ce=t,e.j&&(n=(t=e.j).i.get(yr))&&Ou(t,n.stream,!0,0,!0)}else e.B.configure&&e.B.configure(e.g.textDisplayer);e.o&&(e.o.configure(e.g.abr),e.g.abr.enabled?e.o.enable():e.o.disable(),Yl(e)),e.M&&(t=e.g.streaming.rebufferingGoal,e.i&&(t=Math.max(t,e.i.minBufferTime)),ji(e.M,t,Math.min(.5,t/2))),e.i&&rd(e.i.presentationTimeline,e.g.playRangeStart,e.g.playRangeEnd),e.s&&e.s.configure(e.g.ads),e.O&&e.O.configure(e.g.cmcd),e.fa&&e.fa.configure(e.g.cmsd)}function Ml(e){return e&&(e=/(\d+)x(\d+)/.exec(e))?{lc:parseInt(e[1],10),rows:parseInt(e[2],10)}:null}function _l(e,t){e.l.D(t,"cuechange",(function(){e.B.remove(0,Math.max(0,e.h.currentTime-e.g.streaming.bufferBehind));var n=Array.from(t.activeCues||[]).map(Pc).filter(zr);e.B.append(n)})),t.mode=document.pictureInPictureElement?"showing":"hidden"}function Pl(e){return Array.from(e.h.textTracks).filter((function(e){return"metadata"!=e.kind&&"chapters"!=e.kind&&"Shaka Player TextTrack"!=e.label}))}function Dl(e){return Array.from(e.h.textTracks).filter((function(e){return"chapters"==e.kind}))}function Ll(e,t){var n;return D((function(r){switch(r.g){case 1:return S(r,2),w(r,kc(t,e.G,e.g.streaming.retryParameters),4);case 4:n=r.h,k(r,3);break;case 2:C(r);case 3:if(n)return r.return(n);throw new Pe(1,2,2011,t)}}))}function Rl(e,t,n,r,i,a,o){var s,u,c,l;return D((function(d){if(1==d.g)return"text/vtt"!=i||o.length?w(d,Nl(e,t,e.G,e.g.streaming.retryParameters),3):d.u(2);2!=d.g&&(s=d.h,u=Ol(e,s,i,o),c=new Blob([u],{type:"text/vtt"}),t=Ps(c),i="text/vtt"),l=document.createElement("track");var f=e.O,p=t;try{if(f.g.enabled){var h=$c(f);h.ot=Zc,h.su=!0;var g=Kc(p,qc(h))}else g=p}catch(e){W("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",e),g=p}return l.src=g,l.label=a,l.kind=r,l.srclang=n,e.h.getAttribute("crossorigin")||e.h.setAttribute("crossorigin","anonymous"),e.h.appendChild(l),d.return(l)}))}function Nl(e,t,n,r){var i,a,o;return D((function(s){if(1==s.g){i=la,(a=aa([t],r)).method="GET";var u=e.O;try{u.g.enabled&&zc(u,a,{ot:Zc,su:!0})}catch(e){W("CMCD_TEXT_ERROR","Could not generate text CMCD data.",e)}return w(s,n.request(i,a).promise,2)}return o=s.h,s.return(o.data)}))}function Ol(e,t,n,r){var i=Br[n];if(i)return n=i(),e={periodStart:0,segmentStart:0,segmentEnd:e.h.duration,vttOffset:0},t=ve(t),function(e,t){function n(e){for(var n=e,r=c(t),i=r.next();!i.done;i=r.next())(i=i.value).end&&i.start(e=Math.floor(n/3600))?"0":"")+e+":"+(10>(r=Math.floor(n/60%60))?"0":"")+r+":"+(10>(i=Math.floor(n%60))?"0":"")+i+"."+(100>(n=Math.floor(1e3*n%1e3))?10>n?"00":"0":"")+n}var r=Ic(e);e="WEBVTT\n\n";for(var i=(r=c(r)).next();!i.done;i=r.next())e+=n((i=i.value).startTime)+" --\x3e "+n(i.endTime)+function(e){var t=[];switch(e.textAlign){case"left":t.push("align:left");break;case"right":t.push("align:right");break;case vn:t.push("align:middle");break;case"start":t.push("align:start");break;case"end":t.push("align:end")}switch(e.writingMode){case"vertical-lr":t.push("vertical:lr");break;case"vertical-rl":t.push("vertical:rl")}return t.length?" "+t.join(" "):""}(i)+"\n",e+=i.payload+"\n\n";return e}(t=n.parseMedia(t,e,null,[]),r);throw new Pe(2,2,2014,n)}function Ul(e){var t=cc();return t.streaming.failureCallback=function(t){if(e.U()){var n=null;1001==t.code||1002==t.code?(n=1,e.g.streaming.lowLatencyMode&&(n=.1)):1003==t.code&&(n=.1),null!=n&&(t.severity=1,e.Of(n))}},t.textDisplayFactory=function(){if(!e.ie||tt()&&!document.fullscreenEnabled)return HTMLMediaElement.prototype.addTextTrack?new Dc(e.h,"Shaka Player TextTrack"):new Rc;var t=e.getConfiguration();return new Nc(e.h,e.ie,t.textDisplayer)},t}function jl(e){var t=e.uf();if(e.A&&e.M&&e.F){var n=e.K;if(n.j=t,au(n),e.O&&(n=e.O,t||n.l||(n.l=!0),n.l&&t&&(n.m=!0),n.o=t),Fl(e),n=e.g.streaming.liveSync.dynamicTargetLatency.maxAttempts,e.g.streaming.liveSync.dynamicTargetLatency.enabled&&t&&e.Fe1e3*a&&(a=e.g.streaming.liveSync.dynamicTargetLatency.minLatency,e.S=Math.max(e.S-(o-a)/2,a+r),e.Ga=Date.now()),i&&null!==e.S&&(s=e.S+r,u=e.S-r),o=n.end-e.h.currentTime,r=0,e.m==ld&&0<(i=e.h.buffered).length&&(r=i.end(i.length-1),r=Math.max(c,r-n.end)),n=e.g.streaming.liveSync.panicMode,i=1e3*e.g.streaming.liveSync.panicThreshold,a=Date.now()-e.M.h,n&&!l&&(l=e.g.streaming.liveSync.minPlaybackRate),n&&l&&a<=i?t!=l&&e.zd(l,!1):s&&c&&o-r>s?(t!=c&&e.zd(c,!1),e.Ga=null):u&&l&&o-rt&&(t+=Math.pow(2,32)),t=t.toString(16)),new Pe(2,3,3016,n,t,e.h.error.message)):null}function rd(e,t,n){0=r)}))}else t.xd=[]}(e,r),e={Oc:t,position:n},0<=(t=(r=r.xd).findIndex((function(e){return e.position>=n})))?r.splice(t,r[t].position==n?1:0,e):r.push(e)}(e.bc,n,t)},mg:function(t,n){var r=e.C;if(r.h.parseInbandPsshEnabled&&!r.F&&["audio","video"].includes(t)){t=new Da(ve(n)),n=0;for(var i=c(t.data),a=i.next();!a.done;a=i.next())n+=a.value.length;if(0==n)r=Promise.resolve();else{for(n=new Uint8Array(n),i=0,a=(t=c(t.data)).next();!a.done;a=t.next())a=a.value,n.set(a,i),i+=a.length;Fa(r,"cenc",n),r=r.m}}else r=Promise.resolve();return r},disableStream:function(t,n){return e.disableStream(t,n)}})}(e),e.j.configure(e.g.streaming),e.m=cd,e.dispatchEvent(hl("streaming")),a=n;case 2:for((s=e.j.j)||a||(a=$l(e)?e.o.chooseVariant():null),u=[],l=c([(o=s||a).video,o.audio]),d=l.next();!d.done;d=l.next())(f=d.value)&&!f.segmentIndex&&u.push(f.createSegmentIndex());if(!(0y&&(v=y),w(E,function(e,t){var n,r,i,a,o;return D((function(s){return 1==s.g?(n=e.audio,r=e.video,i=function(e,t){var n,r,i;return D((function(a){return 1==a.g?e?w(a,e.createSegmentIndex(),2):a.return(null):(r=(n=e.segmentIndex.Jb(t))?n.next().value:null)?(i=r.startTime,a.return(i)):a.return(null)}))},w(s,i(n,t),2)):3!=s.g?(a=s.h,w(s,i(r,t),3)):null!=(o=s.h)&&null!=a?s.return(Math.max(o,a)):null!=o?s.return(o):null!=a?s.return(a):s.return(t)}))}(a,v),9);case 9:b=E.h,p(b);case 8:Hl(e,a,!0,!1,0);case 7:return e.F.ready(),e.qc().find((function(e){return e.active}))||((S=wi(e.i.textStreams,e.Hb,e.sd,e.qd)[0]||null)&&du(e.A.h,S,!0),a&&(S?(function(e,t,n){if(0==e.g.autoShowText)return!1;if(1==e.g.autoShowText)return!0;var r=Xr(e.g.preferredTextLanguage);return n=Xr(n.language),2==e.g.autoShowText?qr(n,r):3==e.g.autoShowText?!!t&&(e=Xr(t.language),qr(n,r)&&!qr(e,n)):(X("Invalid autoShowText setting!"),!1)}(e,a.audio,S)&&(e.na=!0),e.na&&e.B.setTextVisibility(!0),Wl(e)):e.na=!1),S&&(e.g.streaming.alwaysStreamText||e.wf())&&(Nu(e.j,S),Jl(e))),w(E,e.j.start(r),10);case 10:e.g.abr.enabled&&(e.o.enable(),Yl(e)),Kl(e),$l(e),e.i.variants.some((function(e){return e.primary})),((T=e.U())&&(e.g.streaming.liveSync&&e.g.streaming.liveSync.enabled||e.i.serviceDescription||e.g.streaming.liveSync.panicMode)||e.g.streaming.vodDynamicPlaybackRate)&&(k=function(){return Bl(e)},e.l.D(i,"timeupdate",k)),T||(C=function(){return Vl(e)},e.l.D(i,"timeupdate",C),Vl(e),e.i.nextUrl&&(0, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),d.resolve()),e.l.va(r,"error",(function(){d.reject(nd(e))})),f=new Promise((function(t,n){new Be(n).Z(e.g.streaming.loadTimeout)})),w(m,Promise.race([d,f]),4);case 4:((p=e.U())&&(e.g.streaming.liveSync&&e.g.streaming.liveSync.enabled||e.g.streaming.liveSync.panicMode)||e.g.streaming.vodDynamicPlaybackRate)&&(h=function(){return Bl(e)},e.l.D(r,"timeupdate",h)),p||(g=function(){return Vl(e)},e.l.D(r,"timeupdate",g),Vl(e)),e.s&&(e.s.onManifestUpdated(p),p&&(v=e.Rb().end,e.l.D(r,"progress",(function(){var t=e.Rb().end;v!=t&&(e.s.onManifestUpdated(e.U()),v=t)})))),e.Aa=!0,x(m)}}))}(m,d,n),0)}))}),"srcEqualsInner_"),14);case 14:m.dispatchEvent(hl("loaded"));case 6:if(A(y),!r){y.u(23);break}return w(y,r.destroy(),23);case 23:m.ra=null,E(y,0);break;case 5:if(!(v=C(y))||7e3==v.code){y.u(25);break}return w(y,m.ic(!1),25);case 25:throw v}}))},r.ej=function(e,t){e=void 0===e||e,t=void 0!==t&&t;var n,r=this;return D((function(i){return 1==i.g?w(i,ml(r),2):3!=i.g?(n=i.h,w(i,r.ic(e,t),3)):i.return(n)}))},r.tg=function(e,t){e=void 0!==e&&e,t=void 0!==t&&t;var n,r=this;return D((function(i){return 1==i.g?w(i,ml(r,t),2):3!=i.g?(n=i.h,w(i,r.detach(e),3)):i.return(n)}))},r.preload=function(e,t,n){t=void 0===t?null:t;var r,i=this;return D((function(a){return 1==a.g?w(a,yl(i,e,t,n),2):((r=a.h)?r.start():Ql(i,new Pe(2,7,7005)),a.return(r))}))},r.Ue=function(){var e,t,n,r,i=this;return D((function(a){for(e=[],t=c(i.re),n=t.next();!n.done;n=t.next())(r=n.value).s||e.push(r.destroy());return i.re=[],w(a,Promise.all(e),0)}))},r.Ni=function(){for(var e=this.aa;e.g;)e.release()},r.Ec=function(e){return new Ra(e)},r.configure=function(e,t){if(2==arguments.length&&"string"==typeof e&&(e=ec(e,t)),e.streaming&&"forceTransmuxTS"in e.streaming&&(oe("streaming.forceTransmuxTS configuration","Please Use mediaSource.forceTransmux instead."),e.mediaSource.mediaSource=e.streaming.forceTransmuxTS,delete e.streaming.forceTransmuxTS),e.streaming&&"forceTransmux"in e.streaming&&(oe("streaming.forceTransmux configuration","Please Use mediaSource.forceTransmux instead."),e.mediaSource.mediaSource=e.streaming.forceTransmux,delete e.streaming.forceTransmux),e.streaming&&"useNativeHlsOnSafari"in e.streaming&&(oe("streaming.useNativeHlsOnSafari configuration","Please Use streaming.useNativeHlsForFairPlay or streaming.preferNativeHls instead."),e.streaming.preferNativeHls=e.streaming.useNativeHlsOnSafari&&Ye(),delete e.streaming.useNativeHlsOnSafari),e.streaming&&"boolean"==typeof e.streaming.liveSync){oe("streaming.liveSync","Please Use streaming.liveSync.enabled instead.");var n=e.streaming.liveSync;e.streaming.liveSync={},e.streaming.liveSync.enabled=n}if(e.streaming&&(!e.streaming.liveSync||!("targetLatency"in e.streaming.liveSync))&&("liveSyncMinLatency"in e.streaming||"liveSyncMaxLatency"in e.streaming)){n=e.streaming.liveSyncMinLatency||0;var r=Math.abs((e.streaming.liveSyncMaxLatency||1)-n)/2;e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.targetLatency=n+r,e.streaming.liveSync.targetLatencyTolerance=r}if(e.streaming&&"liveSyncMaxLatency"in e.streaming&&(oe("streaming.liveSyncMaxLatency","Please Use streaming.liveSync.targetLatency and streaming.liveSync.targetLatencyTolerance instead. Or, set the values in your DASH manifest"),delete e.streaming.liveSyncMaxLatency),e.streaming&&"liveSyncMinLatency"in e.streaming&&(oe("streaming.liveSyncMinLatency","Please Use streaming.liveSync.targetLatency and streaming.liveSync.targetLatencyTolerance instead. Or, set the values in your DASH manifest"),delete e.streaming.liveSyncMinLatency),e.streaming&&"liveSyncTargetLatency"in e.streaming&&(oe("streaming.liveSyncTargetLatency","Please Use streaming.liveSync.targetLatency instead."),e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.targetLatency=e.streaming.liveSyncTargetLatency,delete e.streaming.liveSyncTargetLatency),e.streaming&&"liveSyncTargetLatencyTolerance"in e.streaming&&(oe("streaming.liveSyncTargetLatencyTolerance","Please Use streaming.liveSync.targetLatencyTolerance instead."),e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.targetLatencyTolerance=e.streaming.liveSyncTargetLatencyTolerance,delete e.streaming.liveSyncTargetLatencyTolerance),e.streaming&&"liveSyncPlaybackRate"in e.streaming&&(oe("streaming.liveSyncPlaybackRate","Please Use streaming.liveSync.maxPlaybackRate instead."),e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.maxPlaybackRate=e.streaming.liveSyncPlaybackRate,delete e.streaming.liveSyncPlaybackRate),e.streaming&&"liveSyncMinPlaybackRate"in e.streaming&&(oe("streaming.liveSyncMinPlaybackRate","Please Use streaming.liveSync.minPlaybackRate instead."),e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.minPlaybackRate=e.streaming.liveSyncMinPlaybackRate,delete e.streaming.liveSyncMinPlaybackRate),e.streaming&&"liveSyncPanicMode"in e.streaming&&(oe("streaming.liveSyncPanicMode","Please Use streaming.liveSync.panicMode instead."),e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.panicMode=e.streaming.liveSyncPanicMode,delete e.streaming.liveSyncPanicMode),e.streaming&&"liveSyncPanicThreshold"in e.streaming&&(oe("streaming.liveSyncPanicThreshold","Please Use streaming.liveSync.panicThreshold instead."),e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.panicThreshold=e.streaming.liveSyncPanicThreshold,delete e.streaming.liveSyncPanicThreshold),e.mediaSource&&"sourceBufferExtraFeatures"in e.mediaSource){oe("mediaSource.sourceBufferExtraFeatures configuration","Please Use mediaSource.addExtraFeaturesToSourceBuffer() instead.");var i=e.mediaSource.sourceBufferExtraFeatures;e.mediaSource.addExtraFeaturesToSourceBuffer=function(){return i},delete e.mediaSource.sourceBufferExtraFeatures}return e.manifest&&e.manifest.hls&&"useSafariBehaviorForLive"in e.manifest.hls&&(oe("manifest.hls.useSafariBehaviorForLive configuration","Please Use liveSync config to keep on live Edge instead."),delete e.manifest.hls.useSafariBehaviorForLive),e.streaming&&"parsePrftBox"in e.streaming&&(oe("streaming.parsePrftBox configuration","Now fired without needing a configuration."),delete e.streaming.parsePrftBox),e.manifest&&e.manifest.dash&&"enableAudioGroups"in e.manifest.dash&&(oe("manifest.dash.enableAudioGroups configuration","It is now enabled by default and cannot be disabled."),delete e.manifest.dash.enableAudioGroups),e.streaming&&"dispatchAllEmsgBoxes"in e.streaming&&(oe("streaming.dispatchAllEmsgBoxes configuration","Please Use mediaSource.dispatchAllEmsgBoxes instead."),e.mediaSource.dispatchAllEmsgBoxes=e.streaming.dispatchAllEmsgBoxes,delete e.streaming.dispatchAllEmsgBoxes),e.streaming&&e.streaming.lowLatencyMode&&(null==e.streaming.inaccurateManifestTolerance&&(e.streaming.inaccurateManifestTolerance=0),null==e.streaming.rebufferingGoal&&(e.streaming.rebufferingGoal=.01),null==e.streaming.segmentPrefetchLimit&&(e.streaming.segmentPrefetchLimit=2),null==e.streaming.updateIntervalSeconds&&(e.streaming.updateIntervalSeconds=.1),null==e.streaming.maxDisabledTime&&(e.streaming.maxDisabledTime=1),null==e.streaming.retryParameters&&(e.streaming.retryParameters={}),null==e.streaming.retryParameters.baseDelay&&(e.streaming.retryParameters.baseDelay=100),null==e.manifest&&(e.manifest={}),null==e.manifest.dash&&(e.manifest.dash={}),null==e.manifest.dash.autoCorrectDrift&&(e.manifest.dash.autoCorrectDrift=!1),null==e.manifest.retryParameters&&(e.manifest.retryParameters={}),null==e.manifest.retryParameters.baseDelay&&(e.manifest.retryParameters.baseDelay=100),null==e.drm&&(e.drm={}),null==e.drm.retryParameters&&(e.drm.retryParameters={}),null==e.drm.retryParameters.baseDelay&&(e.drm.retryParameters.baseDelay=100)),n=lc(this.g,e,Ul(this)),Il(this),n},r.getConfiguration=function(){var e=Ul(this);return lc(e,this.g,Ul(this)),e},r.Dg=function(){return lc(Ul(this),this.g,Ul(this)),nc(this.g,Ul(this))},r.yg=function(){if(this.h){var e=this.h.buffered.length;e=e?this.h.buffered.end(e-1):0;var t=this.getConfiguration().streaming.bufferingGoal;if(e>=(t=Math.min(this.h.currentTime+t,this.Rb().end)))return 1;if(!(e<=this.h.currentTime)&&e=Math.floor(r.end)&&n.Yc():Math.floor(t)<=Math.floor(r.start+i)&&n.Yc()})))},r.Yc=function(){var e=this.K.oc();this.m==ld&&this.K.set(e),this.m==cd&&(this.K.set(e),this.o.playbackRateChanged(e),Lu(this.j,!1)),this.Ha.Va()},r.rc=function(){if(this.i&&!this.Ja()){for(var e=this.j?this.j.j:null,t=[],n=0,r=c(this.i.variants),i=r.next();!i.done;i=r.next())if(yi(i=i.value)){var a=di(i);a.active=i==e,a.active||1==n||null==e||i.video!=e.video||i.audio!=e.audio||(a.active=!0),a.active&&n++,t.push(a)}return t}return this.h&&this.h.audioTracks?Array.from(this.h.audioTracks).map((function(e){return vi(e)})):[]},r.qc=function(){if(this.i&&!this.Ja()){for(var e=this.j?this.j.s:null,t=[],n=c(this.i.textStreams),r=n.next();!r.done;r=n.next()){var i=fi(r=r.value);i.active=r==e,t.push(i)}return t}return this.h&&this.h.src&&this.h.textTracks?Pl(this).map((function(e){return gi(e)})):[]},r.Sh=function(){var e=this.ud;return this.i&&(e=this.i.imageStreams),e.map((function(e){return pi(e)}))},r.Jh=function(e){var t,n,r,i,a=this;return D((function(o){return 1==o.g?a.m!=cd&&a.m!=ld?o.return(null):(t=a.ud,a.i&&(t=a.i.imageStreams),(n=t.find((function(t){return t.id==e})))?n.segmentIndex?o.u(2):w(o,n.createSegmentIndex(),2):o.return(null)):4!=o.g?(r=[],n.segmentIndex.yb((function(t){var i=Ml(t.tilesLayout||n.tilesLayout);if(i){i=i.rows*i.lc;for(var o=t.j-t.startTime,s=0;so(d,s))&&(l=d);l!=s&&(l?(s=di(l),a.Rf(s,!0,r||0)):zl(a))}(),!this.Ja())||function(){if(a.h&&a.h.audioTracks){var n=wi(a.rc(),e,t||"",!1)[0];n&&a.Rf(n)}}()},r.Qf=function(e,t,n){var r,i=this;n=void 0!==n&&n,this.i&&this.F&&(function(){i.Hb=e,i.sd=t||"",i.qd=n||!1;var r=wi(i.i.textStreams,i.Hb,i.sd,i.qd)[0]||null;r&&r!=i.j.s&&(du(i.A.h,r,!1),i.g.streaming.alwaysStreamText||i.wf())&&(Nu(i.j,r),Xl(i),Jl(i))}(),!this.Ja())||(r=wi(i.qc(),e,t||"",n||!1)[0])&&i.ah(r)},r.Xi=function(e,t,n){var r=this;t=void 0===t||t,n=void 0===n?0:n,this.i&&this.F&&(function(){for(var i=null,a=c(r.i.variants),o=a.next();!o.done;o=a.next())if((o=o.value).audio.label==e){i=o;break}null!=i&&(r.Ba=new Oi(i.language,"",0,"",!1,"",e,"",r.g.mediaSource.codecSwitchingStrategy,""),zl(r,t,n))}(),!this.Ja())||function(){if(r.h&&r.h.audioTracks){for(var t=Array.from(r.h.audioTracks),n=null,i=(t=c(t)).next();!i.done;i=t.next())(i=i.value).label==e&&(n=i);n&&ql(r,n)}}()},r.wf=function(){var e=this.na;return this.B?this.B.isTextVisible():e},r.zg=function(){return this.h&&this.h.currentSrc&&this.h.textTracks?Dl(this).map((function(e){return gi(e)})):[]},r.Nh=function(e){if(!this.h||!this.h.currentSrc||!this.h.textTracks)return[];var t=Xr(e),n=Dl(this).filter((function(e){return Xr(e.language)==t}));if(!n||!n.length)return[];e=[];for(var r=new Set,i=(n=c(n)).next();!i.done;i=n.next())if((i=i.value)&&i.cues)for(var a=(i=c(i.cues)).next();!a.done;a=i.next()){var o=a.value;(a=o.id)&&""!=a||(a=o.startTime+"-"+o.endTime+"-"+o.text),o={id:a,title:o.text,startTime:o.startTime,endTime:o.endTime},r.has(a)||(e.push(o),r.add(a))}return e},r.hh=function(e){e=!!e,this.na!=e&&(this.na=e,this.m==cd?(this.B.setTextVisibility(e),this.g.streaming.alwaysStreamText||(e?this.j.s||0<(e=wi(this.i.textStreams,this.Hb,this.sd,this.qd)).length&&(Nu(this.j,e[0]),Xl(this),Jl(this)):function(e){var t=e.i.get(yr);t&&(Xu(t),Wu(t).catch((function(){})),e.C=e.i.get(yr),e.i.delete(yr)),e.s=null}(this.j))):this.h&&this.h.src&&this.h.textTracks&&this.B.setTextVisibility(e),Wl(this))},r.$h=function(){if(this.F)var e=this.F.Cd();else{if(null==this.ka)return new Date;e=this.ka}if(this.i&&!this.Ja()){var t=this.i.presentationTimeline;return new Date(1e3*((t.m||t.i)+e))}return this.h&&this.h.getStartDate?(t=this.h.getStartDate(),isNaN(t.getTime())?null:new Date(t.getTime()+1e3*e)):null},r.Eg=function(){if(this.i&&!this.Ja()){var e=this.i.presentationTimeline;return new Date(1e3*(e.m||e.i))}return this.h&&this.h.getStartDate?(e=this.h.getStartDate(),isNaN(e.getTime())?null:e):null},r.Pd=function(){return this.U()&&this.i?this.i.presentationTimeline.Pd():null},r.zb=function(){if(this.m==cd)return this.I.zb();var e={total:[],audio:[],video:[],text:[]};return this.m==ld&&(e.total=Co(this.h.buffered)),e},r.getStats=function(){if(this.m!=cd&&this.m!=ld)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,stallsDetected:NaN,gapsJumped:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,manifestSizeBytes:NaN,bytesDownloaded:NaN,nonFatalErrorCount:NaN,manifestPeriodCount:NaN,manifestGapCount:NaN,switchHistory:[],stateHistory:[]};Fl(this);var e=this.h,t=e.currentTime/e.duration;if(!isNaN(t)&&!this.U()){var n=this.A;t=Math.round(100*t),n.i=isNaN(n.i)?t:Math.max(n.i,t)}if(this.F&&(this.A.S=this.F.hg(),this.A.V=this.F.ig()),e.getVideoPlaybackQuality){n=e.getVideoPlaybackQuality(),t=this.A;var r=Number(n.totalVideoFrames);t.O=Number(n.droppedVideoFrames),t.M=r,this.A.L=Number(n.corruptedVideoFrames)}if(n=this.C&&(n=this.C).H?n.H:NaN,this.A.o=n,this.m==cd){if(n=this.j.j,t=this.j.s,n){var i=(r=this.K?this.K.i:1)*n.bandwidth;t&&t.bandwidth&&(i+=r*t.bandwidth),this.A.A=i}n&&n.video&&(t=this.A,r=n.video.height||NaN,t.m=n.video.width||NaN,t.l=r),this.U()&&(n=this.Eg().valueOf()+1e3*e.currentTime,this.A.B=(Date.now()-n)/1e3),this.i&&(this.A.G=this.i.periodCount,this.A.F=this.i.gapCount,this.i.presentationTimeline&&(this.A.I=this.i.presentationTimeline.h)),n=this.o.getBandwidthEstimate(),this.A.s=n}this.m==ld&&((n=this.A).kc=isNaN(n.kc)?NaN:n.kc+NaN,n=this.A,t=e.videoHeight||NaN,n.m=e.videoWidth||NaN,n.l=t);var a=this.A;e=a.m,n=a.l,t=a.A,r=a.M,i=a.O;for(var o=a.L,s=a.V,u=a.S,l=a.s,d=a.i,f=a.C,p=a.H,h=a.j,g=cu(a.g,"playing"),v=cu(a.g,"paused"),m=cu(a.g,"buffering"),y=a.o,b=a.B,w=a.I,x=a.Kg,S=a.kc,T=a.K,k=a.G,C=a.F,A=function(e){function t(e){return{timestamp:e.timestamp,state:e.state,duration:e.duration}}for(var n=[],r=c(e.h),i=r.next();!i.done;i=r.next())n.push(t(i.value));return e.g&&n.push(t(e.g)),n}(a.g),E=[],I=(a=c(a.h.g)).next();!I.done;I=a.next())I=I.value,E.push({timestamp:I.timestamp,id:I.id,type:I.type,fromAdaptation:I.fromAdaptation,bandwidth:I.bandwidth});return{width:e,height:n,streamBandwidth:t,decodedFrames:r,droppedFrames:i,corruptedFrames:o,stallsDetected:s,gapsJumped:u,estimatedBandwidth:l,completionPercent:d,loadLatency:f,manifestTimeSeconds:p,drmTimeSeconds:h,playTime:g,pauseTime:v,bufferingTime:m,licenseTime:y,liveLatency:b,maxSegmentDuration:w,manifestSizeBytes:x,bytesDownloaded:S,nonFatalErrorCount:T,manifestPeriodCount:k,manifestGapCount:C,stateHistory:A,switchHistory:E}},r.xh=function(e,t,n,r,i,a,o){o=void 0!==o&&o;var s,u,c,l,d,f,p,h,g,v,m=this;return D((function(y){switch(y.g){case 1:if(m.m!=cd&&m.m!=ld)throw new Pe(1,7,7004);if("subtitles"!=n&&"captions"!=n&&X("Using a kind value different of `subtitles` or `captions` can cause unwanted issues."),r){y.u(2);break}return w(y,Ll(m,e),3);case 3:r=y.h;case 2:if(s=[],m.s&&(s=m.s.getCuePoints()),m.m!=ld){y.u(4);break}return o&&(n="forced"),w(y,Rl(m,e,t,n,r,a||"",s),5);case 5:if(u=Xr(t),c=m.qc(),l=c.find((function(e){return Xr(e.language)==u&&e.label==(a||"")&&e.kind==n})))return Kl(m),y.return(l);throw new Pe(1,2,2012);case 4:if(d=br,f=m.h.duration,m.i&&(f=m.i.presentationTimeline.getDuration()),1/0==f)throw new Pe(1,4,4033);if(!s.length){y.u(6);break}return w(y,Nl(m,e,m.G,m.g.streaming.retryParameters),7);case 7:p=y.h,h=Ol(m,p,r,s),g=new Blob([h],{type:"text/vtt"}),e=Ps(g),r="text/vtt";case 6:if(v={id:m.fg++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:tu(0,f,[e]),mimeType:r||"",codecs:i||"",kind:n,encrypted:!1,drmInfos:[],keyIds:new Set,language:t,originalLanguage:t,label:a||null,type:d.wa,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!o,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([Tr(r||"",i||"")]),isAudioMuxedInVideo:!1},!Ur(Tr(v.mimeType,v.codecs)))throw new Pe(2,2,2014,r);return m.i.textStreams.push(v),Kl(m),y.return(fi(v))}}))},r.yh=function(e,t){var n,r,i,a,o,s,u,l,d,f,p,h,g,v,m,y,b,x=this;return D((function(S){switch(S.g){case 1:if(x.m!=cd&&x.m!=ld)throw new Pe(1,7,7004);if(t){S.u(2);break}return w(S,Ll(x,e),3);case 3:t=S.h;case 2:if("text/vtt"!=t)throw new Pe(1,2,2017,e);if(n=br,r=x.h.duration,x.i&&(r=x.i.presentationTimeline.getDuration()),1/0==r)throw new Pe(1,4,4045);return w(S,Nl(x,e,x.G,x.g.streaming.retryParameters),4);case 4:if(i=S.h,!(a=Br[t]))throw new Pe(2,2,2014,t);for(o=a(),s={periodStart:0,segmentStart:0,segmentEnd:r,vttOffset:0},u=ve(i),l=o.parseMedia(u,s,e,[]),d=[],f=c(l),p=f.next(),h={};!p.done;h={ze:void 0,Fc:void 0},p=f.next())h.Fc=p.value,h.ze=null,g=function(t){return function(){return null==t.ze&&(t.ze=fr([e],[t.Fc.payload])),t.ze||[]}}(h),v=new mo(h.Fc.startTime,h.Fc.endTime,g,0,null,null,0,0,1/0),h.Fc.payload.includes("#xywh")&&4===(m=h.Fc.payload.split("#xywh=")[1].split(",")).length&&v.qe({height:parseInt(m[3],10),positionX:parseInt(m[0],10),positionY:parseInt(m[1],10),width:parseInt(m[2],10)}),d.push(v);if(y=t,!d.length){S.u(5);break}return w(S,kc(d[0].N()[0],x.G,x.g.manifest.retryParameters),6);case 6:y=S.h;case 5:return b={id:x.fg++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Qs(d),mimeType:y||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:n.Ie,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([Tr(y||"","")]),isAudioMuxedInVideo:!1},x.m==ld?x.ud.push(b):x.i.imageStreams.push(b),Kl(x),S.return(pi(b))}}))},r.wh=function(e,t,n){var r,i,a,o,s=this;return D((function(u){switch(u.g){case 1:if(s.m!=cd&&s.m!=ld)throw new Pe(1,7,7004);if(n){u.u(2);break}return w(u,Ll(s,e),3);case 3:n=u.h;case 2:return r=[],s.s&&(r=s.s.getCuePoints()),w(u,Rl(s,e,t,"chapters",n,"",r),4);case 4:if(i=u.h,a=s.zg(),!(o=a.find((function(e){return e.language==t})))){u.u(5);break}return w(u,new Promise((function(e,t){s.l.va(i,"load",e),s.l.va(i,"error",(function(){t(new Pe(1,2,2015))}))})),6);case 6:return Kl(s),u.return(o);case 5:throw new Pe(1,2,2012)}}))},r.bj=function(e,t){this.ja.width=e,this.ja.height=t},r.Of=function(e){if(this.m==cd){var t=this.j;if(e=void 0===e?.1:e,t.m.g)t=!1;else if(t.A)t=!1;else{for(var n=c(t.i.values()),r=n.next();!r.done;r=n.next())!(r=r.value).jd||r.Ea||r.eb||(r.jd=!1,Gu(t,r,e));t=!0}}else t=!1;return t},r.lf=function(){return X("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees. It may change at any time! Please consider filing a feature request for whatever you use getManifest() for."),this.i},r.Vh=function(){return this.Na},r.Qh=function(){var e={video:null,audio:null,text:null};if(this.m!=cd)return e;for(var t=this.j.j,n=this.h.currentTime,r=(t=c([t.video,t.audio,this.j.s])).next();!r.done;r=t.next())if((r=r.value)&&r.segmentIndex){var i=r.segmentIndex.find(n);i={codecs:(i=r.segmentIndex.get(i)).codecs||r.codecs,mimeType:i.mimeType||r.mimeType,bandwidth:i.bandwidth||r.bandwidth},"video"==r.type?(i.width=r.width,i.height=r.height,e.video=i):"audio"==r.type?e.audio=i:r.type==yr&&(e.text=i)}return e},r.kh=function(e){this.ie=e},r.disableStream=function(e,t){if(!this.g.abr.enabled||this.m===sd||!navigator.onLine||0==t||!this.i)return!1;if(this.i.variants.some((function(t){var n=t[e.type];return!(!n||n.id===e.id||t.disabledUntilTime||"audio"==e.type&&e.language!==n.language)}))){for(var n=!1,r=!1,i=c(this.i.variants),a=i.next();!a.done;a=i.next()){var o=(a=a.value)[e.type];o&&(o.id===e.id?(a.disabledUntilTime=Date.now()/1e3+t,n=!0):o.trickModeVideo&&o.trickModeVideo.id==e.id&&(r=!0))}return!(!n&&r||(this.le.Ra(1),t=this.zb().video.reduce((function(e,t){return e+t.end-t.start}),0),zl(this,!1,t,!0,!1),0))}return!1},r.addFont=function(t,n){var r,i,a,o,s;return D((function(u){if(1==u.g)return"fonts"in document&&"FontFace"in e?w(u,document.fonts.ready,3):u.u(0);if(!("entries"in document.fonts))return u.return();for(r=function(e){for(var t=[],n=(e=e.entries()).next();!1===n.done;)t.push(n.value),n=e.next();return t},i=c(r(document.fonts)),a=i.next();!a.done;a=i.next())if((o=a.value).family==t&&"swap"==o.display)return u.return();s=new FontFace(t,"url("+n+")",{display:"swap"}),document.fonts.add(s),x(u)}))},r.Ja=function(){return!(!this.h||!this.h.remote)&&"disconnected"!=this.h.remote.state},B("shaka.Player",fl),fl.prototype.isRemotePlayback=fl.prototype.Ja,fl.prototype.addFont=fl.prototype.addFont,fl.prototype.setVideoContainer=fl.prototype.kh,fl.prototype.getFetchedPlaybackInfo=fl.prototype.Qh,fl.prototype.getManifestParserFactory=fl.prototype.Vh,fl.prototype.getManifest=fl.prototype.lf,fl.prototype.retryStreaming=fl.prototype.Of,fl.prototype.setMaxHardwareResolution=fl.prototype.bj,fl.prototype.addChaptersTrack=fl.prototype.wh,fl.prototype.addThumbnailsTrack=fl.prototype.yh,fl.prototype.addTextTrackAsync=fl.prototype.xh,fl.prototype.getStats=fl.prototype.getStats,fl.prototype.getBufferedInfo=fl.prototype.zb,fl.prototype.getSegmentAvailabilityDuration=fl.prototype.Pd,fl.prototype.getPresentationStartTimeAsDate=fl.prototype.Eg,fl.prototype.getPlayheadTimeAsDate=fl.prototype.$h,fl.prototype.setTextTrackVisibility=fl.prototype.hh,fl.prototype.getChapters=fl.prototype.Nh,fl.prototype.getChaptersTracks=fl.prototype.zg,fl.prototype.isTextTrackVisible=fl.prototype.wf,fl.prototype.selectVariantsByLabel=fl.prototype.Xi,fl.prototype.selectTextLanguage=fl.prototype.Qf,fl.prototype.selectAudioLanguage=fl.prototype.$g,fl.prototype.getTextLanguages=fl.prototype.di,fl.prototype.getAudioLanguages=fl.prototype.Kh,fl.prototype.getTextLanguagesAndRoles=fl.prototype.ei,fl.prototype.getAudioLanguagesAndRoles=fl.prototype.Lh,fl.prototype.selectVariantTrack=fl.prototype.Rf,fl.prototype.selectTextTrack=fl.prototype.ah,fl.prototype.getThumbnails=fl.prototype.Fg,fl.prototype.getAllThumbnails=fl.prototype.Jh,fl.prototype.getImageTracks=fl.prototype.Sh,fl.prototype.getTextTracks=fl.prototype.qc,fl.prototype.getVariantTracks=fl.prototype.rc,fl.prototype.cancelTrickPlay=fl.prototype.Yc,fl.prototype.trickPlay=fl.prototype.zd,fl.prototype.getPlaybackRate=fl.prototype.ib,fl.prototype.isBuffering=fl.prototype.uf,fl.prototype.getKeyStatuses=fl.prototype.Nd,fl.prototype.getActiveSessionsMetadata=fl.prototype.kf,fl.prototype.getExpiration=fl.prototype.ed,fl.prototype.drmInfo=fl.prototype.drmInfo,fl.prototype.keySystem=fl.prototype.keySystem,fl.prototype.isFullyLoaded=fl.prototype.pi,fl.prototype.goToLive=fl.prototype.li,fl.prototype.seekRange=fl.prototype.Rb,fl.prototype.isAudioOnly=fl.prototype.oi,fl.prototype.isInProgress=fl.prototype.uc,fl.prototype.isLive=fl.prototype.U,fl.prototype.getAdManager=fl.prototype.xg,fl.prototype.getAssetUri=fl.prototype.Kc,fl.prototype.getNetworkingEngine=fl.prototype.Ab,fl.prototype.getMediaElement=fl.prototype.Yh,fl.prototype.getManifestType=fl.prototype.mf,fl.prototype.getLoadMode=fl.prototype.Bg,fl.prototype.resetConfiguration=fl.prototype.Ri,fl.prototype.getBufferFullness=fl.prototype.yg,fl.prototype.getNonDefaultConfiguration=fl.prototype.Dg,fl.prototype.getConfiguration=fl.prototype.getConfiguration,fl.prototype.configure=fl.prototype.configure,fl.prototype.releaseAllMutexes=fl.prototype.Ni,fl.prototype.destroyAllPreloads=fl.prototype.Ue,fl.prototype.preload=fl.prototype.preload,fl.prototype.detachAndSavePreload=fl.prototype.tg,fl.prototype.unloadAndSavePreload=fl.prototype.ej,fl.prototype.load=fl.prototype.load,fl.prototype.updateStartTime=fl.prototype.ij,fl.prototype.unload=fl.prototype.ic,fl.prototype.detach=fl.prototype.detach,fl.prototype.attachCanvas=fl.prototype.Ch,fl.prototype.attach=fl.prototype.Ub,fl.probeSupport=function(e){var t,n,r,i,a,o,s;return e=void 0===e||e,D((function(u){switch(u.g){case 1:if(t={},!e){u.u(2);break}return w(u,function(){var e,t,n,r,i,a,o,s,u,l,d,f,p,h,g,v,m,y,b,T,A,E,I,M,_,P,L;return D((function(R){if(1==R.g){for(e="org.w3.clearkey com.widevine.alpha com.widevine.alpha.experiment com.microsoft.playready com.microsoft.playready.hardware com.microsoft.playready.recommendation com.chromecast.playready com.apple.fps.1_0 com.apple.fps".split(" "),n={"com.widevine.alpha":t=["SW_SECURE_CRYPTO","SW_SECURE_DECODE","HW_SECURE_CRYPTO","HW_SECURE_DECODE","HW_SECURE_ALL"],"com.widevine.alpha.experiment":t,"com.microsoft.playready.recommendation":["150","2000","3000"]},a={videoCapabilities:r=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],audioCapabilities:i=[{contentType:'audio/mp4; codecs="mp4a.40.2"'},{contentType:'audio/webm; codecs="opus"'}],initDataTypes:["cenc","sinf","skd","keyids"]},o=[null,"cenc","cbcs","cbcs-1-9"],s=new Map,u=function(e,t){var n,r,i,a,o,u,c,l;return D((function(d){switch(d.g){case 1:return S(d,2),w(d,t.createMediaKeys(),4);case 4:k(d,3);break;case 2:return C(d),d.return();case 3:r=!!(n=t.getConfiguration().sessionTypes)&&n.includes("persistent-license"),Ke()&&(r=!1),i=t.getConfiguration().videoCapabilities,a=t.getConfiguration().audioCapabilities,o={persistentState:r,encryptionSchemes:[],videoRobustnessLevels:[],audioRobustnessLevels:[]},s.has(e)&&s.get(e)?o=s.get(e):s.set(e,o),(u=i[0].encryptionScheme)&&!o.encryptionSchemes.includes(u)&&o.encryptionSchemes.push(u),(c=i[0].robustness)&&!o.videoRobustnessLevels.includes(c)&&o.videoRobustnessLevels.push(c),(l=a[0].robustness)&&!o.audioRobustnessLevels.includes(l)&&o.audioRobustnessLevels.push(l),x(d)}}))},l=function(e,t,n,r){var i,o,s,l,d,f,p,h,g,v;return D((function(m){switch(m.g){case 1:for(S(m,2),i=Et(a),o=c(i.videoCapabilities),s=o.next();!s.done;s=o.next())(l=s.value).encryptionScheme=t,l.robustness=n;for(d=c(i.audioCapabilities),f=d.next();!f.done;f=d.next())(p=f.value).encryptionScheme=t,p.robustness=r;return(h=Et(i)).persistentState="required",h.sessionTypes=["persistent-license"],g=[h,i],w(m,navigator.requestMediaKeySystemAccess(e,g),4);case 4:return v=m.h,w(m,u(e,v),5);case 5:k(m,0);break;case 2:C(m),x(m)}}))},d=function(e,t,n,a){var o,s,c;return D((function(l){switch(l.g){case 1:return S(l,2),o={type:"media-source",video:{contentType:r[0].contentType,width:640,height:480,bitrate:1,framerate:1},audio:{contentType:i[0].contentType,channels:2,bitrate:1,samplerate:1},keySystemConfiguration:{keySystem:e,video:{encryptionScheme:t,robustness:n},audio:{encryptionScheme:t,robustness:a}}},w(l,navigator.mediaCapabilities.decodingInfo(o),4);case 4:return s=l.h,c=s.keySystemAccess,w(l,u(e,c),5);case 5:k(l,0);break;case 2:C(l),x(l)}}))},f=c(e),p=f.next();!p.done;p=f.next())h=p.value,s.set(h,null);for(g=[],v=c(o),m=v.next();!m.done;m=v.next())for(y=m.value,b=c(e),T=b.next();!T.done;T=b.next())"org.w3.clearkey"===(A=T.value)&&tt()||(g.push(l(A,y,"","")),g.push(d(A,y,"","")));for(E=c(e),I=E.next();!I.done;I=E.next())for(M=I.value,_=c(n[M]||[]),P=_.next();!P.done;P=_.next())L=P.value,g.push(l(M,null,L,"")),g.push(l(M,null,"",L)),g.push(d(M,null,L,"")),g.push(d(M,null,"",L));return w(R,Promise.all(g),2)}return R.return(ma(s))}))}(),3);case 3:t=u.h;case 2:var d={};if(Ve())for(var f in lo)d[f]=!0;for(var p=(f=c(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"])).next();!p.done;p=f.next())d[p=p.value]=Ve()?!!lo[p]:$e(p);for(n=d,d={},p=(f=c(f='video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",video/mp4; codecs="dvh1.05.01",video/mp4; codecs="dvh1.20.01",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="ac-4.02.01.01",audio/mp4; codecs="opus",audio/mp4; codecs="flac",audio/mp4; codecs="dtsc",audio/mp4; codecs="dtse",audio/mp4; codecs="dtsx",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(l(Nr)))).next();!p.done;p=f.next()){d[p=p.value]=!!Ur(p)||(Ve()?ne(p)||!!On(p):$e(p));var h=p.split(";")[0];d[h]=d[h]||d[p]}return r=d,w(u,ut(),4);case 4:for(s in i=u.h,a={manifest:n,media:r,drm:t,hardwareResolution:i},o=fd)a[s]=o[s]();return u.return(a)}}))},fl.isBrowserSupported=function(){if(e.Promise||X("A Promise implementation or polyfill is required"),!(e.Promise&&e.Uint8Array&&Array.prototype.forEach)||at("Trident/"))return!1;var t=tt();return!(t&&9>t||!(e.MediaKeys&&e.navigator&&e.navigator.requestMediaKeySystemAccess&&e.MediaKeySystemAccess&&e.MediaKeySystemAccess.prototype.getConfiguration))&&(!!Ve()||$e("application/x-mpegurl"))},fl.setAdManagerFactory=function(e){pd=e},fl.registerSupportPlugin=function(e,t){fd[e]=t},fl.prototype.destroy=fl.prototype.destroy;var sd=0,ud=1,cd=2,ld=3;fl.LoadMode={DESTROYED:sd,NOT_LOADED:ud,MEDIA_SOURCE:cd,SRC_EQUALS:ld},fl.version="v4.12.2";var dd=["4","12"];ce=new function(e){this.g=e,this.i=se,this.h=ue}(new ae(Number(dd[0]),Number(dd[1])));var fd={},pd=null;function hd(){this.g=[],this.i=this.l=this.j=this.h=0}function gd(e){return e.g.length?e.g.reduce((function(e,t){return e+t}),0)/e.g.length:0}function vd(e,t,n){var r=this;this.g=e,this.h=t,this.j=n,this.i=!1,this.l=this.h.getVolume(),this.m=new Q,this.m.D(this.h,google.ima.AdEvent.Type.PAUSED,(function(){r.i=!0})),this.m.D(this.h,google.ima.AdEvent.Type.RESUMED,(function(){r.i=!1}))}function md(){}function yd(e,t){var n=[],r=0;null!=t&&(r=t);for(var i=(e=c(Rt(e,"Ad"))).next();!i.done;i=e.next())if((i=jt(i.value,"InLine"))&&(i=jt(i,"Creatives")))for(var a=(i=c(Rt(i,"Creative"))).next();!a.done;a=i.next()){var o=jt(a.value,"Linear");if(o&&(a=null,o.attributes.skipoffset&&(a=Ct(o.attributes.skipoffset),isNaN(a)&&(a=null)),o=jt(o,"MediaFiles"))){var s=Rt(o,"MediaFile");for(o=s,s=s.filter((function(e){return"streaming"==e.attributes.delivery})),s.length&&(o=s),o=o.sort((function(e,t){return(parseInt(t.attributes.height,10)||0)-(parseInt(e.attributes.height,10)||0)})),s=(o=c(o)).next();!s.done;s=o.next())if(s=Nt(s.value)){n.push({id:null,startTime:r,endTime:null,uri:s,isSkippable:null!=a,skipOffset:a,skipFor:null,canJump:!1,resumeOffset:0,playoutLimit:null,once:!0,pre:null==t,post:1/0==t,timelineRange:!1});break}}}return n}function bd(t,n,r,i,a){var o=this;this.s=t,this.i=n,this.F=!1,this.A=this.o=null,this.G=NaN,this.l=a,this.j=null,this.h=new Q,google.ima.settings.setLocale(r),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0),this.C=new google.ima.AdDisplayContainer(this.s,this.i),this.C.initialize(),this.m=new google.ima.AdsLoader(this.C),this.m.getSettings().setPlayerType("shaka-player"),this.m.getSettings().setPlayerVersion("v4.12.2"),this.g=null,this.B=i||new google.ima.AdsRenderingSettings,this.h.D(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(t){!function(t,n){if(t.l(new Yi("ads-loaded",(new Map).set("loadTime",Date.now()/1e3-t.G))),t.o.customPlayheadTracker){var r={currentTime:t.i.currentTime};t.g=n.getAdsManager(r,t.B),t.i.muted?t.g.setVolume(0):t.g.setVolume(t.i.volume),t.h.D(t.i,"timeupdate",(function(){t.i.duration&&(r.currentTime=t.i.currentTime)})),t.h.D(t.i,"volumechange",(function(){t.j&&(t.j.setVolume(t.i.volume),t.i.muted&&t.j.setMuted(!0))}))}else t.g=n.getAdsManager(t.i,t.B);t.l(new Yi("ima-ad-manager-loaded",(new Map).set("imaAdManager",t.g)));var i=t.g.getCuePoints();if(i.length){n=[];for(var a=(i=c(i)).next();!a.done;a=i.next())n.push({start:a.value,end:null});t.l(new Yi("ad-cue-points-changed",(new Map).set("cuepoints",n)))}!function(e){function t(t,n){t=(new Map).set("originalEvent",t),e.l(new Yi(n,t))}e.h.D(e.g,google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){wd(e,t)})),e.h.D(e.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,(function(t){Sd(e,t)})),e.h.D(e.g,google.ima.AdEvent.Type.STARTED,(function(t){Sd(e,t)})),e.h.D(e.g,google.ima.AdEvent.Type.FIRST_QUARTILE,(function(e){t(e,"ad-first-quartile")})),e.h.D(e.g,google.ima.AdEvent.Type.MIDPOINT,(function(e){t(e,"ad-midpoint")})),e.h.D(e.g,google.ima.AdEvent.Type.THIRD_QUARTILE,(function(e){t(e,"ad-third-quartile")})),e.h.D(e.g,google.ima.AdEvent.Type.COMPLETE,(function(e){t(e,"ad-complete")})),e.h.D(e.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,(function(t){Td(e,t)})),e.h.D(e.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,(function(t){Td(e,t)})),e.h.D(e.g,google.ima.AdEvent.Type.SKIPPED,(function(e){t(e,"ad-skipped")})),e.h.D(e.g,google.ima.AdEvent.Type.VOLUME_CHANGED,(function(e){t(e,"ad-volume-changed")})),e.h.D(e.g,google.ima.AdEvent.Type.VOLUME_MUTED,(function(e){t(e,"ad-muted")})),e.h.D(e.g,google.ima.AdEvent.Type.PAUSED,(function(n){e.j&&(e.j.i=!0,t(n,"ad-paused"))})),e.h.D(e.g,google.ima.AdEvent.Type.RESUMED,(function(n){e.j&&(e.j.i=!1,t(n,"ad-resumed"))})),e.h.D(e.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,(function(n){e.j&&t(n,"ad-skip-state-changed")})),e.h.D(e.g,google.ima.AdEvent.Type.CLICK,(function(e){t(e,"ad-clicked")})),e.h.D(e.g,google.ima.AdEvent.Type.AD_PROGRESS,(function(e){t(e,"ad-progress")})),e.h.D(e.g,google.ima.AdEvent.Type.AD_BUFFERING,(function(e){t(e,"ad-buffering")})),e.h.D(e.g,google.ima.AdEvent.Type.IMPRESSION,(function(e){t(e,"ad-impression")})),e.h.D(e.g,google.ima.AdEvent.Type.DURATION_CHANGE,(function(e){t(e,"ad-duration-changed")})),e.h.D(e.g,google.ima.AdEvent.Type.USER_CLOSE,(function(e){t(e,"ad-closed")})),e.h.D(e.g,google.ima.AdEvent.Type.LOADED,(function(e){t(e,"ad-loaded")})),e.h.D(e.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,(function(e){t(e,"all-ads-completed")})),e.h.D(e.g,google.ima.AdEvent.Type.LINEAR_CHANGED,(function(e){t(e,"ad-linear-changed")})),e.h.D(e.g,google.ima.AdEvent.Type.AD_METADATA,(function(e){t(e,"ad-metadata")})),e.h.D(e.g,google.ima.AdEvent.Type.LOG,(function(e){t(e,"ad-recoverable-error")})),e.h.D(e.g,google.ima.AdEvent.Type.AD_BREAK_READY,(function(e){t(e,"ad-break-ready")})),e.h.D(e.g,google.ima.AdEvent.Type.INTERACTION,(function(e){t(e,"ad-interaction")}))}(t);try{t.g.init(t.i.offsetWidth,t.i.offsetHeight,xd(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),t.h.D(t.i,"loadeddata",(function(){t.g.resize(t.i.offsetWidth,t.i.offsetHeight,xd(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)})),"ResizeObserver"in e?(t.A=new ResizeObserver((function(){t.g.resize(t.i.offsetWidth,t.i.offsetHeight,xd(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)})),t.A.observe(t.i)):t.h.D(document,"fullscreenchange",(function(){t.g.resize(t.i.offsetWidth,t.i.offsetHeight,xd(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)})),t.F||t.o.skipPlayDetection?t.g.start():t.h.va(t.i,"play",(function(){t.F=!0,t.g.start()}))}catch(e){Td(t,null)}}(o,t)})),this.h.D(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,(function(e){wd(o,e)})),this.h.D(this.i,"ended",(function(){o.m.contentComplete()})),this.h.va(this.i,"play",(function(){o.F=!0}))}function wd(e,t){t.getError(),t=(new Map).set("originalEvent",t),e.l(new Yi("ad-error",t)),Td(e,null),e.l(new Yi("ad-cue-points-changed",(new Map).set("cuepoints",[])))}function xd(e){return document.fullscreenEnabled?!!document.fullscreenElement:!!(e=e.i).webkitSupportsFullscreen&&e.webkitDisplayingFullscreen}function Sd(e,t){var n=t.getAd();n?(e.j=new vd(n,e.g,e.i),t.type!=google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED||e.o.supportsMultipleMediaElements||e.l(new Yi("ad-content-pause-requested")),t=(new Map).set("ad",e.j).set("sdkAdObject",n).set("originalEvent",t),e.l(new Yi("ad-started",t)),e.j.isLinear()&&(e.s.setAttribute("ad-active","true"),e.o.customPlayheadTracker||e.i.pause(),e.i.muted?((t=e.j).l=e.i.volume,t.h.setVolume(0)):e.j.setVolume(e.i.volume))):X("The IMA SDK fired a "+t.type+" event with no associated ad. Unable to play ad!")}function Td(e,t){t&&t.type==google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED&&!e.o.supportsMultipleMediaElements&&e.l(new Yi("ad-content-resume-requested")),e.l(new Yi("ad-stopped",(new Map).set("originalEvent",t))),e.j&&e.j.isLinear()&&(e.s.removeAttribute("ad-active"),e.o.customPlayheadTracker||e.i.ended||e.i.play())}function kd(e,t,n,r,i,a,o,s){this.g=e,this.h=(this.i=t)?n||0:n,this.j=r,this.o=i,this.s=a,this.l=o,this.m=s}function Cd(e,t,n,r){function i(){if(!a.H&&a.j&&!a.A.Ja()){a.j=a.g.currentTime,a.C&&!a.C.pre&&!a.C.post&&a.j=l&&(a.s.has(s)||a.s.set(s,a.h.preload(s.uri))),p.u(4);break}if(!a.s.has(s)){p.u(7);break}return w(p,a.s.get(s),8);case 8:(d=p.h)&&d.destroy(),a.s.delete(s);case 7:f=JSON.stringify(s),a.I.has(f)&&a.I.delete(f),a.B.delete(s),t=!0;case 4:o=i.next(),p.u(3);break;case 5:t&&_d(a),x(p)}}))})).Ra(1)}function Ad(e){if(e.G&&e.L&&!e.H){var t=e.L.supportsMultipleMediaElements,n=e.g;n.webkitSupportsFullscreen&&n.webkitDisplayingFullscreen&&(t=!1),e.o==t&&(e.o=!t,e.o?(e.l=e.g,e.F&&(e.F.parentElement&&e.G.removeChild(e.F),e.F=null)):(e.F||((t=document.createElement(e.g.tagName)).autoplay=!0,t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%",t.style.backgroundColor="rgb(0, 0, 0)",t.setAttribute("playsinline",""),e.F=t),e.l=e.F))}}function Ed(e,t){for(var n=!1,r=(t=c(t)).next();!r.done;r=t.next()){var i=(r=r.value).id||JSON.stringify(r);if(!e.I.has(i)){if(n=!0,e.I.add(i),e.B.add(r),i=!1,r.pre&&null==e.j)i=!0;else if(0!=r.startTime||r.canJump){if(null!=e.j){var a=r.startTime-e.j;0=a&&(i=!0)}}else i=!0;i&&(e.s.has(r)||e.s.set(r,e.h.preload(r.uri)))}}n&&_d(e)}function Id(e,t,n,r){var i=0,a=null;if(e.B.size&&null!=e.j)for(var o=e.g.ended,s=Array.from(e.B).sort((function(e,t){return t.startTime-e.startTime})),u=(s=c(s)).next();!u.done;u=s.next()){u=u.value;var l=!1;if(t)l=u.pre;else if(o)l=u.post;else if(!u.pre&&!u.post){var d=e.j-Math.round(1e3*u.startTime)/1e3;0=d||!u.canJump)&&(l=!(r&&!r.pre&&!r.post&&r.startTime>=u.startTime))}if(l){if(i==n){a=u;break}i++}}return a}function Md(e,t,n,r,i,a){var o,s,u,c,l,d,f,p,h,g,v,m,y,b,T,A,E;a=void 0===a?0:a,D((function(I){switch(I.g){case 1:if(Ad(e),e.C=t,o=Date.now(),!e.l.parentElement&&e.G&&e.G.appendChild(e.l),1==r&&1==n&&(n=Array.from(e.B).filter((function(e){return t.pre?e.pre==t.pre:t.post?e.post==t.post:.001>Math.abs(e.startTime-t.startTime)})).length),(t.once||t.pre)&&(a++,e.B.delete(t),_d(e)),e.H=!0,!e.o||1!=r){I.u(2);break}return e.i(new Yi("ad-content-pause-requested",(new Map).set("saveLivePosition",!0))),s=new zi,u=function(t){return D((function(n){if(1==n.g)return"detach"!=t.state?n.u(0):it()?w(n,new Promise((function(e){return new Be(e).Z(.1)})),3):n.u(3);s.resolve(),e.m.cb(e.A,"onstatechange",u),x(n)}))},e.m.D(e.A,"onstatechange",u),w(I,s,2);case 2:return e.o||(e.g.pause(),null!=t.resumeOffset&&0!=t.resumeOffset&&(e.g.currentTime+=t.resumeOffset)),c=!1,l=null,d=function(){if(!e.o&&null==t.resumeOffset)if(t.timelineRange&&t.endTime&&1/0!=t.endTime)e.g.currentTime!=t.endTime&&(e.g.currentTime=t.endTime);else{var n=Date.now();e.g.currentTime+=(n-i)/1e3,i=n}},f=function(){var o,s;return D((function(u){if(1==u.g)return d(),l&&l.stop(),(o=Id(e,t.pre,r-a))?(e.i(new Yi("ad-stopped")),e.m.Va(),Md(e,o,n,++r,i,a),u.u(0)):e.o?w(u,e.h.detach(),4):w(u,e.h.ic(),4);e.o&&(null==(s=t.resumeOffset)&&(s=t.timelineRange&&t.endTime&&1/0!=t.endTime?t.endTime-(e.j||0):(Date.now()-i)/1e3),e.i(new Yi("ad-content-resume-requested",(new Map).set("offset",s)))),e.i(new Yi("ad-stopped")),e.m.Va(),e.H=!1,e.o?_d(e):(d(),e.g.ended||e.g.play()),Ad(e),x(u)}))},p=function(t){return D((function(n){return c?n.return():(c=!0,e.i(new Yi("ad-error",(new Map).set("originalEvent",t))),w(n,f(),0))}))},h=function(){return D((function(t){if(1==t.g)return c?t.return():(c=!0,w(t,f(),2));e.i(new Yi("ad-complete")),x(t)}))},g=function(){return D((function(t){return c?t.return():(c=!0,e.i(new Yi("ad-skipped")),w(t,f(),0))}))},v=new kd(e.l,t.isSkippable,t.skipOffset,t.skipFor,g,n,r,!e.o),e.o||(v.setMuted(e.g.muted),v.setVolume(e.g.volume)),e.i(new Yi("ad-started",(new Map).set("ad",v))),(m=v.canSkipNow())&&e.i(new Yi("ad-skip-state-changed")),y=new Set,e.m.va(e.h,"error",p),e.m.D(e.l,"timeupdate",(function(){var t=e.l.duration;if(t){var n=v.canSkipNow();m!=n&&0=t.playRangeEnd?h():e.i(new Yi("ad-paused"))})),e.m.D(e.l,"volumechange",(function(){e.l.muted?e.i(new Yi("ad-muted")):e.i(new Yi("ad-volume-changed"))})),S(I,4),Pd(e),t.startTime&&t.endTime&&1/0!=t.endTime&&t.startTime!=t.endTime&&0<(b=t.endTime-t.startTime)&&e.h.configure("playRangeEnd",b),t.playoutLimit&&(l=new Be((function(){v.skip()})).Z(t.playoutLimit),e.h.configure("playRangeEnd",t.playoutLimit)),w(I,e.h.Ub(e.l),6);case 6:return e.s.has(t)?w(I,e.s.get(t),10):w(I,e.h.load(t.uri),8);case 10:return T=I.h,e.s.delete(t),w(I,T?e.h.load(T):e.h.load(t.uri),8);case 8:t.playoutLimit&&(l&&l.stop(),l=new Be((function(){v.skip()})).Z(t.playoutLimit)),A=(Date.now()-o)/1e3,e.i(new Yi("ads-loaded",(new Map).set("loadTime",A))),e.o&&e.g.play(),k(I,0);break;case 4:E=C(I),p(E),x(I)}}))}function _d(e){for(var t=[],n=c(e.B),r=n.next(),i={};!r.done;i={Tb:void 0},r=n.next())r=r.value,i.Tb={start:r.startTime,end:null},r.pre?(i.Tb.start=0,i.Tb.end=null):r.post?(i.Tb.start=-1,i.Tb.end=null):r.timelineRange&&(i.Tb.end=r.endTime),t.find(function(e){return function(t){return e.Tb.start==t.start&&e.Tb.end==t.end}}(i))||t.push(i.Tb);e.i(new Yi("ad-cue-points-changed",(new Map).set("cuepoints",t)))}function Pd(e){e.h.configure(e.A.Dg()),e.h.configure("ads.disableHLSInterstitial",!0),e.h.configure("ads.disableDASHInterstitial",!0);var t=e.h.Ab();t.og(),t.pg(),ia(e.A.Ab(),t)}function Dd(e,t,n){var r,i;return D((function(a){return 1==a.g?(r=aa([t],{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}),w(a,e.A.Ab().request(7,r,n).promise,2)):(i=a.h,a.return(i.data))}))}function Ld(e,t,n,r,i){this.h=e,this.j=Ct(this.h.skipOffset),this.g=i,this.i=t,this.l=n,this.o=r,this.m=!1}function Rd(e,t,n,r){this.B=e,this.K=t,this.h=n,this.l=null,this.S=NaN,this.i=r,this.I=!1,this.A=null,this.j=[],this.M=[],this.L=this.C=this.g=null,this.F=new Map,this.m=[],this.s=[],this.G="",this.O=!0,this.H="",this.o=new Q}function Nd(e,t){var n,r,i,a,o,s,u,c;D((function(l){return 1==l.g?t.staticResource?(n=Od(t),e.F.get(n)?l.return():(r={type:9},i=aa([t.staticResource],{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}),a=e.K.request(7,i,r),S(l,2),e.F.set(n,[]),w(l,a.promise,4))):l.return():2!=l.g?(o=l.h,s=ft(o.data),u=JSON.parse(s),c=u.apps,e.F.set(n,c),k(l,0)):(C(l),e.F.delete(n),void x(l))}))}function Od(e){return[e.adId,e.adParameters,e.adSystem,e.adTitle,e.creativeAdId,e.creativeId,e.creativeSequence,e.height,e.width,e.staticResource].join("")}function Ud(e){var t=e.h.currentTime;if(0!=t&&null==e.A){for(var n,r,i=c(e.j),a=i.next();!a.done;a=i.next())for(var o=c((a=a.value).ads),s=o.next();!s.done;s=o.next())if(s=s.value,r){if(s.startTimeInSecondsr.startTimeInSeconds+r.durationInSeconds){r=s,n=a;break}}else s.startTimeInSeconds=r.startTimeInSeconds+.25*r.durationInSeconds&&!e.s.includes("firstQuartile")?(e.s.push("firstQuartile"),Vd(e,"firstQuartile")):t>=i&&!e.s.includes("midpoint")?(e.s.push("midpoint"),Vd(e,"midpoint")):t>=a&&!e.s.includes("thirdQuartile")&&(e.s.push("thirdQuartile"),Vd(e,"thirdQuartile")),r=e.g.getRemainingTime(),i=e.g.getDuration(),e.g.canSkipNow()&&0=r||r>i)&&Fd(e)}if(!e.g||!e.g.isLinear()){e:for(r=c(e.j),i=r.next();!i.done&&(i=i.value,!e.g||!e.g.isLinear());i=r.next())for(a=0;at){if(e.M.includes(o.adId)){if(e.h.ended)continue;e.h.currentTime=s;break e}Fd(e),e.L=i,e.g=new Ld(o,a+1,i.ads.length,!0,e.h),e.C=o,0===a&&Vd(e,"breakStart"),Bd(e);break}}if(!e.g)for(i=(r=c(e.j)).next();!i.done&&(i=i.value,!e.g);i=r.next())for(a=0;at&&(e.h.currentTime=e.A),e.A=null)}}}function Fd(e){if(e.g){for(;e.B.lastChild;)e.B.removeChild(e.B.firstChild);e.I||e.M.push(e.C.adId);var t=e.g.m;Vd(e,void 0!==t&&t?"skip":"complete");for(var n=(t=c(e.m)).next();!n.done;n=t.next())n=n.value,e.o.cb(n.target,n.type,n.listener);e.m=[],e.s=[],(t=e.g.getPositionInSequence())===(n=e.g.getSequenceLength())&&Vd(e,"breakEnd"),e.g=null,e.C=null,e.L=null}}function Bd(e){var t=!1;e.h.paused?t=!0:(Vd(e,"impression"),Vd(e,"start")),e.m.push({target:e.h,type:"volumechange",listener:function(){e.h.muted&&Vd(e,"mute")}}),e.m.push({target:e.h,type:"volumechange",listener:function(){e.h.muted||Vd(e,"unmute")}}),e.m.push({target:e.h,type:"play",listener:function(){t?(Vd(e,"impression"),Vd(e,"start"),t=!1):Vd(e,"resume")}}),e.m.push({target:e.h,type:"pause",listener:function(){Vd(e,"pause")}});for(var n=c(e.m),r=n.next();!r.done;r=n.next())r=r.value,e.o.D(r.target,r.type,r.listener)}function Vd(e,t){var n=e.C.trackingEvents.find((function(e){return e.eventType==t}));if(n||(n=e.L.adBreakTrackingEvents.find((function(e){return e.eventType==t}))),n)for(var r={type:10},i=(n=c(n.beaconUrls)).next();!i.done;i=n.next())(i=i.value)&&""!=i&&((i=aa([i],{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4})).method="POST",e.K.request(7,i,r));switch(t){case"impression":e.i(new Yi("ad-impression"));break;case"start":e.i(new Yi("ad-started",(new Map).set("ad",e.g)));break;case"mute":e.i(new Yi("ad-muted"));break;case"unmute":e.i(new Yi("ad-volume-changed"));break;case"resume":e.i(new Yi("ad-resumed"));break;case"pause":e.i(new Yi("ad-paused"));break;case"firstQuartile":e.i(new Yi("ad-first-quartile"));break;case"midpoint":e.i(new Yi("ad-midpoint"));break;case"thirdQuartile":e.i(new Yi("ad-third-quartile"));break;case"complete":e.i(new Yi("ad-complete")),e.i(new Yi("ad-stopped"));break;case"skip":e.i(new Yi("ad-skipped")),e.i(new Yi("ad-stopped"));break;case"breakStart":e.B.setAttribute("ad-active","true");break;case"breakEnd":e.B.removeAttribute("ad-active");break;case"skipStateChanged":e.i(new Yi("ad-skip-state-changed"))}}function $d(e,t){this.g=e,this.i=null,this.h=t}function zd(e,t,n,r){var i=this;this.s=e,this.l=t,this.j=null,this.F=NaN,this.i=r,this.G=!1,this.A=this.m=this.o=null,this.B="",this.C=[],this.h=new Q,(e=new google.ima.dai.api.UiSettings).setLocale(n),this.g=new google.ima.dai.api.StreamManager(this.l,this.s,e),this.i(new Yi("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g))),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,(function(e){!function(e,t){e.i(new Yi("ads-loaded",(new Map).set("loadTime",Date.now()/1e3-e.F))),t=t.getStreamData().url,e.j.resolve(t),e.j=null,e.G||e.h.D(e.l,"seeked",(function(){var t=e.l.currentTime;if(0!=t){e.g.streamTimeForContentTime(t);var n=e.g.previousCuePointForStreamTime(t);n&&!n.played&&(e.o=t,e.l.currentTime=n.start)}}))}(i,e)})),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,(function(){i.B.length?i.j.resolve(i.B):i.j.reject("IMA Stream request returned an error and there was no backup asset uri provided."),i.j=null})),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,(function(){})),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,(function(e){e=e.getAd(),i.m=new $d(e,i.l),i.A&&(i.m.i=i.A),i.i(new Yi("ad-started",(new Map).set("ad",i.m))),i.s.setAttribute("ad-active","true")})),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,(function(){i.s.removeAttribute("ad-active");var e=i.l.currentTime;i.o&&i.o>e&&(i.l.currentTime=i.o,i.o=null)})),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,(function(e){i.A=e.getStreamData().adProgressData,i.m&&(i.m.i=i.A)})),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,(function(){i.i(new Yi("ad-first-quartile"))})),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,(function(){i.i(new Yi("ad-midpoint"))})),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,(function(){i.i(new Yi("ad-third-quartile"))})),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,(function(){i.i(new Yi("ad-complete")),i.i(new Yi("ad-stopped")),i.s.removeAttribute("ad-active"),i.m=null})),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,(function(){i.i(new Yi("ad-skipped")),i.i(new Yi("ad-stopped"))})),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,(function(e){var t=e.getStreamData();e=[];for(var n=(t=c(t.cuepoints)).next();!n.done;n=t.next())n=n.value,e.push({start:n.start,end:n.end});i.C=e,i.i(new Yi("ad-cue-points-changed",(new Map).set("cuepoints",e)))}))}function Hd(){Qi.call(this),this.g=this.i=this.j=this.h=null,this.m=new hd,this.o=navigator.language,this.l=null}function qd(e,t){if(t&&t.type)switch(t.type){case"ads-loaded":e.m.g.push(t.loadTime);break;case"ad-started":e.m.h++;break;case"ad-complete":e.m.j++;break;case"ad-skipped":e.m.l++;break;case"ad-error":e.m.i++}e.dispatchEvent(t)}function Kd(e){return JSON.stringify(e,(function(e,t){if("function"!=typeof t){if(t instanceof Event||t instanceof Yi){var n={};for(r in t)(e=t[r])&&"object"==typeof e?"detail"==r&&(n[r]=e):r in Event||(n[r]=e);return n}if(t instanceof Error){var r=new Set(["name","message","stack"]);for(n in t)r.add(n);for(e=(n=c(Object.getOwnPropertyNames(t))).next();!e.done;e=n.next())r.add(e.value);for(n={},e=(r=c(r)).next();!e.done;e=r.next())n[e=e.value]=t[e];t={__type__:"Error",contents:n}}else if(t instanceof TimeRanges){for(r={__type__:"TimeRanges",length:t.length,start:[],end:[]},n=(t=c(Co(t))).next();!n.done;n=t.next())e=(n=n.value).end,r.start.push(n.start),r.end.push(e);t=r}else t=t instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(t)}:"number"==typeof t?isNaN(t)?"NaN":isFinite(t)?t:0>t?"-Infinity":"Infinity":t;return t}}))}function Gd(e){return JSON.parse(e,(function(e,t){if("NaN"==t)var n=NaN;else if("-Infinity"==t)n=-1/0;else if("Infinity"==t)n=1/0;else if(t&&"object"==typeof t&&"TimeRanges"==t.__type__)n=function(e){return{length:e.length,start:function(t){return e.start[t]},end:function(t){return e.end[t]}}}(t);else if(t&&"object"==typeof t&&"Uint8Array"==t.__type__)n=new Uint8Array(t.entries);else if(t&&"object"==typeof t&&"Error"==t.__type__){for(n in e=t.contents,t=Error(e.message),e)t[n]=e[n];n=t}else n=t;return n}))}(r=vd.prototype).needsSkipUI=function(){return!1},r.isClientRendering=function(){return!0},r.isUsingAnotherMediaElement=function(){return!0},r.getDuration=function(){return this.g.getDuration()},r.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()},r.getRemainingTime=function(){return this.h.getRemainingTime()},r.isPaused=function(){return this.i},r.isSkippable=function(){return 0<=this.g.getSkipTimeOffset()},r.getTimeUntilSkippable=function(){var e=this.g.getSkipTimeOffset();return e=this.getRemainingTime()-e,Math.max(e,0)},r.canSkipNow=function(){return this.h.getAdSkippableState()},r.skip=function(){return this.h.skip()},r.pause=function(){return this.h.pause()},r.play=function(){return this.h.resume()},r.getVolume=function(){return this.h.getVolume()},r.setVolume=function(e){return this.j.volume=e,this.h.setVolume(e)},r.isMuted=function(){return 0==this.h.getVolume()},r.isLinear=function(){return this.g.isLinear()},r.resize=function(e,t){var n=!1,r=this.j;document.fullscreenEnabled?n=!!document.fullscreenElement:r.webkitSupportsFullscreen&&(n=r.webkitDisplayingFullscreen),this.h.resize(e,t,n?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)},r.setMuted=function(e){(this.j.muted=e)?(this.l=this.getVolume(),this.h.setVolume(0)):this.h.setVolume(this.l)},r.getSequenceLength=function(){var e=this.g.getAdPodInfo();return null==e?1:e.getTotalAds()},r.getPositionInSequence=function(){var e=this.g.getAdPodInfo();return null==e?1:e.getAdPosition()},r.getTitle=function(){return this.g.getTitle()},r.getDescription=function(){return this.g.getDescription()},r.getVastMediaBitrate=function(){return this.g.getVastMediaBitrate()},r.getVastMediaHeight=function(){return this.g.getVastMediaHeight()},r.getVastMediaWidth=function(){return this.g.getVastMediaWidth()},r.getAdId=function(){return this.g.getAdId()},r.getCreativeAdId=function(){return this.g.getCreativeAdId()},r.getAdvertiserName=function(){return this.g.getAdvertiserName()},r.getMediaUrl=function(){return this.g.getMediaUrl()},r.getTimeOffset=function(){var e=this.g.getAdPodInfo();return null==e?0:e.getTimeOffset()},r.getPodIndex=function(){var e=this.g.getAdPodInfo();return null==e?0:e.getPodIndex()},r.release=function(){this.h=this.g=null},B("shaka.ads.ClientSideAd",vd),vd.prototype.release=vd.prototype.release,vd.prototype.getPodIndex=vd.prototype.getPodIndex,vd.prototype.getTimeOffset=vd.prototype.getTimeOffset,vd.prototype.getMediaUrl=vd.prototype.getMediaUrl,vd.prototype.getAdvertiserName=vd.prototype.getAdvertiserName,vd.prototype.getCreativeAdId=vd.prototype.getCreativeAdId,vd.prototype.getAdId=vd.prototype.getAdId,vd.prototype.getVastMediaWidth=vd.prototype.getVastMediaWidth,vd.prototype.getVastMediaHeight=vd.prototype.getVastMediaHeight,vd.prototype.getVastMediaBitrate=vd.prototype.getVastMediaBitrate,vd.prototype.getDescription=vd.prototype.getDescription,vd.prototype.getTitle=vd.prototype.getTitle,vd.prototype.getPositionInSequence=vd.prototype.getPositionInSequence,vd.prototype.getSequenceLength=vd.prototype.getSequenceLength,vd.prototype.setMuted=vd.prototype.setMuted,vd.prototype.resize=vd.prototype.resize,vd.prototype.isLinear=vd.prototype.isLinear,vd.prototype.isMuted=vd.prototype.isMuted,vd.prototype.setVolume=vd.prototype.setVolume,vd.prototype.getVolume=vd.prototype.getVolume,vd.prototype.play=vd.prototype.play,vd.prototype.pause=vd.prototype.pause,vd.prototype.skip=vd.prototype.skip,vd.prototype.canSkipNow=vd.prototype.canSkipNow,vd.prototype.getTimeUntilSkippable=vd.prototype.getTimeUntilSkippable,vd.prototype.isSkippable=vd.prototype.isSkippable,vd.prototype.isPaused=vd.prototype.isPaused,vd.prototype.getRemainingTime=vd.prototype.getRemainingTime,vd.prototype.getMinSuggestedDuration=vd.prototype.getMinSuggestedDuration,vd.prototype.getDuration=vd.prototype.getDuration,vd.prototype.isUsingAnotherMediaElement=vd.prototype.isUsingAnotherMediaElement,vd.prototype.isClientRendering=vd.prototype.isClientRendering,vd.prototype.needsSkipUI=vd.prototype.needsSkipUI,B("shaka.ads.Utils",md),md.ADS_LOADED="ads-loaded",md.AD_STARTED="ad-started",md.AD_FIRST_QUARTILE="ad-first-quartile",md.AD_MIDPOINT="ad-midpoint",md.AD_THIRD_QUARTILE="ad-third-quartile",md.AD_COMPLETE="ad-complete",md.AD_STOPPED="ad-stopped",md.AD_SKIPPED="ad-skipped",md.AD_VOLUME_CHANGED="ad-volume-changed",md.AD_MUTED="ad-muted",md.AD_PAUSED="ad-paused",md.AD_RESUMED="ad-resumed",md.AD_SKIP_STATE_CHANGED="ad-skip-state-changed",md.CUEPOINTS_CHANGED="ad-cue-points-changed",md.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded",md.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded",md.AD_CLICKED="ad-clicked",md.AD_PROGRESS="ad-progress",md.AD_BUFFERING="ad-buffering",md.AD_IMPRESSION="ad-impression",md.AD_DURATION_CHANGED="ad-duration-changed",md.AD_CLOSED="ad-closed",md.AD_LOADED="ad-loaded",md.ALL_ADS_COMPLETED="all-ads-completed",md.AD_LINEAR_CHANGED="ad-linear-changed",md.AD_METADATA="ad-metadata",md.AD_RECOVERABLE_ERROR="ad-recoverable-error",md.AD_ERROR="ad-error",md.AD_BREAK_READY="ad-break-ready",md.AD_INTERACTION="ad-interaction",md.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested",md.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested",md.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested",bd.prototype.configure=function(e){this.o=e},bd.prototype.stop=function(){this.g&&this.g.stop(),this.s&&Io(this.s)},bd.prototype.release=function(){this.stop(),this.A&&this.A.disconnect(),this.h&&this.h.release(),this.g&&this.g.destroy(),this.m.destroy(),this.C.destroy()},(r=kd.prototype).needsSkipUI=function(){return!0},r.isClientRendering=function(){return!0},r.isUsingAnotherMediaElement=function(){return this.m},r.getDuration=function(){var e=this.g.duration;return isNaN(e)?-1:e},r.getMinSuggestedDuration=function(){return this.getDuration()},r.getRemainingTime=function(){var e=this.g.duration;return isNaN(e)?-1:e-this.g.currentTime},r.isPaused=function(){return this.g.paused},r.isSkippable=function(){return this.i&&null!=this.j?this.getDuration()-this.getRemainingTime()=i)return null;for(var a=-1,o=-1,s=0;sn||127n||0>t))if(t>=n)for(--r;0<=r;r--)e.i[t+r]=e.i[n+r].map((function(e){return e}));else for(var i=0;it;t++)e.i.push(fp())}function fp(){for(var e=[],t=0;42>t;t++)e.push(null);return e}function pp(e,t){hp(e)&&(e.i[e.h][e.g]=new Kf(t,e.C,e.A,e.s,e.B),e.g++)}function hp(e){var t=e.g=n)r=7&n,e.h[r]&&(e.g=e.h[r]);else{if(136===n){n=bp(t).value,t=null;for(var i=(n=c(Sp(e,n))).next();!i.done;i=n.next())(i=e.h[i.value]).isVisible()&&(t=gp(i,r,e.i)),dp(i);return t}if(137===n)for(n=(t=c(Sp(e,t=bp(t).value))).next();!n.done;n=t.next())(n=e.h[n.value]).isVisible()||(n.j=r),n.display();else{if(138===n){for(n=bp(t).value,t=null,i=(n=c(Sp(e,n))).next();!i.done;i=n.next())(i=e.h[i.value]).isVisible()&&(t=gp(i,r,e.i)),i.l=!1;return t}if(139===n){for(n=bp(t).value,t=null,i=(n=c(Sp(e,n))).next();!i.done;i=n.next())(i=e.h[i.value]).isVisible()?t=gp(i,r,e.i):i.j=r,i.l=!i.l;return t}if(140===n)return Tp(e,t=bp(t).value,r);if(143===n)return r=Tp(e,255,r),kp(e),r;if(144===n)t.skip(1),r=bp(t).value,e.g&&(e.g.A=0<(128&r),e.g.C=0<(64&r));else if(145===n)r=bp(t).value,n=bp(t).value,t.skip(1),e.g&&(t=Cp((48&n)>>4,(12&n)>>2,3&n),e.g.B=Cp((48&r)>>4,(12&r)>>2,3&r),e.g.s=t);else if(146===n)r=bp(t).value,t=bp(t).value,e.g&&((e=e.g).h=15&r,e.g=63&t);else if(151===n)t.skip(1),t.skip(1),r=bp(t).value,t.skip(1),e.g&&(e.g.F=3&r);else if(152<=n&&159>=n){if(n=(15&n)-8,!(i=null!==e.h[n])){var a=new lp(n,e.i);a.j=r,e.h[n]=a}r=bp(t).value,a=bp(t).value;var o=bp(t).value,s=bp(t).value,u=bp(t).value;t=bp(t).value,i&&0==(7&t)||((t=e.h[n]).h=0,t.g=0,t.C=!1,t.A=!1,t.B="white",t.s="black"),(t=e.h[n]).l=0<(32&r),t.L=127&a,t.H=o,t.G=(240&s)>>4,t.K=0<(128&a),t.o=1+(15&s),t.m=1+(63&u),e.g=e.h[n]}}}return null}function Sp(e,t){for(var n=[],r=0;8>r;r++)1==(1&t)&&e.h[r]&&n.push(r),t>>=1;return n}function Tp(e,t,n){for(var r=null,i=(t=c(Sp(e,t))).next();!i.done;i=t.next()){i=i.value;var a=e.h[i];a.isVisible()&&(r=gp(a,n,e.i)),e.h[i]=null}return r}function kp(e){e.g=null,e.h=[null,null,null,null,null,null,null,null]}function Cp(e,t,n){var r={0:0,1:0,2:1,3:1};return Ep[(e=r[e])<<2|(t=r[t])<<1|(n=r[n])]}lp.prototype.isVisible=function(){return this.l},lp.prototype.display=function(){this.l=!0},yp.prototype.sa=function(){return this.gthis.h.length)throw new Pe(2,2,3e3);this.g+=e};var Ap=new Map([[32," "],[33," "],[37,"…"],[42,"Š"],[44,"Œ"],[48,"█"],[49,"‘"],[50,"’"],[51,"“"],[52,"”"],[53,"•"],[57,"™"],[58,"š"],[60,"œ"],[61,"℠"],[63,"Ÿ"],[118,"⅛"],[119,"⅜"],[120,"⅝"],[121,"⅞"],[122,"│"],[123,"┐"],[124,"└"],[125,"─"],[126,"┘"],[127,"┌"]]),Ep="black blue green cyan red magenta yellow white".split(" ");function Ip(){this.h=[],this.g=[],this.i=new vp,this.l=0,this.m=new Map([["CC1",new ip(0,0)],["CC2",new ip(0,1)],["CC3",new ip(1,0)],["CC4",new ip(1,1)]]),this.s=this.o=0,this.j=new Map,this.B=!0,this.A=new Set,Mp(this)}function Mp(e){e.o=0,e.s=0;for(var t=c(e.m.values()),n=t.next();!n.done;n=t.next())(n=n.value).h=0,n.g=n.j,n.m=null,Wf(n.i),Wf(n.j),Wf(n.o);e.B=!0}function _p(e,t){var n=t.type;if(16==(112&t.gb)){var r=t.gb>>3&1;0===n?e.o=r:e.s=r}if(r="CC"+(1+(n<<1|(n?e.s:e.o))),n=e.m.get(r),255===t.gb&&255===t.Eb||!t.gb&&!t.Eb||!Dp(t.gb)||!Dp(t.Eb))return 45<=++e.l&&Mp(e),null;e.l=0,t.gb&=127,t.Eb&=127;var i=t.gb;if(1<=i&&15>=i||!t.gb&&!t.Eb)return null;if(i=null,16==(112&t.gb))e:{if(e.A.add(r),r=t.gb,e=t.Eb,n.m===(r<<8|e))n.m=null;else if(n.m=r<<8|e,16==(240&r)&&64==(192&e)){t=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(7&r)<<1|e>>5&1],r="white",i=!1;var a=null,o=95=o?r=cp[Math.floor(o/2)]:15>=o?i=!0:a=Math.floor((o-16)/2),e=1==(1&e),4!==n.h&&(o=n.g,3===n.h&&t!==o.g&&(Jf(o,n=1+t-o.h,1+o.g-o.h,o.h),Zf(o,0,n-1),Zf(o,t+1,15-t)),o.g=t,o.m=e,o.j=i,o.l=r,o.s=a,o.o="black")}else if(17==(247&r)&&32==(240&e))n.g.m=!1,n.g.j=!1,n.g.l="white",Yf(n.g,0,32),r=!1,"white_italics"===(t=cp[(14&e)>>1])&&(t="white",r=!0),n.g.m=1==(1&e),n.g.j=r,n.g.l=t;else if(16==(247&r)&&32==(240&e)||23==(247&r)&&45==(255&e))t="black",0==(7&r)&&(t=up[(14&e)>>1]),n.g.o=t;else if(17==(247&r)&&48==(240&e))Yf(n.g,1,e);else if(18==(246&r)&&32==(224&e))Yf(n.g,1&r?3:2,e);else{if(20==(246&r)&&32==(240&e)){switch(e=t.pts,r=null,t.Eb){case 32:op(n);break;case 33:(n=n.g).i[n.g].pop();break;case 37:r=ap(n,2,e);break;case 38:r=ap(n,3,e);break;case 39:r=ap(n,4,e);break;case 40:Yf(n.g,0,32);break;case 41:n.h=2,n.g=n.i,n.g.h=0,n.l=e;break;case 42:Wf(n.o),sp(n);break;case 43:sp(n);break;case 44:t=n.i,r=null,4!==n.h&&(r=Xf(t,n.l,e)),Zf(t,0,15);break;case 45:t=n.g,3!==n.h?r=null:(r=Xf(t,n.l,e),Jf(t,(i=t.g-t.h+1)-1,i,t.h),Zf(t,0,i-1),Zf(t,t.g,15-t.g),n.l=e);break;case 46:Zf(n.j,0,15);break;case 47:t=null,4!==n.h&&(t=Xf(n.i,n.l,e)),r=n.j,n.j=n.i,n.i=r,op(n),n.l=e,r=t}i=r;break e}(23==r||31==r)&&33<=e&&35>=e&&(n.g.A=e-32)}i=null}else e=t.Eb,Yf(n.g,0,t.gb),Yf(n.g,0,e);return i}function Pp(e,t){var n=[];try{for(;t.sa();){var r=bp(t).value,i=(224&r)>>5,a=31&r;if(7===i&&0!=a&&(i=63&bp(t).value),0!=i){e.A.add("svc"+i),e.j.has(i)||e.j.set(i,new wp(i));for(var o=e.j.get(i),s=t.ya();t.ya()-s=l){var f=l,p=d;if((u=i).g){var h=u.g;switch(i=null,f){case 8:!hp(h)||0>=h.g&&0>=h.h||(0>=h.g?(h.g=h.m-1,h.h--):h.g--,h.i[h.h][h.g]=null);break;case 13:if(h.isVisible()&&(i=gp(h,p,u.i)),h.h+1>=h.o){for(u=h,f=0,p=1;16>p;p++,f++)u.i[f]=u.i[p];for(p=0;1>p;p++,f++)u.i[f]=fp()}else h.h++;h.g=0;break;case 14:h.isVisible()&&(i=gp(h,p,u.i)),h.i[h.h]=fp(),h.g=0;break;case 12:h.isVisible()&&(i=gp(h,p,u.i)),dp(h),(u=h).h=0,u.g=0}var g=i}else g=null}else if(128<=l&&159>=l)g=xp(i,u,l,d);else{if(4096<=l&&4127>=l)i=u,8<=(u=255&l)&&15>=u?i.skip(1):16<=u&&23>=u?i.skip(2):24<=u&&31>=u&&i.skip(3);else if(4224<=l&&4255>=l)i=u,128<=(u=255&l)&&135>=u?i.skip(4):136<=u&&143>=u&&i.skip(5);else if(32<=l&&127>=l)u=l,i.g&&pp(i.g,127===u?"♪":String.fromCharCode(u));else if(160<=l&&255>=l)i.g&&pp(i.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(u=255&l,i.g)if(Ap.has(u)){var v=Ap.get(u);pp(i.g,v)}else pp(i.g,"_")}else 4256<=l&&4351>=l&&i.g&&pp(i.g,160!=(255&l)?"_":"[CC]");g=null}(i=g)&&n.push(i)}}}}catch(e){if(!(e instanceof Pe&&3e3===e.code))throw e;W("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.")}return n}function Dp(e){for(var t=0;e;)t^=1&e,e>>=1;return 1===t}function Lp(e){for(var t=[],n=e,r=e=0;r>1&63)||40==g;break;case Fp:s=2,t.skip(1),g=23==(g=h>>1&63)||24==g;break;default:return}if(g)for(h=0,d(e=new ya(e,0)).getLength())&&181===e.T()&&49===e.ma()&&1195456820===e.P()&&3===e.T()&&0!=(64&(n=e.T())))for(n&=31,e.skip(1),r=0;r>2,o=e.T(),s=e.T();a&&(0==(i&=3)||1===i?this.h.push({pts:t,type:i,gb:o,Eb:s,order:this.h.length}):(this.g.push({pts:t,type:i,value:o,order:this.g.length}),this.g.push({pts:t,type:2,value:s,order:this.g.length})))}},Ip.prototype.decode=function(){function e(e,t){return e.pts-t.pts||e.order-t.order}var t=[];this.h.sort(e),this.g.sort(e);for(var n=c(this.h),r=n.next();!r.done;r=n.next())(r=_p(this,r.value))&&t.push(r);for(r=(n=c(this.g)).next();!r.done;r=n.next())mp(this.i,r.value);for(r=(n=c(this.i.i)).next();!r.done;r=n.next())r=Pp(this,r.value),t.push.apply(t,l(r));return this.i.i=[],this.h=[],this.g=[],t},Ip.prototype.getStreams=function(){return Array.from(this.A)},B("shaka.cea.CeaDecoder",Ip),Te=function(){return new Ip},Rp.prototype.init=function(e){function t(e){(e=e.name)in Bp&&(n.g=Bp[e])}var n=this,r=[],i=[];if((new xa).box("moov",Sa).box("mvex",Sa).R("trex",(function(e){var t=e.reader;t.skip(4),t.skip(4),e=t.P(),t=t.P(),n.h=e,n.i=t})).box("trak",Sa).R("tkhd",(function(e){var t=e.reader;1==(e=e.version)?(t.skip(8),t.skip(8)):(t.skip(4),t.skip(4));var n=t.P();1==e?t.skip(8):t.skip(4),t.skip(4),t.skip(8),t.skip(2),t.skip(2),t.skip(2),t.skip(2),t.skip(36),t.ma(),t.ma(),t.ma(),t.ma(),r.push(n)})).box("mdia",Sa).R("mdhd",(function(e){e=jo(e.reader,e.version),i.push(e.timescale)})).box("minf",Sa).box("stbl",Sa).R("stsd",Ta).box("avc1",t).box("avc3",t).box("dvav",t).box("dva1",t).box("hev1",t).box("hvc1",t).box("dvh1",t).box("dvhe",t).box("vvc1",t).box("vvi1",t).box("dvc1",t).box("dvi1",t).box("encv",ka).box("sinf",Sa).box("frma",(function(e){(e=Vo(e.reader).codec)in Bp&&(n.g=Bp[e])})).parse(e,!0),!r.length||!i.length||r.length!=i.length)throw new Pe(2,2,2010);this.g==Op&&X("Unable to determine bitstream format for CEA parsing!"),r.forEach((function(e,t){n.j.set(e,i[t])}))},Rp.prototype.parse=function(e){var t=this;if(this.g==Op)return[];var n=[],r=0,i=[];return(new xa).box("moof",(function(e){r=e.start,i=[],Sa(e)})).box("traf",(function(e){i.push({baseMediaDecodeTime:null,cd:t.h,Kd:t.i,Sg:[],timescale:9e4}),Sa(e)})).R("trun",(function(e){var t=i[i.length-1];e=Fo(e.reader,e.version,e.flags),t.Sg.push(e)})).R("tfhd",(function(e){var n=i[i.length-1];e=Oo(e.reader,e.flags),n.cd=e.cd||t.h,n.Kd=e.Kd||t.i,e=e.trackId,t.j.has(e)&&(n.timescale=t.j.get(e))})).R("tfdt",(function(e){var t=i[i.length-1];e=Uo(e.reader,e.version),t.baseMediaDecodeTime=e.baseMediaDecodeTime})).box("mdat",(function(e){for(var a=r-e.start-8,o=e.reader.ya(),s=c(i),u=s.next();!u.done;u=s.next()){if(null===(u=u.value).baseMediaDecodeTime)throw X("Unable to find base media decode time for CEA captions!"),new Pe(2,2,2010);e.reader.seek(o),Np(t,e.reader,u.baseMediaDecodeTime,u.timescale,u.cd,u.Kd,a,u.Sg,n)}})).parse(e,!1),n},B("shaka.cea.Mp4CeaParser",Rp);var Op=0,Up=1,jp=2,Fp=3,Bp={avc1:Up,avc3:Up,dvav:Up,dva1:Up,hev1:jp,hvc1:jp,dvh1:jp,dvhe:jp,vvc1:Fp,vvi1:Fp,dvc1:Fp,dvi1:Fp};function Vp(){this.g=null}function $p(t,n,r){var i=function(e){for(var t=[],n=(e=c(e)).next();!n.done;n=e.next())(n=Hp(n.value))&&t.push(n);return t}(t),a=null;t=[];var o=[],s=null,u=new Set(i.map((function(e){return e.keyId})));u.delete(null);var l="cenc";if(1n.byteLength){n=[];break e}var a=ve(n,e,i);t.push({type:r,value:a}),e+=i}n=t}return n}(e=ur(e=Nt(e))).filter((function(e){return e.type===qp}))[0],e&&(e=_t(e=pt(e.value,!0),"WRMHEADER"))?function(e){for(var t=(e=c(Ut(e,"DATA"))).next();!t.done;t=e.next())if((t=t.value).children)for(var n=(t=c(t.children)).next();!n.done;n=t.next())if("LA_URL"==(n=n.value).tagName)return Nt(n);return""}(e):""):""}function Hp(e){var t=e.attributes.schemeIdUri,n=Vt(e,"urn:mpeg:cenc:2013","default_KID"),r=$t(e,"urn:mpeg:cenc:2013","pssh").map(Ot),i=e.attributes.value;if(!t)return null;if(t=t.toLowerCase(),n&&(n=n.replace(/-/g,"").toLowerCase()).includes(" "))throw new Pe(2,4,4009);var a=[];try{a=r.map((function(e){return{initDataType:"cenc",initData:ur(e),keyId:null}}))}catch(e){throw new Pe(2,4,4007)}return{node:e,Uc:t,keyId:n,init:0(g=g||0))if(f){if(null==(f=Bt(f,"t",Wt)))break;if(p>=f)break;g=Math.ceil((f-p)/h)-1}else{if(1/0==e)break;if(p/i>=e)break;g=Math.ceil((e*i-p)/h)-1}for(0>>31;f&=2147483647;var h=o.reader.P();if(o.reader.skip(4),1==p)throw new Pe(2,3,3006);s.push(new mo(c/u+n,(c+h)/u+n,(function(){return a}),e,e+f-1,t,n,r,i)),c+=h,e+=f}return o.parser.stop(),s}(t,r,i,a,o,n,e)}));if(e&&u.parse(e),s)return s;throw new Pe(2,3,3004)}(m,i,r,n,x,S,T);else{I=m;var M=new Qp(y);if(440786851!=eh(M).id)throw new Pe(2,3,3008);var _=eh(M);if(408125543!=_.id)throw new Pe(2,3,3009);M=_.g.byteOffset,_=new Qp(_.g);for(var P=null;_.sa();){var D=eh(_);if(357149030==D.id){P=D;break}}if(!P)throw new Pe(2,3,3010);for(P=new Qp(P.g),D=1e6,_=null;P.sa();){var L=eh(P);if(2807729==L.id)D=ih(L);else if(17545==L.id)if(4==L.g.byteLength)_=L.g.getFloat32(0);else{if(8!=L.g.byteLength)throw new Pe(2,3,3003);_=L.g.getFloat64(0)}}if(null==_)throw new Pe(2,3,3011);if(_*=P=D/1e9,475249515!=(I=eh(new Qp(I))).id)throw new Pe(2,3,3007);I=function(e,t,n,r,i,a,o,s,u){function c(){return i}var l=[];e=new Qp(e.g);for(var d=null,f=null;e.sa();){var p=eh(e);if(187==p.id){var h=ah(p);h&&(p=n*h.hj,h=t+h.Mi,null!=d&&l.push(new mo(d+o,p+o,c,f,h-1,a,o,s,u)),d=p,f=h)}}return null!=d&&l.push(new mo(d+o,r+o,c,f,null,a,o,s,u)),l}(I,M,P,_,r,n,x,S,T)}for(k=c(b=I),C=k.next();!C.done;C=k.next())(A=C.value).codecs=e.J.codecs,A.mimeType=e.J.mimeType,A.bandwidth=e.bandwidth;return s.td(b),h=new Qs(b),u&&h.Ic(S,T,!0),E.return(h)}))}function uh(e){return e.Wc}function ch(e){var t=Jp(e,uh,"RepresentationIndex");return e=Kt((e=Yp(e,uh,"indexRange"))||""),t&&(e=Bt(t,"range",Kt,e)),e}function lh(e,t){var n=e.J.mimeType.split("/")[1];if(e.J.contentType!=yr&&"mp4"!=n&&"webm"!=n)throw new Pe(2,4,4006);if("webm"==n&&!t)throw new Pe(2,4,4005)}function dh(e){var t=e.J;return{bandwidth:e.bandwidth,audioSamplingRate:t.audioSamplingRate,codecs:t.codecs,contentType:t.contentType,frameRate:t.frameRate||null,height:t.height||null,mimeType:t.mimeType,channelsCount:t.de,pixelAspectRatio:t.pixelAspectRatio||null,width:t.width||null,label:e.ga.label||null,roles:e.roles||null,language:e.ga.language||null}}function fh(e){return e.Sb}function ph(t,n,r,i,a,o,s,u,l){l||t.J.Td||(t.J.Td=Yp(t,hh,"initialization"));var d=t.J.Td?function(e,t){var n=e.J.Td;if(n||(n=Yp(e,hh,"initialization")),!n)return null;n=yt(n);var r=e.J.id,i=e.bandwidth||null,a=e.J.Oa,o=e.ob;return t=new go((function(){var e=Gp(n,r,null,null,i,null);return fr(a(),[e],o())}),0,null,dh(e),null,null,t),t.codecs=e.J.codecs,t.mimeType=e.J.mimeType,t}(t,s):null,f=function(e){var t=Xp(e,hh),n=Yp(e,hh,"media"),r=Yp(e,hh,"index"),i=Yp(e,hh,"k"),a=0;return i&&(a=parseInt(i,10)),{Qa:t.Qa,timescale:t.timescale,yd:t.yd,Qb:t.Qb,dg:t.dg,timeline:t.timeline,cc:n&&yt(n),kd:r,mimeType:e.J.mimeType,codecs:e.J.codecs,bandwidth:e.bandwidth,Di:a}}(t);!function(e){var t=e.kd?1:0;if(t+=e.timeline?1:0,0==(t+=e.Qa?1:0))throw new Pe(2,4,4002);if(1!=t&&(e.kd&&(e.timeline=null),e.Qa=null),!e.kd&&!e.cc)throw new Pe(2,4,4002)}(f);var p=It(t);if(f.kd)return lh(t,d),{nc:function(){var e=Gp(f.kd,p.J.id,null,null,p.bandwidth||null,null);return e=fr(p.J.Oa(),[e]),sh(p,n,d,e,0,null,f.Qb)}};if(f.Qa)return i||"image"===t.ga.contentType||"text"===t.ga.contentType||(r=t.ia.start,i=t.oa.id,l=t.ia.duration,i=(i=null!=i&&o[i]||l)?r+i:1/0,t.presentationTimeline.Cf(f.Qa),t.presentationTimeline.Qg(r,i)),{nc:function(){return function(t,n,r,i,a,o,s,u){function l(r){var a=(r-y)*m,s=a+n.Qb,c=a+h;a=c+m;var l=Math.min(a,f()),d=[],p=n.Di;if(p)for(var g=(l-c)/p,v={},A=0;ANumber.MAX_SAFE_INTEGER&&(n=BigInt(s)*BigInt(b)),n=Gp(w,S,r,t.mh,x,n),fr(T(),[n],k())}}(v),0,null,i,C,h,f(),[],"",null,null,bo,o)).codecs=t.J.codecs,v.mimeType=t.J.mimeType,0==u?0Number.MAX_SAFE_INTEGER&&(t=BigInt(s)*BigInt(b)),t=Gp(w,S,r,null,x,t),fr(T(),[t],k())}),0,null,i,C,h,f(),d,"",null,null,bo,o,0f()&&!n.length?null:n}))}return Promise.resolve(M)}(p,f,a,d,o,s,u,t.J.oe)}};var h=null;i=i=null,t.oa.id&&t.J.id&&(i=r[i=t.oa.id+","+t.J.id])&&(h=i.segmentIndex);var g=t.ia.start,v=t.ia.duration?g+t.ia.duration:1/0,m=!(t.xb&&t.ia.vf);return h?(vh(r=h,f,g,v,m,d),r.Ia(t.presentationTimeline.qb())):h=new gh(f,t.J.id,t.bandwidth,t.J.Oa,t.ob,g,v,d,m,s,t.J.oe),f.timeline&&"image"!==t.ga.contentType&&"text"!==t.ga.contentType&&t.presentationTimeline.Rg(f.timeline,g),i&&t.xb&&(i.segmentIndex=h),{nc:function(){return h instanceof gh&&0==h.getNumReferences()&&vh(h,f,g,v,m,d),Promise.resolve(h)}}}function hh(e){return e.ec}function gh(e,t,n,r,i,a,o,s,u,c,l){Qs.call(this,[]),this.h=e,this.F=t,this.B=n,this.C=r,this.H=i,this.j=a,this.l=o,this.s=s,this.A=c,this.G=l,u&&mh(this)}function vh(e,t,n,r,i,a){if(function(e,t){if(e.s!==t){e.s=t;for(var n=(e=c(e.g)).next();!n.done;n=e.next())(n=n.value)&&yo(n,t)}}(e,a),e.h){if(n=e.h.timeline,e.h.cc!==t.cc&&(e.h.cc=t.cc),n.length){var o=n[n.length-1];t=t.timeline.filter((function(e){return e.end>o.end}))}else t=t.timeline.slice();0=e.l;)t.pop();e.Ia(e.j)}}function yh(e,t,n,r,i,a,o,s){return e=Gp(e,t,n,a,r||null,i),fr(o(),[e],s()).map((function(e){return e.toString()}))}function bh(e){this.o=null,this.A=e,this.G=new ea,this.i=[],this.h=null,this.m=[],this.B=null,this.F=[],this.C=300,this.l=new Map,this.j=new Map,this.g=null,this.s="UNKNOWN"}function wh(e,t){var n,r,i,a,o,s,u;return D((function(c){return 1==c.g?(n=fr(e.i,[xh(e,t)]),r=aa(n,e.o.retryParameters),i=e.A.networkingEngine.request(8,r),ta(e.G,i),S(c,2),w(c,i.promise,4)):2!=c.g?(a=c.h,o=ft(a.data),1==(s=JSON.parse(o)).VERSION&&function(e,t,n){null!=e.g&&(e.g.stop(),e.g=null);var r=t["RELOAD-URI"]||n;e.g=new Be((function(){wh(e,r)})),(n=t.TTL)&&(e.C=n),e.g.Z(e.C),e.m=t["PATHWAY-PRIORITY"]||[],e.F=t["PATHWAY-CLONES"]||[]}(e,s,a.uri),k(c,0)):(u=C(c))&&7001==u.code?c.return():(null!=e.g&&(e.g.stop(),e.g=null),e.g=new Be((function(){wh(e,t)})),e.g.Z(e.C),void x(c))}))}function xh(e,t){if(!e.m.length)return t;t=new zn(t);var n=e.B||e.m[0],r=Math.round(e.A.getBandwidthEstimate()),i=t.g;return"DASH"==e.s?(i.add("_DASH_pathway",n),i.add("_DASH_throughput",String(r))):"HLS"==e.s&&(i.add("_HLS_pathway",n),i.add("_HLS_throughput",String(r))),ir(i)&&Gn(t,i),t.toString()}function Sh(e,t,n,r){var i=e.l.get(t);i||(i=new Map),i.set(n,r),e.l.set(t,i)}function Th(e,t,n){n=void 0!==n&&n,t=e.l.get(t)||new Map;for(var r=[],i=c(e.m),a=i.next(),o={};!a.done;o={Rc:void 0},a=i.next())if(o.Rc=a.value,a=t.get(o.Rc))r.push({If:o.Rc,location:a});else if(a=e.F.find(function(e){return function(t){return t.Aj==e.Rc}}(o))){var s=t.get(a["BASE-ID"]);s&&(a["URI-REPLACEMENT"].uh?(qn(s=new zn(s),a["URI-REPLACEMENT"].uh),r.push({If:o.Rc,location:s.toString()})):r.push({If:o.Rc,location:s}))}for(i=Date.now(),a=(o=c(e.j.keys())).next();!a.done;a=o.next())a=a.value,i>(s=e.j.get(a))&&e.j.delete(a);if(r=r.filter((function(t){for(var n=c(e.j.keys()),r=n.next();!r.done;r=n.next())if(r.value.includes(new zn(t.location).Fb))return!1;return!0})),r.length&&(e.B=r[0].If),r=r.map((function(e){return e.location})),!r.length&&e.h)for(o=(i=c(e.h.split(","))).next();!o.done;o=i.next())(o=t.get(o.value))&&(e.B=e.h,r.push(o));if(!r.length)for(i=(t=c(t.values())).next();!i.done;i=t.next())r.push(i.value);return n?r:fr(e.i,r)}function kh(){this.l=[],this.h=[],this.g=[],this.j=[],this.i=[],this.s=this.o=!1,this.m=new Set}function Ch(e,t){for(var n=[],r=[],i=[],a=[],o=(e=c(e)).next();!o.done;o=e.next()){var s=o.value;o=new Map(s.audioStreams.map((function(e){return[Jh(e),e]})));var u=new Map(s.videoStreams.map((function(e){return[Yh(e),e]}))),l=new Map(s.textStreams.map((function(e){return[Zh(e),e]})));if(s=new Map(s.imageStreams.map((function(e){return[Qh(e),e]}))),t){var d=Kh(yr);l.set(Zh(d),d),d=Kh("image"),s.set(Qh(d),d)}n.push(o),r.push(u),i.push(l),a.push(s)}return{lg:n,sh:r,oh:i,Hg:a}}function Ah(e){var t,n,r,i,a,o,s,u,l,d,f,p,h,g,v,m,y,b,x,S,T,k,C,A,E,I,M,_,P;return D((function(D){switch(D.g){case 1:if(t=br,1==e.length)return D.return(e[0]);for(n=e.map((function(e){return new Map(e.filter((function(e){return e.type===t.Y})).map((function(e){return[Jh(e),e]})))})),r=e.map((function(e){return new Map(e.filter((function(e){return e.type===t.la})).map((function(e){return[Yh(e),e]})))})),i=e.map((function(e){return new Map(e.filter((function(e){return e.type===t.wa})).map((function(e){return[Zh(e),e]})))})),a=e.map((function(e){return new Map(e.filter((function(e){return e.type===t.Ie})).map((function(e){return[Qh(e),e]})))})),o=c(i),s=o.next();!s.done;s=o.next())u=s.value,l=qh(t.wa),u.set(Zh(l),l);for(d=c(a),f=d.next();!f.done;f=d.next())p=f.value,h=qh(t.Ie),p.set(Qh(h),h);return w(D,Eh(g=new kh,[],n,0,Dh,Rh,0),2);case 2:return v=D.h,w(D,Eh(g,[],r,0,Dh,Rh,0),3);case 3:return m=D.h,w(D,Eh(g,[],i,0,Dh,Rh,0),4);case 4:return y=D.h,w(D,Eh(g,[],a,0,Dh,Rh,0),5);case 5:if(b=D.h,x=0,m.length&&v.length)for(C=c(v),A=C.next();!A.done;A=C.next())for(E=A.value,I=c(m),M=I.next();!M.done;M=I.next())_=M.value,P=x++,_.variantIds.push(P),E.variantIds.push(P);else for(S=m.concat(v),T=c(S),k=T.next();!k.done;k=T.next())k.value.variantIds=[x++];return D.return(m.concat(v).concat(y).concat(b))}}))}function Eh(e,t,n,r,i,a,o){var s,u,l,d,f,p,h,g,v,m,y,b,x,S,T,k,C,A;return D((function(E){switch(E.g){case 1:for(s=[],u=0;u=r?s.push(new Set(n[u].values())):s.push(new Set);l=c(t),d=l.next();case 2:if(d.done){E.u(4);break}return f=d.value,w(E,function(e,t,n,r,i,a,o){return D((function(s){return 1==s.g?(Nh(e,n,t,0r)return!0;if(ir.length)return!0;if(i.lengthr)return!0;if(ir.length)return!0;if(i.lengthe){if(n<=e||n-et-e)return rg}else{if(n>e)return rg;if(e-ne-t)return rg}return ng}function Xh(e,t,n){return t=Math.abs(e-t),(e=Math.abs(e-n))=t&&(this.g=this.g.slice(t)),this.i+=t,0===this.getNumReferences()&&this.release())}},r.find=function(e){if(this.h&&this.h.timeline&&this.h.timeline.length&&e=this.l)return null;for(var n=t.length-1,r=0;r=a&&e(e-=this.i)||e>=this.getNumReferences()||!this.h)return null;var n=this.g[e];if(!n){var r=this.h.timeline[e],i=r.Wi,a=this.h.dg+r.eg;n=this.j-this.h.Qb;var o=this.j+r.end,s=o;e===this.getNumReferences()-1&&1/0!==this.l&&(s=this.l);for(var u=this.h.codecs,c=this.h.mimeType,l=this.h.bandwidth,d=[],f=(r.end-r.start)/r.Cb,p={},h=0;hn})).map(Ot).filter(zr);return r.length?fr(e.A,r):[]}(e),i=e.A,r.length?(i=r,n="Patch",t=6):1m&&v>g&&e.M++,null==v&&(v=g),!(null!==e.O&&null!==h&&null!==p&&pe.O)&&(e.O=p),u=yg(e,t,n,{start:p,duration:v,node:d,vf:null==v||!f}),s.push(u),t.oa.id&&v&&(e.ka[t.oa.id]=v),null==v){u=null;break}u=p+v}}if(i)for(n=(t=c(s)).next();!n.done;n=t.next())n=n.value.id,e.C.includes(n)||e.C.push(n);else e.C=s.map((function(e){return e.id}));return null!=a?{periods:s,duration:a+o,ug:!1}:{periods:s,duration:u,ug:!0}}function yg(t,n,r,i){n.oa=Tg(t,i.node,null,r),n.ia=i,n.oa.Wa=n.Wa,n.oa.id||(n.oa.id="__shaka_period_"+i.start);var a=Rt(i.node,"EventStream");r=n.presentationTimeline.qb();for(var o=(a=c(a)).next();!o.done;o=a.next())Cg(t,i.start,i.duration,o.value,r);for(a=(r=c(r=Rt(i.node,"SupplementalProperty"))).next();!a.done;a=r.next())"urn:mpeg:dash:urlparam:2014"==(a=a.value).attributes.schemeIdUri&&(a=wg(t,a))&&(n.ob=a);if(r=Rt(i.node,"AdaptationSet").map((function(r,i){return function(t,n,r,i){function a(e){var r=e.attributes["dvb:fontFamily"];e=e.attributes["dvb:url"],r&&e&&(e=fr(n.ga.Oa(),[e],n.ob()),t.j.addFont(r,e[0]))}function o(e){switch(e){case 1:case 5:case 6:case 7:return"srgb";case 9:return"rec2020";case 11:case 12:return"p3"}}function s(e){switch(e){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}n.ga=Tg(t,i,n.oa,null),n.ga.position=r;var u=!1,d=(r=Rt(i,"Role")).map((function(e){return e.attributes.value})).filter(zr),f=void 0,p=n.ga.contentType==yr;p&&(f="subtitle");for(var h=(r=c(r)).next();!h.done;h=r.next()){var g=(h=h.value).attributes.schemeIdUri;if(null==g||"urn:mpeg:dash:role:2011"==g)switch(h=h.attributes.value,h){case"main":u=!0;break;case"caption":case"subtitle":f=h}}var v=Rt(i,"EssentialProperty");r=null;var m=!1;h=null,g=!1;for(var y=(v=c(v)).next();!y.done;y=v.next()){var b=(y=y.value).attributes.schemeIdUri;if("https://web.archive.org/web/20241212195116/http://dashif.org/guidelines/trickmode"==b)r=y.attributes.value;else if("urn:mpeg:mpegB:cicp:TransferCharacteristics"==b)var S=s(parseInt(y.attributes.value,10));else if("urn:mpeg:mpegB:cicp:ColourPrimaries"==b)var T=o(parseInt(y.attributes.value,10));else"urn:mpeg:mpegB:cicp:MatrixCoefficients"!=b&&("urn:mpeg:dash:ssr:2023"==b&&t.g.dash.enableFastSwitching?m=!0:"urn:dvb:dash:fontdownload:2014"==b?a(y):"urn:mpeg:dash:urlparam:2014"==b&&(h=wg(t,y))||(g=!0))}if(g)return null;var k=null;for(v=(g=c(g=Rt(i,"SupplementalProperty"))).next();!v.done;v=g.next())"http://dashif.org/guidelines/last-segment-number"==(y=(v=v.value).attributes.schemeIdUri)?k=parseInt(v.attributes.value,10)-1:"urn:mpeg:mpegB:cicp:TransferCharacteristics"==y?S=s(parseInt(v.attributes.value,10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"==y?T=o(parseInt(v.attributes.value,10)):"urn:dvb:dash:fontdownload:2014"==y?a(v):"urn:mpeg:dash:urlparam:2014"==y&&(h=wg(t,v));h&&(n.ob=h),h=Rt(i,"Accessibility");var C,A=new Map;for(g=(h=c(h)).next();!g.done;g=h.next())if(g=(v=g.value).attributes.schemeIdUri,v=v.attributes.value,"urn:scte:dash:cc:cea-608:2015"!=g||t.g.disableText)if("urn:scte:dash:cc:cea-708:2015"!=g||t.g.disableText)"urn:mpeg:dash:role:2011"==g?null!=v&&(d.push(v),"captions"==v&&(f="caption")):"urn:tva:metadata:cs:AudioPurposeCS:2007"==g&&("1"==v?C="visually impaired":"2"==v&&(C="hard of hearing"));else if(g=1,null!=v)for(y=(v=c(v.split(";"))).next();!y.done;y=v.next()){b=y.value;var E=y=void 0;b.includes("=")?(y="svc"+(b=b.split("="))[0],E=b[1].split(",")[0].split(":").pop()):(y="svc"+g,g++,E=b),A.set(y,Xr(E))}else A.set("svc1","und");else if(g=1,null!=v)for(b=(y=c(v=v.split(";"))).next();!b.done;b=y.next()){E=b.value;var I=b=void 0;E.includes("=")?(b=(E=E.split("="))[0].startsWith("CC")?E[0]:"CC"+E[0],I=E[1]||"und"):(b="CC"+g,2==v.length?g+=2:g++,I=E),A.set(b,Xr(I))}else A.set("CC1","und");var M=$p(h=Rt(i,"ContentProtection"),t.g.dash.ignoreDrmInfo,t.g.dash.keySystemsByURI),_=Xr(n.ga.language||"und"),P=n.ga.label;if(i=(h=Rt(i,"Representation")).map((function(r){return(r=function(t,n,r,i,a,o,s,u,c,l,d,f){n.J=Tg(t,l,n.ga,null);var p=n.J.id;if(t.da=Math.min(t.da,n.J.Wa),t.ja=0e.K)){var n=e.K;0<=e.g.dash.updatePeriod&&(n=e.g.dash.updatePeriod),e.L.Z(Math.max(n-t,H(e.na)))}}function Tg(e,t,n,r){n=n||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,de:null,audioSamplingRate:null,Wa:0,oe:0},r=r||n.Oa;var i,a=t.attributes.id,o=Rt(t,"BaseURL"),s=!1;if(e.h)for(var u=c(o),l=u.next();!l.done;l=u.next()){var d=l.value;l=d.attributes.serviceLocation,d=Ot(d),l&&d&&(Sh(e.h,a,l,d),s=!0)}s&&e.h||(i=o.map(Ot)),u=t.attributes.contentType||n.contentType,l=t.attributes.mimeType||n.mimeType,d=[t.attributes.codecs||n.codecs];var f=Vt(t,"urn:scte:dash:scte214-extensions","supplementalCodecs");f&&d.push(f),d=Mu(d).join(","),f=Bt(t,"frameRate",Zt)||n.frameRate;var p=t.attributes.sar||n.pixelAspectRatio,h=function(e,t){t=t.slice();for(var n=(e=c(e)).next();!n.done;n=e.next())n=n.value.attributes.schemeIdUri,t.includes(n)||t.push(n);return t}(Rt(t,"InbandEventStream"),n.emsgSchemeIdUris),g=Rt(t,"AudioChannelConfiguration");g=function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){var n=(t=t.value).attributes.schemeIdUri;if(n&&(t=t.attributes.value))switch(n){case"urn:mpeg:dash:outputChannelPositionList:2012":return t.trim().split(/ +/).length;case"urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case"urn:dts:dash:audio_channel_configuration:2012":if(!(t=parseInt(t,10)))continue;return t;case"tag:dolby.com,2015:dash:audio_channel_configuration:2015":if(n=[2,1,2,2,2,2,1,2,2,1,1,1,1,2,1,1,2,2],!(t=parseInt(t,16)))continue;for(var r=0,i=0;in.length||"data"!=n[0])throw new Pe(2,1,1004,t);if(2>(n=n.slice(1).join(":").split(",")).length)throw new Pe(2,1,1004,t);var r=n[0];t=e.decodeURIComponent(n.slice(1).join(",")),n=r.split(";"),r=n[0];var i=!1;return 1e.I))for(r=(t=c(t)).next();!r.done;r=t.next())(bv(e,(r=r.value).type)||n)&&(i=r.stream.segmentIndex)&&0<(a=e.I-r.Ve)&&(i.g.splice(0,a),i=eu(i))&&(i=-i.startTime,r.stream.segmentIndex.offset(i),ov(e,r,i))}function ov(e,t,n){t.vc+=n,t.Mb+=n;for(var r=c(e=rv(e,t)),i=r.next();!i.done;i=r.next()){var a=c(i.value);i=a.next().value,a=a.next().value,e.set(i,a+n)}t.N()}function sv(e){if(Fv(e)){if(e.xa==Yv){for(var t=1/0,n=1/0,r=c(e.i.values()),i=r.next();!i.done;i=r.next())(i=i.value).stream.segmentIndex&&"text"!=i.stream.type&&!i.stream.isAudioMuxedInVideo&&(t=Math.min(t,i.Mb),n=Math.min(n,i.vc));t=t-n||0,isNaN(e.g.availabilityWindowOverride)||(t=e.g.availabilityWindowOverride),e.l.pe(t)}}else e.l.bb(vv(e));if(!e.l.s)for(n=(t=c(e.i.values())).next();!n.done;n=t.next())!(n=n.value).stream.segmentIndex||"audio"!=n.type&&"video"!=n.type||(n=eu(n.stream.segmentIndex))&&n.h&&e.l.fh(n.h);e.l.Yd()}function uv(e,t,n){n=new zn(n).g;for(var r=new Map,i=(t=c(t)).next();!i.done;i=t.next()){var a=i.value,o=Ug(a,"NAME"),s=Ug(a,"VALUE");i=Ug(a,"QUERYPARAM"),a=Ug(a,"IMPORT"),o&&s&&(r.has(o)||r.set(o,s)),i&&(o=n.get(i)[0])&&!r.has(o)&&r.set(i,o),a&&(i=e.A.get(a))&&r.set(a,i)}return r}function cv(e){var t=new Set([Tr(e.mimeType,e.codecs)]);e.segmentIndex&&e.segmentIndex.yb((function(n){n.mimeType&&t.add(Tr(n.mimeType,e.codecs))})),e.fullMimeTypes=t}function lv(e,t,n){for(var r={audio:[],video:[]},i=new Map,a=[],o=!1,s=!1,u=c(t),d=u.next();!d.done;d=u.next()){var f=d.value;d=Ug(f,"AUDIO");var p=Ug(f,"VIDEO"),h=d||p;h&&(a.includes(h)||a.push(h),(f=Ug(f,"PATHWAY-ID"))&&i.set(h,f),d?o=!0:p&&(s=!0))}a.length&&n.length&&function(e,t,n){t=t.filter((function(e){var t=Ug(e,"URI")||"";return"SUBTITLES"!=(e=Ug(e,"TYPE"))&&(""!=t||"AUDIO"==e)}));for(var r={},i=(t=c(t)).next();!i.done;i=t.next()){var a=Ng(i=i.value,!e.j);r[a]?r[a].push(i):r[a]=[i]}for(var o in r)pv(e,r[o],n,!1)}(e,n=n.filter((function(e){return a.includes(jg(e,"GROUP-ID"))})),i),n=(i=a.sort().join(","))&&e.H.has(i)?e.H.get(i):[],o?r.audio.push.apply(r.audio,l(n)):s&&r.video.push.apply(r.video,l(n)),o=!1;var g=t.map((function(e){return jg(e,"URI")}));return d=r.audio.find((function(e){return e&&e.N().find((function(e){return g.includes(e)}))})),n=vr("video",s=dv(e,t[0])),(u=vr("audio",s))&&!n?(d="audio",o=0>3)&&e.sa()&&(n=32+((7&t)<<3)+((224&e.T())>>5)),r+="."+n)),o.push(r),u=!0})).box("ac-3",r).box("ec-3",r).box("ac-4",r).box("Opus",r).box("fLaC",r).box("avc1",n).box("avc3",n).box("hev1",n).box("hvc1",n).box("dva1",n).box("dvav",n).box("dvh1",n).box("dvhe",n).box("vp09",n).box("av01",n).box("avcC",(function(e){var t=a||"";switch(a){case"dvav":t="avc3";break;case"dva1":t="avc1"}(e=e.reader).skip(1),e=t+"."+$o(e.T())+$o(e.T())+$o(e.T()),s.push(e),l=!0})).box("hvcC",(function(e){var t=a||"";switch(a){case"dvh1":t="hvc1";break;case"dvhe":t="hev1"}var n=e.reader;n.skip(1);var r=["","A","B","C"][(e=n.T())>>6],i=31&e,o=n.P(),u=(32&e)>>5?"H":"L";e=[n.T(),n.T(),n.T(),n.T(),n.T(),n.T()],n=n.T();for(var c=0,d=0;32>d&&(c|=1&o,31!=d);d++)c<<=1,o>>=1;for(t=t+"."+r+i+"."+$o(c,!0),t+="."+u+n,r="",i=e.length;i--;)((u=e[i])||r)&&(r="."+u.toString(16).toUpperCase()+r);t+=r,s.push(t),l=!0})).box("dvcC",(function(e){var t=a||"";switch(a){case"hvc1":t="dvh1";break;case"hev1":t="dvhe";break;case"avc1":t="dva1";break;case"avc3":t="dvav";break;case"av01":t="dav1"}var n=e.reader;n.skip(2),e=n.T(),n=n.T(),s.push(t+"."+zo(e>>1&127)+"."+zo(e<<5&32|n>>3&31)),l=!0})).box("dvvC",(function(e){var t=a||"";switch(a){case"hvc1":t="dvh1";break;case"hev1":t="dvhe";break;case"avc1":t="dva1";break;case"avc3":t="dvav";break;case"av01":t="dav1"}var n=e.reader;n.skip(2),e=n.T(),n=n.T(),s.push(t+"."+zo(e>>1&127)+"."+zo(e<<5&32|n>>3&31)),l=!0})).R("vpcC",(function(e){var t=a||"",n=e.reader;e=n.T();var r=n.T();n=n.T()>>4&15,s.push(t+"."+zo(e)+"."+zo(r)+"."+zo(n)),l=!0})).box("av1C",(function(e){var t=a||"";"dav1"===a&&(t="av01");var n=e.reader;n.skip(1);var r=(e=n.T())>>>5,i=(64&(n=n.T()))>>6;s.push(t+"."+r+"."+zo(31&e)+(n>>>7?"H":"M")+"."+zo(2===r&&i?(32&n)>>5?12:10:i?10:8)+"."+((16&n)>>4)+"."+((8&n)>>3)+((4&n)>>2)+(3&n)+"."+zo(1)+"."+zo(1)+"."+zo(1)+".0"),l=!0})).box("enca",Ca).box("encv",ka).box("sinf",Sa).box("frma",(function(e){i(e=Vo(e.reader).codec)})).box("colr",(function(e){s=s.map((function(t){if(t.startsWith("av01.")){var n=e.reader,r=n.ya(),i=n.vb(4),a=String.fromCharCode(i[0]);if(a+=String.fromCharCode(i[1]),a+=String.fromCharCode(i[2]),"nclx"===(a+=String.fromCharCode(i[3]))){i=n.ma(),a=n.ma();var o=n.ma(),s=n.T()>>7,u=t.split(".");10==u.length&&(u[6]=zo(i),u[7]=zo(a),u[8]=zo(o),u[9]=String(s),t=u.join("."))}n.seek(r)}return t}));var t=function(e){var t=null,n=null,r=e.vb(4),i=String.fromCharCode(r[0]);if(i+=String.fromCharCode(r[1]),i+=String.fromCharCode(r[2]),"nclx"===(i+=String.fromCharCode(r[3]))){switch(e.ma()){case 1:case 5:case 6:case 7:t="srgb";break;case 9:t="rec2020";break;case 11:case 12:t="p3"}switch(r=e.ma(),e.ma(),r){case 1:case 6:case 13:case 14:case 15:n="SDR";break;case 16:n="PQ";break;case 18:n="HLG"}}return{colorGamut:t,Bd:n}}(e.reader),n=t.colorGamut;v=t.Bd,m=n})).parse(e||t,!0),!o.length&&!s.length)return null;var y=u&&!l,b=new Map;if(l){var w=new xe("video/mp4");for(e&&w.init(e),w.i(t),t=(e=c(w.j())).next();!t.done;t=e.next())t=t.value,b.set(t,t);w.g()}return{type:y?"audio":"video",mimeType:y?"audio/mp4":"video/mp4",codecs:Mu(o.concat(s)).join(", "),language:d,height:f,width:p,channelCount:h,sampleRate:g,closedCaptions:b,Bd:v,colorGamut:m,frameRate:null}}(p,x)))return E.return(A);return S?E.return(Iu(S)):h?E.return(Iu(h)):E.return(n)}}))}(e,I),3);case 3:O=t.h,o=O.type,s=O.language,d=O.channelCount,g=O.sampleRate,e.g.disableText||(f=O.closedCaptions),P=O.height,_=O.width,L=O.Bd,R=O.colorGamut,N=O.frameRate,b&&(m=O.mimeType,a=O.codecs);case 2:if(m){t.u(4);break}return w(t,function(e,t,n,r){var i,a,o,s,u,c,l,d,f,p,h,g,v,m;return D((function(y){switch(y.g){case 1:return i=la,a=Nv(e,r),2==(o=a.segment).status?y.return(Rv(t)):(s=o.N(),u=new zn(s[0]),c=u.Ua.split(".").pop(),l=qv[t],(d=l[c])||(d=Hv[c])||(d=Lv(t,n))?y.return(d):(p=1,h=aa(s,e.g.retryParameters),S(y,2),h.method="HEAD",w(y,Vv(e,h,i,{type:p}).promise,4)));case 4:g=y.h,f=g.headers["content-type"],k(y,3);break;case 2:if(!(v=C(y))||1002!=v.code&&1001!=v.code){y.u(3);break}return h.method="GET",w(y,Vv(e,h,i,{type:p}).promise,6);case 6:m=y.h,f=m.headers["content-type"];case 3:return f?y.return(f.toLowerCase().split(";")[0]):y.return(Rv(t))}}))}(e,o,a,I),5);case 5:m=t.h;case 4:return w(t,Tv(e,r,m,i,n),6);case 6:if(U=t.h,j=U.drmInfos,F=U.keyIds,B=U.encrypted,V=U.zh,B&&!j.length&&!V)throw new Pe(2,4,4026);return($=Sv(e,a,o,s,u,l,d,f,p,h,g,v)).encrypted=B,$.drmInfos=j,$.keyIds=F,$.mimeType=m,M&&($.bandwidth=M),cv($),"video"==o&&(_||P||L||R)&&Ov($,_,P,N,L,null,R),Fv(e)&&Av(e,r),z=I[0].startTime,H=I[I.length-1],q=H.endTime,K=new Qs(I),$.segmentIndex=K,X=!!(G=zg(r.X,"EXT-X-SERVER-CONTROL"))&&null!=Og(G,"CAN-SKIP-UNTIL"),W=!!G&&null!=Og(G,"CAN-BLOCK-RELOAD"),Y=Hg(r.X,"EXT-X-MEDIA-SEQUENCE",0),J=xv(Y,I),Z=J.sb,Q=J.ub,t.return({stream:$,type:o,Wg:[],N:i,vc:z,Mb:q,Id:X,Hd:W,hd:!1,Ve:-1,sb:Z,ub:Q,Zd:A,Af:!1})}}))}function xv(e,t){e=e+t.length-1;var n=-1;if(!t.length)return{sb:++e,ub:n};var r=(t=t[t.length-1]).g;return t.g.length?(n=r.length-1,r[r.length-1].isPreload()||(e++,n=0),{sb:e,ub:n}):(e++,t.m&&(n=0),{sb:e,ub:n})}function Sv(e,t,n,r,i,a,o,s,u,l,d,f){var p=Lv(n,t)||Rv(n),h=[];if(u)for(var g=(u=c(u.split(","))).next();!g.done;g=u.next())h.push(g.value);return u=void 0,g=null,n==yr?u=h.includes("public.accessibility.transcribes-spoken-dialog")&&h.includes("public.accessibility.describes-music-and-sound")?"caption":"subtitle":h.includes("public.accessibility.describes-video")&&(g="visually impaired"),h.length||"subtitle"!==u||h.push("subtitle"),cv(e={id:e.C++,originalId:a,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:p,codecs:t,kind:n==yr?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:Xr(r||"und"),originalLanguage:r,label:a,type:n,primary:i,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:h,forced:l,channelsCount:o,audioSamplingRate:d,spatialAudio:f,closedCaptions:s,hdr:void 0,colorGamut:void 0,videoLayout:void 0,tilesLayout:void 0,accessibilityPurpose:g,external:!1,fastSwitching:!1,fullMimeTypes:new Set,isAudioMuxedInVideo:!1}),e}function Tv(e,t,n,r,i){var a,o,s,u,l,d,f,p,h,g,v,m,y,b,x,S,T,k,C,A,E,I,M,_,P,L,R,N;return D((function(D){switch(D.g){case 1:if(a=new Map,t.segments)for(o=c(t.segments),s=o.next();!s.done;s=o.next())if(u=s.value,l=Vg(u.X,"EXT-X-KEY"),d=null,l.length)for(d=Iv(e,t,u.X,r,i),f=c(l),p=f.next();!p.done;p=f.next())h=p.value,a.set(h,d);v=g=!1,m=[],y=new Set,b=c(a),x=b.next();case 2:if(x.done){D.u(4);break}if(S=x.value,T=c(S),k=T.next().value,C=T.next().value,E=C,"NONE"==(I=jg(A=k,"METHOD"))){D.u(3);break}if(g=!0,M=Ug(A,"KEYFORMAT")||"identity",_=null,$v(I)){v=!0,D.u(3);break}if("identity"!=M){_=(P=Gv[M])?P(A,n):null,D.u(6);break}return w(D,zv(e,A,n,r,E,i),8);case 8:_=D.h;case 6:if(_){if(_.keyIds)for(L=c(_.keyIds),R=L.next();!R.done;R=L.next())N=R.value,y.add(N);m.push(_)}case 3:x=b.next(),D.u(2);break;case 4:return D.return({drmInfos:m,keyIds:y,encrypted:g,zh:v})}}))}function kv(t,n,r,i,a){if(!e.crypto||!e.crypto.subtle)throw X("Web Crypto API is not available to decrypt AES. (Web Crypto only exists in secure origins like https)"),new Pe(2,4,4042);var o=0,s=Ug(n,"IV","");if(s){var u=cr(s.substr(2));if(16!=u.byteLength)throw new Pe(2,4,4048)}else o=Hg(r.X,"EXT-X-MEDIA-SEQUENCE",0);if(r=n.toString()+"-"+o,!t.ka.has(r)){var c={bitsKey:128,blockCipherMode:"CBC",iv:u,firstMediaSequenceNumber:o};switch(jg(n,"METHOD")){case"AES-256":c.bitsKey=256;break;case"AES-256-CTR":c.bitsKey=256,c.blockCipherMode="CTR"}c.fetchKey=function(){var r,o,s,u,l,d;return D((function(f){if(1==f.g)return r=qg(i(),jg(n,"URI"),a),o=r.sort().join(""),t.L.has(o)||(s=aa(r,t.g.retryParameters),u=Vv(t,s,6).promise,t.L.set(o,u)),w(f,t.L.get(o),2);if(3!=f.g){if(!(l=f.h).data||l.data.byteLength!=c.bitsKey/8)throw new Pe(2,4,4049);return d={name:"CTR"==c.blockCipherMode?"AES-CTR":"AES-CBC",length:c.bitsKey},w(f,e.crypto.subtle.importKey("raw",l.data,d,!0,["decrypt"]),3)}c.cryptoKey=f.h,c.fetchKey=void 0,x(f)}))},t.ka.set(r,c)}return t.ka.get(r)}function Cv(e,t){null==e.s&&(t=zg(t.X,"EXT-X-START"))&&(e.s=Number(jg(t,"TIME-OFFSET")))}function Av(e,t){var n=1/0,r=t.segments;if(r.length)for(var i=r.length-1;0<=i;){var a=zg(r[i].X,"EXTINF");if(a){n=Number(a.value.split(",")[0]);break}i--}if(!(r=zg(t.X,"EXT-X-TARGETDURATION")))throw new Pe(2,4,4024,"EXT-X-TARGETDURATION");r=Number(r.value),(i=zg(t.X,"EXT-X-PART-INF"))&&(e.V=Number(jg(i,"PART-TARGET"))),t=zg(t.X,"EXT-X-SERVER-CONTROL"),e.K&&e.V?(e.o=e.Ib?5*e.V<=n?Math.min(e.V,e.o):Math.min(n,e.o):Math.min(e.V,e.o),e.Ga=t?Number(jg(t,"PART-HOLD-BACK")):0):(e.o=Math.min(n,e.o),n=t?Og(t,"HOLD-BACK"):null,e.Ba=n?Number(n.value):0),e.La=Math.max(r,e.La)}function Ev(e,t){var n=0;if(e.g.defaultPresentationDelay)n=e.g.defaultPresentationDelay;else if(e.Ga)n=e.Ga;else if(e.Ba)n=e.Ba;else{var r=t.segments.length,i=e.g.hls.liveSegmentsDelay;for(i>r-2&&(i=Math.max(1,r-2)),i=r-i;ie.s&&(n=Math.min(-e.s,n),e.s+=n),e.l.gh(0),e.l.Tf(n),e.l.zc(!1)}function Iv(e,t,n,r,i){var a=zg(n,"EXT-X-MAP");if(!a)return null;var o=jg(a,"URI"),s=qg(r(),o,i);if(o=[s.toString(),Ug(a,"BYTERANGE","")].join("-"),!e.ra.has(o)){for(var u=void 0,l=null,d=(n=c(n)).next();!d.done;d=n.next())"EXT-X-KEY"==(d=d.value).name?$v(jg(d,"METHOD"))&&d.idt?1:0})),n=0;n(d=p-a))continue}if(null==d){var h=Ug(o,"DURATION")||Ug(o,"PLANNED-DURATION");if(h){var g=parseFloat(h);if(isNaN(g)||(d=l+g),0>u-a+g)continue}}var v=Ug(o,"CLASS")||"com.apple.quicktime.HLS",m="YES"==Ug(o,"END-ON-NEXT");if(null==d&&m){for(var y=n+1;yu){d=Math.max(0,b-a);break}}if(null==d)continue}y=["CLASS","START-DATE","END-DATE","DURATION","END-ON-NEXT"];for(var w=[],x=c(o.attributes),S=x.next();!S.done;S=x.next()){var T=S.value;if(!y.includes(T.name)){var k=Gg(T.value,r);"X-ASSET-URI"!=T.name&&"X-ASSET-LIST"!=T.name||(k=qg(i(),T.value,r)[0]),w.push({key:T.name,description:"",data:k,mimeType:null,pictureType:null})}}1n.byteLength){n=[];break e}var a=ve(n,e,i);t.push({type:r,value:a}),e+=i}n=t}return n}(e=ur(Nt(e))).filter((function(e){return e.type===em}))[0])&&(e=_t(e=pt(e.value,!0),"WRMHEADER"))?e:null}lo["application/x-mpegurl"]=function(){return new nv},lo["application/vnd.apple.mpegurl"]=function(){return new nv};var em=1,tm=(new Map).set("com.microsoft.playready",Zv).set("com.microsoft.playready.recommendation",Zv).set("com.microsoft.playready.software",Zv).set("com.microsoft.playready.hardware",Zv);function nm(e){if(!pm){pm=!0;var t=new Uint8Array([105,115,111,109]),n=new Uint8Array([97,118,99,49]),r=new Uint8Array([0,0,0,1]);Cm=fm("ftyp",t,r,t,n),t=fm("dref",Am),Em=fm("dinf",t)}this.g=e}function rm(e){for(var t=[],n=c(e.g),r=n.next();!r.done;r=n.next()){var i=t,a=i.push,o=r.value;r=fm;var s=o.id+1,u=o.stream.width||0,d=o.stream.height||0;"audio"==o.type&&(d=u=0);var f=o.duration*o.timescale,p=Math.floor(f/(hm+1));switch(f=Math.floor(f%(hm+1)),s=fm("tkhd",s=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(l(lm(s,4)),[0,0,0,0],l(lm(p,4)),l(lm(f,4)),[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0],l(lm(u,2)),[0,0],l(lm(d,2)),[0,0]))),u=fm,p=o.duration*o.timescale,d=Math.floor(p/(hm+1)),p=Math.floor(p%(hm+1)),f=(f=o.stream.language).charCodeAt(0)-96<<10|f.charCodeAt(1)-96<<5|f.charCodeAt(2)-96,d=fm("mdhd",d=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(l(lm(o.timescale,4)),l(lm(d,4)),l(lm(p,4)),l(lm(f,2)),[0,0]))),p=o,f=new Uint8Array([]),p.type){case"video":f=vm;break;case"audio":f=mm}p=fm("hdlr",f);e:{switch(o.type){case"video":o=fm("minf",fm("vmhd",Sm),Em,im(o));break e;case"audio":o=fm("minf",fm("smhd",Tm),Em,im(o));break e}o=new Uint8Array([])}r=r("trak",s,o=u("mdia",d,p,o)),a.call(i,r)}for(t=dr.apply(ar,l(t)),n=fm,r=(a=e.g[0]).duration*a.timescale,i=Math.floor(r/(hm+1)),r=Math.floor(r%(hm+1)),i=fm("mvhd",i=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(l(lm(a.timescale,4)),l(lm(i,4)),l(lm(r,4)),[0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))),r=[],u=(e=c(e.g)).next();!u.done;u=e.next())s=(o=r).push,u=fm("trex",u=new Uint8Array([0,0,0,0].concat(l(lm(u.value.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0]))),s.call(o,u);if(e=fm("mvex",e=dr.apply(ar,l(r))),r=[],a.encrypted){for(o=(a=c(a.stream.drmInfos)).next();!o.done;o=a.next())if((o=o.value).initData)for(s=(o=c(o.initData)).next();!s.done;s=o.next())r.push(s.value.initData);a=dr.apply(ar,l(r))}else a=new Uint8Array([]);return e=n("moov",i,t,e,a),(t=new Uint8Array(Cm.byteLength+e.byteLength)).set(Cm),t.set(e,Cm.byteLength),t}function im(e){var t=fm,n=new Uint8Array([]);switch(e.type){case"video":if(e.codecs.includes("avc1")){n=e.stream.width||0;var r=e.stream.height||0;if(0>8,a[f++]=255&o[u].length,a.set(o[u],f),f+=o[u].length;for(a[f++]=s.length,o=0;o>8,a[f++]=255&s[o].length,a.set(s[o],f),f+=s[o].length;i=i("avcC",a)}n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(l(lm(n,2)),l(lm(r,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17])),r="avc1",s=am(e),o=new Uint8Array([]),e.encrypted&&(o=sm(e),r="encv"),n=fm(r,n,i,s,o)}else e.codecs.includes("hvc1")&&(r=e.stream.width||0,i=e.stream.height||0,n=new Uint8Array([]),0>>1,s<<7|i<<3,6,1,2])))),r="mp4a",i=new Uint8Array([]),e.encrypted&&(i=sm(e),r="enca"),e=fm(r,om(e),n,i)),n=e}return t("stbl",e=fm("stsd",km,n),fm("stts",ym),fm("stsc",bm),fm("stsz",xm),fm("stco",wm))}function am(e){if(!e.Da&&!e.Fa)return new Uint8Array([]);var t=e.Fa;return fm("pasp",e=new Uint8Array([].concat(l(lm(e.Da,4)),l(lm(t,4)))))}function om(e){return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.stream.channelsCount||2,0,16,0,0,0,0].concat(l(lm(e.stream.audioSamplingRate||44100,2)),[0,0]))}function sm(e){for(var t=fm,n=e.codecs.substring(0,e.codecs.indexOf(".")),r=0,i=0;i>8*t&255);return n}function dm(e){for(var t=new Uint8Array(e.length/2),n=0;n>24&255,i[1]=r>>16&255,i[2]=r>>8&255,i[3]=255&r,i.set(n,4),n=0,r=8;nE)if(I){if(null==(I=Bt(I,"t",Wt)))break;if(M>=I)break;E=Math.ceil((I-M)/_)-1}else{if(1/0==S)break;if(M/y>=S)break;E=Math.ceil((S*y-M)/_)-1}for(I=0;I<=E;++I)C=M+_,k.push({start:M/y,end:C/y,eg:M}),M=C}for(y=k,S=(b=c(b)).next();!S.done;S=b.next())(S=_m(e,m,S.value,y,g,d))&&("audio"!=S.type||e.g.disableAudio?"video"!=S.type||e.g.disableVideo?S.type!=yr||e.g.disableText||f.push(S):p.push(S):v.push(S))}for(h=[],g=(v=c(0>1,n[1]=r<<7|t<<3|e>>1,n[2]=e<<7|8,n[3]=0,(t=new Uint16Array(2))[0]=(n[0]<<8)+n[1],t[1]=(n[2]<<8)+n[3],t[0].toString(16)+t[1].toString(16)):((n=new Uint8Array(2))[0]=16|r>>1,n[1]=r<<7|t<<3,(t=new Uint16Array(1))[0]=(n[0]<<8)+n[1],t[0].toString(16))}(n,o,i,m),m.mssPrivateData.codecPrivateData=n,o){case"audio":if(!n)return X("Quality unsupported without CodecPrivateData",o),null;m.type="audio",m.mimeType="mss/audio/mp4",m.codecs=function(e,t){var n=0;return"AACH"===e&&(n=5),t?0===n&&(n=(248&parseInt(t.substr(0,2),16))>>3):(n=2,"AACH"===e&&(n=5)),"mp4a.40."+n}(i,n);break;case"video":if(!n)return X("Quality unsupported without CodecPrivateData",o),null;m.type="video",m.mimeType="mss/video/mp4",m.codecs=function(e){var t=/00000001[0-9]7/.exec(e);return t.length&&e?"avc1."+e.substr(e.indexOf(t[0])+10,6):""}(n);break;case"text":m.type=yr,m.mimeType="application/mp4",("TTML"===i||"DFXP"===i)&&(m.codecs="stpp")}return m.fullMimeTypes.add(Tr(m.mimeType,m.codecs)),m.createSegmentIndex=function(){if(m.segmentIndex)return Promise.resolve();if(e.m.has(m.id))var n=e.m.get(m.id);else n=[],"video"==m.type&&(n=m.mssPrivateData.codecPrivateData.split("00000001").slice(1)),n=rm(new nm([n={id:m.id,type:m.type,codecs:m.codecs,encrypted:m.encrypted,timescale:m.mssPrivateData.timescale,duration:m.mssPrivateData.duration,fb:n,pa:new Uint8Array([]),za:new Uint8Array([]),Da:0,Fa:0,data:null,stream:m}])),e.m.set(m.id,n);return n=function(e,t,n,r,i){var a=r.attributes.Url.replace("{bitrate}",String(n.bandwidth));r=[];for(var o=(i=c(i)).next(),s={};!o.done;s={se:void 0},o=i.next())s.se=o.value,r.push(new mo(s.se.start,s.se.end,function(t){return function(){return fr(e.l,[a.replace("{start time}",String(t.se.eg))])}}(s),0,null,t,0,0,n.mssPrivateData.duration));return r}(e,new go((function(){return[]}),0,null,Eu(m),m.mssPrivateData.timescale,n),m,t,r),m.segmentIndex=new Qs(n),Promise.resolve()},m.closeSegmentIndex=function(){m.segmentIndex&&(m.segmentIndex.release(),m.segmentIndex=null)},m}(r=Im.prototype).configure=function(e,t){this.g=e,t&&(this.A=t)},r.start=function(e,t){var n=this;return D((function(r){if(1==r.g)return n.l=[e],n.h=t,w(r,Mm(n),2);if(!n.h)throw new Pe(2,7,7001);return r.return(n.j)}))},r.stop=function(){return this.g=this.h=null,this.l=[],this.j=null,null!=this.o&&(this.o.stop(),this.o=null),this.m.clear(),this.B.destroy()},r.update=function(){var e,t=this;return D((function(n){return 1==n.g?(S(n,2),w(n,Mm(t),4)):2!=n.g?k(n,0):(e=C(n),t.h&&e?(t.h.onError(e),void x(n)):n.return())}))},r.onExpirationUpdated=function(){},r.onInitialVariantChosen=function(){},r.banLocation=function(){},r.setMediaElement=function(){},B("shaka.mss.MssParser",Im);var Pm="AAC AACL AACH AACP AVC1 H264 TTML DFXP".split(" "),Dm={CAPT:"main",SUBT:"alternate",DESC:"main"};function Lm(e,t,n,r,i,a){if(200<=n&&299>=n&&202!=n)return{uri:i||r,originalUri:r,data:t,status:n,headers:e,fromCache:!!e["x-shaka-from-cache"]};var o=null;try{o=ht(t)}catch(e){}throw new Pe(401==n||403==n?2:1,1,1001,r,n,o,e,a,i||r)}function Rm(){}function Nm(e,t,n,r,i,a){var o=new Vm;va(t.headers).forEach((function(e,t){o.append(t,e)}));var s=new Fm,u={ng:!1,ph:!1};if(e=function(e,t,n,r,i,a,o,s){var u,c,l,d,f,p,h,g,v,m,y,b;return D((function(T){switch(T.g){case 1:return u=jm,c=Bm,p=f=0,h=Date.now(),S(T,2),w(T,u(e,n),4);case 4:if(l=T.h,a(Om(l.headers)),"HEAD"==n.method){T.u(5);break}return g=l.clone().body.getReader(),m=(v=l.headers.get("Content-Length"))?parseInt(v,10):0,new c({start:function(e){!function t(){var n,r,a,u;return D((function(c){switch(c.g){case 1:return S(c,2),w(c,g.read(),4);case 4:n=c.h,k(c,3);break;case 2:return C(c),c.return();case 3:if(n.done){c.u(5);break}if(f+=n.value.byteLength,!o){c.u(5);break}return w(c,o(n.value),5);case 5:r=Date.now(),a=f-p,(100=s||n.done)&&(u=n.done?0:m-f,i(r-h,a,u),p=f,h=r),n.done?e.close():(e.enqueue(n.value),t()),x(c)}}))}()}}),w(T,l.arrayBuffer(),6);case 6:d=T.h;case 5:k(T,3);break;case 2:if(y=C(T),r.ng)throw new Pe(1,1,7001,e,t);if(r.ph)throw new Pe(1,1,1003,e,t);throw new Pe(1,1,1002,e,y,t);case 3:return b=Om(l.headers),T.return(Lm(b,d,l.status,e,l.url,t))}}))}(e,n,{body:t.body||void 0,headers:o,method:t.method,signal:s.signal,credentials:t.allowCrossSiteCredentials?"include":void 0},u,r,i,t.streamDataCallback,a.minBytesForProgressEvents||0),e=new Hi(e,(function(){return u.ng=!0,s.abort(),Promise.resolve()})),t=t.retryParameters.timeout){var c=new Be((function(){u.ph=!0,s.abort()}));c.Z(t/1e3),e.finally((function(){c.stop()}))}return e}function Om(e){var t={};return e.forEach((function(e,n){t[n.trim()]=e})),t}function Um(){if(!e.ReadableStream)return!1;try{new ReadableStream({})}catch(e){return!1}return!!e.Response&&!!new Response("").body&&!(!e.fetch||"polyfill"in e.fetch||!e.AbortController)}lo["application/vnd.ms-sstr+xml"]=function(){return new Im},B("shaka.net.HttpFetchPlugin",Rm),Rm.isSupported=Um,Rm.parse=Nm;var jm=e.fetch,Fm=e.AbortController,Bm=e.ReadableStream,Vm=e.Headers;function $m(){}function zm(e,t,n,r,i,a){var o=new qm,s=Date.now(),u=0;return new Hi(new Promise((function(c,l){o.open(t.method,e,!0),o.responseType="arraybuffer",o.timeout=t.retryParameters.timeout,o.withCredentials=t.allowCrossSiteCredentials,o.onabort=function(){l(new Pe(1,1,7001,e,n))};var d=!1;for(var f in o.onreadystatechange=function(){if(2==o.readyState&&!d){var e=Hm(o);i(e),d=!0}},o.onload=function(t){var i=Hm(o),a=o.response;try{r(Date.now()-s,t.loaded-u,0);var d=Lm(i,a,o.status,e,o.responseURL,n);c(d)}catch(e){l(e)}},o.onerror=function(t){l(new Pe(1,1,1002,e,t,n))},o.ontimeout=function(){l(new Pe(1,1,1003,e,n))},o.onprogress=function(e){var t=Date.now(),n=a.minBytesForProgressEvents||0,i=e.loaded-u;(100=n||e.lengthComputable&&e.loaded==e.total)&&(r(t-s,i,4==o.readyState?0:e.total-e.loaded),u=e.loaded,s=t)},t.headers)o.setRequestHeader(f.toLowerCase(),t.headers[f]);o.send(t.body)})),(function(){return o.abort(),Promise.resolve()}))}function Hm(e){var t=e.getAllResponseHeaders().trim().split("\r\n");e={};for(var n=(t=c(t)).next();!n.done;n=t.next())e[(n=n.value.split(": "))[0].toLowerCase()]=n.slice(1).join(": ");return e}Um()&&(ra("http",Nm,2,!0),ra("https",Nm,2,!0),ra("blob",Nm,2,!0)),B("shaka.net.HttpXHRPlugin",$m),$m.parse=zm;var qm=e.XMLHttpRequest;function Km(e,t,n,r){this.g=e,this.i=t,this.groupId=n,this.h=r}function Gm(e){return e.N().map((function(e){return"{"+encodeURI(e.split("#xywh=")[0])+"}"})).join("")+":"+e.Ka+":"+e.ua}function Xm(e,t){return Pu(e.g.N(),e.g.Ka,e.g.ua,t.streaming.retryParameters)}function Wm(){this.h=this.j=this.i=0,this.g=new Map,this.l=0}function Ym(e,t){e.i+=t;var n=e.l;return e.l++,e.g.set(n,t),n}function Jm(e){var t=this;this.o=e,this.j=new Map,this.i=new pa((function(){return Zm(t).catch((function(){}))})),this.h=[],this.m=function(){},this.l=function(){},this.g=new Wm}function Zm(e){var t=e.h.map((function(e){return e()}));return e.h=[],Promise.all(t)}function Qm(e,t,n,r,i,a){ha(e.i);var o=(e.j.get(t)||Promise.resolve()).then((function(){var t,o,s,u,c,l,d;return D((function(f){if(1==f.g)return w(f,function(e,t){var n,r,i,a;return D((function(o){return 1==o.g?(n=la,r=e.o.request(n,t),i=function(){return r.abort()},e.h.push(i),w(o,r.promise,2)):(a=o.h,Ie(e.h,i),o.return(a.data))}))}(e,n),2);if(t=f.h,e.i.g)throw new Pe(2,9,7001);if(i)for(u in o=ve(t),(s=new Da(o)).data)c=Number(u),l=s.data[c],d=s.g[c],e.l(l,d);e.g.close(r,t.byteLength);var p=e.g;return e.m(0==p.i?0:p.j/p.i,e.g.h),f.return(a(t))}))}));e.j.set(t,o)}function ey(e,t){var n=this;this.i=e,this.h=e.objectStore(t),this.g=new zi,e.onabort=function(e){e.preventDefault(),n.g.reject()},e.onerror=function(e){e.preventDefault(),n.g.reject()},e.oncomplete=function(){n.g.resolve()}}function ty(e,t){return new Promise((function(n,r){var i=e.h.openCursor();i.onerror=r,i.onsuccess=function(){var e;return D((function(r){if(1==r.g)return null==i.result?(n(),r.return()):(e=i.result,w(r,t(e.key,e.value,e),2));e.continue(),x(r)}))}}))}function ny(e){this.h=e,this.g=[]}function ry(e,t){return iy(e,t,"readwrite")}function iy(e,t,n){var r=new ey(n=e.h.transaction([t],n),t);return e.g.push(r),r.promise().then((function(){Ie(e.g,r)}),(function(){Ie(e.g,r)})),r}function ay(e,t,n){this.h=new ny(e),this.i=t,this.g=n}function oy(e){return Promise.reject(new Pe(2,9,9011,"Cannot add new value to "+e))}function sy(e,t,n,r){t=(e=ry(e.h,t)).store();for(var i=(n=c(n)).next(),a={};!i.done;a={xf:void 0},i=n.next())a.xf=i.value,t.delete(a.xf).onsuccess=function(e){return function(){return r(e.xf)}}(a);return e.promise()}function uy(e,t,n){var r,i,a,o,s,u,l;return D((function(d){if(1==d.g){for(r=iy(e.h,t,"readonly"),i=r.store(),a={},o=[],s=c(n),u=s.next(),l={};!u.done;l={ke:void 0,Ud:void 0},u=s.next())l.Ud=u.value,l.ke=i.get(l.Ud),l.ke.onsuccess=function(e){return function(){null==e.ke.result&&o.push(e.Ud),a[e.Ud]=e.ke.result}}(l);return w(d,r.promise(),2)}if(o.length)throw new Pe(2,9,9012,"Could not find values for "+o);return d.return(n.map((function(e){return a[e]})))}))}function cy(e){this.g=new ny(e)}function ly(){this.g=new Map}function dy(e){var t=null;if(e.g.forEach((function(e,n){e.getCells().forEach((function(e,r){e.hasFixedKeySpace()||t||(t={path:{rb:n,Ma:r},Ma:e})}))})),t)return t;throw new Pe(2,9,9013,"Could not find a cell that supports add-operations")}function fy(e,t,n){if(!(e=e.g.get(t)))throw new Pe(2,9,9013,"Could not find mechanism with name "+t);if(!(t=e.getCells().get(n)))throw new Pe(2,9,9013,"Could not find cell with name "+n);return t}function py(e,t){hy.set(e,t)}ra("http",zm,1,!0),ra("https",zm,1,!0),ra("blob",zm,1,!0),Wm.prototype.close=function(e,t){if(this.g.has(e)){var n=this.g.get(e);this.g.delete(e),this.j+=n,this.h+=t}},Jm.prototype.destroy=function(){return this.i.destroy()},ey.prototype.abort=function(){var e=this;return D((function(t){if(1==t.g){try{e.i.abort()}catch(e){}return S(t,2),w(t,e.g,4)}if(2!=t.g)return k(t,0);C(t),x(t)}))},ey.prototype.store=function(){return this.h},ey.prototype.promise=function(){return this.g},ny.prototype.destroy=function(){return Promise.all(this.g.map((function(e){return e.abort()})))},(r=ay.prototype).destroy=function(){return this.h.destroy()},r.hasFixedKeySpace=function(){return!0},r.addSegments=function(){return oy(this.i)},r.removeSegments=function(e,t){return sy(this,this.i,e,t)},r.getSegments=function(e){var t,n=this;return D((function(r){return 1==r.g?w(r,uy(n,n.i,e),2):(t=r.h,r.return(t.map((function(e){return n.qg(e)}))))}))},r.addManifests=function(){return oy(this.g)},r.updateManifest=function(){return Promise.reject(new Pe(2,9,9016,"Cannot modify values in "+this.g))},r.updateManifestExpiration=function(e,t){var n=ry(this.h,this.g),r=n.store();return r.get(e).onsuccess=function(n){(n=n.target.result)&&(n.expiration=t,r.put(n,e))},n.promise()},r.removeManifests=function(e,t){return sy(this,this.g,e,t)},r.getManifests=function(e){var t,n=this;return D((function(r){return 1==r.g?w(r,uy(n,n.g,e),2):(t=r.h,r.return(Promise.all(t.map((function(e){return n.ad(e)})))))}))},r.getAllManifests=function(){var e,t,n=this;return D((function(r){return 1==r.g?(e=iy(n.h,n.g,"readonly"),t=new Map,w(r,ty(e,(function(e,r){var i;return D((function(a){if(1==a.g)return w(a,n.ad(r),2);i=a.h,t.set(e,i),x(a)}))})),2)):3!=r.g?w(r,e.promise(),3):r.return(t)}))},r.qg=function(e){return e},r.ad=function(e){return Promise.resolve(e)},r.add=function(e,t){var n,r,i,a,o,s,u,l=this;return D((function(d){if(1==d.g){for(n=ry(l.h,e),r=n.store(),i=[],a=c(t),o=a.next(),s={};!o.done;s={Mf:void 0},o=a.next())u=o.value,s.Mf=r.add(u),s.Mf.onsuccess=function(e){return function(){i.push(e.Mf.result)}}(s);return w(d,n.promise(),2)}return d.return(i)}))},cy.prototype.destroy=function(){return this.g.destroy()},cy.prototype.getAll=function(){var e,t,n=this;return D((function(r){return 1==r.g?(e=iy(n.g,"session-ids","readonly"),t=[],w(r,ty(e,(function(e,n){t.push(n)})),2)):3!=r.g?w(r,e.promise(),3):r.return(t)}))},cy.prototype.add=function(e){for(var t=ry(this.g,"session-ids"),n=t.store(),r=(e=c(e)).next();!r.done;r=e.next())n.add(r.value);return t.promise()},cy.prototype.remove=function(e){var t,n=this;return D((function(r){return 1==r.g?w(r,ty(t=ry(n.g,"session-ids"),(function(t,n,r){e.includes(n.sessionId)&&r.delete()})),2):w(r,t.promise(),0)}))},ly.prototype.destroy=function(){for(var e=[],t=c(this.g.values()),n=t.next();!n.done;n=t.next())e.push(n.value.destroy());return this.g.clear(),Promise.all(e)},ly.prototype.init=function(){var e=this;hy.forEach((function(t,n){(t=t())&&e.g.set(n,t)}));for(var t=[],n=c(this.g.values()),r=n.next();!r.done;r=n.next())t.push(r.value.init());return Promise.all(t)},B("shaka.offline.StorageMuxer",ly),ly.unregister=function(e){hy.delete(e)},ly.register=py,ly.prototype.destroy=ly.prototype.destroy;var hy=new Map;function gy(){ay.apply(this,arguments)}function vy(e,t){!function(e){var t=e.streams.filter((function(e){return"audio"==e.contentType}));if(e=e.streams.filter((function(e){return"video"==e.contentType})),!t.every((function(e){return e.variantIds}))||!e.every((function(e){return e.variantIds}))){for(var n=c(t),r=n.next();!r.done;r=n.next())r.value.variantIds=[];for(r=(n=c(e)).next();!r.done;r=n.next())r.value.variantIds=[];if(n=0,e.length&&!t.length){r=n++;for(var i=c(e),a=i.next();!a.done;a=i.next())a.value.variantIds.push(r)}if(!e.length&&t.length)for(r=n++,a=(i=c(t)).next();!a.done;a=i.next())a.value.variantIds.push(r);if(e.length&&t.length)for(r=(t=c(t)).next();!r.done;r=t.next())for(r=r.value,a=(i=c(e)).next();!a.done;a=i.next()){a=a.value;var o=n++;r.variantIds.push(o),a.variantIds.push(o)}}}(e);for(var n=c(e.streams),r=n.next();!r.done;r=n.next());return e.streams.map((function(n){return function(e,t,n){var r=e.initSegmentUri?my(e.initSegmentUri):null,i=t+e.presentationTimeOffset,a=t+n;return{id:e.id,originalId:null,groupId:null,primary:e.primary,type:e.contentType,mimeType:e.mimeType,codecs:e.codecs,frameRate:e.frameRate,pixelAspectRatio:void 0,hdr:void 0,colorGamut:void 0,videoLayout:void 0,kind:e.kind,language:e.language,originalLanguage:e.language||null,label:e.label,width:e.width,height:e.height,initSegmentKey:r,encrypted:e.encrypted,keyIds:new Set([e.keyId]),segments:e.segments.map((function(e){var n=my(e.uri);return{startTime:t+e.startTime,endTime:t+e.endTime,dataKey:n,initSegmentKey:r,appendWindowStart:t,appendWindowEnd:a,timestampOffset:i,tilesLayout:"",mimeType:null,codecs:null,thumbnailSprite:null}})),variantIds:e.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1,isAudioMuxedInVideo:!1}}(n,e.startTime,t)}))}function my(e){var t;if((t=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(e))||(t=/^offline:segment\/([0-9]+)$/.exec(e)))return Number(t[1]);throw new Pe(2,9,9004,"Could not parse uri "+e)}function yy(){ay.apply(this,arguments)}function by(e,t,n){return{id:e.id,originalId:e.originalId,groupId:null,primary:e.primary,type:e.contentType,mimeType:e.mimeType,codecs:e.codecs,frameRate:e.frameRate,pixelAspectRatio:e.pixelAspectRatio,hdr:void 0,colorGamut:void 0,videoLayout:void 0,kind:e.kind,language:e.language,originalLanguage:e.language||null,label:e.label,width:e.width,height:e.height,encrypted:e.encrypted,keyIds:new Set([e.keyId]),segments:e.segments.map((function(r){return{startTime:t+r.startTime,endTime:t+r.endTime,initSegmentKey:e.initSegmentKey,appendWindowStart:t,appendWindowEnd:n,timestampOffset:t-e.presentationTimeOffset,dataKey:r.dataKey,tilesLayout:"",mimeType:null,codecs:null,thumbnailSprite:null}})),variantIds:e.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1,isAudioMuxedInVideo:!1}}function wy(){ay.apply(this,arguments)}function xy(){this.m=this.j=this.i=this.h=this.g=this.l=null}function Sy(e,t,n,r){this.g=e,this.i=t,this.h=n,this.l=r,this.j=["offline:",e,"/",t,"/",n,"/",r].join("")}function Ty(e){if(null==(e=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(e)))return null;var t=e[1];if("manifest"!=t&&"segment"!=t)return null;var n=e[2];if(!n)return null;var r=e[3];return r&&null!=t?new Sy(t,n,r,Number(e[4])):null}function ky(e,t){this.h=e,this.g=t}function Cy(e,t){var n=new Ls(null,0);n.bb(t.duration);var r=t.streams.filter((function(e){return"audio"==e.type})),i=t.streams.filter((function(e){return"video"==e.type}));r=function(e,t,n,r){for(var i=new Set,a=c(t),o=a.next();!o.done;o=a.next())for(var s=(o=c(o.value.variantIds)).next();!s.done;s=o.next())i.add(s.value);for(o=(a=c(n)).next();!o.done;o=a.next())for(s=(o=c(o.value.variantIds)).next();!s.done;s=o.next())i.add(s.value);for(a=new Map,o=(i=c(i)).next();!o.done;o=i.next())o=o.value,a.set(o,{id:o,language:"",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});for(i=(t=c(t)).next();!i.done;i=t.next())for(i=Ay(e,o=i.value,r),s=(o=c(o.variantIds)).next();!s.done;s=o.next())(s=a.get(s.value)).language=i.language,s.primary=s.primary||i.primary,s.audio=i;for(t=(n=c(n)).next();!t.done;t=n.next())for(t=Ay(e,i=t.value,r),o=(i=c(i.variantIds)).next();!o.done;o=i.next())(o=a.get(o.value)).primary=o.primary||t.primary,o.video=t;return a}(e,r,i,n),i=t.streams.filter((function(e){return e.type==yr})).map((function(t){return Ay(e,t,n)}));var a=t.streams.filter((function(e){return"image"==e.type})).map((function(t){return Ay(e,t,n)})),o=t.drmInfo?[t.drmInfo]:[];if(t.drmInfo)for(var s=c(r.values()),u=s.next();!u.done;u=s.next())(u=u.value).audio&&u.audio.encrypted&&(u.audio.drmInfos=o),u.video&&u.video.encrypted&&(u.video.drmInfos=o);return{presentationTimeline:n,minBufferTime:2,offlineSessionIds:t.sessionIds,variants:Array.from(r.values()),textStreams:i,imageStreams:a,sequenceMode:t.sequenceMode||!1,ignoreManifestTimestampsInSegmentsMode:!1,type:t.type||"UNKNOWN",serviceDescription:null,nextUrl:null,periodCount:1,gapCount:0,isLowLatency:!1,startTime:null}}function Ay(e,t,n){var r=t.segments.map((function(n){return function(e,t,n){var r=new Sy("segment",e.h,e.g,t.dataKey);return e=new mo(t.startTime,t.endTime,(function(){return[r.toString()]}),0,null,null!=t.initSegmentKey?function(e,t){var n=new Sy("segment",e.h,e.g,t);return new go((function(){return[n.toString()]}),0,null)}(e,t.initSegmentKey):null,t.timestampOffset,t.appendWindowStart,t.appendWindowEnd,[],t.tilesLayout||""),e.mimeType=t.mimeType||n.mimeType||"",e.codecs=t.codecs||n.codecs||"",t.thumbnailSprite&&e.qe(t.thumbnailSprite),e}(e,n,t)}));return n.td(r),{id:t.id,originalId:t.originalId,groupId:t.groupId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Qs(r),mimeType:t.mimeType,codecs:t.codecs,width:t.width||void 0,height:t.height||void 0,frameRate:t.frameRate,pixelAspectRatio:t.pixelAspectRatio,hdr:t.hdr,colorGamut:t.colorGamut,videoLayout:t.videoLayout,kind:t.kind,encrypted:t.encrypted,drmInfos:[],keyIds:t.keyIds,language:t.language,originalLanguage:t.originalLanguage||null,label:t.label,type:t.type,primary:t.primary,trickModeVideo:null,emsgSchemeIdUris:null,roles:t.roles,forced:t.forced,channelsCount:t.channelsCount,audioSamplingRate:t.audioSamplingRate,spatialAudio:t.spatialAudio,closedCaptions:t.closedCaptions,tilesLayout:t.tilesLayout,accessibilityPurpose:null,external:t.external,fastSwitching:t.fastSwitching,fullMimeTypes:new Set([Tr(t.mimeType,t.codecs)]),isAudioMuxedInVideo:!1}}function Ey(){this.g=null}function Iy(){}function My(e){var t=Ty(e);return e=t&&"manifest"==t.g?Gi(e={uri:e,originalUri:e,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}}):t&&"segment"==t.g?function(e,t){var n=new ly;return Gi(void 0).Ca((function(){return n.init()})).Ca((function(){return fy(n,t.rb(),t.Ma())})).Ca((function(e){return e.getSegments([t.key()])})).Ca((function(e){return{uri:t,data:e[0].data,headers:{}}})).finally((function(){return n.destroy()}))}(t.key(),t):qi(new Pe(2,1,9004,e))}function _y(e,t,n){var r,i,a,o,s,u;return D((function(l){switch(l.g){case 1:r=[];for(var d=[],f=c(n),p=f.next();!p.done;p=f.next()){p=p.value;for(var h=!1,g=c(d),v=g.next();!v.done;v=g.next())if(Py((v=v.value).info,p)){v.sessionIds.push(p.sessionId),h=!0;break}h||d.push({info:p,sessionIds:[p.sessionId]})}i=c(d),a=i.next();case 2:if(a.done){l.u(4);break}return o=a.value,s=function(e,t,n){var r,i;return D((function(a){switch(a.g){case 1:return r=new Ra({Ob:t,onError:function(){},ee:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),S(a,2),r.configure(e),w(a,function(e,t,n,r,i,a){var o=new Map;return(i={audioCapabilities:i,videoCapabilities:a,distinctiveIdentifier:"optional",persistentState:"required",sessionTypes:["persistent-license"],label:t}).drmInfos=[{keySystem:t,licenseServerUri:n,distinctiveIdentifierRequired:!1,persistentStateRequired:!0,audioRobustness:"",videoRobustness:"",serverCertificate:r,serverCertificateUri:"",initData:null,keyIds:null}],o.set(t,i),Va(e,o,[])}(r,n.info.keySystem,n.info.licenseUri,n.info.serverCertificate,n.info.audioCapabilities,n.info.videoCapabilities),4);case 4:k(a,3);break;case 2:return C(a),w(a,r.destroy(),5);case 5:return a.return([]);case 3:return i=[],w(a,Promise.all(n.sessionIds.map((function(e){return D((function(t){return 1==t.g?(S(t,2),w(t,function(e,t){var n,r,i;return D((function(a){return 1==a.g?w(a,Ha(e,t,{initData:null,initDataType:null}),2):3!=a.g?(n=a.h)?(r=[],(i=e.i.get(n))&&(i.nb=new zi,r.push(i.nb)),r.push(n.remove()),w(a,Promise.all(r),3)):a.return():(e.i.delete(n),void x(a))}))}(r,e),4)):2!=t.g?(i.push(e),k(t,0)):(C(t),void x(t))}))}))),6);case 6:return w(a,r.destroy(),7);case 7:return a.return(i)}}))}(e,t,o),w(l,s,5);case 5:u=l.h,r=r.concat(u),a=i.next(),l.u(2);break;case 4:return l.return(r)}}))}function Py(e,t){function n(e,t){return e.robustness==t.robustness&&e.contentType==t.contentType}return e.keySystem==t.keySystem&&e.licenseUri==t.licenseUri&&Me(e.audioCapabilities,t.audioCapabilities,n)&&Me(e.videoCapabilities,t.videoCapabilities,n)}function Dy(e,t){var n=Cy(new ky(e.rb(),e.Ma()),t),r=t.appMetadata||{};return n=Ly(n),{offlineUri:e.toString(),originalManifestUri:t.originalManifestUri,duration:t.duration,size:t.size,expiration:t.expiration,tracks:n,appMetadata:r,isIncomplete:t.isIncomplete||!1}}function Ly(e){for(var t=[],n=bi(e.variants),r=(n=c(n)).next();!r.done;r=n.next())t.push(di(r.value));for(n=(e=c(e.textStreams)).next();!n.done;n=e.next())t.push(fi(n.value));return t}function Ry(){this.g={}}function Ny(e,t){var n=t.audio,r=t.video;if(n&&!r&&(e.g[n.id]=n.bandwidth||t.bandwidth),!n&&r&&(e.g[r.id]=r.bandwidth||t.bandwidth),n&&r){var i=n.bandwidth||393216,a=r.bandwidth||t.bandwidth-i;0>=a&&(a=t.bandwidth),e.g[n.id]=i,e.g[r.id]=a}}function Oy(e,t){e.g[t.id]=t.bandwidth||2048}function Uy(e,t){return null==(e=e.g[t])&&(e=0),e}function jy(e){var t=this;if(e&&e.constructor!=fl)throw new Pe(2,9,9008);this.g=this.h=null,e?(this.h=e.g,this.g=e.Ab()):(this.h=cc(),this.g=new na),this.i=[],this.j=[];var n=!e;this.l=new pa((function(){var e,r,i,a,o;return D((function(s){switch(s.g){case 1:return w(s,Promise.all(t.j.map((function(e){return Zm(e)}))),2);case 2:for(e=function(){},r=[],i=c(t.i),a=i.next();!a.done;a=i.next())o=a.value,r.push(o.then(e,e));return w(s,Promise.all(r),3);case 3:if(!n){s.u(4);break}return w(s,t.g.destroy(),4);case 4:t.h=null,t.g=null,x(s)}}))})),this.m=1e9}function Fy(){if(Ve())e:{for(var e=c(hy.values()),t=e.next();!t.done;t=e.next())if(t=(t=t.value)()){t.destroy(),e=!0;break e}e=!1}else e=!1;return e}function By(e){var t,n,r;return D((function(i){switch(i.g){case 1:return w(i,(t=new ly).init(),2);case 2:return w(i,dy(t),3);case 3:return n=i.h,r=new Sy("manifest",n.path.rb,n.path.Ma,e),w(i,t.destroy(),4);case 4:return w(i,(new jy).remove(r.toString()),0)}}))}function Vy(e,t,n,r,i,a){var o,s,u,l,d,f,p,h,g,v,m;return D((function(y){switch(y.g){case 1:for(o=!1,S(y,2),s=!0,u=c(n.streams),l=u.next();!l.done;l=u.next())for(d=l.value,f=c(d.segments),p=f.next();!p.done;p=f.next())h=p.value,null!=(g=h.pendingSegmentRefId?r[h.pendingSegmentRefId]:null)&&(h.dataKey=g,h.pendingSegmentRefId=void 0),null!=(g=h.pendingInitSegmentRefId?r[h.pendingInitSegmentRefId]:null)&&(h.initSegmentKey=g,h.pendingInitSegmentRefId=void 0),h.pendingSegmentRefId&&(s=!1),h.pendingInitSegmentRefId&&(s=!1);return n.size+=i,s&&(n.isIncomplete=!1),w(y,e.updateManifest(t,n),4);case 4:o=!0,a(),k(y,0);break;case 2:return v=C(y),w(y,By(t),5);case 5:if(o){y.u(6);break}return m=Object.values(r),w(y,e.removeSegments(m,(function(){})),6);case 6:throw v}}))}function $y(e){return e.variants.some((function(e){var t=e.audio&&e.audio.encrypted;return e.video&&e.video.encrypted||t}))}function zy(e){return e.variants.some((function(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]).some((function(e){return e.initData&&e.initData.length}))}))}function Hy(e,t,n,r){if(t.expiration=n.ed(),n=Ba(n),t.sessionIds=r.offline.usePersistentLicense?n:[],$y(e)&&r.offline.usePersistentLicense&&!n.length)throw new Pe(2,9,9007)}function qy(e,t){for(var n=[],r=c(e.streams),i=r.next();!i.done;i=r.next())i=i.value,t&&"video"==i.type?n.push({contentType:Tr(i.mimeType,i.codecs),robustness:e.drmInfo.videoRobustness}):t||"audio"!=i.type||n.push({contentType:Tr(i.mimeType,i.codecs),robustness:e.drmInfo.audioRobustness});return n}function Ky(e,t,n){return D((function(r){return w(r,function(e,t,n,r){var i,a,o;return D((function(s){return 1==s.g?r.drmInfo?(i=function(e){var t=Array.from(e.g.keys());if(!t.length)throw new Pe(2,9,9e3,"No supported storage mechanisms found");return e.g.get(t[0]).getEmeSessionCell()}(n),a=r.sessionIds.map((function(e){return{sessionId:e,keySystem:r.drmInfo.keySystem,licenseUri:r.drmInfo.licenseServerUri,serverCertificate:r.drmInfo.serverCertificate,audioCapabilities:qy(r,!1),videoCapabilities:qy(r,!0)}})),w(s,_y(t,e,a),2)):s.return():3!=s.g?(o=s.h,w(s,i.remove(o),3)):w(s,i.add(a.filter((function(e){return!o.includes(e.sessionId)}))),0)}))}(e.g,e.h.drm,n,t),0)}))}function Gy(e,t,n){function r(){}var i=function(e){for(var t=new Set,n=(e=c(e.streams)).next();!n.done;n=e.next())for(var r=(n=c(n.value.segments)).next();!r.done;r=n.next())null!=(r=r.value).initSegmentKey&&t.add(r.initSegmentKey),t.add(r.dataKey);return Array.from(t)}(n);return Dy(t,n),Promise.all([e.removeSegments(i,r),e.removeManifests([t.key()],r)])}function Xy(e,t){var n;return D((function(r){switch(r.g){case 1:return S(r,2),w(r,kc(t,e.g,e.h.streaming.retryParameters),4);case 4:n=r.h,k(r,3);break;case 2:C(r);case 3:if(n)return r.return(n);throw new Pe(1,2,2011,t)}}))}function Wy(e,t,n,r,i,a){var o={id:r.id,originalId:r.originalId,groupId:r.groupId,primary:r.primary,type:r.type,mimeType:r.mimeType,codecs:r.codecs,frameRate:r.frameRate,pixelAspectRatio:r.pixelAspectRatio,hdr:r.hdr,colorGamut:r.colorGamut,videoLayout:r.videoLayout,kind:r.kind,language:r.language,originalLanguage:r.originalLanguage,label:r.label,width:r.width||null,height:r.height||null,encrypted:r.encrypted,keyIds:r.keyIds,segments:[],variantIds:[],roles:r.roles,forced:r.forced,channelsCount:r.channelsCount,audioSamplingRate:r.audioSamplingRate,spatialAudio:r.spatialAudio,closedCaptions:r.closedCaptions,tilesLayout:r.tilesLayout,external:r.external,fastSwitching:r.fastSwitching,isAudioMuxedInVideo:r.isAudioMuxedInVideo},s=i.offline.numberOfParallelDownloads,u=0===s?r.id:0;return function(e,t,n){if(null!=(t=e.segmentIndex.find(t)))for(var r=e.segmentIndex.get(t);r;)n(r),r=e.segmentIndex.get(++t)}(r,n.presentationTimeline.qb(),(function(n){var i=Gm(n),c=void 0;if(!a.has(i)){var l=n.endTime-n.startTime;l=Uy(t,r.id)*l,l=Ym(e.g,l),a.set(i,new Km(n,l,u,!1))}n.ba&&(c=Gm(n.ba),a.has(c)||(l=.5*Uy(t,r.id),l=Ym(e.g,l),a.set(c,new Km(n.ba,l,u,!0)))),o.segments.push({pendingInitSegmentRefId:c,initSegmentKey:c?0:null,startTime:n.startTime,endTime:n.endTime,appendWindowStart:n.appendWindowStart,appendWindowEnd:n.appendWindowEnd,timestampOffset:n.timestampOffset,tilesLayout:n.tilesLayout,pendingSegmentRefId:i,dataKey:0,mimeType:n.mimeType,codecs:n.codecs,thumbnailSprite:n.thumbnailSprite}),0!==s&&(u=(u+1)%s)})),o}function Yy(e){if(e.l.g)throw new Pe(2,9,7001)}function Jy(){if(!Fy())throw new Pe(2,9,9e3)}function Zy(e,t){return D((function(n){return 1==n.g?(e.i.push(t),T(n,2),w(n,t,4)):2!=n.g?n.return(n.h):(A(n),Ie(e.i,t),E(n,0))}))}function Qy(e){for(var t=new Set,n=c(e.variants),r=n.next();!r.done;r=n.next())(r=r.value).audio&&t.add(r.audio),r.video&&t.add(r.video);for(r=(n=c(e.textStreams)).next();!r.done;r=n.next())t.add(r.value);for(n=(e=c(e.imageStreams)).next();!n.done;n=e.next())t.add(n.value);return t}v(gy,ay),gy.prototype.updateManifestExpiration=function(e,t){var n,r,i,a=this;return D((function(o){return n=ry(a.h,a.g),r=n.store(),i=new zi,r.get(e).onsuccess=function(n){(n=n.target.result)?(n.expiration=t,r.put(n),i.resolve()):i.reject(new Pe(2,9,9012,"Could not find values for "+e))},w(o,Promise.all([n.promise(),i]),0)}))},gy.prototype.ad=function(e){var t,n,r,i,a,o;return D((function(s){if(1==s.g){for(t=[],n=0;nt,!s||!u){l.u(3);break}return w(l,i.updateManifestExpiration(n.key(),t),3);case 3:return A(l),w(l,r.destroy(),10);case 10:E(l,0);break;case 2:C(l),l.u(3)}}))},r.onInitialVariantChosen=function(){},r.banLocation=function(){},r.setMediaElement=function(){},lo["application/x-offline-manifest"]=function(){return new Ey},B("shaka.offline.OfflineScheme",Iy),Iy.plugin=My,ra("offline",My),(r=jy.prototype).destroy=function(){return this.l.destroy()},r.configure=function(e,t){return 2==arguments.length&&"string"==typeof e&&(e=ec(e,t)),lc(this.h,e)},r.getConfiguration=function(){var e=cc();return lc(e,this.h,cc()),e},r.Ab=function(){return this.g},r.store=function(e,t,n,r,i){var a=this,o=this.getConfiguration(),s=new Jm(this.g);return this.j.push(s),t=function(e,t,n,r,i,a,o,s){var u,l,d,f,p,h,g,v,m,y,b,T,I,M,_,P,L,R,N,O,U;return D((function(j){switch(j.g){case 1:return Jy(),l=u=null,d=new ly,h=p=f=null,S(j,2,3),w(j,a(),5);case 5:return u=j.h,w(j,function(e,t,n,r){var i,a,o,s,u;return D((function(c){if(1==c.g)return i=null,a=e.g,o={networkingEngine:a,filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(e){i=e},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){},updateDuration:function(){},newDrmInfo:function(){},onManifestUpdated:function(){},getBandwidthEstimate:function(){return r.abr.defaultBandwidthEstimate},onMetadata:function(){},disableStream:function(){},addFont:function(){}},n.configure(r.manifest),Yy(e),w(c,n.start(t,o),2);if(3!=c.g)return s=c.h,Yy(e),u=Qy(s),w(c,Promise.all(ga(u,(function(e){return e.createSegmentIndex()}))),3);if(Yy(e),i)throw i;return c.return(s)}))}(e,t,u,o),6);case 6:if(g=j.h,Yy(e),g.presentationTimeline.U()||g.presentationTimeline.uc())throw new Pe(2,9,9005,t);v=c(r),m=v.next();case 7:if(m.done){j.u(9);break}return y=m.value,w(j,function(e,t,n){var r,i,a,o,s,u,l,d,f,p,h,g,v,m,y;return D((function(b){switch(b.g){case 1:return w(b,Xy(e,t),2);case 2:if("text/vtt"!=(r=b.h))throw new Pe(1,2,2017,t);return w(b,function(e,t,n){var r,i,a;return D((function(o){return 1==o.g?(r=la,(i=aa([e],n)).method="GET",w(o,t.request(r,i).promise,2)):(a=o.h,o.return(a.data))}))}(t,e.g,e.h.streaming.retryParameters),3);case 3:if(i=b.h,!(a=Br[r]))throw new Pe(2,2,2014,r);for(o=a(),s={periodStart:0,segmentStart:0,segmentEnd:n.presentationTimeline.getDuration(),vttOffset:0},u=ve(i),l=o.parseMedia(u,s,t,[]),d=[],f=c(l),p=f.next(),h={};!p.done;h={ye:void 0,Gc:void 0},p=f.next())h.Gc=p.value,h.ye=null,g=function(e){return function(){return null==e.ye&&(e.ye=fr([t],[e.Gc.payload])),e.ye||[]}}(h),v=new mo(h.Gc.startTime,h.Gc.endTime,g,0,null,null,0,0,1/0),h.Gc.payload.includes("#xywh")&&4===(m=h.Gc.payload.split("#xywh=")[1].split(",")).length&&v.qe({height:parseInt(m[3],10),positionX:parseInt(m[0],10),positionY:parseInt(m[1],10),width:parseInt(m[2],10)}),d.push(v);if(y=r,!d.length){b.u(4);break}return w(b,kc(d[0].N()[0],e.g,e.h.manifest.retryParameters),5);case 5:y=b.h;case 4:return b.return({id:e.m++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Qs(d),mimeType:y||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:"image",primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([Tr(y||"","")]),isAudioMuxedInVideo:!1})}}))}(e,y,g),10);case 10:b=j.h,g.imageStreams.push(b),Yy(e),m=v.next(),j.u(7);break;case 9:T=c(i),I=T.next();case 11:return I.done?w(j,e.Ec(g,(function(e){h=h||e}),o),15):(M=I.value,w(j,function(e,t,n,r,i,a,o){var s;return D((function(u){if(1==u.g)return a?u.u(2):w(u,Xy(e,n),3);if(2!=u.g&&(a=u.h),s={id:e.m++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:tu(0,t.presentationTimeline.getDuration(),[n]),mimeType:a||"",codecs:o||"",kind:i,encrypted:!1,drmInfos:[],keyIds:new Set,language:r,originalLanguage:r,label:null,type:yr,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([Tr(a||"",o||"")]),isAudioMuxedInVideo:!1},!Ur(Tr(s.mimeType,s.codecs)))throw new Pe(2,2,2014,a);return u.return(s)}))}(e,g,M.uri,M.language,M.kind,M.mime,M.codecs),14));case 14:_=j.h,g.textStreams.push(_),Yy(e),I=T.next(),j.u(11);break;case 15:if(l=j.h,Yy(e),h)throw h;return w(j,function(e,t,n){var r,i,a,o,s,u,l,d,f,p,h,g,v,m,y,b,T,A,E,I,M,_,P,L,R,N,O,U,j;return D((function(D){switch(D.g){case 1:return r={width:1/0,height:1/0},function(e,t,n){e.variants=e.variants.filter((function(e){return ni(e,t,n)}))}(e,n.restrictions,r),w(D,ri(t,e,n.offline.usePersistentLicense,n.drm.preferredKeySystems),2);case 2:for(i=[],a=n.preferredDecodingAttributes,o=n.preferredVideoCodecs,s=n.preferredAudioCodecs,u=n.preferredTextFormats,ti(e,o,s,a,u),l=c(e.variants),d=l.next();!d.done;d=l.next())f=d.value,i.push(di(f));for(p=c(e.textStreams),h=p.next();!h.done;h=p.next())g=h.value,i.push(fi(g));for(v=c(e.imageStreams),m=v.next();!m.done;m=v.next())y=m.value,i.push(pi(y));return w(D,n.offline.trackSelectionCallback(i),3);case 3:for(b=D.h,T=e.presentationTimeline.getDuration(),A=0,E=c(b),I=E.next();!I.done;I=E.next())M=I.value,_=M.bandwidth*T/8,A+=_;return S(D,4),w(D,n.offline.downloadSizeCallback(A),6);case 6:if(!D.h)throw new Pe(2,9,9014);k(D,5);break;case 4:if((P=C(D))instanceof Pe)throw P;throw new Pe(2,9,9015);case 5:for(L=new Set,R=new Set,N=new Set,O=c(b),U=O.next();!U.done;U=O.next())"variant"==(j=U.value).type&&L.add(j.id),"text"==j.type&&R.add(j.id),"image"==j.type&&N.add(j.id);e.variants=e.variants.filter((function(e){return L.has(e.id)})),e.textStreams=e.textStreams.filter((function(e){return R.has(e.id)})),e.imageStreams=e.imageStreams.filter((function(e){return N.has(e.id)})),function(e){e.variants.map((function(e){return e.video}));var t=new Set(e.variants.map((function(e){return e.audio})));e=e.textStreams;for(var n=c(t),r=n.next();!r.done;r=n.next())for(var i=(r=c(t)).next();!i.done;i=r.next());for(n=(t=c(e)).next();!n.done;n=t.next())for(r=(n=c(e)).next();!r.done;r=n.next());}(e),x(D)}}))}(g,l,o),16);case 16:return w(j,d.init(),17);case 17:return Yy(e),w(j,dy(d),18);case 18:return f=j.h,Yy(e),P=function(e,t,n,r,i,a){var o=function(e,t,n){return{offlineUri:null,originalManifestUri:e,duration:t.presentationTimeline.getDuration(),size:0,expiration:1/0,tracks:t=Ly(t),appMetadata:n,isIncomplete:!1}}(n,t,r),s=i.offline.progressCallback;!function(e,t,n){e.m=function(e,t){o.size=t,s(o,e)},e.l=n}(a,0,(function(t,n){u&&i.offline.usePersistentLicense&&l==n&&Fa(e,"cenc",t)}));var u=$y(t)&&!zy(t),l=null;u&&(l=eb.get(e.g.keySystem));for(var d=new Ry,f=c(t.textStreams),p=f.next();!p.done;p=f.next())d.g[p.value.id]=52;for(p=(f=c(t.imageStreams)).next();!p.done;p=f.next())Oy(d,p.value);for(p=(f=c(t.variants)).next();!p.done;p=f.next())Ny(d,p.value);return d=function(e,t,n,r){for(var i=new Map,a=Qy(n),o=new Map,s=(a=c(a)).next();!s.done;s=a.next()){var u=Wy(e,t,n,s=s.value,r,i);o.set(s.id,u)}for(t=(e=c(n.variants)).next();!t.done;t=e.next())(t=t.value).audio&&o.get(t.audio.id).variantIds.push(t.id),t.video&&o.get(t.video.id).variantIds.push(t.id);return{streams:Array.from(o.values()),bg:Array.from(i.values())}}(a,d,t,i),a=d.streams,d=d.bg,f=e.g,p=i.offline.usePersistentLicense,f&&p&&(f.initData=[]),{xi:{creationTime:Date.now(),originalManifestUri:n,duration:t.presentationTimeline.getDuration(),size:0,expiration:e.ed(),streams:a,sessionIds:p?Ba(e):[],drmInfo:f,appMetadata:r,isIncomplete:!0,sequenceMode:t.sequenceMode,type:t.type},bg:d}}(l,g,t,n,o,s),L=P.xi,R=P.bg,w(j,f.Ma.addManifests([L]),19);case 19:if(N=j.h,Yy(e),p=N[0],Yy(e),h)throw h;return w(j,function(e,t,n,r,i,a,o,s,u){var l,d,f,p,h,g,v,m,y,b;return D((function(T){switch(T.g){case 1:if(l={},d=0,f=function(t,f){var p,h,g,v,m,y,b;return D((function(S){if(1==S.g){for(p=c(t),h=p.next(),g={};!h.done;g={Hc:void 0},h=p.next())g.Hc=h.value,v=Xm(g.Hc,a),m=g.Hc.i,y=g.Hc.h,b=function(t){return function(n){var r,i,a;return D((function(s){if(1==s.g)return w(s,o.addSegments([{data:n}]),2);r=s.h,Yy(e),i=t.Hc.g,a=Gm(i),l[a]=r[0],d+=n.byteLength,x(s)}))}}(g),Qm(i,g.Hc.groupId,v,m,y,b);return w(S,function(e){return D((function(t){return 1==t.g?w(t,Promise.all(e.j.values()),2):t.return(e.g.h)}))}(i),2)}return f?(Yy(e),Hy(s,r,u,a),w(S,o.updateManifest(n,r),0)):S.u(0)}))},p=!1,S(T,2),!$y(s)||!p||zy(s)){T.u(4);break}return w(T,f(t.filter((function(e){return e.h})),!0),5);case 5:return Yy(e),t=t.filter((function(e){return!e.h})),h=l,g=d,l={},d=0,w(T,Vy(o,n,r,h,g,(function(){return Yy(e)})),6);case 6:Yy(e);case 4:if(p){T.u(7);break}return w(T,f(t,!1),8);case 8:return Yy(e),v=l,m=d,l={},d=0,w(T,Vy(o,n,r,v,m,(function(){return Yy(e)})),9);case 9:Yy(e);case 7:k(T,0);break;case 2:return y=C(T),b=Object.values(l),w(T,o.removeSegments(b,(function(){})),10);case 10:throw y}}))}(e,R,p,L,s,o,f.Ma,g,l),20);case 20:return Yy(e),Hy(g,L,l,o),w(j,f.Ma.updateManifest(p,L),21);case 21:return Yy(e),O=new Sy("manifest",f.path.rb,f.path.Ma,p),j.return(Dy(O,L));case 3:return A(j),w(j,d.destroy(),22);case 22:if(!u){j.u(23);break}return w(j,u.stop(),23);case 23:if(!l){j.u(25);break}return w(j,l.destroy(),25);case 25:E(j,0);break;case 2:if(U=C(j),null==p){j.u(27);break}return w(j,By(p),27);case 27:throw h||U}}))}(this,e,t||{},r||[],i||[],(function(){var t;return D((function(r){return 1==r.g?n?r.u(2):w(r,kc(e,a.g,o.manifest.retryParameters),3):(2!=r.g&&(n=r.h),t=co(e,n||null),r.return(t()))}))}),o,s),(t=new Hi(t,(function(){return Zm(s)}))).finally((function(){Ie(a.j,s)})),function(e,t){var n=t.promise;return e.i.push(n),t.finally((function(){Ie(e.i,n)}))}(this,t)},r.remove=function(e){return Zy(this,function(e,t){var n,r,i,a,o,s;return D((function(u){switch(u.g){case 1:if(Jy(),null==(n=Ty(t))||"manifest"!=n.g)throw new Pe(2,9,9004,t);return r=n,i=new ly,T(u,2),w(u,i.init(),4);case 4:return w(u,fy(i,r.rb(),r.Ma()),5);case 5:return w(u,(a=u.h).getManifests([r.key()]),6);case 6:return o=u.h,s=o[0],w(u,Promise.all([Ky(e,s,i),Gy(a,r,s)]),2);case 2:return A(u),w(u,i.destroy(),8);case 8:E(u,0)}}))}(this,e))},r.Pi=function(){return Zy(this,function(e){var t,n,r,i,a,o,s,u,l,d;return D((function(f){switch(f.g){case 1:return Jy(),t=e.g,n=e.h.drm,r=new ly,i=!1,T(f,2),w(f,r.init(),4);case 4:a=[],function(e,t){e.g.forEach((function(e){var t;t=e.getEmeSessionCell(),a.push(t)}))}(r),o=c(a),s=o.next();case 5:if(s.done){f.u(2);break}return w(f,(u=s.value).getAll(),8);case 8:return l=f.h,w(f,_y(n,t,l),9);case 9:return d=f.h,w(f,u.remove(d),10);case 10:d.length!=l.length&&(i=!0),s=o.next(),f.u(5);break;case 2:return A(f),w(f,r.destroy(),11);case 11:E(f,3);break;case 3:return f.return(!i)}}))}(this))},r.list=function(){return Zy(this,D((function(r){switch(r.g){case 1:return Jy(),e=[],t=new ly,T(r,2),w(r,t.init(),4);case 4:return n=Promise.resolve(),function(e,t){e.g.forEach((function(e,n){e.getCells().forEach((function(e,r){t({rb:n,Ma:r},e)}))}))}(t,(function(t,r){n=n.then((function(){return D((function(n){if(1==n.g)return w(n,r.getAllManifests(),2);n.h.forEach((function(n,r){n=Dy(new Sy("manifest",t.rb,t.Ma,r),n),e.push(n)})),x(n)}))}))})),w(r,n,2);case 2:return A(r),w(r,t.destroy(),6);case 6:E(r,3);break;case 3:return r.return(e)}})));var e,t,n},r.Ec=function(e,t,n){var r,i=this;return D((function(a){return 1==a.g?((r=new Ra({Ob:i.g,onError:t,ee:function(){},onExpirationUpdated:function(){},onEvent:function(){}})).configure(n.drm),w(a,function(e,t,n){return e.fa=!0,e.B=new Map,e.M=n,Oa(e,t)}(r,e.variants,n.offline.usePersistentLicense),2)):3!=a.g?w(a,ja(r),3):a.return(r)}))},B("shaka.offline.Storage",jy),jy.deleteAll=function(){var e;return D((function(t){return 1==t.g?(e=new ly,T(t,2),w(t,function(e){var t,n;return D((function(r){return 1==r.g?(t=Array.from(e.g.values()),(n=0=t?e.MediaSource=null:12>=t?(Cb(),Ab()):15>=t&&Cb():at("DT_STB_BCM")?(Cb(),Ab()):at("Tizen 2")||Ke()||at("Tizen 4")?function(){var t=MediaSource.isTypeSupported.bind(MediaSource);if(MediaSource.isTypeSupported=function(e){return"opus"!=Mr(e)&&t(e)},e.ManagedMediaSource){var n=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);e.ManagedMediaSource.isTypeSupported=function(e){return"opus"!=Mr(e)&&n(e)}}}():at("WPE")&&(Cb(),Ab())),(e.MediaSource||e.ManagedMediaSource)&&function(){if(e.MediaSource){var t=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(e){return"mp2t"!=Er(e)&&t(e)}}if(e.ManagedMediaSource){var n=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);e.ManagedMediaSource.isTypeSupported=function(e){return"mp2t"!=Er(e)&&n(e)}}}(),e.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&function(){var e=MediaSource.isTypeSupported;Ge()||(MediaSource.isTypeSupported=function(t){var n=t.split(/ *; */),r=n.findIndex((function(e){return e.startsWith("codecs=")}));if(0>r)return e(t);var i=n[r].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),a=i.findIndex((function(e){return e.startsWith("vp09")}));return 0<=a&&(i[a]="vp9",n[r]='codecs="'+i.join(",")+'"',t=n.join("; ")),e(t)})}()}function Cb(){var e=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var t=e.apply(this,L.apply(0,arguments));return t.abort=function(){},t}}function Ab(){var e=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(t,n){return e.call(this,t,n-.001)}}function Eb(){}function Ib(){screen.orientation&&screen.orientation.unlock||(null!=screen.orientation?(void 0===screen.orientation.lock&&(screen.orientation.lock=function(){return Promise.resolve()}),void 0===screen.orientation.unlock&&(screen.orientation.unlock=function(){})):null!=e.orientation&&function(){function t(){switch(e.orientation){case-90:n.type="landscape-secondary",n.angle=270;break;case 0:n.type="portrait-primary",n.angle=0;break;case 90:n.type="landscape-primary",n.angle=90;break;case 180:n.type="portrait-secondary",n.angle=180}}var n=new Mb;screen.orientation=n,t(),e.addEventListener("orientationchange",(function(){t();var e=new Yi("change");n.dispatchEvent(e)}))}())}function Mb(){Qi.call(this),this.type="",this.angle=0}function _b(){}function Pb(e,t){try{var n=new Rb(e,t);return Promise.resolve(n)}catch(e){return Promise.reject(e)}}function Db(e){var t=this.mediaKeys;return t&&t!=e&&Ob(t,null),delete this.mediaKeys,(this.mediaKeys=e)?Ob(e,this):Promise.resolve()}function Lb(e){if(ye(e=ve(e.initData)).getUint32(0,!0)+4!=e.byteLength)throw new RangeError("Malformed FairPlay init data");e=gt(e=pt(e.subarray(4),!0));var t=new Event("encrypted");t.initDataType="skd",t.initData=ge(e),this.dispatchEvent(t)}function Rb(e,t){if(this.keySystem=e,e.startsWith("com.apple.fps"))for(t=(e=c(t)).next();!t.done;t=e.next()){var n=t.value;if("required"==n.persistentState)t=null;else{t={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:n.initDataTypes,sessionTypes:["temporary"],label:n.label};var r=!1,i=!1;if(n.audioCapabilities)for(var a=c(n.audioCapabilities),o=a.next();!o.done;o=a.next())(o=o.value).contentType&&(r=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,o.contentType.split(";")[0])&&(t.audioCapabilities.push(o),i=!0));if(n.videoCapabilities)for(a=(n=c(n.videoCapabilities)).next();!a.done;a=n.next())(a=a.value).contentType&&(r=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,a.contentType.split(";")[0])&&(t.videoCapabilities.push(a),i=!0));r||(i=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4")),t=i?t:null}if(t)return void(this.g=t)}throw(e=Error("Unsupported keySystem")).name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,e}function Nb(e){this.h=new WebKitMediaKeys(e),this.g=new Q}function Ob(e,t){if(e.g.Va(),!t)return Promise.resolve();e.g.D(t,"webkitneedkey",Lb);try{return Fs(t,HTMLMediaElement.HAVE_METADATA,e.g,(function(){t.webkitSetMediaKeys(e.h)})),Promise.resolve()}catch(e){return Promise.reject(e)}}function Ub(e){Qi.call(this),this.i=null,this.l=e,this.g=this.h=null,this.j=new Q,this.sessionId="",this.expiration=NaN,this.closed=new zi,this.keyStatuses=new Fb}function jb(e,t){var n=e.keyStatuses;n.size=null==t?0:1,n.g=t,t=new Yi("keystatuseschange"),e.dispatchEvent(t)}function Fb(){this.size=0,this.g=void 0}fb.memoizedCanDisplayTypeRequests_=Sb,nb(pb,-1),tb.MediaSource=Tb,Tb.install=kb,nb(kb),tb.Orientation=Eb,Eb.install=Ib,v(Mb,Qi),Mb.prototype.lock=function(e){function t(e){return screen.lockOrientation?screen.lockOrientation(e):screen.mozLockOrientation?screen.mozLockOrientation(e):!!screen.msLockOrientation&&screen.msLockOrientation(e)}var n=!1;switch(e){case"natural":n=t("default");break;case"any":n=!0,this.unlock();break;default:n=t(e)}return n?Promise.resolve():((e=Error("screen.orientation.lock() is not available on this device")).name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,Promise.reject(e))},Mb.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()},nb(Ib),tb.PatchedMediaKeysApple=_b,_b.uninstall=function(){vb&&(vb=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",mb),HTMLMediaElement.prototype.setMediaKeys=yb,e.MediaKeys=bb,e.MediaKeySystemAccess=wb,navigator.requestMediaKeySystemAccess=xb,mb=xb=yb=wb=bb=null,e.shakaMediaKeysPolyfill="")},_b.install=function(t){e.HTMLVideoElement&&e.WebKitMediaKeys&&(void 0!==t&&t&&(vb=!0,mb=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),yb=HTMLMediaElement.prototype.setMediaKeys,bb=e.MediaKeys,wb=e.MediaKeySystemAccess,xb=navigator.requestMediaKeySystemAccess),delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Db,e.MediaKeys=Nb,e.MediaKeySystemAccess=Rb,navigator.requestMediaKeySystemAccess=Pb,e.shakaMediaKeysPolyfill=Bb)},Rb.prototype.createMediaKeys=function(){var e=new Nb(this.keySystem);return Promise.resolve(e)},Rb.prototype.getConfiguration=function(){return this.g},Nb.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary"))throw new TypeError("Session type "+e+" is unsupported on this platform.");return new Ub(this.h,e)},Nb.prototype.setServerCertificate=function(){return Promise.resolve(!1)},Nb.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")},v(Ub,Qi),(r=Ub.prototype).generateRequest=function(e,t){var n=this;this.h=new zi;try{var r=this.l.createSession("video/mp4",ve(t));this.i=r,this.sessionId=r.sessionId||"",this.j.D(this.i,"webkitkeymessage",(function(e){n.h&&(n.h.resolve(),n.h=null),e=new Yi("message",e=(new Map).set("messageType",null==n.keyStatuses.ac()?"license-request":"license-renewal").set("message",ge(e.message))),n.dispatchEvent(e)})),this.j.D(r,"webkitkeyadded",(function(){n.g&&(jb(n,"usable"),n.g.resolve(),n.g=null)})),this.j.D(r,"webkitkeyerror",(function(){var e=Error("EME PatchedMediaKeysApple key error");if(e.errorCode=n.i.error,null!=n.h)n.h.reject(e),n.h=null;else if(null!=n.g)n.g.reject(e),n.g=null;else switch(n.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:jb(n,"output-not-allowed");break;default:jb(n,"internal-error")}})),jb(this,"status-pending")}catch(e){this.h.reject(e)}return this.h},r.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))},r.update=function(e){this.g=new zi;try{this.i.update(ve(e))}catch(e){this.g.reject(e)}return this.g},r.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Va()}catch(e){this.closed.reject(e)}return this.closed},r.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))},(r=Fb.prototype).ac=function(){return this.g},r.forEach=function(e){this.g&&e(this.g,Ue.value())},r.get=function(e){if(this.has(e))return this.g},r.has=function(e){var t=Ue.value();return!(!this.g||!pe(e,t))},r.entries=function(){},r.keys=function(){},r.values=function(){};var Bb="apple";function Vb(){}function $b(){e.MediaKeys&&(!MediaKeys.prototype.setServerCertificate||Ke()||at("Tizen 4")||at("Tizen 5.0")||Ge()&&38===We())&&(MediaKeys.prototype.setServerCertificate=zb)}function zb(){return Promise.resolve(!1)}function Hb(){}function qb(){!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=Kb,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Gb,e.MediaKeys=Xb,e.MediaKeySystemAccess=Wb,e.shakaMediaKeysPolyfill=Yb)}function Kb(){return Promise.reject(Error("The key system specified is not supported."))}function Gb(e){return null==e?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}function Xb(){throw new TypeError("Illegal constructor.")}function Wb(){throw this.keySystem="",new TypeError("Illegal constructor.")}tb.PatchedMediaKeysCert=Vb,Vb.install=$b,nb($b),tb.PatchedMediaKeysNop=Hb,Hb.install=qb,Xb.prototype.createSession=function(){},Xb.prototype.setServerCertificate=function(){},Xb.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")},Wb.prototype.getConfiguration=function(){},Wb.prototype.createMediaKeys=function(){};var Yb="nop";function Jb(){}function Zb(){if(!(!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)dw="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=ew,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=tw,e.MediaKeys=rw,e.MediaKeySystemAccess=nw,e.shakaMediaKeysPolyfill=fw}}function Qb(e){return dw?dw+e.charAt(0).toUpperCase()+e.slice(1):e}function ew(e,t){try{var n=new nw(e,t);return Promise.resolve(n)}catch(e){return Promise.reject(e)}}function tw(e){var t=this.mediaKeys;return t&&t!=e&&iw(t,null),delete this.mediaKeys,(this.mediaKeys=e)&&iw(e,this),Promise.resolve()}function nw(e,t){this.g=this.keySystem=e;var n=!1;"org.w3.clearkey"==e&&(this.g="webkit-org.w3.clearkey",n=!1);var r=!1,i=document.getElementsByTagName("video");i=i.length?i[0]:document.createElement("video");for(var a=(t=c(t)).next();!a.done;a=t.next()){var o={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:(a=a.value).initDataTypes,sessionTypes:["temporary"],label:a.label},s=!1;if(a.audioCapabilities)for(var u=c(a.audioCapabilities),l=u.next();!l.done;l=u.next())(l=l.value).contentType&&(s=!0,i.canPlayType(l.contentType.split(";")[0],this.g)&&(o.audioCapabilities.push(l),r=!0));if(a.videoCapabilities)for(l=(u=c(a.videoCapabilities)).next();!l.done;l=u.next())(l=l.value).contentType&&(s=!0,i.canPlayType(l.contentType,this.g)&&(o.videoCapabilities.push(l),r=!0));if(s||(r=i.canPlayType("video/mp4",this.g)||i.canPlayType("video/webm",this.g)),"required"==a.persistentState&&(n?(o.persistentState="required",o.sessionTypes=["persistent-license"]):r=!1),r)return void(this.h=o)}throw n="Unsupported keySystem","org.w3.clearkey"!=e&&"com.widevine.alpha"!=e||(n="None of the requested configurations were supported."),(e=Error(n)).name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,e}function rw(e){this.l=e,this.h=null,this.g=new Q,this.i=[],this.j=new Map}function iw(e,t){e.h=t,e.g.Va();var n=dw;t&&(e.g.D(t,n+"needkey",(function(t){var n=new CustomEvent("encrypted");n.initDataType="cenc",n.initData=ge(t.initData),e.h.dispatchEvent(n)})),e.g.D(t,n+"keymessage",(function(t){var n=aw(e,t.sessionId);n&&(t=new Yi("message",t=(new Map).set("messageType",null==n.keyStatuses.ac()?"licenserequest":"licenserenewal").set("message",t.message)),n.h&&(n.h.resolve(),n.h=null),n.dispatchEvent(t))})),e.g.D(t,n+"keyadded",(function(t){(t=aw(e,t.sessionId))&&t.ready()})),e.g.D(t,n+"keyerror",(function(t){var n=aw(e,t.sessionId);if(n){var r=Error("EME v0.1b key error"),i=t.errorCode;i.systemCode=t.systemCode,r.errorCode=i,!t.sessionId&&n.h?(45==t.systemCode&&(r.message="Unsupported session type."),n.h.reject(r),n.h=null):t.sessionId&&n.g?(n.g.reject(r),n.g=null):(r=t.systemCode,t.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?cw(n,"output-restricted"):cw(n,1==r?"expired":"internal-error"))}})))}function aw(e,t){var n=e.j.get(t);return n||((n=e.i.shift())?(n.sessionId=t,e.j.set(t,n),n):null)}function ow(e,t,n){Qi.call(this),this.j=e,this.m=!1,this.g=this.h=null,this.i=t,this.l=n,this.sessionId="",this.expiration=NaN,this.closed=new zi,this.keyStatuses=new lw}function sw(e,t,n){if(e.m)return Promise.reject(Error("The session is already initialized."));e.m=!0;try{if("persistent-license"==e.l)if(n)var r=ve(gt("LOAD_SESSION|"+n));else{var i=gt("PERSISTENT|");r=dr(i,t)}else r=ve(t)}catch(e){return Promise.reject(e)}e.h=new zi;var a=Qb("generateKeyRequest");try{e.j[a](e.i,r)}catch(t){if("InvalidStateError"!=t.name)return e.h=null,Promise.reject(t);new Be((function(){try{e.j[a](e.i,r)}catch(t){e.h.reject(t),e.h=null}})).Z(.01)}return e.h}function uw(e,t,n){if(e.g)e.g.then((function(){return uw(e,t,n)})).catch((function(){return uw(e,t,n)}));else{if(e.g=t,"webkit-org.w3.clearkey"==e.i){var r=ft(n),i=JSON.parse(r);"oct"!=i.keys[0].kty&&(e.g.reject(Error("Response is not a valid JSON Web Key Set.")),e.g=null),r=ur(i.keys[0].k),i=ur(i.keys[0].kid)}else r=ve(n),i=null;var a=Qb("addKey");try{e.j[a](e.i,r,i,e.sessionId)}catch(t){e.g.reject(t),e.g=null}}}function cw(e,t){var n=e.keyStatuses;n.size=null==t?0:1,n.g=t,t=new Yi("keystatuseschange"),e.dispatchEvent(t)}function lw(){this.size=0,this.g=void 0}nb(qb,-10),tb.PatchedMediaKeysWebkit=Jb,Jb.install=Zb,nw.prototype.createMediaKeys=function(){var e=new rw(this.g);return Promise.resolve(e)},nw.prototype.getConfiguration=function(){return this.h},rw.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary")&&"persistent-license"!=e)throw new TypeError("Session type "+e+" is unsupported on this platform.");var t=this.h||document.createElement("video");return t.src||(t.src="about:blank"),e=new ow(t,this.l,e),this.i.push(e),e},rw.prototype.setServerCertificate=function(){return Promise.resolve(!1)},rw.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")},v(ow,Qi),(r=ow.prototype).ready=function(){cw(this,"usable"),this.g&&this.g.resolve(),this.g=null},r.generateRequest=function(e,t){return sw(this,t,null)},r.load=function(e){return"persistent-license"==this.l?sw(this,null,e):Promise.reject(Error("Not a persistent session."))},r.update=function(e){var t=new zi;return uw(this,t,e),t},r.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var e=Qb("cancelKeyRequest");try{this.j[e](this.i,this.sessionId)}catch(e){}}return this.closed.resolve(),this.closed},r.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()},(r=lw.prototype).ac=function(){return this.g},r.forEach=function(e){this.g&&e(this.g,Ue.value())},r.get=function(e){if(this.has(e))return this.g},r.has=function(e){var t=Ue.value();return!(!this.g||!pe(e,t))},r.entries=function(){},r.keys=function(){},r.values=function(){};var dw="",fw="webkit";function pw(){}function hw(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;t.requestPictureInPicture&&document.exitPictureInPicture||!t.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,t.requestPictureInPicture=vw,Object.defineProperty(t,"disablePictureInPicture",{get:yw,set:bw,enumerable:!0,configurable:!0}),document.exitPictureInPicture=mw,document.addEventListener("webkitpresentationmodechanged",gw,!0))}}function gw(e){if("picture-in-picture"==(e=e.target).webkitPresentationMode){document.pictureInPictureElement=e;var t=new Event("enterpictureinpicture");e.dispatchEvent(t)}else document.pictureInPictureElement==e&&(document.pictureInPictureElement=null),t=new Event("leavepictureinpicture"),e.dispatchEvent(t)}function vw(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function mw(){var e=document.pictureInPictureElement;return e?(e.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}function yw(){return!!this.hasAttribute("disablePictureInPicture")||!this.webkitSupportsPresentationMode("picture-in-picture")}function bw(e){e?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}function ww(){}function xw(){e.crypto&&("randomUUID"in e.crypto||(e.crypto.randomUUID=Sw))}function Sw(){var e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.substr(t.lastIndexOf("/")+1)}function Tw(){}function kw(){var e=Symbol.prototype;"description"in e||Object.defineProperty(e,"description",{get:Cw})}function Cw(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}function Aw(){}function Ew(){if(e.HTMLMediaElement){var t=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var e=t.apply(this);return e&&e.catch((function(){})),e}}}function Iw(){}function Mw(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;!t.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in t||Ge()&&38===We())&&(t.getVideoPlaybackQuality=_w)}}function _w(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}function Pw(){}function Dw(){if(!e.VTTCue&&e.TextTrackCue){var t=null,n=TextTrackCue.length;if(3==n)t=Lw;else if(6==n)t=Rw;else{try{var r=!!Lw(1,2,"")}catch(e){r=!1}r&&(t=Lw)}t&&(e.VTTCue=function(e,n,r){return t(e,n,r)})}}function Lw(t,n,r){return new e.TextTrackCue(t,n,r)}function Rw(t,n,r){return new e.TextTrackCue(t+"-"+n+"-"+r,t,n,r)}function Nw(){}nb(Zb),tb.PiPWebkit=pw,pw.install=hw,nb(hw),tb.RandomUUID=ww,ww.install=xw,nb(xw),tb.Symbol=Tw,Tw.install=kw,nb(kw),tb.VideoPlayPromise=Aw,Aw.install=Ew,nb(Ew),tb.VideoPlaybackQuality=Iw,Iw.install=Mw,nb(Mw),tb.VTTCue=Pw,Pw.install=Dw,nb(Dw),Nw.prototype.parseInit=function(){},Nw.prototype.setSequenceMode=function(){},Nw.prototype.setManifestType=function(){},Nw.prototype.parseMedia=function(e,t){for(var n=null,r=[],i=(e=c(e=ft(e).split(/\r?\n/))).next();!i.done;i=e.next())if((i=i.value)&&!/^\s+$/.test(i)&&(i=Ow.exec(i))){var a=Uw.exec(i[1]);i=new un(a=60*parseInt(a[1],10)+parseFloat(a[2].replace(",",".")),t.segmentEnd?t.segmentEnd:a+2,i[2]),n&&(n.endTime=a,r.push(n)),n=i}return n&&r.push(n),r},B("shaka.text.LrcTextParser",Nw),Nw.prototype.parseMedia=Nw.prototype.parseMedia,Nw.prototype.setManifestType=Nw.prototype.setManifestType,Nw.prototype.setSequenceMode=Nw.prototype.setSequenceMode,Nw.prototype.parseInit=Nw.prototype.parseInit;var Ow=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,Uw=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;function jw(){}function Fw(e,t,n,r,i,a,o,s,u,l,d,f,p){var h=l;if(Dt(e)){if(!d)return null;var g={tagName:"span",children:[Nt(e)],attributes:{},parent:null}}else g=e;for(var v=null,m=c(px),y=m.next();!y.done&&!(v=Gw(g,"backgroundImage",r,"#",y.value)[0]);y=m.next());m=null;var b=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9]+)$/;if((y=zt(g,px,"backgroundImage"))&&b.test(y)){if((m=parseInt(y.split(":").pop(),10)-1)>=p.length)return null;m=p[m]}else f&&y&&!y.startsWith("#")&&(b=new zn(f),y=new zn(y),(y=b.resolve(y).toString())&&(m=y));if(("p"==e.tagName||v||m)&&(d=!0),e=d,y="default"==(g.attributes["xml:space"]||(s?"default":"preserve")),s=[],!(b=g.children.every(Dt)))for(var w=c(g.children),x=w.next();!x.done;x=w.next())(x=Fw(x.value,t,n,r,i,a,o,y,u,g,d,f,p))&&s.push(x);if(r=null!=l,f=Nt(g),f=g.children.length&&f&&/\S/.test(f),!((w=g.attributes.begin||g.attributes.end||g.attributes.dur)||f||"br"==g.tagName||0!=s.length||r&&!y))return null;for(f=(p=Ww(g,n)).start,p=p.end;h&&h.tagName&&"tt"!=h.tagName;)f=(p=Xw(h,n,f,p)).start,p=p.end,h=h.parent;if(null==f&&(f=0),f+=t.periodStart,p=null==p?1/0:p+t.periodStart,f=Math.max(f,t.segmentStart),p=Math.min(p,t.segmentEnd),!w&&0n.length)return a;var o=e;for(e=null;!e&&!(e=i?Vt(o,i,t):o.attributes[t])&&(o=o.parent););if(t=e)for(i=(t=c(t.split(" "))).next();!i.done;i=t.next())for(i=i.value,o=(e=c(n)).next();!o.done;o=e.next())if(r+(o=o.value).attributes["xml:id"]==i){a.push(o);break}return a}function Xw(e,t,n,r){return e=Ww(e,t),null==n?n=e.start:null!=e.start&&(n+=e.start),null==r?r=e.end:null!=e.start&&(r+=e.start),{start:n,end:r}}function Ww(e,t){var n=Yw(e.attributes.begin,t),r=Yw(e.attributes.end,t);return e=Yw(e.attributes.dur,t),null==r&&null!=e&&(r=n+e),{start:n,end:r}}function Yw(e,t){var n=null;if(rx.test(e)){e=rx.exec(e),n=Number(e[1]);var r=Number(e[2]),i=Number(e[3]),a=Number(e[4]);n=(i+=(a+=(Number(e[5])||0)/t.h)/t.frameRate)+60*r+3600*n}else if(ix.test(e))n=Jw(ix,e);else if(ax.test(e))n=Jw(ax,e);else if(ox.test(e))e=ox.exec(e),n=Number(e[1])/t.frameRate;else if(sx.test(e))e=sx.exec(e),n=Number(e[1])/t.g;else if(ux.test(e))n=Jw(ux,e);else if(e)throw new Pe(2,2,2001,"Could not parse cue time range in TTML");return n}function Jw(e,t){return null==(e=e.exec(t))||""==e[0]?null:(Number(e[4])||0)/1e3+(Number(e[3])||0)+60*(Number(e[2])||0)+3600*(Number(e[1])||0)}function Zw(e,t,n,r){this.frameRate=Number(e)||30,this.h=Number(t)||1,this.g=Number(r),0==this.g&&(this.g=e?this.frameRate*this.h:1),n&&(e=/^(\d+) (\d+)$/g.exec(n))&&(this.frameRate*=Number(e[1])/Number(e[2]))}Br["application/x-subtitle-lrc"]=function(){return new Nw},jw.prototype.parseInit=function(){},jw.prototype.setSequenceMode=function(){},jw.prototype.setManifestType=function(){},jw.prototype.parseMedia=function(e,t,n,r){var i=ft(e);if(e=[],""==i)return e;var a=_t(i,"tt",!0);if(!a)throw new Pe(2,2,2005,"Failed to parse TTML.");if(!(i=Ut(a,"body")[0]))return[];var o=zt(a,dx,"frameRate"),s=zt(a,dx,"subFrameRate"),u=zt(a,dx,"frameRateMultiplier"),l=zt(a,dx,"tickRate"),d=zt(a,dx,"cellResolution"),f=a.attributes["xml:space"]||"default",p=zt(a,fx,"extent");if("default"!=f&&"preserve"!=f)throw new Pe(2,2,2005,"Invalid xml:space value: "+f);f="default"==f,o=new Zw(o,s,u,l),d=function(e){return e&&(e=/^(\d+) (\d+)$/.exec(e))?{lc:parseInt(e[1],10),rows:parseInt(e[2],10)}:null}(d),s=((s=Ut(a,"metadata")[0])?s.children:[]).filter((function(e){return"\n"!=e})),u=Ut(a,"style"),l=[];for(var h=c(a=Ut(a,"region")),g=h.next();!g.done;g=h.next())(g=Bw(g.value,u,p))&&l.push(g);if(Rt(i,"p").length)throw new Pe(2,2,2001,"

can only be inside

in TTML");for(h=(p=c(Rt(i,"div"))).next();!h.done;h=p.next())if(Rt(h.value,"span").length)throw new Pe(2,2,2001," can only be inside

in TTML");return(t=Fw(i,t,o,s,u,a,l,f,d,null,!1,n,r))&&(t.backgroundColor||(t.backgroundColor="transparent"),e.push(t)),e},B("shaka.text.TtmlTextParser",jw),jw.prototype.parseMedia=jw.prototype.parseMedia,jw.prototype.setManifestType=jw.prototype.setManifestType,jw.prototype.setSequenceMode=jw.prototype.setSequenceMode,jw.prototype.parseInit=jw.prototype.parseInit;var Qw=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,ex=/^(\d{1,4}(?:\.\d+)?|100)%$/,tx=/^(\d+px|\d+em|\d*\.?\d+c)$/,nx=/^(\d+)px (\d+)px$/,rx=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,ix=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,ax=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d+)$/,ox=/^(\d*(?:\.\d*)?)f$/,sx=/^(\d*(?:\.\d*)?)t$/,ux=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),cx={left:Tn,center:"center",right:"end",start:Tn,end:"end"},lx={left:"line-left",center:"center",right:"line-right"},dx=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],fx=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],px=["https://web.archive.org/web/20241212195116/http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","https://web.archive.org/web/20241212195116/http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];function hx(){this.g=new jw}function gx(){this.g="UNKNOWN"}function vx(e,t,n){var r;(r=/^align:(start|middle|center|end|left|right)$/.exec(t))?(t=r[1],e.textAlign="middle"==t?vn:mn[t.toUpperCase()]):(r=/^vertical:(lr|rl)$/.exec(t))?e.writingMode="lr"==r[1]?"vertical-lr":"vertical-rl":(r=/^size:([\d.]+)%$/.exec(t))?e.size=Number(r[1]):(r=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/.exec(t))?(e.position=Number(r[1]),r[2]&&(t=r[2],e.positionAlign="line-left"==t||"start"==t?"line-left":"line-right"==t||"end"==t?"line-right":"center"==t||"middle"==t?"center":gn)):(r=/^region:(.*)$/.exec(t))?(t=function(e,t){return e=e.filter((function(e){return e.id==t})),e.length?e[0]:null}(n,r[1]))&&(e.region=t):(n=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(t))?(e.lineInterpretation=1,e.line=Number(n[1]),n[2]&&(e.lineAlign=kn[n[2].toUpperCase()])):(n=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(t))&&(e.lineInterpretation=Sn,e.line=Number(n[1]),n[2]&&(e.lineAlign=kn[n[2].toUpperCase()]))}function mx(){this.g=null}function yx(e,t,n){var r,i,a;return(new xa).box("payl",Aa((function(e){r=ft(e)}))).box("iden",Aa((function(e){i=ft(e)}))).box("sttg",Aa((function(e){a=ft(e)}))).parse(e),r?function(e,t,n,r,i){if(dn(e=new un(r,i,e)),t&&(e.id=t),n)for(n=Tt(t=new wt(n));n;)vx(e,n,[]),xt(t),n=Tt(t);return e}(r,i,a,t,n):null}function bx(){}function wx(){this.g=new gx}function xx(e){var t="WEBVTT\n\n";if(""==e)return t;for(var n=(e=c((e=(e=e.replace(/\r+/g,"")).trim()).split("\n\n"))).next();!n.done;n=e.next())(n=n.value.split(/\n/))[0].match(/\d+/)&&n.shift(),n[0]=n[0].replace(/,/g,"."),t+=n.join("\n").replace(/{b}/g,"").replace(/{\/b}/g,"").replace(/{i}/g,"").replace(/{\/i}/g,"").replace(/{u}/g,"").replace(/{\/u}/g,"")+"\n\n";return t}function Sx(){}function Tx(e,t){var n=t.Fontname;if(n&&(e.fontFamily=n),(n=t.Fontsize)&&(e.fontSize=n+"px"),(n=t.PrimaryColour)&&(n=kx(n))&&(e.color=n),(n=t.BackColour)&&(n=kx(n))&&(e.backgroundColor=n),t.Bold&&(e.fontWeight=In),t.Italic&&(e.fontStyle=_n),t.Underline&&e.textDecoration.push(Dn),(n=t.Spacing)&&(e.letterSpacing=n+"px"),n=t.Alignment)switch(parseInt(n,10)){case 1:e.displayAlign=yn,e.textAlign="start";break;case 2:e.displayAlign=yn,e.textAlign=vn;break;case 3:e.displayAlign=yn,e.textAlign="end";break;case 5:e.displayAlign="before",e.textAlign="start";break;case 6:e.displayAlign="before",e.textAlign=vn;break;case 7:e.displayAlign="before",e.textAlign="end";break;case 9:e.displayAlign="center",e.textAlign="start";break;case 10:e.displayAlign="center",e.textAlign=vn;break;case 11:e.displayAlign="center",e.textAlign="end"}(t=t.AlphaLevel)&&(e.opacity=parseFloat(t))}function kx(e){return 0<=(e=parseInt(e.replace("&H",""),16))?"rgba("+(255&e)+","+(e>>8&255)+","+(e>>16&255)+","+(e>>24&255^255)/255+")":null}function Cx(e){return 3600*((e=Mx.exec(e))[1]?parseInt(e[1].replace(":",""),10):0)+60*parseInt(e[2],10)+parseFloat(e[3])}Br["application/ttml+xml"]=function(){return new jw},hx.prototype.parseInit=function(e){var t=!1;if((new xa).box("moov",Sa).box("trak",Sa).box("mdia",Sa).box("minf",Sa).box("stbl",Sa).R("stsd",Ta).box("stpp",(function(e){t=!0,e.parser.stop()})).parse(e),!t)throw new Pe(2,2,2007)},hx.prototype.setSequenceMode=function(){},hx.prototype.setManifestType=function(){},hx.prototype.parseMedia=function(e,t,n){var r=this,i=!1,a=[],o=[];if((new xa).box("moof",Sa).box("traf",Sa).R("subs",(function(e){o=[];for(var t=e.reader,n=t.P(),r=0;r>>5)-n)?{Rd:n,ea:e}:null}function Px(e,t){var n=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],r=(60&e[t+2])>>>2;if(r>n.length-1)return null;var i=1+((192&e[t+2])>>>6),a=(1&e[t+2])<<2;return a|=(192&e[t+3])>>>6,{sampleRate:n[r],channelCount:a,codec:"mp4a.40."+i}}function Dx(e,t){if(t+1=e.length)return!1;var r=(3&e[t+3])<<11|e[t+4]<<3|(224&e[t+5])>>>5;return!(r<=n)&&((t+=r)===e.length||t+1e.length||11!==e[t]||119!==e[t+1])return null;var n=e[t+4]>>6;if(3<=n)return null;var r=63&e[t+4],i=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*r+n];if(t+i>e.length)return null;var a=e[t+6]>>5,o=0;2===a?o+=2:(1&a&&1!==a&&(o+=2),4&a&&(o+=2)),o=(e[t+6]<<8|e[t+7])>>12-o&1;var s=7&e[t+5];return e=new Uint8Array([n<<6|e[t+5]>>3<<1|s>>2,(3&s)<<6|a<<3|o<<2|r>>4,r<<4&224]),{sampleRate:[48e3,44100,32e3][n],channelCount:[2,1,2,3,3,4,4,5][a]+o,pa:e,ea:i}}function Nx(e,t){if(11===e[t]&&119===e[t+1]){var n,r,i=0,a=5;for(t+=a;0>>24+s<>s,i=i?i<i)return!0}return!1}function Ox(e){this.i=e,this.h=0,this.g=new Map}function Ux(e,t){if(t+8>e.length||2935!=(e[t]<<8|e[t+1]<<0))return null;var n=new Ho(e.subarray(t+2));Ko(n,2),Ko(n,3);var r=Go(n,11)+1<<1,i=Go(n,2);if(3==i){i=[24e3,22060,16e3][i=Go(n,2)];var a=3}else i=[48e3,44100,32e3][i],a=Go(n,2);var o=Go(n,3),s=Go(n,1);return n=Go(n,5),t+r>e.byteLength?null:(e=Math.floor(r*i/(16*[1,2,3,6][a])),e=new Uint8Array([(8160&e)>>5,(31&e)<<3,i<<6|n<<1|0,0|o<<1|s<<0,0]),{sampleRate:i,channelCount:[2,1,2,3,3,4,4,5][o]+s,pa:e,ea:r})}function jx(e){this.i=e,this.h=0,this.g=new Map}function Fx(e){for(var t=!1,n=[],r=e.find((function(e){return 7==e.type})),i=!1,a=(e=c(e)).next();!a.done;a=e.next()){var o=!1;switch((a=a.value).type){case 1:o=i=!0;var s=a.data;r&&4>24&255,s[1]=o>>16&255,s[2]=o>>8&255,s[3]=255&o,n.push(s),n.push(a.fullData))}return n.length?{data:dr.apply(ar,l(n)),ld:t}:null}Br["text/x-ssa"]=function(){return new Sx},(r=Lx.prototype).destroy=function(){this.g.clear()},r.isSupported=function(e){return"audio/aac"==e.toLowerCase().split(";")[0]&&ne(this.convertCodecs("audio",e))},r.convertCodecs=function(e,t){return"audio/aac"==t.toLowerCase().split(";")[0]?'audio/mp4; codecs="'+(Pr(t)||"mp4a.40.2")+'"':t},r.getOriginalMimeType=function(){return this.i},r.transmux=function(e,t,n,r){for(var i=ve(e),a=No(i),o=a.length;o>3&3,r=e[t+1]>>1&3,i=e[t+2]>>4&15,a=e[t+2]>>2&3;if(1!==n&&0!==i&&15!==i&&3!==a){var o=e[t+3]>>6;i=1e3*Hx[14*(3===n?3-r:3===r?3:4)+i-1],a=qx[3*(3===n?0:2===n?1:2)+a],n=Kx[n][r];var s=Gx[r],u=Math.floor(n*i/a+(e[t+2]>>1&1))*s,c=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);return(c=c?parseInt(c[1],10):0)&&87>=c&&2===r&&224e3<=i&&0===o&&(e[t+3]|=128),{sampleRate:a,channelCount:3===o?1:2,ea:u,Ti:8*n*s}}return null}function $x(e,t){return 255===e[t]&&224==(224&e[t+1])&&0!=(6&e[t+1])}function zx(e,t){if(t+1n;n++)this.usertype[n]!==Zx[n]&&(e=!1);e&&(this._parsing&&(this.type="sepiff"),t.call(this))}))}(this)}function Jx(e,t){for(var n=8,r=0;ri?16:64)}if(Wo(n),0===(r=Yo(n)))Yo(n);else if(1===r)for(Ko(n,1),Wo(n),Wo(n),r=Yo(n),i=0;i=p?(r=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][p-1],i=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][p-1]):255===p&&(r=Go(n,16),i=Go(n,16))}return n=(2-s)*(o+1)*16-2*d-2*f,a=16*(a+1)-2*u-2*c,u=[],t=t.fullData,u.push(t.byteLength>>>8&255),u.push(255&t.byteLength),u=u.concat.apply(u,l(t)),t=[],e=e.fullData,t.push(e.byteLength>>>8&255),t.push(255&e.byteLength),t=t.concat.apply(t,l(e)),{height:n,width:a,za:e=new Uint8Array([1,u[3],u[4],u[5],255,225].concat(u,[1],t)),Da:r,Fa:i}}(v);if(!T||null==g)throw new Pe(2,3,3018,n?n.N()[0]:null);t.height=T.height,t.width=T.width,p={id:t.id,type:"video",codecs:"avc1",encrypted:t.encrypted&&0>24&255,F[1]=j>>16&255,F[2]=j>>8&255,F[3]=255&j,D.push(F),D.push(O.fullData)}}var B,V=D.length?{data:dr.apply(ar,l(D)),ld:P}:null;if(V)null==C&&null!=M.dts&&(C=M.dts),B=I+1S;S++)Go(e,2);for(S=0;SA;A++)for(var E=0;E<(3===A?2:6);E++)if(Zo(e)){var I=Math.min(64,1<<4+(A<<1));1=I?(C=M[I-1],A=_[I-1]):255===I&&(C=Go(e,16),A=Go(e,16))),Zo(e)&&Zo(e),Zo(e)&&(Go(e,3),Zo(e),Zo(e)&&(Qo(e),Qo(e),Qo(e))),Zo(e)&&(Yo(e),Yo(e)),Zo(e),Zo(e),Zo(e),(I=Zo(e))&&(Yo(e),Yo(e),Yo(e),Yo(e)),Zo(e)&&(Go(e,32),Go(e,32),Zo(e)&&Yo(e),Zo(e)))for(_=!1,I=Zo(e),M=Zo(e),(I||M)&&((_=Zo(e))&&(Qo(e),Go(e,5),Zo(e),Go(e,5)),Go(e,4),Go(e,4),_&&Go(e,4),Go(e,5),Go(e,5),Go(e,5)),P=0;P<=a;P++){var L=!0;D=1,Zo(e)||(L=Zo(e));var R=!1;if(L?Yo(e):R=Zo(e),R||(D=Yo(e)+1),I){for(L=0;L>8,i[14]=255&r.ae,i[15]=252|3&r.Gf,i[16]=252|3&r.Ne,i[17]=248|7&r.Me,i[18]=248|7&r.Le,i[19]=0,i[20]=0,i[21]=(3&r.Pe)<<6|(7&r.Df)<<3|(r.$f?1:0)<<2|3,i[22]=3,i[23]=160,i[24]=0,i[25]=1,i[26]=(65280&e.byteLength)>>8,i[27]=(255&e.byteLength)>>0,i.set(e,28),i[23+(5+e.byteLength)]=161,i[e.byteLength+29]=0,i[e.byteLength+30]=1,i[e.byteLength+31]=(65280&t.byteLength)>>8,i[e.byteLength+32]=(255&t.byteLength)>>0,i.set(t,e.byteLength+33),i[23+(e.byteLength+10+t.byteLength)]=162,i[e.byteLength+10+t.byteLength+24]=0,i[e.byteLength+10+t.byteLength+25]=1,i[e.byteLength+10+t.byteLength+26]=(65280&n.byteLength)>>8,i[e.byteLength+10+t.byteLength+27]=(255&n.byteLength)>>0,i.set(n,e.byteLength+10+t.byteLength+28),i}(t.fullData,n.fullData,r.fullData,{Df:i.Df,$f:i.$f,hf:e.hf,jf:e.jf,bf:e.bf,gf:e.gf,cf:e.cf,df:e.df,ef:e.ef,ff:e.ff,We:e.We,Xe:e.Xe,Ye:e.Ye,Ze:e.Ze,$e:e.$e,af:e.af,Pe:e.Pe,ae:e.ae,Ne:e.Ne,Me:e.Me,Le:e.Le,Gf:a.Gf}),{height:e.height,width:e.width,za:t,Da:e.Vi,Fa:e.Ui}}(A);if(!$||null==C)throw new Pe(2,3,3018,n?n.N()[0]:null);t.height=$.height,t.width=$.width,p={id:t.id,type:"video",codecs:"hvc1",encrypted:t.encrypted&&0>>24&255,$e.sampleRate>>>17&255,$e.sampleRate>>>8&255,$e.sampleRate>>>0&255,0,0].concat(l(ze))),qe=$e.sampleRate,Ke=c(u.Xb()),Ge=Ke.next();!Ge.done;Ge=Ke.next()){var Xe=Ge.value,We=Xe.data;null==Ve&&null!==Xe.pts&&(Ve=Xe.pts);for(var Ye=0;Ye=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(document.cookie.split("; ")),i=r.next();!i.done;i=r.next()){var a=i.value.split("=");if(a[0]===e)return decodeURIComponent(a[1])}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return null},a=function(e,t,n){var r="".concat(e,"=").concat(t,";path=/");if(void 0!==n){var i=new Date(Date.now()+n);r+=";expires=".concat(i.toUTCString())}document.cookie=r},o=function(e){return e.type===n.CLICK_EVENT_TYPE},s=function(e){return e.which===n.ENTER_KEYCODE},u=function(e){return e.which===n.ESC_KEYCODE},c=function(e){return e.which===n.TAB_KEYCODE},l=function(e){return e.which===n.DOWN_KEYCODE},d=function(e){return e.which===n.UP_KEYCODE},f=["ms-Icon--expandoCollapsed","ms-Icon--expandoExpanded"],p="opened",h=function(e,t){for(var n=[],r=2;r{this.unsubscribe&&(this.unsubscribe!==t&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=e,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(e,t)),this.unsubscribe=t},this.host=e,void 0!==t.context){const e=t;this.context=e.context,this.callback=e.callback,this.subscribe=e.subscribe??!1}else this.context=t,this.callback=n,this.subscribe=r??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new C(this.context,this.t,this.subscribe))}}function E({context:e,subscribe:t}){return(n,r)=>{"object"==typeof r?r.addInitializer((function(){new A(this,{context:e,callback:e=>{n.set.call(this,e)},subscribe:t})})):n.constructor.addInitializer((n=>{new A(n,{context:e,callback:e=>{n[r]=e},subscribe:t})}))}}class I{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,t=!1){const n=t||!Object.is(e,this.o);this.o=e,n&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(const[e,{disposer:t}]of this.subscriptions)e(this.o,t)},void 0!==e&&(this.value=e)}addCallback(e,t,n){if(!n)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:t});const{disposer:r}=this.subscriptions.get(e);e(this.value,r)}clearCallbacks(){this.subscriptions.clear()}}class M extends Event{constructor(e){super("context-provider",{bubbles:!0,composed:!0}),this.context=e}}class _ extends I{constructor(e,t,n){super(void 0!==t.context?t.initialValue:n),this.onContextRequest=e=>{const t=e.composedPath()[0];e.context===this.context&&t!==this.host&&(e.stopPropagation(),this.addCallback(e.callback,t,e.subscribe))},this.onProviderRequest=e=>{const t=e.composedPath()[0];if(e.context!==this.context||t===this.host)return;const n=new Set;for(const[e,{consumerHost:t}]of this.subscriptions)n.has(e)||(n.add(e),t.dispatchEvent(new C(this.context,e,!0)));e.stopPropagation()},this.host=e,void 0!==t.context?this.context=t.context:this.context=t,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new M(this.context))}}var P=r(7046);const D=globalThis,L=D.ShadowRoot&&(void 0===D.ShadyCSS||D.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,R=Symbol(),N=new WeakMap;class O{constructor(e,t,n){if(this._$cssResult$=!0,n!==R)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(L&&void 0===e){const n=void 0!==t&&1===t.length;n&&(e=N.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&N.set(t,e))}return e}toString(){return this.cssText}}const U=e=>new O("string"==typeof e?e:e+"",void 0,R),j=(e,...t)=>{const n=1===e.length?e[0]:t.reduce(((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[r+1]),e[0]);return new O(n,e,R)},F=(e,t)=>{if(L)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const n of t){const t=document.createElement("style"),r=D.litNonce;void 0!==r&&t.setAttribute("nonce",r),t.textContent=n.cssText,e.appendChild(t)}},B=L?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return U(t)})(e):e,{is:V,defineProperty:z,getOwnPropertyDescriptor:H,getOwnPropertyNames:q,getOwnPropertySymbols:K,getPrototypeOf:G}=Object,X=globalThis,W=X.trustedTypes,Y=W?W.emptyScript:"",J=X.reactiveElementPolyfillSupport,Z=(e,t)=>e,Q={toAttribute(e,t){switch(t){case Boolean:e=e?Y:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},ee=(e,t)=>!V(e,t),te={attribute:!0,type:String,converter:Q,reflect:!1,hasChanged:ee};Symbol.metadata??=Symbol("metadata"),X.litPropertyMetadata??=new WeakMap;class ne extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=te){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const n=Symbol(),r=this.getPropertyDescriptor(e,n,t);void 0!==r&&z(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){const{get:r,set:i}=H(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return r?.call(this)},set(t){const a=r?.call(this);i.call(this,t),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??te}static _$Ei(){if(this.hasOwnProperty(Z("elementProperties")))return;const e=G(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Z("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Z("properties"))){const e=this.properties,t=[...q(e),...K(e)];for(const n of t)this.createProperty(n,e[n])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const n=this._$Eu(e,t);void 0!==n&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const e of n)t.unshift(B(e))}else void 0!==e&&t.push(B(e));return t}static _$Eu(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return F(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EC(e,t){const n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(void 0!==r&&!0===n.reflect){const i=(void 0!==n.converter?.toAttribute?n.converter:Q).toAttribute(t,n.type);this._$Em=e,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(e,t){const n=this.constructor,r=n._$Eh.get(e);if(void 0!==r&&this._$Em!==r){const e=n.getPropertyOptions(r),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:Q;this._$Em=r,this[r]=i.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,n){if(void 0!==e){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??ee)(this[e],t))return;this.P(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,n){this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,n]of e)!0!==n.wrapped||this._$AL.has(t)||void 0===this[t]||this.P(t,this[t],n)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach((e=>this._$EC(e,this[e]))),this._$EU()}updated(e){}firstUpdated(e){}}ne.elementStyles=[],ne.shadowRootOptions={mode:"open"},ne[Z("elementProperties")]=new Map,ne[Z("finalized")]=new Map,J?.({ReactiveElement:ne}),(X.reactiveElementVersions??=[]).push("2.0.4");const re=globalThis,ie=re.trustedTypes,ae=ie?ie.createPolicy("lit-html",{createHTML:e=>e}):void 0,oe="$lit$",se=`lit$${Math.random().toFixed(9).slice(2)}$`,ue="?"+se,ce=`<${ue}>`,le=document,de=()=>le.createComment(""),fe=e=>null===e||"object"!=typeof e&&"function"!=typeof e,pe=Array.isArray,he="[ \t\n\f\r]",ge=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ve=/-->/g,me=/>/g,ye=RegExp(`>|${he}(?:([^\\s"'>=/]+)(${he}*=${he}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),be=/'/g,we=/"/g,xe=/^(?:script|style|textarea|title)$/i,Se=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),Te=Se(1),ke=(Se(2),Se(3),Symbol.for("lit-noChange")),Ce=Symbol.for("lit-nothing"),Ae=new WeakMap,Ee=le.createTreeWalker(le,129);function Ie(e,t){if(!pe(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==ae?ae.createHTML(t):t}const Me=(e,t)=>{const n=e.length-1,r=[];let i,a=2===t?"":3===t?"":"",o=ge;for(let t=0;t"===u[0]?(o=i??ge,c=-1):void 0===u[1]?c=-2:(c=o.lastIndex-u[2].length,s=u[1],o=void 0===u[3]?ye:'"'===u[3]?we:be):o===we||o===be?o=ye:o===ve||o===me?o=ge:(o=ye,i=void 0);const d=o===ye&&e[t+1].startsWith("/>")?" ":"";a+=o===ge?n+ce:c>=0?(r.push(s),n.slice(0,c)+oe+n.slice(c)+se+d):n+se+(-2===c?t:d)}return[Ie(e,a+(e[n]||"")+(2===t?"":3===t?"":"")),r]};class _e{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let i=0,a=0;const o=e.length-1,s=this.parts,[u,c]=Me(e,t);if(this.el=_e.createElement(u,n),Ee.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(r=Ee.nextNode())&&s.length0){r.textContent=ie?ie.emptyScript:"";for(let n=0;npe(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Ce&&fe(this._$AH)?this._$AA.nextSibling.data=e:this.T(le.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:n}=e,r="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=_e.createElement(Ie(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{const e=new De(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=Ae.get(e.strings);return void 0===t&&Ae.set(e.strings,t=new _e(e)),t}k(e){pe(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,r=0;for(const i of e)r===t.length?t.push(n=new Le(this.O(de()),this.O(de()),this,this.options)):n=t[r],n._$AI(i),r++;r2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Ce}_$AI(e,t=this,n,r){const i=this.strings;let a=!1;if(void 0===i)e=Pe(this,e,t,0),a=!fe(e)||e!==this._$AH&&e!==ke,a&&(this._$AH=e);else{const r=e;let o,s;for(e=i[0],o=0;o{const r=n?.renderBefore??t;let i=r._$litPart$;if(void 0===i){const e=n?.renderBefore??null;r._$litPart$=i=new Le(t.insertBefore(de(),e),e,void 0,n??{})}return i._$AI(e),i})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ke}}Be._$litElement$=!0,Be.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Be});const Ve=globalThis.litElementPolyfillSupport;Ve?.({LitElement:Be}),(globalThis.litElementVersions??=[]).push("4.1.1");const $e=e=>(t,n)=>{void 0!==n?n.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)},ze={attribute:!0,type:String,converter:Q,reflect:!1,hasChanged:ee},He=(e=ze,t,n)=>{const{kind:r,metadata:i}=n;let a=globalThis.litPropertyMetadata.get(i);if(void 0===a&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(n.name,e),"accessor"===r){const{name:r}=n;return{set(n){const i=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,i,e)},init(t){return void 0!==t&&this.P(r,void 0,e),t}}}if("setter"===r){const{name:r}=n;return function(n){const i=this[r];t.call(this,n),this.requestUpdate(r,i,e)}}throw Error("Unsupported decorator location: "+r)};function qe(e){return(t,n)=>"object"==typeof n?He(e,t,n):((e,t,n)=>{const r=t.hasOwnProperty(n);return t.constructor.createProperty(n,r?{...e,wrapped:!0}:e),r?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}function Ke(e){return qe({...e,state:!0,attribute:!1})}const Ge=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,n),n);function Xe(e,t){return(n,r,i)=>{const a=t=>t.renderRoot?.querySelector(e)??null;if(t){const{get:e,set:t}="object"==typeof r?n:i??(()=>{const e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return Ge(n,r,{get(){let n=e.call(this);return void 0===n&&(n=a(this),(null!==n||this.hasUpdated)&&t.call(this,n)),n}})}return Ge(n,r,{get(){return a(this)}})}}var We=r(917);const Ye=(e,t,n)=>{let r=e[0];for(let i=1;i{return"string"!=typeof(t=e)&&"strTag"in t?Ye(e.strings,e.values):e;var t};let Ze=Je,Qe=!1;const et="lit-localize-status";class tt{constructor(e){this.__litLocalizeEventHandler=e=>{"ready"===e.detail.status&&this.host.requestUpdate()},this.host=e}hostConnected(){window.addEventListener(et,this.__litLocalizeEventHandler)}hostDisconnected(){window.removeEventListener(et,this.__litLocalizeEventHandler)}}const nt=e=>e.addController(new tt(e)),rt=()=>(e,t)=>(e.addInitializer(nt),e);class it{constructor(){this.settled=!1,this.promise=new Promise(((e,t)=>{this._resolve=e,this._reject=t}))}resolve(e){this.settled=!0,this._resolve(e)}reject(e){this.settled=!0,this._reject(e)}}const at=[];for(let e=0;e<256;e++)at[e]=(e>>4&15).toString(16)+(15&e).toString(16);const ot="",st="h",ut="s";const ct=new WeakMap,lt=new Map;function dt(e,t,n){if(e){const r=n?.id??function(e){const t="string"==typeof e?e:e.strings;let n=lt.get(t);return void 0===n&&(n=function(e,t){return(t?st:ut)+function(e){let t=0,n=8997,r=0,i=33826,a=0,o=40164,s=0,u=52210;for(let c=0;c>>16,n=65535&t,a+=r>>>16,i=65535&r,u=s+(a>>>16)&65535,o=65535&a;return at[u>>8]+at[255&u]+at[o>>8]+at[255&o]+at[i>>8]+at[255&i]+at[n>>8]+at[255&n]}("string"==typeof e?e:e.join(ot))}(t,"string"!=typeof e&&!("strTag"in e)),lt.set(t,n)),n}(t),i=e[r];if(i){if("string"==typeof i)return i;if("strTag"in i)return Ye(i.strings,t.values,i.values);{let e=ct.get(i);return void 0===e&&(e=i.values,ct.set(i,e)),{...i,values:e.map((e=>t.values[e]))}}}}return Je(t)}function ft(e){window.dispatchEvent(new CustomEvent(et,{detail:e}))}let pt,ht,gt,vt,mt,yt="",bt=new it;bt.resolve();let wt=0;const xt=e=>(...t)=>({_$litDirective$:e,values:t});class St{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const Tt=xt(class extends St{constructor(e){if(super(e),1!==e.type||"class"!==e.name||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){if(void 0===this.st){this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!this.nt?.has(e)&&this.st.add(e);return this.render(t)}const n=e.element.classList;for(const e of this.st)e in t||(n.remove(e),this.st.delete(e));for(const e in t){const r=!!t[e];r===this.st.has(e)||this.nt?.has(e)||(r?(n.add(e),this.st.add(e)):(n.remove(e),this.st.delete(e)))}return ke}});class kt extends St{constructor(e){if(super(e),this.it=Ce,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Ce||null==e)return this._t=void 0,this.it=e;if(e===ke)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}kt.directiveName="unsafeHTML",kt.resultType=1,xt(kt);class Ct extends kt{}Ct.directiveName="unsafeSVG",Ct.resultType=2;const At=xt(Ct);function Et(e,t){return e||t}function It(e,t){return e[t]}var Mt,_t=void 0,Pt=null,Dt="",Lt="function",Rt="object",Nt="prototype",Ot="__proto__",Ut="undefined",jt="constructor",Ft="Symbol",Bt="_polyfill",Vt="length",$t="name",zt="call",Ht="toString",qt=Et(Object),Kt=It(qt,Nt),Gt=Et(String),Xt=It(Gt,Nt),Wt=Et(Math),Yt=Et(Array),Jt=It(Yt,Nt),Zt=It(Jt,"slice");function Qt(e,t){try{return{v:e.apply(this,t)}}catch(e){return{e:e}}}function en(e){return function(t){return typeof t===e}}function tn(e){var t="[object "+e+"]";return function(e){return!(!e||nn(e)!==t)}}function nn(e){return Kt[Ht].call(e)}function rn(e){return typeof e===Ut||e===Ut}function an(e){return e===Pt||rn(e)}function on(e){return!!e||e!==_t}var sn=en("string"),un=en(Lt);function cn(e){return!(!e&&an(e)||!e||typeof e!==Rt)}var ln=It(Yt,"isArray"),dn=tn("Date"),fn=en("number"),pn=en("boolean"),hn=tn("Error");function gn(e){return!!(e&&e.then&&un(e.then))}function vn(e){return!(!e||(t=function(){return!(e&&0+e)},n=!e,r=Qt(t),r.e?n:r.v));var t,n,r}var mn=It(qt,"getOwnPropertyDescriptor");function yn(e,t){return!!e&&Kt.hasOwnProperty[zt](e,t)}var bn=Et(It(qt,"hasOwn"),wn);function wn(e,t){return yn(e,t)||!!mn(e,t)}function xn(e,t,n){if(e&&cn(e))for(var r in e)if(bn(e,r)&&-1===t[zt](n||e,r,e[r]))break}var Sn={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};var Tn=It(qt,"defineProperty"),kn=It(qt,"defineProperties");function Cn(e,t,n){return Tn(e,t,function(e){var t={};if(t[Sn.c]=!0,t[Sn.e]=!0,e.l){t.get=function(){return e.l.v};var n=mn(e.l,"v");n&&n.set&&(t.set=function(t){e.l.v=t})}return xn(e,(function(e,n){t[Sn[e]]=on(n)?n:t[Sn[e]]})),t}(n))}function An(e,t,n,r,i){var a={};return xn(e,(function(e,r){En(a,e,t?r:e,i),En(a,r,n?r:e,i)})),r?r(a):a}function En(e,t,n,r){Tn(e,t,{value:n,enumerable:!0,writable:!!r})}var In=Et(Gt),Mn="[object Error]";function _n(e,t){var n=Dt,r=Kt[Ht][zt](e);r===Mn&&(e={stack:In(e.stack),message:In(e.message),name:In(e.name)});try{n=((n=JSON.stringify(e,Pt,t?"number"==typeof t?t:4:_t))?n.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):Pt)||In(e)}catch(e){n=" - "+_n(e,t)}return r+": "+n}function Pn(e){throw new Error(e)}function Dn(e){throw new TypeError(e)}var Ln=It(qt,"freeze");function Rn(e){return e}function Nn(e){return e[Ot]||Pt}var On=It(qt,"assign"),Un=It(qt,"keys");function jn(e){return Ln&&xn(e,(function(e,t){(ln(t)||cn(t))&&jn(t)})),Fn(e)}var Fn=Et(Ln,Rn),Bn=Et(It(qt,"getPrototypeOf"),Nn);function Vn(e){return An(e,1,0,Fn)}function $n(e){return An(e,0,0,Fn)}function zn(e){return function(e){var t={};return xn(e,(function(e,n){En(t,e,n[1]),En(t,n[0],n[1])})),Fn(t)}(e)}var Hn,qn=$n({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),Kn="__tsUtils$gblCfg";function Gn(){var e;return typeof globalThis!==Ut&&(e=globalThis),e||typeof self===Ut||(e=self),e||typeof window===Ut||(e=window),e||typeof r.g===Ut||(e=r.g),e}function Xn(){if(!Hn){var e=Qt(Gn).v||{};Hn=e[Kn]=e[Kn]||{}}return Hn}var Wn=Yn;function Yn(e,t,n){var r=t?t[e]:Pt;return function(t){var i=(t?t[e]:Pt)||r;if(i||n){var a=arguments;return(i||n).apply(t,i?Zt[zt](a,1):a)}Dn('"'+In(e)+'" not defined for '+_n(t))}}function Jn(e){return function(t){return t[e]}}var Zn=It(Wt,"max"),Qn=Wn("slice",Xt),er=Wn("substring",Xt),tr=Yn("substr",Xt,nr);function nr(e,t,n){return an(e)&&Dn("Invalid "+_n(e)),n<0?Dt:((t=t||0)<0&&(t=Zn(t+e[Vt],0)),rn(n)?Qn(e,t):Qn(e,t,t+n))}function rr(e,t){return er(e,0,t)}var ir,ar,or,sr="_urid";function ur(e){var t={description:In(e),toString:function(){return Ft+"("+e+")"}};return t[Bt]=!0,t}function cr(e){var t=function(){if(!ir){var e=Xn();ir=e.gblSym=e.gblSym||{k:{},s:{}}}return ir}();if(!bn(t.k,e)){var n=ur(e),r=Un(t.s).length;n[sr]=function(){return r+"_"+n[Ht]()},t.k[e]=n,t.s[n[sr]()]=In(e)}return t.k[e]}function lr(){or=Xn()}function dr(e){var t={};return!or&&lr(),t.b=or.lzy,Tn(t,"v",{configurable:!0,get:function(){var n=e();return or.lzy||Tn(t,"v",{value:n}),t.b=or.lzy,n}}),t}function fr(e){return Tn({toJSON:function(){return e}},"v",{value:e})}var pr,hr="window";function gr(e,t){var n;return function(){return!or&&lr(),n&&!or.lzy||(n=fr(Qt(e,t).v)),n.v}}function vr(e){return!or&&lr(),pr&&!1!==e&&!or.lzy||(pr=fr(Qt(Gn).v||Pt)),pr.v}function mr(e,t){var n;if((n=pr&&!1!==t?pr.v:vr(t))&&n[e])return n[e];if(e===hr)try{return window}catch(e){}return Pt}function yr(){return!!br()}var br=gr(mr,["document"]);function wr(){return!!kr()}var xr,Sr,Tr,kr=gr(mr,[hr]),Cr=gr(mr,["navigator"]),Ar=gr(mr,["history"]),Er=gr((function(){return!!Qt((function(){return process&&(process.versions||{}).node})).v})),Ir=gr((function(){return!!Qt((function(){return self&&self instanceof WorkerGlobalScope})).v}));function Mr(){return xr=fr(Qt(mr,[Ft]).v)}function _r(e){var t=(or.lzy?0:xr)||Mr();return t.v?t.v[e]:_t}function Pr(){return!!Dr()}function Dr(){return!or&&lr(),((or.lzy?0:xr)||Mr()).v}function Lr(e,t){var n=qn[e];!or&&lr();var r=(or.lzy?0:xr)||Mr();return r.v?r.v[n||e]:t?_t:function(e){var t;!ar&&(ar={});var n=qn[e];return n&&(t=ar[n]=ar[n]||ur(Ft+"."+n)),t}(e)}function Rr(e,t){!or&&lr();var n=(or.lzy?0:xr)||Mr();return n.v?n.v(e):t?Pt:ur(e)}function Nr(e){return!or&&lr(),((Sr=(or.lzy?0:Sr)||fr(Qt(_r,["for"]).v)).v||cr)(e)}function Or(e){return!!e&&un(e.next)}function Ur(e){return!function(e){return e===Pt||!on(e)}(e)&&un(e[Lr(3)])}function jr(e,t,n){if(e&&(Or(e)||(!Tr&&(Tr=fr(Lr(3))),e=e[Tr.v]?e[Tr.v]():Pt),Or(e))){var r=_t,i=_t;try{for(var a=0;!(i=e.next()).done&&-1!==t[zt](n||e,i.value,a,e);)a++}catch(t){r={e:t},e.throw&&(i=Pt,e.throw(r))}finally{try{i&&!i.done&&e.return&&e.return(i)}finally{if(r)throw r.e}}}}function Fr(e,t,n){return e.apply(t,n)}function Br(e,t){return!rn(t)&&e&&(ln(t)?Fr(e.push,e,t):Or(t)||Ur(t)?jr(t,(function(t){e.push(t)})):e.push(t)),e}function Vr(e,t,n){if(e)for(var r=e[Vt]>>>0,i=0;i0?t[0]:r?_t:t)||setTimeout,o=(i>1?t[1]:_t)||clearTimeout,s=n[0];n[0]=function(){u.dn(),Fr(s,_t,Zt[zt](arguments))};var u=function(e,t,n){var r,i=!0,a=e?t(Pt):Pt;function o(){return i=!1,a&&a[ki]&&a[ki](),r}function s(){a&&n(a),a=Pt}function u(){return a=t(a),i||o(),r}return(r={cancel:s,refresh:u})[Ci]=function(){return a&&a[Ci]?a[Ci]():i},r[Ti]=function(){return i=!0,a&&a[Ti]&&a[Ti](),r},r[ki]=o,{h:r=Tn(r,Ai,{get:function(){return!!a},set:function(e){!e&&a&&s(),e&&!a&&u()}}),dn:function(){a=Pt}}}(e,(function(e){if(e){if(e.refresh)return e.refresh(),e;Fr(o,_t,[e])}return Fr(a,_t,n)}),(function(e){Fr(o,_t,[e])}));return u.h}function Ii(e,t){return Ei(!0,_t,Zt[zt](arguments))}var Mi="constructor",_i="prototype",Pi="function",Di="_dynInstFuncs",Li="_isDynProxy",Ri="_dynClass",Ni="_dynInstChk",Oi=Ni,Ui="_dfOpts",ji="_unknown_",Fi="__proto__",Bi="_dyn"+Fi,Vi="__dynProto$Gbl",$i="_dynInstProto",zi="useBaseInst",Hi="setInstFuncs",qi=Object,Ki=qi.getPrototypeOf,Gi=qi.getOwnPropertyNames,Xi=vr(),Wi=Xi[Vi]||(Xi[Vi]={o:(xi={},xi[Hi]=!0,xi[zi]=!0,xi),n:1e3});function Yi(e){return e&&(e===qi[_i]||e===Array[_i])}function Ji(e){return Yi(e)||e===Function[_i]}function Zi(e){var t;if(e){if(Ki)return Ki(e);var n=e[Fi]||e[_i]||(e[Mi]?e[Mi][_i]:null);t=e[Bi]||n,yn(e,Bi)||(delete e[$i],t=e[Bi]=e[$i]||e[Bi],e[$i]=n)}return t}function Qi(e,t){var n=[];if(Gi)n=Gi(e);else for(var r in e)"string"==typeof r&&yn(e,r)&&n.push(r);if(n&&n.length>0)for(var i=0;i=0;n--)if(e[n]===t)return!0;return!1}function ra(e,t,n,r,i){if(!Yi(e)){var a=n[Di]=n[Di]||Xr(null);if(!Yi(a)){var o=a[t]=a[t]||Xr(null);!1!==a[Oi]&&(a[Oi]=!!i),Yi(o)||Qi(n,(function(t){ea(n,t,!1)&&n[t]!==r[t]&&(o[t]=n[t],delete n[t],(!yn(e,t)||e[t]&&!e[t][Li])&&(e[t]=function(e,t){var n=function(){var r=function(e,t,n,r){var i=null;if(e&&yn(n,Ri)){var a=e[Di]||Xr(null);if((i=(a[n[Ri]]||Xr(null))[t])||ta("Missing ["+t+"] "+Pi),!i[Ni]&&!1!==a[Oi]){for(var o=!yn(e,t),s=Zi(e),u=[];o&&s&&!Ji(s)&&!na(u,s);){var c=s[t];if(c){o=c===r;break}u.push(s),s=Zi(s)}try{o&&(e[t]=i),i[Ni]=1}catch(e){a[Oi]=!1}}}return i}(this,t,e,n)||function(e,t,n){var r=t[e];return r===n&&(r=Zi(t)[e]),typeof r!==Pi&&ta("["+e+"] is not a "+Pi),r}(t,e,n);return r.apply(this,arguments)};return n[Li]=1,n}(e,t)))}))}}}function ia(e,t){return yn(e,_i)?e.name||t||ji:((e||{})[Mi]||{}).name||t||ji}function aa(e,t,n,r){yn(e,_i)||ta("theClass is an invalid class definition.");var i=e[_i];(function(e,t){if(Ki){for(var n=[],r=Zi(t);r&&!Ji(r)&&!na(n,r);){if(r===e)return!0;n.push(r),r=Zi(r)}return!1}return!0})(i,t)||ta("["+ia(e)+"] not in hierarchy of ["+ia(t)+"]");var a=null;yn(i,Ri)?a=i[Ri]:(a="_dynCls$"+ia(e,"_")+"$"+Wi.n,Wi.n++,i[Ri]=a);var o=aa[Ui],s=!!o[zi];s&&r&&void 0!==r[zi]&&(s=!!r[zi]);var u=function(e){var t=Xr(null);return Qi(e,(function(n){!t[n]&&ea(e,n,!1)&&(t[n]=e[n])})),t}(t),c=function(e,t,n,r){function i(e,t,n){var i=t[n];if(i[Li]&&r){var a=e[Di]||{};!1!==a[Oi]&&(i=(a[t[Ri]]||{})[n]||i)}return function(){return i.apply(e,arguments)}}var a=Xr(null);Qi(n,(function(e){a[e]=i(t,n,e)}));for(var o=Zi(e),s=[];o&&!Ji(o)&&!na(s,o);)Qi(o,(function(e){!a[e]&&ea(o,e,!Ki)&&(a[e]=i(t,o,e))})),s.push(o),o=Zi(o);return a}(i,t,u,s);n(t,c);var l=!!Ki&&!!o[Hi];l&&r&&(l=!!r[Hi]),ra(i,a,t,u,!1!==l)}aa[Ui]=Wi.o;var oa="function",sa="object",ua="undefined",ca="prototype",la=Object,da=la[ca],fa=((vr()||{}).Symbol,(vr()||{}).Reflect,"hasOwnProperty"),pa=On||function(e){for(var t,n=1,r=arguments.length;n>>=0),Cs=Ss+t&xs,As=Ts-t&xs,ks=!0}catch(e){}var t}function Is(e){var t=0,n=mr(cs)||mr(ls);return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&xs),0===t&&bs()&&(ks||Es(),t=function(e){var t=((As=36969*(65535&As)+(As>>16)&xs)<<16)+(65535&(Cs=18e3*(65535&Cs)+(Cs>>16)&xs))>>>0&xs|0;return t>>>=0}()&xs),0===t&&(t=Math.floor(ws*Math.random()|0)),e||(t>>>=0),t}var Ms="3.3.3",_s="."+function(e){void 0===e&&(e=22);for(var t=Is()>>>0,n=0,r=Eo;r[ba]>>=6,5===n&&(t=(Is()<<2&4294967295|3&t)>>>0,n=0);return r}(6),Ps=0;function Ds(e){return 1===e[ho]||9===e[ho]||!+e[ho]}function Ls(e,t){return void 0===t&&(t=!1),Zo(e+Ps+++(t?"."+Ms:Eo)+_s)}function Rs(e){var t={id:Ls("_aiData-"+(e||Eo)+"."+Ms),accept:function(e){return Ds(e)},get:function(e,n,r,i){var a=e[t.id];return a?a[Zo(n)]:(i&&(a=function(e,t){var n=t[e.id];if(!n){n={};try{Ds(t)&&Cn(t,e.id,{e:!1,v:n})}catch(e){}}return n}(t,e),a[Zo(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(e){}}};return t}function Ns(e){return e&&cn(e)&&(e.isVal||e.fb||bn(e,"v")||bn(e,"mrg")||bn(e,"ref")||e.set)}function Os(e,t,n){var r,i=n.dfVal||on;if(t&&n.fb){var a=n.fb;ln(a)||(a=[a]);for(var o=0;o0&&function(e,t){qs||(qs=Zr("AggregationError",(function(e,t){t[ba]>1&&(e.errors=t[1])})));var n="Watcher error(s): ";throw Vr(t,(function(e,t){n+="\n".concat(t," > ").concat(_n(e))})),new qs(n,t||[])}(0,t)}}return(t={prop:r,ro:i,rf:a})[ya]=o,t[_a]=e,t.add=function(e){if(e&&e.h[ba]>0){u||(u=[]),c||(c=Ii((function(){c=null,d()}),0));for(var t=0;t=i)){var a=!0,o="AITR_"+n[no];if(u[o]?a=!1:u[o]=!0,a&&(t<=r&&(e.queue[Ia](n),s++,l(1===t?"error":"warn",n)),s===i)){var c="Internal events throttle limit per PageView reached for this app.",d=new hu(23,c,!1);e.queue[Ia](d),1===t?e.errorToConsole(c):e[Sa](c)}}}function l(e,n){var r=uu(t||{});r&&r[ao]&&r[ao](e,n)}o=function(t){return nu(tu(t,lu,e).cfg,(function(e){var t=e.cfg;n=t[Qa],r=t.loggingLevelTelemetry,i=t.maxMessageLimit,a=t.enableDebug}))}(t||{}),e.consoleLoggingLevel=function(){return n},e[Ta]=function(t,r,i,o,s){void 0===s&&(s=!1);var d=new hu(r,i,s,o);if(a)throw _n(d);var f=du[t]||cu;if(rn(d[ro]))l("throw"+(1===t?"Critical":"Warning"),d);else{if(s){var p=+d[no];!u[p]&&n>=t&&(e[f](d[ro]),u[p]=!0)}else n>=t&&e[f](d[ro]);c(t,d)}},e.debugToConsole=function(e){pu("debug",e),l("warning",e)},e[Sa]=function(e){pu("warn",e),l("warning",e)},e.errorToConsole=function(e){pu("error",e),l("error",e)},e.resetInternalMessageCount=function(){s=0,u={}},e.logInternalMessage=c,e[Ya]=function(e){o&&o.rm(),o=null}}))}return e.__ieDyn=1,e}();function mu(e){return e||new vu}function yu(e,t,n,r,i,a){void 0===a&&(a=!1),mu(e)[Ta](t,n,r,i,a)}function bu(e,t){mu(e)[Sa](t)}var wu=Vn,xu=wu({LocalStorage:0,SessionStorage:1}),Su=(wu({AI:0,AI_AND_W3C:1,W3C:2}),wu({Normal:1,Critical:2}),"split"),Tu="length",ku="toLowerCase",Cu="ingestionendpoint",Au="toString",Eu="push",Iu="removeItem",Mu="name",_u="message",Pu="count",Du="preTriggerDate",Lu="disabled",Ru="interval",Nu="daysOfMonth",Ou="date",Uu="getUTCDate",ju="stringify",Fu="pathname",Bu="exceptions",Vu="parsedStack",$u="properties",zu="measurements",Hu="sizeInBytes",qu="typeName",Ku="severityLevel",Gu="problemGroup",Xu="isManual",Wu="CreateFromInterface",Yu="assembly",Ju="fileName",Zu="hasFullStack",Qu="level",ec="method",tc="line",nc="duration",rc="receivedResponse",ic=void 0,ac=void 0,oc="";function sc(){return lc()?uc(xu.LocalStorage):null}function uc(e){try{if(an(vr()))return null;var t=(new Date)[Au](),n=mr(e===xu.LocalStorage?"localStorage":"sessionStorage"),r=oc+t;n.setItem(r,t);var i=n.getItem(r)!==t;if(n[Iu](r),!i)return n}catch(e){}return null}function cc(){return pc()?uc(xu.SessionStorage):null}function lc(e){return(e||void 0===ic)&&(ic=!!uc(xu.LocalStorage)),ic}function dc(e,t){var n=sc();if(null!==n)try{return n.getItem(t)}catch(t){ic=!1,yu(e,2,1,"Browser failed read of local storage. "+ts(t),{exception:_n(t)})}return null}function fc(e,t,n){var r=sc();if(null!==r)try{return r.setItem(t,n),!0}catch(t){ic=!1,yu(e,2,3,"Browser failed write to local storage. "+ts(t),{exception:_n(t)})}return!1}function pc(e){return(e||void 0===ac)&&(ac=!!uc(xu.SessionStorage)),ac}function hc(e,t){var n=cc();if(null!==n)try{return n.getItem(t)}catch(t){ac=!1,yu(e,2,2,"Browser failed read of session storage. "+ts(t),{exception:_n(t)})}return null}var gc="AppInsightsPropertiesPlugin",vc="ApplicationInsightsAnalytics",mc="/v2/track",yc="not_specified",bc="iKey";function wc(e,t,n){var r=t[Tu],i=function(e,t){var n;return t&&(t=ai(In(t)))[Tu]>150&&(n=er(t,0,150),yu(e,2,57,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),n||t}(e,t);if(i[Tu]!==r){for(var a=0,o=i;void 0!==n[o];)a++,o=er(i,0,147)+Ec(a);i=o}return i}function xc(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=ai(In(t)))[Tu]>n&&(r=er(t,0,n),yu(e,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function Sc(e,t){return Ac(e,t,2048,66)}function Tc(e,t){var n;return t&&t[Tu]>32768&&(n=er(t,0,32768),yu(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function kc(e,t){if(t){var n={};xn(t,(function(t,r){if(cn(r)&&ms())try{r=ys()[ju](r)}catch(t){yu(e,2,49,"custom property is not valid",{exception:t},!0)}r=xc(e,r,8192),t=wc(e,t,n),n[t]=r})),t=n}return t}function Cc(e,t){if(t){var n={};xn(t,(function(t,r){t=wc(e,t,n),n[t]=r})),t=n}return t}function Ac(e,t,n,r){var i;return t&&(t=ai(In(t)))[Tu]>n&&(i=er(t,0,n),yu(e,2,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),i||t}function Ec(e){var t="00"+e;return tr(t,t[Tu]-3)}function Ic(e,t,n,r,i,a){var o;n=xc(r,n)||yc,(an(e)||an(t)||an(n))&&Pn("Input doesn't contain all required fields");var s="";e[bc]&&(s=e[bc],delete e[bc]);var u=((o={})[Mu]=n,o.time=es(new Date),o.iKey=s,o.ext=a||{},o.tags=[],o.data={},o.baseType=t,o.baseData=e,o);return an(i)||xn(i,(function(e,t){u.data[e]=t})),u}var Mc=function(){function e(e,t,n,r){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var i=this;i.ver=2,i[Mu]=xc(e,t)||yc,i[$u]=kc(e,n),i[zu]=Cc(e,r)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}(),_c=function(){function e(e,t,n,r,i){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var a=this;a.ver=2,t=t||yc,a[_u]=Tc(e,t),a[$u]=kc(e,r),a[zu]=Cc(e,i),n&&(a[Ku]=n)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}(),Pc=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},Dc=function(){function e(e,t,n,r,i,a,o,s,u){this.aiDataContract={ver:1,metrics:1,properties:0};var c=this;c.ver=2;var l=new Pc;l[Pu]=r>0?r:void 0,l.max=isNaN(a)||null===a?void 0:a,l.min=isNaN(i)||null===i?void 0:i,l[Mu]=xc(e,t)||yc,l.value=n,l.stdDev=isNaN(o)||null===o?void 0:o,c.metrics=[l],c[$u]=kc(e,s),c[zu]=Cc(e,u)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}();function Lc(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,r=""+Math.floor(e/6e4)%60,i=""+Math.floor(e/36e5)%24,a=Math.floor(e/864e5);return t=1===t[Tu]?"00"+t:2===t[Tu]?"0"+t:t,n=n[Tu]<2?"0"+n:n,r=r[Tu]<2?"0"+r:r,(a>0?a+".":"")+(i=i[Tu]<2?"0"+i:i)+":"+r+":"+n+"."+t}var Rc=function(){function e(e,t,n,r,i,a,o){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var s=this;s.ver=2,s.id=function(e,t){return t?Ac(e,t,128,69)[Au]():t}(e,o),s.url=Sc(e,n),s[Mu]=xc(e,t)||yc,isNaN(r)||(s[nc]=Lc(r)),s[$u]=kc(e,i),s[zu]=Cc(e,a)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(),Nc=function(){function e(e,t,n,r,i,a,o){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var s=this;s.ver=2,s.url=Sc(e,n),s[Mu]=xc(e,t)||yc,s[$u]=kc(e,i),s[zu]=Cc(e,a),o&&(s.domProcessing=o.domProcessing,s[nc]=o[nc],s.networkConnect=o.networkConnect,s.perfTotal=o.perfTotal,s[rc]=o[rc],s.sentRequest=o.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}(),Oc="error",Uc="stack",jc="stackDetails",Fc="errorSrc",Bc="message",Vc="description";function $c(e,t){var n=e;return n&&!sn(n)&&(JSON&&JSON[ju]?(n=JSON[ju](e),!t||n&&"{}"!==n||(n=un(e[Au])?e[Au]():""+e)):n=e+" - (Missing JSON.stringify)"),n||""}function zc(e,t){var n=e;return e&&(n&&!sn(n)&&(n=e[Bc]||e[Vc]||n),n&&!sn(n)&&(n=$c(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&"String"!==t&&"Object"!==t&&"Error"!==t&&-1===Si(n||"",t)&&(n=t+": "+n),n||""}function Hc(e){return e&&e.src&&sn(e.src)&&e.obj&&ln(e.obj)}function qc(e){var t=e||"";sn(t)||(t=sn(t[Uc])?t[Uc]:""+t);var n=t[Su]("\n");return{src:t,obj:n}}function Kc(e){var t=null;if(e)try{if(e[Uc])t=qc(e[Uc]);else if(e[Oc]&&e[Oc][Uc])t=qc(e[Oc][Uc]);else if(e.exception&&e.exception[Uc])t=qc(e.exception[Uc]);else if(Hc(e))t=e;else if(Hc(e[jc]))t=e[jc];else if(kr()&&kr().opera&&e[Bc])t=function(e){for(var t=[],n=e[Su]("\n"),r=0;r1?n[1]:""}catch(e){}return t}function Xc(e){if(e)try{if(!sn(e)){var t=Gc(e),n=$c(e,!1);return n&&"{}"!==n||(e[Oc]&&(t=Gc(e=e[Oc])),n=$c(e,!0)),0!==Si(n,t)&&"String"!==t?t+":"+n:n}}catch(e){}return""+(e||"")}var Wc=function(){function e(e,t,n,r,i,a){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var o=this;o.ver=2,function(e){try{if(cn(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(e){}return!1}(t)?(o[Bu]=t[Bu]||[],o[$u]=t[$u],o[zu]=t[zu],t[Ku]&&(o[Ku]=t[Ku]),t.id&&(o.id=t.id,t[$u].id=t.id),t[Gu]&&(o[Gu]=t[Gu]),an(t[Xu])||(o[Xu]=t[Xu])):(n||(n={}),a&&(n.id=a),o[Bu]=[new Yc(e,t,n)],o[$u]=kc(e,n),o[zu]=Cc(e,r),i&&(o[Ku]=i),a&&(o.id=a))}return e.CreateAutoException=function(e,t,n,r,i,a,o,s){var u,c=Gc(i||a||e);return(u={})[_u]=zc(e,c),u.url=t,u.lineNumber=n,u.columnNumber=r,u.error=Xc(i||a||e),u.evt=Xc(a||e),u[qu]=c,u.stackDetails=Kc(o||i||a),u.errorSrc=s,u},e.CreateFromInterface=function(t,n,r,i){var a=n[Bu]&&zr(n[Bu],(function(e){return Yc[Wu](t,e)}));return new e(t,pa(pa({},n),{exceptions:a}),r,i)},e.prototype.toInterface=function(){var e,t=this,n=t.exceptions,r=t.properties,i=t.measurements,a=t.severityLevel,o=t.problemGroup,s=t.id,u=t.isManual,c=n instanceof Array&&zr(n,(function(e){return e.toInterface()}))||void 0;return(e={ver:"4.0"})[Bu]=c,e.severityLevel=a,e.properties=r,e.measurements=i,e.problemGroup=o,e.id=s,e.isManual=u,e},e.CreateSimpleException=function(e,t,n,r,i,a){var o;return{exceptions:[(o={},o[Zu]=!0,o.message=e,o.stack=i,o.typeName=t,o)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=Xc,e}(),Yc=function(){function e(e,t,n){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var r=this;if(function(e){try{if(cn(e))return"hasFullStack"in e&&"typeName"in e}catch(e){}return!1}(t))r[qu]=t[qu],r[_u]=t[_u],r[Uc]=t[Uc],r[Vu]=t[Vu]||[],r[Zu]=t[Zu];else{var i=t,a=i&&i.evt;hn(i)||(i=i[Oc]||a||i),r[qu]=xc(e,Gc(i))||yc,r[_u]=Tc(e,zc(t||i,r[qu]))||yc;var o=t[jc]||Kc(t);r[Vu]=function(e){var t,n=e.obj;if(n&&n[Tu]>0){t=[];var r=0,i=0;if(Vr(n,(function(e){var n=e[Au]();if(Jc.regex.test(n)){var a=new Jc(n,r++);i+=a[Hu],t[Eu](a)}})),i>32768)for(var a=0,o=t[Tu]-1,s=0,u=a,c=o;a32768){var l=c-u+1;t.splice(u,l);break}u=a,c=o,a++,o--}}return t}(o),ln(r[Vu])&&zr(r[Vu],(function(t){t[Yu]=xc(e,t[Yu]),t[Ju]=xc(e,t[Ju])})),r[Uc]=function(e,t){var n;if(t){var r=""+t;r[Tu]>32768&&(n=er(r,0,32768),yu(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return n||t}(e,function(e){var t="";return e&&(e.obj?Vr(e.obj,(function(e){t+=e+"\n"})):t=e.src||""),t}(o)),r.hasFullStack=ln(r.parsedStack)&&r.parsedStack[Tu]>0,n&&(n[qu]=n[qu]||r[qu])}}return e.prototype.toInterface=function(){var e,t=this,n=t[Vu]instanceof Array&&zr(t[Vu],(function(e){return e.toInterface()}));return(e={id:t.id,outerId:t.outerId,typeName:t[qu],message:t[_u],hasFullStack:t[Zu],stack:t[Uc]})[Vu]=n||void 0,e},e.CreateFromInterface=function(t,n){var r=n[Vu]instanceof Array&&zr(n[Vu],(function(e){return Jc[Wu](e)}))||n[Vu];return new e(t,pa(pa({},n),{parsedStack:r}))},e}(),Jc=function(){function e(t,n){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var r=this;if(r[Hu]=0,"string"==typeof t){var i=t;r[Qu]=n,r[ec]="",r[Yu]=ai(i),r[Ju]="",r[tc]=0;var a=i.match(e.regex);a&&a[Tu]>=5&&(r[ec]=ai(a[2])||r[ec],r[Ju]=ai(a[4]),r[tc]=parseInt(a[5])||0)}else r[Qu]=t[Qu],r[ec]=t[ec],r[Yu]=t[Yu],r[Ju]=t[Ju],r[tc]=t[tc],r[Hu]=0;r.sizeInBytes+=r.method[Tu],r.sizeInBytes+=r.fileName[Tu],r.sizeInBytes+=r.assembly[Tu],r[Hu]+=e.baseSize,r.sizeInBytes+=r.level.toString()[Tu],r.sizeInBytes+=r.line.toString()[Tu]}return e.CreateFromInterface=function(t){return new e(t,null)},e.prototype.toInterface=function(){var e=this;return{level:e[Qu],method:e[ec],assembly:e[Yu],fileName:e[Ju],line:e[tc]}},e.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,e.baseSize=58,e}();function Zc(e,t,n){return!(!e||e[ba]!==t||e===n||!e.match(/^[\da-f]*$/i))}function Qc(e){return Zc(e,32,"00000000000000000000000000000000")}function el(e){return Zc(e,16,"0000000000000000")}var tl=br()||{},nl=0,rl=[null,null,null,null,null];function il(e,t){var n=function(e,t){var n=null;if(e){var r=e.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(null!=r&&r[Tu]>2&&sn(r[2])&&r[2][Tu]>0&&(n=r[2]||"",t&&r[Tu]>2)){var i=(r[1]||"")[ku](),a=r[3]||"";("http"===i&&":80"===a||"https"===i&&":443"===a)&&(a=""),n+=a}}return n}(e,t)||"";if(n){var r=n.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(null!=r&&r[Tu]>3&&sn(r[2])&&r[2][Tu]>0)return r[2]+(r[3]||"")}return n}function al(e,t){var n=null;return 0===e||0===t||an(e)||an(t)||(n=t-e),n}var ol,sl,ul=function(){function e(e,t,n,r,i,a,o,s,u,c,l,d){void 0===u&&(u="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var f=this;f.ver=2,f.id=t,f[nc]=Lc(i),f.success=a,f.resultCode=o+"",f.type=xc(e,u);var p=function(e,t,n,r){var i,a,o,s,u,c=r,l=r;if(t&&t[Tu]>0){var d=(a=t,u=(s=rl)[o=nl],tl.createElement?s[o]||(u=s[o]=tl.createElement("a")):u={host:il(a,!0)},u.href=a,++o>=s[Tu]&&(o=0),nl=o,u);if(i=d.host,!c)if(null!=d[Fu]){var f=0===d.pathname[Tu]?"/":d[Fu];"/"!==f.charAt(0)&&(f="/"+f),l=d[Fu],c=xc(e,n?n+" "+f:f)}else c=xc(e,t)}else i=r,c=r;return{target:i,name:c,data:l}}(e,n,s,r);f.data=Sc(e,r)||p.data,f.target=xc(e,p.target),c&&(f.target="".concat(f.target," | ").concat(c)),f[Mu]=xc(e,p[Mu]),f[$u]=kc(e,l),f[zu]=Cc(e,d)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}();function cl(e){var t=null;if(un(Event))t=new Event(e);else{var n=br();n&&n.createEvent&&(t=n.createEvent("Event")).initEvent(e,!0,!0)}return t}function ll(e,t,n){return!e&&an(e)?t:pn(e)?e:"true"===In(e)[ma]()}function dl(e){return{mrg:!0,v:e}}function fl(e,t){return{set:e,v:t}}function pl(e,t,n){return{fb:n,isVal:e,v:t}}function hl(e,t){return{fb:t,set:ll,v:!!e}}var gl,vl="toGMTString",ml="toUTCString",yl="cookie",bl="expires",wl="isCookieUseDisabled",xl="disableCookiesUsage",Sl="_ckMgr",Tl=null,kl=null,Cl=null,Al={},El={},Il=((ol={cookieCfg:dl((sl={},sl[Ho]={fb:"cookieDomain",dfVal:Jo},sl.path={fb:"cookiePath",dfVal:Jo},sl.enabled=Ao,sl.ignoreCookies=Ao,sl.blockedCookies=Ao,sl)),cookieDomain:Ao,cookiePath:Ao})[xl]=Ao,ol);function Ml(){!gl&&(gl=dr((function(){return br()})))}function _l(e){return!e||e.isEnabled()}function Pl(e,t){return!!(t&&e&&ln(e.ignoreCookies))&&-1!==$r(e.ignoreCookies,t)}function Dl(e,t){var n=t[Xa];if(an(n)){var r=void 0;rn(e[wl])||(r=!e[wl]),rn(e[xl])||(r=!e[xl]),n=r}return n}function Ll(e,t){var n,r,i,a,o,s,u,c,l;e=tu(e||El,null,t).cfg,o=nu(e,(function(t){t[ka](t.cfg,Il),r=t.ref(t.cfg,"cookieCfg"),i=r[qo]||"/",a=r[Ho],s=!1!==Dl(e,r),u=r.getCookie||jl,c=r.setCookie||Fl,l=r.delCookie||Fl}),t);var d=((n={isEnabled:function(){var n=!1!==Dl(e,r)&&s&&Rl(t),i=El[Sl];return n&&i&&d!==i&&(n=_l(i)),n},setEnabled:function(e){s=!1!==e,r[Xa]=e},set:function(e,t,n,o,s){var u,l=!1;if(_l(d)&&!function(e,t){return!!(t&&e&&ln(e.blockedCookies)&&-1!==$r(e.blockedCookies,t))||Pl(e,t)}(r,e)){var f={},p=ai(t||Eo),h=Si(p,";");if(-1!==h&&(p=ai(rr(t,h)),f=Nl(er(t,h+1))),ns(f,Ho,o||a,vn,rn),!an(n)){var g=bs();if(rn(f[bl])){var v=Qr()+1e3*n;if(v>0){var m=new Date;m.setTime(v),ns(f,bl,Ol(m,g?vl:ml)||Ol(m,g?vl:ml)||Eo,vn)}}g||ns(f,"max-age",Eo+n,null,rn)}var y=vs();y&&"https:"===y[lo]&&(ns(f,"secure",null,null,rn),null===kl&&(u=(Cr()||{})[fo],kl=!(sn(u)&&(Qo(u,"CPU iPhone OS 12")||Qo(u,"iPad; CPU OS 12")||Qo(u,"Macintosh; Intel Mac OS X 10_14")&&Qo(u,"Version/")&&Qo(u,"Safari")||Qo(u,"Macintosh; Intel Mac OS X 10_14")&&bi(u,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||Qo(u,"Chrome/5")||Qo(u,"Chrome/6")||Qo(u,"UnrealEngine")&&!Qo(u,"Chrome")||Qo(u,"UCBrowser/12")||Qo(u,"UCBrowser/11")))),kl&&ns(f,"SameSite","None",null,rn)),ns(f,qo,s||i,null,rn),c(e,Ul(p,f)),l=!0}return l},get:function(e){var t=Eo;return _l(d)&&!Pl(r,e)&&(t=u(e)),t},del:function(e,t){var n=!1;return _l(d)&&(n=d.purge(e,t)),n},purge:function(e,n){var r,i=!1;if(Rl(t)){var a=((r={})[qo]=n||"/",r[bl]="Thu, 01 Jan 1970 00:00:01 GMT",r);bs()||(a["max-age"]="0"),l(e,Ul(Eo,a)),i=!0}return i}})[Ya]=function(e){o&&o.rm(),o=null},n);return d[Sl]=d,d}function Rl(e){if(null===Tl){Tl=!1,!gl&&Ml();try{var t=gl.v||{};Tl=void 0!==t[yl]}catch(t){yu(e,2,68,"Cannot access document.cookie - "+ts(t),{exception:_n(t)})}}return Tl}function Nl(e){var t={};return e&&e[ba]&&Vr(ai(e)[po](";"),(function(e){if(e=ai(e||Eo)){var n=Si(e,"=");-1===n?t[e]=null:t[ai(rr(e,n))]=ai(er(e,n+1))}})),t}function Ol(e,t){return un(e[t])?e[t]():null}function Ul(e,t){var n=e||Eo;return xn(t,(function(e,t){n+="; "+e+(an(t)?Eo:"="+t)})),n}function jl(e){var t=Eo;if(!gl&&Ml(),gl.v){var n=gl.v[yl]||Eo;Cl!==n&&(Al=Nl(n),Cl=n),t=ai(Al[e]||Eo)}return t}function Fl(e,t){!gl&&Ml(),gl.v&&(gl.v[yl]=e+"="+t)}var Bl="on",Vl="attachEvent",$l="addEventListener",zl="detachEvent",Hl="removeEventListener",ql="events",Kl="visibilitychange",Gl="pagehide",Xl="unload",Wl="beforeunload",Yl=Ls("aiEvtPageHide"),Jl=(Ls("aiEvtPageShow"),/\.[\.]+/g),Zl=/[\.]+$/,Ql=1,ed=Rs("events"),td=/^([^.]*)(?:\.(.+)|)/;function nd(e){return e&&e[go]?e[go](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,Eo):e}function rd(e,t){var n;if(t){var r=Eo;ln(t)?(r=Eo,Vr(t,(function(e){(e=nd(e))&&("."!==e[0]&&(e="."+e),r+=e)}))):r=nd(t),r&&("."!==r[0]&&(r="."+r),e=(e||Eo)+r)}var i=td.exec(e||Eo)||[];return(n={})[vo]=i[1],n.ns=(i[2]||Eo).replace(Jl,".").replace(Zl,Eo)[po](".").sort().join("."),n}function id(e,t,n){void 0===n&&(n=!0);var r=ed.get(e,ql,{},n),i=r[t];return i||(i=r[t]=[]),i}function ad(e,t,n,r){e&&t&&t[vo]&&(e[Hl]?e[Hl](t[vo],n,r):e[zl]&&e[zl](Bl+t[vo],n))}function od(e,t,n,r){for(var i=t[ba];i--;){var a=t[i];a&&(n.ns&&n.ns!==a.evtName.ns||r&&!r(a)||(ad(e,a.evtName,a[mo],a.capture),t[Ma](i,1)))}}function sd(e,t){return t?rd("xx",ln(t)?[e].concat(t):[e,t]).ns[po]("."):e}function ud(e,t,n,r,i){var a;void 0===i&&(i=!1);var o=!1;if(e)try{var s=rd(t,r);if(o=function(e,t,n,r){var i=!1;return e&&t&&t[vo]&&n&&(e[$l]?(e[$l](t[vo],n,r),i=!0):e[Vl]&&(e[Vl](Bl+t[vo],n),i=!0)),i}(e,s,n,i),o&&ed.accept(e)){var u=((a={guid:Ql++,evtName:s})[mo]=n,a.capture=i,a);id(e,s.type)[Ia](u)}}catch(e){}return o}function cd(e,t,n,r,i){if(void 0===i&&(i=!1),e)try{var a=rd(t,r),o=!1;!function(e,t,n){if(t[vo])od(e,id(e,t[vo]),t,n);else{var r=ed.get(e,ql,{});xn(r,(function(r,i){od(e,i,t,n)})),0===Un(r)[ba]&&ed.kill(e,ql)}}(e,a,(function(e){return!((!a.ns||n)&&e[mo]!==n||(o=!0,0))})),o||ad(e,a,n,i)}catch(e){}}function ld(e,t,n,r){var i=!1;return t&&e&&e[ba]>0&&Vr(e,(function(e){e&&(n&&-1!==$r(n,e)||(i=function(e,t,n){var r=!1,i=kr();i&&(r=ud(i,e,t,n),r=ud(i.body,e,t,n)||r);var a=br();return a&&(r=ud(a,e,t,n)||r),r}(e,t,r)||i))})),i}function dd(e,t,n){e&&ln(e)&&Vr(e,(function(e){e&&function(e,t,n){var r=kr();r&&(cd(r,e,t,n),cd(r.body,e,t,n));var i=br();i&&cd(i,e,t,n)}(e,t,n)}))}function fd(e,t,n){var r=sd(Yl,n),i=ld([Gl],e,t,r);return t&&-1!==$r(t,Kl)||(i=ld([Kl],(function(t){var n=br();e&&n&&"hidden"===n.visibilityState&&e(t)}),t,r)||i),!i&&t&&(i=fd(e,null,n)),i}var pd="ctx",hd="ParentContextKey",gd="ChildrenContextKey",vd=function(){function e(t,n,r){var i,a=this;a.start=Qr(),a[$a]=t,a[io]=r,a[yo]=function(){return!1},un(n)&&Cn(a,"payload",{g:function(){return!i&&un(n)&&(i=n(),n=null),i}}),a[bo]=function(t){return t?t===e[hd]||t===e[gd]?a[t]:(a[pd]||{})[t]:null},a[wo]=function(t,n){t&&(t===e[hd]?(a[t]||(a[yo]=function(){return!0}),a[t]=n):t===e[gd]?a[t]=n:(a[pd]=a[pd]||{})[t]=n)},a[xo]=function(){var t=0,n=a[bo](e[gd]);if(ln(n))for(var r=0;r0&&(Vr(t,(function(e){try{e.func.call(e.self,e.args)}catch(e){yu(n[Aa],2,73,"Unexpected Exception during onComplete - "+_n(e))}})),a=[])}return e},ctx:{core:function(){return n},diagLog:function(){return gu(n,t.cfg)},getCfg:function(){return t.cfg},getExtCfg:function(e,n){var r=s(e,!0);return n&&xn(n,(function(e,n){if(an(r[e])){var i=t.cfg[e];!i&&an(i)||(r[e]=i)}js(t,r,e,n)})),t[ka](r,n)},getConfig:function(e,n,r){void 0===r&&(r=!1);var i,a=s(e,!1),o=t.cfg;return!a||!a[n]&&an(a[n])?!o[n]&&an(o[n])||(i=o[n]):i=a[n],i||!an(i)?i:r},hasNext:function(){return!!i},getNext:function(){return i},setNext:function(e){i=e},iterate:function(e){for(var t;t=o._next();){var n=t[Va]();n&&e(n)}},onComplete:function(e,t){for(var n=[],r=2;r0){var o=null;Vr(e,(function(e){if(a||r!==e||(a=!0),a&&e&&un(e[Ro])){var s=function(e,t,n){var r,i=null,a=un(e[Ro]),o=un(e[co]),s={getPlugin:function(){return e},getNext:function(){return i},processTelemetry:function(r,c){u(c=c||function(){var r;return e&&un(e[Ad])&&(r=e[Ad]()),r||(r=Md(s,t,n)),r}(),(function(t){if(!e||!a)return!1;var n=xd(e);return!n[to]&&!n[Po]&&(o&&e[co](i),e[Ro](r,t),!0)}),"processTelemetry",(function(){return{item:r}}),!r.sync)||c[qa](r)},unload:function(t,n){u(t,(function(){var r=!1;if(e){var i=xd(e),a=e[Mo]||i[Mo];!e||a&&a!==t.core()||i[to]||(i[Mo]=null,i[to]=!0,i[Oa]=!1,e[to]&&!0===e[to](t,n)&&(r=!0))}return r}),"unload",(function(){}),n[io])||t[qa](n)},update:function(t,n){u(t,(function(){var r=!1;if(e){var i=xd(e),a=e[Mo]||i[Mo];!e||a&&a!==t.core()||i[to]||e[so]&&!0===e[so](t,n)&&(r=!0)}return r}),"update",(function(){}),!1)||t[qa](n)},_id:r=e?e[La]+"-"+e[No]+"-"+Ed++:"Unknown-0-"+Ed++,_setNext:function(e){i=e}};function u(t,n,a,o,s){var u=!1,c=e?e[La]:kd,l=t[Cd];return l||(l=t[Cd]={}),t.setNext(i),e&&bd(t[Mo](),(function(){return c+":"+a}),(function(){l[r]=!0;try{var e=i?i._id:Eo;e&&(l[e]=!1),u=n(t)}catch(e){var o=!i||l[i._id];o&&(u=!0),i&&o||yu(t[ao](),1,73,"Plugin ["+c+"] failed during "+a+" - "+_n(e)+", run flags: "+_n(l))}}),o,s),u}return Fn(s)}(e,t,n);i||(i=s),o&&o._setNext(s),o=s}}))}return r&&!i?Dd([r],t,n):i}var Ld,Rd="_aiHooks",Nd=["req","rsp","hkErr","fnErr"];function Od(e,t){if(e)for(var n=0;n=0&&i<=2&&Od(e,(function(e,a){var o=e.cbks,s=o[Nd[i]];if(s){t.ctx=function(){return r[a]=r[a]||{}};try{s[Ea](t.inst,n)}catch(e){var u=t.err;try{var c=o[Nd[2]];c&&(t.err=e,c[Ea](t.inst,n))}catch(e){}finally{t.err=u}}}}))}function jd(e,t,n,r){var i=null;return e&&(yn(e,t)?i=e:n&&(i=jd(Yo(e),t,r,!1))),i}function Fd(e,t,n,r,i){if(e&&t&&n){var a=jd(e,t,r,i)||e;if(a)return function(e,t,n,r){var i=n&&n[Rd];if(!i){var a=function(e){return function(){var t,n=arguments,r=e.h,i=((t={})[$a]=e.n,t.inst=this,t.ctx=null,t.set=function(e,t){(n=s([],n))[e]=t,o=s([i],n)},t),a=[],o=s([i],n);function s(e,t){return Od(t,(function(t){e[Ia](t)})),e}i.evt=mr("event"),Ud(r,i,o,a,0);var u=e.f;if(u)try{i.rslt=u[Ea](this,n)}catch(e){throw i.err=e,Ud(r,i,o,a,3),e}return Ud(r,i,o,a,1),i.rslt}}(i={i:0,n:t,f:n,h:[]});a[Rd]=i,e[t]=a}var o={id:i.i,cbks:r,rm:function(){var e=this.id;Od(i.h,(function(t,n){if(t.id===e)return i.h[Ma](n,1),1}))}};return i.i++,i.h[Ia](o),o}(a,t,a[t],n)}return null}function Bd(){var e=[];return{add:function(t){t&&e[Ia](t)},run:function(t,n){Vr(e,(function(e){try{e(t,n)}catch(e){yu(t[ao](),2,73,"Unexpected error calling unload handler - "+_n(e))}})),e=[]}}}function Vd(){var e=[];return{run:function(t){var n=e;e=[],Vr(n,(function(e){try{(e.rm||e.remove).call(e)}catch(e){yu(t,2,73,"Unloading:"+_n(e))}}))},add:function(t){t&&Br(e,t)}}}var $d="getPlugin",zd=((Ld={})[Do]={isVal:Jo,v:{}},Ld),Hd=function(){function e(){var t,n,r,i,a,o=this;function s(e){void 0===e&&(e=null);var t=e;if(!t){var i=n||Md(null,{},o[Mo]);t=r&&r[$d]?i[eo](null,r[$d]):i[eo](null,r)}return t}function u(e,t,i){tu(e,zd,gu(t)),!i&&t&&(i=t[Ka]()[uo]());var a=r;r&&r[$d]&&(a=r[$d]()),o[Mo]=t,n=Md(i,e,t,a)}function c(){t=!1,o[Mo]=null,n=null,r=null,a=Vd(),i=Bd()}c(),aa(e,o,(function(e){e[Da]=function(e,n,r,i){u(e,n,i),t=!0},e[to]=function(t,n){var o,s=e[Mo];if(s&&(!t||s===t[Mo]())){var u,l=!1,d=t||_d(null,s,r&&r[$d]?r[$d]():r),f=n||((o={reason:0})[io]=!1,o);return e[oo]&&!0===e[oo](d,f,p)?u=!0:p(),u}function p(){l||(l=!0,i.run(d,n),a.run(d[ao]()),!0===u&&d[qa](f),c())}},e[so]=function(t,n){var i=e[Mo];if(i&&(!t||i===t[Mo]())){var a,o=!1,s=t||Pd(null,i,r&&r[$d]?r[$d]():r),c=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(s,c,l)?a=!0:l(),a}function l(){o||(o=!0,u(s.getCfg(),s.core(),s[uo]()))}},is(e,"_addUnloadCb",(function(){return i}),"add"),is(e,"_addHook",(function(){return a}),"add"),Cn(e,"_unloadHooks",{g:function(){return a}})})),o[ao]=function(e){return s(e)[ao]()},o[Oa]=function(){return t},o.setInitialized=function(e){t=e},o[co]=function(e){r=e},o[qa]=function(e,t){t?t[qa](e):r&&un(r[Ro])&&r[Ro](e,null)},o._getTelCtx=s}return e.__ieDyn=1,e}(),qd="toString",Kd="isStorageUseDisabled",Gd="_addHook",Xd="core",Wd="dataType",Yd="envelopeType",Jd="diagLog",Zd="track",Qd="trackPageView",ef="trackPreviousPageVisit",tf="sendPageViewInternal",nf="startTime",rf="properties",af="duration",of="sendPageViewPerformanceInternal",sf="populatePageViewPerformanceEvent",uf="href",cf="sendExceptionInternal",lf="exception",df="error",ff="_onerror",pf="errorSrc",hf="lineNumber",gf="columnNumber",vf="message",mf="CreateAutoException",yf="addTelemetryInitializer",bf="autoTrackPageVisitTime",wf="isBrowserLinkTrackingEnabled",xf="length",Sf="enableAutoRouteTracking",Tf="enableUnhandledPromiseRejectionTracking",kf="autoUnhandledPromiseInstrumented",Cf="getEntriesByType",Af="isPerformanceTimingSupported",Ef="getPerformanceTiming",If="navigationStart",Mf="shouldCollectDuration",_f="isPerformanceTimingDataReady",Pf="responseStart",Df="loadEventEnd",Lf="responseEnd",Rf="connectEnd",Nf="pageVisitStartTime",Of=function(){function e(t,n,r,i){aa(e,this,(function(e){var a,o=null,s=[],u=!1,c=!1;function l(e){r&&r.flush(e,(function(){}))}function d(){o||(o=Ii((function(){o=null;var e=s.slice(0),t=!1;s=[],Vr(e,(function(e){e()?t=!0:s.push(e)})),s[xf]>0&&d(),t&&l(!0)}),100))}function f(e){s.push(e),d()}r&&(a=r.logger),e[Qd]=function(e,r){var o=e.name;if(an(o)||"string"!=typeof o){var s=br();o=e.name=s&&s.title||""}var d=e.uri;if(an(d)||"string"!=typeof d){var p=vs();d=e.uri=p&&p[uf]||""}if(!c){var h=vi(),g=h&&h[Cf]&&h[Cf]("navigation");if(g&&g[0]&&!rn(h.timeOrigin)){var v=g[0].loadEventStart;e[nf]=new Date(h.timeOrigin+v)}else{var m=(r||e[rf]||{})[af]||0;e[nf]=new Date((new Date).getTime()-m)}c=!0}if(!i[Af]())return t[tf](e,r),l(!0),void(Ir()||yu(a,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info."));var y,b,w=!1,x=i[Ef]()[If];x>0&&(y=al(x,+new Date),i[Mf](y)||(y=void 0)),an(r)||an(r[af])||(b=r[af]),!n&&isNaN(b)||(isNaN(b)&&(r||(r={}),r[af]=y),t[tf](e,r),l(!0),w=!0),r||(r={}),f((function(){var n=!1;try{if(i[_f]()){n=!0;var s={name:o,uri:d};i[sf](s),s.isValid||w?(w||(r[af]=s.durationMs,t[tf](e,r)),u||(t[of](s,r),u=!0)):(r[af]=y,t[tf](e,r))}else x>0&&al(x,+new Date)>6e4&&(n=!0,w||(r[af]=6e4,t[tf](e,r)))}catch(e){yu(a,1,38,"trackPageView failed on page load calculation: "+ts(e),{exception:_n(e)})}return n}))},e.teardown=function(e,t){if(o){o.cancel(),o=null;var n=s.slice(0);s=[],Vr(n,(function(e){e()}))}}}))}return e.__ieDyn=1,e}(),Uf=["googlebot","adsbot-google","apis-google","mediapartners-google"];function jf(){var e=vi();return e&&!!e.timing}function Ff(){var e=vi(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t[If]>0&&t[Pf]>0&&t.requestStart>0&&t[Df]>0&&t[Lf]>0&&t[Rf]>0&&t.domLoading>0}function Bf(){return jf()?vi().timing:null}function Vf(){for(var e=[],t=0;t=36e5)return!1;return!0}var $f,zf=function(){function e(t){var n=gu(t);aa(e,this,(function(e){e[sf]=function(t){t.isValid=!1;var r,i=(r=vi())&&r.getEntriesByType&&r.getEntriesByType("navigation")[xf]>0?vi()[Cf]("navigation")[0]:null,a=Bf(),o=0,s=0,u=0,c=0,l=0;(i||a)&&(i?(o=i[af],s=0===i[nf]?i[Rf]:al(i[nf],i[Rf]),u=al(i.requestStart,i[Pf]),c=al(i[Pf],i[Lf]),l=al(i.responseEnd,i[Df])):(o=al(a[If],a[Df]),s=al(a[If],a[Rf]),u=al(a.requestStart,a[Pf]),c=al(a[Pf],a[Lf]),l=al(a.responseEnd,a[Df])),0===o?yu(n,2,10,"error calculating page view performance.",{total:o,network:s,request:u,response:c,dom:l}):e[Mf](o,s,u,c,l)?o0&&e<=100}),100),$f[Kd]=hl(),$f[wf]=hl(),$f[Sf]=hl(),$f.namePrefix={isVal:sn,v:In(Eo)},$f.enableDebug=hl(),$f.disableFlushOnBeforeUnload=hl(),$f.disableFlushOnUnload=hl(!1,"disableFlushOnBeforeUnload"),$f.expCfg=dl({inclScripts:!1,expLog:void 0,maxLogs:50}),$f));function Wf(e,t){return(e=e||t)<6e4&&(e=6e4),+e}var Yf=function(e){function t(){var n,r,i,a,o,s,u,c,l,d,f,p,h,g,v,m,y,b,w,x,S=e.call(this)||this;return S.identifier=vc,S.priority=180,S.autoRoutePVDelay=500,aa(t,S,(function(e,t){var S=t[Gd];function T(t,n,r,i,a){e[Jd]().throwInternal(t,n,r,i,a)}function k(){n=null,r=null,i=null,a=null,o=null,s=null,u=!1,c=!1,l=!1,d=!1,f=!1,p=!1,h=!1,g=!1,m=!1;var t=vs(!0);b=t&&t[uf]||"",w=null,x=null,v=null,Cn(e,"config",{g:function(){return v}})}k(),e.getCookieMgr=function(){return function(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var r=t.cookieCfg;n=r&&r[Sl]?r[Sl]:Ll(t)}return n||(n=function(e,t){var n=Ll[Sl]||El[Sl];return n||(n=Ll[Sl]=Ll(e,t),El[Sl]=n),n}(t,(e||{})[Aa])),n}(e[Xd])},e.processTelemetry=function(t,n){e.processNext(t,n)},e.trackEvent=function(t,n){try{var r=Ic(t,Mc[Wd],Mc[Yd],e[Jd](),n);e[Xd][Zd](r)}catch(e){T(2,39,"trackTrace failed, trace will not be collected: "+ts(e),{exception:_n(e)})}},e.startTrackEvent=function(e){try{n.start(e)}catch(e){T(1,29,"startTrackEvent failed, event will not be collected: "+ts(e),{exception:_n(e)})}},e.stopTrackEvent=function(e,t,r){try{n.stop(e,void 0,t,r)}catch(e){T(1,30,"stopTrackEvent failed, event will not be collected: "+ts(e),{exception:_n(e)})}},e.trackTrace=function(t,n){try{var r=Ic(t,_c[Wd],_c[Yd],e[Jd](),n);e[Xd][Zd](r)}catch(e){T(2,39,"trackTrace failed, trace will not be collected: "+ts(e),{exception:_n(e)})}},e.trackMetric=function(t,n){try{var r=Ic(t,Dc[Wd],Dc[Yd],e[Jd](),n);e[Xd][Zd](r)}catch(e){T(1,36,"trackMetric failed, metric will not be collected: "+ts(e),{exception:_n(e)})}},e[Qd]=function(e,t){try{var n=e||{};i[Qd](n,pa(pa(pa({},n.properties),n.measurements),t)),m&&o[ef](n.name,n.uri)}catch(e){T(1,37,"trackPageView failed, page view will not be collected: "+ts(e),{exception:_n(e)})}},e[tf]=function(t,n,r){var i=br();if(i&&(t.refUri=void 0===t.refUri?i.referrer:t.refUri),an(t[nf])){var a=(n||t[rf]||{})[af]||0;t[nf]=new Date((new Date).getTime()-a)}var o=Ic(t,Rc[Wd],Rc[Yd],e[Jd](),n,r);e[Xd][Zd](o)},e[of]=function(t,n,r){var i=Ic(t,Nc[Wd],Nc[Yd],e[Jd](),n,r);e[Xd][Zd](i)},e.trackPageViewPerformance=function(t,n){var r=t||{};try{a[sf](r),e[of](r,n)}catch(e){T(1,37,"trackPageViewPerformance failed, page view will not be collected: "+ts(e),{exception:_n(e)})}},e.startTrackPage=function(e){try{if("string"!=typeof e){var t=br();e=t&&t.title||""}r.start(e)}catch(e){T(1,31,"startTrackPage failed, page view may not be collected: "+ts(e),{exception:_n(e)})}},e.stopTrackPage=function(e,t,n,i){try{if("string"!=typeof e){var a=br();e=a&&a.title||""}if("string"!=typeof t){var s=vs();t=s&&s[uf]||""}r.stop(e,t,n,i),m&&o[ef](e,t)}catch(e){T(1,32,"stopTrackPage failed, page view will not be collected: "+ts(e),{exception:_n(e)})}},e[cf]=function(t,n,r){var i=t&&(t[lf]||t[df])||hn(t)&&t||{name:t&&typeof t,message:t||yc};t=t||{};var a=new Wc(e[Jd](),i,t[rf]||n,t.measurements,t.severityLevel,t.id).toInterface(),o=br();if(o&&(null==y?void 0:y.inclScripts)){var s=function(e){var t=e.getElementsByTagName("script"),n=[];return Vr(t,(function(e){var t=e[Co]("src");if(t){var r=e[Co]("crossorigin"),i=!0===e.hasAttribute("async"),a=!0===e.hasAttribute("defer"),o=e[Co]("referrerpolicy"),s={url:t};r&&(s.crossOrigin=r),i&&(s.async=i),a&&(s.defer=a),o&&(s.referrerPolicy=o),n[Ia](s)}})),n}(o);a[rf].exceptionScripts=JSON.stringify(s)}if(null==y?void 0:y.expLog){var u=y.expLog();u&&u.logs&&ln(u.logs)&&(a[rf].exceptionLog=u.logs.slice(0,y.maxLogs).join("\n"))}var c=Ic(a,Wc[Wd],Wc[Yd],e[Jd](),n,r);e[Xd][Zd](c)},e.trackException=function(t,n){t&&!t[lf]&&t[df]&&(t[lf]=t[df]);try{e[cf](t,n)}catch(e){T(1,35,"trackException failed, exception will not be collected: "+ts(e),{exception:_n(e)})}},e[ff]=function(t){var n=t&&t[df],r=t&&t.evt;try{if(!r){var i=kr();i&&(r=i.event)}var a=t&&t.url||(br()||{}).URL,o=t[pf]||"window.onerror@"+a+":"+(t[hf]||0)+":"+(t[gf]||0),s={errorSrc:o,url:a,lineNumber:t[hf]||0,columnNumber:t[gf]||0,message:t[vf]};!function(e,t,n,r,i){return!i&&sn(e)&&("Script error."===e||"Script error"===e)}(t.message,t.url,t.lineNumber,t.columnNumber,t[df])?(t[pf]||(t[pf]=o),e.trackException({exception:t,severityLevel:3},s)):function(t,n){var r=Ic(t,Wc[Wd],Wc[Yd],e[Jd](),n);e[Xd][Zd](r)}(Wc[mf]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",a,t[hf]||0,t[gf]||0,n,r,null,o),s)}catch(e){var u=n?n.name+", "+n[vf]:"null";T(1,11,"_onError threw exception while logging error, error will not be collected: "+ts(e),{exception:_n(e),errorString:u})}},e[yf]=function(t){if(e[Xd])return e[Xd][yf](t);s||(s=[]),s.push(t)},e.initialize=function(T,k,C,A){if(!e.isInitialized()){an(k)&&Pn("Error initializing"),t.initialize(T,k,C,A);try{x=sd(Ls(e.identifier),k.evtNamespace&&k.evtNamespace()),s&&(Vr(s,(function(e){k[yf](e)})),s=null),function(t){var n=e.identifier,r=e[Xd];e[Gd](nu(t,(function(){var i,a,o=Md(null,t,r);v=o.getExtCfg(n,Xf),y=v.expCfg,m=v[bf],t.storagePrefix&&(i=t.storagePrefix,oc=i||""),rn((a=v)[Kd])||(a[Kd]?(ic=!1,ac=!1):(ic=lc(!0),ac=pc(!0))),u=v[wf],function(){if(!c&&u){var t=["/browserLinkSignalR/","/__browserLink/"];e[Gd](e[yf]((function(e){if(u&&e.baseType===ul[Wd]){var n=e.baseData;if(n)for(var r=0;r=0)return!1}return!0}))),c=!0}}()})))}(T),a=new zf(e[Xd]),i=new Of(e,v.overridePageViewDuration,e[Xd],a),o=new Hf(e[Jd](),(function(t,n,r){return function(t,n,r){var i={PageName:t,PageUrl:n};e.trackMetric({name:"PageVisitTime",average:r,max:r,min:r,sampleCount:1},i)}(t,n,r)})),(n=new Kf(e[Jd](),"trackEvent")).action=function(t,n,r,i,a){i||(i={}),a||(a={}),i.duration=r[qd](),e.trackEvent({name:t,properties:i,measurements:a})},(r=new Kf(e[Jd](),"trackPageView")).action=function(t,n,r,i,a){an(i)&&(i={}),i.duration=r[qd]();var o={name:t,uri:n,properties:i,measurements:a};e[tf](o,i)},wr()&&(E=kr(),I=vs(!0),e[Gd](nu(v,(function(){(f=v.disableExceptionTracking)||p||v.autoExceptionInstrumented||(S(Fd(E,"onerror",{ns:x,rsp:function(t,n,r,i,a,o){f||!0===t.rslt||e[ff](Wc[mf](n,r,i,a,o,t.evt))}},!1)),p=!0)}))),function(t,n){e[Gd](nu(v,(function(){h=!0===v[Tf],p=p||v[kf],h&&!g&&(S(Fd(t,"onunhandledrejection",{ns:x,rsp:function(t,r){h&&!0!==t.rslt&&e[ff](Wc[mf](function(e){if(e&&e.reason){var t=e.reason;return!sn(t)&&un(t[qd])?t[qd]():_n(t)}return e||""}(r),n?n[uf]:"",0,0,r,t.evt))}},!1)),v[kf]=g=!0)})))}(E,I),function(){var t=kr(),n=vs(!0);e[Gd](nu(v,(function(){if(l=!0===v[Sf],t&&l&&!d&&Ar()){var r=Ar();un(r.pushState)&&un(r.replaceState)&&typeof Event!==ua&&function(t,n,r){if(!d){var i=v.namePrefix||"";S(Fd(n,"pushState",{ns:x,rsp:function(){l&&(Gf(t,cl(i+"pushState")),Gf(t,cl(i+"locationchange")))}},!0)),S(Fd(n,"replaceState",{ns:x,rsp:function(){l&&(Gf(t,cl(i+"replaceState")),Gf(t,cl(i+"locationchange")))}},!0)),ud(t,i+"popstate",(function(){l&&Gf(t,cl(i+"locationchange"))}),x),ud(t,i+"locationchange",(function(){if(w?(b=w,w=r&&r[uf]||""):w=r&&r[uf]||"",l){var t=function(){var t,n,r=null;if(e[Xd]&&e[Xd].getTraceCtx&&(r=e[Xd].getTraceCtx(!1)),!r){var i=e[Xd].getPlugin(gc);if(i){var a=i.plugin.context;a&&(t=a.telemetryTrace,n=t||{},r={getName:function(){return n[Mu]},setName:function(e){n[Mu]=e},getTraceId:function(){return n.traceID},setTraceId:function(e){Qc(e)&&(n.traceID=e)},getSpanId:function(){return n.parentID},setSpanId:function(e){el(e)&&(n.parentID=e)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(e){n.traceFlags=e}})}}return r}();if(t){t.setTraceId(function(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=Eo,r=0;r<4;r++)n+=t[15&(e=Is())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&Is())|0];return tr(n,0,8)+tr(n,9,4)+"4"+tr(n,13,3)+i+tr(n,16,3)+tr(n,19,12)}());var n="_unknown_";r&&r.pathname&&(n=r.pathname+(r.hash||"")),t.setName(xc(e[Jd](),n))}Ii(function(t){e[Qd]({refUri:t,properties:{duration:0}})}.bind(e,b),e.autoRoutePVDelay)}}),x),d=!0}}(t,r,n)}})))}())}catch(t){throw e.setInitialized(!1),t}var E,I}},e._doTeardown=function(e,t){i&&i.teardown(e,t),cd(window,null,null,x),k()},Cn(e,"_pageViewManager",{g:function(){return i}}),Cn(e,"_pageViewPerformanceManager",{g:function(){return a}}),Cn(e,"_pageVisitTimeManager",{g:function(){return o}}),Cn(e,"_evtNamespace",{g:function(){return"."+x}})})),S}return ga(t,e),t.Version="3.3.3",t}(Hd),Jf="blkVal",Zf="length",Qf="rdOnly",ep="notify",tp="warnToConsole",np="throwInternal",rp="setDf",ip="watch",ap="logger",op="apply",sp="push",up="splice",cp="hdlr",lp="cancel",dp="identifier",fp="isInitialized",pp="getPlugin",hp="time",gp="processNext",vp="unload",mp="createNew",yp="teardown",bp="messageId",wp="message",xp="isAsync",Sp="diagLog",Tp="_doTeardown",kp="update",Cp="getNext",Ap="setNextPlugin",Ep="userAgent",Ip="split",Mp="nodeType",_p="replace",Pp="type",Dp="handler",Lp="isChildEvt",Rp="getCtx",Np="setCtx",Op="complete",Up=/-([a-z])/g,jp=/([^\w\d_$])/g,Fp=/^(\d+[\w\d_$])/;function Bp(e){var t=e;return t&&sn(t)&&(t=(t=(t=t[_p](Up,(function(e,t){return t.toUpperCase()})))[_p](jp,"_"))[_p](Fp,(function(e,t){return"_"+t}))),t}function Vp(e,t){return!(!e||!t)&&-1!==Si(e,t)}function $p(e,t,n,r,i){e&&t&&n&&(!1!==i||rn(e[t]))&&(e[t]=function(e,t){var n=null,r=null;return un(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t][op](r,e)}}(n,r))}Object.getPrototypeOf;var zp=void 0,Hp="",qp="core",Kp="disabled",Gp="extensionConfig",Xp="processTelemetry",Wp="priority",Yp="getPerfMgr",Jp="JSON",Zp=null,Qp=null;function eh(){return Boolean(typeof JSON===sa&&JSON||null!==mr(Jp))}function th(){return eh()?JSON||mr(Jp):null}var nh=4294967296,rh=4294967295,ih=123456789,ah=987654321,oh=!1,sh=ih,uh=ah;function ch(){try{var e=2147483647&Qr();(t=(Math.random()*nh^e)+e)<0&&(t>>>=0),sh=ih+t&rh,uh=ah-t&rh,oh=!0}catch(e){}var t}function lh(e){var t=0,n=mr("crypto")||mr("msCrypto");return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&rh),0===t&&function(){var e=Cr();if(e&&(e[Ep]!==Qp||null===Zp)){var t=((Qp=e[Ep])||Hp).toLowerCase();Zp=Vp(t,"msie")||Vp(t,"trident/")}return Zp}()&&(oh||ch(),t=function(e){var t=((uh=36969*(65535&uh)+(uh>>16)&rh)<<16)+(65535&(sh=18e3*(65535&sh)+(sh>>16)&rh))>>>0&rh|0;return t>>>=0}()&rh),0===t&&(t=Math.floor(nh*Math.random()|0)),e||(t>>>=0),t}var dh="3.3.3",fh="."+function(e){void 0===e&&(e=22);for(var t=lh()>>>0,n=0,r=Hp;r[Zf]>>=6,5===n&&(t=(lh()<<2&4294967295|3&t)>>>0,n=0);return r}(6),ph=0;function hh(e){return 1===e[Mp]||9===e[Mp]||!+e[Mp]}function gh(e,t){return void 0===t&&(t=!1),Bp(e+ph+++(t?"."+dh:Hp)+fh)}function vh(e){var t={id:gh("_aiData-"+(e||Hp)+"."+dh),accept:function(e){return hh(e)},get:function(e,n,r,i){var a=e[t.id];return a?a[Bp(n)]:(i&&(a=function(e,t){var n=t[e.id];if(!n){n={};try{hh(t)&&Cn(t,e.id,{e:!1,v:n})}catch(e){}}return n}(t,e),a[Bp(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(e){}}};return t}var mh="on",yh="attachEvent",bh="addEventListener",wh="detachEvent",xh="removeEventListener",Sh="events",Th=(gh("aiEvtPageHide"),gh("aiEvtPageShow"),/\.[\.]+/g),kh=/[\.]+$/,Ch=1,Ah=vh("events"),Eh=/^([^.]*)(?:\.(.+)|)/;function Ih(e){return e&&e[_p]?e[_p](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,Hp):e}function Mh(e,t){var n;if(t){var r=Hp;ln(t)?(r=Hp,Vr(t,(function(e){(e=Ih(e))&&("."!==e[0]&&(e="."+e),r+=e)}))):r=Ih(t),r&&("."!==r[0]&&(r="."+r),e=(e||Hp)+r)}var i=Eh.exec(e||Hp)||[];return(n={})[Pp]=i[1],n.ns=(i[2]||Hp).replace(Th,".").replace(kh,Hp)[Ip](".").sort().join("."),n}function _h(e,t,n){void 0===n&&(n=!0);var r=Ah.get(e,Sh,{},n),i=r[t];return i||(i=r[t]=[]),i}function Ph(e,t,n,r){e&&t&&t[Pp]&&(e[xh]?e[xh](t[Pp],n,r):e[wh]&&e[wh](mh+t[Pp],n))}function Dh(e,t,n,r){for(var i=t[Zf];i--;){var a=t[i];a&&(n.ns&&n.ns!==a.evtName.ns||r&&!r(a)||(Ph(e,a.evtName,a[Dp],a.capture),t[up](i,1)))}}function Lh(e){return e&&cn(e)&&(e.isVal||e.fb||bn(e,"v")||bn(e,"mrg")||bn(e,"ref")||e.set)}function Rh(e,t,n){var r,i=n.dfVal||on;if(t&&n.fb){var a=n.fb;ln(a)||(a=[a]);for(var o=0;o0&&function(e,t){zh||(zh=Zr("AggregationError",(function(e,t){t[Zf]>1&&(e.errors=t[1])})));var n="Watcher error(s): ";throw Vr(t,(function(e,t){n+="\n".concat(t," > ").concat(_n(e))})),new zh(n,t||[])}(0,t)}}return(t={prop:r,ro:i,rf:a})[Jf]=o,t[cp]=e,t.add=function(e){if(e&&e.h[Zf]>0){u||(u=[]),c||(c=Ii((function(){c=null,d()}),0));for(var t=0;t=i)){var a=!0,o="AITR_"+n[bp];if(u[o]?a=!1:u[o]=!0,a&&(t<=r&&(e.queue[sp](n),s++,l(1===t?"error":"warn",n)),s===i)){var c="Internal events throttle limit per PageView reached for this app.",d=new ug(23,c,!1);e.queue[sp](d),1===t?e.errorToConsole(c):e[tp](c)}}}function l(e,n){var r=function(e){var t,n=ng;return n||!0===e.disableDbgExt||(n=ng||((t=mr("Microsoft"))&&(ng=t.ApplicationInsights),ng)),n?n.ChromeDbgExt:null}(t||{});r&&r[Sp]&&r[Sp](e,n)}o=function(t){return eg(Qh(t,ig,e).cfg,(function(e){var t=e.cfg;n=t.loggingLevelConsole,r=t.loggingLevelTelemetry,i=t.maxMessageLimit,a=t.enableDebug}))}(t||{}),e.consoleLoggingLevel=function(){return n},e[np]=function(t,r,i,o,s){void 0===s&&(s=!1);var d=new ug(r,i,s,o);if(a)throw _n(d);var f=ag[t]||rg;if(rn(d[wp]))l("throw"+(1===t?"Critical":"Warning"),d);else{if(s){var p=+d[bp];!u[p]&&n>=t&&(e[f](d[wp]),u[p]=!0)}else n>=t&&e[f](d[wp]);c(t,d)}},e.debugToConsole=function(e){sg("debug",e),l("warning",e)},e[tp]=function(e){sg("warn",e),l("warning",e)},e.errorToConsole=function(e){sg("error",e),l("error",e)},e.resetInternalMessageCount=function(){s=0,u={}},e.logInternalMessage=c,e[vp]=function(e){o&&o.rm(),o=null}}))}return e.__ieDyn=1,e}();function dg(e,t,n,r,i,a){void 0===a&&(a=!1),function(e){return e||new lg}(e)[np](t,n,r,i,a)}var fg="ctx",pg="ParentContextKey",hg="ChildrenContextKey",gg=function(){function e(t,n,r){var i,a=this;a.start=Qr(),a.name=t,a[xp]=r,a[Lp]=function(){return!1},un(n)&&Cn(a,"payload",{g:function(){return!i&&un(n)&&(i=n(),n=null),i}}),a[Rp]=function(t){return t?t===e[pg]||t===e[hg]?a[t]:(a[fg]||{})[t]:null},a[Np]=function(t,n){t&&(t===e[pg]?(a[t]||(a[Lp]=function(){return!0}),a[t]=n):t===e[hg]?a[t]=n:(a[fg]=a[fg]||{})[t]=n)},a[Op]=function(){var t=0,n=a[Rp](e[hg]);if(ln(n))for(var r=0;r0&&(Vr(t,(function(e){try{e.func.call(e.self,e.args)}catch(e){dg(n[ap],2,73,"Unexpected Exception during onComplete - "+_n(e))}})),a=[])}return e},ctx:{core:function(){return n},diagLog:function(){return cg(n,t.cfg)},getCfg:function(){return t.cfg},getExtCfg:function(e,n){var r=s(e,!0);return n&&xn(n,(function(e,n){if(an(r[e])){var i=t.cfg[e];!i&&an(i)||(r[e]=i)}Oh(t,r,e,n)})),t[rp](r,n)},getConfig:function(e,n,r){void 0===r&&(r=!1);var i,a=s(e,!1),o=t.cfg;return!a||!a[n]&&an(a[n])?!o[n]&&an(o[n])||(i=o[n]):i=a[n],i||!an(i)?i:r},hasNext:function(){return!!i},getNext:function(){return i},setNext:function(e){i=e},iterate:function(e){for(var t;t=o._next();){var n=t[pp]();n&&e(n)}},onComplete:function(e,t){for(var n=[],r=2;r0){var o=null;Vr(e,(function(e){if(a||r!==e||(a=!0),a&&e&&un(e[Xp])){var s=function(e,t,n){var r,i=null,a=un(e[Xp]),o=un(e[Ap]),s={getPlugin:function(){return e},getNext:function(){return i},processTelemetry:function(r,c){u(c=c||function(){var r;return e&&un(e[Sg])&&(r=e[Sg]()),r||(r=Cg(s,t,n)),r}(),(function(t){if(!e||!a)return!1;var n=yg(e);return!n[yp]&&!n[Kp]&&(o&&e[Ap](i),e[Xp](r,t),!0)}),"processTelemetry",(function(){return{item:r}}),!r.sync)||c[gp](r)},unload:function(t,n){u(t,(function(){var r=!1;if(e){var i=yg(e),a=e[qp]||i[qp];!e||a&&a!==t.core()||i[yp]||(i[qp]=null,i[yp]=!0,i[fp]=!1,e[yp]&&!0===e[yp](t,n)&&(r=!0))}return r}),"unload",(function(){}),n[xp])||t[gp](n)},update:function(t,n){u(t,(function(){var r=!1;if(e){var i=yg(e),a=e[qp]||i[qp];!e||a&&a!==t.core()||i[yp]||e[kp]&&!0===e[kp](t,n)&&(r=!0)}return r}),"update",(function(){}),!1)||t[gp](n)},_id:r=e?e[dp]+"-"+e[Wp]+"-"+Tg++:"Unknown-0-"+Tg++,_setNext:function(e){i=e}};function u(t,n,a,o,s){var u=!1,c=e?e[dp]:wg,l=t[xg];return l||(l=t[xg]={}),t.setNext(i),e&&function(e,t,n,r,i){if(e){var o=e;if(o[Yp]&&(o=o[Yp]()),o){var s=void 0,u=o[Rp](vg);try{if(s=o.create(c+":"+a,r,i)){if(u&&s[Np]&&(s[Np](gg[pg],u),u[Rp]&&u[Np])){var l=u[Rp](gg[hg]);l||(l=[],u[Np](gg[hg],l)),l[sp](s)}return o[Np](vg,s),n()}}catch(e){s&&s[Np]&&s[Np]("exception",e)}finally{s&&o.fire(s),o[Np](vg,u)}}}n()}(t[qp](),0,(function(){l[r]=!0;try{var e=i?i._id:Hp;e&&(l[e]=!1),u=n(t)}catch(e){var o=!i||l[i._id];o&&(u=!0),i&&o||dg(t[Sp](),1,73,"Plugin ["+c+"] failed during "+a+" - "+_n(e)+", run flags: "+_n(l))}}),o,s),u}return Fn(s)}(e,t,n);i||(i=s),o&&o._setNext(s),o=s}}))}return r&&!i?Ig([r],t,n):i}var Mg,_g,Pg,Dg="getPlugin",Lg=((bg={})[Gp]={isVal:function(e){return!an(e)},v:{}},bg),Rg=function(){function e(){var t,n,r,i,a,o=this;function s(e){void 0===e&&(e=null);var t=e;if(!t){var i=n||Cg(null,{},o[qp]);t=r&&r[Dg]?i[mp](null,r[Dg]):i[mp](null,r)}return t}function u(e,t,i){Qh(e,Lg,cg(t)),!i&&t&&(i=t.getProcessTelContext()[Cp]());var a=r;r&&r[Dg]&&(a=r[Dg]()),o[qp]=t,n=Cg(i,e,t,a)}function c(){var e,s;t=!1,o[qp]=null,n=null,r=null,e=[],a={run:function(t){var n=e;e=[],Vr(n,(function(e){try{(e.rm||e.remove).call(e)}catch(e){dg(t,2,73,"Unloading:"+_n(e))}}))},add:function(t){t&&Br(e,t)}},s=[],i={add:function(e){e&&s[sp](e)},run:function(e,t){Vr(s,(function(n){try{n(e,t)}catch(t){dg(e[Sp](),2,73,"Unexpected error calling unload handler - "+_n(t))}})),s=[]}}}c(),aa(e,o,(function(e){e.initialize=function(e,n,r,i){u(e,n,i),t=!0},e[yp]=function(t,n){var o,s=e[qp];if(s&&(!t||s===t[qp]())){var u,l=!1,d=t||Ag(null,s,r&&r[Dg]?r[Dg]():r),f=n||((o={reason:0})[xp]=!1,o);return e[Tp]&&!0===e[Tp](d,f,p)?u=!0:p(),u}function p(){l||(l=!0,i.run(d,n),a.run(d[Sp]()),!0===u&&d[gp](f),c())}},e[kp]=function(t,n){var i=e[qp];if(i&&(!t||i===t[qp]())){var a,o=!1,s=t||Eg(null,i,r&&r[Dg]?r[Dg]():r),c=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(s,c,l)?a=!0:l(),a}function l(){o||(o=!0,u(s.getCfg(),s.core(),s[Cp]()))}},$p(e,"_addUnloadCb",(function(){return i}),"add"),$p(e,"_addHook",(function(){return a}),"add"),Cn(e,"_unloadHooks",{g:function(){return a}})})),o[Sp]=function(e){return s(e)[Sp]()},o[fp]=function(){return t},o.setInitialized=function(e){t=e},o[Ap]=function(e){r=e},o[gp]=function(e,t){t?t[gp](e):r&&un(r[Xp])&&r[Xp](e,null)},o._getTelCtx=s}return e.__ieDyn=1,e}(),Ng="Promise",Og="rejected";function Ug(e,t){return jg(e,(function(e){return t?t({status:"fulfilled",rejected:!1,value:e}):e}),(function(e){return t?t({status:Og,rejected:!0,reason:e}):e}))}function jg(e,t,n,r){var i=e;try{if(gn(e))(t||n)&&(i=e.then(t,n));else try{t&&(i=t(e))}catch(e){if(!n)throw e;i=n(e)}}finally{r&&function(e,t){var n=e;t&&(gn(e)?n=e.finally?e.finally(t):e.then((function(e){return t(),e}),(function(e){throw t(),e})):t())}(i,r)}return i}var Fg,Bg=!1,Vg=["pending","resolving","resolved",Og],$g="dispatchEvent";function zg(e){var t;return e&&e.createEvent&&(t=e.createEvent("Event")),!!t&&t.initEvent}var Hg,qg,Kg,Gg,Xg="unhandledRejection",Wg=Xg.toLowerCase(),Yg=[],Jg=0,Zg=10;function Qg(e){return un(e)?e.toString():_n(e)}function ev(e,t,n){var r,i,a=Hr(arguments,3),o=0,s=!1,u=[],c=Jg++,l=Yg.length>0?Yg[Yg.length-1]:void 0,d=!1,f=null;function p(t,n){try{Yg.push(c),d=!0,f&&f.cancel(),f=null;var i=e((function(e,i){u.push((function(){try{var a=2===o?t:n,s=rn(a)?r:un(a)?a(r):a;gn(s)?s.then(e,i):a?e(s):3===o?i(s):e(s)}catch(e){i(e)}})),s&&g()}),a);return i}finally{Yg.pop()}}function h(){return Vg[o]}function g(){if(u.length>0){var e=u.slice();u=[],d=!0,f&&f.cancel(),f=null,t(e)}}function v(e,t){return function(n){if(o===t){if(2===e&&gn(n))return o=1,void n.then(v(2,1),v(3,1));o=e,s=!0,r=n,g(),d||3!==e||f||(f=Ii(m,Zg))}}}function m(){if(!d)if(d=!0,Er())process.emit(Xg,r,i);else{var e=kr()||vr();!Hg&&(Hg=fr(Qt(mr,[Ng+"RejectionEvent"]).v)),function(e,t,n,r){var i=br();!Fg&&(Fg=fr(!!Qt(zg,[i]).v));var a=Fg.v?i.createEvent("Event"):r?new Event(t):{};if(n&&n(a),Fg.v&&a.initEvent(t,!1,!0),a&&e[$g])e[$g](a);else{var o=e["on"+t];if(o)o(a);else{var s=mr("console");s&&(s.error||s.log)(t,_n(a))}}}(e,Wg,(function(e){return Cn(e,"promise",{g:function(){return i}}),e.reason=r,e}),!!Hg.v)}}return Tn(i={then:p,catch:function(e){return p(void 0,e)},finally:function(e){var t=e,n=e;return un(e)&&(t=function(t){return e&&e(),t},n=function(t){throw e&&e(),t}),p(t,n)}},"state",{get:h}),Bg&&function(e,t,n,i){_g=_g||{toString:function(){return"[[PromiseResult]]"}},Pg=Pg||{toString:function(){return"[[PromiseIsHandled]]"}};var a={};a[Mg=Mg||{toString:function(){return"[[PromiseState]]"}}]={get:t},a[_g]={get:function(){return nn(r)}},a[Pg]={get:function(){return d}},kn(e,a)}(i,h),Pr()&&(i[Lr(11)]="IPromise"),i.toString=function(){return"IPromise"+(Bg?"["+c+(rn(l)?"":":"+l)+"]":"")+" "+h()+(s?" - "+Qg(r):"")},function(){un(n)||Dn(Ng+": executor is not a function - "+Qg(n));var e=v(3,0);try{n.call(i,v(2,0),e)}catch(t){e(t)}}(),i}function tv(e){return function(t){var n=Hr(arguments,1);return e((function(e,n){try{var r=[],i=1;jr(t,(function(t,a){t&&(i++,jg(t,(function(t){r[a]=t,0==--i&&e(r)}),n))})),0==--i&&e(r)}catch(e){n(e)}}),n)}}function nv(e){Vr(e,(function(e){try{e()}catch(e){}}))}function rv(e,t){return ev(rv,function(e){var t=fn(e)?e:0;return function(e){Ii((function(){nv(e)}),t)}}(t),e,t)}function iv(e,t){!qg&&(qg=fr(Qt(mr,[Ng]).v||null));var n=qg.v;if(!n)return rv(e);un(e)||Dn(Ng+": executor is not a function - "+_n(e));var r=0,i=new n((function(t,n){e((function(e){r=2,t(e)}),(function(e){r=3,n(e)}))}));return Tn(i,"state",{get:function(){return Vg[r]}}),i}function av(e){return ev(av,nv,e)}function ov(e,t){return!Gg&&(Gg=fr(iv)),Gg.v.call(this,e,t)}var sv=tv(ov);Lr(11);var uv="featureOptIn",cv="onCfgChangeReceive",lv="nonOverrideConfigs",dv="scheduleFetchTimeout";function fv(e,t,n,r){try{var i=n>r;i&&(e=null);var a=0==n?function(e,t,n,r,i,a,o){return fi(e||{},Zt[zt](arguments))}({},e):e;return a&&t&&!i&&xn(a,(function(e){var i=t[e];i&&(cn(a[e])&&cn(i)?a[e]=fv(a[e],i,++n,r):delete a[e])})),a}catch(e){}return e}var pv,hv="featureOptIn.",gv=".mode",vv=".onCfg",mv=".offCfg";var yv=void 0,bv=jn(((pv={syncMode:1,blkCdnCfg:yv,customEvtName:yv,cfgUrl:yv,overrideSyncFn:yv,overrideFetchFn:yv})[cv]=yv,pv[dv]=18e5,pv[lv]={instrumentationKey:!0,connectionString:!0,endpointUrl:!0},pv)),wv=function(e){function t(){var n,r,i,a,o,s,u,c,l,d,f,p,h,g,v,m,y=e.call(this)||this;y.priority=198,y.identifier="AppInsightsCfgSyncPlugin";var b=!1;return aa(t,y,(function(e,t){function y(){r=null,i=null,a=null,o=null,u=null,c=null,h=null,s=null,d=null,f=null,l=null,v=null,m=null,p=null}function w(t,n){if(t){if(r=t,n&&!b)return S();if(u&&!b)return e.core.updateCfg(t),!0}return!1}function x(){try{var e=vr();e&&function(e,t,n,r,i){if(void 0===i&&(i=!1),e)try{var a=Mh(t,r),o=!1;!function(e,t,n){if(t[Pp])Dh(e,_h(e,t[Pp]),t,n);else{var r=Ah.get(e,Sh,{});xn(r,(function(r,i){Dh(e,i,t,n)})),0===Un(r)[Zf]&&Ah.kill(e,Sh)}}(e,a,(function(e){return!((!a.ns||n)&&e[Dp]!==n||(o=!0,0))})),o||Ph(e,a,n,i)}catch(e){}}(e,null,null,a)}catch(e){}}function S(e){try{return m&&un(m)?m(r,e):function(e,t,n){var r,i,a=vr();if(a&&a.CustomEvent)try{return r=a,i=function(e,t){var n=null,r={detail:t||null};if(un(CustomEvent))n=new CustomEvent(e,r);else{var i=br();i&&i.createEvent&&(n=i.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,r)}return n}(e,{cfg:t||null,customDetails:n||null}),!!(r&&r.dispatchEvent&&i)&&(r.dispatchEvent(i),!0)}catch(e){}return!1}(i,r,e)}catch(e){}return!1}function T(e){try{return x(),e&&(i=e,function(){if(u){var e=vr();if(e)try{!function(e,t,n,r,i){var a;void 0===i&&(i=!1);var o=!1;if(e)try{var s=Mh(t,r);if(o=function(e,t,n,r){var i=!1;return e&&t&&t[Pp]&&n&&(e[bh]?(e[bh](t[Pp],n,r),i=!0):e[yh]&&(e[yh](mh+t[Pp],n),i=!0)),i}(e,s,n,i),o&&Ah.accept(e)){var u=((a={guid:Ch++,evtName:s})[Dp]=n,a.capture=i,a);_h(e,s.type)[sp](u)}}catch(e){}}(e,i,(function(e){var t=e&&e.detail;if(p&&t)p(t);else{var n=t&&t.cfg,r=n&&oi(n)&&I(n);r&&w(r)}}),a,!0)}catch(e){}}}()),!0}catch(e){}return!1}function k(e,t,n){var r=vr(),i=r&&r.fetch||null;if(e&&i&&un(i))try{var a=new Request(e,{method:"GET"});Ug(fetch(a),(function(e){var r=e.value;e.rejected?E(t,400):r.ok?Ug(r.text(),(function(e){E(t,r.status,e.value,n)})):E(t,r.status,null,n)}))}catch(e){}}function C(e,t,n){try{var r=new XMLHttpRequest;r.open("GET",e),r.onreadystatechange=function(){r.readyState===XMLHttpRequest.DONE&&E(t,r.status,r.responseText,n)},r.onerror=function(){E(t,400)},r.ontimeout=function(){E(t,400)},r.send()}catch(e){}}function A(t,n,r){try{if(t>=200&&t<400&&n){f=0;var i=th();if(i){var a=function(e,t){try{if(!e||!e.enabled)return null;if(!e[uv])return e.config;var n=e[uv],r=e.config||{};return xn(n,(function(n){var i=function(e,t,n){var r;if(!t||!t.enabled)return null;var i=(t[uv]||{})[e]||{mode:1},a=i.mode,o=i.onCfg,s=i.offCfg,u=(n||{})[e]||{mode:2},c=u.mode,l=u.onCfg,d=u.offCfg,f=!!u.blockCdnCfg,p=hv+e+vv,h=hv+e+mv,g=c,v=l,m=d;return f||(4===a||5===a?(g=4==a?3:2,v=o||l,m=s||d):2===a||2===c?(g=2,v=l||o,m=d||s):3===a?(g=3,v=l||o,m=d||s):1===a&&1===c&&(g=1)),(r={})[hv+e+gv]=g,r[p]=v,r[h]=m,r}(n,e,t.config[uv]);an(i)||(xn(i,(function(e,t){yi(r,e,t)})),function(e,t,n){var r=t[hv+e+gv],i=t[hv+e+vv],a=t[hv+e+mv],o=null;3===r&&(o=i),2===r&&(o=a),o&&xn(o,(function(e,t){yi(n,e,t)}))}(n,i,r))})),r}catch(e){}return null}(i.parse(n),e.core),o=a&&oi(a)&&I(a);o&&w(o,r)}}else f++;f<3&&M()}catch(e){}}function E(e,t,n,r){try{e(t,n,r)}catch(e){}}function I(e,t){var n=null;try{e&&(n=fv(e,h,0,5))}catch(e){}return n}function M(){!s&&d&&(s=Ii((function(){s=null,g(o,A,c)}),d)).unref()}function _(){s&&s.cancel(),s=null,f=0}y(),e.initialize=function(s,y,b,w){var E,I;t.initialize(s,y,b,w),E=gh(e.identifier),I=y.evtNamespace&&y.evtNamespace(),a=I?Mh("xx",ln(I)?[E].concat(I):[E,I]).ns[Ip]("."):E,function(t){var a=e.identifier,s=e.core;e._addHook(eg(t,(function(){var e=Cg(null,t,s);n=e.getExtCfg(a,bv);var d=l;l=!!n.blkCdnCfg,an(d)||d===l||(!l&&o?g&&g(o,A,c):_()),an(u)&&(u=2===n.syncMode),an(c)&&(c=1===n.syncMode);var f=n.customEvtName||"ai_cfgsync";i!==f&&(u?T(f):(x(),i=f)),an(o)&&(o=n.cfgUrl),o||(r=t,c&&S())}))),m=n.overrideSyncFn,v=n.overrideFetchFn,p=n[cv],h=n[lv],d=n[dv],g=function(){var e=v;return an(e)&&(function(e){var t=!1;try{t=!!mr("fetch");mr("Request")}catch(e){}return t}()?e=k:function(){var e=!1;try{e=!!mr("XMLHttpRequest")}catch(e){}return e}()&&(e=C)),e}(),f=0,o&&!l&&g&&g(o,A,c)}(s)},e.getCfg=function(){return r},e.pause=function(){b=!0,_()},e.resume=function(){b=!1,M()},e.setCfg=function(e){return w(e)},e.sync=function(e){return S(e)},e.updateEventListenerName=function(e){return T(e)},e._doTeardown=function(e,t){x(),_(),y()},e._getDbgPlgTargets=function(){return[c,u,i,l,h]},e.processTelemetry=function(t,n){e.processNext(t,n)}})),y}return ga(t,e),t.__ieDyn=1,t}(Rg),xv="sampleRate",Sv="ProcessLegacy",Tv="http.method",kv="https://web.archive.org/web/20241212195116/https://dc.services.visualstudio.com",Cv="/v2/track",Av="not_specified",Ev="split",Iv="length",Mv="toLowerCase",_v="toString",Pv="push",Dv="removeItem",Lv="name",Rv="message",Nv="stringify",Ov="pathname",Uv="exceptions",jv="parsedStack",Fv="properties",Bv="measurements",Vv="sizeInBytes",$v="typeName",zv="severityLevel",Hv="problemGroup",qv="isManual",Kv="CreateFromInterface",Gv="assembly",Xv="fileName",Wv="hasFullStack",Yv="level",Jv="method",Zv="line",Qv="duration",em="receivedResponse",tm="toLowerCase",nm="blkVal",rm="length",im="rdOnly",am="notify",om="warnToConsole",sm="throwInternal",um="setDf",cm="watch",lm="logger",dm="apply",fm="push",pm="splice",hm="hdlr",gm="cancel",vm="initialize",mm="identifier",ym="isInitialized",bm="value",wm="getPlugin",xm="name",Sm="time",Tm="processNext",km="unload",Cm="createNew",Am="teardown",Em="messageId",Im="message",Mm="isAsync",_m="diagLog",Pm="_doTeardown",Dm="update",Lm="getNext",Rm="setNextPlugin",Nm="userAgent",Om="split",Um="nodeType",jm="replace",Fm="type",Bm="handler",Vm="status",$m="getResponseHeader",zm="getAllResponseHeaders",Hm="isChildEvt",qm="data",Km="getCtx",Gm="setCtx",Xm="complete",Wm="itemsReceived",Ym="urlString",Jm="sendPOST",Zm="headers",Qm="timeout",ey="setRequestHeader",ty=void 0,ny="",ry="core",iy="disabled",ay="extensionConfig",oy="processTelemetry",sy="priority",uy="getPerfMgr",cy=/-([a-z])/g,ly=/([^\w\d_$])/g,dy=/^(\d+[\w\d_$])/;function fy(e){var t=e;return t&&sn(t)&&(t=(t=(t=t[jm](cy,(function(e,t){return t.toUpperCase()})))[jm](ly,"_"))[jm](dy,(function(e,t){return"_"+t}))),t}function py(e,t){return!(!e||!t)&&-1!==Si(e,t)}function hy(e){return e&&e.toISOString()||""}function gy(e){return hn(e)?e[xm]:ny}function vy(e,t,n,r,i){e&&t&&n&&(!1!==i||rn(e[t]))&&(e[t]=function(e,t){var n=null,r=null;return un(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t][dm](r,e)}}(n,r))}function my(e){return e&&On&&(e=la(On({},e))),e}function yy(e,t,n,r,i,a){var o=arguments,s=o[0]||{},u=o[rm],c=!1,l=1;for(u>0&&pn(s)&&(c=s,s=o[l]||{},l++),cn(s)||(s={});l>>=0),qy=$y+t&Vy,Ky=zy-t&Vy,Hy=!0}catch(e){}var t}function Xy(e){var t=0,n=mr("crypto")||mr("msCrypto");return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&Vy),0===t&&function(){var e=Cr();if(e&&(e[Nm]!==Py||null===_y)){var t=((Py=e[Nm])||ny)[tm]();_y=py(t,Ey)||py(t,Iy)}return _y}()&&(Hy||Gy(),t=function(e){var t=((Ky=36969*(65535&Ky)+(Ky>>16)&Vy)<<16)+(65535&(qy=18e3*(65535&qy)+(qy>>16)&Vy))>>>0&Vy|0;return t>>>=0}()&Vy),0===t&&(t=Math.floor(By*Math.random()|0)),e||(t>>>=0),t}var Wy="3.3.3",Yy="."+function(e){void 0===e&&(e=22);for(var t=Xy()>>>0,n=0,r=ny;r[rm]>>=6,5===n&&(t=(Xy()<<2&4294967295|3&t)>>>0,n=0);return r}(6),Jy=0;function Zy(e){return 1===e[Um]||9===e[Um]||!+e[Um]}function Qy(e,t){return void 0===t&&(t=!1),fy(e+Jy+++(t?"."+Wy:ny)+Yy)}function eb(e){var t={id:Qy("_aiData-"+(e||ny)+"."+Wy),accept:function(e){return Zy(e)},get:function(e,n,r,i){var a=e[t.id];return a?a[fy(n)]:(i&&(a=function(e,t){var n=t[e.id];if(!n){n={};try{Zy(t)&&Cn(t,e.id,{e:!1,v:n})}catch(e){}}return n}(t,e),a[fy(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(e){}}};return t}function tb(e){return e&&cn(e)&&(e.isVal||e.fb||bn(e,"v")||bn(e,"mrg")||bn(e,"ref")||e.set)}function nb(e,t,n){var r,i=n.dfVal||on;if(t&&n.fb){var a=n.fb;ln(a)||(a=[a]);for(var o=0;o0&&function(e,t){db||(db=Zr("AggregationError",(function(e,t){t[rm]>1&&(e.errors=t[1])})));var n="Watcher error(s): ";throw Vr(t,(function(e,t){n+="\n".concat(t," > ").concat(_n(e))})),new db(n,t||[])}(0,t)}}return(t={prop:r,ro:i,rf:a})[nm]=o,t[hm]=e,t.add=function(e){if(e&&e.h[rm]>0){u||(u=[]),c||(c=Ii((function(){c=null,d()}),0));for(var t=0;t=i)){var a=!0,o="AITR_"+n[Em];if(u[o]?a=!1:u[o]=!0,a&&(t<=r&&(e.queue[fm](n),s++,l(1===t?"error":"warn",n)),s===i)){var c="Internal events throttle limit per PageView reached for this app.",d=new _b(23,c,!1);e.queue[fm](d),1===t?e.errorToConsole(c):e[om](c)}}}function l(e,n){var r=function(e){var t,n=kb;return n||!0===e.disableDbgExt||(n=kb||((t=mr("Microsoft"))&&(kb=t.ApplicationInsights),kb)),n?n.ChromeDbgExt:null}(t||{});r&&r[_m]&&r[_m](e,n)}o=function(t){return Sb(xb(t,Ab,e).cfg,(function(e){var t=e.cfg;n=t.loggingLevelConsole,r=t.loggingLevelTelemetry,i=t.maxMessageLimit,a=t.enableDebug}))}(t||{}),e.consoleLoggingLevel=function(){return n},e[sm]=function(t,r,i,o,s){void 0===s&&(s=!1);var d=new _b(r,i,s,o);if(a)throw _n(d);var f=Eb[t]||Cb;if(rn(d[Im]))l("throw"+(1===t?"Critical":"Warning"),d);else{if(s){var p=+d[Em];!u[p]&&n>=t&&(e[f](d[Im]),u[p]=!0)}else n>=t&&e[f](d[Im]);c(t,d)}},e.debugToConsole=function(e){Mb("debug",e),l("warning",e)},e[om]=function(e){Mb("warn",e),l("warning",e)},e.errorToConsole=function(e){Mb("error",e),l("error",e)},e.resetInternalMessageCount=function(){s=0,u={}},e.logInternalMessage=c,e[km]=function(e){o&&o.rm(),o=null}}))}return e.__ieDyn=1,e}();function Lb(e){return e||new Db}function Rb(e,t,n,r,i,a){void 0===a&&(a=!1),Lb(e)[sm](t,n,r,i,a)}function Nb(e,t){Lb(e)[om](t)}function Ob(e,t,n){var r=t[Iv],i=function(e,t){var n;return t&&(t=ai(In(t)))[Iv]>150&&(n=er(t,0,150),Rb(e,2,57,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),n||t}(e,t);if(i[Iv]!==r){for(var a=0,o=i;void 0!==n[o];)a++,o=er(i,0,147)+zb(a);i=o}return i}function Ub(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=ai(In(t)))[Iv]>n&&(r=er(t,0,n),Rb(e,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function jb(e,t){return $b(e,t,2048,66)}function Fb(e,t){var n;return t&&t[Iv]>32768&&(n=er(t,0,32768),Rb(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function Bb(e,t){if(t){var n={};xn(t,(function(t,r){if(cn(r)&&Ny())try{r=Oy()[Nv](r)}catch(t){Rb(e,2,49,"custom property is not valid",{exception:t},!0)}r=Ub(e,r,8192),t=Ob(e,t,n),n[t]=r})),t=n}return t}function Vb(e,t){if(t){var n={};xn(t,(function(t,r){t=Ob(e,t,n),n[t]=r})),t=n}return t}function $b(e,t,n,r){var i;return t&&(t=ai(In(t)))[Iv]>n&&(i=er(t,0,n),Rb(e,2,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),i||t}function zb(e){var t="00"+e;return tr(t,t[Iv]-3)}var Hb=function(){function e(e,t,n,r){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var i=this;i.ver=2,i[Lv]=Ub(e,t)||Av,i[Fv]=Bb(e,n),i[Bv]=Vb(e,r)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}(),qb=function(){function e(e,t,n,r,i){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var a=this;a.ver=2,t=t||Av,a[Rv]=Fb(e,t),a[Fv]=Bb(e,r),a[Bv]=Vb(e,i),n&&(a[zv]=n)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}();function Kb(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,r=""+Math.floor(e/6e4)%60,i=""+Math.floor(e/36e5)%24,a=Math.floor(e/864e5);return t=1===t[Iv]?"00"+t:2===t[Iv]?"0"+t:t,n=n[Iv]<2?"0"+n:n,r=r[Iv]<2?"0"+r:r,(a>0?a+".":"")+(i=i[Iv]<2?"0"+i:i)+":"+r+":"+n+"."+t}var Gb=function(){function e(e,t,n,r,i,a,o){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var s=this;s.ver=2,s.id=function(e,t){return t?$b(e,t,128,69)[_v]():t}(e,o),s.url=jb(e,n),s[Lv]=Ub(e,t)||Av,isNaN(r)||(s[Qv]=Kb(r)),s[Fv]=Bb(e,i),s[Bv]=Vb(e,a)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(),Xb=function(){function e(e,t,n,r,i,a,o){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var s=this;s.ver=2,s.url=jb(e,n),s[Lv]=Ub(e,t)||Av,s[Fv]=Bb(e,i),s[Bv]=Vb(e,a),o&&(s.domProcessing=o.domProcessing,s[Qv]=o[Qv],s.networkConnect=o.networkConnect,s.perfTotal=o.perfTotal,s[em]=o[em],s.sentRequest=o.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}(),Wb="error",Yb="stack",Jb="stackDetails",Zb="errorSrc",Qb="message",ew="description";function tw(e,t){var n=e;return n&&!sn(n)&&(JSON&&JSON[Nv]?(n=JSON[Nv](e),!t||n&&"{}"!==n||(n=un(e[_v])?e[_v]():""+e)):n=e+" - (Missing JSON.stringify)"),n||""}function nw(e,t){var n=e;return e&&(n&&!sn(n)&&(n=e[Qb]||e[ew]||n),n&&!sn(n)&&(n=tw(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&"String"!==t&&"Object"!==t&&"Error"!==t&&-1===Si(n||"",t)&&(n=t+": "+n),n||""}function rw(e){return e&&e.src&&sn(e.src)&&e.obj&&ln(e.obj)}function iw(e){var t=e||"";sn(t)||(t=sn(t[Yb])?t[Yb]:""+t);var n=t[Ev]("\n");return{src:t,obj:n}}function aw(e){var t=null;if(e)try{if(e[Yb])t=iw(e[Yb]);else if(e[Wb]&&e[Wb][Yb])t=iw(e[Wb][Yb]);else if(e.exception&&e.exception[Yb])t=iw(e.exception[Yb]);else if(rw(e))t=e;else if(rw(e[Jb]))t=e[Jb];else if(kr()&&kr().opera&&e[Qb])t=function(e){for(var t=[],n=e[Ev]("\n"),r=0;r1?n[1]:""}catch(e){}return t}function sw(e){if(e)try{if(!sn(e)){var t=ow(e),n=tw(e,!1);return n&&"{}"!==n||(e[Wb]&&(t=ow(e=e[Wb])),n=tw(e,!0)),0!==Si(n,t)&&"String"!==t?t+":"+n:n}}catch(e){}return""+(e||"")}var uw=function(){function e(e,t,n,r,i,a){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var o=this;o.ver=2,function(e){try{if(cn(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(e){}return!1}(t)?(o[Uv]=t[Uv]||[],o[Fv]=t[Fv],o[Bv]=t[Bv],t[zv]&&(o[zv]=t[zv]),t.id&&(o.id=t.id,t[Fv].id=t.id),t[Hv]&&(o[Hv]=t[Hv]),an(t[qv])||(o[qv]=t[qv])):(n||(n={}),a&&(n.id=a),o[Uv]=[new cw(e,t,n)],o[Fv]=Bb(e,n),o[Bv]=Vb(e,r),i&&(o[zv]=i),a&&(o.id=a))}return e.CreateAutoException=function(e,t,n,r,i,a,o,s){var u,c=ow(i||a||e);return(u={})[Rv]=nw(e,c),u.url=t,u.lineNumber=n,u.columnNumber=r,u.error=sw(i||a||e),u.evt=sw(a||e),u[$v]=c,u.stackDetails=aw(o||i||a),u.errorSrc=s,u},e.CreateFromInterface=function(t,n,r,i){var a=n[Uv]&&zr(n[Uv],(function(e){return cw[Kv](t,e)}));return new e(t,pa(pa({},n),{exceptions:a}),r,i)},e.prototype.toInterface=function(){var e,t=this,n=t.exceptions,r=t.properties,i=t.measurements,a=t.severityLevel,o=t.problemGroup,s=t.id,u=t.isManual,c=n instanceof Array&&zr(n,(function(e){return e.toInterface()}))||void 0;return(e={ver:"4.0"})[Uv]=c,e.severityLevel=a,e.properties=r,e.measurements=i,e.problemGroup=o,e.id=s,e.isManual=u,e},e.CreateSimpleException=function(e,t,n,r,i,a){var o;return{exceptions:[(o={},o[Wv]=!0,o.message=e,o.stack=i,o.typeName=t,o)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=sw,e}(),cw=function(){function e(e,t,n){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var r=this;if(function(e){try{if(cn(e))return"hasFullStack"in e&&"typeName"in e}catch(e){}return!1}(t))r[$v]=t[$v],r[Rv]=t[Rv],r[Yb]=t[Yb],r[jv]=t[jv]||[],r[Wv]=t[Wv];else{var i=t,a=i&&i.evt;hn(i)||(i=i[Wb]||a||i),r[$v]=Ub(e,ow(i))||Av,r[Rv]=Fb(e,nw(t||i,r[$v]))||Av;var o=t[Jb]||aw(t);r[jv]=function(e){var t,n=e.obj;if(n&&n[Iv]>0){t=[];var r=0,i=0;if(Vr(n,(function(e){var n=e[_v]();if(lw.regex.test(n)){var a=new lw(n,r++);i+=a[Vv],t[Pv](a)}})),i>32768)for(var a=0,o=t[Iv]-1,s=0,u=a,c=o;a32768){var l=c-u+1;t.splice(u,l);break}u=a,c=o,a++,o--}}return t}(o),ln(r[jv])&&zr(r[jv],(function(t){t[Gv]=Ub(e,t[Gv]),t[Xv]=Ub(e,t[Xv])})),r[Yb]=function(e,t){var n;if(t){var r=""+t;r[Iv]>32768&&(n=er(r,0,32768),Rb(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return n||t}(e,function(e){var t="";return e&&(e.obj?Vr(e.obj,(function(e){t+=e+"\n"})):t=e.src||""),t}(o)),r.hasFullStack=ln(r.parsedStack)&&r.parsedStack[Iv]>0,n&&(n[$v]=n[$v]||r[$v])}}return e.prototype.toInterface=function(){var e,t=this,n=t[jv]instanceof Array&&zr(t[jv],(function(e){return e.toInterface()}));return(e={id:t.id,outerId:t.outerId,typeName:t[$v],message:t[Rv],hasFullStack:t[Wv],stack:t[Yb]})[jv]=n||void 0,e},e.CreateFromInterface=function(t,n){var r=n[jv]instanceof Array&&zr(n[jv],(function(e){return lw[Kv](e)}))||n[jv];return new e(t,pa(pa({},n),{parsedStack:r}))},e}(),lw=function(){function e(t,n){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var r=this;if(r[Vv]=0,"string"==typeof t){var i=t;r[Yv]=n,r[Jv]="",r[Gv]=ai(i),r[Xv]="",r[Zv]=0;var a=i.match(e.regex);a&&a[Iv]>=5&&(r[Jv]=ai(a[2])||r[Jv],r[Xv]=ai(a[4]),r[Zv]=parseInt(a[5])||0)}else r[Yv]=t[Yv],r[Jv]=t[Jv],r[Gv]=t[Gv],r[Xv]=t[Xv],r[Zv]=t[Zv],r[Vv]=0;r.sizeInBytes+=r.method[Iv],r.sizeInBytes+=r.fileName[Iv],r.sizeInBytes+=r.assembly[Iv],r[Vv]+=e.baseSize,r.sizeInBytes+=r.level.toString()[Iv],r.sizeInBytes+=r.line.toString()[Iv]}return e.CreateFromInterface=function(t){return new e(t,null)},e.prototype.toInterface=function(){var e=this;return{level:e[Yv],method:e[Jv],assembly:e[Gv],fileName:e[Xv],line:e[Zv]}},e.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,e.baseSize=58,e}(),dw=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},fw=function(){function e(e,t,n,r,i,a,o,s,u){this.aiDataContract={ver:1,metrics:1,properties:0};var c=this;c.ver=2;var l=new dw;l.count=r>0?r:void 0,l.max=isNaN(a)||null===a?void 0:a,l.min=isNaN(i)||null===i?void 0:i,l[Lv]=Ub(e,t)||Av,l.value=n,l.stdDev=isNaN(o)||null===o?void 0:o,c.metrics=[l],c[Fv]=Bb(e,s),c[Bv]=Vb(e,u)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}(),pw=br()||{},hw=0,gw=[null,null,null,null,null];function vw(e,t){var n=function(e,t){var n=null;if(e){var r=e.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(null!=r&&r[Iv]>2&&sn(r[2])&&r[2][Iv]>0&&(n=r[2]||"",t&&r[Iv]>2)){var i=(r[1]||"")[Mv](),a=r[3]||"";("http"===i&&":80"===a||"https"===i&&":443"===a)&&(a=""),n+=a}}return n}(e,t)||"";if(n){var r=n.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(null!=r&&r[Iv]>3&&sn(r[2])&&r[2][Iv]>0)return r[2]+(r[3]||"")}return n}var mw=[kv+Cv,"https://web.archive.org/web/20241212195116/https://breeze.aimon.applicationinsights.io"+Cv,"https://web.archive.org/web/20241212195116/https://dc-int.services.visualstudio.com"+Cv];function yw(e){return-1!==$r(mw,e[Mv]())}var bw=function(){function e(e,t,n,r,i,a,o,s,u,c,l,d){void 0===u&&(u="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var f=this;f.ver=2,f.id=t,f[Qv]=Kb(i),f.success=a,f.resultCode=o+"",f.type=Ub(e,u);var p=function(e,t,n,r){var i,a,o,s,u,c=r,l=r;if(t&&t[Iv]>0){var d=(a=t,u=(s=gw)[o=hw],pw.createElement?s[o]||(u=s[o]=pw.createElement("a")):u={host:vw(a,!0)},u.href=a,++o>=s[Iv]&&(o=0),hw=o,u);if(i=d.host,!c)if(null!=d[Ov]){var f=0===d.pathname[Iv]?"/":d[Ov];"/"!==f.charAt(0)&&(f="/"+f),l=d[Ov],c=Ub(e,n?n+" "+f:f)}else c=Ub(e,t)}else i=r,c=r;return{target:i,name:c,data:l}}(e,n,s,r);f.data=jb(e,r)||p.data,f.target=Ub(e,p.target),c&&(f.target="".concat(f.target," | ").concat(c)),f[Lv]=Ub(e,p[Lv]),f[Fv]=Bb(e,l),f[Bv]=Vb(e,d)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}(),ww="on",xw="attachEvent",Sw="addEventListener",Tw="detachEvent",kw="removeEventListener",Cw="events",Aw=(Qy("aiEvtPageHide"),Qy("aiEvtPageShow"),/\.[\.]+/g),Ew=/[\.]+$/,Iw=1,Mw=eb("events"),_w=/^([^.]*)(?:\.(.+)|)/;function Pw(e){return e&&e[jm]?e[jm](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,ny):e}function Dw(e,t){var n;if(t){var r=ny;ln(t)?(r=ny,Vr(t,(function(e){(e=Pw(e))&&("."!==e[0]&&(e="."+e),r+=e)}))):r=Pw(t),r&&("."!==r[0]&&(r="."+r),e=(e||ny)+r)}var i=_w.exec(e||ny)||[];return(n={})[Fm]=i[1],n.ns=(i[2]||ny).replace(Aw,".").replace(Ew,ny)[Om](".").sort().join("."),n}function Lw(e,t,n){void 0===n&&(n=!0);var r=Mw.get(e,Cw,{},n),i=r[t];return i||(i=r[t]=[]),i}function Rw(e,t,n,r){e&&t&&t[Fm]&&(e[kw]?e[kw](t[Fm],n,r):e[Tw]&&e[Tw](ww+t[Fm],n))}function Nw(e,t,n,r){for(var i=t[rm];i--;){var a=t[i];a&&(n.ns&&n.ns!==a.evtName.ns||r&&!r(a)||(Rw(e,a.evtName,a[Bm],a.capture),t[pm](i,1)))}}function Ow(e,t){return t?Dw("xx",ln(t)?[e].concat(t):[e,t]).ns[Om]("."):e}function Uw(e,t,n,r,i){var a;void 0===i&&(i=!1);var o=!1;if(e)try{var s=Dw(t,r);if(o=function(e,t,n,r){var i=!1;return e&&t&&t[Fm]&&n&&(e[Sw]?(e[Sw](t[Fm],n,r),i=!0):e[xw]&&(e[xw](ww+t[Fm],n),i=!0)),i}(e,s,n,i),o&&Mw.accept(e)){var u=((a={guid:Iw++,evtName:s})[Bm]=n,a.capture=i,a);Lw(e,s.type)[fm](u)}}catch(e){}return o}function jw(e,t){!function(e,t,n,r,i){if(void 0===i&&(i=!1),e)try{var a=Dw(t,r),o=!1;!function(e,t,n){if(t[Fm])Nw(e,Lw(e,t[Fm]),t,n);else{var r=Mw.get(e,Cw,{});xn(r,(function(r,i){Nw(e,i,t,n)})),0===Un(r)[rm]&&Mw.kill(e,Cw)}}(e,a,(function(e){return!((!a.ns||n)&&e[Bm]!==n||(o=!0,0))})),o||Rw(e,a,n,i)}catch(e){}}(e,null,null,t)}var Fw=Vn,Bw=zn,Vw=Fw({LocalStorage:0,SessionStorage:1}),$w=(Fw({AI:0,AI_AND_W3C:1,W3C:2}),void Fw({Normal:1,Critical:2})),zw="";function Hw(e){try{if(an(vr()))return null;var t=(new Date)[_v](),n=mr(e===Vw.LocalStorage?"localStorage":"sessionStorage"),r=zw+t;n.setItem(r,t);var i=n.getItem(r)!==t;if(n[Dv](r),!i)return n}catch(e){}return null}function qw(){return Kw()?Hw(Vw.SessionStorage):null}function Kw(e){return(e||void 0===$w)&&($w=!!Hw(Vw.SessionStorage)),$w}function Gw(e,t){var n=qw();if(null!==n)try{return n.getItem(t)}catch(t){$w=!1,Rb(e,2,2,"Browser failed read of session storage. "+gy(t),{exception:_n(t)})}return null}function Xw(e,t,n){var r=qw();if(null!==r)try{return r.setItem(t,n),!0}catch(t){$w=!1,Rb(e,2,4,"Browser failed write to session storage. "+gy(t),{exception:_n(t)})}return!1}var Ww=Bw({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]});function Yw(e,t,n){return!e&&an(e)?t:pn(e)?e:"true"===In(e)[tm]()}function Jw(e,t,n){return{fb:n,isVal:e,v:t}}function Zw(e,t){return{fb:t,set:Yw,v:!!e}}var Qw="ctx",ex="ParentContextKey",tx="ChildrenContextKey",nx=function(){function e(t,n,r){var i,a=this;a.start=Qr(),a[xm]=t,a[Mm]=r,a[Hm]=function(){return!1},un(n)&&Cn(a,"payload",{g:function(){return!i&&un(n)&&(i=n(),n=null),i}}),a[Km]=function(t){return t?t===e[ex]||t===e[tx]?a[t]:(a[Qw]||{})[t]:null},a[Gm]=function(t,n){t&&(t===e[ex]?(a[t]||(a[Hm]=function(){return!0}),a[t]=n):t===e[tx]?a[t]=n:(a[Qw]=a[Qw]||{})[t]=n)},a[Xm]=function(){var t=0,n=a[Km](e[tx]);if(ln(n))for(var r=0;r0&&(Vr(t,(function(e){try{e.func.call(e.self,e.args)}catch(e){Rb(n[lm],2,73,"Unexpected Exception during onComplete - "+_n(e))}})),a=[])}return e},ctx:{core:function(){return n},diagLog:function(){return Pb(n,t.cfg)},getCfg:function(){return t.cfg},getExtCfg:function(e,n){var r=s(e,!0);return n&&xn(n,(function(e,n){if(an(r[e])){var i=t.cfg[e];!i&&an(i)||(r[e]=i)}ib(t,r,e,n)})),t[um](r,n)},getConfig:function(e,n,r){void 0===r&&(r=!1);var i,a=s(e,!1),o=t.cfg;return!a||!a[n]&&an(a[n])?!o[n]&&an(o[n])||(i=o[n]):i=a[n],i||!an(i)?i:r},hasNext:function(){return!!i},getNext:function(){return i},setNext:function(e){i=e},iterate:function(e){for(var t;t=o._next();){var n=t[wm]();n&&e(n)}},onComplete:function(e,t){for(var n=[],r=2;r0){var o=null;Vr(e,(function(e){if(a||r!==e||(a=!0),a&&e&&un(e[oy])){var s=function(e,t,n){var r,i=null,a=un(e[oy]),o=un(e[Rm]),s={getPlugin:function(){return e},getNext:function(){return i},processTelemetry:function(r,c){u(c=c||function(){var r;return e&&un(e[ux])&&(r=e[ux]()),r||(r=dx(s,t,n)),r}(),(function(t){if(!e||!a)return!1;var n=ax(e);return!n[Am]&&!n[iy]&&(o&&e[Rm](i),e[oy](r,t),!0)}),"processTelemetry",(function(){return{item:r}}),!r.sync)||c[Tm](r)},unload:function(t,n){u(t,(function(){var r=!1;if(e){var i=ax(e),a=e[ry]||i[ry];!e||a&&a!==t.core()||i[Am]||(i[ry]=null,i[Am]=!0,i[ym]=!1,e[Am]&&!0===e[Am](t,n)&&(r=!0))}return r}),"unload",(function(){}),n[Mm])||t[Tm](n)},update:function(t,n){u(t,(function(){var r=!1;if(e){var i=ax(e),a=e[ry]||i[ry];!e||a&&a!==t.core()||i[Am]||e[Dm]&&!0===e[Dm](t,n)&&(r=!0)}return r}),"update",(function(){}),!1)||t[Tm](n)},_id:r=e?e[mm]+"-"+e[sy]+"-"+cx++:"Unknown-0-"+cx++,_setNext:function(e){i=e}};function u(t,n,a,o,s){var u=!1,c=e?e[mm]:ox,l=t[sx];return l||(l=t[sx]={}),t.setNext(i),e&&function(e,t,n,r,i){if(e){var o=e;if(o[uy]&&(o=o[uy]()),o){var s=void 0,u=o[Km](rx);try{if(s=o.create(c+":"+a,r,i)){if(u&&s[Gm]&&(s[Gm](nx[ex],u),u[Km]&&u[Gm])){var l=u[Km](nx[tx]);l||(l=[],u[Gm](nx[tx],l)),l[fm](s)}return o[Gm](rx,s),n()}}catch(e){s&&s[Gm]&&s[Gm]("exception",e)}finally{s&&o.fire(s),o[Gm](rx,u)}}}n()}(t[ry](),0,(function(){l[r]=!0;try{var e=i?i._id:ny;e&&(l[e]=!1),u=n(t)}catch(e){var o=!i||l[i._id];o&&(u=!0),i&&o||Rb(t[_m](),1,73,"Plugin ["+c+"] failed during "+a+" - "+_n(e)+", run flags: "+_n(l))}}),o,s),u}return Fn(s)}(e,t,n);i||(i=s),o&&o._setNext(s),o=s}}))}return r&&!i?hx([r],t,n):i}var gx,vx=Fw({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2}),mx="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",yx="",bx="&NoResponseBody=true",wx="POST",xx=function(){function e(){var t,n,r,i,a,o,s,u,c,l,d,f,p,h,g=0;aa(e,this,(function(e,v){var m=!0;function y(e,t){Rb(r,2,26,"Failed to send telemetry.",{message:e}),w(t,400,{})}function b(e){y("No endpoint url is provided for the batch",e)}function w(e,t,n,r){try{e&&e(t,n,r)}catch(e){}}function x(e,t){var n=Cr(),r=e[Ym];if(!r)return b(t),!0;r=e[Ym]+(p?bx:yx);var a=e[qm],o=i?a:new Blob([a],{type:"text/plain;charset=UTF-8"});return n.sendBeacon(r,o)}function S(e,t,n){var o=e[qm];try{if(o)if(x(e,t))w(t,200,{},yx);else{var s=a&&a.beaconOnRetry;s&&un(s)?s(e,t,x):(u&&u[Jm](e,t,!0),Rb(r,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}catch(e){i&&Nb(r,"Failed to send telemetry using sendBeacon API. Ex:"+_n(e)),w(t,i?0:400,{},yx)}}function T(e,n,r){var o,s,u,c=e[Zm]||{};!r&&t&&(o=ov((function(e,t){s=e,u=t}))),i&&r&&e.disableXhrSync&&(r=!1);var l=e[Ym];if(!l)return b(n),void(s&&s(!1));var d=function(e,t,n,r,i,a){function o(e,t,n){try{e[t]=n}catch(e){}}void 0===r&&(r=!1),void 0===i&&(i=!1);var s=new XMLHttpRequest;return r&&o(s,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),n&&o(s,Ty,n),s.open(e,t,!i),n&&o(s,Ty,n),!i&&a&&o(s,"timeout",a),s}(wx,l,m,!0,r,e[Qm]);function f(t){var r=a&&a.xhrOnComplete;if(r&&un(r))r(t,n,e);else{var o=by(t);w(n,t[Vm],Cy(t,i),o)}}return i||d[ey]("Content-type","application/json"),Vr(Un(c),(function(e){d[ey](e,c[e])})),d.onreadystatechange=function(){i||(f(d),4===d.readyState&&s&&s(!0))},d.onload=function(){i&&f(d)},d.onerror=function(e){w(n,i?d[Vm]:400,Cy(d,i),i?yx:xy(d)),u&&u(e)},d.ontimeout=function(){w(n,i?d[Vm]:500,Cy(d,i),i?yx:xy(d)),s&&s(!1)},d.send(e[qm]),o}function k(e,n,r){var o,u,c,l,d=e[Ym],f=e[qm],v=i?f:new Blob([f],{type:"application/json"}),y=new Headers,x=f[rm],S=!1,T=!1,k=e[Zm]||{},C=((o={method:wx,body:v})[mx]=!0,o);e.headers&&Un(e.headers)[rm]>0&&(Vr(Un(k),(function(e){y.append(e,k[e])})),C[Zm]=y),s?C.credentials=s:m&&i&&(C.credentials="include"),r&&(C.keepalive=!0,g+=x,i?2===e._sendReason&&(S=!0,p&&(d+=bx)):S=!0);var A=new Request(d,C);try{A[mx]=!0}catch(e){}if(!r&&t&&(u=ov((function(e,t){c=e,l=t}))),!d)return b(n),void(c&&c(!1));function E(e){w(n,i?0:400,{},i?yx:e)}function I(e,t,r){var i=e[Vm],o=a.fetchOnComplete;o&&un(o)?o(e,n,r||yx,t):w(n,i,{},r||yx)}try{Ug(fetch(i?d:A,i?C:null),(function(t){if(r&&(g-=x,x=0),!T)if(T=!0,t.rejected)E(t.reason&&t.reason[Im]),l&&l(t.reason);else{var n=t[bm];try{i||n.ok?i&&!n.body?(I(n,null,yx),c&&c(!0)):Ug(n.text(),(function(t){I(n,e,t[bm]),c&&c(!0)})):(E(n.statusText),c&&c(!1))}catch(e){E(_n(e)),l&&l(e)}}}))}catch(e){T||(E(_n(e)),l&&l(e))}return S&&!T&&(T=!0,w(n,200,{}),c&&c(!0)),i&&!T&&e[Qm]>0&&h&&h.set((function(){T||(T=!0,w(n,500,{}),c&&c(!0))}),e[Qm]),u}function C(e,t,n){var o=kr(),s=new XDomainRequest,u=e[qm];s.onload=function(){var n=by(s),r=a&&a.xdrOnComplete;r&&un(r)?r(s,t,e):w(t,200,{},n)},s.onerror=function(){w(t,400,{},i?yx:wy(s))},s.ontimeout=function(){w(t,500,{})},s.onprogress=function(){};var c=o&&o.location&&o.location.protocol||"",l=e[Ym];if(l){if(!i&&0!==l.lastIndexOf(c,0)){var d="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";return Rb(r,2,40,". "+d),void y(d,t)}var f=i?l:l[jm](/^(https?:)/,"");s.open(wx,f),e[Qm]&&(s[Qm]=e[Qm]),s.send(u),i&&n?h&&h.set((function(){s.send(u)}),0):s.send(u)}else b(t)}function A(){g=0,n=!1,t=!1,r=null,i=null,a=null,o=null,s=null,u=null,c=!1,l=!1,d=!1,f=!1,p=!1,h=null}A(),e[vm]=function(t,i){r=i,n&&Rb(r,1,28,"Sender is already initialized"),e.SetConfig(t),n=!0},e._getDbgPlgTargets=function(){return[n,i,o,t]},e.SetConfig=function(e){try{if(a=e.senderOnCompleteCallBack||{},o=!!e.disableCredentials,s=e.fetchCredentials,i=!!e.isOneDs,t=!!e.enableSendPromise,c=!!e.disableXhr,l=!!e.disableBeacon,d=!!e.disableBeaconSync,h=e.timeWrapper,p=!!e.addNoResponse,f=!!e.disableFetchKeepAlive,u={sendPOST:T},i||(m=!1),o){var n=typeof location===sa&&location?location:mr("location");n&&n.protocol&&"file:"===n.protocol[tm]()&&(m=!1)}return!0}catch(e){}return!1},e.getSyncFetchPayload=function(){return g},e.getSenderInst=function(e,t){return e&&e[rm]?function(e,t){for(var n,r=0,i=null,a=0;null==i&&a=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors[rm])return n}}catch(n){Rb(t,1,43,"Cannot parse the response. "+(n[xm]||_n(n)),{response:e})}return null}var Tx="getPlugin",kx=((gx={})[ay]={isVal:function(e){return!an(e)},v:{}},gx),Cx=function(){function e(){var t,n,r,i,a,o=this;function s(e){void 0===e&&(e=null);var t=e;if(!t){var i=n||dx(null,{},o[ry]);t=r&&r[Tx]?i[Cm](null,r[Tx]):i[Cm](null,r)}return t}function u(e,t,i){xb(e,kx,Pb(t)),!i&&t&&(i=t.getProcessTelContext()[Lm]());var a=r;r&&r[Tx]&&(a=r[Tx]()),o[ry]=t,n=dx(i,e,t,a)}function c(){var e,s;t=!1,o[ry]=null,n=null,r=null,e=[],a={run:function(t){var n=e;e=[],Vr(n,(function(e){try{(e.rm||e.remove).call(e)}catch(e){Rb(t,2,73,"Unloading:"+_n(e))}}))},add:function(t){t&&Br(e,t)}},s=[],i={add:function(e){e&&s[fm](e)},run:function(e,t){Vr(s,(function(n){try{n(e,t)}catch(t){Rb(e[_m](),2,73,"Unexpected error calling unload handler - "+_n(t))}})),s=[]}}}c(),aa(e,o,(function(e){e[vm]=function(e,n,r,i){u(e,n,i),t=!0},e[Am]=function(t,n){var o,s=e[ry];if(s&&(!t||s===t[ry]())){var u,l=!1,d=t||fx(null,s,r&&r[Tx]?r[Tx]():r),f=n||((o={reason:0})[Mm]=!1,o);return e[Pm]&&!0===e[Pm](d,f,p)?u=!0:p(),u}function p(){l||(l=!0,i.run(d,n),a.run(d[_m]()),!0===u&&d[Tm](f),c())}},e[Dm]=function(t,n){var i=e[ry];if(i&&(!t||i===t[ry]())){var a,o=!1,s=t||px(null,i,r&&r[Tx]?r[Tx]():r),c=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(s,c,l)?a=!0:l(),a}function l(){o||(o=!0,u(s.getCfg(),s.core(),s[Lm]()))}},vy(e,"_addUnloadCb",(function(){return i}),"add"),vy(e,"_addHook",(function(){return a}),"add"),Cn(e,"_unloadHooks",{g:function(){return a}})})),o[_m]=function(e){return s(e)[_m]()},o[ym]=function(){return t},o.setInitialized=function(e){t=e},o[Rm]=function(e){r=e},o[Tm]=function(e,t){t?t[Tm](e):r&&un(r[oy])&&r[oy](e,null)},o._getTelCtx=s}return e.__ieDyn=1,e}();function Ax(e){var t="ai."+e+".";return function(e){return t+e}}var Ex,Ix=Ax("application"),Mx=Ax("device"),_x=Ax("location"),Px=Ax("operation"),Dx=Ax("session"),Lx=Ax("user"),Rx=Ax("cloud"),Nx=Ax("internal"),Ox=function(e){function t(){return e.call(this)||this}return ga(t,e),t}((Ex={applicationVersion:Ix("ver"),applicationBuild:Ix("build"),applicationTypeId:Ix("typeId"),applicationId:Ix("applicationId"),applicationLayer:Ix("layer"),deviceId:Mx("id"),deviceIp:Mx("ip"),deviceLanguage:Mx("language"),deviceLocale:Mx("locale"),deviceModel:Mx("model"),deviceFriendlyName:Mx("friendlyName"),deviceNetwork:Mx("network"),deviceNetworkName:Mx("networkName"),deviceOEMName:Mx("oemName"),deviceOS:Mx("os"),deviceOSVersion:Mx("osVersion"),deviceRoleInstance:Mx("roleInstance"),deviceRoleName:Mx("roleName"),deviceScreenResolution:Mx("screenResolution"),deviceType:Mx("type"),deviceMachineName:Mx("machineName"),deviceVMName:Mx("vmName"),deviceBrowser:Mx("browser"),deviceBrowserVersion:Mx("browserVersion"),locationIp:_x("ip"),locationCountry:_x("country"),locationProvince:_x("province"),locationCity:_x("city"),operationId:Px("id"),operationName:Px("name"),operationParentId:Px("parentId"),operationRootId:Px("rootId"),operationSyntheticSource:Px("syntheticSource"),operationCorrelationVector:Px("correlationVector"),sessionId:Dx("id"),sessionIsFirst:Dx("isFirst"),sessionIsNew:Dx("isNew"),userAccountAcquisitionDate:Lx("accountAcquisitionDate"),userAccountId:Lx("accountId"),userAgent:Lx("userAgent"),userId:Lx("id"),userStoreRegion:Lx("storeRegion"),userAuthUserId:Lx("authUserId"),userAnonymousUserAcquisitionDate:Lx("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Lx("authUserAcquisitionDate"),cloudName:Rx("name"),cloudRole:Rx("role"),cloudRoleVer:Rx("roleVer"),cloudRoleInstance:Rx("roleInstance"),cloudEnvironment:Rx("environment"),cloudLocation:Rx("location"),cloudDeploymentUnit:Rx("deploymentUnit"),internalNodeName:Nx("nodeName"),internalSdkVersion:Nx("sdkVersion"),internalAgentVersion:Nx("agentVersion"),internalSnippet:Nx("snippet"),internalSdkSrc:Nx("sdkSrc")},function(){var e=this;Ex&&xn(Ex,(function(t,n){e[t]=n}))})),Ux=new Ox,jx=function(e,t,n){var r=this,i=this;i.ver=1,i.sampleRate=100,i.tags={},i[Lv]=Ub(e,n)||Av,i.data=t,i.time=hy(new Date),i.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1}},Fx=function(e,t){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=t},Bx="duration",Vx="tags",$x="deviceType",zx="data",Hx="name",qx="traceID",Kx="length",Gx="stringify",Xx="measurements",Wx="dataType",Yx="envelopeType",Jx="toString",Zx="_get",Qx="enqueue",eS="count",tS="eventsLimitInMem",nS="push",rS="item",iS="emitLineDelimitedJson",aS="clear",oS="createNew",sS="markAsSent",uS="clearSent",cS="bufferOverride",lS="BUFFER_KEY",dS="SENT_BUFFER_KEY",fS="concat",pS="MAX_BUFFER_SIZE",hS="triggerSend",gS="diagLog",vS="initialize",mS="_sender",yS="endpointUrl",bS="instrumentationKey",wS="customHeaders",xS="maxBatchSizeInBytes",SS="onunloadDisableBeacon",TS="isBeaconApiDisabled",kS="alwaysUseXhrOverride",CS="disableXhr",AS="enableSessionStorageBuffer",ES="_buffer",IS="onunloadDisableFetch",MS="disableSendBeaconSplit",_S="enableSendPromise",PS="getSenderInst",DS="unloadTransports",LS="convertUndefined",RS="maxBatchInterval",NS="serialize",OS="_onError",US="_onPartialSuccess",jS="_onSuccess",FS="itemsReceived",BS="itemsAccepted",VS="oriPayload",$S="baseType",zS="sampleRate",HS="eventsSendRequest",qS="getSamplingScore",KS="baseType",GS="baseData",XS="properties",WS="true";function YS(e,t,n){return function(e,t,n,r,i){var a=n;return e&&((a=e[t])===n||r&&!r(n)||(a=n,e[t]=a)),a}(e,t,n,vn)}function JS(e,t,n){an(e)||xn(e,(function(e,r){fn(r)?n[e]=r:sn(r)?t[e]=r:Ny()&&(t[e]=Oy()[Gx](r))}))}function ZS(e,t){an(e)||xn(e,(function(n,r){e[n]=r||t}))}function QS(e,t,n,r){var i=new jx(e,r,t);YS(i,"sampleRate",n[xv]),(n[GS]||{}).startTime&&(i.time=hy(n[GS].startTime)),i.iKey=n.iKey;var a=n.iKey.replace(/-/g,"");return i[Hx]=i[Hx].replace("{0}",a),function(e,t,n){var r=n[Vx]=n[Vx]||{},i=t.ext=t.ext||{},a=t[Vx]=t[Vx]||[],o=i.user;o&&(YS(r,Ux.userAuthUserId,o.authId),YS(r,Ux.userId,o.id||o.localId));var s=i.app;s&&YS(r,Ux.sessionId,s.sesId);var u=i.device;u&&(YS(r,Ux.deviceId,u.id||u.localId),YS(r,Ux[$x],u.deviceClass),YS(r,Ux.deviceIp,u.ip),YS(r,Ux.deviceModel,u.model),YS(r,Ux[$x],u[$x]));var c=t.ext.web;if(c){YS(r,Ux.deviceLanguage,c.browserLang),YS(r,Ux.deviceBrowserVersion,c.browserVer),YS(r,Ux.deviceBrowser,c.browser);var l=n[zx]=n[zx]||{},d=l[GS]=l[GS]||{},f=d[XS]=d[XS]||{};YS(f,"domain",c.domain),YS(f,"isManual",c.isManual?WS:null),YS(f,"screenRes",c.screenRes),YS(f,"userConsent",c.userConsent?WS:null)}var p=i.os;p&&(YS(r,Ux.deviceOS,p[Hx]),YS(r,Ux.deviceOSVersion,p.osVer));var h=i.trace;h&&(YS(r,Ux.operationParentId,h.parentID),YS(r,Ux.operationName,Ub(e,h[Hx])),YS(r,Ux.operationId,h[qx]));for(var g={},v=a[Kx]-1;v>=0;v--)xn(a[v],(function(e,t){g[e]=t})),a.splice(v,1);xn(a,(function(e,t){g[e]=t}));var m=pa(pa({},r),g);m[Ux.internalSdkVersion]||(m[Ux.internalSdkVersion]=Ub(e,"javascript:".concat(tT.Version),64)),n[Vx]=my(m)}(e,n,i),n[Vx]=n[Vx]||[],my(i)}function eT(e,t){an(t[GS])&&Rb(e,1,46,"telemetryItem.baseData cannot be null.")}var tT={Version:"3.3.3"};function nT(e,t,n){eT(e,t);var r={},i={};t[KS]!==Hb[Wx]&&(r.baseTypeSource=t[KS]),t[KS]===Hb[Wx]?(r=t[GS][XS]||{},i=t[GS][Xx]||{}):t[GS]&&JS(t[GS],r,i),JS(t[zx],r,i),an(n)||ZS(r,n);var a=t[GS][Hx],o=new Hb(e,a,r,i),s=new Fx(Hb[Wx],o);return QS(e,Hb[Yx],t,s)}var rT,iT,aT=function(){function e(t,n){var r=[],i=!1,a=n.maxRetryCnt;this[Zx]=function(){return r},this._set=function(e){return r=e},aa(e,this,(function(e){e[Qx]=function(o){e[eS]()>=n[tS]?i||(Rb(t,2,105,"Maximum in-memory buffer size reached: "+e[eS](),!0),i=!0):(o.cnt=o.cnt||0,!an(a)&&o.cnt>a||r[nS](o))},e[eS]=function(){return r[Kx]},e.size=function(){for(var e=r[Kx],t=0;t0){var t=[];return Vr(e,(function(e){t[nS](e[rS])})),n[iS]?t.join("\n"):"["+t.join(",")+"]"}return null},e[oS]=function(e,n,i){var a=r.slice(0);e=e||t,n=n||{};var o=i?new uT(e,n):new oT(e,n);return Vr(a,(function(e){o[Qx](e)})),o}}))}return e.__ieDyn=1,e}(),oT=function(e){function t(n,r){var i=e.call(this,n,r)||this;return aa(t,i,(function(e,t){e[sS]=function(e){t[aS]()},e[uS]=function(e){}})),i}return ga(t,e),t.__ieDyn=1,t}(aT),sT=["AI_buffer","AI_sentBuffer"],uT=function(e){function t(n,r){var i=e.call(this,n,r)||this,a=!1,o=null==r?void 0:r.namePrefix,s=r[cS]||{getItem:Gw,setItem:Xw},u=s.getItem,c=s.setItem,l=r.maxRetryCnt;return aa(t,i,(function(e,r){var i=g(t[lS]),s=g(t[dS]),d=function(){var e=[];try{return Vr(sT,(function(t){var n=y(t);if(e=e[fS](n),o){var r=y(o+"_"+t);e=e[fS](r)}})),e}catch(e){Rb(n,2,41,"Transfer events from previous buffers: "+gy(e)+". previous Buffer items can not be removed",{exception:_n(e)})}return[]}(),f=s[fS](d),p=e._set(i[fS](f));function h(e,t){var n=[],r=[];return Vr(e,(function(e){r[nS](e[rS])})),Vr(t,(function(e){un(e)||-1!==$r(r,e[rS])||n[nS](e)})),n}function g(e){return v(o?o+"_"+e:e)}function v(e){try{var t=u(n,e);if(t){var r=Oy().parse(t);if(sn(r)&&(r=Oy().parse(r)),r&&ln(r))return r}}catch(t){Rb(n,1,42," storage key: "+e+", "+gy(t),{exception:_n(t)})}return[]}function m(e,t){var r=e;try{r=o?o+"_"+r:r;var i=JSON[Gx](t);c(n,r,i)}catch(e){c(n,r,JSON[Gx]([])),Rb(n,2,41," storage key: "+r+", "+gy(e)+". Buffer cleared",{exception:_n(e)})}}function y(e){try{var t=v(e),r=[];return Vr(t,(function(e){var t={item:e,cnt:0};r[nS](t)})),function(e,t){var n=qw();if(null!==n)try{return n[Dv](t),!0}catch(t){$w=!1,Rb(e,2,6,"Browser failed removal of session storage item. "+gy(t),{exception:_n(t)})}}(n,e),r}catch(e){}return[]}p[Kx]>t[pS]&&(p[Kx]=t[pS]),m(t[dS],[]),m(t[lS],p),e[Qx]=function(i){e[eS]()>=t[pS]?a||(Rb(n,2,67,"Maximum buffer size reached: "+e[eS](),!0),a=!0):(i.cnt=i.cnt||0,!an(l)&&i.cnt>l||(r[Qx](i),m(t.BUFFER_KEY,e[Zx]())))},e[aS]=function(){r[aS](),m(t.BUFFER_KEY,e[Zx]()),m(t[dS],[]),a=!1},e[sS]=function(r){m(t[lS],e._set(h(r,e[Zx]())));var i=g(t[dS]);i instanceof Array&&r instanceof Array&&((i=i[fS](r))[Kx]>t[pS]&&(Rb(n,1,67,"Sent buffer reached its maximum size: "+i[Kx],!0),i[Kx]=t[pS]),m(t[dS],i))},e[uS]=function(e){var n=g(t[dS]);n=h(e,n),m(t[dS],n)},e[oS]=function(r,i,a){a=!!a;var o=e[Zx]().slice(0),s=g(t[dS]).slice(0);r=r||n,i=i||{},e[aS]();var u=a?new t(r,i):new oT(r,i);return Vr(o,(function(e){u[Qx](e)})),a&&u[sS](s),u}})),i}var n;return ga(t,e),n=t,t.VERSION="_1",t.BUFFER_KEY="AI_buffer"+n.VERSION,t.SENT_BUFFER_KEY="AI_sentBuffer"+n.VERSION,t.MAX_BUFFER_SIZE=2e3,t}(aT),cT=function(){function e(t){aa(e,this,(function(e){function n(e,a){var o="__aiCircularRefCheck",s={};if(!e)return Rb(t,1,48,"cannot serialize object because it is null or undefined",{name:a},!0),s;if(e[o])return Rb(t,2,50,"Circular reference detected while serializing object",{name:a},!0),s;if(!e.aiDataContract){if("measurements"===a)s=i(e,"number",a);else if("properties"===a)s=i(e,"string",a);else if("tags"===a)s=i(e,"string",a);else if(ln(e))s=r(e,a);else{Rb(t,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:a},!0);try{Oy()[Gx](e),s=e}catch(e){Rb(t,1,48,e&&un(e[Jx])?e[Jx]():"Error serializing object",null,!0)}}return s}return e[o]=!0,xn(e.aiDataContract,(function(i,o){var u=un(o)?1&o():1&o,c=un(o)?4&o():4&o,l=2&o,d=void 0!==e[i],f=cn(e[i])&&null!==e[i];if(!u||d||l){if(!c){var p;void 0!==(p=f?l?r(e[i],i):n(e[i],i):e[i])&&(s[i]=p)}}else Rb(t,1,24,"Missing required field specification. The field is required but not present on source",{field:i,name:a})})),delete e[o],s}function r(e,r){var i;if(e)if(ln(e)){i=[];for(var a=0;a100||e<0)&&(n.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),e=100),this[zS]=e,this.samplingScoreGenerator=new dT}return e.prototype.isSampledIn=function(e){var t=this[zS];return null==t||t>=100||e.baseType===fw[Wx]||this.samplingScoreGenerator[qS](e)0&&e<=100}),100),rT[wS]=pT,rT[LS]=pT,rT[tS]=1e4,rT[cS]=!1,rT.httpXHROverride={isVal:function(e){return e&&e.sendPOST},v:pT},rT[kS]=Zw(),rT.transports=pT,rT.retryCodes=pT,rT.maxRetryCnt={isVal:fn,v:10},rT)),vT=((iT={})[Hb.dataType]=nT,iT[qb.dataType]=function(e,t,n){eT(e,t);var r=t[GS].message,i=t[GS].severityLevel,a=t[GS][XS]||{},o=t[GS][Xx]||{};JS(t[zx],a,o),an(n)||ZS(a,n);var s=new qb(e,r,i,a,o),u=new Fx(qb[Wx],s);return QS(e,qb[Yx],t,u)},iT[Gb.dataType]=function(e,t,n){var r;eT(e,t);var i=t[GS];an(i)||an(i[XS])||an(i[XS][Bx])?an(t[zx])||an(t[zx][Bx])||(r=t[zx][Bx],delete t[zx][Bx]):(r=i[XS][Bx],delete i[XS][Bx]);var a,o=t[GS];((t.ext||{}).trace||{})[qx]&&(a=t.ext.trace[qx]);var s=o.id||a,u=o[Hx],c=o.uri,l=o[XS]||{},d=o[Xx]||{};an(o.refUri)||(l.refUri=o.refUri),an(o.pageType)||(l.pageType=o.pageType),an(o.isLoggedIn)||(l.isLoggedIn=o.isLoggedIn[Jx]()),an(o[XS])||xn(o[XS],(function(e,t){l[e]=t})),JS(t[zx],l,d),an(n)||ZS(l,n);var f=new Gb(e,u,c,r,l,d,s),p=new Fx(Gb[Wx],f);return QS(e,Gb[Yx],t,p)},iT[Xb.dataType]=function(e,t,n){eT(e,t);var r=t[GS],i=r[Hx],a=r.uri||r.url,o=r[XS]||{},s=r[Xx]||{};JS(t[zx],o,s),an(n)||ZS(o,n);var u=new Xb(e,i,a,void 0,o,s,r),c=new Fx(Xb[Wx],u);return QS(e,Xb[Yx],t,c)},iT[uw.dataType]=function(e,t,n){eT(e,t);var r=t[GS][Xx]||{},i=t[GS][XS]||{};JS(t[zx],i,r),an(n)||ZS(i,n);var a=t[GS],o=uw.CreateFromInterface(e,a,i,r),s=new Fx(uw[Wx],o);return QS(e,uw[Yx],t,s)},iT[fw.dataType]=function(e,t,n){eT(e,t);var r=t[GS],i=r[XS]||{},a=r[Xx]||{};JS(t[zx],i,a),an(n)||ZS(i,n);var o=new fw(e,r[Hx],r.average,r.sampleCount,r.min,r.max,r.stdDev,i,a),s=new Fx(fw[Wx],o);return QS(e,fw[Yx],t,s)},iT[bw.dataType]=function(e,t,n){eT(e,t);var r=t[GS][Xx]||{},i=t[GS][XS]||{};JS(t[zx],i,r),an(n)||ZS(i,n);var a=t[GS];if(an(a))return Nb(e,"Invalid input for dependency data"),null;var o=a[XS]&&a[XS][Tv]?a[XS][Tv]:"GET",s=new bw(e,a.id,a.target,a[Hx],a[Bx],a.success,a.responseCode,o,a.type,a.correlationContext,i,r),u=new Fx(bw[Wx],s);return QS(e,bw[Yx],t,u)},iT),mT=function(e){function t(){var n,r,i,a,o,s,u,c=e.call(this)||this;c.priority=1001,c.identifier="AppInsightsChannelPlugin";var l,d,f,p,h,g,v,m,y,b,w,x,S,T,k,C,A,E,I,M,_,P,D,L,R,N,O,U=0;return aa(t,c,(function(e,j){function F(t,r){var i=hT(t);if(!t||i+""!="200"&&""!==i){var a=Sx(i);a&&a[FS]&&a[FS]>a[BS]&&!T?e[US](r,a):e[OS](r,wy(t))}else n=0,e[jS](r,0)}function B(e,t,n){4===e.readyState&&J(e.status,t,e.responseURL,n,xy(e),hT(e)||e.response)}function V(e){try{if(e){var t=e[VS];return t&&t[Kx]?t:null}}catch(e){}return null}function $(t,n){return!(w||(t?t.baseData&&!t[$S]?(n&&Rb(n,1,70,"Cannot send telemetry without baseData and baseType"),1):(t[$S]||(t[$S]="EventData"),e[mS]?(r=t,e._sample.isSampledIn(r)?(t[xv]=e._sample[zS],0):(n&&Rb(n,2,33,"Telemetry item was sampled out and not sent",{SampleRate:e._sample[zS]}),1)):(n&&Rb(n,1,28,"Sender was not initialized"),1)):(n&&Rb(n,1,7,"Cannot send empty telemetry"),1)));var r}function z(e,n){var r=e.iKey||x,i=t.constructEnvelope(e,r,n,S);if(i){var a=!1;if(e[Vx]&&e[Vx][Sv]&&(Vr(e[Vx][Sv],(function(e){try{e&&!1===e(i)&&(a=!0,Nb(n,"Telemetry processor check returns false"))}catch(e){Rb(n,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+gy(e),{exception:_n(e)},!0)}})),delete e[Vx][Sv]),!a)return i}else Rb(n,1,47,"Unable to create an AppInsights envelope")}function H(t){var n="",r=e[gS]();try{var i=$(t,r),a=null;i&&(a=z(t,r)),a&&(n=o[NS](a))}catch(e){}return n}function q(e){var t="";return e&&e[Kx]&&(t="["+e.join(",")+"]"),t}function K(e){var t,n=W();return(t={urlString:p})[zx]=e,t.headers=n,t}function G(t,n,r,i){void 0===i&&(i=!0);var a=X(n),o=t&&t.sendPOST;return o&&a?(i&&e._buffer[sS](n),o(a,(function(t,r,i){return function(t,n,r,i){200===n&&t?e._onSuccess(t,t[Kx]):i&&e[OS](t,i)}(n,t,0,i)}),!r)):null}function X(t){var n;if(ln(t)&&t[Kx]>0){var r=e[ES].batchPayloads(t),i=W();return(n={})[zx]=r,n.urlString=p,n.headers=i,n.disableXhrSync=_,n.disableFetchKeepAlive=!P,n[VS]=t,n}return null}function W(){try{var e=u||{};return yw(p)&&(e[Ww[6]]=Ww[7]),e}catch(e){}return null}function Y(t){var n=t?t[Kx]:0;return e[ES].size()+n>g&&(d&&!d.isOnline()||e[hS](!0,null,10),!0)}function J(t,r,i,a,o,s){var u=null;if(e._appId||(u=Sx(s))&&u.appId&&(e._appId=u.appId),(t<200||t>=300)&&0!==t){if((301===t||307===t||308===t)&&!Z(i))return void e[OS](r,o);if(d&&!d.isOnline())return void(T||(ne(r,10),Rb(e[gS](),2,40,". Offline - Response Code: ".concat(t,". Offline status: ").concat(!d.isOnline(),". Will retry to send ").concat(r.length," items."))));!T&&ae(t)?(ne(r),Rb(e[gS](),2,40,". Response code "+t+". Will retry to send "+r[Kx]+" items.")):e[OS](r,o)}else Z(i),206===t?(u||(u=Sx(s)),u&&!T?e[US](r,u):e[OS](r,o)):(n=0,e[jS](r,a))}function Z(e){return!(s>=10||an(e)||""===e||e===p||(p=e,++s,0))}function Q(e,t){if(!l)return G(N&&N[PS]([3],!0),e,t);l(e,!1)}function ee(e){try{if(e&&e[Kx])return sn(e[0])}catch(e){}return null}function te(t,n){var r=null;if(ln(t)){for(var i=t[Kx],a=0;a-1}function oe(){e[mS]=null,e[ES]=null,e._appId=null,e._sample=null,u={},d=null,n=0,r=null,i=!1,a=null,o=null,s=0,U=0,l=null,f=null,p=null,h=null,g=0,v=!1,b=null,w=!1,x=null,S=pT,T=!1,C=null,E=pT,_=!1,P=!1,R=!1,D=null,L=null,N=null,Cn(e,"_senderConfig",{g:function(){return yy({},gT)}})}oe(),e.pause=function(){ie(),i=!0},e.resume=function(){i&&(i=!1,r=null,Y(),re())},e.flush=function(t,n,r){if(void 0===t&&(t=!0),!i){ie();try{return e[hS](t,null,r||1)}catch(t){Rb(e[gS](),1,22,"flush failed, telemetry will not be collected: "+gy(t),{exception:_n(t)})}}},e.onunloadFlush=function(){if(!i)if(v||M)try{return e[hS](!0,Q,2)}catch(t){Rb(e[gS](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+gy(t),{exception:_n(t)})}else e.flush(!1)},e.addHeader=function(e,t){u[e]=t},e[vS]=function(t,i,a,U){e.isInitialized()&&Rb(e[gS](),1,28,"Sender is already initialized"),j[vS](t,i,a,U);var $=e.identifier;o=new cT(i.logger),n=0,r=null,e[mS]=null,s=0;var z=e[gS]();f=Ow(Qy("Sender"),i.evtNamespace&&i.evtNamespace()),d=function(e){var t=br(),n=Cr(),r=!1,i=[],a=1;!n||an(n.onLine)||n.onLine||(a=2);var o=0,s=d(),u=Ow(Qy("OfflineListener"),e);try{if(l(kr())&&(r=!0),t){var c=t.body||t;c.ononline&&l(c)&&(r=!0)}}catch(e){r=!1}function l(e){var t=!1;return e&&(t=Uw(e,"online",p,u))&&Uw(e,"offline",h,u),t}function d(){return 2!==o&&2!==a}function f(){var e=d();s!==e&&(s=e,Vr(i,(function(e){var t={isOnline:s,rState:a,uState:o};try{e(t)}catch(e){}})))}function p(){a=1,f()}function h(){a=2,f()}return{isOnline:function(){return s},isListening:function(){return r},unload:function(){var e=kr();if(e&&r){if(jw(e,u),t){var n=t.body||t;rn(n.ononline)||jw(n,u)}r=!1}},addListener:function(e){return i[Pv](e),{rm:function(){var t=i.indexOf(e);return t>-1?i.splice(t,1):void 0}}},setOnlineState:function(e){o=e,f()}}}(f),e._addHook(Sb(t,(function(t){var n,r=t.cfg;r.storagePrefix&&(n=r.storagePrefix,zw=n||"");var a=dx(null,r,i).getExtCfg($,gT);gn(a[yS])&&(a[yS]=r[yS]),gn(a[bS])&&(a[bS]=r[bS]),Cn(e,"_senderConfig",{g:function(){return a}}),h!==a[yS]&&(p=h=a[yS]),i.activeStatus()===vx.PENDING?e.pause():i.activeStatus()===vx.ACTIVE&&e.resume(),b&&b!==a[wS]&&Vr(b,(function(e){delete u[e.header]})),g=a[xS],v=(!1===a[SS]||!1===a[TS])&&Uy(),m=!1===a[SS]&&Uy(),y=!1===a[TS]&&Uy(),M=a[kS],_=!!a[CS],O=a.retryCodes;var o=a[cS],s=!!a[AS]&&(!!o||Kw()),d=a.namePrefix,f=s!==C||s&&E!==d||s&&A!==o;if(e[ES]){if(f)try{e._buffer=e._buffer[oS](z,a,s)}catch(t){Rb(e[gS](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+gy(t),{exception:_n(t)})}Y()}else e[ES]=s?new uT(z,a):new oT(z,a);E=d,C=s,A=o,P=!a[IS]&&jy(!0),R=!!a[MS],e._sample=new fT(a.samplingPercentage,z),gn(x=a[bS])||function(e,t){var n=t.disableInstrumentationKeyValidation;return!(an(n)||!n)||new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$").test(e)}(x,r)||Rb(z,1,100,"Invalid Instrumentation key "+x),b=a[wS],sn(p)&&!yw(p)&&b&&b[Kx]>0?Vr(b,(function(e){c.addHeader(e.header,e.value)})):b=null,I=a[_S];var U=function(){var t;try{var n={xdrOnComplete:function(e,t,n){var r=V(n);if(r)return F(e,r)},fetchOnComplete:function(e,t,n,r){var i=V(r);if(i)return J(e.status,i,e.url,i[Kx],e.statusText,n||"")},xhrOnComplete:function(e,t,n){var r=V(n);if(r)return B(e,r,r[Kx])},beaconOnRetry:function(t,n,r){return function(t,n,r){var i=t&&t[VS];if(R)L&&L(i,!0),Rb(e[gS](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var a=[],o=0;o0&&(L&&L(a,!0),Rb(e[gS](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}(t,n,r)}};return(t={})[_S]=I,t.isOneDs=!1,t.disableCredentials=!1,t[CS]=_,t.disableBeacon=!y,t.disableBeaconSync=!m,t.senderOnCompleteCallBack=n,t}catch(e){}return null}();N?N.SetConfig(U):(N=new xx)[vS](U,z);var j=a.httpXHROverride,H=null,q=null,K=Sy([3,1,2],a.transports);H=N&&N[PS](K,!1);var W=N&&N.getFallbackInst();D=function(e,t){return G(W,e,t)},L=function(e,t){return G(W,e,t,!1)},H=M?j:H||j||W,e[mS]=function(e,t){return G(H,e,t)},P&&(l=te);var Z=Sy([3,1],a[DS]);P||(Z=Z.filter((function(e){return 2!==e}))),q=N&&N[PS](Z,!0),q=M?j:q||j,(M||a[DS]||!l)&&q&&(l=function(e,t){return G(q,e,t)}),l||(l=D),w=a.disableTelemetry,S=a[LS]||pT,T=a.isRetryDisabled,k=a[RS]})))},e.processTelemetry=function(t,n){var r,i=(n=e._getTelCtx(n))[gS]();try{if(!$(t,i))return;var a=z(t,i);if(!a)return;var s=o[NS](a),u=e[ES];Y(s);var c=((r={})[rS]=s,r.cnt=0,r);u[Qx](c),re()}catch(e){Rb(i,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+gy(e),{exception:_n(e)})}e.processNext(t,n)},e.isCompletelyIdle=function(){return!i&&0===U&&0===e._buffer[eS]()},e._xhrReadyStateChange=function(e,t,n){if(!ee(t))return B(e,t,n)},e[hS]=function(t,n,r){var a;if(void 0===t&&(t=!0),!i)try{var o=e[ES];if(w)o[aS]();else{if(o[eS]()>0){var s=o.getItems();!function(t,n){var r,i=(r="getNotifyMgr",e.core[r]?e.core[r]():e.core._notificationManager);if(i&&i[HS])try{i[HS](t,n)}catch(t){Rb(e[gS](),1,74,"send request notification failed: "+gy(t),{exception:_n(t)})}}(r||0,t),a=n?n.call(e,s,t):e[mS](s,t)}new Date}ie()}catch(t){var u=function(e){if(void 0===e&&(e=null),!e){var t=Cr()||{};e=t?(t.userAgent||ny)[tm]():ny}var n=(e||ny)[tm]();if(py(n,Ey)){var r=br()||{};return Math.max(parseInt(n[Om](Ey)[1]),r.documentMode||0)}if(py(n,Iy)){var i=parseInt(n[Om](Iy)[1]);if(i)return i+4}return null}();(!u||u>9)&&Rb(e[gS](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+gy(t),{exception:_n(t)})}return a},e.getOfflineSupport=function(){var e;return(e={getUrl:function(){return p},createPayload:K})[NS]=H,e.batch=q,e.shouldProcess=function(e){return!!$(e)},e},e._doTeardown=function(t,n){e.onunloadFlush(),function(e,t){if(e&&e[km])e[km](t)}(d,!1),oe()},e[OS]=function(t,n,r){if(!ee(t))return function(t,n,r){Rb(e[gS](),2,26,"Failed to send telemetry.",{message:n}),e._buffer&&e._buffer[uS](t)}(t,n)},e[US]=function(t,n){if(!ee(t))return function(t,n){for(var r=[],i=[],a=0,o=n.errors.reverse();a0&&e[jS](t,n[BS]),r[Kx]>0&&e[OS](r,xy(null,["partial success",n[BS],"of",n.itemsReceived].join(" "))),i[Kx]>0&&(ne(i),Rb(e[gS](),2,40,"Partial success. Delivered: "+t[Kx]+", Failed: "+r[Kx]+". Will retry to send "+i[Kx]+" our of "+n[FS]+" items"))}(t,n)},e[jS]=function(t,n){if(!ee(t))return function(t,n){e._buffer&&e._buffer[uS](t)}(t)},e._xdrOnLoad=function(e,t){if(!ee(t))return F(e,t)}})),c}return ga(t,e),t.constructEnvelope=function(e,t,n,r){var i;return i=t===e.iKey||an(t)?e:pa(pa({},e),{iKey:t}),(vT[i.baseType]||nT)(n,i,r)},t}(Cx);function yT(e){if(!e)return{};var t=e[Su](";"),n=Gr(t,(function(e,t){var n=t[Su]("=");if(2===n[Tu]){var r=n[0][ku](),i=n[1];e[r]=i}return e}),{});if(Un(n)[Tu]>0){if(n.endpointsuffix){var r=n.location?n.location+".":"";n[Cu]=n[Cu]||"https://"+r+"dc."+n.endpointsuffix}n[Cu]=n[Cu]||"https://web.archive.org/web/20241212195116/https://dc.services.visualstudio.com",bi(n[Cu],"/")&&(n[Cu]=n[Cu].slice(0,-1))}return n}var bT=function(e,t){var n,r,i,a,o,s,u,c=this,l=!1,d=!1;function f(e,t,i,a){if(l){var s=function(e){try{var t=p(e);return(1e6>0?Math.floor(Is()/xs*1000001)>>>0:0)<=t.limit.samplingRate}catch(e){}return!1}(e);if(!s)return;var u=p(e),c=x(e),d=g(u,n,c),f=!1,h=0,m=S(e);try{d&&!m?(h=Math.min(u.limit.maxSendNumber,c[Pu]+1),c[Pu]=0,f=!0,o[e]=!0,c[Du]=new Date):(o[e]=d,c[Pu]+=1);var b=v(e);y(r,b,c);for(var k=0;k0,c[Ru]=(o=null===(a=(a=l)||{})||void 0===a?void 0:a.monthInterval,s=null==a?void 0:a.dayInterval,an(o)&&an(s)&&(a.monthInterval=3,d||(a[Nu]=[28],d=!0)),a={monthInterval:null==a?void 0:a.monthInterval,dayInterval:null==a?void 0:a.dayInterval,daysOfMonth:null==a?void 0:a.daysOfMonth});var f={samplingRate:(null===(n=u.limit)||void 0===n?void 0:n.samplingRate)||100,maxSendNumber:(null===(r=u.limit)||void 0===r?void 0:r.maxSendNumber)||1};c.limit=f,i[e]=c}catch(e){}}function g(e,t,n){if(e&&!e[Lu]&&t&&Jo(n)){var r=m(),i=n[Ou],a=e[Ru],o=1;if(null==a?void 0:a.monthInterval){var s=12*(r.getUTCFullYear()-i.getUTCFullYear())+r.getUTCMonth()-i.getUTCMonth();o=b(a.monthInterval,0,s)}var u=1;if(d)u=$r(a[Nu],r[Uu]());else if(null==a?void 0:a.dayInterval){var c=Math.floor((r.getTime()-i.getTime())/864e5);u=b(a.dayInterval,0,c)}return o>=0&&u>=0}return!1}function v(e,t){var n=Jo(t)?t:"";return e?"appInsightsThrottle"+n+"-"+e:null}function m(e){try{if(!e)return new Date;var t=new Date(e);if(!isNaN(t.getDate()))return t}catch(e){}return null}function y(e,t,n){try{return fc(e,t,ai(JSON[ju](n)))}catch(e){}return!1}function b(e,t,n){return e<=0?1:n>=t&&(n-t)%e==0?Math.floor((n-t)/e)+1:-1}function w(e,t,n,r){yu(t,r||1,e,n)}function x(e){try{var t=a[e];if(!t){var n=v(e,s);t=function(e,t,n){try{var r={date:m(),count:0};if(e){var i=JSON.parse(e);return{date:m(i[Ou])||r[Ou],count:i[Pu]||r[Pu],preTriggerDate:i.preTriggerDate?m(i[Du]):void 0}}return y(t,n,r),r}catch(e){}return null}(dc(r,n),r,n),a[e]=t}return a[e]}catch(e){}return null}function S(e){var t=o[e];if(an(t)){t=!1;var n=x(e);n&&(t=function(e){try{if(e){var t=new Date;return e.getUTCFullYear()===t.getUTCFullYear()&&e.getUTCMonth()===t.getUTCMonth()&&e[Uu]()===t[Uu]()}}catch(e){}return!1}(n[Du])),o[e]=t}return o[e]}function T(e){return an((u=u||{})[e])&&(u[e]=[]),u[e]}r=gu(e),o={},a={},u={},i={},h(109),s=Jo(t)?t:"",e.addUnloadHook(nu(e.config,(function(e){var t=e.cfg;n=lc(),xn(t.throttleMgrCfg||{},(function(e,t){h(parseInt(e),t)}))}))),c._getDbgPlgTargets=function(){return[u]},c.getConfig=function(){return i},c.canThrottle=function(e){var t=x(e);return g(p(e),n,t)},c.isTriggered=function(e){return S(e)},c.isReady=function(){return l},c.flush=function(e){try{var t=T(e);if(t&&t[Tu]>0){var n=t.slice(0);return u[e]=[],Vr(n,(function(e){f(e.msgID,e[_u],e.severity,!1)})),!0}}catch(e){}return!1},c.flushAll=function(){try{if(u){var e=!0;return xn(u,(function(t){var n=c.flush(parseInt(t));e=e&&n})),e}}catch(e){}return!1},c.onReadyState=function(e,t){return void 0===t&&(t=!0),(l=!!an(e)||e)&&t?c.flushAll():null},c.sendMessage=function(e,t,n){return f(e,t,n,!0)}},wT=wu({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2});function xT(e,t){if(e&&e[Ya])return e[Ya](t)}function ST(e,t,n){var r;return n||(r=ov((function(e){n=e}))),e&&gi(e)>0?Ug(xT(e[0],t),(function(){ST(Hr(e,1),t,n)})):n(),r}var TT={perfEvtsSendAll:!1};function kT(e){e.h=null;var t=e.cb;e.cb=[],Vr(t,(function(e){Qt(e.fn,[e.arg])}))}function CT(e,t,n,r){Vr(e,(function(e){e&&e[t]&&(n?(n.cb[Ia]({fn:r,arg:e}),n.h=n.h||Ii(kT,0,n)):Qt(r,[e]))}))}var AT,ET=function(){function e(t){var n,r;this.listeners=[];var i=[],a={h:null,cb:[]},o=tu(t,TT);r=o[Ca]((function(e){n=!!e.cfg.perfEvtsSendAll})),aa(e,this,(function(e){Cn(e,"listeners",{g:function(){return i}}),e[Na]=function(e){i[Ia](e)},e[Ra]=function(e){for(var t=$r(i,e);t>-1;)i[Ma](t,1),t=$r(i,e)},e[Oo]=function(e){CT(i,Oo,a,(function(t){t[Oo](e)}))},e[Uo]=function(e,t){CT(i,Uo,a,(function(n){n[Uo](e,t)}))},e[jo]=function(e,t){CT(i,jo,t?a:null,(function(n){n[jo](e,t)}))},e[Fo]=function(e){e&&(!n&&e[yo]()||CT(i,Fo,null,(function(t){e[io]?Ii((function(){return t[Fo](e)}),0):t[Fo](e)})))},e[Bo]=function(e){e&&e[ba]&&CT(i,Bo,a,(function(t){t[Bo](e)}))},e[Vo]=function(e){e&&e.data&&CT(i,Vo,a,(function(t){t[Vo](e)}))},e[$o]=function(e,t){if(e>0){var n=t||0;CT(i,$o,a,(function(t){t[$o](e,n)}))}},e[Ya]=function(e){var t,n=function(){r&&r.rm(),r=null,i=[],a.h&&a.h[Pa](),a.h=null,a.cb=[]};if(CT(i,"unload",null,(function(n){var r=n[Ya](e);r&&(t||(t=[]),t[Ia](r))})),t)return ov((function(e){return Ug(sv(t),(function(){n(),e()}))}));n()}}))}return e.__ieDyn=1,e}(),IT=function(e){function t(){var n,r,i=e.call(this)||this;function a(){n=0,r=[]}return i.identifier="TelemetryInitializerPlugin",i.priority=199,a(),aa(t,i,(function(e,t){e.addTelemetryInitializer=function(e){return function(e,t,n){var r={id:t,fn:n};return Br(e,r),{remove:function(){Vr(e,(function(t,n){if(t.id===r.id)return e[Ma](n,1),-1}))}}}(r,n++,e)},e[Ro]=function(t,n){(function(e,t,n){for(var r=!1,i=e[ba],a=0;a0)&&(P||(P=!0,X(t[Ca]((function(e){var t=e.cfg.diagnosticLogInterval;t&&t>0||(t=1e4);var n=!1;_&&(n=_[Xa],_[Pa]()),_=function(e,t){return Ei(!1,_t,Zt[zt](arguments))}(z,t),_.unref(),_[Xa]=n})))),_[Xa]=!0),_}function O(){var e={};k=[];var t=function(t){t&&Vr(t,(function(t){if(t[La]&&t[Za]&&!e[t.identifier]){var n=t[La]+"="+t[Za];k[Ia](n),e[t.identifier]=t}}))};t(f),d&&Vr(d,(function(e){t(e)})),t(l)}function U(){n=!1,(t=tu({},PT,e[Aa])).cfg[Qa]=1,Cn(e,"config",{g:function(){return t.cfg},s:function(t){e.updateCfg(t,!1)}}),Cn(e,"pluginVersionStringArr",{g:function(){return k||O(),k}}),Cn(e,"pluginVersionString",{g:function(){return C||(k||O(),C=k.join(";")),C||Eo}}),Cn(e,"logger",{g:function(){return r||(r=new vu(t.cfg),t[Aa]=r),r},s:function(e){t[Aa]=e,r!==e&&(xT(r,!1),r=e)}}),e[Aa]=new vu(t.cfg),T=[];var b=e.config[Lo]||[];b.splice(0,b[ba]),Br(b,T),h=new IT,i=[],xT(a,!1),a=null,o=null,s=null,xT(u,!1),u=null,c=null,l=[],d=null,f=null,p=!1,g=null,v=Ls("AIBaseCore",!0),m=Bd(),w=null,x=null,y=Vd(),S=[],C=null,k=null,D=!1,_=null,P=!1,A=0,E=null,I=null,M=!1}function j(){var n=Md(V(),t.cfg,e);return n[Ja](N),n}function F(t){var n=function(e,t,n){var r,i=[],a=[],o={};return Vr(n,(function(t){(an(t)||an(t[Da]))&&Pn(MT);var n=t[No],r=t[La];t&&n&&(an(o[n])?o[n]=r:bu(e,"Two extensions have same priority #"+n+" - "+o[n]+", "+r)),!n||n<500?i[Ia](t):a[Ia](t)})),(r={})[Mo]=i,r[Io]=a,r}(e[Aa],0,l);c=null,C=null,k=null,f=Td(Br(f=(d||[])[0]||[],n[Io]));var r=Br(Td(n[Mo]),f);T=Fn(r);var i=e.config[Lo]||[];i.splice(0,i[ba]),Br(i,T);var a=j();f&&f[ba]>0&&Sd(a[eo](f),r),Sd(a,r),t&&q(t)}function B(e){var t=null,n=null,r=[];return Vr(T,(function(t){if(t[La]===e&&t!==h)return n=t,-1;t.getChannel&&r[Ia](t)})),!n&&r[ba]>0&&Vr(r,(function(t){if(!(n=t.getChannel(e)))return-1})),n&&(t={plugin:n,setEnabled:function(e){xd(n)[Po]=!e},isEnabled:function(){var e=xd(n);return!e[to]&&!e[Po]},remove:function(e,t){var r;void 0===e&&(e=!0);var i=[n],a=((r={reason:1})[io]=e,r);$(i,a,(function(e){e&&F({reason:32,removed:i}),t&&t(e)}))}}),t}function V(){if(!c){var n=(T||[]).slice();-1===$r(n,h)&&n[Ia](h),c=Dd(Td(n),t.cfg,e)}return c}function $(n,r,i){if(n&&n[ba]>0){var a=_d(Dd(n,t.cfg,e),e);a[Ja]((function(){var e=!1,t=[];Vr(l,(function(r,i){LT(r,n)?e=!0:t[Ia](r)})),l=t,C=null,k=null;var r=[];d&&(Vr(d,(function(t,i){var a=[];Vr(t,(function(t){LT(t,n)?e=!0:a[Ia](t)})),r[Ia](a)})),d=r),i&&i(e),N()})),a[qa](r)}else i(!1)}function z(){if(r&&r.queue){var t=r.queue.slice(0);r.queue[ba]=0,Vr(t,(function(t){var n,r=((n={})[$a]=g||"InternalMessageId: "+t[no],n[za]=x,n[Ha]=es(new Date),n.baseType=hu.dataType,n.baseData={message:t[ro]},n);e.track(r)}))}}function H(e,t,n,r){var i=1,a=!1,o=null;function s(){i--,a&&0===i&&(o&&o[Pa](),o=null,t&&t(a),t=null)}return r=r||5e3,f&&f[ba]>0&&j()[eo](f).iterate((function(t){if(t.flush){i++;var a=!1;t.flush(e,(function(){a=!0,s()}),n)||a||(e&&null==o?o=Ii((function(){o=null,s()}),r):s())}})),a=!0,s(),!0}function q(t){var n=Pd(V(),e);n[Ja](N),e._updateHook&&!0===e._updateHook(n,t)||n[qa](t)}function K(t){var n=e[Aa];n?(yu(n,2,73,t),N()):Pn(t)}function G(t){var n=e[Ba]();n&&n[Uo]([t],2)}function X(e){y.add(e)}U(),e._getDbgPlgTargets=function(){return[T,i]},e[Oa]=function(){return n},e.activeStatus=function(){return A},e._setPendingStatus=function(){A=3},e[Da]=function(i,u,c,h){var g;p&&Pn(_T),e[Oa]()&&Pn("Core cannot be initialized more than once"),t=tu(i,PT,c||e[Aa],!1),i=t.cfg,X(t[Ca]((function(e){var t,a=e.cfg;if(3!==A){I=a.initInMemoMaxSize||100;var o=a[Ua],s=a.endpointUrl;if(an(o)){x=null,A=wT[ja];var u="Please provide instrumentation key";n?(yu(r,1,100,u),R()):Pn(u)}else{var c,l=[];if(gn(o)?(l[Ia](o),x=null):x=o,gn(s)?(l[Ia](s),E=null):E=s,l[ba]){M=!1,A=3;var d=Jo(a.initTimeOut)?a.initTimeOut:5e4,f=(c=l,!Kg&&(t=av,Kg=fr((function(e){var n=Hr(arguments,1);return t((function(t,n){var r=[],i=1;function a(e,n){i++,Ug(e,(function(e){e.rejected?r[n]={status:Og,reason:e.reason}:r[n]={status:"fulfilled",value:e.value},0==--i&&t(r)}))}try{ln(e)?Vr(e,a):Ur(e)?jr(e,a):Dn("Input is not an iterable"),0==--i&&t(r)}catch(e){n(e)}}),n)}))),Kg.v(c,undefined));Ii((function(){M||L()}),d),Ug(f,(function(e){try{if(M)return;if(!e.rejected){var t=e[Fa];if(t&&t[ba]){var n=t[0];if(x=n&&n[Fa],t[ba]>1){var r=t[1];E=r&&r[Fa]}}x&&(i[Ua]=x,i.endpointUrl=E)}L()}catch(e){M||L()}}))}else L();var p=e.ref(e.cfg,Do);xn(p,(function(t){e.ref(p,t)}))}}}))),b=OT(t,y,(a=h)&&e[Ba](),b),X(t[Ca]((function(t){var n,r,i,a;if(t.cfg.enablePerfMgr){var u=t.cfg[_o];g!==u&&(u||(u=DT),n=t.cfg,r=_o,i=u,n?!(a=n[r])&&an(a)&&(a=rn(i)?{}:i,n[r]=a):a=rn(i)?{}:i,g=u,s=null),o||s||!un(u)||(s=u(e,e[Ba]()))}else s=null,g=null}))),e[Aa]=c;var v=i[Lo];if((l=[])[Ia].apply(l,va(va([],u),v)),d=i[Io],F(null),f&&0!==f[ba]||Pn("No "+Io+" available"),d&&d[ba]>1){var m=e[Va]("TeeChannelController");m&&m.plugin||yu(r,1,28,"TeeChannel required")}!function(e,t,n){Vr(t,(function(t){var r=nu(e,t.w,n);delete t.w,t.rm=function(){r.rm()}}))}(i,S,r),S=null,n=!0,A===wT.ACTIVE&&R()},e.getChannels=function(){var e=[];return f&&Vr(f,(function(t){e[Ia](t)})),Fn(e)},e.track=function(t){bd(e[zo](),(function(){return"AppInsightsCore:track"}),(function(){null===t&&(G(t),Pn("Invalid telemetry item")),!t[$a]&&an(t[$a])&&(G(t),Pn("telemetry name required")),t[za]=t[za]||x,t[Ha]=t[Ha]||es(new Date),t.ver=t.ver||"4.0",!p&&e[Oa]()&&A===wT.ACTIVE?j()[qa](t):A!==wT[ja]&&i[ba]<=I&&i[Ia](t)}),(function(){return{item:t}}),!t.sync)},e[Ka]=j,e[Ba]=function(){return a||(a=new ET(t.cfg),e._notificationManager=a),a},e[Na]=function(t){e.getNotifyMgr()[Na](t)},e[Ra]=function(e){a&&a[Ra](e)},e.getCookieMgr=function(){return u||(u=Ll(t.cfg,e[Aa])),u},e.setCookieMgr=function(e){u!==e&&(xT(u,!1),u=e)},e[zo]=function(){return o||s||null},e.setPerfMgr=function(e){o=e},e.eventCnt=function(){return i[ba]},e.releaseQueue=function(){if(n&&i[ba]>0){var e=i;i=[],2===A?Vr(e,(function(e){e[za]=e[za]||x,j()[qa](e)})):yu(r,2,20,"core init status is not active")}},e[Ga]=function(e){return g=e||null,D=!1,_&&_[Pa](),N(!0)},e[Wa]=function(){D=!0,_&&_[Pa](),z()},as(e,(function(){return h}),["addTelemetryInitializer"]),e[Ya]=function(t,i,o){var s;void 0===t&&(t=!0),n||Pn("SDK is not initialized"),p&&Pn(_T);var c,l=((s={reason:50})[io]=t,s.flushComplete=!1,s);t&&!i&&(c=ov((function(e){i=e})));var d=_d(V(),e);function f(t){l.flushComplete=t,p=!0,m.run(d,l),e[Wa](),d[qa](l)}return d[Ja]((function(){y.run(e[Aa]),ST([u,a,r],t,(function(){U(),i&&i(l)}))}),e),z(),H(t,f,6,o)||f(!1),c},e[Va]=B,e.addPlugin=function(e,t,n,r){if(!e)return r&&r(!1),void K(MT);var i=B(e[La]);if(i&&!t)return r&&r(!1),void K("Plugin ["+e[La]+"] is already loaded!");var a={reason:16};function o(t){l[Ia](e),a.added=[e],F(a),r&&r(!0)}if(i){var s=[i.plugin];$(s,{reason:2,isAsync:!!n},(function(e){e?(a.removed=s,a.reason|=32,o()):r&&r(!1)}))}else o()},e.updateCfg=function(n,r){var i;if(void 0===r&&(r=!0),e[Oa]()){i={reason:1,cfg:t.cfg,oldCfg:pi({},t.cfg),newConfig:pi({},n),merge:r},n=i.newConfig;var a=t.cfg;n[Lo]=a[Lo],n[Io]=a[Io]}t._block((function(e){var t=e.cfg;RT(e,t,n,r),r||xn(t,(function(r){bn(n,r)||e.set(t,r,Ao)})),e[ka](t,PT)}),!0),t[xa](),i&&q(i)},e.evtNamespace=function(){return v},e.flush=H,e.getTraceCtx=function(e){var t;return w||(t={},w={getName:function(){return t[$a]},setName:function(e){t[$a]=e},getTraceId:function(){return t[So]},setTraceId:function(e){Qc(e)&&(t[So]=e)},getSpanId:function(){return t[To]},setSpanId:function(e){el(e)&&(t[To]=e)},getTraceFlags:function(){return t[ko]},setTraceFlags:function(e){t[ko]=e}}),w},e.setTraceCtx=function(e){w=e||null},e.addUnloadHook=X,is(e,"addUnloadCb",(function(){return m}),"add"),e.onCfgChange=function(r){var i,a,o,s;return n?i=nu(t.cfg,r,e[Aa]):((s=NT(a=S,o=r).l)||(s={w:o,rm:function(){var e=NT(a,o);-1!==e.i&&a[Ma](e.i,1)}},a[Ia](s)),i=s),function(e){return Cn({rm:function(){e.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON.stringify(e)+">"}})}(i)},e.getWParam=function(){return yr()||t.cfg.enableWParam?0:-1}}))}return e.__ieDyn=1,e}(),jT="toLowerCase",FT="blkVal",BT="length",VT="rdOnly",$T="notify",zT="warnToConsole",HT="throwInternal",qT="setDf",KT="watch",GT="logger",XT="apply",WT="push",YT="splice",JT="hdlr",ZT="cancel",QT="identifier",ek="isInitialized",tk="getPlugin",nk="name",rk="time",ik="processNext",ak="unload",ok="version",sk="createNew",uk="teardown",ck="messageId",lk="message",dk="isAsync",fk="diagLog",pk="_doTeardown",hk="update",gk="getNext",vk="setNextPlugin",mk="userAgent",yk="split",bk="nodeType",wk="replace",xk="type",Sk="isChildEvt",Tk="getCtx",kk="setCtx",Ck="complete",Ak=void 0,Ek="",Ik="core",Mk="disabled",_k="extensionConfig",Pk="processTelemetry",Dk="priority",Lk="getPerfMgr",Rk=/-([a-z])/g,Nk=/([^\w\d_$])/g,Ok=/^(\d+[\w\d_$])/,Uk=Object.getPrototypeOf;function jk(e){var t=e;return t&&sn(t)&&(t=(t=(t=t[wk](Rk,(function(e,t){return t.toUpperCase()})))[wk](Nk,"_"))[wk](Ok,(function(e,t){return"_"+t}))),t}function Fk(e,t){return!(!e||!t)&&-1!==Si(e,t)}function Bk(e,t,n,r,i){e&&t&&n&&(!1!==i||rn(e[t]))&&(e[t]=function(e,t){var n=null,r=null;return un(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t][XT](r,e)}}(n,r))}var Vk="JSON",$k="crypto",zk="msCrypto",Hk="msie",qk="trident/",Kk="XMLHttpRequest",Gk=null,Xk=null;function Wk(e){return typeof location===sa&&location?location:mr("location")}function Yk(){return Boolean(typeof JSON===sa&&JSON||null!==mr(Vk))}function Jk(){return Yk()?JSON||mr(Vk):null}var Zk=4294967296,Qk=4294967295,eC=123456789,tC=987654321,nC=!1,rC=eC,iC=tC;function aC(){try{var e=2147483647&Qr();(t=(Math.random()*Zk^e)+e)<0&&(t>>>=0),rC=eC+t&Qk,iC=tC-t&Qk,nC=!0}catch(e){}var t}function oC(e){var t=0,n=mr($k)||mr(zk);return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&Qk),0===t&&function(){var e=Cr();if(e&&(e[mk]!==Xk||null===Gk)){var t=((Xk=e[mk])||Ek)[jT]();Gk=Fk(t,Hk)||Fk(t,qk)}return Gk}()&&(nC||aC(),t=function(e){var t=((iC=36969*(65535&iC)+(iC>>16)&Qk)<<16)+(65535&(rC=18e3*(65535&rC)+(rC>>16)&Qk))>>>0&Qk|0;return t>>>=0}()&Qk),0===t&&(t=Math.floor(Zk*Math.random()|0)),e||(t>>>=0),t}function sC(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=Ek,r=0;r<4;r++)n+=t[15&(e=oC())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&oC())|0];return tr(n,0,8)+tr(n,9,4)+"4"+tr(n,13,3)+i+tr(n,16,3)+tr(n,19,12)}var uC="00",cC="00000000000000000000000000000000",lC="0000000000000000";function dC(e,t,n){return!(!e||e[BT]!==t||e===n||!e.match(/^[\da-f]*$/i))}function fC(e,t,n){return dC(e,t)?e:n}function pC(e,t,n,r){var i;return(i={})[ok]=dC(r,2,"ff")?r:uC,i.traceId=hC(e)?e:sC(),i.spanId=gC(t)?t:rr(sC(),16),i.traceFlags=n>=0&&n<=255?n:1,i}function hC(e){return dC(e,32,cC)}function gC(e){return dC(e,16,lC)}function vC(e){if(e){var t=function(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[BT]<2;)t="0"+t;return t}(e.traceFlags);dC(t,2)||(t="01");var n=e[ok]||uC;return"00"!==n&&"ff"!==n&&(n=uC),"".concat(n.toLowerCase(),"-").concat(fC(e.traceId,32,cC).toLowerCase(),"-").concat(fC(e.spanId,16,lC).toLowerCase(),"-").concat(t.toLowerCase())}return""}var mC="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",yC="/v2/track",bC="iKey",wC=zn({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]}),xC="3.3.3",SC="."+function(e){void 0===e&&(e=22);for(var t=oC()>>>0,n=0,r=Ek;r[BT]>>=6,5===n&&(t=(oC()<<2&4294967295|3&t)>>>0,n=0);return r}(6),TC=0;function kC(e){return 1===e[bk]||9===e[bk]||!+e[bk]}function CC(e,t){return void 0===t&&(t=!1),jk(e+TC+++(t?"."+xC:Ek)+SC)}function AC(e){var t={id:CC("_aiData-"+(e||Ek)+"."+xC),accept:function(e){return kC(e)},get:function(e,n,r,i){var a=e[t.id];return a?a[jk(n)]:(i&&(a=function(e,t){var n=t[e.id];if(!n){n={};try{kC(t)&&Cn(t,e.id,{e:!1,v:n})}catch(e){}}return n}(t,e),a[jk(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(e){}}};return t}function EC(e){return e&&cn(e)&&(e.isVal||e.fb||bn(e,"v")||bn(e,"mrg")||bn(e,"ref")||e.set)}function IC(e,t,n){var r,i=n.dfVal||on;if(t&&n.fb){var a=n.fb;ln(a)||(a=[a]);for(var o=0;o0&&function(e,t){UC||(UC=Zr("AggregationError",(function(e,t){t[BT]>1&&(e.errors=t[1])})));var n="Watcher error(s): ";throw Vr(t,(function(e,t){n+="\n".concat(t," > ").concat(_n(e))})),new UC(n,t||[])}(0,t)}}return(t={prop:r,ro:i,rf:a})[FT]=o,t[JT]=e,t.add=function(e){if(e&&e.h[BT]>0){u||(u=[]),c||(c=Ii((function(){c=null,d()}),0));for(var t=0;t=i)){var a=!0,o="AITR_"+n[ck];if(u[o]?a=!1:u[o]=!0,a&&(t<=r&&(e.queue[WT](n),s++,l(1===t?"error":"warn",n)),s===i)){var c="Internal events throttle limit per PageView reached for this app.",d=new nA(23,c,!1);e.queue[WT](d),1===t?e.errorToConsole(c):e[zT](c)}}}function l(e,n){var r=function(e){var t,n=YC;return n||!0===e.disableDbgExt||(n=YC||((t=mr("Microsoft"))&&(YC=t.ApplicationInsights),YC)),n?n.ChromeDbgExt:null}(t||{});r&&r[fk]&&r[fk](e,n)}o=function(t){return XC(GC(t,ZC,e).cfg,(function(e){var t=e.cfg;n=t.loggingLevelConsole,r=t.loggingLevelTelemetry,i=t.maxMessageLimit,a=t.enableDebug}))}(t||{}),e.consoleLoggingLevel=function(){return n},e[HT]=function(t,r,i,o,s){void 0===s&&(s=!1);var d=new nA(r,i,s,o);if(a)throw _n(d);var f=QC[t]||JC;if(rn(d[lk]))l("throw"+(1===t?"Critical":"Warning"),d);else{if(s){var p=+d[ck];!u[p]&&n>=t&&(e[f](d[lk]),u[p]=!0)}else n>=t&&e[f](d[lk]);c(t,d)}},e.debugToConsole=function(e){tA("debug",e),l("warning",e)},e[zT]=function(e){tA("warn",e),l("warning",e)},e.errorToConsole=function(e){tA("error",e),l("error",e)},e.resetInternalMessageCount=function(){s=0,u={}},e.logInternalMessage=c,e[ak]=function(e){o&&o.rm(),o=null}}))}return e.__ieDyn=1,e}();function aA(e,t,n,r,i,a){void 0===a&&(a=!1),function(e){return e||new iA}(e)[HT](t,n,r,i,a)}var oA="split",sA="length",uA="toLowerCase",cA="name",lA="pathname",dA="correlationHeaderExcludePatterns";function fA(e,t,n){var r=t[sA],i=function(e,t){var n;return t&&(t=ai(In(t)))[sA]>150&&(n=er(t,0,150),aA(e,2,57,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),n||t}(e,t);if(i[sA]!==r){for(var a=0,o=i;void 0!==n[o];)a++,o=er(i,0,147)+gA(a);i=o}return i}function pA(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=ai(In(t)))[sA]>n&&(r=er(t,0,n),aA(e,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function hA(e,t){return function(e,t,n,r){var i;return t&&(t=ai(In(t)))[sA]>n&&(i=er(t,0,n),aA(e,2,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),i||t}(e,t,2048,66)}function gA(e){var t="00"+e;return tr(t,t[sA]-3)}var vA=br()||{},mA=0,yA=[null,null,null,null,null];function bA(e){var t=mA,n=yA,r=n[t];return vA.createElement?n[t]||(r=n[t]=vA.createElement("a")):r={host:wA(e,!0)},r.href=e,++t>=n[sA]&&(t=0),mA=t,r}function wA(e,t){var n=xA(e,t)||"";if(n){var r=n.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(null!=r&&r[sA]>3&&sn(r[2])&&r[2][sA]>0)return r[2]+(r[3]||"")}return n}function xA(e,t){var n=null;if(e){var r=e.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(null!=r&&r[sA]>2&&sn(r[2])&&r[2][sA]>0&&(n=r[2]||"",t&&r[sA]>2)){var i=(r[1]||"")[uA](),a=r[3]||"";("http"===i&&":80"===a||"https"===i&&":443"===a)&&(a=""),n+=a}}return n}var SA=["https://web.archive.org/web/20241212195116/https://dc.services.visualstudio.com"+yC,"https://web.archive.org/web/20241212195116/https://breeze.aimon.applicationinsights.io"+yC,"https://web.archive.org/web/20241212195116/https://dc-int.services.visualstudio.com"+yC];function TA(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e[dA])for(var r=0;r0}function kA(e){if(e){var t=function(e,t){if(e)for(var n=e[oA](","),r=0;r0)return t}return Qr()}function AA(e,t){var n=null;return 0===e||0===t||an(e)||an(t)||(n=t-e),n}function EA(e,t,n,r,i,a){var o;n=pA(r,n)||"not_specified",(an(e)||an(t)||an(n))&&Pn("Input doesn't contain all required fields");var s="";e[bC]&&(s=e[bC],delete e[bC]);var u,c=((o={})[cA]=n,o.time=(u=new Date)&&u.toISOString()||"",o.iKey=s,o.ext=a||{},o.tags=[],o.data={},o.baseType=t,o.baseData=e,o);return an(i)||xn(i,(function(e,t){c.data[e]=t})),c}var IA="";function MA(e){(isNaN(e)||e<0)&&(e=0),e=Math.round(e);var t=IA+e%1e3,n=IA+Math.floor(e/1e3)%60,r=IA+Math.floor(e/6e4)%60,i=IA+Math.floor(e/36e5)%24,a=Math.floor(e/864e5);return t=1===t[sA]?"00"+t:2===t[sA]?"0"+t:t,n=n[sA]<2?"0"+n:n,r=r[sA]<2?"0"+r:r,i=i[sA]<2?"0"+i:i,(a>0?a+".":IA)+i+":"+r+":"+n+"."+t}var _A=function(){function e(e,t,n,r,i,a,o,s,u,c,l,d){void 0===u&&(u="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var f=this;f.ver=2,f.id=t,f.duration=MA(i),f.success=a,f.resultCode=o+"",f.type=pA(e,u);var p=function(e,t,n,r){var i,a=r,o=r;if(t&&t[sA]>0){var s=bA(t);if(i=s.host,!a)if(null!=s[lA]){var u=0===s.pathname[sA]?"/":s[lA];"/"!==u.charAt(0)&&(u="/"+u),o=s[lA],a=pA(e,n?n+" "+u:u)}else a=pA(e,t)}else i=r,a=r;return{target:i,name:a,data:o}}(e,n,s,r);f.data=hA(e,r)||p.data,f.target=pA(e,p.target),c&&(f.target="".concat(f.target," | ").concat(c)),f[cA]=pA(e,p[cA]),f.properties=function(e,t){if(t){var n={};xn(t,(function(t,r){if(cn(r)&&Yk())try{r=Jk().stringify(r)}catch(t){aA(e,2,49,"custom property is not valid",{exception:t},!0)}r=pA(e,r,8192),t=fA(e,t,n),n[t]=r})),t=n}return t}(e,l),f.measurements=function(e,t){if(t){var n={};xn(t,(function(t,r){t=fA(e,t,n),n[t]=r})),t=n}return t}(e,d)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}(),PA="attachEvent",DA="addEventListener",LA="events",RA=(CC("aiEvtPageHide"),CC("aiEvtPageShow"),/\.[\.]+/g),NA=/[\.]+$/,OA=1,UA=AC("events"),jA=/^([^.]*)(?:\.(.+)|)/;function FA(e){return e&&e[wk]?e[wk](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,Ek):e}function BA(e,t){var n;if(t){var r=Ek;ln(t)?(r=Ek,Vr(t,(function(e){(e=FA(e))&&("."!==e[0]&&(e="."+e),r+=e)}))):r=FA(t),r&&("."!==r[0]&&(r="."+r),e=(e||Ek)+r)}var i=jA.exec(e||Ek)||[];return(n={})[xk]=i[1],n.ns=(i[2]||Ek).replace(RA,".").replace(NA,Ek)[yk](".").sort().join("."),n}function VA(e,t,n,r,i){var a;void 0===i&&(i=!1);var o=!1;if(e)try{var s=BA(t,r);if(o=function(e,t,n,r){var i=!1;return e&&t&&t[xk]&&n&&(e[DA]?(e[DA](t[xk],n,r),i=!0):e[PA]&&(e[PA]("on"+t[xk],n),i=!0)),i}(e,s,n,i),o&&UA.accept(e)){var u=((a={guid:OA++,evtName:s}).handler=n,a.capture=i,a);(function(e,t,n){void 0===n&&(n=!0);var r=UA.get(e,LA,{},n),i=r[t];return i||(i=r[t]=[]),i})(e,s.type)[WT](u)}}catch(e){}return o}var $A="ctx",zA="ParentContextKey",HA="ChildrenContextKey",qA=function(){function e(t,n,r){var i,a=this;a.start=Qr(),a[nk]=t,a[dk]=r,a[Sk]=function(){return!1},un(n)&&Cn(a,"payload",{g:function(){return!i&&un(n)&&(i=n(),n=null),i}}),a[Tk]=function(t){return t?t===e[zA]||t===e[HA]?a[t]:(a[$A]||{})[t]:null},a[kk]=function(t,n){t&&(t===e[zA]?(a[t]||(a[Sk]=function(){return!0}),a[t]=n):t===e[HA]?a[t]=n:(a[$A]=a[$A]||{})[t]=n)},a[Ck]=function(){var t=0,n=a[Tk](e[HA]);if(ln(n))for(var r=0;r0&&(Vr(t,(function(e){try{e.func.call(e.self,e.args)}catch(e){aA(n[GT],2,73,"Unexpected Exception during onComplete - "+_n(e))}})),a=[])}return e},ctx:{core:function(){return n},diagLog:function(){return rA(n,t.cfg)},getCfg:function(){return t.cfg},getExtCfg:function(e,n){var r=s(e,!0);return n&&xn(n,(function(e,n){if(an(r[e])){var i=t.cfg[e];!i&&an(i)||(r[e]=i)}_C(t,r,e,n)})),t[qT](r,n)},getConfig:function(e,n,r){void 0===r&&(r=!1);var i,a=s(e,!1),o=t.cfg;return!a||!a[n]&&an(a[n])?!o[n]&&an(o[n])||(i=o[n]):i=a[n],i||!an(i)?i:r},hasNext:function(){return!!i},getNext:function(){return i},setNext:function(e){i=e},iterate:function(e){for(var t;t=o._next();){var n=t[tk]();n&&e(n)}},onComplete:function(e,t){for(var n=[],r=2;r0){var o=null;Vr(e,(function(e){if(a||r!==e||(a=!0),a&&e&&un(e[Pk])){var s=function(e,t,n){var r,i=null,a=un(e[Pk]),o=un(e[vk]),s={getPlugin:function(){return e},getNext:function(){return i},processTelemetry:function(r,c){u(c=c||function(){var r;return e&&un(e[JA])&&(r=e[JA]()),r||(r=eE(s,t,n)),r}(),(function(t){if(!e||!a)return!1;var n=XA(e);return!n[uk]&&!n[Mk]&&(o&&e[vk](i),e[Pk](r,t),!0)}),"processTelemetry",(function(){return{item:r}}),!r.sync)||c[ik](r)},unload:function(t,n){u(t,(function(){var r=!1;if(e){var i=XA(e),a=e[Ik]||i[Ik];!e||a&&a!==t.core()||i[uk]||(i[Ik]=null,i[uk]=!0,i[ek]=!1,e[uk]&&!0===e[uk](t,n)&&(r=!0))}return r}),"unload",(function(){}),n[dk])||t[ik](n)},update:function(t,n){u(t,(function(){var r=!1;if(e){var i=XA(e),a=e[Ik]||i[Ik];!e||a&&a!==t.core()||i[uk]||e[hk]&&!0===e[hk](t,n)&&(r=!0)}return r}),"update",(function(){}),!1)||t[ik](n)},_id:r=e?e[QT]+"-"+e[Dk]+"-"+ZA++:"Unknown-0-"+ZA++,_setNext:function(e){i=e}};function u(t,n,a,o,s){var u=!1,c=e?e[QT]:WA,l=t[YA];return l||(l=t[YA]={}),t.setNext(i),e&&function(e,t,n,r,i){if(e){var o=e;if(o[Lk]&&(o=o[Lk]()),o){var s=void 0,u=o[Tk](KA);try{if(s=o.create(c+":"+a,r,i)){if(u&&s[kk]&&(s[kk](qA[zA],u),u[Tk]&&u[kk])){var l=u[Tk](qA[HA]);l||(l=[],u[kk](qA[HA],l)),l[WT](s)}return o[kk](KA,s),n()}}catch(e){s&&s[kk]&&s[kk]("exception",e)}finally{s&&o.fire(s),o[kk](KA,u)}}}n()}(t[Ik](),0,(function(){l[r]=!0;try{var e=i?i._id:Ek;e&&(l[e]=!1),u=n(t)}catch(e){var o=!i||l[i._id];o&&(u=!0),i&&o||aA(t[fk](),1,73,"Plugin ["+c+"] failed during "+a+" - "+_n(e)+", run flags: "+_n(l))}}),o,s),u}return Fn(s)}(e,t,n);i||(i=s),o&&o._setNext(s),o=s}}))}return r&&!i?rE([r],t,n):i}var iE,aE="_aiHooks",oE=["req","rsp","hkErr","fnErr"];function sE(e,t){if(e)for(var n=0;n=0&&i<=2&&sE(e,(function(e,a){var o=e.cbks,s=o[oE[i]];if(s){t.ctx=function(){return r[a]=r[a]||{}};try{s[XT](t.inst,n)}catch(e){var u=t.err;try{var c=o[oE[2]];c&&(t.err=e,c[XT](t.inst,n))}catch(e){}finally{t.err=u}}}}))}function cE(e,t,n,r){var i=null;return e&&(yn(e,t)?i=e:n&&(i=cE(Uk(e),t,r,!1))),i}function lE(e,t,n,r,i){if(void 0===r&&(r=!0),e&&t&&n){var a=cE(e,t,r,i);if(a){var o=a[t];if(typeof o===oa)return function(e,t,n,r){var i=n&&n[aE];if(!i){var a=function(e){return function(){var t,n=arguments,r=e.h,i=((t={})[nk]=e.n,t.inst=this,t.ctx=null,t.set=function(e,t){(n=s([],n))[e]=t,o=s([i],n)},t),a=[],o=s([i],n);function s(e,t){return sE(t,(function(t){e[WT](t)})),e}i.evt=mr("event"),uE(r,i,o,a,0);var u=e.f;if(u)try{i.rslt=u[XT](this,n)}catch(e){throw i.err=e,uE(r,i,o,a,3),e}return uE(r,i,o,a,1),i.rslt}}(i={i:0,n:t,f:n,h:[]});a[aE]=i,e[t]=a}var o={id:i.i,cbks:r,rm:function(){var e=this.id;sE(i.h,(function(t,n){if(t.id===e)return i.h[YT](n,1),1}))}};return i.i++,i.h[WT](o),o}(a,t,o,n)}}return null}var dE="getPlugin",fE=((iE={})[_k]={isVal:function(e){return!an(e)},v:{}},iE),pE=function(){function e(){var t,n,r,i,a,o=this;function s(e){void 0===e&&(e=null);var t=e;if(!t){var i=n||eE(null,{},o[Ik]);t=r&&r[dE]?i[sk](null,r[dE]):i[sk](null,r)}return t}function u(e,t,i){GC(e,fE,rA(t)),!i&&t&&(i=t.getProcessTelContext()[gk]());var a=r;r&&r[dE]&&(a=r[dE]()),o[Ik]=t,n=eE(i,e,t,a)}function c(){var e,s;t=!1,o[Ik]=null,n=null,r=null,e=[],a={run:function(t){var n=e;e=[],Vr(n,(function(e){try{(e.rm||e.remove).call(e)}catch(e){aA(t,2,73,"Unloading:"+_n(e))}}))},add:function(t){t&&Br(e,t)}},s=[],i={add:function(e){e&&s[WT](e)},run:function(e,t){Vr(s,(function(n){try{n(e,t)}catch(t){aA(e[fk](),2,73,"Unexpected error calling unload handler - "+_n(t))}})),s=[]}}}c(),aa(e,o,(function(e){e.initialize=function(e,n,r,i){u(e,n,i),t=!0},e[uk]=function(t,n){var o,s=e[Ik];if(s&&(!t||s===t[Ik]())){var u,l=!1,d=t||tE(null,s,r&&r[dE]?r[dE]():r),f=n||((o={reason:0})[dk]=!1,o);return e[pk]&&!0===e[pk](d,f,p)?u=!0:p(),u}function p(){l||(l=!0,i.run(d,n),a.run(d[fk]()),!0===u&&d[ik](f),c())}},e[hk]=function(t,n){var i=e[Ik];if(i&&(!t||i===t[Ik]())){var a,o=!1,s=t||nE(null,i,r&&r[dE]?r[dE]():r),c=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(s,c,l)?a=!0:l(),a}function l(){o||(o=!0,u(s.getCfg(),s.core(),s[gk]()))}},Bk(e,"_addUnloadCb",(function(){return i}),"add"),Bk(e,"_addHook",(function(){return a}),"add"),Cn(e,"_unloadHooks",{g:function(){return a}})})),o[fk]=function(e){return s(e)[fk]()},o[ek]=function(){return t},o.setInitialized=function(e){t=e},o[vk]=function(e){r=e},o[ik]=function(e,t){t?t[ik](e):r&&un(r[Pk])&&r[Pk](e,null)},o._getTelCtx=s}return e.__ieDyn=1,e}(),hE="duration",gE="properties",vE="requestUrl",mE="inst",yE="length",bE="traceID",wE="spanID",xE="traceFlags",SE="context",TE="aborted",kE="traceId",CE="spanId",AE="_addHook",EE="core",IE="includeCorrelationHeaders",ME="getAbsoluteUrl",_E="headers",PE="requestHeaders",DE="setRequestHeader",LE="trackDependencyDataInternal",RE="startTime",NE="toLowerCase",OE="enableRequestHeaderTracking",UE="enableAjaxErrorStatusText",jE="enableAjaxPerfTracking",FE="maxAjaxCallsPerView",BE="excludeRequestFromAutoTrackingPatterns",VE="addRequestContext",$E="disableAjaxTracking",zE="ajaxPerfLookupDelay",HE="disableFetchTracking",qE="enableResponseHeaderTracking",KE="status",GE="statusText",XE="headerMap",WE="openDone",YE="sendDone",JE="requestSentTime",ZE="abortDone",QE="getTraceId",eI="getTraceFlags",tI="method",nI="errorStatusText",rI="stateChangeAttached",iI="responseText",aI="responseFinishedTime",oI="CreateTrackItem",sI="response",uI="getAllResponseHeaders",cI="getPartAProps",lI="perfMark",dI="name",fI="perfTiming",pI="exception",hI="ajaxDiagnosticsMessage",gI="correlationContext",vI="ajaxTotalDuration",mI="eventTraceCtx";function yI(e){var t="ai."+e+".";return function(e){return t+e}}var bI=yI("application"),wI=yI("device"),xI=yI("location"),SI=yI("operation"),TI=yI("session"),kI=yI("user"),CI=yI("cloud"),AI=yI("internal"),EI=function(e){function t(){return e.call(this)||this}return ga(t,e),t}(function(e){return function(){var t=this;e&&xn(e,(function(e,n){t[e]=n}))}}({applicationVersion:bI("ver"),applicationBuild:bI("build"),applicationTypeId:bI("typeId"),applicationId:bI("applicationId"),applicationLayer:bI("layer"),deviceId:wI("id"),deviceIp:wI("ip"),deviceLanguage:wI("language"),deviceLocale:wI("locale"),deviceModel:wI("model"),deviceFriendlyName:wI("friendlyName"),deviceNetwork:wI("network"),deviceNetworkName:wI("networkName"),deviceOEMName:wI("oemName"),deviceOS:wI("os"),deviceOSVersion:wI("osVersion"),deviceRoleInstance:wI("roleInstance"),deviceRoleName:wI("roleName"),deviceScreenResolution:wI("screenResolution"),deviceType:wI("type"),deviceMachineName:wI("machineName"),deviceVMName:wI("vmName"),deviceBrowser:wI("browser"),deviceBrowserVersion:wI("browserVersion"),locationIp:xI("ip"),locationCountry:xI("country"),locationProvince:xI("province"),locationCity:xI("city"),operationId:SI("id"),operationName:SI("name"),operationParentId:SI("parentId"),operationRootId:SI("rootId"),operationSyntheticSource:SI("syntheticSource"),operationCorrelationVector:SI("correlationVector"),sessionId:TI("id"),sessionIsFirst:TI("isFirst"),sessionIsNew:TI("isNew"),userAccountAcquisitionDate:kI("accountAcquisitionDate"),userAccountId:kI("accountId"),userAgent:kI("userAgent"),userId:kI("id"),userStoreRegion:kI("storeRegion"),userAuthUserId:kI("authUserId"),userAnonymousUserAcquisitionDate:kI("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:kI("authUserAcquisitionDate"),cloudName:CI("name"),cloudRole:CI("role"),cloudRoleVer:CI("roleVer"),cloudRoleInstance:CI("roleInstance"),cloudEnvironment:CI("environment"),cloudLocation:CI("location"),cloudDeploymentUnit:CI("deploymentUnit"),internalNodeName:AI("nodeName"),internalSdkVersion:AI("sdkVersion"),internalAgentVersion:AI("agentVersion"),internalSnippet:AI("snippet"),internalSdkSrc:AI("sdkSrc")}));function II(e,t,n){var r=0,i=e[t],a=e[n];return i&&a&&(r=AA(i,a)),r}function MI(e,t,n,r,i){var a=0,o=II(n,r,i);return o&&(a=_I(e,t,MA(o))),a}function _I(e,t,n){var r="ajaxPerf",i=0;return e&&t&&n&&((e[r]=e[r]||{})[t]=n,i=1),i}new EI;var PI,DI=function(){var e=this;e[WE]=!1,e.setRequestHeaderDone=!1,e[YE]=!1,e[ZE]=!1,e[rI]=!1},LI=function(){function e(t,n,r,i){var a,o=this,s=r;o[lI]=null,o.completed=!1,o.requestHeadersSize=null,o[PE]=null,o.responseReceivingDuration=null,o.callbackDuration=null,o[vI]=null,o[TE]=0,o.pageUrl=null,o[vE]=null,o.requestSize=0,o[tI]=null,o[KE]=null,o[JE]=null,o.responseStartedTime=null,o[aI]=null,o.callbackFinishedTime=null,o.endTime=null,o.xhrMonitoringState=new DI,o.clientFailure=0,o[bE]=t,o[wE]=n,o[xE]=null==i?void 0:i.getTraceFlags(),o[mI]=i?((a={})[kE]=i[QE](),a[CE]=i.getSpanId(),a[xE]=i[eI](),a):null,aa(e,o,(function(e){e.getAbsoluteUrl=function(){return e[vE]?function(e){var t,n=bA(e);return n&&(t=n.href),t}(e[vE]):null},e.getPathName=function(){return e[vE]?hA(s,(t=e[tI],n=e[vE],t?t.toUpperCase()+" "+n:n)):null;var t,n},e[oI]=function(t,n,r){var i;if(e.ajaxTotalDuration=Math.round(1e3*AA(e.requestSentTime,e.responseFinishedTime))/1e3,e[vI]<0)return null;var a=((i={id:"|"+e[bE]+"."+e[wE],target:e[ME]()})[dI]=e.getPathName(),i.type=t,i[RE]=null,i.duration=e[vI],i.success=+e[KE]>=200&&+e[KE]<400,i.responseCode=+e[KE],i[gE]={HttpMethod:e[tI]},i),o=a[gE];if(e[TE]&&(o[TE]=!0),e[JE]&&(a[RE]=new Date,a[RE].setTime(e[JE])),function(e,t){var n=e[fI],r=t[gE]||{},i=0,a="name",o="Start",s="End",u="domainLookup",c="connect",l="redirect",d="request",f="response",p="startTime",h=u+o,g=u+s,v=c+o,m=c+s,y=d+o,b=d+s,w=f+o,x=f+s,S=l+o,T=l=s,k="transferSize",C="encodedBodySize",A="decodedBodySize",E="serverTiming";if(n){i|=MI(r,l,n,S,T),i|=MI(r,u,n,h,g),i|=MI(r,c,n,v,m),i|=MI(r,d,n,y,b),i|=MI(r,f,n,w,x),i|=MI(r,"networkConnect",n,p,m),i|=MI(r,"sentRequest",n,y,x);var I=n[hE];I||(I=II(n,p,x)||0),i|=_I(r,hE,I),i|=_I(r,"perfTotal",I);var M=n[E];if(M){var _={};Vr(M,(function(e,t){var n=jk(e[a]||""+t),r=_[n]||{};xn(e,(function(e,t){(e!==a&&sn(t)||fn(t))&&(r[e]&&(t=r[e]+";"+t),!t&&sn(t)||(r[e]=t))})),_[n]=r})),i|=_I(r,E,_)}i|=_I(r,k,n[k]),i|=_I(r,C,n[C]),i|=_I(r,A,n[A])}else e[lI]&&(i|=_I(r,"missing",e.perfAttempts));i&&(t[gE]=r)}(e,a),n&&Un(e.requestHeaders)[yE]>0&&(o[PE]=e[PE]),r){var s=r();if(s){var u=s[gI];if(u&&(a.correlationContext=u),s[XE]&&Un(s.headerMap)[yE]>0&&(o.responseHeaders=s[XE]),e[nI])if(e[KE]>=400){var c=s.type;""!==c&&"text"!==c||(o.responseText=s.responseText?s[GE]+" - "+s.responseText:s[GE]),"json"===c&&(o.responseText=s.response?s[GE]+" - "+JSON.stringify(s[sI]):s[GE])}else 0===e[KE]&&(o.responseText=s[GE]||"")}}return a},e[cI]=function(){var t,n=null,r=e[mI];if(r&&(r[kE]||r[CE])){var i=(n={}).trace=((t={})[bE]=r[kE],t.parentID=r[CE],t);an(r[xE])||(i[xE]=r[xE])}return n}}))}return e.__ieDyn=1,e}(),RI="diagLog",NI="_ajaxData",OI="fetch",UI="Failed to monitor XMLHttpRequest",jI=", monitoring data for this ajax call ",FI=jI+"may be incorrect.",BI=jI+"won't be sent.",VI="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",$I="Failed to add custom defined request context as configured call back may missing a null check.",zI="Failed to calculate the duration of the ",HI=0;function qI(e,t){var n,r,i=!1;if(function(){var e=!1;try{e=!!mr(Kk)}catch(e){}return e}()){var a=XMLHttpRequest[ca];i=!(an(a)||an(a.open)||an(a.send)||an(a.abort))}var o=function(e){if(void 0===e&&(e=null),!e){var t=Cr()||{};e=t?(t.userAgent||Ek)[jT]():Ek}var n=(e||Ek)[jT]();if(Fk(n,Hk)){var r=br()||{};return Math.max(parseInt(n[yk](Hk)[1]),r.documentMode||0)}if(Fk(n,qk)){var i=parseInt(n[yk](qk)[1]);if(i)return i+4}return null}();if(o&&o<9&&(i=!1),i)try{var s=new XMLHttpRequest,u={xh:[],i:(n={},n[t]={},n)};s[NI]=u;var c=XMLHttpRequest[ca].open;XMLHttpRequest[ca].open=c}catch(t){i=!1,WI(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",((r={})[pI]=_n(t),r))}return i}var KI=function(e,t){return e&&t&&e[NI]?(e[NI].i||{})[t]:null},GI=function(e,t){var n=!1;if(e){var r=(e[NI]||{}).xh;r&&Vr(r,(function(e){if(e.n===t)return n=!0,-1}))}return n};function XI(e,t){var n="";try{var r=KI(e,t);r&&r[vE]&&(n+="(url: '"+r[vE]+"')")}catch(e){}return n}function WI(e,t,n,r,i){aA(e[RI](),1,t,n,r,i)}function YI(e,t,n,r,i){aA(e[RI](),2,t,n,r,i)}function JI(e,t,n){return function(r){var i;WI(e,t,n,((i={ajaxDiagnosticsMessage:XI(r[mE],e._ajaxDataId)})[pI]=_n(r.err),i))}}function ZI(e,t){return e&&t?Si(e,t):-1}function QI(e,t,n){var r={id:t,fn:n};return e.push(r),{remove:function(){Vr(e,(function(t,n){if(t.id===r.id)return e.splice(n,1),-1}))}}}function eM(e,t,n,r){var i=!0;return Vr(t,(function(t,a){try{!1===t.fn.call(null,n)&&(i=!1)}catch(t){aA(e&&e.logger,1,64,"Dependency "+r+" [#"+a+"] failed: "+(hn(o=t)?o[nk]:Ek),{exception:_n(t)},!0)}var o})),i}var tM="*.blob.core.",nM=Fn([tM+"windows.net",tM+"chinacloudapi.cn",tM+"cloudapi.de",tM+"usgovcloudapi.net"]),rM=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i],iM=Fn(((PI={})[FE]=500,PI[$E]=!1,PI[HE]=!1,PI[BE]=void 0,PI.disableCorrelationHeaders=!1,PI.distributedTracingMode=1,PI.correlationHeaderExcludedDomains=nM,PI.correlationHeaderDomains=void 0,PI.correlationHeaderExcludePatterns=void 0,PI.appId=void 0,PI.enableCorsCorrelation=!1,PI[OE]=!1,PI[qE]=!1,PI[UE]=!1,PI[jE]=!1,PI.maxAjaxPerfLookupAttempts=3,PI[zE]=25,PI.ignoreHeaders=["Authorization","X-API-Key","WWW-Authenticate"],PI[VE]=void 0,PI.addIntEndpoints=!0,PI)),aM=function(e){function t(){var n,r,i,a,o,s,u,c,l,d,f,p,h,g,v,m,y,b,w,x,S,T,k,C,A,E,I,M,_,P,D=e.call(this)||this;return D.identifier=t.identifier,D.priority=120,aa(t,D,(function(e,D){var L=D[AE];function R(){var t=Wk();n=!1,r=!1,P=!1,i=t&&t.host&&t.host[NE](),a=null,o=!1,s=!1,u=0,c=null,l=!1,d=!1,f=null,p=!1,h=0,g=!1,v={},m=!1,y=!1,b=null,w=null,x=null,T=0,k=[],C=[],S=CC("ajaxData"),e._ajaxDataId=S,A=null,E=1,I=1,M=1,_=null}function N(e){var t=!0;return(e||A)&&Vr(A,(function(n){if(n[NE]()===e[NE]())return t=!1,-1})),t}function O(e,t,n){L(function(e,t,n){return e?lE(e[ca],t,n,!1):null}(e,t,n))}function U(e,t,n){var r=!1,i=((sn(t)?t:(t||{}).url||"")||"")[NE]();if(Vr(b,(function(e){var t=e;sn(e)&&(t=new RegExp(e)),r||(r=t.test(i))})),r)return r;var a=ZI(i,"?"),o=ZI(i,"#");return(-1===a||-1!==o&&o=0;p--){var h=f[p];if(h){if("resource"===h.entryType)h.initiatorType!==e||-1===ZI(h[dI],u)&&-1===ZI(u,h[dI])||(d=h);else if("mark"===h.entryType&&h[dI]===i[dI]){t[fI]=d;break}if(h[RE]=o||!1===t.async?(i&&un(a.clearMarks)&&a.clearMarks(i[dI]),t.perfAttempts=c,n()):Ii(l,s)}catch(e){r(e)}}()}function $(t){var n="";try{an(t)||(n+="(url: '".concat("string"==typeof t?t:t.url,"')"))}catch(t){WI(e,15,"Failed to grab failed fetch diagnostics message",{exception:_n(t)})}return n}function z(t,n,r,i,a,s,u){function c(t,n,i){var a=i||{};a.fetchDiagnosticsMessage=$(r),n&&(a.exception=_n(n)),YI(e,t,zI+"fetch call"+BI,a)}a&&(a[aI]=CA(),a[KE]=n,V(OI,a,(function(){var t,u=a[oI]("Fetch",o,s);try{w&&(t=w({status:n,request:r,response:i}))}catch(t){YI(e,104,$I)}if(u){void 0!==t&&(u[gE]=pa(pa({},u.properties),t));var l=a[cI]();H(C,e[EE],a,u,null,l)}else c(14,null,{requestSentTime:a[JE],responseFinishedTime:a[aI]})}),(function(e){c(18,e,null)})))}function H(t,n,r,i,a,o){var s,u=!0;t[yE]>0&&(u=eM(n,t,((s={item:i})[gE]=a,s.sysProperties=o,s.context=r?r[SE]:null,s.aborted=!!r&&!!r[TE],s),"initializer")),u&&e[LE](i,a,o)}R(),e.initialize=function(i,u,v,T){var k,R,q;e.isInitialized()||(D.initialize(i,u,v,T),R=CC("ajax"),q=u&&u.evtNamespace&&u.evtNamespace(),x=q?BA("xx",ln(q)?[R].concat(q):[R,q]).ns[yk]("."):R,function(n){e[AE](XC(n,(function(n){var r=eE(null,n.cfg,e[EE]);a=r.getExtCfg(t.identifier,iM),M=a.distributedTracingMode,o=a[OE],s=a[UE],p=a[jE],h=a[FE],b=[].concat(a[BE]||[],!1!==a.addIntEndpoints?rM:[]),w=a[VE],d=0===M||1===M,l=1===M||2===M,p&&(f=S),m=!!a[$E],E=a.maxAjaxPerfLookupAttempts,I=a[zE],A=a.ignoreHeaders,_=a.appId})))}(i),qI(e,S)&&e[AE](XC(a,(function(){m=!!a[$E],o=a[OE],m||r||(O(XMLHttpRequest,"open",{ns:x,req:function(t,n,r,i){if(!m){var a=t[mE],u=KI(a,S);!U(a,r)&&j(a,u,!0)&&(u&&u.xhrMonitoringState[WE]||(u=function(t,n,r,i){var a,o=F(),u=o&&o[QE]()||sC(),c=tr(sC(),0,16),l=t[NI]=t[NI]||{xh:[],i:{}},d=l.i=l.i||{},f=d[S]=d[S]||new LI(u,c,e[RI](),null===(a=e.core)||void 0===a?void 0:a.getTraceCtx());return f[xE]=o&&o[eI](),f[tI]=n,f[vE]=r,f.xhrMonitoringState[WE]=!0,f[PE]={},f.async=i,f[nI]=s,f}(a,n,r,i)),function(t,n){n.xhrMonitoringState[rI]=VA(t,"readystatechange",(function(){var r;try{t&&4===t.readyState&&j(t,n)&&function(t){var n=KI(t,S);function r(n,r){var i=r||{};i.ajaxDiagnosticsMessage=XI(t,S),n&&(i.exception=_n(n)),YI(e,14,zI+"ajax call"+BI,i)}n[aI]=CA(),n[KE]=t[KE],V("xmlhttprequest",n,(function(){try{var i=n[oI]("Ajax",o,(function(){var n,r=((n={statusText:t[GE]})[XE]=null,n[gI]=function(t){var n;try{var r=t[uI]();if(null!==r&&-1!==ZI(r[NE](),wC[8]))return kA(t.getResponseHeader(wC[0]))}catch(r){YI(e,18,VI,((n={})[hI]=XI(t,S),n[pI]=_n(r),n))}}(t),n.type=t.responseType,n[iI]=function(e){try{var t=e.responseType;if(""===t||"text"===t)return e[iI]}catch(e){}return null}(t),n.response=t[sI],n);if(g){var i=t[uI]();if(i){var a=ai(i).split(/[\r\n]+/),o={};Vr(a,(function(e){var t=e.split(": "),n=t.shift(),r=t.join(": ");N(n)&&(o[n]=r)})),r[XE]=o}}return r})),a=void 0;try{w&&(a=w({status:t[KE],xhr:t}))}catch(t){YI(e,104,$I)}if(i){void 0!==a&&(i[gE]=pa(pa({},i.properties),a));var s=n[cI]();H(C,e[EE],n,i,null,s)}else r(null,{requestSentTime:n[JE],responseFinishedTime:n[aI]})}finally{try{var u=(t[NI]||{i:{}}).i||{};u[S]&&(u[S]=null)}catch(e){}}}),(function(e){r(e,null)}))}(t)}catch(n){var i=_n(n);i&&-1!==ZI(i[NE](),"c00c023f")||WI(e,16,UI+" 'readystatechange' event handler"+FI,((r={})[hI]=XI(t,S),r[pI]=i,r))}}),x)}(a,u))}},hkErr:JI(e,15,UI+".open"+FI)}),O(XMLHttpRequest,"send",{ns:x,req:function(t,n){if(!m){var r=t[mE],i=KI(r,S);j(r,i)&&!i.xhrMonitoringState[YE]&&(B("xhr",i),i[JE]=CA(),e[IE](i,void 0,void 0,r),i.xhrMonitoringState[YE]=!0)}},hkErr:JI(e,17,UI+FI)}),O(XMLHttpRequest,"abort",{ns:x,req:function(e){if(!m){var t=e[mE],n=KI(t,S);j(t,n)&&!n.xhrMonitoringState[ZE]&&(n[TE]=1,n.xhrMonitoringState[ZE]=!0)}},hkErr:JI(e,13,UI+".abort"+FI)}),O(XMLHttpRequest,"setRequestHeader",{ns:x,req:function(e,t,n){if(!m){var r=e[mE],i=KI(r,S);i&&j(r,i)&&(function(e,t,n){if(e){var r=(e[NI]||{}).xh;r&&r.push({n:t,v:n})}}(r,t,n),o&&N(t)&&i&&(i[PE][t]=n))}},hkErr:JI(e,71,UI+".setRequestHeader"+FI)}),r=!0)}))),function(){var t,i=!(t=vr())||an(t.Request)||an(t.Request[ca])||an(t[OI])?null:t[OI];if(i){var u=vr(),c=i.polyfill;e[AE](XC(a,(function(){y=!!a[HE],g=a[qE],y||n?c&&!P&&(L(lE(u,OI,{ns:x,req:function(e,t,n){U(null,t,n)}})),P=!0):(L(lE(u,OI,{ns:x,req:function(t,i,a){var u;if(!y&&n&&!U(null,i,a)&&(!c||!r)){var l=t.ctx();u=function(t,n){var r,i,a=F(),u=a&&a[QE]()||sC(),c=tr(sC(),0,16),l=new LI(u,c,e[RI](),null===(r=e.core)||void 0===r?void 0:r.getTraceCtx());if(l[xE]=a&&a[eI](),l[JE]=CA(),l[nI]=s,""===(i=t instanceof Request?(t||{}).url||"":t)){var d=Wk();d&&d.href&&(i=mi(d.href,"#")[0])}l[vE]=i;var f="GET";n&&n[tI]?f=n[tI]:t&&t instanceof Request&&(f=t[tI]),l[tI]=f;var p={};return o&&new Headers((n?n[_E]:0)||t instanceof Request&&t[_E]||{}).forEach((function(e,t){N(t)&&(p[t]=e)})),l[PE]=p,B(OI,l),l}(i,a);var d=e[IE](u,i,a);d!==a&&t.set(1,d),l.data=u}},rsp:function(t,n){if(!y){var r=t.ctx().data;r&&(t.rslt=t.rslt.then((function(t){return z(0,(t||{})[KE],n,t,r,(function(){var n,r=((n={statusText:(t||{})[GE]})[XE]=null,n[gI]=function(t){var n;if(t&&t[_E])try{return kA(t[_E].get(wC[0]))}catch(r){YI(e,18,VI,((n={fetchDiagnosticsMessage:$(t)})[pI]=_n(r),n))}}(t),n);if(g&&t){var i={};t.headers.forEach((function(e,t){N(t)&&(i[t]=e)})),r[XE]=i}return r})),t})).catch((function(e){throw z(0,0,n,null,r,null,e.message||_n(e)),e})))}},hkErr:JI(e,15,"Failed to monitor Window.fetch"+FI)},!0,Ir())),n=!0)}))),c&&(u[OI].polyfill=c)}}(),(k=e[EE].getPlugin("AppInsightsPropertiesPlugin"))&&(c=k.plugin[SE]))},e._doTeardown=function(){R()},e.trackDependencyData=function(t,n){H(C,e[EE],null,t,n)},e[IE]=function(t,n,r,s){var u=e._currentWindowHost||i;if(function(e,t,n,r,i,a){var o;if(e[yE]>0){var s=((o={})[EE]=t,o.xhr=r,o.input=i,o.init=a,o.traceId=n[bE],o.spanId=n[wE],o.traceFlags=n[xE],o.context=n[SE]||{},o.aborted=!!n[TE],o);eM(t,e,s,"listener"),n[bE]=s[kE],n[wE]=s[CE],n[xE]=s[xE],n[SE]=s[SE]}}(k,e[EE],t,s,n,r),n||""===n){if(TA(a,t[ME](),u)){r||(r={});var f=new Headers(r[_E]||n instanceof Request&&n[_E]||{});if(d){var p="|"+t[bE]+"."+t[wE];f.set(wC[3],p),o&&(t[PE][wC[3]]=p)}if((g=_||c&&c.appId())&&(f.set(wC[0],wC[2]+g),o&&(t[PE][wC[0]]=wC[2]+g)),l){an(v=t[xE])&&(v=1);var h=vC(pC(t[bE],t[wE],v));f.set(wC[4],h),o&&(t[PE][wC[4]]=h)}r[_E]=f}return r}if(s){var g,v;if(TA(a,t[ME](),u))d&&(GI(s,wC[3])?YI(e,71,"Unable to set ["+wC[3]+"] as it has already been set by another instance"):(p="|"+t[bE]+"."+t[wE],s[DE](wC[3],p),o&&(t[PE][wC[3]]=p))),(g=_||c&&c.appId())&&(GI(s,wC[0])?YI(e,71,"Unable to set ["+wC[0]+"] as it has already been set by another instance"):(s[DE](wC[0],wC[2]+g),o&&(t[PE][wC[0]]=wC[2]+g))),l&&(an(v=t[xE])&&(v=1),GI(s,wC[4])?YI(e,71,"Unable to set ["+wC[4]+"] as it has already been set by another instance"):(h=vC(pC(t[bE],t[wE],v)),s[DE](wC[4],h),o&&(t[PE][wC[4]]=h)));return s}},e[LE]=function(t,n,r){if(-1===h||u>>=0),j_=N_+t&R_,F_=O_-t&R_,U_=!0}catch(e){}var t}function V_(e){var t=0,n=mr(S_)||mr(T_);return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&R_),0===t&&D_()&&(U_||B_(),t=function(e){var t=((F_=36969*(65535&F_)+(F_>>16)&R_)<<16)+(65535&(j_=18e3*(65535&j_)+(j_>>16)&R_))>>>0&R_|0;return t>>>=0}()&R_),0===t&&(t=Math.floor(L_*Math.random()|0)),e||(t>>>=0),t}function $_(e){void 0===e&&(e=22);for(var t=V_()>>>0,n=0,r=e_;r[fM]>>=6,5===n&&(t=(V_()<<2&4294967295|3&t)>>>0,n=0);return r}var z_="3.3.3",H_="."+$_(6),q_=0;function K_(e){return 1===e[KM]||9===e[KM]||!+e[KM]}function G_(e,t){return void 0===t&&(t=!1),h_(e+q_+++(t?"."+z_:e_)+H_)}function X_(e){return e&&cn(e)&&(e.isVal||e.fb||bn(e,"v")||bn(e,"mrg")||bn(e,"ref")||e.set)}function W_(e,t,n){var r,i=n.dfVal||on;if(t&&n.fb){var a=n.fb;ln(a)||(a=[a]);for(var o=0;o0&&function(e,t){iP||(iP=Zr("AggregationError",(function(e,t){t[fM]>1&&(e.errors=t[1])})));var n="Watcher error(s): ";throw Vr(t,(function(e,t){n+="\n".concat(t," > ").concat(_n(e))})),new iP(n,t||[])}(0,t)}}return(t={prop:r,ro:i,rf:a})[dM]=o,t[TM]=e,t.add=function(e){if(e&&e.h[fM]>0){u||(u=[]),c||(c=Ii((function(){c=null,d()}),0));for(var t=0;t=i)){var a=!0,o="AITR_"+n[NM];if(u[o]?a=!1:u[o]=!0,a&&(t<=r&&(e.queue[xM](n),s++,l(1===t?"error":"warn",n)),s===i)){var c="Internal events throttle limit per PageView reached for this app.",d=new TP(23,c,!1);e.queue[xM](d),1===t?e.errorToConsole(c):e[gM](c)}}}function l(e,n){var r=function(e){var t,n=mP;return n||!0===e.disableDbgExt||(n=mP||((t=mr("Microsoft"))&&(mP=t.ApplicationInsights),mP)),n?n.ChromeDbgExt:null}(t||{});r&&r[jM]&&r[jM](e,n)}o=function(t){return gP(hP(t,bP,e).cfg,(function(e){var t=e.cfg;n=t.loggingLevelConsole,r=t.loggingLevelTelemetry,i=t.maxMessageLimit,a=t.enableDebug}))}(t||{}),e.consoleLoggingLevel=function(){return n},e[vM]=function(t,r,i,o,s){void 0===s&&(s=!1);var d=new TP(r,i,s,o);if(a)throw _n(d);var f=wP[t]||yP;if(rn(d[OM]))l("throw"+(1===t?"Critical":"Warning"),d);else{if(s){var p=+d[NM];!u[p]&&n>=t&&(e[f](d[OM]),u[p]=!0)}else n>=t&&e[f](d[OM]);c(t,d)}},e.debugToConsole=function(e){SP("debug",e),l("warning",e)},e[gM]=function(e){SP("warn",e),l("warning",e)},e.errorToConsole=function(e){SP("error",e),l("error",e)},e.resetInternalMessageCount=function(){s=0,u={}},e[XM]=c,e[DM]=function(e){o&&o.rm(),o=null}}))}return e.__ieDyn=1,e}();function AP(e){return e||new CP}function EP(e,t,n,r,i,a){void 0===a&&(a=!1),AP(e)[vM](t,n,r,i,a)}function IP(e,t,n){var r=t[oM],i=function(e,t){var n;return t&&(t=ai(In(t)))[oM]>150&&(n=er(t,0,150),EP(e,2,57,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),n||t}(e,t);if(i[oM]!==r){for(var a=0,o=i;void 0!==n[o];)a++,o=er(i,0,147)+PP(a);i=o}return i}function MP(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=ai(In(t)))[oM]>n&&(r=er(t,0,n),EP(e,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function _P(e,t,n,r){var i;return t&&(t=ai(In(t)))[oM]>n&&(i=er(t,0,n),EP(e,2,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),i||t}function PP(e){var t="00"+e;return tr(t,t[oM]-3)}var DP=function(){function e(e,t,n,r,i,a,o){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var s=this;s.ver=2,s.id=function(e,t){return t?_P(e,t,128,69)[sM]():t}(e,o),s.url=function(e,t){return _P(e,t,2048,66)}(e,n),s[cM]=MP(e,t)||"not_specified",isNaN(r)||(s.duration=function(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,r=""+Math.floor(e/6e4)%60,i=""+Math.floor(e/36e5)%24,a=Math.floor(e/864e5);return t=1===t[oM]?"00"+t:2===t[oM]?"0"+t:t,n=n[oM]<2?"0"+n:n,r=r[oM]<2?"0"+r:r,(a>0?a+".":"")+(i=i[oM]<2?"0"+i:i)+":"+r+":"+n+"."+t}(r)),s.properties=function(e,t){if(t){var n={};xn(t,(function(t,r){if(cn(r)&&__())try{r=P_().stringify(r)}catch(t){EP(e,2,49,"custom property is not valid",{exception:t},!0)}r=MP(e,r,8192),t=IP(e,t,n),n[t]=r})),t=n}return t}(e,i),s.measurements=function(e,t){if(t){var n={};xn(t,(function(t,r){t=IP(e,t,n),n[t]=r})),t=n}return t}(e,a)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(),LP=Vn,RP=LP({LocalStorage:0,SessionStorage:1}),NP=(LP({AI:0,AI_AND_W3C:1,W3C:2}),void LP({Normal:1,Critical:2})),OP="";function UP(){return FP()?jP(RP.LocalStorage):null}function jP(e){try{if(an(vr()))return null;var t=(new Date)[sM](),n=mr(e===RP.LocalStorage?"localStorage":"sessionStorage"),r=OP+t;n.setItem(r,t);var i=n.getItem(r)!==t;if(n[uM](r),!i)return n}catch(e){}return null}function FP(e){return(e||void 0===NP)&&(NP=!!jP(RP.LocalStorage)),NP}function BP(e,t,n){return!(!e||e[fM]!==t||e===n||!e.match(/^[\da-f]*$/i))}var VP,$P="ctx",zP="ParentContextKey",HP="ChildrenContextKey",qP=function(){function e(t,n,r){var i,a=this;a.start=Qr(),a[IM]=t,a[UM]=r,a[WM]=function(){return!1},un(n)&&Cn(a,"payload",{g:function(){return!i&&un(n)&&(i=n(),n=null),i}}),a[YM]=function(t){return t?t===e[zP]||t===e[HP]?a[t]:(a[$P]||{})[t]:null},a[JM]=function(t,n){t&&(t===e[zP]?(a[t]||(a[WM]=function(){return!0}),a[t]=n):t===e[HP]?a[t]=n:(a[$P]=a[$P]||{})[t]=n)},a[ZM]=function(){var t=0,n=a[YM](e[HP]);if(ln(n))for(var r=0;r0&&(Vr(t,(function(e){try{e.func.call(e.self,e.args)}catch(e){EP(n[bM],2,73,"Unexpected Exception during onComplete - "+_n(e))}})),a=[])}return e},ctx:{core:function(){return n},diagLog:function(){return kP(n,t.cfg)},getCfg:function(){return t.cfg},getExtCfg:function(e,n){var r=s(e,!0);return n&&xn(n,(function(e,n){if(an(r[e])){var i=t.cfg[e];!i&&an(i)||(r[e]=i)}J_(t,r,e,n)})),t[mM](r,n)},getConfig:function(e,n,r){void 0===r&&(r=!1);var i,a=s(e,!1),o=t.cfg;return!a||!a[n]&&an(a[n])?!o[n]&&an(o[n])||(i=o[n]):i=a[n],i||!an(i)?i:r},hasNext:function(){return!!i},getNext:function(){return i},setNext:function(e){i=e},iterate:function(e){for(var t;t=o._next();){var n=t[EM]();n&&e(n)}},onComplete:function(e,t){for(var n=[],r=2;r0){var o=null;Vr(e,(function(e){if(a||r!==e||(a=!0),a&&e&&un(e[i_])){var s=function(e,t,n){var r,i=null,a=un(e[i_]),o=un(e[$M]),s={getPlugin:function(){return e},getNext:function(){return i},processTelemetry:function(r,c){u(c=c||function(){var r;return e&&un(e[ZP])&&(r=e[ZP]()),r||(r=tD(s,t,n)),r}(),(function(t){if(!e||!a)return!1;var n=XP(e);return!n[RM]&&!n[n_]&&(o&&e[$M](i),e[i_](r,t),!0)}),"processTelemetry",(function(){return{item:r}}),!r.sync)||c[_M](r)},unload:function(t,n){u(t,(function(){var r=!1;if(e){var i=XP(e),a=e[t_]||i[t_];!e||a&&a!==t.core()||i[RM]||(i[t_]=null,i[RM]=!0,i[AM]=!1,e[RM]&&!0===e[RM](t,n)&&(r=!0))}return r}),"unload",(function(){}),n[UM])||t[_M](n)},update:function(t,n){u(t,(function(){var r=!1;if(e){var i=XP(e),a=e[t_]||i[t_];!e||a&&a!==t.core()||i[RM]||e[BM]&&!0===e[BM](t,n)&&(r=!0)}return r}),"update",(function(){}),!1)||t[_M](n)},_id:r=e?e[CM]+"-"+e[a_]+"-"+QP++:"Unknown-0-"+QP++,_setNext:function(e){i=e}};function u(t,n,a,o,s){var u=!1,c=e?e[CM]:YP,l=t[JP];return l||(l=t[JP]={}),t.setNext(i),e&&function(e,t,n,r,i){if(e){var o=e;if(o[o_]&&(o=o[o_]()),o){var s=void 0,u=o[YM](KP);try{if(s=o.create(c+":"+a,r,i)){if(u&&s[JM]&&(s[JM](qP[zP],u),u[YM]&&u[JM])){var l=u[YM](qP[HP]);l||(l=[],u[JM](qP[HP],l)),l[xM](s)}return o[JM](KP,s),n()}}catch(e){s&&s[JM]&&s[JM]("exception",e)}finally{s&&o.fire(s),o[JM](KP,u)}}}n()}(t[t_](),0,(function(){l[r]=!0;try{var e=i?i._id:e_;e&&(l[e]=!1),u=n(t)}catch(e){var o=!i||l[i._id];o&&(u=!0),i&&o||EP(t[jM](),1,73,"Plugin ["+c+"] failed during "+a+" - "+_n(e)+", run flags: "+_n(l))}}),o,s),u}return Fn(s)}(e,t,n);i||(i=s),o&&o._setNext(s),o=s}}))}return r&&!i?iD([r],t,n):i}var aD="getPlugin",oD=((WP={})[r_]={isVal:p_,v:{}},WP),sD=function(){function e(){var t,n,r,i,a,o=this;function s(e){void 0===e&&(e=null);var t=e;if(!t){var i=n||tD(null,{},o[t_]);t=r&&r[aD]?i[LM](null,r[aD]):i[LM](null,r)}return t}function u(e,t,i){hP(e,oD,kP(t)),!i&&t&&(i=t.getProcessTelContext()[VM]());var a=r;r&&r[aD]&&(a=r[aD]()),o[t_]=t,n=tD(i,e,t,a)}function c(){var e,s;t=!1,o[t_]=null,n=null,r=null,e=[],a={run:function(t){var n=e;e=[],Vr(n,(function(e){try{(e.rm||e.remove).call(e)}catch(e){EP(t,2,73,"Unloading:"+_n(e))}}))},add:function(t){t&&Br(e,t)}},s=[],i={add:function(e){e&&s[xM](e)},run:function(e,t){Vr(s,(function(n){try{n(e,t)}catch(t){EP(e[jM](),2,73,"Unexpected error calling unload handler - "+_n(t))}})),s=[]}}}c(),aa(e,o,(function(e){e.initialize=function(e,n,r,i){u(e,n,i),t=!0},e[RM]=function(t,n){var o,s=e[t_];if(s&&(!t||s===t[t_]())){var u,l=!1,d=t||nD(null,s,r&&r[aD]?r[aD]():r),f=n||((o={reason:0})[UM]=!1,o);return e[FM]&&!0===e[FM](d,f,p)?u=!0:p(),u}function p(){l||(l=!0,i.run(d,n),a.run(d[jM]()),!0===u&&d[_M](f),c())}},e[BM]=function(t,n){var i=e[t_];if(i&&(!t||i===t[t_]())){var a,o=!1,s=t||rD(null,i,r&&r[aD]?r[aD]():r),c=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(s,c,l)?a=!0:l(),a}function l(){o||(o=!0,u(s.getCfg(),s.core(),s[VM]()))}},b_(e,"_addUnloadCb",(function(){return i}),"add"),b_(e,"_addHook",(function(){return a}),"add"),Cn(e,"_unloadHooks",{g:function(){return a}})})),o[jM]=function(e){return s(e)[jM]()},o[AM]=function(){return t},o.setInitialized=function(e){t=e},o[$M]=function(e){r=e},o[_M]=function(e,t){t?t[_M](e):r&&un(r[i_])&&r[i_](e,null)},o._getTelCtx=s}return e.__ieDyn=1,e}();function uD(e){var t="ai."+e+".";return function(e){return t+e}}var cD,lD,dD,fD=uD("application"),pD=uD("device"),hD=uD("location"),gD=uD("operation"),vD=uD("session"),mD=uD("user"),yD=uD("cloud"),bD=uD("internal"),wD=function(e){function t(){return e.call(this)||this}return ga(t,e),t}(function(e){return function(){var t=this;e&&xn(e,(function(e,n){t[e]=n}))}}({applicationVersion:fD("ver"),applicationBuild:fD("build"),applicationTypeId:fD("typeId"),applicationId:fD("applicationId"),applicationLayer:fD("layer"),deviceId:pD("id"),deviceIp:pD("ip"),deviceLanguage:pD("language"),deviceLocale:pD("locale"),deviceModel:pD("model"),deviceFriendlyName:pD("friendlyName"),deviceNetwork:pD("network"),deviceNetworkName:pD("networkName"),deviceOEMName:pD("oemName"),deviceOS:pD("os"),deviceOSVersion:pD("osVersion"),deviceRoleInstance:pD("roleInstance"),deviceRoleName:pD("roleName"),deviceScreenResolution:pD("screenResolution"),deviceType:pD("type"),deviceMachineName:pD("machineName"),deviceVMName:pD("vmName"),deviceBrowser:pD("browser"),deviceBrowserVersion:pD("browserVersion"),locationIp:hD("ip"),locationCountry:hD("country"),locationProvince:hD("province"),locationCity:hD("city"),operationId:gD("id"),operationName:gD("name"),operationParentId:gD("parentId"),operationRootId:gD("rootId"),operationSyntheticSource:gD("syntheticSource"),operationCorrelationVector:gD("correlationVector"),sessionId:vD("id"),sessionIsFirst:vD("isFirst"),sessionIsNew:vD("isNew"),userAccountAcquisitionDate:mD("accountAcquisitionDate"),userAccountId:mD("accountId"),userAgent:mD("userAgent"),userId:mD("id"),userStoreRegion:mD("storeRegion"),userAuthUserId:mD("authUserId"),userAnonymousUserAcquisitionDate:mD("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:mD("authUserAcquisitionDate"),cloudName:yD("name"),cloudRole:yD("role"),cloudRoleVer:yD("roleVer"),cloudRoleInstance:yD("roleInstance"),cloudEnvironment:yD("environment"),cloudLocation:yD("location"),cloudDeploymentUnit:yD("deploymentUnit"),internalNodeName:bD("nodeName"),internalSdkVersion:bD("sdkVersion"),internalAgentVersion:bD("agentVersion"),internalSnippet:bD("snippet"),internalSdkSrc:bD("sdkSrc")})),xD="user",SD="device",TD="trace",kD=new wD,CD=function(){},AD=function(){this.id="browser",this.deviceClass="Browser"},ED=function(e,t){var n=this,r=gP(e,(function(){var t=e.sdkExtension;n.sdkVersion=(t?t+"_":"")+"javascript:3.3.3"}));t&&t.add(r)},ID=function(){},MD="toGMTString",_D="toUTCString",PD="cookie",DD="expires",LD="isCookieUseDisabled",RD="disableCookiesUsage",ND="_ckMgr",OD=null,UD=null,jD=null,FD={},BD={},VD=(cD={cookieCfg:function(e){return{mrg:!0,v:e}}((lD={},lD[s_]={fb:"cookieDomain",dfVal:p_},lD.path={fb:"cookiePath",dfVal:p_},lD.enabled=QM,lD.ignoreCookies=QM,lD.blockedCookies=QM,lD)),cookieDomain:QM,cookiePath:QM},cD[RD]=QM,cD);function $D(){!dD&&(dD=dr((function(){return br()})))}function zD(e){return!e||e.isEnabled()}function HD(e,t){return!!(t&&e&&ln(e.ignoreCookies))&&-1!==$r(e.ignoreCookies,t)}function qD(e,t){var n=t[PM];if(an(n)){var r=void 0;rn(e[LD])||(r=!e[LD]),rn(e[RD])||(r=!e[RD]),n=r}return n}function KD(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var r=t.cookieCfg;n=r&&r[ND]?r[ND]:GD(t)}return n||(n=function(e,t){var n=GD[ND]||BD[ND];return n||(n=GD[ND]=GD(e,t),BD[ND]=n),n}(t,(e||{})[bM])),n}function GD(e,t){var n,r,i,a,o,s,u,c,l;e=hP(e||BD,null,t).cfg,o=gP(e,(function(t){t[mM](t.cfg,VD),r=t.ref(t.cfg,"cookieCfg"),i=r[u_]||"/",a=r[s_],s=!1!==qD(e,r),u=r.getCookie||ZD,c=r.setCookie||QD,l=r.delCookie||QD}),t);var d=((n={isEnabled:function(){var n=!1!==qD(e,r)&&s&&XD(t),i=BD[ND];return n&&i&&d!==i&&(n=zD(i)),n},setEnabled:function(e){s=!1!==e,r[PM]=e},set:function(e,t,n,o,s){var u,l=!1;if(zD(d)&&!function(e,t){return!!(t&&e&&ln(e.blockedCookies)&&-1!==$r(e.blockedCookies,t))||HD(e,t)}(r,e)){var f={},p=ai(t||e_),h=Si(p,";");if(-1!==h&&(p=ai(rr(t,h)),f=WD(er(t,h+1))),m_(f,s_,o||a,vn,rn),!an(n)){var g=D_();if(rn(f[DD])){var v=Qr()+1e3*n;if(v>0){var m=new Date;m.setTime(v),m_(f,DD,YD(m,g?MD:_D)||YD(m,g?MD:_D)||e_,vn)}}g||m_(f,"max-age",e_+n,null,rn)}var y=M_();y&&"https:"===y[zM]&&(m_(f,"secure",null,null,rn),null===UD&&(u=(Cr()||{})[HM],UD=!(sn(u)&&(g_(u,"CPU iPhone OS 12")||g_(u,"iPad; CPU OS 12")||g_(u,"Macintosh; Intel Mac OS X 10_14")&&g_(u,"Version/")&&g_(u,"Safari")||g_(u,"Macintosh; Intel Mac OS X 10_14")&&bi(u,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||g_(u,"Chrome/5")||g_(u,"Chrome/6")||g_(u,"UnrealEngine")&&!g_(u,"Chrome")||g_(u,"UCBrowser/12")||g_(u,"UCBrowser/11")))),UD&&m_(f,"SameSite","None",null,rn)),m_(f,u_,s||i,null,rn),c(e,JD(p,f)),l=!0}return l},get:function(e){var t=e_;return zD(d)&&!HD(r,e)&&(t=u(e)),t},del:function(e,t){var n=!1;return zD(d)&&(n=d.purge(e,t)),n},purge:function(e,n){var r,i=!1;if(XD(t)){var a=((r={})[u_]=n||"/",r[DD]="Thu, 01 Jan 1970 00:00:01 GMT",r);D_()||(a["max-age"]="0"),l(e,JD(e_,a)),i=!0}return i}})[DM]=function(e){o&&o.rm(),o=null},n);return d[ND]=d,d}function XD(e){if(null===OD){OD=!1,!dD&&$D();try{var t=dD.v||{};OD=void 0!==t[PD]}catch(t){EP(e,2,68,"Cannot access document.cookie - "+v_(t),{exception:_n(t)})}}return OD}function WD(e){var t={};return e&&e[fM]&&Vr(ai(e)[qM](";"),(function(e){if(e=ai(e||e_)){var n=Si(e,"=");-1===n?t[e]=null:t[ai(rr(e,n))]=ai(er(e,n+1))}})),t}function YD(e,t){return un(e[t])?e[t]():null}function JD(e,t){var n=e||e_;return xn(t,(function(e,t){n+="; "+e+(an(t)?e_:"="+t)})),n}function ZD(e){var t=e_;if(!dD&&$D(),dD.v){var n=dD.v[PD]||e_;jD!==n&&(FD=WD(n),jD=n),t=ai(FD[e]||e_)}return t}function QD(e,t){!dD&&$D(),dD.v&&(dD.v[PD]=e+"="+t)}var eL="sessionManager",tL="update",nL="isUserCookieSet",rL="isNewUser",iL="getTraceCtx",aL="telemetryTrace",oL="applySessionContext",sL="applyApplicationContext",uL="applyDeviceContext",cL="applyOperationContext",lL="applyUserContext",dL="applyOperatingSystemContxt",fL="applyLocationContext",pL="applyInternalContext",hL="accountId",gL="getSessionId",vL="namePrefix",mL="userCookiePostfix",yL="idLength",bL="getNewId",wL="length",xL="automaticSession",SL="authenticatedId",TL="acquisitionDate",kL="renewalDate",CL="join",AL="cookieSeparator",EL="authUserCookieName",IL=function(){},ML=function(){function e(t,n,r){var i,a,o,s,u=kP(n),c=KD(n);aa(e,this,(function(e){t||(t={});var n=gP(t,(function(e){o=t.sessionExpirationMs||864e5,s=t.sessionRenewalMs||18e5;var n=t.sessionCookiePostfix||t[vL]||"";i="ai_session"+n}));function l(e,t){var n=!1,r=", session will be reset",i=t.split("|");if(i[wL]>=2)try{var a=+i[1]||0,o=+i[2]||0;isNaN(a)||a<=0?EP(u,2,27,"AI session acquisition date is 0"+r):isNaN(o)||o<=0?EP(u,2,27,"AI session renewal date is 0"+r):i[0]&&(e.id=i[0],e[TL]=a,e[kL]=o,n=!0)}catch(e){EP(u,1,9,"Error parsing ai_session value ["+(t||"")+"]"+r+" - "+v_(e),{exception:_n(e)})}return n}function d(e,n){var r=e[TL];e[kL]=n;var u,l=s,d=r+o-n,f=[e.id,r,n];u=d0?u:null,p),a=n}r&&r.add(n),e[xL]=new IL,e[tL]=function(){var n=Qr(),r=!1,f=e[xL];if(f.id||(r=!function(e,t){var n=!1,r=c.get(i);if(r&&un(r.split))n=l(e,r);else{var a=function(e,t){var n=UP();if(null!==n)try{return n.getItem(t)}catch(t){NP=!1,EP(e,2,1,"Browser failed read of local storage. "+v_(t),{exception:_n(t)})}return null}(u,i);a&&(n=l(e,a))}return n||!!e.id}(f)),!r&&o>0){var p=n-f[TL],h=n-f[kL];r=(r=(r=p<0||h<0)||p>o)||h>s}r?function(n){var r=t[bL]||$_;e.automaticSession.id=r(t[yL]||22),e[xL][TL]=n,d(e[xL],n),FP()||EP(u,2,0,"Browser does not support local storage. Session durations will be inaccurate.")}(n):(!a||n-a>6e4)&&d(f,n)},e.backup=function(){var t,n,r,a=e[xL];t=a.id,n=a[TL],r=a[kL],function(e,t,n){var r=UP();if(null!==r)try{return r.setItem(t,n),!0}catch(t){NP=!1,EP(e,2,3,"Browser failed write to local storage. "+v_(t),{exception:_n(t)})}}(u,i,[t,n,r][CL]("|"))}}))}return e.__ieDyn=1,e}();var _L=function(e,t,n,r){var i=this;i.traceID=e||function(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=e_,r=0;r<4;r++)n+=t[15&(e=V_())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&V_())|0];return tr(n,0,8)+tr(n,9,4)+"4"+tr(n,13,3)+i+tr(n,16,3)+tr(n,19,12)}(),i.parentID=t;var a=M_();!n&&a&&a.pathname&&(n=a.pathname),i.name=MP(r,n)};function PL(e){return!("string"!=typeof e||!e||e.match(/,|;|=| |\|/))}var DL=function(){function e(t,n,r){this.isNewUser=!1,this.isUserCookieSet=!1;var i,a=kP(n),o=KD(n);aa(e,this,(function(n){Cn(n,"config",{g:function(){return t}});var s=gP(t,(function(){var r=t[mL]||"";i=e.userCookieName+r;var s=o.get(i);if(s){n[rL]=!1;var d=s.split(e[AL]);d[wL]>0&&(n.id=d[0],n[nL]=!!n.id)}if(!n.id){n.id=u(),l(c(n.id)[CL](e[AL]));var f=(t[vL]||"")+"ai_session";!function(e,t){var n=UP();if(null!==n)try{return n[uM](t),!0}catch(t){NP=!1,EP(e,2,5,"Browser failed removal of local storage item. "+v_(t),{exception:_n(t)})}}(a,f)}n[hL]=t[hL]||void 0;var p=o.get(e[EL]);if(p){var h=(p=decodeURI(p)).split(e[AL]);h[0]&&(n[SL]=h[0]),h[wL]>1&&h[1]&&(n[hL]=h[1])}}));function u(){var e=t||{};return(e[bL]||$_)(e[yL]?t[yL]:22)}function c(e){var t,r=(t=new Date)&&t.toISOString()||"";return n.accountAcquisitionDate=r,n[rL]=!0,[e,r]}function l(e){n[nL]=o.set(i,e,31536e3)}r&&r.add(s),n.setAuthenticatedUserContext=function(t,r,i){if(void 0===i&&(i=!1),!PL(t)||r&&!PL(r))EP(a,2,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);else{n[SL]=t;var s=n[SL];r&&(n[hL]=r,s=[n[SL],n.accountId][CL](e[AL])),i&&o.set(e[EL],encodeURI(s))}},n.clearAuthenticatedUserContext=function(){n[SL]=null,n[hL]=null,o.del(e[EL])},n[tL]=function(t){n.id===t&&n[nL]||l(c(t||u())[CL](e[AL]))}}))}return e.cookieSeparator="|",e.userCookieName="ai_user",e.authUserCookieName="ai_authUser",e}(),LL="ext",RL="tags";function NL(e,t){e&&e[t]&&0===Un(e[t])[wL]&&delete e[t]}function OL(){return null}var UL,jL,FL,BL,VL,$L,zL,HL=function(){function e(t,n,r,i){var a=this,o=t.logger;aa(e,this,(function(e){if(e.appId=OL,e[gL]=OL,e.application=new CD,e.internal=new ED(n,i),wr()){e[eL]=new ML(n,t,i),e.device=new AD,e.location=new ID,e.user=new DL(n,t,i);var s,u=void 0,c=void 0;r&&(u=r.getTraceId(),c=r.getSpanId(),s=r.getName()),e[aL]=new _L(u,c,s,o),e.session=new IL}e[gL]=function(){var t=e.session,n=null;if(t&&sn(t.id))n=t.id;else{var r=(e[eL]||{})[xL];n=r&&sn(r.id)?r.id:null}return n},e[oL]=function(t,n){m_(y_(t.ext,"app"),"sesId",e[gL](),sn)},e[dL]=function(t,n){m_(t.ext,"os",e.os)},e[sL]=function(t,n){var r=e.application;if(r){var i=y_(t,RL);m_(i,kD.applicationVersion,r.ver,sn),m_(i,kD.applicationBuild,r.build,sn)}},e[uL]=function(t,n){var r=e.device;if(r){var i=y_(y_(t,LL),SD);m_(i,"localId",r.id,sn),m_(i,"ip",r.ip,sn),m_(i,"model",r.model,sn),m_(i,"deviceClass",r.deviceClass,sn)}},e[pL]=function(t,n){var r=e.internal;if(r){var i=y_(t,RL);m_(i,kD.internalAgentVersion,r.agentVersion,sn),m_(i,kD.internalSdkVersion,MP(o,r.sdkVersion,64),sn),t.baseType!==TP.dataType&&t.baseType!==DP.dataType||(m_(i,kD.internalSnippet,r.snippetVer,sn),m_(i,kD.internalSdkSrc,r.sdkSrc,sn))}},e[fL]=function(e,t){var n=a.location;n&&m_(y_(e,RL,[]),kD.locationIp,n.ip,sn)},e[cL]=function(t,n){var r=e[aL];if(r){var i=y_(y_(t,LL),TD,{traceID:void 0,parentID:void 0});m_(i,"traceID",r.traceID,sn,an),m_(i,"name",r.name,sn,an),m_(i,"parentID",r.parentID,sn,an)}},e.applyWebContext=function(e,t){var n=a.web;n&&m_(y_(e,LL),"web",n)},e[lL]=function(t,n){var r=e.user;if(r){m_(y_(t,RL,[]),kD.userAccountId,r[hL],sn);var i=y_(y_(t,LL),xD);m_(i,"id",r.id,sn),m_(i,"authId",r[SL],sn)}},e.cleanUp=function(e,t){var n=e.ext;n&&(NL(n,SD),NL(n,xD),NL(n,"web"),NL(n,"os"),NL(n,"app"),NL(n,TD))}}))}return e.__ieDyn=1,e}(),qL=null,KL=jn(((UL={})[hL]=qL,UL.sessionRenewalMs=18e5,UL.samplingPercentage=100,UL.sessionExpirationMs=864e5,UL.cookieDomain=qL,UL.sdkExtension=qL,UL.isBrowserLinkTrackingEnabled=!1,UL.appId=qL,UL[gL]=qL,UL[vL]=jL,UL.sessionCookiePostfix=jL,UL[mL]=jL,UL[yL]=22,UL[bL]=qL,UL)),GL=function(e){function t(){var n,r,i,a,o,s=e.call(this)||this;return s.priority=110,s.identifier="AppInsightsPropertiesPlugin",aa(t,s,(function(e,t){function s(){n=null,r=null,i=null,a=null,o=!0}s(),Cn(e,"context",{g:function(){return a}}),e.initialize=function(s,u,c,l){t.initialize(s,u,c,l),function(t){var s,u,c,l=e.identifier,d=e.core;e._addHook(gP(t,(function(){var r,i=tD(null,t,d);t.storagePrefix&&(r=t.storagePrefix,OP=r||""),o=!1!==t.disableUserInitMessage,n=i.getExtCfg(l,KL),e._extConfig=n}))),i=d[iL](!1),a=new HL(d,n,i,e._unloadHooks),s=e.context[aL],u=i,c=s||{},r={getName:function(){return c[cM]},setName:function(e){u&&u.setName(e),c[cM]=e},getTraceId:function(){return c.traceID},setTraceId:function(e){u&&u.setTraceId(e),BP(e,32,"00000000000000000000000000000000")&&(c.traceID=e)},getSpanId:function(){return c.parentID},setSpanId:function(e){u&&u.setSpanId(e),BP(e,16,"0000000000000000")&&(c.parentID=e)},getTraceFlags:function(){return c.traceFlags},setTraceFlags:function(e){u&&u.setTraceFlags(e),c.traceFlags=e}},d.setTraceCtx(r),e.context.appId=function(){var e=d.getPlugin("AppInsightsChannelPlugin");return e?e.plugin._appId:null}}(s)},e.processTelemetry=function(t,n){if(!an(t)){n=e._getTelCtx(n),t.name===DP.envelopeType&&n.diagLog().resetInternalMessageCount();var r=a||{};r.session&&"string"!=typeof a.session.id&&r[eL]&&r[eL][tL]();var i=r.user;if(i&&!i[nL]&&i[tL](r.user.id),function(t,n){y_(t,"tags",[]),y_(t,"ext",{});var r=e.context;r[oL](t,n),r[sL](t,n),r[uL](t,n),r[cL](t,n),r[lL](t,n),r[dL](t,n),r.applyWebContext(t,n),r[fL](t,n),r[pL](t,n),r.cleanUp(t,n)}(t,n),i&&i[rL]&&(i[rL]=!1,!o)){var s=new TP(72,(Cr()||{}).userAgent||"");!function(e,t,n){AP(e)[XM](1,n)}(n.diagLog(),0,s)}e.processNext(t,n)}},e._doTeardown=function(e,t){var n=(e||{}).core();n&&n[iL]&&n[iL](!1)===r&&n.setTraceCtx(i),s()}})),s}return ga(t,e),t.__ieDyn=1,t}(sD),XL=GL,WL="AuthenticatedUserContext",YL="track",JL="snippet",ZL="flush",QL="pollInternalLogs",eR="getPlugin",tR="evtNamespace",nR=YL+"Event",rR=YL+"Trace",iR=YL+"Metric",aR=YL+"PageView",oR=YL+"Exception",sR=YL+"DependencyData",uR="set"+WL,cR="clear"+WL,lR="version",dR="queue",fR="connectionString",pR="instrumentationKey",hR="instrumentationkey",gR="userOverrideEndpointUrl",vR="endpointUrl",mR="ingestionendpoint",yR="onunloadFlush",bR="context",wR="addHousekeepingBeforeUnload",xR="sendMessage",SR=[JL,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],TR="iKeyUsage",kR="CdnUsage",CR="SdkLoaderVer",AR=void 0,ER={disabled:!0,limit:dl({samplingRate:100,maxSendNumber:1}),interval:dl({monthInterval:3,daysOfMonth:[28]})},IR=((FL={})[fR]=AR,FL[vR]=AR,FL[pR]=AR,FL[gR]=AR,FL.diagnosticLogInterval=pl((function(e){return e&&e>0}),1e4),FL.featureOptIn=((BL={})[TR]={mode:3},BL[kR]={mode:2},BL[CR]={mode:2},BL),FL.throttleMgrCfg=dl(((VL={})[109]=dl(ER),VL[106]=dl(ER),VL[111]=dl(ER),VL[110]=dl(ER),VL)),FL.extensionConfig=dl((($L={}).AppInsightsCfgSyncPlugin=dl({cfgUrl:"https://web.archive.org/web/20241212195116/https://js.monitor.azure.com/scripts/b/ai.config.1.cfg.json",syncMode:2}),$L)),FL),MR=function(){function e(t){var n,r,i,a,o,s,u,c,l,d,f,p,h,g,v=this;aa(e,this,(function(e){y(),Cn(e,"config",{g:function(){return c}}),Vr(["pluginVersionStringArr","pluginVersionString"],(function(t){Cn(e,t,{g:function(){return u?u[t]:null}})})),a=""+(t.sv||t[lR]||""),t[dR]=t[dR]||[],t[lR]=t[lR]||2;var m=tu(t.config||{},IR);function y(){o=Ls("AISKU"),s=null,n=null,r=null,i=null,a=null,f=null,p=!1,h=!1,g=!1,d=new wv}function b(){var e;s&&(dd([Wl,Xl,Gl],null,s),e=sd(Yl,s),dd([Gl],null,e),dd([Kl],null,e))}function w(e){u.addUnloadHook(e)}c=m.cfg,l=new Yf,Cn(e,"appInsights",{g:function(){return l}}),r=new XL,n=new aM,i=new mT,u=new UT,Cn(e,"core",{g:function(){return u}}),w(nu(m,(function(){var e=c[fR];function t(){return av((function(t,n){Ug(e,(function(e){var n=e&&e.value,r=null;!e.rejected&&n&&(c[fR]=n,r=yT(n)),t(r)}))}))}if(gn(e)){var n=av((function(e,n){t().then((function(t){var n=c[pR];n=t&&t[hR]||n,e(n)})).catch((function(t){e(null)}))})),r=c[gR];an(r)&&(r=av((function(e,n){t().then((function(t){var n=c[vR],r=t&&t[mR];e(n=r?r+mc:n)})).catch((function(t){e(null)}))}))),c[pR]=n,c[vR]=r}if(sn(e)&&e){var i=yT(e),a=i[mR];c.endpointUrl=c[gR]?c[gR]:a+mc,c[pR]=i[hR]||c[pR]}c.endpointUrl=c[gR]?c[gR]:c[vR]}))),e[JL]=t,e[ZL]=function(e,t){var n;return void 0===e&&(e=!0),bd(u,(function(){return"AISKU.flush"}),(function(){e&&!t&&(n=ov((function(e){t=e})));var r=1,i=function(){0==--r&&t()};Vr(u.getChannels(),(function(t){t&&(r++,t[ZL](e,i))})),i()}),null,e),n},e[yR]=function(e){void 0===e&&(e=!0),Vr(u.getChannels(),(function(t){t[yR]?t[yR]():t[ZL](e)}))},e.loadAppInsights=function(t,o,s){return void 0===t&&(t=!1),t&&function(e){throw Kr||(Kr=Zr("UnsupportedError")),new Kr("Legacy Mode is no longer supported")}(),bd(e.core,(function(){return"AISKU.loadAppInsights"}),(function(){u.initialize(c,[i,r,n,l,d],o,s),Cn(e,"context",{g:function(){return r[bR]}}),f||(f=new bT(u));var t=function(){if(zL)return zL;var e=null;try{var t=(document||{}).currentScript;t&&(e=t.src)}catch(e){}if(e){try{var n=e.toLowerCase();if(n){var r="";Vr(["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"],(function(e,t){if(-1!==Si(n,e))return r="cdn"+(t+1),-1===Si(n,"/scripts/")&&(-1!==Si(n,"/next/")?r+="-next":-1!==Si(n,"/beta/")&&(r+="-beta")),zL=r+"",-1}))}}catch(e){}zL=e}return zL}();t&&e[bR]&&(e[bR].internal.sdkSrc=t),function(t){if(t){var n="";an(a)||(n+=a),e[bR]&&e[bR].internal&&(e[bR].internal.snippetVer=n||"-"),xn(e,(function(e,n){sn(e)&&!un(n)&&e&&"_"!==e[0]&&-1===$r(SR,e)&&t[e]!==n&&(t[e]=n)}))}}(e[JL]),e.emptyQueue(),e[QL](),e[wR](e),w(nu(m,(function(){var t=!1;c.throttleMgrCfg[109]&&(t=!c.throttleMgrCfg[109].disabled),!f.isReady()&&c.extensionConfig&&c.extensionConfig[d.identifier]&&t&&f.onReadyState(!0),p||c[fR]||!os(TR,c)||(f[xR](106,"See Instrumentation key support at aka.ms/IkeyMigrate"),p=!0),!h&&e[bR].internal.sdkSrc&&-1!=e[bR].internal.sdkSrc.indexOf("az416426")&&os(kR,c)&&(f[xR](110,"See Cdn support notice at aka.ms/JsActiveCdn"),h=!0),!g&&parseInt(a)<6&&os(CR,c)&&(f[xR](111,"An updated Sdk Loader is available, see aka.ms/SnippetVer"),g=!0)})))})),e},e.updateSnippetDefinitions=function(t){!function(e,t,n){if(e&&t&&cn(e)&&cn(t)){var r=function(r){if(sn(r)){var i=t[r];un(i)?n&&!n(r)||(e[r]=rs(t,r)):n&&!n(r)||(bn(e,r)&&delete e[r],Cn(e,r,{g:function(){return t[r]},s:function(e){t[r]=e}}))}};for(var i in t)r(i)}}(t,e,(function(e){return e&&-1===$r(SR,e)}))},e.emptyQueue=function(){try{if(ln(e.snippet[dR])){for(var t=e.snippet[dR].length,n=0;n0&&(i=ld(e,t,null,r)),i}([Wl,Xl,Gl],n,l,s)&&(r=!0),fd(n,l,s)&&(r=!0),r||(c=Cr())&&c.product&&"ReactNative"===c.product||yu(u.logger,1,19,"Could not add handler for beforeunload and pagehide")),r||o.disableFlushOnUnload||fd(n,l,s)})))}},e.getSender=function(){return i},e.unload=function(t,n,r){var i,a=!1;return t&&!n&&(i=ov((function(e){n=e}))),e[yR](t),b(),u.unload&&u.unload(t,(function(e){a||(a=!0,y(),n&&n(e))}),r),i},as(e,l,["getCookieMgr",nR,aR,"trackPageViewPerformance",oR,"_onerror",rR,iR,"startTrackPage","stopTrackPage","startTrackEvent","stopTrackEvent"]),as(e,(function(){return n}),[sR,"addDependencyListener","addDependencyInitializer"]),as(e,u,["addTelemetryInitializer",QL,"stopPollingInternalLogs",eR,"addPlugin",tR,"addUnloadCb","getTraceCtx","updateCfg","onCfgChange"]),as(e,(function(){var e=r[bR];return e?e.user:null}),[uR,cR])}))}return e.prototype.addDependencyInitializer=function(e){return null},e}();const _R=Symbol("playerState");var PR=Object.defineProperty,DR=Object.getOwnPropertyDescriptor,LR=(e,t,n,r)=>{for(var i,a=r>1?void 0:r?DR(t,n):t,o=e.length-1;o>=0;o--)(i=e[o])&&(a=(r?i(t,n,a):i(a))||a);return r&&a&&PR(t,n,a),a};let RR=class extends Be{render(){return Te`

${this.playerState.ended?Ze("Ended"):this.playerState.paused?Ze("Paused"):Ze("Playing")}
`}};function NR(e,t,n){return en?n:e}function OR(e){const t=Math.round(255*NR(e,0,1)).toString(16).toUpperCase();return 1===t.length?"0"+t:t}RR.styles=j` .ump-visually-hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0,0,0,0) !important;white-space:nowrap !important;border:0 !important;z-index:-100} `,LR([E({context:_R,subscribe:!0})],RR.prototype,"playerState",2),RR=LR([$e("ump-aria-announcer")],RR);var UR=Object.defineProperty,jR=Object.getOwnPropertyDescriptor,FR=(e,t,n,r)=>{for(var i,a=r>1?void 0:r?jR(t,n):t,o=e.length-1;o>=0;o--)(i=e[o])&&(a=(r?i(t,n,a):i(a))||a);return r&&a&&UR(t,n,a),a};let BR=class extends Be{render(){return Te`
`}updated(){const{fontScale:e,textColor:t,textOpacity:n,backgroundColor:r,backgroundOpacity:i,fontFamily:a,textShadow:o}=this.playerState.captionSettings;this.style.setProperty("--ump-caption-display-font-size",2.5*e+"cqw"),this.style.setProperty("--ump-caption-display-color",`${t}${OR(n)}`),this.style.setProperty("--ump-caption-display-background",`${r}${OR(i)}`),this.style.setProperty("--ump-caption-display-font-family",a),this.style.setProperty("--ump-caption-display-text-shadow",o),this.dispatchEvent(new Event("captionsettingupdated"))}};BR.styles=j` .ump-caption-display-container{display:inline-block;position:absolute;width:95%;bottom:90px;left:50%;transform:translateX(-50%)}.ump-caption-display-container span:not(:has(span)){font-size:var(--ump-caption-display-font-size);color:var(--ump-caption-display-color);background-color:var(--ump-caption-display-background) !important;font-family:var(--ump-caption-display-font-family),sans-serif;text-shadow:var(--ump-caption-display-text-shadow);max-width:100%}.ump-caption-display-container-hidden{display:none}*{opacity:1 !important}.ump-caption-display-container *{position:relative !important} `,FR([E({context:_R,subscribe:!0})],BR.prototype,"playerState",2),FR([Xe(".ump-caption-display-container")],BR.prototype,"captionContainer",2),BR=FR([$e("ump-caption-display")],BR);const VR=["facebook","twitter","linkedin","mail","copy"],$R={sources:[],ccFiles:[],downloadableFiles:[],ageGate:!1,aspectRatio:"16:9",autoplay:!1,checkpoints:[],debug:!1,disableKeyboardEvents:!1,hideControls:null,hidePosterImage:!1,language:"en",layout:"fluid",loop:!1,maskLevel:0,muted:!1,partnerName:"",percentage:50,playButtonSize:"medium",playButtonTheme:"dark",playbackRates:[.5,.75,1,1.25,1.5,2],playFullScreen:!1,plugins:{},poster:"",qualityBehavior:"auto",reporting:!0,share:!0,shareOptions:[...VR],showDownloadMenu:!0,showFocusIndicator:"default",showImageOnError:!1,showQualityMenu:!0,startTime:0,title:""},zR={videoId:-1,label:Ze("Auto")},HR={captionId:-1,language:Ze("option for turning off caption"),label:Ze("Off")},qR={enabled:!1,fontScale:1,textColor:"#FFFFFF",textOpacity:1,backgroundColor:"#000000",backgroundOpacity:1,fontFamily:"sans-serif",textShadow:"rgb(255, 255, 255) 0px 0px 0px"},KR={audioTracks:[],bigPlayButtonClicked:!1,buffered:[],captionSettings:qR,captionTracks:[],controlsState:"controlbar",currentTime:0,disableKeyboardEvents:!1,downloadableTranscriptFiles:[],downloadableVideoFiles:[],duration:0,ended:!1,fullscreen:!1,loading:!1,maskLevel:0,muted:!1,paused:!0,playbackRate:1,playbackRates:[],playButtonSize:"medium",playButtonTheme:"dark",qualityBehavior:"auto",selectedVideoQualityId:zR.videoId,shareDialogOpened:!1,shareOptions:[],showDownloadMenu:!0,showFocusIndicator:"default",showQualityMenu:!0,showVolumeSlider:!0,videoQualities:[],volume:1},GR=["HQ","HD","SD","LO"],XR=["application/dash+xml","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml","video/mp4"],WR={DASH:"application/dash+xml",MP4:"video/mp4",HLS:"application/vnd.apple.mpegurl",MSS:"application/vnd.ms-sstr+xml"},YR={VTT:"text/vtt",TTML:"application/ttml+xml"},JR="@back",ZR=Ze("We're sorry, but something went wrong."),QR="dau-";class eN extends CustomEvent{constructor(e,t){super(e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}}function tN(e){return{"focus-always":"always"===e.showFocusIndicator,"focus-default":"default"===e.showFocusIndicator}}const nN=j` .btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--spacing-s-nudge);margin:0;padding:var(--spacing-s-nudge) var(--spacing-m);border-radius:var(--border-radius-medium);color:var(--color-neutral-foreground-1);font-weight:var(--font-weight-semibold);font-family:var(--font-family-default);line-height:var(--line-height-base-300);transition-duration:var(--duration-faster);transition-property:background,color;transition-timing-function:var(--curve-easy-ease);cursor:pointer;-webkit-user-select:none;user-select:none;border:solid var(--stroke-width-thick) var(--color-transparent-stroke);background-color:var(--color-neutral-background-1)}.btn:hover{background-color:var(--color-neutral-background-1-hover);color:var(--color-neutral-foreground-1-hover)}.btn.focus-always:focus,.btn.focus-default:focus-visible{outline:var(--stroke-width-thick) solid var(--color-stroke-focus-2)}.btn svg{fill:currentcolor}.btn-xs{padding:var(--spacing-xs)}.btn-s{padding:var(--spacing-s)}.btn-xl{padding:var(--spacing-xl)}.btn-xxl{padding:var(--spacing-xxl)}.btn-xxxl svg{width:var(--size-16);height:var(--size-16)}.btn-outline{background-color:transparent;border-color:var(--color-neutral-stroke-1)}.btn-outline:hover{background-color:transparent}.btn-outline.focus-always:focus,.btn-outline.focus-default:focus-visible{border-color:transparent}.btn-subtle{background-color:var(--color-subtle-background);color:var(--color-neutral-foreground-2);border-color:transparent}.btn-subtle:hover{background-color:var(--color-subtle-background-hover);color:var(--color-neutral-foreground-2-hover);border-color:transparent}.btn-subtle:active{background-color:var(--color-subtle-background-pressed);color:var(--color-neutral-foreground-2-pressed)}.btn-icon-only{padding:var(--spacing-s-nudge)}.btn-brand{background-color:var(--color-brand-background);color:var(--color-brand-foreground)}.btn-brand:hover{background-color:var(--color-brand-background-hover);color:var(--color-brand-foreground)}.btn-brand:active{background-color:var(--color-brand-background-pressed);color:var(--color-brand-foreground)}.btn-circle{border-radius:var(--border-radius-circular)}@media (forced-colors:active){.btn{color:ButtonText;background-color:ButtonFace;border-color:ButtonText}.btn:hover{background-color:Highlight;border-color:Highlight;color:HighlightText}.btn-brand{forced-color-adjust:none}.btn.focus-always:focus,.btn.focus-default:focus-visible{outline-color:Highlight}.btn-outline{background-color:ButtonFace;border-color:ButtonText}.btn-subtle{background-color:ButtonFace;color:ButtonText}} `,rN=j` hr{width:var(--size-full);height:var(--size-px);padding:0;margin:var(--spacing-s) 0;border:none;background-color:var(--color-neutral-stroke-alpha)}@media (forced-colors:active){hr{background-color:ButtonBorder}} `,iN=j` .tooltip[data-tooltip]{position:relative;--tooltip-gap:var(--spacing-s);--tooltip-top:auto;--tooltip-left:50%;--tooltip-right:auto;--tooltip-bottom:100%;--tooltip-translate-x:-50%;--tooltip-translate-y:calc(0px - var(--tooltip-gap));--tooltip-width:auto}.tooltip[data-tooltip]::before{pointer-events:none;display:none;width:var(--tooltip-width);z-index:100;background-color:var(--color-grey-10-alpha-90);color:var(--color-neutral-foreground-1);content:attr(data-tooltip);padding:var(--spacing-xs) var(--spacing-s);border-radius:var(--border-radius-medium);font-weight:var(--font-weight-regular);font-size:var(--font-size-base-200);line-height:var(--line-height-base-200);font-family:var(--font-family-default);position:absolute;inset:var(--tooltip-top) var(--tooltip-right) var(--tooltip-bottom) var(--tooltip-left);transform:translate(var(--tooltip-translate-x),var(--tooltip-translate-y))}.tooltip[data-tooltip].tooltip-top-right::before{--tooltip-top:auto;--tooltip-bottom:100%;--tooltip-left:auto;--tooltip-right:0;transform:translate(0,calc(0px - var(--tooltip-gap)))}.tooltip[data-tooltip].tooltip-disable-when-aria-expanded[aria-expanded='true']::before{display:none}.tooltip[data-tooltip]:hover::before,.tooltip[data-tooltip]:focus-visible::before,.tooltip[data-tooltip].tooltip-visible::before{display:block}@media (forced-colors:active){.tooltip[data-tooltip]::before{background-color:var(--color-grey-10)}.tooltip[data-tooltip]:hover::before,.tooltip[data-tooltip]:focus-visible::before,.tooltip[data-tooltip].tooltip-visible::before{color:ButtonText}} `;var aN=Object.defineProperty,oN=Object.getOwnPropertyDescriptor,sN=(e,t,n,r)=>{for(var i,a=r>1?void 0:r?oN(t,n):t,o=e.length-1;o>=0;o--)(i=e[o])&&(a=(r?i(t,n,a):i(a))||a);return r&&a&&aN(t,n,a),a};let uN=class extends Be{render(){var e;const t=this.playerState.audioTracks;return t.length<2?null:Te` this.requestUpdate()} > ${Ze("Audio Track")} ${t.map((e=>Te`
${e.label} ${function(e){return"public.accessibility.describes-video"===e.role}(e)?At(''):null}
`))}
`}onAudioTrackSelected(e){return()=>{this.dispatchEvent(new eN("audio-track-clicked",e))}}get opened(){var e;return null==(e=this.popup)?void 0:e.opened}};uN.styles=[nN,rN,iN,j` .btn.tooltip{--tooltip-gap:var(--spacing-xxxl)}ump-popup{--ump-popup-spacing:var(--spacing-xxxl)}ump-menu{width:var(--size-64);display:block}.audio-track-menu-item-content{display:flex;align-items:flex-end;width:100%;gap:var(--spacing-xs)}.audio-track-menu-item-content svg{width:var(--size-6);height:var(--size-6);margin-bottom:calc(0px - var(--spacing-xs))} `],sN([Xe("ump-popup")],uN.prototype,"popup",2),sN([E({context:_R,subscribe:!0})],uN.prototype,"playerState",2),uN=sN([$e("ump-audio-menu")],uN);var cN=Object.defineProperty,lN=Object.getOwnPropertyDescriptor,dN=(e,t,n,r)=>{for(var i,a=r>1?void 0:r?lN(t,n):t,o=e.length-1;o>=0;o--)(i=e[o])&&(a=(r?i(t,n,a):i(a))||a);return r&&a&&cN(t,n,a),a};let fN=class extends Be{render(){return Te``}onBigPlayButtonClick(){this.dispatchEvent(new eN("big-play-button-clicked"))}};fN.styles=[nN,iN,j` .big-play-button { transition-property: background, color, outline; } .big-play-button.tooltip { --tooltip-gap: var(--spacing-m); } .big-play-button-light { background-color: var(--color-white-alpha-90); outline: var(--stroke-width-thickest) solid var(--color-white-alpha-20); } .big-play-button-light:hover { background-color: var(--color-white-alpha-20); outline: var(--stroke-width-thickest) solid var(--color-white-alpha-90); } .big-play-button-light svg { fill: var(--color-brand-40); } .big-play-button-dark { background-color: var(--color-black-alpha-60); outline: var(--stroke-width-thickest) solid var(--color-black-alpha-20); } .big-play-button-dark:hover { background-color: var(--color-black-alpha-60); outline: var(--stroke-width-thickest) solid var(--color-white-alpha-90); } .big-play-button-dark svg { fill: var(--color-neutral-foreground-1); } @media (forced-colors: active) { .big-play-button-dark { background-color: ButtonText; outline: var(--stroke-width-thickest) solid Highlight; } .big-play-button-dark:hover { background-color: Highlight; outline: var(--stroke-width-thickest) solid ButtonText; } .big-play-button-dark svg { fill: ButtonFace; } } .big-play-button-light { background-color: Highlight; outline: var(--stroke-width-thickest) solid ButtonText; } .big-play-button-light:hover { background-color: ButtonText; outline: var(--stroke-width-thickest) solid Highlight; } .big-play-button-light svg { fill: ButtonFace; } } `],dN([E({context:_R,subscribe:!0})],fN.prototype,"playerState",2),fN=dN([rt(),$e("ump-big-play-button")],fN);const pN='',hN=[.5,.75,1,1.25,1.5,1.75,2,3,4],gN=[{label:Ze("White"),hexCode:"#FFFFFF"},{label:Ze("Yellow"),hexCode:"#FFFF00"},{label:Ze("Black"),hexCode:"#000000"},{label:Ze("Green"),hexCode:"#008000"},{label:Ze("Blue"),hexCode:"#0000FF"},{label:Ze("Magenta"),hexCode:"#FF00FF"},{label:Ze("Cyan"),hexCode:"#00FFFF"}],vN=[{label:Ze("Proportional Sans Serif"),family:"sans-serif"},{label:Ze("Monospace Sans Serif"),family:'"Andale Mono", "Lucida Console", monospace'},{label:Ze("Proportional Serif"),family:"serif"},{label:Ze("Monospace Serif"),family:'"Courier New", monospace'},{label:Ze("Casual"),family:'"Comic Sans MS", Impact, fantasy'},{label:Ze("Cursive"),family:'"Monotype Corsiva", cursive'},{label:Ze("Small Capitals"),family:'"Andale Mono", "Lucida Console", monospace, sans-serif'}],mN=[0,.25,.5,.75,1],yN="rgb(34, 34, 34)",bN="rgb(204, 204, 204)",wN=[{label:Ze("None"),textShadow:"rgb(255, 255, 255) 0px 0px 0px"},{label:Ze("Drop Shadow"),textShadow:`${yN} 2px 2px 3px, ${yN} 2px 2px 4px, ${yN} 2px 2px 5px`},{label:Ze("Depressed"),textShadow:`${bN} 1px 1px 0px, ${bN} 0px 1px 0px, ${yN} -1px -1px 0px, ${yN} 0px -1px 0px`},{label:Ze("Uniform"),textShadow:`${yN} 0px 0px 4px, ${yN} 0px 0px 4px, ${yN} 0px 0px 4px, ${yN} 0px 0px 4px`},{label:Ze("Raised"),textShadow:`${yN} 1px 1px 0px, ${yN} 2px 2px 0px, ${yN} 3px 3px 0px`}];var xN=Object.defineProperty,SN=Object.getOwnPropertyDescriptor,TN=(e,t,n,r)=>{for(var i,a=r>1?void 0:r?SN(t,n):t,o=e.length-1;o>=0;o--)(i=e[o])&&(a=(r?i(t,n,a):i(a))||a);return r&&a&&xN(t,n,a),a};let kN=class extends Be{constructor(){super(...arguments),this.buildColorMenu=(e,t,n,r,i)=>{const a=this.playerState.disableKeyboardEvents;function o(e){const[t]=e.currentTarget.querySelectorAll("button");null==t||t.focus()}return Te` e.stopPropagation()} >
${Ze("Color")}
${Ze(gN.find((e=>e.hexCode===t)).label)}
${gN.map((t=>Te` `))}
e.stopPropagation()} >
${Ze("Opacity")}
${100*n+"%"}
${mN.map((t=>Te` `))}
`}}render(){var e;const{captionTracks:t,selectedCaptionTrackId:n,captionSettings:r}=this.playerState;if(t.length<=1)return null;const i=this.playerState.disableKeyboardEvents?0:-1;return Te` this.requestUpdate()} > ${Ze("Caption Settings")} ${Ze("Font Size")}
${100*r.fontScale+"%"}
${Ze("Text Color")}
${Ze(gN.find((e=>e.hexCode===r.textColor)).label)}, ${1===r.textOpacity?Ze("Opaque"):100*r.textOpacity+"%"}
${Ze("Background Color")}
${Ze(gN.find((e=>e.hexCode===r.backgroundColor)).label)}, ${1===r.backgroundOpacity?Ze("Opaque"):100*r.backgroundOpacity+"%"}
${Ze("Font Family")}
${Ze(vN.find((e=>e.family===r.fontFamily)).label)}
${Ze("Text Edge Style")}
${Ze(wN.find((e=>e.textShadow===r.textShadow)).label)}
`}onFooterButtonFocusIn(e){this.playerState.disableKeyboardEvents||(e.target.tabIndex=0)}onFooterButtonFocusOut(e){this.playerState.disableKeyboardEvents||(e.target.tabIndex=-1)}onCaptionClicked(e){return()=>{this.dispatchEvent(new eN("caption-track-clicked",e)),this.dispatchEvent(new eN("closedcaptionschanged"))}}captionSettingChanged(e){this.dispatchEvent(e),this.dispatchEvent(new eN("closedcaptionsettingschanged"))}onFontSizeClicked(e){return()=>this.captionSettingChanged(new eN("caption-font-size-clicked",e))}onTextColorClicked(e){return()=>this.captionSettingChanged(new eN("caption-text-color-clicked",e))}onTextOpacityClicked(e){return()=>this.captionSettingChanged(new eN("caption-text-opacity-clicked",e))}onBackgroundColorClicked(e){return()=>this.captionSettingChanged(new eN("caption-background-color-clicked",e))}onBackgroundOpacityClicked(e){return()=>this.captionSettingChanged(new eN("caption-background-opacity-clicked",e))}onFontFamilyClicked(e){return()=>this.captionSettingChanged(new eN("caption-font-family-clicked",e))}onTextEdgeStyleClicked(e){return()=>this.captionSettingChanged(new eN("caption-text-edge-style-clicked",e))}onColorOptionsKeyDown(e){if(this.playerState.disableKeyboardEvents)return;const t=e.currentTarget,n=Array.from(t.parentElement.querySelectorAll("button")),r=n.indexOf(t);switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),t.click();break;case"ArrowRight":n[(r+1)%n.length].focus();break;case"ArrowLeft":n[(r-1+n.length)%n.length].focus()}}get opened(){var e;return null==(e=this.popup)?void 0:e.opened}};kN.styles=[nN,rN,iN,j` .btn.tooltip{--tooltip-gap:var(--spacing-xxxl)}ump-popup{--ump-popup-spacing:var(--spacing-xxxl)}ump-menu{width:var(--size-80);display:block}@container universalmediaplayer (max-width:450px){ump-menu{width:calc(var(--size-80) - 3cqw)}}.menu-title-spacer{width:var(--size-6);height:var(--size-6)}@container universalmediaplayer (min-width:0){.menu-scrollable{scrollbar-base-color:green;overflow:hidden auto;max-height:calc(100cqh - var(--ump-lower-controls-height) - 4rem);flex-direction:column;padding:var(--spacing-xs)}}.menu-footer{width:100%;border-top:1px solid var(--color-neutral-stroke-alpha)}.menu-footer div:focus,.menu-footer div:focus-visible{outline:var(--stroke-width-thick) solid var(--color-stroke-focus-2)}.menu-footer div svg{fill:currentcolor}.color-suffix{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-m);padding:var(--spacing-s) var(--spacing-m)}.opacity-suffix{display:flex;gap:var(--spacing-xs)}.opacity-suffix .btn{font-weight:var(--font-weight-normal)}.cc-style-menu-item{display:flex;align-items:center;justify-content:space-between;padding:var(--spacing-s) 0}.btn-color{width:var(--size-5);height:var(--size-5);padding:0;border:solid var(--stroke-width-thin) var(--color-neutral-stroke-1)}.text-color-list{display:flex;gap:var(--spacing-s)}@media (forced-colors:active){.btn-color{outline:var(--stroke-width-thick) solid;outline-offset:var(--spacing-xxs)}.btn-color:hover{outline-color:Highlight}.menu-footer{border-top-color:ButtonBorder}} `],TN([Xe("ump-popup")],kN.prototype,"popup",2),TN([E({context:_R,subscribe:!0})],kN.prototype,"playerState",2),kN=TN([$e("ump-caption-menu")],kN);const CN=["af-za","am-et","ar-sa","as-in","be-by","bg-bg","bn-in","ca-es","cs-cz","cy-gb","da-dk","de-at","de-ch","de-de","el-gr","en-au","en-ca","en-gb","en-hk","en-ie","en-in","en-my","en-nz","en-ph","en-sg","en-us","en-za","es-ar","es-cl","es-co","es-es","es-mx","et-ee","eu-es","fa-ir","fi-fi","fr-be","fr-ca","fr-ch","fr-fr","fr-ma","ga-ie","gd-gb","gl-es","gu-in","he-il","hi-in","hr-hr","hu-hu","hy-am","id-id","is-is","it-it","ja-jp","ka-ge","kk-kz","kn-in","ko-kr","ky-kg","lb-lu","lo-la","lt-lt","lv-lv","mi-nz","mk-mk","ml-in","mr-in","ms-bn","ms-my","mt-mt","nb-no","ne-np","nl-be","nl-nl","nn-no","or-in","pa-in","pl-pl","ps-af","pt-br","pt-pt","ro-ro","ru-ru","si-lk","sk-sk","sl-si","sq-al","sv-se","sw-ke","ta-in","te-in","tg-tj","th-th","ti-et","tk-tm","tr-tr","tt-ru","ug-cn","uk-ua","ur-in","ur-pk","uz-uz","vi-vn","wo-sn","xh-za","yo-ng","zh-cn","zh-hk","zh-tw","zu-za"],AN={s0289cd9e4bcf84c5:"Volume Level",s061cc20e3432dead:"Pause",s0622a6e6cb77254b:"Transcript",s08e6bd98452e6bb9:"Audio",s1b4a36fce2456660:"Font Family",s1fa5be5a4f5d0f04:"Casual",s23537b5c9e7af982:"Captions",s24221a89168e9d21:"Font Size",s255857544a9d5ec0:"Reset",s25a858f0257e2879:"Captions Menu",s2df075aface0dab8:"Share",s2f5d5d2d1f92de26:"Download Video",s302cbb19bf9a174a:"Off",s308604b3ae13fbb5:"Playing",s344ea8f4939cdc98:"Colour",s3687049d1af562c4:"Copy",s36b979e4de5152b3:"Link Copied",s37a9e8aec5713460:"More",s3ca1bdfa8785f808:"Proportional Sans Serif",s41faaf3b4e182cc6:"Age verification is required to access this content.",s49f06dca0feeb2f3:"Uniform",s4b023aafbd8d5ac8:"Share this video on",s4b10acae683d2978:"Fullscreen",s500caa88d20458d3:"You may not access this content",s5267658ceae3230f:"Share this video",s5c5db15dfc3a5376:"Playback rate",s5e3cb80d43a34044:"Black",s5e8250fb85d64c23:"Close",s669b18c6d2d9c95b:"None",s66d852e3c020e79e:"Opaque",s6a3bf589eaf72169:"Monospace Serif",s6baf78886c99db89:"Yellow",s6f59e9b81c5a47e0:"Drop Shadow",s711d047dea682c1a:"Audio Track",s7d148a08796094d2:"Playback Error",s81a19821f3e4a3d2:"Replay",s827bc70ebcb7bbc6:"Monospace Sans Serif",s85186a61e0d55bac:"Video",s889413eb7198ea01:"option for turning off caption",s8e408592fd4ae43a:"Text Edge Style",s8e985aeeca6a8166:"White",s8eafb22ebdc7e668:"Magenta",s9559a51a63cbb5fd:"Small Capitals",s95bc8722b2708f8b:"Paused",s973b83fb67a5865d:"Download Transcript",s9b3c2f9cc32d565a:"Cyan",s9c356016f81585f6:"Background Colour",s9d8b8aa2b404c2c8:"Settings",s9fbd543f2179c1ec:"Audio Menu",sa000eaf7092088c3:"Progress Bar",sa6f2645578b2d2bc:"Year",sa9011e79e3ca2d18:"Depressed",saf9b398ab363c174:"Please enter your date of birth",sb3d4f79d9d8b71e5:"Submit",sb47daaf9e1c4a905:"Month",sb9f16a5f9c29f41e:"We're sorry, but something went wrong.",sba64d8954d027206:"Opacity",sc07837c309cc699b:"Unmute",scd105819b5a10243:"Play",sce836928a17d96ed:"Text Colour",scf00d78fd5953f1c:"Green",sd1246235faaa3191:"An age restriction has been implemented due to mature themes or legal requirements intended to protect younger audiences.",sd3386a2ef42e80b9:"Download",sd8d4b1b613d28990:"Cursive",sdb02f53e62c1da05:"Raised",sdb73788b3c975f16:"Auto",se0955919920ee87d:"Day",se0f67eae944f8f94:"Mute",se73c59cc10f48c12:"Social",secf3d3a7c1693e2d:"Blue",sed31876562d94652:"Caption Settings",sf113fa256db9617b:"Ended",sf675f879b1c892c6:"Quality",sfc24a457269b13d4:"Volume Slider",sfcb817633bf70e1b:"Proportional Serif",sa430d84680aabd0b:"hello"},EN=Object.freeze(Object.defineProperty({__proto__:null,templates:AN},Symbol.toStringTag,{value:"Module"})),IN={s0289cd9e4bcf84c5:"Nivel de volumen",s061cc20e3432dead:"Pausar",s0622a6e6cb77254b:"Transcripción",s08e6bd98452e6bb9:"Audio",s1b4a36fce2456660:"Familia de fuentes",s1fa5be5a4f5d0f04:"Informal",s23537b5c9e7af982:"Subtítulos",s24221a89168e9d21:"Tamaño de fuente",s255857544a9d5ec0:"Restablecer",s25a858f0257e2879:"Menú Subtítulos",s2df075aface0dab8:"Compartir",s2f5d5d2d1f92de26:"Descargar vídeo",s302cbb19bf9a174a:"Desactivado",s308604b3ae13fbb5:"Reproduciendo",s344ea8f4939cdc98:"Color",s3687049d1af562c4:"Copiar",s36b979e4de5152b3:"Vínculo copiado",s37a9e8aec5713460:"Más",s3ca1bdfa8785f808:"Sans Serif proporcional",s41faaf3b4e182cc6:"Es necesario realizar una comprobación de la edad para acceder a este contenido.",s49f06dca0feeb2f3:"Uniforme",s4b023aafbd8d5ac8:"Comparte este vídeo por",s4b10acae683d2978:"Pantalla completa",s500caa88d20458d3:"No puedes acceder a este contenido",s5267658ceae3230f:"Compartir este vídeo",s5c5db15dfc3a5376:"Velocidad de reproducción",s5e3cb80d43a34044:"Negro",s5e8250fb85d64c23:"Cerrar",s669b18c6d2d9c95b:"Ninguna",s66d852e3c020e79e:"Opaco",s6a3bf589eaf72169:"Serif monoespaciada",s6baf78886c99db89:"Amarillo",s6f59e9b81c5a47e0:"Sombra paralela",s711d047dea682c1a:"Pista de audio",s7d148a08796094d2:"Error de reproducción",s81a19821f3e4a3d2:"Reproducir",s827bc70ebcb7bbc6:"Sans Serif monoespaciada",s85186a61e0d55bac:"Vídeo",s889413eb7198ea01:"opción para desactivar los subtítulos",s8e408592fd4ae43a:"Estilo de borde del texto",s8e985aeeca6a8166:"Blanco",s8eafb22ebdc7e668:"Magenta",s9559a51a63cbb5fd:"Versalitas",s95bc8722b2708f8b:"En pausa",s973b83fb67a5865d:"Descargar transcripción",s9b3c2f9cc32d565a:"Cian",s9c356016f81585f6:"Color de fondo",s9d8b8aa2b404c2c8:"Configuración",s9fbd543f2179c1ec:"Menú Audio",sa000eaf7092088c3:"Barra de progreso",sa6f2645578b2d2bc:"Año",sa9011e79e3ca2d18:"Presionado",saf9b398ab363c174:"Escribe tu fecha de nacimiento",sb3d4f79d9d8b71e5:"Enviar",sb47daaf9e1c4a905:"Mes",sb9f16a5f9c29f41e:"Lo sentimos, se ha producido un error.",sba64d8954d027206:"Opacidad",sc07837c309cc699b:"Reactivar audio",scd105819b5a10243:"Reproducir",sce836928a17d96ed:"Color del texto",scf00d78fd5953f1c:"Verde",sd1246235faaa3191:"Se ha aplicado una restricción de edad debido a temas para adultos o requisitos legales destinada a proteger a las audiencias más jóvenes.",sd3386a2ef42e80b9:"Descargar",sd8d4b1b613d28990:"Cursiva",sdb02f53e62c1da05:"Elevado",sdb73788b3c975f16:"Automático",se0955919920ee87d:"Día",se0f67eae944f8f94:"Silenciar",se73c59cc10f48c12:"Redes sociales",secf3d3a7c1693e2d:"Azul",sed31876562d94652:"Configuración de las leyendas",sf113fa256db9617b:"Finalizado",sf675f879b1c892c6:"Calidad",sfc24a457269b13d4:"Control deslizante de volumen",sfcb817633bf70e1b:"Serif proporcional",sa430d84680aabd0b:"hello"},MN=Object.freeze(Object.defineProperty({__proto__:null,templates:IN},Symbol.toStringTag,{value:"Module"})),_N={s0289cd9e4bcf84c5:"Nivel de volumen",s061cc20e3432dead:"Pausar",s0622a6e6cb77254b:"Transcripción",s08e6bd98452e6bb9:"Audio",s1b4a36fce2456660:"Familia de fuentes",s1fa5be5a4f5d0f04:"Casual",s23537b5c9e7af982:"Subtítulos",s24221a89168e9d21:"Tamaño de la fuente",s255857544a9d5ec0:"Restablecer",s25a858f0257e2879:"Menú de subtítulos",s2df075aface0dab8:"Compartir",s2f5d5d2d1f92de26:"Descargar video",s302cbb19bf9a174a:"Desactivado",s308604b3ae13fbb5:"Reproduciendo",s344ea8f4939cdc98:"Color",s3687049d1af562c4:"Copiar",s36b979e4de5152b3:"Vínculo copiado",s37a9e8aec5713460:"Más",s3ca1bdfa8785f808:"Sin serifa, proporcional",s41faaf3b4e182cc6:"Se requiere una verificación de edad para acceder a este contenido.",s49f06dca0feeb2f3:"Uniforme",s4b023aafbd8d5ac8:"Comparte este video en",s4b10acae683d2978:"Pantalla completa",s500caa88d20458d3:"No puedes acceder a este contenido",s5267658ceae3230f:"Compartir este video",s5c5db15dfc3a5376:"Velocidad de reproducción",s5e3cb80d43a34044:"Negro",s5e8250fb85d64c23:"Cerrar",s669b18c6d2d9c95b:"Ninguno",s66d852e3c020e79e:"Opaco",s6a3bf589eaf72169:"Serif monoespaciada",s6baf78886c99db89:"Amarillo",s6f59e9b81c5a47e0:"Sombra paralela",s711d047dea682c1a:"Pista de audio",s7d148a08796094d2:"Error de reproducción",s81a19821f3e4a3d2:"Repetir",s827bc70ebcb7bbc6:"Sin serifa, monoespaciada",s85186a61e0d55bac:"Video",s889413eb7198ea01:"opción para desactivar subtítulos",s8e408592fd4ae43a:"Estilo del borde del texto",s8e985aeeca6a8166:"Blanco",s8eafb22ebdc7e668:"Magenta",s9559a51a63cbb5fd:"Versalitas",s95bc8722b2708f8b:"En pausa",s973b83fb67a5865d:"Descargar transcripción",s9b3c2f9cc32d565a:"Cian",s9c356016f81585f6:"Color de fondo",s9d8b8aa2b404c2c8:"Configuración",s9fbd543f2179c1ec:"Menú de audio",sa000eaf7092088c3:"Barra de progreso",sa6f2645578b2d2bc:"Año",sa9011e79e3ca2d18:"En relieve negativo",saf9b398ab363c174:"Introduce tu fecha de nacimiento",sb3d4f79d9d8b71e5:"Enviar",sb47daaf9e1c4a905:"Mes",sb9f16a5f9c29f41e:"Lo sentimos, pero algo salió mal.",sba64d8954d027206:"Opacidad",sc07837c309cc699b:"Reactivar audio",scd105819b5a10243:"Reproducir",sce836928a17d96ed:"Color del texto",scf00d78fd5953f1c:"Verde",sd1246235faaa3191:"Se implementó una restricción de edad debido a temas para adultos o requisitos legales destinados a proteger a los públicos más jóvenes.",sd3386a2ef42e80b9:"Descargar",sd8d4b1b613d28990:"Cursiva",sdb02f53e62c1da05:"Elevado",sdb73788b3c975f16:"Automático",se0955919920ee87d:"Día",se0f67eae944f8f94:"Silenciar",se73c59cc10f48c12:"Redes sociales",secf3d3a7c1693e2d:"Azul",sed31876562d94652:"Configuración de subtítulos",sf113fa256db9617b:"Terminó",sf675f879b1c892c6:"Calidad",sfc24a457269b13d4:"Control deslizante de volumen",sfcb817633bf70e1b:"Con serifa, proporcional",sa430d84680aabd0b:"hello"},PN=Object.freeze(Object.defineProperty({__proto__:null,templates:_N},Symbol.toStringTag,{value:"Module"})),DN={s0289cd9e4bcf84c5:"Volume sonore",s061cc20e3432dead:"Pause",s0622a6e6cb77254b:"Transcription",s08e6bd98452e6bb9:"Audio",s1b4a36fce2456660:"Famille de police",s1fa5be5a4f5d0f04:"Informel",s23537b5c9e7af982:"Sous-titres",s24221a89168e9d21:"Taille de police",s255857544a9d5ec0:"Réinitialiser",s25a858f0257e2879:"Menu des sous-titres",s2df075aface0dab8:"Partager",s2f5d5d2d1f92de26:"Télécharger la vidéo",s302cbb19bf9a174a:"Désactivé",s308604b3ae13fbb5:"Lecture",s344ea8f4939cdc98:"Couleur",s3687049d1af562c4:"Copier",s36b979e4de5152b3:"Lien copié",s37a9e8aec5713460:"Plus",s3ca1bdfa8785f808:"Sans Serif proportionnelle",s41faaf3b4e182cc6:"L’âge doit être vérifié pour accéder à ce contenu.",s49f06dca0feeb2f3:"Uniforme",s4b023aafbd8d5ac8:"Partager cette vidéo sur",s4b10acae683d2978:"Plein écran",s500caa88d20458d3:"Vous n’êtes pas autorisé à accéder à ce contenu",s5267658ceae3230f:"Partager cette vidéo",s5c5db15dfc3a5376:"Vitesse de lecture",s5e3cb80d43a34044:"Noir",s5e8250fb85d64c23:"Fermer",s669b18c6d2d9c95b:"Aucune",s66d852e3c020e79e:"Opaque",s6a3bf589eaf72169:"Serif non proportionnelle",s6baf78886c99db89:"Jaune",s6f59e9b81c5a47e0:"Ombre portée",s711d047dea682c1a:"Piste audio",s7d148a08796094d2:"Erreur de lecture",s81a19821f3e4a3d2:"Relecture",s827bc70ebcb7bbc6:"Sans Serif non proportionnelle",s85186a61e0d55bac:"Vidéo",s889413eb7198ea01:"option pour désactiver les sous-titres",s8e408592fd4ae43a:"Style du bord du texte",s8e985aeeca6a8166:"Blanc",s8eafb22ebdc7e668:"Magenta",s9559a51a63cbb5fd:"Petites capitales",s95bc8722b2708f8b:"En pause",s973b83fb67a5865d:"Télécharger la transcription",s9b3c2f9cc32d565a:"Cyan",s9c356016f81585f6:"Couleur de l’arrière-plan",s9d8b8aa2b404c2c8:"Paramètres",s9fbd543f2179c1ec:"Menu Audio",sa000eaf7092088c3:"Barre de progression",sa6f2645578b2d2bc:"Année",sa9011e79e3ca2d18:"Enfoncé",saf9b398ab363c174:"Saisissez votre date de naissance",sb3d4f79d9d8b71e5:"Envoyer",sb47daaf9e1c4a905:"Mois",sb9f16a5f9c29f41e:"Nous sommes désolés, mais une erreur s’est produite.",sba64d8954d027206:"Opacité",sc07837c309cc699b:"Activer le son",scd105819b5a10243:"Lecture",sce836928a17d96ed:"Couleur du texte",scf00d78fd5953f1c:"Vert",sd1246235faaa3191:"Une restriction d’âge est appliquée en raison de thèmes réservés aux adultes ou d’exigences juridiques destinées à protéger les jeunes publics.",sd3386a2ef42e80b9:"Télécharger",sd8d4b1b613d28990:"Cursive",sdb02f53e62c1da05:"Déclenché",sdb73788b3c975f16:"Automatique",se0955919920ee87d:"Jour",se0f67eae944f8f94:"Couper le son",se73c59cc10f48c12:"Réseaux sociaux",secf3d3a7c1693e2d:"Bleu",sed31876562d94652:"Paramètres des sous-titres",sf113fa256db9617b:"Terminé(e)s",sf675f879b1c892c6:"Qualité",sfc24a457269b13d4:"Curseur de volume",sfcb817633bf70e1b:"Serif proportionnelle",sa430d84680aabd0b:"hello"},LN=Object.freeze(Object.defineProperty({__proto__:null,templates:DN},Symbol.toStringTag,{value:"Module"})),RN={s0289cd9e4bcf84c5:"Livello volume",s061cc20e3432dead:"Sospendi",s0622a6e6cb77254b:"Trascrizione",s08e6bd98452e6bb9:"Audio",s1b4a36fce2456660:"Famiglia di caratteri",s1fa5be5a4f5d0f04:"Informale",s23537b5c9e7af982:"Sottotitoli",s24221a89168e9d21:"Dimensioni carattere",s255857544a9d5ec0:"Reimposta",s25a858f0257e2879:"Menu Sottotitoli",s2df075aface0dab8:"Condividi",s2f5d5d2d1f92de26:"Scarica video",s302cbb19bf9a174a:"Disattiva",s308604b3ae13fbb5:"In riproduzione",s344ea8f4939cdc98:"Colore",s3687049d1af562c4:"Copia",s36b979e4de5152b3:"Collegamento copiato",s37a9e8aec5713460:"Altro",s3ca1bdfa8785f808:"Proportional Sans Serif",s41faaf3b4e182cc6:"Verifica età richiesta per accedere a questo contenuto.",s49f06dca0feeb2f3:"Uniforme",s4b023aafbd8d5ac8:"Condividi questo video",s4b10acae683d2978:"Schermo intero",s500caa88d20458d3:"Non puoi accedere a questo contenuto",s5267658ceae3230f:"Condividi questo video",s5c5db15dfc3a5376:"Frequenza di riproduzione",s5e3cb80d43a34044:"Nero",s5e8250fb85d64c23:"Chiudi",s669b18c6d2d9c95b:"Nessuno",s66d852e3c020e79e:"Opaco",s6a3bf589eaf72169:"Monospace Serif",s6baf78886c99db89:"Giallo",s6f59e9b81c5a47e0:"Ombreggiatura",s711d047dea682c1a:"Traccia audio",s7d148a08796094d2:"Errore di riproduzione",s81a19821f3e4a3d2:"Riproduci",s827bc70ebcb7bbc6:"Monospace Sans Serif",s85186a61e0d55bac:"Video",s889413eb7198ea01:"opzione per disattivare i sottotitoli",s8e408592fd4ae43a:"Stile bordo testo",s8e985aeeca6a8166:"Bianco",s8eafb22ebdc7e668:"Magenta",s9559a51a63cbb5fd:"Maiuscoletto",s95bc8722b2708f8b:"In pausa",s973b83fb67a5865d:"Scarica trascrizione",s9b3c2f9cc32d565a:"Ciano",s9c356016f81585f6:"Colore di sfondo",s9d8b8aa2b404c2c8:"Impostazioni",s9fbd543f2179c1ec:"Menu Audio",sa000eaf7092088c3:"Indicatore di stato",sa6f2645578b2d2bc:"Anno",sa9011e79e3ca2d18:"Incassato",saf9b398ab363c174:"Immetti la tua data di nascita",sb3d4f79d9d8b71e5:"Invia",sb47daaf9e1c4a905:"Mese",sb9f16a5f9c29f41e:"Siamo spiacenti. Si è verificato un problema.",sba64d8954d027206:"Opacità",sc07837c309cc699b:"Attiva audio",scd105819b5a10243:"Riproduci",sce836928a17d96ed:"Colore testo",scf00d78fd5953f1c:"Verde",sd1246235faaa3191:"È stata applicata una restrizione di età dovuta ai temi per soli adulti o ai requisiti legali volti a proteggere il pubblico più giovane.",sd3386a2ef42e80b9:"Scarica",sd8d4b1b613d28990:"Corsivo",sdb02f53e62c1da05:"In rilievo",sdb73788b3c975f16:"Auto",se0955919920ee87d:"Giorno",se0f67eae944f8f94:"Disattiva audio",se73c59cc10f48c12:"Social",secf3d3a7c1693e2d:"Blu",sed31876562d94652:"Impostazioni sottotitolo",sf113fa256db9617b:"Completato",sf675f879b1c892c6:"Qualità",sfc24a457269b13d4:"Dispositivo di scorrimento volume",sfcb817633bf70e1b:"Proportional Serif",sa430d84680aabd0b:"hello"},NN=Object.freeze(Object.defineProperty({__proto__:null,templates:RN},Symbol.toStringTag,{value:"Module"})),ON={s0289cd9e4bcf84c5:"Nível de volume",s061cc20e3432dead:"Pausar",s0622a6e6cb77254b:"Transcrição",s08e6bd98452e6bb9:"Áudio",s1b4a36fce2456660:"Família de fontes",s1fa5be5a4f5d0f04:"Casual",s23537b5c9e7af982:"Legendas",s24221a89168e9d21:"Tamanho da fonte",s255857544a9d5ec0:"Redefinir",s25a858f0257e2879:"Menu Legendas",s2df075aface0dab8:"Compartilhar",s2f5d5d2d1f92de26:"Baixar o vídeo",s302cbb19bf9a174a:"Desligado",s308604b3ae13fbb5:"Reproduzindo",s344ea8f4939cdc98:"Cor",s3687049d1af562c4:"Copiar",s36b979e4de5152b3:"Link copiado",s37a9e8aec5713460:"Mais",s3ca1bdfa8785f808:"Sans Serif Proporcional",s41faaf3b4e182cc6:"A verificação de idade é necessária para acessar este conteúdo.",s49f06dca0feeb2f3:"Uniforme",s4b023aafbd8d5ac8:"Compartilhar este vídeo no",s4b10acae683d2978:"Tela inteira",s500caa88d20458d3:"Você não pode acessar este conteúdo",s5267658ceae3230f:"Compartilhar este vídeo",s5c5db15dfc3a5376:"Taxa de reprodução",s5e3cb80d43a34044:"Preto",s5e8250fb85d64c23:"Fechar",s669b18c6d2d9c95b:"Nenhum",s66d852e3c020e79e:"Opaco",s6a3bf589eaf72169:"Serifa monoespaçada",s6baf78886c99db89:"Amarelo",s6f59e9b81c5a47e0:"Sombra",s711d047dea682c1a:"Faixa de áudio",s7d148a08796094d2:"Erro de reprodução",s81a19821f3e4a3d2:"Repetir",s827bc70ebcb7bbc6:"Sans Serif Monoespaçado",s85186a61e0d55bac:"Vídeo",s889413eb7198ea01:"opção para desativar a legenda",s8e408592fd4ae43a:"Estilo de borda de texto",s8e985aeeca6a8166:"Branco",s8eafb22ebdc7e668:"Magenta",s9559a51a63cbb5fd:"Letras minúsculas",s95bc8722b2708f8b:"Pausado",s973b83fb67a5865d:"Baixar a transcrição",s9b3c2f9cc32d565a:"Ciano",s9c356016f81585f6:"Cor de fundo",s9d8b8aa2b404c2c8:"Configurações",s9fbd543f2179c1ec:"Menu Áudio",sa000eaf7092088c3:"Barra de progresso",sa6f2645578b2d2bc:"Ano",sa9011e79e3ca2d18:"Para baixo",saf9b398ab363c174:"Digite sua data de nascimento",sb3d4f79d9d8b71e5:"Enviar",sb47daaf9e1c4a905:"Mês",sb9f16a5f9c29f41e:"Lamentamos, mas algo deu errado.",sba64d8954d027206:"Opacidade",sc07837c309cc699b:"Desativar mudo",scd105819b5a10243:"Jogar",sce836928a17d96ed:"Cor do texto",scf00d78fd5953f1c:"Verde",sd1246235faaa3191:"Uma restrição de idade foi implementada devido a temas adultos ou requisitos legais destinados a proteger o público mais jovem.",sd3386a2ef42e80b9:"Baixar",sd8d4b1b613d28990:"Cursiva",sdb02f53e62c1da05:"Para cima",sdb73788b3c975f16:"Automático",se0955919920ee87d:"Dia",se0f67eae944f8f94:"Ativar mudo",se73c59cc10f48c12:"Redes sociais",secf3d3a7c1693e2d:"Azul",sed31876562d94652:"Configurações de legenda",sf113fa256db9617b:"Finalizado",sf675f879b1c892c6:"Qualidade",sfc24a457269b13d4:"Controle deslizante de volume",sfcb817633bf70e1b:"Serifa proporcional",sa430d84680aabd0b:"hello"},UN=Object.freeze(Object.defineProperty({__proto__:null,templates:ON},Symbol.toStringTag,{value:"Module"})),jN={en:"en-us",es:"es-es",de:"de-de",fi:"fi-fi",fr:"fr-fr",hi:"hi-in",hu:"hu-hu",is:"is-is",it:"it-it",ja:"ja-jp",kk:"kk-kz",ko:"ko-kr",lt:"lt-lt",lv:"lv-lv",mk:"mk-mk",mt:"mt-mt",nb:"nb-no",nn:"nn-no",pl:"pl-pl",pt:"pt-pt",ro:"ro-ro",ru:"ru-ru",sk:"sk-sk",sl:"sl-si",sq:"sq-al",sv:"sv-se",ta:"ta-in",te:"te-in",th:"th-th",tr:"tr-tr",uk:"uk-ua",ur:"ur-pk",uz:"uz-uz",vi:"vi-vn",zh:"zh-cn"};function FN(e){try{return new Intl.DisplayNames([e],{type:"language",fallback:"none"}).of(e)}catch{return}}const BN=e=>"en-us"==(e=e.toLowerCase())?"English":FN(e)??FN($N(e))??e,VN=e=>{if(!e)return;const t=e.toLowerCase();return function(e){return CN.includes(e)}(t)?t:jN[$N(t)]},$N=e=>e.split("-")[0],zN=new Set(["??-??-????????","???-????-??","??-????-??","???-????","??-????","???-??","??-??","???","??"]),HN=Array.from(zN).map((e=>`(?:${e.replace(/\?/g,"[a-zA-Z]")})`)).join("|"),qN=new Map,KN={"es-es":{templates:IN},"pt-br":{templates:ON},"en-gb":{templates:AN},"fr-fr":{templates:DN},"es-mx":{templates:_N},"it-it":{templates:RN}};const{getLocale:GN,setLocale:XN}=(WN={sourceLocale:"en-us",targetLocales:["af-za","am-et","ar-sa","as-in","be-by","bg-bg","bn-in","ca-es","cs-cz","cy-gb","da-dk","de-at","de-ch","de-de","el-gr","en-au","en-ca","en-gb","en-hk","en-ie","en-in","en-my","en-nz","en-ph","en-sg","en-za","es-ar","es-cl","es-co","es-es","es-mx","et-ee","eu-es","fa-ir","fi-fi","fr-be","fr-ca","fr-ch","fr-fr","fr-ma","ga-ie","gd-gb","gl-es","gu-in","he-il","hi-in","hr-hr","hu-hu","hy-am","id-id","is-is","it-it","ja-jp","ka-ge","kk-kz","kn-in","ko-kr","ky-kg","lb-lu","lo-la","lt-lt","lv-lv","mi-nz","mk-mk","ml-in","mr-in","ms-bn","ms-my","mt-mt","nb-no","ne-np","nl-be","nl-nl","nn-no","or-in","pa-in","pl-pl","ps-af","pt-br","pt-pt","ro-ro","ru-ru","si-lk","sk-sk","sl-si","sq-al","sv-se","sw-ke","ta-in","te-in","tg-tj","th-th","ti-et","tk-tm","tr-tr","tt-ru","ug-cn","uk-ua","ur-in","ur-pk","uz-uz","vi-vn","wo-sn","xh-za","yo-ng","zh-cn","zh-hk","zh-tw","zu-za"],loadLocale:function(e){let t=qN.get(e);return t||(t=(e=>KN[e]?Promise.resolve(KN[e]):((e,t,n)=>{const r=e[t];return r?"function"==typeof r?r():Promise.resolve(r):new Promise(((e,n)=>{("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+t+(4!==t.split("/").length?". Note that variables only represent file names one level deep.":""))))}))})(Object.assign({"../generated/locales/af-za.ts":()=>r.e(65).then(r.bind(r,65)),"../generated/locales/am-et.ts":()=>r.e(2022).then(r.bind(r,2022)),"../generated/locales/ar-sa.ts":()=>r.e(3066).then(r.bind(r,3066)),"../generated/locales/as-in.ts":()=>r.e(8908).then(r.bind(r,8908)),"../generated/locales/be-by.ts":()=>r.e(7613).then(r.bind(r,7613)),"../generated/locales/bg-bg.ts":()=>r.e(9692).then(r.bind(r,9692)),"../generated/locales/bn-in.ts":()=>r.e(8752).then(r.bind(r,8752)),"../generated/locales/ca-es.ts":()=>r.e(6972).then(r.bind(r,6972)),"../generated/locales/cs-cz.ts":()=>r.e(7205).then(r.bind(r,7205)),"../generated/locales/cy-gb.ts":()=>r.e(7971).then(r.bind(r,7971)),"../generated/locales/da-dk.ts":()=>r.e(6642).then(r.bind(r,6642)),"../generated/locales/de-at.ts":()=>r.e(112).then(r.bind(r,112)),"../generated/locales/de-ch.ts":()=>r.e(5053).then(r.bind(r,5053)),"../generated/locales/de-de.ts":()=>r.e(7437).then(r.bind(r,7437)),"../generated/locales/el-gr.ts":()=>r.e(3943).then(r.bind(r,3943)),"../generated/locales/en-au.ts":()=>r.e(4252).then(r.bind(r,4252)),"../generated/locales/en-ca.ts":()=>r.e(9749).then(r.bind(r,9749)),"../generated/locales/en-gb.ts":()=>Promise.resolve().then((()=>EN)),"../generated/locales/en-hk.ts":()=>r.e(6930).then(r.bind(r,6930)),"../generated/locales/en-ie.ts":()=>r.e(4150).then(r.bind(r,4150)),"../generated/locales/en-in.ts":()=>r.e(2040).then(r.bind(r,2040)),"../generated/locales/en-my.ts":()=>r.e(3288).then(r.bind(r,3288)),"../generated/locales/en-nz.ts":()=>r.e(3841).then(r.bind(r,3841)),"../generated/locales/en-ph.ts":()=>r.e(221).then(r.bind(r,221)),"../generated/locales/en-sg.ts":()=>r.e(3478).then(r.bind(r,4997)),"../generated/locales/en-za.ts":()=>r.e(847).then(r.bind(r,847)),"../generated/locales/es-ar.ts":()=>r.e(5236).then(r.bind(r,5236)),"../generated/locales/es-cl.ts":()=>r.e(8181).then(r.bind(r,8181)),"../generated/locales/es-co.ts":()=>r.e(2206).then(r.bind(r,2206)),"../generated/locales/es-es.ts":()=>Promise.resolve().then((()=>MN)),"../generated/locales/es-mx.ts":()=>Promise.resolve().then((()=>PN)),"../generated/locales/et-ee.ts":()=>r.e(6489).then(r.bind(r,6489)),"../generated/locales/eu-es.ts":()=>r.e(4982).then(r.bind(r,4982)),"../generated/locales/fa-ir.ts":()=>r.e(8167).then(r.bind(r,8167)),"../generated/locales/fi-fi.ts":()=>r.e(9148).then(r.bind(r,9148)),"../generated/locales/fr-be.ts":()=>r.e(4211).then(r.bind(r,4211)),"../generated/locales/fr-ca.ts":()=>r.e(5198).then(r.bind(r,5198)),"../generated/locales/fr-ch.ts":()=>r.e(806).then(r.bind(r,806)),"../generated/locales/fr-fr.ts":()=>Promise.resolve().then((()=>LN)),"../generated/locales/fr-ma.ts":()=>r.e(7567).then(r.bind(r,7567)),"../generated/locales/ga-ie.ts":()=>r.e(4479).then(r.bind(r,4479)),"../generated/locales/gd-gb.ts":()=>r.e(6861).then(r.bind(r,6861)),"../generated/locales/gl-es.ts":()=>r.e(4571).then(r.bind(r,5553)),"../generated/locales/gu-in.ts":()=>r.e(3158).then(r.bind(r,3158)),"../generated/locales/he-il.ts":()=>r.e(8094).then(r.bind(r,8094)),"../generated/locales/hi-in.ts":()=>r.e(677).then(r.bind(r,677)),"../generated/locales/hr-hr.ts":()=>r.e(3475).then(r.bind(r,3475)),"../generated/locales/hu-hu.ts":()=>r.e(8736).then(r.bind(r,8736)),"../generated/locales/hy-am.ts":()=>r.e(4407).then(r.bind(r,4407)),"../generated/locales/id-id.ts":()=>r.e(8482).then(r.bind(r,8482)),"../generated/locales/is-is.ts":()=>r.e(6423).then(r.bind(r,6423)),"../generated/locales/it-it.ts":()=>Promise.resolve().then((()=>NN)),"../generated/locales/ja-jp.ts":()=>r.e(4562).then(r.bind(r,4562)),"../generated/locales/ka-ge.ts":()=>r.e(3763).then(r.bind(r,3763)),"../generated/locales/kk-kz.ts":()=>r.e(2255).then(r.bind(r,2255)),"../generated/locales/kn-in.ts":()=>r.e(4138).then(r.bind(r,4138)),"../generated/locales/ko-kr.ts":()=>r.e(2930).then(r.bind(r,2930)),"../generated/locales/ky-kg.ts":()=>r.e(8238).then(r.bind(r,8238)),"../generated/locales/lb-lu.ts":()=>r.e(7166).then(r.bind(r,7166)),"../generated/locales/lo-la.ts":()=>r.e(1633).then(r.bind(r,1633)),"../generated/locales/lt-lt.ts":()=>r.e(8901).then(r.bind(r,8901)),"../generated/locales/lv-lv.ts":()=>r.e(7835).then(r.bind(r,7835)),"../generated/locales/mi-nz.ts":()=>r.e(6466).then(r.bind(r,6466)),"../generated/locales/mk-mk.ts":()=>r.e(9356).then(r.bind(r,9356)),"../generated/locales/ml-in.ts":()=>r.e(7201).then(r.bind(r,7201)),"../generated/locales/mr-in.ts":()=>r.e(5206).then(r.bind(r,5206)),"../generated/locales/ms-bn.ts":()=>r.e(6531).then(r.bind(r,6531)),"../generated/locales/ms-my.ts":()=>r.e(934).then(r.bind(r,934)),"../generated/locales/mt-mt.ts":()=>r.e(1663).then(r.bind(r,1663)),"../generated/locales/nb-no.ts":()=>r.e(7152).then(r.bind(r,7152)),"../generated/locales/ne-np.ts":()=>r.e(4124).then(r.bind(r,4124)),"../generated/locales/nl-be.ts":()=>r.e(6393).then(r.bind(r,6393)),"../generated/locales/nl-nl.ts":()=>r.e(5066).then(r.bind(r,5066)),"../generated/locales/nn-no.ts":()=>r.e(936).then(r.bind(r,936)),"../generated/locales/or-in.ts":()=>r.e(3531).then(r.bind(r,3531)),"../generated/locales/pa-in.ts":()=>r.e(974).then(r.bind(r,974)),"../generated/locales/pl-pl.ts":()=>r.e(3563).then(r.bind(r,3563)),"../generated/locales/ps-af.ts":()=>r.e(3801).then(r.bind(r,3801)),"../generated/locales/pt-br.ts":()=>Promise.resolve().then((()=>UN)),"../generated/locales/pt-pt.ts":()=>r.e(1222).then(r.bind(r,1222)),"../generated/locales/ro-ro.ts":()=>r.e(2556).then(r.bind(r,2556)),"../generated/locales/ru-ru.ts":()=>r.e(9009).then(r.bind(r,9009)),"../generated/locales/si-lk.ts":()=>r.e(7358).then(r.bind(r,7358)),"../generated/locales/sk-sk.ts":()=>r.e(1800).then(r.bind(r,1800)),"../generated/locales/sl-si.ts":()=>r.e(1559).then(r.bind(r,1559)),"../generated/locales/sq-al.ts":()=>r.e(2483).then(r.bind(r,2483)),"../generated/locales/sv-se.ts":()=>r.e(7945).then(r.bind(r,7945)),"../generated/locales/sw-ke.ts":()=>r.e(5814).then(r.bind(r,5814)),"../generated/locales/ta-in.ts":()=>r.e(6028).then(r.bind(r,6028)),"../generated/locales/te-in.ts":()=>r.e(3617).then(r.bind(r,3617)),"../generated/locales/tg-tj.ts":()=>r.e(3576).then(r.bind(r,3576)),"../generated/locales/th-th.ts":()=>r.e(1712).then(r.bind(r,1712)),"../generated/locales/ti-et.ts":()=>r.e(2204).then(r.bind(r,2204)),"../generated/locales/tk-tm.ts":()=>r.e(7209).then(r.bind(r,7209)),"../generated/locales/tr-tr.ts":()=>r.e(4745).then(r.bind(r,4745)),"../generated/locales/tt-ru.ts":()=>r.e(3958).then(r.bind(r,3958)),"../generated/locales/ug-cn.ts":()=>r.e(6529).then(r.bind(r,6529)),"../generated/locales/uk-ua.ts":()=>r.e(2433).then(r.bind(r,2433)),"../generated/locales/ur-in.ts":()=>r.e(644).then(r.bind(r,644)),"../generated/locales/ur-pk.ts":()=>r.e(9948).then(r.bind(r,9948)),"../generated/locales/uz-uz.ts":()=>r.e(1154).then(r.bind(r,1154)),"../generated/locales/vi-vn.ts":()=>r.e(3204).then(r.bind(r,3204)),"../generated/locales/wo-sn.ts":()=>r.e(7594).then(r.bind(r,7594)),"../generated/locales/xh-za.ts":()=>r.e(5178).then(r.bind(r,5178)),"../generated/locales/yo-ng.ts":()=>r.e(5427).then(r.bind(r,5427)),"../generated/locales/zh-cn.ts":()=>r.e(3546).then(r.bind(r,3546)),"../generated/locales/zh-hk.ts":()=>r.e(2765).then(r.bind(r,2765)),"../generated/locales/zh-tw.ts":()=>r.e(5525).then(r.bind(r,5525)),"../generated/locales/zu-za.ts":()=>r.e(2741).then(r.bind(r,2741))}),`../generated/locales/${e}.ts`))(e),qN.set(e,t)),t}},function(e){if(Qe)throw new Error("lit-localize can only be configured once");Ze=(e,t)=>dt(mt,e,t),Qe=!0}(),yt=ht=WN.sourceLocale,gt=new Set(WN.targetLocales),gt.add(WN.sourceLocale),vt=WN.loadLocale,{getLocale:()=>yt,setLocale:e=>{if(e===(pt??yt))return bt.promise;if(!gt||!vt)throw new Error("Internal error");if(!gt.has(e))throw new Error("Invalid locale code");wt++;const t=wt;return pt=e,bt.settled&&(bt=new it),ft({status:"loading",loadingLocale:e}),(e===ht?Promise.resolve({templates:void 0}):vt(e)).then((n=>{wt===t&&(yt=e,pt=void 0,mt=n.templates,ft({status:"ready",readyLocale:e}),bt.resolve())}),(n=>{wt===t&&(ft({status:"error",errorLocale:e,errorMessage:n.toString()}),bt.reject(n))})),bt.promise}});var WN;function YN(e){const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60);return`${t>0?`${t}:`:""}${n.toString().padStart(t>0?2:1,"0")}:${r.toString().padStart(2,"0")}`}const JN=new Map;function ZN(e,t){const n=function(e){let t=JN.get(e);return t||(t={hour:new Intl.NumberFormat(e,{style:"unit",unit:"hour",unitDisplay:"long"}),minute:new Intl.NumberFormat(e,{style:"unit",unit:"minute",unitDisplay:"long"}),second:new Intl.NumberFormat(e,{style:"unit",unit:"second",unitDisplay:"long"})},JN.set(e,t)),t}(t);if(0===Math.floor(e))return n.second.format(0);const r=Math.floor(e/3600),i=Math.floor(e%3600/60),a=Math.floor(e%60),o=[];return r>0&&o.push(n.hour.format(r)),i>0&&o.push(n.minute.format(i)),a>0&&o.push(n.second.format(a)),o.join(", ")}const QN=j` .dialog{background-color:var(--color-brand-30);color:var(--color-neutral-foreground-1);border-radius:var(--border-radius-x-large);border:solid var(--stroke-width-thin) var(--color-white-alpha-30);box-shadow:var(--shadow-8)} `;var eO=Object.defineProperty,tO=Object.getOwnPropertyDescriptor,nO=(e,t,n,r)=>{for(var i,a=r>1?void 0:r?tO(t,n):t,o=e.length-1;o>=0;o--)(i=e[o])&&(a=(r?i(t,n,a):i(a))||a);return r&&a&&eO(t,n,a),a};let rO=class extends Be{render(){const{shareOptions:e}=this.playerState,t=e.find((e=>"copy"===e.id)),n=e.filter((e=>"copy"!==e.id));return Te`

${Ze("Share this video")}

${t?Te` `:null}
${Ze("Social")}
`}disconnectedCallback(){super.disconnectedCallback(),this.copyTimeoutId&&clearTimeout(this.copyTimeoutId)}firstUpdated(e){super.firstUpdated(e)}show(){this.dialog.show()}get opened(){return this.dialog.open}onCopyButtonClicked(e){return async t=>{try{const n=t.target;await navigator.clipboard.writeText(e),n.ariaLabel=Ze("Link Copied"),n.innerHTML='',this.copyTimeoutId&&clearTimeout(this.copyTimeoutId),this.copyTimeoutId=setTimeout((()=>{n.ariaLabel=Ze("Copy"),n.innerText=Ze("Copy")}),3e3)}catch(e){console.log("error copying text",e)}}}onDialogClick(e){e.target===this.dialog&&this.dialog.close()}onKeyDown(e){this.playerState.disableKeyboardEvents||"Escape"===e.key&&this.dialog.close()}onClose(){this.dialog.close(),this.dispatchEvent(new eN("share-dialog-closed"))}};rO.styles=[QN,nN,j` dialog { border: none; display: none; position: absolute; inset: 0; align-items: center; justify-content: center; width: 100%; height: 100%; background-color: transparent; max-width: 100%; max-height: 100%; box-sizing: border-box; text-align: left; } dialog[open] { display: flex; } .dialog { padding: var(--spacing-xxl) var(--spacing-xxxl); display: flex; gap: var(--spacing-xxl); z-index: 10; margin: var(--spacing-xxl); position: relative; font-family: var(--controls-font-family); color: var(--color-neutral-foreground-1); } .dialog-backdrop { position: absolute; inset: 0; background-color: var(--color-black-alpha-50); pointer-events: none; } .share-icon { stroke: currentcolor; fill: currentcolor; } .btn-close { position: absolute; right: var(--spacing-xl); top: var(--spacing-xl); &:hover { background-color: transparent; } } .dialog-content { display: flex; flex-direction: column; gap: var(--spacing-xxl); margin-right: var(--spacing-xxxl); } h2 { margin-top: 0; margin-bottom: var(--spacing-s); flex-grow: 1; } .section-title { display: block; margin-bottom: var(--spacing-m); font-weight: var(--font-weight-semibold); } .input { display: flex; align-items: center; border-radius: var(--border-radius-medium); border: solid var(--stroke-width-thin) var(--color-neutral-stroke-1); padding: var(--spacing-s) var(--spacing-m); border-color: var(--color-grey-86); gap: var(--spacing-m); input { background-color: transparent; border: none; outline: none; margin: 0; padding: 0; font-family: var(--controls-font-family); font-size: var(--font-size-base-400); flex-grow: 1; white-space: nowrap; text-overflow: ellipsis; opacity: 0.8; color: var(--color-neutral-foreground-1); } .btn-copy { color: var(--color-white-alpha-70); font-weight: var(--font-weight-normal); flex-shrink: 0; flex-basis: 0; border-color: var(--color-brand-150); border-width: var(--stroke-width-thick); border-radius: var(--border-radius-x-large); padding: var(--spacing-xxs) var(--spacing-s); } } .share-dialog-icons { display: flex; align-items: center; gap: var(--spacing-m); } .btn-social { background-color: var(--color-brand-140); svg { width: var(--size-6); height: var(--size-6); fill: var(--color-brand-40); } } .btn-social:hover { background-color: var(--color-brand-150); } .btn-social:active { background-color: var(--color-brand-130); } @media (forced-colors: active) { .btn-close:hover { background-color: Highlight; color: HighlightText; } } .btn-copy:hover { border-color: Highlight; color: HighlightText; forced-color-adjust: none; } .btn-social { svg { fill: ButtonText; } } .btn-social:hover { background-color: Highlight; border-color: Highlight; svg { fill: HighlightText; } } } `],nO([Xe("dialog")],rO.prototype,"dialog",2),nO([E({context:_R,subscribe:!0})],rO.prototype,"playerState",2),rO=nO([$e("ump-share-dialog")],rO);var iO=Object.defineProperty,aO=Object.getOwnPropertyDescriptor,oO=(e,t,n,r)=>{for(var i,a=r>1?void 0:r?aO(t,n):t,o=e.length-1;o>=0;o--)(i=e[o])&&(a=(r?i(t,n,a):i(a))||a);return r&&a&&iO(t,n,a),a};let sO=class extends Be{constructor(){super(...arguments),this.onSeekbarPointerDown=()=>{this.dispatchEvent(new eN("seekbar-pointer-down"))},this.onSeekbarPointerMove=e=>{const t=e.target,n=NR(e.offsetX/t.clientWidth,0,1);t.dataset.tooltip=YN(this.playerState.duration*n),t.style.setProperty("--tooltip-pointer-x",`${e.offsetX}px`)},this.onSeekbarPointerUp=()=>{this.dispatchEvent(new eN("seekbar-pointer-up"))}}render(){const e=GN();return Te`
${this.playerState.showVolumeSlider?Te`
`:null}
${YN(this.playerState.currentTime)} / ${YN(this.playerState.duration)}
`}get hasOpenControl(){return[this.audioMenu,this.captionMenu,this.settingsMenu,this.moreMenu,this.shareDialog].some((e=>e.opened))}firstUpdated(){this.playerState.bigPlayButtonClicked&&this.playButton.focus()}onShareClicked(){this.shareDialog.show(),this.dispatchEvent(new eN("share-button-clicked"))}onVolumeClicked(){this.dispatchEvent(new eN("volume-button-clicked"))}onPlayClicked(){this.dispatchEvent(new eN("play-button-clicked"))}onVolumeSliderChanged(e){const t=e.target;this.dispatchEvent(new eN("volume-updated",t.value))}onVolumeSliderPointerUp(e){const t=e.target;this.dispatchEvent(new eN("volume-drag-released",t.value))}onVolumeContainerFocusIn(){this.volumeContainer.classList.add("focused")}onVolumeContainerFocusOut(){this.volumeContainer.classList.remove("focused")}onVolumeContainerPointerLeave(){this.volumeContainer.classList.remove("focused")}onVolumeSliderClicked(e){e.stopPropagation()}onSeekbarSliderChanged(e){const t=e.target;this.dispatchEvent(new eN("seekbar-updated",t.value))}onFullScreenClicked(){this.dispatchEvent(new eN("fullscreen-button-clicked"))}onFocusIn(){this.dispatchEvent(new eN("control-bar-focus-change"))}};sO.styles=[nN,iN,j` :host{--ump-lower-controls-height:var(--size-28)}*{box-sizing:border-box;margin:0;padding:0}.overlay{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:-1}.overlay.mask20{background:var(--color-black-alpha-20)}.overlay.mask40{background:var(--color-black-alpha-40)}.overlay.mask60{background:var(--color-black-alpha-60)}.overlay.mask80{background:var(--color-black-alpha-80)}.overlay.mask100{background:var(--color-black)}.controls{position:absolute;inset:0;opacity:1;visibility:visible}.controls.hidden{opacity:0;transition:opacity 1s ease-out;cursor:none}.lower-controls-area{position:absolute;bottom:0;width:100%;background:var(--color-black-alpha-70);background:linear-gradient(0deg,var(--color-black-alpha-70) 0%,transparent 100%);height:var(--ump-lower-controls-height);display:flex;flex-direction:column;justify-content:flex-end;padding:var(--spacing-s) var(--spacing-m)}.buttons{display:flex;align-items:center;gap:var(--spacing-xs);width:100%;z-index:10}.buttons .btn.tooltip{--tooltip-gap:var(--spacing-xxxl)}.time{color:var(--color-neutral-foreground-2);flex-grow:1;-webkit-user-select:none;user-select:none;text-align:left}.volume-menu{box-sizing:border-box;position:absolute;left:50%;bottom:100%;transform:translateX(-50%);z-index:100;opacity:0;transition:opacity var(--duration-faster) var(--curve-easy-ease);pointer-events:none;width:100%}.volume-container{position:relative}.volume-container:hover .volume-menu,.volume-container:focus .volume-menu,.volume-container:focus-visible .volume-menu,.volume-container.focused .volume-menu{display:block;opacity:1;pointer-events:auto}.seekbar{width:100%;height:var(--size-5)}.seekbar.slider.tooltip{--tooltip-gap:var(--spacing-s);--tooltip-width:var(--size-6);--tooltip-pointer-x:0px;--tooltip-left:clamp(calc(var(--tooltip-width) / 2),var(--tooltip-pointer-x),calc(100% - var(--tooltip-width) / 2));text-align:center}.volume-menu-slider-container{z-index:100;background-color:var(--color-grey-10-alpha-90);border-radius:var(--border-radius-large);height:var(--size-28);display:flex;justify-content:center;padding:var(--spacing-s) 0;position:relative}.volume-slider{width:var(--size-6);outline:border 1px orange}.volume-tooltip{position:absolute !important;width:100%;inset:0;margin-top:var(--size-5);margin-bottom:var(--size-5)}.volume-tooltip::before{--tooltip-top:auto;--tooltip-left:100%;--tooltip-right:auto;--tooltip-translate-x:10%;--tooltip-translate-y:50%;--tooltip-bottom:var(--ump-slide-percentage);--tooltip-width:var(--size-7);margin-left:var(--spacing-xs);text-align:center}.volume-menu-spacer{height:var(--size-8);width:100%}@media (forced-colors:active){.time{color:ButtonText}} `],oO([Xe("#play-button")],sO.prototype,"playButton",2),oO([Xe("ump-more-menu")],sO.prototype,"moreMenu",2),oO([Xe("ump-audio-menu")],sO.prototype,"audioMenu",2),oO([Xe("ump-caption-menu")],sO.prototype,"captionMenu",2),oO([Xe("ump-settings-menu")],sO.prototype,"settingsMenu",2),oO([Xe("ump-share-dialog")],sO.prototype,"shareDialog",2),oO([Xe(".volume-container")],sO.prototype,"volumeContainer",2),oO([E({context:_R,subscribe:!0})],sO.prototype,"playerState",2),sO=oO([rt(),$e("ump-control-bar")],sO);const uO="menu";var cO=Object.defineProperty,lO=Object.getOwnPropertyDescriptor,dO=(e,t,n,r)=>{for(var i,a=r>1?void 0:r?lO(t,n):t,o=e.length-1;o>=0;o--)(i=e[o])&&(a=(r?i(t,n,a):i(a))||a);return r&&a&&cO(t,n,a),a};let fO=class extends Be{constructor(){super(...arguments),this.type="normal",this.checked=!1,this.submenu=null,this.focusable=!0,this.isFocused=!1,this.onFocusIn=()=>{this.isFocused=!0},this.onFocusOut=()=>{this.isFocused=!1}}get tabindex(){var e;return this.focusable&&(null!=(e=this.playerState)&&e.disableKeyboardEvents||this.isFocused)?0:-1}render(){return Te`
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focusin",this.onFocusIn),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.onFocusIn),this.removeEventListener("focusout",this.onFocusOut)}isBackButton(){return this.submenu===JR}updated(e){(e.has("type")||e.has("checked"))&&this.updateAriaAttributes(),e.has("isFocused")&&this.requestUpdate("tabindex")}updateAriaAttributes(){this.setAttribute("role","radio"===this.type?"menuitemradio":"menuitem"),"radio"===this.type?this.setAttribute("aria-checked",this.checked?"true":"false"):this.removeAttribute("aria-checked")}static isMenuItem(e){return e instanceof HTMLElement&&"ump-menu-item"===e.tagName.toLowerCase()}};fO.styles=[j` .menu-item{display:flex;align-items:center;justify-content:flex-start;gap:var(--spacing-s);margin:0;box-sizing:border-box;padding:var(--spacing-s) var(--spacing-xs);border-radius:var(--border-radius-medium);color:var(--color-neutral-foreground-1);font-weight:var(--font-weight-regular);line-height:var(--line-height-base-300);transition-duration:var(--duration-faster);transition-property:background,color;transition-timing-function:var(--curve-easy-ease);cursor:pointer;-webkit-user-select:none;user-select:none;background-color:transparent}.menu-item-check-mark{stroke:currentcolor;justify-content:center;align-items:center;display:none;visibility:hidden}.menu-item-radio .menu-item-check-mark{display:flex}.menu-item-checked .menu-item-check-mark{visibility:visible}.menu-item-chevron{stroke:currentcolor;visibility:hidden;display:flex;justify-content:center;align-items:center}.menu-item-has-submenu .menu-item-chevron{visibility:visible}.menu-item-chevron-left{display:none;justify-content:center;align-items:center;stroke:currentcolor}.menu-item-back-button .menu-item-chevron-left{display:flex}slot:not([name]){display:flex;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;gap:var(--spacing-s);flex-grow:1}slot[name='prefix']{flex:0 0 auto;display:flex;align-items:center;stroke:currentcolor}slot[name='prefix']::slotted(*){display:contents}slot[name='suffix']{flex:0 0 auto;display:flex;align-items:center;stroke:currentcolor}:host(:hover) .menu-item{background-color:var(--color-white-alpha-10);color:var(--color-neutral-foreground-2-hover)}:host(:active) .menu-item{background-color:var(--color-white-alpha-5);color:var(--color-neutral-foreground-2-pressed)}:host(.focus-always:focus) .menu-item,:host(.focus-default:focus-visible) .menu-item{outline:var(--stroke-width-thick) solid var(--color-stroke-focus-2);border:none}:host(.cc-style-menu-item:hover) .menu-item,:host(.cc-style-menu-item:active) .menu-item{background-color:initial}@media (forced-colors:active){.menu-item{forced-color-adjust:none;color:ButtonText}:host(:hover) .menu-item{background-color:Highlight;color:HighlightText}:host(.focus-default:focus-visible) .menu-item,:host(.cc-style-menu-item:active) .menu-item{outline:var(--stroke-width-thick) solid Highlight}:host(.cc-style-menu-item:hover) .menu-item,:host(.cc-style-menu-item:active) .menu-item{color:ButtonText}} `],dO([qe({attribute:!0})],fO.prototype,"type",2),dO([qe({attribute:!0,type:Boolean,reflect:!0})],fO.prototype,"checked",2),dO([qe({attribute:!0,type:String})],fO.prototype,"submenu",2),dO([E({context:_R,subscribe:!0})],fO.prototype,"playerState",2),dO([qe({type:Boolean})],fO.prototype,"focusable",2),dO([qe({type:Number,reflect:!0})],fO.prototype,"tabindex",1),dO([qe({type:Boolean})],fO.prototype,"isFocused",2),fO=dO([$e("ump-menu-item")],fO);var pO=Object.defineProperty,hO=Object.getOwnPropertyDescriptor,gO=(e,t,n,r)=>{for(var i,a=r>1?void 0:r?hO(t,n):t,o=e.length-1;o>=0;o--)(i=e[o])&&(a=(r?i(t,n,a):i(a))||a);return r&&a&&pO(t,n,a),a};let vO=class extends Be{render(){return this.isActive()?Te``:null}getMenuItems(){return Array.from(this.querySelectorAll('[role="menuitemradio"],[role="menuitem"]'))}isActive(){return!this.menuContext.history.length&&!this.id||this.menuContext.history[this.menuContext.history.length-1]===this.id}};gO([E({context:uO,subscribe:!0}),Ke()],vO.prototype,"menuContext",2),vO=gO([$e("ump-submenu")],vO);var mO=Object.defineProperty,yO=Object.getOwnPropertyDescriptor,bO=(e,t,n,r)=>{for(var i,a=r>1?void 0:r?yO(t,n):t,o=e.length-1;o>=0;o--)(i=e[o])&&(a=(r?i(t,n,a):i(a))||a);return r&&a&&mO(t,n,a),a};let wO=class extends Be{constructor(){super(...arguments),this.role="menu",this.menuContext={history:[]}}render(){return Te``}async onClick(e){const t=wO.findSubmenuId(e.composedPath());t&&(e.stopPropagation(),t===JR?this.pop():this.push(t),await this.updateComplete,this.focusFirstItem())}onKeyDown(e){if(!this.playerState.disableKeyboardEvents)if(" "===e.key||"Enter"===e.key){const t=this.getActiveItem();t&&(e.preventDefault(),e.stopPropagation(),t.click())}else if("ArrowDown"===e.key||"ArrowUp"===e.key||"Home"===e.key||"End"===e.key){e.preventDefault(),e.stopPropagation();const t=this.getMenuItems();let n=t.findIndex((e=>0===e.tabIndex));"ArrowDown"===e.key?n+=1:"ArrowUp"===e.key?n-=1:"Home"===e.key?n=0:"End"===e.key&&(n=t.length-1),n>=t.length&&(n=0),n<0&&(n=t.length-1),this.setActiveIndex(n)}}focusFirstItem(){this.setActiveIndex(0)}focusLastItem(){this.setActiveIndex(this.getMenuItems().length-1)}setActiveIndex(e){var t;null==(t=this.getMenuItems()[e])||t.focus()}getMenuItems(){const e=this.defaultSlot.assignedElements({flatten:!0}).filter((e=>fO.isMenuItem(e)));if(e.length)return e;const t=this.defaultSlot.assignedElements({flatten:!0}).find((e=>e instanceof vO&&e.isActive()));return(null==t?void 0:t.getMenuItems())??[]}getActiveItem(){return this.getMenuItems().find((e=>0===e.tabIndex))}pop(){this.menuContext={...this.menuContext,history:this.menuContext.history.slice(0,-1)}}push(e){this.menuContext={...this.menuContext,history:[...this.menuContext.history,e]}}clearHistory(){this.menuContext={...this.menuContext,history:[]}}static findSubmenuId(e){for(const t of e)if(t instanceof HTMLElement){const e=t.getAttribute("submenu");if(e)return e}}};wO.styles=[j` :host{border-radius:var(--border-radius-x-large);overflow:hidden}slot{display:flex;flex-direction:column;overflow:hidden auto;border:none;padding:var(--spacing-s);background-color:var(--color-grey-10-alpha-90);box-shadow:var(--shadow-4)}@container universalmediaplayer (min-width:0){slot{max-height:calc(100cqh - var(--ump-lower-controls-height))}}@media (forced-colors:active){slot{background-color:var(--color-grey-10)}} `],bO([E({context:_R,subscribe:!0})],wO.prototype,"playerState",2),bO([qe({reflect:!0})],wO.prototype,"role",2),bO([Xe("slot")],wO.prototype,"defaultSlot",2),bO([function({context:e}){return(t,n)=>{const r=new WeakMap;if("object"==typeof n)return n.addInitializer((function(){r.set(this,new _(this,{context:e}))})),{get(){return t.get.call(this)},set(e){return r.get(this)?.setValue(e),t.set.call(this,e)},init(e){return r.get(this)?.setValue(e),e}};{t.constructor.addInitializer((t=>{r.set(t,new _(t,{context:e}))}));const i=Object.getOwnPropertyDescriptor(t,n);let a;if(void 0===i){const e=new WeakMap;a={get(){return e.get(this)},set(t){r.get(this).setValue(t),e.set(this,t)},configurable:!0,enumerable:!0}}else{const e=i.set;a={...i,set(t){r.get(this).setValue(t),e?.call(this,t)}}}return void Object.defineProperty(t,n,a)}}}({context:uO}),Ke()],wO.prototype,"menuContext",2),wO=bO([$e("ump-menu")],wO);Object.defineProperty,Object.getOwnPropertyDescriptor;let xO=class extends Be{render(){return Te` `}};xO.styles=j` :host{display:flex;justify-content:flex-end;padding:var(--spacing-s);gap:var(--spacing-s)}:host(:focus),:host(:focus-visible){outline:none}.footer-button{display:inline-flex;border-radius:var(--border-radius-medium)}.footer-button:hover{background-color:var(--color-neutral-background-1-hover);border-color:transparent;color:var(--color-neutral-foreground-1-hover)}:host(:focus) .footer-button,:host(:focus-visible) .footer-button{outline:var(--stroke-width-thick) solid var(--color-stroke-focus-2);outline-offset:calc(var(--stroke-width-thick) * -1);border:none}@media (forced-colors:active){.footer-button{forced-color-adjust:none}} `,xO=((e,t,n,r)=>{for(var i,a=t,o=e.length-1;o>=0;o--)(i=e[o])&&(a=i(a)||a);return a})([$e("ump-menu-footer")],xO);Object.defineProperty,Object.getOwnPropertyDescriptor;let SO=class extends Be{render(){return Te` `}};SO.styles=j` :host{display:flex;padding:var(--spacing-s);gap:var(--spacing-s)}.default-slot{flex-grow:1;display:flex;align-items:center;justify-content:flex-start;margin:0;box-sizing:border-box;border-radius:var(--border-radius-medium);color:var(--color-neutral-foreground-1);font-weight:var(--font-weight-semibold);line-height:var(--line-height-base-300);-webkit-user-select:none;user-select:none;background-color:transparent}@media (forced-colors:active){.default-slot{color:ButtonText}} `,SO=((e,t,n,r)=>{for(var i,a=t,o=e.length-1;o>=0;o--)(i=e[o])&&(a=i(a)||a);return a})([$e("ump-menu-label")],SO);var TO=Object.defineProperty,kO=Object.getOwnPropertyDescriptor,CO=(e,t,n,r)=>{for(var i,a=r>1?void 0:r?kO(t,n):t,o=e.length-1;o>=0;o--)(i=e[o])&&(a=(r?i(t,n,a):i(a))||a);return r&&a&&TO(t,n,a),a};let AO=class extends Be{render(){const{downloadableVideoFiles:e,downloadableTranscriptFiles:t,shareOptions:n}=this.playerState,r=0===t.length&&0===e.length;return r&&0===n.length?null:Te` ${!r&&this.playerState.showDownloadMenu?Te` ${At('')} ${Ze("Download")} `:null} ${n.length>0?Te` ${At('')} ${Ze("Share")} `:null} ${Ze("Download")} ${e.length>0?Te` ${Ze("Video")} `:null} ${t.length>0?Te` ${Ze("Transcript")} `:null} ${Ze("Download Video")} ${e.map((e=>Te` ${e.locale} `))} ${Ze("Download Transcript")} ${t.map((e=>Te`${e.locale}`))} `}onShareClicked(){this.dispatchEvent(new eN("share-clicked"))}onDownloadClicked(e){return()=>{this.dispatchEvent(new eN("download-file-clicked",e))}}get opened(){var e;return null==(e=this.popup)?void 0:e.opened}};AO.styles=[nN,rN,iN,j` .btn.tooltip{--tooltip-gap:var(--spacing-xxxl)}ump-popup{--ump-popup-spacing:var(--spacing-xxxl)}ump-menu{width:var(--size-64);display:block} `],CO([Xe("ump-popup")],AO.prototype,"popup",2),CO([E({context:_R,subscribe:!0})],AO.prototype,"playerState",2),AO=CO([$e("ump-more-menu")],AO);var EO=Object.defineProperty,IO=Object.getOwnPropertyDescriptor,MO=(e,t,n,r)=>{for(var i,a=r>1?void 0:r?IO(t,n):t,o=e.length-1;o>=0;o--)(i=e[o])&&(a=(r?i(t,n,a):i(a))||a);return r&&a&&EO(t,n,a),a};let _O=class extends Be{constructor(){super(...arguments),this._opened=!1,this.popupAriaLabel="",this.documentMouseDown=e=>{e.composedPath().includes(this)||this.close()},this.documentKeyDown=e=>{!e.composedPath().includes(this)&&(" "===e.key||"Enter"===e.key)&&this.close()}}render(){return Te` `}show(){this._opened=!0,this.updateAccessibleTrigger(),document.addEventListener("mousedown",this.documentMouseDown),document.addEventListener("keydown",this.documentKeyDown),this.dispatchEvent(new eN("ump-popup-changed"))}close(){var e;this.dialog.close(),this._opened=!1,this.updateAccessibleTrigger(),document.removeEventListener("mousedown",this.documentMouseDown),document.removeEventListener("keydown",this.documentKeyDown),this.dispatchEvent(new eN("ump-popup-changed")),null==(e=this.getMenu())||e.clearHistory()}get opened(){return this._opened}updateAccessibleTrigger(){const e=this.getTriggerElement();e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded",this._opened?"true":"false")}focusTrigger(){this.getTriggerElement().focus()}getTriggerElement(){return this.trigger.assignedElements({flatten:!0})[0]}getMenu(){return this.popupPanel.assignedElements({flatten:!0}).find((e=>"ump-menu"===e.tagName.toLowerCase()))}onClick(e){e.composedPath().find((e=>fO.isMenuItem(e)))&&this.close()}onClicked(){this._opened?this.close():this.show()}onSlotChanged(){this.updateAccessibleTrigger()}async onKeyDown(e){if(!this.playerState.disableKeyboardEvents)if("ArrowDown"===e.key||"ArrowUp"===e.key||"Home"===e.key||"End"===e.key){e.preventDefault(),this._opened||(this.show(),await this.updateComplete);const t=this.getMenu();if(!t)return;"ArrowUp"===e.key||"End"===e.key?t.focusLastItem():t.focusFirstItem()}else"Escape"===e.key&&(this.focusTrigger(),this.close())}dialogKeyDown(e){this.playerState.disableKeyboardEvents||("Escape"===e.key||"Tab"===e.key)&&this._opened&&(e.preventDefault(),this.close(),this.focusTrigger())}};_O.styles=j` :host{--ump-popup-spacing:var(--spacing-s)}.popup-container{position:relative}dialog{display:none;padding:0;border:none;outline:none;background-color:transparent;position:absolute;left:100%;bottom:100%;transform:translateX(-100%);margin-bottom:var(--ump-popup-spacing)}dialog[open]{display:block}@container universalmediaplayer (max-width:450px){.popup-container{position:unset}dialog{bottom:15cqh;left:98cqw}} `,MO([Xe("dialog")],_O.prototype,"dialog",2),MO([E({context:_R,subscribe:!0})],_O.prototype,"playerState",2),MO([Ke()],_O.prototype,"_opened",2),MO([qe({type:String})],_O.prototype,"popupAriaLabel",2),MO([Xe('slot[name="trigger"]')],_O.prototype,"trigger",2),MO([Xe(".popup-panel")],_O.prototype,"popupPanel",2),_O=MO([$e("ump-popup")],_O);var PO=Object.defineProperty,DO=Object.getOwnPropertyDescriptor,LO=(e,t,n,r)=>{for(var i,a=r>1?void 0:r?DO(t,n):t,o=e.length-1;o>=0;o--)(i=e[o])&&(a=(r?i(t,n,a):i(a))||a);return r&&a&&PO(t,n,a),a};let RO=class extends Be{render(){var e,t;let n,r;for(const e of this.playerState.videoQualities)e.videoId===this.playerState.activeVideoQualityId&&(n=e),e.videoId===this.playerState.selectedVideoQualityId&&(r=e);const i=null==(e=this.playerState.playbackRates.find((e=>e.value===this.playerState.playbackRate)))?void 0:e.label;return this.playerState.playbackRates.length<2&&this.playerState.videoQualities.length<2?null:Te` this.requestUpdate()} > ${this.playerState.playbackRates.length>=2?Te` ${At('')} ${Ze("Playback rate")} ${i} `:null} ${this.playerState.showQualityMenu&&this.playerState.videoQualities.length>=2?Te` ${At('')} ${Ze("Quality")} ${null==r?void 0:r.label} ${n&&(null==r?void 0:r.videoId)===zR.videoId?Te`${n.label}`:null} `:null} ${Ze("Playback rate")} ${this.playerState.playbackRates.map((e=>Te` ${e.label} `))} ${Ze("Quality")} ${this.playerState.videoQualities.map((e=>Te` ${e.label} `))} `}onQualitySelected(e){return()=>{this.dispatchEvent(new eN("video-quality-clicked",e)),this.dispatchEvent(new eN("videoqualitychanged"))}}playbackRateClicked(e){return()=>{this.dispatchEvent(new eN("playback-rate-clicked",e))}}get opened(){var e;return null==(e=this.popup)?void 0:e.opened}};function NO(e,t,n){return(n-e)/(t-e)}RO.styles=[nN,rN,iN,j` .btn.tooltip{--tooltip-gap:var(--spacing-xxxl)}ump-popup{--ump-popup-spacing:var(--spacing-xxxl)}ump-menu{width:var(--size-64);display:block}.quality-label{font-weight:var(--font-weight-semibold)} `],LO([Xe("ump-popup")],RO.prototype,"popup",2),LO([E({context:_R,subscribe:!0})],RO.prototype,"playerState",2),RO=LO([$e("ump-settings-menu")],RO);var OO=Object.defineProperty,UO=Object.getOwnPropertyDescriptor,jO=(e,t,n,r)=>{for(var i,a=r>1?void 0:r?UO(t,n):t,o=e.length-1;o>=0;o--)(i=e[o])&&(a=(r?i(t,n,a):i(a))||a);return r&&a&&OO(t,n,a),a};let FO=class extends Be{constructor(){super(...arguments),this.min=0,this.max=1,this.value=0,this.step=.005,this.focusStep=1,this.orientation="horizontal",this.sliderarialabel="",this.sliderAriaValueText="",this.ranges=[],this.onInputChange=e=>{this.value=Number(e.target.value)},this.onInputFocusIn=e=>{const t=e.target;t.matches(":focus-visible")&&(t.step=this.focusStep.toString())},this.onInputFocusOut=e=>{e.target.step=this.step.toString()}}render(){return Te` ${this.ranges.map((e=>Te`
`))}
`}updated(e){e.has("value")&&(this.inputElement.value=this.value.toString()),(e.has("value")||e.has("min")||e.has("max"))&&this.updateSliderThumb()}updateSliderThumb(){const e=NO(this.min,this.max,this.value);this.style.setProperty("--ump-slide-percentage",100*e+"%")}};FO.styles=[j` :host{--ump-slider-track-thickness:var(--size-1);--ump-slider-track-color:var(--color-white-alpha-20);--ump-slider-thumb-inline-size:var(--size-5);--ump-slider-thumb-block-size:var(--size-3);--ump-half-slider-thumb-inline-size:calc(var(--ump-slider-thumb-inline-size) / 2);--ump-half-slider-thumb-block-size:calc(var(--ump-slider-thumb-block-size) / 2);--ump-slider-thumb-color:var(--color-neutral-foreground-1);--ump-slider-progress-color:var(--color-neutral-foreground-1);--ump-slider-range-color:var(--color-white-alpha-30);--ump-slide-percentage:0%;--ump-slider-padding:var(--spacing-xs);position:relative;display:block;writing-mode:horizontal-tb;z-index:10}:host(:hover){--ump-slider-thumb-transform:scale(1);--ump-slider-track-thickness:var(--size-1-5)}:host([orientation='vertical']){writing-mode:vertical-lr;direction:rtl;-webkit-appearance:none;appearance:none}*{box-sizing:border-box;margin:0;padding:0}.input{-webkit-appearance:none;appearance:none;background:transparent;display:block;cursor:pointer;border-radius:var(--border-radius-medium);color:var(--color-neutral-foreground-1);padding-block:var(--ump-slider-padding);position:absolute;inset:0}.input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;block-size:var(--ump-slider-thumb-block-size);inline-size:var(--ump-slider-thumb-inline-size);border-radius:var(--border-radius-circular);background-color:transparent}.input::-moz-range-thumb{appearance:none;background-color:transparent;border:none;block-size:var(--ump-slider-thumb-block-size);inline-size:var(--ump-slider-thumb-inline-size)}.input.focus-always:focus,.input.focus-default:focus-visible{outline:var(--stroke-width-thick) solid var(--color-stroke-focus-2)}.thumb{pointer-events:none;position:absolute;inset:0;display:grid;align-items:center;margin-inline:var(--ump-half-slider-thumb-inline-size) var(--ump-half-slider-thumb-inline-size)}.thumb::after{position:absolute;z-index:50;inline-size:var(--ump-slider-thumb-inline-size);block-size:var(--ump-slider-thumb-block-size);margin-inline-start:calc(var(--ump-slide-percentage) - var(--ump-half-slider-thumb-inline-size));margin-block-start:self-block;background-color:var(--ump-slider-thumb-color);border-radius:var(--border-radius-circular);transform:var(--ump-slider-thumb-transform);display:block;transition:transform var(--duration-faster) var(--curve-easy-ease);transform-origin:center;content:''}.track{z-index:10;position:absolute;inset:0;overflow:hidden;pointer-events:none;display:flex;align-items:center}.track::before{content:'';background-color:var(--ump-slider-track-color);inline-size:100%;block-size:var(--ump-slider-track-thickness);position:absolute;border-radius:var(--border-radius-circular);transition:block-size var(--duration-faster) var(--curve-easy-ease)}.range{position:absolute;background-color:var(--ump-slider-range-color);height:var(--ump-slider-track-thickness);width:0;pointer-events:none;z-index:20;top:50%;transform:translateY(-50%);border-radius:var(--border-radius-circular);transition:height var(--duration-faster) var(--curve-easy-ease)}.progress{position:absolute;z-index:40;inset:0;display:flex;align-items:center;margin-inline:var(--ump-half-slider-thumb-inline-size);pointer-events:none}.progress::before{content:'';position:absolute;display:block;block-size:var(--ump-slider-track-thickness);inline-size:var(--ump-slide-percentage);background:var(--ump-slider-progress-color);transition:block-size var(--duration-faster) var(--curve-easy-ease)}.progress::after{content:'';position:absolute;display:block;block-size:var(--ump-slider-track-thickness);inline-size:var(--ump-half-slider-thumb-inline-size);margin-inline-start:calc(-1 * var(--ump-half-slider-thumb-inline-size));border-start-start-radius:var(--border-radius-circular);border-end-start-radius:var(--border-radius-circular);background:var(--ump-slider-progress-color);transition:block-size var(--duration-faster) var(--curve-easy-ease)}@media (forced-colors:active){:host{--ump-slider-track-color:ButtonText;--ump-slider-progress-color:Highlight}.thumb::after{background:Highlight}} `],jO([qe({type:Number,attribute:!0})],FO.prototype,"min",2),jO([qe({type:Number,attribute:!0})],FO.prototype,"max",2),jO([qe({type:Number,attribute:!0,reflect:!0})],FO.prototype,"value",2),jO([qe({type:Number,attribute:!0})],FO.prototype,"step",2),jO([qe({type:Number,attribute:!0})],FO.prototype,"focusStep",2),jO([qe({type:String,attribute:!0})],FO.prototype,"orientation",2),jO([qe({type:String,attribute:!0})],FO.prototype,"sliderarialabel",2),jO([qe({type:String,attribute:!0})],FO.prototype,"sliderAriaValueText",2),jO([qe({type:Array})],FO.prototype,"ranges",2),jO([Xe("input")],FO.prototype,"inputElement",2),jO([E({context:_R,subscribe:!0})],FO.prototype,"playerState",2),FO=jO([$e("ump-slider")],FO);var BO=Object.defineProperty,VO=Object.getOwnPropertyDescriptor,$O=(e,t,n,r)=>{for(var i,a=r>1?void 0:r?VO(t,n):t,o=e.length-1;o>=0;o--)(i=e[o])&&(a=(r?i(t,n,a):i(a))||a);return r&&a&&BO(t,n,a),a};let zO=class extends Be{constructor(){super(...arguments),this.userActive=!0}render(){var e;return Te`
${this.renderControls()}
`}renderControls(){return"bigplaybutton"===this.playerState.controlsState?Te``:"controlbar"===this.playerState.controlsState?Te``:void 0}onUserInteraction(){this.userActive=!0,this.userInteractionTimeout&&clearTimeout(this.userInteractionTimeout),this.userInteractionTimeout=setTimeout((()=>{this.userActive=!1}),3e3)}onControlsMouseDown(e){e.target===this.controlsContainer&&0===e.button&&this.dispatchEvent(new eN("controls-clicked")),this.onUserInteraction()}onControlsTouchStart(e){e.target===this.controlsContainer&&(e.preventDefault(),e.stopPropagation(),this.userActive&&this.dispatchEvent(new eN("controls-clicked")),this.onUserInteraction())}disconnectedCallback(){super.disconnectedCallback(),this.userInteractionTimeout&&clearTimeout(this.userInteractionTimeout)}};function HO(e){const t=[];return{addEventListener(n,r,i){const a=function(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}(e,n,r,i);t.push(a)},removeAllListeners(){t.forEach((e=>e()))}}}zO.styles=j` .controls{position:absolute;inset:0;opacity:1;visibility:visible}.controls.hidden{opacity:0;transition:opacity 1s ease-out;cursor:none}ump-big-play-button{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.controls.loading ump-big-play-button{opacity:0} `,$O([Xe(".controls")],zO.prototype,"controlsContainer",2),$O([Xe("ump-control-bar")],zO.prototype,"controlBar",2),$O([E({context:_R,subscribe:!0})],zO.prototype,"playerState",2),$O([Ke()],zO.prototype,"userActive",2),zO=$O([rt(),$e("ump-controls")],zO);var qO=(e=>(e.PlayerLoadDurationMs="playerLoadDurationMs",e.BufferDurationMs="bufferDurationMs",e.InitialPlaybackStartDurationMs="initialPlaybackStartDurationMs",e.PosterImageLoadDurationMs="posterImageLoadDurationMs",e))(qO||{}),KO=(e=>(e.BufferComplete="BufferComplete",e.CommonPlayerImpression="CommonPlayerImpression",e.ContentCheckpoint="ContentCheckpoint",e.ContentComplete="ContentComplete",e.ContentError="ContentError",e.FullScreenEnter="FullScreenEnter",e.FullScreenExit="FullScreenExit",e.InviewEnter="InviewEnter",e.InviewExit="InviewExit",e.Mute="Mute",e.Pause="Pause",e.Play="Play",e.PlayerError="PlayerError",e.Replay="Replay",e.Resume="Resume",e.Seek="Seek",e.Unmute="Unmute",e.VideoAudioTrackControl="VideoAudioTrackControl",e.VideoPlayerClick="VideoPlayerClick",e))(KO||{});class GO{constructor(e,t,n=!1,r){this.reporterName="Reporter",this._playerInfo=e,this._player=t,this._isDebugMode=n,r&&(this.reporterName=r)}log(e){this._isDebugMode&&console.log(JSON.stringify(e),this.reporterName)}get playerInfo(){return this._playerInfo}set playerInfo(e){this._playerInfo=e}reportNominalMetric(e,t){if(this.shouldEmitNominalMetric(e)){const n=this.formatNominalMetric(e,this.getBaseTelemetryData(),t);this.log(n),this.emitTelemetry(n)}}reportNumericMetric(e,t){if(this.shouldEmitNumericMetric(e)){const n=this.formatNumericMetric(e,t,this.getBaseTelemetryData());this.log(n),this.emitTelemetry(n)}}reportError(e){if(this.shouldEmitError(e.errorType)){const t=this.formatError(e,this.getBaseTelemetryData());this.log(t),this.emitTelemetry(t)}}getBaseTelemetryData(){var e;return{playerInstanceId:this._playerInfo.playerInstanceId,playerCommit:this._playerInfo.playerCommit,playerVersionNumber:this._playerInfo.playerVersionNumber,playerUrl:this._playerInfo.playerUrl,title:this._playerInfo.title,videoId:this._playerInfo.videoId,videoElapsedTime:this._player.currentTime,videoDuration:this._player.duration,language:this._player.options.language,playerState:{autoplay:null==(e=this._player)?void 0:e.autoplay,muted:this._player.muted,loop:this._player.loop}}}}class XO extends GO{constructor(e,t,n=!1){super(e,t,n,"AppInsightsReporter"),this.hasEmittedFirstNonUmpMessage=!1,this.playerTech="shaka",this.formatNominalMetric=()=>{throw new Error("Unsupported by AppInsights reporter.")},this.shouldEmitNominalMetric=()=>!1,this.shouldEmitNumericMetric=e=>Object.values(qO).includes(e),this.shouldEmitError=()=>!0,this.isException=e=>void 0!==e.exception;try{this._appInsights=this.initAppInsights()}catch(e){n&&console.error("Error Initializing AppInsights.",e)}}initAppInsights(){const e=new MR({config:{connectionString:"InstrumentationKey=81bc6725-8164-4f38-93f8-ea681394304b;IngestionEndpoint=https://westus2-2.in.applicationinsights.azure.com/;LiveEndpoint=https://westus2.livediagnostics.monitor.azure.com/;ApplicationId=ef77fed2-4fcc-4568-aed4-b87c867a1e21",disableAjaxTracking:!0,disableExceptionTracking:!0,disableFetchTracking:!0,disableCorrelationHeaders:!0,disableCookiesUsage:!0}});return e.loadAppInsights(),e.addTelemetryInitializer(this.telemetryInitializer.bind(this)),e}telemetryInitializer(e){return e.baseData=e.baseData||{},e.baseData.properties={...e.baseData.properties,playerInstanceId:this._playerInfo.playerInstanceId,playerVersionNumber:this._playerInfo.playerVersionNumber,uri:window.location.href,partnerName:this._playerInfo.partnerName,playerTech:this.playerTech},document.referrer&&document.referrer!==window.location.href&&(e.baseData.properties.referrer=document.referrer),e.baseData.properties.ump?(delete e.baseData.properties.ump,!0):(e.baseData.properties.nonump=!0,!this.hasEmittedFirstNonUmpMessage&&(this.hasEmittedFirstNonUmpMessage=!0,!0))}emitTelemetry(e){var t,n;this.isException(e)?null==(t=this._appInsights)||t.trackException(e):null==(n=this._appInsights)||n.trackMetric({name:e.name,average:e.average,properties:e.properties})}formatNumericMetric(e,t,n){return{name:e,average:t,properties:{playerUrl:n.playerUrl,language:n.language,ump:!0}}}formatError(e,t){return{exception:Object.assign(new Error(e.errorDescription),{name:e.errorType}),properties:{playerUrl:t.playerUrl,language:t.language,errorMessage:e.errorDescription,ump:!0}}}}var WO=(e=>(e[e.VideoSeen=239]="VideoSeen",e[e.VideoStart=240]="VideoStart",e[e.VideoPause=241]="VideoPause",e[e.VideoContinue=242]="VideoContinue",e[e.VideoCheckpoint=243]="VideoCheckpoint",e[e.VideoJump=244]="VideoJump",e[e.VideoComplete=245]="VideoComplete",e[e.VideoBuffering=246]="VideoBuffering",e[e.VideoError=247]="VideoError",e[e.VideoMute=248]="VideoMute",e[e.VideoUnmute=249]="VideoUnmute",e[e.VideoFullscreen=250]="VideoFullscreen",e[e.VideoUnfullscreen=251]="VideoUnfullscreen",e[e.VideoReplay=252]="VideoReplay",e[e.VideoPlayerLoad=253]="VideoPlayerLoad",e[e.VideoPlayerClick=254]="VideoPlayerClick",e[e.VideoVolumeControl=255]="VideoVolumeControl",e[e.VideoAudioTrackControl=256]="VideoAudioTrackControl",e[e.VideoClosedCaptionControl=257]="VideoClosedCaptionControl",e[e.VideoClosedCaptionStyle=258]="VideoClosedCaptionStyle",e[e.VideoResolutionControl=259]="VideoResolutionControl",e[e.VideoUndefinedEvent=0]="VideoUndefinedEvent",e))(WO||{});const YO={243:{actionType:"A",telemetryMethodType:"capturePageAction"},245:{actionType:"A",telemetryMethodType:"capturePageAction"},246:{actionType:"A",telemetryMethodType:"captureContentUpdate"},253:{actionType:"A",telemetryMethodType:"captureContentUpdate"},239:{actionType:"O",telemetryMethodType:"captureContentUpdate"},0:{actionType:"O",telemetryMethodType:"captureContentUpdate"},247:{actionType:"O",telemetryMethodType:"captureContentUpdate"},252:{actionType:"CL",telemetryMethodType:"capturePageAction"},240:{actionType:"CL",telemetryMethodType:"capturePageAction"},241:{actionType:"CL",telemetryMethodType:"capturePageAction"},242:{actionType:"CL",telemetryMethodType:"capturePageAction"},244:{actionType:"CL",telemetryMethodType:"capturePageAction"},248:{actionType:"CL",telemetryMethodType:"capturePageAction"},249:{actionType:"CL",telemetryMethodType:"capturePageAction"},250:{actionType:"CL",telemetryMethodType:"capturePageAction"},251:{actionType:"CL",telemetryMethodType:"capturePageAction"},254:{actionType:"CL",telemetryMethodType:"capturePageAction"},255:{actionType:"CL",telemetryMethodType:"capturePageAction"},256:{actionType:"CL",telemetryMethodType:"capturePageAction"},257:{actionType:"CL",telemetryMethodType:"capturePageAction"},258:{actionType:"CL",telemetryMethodType:"capturePageAction"},259:{actionType:"CL",telemetryMethodType:"capturePageAction"}},JO={BufferComplete:WO.VideoBuffering,CommonPlayerImpression:WO.VideoPlayerLoad,ContentCheckpoint:WO.VideoCheckpoint,ContentComplete:WO.VideoComplete,ContentError:WO.VideoError,FullScreenEnter:WO.VideoFullscreen,FullScreenExit:WO.VideoUnfullscreen,InviewEnter:WO.VideoSeen,Mute:WO.VideoMute,Pause:WO.VideoPause,Play:WO.VideoStart,PlayerError:WO.VideoError,Replay:WO.VideoReplay,Resume:WO.VideoContinue,Seek:WO.VideoJump,Unmute:WO.VideoUnmute,VideoAudioTrackControl:WO.VideoAudioTrackControl,VideoPlayerClick:WO.VideoPlayerClick};class ZO extends GO{constructor(e,t,n=!1){super(e,t,n,"MartechReporter"),this.formatNominalMetric=(e,t,n)=>{const r=JO[e],i=YO[r];return{actionType:null==i?void 0:i.actionType,behavior:r,contentTags:{...this.createContentTags(t),additionalData:n}}},this.formatNumericMetric=()=>{throw new Error("Unsupported by Martech reporter.")},this.formatError=(e,t)=>({actionType:"O",behavior:JO.ContentError,contentTags:{...this.createContentTags(t),errorDetails:e}}),this.shouldEmitNominalMetric=e=>void 0!==JO[e],this.shouldEmitNumericMetric=()=>!1,this.shouldEmitError=()=>!0,this.createContentTags=e=>({playerInstanceId:e.playerInstanceId,containerName:"Universal Media Player",compnm:"Universal Media Player",vidnm:e.title,vidid:e.videoId,vidpct:Math.round(e.videoElapsedTime/e.videoDuration*100),viddur:Math.round(e.videoDuration),vidwt:Math.round(e.videoElapsedTime),playerState:e.playerState})}emitTelemetry(e){var t,n,r,i;const a=window.owap,o=window.awa,{telemetryMethodType:s}=YO[e.behavior];null!=(t=null==a?void 0:a.isInitialized)&&t.call(a)?null==(n=null==a?void 0:a[s])||n.call(a,null,e):!0===(null==o?void 0:o.isInitialized)&&(null==(i=null==(r=null==o?void 0:o.ct)?void 0:r[s])||i.call(r,null,e))}}class QO{constructor(e,t,n,r=!1){this._playerInfo={},this.reporters=[],n&&this.reporters.push(new ZO(e,t,r)),this.sampleInstance()&&this.reporters.push(new XO(e,t,r)),this.playerInfo=e}get playerInfo(){return this._playerInfo}set playerInfo(e){this._playerInfo=e,e.partnerName||console.warn('"partnerName" is undefined and must be provided to the video player options.'),this.reporters.forEach((t=>t.playerInfo=e))}sampleInstance(){return 100*Math.random()<1}reportNominalMetric(e,t){this.reporters.forEach((n=>n.reportNominalMetric(e,t)))}reportNumericMetric(e,t){this.reporters.forEach((n=>n.reportNumericMetric(e,t)))}reportError(e){this.reporters.forEach((t=>t.reportError(e)))}}class eU extends CustomEvent{constructor(e,t){super("error",{bubbles:!0,composed:!1,cancelable:!0,detail:{category:e,message:t}}),this._category=e,this._message=t}get message(){return this._message}get category(){return this._category}}const tU=j` .spinner{background-image:url('${U(`data:image/svg+xml,${encodeURIComponent("\n \n \n \n \n \n \n \n \n").replace(/'/g,"%27").replace(/"/g,"%22")}`)}');background-repeat:no-repeat;background-position:center;background-size:cover;width:var(--size-8);height:var(--size-8)} `;var nU=Object.defineProperty,rU=Object.getOwnPropertyDescriptor,iU=(e,t,n,r)=>{for(var i,a=r>1?void 0:r?rU(t,n):t,o=e.length-1;o>=0;o--)(i=e[o])&&(a=(r?i(t,n,a):i(a))||a);return r&&a&&nU(t,n,a),a};let aU=class extends Be{render(){return"none"!==this.playerState.controlsState&&this.playerState.loading?Te`
`:null}};aU.styles=[tU,j` .spinner{width:var(--size-12);height:var(--size-12)} `],iU([E({context:_R,subscribe:!0})],aU.prototype,"playerState",2),aU=iU([$e("ump-loading-spinner")],aU);const oU=j` :host{--border-radius-none:0;--border-radius-small:2px;--border-radius-medium:4px;--border-radius-large:6px;--border-radius-x-large:8px;--border-radius-circular:10000px;--font-size-base-100:0.625rem;--font-size-base-200:0.75rem;--font-size-base-300:0.875rem;--font-size-base-400:1rem;--font-size-base-500:1.25rem;--font-size-base-600:1.5rem;--font-size-hero-700:1.75rem;--font-size-hero-800:2rem;--font-size-hero-900:2.5rem;--font-size-hero-1000:2.25rem;--font-weight-regular:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--duration-ultra-fast:50ms;--duration-faster:100ms;--duration-fast:150ms;--duration-normal:200ms;--duration-gentle:250ms;--duration-slow:300ms;--duration-slower:400ms;--duration-ultra-slow:500ms;--curve-accelerate-max:cubic-bezier(0.9,0.1,1,0.2);--curve-accelerate-mid:cubic-bezier(1,0,1,1);--curve-accelerate-min:cubic-bezier(0.8,0,0.78,1);--curve-decelerate-max:cubic-bezier(0.1,0.9,0.2,1);--curve-decelerate-mid:cubic-bezier(0,0,0,1);--curve-decelerate-min:cubic-bezier(0.33,0,0.1,1);--curve-easy-ease-max:cubic-bezier(0.8,0,0.2,1);--curve-easy-ease:cubic-bezier(0.33,0,0.67,1);--curve-linear:cubic-bezier(0,0,1,1);--line-height-base-100:0.875rem;--line-height-base-200:1rem;--line-height-base-300:1.25rem;--line-height-base-400:1.375rem;--line-height-base-500:1.75rem;--line-height-base-600:2rem;--line-height-hero-700:2.25rem;--line-height-hero-800:2.5rem;--line-height-hero-900:3.125rem;--line-height-hero-1000:5.75rem;--spacing-none:0;--spacing-xxs:0.125rem;--spacing-xs:0.25rem;--spacing-s-nudge:0.375rem;--spacing-s:0.5rem;--spacing-m-nudge:0.625rem;--spacing-m:0.75rem;--spacing-l:1rem;--spacing-xl:1.25rem;--spacing-xxl:1.5rem;--spacing-xxxl:2rem;--size-0:0px;--size-px:1px;--size-0-5:0.125rem;--size-1:0.25rem;--size-1-5:0.375rem;--size-2:0.5rem;--size-2-5:0.625rem;--size-3:0.75rem;--size-3-5:0.875rem;--size-4:1rem;--size-5:1.25rem;--size-6:1.5rem;--size-7:1.75rem;--size-8:2rem;--size-9:2.25rem;--size-10:2.5rem;--size-11:2.75rem;--size-12:3rem;--size-14:3.5rem;--size-16:4rem;--size-20:5rem;--size-24:6rem;--size-28:7rem;--size-32:8rem;--size-36:9rem;--size-40:10rem;--size-44:11rem;--size-48:12rem;--size-52:13rem;--size-56:14rem;--size-60:15rem;--size-64:16rem;--size-72:18rem;--size-80:20rem;--size-96:24rem;--size-100:30rem;--stroke-width-thin:1px;--stroke-width-thick:2px;--stroke-width-thicker:3px;--stroke-width-thickest:4px;--color-neutral-shadow-ambient:rgb(0 0 0/24%);--color-neutral-shadow-key:rgb(0 0 0/28%);--color-neutral-shadow-ambient-lighter:rgb(0 0 0/12%);--color-neutral-shadow-key-lighter:rgb(0 0 0/14%);--color-neutral-shadow-ambient-darker:rgb(0 0 0/40%);--color-neutral-shadow-key-darker:rgb(0 0 0/48%);--color-brand-shadow-ambient:rgb(0 0 0/30%);--color-brand-shadow-key:rgb(0 0 0/25%);--color-grey-2:#050505;--color-grey-4:#0a0a0a;--color-grey-6:#0f0f0f;--color-grey-8:#141414;--color-grey-10:#1a1a1a;--color-grey-12:#1f1f1f;--color-grey-14:#242424;--color-grey-16:#292929;--color-grey-18:#2e2e2e;--color-grey-20:#333;--color-grey-22:#383838;--color-grey-24:#3d3d3d;--color-grey-26:#424242;--color-grey-28:#474747;--color-grey-30:#4d4d4d;--color-grey-32:#525252;--color-grey-34:#575757;--color-grey-36:#5c5c5c;--color-grey-38:#616161;--color-grey-40:#666;--color-grey-42:#6b6b6b;--color-grey-44:#707070;--color-grey-46:#757575;--color-grey-48:#7a7a7a;--color-grey-50:#808080;--color-grey-52:#858585;--color-grey-54:#8a8a8a;--color-grey-56:#8f8f8f;--color-grey-58:#949494;--color-grey-60:#999;--color-grey-62:#9e9e9e;--color-grey-64:#a3a3a3;--color-grey-66:#a8a8a8;--color-grey-68:#adadad;--color-grey-70:#b3b3b3;--color-grey-72:#b8b8b8;--color-grey-74:#bdbdbd;--color-grey-76:#c2c2c2;--color-grey-78:#c7c7c7;--color-grey-80:#ccc;--color-grey-82:#d1d1d1;--color-grey-84:#d6d6d6;--color-grey-86:#dbdbdb;--color-grey-88:#e0e0e0;--color-grey-90:#e6e6e6;--color-grey-92:#ebebeb;--color-grey-94:#f0f0f0;--color-grey-96:#f5f5f5;--color-grey-98:#fafafa;--color-white:#fff;--color-white-alpha-5:rgb(255 255 255/5%);--color-white-alpha-10:rgb(255 255 255/10%);--color-white-alpha-20:rgb(255 255 255/20%);--color-white-alpha-30:rgb(255 255 255/30%);--color-white-alpha-40:rgb(255 255 255/40%);--color-white-alpha-50:rgb(255 255 255/50%);--color-white-alpha-60:rgb(255 255 255/60%);--color-white-alpha-70:rgb(255 255 255/70%);--color-white-alpha-80:rgb(255 255 255/80%);--color-white-alpha-90:rgb(255 255 255/90%);--color-black:#000;--color-black-alpha-5:rgb(0 0 0/5%);--color-black-alpha-10:rgb(0 0 0/10%);--color-black-alpha-20:rgb(0 0 0/20%);--color-black-alpha-30:rgb(0 0 0/30%);--color-black-alpha-40:rgb(0 0 0/40%);--color-black-alpha-50:rgb(0 0 0/50%);--color-black-alpha-60:rgb(0 0 0/60%);--color-black-alpha-70:rgb(0 0 0/70%);--color-black-alpha-80:rgb(0 0 0/80%);--color-black-alpha-90:rgb(0 0 0/90%);--color-grey-10-alpha-5:rgb(26 26 26/5%);--color-grey-10-alpha-10:rgb(26 26 26/10%);--color-grey-10-alpha-20:rgb(26 26 26/20%);--color-grey-10-alpha-30:rgb(26 26 26/30%);--color-grey-10-alpha-40:rgb(26 26 26/40%);--color-grey-10-alpha-50:rgb(26 26 26/50%);--color-grey-10-alpha-60:rgb(26 26 26/60%);--color-grey-10-alpha-70:rgb(26 26 26/70%);--color-grey-10-alpha-80:rgb(26 26 26/80%);--color-grey-10-alpha-90:rgb(26 26 26/90%);--color-grey-12-alpha-5:rgb(31 31 31/5%);--color-grey-12-alpha-10:rgb(31 31 31/10%);--color-grey-12-alpha-20:rgb(31 31 31/20%);--color-grey-12-alpha-30:rgb(31 31 31/30%);--color-grey-12-alpha-40:rgb(31 31 31/40%);--color-grey-12-alpha-50:rgb(31 31 31/50%);--color-grey-12-alpha-60:rgb(31 31 31/60%);--color-grey-12-alpha-70:rgb(31 31 31/70%);--color-grey-12-alpha-80:rgb(31 31 31/80%);--color-grey-12-alpha-90:rgb(31 31 31/90%);--color-grey-14-alpha-5:rgb(36 36 36/5%);--color-grey-14-alpha-10:rgb(36 36 36/10%);--color-grey-14-alpha-20:rgb(36 36 36/20%);--color-grey-14-alpha-30:rgb(36 36 36/30%);--color-grey-14-alpha-40:rgb(36 36 36/40%);--color-grey-14-alpha-50:rgb(36 36 36/50%);--color-grey-14-alpha-60:rgb(36 36 36/60%);--color-grey-14-alpha-70:rgb(36 36 36/70%);--color-grey-14-alpha-80:rgb(36 36 36/80%);--color-grey-14-alpha-90:rgb(36 36 36/90%);--color-brand-10:#061724;--color-brand-20:#082338;--color-brand-30:#0a2e4a;--color-brand-40:#0c3b5e;--color-brand-50:#0e4775;--color-brand-60:#0f548c;--color-brand-70:#115ea3;--color-brand-80:#0f6cbd;--color-brand-90:#2886de;--color-brand-100:#479ef5;--color-brand-110:#62abf5;--color-brand-120:#77b7f7;--color-brand-130:#96c6fa;--color-brand-140:#b4d6fa;--color-brand-150:#cfe4fa;--color-brand-160:#ebf3fc;--color-neutral-foreground-1:var(--color-white);--color-neutral-foreground-1-hover:var(--color-white);--color-neutral-foreground-1-pressed:var(--color-white);--color-neutral-foreground-1-selected:var(--color-white);--color-neutral-foreground-2:var(--color-grey-84);--color-neutral-foreground-2-hover:var(--color-white);--color-neutral-foreground-2-pressed:var(--color-white);--color-neutral-foreground-2-selected:var(--color-white);--color-neutral-foreground-2-brand-hover:var(--color-brand-100);--color-neutral-foreground-2-brand-pressed:var(--color-brand-90);--color-neutral-foreground-2-brand-selected:var(--color-brand-100);--color-neutral-foreground-3:var(--color-grey-68);--color-neutral-foreground-3-hover:var(--color-grey-84);--color-neutral-foreground-3-pressed:var(--color-grey-84);--color-neutral-foreground-3-selected:var(--color-grey-84);--color-neutral-foreground-3-brand-hover:var(--color-brand-100);--color-neutral-foreground-3-brand-pressed:var(--color-brand-90);--color-neutral-foreground-3-brand-selected:var(--color-brand-100);--color-neutral-foreground-4:var(--color-grey-60);--color-neutral-foreground-disabled:var(--color-grey-36);--color-neutral-foreground-inverted-disabled:var(--color-white-alpha-40);--color-brand-foreground-link:var(--color-brand-100);--color-brand-foreground-link-hover:var(--color-brand-110);--color-brand-foreground-link-pressed:var(--color-brand-90);--color-brand-foreground-link-selected:var(--color-brand-100);--color-neutral-foreground-2-link:var(--color-grey-84);--color-neutral-foreground-2-link-hover:var(--color-white);--color-neutral-foreground-2-link-pressed:var(--color-white);--color-neutral-foreground-2-link-selected:var(--color-white);--color-compound-brand-foreground-1:var(--color-brand-100);--color-compound-brand-foreground-1-hover:var(--color-brand-110);--color-compound-brand-foreground-1-pressed:var(--color-brand-90);--color-brand-foreground-1:var(--color-brand-100);--color-brand-foreground-2:var(--color-brand-110);--color-brand-foreground-2-hover:var(--color-brand-130);--color-brand-foreground-2-pressed:var(--color-brand-160);--color-neutral-foreground-1-static:var(--color-grey-14);--color-neutral-foreground-static-inverted:var(--color-white);--color-neutral-foreground-inverted:var(--color-grey-14);--color-neutral-foreground-inverted-hover:var(--color-grey-14);--color-neutral-foreground-inverted-pressed:var(--color-grey-14);--color-neutral-foreground-inverted-selected:var(--color-grey-14);--color-neutral-foreground-inverted-2:var(--color-grey-14);--color-neutral-foreground-on-brand:var(--color-white);--color-neutral-foreground-inverted-link:var(--color-white);--color-neutral-foreground-inverted-link-hover:var(--color-white);--color-neutral-foreground-inverted-link-pressed:var(--color-white);--color-neutral-foreground-inverted-link-selected:var(--color-white);--color-brand-foreground-inverted:var(--color-brand-80);--color-brand-foreground-inverted-hover:var(--color-brand-70);--color-brand-foreground-inverted-pressed:var(--color-brand-60);--color-brand-foreground-on-light:var(--color-brand-80);--color-brand-foreground-on-light-hover:var(--color-brand-70);--color-brand-foreground-on-light-pressed:var(--color-brand-50);--color-brand-foreground-on-light-selected:var(--color-brand-60);--color-neutral-background-1:var(--color-grey-16);--color-neutral-background-1-hover:var(--color-grey-24);--color-neutral-background-1-pressed:var(--color-grey-12);--color-neutral-background-1-selected:var(--color-grey-22);--color-neutral-background-2:var(--color-grey-12);--color-neutral-background-2-hover:var(--color-grey-20);--color-neutral-background-2-pressed:var(--color-grey-8);--color-neutral-background-2-selected:var(--color-grey-18);--color-neutral-background-3:var(--color-grey-8);--color-neutral-background-3-hover:var(--color-grey-16);--color-neutral-background-3-pressed:var(--color-grey-4);--color-neutral-background-3-selected:var(--color-grey-14);--color-neutral-background-4:var(--color-grey-4);--color-neutral-background-4-hover:var(--color-grey-12);--color-neutral-background-4-pressed:var(--color-black);--color-neutral-background-4-selected:var(--color-grey-10);--color-neutral-background-5:var(--color-black);--color-neutral-background-5-hover:var(--color-grey-8);--color-neutral-background-5-pressed:var(--color-grey-2);--color-neutral-background-5-selected:var(--color-grey-6);--color-neutral-background-6:var(--color-grey-20);--color-neutral-background-inverted:var(--color-white);--color-neutral-background-static:var(--color-grey-24);--color-neutral-background-alpha:var(--color-grey-10-alpha-50);--color-neutral-background-alpha-2:var(--color-grey-12-alpha-70);--color-neutral-background-disabled:var(--color-grey-8);--color-neutral-background-inverted-disabled:var(--color-white-alpha-10);--color-subtle-background:transparent;--color-subtle-background-hover:var(--color-grey-22);--color-subtle-background-pressed:var(--color-grey-18);--color-subtle-background-selected:var(--color-grey-20);--color-subtle-background-light-alpha-hover:var(--color-grey-14-alpha-80);--color-subtle-background-light-alpha-pressed:var(--color-grey-14-alpha-50);--color-subtle-background-light-alpha-selected:transparent;--color-subtle-background-inverted:transparent;--color-subtle-background-inverted-hover:var(--color-black-alpha-10);--color-subtle-background-inverted-pressed:var(--color-black-alpha-30);--color-subtle-background-inverted-selected:var(--color-black-alpha-20);--color-transparent-background:transparent;--color-transparent-background-hover:transparent;--color-transparent-background-pressed:transparent;--color-transparent-background-selected:transparent;--color-background-overlay:var(--color-black-alpha-50);--color-brand-background:var(--color-brand-70);--color-brand-background-hover:var(--color-brand-80);--color-brand-background-pressed:var(--color-brand-40);--color-brand-background-selected:var(--color-brand-60);--color-compound-brand-background:var(--color-brand-100);--color-compound-brand-background-hover:var(--color-brand-110);--color-compound-brand-background-pressed:var(--color-brand-90);--color-brand-background-static:var(--color-brand-80);--color-brand-background-2:var(--color-brand-20);--color-brand-background-2-hover:var(--color-brand-40);--color-brand-background-2-pressed:var(--color-brand-10);--color-brand-background-3-static:var(--color-brand-60);--color-brand-background-4-static:var(--color-brand-40);--color-brand-background-inverted:var(--color-white);--color-brand-background-inverted-hover:var(--color-brand-160);--color-brand-background-inverted-pressed:var(--color-brand-140);--color-brand-background-inverted-selected:var(--color-brand-150);--color-neutral-card-background:var(--color-grey-20);--color-neutral-card-background-hover:var(--color-grey-24);--color-neutral-card-background-pressed:var(--color-grey-18);--color-neutral-card-background-selected:var(--color-grey-22);--color-neutral-card-background-disabled:var(--color-grey-8);--color-neutral-stroke-accessible:var(--color-grey-68);--color-neutral-stroke-accessible-hover:var(--color-grey-74);--color-neutral-stroke-accessible-pressed:var(--color-grey-70);--color-neutral-stroke-accessible-selected:var(--color-brand-100);--color-neutral-stroke-1:var(--color-grey-40);--color-neutral-stroke-1-hover:var(--color-grey-46);--color-neutral-stroke-1-pressed:var(--color-grey-42);--color-neutral-stroke-1-selected:var(--color-grey-44);--color-neutral-stroke-2:var(--color-grey-32);--color-neutral-stroke-3:var(--color-grey-24);--color-neutral-stroke-subtle:var(--color-grey-4);--color-neutral-stroke-on-brand:var(--color-grey-16);--color-neutral-stroke-on-brand-2:var(--color-white);--color-neutral-stroke-on-brand-2-hover:var(--color-white);--color-neutral-stroke-on-brand-2-pressed:var(--color-white);--color-neutral-stroke-on-brand-2-selected:var(--color-white);--color-brand-stroke-1:var(--color-brand-100);--color-brand-stroke-2:var(--color-brand-50);--color-brand-stroke-2-hover:var(--color-brand-50);--color-brand-stroke-2-pressed:var(--color-brand-30);--color-brand-stroke-2-contrast:var(--color-brand-50);--color-compound-brand-stroke:var(--color-brand-100);--color-compound-brand-stroke-hover:var(--color-brand-110);--color-compound-brand-stroke-pressed:var(--color-brand-90);--color-neutral-stroke-disabled:var(--color-grey-26);--color-neutral-stroke-inverted-disabled:var(--color-white-alpha-40);--color-transparent-stroke:transparent;--color-transparent-stroke-interactive:transparent;--color-transparent-stroke-disabled:transparent;--color-neutral-stroke-alpha:var(--color-white-alpha-10);--color-neutral-stroke-alpha-2:var(--color-white-alpha-20);--color-stroke-focus-1:var(--color-black);--color-stroke-focus-2:var(--color-white);--shadow-2:0 0 2px var(--color-neutral-shadow-ambient),0 1px 2px var(--color-neutral-shadow-key);--shadow-4:0 0 2px var(--color-neutral-shadow-ambient),0 2px 4px var(--color-neutral-shadow-key);--shadow-8:0 0 2px var(--color-neutral-shadow-ambient),0 4px 8px var(--color-neutral-shadow-key);--shadow-16:0 0 2px var(--color-neutral-shadow-ambient),0 8px 16px var(--color-neutral-shadow-key);--shadow-28:0 0 8px var(--color-neutral-shadow-ambient),0 14px 28px var(--color-neutral-shadow-key);--shadow-64:0 0 8px var(--color-neutral-shadow-ambient),0 32px 64px var(--color-neutral-shadow-key);--shadow-2-brand:0 0 2px var(--color-brand-shadow-ambient),0 1px 2px var(--color-brand-shadow-key);--shadow-4-brand:0 0 2px var(--color-brand-shadow-ambient),0 2px 4px var(--color-brand-shadow-key);--shadow-8-brand:0 0 2px var(--color-brand-shadow-ambient),0 4px 8px var(--color-brand-shadow-key);--shadow-16-brand:0 0 2px var(--color-brand-shadow-ambient),0 8px 16px var(--color-brand-shadow-key);--shadow-28-brand:0 0 8px var(--color-brand-shadow-ambient),0 14px 28px var(--color-brand-shadow-key);--shadow-64-brand:0 0 8px var(--color-brand-shadow-ambient),0 32px 64px var(--color-brand-shadow-key);--font-family-default:'Segoe UI','Segoe UI Web (West European)',-apple-system,blinkmacsystemfont,roboto,'Helvetica Neue',sans-serif} `;Object.defineProperty,Object.getOwnPropertyDescriptor;let sU=class extends Be{render(){return Te`
${At('')}

${Ze("You may not access this content")}

${Ze("An age restriction has been implemented due to mature themes or\n legal requirements intended to protect younger audiences.")}

`}};sU.styles=[nN,QN,j` :host{display:flex;align-items:center;justify-content:center;background-color:var(--color-neutral-background-2)}.dialog{padding:var(--spacing-xxxl) var(--spacing-xxxl);display:flex;align-items:flex-start;gap:var(--spacing-xl);z-index:10;margin:var(--spacing-xxl);max-width:var(--size-100)}.content{display:flex;align-items:flex-start;flex-direction:column;gap:var(--spacing-xxl);padding-right:var(--spacing-xxxl)}.header-icon{padding:var(--spacing-s);color:var(--color-brand-130);fill:currentcolor}h2{margin:0;padding:0}hgroup{display:flex;flex-direction:column;gap:var(--spacing-xs)}p{margin:0;padding:0}.select-container{display:flex;gap:var(--spacing-m)} `],sU=((e,t,n,r)=>{for(var i,a=t,o=e.length-1;o>=0;o--)(i=e[o])&&(a=i(a)||a);return a})([$e("ump-age-gate-restricted")],sU);const uU=j` .select{--svg:url('data:image/svg+xml;utf8,${U(encodeURIComponent(''))}');position:relative;display:inline-flex;align-items:center;gap:var(--spacing-s-nudge);margin:0;-webkit-appearance:none;appearance:none;padding:var(--spacing-s) var(--spacing-xxxl) var(--spacing-s) var(--spacing-l);color:var(--color-neutral-foreground-1);transition-duration:var(--duration-faster);transition-property:background,color;font-size:var(--font-size-base-400);transition-timing-function:var(--curve-easy-ease);cursor:pointer;-webkit-user-select:none;user-select:none;background-color:var(--color-neutral-background-1);border-radius:var(--border-radius-medium);border:none;background-image:var(--svg);background-repeat:no-repeat;background-position-y:center;background-position-x:calc(100% - 8px);font-family:var(--font-family-default)}.select:focus{outline:none;border-bottom:solid var(--stroke-width-thick) var(--color-brand-stroke-1)}.select:focus-within{outline:none;border-bottom:solid var(--stroke-width-thick) var(--color-brand-stroke-1)}.select.focus-always:focus,.select.focus-default:focus-visible{outline:var(--stroke-width-thick) solid var(--color-stroke-focus-2)}.select:active{outline:none}.select-outline{border:solid var(--stroke-width-thick) var(--color-neutral-stroke-1)}.select-outline.focus-always:focus,.select-outline.focus-default:focus-visible{border:solid var(--stroke-width-thick) var(--color-neutral-stroke-1)} `;function cU(e,t){return Array.from({length:t-e+1},((t,n)=>e+n))}var lU=Object.defineProperty,dU=Object.getOwnPropertyDescriptor,fU=(e,t,n,r)=>{for(var i,a=r>1?void 0:r?dU(t,n):t,o=e.length-1;o>=0;o--)(i=e[o])&&(a=(r?i(t,n,a):i(a))||a);return r&&a&&lU(t,n,a),a};const pU=cU(1,12),hU=cU(1,31),gU=cU(1900,(new Date).getFullYear()).reverse();let vU=class extends Be{render(){return Te`
${At('')}

${Ze("Please enter your date of birth")}

${Ze("Age verification is required to access this content.")}

`}submitButtonClicked(){const e=this.monthSelect.value,t=this.daySelect.value,n=this.yearSelect.value;if(!e||!t||!n)return;const r=function(e){const t=new Date,n=new Date(e);n.setFullYear(t.getFullYear());let r=t.getFullYear()-e.getFullYear();return t{for(var i,a=r>1?void 0:r?yU(t,n):t,o=e.length-1;o>=0;o--)(i=e[o])&&(a=(r?i(t,n,a):i(a))||a);return r&&a&&mU(t,n,a),a};let wU=class extends Be{render(){return Te`
${At('')}

${Ze("Playback Error")}

${this.playerState.error}

`}};wU.styles=[nN,QN,j` :host{display:flex;align-items:center;justify-content:center;background-color:var(--color-brand-10)}.message-container{display:flex;align-items:flex-start;gap:var(--spacing-xl);padding:var(--spacing-xxxl) var(--spacing-xxxl)}.content{display:flex;align-items:flex-start;flex-direction:column;gap:var(--spacing-xxl);padding-right:var(--spacing-xxxl)}.header-icon{padding:var(--spacing-s);color:var(--color-brand-foreground-1);fill:currentcolor}h2{margin:0;padding:0}hgroup{display:flex;flex-direction:column;gap:var(--spacing-xs)}p{margin:0;padding:0}.select-container{display:flex;gap:var(--spacing-m)} `],bU([E({context:_R,subscribe:!0})],wU.prototype,"playerState",2),wU=bU([$e("ump-error-modal")],wU);var xU=Object.defineProperty,SU=Object.getOwnPropertyDescriptor,TU=(e,t,n,r)=>{for(var i,a=r>1?void 0:r?SU(t,n):t,o=e.length-1;o>=0;o--)(i=e[o])&&(a=(r?i(t,n,a):i(a))||a);return r&&a&&xU(t,n,a),a};let kU=class extends Be{render(){return this.playerState.error?Te``:"waiting"===this.playerState.ageGate?Te``:"verification"===this.playerState.ageGate?Te` `:"denied"===this.playerState.ageGate?Te``:null}updated(e){var t;super.updated(e);const n=!(null!=(t=this.shadowRoot)&&t.children.length);this.ariaHidden=n.toString()}};function CU(e){return e.map((e=>({...e,type:WR[e.type]??e.type}))).sort(((e,t)=>{let n=XR.indexOf(e.type)-XR.indexOf(t.type);return 0===n&&"video/mp4"===e.type&&(n=GR.indexOf(e.quality)-GR.indexOf(t.quality)),n})).filter(AU)}function AU(e){return""!=document.createElement("video").canPlayType(e.type)||"ManagedMediaSource"in window||"MediaSource"in window}function EU(e){const t=e.map((e=>({...e,ccType:YR[e.ccType]??e.ccType}))).reduce(((e,t)=>(e[t.locale]||(e[t.locale]=[]),e[t.locale].push(t),e)),{});return Object.values(t).map((e=>e.find((e=>"text/vtt"===e.ccType))??e[0]))}function IU(e){let t,n=!1;return(...r)=>(n||(t=e(...r),n=!0),t)}kU.styles=[oU,j` :host([aria-hidden='true']){display:none}.overlay{background-color:var(--color-black)}.modal{position:absolute;inset:0;width:100%;height:100%;text-align:left}ump-age-gate-verification,ump-age-gate-restricted{background-color:var(--color-brand-10)} `],TU([E({context:_R,subscribe:!0})],kU.prototype,"playerState",2),kU=TU([$e("ump-modals")],kU);const MU=IU((async()=>{try{const e=document.createElement("video"),t=e.volume;return e.volume=t/2+.1,t!==e.volume&&await new Promise((e=>setTimeout(e,1))),t!==e.volume}catch{return!1}})),_U=IU((()=>"function"==typeof document.createElement("div").requestFullscreen));function PU(e){return function(e,t){return Object.fromEntries(Object.entries(e).filter((([e,t])=>!((e,t)=>null==t)(0,t))))}(e)}const DU=["abort","canplay","canplaythrough","complete","cuechange","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"];class LU extends We.Player{constructor(e,t,n){super(),this.videoElementEventListeners={},this.plugins=[],this.pluginOnDestroy=[],this.loadRequested=!1,this._autoplay=!1,this.onFullscreenChange=()=>{this.dispatchEvent(new We.util.FakeEvent("fullscreenchanged"))},this.options={...$R,...PU(e)},e.autoplay&&!1!==e.muted&&(this.options.muted=!0),this.videoElement=t,this.lastSelectedVolume=t.volume,this.captionDisplay=n,this.configure({streaming:{ignoreTextStreamFailures:!0}})}async initialize(){this.plugins.forEach((e=>this.pluginOnDestroy.push(e(this)))),this.setVideoContainer(this.captionDisplay.captionContainer),this.forwardVideoElementEvents(),this.loop=this.options.loop,this.muted=this.options.muted,!this.options.autoplay&&!this.options.hidePosterImage&&(this.poster=this.options.poster),this.videoElement.disablePictureInPicture=!0,this.videoElement.playsInline=!0,await this.attach(this.videoElement)}async destroy(){Object.entries(this.videoElementEventListeners).forEach((([e,t])=>this.videoElement.removeEventListener(e,t))),this.pluginOnDestroy.forEach((e=>e())),this.removeFullscreenListener(),await super.destroy()}load(e,t,n){return n===WR.MP4&&(this.adaptiveBitrate=!1),super.load(e,t,n)}async loadCaptions(e=this.options.ccFiles){for(const t of EU(e))await this.addTextTrackAsync(t.url,t.locale,"captions",t.ccType)}async play(){return this.getLoadMode()===We.Player.LoadMode.NOT_LOADED?(this.addEventListener("loadsourcescomplete",this.handleLoadSourcesComplete),void this.loadRequest()):this.videoElement.play()}pause(){if(this.isFullyLoaded())return this.videoElement.pause();this.removeEventListener("loadsourcescomplete",this.handleLoadSourcesComplete)}loadRequest(){this.loadRequested||(this.loadRequested=!0,this.dispatchEvent(new We.util.FakeEvent("loadsourcesrequest")))}handleLoadSourcesComplete(){this.videoElement.play()}requestFullscreen(e){this.removeFullscreenListener(),_U()?(this.fullscreenElement=e,e.addEventListener("fullscreenchange",this.onFullscreenChange),e.requestFullscreen({navigationUI:"hide"})):function(e){return"webkitEnterFullscreen"in e&&"webkitSupportsFullscreen"in e&&"function"==typeof e.webkitEnterFullscreen&&e.webkitSupportsFullscreen}(this.videoElement)&&this.videoElement.webkitEnterFullscreen()}exitFullscreen(){document.exitFullscreen()}get fullscreen(){return null!==document.fullscreenElement}get ended(){return this.videoElement.ended}get paused(){return this.videoElement.paused}get duration(){return this.videoElement.duration}get currentTime(){return this.videoElement.currentTime}set currentTime(e){this.videoElement.currentTime=e}get loop(){return this.videoElement.loop}set loop(e){this.videoElement.loop=e}get autoplay(){return this._autoplay}set autoplay(e){this._autoplay=e}get muted(){return 0===this.volume||this.videoElement.muted}set muted(e){this.videoElement.muted=e,this.videoElement.volume=e?0:this.lastSelectedVolume}get playbackRate(){return this.getPlaybackRate()}set playbackRate(e){this.videoElement.playbackRate=e}get poster(){return this.videoElement.poster}set poster(e){const t=new Image;t.addEventListener("load",(()=>{this.dispatchEvent(new We.util.FakeEvent("playerposterloadcomplete"))})),t.src=e,this.videoElement.poster=t.src}get volume(){return this.videoElement.volume}set volume(e){this.videoElement.muted=!1,this.videoElement.volume=e}get adaptiveBitrate(){return this.getConfiguration().abr.enabled}set adaptiveBitrate(e){this.configure({abr:{enabled:e}})}get videoQualities(){if(this.getManifestType()){const e=this.filterRelatedAdaptiveTracks();return 0===e.length?[]:[zR,...e]}return this.filterStaticMp4Tracks()}get activeVideoId(){var e,t;if(!this.getManifestType()){const e=this.getAssetUri();return null==(t=this.options.sources.find((t=>t.src===e)))?void 0:t.quality}{const t=null==(e=this.getVariantTracks().find((e=>e.active)))?void 0:e.videoId;if(t)return t}}get buffered(){const e=this.videoElement,t=[];for(let n=0;ne.audioId===this.activeAudioTrackId)).find((t=>t.videoId===e.videoId));if(!t)throw new We.util.Error(We.util.Error.Severity.RECOVERABLE,We.util.Error.Category.MEDIA,We.util.Error.Code.VIDEO_ERROR);this.adaptiveBitrate=!1,this.selectVariantTrack(t,!0)}else{const t=CU(this.options.sources).find((t=>t.quality===e.videoId));if(!t)throw new We.util.Error(We.util.Error.Severity.RECOVERABLE,We.util.Error.Category.MEDIA,We.util.Error.Code.VIDEO_ERROR);const n=!this.paused,r=this.activeCaptionTrack;await this.load(t.src,this.videoElement.currentTime,t.type),n&&this.play(),await this.loadCaptions(),this.captionTrack=r}}get audioTracks(){const e=this.getVariantTracks().find((e=>e.active));return e?this.getVariantTracks().filter((t=>t.videoId===e.videoId)).map((e=>({audioId:e.audioId,language:e.language.toLowerCase(),label:BN(e.language.startsWith(QR)?e.language.substring(4):e.language),role:e.language.startsWith(QR)?"public.accessibility.describes-video":e.roles[0]}))).sort(((e,t)=>e.language.localeCompare(t.language))):[]}get activeAudioTrackId(){var e;const t=null==(e=this.getVariantTracks().find((e=>e.active)))?void 0:e.audioId;if(t)return t}set audioTrack(e){this.selectAudioLanguage(e.language,e.role)}get captionTracks(){const e=this.getTextTracks().map((e=>({captionId:e.id,language:e.language,label:BN(e.language)})));return[HR,...e]}get activeCaptionTrack(){var e;const t=null==(e=this.getTextTracks().find((e=>e.active)))?void 0:e.id,n=this.captionTracks.find((e=>e.captionId===t));return n&&this.isTextTrackVisible()?n:HR}get activeCaptionTrackId(){return this.activeCaptionTrack.captionId}set captionTrack(e){e.captionId!==HR.captionId?(this.selectTextLanguage(e.language),this.setTextTrackVisibility(!0)):this.setTextTrackVisibility(!1)}addPlugin(e){this.plugins.push(e)}addPlugins(...e){e.forEach((e=>this.addPlugin(e)))}addEventListener(e,t,n){!0===(null==n?void 0:n.once)?function(e,t,n){const r=i=>{e.removeEventListener(t,r),n(i)};e.addEventListener(t,r)}(this,e,t):super.addEventListener(e,t,n)}forwardVideoElementEvents(){DU.forEach((e=>{const t=()=>this.dispatchEvent(new We.util.FakeEvent(e));this.videoElementEventListeners[e]=t,this.videoElement.addEventListener(e,t)}))}filterStaticMp4Tracks(){return CU(this.options.sources).filter((e=>"video/mp4"===e.type)).sort(((e,t)=>GR.indexOf(e.quality)-GR.indexOf(t.quality))).map((e=>({videoId:e.quality,label:e.quality})))}filterRelatedAdaptiveTracks(){const e=this.getVariantTracks(),t=e.find((e=>e.active));return t?e.filter((e=>e.audioId===t.audioId)).sort(((e,t)=>t.height===e.height||null==e.height||null==t.height?t.bandwidth-e.bandwidth:t.height-e.height)).reduce(((e,t)=>{const n=new Set(e.map((e=>e.height??e.bandwidth))),r=t.height??t.bandwidth;return n.has(r)||e.push(t),e}),[]).map((e=>({videoId:e.videoId,label:e.height?e.height.toString():`${(e.bandwidth/1e6).toFixed(2)} Mbps`}))):[]}removeFullscreenListener(){this.fullscreenElement&&this.fullscreenElement.removeEventListener("fullscreenchange",this.onFullscreenChange)}}const RU=new class{constructor(e,t){this.prefix=e,this.store=t}getItem(e){return this.store.getItem(this.prefixed(e))}getNumber(e){const t=this.getItem(e);if(null===t)return null;const n=Number(t);return isNaN(n)?null:n}setNumber(e,t){this.setItem(e,t.toString())}setItem(e,t){this.store.setItem(this.prefixed(e),t)}removeItem(e){this.store.removeItem(this.prefixed(e))}prefixed(e){return`${this.prefix}:${e}`}}("ump",window.sessionStorage),NU="agegateupdate",OU="UserAge";function UU(e,t){return n=>{var r,i;if(!1===n.options.ageGate)return()=>{};let a="object"==typeof n.options.ageGate&&"number"==typeof(null==(r=n.options.ageGate)?void 0:r.minimumAge)?n.options.ageGate.minimumAge:null,o="object"==typeof n.options.ageGate&&"number"==typeof(null==(i=n.options.ageGate)?void 0:i.userAge)?n.options.ageGate.userAge:RU.getNumber(OU);function s(){if("verified"!==t.value.ageGate)return function(e){t.setValue({...t.value,ageGate:e})}(0===a?"verified":null===a?"waiting":null===o?"verification":o>=a?"verified":"denied");u()}function u(){c.removeAllListeners(),l.removeAllListeners()}s();const c=HO(window),l=HO(e);return c.addEventListener(NU,(function e(t){o=t.detail,s(),window.removeEventListener(NU,e)})),c.addEventListener("storage",(function e(t){if(t.key!==`ump:${OU}`||!t.newValue)return;const n=Number(t.newValue);isNaN(n)||(o=n,s(),window.removeEventListener("storage",e))})),l.addEventListener("minimum-age-set",(function(e){a=e.detail,s()})),l.addEventListener("user-age-set",(function(e){o=e.detail,s(),function(e){RU.setNumber(OU,e),window.dispatchEvent(new eN(NU,e))}(o)})),()=>{u()}}}const jU=new EventTarget;let FU=null;function BU(){return FU}function VU(e,t){e.setValue({...e.value,volume:t.volume,muted:t.muted})}function $U(e,t){const n=t.activeVideoId;e.setValue({...e.value,activeVideoQualityId:n,selectedVideoQualityId:t.adaptiveBitrate?zR.videoId:n,selectedAudioTrackId:t.activeAudioTrackId,selectedCaptionTrackId:t.activeCaptionTrackId})}function zU(e,t){e.setValue({...e.value,videoQualities:t.videoQualities,audioTracks:t.audioTracks,captionTracks:t.captionTracks})}var HU=Object.defineProperty,qU=Object.getOwnPropertyDescriptor,KU=(e,t,n,r)=>{for(var i,a=r>1?void 0:r?qU(t,n):t,o=e.length-1;o>=0;o--)(i=e[o])&&(a=(r?i(t,n,a):i(a))||a);return r&&a&&HU(t,n,a),a};We.polyfill.installAll();const GU="options";function XU(e,t,n){const r=e instanceof WU?e:WU.getById(e);return n&&r.addEventListener("ready",n,{once:!0}),r.setAttribute("options",JSON.stringify(t)),r}Object.defineProperty(XU,"allowAutoplay",{get:BU,set:function(e){e!==FU&&(FU=e,jU.dispatchEvent(new Event("change")))}});let WU=class extends Be{constructor(){super(...arguments),this.umpId=`ump-${function(){try{return crypto.randomUUID()}catch{return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))}}()}`,this.ariaLabel=null,this.playerStateContext=new _(this,{context:_R,initialValue:KR}),this.onVideoEvent=e=>{this.dispatchEvent(new eN(e.type,e.target))}}render(){return Te` `}setMinimumAge(e){this.dispatchEvent(new eN("minimum-age-set",e))}setAge(e){this.dispatchEvent(new eN("user-age-set",e))}dispose(){this.destroyPlayer()}get currentState(){var e;if(this.player)return{duration:this.player.duration,currentTime:this.player.currentTime,percentageComplete:this.player.currentTime/this.player.duration,autoPlay:this.player.autoplay,muted:this.player.muted,loop:this.player.loop,title:this.player.options.title,powerCmsVideoId:null==(e=this.player.options.plugins.powerCms)?void 0:e.videoId}}play(){var e;null==(e=this.player)||e.play()}pause(){var e;null==(e=this.player)||e.pause()}async updated(e){e.has(GU)&&(await this.destroyPlayer(),this.options&&await this.initPlayer(this.options))}async disconnectedCallback(){super.disconnectedCallback(),await this.destroyPlayer()}connectedCallback(){super.connectedCallback(),this.requestUpdate()}async initPlayer(e){var t,n;this.playerStateContext.setValue(KR);const r=this.addVideo();this.player=new LU(e,r,this.captionDisplay),this.player.addPlugins(function(e){return t=>{const n={playerInstanceId:e.umpId,playerVersionNumber:1732224097330,playerCommit:"d6a61942c4187bd2c595b19f9b70c4a12ec7c8b5",playerUrl:"",title:t.options.title,partnerName:t.options.partnerName},r=new QO(n,t,t.options.reporting,t.options.debug);!function(e,t,n){(function(e,t){e.addEventListener("ended",(()=>{t.reportNominalMetric(KO.ContentComplete)}),{once:!0})})(e,n),function(e,t){e.addEventListener("play",(()=>{const n=performance.now();e.addEventListener("playing",(()=>{t.reportNumericMetric(qO.InitialPlaybackStartDurationMs,performance.now()-n)}),{once:!0})}),{once:!0})}(e,n),function(e,t){e.addEventListener("umpplay",(()=>{t.reportNominalMetric(KO.Play)}),{once:!0})}(e,n),function(e,t){e.addEventListener("umppause",(()=>{t.reportNominalMetric(KO.Pause)}))}(e,n),function(e,t,n){e.addEventListener("resume",(()=>{t.dispatchEvent(new eN("resume")),n.reportNominalMetric(KO.Resume)}))}(e,t,n),function(e,t,n){e.addEventListener("replay",(()=>{t.dispatchEvent(new eN("replay")),n.reportNominalMetric(KO.Replay)}))}(e,t,n),function(e,t){e.addEventListener("seeked",(()=>{(e.currentTime>=.2||0===e.currentTime)&&t.reportNominalMetric(KO.Seek)}))}(e,n),function(e,t,n){let r;e.addEventListener("buffering",(e=>{e.buffering?(t.dispatchEvent(new eN("buffering")),r=performance.now()):(n.reportNominalMetric(KO.BufferComplete),n.reportNumericMetric(qO.BufferDurationMs,performance.now()-r))}))}(e,t,n),function(e,t,n){let r=e.options.muted;e.addEventListener("volumechange",(()=>{const i=0===e.volume||e.muted;r!==i&&(r=i,n.reportNominalMetric(i?KO.Mute:KO.Unmute),t.dispatchEvent(new eN(i?"mute":"unmute")))}))}(e,t,n),function(e,t){e.addEventListener("fullscreenchanged",(()=>{e.fullscreen?t.reportNominalMetric(KO.FullScreenEnter):t.reportNominalMetric(KO.FullScreenExit)}))}(e,n),function(e,t){e.addEventListener("playerloadmediastart",(()=>{const n=performance.now();e.addEventListener("playerloadmediaend",(()=>{t.reportNumericMetric(qO.PlayerLoadDurationMs,performance.now()-n)}))}))}(e,n),function(e,t){const n=performance.now();e.addEventListener("playerposterloadcomplete",(()=>{t.reportNumericMetric(qO.PosterImageLoadDurationMs,performance.now()-n)}),{once:!0})}(e,n),function(e,t,n){const r=[.25,.5,.75],i=e.options.checkpoints.filter((e=>e>=0&&e<=1)).sort(((e,t)=>e-t));e.addEventListener("timeupdate",(()=>{const a=e.currentTime/e.duration;for(;r.length>0&&a>=r[0];)r.shift(),n.reportNominalMetric(KO.ContentCheckpoint);for(;i.length>0&&a>=i[0];)i.shift(),t.dispatchEvent(new eN("checkpoint"))}))}(e,t,n),function(e,t){e.addEventListener("ready",(()=>{t.reportNominalMetric(KO.CommonPlayerImpression)}),{once:!0})}(t,n)}(t,e,r);const i=function(e,t,n){const r=e=>{!function(e,t,n){if(t.dispatchEvent(new eN("playererror")),e instanceof We.util.FakeEvent){const t=e.detail;n.reportError({errorType:`Shaka Error: ${t.code}. Severity: ${t.severity}`,errorDescription:`${t.category}: ${t.data.toString()}`})}else e instanceof eU?n.reportError({errorType:e.category,errorDescription:e.message}):n.reportError({errorType:"unknown error event",errorDescription:"unknown error event"})}(e,t,n)};return e.addEventListener("error",r),t.addEventListener("error",r),()=>{e.removeEventListener("error",r),t.removeEventListener("error",r)}}(t,e,r);return()=>{i()}}}(this),(e=>(0===e.options.sources.length||e.addEventListener("loadsourcesrequest",(async function(){e.dispatchEvent(new We.util.FakeEvent("playerloadmediastart"));const t=CU(e.options.sources);try{await e.load(t[0].src,e.options.startTime,t[0].type)}catch{return void e.dispatchShakaError(We.util.Error.Severity.CRITICAL,We.util.Error.Category.MEDIA,We.util.Error.Code.MEDIA_SOURCE_OPERATION_FAILED)}await e.loadCaptions(),e.dispatchEvent(new We.util.FakeEvent("playerloadmediaend")),e.dispatchEvent(new We.util.FakeEvent("loadsourcescomplete"))})),()=>{})),function(e){return t=>{var n;if(null==(n=t.options.plugins)||!n.powerCms)return()=>{};t.addEventListener("loadsourcesrequest",(async function(){t.dispatchEvent(new We.util.FakeEvent("playerloadmediastart")),s&&await s;const e=CU(a);await t.load(e[0].src,t.options.startTime,e[0].type),await t.loadCaptions(o),t.dispatchEvent(new We.util.FakeEvent("playerloadmediaend")),t.dispatchEvent(new We.util.FakeEvent("loadsourcescomplete"))}));const r=new AbortController,i=r.signal,a=[],o=[];let s=null;function u(e){return CU([{src:d(e.streams.mPEG_DASH.url),type:"DASH"},{src:d(e.streams.apple_HTTP_Live_Streaming.url),type:"HLS"}])}function c(e){return EU(Object.entries(e.captions).map((([e,t])=>({ccType:"TTML",url:d(t.url),locale:e}))))}function l(e){const t=Object.entries(e.streams).filter((([e])=>e.startsWith("h.264_"))).map((([,e])=>e)).reduce(((e,t)=>e.widthPixels>t.widthPixels?e:t));return[...Object.entries(e.transcripts).map((([e,t])=>({mediaType:"transcript",url:d(t.url),locale:e}))),{mediaType:"video",url:d(t.url),locale:e.snippet.culture}]}function d(e){return e.replace("http://","https://")}return s=async function(){const n=await async function(){var e;try{const n=await fetch(`https://web.archive.org/web/20241212195116/https://prod-video-cms-rt-microsoft-com.akamaized.net/vhs/api/videos/${null==(e=t.options.plugins.powerCms)?void 0:e.videoId}`,{signal:i});if(!n.ok)throw new Error("Error fetching metadata");const r=await n.json();return{poster:d(r.snippet.thumbnails.medium.url),sources:u(r),ccFiles:c(r),downloadableFiles:l(r),title:r.snippet.title,ageGate:{minimumAge:r.snippet.minimumAge}}}catch(e){return console.error("Error fetching metadata:",e),void t.dispatchShakaError(We.util.Error.Severity.CRITICAL,We.util.Error.Category.MEDIA,We.util.Error.Code.MEDIA_SOURCE_OPERATION_FAILED)}}();!n||0===n.sources.length||(e.ariaLabel=n.title,a.push(...n.sources),!t.options.autoplay&&!t.options.hidePosterImage&&(t.poster=n.poster),o.push(...n.ccFiles),e.dispatchEvent(new eN("minimum-age-set",n.ageGate.minimumAge??0)),n.downloadableFiles.length>0&&e.dispatchEvent(new eN("download-files-updated",n.downloadableFiles)))}(),()=>{r.abort()}}}(this),function(e){return t=>{const n={abrstatuschanged:()=>$U(e,t),adaptation:()=>$U(e,t),loaded:()=>{zU(e,t),$U(e,t),VU(e,t)},mediaqualitychanged:()=>$U(e,t),trackschanged:()=>zU(e,t),textchanged:()=>$U(e,t),texttrackvisibility:()=>$U(e,t),timeupdate:()=>function(e,t){e.setValue({...e.value,currentTime:t.currentTime})}(e,t),variantchanged:()=>$U(e,t),volumechange:()=>VU(e,t),ended:()=>function(e){e.setValue({...e.value,ended:!0})}(e),playing:()=>function(e){e.setValue({...e.value,paused:!1})}(e),pause:()=>function(e){e.setValue({...e.value,paused:!0})}(e),seeking:()=>function(e){e.setValue({...e.value,ended:!1})}(e),durationchange:()=>function(e,t){e.setValue({...e.value,duration:t.duration})}(e,t),fullscreenchanged:()=>function(e,t){e.setValue({...e.value,fullscreen:t.fullscreen})}(e,t),ratechange:()=>function(e,t){e.setValue({...e.value,playbackRate:t.playbackRate})}(e,t),error:n=>function(e,t,n){n.severity===We.util.Error.Severity.CRITICAL&&(t.options.showImageOnError?(t.unload(),e.setValue({...e.value,controlsState:"none"})):(t.unload(),e.setValue({...e.value,error:ZR})))}(e,t,n.detail),progress:()=>function(e,t){e.setValue({...e.value,buffered:t.buffered})}(e,t)};return function(e,t){const n=t.options.playbackRates.map((e=>({label:1===e?"Normal":`${e}x`,value:e})));e.setValue({...e.value,playbackRates:n})}(e,t),function(e,t){function n(t){e.setValue({...e.value,loading:t})}function r(){n(!0);const e=t.currentTime,r=()=>{e!==t.currentTime&&(n(!1),t.removeEventListener("timeupdate",r))};t.addEventListener("timeupdate",r)}t.addEventListener("playerloadmediastart",r),t.addEventListener("waiting",r),t.addEventListener("error",(function(e){e.detail.severity===We.util.Error.Severity.CRITICAL&&n(!1)})),t.addEventListener("ended",(()=>n(!1))),t.addEventListener("playing",(()=>n(!1))),t.addEventListener("canplay",(()=>n(!1))),t.addEventListener("canplaythrough",(()=>n(!1)))}(e,t),Object.entries(n).forEach((([e,n])=>t.addEventListener(e,n))),()=>{}}}(this.playerStateContext),function(e,t){return n=>{if(!n.options.showDownloadMenu)return t.setValue({...t.value,showDownloadMenu:!1}),()=>{};const r=HO(e);function i(e){const n=e.filter((e=>"video"===e.mediaType)).map((e=>({...e,locale:BN(e.locale)}))),r=e.filter((e=>"transcript"===e.mediaType)).map((e=>({...e,locale:BN(e.locale)})));t.setValue({...t.value,downloadableVideoFiles:n,downloadableTranscriptFiles:r})}return r.addEventListener("download-file-clicked",(async function(e){let t=null;try{const{url:n}=e.detail,r=await fetch(n);if(!r.ok)throw new Error(`Failed to download file: ${r.url} ${r.statusText}`);const i=await r.blob();t=document.createElement("a"),t.href=URL.createObjectURL(i);const a=n.split("/").pop();t.download=a,document.body.appendChild(t),t.click()}catch(e){console.error(`Failed to download file: ${e}`)}finally{null!=t&&t.href&&URL.revokeObjectURL(t.href)}})),r.addEventListener("download-files-updated",(function(e){i(e.detail)})),n.options.downloadableFiles.length>0&&i(n.options.downloadableFiles),()=>{r.removeAllListeners()}}}(this,this.playerStateContext),function(e,t){return n=>{const r=function(e){return e.options.share?0===e.options.shareOptions.length?VR:e.options.shareOptions:[]}(n).map((e=>function(e){const t=new URL(window.location.href);t.searchParams.delete("jsapi");const n=t.toString();switch(e){case"facebook":return{id:"facebook",url:`https://web.archive.org/web/20241212195116/https://www.facebook.com/share.php?u=${encodeURIComponent(n)}`,icon:'\n \n \n \n \n \n \n \n \n'};case"linkedin":return{id:"linkedin",url:`https://web.archive.org/web/20241212195116/https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(n)}&title=&summary=&source=`,icon:'\n \n \n \n \n \n \n \n \n'};case"twitter":return{id:"twitter",url:`https://web.archive.org/web/20241212195116/https://x.com/share?url=${encodeURIComponent(n)}&text=`,icon:'\n \n \n \n \n \n \n \n \n'};case"mail":return{id:"mail",url:`mailto:?subject=Check out this great video&body=${encodeURIComponent(n)}`,icon:'\n \n'};default:return{id:"copy",url:n,icon:""}}}(e)));t.setValue({...t.value,shareOptions:r});const i=HO(e);return i.addEventListener("share-button-clicked",(function(){t.setValue({...t.value,shareDialogOpened:!0})})),i.addEventListener("share-dialog-closed",(function(){t.setValue({...t.value,shareDialogOpened:!1})})),()=>{i.removeAllListeners()}}}(this,this.playerStateContext),function(e,t){return n=>{const r=HO(e);function i(e){t.setValue({...t.value,controlsState:e})}r.addEventListener("big-play-button-clicked",(function(){t.setValue({...t.value,bigPlayButtonClicked:!0}),o()})),r.addEventListener("play-button-clicked",(function(){o()})),r.addEventListener("volume-button-clicked",(function(){n.muted=!n.muted})),r.addEventListener("fullscreen-button-clicked",(function(){n.fullscreen?n.exitFullscreen():n.requestFullscreen(e)})),r.addEventListener("seekbar-updated",(function(e){n.currentTime=e.detail})),r.addEventListener("volume-updated",(function(e){n.volume=e.detail})),r.addEventListener("volume-drag-released",(function(e){n.saveLastSelectedVolume(e.detail)})),r.addEventListener("audio-track-clicked",(function(e){n.audioTrack=e.detail})),r.addEventListener("video-quality-clicked",(function(e){n.selectVideoQuality(e.detail)})),r.addEventListener("caption-track-clicked",(function(e){t.setValue({...t.value,captionSettings:{...t.value.captionSettings,enabled:-1!==e.detail.captionId}}),n.captionTrack=e.detail})),r.addEventListener("playback-rate-clicked",(function(e){n.playbackRate=e.detail})),r.addEventListener("controls-clicked",(function(){o()})),r.addEventListener("seekbar-pointer-down",(function(){a=n.paused,n.pause()})),r.addEventListener("seekbar-pointer-up",(function(){a||n.play()})),r.addEventListener("caption-font-size-clicked",(function(e){t.setValue({...t.value,captionSettings:{...t.value.captionSettings,fontScale:e.detail}})})),r.addEventListener("caption-text-color-clicked",(function(e){t.setValue({...t.value,captionSettings:{...t.value.captionSettings,textColor:e.detail}})})),r.addEventListener("caption-text-opacity-clicked",(function(e){t.setValue({...t.value,captionSettings:{...t.value.captionSettings,textOpacity:e.detail}})})),r.addEventListener("caption-background-color-clicked",(function(e){t.setValue({...t.value,captionSettings:{...t.value.captionSettings,backgroundColor:e.detail}})})),r.addEventListener("caption-background-opacity-clicked",(function(e){t.setValue({...t.value,captionSettings:{...t.value.captionSettings,backgroundOpacity:e.detail}})})),r.addEventListener("caption-font-family-clicked",(function(e){t.setValue({...t.value,captionSettings:{...t.value.captionSettings,fontFamily:e.detail}})})),r.addEventListener("caption-text-edge-style-clicked",(function(e){t.setValue({...t.value,captionSettings:{...t.value.captionSettings,textShadow:e.detail}})})),null==n.options.hideControls&&n.addEventListener("play",(()=>{i("controlbar")}),{once:!0}),n.options.autoplay||i("bigplaybutton"),"controlbar"===n.options.hideControls&&i("bigplaybutton"),"all"===n.options.hideControls&&i("none"),t.setValue({...t.value,playButtonSize:n.options.playButtonSize,playButtonTheme:n.options.playButtonTheme}),t.setValue({...t.value,maskLevel:n.options.maskLevel}),0!==n.options.maskLevel&&n.addEventListener("play",(()=>{t.setValue({...t.value,maskLevel:0})}),{once:!0});let a=!1;function o(){n.ended?(n.dispatchEvent(new We.util.FakeEvent("replay")),n.play()):n.paused?(0===n.currentTime&&n.dispatchEvent(new We.util.FakeEvent("umpplay")),0!==n.currentTime&&n.dispatchEvent(new We.util.FakeEvent("resume")),n.play()):(n.dispatchEvent(new We.util.FakeEvent("umppause")),n.pause())}return()=>{r.removeAllListeners()}}}(this,this.playerStateContext),UU(this,this.playerStateContext),function(e){return t=>(t.options.playFullScreen&&t.addEventListener("play",(()=>{t.requestFullscreen(e)}),{once:!0}),()=>{})}(this),function(e,t){return n=>{if(!n.options.autoplay)return()=>{};const r=window.matchMedia("(prefers-reduced-motion: reduce)"),i={threshold:n.options.percentage/100},a=new IntersectionObserver((e=>{d(e[0]),o()&&(e[0].isIntersecting?n.paused&&n.play():n.paused||n.pause())}),i);function o(){if("string"==typeof t.value.ageGate&&"verified"!==t.value.ageGate)return!1;const e=BU();return"boolean"==typeof e?e:!r.matches}function s(){n.autoplay=o()}function u(){s()}function c(){s()}function l(){n.autoplay=!1,a.disconnect(),r.removeEventListener("change",u),jU.removeEventListener("change",c),e.removeEventListener("click",l)}const d=IU((e=>{(!n.autoplay||!e.isIntersecting)&&(null==n.options.hideControls&&t.setValue({...t.value,controlsState:"bigplaybutton"}),n.options.hidePosterImage||(n.poster=n.options.poster))}));return s(),r.addEventListener("change",u),jU.addEventListener("change",c),e.addEventListener("click",l,{once:!0}),n.addEventListener("ended",l,{once:!0}),a.observe(e),l}}(this,this.playerStateContext),function(e){return()=>(async function(){const t=await MU();e.setValue({...e.value,showVolumeSlider:t})}(),()=>{})}(this.playerStateContext),function(e){return t=>("forceHighestQuality"===t.options.qualityBehavior&&t.configure({abr:{enable:!1,defaultBandwidthEstimate:1e10,useNetworkInformation:!1}}),e.setValue({...e.value,showQualityMenu:t.options.showQualityMenu}),t.addEventListener("loadsourcescomplete",(async function(){if("forceHighestQuality"===t.options.qualityBehavior&&t.getManifest()){const e=t.videoQualities[1];e&&t.selectVideoQuality(e)}}),{once:!0}),()=>{})}(this.playerStateContext),function(e){return t=>(e.setValue({...e.value,disableKeyboardEvents:t.options.disableKeyboardEvents}),()=>{})}(this.playerStateContext),function(e){return t=>(e.setValue({...e.value,showFocusIndicator:t.options.showFocusIndicator}),()=>{})}(this.playerStateContext)),this.updateStyles(this.player),this.ariaLabel=(null==(t=this.options)?void 0:t.title)||null,XN((e=>{const t=VN(e),n=VN(document.documentElement.lang),r=function(){const e=new RegExp(`^https?://[^/]+/(${HN})/[^/]+.*`),t=window.location.href.match(e);return t&&VN(t[1])||null}(),i=VN($R.language)||$R.language;return t||n||r||i})(null==(n=this.options)?void 0:n.language)),await this.player.initialize(),this.dispatchEvent(new eN("ready",this.player))}addVideo(){var e;const t=document.createElement("video");return t.classList.add("fill-parent"),DU.forEach((e=>{t.addEventListener(e,this.onVideoEvent)})),null==(e=this.shadowRoot)||e.prepend(t),t}removeVideo(){var e;const t=null==(e=this.player)?void 0:e.getMediaElement();t&&(DU.forEach((e=>{t.removeEventListener(e,this.onVideoEvent)})),t.remove())}async destroyPlayer(){var e;this.removeVideo(),await(null==(e=this.player)?void 0:e.destroy()),this.player=void 0}updateStyles(e){this.style.setProperty("--ump-aspect-ratio",e.options.aspectRatio.replace(":"," /")),"fill"===e.options.layout?this.style.setProperty("--ump-height","100%"):this.style.setProperty("--ump-height","unset")}static getById(e){const t=document.getElementById(e);if(!(t instanceof WU))throw new Error(`Not a valid element. To use Universal Media Player, you must pass in an element named "universal-media-player" but you passed in id ${e} which resolves to element ${null==t?void 0:t.tagName}.`);return t}};WU.styles=[oU,j` :host{--ump-aspect-ratio:unset;--ump-height:unset;container-type:size;container-name:universalmediaplayer;display:inline-block;position:relative;width:100%;height:var(--ump-height);aspect-ratio:var(--ump-aspect-ratio);background-color:var(--color-black);font-family:var(--font-family-default);font-size:var(--font-size-base-300)}video{object-fit:contain}.fill-parent{position:absolute;inset:0;width:100%;height:100%}ump-controls{z-index:10}ump-modals{z-index:20}ump-loading-spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:15} `],KU([qe({type:Object,attribute:GU,reflect:!0})],WU.prototype,"options",2),KU([qe({reflect:!0})],WU.prototype,"umpId",2),KU([qe({attribute:"aria-label",reflect:!0})],WU.prototype,"ariaLabel",2),KU([Xe("ump-caption-display")],WU.prototype,"captionDisplay",2),WU=KU([$e("universal-media-player")],WU),window.ump=XU,window.ISOBoxer=P;var YU,JU,ZU=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o};!function(e){e.HQ="HQ",e.HD="HD",e.SD="SD",e.LO="LO"}(YU||(YU={})),function(e){e.MP4="MP4",e.DASH="DASH",e.HLS="HLS"}(JU||(JU={}));var QU,ej,tj,nj="ocpVideo",rj="div.".concat(nj),ij="videoid",aj="videotitle",oj="SupportService",sj=function(){function e(t){var n=this;this.onMessageReceived=function(t,r,i){var a,o,s,u=null!==(a=i.videoId)&&void 0!==a?a:document.getElementById(r).dataset[ij];try{s={videoId:n.sanitize(u),currentTime:i.currentTime,duration:i.duration,title:n.sanitize(i.title)}}catch(e){}if(s&&"object"==typeof s&&e.videoEventNameToBehavior.has(t)){var c={vidnm:"",vidid:"",vidpct:0,vidwt:0,viddur:0,vidtimeseconds:0,live:!1,containerName:"umpplayer",id:""},l=document.querySelector("#".concat(r," universal-media-player")).closest(".ocpVideo");n.populateContentTags(c,s.title,s.videoId,s.duration,s.currentTime);var d={actionType:"O",behavior:e.videoEventNameToBehavior.get(t),content:c,isAuto:!1},f=l.id;null===(o=window.analytics)||void 0===o||o.capturePageAction(document.getElementById(f),d),n.updateVideoCarouselModal(t,f)}},this.useNarrowWidth=t}return e.prototype.setupVideo=function(e,t){var n;null!=t||(t=e.dataset[ij]);for(var r=null===(n=document.documentElement.lang)||void 0===n?void 0:n.toLowerCase(),i=document.createElement("universal-media-player"),a=e;a.firstChild;)a.removeChild(a.firstChild);var o=e.id;""===o&&(e.id=o="".concat(nj).concat(document.querySelectorAll("universal-media-player").length+1)),a.appendChild(i),XU(i,e.hasAttribute("learnvideo")?this.getLearnOptions(e,r):this.getUmpOptions(e,r,t)),this.setupEventListeners(i,o)},e.prototype.setupVideos=function(e){for(var t=e.querySelectorAll(rj),n=0;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e.videoEventNameToBehavior),c=u.next();!c.done;c=u.next())o(ZU(c.value,1)[0])}catch(e){r={error:e}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}this.addEvent(t,"canplay",(function(){a.addEvent(document,"fullscreenchange",(function(){document.fullscreenElement?a.onMessageReceived("fullscreenenter",n,t.currentState):a.onMessageReceived("fullscreenexit",n,t.currentState)}))}))},e.prototype.addEvent=function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)},e.prototype.sanitize=function(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return e.replace(/[&<>"'/`=]/gi,(function(e){return t[e]}))},e.prototype.invokePause=function(e){try{document.querySelector("#".concat(e," universal-media-player")).pause()}catch(e){console.error("Error sending pause message:",e)}},e.prototype.updateVideoCarouselModal=function(e,t){var n=$("#"+t);n.length<=0||n.closest(".slick-list").length<=0||"play"!==e&&"resume"!==e||(this.pauseAllVideosExcept(t),function(e){if(!(e.length<=0)){var t=e.closest("div.supCardControlCarousel"),n=e.find("div.videoContainer"),r=n.find("div.videoContent"),i=n.find("span.modalCloseButton");n.addClass("modalContainer"),n.find(".modalCloseButton").css("display","block"),n.find(".supCardControlImage").css("display","none"),n.siblings(".modalPageBackground").css("display","block"),r.addClass("modalContent"),i.css("display","block"),i.attr("tabindex","0"),$('[class^="slick-"]').each((function(){$(this).addClass("resetTransform")})),t.find(".supCardControlCarouselPrevButton, .supCardControlCarouselNextButton").not(".slick-hidden").hide(),$("body").addClass("disableScroll"),n.on("keydown",(function(e){var t="Escape"===e.key,n="Enter"===e.key&&$(e.target).hasClass("modalCloseButton"),r="Tab"===e.key,i=e.shiftKey;t||n?function(){var e=$(".modalContainer").closest(".supCardControlCard"),t=e.closest("div.supCardControlCarousel"),n=e.find("div.videoContainer"),r=n.find("div.videoContent"),i=n.find("span.modalCloseButton");n.removeClass("modalContainer"),n.find("div.modalCloseButton").css("display","none"),n.find(".supCardControlImage").css("display","block"),n.siblings(".modalPageBackground").css("display","none"),r.removeClass("modalContent"),i.removeAttr("tabindex"),i.css("display","none"),$('[class^="slick-"]').each((function(){$(this).removeClass("resetTransform")})),t.find(".supCardControlCarouselPrevButton, .supCardControlCarouselNextButton").not(".slick-hidden").show(),n.css({width:"",height:"",top:"",left:""}),r.css({width:"",height:""}),$("body").removeClass("disableScroll"),window.occe.suspendStateOfContents(r)}():r&&!i&&$(e.target).hasClass("modalCloseButton")?($(e.target).closest(".slick-active").focus(),e.preventDefault()):r&&i&&$(e.target).hasClass("slick-active")&&($(e.target).find(".modalCloseButton").focus(),e.preventDefault())})),function(e){if(!(e.length<=0)){var t=$(window),n=e.find("div.videoContainer"),r=n.find("div.videoContent"),i=16/9;t.height()0&&(a=Math.round(i/r*100)),e.vidpct=a},e.prototype.getLearnOptions=function(e,t){var n=JSON.parse(e.dataset.captions).map((function(e){return{url:e.Url,locale:e.language,ccType:"VTT"}})),r=[],i=e.dataset.highqualityvideourl,a=e.dataset.mediumqualityvideourl,o=e.dataset.lowqualityvideourl,s=e.dataset.dashvideourl,u=e.dataset.adaptivehlsurl;return i&&r.push({src:i,type:"MP4",quality:"HQ"}),a&&r.push({src:a,type:"MP4",quality:"HD"}),o&&r.push({src:o,type:"MP4",quality:"LO"}),s&&r.push({src:s,type:"DASH"}),u&&r.push({src:u,type:"HLS"}),{partnerName:oj,language:t,autoplay:!1,title:e.dataset[aj],reporting:!1,poster:e.dataset.poster,sources:r,ccFiles:n}},e.prototype.getUmpOptions=function(e,t,n){return{partnerName:oj,language:t,title:e.dataset[aj],reporting:!1,plugins:{powerCms:{videoId:n}}}},e.videoEventNameToBehavior=new Map([["play",240],["pause",241],["resume",242],["timeupdate",243],["seeked",244],["ended",245],["waiting",246],["error",247],["mute",248],["unmute",249],["fullscreenenter",250],["fullscreenexit",251],["canplay",253]]),e.autoEmittedEvents=new Set(["pause","timeupdate","seeked","waiting","canplay","ended","error","mute","unmute"]),e}(),uj=sj,cj=function(){function e(e){this.videoPlayerManager=e}return e.prototype.setupCarousel=function(t){var n=this,r=$(t),i=r.prev(rj).detach();r.wrap('
'),r.before(i);var a="rtl"===t.ownerDocument.dir,o=$("
",t.ownerDocument).addClass([e.nextButtonClass,e.rightIconClass]),s=$("
",t.ownerDocument).addClass([e.previousButtonClass,e.inactiveButtonClass,e.leftIconClass]);a?(o.insertBefore(r),s.insertAfter(r)):(o.insertAfter(r),s.insertBefore(r)),r.wrap('
');var u=r.children("li");u.first().addClass(e.selectedClass),u.each((function(t,r){var a=$(r);a.find("ul").find("li:first-child").after('
  • '.concat(t+1,"
  • ")),a.click((function(t){t.preventDefault();var r=$(t.delegateTarget);r.siblings("li").removeClass(e.selectedClass),r.addClass(e.selectedClass),n.videoPlayerManager.setupVideo(i[0],r.find("a").attr("data-".concat(ij)))}))}));var c=u.width()+11,l=u.length,d=!1,f=!1;l<=4&&(o.addClass(e.inactiveButtonClass),f=!0);var p=a?"left":"right";o.click((function(t){var n=r.css(p).replace(/[px]/g,"");if(!f&&("auto"===n||parseInt(n,10)<(l-4)*c)){f=!0;var i=a?{left:"+=".concat(c,"px")}:{right:"+=".concat(c,"px")};s.removeClass(e.inactiveButtonClass),r.animate(i,(function(){f=!1})),n=r.css(p).replace(/[px]/g,""),parseInt(n,10)>=(l-5)*c&&$(t.delegateTarget).addClass(e.inactiveButtonClass)}else $(t.delegateTarget).addClass(e.inactiveButtonClass)})),s.click((function(t){var n=parseInt(r.css(p).replace(/[px]/g,""),10);if(!d&&n>0){d=!0;var i=a?{left:"-=".concat(c,"px")}:{right:"-=".concat(c,"px")};o.removeClass(e.inactiveButtonClass),r.animate(i,(function(){d=!1})),$(t.delegateTarget).removeClass(e.inactiveButtonClass)}n-c==0&&$(t.delegateTarget).addClass(e.inactiveButtonClass)}))},e.previousButtonClass="ocPrev",e.nextButtonClass="ocNext",e.leftIconClass="ms-Icon--chevronThinLeft",e.rightIconClass="ms-Icon--chevronThinRight",e.inactiveButtonClass="inactive",e.selectedClass="selected",e}(),lj=cj,dj="prevAssetDKey",fj=function(){function r(){this.constants={events:n,fadeInTimeoutMs:10,wedcs:t},this.eventHelpers=e,this.pushOntoExecutionStack=h,this.getMetaTagValue=m,this.setMetaTag=y,this.update1dsMetaTagTelemetry=g,this.GetQueryStringParam=b,this.updateQueryStringParameter=w,this.GetCookie=i,this.SetCookie=a,this.GetSessionValue=T,this.TrySetSessionValue=k,this.Resources=new S,this.assetId=m("ms.ocpub.assetID"),this.videoPlayerManager=new uj(navigator.platform.toLowerCase().indexOf("ipad")>-1),this.videoCarouselManager=new lj(this.videoPlayerManager);var r=this.videoCarouselManager;this.Controls={Carousel:{setupCarousel:function(e,t){r.setupCarousel(t)}}}}return r.prototype.setPreviousAssetId=function(){var e=T(dj);null!==e&&y("ms.ocpub.previousassetID",e)},r.prototype.setSessionAssetValue=function(){var e;-1===(null===(e=this.assetId)||void 0===e?void 0:e.toLowerCase().indexOf("s.cl.nav"))&&k(dj,this.assetId,!0)},r.prototype.bindExpando=function(e,t){!function(e,t,n){var r=$(e);r.find("button").attr("data-bi-mto","").attr("data-bi-slot",(function(e){return e+1})),r.click((function(e){e.preventDefault();var r,i,a,o=$(e.delegateTarget),s=o.next(),u=o.hasClass(p);u&&n.pauseVideos(s[0]),o.toggleClass(p),s.find(t).slideToggle(150),o.find("i").toggleClass(f),r=o.find("button").attr("aria-expanded",(!u).toString())[0],i=!u,(a=window.analytics)&&a.capturePageAction(null,{actionType:"CL",behavior:i?window.oneDS.Behavior.EXPAND:window.oneDS.Behavior.REDUCE,contentTags:{contentName:r.innerText.trim(),areaName:"expando",slotNumber:r.dataset.biSlot}})}))}(e,t,this.videoPlayerManager)},r.prototype.setupVideosOnPage=function(){this.videoPlayerManager.setupVideos(document)},r.prototype.suspendStateOfContents=function(e){var t=this;e.each((function(e,n){return t.videoPlayerManager.pauseVideos(n)}))},r.prototype.windowIsTabletSizeOrSmaller=function(){return document.documentElement.clientWidth<=768},r}(),pj=fj,hj=function(){var e=document.getSelection().toString().trim(),t=window.analytics;t&&e&&t.capturePageAction(null,{actionType:"O",behavior:window.oneDS.Behavior.COPY,contentTags:{contentId:"copy_text_action"}})};(tj=QU||(QU={})).None="None",tj.EU="EU",function(e){e[e.Undefined=0]="Undefined",e[e.MinorWithoutParentalConsent=1]="MinorWithoutParentalConsent",e[e.MinorWithParentalConsent=2]="MinorWithParentalConsent",e[e.Adult=3]="Adult",e[e.NotAdult=4]="NotAdult",e[e.MinorNoParentalConsentRequired=5]="MinorNoParentalConsentRequired"}(ej||(ej={})),void 0===String.prototype.format&&(String.prototype.format=function(){for(var e=[],t=0;t