/*! For license information please see main.jellyfin.bundle.js.LICENSE.txt */ (self.webpackChunk=self.webpackChunk||[]).push([[14577],{891:function(e,t,n){"use strict";n.d(t,{K:function(){return a}});var r=n(96802),i=n(80401),o=n(69410),a=function(){var e=(0,o.gf)();return(0,i.I)({queryKey:["QuickConnect","Enabled"],queryFn:function(t){var n,i,o,a,s,l,u=t.signal;return n=e,i={signal:u},o=void 0,a=void 0,l=function(){var e;return function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=40;function a(e){var t,n,r,o={Items:[],StartIndex:0,TotalRecordCount:0};try{for(var a=i(e),s=a.next();!s.done;s=a.next()){var l=s.value;l.Items?l.TotalRecordCount?void 0!==l.StartIndex?(o.Items=null===(r=o.Items)||void 0===r?void 0:r.concat(l.Items),o.TotalRecordCount+=l.TotalRecordCount,o.StartIndex=Math.min(o.StartIndex||0,l.StartIndex)):console.log("[getItems] Retrieved StartIndex is invalid",l.StartIndex):console.log("[getItems] Retrieved TotalRecordCount is invalid",l.TotalRecordCount):console.log("[getItems] Retrieved Items array is invalid",l.Items)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o}function s(e,t,n){var i,s=null===(i=null==n?void 0:n.Ids)||void 0===i?void 0:i.split(",");if(!n||!s||s.length<=o)return e.getItems(t,n);var l=function(e,t,n){for(var i,a,s,l=r({},n),u=(null===(i=n.Ids)||void 0===i?void 0:i.split(","))||[],c=[],d=null!==(a=n.Limit)&&void 0!==a?a:1/0,f=0;fd&&(s=d);var p=u.slice(f,s);l.Ids=p.join(","),c.push(e.getItems(t,l))}return c}(e,t,n);return Promise.all(l).then(a)}},3312:function(e,t,n){"use strict";n.r(t),n.d(t,{LEGACY_PUBLIC_ROUTES:function(){return r}});var r=[{path:"addserver",pageProps:{controller:"session/addServer/index",view:"session/addServer/index.html"}},{path:"selectserver",pageProps:{controller:"session/selectServer/index",view:"session/selectServer/index.html"}},{path:"login",pageProps:{controller:"session/login/index",view:"session/login/index.html"}},{path:"forgotpassword",pageProps:{controller:"session/forgotPassword/index",view:"session/forgotPassword/index.html"}},{path:"forgotpasswordpin",pageProps:{controller:"session/resetPassword/index",view:"session/resetPassword/index.html"}}]},4877:function(e,t,n){"use strict";n.r(t),n.d(t,{LEGACY_ADMIN_ROUTES:function(){return i}});var r=n(19373),i=[{path:"networking",pageProps:{appType:r.u.Dashboard,controller:"networking",view:"networking.html"}},{path:"livetv/guide",pageProps:{appType:r.u.Dashboard,controller:"livetvguideprovider",view:"livetvguideprovider.html"}},{path:"livetv/tuner",pageProps:{appType:r.u.Dashboard,controller:"livetvtuner",view:"livetvtuner.html"}}]},5824:function(e,t,n){"use strict";n.d(t,{A:function(){return L}});var r=n(62540),i=n(68136),o=n(83273),a=n(75487),s=n(72073),l=n(63696),u=n(38829),c=n(69410),d=n(5898),f=n(38783),p=n(6460),m=n(66239),y=n(89857),h=n(4295),v=n(14380),g=n(32051),b=n(45065),S=n(29223),A=n(74156),x=n(44790),w=n(60434),P=n(80099),k=n(48402),I=n(85637),j=n(80401),T=function(){var e=(0,c.gf)().api;return(0,j.I)({queryKey:["SyncPlay","Groups"],queryFn:function(t){var n=t.signal;return function(e,t){return n=void 0,r=void 0,o=function(){return function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},_="app-sync-play-menu",M=function(e){var t,o,a=e.anchorEl,s=e.open,j=e.onMenuClose,M=E((0,l.useState)(),2),L=M[0],O=M[1],R=(0,c.gf)(),D=R.__legacyApiClient__,N=R.api,F=R.user,U=E((0,l.useState)(),2),V=U[0],B=U[1],z=Boolean(V);(0,l.useEffect)((function(){var e;O(null===(e=u.X.firstOfType(f.Q.SyncPlay))||void 0===e?void 0:e.instance)}),[]);var H=T().data,q=(0,l.useCallback)((function(){N&&F&&((0,p.u)(N).syncPlayCreateGroup({newGroupRequestDto:{GroupName:d.Ay.translate("SyncPlayGroupDefaultTitle",F.Name)}}).catch((function(e){console.error("[SyncPlayMenu] failed to create a SyncPlay group",e)})),j())}),[N,j,F]),G=(0,l.useCallback)((function(){N&&((0,p.u)(N).syncPlayLeaveGroup().catch((function(e){console.error("[SyncPlayMenu] failed to leave SyncPlay group",e)})),j())}),[N,j]),W=(0,l.useCallback)((function(e){N&&((0,p.u)(N).syncPlayJoinGroup({joinGroupRequestDto:{GroupId:e}}).catch((function(e){console.error("[SyncPlayMenu] failed to join SyncPlay group",e)})),j())}),[N,j]),Y=(0,l.useCallback)((function(){return e=void 0,t=void 0,i=function(){return function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0&&(H.forEach((function(e){var t;X.push((0,r.jsxs)(I.A,{onClick:function(){return e.GroupId&&W(e.GroupId)},children:[(0,r.jsx)(x.A,{children:(0,r.jsx)(y.A,{})}),(0,r.jsx)(w.A,{primary:e.GroupName,secondary:null===(t=e.Participants)||void 0===t?void 0:t.join(", ")})]},e.GroupId))})),X.push((0,r.jsx)(A.A,{},"sync-play-groups-divider"))),(null===(o=null==F?void 0:F.Policy)||void 0===o?void 0:o.SyncPlayAccess)===i.r.CreateAndJoinGroups&&X.push((0,r.jsxs)(I.A,{onClick:q,children:[(0,r.jsx)(x.A,{children:(0,r.jsx)(m.A,{})}),(0,r.jsx)(w.A,{primary:d.Ay.translate("LabelSyncPlayNewGroupDescription")})]},"sync-play-new-group"))):X.push((0,r.jsxs)(I.A,{disabled:!0,children:[(0,r.jsx)(x.A,{children:(0,r.jsx)(h.A,{})}),(0,r.jsx)(w.A,{primary:d.Ay.translate("LabelSyncPlayNoGroups")})]},"sync-play-unavailable"));var $=z?{"aria-labelledby":"sync-play-active-subheader",subheader:(0,r.jsx)(P.A,{component:"div",id:"sync-play-active-subheader",children:null==V?void 0:V.GroupName})}:void 0;return(0,r.jsx)(k.A,{anchorEl:a,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},id:_,keepMounted:!0,open:s,onClose:j,slotProps:{list:$},children:X})},L=function(){var e=(0,c.gf)().user,t=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}((0,l.useState)(null),2),n=t[0],p=t[1],m=Boolean(n),y=(0,l.useCallback)((function(e){p(e.currentTarget)}),[p]),h=(0,l.useCallback)((function(){p(null)}),[p]);return(null==e?void 0:e.Policy)&&e.Policy.SyncPlayAccess===i.r.None||0===u.X.ofType(f.Q.SyncPlay).length?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.A,{title:d.Ay.translate("ButtonSyncPlay"),children:(0,r.jsx)(a.A,{size:"large","aria-label":d.Ay.translate("ButtonSyncPlay"),"aria-controls":_,"aria-haspopup":"true",onClick:y,color:"inherit",children:(0,r.jsx)(o.A,{})})}),(0,r.jsx)(M,{open:m,anchorEl:n,onMenuClose:h})]})}},5898:function(e,t,n){"use strict";n.d(t,{Mo:function(){return d},Tl:function(){return A},c1:function(){return k},i5:function(){return v},jE:function(){return h}}),n(29305),n(32733),n(84701),n(14382),n(69892),n(76281),n(84734),n(44962),n(89336),n(78557),n(90076),n(95021),n(73687),n(99425),n(83994),n(93062),n(97747),n(82367);var r=n(77083),i=n(82885),o=n(44797),a=n(93721);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}(f);try{for(i.s();!(t=i.n()).done;){var o=t.value;if(e.includes(o)){m=!0;break}}}catch(e){i.e(e)}finally{i.f()}r=m?"rtl":"ltr",document.getElementsByTagName("body")[0].setAttribute("dir",r),document.getElementsByTagName("html")[0].setAttribute("dir",r),"rtl"===r&&n.e(8752).then(n.bind(n,8752))}function b(){var e,t;try{e=i.currentSettings.language()}catch(e){console.error("no language set in user settings")}g(e=e||v()),l=A(e),document.documentElement.setAttribute("lang",l);try{t=i.currentSettings.dateTimeLocale()}catch(e){console.error("no date format set in user settings")}u=t?A(t):l,(0,a.cu)(u),function(e){for(var t in p)S(p[t],e);if(e!==d)for(var n in p)S(p[n],d)}(l)}function S(e,t){return e.dictionaries[t]?Promise.resolve():function(e,t){t=A(t);var r=e.filter((function(e){return A(e.lang)===t}));return r.length||(t=t.replace(/-.*/,""),(r=e.filter((function(e){return A(e.lang)===t}))).length||(r=e.filter((function(e){return A(e.lang)===d})))),new Promise((function(e){if(r.length){var t=r[0].path;n(73125)("./".concat(t)).then((function(t){e(t)})).catch((function(){e({})}))}else e()}))}(e.translations,t).then((function(n){e.dictionaries[t]=n}))}function A(e){return e.replace("_","-").toLowerCase()}function x(e,t){e||(e=I());var n=p[e];return n?n.dictionaries[t]:{}}function w(e){p[e.name]={translations:e.strings||e.translations,dictionaries:{}}}function P(e,t){var n,i,o=x(t,y());return null!==(n=o)&&void 0!==n&&n[e]||null!==(i=o=x(t,d))&&void 0!==i&&i[e]?o[e]:(!o||(0,r.A)(o)?console.warn("Translation dictionary is empty."):console.error("Translation key is missing from dictionary: ".concat(e)),e)}function k(e,t){if(e=e.default||e,t||(t=I()),!t)throw new Error("module cannot be null or empty");var n=e.indexOf("${");if(-1===n)return e;n+=2;var r=e.indexOf("}",n);if(-1===r)return e;var i=e.substring(n,r),o=P(i,t);return k(e=e.replace("${"+i+"}",o),t)}function I(e){return e&&(c=e),c}b(),o.A.on(i.currentSettings,"change",(function(e,t){"language"!==t&&"datetimelocale"!==t||b()})),t.Ay={translate:function(e){for(var t=function(e){var t,n=e.split("#");return n.length>1&&(t=n[0],e=n[1]),P(e,t)}(e),n=1;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},v=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]
',document.body.appendChild(e),r=e),r.classList.add("mdlSpinnerActive")},hide:i};window.Loading=o,t.Ay=o},9164:function(e,t,n){"use strict";n(84734),n(86584),n(87324),n(89336),n(78557),n(67593);var r=n(36300),i=n(93599),o=[];function a(e,t,n){var r;return!1!==n&&(r=e.querySelector("*[autofocus]"))||!1!==t&&(r=h(e,1,"noautofocus")[0])?(s(r),r):null}function s(e){try{e.focus({preventScroll:i.Ay.isEnabled()})}catch(e){console.error("Error in focusManager.autoFocus: "+e)}}var l=["INPUT","TEXTAREA","SELECT","BUTTON","A"],u=["BODY","DIALOG"],c=l.map((function(e){return"INPUT"===e&&(e+=':not([type="range"]):not([type="file"])'),e+':not([tabindex="-1"]):not(:disabled)'})).join(",")+",.focusable";function d(e){var t;return-1!==l.indexOf(e.tagName)||(null===(t=e.classList)||void 0===t?void 0:t.contains("focusable"))}function f(e,t){if(e){var n=e.tagName;n&&"HTML"!==n&&"BODY"!==n||(e=t)}return e}function p(e){for(var t=e;!d(e);){var n=e.parentNode;if(!n)return f(e,t);e=n}return f(e,t)}function m(e){return null!==e.offsetParent}function y(){return o[0]||document.body}function h(e,t,n){for(var r=(e||y()).querySelectorAll(c),i=[],o=0,a=r.length;o=t))break}return i}function v(e,t){if(-1!==u.indexOf(e.tagName))return!0;var n=e.classList;if(n.contains("focuscontainer"))return!0;if(0===t){if(n.contains("focuscontainer-x"))return!0;if(n.contains("focuscontainer-left"))return!0}else if(1===t){if(n.contains("focuscontainer-x"))return!0;if(n.contains("focuscontainer-right"))return!0}else if(2===t){if(n.contains("focuscontainer-y"))return!0}else if(3===t){if(n.contains("focuscontainer-y"))return!0;if(n.contains("focuscontainer-down"))return!0}return!1}function g(e){var t;return null===(t=e.getBoundingClientRect?e.getBoundingClientRect():{top:0,left:0,width:0,height:0}).right&&((t={top:t.top,left:t.left,width:t.width,height:t.height}).right=t.left+t.width,t.bottom=t.top+t.height),t}function b(e,t,n,i){if((e=e||document.activeElement)&&(e=p(e)),n=n||(e?function(e,t){for(;!v(e,t);)if(!(e=e.parentNode))return y();return e}(e,t):y()),e&&e!=document.body){for(var o,l=r.Ay.parentWithClass(e,"focusable"),u=g(e),d=parseFloat(u.left)||0,f=parseFloat(u.top)||0,m=parseFloat(d+u.width-1)||d,h=parseFloat(f+u.height-1)||f,b=u.left+u.width/2,S=u.top+u.height/2,x=i||n.querySelectorAll(c),w=1/0,P=0,k=x.length;P=u.left)continue;if(j.right===u.right)continue;break;case 1:if(j.right<=u.right)continue;if(j.left===u.left)continue;break;case 2:if(j.top>=u.top)continue;if(j.bottom>=u.bottom)continue;break;case 3:if(j.bottom<=u.bottom)continue;if(j.top<=u.top)continue}var T=j.left,C=j.top,E=T+j.width-1,_=C+j.height-1,M=A(d,m,T,E),L=A(f,h,C,_),O=j.left+j.width/2,R=j.top+j.height/2,D=void 0,N=void 0;switch(t){case 0:D=Math.abs(d-Math.min(d,E)),N=L?0:Math.abs(S-R);break;case 1:D=Math.abs(m-Math.max(m,T)),N=L?0:Math.abs(S-R);break;case 2:N=Math.abs(f-Math.min(f,_)),D=M?0:Math.abs(b-O);break;case 3:N=Math.abs(h-Math.max(h,C)),D=M?0:Math.abs(b-O)}var F=Math.sqrt(D*D+N*N);F=e&&n<=t||r>=e&&r<=t}function A(e,t,n,r){return S(e,t,n,r)||S(n,r,e,t)}t.A={autoFocus:a,focus:s,focusableParent:p,getFocusableElements:h,moveLeft:function(e,t){b(e,0,t?t.container:null,t?t.focusableElements:null)},moveRight:function(e,t){b(e,1,t?t.container:null,t?t.focusableElements:null)},moveUp:function(e,t){b(e,2,t?t.container:null,t?t.focusableElements:null)},moveDown:function(e,t){b(e,3,t?t.container:null,t?t.focusableElements:null)},sendText:function(e){document.activeElement.value=e},isCurrentlyFocusable:function(e){var t;if(null===(t=e.classList)||void 0===t||!t.contains("focusable")){if(e.disabled)return!1;if("-1"===e.getAttribute("tabindex"))return!1;if("INPUT"===e.tagName){var n=e.type;if("range"===n)return!1;if("file"===n)return!1}}return m(e)},pushScope:function(e){o.push(e)},popScope:function(){o.length&&(o.length-=1)},focusFirst:function(e,t){for(var n=e.querySelectorAll(t),r=0,i=n.length;r=l&&a+s<=l+u}}function s(e,t,n,r){var i=a(e,t,n);r&&i.isVisible||(e.scrollTo?n?e.scrollTo(i.center,0):e.scrollTo(0,i.center):n?e.scrollLeft=Math.round(i.center):e.scrollTop=Math.round(i.center))}function l(e,t,n,r){var i=a(e,t,n);r&&i.isVisible||(e.scrollTo?n?e.scrollTo(i.start,0):e.scrollTo(0,i.start):n?e.scrollLeft=Math.round(i.start):e.scrollTop=Math.round(i.start))}function u(e,t,n){var i=r.A.focusableParent(e.target);i&&s(t,i,n)}function c(e){u(e,this,!0)}function d(e){u(e,this,!1)}var f={on:function(e,t){e.setAttribute("data-scroll-mode-".concat(t?"x":"y"),"custom"),t?i.Ay.addEventListener(e,"focus",c,{capture:!0,passive:!0}):i.Ay.addEventListener(e,"focus",d,{capture:!0,passive:!0})},off:function(e,t){e.removeAttribute("data-scroll-mode-".concat(t?"x":"y")),t?i.Ay.removeEventListener(e,"focus",c,{capture:!0,passive:!0}):i.Ay.removeEventListener(e,"focus",d,{capture:!0,passive:!0})}};t.default={getPosition:a,centerFocus:f,toCenter:s,toStart:l}},10989:function(e,t,n){"use strict";n.d(t,{If:function(){return r},Jb:function(){return i},Y_:function(){return a},wi:function(){return o}});var r=1e3,i=1e4,o=r*i,a=60*o},11167:function(e,t,n){var r={"./backdropScreensaver/plugin":[53286,86040],"./backdropScreensaver/plugin.js":[53286,86040],"./bookPlayer/plugin":[14447,64633],"./bookPlayer/plugin.js":[14447,64633],"./bookPlayer/style.scss":[19036,17084],"./bookPlayer/tableOfContents":[80245,10905],"./bookPlayer/tableOfContents.js":[80245,10905],"./bookPlayer/template.html":[68104,68672],"./chromecastPlayer/castSenderApi":[9724,6270],"./chromecastPlayer/castSenderApi.js":[9724,6270],"./chromecastPlayer/plugin":[48671,30357],"./chromecastPlayer/plugin.js":[48671,30357],"./comicsPlayer/plugin":[79145,41542],"./comicsPlayer/plugin.js":[79145,41542],"./comicsPlayer/style.scss":[63459,23831],"./experimentalWarnings/plugin":[76066,40810],"./experimentalWarnings/plugin.js":[76066,40810],"./htmlAudioPlayer/plugin":[27907,87903],"./htmlAudioPlayer/plugin.js":[27907,87903],"./htmlVideoPlayer/plugin":[57379,55931,71318],"./htmlVideoPlayer/plugin.js":[57379,55931,71318],"./htmlVideoPlayer/style.scss":[28157,98887],"./logoScreensaver/plugin":[61619,49087],"./logoScreensaver/plugin.js":[61619,49087],"./logoScreensaver/style.scss":[18640,93654],"./pdfPlayer/plugin":[38362,4836],"./pdfPlayer/plugin.js":[38362,4836],"./pdfPlayer/style.scss":[63103,71769],"./photoPlayer/plugin":[7780,70118],"./photoPlayer/plugin.js":[7780,70118],"./playAccessValidation/plugin":[8450,90186],"./playAccessValidation/plugin.js":[8450,90186],"./sessionPlayer/plugin":[9112,64706],"./sessionPlayer/plugin.js":[9112,64706],"./syncPlay/core":[99555,13151,19907,60138,10672],"./syncPlay/core/":[99555,13151,19907,60138,10672],"./syncPlay/core/Controller":[73391,94561],"./syncPlay/core/Controller.js":[73391,94561],"./syncPlay/core/Helper":[20919,65849],"./syncPlay/core/Helper.js":[20919,65849],"./syncPlay/core/Manager":[86004,13151,19907,60138],"./syncPlay/core/Manager.js":[86004,13151,19907,60138],"./syncPlay/core/PlaybackCore":[629,13151],"./syncPlay/core/PlaybackCore.js":[629,13151],"./syncPlay/core/QueueCore":[19907,19907,80835],"./syncPlay/core/QueueCore.js":[19907,19907,80835],"./syncPlay/core/Settings":[4438,14510],"./syncPlay/core/Settings.js":[4438,14510],"./syncPlay/core/index":[99555,13151,19907,60138,10672],"./syncPlay/core/index.js":[99555,13151,19907,60138,10672],"./syncPlay/core/players/GenericPlayer":[16590,2],"./syncPlay/core/players/GenericPlayer.js":[16590,2],"./syncPlay/core/players/PlayerFactory":[24255,56577],"./syncPlay/core/players/PlayerFactory.js":[24255,56577],"./syncPlay/core/timeSync/TimeSync":[67122,83354],"./syncPlay/core/timeSync/TimeSync.js":[67122,83354],"./syncPlay/core/timeSync/TimeSyncCore":[55125,96307],"./syncPlay/core/timeSync/TimeSyncCore.js":[55125,96307],"./syncPlay/core/timeSync/TimeSyncServer":[95937,49755],"./syncPlay/core/timeSync/TimeSyncServer.js":[95937,49755],"./syncPlay/plugin":[55230,13151,19907,60138,927,1680],"./syncPlay/plugin.ts":[55230,13151,19907,60138,927,1680],"./syncPlay/ui/groupSelectionMenu":[1724,45568,3460],"./syncPlay/ui/groupSelectionMenu.js":[1724,45568,3460],"./syncPlay/ui/groupSelectionMenu.scss":[12475,75637],"./syncPlay/ui/playbackPermissionManager":[39387,52011],"./syncPlay/ui/playbackPermissionManager.js":[39387,52011],"./syncPlay/ui/players/HtmlAudioPlayer":[41443,13151,19907,60138,927,39573],"./syncPlay/ui/players/HtmlAudioPlayer.js":[41443,13151,19907,60138,927,39573],"./syncPlay/ui/players/HtmlVideoPlayer":[9066,13151,19907,60138,927,40394],"./syncPlay/ui/players/HtmlVideoPlayer.js":[9066,13151,19907,60138,927,40394],"./syncPlay/ui/players/NoActivePlayer":[10699,13151,19907,60138,927],"./syncPlay/ui/players/NoActivePlayer.js":[10699,13151,19907,60138,927],"./syncPlay/ui/players/QueueManager":[16209,29593],"./syncPlay/ui/players/QueueManager.js":[16209,29593],"./syncPlay/ui/settings/SettingsEditor":[45568,45568,96084],"./syncPlay/ui/settings/SettingsEditor.js":[45568,45568,96084],"./syncPlay/ui/settings/editor.html":[70123,18895],"./youtubePlayer/plugin":[8255,70555],"./youtubePlayer/plugin.js":[8255,70555],"./youtubePlayer/style.scss":[47312,49890]};function i(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(i)}))}i.keys=function(){return Object.keys(r)},i.id=11167,e.exports=i},12446:function(e,t,n){"use strict";n.r(t),n.d(t,{ASYNC_USER_ROUTES:function(){return r}});var r=[{path:"mypreferencesmenu",page:"user/settings"},{path:"quickconnect",page:"quickConnect"},{path:"search",page:"search"},{path:"userprofile",page:"user/userprofile"}]},13258:function(e,t,n){"use strict";var r=n(62540),i=n(63696),o=n(64963);t.A=function(e){var t=e.children;return(0,i.useEffect)((function(){return function(){o.Ay.reset()}}),[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"mainAnimatedPages skinBody"}),(0,r.jsx)("div",{className:"skinBody",children:t})]})}},13615:function(e,t,n){"use strict";n(78557),n(23630),t.A={enableFullscreen:function(){var e;null!==(e=window.NativeShell)&&void 0!==e&&e.enableFullscreen&&window.NativeShell.enableFullscreen()},disableFullscreen:function(){var e;null!==(e=window.NativeShell)&&void 0!==e&&e.disableFullscreen&&window.NativeShell.disableFullscreen()},openClientSettings:function(){var e;null!==(e=window.NativeShell)&&void 0!==e&&e.openClientSettings&&window.NativeShell.openClientSettings()},openDownloadManager:function(){var e;null!==(e=window.NativeShell)&&void 0!==e&&e.openDownloadManager&&window.NativeShell.openDownloadManager()},openUrl:function(e,t){var n;null!==(n=window.NativeShell)&&void 0!==n&&n.openUrl?window.NativeShell.openUrl(e,t):window.open(e,t||"_blank")},updateMediaSession:function(e){var t;null!==(t=window.NativeShell)&&void 0!==t&&t.updateMediaSession&&window.NativeShell.updateMediaSession(e)},hideMediaSession:function(){var e;null!==(e=window.NativeShell)&&void 0!==e&&e.hideMediaSession&&window.NativeShell.hideMediaSession()},updateVolumeLevel:function(e){var t;null!==(t=window.NativeShell)&&void 0!==t&&t.updateVolumeLevel&&window.NativeShell.updateVolumeLevel(e)},downloadFiles:function(e){var t,n;return null!==(t=window.NativeShell)&&void 0!==t&&t.downloadFiles?(window.NativeShell.downloadFiles(e),!0):!(null===(n=window.NativeShell)||void 0===n||!n.downloadFile||(e.forEach((function(e){window.NativeShell.downloadFile(e)})),0))}}},13993:function(e,t,n){"use strict";n.r(t);var r=n(62540),i=n(92779),o=n(45318),a=n(63696),s=n(76617),l=n(5824),u=n(87119),c=n(55219),d=n(71286),f=n(44797),p=n(89348),m=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};t.default=function(){var e=(0,a.useRef)(document),t=m((0,a.useState)(!0),2),n=t[0],y=t[1],h=m((0,a.useState)(""),2),v=h[0],g=h[1],b=function(e,t){y(t)},S=function(e,t){g(t)};return(0,a.useEffect)((function(){var t=e.current;return t&&(f.A.on(t,d.B.SHOW_VIDEO_OSD,b),f.A.on(t,d.B.VIDEO_TITLE_CHANGE,S)),function(){t&&(f.A.off(t,d.B.SHOW_VIDEO_OSD,b),f.A.off(t,d.B.VIDEO_TITLE_CHANGE,S))}}),[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.A,{in:n,easing:"fade-out",children:(0,r.jsx)(i.A,{sx:{position:"absolute",top:0,left:0,right:0,color:"white"},children:(0,r.jsx)(u.A,{isDrawerAvailable:!1,isDrawerOpen:!1,isBackButtonAvailable:!0,isUserMenuAvailable:!1,buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.A,{}),(0,r.jsx)(s.A,{})]}),children:(0,r.jsx)(p.A,{children:v})})})}),(0,r.jsx)(c.A,{controller:"playback/video/index",view:"playback/video/index.html",type:"video-osd",isFullscreen:!0,isNowPlayingBarEnabled:!1,isThemeMediaSupported:!0})]})}},15453:function(e,t,n){"use strict";var r=n(46782),i=(n(69177),Object.create(HTMLButtonElement.prototype));i.createdCallback=function(){this.classList.add("paper-icon-button-light"),r.A.tv&&this.classList.add("show-focus")},document.registerElement("paper-icon-button-light",{prototype:i,extends:"button"})},15815:function(e,t,n){"use strict";var r=n(62540),i=n(63696),o=n(26218),a=n(51876),s=function(e){return"themes/".concat(e,"/theme.css")},l=s((0,a.x0)().id);t.A=function(e){var t=e.dashboard,n=void 0!==t&&t,a=(0,o.u)(),u=a.theme,c=a.dashboardTheme,d=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}((0,i.useState)(l),2),f=d[0],p=d[1];return(0,i.useEffect)((function(){var e=n?c:u;e&&p(s(e))}),[n,c,u]),(0,r.jsx)("link",{rel:"stylesheet",type:"text/css",href:f})}},19373:function(e,t,n){"use strict";var r;n.d(t,{u:function(){return r}}),function(e){e.Dashboard="dashboard",e.Experimental="experimental",e.Stable="stable",e.Wizard="wizard"}(r||(r={}))},21643:function(e,t,n){"use strict";n.r(t),n.d(t,{ASYNC_USER_ROUTES:function(){return i}});var r=n(19373),i=[{path:"home",type:r.u.Experimental},{path:"homevideos",type:r.u.Experimental},{path:"livetv",type:r.u.Experimental},{path:"movies",type:r.u.Experimental},{path:"music",type:r.u.Experimental},{path:"mypreferencesdisplay",page:"user/display",type:r.u.Experimental},{path:"mypreferencesmenu",page:"user/settings"},{path:"quickconnect",page:"quickConnect"},{path:"search"},{path:"tv",page:"shows",type:r.u.Experimental},{path:"userprofile",page:"user/userprofile"}]},21840:function(e,t,n){"use strict";n.r(t),n(29305),n(32733),n(84701),n(81678),n(24776),n(44962),n(4754),n(94),n(36947),n(83810),n(78557),n(90076),n(83994),n(82367);var r=n(22696),i=n.n(r),o=n(8566),a=n(79754),s=n(36300),l=n(5898),u=(n(98959),n(15453),n(10353),n(41177));function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){for(var n=0;n'),o+='
',o+='
',o+=i()(r),o+="
",o+="
",(o+='')+""}function g(e){var t;t={text:e},(0,u.A)(t)}var b=f((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,"currentDialog",void 0),p(this,"show",(function(e){var n={includeDirectories:!0};null!=(e=e||{}).includeDirectories&&(n.includeDirectories=e.includeDirectories),null!=e.includeFiles&&(n.includeFiles=e.includeFiles),function(e){return e.path?Promise.resolve(e.path):ApiClient.getJSON(ApiClient.getUrl("Environment/DefaultDirectoryBrowser")).then((function(e){return e.Path||""}),(function(){return""}))}(e).then((function(r){var o=a.default.createDialog({size:"small",removeOnClose:!0,scrollY:!1});o.classList.add("ui-body-a"),o.classList.add("background-theme-a"),o.classList.add("directoryPicker"),o.classList.add("formDialog");var u="";u+='
',u+=''),u+='

',u+=i()(e.header||"")||l.Ay.translate("HeaderSelectPath"),u+="

",u+="
",u+=function(e){var t,n="";n+='
',n+='
',!e.pathReadOnly&&e.instruction&&(n+='
',n+="".concat(i()(e.instruction),"

"),n+="
"),n+='
',n+='
',n+='
',t=!0!==e.includeFiles?"LabelFolder":"LabelPath";var r=e.pathReadOnly?" readonly":"";return n+=''),n+="
",r||(n+='')),n+="
",r||(n+='
'),n+='
',n+='"),n+="
",n+="
",n+="
",(n+="
")+""}(e),o.innerHTML=u,function(e,t,n){e.addEventListener("click",(function(t){var r=s.Ay.parentWithClass(t.target,"lnkPath");if(r){var i=r.getAttribute("data-path");r.classList.contains("lnkFile")?e.querySelector("#txtDirectoryPickerPath").value=i:h(e,i,n,!0)}})),e.addEventListener("click",(function(t){if(s.Ay.parentWithClass(t.target,"btnRefreshDirectories")){var r=e.querySelector("#txtDirectoryPickerPath").value;h(e,r,n)}})),e.addEventListener("change",(function(t){var r=s.Ay.parentWithTag(t.target,"INPUT");r&&"txtDirectoryPickerPath"===r.id&&h(e,r.value,n)})),e.querySelector("form").addEventListener("submit",(function(e){if(t.callback){var n=this.querySelector("#txtDirectoryPickerPath").value;(function(e,t,n){return n.ajax({type:"POST",url:n.getUrl("Environment/ValidatePath"),data:JSON.stringify({ValidateWriteable:t,Path:e}),contentType:"application/json"}).catch((function(e){if(e){if(404===e.status)return g(l.Ay.translate("PathNotFound")),Promise.reject();if(500===e.status)return g(t?l.Ay.translate("WriteAccessRequired"):l.Ay.translate("PathNotFound")),Promise.reject()}return Promise.resolve()}))})(n,t.validateWriteable,ApiClient).then(t.callback(n)).catch((function(){}))}return e.preventDefault(),e.stopPropagation(),!1}))}(o,e,n),o.addEventListener("close",y),a.default.open(o),o.querySelector(".btnCloseDialog").addEventListener("click",(function(){a.default.close(o)})),t.currentDialog=o,o.querySelector("#txtDirectoryPickerPath").value=r,e.pathReadOnly||h(o,r,n,!0)}))})),p(this,"close",(function(){t.currentDialog&&a.default.close(t.currentDialog)}))}));t.default=b},22043:function(e,t,n){"use strict";var r;n.d(t,{W:function(){return r}}),function(e){e[e.Local=0]="Local",e[e.Remote=1]="Remote",e[e.Manual=2]="Manual"}(r||(r={}))},22477:function(e,t,n){"use strict";n.d(t,{A:function(){return k}});var r,i,o=n(62540),a=n(63696),s=n(87404),l=n(67430),u=n(31234),c=n.n(u),d=n(22622),f=n(65242),p=n(71866),m=n(97339),y=n(84851),h=n(5898),v=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},g=function(e){var t=e.state,n=v((0,a.useState)(),2),r=n[0],i=n[1],s=v((0,a.useState)(),2),u=s[0],g=s[1],b=v((0,a.useState)(),2),S=b[0],A=b[1],x=v((0,a.useState)(!1),2),w=x[0],P=x[1],k=(0,a.useCallback)((function(){return e=void 0,t=void 0,r=function(){var e,t;return function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]jellyfin.org/downloads/server')),void A(void 0);case l.KN.Unavailable:i(h.Ay.translate("HeaderServerUnavailable")),g(void 0),A(h.Ay.translate("MessageUnableToConnectToServer"))}}),[t]),r)return(0,o.jsx)(f.A,{id:"connectionErrorPage",className:"mainAnimatedPage standalonePage",isBackButtonEnabled:!1,children:(0,o.jsxs)("div",{className:"padded-left padded-right",children:[(0,o.jsx)("h1",{children:r}),u&&(0,o.jsx)("p",{dangerouslySetInnerHTML:{__html:c().sanitize(u)},style:{maxWidth:"80ch"}}),S&&(0,o.jsx)("p",{style:{maxWidth:"80ch"},children:S}),d.g.supports(m.Y.MultiServer)&&(0,o.jsx)(y.A,{className:"raised",href:"/selectserver",children:h.Ay.translate("ButtonChangeServer")}),t===l.KN.ServerMismatch&&(0,o.jsx)(y.A,{onClick:k,style:w?{pointerEvents:"none"}:void 0,children:h.Ay.translate("ConnectAnyway")})]})})},b=n(84849),S=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},A=function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};!function(e){e.Admin="admin",e.Public="public",e.User="user",e.Wizard="wizard"}(r||(r={})),function(e){e.Home="/home",e.Login="/login",e.SelectServer="/selectserver",e.StartWizard="/wizard/start"}(i||(i={}));var w=[l.KN.ServerMismatch,l.KN.ServerUpdateNeeded,l.KN.Unavailable],P=function(e){return S(void 0,void 0,void 0,(function(){var t;return A(this,(function(n){switch(n.label){case 0:return[4,fetch("".concat(e.serverAddress(),"/System/Info/Public"),{cache:"no-cache"})];case 1:if(!(t=n.sent()).ok)throw new Error("Public system info request failed");return[2,t.json()]}}))}))},k=function(e){var t=e.level,n=void 0===t?"user":t,u=(0,s.Zp)(),c=(0,s.zy)(),d=x((0,a.useState)(),2),f=d[0],p=d[1],m=x((0,a.useState)(!0),2),y=m[0],h=m[1],v=(0,a.useCallback)((function(e){c.pathname===e?h(!1):u(e)}),[c.pathname,u]),k=(0,a.useCallback)((function(e){return S(void 0,void 0,void 0,(function(){var t;return A(this,(function(n){switch(e.State){case l.KN.SignedIn:return console.debug("[ConnectionRequired] already logged in, redirecting to home"),u(i.Home),[2];case l.KN.ServerSignIn:return c.pathname===i.Login?h(!1):(console.debug("[ConnectionRequired] not logged in, redirecting to login page",c),t=encodeURIComponent(c.pathname+c.search),u("".concat(i.Login,"?serverid=").concat(e.ApiClient.serverId(),"&url=").concat(t))),[2];case l.KN.ServerSelection:return console.debug("[ConnectionRequired] redirecting to select server page"),v(i.SelectServer),[2]}return console.warn("[ConnectionRequired] unhandled connection state",e.State),[2]}))}))}),[v,c.pathname,u]),I=(0,a.useCallback)((function(e){return S(void 0,void 0,void 0,(function(){var t,n;return A(this,(function(r){switch(r.label){case 0:if(!(t=(null==e?void 0:e.ApiClient)||l.tF.currentApiClient()))throw new Error("No ApiClient available");return[4,P(t)];case 1:return(null==(n=r.sent())?void 0:n.StartupWizardCompleted)?(console.info("[ConnectionRequired] startup wizard is complete, redirecting home"),u(i.Home),[2]):(l.tF.setLocalApiClient(t),h(!1),[2])}}))}))}),[u]),j=(0,a.useCallback)((function(e){return S(void 0,void 0,void 0,(function(){var t,n;return A(this,(function(r){switch(r.label){case 0:if(e.State!==l.KN.ServerSignIn)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,P(e.ApiClient)];case 2:return(null==(t=r.sent())?void 0:t.StartupWizardCompleted)?[3,4]:(l.tF.setLocalApiClient(e.ApiClient),console.info("[ConnectionRequired] startup wizard is not complete, redirecting there"),u(i.StartWizard),[2]);case 3:return n=r.sent(),console.error("[ConnectionRequired] checking wizard status failed",n),[2];case 4:return k(e).catch((function(e){console.error("[ConnectionRequired] failed to bounce",e)})),[2]}}))}))}),[k,u]),T=(0,a.useCallback)((function(){return S(void 0,void 0,void 0,(function(){var e,t,i,o,a,s,u;return A(this,(function(c){switch(c.label){case 0:if(e=l.tF.currentApiClient(),n!==r.Admin&&n!==r.User||(null==e?void 0:e.isLoggedIn()))return[3,5];c.label=1;case 1:return c.trys.push([1,3,,4]),console.warn("[ConnectionRequired] unauthenticated user attempted to access user route"),t=k,[4,l.tF.connect()];case 2:return t.apply(void 0,[c.sent()]).catch((function(e){console.error("[ConnectionRequired] failed to bounce",e)})),[3,4];case 3:return i=c.sent(),console.warn("[ConnectionRequired] error bouncing from user route",i),[3,4];case 4:return[2];case 5:if(n!==r.Admin)return[3,11];c.label=6;case 6:return c.trys.push([6,10,,11]),[4,null==e?void 0:e.getCurrentUser()];case 7:return o=c.sent(),(null===(u=null==o?void 0:o.Policy)||void 0===u?void 0:u.IsAdministrator)?[3,9]:(console.warn("[ConnectionRequired] normal user attempted to access admin route"),a=k,[4,l.tF.connect()]);case 8:return a.apply(void 0,[c.sent()]).catch((function(e){console.error("[ConnectionRequired] failed to bounce",e)})),[2];case 9:return[3,11];case 10:return s=c.sent(),console.warn("[ConnectionRequired] error bouncing from admin route",s),[2];case 11:return h(!1),[2]}}))}))}),[k,n]);return(0,a.useEffect)((function(){var e=l.tF.currentApiClient();Promise.resolve(l.tF.firstConnection?null:l.tF.connect()).then((function(t){console.debug("[ConnectionRequired] connection state",null==t?void 0:t.State),l.tF.firstConnection=!0,w.includes(null==t?void 0:t.State)?p(t.State):n===r.Wizard?I(t).catch((function(e){console.error("[ConnectionRequired] could not validate wizard status",e)})):t&&t.State!==l.KN.SignedIn&&!(null==e?void 0:e.isLoggedIn())?j(t).catch((function(e){console.error("[ConnectionRequired] could not start wizard",e)})):T().catch((function(e){console.error("[ConnectionRequired] could not validate user access",e)}))})).catch((function(e){console.error("[ConnectionRequired] failed to connect",e)}))}),[j,I,n,T]),f?(0,o.jsx)(g,{state:f}):y?(0,o.jsx)(b.A,{}):(0,o.jsx)(s.sv,{})}},22622:function(e,t,n){"use strict";n.d(t,{g:function(){return k}}),n(14382),n(84734),n(44962),n(74576),n(78557),n(90076),n(45309),n(95021),n(73687),n(83994),n(93062),n(97747),n(23630),n(82367);var r=n(90381),i=n(34789),o=n(44797),a=n(58180),s=n(51876),l=n(5898),u=n(57634),c=n(97339),d=n(85025),f={tizen:"Samsung Smart TV",web0s:"LG Smart TV",titanos:"Titan OS",vega:"Vega OS",operaTv:"Opera TV",xboxOne:"Xbox One",ps4:"Sony PS4",chrome:"Chrome",edgeChromium:"Edge Chromium",edge:"Edge",firefox:"Firefox",opera:"Opera",safari:"Safari"};function p(){if(!b){var e="_deviceId2";(b=r.A.get(e))||((t=[]).push(navigator.userAgent),t.push((new Date).getTime()),b=window.btoa?btoa(t.join("|")).replaceAll("=","1"):(new Date).getTime(),r.A.set(e,b))}var t;return b}function m(){if(S)return S;for(var e in S="Web Browser",f)if(i.A[e]){S=f[e];break}return i.A.ipad?S+=" iPad":i.A.iphone?S+=" iPhone":i.A.android&&(S+=" Android"),S}function y(){I&&(I=!1,o.A.trigger(k,"resume"))}function h(){I||(I=!0)}var v,g,b,S,A=(v=[],navigator.share&&v.push(c.Y.Sharing),i.A.edgeUwp||i.A.tv||i.A.xboxOne||i.A.ps4||v.push(c.Y.FileDownload),(i.A.operaTv||i.A.tizen||i.A.orsay||i.A.web0s)&&v.push(c.Y.Exit),i.A.operaTv||i.A.tizen||i.A.orsay||i.A.web0s||i.A.ps4||v.push(c.Y.ExternalLinks),(i.A.edgeUwp||i.A.tizen||i.A.web0s||i.A.orsay||i.A.operaTv||i.A.ps4||i.A.xboxOne||!i.A.mobile)&&(v.push(c.Y.HtmlAudioAutoplay),v.push(c.Y.HtmlVideoAutoplay)),function(){if(i.A.tv)return!1;var e=document.documentElement;return!!(e.requestFullscreen||e.mozRequestFullScreen||e.webkitRequestFullscreen||e.msRequestFullscreen||document.createElement("video").webkitEnterFullscreen)}()&&v.push(c.Y.Fullscreen),(i.A.tv||i.A.xboxOne||i.A.ps4||i.A.mobile||i.A.ipad)&&v.push(c.Y.PhysicalVolumeControl),i.A.tv||i.A.xboxOne||i.A.ps4||v.push(c.Y.RemoteControl),i.A.operaTv||i.A.tizen||i.A.orsay||i.A.web0s||i.A.edgeUwp||v.push(c.Y.RemoteVideo),v.push(c.Y.DisplayLanguage),v.push(c.Y.DisplayMode),v.push(c.Y.TargetBlank),v.push(c.Y.Screensaver),s.$A().then((function(e){e&&v.push(c.Y.MultiServer)})),!i.A.orsay&&(i.A.firefox||i.A.ps4||i.A.edge||function(){try{var e=document.createElement("video"),t=document.createElement("style");t.textContent="video::cue {background: inherit}",document.body.appendChild(t),document.body.appendChild(e);var n=window.getComputedStyle(e,"::cue").background;return document.body.removeChild(t),document.body.removeChild(e),!!n.length}catch(e){return console.error("error detecting cue support: "+e),!1}}())&&v.push(c.Y.SubtitleAppearance),i.A.orsay||v.push(c.Y.SubtitleBurnIn),i.A.tv||i.A.ps4||i.A.xboxOne||v.push(c.Y.FileInput),(i.A.chrome||i.A.edgeChromium)&&v.push(c.Y.Chromecast),v);function x(){try{var e;null!==(e=window.NativeShell)&&void 0!==e&&null!==(e=e.AppHost)&&void 0!==e&&e.exit?window.NativeShell.AppHost.exit():i.A.tizen?tizen.application.getCurrentApplication().exit():i.A.web0s?webOS.platformBack():window.close()}catch(e){console.error("error closing application: "+e)}}var w,P,k={getWindowState:function(){return document.windowState||"Normal"},setWindowState:function(){alert("setWindowState is not supported and should not be called")},exit:function(){window.appMode&&i.A.tizen?g||n.e(62882).then(n.bind(n,62882)).then((function(e){g=e.show({title:l.Ay.translate("MessageConfirmAppExit"),items:[{id:"yes",name:l.Ay.translate("Yes")},{id:"no",name:l.Ay.translate("No")}]}).then((function(e){"yes"===e&&x()})).finally((function(){g=null}))})):x()},supports:function(e){return window.NativeShell?window.NativeShell.AppHost.supports(e):-1!==A.indexOf(e.toLowerCase())},preferVisualCards:i.A.android||i.A.chrome,getDefaultLayout:function(){return window.NativeShell?window.NativeShell.AppHost.getDefaultLayout():d.S.Experimental},getDeviceProfile:function(e){return new Promise((function(t){var n,o;if(window.NativeShell)o=window.NativeShell.AppHost.getDeviceProfile(u.A,"10.12.0");else{var s=function(e){var t=[];return e&&a.JQ(e.RunTimeTicks,e.MediaType)&&(i.A.edge&&t.push("mp3"),i.A.edgeChromium||(t.push("ac3"),t.push("eac3")),i.A.chrome||i.A.edgeChromium||i.A.firefox||t.push("opus")),{enableMkvProgressive:!1,disableHlsVideoAudioCodecs:t}}(e);o=(0,u.A)(s)}var l=r.A.maxVideoWidth(),c=l<0?null===(n=k.screen())||void 0===n?void 0:n.maxAllowedWidth:l;if(c){var d={Condition:"LessThanEqual",Property:"Width",Value:c.toString(),IsRequired:!1};r.A.limitSupportedVideoResolution()&&o.CodecProfiles.push({Type:"Video",Conditions:[d]}),o.TranscodingProfiles.forEach((function(e){"Video"===e.Type&&(e.Conditions=(e.Conditions||[]).filter((function(e){return"Width"!==e.Property})),e.Conditions.push(d))}))}var f=r.A.preferredTranscodeVideoCodec();f&&o.TranscodingProfiles.forEach((function(e){if("Video"===e.Type){var t=e.VideoCodec.split(","),n=t.indexOf(f);-1!==n&&(t.splice(n,1),t.unshift(f),e.VideoCodec=t.join(","))}}));var p=r.A.preferredTranscodeVideoAudioCodec();p&&o.TranscodingProfiles.forEach((function(e){if("Video"===e.Type){var t=e.AudioCodec.split(","),n=t.indexOf(p);-1!==n&&(t.splice(n,1),t.unshift(p),e.AudioCodec=t.join(","))}})),t(o)}))},init:function(){return window.NativeShell?window.NativeShell.AppHost.init():{deviceId:p(),deviceName:m()}},deviceName:function(){var e;return null!==(e=window.NativeShell)&&void 0!==e&&null!==(e=e.AppHost)&&void 0!==e&&e.deviceName?window.NativeShell.AppHost.deviceName():m()},deviceId:function(){var e;return null!==(e=window.NativeShell)&&void 0!==e&&null!==(e=e.AppHost)&&void 0!==e&&e.deviceId?window.NativeShell.AppHost.deviceId():p()},appName:function(){var e;return null!==(e=window.NativeShell)&&void 0!==e&&null!==(e=e.AppHost)&&void 0!==e&&e.appName?window.NativeShell.AppHost.appName():"Jellyfin Web"},appVersion:function(){var e;return null!==(e=window.NativeShell)&&void 0!==e&&null!==(e=e.AppHost)&&void 0!==e&&e.appVersion?window.NativeShell.AppHost.appVersion():"10.12.0"},getPushTokenInfo:function(){return{}},setUserScalable:function(e){if(!i.A.tv){var t=e?"width=device-width, initial-scale=1, minimum-scale=1, user-scalable=yes":"width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no";document.querySelector("meta[name=viewport]").setAttribute("content",t)}},screen:function(){var e,t=null,n=null===(e=window.NativeShell)||void 0===e?void 0:e.AppHost;return null!=n&&n.screen?t=n.screen():window.screen&&!i.A.tv&&(t={width:Math.floor(window.screen.width*window.devicePixelRatio),height:Math.floor(window.screen.height*window.devicePixelRatio)}),t&&(t.maxAllowedWidth=Math.max(t.width,t.height)),t}},I=!1;void 0!==document.hidden?(w="hidden",P="visibilitychange"):void 0!==document.webkitHidden&&(w="webkitHidden",P="webkitvisibilitychange"),document.addEventListener(P,(function(){document[w]?h():y()}),!1),window.addEventListener&&(window.addEventListener("focus",y),window.addEventListener("blur",h))},23648:function(e,t,n){"use strict";n.d(t,{Hc:function(){return b}}),n(29305),n(32733),n(84701),n(2623),n(84734),n(44962),n(10849),n(70389),n(36947),n(26437),n(52697),n(78557),n(90076),n(83994),n(82367);var r=n(65369),i=n(11444),o=n(1164),a=n(86084),s=n(45251),l=n(53096),u=n(22622),c=n(97339),d=n(5898),f=n(67430),p=n(75384);function m(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var l=r&&r.prototype instanceof s?r:s,u=Object.create(l.prototype);return y(u,"_invoke",function(n,r,i){var o,s,l,u=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,s=0,l=e,f.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!d&&u&&!i&&t3?(i=m===r)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=n<2&&pr||r>m)&&(o[4]=n,o[5]=r,f.n=m,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,c,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,m),s=c,l=m;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==a)break}catch(t){o=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(n,i,o),!0),u}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(y(t={},r,(function(){return this})),t),d=u.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,y(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=u,y(d,"constructor",u),y(u,"constructor",l),l.displayName="GeneratorFunction",y(u,i,"GeneratorFunction"),y(d),y(d,i,"Generator"),y(d,r,(function(){return this})),y(d,"toString",(function(){return"[object Generator]"})),(m=function(){return{w:o,m:f}})()}function y(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}y=function(e,t,n,r){if(t)i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var o=function(t,n){y(e,t,(function(e){return this._invoke(t,n,e)}))};o("next",0),o("throw",1),o("return",2)}},y(e,t,n,r)}function h(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function v(e,t){var n=t.Type;return"UserRootFolder"!==n&&"UserView"!==n&&"Program"!==n&&"Timer"!==n&&"SeriesTimer"!==n&&("Recording"!==t.Type||"Completed"===t.Status)&&!g(t)&&e.Policy.IsAdministrator}function g(e){return(null==e?void 0:e.Id)&&"string"==typeof e.Id&&0===e.Id.indexOf("local")}function b(e,t){return S.apply(this,arguments)}function S(){var e;return e=m().m((function e(t,n){var r,i,o,a,s;return m().w((function(e){for(;;)switch(e.n){case 0:return r=f.tF.getApiClient(n.ServerId),i=(0,p.C)(r),e.p=1,e.n=2,(0,l.C)(i).getPlaylistUser({userId:t.Id,playlistId:n.Id});case 2:return o=e.v,a=o.data,e.a(2,!!a.CanEdit);case 3:return e.p=3,s=e.v,console.error("Failed to get playlist permissions",s),e.a(2,!1)}}),e,null,[[1,3]])})),S=function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){h(o,r,i,a,s,"next",e)}function s(e){h(o,r,i,a,s,"throw",e)}a(void 0)}))},S.apply(this,arguments)}t.Ay={getDisplayName:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("null item passed into getDisplayName");"Timer"===e.Type&&(e=e.ProgramInfo||e);var n=("Program"!==e.Type&&"Recording"!==e.Type||!e.IsSeries&&!e.EpisodeTitle?e.Name:e.EpisodeTitle)||"";if("TvChannel"===e.Type)return e.ChannelNumber?e.ChannelNumber+" "+n:n;if("Episode"===e.Type&&0===e.ParentIndexNumber)n=d.Ay.translate("ValueSpecialEpisodeName",n);else if(("Episode"===e.Type||"Program"===e.Type||"Recording"===e.Type)&&null!=e.IndexNumber&&null!=e.ParentIndexNumber&&!1!==t.includeIndexNumber){var r=e.IndexNumber,i=r,o=" - ";!1!==t.includeParentInfo?i="S"+e.ParentIndexNumber+":E"+i:o=". ",e.IndexNumberEnd&&(i+="-"+(r=e.IndexNumberEnd)),i&&(n=n?i+o+n:i)}return n},supportsAddingToCollection:function(e){return!("Recording"===e.Type&&"Completed"!==e.Status||e.CollectionType||-1!==["Genre","MusicGenre","Studio","UserView","CollectionFolder","Audio","Program","Timer","SeriesTimer"].indexOf(e.Type)||"Photo"===e.MediaType||g(e))},supportsAddingToPlaylist:function(e){return"Program"!==e.Type&&"TvChannel"!==e.Type&&"Timer"!==e.Type&&"SeriesTimer"!==e.Type&&"Photo"!==e.MediaType&&("Recording"!==e.Type||"Completed"===e.Status)&&!g(e)&&e.CollectionType!==r.X.Livetv&&(e.MediaType||e.IsFolder||"Genre"===e.Type||"MusicGenre"===e.Type||"MusicArtist"===e.Type)},isLocalItem:g,canIdentify:function(e,t){var n=t.Type;return("Movie"===n||"Trailer"===n||"Series"===n||"BoxSet"===n||"Person"===n||"Book"===n||"MusicAlbum"===n||"MusicArtist"===n||"MusicVideo"===n)&&e.Policy.IsAdministrator&&!g(t)},canEdit:v,canEditImages:function(e,t){var n=t.Type;return"Photo"!==t.MediaType&&("UserView"===n?!!e.Policy.IsAdministrator:("Recording"!==t.Type||"Completed"===t.Status)&&"Timer"!==n&&"SeriesTimer"!==n&&v(e,t)&&!g(t))},canEditSubtitles:function(e,t){if(t.MediaType!==s.z.Video)return!1;var n=t.Type;return(n!==i.D.Recording||t.Status===a.k.Completed)&&n!==i.D.TvChannel&&n!==i.D.Program&&"Timer"!==n&&"SeriesTimer"!==n&&n!==i.D.UserRootFolder&&n!==i.D.UserView&&!g(t)&&t.LocationType!==o.i.Virtual&&(e.Policy.EnableSubtitleManagement||e.Policy.IsAdministrator)},canEditLyrics:function(e,t){return t.MediaType===s.z.Audio&&!g(t)&&e.Policy.IsAdministrator},canShare:function(e,t){return"Program"!==e.Type&&"TvChannel"!==e.Type&&"Timer"!==e.Type&&"SeriesTimer"!==e.Type&&("Recording"!==e.Type||"Completed"===e.Status)&&!g(e)&&t.Policy.EnablePublicSharing&&u.g.supports(c.Y.Sharing)},enableDateAddedDisplay:function(e){return!e.IsFolder&&e.MediaType&&"Program"!==e.Type&&"TvChannel"!==e.Type&&"Trailer"!==e.Type},canMarkPlayed:function(e){if("Program"===e.Type)return!1;if("Video"===e.MediaType){if("TvChannel"!==e.Type)return!0}else if("Audio"===e.MediaType&&"AudioBook"===e.Type)return!0;return"Series"===e.Type||"Season"===e.Type||"BoxSet"===e.Type||"Book"===e.MediaType},canRate:function(e){return"Program"!==e.Type&&"Timer"!==e.Type&&"SeriesTimer"!==e.Type&&"CollectionFolder"!==e.Type&&"UserView"!==e.Type&&"Channel"!==e.Type&&e.UserData},canConvert:function(e,t){if(!t.Policy.EnableMediaConversion)return!1;if(g(e))return!1;var n=e.MediaType;if("Book"===n||"Photo"===n||"Audio"===n)return!1;if(e.CollectionType===r.X.Livetv)return!1;var i=e.Type;return!("Channel"===i||"Person"===i||"Year"===i||"Program"===i||"Timer"===i||"SeriesTimer"===i||"Virtual"===e.LocationType&&!e.IsFolder||e.IsPlaceHolder)},canRefreshMetadata:function(e,t){return!!t.Policy.IsAdministrator&&e.CollectionType!==r.X.Livetv&&!("Timer"===e.Type||"SeriesTimer"===e.Type||"Program"===e.Type||"TvChannel"===e.Type||"Recording"===e.Type&&"Completed"!==e.Status||g(e))},supportsMediaSourceSelection:function(e){return"Video"===e.MediaType&&"TvChannel"!==e.Type&&!(!e.MediaSources||1===e.MediaSources.length&&"Placeholder"===e.MediaSources[0].Type)&&(null!=e.EnableMediaSourceDisplay?!!e.EnableMediaSourceDisplay:!e.SourceType||"Library"===e.SourceType)},sortTracks:function(e,t){var n=e.IsExternal-t.IsExternal;return 0!=n||0!=(n=t.IsForced-e.IsForced)||0!=(n=t.IsDefault-e.IsDefault)?n:e.Index-t.Index}}},24639:function(e,t,n){"use strict";n(29305),n(32733),n(84701),n(2623),n(24776),n(14382),n(44962),n(86584),n(10849),n(70389),n(36947),n(26437),n(52697),n(78557),n(90076),n(83994),n(64062),n(23630),n(82367),n(21973),n(63960),n(63855),n(75507),n(86684),n(91315),n(74288),n(36956),n(63220),n(90883),n(79909),n(69785),n(45958),n(79237),n(29379),n(39603),n(82118),n(84238);var r=n(63696),i=n(7470),o=n(67430),a=n(22622),s=n(84069),l=n(8566),u=n(38829),c=n(70267),d=n(97339),f=n(5898),p=["af","ar","be-by","bg-bg","bn_bd","ca","cs","cy","da","de","el","en-gb","en-us","eo","es","es_419","es-ar","es_do","es-mx","et","eu","fa","fi","fil","fr","fr-ca","gl","gsw","he","hi-in","hr","hu","id","it","ja","kk","ko","lt-lt","lv","mr","ms","nb","nl","nn","pl","pr","pt","pt-br","pt-pt","ro","ru","sk","sl-si","sq","sv","ta","th","tr","uk","ur_pk","vi","zh-cn","zh-hk","zh-tw"].map((function(e){return{lang:e,path:"".concat(e,".json")}})),m=n(83237),y=n(34789),h=n(74550),v=n(51876),g=n(54048),b=n(89100),S=n(44797),A=n(62540),x=n(9790),w=n(84757),P=n(69410),k=n(28626),I=n(60182),j=n(31297),T=n(59084),C=window.Proxy&&!y.A.tv,E=function(){return(0,A.jsxs)(x.Ht,{client:j.q,children:[(0,A.jsx)(P.Kv,{children:(0,A.jsx)(k.w,{children:(0,A.jsx)(I.AQ,{children:(0,A.jsx)(T.A,{})})})}),C&&(0,A.jsx)(w.E,{initialIsOpen:!1})]})},_=(n(10353),n(66911)),M=n(75384),L=n(39738);document.addEventListener("viewshow",(function(e){var t,n=(null===(t=e.detail)||void 0===t?void 0:t.params)||{},r=n.serverId,i=n.id;r&&i&&function(e,t){var n,r,i,a;n=this,r=void 0,a=function(){var n,r,i,a,s,l;return function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]3?(i=m===r)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=n<2&&pr||r>m)&&(o[4]=n,o[5]=r,f.n=m,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,c,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,m),s=c,l=m;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==a)break}catch(t){o=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(n,i,o),!0),u}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(B(t={},r,(function(){return this})),t),d=u.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,B(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=u,B(d,"constructor",u),B(u,"constructor",l),l.displayName="GeneratorFunction",B(u,i,"GeneratorFunction"),B(d),B(d,i,"Generator"),B(d,r,(function(){return this})),B(d,"toString",(function(){return"[object Generator]"})),(V=function(){return{w:o,m:f}})()}function B(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}B=function(e,t,n,r){if(t)i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var o=function(t,n){B(e,t,(function(e){return this._invoke(t,n,e)}))};o("next",0),o("throw",1),o("return",2)}},B(e,t,n,r)}function z(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}var H=[];function q(e,t){var n=e.filter((function(e){return e.MediaType===D.z.Video?F.currentSettings.enableThemeVideos():F.currentSettings.enableThemeSongs()}));if(n.length){if(!O&&L.f.isPlaying())return;H=n.map((function(e){return e.Id})),n.forEach((function(e){e.playOptions={fullscreen:!1,enableRemotePlayers:!1}})),L.f.play({items:n,aspectRatio:"cover",fullscreen:!1,enableRemotePlayers:!1}).then((function(){O=t}))}else G()}function G(){O&&L.f.stop(),O=null}var W=[U.u.CollectionFolder,U.u.UserView,U.u.Person,U.u.Program,U.u.TvChannel,U.u.Channel,U.u.SeriesTimer];function Y(){var e;return e=V().m((function e(t,n){var r,i,a,s,l,u,c,d,f;return V().w((function(e){for(;;)switch(e.n){case 0:return r=o.tF.getApiClient(t),i=(0,M.C)(r),a=r.getCurrentUserId(),e.p=1,e.n=2,j.q.fetchQuery((0,_.I)(i,n,a));case 2:if(!(l=e.v).CollectionType){e.n=3;break}return G(),e.a(2);case 3:if(!W.includes(l.Type)){e.n=4;break}return G(),e.a(2);case 4:return e.n=5,(0,N.Q)(i).getThemeMedia({userId:a,itemId:l.Id,inheritFromParent:!0,sortBy:[R.B.Random]});case 5:u=e.v,c=u.data,(d=F.currentSettings.enableThemeVideos()&&null!==(s=c.ThemeVideosResult)&&void 0!==s&&null!==(s=s.Items)&&void 0!==s&&s.length?c.ThemeVideosResult:c.ThemeSongsResult).OwnerId!==O&&q(d.Items,d.OwnerId),e.n=7;break;case 6:e.p=6,f=e.v,console.error("[ThemeMediaPlayer] failed to load theme media",f);case 7:return e.a(2)}}),e,null,[[1,6]])})),Y=function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){z(o,r,i,a,s,"next",e)}function s(e){z(o,r,i,a,s,"throw",e)}a(void 0)}))},Y.apply(this,arguments)}document.addEventListener("viewshow",(function(e){var t,n=(null===(t=e.detail)||void 0===t?void 0:t.params)||{},r=n.serverId,i=n.id;r&&i?function(e,t){Y.apply(this,arguments)}(r,i):(e.detail.options||{}).supportsThemeMedia||q([],null)}),!0),S.A.on(L.f,"playbackstart",(function(e,t){var n=L.f.currentItem(t);-1==H.indexOf(n.Id)&&(O=null)}));var Q=n(39641);Q.A.setTheme(F.theme()).then((function(){return document.body.classList.add("force-scroll")})),S.A.on(o.tF,"localusersignedin",(function(){Q.A.setTheme(F.theme())})),(0,b.pageClassOn)("viewbeforeshow","page",(function(){this.classList.contains("type-interior")?Q.A.setTheme(F.dashboardTheme()):Q.A.setTheme(F.theme())})),n(40787),n(69892),n(89336),n(95021),n(73687);var K=n(38783),J=n(38490);function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(i=m===r)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=n<2&&pr||r>m)&&(o[4]=n,o[5]=r,f.n=m,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,c,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,m),s=c,l=m;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==a)break}catch(t){o=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(n,i,o),!0),u}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(te(t={},r,(function(){return this})),t),d=u.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,te(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=u,te(d,"constructor",u),te(u,"constructor",l),l.displayName="GeneratorFunction",te(u,i,"GeneratorFunction"),te(d),te(d,i,"Generator"),te(d,r,(function(){return this})),te(d,"toString",(function(){return"[object Generator]"})),(ee=function(){return{w:o,m:f}})()}function te(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}te=function(e,t,n,r){if(t)i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var o=function(t,n){te(e,t,(function(e){return this._invoke(t,n,e)}))};o("next",0),o("throw",1),o("return",2)}},te(e,t,n,r)}function ne(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function re(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){ne(o,r,i,a,s,"next",e)}function s(e){ne(o,r,i,a,s,"throw",e)}a(void 0)}))}}function ie(){return(ie=re(ee().m((function e(){var t;return ee().w((function(e){for(;;)switch(e.n){case 0:return console.info("[".concat("jellyfin-web","]\nversion: ").concat("10.12.0","\ncommit: ").concat("c9d70d742e","\nbuild: ").concat("Release")),window.Events=S.A,window.TaskButton=g.A,(0,b.pageClassOn)("viewshow","standalonePage",(function(){document.querySelector(".skinHeader").classList.add("noHeaderRight")})),(0,b.pageClassOn)("viewhide","standalonePage",(function(){document.querySelector(".skinHeader").classList.remove("noHeaderRight")})),e.n=1,a.g.init();case 1:return e.n=2,(0,b.serverAddress)();case 2:return(t=e.v)&&o.tF.initApiClient(t),(0,m.n_)(),e.n=3,f.Ay.defaultModule("core"),f.Ay.loadStrings({name:"core",translations:p});case 3:return S.A.on(o.tF,"localusersignedin",f.Ay.updateCurrentCulture),S.A.on(o.tF,"localusersignedout",f.Ay.updateCurrentCulture),y.A.tv&&!y.A.android?(console.debug("using system fonts with explicit sizes"),n.e(84501).then(n.bind(n,84501))):(console.debug("using default fonts"),n.e(25348).then(n.bind(n,25348)),n.e(73560).then(n.bind(n,73560))),y.A.iOS&&n.e(66923).then(n.bind(n,66923)),e.n=4,oe();case 4:return S.A.on(a.g,"resume",(function(){var e;null===(e=o.tF.currentApiClient())||void 0===e||e.ensureWebSocket()})),o.tF.getApiClients().forEach((function(e){S.A.off(e,"requestfail",c.appRouter.onRequestFail),S.A.on(e,"requestfail",c.appRouter.onRequestFail)})),S.A.on(o.tF,"apiclientcreated",(function(e,t){S.A.off(t,"requestfail",c.appRouter.onRequestFail),S.A.on(t,"requestfail",c.appRouter.onRequestFail)})),e.n=5,se();case 5:y.A.tv||y.A.xboxOne||y.A.ps4||Promise.all([n.e(12011),n.e(55802),n.e(57949),n.e(14245)]).then(n.bind(n,35300)),a.g.supports(d.Y.RemoteControl)&&(Promise.resolve().then(n.bind(n,86663)),n.e(28567).then(n.bind(n,28567))),a.g.supports(d.Y.PhysicalVolumeControl)&&!y.A.touch||n.e(91737).then(n.bind(n,91737)),y.A.tv||y.A.xboxOne||(n.e(22424).then(n.bind(n,22424)),navigator.serviceWorker&&"cordova"!==window.appMode&&"android"!==window.appMode?navigator.serviceWorker.register("serviceworker.js").then((function(){return console.log("serviceWorker registered")})).catch((function(e){return console.log("error registering serviceWorker: "+e)})):console.warn("serviceWorker unsupported"),window.Notification&&n.e(44184).then(n.bind(n,78983))),h.Ay.enable(),s.default.enable();case 6:return e.a(2)}}),e)})))).apply(this,arguments)}function oe(){return ae.apply(this,arguments)}function ae(){return(ae=re(ee().m((function e(){var t,n;return ee().w((function(e){for(;;)switch(e.n){case 0:return console.groupCollapsed("loading installed plugins"),console.dir(u.X),e.n=1,(0,v.xy)();case 1:return t=e.v,a.g.supports(d.Y.RemoteControl)?y.A.chrome||y.A.edgeChromium||y.A.opera||(t=t.filter((function(e){return!e.startsWith("chromecastPlayer")}))):t=t.filter((function(e){return!e.startsWith("sessionPlayer")&&!e.startsWith("chromecastPlayer")})),window.NativeShell&&(t=t.concat(window.NativeShell.getPlugins())),e.p=2,e.n=3,Promise.all(t.map((function(e){return u.X.loadPlugin(e)})));case 3:console.debug("finished loading plugins"),e.n=5;break;case 4:e.p=4,n=e.v,console.warn("failed loading plugins",n);case 5:console.groupEnd("loading installed plugins");case 6:return e.a(2)}}),e,null,[[2,4]])})))).apply(this,arguments)}function se(){return le.apply(this,arguments)}function le(){return(le=re(ee().m((function e(){var t;return ee().w((function(e){for(;;)switch(e.n){case 0:(t=document.getElementById("reactRoot")).innerHTML="",l.Ay.show(),(0,i.H)(t).render(r.createElement(E,null));case 1:return e.a(2)}}),e)})))).apply(this,arguments)}S.A.on(L.f,"playbackstop",(function(e,t){var n=t.state;n.NowPlayingItem&&"Video"==n.NowPlayingItem.MediaType&&(Z=(new Date).getTime())})),new function(){var e,t=this;function n(){e&&(console.debug("Hiding screensaver"),e.hide().then((function(){document.body.classList.remove("screensaver-noScroll")})),e=null),window.removeEventListener("click",n,!0),window.removeEventListener("mousemove",n,!0),window.removeEventListener("keydown",n,!0)}this.isShowing=function(){return null!=e},this.show=function(){var t,r=o.tF.currentApiClient();null!=r&&r.isLoggedIn()&&(t=!0);var i=function(e){var t;try{t=F.get("screensaver",!1)}catch(n){t=e?"backdropscreensaver":"logoscreensaver"}var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return X(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(u.X.ofType(K.Q.Screensaver));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.id===t)return i}}catch(e){r.e(e)}finally{r.f()}return null}(t);i&&function(t){if(e)throw new Error("An existing screensaver is already active.");console.debug("Showing screensaver "+t.name),document.body.classList.add("screensaver-noScroll"),t.show(),e=t,!1!==t.hideOnClick&&window.addEventListener("click",n,!0),!1!==t.hideOnMouse&&window.addEventListener("mousemove",n,!0),!1!==t.hideOnKey&&window.addEventListener("keydown",n,!0)}(i)},this.hide=function(){n()},setInterval((function(){t.isShowing()||J.default.idleTime()<$()||(new Date).getTime()-Z<$()||L.f.isPlayingVideo()&&!L.f.paused()||t.show()}),5e3)},n(10736),function(){ie.apply(this,arguments)}()},24786:function(e,t,n){"use strict";n.r(t),n.d(t,{ASYNC_USER_ROUTES:function(){return r.ASYNC_USER_ROUTES}});var r=n(21643)},26218:function(e,t,n){"use strict";n.d(t,{u:function(){return a},z:function(){return o}});var r=n(77402),i=n(28626),o="dark";function a(){var e=(0,i.Q)(),t=e.theme,n=e.dashboardTheme,a=(0,r.U)().defaultTheme;return{theme:t||(null==a?void 0:a.id)||o,dashboardTheme:n||(null==a?void 0:a.id)||o}}},27570:function(e,t,n){var r={"./_lib/buildFormatLongFn/index.js":[37658,7,37658],"./_lib/buildLocalizeFn/index.js":[94160,7,94160],"./_lib/buildMatchFn/index.js":[7184,7,7184],"./_lib/buildMatchPatternFn/index.js":[83518,7,83518],"./af/_lib/formatDistance/index.js":[82393,7,82393],"./af/_lib/formatLong/index.js":[70356,7,70356],"./af/_lib/formatRelative/index.js":[62654,7,62654],"./af/_lib/localize/index.js":[79870,7,79870],"./af/_lib/match/index.js":[25242,7,25242],"./af/index.js":[53687,7,53687],"./ar-DZ/_lib/formatDistance/index.js":[31402,7,31402],"./ar-DZ/_lib/formatLong/index.js":[42635,7,42635],"./ar-DZ/_lib/formatRelative/index.js":[79657,7,79657],"./ar-DZ/_lib/localize/index.js":[6753,7,6753],"./ar-DZ/_lib/match/index.js":[61695,7,61695],"./ar-DZ/index.js":[5692,7,5692],"./ar-EG/_lib/formatDistance/index.js":[92364,7,92364],"./ar-EG/_lib/formatLong/index.js":[45101,7,45101],"./ar-EG/_lib/formatRelative/index.js":[59871,7,59871],"./ar-EG/_lib/localize/index.js":[73775,7,73775],"./ar-EG/_lib/match/index.js":[73073,7,73073],"./ar-EG/index.js":[77350,7,77350],"./ar-MA/_lib/formatDistance/index.js":[25742,7,25742],"./ar-MA/_lib/formatLong/index.js":[53823,7,53823],"./ar-MA/_lib/formatRelative/index.js":[83461,7,83461],"./ar-MA/_lib/localize/index.js":[63525,7,63525],"./ar-MA/_lib/match/index.js":[66955,7,66955],"./ar-MA/index.js":[33792,7,33792],"./ar-SA/_lib/formatDistance/index.js":[69260,7,69260],"./ar-SA/_lib/formatLong/index.js":[12557,7,12557],"./ar-SA/_lib/formatRelative/index.js":[41247,7,41247],"./ar-SA/_lib/localize/index.js":[67503,7,67503],"./ar-SA/_lib/match/index.js":[32689,7,32689],"./ar-SA/index.js":[39718,7,39718],"./ar-TN/_lib/formatDistance/index.js":[32894,7,32894],"./ar-TN/_lib/formatLong/index.js":[93551,7,93551],"./ar-TN/_lib/formatRelative/index.js":[51797,7,51797],"./ar-TN/_lib/localize/index.js":[73653,7,73653],"./ar-TN/_lib/match/index.js":[1051,7,1051],"./ar-TN/index.js":[80144,7,80144],"./ar/_lib/formatDistance/index.js":[8117,7,8117],"./ar/_lib/formatLong/index.js":[4800,7,4800],"./ar/_lib/formatRelative/index.js":[37202,7,37202],"./ar/_lib/localize/index.js":[83370,7,83370],"./ar/_lib/match/index.js":[34286,7,34286],"./ar/index.js":[91763,7,91763],"./az/_lib/formatDistance/index.js":[653,7,653],"./az/_lib/formatLong/index.js":[83208,7,83208],"./az/_lib/formatRelative/index.js":[80106,7,80106],"./az/_lib/localize/index.js":[85234,7,85234],"./az/_lib/match/index.js":[15190,7,15190],"./az/index.js":[13115,7,13115],"./be-tarask/_lib/formatDistance/index.js":[6646,7,40085,22063],"./be-tarask/_lib/formatLong/index.js":[79735,7,40085,95105],"./be-tarask/_lib/formatRelative/index.js":[8013,7,90609,52154,43509,22252,40085,7256,97672,44444],"./be-tarask/_lib/localize/index.js":[45821,7,40085,19863],"./be-tarask/_lib/match/index.js":[19363,7,40085,27046],"./be-tarask/index.js":[87096,7,90609,52154,43509,22252,40085,7256,97672,77301],"./be/_lib/formatDistance/index.js":[76463,7,94388,99682],"./be/_lib/formatLong/index.js":[24218,7,94388,17486],"./be/_lib/formatRelative/index.js":[65088,7,90609,52154,43509,22252,94388,7256,97672,11587],"./be/_lib/localize/index.js":[68160,7,94388,42244],"./be/_lib/match/index.js":[38504,7,94388,4665],"./be/index.js":[52469,7,90609,52154,43509,22252,94388,7256,97672,33968],"./bg/_lib/formatDistance/index.js":[36117,7,36117],"./bg/_lib/formatLong/index.js":[62368,7,62368],"./bg/_lib/formatRelative/index.js":[65202,7,90609,65202],"./bg/_lib/localize/index.js":[91786,7,91786],"./bg/_lib/match/index.js":[7662,7,7662],"./bg/index.js":[86707,7,90609,86707],"./bn/_lib/formatDistance/index.js":[14866,7,14866],"./bn/_lib/formatLong/index.js":[6339,7,6339],"./bn/_lib/formatRelative/index.js":[97073,7,97073],"./bn/_lib/localize/index.js":[82681,9,82681],"./bn/_lib/match/index.js":[76068,7,76068],"./bn/index.js":[22356,7,22356],"./bs/_lib/formatDistance/index.js":[10393,7,10393],"./bs/_lib/formatLong/index.js":[27924,7,27924],"./bs/_lib/formatRelative/index.js":[7006,7,7006],"./bs/_lib/localize/index.js":[71934,7,71934],"./bs/_lib/match/index.js":[98618,7,98618],"./bs/index.js":[48631,7,48631],"./ca/_lib/formatDistance/index.js":[242,7,242],"./ca/_lib/formatLong/index.js":[95171,7,95171],"./ca/_lib/formatRelative/index.js":[80625,7,80625],"./ca/_lib/localize/index.js":[41241,7,41241],"./ca/_lib/match/index.js":[24855,7,24855],"./ca/index.js":[29108,7,29108],"./cs/_lib/formatDistance/index.js":[49516,7,49516],"./cs/_lib/formatLong/index.js":[96077,7,96077],"./cs/_lib/formatRelative/index.js":[54847,7,54847],"./cs/_lib/localize/index.js":[72143,7,72143],"./cs/_lib/match/index.js":[35601,7,35601],"./cs/index.js":[92102,7,92102],"./cy/_lib/formatDistance/index.js":[53610,7,53610],"./cy/_lib/formatLong/index.js":[17355,7,17355],"./cy/_lib/formatRelative/index.js":[30121,7,30121],"./cy/_lib/localize/index.js":[59553,7,59553],"./cy/_lib/match/index.js":[64671,7,64671],"./cy/index.js":[12060,7,12060],"./da/_lib/formatDistance/index.js":[25137,7,25137],"./da/_lib/formatLong/index.js":[26908,7,26908],"./da/_lib/formatRelative/index.js":[16566,7,16566],"./da/_lib/localize/index.js":[41286,7,41286],"./da/_lib/match/index.js":[38082,7,38082],"./da/index.js":[60607,7,60607],"./de-AT/_lib/localize/index.js":[64790,7,64790],"./de-AT/index.js":[24879,7,24879],"./de/_lib/formatDistance/index.js":[37821,7,37821],"./de/_lib/formatLong/index.js":[74776,7,74776],"./de/_lib/formatRelative/index.js":[99994,7,77613],"./de/_lib/localize/index.js":[87074,7,87074],"./de/_lib/match/index.js":[67942,7,67942],"./de/index.js":[78283,7,78283],"./el/_lib/formatDistance/index.js":[89903,7,89903],"./el/_lib/formatLong/index.js":[47066,7,47066],"./el/_lib/formatRelative/index.js":[53408,7,53408],"./el/_lib/localize/index.js":[6368,7,6368],"./el/_lib/match/index.js":[17864,7,17864],"./el/index.js":[88981,7,88981],"./en-AU/_lib/formatLong/index.js":[42351,7,42351],"./en-AU/index.js":[44336,7,44336],"./en-CA/_lib/formatDistance/index.js":[19292,7,19292],"./en-CA/_lib/formatLong/index.js":[37117,7,37117],"./en-CA/index.js":[59670,7,59670],"./en-GB/_lib/formatLong/index.js":[35172,7,35172],"./en-GB/index.js":[15015,7,15015],"./en-IE/index.js":[81992,7,81992],"./en-IN/_lib/formatLong/index.js":[65470,7,65470],"./en-IN/index.js":[30745,7,30745],"./en-NZ/_lib/formatLong/index.js":[37625,7,37625],"./en-NZ/index.js":[36962,7,36962],"./en-US/_lib/formatDistance/index.js":[39232,7,39232],"./en-US/_lib/formatLong/index.js":[40465,7,40465],"./en-US/_lib/formatRelative/index.js":[18395,7,18395],"./en-US/_lib/localize/index.js":[48979,7,48979],"./en-US/_lib/match/index.js":[68413,7,68413],"./en-US/index.js":[59258,7,59258],"./en-ZA/_lib/formatLong/index.js":[51664,7,51664],"./en-ZA/index.js":[83619,7,83619],"./eo/_lib/formatDistance/index.js":[59290,7,59290],"./eo/_lib/formatLong/index.js":[87803,7,87803],"./eo/_lib/formatRelative/index.js":[97689,7,97689],"./eo/_lib/localize/index.js":[72241,7,72241],"./eo/_lib/match/index.js":[47279,7,47279],"./eo/index.js":[26668,7,26668],"./es/_lib/formatDistance/index.js":[88918,7,88918],"./es/_lib/formatLong/index.js":[44119,7,44119],"./es/_lib/formatRelative/index.js":[90285,7,90285],"./es/_lib/localize/index.js":[59498,7,59498],"./es/_lib/match/index.js":[47203,7,47203],"./es/index.js":[95992,7,95992],"./et/_lib/formatDistance/index.js":[10455,7,10455],"./et/_lib/formatLong/index.js":[40946,7,40946],"./et/_lib/formatRelative/index.js":[98216,7,98216],"./et/_lib/localize/index.js":[54552,7,54552],"./et/_lib/match/index.js":[32896,7,32896],"./et/index.js":[65005,7,65005],"./eu/_lib/formatDistance/index.js":[90156,7,90156],"./eu/_lib/formatLong/index.js":[25709,7,25709],"./eu/_lib/formatRelative/index.js":[57663,7,57663],"./eu/_lib/localize/index.js":[89775,7,89775],"./eu/_lib/match/index.js":[2782,7,80401],"./eu/index.js":[16614,7,16614],"./fa-IR/_lib/formatDistance/index.js":[8833,7,8833],"./fa-IR/_lib/formatLong/index.js":[83116,7,83116],"./fa-IR/_lib/formatRelative/index.js":[52294,7,52294],"./fa-IR/_lib/localize/index.js":[28982,7,28982],"./fa-IR/_lib/match/index.js":[54738,7,54738],"./fa-IR/index.js":[12143,7,12143],"./fi/_lib/formatDistance/index.js":[40247,7,40247],"./fi/_lib/formatLong/index.js":[6546,7,6546],"./fi/_lib/formatRelative/index.js":[75336,7,75336],"./fi/_lib/localize/index.js":[47352,7,47352],"./fi/_lib/match/index.js":[65312,7,65312],"./fi/index.js":[56941,7,56941],"./fr-CA/_lib/formatLong/index.js":[66124,7,66124],"./fr-CA/index.js":[70831,7,70831],"./fr-CH/_lib/formatLong/index.js":[93855,7,93855],"./fr-CH/_lib/formatRelative/index.js":[46629,7,46629],"./fr-CH/index.js":[68448,7,68448],"./fr/_lib/formatDistance/index.js":[90810,7,90810],"./fr/_lib/formatLong/index.js":[77499,7,77499],"./fr/_lib/formatRelative/index.js":[14553,7,14553],"./fr/_lib/localize/index.js":[73041,7,73041],"./fr/_lib/match/index.js":[59631,7,59631],"./fr/index.js":[83756,7,83756],"./fy/_lib/formatDistance/index.js":[84903,7,84903],"./fy/_lib/formatLong/index.js":[5218,7,5218],"./fy/_lib/formatRelative/index.js":[44574,7,89336],"./fy/_lib/localize/index.js":[3080,7,3080],"./fy/_lib/match/index.js":[50352,7,50352],"./fy/index.js":[45085,7,45085],"./gd/_lib/formatDistance/index.js":[9205,7,9205],"./gd/_lib/formatLong/index.js":[14112,7,14112],"./gd/_lib/formatRelative/index.js":[35090,7,35090],"./gd/_lib/localize/index.js":[44426,7,44426],"./gd/_lib/match/index.js":[60910,7,60910],"./gd/index.js":[84019,7,84019],"./gl/_lib/formatDistance/index.js":[34157,7,34157],"./gl/_lib/formatLong/index.js":[24872,7,24872],"./gl/_lib/formatRelative/index.js":[56778,7,56778],"./gl/_lib/localize/index.js":[70546,7,70546],"./gl/_lib/match/index.js":[52470,7,52470],"./gl/index.js":[78651,7,78651],"./gu/_lib/formatDistance/index.js":[26954,7,26954],"./gu/_lib/formatLong/index.js":[16235,7,16235],"./gu/_lib/formatRelative/index.js":[75209,7,75209],"./gu/_lib/localize/index.js":[88449,7,88449],"./gu/_lib/match/index.js":[57407,7,57407],"./gu/index.js":[76476,7,76476],"./he/_lib/formatDistance/index.js":[42033,7,42033],"./he/_lib/formatLong/index.js":[25148,7,25148],"./he/_lib/formatRelative/index.js":[46902,7,46902],"./he/_lib/localize/index.js":[49702,7,49702],"./he/_lib/match/index.js":[25890,7,25890],"./he/index.js":[71103,7,71103],"./hi/_lib/formatDistance/index.js":[29477,7,29477],"./hi/_lib/formatLong/index.js":[28048,7,28048],"./hi/_lib/formatRelative/index.js":[70242,7,70242],"./hi/_lib/localize/index.js":[49882,9,49882],"./hi/_lib/match/index.js":[8734,7,8734],"./hi/index.js":[59459,7,59459],"./hr/_lib/formatDistance/index.js":[8892,7,8892],"./hr/_lib/formatLong/index.js":[59613,7,59613],"./hr/_lib/formatRelative/index.js":[13231,7,13231],"./hr/_lib/localize/index.js":[56127,7,56127],"./hr/_lib/match/index.js":[68385,7,68385],"./hr/index.js":[42870,7,42870],"./ht/_lib/formatDistance/index.js":[13734,7,13734],"./ht/_lib/formatLong/index.js":[85447,7,85447],"./ht/_lib/formatRelative/index.js":[31421,7,31421],"./ht/_lib/localize/index.js":[685,7,685],"./ht/_lib/match/index.js":[80083,7,80083],"./ht/index.js":[7720,7,7720],"./hu/_lib/formatDistance/index.js":[63585,7,63585],"./hu/_lib/formatLong/index.js":[83180,7,83180],"./hu/_lib/formatRelative/index.js":[7046,7,7046],"./hu/_lib/localize/index.js":[28662,7,28662],"./hu/_lib/match/index.js":[22770,7,22770],"./hu/index.js":[31759,7,31759],"./hy/_lib/formatDistance/index.js":[30869,7,30869],"./hy/_lib/formatLong/index.js":[26368,7,26368],"./hy/_lib/formatRelative/index.js":[56754,7,56754],"./hy/_lib/localize/index.js":[37290,7,37290],"./hy/_lib/match/index.js":[91054,7,91054],"./hy/index.js":[17427,7,17427],"./id/_lib/formatDistance/index.js":[49771,7,49771],"./id/_lib/formatLong/index.js":[72422,7,72422],"./id/_lib/formatRelative/index.js":[91684,7,91684],"./id/_lib/localize/index.js":[6140,7,6140],"./id/_lib/match/index.js":[78588,7,78588],"./id/index.js":[26273,7,26273],"./is/_lib/formatDistance/index.js":[44418,7,44418],"./is/_lib/formatLong/index.js":[82067,7,82067],"./is/_lib/formatRelative/index.js":[76059,7,31297],"./is/_lib/localize/index.js":[4969,7,4969],"./is/_lib/match/index.js":[91719,7,91719],"./is/index.js":[56068,7,56068],"./it-CH/_lib/formatLong/index.js":[40592,7,40592],"./it-CH/index.js":[61027,7,90609,15686],"./it/_lib/formatDistance/index.js":[59867,7,59867],"./it/_lib/formatLong/index.js":[95926,7,95926],"./it/_lib/formatRelative/index.js":[20404,7,90609,45315],"./it/_lib/localize/index.js":[13356,7,13356],"./it/_lib/match/index.js":[10092,7,10092],"./it/index.js":[95697,7,90609,89268],"./ja-Hira/_lib/formatDistance/index.js":[9684,7,9684],"./ja-Hira/_lib/formatLong/index.js":[36293,7,36293],"./ja-Hira/_lib/formatRelative/index.js":[94247,7,94247],"./ja-Hira/_lib/localize/index.js":[88711,7,88711],"./ja-Hira/_lib/match/index.js":[87241,7,87241],"./ja-Hira/index.js":[81790,7,81790],"./ja/_lib/formatDistance/index.js":[91163,7,91163],"./ja/_lib/formatLong/index.js":[45654,7,45654],"./ja/_lib/formatRelative/index.js":[77236,7,77236],"./ja/_lib/localize/index.js":[10540,7,10540],"./ja/_lib/match/index.js":[4588,7,4588],"./ja/index.js":[56785,7,56785],"./ka/_lib/formatDistance/index.js":[52154,7,29773],"./ka/_lib/formatLong/index.js":[29083,7,29083],"./ka/_lib/formatRelative/index.js":[62265,7,62265],"./ka/_lib/localize/index.js":[12849,7,12849],"./ka/_lib/match/index.js":[99932,7,77551],"./ka/index.js":[6828,7,6828],"./kk/_lib/formatDistance/index.js":[25404,7,28629,66825],"./kk/_lib/formatLong/index.js":[9021,7,28629,39867],"./kk/_lib/formatRelative/index.js":[87631,7,90609,28629,33188],"./kk/_lib/localize/index.js":[79839,7,28629,75101],"./kk/_lib/match/index.js":[83457,7,28629,71808],"./kk/index.js":[72278,7,90609,28629,82728],"./km/_lib/formatDistance/index.js":[31974,7,31974],"./km/_lib/formatLong/index.js":[25671,7,25671],"./km/_lib/formatRelative/index.js":[66429,7,66429],"./km/_lib/localize/index.js":[48557,7,48557],"./km/_lib/match/index.js":[78995,7,78995],"./km/index.js":[79336,7,79336],"./kn/_lib/formatDistance/index.js":[68971,7,68971],"./kn/_lib/formatLong/index.js":[48230,7,48230],"./kn/_lib/formatRelative/index.js":[21252,7,21252],"./kn/_lib/localize/index.js":[76892,7,76892],"./kn/_lib/match/index.js":[86479,7,8860],"./kn/index.js":[75681,7,75681],"./ko/_lib/formatDistance/index.js":[3888,7,3888],"./ko/_lib/formatLong/index.js":[39233,7,39233],"./ko/_lib/formatRelative/index.js":[3083,7,3083],"./ko/_lib/localize/index.js":[62083,7,62083],"./ko/_lib/match/index.js":[45645,7,45645],"./ko/index.js":[6282,7,6282],"./lb/_lib/formatDistance/index.js":[94728,7,94728],"./lb/_lib/formatLong/index.js":[5289,7,5289],"./lb/_lib/formatRelative/index.js":[12323,7,12323],"./lb/_lib/localize/index.js":[45995,7,45995],"./lb/_lib/match/index.js":[73557,7,73557],"./lb/index.js":[59186,7,59186],"./lt/_lib/formatDistance/index.js":[59034,7,59034],"./lt/_lib/formatLong/index.js":[89083,7,89083],"./lt/_lib/formatRelative/index.js":[21721,7,21721],"./lt/_lib/localize/index.js":[61745,7,61745],"./lt/_lib/match/index.js":[88559,7,88559],"./lt/index.js":[8140,7,8140],"./lv/_lib/formatDistance/index.js":[87652,7,87652],"./lv/_lib/formatLong/index.js":[11061,7,11061],"./lv/_lib/formatRelative/index.js":[84567,7,90609,27114],"./lv/_lib/localize/index.js":[59127,7,81508],"./lv/_lib/match/index.js":[33625,7,33625],"./lv/index.js":[79534,7,90609,70525],"./mk/_lib/formatDistance/index.js":[68134,7,68134],"./mk/_lib/formatLong/index.js":[72327,7,72327],"./mk/_lib/formatRelative/index.js":[32669,7,90609,34624],"./mk/_lib/localize/index.js":[17133,7,17133],"./mk/_lib/match/index.js":[87219,7,87219],"./mk/index.js":[91752,7,90609,12551],"./mn/_lib/formatDistance/index.js":[69773,7,69773],"./mn/_lib/formatLong/index.js":[36104,7,36104],"./mn/_lib/formatRelative/index.js":[51844,7,7082],"./mn/_lib/localize/index.js":[68402,7,68402],"./mn/_lib/match/index.js":[15126,7,15126],"./mn/index.js":[67515,7,67515],"./ms/_lib/formatDistance/index.js":[49182,7,49182],"./ms/_lib/formatLong/index.js":[21935,7,21935],"./ms/_lib/formatRelative/index.js":[68085,7,68085],"./ms/_lib/localize/index.js":[58389,7,58389],"./ms/_lib/match/index.js":[66907,7,66907],"./ms/index.js":[13872,7,13872],"./mt/_lib/formatDistance/index.js":[18591,7,18591],"./mt/_lib/formatLong/index.js":[86442,7,86442],"./mt/_lib/formatRelative/index.js":[48016,7,48016],"./mt/_lib/localize/index.js":[53872,7,53872],"./mt/_lib/match/index.js":[1912,7,1912],"./mt/index.js":[54693,7,54693],"./nb/_lib/formatDistance/index.js":[42546,7,42546],"./nb/_lib/formatLong/index.js":[55075,7,55075],"./nb/_lib/formatRelative/index.js":[63025,7,63025],"./nb/_lib/localize/index.js":[41049,7,41049],"./nb/_lib/match/index.js":[58807,7,58807],"./nb/index.js":[84020,7,84020],"./nl-BE/_lib/formatDistance/index.js":[11762,7,11762],"./nl-BE/_lib/formatLong/index.js":[93763,7,93763],"./nl-BE/_lib/formatRelative/index.js":[15889,7,15889],"./nl-BE/_lib/localize/index.js":[79033,7,79033],"./nl-BE/_lib/match/index.js":[76183,7,76183],"./nl-BE/index.js":[40852,7,40852],"./nl/_lib/formatDistance/index.js":[20472,7,20472],"./nl/_lib/formatLong/index.js":[73913,7,73913],"./nl/_lib/formatRelative/index.js":[19187,7,19187],"./nl/_lib/localize/index.js":[78747,7,78747],"./nl/_lib/match/index.js":[81477,7,81477],"./nl/index.js":[33858,7,33858],"./nn/_lib/formatDistance/index.js":[45198,7,45198],"./nn/_lib/formatLong/index.js":[63039,7,63039],"./nn/_lib/formatRelative/index.js":[2917,7,2917],"./nn/_lib/localize/index.js":[72389,7,72389],"./nn/_lib/match/index.js":[20779,7,20779],"./nn/index.js":[6464,7,6464],"./oc/_lib/formatDistance/index.js":[50304,7,50304],"./oc/_lib/formatLong/index.js":[35569,7,35569],"./oc/_lib/formatRelative/index.js":[29467,7,29467],"./oc/_lib/localize/index.js":[84499,7,84499],"./oc/_lib/match/index.js":[88637,7,88637],"./oc/index.js":[87738,7,87738],"./pl/_lib/formatDistance/index.js":[18934,7,18934],"./pl/_lib/formatLong/index.js":[1367,7,1367],"./pl/_lib/formatRelative/index.js":[97293,7,90609,69520],"./pl/_lib/localize/index.js":[31773,7,31773],"./pl/_lib/match/index.js":[54147,7,54147],"./pl/index.js":[18264,7,90609,10647],"./pt-BR/_lib/formatDistance/index.js":[87717,7,87717],"./pt-BR/_lib/formatLong/index.js":[50256,7,50256],"./pt-BR/_lib/formatRelative/index.js":[24450,7,24450],"./pt-BR/_lib/localize/index.js":[7802,7,7802],"./pt-BR/_lib/match/index.js":[78654,7,78654],"./pt-BR/index.js":[4003,7,4003],"./pt/_lib/formatDistance/index.js":[47886,7,47886],"./pt/_lib/formatLong/index.js":[46655,7,46655],"./pt/_lib/formatRelative/index.js":[62373,7,62373],"./pt/_lib/localize/index.js":[23845,7,46226],"./pt/_lib/match/index.js":[9611,7,9611],"./pt/index.js":[71680,7,71680],"./ro/_lib/formatDistance/index.js":[71805,7,71805],"./ro/_lib/formatLong/index.js":[4952,7,4952],"./ro/_lib/formatRelative/index.js":[33978,7,33978],"./ro/_lib/localize/index.js":[85794,7,85794],"./ro/_lib/match/index.js":[64422,7,64422],"./ro/index.js":[49931,7,49931],"./ru/_lib/formatDistance/index.js":[95887,7,19156,89206],"./ru/_lib/formatLong/index.js":[3322,7,19156,62248],"./ru/_lib/formatRelative/index.js":[43040,7,90609,19156,10807],"./ru/_lib/localize/index.js":[96672,7,19156,97482],"./ru/_lib/match/index.js":[40968,7,19156,49427],"./ru/index.js":[65685,7,90609,19156,60347],"./sk/_lib/formatDistance/index.js":[27892,7,27892],"./sk/_lib/formatLong/index.js":[73957,7,73957],"./sk/_lib/formatRelative/index.js":[24999,7,90609,53402],"./sk/_lib/localize/index.js":[46516,7,24135],"./sk/_lib/match/index.js":[85065,7,85065],"./sk/index.js":[65758,7,90609,74317],"./sl/_lib/formatDistance/index.js":[94809,7,94809],"./sl/_lib/formatLong/index.js":[58292,7,58292],"./sl/_lib/formatRelative/index.js":[82718,7,82718],"./sl/_lib/localize/index.js":[42206,7,42206],"./sl/_lib/match/index.js":[67322,7,67322],"./sl/index.js":[81508,7,59127],"./sq/_lib/formatDistance/index.js":[16914,7,16914],"./sq/_lib/formatLong/index.js":[45859,7,45859],"./sq/_lib/formatRelative/index.js":[93969,7,93969],"./sq/_lib/localize/index.js":[72409,7,72409],"./sq/_lib/match/index.js":[3767,7,3767],"./sq/index.js":[34644,7,34644],"./sr-Latn/_lib/formatDistance/index.js":[46783,7,46783],"./sr-Latn/_lib/formatLong/index.js":[17290,7,17290],"./sr-Latn/_lib/formatRelative/index.js":[54384,7,54384],"./sr-Latn/_lib/localize/index.js":[8528,7,8528],"./sr-Latn/_lib/match/index.js":[57688,7,57688],"./sr-Latn/index.js":[36165,7,36165],"./sr/_lib/formatDistance/index.js":[74535,7,74535],"./sr/_lib/formatLong/index.js":[77826,7,77826],"./sr/_lib/formatRelative/index.js":[78968,7,78968],"./sr/_lib/localize/index.js":[93384,7,93384],"./sr/_lib/match/index.js":[57104,7,57104],"./sr/index.js":[21789,7,21789],"./sv/_lib/formatDistance/index.js":[29035,7,29035],"./sv/_lib/formatLong/index.js":[1286,7,1286],"./sv/_lib/formatRelative/index.js":[87300,7,87300],"./sv/_lib/localize/index.js":[86748,7,86748],"./sv/_lib/match/index.js":[8444,7,8444],"./sv/index.js":[79681,7,79681],"./ta/_lib/formatDistance/index.js":[31553,7,62934,43015],"./ta/_lib/formatLong/index.js":[27180,7,62934,21933],"./ta/_lib/formatRelative/index.js":[75014,7,62934,65396],"./ta/_lib/localize/index.js":[42454,7,62934,9387],"./ta/_lib/match/index.js":[99378,7,62934,37522],"./ta/index.js":[91407,7,62934,332],"./te/_lib/formatDistance/index.js":[23789,7,23789],"./te/_lib/formatLong/index.js":[97480,7,97480],"./te/_lib/formatRelative/index.js":[62762,7,62762],"./te/_lib/localize/index.js":[60850,7,60850],"./te/_lib/match/index.js":[59222,7,59222],"./te/index.js":[55355,7,55355],"./th/_lib/formatDistance/index.js":[16526,7,16526],"./th/_lib/formatLong/index.js":[27711,7,27711],"./th/_lib/formatRelative/index.js":[4069,7,4069],"./th/_lib/localize/index.js":[60389,7,60389],"./th/_lib/match/index.js":[25995,7,25995],"./th/index.js":[65920,7,65920],"./tr/_lib/formatDistance/index.js":[59456,7,59456],"./tr/_lib/formatLong/index.js":[89009,7,89009],"./tr/_lib/formatRelative/index.js":[38619,7,38619],"./tr/_lib/localize/index.js":[98931,7,98931],"./tr/_lib/match/index.js":[83357,7,83357],"./tr/index.js":[87034,7,87034],"./ug/_lib/formatDistance/index.js":[93634,7,93634],"./ug/_lib/formatLong/index.js":[37491,7,37491],"./ug/_lib/formatRelative/index.js":[68481,7,68481],"./ug/_lib/localize/index.js":[73769,7,73769],"./ug/_lib/match/index.js":[51239,7,51239],"./ug/index.js":[21188,7,21188],"./uk/_lib/formatDistance/index.js":[93406,7,64983,96612],"./uk/_lib/formatLong/index.js":[60143,7,64983,44314],"./uk/_lib/formatRelative/index.js":[24085,7,90609,52154,43509,22252,7256,64983,97672,74231],"./uk/_lib/localize/index.js":[57365,7,64983,31768],"./uk/_lib/match/index.js":[83035,7,64983,15141],"./uk/index.js":[74544,7,90609,52154,43509,22252,7256,64983,97672],"./uz-Cyrl/_lib/formatDistance/index.js":[93958,7,93958],"./uz-Cyrl/_lib/formatLong/index.js":[16327,7,16327],"./uz-Cyrl/_lib/formatRelative/index.js":[7389,7,7389],"./uz-Cyrl/_lib/localize/index.js":[82381,7,82381],"./uz-Cyrl/_lib/match/index.js":[66995,7,66995],"./uz-Cyrl/index.js":[36392,7,36392],"./uz/_lib/formatDistance/index.js":[30793,7,30793],"./uz/_lib/formatLong/index.js":[76004,7,76004],"./uz/_lib/formatRelative/index.js":[94734,7,94734],"./uz/_lib/localize/index.js":[40622,7,40622],"./uz/_lib/match/index.js":[37418,7,37418],"./uz/index.js":[87399,7,87399],"./vi/_lib/formatDistance/index.js":[75783,7,75783],"./vi/_lib/formatLong/index.js":[1986,7,1986],"./vi/_lib/formatRelative/index.js":[16504,7,16504],"./vi/_lib/localize/index.js":[53736,7,53736],"./vi/_lib/match/index.js":[67248,7,67248],"./vi/index.js":[2077,7,2077],"./zh-CN/_lib/formatDistance/index.js":[94238,7,94238],"./zh-CN/_lib/formatLong/index.js":[6223,7,6223],"./zh-CN/_lib/formatRelative/index.js":[13141,7,90609,13960],"./zh-CN/_lib/localize/index.js":[22837,7,22837],"./zh-CN/_lib/match/index.js":[48315,7,48315],"./zh-CN/index.js":[57488,7,90609,90207],"./zh-HK/_lib/formatDistance/index.js":[53054,7,53054],"./zh-HK/_lib/formatLong/index.js":[13135,7,13135],"./zh-HK/_lib/formatRelative/index.js":[88309,7,88309],"./zh-HK/_lib/localize/index.js":[22197,7,22197],"./zh-HK/_lib/match/index.js":[46555,7,46555],"./zh-HK/index.js":[1488,7,1488],"./zh-TW/_lib/formatDistance/index.js":[21654,7,21654],"./zh-TW/_lib/formatLong/index.js":[26839,7,26839],"./zh-TW/_lib/formatRelative/index.js":[39373,7,39373],"./zh-TW/_lib/localize/index.js":[79357,7,79357],"./zh-TW/_lib/match/index.js":[62275,7,62275],"./zh-TW/index.js":[1368,7,1368]};function i(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return Promise.all(t.slice(2).map(n.e)).then((function(){return n.t(i,16|t[1])}))}i.keys=function(){return Object.keys(r)},i.id=27570,e.exports=i},28626:function(e,t,n){"use strict";n.d(t,{Q:function(){return f},w:function(){return p}});var r=n(62540),i=n(63696),o=n(5898),a=n(82885),s=n(44797),l=n(69410),u=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},c={CustomCss:"customCss",DisableCustomCss:"disableCustomCss",Theme:"appTheme",DashboardTheme:"dashboardTheme",DateTimeLocale:"datetimelocale",Language:"language"},d=(0,i.createContext)({disableCustomCss:!1}),f=function(){return(0,i.useContext)(d)},p=function(e){var t=e.children,n=u((0,i.useState)(),2),f=n[0],p=n[1],m=u((0,i.useState)(!1),2),y=m[0],h=m[1],v=u((0,i.useState)(),2),g=v[0],b=v[1],S=u((0,i.useState)(),2),A=S[0],x=S[1],w=u((0,i.useState)(),2),P=w[0],k=w[1],I=u((0,i.useState)(o.Mo),2),j=I[0],T=I[1],C=(0,l.gf)().user,E=(0,i.useMemo)((function(){return{customCss:f,disableCustomCss:y,theme:g,dashboardTheme:A,dateTimeLocale:P,locale:j}}),[f,y,g,A,P,j]),_=(0,i.useCallback)((function(){p(a.currentSettings.customCss()),h(a.currentSettings.disableCustomCss()),b(a.currentSettings.theme()),x(a.currentSettings.dashboardTheme()),k(a.currentSettings.dateTimeLocale()),T(a.currentSettings.language())}),[]),M=(0,i.useCallback)((function(e,t){t&&Object.values(c).includes(t)&&_()}),[_]);return(0,i.useEffect)((function(){return s.A.on(a.currentSettings,"change",M),function(){s.A.off(a.currentSettings,"change",M)}}),[M]),(0,i.useEffect)((function(){_()}),[_,C]),(0,r.jsx)(d.Provider,{value:E,children:t})}},29379:function(e,t,n){n(78557),n(90076),function(e){"use strict";var t=e.prototype,n=t.play;t.play=function(){try{var e=n.apply(this,arguments);return"function"==typeof(null==e?void 0:e.then)?e:Promise.resolve()}catch(e){return Promise.reject(e)}}}(HTMLMediaElement)},29561:function(e,t,n){var r={"./asyncRoutes":[24786],"./asyncRoutes/":[24786],"./asyncRoutes/index":[24786],"./asyncRoutes/index.ts":[24786],"./asyncRoutes/user":[21643],"./asyncRoutes/user.ts":[21643],"./home":[52824,45642,4113,45568,73233,81954,27962],"./home.tsx":[52824,4113,38244],"./homevideos":[46365,45642,23247,60815,81771,29808,16304,9886,55931,96820,49092,12011,24468,4113,36934,99883,37470],"./homevideos/":[46365,45642,23247,60815,81771,29808,16304,9886,55931,96820,49092,12011,24468,4113,36934,99883,37470],"./homevideos/index":[46365,45642,23247,60815,81771,29808,16304,9886,55931,96820,49092,12011,24468,4113,36934,99883,37470],"./homevideos/index.tsx":[46365,45642,23247,60815,81771,29808,16304,9886,55931,96820,49092,12011,24468,4113,36934,99883,37470],"./legacyRoutes":[77285],"./legacyRoutes/":[77285],"./legacyRoutes/index":[77285],"./legacyRoutes/index.ts":[77285],"./legacyRoutes/public":[3312],"./legacyRoutes/public.ts":[3312],"./legacyRoutes/user":[38274],"./legacyRoutes/user.ts":[38274],"./livetv":[86548,45642,23247,60815,81771,29808,16304,9886,55931,96820,49092,12011,24468,4113,36934,99883,73567],"./livetv/":[86548,45642,23247,60815,81771,29808,16304,9886,55931,96820,49092,12011,24468,4113,36934,99883,73567],"./livetv/index":[86548,45642,23247,60815,81771,29808,16304,9886,55931,96820,49092,12011,24468,4113,36934,99883,73567],"./livetv/index.tsx":[86548,45642,23247,60815,81771,29808,16304,9886,55931,96820,49092,12011,24468,4113,36934,99883,73567],"./movies":[85775,45642,23247,60815,81771,29808,16304,9886,55931,96820,49092,12011,24468,4113,36934,99883,17420],"./movies/":[85775,45642,23247,60815,81771,29808,16304,9886,55931,96820,49092,12011,24468,4113,36934,99883,17420],"./movies/index":[85775,45642,23247,60815,81771,29808,16304,9886,55931,96820,49092,12011,24468,4113,36934,99883,17420],"./movies/index.tsx":[85775,45642,23247,60815,81771,29808,16304,9886,55931,96820,49092,12011,24468,4113,36934,99883,17420],"./music":[21665,45642,23247,60815,81771,29808,16304,9886,55931,96820,49092,12011,24468,4113,36934,99883,75692],"./music/":[21665,45642,23247,60815,81771,29808,16304,9886,55931,96820,49092,12011,24468,4113,36934,99883,75692],"./music/index":[21665,45642,23247,60815,81771,29808,16304,9886,55931,96820,49092,12011,24468,4113,36934,99883,75692],"./music/index.tsx":[21665,45642,23247,60815,81771,29808,16304,9886,55931,96820,49092,12011,24468,4113,36934,99883,75692],"./routes":[66359],"./routes.tsx":[66359],"./shows":[9214,45642,23247,60815,81771,29808,16304,9886,55931,96820,49092,12011,24468,4113,36934,99883,49911],"./shows/":[9214,45642,23247,60815,81771,29808,16304,9886,55931,96820,49092,12011,24468,4113,36934,99883,49911],"./shows/index":[9214,45642,23247,60815,81771,29808,16304,9886,55931,96820,49092,12011,24468,4113,36934,99883,49911],"./shows/index.tsx":[9214,45642,23247,60815,81771,29808,16304,9886,55931,96820,49092,12011,24468,4113,36934,99883,49911],"./user/display":[86779,23247,60815,81771,40815,66935],"./user/display/":[86779,23247,60815,81771,40815,66935],"./user/display/index":[86779,23247,60815,81771,40815,66935],"./user/display/index.tsx":[86779,23247,60815,81771,30010],"./video":[13993],"./video/":[13993],"./video/index":[13993],"./video/index.tsx":[13993]};function i(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(i)}))}i.keys=function(){return Object.keys(r)},i.id=29561,e.exports=i},31297:function(e,t,n){"use strict";n.d(t,{q:function(){return r}});var r=new(n(53804).E)({defaultOptions:{mutations:{networkMode:"always"},queries:{networkMode:"always"}}})},31524:function(e,t,n){"use strict";n.d(t,{V:function(){return a}});var r=n(11444),i=n(64680),o=n(67430);function a(e,t){var n,a;if(void 0===t&&(t={}),!e.ServerId)return null;if(t.type=t.type||i.y.Primary,e.Type===r.D.Episode)return function(e,t){if(void 0===t&&(t={}),!e.ServerId)return null;if(e.SeriesId&&t.type===i.y.Primary&&e.SeriesPrimaryImageTag)return t.tag=e.SeriesPrimaryImageTag,o.tF.getApiClient(e.ServerId).getScaledImageUrl(e.SeriesId,t);if(t.type===i.y.Thumb){if(e.SeriesId&&e.SeriesThumbImageTag)return t.tag=e.SeriesThumbImageTag,o.tF.getApiClient(e.ServerId).getScaledImageUrl(e.SeriesId,t);if(e.ParentThumbItemId&&e.ParentThumbImageTag)return t.tag=e.ParentThumbImageTag,o.tF.getApiClient(e.ServerId).getScaledImageUrl(e.ParentThumbItemId,t)}return null}(e,t);var s=e.PrimaryImageItemId||e.Id;return s&&(null===(n=e.ImageTags)||void 0===n?void 0:n[t.type])?(t.tag=null!==(a=e.ImageTags[t.type])&&void 0!==a?a:void 0,o.tF.getApiClient(e.ServerId).getScaledImageUrl(s,t)):e.AlbumId&&e.AlbumPrimaryImageTag?(t.tag=e.AlbumPrimaryImageTag,o.tF.getApiClient(e.ServerId).getScaledImageUrl(e.AlbumId,t)):null}},34569:function(e,t,n){"use strict";var r=n(62540),i=n(47891),o=n(4391),a=n(92779),s=n(69856),l=n(89348),u=n(4452),c=n.n(u),d=n(63696),f=n(87404),p=n(8566),m=n(65242);t.A=function(e){var t=e.pageClasses,n=void 0===t?["libraryPage"]:t,u=(0,f.r5)();return(0,d.useEffect)((function(){p.Ay.hide()}),[]),(0,r.jsx)(m.A,{id:"errorBoundary",className:c()("mainAnimatedPage",n),children:(0,r.jsx)(a.A,{className:"content-primary",children:(0,r.jsxs)(i.A,{severity:"error",children:[(0,r.jsx)(o.A,{children:u.name}),(0,r.jsx)(l.A,{children:u.message}),u.stack&&(0,r.jsx)(s.A,{variant:"outlined",sx:{marginTop:1,backgroundColor:"transparent"},children:(0,r.jsx)(a.A,{component:"pre",sx:{overflow:"auto",margin:2,maxHeight:"25rem"},children:u.stack})})]})})})}},34789:function(e,t,n){"use strict";var r,i;function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}(["Webkit","O","Moz"]);try{for(s.s();!(a=s.n()).done;){var l=a.value;if(void 0!==n.style[l+"AnimationName"]){t=!0;break}}}catch(e){s.e(e)}finally{s.f()}}return e?i=t:r=t}n(29305),n(32733),n(84701),n(69892),n(76281),n(44962),n(89336),n(78557),n(96054),n(646),n(95021),n(73687),n(99425),n(83994),n(93062),n(46968),n(82367),t.A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent,t=e.toLowerCase(),n=function(e){e=e.replace(/(motorola edge)/,"").trim();var t,n=/(edg)[ /]([\w.]+)/.exec(e)||/(edga)[ /]([\w.]+)/.exec(e)||/(edgios)[ /]([\w.]+)/.exec(e)||/(edge)[ /]([\w.]+)/.exec(e)||/(titanos)[ /]([\w.]+)/.exec(e)||/(opera)[ /]([\w.]+)/.exec(e)||/(opr)[ /]([\w.]+)/.exec(e)||/(chrome)[ /]([\w.]+)/.exec(e)||/(safari)[ /]([\w.]+)/.exec(e)||/(firefox)[ /]([\w.]+)/.exec(e)||!e.includes("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],r=/(version)[ /]([\w.]+)/.exec(e),i=/(ipad)/.exec(e)||/(iphone)/.exec(e)||/(windows)/.exec(e)||/(android)/.exec(e)||/(titanos)/.exec(e)||[],o=n[1]||"";"edge"===o&&(i=[""]),"opr"===o&&(o="opera"),r&&r.length>2&&(t=r[2]),t=t||n[2]||"0";var a=parseInt(t.split(".")[0],10);return isNaN(a)&&(a=0),{browser:o,version:t,platform:i[0]||"",versionMajor:a}}(t),r={};if(n.browser&&(r[n.browser]=!0,r.version=n.version,r.versionMajor=n.versionMajor),n.platform&&(r[n.platform]=!0),r.edgeChromium=r.edg||r.edga||r.edgios,r.chrome||r.edgeChromium||r.edge||r.opera||!t.includes("webkit")||(r.safari=!0),r.osx=t.includes("mac os x"),r.osx&&!r.iphone&&!r.ipod&&!r.ipad&&navigator.maxTouchPoints>1&&(r.ipad=!0),function(e){for(var t=0,n=["mobi","ipad","iphone","ipod","silk","gt-p1000","nexus 7","kindle fire","opera mini"];t=94)return 23;if(e.versionMajor>=87)return 22;if(e.versionMajor>=79)return 6;if(e.versionMajor>=68)return 5;if(e.versionMajor>=53)return 4;if(e.versionMajor>=38)return 3;if(e.versionMajor>=34)return 2;if(e.versionMajor>=26)return 1}else{if(e.versionMajor>=538)return 2;if(e.versionMajor>=537)return 1}console.error("Unable to detect webOS version")}(r),delete r.chrome,delete r.safari;else if(r.tizen){var i=RegExp(/Tizen (\d+).(\d+)/).exec(e);r.tizenVersion=parseInt(i[1],10)+parseInt(i[2],10)/10,delete r.chrome,delete r.safari}else r.titanos?(delete r.operaTv,delete r.safari):r.vega?(delete r.chrome,delete r.safari,delete r.mobile):r.orsay=t.includes("smarthub");return(r.mobile||r.tv)&&(r.slow=!0),("undefined"!=typeof document&&"ontouchstart"in window||navigator.maxTouchPoints>0)&&(r.touch=!0),r.keyboard=function(e){return!!(e.touch||e.xboxOne||e.ps4||e.edgeUwp||e.tv)}(r),r.supportsCssAnimation=s,r.iOS=r.ipad||r.iphone||r.ipod,r.iOS&&(r.iOSVersion=function(){if(/iP(hone|od|ad)|MacIntel/.test(navigator.platform))for(var e=0,t=[/OS (\d+)_(\d+)_?(\d+)?/,/Version\/(\d+)/];e=2&&(r.iOSVersion=r.iOSVersion[0]+r.iOSVersion[1]/10)),r}()},34945:function(e,t,n){"use strict";n.r(t),n.d(t,{ASYNC_PUBLIC_ROUTES:function(){return i.ASYNC_PUBLIC_ROUTES},ASYNC_USER_ROUTES:function(){return r.ASYNC_USER_ROUTES}});var r=n(12446),i=n(95260)},36300:function(e,t,n){"use strict";function r(e,t){for(var n=0,r=t.length;ne&&(e=t*(16/9)),p.sort((function(t,n){return Math.abs(e-t)-Math.abs(e-n)})),p[0]},setElementTitle:function(e,t,n){e.setAttribute("title",t),e.setAttribute("aria-label",n)},whichTransitionEvent:function(){if(f)return f;var e=document.createElement("div"),t={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(var n in t)if(void 0!==e.style[n])return f=t[n],t[n];return f="transitionend"},whichAnimationEvent:m,whichAnimationCancelEvent:function(){return m().replace("animationend","animationcancel").replace("AnimationEnd","AnimationCancel")}}},37881:function(e,t,n){"use strict";n.d(t,{I:function(){return a}});var r=n(62540),i=(n(63696),n(55219)),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n3?(i=m===r)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=n<2&&pr||r>m)&&(o[4]=n,o[5]=r,f.n=m,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,c,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,m),s=c,l=m;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==a)break}catch(t){o=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(n,i,o),!0),u}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(v(t={},r,(function(){return this})),t),d=u.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,v(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=u,v(d,"constructor",u),v(u,"constructor",l),l.displayName="GeneratorFunction",v(u,i,"GeneratorFunction"),v(d),v(d,i,"Generator"),v(d,r,(function(){return this})),v(d,"toString",(function(){return"[object Generator]"})),(h=function(){return{w:o,m:f}})()}function v(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}v=function(e,t,n,r){if(t)i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var o=function(t,n){v(e,t,(function(e){return this._invoke(t,n,e)}))};o("next",0),o("throw",1),o("return",2)}},v(e,t,n,r)}function g(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function b(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){g(o,r,i,a,s,"next",e)}function s(e){g(o,r,i,a,s,"throw",e)}a(void 0)}))}}function S(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0;i--){var o=(0,h.HO)(0,i-1),a=this._playlist[i];this._playlist[i]=this._playlist[o],this._playlist[o]=a}this._playlist.unshift(r),this._shuffleMode="Shuffle"}},{key:"sortShuffledPlaylist",value:function(){this._playlist=[];var e,t=g(this._sortedPlaylist);try{for(t.s();!(e=t.n()).done;){var n=e.value;this._playlist.push(n)}}catch(e){t.e(e)}finally{t.f()}this._sortedPlaylist=[],this._shuffleMode="Sorted"}},{key:"clearPlaylist",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._playlist.splice(this.getCurrentPlaylistIndex(),1)[0];this._playlist=[],e||this._playlist.push(t)}},{key:"queueNext",value:function(e){for(var t=0,n=e.length;t=a.length)throw new Error("newIndex out of bounds");return i=n,o=t,(r=a).splice(o,0,r.splice(i,1)[0]),this._playlist=a,{result:"moved",playlistItemId:e,newIndex:t}}},{key:"reset",value:function(){this._sortedPlaylist=[],this._playlist=[],this._currentPlaylistItemId=null,this._repeatMode="RepeatNone",this._shuffleMode="Sorted"}},{key:"setRepeatMode",value:function(e){if(!["RepeatOne","RepeatAll","RepeatNone"].includes(e))throw new TypeError("invalid value provided for setRepeatMode");this._repeatMode=e}},{key:"getRepeatMode",value:function(){return this._repeatMode}},{key:"setShuffleMode",value:function(e){switch(e){case"Shuffle":this.shufflePlaylist();break;case"Sorted":this.sortShuffledPlaylist();break;default:throw new TypeError("invalid value provided to setShuffleMode")}}},{key:"toggleShuffleMode",value:function(){switch(this._shuffleMode){case"Shuffle":this.setShuffleMode("Sorted");break;case"Sorted":this.setShuffleMode("Shuffle");break;default:throw new TypeError("current value for shufflequeue is invalid")}}},{key:"getShuffleMode",value:function(){return this._shuffleMode}},{key:"getNextItemInfo",value:function(){var e,t=this.getPlaylist(),n=t.length;switch(this.getRepeatMode()){case"RepeatOne":e=this.getCurrentPlaylistIndex();break;case"RepeatAll":(e=this.getCurrentPlaylistIndex()+1)>=n&&(e=0);break;default:e=this.getCurrentPlaylistIndex()+1}if(e<0||e>=n)return null;var r=t[e];return r?{item:r,index:e}:null}}],t&&S(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),j=I,T=n(82885),C=n(5898),E=n(8566),_=n(22622),M=n(41177),L=n(38783),O=n(53089),R=n(2290),D=n(97067),N=n(57178),F=n(41087),U=n(40806),V=n(10989),B=n(67430),z=n(75384),H=n(73025),q=function(e,t,n){return-1===n?void 0!==e.EndTicks&&e.EndTicks<=t:void 0!==e.StartTicks&&e.StartTicks>t},G=function(e,t){return void 0!==e.StartTicks&&e.StartTicks<=t&&(void 0===e.EndTicks||e.EndTicks>t)};!function(e){e.Pairing="pairing",e.Paired="paired",e.PairError="pairerror",e.PlaybackCancelled="playbackcancelled",e.PlaybackError="playbackerror",e.PlaybackStart="playbackstart",e.PlaybackStop="playbackstop",e.PlayerChange="playerchange",e.ReportPlayback="reportplayback"}(k||(k={}));var W,Y=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Q=function(){function e(e){var t,n,r,i,o,a,s,l,u,c,f,p,m,y,h,v,g,b,S,A,x,w,P,I,j,T,C;this.playbackManager=e,this.playbackManagerEvents=((t={})[k.PlaybackCancelled]=null===(r=this.onPlaybackCancelled)||void 0===r?void 0:r.bind(this),t[k.PlaybackError]=null===(i=this.onPlaybackError)||void 0===i?void 0:i.bind(this),t[k.PlaybackStart]=null===(o=this.onPlaybackStart)||void 0===o?void 0:o.bind(this),t[k.PlaybackStop]=null===(a=this.onPlaybackStop)||void 0===a?void 0:a.bind(this),t[k.PlayerChange]=null===(s=this.onPlayerChange)||void 0===s?void 0:s.bind(this),t[k.ReportPlayback]=null===(l=this.onReportPlayback)||void 0===l?void 0:l.bind(this),t),this.playerEvents=((n={})[N.g.Error]=null===(u=this.onPlayerError)||void 0===u?void 0:u.bind(this),n[N.g.FullscreenChange]=null===(c=this.onPlayerFullscreenChange)||void 0===c?void 0:c.bind(this),n[N.g.ItemStarted]=null===(f=this.onPlayerItemStarted)||void 0===f?void 0:f.bind(this),n[N.g.ItemStopped]=null===(p=this.onPlayerItemStopped)||void 0===p?void 0:p.bind(this),n[N.g.MediaStreamsChange]=null===(m=this.onPlayerMediaStreamsChange)||void 0===m?void 0:m.bind(this),n[N.g.Pause]=null===(y=this.onPlayerPause)||void 0===y?void 0:y.bind(this),n[N.g.PlaybackStart]=null===(h=this.onPlayerPlaybackStart)||void 0===h?void 0:h.bind(this),n[N.g.PlaybackStop]=null===(v=this.onPlayerPlaybackStop)||void 0===v?void 0:v.bind(this),n[N.g.PlaylistItemAdd]=null===(g=this.onPlayerPlaylistItemAdd)||void 0===g?void 0:g.bind(this),n[N.g.PlaylistItemMove]=null===(b=this.onPlayerPlaylistItemMove)||void 0===b?void 0:b.bind(this),n[N.g.PlaylistItemRemove]=null===(S=this.onPlayerPlaylistItemRemove)||void 0===S?void 0:S.bind(this),n[N.g.PromptSkip]=null===(A=this.onPromptSkip)||void 0===A?void 0:A.bind(this),n[N.g.RepeatModeChange]=null===(x=this.onPlayerRepeatModeChange)||void 0===x?void 0:x.bind(this),n[N.g.ShuffleModeChange]=null===(w=this.onPlayerShuffleModeChange)||void 0===w?void 0:w.bind(this),n[N.g.StateChange]=null===(P=this.onPlayerStateChange)||void 0===P?void 0:P.bind(this),n[N.g.Stopped]=null===(I=this.onPlayerStopped)||void 0===I?void 0:I.bind(this),n[N.g.TimeUpdate]=null===(j=this.onPlayerTimeUpdate)||void 0===j?void 0:j.bind(this),n[N.g.Unpause]=null===(T=this.onPlayerUnpause)||void 0===T?void 0:T.bind(this),n[N.g.VolumeChange]=null===(C=this.onPlayerVolumeChange)||void 0===C?void 0:C.bind(this),n),d.A.on(e,k.PlayerChange,this.bindPlayerEvents.bind(this)),Object.entries(this.playbackManagerEvents).forEach((function(t){var n=Y(t,2),r=n[0],i=n[1];i&&d.A.on(e,r,i)})),this.bindPlayerEvents()}return e.prototype.bindPlayerEvents=function(){var e=this,t=this.playbackManager.getCurrentPlayer();this.player!==t&&(this.player&&Object.entries(this.playerEvents).forEach((function(t){var n=Y(t,2),r=n[0],i=n[1];i&&d.A.off(e.player,r,i)})),this.player=t,this.player&&Object.entries(this.playerEvents).forEach((function(t){var n=Y(t,2),r=n[0],i=n[1];i&&d.A.on(e.player,r,i)})))},e}(),K=n(94738),J=(W=function(e,t){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},W(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}W(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),X=function(e){function t(){var t=e.apply(this,function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}(arguments),!1))||this;return t.hasSegments=!1,t.isLastSegmentIgnored=!1,t.lastSegmentIndex=0,t.lastTime=-1,t.mediaSegments=[],t}return J(t,e),t.prototype.fetchMediaSegments=function(e,t,n){return r=this,i=void 0,a=function(){var r,i;return function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]e.StartTicks)console.info("[MediaSegmentManager] ignoring skipping segment that has been seeked back into",e),this.isLastSegmentIgnored=!0;else if(e.EndTicks){if(e.StartTicks&&e.EndTicks-e.StartTicks0&&r.StartTicks&&r.StartTicks>t&&(i=-1);for(var o=n,a=e[o];o>=0&&o=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),i=r.next();!i.done;i=r.next()){var o=i.value;try{navigator.mediaSession.setActionHandler(o,this.onMediaSessionAction.bind(this))}catch(e){console.warn('[MediaSessionSubscriber] Failed to add "'.concat(o,'" action handler'),e)}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},t.prototype.onMediaSessionAction=function(e){switch(e.action){case"pause":return this.playbackManager.pause(this.player);case"play":return this.playbackManager.unpause(this.player);case"stop":return this.playbackManager.stop(this.player);case"seekbackward":return this.playbackManager.rewind(this.player);case"seekforward":return this.playbackManager.fastForward(this.player);case"seekto":return this.playbackManager.seekMs((e.seekTime||0)*V.If,this.player);case"previoustrack":return this.playbackManager.previousTrack(this.player);case"nexttrack":return this.playbackManager.nextTrack(this.player);default:console.info("[MediaSessionSubscriber] Unhandled media session action",e)}},t.prototype.onMediaSessionUpdate=function(e,t){var n,r=e.type;void 0===t&&(t=this.playbackManager.getPlayerState(this.player));var i=t.NowPlayingItem;if(!i)return console.debug("[MediaSessionSubscriber] no now playing item; resetting media session",t),le();var o=i.MediaType===a.z.Video,s=!!(null===(n=this.player)||void 0===n?void 0:n.isLocalPlayer);if(s&&o)console.debug("[MediaSessionSubscriber] ignoring local player update");else{var l=i.Album||void 0,u=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}((0,ee.Y)(i,!1)||[],2),c=u[0],d=u[1],f=d||c,p=d&&c;oe?navigator.mediaSession.metadata&&navigator.mediaSession.metadata.album===l&&navigator.mediaSession.metadata.artist===f&&navigator.mediaSession.metadata.title===p||(navigator.mediaSession.metadata=new MediaMetadata({title:p,artist:f,album:l,artwork:se(i)})):ne.A.updateMediaSession({action:r,isLocalPlayer:s,itemId:i.Id,title:p,artist:f,album:l,duration:i.RunTimeTicks?Math.round(i.RunTimeTicks/V.Jb):0,position:t.PlayState.PositionTicks?Math.round(t.PlayState.PositionTicks/V.Jb):0,imageUrl:(0,Z.V)(i,{maxHeight:3e3}),canSeek:!!t.PlayState.CanSeek,isPaused:!!t.PlayState.IsPaused})}},t.prototype.onPlayerChange=function(){this.onMediaSessionUpdate({type:"timeupdate"})},t.prototype.onPlayerPause=function(e){this.onMediaSessionUpdate(e)},t.prototype.onPlayerPlaybackStart=function(e,t){this.onMediaSessionUpdate(e,t)},t.prototype.onPlayerPlaybackStop=function(){le()},t.prototype.onPlayerStateChange=function(e,t){this.onMediaSessionUpdate(e,t)},t.prototype.onPlayerUnpause=function(e){this.onMediaSessionUpdate(e)},t}(Q),ce=n(97339),de=n(80262);function fe(e){return"NotSupportedError"===(null==e?void 0:e.name)?de.F.MEDIA_NOT_SUPPORTED:de.F.PLAYER_ERROR}var pe=n(71286),me=n(36300),ye=n(9164),he=n(46782),ve=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function ge(){if(this){if(document.activeElement===this){this.blur();var e=document.querySelector(".btnPause");e&&ye.A.isCurrentlyFocusable(e)&&ye.A.focus(e)}this.classList.add("hide")}}var be=function(e){function t(t){var n=e.call(this,t)||this;return n.skipElement=null,n.onOsdChanged=n.onOsdChanged.bind(n),n}return ve(t,e),t.prototype.createSkipElement=function(){var e=this;!this.skipElement&&this.currentSegment&&(document.body.insertAdjacentHTML("beforeend",'
'),this.skipElement=document.body.querySelector(".skip-button"),this.skipElement&&this.skipElement.addEventListener("click",(function(){var t,n=e.playbackManager.currentTime()*V.Jb;(null===(t=e.currentSegment)||void 0===t?void 0:t.EndTicks)&&(n