"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[20963],{20963:function(e,t,a){a.r(t),a.d(t,{default:function(){return C},show:function(){return g}}),a(29305),a(32733),a(84701),a(24776),a(69892),a(44962),a(86584),a(89336),a(26448),a(78557),a(96054),a(95021),a(73687),a(83994),a(82367);var n=a(22696),o=a.n(n),i=a(79754),r=a(23648),s=a(46782),l=a(8566),c=a(71866),d=a(5898),u=a(67430),f=a(27351),p=a(36300),h=a(76562),y=(a(10353),a(15453),a(63001),'

${MoreMediaInfo}

');function v(e,t){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=function(e,t){if(e){if("string"==typeof e)return m(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?m(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){a&&(e=a);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,r=!0,s=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return r=e.done,e},e:function(e){s=!0,i=e},f:function(){try{r||null==a.return||a.return()}finally{if(s)throw i}}}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a'),I=s.A.tv?"":': ';function b(e,t,a){return''.concat(e,"").concat(I,'").concat(o()(t),"\n")}function g(e,t){return l.Ay.show(),function(e,t){var a=u.tF.getApiClient(t);return a.getItem(a.getCurrentUserId(),e).then((function(e){var t={size:"small",removeOnClose:!0,scrollY:!1};s.A.tv&&(t.size="fullscreen");var n=i.default.createDialog(t);n.classList.add("formDialog");var u="";u+=d.Ay.translateHtml(y,"core"),n.innerHTML=u,s.A.tv&&n.querySelector(".formDialogContent"),i.default.open(n),n.querySelector(".btnCancel").addEventListener("click",(function(){i.default.close(n)})),a.getCurrentUser().then((function(t){!function(e,t,a){var n=a.MediaSources.map((function(t){return function(e,t,a){var n,i='
';if(a.Name&&(i+='

'.concat(o()(a.Name)).concat(A,"

\n")),a.Container&&(i+="".concat(b(d.Ay.translate("MediaInfoContainer"),a.Container),"
")),null!==(n=a.Formats)&&void 0!==n&&n.length&&(i+="".concat(b(d.Ay.translate("MediaInfoFormat"),a.Formats.join(",")),"
")),a.Path&&null!=e&&e.Policy.IsAdministrator&&(i+="".concat(b(d.Ay.translate("MediaInfoPath"),a.Path,!0),"
")),a.Size){var s=(0,h.iJ)(a.Size);i+="".concat(b(d.Ay.translate("MediaInfoSize"),s),"
")}a.MediaStreams.sort(r.Ay.sortTracks);var l,c=v(a.MediaStreams);try{for(c.s();!(l=c.n()).done;){var u=l.value;if("Data"!==u.Type){i+='
';var f=void 0;switch(u.Type){case"Audio":case"Data":case"Subtitle":case"Video":case"Lyric":f=u.Type;break;case"EmbeddedImage":f="Image"}var p=d.Ay.translate(f);i+='\n

'.concat(p).concat(A,"

\n");var y=[];u.DisplayTitle&&y.push(b(d.Ay.translate("MediaInfoTitle"),u.DisplayTitle)),u.Language&&"Video"!==u.Type&&y.push(b(d.Ay.translate("MediaInfoLanguage"),u.Language)),u.Codec&&y.push(b(d.Ay.translate("MediaInfoCodec"),u.Codec.toUpperCase())),u.CodecTag&&y.push(b(d.Ay.translate("MediaInfoCodecTag"),u.CodecTag)),null!=u.IsAVC&&y.push(b("AVC",u.IsAVC?"Yes":"No")),u.Profile&&y.push(b(d.Ay.translate("MediaInfoProfile"),u.Profile)),u.Level>0&&y.push(b(d.Ay.translate("MediaInfoLevel"),u.Level)),(u.Width||u.Height)&&y.push(b(d.Ay.translate("MediaInfoResolution"),"".concat(u.Width,"x").concat(u.Height))),u.AspectRatio&&"mjpeg"!==u.Codec&&y.push(b(d.Ay.translate("MediaInfoAspectRatio"),u.AspectRatio)),"Video"===u.Type&&(null!=u.IsAnamorphic&&y.push(b(d.Ay.translate("MediaInfoAnamorphic"),u.IsAnamorphic?"Yes":"No")),y.push(b(d.Ay.translate("MediaInfoInterlaced"),u.IsInterlaced?"Yes":"No"))),u.ReferenceFrameRate&&"Video"===u.Type&&y.push(b(d.Ay.translate("MediaInfoFramerate"),u.ReferenceFrameRate)),u.ChannelLayout&&y.push(b(d.Ay.translate("MediaInfoLayout"),u.ChannelLayout)),u.Channels&&y.push(b(d.Ay.translate("MediaInfoChannels"),"".concat(u.Channels," ch"))),u.BitRate&&y.push(b(d.Ay.translate("MediaInfoBitrate"),"".concat(parseInt(u.BitRate/1e3,10)," kbps"))),u.SampleRate&&y.push(b(d.Ay.translate("MediaInfoSampleRate"),"".concat(u.SampleRate," Hz"))),u.BitDepth&&y.push(b(d.Ay.translate("MediaInfoBitDepth"),"".concat(u.BitDepth," bit"))),u.VideoRange&&"Video"===u.Type&&y.push(b(d.Ay.translate("MediaInfoVideoRange"),u.VideoRange)),u.VideoRangeType&&"Video"===u.Type&&y.push(b(d.Ay.translate("MediaInfoVideoRangeType"),u.VideoRangeType)),u.VideoDoViTitle&&(y.push(b(d.Ay.translate("MediaInfoDoViTitle"),u.VideoDoViTitle)),null!=u.DvVersionMajor&&y.push(b(d.Ay.translate("MediaInfoDvVersionMajor"),u.DvVersionMajor)),null!=u.DvVersionMinor&&y.push(b(d.Ay.translate("MediaInfoDvVersionMinor"),u.DvVersionMinor)),null!=u.DvProfile&&y.push(b(d.Ay.translate("MediaInfoDvProfile"),u.DvProfile)),null!=u.DvLevel&&y.push(b(d.Ay.translate("MediaInfoDvLevel"),u.DvLevel)),null!=u.RpuPresentFlag&&y.push(b(d.Ay.translate("MediaInfoRpuPresentFlag"),u.RpuPresentFlag)),null!=u.ElPresentFlag&&y.push(b(d.Ay.translate("MediaInfoElPresentFlag"),u.ElPresentFlag)),null!=u.BlPresentFlag&&y.push(b(d.Ay.translate("MediaInfoBlPresentFlag"),u.BlPresentFlag)),null!=u.DvBlSignalCompatibilityId&&y.push(b(d.Ay.translate("MediaInfoDvBlSignalCompatibilityId"),u.DvBlSignalCompatibilityId))),u.ColorSpace&&y.push(b(d.Ay.translate("MediaInfoColorSpace"),u.ColorSpace)),u.ColorTransfer&&y.push(b(d.Ay.translate("MediaInfoColorTransfer"),u.ColorTransfer)),u.ColorPrimaries&&y.push(b(d.Ay.translate("MediaInfoColorPrimaries"),u.ColorPrimaries)),u.PixelFormat&&y.push(b(d.Ay.translate("MediaInfoPixelFormat"),u.PixelFormat)),u.RefFrames&&y.push(b(d.Ay.translate("MediaInfoRefFrames"),u.RefFrames)),u.Rotation&&"Video"===u.Type&&y.push(b(d.Ay.translate("MediaInfoRotation"),u.Rotation)),u.NalLengthSize&&y.push(b("NAL",u.NalLengthSize)),"Subtitle"!==u.Type&&"Audio"!==u.Type||(y.push(b(d.Ay.translate("MediaInfoDefault"),u.IsDefault?"Yes":"No")),y.push(b(d.Ay.translate("MediaInfoForced"),u.IsForced?"Yes":"No")),y.push(b(d.Ay.translate("MediaInfoExternal"),u.IsExternal?"Yes":"No"))),"Video"===u.Type&&a.Timestamp&&y.push(b(d.Ay.translate("MediaInfoTimestamp"),a.Timestamp)),i+=y.join("
"),i+="
"}}}catch(e){c.e(e)}finally{c.f()}return i+"
"}(e,0,t)})).join('
');a.MediaSources.length>1&&(n="
".concat(n));var i=t.querySelector("#mediaInfoContent");i.innerHTML=n;var s,l=v(i.querySelectorAll(".btnCopy"));try{var u=function(){var e=s.value;e.addEventListener("click",(function(){var t=p.Ay.parentWithClass(e,"mediaInfoStream")||p.Ay.parentWithClass(e,"mediaInfoSource")||i;(0,f.C)(t.textContent).then((function(){(0,c.A)(d.Ay.translate("Copied"))})).catch((function(){console.error("Could not copy text"),(0,c.A)(d.Ay.translate("CopyFailed"))}))}))};for(l.s();!(s=l.n()).done;)u()}catch(e){l.e(e)}finally{l.f()}}(t,n,e)})),l.Ay.hide()}))}(e,t)}var C={show:g}},63001:function(e,t,a){var n=a(46782),o=a(34789),i=a(62882),r=(a(69177),Object.create(HTMLSelectElement.prototype));function s(){return!(o.A.edgeUwp||o.A.xboxOne||o.A.tizen||o.A.orsay||o.A.web0s||!o.A.tv&&n.A.tv)}function l(e){var t=c(e),a=t?t.textContent||t.innerText:null;i.default.show({items:e.options,positionTo:e,title:a}).then((function(t){!function(e,t){e.value=t}(e,t),function(e){var t=new Event("change",{bubbles:!1,cancelable:!0});e.dispatchEvent(t)}(e)}))}function c(e){for(var t=e.previousSibling;t&&"LABEL"!==t.tagName;)t=t.previousSibling;return t}function d(){var e=c(this);e&&e.classList.add("selectLabelFocused")}function u(){var e=c(this);e&&e.classList.remove("selectLabelFocused")}function f(e){e.button||s()||(e.preventDefault(),l(this))}function p(e){13!==e.keyCode&&195!==e.keyCode||s()||(e.preventDefault(),l(this))}var h=0;r.createdCallback=function(){this.id||(this.id="embyselect"+h,h++),this.classList.add("emby-select-withcolor"),n.A.tv&&this.classList.add("emby-select-focusscale"),this.addEventListener("mousedown",f),this.addEventListener("keydown",p),this.addEventListener("focus",d),this.addEventListener("blur",u)},r.attachedCallback=function(){var e;if(!this.classList.contains("emby-select")){this.classList.add("emby-select");var t,a=this.ownerDocument.createElement("label");a.innerText=this.getAttribute("label")||"",a.classList.add("selectLabel"),a.htmlFor=this.id,null===(e=this.parentNode)||void 0===e||e.insertBefore(a,this),this.classList.contains("emby-select-withcolor")&&(null===(t=this.parentNode)||void 0===t||t.insertAdjacentHTML("beforeend",'
0
'))}},r.setLabel=function(e){var t;(null===(t=this.parentNode)||void 0===t?void 0:t.querySelector("label")).innerText=e},document.registerElement("emby-select",{prototype:r,extends:"select"})},76562:function(e,t,a){function n(e){return new Promise((function(t,a){var n=new FileReader;n.onload=function(e){var a,n,o,i=null===(o=null===(n=null===(a=e.target)||void 0===a?void 0:a.result)||void 0===n?void 0:n.split)||void 0===o?void 0:o.call(n,",")[1];t(i)},n.onerror=a,n.readAsDataURL(e)}))}function o(e){return new Promise((function(t,a){var n=new FileReader;n.onload=function(e){var a,n=null===(a=e.target)||void 0===a?void 0:a.result;t(n)},n.onerror=a,n.readAsText(e)}))}function i(e,t){void 0===t&&(t=1);var a=Math.log(e)/Math.log(1024)|0;return(e/Math.pow(1024,a)).toFixed(t)+" "+(a?"KMGTPEZY"[--a]+"iB":"Bytes")}a.d(t,{Qv:function(){return o},We:function(){return n},iJ:function(){return i}})}}]);