webpackJsonp([0],[,function(e,t,n){function i(){var e=a.initial(arguments).concat({escape:!0}),t=a.last(arguments).hash;return a.isObject(t)&&!a.isEmpty(t)&&e.splice(1,0,t),new r.SafeString(s.apply(s,e))}var a=n(3),r=n(12),s=n(4).default;e.exports=i},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(2576),r=i(a),s=n(1064),o=i(s);t.default=function(){var e="function"==typeof o.default&&r.default&&(0,r.default)("react.element")||60103
;return function(t,n,i,a){var r=t&&t.defaultProps,s=arguments.length-3;if(n||0===s||(n={}),n&&r)for(var o in r)void 0===n[o]&&(n[o]=r[o]);else n||(n=r||{});if(1===s)n.children=a;else if(s>1){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+3];n.children=l}return{$$typeof:e,type:t,key:void 0===i?null:""+i,ref:null,props:n,_owner:null}}}()},,function(e,t,n){"use strict";function i(){return a.a.t.apply(a.a,arguments)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(390);t.default=i
},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){return e===t}function r(e){var t=arguments.length<=1||void 0===arguments[1]?a:arguments[1],n=null,i=null;return function(){for(var a=arguments.length,r=Array(a),s=0;s<a;s++)r[s]=arguments[s];return null!==n&&n.length===r.length&&r.every(function(e,i){return t(e,n[i])})?i:(n=r,i=e.apply(void 0,r))}}function s(e){
var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"==typeof e})){var n=t.map(function(e){return typeof e}).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}function o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return function(){for(var t=arguments.length,a=Array(t),r=0;r<t;r++)a[r]=arguments[r]
;var o=0,l=a.pop(),u=s(a),c=e.apply(void 0,[function(){return o++,l.apply(void 0,arguments)}].concat(n)),d=function(e,t){for(var n=arguments.length,a=Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];var s=u.map(function(n){return n.apply(void 0,[e,t].concat(a))});return c.apply(void 0,i(s))};return d.resultFunc=l,d.recomputations=function(){return o},d.resetRecomputations=function(){return o=0},d}}function l(){return o(r).apply(void 0,arguments)}function u(e){
var t=arguments.length<=1||void 0===arguments[1]?l:arguments[1];if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map(function(t){return e[t]}),function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return t.reduce(function(e,t,i){return e[n[i]]=t,e},{})})}t.__esModule=!0,t.defaultMemoize=r,t.createSelectorCreator=o,
t.createSelector=l,t.createStructuredSelector=u},function(e,t,n){"use strict";t.__esModule=!0;var i=n(667),a=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=a.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){
"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(2575),r=i(a),s=n(2573),o=i(s),l=n(258),u=i(l);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,u.default)(t)));e.prototype=(0,o.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict"
;t.__esModule=!0;var i=n(258),a=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,a.default)(t))&&"function"!=typeof t?e:t}},,function(e,t,n){"use strict";var i=n(3420),a=(n(1164),n(3421));n.d(t,"a",function(){return i.a}),n.d(t,"b",function(){return a.a})},function(e,t,n){e.exports=n(2673)},function(e,t,n){"use strict"
;function i(e,t){if(!t)return e;var n={};return t.forEach(function(t){n[t]=function(){return e[t].apply(e,arguments)}}),n}function a(e,t,n){h[e]=i(t,n);var a=f[e];a&&(delete f[e],a.resolve(h[e]))}function r(e){c.a.each(e,function(e,t){var n=void 0,i=void 0;c.a.isArray(e)?(n=e[0],i=e[1]):n=e,a(t,n,i)})}function s(e){return o(e)?p.a.Deferred().resolve(h[e]).promise():(f[e]||(f[e]=p.a.Deferred()),f[e].promise())}function o(e){return h.hasOwnProperty(e)}function l(e){return h[e]}
var u=n(3),c=n.n(u),d=n(10),p=n.n(d);n(31);t.c=r,t.d=s,t.b=o,t.a=l;var h={},f={}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}},function(e,t,n){"use strict";var i=n(59),a=n(71),r=i.a.extend({mixins:a.a});t.a=new r},function(e,t,n){"use strict";function i(e){return!0}function a(e){return p.a.isObject(e)&&!p.a.isArray(e)}function r(e,t){t||(t={});var n=p.a.defaults(t,{
typeName:e,parse:p.a.bind(h.a.parseType,h.a,e),stringify:p.a.bind(h.a.stringifyType,h.a,e)});return n.validate=t.validate?s(t.validate):i,n.isRequired=c()({},n,{validate:function(e){return null!=e&&n.validate(e)},typeName:n.typeName+"<required>"}),n}function s(e){return function(t){return null==t||e(t)}}var o=n(2569),l=n.n(o),u=n(6),c=n.n(u),d=n(3),p=n.n(d),h=n(60),f=["boolean","integer","float","string","object","array"],v={any:r("any"),boolean:r("boolean",{validate:p.a.isBoolean}),
integer:r("integer",{validate:l.a}),float:r("float",{validate:p.a.isNumber}),string:r("string",{validate:p.a.isString}),object:r("object",{validate:a}),array:r("array",{validate:p.a.isArray}),list:r("list",{validate:p.a.isArray}),encodedString:r("encodedString",{validate:p.a.isString}),queryString:r("queryString",{validate:a}),instanceOf:function(){var e=p.a.toArray(arguments);return r("instanceOf",{validate:function(t){return p.a.some(e,function(e){return t instanceof e})}})},oneOf:function(){
var e=p.a.toArray(arguments);return r("oneOf",{validate:function(t){return p.a.contains(e,t)}})},oneOfType:function(){var e=p.a.toArray(arguments);return r("oneOfType",{validate:function(t){return p.a.some(e,function(e){return e.validate(t)})}})},custom:function(e){return r("custom",{validate:e})},getAttrTypeFor:function(e){if(null==e)return v.any;for(var t=0,n=f.length;t<n;t++){var i=f[t],a=v[i];if(a.validate(e))return a}return v.any}};t.a=v},function(e,t,n){"use strict"
;var i=n(258),a=n.n(i),r=n(65),s=n.n(r),o=n(146),l=n.n(o),u=n(3),c=n.n(u),d=n(55),p=n(10),h=n.n(p),f=n(13),v=n(15),m=n(60),g=n(817),y=n(31),b=n(29),S=n(19),I=n(392),M=n(16),C=n(52),w=n(35),D=n(61),P=d.a.Model.extend({mixins:[I.a],name:"AbstractModel",responseType:C.a.xml,hasInitialRelations:!1,_context:["parent","skipCache"],cache:null,cacheKey:function(e){return e[this.idAttribute]},constructor:function(e,t){e||(e={}),t||(t={});var i
;if(this.initialize!==d.a.Model.prototype.initialize&&(i=this.initialize,this.initialize=function(){}),c.a.each(this.getContext(),function(e){var n=this.findOption(t,e);void 0!==n&&(this[e]=n)},this),!this.cache||this.findOption(t,"skipCache"))return d.a.Model.prototype.constructor.apply(this,arguments),this._initModel(t),void(i&&(i.apply(this,arguments),this.initialize=i));var a=this.findOption(t,"onlyIfCached"),r=this.cache.getItemCacheKey(this,e),s=this.cache.get(r)
;if(!s&&this.entityID&&n.i(f.b)("appModel")){var o=n.i(f.a)("appModel");if(o.has("entities")){var l=o.get("entities").get(this.entityType),u=this.entityID(e),p=l.get(u);p&&(s=p.get("model"))}}return s?(this.uninitialize(),a||(this.mergeStrategy&&(s.isMergingAttributes=!0),t.parse?e=s.parse(e):c.a.extend(e,s._getRelations(this.syncedRelations,e)),s.set(e),s.isMergingAttributes=!1),c.a.each(this.getContext(),function(e){s.setContext(e,this[e]||s[e])},this),
t.collection&&(s.collection=t.collection),s.updateEntity(),s):a?{}:(d.a.Model.prototype.constructor.apply(this,arguments),this._initModel(t),i&&(i.apply(this,arguments),this.initialize=i),void this.cache.store(this,r))},uninitialize:function(){this.stopListening()},_initModel:function(e){D.a.get("shouldCreateStateTree")&&this.entityID&&(this.state=this.toState()),this._initRelations(e),this._initDerived(e),this._initState()},_initRelations:function(e){this._relationListeners={}
;var t=c.a.extend({},this.sessionRelations,this.syncedRelations);c.a.each(t,function(e,t){this._initRelation(e,t);var n=c.a.bind(this._initRelation,this,e,t);this.on("change:"+t,n)},this),this.hasInitialRelations=!0,this.set(this._getRelations(this.sessionRelations,this.attributes)),e.parse||this.set(this._getRelations(this.syncedRelations,this.attributes))},_initRelation:function(e,t){var n=this._resolveRelationDefinition(e),i=n.relationClass,a=this.get(t),r=this.previous(t),s=a&&a instanceof i
;r&&r instanceof i&&c.a.has(this._relationListeners,t)&&(r.off("all",this._relationListeners[t]),this._relationListeners[t]=null),s&&this._forwardRelationEvents(a,t)},_initDerived:function(){c.a.each(this.derivedAttrs,this._setDerived,this)},_initState:function(){D.a.get("shouldCreateStateTree")&&(this.state=this.toState(),this.updateState=this.updateState.bind(this),this.updateEntity(),this.on("all",this.onEvent,this))},findOption:function(e,t){return e[t]||e.collection&&e.collection[t]},
getContext:function(){if(!this.context)return this._context;var e=c.a.result(this,"context");return this._context.concat(e)},setContext:function(e,t){if(this.getContext().indexOf(e)!==-1&&this[e]!==t){if(this[e]=t,this.hasDerived(e)){var n=this.derivedAttrs[e],i=n.call(this);this.set(e,i)}if("parent"!==e){var a=c.a.extend({},this.sessionRelations,this.syncedRelations);c.a.each(a,function(n,i){var a=this.get(i);a&&a.setContext(e,t)},this)}}},getScopedKey:function(e){
return null!=e&&c.a.isFunction(this.cacheKey)?this.cacheKey(this.attributes)+"!"+e:e},getState:function(){return this._computedEntityID||this.state},updateState:function(){var e=this.state,t=this.getState();this.state=this.toState();var n=this.getState();return n!==t&&this.updateEntity(),this.trigger("statechange",this,n,t),{name:this.name,previousState:e,nextState:n}},updateEntity:function(){
this._computedEntityID&&!this.skipCache&&(n.i(y.a)(this.entityType,this.name+" requires an `entityType`"),v.a.trigger("change:entity",{type:this.entityType,id:this._computedEntityID,model:this}))},toState:function(){var e=s()(this.attributes),t=c.a.reduce(e,this.reduceState,{possibleEntityContainers:[]},this);return Object.defineProperty(t,"possibleEntityContainers",{enumerable:!1}),this.entityID&&(this._computedEntityID=this.entityID(t)),t},reduceState:function(e,t){var n=this.attributes[t]
;return n&&n.getState?(e.possibleEntityContainers.push(t),e[t]=n.getState(),e):n&&n.initialize?e:(e[t]=n,e)},shouldUpdateRelationState:function(e,t,n){return t!==n},toJSON:function(){function e(e,i){var a=this.get(i);if(a){var r;r=t.excludeDefaults?a instanceof d.a.Collection?a.map(function(e){return n.i(g.a)(c.a.result(e,"defaults"),e.toJSON(t))}):n.i(g.a)(c.a.result(a,"defaults"),a.toJSON(t)):a.toJSON(t),v[i]=r}}
var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=this.syncedAttrs,a=this.sessionRelations,r=this.syncedRelations,s=this.attributes,o={};for(var l in s){var u=a&&c.a.has(a,l),p=r&&c.a.has(r,l),f=t.syncedOnly&&(!i||!c.a.has(i,l));u||p||f||(o[l]=s[l])}var v=h.a.extend(!0,{},o);return t.excludeDefaults&&(v=n.i(g.a)(c.a.result(this,"defaults"),v)),t.syncedOnly||c.a.each(a,e,this),c.a.each(r,e,this),v},clone:function(){var e=c.a.extend(c.a.pick(this,this.getContext()),{skipCache:!0})
;return new this.constructor(this.toJSON(),e)||null},copy:function(e){n.i(y.a)(e instanceof this.constructor,"Only a model of the same type may be copied");var t=e.toJSON();return c.a.extend(t,this._getRelations(this.sessionRelations,t,{parse:!0}),this._getRelations(this.syncedRelations,t,{parse:!0})),this.set(t)},restoreDefaults:function(e){var t={};return c.a.each(this.attributes,function(e,n){this.derivedAttrs&&c.a.has(this.derivedAttrs,n)||(t[n]=void 0)},this),
c.a.extend(t,this._getRelations(this.sessionRelations,{},{reset:!0}),this._getRelations(this.syncedRelations,{},{reset:!0}),c.a.result(this,"defaults"),e),this.set(t)},set:function(e,t,n){var i;c.a.isObject(e)?(i=e,n=t):(i={})[e]=t,n||(n={});var a;return!this.isMergingAttributes&&n.merge&&this.mergeStrategy&&(a=!0,this.isMergingAttributes=!0),this.isMergingAttributes&&(i=this._mergeAttributes(i)),d.a.Model.prototype.set.call(this,i,n),a&&(this.isMergingAttributes=!1),this},hasAttr:function(e){
var t=this.sessionAttrs&&c.a.has(this.sessionAttrs,e),n=this.syncedAttrs&&c.a.has(this.syncedAttrs,e);return!(!t&&!n)},hasRelation:function(e){var t=this.sessionRelations&&c.a.has(this.sessionRelations,e),n=this.syncedRelations&&c.a.has(this.syncedRelations,e);return!(!t&&!n)},hasDerived:function(e){return!(!this.derivedAttrs||!c.a.has(this.derivedAttrs,e))},validate:function(e,t){
var i=c.a.extend({},this.sessionAttrs,this.syncedAttrs,this.sessionRelations,this.syncedRelations),a=this._validateTypes(e,i);return a&&n.i(y.a)(!1,a),a},parse:function(e,t){return t&&t.save&&!this.hasResponseOnSave?this.attributes:this.convert(e,t)},convert:function(e,t){var n,i=e,a=c.a.result(this,"responseType");c.a.isString(i)&&(n=!0,c.a.isFunction(this.augmentResponseText)&&(i=this.augmentResponseText(i,a)),i=a.parse(i),a===C.a.json&&i.MediaContainer&&(i=i.MediaContainer)),
c.a.isFunction(this.augmentResponse)&&(i=this.augmentResponse(i,a)),n&&this.rootPropertyName&&c.a.has(i,this.rootPropertyName)&&(i=i[this.rootPropertyName]);var r,s={};c.a.each(this.sessionAttrs,function(e,t){c.a.has(i,t)&&(s[t]=i[t])}),c.a.each(this.syncedAttrs,function(e,t){if(c.a.has(i,t)){var n,a=e;a.typeName||(a=e.type,n=c.a.omit(e,"type")),s[t]=a===M.a.string?i[t]:a.parse(i[t],n)}else this.has(t)&&(r||(r=c.a.result(this,"defaults")),s[t]=r&&c.a.has(r,t)?r[t]:void 0)},this)
;var o=c.a.extend({},t,{parse:!0});return c.a.extend(s,this._getRelations(this.syncedRelations,i,o)),s},save:function(e,t,n){var i;null==e||"object"===(void 0===e?"undefined":a()(e))?(i=e,n=t):(i={})[e]=t;var r=c.a.extend({save:!0},n),s=c.a.extend(this.getSaveParams(i),r.data);if(c.a.isEmpty(s))return r.success&&r.success(this),h.a.Deferred().resolve(this);r.data=s;var o=r.success;return r.success=function(e,t,n){e.cache&&e.cache.store(e),o&&o(e,t,n)},d.a.Model.prototype.save.call(this,i,r)},
sync:function(e,t,n){var i=n?c.a.clone(n):{};if("create"===e||"update"===e){var a=i.data,r=i.url||c.a.result(this,"saveUrl")||c.a.result(this,"syncUrl")||c.a.result(this,"url");i.url=S.join(r,a),i.data=""}return d.a.Model.prototype.sync.call(this,e,t,i)},getSaveParams:function(e){var t=this._getSaveAttrs(e);return c.a.reduce(t,function(e,t,n){var i=t.definition,a=t.value,r=n;if(!i)return e[r]=a,e;var s=i.relationClass;if(s){var o,l=s.prototype.model
;i.rootPropertyName?o=i.rootPropertyName:a.rootPropertyName?o=a.rootPropertyName:l&&l.prototype&&(o=l.prototype.rootPropertyName),a=a.getSaveParams(),o&&(r=o)}else{var u,d;c.a.has(i,"type")?(u=i.type,d=c.a.omit(i,"type")):u=i,a=u.stringify(a,d)}return e[r]=a,e},{},this)},startCapturingChangeEvents:function(){if(this.releaseCapturedChangeEvents)return void n.i(y.a)(!1,this.name+" is already capturing events");var e=this.set,t=[],i=c.a.clone(this.attributes);this.set=function(n,i,r){
var s,o=c.a.extend({},r,{silent:!0});return"object"===(void 0===n?"undefined":a()(n))?(s=n,r=i):(s={})[n]=i,c.a.each(s,function(n,i){this.get(i)!==n&&(t.push({key:i,value:n}),e.call(this,i,n,o))},this),c.a.each(this._derivedListeners,function(n){var i=n.key,a=this.derivedAttrs[i],r=a.call(this);this.get(i)!==r&&(t.push({key:i,value:r}),e.call(this,i,r,o))},this),this},this.releaseCapturedChangeEvents=function(){this.set=e,this.releaseCapturedChangeEvents=null,
this.discardCapturedChangeEvents=null,this._previousAttributes=i,this._changing=!0,c.a.each(t,function(e){this.trigger("change:"+e.key,this,e.value)},this),this._changing=!1,c.a.isEmpty(t)||this.trigger("change",this,{})},this.discardCapturedChangeEvents=function(){this.set=e,this.releaseCapturedChangeEvents=null,this.discardCapturedChangeEvents=null,t.length=0}},spyOnGet:function(e){var t=[],n=this.get;return this.get=function(e){return t.push("change:"+e),
this.hasRelation(e)&&t.push("change:"+e+".change"),n.apply(this,arguments)},e.call(this),this.get=n,t},_mergeAttributes:function(e){var t=this.mergeStrategy;return t?c.a.reduce(e,function(e,n,i){return e[i]=t(i,this.get(i),n),e},{},this):e},_resolveRelationDefinition:function(e){return c.a.isFunction(e)?e.call(this):e},_getRelations:function(e,t,i){t||(t={}),i||(i={});var a={};return c.a.each(e,function(e,r){var s=this._resolveRelationDefinition(e),o=s.relationClass
;n.i(y.a)(o,this.name+" requires a `relationClass` for the "+r+" relation");var l=r;i.parse&&!c.a.has(t,r)&&c.a.has(s,"rootPropertyName")&&(l=s.rootPropertyName);var u=t[l];if(u instanceof o)return void(a[r]=u);if(!u&&s.deferred)return void(a[r]=void 0);var p=i.reset?null:this.get(r),h=p instanceof o,f=o.prototype instanceof d.a.Collection;if(f?u=m.a.parseArray(u):u||(u={}),h&&!f&&(i.parse&&(u=p.parse(u)),h=p.id===u[p.idAttribute||"id"]),h){p.isMergingAttributes=this.isMergingAttributes
;var v=s.setOptions;c.a.isFunction(v)&&(v=v.call(this,i)),f?p.set(u,c.a.extend({parse:i.parse,remove:!this.isMergingAttributes},v)):p.set(u,c.a.extend({merge:!0},v)),p.isMergingAttributes=!1}else{var g={parse:i.parse};if(c.a.each(this.getContext(),function(e){g[e]=this[e]},this),!f){var b=s.attrs;c.a.isFunction(b)&&(b=b.call(this,t)),u=c.a.extend({},u,b)}var S=s.options;c.a.isFunction(S)&&(S=S.call(this,t)),c.a.extend(g,{parent:this},S),p=new o(u,g)}a[r]=p},this),a},
_forwardRelationEvents:function(e,t){function n(){var n=arguments[0];if("change"!==n){if("statechange"===n)return void(this.shouldUpdateRelationState.apply(this,c.a.rest(arguments,1))&&w.b(this.updateState,this));var a=c.a.toArray(arguments);a[0]="change:"+t+"."+n,this.trigger.apply(this,a),c.a.contains(i,n)||(this.trigger("change:"+t+".change",this,e),this.trigger("change",this))}}var i=["sync","request","invalid","error","add","remove"];e.on("all",n,this),this._relationListeners[t]=n},
_setDerived:function(e,t){var i,a=this.spyOnGet(function(){var a=this.set;this.set=function(){n.i(y.a)(!1,this.name+" blocked `set` in the "+t+" attribute. Derived attributes are read-only.")},i=e.call(this),this.set=a});this.set(t,i),c.a.each(a,function(n){this._addDerivedListener(t,n,e)},this)},_addDerivedListener:function(e,t,n){this._derivedListeners||(this._derivedListeners=[]);var i={key:e,name:t,callback:c.a.bind(this._setDerived,this,n,e)};c.a.findWhere(this._derivedListeners,{key:e,
name:i.name})||(this._derivedListeners.push(i),this.on(i.name,i.callback))},_getSaveAttrs:function(e){var t;if(e)t=c.a.reduce(e,function(e,t,n){return e[n]={definition:this.syncedAttrs[n],value:t},e},{},this);else{var n=c.a.extend({},this.syncedAttrs,this.syncedRelations);t=c.a.reduce(n,function(e,t,n){var i=this._resolveRelationDefinition(t),a=i.save;return c.a.isFunction(a)&&(a=a.call(this)),a&&(e[n]={definition:i,value:this.get(n)}),e},{},this)}return t},_validateTypes:function(e,t){
var n=s()(e),i=c.a.reduce(n,function(n,i){if(this.hasDerived(i))return n;if(!c.a.has(t,i))return n.push(this.name+" received an unknown attribute: "+i+". All attributes must be defined in `sessionAttrs`, `syncedAttrs`, `sessionRelations`, or `syncedRelations`."),n;var a,r=e[i],s=this._resolveRelationDefinition(t[i]),o=s.relationClass;a=o?this.hasInitialRelations?M.a.instanceOf(o):o.prototype instanceof d.a.Collection?M.a.oneOfType(M.a.array,M.a.object):M.a.object:s.type?s.type:s;var u=a.validate
;return u?u(r)||n.push(i+" of type "+a.typeName+" has an invalid value: "+l()(r)):n.push(i+" has an unknown type. Specify the type in the attribute definition or use attrTypes.any as a wildcard type."),n},[],this);if(i.length>0)return i.join("\n")},onEvent:function(e,t,n){if(!t)return void b.a.warn("Unable to handle",e);var i=e.match(/^change:([\w]+)$/);if(i){var a=i[1];t.get(a)!==this.state[a]&&(n&&n.updateEntity&&n.updateEntity(),w.b(this.updateState,this))}}});t.a=P},function(e,t,n){
"use strict";var i=n(146),a=n.n(i),r=n(3),s=n.n(r),o=n(55),l=n(727),u=n.n(l),c=n(31),d=n(29);n(1415),n(1414),n(1416);u.a.isNodeAttached=function(e){return o.a.$.contains(document.documentElement,e)};var p=s.a.clone(u.a.View.prototype),h=s.a.clone(u.a.CollectionView.prototype),f=s.a.clone(u.a.Region.prototype),v=s.a.clone(u.a.Region),m=s.a.clone(u.a.Layout.prototype),g={constructor:function(){this.wrapAfterRender(),p.constructor.apply(this,arguments),this.listenViewEvents()},
listenViewEvents:function(){var e=this;this.stopListeningViewEvents();var t=s.a.result(this,"viewEvents");t&&(this._viewEventsListeners=s.a.mapObject(t,function(t){return s.a.isString(t)?e[t]:t}),this.listenTo(this,this._viewEventsListeners))},stopListeningViewEvents:function(){this._viewEventsListeners&&(this.stopListening(this,this._viewEventsListeners),delete this._viewEventsListeners)},_setElement:function(){p._setElement.apply(this,arguments),
this.el&&(this.el._viewInstance?this.el._viewInstance!==this&&d.a.warn('Multiple views registered for a single element with class="%s"',this.el.className):this.el._viewInstance=this)},_removeElement:function(){this.el&&delete this.el._viewInstance,p._removeElement.apply(this,arguments)},bindAllWhenRendered:function(){n.i(c.a)(arguments.length>0,"`bindAllWhenRendered` requires at least one function");var e=s.a.isArray(arguments[0])?arguments[0]:arguments;s.a.each(e,function(e){try{
this[e]=this.whenRendered(this[e])}catch(t){n.i(c.a)(!1,"`bindAllWhenRendered` is unable to wrap "+a()(e))}},this)},whenRendered:function(e){return n.i(c.a)(s.a.isFunction(e),"`whenRendered` must be called with a single function"),s.a.bind(function(){if(!this.isClosed){var t=s.a.toArray(arguments),n=s.a.bind(function(){this.isRendered&&!this.isClosed&&e.apply(this,t)},this);if(this.isRendered)return void s.a.defer(n);this.listenToOnce(this,"render",function(){s.a.defer(n)})}},this)},
wrapAfterRender:function(){void 0!==this.onlyAfterRender&&(n.i(c.a)(s.a.isArray(this.onlyAfterRender),"`onlyAfterRender` must be an array"),this.bindAllWhenRendered.apply(this,this.onlyAfterRender))},bindUIElements:function(){p.bindUIElements.apply(this,arguments),this.bindToModel(),this.isRendered=!0},unbindUIElements:function(){p.unbindUIElements.apply(this,arguments),this.unbindFromModel()},_getImmediateChildren:function(){return[]},_getNestedViews:function(){
var e=this._getImmediateChildren();return e.length?s.a.reduce(e,function(e,t){return t._getNestedViews?e.concat(t._getNestedViews()):e},e):e}},y={constructor:function(){h.constructor.apply(this,arguments)},triggerRendered:function(){return this.isRendered=!0,h.triggerRendered.apply(this,arguments)},rebase:function(e){return this.stopListening(this.collection),this.collection=e,this._initialEvents(),s.a.isFunction(this._renderChildren)?this._renderChildren():this.render(),this},
buildItemView:function(){var e=h.buildItemView.apply(this,arguments);return e._parentView=this,e},_getImmediateChildren:function(){return s.a.values(this.children._views)}},b={constructor:function(){h.constructor.apply(this,arguments)}},S={append:function(e,t,n){var i=e.isClosed||s.a.isUndefined(e.$el),a=e!==this.currentView;return a&&this.close(),e.render(),(a||i)&&(t||(t=this.getEl(this.el)),n?t.prepend(e.el):t.append(e.el)),this.attachView(e),u.a.triggerMethod.call(this,"show",e),
u.a.triggerMethod.call(e,"show"),this._updateParentView(e),this._triggerAttached(e,t),this},prepend:function(e,t){return this.append(e,t,!0)},show:function(e){f.show.apply(this,arguments),this._updateParentView(e),this._triggerAttached(e,this.$el)},_triggerAttached:function(e,t){if(u.a.isNodeAttached(t.get(0))){var n=s.a.union([e],s.a.result(e,"_getNestedViews")||[]);s.a.each(n,function(e){e.triggerMethod&&e.triggerMethod("attached",this)},this)}},_updateParentView:function(e){
e&&(e._parentView=this._parentView)}},I={buildRegion:function(e,t){var n=v.buildRegion.apply(this,arguments);return n._parentView=e._parentView,n}},M={_buildRegions:function(e){var t=this,n=s.a.mapObject(e,function(e){return s.a.isString(e)?{_parentView:t,selector:e}:s.a.defaults(e,{_parentView:t})});return m._buildRegions.call(this,n)},_getImmediateChildren:function(){return s.a.chain(this.regionManager._regions).values().pluck("currentView").compact().value()}}
;s.a.extend(u.a.View.prototype,g),s.a.extend(u.a.ItemView.prototype,g),s.a.extend(u.a.CollectionView.prototype,g,y),s.a.extend(u.a.CompositeView.prototype,g,b),s.a.extend(u.a.Region.prototype,S),s.a.extend(u.a.Region,I),s.a.extend(u.a.Layout.prototype,M),u.a.extend=o.a.Model.extend,u.a.Controller.extend=u.a.extend,u.a.Region.extend=u.a.extend,u.a.Application.extend=u.a.extend,u.a.Module.extend=u.a.extend,u.a.View.extend=u.a.extend,u.a.ItemView.extend=u.a.extend,
u.a.CollectionView.extend=u.a.extend,u.a.CompositeView.extend=u.a.extend,u.a.Layout.extend=u.a.extend,t.a=u.a},function(e,t,n){"use strict";function i(e){return String(e).replace(/^\/|\/$/g,"")}function a(e){return e?f.a.first(/[^\/\\]+$/.exec(e))||e:""}function r(e,t){return m.a.stringify(e,p()({arrayFormat:"repeat"},t))}function s(e,t){return m.a.parse(e,t)}function o(e,t){g.href=e;var n=f.a.pick(g,"hash","host","hostname","href","origin","pathname","port","protocol","search")
;return n.isAbsolute=/^[\w:]*\/\//.test(e),n.search&&(n.params=s(n.search.substring(1))),n.origin||(n.origin=n.protocol+"//"+n.host),n}function l(e,t,n){f.a.isString(e)&&(e=[e]),e=e.filter(function(e){return e});var a=n&&n.recognizeHash,o=a?y:b,l=e.reduce(function(e,t){var n=i(t).match(o),a=n[1],r=n[2],s=n[3];return a&&(e.path=e.path?e.path+"/"+a:a),r&&(e.params=e.params?e.params+"&"+r:r),s&&(e.hash=s),e},{path:"",params:"",hash:""}),u=void 0
;if(n&&n.parseParams)u=r(c()(s(l.params),f.a.isString(t)?s(t):t));else{var d=f.a.isString(t)?t:r(t);u=l.params+(l.params&&d?"&":"")+d}return(e.length&&"/"===e[0].charAt(0)?"/":"")+l.path+(u?"?"+u:"")+l.hash}Object.defineProperty(t,"__esModule",{value:!0});var u=n(667),c=n.n(u),d=n(6),p=n.n(d),h=n(3),f=n.n(h),v=n(703),m=n.n(v);n(31);t.getLastSegment=a,t.stringifyParams=r,t.parseParams=s,t.parseUrl=o,t.join=l
;var g=document.createElement("a"),y=/^([^\?#]*)(?:\?([^#]*))?(#.*)?/,b=/([^\?]*)\??(.*)()/},function(e,t,n){"use strict";var i=n(872);n.d(t,"f",function(){return i});var a=n(74);n.d(t,"b",function(){return a});var r=n(91);n.d(t,"d",function(){return r});var s=n(1534);n.d(t,"a",function(){return s});var o=n(1535);n.d(t,"e",function(){return o});var l=n(2559);n.d(t,"c",function(){return l})},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(function(e,t){
return t.metadataItemEntityID},r.a,function(e,t){return t[e]})}var a=n(5),r=(n.n(a),n(110));t.a=i},function(e,t,n){"use strict";var i=n(146),a=(n.n(i),n(3)),r=n.n(a),s=n(55),o=n(10),l=n.n(o),u=(n(31),n(19)),c=n(392),d=n(52),p=n(35),h=n(61),f=s.a.Collection.extend({mixins:[c.a],responseType:d.a.xml,instanceOptions:["url","path","pageStart","pageSize","persistInCache","skipCache"],_context:["parent"],cache:null,cacheKey:function(){return r.a.result(this,"url")},constructor:function(e,t){t||(t={}),
r.a.each(this.getContext(),function(e){var n=t[e];void 0!==n&&this.setContext(e,n)},this);var n=r.a.result(this,"instanceOptions");if(r.a.each(n,function(e){r.a.has(t,e)&&(this[e]=t[e])},this),null==this.pageStart&&null==this.pageSize||(this.pageStart||(this.pageStart=0),this.pageSize||(this.pageSize=0)),t.populated&&this.resetPopulatePromise(l.a.Deferred().resolve().promise()),!this.cache||this.skipCache)return s.a.Collection.prototype.constructor.apply(this,arguments),void this._initState()
;this.initialize.apply(this,arguments);var i=this.cache.getItemCacheKey(this),a=this.cache.get(i);return this.uninitialize(),a?a:t.onlyIfCached?{}:(s.a.Collection.prototype.constructor.apply(this,arguments),this._initState(),void this.cache.store(this,i))},uninitialize:function(){this.stopListening()},_initState:function(){h.a.get("shouldCreateStateTree")&&(this.state=this.toState(),this.updateState=this.updateState.bind(this),this.on("reset update sort",this.onCollectionChange,this),
this.on("statechange",this.onStateChange,this))},getContext:function(){if(!this.context)return this._context;var e=r.a.result(this,"context");return this._context.concat(e)},setContext:function(e,t){this.getContext().indexOf(e)!==-1&&this[e]!==t&&(this[e]=t,this.each(function(n){n.setContext(e,t)}))},getState:function(){return this.state},updateState:function(){var e=this.state,t=this.getState();this.state=this.toState();var n=this.getState();return this.trigger("statechange",this,n,t),{
name:this.name,previousState:e,nextState:n}},toState:function(){return this.reduce(this.reduceState,[])},reduceState:function(e,t){var n=t.getState();return n&&e.push(n),e},shouldUpdateModelState:function(e,t,n){return t!==n},sync:function(){return this.cache&&this.cache.store(this),s.a.sync.apply(this,arguments)},syncUrl:function(){var e="";if(this.url&&(e=r.a.result(this,"url")),this.path&&(e=u.join([e,r.a.result(this,"path")])),null!=this.pageStart||null!=this.pageSize){var t={
"X-Plex-Container-Start":this.pageStart||0,"X-Plex-Container-Size":this.pageSize||0};e=u.join(e,t)}return e},parse:function(e,t){return this.convert(e)},convert:function(e){var t=e;if(r.a.isString(t)){var n=r.a.result(this,"responseType");r.a.isFunction(this.augmentResponseText)&&(t=this.augmentResponseText(t,n)),t=n.parse(t),n===d.a.json&&t.MediaContainer&&(t=t.MediaContainer)}if(r.a.isFunction(this.augmentResponse)&&(t=this.augmentResponse(t)),r.a.isArray(t))return t
;var i=this.model.prototype.rootPropertyName;if(!i)return t;var a=t[i];return a?(r.a.isArray(a)||(a=[a]),a):[]},clone:function(e){e||(e=this.models);var t=r.a.result(this,"instanceOptions"),n=r.a.extend(r.a.pick(this,t),r.a.pick(this,this.getContext()),{skipCache:!0,persistInCache:!1});return new this.constructor(e,n)||null},cloneDeep:function(e){e||(e=this.models);var t=r.a.map(e,function(e){return e.clone()});return this.clone(t)},clear:function(e){e=r.a.extend({silent:!0},e),
this.abortPendingPopulate(),this.resetPopulatePromise(null),this.reset([],e)},getSaveParams:function(){return this.map(function(e){return e.getSaveParams()})},onCollectionChange:function(){p.b(this.updateState,this)},onStateChange:function(e,t,n){e!==this&&this.shouldUpdateModelState(e,t,n)&&p.b(this.updateState,this)}});t.a=f},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(14),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(39),m=n.n(v),g=n(31),y=n(207),b=n(26),S=n(20),I=n(469),M=n(2702),C=n.n(M),w=function(e){function t(i,a){l()(this,t);var r=c()(this,e.call(this,i,a));return r.onTouchStart=function(e){r._isTouch=!0,r._preventFocus=r._shouldPreventFocus(),1===e.touches.length&&r._activate(!0),r.props.onTouchStart&&r.props.onTouchStart(e)},r.onTouchMove=function(e){r._activate(!1),
r.props.onTouchMove&&r.props.onTouchMove(e)},r.onTouchEnd=function(e){var t=r.props,n=t.to,i=t.target,a=t.isDisabled,s=t.onTouchEnd;r._isActive&&!a&&(!n||i&&"_self"!==i||(e.preventDefault(),window.location.href=n),r._press(e)),r._activate(!1),s&&s(e)},r.onTouchCancel=function(e){r._isTouch=!1,r._activate(!1),r.props.onTouchCancel&&r.props.onTouchCancel(e)},r.onMouseDown=function(e){r._isTouch||(r._preventFocus=r._shouldPreventFocus(),0===e.button&&r._activate(!0),
r.props.onMouseDown&&r.props.onMouseDown(e))},r.onMouseUp=function(e){if(!r._isTouch){var t=r.props,n=t.isDisabled,i=t.onMouseUp;r._isActive&&!n&&(r._press(e),r._preventOnClick=!0),r._activate(!1),i&&i(e)}},r.onMouseLeave=function(e){r._isTouch||(r._isActive&&r.setState({isActive:!1}),r.props.onMouseLeave&&r.props.onMouseLeave(e))},r.onClick=function(e){r._preventFocus=!1;var t=r.props.isDisabled;r._preventOnClick||r._isTouch||r._isActive||!r._isFocused||t||r._press(e),r._preventOnClick=!1,
r._isTouch=!1},r.onFocus=function(e){if(r._preventFocus)return void(r._preventFocus=!1);r._focus(!0),r.props.onFocus&&r.props.onFocus(e)},r.onBlur=function(e){r._focus(!1),r.props.onBlur&&r.props.onBlur(e)},n.i(g.a)(!i.onClick,"Use `onPress` instead of `onClick` for reliable behavior on touch screens"),r._preventFocus=!1,r._preventOnClick=!1,r._isTouch=!1,r._isActive=!1,r._isFocused=!1,r.state={isActive:!1,isFocused:!1},r}return p()(t,e),t.prototype.shouldComponentUpdate=function(e,t){
return n.i(b.a)(this,e,t)},t.prototype._activate=function(e){this._isActive=e,this.setState({isActive:e})},t.prototype._focus=function(e){this._isFocused=e,this.setState({isFocused:e})},t.prototype._shouldPreventFocus=function(){return!this.props.allowFocusOnPress&&!(m.a.findDOMNode(this)===document.activeElement)},t.prototype._press=function(e){var t=this.props.onPress;t&&t(e)},t.prototype._isActiveRoute=function(){var e=window.location.hash,t=this.props.to,i=new RegExp("^"+n.i(y.a)(t)+"\\b")
;return!(!e||!t)&&i.test(e)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.to,i=e.kind,r=e.size,o=e.isSelected,l=e.isDisabled,u=e.component,c=(e.allowFocusOnPress,e.highlightActiveRoute),d=(e.onPress,s()(e,["className","to","kind","size","isSelected","isDisabled","component","allowFocusOnPress","highlightActiveRoute","onPress"])),p=this.state,h=p.isActive,v=p.isFocused,m={},g=u;return n&&(g="a",m.href=n),d.role||(m.role=n?"link":"button"),
m.className=(t||"")+" "+(C.a.link||"")+" "+(C.a[i]||"")+" "+(r&&C.a[r]||"")+" "+(o&&C.a.isSelected||"")+" "+(h&&I.d||"")+" "+(v&&I.e||"")+" "+(l&&I.f||"")+" "+(c&&this._isActiveRoute()&&C.a.isActiveRoute||""),"button"!==g&&"input"!==g||(m.type=d.type||"button",m.disabled=l),f.a.createElement(g,a()({},d,m,{onTouchStart:this.onTouchStart,onTouchMove:this.onTouchMove,onTouchEnd:this.onTouchEnd,onTouchCancel:this.onTouchCancel,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,
onMouseLeave:this.onMouseLeave,onClick:this.onClick,onFocus:this.onFocus,onBlur:this.onBlur}))},t}(h.Component);w.defaultProps={component:"button",kind:S.b.DEFAULT,isSelected:!1,isDisabled:!1,allowFocusOnPress:!1,highlightActiveRoute:!1},t.a=w},function(e,t){function n(e,t,n){return e===t?n.fn(this):n.inverse(this)}e.exports=n},function(e,t,n){function i(e,t){var n=r.partials[e],i=a.extend({},t.hash.context||this,t.hash);return new r.SafeString(n(i))}var a=n(3),r=n(12);e.exports=i
},function(e,t,n){"use strict";function i(e,t,n,i,s){var o=!1,l=s||a.a,u=l(e.props,t);return u?(u=l(e.state,n),u&&i?(u=l(e.context,i))||o&&r(e,"context",i):o&&r(e,"state",n)):o&&r(e,"props",t),!u}var a=n(352);t.a=i;var r=!1},function(e,t,n){"use strict";function i(e){var t=e["aria-label"],n=e.className,i=e.name,a=e.style;return r()("i",{className:n?i+" "+n:i,"aria-hidden":!t,"aria-label":t,style:a})}var a=n(2),r=n.n(a),s=n(0);n.n(s);t.a=i},function(e,t,n){"use strict"
;var i=n(3),a=n.n(i),r=n(31),s=n(29),o={_map:{},register:function(e,t){n.i(r.a)(a.a.isFunction(t),'The "'+e+'" command must be a function'),this._map[e]=t},registerAll:function(e){var t=this;a.a.each(e,function(e,n){"__esModule"!==n&&t.register(n,e)})},reset:function(){this._map={}},execute:function(e){var t=this._map[e];if(n.i(r.a)(t,'The "'+e+'" command has not been registered'),t){n.i(s.a)("[Commands] Executing",e);for(var i=arguments.length,a=Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o]
;return t.apply(void 0,a)}}};t.a=o},function(e,t,n){"use strict";var i=n(146),a=n.n(i),r=n(2571),s=n.n(r),o=n(2572),l=n.n(o),u=n(65),c=n.n(u),d=n(15),p={accessToken:1,address:1,auth_token:1,authToken:1,Authorization:1,clientIdentifier:1,email:1,host:1,myPlexAccessToken:1,password:1,uri:1,"X-Plex-Token":1},h=new RegExp("("+c()(p).join("|")+")(\\s?=\\s?)(['\"]?)[^'\"\n]+(['\"]?)","g"),f=/(error|exception)\]$/i,v={"%s":function(e){return e},"%d":function(e){return l()(e,10)},"%f":function(e){
return s()(e)}},m=function(e,t,n){return function(){var i,a=void 0,r=arguments.length;if(t=void 0===t?g.LEVEL_LOG:t,!(g.level<t)){if(0===r&&n)i=n;else if(1===r)i=g.serialize(arguments[0]);else if(r>1){for(var s=Array(r),o=-1;++o<r;)s[o]=g.serialize(arguments[o]);s[0]=s[0].replace(/%[sdif]/g,function(e,t){var n=e;return s.length>1&&(n=v[e](s[1]),s.splice(1,1)),n}),i=s.join(" ")}return!i||a&&!a.test(i)||d.a.trigger(e,{type:e,level:t,message:i}),i}}},g=m("log:message");g.LEVEL_NONE=-1,
g.LEVEL_ERROR=0,g.LEVEL_WARN=1,g.LEVEL_INFO=2,g.LEVEL_DEBUG=3,g.LEVEL_LOG=4,g.LEVEL_GROUP=g.LEVEL_INFO,g.LEVEL_GROUP_END=g.LEVEL_INFO,g.level=g.LEVEL_LOG,g.redacts=!0,g.setLevel=function(e){g.level=Math.max(g.LEVEL_NONE,Math.min(e,g.LEVEL_LOG))},g.debug=m("log:message",g.LEVEL_DEBUG),g.info=m("log:message",g.LEVEL_INFO),g.warn=m("log:message",g.LEVEL_WARN),g.error=m("log:message",g.LEVEL_ERROR),g.group=m("log:group",g.LEVEL_GROUP,"Group"),
g.groupCollapsed=m("log:groupCollapsed",g.LEVEL_GROUP,"Group"),g.groupEnd=function(){g.level<g.LEVEL_GROUP_END||d.a.trigger("log:groupEnd",{type:"log:groupEnd",level:g.LEVEL_GROUP_END})},g.serialize=function(e){var t=void 0;switch(t=void 0===e?"[object Undefined]":null===e?"[object Null]":Object.prototype.toString.call(e)){case"[object String]":return g.redacts?e.replace(h,"$1$2$3REDACTED$4"):e;case"[object Object]":case"[object Array]":try{var n=g.redacts?g._jsonReplacer:null;return a()(e,n,2)
}catch(e){return"Unable to serialize value"}case"[object Boolean]":case"[object Number]":case"[object Function]":case"[object RegExp]":return e.toString();case"[object Date]":return e.toUTCString();case"[object Undefined]":return"undefined";case"[object Null]":return"null";default:if(f.test(t)){var i=g._getMaxStackLength(),r=e.stacktrace||e.stack;return r&&r.length>i&&(r=r.substr(0,i-3)+"..."),g.serialize({type:t,stack:r,name:e.name,message:e.message})}return e.toString()}},
g._jsonReplacer=function(e,t){return p[e]?"REDACTED":"[object String]"===Object.prototype.toString.call(t)?g.serialize(t):t},g._getMaxStackLength=function(){return 1e3},t.a=g},function(e,t,n){"use strict";function i(e){var t=w.get(e);if(t&&t.child)return w.get(t.child)}function a(e){var t=w.get(e);if(t){var n=t.child;return null==n?t:a(n)}}function r(e){var t=w.get(e);if(t){var n=t.parent;return null==n?t:r(n)}}function s(e,t){if(!t){var n=r(e);return n?s(n.id,[]):[]}
var a=w.get(e),o=i(e),l=[].concat(t,[a]);return o?s(o.id,l):l}function o(e){return!!i(e)}function l(e){var t=w.get(e);return!!t&&t.mediaType===d.b}var u=n(241),c=n(4),d=n(66);n.d(t,"e",function(){return p}),n.d(t,"f",function(){return h}),n.d(t,"k",function(){return f}),n.d(t,"l",function(){return v}),n.d(t,"g",function(){return m}),n.d(t,"q",function(){return g}),n.d(t,"m",function(){return y}),n.d(t,"j",function(){return b}),n.d(t,"h",function(){return S}),n.d(t,"i",function(){return I}),
n.d(t,"d",function(){return M}),n.d(t,"r",function(){return D}),n.d(t,"b",function(){return P}),t.o=i,t.n=a,t.a=r,t.p=s,t.s=o,t.c=l;var p="movie",h="show",f="season",v="episode",m="artist",g="album",y="track",b="clip",S="photo",I="photoalbum",M="playlist",C=["id","typeString"],w=n.i(u.a)(C,[{id:1,typeString:p,title:function(){return n.i(c.default)("Movie")},plural:function(){return n.i(c.default)("Movies")},mediaType:d.a},{id:2,typeString:h,title:function(){return n.i(c.default)("Show")},
plural:function(){return n.i(c.default)("Shows")},mediaType:d.b,child:f},{id:3,typeString:f,title:function(){return n.i(c.default)("Season")},plural:function(){return n.i(c.default)("Seasons")},mediaType:d.b,parent:h,child:v},{id:4,typeString:v,title:function(){return n.i(c.default)("Episode")},plural:function(){return n.i(c.default)("Episodes")},mediaType:d.a,parent:f},{id:5,typeString:"trailer",title:function(){return n.i(c.default)("Trailer")},plural:function(){
return n.i(c.default)("Trailers")},mediaType:d.a},{id:6,typeString:"comic",title:function(){return n.i(c.default)("Comic")},plural:function(){return n.i(c.default)("Comics")},mediaType:d.c},{id:7,typeString:"person",title:function(){return n.i(c.default)("Person")},plural:function(){return n.i(c.default)("People")},mediaType:d.b},{id:8,typeString:m,title:function(){return n.i(c.default)("Artist")},plural:function(){return n.i(c.default)("Artists")},mediaType:d.b,child:g},{id:9,typeString:g,
title:function(){return n.i(c.default)("Album")},plural:function(){return n.i(c.default)("Albums")},mediaType:d.b,parent:m,child:y},{id:10,typeString:y,title:function(){return n.i(c.default)("Track")},plural:function(){return n.i(c.default)("Tracks")},mediaType:d.d,parent:g},{id:11,typeString:"picture",title:function(){return n.i(c.default)("Picture")},plural:function(){return n.i(c.default)("Pictures")},mediaType:d.c},{id:12,typeString:b,title:function(){return n.i(c.default)("Clip")},
plural:function(){return n.i(c.default)("Clips")},mediaType:d.a},{id:13,typeString:S,title:function(){return n.i(c.default)("Photo")},plural:function(){return n.i(c.default)("Photos")},mediaType:d.c,parent:I},{id:14,typeString:I,title:function(){return n.i(c.default)("Photo Album")},plural:function(){return n.i(c.default)("Photo Albums")},mediaType:d.b,child:S},{id:15,typeString:M,title:function(){return n.i(c.default)("Playlist")},plural:function(){return n.i(c.default)("Playlists")},
mediaType:d.b,parent:I},{id:16,typeString:"playlistFolder",title:function(){return n.i(c.default)("Playlist")},plural:function(){return n.i(c.default)("Playlists")},mediaType:d.b,child:M},{id:1001,typeString:"userPlaylistItem",title:function(){return n.i(c.default)("Clip")},plural:function(){return n.i(c.default)("Clips")},mediaType:d.a}]),D=w.contains,P=w.get;w.getAll},function(e,t,n){"use strict";function i(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e)return!0;if(a.a.error(t),n)throw new Error(t);return!1}var a=n(29),r="`assert` requires an error message argument";t.a=i},function(e,t,n){"use strict";var i=n(0);n.n(i);n.d(t,"e",function(){return a}),n.d(t,"b",function(){return r}),n.d(t,"a",function(){return s}),n.d(t,"g",function(){return o}),n.d(t,"f",function(){return l}),n.d(t,"c",function(){return u}),
n.d(t,"d",function(){return c});var a="library",r="continueWatching",s="prePlay",o="playlist",l="search",u="player",c="playQueue";i.PropTypes.oneOf(["discover",a,"timeline",r,s,o,l,"onlineContent",u,c])},function(e,t,n){"use strict";function i(e){var t="",n="";e?(t=e.userAgent,n=e.platform):null!=window.navigator&&(t=window.navigator.userAgent,n=window.navigator.platform),this.detect({userAgent:t,platform:n})}var a=/\/([^\s]+)\s+\(Vizio/,r=/(?:applewebkit|safari)\/(\d+(\.\d+)?)/i,s=function(e){
var t=/\(.* ([^\)]+)\)$/.exec(e);return t&&t[1]||void 0};i.prototype={constructor:i,browsers:[{id:"konvergo",name:"Plex Media Player",webkit:!0,regex:/plexmediaplayer/i,versionRegex:/plexmediaplayer (\d+\.\d+\.\d+)/i},{id:"anvergo",name:"Anvergo",webkit:!0,regex:/anvergo/i,versionRegex:/anvergo.*-(.*)/i},{id:"wiiu",name:"Wii U",regex:/wiiu/i,versionRegex:r,webkit:!0},{id:"ps3",name:"Unknown Browser",webkit:!0,regex:/\(PLAYSTATION 3 \d\./},{id:"ps4",name:"Unknown Browser",webkit:!0,
regex:/\(PlayStation 4 \d\./},{id:"ps3",name:"Mystery 3",webkit:!0,regex:/\(PlayStation 3\)/,versionRegex:r},{id:"ps4",name:"Mystery 4",webkit:!0,regex:/\(PlayStation 4\)/,versionRegex:r},{id:"edge",name:"Microsoft Edge",regex:/edge|(windows phone.+chrome)/i,versionRegex:/edge\/(\d+(\.\d+)?)/i},{id:"ie",name:"Internet Explorer",msie:!0,regex:/(msie|trident|iemobile)/i,versionRegex:/(msie |rv:)(\d+(\.\d+)?)/i,versionMatchIndex:2},{id:"opera",name:"Opera",presto:!0,regex:/opera/i,
versionRegex:/version\/(\d+(\.\d+)?)/i},{id:"opera",name:"Opera",webkit:!0,regex:/OPR\//,versionRegex:/OPR\/\s?(\d+(\.\d+)?)/},{id:"vivaldi",name:"Vivaldi",webkit:!0,regex:/vivaldi/i,versionRegex:/Vivaldi\/\s?(\d+(\.\d+)?)/},{id:"chrome",name:"Chrome",webkit:!0,regex:/(chrome|crios|gfiber|netbox)/i,versionRegex:/(?:chrome|crios|gfibertv)[\/-](\d+(\.\d+)?)/i},{id:"firefox",name:"Firefox",gecko:!0,regex:/firefox/i,versionRegex:/firefox[ \/](\d+(\.\d+)?)/i},{id:"safari",name:"Safari",webkit:!0,
regex:/macintosh.+safari/i,versionRegex:/version\/(\d+(\.\d+)?)/i},{id:"safari",name:"Safari",webkit:!0,regex:/applewebkit/i,versionRegex:r}],platforms:[{id:"metrological",name:"Metrological",tv:!0,regex:/WPE([-\w]+)?$/,version:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=/WPE(?:-(\w*))?$/.exec(e);if(t&&t[1])return t[1]}},{id:"netgem",name:"Netgem",tv:!0,regex:/^Netbox/,version:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:""
;return e.split("/")[1]||e}},{id:"netcast",name:"NetCast",tv:!0,predicate:function(e){return/netcast/i.test(e)&&!/web[o0]s/i.test(e)}},{id:"webos",name:"webOS",tv:!0,predicate:function(e){return/web[o0]s/i.test(e)&&/smarttv/i.test(e)},version:function(e){try{return JSON.parse(window.PalmSystem.deviceInfo).platformVersion}catch(e){}}},{id:"blackberry",name:"Blackberry",mobile:!0,regex:/BlackBerry|RIM|BB10/,version:function(e){
var t=/PlayBook/.test(e)?/Tablet OS (\d+\.\d+)/:/version\/(\d+(\.\d+)?)/i,n=t.exec(e);return n&&n[1]}},{id:"ps3",name:"PlayStation 3",tv:!0,regex:/P(lay)?S(tation )?3/i,version:function(e){return window.WM_devSettings?window.WM_devSettings.version:void 0}},{id:"ps4",name:"PlayStation 4",tv:!0,regex:/P(lay)?S(tation )?4/i,version:function(e){return window.WM_devSettings?window.WM_devSettings.version:void 0}},{id:"wiiu",name:"Wii U",tv:!0,regex:/Nintendo WiiU/},{id:"tizen",name:"Tizen",tv:!0,
predicate:function(e){return!!this.version(e)},version:function(e){var t=/Tizen (\d+(\.\d+)*)/i.exec(e);return t&&t[1]||void 0}},{id:"winvergo",name:"Winvergo",tv:!0,predicate:function(e){return!!window.Windows}},{id:"viera",name:"Viera",tv:!0,predicate:function(e){return!!this.version(e)},version:function(e){var t=/Viera\/(\d+(\.\d+)*)/i.exec(e);return t&&t[1]||void 0}},{id:"sta",name:"Smart TV Alliance",tv:!0,version:function e(t){var e,n;if(/SmartTvA/.test(t))n=/SmartTvA\/(\d+\.\d+)/.exec(t),
e=n&&n[1]||e;else{var i=[/Linux i686.+Chromium\/18/,/nettv\/4.2/i,/toshiba-dtv/i,/viera/i],a=[/nettv\/4/i],r=[/nettv/i],s=function(e){return e.test(t)};i.some(s)?e="2.0":a.some(s)?e="1.0":r.some(s)&&(e="0")}return e},predicate:function(e){return void 0!==this.version(e)}},{id:"tivo",name:"TiVo",tv:!0,regex:/TiVo/,version:function(e){var t=/TCD[^,]+/.exec(e);return t&&t[0]||void 0}},{id:"viziomtk",name:"Vizio MTK",tv:!0,predicate:function(e){return/opera/i.test(e)&&"undefined"!=typeof iMTK_JSP}
},{id:"viziosigma",name:"Vizio Sigma",tv:!0,predicate:function(e){return/opera/i.test(e)&&/vizio/i.test(e)},version:function(e){var t=a.exec(e);return t&&t[1]||void 0}},{id:"viziomtk",name:"Vizio MTK",tv:!0,predicate:function(e){return a.test(e)&&"undefined"!=typeof iMTK_JSP},version:function(e){var t=a.exec(e);return t&&t[1]||void 0}},{id:"viziosigma",name:"Vizio Sigma",tv:!0,regex:a,version:function(e){var t=a.exec(e);return t&&t[1]||void 0}},{id:"operatvstore",name:"Opera TV Store",tv:!0,
predicate:function(e){var t=/Opera TV Store/.test(e),n=/TV Store/.test(e)&&/OMI\//.test(e);return t||n}},{id:"operatv",name:"Opera TV",tv:!0,regex:/opera\/\d+\.\d+ \(linux (mips|arm)/i},{id:"android",name:"Android",tv:!0,regex:/Anvergo-Android/,version:function(e){var t=/Android (\d+\.\d+)/.exec(e);return t&&t[1]}},{id:"ios",name:"iOS",mobile:!0,regex:/(iphone|ipad|ipod)/i,version:function(e){var t=/OS (\d+_\d+)/.exec(e);return t&&t[1]?t[1].replace("_","."):void 0}},{id:"windowsphone",
name:"Windows Phone",mobile:!0,regex:/windows phone/i,version:function(e){var t=/windows phone[ os]*(\d+\.\d+);/i.exec(e);return t&&t[1]}},{id:"android",name:"Android",mobile:!0,regex:/android/i,version:function(e){var t=/Android (\d+\.\d+)/.exec(e);return t&&t[1]}},{id:"webos",name:"webOS",mobile:!0,predicate:function(e){return/hpwOS/.test(e)||/web[o0]s/i.test(e)&&!/smarttv/i.test(e)},version:function(e){var t=/(?:hpw|web)OS\/(\d+\.\d+)/.exec(e);return t&&t[1]}},{id:"openelec-rpi2",
name:"Embedded (Raspberry Pi)",tv:!0,regex:/plexmediaplayer.*openelec-rpi2/i,version:s},{id:"openelec",name:"Embedded",tv:!0,regex:/plexmediaplayer.*openelec/i,version:s},{id:"linuxkonvergo",name:"Linux",tv:!0,regex:/plexmediaplayer.*linux/i,version:s},{id:"osxkonvergo",name:"OSX",tv:!0,regex:/plexmediaplayer.*mac/i,version:s},{id:"windowskonvergo",name:"Windows",tv:!0,regex:/plexmediaplayer.*win/i,version:s},{id:"linux",name:"Linux",regex:/linux/i},{id:"osx",name:"OSX",regex:/Macintosh/,
version:function(e){var t=/OS X (\d+)[_.]?(\d+)?/.exec(e);if(t)return t[2]?t[1]+"."+t[2]:t[1]}},{id:"windows",name:"Windows",regex:/Windows/,version:function(e){var t={"6.0":"Vista / Server 2008",6.1:"7 / Server 2008 R2",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},n=/Windows [^\d;\)]*(\d+\.\d+)/.exec(e);if(n)return t[n[1]]}},{id:"chromeos",name:"Chrome OS",regex:/CrOS/,version:function(e){var t=/CrOS [\S]* (\d+)[_.]?(\d+)?/.exec(e);if(t)return t[2]?t[1]+"."+t[2]:t[1]}}],id:"unknown",
name:"Unknown Browser",version:"0",platformID:"unknown",platform:"Unknown Platform",platformVersion:"0",webkit:!1,gecko:!1,msie:!1,presto:!1,tv:!1,mobile:!1,detect:function(e){var t,n=this.runTests(this.browsers,e),i=this.runTests(this.platforms,e);n&&(this.id=n.id,this.name=n.name,this.version=this.getVersion(e.userAgent,n.versionRegex,n.versionMatchIndex||1),this.webkit=!!n.webkit,this.gecko=!!n.gecko,this.msie=!!n.msie,this.presto=!!n.presto),
i&&(t="function"==typeof i.version?i.version(e.userAgent):i.version,this.platform=i.name,this.platformID=i.id,this.platformVersion=t||this.platformVersion,this.mobile=!!i.mobile,this.tv=!!i.tv),this.tv||(this.platformModifierKey="osx"===this.platformID||"ios"===this.platformID?"command":"ctrl")},runTests:function(e,t){for(var n,i,a,r=0;i!==!0&&(a=e[r++]);)n=t[a.context||"userAgent"],a.regex?i=a.regex.test(n):a.predicate&&(i=a.predicate(n));return a},getVersion:function(e,t,n){var i=e.match(t)
;return i&&i.length>n&&i[n]||"0"},toJSON:function(){var e={};for(var t in this)this[t]&&"browsers"!==t&&"platforms"!==t&&(e[t]=this[t]);return e}},t.a=new i},function(e,t,n){"use strict";n.d(t,"B",function(){return i}),n.d(t,"A",function(){return a}),n.d(t,"u",function(){return r}),n.d(t,"z",function(){return s}),n.d(t,"C",function(){return o}),n.d(t,"P",function(){return l}),n.d(t,"Q",function(){return u}),n.d(t,"G",function(){return c}),n.d(t,"m",function(){return d}),n.d(t,"d",function(){
return p}),n.d(t,"F",function(){return h}),n.d(t,"O",function(){return f}),n.d(t,"D",function(){return v}),n.d(t,"E",function(){return m}),n.d(t,"S",function(){return g}),n.d(t,"R",function(){return y}),n.d(t,"r",function(){return b}),n.d(t,"p",function(){return S}),n.d(t,"t",function(){return I}),n.d(t,"s",function(){return M}),n.d(t,"a",function(){return C}),n.d(t,"b",function(){return w}),n.d(t,"c",function(){return D}),n.d(t,"x",function(){return P}),n.d(t,"w",function(){return T}),
n.d(t,"y",function(){return x}),n.d(t,"i",function(){return E}),n.d(t,"j",function(){return N}),n.d(t,"k",function(){return L}),n.d(t,"l",function(){return A}),n.d(t,"e",function(){return k}),n.d(t,"f",function(){return _}),n.d(t,"g",function(){return O}),n.d(t,"h",function(){return j}),n.d(t,"n",function(){return R}),n.d(t,"o",function(){return U}),n.d(t,"q",function(){return z}),n.d(t,"H",function(){return B}),n.d(t,"J",function(){return F}),n.d(t,"M",function(){return V}),
n.d(t,"L",function(){return Q}),n.d(t,"v",function(){return H}),n.d(t,"I",function(){return W}),n.d(t,"N",function(){return Y}),n.d(t,"K",function(){return G})
;var i="discover",a="library",r="preplay",s="playlists",o="searchResults",l="quickSearchResults",u="metadataList",c="player",d="account",p="plexpass",h="plexpassLite",f="cpms",v="signIn",m="setupWizard",g="downloads",y="unclaimedServer",b="dvrSettings",S="dvrSetup",I="dvrManageChannels",M="dvrDeviceSettings",C="subscriptions",w="manageSubscription",D="airingDetails",P="confirmMarkAsWatched",T="confirmMarkAsUnwatched",x="confirmDelete",E="confirmOptimizeDatabase",N="confirmCleanBundles",L="confirmEmptyTrash",A="confirmDeleteServer",k="confirmAnalyzeLibrary",_="confirmForceRefreshLibrary",O="confirmEmptyTrashLibrary",j="confirmDeleteLibrary",R="confirmRemoveWebhook",U="confirmUnlinkOauthProvider",z="confirmRemoveDVR",B="confirmClosePlayer",F="confirmPlayback",V="confirmRemoteToLocalPlayback",Q="confirmLocalToRemotePlayback",H="playVersion",W="resumePlayback",Y="playerError",G="liveTVPlayerConflict"
},function(e,t,n){"use strict";function i(){g&&(g=clearTimeout(g))}function a(){y&&(y=clearTimeout(y))}function r(){var e=b;b=null,a();e()}function s(){i(),a();var e=n.i(d.a)(),t=void 0;for(f=!0;p.length&&(!t||t-e<v);)p.pop()(),t=n.i(d.a)();f=!1,p.length?(u.a.warn("[State] Unable to process all updates within budget; %s update(s) remaining",p.length),g=setTimeout(s,m)):b&&(y=setTimeout(r,m))}function o(e){for(i(),a(),f=!0,h=!0;p.length;)p.pop()();if(e)try{e()}catch(e){
n.i(c.a)(!1,e.name+": "+e.message)}b&&r(),f=!1,h=!1}function l(e,t){return t.isStateTreeRoot?(b=e,void(f||y||(y=setTimeout(r,m)))):h?void e():(a(),p[0]!==e&&p.unshift(e),void(f||g||(g=setTimeout(s,m))))}var u=n(29),c=n(31),d=n(845);t.a=o,t.b=l;var p=[],h=!1,f=!1,v=1e3/60,m=1e3/60,g=void 0,y=void 0,b=void 0},function(e,t,n){"use strict";function i(e,t){var n="function"==typeof t;return function(){var i=n?t.apply(void 0,arguments):arguments[0];return{type:e,payload:i}}}n(31);t.a=i
},function(e,t,n){"use strict";var i=n(335);n.d(t,"w",function(){return i.a}),n.d(t,"x",function(){return i.b}),n.d(t,"y",function(){return i.c}),n.d(t,"z",function(){return i.d}),n.d(t,"A",function(){return i.e}),n.d(t,"_134",function(){return i.j}),n.d(t,"_135",function(){return i.f}),n.d(t,"_136",function(){return i.g}),n.d(t,"_137",function(){return i.h}),n.d(t,"F",function(){return a}),n.d(t,"G",function(){return r}),n.d(t,"H",function(){return s}),n.d(t,"I",function(){return o}),
n.d(t,"J",function(){return l}),n.d(t,"K",function(){return u}),n.d(t,"L",function(){return c}),n.d(t,"_75",function(){return d}),n.d(t,"_76",function(){return p}),n.d(t,"_77",function(){return h}),n.d(t,"_78",function(){return f}),n.d(t,"_79",function(){return v}),n.d(t,"_80",function(){return m}),n.d(t,"_81",function(){return g}),n.d(t,"_82",function(){return y}),n.d(t,"_92",function(){return b}),n.d(t,"_83",function(){return S}),n.d(t,"_84",function(){return I}),n.d(t,"_85",function(){
return M}),n.d(t,"_86",function(){return C}),n.d(t,"_87",function(){return w}),n.d(t,"_88",function(){return D}),n.d(t,"_89",function(){return P}),n.d(t,"_90",function(){return T}),n.d(t,"_91",function(){return x}),n.d(t,"Z",function(){return E}),n.d(t,"_0",function(){return N}),n.d(t,"_1",function(){return L}),n.d(t,"_2",function(){return A}),n.d(t,"_3",function(){return k}),n.d(t,"_4",function(){return _}),n.d(t,"_22",function(){return O}),n.d(t,"_23",function(){return j}),
n.d(t,"_5",function(){return R}),n.d(t,"_6",function(){return U}),n.d(t,"_7",function(){return z}),n.d(t,"_8",function(){return B}),n.d(t,"_9",function(){return F}),n.d(t,"i",function(){return V}),n.d(t,"j",function(){return Q}),n.d(t,"k",function(){return H}),n.d(t,"l",function(){return W}),n.d(t,"m",function(){return Y}),n.d(t,"n",function(){return G}),n.d(t,"o",function(){return K}),n.d(t,"p",function(){return q}),n.d(t,"q",function(){return X}),n.d(t,"r",function(){return Z}),
n.d(t,"s",function(){return J}),n.d(t,"t",function(){return $}),n.d(t,"u",function(){return ee}),n.d(t,"v",function(){return te}),n.d(t,"B",function(){return ne}),n.d(t,"C",function(){return ie}),n.d(t,"D",function(){return ae}),n.d(t,"E",function(){return re}),n.d(t,"_16",function(){return se}),n.d(t,"_17",function(){return oe}),n.d(t,"_18",function(){return le}),n.d(t,"_19",function(){return ue}),n.d(t,"_20",function(){return ce}),n.d(t,"_21",function(){return de}),n.d(t,"_127",function(){
return pe}),n.d(t,"_128",function(){return he}),n.d(t,"_129",function(){return fe}),n.d(t,"_133",function(){return ve}),n.d(t,"_109",function(){return me}),n.d(t,"_110",function(){return ge}),n.d(t,"_111",function(){return ye}),n.d(t,"_112",function(){return be}),n.d(t,"_113",function(){return Se}),n.d(t,"_114",function(){return Ie}),n.d(t,"_115",function(){return Me}),n.d(t,"_116",function(){return Ce}),n.d(t,"_117",function(){return we}),n.d(t,"_118",function(){return De}),
n.d(t,"_119",function(){return Pe}),n.d(t,"_120",function(){return Te}),n.d(t,"_121",function(){return xe}),n.d(t,"_122",function(){return Ee}),n.d(t,"_123",function(){return Ne}),n.d(t,"_102",function(){return Le}),n.d(t,"_103",function(){return Ae}),n.d(t,"_104",function(){return ke}),n.d(t,"_105",function(){return _e}),n.d(t,"_106",function(){return Oe}),n.d(t,"_107",function(){return je}),n.d(t,"_108",function(){return Re}),n.d(t,"_124",function(){return Ue}),n.d(t,"_125",function(){
return ze}),n.d(t,"_126",function(){return Be}),n.d(t,"_62",function(){return Fe}),n.d(t,"_63",function(){return Ve}),n.d(t,"_64",function(){return Qe}),n.d(t,"_65",function(){return He}),n.d(t,"_66",function(){return We}),n.d(t,"_26",function(){return Ye}),n.d(t,"_27",function(){return Ge}),n.d(t,"_28",function(){return Ke}),n.d(t,"_29",function(){return qe}),n.d(t,"_32",function(){return Xe}),n.d(t,"_33",function(){return Ze}),n.d(t,"_30",function(){return Je}),n.d(t,"_31",function(){return $e
}),n.d(t,"_34",function(){return et}),n.d(t,"_35",function(){return tt}),n.d(t,"_36",function(){return nt}),n.d(t,"_37",function(){return it}),n.d(t,"_38",function(){return at}),n.d(t,"_39",function(){return rt}),n.d(t,"_52",function(){return st}),n.d(t,"_53",function(){return ot}),n.d(t,"_40",function(){return lt}),n.d(t,"_41",function(){return ut}),n.d(t,"_42",function(){return ct}),n.d(t,"_43",function(){return dt}),n.d(t,"_44",function(){return pt}),n.d(t,"_45",function(){return ht}),
n.d(t,"_46",function(){return ft}),n.d(t,"_47",function(){return vt}),n.d(t,"_48",function(){return mt}),n.d(t,"_49",function(){return gt}),n.d(t,"_50",function(){return yt}),n.d(t,"_51",function(){return bt}),n.d(t,"_54",function(){return St}),n.d(t,"_55",function(){return It}),n.d(t,"_56",function(){return Mt}),n.d(t,"_57",function(){return Ct}),n.d(t,"_58",function(){return wt}),n.d(t,"_59",function(){return Dt}),n.d(t,"_60",function(){return Pt}),n.d(t,"_61",function(){return Tt}),
n.d(t,"P",function(){return xt}),n.d(t,"Q",function(){return Et}),n.d(t,"R",function(){return Nt}),n.d(t,"S",function(){return Lt}),n.d(t,"T",function(){return At}),n.d(t,"U",function(){return kt}),n.d(t,"V",function(){return _t}),n.d(t,"W",function(){return Ot}),n.d(t,"X",function(){return jt}),n.d(t,"Y",function(){return Rt}),n.d(t,"a",function(){return Ut}),n.d(t,"b",function(){return zt}),n.d(t,"c",function(){return Bt}),n.d(t,"d",function(){return Ft}),n.d(t,"e",function(){return Vt}),
n.d(t,"f",function(){return Qt}),n.d(t,"g",function(){return Ht}),n.d(t,"h",function(){return Wt}),n.d(t,"_10",function(){return Yt}),n.d(t,"_11",function(){return Gt}),n.d(t,"_12",function(){return Kt}),n.d(t,"_13",function(){return qt}),n.d(t,"_14",function(){return Xt}),n.d(t,"_15",function(){return Zt}),n.d(t,"_24",function(){return Jt}),n.d(t,"_25",function(){return $t}),n.d(t,"_67",function(){return en}),n.d(t,"_68",function(){return tn}),n.d(t,"_69",function(){return nn}),
n.d(t,"_70",function(){return an}),n.d(t,"_71",function(){return rn}),n.d(t,"_72",function(){return sn}),n.d(t,"_73",function(){return on}),n.d(t,"_74",function(){return ln}),n.d(t,"_130",function(){return un}),n.d(t,"_131",function(){return cn}),n.d(t,"_132",function(){return dn}),n.d(t,"M",function(){return pn}),n.d(t,"N",function(){return hn}),n.d(t,"O",function(){return fn}),n.d(t,"_93",function(){return vn}),n.d(t,"_94",function(){return mn}),n.d(t,"_95",function(){return gn}),
n.d(t,"_96",function(){return yn}),n.d(t,"_97",function(){return bn}),n.d(t,"_98",function(){return Sn}),n.d(t,"_99",function(){return In}),n.d(t,"_100",function(){return Mn}),n.d(t,"_101",function(){return Cn})
;var a="SAVE_SETTINGS",r="DOWNLOAD_SERVER",s="DISCOVER_SERVERS",o="REDIRECT_TO_ROUTE",l="REDIRECT_TO_HTTP",u="PREFER_INSECURE",c="app/switchAppLayout",d="SELECT_ITEM",p="SELECT_MODELS",h="DESELECT_ALL_ITEMS",f="DESELECT_MODELS",v="DESELECT_COLLECTION",m="SELECT_RANGE",g="DESELECT_RANGE",y="PLAY_SELECTED_ITEMS",b="QUEUE_SELECTED_ITEMS",S="ADD_SELECTED_ITEMS_TO_PLAYLIST",I="UPDATE_SELECTED_ITEMS_WATCHED_STATUS",M="EDIT_SELECTED_ITEMS",C="REFRESH_SELECTED_ITEMS",w="ANALYZE_SELECTED_ITEMS",D="SYNC_METADATA_ITEMS",P="OPTIMIZE_METADATA_ITEMS",T="MERGE_SELECTED_ITEMS",x="DELETE_SELECTED_ITEMS",E="FETCH_PLANS",N="POPULATE_PLANS",L="REPOPULATE_UNWATCHED_WATCH_LATER_LIST",A="REPOPULATE_UNWATCHED_RECOMMENDED_LIST",k="UPDATE_USER",_="CLEAR_UPDATE_USER_ERROR",O="UPDATE_USER_PROFILE",j="CLEAR_UPDATE_USER_PROFILE_ERROR",R="FETCH_WEBHOOKS",U="ADD_WEBHOOK",z="REPLACE_WEBHOOK",B="CLEAR_UPDATE_WEBHOOK_ERROR",F="REMOVE_WEBHOOK",V="TEST_SERVER",Q="SET_RELAY_REMINDER",H="FETCH_PROVIDERS",W="POPULATE_PROVIDERS",Y="FETCH_LIBRARIES",G="POPULATE_LIBRARIES",K="ADD_LIBRARY",q="START_LIBRARIES_REFRESH",X="SHARE_LIBRARIES",Z="ENABLE_HTTP_FALLBACK",J="OPTIMIZE_DATABASE",$="CLEAN_BUNDLES",ee="EMPTY_TRASH",te="DELETE_SERVER",ne="EVENT_CONNECTION_OPEN",ie="EVENT_CONNECTION_CLOSE",ae="RESTART_PERSONAL_CLOUD_SERVER",re="DISCOVER_MEDIA_GRABBER_DEVICE",se="SHARE_LIBRARY",oe="START_LIBRARY_REFRESH",le="EDIT_LIBRARY",ue="ANALYZE_LIBRARY",ce="EMPTY_TRASH_LIBRARY",de="DELETE_LIBRARY",pe="INIT_DASHBOARD_PAGE",he="FETCH_HUBS",fe="POPULATE_HUBS",ve="INIT_METADATA_LIST_PAGE",me="INIT_LIBRARY_PAGE",ge="INIT_LIBRARY_PAGE_METADATA_LIST",ye="FETCH_LIBRARY_DETAILS",be="POPULATE_LIBRARY_DETAILS",Se="FETCH_LIBRARY_FIRST_CHARACTERS",Ie="POPULATE_LIBRARY_FIRST_CHARACTERS",Me="FETCH_QUERY_PARSE",Ce="POPULATE_QUERY_PARSE",we="SELECT_LIBRARY_FILTER",De="DESELECT_LIBRARY_FILTER",Pe="FETCH_LIBRARY_FILTER_OPTIONS",Te="POPULATE_LIBRARY_FILTER_OPTIONS",xe="SEARCH_LIBRARY_FILTER_OPTIONS",Ee="SELECT_LIBRARY_TABLE_COLUMN",Ne="DESELECT_LIBRARY_TABLE_COLUMN",Le="INIT_PRE_PLAY_PAGE",Ae="INIT_PRE_PLAY_DESCENDANT_LIST",ke="INIT_PRE_PLAY_SIBLING_LIST",_e="PRE_FETCH_PRE_PLAY_METADATA_ITEM",Oe="FETCH_PRE_PLAY_METADATA_ITEM",je="FETCH_PRE_PLAY_RELATED_HUBS",Re="MAKE_PRE_PLAY_VIDEO_DECISION",Ue="INIT_TIMELINE_PAGE",ze="FETCH_TIMELINE_DETAILS",Be="POPULATE_TIMELINE_DETAILS",Fe="INIT_LIVE_TV_SETTINGS_PAGE",Ve="CLEAR_LIVE_TV_SETTINGS_PAGE",Qe="FETCH_DVRS",He="REMOVE_DVR",We="RELOAD_GUIDE",Ye="CLEAR_DVR_SETUP",Ge="DVR_SETUP_NEXT_STEP",Ke="DVR_SETUP_PREVIOUS_STEP",qe="FETCH_DEVICES",Xe="SELECT_DEVICE",Ze="SELECT_DEVICE_SOURCE",Je="DISCOVER_DEVICES",$e="ADD_DEVICE",et="FETCH_DEVICE_DETAILS",tt="FETCH_DEVICE_CHANNELS",nt="SCAN_DEVICE_CHANNELS",it="CANCEL_SCAN_DEVICE_CHANNELS",at="FIND_BEST_EPG_LINEUP",rt="SELECT_EPG_LINEUP",st="FETCH_LINEUP_CHANNELS",ot="FETCH_CHANNEL_MAP",lt="CLEAR_CHANNEL_MAP_ERROR",ut="SAVE_CHANNEL_MAP",ct="CLEAR_CHANNEL_MAPPINGS_SAVE_ERROR",dt="SAVE_DVR",pt="ADD_DVR_DEVICE",ht="REMOVE_DVR_DEVICE",ft="SAVE_DVR_SETTINGS",vt="CLEAR_DVR_SETTINGS_SAVE_ERROR",mt="SAVE_DEVICE_SETTINGS",gt="CLEAR_DEVICE_SETTINGS_SAVE_ERROR",yt="CLEAR_DEVICE_SCAN_PREFS",bt="SET_DVR_DEVICE_ENABLED",St="RESET_EPG_SETTINGS",It="FETCH_EPG_COUNTRIES",Mt="FETCH_EPG_LANGUAGES",Ct="SELECT_EPG_COUNTRY",wt="SELECT_EPG_LANGUAGE",Dt="SELECT_EPG_REGION",Pt="SET_EPG_POSTAL_CODE",Tt="FETCH_EPG_LINEUPS",xt="INIT_RECORDING_SCHEDULE_PAGE",Et="CLEAR_RECORDING_SCHEDULE_PAGE",Nt="FETCH_MEDIA_SUBSCRIPTIONS",Lt="MOVE_MEDIA_SUBSCRIPTION",At="SET_VISIBLE_DAYS",kt="GO_TO_TODAY",_t="GO_TO_PREVIOUS_RANGE",Ot="GO_TO_NEXT_RANGE",jt="FETCH_CALENDAR",Rt="PLAY_RECORDING",Ut="INIT_MEDIA_SUBSCRIPTION_MODAL",zt="CLEAR_MEDIA_SUBSCRIPTION_MODAL",Bt="FETCH_MEDIA_SUBSCRIPTION",Ft="SAVE_MEDIA_SUBSCRIPTION",Vt="CHANGE_MEDIA_SUBSCRIPTION_TEMPLATE_MODE",Qt="CLEAR_MEDIA_SUBSCRIPTION_MODAL_ERROR",Ht="MOVE_MEDIA_SUBSCRIPTION_MODAL",Wt="DELETE_MEDIA_SUBSCRIPTION_MODAL",Yt="SHOW_PROVISION_PERSONAL_CLOUD_SERVER_MODAL",Gt="PROVISION_PERSONAL_CLOUD_SERVER",Kt="CONNECT_TO_OWNED_PERSONAL_CLOUD_SERVER",qt="POPULATE_PERSONAL_CLOUD_SERVER_CACHE",Xt="FETCH_PERSONAL_CLOUD_SERVER_STATUS",Zt="INDICATE_INTEREST_IN_PERSONAL_CLOUD_SERVER",Jt="FETCH_OAUTH_PROVIDERS",$t="UNLINK_OAUTH_PROVIDER",en="INIT_QUICK_SEARCH",tn="RESET_QUICK_SEARCH",nn="FETCH_QUICK_SEARCH",an="CHANGE_SEARCH_QUERY",rn="CHANGE_SEARCH_SETTINGS",sn="SELECT_SEARCH_RESULT",on="NAVIGATE_SEARCH_RESULT",ln="PLAY_SEARCH_RESULT",un="POPULATE_SEARCH_PROVIDERS",cn="FETCH_SEARCH_PAGE",dn="CLEAR_SEARCH_PAGE",pn="CHANGE_BACKGROUND",hn="CHANGE_THEME_MUSIC",fn="RESET_BACKGROUND",vn="INIT_PLAYLIST_PAGE",mn="INIT_PLAYLIST_ITEM_LIST",gn="FETCH_PLAYLIST",yn="POPULATE_PLAYLIST_ITEM_RANGE",bn="SELECT_PLAYLIST_ITEM",Sn="DESELECT_PLAYLIST_ITEM",In="MOVE_PLAYLIST_ITEM",Mn="REMOVE_PLAYLIST_ITEM",Cn="REMOVE_SELECTED_ITEMS"
},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.containerClassName,a=e.labelClassName,s=e.size,l=e.label,u=(t||"")+" "+(c.a[s]||"");return l?r()("div",{className:(i||"")+" "+(c.a.spinnerContainer||"")},void 0,r()("div",{className:u}),r()("div",{className:(a||"")+" "+(c.a.spinnerLabel||"")},void 0,l)):r()("div",{className:u,"aria-label":n.i(o.default)("Loading")})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(20),u=n(2695),c=n.n(u);i.defaultProps={size:l.d.MEDIUM},t.a=i
},,,,function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(function(e){return e.ui},function(e,t){return t.playerType},function(e,t){return e[t+"Player"]})}var a=n(5);n.n(a);t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(function(e,t){return e.entities.providers[t]},function(e){return e?{identifier:e.identifier,metricsIdentifier:e.metricsIdentifier,isLibraryProvider:e.isLibraryProvider,protocols:e.protocols.reduce(function(e,t){return e[t]=!0,e
},{}),features:e.features.reduce(function(e,t){return e[t.type]=!0,e},{})}:{}})}function a(e,t){var a=t.providerEntityID,r=o[a];return r||(r=n.i(s.a)(i(),function(e){return e}),o[a]=r),r(e,a)}var r=n(5),s=(n.n(r),n(526));t.a=a;var o={}},function(e,t,n){"use strict";var i=n(3148),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(62),c=u.a.extend({className:"confirm-modal modal modal-sm fade",template:a.a,ui:{doubleConfirmMessage:".double-confirm-message",confirmBtn:".confirm-btn",
confirmLabel:".confirm-btn .btn-label"},events:s.a.extend({"click .confirm-btn":"onConfirm"},u.a.prototype.events),whitelistedOptions:["title","message","confirmLabel","cancelLabel","hasDanger","hideCancel"],initialize:function(e){u.a.prototype.initialize.apply(this,arguments),this.async=e.async,this.data=s.a.pick(e,this.whitelistedOptions),this.promise=l.a.Deferred()},serializeData:function(){return s.a.defaults(this.data,{confirmLabel:"Yes",cancelLabel:"No"})},onRender:function(){
u.a.prototype.onRender.apply(this,arguments),setTimeout(s.a.bind(function(){this.ui.confirmBtn.focus()},this),this.focusDelay)},onHide:function(e){u.a.prototype.onHide.apply(this,arguments),this.promise.reject()},onConfirm:function(e){if(e.preventDefault(),this.options.requireDoubleConfirm&&!this.hasConfirmedOnce){this.hasConfirmedOnce=!0;var t=this.options.doubleConfirmMessage,n=this.options.doubleConfirmLabel;return t&&this.ui.doubleConfirmMessage.text(t),void(n&&this.ui.confirmLabel.text(n))}
this.promise.resolve(),this.async?this.ui.confirmBtn.addClass("active"):this.hide()}});t.a=c},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(function(e,t){return e.entities.servers[t]},function(e){return e?{machineIdentifier:e.machineIdentifier,allowSync:e.allowSync,allowMediaDeletion:e.allowMediaDeletion,backgroundProcessing:e.backgroundProcessing,transcoderVideo:e.transcoderVideo,isFullServer:e.isFullServer,isFullOwnedServer:e.isFullOwnedServer,livetv:e.livetv}:{}})}
function a(e,t){var a=t.serverEntityID,r=o[a];return r||(r=n.i(s.a)(i(),function(e){return e}),o[a]=r),r(e,a)}var r=n(5),s=(n.n(r),n(228));t.a=a;var o={}},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(function(e,t){return t.serverEntityID},r.a,function(e,t){return t[e]})}var a=n(5),r=(n.n(a),n(179));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children,i=e.kind,a=e.size,s=o()(e,["className","children","kind","size"])
;return u.a.createElement(d.a,r()({className:(t||"")+" "+(h.a.button||"")+" "+(h.a[i]||"")+" "+(h.a[a]||"")},s),n)}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(20),d=n(23),p=n(2699),h=n.n(p);i.defaultProps={kind:c.b.DEFAULT,size:c.d.MEDIUM},t.a=i},,function(e,t,n){"use strict";function i(e,t){s.a.isArray(t)?s.a.each(t,e):e(t)}function a(e){return s.a.reduce(e,function(e,t){var n=t.split("="),i=n[0],a=n[1];try{i=decodeURIComponent(i),a=void 0===a?null:decodeURIComponent(a),
e.hasOwnProperty(i)?Array.isArray(e[i])?e[i].push(a):e[i]=[e[i],a]:e[i]=a}catch(e){u.a.warn("Unable to decode query string at "+i)}return e},{})}var r=n(3),s=n.n(r),o=n(690),l=n.n(o),u=n(29),c=new l.a(!1,"",!0),d={parseXML:function(e){if(!e)return{};var t=c.parseXmlString(e);if(!t)return u.a.warn("parseXML: No XML document created"),{};if(t.getElementsByTagName("parsererror").length)return u.a.warn("parseXML: Errors found while parsing XML document"),{};try{return c.xml2json(t)}catch(e){
return u.a.warn("parseXML: Unable to parse XML: "+e.message),{}}},replaceXMLElementNames:function(e,t,n){s.a.isArray(t)||(t=[t]);var i=t.join("|"),a=new RegExp("<("+i+")","g"),r=new RegExp("</("+i+")>","g");return e=e.replace(a,"<"+n+' elementName="$1"'),e=e.replace(r,"</"+n+">")},parseEncodedString:function(e,t){function n(t){if(e.hasOwnProperty(t)){var n=e[t];if(null==n)e[t]="";else try{e[t]=decodeURIComponent(n)}catch(e){}}}e&&i(n,t)},parseInteger:function(e,t){function n(t){
if(e.hasOwnProperty(t)){var n=e[t];e[t]=null==n||""===n?0:parseInt(n,10)}}e&&i(n,t)},parseFloat:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e,t){function n(t){if(e.hasOwnProperty(t)){var n=e[t];e[t]=null===n||""===n?0:parseFloat(n)}}e&&i(n,t)}),parseBoolean:function(e,t){function n(t){if(e.hasOwnProperty(t)){var n=e[t];e[t]=1===Number(n)||"true"===n}}e&&i(n,t)},parseArray:function(e,t){function n(t){
if(e.hasOwnProperty(t)){var n=e[t];s.a.isArray(n)||(e[t]=[n])}else e[t]=[]}e&&i(n,t)},parseQueryString:function(e,t,n){function r(t){if(e.hasOwnProperty(t)){var i=e[t];if(!s.a.isObject(i)){if(!s.a.isString(i))return void(e[t]={});if(!(i=i.trim().replace(/^(\?|#)/,"")))return void(e[t]={});e[t]=a(i.split(n))}}}e&&(n||(n="&"),i(r,t))}};t.a=d},function(e,t,n){"use strict";function i(){return"id-"+a++}t.a=i;var a=0},function(e,t,n){"use strict"
;var i=n(3),a=n.n(i),r=n(18),s=r.a.CollectionView.extend({appendHtml:function(e,t,n){return this.sorted?this.sortedAppendHtml.apply(this,arguments):this.reversed?this.reversedAppendHtml.apply(this,arguments):r.a.CollectionView.prototype.appendHtml.apply(this,arguments)},sortedAppendHtml:function(e,t,n){if(e.isBuffering){var i=e.elBuffer.childNodes;i.length<=n?e.elBuffer.appendChild(t.el):e.elBuffer.insertBefore(t.el,i[n]),e._bufferedChildren.push(t)}else{
var a=e.itemViewContainer?e.$(e.itemViewContainer):e.$el,r=a.children();r.size()<=n?a.append(t.el):r.eq(n).before(t.el)}},reversedAppendHtml:function(e,t,n){if(e.isBuffering)e.elBuffer.insertBefore(t.el,e.elBuffer.firstChild),e._bufferedChildren.push(t);else{(e.itemViewContainer?e.$(e.itemViewContainer):e.$el).prepend(t.el)}},measureList:function(){if(this.children.length){var e=this.children._views,t=e[a.a.first(a.a.keys(e))];a.a.defer(a.a.bind(function(){this.itemWidth=t.$el.outerWidth(!0),
this.itemHeight=t.$el.outerHeight(!0),this.itemMarginRight=parseInt(t.$el.css("margin-right"),10),this.itemMarginBottom=parseInt(t.$el.css("margin-bottom"),10),this.triggerMethod("measure",this)},this))}},getViewForModel:function(e){var t=this.children._indexByModel[e.cid];return this.children._views[t]},reorder:function(){var e=this.children,t=this.collection.models,n=a.a.map(t,function(t,n){var i=e.findByModel(t);return i._index=n,i.el});this.$el.append(n)},onCollectionRendered:function(){
this.measure&&this.measureList()}});t.a=s},function(e,t,n){"use strict";function i(e,t){return t||(t={}),r.a.defaults(t,{typeName:e,parse:r.a.bind(s.a.parseType,s.a,e)})}var a=n(3),r=n.n(a),s=n(60),o={xml:i("xml"),json:i("json",{accept:"application/json"}),text:i("text")};t.a=o},function(e,t,n){"use strict";function i(e,t){if(t){var n=[];n.push(e);for(var i=arguments.length,a=Array(i>2?i-2:0),r=2;r<i;r++)a[r-2]=arguments[r];for(var s=0,o=a.length;s<o;s++){var l=a[s];l&&n.push(l)}
return n.push(t),n.join("--")}}t.a=i},,function(e,t,n){"use strict";function i(e){var t={},n=u.a.result(e,"responseType");return n&&n.accept&&(t.Accept=n.accept),t}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(3),u=n.n(l),c=n(266),d=n.n(c),p=n(59),h=n(19),f=n(1243);n.d(t,"c",function(){return v}),n.d(t,"b",function(){return m});var v=15e3,m=6e4,g=d.a.noConflict(),y=g.sync;g.sync=function(e,t,n){
var a=n.url,s=n.data,l=n.headers,c=o()(n,["url","data","headers"]),d=c.server||t.server||t,p=a||u.a.result(t,"syncUrl")||u.a.result(t,"url"),f=u.a.isObject(s)?h.stringifyParams(s):s,g=!!f&&f.indexOf("checkFiles=1")>-1,b=g||d.get("isPersonalCloudServer"),S=r()({data:f,dataType:"text",processData:!1,headers:u.a.extend(i(t),l),timeout:b?m:v},c);return u.a.isFunction(d.getXHROptions)?(S=d.getXHROptions(p,S),"cloudsync"===d.get("platform")&&(S.url=h.join(S.url,{redirect:0}))):S.url=p,y(e,t,S)},
g.wrapError=function(e,t){var n=t.error;t.error=function(i){n&&n(e,i,t),e.trigger("error",e,i,t)}},u.a.extend(g.View.prototype,f.a),g.Model.extend=p.a.extend,g.Collection.extend=p.a.extend,g.Router.extend=p.a.extend,g.View.extend=p.a.extend,g.History.extend=p.a.extend,t.a=g},function(e,t,n){"use strict";n.d(t,"f",function(){return i}),n.d(t,"e",function(){return a}),n.d(t,"g",function(){return r}),n.d(t,"c",function(){return s}),n.d(t,"m",function(){return o}),n.d(t,"n",function(){return l}),
n.d(t,"o",function(){return u}),n.d(t,"d",function(){return c}),n.d(t,"b",function(){return d}),n.d(t,"h",function(){return p}),n.d(t,"i",function(){return h}),n.d(t,"a",function(){return f}),n.d(t,"j",function(){return v}),n.d(t,"k",function(){return m}),n.d(t,"l",function(){return g})
;var i="servers",a="providers",r="libraries",s="hubs",o="users",l="resources",u="friends",c="metadataLists",d="metadataItems",p="sessions",h="userPlaylistItems",f="mediaSubscriptions",v="liveTVSessions",m="playQueueItems",g="playlistItems"},function(e,t){e.exports={signInFormSectionWidth:"320px",sliderTrackWidth:"60px",sliderThumbSize:"12px",menuSmallWidth:"120px",menuMediumWidth:"180px",menuLargeWidth:"220px",menuPadding:"8px",menuItemTopPadding:"4px",menuItemSidePadding:"20px",
serverMenuItemHeight:"60px",tooltipArrowSize:"6px",smallArrowWidth:"6px",mediumArrowWidth:"8px",largeArrowWidth:"10px",sidebarWidth:"240px",sidebarLeftGutterWidth:"25px",searchHubTitleHeight:"18px",searchResultWidth:"346px",searchResultHeight:"50px",posterTitlePadding:"10px",posterTitleHeight:"20px",posterCenterCircleSize:"42px",posterBadgeHeight:"24px",posterHoverSlideDistance:"10px",pageHeaderHeight:"60px",pagePadding:"60px",breadcrumbMargin:"25px",recordingPriorityPaneWidth:"360px",
recordingPriorityPaneBorderWidth:"4px",recordingPriorityDragHandleWidth:"62px",breakpointExtraSmall:"480px",breakpointSmall:"768px",breakpointMedium:"992px",breakpointLarge:"1200px",toolbarButtonWidth:"50px",jumpBarCharacterHeight:"25px",jumpBarGutter:"30px",tableHeaderHeight:"40px",tableRowHeight:"40px",tableCellPadding:"20px",playCellWidth:"42px",actionsCellWidth:"122px",summaryCellHeight:"136px",summaryCellPadding:"20px",mosaicCellPadding:"5px",timelineGutter:"60px",
prePlaySummaryMaxWidth:"750px",prePlayPosterMinWidth:"150px",prePlayPosterMaxWidth:"230px",prePlayPosterWidthRatio:"0.15",prePlayContentPadding:"20px",postPlayPosterWidth:"260px",postPlayPadding:"80px",filterBuilderFooterHeight:"46px",autosuggestSuggestionRadius:"4px",inputBorderRadius:"4px",dvrSetupImageWidth:"193px",playerControlsHeight:"80px",playerUpNextHeight:"45px",playerTopControlsHeight:"60px",playerSideControlsWidth:"100px",playerPosterHeight:"76px",seekBarHeight:"4px",
seekBarTooltipMarginBottom:"4px",seekBarTooltipHeight:"23px",seekBarTooltipSmallWidth:"60px",seekBarTooltipLargeWidth:"90px",playQueueItemHeight:"68px",playQueueMoveButtonWidth:"54px",playQueueSidePadding:"60px",lyricsLineHeight:"30px",lyricsLineWidth:"640px",playlistItemCardWidth:"64px"}},function(e,t,n){"use strict";function i(e){return e.get("related").findWhere({browse:!1}).get("metadataList")}function a(e,t,n){return function(){if(t.get("isOpen")&&e===Z)return n.apply(void 0,arguments)
;v.a.warn("[Player] Player was closed or a new playback session was started; ignoring playback request")}}var r=n(6),s=n.n(r),o=n(14),l=n.n(o),u=n(3),c=n.n(u),d=n(10),p=n.n(d),h=n(13),f=n(4),v=n(29),m=n(19),g=n(30),y=n(64),b=n(81),S=n(137),I=n(837),M=n(35),C=n(98),w=n(166),D=n(36),P=n(522),T=n(336),x=n(338),E=n(1354),N=n(771),L=n(397),A=n(337),k=n(514),_=n(76),O=n(109);n.d(t,"m",function(){return R}),n.d(t,"n",function(){return U}),n.d(t,"c",function(){return B}),n.d(t,"i",function(){return F}),
n.d(t,"g",function(){return V}),n.d(t,"h",function(){return Q}),n.d(t,"b",function(){return H}),n.d(t,"a",function(){return W}),n.d(t,"k",function(){return Y}),n.d(t,"j",function(){return G}),n.d(t,"d",function(){return K}),n.d(t,"e",function(){return q}),n.d(t,"f",function(){return X}),n.d(t,"l",function(){return J})
;var j,R="ui/player/playerLifecycle/startPlayback",U="ui/player/playerLifecycle/queuePlayback",z="ui/player/playerLifecycle/endPlayback",B=n.i(D.a)(R),F=n.i(D.a)("ui/player/playerLifecycle/startPrimaryExtraPlayback"),V=n.i(D.a)("ui/player/playerLifecycle/startRelatedMixPlayback"),Q=n.i(D.a)("ui/player/playerLifecycle/queueRelatedMixPlayback"),H=n.i(D.a)(U),W=n.i(D.a)("ui/player/playerLifecycle/startLegacyChannelPlayback"),Y=n.i(D.a)("ui/player/playerControls/clearPlayerConfirmPlaybackPayload"),G=n.i(D.a)("ui/player/playerControls/clearPlayerConfirmOffsetPayload"),K=n.i(D.a)(z),q=n.i(D.a)(R,function(e){
var t=e.options,n=void 0===t?{}:t,i=l()(e,["options"]);return s()({},i,{metricsAction:y.g,options:s()({},n,{playAll:!0})})}),X=n.i(D.a)(R,function(e){var t=e.options,n=void 0===t?{}:t,i=l()(e,["options"]);return s()({},i,{metricsAction:y.h,options:s()({},n,{shuffle:!0})})}),Z=void 0,J=(j={},j[R]=function(e,t,i){
var r=t.serverEntityID,o=t.providerEntityID,l=t.metadataItemEntityID,u=t.liveTVSessionEntityID,c=t.confirmPlayback,d=t.confirmOffset,p=t.startOffsetMilliseconds,v=void 0===p?null:p,m=t.startMediaIndex,D=void 0===m?null:m,x=t.openState,L=void 0===x?S.a:x,k=t.isPaused,_=void 0!==k&&k,O=t.extrasPrefixCount,j=n.i(P.a)(e,t),R=n.i(T.a)(j),U=b.a(R),z=n.i(w.a)(e,U),B=z.get("playQueue"),F=j.metadataItemModel;if(!B||!F||B.get("playQueueSelectedMetadataItemID")!==F.get("ratingKey")){
if(!c&&B&&B.get("playQueueVersion")>1)return void z.set("confirmPlaybackPayload",t);var V={serverEntityID:r,providerEntityID:o,isOpen:!0,openState:L,isPlayQueueLoading:!0,isMediaLoading:!0,isPaused:_,startOffsetMilliseconds:v,startMediaIndex:D};if(u&&(V.liveTVSession=C.a(e,{liveTVSessionEntityID:u})),F&&n.i(I.a)(F)&&(V.startMetadataItemEntityID=l),!d&&F&&F.get("viewOffset")&&(V.confirmOffsetPayload=t),n.i(M.a)(function(){z.restoreDefaults(V)}),!V.confirmOffsetPayload){
var Q=!(v||!F||F.get("type")!==g.e),H=n.i(E.a)(s()({},j,{extrasPrefixCount:Q?O:0,playQueueModel:n.i(N.a)(s()({},j,{playQueueType:R}))}));Z=H,H.done(a(H,z,function(t){z.set({isPlayQueueLoading:!1,playQueue:t}),n.i(A.a)(e).startPlayback(z)})).fail(a(H,z,function(){z.restoreDefaults({hasError:!0,errorMessage:n.i(f.default)("An error occurred loading items to play.")})}));var W=t.metricsProperties||{};n.i(h.a)("metrics").trackClick(s()({page:t.metricsPage,action:t.metricsAction||y.i,type:R},W))}}},
j["ui/player/playerLifecycle/startPrimaryExtraPlayback"]=function(e,t,n){var i=t.options||{},a=C.b(e,t);n(B(s()({},t,{metricsAction:y.j,options:s()({},i,{itemKey:a.get("primaryExtraKey"),type:"video"})})))},j["ui/player/playerLifecycle/startRelatedMixPlayback"]=function(e,t,a){var r=t.options||{},o=C.b(e,t),l=i(o);a(B({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataItemEntityID:t.metadataItemEntityID,metricsAction:y.k,options:s()({},r,{type:n.i(T.a)({
metadataItemModel:o}),containerKey:l.get("containerKey")})}))},j["ui/player/playerLifecycle/queueRelatedMixPlayback"]=function(e,t,a){var r=C.b(e,t),s=i(r);a(H({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataItemEntityID:t.metadataItemEntityID,metricsPage:t.metricsPage,metricsAction:y.l,listType:n.i(T.a)({metadataItemModel:r}),options:{next:!0,containerKey:m.join(s.get("containerKey"),{excludeSeedItem:1})}}))},
j["ui/player/playerLifecycle/startLegacyChannelPlayback"]=function(e,t,n){var i=t.serverModel,a=t.metadataItemModel,r=c.a.omit(a.toJSON(),"id","sourceTitle","recommender","message","isUserPlaylistItem","children"),s=new k.a({},{server:i}),o=new _.a(r,{server:i,containerKey:a.containerKey});e.set({legacyChannelProvider:s,legacyChannelMetadataItem:o}),n(B({serverEntityID:i.entityID(),providerEntityID:s.entityID(),metadataItemEntityID:o.entityID()}))},j[U]=function(e,t,i){
var r=t.serverEntityID,o=t.providerEntityID,l=t.startOffsetMilliseconds,u=void 0===l?null:l,c=t.openState,d=void 0===c?S.a:c,p=n.i(P.a)(e,t),v=n.i(T.a)(p),m=b.a(v),g=n.i(w.a)(e,m),I=!!p.playQueueID,C=g.get("playQueue");if(C&&g.get("providerEntityID")===o)n.i(E.a)(s()({},p,{playQueueModel:C})).done(n.i(L.a)(g,function(){n.i(A.a)(e).refreshRemotePlayQueue(g)})).fail(n.i(L.a)(g,function(){g.set({hasError:!0,errorMessage:n.i(f.default)("An error occurred loading items into the play queue.")})
}));else{n.i(M.a)(function(){g.restoreDefaults({serverEntityID:r,providerEntityID:o,isOpen:!0,openState:d,isPlayQueueLoading:!0,isMediaLoading:!0,isPaused:!p.next,repeatAll:!!p.playQueueRepeat,startOffsetMilliseconds:u})}),C=n.i(N.a)(s()({},p,{playQueueType:v}));var D=I?n.i(x.a)(C):n.i(E.a)(s()({},p,{next:!1,playQueueModel:C}));Z=D,D.done(a(D,g,function(t){g.set({isPlayQueueLoading:!1,playQueue:t}),n.i(A.a)(e).startPlayback(g)})).fail(a(D,g,function(){i(n.i(O.a)()),
I?g.restoreDefaults():g.restoreDefaults({hasError:!0,errorMessage:n.i(f.default)("An error occurred loading items to play.")})}))}var k=p.next?y.m:y.n,_=t.metricsProperties||{};n.i(h.a)("metrics").trackClick(s()({page:t.metricsPage,action:t.metricsAction||k,type:v},_))},j["ui/player/playerControls/clearPlayerConfirmPlaybackPayload"]=function(e,t){var i=t.playerType,a=(t.openState,n.i(w.a)(e,i));n.i(M.a)(function(){a.set("confirmPlaybackPayload",null)})},
j["ui/player/playerControls/clearPlayerConfirmOffsetPayload"]=function(e,t){var i=t.playerType,a=(t.openState,n.i(w.a)(e,i));n.i(M.a)(function(){a.restoreDefaults()})},j[z]=function(e,t,i){var a=t.playerType,r=n.i(w.a)(e,a),s=n.i(A.a)(e),o=r.get("liveTVSession");if(n.i(M.a)(function(){i(n.i(O.a)()),s.endPlayback(r),e.unset("legacyChannelProvider"),e.unset("legacyChannelMetadataItem")}),o){var l=m.join(["/media/subscriptions",o.id]);p.a.ajax(o.server.getXHROptions(l,{method:"DELETE"}))}},j)
},function(e,t,n){"use strict";function i(){r.a.isFunction(this.initialize)&&this.initialize.apply(this,arguments)}var a=n(3),r=n.n(a),s=function(e,t){var n,i=this;n=e&&r.a.has(e,"constructor")?e.constructor:function(){return i.apply(this,arguments)||null},r.a.extend(n,i,t);var a=function(){this.constructor=n};if(a.prototype=i.prototype,n.prototype=new a,e&&e.hasOwnProperty("mixins")){var s=e.mixins;delete e.mixins,r.a.isArray(s)||(s=[s]),r.a.each(s,function(e){r.a.extend(n.prototype,e)})}
return e&&r.a.extend(n.prototype,e),n.__super__=i.prototype,n};i.extend=s,t.a=i},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(557),s=n(558),o=n(1439),l=n(1440),u=n(559),c=n(1441),d=n(1442),p=n(1443),h=n(1444),f=n(410),v=n(1447),m=n(1448),g=n(1449),y={parseType:function(e,t,n){var i=this.getByType("parse",e,this._parseTypeMap);return i?i(t,n):t},stringifyType:function(e,t,n){if(a.a.isString(t))return t;if(null==t)return"";var i=this.getByType("stringify",e,this._stringifyTypeMap)
;return i?i(t,n):t},getByType:function(e,t,n){if(n&&a.a.has(n,t))return n[t];var i=t.charAt(0).toUpperCase()+t.slice(1),r=e+i;return a.a.has(this,r)?(n[t]=this[r],this[r]):void 0},parseBoolean:s.a,stringifyBoolean:v.a,parseInteger:u.a,parseFloat:l.a,parseString:h.a,parseEncodedString:o.a,parseArray:r.a,parseList:d.a,stringifyList:m.a,parseQueryString:p.a,stringifyQueryString:g.a,parseJSON:c.a,parseXML:f.a,reset:function(){this._parseTypeMap={json:this.parseJSON,xml:this.parseXML},
this._stringifyTypeMap={}}};y.reset(),t.a=y},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(55),s=n(2563).default,o=r.a.Model.extend({defaults:a.a.extend({allowFlash:!1,allowServerUpdates:!1,testPrivateConnectionsWhenPublicAddressDoesNotMatch:!0,allowHttpsMediaServerConnections:!1,allowMediaServerRelayConnections:!1,allowLoopbackDiscovery:!1,allowSSO:!1,allowMixedContent:!1,allowBaseImagePreloading:!0,allowBaseImageBlobs:!0,emulateCNP:!1,heartbeatInterval:1e4,allowManualServers:!1,
allowCloudSyncServers:!1,allowMobileServers:!1,maximumConcurrentConnectionTests:5,shouldCreateFlexModels:!1,shouldCreateStateTree:!1,proxied:!1,requiresSignIn:!0,requiresPlexPass:!1,myPlexAccessToken:null,alerts:null,continueUrl:null,primaryServer:null},s,window.PLEXWEB)}),l=new o;t.a=l},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(10),s=n.n(r),o=n(18),l=n(15),u=0,c=[],d=o.a.Layout.extend({className:"modal fade",focusDelay:500,animationDelay:500,events:{"hide.bs.modal":"onHide"},
initialize:function(e){this.once("render",function(){u+=1,l.a.trigger("anyModalOpen")}),this.once("close",function(){0===(u-=1)&&l.a.trigger("allModalsClosed")})},hide:function(){this.isClosed||this.isHidden||this.$el.modal("hide")},onRender:function(){this.rerender||(this.isForced?this.$el.modal({backdrop:"static",keyboard:!1}):(this.listenTo(l.a,"shortcut:escape",a.a.bind(function(){c[0]===this&&this.hide()},this)),this.listenToOnce(this,"close",function(){var e=c.indexOf(this)
;e!==-1&&c.splice(e,1)}),c.unshift(this),this.$el.modal()),s()(":focus").blur())},onHide:function(e){this.isHidden=!0,a.a.each(this.panes,function(e,t){var n=e.constructor.onModalClose;n&&n.apply(this)},this),setTimeout(a.a.bind(function(){l.a.trigger("hide:modal",this),this.trigger("close")},this),this.animationDelay)}});t.a=d},function(e,t,n){"use strict";function i(e){return e}var a=n(65);n.n(a),n(344),n(31);t.a=i},function(e,t,n){"use strict";n.d(t,"M",function(){return i}),
n.d(t,"o",function(){return a}),n.d(t,"a",function(){return r}),n.d(t,"f",function(){return s}),n.d(t,"I",function(){return o}),n.d(t,"e",function(){return l}),n.d(t,"_0",function(){return u}),n.d(t,"J",function(){return c}),n.d(t,"i",function(){return d}),n.d(t,"h",function(){return p}),n.d(t,"g",function(){return h}),n.d(t,"j",function(){return f}),n.d(t,"k",function(){return v}),n.d(t,"l",function(){return m}),n.d(t,"m",function(){return g}),n.d(t,"n",function(){return y}),
n.d(t,"p",function(){return b}),n.d(t,"r",function(){return S}),n.d(t,"u",function(){return I}),n.d(t,"v",function(){return M}),n.d(t,"D",function(){return C}),n.d(t,"F",function(){return w}),n.d(t,"s",function(){return D}),n.d(t,"B",function(){return P}),n.d(t,"N",function(){return T}),n.d(t,"z",function(){return x}),n.d(t,"A",function(){return E}),n.d(t,"w",function(){return N}),n.d(t,"H",function(){return L}),n.d(t,"q",function(){return A}),n.d(t,"y",function(){return k}),
n.d(t,"x",function(){return _}),n.d(t,"C",function(){return O}),n.d(t,"t",function(){return j}),n.d(t,"E",function(){return R}),n.d(t,"G",function(){return U}),n.d(t,"d",function(){return z}),n.d(t,"X",function(){return B}),n.d(t,"Y",function(){return F}),n.d(t,"R",function(){return V}),n.d(t,"Z",function(){return Q}),n.d(t,"W",function(){return H}),n.d(t,"O",function(){return W}),n.d(t,"V",function(){return Y}),n.d(t,"T",function(){return G}),n.d(t,"U",function(){return K}),
n.d(t,"P",function(){return q}),n.d(t,"Q",function(){return X}),n.d(t,"S",function(){return Z}),n.d(t,"_1",function(){return J}),n.d(t,"L",function(){return $}),n.d(t,"K",function(){return ee}),n.d(t,"b",function(){return te}),n.d(t,"c",function(){return ne})
;var i="claim",a="dismiss",r="skip",s="confirm",o="select",l="cancel",u="learn",c="complete",d="play",p="shuffle",h="playAll",f="playPrimaryExtra",v="playRelatedMix",m="queueRelatedMix",g="playNext",y="addToQueue",b="addToPlaylist",S="edit",I="markAsWatched",M="markAsUnwatched",C="refresh",w="analyze",D="fixMatch",P="unmatch",T="merge",x="splitApart",E="sync",N="optimize",L="download",A="delete",k="share",_="recommend",O="watchLater",j="getInfo",R="rate",U="selectStream",z="selectServer",B="optimizeDatabase",F="cleanBundles",V="emptyTrash",Q="deleteServer",H="addLibrary",W="shareLibrary",Y="updateLibrary",G="cancelLibraryUpdate",K="forceRefreshLibrary",q="editLibrary",X="analyzeLibrary",Z="deleteLibrary",J="downloadServer",$="whatsThis",ee="optOutMetrics",te="subscribe",ne="gift"
},function(e,t,n){e.exports={default:n(2589),__esModule:!0}},function(e,t,n){"use strict";var i=n(241);n.d(t,"b",function(){return a}),n.d(t,"a",function(){return r}),n.d(t,"d",function(){return s}),n.d(t,"c",function(){return o});var a="none",r="video",s="audio",o="photo",l=["id","typeString"],u=n.i(i.a)(l,[{id:0,typeString:a},{id:1,typeString:r},{id:2,typeString:s},{id:3,typeString:o}]);u.get,u.getAll},function(e,t,n){"use strict"
;var i=n(7),a=n.n(i),r=n(9),s=n.n(r),o=n(8),l=n.n(o),u=n(0),c=n.n(u),d=n(1108),p=n.n(d),h=n(1107),f=n.n(h),v=n(577),m=n(26),g=n(20),y=n(2693),b=n.n(y),S=function(e){function t(n,i){a()(this,t);var r=s()(this,e.call(this,n,i));return r.onScroll=function(e){if(e.target===r.refs.scroller){var t=e.target.scrollTop,n=e.target.scrollLeft,i=t!==r._currentScrollTop,a=n!==r._currentScrollLeft;(i||a)&&r._setScrollPosition({scrollTop:t,scrollLeft:n}),r.props.onScroll&&r.props.onScroll(e)}},
r.onScrollPositionChange=function(){r._animationFrameID=null,r.props.onScrollPositionChange({scrollTop:r._currentScrollTop,scrollLeft:r._currentScrollLeft})},r.onScrollTimeout=function(){r.setState({isScrolling:!1})},r.onScrollToUpdate=function(){r._updateScrollPosition(r._scrollToPosition),r.props.onScrollToUpdate&&r.props.onScrollToUpdate(r._scrollToPosition)},r.onScrollToComplete=function(){r._scrollToTween=null,r._scrollToPosition=null,r.props.onScrollToComplete&&r.props.onScrollToComplete()
},r.state={isScrolling:!1},r._currentScrollTop=0,r._currentScrollLeft=0,r}return l()(t,e),t.prototype.componentDidMount=function(){this._scrollTo(this.props)},t.prototype.componentWillReceiveProps=function(e){e.scrollTop===this.props.scrollTop&&e.scrollLeft===this.props.scrollLeft||this.setState({isScrolling:!0})},t.prototype.shouldComponentUpdate=function(e,t){return n.i(m.a)(this,e,t)},t.prototype.componentDidUpdate=function(e){
this.state.isScrolling&&(this._scrollTimeoutID&&clearTimeout(this._scrollTimeoutID),this._scrollTimeoutID=setTimeout(this.onScrollTimeout,this.props.isScrollingTimeout)),this._scrollTo(this.props)},t.prototype.componentWillUnmount=function(){this._clearTimeouts(),this._cancelScrollTo()},t.prototype._setScrollPosition=function(e){var t=e.scrollTop,n=e.scrollLeft;this._clearTimeouts(),this._currentScrollTop=t,this._currentScrollLeft=n,
this._animationFrameID=window.requestAnimationFrame(this.onScrollPositionChange)},t.prototype._updateScrollPosition=function(e){var t=e.scrollTop,n=e.scrollLeft;null!=t&&(this.refs.scroller.scrollTop=t),null!=n&&(this.refs.scroller.scrollLeft=n)},t.prototype._scrollTo=function(e){var t=e.scrollTop,n=e.scrollLeft;if(null!=t||null!=n){var i=null!=t&&t!==this._currentScrollTop,a=null!=n&&n!==this._currentScrollLeft;if(i||a){
if(!this.props.smoothScroll&&!this.props.restoreScroll)return this._currentScrollTop=t,this._currentScrollLeft=n,void this._updateScrollPosition({scrollTop:t,scrollLeft:n});var r=this.props.smoothScrollDuration/1e3,s={ease:f.a.Power3.easeOut,onUpdate:this.onScrollToUpdate,onComplete:this.onScrollToComplete};this._scrollToPosition={},i&&(s.scrollTop=Math.min(t,this.refs.scroller.scrollHeight-this.refs.scroller.clientHeight),this._scrollToPosition.scrollTop=this.refs.scroller.scrollTop),
a&&(s.scrollLeft=Math.min(n,this.refs.scroller.scrollWidth-this.refs.scroller.clientWidth),this._scrollToPosition.scrollLeft=this.refs.scroller.scrollLeft),this._cancelScrollTo(),this._scrollToTween=p.a.to(this._scrollToPosition,r,s)}}},t.prototype._cancelScrollTo=function(){this._scrollToTween&&(this._scrollToTween.kill(),this._scrollToTween=null)},t.prototype._clearTimeouts=function(){this._animationFrameID&&window.cancelAnimationFrame(this._animationFrameID),
this._scrollTimeoutID&&clearTimeout(this._scrollTimeoutID)},t.prototype.render=function(){var e=this,t=this.props,i=t.style,a=t.className,r=t.children,s=t.scrollDirection,o=t.autoScroll,l=t.enableChildrenProps,u=t.onScroll,d=t.onScrollPositionChange;return c.a.createElement("div",{style:i,className:(a||"")+" "+(b.a.scroller||"")+" "+(b.a[s]||"")+" "+(o&&b.a.auto||""),ref:"scroller",onScroll:d?this.onScroll:u},l?n.i(v.a)(r,function(t){return c.a.cloneElement(t,{isScrolling:e.state.isScrolling,
scrollTop:e._currentScrollTop,scrollLeft:e._currentScrollLeft})}):r)},t}(u.Component);S.defaultProps={scrollDirection:g.a.VERTICAL,autoScroll:!1,smoothScroll:!0,restoreScroll:!1,smoothScrollDuration:400,enableChildrenProps:!1,isScrollingTimeout:100},t.a=S},function(e,t,n){"use strict";function i(e){return Math.min(window.innerHeight-2*j,e.maxHeight)}
var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(7),u=n.n(l),c=n(9),d=n.n(c),p=n(8),h=n.n(p),f=n(0),v=n.n(f),m=n(39),g=n.n(m),y=n(433),b=n(57),S=n.n(b),I=n(26),M=n(50),C=n(577),w=n(421),D=n(210),P=n(865),T=n(378),x=n(20),E=n(257),N=n.n(E),L=n(350),A=n(67),k=n(2044),_=n(2729),O=n.n(_),j=parseInt(S.a.menuPadding,10),R=n.i(D.a)(N.a.menuSpeed),U={appear:O.a.enter,appearActive:O.a.enterActive,enter:O.a.enter,enterActive:O.a.enterActive,leave:O.a.leave,leaveActive:O.a.leaveActive},z=function(e){
function t(a,r){u()(this,t);var s=d()(this,e.call(this,a,r));return s.onResize=function(e){s.setState({maxHeight:i(s.props)})},s.onWindowPress=function(e){var t=s.props.target,n=document.getElementById(s._menuID),i=n&&n.contains(e.target),a=!i&&document.getElementById(t),r=a&&a.contains(e.target);i||r||s.props.onMenuClose()},s.onKeyDown=function(e){var t=e.keyCode;t===y.a?T.a(e):t===y.b&&(e.preventDefault(),e.stopPropagation(),s.props.onMenuClose(),T.b())},s.onMenuEnable=function(){s.setState({
isDisabled:!1})},s.onMenuDisable=function(){s.setState({isDisabled:!0})},s.state={isDisabled:!1,maxHeight:i(a)},s._menuID=n.i(M.a)(),s}return h()(t,e),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.onResize),this.props.isOpen&&this._enable()},t.prototype.shouldComponentUpdate=function(e,t){return n.i(I.a)(this,e,t)},t.prototype.componentDidUpdate=function(e,t){var n=!e.isOpen&&this.props.isOpen,i=this.props.isOpen&&t.isDisabled&&!this.state.isDisabled
;if(n||i)this._enable();else{var a=e.isOpen&&!this.props.isOpen,r=this.props.isOpen&&!t.isDisabled&&this.state.isDisabled;(a||r)&&this._disable()}},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onResize),this.props.isOpen&&this._disable()},t.prototype._enable=function(){T.c(g.a.findDOMNode(this.refs.menu)),document.addEventListener("mouseup",this.onWindowPress),document.addEventListener("touchend",this.onWindowPress),
document.addEventListener("keydown",this.onKeyDown)},t.prototype._disable=function(){document.removeEventListener("mouseup",this.onWindowPress),document.removeEventListener("touchend",this.onWindowPress),document.removeEventListener("keydown",this.onKeyDown)},t.prototype.render=function(){var e=this,t=this.props,i=t.children,a=t.className,s=t.target,l=t.options,u=t.isOpen,c=t.size,d=t.scrollerProps,p=t.onMenuClose,h=this.state.maxHeight;return o()(P.a,{className:O.a.menuPortal,target:s,
options:l,isOpen:u,closeTimeout:R},void 0,o()(L.a,{id:this._menuID,transitionName:U,transitionAppearTimeout:R,transitionEnterTimeout:R,transitionLeaveTimeout:R},void 0,u&&o()(k.a,{className:a,size:c,isDisabled:this.state.isDisabled},void 0,v.a.createElement(A.a,r()({style:{maxHeight:h}},d),n.i(C.a)(i,function(t){var i=n.i(w.a)(p,t.props.onPress);return v.a.cloneElement(t,{onPress:i,onMenuEnable:e.onMenuEnable,onMenuDisable:e.onMenuDisable})})))))},t}(f.Component);z.defaultProps={maxHeight:600,
scrollerProps:{className:O.a.menuScroller,scrollDirection:x.a.VERTICAL,autoScroll:!0}},t.a=z},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.className,i=e.innerClassName,a=e.scrollDirection,s=u()(e,["children","className","innerClassName","scrollDirection"]),l=a!==p.a.NONE;return n||(n=l?v.a.modalScroller:v.a.modalBody),d.a.createElement(h.a,r()({className:n,scrollDirection:a,autoScroll:!0},s),l?o()("div",{className:i},void 0,t):t)}
var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(20),h=n(67),f=n(2738),v=n.n(f);i.defaultProps={innerClassName:v.a.innerModalBody},t.a=i},,function(e,t,n){"use strict";var i=n(258),a=n.n(i),r=n(3),s=n.n(r),o=/\s+/,l=function(e,t,n,i){if(!n)return!0;if("object"===(void 0===n?"undefined":a()(n))){for(var r in n)e[t].apply(e,[r,n[r]].concat(i));return!1}if(o.test(n)){for(var s=n.split(o),l=0,u=s.length;l<u;l++)e[t].apply(e,[s[l]].concat(i));return!1}return!0
},u=function(e,t){var n,i=-1,a=e.length,r=t[0],s=t[1],o=t[2];switch(t.length){case 0:for(;++i<a;)(n=e[i]).callback.call(n.ctx);return;case 1:for(;++i<a;)(n=e[i]).callback.call(n.ctx,r);return;case 2:for(;++i<a;)(n=e[i]).callback.call(n.ctx,r,s);return;case 3:for(;++i<a;)(n=e[i]).callback.call(n.ctx,r,s,o);return;default:for(;++i<a;)(n=e[i]).callback.apply(n.ctx,t)}},c={on:function(e,t,n){return l(this,"on",e,[t,n])&&t?(this._events||(this._events={}),
(this._events[e]||(this._events[e]=[])).push({callback:t,context:n,ctx:n||this}),this):this},once:function e(t,n,i){if(!l(this,"once",t,[n,i])||!n)return this;var a=this,e=s.a.once(function(){a.off(t,e),n.apply(this,arguments)});return e._callback=n,this.on(t,e,i)},off:function(e,t,n){var i,a,r,o,u,c,d,p;if(!this._events||!l(this,"off",e,[t,n]))return this;if(!e&&!t&&!n)return this._events=void 0,this;for(o=e?[e]:s.a.keys(this._events),u=0,c=o.length;u<c;u++)if(e=o[u],r=this._events[e]){
if(this._events[e]=i=[],t||n)for(d=0,p=r.length;d<p;d++)a=r[d],(t&&t!==a.callback&&t!==a.callback._callback||n&&n!==a.context)&&i.push(a);i.length||delete this._events[e]}return this},trigger:function(e){if(!this._events)return this;var t=[].slice.call(arguments,1);if(!l(this,"trigger",e,t))return this;var n=this._events[e],i=this._events.all;return n&&u(n,t),i&&u(i,arguments),this},stopListening:function(e,t,n){var i=this._listeningTo;if(!i)return this;var r=!t&&!n
;n||"object"!==(void 0===t?"undefined":a()(t))||(n=this),e&&((i={})[e._listenId]=e);for(var o in i)e=i[o],e.off(t,n,this),(r||s.a.isEmpty(e._events))&&delete this._listeningTo[o];return this},hasListener:function(e){var t=this._events&&this._events[e];return s.a.isArray(t)&&t.length>0}},d={listenTo:"on",listenToOnce:"once"};s.a.each(d,function(e,t){c[t]=function(t,n,i){return(this._listeningTo||(this._listeningTo={}))[t._listenId||(t._listenId=s.a.uniqueId("l"))]=t,
i||"object"!==(void 0===n?"undefined":a()(n))||(i=this),t[e](n,i,this),this}}),c.bind=c.on,c.unbind=c.off,t.a=c},function(e,t,n){"use strict";var i=n(56),a=n(53),r=n(16),s=n(17),o=n(752);n.d(t,"a",function(){return l});var l={LIBRARY_PROVIDER_IDENTIFIER:"com.plexapp.plugins.library",CHANNEL_PROVIDER_IDENTIFIER:"tv.plex.providers.channel",EPG_IDENTIFIER:/tv\.plex\.providers\.epg\./},u=s.a.extend({name:"ProviderModel",context:["server"],entityType:i.e,entityID:function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return n.i(a.a)(this.entityType,e.identifier,this.server.entityID())},idAttribute:"identifier",rootPropertyName:"MediaProvider",syncedAttrs:{id:r.a.integer,parentID:r.a.integer,identifier:r.a.string,providerIdentifier:r.a.string,title:r.a.string,types:r.a.list,protocols:r.a.list,subscriptions:r.a.boolean},syncedRelations:{features:{relationClass:o.a,rootPropertyName:"Feature",options:function(){return{provider:this}}}},
derivedAttrs:{isLibraryProvider:function(){return this.get("identifier")===l.LIBRARY_PROVIDER_IDENTIFIER},metricsIdentifier:function(){return this.get("providerIdentifier")||this.get("identifier")}}});t.b=u},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=n.n(d),h=(n(31),n(26)),f=n(2675),v=n.n(f),m=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));g.call(a);var r=n.ignoreWidth,o=n.ignoreHeight,u=n.ignorePosition
;return a.state={isMeasured:!1,width:r?void 0:0,scrollWidth:r?void 0:0,height:o?void 0:0,scrollHeight:o?void 0:0,x:u?void 0:0,y:u?void 0:0},a}return c()(t,e),t.prototype.componentDidMount=function(){this._requestFrame()},t.prototype.shouldComponentUpdate=function(e,t){return n.i(h.a)(this,e,t)},t.prototype.componentWillUnmount=function(){this._cancelFrame(),this._clearTimeout()},t.prototype._cancelFrame=function(){
this._frameRequestID&&(this._frameRequestID=window.cancelAnimationFrame(this._frameRequestID))},t.prototype._clearTimeout=function(){this._measureTimeoutID&&(this._measureTimeoutID=clearTimeout(this._measureTimeoutID))},t.prototype._reset=function(){var e=this._expandContainer,t=this._shrinkContainer;e.scrollTop=1e5,e.scrollLeft=1e5,t.scrollTop=1e5,t.scrollLeft=1e5},t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,i=e.style,r=e.onKey,s=(e.onMeasure,"function"!=typeof n)
;return p.a.createElement("div",{className:t,style:i,ref:this._setContainerRef,onKey:r},s?n:n(this.state),p.a.createElement("div",{className:v.a.scrollContainer,ref:this._setExpandContainerRef,onScroll:this.onScroll},a()("div",{className:v.a.expandContent})),p.a.createElement("div",{className:v.a.scrollContainer,ref:this._setShrinkContainerRef,onScroll:this.onScroll},a()("div",{className:v.a.shrinkContent})))},t}(d.Component),g=function(){var e=this;this._requestFrame=function(){
e._clearTimeout(),e._cancelFrame(),e._frameRequestID=window.requestAnimationFrame(e._measure)},this._requestTimeout=function(){e._clearTimeout(),e._cancelFrame(),e._measureTimeoutID=setTimeout(e._requestFrame,e.props.resizeTimeout)},this._measure=function(){
var t=e.props,n=t.ignoreWidth,i=t.ignoreHeight,a=t.ignorePosition,r=t.ignoreTransforms,s=e.state,o=s.isMeasured,l=s.width,u=s.scrollWidth,c=s.height,d=s.scrollHeight,p=s.x,h=s.y,f=e._container,v=f.getBoundingClientRect(),m=r?f.offsetWidth:v.width,g=r?f.offsetHeight:v.height,y=o!==!0,b=!a&&(v.left!==p||v.top!==h),S=!n&&(m!==l||f.scrollWidth!==u),I=!i&&(g!==c||f.scrollHeight!==d);if(y||b||S||I){var M=window.getComputedStyle(f),C={isMeasured:!0};if(a||(C.x=b?v.left:p,C.y=b?v.top:h),!n){
var w=parseInt(M.paddingRight,10)||0,D=parseInt(M.paddingLeft,10)||0;C.width=S?m-D-w:l,C.scrollWidth=S?f.scrollWidth:u}if(!i){var P=parseInt(M.paddingTop,10)||0,T=parseInt(M.paddingBottom,10)||0;C.height=I?g-P-T:c,C.scrollHeight=I?f.scrollHeight:d}e.setState(C),e.props.onMeasure&&e.props.onMeasure(C)}e._reset()},this._setContainerRef=function(t){e._container=t;var n=e.props.onContainerRef;n&&n(t)},this._setExpandContainerRef=function(t){e._expandContainer=t},
this._setShrinkContainerRef=function(t){e._shrinkContainer=t},this.onScroll=function(t){e._requestTimeout()}};m.defaultProps={className:v.a.container,ignoreWidth:!1,ignoreHeight:!1,ignorePosition:!1,ignoreTransforms:!1,resizeTimeout:100},t.a=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"DEFAULT",function(){return i}),n.d(t,"PRIMARY",function(){return a}),n.d(t,"SUCCESS",function(){return r}),n.d(t,"DANGER",function(){return s}),n.d(t,"all",function(){
return o});var i="default",a="primary",r="success",s="danger",o=[i,a,r,s]},function(e,t,n){"use strict";var i=n(258),a=n.n(i),r=n(3),s=n.n(r),o=n(55),l=n(10),u=n.n(l),c=n(49),d=n(31),p=n(19),h=n(202),f=n(392),v=o.a.Model.extend({mixins:[f.a],cache:new h.a,constructor:function(e,t){if(e||(e={}),t||(t={}),this.server=this.findOption(t,"server"),this.section=this.findOption(t,"section"),this.channel=this.findOption(t,"channel"),this.device=this.findOption(t,"device"),
this.parent=this.findOption(t,"parent"),this.findOption(t,"skipCache"))return void o.a.Model.prototype.constructor.apply(this,arguments);var n=this.cache.getItemCacheKey(this,e),i=this.cache.get(n);return i?(t.parse&&(e=i.parse(e)),this.preserveCachedAttributes&&this.preserveCachedAttributes(t.url)?s.a.each(e,function(e,t){s.a.isUndefined(i.get(t))&&!s.a.isUndefined(e)&&i.set(t,e)}):i.set(e),i.server=this.server||i.server,i.section=this.section||i.section,i.channel=this.channel||i.channel,
i.device=this.device||i.device,i.parent=this.parent||i.parent,t.collection&&(i.collection=t.collection),i):this.findOption(t,"onlyIfCached")?{}:(o.a.Model.prototype.constructor.apply(this,arguments),void this.cache.store(this,n))},findOption:function(e,t){return e[t]||e.collection&&e.collection[t]},clone:function(){var e={server:this.server,section:this.section,channel:this.channel,parent:this.parent,skipCache:!0};return new this.constructor(this.attributes,e)||null},convert:function(e){
return s.a.isObject(e)?e:c.a.parseXML(e)},parse:function(e,t){var n=this.convert(e);return this.whitelistedAttrs&&(n=s.a.pick(n,this.whitelistedAttrs)),n},save:function(e,t,n){var i,r,l,c=this.attributes;null==e||"object"===(void 0===e?"undefined":a()(e))?(i=e,n=t):(i={})[e]=t,n=s.a.extend({validate:!0},n);var d=this.getSaveParams(i,n);if(s.a.extend(d,n.data),i&&!n.wait){if(!this.set(i,n))return!1}else if(!this._validate(i,n))return!1;if(i&&n.wait&&(this.attributes=s.a.extend({},c,i)),
s.a.isEmpty(d)&&!n.force)return n.success&&n.success(this),u.a.Deferred().resolve(this);void 0===n.parse&&(n.parse=!0);var h=this,f=n.success;n.success=function(e){if(h.attributes=c,e){var t=h.parse(e,n);if(n.wait&&(t=s.a.extend(i||{},t)),s.a.isObject(t)&&!h.set(t,n))return!1;h.cache.store(h)}f&&f(h,e,n),h.trigger("sync",h,e,n)},o.a.wrapError(this,n),"patch"===(r=this.isNew()?"create":n.patch?"patch":"update")&&(n.attrs=i);var v=s.a.result(this,"saveUrl")||s.a.result(this,"url")
;return s.a.isEmpty(d)||(n.url=p.join(v,d)),n.data="",l=this.sync(r,this,n),i&&n.wait&&(this.attributes=c),l},getSaveParams:function(e,t){return this.isNew()?e||this.toJSON():this.changedAttributes(e)||{}},getScopedKey:function(e){return null!=e&&s.a.isFunction(this.cacheKey)?this.cacheKey(this.attributes)+"!"+e:e},restoreDefaults:function(e){var t=s.a.result(this,"defaults");if(!t)return this.clear(e);var n,i=this.attributes;for(n in i)n in t||this.unset(n,e);return this.set(t,e),this},
startCapturingChangeEvents:function(){if(this.releaseCapturedChangeEvents)return void n.i(d.a)(!1,"This model is already capturing events");var e=this.set,t={};this.set=function(n,i,r){var o;"object"===(void 0===n?"undefined":a()(n))?(o=n,r=i):(o={})[n]=i;var l=s.a.extend({},r,{silent:!0}),u=e.call(this,o,l);return s.a.extend(t,this.changed),u},this.releaseCapturedChangeEvents=function(){s.a.each(t,function(e,t){this.trigger("change:"+t,this,e)},this),
s.a.isEmpty(t)||this.trigger("change",this,{}),t={},this.set=e,this.releaseCapturedChangeEvents=null}}});v.extend=function(){var e=o.a.Model.extend.apply(this,arguments);return e.prototype.cache=new h.a,e},t.a=v},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(10),s=n.n(r),o=n(4),l=n(49),u=n(60),c=n(82),d=n(19),p=n(280),h=n(206),f=n(30),v=n(90),m=n(56),g=n(53),y=n(202),b=n(16),S=n(52),I=n(17),M=n(224),C=n(1292),w=n(1281),D=n(1285),P=n(1283),T=I.a.extend({name:"MetadataModel",
context:["server","section","playlist","channel","identifier","mediaTagPrefix","mediaTagVersion","allowSync","containerKey","relatedOptions"],responseContext:["identifier","mediaTagPrefix","mediaTagVersion","allowSync"],entityType:m.b,entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return n.i(g.a)(this.entityType,e.key||this.cid,this.server.entityID())},idAttribute:"ratingKey",rootPropertyName:"Metadata",cache:new y.a,mergeStrategy:C.a,url:function(){
return this.get("key")},urlRoot:function(){return this.get("key")},saveUrl:function(){return this.get("isPlaylist")?"/library/metadata/"+this.get("ratingKey"):a.a.result(this,"url")},cacheKey:function(e){this.isLibraryItem(this.identifier,e.key)||(e=this.normalizeChannelKey(e));var t=this.extractChildrenKey(e.key);return this.server&&this.server.getScopedKey(t.key)},sessionAttrs:{isPreFetched:b.a.boolean,metadataState:b.a.string,mediaState:b.a.string,indirectHttpHeaders:b.a.object},syncedAttrs:{
elementName:b.a.string,ratingKey:b.a.string,parentRatingKey:b.a.string,grandparentRatingKey:b.a.string,key:b.a.string,childrenKey:b.a.string,parentKey:b.a.string,grandparentKey:b.a.string,primaryExtraKey:b.a.string,guid:b.a.string,librarySectionID:b.a.string,librarySectionTitle:b.a.string,librarySectionUUID:b.a.string,librarySectionKey:b.a.string,type:b.a.string,title:b.a.string,titleSort:b.a.string,originalTitle:b.a.string,parentTitle:b.a.string,grandparentTitle:b.a.string,year:b.a.string,
tagline:b.a.string,summary:b.a.string,studio:b.a.string,contentRating:b.a.string,originallyAvailableAt:b.a.string,thumb:b.a.string,parentThumb:b.a.string,grandparentThumb:b.a.string,banner:b.a.string,art:b.a.string,parentArt:b.a.string,grandparentArt:b.a.string,theme:b.a.string,parentTheme:b.a.string,grandparentTheme:b.a.string,chapterSource:b.a.string,ratingImage:b.a.string,audienceRating:b.a.float,audienceRatingImage:b.a.string,rating:b.a.float,userRating:b.a.float,index:b.a.integer,
parentIndex:b.a.integer,absoluteIndex:b.a.integer,duration:b.a.integer,viewOffset:b.a.integer,viewCount:b.a.integer,childCount:b.a.integer,leafCount:b.a.integer,viewedLeafCount:b.a.integer,ratingCount:b.a.integer,extraType:b.a.integer,lastViewedAt:b.a.integer,addedAt:b.a.integer,updatedAt:b.a.integer,deletedAt:b.a.integer,url:b.a.string,playlistID:b.a.integer,playlistType:b.a.string,smart:b.a.boolean,composite:b.a.string,durationInSeconds:b.a.integer,skipChildren:b.a.boolean,
skipParent:b.a.boolean,subscriptionID:b.a.string,grandparentSubscriptionID:b.a.string,subscriptionType:b.a.string,grandparentSubscriptionType:b.a.string,Channel:b.a.array,onAir:b.a.boolean,Media:b.a.array,Collection:b.a.array,Director:b.a.array,Producer:b.a.array,Writer:b.a.array,Genre:b.a.array,Mood:b.a.array,Country:b.a.array,Label:b.a.array,Role:b.a.array,Location:b.a.array},sessionRelations:{children:function(){return{relationClass:n(88).default}}},syncedRelations:{chapters:{
relationClass:w.a,rootPropertyName:"Chapter",deferred:!0},overlays:{relationClass:D.a,rootPropertyName:"Overlay",deferred:!0},preferences:{relationClass:M.a,rootPropertyName:"Preferences",deferred:!0},onDeck:function(){return{relationClass:T,rootPropertyName:"OnDeck",deferred:!0}},related:function(){var e={skipCache:!0};return this.relatedOptions&&a.a.extend(e,this.relatedOptions),{relationClass:n(176).default,rootPropertyName:"RelatedHubs",deferred:!0,options:e}},popularLeaves:function(){
return{relationClass:n(88).default,rootPropertyName:"PopularLeaves",deferred:!0}},extras:function(){return{relationClass:n(88).default,rootPropertyName:"Extras",deferred:!0,attrs:function(e){return{containerKey:d.join([e.key,"extras"])}}}},concerts:{relationClass:P.a,rootPropertyName:"Concert",deferred:!0}},derivedAttrs:{identifier:function(){return this.identifier},mediaTagPrefix:function(){return this.mediaTagPrefix},mediaTagVersion:function(){return this.mediaTagVersion},allowSync:function(){
return this.allowSync},containerKey:function(){return this.containerKey},isLibraryItem:function(){return this.isLibraryItem(this.get("identifier"),this.get("key"))},isChannelItem:function(){return!!this.channel},isPlaylist:function(){return this.get("type")===f.d},isFolder:function(){return/\/folder\?parent\=/.test(this.get("key"))},isExtra:function(){return!!this.get("extraType")},unviewedLeafCount:function(){var e=this.get("leafCount"),t=this.get("viewedLeafCount");if(e)return e-t},
downloadUrl:function(){var e=this,t=this.get("Media");if(t&&1===t.length){var n=a.a.first(a.a.first(t).Part),i=n&&n.key;if(i)return function(){var t=d.join(i,{download:1});return e.server.resolveUrl(t,{appendToken:!0})}}}},defaults:{rating:0,onAir:!1,Media:[],Collection:[],Director:[],Producer:[],Writer:[],Genre:[],Mood:[],Country:[],Label:[],Role:[],Location:[]},initialize:function(){this.setChildrenKey(this.get("childrenKey")),this.on("change:childrenKey",this.onChildrenKeyChange,this)},
uninitialize:function(){this.off("change:childrenKey",this.onChildrenKeyChange,this),this.stopListening()},fetch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.data&&(this._populatedParams=a.a.extend({},this._populatedParams,e.data)),e.usePopulatedParams&&(e.data=this._populatedParams),I.a.prototype.fetch.call(this,e)},augmentResponseText:function(e,t){return t===S.a.xml?n.i(c.a)(e):e},augmentResponse:function(e,t){var n=this
;this.responseContext.forEach(function(t){var i=e[t];void 0!==i&&n.setContext(t,i)});var i=e[this.rootPropertyName];i&&(i.librarySectionID=e.librarySectionID,i.librarySectionTitle=e.librarySectionTitle,i.librarySectionUUID=e.librarySectionUUID);var r=i||e,s=r.Related,o=r.OnDeck,l=r.Preferences,u=this.extractChildrenKey(r.key);return u.childrenKey&&(r.childrenKey=u.childrenKey,r.key=u.key),t===S.a.xml&&(r.Media=this.convertMediaItems(r.Media)),
s&&(r.RelatedHubs=a.a.compact([].concat(s.Hub,s.Metadata))),o&&(r.OnDeck=o.Metadata),l&&(r.Preferences=l.Setting),this.normalize(r)},extractChildrenKey:function(e){var t=/(.*)\/(children|items)$/.exec(e),n=void 0;return t&&(n=e,e=t[1]),{childrenKey:n,key:e}},setChildrenKey:function(e){e&&("album"===this.get("type")&&(e=d.join(e,{includeRelated:1})),this.get("children").set("containerKey",e))},convertMediaItems:function(e){var t=u.a.parseArray(e);return a.a.each(t,function(e){
l.a.parseBoolean(e,["indirect","optimizedForStreaming","premium","premiere","selected"]),l.a.parseInteger(e,["id","duration","width","height","bitrate","audioChannels","proxyType","beginsAt","endsAt","beginOffset","startOffsetSeconds","endOffsetSeconds"]),l.a.parseArray(e,"Part"),a.a.each(e.Part,function(e){null!=e.exists&&(e.exists=u.a.parseBoolean(e.exists)),null!=e.accessible&&(e.accessible=u.a.parseBoolean(e.accessible)),l.a.parseInteger(e,["id","duration","size"]),
l.a.parseBoolean(e,"optimizedForStreaming"),l.a.parseEncodedString(e,"file"),l.a.parseArray(e,"Stream"),a.a.each(e.Stream,function(e){l.a.parseBoolean(e,["selected","default","forced","timed","cabac","hasScalingMatrix","headerStripping"]),l.a.parseInteger(e,["id","index","streamType","duration","width","height","bitrate","bitDepth","level","refFrames","samplingRate","channels","minLines"]),l.a.parseFloat(e,"frameRate")})})}),this.addNoneSubtitlesStreams(t)},addNoneSubtitlesStreams:function(e){
var t=v.a.get("subtitles");return a.a.each(e,function(e){var i=a.a.first(e.Part);if(i&&i.Stream&&n.i(p.a)(e)){var r=n.i(h.a)(e,{streamType:t.id,selected:!0}),s={id:0,streamType:t.id,language:n.i(o.default)("None")};r.length||(s.selected=!0),i.Stream.unshift(s)}}),e},normalize:function(e){return this.isLibraryItem(this.identifier,e.key)?e=this.normalizeType(e):(e=this.normalizeChannelKey(e),e=this.normalizeChannelType(e),e=this.normalizeChannelMetadata(e)),e},normalizeType:function(e){
return"photo"===e.type&&e.childrenKey&&(e.type="photoalbum"),e},normalizeChannelKey:function(e){var t=e.key&&e.key.split("/");return t&&(1===t.length&&this.containerKey&&(e.hasInvalidKey=!0,e.originalKey=e.key,e.key=this.containerKey+"/"+e.key),e.ratingKey||(e.ratingKey=e.originalKey||e.key)),e},normalizeChannelType:function(e){return e.type||(e.mediaType?e.type=e.mediaType:e.elementName&&(e.type=e.elementName.toLowerCase())),/image/i.test(e.type)&&(e.type="photo"),
n.i(f.b)(e.type)||(e.type="channelDirectory"),e},normalizeChannelMetadata:function(e){return e.label?e.title=e.label:e.artist&&(e.track?(e.title=e.track,e.originalTitle=e.artist,e.parentTitle=e.album,e.grandparentTitle=e.albumArtist):e.album?(e.title=e.album,e.parentTitle=e.artist):e.title=e.artist),e.totalTime&&(e.duration=e.totalTime),e},refreshChildren:function(){var e=this.get("children");e&&e.populatePromise&&e.fetch().always(function(){e.get("metadataItems").invoke("refreshChildren")})},
resolveIndirect:function(e,t){var n=this,i=s.a.Deferred();if(!e||!t)return i.reject(this).promise();if(!e.indirect)return i.resolve(this).promise();if(t.postURL){var r=a.a.find([this.server,this.server.parent.get("primaryServer")],function(e){return e&&e.get("isConnected")&&e.get("isFullServer")&&!e.get("activeConnection").get("isPossiblyCrossNetworkProtected")});if(r)return this.resolvePostUrl(e,t,r)}var o=t.key;this.server.get("isCloud")&&(o=this.server.swizzleNodeUrl(o))
;var l=s.a.ajax(this.server.getXHROptions(o));return l.done(function(a){n.mergeIndirectResponse(a,e,t)?i.resolve(n):i.reject(n)}),l.fail(function(){i.reject(n)}),i.promise()},resolvePostUrl:function(e,t,n){var i=this,a=s.a.Deferred(),r=t.key,o=t.postURL,l=n.getXHROptions("/system/proxy");l.headers=l.headers||{},l.headers["X-Plex-Url"]=o;var u=s.a.ajax(l);return u=u.then(function(e,t,n){var a=d.join(r,{postURL:o});i.server.get("isCloud")&&(a=i.server.swizzleNodeUrl(a))
;var l=i.server.getXHROptions(a);return l.type="POST",l.headers=l.headers||{},l.data=n.getAllResponseHeaders()+"\r\n"+e,s.a.ajax(l)}),u.done(function(n,r,s){i.mergeIndirectResponse(n,e,t)?a.resolve(i):a.reject(i)}),u.fail(function(){a.reject(i)}),a.promise()},mergeIndirectResponse:function(e,t,i){var r=u.a.parseXML(n.i(c.a)(e));if(!(r&&r.Metadata&&r.Metadata.Media&&r.Metadata.Media.Part))return!1;var s=a.a.first(this.convertMediaItems(r.Metadata.Media)),o=u.a.parseArray(s.Part),l=a.a.first(o)
;if(!s||!l)return!1;if(s.indirect=!1,a.a.extend(t,a.a.omit(s,"Part")),a.a.extend(i,l),o.length>1){var d;(d=t.Part).push.apply(d,o.slice(1))}if(r.httpHeaders){for(var p,h=new RegExp("([^=]+)=([^&]+)&?","g"),f={};p=h.exec(r.httpHeaders);)p[1]in f?(a.a.isArray(f[p[1]])||(f[p[1]]=[f[p[1]]]),f[p[1]].push(p[2])):f[p[1]]=p[2];this.set("indirectHttpHeaders",f)}return!0},batchAdd:function(e,t,n){var i=a.a.map(e,function(e){return e.get("ratingKey")}),r=d.join(["/library/metadata",i.join(","),t,"add"],{
tag:n}),o=this.server.getXHROptions(r,{type:"PUT"});return s.a.ajax(o)},getDownloadUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.get("Media")[e];if(t){var n=a.a.first(t.Part),i=n&&n.key;if(i){var r=d.join(i,{download:1});return this.server.resolveUrl(r,{appendToken:!0})}}},getFilepath:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.get("Media")[e];if(t){var n=a.a.first(t.Part);if(n)return n.file}},getLocation:function(){
var e=this.get("Location");return e.length?a.a.first(e).path:this.getFilepath()},getMediaKey:function(){var e=a.a.first(this.get("Media"));if(e){var t=a.a.first(e.Part);if(t)return t.key}return this.get("key")},isLibraryItem:function(e,t){return e?"com.plexapp.plugins.library"===e:/^(\/sync\/[\w\d-\/]*)?\/library\//.test(t)},isPlexMusicItem:function(){var e=this.section;return e&&"com.plexapp.agents.plexmusic"===e.get("agent")},onChildrenKeyChange:function(e,t){this.setChildrenKey(t)}});t.a=T
},function(e,t,n){"use strict";function i(e,t){return a(t)||r(e)}function a(e){return e===o||e===l}function r(e){return e.length>1}var s=n(0);n.n(s);n.d(t,"e",function(){return o}),n.d(t,"a",function(){return l}),n.d(t,"b",function(){return u}),n.d(t,"c",function(){return c}),n.d(t,"d",function(){return d}),t.f=i,t.g=a;var o="poster",l="mosaic",u="table",c="summary",d="epgEpisode";s.PropTypes.oneOf([o,l,u,c,d])},,function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(14),s=n.n(r),o=n(3),l=n.n(o),u=n(55),c=n(13),d=n(31),p=n(19),h=n(80),f=n(551),v=n(56),m=n(53),g=n(202),y=n(341),b=n(331),S=n(29),I=n(571),M=n(28),C=n(61),w=n(16),D=n(507),P=n(512),T=n(17),x=n(738),E=n(510),N=n(1261),L=n(394),A=n(223),k=n(199);n.d(t,"a",function(){return U}),n.d(t,"b",function(){return z});var _={PENDING:"pending",CONNECTED:"connected",UNAVAILABLE:"unavailable",UNAUTHORIZED:"unauthorized"},O={PENDING:"pending",RESOLVED:"resolved",REJECTED:"rejected"},j={
SECONDARY:"secondary"},R=["camera_upload","cloudsync","content_filter","home","lyrics","music_videos","pass","premium_music_metadata","sync","trailers"],U="ok",z="none",B=T.a.extend({mixins:[P.a],name:"ServerModel",entityType:v.f,entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return n.i(m.a)(this.entityType,e.machineIdentifier||this.cid)},idAttribute:"machineIdentifier",connectionTestTimeout:1e4,cache:new g.a,persistInCache:!0,sessionAttrs:{
connectionTestResult:w.a.oneOf(_.PENDING,_.CONNECTED,_.UNAVAILABLE,_.UNAUTHORIZED).isRequired,promiseState:w.a.oneOf(O.PENDING,O.RESOLVED,O.REJECTED).isRequired,sections:w.a.instanceOf(E.a).isRequired,playlists:w.a.instanceOf(N.a).isRequired,playQueueManager:w.a.instanceOf(x.a).isRequired,isShared:w.a.boolean.isRequired,isBundled:w.a.boolean.isRequired,isCloud:w.a.boolean.isRequired,isMerged:w.a.boolean.isRequired,superToken:w.a.string,accessToken:w.a.string,sourceTitle:w.a.string,
publicAddressMatches:w.a.boolean,httpsRequired:w.a.boolean,presence:w.a.boolean,home:w.a.boolean,synced:w.a.boolean,createdAt:w.a.integer,lastSeenAt:w.a.integer,ownerId:w.a.integer,hasEventConnection:w.a.boolean,serverClass:w.a.oneOf(j.SECONDARY)},sessionRelations:{activeConnection:{relationClass:A.a,deferred:!0},connections:{relationClass:L.a,options:function(){return{server:this}}}},syncedAttrs:{machineIdentifier:w.a.string,friendlyName:w.a.string,startState:w.a.string,version:w.a.string,
platform:w.a.string,platformVersion:w.a.string,sync:w.a.boolean,backgroundProcessing:w.a.boolean,multiuser:w.a.boolean,transcoderLyrics:w.a.boolean,myPlex:w.a.boolean,myPlexMappingState:w.a.string,myPlexSigninState:w.a.oneOf(U,z),myPlexSubscription:w.a.boolean,myPlexUsername:w.a.string,transcoderPhoto:w.a.boolean,transcoderAudio:w.a.boolean,transcoderVideo:w.a.boolean,transcoderVideoRemuxOnly:w.a.boolean,transcoderSubtitles:w.a.boolean,transcoderActiveVideoSessions:w.a.integer,
allowMediaDeletion:w.a.boolean,allowCameraUpload:w.a.boolean,allowChannelAccess:w.a.boolean,allowSync:w.a.boolean,diagnostics:w.a.list,companionProxy:w.a.boolean,updater:w.a.boolean,isDesktop:w.a.boolean,photoAutoTag:w.a.boolean,itemClusters:w.a.boolean,updatedAt:w.a.integer,countryCode:w.a.string,ownerFeatures:w.a.list,mediaProviders:w.a.integer,maxUploadBitrate:w.a.integer,maxUploadBitrateReason:w.a.string,maxUploadBitrateReasonMessage:w.a.string,streamingBrainABRVersion:w.a.integer,
livetv:w.a.integer},derivedAttrs:{debugName:function(){var e=this.get("machineIdentifier"),t=this.get("connections"),n=1===t.length&&t.at(0).get("isLoopback"),i=this.get("friendlyName");return!i&&n&&(i="[Loopback]"),i||(e?"["+e+"]":"[Anonymous]")},shortVersion:function(){return n.i(I.a)(this.get("version"))},isConnected:function(){return this.get("connectionTestResult")===_.CONNECTED},isUnavailable:function(){return this.get("connectionTestResult")===_.UNAVAILABLE},isUnauthorized:function(){
return this.get("connectionTestResult")===_.UNAUTHORIZED},isPending:function(){return this.get("promiseState")===O.PENDING},isPrivateConnection:function(){var e=this.get("activeConnection");return!(!e||!e.get("isPrivate"))},isResolved:function(){return this.get("promiseState")===O.RESOLVED},isRejected:function(){return this.get("promiseState")===O.REJECTED},isRelayed:function(){var e=this.get("activeConnection");return!(!e||!e.get("relay"))},isSecure:function(){var e=this.get("activeConnection")
;return!(!e||!e.get("isSecure"))},hasHttpsConnections:function(){return!!this.get("connections").findWhere({isHttps:!0})},hasFallbackConnections:function(){return!!this.get("connections").findWhere({isFallback:!0})},isCloudSyncServer:function(){return!!this.get("synced")},isPersonalCloudServer:function(){return"Cloud"===this.get("platform")},isMobileServer:function(){return!this.get("synced")&&this.get("serverClass")===j.SECONDARY},isFullServer:function(){
return!this.get("isCloud")&&!this.get("isCloudSyncServer")&&!this.get("isMobileServer")},isCloudBased:function(){return this.get("isCloud")||this.get("isCloudSyncServer")},isFullOwnedServer:function(){return this.get("isFullServer")&&!this.get("isShared")},isPrimaryEligible:function(){
return!(!C.a.get("allowCloudSyncServers")&&this.get("isCloudSyncServer"))&&(!(!C.a.get("allowMobileServers")&&this.get("isMobileServer"))&&(!!this.get("machineIdentifier")&&!this.get("isUnauthorized")&&!this.get("isCloud")))},isOutOfDate:function(){return!this.get("isCloudSyncServer")&&(!this.get("isMobileServer")&&!this.isVersionOrNewer("1.3.0"))},isClaimed:function(){return!!this.get("isPersonalCloudServer")||(this.get("isConnected")?this.get("myPlexSigninState")===U:void 0)},
hasManualConnection:function(){return this.get("connections").some(function(e){return e.get("sources").some(function(e){return/^manual/.test(e.id)})})},hasAdaptiveBitrate:function(){return this.get("streamingBrainABRVersion")>=3},shared:function(){return this.get("isShared")},bundled:function(){return this.get("isBundled")},cloud:function(){return this.get("isCloud")},merged:function(){return this.get("isMerged")},connected:function(){
return this.get("connectionTestResult")===_.PENDING?null:this.get("isConnected")},available:function(){return this.get("connectionTestResult")===_.PENDING?null:!this.get("isUnavailable")},authorized:function(){return this.get("connectionTestResult")===_.PENDING?null:this.get("isResolved")},relayed:function(){return this.get("isRelayed")}},defaults:function(){return{connectionTestResult:_.PENDING,promiseState:O.PENDING,sections:new E.a([],{server:this}),playlists:new N.a({},{server:this}),
playQueueManager:new x.a({server:this}),isShared:!1,isBundled:!1,isCloud:!1,isMerged:!1,hasEventConnection:!1,sync:!1,backgroundProcessing:!1,allowChannelAccess:!1,updater:!0,ownerFeatures:[]}},url:function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.get("activeConnection");n.i(d.a)(t,"An active or manual connection is required for a server url");var e=l.a.result(t,"url");return/\/$/.test(e)||(e+="/"),e},initialize:function(){this._reset(),
this.on("change:machineIdentifier",this.onMachineIdentifierChange,this),this.listenTo(this.get("connections"),{remove:this.onConnectionRemove,reset:this.onConnectionsReset})},uninitialize:function(){this.off("change:machineIdentifier",this.onMachineIdentifierChange,this),this.stopListening()},updateEntity:function(){if(!this.get("isMerged"))return T.a.prototype.updateEntity.apply(this,arguments)},fetch:function(){return u.a.Model.prototype.fetch.apply(this,arguments)},resolveUrl:function(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(/^\w+:\/\//.test(e))return e;var n=void 0;n=t.useRelativeUrl?this.get("isMobileServer")?"http://127.0.0.1:"+this.getLoopbackPort()+"/":"":this.url(t.connection);var i=this.get("accessToken"),a=l.a.extend({},t.params);return t.appendHeaders&&l.a.defaults(a,this.getHeaders()),t.appendToken&&i&&(a["X-Plex-Token"]=i),p.join([n,e],a)},swizzleUrl:function(e,t){var n=e.match(/^\w+:\/\/.+?(\/.+)$/),i=n?n[1]:e;return this.resolveUrl(i,t)
},getXHROptions:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.headers,i=s()(t,["headers"]);return a()({url:this.resolveUrl(e),dataType:"text",headers:l.a.extend(this.getHeaders(),n),allowHeadersInUrl:!0,allowBlacklistedMethodHeaders:this.supports("allowBlacklistedMethodHeaders")},i)},getHeaders:function(){var e=b.a.getInstance(),t=l.a.clone(e),i=this.get("accessToken");i&&(t["X-Plex-Token"]=i);var a=n.i(c.a)("appModel").get("settings"),r=a.get("language")
;return r&&(t["Accept-Language"]=r),t},addConnection:function(e){e.sources||(e.sources=[{id:"internal"}]);var t=this.get("connections"),n=new A.a(e),i=t.get(n.id);if(i){return i.get("sources").set(e.sources,{remove:!1}),i}return t.add(e)},hasSource:function(e){return this.get("connections").some(function(t){return t.hasSource(e)})},removeSource:function(e){for(var t=this.get("connections"),n=t.length-1;n>=0;){t.at(n).get("sources").remove(e),n--}},testAllConnections:function(){
var e=this,t=this.get("connections");return n.i(S.a)("[Connections] Testing all %s connection(s) for %s",t.length,this.get("debugName")),this._reset(),t.each(function(t){var n=!t.get("relay"),i=!t.get("isUntested");(n||i)&&e.testConnection(t)}),this.populatePromise},testOnlyUntestedConnections:function(){var e=this;return this.get("connections").each(function(t){var n=!t.get("relay"),i=t.get("isUntested"),a=t.get("isAborted");n&&(i||a)&&e.testConnection(t)}),this.populatePromise},
testOnlyUntestedRelayConnections:function(){var e=this;return this.get("connections").each(function(t){var n=t.get("relay"),i=t.get("isUntested");n&&i&&e.testConnection(t)}),this.populatePromise},testConnection:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.server=this,t.connection=e,this.get("promiseState")===O.REJECTED&&this._reset(),
M.a.execute("testServerConnection",t).done(this.onConnectionTestSuccess.bind(this)).fail(this.onConnectionTestError.bind(this))},abortAllConnectionTests:function(){var e=this,t=this.get("connections");n.i(S.a)("[Connections] Aborting all pending connection tests for",this.get("debugName")),t.each(function(t){e.abortConnectionTest(t)})},abortConnectionTest:function(e){var t={server:this,connection:e};M.a.execute("abortServerConnectionTest",t)},populateIdentity:function(e){var t=this
;if(this._identityPromise)return this._identityPromise;var n=M.a.execute("populateServerIdentity",{server:this,connection:e});return n.done(function(e){t.set("machineIdentifier",e)}),this._identityPromise=n,n},updateCacheKey:function(){var e=this.get("debugName"),t=this.cacheKey(this.attributes),i=this.cache.get(t);if(i){var a=i.get("debugName");S.a.warn("[Identity] %s and %s (cached) collide",e,a),
i.get("isConnected")||!this.get("isConnected")?(n.i(S.a)("[Identity] Merging %s into %s (cached)",e,a),i.merge(this)):(n.i(S.a)("[Identity] Merging %s (cached) into %s",a,e),this.merge(i),this.cache.store(this,t))}else this.cache.store(this,t)},merge:function(e){var t=this;e.set("isMerged",!0),e.get("isBundled")&&this.set("isBundled",!0),e.get("connections").each(function(e){t.addConnection(e.toJSON())}),this.collection&&(this.collection.remove(e.cid,{silent:!0}),
this.collection._byId[this.id]=this,this.collection.trigger("remove",e,this.collection),this.collection.trigger("update",this.collection)),this.cache.remove(e),C.a.get("shouldCreateStateTree")&&this.updateEntity()},hasOwnerFeature:function(e){if(this.supports("ownerFeatures")){var t=this.get("ownerFeatures");return!!(t&&t.indexOf(e)>-1)}return!!this.get("myPlexSubscription")&&R.indexOf(e)>-1},supports:function(e){var t=this.get(e);if(l.a.isBoolean(t))return t;var n=k.a[e]
;return null!=n&&this.isVersionOrNewer(n)},isVersionOrNewer:function(e){var t=this.get("shortVersion");return!e||n.i(f.a)(t,e)},hasRegression:function(e){if(!e)return!1;var t=this.isVersionOrNewer(e.introduced),n=e.resolved&&this.isVersionOrNewer(e.resolved);return t&&!n},canAllowHttpFallback:function(){if(!this.get("isFullServer")||this.get("isPersonalCloudServer"))return!1;if(h.a.isHostedHttps&&!C.a.get("allowMixedContent"))return!1
;var e=n.i(c.a)("appModel").get("settings"),t=e.get("allowHttpFallback"),i=t===y.a.ALWAYS,a=t===y.a.SAME_NETWORK;return!!(i||a&&this.get("publicAddressMatches"))},hasOtherLoopbackServer:function(){return!!this.collection&&this.collection.hasLoopbackServer()},getLoopbackPort:function(){var e=this.get("connections").findWhere({isPrivate:!0});return e?e.get("port"):"32400"},authenticate:function(e){this._resolve({accessToken:e})},deauthenticate:function(){this._reject({accessToken:null})},
_reset:function(){this.startCapturingChangeEvents(),this.set("promiseState",O.PENDING),this._resetPopulate(),this.releaseCapturedChangeEvents()},_resolve:function(e){var t=l.a.extend({connectionTestResult:_.CONNECTED,promiseState:O.RESOLVED},e);this.startCapturingChangeEvents(),this.set(t),this._resolvePopulate(),this.releaseCapturedChangeEvents()},_reject:function(e){var t=this.get("connections")
;t.hasOnlyFailedConnections()&&S.a.warn("[Connections] All connections to %s failed",this.get("debugName"));var n=t.findWhere({isUnauthorized:!0})?_.UNAUTHORIZED:_.UNAVAILABLE,i=l.a.extend({connectionTestResult:n,promiseState:O.REJECTED},e);this.startCapturingChangeEvents(),this.set(i),this._rejectPopulate(),this.releaseCapturedChangeEvents()},_checkActiveConnection:function(){var e=this.get("activeConnection"),t=this.get("connections");if(e&&!t.contains(e)){var n=t.getBestConnection()
;n?this.set(a()({activeConnection:n},n.get("serverAttrs"))):this.testAllConnections()}},onMachineIdentifierChange:function(e,t){this.collection?this.listenToOnce(this.collection,"change:machineIdentifier",function(){this.updateCacheKey()}):this.updateCacheKey()},onConnectionRemove:function(e,t){t.length?this._checkActiveConnection():(this.trigger("change:connections.remove",e,t),this.trigger("change:connections.change",this,t),this.trigger("destroy",this,this.collection))},
onConnectionsReset:function(e,t){e.length?this._checkActiveConnection():(this.trigger("change:connections.reset",e,t),this.trigger("change:connections.change",this,e),this.trigger("destroy",this,this.collection))},onConnectionTestSuccess:function(e){var t=this.get("connections").getBestConnection();if(t!==this.get("activeConnection")&&S.a.info("[Connections] Active connection to %s is %s",this.get("debugName"),t.id),this._resolve(a()({activeConnection:t},t.get("serverAttrs"))),
C.a.get("allowLoopbackDiscovery")){var i=this.get("connections"),r=this.get("activeConnection"),s=r.get("isPrivate"),o=!!i.findWhere({isLoopback:!0});!s||o||this.hasOtherLoopbackServer()||(n.i(S.a)("[Connections] Adding possible loopback connection for",this.get("debugName")),this.addConnection(r.getLoopbackAttributes()))}},onConnectionTestError:function(e,t){var i=this;if(!e.get("isAborted")){var a=this.get("connections")
;if(e.get("isHttps")&&!e.get("isUnauthorized")&&!e.get("relay"))if(this.canAllowHttpFallback()){var r=this.addConnection({scheme:"http",address:e.get("address"),port:e.get("port"),isFallback:!0});n.i(S.a)("[Connections] Added insecure fallback connection for %s at %s",this.get("debugName"),r.id)}else S.a.warn("[Connections] Prevented fallback to insecure connection for",this.get("debugName"));!this.id&&e.get("isUnauthorized")&&this.populateIdentity(e),
a.hasOnlyFailedConnections()?this.id||!this._identityPromise?this._reject():this._identityPromise.always(function(){a.hasOnlyFailedConnections()&&i._reject()}):a.hasFailedEveryDirectConnection()&&this.testOnlyUntestedRelayConnections()}}},{connectionTestResults:_,promiseStates:O,serverClasses:j});n.i(D.a)(B,function(){return{relationClass:n.i(c.a)("ServerFlexModel"),options:{server:this}}}),t.c=B},function(e,t,n){"use strict";var i=n(33),a={isHostedHttps:"https:"===window.location.protocol,
hasConsole:!!(window.console&&window.console.log&&window.console.log.call),hasWebSocket:!!window.WebSocket,hasEventSource:!!window.EventSource,hasReplaceState:!(!window.history||!window.history.replaceState),hasFileUpload:!!(window.File&&window.FileList&&window.FileReader),hasMediaSource:!(!window.MediaSource&&!window.WebKitMediaSource),hasObjectUrl:function(){return!("ie"===i.a.id&&11===parseInt(i.a.version,10)||i.a.presto||!(window.URL&&window.URL.createObjectURL&&window.URL.revokeObjectURL))
}(),hasBlob:function(){try{return!!new window.Blob}catch(e){return!1}}(),hasFullscreen:function(){var e=document.createElement("div");return!!(e.requestFullScreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen)}(),hasCanvas:function(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))}(),hasTouchScreen:!!("ontouchstart"in window),hasPageVisibility:function(){return document.hidden===!0||document.hidden===!1}(),
hasWebKitPageVisibility:function(){return document.webkitHidden===!0||document.webkitHidden===!1}(),hasPassiveEventListeners:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}(),hasWebSpeech:!!window.speechSynthesis,isChromeApp:!(!window.chrome||!window.chrome.storage)};t.a=a},function(e,t,n){"use strict";function i(e){return l[e]}var a=n(232);n.d(t,"b",function(){return s}),n.d(t,"c",function(){
return o}),t.a=i;var r,s="audioVideo",o="photo",l=(r={},r[a.b]=s,r[a.a]=s,r[a.c]=o,r)},function(e,t,n){"use strict";function i(e){return n.i(a.a)(e,r,"Metadata")}var a=n(1445);n.d(t,"b",function(){return r});var r=["Directory","Video","Track","Photo","Playlist"];t.a=i},function(e,t,n){"use strict";function i(e){return e.multiSelect}t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.separator;return r()("span",{className:t},void 0,n)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),
n(2687)),l=n.n(o);i.defaultProps={className:l.a.separator,separator:"\u2014"},t.a=i},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n.i(a.createSelector)(n.i(r.a)(),s.a,function(t,n){if(t&&t.playQueueItems&&t.playQueueItems.length){var i=t.playQueueItems[t.currentIndex+e];return i&&n[i]}})}var a=n(5),r=(n.n(a),n(785)),s=n(535);t.a=i},function(e,t,n){"use strict";var i=n(36),a=n(37),r=n(520);n.d(t,"b",function(){return r.a}),
n.d(t,"c",function(){return r.b}),n.d(t,"f",function(){return s}),n.d(t,"g",function(){return o}),n.d(t,"i",function(){return l}),n.d(t,"d",function(){return u}),n.d(t,"e",function(){return c}),n.d(t,"a",function(){return d}),n.d(t,"h",function(){return p});var s=(n.i(i.a)(a.F),n.i(i.a)(a.G)),o=n.i(i.a)(a.H),l=n.i(i.a)(a.I),u=n.i(i.a)(a.J),c=n.i(i.a)(a.K),d=n.i(i.a)(a.F,function(e){return{name:"experienceSettings",settings:e}}),p=n.i(i.a)(a.L)},function(e,t,n){"use strict";function i(e,t){
var i=t.searchResultEntityID;return n.i(a.a)(e,r.SEARCH_RESULT,i)}var a=n(569),r=n(295),s=n(98);n.d(t,"a",function(){return s.b}),n.d(t,"b",function(){return s.d}),n.d(t,"c",function(){return s.g}),n.d(t,"d",function(){return s.e}),n.d(t,"e",function(){return s.f}),n.d(t,"g",function(){return s.i}),n.d(t,"h",function(){return s.j}),n.d(t,"i",function(){return s.k}),t.f=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})
;var i=n(3),a=n.n(i),r=n(60),s=n(82),o=n(19),l=n(56),u=n(53),c=n(271),d=n(16),p=n(52),h=n(17),f=n(270),v=h.a.extend({mixins:[c.a],name:"MetadataListModel",context:["server","section","metadataItem","channel","identifier","mediaTagPrefix","mediaTagVersion","allowSync","excludeFields","excludeElements"],responseContext:["identifier","mediaTagPrefix","mediaTagVersion","allowSync"],entityType:l.d,entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state
;return n.i(u.a)(this.entityType,e.containerKey||e.key,this.server.entityID())},idAttribute:"containerKey",collectionName:"metadataItems",url:function(){var e=this.getPaginatedUrl(this.get("containerKey")||this.get("key")),t=this.excludeElements,n=this.excludeFields,i=void 0;return n&&t?i={excludeElements:t,excludeFields:n}:n?i={excludeFields:n}:t&&(i={excludeElements:t}),i?o.join(e,i):e},sessionAttrs:{isMetadataList:d.a.boolean,containerKey:d.a.string,containerTitle:d.a.string,
currentPageStart:d.a.integer,currentPageSize:d.a.integer,populatedRange:d.a.object,isPending:d.a.boolean,isPopulated:d.a.boolean,error:d.a.object},syncedAttrs:{key:d.a.string,librarySectionID:d.a.string,totalSize:d.a.integer,viewGroup:d.a.string,title:d.a.string,thumb:d.a.string,art:d.a.string,banner:d.a.string,theme:d.a.string,allowSync:d.a.boolean},syncedRelations:{metadataItems:{relationClass:f.a,rootPropertyName:"Metadata",options:function(e){return{containerKey:e.containerKey||e.key}},
setOptions:function(e){return{remove:e.remove,at:e.at}}}},derivedAttrs:{firstItemType:function(){var e=this.getCollection().first();return e?e.get("type"):this.attributes.firstItemType},isFirstItemLibraryItem:function(){var e=this.getCollection().first();return e?e.get("isLibraryItem"):this.attributes.isFirstItemLibraryItem}},defaults:function(){return{isMetadataList:!0,populatedRange:{start:0,end:0,size:0},isPending:!0,isPopulated:!1,error:null}},initialize:function(e){
this._totalSizeAdjustment=0,this.startPopulatedRangeMonitor(),this.on("change:key change:containerKey",this.onContainerKeyChange,this)},uninitialize:function(){this.off("change:key change:containerKey",this.onContainerKeyChange,this),this.stopListening()},augmentResponseText:function(e,t){return t===p.a.xml?n.i(s.a)(e):e},augmentResponse:function(e,t){var n=this;this.responseContext.forEach(function(t){var i=e[t];void 0!==i&&n.setContext(t,i)})
;var i=r.a.parseArray(e.Metadata),s=r.a.parseInteger(e.totalSize);return this.allowAllLeaves||(e.Metadata=a.a.reject(i,function(e){var t=/\/allLeaves$/.test(e.key);return t&&(this._totalSizeAdjustment-=1),t},this)),s&&this._totalSizeAdjustment&&(e.totalSize=s-this._totalSizeAdjustment),!e.title&&e.title1&&(e.title=e.title1),e},onContainerKeyChange:function(e,t){var n=this.get("metadataItems"),i=this.syncedRelations.metadataItems.options(this.attributes);a.a.each(i,function(e,t){n.setContext(t,e)
})}});t.default=v},function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"j",function(){return a}),n.d(t,"i",function(){return r}),n.d(t,"m",function(){return s}),n.d(t,"l",function(){return o}),n.d(t,"f",function(){return l}),n.d(t,"k",function(){return u}),n.d(t,"e",function(){return c}),n.d(t,"g",function(){return d}),n.d(t,"d",function(){return p}),n.d(t,"a",function(){return h}),n.d(t,"b",function(){return f}),n.d(t,"h",function(){return v})
;var i="picker",a="fallback",r="startup",s="server",o="library",l="list",u="selection",c="settings",d="setupWizard",p="serverDownload",h="agenda",f="calendar",v="navBar"},function(e,t,n){"use strict";var i=n(4),a=n(241),r=["id","typeString"],s=n.i(a.a)(r,[{id:1,typeString:"video",key:"videoStreamID",title:function(){return n.i(i.default)("Video")}},{id:2,typeString:"audio",key:"audioStreamID",title:function(){return n.i(i.default)("Audio")}},{id:3,typeString:"subtitles",key:"subtitleStreamID",
title:function(){return n.i(i.default)("Subtitles")}},{id:4,typeString:"lyrics",key:"lyricStreamID",title:function(){return n.i(i.default)("Lyrics")}}]);t.a=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"TINY",function(){return i}),n.d(t,"SMALL",function(){return a}),n.d(t,"MEDIUM",function(){return r}),n.d(t,"LARGE",function(){return s}),n.d(t,"all",function(){return o});var i="tiny",a="small",r="medium",s="large",o=[i,a,r,s]},function(e,t,n){
"use strict";function i(e){var t=e.children,n=e.className,i=e.spinnerSize,a=e.isDisabled,s=e.isSpinning,l=u()(e,["children","className","spinnerSize","isDisabled","isSpinning"]);return d.a.createElement(f.a,r()({className:(n||"")+" "+(m.a.button||"")+" "+(s&&m.a.isSpinning||""),isDisabled:a||s},l),o()("span",{className:m.a.spinnerContainer},void 0,o()(h.a,{className:m.a.spinner,size:i})),o()("span",{className:m.a.label},void 0,t))}
var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(20),h=n(38),f=n(47),v=n(2706),m=n.n(v);i.defaultProps={isDisabled:!1,isSpinning:!1,spinnerSize:p.d.SMALL},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.children,i=e.className,a=e.isSelected,s=e.selectedIconName,l=e.selectedIconAriaLabel,c=u()(e,["children","className","isSelected","selectedIconName","selectedIconAriaLabel"]);return d.a.createElement(f.a,r()({className:(i||"")+" "+(a&&m.a.isSelected||"")
},c),o()("div",{className:m.a.menuItemContainer},void 0,o()("div",{className:m.a.menuLabel},void 0,t),a&&o()("div",{className:m.a.selectedIcon},void 0,o()(h.a,{name:s,"aria-label":l||n.i(p.default)("Selected")}))))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(4),h=n(27),f=n(144),v=n(2733),m=n.n(v);i.defaultProps={selectedIconName:"plex-icon-selected-560"},t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.children,i=e.onModalClose,a=u()(e,["className","children","onModalClose"]);return d.a.createElement("div",r()({className:t},a),o()(h.a,{className:v.a.closeButton,onPress:i},void 0,m),n)}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(27),h=n(23),f=n(2739),v=n.n(f),m=o()(p.a,{name:"plex-icon-remove-560"});i.defaultProps={className:v.a.modalContent},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.children,n=r()(e,["children"])
;return o.a.createElement("div",n,t)}var a=n(14),r=n.n(a),s=n(0),o=n.n(s),l=n(2743),u=n.n(l);i.defaultProps={className:u.a.buttonBar},t.a=i},function(e,t,n){"use strict";function i(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(e&&t&&n){var r=encodeURIComponent(e.machineIdentifier);if(t.isLibraryProvider){if(e.isCloudSyncServer){var s=encodeURIComponent(n+"/all");return a.join("#!/server/"+r+"/list?key="+s,i)}
var o="/"===String(n).charAt(0),l=o?n:"/library/sections/"+n,u=encodeURIComponent(l);return a.join("#!/server/"+r+"?key="+u,i)}var c=encodeURIComponent(t.identifier),d=encodeURIComponent(n);return a.join("#!/server/"+r+"/provider/"+c+"?key="+d,i)}}var a=n(19);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.key,i=e.getModel,r=n.i(a.a)(t),s="is"+r+"Pending",o="is"+r+"Populated",l=t?t+"Error":"error";return function(e){
var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i(e,n),r=t?a.get(t):a,u=(a.sessionAttrs,a.get(s));a.set(s,!0),r.fetch(n.options).done(function(){var e;a.set((e={},e[s]=!1,e[o]=!0,e[l]=null,e))}).fail(function(e,t){var n;if(t.aborting)return void a.set(s,u);a.set((n={},n[s]=!1,n[l]=t,n))})}}var a=(n(31),n(282));t.a=i},function(e,t,n){"use strict";function i(e,t){var i=t.serverEntityID;return n.i(f.a)(e,v.f,i)}function a(e,t){var n=i(e,t);return n&&n.get("desktop")}
function r(e,t){var i=t.providerEntityID;return n.i(f.a)(e,v.e,i)}function s(e,t){var i=t.libraryEntityID;return n.i(f.a)(e,v.g,i)}function o(e,t){var i=t.metadataListEntityID;return n.i(f.a)(e,v.d,i)}function l(e,t){var i=t.metadataItemEntityID;return n.i(f.a)(e,v.b,i)}function u(e,t){var i=t.metadataItemEntityID;return n.i(f.b)(e,v.b,i)}function c(e,t){var i=t.mediaSubscriptionEntityID;return n.i(f.a)(e,v.a,i)}function d(e,t){var i=t.liveTVSessionEntityID;return n.i(f.a)(e,v.j,i)}
function p(e,t){var i=t.playQueueItemEntityID;return n.i(f.a)(e,v.k,i)}function h(e,t){var i=t.playlistItemEntityID;return n.i(f.a)(e,v.l,i)}var f=n(569),v=n(56);t.f=i,t.k=a,t.d=r,t.j=s,t.e=o,t.b=l,t.g=u,t.h=c,t.a=d,t.c=p,t.i=h},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children,i=e.cellX,a=e.cellY,s=e.cellWidth,o=e.cellHeight,l=e.onMouseMove,u=e.onMouseLeave,c=e.onFocus,d=e.onBlur,p="translate3d("+i+"px, "+a+"px, 0)",h={position:"absolute",width:s,height:o,
WebkitTransform:p,msTransform:p,transform:p};return r()("div",{className:t,style:h,onMouseMove:l,onMouseLeave:u,onFocus:c,onBlur:d},void 0,n)}var a=n(2),r=n.n(a),s=n(0);n.n(s);t.a=i},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(36),s=n(37);n.d(t,"n",function(){return o}),n.d(t,"x",function(){return l}),n.d(t,"d",function(){return u}),n.d(t,"e",function(){return c}),n.d(t,"b",function(){return d}),n.d(t,"c",function(){return p}),n.d(t,"a",function(){return h}),n.d(t,"i",function(){
return f}),n.d(t,"h",function(){return v}),n.d(t,"o",function(){return m}),n.d(t,"k",function(){return g}),n.d(t,"l",function(){return y}),n.d(t,"m",function(){return b}),n.d(t,"g",function(){return S}),n.d(t,"p",function(){return I}),n.d(t,"q",function(){return M}),n.d(t,"r",function(){return C}),n.d(t,"v",function(){return w}),n.d(t,"w",function(){return D}),n.d(t,"t",function(){return P}),n.d(t,"u",function(){return T}),n.d(t,"f",function(){return x}),n.d(t,"s",function(){return E}),
n.d(t,"j",function(){return N});var o=n.i(r.a)(s.i),l=n.i(r.a)(s.j),u=n.i(r.a)(s.k),c=n.i(r.a)(s.l),d=n.i(r.a)(s.m),p=n.i(r.a)(s.n),h=n.i(r.a)(s.o),f=n.i(r.a)(s.p),v=n.i(r.a)(s.q),m=n.i(r.a)(s.r),g=n.i(r.a)(s.s),y=n.i(r.a)(s.t),b=n.i(r.a)(s.u),S=n.i(r.a)(s.v),I=n.i(r.a)(s.w),M=n.i(r.a)(s.x),C=n.i(r.a)(s.y),w=n.i(r.a)(s.z),D=n.i(r.a)(s.A),P=n.i(r.a)(s.B),T=n.i(r.a)(s.C),x=n.i(r.a)(s.D),E=n.i(r.a)(s.E),N=n.i(r.a)(s.p,function(e){return a()({},e,{cancel:!0})})},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(36),s=n(19),o=n(55),l=n(37);n.d(t,"a",function(){return u}),n.d(t,"j",function(){return c}),n.d(t,"h",function(){return d}),n.d(t,"r",function(){return p}),n.d(t,"q",function(){return h}),n.d(t,"s",function(){return f}),n.d(t,"t",function(){return v}),n.d(t,"n",function(){return m}),n.d(t,"k",function(){return g}),n.d(t,"l",function(){return y}),n.d(t,"o",function(){return b}),n.d(t,"m",function(){return S}),n.d(t,"i",function(){return I}),n.d(t,"d",function(){return M
}),n.d(t,"e",function(){return C}),n.d(t,"z",function(){return w}),n.d(t,"A",function(){return D}),n.d(t,"f",function(){return P}),n.d(t,"g",function(){return T}),n.d(t,"w",function(){return x}),n.d(t,"u",function(){return E}),n.d(t,"v",function(){return N}),n.d(t,"x",function(){return L}),n.d(t,"y",function(){return A}),n.d(t,"p",function(){return k}),n.d(t,"B",function(){return _}),n.d(t,"b",function(){return O}),n.d(t,"c",function(){return j})
;var u=n.i(r.a)(l._26),c=n.i(r.a)(l._27),d=n.i(r.a)(l._28),p=n.i(r.a)(l._29),h=n.i(r.a)(l._30),f=n.i(r.a)(l._31),v=n.i(r.a)(l._32),m=n.i(r.a)(l._33),g=n.i(r.a)(l._34),y=n.i(r.a)(l._35),b=n.i(r.a)(l._36),S=n.i(r.a)(l._37),I=n.i(r.a)(l._38),M=n.i(r.a)(l._39),C=n.i(r.a)(l._40),w=n.i(r.a)(l._41),D=n.i(r.a)(l._42),P=n.i(r.a)(l._43),T=n.i(r.a)(l._44),x=n.i(r.a)(l._45),E=n.i(r.a)(l._46),N=n.i(r.a)(l._47),L=n.i(r.a)(l._48),A=n.i(r.a)(l._49),k=n.i(r.a)(l._50),_=n.i(r.a)(l._51),O=n.i(r.a)(l._52,function(e){
var t=s.join("/livetv/epg/channels",{lineup:e.lineupUUID});return a()({options:{url:t,timeout:o.b}},e)}),j=n.i(r.a)(l._53,function(e){var t=s.join("/livetv/epg/channelmap",{device:e.deviceUUID,lineup:e.lineupUUID});return a()({options:{url:t}},e)})},function(e,t,n){"use strict";function i(e){var t=e.children,n=o()(e,["children"]);return u.a.createElement("div",r()({className:d.a.modalHeader},n),t)}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(2744),d=n.n(c);t.a=i},function(e,t,n){
"use strict";function i(e){var t=e.className,n=e.children;return r()("div",{className:t},void 0,n)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2862)),l=n.n(o);i.defaultProps={className:l.a.innerContent},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children;return r()("div",{className:t},void 0,n)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2880)),l=n.n(o);i.defaultProps={className:l.a.leftTitle},t.a=i},function(e,t,n){"use strict";var i=n(0);n.n(i),i.PropTypes.shape({
identifier:i.PropTypes.string.isRequired,isLibraryProvider:i.PropTypes.bool.isRequired,protocols:i.PropTypes.object.isRequired,features:i.PropTypes.object.isRequired})},function(e,t,n){"use strict";var i=n(0);n.n(i),i.PropTypes.shape({machineIdentifier:i.PropTypes.string.isRequired,allowSync:i.PropTypes.bool,allowMediaDeletion:i.PropTypes.bool,transcoderVideo:i.PropTypes.bool,isFullServer:i.PropTypes.bool.isRequired,isFullOwnedServer:i.PropTypes.bool.isRequired})},function(e,t,n){"use strict"
;var i=n(197),a=new i.a({interface:["get","set","remove","clear"]});t.a=a},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(55),s=n(10),o=n.n(s),l=n(49),u=n(19),c=n(539),d=n(392),p=r.a.Collection.extend({mixins:[d.a],cache:new c.a,constructor:function(e,t){if(t||(t={}),this.server=t.server,this.section=t.section,this.channel=t.channel,this.device=t.device,this.parent=t.parent,this.allowInCache=t.allowInCache,this.persistInCache=t.persistInCache,this.skipCache=t.skipCache,
t.url&&(this.url=t.url),t.path&&(this.path=t.path),null==t.pageStart&&null==t.pageSize||(this.pageStart=t.pageStart||0,this.pageSize=t.pageSize||0),t.populated&&this.resetPopulatePromise(o.a.Deferred().resolve().promise()),!t.allowInCache&&!t.persistInCache)return void r.a.Collection.prototype.constructor.apply(this,arguments);this.initialize.apply(this,arguments);var n=this.cache.getItemCacheKey(this),i=this.cache.get(n);if(this.uninitialize(),t.onlyIfCached&&(i||(i={})),i)return i
;r.a.Collection.prototype.constructor.apply(this,arguments),this.cache.store(this,n)},uninitialize:function(){this.stopListening()},sync:function(){return(this.allowInCache||this.persistInCache)&&this.cache.store(this),r.a.sync.apply(this,arguments)},syncUrl:function(){var e="";if(this.url&&(e=a.a.result(this,"url")),this.path&&(e=u.join([e,a.a.result(this,"path")])),null!=this.pageStart||null!=this.pageSize){var t=this.pageStart||0,n=this.pageSize||0,i={};i["X-Plex-Container-Start"]=t,
i["X-Plex-Container-Size"]=n,e=u.join(e,i)}return e},convert:function(e,t){var n=a.a.isObject(e)?e:l.a.parseXML(e);if(!t)return n;var i=n[t];return i?(a.a.isArray(i)||(i=[i]),i):[]},clone:function(e){var t={server:this.server,section:this.section,parent:this.parent,url:this.url};return e||(e=this.models),new this.constructor(e,t)},cloneDeep:function(e){return e||(e=this.map(function(e){return e.clone()})),this.clone(e)},clear:function(e){e=a.a.extend({silent:!0},e),this.abortPendingPopulate(),
this.resetPopulatePromise(null),this.reset([],e)}});p.extend=function(){var e=r.a.Collection.extend.apply(this,arguments);return e.prototype.cache=new c.a,e},t.a=p},function(e,t,n){"use strict";var i=n(29),a=n(19),r=n(233),s=n(35),o=n(166),l=n(98),u=n(36),c=n(338),d=n(397),p=n(337),h=n(1364),f=n(58);n.d(t,"m",function(){return m}),n.d(t,"n",function(){return g}),n.d(t,"c",function(){return y}),n.d(t,"b",function(){return b}),n.d(t,"q",function(){return S}),n.d(t,"s",function(){return I}),
n.d(t,"g",function(){return M}),n.d(t,"t",function(){return C}),n.d(t,"f",function(){return w}),n.d(t,"e",function(){return D}),n.d(t,"h",function(){return P}),n.d(t,"i",function(){return T}),n.d(t,"k",function(){return x}),n.d(t,"o",function(){return E}),n.d(t,"p",function(){return N}),n.d(t,"j",function(){return L}),n.d(t,"d",function(){return A}),n.d(t,"a",function(){return k}),n.d(t,"r",function(){return _}),n.d(t,"l",function(){return O})
;var v,m="ui/player/playQueue/savePlayQueueState",g="ui/player/playQueue/removePlayQueueState",y=n.i(u.a)("ui/player/playQueue/playNextItem"),b=n.i(u.a)("ui/player/playQueue/playPreviousItem"),S=n.i(u.a)("ui/player/playQueue/playItemByIndex"),I=n.i(u.a)("ui/player/playQueue/playItemByKey"),M=n.i(u.a)("ui/player/playQueue/toggleShuffle"),C=n.i(u.a)("ui/player/playQueue/setRepeat"),w=n.i(u.a)("ui/player/playQueue/toggleRepeat"),D=n.i(u.a)("ui/player/playQueue/showPostPlay"),P=n.i(u.a)("ui/player/playQueue/togglePlayerPlayQueueState"),T=n.i(u.a)("ui/player/playQueue/togglePlayerLyricsState"),x=n.i(u.a)("ui/player/playQueue/fetchPlayQueueItemLyrics"),E=n.i(u.a)("ui/player/playQueue/movePlayQueueItem"),N=n.i(u.a)("ui/player/playQueue/removePlayQueueItem"),L=n.i(u.a)("ui/player/playQueue/fetchPlayQueue"),A=n.i(u.a)(m),k=n.i(u.a)(g),_=n.i(u.a)("ui/player/playQueue/restorePlayQueue"),O=(v={},
v["ui/player/playQueue/playNextItem"]=function(e,t){var i=t.playerType,a=n.i(o.a)(e,i),r=n.i(p.a)(e);n.i(s.a)(function(){a.get("isPostPlayVisible")&&(a.set({isPostPlayVisible:!1}),r.play(a)),r.playNextItem(a)})},v["ui/player/playQueue/playPreviousItem"]=function(e,t){var i=t.playerType,a=n.i(o.a)(e,i),l=n.i(p.a)(e);n.i(s.a)(function(){a.set({isPostPlayVisible:!1}),a.get("positionSeconds")>r.a?(l.seek(a,0),l.play(a)):l.playPreviousItem(a)})},v["ui/player/playQueue/playItemByIndex"]=function(e,t){
var i=t.playerType,a=t.index,r=n.i(o.a)(e,i),l=n.i(p.a)(e);n.i(s.a)(function(){l.playItem(r,a)})},v["ui/player/playQueue/playItemByKey"]=function(e,t,a){var r=t.playerType,s=t.key,l=n.i(o.a)(e,r),u=l.get("playQueue"),c=u.get("playQueueItems"),d=c.find(function(e){return s===e.get("metadataItem").get("key")});if(d){var p=c.indexOf(d);a(S({playerType:r,index:p}))}else i.a.warn('[Player] Unable to play unknown key "'+s+'"')},v["ui/player/playQueue/toggleShuffle"]=function(e,t,i){
var a=t.playerType,r=n.i(o.a)(e,a),l=r.get("playQueue");n.i(s.a)(function(){var t=l.get("playQueueShuffled"),s=!t;l.set("playQueueShuffled",s);var o=s?"shuffle":"unshuffle";n.i(c.a)(l,{urlPath:o,type:"PUT"}).done(n.i(d.a)(r,function(){var t=n.i(p.a)(e);i(A({playerType:a})),t.refreshRemotePlayQueue(r)})).fail(n.i(d.a)(r,function(){l.set("playQueueShuffled",!s)}))})},v["ui/player/playQueue/setRepeat"]=function(e,t,i){
var a=t.playerType,r=t.repeatAll,l=t.repeatOne,u=n.i(o.a)(e,a),h=u.get("playQueue"),f=n.i(p.a)(e);n.i(s.a)(function(){f.setRepeat(u,{repeatAll:r||l,repeatOne:l}),n.i(c.a)(h).done(n.i(d.a)(u,function(){i(A({playerType:a}))})).fail(n.i(d.a)(u,function(){h.set({repeatAll:!1,repeatOne:!1}),h.set("repeat",!1)}))})},v["ui/player/playQueue/toggleRepeat"]=function(e,t,i){var a=t.playerType,r=n.i(o.a)(e,a),s=r.get("repeatAll"),l=r.get("repeatOne");i(C({playerType:a,repeatAll:!s||!l,repeatOne:s&&!l}))},
v["ui/player/playQueue/showPostPlay"]=function(e,t,i){var a=t.playerType,r=(t.autoPlay,n.i(o.a)(e,a)),s=n.i(p.a)(e),l=r.get("playQueue"),u=n.i(o.b)(r,l.get("currentIndex")),c=u.get("postPlay");r.set({isPostPlayLoading:!0}),c.fetch().done(n.i(d.a)(r,function(){var e=c.findWhere({upNext:!0});c.remove(e),r.set({isPostPlayVisible:!0,isSettingsVisible:!1,isPostPlayLoading:!1}),s.pause(r)}))},v["ui/player/playQueue/togglePlayerPlayQueueState"]=function(e,t){
var i=t.playerType,a=n.i(o.a)(e,i),r=a.get("isPlayQueueVisible");n.i(s.a)(function(){a.set(n.i(h.a)(a,r,{isSettingsVisible:!1,isPlayQueueVisible:!r,isLyricsVisible:!1}))})},v["ui/player/playQueue/togglePlayerLyricsState"]=function(e,t){var i=t.playerType,a=n.i(o.a)(e,i),r=a.get("isLyricsVisible");n.i(s.a)(function(){a.set(n.i(h.a)(a,r,{isSettingsVisible:!1,isLyricsVisible:!r,isPlayQueueVisible:!1}))})},v["ui/player/playQueue/fetchPlayQueueItemLyrics"]=function(e,t,i){
var a=t.streamID,r=n.i(l.c)(e,t),s=r.get("lyricsStreams").get(a);s.set("lyricsError",null),s.fetch({merge:!0}).fail(function(e){s.set("lyricsError",e)})},v["ui/player/playQueue/movePlayQueueItem"]=function(e,t,i){var r=t.playerType,u=t.playQueueItemEntityID,h=t.moveIndex,f=n.i(o.a)(e,r),v=f.get("playQueue"),m=n.i(l.c)(e,{playQueueItemEntityID:u}),g=v.get("playQueueItems"),y=g.indexOf(m);if(y!==h&&y!==h-1){var b=h>y?h-1:h,S=h>0?g.at(h-1).id:void 0,I=a.join(["items",m.id,"move"]),M={after:S}
;n.i(s.a)(function(){g.remove(m),g.add(m,{at:b}),n.i(c.a)(v,{urlPath:I,params:M,type:"PUT"}).done(n.i(d.a)(f,function(){var t=n.i(p.a)(e);i(A({playerType:r})),t.refreshRemotePlayQueue(f)})).fail(n.i(d.a)(f,function(){g.indexOf(m)===b&&(g.remove(m),g.add(m,{at:y}))}))})}},v["ui/player/playQueue/removePlayQueueItem"]=function(e,t,i){var r=t.playerType,u=t.playQueueItemEntityID,h=n.i(o.a)(e,r),f=h.get("playQueue"),v=f.get("playQueueItems"),m=n.i(l.c)(e,{playQueueItemEntityID:u
}),g=v.indexOf(m),y=a.join(["items",m.id]);n.i(s.a)(function(){v.remove(m),n.i(c.a)(f,{urlPath:y,type:"DELETE"}).done(n.i(d.a)(h,function(){var t=n.i(p.a)(e);i(A({playerType:r})),t.refreshRemotePlayQueue(h)})).fail(n.i(d.a)(h,function(){v.add(m,{at:g})}))})},v["ui/player/playQueue/fetchPlayQueue"]=function(e,t){var i=t.playerType,a=n.i(o.a)(e,i),r=a.get("playQueue");n.i(c.a)(r)},v[m]=function(e,t){t.playerType},v[g]=function(e){},v["ui/player/playQueue/restorePlayQueue"]=function(e,t,i){
var a=t.serverEntityID,r=t.providerEntityID,s=t.playQueueType,o=t.playQueueOffset,l=t.playQueueRepeat,u=t.playQueueID,c={serverEntityID:a,providerEntityID:r,startOffsetMilliseconds:1e3*o,options:{type:s,playQueueRepeat:l,playQueueID:u}};i(n.i(f.b)(c))},v)},function(e,t,n){"use strict";var i=n(5),a=(n.n(i),n(150)),r=n.i(i.createSelector)(a.a,function(e){return e.metadataItems});t.a=r},function(e,t,n){"use strict";function i(e){return e.experienceSettings}t.a=i},function(e,t,n){"use strict"
;n.d(t,"e",function(){return i}),n.d(t,"d",function(){return a}),n.d(t,"b",function(){return r}),n.d(t,"c",function(){return s}),n.d(t,"f",function(){return o}),n.d(t,"a",function(){return l});var i="abd37b14-706c-461f-8255-fa9563882af3",a="32cc8bf5-b425-4582-a52d-71b4f1cf436b",r="5d819d02-5d04-4116-8eec-f49def4e2d6f",s="b2403ac6-4885-4971-8b96-59353fd87c72",o="de789b83-9c5e-4472-bccf-791c69e67500",l="6f82ca43-6117-4e55-ae0e-5ea3b3e99a96"},function(e,t,n){"use strict"
;var i=n(3),a=n.n(i),r=n(280),s=n(411),o=a.a.extend({},s.a,{type:"video",qualities:{bitrate:[64,96,208,320,720,1500,2e3,3e3,4e3,8e3,1e4,12e3,2e4],videoResolution:["220x128","220x128","284x160","420x240","576x320","720x480","1280x720","1280x720","1280x720","1920x1080","1920x1080","1920x1080","1920x1080"],videoQuality:[10,20,30,30,40,60,60,75,100,60,75,90,100]},getAvailableQualitiesFor:function(e,t,i){if(!e||!t)return[]
;var s=t.get("transcoderVideo"),o=t.get("transcoderVideoRemuxOnly"),l=n.i(r.a)(e),u=!(!l||!l.bitrate),c=!!e.videoResolution;if(!s||o||!u&&!c)return[];var d,p=t.get("maxUploadBitrate");if(p){var h=u?Math.min(l.bitrate,p):p;if(h===p){var f=a.a.extend({},i,{comparator:function(e){return this.qualities.bitrate[e]>h}});d=this.getAvailableQualities(f)}else d=this.getAvailableQualitiesBelowBitrate(h,i)
}else d=u?this.getAvailableQualitiesBelowBitrate(l.bitrate,i):this.getAvailableQualitiesBelowResolution(e.videoResolution,i);return d},getAvailableQualitiesBelowBitrate:function(e,t){return t||(t={}),t.comparator=function(t){return this.qualities.bitrate[t]>=e},this.getAvailableQualities(t)},getAvailableQualitiesBelowResolution:function(e,t){t||(t={});var n=this.getHeightFromResolution(e);return t.comparator=function(e){var t=this.qualities.videoResolution[e]
;return this.getHeightFromResolution(this.getResolutionFromSize(t))>=n},this.getAvailableQualities(t)},getNearestIndexToBitrate:function(e){return this.getNearestIndex(this.qualities.bitrate,e)},getMinimumQuality:function(e,t){return(e===o.ORIGINAL?Number.MAX_VALUE:e)<(t===o.ORIGINAL?Number.MAX_VALUE:t)?e:t},getMaximumQuality:function(e,t){return this.getMinimumQuality(e,t)===e?t:e}});t.a=o},function(e,t,n){"use strict";var i=n(0);n.n(i),i.PropTypes.shape({key:i.PropTypes.string.isRequired,
value:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.array]).isRequired,operator:i.PropTypes.string.isRequired,type:i.PropTypes.string})},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(15),s=n(36),o=n(177);n.d(t,"b",function(){return u}),n.d(t,"a",function(){return c}),n.d(t,"c",function(){return d});var l,u="ui/repopulatePage",c=n.i(s.a)(u),d=a()({},o.b,(l={},l[o.c]=function(e,t){r.a.trigger("show:alert",t)},l))},function(e,t,n){"use strict"
;var i=n(919),a=n(3037),r=n.n(a),s=n(2681),o=n.n(s),l=i.a.extend({template:r.a,ui:{sidebar:".sidebar-container",page:".page-container"},serializeData:function(){return{styles:o.a}}});t.a=l},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children,i=o()(e,["className","children"]);return u.a.createElement("div",r()({className:t},i),n)}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(2742),d=n.n(c);i.defaultProps={className:d.a.modalFooter},t.a=i},function(e,t,n){
"use strict";function i(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=arguments[4];if(e&&t&&n){var o=encodeURIComponent(e.machineIdentifier),l=encodeURIComponent(t.identifier),u=encodeURIComponent(n),c=s===r.d?"playlist":"details",d=t.isLibraryProvider?"#!/server/"+o+"/"+c+"?key="+u:"#!/server/"+o+"/provider/"+l+"/"+c+"?key="+u;return a.join(d,i)}}var a=n(19),r=n(30);t.a=i},function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},,function(e,t,n){
"use strict";var i=function(e,t,n,i,a,r,s,o){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,a,r,s,o],c=0;l=new Error(t.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}};e.exports=i},function(e,t,n){"use strict";function i(e,t,n){return Math.max(0,Math.min(t-s.c,e+n))}
var a=n(6),r=n.n(a),s=n(233),o=n(137),l=n(554),u=n(35),c=n(98),d=n(166),p=n(36),h=n(524),f=n(338),v=n(773),m=n(1363),g=n(1362),y=n(1357),b=n(1356),S=n(397),I=n(337),M=n(521),C=n(1355),w=n(398),D=n(109);n.d(t,"n",function(){return L}),n.d(t,"i",function(){return A}),n.d(t,"j",function(){return k}),n.d(t,"k",function(){return _}),n.d(t,"l",function(){return O}),n.d(t,"m",function(){return j}),n.d(t,"t",function(){return R}),n.d(t,"o",function(){return U}),n.d(t,"c",function(){return z}),
n.d(t,"p",function(){return B}),n.d(t,"b",function(){return F}),n.d(t,"f",function(){return V}),n.d(t,"a",function(){return Q}),n.d(t,"g",function(){return H}),n.d(t,"h",function(){return W}),n.d(t,"q",function(){return Y}),n.d(t,"r",function(){return G}),n.d(t,"s",function(){return K}),n.d(t,"d",function(){return q}),n.d(t,"e",function(){return X}),n.d(t,"u",function(){return Z})
;var P,T="ui/player/playerMedia/togglePlayPause",x="ui/player/playerMedia/seek",E="ui/player/playerMedia/skipBack",N="ui/player/playerMedia/stepBack",L=n.i(p.a)("ui/player/playerMedia/sendTimeline"),A=n.i(p.a)("ui/player/playerMedia/updatePlayerDuration"),k=n.i(p.a)("ui/player/playerMedia/updatePlayerPosition"),_=n.i(p.a)("ui/player/playerMedia/updatePlayerSeekRange"),O=n.i(p.a)("ui/player/playerMedia/updatePlayerBuffering"),j=n.i(p.a)("ui/player/playerMedia/updatePlayerError"),R=n.i(p.a)("ui/player/playerMedia/clearPlayerError"),U=n.i(p.a)("ui/player/playerMedia/tickPlayer"),z=n.i(p.a)(T),B=n.i(p.a)(x),F=n.i(p.a)(E),V=n.i(p.a)("ui/player/playerMedia/skipForward"),Q=n.i(p.a)(N),H=n.i(p.a)("ui/player/playerMedia/stepForward"),W=n.i(p.a)("ui/player/playerMedia/changeVolume"),Y=n.i(p.a)("ui/player/playerSettings/togglePlayerSettingsState"),G=n.i(p.a)("ui/player/playerSettings/changeQualityIndex"),K=n.i(p.a)("ui/player/playerSettings/changeStream"),q=n.i(p.a)(T,function(e){
return r()({},e,{shouldPlay:!0})}),X=n.i(p.a)(T,function(e){return r()({},e,{shouldPause:!0})}),Z=(P={},P["ui/player/playerMedia/sendTimeline"]=function(e,t,i){var a=t.playerType,s=t.providerEntityID,o=t.shouldRefreshPlayQueue,l=t.options,u=void 0===l?{}:l,p=n.i(d.a)(e,a),g=c.d(e,{providerEntityID:s}),y=c.c(e,t),b={state:n.i(v.a)(p),playbackSessionID:h.a};n.i(m.a)(g,y,r()({},b,u)).done(n.i(S.a)(p,function(e){i(n.i(D.d)({playerType:a})),p.set("bandwidthTimeline",e.bandwidthTimeline)
;var t=p.get("playQueue");o&&t.get("playQueueSelectedItemID")===y.get("playQueueItemID")&&n.i(f.a)(t).done(n.i(S.a)(p,function(){i(n.i(D.d)({playerType:a}))})),e.terminationCode&&(i(n.i(D.a)()),p.restoreDefaults({hasError:!0,errorMessage:e.terminationText}))}))},P["ui/player/playerMedia/updatePlayerDuration"]=function(e,t){var i=t.playerType,a=t.durationMilliseconds,r=n.i(d.a)(e,i),s=n.i(M.a)(r),o=s.get("metadataItem"),u=n.i(C.a)(r);if(u){
var c=o.get("Media")[u.mediaIndex],p=n.i(l.a)(c),h=!!p&&"vbr"===p.bitrateMode,f=a>0&&!h,v=f?a:c.duration;r.set({isMediaLoading:!1,durationSeconds:Math.floor((v||0)/1e3)})}},P["ui/player/playerMedia/updatePlayerPosition"]=function(e,t){var i=t.playerType,a=t.positionSeconds,r=n.i(d.a)(e,i);n.i(u.a)(function(){r.set({positionSeconds:a})})},P["ui/player/playerMedia/updatePlayerSeekRange"]=function(e,t){var i=t.playerType,a=t.seekStartSeconds,r=t.seekEndSeconds;n.i(d.a)(e,i).set({seekStartSeconds:a,
seekEndSeconds:r})},P["ui/player/playerMedia/updatePlayerBuffering"]=function(e,t){var i=t.playerType,a=t.isBuffering;n.i(d.a)(e,i).set({isBuffering:a})},P["ui/player/playerMedia/updatePlayerError"]=function(e,t){n.i(d.a)(e,t.playerType).set({isMediaLoading:!1,hasError:!0,errorMessage:t.errorMessage,errorCode:t.errorCode,errorCategory:t.errorCategory})},P["ui/player/playerMedia/clearPlayerError"]=function(e,t){var i=t.playerType,a=n.i(d.a)(e,i);n.i(u.a)(function(){a.set({hasError:!1,
errorMessage:null,errorCode:null,errorCategory:null})})},P["ui/player/playerMedia/tickPlayer"]=function(e,t,i){var a=t.playerType,r=(t.index,t.secondsElapsed),s=n.i(d.a)(e,a),o=s.get("playQueue"),l=n.i(C.a)(s);if(l){var u=s.get("isPaused"),p=!(r%10),h=!(r%30);if(p){var f=o.get("playQueueSelectedItemID"),v=o.get("playQueueItems").get(f);i(L({playerType:a,providerEntityID:s.get("providerEntityID"),playQueueItemEntityID:v.entityID(),options:{positionSeconds:s.get("positionSeconds"),
durationSeconds:s.get("durationSeconds"),mediaIndex:l.mediaIndex,partIndex:l.partIndex,partCount:l.partCount}}))}if(h&&u&&l.transcodeSessionID){var m=l.transcodeServerEntityID,y=c.f(e,{serverEntityID:m});n.i(g.a)(y,l.transcodeSessionID)}}},P[T]=function(e,t){var i=t.playerType,a=t.shouldPlay,r=t.shouldPause,s=n.i(d.a)(e,i),o=n.i(I.a)(e),l=void 0;s.get("isPostPlayVisible")&&n.i(u.a)(function(){s.set({isPostPlayVisible:!1}),o.playNextItem(s),o.play(s)}),
l=a?"play":r?"pause":s.get("isPaused")?"play":"pause",n.i(u.a)(function(){o[l](s)})},P[x]=function(e,t){var i=t.playerType,a=t.positionSeconds,r=n.i(d.a)(e,i),s=n.i(I.a)(e);n.i(u.a)(function(){s.seek(r,a)})},P[E]=function(e,t){var a=t.playerType,r=n.i(d.a)(e,a),o=n.i(I.a)(e),l=i(r.get("positionSeconds"),r.get("durationSeconds"),-s.b);n.i(u.a)(function(){o.seek(r,l)})},P["ui/player/playerMedia/skipForward"]=function(e,t){
var a=t.playerType,r=n.i(d.a)(e,a),o=n.i(I.a)(e),l=r.get("positionSeconds"),c=r.get("durationSeconds");if(c-l>s.c){var p=i(l,c,s.d);n.i(u.a)(function(){o.seek(r,p)})}},P[N]=function(e,t){var a=t.playerType,r=n.i(d.a)(e,a),o=n.i(I.a)(e),l=n.i(M.a)(r),c=l.get("metadataItem"),p=c.get("chapters"),h=r.get("positionSeconds"),f=r.get("lastSeekPositionSeconds"),v=r.get("durationSeconds"),m=void 0;m=p&&p.length?n.i(y.a)(p,h,f):i(h,v,-s.e),n.i(u.a)(function(){o.seek(r,m)})},
P["ui/player/playerMedia/stepForward"]=function(e,t){var a=t.playerType,r=n.i(d.a)(e,a),o=n.i(I.a)(e),l=n.i(M.a)(r),c=l.get("metadataItem"),p=c.get("chapters"),h=r.get("positionSeconds"),f=r.get("lastSeekPositionSeconds"),v=r.get("durationSeconds"),m=void 0;p&&p.length?m=n.i(b.a)(p,h,f):v-h>s.c&&(m=i(h,v,s.f)),null!=m&&n.i(u.a)(function(){o.seek(r,m)})},P["ui/player/playerMedia/changeVolume"]=function(e,t){var i=t.playerType,a=t.volume,r=n.i(d.a)(e,i),s=e.get("experienceSettings")
;n.i(I.a)(e).changeVolume(r,s,a)},P["ui/player/playerSettings/togglePlayerSettingsState"]=function(e,t){var i=t.playerType,a=n.i(d.a)(e,i),r=a.get("isSettingsVisible");n.i(u.a)(function(){a.set({openState:o.a,isSettingsVisible:!r,isPlayQueueVisible:!1,isLyricsVisible:!1})})},P["ui/player/playerSettings/changeQualityIndex"]=function(e,t){var i=t.playerType,a=t.qualityIndex,r=n.i(d.a)(e,i);n.i(I.a)(e).changeQualityIndex(r,a)},P["ui/player/playerSettings/changeStream"]=function(e,t,i){
var a=t.playerType,r=t.streamTypeString,s=t.streamID,o=n.i(d.a)(e,a),l=n.i(M.a)(o),u=l.get("metadataItem"),c=n.i(I.a)(e);i(n.i(w.b)({metadataItemEntityID:u.entityID(),streamTypeString:r,streamID:s})),c.changeStream(o,r,s)},P)},function(e,t,n){"use strict";function i(e){var t=r.a.Deferred();return e&&e.then?e.then(t.resolve,t.resolve):t.resolve(e),t.promise()}var a=n(10),r=n.n(a);t.a=i},function(e,t,n){"use strict";var i=n(414),a=n(413),r=n(284),s=r.a.extend({background:!0,setup:function(e){
this.minSize=!0,this.type=e.type,this.modelAttribute=e.modelAttribute||"thumb",e.placeholder!==!1&&(this.model&&this.model.get("isFolder")?this.placeholderClass=a.a.folder:e.placeholderClass||(this.placeholderClass=a.a[this.type])),r.a.prototype.setup.apply(this,arguments)},setDimensions:function(e){e.width?e.height=i.a.getPosterHeight(this.type,e.width):e.height&&(e.width=i.a.getPosterWidth(this.type,e.height)),r.a.prototype.setDimensions.call(this,e)},setModel:function(e,t){
r.a.prototype.setModel.apply(this,arguments),this.model&&this.model.get("isFolder")&&(this.placeholderClass=a.a.folder)}});t.a=s},function(e,t,n){"use strict";function i(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n.i(s.a)("metrics").trackClick(r()({page:t,action:e,context:u.f},i))}var a=n(6),r=n.n(a),s=n(13),o=n(15),l=n(64),u=n(89),c=n(87),d=n(28),p=n(36),h=n(97),f=n(226),v=n(767),m=n(768),g=n(288),y=n(436),b=n(439);n.d(t,"c",function(){return M}),n.d(t,"d",function(){
return C}),n.d(t,"g",function(){return w}),n.d(t,"h",function(){return D}),n.d(t,"i",function(){return P}),n.d(t,"j",function(){return T}),n.d(t,"a",function(){return x}),n.d(t,"b",function(){return E}),n.d(t,"e",function(){return N}),n.d(t,"f",function(){return L}),n.d(t,"k",function(){return A});var S,I="metadata/metadataList/fetchMetadataList",M=(n.i(p.a)(I),
n.i(p.a)("metadata/metadataList/populateMetadataList")),C=n.i(p.a)("metadata/metadataList/populateMetadataListRange"),w=n.i(p.a)("metadata/metadataList/repopulateMetadataListRange"),D=n.i(p.a)("metadata/metadataList/addMetadataListToPlaylist"),P=n.i(p.a)("metadata/metadataList/syncMetadataList"),T=n.i(p.a)("metadata/metadataList/optimizeMetadataList"),x=n.i(p.a)("metadata/metadataList/selectMetadataListItem"),E=n.i(p.a)("metadata/metadataList/deselectMetadataListItem"),N=n.i(p.a)("metadata/metadataList/deselectAllMetadataListItems"),L=n.i(p.a)("metadata/metadataList/resetMetadataList"),A=(S={},
S[I]=n.i(h.a)({getModel:c.d}),S["metadata/metadataList/populateMetadataList"]=n.i(f.a)({fetchActionType:I,getModel:c.d}),S["metadata/metadataList/populateMetadataListRange"]=n.i(v.a)({getModel:c.d}),S["metadata/metadataList/repopulateMetadataListRange"]=n.i(m.a)({getModel:c.d}),S["metadata/metadataList/addMetadataListToPlaylist"]=function(e,t){var a=n.i(c.d)(e,t),s=t.options||{},u=new y.a(r()({model:a,title:a.get("title")},s));o.a.trigger("show:modal",u),i(l.p,t.metricsPage,t.metricsProperties)
},S["metadata/metadataList/syncMetadataList"]=function(e,t){var a=n.i(c.d)(e,t);d.a.execute("showSyncModal",{item:a}),i(l.A,t.metricsPage,t.metricsProperties)},S["metadata/metadataList/optimizeMetadataList"]=function(e,t){var a=n.i(c.d)(e,t),r=new b.a({item:a});o.a.trigger("show:modal",r),i(l.w,t.metricsPage,t.metricsProperties)},S["metadata/metadataList/selectMetadataListItem"]=function(e,t,i){var a=t.id,r=t.type,s=t.isRangeSelect,o=n.i(c.d)(e,t),l=n.i(c.a)(e,{metadataItemEntityID:a
}),u=o.getCollection();l&&i(n.i(g.a)({type:r,model:l,collection:u,isRangeSelect:s}))},S["metadata/metadataList/deselectMetadataListItem"]=function(e,t,i){var a=n.i(c.a)(e,{metadataItemEntityID:t.id});a&&i(n.i(g.b)([a.id]))},S["metadata/metadataList/deselectAllMetadataListItems"]=function(e,t,i){var a=n.i(c.d)(e,t),r=a.getCollection();i(n.i(g.c)(r))},S["metadata/metadataList/resetMetadataList"]=function(e,t){var i=n.i(c.d)(e,t);i.abortPendingPopulate(),i.resetPopulatePromise(null),
i.restoreDefaults({containerKey:i.get("containerKey"),containerTitle:i.get("containerTitle")})},S)},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.className,i=e.errorClassName,a=e.name,s=e.hasError,l=o()(e,["children","className","errorClassName","name","hasError"]);return u.a.createElement("label",r()({},l,{className:(n||"")+" "+(s&&i||""),htmlFor:a}),t)}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(2712),d=n.n(c);i.defaultProps={className:d.a.label,
errorClassName:d.a.hasError},t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(6),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(13),m=n(4),g=n(64),y=n(26),b=n(20),S=n(420),I=n(47),M=n(92),C=n(128),w=n(94),D=n(102),P=n(69),T=n(117),x=n(95),E=n(2734),N=n.n(E),L=function(e){function t(i,a){l()(this,t);var r=c()(this,e.call(this,i,a));return r.onCancel=function(){n.i(v.a)("metrics").trackClick(s()({},r.props.metricsProperties,{page:r.props.metricsPage,
action:g.e})),r.props.onCancel()},r.onAccordChange=function(e){r.setState({isAccordGiven:e.target.checked})},r.state={isAccordGiven:!1},r}return p()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(y.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.isCancelButtonDisabled,i=e.isConfirmButtonSpinning,r=e.isOpen,o=e.metricsPage,l=e.metricsProperties,u=e.kind,c=e.title,d=e.message,p=e.accordMessage,h=e.confirmLabel,v=e.cancelLabel,y=e.hideCancelButton,E=e.onConfirm,L=!!p,A=i||L&&!this.state.isAccordGiven;return a()(C.a,{size:b.d.SMALL,isOpen:r,metricsPage:o,metricsProperties:l,onModalClose:this.onCancel},void 0,a()(w.a,{onModalClose:this.onCancel},void 0,a()(D.a,{},void 0,c),a()(P.a,{className:N.a.confirmBody
},void 0,d,L&&a()("label",{className:N.a.accordLabel},void 0,a()("input",{type:"checkbox",className:N.a.accordInput,checked:this.state.isAccordGiven,onChange:this.onAccordChange}),p)),a()(T.a,{},void 0,a()(x.a,{},void 0,!y&&a()(I.a,{className:N.a.cancelButton,kind:b.b.DEFAULT,isDisabled:t,onPress:this.onCancel},void 0,v||n.i(m.default)("Cancel")),f.a.createElement(S.a,s()({},l,{action:g.f}),a()(M.a,{className:N.a.confirmButton,"data-autofocus":!0,kind:u,isDisabled:A,isSpinning:i,onPress:E
},void 0,h||n.i(m.default)("OK")))))))},t}(h.Component);L.defaultProps={isConfirmButtonSpinning:!1,kind:b.b.PRIMARY},t.a=L},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(39),m=n.n(v),g=n(433),y=n(26),b=n(20),S=n(210),I=n(378),M=n(257),C=n.n(M),w=n(576),D=n(350),P=n(209),T=n(2737),x=n.n(T),E=n.i(S.a)(C.a.modalSpeed),N={appear:x.a.enter,appearActive:x.a.enterActive,enter:x.a.enter,enterActive:x.a.enterActive,
leave:x.a.leave,leaveActive:x.a.leaveActive},L=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o];return n=i=c()(this,e.call.apply(e,[this].concat(s))),i.onBackdropBeginPress=function(e){i._isBackdropPressed=i._isBackdropTarget(e)},i.onBackdropEndPress=function(e){!i.props.preventCloseOnBackdropPress&&i._isBackdropPressed&&i._isBackdropTarget(e)&&i.props.onModalClose(),i._isBackdropPressed=!1},i.onTouchMove=function(e){
i._isBackdropPressed=!1},i.onTouchCancel=function(e){i._isBackdropPressed=!1},i.onKeyDown=function(e){var t=e.keyCode;t===g.a?I.a(e):t===g.b&&(e.preventDefault(),e.stopPropagation(),i.props.onModalClose(),I.b())},a=n,c()(i,a)}return p()(t,e),t.prototype.componentDidMount=function(){this.props.isOpen&&this._openModal()},t.prototype.shouldComponentUpdate=function(e,t){return n.i(y.a)(this,e,t)},t.prototype.componentDidUpdate=function(e){
!e.isOpen&&this.props.isOpen?this._openModal():e.isOpen&&!this.props.isOpen&&this._closeModal()},t.prototype.componentWillUnmount=function(){this.props.isOpen&&this._closeModal()},t.prototype._openModal=function(){I.c(m.a.findDOMNode(this.refs.modal)),this._autoFocusTimeoutID=setTimeout(I.d,E),document.addEventListener("keydown",this.onKeyDown)},t.prototype._closeModal=function(){clearTimeout(this._autoFocusTimeoutID),document.removeEventListener("keydown",this.onKeyDown)},
t.prototype._isBackdropTarget=function(e){var t=this._findEventTarget(e);if(t){var n=m.a.findDOMNode(this.refs.modal);return!n||!n.contains(t)}return!1},t.prototype._findEventTarget=function(e){var t=e.changedTouches;if(!t)return e.target;if(1===t.length){var n=t[0];return document.elementFromPoint(n.clientX,n.clientY)}},t.prototype.render=function(){var e=this.props,t=e.className,n=e.backdropClassName,i=e.children,r=e.size,o=e.metricsPage,l=e.metricsProperties,u=e.isOpen;return s()(w.a,{
isOpen:u,closeTimeout:E},void 0,s()(D.a,{className:x.a.modalContainer,transitionName:N,transitionAppearTimeout:E,transitionEnterTimeout:E,transitionLeaveTimeout:E},void 0,u&&f.a.createElement(P.a,a()({},l,{page:o}),s()("div",{className:n,onMouseDown:this.onBackdropBeginPress,onMouseUp:this.onBackdropEndPress,onTouchStart:this.onBackdropBeginPress,onTouchEnd:this.onBackdropEndPress,onTouchMove:this.onTouchMove,onTouchCancel:this.onTouchCancel},void 0,f.a.createElement("div",{className:t||x.a[r],
ref:"modal"},i)))))},t}(h.Component);L.defaultProps={backdropClassName:x.a.modalBackdrop,size:b.d.MEDIUM,preventCloseOnBackdropPress:!1},t.a=L},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(14),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(20),m=n(369),g=n(23),y=n(2745),b=n.n(y),S=function(e){function t(){return l()(this,t),c()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.render=function(){
var e=this.props,t=e.children,n=e.tooltip,i=e.className,r=e.tooltipAttachment,o=e.hideOnPress,l=e.onPress,u=s()(e,["children","tooltip","className","tooltipAttachment","hideOnPress","onPress"]);return f.a.createElement(m.a,a()({className:i,"aria-label":n,component:g.a,tooltip:n,tooltipClassName:b.a[r],hideOnPress:o,onPress:l},u),t)},t}(h.Component);S.defaultProps={className:b.a.toolbarButton,tooltipAttachment:v.e.BOTTOM_CENTER},t.a=S},function(e,t,n){"use strict";function i(e){var t=e.className
;return r()("div",{className:t})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2860)),l=n.n(o);i.defaultProps={className:l.a.divider},t.a=i},function(e,t,n){"use strict";function i(e,t){return function(n){return o.a.createElement(t,r()({},e,n))}}var a=n(6),r=n.n(a),s=n(0),o=n.n(s);t.a=i},function(e,t,n){"use strict";function i(e,t){if(t)switch(t){case s.a:switch(e){case"episode":return u}break;case s.b:return u;case s.c:switch(e){case"movie":return u;case"episode":return u}break;case s.d:switch(e){
case"episode":return u}}switch(e){case"movie":return o;case"show":return o;case"season":return o;case"episode":return o;case"artist":return l;case"album":return l;case"track":return l;case"photo":return l;case"photoalbum":return l;case"clip":return u;case"extra":return u;case"musicVideo":return u;case"mixed":return o;default:return l}}function a(e,t,n){var a=i(t,n);return Math.round(e*a)}function r(e,t,n){var a=i(t,n);return Math.round(e/a)}var s=n(32);n.d(t,"e",function(){return o}),
n.d(t,"d",function(){return u}),t.b=i,t.c=a,t.a=r;var o=1/1.5,l=1,u=16/9},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(1304);n.d(t,"a",function(){return s});var s={CONTENT:"content",SUBSCRIBE:"subscribe",SEARCH:"search",MATCH:"match",METADATA:"metadata",TIMELINE:"timeline",PLAY_QUEUE:"playqueue",RATE:"rate",MANAGE:"manage"},o=a.a.extend({name:"ProviderFeatureModel",context:["server","provider"],idAttribute:"type",syncedAttrs:{key:i.a.string,scrobbleKey:i.a.string,
unscrobbleKey:i.a.string,type:i.a.string,automaticLibraryFolders:i.a.boolean},syncedRelations:{directories:{relationClass:r.a,rootPropertyName:"Directory",deferred:!0}}});t.b=o},function(e,t,n){"use strict";var i=n(17),a=n(52),r=n(16);n.d(t,"a",function(){return s});var s={GRABBER_GRAB:"grabber.grab",PROVIDER_DEVICE_CHANNELSCAN:"provider.device.channelscan",PROVIDER_EPG_LOAD:"provider.epg.load",PROVIDER_SUBSCRIPTION_PROCESS:"provider.subscriptions.process",
OPTIMIZE_DATABASE:"general.db.optimize",CLEAN_BUNDLES:"general.bundle.clean",LIBRARY_DELETE:"library.delete",LIBRARY_REFRESH_ITEMS:"library.refresh.items"},o=i.a.extend({name:"ActivityModel",context:["server"],idAttribute:"uuid",rootPropertyName:"Activity",responseType:function(){return this.server.supports("json")?a.a.json:a.a.xml},sessionAttrs:{synthetic:r.a.boolean},syncedAttrs:{uuid:r.a.string,userID:r.a.integer,title:r.a.string,subtitle:r.a.string,progress:r.a.integer,event:r.a.string,
cancellable:r.a.boolean,type:r.a.string,Context:r.a.object,Response:r.a.object},defaults:function(){return{Context:{},Response:{}}}});t.b=o},function(e,t,n){"use strict";var i=(n(31),n(16)),a=n(505),r=n(1347),s=a.a.extend({name:"UserStorageModel",storageKey:"users",sessionAttrs:{activeUserID:i.a.integer},syncedRelations:{users:{relationClass:r.a}},initialize:function(){this.debouncedSaveTimeout=null},debouncedSave:function(){var e=this
;this.debouncedSaveTimeout&&clearTimeout(this.debouncedSaveTimeout),this.debouncedSaveTimeout=setTimeout(function(){return e.save()},2e3)},flushDebouncedSave:function(){this.debouncedSaveTimeout&&(clearTimeout(this.debouncedSaveTimeout),this.save())},getActiveUser:function(){var e=this.get("users"),t=this.get("activeUserID");if(t)return e.get(t)},clearActiveUser:function(){var e=this.getActiveUser();return e&&e.clearSensitiveAttributes(),this.unset("activeUserID"),this.save()},
getActiveServers:function(){var e=this.getActiveUser();if(e)return e.get("servers")}});t.a=new s},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(function(e,t){return t.providerEntityID},r.a,function(e,t){return t[e]})}var a=n(5),r=(n.n(a),n(231));t.a=i},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i="full",a="mini"},function(e,t,n){"use strict";function i(){var e=l.b.apply(void 0,arguments);return function(t){
function n(e,t){var n=t.metricsPage;return o.a.createElement(i,r()({metricsPage:n},e))}var i=e(t);return n.contextTypes={metricsPage:s.PropTypes.string.isRequired},n}}var a=n(6),r=n.n(a),s=n(0),o=n.n(s),l=n(11);t.a=i},function(e,t,n){"use strict";function i(e){var t=function(t){function i(e,n){u()(this,i);var a=d()(this,t.call(this,e,n));return a.onMoveTimeout=function(){a.setState({isMoving:!1})},a.state={isMoving:!1},a}return h()(i,t),i.prototype.componentDidMount=function(){
this._setRenderedItem(),this._setVisibleItem()},i.prototype.componentWillReceiveProps=function(e,t){var n=this.props[this.props.keyPropName],i=e[e.keyPropName];null!=n&&n===i?this.props.cellIndex!==e.cellIndex&&(this.setState({isMoving:!0}),this._clearMoveTimeout(),this._moveTimeoutID=setTimeout(this.onMoveTimeout,this.props.moveTimeout)):(this._renderedItem=null,this._visibleItem=null,this.setState({isMoving:!1}),this._clearMoveTimeout())},i.prototype.shouldComponentUpdate=function(e,t){
return n.i(g.a)(this,e,t)},i.prototype.componentDidUpdate=function(){this._setRenderedItem(),this._setVisibleItem()},i.prototype.componentWillUnmount=function(){this._clearMoveTimeout()},i.prototype._setRenderedItem=function(){this.props.isScrolling||(this._renderedItem=this.props[this.props.keyPropName])},i.prototype._setVisibleItem=function(){this.props.isVisible&&(this._visibleItem=this.props[this.props.keyPropName])},i.prototype._clearMoveTimeout=function(){
this._moveTimeoutID&&(this._moveTimeoutID=clearTimeout(this._moveTimeoutID))},i.prototype.render=function(){var t=this.props,n=t.className,i=t.keyPropName,a=t.isScrolling,s=t.isVisible,l=(t.moveTimeout,o()(t,["className","keyPropName","isScrolling","isVisible","moveTimeout"])),u=l[i],c=a&&u!==this._renderedItem,d=!s&&u!==this._visibleItem;return v.a.createElement(e,r()({className:(n||"")+" "+(b.a.cell||"")+" "+(this.state.isMoving&&b.a.isMoving||""),showScrollPlaceholder:c,
showOffscreenPlaceholder:d},l))},i}(f.Component);return t.displayName="Virtualized("+n.i(m.a)(e)+")",t.WrappedComponent=e,t.defaultProps={moveTimeout:400,isScrolling:!1,isVisible:!0},t}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(7),u=n.n(l),c=n(9),d=n.n(c),p=n(8),h=n.n(p),f=n(0),v=n.n(f),m=n(211),g=n(26),y=n(2678),b=n.n(y);t.a=i},function(e,t,n){"use strict";function i(e,t,i){n.i(s.a)("metrics").trackClick({page:i,action:e,type:t.get("type")})}Object.defineProperty(t,"__esModule",{value:!0})
;var a=n(6),r=n.n(a),s=n(13),o=n(4),l=n(15),u=n(64),c=n(87),d=n(28),p=n(36),h=n(1351),f=n(770),v=n(769),m=n(436),g=n(932),y=n(1942),b=n(363),S=n(1943),I=n(439),M=n(1941),C=n(604),w=n(603),D=n(601),P=n(177),T=n(115),x=n(398);n.d(t,"ADD_METADATA_ITEM_TO_PLAYLIST",function(){return N}),n.d(t,"ANALYZE_METADATA_ITEM",function(){return L}),n.d(t,"DELETE_METADATA_ITEM",function(){return A}),n.d(t,"DELETE_METADATA_ITEM_VERSION",function(){return k}),n.d(t,"DOWNLOAD_METADATA_ITEM_VERSION",function(){
return _}),n.d(t,"EDIT_METADATA_ITEM",function(){return O}),n.d(t,"FIX_METADATA_ITEM_MATCH",function(){return j}),n.d(t,"GET_METADATA_ITEM_INFO",function(){return R}),n.d(t,"MARK_METADATA_ITEM_UNWATCHED",function(){return U}),n.d(t,"MARK_METADATA_ITEM_WATCHED",function(){return z}),n.d(t,"OPTIMIZE_METADATA_ITEM",function(){return B}),n.d(t,"RATE_METADATA_ITEM",function(){return F}),n.d(t,"RECOMMEND_METADATA_ITEM",function(){return V}),n.d(t,"REFRESH_METADATA_ITEM",function(){return Q}),
n.d(t,"SHARE_METADATA_ITEM",function(){return H}),n.d(t,"SPLIT_METADATA_ITEM_APART",function(){return W}),n.d(t,"SYNC_METADATA_ITEM",function(){return Y}),n.d(t,"UNMATCH_METADATA_ITEM",function(){return G}),n.d(t,"WATCH_METADATA_ITEM_LATER",function(){return K}),n.d(t,"CHANGE_METADATA_ITEM_FIELD",function(){return q}),n.d(t,"UPDATE_METADATA_ITEM_REFRESHING_STATE",function(){return X}),n.d(t,"REPOPULATE_METADATA_ITEM",function(){return Z}),n.d(t,"REMOVE_METADATA_ITEM",function(){return J}),
n.d(t,"addMetadataItemToPlaylist",function(){return $}),n.d(t,"analyzeMetadataItem",function(){return ee}),n.d(t,"deleteMetadataItem",function(){return te}),n.d(t,"deleteMetadataItemVersion",function(){return ne}),n.d(t,"downloadMetadataItemVersion",function(){return ie}),n.d(t,"editMetadataItem",function(){return ae}),n.d(t,"fixMetadataItemMatch",function(){return re}),n.d(t,"getMetadataItemInfo",function(){return se}),n.d(t,"markMetadataItemUnwatched",function(){return oe}),
n.d(t,"markMetadataItemWatched",function(){return le}),n.d(t,"optimizeMetadataItem",function(){return ue}),n.d(t,"rateMetadataItem",function(){return ce}),n.d(t,"recommendMetadataItem",function(){return de}),n.d(t,"refreshMetadataItem",function(){return pe}),n.d(t,"shareMetadataItem",function(){return he}),n.d(t,"splitMetadataItemApart",function(){return fe}),n.d(t,"syncMetadataItem",function(){return ve}),n.d(t,"unmatchMetadataItem",function(){return me}),
n.d(t,"watchMetadataItemLater",function(){return ge}),n.d(t,"changeMetadataItemField",function(){return ye}),n.d(t,"updateMetadataItemRefreshingState",function(){return be}),n.d(t,"repopulateMetadataItem",function(){return Se}),n.d(t,"removeMetadataItem",function(){return Ie}),n.d(t,"metadataActionHandlers",function(){return Me})
;var E,N="metadata/addMetadataItemToPlaylist",L="metadata/analyzeMetadataItem",A="metadata/deleteMetadataItem",k="metadata/deleteMetadataItemVersion",_="metadata/downloadMetadataItemVersion",O="metadata/editMetadataItem",j="metadata/fixMetadataItemMatch",R="metadata/getMetadataItemInfo",U="metadata/markMetadataItemUnwatched",z="metadata/markMetadataItemWatched",B="metadata/optimizeMetadataItem",F="metadata/rateMetadataItem",V="metadata/recommendMetadataItem",Q="metadata/refreshMetadataItem",H="metadata/shareMetadataItem",W="metadata/splitMetadataItemApart",Y="metadata/syncMetadataItem",G="metadata/unmatchMetadataItem",K="metadata/watchMetadataItemLater",q="metadata/changeMetadataItemField",X="metadata/updateMetadataItemRefreshingState",Z="metadata/repopulateMetadataItem",J="metadata/removeMetadataItem",$=n.i(p.a)(N),ee=n.i(p.a)(L),te=n.i(p.a)(A),ne=n.i(p.a)(k),ie=n.i(p.a)(_),ae=n.i(p.a)(O),re=n.i(p.a)(j),se=n.i(p.a)(R),oe=n.i(p.a)(U),le=n.i(p.a)(z),ue=n.i(p.a)(B),ce=n.i(p.a)(F),de=n.i(p.a)(V),pe=n.i(p.a)(Q),he=n.i(p.a)(H),fe=n.i(p.a)(W),ve=n.i(p.a)(Y),me=n.i(p.a)(G),ge=n.i(p.a)(K),ye=n.i(p.a)(q),be=n.i(p.a)(X),Se=n.i(p.a)(Z),Ie=n.i(p.a)(J),Me=r()({},x.a,(E={},
E[N]=function(e,t){var a=n.i(c.a)(e,t),r=new m.a({model:a,title:a.get("title")});l.a.trigger("show:modal",r),i(u.p,a,t.metricsPage)},E[L]=function(e,t,i){var a=n.i(c.a)(e,t),r=t.metricsPage,s={allowMetrics:!!r,metricsProperties:{page:r}};n.i(v.a)(a,s).fail(function(e){i(n.i(P.a)(n.i(o.default)("There was a problem analyzing this item.")))})},E[_]=function(e,t){var i=n.i(c.a)(e,t),a=new M.a({model:i});l.a.trigger("show:modal",a)},E[A]=function(e,t){var a=n.i(c.a)(e,t),s=t.options||{}
;d.a.execute("deleteItems",r()({item:a},s)),i(u.q,a,t.metricsPage)},E[k]=function(e,t){var a=n.i(c.a)(e,t);d.a.execute("deleteVersions",{item:a}),i(u.q,a,t.metricsPage)},E[O]=function(e,t){var a=n.i(c.a)(e,t),r=a.get("isPlaylist")?new y.a({model:a}):new g.a({model:a});l.a.trigger("show:modal",r),i(u.r,a,t.metricsPage)},E[j]=function(e,t){var a=n.i(c.a)(e,t),r=new S.a({model:a});l.a.trigger("show:modal",r),i(u.s,a,t.metricsPage)},E[R]=function(e,t){var a=n.i(c.a)(e,t),r=new D.a({model:a})
;l.a.trigger("show:modal",r),i(u.t,a,t.metricsPage)},E[z]=function(e,t,a){var r=n.i(c.a)(e,t);d.a.execute("markWatched",{item:r,force:t.skipConfirm}).done(function(){a(n.i(T.a)({serverEntityID:t.serverEntityID}))}),i(u.u,r,t.metricsPage)},E[U]=function(e,t,a){var r=n.i(c.a)(e,t);d.a.execute("markUnwatched",{item:r,force:t.skipConfirm}).done(function(){a(n.i(T.a)({serverEntityID:t.serverEntityID}))}),i(u.v,r,t.metricsPage)},E[B]=function(e,t){var a=n.i(c.a)(e,t),r=new I.a({item:a})
;l.a.trigger("show:modal",r),i(u.w,a,t.metricsPage)},E[F]=function(e,t,i){var a=t.rating,r=t.metricsPage,s=n.i(c.b)(e,t),l=n.i(c.a)(e,t),u={rating:a,allowMetrics:!!r,metricsProperties:{page:r}};n.i(h.a)(s,l,u).fail(function(e){i(n.i(P.a)(n.i(o.default)("There was a problem rating this item.")))})},E[V]=function(e,t){var a=n.i(c.a)(e,t),r=new w.a({model:a});l.a.trigger("show:modal",r),i(u.x,a,t.metricsPage)},E[Q]=function(e,t,i){var a=n.i(c.a)(e,t),r=t.metricsPage,s={allowMetrics:!!r,
metricsProperties:{page:r}};n.i(f.a)(a,s).fail(function(e){503===e.status?l.a.trigger("show:modal",new b.a({model:a.server})):i(n.i(P.a)(n.i(o.default)("There was a problem refreshing this item.")))})},E[H]=function(e,t){var a=n.i(c.a)(e,t),r=new C.a({model:a});l.a.trigger("show:modal",r),i(u.y,a,t.metricsPage)},E[W]=function(e,t,a){var r=n.i(c.a)(e,t);d.a.execute("splitApart",{item:r,skipNavigate:!0}).done(function(){a(n.i(T.a)({serverEntityID:t.serverEntityID}))}),i(u.z,r,t.metricsPage)},
E[Y]=function(e,t){var a=n.i(c.a)(e,t);d.a.execute("showSyncModal",{item:a}),i(u.A,a,t.metricsPage)},E[G]=function(e,t){var a=n.i(c.a)(e,t);d.a.execute("unmatch",{item:a}),i(u.B,a,t.metricsPage)},E[K]=function(e,t){var a=n.i(c.a)(e,t);d.a.execute("watchLater",{item:a}),i(u.C,a,t.metricsPage)},E[q]=function(e,t){var i=t.metadataItemEntityID,a=t.name,r=t.value,s=t.save,o=n.i(c.a)(e,{metadataItemEntityID:i});s?o.save(a,r):o.set(a,r)},E[X]=function(e,t){var i=n.i(c.c)(e,t);i&&i.set({
metadataState:t.metadataState,mediaState:t.mediaState})},E[Z]=function(e,t){var i=n.i(c.c)(e,t);i&&i.fetch({data:{skipRefresh:1},usePopulatedParams:!0})},E[J]=function(e,t){var i=n.i(c.c)(e,t);i&&i.trigger("destroy",i,i.collection)},E))},function(e,t,n){"use strict";var i=n(36),a=n(37);n.d(t,"a",function(){return r}),n.d(t,"c",function(){return s}),n.d(t,"b",function(){return o});var r=n.i(i.a)(a.M),s=n.i(i.a)(a.N),o=n.i(i.a)(a.O)},function(e,t,n){"use strict";var i=n(5),a=(n.n(i),
n.i(i.createSelector)(function(e){return e.ui.liveTVSettingsPage},function(e){return e.dvrSetup}));t.a=a},function(e,t,n){"use strict";function i(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1],i=n.type,a=n.payload;switch(i){case I.CHANGE:var r=a.name,s=a.change;if(null==s){var o=h()({},t);return delete o[r],o}return h()({},t,(e={},e[r]=s,e));case I.REPLACE_STATE:return a;case I.RESET:return{};case I.SHOW_ERRORS:return v.a.mapObject(t,function(e){
return h()({},e,{showErrors:0!==e.errors.length})});default:return t}}var a=n(14),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(6),h=n.n(p),f=n(3),v=n.n(f),m=n(0),g=n.n(m),y=n(725),b=(n.n(y),n(873)),S=n(36);n.d(t,"b",function(){return M});var I={CHANGE:"CHANGE",REPLACE_STATE:"REPLACE_STATE",RESET:"RESET",SHOW_ERRORS:"SHOW_ERRORS"},M={change:n.i(S.a)(I.CHANGE),replaceState:n.i(S.a)(I.REPLACE_STATE),reset:n.i(S.a)(I.RESET),showErrors:n.i(S.a)(I.SHOW_ERRORS)},C=function(e){
function t(a,r){o()(this,t);var s=u()(this,e.call(this,a,r));return s.onFormStoreChange=function(){var e=s.store.getState();e!==s.prevState&&(s.prevState=e,s.props.onChange(e))},s.onSubmit=function(e){e.preventDefault(),e.nativeEvent.preventDefault();var t=s.store.getState();if(v.a.some(t,function(e,t){return 0!==e.errors.length}))s.actions.showErrors();else{var n=v.a.mapObject(t,function(e,t){return e.value});s.props.onSubmit(n,t)}},s.store=n.i(y.createStore)(i),s.prevState=s.store.getState(),
s.actions=n.i(y.bindActionCreators)(M,s.store.dispatch),s}return d()(t,e),t.prototype.getChildContext=function(){return{formStore:this.store}},t.prototype.componentWillMount=function(){this.unsubscribe=this.store.subscribe(this.onFormStoreChange)},t.prototype.componentWillReceiveProps=function(e){e.formState&&this.store.getState()!==e.formState&&this.actions.replaceState(e.formState)},t.prototype.componentWillUnmount=function(){this.unsubscribe&&(this.unsubscribe(),
this.store.replaceReducer(function(e){return e}))},t.prototype.render=function(){var e=this.props,t=e.children,n=(e.formState,e.onChange,r()(e,["children","formState","onChange"]));return g.a.createElement("form",h()({},n,{onSubmit:this.onSubmit}),t)},t}(m.Component);C.childContextTypes={formStore:b.a},C.defaultProps={onSubmit:function(){},onChange:function(){}},t.a=C},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children,i=e.kind,a=e.isDisabled,s=(e.onMenuEnable,
e.onMenuDisable,o()(e,["className","children","kind","isDisabled","onMenuEnable","onMenuDisable"]));return u.a.createElement(d.a,r()({className:(t||"")+" "+(h.a.menuItem||"")+" "+(h.a[i]||"")+" "+(a&&h.a.isDisabled||""),role:"menuitem"},s),n)}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(20),d=n(23),p=n(2731),h=n.n(p);i.defaultProps={kind:c.b.DEFAULT,isDisabled:!1},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children;return r()("div",{className:t},void 0,n)
}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2881)),l=n.n(o);i.defaultProps={className:l.a.primaryTitle},t.a=i},function(e,t,n){e.exports={default:n(2580),__esModule:!0}},function(e,t,n){var i=n(163),a=n(119),r=n(1066),s=n(313),o=function(e,t,n){var l,u,c,d=e&o.F,p=e&o.G,h=e&o.S,f=e&o.P,v=e&o.B,m=e&o.W,g=p?a:a[t]||(a[t]={}),y=g.prototype,b=p?i:h?i[t]:(i[t]||{}).prototype;p&&(n=t);for(l in n)(u=!d&&b&&void 0!==b[l])&&l in g||(c=u?b[l]:n[l],
g[l]=p&&"function"!=typeof b[l]?n[l]:v&&u?r(c,i):m&&b[l]==c?function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(c):f&&"function"==typeof c?r(Function.call,c):c,f&&((g.virtual||(g.virtual={}))[l]=c,e&o.R&&y&&!y[l]&&s(y,l,c)))};o.F=1,o.G=2,o.S=4,o.P=8,o.B=16,o.W=32,o.U=64,o.R=128,e.exports=o},,function(e,t,n){
"use strict";function i(){return n.i(a.createSelector)(function(e,t){return t.metadataListEntityID},r.a,function(e,t){return t[e]})}var a=n(5),r=(n.n(a),n(1381));t.a=i},function(e,t,n){"use strict";function i(e){return e.entities}t.a=i},function(e,t,n){"use strict";function i(e){return e.user}t.a=i},function(e,t){function n(e){return encodeURIComponent(e||"")}e.exports=n},function(e,t,n){function i(e){return function(){return e.apply(this,a.initial(arguments))}}var a=n(3);e.exports=i
},function(e,t,n){"use strict";var i=n(4),a=n(241),r=n(30),s=["key","typeID","typeString","rootTypeString"],o=n.i(a.a)(s,[{key:"movies",typeID:"1",typeString:r.e,rootTypeString:r.e,title:function(){return n.i(i.default)("Movies")},shortTitle:function(){return n.i(i.default)("Movies")},defaultAgent:"com.plexapp.agents.imdb",defaultLanguage:"en",defaultScanner:"Plex Movie Scanner",sectionTypeIcon:"plex-icon-movies-560"},{key:"tv",typeID:"2",typeString:r.f,rootTypeString:r.f,title:function(){
return n.i(i.default)("TV Shows")},shortTitle:function(){return n.i(i.default)("Shows")},defaultAgent:"com.plexapp.agents.thetvdb",defaultLanguage:"en",defaultScanner:"Plex Series Scanner",sectionTypeIcon:"plex-icon-shows-560"},{key:"music",typeID:"8",typeString:r.g,rootTypeString:r.g,title:function(){return n.i(i.default)("Music")},shortTitle:function(){return n.i(i.default)("Music")},defaultAgent:"com.plexapp.agents.lastfm",defaultLanguage:"en",defaultScanner:"Plex Music Scanner",
sectionTypeIcon:"plex-icon-music-560",exclusiveAgents:["com.plexapp.agents.plexmusic"],exclusiveScanners:["Plex Premium Music Scanner"]},{key:"photos",typeID:"13",typeString:r.h,rootTypeString:r.i,title:function(){return n.i(i.default)("Photos")},shortTitle:function(){return n.i(i.default)("Photos")},defaultAgent:"com.plexapp.agents.none",defaultLanguage:"en",defaultScanner:"Plex Photo Scanner",sectionTypeIcon:"plex-icon-photos-560"},{key:"videos",typeID:"1",typeString:r.e,rootTypeString:r.j,
title:function(){return n.i(i.default)("Other Videos")},shortTitle:function(){return n.i(i.default)("Videos")},defaultAgent:"com.plexapp.agents.none",defaultLanguage:"xn",defaultScanner:"Plex Video Files Scanner",sectionTypeIcon:"plex-icon-clips-560"}]);t.a=o},function(e,t,n){"use strict";function i(){return n.i(s.createSelector)(n.i(o.a)(),function(e){return!e||e.isPersonalCloudServer})}function a(){return n.i(s.createSelector)(n.i(l.a)(),i(),function(e,t){return t.useClientFilters
},function(e,t,n){return{useClientFilters:null!=n?n:t,url:e}})}var r=n(11),s=n(5),o=(n.n(s),n(46)),l=n(775),u=n(863);t.a=n.i(r.b)(a)(u.a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(36),a=n(37);n.d(t,"initQuickSearch",function(){return r}),n.d(t,"resetQuickSearch",function(){return s}),n.d(t,"fetchQuickSearch",function(){return o}),n.d(t,"changeQuickSearchQuery",function(){return l}),n.d(t,"changeQuickSearchSettings",function(){return u}),
n.d(t,"selectQuickSearchResult",function(){return c}),n.d(t,"navigateQuickSearchResult",function(){return d}),n.d(t,"playQuickSearchResult",function(){return p});var r=n.i(i.a)(a._67),s=n.i(i.a)(a._68),o=n.i(i.a)(a._69),l=n.i(i.a)(a._70),u=n.i(i.a)(a._71),c=n.i(i.a)(a._72),d=n.i(i.a)(a._73),p=n.i(i.a)(a._74)},function(e,t,n){"use strict";function i(e){var t=function(t){function i(e,a){u()(this,i);var r=d()(this,t.call(this,e,a));return r.onFormStoreChange=function(){
var e=r.props.name,t=r.store.getState(),i=t[e];i||r.initializeInputState(r.props),n.i(I.a)(t,r.previousFormState)||(r.previousFormState=t,r.handleStateChange(r.props)),r.state!==i&&null!=i&&r.setState(i)},r.onChange=function(e){r.handleStateChange(r.props,e)},r.onBlur=function(){if(!r.hasBlurred){r.hasBlurred=!0;var e=r.store.getState(),t=r.props.name,n=e[t],i=r.calculateErrors(n.value,e,r.props);r.actions.change({name:t,change:o()({},n,{errors:i,showErrors:0!==i.length})})}},
r.store=a.formStore,r.actions=n.i(y.bindActionCreators)(w.b,r.store.dispatch),r.state=null,r.hasBlurred=!1,r}return h()(i,t),i.prototype.componentWillMount=function(){this.previousFormState=this.store.getState(),this.unsubscribe=this.store.subscribe(this.onFormStoreChange),this.initializeInputState(this.props)},i.prototype.componentWillReceiveProps=function(e){
n.i(b.a)(e.initialValue)&&n.i(b.a)(this.props.initialValue)?n.i(I.a)(e.initialValue,this.props.initialValue)||this.handleStateChange(e,e.initialValue):e.initialValue!==this.props.initialValue&&this.handleStateChange(e,e.initialValue)},i.prototype.shouldComponentUpdate=function(e,t){return n.i(M.a)(this,e,t)},i.prototype.componentWillUnmount=function(){var e=this.props.name;this.unsubscribe&&this.unsubscribe(),this.actions.change({name:e,change:null})},
i.prototype.initializeInputState=function(e){var t=e.name,n=e.initialValue,i=this.store.getState();i[t]={errors:this.calculateErrors(n,i,e),showErrors:!1,value:n},this.actions.replaceState(i)},i.prototype.handleStateChange=function(e,t){var n=this.store.getState(),i=e.name,a=n[i],r=null!=t?t:a.value,s=this.calculateErrors(r,n,e);a.value===r&&v.a.isEqual(a.errors,s)||this.actions.change({name:i,change:{errors:s,showErrors:this.hasBlurred&&0!==s.length,value:r}})},
i.prototype.calculateErrors=function(e,t,n){return n.validations.map(function(n){return n(e,t)}).filter(function(e){return null!=e})},i.prototype.render=function(){var t=this.props,n=(t.validations,t.errors),i=r()(t,["validations","errors"]);if(!this.state)return null;var a=n.length>0,s=this.state,l=s.value,u=s.errors,c=s.showErrors;return g.a.createElement(e,o()({},i,{showErrors:!!a||c,errors:a?n:u,value:l,onChange:this.onChange,onBlur:this.onBlur}))},i}(m.Component)
;return t.displayName="FormInput("+n.i(S.a)(e)+")",t.WrappedComponent=e,t.contextTypes={formStore:C.a},t.defaultProps={validations:[],errors:[]},t}var a=n(14),r=n.n(a),s=n(6),o=n.n(s),l=n(7),u=n.n(l),c=n(9),d=n.n(c),p=n(8),h=n.n(p),f=n(3),v=n.n(f),m=n(0),g=n.n(m),y=n(725),b=(n.n(y),n(31),n(344)),S=n(211),I=n(352),M=n(26),C=n(873),w=n(143);t.a=i},function(e,t,n){"use strict";function i(){return n.i(b.createSelector)(function(e,t){return t.columnAdjustment},n.i(I.a)(),C.a,M.a,function(e,t,n,i){
var a=v.a.pick(t,"totalSize","populatedRange","allowSync","isPending","isPopulated","error","firstItemType","isFirstItemLibraryItem");return h()({metadataItemEntityIDs:t.metadataItems,containerKey:t.containerKey||t.key,disableReloadThreshold:!!n.activeSelectionType,columnAdjustment:e||i.columnAdjustment},a)})}var a=n(14),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(6),h=n.n(p),f=n(3),v=n.n(f),m=n(0),g=n.n(m),y=n(11),b=n(5),S=(n.n(b),n(35)),I=n(149),M=n(111),C=n(83),w=n(125),D={
dispatchPopulateMetadataList:w.c,dispatchPopulateMetadataListRange:w.d,dispatchDeselectAllMetadataListItems:w.e,dispatchResetMetadataList:w.f},P=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),l=0;l<r;l++)s[l]=arguments[l];return n=i=u()(this,e.call.apply(e,[this].concat(s))),i.onPageRequest=function(e){var t=i.props,n=t.metadataListEntityID,a=t.disableReloadThreshold;(0,t.dispatchPopulateMetadataListRange)(h()({metadataListEntityID:n,disableReloadThreshold:a
},e))},a=n,u()(i,a)}return d()(t,e),t.prototype.componentWillMount=function(){this._populate()},t.prototype.componentWillReceiveProps=function(e){e.metadataListEntityID!==this.props.metadataListEntityID&&this._populate(e)},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.metadataListEntityID,n=e.shouldResetOnUnmount;this.props.dispatchDeselectAllMetadataListItems({metadataListEntityID:t}),n&&this.props.dispatchResetMetadataList({metadataListEntityID:t})},
t.prototype._populate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.metadataListEntityID,i=e.initialSize,a=e.dispatchPopulateMetadataList,r=e.dispatchPopulateMetadataListRange;i&&n.i(S.a)(function(){i===1/0?a({metadataListEntityID:t}):r({metadataListEntityID:t,startIndex:0,endIndex:i-1,pages:1})})},t.prototype.render=function(){var e=this.props,t=e.component,n=(e.dispatchPopulateMetadataListRange,e.dispatchDeselectAllMetadataListItems,
e.dispatchResetMetadataList,r()(e,["component","dispatchPopulateMetadataListRange","dispatchDeselectAllMetadataListItems","dispatchResetMetadataList"]));return g.a.createElement(t,h()({},n,{onPageRequest:this.onPageRequest}))},t}(m.Component);P.defaultProps={disableReloadThreshold:!1,shouldResetOnUnmount:!1},t.a=n.i(y.b)(i,D)(P)},function(e,t,n){"use strict";function i(e){
var t=e.contentClassName,n=e.iconClassName,i=e.titleClassName,a=e.descriptionClassName,s=e.footerClassName,l=e.children,c=e.kind,p=e.icon,v=e.title,g=e.description,y=e.footer,b=u()(e,["contentClassName","iconClassName","titleClassName","descriptionClassName","footerClassName","children","kind","icon","title","description","footer"]);return d.a.createElement(f.a,r()({className:m.a.emptyPage},b),o()("div",{className:t},void 0,!!p&&o()(h.a,{name:p,className:(m.a[c]||"")+" "+(n||"")
}),!!v&&o()("div",{className:i},void 0,v),!!g&&o()("div",{className:a},void 0,g),l),!!y&&o()("div",{className:s},void 0,y))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(20),h=n(27),f=n(67),v=n(2832),m=n.n(v);i.defaultProps={contentClassName:m.a.content,iconClassName:m.a.icon,titleClassName:m.a.title,descriptionClassName:m.a.description,footerClassName:m.a.footer,kind:p.b.DEFAULT},t.a=i},function(e,t,n){"use strict";function i(e){return o.a.createElement(l.a,r()({
iconClassName:c.a.icon,icon:"plex-icon-alert-560"},e))}var a=n(6),r=n.n(a),s=n(0),o=n.n(s),l=n(159),u=n(2833),c=n.n(u);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.children,i=e.serverEntityID,a=e.providerEntityID,s=e.metadataItemEntityID,l=e.showPoster,u=e.posterType,m=e.attribution,g=e.metadataKey,y=e.type,b=e.thumb,S=e.art,I=e.pageWidth,M=e.pageHeight,C=e.scrollTop,w=e.posterWidth,D=e.posterTop,P=!!S,T=D,x=void 0;if(P){x=Math.min(Math.round(I/c.d),M-v)
;var E=n.i(c.a)(w,y,o.a),N=D+x-C,L=M+f-E;T=Math.min(Math.max(N,D),L)}return r()("div",{},void 0,P&&r()(d.a,{serverEntityID:i,width:I,height:x,url:S}),m&&r()(m,{pageHeight:M,posterTop:D}),l&&r()(p.a,{serverEntityID:i,providerEntityID:a,metadataItemEntityID:s,metadataKey:g,type:y,posterType:u,pageHeight:M,posterWidth:w,posterTop:T,posterUrl:b}),l?r()(h.a,{posterWidth:w},void 0,t):r()("div",{},void 0,t))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),
n(32)),l=n(57),u=n.n(l),c=n(132),d=n(2285),p=n(2290),h=n(2288),f=parseInt(u.a.pageHeaderHeight,10),v=246;i.defaultProps={showPoster:!0},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children,i=n.split("\n");return r()(o.a,{className:t},void 0,i.length>1?i.map(function(e,t){return r()("p",{},t,e)}):n)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2023)),l=n(2868),u=n.n(l);i.defaultProps={className:u.a.summary,children:""},t.a=i},function(e,t){
var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},,function(e,t){function n(e,t,n){return e!==t?n.fn(this):n.inverse(this)}e.exports=n},function(e,t,n){"use strict";function i(e,t){return e.get("ui").get(t+"Player")}function a(e,t){var n=e.get("playQueue");if(n){var i=n.get("playQueueItems");if(!(t<0||t>=i.length)){return i.at(t)}}}t.a=i,t.b=a},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(14),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(91),m=n(2722),g=n.n(m),y=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o];return n=i=c()(this,e.call.apply(e,[this].concat(s))),i.onChange=function(e){i.props.onChange(e.target.value)},i.onRef=function(e){i.inputElement=e},a=n,c()(i,a)}return p()(t,e),t.prototype.componentDidMount=function(){
if(this.props.focusOnMount&&(this.inputElement.focus(),this.props.selectTextOnFocus)){var e=this.inputElement.value,t=e?e.length:0;this.inputElement.selectionStart=0,this.inputElement.selectionEnd=t}},t.prototype.render=function(){var e=this.props,t=e.className,n=e.errorClassName,i=e.disabledClassName,r=e.isDisabled,o=(e.initialValue,e.value),l=e.size,u=e.type,c=e.name,d=e.placeholder,p=e.hasError,h=(e.errors,e.validations,e.focusOnMount),v=(e.selectTextOnFocus,
s()(e,["className","errorClassName","disabledClassName","isDisabled","initialValue","value","size","type","name","placeholder","hasError","errors","validations","focusOnMount","selectTextOnFocus"]));return f.a.createElement("input",a()({},v,{id:c,name:c,type:u,disabled:r,value:o,placeholder:d,className:(t||"")+" "+(g.a[l]||"")+" "+(r&&i||"")+" "+(p&&n||""),ref:h?this.onRef:null,onChange:this.onChange}))},t}(h.Component);y.defaultProps={className:g.a.input,errorClassName:g.a.hasError,
disabledClassName:g.a.isDisabled,isDisabled:!1,size:v.LARGE,type:"text",hasError:!1,focusOnMount:!1,selectTextOnFocus:!1},t.a=y},function(e,t,n){"use strict";function i(e){var t=e.children,n=o()(e,["children"]);return u.a.createElement("div",r()({className:d.a.pageHeader},n),t)}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(2817),d=n.n(c);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children;return r()("div",{className:t},void 0,n)}
var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2822)),l=n.n(o);i.defaultProps={className:l.a.pageHeaderLeft},t.a=i},function(e,t,n){"use strict";function i(e){return o.a.createElement(u.a,r()({className:d.a.innerEmptyPage,contentClassName:d.a.innerEmptyPageContent,scrollDirection:l.a.NONE},e))}var a=n(6),r=n.n(a),s=n(0),o=n.n(s),l=n(20),u=n(159),c=n(1099),d=n.n(c);t.a=i},function(e,t,n){"use strict";var i=n(11),a=n(5),r=(n.n(a),n(405)),s=n(86),o=n(2511),l=n.i(a.createStructuredSelector)({
primaryServerEntityID:function(e){return e.primaryServer},serverEntityIDs:function(e){return e.servers},canProvisionPersonalCloudServer:r.a}),u={onServerMenuOpen:s.g},c=n.i(i.b)(l,u)(o.a);t.a=c},function(e,t,n){"use strict";function i(e){return r()(l.a,{},void 0,o.a.createElement(u.a,e))}var a=n(2),r=n.n(a),s=n(0),o=n.n(s),l=n(1043),u=n(1042);t.a=i},function(e,t,n){"use strict";function i(e,t){if("mixed"===e)return[];switch(t){case s.a:switch(e){case"season":return[l.a,m.a];case"episode":
return[l.a,b.a];case"album":return[l.a,p.a];case"actor":return[D.a,P.a]}break;case s.b:switch(e){case"movie":return[l.a,S.a,p.a];case"clip":return[l.a,S.a];case"episode":return[c.a,S.a,y.a]}break;case s.f:switch(e){case"artist":return[l.a,f.a];case"photo":return[o.a,I.a];case"photoalbum":return[l.a,I.a];case"clip":return[l.a,I.a];case"playlist":return[l.a,h.a];case"actor":return[E.a];case"genre":return[E.a];case"director":return[E.a];case"autotag":return[E.a];case"place":return[E.a]
;case"collection":return[E.a]}break;case s.d:case s.c:case s.g:switch(e){case"episode":return[c.a,y.a];case"clip":return[l.a,I.a];case"track":return[l.a,d.a]}}switch(e){case"movie":return[l.a,p.a];case"show":return[l.a,v.a];case"season":return[u.a,l.a];case"episode":return[c.a,l.a,g.a];case"artist":return[l.a];case"album":return[u.a,l.a];case"track":return[c.a,l.a];case"photo":return[o.a];case"photoalbum":return[l.a];case"clip":return[l.a];case"extra":return[o.a,w.a];case"musicVideo":
return[c.a,o.a];case"playlist":return[l.a,h.a]}return[o.a]}function a(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=a.activeSort,l=a.isSearch,u=a.isSearchAll,c=a.providerEntityID,d=i(e,t);if(l&&(d.push(T.a),u&&d.push(x.a)),r.a.EPG_IDENTIFIER.test(c)&&("movie"===e||"episode"===e||"mixed"===e))switch(t){case s.d:case s.c:d.push(C.a);break;default:d.push(M.a)}if(o){var p=n.i(N.a)(o);p&&d.push(p)}return d}
var r=n(72),s=n(32),o=n(623),l=n(631),u=n(372),c=n(250),d=n(634),p=n(453),h=n(977),f=n(974),v=n(633),m=n(628),g=n(984),y=n(304),b=n(2160),S=n(979),I=n(625),M=n(973),C=n(2156),w=n(2162),D=n(2138),P=n(2139),T=n(1040),x=n(2506),E=n(1041),N=n(2558);t.a=a},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),a=n.n(i),r=n(15),s=n(82),o=n(19),l=n(539),u=n(282),c=n(52),d=n(22),p=n(746),h=d.a.extend({name:"HubCollection",
context:["server","section","hubKey","hubCount","count","includeEmpty","libraryHubsOnly","includeFeaturedTags","includeLibraryPlaylists","excludes","excludeFields","excludeElements","allowSync","maxLength"],responseContext:["allowSync"],model:p.a,cache:new l.a,url:function(){var e="/hubs";this.hubKey?e=this.hubKey:this.section&&(e="/hubs/sections/"+encodeURIComponent(this.section.id));var t={excludeFields:this.excludeFields||"summary"}
;return this.excludeElements&&(t.excludeElements=this.excludeElements),this.count&&(t.count=this.count),this.hubCount&&(t.hubCount=this.hubCount),this.includeEmpty&&(t.includeEmpty=1),this.libraryHubsOnly&&(t.libraryHubsOnly=1),this.includeFeaturedTags&&(t.includeFeaturedTags=1),this.includeLibraryPlaylists&&(t.includeLibraryPlaylists=1),this.excludes&&this.excludes.length&&this.excludes.forEach(function(e){t["exclude"+n.i(u.a)(e)]=1}),o.join(e,t)},initialize:function(){
this.section&&this.listenTo(r.a,"clear:sections:hubs",this.clear)},fetch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.a.clone(e);return e.onlyTransient&&this.populatePromise&&(t.remove=!1,t.url=o.join(a.a.result(this,"url"),{onlyTransient:1})),d.a.prototype.fetch.call(this,t)},augmentResponseText:function(e,t){return t===c.a.xml?n.i(s.a)(e):e},augmentResponse:function(e){var t=this,n=this.model.prototype.rootPropertyName;if(e&&n){if(a.a.isArray(e)){var i;i={},
i[n]=e,e=i}else if(e[n]&&!a.a.isArray(e[n])){var r;r={},r[n]=[e[n]],e=r}var s=e[n],o=s&&s.length;if(o){if(!this.includeEmpty)for(;o&&o--;)s[o].size<=0&&s.splice(o,1);this.maxLength&&s.splice(this.maxLength),e.size>s.length&&(e.size=String(s.length))}}return this.responseContext.forEach(function(n){var i=e[n];void 0!==i&&t.setContext(n,i)}),e}});t.default=h},function(e,t,n){"use strict";var i=n(540),a=n(36);n.d(t,"c",function(){return s}),n.d(t,"a",function(){return o}),n.d(t,"b",function(){
return l});var r,s="ui/showAlert",o=n.i(a.a)(s,function(e){return"string"==typeof e?{type:i.a,message:e}:e}),l=(r={},r[s]=function(e,t){},r)},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(function(e,t){return t.selectedDirectory},function(e){if(e){var t=e.key;return"/"===t.charAt(0)?t:"/library/sections/"+t}})}var a=n(5);n.n(a);t.a=i},function(e,t,n){"use strict";var i=n(5),a=(n.n(i),n(150)),r=n.i(i.createSelector)(a.a,function(e){return e.servers});t.a=r
},function(e,t,n){"use strict";var i=n(5),a=(n.n(i),n(151)),r=n.i(i.createSelector)(function(){return n.i(i.createSelector)(a.a,function(e){return e.features})}(),function(e){return e.reduce(function(e,t){return e[t.uuid]=!0,e},{})});t.a=r},function(e,t,n){"use strict";function i(e,t){var n=r.a.invert(e);return r.a.reduce(e,function(e,i){return e[i]=t[n[i]],e},{})}var a=n(3),r=n.n(a),s=n(59),o={playing:"playing",paused:"paused",stopped:"paused",error:"paused",buffering:"playing"},l=s.a.extend({
types:{VIDEO:"video",MUSIC:"music",PHOTO:"photo"},elements:{VIDEO:"video",MUSIC:"audio",PHOTO:"photo"},streams:{VIDEO:"video",MUSIC:"audio",PHOTO:"photo"},states:{STOPPED:"stopped",PAUSED:"paused",PLAYING:"playing",BUFFERING:"buffering",ERROR:"error"},slideshowStates:{PLAYING:"playing",PAUSED:"paused"},castStates:{ERROR:"IDLE",STOPPED:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING",BUFFERING:"BUFFERING"},mediaStates:{LOADING:"LOADING",BUFFERING:"BUFFERING",READY:"READY",ERROR:"ERROR"},
initialize:function(){this.typeByElement=i(this.elements,this.types),this.elementByType=i(this.types,this.elements),this.typeByStream=i(this.streams,this.types),this.streamByType=i(this.types,this.streams),this.statebyCastState=i(this.castStates,this.states),this.castStateByState=i(this.states,this.castStates)},getTypeByElement:function(e){return this.typeByElement[e]},getElementByType:function(e){return this.elementByType[e]},getTypeByStream:function(e){return this.typeByStream[e]},
getStreamByType:function(e){return this.streamByType[e]},getStateByCastState:function(e){return this.statebyCastState[e]},getCastStateByState:function(e){return this.castStateByState[e]},getSlideshowStateByState:function(e){return o[e]}}),u=new l;t.a=u},function(e,t,n){"use strict";var i=n(19),a=n(277),r=n(124),s=r.a.extend({getUrl:function(e){if(e){var t=n.i(a.a)();return i.join(e,{size:Math.round(this.width*t)})}return e}});t.a=s},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(6),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(3),f=n.n(h),v=n(0),m=(n.n(v),n(352)),g=n(870),y=(n(580),n(1527)),b=function(e){function t(i,a){l()(this,t);var r=c()(this,e.call(this,i,a));return r.state=r._getListState(i),r._keyPool=n.i(y.a)("cell"),r._shouldRequestPage=!1,r}return p()(t,e),t.prototype.componentWillMount=function(){this.props.onListUpdate&&this.props.onListUpdate(this.state)},t.prototype.componentDidMount=function(){
this._checkForPageRequest()},t.prototype.componentWillReceiveProps=function(e){var t=this._getListState(e);n.i(m.a)(this.state,t)||this.setState(t)},t.prototype.shouldComponentUpdate=function(e,t){var n=this.props,i=this.state
;return e.items!==n.items||e.size!==n.size||(e.viewportWidth!==n.viewportWidth||e.viewportHeight!==n.viewportHeight||(e.listTop!==n.listTop||e.listLeft!==n.listLeft||(e.isScrolling!==n.isScrolling||(e.skipRenderCells!==n.skipRenderCells||(e.layout!==n.layout||(t.visibleStartIndex!==i.visibleStartIndex||(t.visibleEndIndex!==i.visibleEndIndex||(t.partiallyVisibleStartIndex!==i.partiallyVisibleStartIndex||(t.partiallyVisibleEndIndex!==i.partiallyVisibleEndIndex||(t.renderStartIndex!==i.renderStartIndex||(t.renderEndIndex!==i.renderEndIndex||t.moveIndex!==i.moveIndex)))))))))))
},t.prototype.componentWillUpdate=function(e,t){this.props.onListUpdate&&t!==this.state&&this.props.onListUpdate(t)},t.prototype.componentDidUpdate=function(){this._checkForPageRequest()},t.prototype._getListState=function(e){var t=this._getListStyle(e),n=e.layout.getLandmarks&&e.layout.getLandmarks(),i=e.layout.getRangesForPosition(e.scrollTop,e.scrollLeft,e.size);return{listStyle:t,landmarks:n,visibleStartIndex:i.visibleStartIndex,visibleEndIndex:i.visibleEndIndex,
partiallyVisibleStartIndex:i.partiallyVisibleStartIndex,partiallyVisibleEndIndex:i.partiallyVisibleEndIndex,renderStartIndex:i.renderStartIndex,renderEndIndex:i.renderEndIndex,moveIndex:e.moveIndex}},t.prototype._getListStyle=function(e){var t=e.items,n=e.size,i=e.layout,a=e.viewportWidth,r=e.viewportHeight,s=e.listTop,o=e.listLeft,l={viewportWidth:a,viewportHeight:r,listTop:s,listLeft:o};return i.getListStyle(l,n,t)},t.prototype._checkForPageRequest=function(){var e=this.state
;this._shouldRequestPage&&(this._shouldRequestPage=!1,this.props.onPageRequest({startIndex:e.renderStartIndex,endIndex:e.renderEndIndex}))},t.prototype.renderCells=function(){
var e=this.props,t=e.keyPropName,n=e.items,i=e.itemsOffset,a=e.size,r=e.layout,o=e.hasNestedList,l=e.viewportWidth,u=e.viewportHeight,c=e.scrollLeft,d=e.scrollTop,p=e.cellRenderer,h=e.isScrolling,v=e.onPageRequest,m=this.state,g=m.renderStartIndex,y=m.renderEndIndex,b=m.partiallyVisibleStartIndex,S=m.partiallyVisibleEndIndex,I=a>n.length&&y===n.length-1,M=this._keyPool.getKeys(g,y,n,i,t),C=[];return f.a.each(M,function(e,i){var v=e.index,m=e.item,g=v>=b&&v<=S,y=r.getPositionForIndex(v,a,n)
;(null===m||o)&&(I=!0);var M={key:i,keyPropName:t,isVisible:g,isScrolling:h,viewportWidth:l,viewportHeight:u,cellIndex:v,cellX:y.cellX,cellY:y.cellY,cellWidth:y.cellWidth,cellHeight:y.cellHeight};o&&(M.scrollLeft=c,M.scrollTop=d),f.a.isString(m)?M[t]=m:M=s()({},m,M),C.push(p(M))}),this._shouldRequestPage=!!v&&(I&&!h),C},t.prototype.render=function(){var e=this._getListStyle(this.props);return a()("div",{className:(this.props.className||"")+" "+(this.props.isScrolling&&g.a||""),style:e
},void 0,!this.props.skipRenderCells&&this.renderCells())},t}(v.Component);b.defaultProps={keyPropName:"entityID",items:[],itemsOffset:0,hasNestedList:!1,listTop:0,listLeft:0,isScrolling:!1,skipRenderCells:!1},t.a=b},function(e,t,n){"use strict";function i(e){var t=e.identifiers;for(var n in t)if(t[n]!==e[n])return!1;return!0}function a(e,t,a,r){var o=n.i(b.a)(t,function(e){return{identifiers:e}}),u=function(t){function o(e,n){c()(this,o);var i=p()(this,t.call(this,e,n))
;return i.onRepopulate=function(){i._repopulate()},i._isPopulated=!1,i._component=null,i}return f()(o,t),o.prototype.componentDidMount=function(){this._populate()},o.prototype.componentDidUpdate=function(){this._isPopulated||this._populate()},o.prototype._populate=function(){var e=this.props,t=(e.identifiers,e.dispatch),i=l()(e,["identifiers","dispatch"]);n.i(y.a)(function(){a(t,i)})},o.prototype._repopulate=function(){if(!r)return this._populate();var e=this.props,t=(e.identifiers,
e.dispatch),n=l()(e,["identifiers","dispatch"]);r(t,n)},o.prototype.render=function(){if(this._isPopulated=i(this.props),this._isPopulated){var t=this.props,n=(t.identifiers,t.dispatch,l()(t,["identifiers","dispatch"]));this._component=m.a.createElement(e,s()({onRepopulate:this.onRepopulate},n))}return this._component},o}(v.Component);return u.displayName="Populatable("+n.i(S.a)(e)+")",u.WrappedComponent=e,n.i(g.b)(function(e){return o})(u)}
var r=n(6),s=n.n(r),o=n(14),l=n.n(o),u=n(7),c=n.n(u),d=n(9),p=n.n(d),h=n(8),f=n.n(h),v=n(0),m=n.n(v),g=n(11),y=(n(344),n(31),n(35)),b=n(228),S=n(211);t.a=a},function(e,t,n){"use strict";function i(e,t){var i=n.i(g.a)(t);return e.get("ui").get(i+"Player")}function a(e,t){var i=e.appModel,a=e.serverModel,r=e.providerModel,o=e.playerModel,l=e.playQueueType,u=e.containerKey,c=e.openState,d=e.mediaIndex,h=e.bitrate,f=e.initialState;if(!o.get("isPlayQueueLoading")){o.restoreDefaults({
serverEntityID:a.entityID(),providerEntityID:r.entityID(),isOpen:!0,openState:c||l===v.b?w.b:w.a,isPlayQueueLoading:!0});var m=n.i(P.a)({providerModel:r,playQueueType:l,playQueueOwn:!1});m.url=u,n.i(T.a)(m).done(function(e){o.set(s()({isPlayQueueLoading:!1,playQueue:e},f)),t(j({playQueueType:l,mediaIndex:d,bitrate:h}))}).fail(function(){var e=i.get("remotePlayer");if(e){var t=e.get("friendlyName");o.restoreDefaults({hasError:!0,
errorMessage:n.i(p.default)('An error occurred loading the media being played on "{playerName}".',{playerName:t})})}})}}var r=n(6),s=n.n(r),o=n(3),l=n.n(o),u=n(10),c=n.n(u),d=n(13),p=n(4),h=n(29),f=n(19),v=n(232),m=n(541),g=n(81),y=n(30),b=n(66),S=n(90),I=n(98),M=n(113),C=n(391),w=n(137),D=n(36),P=n(771),T=n(338),x=n(337),E=n(72),N=n(398);n.d(t,"l",function(){return A}),n.d(t,"g",function(){return k}),n.d(t,"h",function(){return _}),n.d(t,"i",function(){return O}),n.d(t,"n",function(){return j
}),n.d(t,"j",function(){return R}),n.d(t,"k",function(){return U}),n.d(t,"m",function(){return z}),n.d(t,"a",function(){return B}),n.d(t,"b",function(){return F}),n.d(t,"f",function(){return V}),n.d(t,"c",function(){return Q}),n.d(t,"e",function(){return H}),n.d(t,"d",function(){return W}),n.d(t,"o",function(){return Y})
;var L,A=n.i(D.a)("ui/player/remotePlayer/changeRemotePlayer"),k=n.i(D.a)("ui/player/remotePlayer/syncRemotePlayerCurrentItem"),_=n.i(D.a)("ui/player/remotePlayer/syncRemotePlayerState"),O=n.i(D.a)("ui/player/remotePlayer/syncRemotePlayQueueState"),j=n.i(D.a)("ui/player/remotePlayer/syncRemoteQuality"),R=n.i(D.a)("ui/player/remotePlayer/syncRemoteStreams"),U=n.i(D.a)("ui/player/remotePlayer/changeRemotePlayerVolume"),z=n.i(D.a)("ui/player/remotePlayer/showRemotePlayerError"),B=n.i(D.a)("ui/player/remotePlayer/mirrorDetails"),F=n.i(D.a)("ui/player/remotePlayer/discoverRemotePlayers"),V=n.i(D.a)("ui/player/remotePlayer/idleRemotePlayer"),Q=n.i(D.a)("ui/player/remotePlayer/removeRemotePlayer"),H=n.i(D.a)("ui/player/remotePlayer/confirmRemoteToLocal"),W=n.i(D.a)("ui/player/remotePlayer/confirmLocalToRemote"),Y=(L={},
L["ui/player/remotePlayer/changeRemotePlayer"]=function(e,t){var n=e.get("players").get(t);e.set("remotePlayer",n)},L["ui/player/remotePlayer/syncRemotePlayerCurrentItem"]=function(e,t,r){var s=t.playQueueType,o=t.options,u=o.machineIdentifier,d=o.providerIdentifier,v=o.containerKey,m=o.key,g=o.mediaIndex,y=o.bitrate,b=o.playQueueItemID,S=o.initialState;if(v&&m){var I=i(e,s);if(I){var M="node"===u?"myPlex":u,C=void 0,D=void 0;e.get("servers").populateServer(M).then(function(e){C=e
;var t=e.get("desktop").get("providers");if(t)return t.populate()}).then(function(t){var i=f.join(v,{own:void 0},{parseParams:!0}),o=I.get("playQueue");if(t&&(D=t.get(d)),D||(D=t&&v.indexOf("playQueues")>-1?t.get(E.a.LIBRARY_PROVIDER_IDENTIFIER):e.get("legacyChannelProvider")),!D)return c.a.Deferred().reject().promise();if(!I.get("isOpen"))return void a({appModel:e,serverModel:C,providerModel:D,playerModel:I,playQueueType:s,containerKey:i,openState:w.b,mediaIndex:g,bitrate:y,initialState:S},r)
;var u=i.split("?")[0];if((o&&l.a.result(o,"url").split("?")[0])!==u)return void a({appModel:e,serverModel:C,providerModel:D,playerModel:I,playQueueType:s,containerKey:i,mediaIndex:g,bitrate:y,initialState:S},r);if(!o.get("isUpdatePending")){var p=o.get("playQueueItems"),M=o.get("playQueueSelectedItemID"),P=p.get(M),x=P.get("metadataItem");if(m!==x.get("key")){var N=null!=b?p.get(b):p.find(function(e){return m===e.get("metadataItem").get("key")});if(N){
var L=o.get("playQueueSelectedItemOffset"),A=p.indexOf(P),k=p.indexOf(N),_=N.get("metadataItem"),O=N.get("playQueueItemID");n.i(h.a)("[Cast] The current metadata item on the remote player changed to "+_.get("title")),n.i(T.a)(o).done(function(){o.set({playQueueSelectedItemID:O,playQueueSelectedItemOffset:L+(k-A)})})}else n.i(T.a)(o)}}}).fail(function(){var t=e.get("remotePlayer");if(t){var i=t.get("friendlyName");I.restoreDefaults({hasError:!0,
errorMessage:n.i(p.default)('"{playerName}" is playing media from an unknown source.',{playerName:i})})}})}}},L["ui/player/remotePlayer/syncRemotePlayerState"]=function(e,t){var n=t.playQueueType,a=t.playerState,r=i(e,n);r&&r.set(a)},L["ui/player/remotePlayer/syncRemotePlayQueueState"]=function(e,t){var n=t.playQueueType,a=t.playQueueVersion,r=t.repeatAll,s=t.repeatOne,o=i(e,n);if(o){var l=o.get("playQueue");if(o.set({repeatAll:r,repeatOne:s}),l){var u=l.get("playQueueVersion")
;l.set("repeat",r),!l.get("isUpdatePending")&&u<a&&l.fetch()}}},L["ui/player/remotePlayer/syncRemoteQuality"]=function(e,t){var a=t.playQueueType,r=t.mediaIndex,s=void 0===r?0:r,o=t.bitrate,l=i(e,a);if(l){var u=l.get("playQueue");if(u){var c=u.get("playQueueItems"),d=c.get(u.get("playQueueSelectedItemID")),p=d.get("metadataItem"),h=n.i(y.b)(d.get("type"));if(h&&h.mediaType===b.a){var f=p.get("Media")[s],v=C.a.prop("video"),m=M.a.getAvailableQualitiesFor(f,p.server,{
lowestQualityIndex:v.lowestQualityIndex}),g=null==o?l.get("qualityIndex"):M.a.getNearestIndexToBitrate(o),S=void 0,I=void 0;m.length&&(S=m[0],I=m[m.length-1]),S&&g<S.index?g=S.index:I&&g>I.index&&(g=-1),l.set({qualityIndex:g,availableQualities:m})}}}},L["ui/player/remotePlayer/syncRemoteStreams"]=function(e,t,a){var r=t.playQueueType,s=t.mediaIndex,o=void 0===s?0:s,u=t.partIndex,c=void 0===u?0:u,d=t.audioStreamID,p=t.subtitleStreamID,h=i(e,r);if(h){var f=h.get("playQueue");if(f){
var v=f.get("playQueueItems"),m=v.get(f.get("playQueueSelectedItemID")),g=m.get("metadataItem"),y=g.get("Media")[o],b=y&&y.Part[c];if(b){var I=l.a.findWhere(b.Stream,{streamType:S.a.get("audio").id,selected:!0}),M=l.a.findWhere(b.Stream,{streamType:S.a.get("subtitles").id,selected:!0}),C=parseInt(d,10),w=parseInt(p,10);null!=d&&I&&I.id!==C&&a(n.i(N.b)({metadataItemEntityID:g.entityID(),streamTypeString:"audio",streamID:C})),null!=p&&M&&M.id!==w&&a(n.i(N.b)({metadataItemEntityID:g.entityID(),
streamTypeString:"subtitles",streamID:w}))}}}},L["ui/player/remotePlayer/changeRemotePlayerVolume"]=function(e,t){e.get("remotePlayer").set("volume",t)},L["ui/player/remotePlayer/showRemotePlayerError"]=function(e,t){var n=t.playQueueType,a=t.errorMessage,r=i(e,n);r&&r.restoreDefaults({hasError:!0,errorMessage:a})},L["ui/player/remotePlayer/mirrorDetails"]=function(e,t){var i=n.i(x.a)(e),a=n.i(I.b)(e,t);i.mirrorDetails(a)},L["ui/player/remotePlayer/discoverRemotePlayers"]=function(e){
var t=e.get("players");t.server&&t.fetch()},L["ui/player/remotePlayer/idleRemotePlayer"]=function(e,t){i(e,t.playQueueType).restoreDefaults()},L["ui/player/remotePlayer/removeRemotePlayer"]=function(e){var t=e.get("remotePlayer");if(t){var i=e.get("ui"),a=i.get("audioVideoPlayer"),r=i.get("photoPlayer");a.get("isOpen")&&a.set({confirmRemoteToLocal:!0,controllable:null}),r.get("isOpen")&&r.set({confirmRemoteToLocal:!0,controllable:null});var s=t.get("protocol")
;s===m.a?n.i(d.a)("remoteCastPlayerManager").endSession():s===m.b&&n.i(d.a)("remotePlexPlayerManager").endSession(),e.unset("remotePlayer")}},L["ui/player/remotePlayer/confirmRemoteToLocal"]=function(e,t){var i=t.playerType,a=e.get("ui").get(i+"Player"),r=a.get("playQueue"),s=r.get("playQueueItems"),o=r.get("playQueueSelectedItemID"),l=s.get(o),u=l.get("metadataItem");r.set("own",!0),n.i(T.a)(r),a.set({confirmRemoteToLocal:!1,startMetadataItemEntityID:u.entityID(),
startOffsetMilliseconds:1e3*a.get("positionSeconds")})},L["ui/player/remotePlayer/confirmLocalToRemote"]=function(e,t){var i=t.playerType,a=e.get("ui").get(i+"Player");n.i(x.a)(e).startPlayback(a),a.set("confirmLocalToRemote",!1)},L)},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.circleClassName,a=e.iconClassName,s=e.title,l=u()(e,["className","circleClassName","iconClassName","title"]);return d.a.createElement(f.a,r()({className:t,"aria-label":n.i(p.default)("Play {title}",{
title:s})},l),o()("div",{className:i},void 0,o()(h.a,{name:"plex-icon-play-560",className:a})))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(4),h=n(27),f=n(23),v=n(2703),m=n.n(v);i.defaultProps={className:m.a.playButton,circleClassName:m.a.playCircle,iconClassName:m.a.playIcon},t.a=i},function(e,t,n){"use strict";var i=n(14),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=n.n(d),h=n(11),f=n(86),v=n(141),m=n(2189),g={dispatchChangeBackground:v.a,
dispatchResetBackground:v.b,dispatchGarbageCollectEntities:f.b},y=function(e){function t(){return s()(this,t),l()(this,e.apply(this,arguments))}return c()(t,e),t.prototype.componentDidMount=function(){this.props.disableBackgroundPreset||this.props.dispatchChangeBackground({allowLightPreset:this.props.allowBackgroundLightPreset})},t.prototype.componentWillUnmount=function(){this.props.dispatchResetBackground(),this.props.dispatchGarbageCollectEntities()},t.prototype.render=function(){
var e=this.props,t=(e.dispatchChangeBackground,e.dispatchResetBackground,e.dispatchGarbageCollectEntities,a()(e,["dispatchChangeBackground","dispatchResetBackground","dispatchGarbageCollectEntities"]));return p.a.createElement(m.a,t)},t}(d.Component);y.defaultProps={disableBackgroundPreset:!1,allowBackgroundLightPreset:!1},t.a=n.i(h.b)(null,g)(y)},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(2),s=n.n(r),o=n(14),l=n.n(o),u=n(7),c=n.n(u),d=n(9),p=n.n(d),h=n(8),f=n.n(h),v=n(0),m=n.n(v),g=n(20),y=n(23),b=n(245),S=n(2819),I=n.n(S),M=function(e){function t(){return c()(this,t),p()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.render=function(){
var e=this.props,t=e.linkClassName,n=e.buttonClassName,i=e.title,r=e.to,o=e.hasMenu,u=e.isMenuOpen,c=e.isSelected,d=e.isDisabled,p=l()(e,["linkClassName","buttonClassName","title","to","hasMenu","isMenuOpen","isSelected","isDisabled"]);return o||r?o?m.a.createElement(b.a,a()({className:n,isSelected:c,isDisabled:d,direction:u?g.f.UP:g.f.DOWN},p),i):s()(y.a,{className:t,to:r,isDisabled:d},void 0,i):s()("span",{className:t},void 0,i)},t}(v.Component);M.defaultProps={linkClassName:I.a.link,
buttonClassName:I.a.button,hasMenu:!1,isMenuOpen:!1,isSelected:!1,isDisabled:!1},t.a=M},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children;return r()("div",{className:t},void 0,n)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2823)),l=n.n(o);i.defaultProps={className:l.a.pageHeaderRight},t.a=i},function(e,t,n){"use strict";function i(e){return{isWaitingForPrimaryServer:e.isWaitingForPrimaryServer,primaryServerEntityID:e.primaryServer}}
var a=n(7),r=n.n(a),s=n(9),o=n.n(s),l=n(8),u=n.n(l),c=n(0),d=n.n(c),p=n(11),h=n(89),f=n(35),v=n(86),m=n(2190),g=function(e){function t(){return r()(this,t),o()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.componentWillMount=function(){this._populate()},t.prototype.componentWillReceiveProps=function(e){e.machineIdentifier&&e.machineIdentifier!==this.props.machineIdentifier&&this._populate(e)},t.prototype._populate=function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;n.i(f.a)(function(){e.machineIdentifier&&e.changePrimaryServer({machineIdentifier:e.machineIdentifier,metricsProperties:{context:h.c}})})},t.prototype.render=function(){return d.a.createElement(m.a,this.props)},t}(c.Component);t.a=n.i(p.b)(i,{changePrimaryServer:v.c})(g)},function(e,t,n){"use strict";function i(){return n.i(g.createSelector)(function(e,t){return t.providerEntityID},n.i(M.a)(),function(e,t){
var i=t.desktop,a=i.providers,r=i.isProvidersPending,s=i.isProvidersPopulated,o=i.providersError,l=i.libraries,u=i.isLibrariesPending,c=i.isLibrariesPopulated,d=i.librariesError,p=t.isPersonalCloudServer,h=!s&&!o,f=!c&&!d,v=e||n.i(b.a)(y.PROVIDER,I.a.LIBRARY_PROVIDER_IDENTIFIER,t.entityID);return{providerEntityID:v,hasProvider:a.indexOf(v)>-1,isPersonalCloudServer:p,isRetrying:r||u,showSpinner:h||f,showError:!!d&&!l.length}})}
var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(7),u=n.n(l),c=n(9),d=n.n(c),p=n(8),h=n.n(p),f=n(0),v=n.n(f),m=n(11),g=n(5),y=(n.n(g),n(295)),b=n(53),S=n(35),I=n(72),M=n(46),C=n(100),w=n(2192),D={dispatchFetchLibraries:C.b,dispatchPopulateLibraries:C.c,dispatchFetchProviders:C.d,dispatchPopulateProviders:C.e},P=function(e){function t(){var i,a,r;u()(this,t);for(var s=arguments.length,o=Array(s),l=0;l<s;l++)o[l]=arguments[l];return i=a=d()(this,e.call.apply(e,[this].concat(o))),a.onPopulate=function(e){
var t=e.serverEntityID;n.i(S.a)(function(){a.props.dispatchPopulateProviders({serverEntityID:t}),a.props.dispatchPopulateLibraries({serverEntityID:t})})},a.onRepopulate=function(e){var t=e.serverEntityID;n.i(S.a)(function(){a.props.dispatchFetchProviders({serverEntityID:t}),a.props.dispatchFetchLibraries({serverEntityID:t})})},r=i,d()(a,r)}return h()(t,e),t.prototype.componentWillMount=function(){this.onPopulate({serverEntityID:this.props.serverEntityID})},
t.prototype.componentWillReceiveProps=function(e){e.serverEntityID!==this.props.serverEntityID&&this.onRepopulate({serverEntityID:e.serverEntityID})},t.prototype.render=function(){var e=this.props,t=(e.dispatchFetchLibraries,e.dispatchPopulateLibraries,e.dispatchFetchProviders,e.dispatchPopulateProviders,o()(e,["dispatchFetchLibraries","dispatchPopulateLibraries","dispatchFetchProviders","dispatchPopulateProviders"]));return v.a.createElement(w.a,r()({},t,{onRetry:this.onRepopulate}))},t
}(f.Component);t.a=n.i(m.b)(i,D)(P)},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(function(e){return e.ui.prePlayPage},function(e){var t=e.relatedHubs,n=e.isRelatedHubsPending;return{relatedHubEntityIDs:t,showSpinner:!t.length&&n}})}var a=n(11),r=n(5),s=(n.n(r),n(2307));t.a=n.i(a.b)(i)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.className;return r()("div",{className:n},void 0,t)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2884)),l=n.n(o)
;i.defaultProps={className:l.a.secondaryTitle},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children;return r()("div",{className:t},void 0,n)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2886)),l=n.n(o);i.defaultProps={className:l.a.tertiaryTitle},t.a=i},function(e,t,n){function i(e){if(!s(e)||a(e)!=o)return!1;var t=r(e);if(null===t)return!0;var n=d.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==p}
var a=n(484),r=n(3282),s=n(385),o="[object Object]",l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,p=c.call(Object);e.exports=i},,function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(10),s=n.n(r),o=n(59),l=n(71),u=o.a.extend({mixins:l.a,initialize:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interface&&(this.interface=t.interface),t.props&&(this.props=t.props),a.a.each(this.interface,function(t){e[t]=a.a.bind(e._proxy,e,t)})},
_proxy:function(e){for(var t=this.getInstance(),n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return t[e].apply(t,i)},register:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.hasInstance()&&!t.ignorePrevious&&(this._previousInstance=this.getInstance()),this._instance=e,t.silent||this.trigger("change:instance",e)},registerOnce:function(e){if(!this.hasInstance()){var t=e();this.register(t.instance||t,t.options||void 0)}},
restorePrevious:function(){this._previousInstance&&this.register(this._previousInstance)},registered:function(){var e=s.a.Deferred();return this.hasInstance()?e.resolve(this.getInstance()):this.listenToOnce(this,"change:instance",e.resolve),e.promise()},getInstance:function(){if(this.hasInstance())return this._instance;throw new Error("Nothing has been registered to this adapter.")},hasInstance:function(){return null!=this._instance},prop:function(e){
if(a.a.contains(this.props,e))return this.getInstance()[e];throw new Error("The "+e+" property has not been defined for this adapter")}});t.a=u},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(108),s=n(1316),o=r.a.extend({model:s.a,url:"/:/prefs",initialize:function(e,t){this.server.on("socket:setting",function(e){var t=this.get(e.id);t&&(e=t.parse(e),t.set("value",e.value),
"FriendlyName"===e.id&&e.value?this.server.set("friendlyName",e.value):"allowMediaDeletion"===e.id&&this.server.set("allowMediaDeletion",e.value))},this)},parse:function(e){var t=this.convert(e,"Setting");return a.a.filter(t,function(e){return e.id})}});t.a=o},function(e,t,n){"use strict";var i={itemClusters:"1.5.4",optimizeDatabaseActivity:"1.4.2",asyncCheckFiles:"1.4.0",json:"1.3.0",libraryDeleteActivity:"1.2.1",cleanBundlesActivity:"1.2.1",allowBlacklistedMethodHeaders:"1.2.1",
decisionEndpoint:"1.0.3",defaultSections:"0.9.17.3",ownerFeatures:"0.9.17.0",replaceTranscodeTarget:"0.9.17.0",quickSearch:"0.9.16.0",relay:"0.9.15.0",claimServer:"0.9.14.2",searchSpecificType:"0.9.14.2",linkedYearMetadata:"0.9.14.0",streamReady:"0.9.14.0",syncOriginalQuality:"0.9.14.0",allPartsStreamSelection:"0.9.12.5",sharedChannels:"0.9.12.5",shortenTranscodeURL:"0.9.12.5",companionProxy:"0.9.12.5",editSimilarArtists:"0.9.12.2",neuterRedirect:"0.9.12.0",audioAsVideo:"0.9.12.0",
compositeDelete:"0.9.12.0",batchEdit:"0.9.12.0",premiumMusic:"0.9.12.0",transientToken:"0.9.12.0",softSubtitles:"0.9.12.0",sharedSyncStatus:"0.9.11.14",reachability:"0.9.11.14",photoPlayQueues:"0.9.11.12",publicNowPlaying:"0.9.11.3",labels:"0.9.11.2",updater:"0.9.11.1",playItemsBatchAdd:"0.9.9.16",playlists:"0.9.9.13",imageFilters:"0.9.9.13",hubFilterSigns:"0.9.9.12",cancelAllUpdates:"0.9.9.10",playQueues:"0.9.9.6",sectionSettings:"0.9.9.6",hubFilters:"0.9.9.2",streamingMKV:"0.9.9.16",
chunkedHTTP:"0.9.9.3",sharedSync:"0.9.9.3",dash:"0.9.8.6",specificMediaDeletion:"0.9.7.23",sharedSettings:"0.9.7.23",syncNotifications:"0.9.7.23",universalMusicTranscoder:"0.9.8.3",universalTranscoder:"0.9.7.17",sync:"0.9.7.10",artworkUpload:"0.9.7.9",firstRunPref:"0.9.7.3",timelineState:"0.9.7.2",cleanBundles:"0.9.7.0",advancedFilters:"0.9.7.0",search:"0.9.7.0",merge:"0.9.7.0",splitApart:"0.9.7.0"};t.a=i},function(e,t,n){"use strict"
;var i,a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(18),u=n(13),c=n(15),d=n(208),p=n(123),h=n(1486),f=n(76),v=n(736),m=n(225),g=(n(176),!1),y=l.a.Controller.extend({populateView:function(e){e||(e={}),e.showLoading!==!1&&c.a.trigger("show:loading",{navigating:!0}),this.abortPendingPopulate();var t={options:e},n=o.a.Deferred().resolve(t).promise(),a=this.populateUser(n,t);return a=this.populateServer(a,e.serverID,t),e.primaryServer&&(a=this.populatePrimaryServer(a,t)),a=this.populateUserFeatures(a,t),
e.sectionID&&(a=this.populateSection(e,a,t)),e.key&&(a=this.populateMetadata(e,a,t)),e.channelID&&(a=this.populateChannel(e,a,t)),e.channelKey&&(a=this.populateChannelMetadata(e,a,t)),a=a.then(function(){return o.a.Deferred().resolve(t).promise()},function(e){return g?g=!1:c.a.trigger("navigate","unauthorized",{result:t,silent:!0}),o.a.Deferred().reject(t).promise()}),i=a,a},abortPendingPopulate:function(){i&&"pending"===i.state()&&(g=!0),d.a.abortAll("page")},populateUser:function(e,t){
var n=u.a("appModel"),i=n.get("user"),a=i.get("lockState")===m.a.lockStates.PENDING?i.server.populate():o.a.Deferred().resolve().promise(),r=function(){return i.get("isLocked")?o.a.Deferred().reject(t).promise():o.a.Deferred().resolve(t).promise()};return a.then(r,r)},populateUserFeatures:function(e,t){var i=u.a("appModel"),a=i.get("user");return e.then(function(){return n.i(p.a)(a.get("features").populate())},function(){return n.i(h.a)(a.get("features").populate())})},
populateServer:function(e,t,n){var i=u.a("appModel");return e=e.then(function(){var e=i.get("servers"),a=void 0;if(!t)return e.populateAnyServer();if(/^transient/.test(t)){var r=i.get("transientServer");if(!r||r.id!==t)return c.a.trigger("navigate:refresh:dashboard"),o.a.Deferred().reject().promise();a=o.a.Deferred().resolve(r).promise()}else a=e.populateServer(t);return a.done(function(e){n.server=e}),a.fail(function(){n.server=e.get(t)}),a})},populatePrimaryServer:function(e,t){
var n=u.a("appModel");return e=e.then(function(){function e(r,s){s||(n.off("change:isWaitingForPrimaryServer",e),a=n.get("primaryServer"),a?(t.server=a,a.populate().done(i.resolve).fail(i.reject)):i.reject())}var i=o.a.Deferred(),a=n.get("primaryServer");return a?(t.server=a,i.resolve().promise()):n.get("isWaitingForPrimaryServer")?(n.on("change:isWaitingForPrimaryServer",e),i.promise()):i.reject().promise()})},populateSection:function(e,t,n){return t=t.then(function(){
var e=n.server.get("sections");return e.find(function(e){return e.isNew()})?e.fetch():e.populate()}),t=t.then(function(t){var i=n.item,a=e.sectionID;if(i&&(!(a=i.get("librarySectionID"))||!n.server.get("isFullServer")))return o.a.Deferred().resolve();var r=t.get(a);return r?(n.section=r,i&&i.setContext("section",r),o.a.Deferred().resolve(r)):o.a.Deferred().reject()})},populateMetadata:function(e,t,n){return t=t.then(function(){var t=new f.a({key:e.key},{server:n.server,
relatedOptions:e.relatedOptions});return n.item=t,t.fetch({scope:"page",data:r.a.extend({checkFiles:"1",includeExtras:"1",includeRelated:"1",includeRelatedCount:"0",includeOnDeck:"1",includeChapters:"1"},e.populateData)})}),t=this.populateSection(e,t,n)},populateChannel:function(e,t,n){return t=t.then(function(){var t=e.channelID,i={};/^\/\w+\//.test(t)?i.key=t:i.identifier=t;var a=new v.a(i,{server:n.server});return n.channel=a,a.fetch({scope:"page"})})},populateChannelMetadata:function(e,t,n){
return t=t.then(function(){var t=new v.a({key:e.channelKey},{server:n.server,channel:n.channel});return n.channelItem=t,t.fetch({scope:"page"})})}});t.a=y},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(55),s=n(18),o=n(13),l=n(15),u=s.a.AppRouter.extend({initialize:function(){this.uniqueRoutes=a.a.uniq(a.a.values(this.appRoutes)),this.fragments=a.a.invert(this.appRoutes),this.listenTo(this,"route",this.onRoute),this.listenTo(l.a,"navigate",this.onNavigate)},
resolveUrlFragment:function(e,t){var n=e.match(/:\w+/g);return n&&a.a.each(n,function(n){var i=n.slice(1),a=t[i];if(null==a){var r=new RegExp("\\([^\\)]*"+n+"[^\\)]*\\)","g");e=e.replace(r,"")}else e=e.replace(n,encodeURIComponent(a))}),e.replace(/\(|\)/g,"")},onRoute:function(e){var t=o.a("appModel"),n=t.get("history"),i=t.get("forwardHistory"),s=r.a.history.getFragment();s===i[0]?n.push(i.shift()):s!==a.a.last(n)&&(n.push(s),i.splice(0)),t.trigger("change:history",t,n)},
onNavigate:function(e,t){if(a.a.indexOf(this.uniqueRoutes,e)!==-1){t||(t={});var n=!1;if(null!=t.silent&&(n=t.silent,delete t.silent),null==t.trigger&&(t.trigger=!0),n)this.controller[e].apply(this.controller,a.a.values(t));else{var i=this.resolveUrlFragment(this.fragments[e],t);this.navigate(i,{trigger:t.trigger,replace:t.replace})}}}});t.a=u},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(538),s=r.a.extend({maxCycles:5,maxSize:100,getItemCacheKey:function(e,t){
if(a.a.isFunction(e.cacheKey))return t||(t=e.toJSON()),e.cacheKey(t)}});t.a=s},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(19),s=n(55),o=n(279),l=n(239),u=n(30),c=n(853),d=n(746),p={uri:function(e,t){var n=t&&t.items;if(n&&n.length){if(n.length>1)return this.getBatchLibraryMetadataURI(n,t);e||(e=a.a.first(n))}if(e instanceof s.a.Model){if(e.get("isSection"))return this.getSectionURI(e,t);if(e.get("isMetadataList"))return this.getMetadataListURI(e,t)
;if(e.get("isPlaylist"))return this.getPlaylistURI(e,t);if(e.channel)return this.getChannelURI(e,t)}return this.getLibraryMetadataURI(e,t)},getSectionURI:function(e,t){var i,s=a.a.result(e,"url"),o=e.get("currentSubset"),l=e.get("currentFolderKey"),c=e.get("currentType");if("folder"===o.id)i=l?l:r.join([s,"all"]);else{var d=e.get("items"),p=d.getParams();if(p.type&&delete p.type,p.timelineState&&delete p.timelineState,p.unwatchedLeaves){p[n.i(u.n)(e.get("type")).typeString+".unwatched"]=1,
delete p.unwatchedLeaves}c&&(p.sourceType=c.id),i=r.join([s,o.id],p),i=d.replaceSpecialFilterOperators(i)}return this._resolveURI({prefix:"library",parts:[e.get("uuid"),"directory",i]})},getBatchLibraryMetadataURI:function(e,t){var n=this._getSectionInfo(a.a.first(e)),i=a.a.map(e,function(e){return e.get("ratingKey")}),r="/library/metadata/"+i.join(",");return this._resolveURI({prefix:"library",parts:[n.sectionUUID,"directory",r]})},getLibraryMetadataURI:function(e,t){t||(t={})
;var n,i=this._getSectionInfo(e),s=a.a.result(e,"url");return t.excludeSeedItem&&(s=r.join(s,{excludeSeedItem:1})),n=e.models||e.collectionName||e instanceof d.a?"directory":"item",this._resolveURI({prefix:"library",parts:[i.sectionUUID,n,s]})},getMetadataListURI:function(e,t){t||(t={});var n=this._getSectionInfo(e);return this._resolveURI({prefix:"library",parts:[n.sectionUUID,"directory",r.join(e.get("containerKey"),{sourceType:t.sourceType})]})},getPlaylistURI:function(e,t){
return this._resolveURI({prefix:"playlist",parts:["",e.get("guid")]})},getChannelURI:function(e,t){t||(t={});var n=a.a.result(e,"url"),i=e.get("items"),r=i&&i.length?"directory":"item";return this._resolveURI({prefix:"channel",parts:[e.channel.get("identifier"),r,n]})},title:function(e,t){var n=t&&t.items;if(n&&n.length){if(n.length>1)return this.getBatchLibraryMetadataTitle(n,t);e=a.a.first(n)}
return e.get("isSection")?this.getSectionTitle(e,t):e.get("isMetadataList")?this.getMetadataListTitle(e,t):this.getLibraryMetadataTitle(e,t)},getSectionTitle:function(e){var t=e.get("title"),n=e.get("currentSubset"),i=e.get("currentFilters");return"all"!==n.id?t+": "+n.get("title"):i.length?t+": "+a.a.flatten(a.a.map(i,function(e){return e.titles})).join(", "):t},getMetadataListTitle:function(e){return e.get("containerTitle")||e.get("title")},getBatchLibraryMetadataTitle:function(e){
var t=a.a.map(e,function(e){return e.get("title")});return n.i(c.a)(t)},getLibraryMetadataTitle:function(e){var t=e.get("grandparentTitle")||e.get("parentTitle"),i=e.get("title");if(t&&(i=t+" - "+i),"episode"===e.get("type")){i+=" ("+n.i(o.a)({seasonIndex:e.get("parentIndex"),episodeIndex:e.get("index"),date:e.get("originallyAvailableAt"),noLeadingZero:!0,separator:" "})+")"}return i},_resolveURI:function(e){var t=e.parts,n=a.a.map(t,function(e){return e?encodeURIComponent(e):""})
;return e.prefix+"://"+n.join("/")},_getSectionInfo:function(e){var t=e.get("librarySectionUUID"),i=e.get("librarySectionID");if(!t||!i){var r=n.i(l.a)(e);a.a.isEmpty(r)||(t=r.get("uuid"),i=r.id)}return{sectionUUID:t,sectionID:i}}};t.a=p},function(e,t,n){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MMMM D, YYYY";return e?r()(e).format(t):""}Object.defineProperty(t,"__esModule",{value:!0});var a=n(40),r=n.n(a);t.default=i},function(e,t,n){"use strict"
;n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i="boolean",a="other"},function(e,t,n){"use strict";function i(e,t){var n=[];if(e){var i=r.a.first(e.Part);i&&i.Stream&&n.push.apply(n,r.a.where(i.Stream,t))}return n}var a=n(3),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}t.a=i},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(10),s=n.n(r),o=n(13),l=n(19),u=n(59),c=n(29),d=n(820),p=u.a.extend({
initialize:function(){a.a.bindAll(this,"onAjaxSend","onAjaxComplete"),this.requests=[],this.byId={}},startListening:function(){var e=s()(document);e.on("ajaxSend",this.onAjaxSend),e.on("ajaxComplete",this.onAjaxComplete)},stopListening:function(){var e=s()(document);e.off("ajaxSend",this.onAjaxSend),e.off("ajaxComplete",this.onAjaxComplete)},abortAll:function(e){for(var t=this.requests.length-1;t>-1;t--){var n=this.requests[t];null!=e&&e!==n.settings.scope||this.abort(n)}},abort:function(e){
var t=a.a.isString(e)?this.byId[e]:e;t&&(t.xhr.aborting=!0,t.xhr.abort(),this.remove(t))},store:function(e,t){var n=a.a.uniqueId("r");e.rid=n;var i={xhr:e,settings:t};return this.requests.push(i),this.byId[n]=i,i},remove:function(e){var t=a.a.indexOf(this.requests,e);t>-1&&this.requests.splice(t,1),this.byId.hasOwnProperty(e.xhr.rid)&&delete this.byId[e.xhr.rid]},onAjaxSend:function(e,t,n){var i=this;if(!n.skipCorsWithRedirect){var a=this.store(t,n);t.always(function(){t.aborting||i.remove(a)})}
},onAjaxComplete:function(e,t,i){var r=n.i(d.a)(t);if(!t.aborting&&r){var s=n.i(l.parseUrl)(i.url);if(!r||"/log"!==s.pathname){var u=n.i(o.a)("appModel").get("servers").find(function(e){var t=e.get("activeConnection"),n=t&&t.get("isConnected"),r=a.a.result(t,"url");return!!n&&0===i.url.indexOf(r)});u&&(n.i(c.a)('[Connections] Active connection to "%s" lost authorization',u.get("debugName")),u.trigger("error:connection",u))}}}});t.a=new p},function(e,t,n){"use strict"
;var i=n(14),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=n.n(d),h=n(13),f=(n(31),n(352)),v=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.page=n.page,a}return c()(t,e),t.prototype.getChildContext=function(){return{metricsPage:this.page}},t.prototype.componentDidMount=function(){var e=this.props,t=(e.children,e.isDelegated),i=a()(e,["children","isDelegated"]);t||n.i(h.a)("metrics").trackView(i)},
t.prototype.componentWillReceiveProps=function(e){},t.prototype.componentDidUpdate=function(e){var t=(e.children,e.isDelegated),i=a()(e,["children","isDelegated"]),r=this.props,s=(r.children,r.isDelegated),o=a()(r,["children","isDelegated"]),l=t!==s||!n.i(f.a)(i,o);!s&&l&&n.i(h.a)("metrics").trackView(o)},t.prototype.render=function(){return p.a.Children.only(this.props.children)},t}(d.Component);v.childContextTypes={metricsPage:d.PropTypes.string.isRequired},t.a=v},function(e,t,n){"use strict"
;function i(e){var t=parseFloat(e,10),n=e.match(/m?s/);switch(n&&(n=n[0]),n){case"s":return 1e3*t;case"ms":return t}return 0}t.a=i},function(e,t,n){"use strict";function i(e){return e.displayName||e.name||"Component"}t.a=i},function(e,t,n){"use strict";function i(e){if(u===e)return c;var t=e.split("?"),n=t.length>1?t[1]:void 0,i=n?o.parseParams(n):{};return u=e,c={url:t[0],params:i}}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.hash,a=i(t)
;return o.join(a.url,s()({},a.params,{type:void 0,typeKey:e.typeKey,filters:n.i(l.a)(e.filters),limit:e.limit,filterLabel:e.filterLabel,customFilter:e.customFilter?1:void 0,sort:e.sort,folderKey:e.folderKey,folderTitle:e.folderTitle,parentFolderKey:e.parentFolderKey,parentFolderTitle:e.parentFolderTitle,save:1}))}var r=n(6),s=n.n(r),o=n(19),l=n(816);t.a=a;var u=void 0,c=void 0},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),
n(1108)),h=n.n(p),f=n(1063),v=n.n(f),m=n(1049),g=n(2685),y=n.n(g),b=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onProgressToUpdate=function(){a.setState({progress:a._progressPosition.progress})},a.onProgressToComplete=function(){a._progressToTween=null},a.state={progress:0},a}return c()(t,e),t.prototype.componentDidMount=function(){this._progressTo(this.props)},t.prototype.componentDidUpdate=function(e){this._progressTo(this.props)},
t.prototype.componentWillUnmount=function(){this._cancelProgressTo()},t.prototype._progressTo=function(e){var t=e.progress,n=this.props.smoothProgressDuration/1e3,i={progress:t,ease:this.props.easing,onUpdate:this.onProgressToUpdate,onComplete:this.onProgressToComplete};this._progressPosition={progress:this.state.progress},this._cancelProgressTo(),this._progressToTween=h.a.to(this._progressPosition,n,i)},t.prototype._cancelProgressTo=function(){
this._progressToTween&&(this._progressToTween.kill(),this._progressToTween=null)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.containerClassName,i=e.backgroundClassName,r=e.size,s=e.lineWidth,o=e.strokeColor,l=e.showProgressText,u=this.state.progress,c=r/2,d=c-s,p=Math.PI*(2*d),h=r+"px",f=r-3*s+"px",v=(100-u)/100*p,m=Math.round(u)+"%";return a()("div",{className:n,style:{width:h,height:h,lineHeight:h}},void 0,a()("svg",{className:t,version:"1.1",
xmlns:"http://www.w3.org/2000/svg",width:r,height:r},void 0,a()("circle",{fill:"transparent",r:d,cx:c,cy:c,strokeDasharray:p,style:{strokeWidth:s,stroke:o,strokeDashoffset:v}})),a()("div",{className:i,style:{width:f,height:f}}),l&&a()("div",{className:y.a.circularProgressBarText},void 0,m))},t}(d.Component);b.defaultProps={className:y.a.circularProgressBar,containerClassName:y.a.circularProgressBarContainer,backgroundClassName:y.a.circularProgressBarBackground,size:60,lineWidth:5,
strokeColor:v.a.primaryColor,showProgressText:!0,smoothProgressDuration:1e3,easing:m.a},t.a=b},function(e,t,n){"use strict";function i(e){var t=e.children,n=r()(e,["children"]);return o.a.createElement("div",n,t)}var a=n(14),r=n.n(a),s=n(0),o=n.n(s),l=n(2710),u=n.n(l);i.defaultProps={className:u.a.group},t.a=i},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(2),s=n.n(r),o=n(14),l=n.n(o),u=n(7),c=n.n(u),d=n(9),p=n.n(d),h=n(8),f=n.n(h),v=n(3),m=n.n(v),g=n(0),y=n.n(g),b=n(91),S=n(2719),I=n.n(S),M=function(e){function t(){var n,i,a;c()(this,t);for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o];return n=i=p()(this,e.call.apply(e,[this].concat(s))),i.onChange=function(e){i.props.onChange(e.target.value)},a=n,p()(i,a)}return f()(t,e),t.prototype.render=function(){
var e=this.props,t=e.className,n=e.errorClassName,i=e.disabledClassName,r=e.isDisabled,o=e.size,u=e.name,c=(e.initialValue,e.value),d=e.values,p=e.hasError,h=(e.errors,e.validations,l()(e,["className","errorClassName","disabledClassName","isDisabled","size","name","initialValue","value","values","hasError","errors","validations"]));return s()("div",{className:(t||"")+" "+(I.a[o]||"")+" "+(r&&i||"")+" "+(p&&n||"")},void 0,y.a.createElement("select",a()({},h,{disabled:r,className:I.a.select,id:u,
name:u,value:c,onChange:this.onChange}),d.map(function(e){if(m.a.isString(e))return s()("option",{value:e},e,e);var t=m.a.keys(e),n=t[0];return s()("option",{value:n},n,e[n])})))},t}(g.Component);M.defaultProps={className:I.a.input,errorClassName:I.a.hasError,disabledClassName:I.a.isDisabled,isDisabled:!1,size:b.LARGE,hasError:!1},t.a=M},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=n.n(d),h=n(11),f=n(5),v=(n.n(f),n(35)),m=(n(32),
n(111)),g=n(86),y=n(2113),b=n.i(f.createSelector)(m.a,function(e){return{columnAdjustment:e.columnAdjustment,listStyles:e.listStyles}}),S=function(e){function t(){var i,r,o;s()(this,t);for(var u=arguments.length,c=Array(u),d=0;d<u;d++)c[d]=arguments[d];return i=r=l()(this,e.call.apply(e,[this].concat(c))),r.onColumnAdjustmentChange=function(e){n.i(v.a)(function(){r.props.saveExperienceSettings({columnAdjustment:e})})},r.onListStyleChange=function(e){
var t,i,s=r.props,o=s.listStyles,l=s.listType,u=s.listContext,c=a()({},o,(i={},i[u]=a()({},o[u]||{},(t={},t[l]=e,t)),i));n.i(v.a)(function(){r.props.saveExperienceSettings({listStyles:c})})},o=i,l()(r,o)}return c()(t,e),t.prototype.render=function(){return p.a.createElement(y.a,a()({},this.props,{onColumnAdjustmentChange:this.onColumnAdjustmentChange,onListStyleChange:this.onListStyleChange}))},t}(d.Component);t.a=n.i(h.b)(function(e){return b},{saveExperienceSettings:g.a})(S)},function(e,t,n){
"use strict";function i(e){var t=e.isOpen,n=e.metricsProperties,i=e.onModalClose,a=u()(e,["isOpen","metricsProperties","onModalClose"]);return o()(h.a,{isOpen:t,metricsPage:p.b,metricsProperties:n,onModalClose:i},void 0,d.a.createElement(f.a,r()({},a,{onModalClose:i})))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(34),h=n(128),f=n(2128);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.innerClassName,i=u()(e,["children","innerClassName"])
;return d.a.createElement(f.a,r()({className:h.a.pageContent},i),o()("div",{className:n},void 0,t))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(2816),h=n.n(p),f=n(989);i.defaultProps={innerClassName:h.a.innerPageContent},t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(s.a,o.a,n.i(l.a)(),function(e,t,n){var i=n.librarySectionKey;return!i&&n.librarySectionID&&(i="/library/sections/"+n.librarySectionID),{server:e,provider:t,
librarySectionKey:i,roles:n.Role}})}var a=n(11),r=n(5),s=(n.n(r),n(45)),o=n(43),l=n(21),u=n(2301);t.a=n.i(a.b)(i)(u.a)},function(e,t,n){"use strict";function i(e,t,i,a){return n.i(j.a)(e,t,i,a)}function a(e,t,n,a){return!!i(e,t,n,a)&&(a.Media&&a.Media.length>1)}function r(e,t,n,a){return i(e,t,n,a)&&!!t.features.playqueue}function s(e,t,n,a){return i(e,t,n,a)&&!!t.features.playqueue}function o(e,t,n,i){return!!i.primaryExtraKey}function l(e,t,n,i){return!(!i.related||!i.related.find(function(e){
return/similarPlaylist/.test(e)}))}function u(e,t,n,i){return l(e,t,n,i)}function c(e,t,n,i){return d(e,t,n,i)}function d(e,t,n,i){return e.isFullServer&&!!i.isLibraryItem}function p(e,t,i,a){return!!t.features.timeline&&(n.i(O.s)(a.type)?a.unviewedLeafCount>0:!a.viewCount||!!a.viewOffset)}function h(e,t,i,a){return!!t.features.timeline&&(n.i(O.s)(a.type)?a.viewedLeafCount>0:!!a.viewCount||!!a.viewOffset)}function f(e,t,n,i){
var a=i.isLibraryItem,r=i.isPlaylist,s=i.isExtra,o=i.isFolder,l=a&&!s&&!o;return r||!(!t.features.manage||!l)}function v(e,t,n,i){return f(e,t,n,i)}function m(e,t,n,i){return f(e,t,n,i)}function g(e,t,n,i){return!!f(e,t,n,i)&&!(!i.guid||/(local|none)\:\/\//.test(i.guid))}function y(e,t,n,i){return!!f(e,t,n,i)&&(!!i.guid&&!g(e,t,n,i))}function b(e,t,n,i){return g(e,t,n,i)}function S(e,t,i,a){if(!f(e,t,i,a))return!1;var r=void 0;return r=n.i(O.s)(a.type)?a.Location:k.a.filter(a.Media,function(e){
return!e.proxyType}),r.length>1}function I(e,t,n,i){return!(!e.isFullServer||!i.isLibraryItem)&&!(!e.allowSync||!i.allowSync)}function M(e,t,n,i){return!!f(e,t,n,i)&&!(!e.transcoderVideo||!e.backgroundProcessing)}function C(e,t,n,i){return!!t.protocols.download}function w(e,t,n,i){return!1}function D(e,t,n,i){return!1}function P(e,t,n,i){return!1}function T(e,t,n,i){return!!f(e,t,n,i)&&!(!i.isPlaylist&&!e.allowMediaDeletion)}function x(e,t,n,i){
return!!f(e,t,n,i)&&(!!e.allowMediaDeletion&&k.a.filter(i.Media,function(e){return!!e.proxyType}).length>0)}function E(e,t,n,i){return!i.isExtra}function N(e,t,n,i){return!i.isFolder}function L(e,t,i,a,r){var s=r&&U[r]?r:a.type,o=U[s];return n.i(_.a)(k.a.isArray(o),"getMetadataActionProps: Invalid type, "+s+", provided"),o.reduce(function(r,o){var l=R[o];return n.i(_.a)(k.a.isFunction(l),"getMetadataActionProps: Invalid action, "+o+", for "+s),r[o]=l(e,t,i,a),r},{})}
var A=n(3),k=n.n(A),_=n(31),O=n(30),j=n(838);t.a=i,t.e=s,t.f=c,t.g=d,t.h=p,t.i=h,t.b=f,t.j=v,t.k=m,t.l=I,t.m=M,t.n=T,t.c=N,t.d=L;var R={showPlay:i,showPlayVersion:a,showPlayAll:i,showShuffle:r,showQueue:s,showPlayTrailer:o,showPlayPlexMix:l,showQueuePlexMix:u,showPlayMusicVideo:o,showAddToAlbum:c,showAddToPlaylist:d,showMarkWatched:p,showMarkUnwatched:h,showEdit:f,showRefresh:v,showAnalyze:m,showFixMatch:g,showMatch:y,showUnmatch:b,showSplitApart:S,showSync:I,showOptimize:M,showDownload:C,
showWatchLater:w,showShare:D,showRecommend:P,showDelete:T,showDeleteVersion:x,showGetInfo:E,showSelect:N},U={movie:["showPlay","showPlayVersion","showQueue","showPlayTrailer","showAddToPlaylist","showMarkWatched","showMarkUnwatched","showEdit","showRefresh","showAnalyze","showFixMatch","showMatch","showUnmatch","showSplitApart","showSync","showOptimize","showDownload","showWatchLater","showShare","showRecommend","showDelete","showDeleteVersion","showGetInfo","showSelect"],
show:["showPlay","showPlayAll","showShuffle","showQueue","showPlayTrailer","showAddToPlaylist","showMarkWatched","showMarkUnwatched","showEdit","showRefresh","showFixMatch","showMatch","showUnmatch","showSplitApart","showSync","showOptimize","showDelete","showSelect"],season:["showPlay","showPlayAll","showShuffle","showQueue","showAddToPlaylist","showMarkWatched","showMarkUnwatched","showEdit","showAnalyze","showSync","showOptimize","showDelete","showSelect"],
episode:["showPlay","showPlayVersion","showQueue","showAddToPlaylist","showMarkWatched","showMarkUnwatched","showEdit","showRefresh","showAnalyze","showSync","showOptimize","showDownload","showWatchLater","showShare","showRecommend","showDelete","showDeleteVersion","showGetInfo","showSelect"],artist:["showPlay","showShuffle","showQueue","showAddToPlaylist","showEdit","showRefresh","showFixMatch","showMatch","showUnmatch","showSplitApart","showSync","showDelete","showSelect"],
album:["showPlay","showShuffle","showQueue","showAddToPlaylist","showEdit","showRefresh","showFixMatch","showMatch","showUnmatch","showSplitApart","showSync","showDelete","showSelect"],track:["showPlay","showQueue","showPlayPlexMix","showQueuePlexMix","showPlayMusicVideo","showAddToPlaylist","showEdit","showAnalyze","showSync","showDownload","showDelete","showGetInfo","showSelect"],photoalbum:["showPlay","showShuffle","showAddToAlbum","showEdit","showSync","showSelect"],
photo:["showPlay","showAddToAlbum","showEdit","showAnalyze","showSync","showDownload","showDelete","showGetInfo","showSelect"],clip:["showPlay","showPlayVersion","showQueue","showPlayTrailer","showAddToPlaylist","showMarkWatched","showMarkUnwatched","showEdit","showRefresh","showAnalyze","showFixMatch","showMatch","showUnmatch","showSplitApart","showSync","showOptimize","showDownload","showWatchLater","showShare","showRecommend","showDelete","showDeleteVersion","showGetInfo","showSelect"],
playlist:["showDelete","showEdit","showPlay","showQueue","showShuffle","showSync","showSelect","showEdit"]}},,,function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(31),s=n(573),o=n(19),l=n(16),u=n(17),c=n(1308),d={UNTESTED:"untested",PENDING:"pending",CONNECTED:"connected",UNAUTHORIZED:"unauthorized",UNAVAILABLE:"unavailable",ABORTED:"aborted"},p=l.a.boolean.isRequired,h=u.a.extend({name:"ConnectionModel",context:["server"],idAttribute:"uri",sessionAttrs:{currentTest:l.a.custom(function(e){
return a.a.isFunction(e.abort)}),testState:l.a.oneOf(d.UNTESTED,d.PENDING,d.CONNECTED,d.UNAUTHORIZED,d.UNAVAILABLE,d.ABORTED).isRequired,isBundled:p,isFallback:p,serverAttrs:l.a.object,currentReachabilityTest:l.a.custom(function(e){return a.a.isFunction(e.abort)}),isPossiblyCrossNetworkProtected:l.a.boolean.isRequired},sessionRelations:{sources:{relationClass:c.a}},syncedAttrs:{uri:l.a.string,scheme:l.a.string,address:l.a.string,port:l.a.string,relay:l.a.boolean},derivedAttrs:{
isUntested:function(){return this.get("testState")===d.UNTESTED},isPending:function(){return this.get("testState")===d.PENDING},isConnected:function(){return this.get("testState")===d.CONNECTED},isUnauthorized:function(){return this.get("testState")===d.UNAUTHORIZED},isUnavailable:function(){return this.get("testState")===d.UNAVAILABLE},isFailed:function(){return this.get("isUnauthorized")||this.get("isUnavailable")},isAborted:function(){return this.get("testState")===d.ABORTED},
isLoopback:function(){var e=this.get("address");return"localhost"===e||s.a.isLoopbackAddress(e)},isPrivate:function(){return this.get("isLoopback")||s.a.isPrivateAddress(this.get("address"))},isHttps:function(){return"https"===this.get("scheme")},isSecure:function(){return this.get("isLoopback")||this.get("isHttps")},isPlexDirect:function(){return/\.plex\.direct:/.test(this.get("uri"))}},defaults:{testState:d.UNTESTED,isBundled:!1,isFallback:!1,relay:!1,isPossiblyCrossNetworkProtected:!1},
url:function(){return this.get("uri")},constructor:function(e,t){var i=a.a.clone(e);a.a.isObject(e)&&!e.uri&&(n.i(r.a)(e.scheme&&e.address,"A server connection requires either a uri or a scheme and address. "+e.scheme+"://"+e.address),i.uri=e.scheme+"://"+e.address,e.port&&(i.uri+=":"+e.port)),u.a.prototype.constructor.call(this,i,t)},initialize:function(){this.listenTo(this.get("sources"),"remove reset",this.onSourcesChange)},augmentResponse:function(e){var t=e.protocol
;return t?a.a.extend({},e,{scheme:t}):e},getAddressFromUri:function(){return n.i(o.parseUrl)(this.get("uri")).hostname},getIpAddressFromPlexDirectAddress:function(){var e=this.get("address");if(/\.plex\.direct$/.test(e)){var t=e.indexOf(".");t>0&&(e=e.substring(0,t),e=e.replace(/\-/g,"."))}return e},getLoopbackAttributes:function(){return{scheme:"http",address:"127.0.0.1",port:this.get("port")}},hasSource:function(e){return this.get("sources").some(function(t){return e&&t.get("id")===e})},
onSourcesChange:function(){this.get("sources").length||this.trigger("destroy",this,this.collection)}},{testStates:d});t.a=h},function(e,t,n){"use strict";var i=n(22),a=n(756),r=i.a.extend({name:"MediaSettingCollection",context:["server"],model:a.b,getSaveParams:function(){return this.reduce(function(e,t){return e[t.id]=t.get("value"),e},{})}});t.a=r},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(55),c=n(2674),d=n.n(c),p=n(13),h=n(107),f=n(575),v=n(512),m=n(61),g=n(16),y=n(507),b=n(17),S=n(135),I=n(820),M=n(762),C=n(766),w=n(765),D=n(761),P=n(764),T=n(760),x=n(1334),E=n(1344),N={PENDING:"pending",LOCKED:"locked",UNLOCKED:"unlocked"},L={EMPTY:"",UNSUBSCRIBED:"unsubscribed",ACTIVE:"active",ERROR:"error",REMOVED:"removed"},A=b.a.extend({mixins:[v.a],name:"UserModel",context:["server"],url:"/api/v2/user",sessionAttrs:{
isSignedIn:g.a.boolean.isRequired,hasInvalidToken:g.a.boolean.isRequired,lastPrimaryServerID:g.a.string,lockState:g.a.oneOf(N.PENDING,N.LOCKED,N.UNLOCKED).isRequired,homeUsers:g.a.instanceOf(T.a).isRequired,homeDetails:g.a.instanceOf(x.a).isRequired},syncedAttrs:{id:g.a.integer,uuid:g.a.string,authToken:g.a.string,username:g.a.string,email:g.a.string,emailOnlyAuth:g.a.boolean,title:g.a.string,locale:g.a.string,thumb:g.a.string,pin:g.a.string,home:g.a.boolean,restricted:g.a.boolean,
guest:g.a.boolean,homeSize:g.a.integer,maxHomeSize:g.a.integer,queueUid:g.a.string,queueEmail:g.a.string,hasAllEntitlements:g.a.boolean,mailingListActive:g.a.boolean,hasPassword:g.a.boolean,mailingListStatus:g.a.oneOf(L.EMPTY,L.UNSUBSCRIBED,L.ACTIVE,L.ERROR,L.REMOVED)},sessionRelations:{features:{relationClass:M.a}},syncedRelations:{subscription:{relationClass:C.a},roles:{relationClass:w.a},entitlements:{relationClass:D.a},providers:{relationClass:P.a},profile:{relationClass:E.a}},derivedAttrs:{
isLocked:function(){return this.get("lockState")===N.LOCKED},isUnlocked:function(){return this.get("lockState")===N.UNLOCKED},isFullUser:function(){return!!this.get("username")},isEmployee:function(){return!!this.get("roles").get("employee")},isNinja:function(){return this.get("isEmployee")||!!this.get("roles").get("ninja")},hasPlexPass:function(){return!!this.get("subscription").get("active")},canGoPremium:function(){var e=this.get("homeSize")>1
;return this.get("signedIn")&&!this.get("restricted")&&!this.get("hasPlexPass")&&!e},signedIn:function(){return this.get("isSignedIn")},locked:function(){var e=this.get("lockState");return e===N.LOCKED||e!==N.UNLOCKED&&null}},defaults:function(){var e={server:this.server,parent:this};return{isSignedIn:!1,hasInvalidToken:!1,hasPassword:!0,lockState:N.PENDING,homeUsers:new T.a([],e),homeDetails:new x.a({},e)}},initialize:function(e,t){this._resetPopulate(),
this.onHomeUsersChange(this,this.get("homeUsers")),this.on("change:homeUsers",this.onHomeUsersChange,this),this.listenTo(this.server,{"change:isConnected":this.onServerConnectedChange,"change:isUnavailable":this.onServerUnavailableChange})},uninitialize:function(){this.off("change:homeUsers",this.onHomeUsersChange,this),this.stopListening()},fetch:function(){return u.a.Model.prototype.fetch.apply(this,arguments)},augmentResponse:function(e){var t=e.roles,n=e.entitlements,i=e.providers
;return s.a.extend({},e,{roles:t&&t.role,hasAllEntitlements:n&&n.all,entitlements:n&&n.entitlement,providers:i&&i.provider})},_getTokenPromise:function(){var e=this,t=h.a.get("myPlexAccessToken");return m.a.get("allowSSO")?t.then(null,function(){return e._getSSOTokenPromise()}):t},_getSSOTokenPromise:function(){return n.i(f.a)(this.server.getXHROptions("/api/v2/users/signin",{method:"POST",xhrFields:{withCredentials:!0},data:{skipAuthentication:!0},dataType:"json"})).then(function(e){
return e.authToken})},_getManualUserPromise:function(e){return l.a.ajax(this.server.getXHROptions(s.a.result(this,"url"),{headers:{"X-Plex-Token":e}}))},signInUnsupervised:function(){var e=this;if(!this._isSigningIn){this._isSigningIn=!0;var t=this._getTokenPromise();t.done(function(t){var i=e._getManualUserPromise(t);i.done(function(i){var a=e.get("homeDetails");a.fetch({headers:{"X-Plex-Token":t}}).always(function(){var t=e.parse(i),r=e.get("lockState");if(r!==N.UNLOCKED){
var s=n.i(p.a)("appModel").get("settings"),o=m.a.get("proxied")||s.get("autoLogin"),l=!!t.guest&&!a.get("guestEnabled");r=!t.home||o&&!l?N.UNLOCKED:N.LOCKED}e.signIn(t,{lockState:r}),e._isSigningIn=!1})}),i.fail(function(t){if(t.aborting)return void(e._isSigningIn=!1);var i=n.i(I.a)(t);e.signOut({hasInvalidToken:i}),e.server.testAllConnections(),i&&e.clearAccessToken(),e._isSigningIn=!1})}),t.fail(function(){e.signOut(),e._isSigningIn=!1})}},signIn:function(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=s.a.isString(e)?this.parse(e):e,r=i.authToken,o=a()({isSignedIn:!0},i,t);return this._resolve(o,n),h.a.set("myPlexAccessToken",r)},signOut:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._reject(e),l.a.Deferred().resolve().promise()},activateStoredUser:function(e){S.a.set("activeUserID",e);var t=S.a.getActiveUser();if(t){
var n=t.get("lastPrimaryServerID");this.set("lastPrimaryServerID",n),this.get("features").set(t.get("features").models)}},clearAccessToken:function(){window.PLEXWEB&&window.PLEXWEB.myPlexAccessToken&&delete window.PLEXWEB.myPlexAccessToken;var e=h.a.remove("myPlexAccessToken");return e=e.then(function(){return S.a.clearActiveUser()})},hashPIN:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.get("authToken");return d.a.SHA256_hash(e+t)},hasEntitlement:function(e){
var t=this.get("hasAllEntitlements"),n=this.get("entitlements");return!(!t&&!n.get(e))},hasHome:function(){return!!this.get("pin")||this.get("homeUsers").length>1},isFullUser:function(){return this.get("isFullUser")},isEmployee:function(){return this.get("isEmployee")},isNinja:function(){return this.get("isNinja")},hasPlexPass:function(){return this.get("hasPlexPass")},_resolve:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.startCapturingChangeEvents(),
this.activateStoredUser(e.id),this.set(e),this._resolvePopulate(),this.server.authenticate(e.authToken),t.silent?this.discardCapturedChangeEvents():this.releaseCapturedChangeEvents()},_reject:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.startCapturingChangeEvents(),this.restoreDefaults(e),this._rejectPopulate(),this.server.deauthenticate(),t.silent?this.discardCapturedChangeEvents():this.releaseCapturedChangeEvents()},onHomeUsersChange:function(e,t){
var n=e.previous("homeUsers");n&&this.stopListening(n),this.listenTo(this.get("homeUsers"),"reset add remove",this.onHomeUsersUpdate)},onHomeUsersUpdate:function(){this.set("homeSize",this.get("homeUsers").length),this.get("homeDetails").fetch()},onServerConnectedChange:function(e,t){t&&this.signInUnsupervised()},onServerUnavailableChange:function(e,t){t&&this.signOut({lockState:this.get("lockState"),features:this.get("features")})}},{lockStates:N,mailingListStates:L});n.i(y.a)(A,function(){
return{relationClass:n.i(p.a)("UserFlexModel")}}),t.a=A},function(e,t,n){"use strict";function i(e){var t=e.key,i=e.actionSuffix,s=e.fetchActionType,o=e.getModel,l=n.i(a.a)(i||t),u=n.i(r.a)(t),c="is"+u+"Populated";return function(e,t,n){o(e,t).get(c)||n({type:s||"FETCH_"+l,payload:t})}}var a=(n(31),n(1493)),r=n(282);t.a=i},function(e,t,n){"use strict";function i(e){var t=Math.floor((new Date).getTime()/1e3),n=e.get("Media"),i=n.find(function(e){return e.beginsAt<=t&&t<=e.endsAt})
;return i?i.channelIdentifier:void 0}var a=n(6),r=n.n(a),s=n(10),o=n.n(s),l=n(4),u=n(233),c=n(81),d=n(137),p=n(35),h=n(98),f=n(166),v=n(750),m=n(36),g=n(335),y=n(522),b=n(336),S=n(524),I=n(1365),M=n(337),C=n(1359),w=n(58);n.d(t,"a",function(){return T}),n.d(t,"f",function(){return x}),n.d(t,"i",function(){return E}),n.d(t,"e",function(){return N}),n.d(t,"b",function(){return L}),n.d(t,"c",function(){return A}),n.d(t,"d",function(){return k}),n.d(t,"g",function(){return _}),n.d(t,"h",function(){
return O}),n.d(t,"j",function(){return j})
;var D,P="ui/player/liveTVPlayer/skipBack",T=n.i(m.a)("ui/player/liveTVPlayer/startLiveTVPlayback"),x=n.i(m.a)("ui/player/liveTVPlayer/endLiveTVPlayback"),E=n.i(m.a)("ui/player/liveTVPlayer/updatePlayerLiveTVMetadata"),N=n.i(m.a)("ui/player/liveTVPlayer/playNextItem"),L=n.i(m.a)("ui/player/liveTVPlayer/playPreviousItem"),A=n.i(m.a)(P),k=n.i(m.a)("ui/player/liveTVPlayer/skipForward"),_=n.i(m.a)("ui/player/liveTVPlayer/clearPlayerConflicts"),O=n.i(m.a)("ui/player/liveTVPlayer/cancelMediaGrabber"),j=(D={},
D["ui/player/liveTVPlayer/startLiveTVPlayback"]=function(e,t,a){var s=t.serverEntityID,o=t.providerEntityID,u=n.i(y.a)(e,t),m=n.i(b.a)(u),g=c.a(m),M=n.i(f.a)(e,g),C=h.f(e,t),D=h.d(e,{providerEntityID:o}),P=D.get("parentID"),T=u.metadataItemModel,x=i(T);if(!x)return void n.i(p.a)(function(){M.restoreDefaults({hasError:!0,errorMessage:n.i(l.default)("Unable to tune channel (Not on air)")})});if(e.get("remotePlayer"))return void n.i(p.a)(function(){M.restoreDefaults({hasError:!0,
errorMessage:n.i(l.default)("Live TV is not currently supported when connected to a remote player.")})});n.i(p.a)(function(){M.restoreDefaults({serverEntityID:s,providerEntityID:o,isOpen:!0,openState:d.a,isPlayQueueLoading:!0,isMediaLoading:!0})});var E=new v.a({},{server:C});n.i(I.a)(E,P,x,{playbackSessionID:S.a}).done(function(){M.set("liveTVSession",E);var e=E.get("grabOperation"),i=e.get("metadataItem");a(n.i(w.c)(r()({},t,{liveTVSessionEntityID:E.entityID(),metadataItemEntityID:i.entityID()
})))}).fail(function(e){var t=e.hasConflicts,n=e.errorMessage;t?M.restoreDefaults({serverEntityID:s,providerEntityID:o,liveTVSession:E,hasConflicts:t}):M.restoreDefaults({hasError:!0,errorMessage:n})})},D["ui/player/liveTVPlayer/endLiveTVPlayback"]=function(e,t,i){var a=t.playerType,r=t.showError,s=n.i(f.a)(e,a);r?s.restoreDefaults({hasError:!0,errorMessage:n.i(l.default)("This live TV session has ended due to a recording conflict")}):i(n.i(w.d)({playerType:a}))},
D["ui/player/liveTVPlayer/updatePlayerLiveTVMetadata"]=function(e,t){var i=t.serverEntityID,a=t.playerType,r=n.i(f.a)(e,a),s=r.get("liveTVSession");if(s&&r.get("serverEntityID")===i){var o=s.get("dvrID"),l=s.get("channelIdentifier");n.i(I.a)(s,o,l,{playbackSessionID:S.a})}},D["ui/player/liveTVPlayer/playNextItem"]=function(e,t){var i=t.playerType,a=n.i(f.a)(e,i),r=n.i(M.a)(e);if(a.get("liveTVSession")){var s=n.i(C.a)(a);null!=s&&n.i(p.a)(function(){r.seek(a,s),r.play(a)})}},
D["ui/player/liveTVPlayer/playPreviousItem"]=function(e,t){var i=t.playerType,a=n.i(f.a)(e,i),r=n.i(M.a)(e);if(a.get("liveTVSession")){var s=n.i(C.b)(a);null!=s&&n.i(p.a)(function(){r.seek(a,s),r.play(a)})}},D[P]=function(e,t){var i=t.playerType,a=n.i(f.a)(e,i),r=n.i(M.a)(e),s=a.get("positionSeconds"),o=a.get("seekStartSeconds"),l=Math.max(o,s-u.b);n.i(p.a)(function(){r.seek(a,l)})},D["ui/player/liveTVPlayer/skipForward"]=function(e,t){
var i=t.playerType,a=n.i(f.a)(e,i),r=n.i(M.a)(e),s=a.get("positionSeconds"),o=a.get("seekEndSeconds");if(o-s>u.c){var l=Math.min(o,s+u.d);n.i(p.a)(function(){r.seek(a,l)})}},D["ui/player/liveTVPlayer/clearPlayerConflicts"]=function(e,t){var i=t.playerType,a=n.i(f.a)(e,i);n.i(p.a)(function(){a.set({hasConflicts:!1})})},D["ui/player/liveTVPlayer/cancelMediaGrabber"]=function(e,t,a){var r=t.playerType,s=t.grabOperationKey,u=n.i(f.a)(e,r),c=u.get("serverEntityID"),d=h.f(e,{serverEntityID:c
}),v=u.get("liveTVSession"),m=v.get("grabOperation"),g=m.get("metadataItem"),y=!u.get("isOpen");if(y&&!i(g))return void u.restoreDefaults({hasError:!0,errorMessage:n.i(l.default)("Unable to cancel conflict, please try again.")});n.i(p.a)(function(){u.set({isConflictCancelling:!0})});var b=d.getXHROptions(s,{type:"DELETE"});o.a.ajax(b).done(function(e){if(u.set({hasConflicts:!1,isConflictCancelling:!1,cancelConflictError:null}),y){var t=u.get("providerEntityID")
;if(!i(g))return void u.restoreDefaults({hasError:!0,errorMessage:n.i(l.default)("Unable to tune channel after cancelling a conflict, please try again.")});a(T({serverEntityID:c,providerEntityID:t,metadataItemEntityID:g.entityID(),playerType:r}))}}).fail(function(e){u.set({isConflictCancelling:!1,cancelConflictError:e})})},D[g.b]=function(e,t){var i=t.serverEntityID,a=t.activity,r=n.i(f.a)(e,c.b),s=r.get("liveTVSession")
;if(s&&r.get("serverEntityID")===i&&!r.get("hasConflicts")&&s.get("activityUUID")===a.uuid&&a.Context&&a.Context.conflicts){var o=s.get("dvrID"),l=s.get("channelIdentifier");n.i(I.a)(s,o,l,{playbackSessionID:S.a}).fail(function(e){e.hasConflicts&&r.set({hasConflicts:!0})})}},D[g.c]=function(e,t,i){var a=t.serverEntityID,r=t.activity,s=n.i(f.a)(e,c.b),o=s.get("liveTVSession");o&&s.get("serverEntityID")===a&&o.get("activityUUID")===r.uuid&&s.restoreDefaults({hasError:!0,
errorMessage:n.i(l.default)("This live TV session has ended due to a recording conflict")})},D)},function(e,t,n){"use strict";var i=n(5),a=(n.n(i),n(352)),r=n.i(i.createSelectorCreator)(i.defaultMemoize,a.a);t.a=r},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(n.i(s.a)(),n.i(r.a)(),function(e,t){var n=e&&e.currentDecision;if(n&&n.playQueueItemID===t.playQueueItemID)return n})}var a=n(5),r=(n.n(a),n(85)),s=n(42);t.a=i},function(e,t,n){"use strict";function i(){
return n.i(a.createSelector)(n.i(s.a)(),r.a,function(e,t){if(e)return t[e.metadataItem]})}var a=n(5),r=(n.n(a),n(110)),s=n(85);t.a=i},function(e,t,n){"use strict";var i=n(5),a=(n.n(i),n(150)),r=n.i(i.createSelector)(a.a,function(e){return e.providers});t.a=r},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a}),n.d(t,"c",function(){return r});var i="audio",a="video",r="photo"},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),
n.d(t,"b",function(){return a}),n.d(t,"d",function(){return r}),n.d(t,"c",function(){return s}),n.d(t,"e",function(){return o}),n.d(t,"f",function(){return l});var i=5,a=10,r=30,s=5,o=600,l=600},function(e,t,n){"use strict";var i={NORMAL:0,LOCAL:42,CLOUD:43};t.a=i},function(e,t,n){"use strict";function i(e){if(e<=0||!r.a.isNumber(e))return"0:00";var t=o.a.duration(e),n=t.seconds(),i=t.minutes(),a=t.hours()+24*t.days(),s="";return s=n<10?":0"+n:":"+n,s=i<10&&a>0?"0"+i+s:i+s,a>0&&(s=a+":"+s),s}
var a=n(3),r=n.n(a),s=n(40),o=n.n(s);t.a=i},function(e,t,n){"use strict";function i(e){return n.i(a.a)(e,{limit:"past"})}var a=n(1405);t.a=i},function(e,t,n){"use strict";function i(e,t){if(!e)return t;var n=a.a.parseXML(e.responseText);return n&&n.message?n.message:t}var a=n(60);t.a=i},function(e,t,n){"use strict";function i(e,t){switch(t){case s.SUBSCRIPTION:switch(e){case"1003":
return n.i(r.default)("Subscriptions have been temporarily disabled: too many failed attempts. Please try again later.")}}switch(e){case"1001":return n.i(r.default)("The username or password is incorrect");case"1003":return n.i(r.default)("Sign in has been temporarily disabled: too many failed attempts. Please try again later.");case"1010-login":return n.i(r.default)("Login is required");case"1010-password":return n.i(r.default)("Password is required");case"1010-email":
return n.i(r.default)("Email is required");case"1011-username":return n.i(r.default)("Username has already been taken");case"1011-email":return n.i(r.default)("Email has already been taken");case"1030":return n.i(r.default)("This account only allows signing in with an email address");case"1031":return n.i(r.default)("The username or password is incorrect. Repeated attempts may temporarily disable sign in.");case"1032-password":return n.i(r.default)("Password must be at least 8 characters")
;case"1033-password":return n.i(r.default)("Password is too weak");case"1034-password":return n.i(r.default)("Password must be different from username or email address");case"1035-email":return n.i(r.default)("Email is not a valid email address");case"1036-username":return n.i(r.default)("Username must not be an email address");case"1037-username":return n.i(r.default)("Username contains invalid characters");case"1038-pin":return n.i(r.default)("Pin must be 4 digits")
;case"1039-passwordConfirmation":return n.i(r.default)("Confirm Password must match Password");case"1040":return n.i(r.default)("Invalid Password");case"1044":return n.i(r.default)("Invalid Password")}}function a(e,t){if(e){var a=String(e.code);return i(e.code+"-"+e.field,t)||i(a,t)||e.message||n.i(r.default)("An unknown error occurred")}}var r=n(4);t.a=a;var s={SUBSCRIPTION:"subscription"}},function(e,t,n){"use strict";function i(e){if(e){if(e.section)return e.section
;if(e.get("isSection"))return e;if(e.get("librarySectionID")){var t=new s.a({key:e.get("librarySectionID")},{server:e.server,onlyIfCached:!0});return r.a.isEmpty(t)?void 0:t}return e.parent?i(e.parent):void 0}}var a=n(3),r=n.n(a),s=n(333);t.a=i},function(e,t,n){"use strict";var i={waitingRegex:/^(transcoded|downloaded|directplay|processed)$/,processingRegex:/^(pending|transcoding|downloading)$/,failedRegex:/^(failed|error)$/,addVersionHeader:function(e,t){return t||(t={}),
t.headers||(t.headers={}),t.headers["X-Plex-Sync-Version"]=e,t},addVersionHeaderForDevice:function(e,t){var n=e&&e.get("syncList");return n&&n.get("version")?this.addVersionHeader(n.get("version"),t):t},getSyncStateFromPart:function(e){return e.transcodeState||e.syncState},getSyncStateContextFromPart:function(e){return e.transcodeStateContext||e.syncStateContext}};t.a=i},function(e,t,n){"use strict";function i(e){var t=s.a.clone(e);return t.hasOwnProperty("title")?(t.title=s.a.result(t,"title"),
t.hasOwnProperty("shortTitle")&&(t.shortTitle=s.a.result(t,"shortTitle")),t.hasOwnProperty("plural")&&(t.plural=s.a.result(t,"plural")),t):t}function a(e,t){function n(e){for(var t in s)if(s[t][e])return!0;return!1}function a(e){for(var t in s){var n=s[t],a=n[e];if(a)return i(a)}o.a.warn("No type was found for "+e)}function r(){return t.map(function(e){return i(e)})}var s={};return e.forEach(function(e){s[e]=t.reduceRight(function(t,n){var i=n[e];return null!=i&&(t[i]=n),t},{})}),{contains:n,
get:a,getAll:r}}var r=n(3),s=n.n(r),o=n(29);t.a=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(36),a=n(37);n.d(t,"initLibraryPage",function(){return r}),n.d(t,"initLibraryPageMetadataList",function(){return s}),n.d(t,"fetchLibraryDetails",function(){return o}),n.d(t,"populateLibraryDetails",function(){return l}),n.d(t,"fetchLibraryFirstCharacters",function(){return u}),n.d(t,"populateLibraryFirstCharacters",function(){return c}),
n.d(t,"fetchQueryParse",function(){return d}),n.d(t,"populateQueryParse",function(){return p}),n.d(t,"selectLibraryFilter",function(){return h}),n.d(t,"deselectLibraryFilter",function(){return f}),n.d(t,"fetchLibraryFilterOptions",function(){return v}),n.d(t,"populateLibraryFilterOptions",function(){return m}),n.d(t,"searchLibraryFilterOptions",function(){return g}),n.d(t,"selectLibraryTableColumn",function(){return y}),n.d(t,"deselectLibraryTableColumn",function(){return b})
;var r=n.i(i.a)(a._109),s=n.i(i.a)(a._110),o=n.i(i.a)(a._111),l=n.i(i.a)(a._112),u=n.i(i.a)(a._113),c=n.i(i.a)(a._114),d=n.i(i.a)(a._115),p=n.i(i.a)(a._116),h=n.i(i.a)(a._117),f=n.i(i.a)(a._118),v=n.i(i.a)(a._119),m=n.i(i.a)(a._120),g=n.i(i.a)(a._121),y=n.i(i.a)(a._122),b=n.i(i.a)(a._123)},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(n.i(r.a)(),function(e){return e.desktop.activities})}var a=n(5),r=(n.n(a),n(46));t.a=i},function(e,t,n){"use strict"
;var i=n(3228),a=n.n(i),r=n(3),s=n.n(r),o=n(18),l=n(4),u=o.a.Layout.extend({className:"form-group",template:a.a,isDisabled:!0,isActive:!1,ui:{submitBtn:".submit-btn",message:".form-message"},events:{"change #server-settings-form input[name]":"onInputChange","input #server-settings-form input[type=text]":"onInputChange","change #server-settings-form select[name]":"onInputChange","submit #server-settings-form":"onSubmit"},initialize:function(e){this.changes=e.changes},serializeData:function(){
return s.a.where(this.collection.toJSON(),{group:this.options.group,hidden:!1})},enable:function(){this.isDisabled=!1,this.ui.submitBtn.removeClass("disabled"),this.ui.message.text("")},updateModel:function(e,t){var n=this.collection.get(e);if(n)return n.set("value",t)},onRender:function(){s.a.isEmpty(this.changes)||this.enable()},onInputChange:function(e){var t=e.currentTarget,n=t.name,i=t.value,a=t.value;if(n){"checkbox"===t.type&&((a=t.checked)||(i="0"))
;this.updateModel(n,a)&&(this.changes[t.name]=i,this.enable())}},onSubmit:function(e){e.preventDefault(),this.trigger("save")},onBeforeSave:function(){this.isActive=!0,this.ui.submitBtn.addClass("active")},onAfterSave:function(e){var t;this.isActive=!1,this.ui.submitBtn.removeClass("active"),e?(this.isDisabled=!0,this.ui.submitBtn.addClass("disabled"),t=n.i(l.default)("Your changes have been saved.")):t=n.i(l.default)("Your changes could not be saved."),this.ui.message.text(t)}});t.a=u
},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),s=n.n(r),o=n(14),l=n.n(o),u=n(7),c=n.n(u),d=n(9),p=n.n(d),h=n(8),f=n.n(h),v=n(0),m=n.n(v),g=n(20),y=n(23),b=n(605),S=n(2700),I=n.n(S),M=function(e){function t(){return c()(this,t),p()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.render=function(){
var e=this.props,t=e.className,n=e.arrowClassName,i=e.children,r=e.direction,o=e.kind,u=e.size,c=e.isSelected,d=l()(e,["className","arrowClassName","children","direction","kind","size","isSelected"]),p=u||g.d.MEDIUM;return m.a.createElement(y.a,a()({className:(t||"")+" "+(I.a[p]||"")+" "+(c&&I.a.isSelected||""),"aria-haspopup":!0,kind:o,size:u,isSelected:c},d),i,s()(b.a,{className:(n||"")+" "+(I.a[r]||"")+" "+(I.a[p]||""),direction:r,kind:o,size:p,isSelected:c}))},t}(v.Component)
;M.defaultProps={className:I.a.disclosureArrowButton,arrowClassName:I.a.disclosureArrow,direction:g.f.DOWN,isSelected:!0},t.a=M},function(e,t,n){"use strict";function i(e){var t=e.onErrorDismiss,i=e.errorMessage;return r()("div",{className:d.a.sectionError},void 0,r()(l.a,{name:"plex-icon-alert-560",className:d.a.sectionErrorIcon}),i?i:n.i(o.default)("There was a problem saving your changes."),r()(u.a,{className:d.a.sectionErrorDismiss,onPress:t},void 0,p))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),
n(4)),l=n(27),u=n(23),c=n(2713),d=n.n(c),p=r()(l.a,{name:"plex-icon-remove-560"});t.a=i},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),s=n.n(r),o=n(14),l=n.n(o),u=n(7),c=n.n(u),d=n(9),p=n.n(d),h=n(8),f=n.n(h),v=n(0),m=n.n(v),g=n(26),y=n(210),b=n(257),S=n.n(b),I=n(2134),M=n(2799),C=n.n(M),w="faceFront",D=n.i(y.a)(S.a.posterFlipSpeed),P={transitionName:{appear:"appear",enter:"enter",leave:"leave"},transitionAppear:!1,transitionEnter:!1,transitionLeave:!1},T=function(e){function t(n,i){
c()(this,t);var a=p()(this,e.call(this,n,i));return a.onImageLoad=function(){a.state.isLoadingFace&&a._flipCard()},a.onImageError=function(){a.state.isLoadingFace&&a._flipCard()},a.onFlipComplete=function(){a.setState({isFlippingFace:!1,previousImageUrl:null})},a.state={visibleFace:w,isLoadingFace:!1,isFlippingFace:!1,previousImageUrl:null},a}return f()(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props.imageUrl,n=e.imageUrl&&t!==e.imageUrl
;this.props.metadataKey===e.metadataKey&&n&&this._prepareFlip(t)},t.prototype.shouldComponentUpdate=function(e,t){return n.i(g.a)(this,e,t)},t.prototype.componentWillUnmount=function(){this._cancelFlip()},t.prototype._prepareFlip=function(e){this._cancelFlip(),this.setState({isLoadingFace:!0,isFlippingFace:!0,previousImageUrl:e})},t.prototype._flipCard=function(){var e=this;this.setState(function(t){return{isLoadingFace:!1,visibleFace:e._getInverseFace(t.visibleFace)}},function(){
e._flipTimeoutID=setTimeout(e.onFlipComplete,D)})},t.prototype._cancelFlip=function(){this._flipTimeoutID&&(this._flipTimeoutID=clearTimeout(this._flipTimeoutID))},t.prototype._getInverseFace=function(e){return e===w?"faceBack":w},t.prototype.render=function(){
var e=this.props,t=e.className,n=e.cardClassName,i=e.cardFaceClassName,r=e.metadataKey,o=e.imageWidth,u=e.imageHeight,c=e.imageUrl,d=l()(e,["className","cardClassName","cardFaceClassName","metadataKey","imageWidth","imageHeight","imageUrl"]),p=this.state,h=p.visibleFace,f=p.isLoadingFace,v=p.isFlippingFace,g=p.previousImageUrl,y=this._getInverseFace(h),b={width:o,height:u};return s()("div",{className:t,"data-qa-id":"metadataPosterCard--"+r},r,s()("div",{
className:(n||"")+" "+("faceBack"===h&&C.a.isFlipped||""),style:b},void 0,m.a.createElement(I.a,a()({key:h,className:i,visibleFace:h,imageWidth:o,imageHeight:u,imageUrl:f?g:c,imageTransitionProps:v?P:void 0,onImageLoad:this.onImageLoad,onImageError:this.onImageError},d)),v&&m.a.createElement(I.a,a()({key:y,className:i,visibleFace:y,imageWidth:o,imageHeight:u,imageUrl:f?c:g,imageTransitionProps:v?P:void 0,onImageLoad:this.onImageLoad,onImageError:this.onImageError},d))))},t}(v.Component)
;T.defaultProps={className:C.a.cardContainer,cardClassName:C.a.card},t.a=T},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.type,i=e.isOffscreen,a=e.url,s=e.width,u=e.height,c=e.isFolder,d=e.transitionProps,p=e.onLoad,h=e.onError;return i?null:a?r()(o.a,{serverEntityID:t,url:a,width:s,height:u,backgroundPosition:"artist"===n?"center top":"center",transitionProps:d,onLoad:p,onError:h}):r()(l.a,{type:n,width:s,height:u,isFolder:c})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),
n(611)),l=n(969);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.component,i=e.isSecondary,a=e.isSplitLeft,s=e.isSplitRight,l=o()(e,["className","component","isSecondary","isSplitLeft","isSplitRight"]);return u.a.createElement(n,r()({className:(t||"")+" "+(d.a.title||"")+" "+(i&&d.a.isSecondary||"")+" "+(a&&d.a.isSplitLeft||"")+" "+(s&&d.a.isSplitRight||"")},l))}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(2804),d=n.n(c);t.a=i},function(e,t,n){"use strict"
;function i(){return n.i(r.createSelector)(s.a,o.a,n.i(l.a)(),function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{grandparentTitle:i.grandparentTitle,grandparentRoute:n.i(u.a)(e,t,i.grandparentKey)}})}var a=n(11),r=n(5),s=(n.n(r),n(45)),o=n(43),l=n(21),u=n(118),c=n(2141);t.a=n.i(a.b)(i)(c.a)},function(e,t,n){"use strict";function i(e){var t=e.children,n=o()(e,["children"]);return u.a.createElement(d.a,r()({className:h.a.innerEmptyPage,
contentClassName:h.a.innerEmptyPageContent,scrollDirection:c.a.NONE},n),t)}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(20),d=n(305),p=n(1099),h=n.n(p);t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(s.a,o.a,n.i(l.a)(),n.i(u.a)(),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{server:e,provider:t,librarySectionKey:arguments[3],Director:n.Director,Writer:n.Writer,studio:n.studio}})}var a=n(11),r=n(5),s=(n.n(r),
n(45)),o=n(43),l=n(21),u=n(339),c=n(2292);t.a=n.i(a.b)(i)(c.a)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID;return r()(u.a,{className:d.a.ratingRightTitle},void 0,r()(l.a,{className:d.a.starRating,serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),r()(o.a,{className:d.a.criticRating,serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),
n(624)),l=n(374),u=n(307),c=n(2882),d=n.n(c);t.a=i},function(e,t,n){"use strict";function i(e){return r.a.createElement(s.a,e)}var a=n(0),r=n.n(a),s=n(366),o=n(2965),l=n.n(o);i.defaultProps={className:l.a.playerButton},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.message,n=e.children;return r()("div",{},void 0,r()("p",{className:l.a.sidebarMessage},void 0,t),n)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(1100)),l=n.n(o);t.a=i},function(e,t,n){"use strict";function i(e){
return e.thumb||e.parentThumb||e.grandparentThumb}function a(e){return e.art||e.parentArt||e.grandparentArt}function r(e,t,n){if(n)switch(n){case o.a:switch(e){case"season":return t.thumb;case"episode":return t.thumb;case"album":return t.thumb;case"track":return t.thumb}break;case o.b:switch(e){case"movie":return a(t);case"episode":return a(t)||t.thumb}break;case o.c:switch(e){case"movie":return a(t);case"episode":return t.thumb||a(t)}break;case o.d:switch(e){case"episode":return t.thumb}}
switch(e){case"movie":return t.thumb;case"show":return t.thumb;case"season":return i(t);case"episode":return t.grandparentThumb;case"artist":return t.thumb;case"album":return i(t);case"track":return i(t);case"photo":return t.thumb;case"photoalbum":return t.thumb;case"clip":return t.thumb;case"playlist":return t.thumb||t.composite;default:return t.thumb}}function s(e,t,i,a,s){var o=null==e?n.i(l.c)(t,i,s):e,u=null==t?n.i(l.a)(e,i,s):t;return{url:r(i,a,s),width:o,height:u}}var o=n(32),l=n(132)
;t.a=s},function(e,t){e.exports={defaultSpeed:"0.2s",slowSpeed:"0.6s",fastSpeed:"0.1s",motionEasing:"cubic-bezier(0.6, 0.4, 0.2, 1.4)",menuSpeed:"0.15s",modalSpeed:"0.2s",tooltipSpeed:"0.15s",starSpeed:"0.3s",starPulseSpeed:"0.15s",posterFlipSpeed:"0.8s",overlaySpeed:"0.3s"}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(2577),r=i(a),s=n(1064),o=i(s),l="function"==typeof o.default&&"symbol"==typeof r.default?function(e){return typeof e
}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};t.default="function"==typeof o.default&&"symbol"===l(r.default)?function(e){return void 0===e?"undefined":l(e)}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":void 0===e?"undefined":l(e)}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n={}.hasOwnProperty
;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(1069),a=n(470);e.exports=function(e){return i(a(e))}},,function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var a=n(3350);t.DragDropContext=i(a);var r=n(3351);t.DragLayer=i(r);var s=n(3352);t.DragSource=i(s);var o=n(3353);t.DropTarget=i(o)},,,function(e,t,n){"use strict";var i=n(197),a=new i.a({interface:["get","set","remove","clear"]})
;t.a=a},function(e,t,n){"use strict";var i=n(19),a=n(16),r=n(17),s=n(1270),o=n(1274),l=n(1272),u=r.a.extend({name:"LibraryDetailsModel",context:["server","includeAdvanced"],url:function(){var e={includeDetails:1};return this.includeAdvanced&&(e.includeAdvanced=1),i.join(this.get("key"),e)},sessionAttrs:{key:a.a.string.isRequired},syncedAttrs:{librarySectionID:a.a.string},syncedRelations:{directories:{relationClass:s.a,rootPropertyName:"Directory"},types:{relationClass:o.a,rootPropertyName:"Type"
},fieldTypes:{relationClass:l.a,rootPropertyName:"FieldType"}}});t.a=u},function(e,t,n){"use strict";var i=n(16),a=n(17),r={ASCENDING:"asc",DESCENDING:"desc"},s=a.a.extend({name:"SortModel",context:["server","section"],idAttribute:"key",rootPropertyName:"Directory",sessionAttrs:{selected:i.a.boolean,direction:i.a.string},syncedAttrs:{key:i.a.string,descKey:i.a.string,title:i.a.string,isDefault:i.a.boolean,defaultDirection:i.a.string},defaults:{selected:!1},augmentResponse:function(e){
return e.defaultDirection||(e.defaultDirection=e.default||r.ASCENDING),e.isDefault=!!e.default,e.direction||(e.direction=e.defaultDirection),e},reverseSortDirection:function(){var e=this.get("direction")||this.get("defaultDirection");e=e&&e!==r.ASCENDING?r.ASCENDING:r.DESCENDING,this.set("direction",e)}},{directions:r});t.a=s},function(e,t,n){"use strict";var i=n(82),a=n(52),r=n(22),s=n(76),o=r.a.extend({name:"MetadataCollection",
context:["server","section","playlist","channel","identifier","mediaTagPrefix","mediaTagVersion","allowSync","containerKey"],model:s.a,url:function(){return this.containerKey},augmentResponseText:function(e,t){return t===a.a.xml?n.i(i.a)(e):e},splitByType:function(){var e={};return this.each(function(t){var n=t.get("type");e.hasOwnProperty(n)?e[n].push(t):e[n]=[t]}),e}});t.a=o},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(10),s=n.n(r),o=n(851),l=n(19),u={getCollectionName:function(){
return this.collectionName||"items"},getCollection:function(){return this.get(this.getCollectionName())},getTotalSize:function(){return this.get("totalSize")||this.get("populatedRange").size},getPaginatedUrl:function(e){var t=this.get("currentPageStart"),n=this.get("currentPageSize");if(null!=t||null!=n){var i={"X-Plex-Container-Start":t||0,"X-Plex-Container-Size":n||0};return l.join(e,i)}return e},getCollectionChangeEvents:function(){var e=this.getCollectionName()
;return["change:"+e+".update","change:"+e+".reset"].join(" ")},startPopulatedRangeMonitor:function(){var e=this.getCollectionName();this.updatePopulatedRange(),this.on(this.getCollectionChangeEvents(),this.updatePopulatedRange,this),this.on("change:"+e+".destroy",this.decrementTotalSize,this)},stopPopulatedRangeMonitor:function(){var e=this.getCollectionName();this.off(this.getCollectionChangeEvents(),this.updatePopulatedRange,this),this.off("change:"+e+".destroy",this.decrementTotalSize,this)},
fetchRange:function(e){var t=a.a.extend({},e,{remove:!1});return e.prepend&&(t.at=0),this.set({currentPageStart:e.start,currentPageSize:e.size}),this.fetch(t).promise()},populateRange:function(e){var t=this.getCollection(),n=this.get("populatedRange"),i=o.a.difference(e,n)[0];if(!i)return s.a.Deferred().resolve().promise();if(i=o.a.degap(i,n),this.isPopulating()){var r=this.get("currentPageStart")!==i.start,l=this.get("currentPageSize")!==i.size;if(!r&&!l)return this.populatePromise
;this.abortPendingPopulate()}if(e.reloadThreshold&&i.size>e.reloadThreshold)return t.reset(),this.populateRange(a.a.omit(e,"reloadThreshold"));var u=a.a.extend({},e,i,{prepend:i.start<n.start});return this.fetchRange(u)},repopulateRange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.get("populatedRange").end;return this.set({currentPageStart:0,currentPageSize:Math.max(t,e)}),this.abortPendingPopulate(),this.fetch()},updatePopulatedRange:function(){
var e=this.get("currentPageStart"),t=this.get("populatedRange").start,n=this.get("populatedRange").size,i=this.getCollection().length,a=void 0;a=i?n?Math.min(t,null==e?1/0:e):e||t:0,this.set("populatedRange",{start:a,end:a+i,size:i})},decrementTotalSize:function(){var e=this.get("totalSize");e>0&&this.set("totalSize",e-1)}};t.a=u},function(e,t,n){"use strict";var i={AUTO:"auto",AVOID:"avoid",ALWAYS:"always",NEVER:"never"};i.settings=[{value:i.AUTO,title:"Automatic"},{value:i.AVOID,
title:"Only image formats"},{value:i.ALWAYS,title:"Always"}],t.a=i},function(e,t,n){"use strict";function i(e){return e?(0,r.a.find(c,function(t){var n=t[0];return e<=n})[1])(e):""}var a=n(3),r=n.n(a),s=n(1403),o=n(544),l=n(1402),u=n(1401),c=[[54e5,s.a],[864e5,o.a],[6048e5,l.a],[1/0,u.a]];t.a=i},function(e,t,n){"use strict";function i(e){if(null==e)return"";var t=n.i(r.a)(1e3*e);return t?n.i(a.default)("{1} left",t):""}var a=n(4),r=n(273);t.a=i},function(e,t,n){"use strict";function i(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MMMM D, YYYY";return e?r.a.unix(e).format(t):""}Object.defineProperty(t,"__esModule",{value:!0});var a=n(40),r=n.n(a);t.default=i},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"d",function(){return a}),n.d(t,"e",function(){return r}),n.d(t,"f",function(){return s}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return l}),n.d(t,"g",function(){return u}),n.d(t,"h",function(){return c})
;var i="=",a="!=",r="==",s="!==",o=">>=",l="<<=",u=">>=-",c="<<=-",d=[i,a,r,s,">=","<=",o,l,u,c];t.i=d},function(e,t,n){"use strict";function i(){return window.viewport&&window.viewport.pixelRatio||window.devicePixelRatio||1}t.a=i},function(e,t,n){var i=n(1433).default,a=n(153);e.exports=a(i)},function(e,t,n){"use strict";function i(e){var t=e.seasonIndex,i=e.episodeIndex;if((i>0||0===i)&&t<1e3){e.noLeadingZero||(t=n.i(o.a)(t),i=n.i(o.a)(i));var a=e.separator;if(e.useLongName){
var l=n.i(s.default)("Season {seasonNumber}",{seasonNumber:t}),u=n.i(s.default)("Episode {episodeNumber}",{episodeNumber:i});return""+l+(a||" ")+u}var c=n.i(s.default)("S{seasonNumber}",{seasonNumber:t}),d=n.i(s.default)("E{episodeNumber}",{episodeNumber:i});return""+c+(a||"")+d}if(e.date){var p=r()(e.date);return n.i(s.default)("{monthNumber}/{dayNumber}/{shortYear}",{monthNumber:p.month()+1,dayNumber:p.date(),shortYear:p.format("YY")})}return""}var a=n(40),r=n.n(a),s=n(4),o=n(556);t.a=i
},function(e,t,n){"use strict";function i(e){var t=s.a.get("video").id,i=n.i(o.a)(e,{streamType:t});return r.a.first(i)}var a=n(3),r=n.n(a),s=n(90),o=n(206);t.a=i},function(e,t,n){"use strict";function i(e,t){if(!e)return"";if("8k"===e)return"8K";if("4k"===e)return"4K";var n=parseInt(e,10);return r.a.isNaN(n)?e.toUpperCase():e+(t&&t.length?t[0]:"p")}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),r=n.n(a);t.default=i},function(e,t,n){"use strict";function i(e){
return e?e.charAt(0).toUpperCase()+e.slice(1):""}t.a=i},function(e,t,n){"use strict";var i=n(18),a=i.a.Layout.extend({regions:{content:".content"}});t.a=a},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(10),s=n.n(r),o=n(18),l=n(13),u=n(80),c=n(856),d=n(794),p=n(277),h=n(61),f="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",v=o.a.ItemView.extend({tagName:"img",background:!1,backgroundSize:"",cache:new d.a,initialize:function(e){e||(e={}),
a.a.bindAll(this,"onLoad","onError","loadImage"),this.url=e.url,this.server=e.server,this.placeholder=e.placeholder,this.placeholderClass=e.placeholderClass,this.modelAttribute=e.modelAttribute,this.ignoreAttributeChanges=e.ignoreAttributeChanges,this.exposeUrl=e.exposeUrl,this.resetOnError=e.resetOnError,this.emptyImage=e.explicitEmpty?"url("+f+")":"",e.background&&(this.background=e.background),e.backgroundSize&&(this.backgroundSize=e.backgroundSize),e.format&&(this.format=e.format),
e.quality&&(this.quality=e.quality),a.a.isFunction(e.getUrl)&&(this.getUrl=e.getUrl),this.allowBaseImageBlobs=h.a.get("allowBaseImageBlobs"),this.allowBaseImagePreloading=h.a.get("allowBaseImagePreloading"),this.setup(e)},setup:function(e){this.setDimensions(e),this.setFilters(e.filters),this.setModel(e.model,e)},setDimensions:function(e){e.width&&e.height&&(this.transcode=!0,this.width=e.width,this.height=e.height)},setFilters:function(e){this.filters=e||void 0},hasFilters:function(){
return void 0!==this.filters},setModel:function(e,t){t||(t={}),this.stopListening(),this.src=null,this.model=e,e&&(this.server||(this.server=e.server),t.url||this.modelAttribute&&(this.url=this.getUrl(e.get(this.modelAttribute)),this.ignoreAttributeChanges||this.listenTo(e,"change:"+this.modelAttribute,this.onChange)))},setElement:function(e){o.a.ItemView.prototype.setElement.apply(this,arguments),this.render({force:!0})},getUrl:function(e){return e},getTranscodeUrl:function(e){
if(!this.server||!this.transcode)return e;var t=l.a("appModel"),i=n.i(p.a)();return c.a.image(this.server,e,{fallbackServer:t.get("primaryServer"),width:this.width*i,height:this.height*i,minSize:this.minSize,filters:this.filters,format:this.format,quality:this.quality})},render:function(e){return e||(e={}),this.url||this.placeholder||this.placeholderClass?this.src?(e.force&&this.showImage(this.src),this):(this.isPlaceholderRendered&&this.url||this.showPlaceholder(),
this.url&&this.load(this.url,this.transcode).then(this.onLoad,this.onError,this.onLoad),this):this},showPlaceholder:function(){return this.isPlaceholderRendered=!0,this.$el.removeClass("loaded"),this.placeholderClass?(this.$el.addClass(this.placeholderClass),void this.$el.css("background-image",this.emptyImage)):this.placeholder?void this.showImage(this.placeholder):void this.clearImage()},clearImage:function(){this.background?this.$el.css("background-image",this.emptyImage):this.showImage(f)},
showImage:function(e){if(this.background)return void this.showBackgroundImage(e);this.$el.attr("src",e).removeAttr("width").removeAttr("height")},showBackgroundImage:function(e){this.$el.css("background-image","url("+e+")")},load:function(e){if(!e)return s.a.Deferred().reject().promise();if(e=this.getTranscodeUrl(e),this.exposeUrl&&this.$el.attr("data-image-url",e),this.allowBaseImageBlobs&&u.a.hasBlob&&u.a.hasObjectUrl){var t=this.loadBlob(e);return t=t.then(this.loadImage,null,this.loadImage)}
return this.allowBaseImagePreloading?this.loadImage(e):s.a.Deferred().resolve(e).promise()},loadBlob:function(e){var t=s.a.Deferred();this.cancel();var n=this.cache.getBlobUrl(e);if(n)return t.resolve(n),t.promise();var i=this.cache.getPlaceholder(e);i&&t.notify(i,!0);var r=new window.XMLHttpRequest;return r.open("GET",e,!0),r.responseType="arraybuffer",this.xhr=r,r.onreadystatechange=a.a.bind(function(){if(4===r.readyState)if(r.onreadystatechange=null,this.xhr=null,200===r.status){
var n=new window.Blob([r.response],{type:"image/jpeg"}),i=window.URL.createObjectURL(n);this.cache.store({url:e,blobUrl:i}),t.resolve(i)}else t.reject()},this),r.send(),t.promise()},loadImage:function(e,t){var n=s.a.Deferred(),i=new window.Image;return i.onload=function(){i.onload=i.onabort=i.onerror=null,t?n.notify(e,i.width,i.height):n.resolve(e,i.width,i.height)},i.onabort=i.onerror=function(){i.onload=i.onabort=i.onerror=null,n.reject()},i.src=e,n.promise()},cancel:function(){
this.xhr&&(this.xhr.onreadystatechange=null,this.xhr.abort(),this.xhr=null)},onLoad:function(e,t,n){if(this.backgroundSize){var i=t&&t>this.width||n&&n>this.height?this.backgroundSize:"auto";this.$el[0].style.backgroundSize=i}this.src=e,this.placeholderClass&&this.$el.removeClass(this.placeholderClass),this.$el.addClass("loaded"),this.showImage(e),this.trigger("load",e,t,n)},onError:function(){this.resetOnError&&this.showPlaceholder(),this.trigger("error")},onClose:function(){this.cancel()},
onChange:function(e,t){if(t=this.getUrl(t),this.url===t)return this;this.url=t,this.src=null,this.render()}});t.a=v},function(e,t,n){"use strict";function i(e){for(var t=e.className,i=e.component,a=e.tags,s=e.message,l=[s],c=a.length-1,h=0;c>=0;){for(var f=a[c],v=f.open,m=f.close,g=f.component,y=u()(f,["open","close","component"]),b=new RegExp("(^.*)"+n.i(p.a)("{"+v+"}")+"(.*)"+n.i(p.a)("{"+m+"}")+"(.*$)"),S=[],I=l.length-1;I>=0;I--){var M=l[I];if("string"!=typeof M)S.unshift(M);else{
var C=M.match(b);if(C){var w=C[1],D=C[2],P=C[3];S.unshift(w,d.a.createElement(g,o()({key:h},y),D),P),h+=1}else S.unshift(M)}}S.length===l.length?c-=1:l=S}return r()(i,{className:t},void 0,l)}var a=n(2),r=n.n(a),s=n(6),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(207);n(31);i.defaultProps={component:"span"},t.a=i},function(e,t,n){"use strict";var i=n(30);n.d(t,"c",function(){return i.k}),n.d(t,"d",function(){return i.l}),n.d(t,"e",function(){return i.q}),n.d(t,"f",function(){return i.m}),
n.d(t,"g",function(){return i.h}),n.d(t,"h",function(){return i.d}),n.d(t,"b",function(){return a}),n.d(t,"a",function(){return r});var a="mixed",r="musicVideo"},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r={currentState:null,enterState:function(e){if(e!==this.currentState){var t=this.currentState,n=this.states[e];if(!n)throw new Error("The state machine is unable to enter undefined state: "+e);if(t){var i=this.states[t];if(a.a.isFunction(i.onExit)){if(i.onExit.call(this)===!1)return}}
if(this.currentState=e,a.a.isFunction(n.onEnter)){if(n.onEnter.apply(this,a.a.rest(arguments))===!1)return void(this.currentState=t)}this.triggerMethod("stateMachineChange",{from:t,to:e})}},enterNextState:function(){var e;if(this.currentState){e=this.states[this.currentState].nextState}else{if(!this.initialState)throw new Error("An initial state must be defined for the state machine");e=this.initialState}e?this.enterState(e):this.triggerMethod("stateMachineComplete")}};t.a=r},function(e,t,n){
"use strict";var i=n(6),a=n.n(i),r=n(14),s=n.n(r),o=n(36),l=n(37);n.d(t,"a",function(){return u}),n.d(t,"s",function(){return c}),n.d(t,"d",function(){return d}),n.d(t,"b",function(){return p}),n.d(t,"c",function(){return h}),n.d(t,"u",function(){return f}),n.d(t,"t",function(){return v}),n.d(t,"e",function(){return m}),n.d(t,"i",function(){return g}),n.d(t,"l",function(){return y}),n.d(t,"m",function(){return b}),n.d(t,"n",function(){return S}),n.d(t,"p",function(){return I}),
n.d(t,"q",function(){return M}),n.d(t,"o",function(){return C}),n.d(t,"r",function(){return w}),n.d(t,"f",function(){return D}),n.d(t,"j",function(){return P}),n.d(t,"k",function(){return T}),n.d(t,"h",function(){return x}),n.d(t,"g",function(){return E});var u=n.i(o.a)(l._75),c=n.i(o.a)(l._76),d=n.i(o.a)(l._77),p=n.i(o.a)(l._78),h=n.i(o.a)(l._79),f=n.i(o.a)(l._80),v=n.i(o.a)(l._81),m=n.i(o.a)(l._82),g=n.i(o.a)(l._83),y=(n.i(o.a)(l._84),
n.i(o.a)(l._85)),b=n.i(o.a)(l._86),S=n.i(o.a)(l._87),I=n.i(o.a)(l._88),M=n.i(o.a)(l._89),C=n.i(o.a)(l._90),w=n.i(o.a)(l._91),D=n.i(o.a)(l._82,function(e){var t=e.options,n=void 0===t?{}:t,i=s()(e,["options"]);return a()({},i,{options:a()({},n,{shuffle:!0})})}),P=n.i(o.a)(l._84,function(e){return a()({},e,{watched:!0})}),T=n.i(o.a)(l._84,function(e){return a()({},e,{watched:!1})}),x=n.i(o.a)(l._92,function(e){var t=e.options,n=void 0===t?{}:t,i=s()(e,["options"]);return a()({},i,{
options:a()({},n,{next:!1})})}),E=n.i(o.a)(l._92,function(e){var t=e.options,n=void 0===t?{}:t,i=s()(e,["options"]);return a()({},i,{options:a()({},n,{next:!0})})})},function(e,t,n){"use strict";var i=n(36),a=n(37);n.d(t,"a",function(){return r}),n.d(t,"b",function(){return s});var r=n.i(i.a)(a._24),s=n.i(i.a)(a._25)},function(e,t,n){"use strict";var i=n(36),a=n(37);n.d(t,"a",function(){return r}),n.d(t,"d",function(){return s}),n.d(t,"f",function(){return o}),n.d(t,"g",function(){return l}),
n.d(t,"b",function(){return u}),n.d(t,"c",function(){return c}),n.d(t,"e",function(){return d});var r=n.i(i.a)(a._102),s=n.i(i.a)(a._103),o=n.i(i.a)(a._104),l=n.i(i.a)(a._105),u=n.i(i.a)(a._106),c=n.i(i.a)(a._107),d=n.i(i.a)(a._108)},function(e,t,n){"use strict";var i=n(36),a=n(37);n.d(t,"a",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return o}),n.d(t,"c",function(){return l}),n.d(t,"e",function(){return u}),n.d(t,"f",function(){return c})
;var r=n.i(i.a)(a._10),s=n.i(i.a)(a._11),o=n.i(i.a)(a._12),l=n.i(i.a)(a._13),u=n.i(i.a)(a._14),c=n.i(i.a)(a._15)},function(e,t,n){"use strict";function i(e){var t=e.ui.libraryPage.details;return t?t.types:void 0}t.a=i},function(e,t,n){"use strict";var i=n(5),a=(n.n(i),n.i(i.createSelector)(function(e){return e.ui.liveTVSettingsPage},function(e){var t=e.dvrSetup.setupErrorMessages;return t.length?t[0].message:null}));t.a=a},function(e,t,n){"use strict";function i(){
return n.i(a.createSelector)(r.a,function(e,t){return t.searchResultEntityID},function(e,t){return e[t]})}var a=n(5),r=(n.n(a),n(1796));t.a=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(56);n.d(t,"SERVER",function(){return i.f}),n.d(t,"PROVIDER",function(){return i.e}),n.d(t,"LIBRARY",function(){return i.g}),n.d(t,"HUB",function(){return i.c}),n.d(t,"USER",function(){return i.m}),n.d(t,"RESOURCE",function(){return i.n}),n.d(t,"FRIEND",function(){
return i.o}),n.d(t,"METADATA_LIST",function(){return i.d}),n.d(t,"METADATA_ITEM",function(){return i.b}),n.d(t,"SESSION",function(){return i.h}),n.d(t,"USER_PLAYLIST_ITEM",function(){return i.i}),n.d(t,"MEDIA_SUBSCRIPTION",function(){return i.a}),n.d(t,"LIVE_TV_SESSION",function(){return i.j}),n.d(t,"PLAY_QUEUE_ITEM",function(){return i.k}),n.d(t,"PLAYLIST_ITEM",function(){return i.l}),n.d(t,"SEARCH_RESULT",function(){return a}),n.d(t,"SYNC_METADATA_ITEM",function(){return r})
;var a="searchResults",r="syncMetadataItems"},function(e,t,n){"use strict";var i=n(3057),a=n.n(i),r=n(18),s=n(15),o={success:!0,error:!0,notify:!0},l=r.a.ItemView.extend({className:"alert-bar",template:a.a,events:{"click .close-btn":"onCloseClick"},initialize:function(e){var t=e.alert;if(this.alert=t,t){var n=t.type;n&&o[n]&&this.$el.addClass(n)}},hide:function(){s.a.trigger("hide:bar","alertbar")},serializeData:function(){return this.alert},onCloseClick:function(e){e.preventDefault(),
this.hide()}});t.a=l},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(10),s=n.n(r),o=n(18),l=n(4),u=n(19),c=n(154),d=n(422),p=n(1706),h=n(890),f=n(1699),v=n(198),m=o.a.Layout.extend({ui:{formGroup:".form-group"},onlyAfterRender:["showValidationResult"],serializeData:function(){var e={};return this.model.isNew()?e.add=!0:e.edit=!0,e.section=this.model.toJSON(),e},showValidationResult:function(e){var t=this.ui.formGroup;t.removeClass("has-error"),a.a.each(e,function(e){
t.filter("."+e+"-group").addClass("has-error")}),this.trigger(e.length?"invalid":"valid")},createMenuOptions:function(e,t){return a.a.map(e,function(e){return'<option value="'+e.value+'"'+(e.value===t?" selected":"")+">"+e.label+"</option>"}).join("\n")},getSectionType:function(){if(this.model.sectionType)return this.model.sectionType;var e=this.model.get("type"),t=c.a.get(e);return"movie"===e&&"com.plexapp.agents.none"===this.model.get("agent")&&(t=c.a.get("videos")),this.model.sectionType=t,t
},setSectionType:function(e){this.model.sectionType=e},populateAgents:function(){var e=this.getSectionType();return e?(this.model.agents||(this.model.agents=new d.a([],{server:this.model.server,mediaTypeID:e.typeID})),this.model.agents.populate().then(function(e){return e})):s.a.Deferred().reject().promise()},populateScanners:function(){var e=this.getSectionType();return e?(this.model.scanners||(this.model.scanners=new p.a([],{server:this.model.server,sectionTypeID:e.typeID})),
this.model.scanners.populate().then(function(e){return e})):s.a.Deferred().reject().promise()},populateAgentsProxy:function(){var e=this.getSectionType().exclusiveAgents,t=new h.a(this.model.agents,e,this.model.get("agent"));return this.model.agentsProxy=t,s.a.Deferred().resolve(t).promise()},populateScannersProxy:function(){var e=this.getSectionType().exclusiveScanners,t=new f.a(this.model.scanners,e,this.model.get("scanner"));return this.model.scannersProxy=t,
s.a.Deferred().resolve(t).promise()},populateSectionSettings:function(){var e=this;if(!this.model.server.supports("sectionSettings"))return s.a.Deferred().resolve().promise();if(!this.model.settings){var t=new v.a([],{server:this.model.server});if(this.model.isNew()){var i=this.getSectionType(),a=this.model.server.hasOwnerFeature("photo_autotags");"photos"===i.key&&a&&this.model.set("enableAutoPhotoTags",!0);var r={type:i.typeID,agent:this.model.get("agent"),
enableAutoPhotoTags:this.model.get("enableAutoPhotoTags")};t.url=u.join(["/library/sections/prefs"],r)}else t.url=u.join(["/library/sections/",this.model.id,"/prefs"]);this.model.settings=t}return this.model.settings.populate().then(function(){return!(!e.model.isNew()||"music"!==e.model.get("type")||!e.model.server.supports("premiumMusic")||e.model.settings.findWhere({id:"importFromiTunes"})||!e.model.server.get("desktop").get("settings").findWhere({id:"iTunesLibraryXmlPath"
}))&&e.model.settings.unshift({type:"bool",id:"importFromiTunes",value:!1,label:n.i(l.default)("Import from iTunes"),summary:n.i(l.default)("Importing from iTunes will import your music playlists. It will also import your ratings, the date you added the music, as well as play and skip counts for tracks in your library.")}),e.model.settings})},populateSectionAgentSettings:function(){if(!this.model.agentSettings){var e=new v.a([],{server:this.model.server,
url:u.join(["/:/plugins/",this.model.get("agent"),"/prefs"])});this.model.agentSettings=e}return this.model.agentSettings.populate()},onModalClose:function(){this.model.scanners=null,this.model.scannersProxy=null,this.model.agents=null,this.model.agentsProxy=null,this.model.settings=null}});t.a=m},function(e,t,n){"use strict";var i=n(322),a=n.n(i),r=n(1509),s=r.a.extend({className:"container",template:a.a});t.a=s},function(e,t,n){"use strict"
;var i=n(3),a=n.n(i),r=n(10),s=n.n(r),o=n(62),l=o.a.extend({className:"select-modal modal modal-sm fade",events:a.a.extend({"click a":"onClick"},o.a.prototype.events),initialize:function(){o.a.prototype.initialize.apply(this,arguments),this.promise=s.a.Deferred()},onRender:function(){o.a.prototype.onRender.apply(this,arguments)},onHide:function(e){o.a.prototype.onHide.apply(this,arguments),this.promise.reject()},onClick:function(e){e.preventDefault(),
this.promise.resolve(s()(e.currentTarget).data("value")),this.hide()}});t.a=l},function(e,t,n){"use strict";var i=n(3180),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(13),c=n(4),d=n(15),p=n(49),h=n(28),f=n(759),v=n(518),m=n(1711),g=n(62),y=n(1965),b=n(1973),S=n(1964),I=n(1968),M=n(1972),C=n(1969),w=n(182),D=g.a.extend({name:"editFriendModal",className:"edit-friend-modal modal modal-lg fade",template:a.a,panes:{username:b.a,general:S.a,ownedServer:I.a,sharedServer:M.a,restrictions:C.a},ui:{
poster:".modal-poster",title:".modal-title",message:".form-message",nextBtn:".next-btn",submitBtn:".submit-btn"},regions:{nav:".modal-nav-pane",body:".modal-body-pane"},events:s.a.extend({"submit #share-server-form":"onSubmit"},g.a.prototype.events),initialize:function(e){g.a.prototype.initialize.apply(this,arguments),e||(e={}),this.type=e.type||"friend",this.isAdmin=e.isAdmin,this.defaultPaneType=e.defaultPaneType,this.defaultPaneID=e.defaultPaneID,"home"===this.type&&this.initHomeUser(e),
this.initModel(e),this.initServerOverviews(e),this.initServerShares(e),this.image=new w.a({model:this.model,type:"friend",width:40}),this.listenTo(this.body,"show",this.onShowPane)},initHomeUser:function(e){var t=u.a("appModel");if(this.homeUser=e.homeUser,this.homeUser){var n=t.get("user"),i=n.get("desktop").get("friends");this.model=i.findWhere({id:e.homeUser.id}),this.tempHomeUser=this.homeUser.clone()}else this.tempHomeUser=new v.a({admin:!1},{server:t.get("user").server})},
initModel:function(e){var t=u.a("appModel");this.model?this.tempModel=this.model.cloneDeep():(this.tempModel=new f.a({},{server:t.get("user").server}),this.tempModel.parseServers({Server:[]}))},initServerOverviews:function(e){var t=u.a("appModel"),n=t.get("servers"),i=t.get("user"),a=this.tempModel.get("serverOverviews");a||(a=new m.a([],{server:i.server,parent:this.tempModel}),this.tempModel.set("serverOverviews",a));var r=n.filter(function(e){
var t=!e.get("shared")&&!e.get("cloud"),n=e.get("isFullServer")||e.get("isCloudSyncServer");return e.id&&t&&n});s.a.each(r,function(e){a.add({machineIdentifier:e.id,name:e.get("friendlyName")}).populate()})},initServerShares:function(e){this.tempModel.get("serverShares").each(function(e){e.populate()})},serializeData:function(){return{type:this.type,title:this.tempModel.get("title")}},showNextPane:function(e){var t,n={};if(e||(e=this.tempModel.isNew()?"username":this.defaultPaneType||"general"),
"ownedServer"===e||"sharedServer"===e){var i,a;if("ownedServer"===e?(i=this.tempModel.get("serverOverviews"),a="serverOverview"):(i=this.tempModel.get("serverShares"),a="serverShare"),i.length){var r;this.defaultPaneID&&(r=i.findWhere({machineIdentifier:this.defaultPaneID})),r||(r=i.first()),t=r.id,n[a]=r}else e="general"}t||(t=e),this.showPane(e,t,n)},showPane:function(e,t,n){this.currentPane&&(this.currentPane.flushChanges(),this.stopListening(this.currentPane),
"username"===this.currentPane.paneID&&(this.ui.title.text(this.tempModel.get("username")||this.tempModel.get("title")),this.findExistingFriend()));var i=this.panes[e],a=new i(s.a.extend({paneID:t,model:this.tempModel,homeUser:this.tempHomeUser,type:this.type,isAdmin:this.isAdmin},n));return this.listenTo(a,{"change:pane":this.onChangePane,"change:errorMessage":this.onErrorMessageChange,"enable:submit":this.onEnableSubmit,"destroy:homeUser":this.onHomeUserDestroy,
"destroy:friend":this.onFriendDestroy,"destroy:serverShare":this.onServerShareDestroy,"disable:guest":this.onGuestDisable}),this.currentPane=a,this.nav.currentView.selectItem(t),this.body.show(a),a},getSubmitBtn:function(){return this.currentPane&&"username"===this.currentPane.paneID?this.ui.nextBtn:this.ui.submitBtn},findExistingFriend:function(){var e,t=u.a("appModel"),n=t.get("user"),i=n.get("desktop").get("friends"),a=this.tempModel.get("username")
;if(this.tempModel.get("restricted")?e=i.findWhere({restricted:!0,title:a}):(e=i.findWhere({username:a}))||(e=i.findWhere({email:a})),e){var r=this.tempModel.get("serverOverviews");this.model=e,this.tempModel=e.cloneDeep(),this.tempModel.set("serverOverviews",r),this.initServerShares(),this.image.setModel(this.model),this.image.render(),this.nav.currentView.setModel(this.tempModel)}},sendRequests:function(){var e=this.tempHomeUser&&this.tempHomeUser.isNew(),t=!e&&this.tempModel.isNew(),i=[]
;i.push(this.sendFriendInvite()),i.push(this.sendHomeInvite());var a=l.a.when.apply(l.a,i);return a=a.then(s.a.bind(function(){return Array.prototype.push.apply(i,this.sendServerShareInvites()),this.tempModel.isNew()||i.push(this.tempModel.save({},{parse:!1})),this.tempHomeUser&&!e&&i.push(this.tempHomeUser.save()),l.a.when.apply(l.a,i)},this)),a.done(s.a.bind(function(){var e=u.a("appModel"),t=e.get("user");t.get("desktop").get("friends").fetch(),"home"===this.type&&t.get("homeUsers").fetch(),
this.tempModel.get("restricted")||t.get("desktop").get("sentInvites").fetch(),this.hide()},this)),a.fail(s.a.bind(function(i){var a=p.a.parseXML(i.responseText),r=a&&a.status;s.a.isString(r)||(r=e?n.i(c.default)("This user could not be added to your home."):t?n.i(c.default)("An invite could not be sent to this user."):n.i(c.default)("Your changes could not be saved.")),d.a.trigger("show:alert",{type:"error",message:r})},this)),a},sendFriendInvite:function(){if("friend"===this.type){
var e=this.tempModel.get("serverShares").getActiveCount();return this.tempModel.isNew()&&!e?this.tempModel.save({user:this.tempModel.get("username")}):void 0}},sendHomeInvite:function(){if("home"===this.type&&this.tempHomeUser.isNew()){var e=this.tempHomeUser.save();return e.done(s.a.bind(function(){if(this.tempHomeUser.get("restricted")){this.tempModel.set("id",this.tempHomeUser.id);u.a("appModel").get("user").set("home",!0)}this.showHomeWarnings()},this)),e}},showHomeWarnings:function(){
h.a.execute("showHomeWarningsModal")},sendServerShareInvites:function(){var e=this.model&&this.model.get("serverShares").filterByOwned(),t=this.tempModel.get("serverShares").filterByOwned(),n=e?e.pluck("machineIdentifier"):[],i=t?t.pluck("machineIdentifier"):[],a=s.a.union(n,i),r=[];return s.a.each(a,function(n){var i=e&&e.findWhere({machineIdentifier:n}),a=t&&t.findWhere({machineIdentifier:n}),s=i&&i.isActive();a&&a.isActive()?r.push(h.a.execute("shareServer",{user:this.tempModel,serverShare:a
})):s&&r.push(i.destroy({wait:!0}))},this),r},onRender:function(){g.a.prototype.onRender.apply(this,arguments),this.image.setElement(this.ui.poster);var e=new y.a({model:this.tempModel});this.listenTo(e,"change:pane",this.onChangePane),this.nav.show(e),this.showNextPane()},onClose:function(){this.image.close()},onChangePane:function(e,t,n){t||(t=e),this.showPane(e,t,n)},onShowPane:function(){var e="username"===this.currentPane.paneID;this.nav.currentView.toggleDisabled(e),
this.ui.nextBtn.toggleClass("hidden",!e),this.ui.submitBtn.toggleClass("hidden",e)},onErrorMessageChange:function(e){this.ui.message.text(e)},onEnableSubmit:function(e){this.getSubmitBtn().toggleClass("disabled",!e)},onHomeUserDestroy:function(){if(this.homeUser){h.a.execute("removeHomeUser",{homeUser:this.homeUser}).done(s.a.bind(this.hide,this))}},onFriendDestroy:function(){if(this.model){h.a.execute("removeFriend",{friend:this.model}).done(s.a.bind(this.hide,this))}},
onServerShareDestroy:function(e){h.a.execute("removeServerShare",{serverShare:e}).done(s.a.bind(function(){this.model.get("serverShares").remove(e.id),this.showNextPane("general")},this))},onGuestDisable:function(){var e=u.a("appModel");h.a.execute("toggleGuest",{user:e.get("user"),enable:!1}).done(s.a.bind(this.hide,this))},onSubmit:function(e){e.preventDefault();var t=this.getSubmitBtn();if(!t.isDisabled()){if("username"===this.currentPane.paneID)return void this.showNextPane("ownedServer")
;t.addClass("active"),this.currentPane.flushChanges(),this.sendRequests().fail(s.a.bind(function(){this.ui.submitBtn.removeClass("active")},this))}}});t.a=D},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children,i=e.component,a=e.width,s=e.height,l=e.url,c=u()(e,["className","children","component","width","height","url"]);return o()("div",{className:t,style:{width:a,height:s}},void 0,d.a.createElement(i,r()({width:a,height:s,url:l},c)),n)}
var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(2726),h=n.n(p);i.defaultProps={className:h.a.card},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.children,i=e.errorMessage,a=e.onModalClose;return r()(u.a,{onModalClose:a},void 0,r()(c.a,{},void 0,n.i(o.default)("DVR Setup")),i&&r()("div",{className:p.a.errorMessage},void 0,r()(l.a,{name:"plex-icon-alert-560",className:p.a.errorIcon}),i),t)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),
n(4)),l=n(27),u=n(94),c=n(102),d=n(2760),p=n.n(d);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.target,n=e.isOpen,i=e.onMenuClose,a=o()(e,["target","isOpen","onMenuClose"]);return r()(c.a,{target:t,isOpen:n,onMenuClose:i},void 0,u.a.createElement(d.a,a))}var a=n(2),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(68),d=n(2111);i.defaultProps={allowRedirectOnDelete:!1},t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(s.a,o.a,n.i(l.a)(),function(e,t){
var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{title:i.title,index:i.index,route:n.i(u.a)(e,t,i.key),parentTitle:i.parentTitle,parentIndex:i.parentIndex,parentRoute:n.i(u.a)(e,t,i.parentKey),originallyAvailableAt:i.originallyAvailableAt}})}var a=n(11),r=n(5),s=(n.n(r),n(45)),o=n(43),l=n(21),u=n(118),c=n(629);t.a=n.i(a.b)(i)(c.a)},function(e,t,n){"use strict";function i(e){var t=e.children,i=u()(e,["children"]);return d.a.createElement(m.a,r()({
title:n.i(p.default)("There was an unexpected error"),description:n.i(p.default)("Please visit our forums if you continue to experience problems")},i),o()(v.a,{to:h.a,target:"_blank",kind:f.b.PRIMARY},void 0,n.i(p.default)("Go to Forums")),t)}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(4),h=n(795),f=n(20),v=n(23),m=n(160);t.a=i},function(e,t,n){"use strict";function i(e,t){switch(e){case f.a:return S.a;case f.b:return I.a;case f.c:return M.a;case f.d:return y.a
;default:return b.a}}function a(e){var t=e.serverEntityID,a=e.providerEntityID,r=e.metadataListEntityID,o=e.metadataItemEntityIDs,y=e.containerKey,b=e.listType,S=e.listStyle,I=e.populatedRange,M=e.isPopulated,w=e.isPending,D=e.error,P=e.totalSize,N=e.showArtwork,L=e.viewportWidth,A=e.viewportHeight,k=e.contentHeight,_=e.scrollTop,O=e.columnAdjustment,j=e.onPageRequest,R=P||o.length;if(M&&R){var U=i(S),z=n.i(p.a)(b,R),B=S===f.b||S===f.c||S===f.d;return s()("div",{className:T.a.descendantHubCell
},void 0,!!z&&s()(m.a,{className:T.a.descendantHubCellHeader},void 0,s()(g.a,{},void 0,n.i(l.a)(z))),B&&x,s()(C.a,{showArtwork:N,contentHeight:k,scrollTop:_},void 0,s()(U,{serverEntityID:t,providerEntityID:a,metadataListEntityID:r,containerKey:y,listType:b,listContext:h.a,keyPropName:"metadataItemEntityID",items:o,itemsOffset:I.start,size:R,viewportWidth:L,viewportHeight:A,columnAdjustment:O,onPageRequest:j})),B&&E)}return w?s()("div",{className:T.a.emptyContainer},void 0,s()(v.a,{
label:n.i(d.a)(b)})):D?s()("div",{className:T.a.emptyMessage},void 0,n.i(c.a)(b)):s()("div",{className:T.a.emptyMessage},void 0,n.i(u.a)(b))}var r=n(2),s=n.n(r),o=n(0),l=(n.n(o),n(349)),u=n(1530),c=n(1531),d=n(1532),p=n(1533),h=n(32),f=n(77),v=(n(351),n(38)),m=n(448),g=n(371),y=n(2296),b=n(2304),S=n(2303),I=n(2306),M=n(2305),C=n(653),w=n(654),D=n(652),P=n(2875),T=n.n(P),x=s()(w.a,{}),E=s()(D.a,{});t.a=a},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children;return r()("div",{
className:t},void 0,n)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2883)),l=n.n(o);i.defaultProps={className:l.a.rightTitle},t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(s.a,function(e){return{selectedItemsCount:e.activeSelectionItems.length}})}function a(e,t){var n={serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metricsPage:t.metricsPage};return{onDeselectAllPress:function(){e(o.d(n))}}}var r=n(5),s=(n.n(r),n(83)),o=n(288),l=n(138),u=n(2510)
;t.a=n.i(l.a)(i,a)(u.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"b",function(){return r});var i="RECORDING_PRIORITY_SUBSCRIPTION",a="PLAY_QUEUE_ITEM",r="PLAYLIST_ITEM"},function(e,t,n){"use strict";function i(e,t,n){return r()({},e,n,t)}var a=n(6),r=n.n(a);t.a=i},function(e,t,n){"use strict";var i=n(210),a=n(257),r=n.n(a),s=n(3014),o=n.n(s),l=n.i(i.a)(r.a.slowSpeed),u={appear:o.a.appear,appearActive:o.a.appearActive,enter:o.a.enter,
enterActive:o.a.enterActive,leave:o.a.leave,leaveActive:o.a.leaveActive},c={transitionName:u,transitionAppear:!0,transitionAppearTimeout:l,transitionEnterTimeout:l,transitionLeaveTimeout:2*l};t.a=c},function(e,t,n){e.exports=!n(259)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(315),a=n(472);e.exports=n(312)?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){
return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var i=n(379),a=n(1068),r=n(678),s=Object.defineProperty;t.f=n(312)?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),a)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(1074),a=n(668);e.exports=Object.keys||function(e){return i(e,a)}},function(e,t,n){
var i=n(675)("wks"),a=n(474),r=n(163).Symbol,s="function"==typeof r;(e.exports=function(e){return i[e]||(i[e]=s&&r[e]||(s?r:a)("Symbol."+e))}).store=i},,,,,function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){function r(e,t){var i,a,r="";return r+=' <h2 class="text-muted">',(a=n.subtitle)?i=a.call(e,{hash:{},data:t}):(a=e&&e.subtitle,i=typeof a===c?a.call(e,{hash:{},data:t}):a),(i||0===i)&&(r+=i),r+="</h2> "}function s(e,t){var i,a,r="";return r+=" <p>",
(a=n.message)?i=a.call(e,{hash:{},data:t}):(a=e&&e.message,i=typeof a===c?a.call(e,{hash:{},data:t}):a),(i||0===i)&&(r+=i),r+="</p> "}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var o,l,u="",c="function",d=this;return u+='<div class="row row-padded"> <div class="col-md-8 col-md-offset-2"> <h1>',(l=n.title)?o=l.call(t,{hash:{},data:a}):(l=t&&t.title,o=typeof l===c?l.call(t,{hash:{},data:a}):l),(o||0===o)&&(u+=o),u+="</h1> ",o=n.if.call(t,t&&t.subtitle,{hash:{},
inverse:d.noop,fn:d.program(1,r,a),data:a}),(o||0===o)&&(u+=o),u+=" ",o=n.if.call(t,t&&t.message,{hash:{},inverse:d.noop,fn:d.program(3,s,a),data:a}),(o||0===o)&&(u+=o),u+=" </div> </div>"})},function(e,t,n){function i(e,t){return s(r(e,t,a),e+"")}var a=n(1120),r=n(3309),s=n(3312);e.exports=i},,,,,,,,function(e,t,n){"use strict";var i=n(197),a=new i.a({
props:["X-Plex-Client-Identifier","X-Plex-Device","X-Plex-Device-Name","X-Plex-Device-Screen-Resolution","X-Plex-Device-Vendor","X-Plex-Model","X-Plex-Platform","X-Plex-Platform-Version","X-Plex-Product","X-Plex-Version"]});t.a=a},function(e,t,n){"use strict";var i=n(22),a=n(737),r=i.a.extend({name:"PlayQueueItemCollection",context:["server","identifier","mediaTagPrefix","mediaTagVersion"],model:a.a});t.a=r},function(e,t,n){"use strict"
;var i=n(3),a=n.n(i),r=n(19),s=n(154),o=n(1503),l=n(30),u=n(56),c=n(53),d=n(16),p=n(17),h=n(202),f=n(1290),v=n(745),m=n(1280),g=n(1269),y=n(743),b=n(741),S=n(1265),I=n(334),M=n(269),C=n(509),w=n(742),D=n(1267),P=n(198),T=p.a.extend({name:"SectionModel",context:["server"],entityType:u.g,entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return n.i(c.a)(this.entityType,e.key,this.server.entityID())},idAttribute:"key",rootPropertyName:"Directory",
cache:new h.a,persistInCache:!0,cacheKey:function(e){return this.server&&this.server.getScopedKey(e.key)},url:function(){return this.isNew()?a.a.result(this,"urlRoot")||a.a.result(this.collection,"url"):a.a.isNaN(parseInt(this.id,10))?this.id:"/library/sections/"+this.id},sessionAttrs:{isSection:d.a.boolean,currentFilters:d.a.array,currentFolderKey:d.a.string,settings:d.a.instanceOf(P.a)},syncedAttrs:{key:d.a.oneOfType(d.a.string,d.a.integer),uuid:d.a.string,thumb:d.a.string,art:d.a.string,
createdAt:d.a.integer,updatedAt:d.a.integer,allowAdvancedFilters:d.a.boolean,allowSync:d.a.boolean,refreshing:d.a.boolean,name:{type:d.a.string,save:!0},title:{type:d.a.string,save:!0},type:{type:d.a.string,save:!0},agent:{type:d.a.string,save:!0},scanner:{type:d.a.string,save:!0},language:{type:d.a.string,save:!0},importFromiTunes:{type:d.a.boolean,save:!0},enableAutoPhotoTags:{type:d.a.boolean,save:!0}},derivedAttrs:{serverEntityID:function(){return this.state?this.server.entityID():""}},
syncedRelations:{locations:function(){return{relationClass:D.a,rootPropertyName:"Location",options:{section:this},save:!0}}},sessionRelations:{items:function(){return{relationClass:f.a,options:{section:this}}},currentSubset:function(){return{relationClass:v.a,options:{section:this}}},currentFirstCharacter:function(){return{relationClass:w.a,deferred:!0}},currentType:function(){return{relationClass:y.a,deferred:!0}},currentSort:function(){return{relationClass:M.a,deferred:!0}},types:function(){
return{relationClass:g.a,options:{section:this}}},subsets:function(){return{relationClass:m.a,options:{section:this}}},filters:function(){return{relationClass:this.get("allowAdvancedFilters")?b.a:S.a,options:{section:this}}},sorts:function(){return{relationClass:I.a,options:{section:this}}},firstCharacters:function(){return{relationClass:C.a,options:{section:this}}}},defaults:function(){var e=this;return{isSection:!0,currentType:null,currentFilters:[],currentSort:null,currentFirstCharacter:null,
currentFolderKey:null,currentSubset:o.a.get("all"),settings:new P.a([],{server:this.server,url:function(){return r.join(["/library/sections/",e.get("key"),"/prefs"])}})}},initialize:function(e){this.updateMediaTypes(this,e.type),this.set({currentType:this.get("types").findWhere({typeString:e.type})}),this.on("change:type",this.updateMediaTypes,this)},uninitialize:function(){this.off("change:type",this.updateMediaTypes,this),this.stopListening()},augmentResponse:function(e){
return e.allowAdvancedFilters=!!e.filters,delete e.filters,e},getSectionType:function(){var e=this.get("type");return s.a.get(e)},getSaveParams:function(e){var t=p.a.prototype.getSaveParams.apply(this,arguments);if("type"in t){var n=s.a.get(t.type);n&&(t.type=n.typeString)}return"title"in t&&(t.name=t.title,delete t.title),a.a.isObject(t.type)&&(t.type=t.type.typeString),"Location"in t&&(t.location=a.a.pluck(t.Location,"path"),delete t.Location),t},getSyncTitle:function(e){
var t=this.get("title"),n=[],i=this.get("currentSubset"),r=this.get("currentFilters");return e?(a.a.each(e,function(e){n.push(e.get("title"))}),t+": "+n.join(", ")):"all"!==i.id?t+": "+i.get("title"):r.length?(a.a.each(r,function(e){n.push(e.titles.join(", "))}),t+": "+n.join(",")):t},setAgentAndScanner:function(e,t,n,i){var a=e.defaultAgent,r=e.defaultScanner;if(i){var s=e.exclusiveAgents,o=e.exclusiveScanners,l=t.hasExclusiveAgent(s),u=n.hasExclusiveScanner(o);l&&(a=s[0]),u&&(r=o[0])}
this.set({agent:a,scanner:r})},updateMediaTypes:function(e,t){var i=n.i(l.p)(t);this.get("types").reset(i)}});t.a=T},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(19),s=n(22),o=n(269),l=s.a.extend({name:"SortCollection",context:["server","section","typeID"],model:o.a,url:function(){var e=a.a.result(this.section,"url"),t=this.typeID||this.section.get("currentType").id,n=t?{type:t}:{};return r.join([e,"/sorts"],n)}});t.a=l},function(e,t,n){"use strict";n.d(t,"f",function(){return i}),
n.d(t,"g",function(){return a}),n.d(t,"h",function(){return r}),n.d(t,"j",function(){return s}),n.d(t,"a",function(){return o}),n.d(t,"b",function(){return l}),n.d(t,"c",function(){return u}),n.d(t,"d",function(){return c}),n.d(t,"e",function(){return d}),n.d(t,"i",function(){return p})
;var i="RESET_PRIMARY_SERVER",a="CHANGE_PRIMARY_SERVER",r="GARBAGE_COLLECT_ENTITIES",s="CONFIRM_RELAY_CONNECTION",o="START_ACTIVITY",l="UPDATE_ACTIVITY",u="FINISH_ACTIVITY",c="START_SYNTHETIC_ACTIVITY",d="FINISH_SYNTHETIC_ACTIVITY",p="CHANGE_ACTIVE_PLAY_QUEUE_ITEM"},function(e,t,n){"use strict";function i(e){var t=e.metadataItemModel,n=e.listType;return t.get("isPlaylist")?t.get("playlistType"):r(n,t.get("type"))}function a(e){var t=e.metadataListModel;return r(e.listType,t.get("firstItemType"))
}function r(e,t){var i=void 0;return e&&(i=n.i(u.n)(e)),i||(i=n.i(u.n)(t)),i&&i.mediaType}function s(e){var t=e.type,n=e.metadataType,s=e.metadataItemModel,o=e.metadataItemModels,u=e.metadataListModel;return t?t:n?r(n):s?i(e):o&&o.length?i(l()({},e,{metadataItemModel:o[0]})):u?a(e):void 0}var o=n(6),l=n.n(o),u=n(30);t.a=s},function(e,t,n){"use strict";function i(e){var t=e.get("remotePlayer");return t?t.get("protocol")===a.a?s:o:r}var a=n(541),r=n(523),s=n(1360),o=n(1361);t.a=i},function(e,t,n){
"use strict";function i(e){return d.a.Deferred().resolve(e).promise()}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.urlPath,i=void 0===n?"":n,a=t.params,r=void 0===a?{}:a,s=t.type,l=void 0===s?"GET":s,c=p.join([u.a.result(e,"url"),i]),h=p.join(c,o()({},r,{repeat:e.get("repeat")?1:0,own:e.get("own")?1:0,includeChapters:1})),f=e.server,v=f.getXHROptions(h,{type:l}),m=e.get("playQueueSelectedItemID");return e.set("isUpdatePending",!0),
d.a.ajax(v).promise().then(function(t){return m===e.get("playQueueSelectedItemID")&&e.set(e.parse(t)),e.get("playQueueItems").length?d.a.Deferred().resolve(e).promise():d.a.Deferred().reject().promise()}).always(function(){e.set("isUpdatePending",!1)})}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.get("isLocal")?i(e):a(e,t)}var s=n(6),o=n.n(s),l=n(3),u=n.n(l),c=n(10),d=n.n(c),p=n(19);t.a=r},function(e,t,n){"use strict";function i(){
return n.i(a.createSelector)(n.i(r.a)(),function(e){if(e){var t=e.librarySectionKey,n=e.librarySectionID;return t?t:n?"/library/sections/"+n:void 0}})}var a=n(5),r=(n.n(a),n(21));t.a=i},function(e,t,n){"use strict";function i(){return n.i(h.a)(n.i(p.a)(),n.i(f.a)(),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.a.findWhere(t.features,{type:d.a.CONTENT});if(i&&i.directories)return i.directories.map(function(e){return t.isLibraryProvider&&"/hubs"===e.hubKey?r()({
isHomeDirectory:!0},e):e});if(t.identifier===c.a.LIBRARY_PROVIDER_IDENTIFIER){var a=[{hubKey:"/hubs",isHomeDirectory:!0,title:n.i(l.default)("Home")},{key:"/playlists",title:n.i(l.default)("Playlists"),type:u.d}];return e.forEach(function(e){var t=e.key,n=e.title,i=e.type;a.push({key:"/library/sections/"+t,hubKey:"/hubs/sections/"+t,title:n,type:i})}),a}return[]})}var a=n(6),r=n.n(a),s=n(3),o=n.n(s),l=n(4),u=n(30),c=n(72),d=n(133),p=n(527),h=n(526),f=n(136);t.a=i},function(e,t,n){"use strict"
;var i={NEVER:"never",SAME_NETWORK:"samenetwork",ALWAYS:"always"};i.settings=[{value:i.NEVER,title:"Never"},{value:i.SAME_NETWORK,title:"On same network as server"},{value:i.ALWAYS,title:"Always"}],t.a=i},function(e,t,n){"use strict";function i(e){return c[e]}function a(e){for(var t in c){if(e===c[t])return t}}var r=n(232);n.d(t,"c",function(){return o}),n.d(t,"d",function(){return l}),n.d(t,"b",function(){return u}),t.a=i,t.e=a;var s,o="video",l="music",u="photo",c=(s={},s[r.a]=o,s[r.b]=l,
s[r.c]=u,s)},function(e,t,n){"use strict";function i(e){if(null==e)return!1;var t=r.a.unix(e);return r()().isSame(t,"day")}var a=n(40),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){if(!e||"object"!==(void 0===e?"undefined":o()(e)))return!1;var t="function"==typeof e.constructor?r()(e):Object.prototype;if(null===t)return!0;var n=t.constructor;return"function"==typeof n&&n instanceof n&&l(n)===u}var a=n(2574),r=n.n(a),s=n(258),o=n.n(s);t.a=i;var l=function(e){
return Function.prototype.toString.call(e)},u=l(Object)},function(e,t,n){"use strict";n.d(t,"b",function(){return r});var i,a=(i={aa:"Afaraf",af:"Afrikaans",ab:"Abkhazian",ak:"Akan",sq:"Shqip",am:"Amharic",ar:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",an:"Aragon\xe9s",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",as:"Assamese",av:"\u0430\u0432\u0430\u0440 \u043c\u0430\u0446\u04c0",ae:"avesta",ay:"aymar aru",az:"az\u0259rbaycan dili",
ba:"\u0431\u0430\u0448\u04a1\u043e\u0440\u0442 \u0442\u0435\u043b\u0435",bm:"bamanankan",eu:"euskara",be:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",bn:"Bengali",bh:"\u092d\u094b\u091c\u092a\u0941\u0930\u0940",bi:"Bislama",bs:"bosanski jezik",br:"brezhoneg",bg:"\u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438 \u0435\u0437\u0438\u043a",my:"Burmese",ca:"Catal\xe0",ch:"Chamoru",ce:"\u043d\u043e\u0445\u0447\u0438\u0439\u043d \u043c\u043e\u0442\u0442",
cu:"\u0469\u0437\u044b\u043a\u044a \u0441\u043b\u043e\u0432\u0463\u043d\u044c\u0441\u043a\u044a",cv:"\u0447\u04d1\u0432\u0430\u0448 \u0447\u04d7\u043b\u0445\u0438",kw:"Kernewek",co:"corsu",cr:"\u14c0\u1426\u1403\u152d\u140d\u140f\u1423",dv:"Divehi",dz:"\u0f62\u0fab\u0f7c\u0f44\u0f0b\u0f41",en:"English","en-GB":"English (UK)",eo:"Esperanto",et:"eesti",ee:"E\u028begbe",fo:"f\xf8royskt",fj:"vosa Vakaviti",fy:"Frysk",ff:"Fulfulde",ka:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8",gd:"G\xe0idhlig",
ga:"Gaeilge",gl:"Galego",gv:"Gaelg",gn:"Ava\xf1e&apos;\u1ebd",gu:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0",ht:"Krey\xf2l ayisyen",ha:"\u0647\u064e\u0648\u064f\u0633\u064e",hz:"Otjiherero",hi:"\u0939\u093f\u0928\u094d\u0926\u0940",ho:"Hiri Motu",hr:"hrvatski",ig:"As\u1ee5s\u1ee5 Igbo",is:"\xcdslenska",io:"Ido",ii:"\ua188\ua320\ua4bf Nuosuhxop",iu:"\u1403\u14c4\u1483\u144e\u1450\u1466",ie:"Interlingue",ia:"Interlingua",id:"Bahasa Indonesia",ik:"I\xf1upiaq",jv:"basa Jawa",kl:"kalaallisut",
kn:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1",ks:"\u0915\u0936\u094d\u092e\u0940\u0930\u0940",kr:"Kanuri",kk:"\u049a\u0430\u0437\u0430\u049b \u0442\u0456\u043b\u0456",km:"Khmer",ki:"G\u0129k\u0169y\u0169",rw:"Ikinyarwanda",ky:"\u043a\u044b\u0440\u0433\u044b\u0437 \u0442\u0438\u043b\u0438",kv:"\u043a\u043e\u043c\u0438 \u043a\u044b\u0432",kg:"KiKongo",kj:"Kuanyama",ku:"Kurd\xee",lo:"Lao",la:"latine",lv:"latvie\u0161u valoda",li:"Limburgs",ln:"Ling\xe1la",lt:"lietuvi\u0173 kalba",lb:"L\xebtzebuergesch",
lu:"Luba-Katanga",lg:"Luganda",mk:"\u043c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 \u0458\u0430\u0437\u0438\u043a",mh:"Kajin M\u0327aje\u013c",ml:"Malayalam",mi:"te reo M\u0101ori",mr:"\u092e\u0930\u093e\u0920\u0940",ms:"bahasa Melayu",mg:"Malagasy fiteny",mt:"Malti",mo:"Moldavian",mn:"\u043c\u043e\u043d\u0433\u043e\u043b",na:"Ekakair\u0169 Naoero",nv:"Din\xe9 bizaad",nr:"isiNdebele (North)",nd:"isiNdebele (South)",ng:"Owambo",ne:"\u0928\u0947\u092a\u093e\u0932\u0940",
nn:"Norsk nynorsk",nb:"Norsk bokm\xe5l",ny:"chiChe\u0175a",oc:"Occitan",oj:"\u140a\u14c2\u1511\u14c8\u142f\u14a7\u140e\u14d0",or:"Oriya",om:"Afaan Oromoo",os:"\u0438\u0440\u043e\u043d \xe6\u0432\u0437\u0430\u0433",pa:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40",pi:"\u092a\u093e\u0934\u093f",ps:"\u067e\u069a\u062a\u0648",qu:"Runa Simi",rm:"rumantsch grischun",ro:"rom\xe2n\u0103",rn:"kiRundi",sg:"y\xe2ng\xe2 t\xee s\xe4ng\xf6",sa:"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d",
sr:"\u0441\u0440\u043f\u0441\u043a\u0438 \u0458\u0435\u0437\u0438\u043a",si:"Sinhala",sk:"sloven\u010dina",sl:"Sloven\u0161\u010dina",se:"Davvis\xe1megiella",sm:"gagana fa&apos;a Samoa",sn:"chiShona",sd:"\u0938\u093f\u0928\u094d\u0927\u0940",so:"Soomaaliga",st:"Sesotho",sc:"sardu",ss:"SiSwati",su:"Basa Sunda",sw:"Kiswahili",ty:"Reo Tahiti",ta:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",tt:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",te:"Telugu",tg:"\u0442\u043e\u04b7\u0438\u043a\u04e3",tl:"Wikang Tagalog",
th:"\u0e44\u0e17\u0e22",bo:"\u0f56\u0f7c\u0f51\u0f0b\u0f61\u0f72\u0f42",ti:"Tigrinya",to:"faka Tonga",tn:"Setswana",ts:"Xitsonga",tk:"T\xfcrkmen",tw:"Twi",ug:"Uy\u01a3urq\u0259",uk:"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",ur:"\u0627\u0631\u062f\u0648",uz:"O&apos;zbek",ve:"Tshiven\u1e13a",vi:"Ti\u1ebfng Vi\u1ec7t",vo:"Volap\xfck",cy:"Cymraeg",wa:"Walon",wo:"Wollof",xh:"isiXhosa",yi:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",yo:"Yor\xf9b\xe1",za:"Sa\u026f cue\u014b\u0185",
zu:"isiZulu",pb:"Portugu\xeas (Brasil)",fr:"Fran\xe7ais","fr-CA":"Fran\xe7ais Canadien",de:"Deutsch",sv:"Svenska",no:"Norsk",da:"Dansk",fi:"Suomeksi",nl:"Nederlands",it:"Italiano",es:"Espa\xf1ol","es-419":"Espa\xf1ol (Latinoam\xe9rica)",pl:"Polski",hu:"Magyar",el:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",tr:"T\xfcrk\xe7e",zh:"\u4e2d\u6587","zh-TW":"\u81fa\u8a9e",ru:"\u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u044f\u0437\u044b\u043a",he:"\u05e2\u05d1\u05e8\u05d9\u05ea",
ja:"\u65e5\u672c\u8a9e",pt:"Portugu\xeas","pt-BR":"Portugu\xeas Brasileiro",ko:"\ud55c\uad6d\uc5b4",cs:"\u010de\u0161tina",fa:"\u0641\u0627\u0631\u0633\u06cc"},i.xx="Unknown",i.xn="None",i),r=["xx","xn"];t.a=a},function(e,t,n){"use strict";function i(e){if(!e)return"";var t=e/1e3;return t>=.1&&(t=Number(t.toFixed(1))),t+" Mbps"}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},function(e,t,n){"use strict";function i(e,t){var n=r.a.Deferred(),i=(new Date).getTime()+t,a=void 0
;return e.done(function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];a=function(){return n.resolve.apply(n,t)}}).fail(function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];a=function(){return n.reject.apply(n,t)}}).always(function(){var e=(new Date).getTime(),t=Math.max(i-e,0);setTimeout(a,t)}),n.promise()}var a=n(10),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){return e?e.toUpperCase():""}t.a=i},function(e,t,n){"use strict"
;function i(e){var t=e.toUpperCase(),n=t.match(/(\d{4})S/);if(n){var i=n[1];t=t.replace(i+"S",i+"s")}return t}t.a=i},function(e,t,n){"use strict";var i=n(7),a=n.n(i),r=n(9),s=n.n(r),o=n(8),l=n.n(o),u=n(0),c=n.n(u),d=n(3431),p=n.n(d),h=n(26),f=function(e){function t(){return a()(this,t),s()(this,e.apply(this,arguments))}return l()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(h.a)(this,e,t)},t.prototype.render=function(){return c.a.createElement(p.a,this.props)},t}(u.Component)
;f.defaultProps={component:"div",transitionName:{appear:"appear",enter:"enter",leave:"leave"},transitionAppear:!0,transitionEnter:!0,transitionLeave:!0},t.a=f},function(e,t,n){"use strict";var i=n(0);n.n(i),i.PropTypes.shape({start:i.PropTypes.number.isRequired,end:i.PropTypes.number.isRequired,size:i.PropTypes.number.isRequired})},function(e,t,n){"use strict";function i(e,t){if(e===t)return!0;var n=r()(e),i=r()(t);if(n.length!==i.length)return!1
;for(var a=Object.prototype.hasOwnProperty,s=0;s<n.length;s++)if(!a.call(t,n[s])||e[n[s]]!==t[n[s]])return!1;return!0}var a=n(65),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e,t){var n=t.constructor.prototype.validate;return n?n(e):[]}function a(e){var t=this.panes[e],n=o.call(this,t);return 0===i.call(this,n,t).length}function r(e,t){var n=this.panes[t].dependentPanes;return"function"==typeof n&&(n=n.call(this)),e.concat(n||[])}function s(){var e=this.$(".change-pane-btn")
;e.addClass("disabled").removeClass("selected"),u.a.each(this.getReachablePanes(),function(t){e.filter("."+t+"-btn").removeClass("disabled")},this),e.filter("."+this.selectedPane+"-btn").addClass("selected")}function o(e){return this[e.model]||this[this.panesModel]||this.model}var l=n(3),u=n.n(l),c={showPane:function(e){if(e!==this.selectedPane){var t=this.paneRegion.currentView;t&&(this.stopListening(t,"valid",s),this.stopListening(t,"invalid",s),this.$el.removeClass("pane-"+this.selectedPane),
this.onPaneHide&&this.onPaneHide(this.selectedPane,t)),this.selectedPane=e;var n=this.panes[e],i=n.constructor,a=this.paneConstructorArg?this.paneConstructorArg():{},r=new i(u.a.extend(a,{model:o.call(this,n)}));if(r.onModalClose){this._paneOnModalCloseCallbacks||this.listenToOnce(this,"close",function(){u.a.each(this._paneOnModalCloseCallbacks,function(e){e[1].call(e[0])},this),this._paneOnModalCloseCallbacks=null});var l=this._paneOnModalCloseCallbacks||[];l.push([r,r.onModalClose]),
this._paneOnModalCloseCallbacks=u.a.uniq(l,function(e){return e[1]})}this.listenTo(r,"valid",s),this.listenTo(r,"invalid",s),s.call(this),this.onPaneShow&&this.onPaneShow(e,r),this.$el.addClass("pane-"+e),this.paneRegion.show(r),s.call(this)}},getReachablePanes:function(){for(var e,t,n=u.a.reduce(this.panes,function(e,t){var n=t.dependentPanes;return"function"==typeof n&&(n=n.call(this)),u.a.union(e,n||[])},[],this),i=u.a.filter(u.a.keys(this.panes),function(e){return!u.a.contains(n,e)
}),s=i;s.length;)e=u.a.filter(s,a,this),t=t||e.length!==s.length,s=u.a.reduce(e,r,[],this),i=i.concat(s);return i.isAnyInvalid=t,i},onChangePaneClick:function(e){e.preventDefault();var t=this.$(e.currentTarget);t.isDisabled()||this.showPane(t.data("pane"))}};t.a=c},function(e,t,n){"use strict";var i=n(108),a=n(1657),r=i.a.extend({model:a.a,url:"/status/sessions/background",parse:function(e){return this.convert(e,"TranscodeJob")}});t.a=r},function(e,t,n){"use strict"
;var i,a,r=n(66),s=n(202),o=n(16),l=n(17),u=n(1666),c=n(1665),d=n(1661),p=n(1663),h=l.a.extend({name:"VersionGeneratorModel",context:["server","section","playlistID"],rootPropertyName:"Item",cache:new s.a,cacheKey:function(e){return this.server&&this.server.getScopedKey(e.id)},urlRoot:function(){return"/playlists/"+(this.playlistID||this.parent.id)+"/items"},syncedAttrs:{id:o.a.integer,clientIdentifier:o.a.string,contentType:o.a.string,composite:o.a.string,type:{type:o.a.integer,save:!0},title:{
type:o.a.string,save:!0},target:{type:o.a.string,save:!0},targetTagID:{type:o.a.integer,save:!0},locationID:{type:o.a.integer,save:!0},Location:{type:o.a.object,save:!0},Device:{type:o.a.object,save:!0}},sessionRelations:{children:{relationClass:p.a,options:function(){return{generator:this}}}},syncedRelations:{status:{relationClass:u.a,rootPropertyName:"Status"},policy:{relationClass:c.a,rootPropertyName:"Policy",save:!0},mediaSettings:{relationClass:d.a,rootPropertyName:"MediaSettings",save:!0}
},derivedAttrs:{isDirectory:function(){var e=this.get("Location");if(e.uri)return/(playlist\:\/\/|library\:\/\/([\w-]*)\/directory\/)/.test(e.uri)}},defaults:function(){return{type:42,locationID:-1,Location:{},Device:{}}},defaultCounts:(i={},i[r.a]=5,i[r.d]=50,i[r.c]=50,i),warningCounts:(a={},a[r.a]=10,a[r.d]=100,a[r.c]=100,a),getSaveParams:function(e,t){var n=l.a.prototype.getSaveParams.apply(this,arguments);return n.targetTagID&&(delete n.MediaSettings,delete n.Device),{Item:n}},
setPolicyDefaultsFor:function(e){var t=this.get("policy"),n=this.get("isDirectory");return t.has("scope")||t.set("scope",n?"count":"all"),!t.has("value")&&n&&t.set("value",this.defaultCounts[e]),this},shouldShowPolicyWarning:function(e,t){var n=this.get("policy").get("scope");return"count"===n?t>this.warningCounts[e]:"all"===n&&this.get("isDirectory")}});t.a=h},function(e,t,n){"use strict";var i=n(17),a=n(16),r=n(224),s=n(888),o=n(1674);n.d(t,"a",function(){return l});var l={DEAD:"dead",
ALIVE:"alive"},u=i.a.extend({name:"MediaGrabberDeviceModel",context:["server"],rootPropertyName:"Device",idAttribute:"key",sessionAttrs:{isChannelsPending:a.a.boolean,isChannelsPopulated:a.a.boolean,channelsError:a.a.object,selectedSource:a.a.string,isSaving:a.a.boolean,saveError:a.a.object},sessionRelations:{channels:{relationClass:o.a}},syncedAttrs:{key:a.a.integer,uuid:a.a.string,parentID:a.a.integer,uri:a.a.string,protocol:a.a.string,status:a.a.string,state:a.a.string,lastSeenAt:a.a.integer,
make:a.a.string,model:a.a.string,modelNumber:a.a.string,source:a.a.integer,sources:a.a.list,tuners:a.a.integer,thumb:a.a.string},syncedRelations:{channelMappings:{rootPropertyName:"ChannelMapping",relationClass:s.a},prefs:{relationClass:r.a,rootPropertyName:"Setting",deferred:!0,save:!0}},defaults:{isChannelsPending:!1,isChannelsPopulated:!1,channelsError:null,isSaving:!1,saveError:null}});t.b=u},function(e,t,n){"use strict";var i=n(36),a=n(37);n.d(t,"g",function(){return r}),
n.d(t,"a",function(){return s}),n.d(t,"h",function(){return o}),n.d(t,"b",function(){return l}),n.d(t,"e",function(){return u}),n.d(t,"f",function(){return c}),n.d(t,"c",function(){return d}),n.d(t,"d",function(){return p}),n.d(t,"i",function(){return h});var r=n.i(i.a)(a._93),s=n.i(i.a)(a._94),o=n.i(i.a)(a._95),l=n.i(i.a)(a._96),u=n.i(i.a)(a._97),c=n.i(i.a)(a._98),d=n.i(i.a)(a._99),p=n.i(i.a)(a._100),h=n.i(i.a)(a._101)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0
});var i=n(36),a=n(37);n.d(t,"initRecordingSchedulePage",function(){return r}),n.d(t,"clearRecordingSchedulePage",function(){return s}),n.d(t,"fetchMediaSubscriptions",function(){return o}),n.d(t,"moveMediaSubscription",function(){return l}),n.d(t,"setVisibleDays",function(){return u}),n.d(t,"goToToday",function(){return c}),n.d(t,"goToPreviousRange",function(){return d}),n.d(t,"goToNextRange",function(){return p}),n.d(t,"fetchCalendar",function(){return h}),n.d(t,"playRecording",function(){
return f});var r=n.i(i.a)(a.P),s=n.i(i.a)(a.Q),o=n.i(i.a)(a.R),l=n.i(i.a)(a.S),u=n.i(i.a)(a.T),c=n.i(i.a)(a.U),d=n.i(i.a)(a.V),p=n.i(i.a)(a.W),h=n.i(i.a)(a.X),f=n.i(i.a)(a.Y)},function(e,t,n){"use strict";function i(){return n.i(s.createSelector)(function(e,t){return t.activeType},function(e,t){return t.typeKey},o.a,function(e,t,n){var i=void 0;return t?i=r.a.find(n,function(e){return e.key===t}):e&&(i=r.a.find(n,function(t){return t.type===e})),i||(i=r.a.first(n)),i})}
var a=n(3),r=n.n(a),s=n(5),o=(n.n(s),n(292));t.a=i},function(e,t,n){"use strict";function i(){return n.i(s.createSelector)(function(e,t){return t.deviceID},n.i(o.a)(),function(e,t){if(t)return r.a.find(t.devices,{key:e})})}var a=n(3),r=n.n(a),s=n(5),o=(n.n(s),n(427));t.a=i},function(e,t,n){"use strict";function i(e){if(e){var t=e.split("?"),n=t[1];return n?u.a.parseQueryString(n):void 0}}function a(e){if("now"===e)return{};var t=e.match(/[-+]?\d+[smhdwMy]/),n=t[1],i=t[2];if(n&&i){var a
;return a={},a[h[i]]=parseInt(n,10),a}return{}}function r(){return n.i(l.createSelector)(function(e,t){return t.containerKey},n.i(p.a)(),function(e,t){if(t&&t.Media){for(var r=i(e),s=o.a.sortBy(t.Media,"endsAt"),l=Date.now()/1e3,u=0,p=s.length;u<p;u++){var h=s[u];if(r){var f=r["beginsAt>"],v=r["beginsAt<"],m=r["endsAt>"],g=r["endsAt<"];if(f){var y=a(f);if(n.i(d.a)(h.beginsAt,y))continue}if(v){var b=a(v);if(n.i(c.a)(h.beginsAt,b))continue}if(m){var S=a(m);if(n.i(d.a)(h.endsAt,S))continue}if(g){
var I=a(g);if(n.i(c.a)(h.endsAt,I))continue}}if(h.endsAt>l)return h}return o.a.first(s)}})}var s=n(3),o=n.n(s),l=n(5),u=(n.n(l),n(60)),c=n(805),d=n(806),p=n(21);t.a=r;var h={s:"seconds",m:"minutes",h:"hours",d:"days",w:"weeks",M:"months",y:"years"}},function(e,t,n){"use strict";var i=n(3075),a=n.n(i),r=n(10),s=n.n(r),o=n(18),l=n(13),u=o.a.ItemView.extend({id:"primary-server-dropdown",tagName:"span",className:"dropdown",template:a.a,events:{"click .dropdown-menu a":"onServerClick"},
initialize:function(e){e||(e={});var t=l.a("appModel");this.showSharedServers=e.showSharedServers,this.model=t.get("primaryServer"),this.collection=t.get("servers"),this.listenTo(t,"change:primaryServer",this.render),this.listenTo(this.collection,{"change:friendlyName":this.render,"change:authorized":this.onServerAuthorizedChange})},serializeData:function(){var e=this.collection.reduce(function(e,t){var n=t.get("shared"),i=t.get("sections");if(n&&!(this.showSharedServers&&i&&i.findWhere({
allowSync:!0})))return e;var a=t.toJSON();return a.authorized&&!(a.cloud||a.synced||a.isOutOfDate)&&e.push(a),e},[],this);return{showDropdown:e.length>1,servers:e,currentServer:this.model?this.model.toJSON():null}},onServerAuthorizedChange:function(e,t){t&&this.render()},onServerClick:function(e){e.preventDefault();var t=l.a("appModel"),n=s()(e.currentTarget).data("id"),i=this.collection.get(n);i&&t.set("primaryServer",i)}});t.a=u},function(e,t,n){"use strict"
;var i=n(3154),a=n.n(i),r=n(3),s=n.n(r),o=n(62),l=n(79),u=o.a.extend({name:"libraryFailureModal",className:"confirm-modal modal modal-sm fade",template:a.a,events:s.a.extend({"click .confirm-btn":"hide"},o.a.prototype.events),serializeData:function(){return{serverID:this.model.id,isSignedIn:this.model.get("myPlexSigninState")===l.a,hasPlexPass:this.model.get("myPlexSubscription")}}});t.a=u},function(e,t,n){"use strict"
;var i=n(3192),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(13),c=n(61),d=n(62),p=n(1977),h=n(1975),f=n(1974),v=d.a.extend({name:"userSelectModal",className:"user-select-modal modal modal-transparent fade",template:a.a,transparent:!0,panes:{users:p.a,pin:h.a},regions:{content:".modal-content",alertBar:".modal-alert"},initialize:function(e){d.a.prototype.initialize.apply(this,arguments);var t=u.a("appModel");this.options=e,this.isForced=e.isForced,this.user=t.get("user"),
this.promise=l.a.Deferred()},showPane:function(e,t){this.currentPane&&this.stopListening(this.currentPane);var n=this.panes[e],i=new n(s.a.extend({},this.options,t));return this.listenTo(i,{"change:pane":this.onChangePane,resolve:this.onResolve,reject:this.onReject}),this.currentPane=i,this.content.show(i),i},showAlertBar:function(){var e=c.a.get("alerts");c.a.set("alerts",null);var t=new f.a({alert:s.a.first(e)});this.alertBar.show(t)},onRender:function(){
d.a.prototype.onRender.apply(this,arguments),this.model?this.showPane("pin",{focusDelay:this.focusDelay}):this.showPane("users"),this.showAlertBar()},onHide:function(e){d.a.prototype.onHide.apply(this,arguments),"pending"===this.promise.state()&&this.promise.reject()},onChangePane:function(e,t){this.showPane(e,t)},onResolve:function(e){if(c.a.has("continueUrl")&&!this.options.isEditing)return void(window.location=c.a.get("continueUrl"));this.promise.resolve(e),this.hide()},onReject:function(){
this.promise.reject(),this.hide()}});t.a=v},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(3),p=n.n(d),h=n(0),f=n.n(h),v=n(31),m=n(26),g=n(23),y=n(2694),b=n.n(y),S=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onMouseDown=function(e){e.preventDefault(),0===e.button&&a._startDrag(e.pageX)},a.onMouseMove=function(e){var t=e.pageX;if(!a.state.isDragging){
var n=a._getValueForPosition(t),i=a.refs.track,r=i.getBoundingClientRect();a.props.onMove({position:{x:t,y:r.top},positionValue:n,steppedValue:a._getSteppedValue(n)})}},a.onTouchStart=function(e){e.preventDefault();var t=p.a.first(e.touches);t&&a._startDrag(t.pageX,!0)},a.onDocumentMouseMove=function(e){a._drag(e.pageX)},a.onDocumentTouchMove=function(e){var t=p.a.first(e.touches);t&&a._drag(t.pageX)},a.onDocumentMouseUp=function(e){a._stopDrag(e.pageX)},a.onDocumentTouchEnd=function(e){
var t=p.a.first(e.changedTouches);t&&a._stopDrag(t.pageX)},a.state={isDragging:!1},a}return c()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(m.a)(this,e,t)},t.prototype.componentWillUnmount=function(){this._stopListeningForDrag()},t.prototype._listenForDrag=function(e){e?(document.addEventListener("touchmove",this.onDocumentTouchMove),document.addEventListener("touchcancel",this.onDocumentTouchEnd),
document.addEventListener("touchend",this.onDocumentTouchEnd)):(document.addEventListener("mousemove",this.onDocumentMouseMove),document.addEventListener("mouseup",this.onDocumentMouseUp))},t.prototype._stopListeningForDrag=function(){document.removeEventListener("mousemove",this.onDocumentMouseMove),document.removeEventListener("touchmove",this.onDocumentTouchMove),document.removeEventListener("mouseup",this.onDocumentMouseUp),document.removeEventListener("touchcancel",this.onDocumentTouchEnd),
document.removeEventListener("touchend",this.onDocumentTouchEnd)},t.prototype._startDrag=function(e,t){this._changeValue(this._getValueForPosition(e)),this._listenForDrag(t),this.props.onDragStart&&this.props.onDragStart()},t.prototype._drag=function(e){this.state.isDragging||(document.body.classList.add(b.a.isDragging),this.setState({isDragging:!0})),this._changeValue(this._getValueForPosition(e))},t.prototype._stopDrag=function(e){document.body.classList.remove(b.a.isDragging),
this._stopListeningForDrag();var t=this._getValueForPosition(e),n=this._getSteppedValue(t);this._changeValue(t),this.setState({isDragging:!1}),this.props.onDragComplete&&this.props.onDragComplete({positionValue:t,steppedValue:n})},t.prototype._getValueForPosition=function(e){var t=this.props,i=t.min,a=t.max;n.i(v.a)(a>i,"The max, "+a+", must be greater than the min, "+i);var r=this.refs.track,s=r.getBoundingClientRect(),o=s.left+document.body.scrollLeft,l=e-o,u=l/r.offsetWidth
;return u=Math.min(Math.max(u,0),1),(a-i)*u+i},t.prototype._getSteppedValue=function(e){var t=this.props,i=t.min,a=t.max,r=t.stepSize;if(!r)return e;n.i(v.a)(r>=1,"The step size, "+r+", must be greater or equal to 1");var s=Math.round(e/r)*r;return Math.min(Math.max(s,i),a)},t.prototype._getStickyValue=function(e){var t=this.props,n=t.max,i=t.min,a=t.stepSize,r=t.stickiness;if(!a||!r)return e;var s=this._getSteppedValue(e);return Math.abs(s-e)/(n-i)<r/100?s:e},
t.prototype._changeValue=function(e){e!==this.props.value&&this.props.onChange({positionValue:e,steppedValue:this._getSteppedValue(e)})},t.prototype._getPercent=function(e,t,n){return(e-t)/(n-t)*100},t.prototype.render=function(){
var e=this.props,t=e.style,n=e.className,i=e.trackClassName,r=e.secondaryFillClassName,s=e.fillClassName,o=e.thumbClassName,l=e.label,u=e.value,c=e.min,d=e.max,p=e.secondaryMin,h=e.secondaryMax,v=e.showSecondaryFill,m=e.showFill,y=e.autoHideThumb,S=e.onMove,I=this.state.isDragging,M=this._getPercent(this._getStickyValue(u),c,d),C="translateX(-"+(100-M)+"%)",w=p?this._getPercent(this._getStickyValue(p),c,d):0,D=h?this._getPercent(this._getStickyValue(h),c,d):0,P="scaleX("+(M-w)/100+")",T="scaleX("+(D-w)/100+")"
;return a()("div",{style:t,className:(n||"")+" "+(I&&b.a.isDragging||"")+" "+(y&&b.a.hasAutoHideThumb||""),onMouseDown:this.onMouseDown,onMouseMove:S&&this.onMouseMove,onTouchStart:this.onTouchStart},void 0,f.a.createElement("div",{className:i,ref:"track"},v&&a()("div",{className:r,style:{left:p?w+"%":void 0,WebkitTransform:T,msTransform:T,transform:T}}),m&&a()("div",{className:s,style:{left:p?w+"%":void 0,WebkitTransform:P,msTransform:P,transform:P}})),a()("div",{className:b.a.thumbTrack,
style:{WebkitTransform:C,msTransform:C,transform:C}},void 0,a()(g.a,{className:o,role:"slider","aria-labelledby":l,"aria-valuemin":c,"aria-valuemax":d,"aria-valuenow":u})))},t}(h.Component);S.defaultProps={className:b.a.slider,trackClassName:b.a.track,fillClassName:b.a.fill,secondaryFillClassName:b.a.secondaryFill,thumbClassName:b.a.thumb,min:0,max:100,stepSize:0,stickiness:10,showFill:!1,showSecondaryFill:!1,autoHideThumb:!1},t.a=S},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.iconClassName,i=e.icon,a=e.title,s=e.isDisabled,l=e.isActive,c=u()(e,["className","iconClassName","icon","title","isDisabled","isActive"]);return d.a.createElement(h.a,r()({className:(t||"")+" "+(s&&v.a.isDisabled||"")+" "+(l&&v.a.isActive||""),isDisabled:s,"aria-label":a,title:a},c),o()(p.a,{className:n,name:i}))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(27),h=n(23),f=n(2701),v=n.n(f);i.defaultProps={className:v.a.button,isDisabled:!1},t.a=i
},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),s=n.n(r),o=n(14),l=n.n(o),u=n(7),c=n.n(u),d=n(9),p=n.n(d),h=n(8),f=n.n(h),v=n(0),m=n.n(v),g=n(91),y=n(2709),b=n.n(y),S=function(e){function t(n,i){c()(this,t);var a=p()(this,e.call(this,n,i));return a.setRef=function(e){a._checkbox=e},a.onChange=function(e){var t=e.target.checked,n=t?a.props.checkedValue:a.props.uncheckedValue;a.props.value!==n&&a.props.onChange(n)},a._checkbox=null,a}return f()(t,e),
t.prototype.componentDidMount=function(){this.setIndeterminate()},t.prototype.componentDidUpdate=function(){this.setIndeterminate()},t.prototype.setIndeterminate=function(){if(this._checkbox){var e=this.props,t=e.value,n=e.uncheckedValue,i=e.checkedValue;this._checkbox.indeterminate=t!==n&&t!==i}},t.prototype.render=function(){var e=this.props,t=e.className,n=e.inputClassName,i=e.errorClassName,r=e.disabledClassName,o=e.isDisabled,u=e.size,c=e.checkboxText,d=e.name,p=(e.initialValue,
e.value),h=e.checkedValue,f=(e.uncheckedValue,e.showErrors,e.hasError),v=(e.errors,e.validations,l()(e,["className","inputClassName","errorClassName","disabledClassName","isDisabled","size","checkboxText","name","initialValue","value","checkedValue","uncheckedValue","showErrors","hasError","errors","validations"]));return s()("label",{className:(t||"")+" "+(b.a[u]||"")+" "+(o&&r||"")+" "+(f&&i||""),htmlFor:d},void 0,m.a.createElement("input",a()({},v,{id:d,type:"checkbox",disabled:o,className:n,
checked:p===h,ref:this.setRef,onChange:this.onChange})),c)},t}(v.Component);S.defaultProps={className:b.a.label,inputClassName:b.a.input,errorClassName:b.a.hasError,disabledClassName:b.a.isDisabled,isDisabled:!1,size:g.LARGE,uncheckedValue:!1,checkedValue:!0,value:!1,hasError:!1},t.a=S},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(14),s=n.n(r),o=n(6),l=n.n(o),u=n(7),c=n.n(u),d=n(9),p=n.n(d),h=n(8),f=n.n(h),v=n(0),m=n.n(v),g=n(26),y=n(871),b=(n(580),
n(73)),S=n(183),I=n(67),M=n(20),C=n(2728),w=n.n(C),D=function(e){function t(n,i){c()(this,t);var a=p()(this,e.call(this,n,i));return a.onScrollPositionChange=function(e){var t=e.scrollTop,n=e.scrollLeft;a.setState({scrollTop:t,scrollLeft:n})},a.onListUpdate=function(e){var t=e.visibleStartIndex,n=a.props,i=n.scrollIndex,r=n.onListScrollIndexChange,s=n.onListUpdate;a._currentScrollIndex=t,a.state.isRestoringScrollPosition&&a.setState({isRestoringScrollPosition:!1}),r&&i!==t&&r(t),s&&s(e)},
a.onMeasure=function(e){var t=e.width,n=e.height,i=a.props.onMeasure;a.setState({isMeasured:!0,width:t,height:n}),i&&i(e)},a.state={isRestoringScrollPosition:!1,isMeasured:!1,width:null,height:null,scrollTop:0,scrollLeft:0},a._currentScrollIndex=0,n.scrollPositionStorageKey&&(a._scrollPositionKey=y.a.getPageKey()+"!scrollPosition!"+n.scrollPositionStorageKey),a}return f()(t,e),t.prototype.componentWillMount=function(){this.props.scrollIndex||this._restoreScrollPosition()},
t.prototype.shouldComponentUpdate=function(e,t){return n.i(g.a)(this,e,t)},t.prototype.componentDidUpdate=function(e,t){var n=this.props.scrollIndex,i=this.state.isMeasured,a=i&&!t.isMeasured&&n>0,r=n!==e.scrollIndex;(a||r)&&this._scrollToIndex(n)},t.prototype.componentWillUnmount=function(){this._scrollPositionKey&&y.a.set(this._scrollPositionKey,{scrollTop:this.state.scrollTop,scrollLeft:this.state.scrollLeft})},t.prototype._restoreScrollPosition=function(){if(this._scrollPositionKey){
var e=y.a.get(this._scrollPositionKey);e&&this.setState(l()({isRestoringScrollPosition:!0},e))}},t.prototype._scrollToIndex=function(e){if(null!=e&&e!==this._currentScrollIndex){var t=this.props.layout,n=t.options,i=t.getPositionForIndex,a=i(Math.max(e,0)),r=n.outerPaddingTop||0,s=n.outerPaddingLeft||0,o=this.props.scrollDirection===M.a.VERTICAL?0:a.cellX-s,l=this.props.scrollDirection===M.a.HORIZONTAL?0:a.cellY-r;this.setState({scrollLeft:o,scrollTop:l})}},t.prototype.render=function(){
var e=this.props,t=e.className,n=e.children,i=e.scrollerClassName,r=e.ignoreWidth,o=e.ignoreHeight,u=e.scrollDirection,c=(e.scrollIndex,e.scrollPositionStorageKey,e.onListUpdate,e.onMeasure,s()(e,["className","children","scrollerClassName","ignoreWidth","ignoreHeight","scrollDirection","scrollIndex","scrollPositionStorageKey","onListUpdate","onMeasure"])),d=this.state,p=d.isMeasured,h=d.isRestoringScrollPosition,f=d.width,v=d.height,g=d.scrollTop,y=d.scrollLeft;return a()(b.a,{className:t,
ignoreWidth:r,ignoreHeight:o,ignorePosition:!0,onMeasure:this.onMeasure},void 0,p&&a()(I.a,{className:i,smoothScroll:!h,scrollDirection:u,scrollTop:g,scrollLeft:y,enableChildrenProps:!0,onScrollPositionChange:this.onScrollPositionChange},void 0,m.a.createElement(S.a,l()({viewportWidth:f,viewportHeight:v,skipRenderCells:h,onListUpdate:this.onListUpdate},c)),n))},t}(v.Component);D.defaultProps={scrollDirection:M.a.VERTICAL,scrollerClassName:w.a.scroller},t.a=D},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(2),s=n.n(r),o=n(14),l=n.n(o),u=n(7),c=n.n(u),d=n(9),p=n.n(d),h=n(8),f=n.n(h),v=n(0),m=n.n(v),g=n(26),y=n(50),b=n(421),S=n(2047),I=n(2046),M=function(e){function t(i,a){c()(this,t);var r=p()(this,e.call(this,i,a));return r.onMouseEnter=function(e){r.props.showOnHover&&(r._isHovered=!0,r.setState({isOpen:!0}))},r.onMouseLeave=function(e){r.props.showOnHover&&(r._isHovered=!1,r.setState({isOpen:r._isFocused}))},r.onFocus=function(e){r.props.showOnFocus&&(r._isFocused=!0,
r.setState({isOpen:!0}))},r.onBlur=function(e){r.props.showOnFocus&&(r._isFocused=!1,r.setState({isOpen:r._isHovered}))},r.onPress=function(e){r.props.hideOnPress&&(r._isHovered=!1,r._isFocused=!1,r.setState({isOpen:!1}))},r.state={isOpen:!1},r._isHovered=!1,r._isFocused=!1,r._targetID=n.i(y.a)(),r}return f()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(g.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.id,i=e.children,r=e.component,o=e.tooltip,u=e.tooltipClassName,c=e.tooltipAttachment,d=e.tooltipTarget,p=e.tooltipOptions,h=(e.showOnHover,e.showOnFocus,e.hideOnPress,e.onMouseEnter),f=e.onMouseLeave,v=e.onFocus,g=e.onBlur,y=e.onPress,S=l()(e,["id","children","component","tooltip","tooltipClassName","tooltipAttachment","tooltipTarget","tooltipOptions","showOnHover","showOnFocus","hideOnPress","onMouseEnter","onMouseLeave","onFocus","onBlur","onPress"]),M=this.state.isOpen
;return m.a.createElement(r,a()({id:t||this._targetID,onMouseEnter:n.i(b.a)(this.onMouseEnter,h),onMouseLeave:n.i(b.a)(this.onMouseLeave,f),onFocus:n.i(b.a)(this.onFocus,v),onBlur:n.i(b.a)(this.onBlur,g),onPress:n.i(b.a)(this.onPress,y)},S),s()(I.a,{className:u,attachment:c,options:p,target:d||t||this._targetID,isOpen:!!o&&M},void 0,o),i)},t}(v.Component);M.defaultProps={component:S.a,showOnHover:!0,showOnFocus:!0,hideOnPress:!0},t.a=M},function(e,t,n){"use strict";function i(e){
var t=e.children,n=e.className;return r()(o.a,{className:n},void 0,t)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(117)),l=n(2761),u=n.n(l);i.defaultProps={className:u.a.footer},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.className;return r()("div",{className:n},void 0,t)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2776)),l=n.n(o);i.defaultProps={className:l.a.hubCellTitle},t.a=i},function(e,t,n){"use strict";function i(){
return n.i(r.createSelector)(s.a,o.a,n.i(l.a)(),function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{parentTitle:i.parentTitle,parentRoute:n.i(u.a)(e,t,i.parentKey)}})}var a=n(11),r=n(5),s=(n.n(r),n(45)),o=n(43),l=n(21),u=n(118),c=n(2142);t.a=n.i(a.b)(i)(c.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.tabIndex,i=e.title,a=e.route;return i?a?r()(o.a,{className:t,tabIndex:n,title:i,to:a},void 0,i):r()("span",{className:t},void 0,i):null}
var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(23));t.a=i},function(e,t,n){"use strict";function i(e,t){return n.i(c.createSelector)(d.a,n.i(p.a)(),function(e,t){return t.hideUnrated},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],i=e.features[f.a.RATE],a=i&&!t.isFolder,r=(t.userRating||0)/2,s=n&&0===r;return{showRating:!(!a||s),value:r}})}function a(e,t){return{onRatingChange:function(i){e(n.i(h.rateMetadataItem)({metadataItemEntityID:t.metadataItemEntityID,
providerEntityID:t.providerEntityID,rating:0===i?-1:2*i,metricsPage:t.metricsPage}))}}}function r(e){var t=e.showRating,n=o()(e,["showRating"]);return t?u.a.createElement(m.a,n):null}var s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(5),d=(n.n(c),n(43)),p=n(21),h=n(140),f=n(133),v=n(138),m=n(2180),g=n.i(v.a)(i,a)(r);g.propTypes={hideUnrated:l.PropTypes.bool},t.a=g},function(e,t,n){"use strict";function i(e){return r.a.createElement(s.a,e)}var a=n(0),r=n.n(a),s=n(440),o=n(2818),l=n.n(o);i.defaultProps={
className:l.a.badge},t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(s.a,o.a,n.i(l.a)(),n.i(u.a)(),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{server:e,provider:t,librarySectionKey:arguments[3],Genre:n.Genre}})}var a=n(11),r=n(5),s=(n.n(r),n(45)),o=n(43),l=n(21),u=n(339),c=n(2309);t.a=n.i(a.b)(i)(c.a)},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.className,i=e.onPress;return o()(u.a,{
className:(p.a.sectionWrapper||"")+" "+(n||""),component:"div",onPress:i},void 0,t)}function a(e){var t=e.children,n=e.className;return o()("div",{className:(p.a.sectionWrapper||"")+" "+(n||"")},void 0,t)}function r(e){var t=e.errorMessage,n=e.children,r=e.className,s=e.onErrorDismiss,l=e.onPress,u=l?i:a;return o()(u,{className:r,onPress:l},void 0,t&&o()(c.a,{errorMessage:t,onErrorDismiss:s}),o()("div",{className:p.a.section},void 0,n))}var s=n(2),o=n.n(s),l=n(0),u=(n.n(l),
n(23)),c=n(246),d=n(2921),p=n.n(d);t.a=r},function(e,t,n){"use strict";function i(e){try{e.focus()}catch(e){}}function a(){var e=document.activeElement;e&&e.blur()}function r(e){v=document.activeElement,m=e,a()}function s(e){n.i(h.a)(m,"Call `startScopedFocus(element)` before `scopeTabEvent`");var t=n.i(f.a)(m);if(t.length){e.preventDefault();var a=document.activeElement,r=a?t.indexOf(a):-1,s=t.length-1,o=void 0;r===-1?o=e.shiftKey?s:0:(o=e.shiftKey?r-1:r+1,o<0?o=s:o>s&&(o=0)),i(t[o])}}
function o(){n.i(h.a)(m,"Call `startScopedFocus(element)` before `scopeAutoFocus`");var e=n.i(f.a)(m),t=d.a.find(e,function(e){return n.i(p.a)(e.getAttribute("data-autofocus"))});t&&i(t)}function l(){m=null}function u(){v&&(i(v),v=null)}var c=n(3),d=n.n(c),p=n(558),h=n(31),f=n(2550);t.e=a,t.c=r,t.a=s,t.d=o,t.f=l,t.b=u;var v=void 0,m=void 0},function(e,t,n){var i=n(314);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},,,,function(e,t,n){
var i=n(1117),a="object"==typeof self&&self&&self.Object===Object&&self,r=i||a||Function("return this")();e.exports=r},function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},,,,function(e,t,n){!function(t,i){e.exports=i(n(3),n(266))}(0,function(e,t){function n(n){return{underscore:e,backbone:t}[n]}return function(e){function t(e){var n=t.cache[e];if(!n){var i={}
;n=t.cache[e]={id:e,exports:i},t.modules[e].call(i,n,i)}return n.exports}return t.cache=[],t.modules=[function(e,i){function a(e,t){this._superset=e,this._filtered=new o(e,t),this._sorted=new l(this._filtered,t),this._paginated=new u(this._sorted,t),c(this._paginated,this),d.call(this,this._filtered,f),d.call(this,this._sorted,m),d.call(this,this._paginated,y),this.initialize(t)}var r=n("underscore"),s=n("backbone"),o=t(2),l=t(5),u=t(4),c=t(1),d=t(7),p={superset:function(){return this._superset
},getFilteredLength:function(){return this._filtered.length},removeTransforms:function(){return this._filtered.resetFilters(),this._sorted.removeSort(),this._paginated.removePagination(),this},destroy:function(){this.stopListening(),this._filtered.destroy(),this._sorted.destroy(),this._paginated.destroy(),this.length=0,this.trigger("obscura:destroy")}
},h=["filterBy","removeFilter","resetFilters","refilter","hasFilter","getFilters"],f=["filtered:add","filtered:remove","filtered:reset"],v=["setSort","reverseSort","removeSort"],m=["sorted:add","sorted:remove"],g=["setPerPage","setPage","getPerPage","getNumPages","getPage","hasNextPage","hasPrevPage","nextPage","prevPage","movePage","removePagination","firstPage","lastPage"],y=["paginated:change:perPage","paginated:change:page","paginated:change:numPages"],b=["add","create","remove","set","reset","sort","parse","sync","fetch","push","pop","shift","unshift"]
;r.each(h,function(e){p[e]=function(){var t=o.prototype[e].apply(this._filtered,arguments);return t===this._filtered?this:t}}),r.each(g,function(e){p[e]=function(){var t=u.prototype[e].apply(this._paginated,arguments);return t===this._paginated?this:t}}),r.each(v,function(e){p[e]=function(){var t=l.prototype[e].apply(this._sorted,arguments);return t===this._sorted?this:t}}),r.each(b,function(e){p[e]=function(){
throw new Error("Backbone.Obscura: Unsupported method: "+e+"called on read-only proxy")}}),r.extend(a.prototype,p,s.Events),a=s.Collection.extend(a.prototype),a.FilteredCollection=o,a.SortedCollection=l,a.PaginatedCollection=u,e.exports=a},function(e,t){function i(e,t){function n(){t.length=e.length}function i(n){var i=a.toArray(arguments),r="change"===n||"change:"===n.slice(0,7);"reset"===n&&(t.models=e.models),
a.contains(o,n)?(a.contains(["add","remove","destroy"],n)?i[2]=t:a.contains(["reset","sort"],n)&&(i[1]=t),t.trigger.apply(this,i)):r&&t.contains(i[1])&&t.trigger.apply(this,i)}var l={};return a.each(a.functions(r.Collection.prototype),function(t){a.contains(s,t)||(l[t]=function(){return e[t].apply(e,arguments)})}),a.extend(t,r.Events,l),t.listenTo(e,"all",n),t.listenTo(e,"all",i),t.models=e.models,n(),t}
var a=n("underscore"),r=n("backbone"),s=["_onModelEvent","_prepareModel","_removeReference","_reset","add","initialize","sync","remove","reset","set","push","pop","unshift","shift","sort","parse","fetch","create","model","off","on","listenTo","listenToOnce","bind","trigger","once","stopListening"],o=["add","remove","reset","sort","destroy","sync","request","error"];e.exports=i},function(e,i){function a(){this._filterResultCache={}}function r(e){
for(var t in this._filterResultCache)this._filterResultCache.hasOwnProperty(t)&&delete this._filterResultCache[t][e]}function s(e,t){this._filters[e]&&r.call(this,e),this._filters[e]=t,this.trigger("filtered:add",e)}function o(e){delete this._filters[e],r.call(this,e),this.trigger("filtered:remove",e)}function l(e){this._filterResultCache[e.cid]||(this._filterResultCache[e.cid]={});var t=this._filterResultCache[e.cid]
;for(var n in this._filters)if(this._filters.hasOwnProperty(n)&&(t.hasOwnProperty(n)||(t[n]=this._filters[n].fn(e)),!t[n]))return!1;return!0}function u(e){e||(e={});var t=[];this._superset&&(t=this._superset.filter(g.bind(l,this))),e.reset?this._collection.reset(t):this._collection.set(t),this.length=this._collection.length}function c(){u.call(this,{reset:!0})}function d(){var e=!(!this._superset||!this._superset.comparator);u.call(this,{reset:e})}function p(e){
if(this._filterResultCache[e.cid]={},l.call(this,e)){if(!this._collection.get(e.cid)){for(var t=this.superset().indexOf(e),n=null,i=t-1;i>=0;i-=1)if(this.contains(this.superset().at(i))){n=this.indexOf(this.superset().at(i))+1;break}n=n||0,this._collection.add(e,{at:n})}}else this._collection.get(e.cid)&&this._collection.remove(e);this.length=this._collection.length}function h(e){this._filterResultCache[e.cid]={},l.call(this,e)||this._collection.get(e.cid)&&this._collection.remove(e)}
function f(e,t,n){"change:"===e.slice(0,7)&&h.call(this,arguments[1])}function v(e){this.contains(e)&&this._collection.remove(e),this.length=this._collection.length}function m(e){this._superset=e,this._collection=new y.Collection(e.toArray()),b(this._collection,this),this.resetFilters(),this.listenTo(this._superset,"reset",c),this.listenTo(this._superset,"sort",d),this.listenTo(this._superset,"add change",p),this.listenTo(this._superset,"remove",v),this.listenTo(this._superset,"all",f)}
var g=n("underscore"),y=n("backbone"),b=t(1),S=t(3),I={defaultFilterName:"__default",filterBy:function(e,t){return t||(t=e,e=this.defaultFilterName),s.call(this,e,S(t)),u.call(this),this},removeFilter:function(e){return e||(e=this.defaultFilterName),o.call(this,e),u.call(this),this},resetFilters:function(){return this._filters={},a.call(this),this.trigger("filtered:reset"),u.call(this),this},superset:function(){return this._superset},refilter:function(e){
return"object"==typeof e&&e.cid?p.call(this,e):(a.call(this),u.call(this)),this},getFilters:function(){return g.keys(this._filters)},hasFilter:function(e){return g.contains(this.getFilters(),e)},destroy:function(){this.stopListening(),this._collection.reset([]),this._superset=this._collection,this.length=0,this.trigger("filtered:destroy")}};g.extend(m.prototype,I,y.Events),e.exports=m},function(e,t){function i(e,t){return function(n){return n.get(e)===t}}function a(e,t){return function(n){
return t(n.get(e))}}function r(e,t){return l.isArray(t)||(t=null),{fn:e,keys:t}}function s(e){var t=l.keys(e),n=l.map(t,function(t){var n=e[t];return l.isFunction(n)?a(t,n):i(t,n)});return r(function(e){for(var t=0;t<n.length;t++)if(!n[t](e))return!1;return!0},t)}function o(e,t){return l.isFunction(e)?r(e,t):l.isObject(e)?s(e):void 0}var l=n("underscore");e.exports=o},function(e,i){function a(){var e=this.getPage()*this.getPerPage();return[e,e+this.getPerPage()]}function r(){var e=a.call(this)
;this._collection.reset(this.superset().slice(e[0],e[1]))}function s(){var e=(this._totalPages,this.superset().length),t=this.getPerPage(),n=e%t==0?e/t:Math.floor(e/t)+1,i=this._totalPages!==n;if(this._totalPages=n,i&&this.trigger("paginated:change:numPages",{numPages:n}),this.getPage()>=n)return this.setPage(n-1),!0}function o(){s.call(this)||r.call(this)}function l(e,t){for(var n=d.max([e.length,t.length]),i=0,a=0;i<n;i+=1,a+=1)if(e[i]!==t[a])if(t[i-1]===e[i])a-=1;else{
if(t[i+1]!==e[i])return e[i];a+=1}}function u(e,t,n){if(!s.call(this)){var i=a.call(this),r=i[0],o=i[1],u=l(this.superset().slice(r,o),this._collection.toArray()),c=l(this._collection.toArray(),this.superset().slice(r,o));c&&this._collection.remove(c),u&&this._collection.add(u,{at:this.superset().indexOf(u)-r})}}function c(e,t){this._superset=e,this._collection=new p.Collection(e.toArray()),this._page=0,this.setPerPage(t&&t.perPage?t.perPage:null),h(this._collection,this),
this.listenTo(this._superset,"add remove",u),this.listenTo(this._superset,"reset sort",o)}var d=n("underscore"),p=n("backbone"),h=t(1),f={removePagination:function(){return this.setPerPage(null),this},setPerPage:function(e){return this._perPage=e,o.call(this),this.setPage(0),this.trigger("paginated:change:perPage",{perPage:e,numPages:this.getNumPages()}),this},setPage:function(e){var t=this.getNumPages()-1;return e=e>0?e:0,e=e<t?e:t,e=e<0?0:e,this._page=e,r.call(this),
this.trigger("paginated:change:page",{page:e}),this},getPerPage:function(){return this._perPage||this.superset().length||1},getNumPages:function(){return this._totalPages},getPage:function(){return this._page},hasNextPage:function(){return this.getPage()<this.getNumPages()-1},hasPrevPage:function(){return this.getPage()>0},nextPage:function(){return this.movePage(1),this},prevPage:function(){return this.movePage(-1),this},firstPage:function(){this.setPage(0)},lastPage:function(){
this.setPage(this.getNumPages()-1)},movePage:function(e){return this.setPage(this.getPage()+e),this},superset:function(){return this._superset},destroy:function(){this.stopListening(),this._collection.reset([]),this._superset=this._collection,this._page=0,this._totalPages=0,this.length=0,this.trigger("paginated:destroy")}};d.extend(c.prototype,f,p.Events),e.exports=c},function(e,i){function a(e){return d.isFunction(e)?e:function(t){return t.get(e)}}function r(e){
return this._comparator?this._reverse?f(this._collection.toArray(),e,a(this._comparator)):d.sortedIndex(this._collection.toArray(),e,a(this._comparator)):this._superset.indexOf(e)}function s(e){var t=r.call(this,e);this._collection.add(e,{at:t})}function o(e){this.contains(e)&&this._collection.remove(e)}function l(e){this.contains(e)&&this._collection.indexOf(e)!==r.call(this,e)&&(this._collection.remove(e),s.call(this,e))}function u(){
if(!this._comparator)return void this._collection.reset(this._superset.toArray());var e=this._superset.sortBy(this._comparator);this._collection.reset(this._reverse?e.reverse():e)}function c(e){this._superset=e,this._reverse=!1,this._comparator=null,this._collection=new p.Collection(e.toArray()),h(this._collection,this),this.listenTo(this._superset,"add",s),this.listenTo(this._superset,"remove",o),this.listenTo(this._superset,"change",l),this.listenTo(this._superset,"reset",u)}
var d=n("underscore"),p=n("backbone"),h=t(1),f=t(6),v={setSort:function(e,t){return this._reverse="desc"===t,this._comparator=e,u.call(this),e?this.trigger("sorted:add"):this.trigger("sorted:remove"),this},reverseSort:function(){return this._reverse=!this._reverse,u.call(this),this},removeSort:function(){return this.setSort(),this},superset:function(){return this._superset},destroy:function(){this.stopListening(),this._collection.reset([]),this._superset=this._collection,this.length=0,
this.trigger("sorted:destroy")}};d.extend(c.prototype,v,p.Events),e.exports=c},function(e,t){function i(e){return r.isFunction(e)?e:function(t){return t[e]}}function a(e,t,n,a){n=null==n?r.identity:i(n);for(var s=n.call(a,t),o=0,l=e.length;o<l;){var u=o+l>>>1;n.call(a,e[u])<s?l=u:o=u+1}return o}var r=n("underscore");e.exports=a},function(e,t){function i(e,t){a.each(t,function(t){this.listenTo(e,t,function(){var e=a.toArray(arguments);e.unshift(t),this.trigger.apply(this,e)})},this)}
var a=n("underscore");e.exports=i}],t(0)}()})},function(e,t,n){"use strict";var i=n(197),a=new i.a({interface:["getLanguages","load","t"]});t.a=a},function(e,t,n){"use strict";var i=n(197),a=new i.a({props:["capabilities","video","music","photo"]});t.a=a},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(55),s=n(208),o={isPopulating:function(){return!!this.populatePromise&&"pending"===this.populatePromise.state()},isPopulated:function(){
return!!this.populatePromise&&"resolved"===this.populatePromise.state()},populate:function(){return this.populatePromise?this.populatePromise:this.fetch.apply(this,arguments)},fetch:function(){var e=this,t=a.a.Deferred(),n=void 0;if(this.isPopulating())return this.populatePromise;n=this._fetch?this._fetch.apply(this,arguments):this instanceof r.a.Collection?r.a.Collection.prototype.fetch.apply(this,arguments):r.a.Model.prototype.fetch.apply(this,arguments);var i=t.promise();return i.rid=n.rid,
this.populatePromise=i,n.done(function(n){e.populatePromise=a.a.Deferred().resolveWith(e,[e]).promise(),t.resolveWith(e,[e,n])}),n.fail(function(n){e.populatePromise=null,t.rejectWith(e,[e,n])}),i},abortPendingPopulate:function(){return this.isPopulating()&&s.a.abort(this.populatePromise.rid),this.populatePromise},resetPopulatePromise:function(e){return this.isPopulating()||(this.populatePromise=e),this.populatePromise}};t.a=o},function(e,t,n){"use strict"
;var i=n(3),a=n.n(i),r=n(22),s=n(1264),o=r.a.extend({name:"FilterOptionCollection",context:["server","section","type","standalone"],model:s.a,url:function e(){var t=a.a.result(this.section,"url"),e=t+"/"+this.parent.id;return this.type?e+="?type="+this.type:this.standalone||(e+="?"+this.getUrlParams()),e},getUrlParams:function(){var e=this,t={},n=[],i=this.section.get("currentType"),r=this.section.get("currentFilters");return i&&(t.type=i.id),a.a.each(r,function(n){
n.key!==e.parent.id&&n.values.length&&(t[n.key]=n.values.join(","))}),a.a.each(t,function(e,t){"unviewedLeafCount"===t?n.push(t+">="+e):n.push(t+"="+e)}),n.join("&")},augmentResponse:function(e){return e.Directory&&!a.a.isArray(e.Directory)&&(e.Directory=[e.Directory]),e.Directory=a.a.filter(e.Directory,function(e){return e.title}),e},search:function(e){var t=this.filter(function(t){return t.get("title").toLowerCase().indexOf(e.toLowerCase())>-1});return this.clone(t)}});t.a=o},function(e,t,n){
"use strict";var i=n(3),a=n.n(i),r=n(22),s=n(223),o=n(61),l=n(573);n.d(t,"b",function(){return u});var u=function(e,t){return!e.get("relay")&&t.get("relay")?e:!t.get("relay")&&e.get("relay")?t:!e.get("isLoopback")&&t.get("isLoopback")?t:!t.get("isLoopback")&&e.get("isLoopback")?e:!e.get("isPrivate")&&t.get("isPrivate")?t:!t.get("isPrivate")&&e.get("isPrivate")?e:!e.get("isHttps")&&t.get("isHttps")?t:(!t.get("isHttps")&&e.get("isHttps"),e)},c=r.a.extend({name:"ConnectionCollection",
context:["server"],model:s.a,getBestConnection:function(){var e=o.a.get("allowHttpsMediaServerConnections"),t=!this.server||this.server.get("isCloudBased")||e,n=this.filter(function(e){return e.get("isConnected")&&(t||!e.get("isHttps"))});if(n.length)return a.a.reduce(n,u)},hasBetterConnectionCandidates:function(){var e=this.server&&this.server.get("activeConnection");return this.some(function(t){var n=t.get("isUntested")||t.get("isPending"),i=!e||t!==e&&u(t,e)===t;return n&&i})},
hasOnlyFailedConnections:function(){return this.every(function(e){return e.get("isFailed")})},hasFailedEveryDirectConnection:function(){return this.where({relay:!1}).every(function(e){return e.get("isFailed")})},hasMultiplePrivateV4Subnets:function(){var e=void 0;return this.some(function(t){var n=t.get("address");if(t.get("isPrivate")&&l.a.isValidV4Address(n)){var i=l.a.getV4Subnet(n);return e||(e=i),e!==i}})}});t.a=c},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(14),s=n.n(r),o=n(82),l=n(56),u=n(53),c=n(16),d=n(52),p=n(513),h=n(17),f=n(270),v=n(516),m=n(1329),g=n(224),y=h.a.extend({name:"MediaSubscriptionModel",context:["server"],entityType:l.a,entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return n.i(u.a)(this.entityType,e.key||this.cid,this.server.entityID())},idAttribute:"key",rootPropertyName:"MediaSubscription",urlRoot:"/media/subscriptions",mergeStrategy:p.a,syncedAttrs:{
key:c.a.string,type:c.a.integer,targetLibrarySectionID:{type:c.a.string,save:!0},targetSectionLocationID:{type:c.a.string,save:!0},title:c.a.string,selected:c.a.boolean,parameters:c.a.string},syncedRelations:{target:{relationClass:m.a,rootPropertyName:"Metadata",deferred:!0},grabOperations:{relationClass:v.default,rootPropertyName:"MediaGrabOperation",deferred:!0},prefs:{relationClass:g.a,rootPropertyName:"Setting",deferred:!0,save:!0},timeline:{relationClass:f.a,rootPropertyName:"Timeline",
deferred:!0}},augmentResponseText:function(e,t){return t===d.a.xml?n.i(o.a)(e):e},augmentResponse:function(e){var t=e[this.rootPropertyName]||e,n=t.Timeline;return n&&(t.Timeline=n.Metadata),e},getSaveParams:function(){var e=h.a.prototype.getSaveParams.apply(this,arguments),t=e.Setting,n=s()(e,["Setting"]);return a()({prefs:t},n)}});t.a=y},function(e,t,n){"use strict";function i(e,t){
return null==e.get("startMetadataItemEntityID")&&null!=e.get("startOffsetMilliseconds")?e.get("startOffsetMilliseconds"):e.get("startMetadataItemEntityID")===t.entityID()?e.get("startOffsetMilliseconds"):t.get("viewOffset")||0}t.a=i},function(e,t,n){"use strict";function i(e,t){var n=e.get("playQueue");return function(){if(e.get("isOpen")&&n&&n===e.get("playQueue"))return t.apply(void 0,arguments);a.a.warn("[Player] Player was closed or a new playback session was started; ignoring callback")}}
var a=n(29);t.a=i},function(e,t,n){"use strict";var i=n(4),a=n(98),r=n(36),s=n(1352),o=n(177);n.d(t,"b",function(){return u}),n.d(t,"a",function(){return c});var l,u=n.i(r.a)("metadata/selectMetadataItemStream"),c=(l={},l["metadata/selectMetadataItemStream"]=function(e,t,r){var l=t.streamTypeString,u=t.streamID,c=t.allParts,d=t.metricsPage,p=n.i(a.b)(e,t),h={streamTypeString:l,streamID:u,allParts:c,allowMetrics:!!d,metricsProperties:{page:d}};n.i(s.a)(p,h).fail(function(e){
r(n.i(o.a)(n.i(i.default)("There was a problem selecting this stream.")))})},l)},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(137),s=n(35),o=n(166),l=n(36);n.d(t,"a",function(){return d}),n.d(t,"b",function(){return p}),n.d(t,"c",function(){return h});var u,c="ui/player/playerControls/togglePlayerOpenState",d=(n.i(l.a)(c),n.i(l.a)(c,function(e){return a()({},e,{openState:r.a})})),p=n.i(l.a)(c,function(e){return a()({},e,{openState:r.b})}),h=(u={},u[c]=function(e,t){
var i=t.playerType,a=t.openState,r=n.i(o.a)(e,i);n.i(s.a)(function(){r.set({openState:a,isSettingsVisible:!1,isPlayQueueVisible:!1,isLyricsVisible:!1})})},u)},function(e,t,n){"use strict";function i(e){return n.i(a.createSelector)(n.i(s.a)(),function(e,t){return t.activeFilters},function(e,t){return t.activeSort},function(e,t){return t.activeLimit},function(e,t){return t.selectedType},function(e,t){return t.selectedDirectory},function(t,i,a,s,o,l){if(t){var u={filters:i,sort:a,limit:s}
;return!(l&&"photo"===l.type)&&o&&o.key?n.i(r.a)([o.key.replace("/all?","/"+e+"?")],u):n.i(r.a)([t,e],u)}})}var a=n(5),r=(n.n(a),n(1504)),s=n(178);t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(n.i(r.a)(),n.i(s.a)(),function(e,t){if(null!=e)for(var n=0;n<t.length;n++)for(var i=t[n],a=0;a<i.Media.length;a++){var r=i.Media[a],s=r.beginsAt,o=r.endsAt;if(s<=e&&o>e)return i}})}var a=n(5),r=(n.n(a),n(528)),s=n(778);t.a=i},function(e,t,n){"use strict"
;var i=n(179),a=n(5),r=(n.n(a),n.i(a.createSelector)(i.a,function(e){return e.cloudServer},function(e,t){return e[t]}));t.a=r},function(e,t,n){"use strict";var i=n(5),a=(n.n(i),n(179)),r=n.i(i.createSelector)(a.a,function(e){return e.servers},function(e,t){return t?t.map(function(t){return e[t]}):[]});t.a=r},function(e,t,n){"use strict";function i(e){var t=s[e]||n.i(a.createSelector)(r.a,function(t){return!!t[e]});return s[e]=t,t}var a=n(5),r=(n.n(a),n(180)),s={};t.a=i},function(e,t,n){
"use strict";var i=n(5),a=(n.n(i),n(536)),r=n(537),s=n.i(i.createSelector)(r.a,a.a,function(e,t){return!(!e.cpms||t)});t.a=s},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return r});var i=0,a=1,r=2},function(e,t,n){"use strict";function i(e){if(null==e)return!1;var t=r.a.unix(e);return r()().subtract(1,"day").isSame(t,"day")}var a=n(40),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){var t="",n="";e?(t=e.userAgent,
n=e.platform):null!=window.navigator&&(t=window.navigator.userAgent,n=window.navigator.platform),this.detect({userAgent:t,platform:n})}var a="undefined"!=typeof window;i.prototype={constructor:i,tests:[{id:"ee",name:"EE",predicate:function(e){return/^Netbox-/.test(e.userAgent)}},{id:"libertyglobal",name:"Liberty Global",tv:!0,predicate:function(e){return/WPE-Horizon$/.test(e.userAgent)}},{id:"sony",name:"Sony",predicate:function(e){return/playstation|sony/i.test(e.userAgent)}},{id:"nintendo",
name:"Nintendo",predicate:function(e){return/nintendo/i.test(e.userAgent)}},{id:"tivo",name:"TiVo",predicate:function(e){return/TiVo/.test(e.userAgent)}},{id:"lg",name:"LG",predicate:function(e){var t=e.userAgent;return/netcast/i.test(t)||/web[o0]s/i.test(t)&&/smarttv/i.test(t)}},{id:"samsung",name:"Samsung",predicate:function(e){return/Samsung|Tizen/i.test(e.userAgent)}},{id:"panasonic",name:"Panasonic",predicate:function(e){return/viera/i.test(e.userAgent)}},{id:"philips",name:"Philips",
predicate:function(e){return/philips/i.test(e.userAgent)}},{id:"toshiba",name:"Toshiba",predicate:function(e){return/toshiba/i.test(e.userAgent)}},{id:"vizio",name:"Vizio",predicate:function(e){var t=/vizio/i.test(e.userAgent),n=/opera/i.test(e.userAgent),i=a&&window.iMTK_JSP;return t||i&&n}},{id:"swisscom",name:"Swisscom",predicate:function(e){return/swisscom/i.test(e.userAgent)}},{id:"humax",name:"Humax",predicate:function(e){return/humax/i.test(e.userAgent)}},{id:"amazon",name:"Amazon",
predicate:function(e){return/-AFT\w-/.test(e.userAgent)}},{id:"generic",name:"Generic Device",predicate:function(e){var t=e.userAgent;return/smarttv/i.test(t)||/large screen/i.test(t)||/hbbtv/i.test(t)}}],id:"unknown",name:"Unknown Manufacturer",detect:function(e){var t=this.runTests(this.tests,e);t&&(this.id=t.id,this.name=t.name)},runTests:function(e,t){for(var n=0,i=e.length;n<i;n++){var a=e[n];if(a.predicate(t))return a}},toJSON:function(){var e={}
;for(var t in this)this.hasOwnProperty(t)&&this[t]&&(e[t]=this[t]);return e}},t.a=new i},function(e,t,n){"use strict";n.d(t,"d",function(){return i}),n.d(t,"b",function(){return a}),n.d(t,"a",function(){return r}),n.d(t,"c",function(){return s});var i="string",a="boolean",r="date",s="rating"},function(e,t,n){"use strict";function i(){return l?l:l=new s.a(!1,"",!0)}function a(e){if(!e)return o.a.warn("[Parser] Empty XML source"),{};var t=i(),n=t.parseXmlString(e)
;if(!n)return o.a.warn("[Parser] No XML document created"),{};if(n.getElementsByTagName("parsererror").length)return o.a.warn("[Parser] Errors found while parsing XML document"),{};try{return t.xml2json(n)}catch(e){return o.a.warn("[Parser] Unable to parse XML: "+e.message),{}}}var r=n(690),s=n.n(r),o=n(29),l=void 0;t.a=a},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(29),s=n(412),o={ORIGINAL:-1,CONVERT_AUTOMATICALLY:-2,qualities:{},getQualityByIndex:function(e){
if(e===this.CONVERT_AUTOMATICALLY)return{index:this.CONVERT_AUTOMATICALLY};if(e<0)return{index:this.ORIGINAL};var t={index:e};return a.a.each(this.qualities,function(n,i){t[i]=a.a.result(this.qualities,i)[e]},this),t},getQualityCount:function(){var e=a.a.first(a.a.keys(this.qualities));return a.a.result(this.qualities,e).length},getQualityAttribute:function(e){var t=n.i(s.a)(e.toJSON(),e.server.get("isPrivateConnection"));return"video"!==this.type?this.type+"!"+t:t},
getSyncQualityAttribute:function(){return"syncQuality!"+this.type},getCurrentQuality:function(e,t){var n=this.getQualityAttribute(e),i=t.get(n);return i>=this.getQualityCount()&&(r.a.warn("Quality index "+i+" is out of bounds"),i=t.defaults[n],t.save(n,i)),a.a.extend(this.getQualityByIndex(i),{attribute:n})},getAvailableQualities:function(e){e||(e={});var t=e.lowestQualityIndex,n=e.highestQualityIndex,i=e.comparator,a=[];n===this.ORIGINAL&&(n=void 0)
;for(var r=0,s=this.getQualityCount();r<s;r++)if(!(t&&r<t)){if(n&&r>n)return a;if(i&&i.call(this,r))return a;a.push(this.getQualityByIndex(r))}return a},getResolutionFromSize:function(e){var t=e.split("x"),n=parseInt(t[1],10);return this.getResolutionFromHeight(n)},getResolutionFromHeight:function(e){return e>2560?"8k":e>1100?"4k":e>720?"1080":e>576?"720":e>480?"576":e>360?"480":"sd"},getHeightFromResolution:function(e){switch(e){case"8k":return 5120;case"4k":return 2560;case"1080":return 1080
;case"720":return 720;case"576":return 576;case"480":return 480;case"sd":return 360;default:return 360}},getNearestIndex:function(e,t){if(!t)return this.ORIGINAL;var n=e.indexOf(t);if(n<0){n=0;for(var i=0,a=e.length;i<a;i++){if(e[i]>t)break;n=i}}return n}};t.a=o},function(e,t,n){"use strict";function i(e,t){return n.i(a.a)(e,t)?"localQuality":"remoteQuality"}var a=n(560);t.a=i},function(e,t,n){"use strict";var i="placeholder-standard",a="placeholder-square",r="placeholder-widescreen",s={movie:i,
show:i,season:i,episode:r,artist:a,album:a,track:a,photo:a,photoalbum:a,clip:r,userPlaylistItem:r,playlist:a,playlistFolder:a,channel:a,channelDirectory:a,folder:"placeholder-folder",friend:"placeholder-friend",device:a,poster:i,art:r,banner:r};t.a=s},function(e,t,n){"use strict";var i={sizes:{movie:"portrait",show:"portrait",season:"portrait",episode:"landscape",artist:"square",album:"square",track:"square",photo:"square",photoalbum:"square",clip:"landscape",playlist:"square",
playlistFolder:"square",userPlaylistItem:"landscape",channel:"square",channelDirectory:"square",folder:"portrait",friend:"square",poster:"portrait",art:"landscape",banner:"banner"},ratios:{portrait:1/1.5,square:1,landscape:16/9,banner:5.2},getRatioByType:function(e){return this.ratios[this.sizes[e]]},getPosterWidthUsingRatio:function(e,t){return Math.round(this.ratios[e]*t)},getPosterHeightUsingRatio:function(e,t){return Math.round(this.ratios[e]&t)},getPosterWidth:function(e,t){
return Math.round(t*this.getRatioByType(e))},getPosterHeight:function(e,t){return Math.round(t/this.getRatioByType(e))}};t.a=i},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a;return"opera"===e.id&&!e.presto}var a=n(33);t.a=i},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a;return"opera"===e.id&&e.presto}var a=n(33);t.a=i},function(e,t,n){"use strict";function i(e){
return e=r.a.isArray(e)?e:r.a.toArray(arguments),o.a.when.apply(o.a,r.a.map(e,l.a))}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(123);t.a=i},function(e,t,n){"use strict";function i(e,t,n){return null==n&&(n=e+"s"),1===t?e:n}t.a=i},function(e,t,n){"use strict";var i=n(4),a=n(241),r=["id","typeString"],s=n.i(a.a)(r,[{id:0,typeString:"tag",title:function(){return n.i(i.default)("Tag")}},{id:1,typeString:"genre",title:function(){return n.i(i.default)("Genre")}},{id:2,typeString:"collection",
title:function(){return n.i(i.default)("Collection")}},{id:3,typeString:"bookmark",title:function(){return n.i(i.default)("Bookmark")}},{id:4,typeString:"director",title:function(){return n.i(i.default)("Director")},isPerson:!0},{id:5,typeString:"writer",title:function(){return n.i(i.default)("Writer")},isPerson:!0},{id:6,typeString:"actor",title:function(){return n.i(i.default)("Actor")},isPerson:!0},{id:7,typeString:"producer",title:function(){return n.i(i.default)("Producer")},isPerson:!0},{
id:8,typeString:"country",title:function(){return n.i(i.default)("Country")}},{id:9,typeString:"chapter",title:function(){return n.i(i.default)("Chapter")}},{id:10,typeString:"review",title:function(){return n.i(i.default)("Review")}},{id:11,typeString:"label",title:function(){return n.i(i.default)("Label")}},{id:42,typeString:"versionBackgroundProcessingTarget",title:function(){return n.i(i.default)("Version Background Processing Target")}},{id:200,typeString:"make",title:function(){
return n.i(i.default)("Make")}},{id:201,typeString:"model",title:function(){return n.i(i.default)("Model")}},{id:202,typeString:"aperture",title:function(){return n.i(i.default)("Aperture")}},{id:203,typeString:"exposure",title:function(){return n.i(i.default)("Exposure")}},{id:204,typeString:"iso",title:function(){return n.i(i.default)("ISO")}},{id:205,typeString:"lens",title:function(){return n.i(i.default)("Lens")}},{id:206,typeString:"device",title:function(){return n.i(i.default)("Device")}
},{id:207,typeString:"autotag",title:function(){return n.i(i.default)("Tag")}},{id:400,typeString:"place",title:function(){return n.i(i.default)("Place")}},{id:300,typeString:"mood",title:function(){return n.i(i.default)("Mood")}},{id:301,typeString:"bpm",title:function(){return n.i(i.default)("BPM")}},{id:302,typeString:"composer",title:function(){return n.i(i.default)("Composer")}},{id:303,typeString:"featuring",title:function(){return n.i(i.default)("Featuring")}},{id:304,
typeString:"trackArtist",title:function(){return n.i(i.default)("Track Artist")}},{id:305,typeString:"similarArtist",title:function(){return n.i(i.default)("Similar Artist")}},{id:306,typeString:"concert",title:function(){return n.i(i.default)("Concert")}}]);t.a=s},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(14),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(13),m=n(26),g=n(421),y=function(e){function t(){var i,r,o;l()(this,t)
;for(var u=arguments.length,d=Array(u),p=0;p<u;p++)d[p]=arguments[p];return i=r=c()(this,e.call.apply(e,[this].concat(d))),r.onPress=function(e){var t=r.props,i=(t.children,s()(t,["children"])),o=r.context.metricsPage;n.i(v.a)("metrics").trackClick(a()({},i,{page:o}))},o=i,c()(r,o)}return p()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(m.a)(this,e,t)},t.prototype.render=function(){var e=f.a.Children.only(this.props.children);return f.a.cloneElement(e,{
onPress:n.i(g.a)(this.onPress,e.props.onPress)})},t}(h.Component);y.contextTypes={metricsPage:h.PropTypes.string.isRequired},t.a=y},function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=0,n=t.length;e<n;e++){var i=t[e];"function"==typeof i&&i.apply(void 0,arguments)}}}t.a=i},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(539),s=n(22),o=n(1697),l=s.a.extend({name:"AgentCollection",
context:["server","mediaTypeID","primaryAgentID","relatedAgentID"],model:o.a,cache:new r.a,cacheKey:function(){var e=a.a.result(this,"url");return this.server&&this.server.getScopedKey(e)},url:function(){var e="/system/agents";return this.primaryAgentID?e+"/contributors?mediaType="+this.mediaTypeID+"&primaryAgent="+this.primaryAgentID:this.relatedAgentID?e+"/"+this.relatedAgentID+"/config/"+this.mediaTypeID:this.mediaTypeID?e+"?mediaType="+this.mediaTypeID:e},hasExclusiveAgent:function(e){
return!!a.a.intersection(this.pluck("identifier"),e).length}});t.a=l},function(e,t,n){"use strict";var i=n(17),a=n(16),r=n(224),s=n(882),o=n(356),l=n(888),u=n(1685),c=n(583),d=n(1684),p=n(885),h=n(1677),f=n(883);n.d(t,"a",function(){return v});var v={DEVICE:"device",DEVICE_CHANNELS:"deviceChannels",EPG:"epg",EPG_MAPPING:"epgMapping",CHANNEL_MAPPING:"channelMapping",EPG_DOWNLOAD:"epgDownload"},m=i.a.extend({name:"DVRSetupModel",context:["server"],sessionAttrs:{isDevicesPending:a.a.boolean,
isDevicesPopulated:a.a.boolean,devicesError:a.a.object,isDiscoveringDevices:a.a.boolean,isChannelMappingsPending:a.a.boolean,isChannelMappingsPopulated:a.a.boolean,channelMappingsError:a.a.object,isChannelMappingsSaving:a.a.boolean,channelMappingsSaveError:a.a.object,isLineupChannelsPending:a.a.boolean,isLineupChannelsPopulated:a.a.boolean,lineupChannelsError:a.a.object,epgLineupActivityID:a.a.string,epgDownloadActivityID:a.a.string,step:a.a.string,selectedLineupUUID:a.a.string,
addDevicePending:a.a.boolean,isSavingDVR:a.a.boolean,hasScannedChannels:a.a.boolean},sessionRelations:{devices:{relationClass:s.a},lineupChannels:{relationClass:u.a},epgSettings:{relationClass:d.a},channelMappings:{relationClass:l.a},selectedDVR:{relationClass:p.a,deferred:!0},selectedDevice:{relationClass:o.b,deferred:!0},selectedLanguage:{relationClass:c.a,deferred:!0},setupErrorMessages:{relationClass:h.a},scanPrefs:{relationClass:r.a,deferred:!0},scanNetworks:{relationClass:f.a,deferred:!0}
},defaults:{step:v.DEVICE,isDevicesPending:!1,isDevicesPopulated:!1,isDiscoveringDevices:!1,devicesError:null,isChannelMappingsPending:!1,isChannelMappingsPopulated:!1,channelMappingsError:null,isChannelMappingsSaving:!1,channelMappingsSaveError:null,isLineupChannelsPending:!1,isLineupChannelsPopulated:!1,lineupChannelsError:null,epgLineupActivityID:"",epgDownloadActivityID:"",addDevicePending:!1,isSavingDVR:!1,hasScannedChannels:!1}});t.b=m},function(e,t,n){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0});var i=n(36),a=n(37);n.d(t,"resetEPGSettings",function(){return r}),n.d(t,"fetchEPGCountries",function(){return s}),n.d(t,"fetchEPGLanguages",function(){return o}),n.d(t,"selectEPGCountry",function(){return l}),n.d(t,"selectEPGLanguage",function(){return u}),n.d(t,"selectEPGRegion",function(){return c}),n.d(t,"setEPGPostalCode",function(){return d}),n.d(t,"fetchEPGLineups",function(){return p})
;var r=n.i(i.a)(a._54),s=n.i(i.a)(a._55),o=n.i(i.a)(a._56),l=n.i(i.a)(a._57),u=n.i(i.a)(a._58),c=n.i(i.a)(a._59),d=n.i(i.a)(a._60),p=n.i(i.a)(a._61)},function(e,t,n){"use strict";var i=n(13),a=n(36),r=n(1299);n.d(t,"b",function(){return o}),n.d(t,"a",function(){return l}),n.d(t,"c",function(){return u}),n.d(t,"d",function(){return c})
;var s,o=n.i(a.a)("ui/player/remoteCastPlayer/changeCastApiAvailability"),l=n.i(a.a)("ui/player/remoteCastPlayer/requestCastSession"),u=n.i(a.a)("ui/player/remoteCastPlayer/changeRemoteCastPlayer"),c=(s={},s["ui/player/remoteCastPlayer/changeCastApiAvailability"]=function(e,t){e.set("isCastApiAvailable",t)},s["ui/player/remoteCastPlayer/requestCastSession"]=function(e){n.i(i.a)("remoteCastPlayerManager").requestSession()},s["ui/player/remoteCastPlayer/changeRemoteCastPlayer"]=function(e,t){
var n=e.get("ui"),i=n.get("audioVideoPlayer"),a=n.get("photoPlayer");i.get("isOpen")&&i.set("confirmLocalToRemote",!0),a.get("isOpen")&&a.set("confirmLocalToRemote",!0),e.set("remotePlayer",new r.a(t,{parse:!0}))},s)},function(e,t,n){"use strict";var i=n(36),a=n(37);n.d(t,"a",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"c",function(){return o}),n.d(t,"i",function(){return l}),n.d(t,"j",function(){return u}),n.d(t,"d",function(){return c}),n.d(t,"e",function(){return d}),
n.d(t,"h",function(){return p}),n.d(t,"f",function(){return h}),n.d(t,"g",function(){return f});var r=n.i(i.a)(a.Z),s=(n.i(i.a)(a._0),n.i(i.a)(a._1)),o=n.i(i.a)(a._2),l=n.i(i.a)(a._3),u=n.i(i.a)(a._4),c=n.i(i.a)(a._5),d=n.i(i.a)(a._6),p=n.i(i.a)(a._7),h=n.i(i.a)(a._8),f=n.i(i.a)(a._9)},function(e,t,n){"use strict";function i(){return n.i(s.createSelector)(function(e){return e.ui.liveTVSettingsPage},function(e,t){return t.dvrID},function(e,t){var n=e.dvrs;return r.a.find(n,{key:t})})}
var a=n(3),r=n.n(a),s=n(5);n.n(s);t.a=i},function(e,t,n){"use strict";function i(){return n.i(s.createSelector)(n.i(l.a)(),n.i(u.a)(),function(e,t){return r.a.find(t,function(t){return t.type===o.a.PROVIDER_EPG_LOAD&&t.Context.identifier===e.identifier})})}var a=n(3),r=n.n(a),s=n(5),o=(n.n(s),n(134)),l=n(136),u=n(243);t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(function(e,t){return t.containerKey},function(e,t){return t.containerTitle
},n.i(r.a)(),s.a,o.a,n.i(l.a)(),function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments[3],r=arguments[4],s=arguments[5];if(i.isFolder){var o=e.match(/(.*?)\/folder/)[1],l={folderKey:s,folderTitle:i.title,parentFolderKey:e,parentFolderTitle:t};return n.i(u.a)(a,r,o,l,i.type)}return n.i(c.a)(a,r,s,{},i.type)})}var a=n(5),r=(n.n(a),n(21)),s=n(45),o=n(43),l=n(1795),u=n(96),c=n(118);t.a=i},function(e,t,n){"use strict";function i(){
return n.i(a.createSelector)(n.i(r.a)(),s.a,function(e,t){return!!e&&n.i(o.a)(t,e.ratingKey)})}var a=n(5),r=(n.n(a),n(21)),s=n(912),o=n(1061);t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(function(e,t){return t.listType},n.i(s.a)(),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.type;if(i){if(i===r.d)return r.d;if(e===r.h)return r.h;var a=n.i(r.n)(i);return a&&a.mediaType}})}var a=n(5),r=(n.n(a),n(30)),s=n(21);t.a=i
},function(e,t,n){"use strict";function i(e){return e.remotePlayer?e.remotePlayer.volume:e.experienceSettings.volume}t.a=i},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"j",function(){return a}),n.d(t,"c",function(){return r}),n.d(t,"d",function(){return s}),n.d(t,"b",function(){return o}),n.d(t,"i",function(){return l}),n.d(t,"h",function(){return u}),n.d(t,"e",function(){return c}),n.d(t,"f",function(){return d}),n.d(t,"g",function(){return p})
;var i=9,a=13,r=16,s=17,o=27,l=38,u=40,c=91,d=93,p=224},function(e,t,n){"use strict";var i=n(18),a=n(39),r=n.n(a),s=n(31),o=i.a.Layout.extend({mountReact:function(){n.i(s.a)(!1,"`mountReact` must be implemented by a subclass of `AbstractReactView`")},unmountReact:function(){this.isRendered&&r.a.unmountComponentAtNode(this.el)},onBeforeRender:function(){this.unmountReact()},onRender:function(){this.mountReact()},onClose:function(){this.unmountReact()}});t.a=o},function(e,t,n){"use strict"
;var i=n(3118),a=n.n(i),r=n(10),s=n.n(r),o=n(3),l=n.n(o),u=n(18),c=n(13),d=n(4),p=n(279),h=n(581),f=n(58),v=n(598),m=n(1900),g=n(1845),y=u.a.Layout.extend({tagName:"li",className:"striped-list-item media-list-item",template:a.a,ui:{container:".media-list-inner-item",actions:".media-actions",dropdown:".media-actions-dropdown"},regions:{rating:".media-rating",progress:".media-progress"},events:{"mouseenter > a":"onMouseEnter","mouseleave > a":"onMouseLeave","mousedown > a":"onMouseDown",
"click > a":"onClick","click .play-btn":"onPlayClick","click .more-btn":"onMoreClick","hide.bs.dropdown .media-actions-dropdown":"onDropdownHide"},initialize:function(e){var t=this.model,n=t.get("type");this.type=n,this.$el.addClass(n),this.mediaActions=new h.a({},{item:t,type:n,server:t.server}),this.listenTo(this.mediaActions,{"change:showPlay":this.onActionsChange,"change:showListDropdown":this.onActionsChange})},serializeData:function(){this.shared=this.model.server.get("shared"),
this.synced=!this.model.server.get("isFullServer"),this.multiuser=this.model.server.get("multiuser");var e=this.model.toJSON(),t="#!/server/"+encodeURIComponent(this.model.server.id);if(this.model.channel){var n=this.model.channel,i=n.id?n.id:n.get("identifier");t+="/channel/"+encodeURIComponent(i),"clip"===e.type?t+="/details/"+encodeURIComponent(e.key):t+="/"+encodeURIComponent(e.key)
}else"userPlaylistItem"===e.type?t="#!/playlist/"+this.model.userPlaylistKey+"/details/"+e.id:e.isLibraryItem&&(t+="/details?key="+encodeURIComponent(e.key));return{item:e,url:t,showActions:this.showActions()}},getPosterUrl:function(e){return"show"===this.type?this.model.get("grandparentThumb")||this.model.get("parentThumb")||e:e||this.model.get("parentThumb")||this.model.get("grandparentThumb")},showActions:function(){
return this.mediaActions.get("showPlay")||this.mediaActions.get("showEdit")||this.mediaActions.get("showListDropdown")},bindings:{".play-btn":{model:"mediaActions",modelAttribute:"showPlay",manual:!0,autohide:!0},".more-btn":{model:"mediaActions",modelAttribute:"showListDropdown",manual:!0,autohide:!0},".media-title":{modelAttribute:"title",modelListeners:["title","parentTitle","grandparentTitle"],isHtml:!0,formatter:function(e){
var t=this.model.get("grandparentTitle")||this.model.get("parentTitle")||e,n=this.model.get("type");return/^(season|episode|album|track)$/.test(n)&&this.model.get("isLibraryItem")?'<span class="btn-metadata-link media-title-link">'+l.a.escape(t)+"</span>":l.a.escape(t)}},".media-subtitle-1":{modelAttribute:"year",modelListeners:["title","parentTitle","grandparentTitle","year"],autohide:!0,formatter:function(e){var t
;if("userPlaylistItem"===this.model.get("type"))this.model.get("recommender")&&(t=n.i(d.default)("from {1}",this.model.get("recommender")));else{t=this.model.get("grandparentTitle")||this.model.get("parentTitle")?this.model.get("title"):e}return this.$el.toggleClass("show-subtitle",!!t),t}},".media-subtitle-2":{modelAttribute:"index",modelListeners:["index","message"],autohide:!0,formatter:function(e){var t=this.model.get("type")
;return"userPlaylistItem"===t?this.model.get("message"):"episode"===t?n.i(p.a)({seasonIndex:this.model.get("parentIndex"),episodeIndex:e,date:this.model.get("originallyAvailableAt"),noLeadingZero:!0,separator:" \xb7 "}):void 0}}},onRender:function(){this.image&&this.image.setElement(this.ui.poster),("rating"===this.sort||this.showRating)&&this.rating.show(new v.a({model:this.model,disabled:!0})),this.progress&&this.progress.show(new m.a({model:this.model}))},onClose:function(){
this.image&&this.image.close(),this.dropdown&&this.dropdown.close()},onActionsChange:function(e){if(this.isRendered){var t=!this.showActions();this.ui.container.toggleClass("hide-actions",t),this.ui.actions.toggleClass("hidden",t)}},onClick:function(e){var t=this.model.get("type"),i=/^(track|photo)$/;if(this.isPhotoSection&&(i=/^(track|photo|clip)$/),i.test(t)){e.preventDefault();n.i(c.a)("appStore").dispatch(n.i(f.a)({serverModel:this.model.server,metadataItemModel:this.model}))}},
onPlayClick:function(e){e.preventDefault(),e.stopImmediatePropagation(),n.i(c.a)("appStore").dispatch(n.i(f.a)({serverModel:this.model.server,metadataItemModel:this.model}))},onMoreClick:function(e){e.preventDefault(),e.stopImmediatePropagation(),s()(".media-actions-dropdown").trigger("hide.bs.dropdown"),this.dropdown=new g.a({model:this.model,mediaActions:this.mediaActions}),this.ui.dropdown.append(this.dropdown.render().el),this.ui.dropdown.addClass("open"),
this.$el.addClass("force-hover on-top"),this.ui.dropdown.css(this.ui.actions.position())},onDropdownHide:function(e){this.dropdown&&(this.dropdown.close(),this.dropdown=null,this.$el.removeClass("force-hover on-top"))}});t.a=y},function(e,t,n){"use strict";var i=n(3144),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(55),c=n(4),d=n(15),p=n(66),h=n(30),f=n(239),v=n(747),m=n(748),g=n(1906),y=n(299),b=y.a.extend({name:"addToPlaylistModal",
className:"add-to-playlist-modal select-modal modal modal-sm fade",template:a.a,ui:{addBtn:".add-btn",newPlaylist:".message"},regions:{list:".playlists-container"},events:s.a.extend({"click .playlist":"onPlaylistClick","keyup .message":"onNewPlaylistKeyUp","click .message":"onNewPlaylistClick","click .add-btn":"onAddClick"},y.a.prototype.events),initialize:function(e){y.a.prototype.initialize.apply(this,arguments),this.items=e.items,this.title=e.title,this.smart=e.smart,
this.selectedType=e.type&&n.i(h.b)(e.type).id,(!this.items||1===this.items.length&&this.items[0]===this.model)&&(this.ignoreTargets=!0);var t=n.i(f.a)(this.model);this.model.get("isMetadataList")?this.mediaType=n.i(h.n)(this.model.get("firstItemType")).mediaType:this.model.get("playQueueID")?this.mediaType=this.model.get("type"):s.a.isEmpty(t)?this.mediaType=n.i(h.n)(this.model.get("type")).mediaType:this.mediaType=n.i(h.n)(t.get("type")).mediaType,this.playlistList=new v.a({},{
server:this.model.server,section:new u.a.Model({currentType:this.mediaType,onlyDumb:!0})}),this.playlists=this.playlistList.getCollection(),this.loading=!0,this.playlistList.populate().always(this.whenRendered(this.onPopulated))},serializeData:function(){return{loading:this.loading,showExisting:!this.smart,hasPlaylists:this.playlists.length>0,isAlbums:this.mediaType===p.c}},toggleAddButton:function(){var e=this.ui.newPlaylist.val().trim();this.ui.addBtn.toggleClass("disabled",!e)},
suggestTitleIfEmpty:function(){""===this.ui.newPlaylist.val()&&(this.ui.newPlaylist.val(this.title),this.ui.newPlaylist.select(),this.toggleAddButton())},_addToPlaylist:function(e){this.ui.addBtn.addClass("active");var t,i=this.model.server;this.ignoreTargets||(t=i.supports("playItemsBatchAdd")?this.items:s.a.first(this.items));var a=e.addContent(this.model,{items:t,sourceType:this.selectedType});return a.done(this.whenRendered(this.hide)),a.fail(this.whenRendered(function(){
this.ui.addBtn.removeClass("active"),d.a.trigger("show:alert",{type:"error",message:n.i(c.default)("There was a problem adding to the playlist.")})})),a},_createPlaylist:function(){var e=this.ui.newPlaylist.val().trim();if(e){var t=new m.a({title:e,playlistType:this.mediaType,smart:this.smart},{server:this.model.server});this._addToPlaylist(t).then(s.a.bind(function(){d.a.trigger("navigate","playlist",{serverID:t.server.id,key:t.get("key").replace("/items","")})},this))}},onRender:function(){
y.a.prototype.onRender.apply(this,arguments),this.smart&&setTimeout(this.whenRendered(function(){this.ui.newPlaylist.focus(),this.suggestTitleIfEmpty()}),this.focusDelay)},onPopulated:function(){this.loading=!1,this.render(),this.list.show(new g.a({collection:this.playlists}))},onNewPlaylistKeyUp:function(e){this.toggleAddButton(),13===e.keyCode&&this._createPlaylist()},onNewPlaylistClick:function(){this.suggestTitleIfEmpty()},onPlaylistClick:function(e){e.preventDefault()
;var t=l()(e.currentTarget),n=t.data("id"),i=this.playlists.get(n);this._addToPlaylist(i)},onAddClick:function(e){e.preventDefault(),this.ui.addBtn.isDisabled()||this._createPlaylist()}});t.a=b},function(e,t,n){"use strict";var i=n(3147),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(4),c=n(15),d=n(19),p=n(62),h=p.a.extend({name:"channelSettingsModal",className:"channel-settings-modal modal fade",template:a.a,ui:{submitBtn:".submit-btn"},events:s.a.extend({"change input[name]":"onInputChange",
"change select[name]":"onInputChange","submit #channel-settings-form":"onSubmit"},p.a.prototype.events),initialize:function(){p.a.prototype.initialize.apply(this,arguments),this.changes={}},serializeData:function(){var e=this.model.get("title")||this.model.get("name");return{title:e?e:"Preferences...",settings:this.collection.toJSON()}},onInputChange:function(e){var t=e.currentTarget,n=t.value;"checkbox"===t.type&&(n=t.checked),this.changes[t.name]=n},onSubmit:function(e){if(e.preventDefault(),
s.a.isEmpty(this.changes))return void this.hide();var t=this.ui.submitBtn;if(!t.hasClass("active")){t.addClass("active");var i=this.collection.first(),a=i.getSaveParams(this.changes),r=s.a.result(this.collection,"url"),o=d.join([r,"/set"],a),p=l.a.ajax(i.server.getXHROptions(o));p.done(s.a.bind(function(){this.hide()},this)),p.fail(s.a.bind(function(){c.a.trigger("show:alert",{type:"error",message:n.i(u.default)("There was a problem saving these settings.")})},this)),p.always(function(){
t.removeClass("active")})}}});t.a=h},function(e,t,n){"use strict";var i=n(3150),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(13),c=n(4),d=n(15),p=n(49),h=n(19),f=n(154),v=n(30),m=n(333),g=n(72),y=n(133),b=n(100),S=n(96),I=n(1856),M=n(1859),C=n(1860),w=n(1866),D=n(1858),P=n(62),T=n(363),x=n(353),E=P.a.extend({mixins:[x.a],name:"editSectionModal",className:"edit-section-modal modal modal-lg fade",template:a.a,panes:{type:{constructor:w.a,nextPane:"folders",dependentPanes:function(){
return this.showFolders?["folders"]:["options","advanced"]}},folders:{constructor:M.a,nextPane:"options",dependentPanes:["options","advanced"]},options:{constructor:C.a,nextPane:"advanced"},advanced:{constructor:I.a},error:{constructor:D.a}},panesModel:"tempModel",ui:{sidebar:".modal-nav-list",optionsBtn:".options-btn",saveBtn:".save-btn",message:".form-message",headerSectionType:".section-type-title"},regions:{paneRegion:".pane-region"},events:s.a.extend({
"click .change-pane-btn":"onChangePaneClick","click .save-btn":"onSaveClick","submit .edit-section-type-form":"onGeneralFormSubmit"},P.a.prototype.events),onlyAfterRender:["showPane","updateMessage","updateSectionTitle","updateSectionTitleDestabilized","updateSaveBtn"],paneConstructorArg:function(){return{isDefaultSection:this.isDefaultSection}},initialize:function(e){var t=this;P.a.prototype.initialize.apply(this,arguments),this.server=e.server,this.redirect=e.redirect,
this.isDefaultSection=e.isDefaultSection,this.isLoading=!0,this.model?(this.tempModel=this.model.clone(),this.tempModel.collection=this.model.collection):this.tempModel=new m.a({},{server:this.server,collection:this.server.get("sections")}),this.listenTo(this.tempModel,"change:type",this.onSectionTypeChange),this.tempModel.isNew()&&e.seedAttrs&&this.tempModel.set(this.tempModel.parse(e.seedAttrs)),this._deferred=l.a.Deferred(),this.promise=this._deferred.promise()
;var n=this.server.get("desktop").get("providers");n.populate().done(this.whenRendered(function(){var i=n.get(g.a.LIBRARY_PROVIDER_IDENTIFIER),a=i.get("features").get(y.a.MANAGE),r=a.get("automaticLibraryFolders");t.showFolders=!r,t.isLoading=!1,t.render(),t.showPane(e.selectedPane||"type")}))},serializeData:function(){var e=this.tempModel,t=e.isNew();return{isLoading:this.isLoading,add:t,edit:!t,section:e&&e.toJSON(),selectedPane:this.selectedPane,showFolders:this.showFolders}},
updateMessage:function(e){this.ui.message.text(e||"")},updateSaveBtn:function e(){var t=this.ui.saveBtn,n=this.panes[this.selectedPane],e=s.a.bind(function(e){var i=n.nextPane,a=this.tempModel.isNew(),r=!n.constructor.prototype.validate||0===n.constructor.prototype.validate(this.tempModel).length,s=!this.getReachablePanes().isAnyInvalid;this.ui.optionsBtn.toggleClass("hidden",!e.showOptions);var o,l=s||a&&r;o=i,e.showOptions||"options"!==i||(o=!1),s&&(o=!1),e.showOptions&&"options"===i&&(o=!0),
e.showAdvanced&&"advanced"===i&&(o=!0),t.toggleClass("save",!o),t.toggleClass("next",!!o),t.toggleClass("disabled",!l)},this),i=this.tempModel.server,a=this.tempModel.sectionType,r=a&&"music"===a.key,o=a&&"photos"===a.key,l=r&&i.supports("premiumMusic"),u=o&&i.get("photoAutoTag")&&i.hasOwnerFeature("photo_autotags"),c=this.tempModel.isNew();l?this.paneRegion.currentView.populateAgents().then(function(t){var n=t.findWhere({identifier:"com.plexapp.agents.plexmusic"}),i=c&&n;e({showOptions:i,
showAdvanced:i})}):u?this.paneRegion.currentView.populateSectionSettings().then(function(){e({showOptions:!0,showAdvanced:!1})}):e({})},updateSectionTitle:function(){var e=f.a.get(this.tempModel.get("type"));if(e){this.updateSectionTitleDestabilized();var t=s.a.escape(e.title);this.ui.headerSectionType.html(t)}},updateSectionTitleDestabilized:function(){this.ui.headerSectionType.addClass("section-type-title-unstable"),this.ui.headerSectionType.triggerReflow(),
this.ui.headerSectionType.removeClass("section-type-title-unstable")},save:function(){var e=this.ui.saveBtn;this.updateMessage(""),e.addClass("active");var t=this.saveModel();t.always(function(){e.removeClass("active")}),t.fail(s.a.bind(function(e){503===e.status?d.a.trigger("show:modal",new T.a({model:this.server})):this.updateMessage(n.i(c.default)("Your changes could not be saved."))},this)),t.then(s.a.bind(function(){var e=this.model.server.entityID(),t=n.i(u.a)("appStore").dispatch
;if(t(n.i(b.d)({serverEntityID:e})),t(n.i(b.b)({serverEntityID:e})),!this.redirect)return this._deferred.resolve(),void this.hide();var i={machineIdentifier:this.model.server.id},a={isLibraryProvider:!0},r={};this.model.get("type")===v.g&&(r.type=n.i(v.b)(v.q).id,r.sort="addedAt:desc"),window.location.hash=n.i(S.a)(i,a,this.model.id,r),this._deferred.resolve(),this.hide()},this))},saveModel:function(){var e;return this.tempModel.isNew()?(e=this.tempModel.save(),e=e.then(s.a.bind(function(e,t,n){
var i=p.a.parseXML(e);if(201===n.status){if(i.Directory&&(i=i.Directory),!i.key){var a=n.getResponseHeader("Location");a&&(i.key=a.substring(a.lastIndexOf("/")+1))}var r=this.server;return r.supports("advancedFilters")&&(i.filters=!0),this.model=new m.a(i,{parse:!0,server:this.server}),r.get("sections").add(this.model),n}},this))):(this.model.copy(this.tempModel),e=this.model.save()),e=e.then(s.a.bind(this.saveSettings,this)),e=e.then(s.a.bind(this.saveAgentSettings,this))},
saveSettings:function(){var e=l.a.Deferred().resolve(this.model).promise();if(!this.server.supports("sectionSettings"))return e;var t=this.tempModel.settings;if(!t)return e;var n=this.getSettingsChanges(t);if(s.a.isEmpty(n))return e;var i=t.first(),a=i.getSaveParams(n),r=h.join(["/library/sections/",this.model.id,"/prefs"],a),o=s.a.extend(this.server.getXHROptions(r),{type:"PUT"});return l.a.ajax(o).promise().then(function(){return e})},saveAgentSettings:function(){
var e=l.a.Deferred().resolve(this.model).promise(),t=this.tempModel.agentSettings;if(!this.tempModel.agentSettings)return e;var n=this.getSettingsChanges(t);if(s.a.isEmpty(n))return e;var i=t.first(),a=i.getSaveParams(n),r=s.a.result(t,"url"),o=h.join([r,"/set"],a),u=i.server.getXHROptions(o);return l.a.ajax(u).promise().then(function(){return e})},getSettingsChanges:function(e){return e.filter(function(e){return e.changedAttributes()}).reduce(function(e,t){var n=t.get("value")
;return"bool"===t.get("type")&&(n=n?"1":"0"),e[t.get("id")]=n,e},{})},onPaneShow:function(e,t){this.listenTo(t,"valid",this.updateSaveBtn),this.listenTo(t,"invalid",this.updateSaveBtn),this.updateSaveBtn()},onPaneHide:function(e,t){this.stopListening(t,"valid",this.updateSaveBtn),this.stopListening(t,"invalid",this.updateSaveBtn)},onChangePaneClick:function(e){e.preventDefault();var t=this.$(e.currentTarget);t.isDisabled()||this.showPane(t.data("pane"))},onSaveClick:function(e){
e.preventDefault();var t=this.ui.saveBtn;if(!t.isDisabled())if(t.hasClass("next")){var n=this.panes[this.selectedPane].nextPane;"folders"!==n||this.showFolders||(n=this.ui.sidebar.find(".options-btn").isDisabled()?"advanced":"options"),n&&!this.ui.sidebar.find("."+n+"-btn").isDisabled()&&this.showPane(n)}else this.save()},onGeneralFormSubmit:function(e){this.onSaveClick(e)},onSectionTypeChange:function(){this.updateSaveBtn()}});t.a=E},function(e,t,n){"use strict"
;var i=n(3172),a=n.n(i),r=n(10),s=n.n(r),o=n(287),l=n(582),u=n(1667),c=n(1658),d=n(62),p=n(1957),h=n(1956),f=n(1958),v=n(1953),m=d.a.extend({mixins:[o.a],name:"convertModal",className:"convert-modal modal fade",template:a.a,regions:{bodyRegion:".modal-body-region"},initialize:function(e){d.a.prototype.initialize.apply(this,arguments),this.server=this.model?this.model.server:e.item.server;var t={server:this.server,allowInCache:!0};this.playlists=new l.a([],t),this.targets=new u.a([],t),
this.profiles=new c.a([],t)},initialState:"loading",states:{loading:{nextState:"form",onEnter:function(){this.bodyRegion.show(new p.a),this.listenForStateRequests();var e=this.options.item,t=e&&!e.get("isMetadataList"),n=s.a.when(t?e.populate():null,this.playlists.populate(),this.targets.populate(),this.profiles.populate(),this.server.get("sections").populate());n.done(this.whenRendered(function(){this.playlist=this.playlists.first(),this.playlist?this.enterNextState():this.enterState("error")
})),n.fail(this.whenRendered(function(){this.enterState("error")}))}},form:{nextState:"success",onEnter:function(){this.bodyRegion.show(new h.a({model:this.model,item:this.options.item,items:this.options.items,playlist:this.playlist,targets:this.targets,profiles:this.profiles})),this.listenForStateRequests()}},success:{onEnter:function(){this.model?this.hide():(this.bodyRegion.show(new f.a({server:this.server})),this.listenForStateRequests())}},error:{onEnter:function(e){
this.bodyRegion.show(new v.a({status:e})),this.listenForStateRequests()}}},listenForStateRequests:function(){this.bodyRegion&&this.bodyRegion.currentView&&this.listenTo(this.bodyRegion.currentView,{"request:state":this.enterState,"request:nextState":this.enterNextState})},onRender:function(){d.a.prototype.onRender.apply(this,arguments),this.enterNextState()},onStateMachineComplete:function(){this.hide()}});t.a=m},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children,i=e.kind
;return r()("span",{className:(t||"")+" "+(u.a.badge||"")+" "+(u.a[i]||"")+" "+(!n&&u.a.isHidden||"")},void 0,n)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(74)),l=n(2684),u=n.n(l);i.defaultProps={kind:o.DEFAULT},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.selectedClassName,a=e.circleClassName,s=e.iconClassName,l=e.title,c=e.isSelected,v=u()(e,["className","selectedClassName","circleClassName","iconClassName","title","isSelected"]);return d.a.createElement(f.a,r()({
className:(t||"")+" "+(c&&i||""),"aria-label":c?n.i(p.default)("Deselect {title}",{title:l}):n.i(p.default)("Select {title}",{title:l})},v),o()("div",{className:a},void 0,o()(h.a,{name:"plex-icon-selected-560",className:s})))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(4),h=n(27),f=n(23),v=n(2705),m=n.n(v);i.defaultProps={className:m.a.selectButton,selectedClassName:m.a.isSelected,circleClassName:m.a.selectCircle,iconClassName:m.a.selectedIcon},t.a=i
},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.className,i=o()(e,["children","className"]);return u.a.createElement("p",r()({},i,{className:n}),t)}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(2711),d=n.n(c);i.defaultProps={className:d.a.help},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.name,i=e.labelText,a=e.showErrors,s=e.errors,l=s[0];return r()(o.a,{className:t,hasError:a,name:n},void 0,i,a&&l&&" \u2014 "+l)}
var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(126));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.name,n=e.labelText,i=e.helpText,a=e.showErrors,s=e.errors,l=u()(e,["name","labelText","helpText","showErrors","errors"]);return o()(h.a,{},void 0,o()(f.a,{showErrors:a,errors:s,name:t,labelText:n}),d.a.createElement(m.a,r()({name:t,hasError:a},l)),i&&o()(v.a,{},void 0,i))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(157),h=n(214),f=n(443),v=n(442),m=n(215)
;t.a=n.i(p.a)(i)},function(e,t,n){"use strict";function i(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(e){var t,n=e.label,i=e.value;return t={},t[i]=n,t})}function a(e){var t=e.id,n=e.type,a=e.label,r=e.summary,o=e.value,f=e.initialValueModifier,v=e.enumValues,m={name:t,helpText:r,initialValue:f(o)};if(Array.isArray(v))return l.a.createElement(c.a,s()({labelText:a},m,{values:i(v)}));switch(n){case u.a.TEXT:return l.a.createElement(d.a,s()({labelText:a},m))
;case u.a.BOOL:return l.a.createElement(h.a,s()({checkboxText:a},m));case u.a.INT:return l.a.createElement(p.a,s()({labelText:a},m));default:return null}}var r=n(6),s=n.n(r),o=n(0),l=n.n(o),u=n(756),c=n(444),d=n(609),p=n(2039),h=n(608);a.defaultProps={initialValueModifier:function(e){return e}},t.a=a},function(e,t,n){"use strict";function i(){return r()("div",{className:l.a.separator})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2732)),l=n.n(o);t.a=i},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=n.n(d),h=n(4),f=n(349),v=n(20),m=n(26),g=(n(580),n(32),n(27)),y=n(23),b=n(368),S=n(448),I=n(371),M=n(2774),C=n.n(M),w=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onListUpdate=function(e){var t=e.visibleStartIndex,n=e.visibleEndIndex,i=e.renderEndIndex,r=e.listStyle,s=a.props.onListReady,o=a._isReady?void 0:s;a._isReady=!0,a._visibleStartIndex=t,a._visibleEndIndex=n,
a._pageSize=a._visibleEndIndex-a._visibleStartIndex;var l=t>0,u=i>n;a.setState({showActions:l||u,enablePrevious:l,enableNext:u,listHeight:r.height},o)},a.onListScrollIndexChange=function(e){a.setState({scrollIndex:e})},a.onPreviousPress=function(e){a.setState({scrollIndex:a._visibleStartIndex-a._pageSize-1})},a.onNextPress=function(e){a.setState({scrollIndex:a._visibleEndIndex+1})},a.state={showActions:!1,enablePrevious:!1,enableNext:!1,listHeight:"auto",scrollIndex:0},a._isReady=!1,a}
return c()(t,e),t.prototype.componentDidMount=function(){this.props.more&&!this.props.totalSize&&this.props.onPageRequest({startIndex:0,endIndex:this.props.size}),this.props.size||this.props.totalSize||(this._isReady=!0,this.props.onListReady&&this.props.onListReady())},t.prototype.shouldComponentUpdate=function(e,t){return n.i(m.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.className,i=e.hubIdentifier,r=e.title,s=e.hubLink,o=e.listType,l=e.listContext,u=e.size,c=e.more,d=e.random,m=e.totalSize,M=e.keyPropName,w=e.itemsOffset,D=e.items,P=e.layout,T=e.cellRenderer,x=e.onPageRequest,E=this.state,N=E.showActions,L=E.enablePrevious,A=E.enableNext,k=E.listHeight;if(!u&&!m)return null;var _=n.i(f.a)(r),O=c?u+1:u,j={visibility:"auto"===k?"hidden":"visible"},R={height:k,overflow:"hidden"};return a()("div",{className:t,style:j,"data-qa-id":"hub--"+i
},void 0,a()(S.a,{},void 0,a()(I.a,{},void 0,s?a()(y.a,{to:s},void 0,_):_),N&&a()("div",{className:C.a.hubActions},void 0,a()(y.a,{className:C.a.hubScrollButton,"data-qa-id":"hubPreviousButton",isDisabled:!L,onPress:this.onPreviousPress},void 0,a()(g.a,{name:"plex-icon-hub-prev-560","aria-label":n.i(h.default)("Previous Page")})),a()(y.a,{className:C.a.hubScrollButton,"data-qa-id":"hubNextButton",isDisabled:!A,onPress:this.onNextPress},void 0,a()(g.a,{name:"plex-icon-hub-next-560",
"aria-label":n.i(h.default)("Next Page")})))),a()("div",{style:R},void 0,p.a.createElement(b.a,{ignoreHeight:!0,keyPropName:M,items:D,itemsOffset:w,listType:o,listContext:l,scrollDirection:v.a.HORIZONTAL,scrollIndex:this.state.scrollIndex,size:d?u:m||O,layout:P,cellRenderer:T,ref:"list",onListUpdate:this.onListUpdate,onListScrollIndexChange:this.onListScrollIndexChange,onPageRequest:x})))},t}(d.Component);w.defaultProps={className:C.a.hubCell},t.a=w},function(e,t,n){"use strict";function i(e){
var t=e.children,n=e.className;return r()("div",{className:n},void 0,t)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2775)),l=n.n(o);i.defaultProps={className:l.a.hubCellHeader},t.a=i},function(e,t,n){"use strict";function i(){return n.i(l.createSelector)(function(e,t){return t.listContext},function(e,t){return t.cellWidth},n.i(d.a)(),n.i(p.a)(),n.i(h.a)(),n.i(f.a)(),v.a,function(e,t){
var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments[3],r=arguments[4],s=arguments[5],o=arguments[6],l=n.i(c.a)(t,null,a,i,e);return{isContinueWatching:e===u.b,metadataKey:i.key,type:a,selectionType:r,activeSelectionType:o.activeSelectionType,isSelected:s,imageWidth:l.width,imageHeight:l.height,imageUrl:l.url,isFolder:i.isFolder}})}function a(e,t){var i=t.metadataListEntityID;return{onSelectItem:function(t){e(n.i(m.a)(s()({metadataListEntityID:i},t)))},
onDeselectItem:function(t){e(n.i(m.b)(s()({metadataListEntityID:i},t)))}}}var r=n(6),s=n.n(r),o=n(11),l=n(5),u=(n.n(l),n(32)),c=n(256),d=n(21),p=n(591),h=n(431),f=n(430),v=n(83),m=n(125),g=n(2095);t.a=n.i(o.b)(i,a)(g.a)},function(e,t,n){"use strict";function i(e){switch(e){case"movie":return[f.a];case"show":return[f.a];case"episode":return[v.a,m.a];case"playlist":return[f.a];default:return[f.a]}}function a(e){
var t=e.serverEntityID,a=e.target,r=e.useStaticHeight,o=e.children,u=a.type,f=a.thumb,v=a.grandparentThumb,m="playlist"===u?"show":u;return l()("div",{className:S.a.container},void 0,l()("div",{className:S.a.left},void 0,l()(p.a,{serverEntityID:t,component:h.a,type:m,width:I,height:n.i(d.a)(I,m),url:v||f},void 0,l()("div",{className:S.a.subscriptionBadge},void 0,l()(g.a,{type:u})))),l()("div",{className:S.a.right},void 0,l()("div",{className:r?S.a.staticHeightTitleContainer:S.a.titleContainer
},void 0,i(u).map(function(e,t){return c.a.createElement(y.a,s()({key:t,component:e,isSecondary:t>0},a))})),o))}var r=n(6),s=n.n(r),o=n(2),l=n.n(o),u=n(0),c=n.n(u),d=n(132),p=n(301),h=n(248),f=n(452),v=n(622),m=n(629),g=n(620),y=n(2130),b=n(2795),S=n.n(b),I=130;a.defaultProps={useStaticHeight:!1},t.a=a},function(e,t,n){"use strict";function i(e){var t=e.imageWidth,n=e.imageHeight,i=e.activeSelectionType,a=e.isSelected,s={width:t,height:n};return r()("div",{
className:(l.a.placeholder||"")+" "+(a&&l.a.isSelected||"")+" "+(!!i&&!a&&l.a.isOtherItemSelected||""),style:s})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2803)),l=n.n(o);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.title;return r()("span",{className:t},void 0,n)}var a=n(2),r=n.n(a),s=n(0);n.n(s);t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(){return{year:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).year}
})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(986);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),s=n.n(r),o=n(14),l=n.n(o),u=n(7),c=n.n(u),d=n(9),p=n.n(d),h=n(8),f=n.n(h),v=n(0),m=n.n(v),g=n(26),y=n(27),b=n(129),S=function(e){function t(){return c()(this,t),p()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(g.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.children,n=e.icon,i=e.label,r=e.isMenuOpen,o=l()(e,["children","icon","label","isMenuOpen"]);return m.a.createElement(b.a,a()({"aria-haspopup":!0,tooltip:r?void 0:i,hideOnPress:!1},o),s()(y.a,{name:n}),t)},t}(v.Component);t.a=S},function(e,t,n){"use strict";function i(){return n.i(v.createSelector)(n.i(g.a)(),n.i(m.a)(),y.a,function(e,t,n){var i=e.isHubKey,a=e.directory,r=t.desktop,s=r.isProvidersPending,o=r.isLibrariesPending;return{isHubKey:i,selectedDirectory:a,
libraryRoutes:n,showSpinner:!a&&(s||o)}})}var a=n(6),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=n.n(p),f=n(11),v=n(5),m=(n.n(v),n(46)),g=n(1383),y=n(593),b=n(86),S=n(2191),I=function(e){function t(){return o()(this,t),u()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.componentDidMount=function(){this.props.shouldSaveRoute&&this._saveRoute()},t.prototype.componentDidUpdate=function(e){
var t=this.props,n=t.shouldSaveRoute,i=t.selectedDirectory,a=n!==e.shouldSaveRoute,r=i!==e.selectedDirectory;n&&(a||r)&&this._saveRoute()},t.prototype._saveRoute=function(){var e,t=this.props,n=t.serverEntityID,i=t.isHubKey,a=t.selectedDirectory,s=t.libraryRoutes;if(!i&&a){var o=n+"!"+a.key,l=window.location.hash;if(s[o]!==l&&l.indexOf(encodeURIComponent(a.key))!==-1){var u=r()({},s,(e={},e[o]=l,e));this.props.saveExperienceSettings({libraryRoutes:u})}}},t.prototype.render=function(){
return h.a.createElement(S.a,this.props)},t}(p.Component);t.a=n.i(f.b)(i,{saveExperienceSettings:b.a})(I)},function(e,t,n){"use strict";function i(e){var t=e.machineIdentifier,i=e.providerIdentifier,a=e.isLibraryProvider,s=e.directories,l=e.selectedDirectory,h=o()(e,["machineIdentifier","providerIdentifier","isLibraryProvider","directories","selectedDirectory"]),f=l&&(l.hubKey||l.key),v=encodeURIComponent(t),m=encodeURIComponent(i);return u.a.createElement(d.a,h,s&&s.map(function(e){
var t=e.key,i=e.hubKey,s=e.title,o=e.isHomeDirectory;if(a&&!i)return null;var l=i||t,u=encodeURIComponent(l),d=a?"#!/server/"+v+"/dashboard?key="+u:"#!/server/"+v+"/provider/"+m+"?key="+u;return r()(p.a,{"data-qa-id":"directoriesMenuItem--"+l,to:d,isSelected:f===l},l,o?n.i(c.default)("All Libraries"):s)}))}var a=n(2),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(4),d=n(68),p=n(93);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.types,i=e.pseudoTypes,a=e.selectedType,s=e.libraryRoute,l=e.activeSort,p=e.activeLimit,v=e.activeFilters,m=e.customFilter,g=o()(e,["types","pseudoTypes","selectedType","libraryRoute","activeSort","activeLimit","activeFilters","customFilter"]),y=t.length>0,b=i.length>0;return u.a.createElement(d.a,g,y&&t.map(function(e){var t=e.key,i=e.title;return r()(h.a,{to:n.i(c.a)({typeKey:t,filters:m?v:void 0,sort:m?l:void 0,limit:m?p:void 0,customFilter:m},s),isSelected:a.key===t},t,i)
}),y&&b&&f,i.map(function(e){var t=e.key,n=e.title,i=e.route;return r()(h.a,{to:i,isSelected:a.key===t},i,n)}))}var a=n(2),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=(n(114),n(212)),d=n(68),p=n(446),h=n(93),f=r()(p.a,{});t.a=i},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.className,i=e.labelClassName,a=e.contentClassName,s=e.label;return r()("div",{className:n},void 0,r()("div",{className:i},void 0,s),r()("div",{className:a},void 0,t))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),
n(2866)),l=n.n(o);i.defaultProps={className:l.a.groupItem,labelClassName:l.a.label,contentClassName:l.a.content},t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(s.a,o.a,n.i(l.a)(),n.i(u.a)(),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{server:e,provider:t,librarySectionKey:arguments[3],contentRating:n.contentRating}})}var a=n(11),r=n(5),s=(n.n(r),n(45)),o=n(43),l=n(21),u=n(339),c=n(2308);t.a=n.i(a.b)(i)(c.a)},function(e,t,n){
"use strict";function i(e){var t=e.children,n=e.metricsPage,i=e.metricsPane;return r()(o.a,{metricsPage:n,metricsProperties:{pane:i}},void 0,r()("div",{className:u.a.content},void 0,t))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(187)),l=n(2924),u=n.n(l);t.a=i},function(e,t,n){"use strict";function i(e){return r()("h2",{className:l.a.header},void 0,e.children)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2925)),l=n.n(o);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.selectedKey,n=e.isPlexCloudVisible,i=e.isWebhooksVisible,a=e.isUserUnrestricted,s=e.myPlexUrl,o=e.title;return r()(h.a,{selectedKey:t,isPlexCloudVisible:n,isWebhooksVisible:i,isUserUnrestricted:a,myPlexUrl:s,title:o})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(11)),l=n(5),u=(n.n(l),n(112)),c=n(151),d=n(537),p=n(404),h=n(2542),f=n.i(l.createSelector)(c.a,d.a,n.i(p.a)(u.a),function(e,t,n){return{isPlexCloudVisible:!!t.cpms,isWebhooksVisible:n,isUserUnrestricted:!e.restricted,
myPlexUrl:"https://plex.tv",title:e.title}});t.a=n.i(o.b)(f)(i)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(6),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=(n.n(h),n(13)),v=n(34),m=n(64),g=n(20),y=n(26),b=n(128),S=n(2548),I=function(e){function t(){var i,a,r;l()(this,t);for(var o=arguments.length,u=Array(o),d=0;d<o;d++)u[d]=arguments[d];return i=a=c()(this,e.call.apply(e,[this].concat(u))),a.onModalClose=function(){
n.i(f.a)("metrics").trackClick(s()({},a.props.metricsProperties,{page:v.d,action:m.a})),a.props.onModalClose()},r=i,c()(a,r)}return p()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(y.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.isOpen,n=e.metricsProperties;return a()(b.a,{size:g.d.LARGE,isOpen:t,metricsPage:v.d,metricsProperties:n,onModalClose:this.onModalClose},void 0,a()(S.a,{metricsProperties:n,onModalClose:this.onModalClose}))},t}(h.Component);t.a=I
},function(e,t,n){"use strict";function i(e){var t=function(t){function i(e,n){c()(this,i);var a=p()(this,t.call(this,e,n));return a.onKeyDown=function(e){var t=a.state.pressedModifierKeys;S[e.which]&&t.indexOf(e.which)===-1&&a.setState({pressedModifierKeys:t.concat(e.which)})},a.onKeyUp=function(e){var t=a.state.pressedModifierKeys,n=t.indexOf(e.which);n>-1&&a.setState({pressedModifierKeys:t.slice(0,n).concat(t.slice(n+1))})},a.onMouseDown=function(e){a._isMouseDown=!0},a.onMouseUp=function(e){
a._isMouseDown=!1},a.onFocusChange=function(e){a.state.pressedModifierKeys.length&&a.setState({pressedModifierKeys:[]}),a._isMouseDown=!1},a.onMouseEnter=function(e){var t=a.props,n=t.selectionType,i=t.activeSelectionType;a._isMouseDown&&i&&i===n&&a.onSelectPress(e)},a.onSelectPress=function(e){var t=a.props,n=t.selectionID,i=t.selectionType,r=t.isSelected,s=t.onSelectItem;r||s({id:n,type:i,isRangeSelect:e.shiftKey})},a.onDeselectPress=function(e){
var t=a.props,n=t.selectionID,i=t.isSelected,r=t.onDeselectItem;i&&r({id:n})},a.state={pressedModifierKeys:[]},a}return f()(i,t),i.prototype.componentDidMount=function(){document.addEventListener("keydown",this.onKeyDown),document.addEventListener("keyup",this.onKeyUp),document.addEventListener("mousedown",this.onMouseDown),document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("dragstart",this.onFocusChange),document.addEventListener("contextmenu",this.onFocusChange),
window.addEventListener("blur",this.onFocusChange)},i.prototype.shouldComponentUpdate=function(e,t){return n.i(y.a)(this,e,t)},i.prototype.componentWillUnmount=function(){document.removeEventListener("keydown",this.onKeyDown),document.removeEventListener("keyup",this.onKeyUp),document.removeEventListener("mousedown",this.onMouseDown),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("dragstart",this.onFocusChange),
document.removeEventListener("contextmenu",this.onFocusChange),window.removeEventListener("blur",this.onFocusChange)},i.prototype.render=function(){var t=this.props,n=t.selectionType,i=t.activeSelectionType,a=t.isSelected,r=l()(t,["selectionType","activeSelectionType","isSelected"]),o=this.state.pressedModifierKeys,u=!!i;return m.a.createElement(e,s()({hasActiveSelection:u,isSelected:a,isOtherItemSelected:u&&!a,isConflictingTypeSelected:u&&i!==n,isModifierKeyPressed:o.length>0,
onMouseEnter:this.onMouseEnter,onSelectPress:this.onSelectPress,onDeselectPress:this.onDeselectPress},r))},i}(v.Component);return t.displayName="Selectable("+n.i(b.a)(e)+")",t.WrappedComponent=e,t.defaultProps={disableSelection:!1},t}var a,r=n(6),s=n.n(r),o=n(14),l=n.n(o),u=n(7),c=n.n(u),d=n(9),p=n.n(d),h=n(8),f=n.n(h),v=n(0),m=n.n(v),g=n(433),y=n(26),b=n(211),S=(a={},a[g.c]=!0,a[g.d]=!0,a[g.e]=!0,a[g.f]=!0,a[g.g]=!0,a);t.a=i},function(e,t,n){"use strict";function i(e,t){
var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;t===o.b&&i<0&&i++;var l=e+t+i+a;if(h.hasOwnProperty(l))return h[l];var f=n.i(c.b)(e,t),v=parseInt(u.a.posterTitleHeight,10),m=parseInt(u.a.posterTitlePadding,10),g=void 0,y=void 0,b=void 0,S=void 0;t===o.b?(g=2,y=300,b=1,S=4,m*=2):(g="mixed"===e?a+3:a,y=f>1?180:120,b=2,S=11);var I=g*v+m,M=n.i(s.a)({direction:s.b,rows:1,overscan:4,innerHorizontalPadding:30,
innerVerticalPadding:30,outerPaddingTop:10,outerPaddingRight:5,outerPaddingBottom:5,outerPaddingLeft:5,getCellWidth:function(e){return n.i(d.a)(r()({},e,{minCellWidth:y,minColumns:b,maxColumns:S,columnAdjustment:i,aspectRatio:f}))},getCellHeight:function(e){return n.i(p.a)(r()({},e,{aspectRatio:f,titleHeight:I}))}});return M.cellOptions={minCellWidth:y,minColumns:b,maxColumns:S,columnAdjustment:i,aspectRatio:f,titleHeight:I},h[l]=M,M}
var a=n(6),r=n.n(a),s=n(578),o=n(32),l=n(57),u=n.n(l),c=n(132),d=n(1054),p=n(1053);t.a=i;var h={}},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:40,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;return n.i(a.a)({direction:a.c,columns:1,overscan:t,getCellWidth:function(e){return e.innerViewportWidth},getCellHeight:function(){return e}})}var a=n(578);t.a=i},function(e,t,n){"use strict";function i(e,t,n){
return e[n]&&e[n][t]?e[n][t]:e[t]||p}function a(e,t,n){return e?r.a.EPG_IDENTIFIER.test(n.identifier)?i(d,e,t):i(c,e,t):p}var r=n(72),s=n(32),o=n(77);t.a=a;var l,u,c=(l={},l[s.a]={track:[o.b]},l.movie=[o.e,o.b,o.c],l.show=[o.e,o.b,o.c],l.season=[o.e,o.b],l.episode=[o.e,o.b,o.c],l.artist=[o.e,o.b,o.c],l.album=[o.e,o.b,o.c],l.track=[o.e,o.b],l.photo=[o.a],l.photoalbum=[o.a],l.clip=[o.e,o.b],l),d=(u={},u[s.a]={episode:[o.d]},u.movie=[o.e],u.show=[o.e],u.episode=[o.e],u),p=[o.e]},function(e,t,n){
"use strict";function i(e){var t=e.type,i=e.server,a=e.provider,d=e.libraryKey,p=e.libraryDirectories,h=void 0===p?[]:p,f=[],v=t===o.c,m=r.a.some(h,function(e){return"cluster"===e.key}),g=r.a.some(h,function(e){return"folder"===e.key}),y=i.ownerFeatures&&i.ownerFeatures.indexOf("item_clusters")!==-1,b=i.ownerFeatures&&i.ownerFeatures.indexOf("photos-v5")!==-1;return v&&m&&y&&f.push({key:"timeline",title:n.i(s.default)("Timeline"),route:n.i(u.a)(i,a,d,{save:1})}),v&&b&&f.push({key:"playlists",
title:n.i(s.default)("Albums"),route:n.i(c.a)(i,a,d,{save:1})}),g&&f.push({key:"folder",title:n.i(s.default)("Folders"),route:n.i(l.a)(i,a,d,{folderKey:d+"/folder",save:1})}),f}var a=n(3),r=n.n(a),s=n(4),o=n(66),l=n(96),u=n(1060),c=n(666);t.a=i},function(e,t,n){"use strict";n(870);n.d(t,"d",function(){return i}),n.d(t,"e",function(){return a}),n.d(t,"f",function(){return r}),n.d(t,"a",function(){return s}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return l})
;var i="isActive",a="isFocused",r="isDisabled",s="isDragging",o="isDraggingBefore",l="isDraggingAfter"},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(470);e.exports=function(e){return Object(i(e))}},function(e,t){var n=0,i=Math.random();e.exports=function(e){
return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},,,,,,,function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0,clientOffset:null},n=t.publishSource,i=t.clientOffset,a=t.getSourceClientOffset;(0,c.default)((0,p.default)(e),"Expected sourceIds to be an array.");var r=this.getMonitor(),s=this.getRegistry();(0,
c.default)(!r.isDragging(),"Cannot call beginDrag while dragging.");for(var o=0;o<e.length;o++)(0,c.default)(s.getSource(e[o]),"Expected sourceIds to be registered.");for(var l=null,u=e.length-1;u>=0;u--)if(r.canDragSource(e[u])){l=e[u];break}if(null!==l){var d=null;i&&((0,c.default)("function"==typeof a,"When clientOffset is provided, getSourceClientOffset must be a function."),d=a(l));var h=s.getSource(l),v=h.beginDrag(r,l);(0,c.default)((0,f.default)(v),"Item must be an object."),
s.pinSource(l);var m=s.getSourceType(l);return{type:g,itemType:m,item:v,sourceId:l,clientOffset:i,sourceClientOffset:d,isSourcePublic:n}}}function r(){if(this.getMonitor().isDragging())return{type:y}}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.clientOffset,i=void 0===n?null:n;(0,c.default)((0,p.default)(e),"Expected targetIds to be an array.");var a=e.slice(0),r=this.getMonitor(),s=this.getRegistry();(0,
c.default)(r.isDragging(),"Cannot call hover while not dragging."),(0,c.default)(!r.didDrop(),"Cannot call hover after drop.");for(var o=0;o<a.length;o++){var l=a[o];(0,c.default)(a.lastIndexOf(l)===o,"Expected targetIds to be unique in the passed array.");var u=s.getTarget(l);(0,c.default)(u,"Expected targetIds to be registered.")}for(var d=r.getItemType(),h=a.length-1;h>=0;h--){var f=a[h],v=s.getTargetType(f);(0,m.default)(v,d)||a.splice(h,1)}for(var g=0;g<a.length;g++){var y=a[g]
;s.getTarget(y).hover(r,y)}return{type:b,targetIds:a,clientOffset:i}}function o(){var e=this,t=this.getMonitor(),n=this.getRegistry();(0,c.default)(t.isDragging(),"Cannot call drop while not dragging."),(0,c.default)(!t.didDrop(),"Cannot call drop twice during one drag operation.");var i=t.getTargetIds().filter(t.canDropOnTarget,t);i.reverse(),i.forEach(function(i,a){var r=n.getTarget(i),s=r.drop(t,i);(0,c.default)(void 0===s||(0,
f.default)(s),"Drop result must either be an object or undefined."),void 0===s&&(s=0===a?{}:t.getDropResult()),e.store.dispatch({type:S,dropResult:s})})}function l(){var e=this.getMonitor(),t=this.getRegistry();(0,c.default)(e.isDragging(),"Cannot call endDrag while not dragging.");var n=e.getSourceId();return t.getSource(n,!0).endDrag(e,n),t.unpinSource(),{type:I}}Object.defineProperty(t,"__esModule",{value:!0}),t.END_DRAG=t.DROP=t.HOVER=t.PUBLISH_DRAG_SOURCE=t.BEGIN_DRAG=void 0,t.beginDrag=a,
t.publishDragSource=r,t.hover=s,t.drop=o,t.endDrag=l;var u=n(121),c=i(u),d=n(263),p=i(d),h=n(384),f=i(h),v=n(1097),m=i(v),g=t.BEGIN_DRAG="dnd-core/BEGIN_DRAG",y=t.PUBLISH_DRAG_SOURCE="dnd-core/PUBLISH_DRAG_SOURCE",b=t.HOVER="dnd-core/HOVER",S=t.DROP="dnd-core/DROP",I=t.END_DRAG="dnd-core/END_DRAG"},function(e,t,n){"use strict";function i(e){return{type:o,sourceId:e}}function a(e){return{type:l,targetId:e}}function r(e){return{type:u,sourceId:e}}function s(e){return{type:c,targetId:e}}
Object.defineProperty(t,"__esModule",{value:!0}),t.addSource=i,t.addTarget=a,t.removeSource=r,t.removeTarget=s;var o=t.ADD_SOURCE="dnd-core/ADD_SOURCE",l=t.ADD_TARGET="dnd-core/ADD_TARGET",u=t.REMOVE_SOURCE="dnd-core/REMOVE_SOURCE",c=t.REMOVE_TARGET="dnd-core/REMOVE_TARGET"},function(e,t,n){function i(e,t){for(var n=e.length;n--;)if(a(e[n][0],t))return n;return-1}var a=n(488);e.exports=i},function(e,t,n){function i(e){return null==e?void 0===e?l:o:u&&u in Object(e)?r(e):s(e)}
var a=n(696),r=n(3283),s=n(3307),o="[object Null]",l="[object Undefined]",u=a?a.toStringTag:void 0;e.exports=i},function(e,t,n){function i(e,t){var n=e.__data__;return a(t)?n["string"==typeof t?"string":"hash"]:n.map}var a=n(3292);e.exports=i},function(e,t,n){function i(e,t){var n=r(e,t);return a(n)?n:void 0}var a=n(3270),r=n(3284);e.exports=i},function(e,t,n){var i=n(486),a=i(Object,"create");e.exports=a},function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},function(e,t,n){
function i(e){return r(e)&&a(e)}var a=n(702),r=n(385);e.exports=i},function(e,t,n){e.exports=n(3329)()},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return new s.default(e)}t.__esModule=!0,t.default=a;var r=n(3344),s=i(r),o=n(3348),l=i(o),u=n(705),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(u);t.NativeTypes=c,t.getEmptyImage=l.default
},function(e,t,n){"use strict";function i(e,t){}t.__esModule=!0,t.default=i,e.exports=t.default},,,,,,,function(e,t,n){var i,a;/**!
 * Sortable
 * @author	RubaXa   <trash@rubaxa.org>
 * @license MIT
 */
!function(r){"use strict";i=r,void 0!==(a="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=a)}(function(){"use strict";function e(e,t){this.el=e,this.options=t=m({},t),e[k]=this;var i={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(e.nodeName)?"li":">*",ghostClass:"sortable-ghost",ignore:"a, img",filter:null,animation:0,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,
dataIdAttr:"data-id",delay:0};for(var a in i)!(a in t)&&(t[a]=i[a]);var s=t.group;s&&"object"==typeof s||(s=t.group={name:s}),["pull","put"].forEach(function(e){e in s||(s[e]=!0)}),t.groups=" "+s.name+(s.put.join?" "+s.put.join(" "):"")+" ";for(var o in this)"_"===o.charAt(0)&&(this[o]=n(this,this[o]));r(e,"mousedown",this._onTapStart),r(e,"touchstart",this._onTapStart),r(e,"dragover",this),r(e,"dragenter",this),V.push(this._onDragOver),t.store&&this.sort(t.store.get(this))}function t(e){
b&&b.state!==e&&(l(b,"display",e?"none":""),!e&&b.state&&S.insertBefore(b,g),b.state=e)}function n(e,t){var n=F.call(arguments,2);return t.bind?t.bind.apply(t,[e].concat(n)):function(){return t.apply(e,n.concat(F.call(arguments)))}}function i(e,t,n){if(e){n=n||O,t=t.split(".");var i=t.shift().toUpperCase(),a=new RegExp("\\s("+t.join("|")+")\\s","g");do{if(">*"===i&&e.parentNode===n||(""===i||e.nodeName.toUpperCase()==i)&&(!t.length||((" "+e.className+" ").match(a)||[]).length==t.length))return e
}while(e!==n&&(e=e.parentNode))}return null}function a(e){e.dataTransfer.dropEffect="move",e.preventDefault()}function r(e,t,n){e.addEventListener(t,n,!1)}function s(e,t,n){e.removeEventListener(t,n,!1)}function o(e,t,n){if(e)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(A," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(A," ")}}function l(e,t,n){var i=e&&e.style;if(i){
if(void 0===n)return O.defaultView&&O.defaultView.getComputedStyle?n=O.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in i||(t="-webkit-"+t),i[t]=n+("string"==typeof n?"":"px")}}function u(e,t,n){if(e){var i=e.getElementsByTagName(t),a=0,r=i.length;if(n)for(;a<r;a++)n(i[a],a);return i}return[]}function c(e){e.draggable=!1}function d(){U=!1}function p(e,t){var n=e.lastElementChild,i=n.getBoundingClientRect();return t.clientY-(i.top+i.height)>5&&n}
function h(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function f(e){for(var t=0;e&&(e=e.previousElementSibling);)"TEMPLATE"!==e.nodeName.toUpperCase()&&t++;return t}function v(e,t){var n,i;return function(){void 0===n&&(n=arguments,i=this,setTimeout(function(){1===n.length?e.call(i,n[0]):e.apply(i,n),n=void 0},t))}}function m(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}
var g,y,b,S,I,M,C,w,D,P,T,x,E,N,L={},A=/\s+/g,k="Sortable"+(new Date).getTime(),_=window,O=_.document,j=_.parseInt,R=!!("draggable"in O.createElement("div")),U=!1,z=function(e,t,n,i,a,r,s){var o=O.createEvent("Event"),l=(e||t[k]).options,u="on"+n.charAt(0).toUpperCase()+n.substr(1);o.initEvent(n,!0,!0),o.item=i||t,o.from=a||t,o.clone=b,o.oldIndex=r,o.newIndex=s,l[u]&&l[u].call(e,o),t.dispatchEvent(o)},B=Math.abs,F=[].slice,V=[],Q=v(function(e,t,n){if(n&&t.scroll){
var i,a,r,s,o=t.scrollSensitivity,l=t.scrollSpeed,u=e.clientX,c=e.clientY,d=window.innerWidth,p=window.innerHeight;if(C!==n&&(M=t.scroll,C=n,M===!0)){M=n;do{if(M.offsetWidth<M.scrollWidth||M.offsetHeight<M.scrollHeight)break}while(M=M.parentNode)}M&&(i=M,a=M.getBoundingClientRect(),r=(B(a.right-u)<=o)-(B(a.left-u)<=o),s=(B(a.bottom-c)<=o)-(B(a.top-c)<=o)),r||s||(r=(d-u<=o)-(u<=o),s=(p-c<=o)-(c<=o),(r||s)&&(i=_)),L.vx===r&&L.vy===s&&L.el===i||(L.el=i,L.vx=r,L.vy=s,clearInterval(L.pid),
i&&(L.pid=setInterval(function(){i===_?_.scrollTo(_.pageXOffset+r*l,_.pageYOffset+s*l):(s&&(i.scrollTop+=s*l),r&&(i.scrollLeft+=r*l))},24)))}},30);return e.prototype={constructor:e,_onTapStart:function(e){var t=this,n=this.el,a=this.options,r=e.type,s=e.touches&&e.touches[0],o=(s||e).target,l=o,u=a.filter;if(!("mousedown"===r&&0!==e.button||a.disabled)&&(o=i(o,a.draggable,n))){if(P=f(o),"function"==typeof u){if(u.call(this,e,o,this))return z(t,l,"filter",o,n,P),void e.preventDefault()
}else if(u&&(u=u.split(",").some(function(e){if(e=i(l,e.trim(),n))return z(t,e,"filter",o,n,P),!0})))return void e.preventDefault();a.handle&&!i(l,a.handle,n)||this._prepareDragStart(e,s,o)}},_prepareDragStart:function(e,t,n){var i,a=this,s=a.el,o=a.options,l=s.ownerDocument;n&&!g&&n.parentNode===s&&(E=e,S=s,g=n,I=g.nextSibling,x=o.group,i=function(){a._disableDelayedDrag(),g.draggable=!0,o.ignore.split(",").forEach(function(e){u(g,e.trim(),c)}),a._triggerDragStart(t)},r(l,"mouseup",a._onDrop),
r(l,"touchend",a._onDrop),r(l,"touchcancel",a._onDrop),o.delay?(r(l,"mousemove",a._disableDelayedDrag),r(l,"touchmove",a._disableDelayedDrag),a._dragStartTimer=setTimeout(i,o.delay)):i())},_disableDelayedDrag:function(){var e=this.el.ownerDocument;clearTimeout(this._dragStartTimer),s(e,"mousemove",this._disableDelayedDrag),s(e,"touchmove",this._disableDelayedDrag)},_triggerDragStart:function(e){e?(E={target:g,clientX:e.clientX,clientY:e.clientY},
this._onDragStart(E,"touch")):R?(r(g,"dragend",this),r(S,"dragstart",this._onDragStart)):this._onDragStart(E,!0);try{O.selection?O.selection.empty():window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(){S&&g&&(o(g,this.options.ghostClass,!0),e.active=this,z(this,S,"start",g,S,P))},_emulateDragOver:function(){if(N){l(y,"display","none");var e=O.elementFromPoint(N.clientX,N.clientY),t=e,n=" "+this.options.group.name,i=V.length;if(t)do{
if(t[k]&&t[k].options.groups.indexOf(n)>-1){for(;i--;)V[i]({clientX:N.clientX,clientY:N.clientY,target:e,rootEl:t});break}e=t}while(t=t.parentNode);l(y,"display","")}},_onTouchMove:function(e){if(E){var t=e.touches?e.touches[0]:e,n=t.clientX-E.clientX,i=t.clientY-E.clientY,a=e.touches?"translate3d("+n+"px,"+i+"px,0)":"translate("+n+"px,"+i+"px)";N=t,l(y,"webkitTransform",a),l(y,"mozTransform",a),l(y,"msTransform",a),l(y,"transform",a),e.preventDefault()}},_onDragStart:function(e,t){
var n=e.dataTransfer,i=this.options;if(this._offUpEvents(),"clone"==x.pull&&(b=g.cloneNode(!0),l(b,"display","none"),S.insertBefore(b,g)),t){var a,s=g.getBoundingClientRect(),o=l(g);y=g.cloneNode(!0),l(y,"top",s.top-j(o.marginTop,10)),l(y,"left",s.left-j(o.marginLeft,10)),l(y,"width",s.width),l(y,"height",s.height),l(y,"opacity","0.8"),l(y,"position","fixed"),l(y,"zIndex","100000"),S.appendChild(y),a=y.getBoundingClientRect(),l(y,"width",2*s.width-a.width),l(y,"height",2*s.height-a.height),
"touch"===t?(r(O,"touchmove",this._onTouchMove),r(O,"touchend",this._onDrop),r(O,"touchcancel",this._onDrop)):(r(O,"mousemove",this._onTouchMove),r(O,"mouseup",this._onDrop)),this._loopId=setInterval(this._emulateDragOver,150)}else n&&(n.effectAllowed="move",i.setData&&i.setData.call(this,n,g)),r(O,"drop",this);setTimeout(this._dragStarted,0)},_onDragOver:function(e){var n,a,r,s=this.el,o=this.options,u=o.group,c=u.put,h=x===u,f=o.sort;if(void 0!==e.preventDefault&&(e.preventDefault(),
!o.dragoverBubble&&e.stopPropagation()),x&&!o.disabled&&(h?f||(r=!S.contains(g)):x.pull&&c&&(x.name===u.name||c.indexOf&&~c.indexOf(x.name)))&&(void 0===e.rootEl||e.rootEl===this.el)){if(Q(e,o,this.el),U)return;if(n=i(e.target,o.draggable,s),a=g.getBoundingClientRect(),r)return t(!0),void(b||I?S.insertBefore(g,b||I):f||S.appendChild(g));if(0===s.children.length||s.children[0]===y||s===e.target&&(n=p(s,e))){if(n){if(n.animated)return;m=n.getBoundingClientRect()}t(h),s.appendChild(g),
this._animate(a,g),n&&this._animate(m,n)}else if(n&&!n.animated&&n!==g&&void 0!==n.parentNode[k]){w!==n&&(w=n,D=l(n));var v,m=n.getBoundingClientRect(),M=m.right-m.left,C=m.bottom-m.top,P=/left|right|inline/.test(D.cssFloat+D.display),T=n.offsetWidth>g.offsetWidth,E=n.offsetHeight>g.offsetHeight,N=(P?(e.clientX-m.left)/M:(e.clientY-m.top)/C)>.5,L=n.nextElementSibling;U=!0,setTimeout(d,30),t(h),v=P?n.previousElementSibling===g&&!T||N&&T:L!==g&&!E||N&&E,
v&&!L?s.appendChild(g):n.parentNode.insertBefore(g,v?L:n),this._animate(a,g),this._animate(m,n)}}},_animate:function(e,t){var n=this.options.animation;if(n){var i=t.getBoundingClientRect();l(t,"transition","none"),l(t,"transform","translate3d("+(e.left-i.left)+"px,"+(e.top-i.top)+"px,0)"),t.offsetWidth,l(t,"transition","all "+n+"ms"),l(t,"transform","translate3d(0,0,0)"),clearTimeout(t.animated),t.animated=setTimeout(function(){l(t,"transition",""),l(t,"transform",""),t.animated=!1},n)}},
_offUpEvents:function(){var e=this.el.ownerDocument;s(O,"touchmove",this._onTouchMove),s(e,"mouseup",this._onDrop),s(e,"touchend",this._onDrop),s(e,"touchcancel",this._onDrop)},_onDrop:function(t){var n=this.el,i=this.options;clearInterval(this._loopId),clearInterval(L.pid),clearTimeout(this.dragStartTimer),s(O,"drop",this),s(O,"mousemove",this._onTouchMove),s(n,"dragstart",this._onDragStart),this._offUpEvents(),t&&(t.preventDefault(),!i.dropBubble&&t.stopPropagation(),
y&&y.parentNode.removeChild(y),g&&(s(g,"dragend",this),c(g),o(g,this.options.ghostClass,!1),S!==g.parentNode?(T=f(g),z(null,g.parentNode,"sort",g,S,P,T),z(this,S,"sort",g,S,P,T),z(null,g.parentNode,"add",g,S,P,T),z(this,S,"remove",g,S,P,T)):(b&&b.parentNode.removeChild(b),g.nextSibling!==I&&(T=f(g),z(this,S,"update",g,S,P,T),z(this,S,"sort",g,S,P,T))),e.active&&z(this,S,"end",g,S,P,T)),S=g=y=I=b=M=C=E=N=w=D=x=e.active=null,this.save())},handleEvent:function(e){var t=e.type
;"dragover"===t||"dragenter"===t?g&&(this._onDragOver(e),a(e)):"drop"!==t&&"dragend"!==t||this._onDrop(e)},toArray:function(){for(var e,t=[],n=this.el.children,a=0,r=n.length,s=this.options;a<r;a++)e=n[a],i(e,s.draggable,this.el)&&t.push(e.getAttribute(s.dataIdAttr)||h(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach(function(e,a){var r=n.children[a];i(r,this.options.draggable,n)&&(t[e]=r)},this),e.forEach(function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))})},
save:function(){var e=this.options.store;e&&e.set(this)},closest:function(e,t){return i(e,t||this.options.draggable,this.el)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];n[e]=t},destroy:function(){var e=this.el;e[k]=null,s(e,"mousedown",this._onTapStart),s(e,"touchstart",this._onTapStart),s(e,"dragover",this),s(e,"dragenter",this),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),
V.splice(V.indexOf(this._onDragOver),1),this._onDrop(),this.el=e=null}},e.utils={on:r,off:s,css:l,find:u,bind:n,is:function(e,t){return!!i(e,t,e)},extend:m,throttle:v,closest:i,toggleClass:o,index:f},e.version="1.2.0",e.create=function(t,n){return new e(t,n)},e})},,function(e,t,n){"use strict";var i=n(197),a=i.a.extend({interface:["publish","subscribe","unsubscribe","registerPlayer","unregisterPlayer","debugStatus","getDeepLink"]});t.a=new a},function(e,t,n){"use strict"
;var i=n(10),a=n.n(i),r=n(59),s=n(29),o=r.a.extend({getStorage:function(){},get:function(e){var t=this;return this._catchStorageError(function(n){var i=window.PLEXWEB,a=i&&e in i?i[e]:n.getItem(e);if(null==a)throw new Error(e+" is not in "+t.name);return a})},set:function(e,t){var n=this;return this._catchStorageError(function(i){if(!e)throw new Error("Unable to set value in "+n.name+" without a key")
;if(null==t)throw new Error("Unable to set null or undefined value for "+e+" in "+n.name+". Use the remove function.");return i.setItem(e,t)})},remove:function(e){return this._catchStorageError(function(t){return t.removeItem(e)})},clear:function(){return this._catchStorageError(function(e){return e.clear()})},_catchStorageError:function(e){var t=a.a.Deferred();try{t.resolve(e(this.getStorage()))}catch(e){s.a.warn(e.message),t.reject(e)}return t.promise()}});t.a=o},function(e,t,n){"use strict"
;var i=n(3),a=n.n(i),r=n(59),s=n(29),o=r.a.extend({maximumDelay:30,initialize:function(e){var t=e.callback,n=e.logFormat;this._serversBeingRetried={},this.callback=t,this.logFormat=n},start:function(e){this._serversBeingRetried[e.id]||this.supportsRetry(e)&&(this._serversBeingRetried[e.id]={server:e,attempt:1},this._scheduleRetry(e))},stop:function(e){var t=this._serversBeingRetried[e.id];t&&(clearTimeout(t.timeout),delete this._serversBeingRetried[e.id])},stopAll:function(){var e=this
;a.a.each(this._serversBeingRetried,function(t,n){clearTimeout(t.timeout),delete e._serversBeingRetried[n]})},supportsRetry:function(e){return!0},_scheduleRetry:function(e){var t=this,i=this._serversBeingRetried[e.id],a=Math.min(this.maximumDelay,i.attempt);n.i(s.a)(this.logFormat,e.get("debugName"),a),i.timeout=setTimeout(function(){t.callback(e),i.attempt++,t._scheduleRetry(e)},1e3*a)}});t.a=o},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(553),s=n(824),o=n(204),l=n(544),u=n(1500),c={
tagsRenderer:u.a,tagsRendererOptions:{},defaultBindings:{".item-title":{modelAttribute:"title"},".item-year":{modelAttribute:"year"},".item-progress":{modelAttribute:"viewOffset",manual:!0,formatter:function(e,t){var i=this.model.get("duration"),a=n.i(r.a)(e,i);a&&t.css("width",a+"%"),t.parent().toggleClass("hidden",!a)}},".item-duration":{modelAttribute:"duration",autohide:!0,formatter:function(e){return e?n.i(l.a)(e):0}},".item-unwatched-label":{modelAttribute:"viewCount",
modelListeners:["viewCount","viewOffset"],manual:!0,autohide:function(e){if(this.shared&&!this.multiuser)return!1;var t=this.model.get("viewOffset");return!e&&!t}},".item-unavailable-btn":{modelAttribute:"Media",manual:!0,autohide:function(e){return!!n.i(s.a)(e).length}},".item-available-at":{modelAttribute:"originallyAvailableAt",autohide:!0,formatter:function(e){return n.i(o.default)(e)}},".item-tagline":{modelAttribute:"tagline",autohide:!0},".item-genre":{modelAttribute:"Genre",autohide:!0,
isHtml:!0,formatter:function(e){return e&&e.length?this.tagsRenderer(a.a.extend({},this.tagsRendererOptions,{model:this.model,key:"genre",tags:e,maxLen:50,maxTags:2})):""}},".item-director":{modelAttribute:"Director",manual:!0,autohide:!0,formatter:function(e,t){if(!e||!e.length)return"";var n=this.tagsRenderer(a.a.extend({},this.tagsRendererOptions,{model:this.model,key:"director",tags:e,maxLen:50,maxTags:3}));return t.find(".metadata-tag-list").html(n),n}},".item-writer":{
modelAttribute:"Writer",manual:!0,autohide:!0,formatter:function(e,t){if(!e||!e.length)return"";var n=this.tagsRenderer(a.a.extend({},this.tagsRendererOptions,{model:this.model,key:"writer",tags:e,maxLen:50,maxTags:3}));return t.find(".metadata-tag-list").html(n),n}},".item-cast":{modelAttribute:"Role",manual:!0,autohide:!0,formatter:function(e,t){if(!e||!e.length)return"";var n=this.tagsRenderer(a.a.extend({},this.tagsRendererOptions,{model:this.model,key:"actor",tags:e,maxLen:50,maxTags:5}))
;return t.find(".metadata-tag-list").html(n),n}},".item-summary":{modelAttribute:"summary",autohide:!0},".item-content-rating":{modelAttribute:"contentRating",autohide:!0},".media-count-badge":{modelAttribute:"Media",formatter:function(e){return e.length},autohide:function(e){return e>1}},".details-unwatched-count-badge":{modelAttribute:"unviewedLeafCount",autohide:function(e){return!(this.shared&&!this.multiuser)&&!!e}},".content-rating-flag-container":{modelAttribute:"contentRating",manual:!0,
autohide:!0},".studio-flag-container":{modelAttribute:"studio",manual:!0,autohide:!0}}};t.a=c},function(e,t,n){"use strict";var i=n(146),a=n.n(i),r=n(3),s=n.n(r),o=n(31),l=n(107),u=n(52),c=n(17),d=c.a.extend({name:"AbstractStorageModel",responseType:u.a.json,save:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=this.attributes,r=void 0;if(null==e||s.a.isObject(e)?(r=e,i=t):(r={})[e]=t,i=s.a.extend({validate:!0},i),r&&!i.wait){if(!this.set(r,i))return!1
}else if(!this._validate(r,i))return!1;r&&i.wait&&(this.attributes=s.a.extend({},a,r));var o=l.a.getInstance().excludeDefaults,u=this.toJSON({syncedOnly:!0,excludeDefaults:o!==!1}),c=this._serialize(u),d=l.a.set(this._getStorageKey(),c);return d.done(function(){n.attributes=a,n.trigger("sync",n,a,i)}),d.fail(function(e){n.trigger("error",n,e,i)}),r&&i.wait&&(this.attributes=a),d},destroy:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
;t.wait||this.trigger("destroy",this,this.collection,t);var n=l.a.remove(this._getStorageKey());return n.done(function(n){t.wait&&e.trigger("destroy",e,e.collection,t),e.trigger("sync",e,n,t)}),n.fail(function(n){e.trigger("error",e,n,t)}),n},sync:function(){this._logError("does not support syncing to a server")},_getStorageKey:function(){var e=s.a.result(this,"storageKey");if(!e)throw new Error(this.name+" requires a `storageKey` property");return e},_fetch:function(){
var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=l.a.get(this._getStorageKey());return n.done(function(n){n&&e.set(e.parse(n)),e.trigger("sync",e,n,t)}),n.fail(function(n){e.trigger("error",e,n,t)}),n},_serialize:function(e){var t="";try{t=a()(e)}catch(e){this._logError("serialization error: "+e.message)}return t},_warnUnsupportedOptions:function(e){e.parse&&this._logError("does not support the `parse` option. The response from storage is always parsed."),
e.success&&this._logError("does not support a `success` callback. Use the returned promise."),e.error&&this._logError("does not support an `error` callback. Use the returned promise.")},_logError:function(e){var t=void 0;try{t=this._getStorageKey()}catch(e){t="no storageKey"}n.i(o.a)(!1,this.name+" ("+t+") "+e)}});t.a=d},function(e,t,n){"use strict";function i(e,t){return e?c.a.reduce(t,function(t,n,i){return e.indexOf(i)===-1&&(t[i]=n),t},{}):t}function a(e,t){var n;try{n=e._getStorageKey()
}catch(e){n="no storageKey"}h.a.error("StorageModel ("+n+") "+t)}var r=n(146),s=n.n(r),o=n(258),l=n.n(o),u=n(3),c=n.n(u),d=n(55),p=n(817),h=n(29),f=n(107),v=n(31),m=d.a.Model.extend({sessionAttrs:[],save:function(e,t,a){var r,s=this.attributes;if(null==e||"object"===(void 0===e?"undefined":l()(e))?(r=e,a=t):(r={})[e]=t,a=c.a.extend({validate:!0},a),r&&!a.wait){if(!this.set(r,a))return!1}else if(!this._validate(r,a))return!1;r&&a.wait&&(this.attributes=c.a.extend({},s,r)),
void 0===a.parse&&(a.parse=!0);var o=this,u=a.success;a.success=function(){o.attributes=s,u&&u(o,s,a),o.trigger("sync",o,s,a)},d.a.wrapError(this,a);var h=this._getStorage(),f=this._getStorageKey(),v=this.attributes;if(h.getInstance().excludeDefaults!==!1){var m=c.a.result(this,"defaults");v=n.i(p.a)(m,v)}v=i(c.a.result(this,"sessionAttrs"),v);var g=this.serialize(v),y=h.set(f,g);return y.done(a.success).fail(a.error),r&&a.wait&&(this.attributes=s),y},populate:function(){
return this.populatePromise||(this.populatePromise=this.fetch.apply(this,arguments)),this.populatePromise},fetch:function(e){e=e?c.a.clone(e):{},void 0===e.parse&&(e.parse=!0);var t=this,n=e.success;e.success=function(i){if(!t.set(t.parse(i,e),e))return!1;n&&n(t,i,e),t.trigger("sync",t,i,e)},d.a.wrapError(this,e);var i=this._getStorage().get(this._getStorageKey());return i.done(e.success).fail(e.error),this.populatePromise=i,i},destroy:function e(t){t=t?c.a.clone(t):{}
;var n=this,i=t.success,e=function(){n.trigger("destroy",n,n.collection,t)};t.success=function(a){t.wait&&e(),i&&i(n,a,t),n.trigger("sync",n,a,t)},d.a.wrapError(this,t);var a=this._getStorage().remove(this._getStorageKey());return a.done(t.success).fail(t.error),t.wait||e(),a},serialize:function(e){var t="";try{t=s()(e)}catch(e){a(this,"serialization error: "+e.message)}return t},parse:function(e){var t;if(null==e)return t;if(c.a.isObject(e))return e;try{t=JSON.parse(e)
;t=i(c.a.result(this,"sessionAttrs"),t)}catch(t){var n=c.a.isString(e)?e.substring(0,50):"no response";a(this,"parse error: "+t.message+" ("+n+")")}return t},sync:function(){throw new Error("storage model doesn`t allow syncing to server")},startCapturingChangeEvents:function(){if(this.releaseCapturedChangeEvents)return void n.i(v.a)(!1,"This model is already capturing events");var e=this.set,t={};this.set=function(n,i,a){var r;"object"===(void 0===n?"undefined":l()(n))?(r=n,a=i):(r={})[n]=i
;var s=c.a.extend({},a,{silent:!0}),o=e.call(this,r,s);return c.a.extend(t,this.changed),o},this.releaseCapturedChangeEvents=function(){c.a.each(t,function(e,t){this.trigger("change:"+t,this,e)},this),c.a.isEmpty(t)||this.trigger("change",this,{}),t={},this.set=e,this.releaseCapturedChangeEvents=null}},_getStorageKey:function(){var e=c.a.result(this,"storageKey");if(!e)throw new Error("storageKey is required");return e},_getStorage:function(){return f.a}});t.a=m},function(e,t,n){"use strict"
;function i(e,t){if(s.a.get("shouldCreateFlexModels")){var n;e.prototype.sessionRelations=r()({},e.prototype.sessionRelations,(n={},n.desktop=t,n))}return e}var a=n(6),r=n.n(a),s=n(61);t.a=i},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(393),s=a.a.extend({name:"FilterModel",context:["server","section","type","standalone"],idAttribute:"filter",rootPropertyName:"Directory",defaults:{advanced:!1},syncedAttrs:{filter:i.a.string,filterType:i.a.string,type:i.a.string,key:i.a.string,
title:i.a.string,advanced:i.a.boolean},syncedRelations:{options:{relationClass:r.a}}});t.a=s},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(22),s=n(742),o=r.a.extend({name:"FirstCharacterCollection",context:["server","section"],model:s.a,url:function(){var e=a.a.result(this.section,"url")+"/firstCharacter",t=this.getUrlParams();return t?e+"?"+t:e},getUrlParams:function(){var e={},t=[],n=this.section.get("currentType");n&&(e.type=n.id);var i=this.section.get("currentFilters")
;return a.a.each(i,function(t){t.values.length&&(e[t.key]=t.values.join(","))}),a.a.each(e,function(n,i){"unviewedLeafCount"===i?t.push(i+">="+e[i]):t.push(i+"="+e[i])}),t.join("&")}});t.a=o},function(e,t,n){"use strict";var i=n(22),a=n(333),r=i.a.extend({name:"SectionCollection",context:["server"],model:a.a,url:"/library/sections"});t.a=r},function(e,t,n){"use strict";var i=n(82),a=n(271),r=n(16),s=n(52),o=n(17),l=n(1288),u=o.a.extend({mixins:[a.a],name:"PlaylistItemListModel",
context:["server","playlist"],idAttribute:"key",collectionName:"metadataItems",url:function(){return this.getPaginatedUrl(this.get("containerKey"))},sessionAttrs:{containerKey:r.a.string,currentPageStart:r.a.integer,currentPageSize:r.a.integer,populatedRange:r.a.object},syncedAttrs:{totalSize:r.a.integer},syncedRelations:{metadataItems:{relationClass:l.a,rootPropertyName:"Metadata",setOptions:function(e){return{remove:e.remove,at:e.at}}}},defaults:function(){return{populatedRange:{start:0,end:0,
size:0}}},initialize:function(){this.startPopulatedRangeMonitor()},augmentResponseText:function(e,t){return t===s.a.xml?n.i(i.a)(e):e}});t.a=u},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(31),s={fetch:function(){return n.i(r.a)(!1,"A model or collection with a controlled populate promise cannot be fetched directly"),this.populatePromise},isPopulating:function(){return!!this.populatePromise&&"pending"===this.populatePromise.state()},_resetPopulate:function(){
return this.isPopulating()||(this._populateDeferred=a.a.Deferred(),this.populatePromise=this._populateDeferred.promise()),this.populatePromise},_resolvePopulate:function(){return"resolved"===this.populatePromise.state()?this.populatePromise:("rejected"===this.populatePromise.state()&&this._resetPopulate(),this._populateDeferred.resolveWith(this,[this]),this.populatePromise)},_rejectPopulate:function(){
return"rejected"===this.populatePromise.state()?this.populatePromise:("resolved"===this.populatePromise.state()&&this._resetPopulate(),this._populateDeferred.rejectWith(this,[this]),this.populatePromise)}};t.a=s},function(e,t,n){"use strict";function i(e,t,n){return void 0===n?t:r.a.isObject(t)?t:n}var a=n(3),r=n.n(a);t.a=i},function(e,t,n){"use strict";var i=n(4),a=n(72),r=a.b.extend({name:"LegacyChannelProviderModel",defaults:function(){return{identifier:a.a.CHANNEL_PROVIDER_IDENTIFIER,
title:n.i(i.default)("Channel"),types:["video","audio","photo"],protocols:["stream"]}}});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(52),r=n(17);n.d(t,"c",function(){return s}),n.d(t,"e",function(){return o}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return u}),n.d(t,"b",function(){return c}),n.d(t,"f",function(){return d});var s="unknown",o="waiting",l="mapped",u="connecting",c="disconnecting",d="",p=r.a.extend({context:["server"],url:"/myplex/account",responseType:a.a.json,
sessionAttrs:{remoteAccessState:i.a.oneOf(u,c,"unreachable","ok",d)},syncedAttrs:{username:i.a.string,mappingState:i.a.oneOf(s,o,"failed",l),mappingError:i.a.oneOf("badauth","unreachable","myplexgone","publisherror","doublenat","jumboframes",""),signInState:i.a.oneOf("none","unknown","invalid","ok"),publicAddress:i.a.string,publicPort:i.a.integer,privateAddress:i.a.string,privatePort:i.a.integer,subscriptionActive:i.a.boolean,subscriptionState:i.a.string},derivedAttrs:{signedIn:function(){
return"ok"===this.get("signInState")},isWaiting:function(){var e=this.get("remoteAccessState");return e===u||e===c}},defaults:{signedIn:!1,mappingState:null,mappingError:null,signInState:null,publicAddress:null,publicPort:null,privateAddress:null,privatePort:null},isNew:function(){return!this.get("signedIn")},augmentResponse:function(e){var t=e.MyPlex,n="ok"===t.signInState;n||(t.username=null);var i=!n||t.mappingError,a=!i&&t.mappingState===l
;return i?t.remoteAccessState="unreachable":a&&(t.remoteAccessState="ok"),t}});t.g=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(22),a=n(517),r=i.a.extend({name:"MediaGrabOperationCollection",context:["server"],model:a.b,comparator:function(e){var t=e.get("mediaItem");if(t){return t.beginsAt-(t.startOffsetSeconds||0)}}});t.default=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(76);n.d(t,"a",function(){return s});var s={INACTIVE:"inactive",
SCHEDULED:"scheduled",IN_PROGRESS:"inprogress",COMPLETE:"complete",CANCELLED:"cancelled",ERROR:"error"},o=a.a.extend({name:"MediaGrabOperationModel",context:["server"],rootPropertyName:"MediaGrabOperation",syncedAttrs:{mediaSubscriptionID:i.a.string,mediaIndex:i.a.integer,channelTitle:i.a.string,status:i.a.string,error:i.a.string,linkedKey:i.a.string,key:i.a.string,rolling:i.a.boolean},syncedRelations:{metadataItem:{relationClass:r.a,rootPropertyName:"Metadata"},conflicts:function(){return{
relationClass:n(516).default,deferred:!0}}},derivedAttrs:{mediaItem:function(){var e=this.get("mediaIndex");return(this.get("metadataItem").get("Media")||[])[e]},beginsAt:function(){var e=this.get("mediaItem");return e&&e.beginsAt},endsAt:function(){var e=this.get("mediaItem");return e&&e.endsAt}},defaults:{rolling:!1},augmentResponse:function(e){var t=e;return t[this.rootPropertyName]&&(t=t[this.rootPropertyName]),t.Conflicts&&(t.conflicts=t.Conflicts.MediaGrabOperation,delete t.Conflicts),t}})
;t.b=o},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(49),s=n(75),o=s.a.extend({urlRoot:"/api/home/users",whitelistedAttrs:["id","uuid","admin","protected","restricted","guest","title","username","email","thumb"],convert:function(e){var t=a.a.isObject(e)?e:r.a.parseXML(e);return t.User&&(t=t.User),r.a.parseInteger(t,"id"),r.a.parseBoolean(t,["admin","protected","restricted","guest"]),t},parse:function(e){var t=this.convert(e);return t=a.a.pick(t,this.whitelistedAttrs)},
getSaveParams:function(e,t){if(a.a.isEmpty(e)){var n={};return this.get("restricted")?n.title=this.get("title"):this.isNew()&&(n.invitedEmail=this.get("username")),n}return s.a.prototype.getSaveParams.apply(this,arguments)}});t.a=o},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(4),s=n(82),o=n(19),l=n(271),u=n(16),c=n(52),d=n(17),p=n(1343),h={WATCH_LATER:"queue",RECOMMENDED:"recommendations"},f={ALL:"all",UNWATCHED:"unwatched",WATCHED:"watched"},v=d.a.extend({mixins:[l.a],
name:"UserPlaylistModel",context:["server"],idAttribute:"key",collectionName:"metadataItems",url:function(){return this.getPaginatedUrl(a.a.result(this,"containerKey"))},containerKey:function(){return o.join(["/pms/playlists",this.get("key"),this.get("subset")])},sessionAttrs:{isUserPlaylist:u.a.boolean,key:u.a.oneOf(h.WATCH_LATER,h.RECOMMENDED).isRequired,subset:u.a.oneOf(f.ALL,f.UNWATCHED,f.WATCHED).isRequired,currentPageStart:u.a.integer,currentPageSize:u.a.integer,populatedRange:u.a.object},
syncedAttrs:{totalSize:u.a.integer,identifier:u.a.string,mediaTagPrefix:u.a.string,mediaTagVersion:u.a.string,viewGroup:u.a.string,title:u.a.string},syncedRelations:{metadataItems:{relationClass:p.a,rootPropertyName:"Metadata",options:function(e){return{identifier:e.identifier,mediaTagPrefix:e.mediaTagPrefix,mediaTagVersion:e.mediaTagVersion,containerKey:a.a.result(this,"containerKey"),userPlaylistKey:e.key}},setOptions:function(e){return{remove:e.remove,at:e.at}}}},derivedAttrs:{
label:function(){var e=this.get("key");return e===h.WATCH_LATER?n.i(r.default)("Watch Later"):e===h.RECOMMENDED?n.i(r.default)("Recommended"):void 0},playlistRoute:function(){return"#!/playlist/"+this.get("key")}},defaults:function(){return{isUserPlaylist:!0,subset:f.ALL,populatedRange:{start:0,end:0,size:0}}},initialize:function(){this.startPopulatedRangeMonitor()},augmentResponseText:function(e,t){return t===c.a.xml?n.i(s.a)(e):e},filterWatched:function(){
var e=this.get("metadataItems"),t=e.filter(function(e){return!!e.get("viewCount")});return e.clone(t)},filterUnwatched:function(){var e=this.get("metadataItems"),t=e.filter(function(e){return!e.get("viewCount")});return e.clone(t)}},{keys:h,subsets:f});t.a=v},function(e,t,n){"use strict";var i=n(36),a=n(335);n.d(t,"c",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"a",function(){return o});var r=n.i(i.a)(a.f),s=n.i(i.a)(a.g),o=n.i(i.a)(a.h)},function(e,t,n){"use strict"
;function i(e){var t=e.get("playQueue"),i=t.get("currentIndex");return n.i(a.b)(e,i)}var a=n(166);t.a=i},function(e,t,n){"use strict";function i(e,t){var i=t.options?r()({},t.options):{};return i.providerModel=s.d(e,t),t.metadataItemEntityID&&(i.metadataItemModel=s.b(e,t)),t.metadataItemEntityIDs&&(i.metadataItemModels=t.metadataItemEntityIDs.map(function(t){return s.b(e,{metadataItemEntityID:t})})),t.metadataListEntityID&&(i.metadataListModel=s.e(e,t)),t.listType&&(i.type=n.i(o.a)({
metadataType:t.listType})),i}var a=n(6),r=n.n(a),s=n(98),o=n(336);t.a=i},function(e,t,n){"use strict";function i(e,t){var i=e.get("playQueue"),a=i.get("currentIndex"),r=i.get("playQueueSelectedItemOffset");if(a!==t){var s=n.i(b.b)(e,t);if(s){var o=s.get("metadataItem"),l=n.i(S.a)(e,o),u=o.get("duration")||0;e.set({isMediaLoading:!0,isBuffering:!1,isLyricsVisible:!1,positionSeconds:Math.floor(l/1e3),lastSeekPositionSeconds:0,durationSeconds:Math.floor(u/1e3),hasError:!1,errorMessage:null,
errorCode:null,errorCategory:null}),i.set({playQueueSelectedItemID:s.id,playQueueSelectedItemOffset:r+(t-a)})}}}function a(e,t){var n=e.get("playQueue"),i=n.get("currentIndex"),a=i+t,r=n.get("playQueueTotalCount");return n.get("repeat")?(a+r)%r:Math.min(Math.max(0,a),r-1)}function r(e){i(e,e.get("playQueue").get("currentIndex"))}function s(e){e.restoreDefaults()}function o(e){i(e,a(e,1))}function l(e){i(e,a(e,-1))}function u(e,t){i(e,t)}function c(e){e.set("isPaused",!1)}function d(e){
e.set("isPaused",!0)}function p(e,t){e.set({positionSeconds:t,lastSeekPositionSeconds:t})}function h(e,t,n){t.save("volume",n)}function f(e,t){e.set("qualityIndex",t)}function v(e,t,n){}function m(e,t){var n=e.get("playQueue");e.set({repeatAll:t.repeatAll,repeatOne:t.repeatOne}),n.set("repeat",t.repeatAll)}function g(e){}function y(e){}Object.defineProperty(t,"__esModule",{value:!0});var b=n(166),S=n(396);t.startPlayback=r,t.endPlayback=s,t.playNextItem=o,t.playPreviousItem=l,t.playItem=u,
t.play=c,t.pause=d,t.seek=p,t.changeVolume=h,t.changeQualityIndex=f,t.changeStream=v,t.setRepeat=m,t.refreshRemotePlayQueue=g,t.mirrorDetails=y},function(e,t,n){"use strict";var i=n(570),a=n.i(i.a)();t.a=a},function(e,t,n){"use strict";function i(e,t){var i=n.i(I.a)(e),a=i.get("metadataItem");if(i.get("playQueueItemID")===t.playQueueItemID){var r={currentDecision:t,availableQualities:t.availableQualities,qualityIndex:t.qualityIndex,mediaIndex:t.mediaIndex,partIndex:t.partIndex,
positionSeconds:t.positionSeconds,durationSeconds:t.durationSeconds};null!=e.get("startMetadataItemEntityID")&&e.get("startMetadataItemEntityID")!==a.entityID()||(r.startMetadataItemEntityID=null,r.startOffsetMilliseconds=null,r.startMediaIndex=null),e.set(r)}}var a=n(6),r=n.n(a),s=n(3),o=n.n(s),l=n(13),u=(n(31),n(1454)),c=n(66),d=n(181),p=n(844),h=n(113),f=n(35),v=n(98),m=n(166),g=n(36),y=n(524),b=n(396),S=n(1358),I=n(521),M=n(397),C=n(772);n.d(t,"a",function(){return D}),n.d(t,"b",function(){
return P}),n.d(t,"c",function(){return T}),n.d(t,"d",function(){return x});var w,D=n.i(g.a)("ui/player/playerDecision/makeDecision"),P=n.i(g.a)("ui/player/playerDecision/makeNextDecision"),T=n.i(g.a)("ui/player/playerDecision/removeDecision"),x=(w={},w["ui/player/playerDecision/makeDecision"]=function(e,t){var a=t.playerType,s=t.playQueueItemEntityID,f=t.mediaIndex,g=t.partIndex,I=t.qualityIndex,w=t.transcodeSessionID,D=t.options,P=void 0===D?{}:D,T=n.i(m.a)(e,a),x=v.c(e,{playQueueItemEntityID:s
});if(x.get("type")!==c.c){var E=T.get("decisions"),N=E[s];if(N)return void i(T,N);var L=x.get("metadataItem"),A=n.i(l.a)("getDecisionOptions")(L,I),k=A.type===d.a.types.VIDEO,_=null==f?n.i(S.a)(T,L):f,O=void 0;n.i(C.a)(L,{forceSyncCheckFiles:!0}).always(function(){var t=L.get("Media")[_],a=t&&t.Part[g];P.offset,u.a.getPlayerDecision(r()({playbackSessionID:y.a,transcodeSessionID:w,item:L,media:t,part:a,offset:n.i(b.a)(T,L),fallbackServer:e.get("primaryServer")},A,P)).done(n.i(M.a)(T,function(e){
var t,n=e.transcodeServer,a=e.media,l=e.part,u=T.get("decisions"),c=L.get("Media"),d=a.Part,p=[],f=h.a.ORIGINAL;k&&(p=h.a.getAvailableQualitiesFor(e.media,e.transcodeServer,{lowestQualityIndex:A.profile.lowestQualityIndex}),(I===h.a.CONVERT_AUTOMATICALLY||I===h.a.ORIGINAL||o.a.findWhere(p,{index:I}))&&(f=I));var v=o.a.findIndex(c,function(e){return null!=e.id?e.id===a.id:null==e.uuid||e.uuid===a.uuid}),m=o.a.findIndex(d,function(e){return null!=e.id?e.id===l.id:null==e.key||e.key===l.key});O={
playQueueItemID:x.get("playQueueItemID"),availableQualities:p,qualityIndex:f,mediaIndex:v,partIndex:m,partCount:d.length,url:e.url,subtitlesUrl:e.subtitlesUrl,protocol:e.protocol,isDirectPlay:e.canDirectPlay,useSoftSubtitles:e.useSoftSubtitles,canDirectStreamVideo:e.canDirectStreamVideo,canDirectStreamAudio:e.canDirectStreamAudio,canPlayOriginalQuality:e.canPlayOriginalQuality,positionSeconds:Math.floor(e.offset/1e3),durationSeconds:Math.floor((l.duration||0)/1e3),
playbackSessionID:e.playbackSessionID},e.canDirectPlay||(O.transcodeSessionID=e.transcodeSessionID,O.transcodeServerEntityID=n&&n.entityID()),T.set("decisions",r()({},u,(t={},t[s]=O,t))),i(T,O)})).fail(n.i(M.a)(T,function(e){T.set({isMediaLoading:!1,hasError:!0,errorMessage:n.i(p.a)(e)})}))})}},w["ui/player/playerDecision/makeNextDecision"]=function(e,t,i){var a=t.playerType,r=n.i(m.a)(e,a),s=r.get("playQueue"),o=s.get("playQueueItems"),l=s.get("currentIndex"),u=r.get("repeatOne")?l:l+1
;if(r.get("repeatAll")&&u>o.length-1&&(u=0),u!==l&&u<o.length){var c=o.at(u).entityID();i(D({playerType:a,playQueueItemEntityID:c}))}},w["ui/player/playerDecision/removeDecision"]=function(e,t){var i=t.playerType,a=t.playQueueItemEntityID,s=n.i(m.a)(e,i);n.i(f.a)(function(){var e,t=s.get("decisions"),n=s.get("currentDecision"),i={decisions:r()({},t,(e={},e[a]=null,e))};t[a]===n&&(i.currentDecision=null),s.set(i)})},w)},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(5),s=(n.n(r),
n.i(r.createSelectorCreator)(r.defaultMemoize,a.a.isEqual));t.a=s},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(e){return e?e.desktop.libraries:void 0})}function a(){return n.i(r.createSelector)(o.a,i(),function(e,t){return t?t.map(function(t){return e[t]}):[]})}var r=n(5),s=(n.n(r),n(46)),o=n(776);t.a=a},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(function(e,t){return t.positionSeconds},n.i(r.a)(),function(e,t){if(t){
var n=t.grabOperation;if(n&&n.beginsAt)return n.beginsAt+e}})}var a=n(5),r=(n.n(a),n(529));t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(function(e,t){return t.liveTVSessionEntityID},r.a,function(e,t){return t[e]})}var a=n(5),r=(n.n(a),n(779));t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(n.i(s.a)(),n.i(o.a)(),r.a,function(e,t,n){if(t.metadataItem){var i=e.mediaIndex,a=void 0===i?0:i;return n[t.metadataItem].Media[a]}})}
var a=n(5),r=(n.n(a),n(110)),s=n(42),o=n(85);t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(function(e,t){return t.playQueueItemEntityID},r.a,function(e,t){return t[e]})}var a=n(5),r=(n.n(a),n(535));t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(r.a,n.i(s.a)(),function(e,t){return e[t.providerEntityID]})}var a=n(5),r=(n.n(a),n(231)),s=n(42);t.a=i},function(e,t,n){"use strict";function i(){
return n.i(a.createSelector)(n.i(s.a)(),r.a,function(e,t){return t[e.serverEntityID]})}var a=n(5),r=(n.n(a),n(179)),s=n(42);t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(n.i(s.a)(),n.i(o.a)(),r.a,function(e,t,n){return t&&t.transcodeServerEntityID?n[t.transcodeServerEntityID]:e&&e.serverEntityID?n[e.serverEntityID]:void 0})}var a=n(5),r=(n.n(a),n(179)),s=n(42),o=n(229);t.a=i},function(e,t,n){"use strict";var i=n(5),a=(n.n(i),
n(150)),r=n.i(i.createSelector)(a.a,function(e){return e.playQueueItems});t.a=r},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(5),s=(n.n(r),n(1385)),o=n.i(r.createSelector)(s.a,function(e){return a.a.find(e,function(e){return e.isFullOwnedServer})});t.a=o},function(e,t,n){"use strict";var i=n(5),a=(n.n(i),n(228)),r=n(151),s=n.i(a.a)(n.i(i.createSelector)(r.a,function(e){return e.entitlements.reduce(function(e,t){return e[t.id]=!0,e},{})}),function(e){return e});t.a=s},function(e,t,n){
"use strict";var i=n(3),a=n.n(i),r=n(59),s=n(15),o=n(29),l=n(71),u=r.a.extend({mixins:l.a,maxCycles:3,maxSize:50,isListening:!1,initialize:function(){this._cache={},this.size=0,this.cycles=[],this.cycle()},startListening:function(){this.isListening||(this.isListening=!0,this.listenTo(s.a,{"cycle:cache":this.cycle,"clearWhere:cache":this.clearWhere,"clearAll:cache":this.clearAll,"clearCycles:cache":this.clearCycles}))},get:function(e){var t=this._cache[e]
;return t&&t._cacheCycle&&this.setItemCycle(t,e,a.a.first(this.cycles)),t},store:function(e,t){t||(t=this.getItemCacheKey(e)),this.remove(e),t&&(this.startListening(),e._cacheKey=t,this._cache[t]=e,this.size++,e.persistInCache||this.setItemCycle(e,t,a.a.first(this.cycles)))},getItemCacheKey:function(e){return a.a.result(e,"cacheKey")},setItemCycle:function(e,t,n){var i=e._cacheCycle;i&&i.hasOwnProperty(t)&&delete i[t],e._cacheCycle=n,n[t]=e},cycle:function(){
this.size>this.maxSize&&(o.a.warn("Cache overflow, size: "+this.size),a.a.each(this.cycles.slice(1),this.removeCycle,this)),this.cycles.unshift({}),this.cycles.length>Math.max(this.maxCycles,1)&&this.removeCycle(a.a.last(this.cycles))},remove:function(e){if(e&&e._cacheKey){var t=e._cacheKey;this._cache.hasOwnProperty(t)&&(delete this._cache[t],this.size--),e._cacheCycle&&(e._cacheCycle.hasOwnProperty(t)&&delete e._cacheCycle[t],delete e._cacheCycle),delete e._cacheKey}},removeCycle:function(e){
a.a.each(a.a.values(e),this.remove,this);var t=a.a.indexOf(this.cycles,e);this.cycles.splice(t,1)},clearWhere:function(e){var t=a.a.where(a.a.values(this._cache),e);a.a.each(t,this.remove,this)},clearAll:function(){a.a.each(a.a.values(this._cache),this.remove,this),this.cycles.length=0,this.cycle(),this.stopListening(),this.isListening=!1},clearCycles:function(){for(var e=this.cycles;e.length;)this.removeCycle(e[e.length-1]);this.cycle()}});t.a=u},function(e,t,n){"use strict"
;var i=n(3),a=n.n(i),r=n(538),s=r.a.extend({maxCycles:3,maxSize:20,get:function(e){var t=r.a.prototype.get.apply(this,arguments);return t&&t.every(function(e){return!(!e.cache||!e.cache.isListening)&&(e.cache.store(e),!0)}),t},getItemCacheKey:function(e){var t=a.a.result(e,"url");return e.server&&(t=e.server.getScopedKey(t)),t}});t.a=s},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i="error",a="success"},function(e,t,n){"use strict"
;n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i="cast",a="plex"},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"e",function(){return a}),n.d(t,"c",function(){return r}),n.d(t,"d",function(){return s}),n.d(t,"b",function(){return o});var i="stopped",a="playing",r="paused",s="buffering",o="error"},function(e,t,n){"use strict";function i(e,t){n.i(a.a)("[MediaElement] Creating element. type:%s allowRecycle:%s",e,t),e=e.toLowerCase()
;var s=!i.preventRecycle&&t;if(s&&r[e])return n.i(a.a)("[MediaElement] Found existing element to use."),r[e];var o=document.createElement(e);return s&&(r[e]=o),o}var a=n(29),r={};t.a=i},function(e,t,n){"use strict";function i(e){if(null==e)return"";var t=r.a.duration(e),i=t.hours()+24*t.days(),a=t.minutes(),o=t.seconds();return i&&a?n.i(s.default)("{1} hr {2} min",i,a):i?n.i(s.default)("{1} hr",i):a?n.i(s.default)("{1} min",a):o>0?n.i(s.default)("{1} sec",o):""}var a=n(40),r=n.n(a),s=n(4);t.a=i
},function(e,t,n){"use strict";function i(e){var t=[n.i(u.default)("January"),n.i(u.default)("February"),n.i(u.default)("March"),n.i(u.default)("April"),n.i(u.default)("May"),n.i(u.default)("June"),n.i(u.default)("July"),n.i(u.default)("August"),n.i(u.default)("September"),n.i(u.default)("October"),n.i(u.default)("November"),n.i(u.default)("December")],i=t[e];return n.i(l.a)(i,"Unknown month"),i}function a(e){
var t=[n.i(u.default)("Jan"),n.i(u.default)("Feb"),n.i(u.default)("Mar"),n.i(u.default)("Apr"),n.i(u.default)("May"),n.i(u.default)("Jun"),n.i(u.default)("Jul"),n.i(u.default)("Aug"),n.i(u.default)("Sep"),n.i(u.default)("Oct"),n.i(u.default)("Nov"),n.i(u.default)("Dec")],i=t[e];return n.i(l.a)(i,"Unknown month"),i}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.abbreviate,r=void 0!==n&&n;if(!e)return"";var s=o.a.unix(e).month();return r?a(s):i(s)}
var s=n(40),o=n.n(s),l=n(31),u=n(4);t.a=r},function(e,t,n){"use strict";function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.includeMinuteZero,a=void 0===i||i,s=n.timeFormat,o=void 0===s?"h:mma":s,l=r.a.unix(e),u=r.a.unix(t),c=l.format("a")===u.format("a"),d=l.minutes(),p=u.minutes(),h=o,f=o;return a||0!==d||(h=h.replace("h:mm","h")),c&&(h=h.replace("a","")),a||0!==p||(f=f.replace("h:mm","h")),l.format(h)+"-"+u.format(f)}var a=n(40),r=n.n(a);t.a=i},function(e,t,n){
"use strict";function i(e,t){if(null==e||null==t)return!1;var n=r()().unix();return n>=e&&n<=t}var a=n(40),r=n.n(a);t.a=i},function(e,t,n){var i=n(1431).default,a=n(153);e.exports=a(i)},function(e,t,n){var i=n(852).default,a=n(153);e.exports=a(i)},function(e,t,n){var i=n(854).default,a=n(153);e.exports=a(i)},function(e,t,n){"use strict";function i(e,t){if(n.i(a.a)(null!=t,"No `minVersion` supplied to `isVersionOrNewer`. Have you misspelled a constant?"),!e)return!0
;for(var i=t.split("."),r=e.split("."),s=0,o=i.length;s<o;s++)if(s<r.length){var l=parseInt(i[s],10),u=parseInt(r[s],10);if(l<u)return!0;if(l>u)return!1}return!0}var a=n(31);t.a=i},function(e,t,n){"use strict";function i(e,t){if(e===t)return 0;for(var n=e.split("."),i=t.split("."),a=0;a<n.length;a++){if(!i[a])return 1;var r=parseInt(n[a],10),s=parseInt(i[a],10);if(r>s)return 1;if(r<s)return-1}return 0}t.a=i},function(e,t,n){"use strict";function i(e,t){
return e>t?50:e<=0||t<=0?0:Math.round(e/t*100)}t.a=i},function(e,t,n){"use strict";function i(e){var t=s.a.get("audio").id,i=n.i(o.a)(e,{streamType:t,selected:!0});return r.a.first(i)}var a=n(3),r=n.n(a),s=n(90),o=n(206);t.a=i},function(e,t,n){"use strict";function i(e){return e=parseInt(e,10),e?e<2?n.i(a.default)("Mono"):e<3?n.i(a.default)("Stereo"):(e-1).toString()+".1":""}var a=n(4);t.a=i},function(e,t,n){"use strict";function i(e){return e=parseInt(e,10),r.a.isNaN(e)?"":(e<10?"0":"")+e}
var a=n(3),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){return e?r.a.isArray(e)?e:[e]:[]}var a=n(3),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){return 1===Number(e)||"true"===e}t.a=i},function(e,t,n){"use strict";function i(e){return null==e||""===e?0:parseInt(e,10)}t.a=i},function(e,t,n){"use strict";function i(e,t){var n=e.isChannelItem,i=e.isExtra,a=e.guid,r=i&&!/^file:\/\//.test(a);return!n&&!r&&t}t.a=i},function(e,t,n){"use strict";var i=(n(1455),n(846),n(1456),
n(562),n(847),n(563));n.d(t,"a",function(){return i.a});var a=(n(1457),n(1458),n(1459),n(1460));n.d(t,"b",function(){return a.a});n(1461),n(1462),n(1463),n(1464),n(1465),n(415),n(416),n(1466),n(1467),n(848),n(849),n(1468),n(1469),n(1470),n(1471),n(1472),n(564),n(1473),n(1474),n(1475),n(1476),n(1477),n(1478),n(565),n(566),n(1479),n(1480),n(567),n(568),n(1481),n(1482)},function(e,t,n){"use strict";function i(){return"edge"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a).id}
var a=n(33);t.a=i},function(e,t,n){"use strict";function i(){return"konvergo"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a).id}var a=n(33);t.a=i},function(e,t,n){"use strict";function i(){return"tivo"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a).platformID}var a=n(33);t.a=i},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a;return"viziomtk"===e.platformID&&n.i(r.a)(e)}var a=n(33),r=n(415);t.a=i
},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a;return"viziomtk"===e.platformID&&n.i(r.a)(e)}var a=n(33),r=n(416);t.a=i},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a;return"viziosigma"===e.platformID&&n.i(r.a)(e)}var a=n(33),r=n(415);t.a=i},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a
;return"viziosigma"===e.platformID&&n.i(r.a)(e)}var a=n(33),r=n(416);t.a=i},function(e,t,n){"use strict";function i(e,t,n){var i=e.get("entities").get(t);if(i){var a=i.get(n);if(a)return a.get("model")}}function a(e,t,n){var a=i(e,t,n);return a||r.a.warn('An entity does not exist with the type "%s" and id "%s"',t,n),a}var r=n(29);t.b=i,t.a=a},function(e,t,n){"use strict";function i(e){e=e>0?Math.min(e,1024):24;for(var t="";t.length<e;)t+=Math.random().toString(36).substr(2);return t.substr(0,e)}
t.a=i},function(e,t,n){"use strict";function i(e){var t=/(\d+\.){2,3}\d+/.exec(e);return r.a.first(t)||e}var a=n(3),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){r.a.flushDebouncedSave(),a.a.set("main.webMode",e)}var a=n(107),r=n(135);t.a=i},function(e,t,n){"use strict";function i(e){var t=l.exec(e);if(null!=t)return{octets:s.a.map(s.a.rest(t),function(e){return parseInt(e,10)})}}function a(e){if(u.test(e)){var t=e.split("::"),n=t[0].match(c),i={parts:[]};if(null!=n){
if(n.length>8)return;i.parts=s.a.map(n,function(e){return parseInt(e,16)})}if(t.length>1){var a=t[1].match(c),r=s.a.map(a,function(e){return parseInt(e,16)}),o=8-i.parts.length-r.length;if(o<0||8===o)return;s.a.times(o,function(){i.parts.push(0)}),i.parts=i.parts.concat(r)}return i}}
var r=n(3),s=n.n(r),o=/^([0-9]{1,4}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$/,l=/^([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/,u=/(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))/i,c=/[a-f0-9]{1,4}/gi,d={
isValidPort:function(e){return o.test(e)},isValidAddress:function(e){return this.isValidV4Address(e)||this.isValidV6Address(e)},isLoopbackAddress:function(e){return"localhost"===e||this.isLoopbackV4Address(e)||this.isLoopbackV6Address(e)},isPrivateAddress:function(e){return this.isPrivateV4Address(e)||this.isPrivateV6Address(e)},isPlexDirectAddress:function(e){return/plex\.direct$/.test(e)},isValidV4Address:function(e){var t=i(e);return!(!t||!s.a.all(t.octets,function(e){return e>=0&&e<=255}))},
isLoopbackV4Address:function(e){var t=i(e);return!(!t||127!==t.octets[0]&&!s.a.all(t.octets,function(e){return 0===e}))},isPrivateV4Address:function(e){var t=i(e);if(t){if(10===t.octets[0])return!0;if(172===t.octets[0]&&t.octets[1]>=16&&t.octets[1]<=31)return!0;if(192===t.octets[0]&&168===t.octets[1])return!0}return!1},isValidV6Address:function(e){var t=a(e);return!(!t||!s.a.all(t.parts,function(e){return e>=0&&e<=65535}))},isLoopbackV6Address:function(e){var t=a(e);if(t){
return s.a.all(s.a.take(t.parts,7),function(e){return 0===e})&&1===s.a.last(t.parts)}return!1},isPrivateV6Address:function(e){var t=a(e);return!!(t&&t.parts[0]>=64512&&t.parts[0]<=65023)},getV4Subnet:function(e){return d.isValidV4Address(e)?e.split(".").slice(0,-1).join("."):""}};t.a=d},function(e,t,n){"use strict";function i(e,t){var n=e.match(/(^[^#]+)?/),i=n[1];return""+(i=i||"")+t}t.a=i},function(e,t,n){"use strict";function i(e){var t=l.a.Deferred();return n.i(d.a)({
url:n.i(p.a)(window.location.origin,"https:")+"/"+h,data:e,timeout:5e3,onMessage:function(e){e.success===!0?t.resolve(e.data):e.success===!1&&t.reject(e.data)}}),t.promise()}function a(e){var t=e.xhrFields&&e.xhrFields.withCredentials,n=t&&!1&&!c.a.isHostedHttps;return e.headers=s()({},u.a.getInstance(),e.headers||{}),n?i(e):l.a.ajax(e)}var r=n(6),s=n.n(r),o=n(10),l=n.n(o),u=n(331),c=n(80),d=n(1505),p=n(858),h="service-reflector";t.a=a},function(e,t,n){"use strict"
;var i=n(7),a=n.n(i),r=n(9),s=n.n(r),o=n(8),l=n.n(o),u=n(0),c=n.n(u),d=n(39),p=n.n(d),h=n(1138),f=n.n(h),v=(n(31),n(26)),m=function(e){function t(n,i){a()(this,t);var r=s()(this,e.call(this,n,i));return r.removePortal=function(){var e=r.props.onPortalRef,t=r._portal;t&&(p.a.unmountComponentAtNode(t),document.body.removeChild(t)),r._portal=null,r._portalRef=null,e&&e(null),r._closeTimeoutID=clearTimeout(r._closeTimeoutID)},r._portal=null,r._portalRef=null,r._closeTimeoutID=null,r}return l()(t,e),
t.prototype.componentDidMount=function(){this.props.isOpen&&this.renderPortal(this.props)},t.prototype.shouldComponentUpdate=function(e,t){return n.i(v.a)(this,e,t)},t.prototype.componentDidUpdate=function(e){this.props.isOpen?(this._closeTimeoutID=clearTimeout(this._closeTimeoutID),this.renderPortal(this.props)):this._portal&&(this.props.closeTimeout&&this.renderPortal(this.props),this._closeTimeoutID||(this._closeTimeoutID=setTimeout(this.removePortal,this.props.closeTimeout)))},
t.prototype.componentWillUnmount=function(){this.removePortal()},t.prototype._setAttrs=function(e,t){this._setClassName(e,t.className),this._setStyle(e,t.style)},t.prototype._setClassName=function(e,t){null!=t&&(e.className=t)},t.prototype._setStyle=function(e,t){t&&f.a.setValueForStyles(e,t)},t.prototype.renderPortal=function(e){var t=this.props.onPortalRef,n=this._portal||document.createElement("div");this._setAttrs(n,e),this._portal||document.body.appendChild(n)
;var i=c.a.Children.only(e.children);this._portal=n;var a=p.a.unstable_renderSubtreeIntoContainer(this,i,n);this._portalRef!==a&&(this._portalRef=a,t&&(t(null),t(this._portalRef)))},t.prototype.render=function(){return null},t}(u.Component);m.defaultProps={isOpen:!0,closeTimeout:0},t.a=m},function(e,t,n){"use strict";function i(e,t,n){var i=0;return r.a.Children.map(e,function(e){if(r.a.isValidElement(e)){var a=i;return i++,t.call(n,e,a)}return e})}var a=n(0),r=n.n(a);t.a=i},function(e,t,n){
"use strict";function i(){function e(e,t){var n=[P,x,N,A,t];for(var i in e)n.push(e[i]);var a=n.join(":");if(a===V)return Q;O=e.listTop,j=e.listLeft;var o=(e.viewportWidth||0)-x-A,l=(e.viewportHeight||0)-P-N;m===r?o-=j:l-=O,o=Math.max(0,o),l=Math.max(0,l),R=k({innerViewportWidth:o,innerViewportHeight:l,innerHorizontalPadding:M,innerVerticalPadding:w}),U=_({cellWidth:R,innerViewportWidth:o,innerViewportHeight:l,innerHorizontalPadding:M,innerVerticalPadding:w}),
z=Math.max(0,g||Math.floor((l+w)/(U+w))),B=Math.max(0,y||Math.floor((o+M)/(R+M))),F=B*z;var u=0,c=0;return m===r&&B?(u=B*(R+M)-M,c=Math.ceil(t/B)*(U+w)-w):m===s&&z&&(u=Math.ceil(t/z)*(R+M)-M,c=z*(U+w)-w),H={},V=a,Q={width:u+x+A,height:c+P+N}}function t(e){var t=e;if(H[t])return H[t];var n=u(e),i=l(e),a={column:n,row:i,cellX:n*(R+M)+j+A,cellY:i*(U+w)+O+P,cellWidth:R,cellHeight:U};return H[t]=a,a}function i(e,t,i,s){
var o=U+w,l=R+M,u=e-O,c=t-j,d=m===r?B:z,p=m===r?u/o:c/l,h=F+2*d+S*d*2,f=Math.ceil(p)*d,v=f+F-1,g=Math.floor(p)*d,y=f+F+d-1,b=g-d*S,I=n.i(a.a)(b,i)+h-1;return I>=i&&(b=i-h),{visibleStartIndex:n.i(a.a)(f,i),visibleEndIndex:n.i(a.a)(v,i),partiallyVisibleStartIndex:n.i(a.a)(g,i),partiallyVisibleEndIndex:n.i(a.a)(y,i),renderStartIndex:n.i(a.a)(b,i),renderEndIndex:n.i(a.a)(I,i)}}function o(e,t,i,o){var l=m===i,u=m===r&&1===B||m===s&&1===z;if(l&&u)return n.i(a.a)(e+t,o);var f=void 0,v=void 0,g=void 0
;i===r&&(f=l?B*t:t,v=d(e,o),g=h(e,o)),i===s&&(f=l?z*t:t,v=c(e,o),g=p(e,o));var y=e+f;return v||g?Math.max(Math.min(y,g),v):e}function l(e){return m===r?Math.floor(e/B):e%z}function u(e){return m===r?e%B:Math.floor(e/z)}function c(e,t){var n=l(e);return m===r?n*B:n}function d(e,t){var n=u(e);return m===r?n:n*z}function p(e,t){if(m===r){var i=c(e,t);return n.i(a.a)(i+(B-1),t)}var s=t-1,o=l(e),d=u(s),p=(d+1)*z-(z-o);return p<t?p:s-t%z-(z-1-o)}function h(e,t){if(m===r){
var i=t-1,s=u(e),o=l(i),c=(o+1)*B-(B-s);return c<t?c:i-t%B-(B-1-s)}var p=d(e,t);return n.i(a.a)(p+(z-1),t)}
var f=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},v=f.direction,m=void 0===v?r:v,g=f.rows,y=f.columns,b=f.overscan,S=void 0===b?0:b,I=f.innerHorizontalPadding,M=void 0===I?0:I,C=f.innerVerticalPadding,w=void 0===C?0:C,D=f.outerPaddingTop,P=void 0===D?0:D,T=f.outerPaddingRight,x=void 0===T?0:T,E=f.outerPaddingBottom,N=void 0===E?0:E,L=f.outerPaddingLeft,A=void 0===L?0:L,k=f.getCellWidth,_=f.getCellHeight,O=void 0,j=void 0,R=void 0,U=void 0,z=void 0,B=void 0,F=void 0,V=void 0,Q=void 0,H=void 0
;return{options:f,getListStyle:e,getRelativeIndex:o,getPositionForIndex:t,getRangesForPosition:i}}var a=(n(31),n(1529));n.d(t,"c",function(){return r}),n.d(t,"b",function(){return s}),t.a=i;var r="vertical",s="horizontal"},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=e.Media;i=void 0===i?[]:i;var r=i[0],s=void 0===r?{}:r,o=s.width,l=s.height,u=s.Part;u=void 0===u?[]:u
;var c=u[0],d=void 0===c?{}:c;return o&&l?n.i(a.a)(d.orientation)?l/o:o/l:t}var a=n(836);t.a=i},function(e,t,n){"use strict";var i=n(0);n.n(i),i.PropTypes.shape({getListStyle:i.PropTypes.func.isRequired,getPositionForIndex:i.PropTypes.func.isRequired,getRangesForPosition:i.PropTypes.func.isRequired,getRelativeIndex:i.PropTypes.func.isRequired})},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(13),s=n(75),o={movie:{showInfo:!0,showPlay:!0,showShare:!0,showWatchLater:!0},episode:{showInfo:!0,
showPlay:!0,showShare:!0,showWatchLater:!0},clip:{showInfo:!0,showPlay:!0,showShare:!0,showWatchLater:!0},userPlaylistItem:{showDeleteFromUserPlaylist:!0,showInfo:!0,showMarkUnwatched:!0,showMarkWatched:!0,showPlay:!0,showShare:!0,showWatchLater:!0}},l={showListDropdown:["showWatchLater","showShare","showInfo"]},u=s.a.extend({initialize:function(e,t){if(t||(t={}),t.item){var n=r.a("appModel");this.item=t.item,this.user=n.get("user"),this.signedIn=this.user.get("signedIn"),
this.setDefaults(this.item.get("type")),this.updateAll(),this.listenTo(this.user,{"change:signedIn":this.onSignedInChange}),this.listenTo(this.item,{"change:unviewedLeafCount":this.onViewStateChange,"change:viewOffset":this.onViewStateChange,"change:viewCount":this.onViewStateChange})}},setDefaults:function(e){e&&e!==this.type&&(this.type=e,this.defaults=a.a.clone(o[e]||{}),this.clear().set(this.defaults))},updateAll:function(){this.updateAction("showPlay",this.canPlay),
this.updateAction("showWatchLater",this.canWatchLater),this.updateAction("showShare",this.canShare),this.updateAction("showInfo",this.canGetInfo),this.updateAction("showMarkWatched",this.canMarkWatched),this.updateAction("showMarkUnwatched",this.canMarkUnwatched),this.updateDropdown("showListDropdown")},updateAction:function(e,t,n){var i=!!this.defaults&&this.defaults[e];this.set(e,t.call(this,i,n))},updateDropdown:function(e){var t=l[e],n=a.a.map(t,function(e){return this.get(e)},this)
;this.set(e,a.a.some(n))},canPlay:function(e,t){return!!e&&!this.item.get("hasInvalidKey")},canMarkWatched:function(e){return!!e&&0===this.item.get("viewCount")},canMarkUnwatched:function(e){return!!e&&this.item.get("viewCount")>0},canWatchLater:function(e){if(!e)return!1;var t=!!this.item.get("url"),n=!this.item.userPlaylistKey||"queue"!==this.item.userPlaylistKey;return this.signedIn&&this.user.get("queueUid")&&t&&n},canShare:function(e){return!!e&&(this.signedIn&&!this.user.get("restricted"))
},canGetInfo:function(e){return!!e},onSignedInChange:function(e,t){this.signedIn=t,this.updateAction("showWatchLater",this.canWatchLater),this.updateAction("showShare",this.canShare),this.updateDropdown("showListDropdown")},onViewStateChange:function(){this.updateAction("showMarkWatched",this.canMarkWatched),this.updateAction("showMarkUnwatched",this.canMarkUnwatched)}});t.a=u},function(e,t,n){"use strict";var i=n(234),a=n(108),r=n(1655),s=a.a.extend({model:r.a,url:"/playlists?type="+i.a.LOCAL,
parse:function(e){return this.convert(e,"Playlist")}});t.a=s},function(e,t,n){"use strict";var i=n(17),a=n(16),r=i.a.extend({name:"EPGLanguageModel",context:["server"],rootPropertyName:"Language",idAttribute:"code",syncedAttrs:{code:a.a.string,title:a.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(52),r=n(82),s=n(17),o=n(1689),l=s.a.extend({name:"SearchModel",context:["server","provider"],idAttribute:"providerEntityID",url:function(){return this.get("key")},sessionAttrs:{
providerEntityID:i.a.string,key:i.a.string,isSearchPending:i.a.boolean,isSearchPopulated:i.a.boolean,searchError:i.a.object},syncedRelations:{hubs:{relationClass:o.a,rootPropertyName:"Hub"}},defaults:{isSearchPending:!0,isSearchPopulated:!1},augmentResponseText:function(e,t){return t===a.a.xml?n.i(r.a)(e):e},augmentResponse:function(e){return e.Hub=e.Hub.filter(function(e){return"0"!==e.size}),e}});t.a=l},function(e,t,n){"use strict";var i=n(16),a=n(272),r=n(113),s=n(505),o=n(20),l=n(32),u=n(77)
;n.d(t,"a",function(){return c});var c=r.a.ORIGINAL,d=s.a.extend({name:"ExperienceSettingsModel",storageKey:"experience",syncedAttrs:{columnAdjustment:i.a.integer,searchAllServers:i.a.boolean,relayReminders:i.a.object,calendarViewType:i.a.string,timeFormat:i.a.string,showPrePlayArtwork:i.a.boolean,playThemeMusic:i.a.boolean,libraryRoutes:i.a.object,libraryTableColumns:i.a.object,listStyles:i.a.object,isNotInterestedInPersonalCloud:i.a.boolean,volume:i.a.integer,extrasPrefixCount:i.a.integer,
restorePlayQueue:i.a.object,autoPlay:i.a.boolean,autoAdjustQuality:i.a.boolean,remoteSmallVideoAtOriginalQuality:i.a.boolean,useHomeStreamingRecommendedSettings:i.a.boolean,localQuality:i.a.integer,remoteQuality:i.a.integer,subtitlesBurnLevel:i.a.string,subtitleSize:i.a.integer},defaults:function(){var e;return{columnAdjustment:0,searchAllServers:!1,relayReminders:{},calendarViewType:o.c.CALENDAR,timeFormat:"h:mma",showPrePlayArtwork:!1,playThemeMusic:!1,libraryRoutes:{},libraryTableColumns:{},
listStyles:(e={},e[l.e]={episode:u.b,track:u.b},e[l.a]={track:u.b},e),isNotInterestedInPersonalCloud:!1,volume:90,extrasPrefixCount:0,restorePlayQueue:null,autoPlay:!0,autoAdjustQuality:!1,remoteSmallVideoAtOriginalQuality:!0,useHomeStreamingRecommendedSettings:!0,localQuality:c,remoteQuality:6,subtitlesBurnLevel:a.a.AUTO,subtitleSize:100}}});t.b=d},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(240),s=n(16),o=n(355),l=o.a.extend({name:"SyncItemModel",context:["server","device"],
urlRoot:function(){return"/devices/"+(this.device?this.device.get("clientIdentifier"):this.get("clientIdentifier"))+"/sync_items"},syncedAttrs:a.a.extend({},o.a.prototype.syncedAttrs,{version:{type:s.a.integer,save:!0},metadataType:{type:s.a.string,save:!0},rootTitle:{type:s.a.string,save:!0},machineIdentifier:{type:s.a.string,save:!0},Server:s.a.object}),defaults:function(){return{Location:{},Device:{},Server:{}}},augmentResponse:function(e){
return"photoAlbum"===e.metadataType&&(e.metadataType="photoalbum"),e},sync:function(e,t,n){var i=r.a.addVersionHeaderForDevice(this.device,n);return o.a.prototype.sync.call(this,e,t,i)},getSaveParams:function(e,t){var n=o.a.prototype.getSaveParams.apply(this,arguments),i=n.Item;return a.a.each(i,function(e,t){""===e&&delete i[t]}),{SyncItem:i}}});t.a=l},function(e,t,n){"use strict";var i=n(36),a=n(37);n.d(t,"a",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"c",function(){return o
}),n.d(t,"d",function(){return l}),n.d(t,"e",function(){return u});var r=n.i(i.a)(a._62),s=n.i(i.a)(a._63),o=n.i(i.a)(a._64),l=n.i(i.a)(a._65),u=n.i(i.a)(a._66)},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(15),s=n(166),o=n(36),l=n(436),u=n(109);n.d(t,"a",function(){return d}),n.d(t,"b",function(){return p}),n.d(t,"c",function(){return h});var c,d=n.i(o.a)("ui/player/playQueue/toggleAutoPlay"),p=n.i(o.a)("ui/player/playQueue/savePlayQueueToPlaylist"),h=a()({},u.l,(c={},
c[u.m]=function(e,t){var i,r=t.playerType,o=e.get("user").id,l=n.i(s.a)(e,r),u=l.get("playQueue"),c=e.get("experienceSettings"),d={providerEntityID:l.get("providerEntityID"),serverEntityID:l.get("serverEntityID"),playQueueOffset:l.get("positionSeconds"),playQueueType:u.get("type"),playQueueRepeat:u.get("repeat"),playQueueID:u.get("playQueueID")},p=c.get("restorePlayQueue");c.save("restorePlayQueue",a()({},p,(i={},i[o]=d,i)))},c[u.n]=function(e){
var t=e.get("user").id,n=e.get("experienceSettings").get("restorePlayQueue"),i=a()({},n);delete i[t],e.get("experienceSettings").save("restorePlayQueue",i)},c["ui/player/playQueue/toggleAutoPlay"]=function(e,t){var n=e.get("experienceSettings"),i=n.get("autoPlay");n.save("autoPlay",!i)},c["ui/player/playQueue/savePlayQueueToPlaylist"]=function(e,t){var i=t.playerType,a=n.i(s.a)(e,i),o=a.get("playQueue");r.a.trigger("show:modal",new l.a({model:o}))},c))},function(e,t,n){"use strict"
;function i(e){return e.get("ui").get("signInLaunchPage")}function a(e,t){var i=t.get("cloudServer"),a=t.get("user");return u.a.ajax(i.getXHROptions("/api/v2/user",{headers:{"X-Plex-Token":e}})).then(function(e){return a.signIn(e)}).then(function(){c.a.trigger("navigate:refresh")}).fail(function(e){var t=n.i(f.a)(e);c.a.trigger("show:alert",{message:n.i(m.a)(t)})})}function r(e){window.location.href=e}function s(e,t,r){function s(){n.i(y.a)(c,d).then(function(t){var n=t.authToken;n?a(n,e):l()
}).fail(function(t){u.set({pinID:null,code:null,isFailedPIN:!0}),o(e,u)})}function l(){setTimeout(s,2e3)}var u=i(e),c=e.get("cloudServer"),d=t.pinID;l()}function o(e,t){var i=e.get("cloudServer");return n.i(g.a)(i).then(function(e){var n=e.id,i=e.code;return t.set({code:i,pinID:n,isBusy:!1}),n}).fail(function(){t.set({isUnrecoverableError:!0,isBusy:!1})})}var l=n(10),u=n.n(l),c=n(15),d=n(36),p=n(63),h=n(267),f=n(1366),v=n(35),m=n(1367),g=n(1762),y=n(1763);n.d(t,"a",function(){return S}),
n.d(t,"b",function(){return I}),n.d(t,"c",function(){return M}),n.d(t,"d",function(){return C}),n.d(t,"e",function(){return w}),n.d(t,"f",function(){return D});var b,S=n.i(d.a)("user/signIn/resetSignInLaunchPage"),I=n.i(d.a)("user/signIn/readStoredPIN"),M=n.i(d.a)("user/signIn/preloadPIN"),C=n.i(d.a)("user/signIn/beginPolling"),w=n.i(d.a)("user/signIn/redeemCode"),D=n.i(d.a)("user/signIn/signInWithAuthToken"),P=n.i(p.a)((b={},b["user/signIn/resetSignInLaunchPage"]=function(e,t,a){var r=i(e)
;n.i(v.a)(function(){r.set({hasStoredPIN:null,code:null,pinID:null,myPlexAccessToken:null,isUnrecoverableError:!1})})},b["user/signIn/readStoredPIN"]=function(e,t,a){var r=i(e),s=e.get("cloudServer"),o=h.a.get("pinID");o.then(function(e){return n.i(y.a)(s,e)}).then(function(e){var t=e.authToken;r.set({hasStoredPIN:!!t,myPlexAccessToken:t})}).fail(function(){r.set({hasStoredPIN:!1})}),o.then(function(){return h.a.remove("pinID")})},b["user/signIn/preloadPIN"]=function(e,t,n){var a=i(e);a.set({
hasStoredPIN:null,isBusy:!0,code:null,pinID:null,isUnrecoverableError:!1}),o(e,a)},b["user/signIn/signInWithAuthToken"]=function(e,t,n){a(t.myPlexAccessToken,e)},b["user/signIn/beginPolling"]=function(e,t,n){s(e,{pinID:t.pinID},n)},b["user/signIn/redeemCode"]=function(e,t,n){var i=t.pinID,a=t.serviceAuthUrl;i?h.a.set("pinID",i).then(function(){r(a)}):r(a)},b));t.g=P},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(n.i(r.a)(),function(e){return e.some(function(e){
return e.refreshing})})}var a=n(5),r=(n.n(a),n(527));t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(function(e,t){return t.listType},n.i(r.a)(),function(e,t){return!t||e&&"mixed"!==e?e:t.extraType?"extra":t.type})}var a=n(5),r=(n.n(a),n(21));t.a=i},function(e,t,n){"use strict";function i(){return n.i(u.createSelector)(n.i(g.a)(),n.i(v.a)(),n.i(b.a)(),n.i(m.a)(),n.i(y.a)(),n.i(S.a)(),f.a,function(e,t,i,s,l,u,f){
if(null!=e.qualityIndex&&e.qualityIndex!==d.a.CONVERT_AUTOMATICALLY)return e.qualityIndex;if(u&&e.qualityIndex===d.a.CONVERT_AUTOMATICALLY)return e.qualityIndex;var v=u&&f.autoAdjustQuality,m=n.i(p.a)(l,s.isPrivateConnection),g=n.i(h.a)(l,s.isPrivateConnection),y=d.a.getQualityByIndex(f[g]);if(m){var b=f.useHomeStreamingRecommendedSettings?c.a:y.index,S=d.a.getQualityByIndex(b);return v&&!a(S,i)?d.a.CONVERT_AUTOMATICALLY:b}
return f.remoteSmallVideoAtOriginalQuality&&r(s,i)&&(y.index===d.a.ORIGINAL||a(y,i))?d.a.ORIGINAL:v?d.a.CONVERT_AUTOMATICALLY:o(y,s,i)})}function a(e,t){return l(e.bitrate,t.bitrate)}function r(e,t){return l(e.maxUploadBitrate,t.bitrate)}function s(e,t){return l(e.maxUploadBitrate,t.bitrate)}function o(e,t,n){var i=t.maxUploadBitrate;if(!i)return e.index;var a=e.index===d.a.ORIGINAL;return a&&r(t,n)||!a&&s(t,e)?e.index:d.a.getNearestIndexToBitrate(i)}function l(e,t){return!e||!!t&&e>=t}
var u=n(5),c=(n.n(u),n(585)),d=n(113),p=n(560),h=n(412),f=n(111),v=n(85),m=n(534),g=n(42),y=n(230),b=n(530),S=n(783);t.a=i},function(e,t,n){"use strict";function i(e){return e.experienceSettings.libraryRoutes}t.a=i},function(e,t,n){"use strict";function i(e){return e.experienceSettings.listStyles}t.a=i},function(e,t,n){"use strict";function i(e){var t=e.get("connections"),n=t.filter(function(e){return e.get("isConnected")&&!e.get("isLoopback")}),i=n.length?n.reduce(d.b):null;if(i)return{
protocol:i.get("scheme"),address:i.getAddressFromUri(),port:i.get("port")}}function a(e){if(e.get("isCloud"))return l.a.Deferred().resolve({machineIdentifier:"node",transcoderVideo:!1,transcoderVideoRemuxOnly:!1,transcoderAudio:!1,scheme:"https",address:"node.plexapp.com",port:"32443"}).promise();var t=i(e);if(!t)return l.a.Deferred().reject().promise();var a=s()({machineIdentifier:e.get("originalMachineIdentifier")||e.get("machineIdentifier"),transcoderVideo:e.get("transcoderVideo")||!1,
transcoderVideoRemuxOnly:e.get("transcoderVideoRemuxOnly")||!1,transcoderAudio:e.get("transcoderAudio")||!1,version:e.get("shortVersion"),myPlexSubscription:e.get("myPlexSubscription"),isVerifiedHostname:"https"===t.protocol&&!u.a.isValidAddress(t.address)},t);return n.i(c.a)(e).then(function(e){return a.accessToken=e,a})}var r=n(6),s=n.n(r),o=n(10),l=n.n(o),u=n(573),c=n(1453),d=n(394);t.a=i,t.b=a},function(e,t,n){"use strict";function i(){return a.a.getInstance()instanceof r.a||n.i(s.a)()}
var a=n(267),r=n(732),s=n(563);t.a=i},function(e,t,n){"use strict";var i=n(3036),a=n.n(i),r=n(2680),s=n.n(r),o=n(919),l=o.a.extend({template:a.a,ui:{page:".page-container"},serializeData:function(){return{styles:s.a}}});t.a=l},function(e,t,n){"use strict";var i=n(3049),a=n.n(i),r=n(10),s=n.n(r),o=n(3),l=n.n(o),u=n(1982),c=n(28),d=u.a.extend({tagName:"span",className:"rating star-rating",template:a.a,disabled:!0,modelEvents:{"change:rating":"onRatingChange","change:userRating":"onRatingChange"},
events:l.a.extend({mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mousemove:"onMouseMove"},u.a.prototype.events),initialize:function(e){u.a.prototype.initialize.apply(this,arguments);var t=this.model.server.get("shared")&&!this.model.server.get("multiuser");this.disabled=e.disabled||t,this.passive=e.passive,this.updateRating()},updateRating:function(){this.metadataRating=this.model.get("rating")||0,this.userRating=this.model.get("userRating"),
this.setValue(this.userRating>0?this.userRating:this.metadataRating)},normalizeRating:function(e){return Math.round(e/2)},serializeData:function(){var e=this.normalizeRating(this.currentValue);return{stars:[e>0,e>1,e>2,e>3,e>4]}},getValueForPosition:function(e){var t=this.$el,n=e-t.offset().left,i=n/t.width();return i=Math.min(Math.max(i,0),1),i=2*Math.ceil(5*i)},persistValue:function(){var e=this.currentValue||-1;c.a.execute("rate",{item:this.model,rating:e,passive:this.passive}),
this.updateRating(),this.render()},displayValue:function(e){this.$el.data("value",e);var t=this.normalizeRating(e);this.$(".star-icon").each(function(e){var n=t>e;s()(this).toggleClass("star",n).toggleClass("dislikes",!n)}),this.$el.toggleClass("unrated",!e)},onRender:function(){u.a.prototype.onRender.apply(this,arguments),this.$el.toggleClass("unrated",!this.currentValue),this.$el.toggleClass("user-rating",this.userRating>0),this.$el.toggleClass("disabled",this.disabled)},
onRatingChange:function(e,t){this.updateRating(),this.render()},onMouseEnter:function(e){this.disabled||(this.$el.addClass("user-rating"),this.$el.removeClass("unrated"))},onMouseLeave:function(e){this.disabled||this.render()},onMouseMove:function(e){if(!this.disabled)if(this.dragging)this.updateForPosition(e.pageX);else{var t=this.getValueForPosition(e.pageX);this.displayValue(t)}},onDragComplete:function(){this.disabled||this.persistValue()}});t.a=d},function(e,t,n){"use strict"
;var i=n(3),a=n.n(i),r=n(10),s=n.n(r),o=n(18),l=n(4),u=o.a.Layout.extend({events:{"click .edit-lock-addon":"onLockClick","keyup .lockable-field:not(.selectized)":"onLockableFieldChange","change .lockable-field:not(.selectized)":"onLockableFieldChange"},ui:{form:".edit-metadata-form"},serializeData:function(){var e=this.model.get("lockedFields"),t={};e&&e.each(function(e){t[e.get("name")]=e.get("locked")});var i=this.model.toJSON(),a=this.model.get("mixedFields"),r={
originallyAvailableAt:n.i(l.default)("YYYY-MM-DD")};return a&&a.forEach(function(e){r[e]=n.i(l.default)("MIXED")}),{item:i,locked:t,placeholders:r,canReparent:this.canReparent,canEditSimilarArtists:this.canEditSimilarArtists,disableIndices:!this.canReparent}},flushChanges:function(){},getLockedFieldsArray:function(){var e=this.ui.form,t=this.model.get("lockedFields").reduce(function(e,t){return e[t.get("name")]=t.get("locked"),e},{});return e.find(".edit-lock-addon").each(function(e,n){
var i=s()(n),a=i.data("field");i.hasClass("locked")?t[a]=!0:a in t&&(t[a]=!1)}),a.a.map(t,function(e,t){return{name:t,locked:e}})},onLockClick:function(e){e.preventDefault(),s()(e.currentTarget).hasClass("disabled")||s()(e.currentTarget).toggleClass("locked")},onLockableFieldChange:function(e){var t=e instanceof s.a?e:s()(e.currentTarget);if(!e.force){var n=t.data("original-value");if(void 0===n&&(n=t.attr("value")||t.val()),t.data("original-value",n),t.val()===n)return}
t.siblings(".edit-lock-addon").addClass("locked")}});t.a=u},function(e,t,n){"use strict";var i=n(19),a=n(277),r=n(284),s=n(413),o=r.a.extend({background:!0,setup:function(e){this.model=e.model,e.noPlaceholder||(this.placeholderClass=s.a.playlist);var t=n.i(a.a)(),r={width:Math.round((e.width||e.height||256)*t),height:Math.round((e.height||e.width||256)*t),rows:e.rows||2,cols:e.columns||2,border:e.border||0,media:e.media||"thumb",repeat:e.unique?0:1},o=this.model.get("composite")
;o&&(this.url=this.model.server.resolveUrl(i.join(o,r),{appendToken:!0}))}});t.a=o},function(e,t,n){"use strict";function i(e){var t=l.a.reject(e,function(e){return 0===e.id}),n=l.a.sortBy(t,"streamType");return l.a.map(n,function(e){return T(e,"streamType")})}function a(e){return l.a.map(e.get("Media"),function(e){return l.a.extend(T(e,"Part"),{Part:l.a.map(e.Part,function(e){return l.a.extend(T(e,"Stream"),{file:e.file,exists:e.exists!==!1,accessible:e.accessible!==!1,Stream:i(e.Stream)})})})
})}var r=n(3155),s=n.n(r),o=n(3),l=n.n(o),u=n(10),c=n.n(u),d=n(13),p=n(235),h=n(833),f=n(281),v=n(555),m=n(1432),g=n(348),y=n(852),b=n(1494),S=n(19),I=n(62),M=n(28),C=["id","key","index","videoCodec","audioCodec","audioChannels","default","selected","languageCode","codecID","accessible","exists","provider","lines","minLines","follow","requiredBandwidths","deepAnalysisVersion","deepAnalysisDate"],w={size:h.a,duration:p.a,codec:g.a,format:g.a,container:g.a,videoResolution:f.default,channels:v.a,
bitrateMode:g.a,accessible:y.default,exists:y.default,optimizedForStreaming:y.default,timed:y.default,file:S.getLastSegment},D={optimizedForStreaming:"Web Optimized",has64bitOffsets:"Has 64bit Offsets",cabac:"CABAC",postURL:"URL"},P={frameRate:" fps",dialogNorm:" dB",bitrate:" kbps",samplingRate:" Hz"},T=function(e,t){var i={properties:[]};for(var a in e)if(a!==t&&l.a.indexOf(C,a)===-1){var r=D[a],s=e[a];"level"===a&&(s=n.i(m.a)(s,e.codec)),w[a]&&(s=w[a](s)),s&&(P[a]&&(s+=P[a]),
r||(r=n.i(b.a)(a)),i.properties.push({name:r,value:s}))}return t&&e&&(i[t]=e[t]),i},x=I.a.extend({name:"mediaInfoModal",className:"media-info-modal modal modal-lg fade",template:s.a,ui:{scroller:".modal-body-scroll",files:".files > ul",stickyProps:".media > .props, .part > .props"},events:l.a.extend({"click .delete-btn":"onDeleteClick"},I.a.prototype.events),modelEvents:{"change:Media":"onMediaChange"},initialize:function(e){I.a.prototype.initialize.apply(this,arguments),
this.bindAllWhenRendered("onMediaChange","onScroll"),this.loading=!1,this.media=a(this.model),this.loading=!0,this.model.fetch({usePopulatedParams:!0,data:{checkFiles:1,asyncCheckFiles:0}}).always(this.whenRendered(function(){this.model.changed.hasOwnProperty("Media")||this.updateMedia()}))},serializeData:function(){var e=this.model.get("key"),t=d.a("appModel"),n=t.get("user"),i=this.model.server;return this.model.get("isLibraryItem")&&(e=S.join(e,{checkFiles:1,includeExtras:1})),{key:e,
url:this.model.server.resolveUrl(e,{appendToken:!0}),media:this.media,hasFiles:this.hasFiles(),hasStreams:this.hasStreams()||this.loading,showDeleteFile:i.get("isFullOwnedServer")&&i.get("allowMediaDeletion")&&i.supports("specificMediaDeletion"),showFilepath:!i.get("shared")||n.isNinja(),loading:this.loading}},updateMedia:function(){this.loading=!1,this.rerender=!0,this.ui.scroller.off("scroll",this.onScroll),this.media=a(this.model),this.render()},hasFiles:function(){
return!!l.a.chain(this.media).pluck("Part").flatten().pluck("file").compact().size().value()},hasStreams:function(){return!!l.a.chain(this.media).pluck("Part").flatten().pluck("Stream").flatten().size().value()},onRender:function(){I.a.prototype.onRender.apply(this,arguments),this.ui.scroller.on("scroll",this.onScroll),this.$el.tooltip({selector:".files .label",placement:"bottom"})},onClose:function(){this.ui.scroller.off("scroll",this.onScroll)},onMediaChange:function(){
if(!this.isHidden)return this.model.get("Media").length?void this.updateMedia():void this.hide()},onDeleteClick:function(e){e.preventDefault(),M.a.execute("deleteMediaItem",{item:this.model,index:c()(e.currentTarget).data("media-item")})},onScroll:function(){var e=this.ui.scroller.scrollTop(),t=this.ui.scroller.offset().top;if(this.ui.files.length&&(t+=parseInt(this.ui.files.css("margin-bottom"),10)),t<0)return void setTimeout(this.onScroll,500);this.ui.stickyProps.each(function(){
var n=c()(this),i=n.parent().height()-n.height(),a=e-this.parentNode.offsetTop,r=Math.min(Math.max(a,0),i);r&&r===a?(n.addClass("sticky"),n.css("top",t)):(n.removeClass("sticky"),n.css("top",r))})}});t.a=x},function(e,t,n){"use strict";var i=n(3156),a=n.n(i),r=n(13),s=n(62),o=s.a.extend({name:"plexPassModal",template:a.a,serializeData:function(){return{plexPassUrl:r.a("appModel").get("user").server.get("plexPassUrl"),friendlyName:this.model.get("friendlyName"),
isClaimed:this.model.get("isClaimed")}}});t.a=o},function(e,t,n){"use strict";var i=n(3157),a=n.n(i),r=n(10),s=n.n(r),o=n(3),l=n.n(o),u=n(13),c=n(28),d=n(62),p=n(299),h=n(1934),f=p.a.extend({name:"recommendModal",className:"recommend-modal select-modal modal modal-sm fade",template:a.a,playlistIDs:null,ui:{sendBtn:".send-btn",messageContainer:".message-container",message:".message"},regions:{list:".friends-container"},events:l.a.extend({"click .friend":"onFriendClick",
"click .friends-btn":"onFriendsClick","click .send-btn":"onSendClick"},d.a.prototype.events),initialize:function(){p.a.prototype.initialize.apply(this,arguments);var e=u.a("appModel"),t=e.get("user");this.collection=t.get("desktop").get("friends").filterByUnrestricted(),this.playlistIDs=[]},serializeData:function(){return{hasFriends:!!this.collection.length}},onRender:function(){p.a.prototype.onRender.apply(this,arguments),this.list.show(new h.a({collection:this.collection}))},
onClose:function(){this.collection.destroy()},onFriendClick:function(e){e.preventDefault();var t=s()(e.currentTarget),n=t.data("id");t.hasClass("selected")?this.playlistIDs.splice(l.a.indexOf(this.playlistIDs,n),1):this.playlistIDs.push(n),t.toggleClass("selected"),this.playlistIDs.length?(this.ui.sendBtn.removeClass("disabled"),this.ui.messageContainer.removeClass("invisible")):(this.ui.sendBtn.addClass("disabled"),this.ui.messageContainer.addClass("invisible"))},onFriendsClick:function(e){
this.hide()},onSendClick:function(e){e.preventDefault();var t=this.ui.sendBtn;if(!t.isDisabled()){t.addClass("active");var n={item:this.model,playlistIDs:this.playlistIDs,message:this.ui.message.val()},i=c.a.execute("recommend",n);i.done(l.a.bind(this.onSendSuccess,this)),i.fail(l.a.bind(this.onSendError,this))}},onSendSuccess:function(){this.hide()},onSendError:function(){this.ui.sendBtn.removeClass("active")}});t.a=f},function(e,t,n){"use strict"
;var i=n(3163),a=n.n(i),r=n(10),s=n.n(r),o=n(3),l=n.n(o),u=n(13),c=n(28),d=n(62),p=n(299),h=p.a.extend({name:"shareModal",className:"share-modal select-modal modal modal-sm fade",template:a.a,linkedNetworks:null,networkIDs:null,maxLength:null,ui:{shareBtn:".share-btn",messageContainer:".message-container",charactersRemaining:".characters-remaining",message:".message"},events:l.a.extend({"click .network":"onNetworkClick","keyup .message":"onMessageKeyUp","click .share-btn":"onShareClick"
},d.a.prototype.events),initialize:function(){p.a.prototype.initialize.apply(this,arguments);var e=u.a("appModel");this.user=e.get("user"),this.socialNetworks=this.user.get("desktop").get("socialNetworks"),this.linkedNetworks=this.socialNetworks.where({linked:!0}),this.autoSelect=1===this.linkedNetworks.length,this.networkIDs=[]},serializeData:function(){for(var e=[],t=0,n=this.linkedNetworks.length;t<n;t++)e.push(this.linkedNetworks[t].toJSON());return{networks:e,
accountUrl:this.user.server.get("accountUrl"),autoSelect:this.autoSelect}},calculateMaxLength:function(){var e=null,t=this.socialNetworks;l.a.each(this.networkIDs,function(n){var i=t.get(n),a=i.get("maxLength")||null;(null===e||e>a)&&(e=a)}),this.maxLength=e,this.calculateCharactersRemaining()},calculateCharactersRemaining:function(){var e=this.ui.message.val(),t=this.maxLength-e.length;if(null===this.maxLength)return void this.ui.charactersRemaining.addClass("hidden")
;t<0?(this.ui.charactersRemaining.addClass("error").removeClass("hidden"),this.ui.shareBtn.addClass("disabled")):(this.ui.charactersRemaining.removeClass("error hidden"),this.ui.shareBtn.removeClass("disabled")),this.ui.charactersRemaining.text(this.maxLength-e.length)},onRender:function(){p.a.prototype.onRender.apply(this,arguments),this.autoSelect&&(this.networkIDs.push(this.linkedNetworks[0].id),this.calculateMaxLength())},onNetworkClick:function(e){e.preventDefault()
;var t=s()(e.currentTarget),n=t.data("id");t.hasClass("selected")?this.networkIDs.splice(l.a.indexOf(this.networkIDs,n),1):this.networkIDs.push(n),t.toggleClass("selected"),this.networkIDs.length?(this.ui.shareBtn.removeClass("disabled"),this.ui.messageContainer.removeClass("invisible")):(this.ui.shareBtn.addClass("disabled"),this.ui.messageContainer.addClass("invisible")),this.calculateMaxLength()},onMessageKeyUp:function(e){this.calculateCharactersRemaining()},onShareClick:function(e){
e.preventDefault();var t=this.ui.shareBtn;if(!t.isDisabled()){t.addClass("active");var n={item:this.model,networkIDs:this.networkIDs,message:this.ui.message.val()},i=c.a.execute("share",n);i.done(l.a.bind(this.onShareSuccess,this)),i.fail(l.a.bind(this.onShareError,this))}},onShareSuccess:function(){this.hide()},onShareError:function(){this.ui.shareBtn.removeClass("active")}});t.a=h},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.kind,i=e.size,a=e.direction,s=e.isSelected
;return r()("div",{className:(t||"")+" "+(u.a[a]||"")+" "+(u.a[n]||"")+" "+(u.a[i]||"")+" "+(s&&u.a.isSelected||"")})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(20)),l=n(2688),u=n.n(l);i.defaultProps={className:u.a.disclosureArrow,direction:o.f.DOWN,kind:o.b.DEFAULT,size:o.d.MEDIUM,isSelected:!1},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.children,n=r()(e,["children"]);return o.a.createElement("div",n,t)}var a=n(14),r=n.n(a),s=n(0),o=n.n(s),l=n(2689),u=n.n(l);i.defaultProps={
className:u.a.dragLayer},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.circleClassName,a=e.iconClassName,s=e.title,l=u()(e,["className","circleClassName","iconClassName","title"]);return d.a.createElement(h.a,r()({className:t,"aria-label":n.i(p.default)("Record {title}",{title:s})},l),o()(f.a,{circleClassName:i,iconClassName:a}))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(4),h=n(23),f=n(944),v=n(2704),m=n.n(v);i.defaultProps={
className:m.a.recordButton},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.formGroupClassName,n=e.labelText,i=e.checkboxText,a=e.helpText,s=e.showErrors,l=e.errors,c=u()(e,["formGroupClassName","labelText","checkboxText","helpText","showErrors","errors"]),p=l[0];return o()(h.a,{className:t},void 0,n&&o()(f.a,{},void 0,n),d.a.createElement(m.a,r()({hasError:s,checkboxText:o()("span",{},void 0,i,s&&p&&" \u2014 "+p)},c)),a&&o()(v.a,{},void 0,a))}
var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(157),h=n(214),f=n(126),v=n(442),m=n(367);i.defaultProps={showErrors:!1,errors:[]},t.a=n.i(p.a)(i)},function(e,t,n){"use strict";function i(e){var t=e.formGroupClassName,n=e.formLabelClassName,i=e.name,a=e.labelText,s=e.helpText,l=e.showErrors,c=e.errors,p=e.children,g=u()(e,["formGroupClassName","formLabelClassName","name","labelText","helpText","showErrors","errors","children"]);return o()(h.a,{className:t
},void 0,p,o()(f.a,{className:n,showErrors:l,errors:c,name:i,labelText:a}),d.a.createElement(m.a,r()({name:i,hasError:l},g)),s&&o()(v.a,{},void 0,s))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(157),h=n(214),f=n(443),v=n(442),m=n(167);t.a=n.i(p.a)(i)},function(e,t,n){"use strict";function i(e){return o.a.createElement(l.a,r()({},e,{barColor:c.a.equalizerBarColor}))}var a=n(6),r=n.n(a),s=n(0),o=n.n(s),l=n(1519),u=n(1063),c=n.n(u);t.a=i},function(e,t,n){"use strict"
;function i(e){var t=e.transitionProps,n=o()(e,["transitionProps"]);return u.a.createElement(d.a,r()({style:f,background:!0,minSize:!0,transition:!0,transitionProps:r()({className:h.a.imageContainer},c.a,t)},n))}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(311),d=n(155),p=n(2727),h=n.n(p),f={width:"100%",height:"100%"};t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.iconClassName,n=e.messageClassName,i=e.kind,a=e.message,s=o()(e,["iconClassName","messageClassName","kind","message"]);return u.a.createElement(p.a,s,r()(d.a,{name:"plex-icon-alert-560",className:(f.a[i]||"")+" "+(t||"")}),r()("div",{className:n},void 0,a))}var a=n(2),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(20),d=n(27),p=n(948),h=n(2741),f=n.n(h);i.defaultProps={iconClassName:f.a.icon,messageClassName:f.a.message,kind:c.b.DEFAULT},t.a=i},function(e,t,n){"use strict";function i(e){
return o.a.createElement(l.a,r()({className:c.a.toolbarMenu},e))}var a=n(6),r=n.n(a),s=n(0),o=n.n(s),l=n(68),u=n(2746),c=n.n(u);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.serverEntityID,i=e.model,a=e.thumb,s=e.width,l=e.height,c=void 0;switch(i){case"HDHomeRun CONNECT":c=u.a;break;case"HDHomeRun EXPAND":c=d.a;break;case"HDHomeRun EXTEND":c=h.a;break;case"HDHomeRun PRIME":c=v.a}var p={width:s,height:l};return r()(o.a,{serverEntityID:n,className:t,style:p,url:a,
src:a?void 0:c,background:!0,width:s,height:l,minSize:!0})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(155)),l=n(3482),u=n.n(l),c=n(3483),d=n.n(c),p=n(3484),h=n.n(p),f=n(3485),v=n.n(f),m=n(2752),g=n.n(m);i.defaultProps={className:g.a.image},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.style;return r()("div",{className:t,style:i},void 0,n.i(o.default)("Powered by {provider}",{provider:"Gracenote\xae"}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(2758),u=n.n(l)
;i.defaultProps={className:u.a.attribution},t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(11)),h=n(4),f=n(20),v=n(101),m=n(47),g=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u];return n=i=l()(this,e.call.apply(e,[this].concat(o))),i.onPreviousStepPress=function(){i.props.dvrSetupPreviousStep({dvrID:i.props.dvrID})},a=n,l()(i,a)}return c()(t,e),
t.prototype.render=function(){return a()(m.a,{kind:f.b.DEFAULT,size:f.d.MEDIUM,onPress:this.onPreviousStepPress},void 0,n.i(h.default)("Previous"))},t}(d.Component);t.a=n.i(p.b)(null,{dvrSetupPreviousStep:v.h})(g)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(26)),h=n(2091),f={opacity:0,pointerEvents:"none"},v={opacity:1,pointerEvents:"auto"},m=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i))
;return a.onListReady=function(){++a._readyCount===a._initialCount&&a.setState({isReady:!0})},a.state={isReady:!1},a._readyCount=0,a}return c()(t,e),t.prototype.componentWillMount=function(){this._initialCount=this.props.hubEntityIDs.length},t.prototype.componentWillReceiveProps=function(e){var t=e.hubEntityIDs.length,n=this.props.hubEntityIDs.length;this.state.isReady||t===n||(this._initialCount=t,this._readyCount===t&&this.setState({isReady:!0}))},
t.prototype.shouldComponentUpdate=function(e,t){return n.i(p.a)(this,e,t)},t.prototype.render=function(){var e=this,t=this.props,n=t.className,i=t.serverEntityID,r=t.providerEntityID,s=t.hubEntityIDs,o=t.columnAdjustment,l=this.state.isReady;return a()("div",{className:n,style:l?v:f},void 0,s.map(function(t){return a()(h.a,{serverEntityID:i,providerEntityID:r,hubEntityID:t,columnAdjustment:o,onListReady:e.onListReady},t)}))},t}(d.Component);t.a=m},function(e,t,n){"use strict";function i(){
return n.i(v.createSelector)(n.i(m.a)(),M.a,C.a,g.a,n.i(w.a)(),n.i(y.a)(),n.i(b.a)(),n.i(S.a)(),n.i(I.a)(),n.i(D.a)(),function(e){return e.ui.audioVideoPlayer.isPaused},P.a,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],i=arguments[2],a=arguments[3],r=arguments[4],s=arguments[5],o=arguments[6],l=arguments[7],u=arguments[8],c=arguments[9],d=arguments[10],p=arguments[11];return{activeTableColumns:r,metadataKey:e.key,type:s,title:e.title,
selectionID:e.entityID,selectionType:l,activeSelectionType:p.activeSelectionType,isSelected:u,isPlaying:c,isPlayerPaused:d,route:o,showLink:!!o,showPlay:n.i(A.a)(t,i,a,e),showEdit:n.i(A.b)(t,i,a,e),showSelect:n.i(A.c)(t,i,a,e),showMore:!e.isFolder}})}function a(e,t){var i=t.serverEntityID,a=t.providerEntityID,r=t.metadataListEntityID,s=t.metadataItemEntityID,o=t.containerKey,l=t.listType,u=t.metricsPage;return{onPlayPress:function(){e(n.i(x.c)({serverEntityID:i,providerEntityID:a,
metadataItemEntityID:s,metricsPage:u,options:{containerKey:o,listType:l}}))},onEditPress:function(){e(n.i(E.editMetadataItem)({serverEntityID:i,providerEntityID:a,metadataItemEntityID:s,metricsPage:u}))},onSelectItem:function(t){e(n.i(T.a)(p()({metadataListEntityID:r,id:s},t)))},onDeselectItem:function(t){e(n.i(T.b)(p()({metadataListEntityID:r},t)))},onDeselectAllItems:function(){e(n.i(T.e)({metadataListEntityID:r}))}}}
var r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(6),p=n.n(d),h=n(0),f=n.n(h),v=n(5),m=(n.n(v),n(21)),g=n(180),y=n(591),b=n(429),S=n(431),I=n(430),M=n(45),C=n(43),w=n(914),D=n(916),P=n(83),T=n(125),x=n(58),E=n(140),N=n(464),L=n(310),A=n(220),k=n(138),_=n(2107),O=n(2106),j=n.i(N.a)(O.a),R=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u];return n=i=l()(this,e.call.apply(e,[this].concat(o))),i.onSelectItem=function(e){
i._isDoubleClick()?i._doubleClick():(i._firstClickTime=Date.now(),i.props.onSelectItem(e))},i.onDeselectItem=function(e){i._isDoubleClick()?i._doubleClick():(i._firstClickTime=Date.now(),i.props.onDeselectItem(e))},a=n,l()(i,a)}return c()(t,e),t.prototype._isDoubleClick=function(){return this._firstClickTime&&Date.now()-this._firstClickTime<300},t.prototype._doubleClick=function(){var e=this.props,t=e.selectionType,n=e.showPlay,i=e.onPlayPress,a=e.onSelectItem,r=e.onDeselectAllItems
;this._firstClickTime=0,r(),a({type:t}),n&&i()},t.prototype.render=function(){return this.props.metadataKey?this.props.showSelect?f.a.createElement(j,p()({},this.props,{onSelectItem:this.onSelectItem,onDeselectItem:this.onDeselectItem})):f.a.createElement(O.a,this.props):f.a.createElement(_.a,this.props)},t}(h.Component);t.a=n.i(k.a)(i,a,L.a)(R)},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.selectedListStyle,a=e.allListStyles;return n.i(o.f)(a,i)?r()(l.a,{className:t}):null}
var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(77)),l=n(643),u=n(2788),c=n.n(u);i.defaultProps={className:c.a.divider,selectedListStyle:o.e,allListStyles:[o.e]},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.type;return n.i(o.c)(i)?r()(l.a,{className:t,name:"plex-icon-dvr-series-560"}):r()(l.a,{className:t,name:"plex-icon-dvr-single-560"})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(30)),l=n(27);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.imageWidth,n=e.imageHeight,i=e.imageUrl,a=o()(e,["imageWidth","imageHeight","imageUrl"]);return u.a.createElement(c.a,r()({className:h.a.card,component:d.a,width:t,height:n,url:i},a))}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(301),d=n(2136),p=n(2806),h=n.n(p);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.grandparentTitle;return r()(o.a,{className:t,title:n})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(452));t.a=i},function(e,t,n){"use strict"
;function i(){return n.i(r.createSelector)(n.i(s.a)(),function(){return{title:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).title}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(452);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(e,t){return n.i(r.createSelector)(n.i(s.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{rating:e.rating,ratingImage:e.ratingImage,audienceRating:e.audienceRating,audienceRatingImage:e.audienceRatingImage}})}
var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(2154);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(){return{addedAt:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).addedAt}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(2158);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.duration;return i?r()("span",{className:t},void 0,n.i(o.a)(i)):null}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(273));t.a=i
},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.leafCount,a=void 0;return null!=i&&(a=1===i?n.i(o.default)("{episodeCount} episode",{episodeCount:i}):n.i(o.default)("{episodeCount} episodes",{episodeCount:i})),r()("span",{className:t},void 0,a)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4));t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(){return{leafCount:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).leafCount}})}
var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(627);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.tabIndex,i=e.title,a=e.index,s=e.route,o=e.parentTitle,d=e.parentIndex,p=e.parentRoute,h=e.originallyAvailableAt;return r()("span",{className:t},void 0,r()(u.a,{tabIndex:n,title:i,index:a,route:s,parentTitle:o,parentIndex:d,parentRoute:p,originallyAvailableAt:h}),i&&c,i&&r()(l.a,{tabIndex:n,title:i,route:s}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),
n(84)),l=n(373),u=n(983),c=r()(o.a,{});t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.index;return r()("span",{className:t},void 0,n)}var a=n(2),r=n.n(a),s=n(0);n.n(s);t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),n.i(o.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return{title:e.title,route:t}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(429),l=n(373);t.a=n.i(a.b)(i)(l.a)
},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.duration,a=e.viewOffset,s=void 0;if(i&&a){var l=(i-a)/1e3;l&&(s=n.i(o.a)(l))}return r()("span",{className:t},void 0,s)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(274));t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{skipChildren:e.skipChildren,childCount:e.childCount,leafCount:e.leafCount}})}
var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(2173);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(s.a,o.a,n.i(l.a)(),function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{parentTitle:i.parentTitle,parentRoute:n.i(u.a)(e,t,i.parentKey),grandparentTitle:i.grandparentTitle,grandparentRoute:n.i(u.a)(e,t,i.grandparentKey)}})}var a=n(11),r=n(5),s=(n.n(r),n(45)),o=n(43),l=n(21),u=n(118),c=n(2177);t.a=n.i(a.b)(i)(c.a)
},function(e,t,n){"use strict";function i(e){var t=e.audioStream;if(!t)return r()("span",{},void 0,n.i(o.default)("None"));var i=[];return t.codec&&i.push(n.i(l.a)(t.codec)),t.channels&&i.push(n.i(u.a)(t.channels)),r()("span",{},void 0,t.language||n.i(o.default)("Unknown"),!!i.length&&d,i.join(" "))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(832),u=n(555),c=n(84),d=r()(c.a,{});t.a=i},function(e,t,n){"use strict";function i(e){var t=e.subtitlesStream
;if(!t)return r()("span",{},void 0,n.i(o.default)("None"));var i=[];return t.codec&&i.push(n.i(l.a)(t.codec)),t.key&&i.push(n.i(o.default)("External")),t.forced&&i.push(n.i(o.default)("Forced")),r()("span",{},void 0,r()("span",{},void 0,t.language||n.i(o.default)("Unknown"),!!i.length&&c,i.join(" ")))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(348),u=n(84),c=r()(u.a,{});t.a=i},function(e,t,n){"use strict";function i(){return n.i(o.createSelector)(function(e,t){return t.listType
},d.a,p.a,c.a,n.i(u.a)(),function(e,t,i,a,r){return n.i(g.a)(t,i,a,r,e)})}function a(e,t){var n={serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataListEntityID:t.metadataListEntityID,listType:t.listType,metricsPage:t.metricsPage,metricsProperties:{context:l.f}};return{onPlayAllPress:function(){e(h.c(n))},onShufflePress:function(){e(h.f(n))},onPlayNextPress:function(){e(h.b(s()({},n,{options:{playAll:!0,next:!0}})))},onAddToQueuePress:function(){e(h.b(s()({},n,{options:{
playAll:!0,next:!1}})))},onAddToPlaylistPress:function(){var i=t.isLibraryList,a=t.selectedType,r=void 0===a?{}:a;e(f.h(s()({},n,{options:{smart:i,type:r.type}})))},onSyncPress:function(){e(f.i(n))},onOptimizePress:function(){e(f.j(n))}}}var r=n(6),s=n.n(r),o=n(5),l=(n.n(o),n(89)),u=n(149),c=n(151),d=n(45),p=n(43),h=n(58),f=n(125),v=n(138),m=n(310),g=n(2557),y=n(2184);t.a=n.i(v.a)(i,a,m.a)(y.a)},function(e,t,n){"use strict";function i(e){return u.a.createElement(p.a,o()({
tooltip:n.i(c.default)("Add to Album")},e),h)}var a=n(2),r=n.n(a),s=n(6),o=n.n(s),l=n(0),u=n.n(l),c=n(4),d=n(27),p=n(129),h=r()(d.a,{name:"plex-icon-toolbar-add-to-album-560"});t.a=i},function(e,t,n){"use strict";function i(e){return u.a.createElement(p.a,o()({tooltip:n.i(c.default)("Add to Playlist")},e),h)}var a=n(2),r=n.n(a),s=n(6),o=n.n(s),l=n(0),u=n.n(l),c=n(4),d=n(27),p=n(129),h=r()(d.a,{name:"plex-icon-toolbar-add-to-playlist-560"});t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.playLabel,i=void 0===t?n.i(p.default)("Play"):t,a=u()(e,["playLabel"]);return d.a.createElement(f.a,o()({tooltip:i},a),v)}var a=n(2),r=n.n(a),s=n(6),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(4),h=n(27),f=n(129),v=r()(h.a,{name:"plex-icon-toolbar-play-560"});t.a=i},function(e,t,n){"use strict";function i(e){return u.a.createElement(p.a,o()({tooltip:n.i(c.default)("Shuffle")},e),h)}var a=n(2),r=n.n(a),s=n(6),o=n.n(s),l=n(0),u=n.n(l),c=n(4),d=n(27),p=n(129),h=r()(d.a,{
name:"plex-icon-toolbar-shuffle-560"});t.a=i},function(e,t,n){"use strict";function i(e){return u.a.createElement(p.a,o()({tooltip:n.i(c.default)("Sync")},e),h)}var a=n(2),r=n.n(a),s=n(6),o=n.n(s),l=n(0),u=n.n(l),c=n(4),d=n(27),p=n(129),h=r()(d.a,{name:"plex-icon-toolbar-sync-560"});t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className;return r()("div",{className:t})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2821)),l=n.n(o);i.defaultProps={className:l.a.pageHeaderDivider},t.a=i
},function(e,t,n){"use strict";function i(e){var t=e.className,n=o()(e,["className"]);return u.a.createElement(c.a,r()({className:t},n))}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(84),d=n(2824),p=n.n(d);i.defaultProps={className:p.a.pageHeaderSeparator},t.a=i},function(e,t,n){"use strict";function i(e){return o.a.createElement(l.a,r()({iconClassName:c.a.icon,icon:"plex-icon-alert-560"},e))}var a=n(6),r=n.n(a),s=n(0),o=n.n(s),l=n(170),u=n(2834),c=n.n(u);t.a=i},function(e,t,n){
"use strict";function i(e,t){return e.filter(function(e){return!!t[e]})}function a(e,t,n,i){var a=Math.floor(n/i),r={showOverflow:a<e.length||t.length>0},s=a-(r.showOverflow?1:0);return e.forEach(function(e){r[e]=s-- >0,r[e]||(r[e+"Overflow"]=!0)}),r}function r(e,t,r){var s=function(n){function s(e,t){d()(this,s);var i=h()(this,n.call(this,e,t));return i.onMeasure=function(e){var t=e.width;i.setState({isMeasured:!0,width:t})},i.state={isMeasured:!1},i}return v()(s,n),
s.prototype.render=function(){var n=this.state,s=n.isMeasured,l=n.width,c={};if(s){c=a(i(t,this.props),i(r,this.props),l,w)}return u()(I.a,{className:C.a.toolbarContainer,ignoreHeight:!0,ignorePosition:!0,onMeasure:this.onMeasure},void 0,s&&g.a.createElement(e,o()({className:C.a.toolbar},this.props,c)))},s}(m.Component);return s.displayName="PageHeaderToolbar("+n.i(y.a)(e)+")",s.WrappedComponent=e,s}
var s=n(6),o=n.n(s),l=n(2),u=n.n(l),c=n(7),d=n.n(c),p=n(9),h=n.n(p),f=n(8),v=n.n(f),m=n(0),g=n.n(m),y=n(211),b=n(57),S=n.n(b),I=n(73),M=n(2850),C=n.n(M),w=parseInt(S.a.toolbarButtonWidth,10);t.a=r},function(e,t,n){"use strict";function i(e){var t=e.server,n=e.provider,i=e.librarySectionKey,a=e.type,s=e.Genre;return r()(o.a,{server:t,provider:n,librarySectionKey:i,fallbackFilterKey:"genre",type:a,tags:s,limit:2})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(106),n(105),n(648));t.a=i},function(e,t,n){
"use strict";function i(e){var t=e.className,i=e.linkClassName,a=e.server,s=e.provider,c=e.librarySectionKey,d=e.fallbackFilterKey,p=e.type,h=e.tags,f=e.limit;if(!h||!h.length)return null;var v=p&&n.i(o.b)(p);return r()("span",{className:t},void 0,h.map(function(e,t){if(!(t>=f)){var o={filters:e.filter,filterLabel:e.tag};return!o.filter&&d&&e.id&&(o.filters=d+"="+e.id),v&&(o.type=v.id),r()("span",{},t,r()(u.a,{className:i,to:n.i(l.a)(a,s,c,o)},void 0,e.tag),t+1<f&&t+1<h.length&&", ")}}))}
var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(30)),l=(n(106),n(105),n(96)),u=n(23),c=n(2864),d=n.n(c);i.defaultProps={linkClassName:d.a.tagsListLink,limit:1/0},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.className;return r()("div",{className:n},void 0,t)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2865)),l=n.n(o);i.defaultProps={className:l.a.group},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.posterTop,n=e.pageHeight,i=t+n-2*p-f*h;return r()(d.a,{style:{
position:"fixed",top:i}})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(57)),l=n.n(o),u=n(2561),c=n.n(u),d=n(615),p=parseInt(l.a.pagePadding,10),h=parseInt(c.a.defaultFontSize,10),f=parseFloat(c.a.lineHeightComputed,10);t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),n.i(o.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=t.metadataItems.length,i=1===n&&!!e.primaryExtraKey;return{
metadataItemEntityIDs:t.metadataItems,containerKey:t.containerKey,size:i?0:n,populatedRange:t.populatedRange}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(149),l=n(2302);t.a=n.i(a.b)(i)(l.a)},function(e,t,n){"use strict";function i(){return r()(o.a,{className:u.a.bottomDivider})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(130)),l=n(2877),u=n.n(l);t.a=i},function(e,t,n){"use strict";var i=n(7),a=n.n(i),r=n(9),s=n.n(r),o=n(8),l=n.n(o),u=n(0),c=n.n(u),d=function(e){function t(n,i){a()(this,t)
;var r=s()(this,e.call(this,n,i));return r.onListContainerRef=function(e){r._setOffsetTop(e)},r._hasOffsetChanged=!1,r.state={listOffsetTop:null},r}return l()(t,e),t.prototype.componentWillUpdate=function(e){this._hasOffsetChanged=e.showArtwork!==this.props.showArtwork||e.contentHeight!==this.props.contentHeight},t.prototype._setOffsetTop=function(e){e&&e.offsetTop!==this.state.listOffsetTop&&this.setState({listOffsetTop:e.offsetTop})},t.prototype.render=function(){
var e=this.props,t=e.children,n=e.scrollTop,i=this.state.listOffsetTop,a=c.a.Children.only(t);return c.a.createElement("div",{ref:this._hasOffsetChanged?this._setOffsetTop.bind(this):this.onListContainerRef},null!=i&&c.a.cloneElement(a,{scrollTop:n-i}))},t}(u.Component);t.a=d},function(e,t,n){"use strict";function i(){return r()(o.a,{className:u.a.topDivider})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(130)),l=n(2878),u=n.n(l);t.a=i},function(e,t,n){"use strict";function i(e,t){
return n.i(s.createSelector)(function(e){return e.ui.playlistPage},n.i(o.a)(),function(e,t){return{metadataKey:t.key,metadataItemEntityID:t.entityID}})}function a(e,t){var n=t.playlistItemEntityID;return{onRemovePress:function(){e(l.d({playlistItemEntityID:n}))}}}var r=n(11),s=n(5),o=(n.n(s),n(786)),l=n(357),u=n(2328),c=n.i(r.b)(i,a)(u.a);t.a=c},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.className;return r()("div",{className:n},void 0,t)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),
n(2922)),l=n.n(o);i.defaultProps={className:l.a.actionLinks},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children;return r()("div",{className:t},void 0,n)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2923)),l=n.n(o);i.defaultProps={className:l.a.sectionDetails},t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(n.i(o.a)(),n.i(s.a)(),function(e,t){var n=e.serverEntityID,i=e.durationSeconds,a=e.mediaIndex,r=e.partIndex,s=e.controllable,o={
serverEntityID:n,metadataItemEntityID:t.metadataItem,canSeek:!!i,durationMilliseconds:1e3*i,mediaIndex:a,partIndex:r};return s&&!s.seekTo&&(o.canSeek=!1),o})}var a=n(5),r=(n.n(a),n(11)),s=n(85),o=n(42),l=n(122),u=n(1035),c={onSeek:l.p};t.a=n.i(r.b)(i,c)(u.a)},function(e,t,n){"use strict";function i(e){var t=e.title,n=e.children;return r()("div",{role:"navigation"},void 0,r()("div",{className:l.a.sidebarListHeader,role:"header"},void 0,t),n)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2998)),l=n.n(o)
;t.a=i},function(e,t,n){"use strict";function i(e,t){var i=t.isUpdatingPropName,a=t.errorPropName,s=t.clearDirtyOnChangePropName,l=function(t){function n(e,i){o()(this,n);var a=u()(this,t.call(this,e,i));return a.onDirtyChange=function(){a.state.isDirty||a.setState({isDirty:!0})},a.state={isDirty:!1},a}return d()(n,t),n.prototype.componentWillReceiveProps=function(e){var t=!1;s&&(t=this.props[s]!==e[s]);var n=this.props[i]&&!e[i]&&null===e[a];this.state.isDirty&&(t||n)&&this.setState({isDirty:!1
})},n.prototype.render=function(){return h.a.createElement(e,r()({isDirty:this.state.isDirty,onDirtyChange:this.onDirtyChange},this.props))},n}(p.Component);return l.displayName="DirtyAware("+n.i(f.a)(e)+")",l.WrappedComponent=e,l}var a=n(6),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=n.n(p),f=(n(31),n(211));t.a=i},function(e,t,n){"use strict";var i=n(264),a=(n.n(i),n(491)),r=n.n(a);t.a=n.i(i.DragDropContext)(r.a)},function(e,t,n){"use strict"
;var i=n(466),a=n(57),r=n.n(a),s=parseInt(r.a.tableRowHeight,10),o=n.i(i.a)(s);t.a=o},function(e,t,n){"use strict";function i(e,t,i,r){if(i){var s=n.i(a.a)(i,t,r);if(1===s.length)return s[0];var o=void 0;return e[t]&&(o=e[t][i]),o&&s.indexOf(o)>-1?o:s[0]}}var a=n(467);t.a=i},function(e,t,n){"use strict";var i=n(0);n.n(i),i.PropTypes.shape({url:i.PropTypes.string.isRequired})},function(e,t,n){"use strict";function i(e,t,n){
var i=n.key,s=n.title,o=n.type,l=encodeURIComponent(e),u=encodeURIComponent(t),c=t===r.a.LIBRARY_PROVIDER_IDENTIFIER?"server/"+l:"server/"+l+"/provider/"+u;return a.join(["#!",c,"list"],{key:i,type:o,title:s})}var a=n(19),r=n(72);t.a=i},function(e,t,n){"use strict";function i(e,t,n,i){if(e&&t&&t.isLibraryProvider){var a={},o=encodeURIComponent(e.machineIdentifier);if(n){var l="/"===String(n).charAt(0);a.key=l?n:"/library/sections/"+n}return s.join("#!/server/"+o+"/playlists",r()({},a,i))}}
var a=n(6),r=n.n(a),s=n(19);t.a=i},function(e,t,n){e.exports={default:n(2586),__esModule:!0}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t,n){var i=n(379),a=n(2606),r=n(668),s=n(674)("IE_PROTO"),o=function(){},l=function(){var e,t=n(1067)("iframe"),i=r.length;for(t.style.display="none",n(2598).appendChild(t),t.src="javascript:",
e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;i--;)delete l.prototype[r[i]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(o.prototype=i(e),n=new o,o.prototype=null,n[s]=e):n=l(),void 0===t?n:a(n,t)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var i=n(315).f,a=n(260),r=n(317)("toStringTag");e.exports=function(e,t,n){e&&!a(e=n?e:e.prototype,r)&&i(e,r,{configurable:!0,value:t})}},function(e,t,n){
var i=n(675)("keys"),a=n(474);e.exports=function(e){return i[e]||(i[e]=a(e))}},function(e,t,n){var i=n(163),a=i["__core-js_shared__"]||(i["__core-js_shared__"]={});e.exports=function(e){return a[e]||(a[e]={})}},function(e,t){e.exports="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){var i=n(314)
;e.exports=function(e,t){if(!i(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!i(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!i(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!i(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var i=n(163),a=n(119),r=n(670),s=n(680),o=n(315).f;e.exports=function(e){var t=a.Symbol||(a.Symbol=r?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||o(t,e,{value:s.f(e)})}
},function(e,t,n){t.f=n(317)},,,,,,,,,function(e,t,n){"use strict";function i(e){return Boolean(e&&"function"==typeof e.dispose)}t.__esModule=!0,t.default=i,e.exports=t.default},function(e,t){function n(e,t,n){"use strict";function i(e){var t=e.localName;return null==t&&(t=e.baseName),null!=t&&""!=t||(t=e.nodeName),t}function a(r){var s,o,l;if(r.nodeType==g.DOCUMENT_NODE){var u,c;for(o=r.firstChild,u=0,c=r.childNodes.length;u<c;u+=1)if(r.childNodes[u].nodeType!==g.COMMENT_NODE){o=r.childNodes[u]
;break}return n?s=a(o):(s={},l=i(o),s[l]=a(o)),s}if(r.nodeType==g.ELEMENT_NODE){var d=0,p=r.childNodes;s=new Object;for(var h=0;h<p.length;h++)if(o=p.item(h),l=i(o),d++,null==s[l])s[l]=a(o);else{if(null!=s[l]&&!(s[l]instanceof Array)){var f=s[l];s[l]=[],s[l].push(f)}for(var v=0;null!=s[l][v];)v++;s[l][v]=a(o)}for(var m=0;m<r.attributes.length;m++){var y=r.attributes.item(m);d++;for(var b=y.value,S=0,I=e.length;S<I;S++){var M=e[S];M.test.call(this,y.value)&&(b=M.converter.call(this,y.value))}
s[t+y.name]=b}if(null!=s["#text"]){var C=s["#text"];"string"==typeof C?(C=C.replace(/[\r\n]/g,""),s["#text"]=C,1==d&&(s=C)):delete s["#text"]}return s}return r.nodeType==g.TEXT_NODE||r.nodeType==g.CDATA_SECTION_NODE?r.nodeValue:r.nodeType==g.COMMENT_NODE?null:void 0}function r(e){return"string"==typeof e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;"):e}function s(e){var t=""
;return null!=e.__cdata&&(t+="<![CDATA["+e.__cdata+"]]>"),null!=e.__text&&(t+=m?r(e.__text):e.__text),t}function o(e){var t="";return e instanceof Object?t+=s(e):null!=e&&(t+=m?r(e):e),t}function l(e,t){return e.indexOf(t,e.length-t.length)!==-1}function u(e,t){return!!(l(t.toString(),"_asArray")||0==t.toString().indexOf("_")||e[t]instanceof Function)}function c(e){var t=0;if(e instanceof Object)for(var n in e)u(e,n)||t++;return t}function d(e){var t=[];if(e instanceof Object)for(var n in e){
var i=n.toString(),a=i.charAt(0);n.indexOf("__")==-1&&("_"===a||a===a.toLowerCase()&&a!==a.toUpperCase())&&t.push(n)}return t}function p(e,t,n){var i="";if(0==e.length)i+=h(e,t,n,!0);else for(var a=0;a<e.length;a++)i+=h(e[a],t,d(e[a]),!1),i+=v(e[a]),i+=f(e[a],t);return i}function h(e,t,n,i){var a="<"+(null!=e&&null!=e.__prefix?e.__prefix+":":"")+t;if(null!=n)for(var s=0;s<n.length;s++){var o=n[s],l=r(e[o]);a+=" "+o.substr(1)+"='"+l+"'"}return a+=i?"/>":">"}function f(e,t){
return"</"+(null!=e.__prefix?e.__prefix+":":"")+t+">"}function v(e){var t="";if(c(e)>0)for(var n in e)if(!u(e,n)){var i=e[n],a=d(i);if(null==i||void 0==i)t+=h(i,n,a,!0);else if(i instanceof Object)if(i instanceof Array)t+=p(i,n,a);else{var r=c(i);r>0||null!=i.__text||null!=i.__cdata?(t+=h(i,n,a,!1),t+=v(i),t+=f(i,n)):t+=h(i,n,a,!0)}else t+=h(i,n,a,!1),t+=o(i),t+=f(i,n)}return t+=o(e)}null!==t&&void 0!==t||(t="_"),null!==n&&void 0!==n||(n=!1);var m=!1,g={ELEMENT_NODE:1,TEXT_NODE:3,
CDATA_SECTION_NODE:4,COMMENT_NODE:8,DOCUMENT_NODE:9};this.parseXmlString=function(e){var t;if(window.DOMParser){t=(new window.DOMParser).parseFromString(e,"text/xml")}else 0==e.indexOf("<?")&&(e=e.substr(e.indexOf("?>")+2)),t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e);return t},this.xml2json=function(e){return a(e.documentElement||e)},this.xml_str2json=function(e){var t=this.parseXmlString(e);return this.xml2json(t.documentElement||t)},this.getVersion=function(){
return"1.0.11"},this.escapeMode=function(e){m=e},this.json2xml_str=function(e){return v(e)}}e.exports=n},,function(e,t,n){"use strict";function i(e,t){this.helpers=e||{},this.partials=t||{},a(this)}function a(e){e.registerHelper("helperMissing",function(e){if(2!==arguments.length)throw new o("Missing helper: '"+e+"'")}),e.registerHelper("blockHelperMissing",function(t,n){var i=n.inverse||function(){},a=n.fn;return c(t)&&(t=t.call(this)),
t===!0?a(this):t===!1||null==t?i(this):u(t)?t.length>0?e.helpers.each(t,n):i(this):a(t)}),e.registerHelper("each",function(e,t){var n,i=t.fn,a=t.inverse,r=0,s="";if(c(e)&&(e=e.call(this)),t.data&&(n=h(t.data)),e&&"object"==typeof e)if(u(e))for(var o=e.length;r<o;r++)n&&(n.index=r,n.first=0===r,n.last=r===e.length-1),s+=i(e[r],{data:n});else for(var l in e)e.hasOwnProperty(l)&&(n&&(n.key=l,n.index=r,n.first=0===r),s+=i(e[l],{data:n}),r++);return 0===r&&(s=a(this)),s}),
e.registerHelper("if",function(e,t){return c(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||s.isEmpty(e)?t.inverse(this):t.fn(this)}),e.registerHelper("unless",function(t,n){return e.helpers.if.call(this,t,{fn:n.inverse,inverse:n.fn,hash:n.hash})}),e.registerHelper("with",function(e,t){if(c(e)&&(e=e.call(this)),!s.isEmpty(e))return t.fn(e)}),e.registerHelper("log",function(t,n){var i=n.data&&null!=n.data.level?parseInt(n.data.level,10):1;e.log(i,t)})}function r(e,t){p.log(e,t)}
var s=n(694),o=n(693).default;t.VERSION="1.3.0";t.COMPILER_REVISION=4;var l={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:">= 1.0.0"};t.REVISION_CHANGES=l;var u=s.isArray,c=s.isFunction,d=s.toString;t.HandlebarsEnvironment=i,i.prototype={constructor:i,logger:p,log:r,registerHelper:function(e,t,n){if("[object Object]"===d.call(e)){if(n||t)throw new o("Arg not supported with multiple helpers");s.extend(this.helpers,e)}else n&&(t.not=n),this.helpers[e]=t},registerPartial:function(e,t){
"[object Object]"===d.call(e)?s.extend(this.partials,e):this.partials[e]=t}};var p={methodMap:{0:"debug",1:"info",2:"warn",3:"error"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(e,t){if(p.level<=e){var n=p.methodMap[e];"undefined"!=typeof console&&console[n]&&console[n].call(console,t)}}};t.logger=p,t.log=r;var h=function(e){var t={};return s.extend(t,e),t};t.createFrame=h},function(e,t,n){"use strict";function i(e,t){var n;t&&t.firstLine&&(n=t.firstLine,e+=" - "+n+":"+t.firstColumn)
;for(var i=Error.prototype.constructor.call(this,e),r=0;r<a.length;r++)this[a[r]]=i[a[r]];n&&(this.lineNumber=n,this.column=t.firstColumn)}var a=["description","fileName","lineNumber","message","name","number","stack"];i.prototype=new Error,t.default=i},function(e,t,n){"use strict";function i(e){return l[e]||"&amp;"}function a(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}function r(e){return e instanceof o?e.toString():e||0===e?(e=""+e,c.test(e)?e.replace(u,i):e):""
}function s(e){return!e&&0!==e||!(!h(e)||0!==e.length)}var o=n(1106).default,l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},u=/[&<>"'`]/g,c=/[&<>"'`]/;t.extend=a;var d=Object.prototype.toString;t.toString=d;var p=function(e){return"function"==typeof e};p(/x/)&&(p=function(e){return"function"==typeof e&&"[object Function]"===d.call(e)});var p;t.isFunction=p;var h=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===d.call(e)};t.isArray=h,
t.escapeExpression=r,t.isEmpty=s},function(e,t,n){function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new a;++t<n;)this.add(e[t])}var a=n(1110),r=n(3310),s=n(3311);i.prototype.add=i.prototype.push=r,i.prototype.has=s,e.exports=i},function(e,t,n){var i=n(383),a=i.Symbol;e.exports=a},function(e,t,n){function i(e,t){return!!(null==e?0:e.length)&&a(e,t,0)>-1}var a=n(3266);e.exports=i},function(e,t){function n(e,t,n){for(var i=-1,a=null==e?0:e.length;++i<a;)if(n(t,e[i]))return!0;return!1}
e.exports=n},function(e,t){function n(e,t){for(var n=-1,i=null==e?0:e.length,a=Array(i);++n<i;)a[n]=t(e[n],n,e);return a}e.exports=n},function(e,t){function n(e){return function(t){return e(t)}}e.exports=n},function(e,t){function n(e,t){return e.has(t)}e.exports=n},function(e,t,n){function i(e){return null!=e&&r(e.length)&&!a(e)}var a=n(1122),r=n(1123);e.exports=i},function(e,t,n){var i=n(3332),a=n(3331);e.exports={stringify:i,parse:a}},function(e,t,n){"use strict";function i(e,t){
var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var i=Object.keys(e),r=Object.keys(t);if(i.length!==r.length)return!0;var s={},o=void 0,l=void 0;for(o=0,l=n.length;o<l;o++)s[n[o]]=!0;for(o=0,l=i.length;o<l;o++){var u=i[o],c=e[u],d=t[u];if(c!==d){if(!s[u]||null===c||null===d||"object"!==(void 0===c?"undefined":a(c))||"object"!==(void 0===d?"undefined":a(d)))return!0;var p=Object.keys(c),h=Object.keys(d);if(p.length!==h.length)return!0
;for(var f=0,v=p.length;f<v;f++){var m=p[f];if(c[m]!==d[m])return!0}}}return!1}Object.defineProperty(t,"__esModule",{value:!0});var a="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};t.default=i},function(e,t,n){"use strict";t.__esModule=!0;t.FILE="__NATIVE_FILE__";t.URL="__NATIVE_URL__";t.TEXT="__NATIVE_TEXT__"},function(e,t,n){"use strict"
;function i(e,t){if(e===t)return!0;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var a=Object.prototype.hasOwnProperty,r=0;r<n.length;r++){if(!a.call(t,n[r])||e[n[r]]!==t[n[r]])return!1;if(e[n[r]]!==t[n[r]])return!1}return!0}t.__esModule=!0,t.default=i,e.exports=t.default},,,,,,,,,,,,,,,,function(e,t,n){"use strict";function i(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}t.a=i},,,function(e,t,n){
"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.compose=t.applyMiddleware=t.bindActionCreators=t.combineReducers=t.createStore=void 0;var a=n(1175),r=i(a),s=n(3448),o=i(s),l=n(3447),u=i(l),c=n(3446),d=i(c),p=n(1174),h=i(p),f=n(1176);i(f);t.createStore=r.default,t.combineReducers=o.default,t.bindActionCreators=u.default,t.applyMiddleware=d.default,t.compose=h.default},,,,function(e,t,n){(function(i){var a,r,a,s,a,o,l;!function(i,s){a=s,
r="function"==typeof a?a.call(t,n,t,e):a}(0,function(){var e=function(e,t){this.items=e,this.settings=t||{diacritics:!0}};e.prototype.tokenize=function(e){if(!(e=a(String(e||"").toLowerCase()))||!e.length)return[];var t,n,i,s,l=[],u=e.split(/ +/);for(t=0,n=u.length;t<n;t++){if(i=r(u[t]),this.settings.diacritics)for(s in o)o.hasOwnProperty(s)&&(i=i.replace(new RegExp(s,"g"),o[s]));l.push({string:u[t],regex:new RegExp(i,"i")})}return l},e.prototype.iterator=function(e,t){var n
;n=s(e)?Array.prototype.forEach||function(e){for(var t=0,n=this.length;t<n;t++)e(this[t],t,this)}:function(e){for(var t in this)this.hasOwnProperty(t)&&e(this[t],t,this)},n.apply(e,[t])},e.prototype.getScoreFunction=function(e,t){var n,i,a,r;n=this,e=n.prepareSearch(e,t),a=e.tokens,i=e.options.fields,r=a.length;var s=function(e,t){var n,i;return e?(e=String(e||""),(i=e.search(t.regex))===-1?0:(n=t.string.length/e.length,0===i&&(n+=.5),n)):0},o=function(){var e=i.length
;return e?1===e?function(e,t){return s(t[i[0]],e)}:function(t,n){for(var a=0,r=0;a<e;a++)r+=s(n[i[a]],t);return r/e}:function(){return 0}}();return r?1===r?function(e){return o(a[0],e)}:"and"===e.options.conjunction?function(e){for(var t,n=0,i=0;n<r;n++){if((t=o(a[n],e))<=0)return 0;i+=t}return i/r}:function(e){for(var t=0,n=0;t<r;t++)n+=o(a[t],e);return n/r}:function(){return 0}},e.prototype.getSortFunction=function(e,n){var i,a,r,s,o,l,u,c,d,p,h;if(r=this,e=r.prepareSearch(e,n),
h=!e.query&&n.sort_empty||n.sort,d=function(e,t){return"$score"===e?t.score:r.items[t.id][e]},o=[],h)for(i=0,a=h.length;i<a;i++)(e.query||"$score"!==h[i].field)&&o.push(h[i]);if(e.query){for(p=!0,i=0,a=o.length;i<a;i++)if("$score"===o[i].field){p=!1;break}p&&o.unshift({field:"$score",direction:"desc"})}else for(i=0,a=o.length;i<a;i++)if("$score"===o[i].field){o.splice(i,1);break}for(c=[],i=0,a=o.length;i<a;i++)c.push("desc"===o[i].direction?-1:1);return l=o.length,l?1===l?(s=o[0].field,u=c[0],
function(e,n){return u*t(d(s,e),d(s,n))}):function(e,n){var i,a,r;for(i=0;i<l;i++)if(r=o[i].field,a=c[i]*t(d(r,e),d(r,n)))return a;return 0}:null},e.prototype.prepareSearch=function(e,t){if("object"==typeof e)return e;t=n({},t);var i=t.fields,a=t.sort,r=t.sort_empty;return i&&!s(i)&&(t.fields=[i]),a&&!s(a)&&(t.sort=[a]),r&&!s(r)&&(t.sort_empty=[r]),{options:t,query:String(e||"").toLowerCase(),tokens:this.tokenize(e),total:0,items:[]}},e.prototype.search=function(e,t){var n,i,a,r,s=this
;return i=this.prepareSearch(e,t),t=i.options,e=i.query,r=t.score||s.getScoreFunction(i),e.length?s.iterator(s.items,function(e,a){n=r(e),(t.filter===!1||n>0)&&i.items.push({score:n,id:a})}):s.iterator(s.items,function(e,t){i.items.push({score:1,id:t})}),a=s.getSortFunction(i,t),a&&i.items.sort(a),i.total=i.items.length,"number"==typeof t.limit&&(i.items=i.items.slice(0,t.limit)),i};var t=function(e,t){return"number"==typeof e&&"number"==typeof t?e>t?1:e<t?-1:0:(e=l(String(e||"")),
t=l(String(t||"")),e>t?1:t>e?-1:0)},n=function(e,t){var n,i,a,r;for(n=1,i=arguments.length;n<i;n++)if(r=arguments[n])for(a in r)r.hasOwnProperty(a)&&(e[a]=r[a]);return e},a=function(e){return(e+"").replace(/^\s+|\s+$|/g,"")},r=function(e){return(e+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},s=Array.isArray||i&&i.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},o={a:"[a\xc0\xc1\xc2\xc3\xc4\xc5\xe0\xe1\xe2\xe3\xe4\xe5\u0100\u0101\u0105\u0104]",
c:"[c\xc7\xe7\u0107\u0106\u010d\u010c]",d:"[d\u0111\u0110\u010f\u010e]",e:"[e\xc8\xc9\xca\xcb\xe8\xe9\xea\xeb\u011b\u011a\u0112\u0113\u0119\u0118]",i:"[i\xcc\xcd\xce\xcf\xec\xed\xee\xef\u012a\u012b]",l:"[l\u0142\u0141]",n:"[n\xd1\xf1\u0148\u0147\u0144\u0143]",o:"[o\xd2\xd3\xd4\xd5\xd5\xd6\xd8\xf2\xf3\xf4\xf5\xf6\xf8\u014c\u014d]",r:"[r\u0159\u0158]",s:"[s\u0160\u0161\u015b\u015a]",t:"[t\u0165\u0164]",u:"[u\xd9\xda\xdb\xdc\xf9\xfa\xfb\xfc\u016f\u016e\u016a\u016b]",y:"[y\u0178\xff\xfd\xdd]",
z:"[z\u017d\u017e\u017c\u017b\u017a\u0179]"},l=function(){var e,t,n,i,a="",r={};for(n in o)if(o.hasOwnProperty(n))for(i=o[n].substring(2,o[n].length-1),a+=i,e=0,t=i.length;e<t;e++)r[i.charAt(e)]=n;var s=new RegExp("["+a+"]","g");return function(e){return e.replace(s,function(e){return r[e]}).toLowerCase()}}();return e}),function(i,r){a=r,s="function"==typeof a?a.call(t,n,t,e):a}(0,function(){var e={};e.mixin=function(e){e.plugins={},e.prototype.initializePlugins=function(e){var n,i,a,r=this,s=[]
;if(r.plugins={names:[],settings:{},requested:{},loaded:{}},t.isArray(e))for(n=0,i=e.length;n<i;n++)"string"==typeof e[n]?s.push(e[n]):(r.plugins.settings[e[n].name]=e[n].options,s.push(e[n].name));else if(e)for(a in e)e.hasOwnProperty(a)&&(r.plugins.settings[a]=e[a],s.push(a));for(;s.length;)r.require(s.shift())},e.prototype.loadPlugin=function(t){var n=this,i=n.plugins,a=e.plugins[t];if(!e.plugins.hasOwnProperty(t))throw new Error('Unable to find "'+t+'" plugin');i.requested[t]=!0,
i.loaded[t]=a.fn.apply(n,[n.plugins.settings[t]||{}]),i.names.push(t)},e.prototype.require=function(e){var t=this,n=t.plugins;if(!t.plugins.loaded.hasOwnProperty(e)){if(n.requested[e])throw new Error('Plugin has circular dependency ("'+e+'")');t.loadPlugin(e)}return n.loaded[e]},e.define=function(t,n){e.plugins[t]={name:t,fn:n}}};var t={isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}};return e}),function(i,u){o=[n(10),r,s],a=u,
void 0!==(l="function"==typeof a?a.apply(t,o):a)&&(e.exports=l)}(0,function(e,t,n){"use strict";var i=function(e,t){if("string"!=typeof t||t.length){var n="string"==typeof t?new RegExp(t,"i"):t,i=function(e){var t=0;if(3===e.nodeType){var a=e.data.search(n);if(a>=0&&e.data.length>0){var r=e.data.match(n),s=document.createElement("span");s.className="highlight";var o=e.splitText(a),l=(o.splitText(r[0].length),o.cloneNode(!0));s.appendChild(l),o.parentNode.replaceChild(s,o),t=1}
}else if(1===e.nodeType&&e.childNodes&&!/(script|style)/i.test(e.tagName))for(var u=0;u<e.childNodes.length;++u)u+=i(e.childNodes[u]);return t};return e.each(function(){i(this)})}},a=function(){};a.prototype={on:function(e,t){this._events=this._events||{},this._events[e]=this._events[e]||[],this._events[e].push(t)},off:function(e,t){var n=arguments.length;return 0===n?delete this._events:1===n?delete this._events[e]:(this._events=this._events||{},
void(e in this._events!=!1&&this._events[e].splice(this._events[e].indexOf(t),1)))},trigger:function(e){if(this._events=this._events||{},e in this._events!=!1)for(var t=0;t<this._events[e].length;t++)this._events[e][t].apply(this,Array.prototype.slice.call(arguments,1))}},a.mixin=function(e){for(var t=["on","off","trigger"],n=0;n<t.length;n++)e.prototype[t[n]]=a.prototype[t[n]]}
;var r=/Mac/.test(navigator.userAgent),s=r?91:17,o=r?18:17,l=!/android/i.test(window.navigator.userAgent)&&!!document.createElement("form").validity,u=function(e){return void 0!==e},c=function(e){return void 0===e||null===e?null:"boolean"==typeof e?e?"1":"0":e+""},d=function(e){return(e+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},p=function(e){return(e+"").replace(/\$/g,"$$$$")},h={};h.before=function(e,t,n){var i=e[t];e[t]=function(){
return n.apply(e,arguments),i.apply(e,arguments)}},h.after=function(e,t,n){var i=e[t];e[t]=function(){var t=i.apply(e,arguments);return n.apply(e,arguments),t}};var f=function(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}},v=function(e,t){var n;return function(){var i=this,a=arguments;window.clearTimeout(n),n=window.setTimeout(function(){e.apply(i,a)},t)}},m=function(e,t,n){var i,a=e.trigger,r={};e.trigger=function(){var n=arguments[0]
;if(t.indexOf(n)===-1)return a.apply(e,arguments);r[n]=arguments},n.apply(e,[]),e.trigger=a;for(i in r)r.hasOwnProperty(i)&&a.apply(e,r[i])},g=function(e,t,n,i){e.on(t,n,function(t){for(var n=t.target;n&&n.parentNode!==e[0];)n=n.parentNode;return t.currentTarget=n,i.apply(this,[t])})},y=function(e){var t={};if("selectionStart"in e)t.start=e.selectionStart,t.length=e.selectionEnd-t.start;else if(document.selection){e.focus()
;var n=document.selection.createRange(),i=document.selection.createRange().text.length;n.moveStart("character",-e.value.length),t.start=n.text.length-i,t.length=i}return t},b=function(e,t,n){var i,a,r={};if(n)for(i=0,a=n.length;i<a;i++)r[n[i]]=e.css(n[i]);else r=e.css();t.css(r)},S=function(t,n){if(!t)return 0;var i=e("<test>").css({position:"absolute",top:-99999,left:-99999,width:"auto",padding:0,whiteSpace:"pre"}).text(t).appendTo("body")
;b(n,i,["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"]);var a=i.width();return i.remove(),a},I=function(e){var t=null,n=function(n,i){var a,r,s,o,l,u,c,d;n=n||window.event||{},i=i||{},n.metaKey||n.altKey||(i.force||e.data("grow")!==!1)&&(a=e.val(),n.type&&"keydown"===n.type.toLowerCase()&&(r=n.keyCode,s=r>=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57||32===r,46===r||8===r?(d=y(e[0]),
d.length?a=a.substring(0,d.start)+a.substring(d.start+d.length):8===r&&d.start?a=a.substring(0,d.start-1)+a.substring(d.start+1):46===r&&void 0!==d.start&&(a=a.substring(0,d.start)+a.substring(d.start+1))):s&&(u=n.shiftKey,c=String.fromCharCode(n.keyCode),c=u?c.toUpperCase():c.toLowerCase(),a+=c)),o=e.attr("placeholder"),!a&&o&&(a=o),(l=S(a,e)+4)!==t&&(t=l,e.width(l),e.triggerHandler("resize")))};e.on("keydown keyup update blur",n),n()},M=function(n,i){var a,r,s,o,l=this;o=n[0],o.selectize=l
;var u=window.getComputedStyle&&window.getComputedStyle(o,null);if(s=u?u.getPropertyValue("direction"):o.currentStyle&&o.currentStyle.direction,s=s||n.parents("[dir]:first").attr("dir")||"",e.extend(l,{order:0,settings:i,$input:n,tabIndex:n.attr("tabindex")||"",tagType:"select"===o.tagName.toLowerCase()?1:2,rtl:/rtl/i.test(s),eventNS:".selectize"+ ++M.count,highlightedValue:null,isOpen:!1,isDisabled:!1,isRequired:n.is("[required]"),isInvalid:!1,isLocked:!1,isFocused:!1,isInputHidden:!1,
isSetup:!1,isShiftDown:!1,isCmdDown:!1,isCtrlDown:!1,ignoreFocus:!1,ignoreBlur:!1,ignoreHover:!1,hasOptions:!1,currentResults:null,lastValue:"",caretPos:0,loading:0,loadedSearches:{},$activeOption:null,$activeItems:[],optgroups:{},options:{},userOptions:{},items:[],renderCache:{},onSearchChange:null===i.loadThrottle?l.onSearchChange:v(l.onSearchChange,i.loadThrottle)}),l.sifter=new t(this.options,{diacritics:i.diacritics}),l.settings.options){for(a=0,
r=l.settings.options.length;a<r;a++)l.registerOption(l.settings.options[a]);delete l.settings.options}if(l.settings.optgroups){for(a=0,r=l.settings.optgroups.length;a<r;a++)l.registerOptionGroup(l.settings.optgroups[a]);delete l.settings.optgroups}l.settings.mode=l.settings.mode||(1===l.settings.maxItems?"single":"multi"),"boolean"!=typeof l.settings.hideSelected&&(l.settings.hideSelected="multi"===l.settings.mode),l.initializePlugins(l.settings.plugins),l.setupCallbacks(),l.setupTemplates(),
l.setup()};return a.mixin(M),n.mixin(M),e.extend(M.prototype,{setup:function(){var t,n,i,a,u,c,d,p,h,f=this,v=f.settings,m=f.eventNS,y=e(window),b=e(document),S=f.$input;if(d=f.settings.mode,p=S.attr("class")||"",t=e("<div>").addClass(v.wrapperClass).addClass(p).addClass(d),n=e("<div>").addClass(v.inputClass).addClass("items").appendTo(t),i=e('<input type="text" autocomplete="off" />').appendTo(n).attr("tabindex",S.is(":disabled")?"-1":f.tabIndex),c=e(v.dropdownParent||t),
a=e("<div>").addClass(v.dropdownClass).addClass(d).hide().appendTo(c),u=e("<div>").addClass(v.dropdownContentClass).appendTo(a),f.settings.copyClassesToDropdown&&a.addClass(p),t.css({width:S[0].style.width}),f.plugins.names.length&&(h="plugin-"+f.plugins.names.join(" plugin-"),t.addClass(h),a.addClass(h)),(null===v.maxItems||v.maxItems>1)&&1===f.tagType&&S.attr("multiple","multiple"),f.settings.placeholder&&i.attr("placeholder",v.placeholder),!f.settings.splitOn&&f.settings.delimiter){
var M=f.settings.delimiter.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");f.settings.splitOn=new RegExp("\\s*"+M+"+\\s*")}S.attr("autocorrect")&&i.attr("autocorrect",S.attr("autocorrect")),S.attr("autocapitalize")&&i.attr("autocapitalize",S.attr("autocapitalize")),f.$wrapper=t,f.$control=n,f.$control_input=i,f.$dropdown=a,f.$dropdown_content=u,a.on("mouseenter","[data-selectable]",function(){return f.onOptionHover.apply(f,arguments)}),a.on("mousedown click","[data-selectable]",function(){
return f.onOptionSelect.apply(f,arguments)}),g(n,"mousedown","*:not(input)",function(){return f.onItemSelect.apply(f,arguments)}),f.settings.manualInputWidth||I(i),n.on({mousedown:function(){return f.onMouseDown.apply(f,arguments)},click:function(){return f.onClick.apply(f,arguments)}}),i.on({mousedown:function(e){e.stopPropagation()},keydown:function(){return f.onKeyDown.apply(f,arguments)},keyup:function(){return f.onKeyUp.apply(f,arguments)},keypress:function(){
return f.onKeyPress.apply(f,arguments)},resize:function(){f.positionDropdown.apply(f,[])},blur:function(){return f.onBlur.apply(f,arguments)},focus:function(){return f.ignoreBlur=!1,f.onFocus.apply(f,arguments)},paste:function(){return f.onPaste.apply(f,arguments)}}),S.parents().last().find('label[for="'+S.attr("id")+'"]').on("click",function(){f.onClick.apply(f,arguments)}),b.on("keydown"+m,function(e){f.isCmdDown=e[r?"metaKey":"ctrlKey"],f.isCtrlDown=e[r?"altKey":"ctrlKey"],
f.isShiftDown=e.shiftKey}),b.on("keyup"+m,function(e){e.keyCode===o&&(f.isCtrlDown=!1),16===e.keyCode&&(f.isShiftDown=!1),e.keyCode===s&&(f.isCmdDown=!1)}),b.on("mousedown"+m,function(e){if(f.isFocused){if(e.target===f.$dropdown[0]||e.target.parentNode===f.$dropdown[0])return!1;f.$control.has(e.target).length||e.target===f.$control[0]||f.blur(e.target)}}),y.on(["scroll"+m,"resize"+m].join(" "),function(){f.isOpen&&f.positionDropdown.apply(f,arguments)}),y.on("mousemove"+m,function(){
f.ignoreHover=!1}),this.revertSettings={$children:S.children().detach(),tabindex:S.attr("tabindex")},S.attr("tabindex",-1).hide().after(f.$wrapper),e.isArray(v.items)&&(f.setValue(v.items),delete v.items),l&&S.on("invalid"+m,function(e){e.preventDefault(),f.isInvalid=!0,f.refreshState()}),f.updateOriginalInput(),f.refreshItems(),f.refreshState(),f.updatePlaceholder(),f.isSetup=!0,S.is(":disabled")&&f.disable(),f.on("change",this.onChange),S.data("selectize",f),S.addClass("selectized"),
f.trigger("initialize"),v.preload===!0&&f.onSearchChange("")},setupTemplates:function(){var t=this,n=t.settings.labelField,i=t.settings.optgroupLabelField,a={optgroup:function(e){return'<div class="optgroup">'+e.html+"</div>"},optgroup_header:function(e,t){return'<div class="optgroup-header">'+t(e[i])+"</div>"},option:function(e,t){return'<div class="option">'+t(e[n])+"</div>"},item:function(e,t){return'<div class="item">'+t(e[n])+"</div>"},option_create:function(e,t){
return'<div class="create">Add <strong>'+t(e.input)+"</strong>&hellip;</div>"}};t.settings.render=e.extend({},a,t.settings.render)},setupCallbacks:function(){var e,t,n={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",
dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(e in n)n.hasOwnProperty(e)&&(t=this.settings[n[e]])&&this.on(e,t)},onClick:function(e){var t=this;t.isFocused||(t.focus(),e.preventDefault())},onMouseDown:function(t){var n=this,i=t.isDefaultPrevented();e(t.target);if(n.isFocused){if(t.target!==n.$control_input[0])return"single"===n.settings.mode&&t.target!==n.$control[0]?n.isOpen?n.close():n.open():i||n.setActiveItem(null),!1
}else i||window.setTimeout(function(){n.focus()},0)},onChange:function(){this.$input.trigger("change")},onPaste:function(t){var n=this;n.isFull()||n.isInputHidden||n.isLocked?t.preventDefault():n.settings.splitOn&&setTimeout(function(){for(var t=e.trim(n.$control_input.val()||"").split(n.settings.splitOn),i=0,a=t.length;i<a;i++)n.createItem(t[i])},0)},onKeyPress:function(e){if(this.isLocked)return e&&e.preventDefault();var t=String.fromCharCode(e.keyCode||e.which)
;return this.settings.create&&"multi"===this.settings.mode&&t===this.settings.delimiter?(this.createItem(),e.preventDefault(),!1):void 0},onKeyDown:function(e){var t=(e.target,this.$control_input[0],this);if(t.isLocked)return void(9!==e.keyCode&&e.preventDefault());switch(e.keyCode){case 65:if(t.isCmdDown)return void t.selectAll();break;case 27:return void(t.isOpen&&(e.preventDefault(),e.stopPropagation(),t.close()));case 78:if(!e.ctrlKey||e.altKey)break;case 40:
if(!t.isOpen&&t.hasOptions)t.open();else if(t.$activeOption){t.ignoreHover=!0;var n=t.getAdjacentOption(t.$activeOption,1);n.length&&t.setActiveOption(n,!0,!0)}return void e.preventDefault();case 80:if(!e.ctrlKey||e.altKey)break;case 38:if(t.$activeOption){t.ignoreHover=!0;var i=t.getAdjacentOption(t.$activeOption,-1);i.length&&t.setActiveOption(i,!0,!0)}return void e.preventDefault();case 13:return void(t.isOpen&&t.$activeOption&&(t.onOptionSelect({currentTarget:t.$activeOption}),
e.preventDefault()));case 37:return void t.advanceSelection(-1,e);case 39:return void t.advanceSelection(1,e);case 9:return void(t.settings.selectOnTab&&t.isOpen&&t.$activeOption?(t.onOptionSelect({currentTarget:t.$activeOption}),t.settings.allowCreateEmpty&&1===t.settings.maxItems||t.isFull()||e.preventDefault()):t.settings.create&&t.createItem()&&e.preventDefault());case 8:return void t.deleteSelection(e,!0);case 46:return void t.deleteSelection(e)}
return!t.isFull()&&!t.isInputHidden||(r?e.metaKey:e.ctrlKey)?void 0:void e.preventDefault()},onKeyUp:function(e){var t=this;if(t.isLocked)return e&&e.preventDefault();var n=t.$control_input.val()||"";t.lastValue!==n&&(t.lastValue=n,t.onSearchChange(n),t.refreshOptions(),t.trigger("type",n))},onSearchChange:function(e){var t=this,n=t.settings.load;n&&(t.loadedSearches.hasOwnProperty(e)||(t.loadedSearches[e]=!0,t.load(function(i){n.apply(t,[e,i])})))},onFocus:function(e){var t=this,n=t.isFocused
;if(t.isDisabled)return t.blur(),e&&e.preventDefault(),!1;t.ignoreFocus||(t.isFocused=!0,"focus"===t.settings.preload&&t.onSearchChange(""),n||t.trigger("focus"),t.$activeItems.length||(t.showInput(),t.setActiveItem(null),t.refreshOptions(!!t.settings.openOnFocus)),t.refreshState())},onBlur:function(e,t){var n=this;if(n.isFocused&&(n.isFocused=!1,!n.ignoreFocus))return n.ignoreBlur||document.activeElement!==n.$dropdown_content[0]?void setTimeout(function(){var e=function(){n.close(),
n.setTextboxValue(""),n.setActiveItem(null),n.setActiveOption(null),n.setCaret(n.items.length),n.refreshState(),(t||document.body).focus(),n.ignoreFocus=!1,n.trigger("blur")};n.ignoreFocus=!0,n.settings.selectOnBlur&&n.$activeOption&&1===n.$activeOption.not(".create").length?(n.addItem(n.$activeOption.not(".create").data("value")),e()):n.settings.create&&n.settings.createOnBlur?n.createItem(null,!1,e):e()}):(n.ignoreBlur=!0,void n.onFocus(e))},onOptionHover:function(e){
this.ignoreHover||this.setActiveOption(e.currentTarget,!1)},onOptionSelect:function(t){var n,i,a=this;t.preventDefault&&(t.preventDefault(),t.stopPropagation()),i=e(t.currentTarget),i.hasClass("create")?a.createItem(null,function(){a.settings.closeAfterSelect&&a.close()}):void 0!==(n=i.attr("data-value"))&&(a.lastQuery=null,a.setTextboxValue(""),a.addItem(n),a.settings.closeAfterSelect?a.close():!a.settings.hideSelected&&t.type&&/mouse/.test(t.type)&&a.setActiveOption(a.getOption(n)))},
onItemSelect:function(e){var t=this;t.isLocked||"multi"===t.settings.mode&&(e.preventDefault(),t.setActiveItem(e.currentTarget,e))},load:function(e){var t=this,n=t.$wrapper.addClass(t.settings.loadingClass);t.loading++,e.apply(t,[function(e){t.loading=Math.max(t.loading-1,0),e&&e.length&&(t.addOption(e),t.refreshOptions(t.isFocused&&!t.isInputHidden)),t.loading||n.removeClass(t.settings.loadingClass),t.trigger("load",e)}])},setTextboxValue:function(e){var t=this.$control_input
;t.val()!==e&&(t.val(e).triggerHandler("update"),this.lastValue=e)},getValue:function(){return 1===this.tagType&&this.$input.attr("multiple")?this.items:this.items.join(this.settings.delimiter)},setValue:function(e,t){m(this,t?[]:["change"],function(){this.clear(t),this.addItems(e,t)})},setActiveItem:function(t,n){var i,a,r,s,o,l,u,c,d=this;if("single"!==d.settings.mode){if(t=e(t),!t.length)return e(d.$activeItems).removeClass("active"),d.$activeItems=[],void(d.isFocused&&d.showInput())
;if("mousedown"===(i=n&&n.type.toLowerCase())&&d.isShiftDown&&d.$activeItems.length){for(c=d.$control.children(".active:last"),s=Array.prototype.indexOf.apply(d.$control[0].childNodes,[c[0]]),o=Array.prototype.indexOf.apply(d.$control[0].childNodes,[t[0]]),s>o&&(u=s,s=o,o=u),a=s;a<=o;a++)l=d.$control[0].childNodes[a],d.$activeItems.indexOf(l)===-1&&(e(l).addClass("active"),d.$activeItems.push(l));n.preventDefault()
}else"mousedown"===i&&d.isCtrlDown||"keydown"===i&&this.isShiftDown?t.hasClass("active")?(r=d.$activeItems.indexOf(t[0]),d.$activeItems.splice(r,1),t.removeClass("active")):d.$activeItems.push(t.addClass("active")[0]):(e(d.$activeItems).removeClass("active"),d.$activeItems=[t.addClass("active")[0]]);d.hideInput(),this.isFocused||d.focus()}},setActiveOption:function(t,n,i){var a,r,s,o,l,c=this;c.$activeOption&&c.$activeOption.removeClass("active"),c.$activeOption=null,t=e(t),
t.length&&(c.$activeOption=t.addClass("active"),!n&&u(n)||(a=c.$dropdown_content.height(),r=c.$activeOption.outerHeight(!0),n=c.$dropdown_content.scrollTop()||0,s=c.$activeOption.offset().top-c.$dropdown_content.offset().top+n,o=s,l=s-a+r,s+r>a+n?c.$dropdown_content.stop().animate({scrollTop:l},i?c.settings.scrollDuration:0):s<n&&c.$dropdown_content.stop().animate({scrollTop:o},i?c.settings.scrollDuration:0)))},selectAll:function(){var e=this
;"single"!==e.settings.mode&&(e.$activeItems=Array.prototype.slice.apply(e.$control.children(":not(input)").addClass("active")),e.$activeItems.length&&(e.hideInput(),e.close()),e.focus())},hideInput:function(){this.setTextboxValue(""),this.$control_input.css({opacity:0}),this.settings.manualInputWidth||this.$control_input.css({position:"absolute",left:this.rtl?1e4:-1e4}),this.isInputHidden=!0},showInput:function(){this.$control_input.css({opacity:1}),
this.settings.manualInputWidth||this.$control_input.css({position:"relative",left:0}),this.isInputHidden=!1},focus:function(){var e=this;e.isDisabled||(e.ignoreFocus=!0,e.$control_input[0].focus(),window.setTimeout(function(){e.ignoreFocus=!1,e.onFocus()},0))},blur:function(e){this.$control_input[0].blur(),this.onBlur(null,e)},getScoreFunction:function(e){return this.sifter.getScoreFunction(e,this.getSearchOptions())},getSearchOptions:function(){var e=this.settings,t=e.sortField
;return"string"==typeof t&&(t=[{field:t}]),{fields:e.searchField,conjunction:e.searchConjunction,sort:t}},search:function(t){var n,i,a,r=this,s=r.settings,o=this.getSearchOptions();if(s.score&&"function"!=typeof(a=r.settings.score.apply(this,[t])))throw new Error('Selectize "score" setting must be a function that returns a function');if(t!==r.lastQuery?(r.lastQuery=t,i=r.sifter.search(t,e.extend(o,{score:a})),r.currentResults=i):i=e.extend(!0,{},r.currentResults),
s.hideSelected)for(n=i.items.length-1;n>=0;n--)r.items.indexOf(c(i.items[n].id))!==-1&&i.items.splice(n,1);return i},refreshOptions:function(t){var n,a,r,s,o,l,u,d,p,h,f,v,m,g,y,b;void 0===t&&(t=!0);var S=this,I=e.trim(S.$control_input.val()),M=S.search(I),C=S.$dropdown_content,w=S.$activeOption&&c(S.$activeOption.attr("data-value"));for(s=M.items.length,"number"==typeof S.settings.maxOptions&&(s=Math.min(s,S.settings.maxOptions)),o={},l=[],n=0;n<s;n++)for(u=S.options[M.items[n].id],
d=S.render("option",u),p=u[S.settings.optgroupField]||"",h=e.isArray(p)?p:[p],a=0,r=h&&h.length;a<r;a++)p=h[a],S.optgroups.hasOwnProperty(p)||(p=""),o.hasOwnProperty(p)||(o[p]=[],l.push(p)),o[p].push(d);for(this.settings.lockOptgroupOrder&&l.sort(function(e,t){return(S.optgroups[e].$order||0)-(S.optgroups[t].$order||0)}),f=[],n=0,s=l.length;n<s;n++)p=l[n],S.optgroups.hasOwnProperty(p)&&o[p].length?(v=S.render("optgroup_header",S.optgroups[p])||"",v+=o[p].join(""),
f.push(S.render("optgroup",e.extend({},S.optgroups[p],{html:v})))):f.push(o[p].join(""));if(C.html(f.join("")),S.settings.highlight&&M.query.length&&M.tokens.length)for(n=0,s=M.tokens.length;n<s;n++)i(C,M.tokens[n].regex);if(!S.settings.hideSelected)for(n=0,s=S.items.length;n<s;n++)S.getOption(S.items[n]).addClass("selected");m=S.canCreate(I),m&&(C.prepend(S.render("option_create",{input:I})),b=e(C[0].childNodes[0])),S.hasOptions=M.items.length>0||m,
S.hasOptions?(M.items.length>0?(y=w&&S.getOption(w),y&&y.length?g=y:"single"===S.settings.mode&&S.items.length&&(g=S.getOption(S.items[0])),g&&g.length||(g=b&&!S.settings.addPrecedence?S.getAdjacentOption(b,1):C.find("[data-selectable]:first"))):g=b,S.setActiveOption(g),t&&!S.isOpen&&S.open()):(S.setActiveOption(null),t&&S.isOpen&&S.close())},addOption:function(t){var n,i,a,r=this;if(e.isArray(t))for(n=0,i=t.length;n<i;n++)r.addOption(t[n]);else(a=r.registerOption(t))&&(r.userOptions[a]=!0,
r.lastQuery=null,r.trigger("option_add",a,t))},registerOption:function(e){var t=c(e[this.settings.valueField]);return!(!t||this.options.hasOwnProperty(t))&&(e.$order=e.$order||++this.order,this.options[t]=e,t)},registerOptionGroup:function(e){var t=c(e[this.settings.optgroupValueField]);return!!t&&(e.$order=e.$order||++this.order,this.optgroups[t]=e,t)},addOptionGroup:function(e,t){t[this.settings.optgroupValueField]=e,(e=this.registerOptionGroup(t))&&this.trigger("optgroup_add",e,t)},
removeOptionGroup:function(e){this.optgroups.hasOwnProperty(e)&&(delete this.optgroups[e],this.renderCache={},this.trigger("optgroup_remove",e))},clearOptionGroups:function(){this.optgroups={},this.renderCache={},this.trigger("optgroup_clear")},updateOption:function(t,n){var i,a,r,s,o,l,u,d=this;if(t=c(t),r=c(n[d.settings.valueField]),null!==t&&d.options.hasOwnProperty(t)){if("string"!=typeof r)throw new Error("Value must be set in option data");u=d.options[t].$order,r!==t&&(delete d.options[t],
(s=d.items.indexOf(t))!==-1&&d.items.splice(s,1,r)),n.$order=n.$order||u,d.options[r]=n,o=d.renderCache.item,l=d.renderCache.option,o&&(delete o[t],delete o[r]),l&&(delete l[t],delete l[r]),d.items.indexOf(r)!==-1&&(i=d.getItem(t),a=e(d.render("item",n)),i.hasClass("active")&&a.addClass("active"),i.replaceWith(a)),d.lastQuery=null,d.isOpen&&d.refreshOptions(!1)}},removeOption:function(e,t){var n=this;e=c(e);var i=n.renderCache.item,a=n.renderCache.option;i&&delete i[e],a&&delete a[e],
delete n.userOptions[e],delete n.options[e],n.lastQuery=null,n.trigger("option_remove",e),n.removeItem(e,t)},clearOptions:function(){var e=this;e.loadedSearches={},e.userOptions={},e.renderCache={},e.options=e.sifter.items={},e.lastQuery=null,e.trigger("option_clear"),e.clear()},getOption:function(e){return this.getElementWithValue(e,this.$dropdown_content.find("[data-selectable]"))},getAdjacentOption:function(t,n){var i=this.$dropdown.find("[data-selectable]"),a=i.index(t)+n
;return a>=0&&a<i.length?i.eq(a):e()},getElementWithValue:function(t,n){if(void 0!==(t=c(t))&&null!==t)for(var i=0,a=n.length;i<a;i++)if(n[i].getAttribute("data-value")===t)return e(n[i]);return e()},getItem:function(e){return this.getElementWithValue(e,this.$control.children())},addItems:function(t,n){for(var i=e.isArray(t)?t:[t],a=0,r=i.length;a<r;a++)this.isPending=a<r-1,this.addItem(i[a],n)},addItem:function(t,n){m(this,n?[]:["change"],function(){var i,a,r,s,o,l=this,u=l.settings.mode
;if(t=c(t),l.items.indexOf(t)!==-1)return void("single"===u&&l.close());l.options.hasOwnProperty(t)&&("single"===u&&l.clear(n),"multi"===u&&l.isFull()||(i=e(l.render("item",l.options[t])),o=l.isFull(),l.items.splice(l.caretPos,0,t),l.insertAtCaret(i),(!l.isPending||!o&&l.isFull())&&l.refreshState(),l.isSetup&&(r=l.$dropdown_content.find("[data-selectable]"),l.isPending||(a=l.getOption(t),s=l.getAdjacentOption(a,1).attr("data-value"),l.refreshOptions(l.isFocused&&"single"!==u),
s&&l.setActiveOption(l.getOption(s))),!r.length||l.isFull()?l.close():l.positionDropdown(),l.updatePlaceholder(),l.trigger("item_add",t,i),l.updateOriginalInput({silent:n}))))})},removeItem:function(e,t){var n,i,a,r=this;n="object"==typeof e?e:r.getItem(e),e=c(n.attr("data-value")),(i=r.items.indexOf(e))!==-1&&(n.remove(),n.hasClass("active")&&(a=r.$activeItems.indexOf(n[0]),r.$activeItems.splice(a,1)),r.items.splice(i,1),r.lastQuery=null,
!r.settings.persist&&r.userOptions.hasOwnProperty(e)&&r.removeOption(e,t),i<r.caretPos&&r.setCaret(r.caretPos-1),r.refreshState(),r.updatePlaceholder(),r.updateOriginalInput({silent:t}),r.positionDropdown(),r.trigger("item_remove",e,n))},createItem:function(t,n){var i=this,a=i.caretPos;t=t||e.trim(i.$control_input.val()||"");var r=arguments[arguments.length-1];if("function"!=typeof r&&(r=function(){}),"boolean"!=typeof n&&(n=!0),!i.canCreate(t))return r(),!1;i.lock()
;var s="function"==typeof i.settings.create?this.settings.create:function(e){var t={};return t[i.settings.labelField]=e,t[i.settings.valueField]=e,t},o=f(function(e){if(i.unlock(),!e||"object"!=typeof e)return r();var t=c(e[i.settings.valueField]);if("string"!=typeof t)return r();i.setTextboxValue(""),i.addOption(e),i.setCaret(a),i.addItem(t),i.refreshOptions(n&&"single"!==i.settings.mode),r(e)}),l=s.apply(this,[t,o]);return void 0!==l&&o(l),!0},refreshItems:function(){this.lastQuery=null,
this.isSetup&&this.addItem(this.items),this.refreshState(),this.updateOriginalInput()},refreshState:function(){var e=this;e.isRequired&&(e.items.length&&(e.isInvalid=!1),e.$control_input.prop("required",void 0)),e.refreshClasses()},refreshClasses:function(){var t=this,n=t.isFull(),i=t.isLocked;t.$wrapper.toggleClass("rtl",t.rtl),
t.$control.toggleClass("focus",t.isFocused).toggleClass("disabled",t.isDisabled).toggleClass("required",t.isRequired).toggleClass("invalid",t.isInvalid).toggleClass("locked",i).toggleClass("full",n).toggleClass("not-full",!n).toggleClass("input-active",t.isFocused&&!t.isInputHidden).toggleClass("dropdown-active",t.isOpen).toggleClass("has-options",!e.isEmptyObject(t.options)).toggleClass("has-items",t.items.length>0),t.$control_input.data("grow",!n&&!i)},isFull:function(){
return null!==this.settings.maxItems&&this.items.length>=this.settings.maxItems},updateOriginalInput:function(e){var t,n,i,a,r=this;if(e=e||{},1===r.tagType){for(i=[],t=0,n=r.items.length;t<n;t++)a=r.options[r.items[t]][r.settings.labelField]||"",i.push('<option value="'+d(r.items[t])+'" selected="selected">'+d(a)+"</option>");i.length||this.$input.attr("multiple")||i.push('<option value="" selected="selected"></option>'),r.$input.html(i.join(""))}else r.$input.val(r.getValue()),
r.$input.attr("value",r.$input.val());r.isSetup&&(e.silent||r.trigger("change",r.$input.val()))},updatePlaceholder:function(){if(this.settings.placeholder){var e=this.$control_input;this.items.length?e.removeAttr("placeholder"):e.attr("placeholder",this.settings.placeholder),e.triggerHandler("update",{force:!0})}},open:function(){var e=this;e.isLocked||e.isOpen||"multi"===e.settings.mode&&e.isFull()||(e.focus(),e.isOpen=!0,e.refreshState(),e.$dropdown.css({visibility:"hidden",display:"block"}),
e.positionDropdown(),e.$dropdown.css({visibility:"visible"}),e.trigger("dropdown_open",e.$dropdown))},close:function(){var e=this,t=e.isOpen;"single"===e.settings.mode&&e.items.length&&e.hideInput(),e.isOpen=!1,e.$dropdown.hide(),e.setActiveOption(null),e.refreshState(),t&&e.trigger("dropdown_close",e.$dropdown)},positionDropdown:function(){var e=this.$control,t="body"===this.settings.dropdownParent?e.offset():e.position();t.top+=e.outerHeight(!0),this.$dropdown.css({width:e.outerWidth(),
top:t.top,left:t.left})},clear:function(e){var t=this;t.items.length&&(t.$control.children(":not(input)").remove(),t.items=[],t.lastQuery=null,t.setCaret(0),t.setActiveItem(null),t.updatePlaceholder(),t.updateOriginalInput({silent:e}),t.refreshState(),t.showInput(),t.trigger("clear"))},insertAtCaret:function(t){var n=Math.min(this.caretPos,this.items.length);0===n?this.$control.prepend(t):e(this.$control[0].childNodes[n]).before(t),this.setCaret(n+1)},deleteSelection:function(t,n){
var i,a,r,s,o,l,u,c,d,p=this;if(r=n||void 0===n&&t&&8===t.keyCode?-1:1,s=y(p.$control_input[0]),p.$activeOption&&!p.settings.hideSelected&&(u=p.getAdjacentOption(p.$activeOption,-1).attr("data-value")),o=[],p.$activeItems.length){for(d=p.$control.children(".active:"+(r>0?"last":"first")),l=p.$control.children(":not(input)").index(d),r>0&&l++,i=0,a=p.$activeItems.length;i<a;i++)o.push(e(p.$activeItems[i]).attr("data-value"));t&&(t.preventDefault(),t.stopPropagation())
}else(p.isFocused||"single"===p.settings.mode)&&p.items.length&&(r<0&&0===s.start&&0===s.length?o.push(p.items[p.caretPos-1]):r>0&&s.start===p.$control_input.val().length&&o.push(p.items[p.caretPos]));if(!o.length||"function"==typeof p.settings.onDelete&&p.settings.onDelete.apply(p,[o])===!1)return!1;for(void 0!==l&&p.setCaret(l);o.length;)p.removeItem(o.pop());return p.showInput(),p.positionDropdown(),p.refreshOptions(!0),u&&(c=p.getOption(u),c.length&&p.setActiveOption(c)),!0},
advanceSelection:function(e,t){var n,i,a,r,s,o=this;0!==e&&(o.rtl&&(e*=-1),n=e>0?"last":"first",i=y(o.$control_input[0]),o.isFocused&&!o.isInputHidden?(r=o.$control_input.val().length,(e<0?0===i.start&&0===i.length:i.start===r)&&!r&&o.advanceCaret(e,t)):(s=o.$control.children(".active:"+n),s.length&&(a=o.$control.children(":not(input)").index(s),o.setActiveItem(null),o.setCaret(e>0?a+1:a))))},advanceCaret:function(e,t){var n,i,a=this;0!==e&&(n=e>0?"next":"prev",
a.isShiftDown?(i=a.$control_input[n](),i.length&&(a.hideInput(),a.setActiveItem(i),t&&t.preventDefault())):a.setCaret(a.caretPos+e))},setCaret:function(t){var n=this;if(t="single"===n.settings.mode?n.items.length:Math.max(0,Math.min(n.items.length,t)),!n.isPending){var i,a,r,s;for(r=n.$control.children(":not(input)"),i=0,a=r.length;i<a;i++)s=e(r[i]).detach(),i<t?n.$control_input.before(s):n.$control.append(s)}n.caretPos=t},lock:function(){this.close(),this.isLocked=!0,this.refreshState()},
unlock:function(){this.isLocked=!1,this.refreshState()},disable:function(){var e=this;e.$input.prop("disabled",!0),e.$control_input.prop("disabled",!0).prop("tabindex",-1),e.isDisabled=!0,e.lock()},enable:function(){var e=this;e.$input.prop("disabled",!1),e.$control_input.prop("disabled",!1).prop("tabindex",e.tabIndex),e.isDisabled=!1,e.unlock()},destroy:function(){var t=this,n=t.eventNS,i=t.revertSettings;t.trigger("destroy"),t.off(),t.$wrapper.remove(),t.$dropdown.remove(),
t.$input.html("").append(i.$children).removeAttr("tabindex").removeClass("selectized").attr({tabindex:i.tabindex}).show(),t.$control_input.removeData("grow"),t.$input.removeData("selectize"),e(window).off(n),e(document).off(n),e(document.body).off(n),delete t.$input[0].selectize},render:function(e,t){var n,i,a="",r=!1,s=this,o=/^[\t \r\n]*<([a-z][a-z0-9\-_]*(?:\:[a-z][a-z0-9\-_]*)?)/i;return"option"!==e&&"item"!==e||(n=c(t[s.settings.valueField]),r=!!n),
r&&(u(s.renderCache[e])||(s.renderCache[e]={}),s.renderCache[e].hasOwnProperty(n))?s.renderCache[e][n]:(a=s.settings.render[e].apply(this,[t,d]),"option"!==e&&"option_create"!==e||(a=a.replace(o,"<$1 data-selectable")),"optgroup"===e&&(i=t[s.settings.optgroupValueField]||"",a=a.replace(o,'<$1 data-group="'+p(d(i))+'"')),"option"!==e&&"item"!==e||(a=a.replace(o,'<$1 data-value="'+p(d(n||""))+'"')),r&&(s.renderCache[e][n]=a),a)},clearCache:function(e){var t=this
;void 0===e?t.renderCache={}:delete t.renderCache[e]},canCreate:function(e){var t=this;if(!t.settings.create)return!1;var n=t.settings.createFilter;return(e.length||t.settings.allowCreateEmpty)&&("function"!=typeof n||n.apply(t,[e]))&&("string"!=typeof n||new RegExp(n).test(e))&&(!(n instanceof RegExp)||n.test(e))}}),M.count=0,M.defaults={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:!1,createOnBlur:!1,selectOnBlur:!1,createFilter:null,
highlight:!0,openOnFocus:!0,maxOptions:1e3,maxItems:null,hideSelected:null,addPrecedence:!1,selectOnTab:!1,preload:!1,allowEmptyOption:!1,allowCreateEmpty:!1,closeAfterSelect:!1,scrollDuration:60,loadThrottle:300,loadingClass:"loading",manualInputWidth:!1,dataAttr:"data-data",optgroupField:"optgroup",valueField:"value",labelField:"text",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,
wrapperClass:"selectize-control",inputClass:"selectize-input",dropdownClass:"selectize-dropdown",dropdownContentClass:"selectize-dropdown-content",dropdownParent:null,copyClassesToDropdown:!0,render:{}},e.fn.selectize=function(t){var n=e.fn.selectize.defaults,i=e.extend({},n,t),a=i.dataAttr,r=i.labelField,s=i.valueField,o=i.optgroupField,l=i.optgroupLabelField,u=i.optgroupValueField,d=function(t,n){var o,l,u,c,d=t.attr(a);if(d)for(n.options=JSON.parse(d),o=0,
l=n.options.length;o<l;o++)n.items.push(n.options[o][s]);else{var p=e.trim(t.val()||"");if(!i.allowEmptyOption&&!p.length)return;for(u=p.split(i.delimiter),o=0,l=u.length;o<l;o++)c={},c[r]=u[o],c[s]=u[o],n.options.push(c);n.items=u}},p=function(t,n){var d,p,h,f,v=n.options,m={},g=function(e){var t=a&&e.attr(a);return"string"==typeof t&&t.length?JSON.parse(t):null},y=function(t,a){t=e(t);var l=c(t.attr("value"));if(l||i.allowEmptyOption)if(m.hasOwnProperty(l)){if(a){var u=m[l][o]
;u?e.isArray(u)?u.push(a):m[l][o]=[u,a]:m[l][o]=a}}else{var d=g(t)||{};d[r]=d[r]||t.text(),d[s]=d[s]||l,d[o]=d[o]||a,m[l]=d,v.push(d),t.is(":selected")&&n.items.push(l)}};for(n.maxItems=t.attr("multiple")?null:1,f=t.children(),d=0,p=f.length;d<p;d++)h=f[d].tagName.toLowerCase(),"optgroup"===h?function(t){var i,a,r,s,o;for(t=e(t),r=t.attr("label"),r&&(s=g(t)||{},s[l]=r,s[u]=r,n.optgroups.push(s)),o=e("option",t),i=0,a=o.length;i<a;i++)y(o[i],r)}(f[d]):"option"===h&&y(f[d])}
;return this.each(function(){if(!this.selectize){var a=e(this),r=this.tagName.toLowerCase(),s=a.attr("placeholder")||a.attr("data-placeholder");s||i.allowEmptyOption||(s=a.children('option[value=""]').text());var o={placeholder:s,options:[],optgroups:[],items:[]};"select"===r?p(a,o):d(a,o),new M(a,e.extend(!0,{},n,o,t))}})},e.fn.selectize.defaults=M.defaults,e.fn.selectize.support={validity:l},M.define("remove_button",function(t){if("single"!==this.settings.mode){t=e.extend({label:"&times;",
title:"Remove",className:"remove",append:!0},t);var n=this,i='<a href="javascript:void(0)" class="'+t.className+'" tabindex="-1" title="'+d(t.title)+'">'+t.label+"</a>",a=function(e,t){var n=e.search(/(<\/[^>]+>\s*)$/);return e.substring(0,n)+t+e.substring(n)};this.setup=function(){var r=n.setup;return function(){if(t.append){var s=n.settings.render.item;n.settings.render.item=function(e){return a(s.apply(this,arguments),i)}}r.apply(this,arguments),
this.$control.on("click","."+t.className,function(t){if(t.preventDefault(),!n.isLocked){var i=e(t.currentTarget).parent();n.setActiveItem(i),n.deleteSelection()&&n.setCaret(n.items.length)}})}}()}}),M.define("restore_on_backspace",function(e){var t=this;e.text=e.text||function(e){return e[this.settings.labelField]},this.onKeyDown=function(){var n=t.onKeyDown;return function(t){var i,a
;return 8===t.keyCode&&""===this.$control_input.val()&&!this.$activeItems.length&&(i=this.caretPos-1)>=0&&i<this.items.length?(a=this.options[this.items[i]],this.deleteSelection(t,!0)&&(this.setTextboxValue(e.text.apply(this,[a])),this.refreshOptions(!0)),void t.preventDefault()):n.apply(this,arguments)}}()}),M.define("restore_on_focus",function(e){var t=this;e.text=e.text||function(e){return e[this.settings.labelField]};var n=t.onFocus;this.onFocus=function(t){return function(t){
var i=this.caretPos-1;if(i>=0&&i<this.items.length){var a=this.options[this.items[i]],r=e.text.call(this,a);this.removeItem(a[this.settings.valueField]),this.setTextboxValue(r),this.refreshOptions(!0)}return n.apply(this,arguments)}}()}),M})}).call(t,n(10))},function(e,t,n){"use strict";var i=n(197),a=new i.a({interface:["init","enable","disable","set","capture"]});t.a=a},function(e,t,n){"use strict";var i=n(197),a=new i.a({props:["shortcuts"]});t.a=a},function(e,t,n){"use strict"
;var i=n(502),a=i.a.extend({name:"BasicVolatileStorage",initialize:function(){var e={};this.api={getItem:function(t){return e[t]},setItem:function(t,n){e[t]=n},removeItem:function(t){delete e[t]},clear:function(){for(var t in e)e.hasOwnProperty(t)&&delete e[t]}}},getStorage:function(){return this.api}});t.a=a},function(e,t,n){"use strict";var i=n(503),a=i.a.extend({supportsRetry:function(e){return e.get("isCloud")}});t.a=a},function(e,t,n){"use strict"
;var i=n(3),a=n.n(i),r=n(4),s=n(15),o=n(59),l=n(80),u=n(801),c=n(29),d=n(71),p=o.a.extend({mixins:[d.a],initialize:function(e){this.name=e.name||"ServerEventManager",this.appModel=e.appModel,this.servers=this.appModel.get("servers"),this.isValidServer=e.isValidServer,this.supportsLongPolling=e.supportsLongPolling,this.showTimelineStatus=e.showTimelineStatus,this.ServerEventConnection=e.ServerEventConnection,this.connections={},this._serverRetryManager=new e.ServerRetryManager({
appModel:this.appModel,callback:this.retryServerConnections.bind(this),logFormat:"[Connections] Retrying server events connection for %s in %s seconds"})},start:function(){this.listenTo(this.servers,{"change:isResolved":this.onServerResolvedChange,"change:isRejected":this.onServerRejectedChange,remove:this.onServerRemove,reset:this.onServersReset}),this.showTimelineStatus&&this.listenTo(s.a,"timeline",this.onTimeline)},stop:function(){this.stopListening(),this._serverRetryManager.stopAll(),
this.connections={}},connect:function(e){var t=e.server,i=this.connections[t.id];i||(i=new this.ServerEventConnection({server:t}),this.connections[t.id]=i,this.listenTo(i,{open:this.onOpen,close:this.onClose,error:this.onClose}));var a=i.open(),r=i.socket?i.socket.url:i.pollUrl;return n.i(c.a)("["+this.name+"] Opening server event connection to "+t.get("debugName")+" at "+r),a},disconnectAll:function(){var e=this;a.a.each(this.connections,function(t){e.disconnect({connection:t})})},
disconnect:function(e){var t=e.connection;if(t||(t=this.connections[e.server.id]),t){var i=t.socket?t.socket.url:t.pollUrl,a=t.server;n.i(c.a)("["+this.name+"] Closing server event connection to "+a.get("debugName")+" at "+i),this.stopListening(t),this._serverRetryManager.stop(t.server),t.close(),delete this.connections[t.server.id]}},retryServerConnections:function(e){this.isValidServer(e)&&e.get("isResolved")&&this.connect({server:e})},onServerResolvedChange:function(e,t){
var n=this.connections[e.id];this.isValidServer(e)&&t&&!n&&(l.a.hasWebSocket||this.supportsLongPolling?this.connect({server:e}):e.trigger("socket:websocket",{error:!0}))},onServerRejectedChange:function(e,t){t&&this.disconnect({server:e})},onServerRemove:function(e){var t=this.connections[e.id];if(t&&(this.disconnect({connection:t}),e.get("isMerged")&&t)){var n=this.servers.get(e.id);this.connect({server:n})}},onServersReset:function(e,t){var n=this,i=t.previousModels;a.a.each(i,function(t){
e.contains(t)||n.disconnect({server:t})})},onTimeline:function(e){var t=void 0,i={item:e.title||n.i(r.default)("an item"),serverName:e.server.get("friendlyName")};switch(e.state){case u.a.CREATED:t=n.i(r.default)("Created {item} on {serverName}",i);break;case u.a.MATCHING:t=n.i(r.default)("Matching {item} on {serverName}",i);break;case u.a.DOWNLOADING_METADATA:t=n.i(r.default)("Downloading metadata for {item} on {serverName}",i);break;case u.a.LOADING_METADATA:
t=n.i(r.default)("Loading metadata for {item} on {serverName}",i);break;case u.a.PROCESSED:t=n.i(r.default)("Finished processing {item} on {serverName}",i);break;case u.a.DELETED:t=n.i(r.default)("Deleted {item} on {serverName}",i)}t&&e.sectionID>0&&s.a.trigger("show:status",e.server,t)},onOpen:function(e){var t=this.connections[e.id],n=t.socket?t.socket.url:t.pollUrl;c.a.info("["+this.name+"] Opened server event connection to "+e.get("debugName")+" at "+n),this._serverRetryManager.stop(e)},
onClose:function(e){c.a.warn("["+this.name+"] Unexpectedly closed server event connection to "+e.get("debugName")),this._serverRetryManager.start(e)}});t.a=p},function(e,t,n){"use strict";var i=n(19),a=n(271),r=n(16),s=n(17),o=n(1252),l=s.a.extend({mixins:[a.a],name:"ChannelListModel",context:["server"],idAttribute:"key",collectionName:"channels",url:function e(){var t=this.get("key"),e=t?t:i.join(["/channels",this.get("subset")]);return this.getPaginatedUrl(e)},sessionAttrs:{key:r.a.string,
subset:r.a.oneOf("all","recentlyViewed"),currentPageStart:r.a.integer,currentPageSize:r.a.integer,populatedRange:r.a.object},syncedAttrs:{totalSize:r.a.integer,viewGroup:r.a.string,title1:r.a.string,title2:r.a.string},syncedRelations:{channels:{relationClass:o.a,rootPropertyName:"Directory",setOptions:function(e){return{remove:e.remove,at:e.at}}}},defaults:function(){return{subset:"all",populatedRange:{start:0,end:0,size:0}}},initialize:function(){this.startPopulatedRangeMonitor()}});t.a=l
},function(e,t,n){"use strict";var i=n(60),a=n(82),r=n(16),s=n(52),o=n(17),l=n(88),u=o.a.extend({name:"ChannelModel",context:["server","channel"],idAttribute:"key",url:function(){return this.id?this.id:this.identifierUrl(this.get("identifier"))},identifierUrl:function(e){return"/:/plugins/"+e+"/root"},syncedAttrs:{key:r.a.string,identifier:r.a.string,type:r.a.string,name:r.a.string,title1:r.a.string,title2:r.a.string,message:r.a.string,summary:r.a.string,thumb:r.a.string,art:r.a.string,
prefsKey:r.a.string,searchKey:r.a.string,installed:r.a.boolean,noCache:r.a.boolean,allowSync:r.a.boolean,hasPrefs:r.a.boolean,hasStoreServices:r.a.boolean,share:r.a.boolean,lastAccessedAt:r.a.integer},syncedRelations:{metadataList:{relationClass:l.default,attrs:function(e){return{containerKey:e.key?e.key:this.identifierUrl(e.identifier)}},options:function(e){return{channel:this,skipCache:!0}}}},derivedAttrs:{title:function(){return this.get("name")||this.get("title2")||this.get("title1")}},
augmentResponseText:function(e,t){return t===s.a.xml?n.i(a.a)(e):e},augmentResponse:function(e){if(this.has("key")&&(e.key=this.get("key")),"none"===e.key&&delete e.key,e.key){var t=e.key.match(/^\/(\w+)\//);t&&(e.type=t[1])}e.title&&(e.name=e.title);for(var n=i.a.parseArray(e.Metadata),a=n.length-1;a>=0;a--){var r=n[a];if(r.settings||r.search){e[r.settings?"prefsKey":"searchKey"]=r.key,n.splice(a,1)}}return e.Metadata=n,e.metadataList=e,e}});t.a=u},function(e,t,n){"use strict"
;var i=n(65),a=n.n(i),r=n(3),s=n.n(r),o=n(60),l=n(90),u=n(56),c=n(53),d=n(202),p=n(16),h=n(17),f=n(76),v=n(176),m=n(1297),g=h.a.extend({name:"PlayQueueItemModel",context:["server","identifier","mediaTagPrefix","mediaTagVersion"],entityType:u.k,entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return n.i(c.a)(this.entityType,e.playQueueItemID,this.server.entityID())},idAttribute:"playQueueItemID",cache:new d.a,cacheKey:function(e){
return this.server&&this.server.getScopedKey(e.playQueueItemID)},sessionAttrs:{isPlayQueueItem:p.a.boolean},syncedAttrs:{playQueueItemID:p.a.string,queueIndex:p.a.integer,key:p.a.string,ratingKey:p.a.string,type:p.a.string,advertisement:p.a.boolean,allowSkipAfter:p.a.integer,librarySectionID:p.a.string,hasPremiumLyrics:p.a.boolean,syncItemId:p.a.integer,generatorID:p.a.integer,generatorType:p.a.integer,clientIdentifier:p.a.string,target:p.a.string},syncedRelations:{metadataItem:{
relationClass:f.a,deferred:!0},lyricsStreams:{relationClass:m.a,deferred:!0}},sessionRelations:{postPlay:{relationClass:v.default,options:function(){return{url:"hubs/metadata/"+this.get("metadataItem").id+"/postplay"}}}},defaults:{isPlayQueueItem:!0},augmentResponse:function(e){var t=s.a.pick(e,a()(this.syncedAttrs));t.metadataItem=e;var n=s.a.first(o.a.parseArray(e.Media));if(n){var i=s.a.first(o.a.parseArray(n.Part));if(i){var r=o.a.parseArray(i.Stream);if(r){var u=l.a.get("lyrics")
;t.lyricsStreams=s.a.filter(r,function(e){return o.a.parseInteger(e.streamType)===u.id})}}}return t}});t.a=g},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(13),s=n(59),o=n(71),l=n(30),u=n(1428),c=n(1256),d=n(739),p=n(1368),h=s.a.extend({mixins:o.a,initialize:function(e){this.server=e.server,this._queues={audio:null,photo:null,video:null},this.listenTo(this,{"change:playQueue":this.onPlayQueueChange,"remove:playQueue":this.onPlayQueueRemove}),
this.canCreateOnLocal=c.a.prototype.isItemQueueable,this.doesLocalSupport=c.a.prototype.supports},_playQueueTypeFor:function(e){if(e.get("isUserPlaylist"))return"video";if(e.get("isPlaylist"))return e.get("playlistType");if(e.get("isMetadataList"))return n.i(l.n)(e.get("firstItemType")).mediaType;var t=n.i(u.a)(e),i="photo"===t?t:e.get("type");return n.i(l.n)(i).mediaType},createFor:function(e,t){t=t||e;var n=this._playQueueTypeFor(t),i=null;return this.canCreateOnServer(e)?i=new d.a({
mediaType:n},{server:this.server}):this.canCreateOnLocal(e)&&(i=new c.a({mediaType:n},{server:this.server})),this._queues[n]=i,this.trigger("change change:playQueue change:playQueue:"+n,i),i},getForType:function(e){return this._queues[e]},createForType:function(e,t){var n=null;return n=t.onServer?new d.a({mediaType:e},{server:this.server}):new c.a({mediaType:e}),this._queues[e]=n,this.trigger("change change:playQueue:"+e,n),n},getFor:function(e){var t=e.get("type")
;if(!t||"channelDirectory"===t)return null;var n=this._playQueueTypeFor(e),i=this._queues[n];return i&&i.isItemQueueable(e)?i:null},get:function(e){return a.a.findWhere(this._queues,{id:e})},populateQueue:function(e,t){var n=new d.a({playQueueID:e,mediaType:t},{server:this.server});return this._queues[t]=n,n.populate()},remove:function(e){var t=this._queues[e];t&&(this._queues[e]=null,this.trigger("change remove:playQueue remove:playQueue:"+e,t))},removeAll:function(){
a.a.each(a.a.keys(this._queues),this.remove,this)},canCreateOnServer:function(e){return this.server.supports("playQueues")&&this.server.get("isFullServer")&&d.a.prototype.isItemQueueable(e)},doesServerSupport:function(e){return this.server.supports("playQueues")&&d.a.prototype.supports(e)},canCreateFor:function(e,t){return this.canCreateOnServer(e)&&this.doesServerSupport(t)||this.canCreateOnLocal(e)&&this.doesLocalSupport(t)},_dispatchActivePlayQueueItem:function(e,t){if(n.i(r.b)("appStore")){
(0,n.i(r.a)("appStore").dispatch)(n.i(p.a)({playerType:e,playQueueItem:t}))}},onPlayQueueChange:function(e){var t=this.onPlayQueueSelectedItemChange.bind(this,e.get("mediaType"));this.listenTo(e,"change:selectedItem",t)},onPlayQueueRemove:function(e){this.stopListening(e),this._dispatchActivePlayQueueItem(e.get("mediaType"),null)},onPlayQueueSelectedItemChange:function(e,t,n){this._dispatchActivePlayQueueItem(e,n)}});t.a=h},function(e,t,n){"use strict"
;var i=n(3),a=n.n(i),r=n(10),s=n.n(r),o=n(15),l=n(203),u=n(49),c=n(19),d=n(75),p=n(332),h={audio:["Track"],photo:["Photo","Video"],video:["Video"]},f=d.a.extend({idAttribute:"playQueueID",defaults:{selectedItem:null,mediaType:null,collection:null,server:null,owned:!0,hasUserAdditions:!1,repeatAll:!1,shuffled:!1,hasUpNext:!1,playQueueID:null,playQueueVersion:0,playQueueSelectedItemID:null,message:null},url:function(){return"/playQueues/"+this.id},initialize:function(e,t){
this.set("server",t.server),this.set("collection",new p.a([],{server:t.server}))},_fetch:function(){var e=a.a.result(this,"url");return this._ajax("GET",e)},convert:function(e){var t=a.a.isObject(e)?e:u.a.parseXML(e);return u.a.parseInteger(t,["playQueueVersion","playQueueSelectedItemOffset"]),u.a.parseArray(t,"Metadata"),u.a.parseBoolean(t,"playQueueShuffled"),t.stationService?(u.a.parseBoolean(t,"allowRepeat"),u.a.parseBoolean(t,"allowSeek"),u.a.parseBoolean(t,"allowShuffle"),
u.a.parseBoolean(t,"allowSkipPrevious"),u.a.parseInteger(t,"stationSkipsPerHour"),u.a.parseInteger(t,"serviceSkipsPerDay"),t.isRadio=!0):t.isRadio=!1,t},parse:function(e){var t=h[this.get("mediaType")].concat("Directory");e=u.a.replaceXMLElementNames(e,t,"Metadata")
;var n=this.convert(e),i=["playQueueSelectedItemID","playQueueSelectedItemOffset","playQueueSelectedMetadataItemID","message","isRadio","stationTitle","stationThumb","stationService","allowRepeat","allowSeek","allowShuffle","allowSkipPrevious","stationSkipsPerHour","serviceSkipsPerDay"];n.playQueueVersion>this.get("playQueueVersion")&&i.push("playQueueID","playQueueVersion");var r=a.a.pick(n,i);return r.shuffled=!!n.playQueueShuffled,r.hasUpNext=!!n.playQueueLastAddedItemID,this.set(r),
this.parseElementCollection(n)},parseElementCollection:function(e){var t=e.Metadata,n=a()(t).pluck("playQueueItemID").indexOf(e.playQueueSelectedItemID.toString()),i=parseInt(e.playQueueSelectedItemOffset,10),r=i-n,s=this.get("collection");return e.identifier&&s.setContext("identifier",e.identifier),e.mediaTagPrefix&&s.setContext("mediaTagPrefix",e.mediaTagPrefix),e.mediaTagVersion&&s.setContext("mediaTagVersion",e.mediaTagVersion),a.a.each(t,function(e,t){e.queueIndex=r+t}),t.message=e.message,
t.totalSize=parseInt(e.playQueueTotalCount,10),t.availableRange={start:r,end:r+t.length},t},_ajax:function(e,t){var n={repeat:this.get("repeatAll")?1:0,includeChapters:1};"audio"===this.get("mediaType")&&(n.includeRelated=1),t=c.join(t,n);var i=a.a.extend(this.get("server").getXHROptions(t),{type:e}),r=this._$ajax(i),s=a.a.bind(function(e){var t=this.parse(e);t.message&&o.a.trigger("show:alert",{type:"error",message:t.message});var n=this.get("collection");n.totalSize=t.totalSize,
n.availableRange=t.availableRange,n.reset(t,{parse:!0}),this.set("selectedItem",this.getCurrentItem())},this);return r.done(s,this)},_$ajax:function(e){return s.a.ajax(e)},getCurrentItem:function(){var e=this.get("playQueueSelectedItemID");return this.get("collection").findWhere({playQueueItemID:e})||null},queueContent:function(e,t){t||(t={});var n={type:this.get("mediaType")};if(e.get("playlistType"))n.playlistID=e.get("ratingKey");else{var i=a.a.pick(t,"unwatched","items","excludeSeedItem")
;n.uri=l.a.uri(e,i)}return t.firstItemKey&&(n.key=t.firstItemKey),t.extrasPrefixCount&&(n.extrasPrefixCount=t.extrasPrefixCount),n.shuffle=t.shuffle?1:0,t.continuous&&"episode"===e.get("type")&&(n.continuous=1),this.isNew()?this._addContentPromise=this._ajax("POST",c.join("/playQueues",n)):(n.next=t.next?1:0,this.set("hasUserAdditions",!0),this._addContentPromise=this._ajax("PUT",c.join(a.a.result(this,"url"),n))),this._addContentPromise},addContent:function(e,t){
return this.queueContent(e,t).then(a.a.bind(this._setSelectedItem,this,t))},_setSelectedItem:function(e){var t;if(e&&e.firstItemKey){var n=e.firstItemKey;t=this.get("collection").find(function(e){return e.get("key")===n})}else t=this.get("collection").at(0);this.set("selectedItem",t)},removeItem:function(e){if(e.get("playQueueItemID")===this.get("selectedItem").get("playQueueItemID"))return s.a.Deferred().resolve().promise();this.set("hasUserAdditions",!0)
;var t=c.join([a.a.result(this,"url"),"/items/",e.get("playQueueItemID")]);return this._ajax("DELETE",t)},moveItem:function(e,t){if(e===this.get("selectedItem").get("playQueueItemID"))return s.a.Deferred().resolve().promise();var n=t||this.get("selectedItem").get("playQueueItemID");this.set("hasUserAdditions",!0);var i={after:n},r=c.join([a.a.result(this,"url"),"/items/",e,"/move"],i);return this._ajax("PUT",r)},isItemQueueable:function(e){var t=a()(e).result("url")
;if(!e.get("playlistType")&&!/\/(?:library|hubs|services\/gracenote)\//.test(t))return!1;if(/\/sync\//.test(t))return!1;if(/\/folder/.test(t))return!1;if(/\/theme\//.test(t))return!1;var n=e.get("currentSubset")&&e.get("currentSubset").id;if("folder"===n||"recentlyViewedShows"===n)return!1;var i=e.get("type")&&("photoalbum"===e.get("type")||"photo"===e.get("type")),r="photo"===e.viewGroup||i;return e.server.supports("photoPlayQueues")||!r},toggleShuffle:function(){var e=[a.a.result(this,"url")]
;return this.get("shuffled")?e.push("/unshuffle"):e.push("/shuffle"),this._ajax("PUT",c.join(e))},setRepeatAll:function(e){return this.set("repeatAll",e),this.fetch()},yieldOwnership:function(){return this.set("owned",!1),(this._addContentPromise||s.a.Deferred().resolve().promise()).then(a.a.bind(function(){return this.get("playQueueID")&&this.get("collection").length>0?a.a.result(this,"url")+"?own=1&window=200":null},this))},takeOwnership:function(){
if(this.get("owned"))return s.a.Deferred().resolve().promise();this.set("owned",!0);var e=a.a.result(this,"url")+"?own=1";return this._ajax("GET",e)},supports:function(){return!0},getIdFromKey:function(e){var t=/playQueues\/([^\/?]+)/.exec(e);return t&&t[1]||null}});t.a=f},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(1248),s=r.a.extend({initialize:function(e){this.playQueue=e.playQueue,this.includeSelectedItem=e.includeSelectedItem,this.addFilter(a.a.bind(this.filterUpNext,this)),
this.listenForUpNextChanges()},listenForUpNextChanges:function(){var e=a.a.debounce(this.onPlayQueueChange),t=["change:playQueueSelectedItemID","change:playQueueLastAddedItemID"];this.listenTo(this.playQueue,t.join(" "),e),this.listenTo(this.playQueue.get("collection"),"change:queueIndex",e)},filterUpNext:function(e){var t=this.superset.indexOf(e),n=this.playQueue.getUpNextRange(),i=n.start,a=n.end;return this.includeSelectedItem||(i+=1),t>=i&&t<=a},onPlayQueueChange:function(){this.refilter()}
});t.a=s},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(19),s=n(22),o=n(508),l=s.a.extend({name:"FilterCollection",context:["server","section","includeAdvanced"],model:o.a,comparator:"filterType",includeAdvanced:!0,url:function(){var e=a.a.result(this.section,"url"),t=this.section.get("currentType"),n={includeAdvanced:this.includeAdvanced?1:0};return t&&(n.type=t.id),r.join([e,"/filters"],n)},findUnwatchedFilter:function(){return this.get("unwatched")||this.get("unwatchedLeaves")}});t.a=l
},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"FirstCharacterModel",context:["server","section"],idAttribute:"key",rootPropertyName:"Directory",syncedAttrs:{key:i.a.string,title:i.a.string,size:i.a.integer},urlRoot:function(){return"/library/sections/"+this.section.id+"/firstCharacter"}});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"MediaTypeModel",context:["server","section"],sessionAttrs:{id:i.a.integer,typeString:i.a.string,
title:i.a.string,plural:i.a.string,mediaType:i.a.string,child:i.a.string,parent:i.a.string,selected:i.a.boolean},defaults:{selected:!1}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(16),r=n(1276),s=i.a.extend({name:"MomentListModel",context:["server"],url:function(){return this.get("momentKey")},sessionAttrs:{momentKey:a.a.string},syncedAttrs:{key:a.a.string},syncedRelations:{moments:{relationClass:r.a,rootPropertyName:"Directory"}}});t.a=s},function(e,t,n){"use strict"
;var i=n(3),a=n.n(i),r=n(4),s=n(16),o=n(17),l=["all","recentlyAdded","recentlyViewed","recentlyViewedShows","onDeck","newest","folder"],u=o.a.extend({name:"SectionSubsetModel",context:["server","section"],idAttribute:"key",rootPropertyName:"Directory",sessionAttrs:{selected:s.a.boolean},syncedAttrs:{key:s.a.string,title:s.a.string,secondary:s.a.boolean},derivedAttrs:{primary:function(){return!this.get("secondary")&&a.a.contains(l,this.get("key"))}},defaults:{selected:!1},
augmentResponse:function(e){return"all"===e.key&&(e.title=n.i(r.default)("All")),e}},{whitelistedPrimaryKeySubsets:l});t.a=u},function(e,t,n){"use strict";var i=n(60),a=n(82),r=n(56),s=n(53),o=n(16),l=n(52),u=n(17),c=n(88),d=u.a.extend({name:"HubModel",context:["server","section","allowSync"],entityType:r.c,entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return n.i(s.a)(this.entityType,e.key,this.server.entityID())},idAttribute:"hubIdentifier",
rootPropertyName:"Hub",url:function(){return this.get("key")||this.get("hubKey")},sessionAttrs:{isMetadataListPending:o.a.boolean,isMetadataListPopulated:o.a.boolean,metadataListError:o.a.object},syncedAttrs:{key:o.a.string,hubKey:o.a.string,hubIdentifier:o.a.string,title:o.a.string,summary:o.a.string,icon:o.a.string,thumb:o.a.string,type:o.a.string,size:o.a.integer,totalSize:o.a.integer,more:o.a.boolean,random:o.a.boolean,browse:o.a.boolean,upNext:o.a.boolean},syncedRelations:{metadataList:{
relationClass:c.default}},defaults:{isMetadataListPending:!0,isMetadataListPopulated:!1,metadataListError:null},initialize:function(){this.listenTo(this.get("metadataList"),"change:populatedRange",this.onPopulatedRangeChange)},augmentResponseText:function(e,t){return t===l.a.xml?n.i(a.a)(e):e},augmentResponse:function(e){var t=i.a.parseInteger(e.size)||0;return e.metadataList={containerKey:e.key||e.hubKey,Metadata:e.Metadata,size:t},e},onPopulatedRangeChange:function(e,t){
var n=t.size,i=e.get("totalSize"),a={size:n};null!=i&&(a.more=i>n),this.set(a)}});t.a=d},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(240),s=n(19),o=n(271),l=n(16),u=n(17),c=n(1287),d=u.a.extend({mixins:[o.a],name:"PlaylistListModel",context:["server","section"],idAttribute:"key",collectionName:"playlists",url:function(){return this.getPaginatedUrl(a.a.result(this,"containerKey"))},containerKey:function(){var e=this.section.get("currentType"),t=this.section.get("currentSort"),n={type:15}
;return n.sort=t?t.id+":"+(t.get("direction")||"asc"):"titleSort:asc",e&&(n.playlistType=e),this.section.get("onlyDumb")&&(n.smart=0),s.join("/playlists/all",n)},sessionAttrs:{isPlaylistList:l.a.boolean,currentPageStart:l.a.integer,currentPageSize:l.a.integer,populatedRange:l.a.object},syncedAttrs:{totalSize:l.a.integer},syncedRelations:{playlists:{relationClass:c.a,rootPropertyName:"Playlist",options:function(e){return{containerKey:a.a.result(this,"containerKey")}},setOptions:function(e){
return{remove:e.remove,at:e.at}}}},defaults:function(){return{isPlaylistList:!0,populatedRange:{start:0,end:0,size:0}}},initialize:function(){this.startPopulatedRangeMonitor()},sync:function(e,t,n){var i=r.a.addVersionHeader(2,n);return u.a.prototype.sync.call(this,e,t,i)}});t.a=d},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(10),s=n.n(r),o=n(19),l=n(203),u=n(16),c=n(17),d=n(511),p=c.a.extend({name:"PlaylistModel",context:["server","containerKey"],idAttribute:"ratingKey",
rootPropertyName:"Playlist",urlRoot:"/playlists",saveUrl:function(){return"/library/metadata/"+this.id},sessionAttrs:{isPlaylist:u.a.boolean,isLibraryItem:u.a.boolean},syncedAttrs:{ratingKey:u.a.string,key:u.a.string,guid:u.a.string,type:u.a.string,playlistType:u.a.string,title:u.a.string,titleSort:u.a.string,composite:u.a.string,summary:u.a.string,smart:u.a.boolean,allowSync:u.a.boolean,duration:u.a.integer,durationInSeconds:u.a.integer,leafCount:u.a.integer,addedAt:u.a.integer,
updatedAt:u.a.integer},sessionRelations:{children:{relationClass:d.a,attrs:function(e){var t={};return"audio"===e.playlistType&&(t.includeRelated=1),{containerKey:o.join(["/playlists",e.ratingKey,"items"],t)}},options:function(){return{playlist:this}}}},defaults:{isPlaylist:!0,isLibraryItem:!0},findItem:function(e){return this.get("children").getCollection().findWhere({playlistItemID:e})},moveItem:function(e,t){if(void 0!==e){var n=t?{after:t
}:{},i=o.join([a.a.result(this,"url"),"/items/",e,"/move"],n),r=a.a.extend(this.server.getXHROptions(i),{type:"PUT"}),l=s.a.ajax(r),u=this.get("children").getCollection(),c=this.findItem(e);u.remove(c);var d=this.findItem(t),p=d?u.indexOf(d)+1:0;return u.add(c,{at:p}),l}},removeItem:function(e){var t=this;if(void 0!==e){var n=o.join([a.a.result(this,"url"),"/items/",e]),i=a.a.extend(this.server.getXHROptions(n),{type:"DELETE"}),r=s.a.ajax(i);r.then(function(e){t.set(t.parse(e))})
;var l=this.get("children").getCollection(),u=this.findItem(e);return l.remove(u),l.trigger("destroy",u,l),r}},addContent:function(e,t){var n=this,i=this.isNew()?"POST":"PUT",r=[a.a.result(this,"url")],u={};this.isNew()?(u.type=this.get("playlistType"),u.title=this.get("title"),u.smart=this.get("smart")?1:0):r.push("/items"),e.get("playQueueID")?u.playQueueID=e.get("playQueueID"):u.uri=l.a.uri(e,t);var c=o.join(r,u),d=a.a.extend(e.server.getXHROptions(c),{type:i}),p=s.a.ajax(d)
;return p.then(function(e){n.set(n.parse(e))}),p.promise()},isLibraryItem:function(e,t){return!0},isPlexMusicItem:function(){return!1}});t.a=p},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"TagModel",context:["server","section"],idAttribute:"tag",syncedAttrs:{id:i.a.integer,tag:{type:i.a.string,save:!0},tagType:i.a.integer,librarySectionID:i.a.string,librarySectionKey:i.a.string,librarySectionType:i.a.integer,filter:i.a.string,role:i.a.string,thumb:i.a.string,
count:i.a.integer}});t.a=r},function(e,t,n){"use strict";var i=n(82),a=n(56),r=n(53),s=n(16),o=n(52),l=n(17),u=n(270),c=n(517),d=l.a.extend({name:"LiveTVSessionModel",context:["server"],entityType:a.j,entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return n.i(r.a)(this.entityType,e.key||this.cid,this.server.entityID())},idAttribute:"key",rootPropertyName:"MediaSubscription",sessionAttrs:{dvrID:s.a.integer,channelIdentifier:s.a.string,
activityUUID:s.a.string},syncedAttrs:{key:s.a.string,type:s.a.integer,title:s.a.string},syncedRelations:{grabOperation:{relationClass:c.b,rootPropertyName:"MediaGrabOperation",deferred:!0},timeline:{relationClass:u.a,rootPropertyName:"Timeline",deferred:!0},alsoAiring:{relationClass:u.a,rootPropertyName:"AlsoAiring",deferred:!0}},augmentResponseText:function(e,t){return t===o.a.xml?n.i(i.a)(e):e},augmentResponse:function(e){var t=e[this.rootPropertyName]||e,n=t.Timeline,i=t.AlsoAiring
;return n&&(t.Timeline=n.Metadata),i&&(t.AlsoAiring=i.Metadata),e}});t.a=d},function(e,t,n){"use strict";var i=n(107),a=n(1501),r=n(506),s=n(1250),o=r.a.extend({storageKey:"resumePlayQueue",serialize:function(e){return r.a.prototype.serialize.call(this,a.a.augmentDictionary(e,{ttl:2592e5}))},_getStorage:function(){return i.a}}),l=s.a.extend({initialize:function(e,t){s.a.prototype.initialize.apply(this,arguments),this.user=t.user,this.storage=new o},storageKey:function(){return this.user.id},
toJSON:function(){var e=s.a.prototype.toJSON.apply(this,arguments);return a.a.augmentObj(e,2592e5,!0)}});t.a=l},function(e,t,n){"use strict";var i=n(22),a=n(133),r=i.a.extend({name:"ProviderFeatureCollection",context:["server","provider"],model:a.b});t.a=r},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(16),s=n(17),o=s.a.extend({name:"CloudDriveUpdateStatusModel",context:["server"],url:"/services/clouddrive/updatestatus",syncedAttrs:{updating:r.a.boolean},fetchAndNotUpdating:function(){
var e=this;return this.fetch().then(function(){return e.get("updating")?a.a.Deferred().rejectWith(e,[e]).promise():e})}});t.a=o},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(16),s=n(79),o=n(13),l=s.c.prototype,u=s.c.extend({name:"TransientServerModel",cache:null,persistInCache:!1,sessionAttrs:a.a.extend({},s.c.prototype.sessionAttrs,{isTransient:r.a.boolean,originalMachineIdentifier:r.a.string}),defaults:function e(){var e=s.c.prototype.defaults.apply(this,arguments)
;return a.a.extend({},e,{friendlyName:"Transient Server",isTransient:!0})},initialize:function(e){var t=e.originalMachineIdentifier,i=n.i(o.a)("appModel"),r=i.get("servers").get(t);r&&a.a.extend(e,r.pick("publicAddressMatches","version")),s.c.prototype.initialize.apply(this,arguments)},addConnection:function(){var e=l.addConnection.apply(this,arguments),t=e.getIpAddressFromPlexDirectAddress();return t&&e.set("address",t),this.testConnection(e),e},updateCacheKey:function(){},
onConnectionTestError:function(e,t){e.get("isAborted")||(e.get("isHttps")&&this.addConnection({scheme:"http",address:e.getIpAddressFromPlexDirectAddress(),port:e.get("port")}),this.get("connections").hasOnlyFailedConnections()&&this._reject())}});t.a=u},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(16),s=n(17),o=n(1323),l=s.a.extend({name:"StoredServerModel",idAttribute:"machineIdentifier",syncedAttrs:{machineIdentifier:r.a.string,friendlyName:r.a.string,accessToken:r.a.string,
sourceTitle:r.a.string,home:r.a.boolean,synced:r.a.boolean,serverClass:r.a.string,isShared:r.a.boolean,version:r.a.string,publicAddressMatches:r.a.boolean,ownerId:r.a.integer,mediaProviders:r.a.integer},syncedRelations:{connections:{relationClass:o.a}},copyFromServer:function(e){var t={};a.a.each(this.syncedAttrs,function(n,i){t[i]=e.get(i)}),this.set(t)}});t.a=l},function(e,t,n){"use strict";function i(e,t){switch(e){case o.INT:case o.ENUM:return a.a.parseInteger(t);case o.BOOL:
return a.a.parseBoolean(t);default:return t}}var a=n(60),r=n(16),s=n(17);n.d(t,"a",function(){return o});var o={INT:"int",TEXT:"text",BOOL:"bool"},l=s.a.extend({name:"MediaSettingModel",context:["server"],idAttribute:"id",rootPropertyName:"Setting",syncedAttrs:{id:r.a.string,advanced:r.a.boolean,default:r.a.oneOfType(r.a.integer,r.a.string,r.a.boolean),hidden:r.a.boolean,group:r.a.string,label:r.a.string,summary:r.a.string,type:r.a.oneOf(o.INT,o.TEXT,o.BOOL,o.ENUM),
value:r.a.oneOfType(r.a.integer,r.a.string,r.a.boolean),enumValues:r.a.array},augmentResponse:function(e){return e.default=i(e.type,e.default),e.value=i(e.type,e.value),e.enumValues&&(e.enumValues=e.enumValues.split("|").map(function(t){var n=t.split(":"),a=n[0],r=n[1],s=void 0===r?a:r;return{label:decodeURIComponent(s),value:i(e.type,a)}})),e},parseAndSetValue:function(e){this.set("value",i(this.get("type"),e))}});t.b=l},function(e,t,n){"use strict"
;var i=n(82),a=n(52),r=n(22),s=n(395),o=r.a.extend({name:"MediaSubscriptionCollection",context:["server"],model:s.a,url:"/media/subscriptions",augmentResponseText:function(e,t){return t===a.a.xml?n.i(i.a)(e):e}});t.a=o},function(e,t,n){"use strict";var i=n(82),a=n(52),r=n(22),s=n(395),o=r.a.extend({name:"MediaSubscriptionTemplateCollection",context:["server"],url:"/media/subscriptions/template",model:s.a,augmentResponseText:function(e,t){return t===a.a.xml?n.i(i.a)(e):e},
augmentResponse:function(e){return e.SubscriptionTemplate}});t.a=o},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(10),s=n.n(r),o=n(49),l=n(75),u=n(1337),c=l.a.extend({whitelistedAttrs:["id","home","protected","restricted","title","username","email","thumb","recommendationsPlaylistId","allowSync","allowCameraUpload","allowChannels","filterMovies","filterTelevision","filterMusic","filterPhotos"],
saveAttrs:["allowSync","allowCameraUpload","allowChannels","filterMovies","filterTelevision","filterMusic","filterPhotos"],filterAttrs:["filterMovies","filterTelevision","filterMusic","filterPhotos"],urlRoot:function(){return this.get("home")?"/api/users":"/api/friends"},convert:function(e){var t=a.a.isObject(e)?e:o.a.parseXML(e);return t.User&&(t=t.User),o.a.parseInteger(t,"id"),o.a.parseBoolean(t,["home","protected","restricted","allowSync","allowCameraUpload","allowChannels"]),
o.a.parseQueryString(t,["filterMovies","filterTelevision","filterMusic","filterPhotos"],"|"),o.a.parseArray(t,"Server"),t},parse:function(e){var t=this.convert(e);return this.parseServers(t),t=a.a.pick(t,this.whitelistedAttrs)},parseServers:function(e){var t=this.get("serverShares"),n=e.Server;t?t.set(n,{parse:!0}):(t=new u.a(n,{server:this.server,parent:this,populated:!0,parse:!0}),this.set("serverShares",t))},cloneDeep:function(){var e=this.toJSON();e.Server=e.serverShares.toJSON(),
e.serverShares=null;var t={server:this.server,section:this.section,channel:this.channel,parent:this.parent,parse:!0,skipCache:!0};return new this.constructor(s.a.extend(!0,{},e),t)||null},getSaveParams:function(e,t){var n=this;if(a.a.isEmpty(e)){var i=this.pick(this.saveAttrs);return a.a.map(i,function(e,t,i){a.a.isBoolean(e)?i[t]=e?"1":"0":a.a.contains(n.filterAttrs,t)&&(i[t]=n.stringifyFilter(e))},this),i}return l.a.prototype.getSaveParams.apply(this,arguments)},stringifyFilter:function(e){
return a.a.map(a.a.keys(e),function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("|")}});t.a=c},function(e,t,n){"use strict";var i=n(108),a=n(518),r=i.a.extend({model:a.a,url:"/api/home/users",parse:function(e){return this.convert(e,"User")}});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(1341),r=i.a.extend({name:"UserEntitlementCollection",model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(19),a=n(52),r=n(22),s=n(1342),o=r.a.extend({
name:"UserFeatureCollection",context:["server"],model:s.a,url:i.join(["https://plex.tv","/api/v2/features"]),responseType:a.a.json});t.a=o},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(19),s=n(56),o=n(53),l=n(16),u=n(76),c=u.a.prototype,d=u.a.extend({name:"UserPlaylistItemModel",entityType:s.i,entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return n.i(o.a)(this.entityType,e.id,this.server.entityID())},
context:["server","section","channel","identifier","mediaTagPrefix","mediaTagVersion","containerKey","userPlaylistKey"],idAttribute:"id",cache:null,url:function(){return r.join(["/pms/playlists/",this.userPlaylistKey,"items",this.id])},sessionAttrs:a.a.extend({},c.sessionAttrs,{isUserPlaylistItem:l.a.boolean}),syncedAttrs:a.a.extend({},c.syncedAttrs,{id:l.a.integer,sourceTitle:l.a.string,recommender:l.a.string,message:l.a.string}),defaults:a.a.extend({},c.defaults,{isUserPlaylistItem:!0}),
augmentResponse:function(e,t){var n=c.augmentResponse.apply(this,arguments);if(n.type="userPlaylistItem",n.ratingKey=n.url,n.thumb){var i=/\?(\d+)$/.exec(n.thumb);i&&(n.addedAt=i[1])}return n}});t.a=d},function(e,t,n){"use strict";var i=n(22),a=n(1345),r=i.a.extend({name:"UserProviderCollection",model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(1346),r=i.a.extend({name:"UserRoleCollection",model:a.a});t.a=r},function(e,t,n){"use strict"
;var i=n(16),a=n(17),r=n(802),s=n(1398),o=a.a.extend({name:"UserSubscriptionModel",syncedAttrs:{active:i.a.boolean,status:i.a.oneOf.apply(i.a,s.a),plan:i.a.oneOf.apply(i.a,r.a)}});t.a=o},function(e,t,n){"use strict";function i(e){var t=e.key,i=e.getModel,r=n.i(a.a)(t),s="is"+r+"Pending",o="is"+r+"Populated",l=t?t+"Error":"error";return function(e,n){
var a=n.startIndex,r=n.endIndex,u=n.pages,c=void 0===u?3:u,d=n.reloadThreshold,p=void 0===d?6:d,h=n.disableReloadThreshold,f=r-a+1,v=i(e,n),m=t?v.get(t):v,g=(v.sessionAttrs,m.get("populatedRange")),y=a,b=r;if(a<g.start?y=Math.max(0,a-f*c):b=a+f*c,!(y>=g.start&&b<=g.end)){var S=v.get(s);v.set(s,!0),m.populateRange({start:y,end:b,reloadThreshold:h?null:f*p}).done(function(){var e;v.set((e={},e[s]=!1,e[o]=!0,e[l]=null,e))}).fail(function(e,t){var n;if(t.aborting)return void v.set(s,S);v.set((n={},
n[s]=!1,n[l]=t,n))})}}}var a=(n(31),n(282));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.key,i=e.getModel,r=n.i(a.a)(t),s="is"+r+"Pending",o="is"+r+"Populated",l=t?t+"Error":"error";return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.count,r=i(e,n),u=t?r.get(t):r,c=(r.sessionAttrs,r.get(s));r.set(s,!0),u.repopulateRange(a).done(function(){var e;r.set((e={},e[s]=!1,e[o]=!0,e[l]=null,e))}).fail(function(e,t){var n;if(t.aborting)return void r.set(s,c)
;r.set((n={},n[s]=!1,n[l]=t,n))})}}var a=(n(31),n(282));t.a=i},function(e,t,n){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.allowMetrics,a=t.metricsProperties,s=void 0===a?{}:a,d=e.server,p="/library/metadata/"+e.get("ratingKey")+"/analyze",h=d.getXHROptions(p,{type:"PUT"}),f=e.get("mediaState"),v=u.a;e.set("mediaState",v);var m=o.a.ajax(h).fail(function(t){e.get("mediaState")===v&&e.set("mediaState",f)})
;return i&&n.i(l.a)("metrics").trackClick(r()({},s,{action:c.F,type:e.get("type")})),m.promise()}var a=n(6),r=n.n(a),s=n(10),o=n.n(s),l=n(13),u=n(1394),c=n(64);t.a=i},function(e,t,n){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.allowMetrics,a=t.metricsProperties,s=void 0===a?{}:a,d=e.server,p="/library/metadata/"+e.get("ratingKey")+"/refresh",h=d.getXHROptions(p,{type:"PUT"}),f=e.get("metadataState"),v=u.d;e.set("metadataState",v)
;var m=o.a.ajax(h).fail(function(t){e.get("metadataState")===v&&e.set("metadataState",f)});return i&&n.i(l.a)("metrics").trackClick(r()({},s,{action:c.D,type:e.get("type")})),m.promise()}var a=n(6),r=n.n(a),s=n(10),o=n.n(s),l=n(13),u=n(797),c=n(64);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.providerModel,n=e.playQueueID,i=e.playQueueType,o=e.playQueueRepeat,l=e.playQueueOwn,u=void 0===l||l,c=t&&t.get("features"),d=c&&c.get(s.a.PLAY_QUEUE);return d?new a.a({playQueueID:n,
key:d.get("key"),type:i,repeat:o,own:u},{server:t.server}):new r.a({type:i},{server:t.server})}var a=(n(31),n(232),n(1259)),r=n(1257),s=n(133);t.a=i},function(e,t,n){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.get("isPreFetched"))return r.a.Deferred().resolve().promise();var n={includeConcerts:1,includeExtras:1,includeOnDeck:1,includePopularLeaves:1,includeChapters:1};return e.get("type")===s.m&&(n.includeRelated=1),
!t.forceSyncCheckFiles&&e.server.supports("asyncCheckFiles")?(n.asyncCheckFiles=1,n.asyncRefreshAnalysis=1,n.asyncRefreshLocalMediaAgent=1):n.checkFiles=1,e.fetch({data:n}).done(function(){e.set("isPreFetched",!0)})}var a=n(10),r=n.n(a),s=n(30);t.a=i},function(e,t,n){"use strict";function i(e){return e.get("isOpen")?e.get("hasError")?a.b:e.get("isPaused")?a.c:e.get("isBuffering")?a.d:a.e:a.a}var a=n(542);t.a=i},function(e,t,n){"use strict";function i(e,t){
var n=e.server,i=r.a.result(e,"url"),a=n.getXHROptions(l.join([i,"move"],{after:t}),{type:"PUT"});return o.a.ajax(a).promise()}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(19);t.a=i},function(e,t,n){"use strict";function i(e){return/^\w+:\/\//.test(e)}function a(){return n.i(r.createSelector)(function(e,t){return t.url},n.i(o.a)(),l.a,function(e,t,n){if(e&&t&&t.activeConnection){var a=!!n&&!t.isFullServer,r=a?n:t;if(r&&r.activeConnection){
var o=r.machineIdentifier===t.machineIdentifier,l=o?"":t.activeConnection.uri,u=i(e)?e:s.join([l,e],{"X-Plex-Token":t.accessToken});return s.join([r.activeConnection.uri,"/photo/:/transcode"],{url:u,"X-Plex-Token":r.accessToken})}}})}var r=n(5),s=(n.n(r),n(19)),o=n(46),l=n(1384);t.a=a},function(e,t,n){"use strict";var i=n(5),a=(n.n(i),n(150)),r=n.i(i.createSelector)(a.a,function(e){return e.libraries});t.a=r},function(e,t,n){"use strict";function i(){
return n.i(a.createSelector)(n.i(r.a)(),n.i(s.a)(),function(e,t){if(null!=e&&t){return t.Media.find(function(t){var n=t.beginsAt,i=t.endsAt;return n<=e&&i>e})}})}var a=n(5),r=(n.n(a),n(528)),s=n(401);t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(n.i(s.a)(),r.a,function(e,t){return e&&e.timeline?e.timeline.map(function(e){return t[e]}):[]})}var a=n(5),r=(n.n(a),n(110)),s=n(529);t.a=i},function(e,t,n){"use strict";var i=n(5),a=(n.n(i),
n(150)),r=n.i(i.createSelector)(a.a,function(e){return e.liveTVSessions});t.a=r},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(function(e,t){return t.hubEntityID},r.a,function(e,t){return t[e]})}var a=n(5),r=(n.n(a),n(782));t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(n.i(r.a)(),function(e){if(!e||!e.Media)return{}
;var t=e.entityID,i=e.type,a=e.thumb,r=e.Media,o=r[0],l="clip"===i,u=o&&o.Part&&o.Part[0],c=u&&u.key,d=l||!c?a:c,p=u&&u.orientation,h=p&&n.i(s.a)(p);return{entityID:t,imageWidth:o&&(h?o.height:o.width),imageHeight:o&&(h?o.width:o.height),url:d,isVideo:l}})}var a=n(5),r=(n.n(a),n(21)),s=n(836);t.a=i},function(e,t,n){"use strict";var i=n(5),a=(n.n(i),n(150)),r=n.i(i.createSelector)(a.a,function(e){return e.hubs});t.a=r},function(e,t,n){"use strict";function i(){
return n.i(a.createSelector)(n.i(s.a)(r.e),n.i(o.a)(),function(e){return!!e.remotePlayer},function(e,t,n){return e&&t.hasAdaptiveBitrate&&!n})}var a=n(5),r=(n.n(a),n(112)),s=n(404),o=n(534);t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(n.i(s.a)(),n.i(o.a)(),r.a,function(e,t){if(t){var n=e.partIndex,i=void 0===n?0:n;return t.Part[i]}})}var a=n(5),r=(n.n(a),n(110)),s=n(42),o=n(530);t.a=i},function(e,t,n){"use strict";function i(){
return n.i(a.createSelector)(n.i(r.a)(),function(e){return e&&e.playQueue})}var a=n(5),r=(n.n(a),n(42));t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(n.i(s.a)(),r.a,function(e,t){return t[e.metadataItem]})}var a=n(5),r=(n.n(a),n(110)),s=n(787);t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(function(e,t){return t.playlistItemEntityID},r.a,function(e,t){return t[e]})}var a=n(5),r=(n.n(a),n(788));t.a=i},function(e,t,n){"use strict"
;var i=n(5),a=(n.n(i),n(150)),r=n.i(i.createSelector)(a.a,function(e){return e.playlistItems});t.a=r},function(e,t,n){"use strict";function i(e){return n.i(o.createSelector)(u.a,n.i(c.a)(),function(t,n){return n?n.reduce(function(n,i){var a=t[i];return a&&s.a.findWhere(a.features,{type:e})&&n.push(i),n},[]):[]})}function a(e){return n.i(l.a)(i(e),function(e){return e})}var r=n(3),s=n.n(r),o=n(5),l=(n.n(o),n(228)),u=n(231),c=n(790);t.a=a},function(e,t,n){"use strict";function i(){
return n.i(a.createSelector)(n.i(r.a)(),function(e){return e?e.desktop.providers:void 0})}var a=n(5),r=(n.n(a),n(46));t.a=i},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(5),s=(n.n(r),n(403)),o=n.i(r.createSelector)(s.a,function(e){return a.a.where(e,{isOutOfDate:!0})});t.a=o},function(e,t,n){"use strict";var i=n(5),a=(n.n(i),n(150)),r=n.i(i.createSelector)(a.a,function(e){return e.mediaSubscriptions});t.a=r},function(e,t,n){"use strict";function i(e){
return n.i(a.createSelector)(function(e,t){return t.email},function(e,t){return t.soleProviderID},function(e,t){return t.authToken},function(e){return e.clientID},l,function(e){return e.isFirstRun},function(t,i,a,l,u,c){var d={clientID:l};if(!n.i(o.a)()){var p=e?window.location.href+"?"+r.stringifyParams(e):window.location.href;d.forwardUrl=p,c&&(d.skipSignInUrl=n.i(s.a)(window.location.href,r.join(["#!/setup/skipSignIn"],{forwardUrl:p})))}return u&&(d.code=u),i&&(d.provider=i),t&&(d.email=t),
a&&(d.authToken=a),d?r.join(["https://app.plex.tv/auth",r.join(["#!/"],d)]):null})}var a=n(5),r=(n.n(a),n(19)),s=n(574),o=n(596),l=n.i(a.createSelector)(function(e){return e.ui.signInLaunchPage},function(e){return e.code});t.a=i},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(80),s=n(538),o=s.a.extend({maxCycles:3,maxSize:50,imageParamsRegex:/&?(width|height|minSize)=([^&]+)/g,initialize:function(){s.a.prototype.initialize.apply(this,arguments),this._infoMemo={}},store:function(e,t){
if(t||(t=this.getItemCacheKey(e)),t){var n=e.url,i=this.getImageInfo(n),r={url:n,blobUrl:e.blobUrl,size:i.size},s=this.get(t);if(s){if(!s.images.hasOwnProperty(n)){var o=s.sizes;s.images[n]=r;var l=a.a.sortedIndex(o,r,"size");o.splice(l,0,r)}}else s={images:{},sizes:[r]},s.images[n]=r,this.startListening(),s._cacheKey=t,this._cache[t]=s,this.size++,e.persistInCache||this.setItemCycle(s,t,a.a.first(this.cycles))}},getItemCacheKey:function(e){return this.getImageInfo(e.url).key},
getImageInfo:function(e){if(this._infoMemo.hasOwnProperty(e))return this._infoMemo[e];var t={width:0,height:0,minSize:0},n=e.replace(this.imageParamsRegex,function(e,n,i){return t[n]=parseInt(i,10),""}),i={key:n,size:t.width*t.height+t.minSize};return this._infoMemo[e]=i,i},removeImageInfo:function(e){this._infoMemo.hasOwnProperty(e)&&delete this._infoMemo[e]},getBlobUrl:function(e){var t=this.getImageInfo(e),n=this.get(t.key);if(n){var i=n.images[e];if(i)return i.blobUrl}},
getPlaceholder:function(e){var t=this.getImageInfo(e),n=this.get(t.key);if(n){if(n.images[e])return;return a.a.last(n.sizes).blobUrl}},remove:function(e,t){s.a.prototype.remove.apply(this,arguments),a.a.each(e.sizes,function(e){this.removeImageInfo(e.url),r.a.hasObjectUrl&&window.URL.revokeObjectURL(e.blobUrl)},this)}});t.a=o},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i="https://forums.plex.tv",a="https://status.plex.tv"},function(e,t,n){
"use strict";var i={DISABLED:0,ENABLED:1,VERBOSE:2};i.settings=[{value:i.DISABLED,title:"Disabled"},{value:i.ENABLED,title:"Enabled"},{value:i.VERBOSE,title:"Verbose"}],t.a=i},function(e,t,n){"use strict";n.d(t,"d",function(){return i}),n.d(t,"a",function(){return a}),n.d(t,"b",function(){return r}),n.d(t,"c",function(){return s});var i="queued",a="matching",r="processing",s="loading"},function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"f",function(){return a}),
n.d(t,"g",function(){return r}),n.d(t,"a",function(){return s}),n.d(t,"c",function(){return o}),n.d(t,"b",function(){return l}),n.d(t,"d",function(){return u}),n.d(t,"k",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"i",function(){return p}),n.d(t,"h",function(){return h});var i="PLAY",a="PAUSE",r="SEEK",s="STOP",o="PREVIOUS",l="NEXT",u="SKIPTO",c="SHOWDETAILS",d="REFRESHPLAYQUEUE",p="SETSTREAM",h="SETQUALITY"},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),
n.d(t,"b",function(){return a}),n.d(t,"c",function(){return r}),n.d(t,"d",function(){return s});var i="stopped",a="paused",r="buffering",s="error"},function(e,t,n){"use strict";var i={TINY:50,SMALL:75,NORMAL:100,LARGE:125,HUGE:200};i.settings=[{value:i.TINY,title:"Tiny"},{value:i.SMALL,title:"Small"},{value:i.NORMAL,title:"Normal"},{value:i.LARGE,title:"Large"},{value:i.HUGE,title:"Huge"}],i.ALL=[i.TINY,i.SMALL,i.NORMAL,i.LARGE,i.HUGE],t.a=i},function(e,t,n){"use strict";var i={CREATED:0,
PROGRESS:1,MATCHING:2,DOWNLOADING_METADATA:3,LOADING_METADATA:4,PROCESSED:5,DELETED:9};t.a=i},function(e,t,n){"use strict";n.d(t,"b",function(){return i});var i="lite",a=["","lifetime","yearly","monthly",i,"comped","pro"];t.a=a},function(e,t,n){"use strict";function i(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.timeFormat,v=void 0===r?"h:mma":r;if(null==e)return"";var m=n.i(p.default)(e,v),g=void 0
;return g=n.i(o.a)(e)?n.i(a.default)("Yesterday"):n.i(l.a)(e)?n.i(u.a)(e)?n.i(a.default)("Tonight"):n.i(a.default)("Today"):n.i(c.a)(e)?n.i(a.default)("Tomorrow"):n.i(d.a)(e)?n.i(h.a)(e):n.i(a.default)("{dayOfWeekAbbreviated}, {monthAbbreviated} {dayNumber}",{dayOfWeekAbbreviated:n.i(h.a)(e,{abbreviate:!0}),monthAbbreviated:n.i(f.a)(e,{abbreviate:!0}),dayNumber:s.a.unix(e).date()}),t?n.i(a.default)("{1} at {2} on {3}",g,m,t):n.i(a.default)("{1} at {2}",g,m)}
var a=n(4),r=n(40),s=n.n(r),o=n(407),l=n(343),u=n(809),c=n(808),d=n(807),p=n(275),h=n(804),f=n(545);t.a=i},function(e,t,n){"use strict";function i(e){var t=[n.i(u.default)("Sunday"),n.i(u.default)("Monday"),n.i(u.default)("Tuesday"),n.i(u.default)("Wednesday"),n.i(u.default)("Thursday"),n.i(u.default)("Friday"),n.i(u.default)("Saturday")],i=t[e];return n.i(l.a)(i,"Unknown day of the week"),i}function a(e){
var t=[n.i(u.default)("Sun"),n.i(u.default)("Mon"),n.i(u.default)("Tue"),n.i(u.default)("Wed"),n.i(u.default)("Thu"),n.i(u.default)("Fri"),n.i(u.default)("Sat")],i=t[e];return n.i(l.a)(i,"Unknown day of the week"),i}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.abbreviate,r=void 0!==n&&n;if(!e)return"";var s=o.a.unix(e).day();return r?a(s):i(s)}var s=n(40),o=n.n(s),l=n(31),u=n(4);t.a=r},function(e,t,n){"use strict";function i(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e)return!1;var n=o()();return r()(t).forEach(function(e){n.add(t[e],e)}),n.unix()<=e}var a=n(65),r=n.n(a),s=n(40),o=n.n(s);t.a=i},function(e,t,n){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e)return!1;var n=o()();return r()(t).forEach(function(e){n.add(t[e],e)}),n.unix()>=e}var a=n(65),r=n.n(a),s=n(40),o=n.n(s);t.a=i},function(e,t,n){"use strict";function i(e){
if(null==e)return!1;var t=r.a.unix(e);return r()().isSame(t,"week")}var a=n(40),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){if(null==e)return!1;var t=r.a.unix(e);return r()().add(1,"day").isSame(t,"day")}var a=n(40),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){return!(null==e||!n.i(a.a)(e))&&parseInt(n.i(r.default)(e,"HH"),10)>16}var a=n(343),r=n(275);t.a=i},function(e,t,n){"use strict"
;var i,a=n(3),r=n.n(a),s=n(3459),o=n.n(s),l=n(3460),u=n.n(l),c=n(3461),d=n.n(c),p=n(3462),h=n.n(p),f=n(3463),v=n.n(f),m=n(3464),g=n.n(m),y=n(3465),b=n.n(y),S=n(3466),I=n.n(S),M=n(3467),C=n.n(M),w=n(3468),D=n.n(w),P=n(3469),T=n.n(P),x=n(3470),E=n.n(x),N=n(3471),L=n.n(N),A=n(3472),k=n.n(A),_=n(3473),O=n.n(_),j=n(3474),R=n.n(j),U=n(3475),z=n.n(U),B=n(3476),F=n.n(B),V=n(3477),Q=n.n(V),H=n(3478),W=n.n(H),Y=n(3479),G=n.n(Y),K=n(3480),q=n.n(K),X=n(3481),Z=n.n(X),J=(i={},i[o.a]=/android/i,
i[u.a]=/plex.*atv|tvos/i,i[d.a]=/chrome/i,i[h.a]=/cloudsync/i,i[g.a]=/dlna/i,i[b.a]=/edge/i,i[I.a]=/firefox/i,i[C.a]=/google.*tv/i,i[D.a]=/internet.*explorer|explorer.*windows/i,i[T.a]=/ios/i,i[E.a]=/linux/i,i[L.a]=/opera/i,i[k.a]=/macosx/i,i[O.a]=/konvergo|plex.*home.*theater|plex.*media.*center/i,i[R.a]=/plex.*media.*server/i,i[z.a]=/roku/i,i[F.a]=/safari/i,i[Q.a]=/samsung/i,i[W.a]=/wii.*u/i,i[G.a]=/windows/i,i[q.a]=/windows.*phone|wince/i,i[Z.a]=/xbox|mystery.*5/i,i),$=r.a.pairs(J),ee={},te={
getIcon:function(e){var t=v.a;return e?ee.hasOwnProperty(e)?ee[e]:(r.a.every($,function(n){var i=n[1].test(e);return i&&(t=n[0],ee[e]=t),!i}),t):t}};t.a=te},function(e,t,n){"use strict";function i(e,t,n){for(var i=[].concat(e),a=i.length-1;a>=0;a--){var s=i[a],l=s.type===o.a,u=n.type===o.a;s&&l!==u||i.splice(a,1)}return i.push(r()({key:t},n)),i}var a=n(6),r=n.n(a),s=n(3),o=(n.n(s),n(31),n(205));t.a=i},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a})
;var i="&",a=","},function(e,t,n){"use strict";function i(e,t){if(!e)return!1;var n="string"==typeof t?decodeURIComponent(t):t;return!!r.a.find(e,function(e){var t=e.value;return r.a.isArray(t)?t.indexOf(n)>-1:t===n})}var a=n(3),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){return a.g===e||a.h===e}var a=n(276);t.a=i},function(e,t,n){"use strict";function i(e,t,n){if(null==n)return e.filter(function(e){return e.key!==t});for(var i=[].concat(e),a=i.length;a-- >0;){
var s=i[a],l=s.key,u=s.value;if(t===l&&n===u)i.splice(a,1);else if(t===l&&o.a.isArray(u)){var c=u.indexOf(n);c>-1&&(u.splice(c,1),1===u.length?i.splice(a,1,r()({},s,{value:u[0]})):u.length||i.splice(a,1))}}return i}var a=n(6),r=n.n(a),s=n(3),o=n.n(s);n(31);t.a=i},function(e,t,n){"use strict";function i(e){if(!r.a.isEmpty(e)){if(e===l)return u;var t=e.map(function(e){
var t=e.key,n=e.value,i=e.operator,a=void 0===i?s.a:i,l=r.a.isArray(n)?n.map(encodeURIComponent).join(o.a):encodeURIComponent(n),u=a.lastIndexOf(s.a),c=a.substr(0,u),d=a.substr(u+1,a.lastIndexOf(s.a));return encodeURIComponent(t)+encodeURIComponent(c)+s.a+encodeURIComponent(d)+l},[]);return l=e,u=t.join(o.b)}}var a=n(3),r=n.n(a),s=n(276),o=n(812);n(31);t.a=i;var l=void 0,u=void 0},function(e,t,n){"use strict";function i(e,t){return e?r.a.reduce(t,function(t,n,i){return e[i]!==n&&(t[i]=n),t
},{}):t}var a=n(3),r=n.n(a);t.a=i},function(e,t,n){var i=n(204).default,a=n(153);e.exports=a(i)},function(e,t,n){var i=n(855).default,a=n(153);e.exports=a(i)},function(e,t,n){"use strict";function i(e){return!(!e||!e.status)&&(401===e.status||422===e.status)}t.a=i},function(e,t,n){"use strict";function i(e){return a.a[e]||""}var a=n(345);t.a=i},function(e,t,n){"use strict";function i(e,t,n){var i=n;if(e.Part.length>1)for(var a=0,r=e.Part.length;a<r;a++){var s=e.Part[a];if(!s.duration)break
;if(t.key===s.key)break;i+=s.duration}return i}t.a=i},function(e,t,n){"use strict";function i(e){var t=e.episodeIndex;if(t>0||0===t)return e.noLeadingZero||(t=n.i(o.a)(t)),e.useLongName?n.i(s.default)("Episode {episodeNumber}",{episodeNumber:t}):n.i(s.default)("E{episodeNumber}",{episodeNumber:t});if(e.date){var i=r()(e.date);return n.i(s.default)("{monthNumber}/{dayNumber}/{shortYear}",{monthNumber:i.month()+1,dayNumber:i.date(),shortYear:i.format("YY")})}return""}
var a=n(40),r=n.n(a),s=n(4),o=n(556);t.a=i},function(e,t,n){"use strict";function i(e){var t=[];return r.a.isArray(e)||(e=[e]),r.a.each(e,function(e){var n=e.Part;n&&r.a.each(n,function(e){e.exists!==!1&&e.accessible!==!1||t.push(e)})}),t}var a=n(3),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e,t){var n=void 0;if(e.Part.length>1)for(var i=0,a=0,s=e.Part.length;a<s&&(n=e.Part[a],n.duration)&&!((i+=n.duration)>t);a++);else n=r.a.first(e.Part);return n}var a=n(3),r=n.n(a);t.a=i
},function(e,t,n){"use strict";function i(e,t,n){var i=n;if(e.Part.length>1)for(var a=0,r=e.Part.length;a<r;a++){var s=e.Part[a];if(!s.duration)break;if(t.key===s.key)break;i-=s.duration}return i}t.a=i},function(e,t,n){"use strict";function i(e,t){if(e.indexes){var n=e.indexes.split(",");if(n.length)return r.a.indexOf(n,t)>-1?t:n[0]}}var a=n(3),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){return r.a.isEmpty(e)?void 0:e.get("type")}var a=n(3),r=n.n(a);t.a=i},function(e,t,n){
"use strict";function i(e){var t=s.a.get("subtitles").id,i=n.i(o.a)(e,{streamType:t,selected:!0}),a=r.a.first(i);if(a&&a.id>0)return a}var a=n(3),r=n.n(a),s=n(90),o=n(206);t.a=i},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(10),s=n.n(r),o=n(4),l=n(280),u=n(554),c=n(829),d=n(206),p=n(824),h=n(181),f=n(113),v=n(90),m=n(234),g=n(272),y=n(29),b={getMediaDecision:function(e){var t=this.augmentProfile(e);if(y.a.info("[MDE] Augmented profile:",t),e.media)return this.analyzeMedia(e.media,t,e)
;var n=e.item,i=n.get("Media");if(!i.length)return{transcodeServer:e.transcodeServer,canPlay:!0,canDirectPlay:!0};if(1===i.length)return this.analyzeMedia(a.a.first(i),t,e);var r=a.a.map(i,function(n){return this.analyzeMedia(n,t,e)},this);return this.getBestDecision(r)},augmentProfile:function(e){var t=e.profile;if(!t)throw new Error("MDE: No player profile provided for "+e.type);var n=e.type===h.a.types.VIDEO,i=s.a.extend(!0,{},t.directPlay),r=s.a.extend(!0,{},t.directStream),o=i.generic
;o&&delete i.generic;var l=e.allowedAC3Containers,u="*"===l;!u&&l&&(l=a.a.isArray(l)?l:[l]);var c=e.allowedEAC3Containers,d="*"===c;!d&&c&&(c=a.a.isArray(c)?c:[c]);var p=e.allowedDCAContainers,f="*"===p;return!f&&p&&(p=a.a.isArray(p)?p:[p]),a.a.each(i,function(t,i){this.mergeGenericOptions(t,o),this.mergeMaxQualityOptions(t,e),(u||l&&a.a.contains(l,i))&&this.addAudioCodec("ac3",t,e),(d||c&&a.a.contains(c,i))&&this.addAudioCodec("eac3",t,e),(f||p&&a.a.contains(p,i))&&this.addAudioCodec("dca",t,e)
;var r=h.a.getStreamByType(e.type),s=t[r];if(s){var v=s.codecs;a.a.each(v,function(t,n){this.mergeMaxQualityOptions(t,e,!0),e.videoCodecOptions&&e.videoCodecOptions[n]&&this.mergeCodecOptions(t,e.videoCodecOptions[n])},this)}var m=n&&t.audio;if(m&&e.audioCodecOptions){var g=m.codecs;a.a.each(g,function(t,n){e.audioCodecOptions[n]&&this.mergeCodecOptions(t,e.audioCodecOptions[n])},this)}},this),this.mergeMaxQualityOptions(r,e),
n&&(e.videoCodecOptions&&r.video&&a.a.each(r.video.codecs,function(t,n){e.videoCodecOptions[n]&&this.mergeCodecOptions(t,e.videoCodecOptions[n])},this),e.audioCodecOptions&&r.audio&&a.a.each(r.audio.codecs,function(t,n){e.audioCodecOptions[n]&&this.mergeCodecOptions(t,e.audioCodecOptions[n])},this)),{directPlay:i,directStream:r}},mergeGenericOptions:function(e,t){t&&(a.a.defaults(e,a.a.omit(t,"video","audio")),a.a.each(["audio","video"],function(n){var i=t[n],r=e[n];i&&(r||(r={},e[n]=r),
a.a.defaults(r,a.a.omit(i,"codecs")),i.codecs&&a.a.each(i.codecs,function(e,t){a.a.defaults(this.ensureCodecs(t,r),e)},this))},this))},mergeCodecOptions:function(e,t){a.a.each(t,function(t,n){e[n]=t},this)},ensureCodecs:function(e,t){return t.codecs||(t.codecs={}),t.codecs[e]||(t.codecs[e]={}),t.codecs[e]},mergeMaxQualityOptions:function(e,t,n){var i=[{option:"bitrate",setting:"maxBitrate"},{option:"videoResolution",setting:"maxVideoResolution"}];a.a.each(i,function(i){
if("videoResolution"!==i.option||t.type===h.a.types.VIDEO){var a=this.getMaxQualityOption(e,i.option,t);if(null!=a){var r=i.setting,s=h.a.getStreamByType(t.type);e.hasOwnProperty(r)?e[r]=a:e.hasOwnProperty(s)?e[s][r]=a:n||(e[s]={},e[s][r]=a)}}},this)},getMaxQualityOption:function(e,t,n){var i=n.quality||{},a="max"+t.charAt(0).toUpperCase()+t.slice(1),r=i[t],s=this.getPrimaryStreamProperty(e,a,n);if("videoResolution"===t&&r&&(r=f.a.getResolutionFromSize(r)),"bitrate"===t){
var o=n.item.server,l=o.get("maxUploadBitrate");l&&(!r||l<r)&&(r=l)}if(r||s){return r&&s?Math.min(r,s):r||s}},addAudioCodec:function(e,t,n){t.audio||(t.audio={}),this.ensureCodecs(e,t.audio)},analyzeMedia:function(e,t,i){y.a.info("[MDE] Starting analysis of",this.getMediaTitle(e)),n.i(y.a)("[MDE] Analyzing direct play");var r=this.canDirectPlay(e,t.directPlay,i),s={finalProfile:t,transcodeServer:i.transcodeServer,item:i.item,media:e,canDirectPlay:r.result,canDirectPlayFailedCheck:r.failedCheck
},o=i.transcoderOptions||{};if(a.a.isFunction(o)&&(o=o(s)),i.type===h.a.types.VIDEO){n.i(y.a)("[MDE] Analyzing video direct stream");var d=n.i(l.a)(e);if(d){var p=this.canDirectStream(d,t.directStream.video,i,o);s.canDirectStreamVideo=p.result,s.canDirectStreamVideoFailedCheck=p.failedCheck}}if(i.type!==h.a.types.PHOTO){n.i(y.a)("[MDE] Analyzing audio direct stream");var f=n.i(u.a)(e);if(f){var v=this.canDirectStream(f,t.directStream.audio,i,o);s.canDirectStreamAudio=v.result,
s.canDirectStreamAudioFailedCheck=v.failedCheck}}var m=n.i(c.a)(s.media);return m&&(n.i(y.a)("[MDE] Analyzing subtitles"),a.a.extend(s,this.analyzeSubtitles(m,i))),n.i(y.a)("[MDE] Analyzing playability"),a.a.extend(s,this.canPlay(s,i)),a.a.extend(s,this.getEffectiveQuality(e,t.directStream,i)),y.a.group("[MDE] Finished analysis of",this.getMediaTitle(e)),this.getDecisionLogs(s).forEach(function(e){return y.a.info(e)}),y.a.groupEnd(),s},canDirectPlay:function(e,t,i){
if(i.forceDirectPlay)return n.i(y.a)("[MDE] Direct play forced"),{result:!0};if(i.allowDirectPlay===!1)return y.a.warn("[MDE] Direct play failed; option is disabled"),{result:!1,failedCheck:"allowDirectPlay"};if(i.type===h.a.types.VIDEO&&!this.canDirectPlayVideo(e,i))return{result:!1,failedCheck:"canDirectPlayVideo"};var r=t[e.container];if(!r)return y.a.warn("[MDE] Direct play failed; unsupported container:",e.container),{result:!1,failedCheck:"containerProfile"};var s=a.a.keys(r)
;if(s&&s.length){for(var o=0,c=s.length;o<c;o++){var p=s[o],f=r[p];if("mimeType"===p){if(!i.skipCanPlayTypeTest&&!this.canPlayType(h.a.getElementByType(i.type),f))return y.a.warn("[MDE] Direct play failed; canPlayType test, %s: %s",p,f),{result:!1,failedCheck:"canPlayType"}}else if("video"===p||"audio"===p){var m=v.a.get(p),g=n.i(d.a)(e,{streamType:m.id}),b="video"===p?n.i(l.a)(e):n.i(u.a)(e);if(!b){y.a.warn("[MDE] No stream selected; will not be able to analyze stream codecs");continue}
var S="audio"===p&&b!==g[0];if(S&&!i.allowMultiTrackAudio)return y.a.warn("[MDE] Direct play failed; multi-track audio is required"),{result:!1,failedCheck:"allowMultiTrackAudio"};var I=this.analyzeStream(b,f,i);if(!I.result)return{result:!1,failedCheck:I.failedCheck}}else if("photo"===p){var M=this.analyzeStream(a.a.first(e.Part),f,i);if(!M.result)return{result:!1,failedCheck:M.failedCheck}}else if(!this.validateProfileProperty(p,f,e))return{result:!1,failedCheck:"validateProfileProperty:"+p}}
return{result:!0}}return{result:!0}},canDirectPlayVideo:function(e,t){if(!t.allowDirectPlay)return y.a.warn("[MDE] Direct play failed; option is disabled"),!1;if("hls"===e.protocol&&!t.hasNativeHLS)return y.a.warn("[MDE] Direct play failed; cannot play HLS"),!1;if("flv"===e.container&&!t.hasFlash)return y.a.warn("[MDE] Direct play failed; cannot play FLV"),!1;var n=a.a.first(e.Part)
;return t.allowSecureDirectPlay!==!1||!n||!/^https:\/\//.test(n.key)||(y.a.warn("[MDE] Direct play prevented; cannot play via HTTPS"),!1)},canPlayType:function(e,t){if(e===h.a.elements.PHOTO)return!0;var n=document.createElement(e);return!(!n.canPlayType||!n.canPlayType(t).replace(/^no$/,""))},canDirectStream:function(e,t,n,i){return i.directStream?this.analyzeStream(e,t,n):(y.a.warn("[MDE] Direct stream failed; option is disabled"),{result:!1,failedCheck:"options:directStream"})},
analyzeStream:function e(t,n,i){var a=n&&n.codecs&&n.codecs[t.codec];for(var r in n){var s=n[r];if("codecs"===r){var o=s[t.codec];if(!o)return{result:!1,failedCheck:"noCodecInProfile:"+t.codec};var e=this.analyzeStream(t,o,i);if(!e.result)return{result:!1,failedCheck:e.failedCheck}}else if(!(a&&r in a||this.validateProfileProperty(r,s,t)))return{result:!1,failedCheck:"validateProfileProperty:"+r}}return{result:!0}},validateProfileProperty:function(e,t,n){var i,r=e.match(/^(min|max)(\w)(\w*)/)
;if(r){var s="min"===r[1],o="max"===r[1];if(e=r[2].toLowerCase()+r[3],i=n[e],null==i&&y.a.warn("[MDE] Unable to validate %s; re-analyze the media if possible",e),null!=i&&"videoResolution"===e&&(i=f.a.getHeightFromResolution(i),t=f.a.getHeightFromResolution(t)),null!=i){if(s&&i<t)return y.a.warn("[MDE] Invalid profile property; %s: %s < %s",e,i,t),!1;if(o&&i>t)return y.a.warn("[MDE] Invalid profile property; %s: %s > %s",e,i,t),!1}}else if(i=n[e],
null==i&&y.a.warn("[MDE] Unable to validate %s; re-analyze the media if possible",e),i!==t&&!a.a.contains(t,i))return y.a.warn("[MDE] Invalid profile property; %s: %s !== %s",e,i,t),!1;return!0},analyzeSubtitles:function(e,t){var i=t.subtitlesBurnLevel||g.a.ALWAYS,a=e.codec;return n.i(y.a)("[MDE] Subtitle codec:",a),n.i(y.a)("[MDE] Burn level:",i),i===g.a.NEVER?{useSoftSubtitles:!1}:i===g.a.ALWAYS?(y.a.warn("[MDE] Direct play failed; asked to always burn subtitles"),{useSoftSubtitles:!1,
canDirectPlay:!1,canDirectPlayFailedCheck:"subtitles:burnLevelAlways",canDirectStreamVideo:!1}):t.transcodeServer.supports("softSubtitles")?(y.a.warn("[MDE] Direct play failed; %s subtitles",a),/^(pgs|vobsub)$/i.test(a)?(y.a.warn("[MDE] Soft subtitles failed; bitmap subtitles"),{useSoftSubtitles:!1,canDirectPlay:!1,canDirectPlayFailedCheck:"subtitles",canDirectStreamVideo:!1}):/^(ass|ssa)$/i.test(a)&&i===g.a.AUTO?(y.a.warn("[MDE] Soft subtitles failed; ASS subtitles"),{useSoftSubtitles:!1,
canDirectPlay:!1,canDirectPlayFailedCheck:"subtitles",canDirectStreamVideo:!1}):{useSoftSubtitles:!0,canDirectPlay:!1,canDirectPlayFailedCheck:"subtitles"}):(y.a.warn("[MDE] Direct play failed; server support requires burn subtitles"),y.a.warn("[MDE] Soft subtitles failed; server version"),{useSoftSubtitles:!1,canDirectPlay:!1,canDirectPlayFailedCheck:"subtitles:softSubtitlesUnsupported",canDirectStreamVideo:!1})},canPlay:function(e,t){var n=this.validateParts(e,t)||this.validateTranscoder(e,t)
;return n?{canPlay:!1,errorMessage:n}:{canPlay:!0}},validateParts:function(e,t){var i=n.i(p.a)(e.media);if(i.length){y.a.warn("[MDE] Unable to play; missing parts");var r=a.a.first(i);return 1===Number(r.exists)?n.i(o.default)("Please check the permissions for this file."):n.i(o.default)("Please check that the file exists and the necessary drive is mounted.")}},validateTranscoder:function(e,t){if(!e.canDirectPlay){
var i,r=t.type,s=r===h.a.types.MUSIC,l=r===h.a.types.VIDEO,u=t.transcodeServer,c=u.get("transcoderAudio"),d=u.get("transcoderVideo");if(s||"track"===t.item.get("type")){if(i=n.i(o.default)("This server is not powerful enough to convert music."),l&&!d)return y.a.warn("[MDE] Unable to play; server unable to transcode music using video transcoder"),i;if(s&&!c)return y.a.warn("[MDE] Unable to play; server unable to transcode music using audio transcoder"),i}else if(l){
var p=n.i(o.default)("This server is not powerful enough to convert video. You may be able to enable playback by increasing your quality setting."),v=n.i(o.default)("This server is not powerful enough to convert video. Playback qualities are limited because an indirect connection is being used."),m=e.canDirectStreamVideo||!u.get("transcoderVideoRemuxOnly");if(i=n.i(o.default)("This server is not powerful enough to convert video."),!d||!m){
if(y.a.warn("[MDE] Unable to play; server unable to transcode video"),u.get("isCloudSyncServer"))switch(e.canDirectPlayFailedCheck){case"validateProfileProperty:maxLevel":return n.i(o.default)("Synced media cannot be converted to a lower H.264 level.");case"validateProfileProperty:maxBitrate":return n.i(o.default)("Synced media cannot be converted to a lower quality.");case"allowDirectPlay":default:return n.i(o.default)("Converting is not supported for synced media.")}if(t.quality){
if(t.quality.index===f.a.ORIGINAL)return i;var g=a.a.clone(t);return g.quality=a.a.extend({index:f.a.ORIGINAL},a.a.pick(t.quality,"attribute")),this.getMediaDecision(g).canDirectPlay?p:"relay"===u.get("maxUploadBitrateReason")?v:i}return p}}}},getEffectiveQuality:function(e,t,i){var a=i.quality,r={},s={};if(e.bitrate||y.a.warn("[MDE] Unable to determine effective quality; re-analyze the media if possible"),i.type===h.a.types.VIDEO){r.bitrate=e.bitrate,
r.videoResolution=f.a.getHeightFromResolution(e.videoResolution);var o=this.getPrimaryStreamProperty(t,"maxBitrate",i);if(o){var u=n.i(l.a)(e),c=u?u.bitrate:e.bitrate;r.bitrate=Math.min(c,o),s.maxVideoBitrate=o}if(a){if(a.videoResolution){var d=f.a.getResolutionFromSize(a.videoResolution),p=f.a.getHeightFromResolution(d);r.videoResolution=Math.min(r.videoResolution,p)}}}else if(i.type===h.a.types.MUSIC){r.bitrate=e.bitrate;var v=this.getPrimaryStreamProperty(t,"maxBitrate",i)
;v&&(r.bitrate=Math.min(e.bitrate,v),s.maxAudioBitrate=v)}return r.transcoderQualityOptions=s,r},getPrimaryStreamProperty:function(e,t,n){var i=h.a.getStreamByType(n.type),a=e[i],r=e[t];return null==r&&a&&(r=a[t]),r},getMediaTitle:function(e){var t=e.title||e.videoResolution||e.bitrate||e.container,i=a.a.compact([e.container,e.videoCodec,e.audioCodec]),r=n.i(l.a)(e);return r&&i.push(r.level,r.profile),i.length&&(t+=" ("+i.join(", ")+")"),t},getDecisionLogs:function(e){
var t=["canPlay: "+e.canPlay,"canDirectPlay: "+e.canDirectPlay],n=e.canDirectStreamVideo;null!=n&&t.push("canDirectStreamVideo: "+n);var i=e.canDirectStreamAudio;null!=i&&t.push("canDirectStreamAudio: "+i);var r=e.useSoftSubtitles;null!=r&&t.push("useSoftSubtitles: "+r);var s=e.bitrate;null==s||a.a.isNaN(s)||t.push("bitrate: "+s);var o=e.videoResolution;return null==o||a.a.isNaN(o)||t.push("videoResolution: "+o),t},getBestDecision:function(e){var t=a.a.last(this.sortDecisions(e))
;return y.a.group("[MDE] Selected %s to play",this.getMediaTitle(t.media)),this.getDecisionLogs(t).forEach(function(e){return y.a.info(e)}),y.a.groupEnd(),t},sortDecisions:function(e){
return a.a.chain(e).reverse().sortBy(this.preferHigherBitrate,this).sortBy(this.preferMoreAudioChannels,this).sortBy(this.preferDirectStreamAudio,this).sortBy(this.preferHigherResolution,this).sortBy(this.preferDirectStreamVideo,this).sortBy(this.preferDirectPlay,this).sortBy(this.preferHigherResolutionIfCapable,this).sortBy(this.preferCloudIfRemote,this).sortBy(this.preferPlayable,this).value()},preferPlayable:function(e){return void 0===e.canPlay?null:e.canPlay},
preferCloudIfRemote:function(e){var t=e.media.proxyType===m.a.CLOUD;return e.transcodeServer.get("isPrivateConnection")?!t:t},preferHigherResolutionIfCapable:function(e){var t=e.transcodeServer,n=t.get("transcoderVideo"),i=t.get("transcoderVideoRemuxOnly");return n&&!i&&(e.canDirectPlay||e.canDirectStreamVideo)?this.preferHigherResolution(e):null},preferDirectPlay:function(e){return void 0===e.canDirectPlay?null:e.canDirectPlay},preferDirectStreamVideo:function(e){
return void 0===e.canDirectStreamVideo?null:e.canDirectStreamVideo},preferHigherResolution:function(e){return void 0===e.videoResolution?null:e.videoResolution},preferDirectStreamAudio:function(e){return void 0===e.canDirectStreamAudio?null:e.canDirectStreamAudio},preferMoreAudioChannels:function(e){var t=e.media.audioChannels;return void 0===t?null:t},preferHigherBitrate:function(e){return void 0===e.bitrate?null:e.bitrate}};t.a=b},function(e,t,n){"use strict";function i(e){o+=1
;var t=o.toString(),n=r.a.extend({},e.attributes,{playQueueItemID:t});return new s.a(n,{server:e.server,parent:e.parent,parse:!0})}var a=n(3),r=n.n(a),s=n(737),o=0;t.a=i},function(e,t,n){"use strict";function i(e){return e?"dca"===e?"DTS":e.toUpperCase():""}t.a=i},function(e,t,n){"use strict";function i(e){var t=parseInt(Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,t)).toFixed(2)+" "+a[t]}var a=["B","KB","MB","GB","TB"];t.a=i},function(e,t,n){"use strict";function i(e){
if(!e)return"";var t=e.indexOf("/");return t!==-1?e.substr(t+1):e}t.a=i},function(e,t,n){"use strict";var i={movie:"plex-icon-movies-560",show:"plex-icon-shows-560",season:"plex-icon-shows-560",episode:"plex-icon-shows-560",artist:"plex-icon-artist-560",album:"plex-icon-music-560",track:"plex-icon-music-560",photo:"plex-icon-photos-560",photoalbum:"plex-icon-photos-560",clip:"plex-icon-clips-560",userPlaylistItem:"plex-icon-clips-560"};t.a=i},function(e,t,n){"use strict";function i(e){
return e>=5&&e<9}t.a=i},function(e,t,n){"use strict";function i(e){var t=e.get("type"),i="channelDirectory"===t,r=i||n.i(a.c)(t)||e.get("isFolder");return void 0===e.length&&!r}var a=n(30);t.a=i},function(e,t,n){"use strict";function i(e,t,i,s){if(!(e&&t&&i&&s))return!1;var o=s.type,l=s.hasInvalidKey,u=s.deletedAt,c=s.isFolder,d=s.isMetadataList,p=s.firstItemType,h=s.onAir,f=l||u||c;if(!d&&f)return!1;if(!t.protocols.stream&&!h)return!1;if(t.features.playqueue)return!0;if(d&&!p)return!1
;var v=!!i[a.f];if(t.protocols.livetv&&(e.livetv<4||!v))return!1;var m=d?p:o,g=n.i(r.n)(m),y=n.i(r.o)(m);return m===g.typeString||y.id===g.id}var a=n(112),r=n(30);t.a=i},function(e,t,n){"use strict";function i(e){if(e)return e.relay?"relayed":e.isLoopback?"localhost":e.isPrivate?"local":"remote"}t.a=i},function(e,t,n){"use strict";function i(e){return e.isShared?"shared":"owned"}t.a=i},function(e,t,n){"use strict";function i(e){if(null!=e){var t=Math.round(e/1e3),i=void 0
;return i=t>=3600?300:60,n.i(a.a)(t,i)}}var a=n(843);t.a=i},function(e,t,n){"use strict";function i(e,t){if(e=parseInt(e,10),t=t||1,r.a.isNaN(e))return"";if(0===e)return"0 Bytes";var n=parseInt(Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,n)).toFixed(t)+" "+s[n]}var a=n(3),r=n.n(a),s=["Bytes","KB","MB","GB","TB"];t.a=i},function(e,t,n){"use strict";function i(e,t){var n=e/t;return n=Math.round(n),n*=t}t.a=i},function(e,t,n){"use strict";function i(e){return e>=2e3}
function a(e){return i(e.transcodeDecisionCode)?e.transcodeDecisionText:i(e.generalDecisionCode)?e.generalDecisionText:i(e.mdeDecisionCode)?e.mdeDecisionText:e.errorMessage}t.a=a},function(e,t,n){"use strict";function i(){return o?r.now():Date.now()-l}var a=n(29);t.a=i;var r=window.performance,s=!!r,o=s&&!!r.now,l=void 0;o||(a.a.warn("`performance.now` is not available; a `Date.now()` fallback will be used instead."),l=s&&r.timing&&r.timing.navigationStart?r.timing.navigationStart:Date.now())
},function(e,t,n){"use strict";function i(){return"anvergo"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a).id}var a=n(33);t.a=i},function(e,t,n){"use strict";function i(){return"ie"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a).id}var a=n(33);t.a=i},function(e,t,n){"use strict";function i(){return"ps3"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a).platformID}var a=n(33);t.a=i},function(e,t,n){"use strict";function i(){
return"ps4"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a).platformID}var a=n(33);t.a=i},function(e,t,n){"use strict";function i(e){function t(){i<0||e().done(function(){o&&clearTimeout(o),s.resolve.apply(s,arguments)}).fail(function(){i-=1,i<0?(o&&clearTimeout(o),s.reject.apply(s,arguments)):"pending"===s.state()&&setTimeout(t,a)})}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Math.floor(Math.max(n.times||0,0)),a=Math.floor(Math.max(n.delay||0,0))
;n.cancel&&n.cancel.always(function(){i=-1});var s=r.a.Deferred(),o=void 0;return n.maxDuration&&(o=setTimeout(function(){s.reject("maxDuration")},n.maxDuration)),t(),s.promise()}var a=n(10),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){var t=s.a.clone(e);return void 0!==t.last?(t.end=t.last+1,t.size=t.end-t.start):void 0!==t.size?(t.end=t.start+t.size,t.last=t.end-1):void 0!==t.end&&(t.last=t.end-1,t.size=t.end-t.start),t}function a(e,t){return s.a.filter(s.a.map(e,i),function(e){
return t?e.size>=0:e.size>0})}var r=n(3),s=n.n(r),o={augment:i,difference:function(e,t,n){return e=i(e),t=i(t),a([{start:e.start,last:Math.min(e.last,t.start-1)},{start:Math.max(e.start,t.end),last:e.last}],n)},union:function(e,t,n){if(e=i(e),t=i(t),e.start>t.start){var r=e;e=t,t=r}var s=[e];return t.start<=e.end?s[0].last=Math.max(t.last,e.last):s.push(t),a(s,n)},degap:function(e,t){var n=i(e);return t=i(t),t.size?(n.start>t.end&&(n={start:t.end,end:n.end}),n.end<t.start&&(n={start:n.start,
end:t.start}),i(n)):n},each:function(e,t,n){e=i(e);for(var a=Math.min(e.start,e.end),r=Math.max(e.start,e.end);a<=r;a++)t.call(n,a)},roundByPage:function(e,t){return e=i(e),i({start:Math.floor(e.start/t)*t,end:Math.ceil(e.end/t)*t})}};t.a=o},function(e,t,n){"use strict";function i(e){return e&&r.a.parseBoolean(e)?n.i(a.default)("Yes"):n.i(a.default)("No")}Object.defineProperty(t,"__esModule",{value:!0});var a=n(4),r=n(60);t.default=i},function(e,t,n){"use strict";function i(e){if(e&&e.length){
var t=e.length;return 1===t?e[0]:2===t?n.i(a.default)("{1} and {2}",e[0],e[1]):3===t?n.i(a.default)("{1}, {2}, and {3}",e[0],e[1],e[2]):n.i(a.default)("{1}, {2}, and {3} others",e[0],e[1],e.length-2)}}var a=n(4);t.a=i},function(e,t,n){"use strict";function i(e,t){if(!e)return"";if(e.length>t){for(var n=e.substring(0,t-3);/\S/.test(n.charAt(n.length-1))===!1&&n.length>1;)n=n.slice(0,-1);return n+"..."}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},function(e,t,n){
"use strict";function i(e,t,n){if(!e)return"";if(e.length>t){n=n||Math.floor((t-3)/2);var i=t-3-n;return e.substr(0,n)+"..."+e.substr(e.length-i)}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(19),s=n(29),o=n(223),l=n(1424),u=n(1425),c={extensions:{dash:".mpd",hls:".m3u8",http:""},logParams:function(e,t,n){s.a.group("[Transcoder] %s (%s) options",e,t),a.a.forEach(n,function(e,t){return s.a.info("%s: %s",t,e)}),
s.a.groupEnd()},serializeParams:function(e,t){var n={},i={},s=/^X-Plex/;return a.a.each(e,function(e,t){s.test(t)?i[t]=e:n[t]=e}),n=r.stringifyParams(n),i=r.stringifyParams(i),n&&i?n+"&"+i:n||i},image:function(e,t,n){if(!t)return"";var i,r=n.fallbackServer,s=!1;if(r&&r.get("isConnected")){var l=r.get("isFullServer"),u=r.get("activeConnection").get("isPossiblyCrossNetworkProtected");i=l&&!u?r:null}if(i)if(e.get("cloud"))s=!0;else if(!e.get("isFullServer")){
var c=!e.get("activeConnection").get("isPrivate"),d=i.get("activeConnection").get("isPrivate");s=c||d}var p=s?i:e,h=p.id===e.id;e.get("cloud")&&(t=s?i.resolveUrl(t,{appendToken:!0}):e.resolveUrl(t,{appendToken:!0,connection:new o.a({scheme:"https",address:"node.plexapp.com",port:"32443"})}));var f={url:e.resolveUrl(t,{useRelativeUrl:h,appendToken:!0}),width:n.width&&Math.round(parseFloat(n.width)),height:n.height&&Math.round(parseFloat(n.height))};n.minSize&&(f.minSize=1),
n.format&&(f.format=n.format),n.quality&&(f.quality=n.quality),n.filters&&a.a.each(n.filters,function(e,t){void 0!==e&&(f[t]=e)});var v="/photo/:/transcode?"+this.serializeParams(f,p);return p.resolveUrl(v,{appendToken:!0})},music:function(e,t,n,i){i||(i="start");var r=a.a.first(t.get("Media"));if(r){var s=a.a.first(r.Part);if(s){var o,l;e.supports("universalMusicTranscoder")?(o=a.a.extend({hasMDE:1,path:e.resolveUrl(t.get("key"),{useRelativeUrl:!0}),mediaIndex:0,partIndex:0},n),
l="/music/:/transcode/universal/"+i):(o={identifier:t.get("identifier"),url:e.resolveUrl(s.key,{useRelativeUrl:!0}),format:"mp3",audioCodec:"libmp3lame",audioBitrate:320,audioSamples:44100},l="/music/:/transcode/generic.mp3"),this.logParams("Music",i,o),o=a.a.extend(o,e.getHeaders());var u=this.extensions[o.protocol];return"start"===i&&u&&(l+=u),e.resolveUrl(l+"?"+this.serializeParams(o,e))}}},video:function(e,t,i,r,s,o){s||(s={}),o||(o="start")
;var c=e.id===t.server.id,d=t.server.get("cloud")?e:t.server,p=e.get("activeConnection"),h=p.get("isPrivate"),f=a.a.extend({hasMDE:1,path:d.resolveUrl(t.get("key"),{useRelativeUrl:c,appendToken:!c}),mediaIndex:n.i(l.a)(t,i.id),partIndex:n.i(u.a)(i,r.key),protocol:"hls",fastSeek:1,directPlay:0,directStream:1,subtitleSize:100,audioBoost:100,location:h?"lan":"wan"},s);f.path=f.path.replace(/^http[s]?:\/\/node.plexapp.com:[\d]+\//,e.url()),this.logParams("Video",o,f)
;var v=t.get("indirectHttpHeaders");v&&(f.httpCookies=v.Cookie,f.userAgent=v["User-Agent"]),f=a.a.extend(f,e.getHeaders());var m=this.extensions[f.protocol],g="/video/:/transcode/universal/"+o;return"start"===o&&m&&(g+=m),e.resolveUrl(g+"?"+this.serializeParams(f,e))}};t.a=c},function(e,t,n){"use strict";function i(e,t){var i=n.i(r.a)(window.location.href,t);return a.join([e],{origin:i})}var a=n(19),r=n(574);t.a=i},function(e,t,n){"use strict";function i(e,t){return e.replace(/^\w+:\/\//,t+"//")
}t.a=i},function(e,t,n){"use strict";var i=n(690),a=n.n(i),r=new a.a(!1,"_",!0),s={writeXml:function(e){return'<?xml version="1.0"?>'+r.json2xml_str(e)}};t.a=s},function(e,t,n){"use strict";var i=n(3035),a=n.n(i),r=n(18),s=r.a.ItemView.extend({className:"circle-progress",template:a.a,size:30,lineWidth:5,strokeColor:"#cc7b19",hasSize:!1,ui:{svg:".circle-progress-bar",svgCircle:".circle-progress-bar circle"},bindings:{".circle-progress-text":{modelAttribute:"text"}},modelEvents:{
"change:progress":"onProgressChange"},initialize:function(e){this.size=e.size||this.size,this.lineWidth=e.lineWidth||this.lineWidth,this.strokeColor=e.strokeColor||this.strokeColor,this.size&&(this.$el.width(this.size),this.$el.height(this.size))},drawProgressBar:function(){var e=this.size,t=e/2,n=t-this.lineWidth,i=Math.PI*(2*n);this.hasSize||(this.ui.svg.attr("width",e),this.ui.svg.attr("height",e),this.ui.svgCircle.attr("r",n),this.ui.svgCircle.attr("cx",t),this.ui.svgCircle.attr("cy",t),
this.ui.svgCircle.attr("stroke-dasharray",i),this.ui.svgCircle.css("stroke-width",this.lineWidth),this.ui.svgCircle.css("stroke",this.strokeColor),this.hasSize=!0);var a=this.model.get("progress"),r=(100-a)/100*i;this.ui.svgCircle.css("stroke-dashoffset",r)},onRender:function(){this.drawProgressBar()},onProgressChange:function(){this.drawProgressBar()}});t.a=s},function(e,t,n){"use strict";function i(e){
var t=e.src,n=e.style,i=e.width,a=e.height,s=e.backgroundSize,l=e.backgroundPosition,c=o()(e,["src","style","width","height","backgroundSize","backgroundPosition"]),d=r()({backgroundImage:"url("+t+")",backgroundSize:s,backgroundPosition:l,width:i,height:a},n);return u.a.createElement("div",r()({style:d},c))}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l);i.defaultProps={backgroundSize:"cover",backgroundPosition:"center"},t.a=i},function(e,t,n){"use strict";function i(e){switch(e){case 1:
return n.i(g.default)("Abort");case 2:return n.i(g.default)("Network");case 3:return n.i(g.default)("Decode");case 4:return n.i(g.default)("Codec")}}var a=n(2),r=n.n(a),s=n(65),o=n.n(s),l=n(7),u=n.n(l),c=n(9),d=n.n(c),p=n(8),h=n.n(p),f=n(0),v=(n.n(f),n(39)),m=n.n(v),g=n(4),y=n(31),b=n(29),S=n(543),I=n(1515),M=2,C=function(e){function t(a,r){u()(this,t);var s=d()(this,e.call(this,a,r));return s.onMetadataLoad=function(){
s.props.onDurationMillisecondsChange&&s.props.onDurationMillisecondsChange(Math.floor(1e3*s._mediaEl.duration)),s.props.positionSeconds&&(s._mediaEl.currentTime=s.props.positionSeconds),s.setState({isStarted:!0})},s.onPositionUpdate=function(){var e=Math.floor(1e3*s._mediaEl.currentTime);if(e!==s._lastPositionMilliseconds)s._lastPositionMilliseconds=e,s._lastPositionChangeTime=Date.now(),s._isBuffering&&(s._isBuffering=!1,
s.props.onBufferingChange&&s.props.onBufferingChange(!1));else if(!s._isBuffering&&!s.props.paused){var t=Date.now()-s._lastPositionChangeTime;t>500&&(b.a.warn("[Player] Buffering detected, last position change was "+t+"ms ago"),s._isBuffering=!0,s.props.onBufferingChange&&s.props.onBufferingChange(!0))}s.props.onPositionMillisecondsChange(e)},s.onProgress=function(){var e=s._mediaEl.buffered;if(e.length){var t=1e3*e.start(0),n=1e3*e.end(e.length-1)
;s.props.onBufferChange&&s.props.onBufferChange({start:t,end:n})}},s.onEnded=function(){s.props.onEnd&&s.props.onEnd()},s.onError=function(e){var t=e.target.error.code,n=i(t),a=t+" ("+(n||"Unknown")+")";t===M?b.a.warn("[Player] An HTML media error occurred: "+a+"; the player will attempt to recover"):(b.a.warn("[Player] A critical HTML media error occurred: "+a+"; the player cannot recover"),s.props.onError&&s.props.onError({code:"html"+t,category:n}))},s.onSeek=function(e){
var t=s._mediaEl.ended;s._mediaEl.currentTime=e,!s.props.paused&&t&&s._play()},s.state={isStarted:!1},s._mediaListeners={loadedmetadata:s.onMetadataLoad,progress:s.onProgress,ended:s.onEnded,error:s.onError},s._mediaEl=n.i(S.a)(a.type,a.allowRecycleElement),s._lastPositionMilliseconds=null,s._lastPositionChangeTime=0,s._isBuffering=!1,s}return h()(t,e),t.prototype.componentDidMount=function(){var e=this,t=this._mediaEl;t.className=this.props.className,
t.volume=Math.max(0,Math.min(this.props.volume/100,1)),o()(this._mediaListeners).forEach(function(n){t.addEventListener(n,e._mediaListeners[n])}),this._node=m.a.findDOMNode(this),this._node.appendChild(t),this.props.onElementChange?this.props.onElementChange(t):t.src=this.props.src,this.props.isReadyToPlay&&!this.props.paused&&this.props.src&&this._play()},t.prototype.componentDidUpdate=function(e,t){n.i(y.a)(this.props.src===e.src,"Use a new `key` when changing `src`")
;var i=this.props,a=i.className,r=i.paused,s=i.volume,o=i.isReadyToPlay,l=i.audioStream,u=i.subtitleStream,c=i.onStreamChange,d=this._mediaEl,p=(!!e.audioStream&&e.audioStream.id)!==(!!l&&l.id),h=(!!e.subtitleStream&&e.subtitleStream.id)!==(!!u&&u.id);r===e.paused||d.ended||(r?this._pause():this._play()),s!==e.volume&&(d.volume=Math.max(0,Math.min(s/100,1))),a!==e.className&&(d.className=a),!o||e.isReadyToPlay||r||this._play(),c&&(p||h)&&c()},t.prototype.componentWillUnmount=function(){
var e=this;this._node.removeChild(this._mediaEl),this._mediaEl.src="",o()(this._mediaListeners).forEach(function(t){e._mediaEl.removeEventListener(t,e._mediaListeners[t])})},t.prototype._play=function(){var e=this,t=this._mediaEl.play();t&&t.then&&t.then(null,function(t){e.props.onPause&&"AbortError"===t.name&&e.props.onPause(),b.a.warn(t.name+": "+t.message)})},t.prototype._pause=function(){this._mediaEl.pause()},t.prototype.render=function(){
var e=this.props,t=e.positionSeconds,n=e.containerClassName,i=e.onTick,a=this.state.isStarted;return r()("div",{className:n},void 0,a&&r()(I.a,{positionSeconds:t,onPositionUpdate:this.onPositionUpdate,onTick:i,onSeek:this.onSeek}))},t}(f.Component);C.defaultProps={className:"",type:"video",positionSeconds:0,volume:100,allowRecycleElement:!1,isReadyToPlay:!0},t.a=C},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(667),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(3),f=n.n(h),v=n(10),m=n.n(v),g=n(0),y=n.n(g),b=n(19),S=n(277),I=n(80),M=n(1487),C=n(794),w=n(26),D=n(311),P=(n(350),n(864)),T=n(861),x=n(1518),E=new C.a,N="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",L=function(e){function t(n,i){l()(this,t);var a=c()(this,e.call(this,n,i));return a.preloadImage=function(e){
if(!a.props.allowImagePreloading)return m.a.Deferred().resolve(e).promise();var t=m.a.Deferred(),n=new window.Image,i=e.url,r=e.isPlaceholder;return n.onload=function(){n.onload=n.onabort=n.onerror=null,r?t.notify(e):t.resolve(e)},n.onabort=n.onerror=function(){n.onload=n.onabort=n.onerror=null,t.reject(e)},n.src=i,t.promise()},a.onLoad=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url;a.setState({isLoaded:!0,src:t}),a.props.onLoad(a.state.url,t)},
a.onError=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=e.isCanceled;void 0!==n&&n||(a.setState({isLoaded:!0,src:a.props.fallbackSrc}),a.props.onError(a.state.url,t))},a.state={isLoaded:!1,url:a.getImageUrl(n),src:N,prevSrc:N},a}return p()(t,e),t.prototype.componentDidMount=function(){this.loadImage(this.props,this.state.url)},t.prototype.componentWillReceiveProps=function(e){var t=this.getImageUrl(e);if(this.state.url!==t){var n=this.state.src
;this.setState({isLoaded:!1,url:t,prevSrc:n}),this.loadImage(e,t)}},t.prototype.shouldComponentUpdate=function(e,t){return n.i(w.a)(this,e,t)},t.prototype.componentWillUnmount=function(){this.abortImage()},t.prototype.getImageUrl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;if(e.src)return e.src;if(e.url){var t=e.allowPixelRatioSize?n.i(S.a)():1,i={width:Math.round(e.width*t),height:Math.round(e.height*t)};e.filters&&!e.useClientFilters&&s()(i,e.filters),
e.minSize&&(i.minSize=1),e.format&&(i.format=e.format),e.quality&&(i.quality=e.quality),e.upscale&&(i.upscale=1);var a=f.a.result(e,"url"),r=a.indexOf("?"),o=a;return r>-1?(o=b.join(a.substring(0,r),i),o+=o.indexOf("?")===-1?"?":"&",o+=a.substring(r+1)):o=b.join(o,i),o}},t.prototype.getImageProps=function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.exposeUrl,n=e.backgroundSize,i=e.backgroundPosition,r=e.width,s=e.height,o=e.style,l=e.useClientFilters,u=e.filters,c=e.className,d=this.state,p=d.src,h=d.url,v=o;if(l&&u){var m=[];if(f.a.isNumber(u.blur)&&m.push("blur("+u.blur+"px)"),f.a.isNumber(u.saturation)&&m.push("saturate("+u.saturation+"%)"),f.a.isNumber(u.opacity)&&m.push("opacity("+u.opacity+"%)"),m.length){var g=m.join(" ");v=v?a()({},v,{filter:g}):{filter:g}}
}var y={};return e.background&&(y={backgroundPosition:i,backgroundSize:n}),a()({"data-image-url":t?h:void 0,src:p,style:v,className:c,width:r,height:s},y)},t.prototype.loadImage=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments[1];if(this.abortImage(),!t)return void this.setState({isLoaded:!0,src:N});var i=e.src?this.preloadImage({url:t}):this.loadBlob({url:t});this._cancelable=n.i(M.a)(i),
this._cancelable.promise.then(this.onLoad,this.onError,this.onLoad)},t.prototype.loadBlob=function(e){var t=this,n=e.url;if(!this.props.allowImageBlobs)return this.preloadImage({url:n});var i=m.a.Deferred(),a=E.getBlobUrl(n);if(a)return i.resolve({url:a}),i.promise();var r=E.getPlaceholder(n);r&&i.notify({url:r,isPlaceholder:!0});var s=new window.XMLHttpRequest;return s.open("GET",n,!0),s.responseType="arraybuffer",this._xhr=s,s.onreadystatechange=function(){
if(4===s.readyState)if(s.onreadystatechange=null,t._xhr=null,200===s.status){var e=new window.Blob([s.response],{type:"image/jpeg"}),a=window.URL.createObjectURL(e);E.store({url:n,blobUrl:a}),i.resolve({url:a})}else i.reject({url:n})},s.send(),i.then(this.preloadImage,this.onError,this.preloadImage),i.promise()},t.prototype.abortImage=function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.abort(),this._xhr=null),this._cancelable&&this._cancelable.cancel()},
t.prototype.render=function(){var e=this.props,t=e.background,n=e.transition,i=e.transitionComponent,r=e.transitionProps,s=this.state,o=s.isLoaded,l=s.prevSrc,u=t?T.a:P.a,c=this.getImageProps();return n?y.a.createElement(i,a()({component:u,isLoaded:o,prevSrc:l,transitionProps:r},c)):y.a.createElement(u,a()({},c,{src:o?c.src:l}))},t}(g.Component);L.defaultProps={fallbackSrc:N,exposeUrl:!1,transition:!1,transitionComponent:x.a,background:!1,minSize:!1,upscale:!1,transitionProps:a()({},D.a,{style:{
position:"relative"}}),filters:{},useClientFilters:!1,allowImageBlobs:I.a.hasBlob&&I.a.hasObjectUrl,allowImagePreloading:!0,allowPixelRatioSize:!0,onLoad:function(){},onError:function(){}},t.a=L},function(e,t,n){"use strict";function i(e){return r.a.createElement("img",e)}var a=n(0),r=n.n(a);t.a=i},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=n.n(d),h=n(39),f=n.n(h),v=n(3328),m=n(26),g=n(576),y=function(e){function t(n,i){s()(this,t)
;var r=l()(this,e.call(this,n,i));return r.onPortalRef=function(e){if(!e)return void r._destroy();var t=r.props,n=t.options,i=t.onPortalRef;r._popper=new v.a(document.getElementById(r.props.target),f.a.findDOMNode(e).parentNode,a()({},n,{onUpdate:r.onPopperUpdate})),r._popper.scheduleUpdate(),i&&i(e)},r.onPopperUpdate=function(e){var t=r.props.onReposition;if(t){t(e.placement.split("-")[0])}},r._popper=null,r}return c()(t,e),t.prototype.shouldComponentUpdate=function(e,t){
return n.i(m.a)(this,e,t)},t.prototype.componentDidUpdate=function(){this._popper&&this._popper.scheduleUpdate()},t.prototype._destroy=function(){this._popper&&(this._popper.destroy(),this._popper=null)},t.prototype.render=function(){return p.a.createElement(g.a,a()({},this.props,{onPortalRef:this.onPortalRef}))},t}(d.Component);y.defaultProps={options:{placement:"bottom-start"}},t.a=y},function(e,t,n){"use strict";function i(e){return n.i(y.createSelector)(n.i(P.a)(),function(t){return t[e]})}
function a(){return n.i(y.createSelector)(n.i(P.a)(),n.i(T.a)(),n.i(E.a)(),function(e,t,n){return!(!t||t.type!==I.h)||!(!n||e.confirmRemoteToLocal||e.isPostPlayVisible||e.isMediaLoading||e.isBuffering||e.isPaused||e.hasError)})}function r(){return n.i(y.createSelector)(i("positionSeconds"),n.i(T.a)(),n.i(E.a)(),function(e,t,i){if(t&&t.type===I.h)return!0;if(i){var a=t.Media[i.mediaIndex],r=a&&a.Part[i.partIndex];if(a&&a.duration&&r){return n.i(C.a)(a,r,1e3*e)>.9*a.duration}}return!1})}
function s(){return n.i(y.createSelector)(n.i(x.a)(),n.i(T.a)(),n.i(E.a)(),n.i(N.a)(),a(),r(),i("hasError"),i("errorCode"),function(e,t,i,a,r,s,o,l){var u={decision:i,isPlaying:r,hasEnded:s,hasError:o,errorCode:l};if(e&&(u.metricsServerType=n.i(L.a)(e),u.metricsConnectionType=n.i(A.a)(e.activeConnection)),a&&(u.playQueueItemID=a.playQueueItemID),t&&(u.metricsType=t.type,u.metricsIdentifier=t.identifier,t.type===I.h&&t.Media.length&&(u.metricsContainer=t.Media[0].container)),i){
var c=n.i(k.a)(i),d=t.Media[i.mediaIndex],p=d&&d.Part[i.partIndex],h=M.a.get("video").id,f=p&&m.a.findWhere(p.Stream,{streamType:h}),v=M.a.get("audio").id,g=p&&m.a.findWhere(p.Stream,{streamType:v,selected:!0}),y=M.a.get("subtitles").id,b=p&&m.a.findWhere(p.Stream,{streamType:y,selected:!0});u.metricsSessionID=i.playbackSessionID,u.metricsProtocol=i.protocol,u.metricsOffset=i.positionSeconds,d&&(u.metricsContainer=d.container,u.metricsDuration=n.i(w.a)(d.duration),
u.metricsBitrate=n.i(D.a)(d.bitrate),u.metricsOrigin=d.origin),f&&(u.metricsVideoCodec=f.codec,u.metricsVideoDecision=c.videoDecision),g&&(u.metricsAudioCodec=g.codec,u.metricsAudioDecision=c.audioDecision),b&&b.id&&(u.metricsSubtitleFormat=b.codec,u.metricsSubtitleDecision=c.subtitleDecision)}return u})}var o=n(6),l=n.n(o),u=n(7),c=n.n(u),d=n(9),p=n.n(d),h=n(8),f=n.n(h),v=n(3),m=n.n(v),g=n(0),y=(n.n(g),n(5)),b=(n.n(y),
n(11)),S=n(13),I=n(30),M=n(90),C=n(822),w=n(841),D=n(1438),P=n(42),T=n(230),x=n(533),E=n(229),N=n(85),L=n(840),A=n(839),k=n(1437),_={START:"playback:itemstart",RESTART:"playback:itemrestart",END:"playback:itemend",SESSION_END:"playback:sessionend",FAILURE:"playback:failure"},O={CAST:"cast",FAILED:"failed",COMPLETED:"completed",SKIPPED:"skipped"},j={QUALITY:"quality",STREAMS:"streams"},R=function(e){function t(n,i){c()(this,t);var a=p()(this,e.call(this,n,i));return a.itemID=null,
a.itemDecision=null,a.itemMetricsProperties=null,a.itemPlaybackTimestamp=null,a.itemPlaybackMilliseconds=0,a.sessionPlaybackMilliseconds=0,a.sessionPlaybackCount=0,a.hasError=!1,a.hasEnded=!1,a}return f()(t,e),t.prototype.componentDidMount=function(){this.update()},t.prototype.componentDidUpdate=function(e){this.update(e)},t.prototype.componentWillUnmount=function(){this.trackItemEnd(),this.trackSessionEnd()},t.prototype.update=function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.props,n=t.isRemotePlayer,i=t.playQueueItemID,a=t.decision,r=t.isPlaying,s=t.hasError,o=t.metricsType;if(n)return void(e.isRemotePlayer||(this.trackItemEnd(),this.trackSessionEnd()));!this.hasError&&s&&(this.hasError=!0,this.trackFailure()),this.itemID&&(this.itemID===i?this.updateCurrentItem():this.trackItemEnd()),!this.itemID&&!this.hasError&&r&&i&&(a||o===I.h)&&this.trackItemStart()},
t.prototype.updateCurrentItem=function(){var e=this.props,t=e.decision,n=e.isPlaying,i=e.hasEnded;if(n?(this.itemPlaybackTimestamp||(this.itemPlaybackTimestamp=new Date),this.hasEnded=i):this.flushPlaybackTimes(),this.itemDecision&&t&&this.itemDecision!==t){var a=void 0;if(this.itemDecision.qualityIndex!==t.qualityIndex?a=j.QUALITY:this.itemDecision.partIndex===t.partIndex&&(a=j.STREAMS),a){var r=this.itemMetricsProperties.offset;this.trackItemRestart(a),this.itemMetricsProperties.offset=r}}},
t.prototype.getItemMetricsProperties=function(){return{serverType:this.props.metricsServerType,connectionType:this.props.metricsConnectionType,type:this.props.metricsType,identifier:this.props.metricsIdentifier,playbackSessionId:this.props.metricsSessionID,protocol:this.props.metricsProtocol,offset:this.props.metricsOffset,container:this.props.metricsContainer,duration:this.props.metricsDuration,bitrate:this.props.metricsBitrate,origin:this.props.metricsOrigin,
audioCodec:this.props.metricsAudioCodec,audioDecision:this.props.metricsAudioDecision,videoCodec:this.props.metricsVideoCodec,videoDecision:this.props.metricsVideoDecision,subtitleFormat:this.props.metricsSubtitleFormat,subtitleDecision:this.props.metricsSubtitleDecision}},t.prototype.flushPlaybackTimes=function(){if(this.itemPlaybackTimestamp){var e=new Date-this.itemPlaybackTimestamp;this.itemPlaybackTimestamp=null,this.itemPlaybackMilliseconds+=e,this.sessionPlaybackMilliseconds+=e,
n.i(S.a)("metrics").addPlaybackTime(e)}},t.prototype.trackItemStart=function(){this.itemID=this.props.playQueueItemID,this.itemDecision=this.props.decision,this.itemMetricsProperties=this.getItemMetricsProperties(),this.itemPlaybackTimestamp=new Date,this.itemPlaybackMilliseconds=0,this.sessionPlaybackCount+=1,this.hasEnded=this.props.hasEnded,this.hasError=this.props.hasError,n.i(S.a)("metrics").trackEvent({event:_.START,interaction:!0,properties:this.itemMetricsProperties}),
n.i(S.a)("metrics").incrementPlaybackCount()},t.prototype.trackItemRestart=function(e){this.itemDecision=this.props.decision,this.itemMetricsProperties=this.getItemMetricsProperties(),n.i(S.a)("metrics").trackEvent({event:_.RESTART,interaction:!0,properties:l()({},this.itemMetricsProperties,{reason:e})})},t.prototype.trackItemEnd=function(){if(this.itemID){this.flushPlaybackTimes();var e=void 0;e=this.props.isRemotePlayer?O.CAST:this.hasError?O.FAILED:this.hasEnded?O.COMPLETED:O.SKIPPED,
n.i(S.a)("metrics").trackEvent({event:_.END,interaction:!0,properties:l()({},this.itemMetricsProperties,{playbackTime:n.i(w.a)(this.itemPlaybackMilliseconds),status:e})}),this.itemID=null,this.itemDecision=null,this.itemMetricsProperties=null,this.itemPlaybackTimestamp=null,this.itemPlaybackMilliseconds=0,this.hasError=!1,this.hasEnded=!1}},t.prototype.trackSessionEnd=function(){this.sessionPlaybackCount&&(this.flushPlaybackTimes(),n.i(S.a)("metrics").trackEvent({event:_.SESSION_END,
interaction:!0,properties:{serverType:this.props.metricsServerType,connectionType:this.props.metricsConnectionType,type:this.props.metricsType,playbackCount:this.sessionPlaybackCount,playbackTime:n.i(w.a)(this.sessionPlaybackMilliseconds)}}),this.sessionPlaybackMilliseconds=0,this.sessionPlaybackCount=0)},t.prototype.trackFailure=function(){n.i(S.a)("metrics").trackEvent({event:_.FAILURE,interaction:!0,properties:{serverType:this.props.metricsServerType,
connectionType:this.props.metricsConnectionType,type:this.props.metricsType,error:this.props.errorCode}})},t.prototype.render=function(){return null},t}(g.Component);t.a=n.i(b.b)(s)(R)},function(e,t,n){"use strict";function i(){return n.i(p.createSelector)(function(e,t){return t.isPausedProp},n.i(f.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"isPaused";return{isPaused:arguments[1][e]}})}var a=n(7),r=n.n(a),s=n(9),o=n.n(s),l=n(8),u=n.n(l),c=n(0),d=(n.n(c),
n(11)),p=n(5),h=(n.n(p),n(13)),f=n(42),v=function(e){function t(i,a){r()(this,t);var s=o()(this,e.call(this,i,a));return s._screenSaverManager=n.i(h.b)("screenSaverManager")?n.i(h.a)("screenSaverManager"):null,s}return u()(t,e),t.prototype.componentDidMount=function(){this._toggleScreenSaver(this.props.isPaused)},t.prototype.componentDidUpdate=function(e){e.isPaused!==this.props.isPaused&&this._toggleScreenSaver(this.props.isPaused)},t.prototype.componentWillUnmount=function(){
this._toggleScreenSaver(!0)},t.prototype._toggleScreenSaver=function(e){this._screenSaverManager&&this._screenSaverManager.toggle(e)},t.prototype.render=function(){return null},t}(c.Component);t.a=n.i(d.b)(i)(v)},function(e,t,n){"use strict";function i(e){var t=e.type,n=e.primaryExtraKey;return"track"===t&&!!n}t.a=i},function(e,t,n){"use strict";function i(e){var t=e.type,i=e.isLibraryItem,s=e.isExtra,o=e.Media,l=n.i(r.b)(t);if(!l)return!1;var u=o.length;return i&&!s&&l.mediaType===a.a&&u>1}
var a=n(66),r=n(30);t.a=i},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i="isScrolling"},function(e,t,n){"use strict";var i={},a={getPageKey:function(){return window.location.hash},getKey:function(e){return a.getPageKey()+"!"+e},get:function(e){return i[e]},set:function(e,t){i[e]=t},remove:function(e){delete i[e]},clear:function(){i={}}};t.a=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"UP",function(){return i}),
n.d(t,"RIGHT",function(){return a}),n.d(t,"DOWN",function(){return r}),n.d(t,"LEFT",function(){return s}),n.d(t,"all",function(){return o});var i="up",a="right",r="down",s="left",o=[i,a,r,s]},function(e,t,n){"use strict";var i=n(0),a=(n.n(i),i.PropTypes.shape({subscribe:i.PropTypes.func.isRequired,dispatch:i.PropTypes.func.isRequired,getState:i.PropTypes.func.isRequired}));t.a=a},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(13),s=n(59),o=n(15),l=n(571),u=n(71),c=n(28),d=n(1830)
;n.d(t,"b",function(){return p});var p="unknown",h=s.a.extend({mixins:[u.a],bundleUpdatesDelay:36e5,initialize:function(e){this.appModel=e.appModel},start:function(){this.stop(),this.listenTo(this.appModel,{"change:primaryServer":this.onPrimaryServerChange,"change:primaryServer.change:isConnected":this.onPrimaryServerConnectedChange})},stop:function(){this.stopListening()},isLastHistoryEntry:function(e){var t=this.appModel.get("history"),n=a.a.last(t);return!(!n||!n.indexOf("fragment"))},
isDismissedUpdate:function(e){return(n.i(l.a)(e.get("version"))||p)===n.i(r.a)("appModel").get("settings").get("serverUpdateDismissedVersion")},checkForServerUpdates:function(e){if(e.get("isConnected")&&e.get("updater")){var t=e.get("desktop").get("update");e.supports("updater")?t.fetch().then(function(){c.a.execute("checkForServerUpdates",{server:e,download:!1})}):this.isDismissedUpdate(t)||o.a.trigger("show:bar","alertbar",new d.a({model:t}))}},onPrimaryServerChange:function(e,t){
var n=e.previous("primaryServer");if(n&&this.stopListening(n.get("desktop").get("update")),!t||!t.get("isFullOwnedServer"))return void clearTimeout(this.bundleUpdatesTimeout);this.listenTo(t.get("desktop").get("update"),"change:state",this.onServerUpdateStateChange),this.checkForServerUpdates(t)},onPrimaryServerConnectedChange:function(e,t){this.checkForServerUpdates(e)},onServerUpdateStateChange:function(e,t){
this.isDismissedUpdate(e)||this.isLastHistoryEntry("/settings/server")||/^(available|downloaded|notify)$/.test(t)&&o.a.trigger("show:bar","alertbar",new d.a({model:e}))}});t.a=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),a=n(52),r=n(17),s=n(16),o=n(1649),l=n(1647),u=r.a.extend({name:"FilePathListModel",responseType:a.a.json,context:["server","includeFiles","url"],url:function(){var e={};return this.includeFiles&&(e.includeFiles=1),
i.join(["/services/browse"],e)},sessionAttrs:{truncatedFilesCount:s.a.integer},syncedRelations:{paths:{relationClass:o.a,rootPropertyName:"Path"},files:{relationClass:l.a,rootPropertyName:"File"}},augmentResponse:function(e){return e.File&&(e.truncatedFilesCount=Math.max(0,e.File.length-500),e.File=e.File.slice(0,500)),e}});t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(22),a=n(1651),r=i.a.extend({name:"MatchResultCollection",
context:["server"],model:a.a,url:function(){return"/library/metadata/"+this.parent.id+"/matches"}});t.default=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(878),s=n(1652),o=a.a.extend({name:"QueryParseModel",context:["server"],url:function(){return this.get("key")},sessionAttrs:{key:i.a.string},syncedAttrs:{type:i.a.string},syncedRelations:{rule:{relationClass:r.a,rootPropertyName:"Rule",deferred:!0},limits:{relationClass:s.a,rootPropertyName:"Limit",deferred:!0}}});t.a=o
},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"QueryRuleModel",syncedAttrs:{field:i.a.string,fieldTitle:i.a.string,value:i.a.string,valueTitle:i.a.string,operator:i.a.string,type:i.a.string},syncedRelations:{rules:function(){return{relationClass:n(1654).default,rootPropertyName:"Rule",deferred:!0}}}});t.a=r},function(e,t,n){"use strict";var i=n(234),a=n(108),r=n(1656),s=a.a.extend({model:r.a,url:"/playQueues?type="+i.a.LOCAL,parse:function(e){
return this.convert(e,"PlayQueue")}});t.a=s},function(e,t,n){"use strict";function i(e,t,i){var a=/!$/.test(i),r=/\.id$/.test(i);if(a||r)return e[i]=t,e;var s=i.match(/^(.+)\.(.+)/);return s&&(e.type=n.i(l.b)(s[1]).id,i=s[2]),e[i+".query"]=t,e}var a=n(3),r=n.n(a),s=n(82),o=n(19),l=n(30),u=n(52),c=n(22),d=n(1671),p=c.a.extend({name:"MetadataAutocompleteResultCollection",context:["server","section","multiMetadataItem","query"],model:d.a,url:function(){var e={
type:n.i(l.b)(this.multiMetadataItem.get("type")).id,limit:10};return e=r.a.reduce(this.query,i,e),o.join([this.multiMetadataItem.sectionUrl(),"autocomplete"],e)},augmentResponseText:function(e,t){return t===u.a.xml?n.i(s.a)(e):e}});t.a=p},function(e,t,n){"use strict";var i=n(295),a=n(53),r=n(202),s=n(76),o=s.a.extend({name:"SyncMetadataModel",entityType:i.SYNC_METADATA_ITEM,entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state
;return n.i(a.a)(this.entityType,e.ratingKey,this.syncItemId,this.server.entityID())},context:["server","device","syncItemId"],cache:new r.a,cacheKey:function(){return s.a.prototype.cacheKey.apply(this,arguments)+"!"+this.syncItemId}});t.a=o},function(e,t,n){"use strict";var i=n(22),a=n(356),r=i.a.extend({name:"MediaGrabberDeviceCollection",context:["server"],model:a.b,url:"/media/grabbers/devices"});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(1676),r=i.a.extend({
name:"DVRNetworkCollection",model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(885),r=i.a.extend({name:"DVRCollection",context:["server"],model:a.a,url:"/livetv/dvrs"});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(16),r=n(224),s=n(882),o=i.a.extend({name:"DVRModel",context:["server"],rootPropertyName:"Dvr",idAttribute:"key",sessionAttrs:{isSaving:a.a.boolean,saveError:a.a.object},syncedAttrs:{key:a.a.integer,epgIdentifier:a.a.string,country:a.a.string,language:a.a.string,
lineup:a.a.string,lineupTitle:a.a.string,uuid:a.a.string},syncedRelations:{devices:{relationClass:s.a,rootPropertyName:"Device"},prefs:{relationClass:r.a,rootPropertyName:"Setting",deferred:!0,save:!0}},defaults:{isSaving:!1,saveError:null}});t.a=o},function(e,t,n){"use strict";var i=n(17),a=n(16),r=i.a.extend({name:"EPGCountryModel",context:["server"],idAttribute:"code",rootPropertyName:"Country",syncedAttrs:{key:a.a.string,type:a.a.string,title:a.a.string,code:a.a.string,example:a.a.string,
flavor:a.a.integer,language:a.a.string,languageTitle:a.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(16),r=i.a.extend({name:"EPGCountryRegionModel",context:["server"],idAttribute:"key",rootPropertyName:"Region",syncedAttrs:{key:a.a.string,type:a.a.string,title:a.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(1688),r=i.a.extend({name:"ChannelMappingCollection",context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(584),r=i.a.extend({
name:"SearchCollection",context:["server","provider"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(389),s=n.n(r),o=s.a.extend({constructor:function(e,t,n,i){this.exclusiveAgents=t,this.agentIdentifier=n,s.a.call(this,e,i),this.filterBy(a.a.bind(this.filterExclusiveAgent,this))},filterExclusiveAgent:function(e){var t=e.get("identifier"),n=this.exclusiveAgents;if(!n)return!0;var i=this.agentIdentifier,a=n.indexOf(i)!==-1,r=n.indexOf(t)!==-1;return a?t===i:!r}});t.a=o
},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(40),s=n.n(r),o=n(82),l=n(16),u=n(52),c=n(17),d=n(516),p=c.a.extend({name:"CalendarModel",context:["server"],url:"/media/subscriptions/scheduled",sessionAttrs:{visibleDays:l.a.integer,time:l.a.integer},syncedRelations:{scheduled:{relationClass:d.default,rootPropertyName:"MediaGrabOperation"}},derivedAttrs:{startTime:function(){var e=this.get("visibleDays"),t=s.a.unix(this.get("time")),n=t.startOf("day")
;return e>1?n.subtract(1,"day").unix():n.unix()},endTime:function(){var e=this.get("visibleDays"),t=s.a.unix(this.get("time")),n=t.endOf("day");return e>1?n.add(e-2,"days").unix():n.unix()},daysOfWeek:function(){var e=s.a.unix(this.get("startTime")),t=s.a.unix(this.get("endTime")),n=t.diff(e,"days");return a.a.times(Math.min(n+1,7),function(t){return e.clone().add(t,"days").unix()})},days:function(){var e=s.a.unix(this.get("startTime")),t=s.a.unix(this.get("endTime")),n=t.diff(e,"days")
;return a.a.times(n+1,function(t){return e.clone().add(t,"days").unix()})},firstEvent:function(){return this.get("scheduled").first()},lastEvent:function(){return this.get("scheduled").last()},hasPastEvents:function(){var e=this.get("firstEvent");return!!e&&s.a.unix(e.get("beginsAt")).isBefore(s.a.unix(this.get("startTime")))},hasFutureEvents:function(){var e=this.get("lastEvent");return!!e&&s.a.unix(e.get("beginsAt")).isAfter(s.a.unix(this.get("endTime")))}},defaults:function(){return{
visibleDays:7,time:s()().unix()}},augmentResponseText:function(e,t){return t===u.a.xml?n.i(o.a)(e):e}});t.a=p},function(e,t,n){"use strict";function i(e,t){var i=t.libraryID,a=t.libraryType,s=t.cancel,d=t.force,p=t.allowMetrics,h=t.metricsProperties,f=void 0===h?{}:h,v=d?{force:1}:void 0,m=n.i(c.join)(["/library/sections",i,"refresh"],v),g=e.getXHROptions(m,{type:s?"DELETE":"GET"});if(p){var y=void 0;y=s?u.T:d?u.U:u.V,n.i(l.a)("metrics").trackClick(r()({},f,{action:y,type:"all"===i?"all":a}))}
return o.a.ajax(g).promise()}var a=n(6),r=n.n(a),s=n(10),o=n.n(s),l=n(13),u=n(64),c=n(19);t.a=i},function(e,t,n){"use strict";function i(e){return e.get("desktop").get("settings").populate().then(function(e){return e.get("AcceptedEULA").save({AcceptedEULA:!0})})}t.a=i},function(e,t,n){"use strict";function i(e){return e.get("ui").get("claimServerPage")}var a=n(4),r=n(13),s=n(36),o=n(63),l=n(98),u=n(1760),c=n(1761);n.d(t,"a",function(){return h}),n.d(t,"b",function(){return f}),
n.d(t,"c",function(){return v}),n.d(t,"d",function(){return m});var d,p={CLAIM_SERVER:"client:claimServer",CLAIM_SERVER_FAILURE:"client:claimServerFailure"},h=n.i(s.a)("server/claimServer"),f=n.i(s.a)("server/signOutServer"),v=n.i(s.a)("server/claimOnSignIn"),m=n.i(s.a)("server/markAsClaimServerRequest"),g=n.i(o.a)((d={},d["server/claimServer"]=function(e,t,s){var o=n.i(l.f)(e,t),c=i(e);c.set({errorMessage:null,isBusy:!0});var d=n.i(r.a)("metrics");n.i(u.a)(e,o).done(function(){d.trackEvent({
event:p.CLAIM_SERVER,interaction:!0}),c.set({errorMessage:null,isBusy:!1})}).fail(function(){d.trackEvent({event:p.CLAIM_SERVER_FAILURE,interaction:!1}),c.set({errorMessage:n.i(a.default)("There was a problem signing in to Plex."),isBusy:!1})})},d["server/signOutServer"]=function(e,t,r){var s=n.i(l.f)(e,t),o=s.get("desktop").get("cloudAccount"),u=i(e);u.set({errorMessage:null,isBusy:!0}),n.i(c.a)(o).done(function(){u.set({errorMessage:null,isBusy:!1})}).fail(function(){u.set({
errorMessage:n.i(a.default)("There was a problem signing the server out."),isBusy:!1})})},d["server/claimOnSignIn"]=function(e,t,n){var a=i(e),r=e.get("user");a.get("isClaimServerRequest")&&r.get("isSignedIn")&&n(h(t))},d["server/markAsClaimServerRequest"]=function(e,t,n){i(e).set("isClaimServerRequest",t)},d));t.e=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(36),a=n(37);n.d(t,"initMediaSubscriptionModal",function(){return r}),
n.d(t,"clearMediaSubscriptionModal",function(){return s}),n.d(t,"fetchMediaSubscription",function(){return o}),n.d(t,"saveMediaSubscription",function(){return l}),n.d(t,"changeMediaSubscriptionTemplateMode",function(){return u}),n.d(t,"clearMediaSubscriptionModalError",function(){return c}),n.d(t,"moveMediaSubscriptionModal",function(){return d}),n.d(t,"deleteMediaSubscriptionModal",function(){return p})
;var r=n.i(i.a)(a.a),s=n.i(i.a)(a.b),o=n.i(i.a)(a.c),l=n.i(i.a)(a.d),u=n.i(i.a)(a.e),c=n.i(i.a)(a.f),d=n.i(i.a)(a.g),p=n.i(i.a)(a.h)},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(98),s=n(81),o=n(342),l=n(36),u=n(118);n.d(t,"a",function(){return d}),n.d(t,"b",function(){return p}),n.d(t,"c",function(){return h}),n.d(t,"d",function(){return f})
;var c,d=n.i(l.a)("ui/player/localCompanionPlayer/dispatchLocalCompanionPlaybackAction"),p=n.i(l.a)("ui/player/localCompanionPlayer/addTransientServer"),h=n.i(l.a)("ui/player/localCompanionPlayer/mirrorLocalDetails"),f=(c={},c["ui/player/localCompanionPlayer/dispatchLocalCompanionPlaybackAction"]=function(e,t,n){var i=t.type,r=t.action,l=r.type,u=r.payload,c=void 0===u?{}:u,d=e.get("ui"),p=i===o.b?s.c:s.b,h=d.get(p+"Player");h.get("isOpen")&&h.get("playQueue")&&n({type:l,payload:a()({},c,{
playerType:p})})},c["ui/player/localCompanionPlayer/addTransientServer"]=function(e,t){e.set("transientServer",t)},c["ui/player/localCompanionPlayer/mirrorLocalDetails"]=function(e,t){var i=n.i(r.f)(e,t),a=n.i(r.d)(e,t),s=void 0;if(i.get("isTransient")){s="#!/transient/provider/"+encodeURIComponent(a.get("identifier"))+"/details?key="+encodeURIComponent(t.key)}else{var o={machineIdentifier:i.get("machineIdentifier")},l={identifier:a.get("identifier"),isLibraryProvider:a.get("isLibraryProvider")}
;s=n.i(u.a)(o,l,t.key)}/\/transient\//.test(window.location.hash)?window.location.replace(s):window.location.hash=s},c)},function(e,t,n){"use strict";var i=n(36),a=n(19),r=n(176),s=n(63),o=n(166);n.d(t,"a",function(){return u}),n.d(t,"b",function(){return c});var l,u=n.i(i.a)("ui/player/photoPlayer/fetchRelatedPhotos"),c=n.i(s.a)((l={},l["ui/player/photoPlayer/fetchRelatedPhotos"]=function(e){
var t=n.i(o.a)(e,"photo"),i=t.get("playQueue"),s=i.get("currentIndex"),l=n.i(o.b)(t,s),u=l.get("metadataItem"),c=u.get("key"),d=n.i(a.join)([c.replace("/library/","/hubs/"),"related"]),p=new r.default([],{server:u.server,metadataItem:u,hubKey:d,hubCount:8});t.set({relatedHubs:p}),u.get("isLibraryItem")&&p.fetch()},l))},function(e,t,n){"use strict";function i(e){return e.get("ui").get("playlistsPage")}var a=n(36),r=n(97),s=n(226),o=n(88),l=n(268),u=n(334),c=n(87),d=n(115),p=n(125)
;n.d(t,"a",function(){return v}),n.d(t,"b",function(){return m}),n.d(t,"c",function(){return g});var h,f="ui/playlistsPage/fetchSorts",v=n.i(a.a)("ui/playlistsPage/initPlaylistPage"),m=(n.i(a.a)(f),n.i(a.a)("ui/playlistsPage/populateSorts")),g=(n.i(a.a)("ui/playlistsPage/fetchLibraryDetails"),n.i(a.a)("ui/playlistsPage/populateLibraryDetails")),y=(h={},h["ui/playlistsPage/initPlaylistPage"]=function(e,t){
var a=i(e),r=n.i(c.e)(e,t),s=t.serverEntityID,d=t.libraryKey,p=t.containerKey,h=s===a.get("serverEntityID"),f=d===a.get("libraryKey"),v=p===a.get("containerKey");if(!(h&&f&&v)){var m=new o.default({containerKey:p},{server:r}),g=a.get("libraryDetails"),y=a.get("sorts");h&&f||(g=d&&new l.a({key:d},{server:r}),y=new u.a([],{url:"/playlists/sorts",server:r})),a.restoreDefaults({serverEntityID:s,libraryKey:d,containerKey:p,playlists:m,libraryDetails:g,sorts:y})}},
h["ui/playlistsPage/fetchLibraryDetails"]=n.i(r.a)({key:"libraryDetails",getModel:i}),h["ui/playlistsPage/populateLibraryDetails"]=n.i(s.a)({key:"libraryDetails",fetchActionType:"ui/playlistsPage/fetchLibraryDetails",getModel:i}),h[f]=n.i(r.a)({key:"sorts",getModel:i}),h["ui/playlistsPage/populateSorts"]=n.i(s.a)({key:"sorts",fetchActionType:f,getModel:i}),h[d.b]=function(e,t,a){var r=t.metadataItemEntityID,s=t.containerKeyPattern,o=n.i(c.e)(e,t),l=i(e),u=l.get("playlists")
;r||u&&u.server===o&&s&&u.get("containerKey").match(s)&&a(n.i(p.g)({metadataListEntityID:u.entityID()}))},h);t.d=y},function(e,t,n){"use strict";var i=n(36),a=n(37);n.d(t,"a",function(){return r}),n.d(t,"c",function(){return s}),n.d(t,"b",function(){return o});var r=n.i(i.a)(a._130),s=n.i(i.a)(a._131),o=n.i(i.a)(a._132)},function(e,t,n){"use strict";function i(){return n.i(s.createSelector)(function(e,t){return t.activeSort},n.i(o.a)(),function(e,t){if(t){
var n=e&&r.a.first(e.split(":")),i=r.a.find(t.sorts,function(t){return e?t.key===n||t.descKey===e:t.isDefault});return i||(i=r.a.first(t.sorts)),i}})}var a=n(3),r=n.n(a),s=n(5),o=(n.n(s),n(359));t.a=i},function(e,t,n){"use strict";var i=n(5),a=(n.n(i),n(292)),r=n.i(i.createSelector)(a.a,function(e){return e.reduce(function(e,t){return e.push.apply(e,t.fields),e},[])});t.a=r},function(e,t,n){"use strict";function i(e){var t=e.ui.libraryPage.details;return t?t.fieldTypes:void 0}t.a=i
},function(e,t,n){"use strict";function i(){return n.i(o.createSelector)(c.a,n.i(d.a)(),function(e,t){var i=t?t.channels:e.selectedDevice.channels,a=t?t.channelMappings:e.channelMappings,r=s.a.pluck(i,"key"),o=s.a.pluck(a,"deviceIdentifier"),u=r.concat(o);return s.a.uniq(u).map(function(e){var t=s.a.find(i,{key:e}),n=s.a.findWhere(a,{deviceIdentifier:e}),r=!!t&&t.drm,o=!(!t||r||!n||!n.enabled);return{key:e,name:t?t.name:"",deviceIdentifier:t?t.identifier:"",enabled:o,drm:r,isChannelMissing:!t,
lineupIdentifier:n&&n.lineupIdentifier?n.lineupIdentifier:""}}).sort(function(e,t){return n.i(l.a)(e.deviceIdentifier,t.deviceIdentifier)})})}function a(){return n.i(u.a)(i(),function(e){return e})}var r=n(3),s=n.n(r),o=n(5),l=(n.n(o),n(552)),u=n(228),c=n(142),d=n(360);t.a=a},function(e,t,n){"use strict";function i(){return n.i(s.createSelector)(function(e,t){return t.deviceID},n.i(l.a)(),u.a,function(e,t,n){var i=n.selectedDevice&&n.selectedDevice.key;return r.a.find(t,function(t){
return t.type===o.a.PROVIDER_DEVICE_CHANNELSCAN&&parseInt(t.Context.deviceID,10)===(e||i)})})}var a=n(3),r=n.n(a),s=n(5),o=(n.n(s),n(134)),l=n(243),u=n(142);t.a=i},function(e,t,n){"use strict";function i(){return n.i(s.createSelector)(function(e,t){return t.dvrID},n.i(l.a)(),u.a,function(e,t,n){return e?r.a.find(t,function(t){return t.type===o.a.PROVIDER_EPG_LOAD&&parseInt(t.Context.dvrID,10)===e}):r.a.find(t,{uuid:n.epgDownloadActivityID})})}var a=n(3),r=n.n(a),s=n(5),o=(n.n(s),
n(134)),l=n(243),u=n(142);t.a=i},function(e,t,n){"use strict";function i(){return n.i(s.createSelector)(n.i(u.a)(),n.i(l.a)(),function(e,t){return r.a.find(e,function(e){return e.type===o.a.GRABBER_GRAB&&e.Context.itemKey&&e.Context.itemKey===t.key})})}var a=n(3),r=n.n(a),s=n(5),o=(n.n(s),n(134)),l=n(21),u=n(243);t.a=i},function(e,t,n){"use strict";var i=n(5),a=(n.n(i),n(228)),r=n(142),s=n.i(i.createSelector)(r.a,function(e){return e.lineupChannels.reduce(function(e,t){
var n=t.identifier+" "+t.callSign;return t.title&&(n+=" ("+t.title+")"),e[t.identifier]=n,e},{})}),o=n.i(a.a)(s,function(e){return e});t.a=o},function(e,t,n){"use strict";function i(){return n.i(s.createSelector)(n.i(o.a)(),n.i(l.a)(),function(e,t){if(e&&t)return r.a.findWhere(e.Channel,{id:t.channelID})})}var a=n(3),r=n.n(a),s=n(5),o=(n.n(s),n(21)),l=n(361);t.a=i},function(e,t,n){"use strict";function i(e){return n.i(a.createSelector)(r.a,function(t){if(!t)return{};var n=t.desktop;return{
oauthProviders:n.oauthProviders.filter(function(t){return t.usage&&t.usage[e]}),isOauthProvidersPending:n.isOauthProvidersPending,isOauthProvidersPopulated:n.isOauthProvidersPopulated,oauthProvidersError:n.oauthProvidersError}})}var a=n(5),r=(n.n(a),n(402));t.a=i},function(e,t,n){"use strict";var i=n(909);t.a=n.i(i.a)("federatedAuth")},function(e,t,n){"use strict";var i=n(909);t.a=n.i(i.a)("plexCloud")},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(5),s=(n.n(r),
n(83)),o=void 0,l=n.i(r.createSelector)(s.a,function(e){var t=a.a.pluck(e.activeSelectionItems,"id");return o&&a.a.isEqual(o,t)?o:(o=t,t)});t.a=l},function(e,t,n){"use strict";function i(e){return n.i(u.createSelector)(n.i(d.a)(),function(t){return l.a.find(t,{type:e})})}function a(){return i(c.a.OPTIMIZE_DATABASE)}function r(){return i(c.a.CLEAN_BUNDLES)}function s(){return i(c.a.LIBRARY_DELETE)}var o=n(3),l=n.n(o),u=n(5),c=(n.n(u),n(134)),d=n(243);t.a=a,t.b=r,t.c=s},function(e,t,n){
"use strict";function i(){return n.i(a.createSelector)(function(e,t){return t.providerEntityID},function(e,t){return t.listType},function(e,t){return t.listContext},o.a,function(e,t,i,a){return n.i(s.a)(t,i,{providerEntityID:e,keys:i===r.e?a[t]:null})})}var a=n(5),r=(n.n(a),n(32)),s=n(1058),o=n(1797);t.a=i},function(e,t,n){"use strict";function i(e){return e.experienceSettings.showPrePlayArtwork}t.a=i},function(e,t,n){"use strict";function i(e,t){
return t[e.playQueueItems[e.currentIndex]].metadataItem}function a(){return n.i(r.createSelector)(function(e){return e.ui.audioVideoPlayer},function(e){return e.ui.photoPlayer},function(e,t){return t.metadataItemEntityID},s.a,function(e,t,n,a){if(!n)return!1;var r=void 0,s=void 0;return e.playQueue&&(r=i(e.playQueue,a)),t.playQueue&&(s=i(t.playQueue,a)),r===n||s===n})}var r=n(5),s=(n.n(r),n(535));t.a=a},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(n.i(s.a)(),function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,i=e.skipChildren,a=i?n.i(r.n)(t):n.i(r.o)(t);return a&&a.typeString})}var a=n(5),r=(n.n(a),n(30)),s=n(21);t.a=i},function(e,t,n){"use strict";var i={PRODUCTION:"9AC194DC",QA:"4289C4E0",CUSTOM:"custom"};i.settings=[{value:i.PRODUCTION,title:"Production"},{value:i.QA,title:"QA"},{value:i.CUSTOM,title:"Custom"}],t.a=i},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(39),s=n.n(r),o=n(434),l=n(2679),u=n.n(l),c=o.a.extend({
className:"react-page-container",initialize:function(){this.$el.addClass(u.a.wrapper)},unmountReact:function(){this.isRendered&&a.a.each(this.ui,function(e,t){s.a.unmountComponentAtNode(e[0])})}});t.a=c},function(e,t,n){"use strict";var i=n(3045),a=n.n(i),r=n(18),s=r.a.ItemView.extend({className:"loading",template:a.a,initialize:function(e){e&&e.inline&&this.$el.addClass("loading-inline")}});t.a=s},function(e,t,n){"use strict";function i(){var e=n.i(d.a)("appModel")
;window.location.hash=p.join([window.location.hash],{newauth:!0},{parseParams:!0}),e.get("ui").get("signInLaunchPage").set("isFederatedAuthEnabled",!0),h.a.trigger("navigate:refresh")}var a=n(3048),r=n.n(a),s=n(3),o=n.n(s),l=n(10),u=n.n(l),c=n(18),d=n(13),p=n(19),h=n(15),f=n(572),v=n(561),m=n(34),g=n(64),y=n(28),b=n(141),S=n(1814),I=c.a.Layout.extend({className:"sign-in-container container",template:r.a,ui:{form:"#user-account-form"},regions:{form:"#user-account-form"},events:{
"submit form":"onSubmit","click .why-sign-in-btn":"onWhySignInClick","click .back-to-sign-in-btn":"onBackToSignInClick","click .tv-mode-btn":"onTVModeClick"},initialize:function(e){e||(e={}),(0,n.i(d.a)("appStore").dispatch)(n.i(b.a)({allowLightPreset:!1})),this.isFirstRun=!!e.isFirstRun,this.showWhySignIn=!1},serializeData:function(){return{showSkip:this.isFirstRun,showWhySignIn:this.showWhySignIn,showTVMode:n.i(v.a)(),skipSignInUrl:p.join(["#!/setup/skipSignIn"],{
forwardUrl:window.location.href})}},signIn:function(e){return this.form.currentView.validateAll(this.ui.form[0],["username","password"],e)?y.a.execute("signIn",e):u.a.Deferred().reject().promise()},signUp:function(e){return this.form.currentView.validateAll(this.ui.form[0],null,e)?y.a.execute("signUp",e):u.a.Deferred().reject().promise()},onRender:function(){this.form.show(new S.a({isFirstRun:this.isFirstRun,showRememberMe:!0}))},onSubmit:function(e){e.preventDefault()
;var t=e.currentTarget,n=this.form.currentView.ui.submitBtn;if(!n.hasClass("active")){n.addClass("active");var a=t.username.value,r=t.password.value,s={isFirstRun:this.isFirstRun,username:a,email:t.email.value,password:r,confirm:t.confirm.value,remember:t.remember.checked};if("newauth"===a&&"barkley"===r)return void i();var l=this.form.currentView.$el.hasClass("sign-in-form")?this.signIn(s):this.signUp(s);l.done(function(){h.a.trigger("navigate:refresh")}),l.fail(o.a.bind(function(){
n.removeClass("active")},this))}},onWhySignInClick:function(e){e.preventDefault(),n.i(d.a)("metrics").trackClick({page:m.D,action:g.L,firstRun:this.isFirstRun}),this.showWhySignIn=!0,this.render()},onBackToSignInClick:function(e){e.preventDefault(),this.showWhySignIn=!1,this.render()},onTVModeClick:function(e){e.preventDefault(),n.i(f.a)("tv")}});t.a=I},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),s=(n.n(r),
n(39)),o=n.n(s),l=n(11),u=n(13),c=n(597),d=n(1017),p=a()(d.a,{}),h=c.a.extend({mountReact:function(){var e=n.i(u.a)("appStore");o.a.render(a()(l.a,{store:e},void 0,p),this.ui.page[0])}});t.a=h},function(e,t,n){"use strict";var i=n(18),a=n(13),r=n(58),s=n(504),o=i.a.Layout.extend({mixins:s.a,posterWidth:250,ui:{poster:".item-poster"},regions:{rating:".rating-container",summary:".summary-container",audio:".item-audio",subtitles:".item-subtitles",studio:".studio-flag-container",
contentRating:".content-rating-flag-container",videoResolution:".video-audio-flags-container",audioCodec:".video-audio-flags-container",audioChannels:".video-audio-flags-container",poster:".details-poster-container",list:".details-list-region"},events:{"click .details-poster-container > .play-btn":"onPlayClick"},initialize:function(e){this.mediaActions=e.mediaActions},serializeData:function(){var e=this.model.get("grandparentKey"),t=this.model.get("parentKey");return{
serverID:this.model.server.id,grandparentKey:t?encodeURIComponent(e):null,parentKey:t?encodeURIComponent(t):null}},onRender:function(){this.starRatingView&&this.rating.show(this.starRatingView),this.audioDropdown&&this.audio.append(this.audioDropdown),this.subtitlesDropdown&&this.subtitles.append(this.subtitlesDropdown),this.posterImage&&this.posterImage.setElement(this.ui.poster),this.studioFlag&&this.studio.show(this.studioFlag),
this.contentRatingFlag&&this.contentRating.show(this.contentRatingFlag),this.videoResolutionFlag&&this.videoResolution.append(this.videoResolutionFlag),this.audioCodecFlag&&this.audioCodec.append(this.audioCodecFlag),this.audioChannelsFlag&&this.audioChannels.append(this.audioChannelsFlag),this.summaryView&&this.summary.append(this.summaryView)},onClose:function(){this.posterImage&&this.posterImage.close()},onPlayClick:function(e){e.preventDefault(),n.i(a.a)("appStore").dispatch(n.i(r.a)({
serverModel:this.model.server,metadataItemModel:this.model}))}});t.a=o},function(e,t,n){"use strict";var i=n(3069),a=n.n(i),r=n(3),s=n.n(r),o=n(18),l=n(581),u=n(1819),c=n(1840),d=n(1841),p=n(1842),h={movie:c.a,episode:c.a,clip:c.a,userPlaylistItem:c.a,playlist:d.a},f=o.a.Layout.extend({className:"details-container legacy-page",template:a.a,regions:{actionBar:".legacy-action-bar",scroller:".legacy-content-scroller"},initialize:function(){var e=this.model.get("type");this.mediaActions=new l.a({},{
item:this.model,type:e})},onRender:function(){var e,t=this.model.get("type");if(s()(h).has(t)){e=new(0,h[t])({model:this.model,mediaActions:this.mediaActions})}else e=new p.a({model:this.model});this.scroller.show(e),this.actionBar.show(new u.a({model:this.model,mediaActions:this.mediaActions}))}});t.a=f},function(e,t,n){"use strict";function i(e){return D.a.reduce(e,function(e,t){return e[t]=!0,e},{})}
var a=n(3080),r=n.n(a),s=n(3082),o=n.n(s),l=n(3085),u=n.n(l),c=n(3089),d=n.n(c),p=n(3091),h=n.n(p),f=n(3092),v=n.n(f),m=n(3094),g=n.n(m),y=n(3096),b=n.n(y),S=n(3098),I=n.n(S),M=n(3093),C=n.n(M),w=n(3),D=n.n(w),P=n(10),T=n.n(P),x=n(4),E=n(30),N=n(599),L=n(1854),A=n(598),k={movie:d.a,show:b.a,season:g.a,episode:u.a,artist:o.a,album:r.a,track:I.a,photoalbum:h.a,photo:v.a,playlist:C.a},_=N.a.extend({regions:{ratingRegion:".rating-region"},ui:D.a.extend({selectizeInputs:".selectize input[type=text]"
},N.a.prototype.ui),initialize:function(e){var t=this.model.get("type");this.template=k[t]||k.movie;var i=n.i(E.b)(t);this.canSelectize=this.model.server.supports("batchEdit")&&i,this.canReparent=this.model.server.supports("batchEdit")},serializeData:function(){var e=N.a.prototype.serializeData.apply(this,arguments);return e.supportsLinkedYears=this.model.server.supports("linkedYearMetadata"),e},flushChanges:function(){
var e=this.ui.form,t=e.find(".selectize input[tabindex=-1]"),n=i(D.a.pluck(t,"name")),a=i(D.a.pluck(e.find("[type=number]"),"name")),r=D()(e.serializeArray()).reject(function(e){return n[e.name]},this),s=D.a.reduce(r,function(e,t){if(a[t.name]){var n=T.a.trim(t.value);if(n)return e[t.name]=parseFloat(n,10),e;if(!this.model.get(t.name))return e}return e[t.name]=t.value,e},{},this);D.a.each(t,function(e){
var t=T()(e),n=t.data("updateAttr"),i=t.data("altUpdateAttr"),a=t.data("isText"),r=e.selectize.getValue();if(i)if(a)s[n]=r,s[i]=null;else{var o=e.selectize.options[r];if(o){var l=o[t.data("autocompleteAttr")];s[n]=l,s[i]=r}}else s[n]=r});var o=this.model.get("lockedFields");o&&o.set(this.getLockedFieldsArray(),{parse:!0}),this.model.set(s)},markInvalid:function(e){this.$(".form-group").removeClass("has-error"),D()(e).each(function(e){var t=this.$('.form-group[data-attr="'+e+'"]')
;t.addClass("has-error"),t.find(".control-error").text(n.i(x.default)("Required"))},this)},onRender:function(){if(this.$(".rating-region").length>0&&this.ratingRegion.show(new A.a({model:this.model,passive:!0})),this.canSelectize){var e=this;this.ui.selectizeInputs.each(function(t,i){n.i(L.a)(e,i)})}}});t.a=_},function(e,t,n){"use strict"
;var i=n(3090),a=n.n(i),r=n(3097),s=n.n(r),o=n(3086),l=n.n(o),u=n(3083),c=n.n(u),d=n(3081),p=n.n(d),h=n(3099),f=n.n(h),v=n(3),m=n.n(v),g=n(10),y=n.n(g),b=n(333),S=n(599),I=n(1855),M=n(729),C=(n.n(M),S.a.extend({templatesByType:{movie:a.a,show:s.a,episode:l.a,artist:c.a,album:p.a,track:f.a},ui:m.a.extend({tagInputs:".tag-input-hidden"},S.a.prototype.ui),events:m.a.extend({"change .lockable-field":"onLockableFieldChange"},S.a.prototype.events),initialize:function(e){
this.template=this.templatesByType[this.model.get("type")]||this.templatesByType.movie,this.canAutocomplete=this.model.server.supports("batchEdit"),this.canEditSimilarArtists=this.model.server.supports("editSimilarArtists"),this.getSection()},getSection:function(){var e=this.model.section;if(!e){var t=this.model.get("librarySectionID");e=new b.a({key:t},{server:this.model.server})}this.section=e},flushChanges:function(){var e=this.ui.form,t=m.a.reduce(e.serializeArray(),function(e,t){
return e[t.name]=t.value,e},{}),n=m.a.reduce(this.ui.tagInputs,function(e,t){var n=t.selectize,i=y()(t).data("name");return e[y()(t).data("attr")]=m.a.map(n.items,function(e){var t=n.options[e];return{tag:t.tag,id:t.id}}),this.model["original.tag."+i]=m.a.toArray(n.options),e},{},this);m.a.each(n,function(e,t){this.model.get(t).set(e,{parse:!0})},this),this.model.get("lockedFields").set(this.getLockedFieldsArray(),{parse:!0}),this.model.set(t)},onRender:function(){var e=this
;this.ui.tagInputs.each(function(t,i){n.i(I.a)(e,i)})}}));t.a=C},function(e,t,n){"use strict";var i=n(3109),a=n.n(i),r=n(55),s=n(18),o=n(4),l=n(274),u=n(287),c=n(860),d=s.a.Layout.extend({mixins:[u.a],className:"conversion-status",template:a.a,regions:{progressBarRegion:".progress-bar-region"},initialize:function(e){this.initialState=e.initialState,this.initialErrorMessage=e.initialErrorMessage,this.generator=e.generator,this.transcodeJobs=e.transcodeJobs,this.pausedSetting=e.pausedSetting,
this.progressModel=new r.a.Model({progress:0,remaining:0,speed:0})},states:{pending:{onEnter:function(){this.$el.addClass("pending")},onExit:function(){this.$el.removeClass("pending")}},converting:{onEnter:function(){this.$el.addClass("converting")},onExit:function(){this.$el.removeClass("converting")}},processed:{onEnter:function(){this.$el.addClass("processed")},onExit:function(){this.$el.removeClass("processed")}},disabled:{onEnter:function(){this.$el.addClass("disabled")},onExit:function(){
this.$el.removeClass("disabled")}},error:{onEnter:function(){this.$el.addClass("error")},onExit:function(){this.$el.removeClass("error")}}},bindingsModel:"progressModel",bindings:{".conversion-status-converting-label":{model:"pausedSetting",modelAttribute:"value",formatter:function(e){return e?n.i(o.default)("Paused"):n.i(o.default)("Converting")}},".conversion-status-pending-label":{model:"pausedSetting",modelAttribute:"value",formatter:function(e){
return e?n.i(o.default)("Paused"):n.i(o.default)("Waiting")}},".conversion-status-converting-speed":{modelAttribute:"speed",autohide:!0,formatter:function(e){if(e){var t=Math.round(10*e)/10;return t>10&&(t=Math.round(t)),"("+t+"x)"}}},".conversion-status-converting-percentage":{modelAttribute:"progress",formatter:function(e){return Math.round(e)+"%"}},".conversion-status-converting-progress-separator":{modelAttribute:"remaining",manual:!0,autohide:function(e){
return e&&this.progressModel.get("speed")}},".conversion-status-converting-remaining":{modelAttribute:"remaining",autohide:!0,formatter:function(e){if(this.progressModel.get("speed"))return n.i(l.a)(e)}}},serializeData:function(){return{initialErrorMessage:this.initialErrorMessage}},findTranscodeJob:function(){return this.transcodeJob=this.transcodeJobs.find(function(e){
var t=this.model.get("ratingKey"),n=this.generator?this.generator.id:this.model.get("generatorID"),i=this.model.get("syncItemId"),a=t&&t===e.get("ratingKey"),r=n&&n===e.get("generatorID"),s=i&&i===e.get("syncItemId");return a&&(r||s)},this),this.transcodeJob&&(this.stopListening(this.transcodeJobs),this.enterState("converting"),this.progressModel.set({progress:this.transcodeJob.get("progress"),speed:this.transcodeJob.get("speed"),remaining:this.transcodeJob.get("remaining")}),
this.listenTo(this.transcodeJob,{remove:this.onTranscodeJobRemove,"change:progress":this.onTranscodeProgressChange,"change:speed":this.onTranscodeSpeedChange,"change:remaining":this.onTranscodeRemainingChange})),this.transcodeJob},onRender:function(){this.enterState(this.initialState||"pending"),this.findTranscodeJob()||this.listenTo(this.transcodeJobs,"reset add",this.findTranscodeJob),this.progressBarRegion.append(new c.a({model:this.progressModel,size:30,lineWidth:3}))},
onTranscodeJobRemove:function(e){this.enterState("pending")},onTranscodeProgressChange:function(e,t){this.progressModel.set("progress",t)},onTranscodeSpeedChange:function(e,t){this.progressModel.set("speed",t)},onTranscodeRemainingChange:function(e,t){this.progressModel.set("remaining",t)}});t.a=d},function(e,t,n){"use strict";var i=n(3117),a=n.n(i),r=n(3),s=n.n(r),o=n(435),l=n(124),u=o.a.extend({className:"striped-list-item media-list-item media-details-list-item",template:a.a,ui:s.a.extend({
poster:".media-poster"},o.a.prototype.ui),initialize:function(e){o.a.prototype.initialize.apply(this,arguments),this.model&&this.createImageView()},createImageView:function(){var e=this.type;"episode"===e&&(e="show"),this.image=new l.a({model:this.model,type:e,getUrl:this.getPosterUrl,height:150})},bindings:s.a.extend({},o.a.prototype.bindings,{".media-count-badge":{modelAttribute:"Media",formatter:function(e){return e&&e.length||0},autohide:function(e){
return!/^(clip|userPlaylistItem)$/.test(this.model.get("type"))&&e>1}},".unwatched-count-badge":{modelAttribute:"unviewedLeafCount",autohide:function(e){return!(this.shared&&!this.multiuser)&&(!/^(artist|album)$/.test(this.model.get("type"))&&!!e)}},".media-tagline":{modelAttribute:"tagline",autohide:!0},".media-summary":{modelAttribute:"summary",autohide:!0}})});t.a=u},function(e,t,n){"use strict"
;var i=n(3135),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(18),c=n(13),d=n(4),p=n(15),h=n(418),f=n(300),v=u.a.ItemView.extend({className:"friend-server-status-container",template:a.a,events:{"click .server-share-edit-btn":"onEditClick"},initialize:function(){var e=c.a("appModel");this.collection=this.model.get("serverShares"),this.servers=e.get("servers"),this.attachedServers=[],this.collection.each(this.addServerShare,this),this.listenTo(this.collection,{add:this.onServerShareAdd,
remove:this.onServerShareRemove,"change:numLibraries":this.render}),this.listenTo(this.servers,"add",this.onServerAdd)},serializeData:function(){var e=c.a("appModel"),t={owned:this.getLibrariesData({owned:!0}),shared:this.getLibrariesData({owned:!1}),canEdit:!e.get("user").get("restricted")};return t.owned.numLibraries||t.shared.numLibraries||(t.showEmptyMessage=!0),t},getLibrariesData:function(e){var t={friendLabel:this.model.get("restricted")?n.i(d.default)("user"):n.i(d.default)("friend"),
status:this.getServerStatus(e),hasActiveShare:!!this.collection.findWhere({pending:!1,owned:e.owned})};return t.numLibraries=this.collection.getLibraryCount({pending:!t.hasActiveShare,owned:e.owned}),t.libraryLabel=n.i(h.a)(n.i(d.default)("library"),t.numLibraries,n.i(d.default)("libraries")),t},getServerStatus:function(e){for(var t,n=0,i=this.collection.length;n<i;n++){var a=this.collection.at(n);if(a.get("owned")===e.owned){
var r=this.servers.get(a.get("machineIdentifier")),s=r&&r.get("connected");if(s===!1)return"unavailable";s&&(t="available")}}return t},addServerShare:function(e){var t=this.servers.get(e.get("machineIdentifier"));t&&this.attachServer(t)},removeServerShare:function(e){var t=this.servers.get(e.get("machineIdentifier"));t&&!e.get("owned")&&this.detachServer(t)},attachServer:function(e){this.attachedServers.push(e),this.listenTo(e,"change:connected",this.render)},detachServer:function(e){
var t=s.a.indexOf(this.attachedServers,e);t>-1&&this.attachedServers.splice(t,1),this.stopListening(e)},onServerShareAdd:function(e){this.addServerShare(e),this.render()},onServerShareRemove:function(e){this.removeServerShare(e),this.render()},onServerAdd:function(e){this.collection.findWhere({machineIdentifier:e.id})&&(this.attachServer(e),this.render())},onEditClick:function(e){e.preventDefault();var t=l()(e.currentTarget);if(!t.isDisabled()){
var n,i=t.hasClass("owned"),a=this.collection.findWhere({owned:i});a&&(n=a.get("machineIdentifier")),p.a.trigger("show:modal",new f.a({model:this.model,defaultPaneType:i?"ownedServer":"sharedServer",defaultPaneID:n}))}}});t.a=v},function(e,t,n){"use strict";var i=n(3137),a=n.n(i),r=n(10),s=n.n(r),o=n(18),l=n(13),u=n(4),c=n(15),d=n(28),p=n(182),h=n(929),f=n(300),v=n(364),m=o.a.Layout.extend({tagName:"li",className:"card-tile-list-item card-2-col-item",template:a.a,ui:{poster:".card-poster"},
regions:{details:".card-details"},events:{"click .pin-btn":"onPINClick","click .edit-btn":"onEditClick","click .delete-btn":"onDeleteClick"},initialize:function(e){var t=l.a("appModel"),n=t.get("user"),i=n.get("desktop").get("friends"),a=i.get(this.model.id);this.isAdmin=e.isAdmin,this.isSignedInUser=this.model.id===n.id,this.image=new p.a({model:this.model,type:"friend",width:80}),a?this.friend=a:this.listenTo(i,"add",this.onFriendAdd)},serializeData:function(){return{
isSignedInUser:this.isSignedInUser}},canEditPIN:function(){var e=this.isSignedInUser&&!this.model.get("restricted"),t=this.isAdmin&&this.model.get("restricted")&&!this.model.get("guest");return e||t},showStatusView:function(){this.friend&&this.details.append(new h.a({model:this.friend}))},bindings:{".username":{modelAttribute:"title"},".admin-icon":{modelAttribute:"admin",autohide:!0,manual:!0},".user-type":{modelAttribute:"restricted",autohide:!0,formatter:function(e){
return this.model.get("guest")?n.i(u.default)("Guest User"):e?n.i(u.default)("Managed User"):void 0}},".pin-protected-btn":{modelAttribute:"protected",manual:!0,autohide:!0,formatter:function(e,t){return t.toggleClass("disabled",!this.canEditPIN()),e}},".pin-unprotected-btn":{modelAttribute:"protected",manual:!0,autohide:!0,formatter:function(e,t){return t.toggleClass("disabled",!this.canEditPIN()),!e}},".edit-btn":{modelAttribute:"admin",manual:!0,autohide:!0,formatter:function(e){
var t=l.a("appModel"),n=t.get("user");return(this.isAdmin||!n.get("restricted")&&!this.model.get("restricted"))&&!this.isSignedInUser}},".delete-btn":{modelAttribute:"admin",manual:!0,autohide:!0,formatter:function(e){return this.isAdmin&&!this.isSignedInUser&&!this.model.get("guest")}}},onRender:function(){this.image.setElement(this.ui.poster),this.showStatusView()},onClose:function(){this.image.close()},onFriendAdd:function(e){e.id===this.model.id&&(this.friend=e,this.showStatusView())},
onPINClick:function(e){e.preventDefault(),s()(e.currentTarget).isDisabled()||c.a.trigger("show:modal",new v.a({model:this.model,isEditing:!0}))},onEditClick:function(e){e.preventDefault(),c.a.trigger("show:modal",new f.a({type:"home",homeUser:this.model,isAdmin:this.isAdmin}))},onDeleteClick:function(e){e.preventDefault(),d.a.execute("removeHomeUser",{homeUser:this.model})}});t.a=m},function(e,t,n){"use strict";var i=n(51),a=n(1929),r=i.a.extend({tagName:"ul",className:"list card-tile-list",
itemView:a.a,sorted:!0});t.a=r},function(e,t,n){"use strict";var i=n(1105),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(40),c=n.n(u),d=n(13),p=n(4),h=n(15),f=n(19),v=n(239),m=n(28),g=n(115),y=n(1672),b=n(925),S=n(926),I=n(1853),M=n(1850),C=n(1851),w=n(1849),D=n(62),P=n(44),T=n(353),x={movie:["general","tags","sharing","poster","art","info","advanced"],show:["general","tags","sharing","poster","banner","art","advanced"],season:["general","poster","art","info","advanced"],
episode:["general","tags","poster","art","info","advanced"],artist:["general","tags","poster","art","advanced"],album:["general","tags","sharing","poster","art","info","advanced"],track:["general","tags","info","advanced"],photoalbum:["general","poster","art","advanced"],photo:["general","info","advanced"],clip:["general","info","advanced"]},E=["poster","art","banner","info","advanced"],N=D.a.extend({mixins:[T.a],name:"editMetadataModal",className:"edit-metadata-modal modal modal-lg fade",
template:a.a,panes:{general:{constructor:b.a},tags:{constructor:S.a},poster:{constructor:M.a},art:{constructor:M.a},banner:{constructor:M.a},sharing:{constructor:I.a},info:{constructor:C.a},advanced:{constructor:w.a}},events:s.a.extend({"click .change-pane-btn":"onChangePaneClick","click .save-btn":"onFormSubmit","submit .edit-metadata-form":"onFormSubmit"},D.a.prototype.events),ui:{saveBtn:".save-btn",message:".form-message",navPane:".modal-nav-pane",
loadingIndicator:".modal-body-pane .loading-inline"},regions:{paneRegion:".pane-region"},onlyAfterRender:["saveChanges","showPane","showNav"],initialize:function(e){D.a.prototype.initialize.apply(this,arguments);var t=e.items||[this.model],i=t[0],a=i.fetch({usePopulatedParams:!0,data:{includePreferences:"1"}});this.model=new y.a({},{server:i.server,metadataItems:t}),a=a.then(s.a.bind(function(){return this.model.setContext("section",n.i(v.a)(i)),this.model.populate()},this)),
a.done(s.a.bind(function(){this.model.set("originalSaveParams",this.model.getSaveParams()),this.render(),this.showNav(),this.showPane(e.selectedPane||"general"),this.listenTo(h.a,"shortcut:save",this.saveChanges)},this)),a.fail(s.a.bind(function(){this.ui.message.text(n.i(p.default)("There was an error editing this item")),this.ui.loadingIndicator.addClass("hidden")},this))},serializeData:function(){var e=x[this.model.get("type")]||x.movie
;this.model.get("isSingleMetadataItem")||(e=s.a.difference(e,E)),this.model.getSingleMetadataItem().has("preferences")||(e=s.a.difference(e,["advanced"]));var t=s.a.reduce(e,function(e,t){return e[t]=!0,e},{}),i=n.i(p.default)("Edit {1}",this.model.get("aggregateTitle"),{escape:!0});return{item:this.model.toJSON(),panes:t,selectedPane:this.selectedPane,paneTitle:i}},paneConstructorArg:function(){return{type:this.selectedPane}},invalidChangedAttrs:function(e){var t=[]
;if("track"===this.model.get("type")){var n=s.a.has(e,"artist.id.value")||s.a.has(e,"artist.title.value")||s.a.has(e,"album.id.value")||s.a.has(e,"album.title.value"),i=e["album.id.value"]||e["album.title.value"],a=e["artist.id.value"]||e["artist.title.value"];!n||a&&i||(a||t.push("grandparentTitle"),i||t.push("parentTitle"))}if(s.a.has(e,"originallyAvailableAt.value")){var r=e["originallyAvailableAt.value"];/^\d{4}$/.test(r)&&(e["originallyAvailableAt.value"]+="-01-01",
r=e["originallyAvailableAt.value"]),""===r||c()(r,"YYYY-MM-DD",!0).isValid()?this.model.set("originallyAvailableAt",r):t.push("originallyAvailableAt")}return t},markInvalid:function(e){this.paneRegion.currentView.markInvalid(e)},showNav:function(){this.ui.navPane.removeClass("hidden")},saveChanges:function(){var e=this.ui.saveBtn,t=this.ui.message;if(!e.isDisabled()){t.text(""),this.paneRegion.currentView.flushChanges();var i=[],a=this.model.getSaveParams(),r=this.invalidChangedAttrs(a)
;if(r.length)return void this.markInvalid(r);e.addClass("active");var o=this.showAdvancedConfirmModal({saving:!0});o.done(s.a.bind(function(){s.a.each(["poster","banner","art"],function(e){var t=this.model.get(e);t&&i.push(m.a.execute("changeArtwork",{item:this.model.getSingleMetadataItem(),artworkType:e,artworkRatingKey:t}))},this),i.push(this.savePreferences()),i.push(this.model.save());var a=l.a.when.apply(l.a,i);a.done(s.a.bind(function(){
var e=d.a("appStore").dispatch,t=this.model.server.entityID();t&&e(g.a({serverEntityID:t})),this.hide()},this)),a.fail(function(){t.text(n.i(p.default)("Your changes could not be saved."))}),a.always(function(){e.removeClass("active")})},this)),o.fail(s.a.bind(function(){e.removeClass("active"),this.showPane("advanced")},this))}},savePreferences:function(){var e=this.model.get("preferences");if(!e.length)return l.a.Deferred().resolve().promise()
;var t=this.model.getSingleMetadataItem(),n=f.join(["/library/metadata",t.get("ratingKey"),"prefs"],e.getSaveParams()),i=this.model.server.getXHROptions(n,{type:"PUT"}),a=l.a.ajax(i);return a.done(function(){var n=t.get("preferences");e.forEach(function(e){n.get(e.id).set("value",e.get("value"))})}),a},showAdvancedConfirmModal:function(){if(!this.model.get("preferences").some(function(e){return/^autoDeletion/.test(e.id)}))return l.a.Deferred().resolve().promise();var e=new P.a({
title:n.i(p.default)("Confirm Deletion Settings"),message:n.i(p.default)("Deletion settings will take effect immediately! Files may be deleted and this can't be undone. Are you sure?"),confirmLabel:n.i(p.default)("Yes"),cancelLabel:n.i(p.default)("Cancel"),requireDoubleConfirm:!0,doubleConfirmMessage:n.i(p.default)("Multiple files may be deleted."),doubleConfirmLabel:n.i(p.default)("Yes, I'm sure"),hasDanger:!0});return h.a.trigger("show:modal",e),e.promise},onPaneShow:function(e,t){
this.listenTo(t,"focusSubmit",function(){this.ui.saveBtn.focus()})},onPaneHide:function(e,t){t.flushChanges(),this.stopListening(t)},onFormSubmit:function(e){e.preventDefault(),this.saveChanges()}});t.a=N},function(e,t,n){"use strict";var i=n(3168),a=n.n(i),r=n(3),s=n.n(r),o=n(18),l=n(66),u=n(30),c=o.a.ItemView.extend({className:"convert-policy-container",template:a.a,ui:{policyUnwatchedInput:"#convert-policy-unwatched",policyScopeInput:"#convert-policy-scope",
policyValueInput:"#convert-policy-value",policyWarning:".convert-warning"},events:{"change input[name=policyUnwatched]":"onPolicyUnwatchedChange","change input[name=policyScope]":"onPolicyScopeChange","keyup input[name=policyValue]":"onPolicyValueChange","change input[name=policyValue]":"onPolicyValueChange"},initialize:function(e){this.type=n.i(u.b)(this.model.get("metadataType")||"movie"),this.leafMediaType=n.i(u.n)(this.type.typeString).mediaType,
this.model.setPolicyDefaultsFor(this.leafMediaType)},serializeData:function(){var e={isSync:this.options.isSync,isCloudSync:this.options.isCloudSync,isDirectory:this.model.get("isDirectory"),policy:this.model.get("policy").toJSON()};return e.showLimitWarning=this.model.shouldShowPolicyWarning(this.leafMediaType,e.policy.value),e.showUnwatched=e.isDirectory&&this.leafMediaType===l.a,e},updatePolicyValue:function(){
var e=this.model.get("policy"),t=Math.abs(parseInt(this.ui.policyValueInput.val(),10));this.ui.policyValueInput.val(s.a.isNaN(t)?"":t),s.a.isNaN(t)&&(t=0),e.set("value","all"===e.scope?null:t);var n=this.model.shouldShowPolicyWarning(this.leafMediaType,t);this.ui.policyWarning.toggleClass("hidden",!n)},onPolicyUnwatchedChange:function(e){this.model.get("policy").set("unwatched",this.ui.policyUnwatchedInput.prop("checked"))},onPolicyScopeChange:function(e){
var t=this.model.get("policy"),n=this.ui.policyScopeInput.prop("checked")?this.ui.policyScopeInput.val():"all";t.set("scope",n),this.updatePolicyValue()},onPolicyValueChange:function(e){this.updatePolicyValue()}});t.a=c},function(e,t,n){"use strict";var i=n(3177),a=n.n(i),r=n(287),s=n(62),o=n(1961),l=n(1962),u=n(1959),c=s.a.extend({mixins:[r.a],name:"syncModal",className:"convert-modal modal fade",template:a.a,regions:{bodyRegion:".modal-body-region"},initialize:function(e){
s.a.prototype.initialize.apply(this,arguments),this.device=this.model?this.model.device:e.device},initialState:"form",states:{form:{nextState:"success",onEnter:function(){this.bodyRegion.show(new o.a({model:this.model,item:this.options.item,items:this.options.items,device:this.device})),this.listenForStateRequests()}},success:{onEnter:function(){this.model?this.hide():(this.bodyRegion.show(new l.a({server:this.options.item.server,device:this.device})),this.listenForStateRequests())}},error:{
onEnter:function(){this.bodyRegion.show(new u.a),this.listenForStateRequests()}}},listenForStateRequests:function(){this.bodyRegion&&this.bodyRegion.currentView&&this.listenTo(this.bodyRegion.currentView,{"request:state":this.enterState,"request:nextState":this.enterNextState})},onRender:function(){s.a.prototype.onRender.apply(this,arguments),this.enterNextState()},onStateMachineComplete:function(){this.hide()}});t.a=c},function(e,t,n){"use strict"
;var i=n(3191),a=n.n(i),r=n(3),s=n.n(r),o=n(4),l=n(15),u=n(62),c=u.a.extend({name:"homeWarningModal",template:a.a,events:s.a.extend({"click .server-settings-btn":"onServerSettingsClick"},u.a.prototype.events),initialize:function(e){u.a.prototype.initialize.apply(this,arguments),this.type=e.type},serializeData:function(){var e;return e="pin"===this.type?n.i(o.default)("You've added a PIN restriction"):n.i(o.default)("You've joined a Plex Home"),{intro:e}},onServerSettingsClick:function(e){
e.preventDefault(),this.hide(),l.a.trigger("navigate","serverSettings")}});t.a=c},function(e,t,n){"use strict";var i=n(3195),a=n.n(i),r=n(18),s=n(13),o=n(182),l=r.a.ItemView.extend({tagName:"li",className:"user-select-list-item",template:a.a,ui:{container:".user-select-container",poster:".user-poster"},events:{"click a":"onClick"},initialize:function(e){this.disabled=e.disabled,this.posterImage=new o.a({model:this.model,type:"friend",width:80});var t=s.a("appModel"),n=t.get("primaryServer")
;n&&n.supports("imageFilters")&&(this.backgroundImage=new o.a({model:this.model,type:"friend",width:120,background:!0,filters:{blur:20,opacity:50,background:"000000"}}),this.backgroundImage.placeholderClass=!1)},serializeData:function(){return{disabled:this.disabled}},bindings:{".username":{modelAttribute:"title"},".protected-icon":{modelAttribute:"protected",autohide:!0,manual:!0},".admin-icon":{modelAttribute:"admin",autohide:!0,manual:!0}},onRender:function(){
this.posterImage.setElement(this.ui.poster),this.backgroundImage&&this.backgroundImage.setElement(this.ui.container)},onClose:function(){this.posterImage.close(),this.backgroundImage&&this.backgroundImage.close()},onClick:function(e){e.preventDefault(),this.trigger("selectUser",this.model)}});t.a=l},function(e,t,n){"use strict";var i=n(3218),a=n.n(i),r=n(18),s=n(13),o=n(15),l=n(931),u=n(1924),c=r.a.Layout.extend({className:"friends-container col-sm-8 col-md-9",template:a.a,ui:{
inviteListHeader:".invite-list-header",friendListHeader:".friend-list-header",pendingListHeader:".pending-list-header"},regions:{inviteList:".invite-list-container",friendList:".friend-list-container",pendingList:".pending-list-container"},initialize:function(){var e=s.a("appModel"),t=e.get("user");if(t.get("restricted"))return void o.a.trigger("navigate","users",{subset:"home"});this.collection=t.get("desktop").get("friends").filterByUnrestricted(),
this.invites=t.get("desktop").get("invites").filterByFriends(),this.sentInvites=t.get("desktop").get("sentInvites").filterByFriends(),this.addListeners()},addListeners:function(){this.listenTo(this.invites,"reset add remove",this.onInvitesChange),this.listenTo(this.sentInvites,"reset add remove",this.onInvitesChange)},updateHeaders:function(){var e=!!this.invites.length,t=!!this.sentInvites.length,n=e||t;this.ui.friendListHeader.toggleClass("hidden",!n),
this.ui.inviteListHeader.toggleClass("hidden",!e),this.ui.pendingListHeader.toggleClass("hidden",!t),this.ui.friendListHeader.toggleClass("top",!e),this.ui.inviteListHeader.toggleClass("top",e)},onRender:function(){this.friendList.show(new u.a({collection:this.collection})),this.inviteList.show(new l.a({collection:this.invites})),this.pendingList.show(new l.a({collection:this.sentInvites})),this.updateHeaders()},onClose:function(){this.collection.destroy&&this.collection.destroy(),
this.invites.destroy(),this.sentInvites.destroy()},onInvitesChange:function(){this.updateHeaders()}});t.a=c},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children,i=o()(e,["className","children"]);return r()("div",{className:t,style:i},void 0,n)}var a=n(2),r=n.n(a),s=n(14),o=n.n(s),l=n(0);n.n(l);i.defaultProps={flexGrow:1,flexShrink:0},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children,i=o()(e,["className","children"]);return r()("div",{
className:(c.a.grid||"")+" "+(t||""),style:i},void 0,n)}var a=n(2),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=(n.n(l),n(2690)),c=n.n(u);i.defaultProps={flexDirection:"row",justifyContent:"space-between",alignItems:"center",alignContent:"center"},t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(13)),h=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u]
;return n=i=l()(this,e.call.apply(e,[this].concat(o))),i.onFullscreenChange=function(e){i.props.onFullscreenChange(e)},a=n,l()(i,a)}return c()(t,e),t.prototype.componentDidMount=function(){this._manager=n.i(p.a)("fullscreenManager"),this._unsubscribe=this._manager.subscribe(this.onFullscreenChange)},t.prototype.componentWillReceiveProps=function(e){e.isFullscreen&&!this.props.isFullscreen?this._manager.enter():!e.isFullscreen&&this.props.isFullscreen&&this._manager.exit()},
t.prototype.componentWillUnmount=function(){this._manager.exit(),this._unsubscribe()},t.prototype.render=function(){return a()("div",{className:this.props.className},void 0,this.props.children)},t}(d.Component);t.a=h},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.icon,i=e.title,a=e.text;return r()("div",{className:t},void 0,r()("div",{className:u.a.iconContainer},void 0,r()(o.a,{className:u.a.icon,name:n})),r()("div",{className:u.a.title},void 0,i),r()("div",{
className:u.a.text},void 0,a))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(27)),l=n(2692),u=n.n(l);i.defaultProps={className:u.a.upsell},t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(6),p=n.n(d),h=n(0),f=(n.n(h),n(26)),v=n(311),m=n(155),g=n(3028),y=n.n(g),b=n(3030),S=n.n(b),I=n(3029),M=n.n(I),C={position:"absolute",width:"100%",height:"100%"},w=p()({},C,{background:"url("+y.a+")",zIndex:2}),D={opacity:30,background:"36383b"},P=p()({},D,{
format:"png"}),T=a()("div",{style:w}),x=function(e){function t(){return s()(this,t),l()(this,e.apply(this,arguments))}return c()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(f.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.url,i=e.allowPreset,r=e.allowLightPreset,s=e.allowBlur,o=window.innerWidth,l=window.innerHeight,u=s?P:D,c=void 0,d=void 0,h=void 0,f=void 0;if(s){var g=o/l;c=g>1?640:640*g,d=g>1?640/g:640;var y=Math.max(o/c,l/d)
;h=Math.round(100/y)}else c=Math.min(window.innerWidth,1920),d=Math.min(window.innerHeight,1080);return!n&&i&&(f=r?S.a:M.a),a()("div",{},void 0,a()(m.a,{serverEntityID:t,url:n,src:f,width:c,height:d,minSize:!0,upscale:s,style:C,background:!0,transition:!0,transitionProps:v.a,filters:f?null:p()({},u,{blur:h}),allowPixelRatioSize:!1}),T)},t}(h.Component);x.defaultProps={allowBlur:!0},t.a=x},function(e,t,n){"use strict";function i(){return n.i(l.createSelector)(function(e){return e.user
},n.i(u.a)(),function(e,t){return{machineIdentifier:t.machineIdentifier,isClaimed:t.isClaimed,isSignedIn:!!e&&e.signedIn,hasPlexPass:!!e&&e.hasPlexPass}})}var a=n(6),r=n.n(a),s=n(0),o=(n.n(s),n(11)),l=n(5),u=(n.n(l),n(46)),c=n(2029),d=n.i(o.b)(i)(c.a);d.propTypes=r()({},d.propTypes,{serverEntityID:s.PropTypes.string.isRequired}),t.a=d},function(e,t,n){"use strict";function i(e){var t=e.circleClassName,n=e.iconClassName;return r()("div",{className:t},void 0,r()("span",{className:n}))}
var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2724)),l=n.n(o);i.defaultProps={circleClassName:l.a.recordCircle,iconClassName:l.a.recordIcon},t.a=i},function(e,t,n){"use strict";function i(e){return o()("div",{className:p.a.avatar},void 0,u.a.createElement(c.a,r()({},e,{background:!0})))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(0),u=n.n(l),c=n(155),d=n(2725),p=n.n(d);t.a=i},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(6),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(13),m=n(64),g=n(20),y=n(577),b=n(128),S=n(94),I=n(102),M=n(69),C=n(2735),w=n.n(C),D=function(e){function t(){var i,a,r;l()(this,t);for(var o=arguments.length,u=Array(o),d=0;d<o;d++)u[d]=arguments[d];return i=a=c()(this,e.call.apply(e,[this].concat(u))),a.onItemSelect=function(e){n.i(v.a)("metrics").trackClick(s()({},a.props.metricsProperties,{page:a.props.metricsPage,action:m.I,value:e})),
a.props.onItemSelect(e)},a.onCancel=function(){n.i(v.a)("metrics").trackClick(s()({},a.props.metricsProperties,{page:a.props.metricsPage,action:m.e})),a.props.onCancel()},r=i,c()(a,r)}return p()(t,e),t.prototype.render=function(){var e=this,t=this.props,i=t.children,r=t.isOpen,s=t.metricsPage,o=t.metricsProperties,l=t.title;return a()(b.a,{size:g.d.SMALL,isOpen:r,metricsPage:s,metricsProperties:o,onModalClose:this.onCancel},void 0,a()(S.a,{onModalClose:this.onCancel
},void 0,a()(I.a,{},void 0,l),a()(M.a,{innerClassName:w.a.listModalInnerBody},void 0,n.i(y.a)(i,function(t){return f.a.cloneElement(t,{onSelect:e.onItemSelect})}))))},t}(h.Component);t.a=D},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(14),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(23),m=n(2736),g=n.n(m),y=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o]
;return n=i=c()(this,e.call.apply(e,[this].concat(s))),i.onPress=function(e){var t=i.props,n=t.value,a=t.onSelect,r=t.onPress;a&&a(n),r&&r(e)},a=n,c()(i,a)}return p()(t,e),t.prototype.render=function(){var e=this.props,t=(e.value,e.onSelect,s()(e,["value","onSelect"]));return f.a.createElement(v.a,a()({},t,{onPress:this.onPress}))},t}(h.Component);y.defaultProps={className:g.a.listModalItem},t.a=y},function(e,t,n){"use strict";function i(e){var t=e.children,n=o()(e,["children"])
;return u.a.createElement(c.a,n,r()(d.a,{className:h.a.modalScroller,innerClassName:h.a.innerModalBody},void 0,t))}var a=n(2),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(94),d=n(69),p=n(2740),h=n.n(p);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.uri,i=n.replace(/^https?\:\/\//,"");return r()("div",{className:t},void 0,i)}var a=n(2),r=n.n(a),s=n(0);n.n(s);t.a=i},function(e,t,n){"use strict";function i(){return n.i(l.createSelector)(n.i(u.a)(),n.i(c.a)(),function(e,t){
return{machineIdentifier:e.machineIdentifier,isRefreshing:!!t}})}function a(e){return s.a.createElement(d.a,e)}var r=n(0),s=n.n(r),o=n(11),l=n(5),u=(n.n(l),n(46)),c=n(428),d=n(2072);t.a=n.i(o.b)(i)(a)},function(e,t,n){"use strict";function i(){return n.i(p.createSelector)(n.i(h.a)(),function(e){return{isRefreshing:!!e}})}var a=n(7),r=n.n(a),s=n(9),o=n.n(s),l=n(8),u=n.n(l),c=n(0),d=(n.n(c),n(11)),p=n(5),h=(n.n(p),n(428)),f=n(100),v=n(115),m={fetchProviders:f.d,repopulatePage:v.a},g=function(e){
function t(){var n,i,a;r()(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=i=o()(this,e.call.apply(e,[this].concat(l))),i._repopulateProgramGuide=function(){var e=i.props.serverEntityID;i.props.fetchProviders({serverEntityID:e}),i.props.repopulatePage({serverEntityID:e}),i._setRepopulateTimeout()},a=n,o()(i,a)}return u()(t,e),t.prototype.componentDidMount=function(){this._setRepopulateTimeout()},t.prototype.componentDidUpdate=function(){
this._setRepopulateTimeout()},t.prototype.componentWillUnmount=function(){this._clearRepopulateTimeout()},t.prototype._setRepopulateTimeout=function(){this.props.isRefreshing&&(this._clearRepopulateTimeout(),this._repopulateTimeoutID=setTimeout(this._repopulateProgramGuide,15e3))},t.prototype._clearRepopulateTimeout=function(){this._repopulateTimeoutID&&clearTimeout(this._repopulateTimeoutID)},t.prototype.render=function(){return null},t}(c.Component);t.a=n.i(d.b)(i,m)(g)},function(e,t,n){
"use strict";var i=n(2),a=n.n(i),r=n(6),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=(n.n(h),n(13)),v=n(34),m=n(64),g=n(26),y=n(128),b=n(2073),S=n(2759),I=n.n(S),M=function(e){function t(){var i,a,r;l()(this,t);for(var o=arguments.length,u=Array(o),d=0;d<o;d++)u[d]=arguments[d];return i=a=c()(this,e.call.apply(e,[this].concat(u))),a.onModalClose=function(){n.i(f.a)("metrics").trackClick(s()({},a.props.metricsProperties,{page:v.p,action:m.o})),a.props.onModalClose()},r=i,
c()(a,r)}return p()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(g.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.dvrID,i=e.isOpen,r=e.metricsProperties;return a()(y.a,{className:I.a.modal,isOpen:i,metricsPage:v.p,metricsProperties:r,preventCloseOnBackdropPress:!0,onModalClose:this.onModalClose},void 0,a()(b.a,{serverEntityID:t,dvrID:n,onModalClose:this.onModalClose}))},t}(h.Component);t.a=M},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(11)),h=n(4),f=n(20),v=n(101),m=n(47),g=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u];return n=i=l()(this,e.call.apply(e,[this].concat(o))),i.onNextStepPress=function(){i.props.dvrSetupNextStep({dvrID:i.props.dvrID})},a=n,l()(i,a)}return c()(t,e),t.prototype.render=function(){return a()(m.a,{kind:f.b.PRIMARY,size:f.d.MEDIUM,
isDisabled:this.props.isDisabled,onPress:this.onNextStepPress},void 0,n.i(h.default)("Continue"))},t}(d.Component);g.defaultProps={isDisabled:!1},t.a=n.i(p.b)(null,{dvrSetupNextStep:v.j})(g)},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.networks,a=i.reduce(function(e,t){var n;return e.push((n={},n[t.key]=t.title,n)),e},[{"":n.i(s.default)("Select Network")}]);return r()("div",{className:t},void 0,r()(l.a,{name:"network",labelText:"Network",initialValue:"",values:a}))}
var a=n(2),r=n.n(a),s=n(4),o=n(0),l=(n.n(o),n(444));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.prefs;return o()("div",{className:t},void 0,i.map(function(e){var t=e.id,i=e.value,a=e.enumValues,s=e.label,o=Array.isArray(a)?[{label:n.i(l.default)("Select {label}",{label:s}),value:""}].concat(a):void 0;return c.a.createElement(d.a,r()({key:t},e,{value:null==i?"":i,enumValues:o}))}))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(4),u=n(0),c=n.n(u),d=n(445);t.a=i
},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(57),f=n.n(h),v=n(23),m=n(441),g=n(614),y=n(949),b=n(2762),S=n.n(b),I=parseInt(f.a.dvrSetupImageWidth,10),M=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u];return n=i=l()(this,e.call.apply(e,[this].concat(o))),i.onSelectDevicePress=function(){i.props.onSelectDevice(i.props.deviceID)},a=n,l()(i,a)}
return c()(t,e),t.prototype.render=function(){var e=this.props,t=e.className,i=e.serverEntityID,r=e.make,s=e.model,o=e.uri,l=e.thumb,u=e.channelCount,c=e.isSelectable,d=e.isSelected,h=e.includeUri,f=e.includeChannelCount,b=void 0;return b=1===u?n.i(p.default)("1 channel"):u>1?n.i(p.default)("{channelCount} channels",{channelCount:u}):n.i(p.default)("No channels"),a()("div",{className:t},void 0,c&&a()(v.a,{onPress:this.onSelectDevicePress},void 0,a()("div",{className:S.a.deviceImageContainer
},void 0,a()(g.a,{serverEntityID:i,model:s,thumb:l,width:I,height:100}),d&&a()(m.a,{className:S.a.selectButton,component:"div",title:s,isSelected:!0,isDisabled:!0}))),!c&&a()(g.a,{serverEntityID:i,model:s,thumb:l,width:I,height:100}),a()("div",{className:S.a.details},void 0,a()("div",{className:S.a.make},void 0,r),a()("div",{className:S.a.model},void 0,s),h&&a()(y.a,{className:S.a.uri,uri:o}),f&&a()("div",{className:S.a.channelCount},void 0,b)))},t}(d.Component);M.defaultProps={includeUri:!1,
includeChannelCount:!1,isSelectable:!1},t.a=M},function(e,t,n){"use strict";function i(e){return h()(e).sort(m.a).reduce(function(t,n){var i;return t.push((i={},i[n]=e[n],i)),t},[{"":n.i(v.default)("Select Channel")}])}var a=n(2),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(65),h=n.n(p),f=n(0),v=(n.n(f),n(4)),m=n(552),g=n(20),y=n(440),b=n(157),S=n(367),I=n(215),M=n(2771),C=n.n(M),w=function(e){function t(n,i){o()(this,t);var a=u()(this,e.call(this,n,i))
;return a.onSelectPress=function(e){a.setState({showSelectOptions:!0})},a.onEnabledChange=function(e){a.setState({enabled:e},function(){a.props.onChange({enabled:e,lineupIdentifier:a.state.lineupIdentifier})})},a.onLineupChannelChange=function(e){a.setState({lineupIdentifier:e},function(){a.props.onChange({enabled:a.state.enabled,lineupIdentifier:e})})},a.state={enabled:n.initialValue.enabled,lineupIdentifier:n.initialValue.lineupIdentifier,showSelectOptions:!1},a}return d()(t,e),
t.prototype.componentWillReceiveProps=function(e){var t=this.state,n=t.enabled,i=t.lineupIdentifier,a=e.value,r=a.enabled,s=a.lineupIdentifier;n===r&&i===s||this.setState(this.props.value)},t.prototype.shouldComponentUpdate=function(e,t){
return t.enabled!==this.state.enabled||(t.lineupIdentifier!==this.state.lineupIdentifier||(t.showSelectOptions!==this.state.showSelectOptions||(e.deviceIdentifier!==this.props.deviceIdentifier||(e.channelName!==this.props.channelName||(e.initialValue.enabled!==this.props.initialValue.enabled||(e.initialValue.lineupIdentifier!==this.props.initialValue.lineupIdentifier||(e.value.enabled!==this.props.value.enabled||(e.value.lineupIdentifier!==this.props.value.lineupIdentifier||e.lineupChannels!==this.props.lineupChannels))))))))
},t.prototype.render=function(){var e,t=this.props,a=t.name,s=t.deviceIdentifier,o=t.channelName,l=t.drm,u=t.isChannelMissing,c=t.lineupChannels,d=this.state,p=d.enabled,h=d.lineupIdentifier;return u?null:r()("div",{className:C.a.channelMapping},void 0,r()("div",{className:C.a.deviceInfo},void 0,r()("div",{className:C.a.channelEnabled},void 0,!l&&r()(S.a,{name:a+"Check",value:p,onChange:this.onEnabledChange})),r()("label",{className:(C.a.deviceIdentifier||"")+" "+(!p&&C.a.mappingDisabled||""),
htmlFor:a+"Check"},void 0,s),r()("div",{className:(C.a.channelName||"")+" "+(!p&&C.a.mappingDisabled||"")},void 0,o)),l?r()("div",{className:C.a.drmChannel},void 0,r()(y.a,{className:C.a.drmChannelBadge},void 0,n.i(v.default)("Protected"))):r()("div",{className:C.a.epgChannel},void 0,r()(I.a,{name:a+"Select",value:h,values:this.state.showSelectOptions?i(c):[(e={},e[h]=c[h],e)],size:g.d.SMALL,isDisabled:!p,onMouseDown:this.onSelectPress,onTouchStart:this.onSelectPress,
onChange:this.onLineupChannelChange})))},t}(f.Component);f.PropTypes.shape({enabled:f.PropTypes.bool.isRequired,lineupIdentifier:f.PropTypes.string});t.a=n.i(b.a)(w)},function(e,t,n){"use strict";function i(e){var t=e.allChannelMappingsEnabled,i=e.allChannelMappingsDisabled,a=e.onAllChannelMappingsEnabledChange,s=null;return t?s=!0:i&&(s=!1),r()("div",{className:c.a.container},void 0,r()("div",{className:c.a.deviceChannels},void 0,r()(l.a,{name:"toggleAll",value:s,onChange:a}),r()("div",{
className:c.a.deviceChannelsPadding}),r()("div",{},void 0,n.i(o.default)("Device Channels"))),r()("div",{className:c.a.guideChannels},void 0,n.i(o.default)("Guide Channels")))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(367),u=n(2773),c=n.n(u);t.a=i},function(e,t,n){"use strict";function i(e){var t=function(t){function n(e,i){u()(this,n);var a=d()(this,t.call(this,e,i));return a.onFormStateChange=function(e){var t=!0,n=!0;o()(e).forEach(function(i){e[i].value.enabled?n=!1:t=!1}),a.setState({
formState:e,allChannelMappingsEnabled:t,allChannelMappingsDisabled:n})},a.onAllChannelMappingsEnabledChange=function(e){a.setState(function(t){var n={};return o()(t.formState).forEach(function(i){var a=t.formState[i].value;a.enable===e?n[i]=t.formState[i]:n[i]=r()({},t.formState[i],{value:{enabled:e,lineupIdentifier:a.lineupIdentifier}})}),{formState:n,allChannelMappingsEnabled:e,allChannelMappingsDisabled:!e}})},a.state={formState:{},allChannelMappingsEnabled:!1,allChannelMappingsDisabled:!1},a
}return h()(n,t),n.prototype.render=function(){var t=this.state,n=t.allChannelMappingsEnabled,i=t.allChannelMappingsDisabled;return v.a.createElement(e,r()({formState:this.state.formState,allChannelMappingsEnabled:n,allChannelMappingsDisabled:i,onFormStateChange:this.onFormStateChange,onAllChannelMappingsEnabledChange:this.onAllChannelMappingsEnabledChange},this.props))},n}(f.Component);return t.displayName="DeviceChannelMappingsForm("+n.i(m.a)(e)+")",t.WrappedComponent=e,t}
var a=n(6),r=n.n(a),s=n(65),o=n.n(s),l=n(7),u=n.n(l),c=n(9),d=n.n(c),p=n(8),h=n.n(p),f=n(0),v=n.n(f),m=n(211);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,i=e.providerEntityID,a=e.metadataListEntityID,s=e.metadataItemEntityIDs,l=e.containerKey,v=e.listType,m=e.listContext,g=e.columnAdjustment,y=e.populatedRange,b=o()(e,["serverEntityID","providerEntityID","metadataListEntityID","metadataItemEntityIDs","containerKey","listType","listContext","columnAdjustment","populatedRange"]),S=n.i(c.a)(v,m,{providerEntityID:i});return u.a.createElement(h.a,r()({},b,{containerKey:l,listType:v,listContext:m,
keyPropName:"metadataItemEntityID",items:s,itemsOffset:y.start,layout:n.i(d.a)(v,m,g,S.length),cellRenderer:n.i(p.a)({serverEntityID:t,providerEntityID:i,metadataListEntityID:a,containerKey:l,listType:v,listContext:m,titleComponents:S},f.a)}))}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=(n(351),n(32),n(173)),d=n(465),p=n(131),h=n(447),f=n(449);t.a=i},function(e,t,n){"use strict";function i(){return n.i(l.createSelector)(n.i(c.a)(),n.i(u.a)(),n.i(p.a)(),n.i(h.a)(),f.a,function(e){
var t=e.machineIdentifier,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2],a=arguments[3],r=arguments[4];return{machineIdentifier:t,metadataKey:n.key,type:n.type,title:n.title,thumb:n.thumb,selectionType:i,activeSelectionType:r.activeSelectionType,isSelected:a}})}function a(e,t){return{onSelectItem:function(i){e(n.i(d.a)(s()({metadataListEntityID:t.metadataListEntityID},i)))},onDeselectItem:function(i){e(n.i(d.b)(s()({metadataListEntityID:t.metadataListEntityID},i)))}}}
var r=n(6),s=n.n(r),o=n(11),l=n(5),u=(n.n(l),n(21)),c=n(46),d=n(125),p=n(431),h=n(430),f=n(83),v=n(2094);t.a=n.i(o.b)(i,a)(v.a)},function(e,t,n){"use strict";function i(){return n.i(v.createSelector)(function(e,t){return t.listContext},function(e,t){return t.cellHeight},n.i(m.a)(),M.a,C.a,g.a,n.i(y.a)(),n.i(b.a)(),n.i(S.a)(),n.i(I.a)(),w.a,function(e,t){
var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments[3],r=arguments[4],s=arguments[5],o=arguments[6],l=arguments[7],u=arguments[8],c=arguments[9],d=arguments[10],p=t-2*j,h=n.i(A.a)(null,p,o,i,e);return{metadataKey:i.key,grandparentKey:i.grandparentKey,type:o,index:i.index,title:i.title,summary:i.summary,isFolder:i.isFolder,selectionID:i.entityID,selectionType:u,activeSelectionType:d.activeSelectionType,isSelected:c,route:l,showLink:!!l,showEdit:n.i(L.b)(a,r,s,i),
showSelect:n.i(L.c)(a,r,s,i),showMore:!i.isFolder,imageWidth:h.width,imageHeight:h.height,imageUrl:h.url}})}function a(e,t){var i=t.serverEntityID,a=t.providerEntityID,r=t.metadataListEntityID,s=t.metadataItemEntityID,o=t.metricsPage;return{onEditPress:function(){e(n.i(P.editMetadataItem)({serverEntityID:i,providerEntityID:a,metadataItemEntityID:s,metricsPage:o}))},onSelectItem:function(t){e(n.i(D.a)(p()({metadataListEntityID:r,id:s},t)))},onDeselectItem:function(t){e(n.i(D.b)(p()({
metadataListEntityID:r},t)))}}}var r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(6),p=n.n(d),h=n(0),f=n.n(h),v=n(5),m=(n.n(v),n(21)),g=n(180),y=n(591),b=n(429),S=n(431),I=n(430),M=n(45),C=n(43),w=n(83),D=n(125),P=n(140),T=n(57),x=n.n(T),E=n(464),N=n(310),L=n(220),A=n(256),k=n(138),_=n(2098),O=n(2099),j=parseInt(x.a.summaryCellPadding,10),R=n.i(E.a)(_.a),U=function(e){function t(){return s()(this,t),l()(this,e.apply(this,arguments))}return c()(t,e),t.prototype.render=function(){
return this.props.metadataKey?this.props.showSelect?f.a.createElement(R,this.props):f.a.createElement(_.a,this.props):f.a.createElement(O.a,this.props)},t}(h.Component);t.a=n.i(k.a)(i,a,N.a)(U)},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,i=e.providerEntityID,a=e.metadataListEntityID,s=e.containerKey,l=e.containerTitle,v=e.activeSort,m=e.listType,g=e.listContext,y=e.columnAdjustment,b=o()(e,["serverEntityID","providerEntityID","metadataListEntityID","containerKey","containerTitle","activeSort","listType","listContext","columnAdjustment"]),S=n.i(p.a)(m,g,{activeSort:v,providerEntityID:i});return u.a.createElement(h.a,r()({listType:m,listContext:g,layout:n.i(c.a)(m,g,y,S.length),cellRenderer:n.i(d.a)({
serverEntityID:t,providerEntityID:i,metadataListEntityID:a,listType:m,listContext:g,titleComponents:S,containerKey:s,containerTitle:l},f.a)},b))}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(1051),d=(n(32),n(131)),p=n(173),h=n(368),f=n(449);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(93)),h=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u]
;return n=i=l()(this,e.call.apply(e,[this].concat(o))),i.onPress=function(e){i.props.onStreamSelect(i.props.stream.id),i.props.onMenuClose()},a=n,l()(i,a)}return c()(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.stream;return a()(p.a,{isSelected:!!n.selected,onPress:this.onPress},void 0,t)},t}(d.Component);t.a=h},function(e,t,n){"use strict";function i(e){return"show"!==e&&"season"!==e}function a(e){var t=(e.type,e.title),i=e.leafCount
;return e.markUnwatched?1===i?n.i(f.default)('Are you sure you want to mark 1 episode in "{showTitle}" as unwatched?',{showTitle:t}):n.i(f.default)('Are you sure you want to mark {numEpisodes} episodes in "{showTitle}" as unwatched?',{numEpisodes:i,showTitle:t}):1===i?n.i(f.default)('Are you sure you want to mark 1 episode in "{showTitle}" as watched?',{showTitle:t}):n.i(f.default)('Are you sure you want to mark {numEpisodes} episodes in "{showTitle}" as watched?',{numEpisodes:i,showTitle:t})}
var r=n(2),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=(n.n(h),n(4)),v=n(34),m=n(127),g=function(e){function t(){return l()(this,t),c()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.componentDidMount=function(){this._checkAutoConfirm()},t.prototype.componentDidUpdate=function(){this._checkAutoConfirm()},t.prototype._checkAutoConfirm=function(){i(this.props.type)&&this.props.isOpen&&this.props.onConfirm()},t.prototype.render=function(){
var e=this.props,t=e.isOpen,r=e.type,o=e.markUnwatched,l=e.onConfirm,u=e.onCancel;return i(r)?null:s()(m.a,{isOpen:t,metricsPage:o?v.w:v.x,title:o?n.i(f.default)("Mark Unwatched"):n.i(f.default)("Mark Watched"),message:a(this.props),onConfirm:l,onCancel:u})},t}(h.Component);t.a=g},function(e,t,n){"use strict";function i(e){
var t=e.isOpen,n=e.metricsProperties,i=e.metadataItemEntityID,a=e.onRecordingModify,s=e.onModalClose,l=u()(e,["isOpen","metricsProperties","metadataItemEntityID","onRecordingModify","onModalClose"]);return o()(h.a,{isOpen:t,metricsPage:p.c,metricsProperties:n,onModalClose:s},void 0,d.a.createElement(f.a,r()({metadataItemEntityID:i,onRecordingModify:a,onModalClose:s},l)))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(34),h=n(128),f=n(2119);t.a=i},function(e,t,n){
"use strict";function i(e){var t=e.name,n=(e.initialValue,e.labelText),i=(e.showErrors,e.errors,e.validations,u()(e,["name","initialValue","labelText","showErrors","errors","validations"]));return o()("div",{},void 0,o()(f.a,{name:t},void 0,n),d.a.createElement(v.a,r()({name:t,size:p.d.SMALL},i)))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(20),h=n(157),f=n(126),v=n(215);t.a=n.i(h.a)(i)},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.serverEntityID,i=e.imageWidth,a=e.imageHeight,s=e.imageUrl,d=e.title,h=e.isLiveTVItem,f=e.recordLink,v=e.onRecordPress,m=e.onPlayPress;return r()(u.a,{className:t,serverEntityID:n,component:c.a,width:i,height:a,url:s},void 0,h?r()(l.a,{className:p.a.recordButton,circleClassName:p.a.recordCircle,tabIndex:"-1",title:d,to:f,onPress:v}):r()(o.a,{className:p.a.playButton,circleClassName:p.a.playCircle,tabIndex:"-1",title:d,onPress:m}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),
n(186)),l=n(607),u=n(301),c=n(248),d=n(2798),p=n.n(d);i.defaultProps={className:p.a.card,isLiveTVItem:!1},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.type,i=e.width,a=e.height,s=e.isFolder;return r()(o.a,{className:(t||"")+" "+(u.a.placeholderIcon||""),type:n,width:i,height:a,isFolder:s})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2133)),l=n(2801),u=n.n(l);t.a=i},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(20),f=n(50),v=n(27),m=n(38),g=n(23),y=n(369),b=n(186),S=n(441),I=n(303),M=n(971),C=n(2802),w=n.n(C),D=a()(v.a,{name:"plex-icon-edit-560"}),P=a()(v.a,{name:"plex-icon-remove-560"}),T=a()(v.a,{name:"plex-icon-more-560"}),x=function(e){function t(i,a){s()(this,t);var r=l()(this,e.call(this,i,a));return r.onActionsPress=function(e){r.setState({isActionsMenuOpen:!r.state.isActionsMenuOpen})},
r.onActionsMenuClose=function(){r.setState({isActionsMenuOpen:!1})},r.state={isActionsMenuOpen:!1},r._moreButtonID=n.i(f.a)(),r._selectButtonID=n.i(f.a)(),r}return c()(t,e),t.prototype.render=function(){
var e=this.props,t=e.className,i=e.serverEntityID,r=e.providerEntityID,s=e.metadataItemEntityID,o=e.containerKey,l=e.listType,u=e.route,c=e.title,d=e.viewCount,f=e.viewOffset,C=e.viewPercent,x=e.unviewedLeafCount,E=e.mediaCount,N=e.isLibraryVideo,L=e.isLibraryVideoDirectory,A=e.isMultiVersion,k=e.isSmart,_=e.isMatching,O=e.isProcessing,j=e.isAnalyzing,R=e.isRefreshing,U=e.isTrash,z=e.showLink,B=e.showLinkOnly,F=e.showPlay,V=e.showEdit,Q=e.showSelect,H=e.showMore,W=e.showRemove,Y=e.hasActiveSelection,G=e.isSelected,K=e.isOtherItemSelected,q=e.isConflictingTypeSelected,X=e.isModifierKeyPressed,Z=e.onMouseEnter,J=e.onPlayPress,$=e.onEditPress,ee=e.onRemovePress,te=e.onSelectPress,ne=e.onDeselectPress,ie=this.state.isActionsMenuOpen,ae=Q&&(X||K)
;return B?a()("div",{className:(t||"")+" "+(w.a.overlay||"")},void 0,z&&a()(g.a,{className:w.a.link,to:u})):a()("div",{className:(t||"")+" "+(w.a.overlay||"")+" "+(Y&&w.a.hasActiveSelection||"")+" "+(G&&w.a.isSelected||"")+" "+(K&&w.a.isOtherItemSelected||"")+" "+(q&&w.a.isConflictingTypeSelected||"")+" "+(Q&&X&&w.a.isModifierKeyPressed||"")+" "+(R&&w.a.isRefreshing||"")+" "+(U&&w.a.isTrash||"")+" "+(ie&&w.a.isActionsMenuOpen||""),onMouseEnter:Z},void 0,a()("div",{className:w.a.background
}),N&&!d&&!f&&a()("div",{className:w.a.unwatchedTagContainer},void 0,a()("div",{className:w.a.unwatchedTag})),L&&!!x&&a()("div",{className:w.a.unwatchedBadge},void 0,x),A&&a()("div",{className:w.a.versionBadge},void 0,a()(v.a,{name:"plex-icon-files-560",className:w.a.versionBadgeIcon}),E),k&&a()("div",{className:w.a.smartBadge},void 0,a()(v.a,{name:"plex-icon-settings-560",className:w.a.smartBadgeIcon})),!!C&&a()(M.a,{className:w.a.progress,progress:C}),R&&a()("div",{
className:w.a.refreshingSpinnerContainer},void 0,a()(m.a,{className:w.a.refreshingSpinner})),_&&a()("div",{className:w.a.refreshingCircle},void 0,a()(v.a,{name:"plex-icon-search-560","aria-label":n.i(p.default)("Matching")})),O&&a()("div",{className:w.a.refreshingCircle},void 0,a()(v.a,{name:"plex-icon-tagging-560","aria-label":n.i(p.default)("Downloading Metadata")})),j&&a()("div",{className:w.a.refreshingCircle},void 0,a()(v.a,{name:"plex-icon-analyzing-560",
"aria-label":n.i(p.default)("Analyzing")})),U&&a()("div",{className:w.a.trashCircle},void 0,a()(v.a,{name:"plex-icon-trash-560","aria-label":n.i(p.default)("In Trash")})),z&&a()(g.a,{className:w.a.link,to:u}),ae&&!q&&a()(g.a,{className:w.a.selectCoverButton,onPress:te}),ae&&q&&a()(y.a,{className:w.a.selectCoverButton,component:g.a,tooltip:n.i(p.default)("A different type is selected"),tooltipAttachment:h.e.TOP_CENTER,tooltipTarget:this._selectButtonID,showOnFocus:!1,hideOnPress:!1}),F&&a()(b.a,{
className:z?w.a.playButton:w.a.playCoverButton,circleClassName:w.a.playCircle,tabIndex:"-1",title:c,"data-qa-id":"metadataPosterPlayButton",onPress:J}),V&&a()(g.a,{className:w.a.editButton,tabIndex:"-1","aria-label":n.i(p.default)("Edit {title}",{title:c}),"data-qa-id":"metadataPosterEditButton",onPress:$},void 0,D),W&&a()(g.a,{className:w.a.removeButton,tabIndex:"-1","aria-label":n.i(p.default)("Remove {title}",{title:c}),onPress:ee},void 0,P),H&&a()(g.a,{id:this._moreButtonID,
className:w.a.moreButton,tabIndex:"-1","aria-label":n.i(p.default)("More Actions"),"aria-haspopup":!0,"data-qa-id":"metadataPosterMoreButton",onPress:this.onActionsPress},void 0,T,a()(I.a,{serverEntityID:i,providerEntityID:r,metadataItemEntityID:s,containerKey:o,listType:l,showPlay:!1,showQueuePlexMix:!1,showEdit:!1,target:this._moreButtonID,isOpen:ie,onMenuClose:this.onActionsMenuClose})),Q&&a()(S.a,{id:this._selectButtonID,className:w.a.selectButton,circleClassName:w.a.selectCircle,
tabIndex:"-1",title:c,isSelected:G,isDisabled:q,onPress:te}),G&&a()(g.a,{className:w.a.deselectCoverButton,onPress:ne}))},t}(d.Component);t.a=x},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(2805)),h=n.n(p),f=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.state={progress:n.progress},a}return c()(t,e),t.prototype.componentWillReceiveProps=function(e){this.setState({progress:e.progress})},
t.prototype.render=function(){var e=this.props.className,t=this.state.progress;return a()("div",{className:e},void 0,a()("div",{className:h.a.progressTrack}),a()("div",{style:{transform:"translate3d(-"+(100-t)+"%, 0, 0)"},className:h.a.progressBar}))},t}(d.Component);f.defaultProps={progress:h.a.progress},t.a=f},function(e,t,n){"use strict";function i(e){var t=e.beginsAt,i=e.endsAt,a=e.channel,r=e.showChannel,s=e.showFullTime,o=e.timeFormat;if(!t)return n.i(h.default)("No upcoming airings")
;if(n.i(m.a)(t,i)){var l=i-Date.now()/1e3;return l<=60?n.i(h.default)("About to end"):n.i(b.a)(l)}if(n.i(f.a)(t)&&n.i(v.a)(t,{minutes:60})){var u=1e3*t-Date.now();if(u<=D)return r&&a?n.i(h.default)("Starting now on {channel}",{channel:a}):n.i(h.default)("Starting now");var c=n.i(S.a)(u);return r&&a?n.i(h.default)("Starting in {duration} on {channel}",{duration:c,channel:a}):n.i(h.default)("Starting in {duration}",{duration:c})}return(s?g.a:y.a)(t,r&&a,{timeFormat:o})}
var a=n(2),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=(n.n(p),n(4)),f=n(805),v=n(806),m=n(547),g=n(803),y=n(1400),b=n(274),S=n(273),I=n(26),M=n(84),C=n(2809),w=n.n(C),D=6e4,P=function(e){function t(n,i){o()(this,t);var a=u()(this,e.call(this,n,i));return a.tick=function(){a.setState(a.getState(a.props)),a.setTickTimeout()},a.state=a.getState(n),a}return d()(t,e),t.prototype.componentWillMount=function(){this.setTickTimeout()},
t.prototype.componentWillReceiveProps=function(e,t){this.setState(this.getState(e))},t.prototype.shouldComponentUpdate=function(e,t){return n.i(I.a)(this,e,t)},t.prototype.componentWillUnmount=function(){this.tickTimeout&&clearTimeout(this.tickTimeout)},t.prototype.getState=function(e){return{title:i(e)}},t.prototype.setTickTimeout=function(){this.tickTimeout=setTimeout(this.tick,D-Date.now()%D)},t.prototype.render=function(){
var e=this.props,t=e.className,i=e.beginsAt,a=e.endsAt,s=e.channel,o=e.showChannel,l=this.state.title,u=o&&!!s&&n.i(m.a)(i,a);return r()("span",{className:t},void 0,u?r()("span",{},void 0,n.i(h.default)("Now on {channel}",{channel:s}),r()(M.a,{className:w.a.separator}),l):l)},t}(p.Component);P.defaultProps={showFullTime:!1,showChannel:!1},t.a=P},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(function(e){return e.experienceSettings.timeFormat
},n.i(s.a)(),n.i(o.a)(),function(e,t,n){return{beginsAt:t&&t.beginsAt,endsAt:t&&t.endsAt,channel:n&&n.tag,timeFormat:e}})}var a=n(11),r=n(5),s=(n.n(r),n(361)),o=n(908),l=n(972);t.a=n.i(a.b)(i)(l.a)},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{skipChildren:e.skipChildren,childCount:e.childCount,leafCount:e.leafCount}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(2147)
;t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.iconClassName,i=e.name;return r()("span",{className:t},void 0,r()(o.a,{className:n,name:i}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(27)),l=n(2811),u=n.n(l);i.defaultProps={className:u.a.decoratorIconContainer,iconClassName:u.a.decoratorIcon},t.a=i},function(e,t,n){"use strict";function i(e,t){return n.i(r.createSelector)(n.i(s.a)(),function(){return{
duration:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).duration}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(626);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(){return{leafCount:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).leafCount}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(2164);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(e,t){return n.i(r.createSelector)(n.i(s.a)(),function(){
return{lastViewedAt:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).lastViewedAt}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(2165);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{duration:e.duration,viewOffset:e.viewOffset}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(632);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(e){
var t=e.className,i=e.duration;return i?r()("span",{className:t},void 0,n.i(o.a)(i)):null}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(235));t.a=i},function(e,t,n){"use strict";function i(e,t){return n.i(r.createSelector)(n.i(s.a)(),function(){return{duration:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).duration}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(980);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(e,t){return n.i(r.createSelector)(n.i(s.a)(),function(){return{
originallyAvailableAt:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).originallyAvailableAt}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(2170);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.tabIndex,a=e.title,s=e.index,u=e.route,h=e.parentTitle,f=e.parentIndex,v=e.parentRoute,m=e.originallyAvailableAt,g=n.i(o.a)({seasonIndex:f,noLeadingZero:!0}),y=n.i(l.a)({episodeIndex:s,date:m,noLeadingZero:!0});return u&&v?r()("span",{className:t
},void 0,s>0&&!!g&&r()(c.a,{tabIndex:i,title:h,to:v},void 0,g),s>0&&!!g&&p,r()(c.a,{tabIndex:i,title:a,to:u},void 0,y)):r()("span",{className:t},void 0,s>0&&!!g&&r()("span",{},void 0,g),s>0&&!!g&&d,r()("span",{},void 0,y))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(1427)),l=n(823),u=n(84),c=n(23),d=r()(u.a,{separator:"\xb7"}),p=r()(u.a,{separator:"\xb7"});t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(s.a,o.a,n.i(l.a)(),function(e,t){
var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{title:i.title,index:i.index,route:n.i(u.a)(e,t,i.key),parentTitle:i.parentTitle,parentIndex:i.parentIndex,parentRoute:n.i(u.a)(e,t,i.parentKey),originallyAvailableAt:i.originallyAvailableAt}})}var a=n(11),r=n(5),s=(n.n(r),n(45)),o=n(43),l=n(21),u=n(118),c=n(983);t.a=n.i(a.b)(i)(c.a)},function(e,t,n){"use strict";function i(e,t){var n=Math.abs(Date.now()-1e3*e);return n<36e5?setTimeout(t,6e4):n<864e5?setTimeout(t,36e5):void 0}
var a=n(2),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=(n.n(p),n(236)),f=function(e){function t(a,r){o()(this,t);var s=u()(this,e.call(this,a,r));v.call(s);var l=s.props.timestamp,c=n.i(h.a)(l);return s.state={title:c},s.timeoutID=i(l,s.trackTime),s}return d()(t,e),t.prototype.componentWillReceiveProps=function(e){if(e.timestamp!==this.props.timestamp){var t=n.i(h.a)(e.timestamp);this.setState({title:t})}},t.prototype.componentWillUnmount=function(){
this.timeoutID&&(this.timeoutID=clearTimeout(this.timeoutID))},t.prototype.render=function(){var e=this.props.className,t=this.state.title;return r()("span",{className:e},void 0,t)},t}(p.Component),v=function(){var e=this;this.trackTime=function(){var t=e.props.timestamp,a=n.i(h.a)(t);e.setState({title:a}),e.timeoutID=i(t,e.trackTime)}};t.a=f},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.year;return r()("span",{className:t},void 0,n)}var a=n(2),r=n.n(a),s=n(0);n.n(s);t.a=i
},function(e,t,n){"use strict";function i(e){return u.a.createElement(p.a,o()({tooltip:n.i(c.default)("Edit")},e),h)}var a=n(2),r=n.n(a),s=n(6),o=n.n(s),l=n(0),u=n.n(l),c=n(4),d=n(27),p=n(129),h=r()(d.a,{name:"plex-icon-toolbar-edit-560"});t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children;return r()("div",{className:t},void 0,n)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2820)),l=n.n(o);i.defaultProps={className:l.a.pageHeaderCenter},t.a=i},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(14),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(871),m=n(67),g=function(e){function t(n,i){l()(this,t);var a=c()(this,e.call(this,n,i));return a.onScrollPositionChange=function(e){var t=e.scrollTop;a.state.isScrolling||(a._currentScrollTop=t)},a.state={isScrolling:!1},a._positionKey=v.a.getPageKey()+"!scrollPosition",a._currentScrollTop=0,a._restoreScrollDelay=n.smoothScroll?n.smoothScrollDuration:n.restoreScrollDelay,a._restoreScroll=!1,
a._restoreScrollTimeoutID=null,a}return p()(t,e),t.prototype.componentDidMount=function(){this._restoreScrollPosition()},t.prototype.componentWillUnmount=function(){this._storeScrollPosition(),this._restoreScrollTimeoutID&&clearTimeout(this._restoreScrollTimeoutID)},t.prototype._restoreScrollPosition=function(){var e=this,t=v.a.get(this._positionKey);t&&(this.setState({isScrolling:!0}),this._currentScrollTop=t.scrollTop,this._restoreScroll=!0,this._restoreScrollTimeoutID=setTimeout(function(){
e.setState({isScrolling:!1}),e._restoreScroll=!1},this._restoreScrollDelay))},t.prototype._storeScrollPosition=function(){v.a.set(this._positionKey,{scrollTop:this._currentScrollTop})},t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,i=s()(e,["children","className"]);return f.a.createElement(m.a,a()({className:n,scrollTop:this._currentScrollTop,restoreScroll:this._restoreScroll,onScrollPositionChange:this.onScrollPositionChange},i),t)},t}(h.Component);g.defaultProps={
restoreScrollDelay:100,smoothScroll:!0,smoothScrollDuration:400},t.a=g},function(e,t,n){"use strict";function i(e){var t=e.children,i=e.closedNode,a=e.title,s=e.isDirty,l=e.isOpen,g=e.updateUserError,b=e.isUpdatingUser,S=e.showButton,I=e.onDirtyChange,M=e.onSubmit,C=e.onErrorDismiss,w=e.onTogglePress,D=l&&g?n.i(c.a)(o.a.first(g.request)):null;return r()(f.a,{isOpen:l,errorMessage:D,closedNode:r()(v.a,{className:y.a.sectionDetails},void 0,r()(h.a,{className:y.a.label},void 0,a),i),
onErrorDismiss:C,onTogglePress:w},void 0,S&&r()(p.a,{onSubmit:M,onChange:I},void 0,t,r()("div",{className:y.a.submitButton},void 0,r()(m.a,{type:"submit",isDisabled:!s,isSpinning:b,kind:d.PRIMARY},void 0,n.i(u.default)("Save Changes")))),!S&&t)}var a=n(2),r=n.n(a),s=n(3),o=n.n(s),l=n(0),u=(n.n(l),n(4)),c=n(238),d=n(74),p=n(143),h=n(126),f=n(1015),v=n(657),m=n(92),g=n(2825),y=n.n(g),b=n(660);i.defaultProps={showButton:!0},t.a=n.i(b.a)(i,{isUpdatingPropName:"isUpdatingUser",
errorPropName:"updateUserError",clearDirtyOnChangePropName:"isOpen"})},function(e,t,n){"use strict";function i(){return n.i(l.createStructuredSelector)({server:n.i(c.a)(),outOfDateServers:d.a,isDownForMaintenance:m,hasFailedResources:g,hasPlexPass:function(e){return e.user.hasPlexPass},isUserRestricted:function(e){return!!e.user.restricted},canProvisionPersonalCloudServer:p.a})}function a(e){return{onDownloadServer:function(t){e(n.i(h.f)(t))},onLinkPersonalCloudServerPress:function(t){
e(n.i(f.a)({open:!0}))}}}var r=n(3),s=n.n(r),o=n(11),l=n(5),u=(n.n(l),n(403)),c=n(46),d=n(791),p=n(405),h=n(86),f=n(291),v=n(2215),m=n.i(l.createSelector)(u.a,function(e){return!!s.a.findWhere(e,{isDownForMaintenance:!0})}),g=n.i(l.createSelector)(u.a,function(e){return!!s.a.findWhere(e,{hasFailedResources:!0})});t.a=n.i(o.b)(i,a)(v.a)},function(e,t,n){"use strict";function i(){return r()(c.a,{title:n.i(o.default)("You must be lost"),
description:n.i(o.default)("We can't find the page you're looking for")},void 0,r()(u.a,{to:"#",kind:l.b.PRIMARY},void 0,n.i(o.default)("Go Home")))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(20),u=n(23),c=n(160);t.a=i},function(e,t,n){"use strict";function i(e){switch(e){case c.b:return h.a;case c.c:return f.a;default:return p.a}}function a(e){
var t=e.children,a=e.serverEntityID,r=e.providerEntityID,o=e.metadataListEntityID,u=e.containerKey,c=e.containerTitle,p=e.listTitle,h=e.listType,f=e.listContext,y=e.listStyle,S=e.activeSort,I=e.selectedSort,M=e.metadataItemEntityIDs,C=e.totalSize,w=e.populatedRange,D=e.firstItemType,P=e.isPending,T=e.isPopulated,x=e.error,E=e.columnAdjustment,N=e.hasGutter,L=e.onPageRequest,A=e.onListScrollIndexChange,k=e.onListUpdate,_=e.onMeasure,O=e.scrollIndex,j=C||M.length;if(T&&j){var R=h||D,U=i(y)
;return s()(U,{className:b.a.metadataListPageContent,scrollerClassName:(b.a.metadataListScroller||"")+" "+(N&&b.a.hasGutter||""),serverEntityID:a,providerEntityID:r,metadataListEntityID:o,containerKey:u,containerTitle:c,listType:R,listContext:f,activeSort:S,selectedSort:I,scrollIndex:O,scrollPositionStorageKey:"MetadataListPageContent",keyPropName:"metadataItemEntityID",items:M,itemsOffset:w.start,size:j,columnAdjustment:E,onPageRequest:L,onListScrollIndexChange:A,onListUpdate:k,onMeasure:_
},void 0,t)}return P?s()(v.a,{},void 0,s()(m.a,{},void 0,s()(d.a,{label:p?n.i(l.default)("Loading {listTitle}",{listTitle:p}):n.i(l.default)("Loading list")}))):x?s()(v.a,{},void 0,s()(g.a,{title:p?n.i(l.default)("There was an unexpected error loading {listTitle}",{listTitle:p}):n.i(l.default)("There was an unexpected error loading this list")})):s()(v.a,{},void 0,s()(m.a,{title:n.i(l.default)("Nothing to see here"),description:p?n.i(l.default)("There are no items in {listTitle}",{listTitle:p
}):n.i(l.default)("There are no items in this list")}))}var r=n(2),s=n.n(r),o=n(0),l=(n.n(o),n(4)),u=(n(351),n(32)),c=n(77),d=n(38),p=n(963),h=n(2101),f=n(2100),v=n(218),m=n(170),g=n(251),y=n(2848),b=n.n(y);a.defaultProps={listContext:u.e,listStyle:c.e},t.a=a},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,i=e.providerEntityID,a=e.metadataItemEntityID,s=e.metadataListEntityID,g=e.showSpinner,y=e.showError,b=e.activeSelectionType,S=e.columnAdjustment,I=e.record,M=e.multiSelectToolbarComponent;return g?r()(p.a,{},void 0,r()(c.a,{label:n.i(o.default)("Loading details")})):y?r()(h.a,{title:n.i(o.default)("There was an unexpected error loading this item")}):r()(d.a,{metricsPage:l.u,isMetricsDelegated:!0,disableBackgroundPreset:!0,scrollDirection:u.a.NONE},void 0,b?r()(f.a,{
serverEntityID:t,providerEntityID:i,toolbarComponent:M}):r()(v.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:a}),r()(m.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:a,metadataListEntityID:s,columnAdjustment:S,record:I}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(34),u=n(20),c=n(38),d=n(187),p=n(159),h=n(305),f=n(308),v=n(2267),m=n(2262);t.a=i},function(e,t,n){"use strict";function i(){return n.i(o.createSelector)(function(e){return e.ui.prePlayPage
},f,c.a,l.a,function(e,t,n,i){var a=e.metadataItem,r=e.descendantList,s=e.isMetadataItemPending,o=e.metadataItemError;return{metadataItemEntityID:a,metadataListEntityID:r,showSpinner:s&&!t,showError:!s&&!!o,activeSelectionType:n.activeSelectionType,columnAdjustment:i.columnAdjustment}})}function a(e){var t=e.ui.prePlayPage;return{serverEntityID:t.serverEntityID,metadataKey:t.metadataKey}}function r(e,t){e(d.a({serverEntityID:t.serverEntityID,metadataKey:t.metadataKey})),e(d.b()),e(d.c())}
var s=n(11),o=n(5),l=(n.n(o),n(111)),u=n(110),c=n(83),d=n(290),p=n(184),h=n(994),f=n.i(o.createSelector)(function(e){return e.ui.prePlayPage.metadataItem},u.a,function(e,t){var n=t[e]||{};return!(!n||!n.isPreFetched)}),v=n.i(p.a)(h.a,a,r),m=n.i(s.b)(i)(v);t.a=m},function(e,t,n){"use strict";function i(){return n.i(m.createSelector)(function(e){return e.ui.prePlayPage.decisionMediaItem},n.i(g.a)(),function(e,t){return{mediaItem:e,mediaItems:t.Media}})}
var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(7),u=n.n(l),c=n(9),d=n.n(c),p=n(8),h=n.n(p),f=n(0),v=n.n(f),m=n(5),g=(n.n(m),n(21)),y=n(398),b=n(290),S=n(138),I=n(2293),M={dispatchMakePrePlayVideoDecision:b.e,dispatchSelectMetadataItemStream:y.b},C=function(e){function t(){var n,i,a;u()(this,t);for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o];return n=i=d()(this,e.call.apply(e,[this].concat(s))),i.onAudioStreamSelect=function(e){i.props.dispatchSelectMetadataItemStream({
metadataItemEntityID:i.props.metadataItemEntityID,streamTypeString:"audio",streamID:e,allParts:!0,metricsPage:i.props.metricsPage})},i.onSubtitlesStreamSelect=function(e){i.props.dispatchSelectMetadataItemStream({metadataItemEntityID:i.props.metadataItemEntityID,streamTypeString:"subtitles",streamID:e,allParts:!0,metricsPage:i.props.metricsPage})},a=n,d()(i,a)}return h()(t,e),t.prototype.componentDidMount=function(){this.props.dispatchMakePrePlayVideoDecision()},
t.prototype.componentDidUpdate=function(e){e.mediaItems!==this.props.mediaItems&&e.dispatchMakePrePlayVideoDecision()},t.prototype.render=function(){var e=this.props,t=(e.metricsPage,e.dispatchMakePrePlayVideoDecision,e.dispatchSelectMetadataItemStream,o()(e,["metricsPage","dispatchMakePrePlayVideoDecision","dispatchSelectMetadataItemStream"]));return v.a.createElement(I.a,r()({},t,{onAudioStreamSelect:this.onAudioStreamSelect,onSubtitlesStreamSelect:this.onSubtitlesStreamSelect}))},t
}(f.Component);t.a=n.i(S.a)(i,M)(C)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(26),f=n(20),v=n(47),m=n(620),g=n(217),y=n(2869),b=n.n(y),S=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onRecordPress=function(e){a.setState({isSubscribeModalOpen:!0})},a.onSubscribeModalClose=function(){a.setState({isSubscribeModalOpen:!1})},a.state={isSubscribeModalOpen:n.isSubscribeModalOpen},a}
return c()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(h.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,i=e.metadataItemEntityID,r=e.type,s=e.isSubscribed,o=e.subscriptionType,l=e.grandparentSubscriptionType,u=this.state.isSubscribeModalOpen;return a()(v.a,{className:b.a.recordButton,size:f.d.SMALL,onPress:this.onRecordPress},void 0,a()(m.a,{className:s?b.a.recordingIcon:b.a.recordIcon,type:l||o||r
}),s?n.i(p.default)("Recording Scheduled"):n.i(p.default)("Record"),a()(g.a,{serverEntityID:t,metadataItemEntityID:i,isOpen:u,subscriptionType:r,onModalClose:this.onSubscribeModalClose}))},t}(d.Component);S.defaultProps={isSubscribeModalOpen:!1},t.a=S},function(e,t,n){"use strict";function i(e){var t=e.children,i=e.mediaItem,a=i&&i.videoResolution,s=!1,c=void 0;if(a){var d=parseInt(a,10);s=!0,c=d>=720||4===d||8===d}return t||s?r()(l.a,{},void 0,t,s&&r()(u.a,{label:n.i(o.default)("Video")
},void 0,c?n.i(o.default)("HD"):n.i(o.default)("SD"))):null}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(649),u=n(458);t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(e){return{mediaItem:e}})}var a=n(11),r=n(5),s=(n.n(r),n(361)),o=n(998);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.children,i=e.beginsAt,a=e.endsAt,s=e.channel,c=e.timeFormat;if(!i||!a)return null;var d=Date.now()/1e3,p=void 0
;return p=a<d?n.i(o.default)("Aired"):i<=d&&a>=d?n.i(o.default)("Airing"):n.i(o.default)("Airs"),r()(u.a,{label:p},void 0,r()(l.a,{beginsAt:i,endsAt:a,channel:s,showFullTime:!0,showChannel:!0,timeFormat:c}),t)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(972),u=n(458);t.a=i},function(e,t,n){"use strict";function i(){return n.i(s.createSelector)(function(e){return e.experienceSettings.timeFormat},n.i(o.a)(),n.i(l.a)(),function(e,t,n){return{beginsAt:t&&t.beginsAt,endsAt:t&&t.endsAt,
channel:n&&n.tag,timeFormat:e}})}var a=n(0),r=(n.n(a),n(11)),s=n(5),o=(n.n(s),n(361)),l=n(908),u=n(1e3);t.a=n.i(r.b)(i)(u.a)},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:e.type,duration:e.duration,isSubscribed:null!=e.subscriptionID||null!=e.grandparentSubscriptionID,subscriptionType:e.subscriptionType,grandparentSubscriptionType:e.grandparentSubscriptionType}})}
var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(2299);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(14),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(1052),m=n(1055),g=n(57),y=n.n(g),b=n(183),S=parseInt(y.a.mosaicCellPadding,10),I=function(e){function t(n,i){l()(this,t);var a=c()(this,e.call(this,n,i));return a.state={layout:a._createLayout(n)},a}return p()(t,e),t.prototype.componentWillReceiveProps=function(e){
var t=this.props.aspectRatios!==e.aspectRatios,n=this.props.viewportWidth!==e.viewportWidth,i=this.props.columnAdjustment!==e.columnAdjustment;(t||n||i)&&this.setState({layout:this._createLayout(e)})},t.prototype._createLayout=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.viewportWidth,i=e.columnAdjustment,a=e.aspectRatios,r=Math.ceil(t/400),s=Math.max(1,r+i),o=S,l=S,u=n.i(m.a)({aspectRatios:a,columns:s});return n.i(v.a)({columns:s,rows:u,outerPadding:o,
innerPadding:l})},t.prototype.render=function(){if(!this.state)return null;var e=this.props,t=e.cellRenderer,n=s()(e,["cellRenderer"]),i=this.state.layout;return f.a.createElement(b.a,a()({layout:i,cellRenderer:t},n))},t}(h.Component);I.defaultProps={columnAdjustment:0},t.a=I},function(e,t,n){"use strict";function i(e){return r.a.createElement(o.a,e)}var a=n(0),r=n.n(a),s=n(20),o=n(47),l=n(2885),u=n.n(l);i.defaultProps={className:u.a.statusButton,size:s.d.SMALL},t.a=i},function(e,t,n){
"use strict";function i(){return n.i(s.createSelector)(n.i(o.a)(),n.i(l.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return{duration:e.duration,viewCount:e.viewCount,viewOffset:e.viewOffset,isFileUnavailable:t}})}function a(e,t){return{onUnavailablePress:function(i){e(n.i(u.getMetadataItemInfo)({metadataItemEntityID:t.metadataItemEntityID}))}}}var r=n(11),s=n(5),o=(n.n(s),n(21)),l=n(1799),u=n(140),c=n(2310);t.a=n.i(r.b)(i,a)(c.a)
},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children;return r()("span",{className:t},void 0,n)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2887)),l=n.n(o);i.defaultProps={className:l.a.tertiaryTitleSpacer},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,a=e.type,s=e.summary,c=e.showStreams;return r()("div",{},void 0,r()(u.a,{},void 0,r()(d.a,{},void 0,r()(f.a,{},void 0,r()(o.a,{serverEntityID:t,
providerEntityID:n,metadataItemEntityID:i}))),r()(p.a,{},void 0,r()(f.a,{},void 0,r()(l.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i})),r()(m.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i})),r()(h.a,{},void 0,r()(v.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),r()(S.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}))),I,r()(u.a,{},void 0,r()(g.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,type:a}),c&&r()(y.a,{
serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),r()(b.a,{},void 0,s)))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(250)),l=n(304),u=n(103),c=n(130),d=n(145),p=n(193),h=n(194),f=n(104),v=n(1005),m=n(253),g=n(252),y=n(996),b=n(162),S=n(2315),I=r()(c.a,{});i.defaultProps={showStreams:!0},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,a=e.title,s=e.year,l=e.summary,S=e.showStreams
;return r()("div",{},void 0,r()(o.a,{},void 0,r()(u.a,{},void 0,r()(p.a,{},void 0,a)),r()(c.a,{},void 0,r()(p.a,{},void 0,s),r()(f.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i})),r()(d.a,{},void 0,r()(h.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),r()(v.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}))),b,r()(o.a,{},void 0,r()(m.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),S&&r()(g.a,{serverEntityID:t,providerEntityID:n,
metadataItemEntityID:i}),r()(y.a,{},void 0,l)))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(103)),l=n(130),u=n(145),c=n(193),d=n(194),p=n(104),h=n(1005),f=n(253),v=n(376),m=n(252),g=n(996),y=n(162),b=r()(l.a,{});i.defaultProps={showStreams:!0},t.a=i},function(e,t,n){"use strict";function i(){return r()(l.a,{className:c.a.badge},void 0,n.i(o.default)("New"))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(440),u=n(2897),c=n.n(u);t.a=i},function(e,t,n){"use strict";function i(){
return n.i(S.createSelector)(function(e,t){return t.linkedKey},D.a,function(e,t){var i={isLibraryProvider:!0,identifer:C.a.LIBRARY_PROVIDER_IDENTIFIER};return n.i(E.a)(t,i,e)})}function a(){return n.i(S.createSelector)(function(e,t){return t.serverEntityID},function(e,t){return t.mediaSubscriptionID},function(e,t){return t.status},function(e){return e.experienceSettings.timeFormat},i(),n.i(P.a)(),n.i(T.a)(),function(e,t,i,a,r,s,o){
var l=n.i(I.a)(M.a,t,e),u=i===w.a.COMPLETE,c=i===w.a.ERROR,d=m.a.pick(s,"type","title","grandparentTitle","index","parentIndex","originallyAvailableAt");return f()({mediaSubscriptionEntityID:l,prePlayRoute:r,isRecording:!!o,recordingProgress:o&&o.progress,isComplete:u,hasError:c,hasSubscription:!!t,showPlay:u&&!!r,timeFormat:a},d)})}var r=n(14),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(6),f=n.n(h),v=n(3),m=n.n(v),g=n(0),y=n.n(g),b=n(11),S=n(5),I=(n.n(S),
n(53)),M=n(56),C=n(72),w=n(517),D=n(45),P=n(21),T=n(906),x=n(358),E=n(118),N=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o];return n=i=c()(this,e.call.apply(e,[this].concat(s))),i.onPlayPress=function(e){i.props.playRecording({serverEntityID:i.props.serverEntityID,linkedKey:i.props.linkedKey})},a=n,c()(i,a)}return p()(t,e),t.prototype.render=function(){var e=this.props,t=e.component,n=(e.mediaSubscriptionID,e.status,e.linkedKey,
s()(e,["component","mediaSubscriptionID","status","linkedKey"]));return y.a.createElement(t,f()({},n,{onPlayPress:this.onPlayPress}))},t}(g.Component);t.a=n.i(b.b)(a,{playRecording:x.playRecording})(N)},function(e,t,n){"use strict";function i(e){var t=e.subscriptionCount;return r()(l.a,{icon:"plex-icon-calendar-560",title:n.i(o.default)("You have no recordings scheduled"),
description:1===t?n.i(o.default)("There are no upcoming airings of the item in your list"):n.i(o.default)("There are no upcoming airings of the {subscriptionCount} items in your list",{subscriptionCount:t})})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(170);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.error,n=e.onPress;return r()(c.a,{className:p.a.errorButton,component:u.a,tooltip:t,tooltipClassName:p.a.errorTooltip,tooltipAttachment:o.e.MIDDLE_RIGHT,onPress:n},void 0,r()(l.a,{
name:"plex-icon-alert-560","aria-label":t}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(20)),l=n(27),u=n(23),c=n(369),d=n(2906),p=n.n(d);t.a=i},function(e,t,n){"use strict";function i(e){var t=u.a.unix(e);return n.i(d.default)("{month} {dayNumber}",{month:n.i(p.a)(e),dayNumber:t.date()})}function a(e){var t=u.a.unix(e);return n.i(d.default)("{month} {dayNumber}, {year}",{month:n.i(p.a)(e),dayNumber:t.date(),year:t.year()})}function r(e){
var t=e.startTime,n=e.endTime,r=u.a.unix(t),s=u.a.unix(n),l=r.isSame(s,"day")?a(t):i(t)+" \u2013 "+a(n);return o()("span",{className:f.a.title},void 0,l)}var s=n(2),o=n.n(s),l=n(40),u=n.n(l),c=n(0),d=(n.n(c),n(4)),p=n(545),h=n(2909),f=n.n(h);t.a=r},function(e,t,n){"use strict";function i(){return n.i(h.createSelector)(function(e){return e.ui.recordingSchedulePage.calendar.scheduled},n.i(f.a)(),function(e,t){return o.a.find(e,function(e){
return u.a.unix(e.beginsAt).isAfter()&&e.mediaSubscriptionID===t.key})})}function a(){return n.i(h.createSelector)(function(e){return e.experienceSettings.timeFormat},n.i(f.a)(),i(),function(e,t,n){var i=o.a.pick(t.target,"title","grandparentTitle","type","year","index","parentIndex","originallyAvailableAt","thumb","grandparentThumb");return n&&(i.beginsAt=n.beginsAt,i.endsAt=n.endsAt),i.timeFormat=e,i})}function r(e){return d.a.createElement(v.a,e)}
var s=n(3),o=n.n(s),l=n(40),u=n.n(l),c=n(0),d=n.n(c),p=n(11),h=n(5),f=(n.n(h),n(1387)),v=n(2367);t.a=n.i(p.b)(a)(r)},function(e,t,n){"use strict";function i(e){var t=e.children,i=e.className,a=e.closedNode,s=e.errorMessage,p=e.isOpen,f=e.onErrorDismiss,v=e.onTogglePress;return r()(u.a,{className:((p?h.a.isOpen:h.a.isClosed)||"")+" "+(i||""),errorMessage:s,onErrorDismiss:f,onPress:p?null:v},void 0,r()(c.a,{},void 0,p&&r()(d.a,{kind:l.PRIMARY,onPress:v
},void 0,n.i(o.default)("Cancel")),!p&&r()(d.a,{kind:l.PRIMARY},void 0,n.i(o.default)("Edit"))),p?t:a)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(74),u=n(377),c=n(656),d=n(23),p=n(2920),h=n.n(p);t.a=i},function(e,t,n){"use strict";function i(e){return r()("div",{className:u.a.spinnerContainer},void 0,c)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(38)),l=n(2926),u=n.n(l),c=r()(o.a,{});t.a=i},function(e,t,n){"use strict";function i(e){return e.ui.signInLaunchPage}function a(){
return n.i(g.createSelector)(i,n.i(S.a)(),function(e,t){return f()({serviceAuthUrl:t,isPollClient:n.i(I.a)(),showEnterFullScreen:n.i(b.a)()},e)})}var r=n(2),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(6),f=n.n(h),v=n(0),m=(n.n(v),n(11)),g=n(5),y=(n.n(g),n(4)),b=n(563),S=n(793),I=n(596),M=n(86),C=n(589),w=n(2384),D={dispatchResetSignInLaunchPage:C.a,dispatchReadStoredPIN:C.b,dispatchPreloadPIN:C.c,dispatchBeginPolling:C.d,dispatchRedeemCode:C.e,dispatchSwitchAppLayout:M.h,
dispatchSignInWithAuthToken:C.f},P=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o];return n=i=c()(this,e.call.apply(e,[this].concat(s))),i.onSwitchLayoutPress=function(){i.props.dispatchSwitchAppLayout()},a=n,c()(i,a)}return p()(t,e),t.prototype.componentDidMount=function(){this.props.dispatchResetSignInLaunchPage(),this.props.soleProviderID?this.props.dispatchRedeemCode({serviceAuthUrl:this.props.serviceAuthUrl
}):this.props.isPollClient?this.props.dispatchPreloadPIN():this.props.dispatchReadStoredPIN()},t.prototype.componentDidUpdate=function(e){this.props.hasStoredPIN!==e.hasStoredPIN&&this.props.hasStoredPIN===!1&&this.props.dispatchPreloadPIN(),this.props.code!==e.code&&(this.props.isPollClient?this.props.dispatchBeginPolling({serviceAuthUrl:this.props.serviceAuthUrl,pinID:this.props.pinID}):this.props.dispatchRedeemCode({serviceAuthUrl:this.props.serviceAuthUrl,pinID:this.props.pinID})),
this.props.myPlexAccessToken!==e.myPlexAccessToken&&this.props.myPlexAccessToken&&this.props.dispatchSignInWithAuthToken({myPlexAccessToken:this.props.myPlexAccessToken})},t.prototype.render=function(){var e=this.props,t=e.serviceAuthUrl,i=e.showEnterFullScreen,a=e.isUnrecoverableError,r=e.isPollClient;return a?s()("h1",{},void 0,n.i(y.default)("An error occurred")):r?s()(w.a,{serviceAuthUrl:t,showEnterFullScreen:i,onSwitchLayoutPress:this.onSwitchLayoutPress}):null},t}(v.Component)
;t.a=n.i(m.b)(a,D)(P)},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(o.a)(),function(e){return{metadataItemEntityID:e.metadataItem}})}function a(e,t){return{onRemovePress:function(i){e(n.i(l.p)({playerType:t.playerType,playQueueItemEntityID:t.playQueueItemEntityID}))}}}var r=n(5),s=(n.n(r),n(11)),o=n(531),l=n(109),u=n(2408);t.a=n.i(s.b)(i,a)(u.a)},function(e,t,n){"use strict";function i(e){
var t=e.className,i=e.serverEntityID,a=e.providerEntityID,s=e.metadataItemEntityID,v=e.liveTVSessionEntityID,g=e.playerType,y=e.isVideo,b=e.isMusic,S=e.showDuration,I=e.durationSeconds,M=e.positionSeconds,C=e.volume,w=e.showExpandButton,D=e.disableExpandButton,P=e.showRecordButton,T=e.showRepeatButton,x=e.disableRepeatButton,E=e.activateRepeatButton,N=e.showRepeatOneButton,L=e.disableRepeatOneButton,A=e.activateRepeatOneButton,k=e.showPreviousButton,_=e.disablePreviousButton,O=e.showSkipBackButton,j=e.disableSkipBackButton,R=e.showPlayButton,U=e.disablePlayButton,z=e.showPauseButton,B=e.disablePauseButton,F=e.showSkipForwardButton,V=e.disableSkipForwardButton,Q=e.showNextButton,H=e.disableNextButton,W=e.showShuffleButton,Y=e.disableShuffleButton,G=e.activateShuffleButton,K=e.showMenuButton,q=e.disableMenuButton,X=e.showLyricsButton,Z=e.disableLyricsButton,J=e.activateLyricsButton,$=e.showSettingsButton,ee=e.disableSettingsButton,te=e.activateSettingsButton,ne=e.showChaptersButton,ie=e.disableChaptersButton,ae=e.showQueueButton,re=e.activateQueueButton,se=e.disableQueueButton,oe=e.showVolume,le=e.showCloseButton,ue=e.disableCloseButton,ce=e.onExpandPress,de=e.onRepeatPress,pe=e.onRepeatOnePress,he=e.onPreviousPress,fe=e.onSkipBackPress,ve=e.onPlayPress,me=e.onPausePress,ge=e.onSkipForwardPress,ye=e.onNextPress,be=e.onShufflePress,Se=e.onControlsMenuChange,Ie=e.onLyricsPress,Me=e.onSettingsPress,Ce=e.onQueuePress,we=e.onVolumeChange,De=e.onVolumeIconPress,Pe=e.onClosePress
;return r()("div",{className:t},void 0,r()("div",{className:m.a.buttonGroupLeft},void 0,r()("div",{className:m.a.titlesButtonGroup},void 0,r()(h.a,{className:m.a.metadataContainer,metadataItemEntityID:s,liveTVSessionEntityID:v,playerType:g,isVideo:y,isMusic:b,positionSeconds:M,showExpandButton:w,disableExpandButton:D,onExpandPress:ce})),r()("div",{className:m.a.durationContainer},void 0,S&&!!I&&null!=M&&r()(u.a,{durationSeconds:I,positionSeconds:M})),P&&r()(f.a,{serverEntityID:i,
providerEntityID:a,liveTVSessionEntityID:v,positionSeconds:M})),r()("div",{className:m.a.buttonGroupCenter},void 0,T&&r()(d.a,{icon:"plex-icon-player-repeat-560",isDisabled:x,isActive:E,title:n.i(o.default)("Repeat"),onPress:de}),N&&r()(d.a,{icon:"plex-icon-player-repeat-one-560",isDisabled:L,isActive:A,title:n.i(o.default)("Repeat One"),onPress:pe}),k&&r()(d.a,{icon:"plex-icon-player-prev-560",isDisabled:_,title:n.i(o.default)("Previous"),onPress:he}),O&&r()(d.a,{
icon:"plex-icon-player-skip-back-560",isDisabled:j,title:n.i(o.default)("Skip Back 10 Seconds"),onPress:fe}),R&&r()(d.a,{icon:"plex-icon-player-play-560",isDisabled:U,title:n.i(o.default)("Play"),onPress:ve}),z&&r()(d.a,{icon:"plex-icon-player-pause-560",isDisabled:B,title:n.i(o.default)("Pause"),onPress:me}),F&&r()(d.a,{icon:"plex-icon-player-skip-forward-560",isDisabled:V,title:n.i(o.default)("Skip Forward 30 Seconds"),onPress:ge}),Q&&r()(d.a,{icon:"plex-icon-player-next-560",isDisabled:H,
title:n.i(o.default)("Next"),onPress:ye}),W&&r()(d.a,{icon:"plex-icon-player-shuffle-560",isDisabled:Y,isActive:G,title:n.i(o.default)("Shuffle"),onPress:be})),r()("div",{className:m.a.buttonGroupRight},void 0,r()("div",{className:m.a.auxButtons},void 0,K&&r()(p.a,{serverEntityID:i,providerEntityID:a,metadataItemEntityID:s,isDisabled:q,onMenuChange:Se}),X&&r()(l.a,{className:m.a.textButton,isDisabled:Z,isSelected:J,onPress:Ie},void 0,n.i(o.default)("Lyrics")),$&&r()(d.a,{
icon:"plex-icon-player-video-settings-560",isDisabled:ee,isActive:te,title:n.i(o.default)("Settings"),onPress:Me}),ne&&r()(d.a,{icon:"plex-icon-player-chapters-560",isDisabled:ie,title:n.i(o.default)("Chapters")})),r()("div",{},void 0,ae&&r()(d.a,{icon:"plex-icon-player-queue-560",isDisabled:se,isActive:re,title:n.i(o.default)("Play Queue"),onPress:Ce}),oe&&null!=C&&r()(c.a,{volume:C,onVolumeIconPress:De,onVolumeChange:we}),le&&r()(d.a,{className:m.a.closeButton,isDisabled:ue,
icon:"plex-icon-close-560",title:n.i(o.default)("Close Player"),onPress:Pe}))))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(23),u=n(2440),c=n(2457),d=n(254),p=n(1030),h=n(2413),f=n(2429),v=n(2942),m=n.n(v);i.defaultProps={className:m.a.controls},t.a=i},function(e,t,n){"use strict";function i(){return n.i(g.createSelector)(function(e,t){return t.isVideo},function(e,t){return t.isMusic},n.i(I.a)(),n.i(M.a)(),n.i(C.a)(),w.a,function(e,t,n,i,a,r){
var s=n.openState,o=n.isPlayQueueVisible,l=n.isPostPlayVisible,u=n.playQueue,c=n.positionSeconds,d=n.durationSeconds,p=n.isPaused,h=n.repeatAll,f=n.repeatOne,v=n.controllable,m=u.currentIndex,g=d-c,y={serverEntityID:n.serverEntityID,providerEntityID:n.providerEntityID,metadataItemEntityID:i.metadataItem,showDuration:!l,positionSeconds:c,durationSeconds:d,volume:r,showExpandButton:s===S.b,showRecordButton:!1,showRepeatButton:t&&!f,activateRepeatButton:h,showRepeatOneButton:f,
activateRepeatOneButton:f,showPreviousButton:!0,disablePreviousButton:!h&&m<=0&&c<=b.a,showSkipBackButton:e&&!l,showPlayButton:p,showPauseButton:!p,showSkipForwardButton:e&&!l,disableSkipForwardButton:g<=b.c,showNextButton:!0,disableNextButton:!h&&m>=u.playQueueItems.length-1,showShuffleButton:t,disableShuffleButton:!u.canShuffle,activateShuffleButton:u.playQueueShuffled,showMenuButton:!l,showLyricsButton:t,disableLyricsButton:!(i.hasPremiumLyrics||i.lyricsStreams&&i.lyricsStreams.length),
activateLyricsButton:n.isLyricsVisible,showSettingsButton:e&&!l,activateSettingsButton:n.isSettingsVisible,showQueueButton:!0,activateQueueButton:o,showVolume:!0,showCloseButton:!0,isLiveTVProvider:a.protocols.includes("livetv")};return v&&(v.playPause||(y.disablePlayButton=!0,y.disablePauseButton=!0),v.repeat||(y.disableRepeatButton=!0,y.disableRepeatOneButton=!0),v.shuffle||(y.disableShuffleButton=!0),v.skipPrevious||(y.disablePreviousButton=!0),v.skipNext||(y.disableNextButton=!0),
v.seekTo||(y.disableSkipBackButton=!0,y.disableSkipForwardButton=!0),v.volume||(y.showVolume=!1)),y})}function a(e,t){var n={playerType:t.playerType};return{onExpandPress:function(t){e(x.a(n))},onRepeatPress:function(){e(T.f(n))},onRepeatOnePress:function(){e(T.f(n))},onPreviousPress:function(t){e(T.b(n))},onSkipBackPress:function(t){e(P.b(n))},onPlayPress:function(t){e(P.d(n))},onPausePress:function(t){e(P.e(n))},onSkipForwardPress:function(t){e(P.f(n))},onNextPress:function(t){e(T.c(n))},
onShufflePress:function(t){e(T.g(n))},onQueuePress:function(){e(T.h(n))},onLyricsPress:function(){e(T.i(n))},onSettingsPress:function(){e(P.q(n))},onVolumeChange:function(t){e(P.h(f()({},n,{volume:t})))},onClosePress:function(t){e(D.d(n))}}}var r=n(14),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(6),f=n.n(h),v=n(0),m=n.n(v),g=n(5),y=(n.n(g),n(11)),b=n(233),S=(n(81),n(137)),I=n(42),M=n(85),C=n(532),w=n(432),D=n(58),P=n(122),T=n(109),x=n(399),E=n(2425),N=n(1019),L=function(e){
function t(n,i){l()(this,t);var a=c()(this,e.call(this,n,i));return a.onVolumeChange=function(e){a.setState({volume:e},function(){a.props.onVolumeChange(a.state.volume)})},a.onVolumeIconPress=function(){var e=a.state.volume>0;e&&(a._lastVolume=a.state.volume),a.setState({volume:e?0:a._lastVolume||100},function(){a.props.onVolumeChange(a.state.volume)})},a.state={volume:n.volume},a}return p()(t,e),t.prototype.componentWillReceiveProps=function(e){var t=e.volume
;t!==this.state.volume&&this.setState({volume:t})},t.prototype.render=function(){var e=this.props,t=e.isLiveTVProvider,n=s()(e,["isLiveTVProvider"]);return t?m.a.createElement(E.a,f()({},n,{volume:this.state.volume,onVolumeChange:this.onVolumeChange,onVolumeIconPress:this.onVolumeIconPress})):m.a.createElement(N.a,f()({},n,{volume:this.state.volume,onVolumeChange:this.onVolumeChange,onVolumeIconPress:this.onVolumeIconPress}))},t}(v.Component);t.a=n.i(y.b)(i,a)(L)},function(e,t,n){"use strict"
;function i(){return n.i(a.createSelector)(n.i(s.a)(),function(e){return{liveTVSessionEntityID:e.liveTVSession,positionSeconds:e.positionSeconds}})}var a=n(5),r=(n.n(a),n(11)),s=n(42),o=n(2420);t.a=n.i(r.b)(i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children;return r()("div",{className:t},void 0,n)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2949)),l=n.n(o);i.defaultProps={className:l.a.container},t.a=i},function(e,t,n){"use strict";function i(e,t){var i=t.playerType
;return{onConfirm:function(){e(n.i(o.d)({playerType:i}))},onCancel:function(){e(n.i(s.d)({playerType:i}))}}}var a=n(11),r=n(5),s=(n.n(r),n(58)),o=n(185),l=n(2438),u=n.i(r.createSelector)(function(e){return e.remotePlayer},function(e){return{playerName:e&&e.friendlyName}});t.a=n.i(a.b)(u,i)(l.a)},function(e,t,n){"use strict";function i(e,t){var i=t.playerType;return{onConfirm:function(){e(n.i(s.e)({playerType:i}))},onCancel:function(){e(n.i(r.d)({playerType:i}))}}}
var a=n(11),r=n(58),s=n(185),o=n(2439);t.a=n.i(a.b)(null,i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.imageUrl,i=e.allowBlur;return r()("div",{className:u.a.backgroundContainer},void 0,r()(o.a,{serverEntityID:t,url:n,allowBlur:i}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(942)),l=n(2956),u=n.n(l);t.a=i},function(e,t,n){"use strict";function i(e,t){var i={playerType:t.playerType};return{onCollapsePress:function(a){t.isFullscreen&&t.onExitFullscreenPress(a),
e(n.i(o.b)(i))}}}var a=n(5),r=(n.n(a),n(11)),s=n(13),o=n(399),l=n(532),u=n(2441),c=n.i(a.createSelector)(function(e){return e.remotePlayer?e.remotePlayer.friendlyName:null},n.i(l.a)(),function(e,t){return{remotePlayerName:e,showRemotePlayer:!t.protocols.includes("livetv"),hasFullscreen:n.i(s.a)("fullscreenManager").hasFullscreen}});t.a=n.i(r.b)(c,i)(u.a)},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.className,i=e.controlsClassName;return e.isPlayQueueLoading?r()("div",{
className:n},void 0,c):r()("div",{className:n},void 0,r()("div",{className:i},void 0,t))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(38)),l=n(2958),u=n.n(l),c=r()(o.a,{});i.defaultProps={className:u.a.miniPlayer,controlsClassName:u.a.controls},t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(o.a)(),function(e){return{isPaused:e.isPaused}})}function a(e,t){var i={playerType:t.playerType};return{onTogglePlayPress:function(t){e(n.i(l.c)(i))}}}var r=n(5),s=(n.n(r),
n(11)),o=n(42),l=n(122),u=n(2443);t.a=n.i(s.b)(i,a)(u.a)},function(e,t,n){"use strict";function i(){return n.i(f.createSelector)(function(e){return!!e.remotePlayer},n.i(b.a)(),n.i(S.a)(),n.i(I.a)(),w,function(e,t,n,i,a){var r=t.isOpen,s=t.openState,o=s===m.b;return{isOpen:r,isServerlessPlayer:r&&(!n||!i),isMiniPlayer:o,isRemotePlayer:e,restorePlayQueuePayload:a}})}var a=n(14),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=n.n(p),f=n(5),v=(n.n(f),
n(11)),m=n(137),g=n(81),y=n(231),b=n(42),S=n(533),I=n(532),M=n(58),C=n(109),w=n.i(f.createSelector)(function(e){return e.experienceSettings.restorePlayQueue},y.a,function(e){return e.user.id},function(e,t,n){var i=void 0;if(e&&e[n]&&(i=e[n]),i&&t[i.providerEntityID])return i}),D={dispatchRestorePlayQueue:C.r,dispatchEndPlayback:M.d},P=function(e){function t(){return o()(this,t),u()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.componentDidMount=function(){this._restorePlayQueue(),
this.props.isServerlessPlayer&&this.props.dispatchEndPlayback({playerType:this.props.playerType})},t.prototype.componentDidUpdate=function(e){this._restorePlayQueue(),this.props.isServerlessPlayer&&!e.isServerlessPlayer&&this.props.dispatchEndPlayback({playerType:this.props.playerType})},t.prototype._restorePlayQueue=function(){var e=this.props,t=e.playerType,i=e.isOpen,a=e.restorePlayQueuePayload,r=e.dispatchRestorePlayQueue;if(!i&&a){t===n.i(g.a)(a.playQueueType)&&r(a)}},
t.prototype.render=function(){var e=this.props,t=e.component,n=e.isServerlessPlayer,i=(e.restorePlayQueuePayload,e.dispatchRestorePlayQueue,e.dispatchEndPlayback,r()(e,["component","isServerlessPlayer","restorePlayQueuePayload","dispatchRestorePlayQueue","dispatchEndPlayback"]));return n?null:h.a.createElement(t,i)},t}(p.Component);t.a=n.i(v.b)(i,D)(P)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),
n(303)),h=n(50),f=n(4),v=n(254),m=function(e){function t(i,a){s()(this,t);var r=l()(this,e.call(this,i,a));return r.onPress=function(){r.setState(function(e,t){return{isMenuOpen:!e.isMenuOpen}},function(){r.props.onMenuChange&&r.props.onMenuChange(r.state.isMenuOpen)})},r.onMenuClose=function(){r.setState({isMenuOpen:!1},function(){r.props.onMenuChange&&r.props.onMenuChange(!1)})},r.state={isMenuOpen:!1},r._menuButtonID=n.i(h.a)(),r}return c()(t,e),t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,i=e.providerEntityID,r=e.metadataItemEntityID,s=e.isDisabled;return a()("span",{},void 0,a()(v.a,{id:this._menuButtonID,icon:"plex-icon-player-more-560",isDisabled:s,title:n.i(f.default)("More Actions"),onPress:this.onPress}),a()(p.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:r,target:this._menuButtonID,isOpen:this.state.isMenuOpen,showDelete:!1,showDeleteVersion:!1,showEdit:!1,showFixMatch:!1,showMarkUnwatched:!1,showMarkWatched:!1,
showMatch:!1,showOptimize:!1,showPlay:!1,showPlayAll:!1,showPlayMusicVideo:!1,showPlayPlexMix:!1,showPlayTrailer:!1,showPlayVersion:!1,showQueue:!1,showRecommend:!1,showRefresh:!1,showSelect:!1,showShare:!1,showShuffle:!1,showSplitApart:!1,showUnmatch:!1,showWatchLater:!1,onMenuClose:this.onMenuClose}))},t}(d.Component);t.a=m},function(e,t,n){"use strict";function i(e,t){var i=t.playerType;return{onModalClose:function(){e(n.i(l.t)({playerType:i}))}}}var a=n(5),r=(n.n(a),
n(11)),s=n(42),o=n(230),l=n(122),u=n(2450),c=n.i(a.createSelector)(n.i(s.a)(),n.i(o.a)(),function(e,t){var n={errorMessage:e.errorMessage,errorCode:e.errorCode,errorCategory:e.errorCategory};return t&&(n.title=t.title),n});t.a=n.i(r.b)(c,i)(u.a)},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),o.a,function(e,t){return{qualityIndex:e,volume:t}})}var a=n(11),r=n(5),s=(n.n(r),n(592)),o=n(432),l=n(1523);t.a=n.i(a.b)(i)(l.a)},function(e,t,n){"use strict"
;function i(e,t){var n={playerType:t.playerType};return{onPreviousShortcut:function(){e(C.b(n))},onStepBackShortcut:function(){e(M.a(n))},onSkipBackShortcut:function(){e(M.b(n))},onPlayPauseShortcut:function(){e(M.c(n))},onPlayShortcut:function(){e(M.d(n))},onPauseShortcut:function(){e(M.e(n))},onSkipForwardShortcut:function(){e(M.f(n))},onStepForwardShortcut:function(){e(M.g(n))},onNextShortcut:function(){e(C.c(n))},onVolumeChange:function(t){e(M.h(h()({},n,{volume:t})))},
onCloseConfirm:function(){e(I.d(n))}}}var a=n(2),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(6),h=n.n(p),f=n(0),v=(n.n(f),n(11)),m=n(5),g=(n.n(m),n(4)),y=n(15),b=n(34),S=n(432),I=n(58),M=n(122),C=n(109),w=n(127),D=n.i(m.createSelector)(S.a,function(e){return{volume:e}}),P=function(e){function t(n,i){o()(this,t);var a=u()(this,e.call(this,n,i));return a.onVolumeIncrease=function(){a.props.onVolumeChange(Math.min(a.props.volume+10,100))},a.onVolumeDecrease=function(){
a.props.onVolumeChange(Math.max(a.props.volume-10,0))},a.onCloseShortcut=function(){a.setState({isCloseConfirmModalOpen:!0})},a.onCloseConfirmPress=function(e){a.props.onCloseConfirm()},a.onCloseCancelPress=function(e){a.setState({isCloseConfirmModalOpen:!1})},a.state={isCloseConfirmModalOpen:!1},a}return d()(t,e),t.prototype.componentDidMount=function(){y.a.on({"shortcut:skipPrevious":this.props.onPreviousShortcut,"shortcut:stepBackward":this.props.onStepBackShortcut,
"shortcut:seekBackward":this.props.onSkipBackShortcut,"shortcut:playPause":this.props.onPlayPauseShortcut,"shortcut:play":this.props.onPlayShortcut,"shortcut:pause":this.props.onPauseShortcut,"shortcut:seekForward":this.props.onSkipForwardShortcut,"shortcut:stepForward":this.props.onStepForwardShortcut,"shortcut:skipNext":this.props.onNextShortcut,"shortcut:increaseVolume":this.onVolumeIncrease,"shortcut:decreaseVolume":this.onVolumeDecrease,
"shortcut:toggleFullScreen":this.props.onToggleFullscreenShortcut,"shortcut:stop":this.onCloseShortcut})},t.prototype.componentWillUnmount=function(){y.a.off({"shortcut:skipPrevious":this.props.onPreviousShortcut,"shortcut:stepBackward":this.props.onStepBackShortcut,"shortcut:seekBackward":this.props.onSkipBackShortcut,"shortcut:playPause":this.props.onPlayPauseShortcut,"shortcut:play":this.props.onPlayShortcut,"shortcut:pause":this.props.onPauseShortcut,
"shortcut:seekForward":this.props.onSkipForwardShortcut,"shortcut:stepForward":this.props.onStepForwardShortcut,"shortcut:skipNext":this.props.onNextShortcut,"shortcut:increaseVolume":this.onVolumeIncrease,"shortcut:decreaseVolume":this.onVolumeDecrease,"shortcut:toggleFullScreen":this.props.onToggleFullscreenShortcut,"shortcut:stop":this.onCloseShortcut})},t.prototype.render=function(){return r()(w.a,{isOpen:this.state.isCloseConfirmModalOpen,metricsPage:b.H,
title:n.i(g.default)("Stop Playback"),message:n.i(g.default)("Closing the player will stop playback. Any changes to the queue will be lost."),onConfirm:this.onCloseConfirmPress,onCancel:this.onCloseCancelPress})},t}(f.Component);t.a=n.i(v.b)(D,i)(P)},function(e,t,n){"use strict";function i(){return n.i(d.createSelector)(n.i(f.a)(),n.i(v.a)(),function(e,t){return t?{type:t.type,title:t.title,originalTitle:t.originalTitle,grandparentTitle:t.grandparentTitle,index:t.index,parentIndex:t.parentIndex,
originallyAvailableAt:t.originallyAvailableAt,isPaused:e.isPaused}:{}})}var a=n(7),r=n.n(a),s=n(9),o=n.n(s),l=n(8),u=n.n(l),c=n(0),d=(n.n(c),n(5)),p=(n.n(d),n(11)),h=n(30),f=n(42),v=n(230),m=n(279),g=function(e){function t(n,i){r()(this,t);var a=o()(this,e.call(this,n,i));return a.title=document.title,a}return u()(t,e),t.prototype.componentDidMount=function(){this._updateWindowTitle()},t.prototype.componentDidUpdate=function(){this._updateWindowTitle()},
t.prototype.componentWillUnmount=function(){document.title=this.title},t.prototype._updateWindowTitle=function(){var e=this.props,t=e.type,i=e.title,a=e.originalTitle,r=e.grandparentTitle,s=e.index,o=e.parentIndex,l=e.originallyAvailableAt,u=e.isPaused;if(i&&t){var c=void 0;if(t===h.l){c=r+" - "+n.i(m.a)({seasonIndex:o,episodeIndex:s,date:l,noLeadingZero:!0,separator:" \xb7 "})}else if(t===h.m){var d=a||r;c=d?d+" - "+i:i}else c=i;u||(c="\u25b6 "+c),document.title=c}},
t.prototype.render=function(){return null},t}(c.Component);t.a=n.i(p.b)(i)(g)},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),s=n.n(r),o=n(14),l=n.n(o),u=n(7),c=n.n(u),d=n(9),p=n.n(d),h=n(8),f=n.n(h),v=n(0),m=n.n(v),g=n(562),y=n(847),b=n(576),S=n(365),I=n(2456),M=n(2967),C=n.n(M),w=function(e){function t(n,i){c()(this,t);var a=p()(this,e.call(this,n,i));return a.onChange=function(e){var t=e.positionValue;a.props.onSeek({playerType:a.props.playerType,positionSeconds:Math.floor(t/1e3)})},
a.onMove=function(e){var t=e.positionValue,n=e.position;a.setState({hoverValue:t,portalPosition:n})},a.onMouseLeave=function(){a.setState({hoverValue:null})},a.state={hoverValue:null,portalPosition:{x:0,y:0}},a}return f()(t,e),t.prototype.render=function(){
var e=this.props,t=e.className,n=e.trackClassName,i=e.bufferClassName,r=e.fillClassName,o=e.canSeek,u=e.positionMilliseconds,c=e.offsetMilliseconds,d=e.durationMilliseconds,p=e.bufferStartMilliseconds,h=e.bufferEndMilliseconds,f=e.showBuffer,v=e.noFillTransition,g=l()(e,["className","trackClassName","bufferClassName","fillClassName","canSeek","positionMilliseconds","offsetMilliseconds","durationMilliseconds","bufferStartMilliseconds","bufferEndMilliseconds","showBuffer","noFillTransition"])
;if(!o)return null;var y=this.state,M=y.hoverValue,w=y.portalPosition;return s()("div",{onMouseLeave:this.onMouseLeave},void 0,s()(S.a,{className:t,trackClassName:n,secondaryFillClassName:(i||"")+" "+(v&&C.a.noFillTransition||""),fillClassName:(r||"")+" "+(v&&C.a.noFillTransition||""),value:u,min:c,max:d,secondaryMin:p,secondaryMax:h,showFill:!0,showSecondaryFill:f,autoHideThumb:!0,onChange:this.onChange,onMove:this.onMove}),null!=M&&s()(b.a,{},void 0,m.a.createElement(I.a,a()({},g,{position:w,
hoverValue:M}))))},t}(v.Component);w.defaultProps={className:C.a.seekBar,trackClassName:C.a.seekBarTrack,fillClassName:C.a.seekBarFill,bufferClassName:C.a.seekBarBuffer,showBuffer:!1,noFillTransition:n.i(g.a)()||n.i(y.a)()},t.a=w},function(e,t,n){"use strict";function i(e){return o.a.createElement(l.a,r()({},e,{type:"video",allowRecycleElement:!0}))}var a=n(6),r=n.n(a),s=n(0),o=n.n(s),l=n(1032),u=n(2969),c=n.n(u);i.defaultProps={className:c.a.videoElement,containerClassName:c.a.videoContainer},
t.a=i},function(e,t,n){"use strict";function i(){return n.i(s.createSelector)(n.i(o.a)(),n.i(l.a)(),function(e,t){if(!t)return{};var n=e.serverEntityID,i=e.providerEntityID,a=e.isPaused,r=e.playQueue,s=r.playQueueItems,o=r.currentIndex;return{serverEntityID:n,providerEntityID:i,playQueueItemEntityID:t.entityID,metadataItemEntityID:t.metadataItem,isPaused:a,disablePreviousButton:o<=0,disableNextButton:o>=s.length-1}})}function a(e,t){var n=t.playerType;return{onExpandPress:function(){e(p.a({
playerType:n}))},onPreviousPress:function(){e(d.b({playerType:n}))},onPlayPausePress:function(){e(c.c({playerType:n}))},onNextPress:function(){e(d.c({playerType:n}))},onClosePress:function(){e(u.d({playerType:n}))}}}var r=n(11),s=n(5),o=(n.n(s),n(42)),l=n(85),u=n(58),c=n(122),d=n(109),p=n(399),h=n(2461);t.a=n.i(r.b)(i,a)(h.a)},function(e,t,n){"use strict";function i(){return n.i(s.createSelector)(n.i(o.a)(),function(e){return{metadataItemEntityID:e.metadataItem}})}function a(){
return n.i(s.createSelector)(n.i(l.a)(),function(e){return{url:e.url}})}var r=n(11),s=n(5),o=(n.n(s),n(531)),l=n(781),u=n(2478),c=n.i(r.b)(a)(u.a);t.a=n.i(r.b)(i)(c)},function(e,t,n){"use strict";function i(){return n.i(c.createSelector)(n.i(d.a)(),function(e){var t=e.metadataItem;return{metadataItemEntityID:t,isMetadataItem:!!t}})}function a(e){var t=e.component,n=s()(e,["component"]);return l.a.createElement(t,n)}var r=n(14),s=n.n(r),o=n(0),l=n.n(o),u=n(11),c=n(5),d=(n.n(c),n(294))
;t.a=n.i(u.b)(i)(a)},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(s.a,o.a,n.i(l.a)(),n.i(u.a)(),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3],a=i||n.tagItem;return{server:e,provider:t,reasonID:n.reasonID,reason:n.reason,reasonTitle:n.reasonTitle,originalTitle:a.originalTitle,filter:a.filter,librarySectionID:a.librarySectionID,librarySectionKey:a.librarySectionKey,librarySectionType:a.librarySectionType}})}
var a=n(11),r=n(5),s=(n.n(r),n(45)),o=n(43),l=n(294),u=n(21),c=n(2501);t.a=n.i(a.b)(i)(c.a)},function(e,t,n){"use strict";function i(){return n.i(p.createSelector)(h.a,f.a,n.i(v.a)(),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=l.a.pick(n.tagItem,"id","tag","tagType","librarySectionType","librarySectionKey");return s()({server:e,provider:t,reasonID:n.reasonID},i)})}function a(e){return c.a.createElement(m.a,e)}
var r=n(6),s=n.n(r),o=n(3),l=n.n(o),u=n(0),c=n.n(u),d=n(11),p=n(5),h=(n.n(p),n(45)),f=n(43),v=n(294),m=n(2504);t.a=n.i(d.b)(i)(a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children,i=e.icon,a=e.title,s=e.showSpinner,l=u()(e,["className","children","icon","title","showSpinner"]);return d.a.createElement(f.a,r()({className:t},l),o()("div",{className:m.a.container},void 0,o()("div",{className:m.a.icon},void 0,s?o()(h.a,{className:m.a.spinner}):o()(p.a,{name:i})),o()("div",{
className:m.a.title},void 0,a),n&&o()("div",{className:m.a.children},void 0,n)))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(27),h=n(38),f=n(23),v=n(2997),m=n.n(v);i.defaultProps={className:m.a.sidebarLink},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children;return r()("div",{className:t},void 0,n)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2999)),l=n.n(o);i.defaultProps={className:l.a.sidebarListItem},t.a=i},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(26),f=n(27),v=n(3003),m=n.n(v),g=function(e){function t(){return s()(this,t),l()(this,e.apply(this,arguments))}return c()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(h.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.className,i=e.isConnected,r=e.isUnavailable,s=e.isSecure;return e.isRelayed?a()(f.a,{className:(t||"")+" "+(m.a.warningIcon||""),
name:"plex-icon-alert-round-560","aria-label":n.i(p.default)("Indirect")}):r?a()(f.a,{className:(t||"")+" "+(m.a.alertIcon||""),name:"plex-icon-alert-560","aria-label":n.i(p.default)("Unavailable")}):s&&i?a()(f.a,{className:(t||"")+" "+(m.a.secureIcon||""),name:"plex-icon-lock-560","aria-label":n.i(p.default)("Secure")}):null},t}(d.Component);t.a=g},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),
n(26)),h=n(144),f=n(1101),v=n.n(f),m=function(e){function t(){return s()(this,t),l()(this,e.apply(this,arguments))}return c()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(p.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,i=e.to,r=e.isDisabled,s=e.machineIdentifier,o=e.title,l=e.details,u=e.onPress;return a()(h.a,{className:(n||"")+" "+(v.a.serverMenuItem||""),"data-qa-id":"serverMenuItem--"+s,to:i,isDisabled:r,onPress:u
},void 0,a()("div",{className:v.a.serverMenuItemContainer},void 0,a()("div",{className:v.a.serverMenuTitle},void 0,a()("div",{className:v.a.serverMenuFriendlyName},void 0,o),a()("div",{className:v.a.serverMenuDetails},void 0,l)),a()("div",{className:v.a.serverMenuIconContainer},void 0,t)))},t}(d.Component);t.a=m},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(14),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(23),m=n(27),g=n(3004),y=n.n(g),b=function(e){
function t(){return l()(this,t),c()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.render=function(){var e=this.props,t=e.icon,n=e.title,i=s()(e,["icon","title"]);return f.a.createElement(v.a,i,a()(m.a,{name:t,label:n}))},t}(h.Component);b.defaultProps={className:y.a.sidebarIconButton},t.a=b},function(e,t,n){"use strict";function i(e){var t=e.img,n=e.title,i=e.description;return r()("div",{className:l.a.feature},void 0,r()("div",{className:l.a.featurePadding},void 0,r()("img",{
className:l.a.featureImage,src:t}),r()("div",{className:l.a.featureContainer},void 0,r()("div",{className:l.a.featureTitle},void 0,n),r()("div",{className:l.a.featureDescription},void 0,i))))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(3011)),l=n.n(o);t.a=i},function(e,t,n){"use strict";function i(e){var t=function(t){function n(e,i){o()(this,n);var a=u()(this,t.call(this,e,i));return a.onMouseMove=function(e){a._setHoveredState(!0),a.props.onMouseMove&&a.props.onMouseMove(e)},
a.onMouseLeave=function(e){a._setHoveredState(!1),a.props.onMouseLeave&&a.props.onMouseLeave(e)},a.onFocus=function(e){a._setHoveredState(!0),a.props.onFocus&&a.props.onFocus(e)},a.onBlur=function(e){a._setHoveredState(!1),a.props.onBlur&&a.props.onBlur(e)},a.state={isHovered:!1},a._hoverableProps={onMouseMove:a.onMouseMove,onMouseLeave:a.onMouseLeave,onFocus:a.onFocus,onBlur:a.onBlur},a}return d()(n,t),n.prototype._setHoveredState=function(e){this.state.isHovered!==e&&this.setState({isHovered:e
})},n.prototype.render=function(){return h.a.createElement(e,r()({},this.props,{isHovered:this.state.isHovered,hoverableProps:this._hoverableProps}))},n}(p.Component);return t.displayName="Hoverable("+n.i(f.a)(e)+")",t.WrappedComponent=e,t}var a=n(6),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=n.n(p),f=n(211);p.PropTypes.shape({onMouseMove:p.PropTypes.func.isRequired,onMouseLeave:p.PropTypes.func.isRequired,onFocus:p.PropTypes.func.isRequired,
onBlur:p.PropTypes.func.isRequired}).isRequired,p.PropTypes.bool.isRequired;t.a=i},function(e,t,n){"use strict";var i=n(1107),a=n.n(i);n.d(t,"b",function(){return r}),n.d(t,"a",function(){return s});var r=a.a.Linear.easeNone,s=a.a.Power3.easeOut},function(e,t,n){"use strict";function i(e){if(!e)return n.i(d.default)("Username is required")}function a(e){if(!e)return n.i(d.default)("Email address is required")}function r(e){if(!e)return n.i(d.default)("Password is required")}function s(e){
if(!e)return n.i(d.default)("Password confirmation is required")}function o(e){if(!e)return n.i(d.default)("Current password is required")}function l(e){if(e&&e.length<8)return n.i(d.default)("Password must be at least 8 characters")}function u(e,t){if(e!==t.password.value)return n.i(d.default)("Passwords must match")}function c(e){if(!e)return n.i(d.default)("URL is required")}var d=n(4);t.b=i,t.c=a,t.d=r,t.f=s,t.h=o,t.e=l,t.g=u,t.a=c},function(e,t,n){"use strict";function i(e){
return e===o.a?s()({},y,{outerPaddingTop:10,outerPaddingRight:m,outerPaddingBottom:5,outerPaddingLeft:m}):y}function a(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=e+t+a+r;if(g.hasOwnProperty(o))return g[o];var u=n.i(d.b)(e,t),c="mixed"===e?r+3:r,m=c*f+v,y=u>1?180:120,b=i(t),S=n.i(l.a)(s()({direction:l.c},b,{getCellWidth:function(e){return n.i(p.a)(s()({},e,{minCellWidth:y,minColumns:2,maxColumns:11,
columnAdjustment:a,aspectRatio:u}))},getCellHeight:function(e){return n.i(h.a)(s()({},e,{aspectRatio:u,titleHeight:m}))}}));return S.cellOptions={minCellWidth:y,minColumns:2,maxColumns:11,columnAdjustment:a,aspectRatio:u,titleHeight:m},g[o]=S,S}var r=n(6),s=n.n(r),o=n(32),l=n(578),u=n(57),c=n.n(u),d=n(132),p=n(1054),h=n(1053);t.a=a;var f=parseInt(c.a.posterTitleHeight,10),v=parseInt(c.a.posterTitlePadding,10),m=parseInt(c.a.prePlayContentPadding,10),g={},y={innerHorizontalPadding:30,
innerVerticalPadding:30,outerPaddingTop:30,outerPaddingRight:60,outerPaddingBottom:30,outerPaddingLeft:60}},function(e,t,n){"use strict";function i(e){function t(e){var t=e.viewportWidth+":"+e.viewportHeight;if(t===T)return x;E=e.viewportHeight;var n=e.viewportWidth-2*g,i=h.reduce(function(e,t){return e+t.height},0);N=n/d,L=I?(I-g)/i:N;var a=L*i;return T=t,x={height:a,width:n}}function i(e){n.i(l.a)(void 0!==E,"`getListStyle` must be called before `getPositionForIndex`")
;var t=o.a.find(w,function(t){var n=t.last;return e<=n}),i=o.a.find(t.cellLayouts,function(t){return t.cellIndex===e});return{cellX:Math.round(i.left*N)+b+g,cellY:Math.round(t.top*L)+b+g,cellWidth:Math.round(i.width*N)-2*b,cellHeight:Math.round(t.height*L)-2*b}}function a(){n.i(l.a)(!1,"Mosaic layouts do not support relative indexing")}function s(e){return e<0?w[0]:o.a.find(w,function(t){var n=t.bottom;return e<g+(n+1)*L})||o.a.last(w)}function u(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;n.i(l.a)(void 0!==E,"`getListStyle` must be called before `getRangesForPosition`");var t=e+E-1,i=e-v*E,a=t+v*E,r=s(i).first,o=s(a).last,u=s(e).first,c=s(t).last;return{renderStartIndex:r,renderEndIndex:o,visibleStartIndex:u,visibleEndIndex:c,partiallyVisibleStartIndex:u,partiallyVisibleEndIndex:c}}
var c=e.columns,d=void 0===c?1:c,p=e.rows,h=void 0===p?[]:p,f=e.overscan,v=void 0===f?0:f,m=e.outerPadding,g=void 0===m?0:m,y=e.innerPadding,b=void 0===y?0:y,S=e.maximumHeight,I=void 0===S?0:S,M=e.offset,C=void 0===M?0:M,w=[],D=0,P=C;h.forEach(function(e){var t=D;D+=e.height;var n=D-1,i=P;P+=e.widths.length;var a=P-1,s=[],o=0;e.widths.forEach(function(e,t){var n=o;o+=e,s.push({width:e,left:n,cellIndex:i+t})}),w.push(r()({},e,{top:t,bottom:n,first:i,last:a,cellLayouts:s}))})
;var T=void 0,x=void 0,E=void 0,N=void 0,L=void 0;return{getListStyle:t,getPositionForIndex:i,getRangesForPosition:u,getRelativeIndex:a}}var a=n(6),r=n.n(a),s=n(3),o=n.n(s),l=n(31);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.cellWidth,n=e.aspectRatio,i=e.titleHeight,a=void 0===i?0:i;return Math.floor(t/n+a)}t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.innerViewportWidth,n=e.innerHorizontalPadding,i=void 0===n?0:n,a=e.minCellWidth,r=e.minColumns,s=void 0===r?0:r,o=e.maxColumns,l=void 0===o?1/0:o,u=e.columnAdjustment,c=void 0===u?0:u,d=Math.floor((t+i)/(a+i)),p=void 0;return p=d<s?s:d>l?l:d,p=Math.max(p+c,1),Math.max(Math.floor((t+i)/p)-i,0)}t.a=i},function(e,t,n){"use strict";function i(e){return Math.abs(e.actual-e.desired)/e.actual}function a(e){return 0===e.cells.length?1/0:e.cells.reduce(function(e,t){return e+i(t)
},0)/e.cells.length+Math.abs(e.scale-1)}function r(e,t){var n=e.cells,i=n.reduce(function(e,t){return e+t.desired},0),a=t/i;return{scale:a,cells:n.map(function(e){var t=e.desired;return{desired:t,actual:t*a}})}}function s(e){var t=e.aspectRatios,n=e.columns,i=void 0===n?4:n,s=e.minAspectRatio,o=void 0===s?.4:s,l=e.maxAspectRatio,u=void 0===l?5:l,c=t.map(function(e){return Math.max(o,Math.min(u,e))}),d=[],p={scale:null,cells:[]};c.forEach(function(e){var t={desired:e},n={scale:0,
cells:p.cells.slice(0)};n.cells.push(t),n=r(n,i),a(n)<=a(p)?p=n:(d.push(p),p=r({scale:0,cells:[t]},i))});var h=1/Math.max(1,p.scale);return p.scale=Math.min(1,p.scale),p.cells=p.cells.map(function(e){return{desired:e.desired,actual:e.actual*h}}),d.push(p),d.map(function(e){return{height:e.scale,widths:e.cells.map(function(e){return e.actual})}})}t.a=s},function(e,t,n){"use strict";var i=n(466),a=n(57),r=n.n(a),s=parseInt(r.a.summaryCellHeight,10),o=n.i(i.a)(s,5);t.a=o},function(e,t,n){
"use strict";function i(e,t){var n=t*-1+1,i=n/30+s,a=e*i;return Math.max(Math.min(a,l+30*n),o)}var a=n(57),r=n.n(a),s=parseFloat(r.a.prePlayPosterWidthRatio,10),o=parseInt(r.a.prePlayPosterMinWidth,10),l=parseInt(r.a.prePlayPosterMaxWidth,10);t.a=i},function(e,t,n){"use strict";function i(e){return ae[e]}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n.keys;if(a&&a.length){return i(e).reduce(function(e,t){return a.indexOf(t.key)!==-1&&e.push(t),e},[])}
switch(t){case s.a:switch(e){case"season":return[A,B,X,V];case"episode":return[K,L,V];case"album":return[L,B,V];case"track":return[U,Q]}}switch(e){case"movie":return[L,B,W,G];case"show":return[L,B,q,Z];case"season":return[A,k];case"episode":return[L,_,G];case"artist":return[L];case"album":return[L,O,B];case"track":return[L,j,z,Y];case"photo":return[L];case"photoalbum":return[L];case"clip":return[L]}return[]}
var r=n(4),s=n(32),o=n(2144),l=n(372),u=n(250),c=n(2175),d=n(2151),p=n(453),h=n(624),f=n(374),v=n(2153),m=n(976),g=n(981),y=n(2169),b=n(2167),S=n(633),I=n(628),M=n(2179),C=n(2182),w=n(625),D=n(978),P=n(982),T=n(2172),x=n(2149);t.b=i,t.a=a;var E={flex:"2 1 350px"},N={flex:"0 1 200px"},L={key:"title",ascKey:"titleSort",descKey:"titleSort:desc",title:function(e){switch(e){case"movie":return n.i(r.default)("Movie Title");case"show":return n.i(r.default)("Show Title");case"episode":
return n.i(r.default)("Episode Title");case"artist":return n.i(r.default)("Artist Title");case"album":return n.i(r.default)("Album Title");case"track":return n.i(r.default)("Track Title");default:return n.i(r.default)("Title")}},component:o.a,style:E},A={key:"season",ascKey:"season.index,season.titleSort",descKey:"season.index:desc,season.titleSort",title:function(){return n.i(r.default)("Season")},component:o.a,style:E},k={key:"seasonShow",ascKey:"show.titleSort,index",
descKey:"show.titleSort:desc,index",title:function(){return n.i(r.default)("Show")},component:l.a,style:E},_={key:"episodeShow",ascKey:"show.titleSort,season.index:nullsLast,episode.index:nullsLast,episode.originallyAvailableAt:nullsLast,episode.titleSort,episode.id",descKey:"show.titleSort:desc,season.index:nullsLast,episode.index:nullsLast,episode.originallyAvailableAt:nullsLast,episode.titleSort,episode.id",title:function(){return n.i(r.default)("Show")},component:u.a,style:E},O={
key:"albumArtist",ascKey:"artist.titleSort,album.titleSort,album.index,album.id,album.originallyAvailableAt",descKey:"artist.titleSort:desc,album.titleSort,album.index,album.id,album.originallyAvailableAt",title:function(){return n.i(r.default)("Album Artist")},component:l.a,style:E},j={key:"trackAlbumArtist",ascKey:"artist.titleSort,album.titleSort,album.year,track.absoluteIndex,track.index,track.titleSort,track.id",
descKey:"artist.titleSort:desc,album.titleSort,album.year,track.absoluteIndex,track.index,track.titleSort,track.id",title:function(){return n.i(r.default)("Album Artist")},component:u.a,style:E},R={key:"trackArtist",title:function(){return n.i(r.default)("Artist")},ascKey:"originalTitle",descKey:"originalTitle:desc",component:c.a,style:E},U={key:"combinedTitleTrackArtist",ascKey:"titleSort",descKey:"titleSort:desc",title:function(){return n.i(r.default)("Track Title")},component:d.a,style:E},z={
key:"trackAlbum",ascKey:"album.titleSort",descKey:"album.titleSort:desc",title:function(){return n.i(r.default)("Album")},component:l.a,style:E},B={key:"year",ascKey:"year",descKey:"year:desc",title:function(){return n.i(r.default)("Year")},component:p.a,style:{flex:"0 1 150px"}},F={key:"criticRating",ascKey:"rating",descKey:"rating:desc",title:function(){return n.i(r.default)("Critic Rating")},component:h.a,style:{flex:"0 0 150px"}},V={key:"userRating",ascKey:"userRating",
descKey:"userRating:desc",title:function(){return n.i(r.default)("Rating")},component:f.a,style:{flex:"0 0 115px"}},Q={key:"miniUserRating",ascKey:"userRating",descKey:"userRating:desc",title:function(){return n.i(r.default)("Rating")},component:f.a,style:{flex:"0 0 75px",padding:0}},H={key:"contentRating",ascKey:"contentRating",descKey:"contentRating:desc",title:function(){return n.i(r.default)("Content Rating")},component:v.a,style:{flex:"0 0 150px"}},W={key:"duration",ascKey:"duration",
descKey:"duration:desc",title:function(){return n.i(r.default)("Duration")},component:m.a,style:{flex:"0 1 150px"}},Y={key:"playerDuration",ascKey:"duration",descKey:"duration:desc",title:function(){return n.i(r.default)("Duration")},component:g.a,style:{flex:"0 1 150px"}},G={key:"progress",ascKey:"viewOffset",descKey:"viewOffset:desc",title:function(){return n.i(r.default)("Progress")},component:y.a,style:{flex:"0 1 150px"}},K={key:"miniProgress",ascKey:"viewOffset",descKey:"viewOffset:desc",
title:function(){return n.i(r.default)("Progress")},component:b.a,style:{flex:"0 0 25px",paddingLeft:"10px",paddingRight:0}},q={key:"seasonCount",ascKey:"childCount",descKey:"childCount:desc",title:function(){return n.i(r.default)("Seasons")},component:S.a,style:{flex:"0 1 150px"}},X={key:"seasonCount",ascKey:"childCount",descKey:"childCount:desc",title:function(){return n.i(r.default)("Episodes")},component:I.a,style:{flex:"0 1 150px"}},Z={key:"unwatchedCount",ascKey:"unviewedLeafCount",
descKey:"unviewedLeafCount:desc",title:function(){return n.i(r.default)("Unwatched")},component:M.a,style:{flex:"0 1 150px"}},J={key:"playCount",ascKey:"viewCount",descKey:"viewCount:desc",title:function(){return n.i(r.default)("Plays")},component:C.a,style:{flex:"0 1 150px"}},$={key:"dateAdded",ascKey:"addedAt",descKey:"addedAt:desc",title:function(){return n.i(r.default)("Date Added")},component:w.a,style:N},ee={key:"dateViewed",ascKey:"lastViewedAt",descKey:"lastViewedAt:desc",
title:function(){return n.i(r.default)("Date Viewed")},component:D.a,style:N},te={key:"releaseDate",ascKey:"originallyAvailableAt",descKey:"originallyAvailableAt:desc",title:function(e){switch(e){case"movie":return n.i(r.default)("Release Date");case"show":return n.i(r.default)("Air Date");case"episode":return n.i(r.default)("Air Date");case"album":return n.i(r.default)("Release Date");default:return n.i(r.default)("Release Date")}},component:P.a,style:N},ne={key:"resolution",
ascKey:"mediaHeight",descKey:"mediaHeight:desc",title:function(){return n.i(r.default)("Resolution")},component:T.a,style:{flex:"0 1 150px"}},ie={key:"bitrate",ascKey:"mediaBitrate",descKey:"mediaBitrate:desc",title:function(){return n.i(r.default)("Bitrate")},component:x.a,style:{flex:"0 1 150px"}},ae={movie:[L,B,F,V,H,W,G,J,$,ee,te,ne,ie],show:[L,B,F,V,H,q,Z,$,ee,te],season:[A,k,V,$],episode:[L,_,B,F,V,W,G,J,$,ee,te,ne,ie],artist:[L,V,$],album:[L,O,B,F,V,$,te],track:[L,j,R,z,B,V,Y,G,J,$,ie]}
},function(e,t,n){"use strict";function i(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.type,l=i.key;return o!==a.m&&o!==a.h||(l=i.skipParent?i.grandparentKey:i.parentKey),!l&&i.librarySectionID?n.i(s.a)(e,t,i.librarySectionID):n.i(r.a)(e,t,l,null,o)}var a=n(30),r=n(118),s=n(96);t.a=i},function(e,t,n){"use strict";function i(e,t,n,i){if(e&&t&&t.isLibraryProvider&&n){
var r=encodeURIComponent(e.machineIdentifier),s="/"===String(n).charAt(0),o=s?n:"/library/sections/"+n,l=encodeURIComponent(o);return a.join("#!/server/"+r+"/timeline?key="+l,i)}}var a=n(19);t.a=i},function(e,t,n){"use strict";function i(e,t){if(!e||null==t)return!1;if(e===r&&a.hasOwnProperty(t))return a[t];e!==r&&(r=e,a={});var n=e.indexOf(t)!==-1;return a[t]=n,n}t.a=i;var a={},r=void 0},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a})
;var i="minor",a="major"},function(e,t){e.exports={defaultColor:"#fff",quietColor:"#a8a8a8",inverseColor:"#222",primaryColor:"#cc7b19",primaryAlternateColor:"#e5a00d",selectedColor:"#f9be03",successColor:"#6b5",dangerColor:"#f53",warningColor:"#f0ad4e",appBackgroundColor:"#3f4245",defaultLinkColor:"rgba(255, 255, 255, 0.7)",defaultLinkHoverColor:"#fff",defaultLinkDisabledLinkColor:"rgba(255, 255, 255, 0.3)",defaultBackgroundColor:"rgba(255, 255, 255, 0.25)",
defaultHoverBackgroundColor:"rgba(255, 255, 255, 0.3)",defaultActiveBackgroundColor:"rgba(255, 255, 255, 0.2)",defaultDisabledBackgroundColor:"rgba(255, 255, 255, 0.15)",primaryBackgroundColor:"#cc7b19",primaryHoverBackgroundColor:"color(#cc7b19 lightness(+5%))",primaryActiveBackgroundColor:"color(#cc7b19 blackness(+10%))",primaryDisabledBackgroundColor:"color(#cc7b19 blackness(+30%))",quietBackgroundColor:"rgba(255, 255, 255, 0.08)",quietHoverBackgroundColor:"rgba(255, 255, 255, 0.1)",
quietActiveBackgroundColor:"rgba(255, 255, 255, 0.06)",successBackgroundColor:"#3d7832",successHoverBackgroundColor:"color(#3d7832 lightness(+5%))",successActiveBackgroundColor:"color(#3d7832 blackness(+10%))",successDisabledBackgroundColor:"color(#3d7832 blackness(+30%))",dangerBackgroundColor:"#b32",dangerHoverBackgroundColor:"color(#b32 lightness(+5%))",dangerActiveBackgroundColor:"color(#b32 blackness(+10%))",dangerDisabledBackgroundColor:"color(#b32 blackness(+30%))",
headerColor:"rgba(255, 255, 255, 0.3)",dimColor:"rgba(255, 255, 255, 0.45)",shadowColor:"rgba(0, 0, 0, 0.35)",dividerColor:"rgba(0, 0, 0, 0.3)",errorBackgroundColor:"rgba(255, 85, 51, 0.3)",inputBackgroundColor:"rgba(255, 255, 255, 0.25)",inputFocusBackgroundColor:"#eee",inputColor:"#eee",inputFocusColor:"#555",inputPlaceholderColor:"#afb0b1",inputDisabledOpacity:"0.5",formSectionBackgroundColor:"rgba(0, 0, 0, 0.3)",formSectionHoverBackgroundColor:"rgba(0, 0, 0, 0.15)",
stripeListAlternateBackgroundColor:"rgba(255, 255, 255, 0.02)",stripeListHoverBackgroundColor:"rgba(255, 255, 255, 0.06)",stripeListSelectedBackgroundColor:"rgba(0, 0, 0, 0.15)",dragPreviewBackgroundColor:"rgba(76, 76, 76, 0.7)",dragPreviewOpacity:"0.9",searchInputBackgroundColor:"rgba(255, 255, 255, 0.25)",searchFocusBackgroundColor:"#eee",searchInputColor:"#eee",searchInputFocusColor:"#555",searchImagePlaceholderBackgroundColor:"rgba(255, 255, 255, 0.1)",
searchHoverResultBackgroundColor:"rgba(255, 255, 255, 0.05)",searchSelectedResultBackgroundColor:"rgba(255, 255, 255, 0.08)",searchResultTitleColor:"rgba(255, 255, 255, 0.75)",searchResultTitleSelectedColor:"rgba(255, 255, 255, 1)",searchResultSecondaryTitleColor:"rgba(255, 255, 255, 0.3)",scrollbarBackgroundColor:"rgba(255, 255, 255, 0.2)",scrollbarHoverBackgroundColor:"rgba(255, 255, 255, 0.3)",scrollbarInactiveBackgroundColor:"rgba(255, 255, 255, 0.05)",menuBackgroundColor:"#191a1c",
menuItemHoverBackgroundColor:"rgba(255, 255, 255, 0.08)",menuItemActiveBackgroundColor:"rgba(255, 255, 255, 0.15)",menuSeparatorBackgroundColor:"rgba(200, 200, 200, 0.15)",modalBackdropBackgroundColor:"rgba(102, 102, 102, 0.6)",modalBackgroundColor:"#2d2d2d",sliderTrackBackgroundColor:"rgba(255, 255, 255, 0.2)",sliderThumbBackgroundColor:"#ddd",sliderThumbHoverBackgroundColor:"#fff",avatarBackgroundColor:"#999",tooltipBackgroundColor:"#191a1c",badgeBackgroundColor:"rgba(0, 0, 0, 0.15)",
defaultBadgeColor:"rgba(255, 255, 255, 0.7)",sidebarBackgroundColor:"rgba(0, 0, 0, 0.15)",sidebarMenuButtonBackgroundColor:"rgba(0, 0, 0, 0.3)",sidebarMenuButtonHoverBackgroundColor:"rgba(0, 0, 0, 0.45)",sidebarMenuButtonActiveBackgroundColor:"rgba(0, 0, 0, 0.75)",detailsBackgroundColor:"rgba(0, 0, 0, 0.15)",detailsShadowColor:"#000",playerBackgroundColor:"#232426",playerTopControlsBackgroundColor:"rgba(35, 36, 38, 0.45)",miniPlayerBackgroundColor:"rgba(0, 0, 0, 0.3)",
playerPlaceholderColor:"rgba(0, 0, 0, 0.3)",playerOverlayColor:"rgba(0, 0, 0, 0.8)",playerSecondaryOverlayColor:"rgba(0, 0, 0, 0.4)",playerPosterActionColor:"rgba(0, 0, 0, 0.15)",playerPanelColor:"rgba(0, 0, 0, 0.6)",playerDisabledLinkColor:"rgba(255, 255, 255, 0.15)",playerShadowColor:"rgba(0, 0, 0, 0.45)",seekBarThumbnailBackgroundColor:"rgba(0, 0, 0, 0.45)",seekBarThumbnailShadowColor:"rgba(0, 0, 0, 0.45)",seekBarTooltipBackgroundColor:"#000",seekBarTooltipShadowColor:"rgba(0, 0, 0, 0.5)",
equalizerBarColor:"#f9be03",posterBackgroundColor:"rgba(0, 0, 0, 0.45)",posterHoverBackgroundColor:"radial-gradient(farthest-corner at 50% 50%, rgba(50, 50, 50, 0.5) 50%, rgb(50, 50, 50) 100%)",posterSelectedBackgroundColor:"rgba(30, 30, 30, 0.5)",posterBlendedSelectedBackgroundColor:"rgba(19, 19, 19, 0.78);",posterPlaceholderIconColor:"rgba(255, 255, 255, 0.15)",posterCenterCircleBackgroundColor:"rgba(0, 0, 0, 0.45)",posterBadgeShadowColor:"rgba(0, 0, 0, 0.6)",
posterProgressTrackBackgroundColor:"rgba(0, 0, 0, 0.75)",posterVersionBadgeColor:"#556688",posterSmartBadgeColor:"rgb(142, 97, 145)",recordColor:"#f53",recordHoverColor:"color(#f53 lightness(+5%))",recordBackgroundColor:"#b32",recordActiveBackgroundColor:"color(#b32 blackness(+10%))",dayOfWeekBackgroundColor:"rgba(255, 255, 255, 0.1)",dayOfWeekColor:"rgba(255, 255, 255, 0.75)",todayBackgroundColor:"rgba(255, 255, 255, 0.3)",todayColor:"rgba(255, 255, 255, 0.1)",
calendarEventSuccessBackgroundColor:"rgba(0, 102, 153, 0.15)",calendarEventSuccessAlternateBackgroundColor:"rgba(31, 120, 165, 0.17)",calendarEventSuccessHoverBackgroundColor:"rgba(76, 148, 183, 0.20)",calendarEventErrorBackgroundColor:"rgba(187, 51, 34, 0.3)",calendarEventErrorAlternateBackgroundColor:"rgba(191, 64, 48, 0.31)",calendarEventErrorHoverBackgroundColor:"rgba(199, 87, 73, 0.34)",recordingIconColor:"#ff5533",playColor:"rgba(255, 255, 255, 0.75)",
filterBuilderInputBackgroundColor:"rgba(0, 0, 0, 0.6)",altFilterBuilderInputBackgroundColor:"rgba(0, 0, 0, 0.3)",dvrBackgroundColor:"rgba(0, 0, 0, 0.15)"}},function(e,t,n){e.exports={default:n(2592),__esModule:!0}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var i=n(2594);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:
return function(n,i,a){return e.call(t,n,i,a)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var i=n(314),a=n(163).document,r=i(a)&&i(a.createElement);e.exports=function(e){return r?a.createElement(e):{}}},function(e,t,n){e.exports=!n(312)&&!n(259)(function(){return 7!=Object.defineProperty(n(1067)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(1065);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)
}},function(e,t,n){"use strict";var i=n(670),a=n(147),r=n(1076),s=n(313),o=n(260),l=n(669),u=n(2601),c=n(673),d=n(1073),p=n(317)("iterator"),h=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,n,v,m,g,y){u(n,t,v);var b,S,I,M=function(e){if(!h&&e in P)return P[e];switch(e){case"keys":return function(){return new n(this,e)};case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}
},C=t+" Iterator",w="values"==m,D=!1,P=e.prototype,T=P[p]||P["@@iterator"]||m&&P[m],x=T||M(m),E=m?w?M("entries"):x:void 0,N="Array"==t?P.entries||T:T;if(N&&(I=d(N.call(new e)))!==Object.prototype&&(c(I,C,!0),i||o(I,p)||s(I,p,f)),w&&T&&"values"!==T.name&&(D=!0,x=function(){return T.call(this)}),i&&!y||!h&&!D&&P[p]||s(P,p,x),l[t]=x,l[C]=f,m)if(b={values:w?x:M("values"),keys:g?x:M("keys"),entries:E},y)for(S in b)S in P||r(P,S,b[S]);else a(a.P+a.F*(h||D),t,b);return b}},function(e,t,n){
var i=n(471),a=n(472),r=n(261),s=n(678),o=n(260),l=n(1068),u=Object.getOwnPropertyDescriptor;t.f=n(312)?u:function(e,t){if(e=r(e),t=s(t,!0),l)try{return u(e,t)}catch(e){}if(o(e,t))return a(!i.f.call(e,t),e[t])}},function(e,t,n){var i=n(1074),a=n(668).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,a)}},function(e,t,n){var i=n(260),a=n(473),r=n(674)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=a(e),
i(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){var i=n(260),a=n(261),r=n(2596)(!1),s=n(674)("IE_PROTO");e.exports=function(e,t){var n,o=a(e),l=0,u=[];for(n in o)n!=s&&i(o,n)&&u.push(n);for(;t.length>l;)i(o,n=t[l++])&&(~r(u,n)||u.push(n));return u}},function(e,t,n){var i=n(147),a=n(119),r=n(259);e.exports=function(e,t){var n=(a.Object||{})[e]||Object[e],s={};s[e]=t(n),i(i.S+i.F*r(function(){n(1)
}),"Object",s)}},function(e,t,n){e.exports=n(313)},function(e,t,n){var i=n(147),a=n(470),r=n(259),s=n(676),o="["+s+"]",l="\u200b\x85",u=RegExp("^"+o+o+"*"),c=RegExp(o+o+"*$"),d=function(e,t,n){var a={},o=r(function(){return!!s[e]()||l[e]()!=l}),u=a[e]=o?t(p):s[e];n&&(a[n]=u),i(i.P+i.F*o,"String",a)},p=d.trim=function(e,t){return e=String(a(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(c,"")),e};e.exports=d},function(e,t,n){"use strict"
;var i=n(163),a=n(260),r=n(312),s=n(147),o=n(1076),l=n(2604).KEY,u=n(259),c=n(675),d=n(673),p=n(474),h=n(317),f=n(680),v=n(679),m=n(2603),g=n(2597),y=n(2599),b=n(379),S=n(261),I=n(678),M=n(472),C=n(671),w=n(2607),D=n(1071),P=n(315),T=n(316),x=D.f,E=P.f,N=w.f,L=i.Symbol,A=i.JSON,k=A&&A.stringify,_=h("_hidden"),O=h("toPrimitive"),j={}.propertyIsEnumerable,R=c("symbol-registry"),U=c("symbols"),z=c("op-symbols"),B=Object.prototype,F="function"==typeof L,V=i.QObject,Q=!V||!V.prototype||!V.prototype.findChild,H=r&&u(function(){
return 7!=C(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=x(B,t);i&&delete B[t],E(e,t,n),i&&e!==B&&E(B,t,i)}:E,W=function(e){var t=U[e]=C(L.prototype);return t._k=e,t},Y=F&&"symbol"==typeof L.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof L},G=function(e,t,n){return e===B&&G(z,t,n),b(e),t=I(t,!0),b(n),a(U,t)?(n.enumerable?(a(e,_)&&e[_][t]&&(e[_][t]=!1),n=C(n,{enumerable:M(0,!1)})):(a(e,_)||E(e,_,M(1,{})),e[_][t]=!0),
H(e,t,n)):E(e,t,n)},K=function(e,t){b(e);for(var n,i=g(t=S(t)),a=0,r=i.length;r>a;)G(e,n=i[a++],t[n]);return e},q=function(e,t){return void 0===t?C(e):K(C(e),t)},X=function(e){var t=j.call(this,e=I(e,!0));return!(this===B&&a(U,e)&&!a(z,e))&&(!(t||!a(this,e)||!a(U,e)||a(this,_)&&this[_][e])||t)},Z=function(e,t){if(e=S(e),t=I(t,!0),e!==B||!a(U,t)||a(z,t)){var n=x(e,t);return!n||!a(U,t)||a(e,_)&&e[_][t]||(n.enumerable=!0),n}},J=function(e){
for(var t,n=N(S(e)),i=[],r=0;n.length>r;)a(U,t=n[r++])||t==_||t==l||i.push(t);return i},$=function(e){for(var t,n=e===B,i=N(n?z:S(e)),r=[],s=0;i.length>s;)!a(U,t=i[s++])||n&&!a(B,t)||r.push(U[t]);return r};F||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===B&&t.call(z,n),a(this,_)&&a(this[_],e)&&(this[_][e]=!1),H(this,e,M(1,n))};return r&&Q&&H(B,e,{configurable:!0,set:t}),W(e)},
o(L.prototype,"toString",function(){return this._k}),D.f=Z,P.f=G,n(1072).f=w.f=J,n(471).f=X,n(672).f=$,r&&!n(670)&&o(B,"propertyIsEnumerable",X,!0),f.f=function(e){return W(h(e))}),s(s.G+s.W+s.F*!F,{Symbol:L});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;)h(ee[te++]);for(var ee=T(h.store),te=0;ee.length>te;)v(ee[te++]);s(s.S+s.F*!F,"Symbol",{for:function(e){return a(R,e+="")?R[e]:R[e]=L(e)
},keyFor:function(e){if(Y(e))return m(R,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){Q=!0},useSimple:function(){Q=!1}}),s(s.S+s.F*!F,"Object",{create:q,defineProperty:G,defineProperties:K,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:$}),A&&s(s.S+s.F*(!F||u(function(){var e=L();return"[null]"!=k([e])||"{}"!=k({a:e})||"{}"!=k(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!Y(e)){
for(var t,n,i=[e],a=1;arguments.length>a;)i.push(arguments[a++]);return t=i[1],"function"==typeof t&&(n=t),!n&&y(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!Y(t))return t}),i[1]=t,k.apply(A,i)}}}),L.prototype[O]||n(313)(L.prototype,O,L.prototype.valueOf),d(L,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(){var e=(arguments.length>0&&void 0!==arguments[0]&&arguments[0],
arguments[1]),t=arguments[2];switch(e.type){case c.HOVER:break;case d.ADD_SOURCE:case d.ADD_TARGET:case d.REMOVE_TARGET:case d.REMOVE_SOURCE:return p;case c.BEGIN_DRAG:case c.PUBLISH_DRAG_SOURCE:case c.END_DRAG:case c.DROP:default:return h}var n=e.targetIds,i=t.targetIds,a=(0,o.default)(n,i),r=!1;if(0===a.length){for(var s=0;s<n.length;s++)if(n[s]!==i[s]){r=!0;break}}else r=!0;if(!r)return p;var l=i[i.length-1],u=n[n.length-1];return l!==u&&(l&&a.push(l),u&&a.push(u)),a}function r(e,t){
return e!==p&&(e===h||void 0===t||(0,u.default)(t,e).length>0)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a,t.areDirty=r;var s=n(3326),o=i(s),l=n(3319),u=i(l),c=n(481),d=n(482),p=[],h=[]},function(e,t,n){"use strict";function i(e,t){return e===t||e&&t&&e.x===t.x&&e.y===t.y}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments[1];switch(t.type){case l.BEGIN_DRAG:return{initialSourceClientOffset:t.sourceClientOffset,
initialClientOffset:t.clientOffset,clientOffset:t.clientOffset};case l.HOVER:return i(e.clientOffset,t.clientOffset)?e:o({},e,{clientOffset:t.clientOffset});case l.END_DRAG:case l.DROP:return u;default:return e}}function r(e){var t=e.clientOffset,n=e.initialClientOffset,i=e.initialSourceClientOffset;return t&&n&&i?{x:t.x+i.x-n.x,y:t.y+i.y-n.y}:null}function s(e){var t=e.clientOffset,n=e.initialClientOffset;return t&&n?{x:t.x-n.x,y:t.y-n.y}:null}Object.defineProperty(t,"__esModule",{value:!0})
;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};t.default=a,t.getSourceClientOffset=r,t.getDifferenceFromInitialOffset=s;var l=n(481),u={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null}},function(e,t,n){"use strict";function i(e,t){return(0,r.default)(e)?e.some(function(e){return e===t}):e===t}Object.defineProperty(t,"__esModule",{value:!0}),
t.default=i;var a=n(263),r=function(e){return e&&e.__esModule?e:{default:e}}(a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},function(e,t){e.exports={innerEmptyPage:"InnerEmptyPage-innerEmptyPage-1MHKZ EmptyPage-emptyPage-2AM9u",innerEmptyPageContent:"InnerEmptyPage-innerEmptyPageContent-3kRFW EmptyPage-content-10PgB"}},function(e,t){e.exports={
sidebarMessage:"SidebarMessage-sidebarMessage-D9gf1"}},function(e,t){e.exports={serverMenuItem:"ServerMenuItem-serverMenuItem-2djO5",disabledServerMenuItem:"ServerMenuItem-disabledServerMenuItem-22OGf",selectedServerMenuItem:"ServerMenuItem-selectedServerMenuItem-jaUTX",serverMenuItemContainer:"ServerMenuItem-serverMenuItemContainer-1DS9V",serverMenuTitle:"ServerMenuItem-serverMenuTitle-1s5qR",serverMenuFriendlyName:"ServerMenuItem-serverMenuFriendlyName-37Gt7",
serverMenuDetails:"ServerMenuItem-serverMenuDetails-1-Rfq",serverMenuIconContainer:"ServerMenuItem-serverMenuIconContainer-2WtBG",serverMenuIcon:"ServerMenuItem-serverMenuIcon-2zKCW",selectedIcon:"ServerMenuItem-selectedIcon-dhK05",secureIcon:"ServerMenuItem-secureIcon-3-O-_"}},,,,function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a=""
;return a+=' <li><a class="btn-gray change-pane-btn general-btn" data-pane="general" href="#"> <i class="modal-nav-icon glyphicon align-center"></i> '+g(i(n(1)).call(e,"General",{hash:{},data:t}))+" </a></li> "}function l(e,t){var a="";return a+=' <li><a class="btn-gray change-pane-btn tags-btn" data-pane="tags" href="#"> <i class="modal-nav-icon glyphicon tags"></i> '+g(i(n(1)).call(e,"Tags",{hash:{},data:t}))+" </a></li> "}function u(e,t){var a=""
;return a+=' <li><a class="btn-gray change-pane-btn sharing-btn" data-pane="sharing" href="#"> <i class="modal-nav-icon glyphicon parents"></i> '+g(i(n(1)).call(e,"Sharing",{hash:{},data:t}))+" </a></li> "}function c(e,t){var a="";return a+=' <li><a class="btn-gray change-pane-btn poster-btn" data-pane="poster" href="#"> <i class="modal-nav-icon glyphicon picture"></i> '+g(i(n(1)).call(e,"Poster",{hash:{},data:t}))+" </a></li> "}function d(e,t){var a=""
;return a+=' <li><a class="btn-gray change-pane-btn banner-btn" data-pane="banner" href="#"> <i class="modal-nav-icon glyphicon picture"></i> '+g(i(n(1)).call(e,"Banner",{hash:{},data:t}))+" </a></li> "}function p(e,t){var a="";return a+=' <li><a class="btn-gray change-pane-btn art-btn" data-pane="art" href="#"> <i class="modal-nav-icon glyphicon picture"></i> '+g(i(n(1)).call(e,"Background",{hash:{},data:t}))+" </a></li> "}function h(e,t){var a=""
;return a+=' <li><a class="btn-gray change-pane-btn info-btn" data-pane="info" href="#"> <i class="modal-nav-icon glyphicon circle-info"></i> '+g(i(n(1)).call(e,"Info",{hash:{},data:t}))+" </a></li> "}function f(e,t){var a="";return a+=' <li><a class="btn-gray change-pane-btn advanced-btn" data-pane="advanced" href="#"> <i class="modal-nav-icon glyphicon cogwheel"></i> '+g(i(n(1)).call(e,"Advanced",{hash:{},data:t}))+" </a></li> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),
s=s||{};var v,m="",g=this.escapeExpression,y=this;return m+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon pencil"></i> '+g((v=t&&t.paneTitle,
"function"==typeof v?v.apply(t):v))+'</h4> </div> <div class="modal-body modal-body-scroll modal-body-with-panes"> <div class="modal-nav-pane dark-scrollbar hidden"> <ul class="list modal-nav-list"> ',v=a.if.call(t,(v=t&&t.panes,null==v||v===!1?v:v.general),{hash:{},inverse:y.noop,fn:y.program(1,o,s),data:s}),(v||0===v)&&(m+=v),m+=" ",v=a.if.call(t,(v=t&&t.panes,null==v||v===!1?v:v.tags),{hash:{},inverse:y.noop,fn:y.program(3,l,s),data:s}),(v||0===v)&&(m+=v),m+=" ",v=a.if.call(t,(v=t&&t.panes,
null==v||v===!1?v:v.sharing),{hash:{},inverse:y.noop,fn:y.program(5,u,s),data:s}),(v||0===v)&&(m+=v),m+=" ",v=a.if.call(t,(v=t&&t.panes,null==v||v===!1?v:v.poster),{hash:{},inverse:y.noop,fn:y.program(7,c,s),data:s}),(v||0===v)&&(m+=v),m+=" ",v=a.if.call(t,(v=t&&t.panes,null==v||v===!1?v:v.banner),{hash:{},inverse:y.noop,fn:y.program(9,d,s),data:s}),(v||0===v)&&(m+=v),m+=" ",v=a.if.call(t,(v=t&&t.panes,null==v||v===!1?v:v.art),{hash:{},inverse:y.noop,fn:y.program(11,p,s),data:s}),
(v||0===v)&&(m+=v),m+=" ",v=a.if.call(t,(v=t&&t.panes,null==v||v===!1?v:v.info),{hash:{},inverse:y.noop,fn:y.program(13,h,s),data:s}),(v||0===v)&&(m+=v),m+=" ",v=a.if.call(t,(v=t&&t.panes,null==v||v===!1?v:v.advanced),{hash:{},inverse:y.noop,fn:y.program(15,f,s),data:s}),(v||0===v)&&(m+=v),
m+=' </ul> </div> <div class="modal-body-pane pane-region dark-scrollbar"> <div class="loading loading-inline"></div> </div> </div> <div class="modal-footer"> <span class="form-message"></span> <button type="button" class="cancel-btn btn btn-default" data-dismiss="modal">'+g(i(n(1)).call(t,"Cancel",{hash:{},data:s}))+'</button> <button type="button" class="save-btn btn btn-primary btn-loading"> <div class="loading loading-sm"></div> <span class="btn-label">'+g(i(n(1)).call(t,"Save Changes",{
hash:{},data:s}))+"</span> </button> </div> </div> </div> "})},function(e,t,n){"use strict";function i(e){this.string=e}i.prototype.toString=function(){return""+this.string},t.default=i},function(e,t,n){(function(n){var i={},a=void 0!==e&&e.exports&&void 0!==n?n:this||i;(a._gsQueue||(a._gsQueue=[])).push(function(){"use strict";a._gsDefine("easing.Back",["easing.Ease"],function(e){var t,n,i,r=a.GreenSockGlobals||a,s=r.com.greensock,o=2*Math.PI,l=Math.PI/2,u=s._class,c=function(t,n){
var i=u("easing."+t,function(){},!0),a=i.prototype=new e;return a.constructor=i,a.getRatio=n,i},d=e.register||function(){},p=function(e,t,n,i,a){var r=u("easing."+e,{easeOut:new t,easeIn:new n,easeInOut:new i},!0);return d(r,e),r},h=function(e,t,n){this.t=e,this.v=t,n&&(this.next=n,n.prev=this,this.c=n.v-t,this.gap=n.t-e)},f=function(t,n){var i=u("easing."+t,function(e){this._p1=e||0===e?e:1.70158,this._p2=1.525*this._p1},!0),a=i.prototype=new e;return a.constructor=i,a.getRatio=n,
a.config=function(e){return new i(e)},i},v=p("Back",f("BackOut",function(e){return(e-=1)*e*((this._p1+1)*e+this._p1)+1}),f("BackIn",function(e){return e*e*((this._p1+1)*e-this._p1)}),f("BackInOut",function(e){return(e*=2)<1?.5*e*e*((this._p2+1)*e-this._p2):.5*((e-=2)*e*((this._p2+1)*e+this._p2)+2)})),m=u("easing.SlowMo",function(e,t,n){t=t||0===t?t:.7,null==e?e=.7:e>1&&(e=1),this._p=1!==e?t:0,this._p1=(1-e)/2,this._p2=e,this._p3=this._p1+this._p2,this._calcEnd=n===!0},!0),g=m.prototype=new e
;return g.constructor=m,g.getRatio=function(e){var t=e+(.5-e)*this._p;return e<this._p1?this._calcEnd?1-(e=1-e/this._p1)*e:t-(e=1-e/this._p1)*e*e*e*t:e>this._p3?this._calcEnd?1-(e=(e-this._p3)/this._p1)*e:t+(e-t)*(e=(e-this._p3)/this._p1)*e*e*e:this._calcEnd?1:t},m.ease=new m(.7,.7),g.config=m.config=function(e,t,n){return new m(e,t,n)},t=u("easing.SteppedEase",function(e){e=e||1,this._p1=1/e,this._p2=e+1},!0),g=t.prototype=new e,g.constructor=t,g.getRatio=function(e){
return e<0?e=0:e>=1&&(e=.999999999),(this._p2*e>>0)*this._p1},g.config=t.config=function(e){return new t(e)},n=u("easing.RoughEase",function(t){t=t||{};for(var n,i,a,r,s,o,l=t.taper||"none",u=[],c=0,d=0|(t.points||20),p=d,f=t.randomize!==!1,v=t.clamp===!0,m=t.template instanceof e?t.template:null,g="number"==typeof t.strength?.4*t.strength:.4;--p>-1;)n=f?Math.random():1/d*p,i=m?m.getRatio(n):n,"none"===l?a=g:"out"===l?(r=1-n,a=r*r*g):"in"===l?a=n*n*g:n<.5?(r=2*n,a=r*r*.5*g):(r=2*(1-n),
a=r*r*.5*g),f?i+=Math.random()*a-.5*a:p%2?i+=.5*a:i-=.5*a,v&&(i>1?i=1:i<0&&(i=0)),u[c++]={x:n,y:i};for(u.sort(function(e,t){return e.x-t.x}),o=new h(1,1,null),p=d;--p>-1;)s=u[p],o=new h(s.x,s.y,o);this._prev=new h(0,0,0!==o.t?o:o.next)},!0),g=n.prototype=new e,g.constructor=n,g.getRatio=function(e){var t=this._prev;if(e>t.t){for(;t.next&&e>=t.t;)t=t.next;t=t.prev}else for(;t.prev&&e<=t.t;)t=t.prev;return this._prev=t,t.v+(e-t.t)/t.gap*t.c},g.config=function(e){return new n(e)},n.ease=new n,
p("Bounce",c("BounceOut",function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}),c("BounceIn",function(e){return(e=1-e)<1/2.75?1-7.5625*e*e:e<2/2.75?1-(7.5625*(e-=1.5/2.75)*e+.75):e<2.5/2.75?1-(7.5625*(e-=2.25/2.75)*e+.9375):1-(7.5625*(e-=2.625/2.75)*e+.984375)}),c("BounceInOut",function(e){var t=e<.5;return e=t?1-2*e:2*e-1,
e<1/2.75?e*=7.5625*e:e=e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,t?.5*(1-e):.5*e+.5})),p("Circ",c("CircOut",function(e){return Math.sqrt(1-(e-=1)*e)}),c("CircIn",function(e){return-(Math.sqrt(1-e*e)-1)}),c("CircInOut",function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)})),i=function(t,n,i){var a=u("easing."+t,function(e,t){this._p1=e>=1?e:1,this._p2=(t||i)/(e<1?e:1),
this._p3=this._p2/o*(Math.asin(1/this._p1)||0),this._p2=o/this._p2},!0),r=a.prototype=new e;return r.constructor=a,r.getRatio=n,r.config=function(e,t){return new a(e,t)},a},p("Elastic",i("ElasticOut",function(e){return this._p1*Math.pow(2,-10*e)*Math.sin((e-this._p3)*this._p2)+1},.3),i("ElasticIn",function(e){return-(this._p1*Math.pow(2,10*(e-=1))*Math.sin((e-this._p3)*this._p2))},.3),i("ElasticInOut",function(e){
return(e*=2)<1?-.5*(this._p1*Math.pow(2,10*(e-=1))*Math.sin((e-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(e-=1))*Math.sin((e-this._p3)*this._p2)*.5+1},.45)),p("Expo",c("ExpoOut",function(e){return 1-Math.pow(2,-10*e)}),c("ExpoIn",function(e){return Math.pow(2,10*(e-1))-.001}),c("ExpoInOut",function(e){return(e*=2)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*(e-1)))})),p("Sine",c("SineOut",function(e){return Math.sin(e*l)}),c("SineIn",function(e){return 1-Math.cos(e*l)
}),c("SineInOut",function(e){return-.5*(Math.cos(Math.PI*e)-1)})),u("easing.EaseLookup",{find:function(t){return e.map[t]}},!0),d(r.SlowMo,"SlowMo","ease,"),d(n,"RoughEase","ease,"),d(t,"SteppedEase","ease,"),v},!0)}),a._gsDefine&&a._gsQueue.pop()(),t.Linear=Linear,t.Power1=Power1,t.Power2=Power2,t.Power3=Power3}).call(t,n(222))},function(e,t,n){(function(i){var a,r,s={};/*!
 * VERSION: 1.18.1
 * DATE: 2015-12-11
 * UPDATES AND DOCS AT: http://greensock.com
 *
 * @license Copyright (c) 2008-2015, GreenSock. All rights reserved.
 * This work is subject to the terms at http://greensock.com/standard-license or for
 * Club GreenSock members, the software agreement that was issued with your membership.
 *
 * @author: Jack Doyle, jack@greensock.com
 */
!function(i,s){"use strict";var o=i.GreenSockGlobals=i.GreenSockGlobals||i;if(!o.TweenLite){var l,u,c,d,p,h=function(e){var t,n=e.split("."),i=o;for(t=0;t<n.length;t++)i[n[t]]=i=i[n[t]]||{};return i},f=h("com.greensock"),v=function(e){var t,n=[],i=e.length;for(t=0;t!==i;n.push(e[t++]));return n},m=function(){},g=function(){var e=Object.prototype.toString,t=e.call([]);return function(n){return null!=n&&(n instanceof Array||"object"==typeof n&&!!n.push&&e.call(n)===t)}}(),y={},b=function(i,s,l,u){
this.sc=y[i]?y[i].sc:[],y[i]=this,this.gsClass=null,this.func=l;var c=[];this.check=function(d){for(var p,f,v,m,g,S=s.length,I=S;--S>-1;)(p=y[s[S]]||new b(s[S],[])).gsClass?(c[S]=p.gsClass,I--):d&&p.sc.push(this);if(0===I&&l)for(f=("com.greensock."+i).split("."),v=f.pop(),m=h(f.join("."))[v]=this.gsClass=l.apply(l,c),u&&(o[v]=m,g=void 0!==e&&e.exports,!g&&n(3497)?(a=[],void 0!==(r=function(){return m}.apply(t,a))&&(e.exports=r)):"TweenLite"===i&&g&&(e.exports=m)),
S=0;S<this.sc.length;S++)this.sc[S].check()},this.check(!0)},S=i._gsDefine=function(e,t,n,i){return new b(e,t,n,i)},I=f._class=function(e,t,n){return t=t||function(){},S(e,[],function(){return t},n),t};S.globals=o;var M=[0,0,1,1],C=[],w=I("easing.Ease",function(e,t,n,i){this._func=e,this._type=n||0,this._power=i||0,this._params=t?M.concat(t):M},!0),D=w.map={},P=w.register=function(e,t,n,i){for(var a,r,s,o,l=t.split(","),u=l.length,c=(n||"easeIn,easeOut,easeInOut").split(",");--u>-1;)for(r=l[u],
a=i?I("easing."+r,null,!0):f.easing[r]||{},s=c.length;--s>-1;)o=c[s],D[r+"."+o]=D[o+r]=a[o]=e.getRatio?e:e[o]||new e};for(c=w.prototype,c._calcEnd=!1,c.getRatio=function(e){if(this._func)return this._params[0]=e,this._func.apply(null,this._params);var t=this._type,n=this._power,i=1===t?1-e:2===t?e:e<.5?2*e:2*(1-e);return 1===n?i*=i:2===n?i*=i*i:3===n?i*=i*i*i:4===n&&(i*=i*i*i*i),1===t?1-i:2===t?i:e<.5?i/2:1-i/2},l=["Linear","Quad","Cubic","Quart","Quint,Strong"],
u=l.length;--u>-1;)c=l[u]+",Power"+u,P(new w(null,null,1,u),c,"easeOut",!0),P(new w(null,null,2,u),c,"easeIn"+(0===u?",easeNone":"")),P(new w(null,null,3,u),c,"easeInOut");D.linear=f.easing.Linear.easeIn,D.swing=f.easing.Quad.easeInOut;var T=I("events.EventDispatcher",function(e){this._listeners={},this._eventTarget=e||this});c=T.prototype,c.addEventListener=function(e,t,n,i,a){a=a||0;var r,s,o=this._listeners[e],l=0;for(null==o&&(this._listeners[e]=o=[]),s=o.length;--s>-1;)r=o[s],
r.c===t&&r.s===n?o.splice(s,1):0===l&&r.pr<a&&(l=s+1);o.splice(l,0,{c:t,s:n,up:i,pr:a}),this!==d||p||d.wake()},c.removeEventListener=function(e,t){var n,i=this._listeners[e];if(i)for(n=i.length;--n>-1;)if(i[n].c===t)return void i.splice(n,1)},c.dispatchEvent=function(e){var t,n,i,a=this._listeners[e];if(a)for(t=a.length,n=this._eventTarget;--t>-1;)(i=a[t])&&(i.up?i.c.call(i.s||n,{type:e,target:n}):i.c.call(i.s||n))};var x=i.requestAnimationFrame,E=i.cancelAnimationFrame,N=Date.now||function(){
return(new Date).getTime()},L=N();for(l=["ms","moz","webkit","o"],u=l.length;--u>-1&&!x;)x=i[l[u]+"RequestAnimationFrame"],E=i[l[u]+"CancelAnimationFrame"]||i[l[u]+"CancelRequestAnimationFrame"];I("Ticker",function(e,t){var n,i,a,r,s,o=this,l=N(),u=!(t===!1||!x)&&"auto",c=500,h=33,f=function(e){var t,u,d=N()-L;d>c&&(l+=d-h),L+=d,o.time=(L-l)/1e3,t=o.time-s,(!n||t>0||e===!0)&&(o.frame++,s+=t+(t>=r?.004:r-t),u=!0),e!==!0&&(a=i(f)),u&&o.dispatchEvent("tick")};T.call(o),o.time=o.frame=0,
o.tick=function(){f(!0)},o.lagSmoothing=function(e,t){c=e||1e10,h=Math.min(t,c,0)},o.sleep=function(){null!=a&&(u&&E?E(a):clearTimeout(a),i=m,a=null,o===d&&(p=!1))},o.wake=function(e){null!==a?o.sleep():e?l+=-L+(L=N()):o.frame>10&&(L=N()-c+5),i=0===n?m:u&&x?x:function(e){return setTimeout(e,1e3*(s-o.time)+1|0)},o===d&&(p=!0),f(2)},o.fps=function(e){if(!arguments.length)return n;n=e,r=1/(n||60),s=this.time+r,o.wake()},o.useRAF=function(e){if(!arguments.length)return u;o.sleep(),u=e,o.fps(n)},
o.fps(e),setTimeout(function(){"auto"===u&&o.frame<5&&"hidden"!==document.visibilityState&&o.useRAF(!1)},1500)}),c=f.Ticker.prototype=new f.events.EventDispatcher,c.constructor=f.Ticker;var A=I("core.Animation",function(e,t){if(this.vars=t=t||{},this._duration=this._totalDuration=e||0,this._delay=Number(t.delay)||0,this._timeScale=1,this._active=t.immediateRender===!0,this.data=t.data,this._reversed=t.reversed===!0,Z){p||d.wake();var n=this.vars.useFrames?X:Z;n.add(this,n._time),
this.vars.paused&&this.paused(!0)}});d=A.ticker=new f.Ticker,c=A.prototype,c._dirty=c._gc=c._initted=c._paused=!1,c._totalTime=c._time=0,c._rawPrevTime=-1,c._next=c._last=c._onUpdate=c._timeline=c.timeline=null,c._paused=!1;var k=function(){p&&N()-L>2e3&&d.wake(),setTimeout(k,2e3)};k(),c.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},c.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},c.resume=function(e,t){return null!=e&&this.seek(e,t),
this.paused(!1)},c.seek=function(e,t){return this.totalTime(Number(e),t!==!1)},c.restart=function(e,t){return this.reversed(!1).paused(!1).totalTime(e?-this._delay:0,t!==!1,!0)},c.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},c.render=function(e,t,n){},c.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},c.isActive=function(){
var e,t=this._timeline,n=this._startTime;return!t||!this._gc&&!this._paused&&t.isActive()&&(e=t.rawTime())>=n&&e<n+this.totalDuration()/this._timeScale},c._enabled=function(e,t){return p||d.wake(),this._gc=!e,this._active=this.isActive(),t!==!0&&(e&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!e&&this.timeline&&this._timeline._remove(this,!0)),!1},c._kill=function(e,t){return this._enabled(!1,!1)},c.kill=function(e,t){return this._kill(e,t),this},c._uncache=function(e){
for(var t=e?this:this.timeline;t;)t._dirty=!0,t=t.timeline;return this},c._swapSelfInParams=function(e){for(var t=e.length,n=e.concat();--t>-1;)"{self}"===e[t]&&(n[t]=this);return n},c._callback=function(e){var t=this.vars;t[e].apply(t[e+"Scope"]||t.callbackScope||this,t[e+"Params"]||C)},c.eventCallback=function(e,t,n,i){if("on"===(e||"").substr(0,2)){var a=this.vars;if(1===arguments.length)return a[e];null==t?delete a[e]:(a[e]=t,
a[e+"Params"]=g(n)&&n.join("").indexOf("{self}")!==-1?this._swapSelfInParams(n):n,a[e+"Scope"]=i),"onUpdate"===e&&(this._onUpdate=t)}return this},c.delay=function(e){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+e-this._delay),this._delay=e,this):this._delay},c.duration=function(e){return arguments.length?(this._duration=this._totalDuration=e,this._uncache(!0),
this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==e&&this.totalTime(this._totalTime*(e/this._duration),!0),this):(this._dirty=!1,this._duration)},c.totalDuration=function(e){return this._dirty=!1,arguments.length?this.duration(e):this._totalDuration},c.time=function(e,t){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(e>this._duration?this._duration:e,t)):this._time},c.totalTime=function(e,t,n){if(p||d.wake(),
!arguments.length)return this._totalTime;if(this._timeline){if(e<0&&!n&&(e+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var i=this._totalDuration,a=this._timeline;if(e>i&&!n&&(e=i),this._startTime=(this._paused?this._pauseTime:a._time)-(this._reversed?i-e:e)/this._timeScale,a._dirty||this._uncache(!1),a._timeline)for(;a._timeline;)a._timeline._time!==(a._startTime+a._totalTime)/a._timeScale&&a.totalTime(a._totalTime,!0),a=a._timeline}
this._gc&&this._enabled(!0,!1),this._totalTime===e&&0!==this._duration||(U.length&&$(),this.render(e,t,!1),U.length&&$())}return this},c.progress=c.totalProgress=function(e,t){var n=this.duration();return arguments.length?this.totalTime(n*e,t):n?this._time/n:this.ratio},c.startTime=function(e){return arguments.length?(e!==this._startTime&&(this._startTime=e,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,e-this._delay)),this):this._startTime},c.endTime=function(e){
return this._startTime+(0!=e?this.totalDuration():this.duration())/this._timeScale},c.timeScale=function(e){if(!arguments.length)return this._timeScale;if(e=e||1e-10,this._timeline&&this._timeline.smoothChildTiming){var t=this._pauseTime,n=t||0===t?t:this._timeline.totalTime();this._startTime=n-(n-this._startTime)*this._timeScale/e}return this._timeScale=e,this._uncache(!1)},c.reversed=function(e){return arguments.length?(e!=this._reversed&&(this._reversed=e,
this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},c.paused=function(e){if(!arguments.length)return this._paused;var t,n,i=this._timeline;return e!=this._paused&&i&&(p||e||d.wake(),t=i.rawTime(),n=t-this._pauseTime,!e&&i.smoothChildTiming&&(this._startTime+=n,this._uncache(!1)),this._pauseTime=e?t:null,this._paused=e,this._active=this.isActive(),
!e&&0!==n&&this._initted&&this.duration()&&(t=i.smoothChildTiming?this._totalTime:(t-this._startTime)/this._timeScale,this.render(t,t===this._totalTime,!0))),this._gc&&!e&&this._enabled(!0,!1),this};var _=I("core.SimpleTimeline",function(e){A.call(this,0,e),this.autoRemoveChildren=this.smoothChildTiming=!0});c=_.prototype=new A,c.constructor=_,c.kill()._gc=!1,c._first=c._last=c._recent=null,c._sortChildren=!1,c.add=c.insert=function(e,t,n,i){var a,r;if(e._startTime=Number(t||0)+e._delay,
e._paused&&this!==e._timeline&&(e._pauseTime=e._startTime+(this.rawTime()-e._startTime)/e._timeScale),e.timeline&&e.timeline._remove(e,!0),e.timeline=e._timeline=this,e._gc&&e._enabled(!0,!0),a=this._last,this._sortChildren)for(r=e._startTime;a&&a._startTime>r;)a=a._prev;return a?(e._next=a._next,a._next=e):(e._next=this._first,this._first=e),e._next?e._next._prev=e:this._last=e,e._prev=a,this._recent=e,this._timeline&&this._uncache(!0),this},c._remove=function(e,t){
return e.timeline===this&&(t||e._enabled(!1,!0),e._prev?e._prev._next=e._next:this._first===e&&(this._first=e._next),e._next?e._next._prev=e._prev:this._last===e&&(this._last=e._prev),e._next=e._prev=e.timeline=null,e===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},c.render=function(e,t,n){var i,a=this._first;for(this._totalTime=this._time=this._rawPrevTime=e;a;)i=a._next,
(a._active||e>=a._startTime&&!a._paused)&&(a._reversed?a.render((a._dirty?a.totalDuration():a._totalDuration)-(e-a._startTime)*a._timeScale,t,n):a.render((e-a._startTime)*a._timeScale,t,n)),a=i},c.rawTime=function(){return p||d.wake(),this._totalTime};var O=I("TweenLite",function(e,t,n){if(A.call(this,t,n),this.render=O.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:O.selector(e)||e
;var a,r,s,o=e.jquery||e.length&&e!==i&&e[0]&&(e[0]===i||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?q[O.defaultOverwrite]:"number"==typeof l?l>>0:q[l],(o||e instanceof Array||e.push&&g(e))&&"number"!=typeof e[0])for(this._targets=s=v(e),this._propLookup=[],this._siblings=[],a=0;a<s.length;a++)r=s[a],r?"string"!=typeof r?r.length&&r!==i&&r[0]&&(r[0]===i||r[0].nodeType&&r[0].style&&!r.nodeType)?(s.splice(a--,1),
this._targets=s=s.concat(v(r))):(this._siblings[a]=ee(r,this,!1),1===l&&this._siblings[a].length>1&&ne(r,this,null,1,this._siblings[a])):"string"==typeof(r=s[a--]=O.selector(r))&&s.splice(a+1,1):s.splice(a--,1);else this._propLookup={},this._siblings=ee(e,this,!1),1===l&&this._siblings.length>1&&ne(e,this,null,1,this._siblings);(this.vars.immediateRender||0===t&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-1e-10,this.render(-this._delay))},!0),j=function(e){
return e&&e.length&&e!==i&&e[0]&&(e[0]===i||e[0].nodeType&&e[0].style&&!e.nodeType)},R=function(e,t){var n,i={};for(n in e)K[n]||n in t&&"transform"!==n&&"x"!==n&&"y"!==n&&"width"!==n&&"height"!==n&&"className"!==n&&"border"!==n||!(!W[n]||W[n]&&W[n]._autoCSS)||(i[n]=e[n],delete e[n]);e.css=i};c=O.prototype=new A,c.constructor=O,c.kill()._gc=!1,c.ratio=0,c._firstPT=c._targets=c._overwrittenProps=c._startAt=null,c._notifyPluginsOfEnabled=c._lazy=!1,O.version="1.18.1",
O.defaultEase=c._ease=new w(null,null,1,1),O.defaultOverwrite="auto",O.ticker=d,O.autoSleep=120,O.lagSmoothing=function(e,t){d.lagSmoothing(e,t)},O.selector=i.$||i.jQuery||function(e){var t=i.$||i.jQuery;return t?(O.selector=t,t(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)};var U=[],z={},B=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,F=function(e){
for(var t,n=this._firstPT;n;)t=n.blob?e?this.join(""):this.start:n.c*e+n.s,n.r?t=Math.round(t):t<1e-6&&t>-1e-6&&(t=0),n.f?n.fp?n.t[n.p](n.fp,t):n.t[n.p](t):n.t[n.p]=t,n=n._next},V=function(e,t,n,i){var a,r,s,o,l,u,c,d=[e,t],p=0,h="",f=0;for(d.start=e,n&&(n(d),e=d[0],t=d[1]),d.length=0,a=e.match(B)||[],r=t.match(B)||[],i&&(i._next=null,i.blob=1,d._firstPT=i),l=r.length,o=0;o<l;o++)c=r[o],u=t.substr(p,t.indexOf(c,p)-p),h+=u||!o?u:",",p+=u.length,f?f=(f+1)%5:"rgba("===u.substr(-5)&&(f=1),
c===a[o]||a.length<=o?h+=c:(h&&(d.push(h),h=""),s=parseFloat(a[o]),d.push(s),d._firstPT={_next:d._firstPT,t:d,p:d.length-1,s:s,c:("="===c.charAt(1)?parseInt(c.charAt(0)+"1",10)*parseFloat(c.substr(2)):parseFloat(c)-s)||0,f:0,r:f&&f<4}),p+=c.length;return h+=t.substr(p),h&&d.push(h),d.setRatio=F,d},Q=function(e,t,n,i,a,r,s,o){var l,u,c="get"===n?e[t]:n,d=typeof e[t],p="string"==typeof i&&"="===i.charAt(1),h={t:e,p:t,s:c,f:"function"===d,pg:0,n:a||t,r:r,pr:0,
c:p?parseInt(i.charAt(0)+"1",10)*parseFloat(i.substr(2)):parseFloat(i)-c||0};if("number"!==d&&("function"===d&&"get"===n&&(u=t.indexOf("set")||"function"!=typeof e["get"+t.substr(3)]?t:"get"+t.substr(3),h.s=c=s?e[u](s):e[u]()),"string"==typeof c&&(s||isNaN(c))?(h.fp=s,l=V(c,i,o||O.defaultStringFilter,h),h={t:l,p:"setRatio",s:0,c:1,f:2,pg:0,n:a||t,pr:0}):p||(h.s=parseFloat(c),h.c=parseFloat(i)-h.s||0)),h.c)return(h._next=this._firstPT)&&(h._next._prev=h),this._firstPT=h,h},H=O._internals={
isArray:g,isSelector:j,lazyTweens:U,blobDif:V},W=O._plugins={},Y=H.tweenLookup={},G=0,K=H.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,
reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1},q={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},X=A._rootFramesTimeline=new _,Z=A._rootTimeline=new _,J=30,$=H.lazyRender=function(){var e,t=U.length;for(z={};--t>-1;)(e=U[t])&&e._lazy!==!1&&(e.render(e._lazy[0],e._lazy[1],!0),e._lazy=!1);U.length=0};Z._startTime=d.time,X._startTime=d.frame,Z._active=X._active=!0,setTimeout($,1),A._updateRoot=O.render=function(){var e,t,n;if(U.length&&$(),
Z.render((d.time-Z._startTime)*Z._timeScale,!1,!1),X.render((d.frame-X._startTime)*X._timeScale,!1,!1),U.length&&$(),d.frame>=J){J=d.frame+(parseInt(O.autoSleep,10)||120);for(n in Y){for(t=Y[n].tweens,e=t.length;--e>-1;)t[e]._gc&&t.splice(e,1);0===t.length&&delete Y[n]}if((!(n=Z._first)||n._paused)&&O.autoSleep&&!X._first&&1===d._listeners.tick.length){for(;n&&n._paused;)n=n._next;n||d.sleep()}}},d.addEventListener("tick",A._updateRoot);var ee=function(e,t,n){var i,a,r=e._gsTweenID
;if(Y[r||(e._gsTweenID=r="t"+G++)]||(Y[r]={target:e,tweens:[]}),t&&(i=Y[r].tweens,i[a=i.length]=t,n))for(;--a>-1;)i[a]===t&&i.splice(a,1);return Y[r].tweens},te=function(e,t,n,i){var a,r,s=e.vars.onOverwrite;return s&&(a=s(e,t,n,i)),s=O.onOverwrite,s&&(r=s(e,t,n,i)),a!==!1&&r!==!1},ne=function(e,t,n,i,a){var r,s,o,l;if(1===i||i>=4){for(l=a.length,r=0;r<l;r++)if((o=a[r])!==t)o._gc||o._kill(null,e,t)&&(s=!0);else if(5===i)break;return s}var u,c=t._startTime+1e-10,d=[],p=0,h=0===t._duration
;for(r=a.length;--r>-1;)(o=a[r])===t||o._gc||o._paused||(o._timeline!==t._timeline?(u=u||ie(t,0,h),0===ie(o,u,h)&&(d[p++]=o)):o._startTime<=c&&o._startTime+o.totalDuration()/o._timeScale>c&&((h||!o._initted)&&c-o._startTime<=2e-10||(d[p++]=o)));for(r=p;--r>-1;)if(o=d[r],2===i&&o._kill(n,e,t)&&(s=!0),2!==i||!o._firstPT&&o._initted){if(2!==i&&!te(o,t))continue;o._enabled(!1,!1)&&(s=!0)}return s},ie=function(e,t,n){for(var i=e._timeline,a=i._timeScale,r=e._startTime;i._timeline;){
if(r+=i._startTime,a*=i._timeScale,i._paused)return-100;i=i._timeline}return r/=a,r>t?r-t:n&&r===t||!e._initted&&r-t<2e-10?1e-10:(r+=e.totalDuration()/e._timeScale/a)>t+1e-10?0:r-t-1e-10};c._init=function(){var e,t,n,i,a,r=this.vars,s=this._overwrittenProps,o=this._duration,l=!!r.immediateRender,u=r.ease;if(r.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),a={};for(i in r.startAt)a[i]=r.startAt[i];if(a.overwrite=!1,a.immediateRender=!0,a.lazy=l&&r.lazy!==!1,
a.startAt=a.delay=null,this._startAt=O.to(this.target,0,a),l)if(this._time>0)this._startAt=null;else if(0!==o)return}else if(r.runBackwards&&0!==o)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(l=!1),n={};for(i in r)K[i]&&"autoCSS"!==i||(n[i]=r[i]);if(n.overwrite=0,n.data="isFromStart",n.lazy=l&&r.lazy!==!1,n.immediateRender=l,this._startAt=O.to(this.target,0,n),l){if(0===this._time)return}else this._startAt._init(),
this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=u=u?u instanceof w?u:"function"==typeof u?new w(u,r.easeParams):D[u]||O.defaultEase:O.defaultEase,r.easeParams instanceof Array&&u.config&&(this._ease=u.config.apply(u,r.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,
this._targets)for(e=this._targets.length;--e>-1;)this._initProps(this._targets[e],this._propLookup[e]={},this._siblings[e],s?s[e]:null)&&(t=!0);else t=this._initProps(this.target,this._propLookup,this._siblings,s);if(t&&O._onPluginEvent("_onInitAllProps",this),s&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),r.runBackwards)for(n=this._firstPT;n;)n.s+=n.c,n.c=-n.c,n=n._next;this._onUpdate=r.onUpdate,this._initted=!0},c._initProps=function(e,t,n,a){var r,s,o,l,u,c
;if(null==e)return!1;z[e._gsTweenID]&&$(),this.vars.css||e.style&&e!==i&&e.nodeType&&W.css&&this.vars.autoCSS!==!1&&R(this.vars,e);for(r in this.vars)if(c=this.vars[r],K[r])c&&(c instanceof Array||c.push&&g(c))&&c.join("").indexOf("{self}")!==-1&&(this.vars[r]=c=this._swapSelfInParams(c,this));else if(W[r]&&(l=new W[r])._onInitTween(e,this.vars[r],this)){for(this._firstPT=u={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:1,n:r,pg:1,pr:l._priority},
s=l._overwriteProps.length;--s>-1;)t[l._overwriteProps[s]]=this._firstPT;(l._priority||l._onInitAllProps)&&(o=!0),(l._onDisable||l._onEnable)&&(this._notifyPluginsOfEnabled=!0),u._next&&(u._next._prev=u)}else t[r]=Q.call(this,e,r,"get",c,r,0,null,this.vars.stringFilter);return a&&this._kill(a,e)?this._initProps(e,t,n,a):this._overwrite>1&&this._firstPT&&n.length>1&&ne(e,this,t,this._overwrite,n)?(this._kill(t,e),
this._initProps(e,t,n,a)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(z[e._gsTweenID]=!0),o)},c.render=function(e,t,n){var i,a,r,s,o=this._time,l=this._duration,u=this._rawPrevTime;if(e>=l-1e-7)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(i=!0,a="onComplete",n=n||this._timeline.autoRemoveChildren),0===l&&(this._initted||!this.vars.lazy||n)&&(this._startTime===this._timeline._duration&&(e=0),
(u<0||e<=0&&e>=-1e-7||1e-10===u&&"isPause"!==this.data)&&u!==e&&(n=!0,u>1e-10&&(a="onReverseComplete")),this._rawPrevTime=s=!t||e||u===e?e:1e-10);else if(e<1e-7)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==o||0===l&&u>0)&&(a="onReverseComplete",i=this._reversed),e<0&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||n)&&(u>=0&&(1e-10!==u||"isPause"!==this.data)&&(n=!0),this._rawPrevTime=s=!t||e||u===e?e:1e-10)),
this._initted||(n=!0);else if(this._totalTime=this._time=e,this._easeType){var c=e/l,d=this._easeType,p=this._easePower;(1===d||3===d&&c>=.5)&&(c=1-c),3===d&&(c*=2),1===p?c*=c:2===p?c*=c*c:3===p?c*=c*c*c:4===p&&(c*=c*c*c*c),this.ratio=1===d?1-c:2===d?c:e/l<.5?c/2:1-c/2}else this.ratio=this._ease.getRatio(e/l);if(this._time!==o||n){if(!this._initted){if(this._init(),!this._initted||this._gc)return
;if(!n&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=o,this._rawPrevTime=u,U.push(this),void(this._lazy=[e,t]);this._time&&!i?this.ratio=this._ease.getRatio(this._time/l):i&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==o&&e>=0&&(this._active=!0),
0===o&&(this._startAt&&(e>=0?this._startAt.render(e,t,n):a||(a="_dummyGS")),this.vars.onStart&&(0===this._time&&0!==l||t||this._callback("onStart"))),r=this._firstPT;r;)r.f?r.t[r.p](r.c*this.ratio+r.s):r.t[r.p]=r.c*this.ratio+r.s,r=r._next;this._onUpdate&&(e<0&&this._startAt&&e!==-1e-4&&this._startAt.render(e,t,n),t||(this._time!==o||i)&&this._callback("onUpdate")),a&&(this._gc&&!n||(e<0&&this._startAt&&!this._onUpdate&&e!==-1e-4&&this._startAt.render(e,t,n),
i&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[a]&&this._callback(a),0===l&&1e-10===this._rawPrevTime&&1e-10!==s&&(this._rawPrevTime=0)))}},c._kill=function(e,t,n){if("all"===e&&(e=null),null==e&&(null==t||t===this.target))return this._lazy=!1,this._enabled(!1,!1);t="string"!=typeof t?t||this._targets||this.target:O.selector(t)||t;var i,a,r,s,o,l,u,c,d,p=n&&this._time&&n._startTime===this._startTime&&this._timeline===n._timeline
;if((g(t)||j(t))&&"number"!=typeof t[0])for(i=t.length;--i>-1;)this._kill(e,t[i],n)&&(l=!0);else{if(this._targets){for(i=this._targets.length;--i>-1;)if(t===this._targets[i]){o=this._propLookup[i]||{},this._overwrittenProps=this._overwrittenProps||[],a=this._overwrittenProps[i]=e?this._overwrittenProps[i]||{}:"all";break}}else{if(t!==this.target)return!1;o=this._propLookup,a=this._overwrittenProps=e?this._overwrittenProps||{}:"all"}if(o){if(u=e||o,
c=e!==a&&"all"!==a&&e!==o&&("object"!=typeof e||!e._tempKill),n&&(O.onOverwrite||this.vars.onOverwrite)){for(r in u)o[r]&&(d||(d=[]),d.push(r));if((d||!e)&&!te(this,n,t,d))return!1}for(r in u)(s=o[r])&&(p&&(s.f?s.t[s.p](s.s):s.t[s.p]=s.s,l=!0),s.pg&&s.t._kill(u)&&(l=!0),s.pg&&0!==s.t._overwriteProps.length||(s._prev?s._prev._next=s._next:s===this._firstPT&&(this._firstPT=s._next),s._next&&(s._next._prev=s._prev),s._next=s._prev=null),delete o[r]),c&&(a[r]=1)
;!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},c.invalidate=function(){return this._notifyPluginsOfEnabled&&O._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],A.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-1e-10,this.render(-this._delay)),this},c._enabled=function(e,t){if(p||d.wake(),e&&this._gc){
var n,i=this._targets;if(i)for(n=i.length;--n>-1;)this._siblings[n]=ee(i[n],this,!0);else this._siblings=ee(this.target,this,!0)}return A.prototype._enabled.call(this,e,t),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&O._onPluginEvent(e?"_onEnable":"_onDisable",this)},O.to=function(e,t,n){return new O(e,t,n)},O.from=function(e,t,n){return n.runBackwards=!0,n.immediateRender=0!=n.immediateRender,new O(e,t,n)},O.fromTo=function(e,t,n,i){return i.startAt=n,
i.immediateRender=0!=i.immediateRender&&0!=n.immediateRender,new O(e,t,i)},O.delayedCall=function(e,t,n,i,a){return new O(t,0,{delay:e,onComplete:t,onCompleteParams:n,callbackScope:i,onReverseComplete:t,onReverseCompleteParams:n,immediateRender:!1,lazy:!1,useFrames:a,overwrite:0})},O.set=function(e,t){return new O(e,0,t)},O.getTweensOf=function(e,t){if(null==e)return[];e="string"!=typeof e?e:O.selector(e)||e;var n,i,a,r;if((g(e)||j(e))&&"number"!=typeof e[0]){for(n=e.length,
i=[];--n>-1;)i=i.concat(O.getTweensOf(e[n],t));for(n=i.length;--n>-1;)for(r=i[n],a=n;--a>-1;)r===i[a]&&i.splice(n,1)}else for(i=ee(e).concat(),n=i.length;--n>-1;)(i[n]._gc||t&&!i[n].isActive())&&i.splice(n,1);return i},O.killTweensOf=O.killDelayedCallsTo=function(e,t,n){"object"==typeof t&&(n=t,t=!1);for(var i=O.getTweensOf(e,t),a=i.length;--a>-1;)i[a]._kill(n,e)};var ae=I("plugins.TweenPlugin",function(e,t){this._overwriteProps=(e||"").split(","),this._propName=this._overwriteProps[0],
this._priority=t||0,this._super=ae.prototype},!0);if(c=ae.prototype,ae.version="1.18.0",ae.API=2,c._firstPT=null,c._addTween=Q,c.setRatio=F,c._kill=function(e){var t,n=this._overwriteProps,i=this._firstPT;if(null!=e[this._propName])this._overwriteProps=[];else for(t=n.length;--t>-1;)null!=e[n[t]]&&n.splice(t,1);for(;i;)null!=e[i.n]&&(i._next&&(i._next._prev=i._prev),i._prev?(i._prev._next=i._next,i._prev=null):this._firstPT===i&&(this._firstPT=i._next)),i=i._next;return!1},
c._roundProps=function(e,t){for(var n=this._firstPT;n;)(e[this._propName]||null!=n.n&&e[n.n.split(this._propName+"_").join("")])&&(n.r=t),n=n._next},O._onPluginEvent=function(e,t){var n,i,a,r,s,o=t._firstPT;if("_onInitAllProps"===e){for(;o;){for(s=o._next,i=a;i&&i.pr>o.pr;)i=i._next;(o._prev=i?i._prev:r)?o._prev._next=o:a=o,(o._next=i)?i._prev=o:r=o,o=s}o=t._firstPT=a}for(;o;)o.pg&&"function"==typeof o.t[e]&&o.t[e]()&&(n=!0),o=o._next;return n},ae.activate=function(e){
for(var t=e.length;--t>-1;)e[t].API===ae.API&&(W[(new e[t])._propName]=e[t]);return!0},S.plugin=function(e){if(!(e&&e.propName&&e.init&&e.API))throw"illegal plugin definition.";var t,n=e.propName,i=e.priority||0,a=e.overwriteProps,r={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},s=I("plugins."+n.charAt(0).toUpperCase()+n.substr(1)+"Plugin",function(){ae.call(this,n,i),this._overwriteProps=a||[]},e.global===!0),o=s.prototype=new ae(n)
;o.constructor=s,s.API=e.API;for(t in r)"function"==typeof e[t]&&(o[r[t]]=e[t]);return s.version=e.version,ae.activate([s]),s},l=i._gsQueue){for(u=0;u<l.length;u++)l[u]();for(c in y)y[c].func||i.console.log("GSAP encountered missing dependency: com.greensock."+c)}p=!1}}(void 0!==e&&e.exports&&void 0!==i?i:this||s),e.exports=TweenLite}).call(t,n(222))},function(e,t,n){"use strict";var i=n(3254),a=i.a.Symbol;t.a=a},function(e,t,n){function i(e){var t=-1,n=null==e?0:e.length
;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}var a=n(3300),r=n(3301),s=n(3302),o=n(3303),l=n(3304);i.prototype.clear=a,i.prototype.delete=r,i.prototype.get=s,i.prototype.has=o,i.prototype.set=l,e.exports=i},function(e,t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}e.exports=n},function(e,t,n){function i(e,t,n){"__proto__"==t&&a?a(e,t,{
configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var a=n(1116);e.exports=i},function(e,t,n){function i(e,t,n,i){var d=-1,p=r,h=!0,f=e.length,v=[],m=t.length;if(!f)return v;n&&(t=o(t,l(n))),i?(p=s,h=!1):t.length>=c&&(p=u,h=!1,t=new a(t));e:for(;++d<f;){var g=e[d],y=null==n?g:n(g);if(g=i||0!==g?g:0,h&&y===y){for(var b=m;b--;)if(t[b]===y)continue e;v.push(g)}else p(t,y,i)||v.push(g)}return v}var a=n(695),r=n(697),s=n(698),o=n(699),l=n(700),u=n(701),c=200;e.exports=i},function(e,t,n){
function i(e,t,n,s,o){var l=-1,u=e.length;for(n||(n=r),o||(o=[]);++l<u;){var c=e[l];t>0&&n(c)?t>1?i(c,t-1,n,s,o):a(o,c):s||(o[o.length]=c)}return o}var a=n(3263),r=n(3290);e.exports=i},function(e,t,n){function i(e,t,n){var i=-1,d=r,p=e.length,h=!0,f=[],v=f;if(n)h=!1,d=s;else if(p>=c){var m=t?null:l(e);if(m)return u(m);h=!1,d=o,v=new a}else v=t?[]:f;e:for(;++i<p;){var g=e[i],y=t?t(g):g;if(g=n||0!==g?g:0,h&&y===y){for(var b=v.length;b--;)if(v[b]===y)continue e;t&&v.push(y),f.push(g)
}else d(v,y,n)||(v!==f&&v.push(y),f.push(g))}return f}var a=n(695),r=n(697),s=n(698),o=n(701),l=n(3280),u=n(1119),c=200;e.exports=i},function(e,t,n){var i=n(486),a=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=a},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(222))},function(e,t){function n(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||a.test(e))&&e>-1&&e%1==0&&e<t}
var i=9007199254740991,a=/^(?:0|[1-9]\d*)$/;e.exports=n},function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}e.exports=n},function(e,t){function n(e){return e}e.exports=n},function(e,t,n){var i=n(3268),a=n(385),r=Object.prototype,s=r.hasOwnProperty,o=r.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return a(e)&&s.call(e,"callee")&&!o.call(e,"callee")};e.exports=l},function(e,t,n){function i(e){if(!r(e))return!1;var t=a(e)
;return t==o||t==l||t==s||t==u}var a=n(484),r=n(384),s="[object AsyncFunction]",o="[object Function]",l="[object GeneratorFunction]",u="[object Proxy]";e.exports=i},function(e,t){function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}var i=9007199254740991;e.exports=n},function(e,t){function n(){}e.exports=n},function(e,t,n){var i=n(1113),a=n(323),r=n(489),s=a(function(e,t){return r(e)?i(e,t):[]});e.exports=s},,function(e,t){var n={};n.hexTable=new Array(256)
;for(var i=0;i<256;++i)n.hexTable[i]="%"+((i<16?"0":"")+i.toString(16)).toUpperCase();t.arrayToObject=function(e,t){for(var n=t.plainObjects?Object.create(null):{},i=0,a=e.length;i<a;++i)void 0!==e[i]&&(n[i]=e[i]);return n},t.merge=function(e,n,i){if(!n)return e;if("object"!=typeof n)return Array.isArray(e)?e.push(n):"object"==typeof e?e[n]=!0:e=[e,n],e;if("object"!=typeof e)return e=[e].concat(n);Array.isArray(e)&&!Array.isArray(n)&&(e=t.arrayToObject(e,i))
;for(var a=Object.keys(n),r=0,s=a.length;r<s;++r){var o=a[r],l=n[o];Object.prototype.hasOwnProperty.call(e,o)?e[o]=t.merge(e[o],l,i):e[o]=l}return e},t.decode=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},t.encode=function(e){if(0===e.length)return e;"string"!=typeof e&&(e=""+e);for(var t="",i=0,a=e.length;i<a;++i){var r=e.charCodeAt(i)
;45===r||46===r||95===r||126===r||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122?t+=e[i]:r<128?t+=n.hexTable[r]:r<2048?t+=n.hexTable[192|r>>6]+n.hexTable[128|63&r]:r<55296||r>=57344?t+=n.hexTable[224|r>>12]+n.hexTable[128|r>>6&63]+n.hexTable[128|63&r]:(++i,r=65536+((1023&r)<<10|1023&e.charCodeAt(i)),t+=n.hexTable[240|r>>18]+n.hexTable[128|r>>12&63]+n.hexTable[128|r>>6&63]+n.hexTable[128|63&r])}return t},t.compact=function(e,n){if("object"!=typeof e||null===e)return e;n=n||[];var i=n.indexOf(e)
;if(i!==-1)return n[i];if(n.push(e),Array.isArray(e)){for(var a=[],r=0,s=e.length;r<s;++r)void 0!==e[r]&&a.push(e[r]);return a}var o=Object.keys(e);for(r=0,s=o.length;r<s;++r){var l=o[r];e[l]=t.compact(e[l],n)}return e},t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isBuffer=function(e){return null!==e&&void 0!==e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}},function(e,t,n){"use strict";var i=n(3334),a=window.Raven,r=new i
;r.noConflict=function(){return window.Raven=a,r},r.afterLoad(),e.exports=r},function(e,t,n){"use strict";function i(e){return void 0===e}function a(e){return"function"==typeof e}function r(e){return"[object String]"===m.toString.call(e)}function s(e){return"object"==typeof e&&null!==e}function o(e){for(var t in e)return!1;return!0}function l(e){return s(e)&&"[object Error]"===m.toString.call(e)||e instanceof Error}function u(e,t){var n,a
;if(i(e.length))for(n in e)p(e,n)&&t.call(null,n,e[n]);else if(a=e.length)for(n=0;n<a;n++)t.call(null,n,e[n])}function c(e,t){return t?(u(t,function(t,n){e[t]=n}),e):e}function d(e,t){return!t||e.length<=t?e:e.substr(0,t)+"\u2026"}function p(e,t){return m.hasOwnProperty.call(e,t)}function h(e){for(var t,n=[],i=0,a=e.length;i<a;i++)t=e[i],r(t)?n.push(t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")):t&&t.source&&n.push(t.source);return new RegExp(n.join("|"),"i")}function f(e){var t=[]
;return u(e,function(e,n){t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))}),t.join("&")}function v(){var e=window.crypto||window.msCrypto;if(!i(e)&&e.getRandomValues){var t=new Uint16Array(8);e.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;var n=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return n(t[0])+n(t[1])+n(t[2])+n(t[3])+n(t[4])+n(t[5])+n(t[6])+n(t[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){
var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}var m=Object.prototype;e.exports={isUndefined:i,isFunction:a,isString:r,isObject:s,isEmptyObject:o,isError:l,each:u,objectMerge:c,truncate:d,hasKey:p,joinRegExp:h,urlencode:f,uuid4:v}},function(e,t,n){"use strict";t.__esModule=!0;var i=n(3323),a=function(e){return e&&e.__esModule?e:{default:e}}(i),r=a.default(function(){return/firefox/i.test(navigator.userAgent)});t.isFirefox=r;var s=a.default(function(){
return Boolean(window.safari)});t.isSafari=s},function(e,t,n){"use strict";function i(e,t){return t===e||null!==t&&null!==e&&r.default(t,e)}t.__esModule=!0,t.default=i;var a=n(706),r=function(e){return e&&e.__esModule?e:{default:e}}(a);e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){
if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){
var t=e.DecoratedComponent,n=e.createHandler,i=e.createMonitor,s=e.createConnector,p=e.registerHandler,f=e.containerDisplayName,m=e.getType,g=e.collect,b=e.options,S=b.arePropsEqual,I=void 0===S?v.default:S,M=t.displayName||t.name||"Component";return function(e){function v(t,r){a(this,v),e.call(this,t,r),this.handleChange=this.handleChange.bind(this),this.handleChildRef=this.handleChildRef.bind(this),
y.default("object"==typeof this.context.dragDropManager,"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://gaearon.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",M,M),this.manager=this.context.dragDropManager,this.handlerMonitor=i(this.manager),this.handlerConnector=s(this.manager.getBackend()),this.handler=n(this.handlerMonitor),
this.disposable=new d.SerialDisposable,this.receiveProps(t),this.state=this.getCurrentState(),this.dispose()}return r(v,e),v.prototype.getHandlerId=function(){return this.handlerId},v.prototype.getDecoratedComponentInstance=function(){return this.decoratedComponentInstance},v.prototype.shouldComponentUpdate=function(e,t){return!I(e,this.props)||!h.default(t,this.state)},l(v,null,[{key:"DecoratedComponent",value:t,enumerable:!0},{key:"displayName",value:f+"("+M+")",enumerable:!0},{
key:"contextTypes",value:{dragDropManager:u.PropTypes.object.isRequired},enumerable:!0}]),v.prototype.componentDidMount=function(){this.isCurrentlyMounted=!0,this.disposable=new d.SerialDisposable,this.currentType=null,this.receiveProps(this.props),this.handleChange()},v.prototype.componentWillReceiveProps=function(e){I(e,this.props)||(this.receiveProps(e),this.handleChange())},v.prototype.componentWillUnmount=function(){this.dispose(),this.isCurrentlyMounted=!1},
v.prototype.receiveProps=function(e){this.handler.receiveProps(e),this.receiveType(m(e))},v.prototype.receiveType=function(e){if(e!==this.currentType){this.currentType=e;var t=p(e,this.handler,this.manager),n=t.handlerId,i=t.unregister;this.handlerId=n,this.handlerMonitor.receiveHandlerId(n),this.handlerConnector.receiveHandlerId(n);var a=this.manager.getMonitor(),r=a.subscribeToStateChange(this.handleChange,{handlerIds:[n]})
;this.disposable.setDisposable(new d.CompositeDisposable(new d.Disposable(r),new d.Disposable(i)))}},v.prototype.handleChange=function(){if(this.isCurrentlyMounted){var e=this.getCurrentState();h.default(e,this.state)||this.setState(e)}},v.prototype.dispose=function(){this.disposable.dispose(),this.handlerConnector.receiveHandlerId(null)},v.prototype.handleChildRef=function(e){this.decoratedComponentInstance=e,this.handler.receiveComponent(e)},v.prototype.getCurrentState=function(){
var e=g(this.handlerConnector.hooks,this.handlerMonitor);return e},v.prototype.render=function(){return c.default.createElement(t,o({},this.props,this.state,{ref:this.handleChildRef}))},v}(u.Component)}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,
i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();t.default=s;var u=n(0),c=i(u),d=n(2654),p=n(706),h=i(p),f=n(1134),v=i(f),m=n(195),g=(i(m),n(121)),y=i(g);e.exports=t.default},function(e,t,n){"use strict";function i(e,t){return"string"==typeof e||"symbol"==typeof e||t&&r.default(e)&&e.every(function(e){return i(e,!1)})}t.__esModule=!0,t.default=i;var a=n(263),r=function(e){return e&&e.__esModule?e:{
default:e}}(a);e.exports=t.default},function(e,t,n){"use strict";function i(e,t){if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var a=Object.prototype.hasOwnProperty,r=0;r<n.length;r++){if(!a.call(t,n[r]))return!1;var s=e[n[r]],o=t[n[r]];if(s!==o||"object"==typeof s||"object"==typeof o)return!1}return!0}t.__esModule=!0,t.default=i,e.exports=t.default},function(e,t,n){"use strict"
;function i(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors. You can either wrap "+t+" into a <div>, or turn it into a drag source or a drop target itself.")}}function a(e){return function(){var t=arguments.length<=0||void 0===arguments[0]?null:arguments[0],n=arguments.length<=1||void 0===arguments[1]?null:arguments[1];if(!l.isValidElement(t)){return void e(t,n)}var a=t;i(a)
;var r=n?function(t){return e(t,n)}:e;return o.default(a,r)}}function r(e){var t={};return Object.keys(e).forEach(function(n){var i=e[n],r=a(i);t[n]=function(){return r}}),t}t.__esModule=!0,t.default=r;var s=n(3362),o=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(0);e.exports=t.default},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){
if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){var n={}
;for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function o(e){var t,o,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=l.getDisplayName,g=void 0===c?function(e){return"ConnectAdvanced("+e+")"
}:c,y=l.methodName,b=void 0===y?"connectAdvanced":y,S=l.renderCountProp,I=void 0===S?void 0:S,M=l.shouldHandleStateChanges,C=void 0===M||M,w=l.storeKey,D=void 0===w?"store":w,P=l.withRef,T=void 0!==P&&P,x=s(l,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),E=D+"Subscription",N=m++,L=(t={},t[D]=f.a,t[E]=p.PropTypes.instanceOf(h.a),t),A=(o={},o[E]=p.PropTypes.instanceOf(h.a),o);return function(t){
d()("function"==typeof t,"You must pass a component to the function returned by connect. Instead received "+t);var s=t.displayName||t.name||"Component",o=g(s),l=v({},x,{getDisplayName:g,methodName:b,renderCountProp:I,shouldHandleStateChanges:C,storeKey:D,withRef:T,displayName:o,wrappedComponentName:s,WrappedComponent:t}),c=function(s){function u(e,t){i(this,u);var n=a(this,s.call(this,e,t));return n.version=N,n.state={},n.renderCount=0,n.store=n.props[D]||n.context[D],n.parentSub=e[E]||t[E],
n.setWrappedInstance=n.setWrappedInstance.bind(n),d()(n.store,'Could not find "'+D+'" in either the context or props of "'+o+'". Either wrap the root component in a <Provider>, or explicitly pass "'+D+'" as a prop to "'+o+'".'),n.getState=n.store.getState.bind(n.store),n.initSelector(),n.initSubscription(),n}return r(u,s),u.prototype.getChildContext=function(){var e;return e={},e[E]=this.subscription,e},u.prototype.componentDidMount=function(){C&&(this.subscription.trySubscribe(),
this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},u.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},u.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},u.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.store=null,this.parentSub=null,this.selector.run=function(){}},u.prototype.getWrappedInstance=function(){
return d()(T,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+b+"() call."),this.wrappedInstance},u.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},u.prototype.initSelector=function(){var t=this.store.dispatch,n=this.getState,i=e(t,l),a=this.selector={shouldComponentUpdate:!0,props:i(n(),this.props),run:function(e){try{var t=i(n(),e);(a.error||t!==a.props)&&(a.shouldComponentUpdate=!0,a.props=t,a.error=null)}catch(e){
a.shouldComponentUpdate=!0,a.error=e}}}},u.prototype.initSubscription=function(){var e=this;C&&function(){var t=e.subscription=new h.a(e.store,e.parentSub),n={};t.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=function(){this.componentDidUpdate=void 0,t.notifyNestedSubs()},this.setState(n)):t.notifyNestedSubs()}.bind(e)}()},u.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},
u.prototype.addExtraProps=function(e){if(!T&&!I)return e;var t=v({},e);return T&&(t.ref=this.setWrappedInstance),I&&(t[I]=this.renderCount++),t},u.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return n.i(p.createElement)(t,this.addExtraProps(e.props))},u}(p.Component);return c.WrappedComponent=t,c.displayName=o,c.childContextTypes=A,c.contextTypes=L,c.propTypes=L,u()(c,t)}}var l=n(3246),u=n.n(l),c=n(121),d=n.n(c),p=n(0),h=(n.n(p),
n(3427)),f=n(1166);t.a=o;var v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},m=0},function(e,t,n){"use strict";function i(e){return function(t,n){function i(){return a}var a=e(t,n);return i.dependsOnOwnProps=!1,i}}function a(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function r(e,t){return function(t,n){
var i=(n.displayName,function(e,t){return i.dependsOnOwnProps?i.mapToProps(e,t):i.mapToProps(e)});return i.dependsOnOwnProps=a(e),i.mapToProps=function(t,n){i.mapToProps=e;var r=i(t,n);return"function"==typeof r&&(i.mapToProps=r,i.dependsOnOwnProps=a(r),r=i(t,n)),r},i}}n(1167);t.b=i,t.a=r},function(e,t,n){"use strict";var i=n(0);n.n(i);t.a=i.PropTypes.shape({subscribe:i.PropTypes.func.isRequired,dispatch:i.PropTypes.func.isRequired,getState:i.PropTypes.func.isRequired})},function(e,t,n){
"use strict";n(3256),n(722)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.")
;if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}}t.__esModule=!0,t.nameShape=void 0,t.transitionTimeout=a;var r=n(0),s=(i(r),n(490)),o=i(s);t.nameShape=o.default.oneOfType([o.default.string,o.default.shape({enter:o.default.string,leave:o.default.string,active:o.default.string}),o.default.shape({enter:o.default.string,enterActive:o.default.string,leave:o.default.string,leaveActive:o.default.string,appear:o.default.string,
appearActive:o.default.string})])},,,,,,function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){if(0===t.length)return arguments.length<=0?void 0:arguments[0];var e=t[t.length-1];return t.slice(0,-1).reduceRight(function(e,t){return t(e)},e.apply(void 0,arguments))}}t.__esModule=!0,t.default=i},function(e,t,n){"use strict";function i(e,t,n){function a(){f===h&&(f=h.slice())}function o(){return p}function l(e){
if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return a(),f.push(e),function(){if(t){t=!1,a();var n=f.indexOf(e);f.splice(n,1)}}}function u(e){if(!(0,r.default)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(v)throw new Error("Reducers may not dispatch actions.");try{v=!0,p=d(p,e)
}finally{v=!1}for(var t=h=f,n=0;n<t.length;n++)t[n]();return e}function c(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");d=e,u({type:s.INIT})}if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(i)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var d=e,p=t,h=[],f=h,v=!1;return u({type:s.INIT}),{dispatch:u,
subscribe:l,getState:o,replaceReducer:c}}t.__esModule=!0,t.ActionTypes=void 0,t.default=i;var a=n(195),r=function(e){return e&&e.__esModule?e:{default:e}}(a),s=t.ActionTypes={INIT:"@@redux/INIT"}},function(e,t,n){"use strict";function i(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}t.__esModule=!0,t.default=i},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBzdHlsZT0ic3Ryb2tlLW1pdGVybGltaXQ6MS40MTQyMTtjbGlwLXJ1bGU6ZXZlbm9kZDtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2UtbGluZWpvaW46cm91bmQiPgogPGNpcmNsZSBpZD0iMCIgY3g9IjUwIiBjeT0iNTAiIHI9IjUwIiBzdHlsZT0iZmlsbDp1cmwoIzMpIi8+CiA8Y2lyY2xlIGlkPSIxIiBjeD0iNTAiIGN5PSI1MCIgcj0iNDciIHN0eWxlPSJmaWxsOnVybCgjNCkiLz4KIDxwYXRoIGlkPSIyIiBkPSJtMzIuOSAxOC44bDE4LjE2MSAwIDIwLjAzOSAzMS4yNS0yMC4wMzkgMzEuMjUtMTguMTYxIDAgMjAuMDM5LTMxLjI1LTIwLjAzOS0zMS4yNSIgc3R5bGU9ImZpbGw6dXJsKCM1KSIvPgogPGRlZnM+CiAgPGxpbmVhckdyYWRpZW50IGlkPSIzIiB4MT0iMTAwIiB4Mj0iMCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICA8c3RvcCBvZmZzZXQ9IjAlIiBzdHlsZT0ic3RvcC1jb2xvcjojZjliZTAzIi8+CiAgIDxzdG9wIG9mZnNldD0iMTAwJSIgc3R5bGU9InN0b3AtY29sb3I6I2NjN2IxOSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPGxpbmVhckdyYWRpZW50IGlkPSI0IiB4MT0iOTciIHgyPSIzIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgIDxzdG9wIG9mZnNldD0iMCUiIHN0eWxlPSJzdG9wLWNvbG9yOiMyODI4MjgiLz4KICAgPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdHlsZT0ic3RvcC1jb2xvcjojMWYxZjFmIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmFkaWFsR3JhZGllbnQgaWQ9IjUiIGN4PSI2NyIgY3k9IjQ5LjkiIHI9IjU3LjgxMjMiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4bGluazpocmVmPSIjMyIvPgogPC9kZWZzPgo8L3N2Zz4K"
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTYwIDU2MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJmaWxsOiNjYzdiMTk7c3Ryb2tlLW1pdGVybGltaXQ6MS40MTQyMTtjbGlwLXJ1bGU6ZXZlbm9kZDtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2UtbGluZWpvaW46cm91bmQiPgogPHBhdGggZD0ibTI4MCA1NjBjLTE1NCAwLTI4MC0xMjYtMjgwLTI4MCAwLTE1NCAxMjYtMjgwIDI4MC0yODAgMTU0IDAgMjgwIDEyNiAyODAgMjgwIDAgMTU0LTEyNiAyODAtMjgwIDI4MG0wLTU0Ny44NjdjLTE0Ny40NjYgMC0yNjcuODY2IDEyMC40LTI2Ny44NjYgMjY3Ljg2NiAwIDE0Ny40NjcgMTIwLjQgMjY3Ljg2NyAyNjcuODY2IDI2Ny44NjcgMTQ3LjQ2NiAwIDI2Ny44NjYtMTIwLjQgMjY3Ljg2Ni0yNjcuODY3LS45MzMtMTQ3LjQ2Ni0xMjAuNC0yNjcuODY2LTI2Ny44NjYtMjY3Ljg2Nm0xMzQuNCAzODcuMzMzbC0yNjkuNzM0IDBjLTMuNzMzIDAtNi41MzMtMi44LTYuNTMzLTYuNTMzbDAtMjI0LjkzNGMwLTMuNzMzIDIuOC02LjUzMyA2LjUzMy02LjUzM2wyNjkuNzM0IDBjMy43MzQgMCA2LjUzNCAyLjggNi41MzQgNi41MzNsMCAyMjQuOTM0YzAgMy43MzMtMi44IDYuNTMzLTYuNTM0IDYuNTMzbS0yNjMuMi03OS4zOTNsMCA2Ni4zMjcgMjU3LjYgMCAwLTMyLjMxN2MtLjkzMy4zNS0xLjg2Ny41ODMtMi44LjU4My0xLjg2NiAwLTIuOC0uOTMzLTMuNzM0LTEuODY2bC01My4yLTQ1LjczNC02MS42IDQxLjA2Ny04MC4yNjYtODUuODY3LTU2IDU3LjgwN20yNTcuNiAyMi43MTlsMC0xNjguMjU4LTI1Ny42IDAgMCAxMjguNTE0IDU2LjkzNC01OC41MTQgODEuMiA4Ny43MzMgNjAuNjY2LTQwLjEzMyA1OC44IDUwLjY1OG0tMTEzLjg2Ni02OS4zMjZjLTIxLjQ2NyAwLTM4LjI2Ny0xNi44LTM4LjI2Ny0zOC4yNjYgMC0yMS40NjYgMTYuOC0zOC4yNjYgMzguMjY3LTM4LjI2NiAyMS40NjYgMCAzOC4yNjYgMTYuOCAzOC4yNjYgMzguMjY2IDAgMjAuNTM0LTE3LjczNCAzOC4yNjYtMzguMjY2IDM4LjI2Nm0wLTY0LjRjLTE0IDAtMjYuMTM0IDExLjItMjYuMTM0IDI2LjEzNCAwIDE0IDExLjIgMjYuMTM0IDI2LjEzNCAyNi4xMzQgMTQgMCAyNi4xMzMtMTEuMiAyNi4xMzMtMjYuMTM0LS45MzMtMTQuOTM0LTEyLjEzMy0yNi4xMzQtMjYuMTMzLTI2LjEzNCIvPgo8L3N2Zz4K"
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTYwIDU2MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJmaWxsOiNjYzdiMTk7c3Ryb2tlLW1pdGVybGltaXQ6MS40MTQyMTtjbGlwLXJ1bGU6ZXZlbm9kZDtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2UtbGluZWpvaW46cm91bmQiPgogPHBhdGggZD0ibTI4MCA1NjBjLTE1NCAwLTI4MC0xMjYtMjgwLTI4MCAwLTE1NCAxMjYtMjgwIDI4MC0yODAgMTU0IDAgMjgwIDEyNiAyODAgMjgwIDAgMTU0LTEyNiAyODAtMjgwIDI4MG0wLTU0Ny44NjZjLTE0Ny40NjYgMC0yNjcuODY2IDEyMC40LTI2Ny44NjYgMjY3Ljg2NiAwIDE0Ny40NjYgMTIwLjQgMjY3Ljg2NyAyNjcuODY2IDI2Ny44NjcgMTQ3LjQ2NiAwIDI2Ny44NjYtMTIwLjQwMSAyNjcuODY2LTI2Ny44NjcgMC0xNDcuNDY2LTEyMC40LTI2Ny44NjYtMjY3Ljg2Ni0yNjcuODY2bS0zLjczNCAyMjQuOTMzYzEuMTY3LTEuMTY3IDIuOC0xLjg2NyA0LjY2OC0xLjg2NyAyLjk1MSAwIDUuMzE5IDEuNzUgNi4xODEgNC4zMjdsNjguNDg0IDQ5LjgwN2MyLjggMS44NjYgMy43MzQgNS42LjkzNCA4LjQgMCAxLjg2Ni0xLjg2NiAyLjc5OS0zLjczNCAyLjhsLjAwMSAwLS4wMDEgMGMtLjkzMyAwLTIuNzk5LS4wMDEtMy43MzMtLjkzNGwtNjEuNTk5LTQ0LjcyMyAwIDE0Ni40NTdjLS45MzMgMi44LTMuNzMzIDUuNi02LjUzMyA1LjYtMy43MzQgMC02LjUzNC0yLjgtNi41MzQtNi41MzRsMC0xNDUuNjc2LTYyLjUzNCA0My45NDNjLTIuOCAxLjg2Ny02LjUzMyAxLjg2Ny04LjQtLjkzMy0xLjg2Ni0yLjgtMS44NjYtNi41MzQuOTM0LTguNGw3MS44NjYtNTIuMjY3bS01My4xOTkgMTEwLjEzNGwtMzcuMzMzIDBjLTI4LjkzNCAwLTUyLjI2Ny0yMy4zMzQtNTIuMjY3LTUyLjI2NyAwLTI4LjkzMyAyMy4zMzQtNTIuMjY2IDUyLjI2Ny01Mi4yNjZsNi41MzMgMCAwLTguNGMwLTQ0LjggMzYuNC04MS4yIDgxLjItODEuMiAzOS4yIDAgNzIuOCAyOCA3OS4zMzQgNjUuMzMzIDQuNjY2LS45MzMgOC40LS45MzMgMTMuMDY2LS45MzMgMzUuNDY3IDAgNjQuNCAyOC45MzMgNjQuNCA2NC40IDAgMTcuNzMzLTcuNDY2IDM1LjQ2Ni0yMS40NjYgNDcuNi0xMC4yNjcgMTEuMi0yNS4yIDE3LjczMy0zOS4yIDE3LjczM2wtLjAwMS0uMDAxLTI5Ljg2NiAwYy0zLjczNCAwLTYuNTM0LTIuOC02LjUzNC02LjUzNCAwLTMuNzMzIDIuOC02LjUzMyA2LjUzNC02LjUzM2wyOS44NjYgMGMxMS4yIDAgMjIuNC00LjY2NyAyOS44NjYtMTMuMDY3IDExLjItMTAuMjY2IDE3LjczNC0yNC4yNjYgMTcuNzM0LTM5LjIgMC0yOC45MzMtMjMuMzM0LTUyLjI2Ni01Mi4yNjYtNTIuMjY2LTUuNiAwLTExLjIuOTM0LTE1Ljg2NyAyLjgtMS44NjYuOTM0LTMuNzMzIDAtNS42LS45MzQtMS44NjYtLjkzMy0yLjgtMi44LTIuOC00LjY2Ni0zLjczMy0zNS40NjYtMzIuNjY2LTYxLjYtNjguMTMzLTYxLjYtMzcuMzM0IDAtNjguMTM0IDMwLjgtNjguMTM0IDY4LjEzNCAwIDQuNjY2IDAgOS4zMzMuOTM0IDEzLjA2NiAwIDEuODY2IDAgMy43MzQtLjkzNCA1LjYtLjkzNCAxLjg2Ni0yLjggMS44NjYtNC42NjYgMS44NjZsLTE0IDBjLTIyLjQwMS4wMDEtNDAuMTM0IDE3LjczNC00MC4xMzQgNDAuMTM0IDAgMjIuNCAxNy43MzMgNDAuMTMzIDQwLjEzNCA0MC4xMzRsMzcuMzMzIDBjMy43MzQgMCA2LjUzNCAyLjggNi41MzQgNi41MzMgMCAzLjczNC0yLjggNi41MzQtNi41MzQgNi41MzQiLz4KPC9zdmc+Cg=="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTYwIDU2MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJmaWxsOiNjYzdiMTk7c3Ryb2tlLW1pdGVybGltaXQ6MS40MTQyMTtjbGlwLXJ1bGU6ZXZlbm9kZDtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2UtbGluZWpvaW46cm91bmQiPgogPHBhdGggZD0ibTI4MCA1NjBjLTE1NCAwLTI4MC0xMjYtMjgwLTI4MCAwLTE1NCAxMjYtMjgwIDI4MC0yODAgMTU0IDAgMjgwIDEyNiAyODAgMjgwIDAgMTU0LTEyNiAyODAtMjgwIDI4MG0wLTU0Ny44NjZjLTE0Ny40NjYgMC0yNjcuODY2IDEyMC40LTI2Ny44NjYgMjY3Ljg2NiAwIDE0Ny40NjYgMTIwLjQgMjY3Ljg2NyAyNjcuODY2IDI2Ny44NjcgMTQ3LjQ2NiAwIDI2Ny44NjYtMTIwLjQwMSAyNjcuODY2LTI2Ny44NjcgMC0xNDcuNDY2LTEyMC40LTI2Ny44NjYtMjY3Ljg2Ni0yNjcuODY2bTg2LjgwMSA0MTAuNjY2bC0xNzMuNjAxIDBjLTMuNzM0IDAtNi41MzQtMi44LTYuNTM0LTYuNTM0bDAtMjczLjQ2NmMwLTMuNzM0IDIuOC02LjUzNCA2LjUzNC02LjUzNGwxNzQuNTM0IDBjMy43MzMgMCA2LjUzMyAyLjggNi41MzMgNi41MzRsMCAyNzMuNDY2Yy0uOTMzIDMuNzM0LTMuNzMzIDYuNTM0LTcuNDY2IDYuNTM0bS0xNjguMDAxLTEyLjEzNGwxNjEuNDY2IDAgMC0yNjEuMzM0LTE2MS40NjYgMCAwIDI2MS4zMzRtOTYuMTM0LTM0LjUzMmMwIDguMjQ3LTYuNjg3IDE0LjkzMy0xNC45MzQgMTQuOTMzLTguMjQ3IDAtMTQuOTM0LTYuNjg2LTE0LjkzNC0xNC45MzMgMC04LjI0OCA2LjY4Ny0xNC45MzQgMTQuOTM0LTE0LjkzNCA4LjI0NyAwIDE0LjkzNCA2LjY4NiAxNC45MzQgMTQuOTM0bTQ3LjYtMjhsLTEyNS4wNjcgMGMtMy43MzMgMC02LjUzMy0yLjgtNi41MzMtNi41MzRsMC0xNTYuOGMwLTMuNzM0IDIuOC02LjUzNCA2LjUzMy02LjUzNGwxMjQuMTM0IDBjMy43MzMgMCA2LjUzMyAyLjggNi41MzMgNi41MzRsMCAxNTcuNzM0YzAgMi43OTktMi44IDUuNTk5LTUuNiA1LjZtLTExOC41MzQtMTIuMTM0bDExMiAwIDAtMTQ1LjYtMTEyIDAgMCAxNDUuNiIvPgo8L3N2Zz4K"
},,,,function(e,t,n){"use strict";var i=n(18),a=n(1613),r=n(2564),s=(n(1616),new i.a.Application);s.addInitializer(function(){return n.i(r.a)().then(function(){return n.i(a.a)()})}),t.a=s},function(e,t){},,,function(e,t,n){(function(e){+function(e){"use strict";var t=function(n,i){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,i)};t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(e){var t="disabled",n=this.$element,i=n.is("input")?"val":"html",a=n.data();e+="Text",
a.resetText||n.data("resetText",n[i]()),n[i](a[e]||this.options[e]),setTimeout(function(){"loadingText"==e?n.addClass(t).attr(t,t):n.removeClass(t).removeAttr(t)},0)},t.prototype.toggle=function(){var e=this.$element.closest('[data-toggle="buttons"]');if(e.length){"radio"===this.$element.find("input").prop("checked",!this.$element.hasClass("active")).trigger("change").prop("type")&&e.find(".active").removeClass("active")}this.$element.toggleClass("active")};var n=e.fn.button
;e.fn.button=function(n){return this.each(function(){var i=e(this),a=i.data("bs.button"),r="object"==typeof n&&n;a||i.data("bs.button",a=new t(this,r)),"toggle"==n?a.toggle():n&&a.setState(n)})},e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.bs.button.data-api","[data-toggle^=button]",function(t){var n=e(t.target);n.hasClass("btn")||(n=n.closest(".btn")),n.button("toggle"),t.preventDefault()})}(e)}).call(t,n(10))},function(e,t,n){
(function(e){+function(e){"use strict";function t(){e(i).remove(),e(a).each(function(t){var i=n(e(this));i.hasClass("open")&&(i.trigger(t=e.Event("hide.bs.dropdown")),t.isDefaultPrevented()||i.removeClass("open").trigger("hidden.bs.dropdown"))})}function n(t){var n=t.attr("data-target");n||(n=t.attr("href"),n=n&&/#/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&e(n);return i&&i.length?i:t.parent()}var i=".dropdown-backdrop",a="[data-toggle=dropdown]",r=function(t){
e(t).on("click.bs.dropdown",this.toggle)};r.prototype.toggle=function(i){var a=e(this);if(!a.is(".disabled, :disabled")){var r=n(a),s=r.hasClass("open");if(t(),!s){if("ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&e('<div class="dropdown-backdrop"/>').insertAfter(e(this)).on("click",t),r.trigger(i=e.Event("show.bs.dropdown")),i.isDefaultPrevented())return;r.toggleClass("open").trigger("shown.bs.dropdown"),a.focus()}return!1}},r.prototype.keydown=function(t){
if(/(38|40|27)/.test(t.keyCode)){var i=e(this);if(t.preventDefault(),t.stopPropagation(),!i.is(".disabled, :disabled")){var r=n(i),s=r.hasClass("open");if(!s||s&&27==t.keyCode)return 27==t.which&&r.find(a).focus(),i.click();var o=e("[role=menu] li:not(.divider):visible a",r);if(o.length){var l=o.index(o.filter(":focus"));38==t.keyCode&&l>0&&l--,40==t.keyCode&&l<o.length-1&&l++,~l||(l=0),o.eq(l).focus()}}}};var s=e.fn.dropdown;e.fn.dropdown=function(t){return this.each(function(){
var n=e(this),i=n.data("dropdown");i||n.data("dropdown",i=new r(this)),"string"==typeof t&&i[t].call(n)})},e.fn.dropdown.Constructor=r,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=s,this},e(document).on("click.bs.dropdown.data-api",t).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",a,r.prototype.toggle).on("keydown.bs.dropdown.data-api",a+", [role=menu]",r.prototype.keydown)}(e)}).call(t,n(10))},function(e,t,n){
(function(e){+function(e){"use strict";var t=function(t,n){this.options=n,this.$element=e(t),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.load(this.options.remote)};t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},t.prototype.toggle=function(e){return this[this.isShown?"hide":"show"](e)},t.prototype.show=function(t){var n=this,i=e.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(i),this.isShown||i.isDefaultPrevented()||(this.isShown=!0,this.escape(),
this.$element.on("click.dismiss.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.backdrop(function(){var i=e.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(document.body),n.$element.show(),i&&n.$element[0].offsetWidth,n.$element.addClass("in").attr("aria-hidden",!1),n.enforceFocus();var a=e.Event("shown.bs.modal",{relatedTarget:t});i?n.$element.find(".modal-dialog").one(e.support.transition.end,function(){n.$element.focus().trigger(a)
}).emulateTransitionEnd(300):n.$element.focus().trigger(a)}))},t.prototype.hide=function(t){t&&t.preventDefault(),t=e.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.modal"),
e.support.transition&&this.$element.hasClass("fade")?this.$element.one(e.support.transition.end,e.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},t.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.focus()},this))},t.prototype.escape=function(){
this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},t.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.removeBackdrop(),e.$element.trigger("hidden.bs.modal")})},t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},t.prototype.backdrop=function(t){
var n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=e.support.transition&&n;if(this.$backdrop=e('<div class="modal-backdrop '+n+'" />').appendTo(document.body),this.$element.on("click.dismiss.modal",e.proxy(function(e){e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return
;i?this.$backdrop.one(e.support.transition.end,t).emulateTransitionEnd(150):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(e.support.transition.end,t).emulateTransitionEnd(150):t()):t&&t()};var n=e.fn.modal;e.fn.modal=function(n,i){return this.each(function(){var a=e(this),r=a.data("bs.modal"),s=e.extend({},t.DEFAULTS,a.data(),"object"==typeof n&&n);r||a.data("bs.modal",r=new t(this,s)),
"string"==typeof n?r[n](i):s.show&&r.show(i)})},e.fn.modal.Constructor=t,e.fn.modal.noConflict=function(){return e.fn.modal=n,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var n=e(this),i=n.attr("href"),a=e(n.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),r=a.data("modal")?"toggle":e.extend({remote:!/#/.test(i)&&i},a.data(),n.data());t.preventDefault(),a.modal(r,this).one("hide",function(){n.is(":visible")&&n.focus()})}),
e(document).on("show.bs.modal",".modal",function(){e(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){e(document.body).removeClass("modal-open")})}(e)}).call(t,n(10))},function(e,t,n){(function(e){+function(e){"use strict";var t=function(e,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",e,t)};t.DEFAULTS={animation:!0,placement:"top",selector:!1,
template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},t.prototype.init=function(t,n,i){this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(i);for(var a=this.options.trigger.split(" "),r=a.length;r--;){var s=a[r];if("click"==s)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=s){
var o="hover"==s?"mouseenter":"focus",l="hover"==s?"mouseleave":"blur";this.$element.on(o+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.getOptions=function(t){return t=e.extend({},this.getDefaults(),this.$element.data(),t),
t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},t.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,function(e,i){n[e]!=i&&(t[e]=i)}),t},t.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show()
;n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)},t.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)},t.prototype.show=function(){var t=e.Event("show.bs."+this.type)
;if(this.hasContent()&&this.enabled){if(this.$element.trigger(t),t.isDefaultPrevented())return;var n=this.tip();this.setContent(),this.options.animation&&n.addClass("fade");var i="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,r=a.test(i);r&&(i=i.replace(a,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(i),
this.options.container?n.appendTo(this.options.container):n.insertAfter(this.$element);var s=this.getPosition(),o=n[0].offsetWidth,l=n[0].offsetHeight;if(r){var u=this.$element.parent(),c=i,d=document.documentElement.scrollTop||document.body.scrollTop,p="body"==this.options.container?window.innerWidth:u.outerWidth(),h="body"==this.options.container?window.innerHeight:u.outerHeight(),f="body"==this.options.container?0:u.offset().left
;i="bottom"==i&&s.top+s.height+l-d>h?"top":"top"==i&&s.top-d-l<0?"bottom":"right"==i&&s.right+o>p?"left":"left"==i&&s.left-o<f?"right":i,n.removeClass(c).addClass(i)}var v=this.getCalculatedOffset(i,s,o,l);this.applyPlacement(v,i),this.$element.trigger("shown.bs."+this.type)}},t.prototype.applyPlacement=function(e,t){var n,i=this.tip(),a=i[0].offsetWidth,r=i[0].offsetHeight,s=parseInt(i.css("margin-top"),10),o=parseInt(i.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(o)&&(o=0),e.top=e.top+s,
e.left=e.left+o,i.offset(e).addClass("in");var l=i[0].offsetWidth,u=i[0].offsetHeight;if("top"==t&&u!=r&&(n=!0,e.top=e.top+r-u),/bottom|top/.test(t)){var c=0;e.left<0&&(c=e.left*-2,e.left=0,i.offset(e),l=i[0].offsetWidth,u=i[0].offsetHeight),this.replaceArrow(c-a+l,l,"left")}else this.replaceArrow(u-r,u,"top");n&&i.offset(e)},t.prototype.replaceArrow=function(e,t,n){this.arrow().css(n,e?50*(1-e/t)+"%":"")},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle()
;e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},t.prototype.hide=function(){function t(){"in"!=n.hoverState&&i.detach()}var n=this,i=this.tip(),a=e.Event("hide.bs."+this.type);if(this.$element.trigger(a),!a.isDefaultPrevented())return i.removeClass("in"),e.support.transition&&this.$tip.hasClass("fade")?i.one(e.support.transition.end,t).emulateTransitionEnd(150):t(),this.$element.trigger("hidden.bs."+this.type),this},
t.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},t.prototype.hasContent=function(){return this.getTitle()},t.prototype.getPosition=function(){var t=this.$element[0];return e.extend({},"function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())},
t.prototype.getCalculatedOffset=function(e,t,n,i){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-i,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-i/2,left:t.left-n}:{top:t.top+t.height/2-i/2,left:t.left+t.width}},t.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},t.prototype.tip=function(){
return this.$tip=this.$tip||e(this.options.template)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},t.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.toggleEnabled=function(){this.enabled=!this.enabled},t.prototype.toggle=function(t){
var n=t?e(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;n.tip().hasClass("in")?n.leave(n):n.enter(n)},t.prototype.destroy=function(){this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var n=e.fn.tooltip;e.fn.tooltip=function(n){return this.each(function(){var i=e(this),a=i.data("bs.tooltip"),r="object"==typeof n&&n;a||i.data("bs.tooltip",a=new t(this,r)),"string"==typeof n&&a[n]()})},e.fn.tooltip.Constructor=t,
e.fn.tooltip.noConflict=function(){return e.fn.tooltip=n,this}}(e)}).call(t,n(10))},function(e,t,n){(function(e){+function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]}}e.fn.emulateTransitionEnd=function(t){var n=!1,i=this;e(this).one(e.support.transition.end,function(){n=!0
});var a=function(){n||e(i).trigger(e.support.transition.end)};return setTimeout(a,t),this},e(function(){e.support.transition=t()})}(e)}).call(t,n(10))},function(e,t,n){"use strict";function i(){if(l.length)throw l.shift()}function a(e){var t;t=o.length?o.pop():new r,t.task=e,s(t)}function r(){this.task=null}var s=n(1194),o=[],l=[],u=s.makeRequestCallFromTimer(i);e.exports=a,r.prototype.call=function(){try{this.task.call()}catch(e){a.onerror?a.onerror(e):(l.push(e),u())}finally{this.task=null,
o[o.length]=this}}},function(e,t,n){"use strict";(function(t){function n(e){s.length||(r(),o=!0),s[s.length]=e}function i(){for(;l<s.length;){var e=l;if(l+=1,s[e].call(),l>u){for(var t=0,n=s.length-l;t<n;t++)s[t]=s[t+l];s.length-=l,l=0}}s.length=0,l=0,o=!1}function a(e){return function(){function t(){clearTimeout(n),clearInterval(i),e()}var n=setTimeout(t,0),i=setInterval(t,50)}}e.exports=n;var r,s=[],o=!1,l=0,u=1024,c=void 0!==t?t:self,d=c.MutationObserver||c.WebKitMutationObserver
;r="function"==typeof d?function(e){var t=1,n=new d(e),i=document.createTextNode("");return n.observe(i,{characterData:!0}),function(){t=-t,i.data=t}}(i):a(i),n.requestFlush=r,n.makeRequestCallFromTimer=a}).call(t,n(222))},function(e,t,n){"use strict";function i(e){return e&&!e.get("isCloud")&&"iOS"!==e.get("platform")&&e.supports("companionProxy")}function a(e){return e&&e.get("isPrivate")&&e.get("isConnected")&&!e.get("isPossiblyCrossNetworkProtected")}function r(e){e.forEach(function(e){
e.resolve()}),e.length=0}function s(e){e.forEach(function(e){e.reject()}),e.length=0}var o=n(10),l=n.n(o),u=n(3),c=n.n(u),d=n(13),p=n(59),h=n(859),f=n(60),v=n(29),m=n(71),g=n(61),y=p.a.extend({mixins:[m.a],name:"MediaServerCompanionProxy",commandID:0,initialize:function(){c.a.bindAll(this,"_checkPollRequestStatus","_pickProxyServer","_poll","_sendResponse","_unregisterPlayer","_isEligibleForProxy","_isLocallyOwned","onPollSuccess","onPollError"),
this._debounceUnregisterPlayer=c.a.debounce(this._unregisterPlayer,2e3),this._debouncePickProxyServer=c.a.debounce(this._pickProxyServer,2e3),this._deepLinkDeferred=l.a.Deferred().resolve(),this._playerRegistrationDeferreds=[],this._playerUnregistrationDeferreds=[],this._pollErrorCountByServerID={}},getDeepLink:function(){return this._deepLinkDeferred.promise()},publish:function(e){var t=this;if(this.proxyServer){if(this.timelineInflight)return void(this._pendingTimeline=e)
;this.timelineInflight=!0;var n=h.a.writeXml(e),i=c.a.result(this.proxyServer,"url"),a=this.proxyServer.getXHROptions(i+"player/proxy/timeline?commandID="+this.commandID);a.data="timeline="+encodeURIComponent(n),a.method="POST",a.contentType="application/x-www-form-urlencoded",l.a.ajax(a).always(function(){t.timelineInflight=!1;var e=t._pendingTimeline;e&&(delete t._pendingTimeline,t.publish(e))})}},subscribe:function(e){this.started||(this.callback=e,this.started=!0,
this.servers=n.i(d.a)("appModel").get("servers"),this.listenTo(this.servers,"change:connected",this._debouncePickProxyServer),this._debouncePickProxyServer())},unsubscribe:function(){if(this.started){var e=this.proxyServer;this.started=!1,this.stopListening(this.servers,"change:connected",this._debouncePickProxyServer),this.callback=null,this.proxyServer=null,e&&this._debounceUnregisterPlayer(e),this._clearPollRequestStatusCheck(),this.pollRequest&&(this.pollRequest.abort(),
this.pollRequest=null)}},unregisterPlayer:function(e,t){this.cloudServer=e,this.clientID=t;var n=l.a.Deferred();return this._playerUnregistrationDeferreds.push(n),n.promise()},registerPlayer:function(e,t){this.cloudServer=e,this.clientID=t;var n=l.a.Deferred();return this._playerRegistrationDeferreds.push(n),n.promise()},debugStatus:function(){var e=this.proxyServer;return e?"Proxied: "+e.get("debugName"):void 0},_pickProxyServer:function(){
this.started&&(this.proxyServer&&this._isEligibleForProxy(this.proxyServer)||(this.proxyServer=this.servers.find(this._isLocallyOwned)||this.servers.find(this._isEligibleForProxy),this.proxyServer?(this._registerServer(),v.a.info("[Companion] Found proxy",this.proxyServer.get("debugName")),this._poll()):v.a.warn("[Companion] No proxy found")))},_registerServer:function(){var e=this;if(this.proxyServer&&this.cloudServer&&this.clientID){
var t=this.cloudServer.getXHROptions("devices/"+this.clientID,{method:"POST",headers:{"X-Plex-Provides":g.a.get("allowCloudPubSub")?"client,player,pubsub-player":"client,player"},data:{_method:"PUT",proxiedBy:this.proxyServer.id}});l.a.ajax(t).done(function(){r(e._playerRegistrationDeferreds)}).fail(function(){s(e._playerRegistrationDeferreds)})}},_unregisterPlayer:function(e){var t=this;if(e&&this.cloudServer&&this.clientID){var n=this.cloudServer.getXHROptions("/devices/"+this.clientID,{
method:"POST",headers:{"X-Plex-Provides":"client"},data:{_method:"PUT"}});l.a.ajax(n).done(function(){r(t._playerUnregistrationDeferreds)}).fail(function(){s(t._playerUnregistrationDeferreds)})}},_poll:function(){if(this.started){var e=this.proxyServer;if(!e)return void v.a.info("[Companion] No proxy server available to long poll");if(this._isPollRequestPending())return void v.a.info("[Companion] Long poll already open to ",e.get("debugName"));this._clearPollRequestStatusCheck(),
this._checkPollRequestStatusLater();var t=e.getXHROptions("/player/proxy/poll",{data:{deviceClass:"pc",protocolVersion:"1",protocolCapabilities:"timeline,playback,navigation,mirror,playqueues",timeout:1}});v.a.info("[Companion] Opening long poll to %s at %s",e.get("debugName"),t.url),this.pollRequest=l.a.ajax(t).done(this.onPollSuccess).fail(this.onPollError)}},_repoll:function(){this._clearPollRequestStatusCheck(),this._poll()},_isPollRequestPending:function(){
return!!this.pollRequest&&"pending"===this.pollRequest.state()},_checkPollRequestStatus:function(){this._isPollRequestPending()&&this.proxyServer&&(v.a.info("[Companion] Poll connection successfully opened with ",this.proxyServer.get("debugName")),this._resetPollErrorCount(this.proxyServer))},_checkPollRequestStatusLater:function(){this._pollRequestStatusCheckTimeout=setTimeout(this._checkPollRequestStatus,5e3)},_clearPollRequestStatusCheck:function(){
this._pollRequestStatusCheckTimeout=clearTimeout(this._pollRequestStatusCheckTimeout)},_processCommand:function(e){var t=this;if(this.started){var n={path:e.path,commandID:e.commandID,supportsTimeline:!0,query:{key:[e.queryKey],offset:[e.queryOffset],mediaIndex:[e.queryMediaIndex],containerKey:[e.queryContainerKey],playQueueID:[e.queryPlayqueueid],type:[e.queryType],volume:[e.queryVolume],repeat:[e.queryRepeat],audioStreamID:[e.queryAudioStreamID],subtitleStreamID:[e.querySubtitleStreamID],
token:[e.queryToken],machineIdentifier:[e.queryMachineIdentifier],protocol:[e.queryProtocol],address:[e.queryAddress],port:[e.queryPort],text:[e.queryText],field:[e.queryField]}},i="resolved"!==this._deepLinkDeferred.state();this.callback(n,i).always(function(e){i&&e&&e.deferredAction&&t._deepLinkDeferred.resolve(e.deferredAction),t._sendResponse(e.controllerResponse)})}},_sendResponse:function(e){if(this.proxyServer){var t=parseInt(e.commandID,10);this.commandID<t&&(this.commandID=t)
;var n="/player/proxy/response?commandID="+e.commandID,i=this.proxyServer.getXHROptions(n,{method:"POST",contentType:"application/x-www-form-urlencoded",data:{response:e.body}});l.a.ajax(i)}},_incrementPollErrorCount:function(e){var t=e.get("machineIdentifier");t in this._pollErrorCountByServerID||(this._pollErrorCountByServerID[t]=0),this._pollErrorCountByServerID[t]++,v.a.info("[Companion] Server %s has had %s poll errors",e.get("debugName"),this._pollErrorCountByServerID[t])},
_resetPollErrorCount:function(e){var t=e.get("machineIdentifier");this._pollErrorCountByServerID[t]=0},_exceedsPollErrorCount:function(e){return this._pollErrorCountByServerID[e.get("machineIdentifier")]>=3},_isEligibleForProxy:function(e){return i(e)&&a(e.get("activeConnection"))&&!this._exceedsPollErrorCount(e)},_isLocallyOwned:function(e){return this._isEligibleForProxy(e)&&!e.get("isShared")},onPollSuccess:function(e){var t=this,n=e&&f.a.parseXML(e),i=n&&n.Command
;return e?(n?i||v.a.warn("[Companion] Poll succeeded without a Command response",n):v.a.warn("[Companion] Poll succeeded without a parseable response",e),i?(this._resetPollErrorCount(this.proxyServer),this._repoll(),void(c.a.isArray(i)?i:[i]).forEach(function(e){try{v.a.info("[Companion] Received %s from %s",e.path,e.deviceName),t._processCommand(e)}catch(t){v.a.warn("[Companion] encountered %s while processing %s",t.message,e)}},this)):void this.onPollError()):void this._repoll()},
onPollError:function(){var e=this,t=(arguments.length>0&&void 0!==arguments[0]&&arguments[0],this.proxyServer);if(this.started&&t){var n=t.get("isConnected"),i=t.get("debugName"),a=function(){v.a.warn("[Companion] Poll failed to %s; attempting to pick new proxy",i),e._pickProxyServer()};if(this.proxyServer=null,this._clearPollRequestStatusCheck(),this._incrementPollErrorCount(t),this._exceedsPollErrorCount(t))return v.a.warn("[Companion] Poll failed to %s; is no longer an eligible proxy",i),
void a();n?(v.a.warn("[Companion] Poll failed to %s; testing all connections",i),t.testAllConnections().done(function(){v.a.info("[Companion] Poll failed to %s; server is available",i)}).fail(function(){v.a.warn("[Companion] Poll failed to %s; unable to reconnect",i)}).always(a)):a()}}});t.a=y},function(e,t,n){"use strict";function i(){var e=new l.a,t=null;return{setBaseUrl:function(e){t=e},trackEvent:function(i){
if(!t)return void n.i(s.a)(!1,"Network metrics reporters requires a base URL to be set before tracking events");var a=o.join([t,"collect/event"]),l=r()(i);e.send({type:"POST",url:a,contentType:"text/plain",data:l})}}}var a=n(146),r=n.n(a),s=n(31),o=n(19),l=n(1388);t.a=i},function(e,t,n){"use strict";n(29)},function(e,t,n){"use strict";var i=n(1128),a=n.n(i);a.a.debug=!1;var r={},s={},o={userTitle:"username",userID:"id"},l=!1,u={init:function(e){a.a.config(e)},enable:function(){l||(l=!0,
a.a.install())},disable:function(){l&&(l=!1,a.a.uninstall())},set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t in e){var n=e[t];"release"===t?a.a.setRelease(n):o[t]?(s[o[t]]=n,a.a.setUserContext(s)):(r[t]=n,a.a.setTagsContext(r))}},capture:function(e,t){a.a.captureException(e,t)}};t.a=u},function(e,t,n){"use strict";var i=["enable","disable","set","start","trackClick","trackEvent","trackView","incrementPlaybackCount","addPlaybackTime"];t.a=i
},function(e,t,n){"use strict";var i=["setBaseUrl","trackEvent"];t.a=i},function(e,t,n){"use strict";var i=n(502);try{"string"==typeof window.localStorage.getItem&&delete window.localStorage.getItem,"string"==typeof window.localStorage.setItem&&delete window.localStorage.setItem,"string"==typeof window.localStorage.removeItem&&delete window.localStorage.removeItem,"string"==typeof window.localStorage.clear&&delete window.localStorage.clear}catch(e){}var a=i.a.extend({name:"PersistentWebStorage",
getStorage:function(){return window.localStorage}});t.a=a},function(e,t,n){"use strict";var i=n(502),a=i.a.extend({name:"VolatileWebStorage",getStorage:function(){return window.sessionStorage}});t.a=a},function(e,t,n){"use strict";function i(e){return 401===e.status||403===e.status||406===e.status}function a(e){var t=e.server,n=e.connection
;return!S.a.get("testPrivateConnectionsWhenPublicAddressDoesNotMatch")&&!t.get("isCloud")&&!t.get("isTransient")&&!t.get("publicAddressMatches")&&n.get("isPrivate")}function r(e,t){var n=t.server,i=n.get("debugName");return b.a.warn("[Connections] Aborting connection test for %s at %s because secure connections are disallowed",i,e),u(e,t)}function s(e,t){var n=t.server,i=n.get("debugName");return b.a.warn("[Connections] Aborting connection test for %s at %s because location does not match",i,e),
u(e,t)}function o(e,t){var n=t.server,i=n.get("debugName");return b.a.warn("[Connections] Aborting connection test for %s at %s due to mixed content prevention",i,e),u(e,t)}function l(e,t){var n=t.server,i=n.get("debugName");return b.a.warn("[Connections] Aborting connection test for %s at %s due to reject direct connection debug setting",i,e),u(e,t)}function u(e,t){var n=t.connection,i=m.a.Deferred();return f.a.defer(function(){n.set({currentTest:null,testState:I.a.testStates.UNAVAILABLE}),
i.reject(n)}),i.promise()}function c(e){e.url="fail"+e.url}function d(e,t){function a(t){n.i(b.a)("[Connections] %s connected at %s",u,e),o.set({currentTest:null,testState:I.a.testStates.CONNECTED,serverAttrs:t}),l.resolve(o)}function r(t){var a={currentTest:null};if(t.aborting)n.i(b.a)("[Connections] Aborted pending connection test for %s at %s",u,e),a.testState=I.a.testStates.ABORTED;else{var r=i(t)?I.a.testStates.UNAUTHORIZED:I.a.testStates.UNAVAILABLE
;b.a.warn("[Connections] %s is %s at %s (Status %s)",u,r,e,t.status),a.testState=r}o.set(a),l.reject(o,t)}var s=t.server,o=t.connection,l=m.a.Deferred(),u=s.get("debugName");n.i(b.a)("[Connections] Testing connection for %s at %s",u,e);var d=s.getXHROptions(e);d.timeout=s.connectionTestTimeout,S.a.get("emulateCNP")&&!S.a.get("proxied")&&o.get("isPrivate")&&c(d);var p=S.a.get("emulateBrokenHTTPS");if(p){var h=o.get("isHttps")&&!s.get("isCloudBased"),f="private"!==p||o.get("isPrivate");h&&f&&c(d)}
var v=m.a.ajax(d);return o.set({currentTest:v,testState:I.a.testStates.PENDING}),v.done(function(t,n,i){if(s.get("isCloud"))return void a();var o=s.parse(t),l=!!o.machineIdentifier;s.get("isTransient")&&o.machineIdentifier===s.get("originalMachineIdentifier")&&(o.machineIdentifier=s.get("machineIdentifier")),!l||s.id&&o.machineIdentifier!==s.id?(b.a.warn("[Connections] %s has an unexpected machine identifier at %s",u,e),r(i)):a(o)}),v.fail(r),l.promise()}function p(e){
var t=e.server,i=e.connection,u=t.resolveUrl(e.url||"/",{connection:i}),c=n.i(g.a)("appModel").get("settings");return S.a.get("allowHttpsMediaServerConnections")||!i.get("isHttps")||t.get("isCloudBased")?S.a.get("allowMixedContent")||!y.a.isHostedHttps||i.get("isHttps")?a(e)?s(u,e):t.get("isCloud")||i.get("relay")||!c.get("rejectDirectConnections")&&!S.a.get("rejectDirectConnections")?d(u,e):l(u,e):o(u,e):r(u,e)}var h=n(3),f=n.n(h),v=n(10),m=n.n(v),g=n(13),y=n(80),b=n(29),S=n(61),I=n(223);t.a=p
},function(e,t,n){"use strict";var i=n(1213);n.d(t,"a",function(){return i.a});var a=n(1211);n.d(t,"b",function(){return a.a});var r=n(1212);n.d(t,"c",function(){return r.a});var s=n(1216);n.d(t,"d",function(){return s.a});var o=n(1217);n.d(t,"e",function(){return o.a});var l=n(1215);n.d(t,"f",function(){return l.a});var u=n(1214);n.d(t,"g",function(){return u.a});var c=n(1207);n.d(t,"h",function(){return c.a});var d=n(1208);n.d(t,"i",function(){return d.a});var p=n(1205);n.d(t,"j",function(){
return p.a});var h=n(1206);n.d(t,"k",function(){return h.a});var f=n(1210);n.d(t,"l",function(){return f.a});var v=n(1209);n.d(t,"m",function(){return v.a})},function(e,t,n){"use strict";function i(e){var t,i=e.item,a=e.media,s=i.server;if(a){var c="/library/metadata/"+i.id+"/media/"+a.id,d=r.a.extend(s.getXHROptions(c),{type:"DELETE"});t=o.a.ajax(d),t.done(function(){var t=e.item.get("Media");t.splice(r.a.indexOf(t,a),1),i.trigger("change:Media",i,i.get("Media"))})}else t=i.destroy({wait:!0})
;return t.fail(function(e){var t=403===e.status?n.i(l.default)("Ensure that media deletion is enabled for library content in your server settings."):n.i(l.default)("There was a problem deleting this item.");u.a.trigger("show:alert",{type:"error",message:t})}),t}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(4),u=n(15);t.a=i},function(e,t,n){"use strict";function i(e){var t=c.a.execute("deleteFile",e);return t.done(function(){var t=e.item,n=a(t.get("parentKey"),e);if(!n)return void r(e)
;if(n.get("children").getCollection().length)return void s(n.get("key"),e);n.trigger("destroy",n,n.collection);var i=a(t.get("grandparentKey"),e);if(!i)return void r(e);i.get("children").getCollection().length?s(i.get("key"),e):r(e)}),t}function a(e,t){if(!e)return!1;var n=new d.a({key:e},{server:t.item.server,onlyIfCached:!0});return!l.a.isEmpty(n)&&n}function r(e){if(!e.skipRedirect){var t=e.item;t.section?u.a.trigger("navigate","section",{serverID:t.server.id,sectionID:t.section.id,replace:!0
}):u.a.trigger("navigate:back")}}function s(e,t){if(!t.skipRedirect){var n=t.item;u.a.trigger("navigate","details",{serverID:n.server.id,key:e,replace:!0})}}var o=n(3),l=n.n(o),u=n(15),c=n(28),d=n(76);t.a=i},function(e,t,n){"use strict";function i(e){var t=o.a.Deferred(),i=e.item,a=i.server,s=e.media||r.a.first(i.get("Media")),p=e.part||s&&r.a.first(s.Part),h=e.streamType,f=e.streamID;if(!s||!p)return t.reject().promise();var v={};v[h.key]=f,
!e.media&&a.supports("allPartsStreamSelection")&&(v.allParts=1);var m=d.join(["/library/parts/",p.id],v),g=r.a.extend(a.getXHROptions(m),{type:"PUT"}),y=o.a.ajax(g);return y.done(function(){n.i(c.a)(s,h,f),i.trigger("change:streams"),t.resolve()}),y.fail(function(e){u.a.trigger("show:alert",{type:"error",message:n.i(l.default)("There was a problem selecting the stream for this item.")}),t.reject(e)}),t.promise()}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(4),u=n(15),c=n(1430),d=n(19);t.a=i
},function(e,t,n){"use strict";function i(e){var t,i,s=e.watched;e.item?(t=e.item,i=[t]):e.items&&(i=e.items,t=i[0]);var l=o.a.map(i,function(e){var t=s?"scrobble":"unscrobble",n={identifier:e.get("identifier")||"com.plexapp.plugins.library"};e.server.get("isCloudSyncServer")?(n.key=e.get("key"),n.ratingKey=e.get("ratingKey")):n.key=e.get("ratingKey");var i=h.join(["/:/",t],n),o=u.a.ajax(e.server.getXHROptions(i));return o.done(function(){r(e,s),a(e,s)}),o}),p=u.a.when.apply(u.a,l)
;return p.fail(function(){var e;e=s?n.i(c.default)("There was a problem marking this item as watched."):n.i(c.default)("There was a problem marking this item as unwatched."),d.a.trigger("show:alert",{type:"error",message:e})}),p}function a(e,t){if(n.i(p.c)(e.get("type"))){e.set({unviewedLeafCount:t?0:e.get("leafCount"),viewedLeafCount:t?e.get("leafCount"):0});var i=e.get("children")||e.get("items");i&&i.getCollection().each(function(e){a(e,t)})}else e.set({viewOffset:0,viewCount:t?1:0})}
function r(e,t){var i,a=n.i(p.b)(e.get("type")),s=e.parent;if(s&&s.get("isMetadataList")&&(s=s.parent),s&&(i=n.i(p.b)(s.get("type"))),i&&i.typeString===a.parent){var o,l=n.i(p.c)(e.get("type"));t?o=l?e.get("unviewedLeafCount"):1:(o=l?e.get("viewedLeafCount"):1,o*=-1),s.set({unviewedLeafCount:s.get("unviewedLeafCount")-o,viewedLeafCount:s.get("viewedLeafCount")+o}),r(s,t)}}var s=n(3),o=n.n(s),l=n(10),u=n.n(l),c=n(4),d=n(15),p=n(30),h=n(19);t.a=i},function(e,t,n){"use strict";function i(e,t){
var i=t.playQueue;if(!i.get("playQueueID")||!i.server)return u.a.Deferred().reject().promise();var a=p.a.getTypeByElement(i.get("mediaType"));if("music"!==a)return u.a.Deferred().reject().promise();var r=o.a.pick(t,"position","autoplay","inline");return r=o.a.extend(r,{serverID:i.server.id,playQueueID:i.get("playQueueID"),mediaType:a}),n.i(d.a)(e.fetch()).then(o.a.bind(e.save,e,r))}function a(e){return e.destroy()}function r(e){var t=c.a("appModel"),n=t.get("user"),r=new h.a({},{user:n})
;return e?i(r,e):a(r)}var s=n(3),o=n.n(s),l=n(10),u=n.n(l),c=n(13),d=n(123),p=n(181),h=n(751);t.a=r},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(13),s=n(181),o=n(28),l=n(751),u=function(e){var t=r.a("appModel"),n=new l.a({},{user:e});return n.fetch().then(function(){return t.get("servers").populateServer(n.get("serverID"))}).then(function(e){return e.get("playQueueManager").populateQueue(n.get("playQueueID"),s.a.getElementByType(n.get("mediaType")))}).then(function(e){
return a.a.when(e,n.get("position"),n.get("autoplay"),n.get("mediaType"),n.get("inline"))}).then(function(e,t,n,i,a){return"music"!==i?o.a.execute("persistPlayQueue",null):o.a.execute("playMedia",{type:i,item:e,playQueue:e,offset:t,autoplay:n,inline:a})}).fail(function(){o.a.execute("persistPlayQueue",null)})};t.a=u},function(e,t,n){"use strict";function i(e){return n.i(a.a)("serverConnectionTestManager").abortConnectionTest(e)}var a=n(13);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.server,i=e.connection;if(t.id)return o.a.Deferred().resolve(t.id).promise();var a=t.resolveUrl("/identity",{connection:i}),s=r.a.extend(t.getXHROptions(a),{timeout:t.connectionTestTimeout});n.i(u.a)("[Identity] Requesting the machine identifier of "+t.get("debugName")+" at "+a);var c=o.a.ajax(s).promise();return c=c.then(function(e){var i=o.a.Deferred(),a=l.a.parseXML(e),r=a&&a.machineIdentifier;return r?(n.i(u.a)("[Identity] Machine identifier found for "+t.get("debugName")+": "+r),
!t.collection||t.collection.get(r)?i.resolve(r):(t.collection.populateServer({isCloud:!0}).done(function(e){e.get("resources").populate().always(function(){i.resolve(r)})}),t.collection.findServer({isCloud:!0}).done(function(e){e.populate().fail(function(){i.resolve(r)})}).fail(function(){i.resolve(r)}))):i.reject(),i.promise()}),c.fail(function(){u.a.warn("[Identity] Machine identifier not found for "+t.get("debugName")+" at "+a)}),c}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(60),u=n(29);t.a=i
},function(e,t,n){"use strict";function i(e){return n.i(a.a)("serverConnectionTestManager").queueConnectionTest(e)}var a=n(13);t.a=i},function(e,t,n){"use strict";function i(e){var t=r.a.Deferred().resolve().promise(),i=r.a.Deferred().reject().promise(),a=o.a.getActiveUser();if(!a)return i;var l=a.get("pin"),u=a.get("authToken");return l||e.pin?l===n.i(s.a)("appModel").get("user").hashPIN(e.pin,u)?t:i:t}var a=n(10),r=n.n(a),s=n(13),o=n(135);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.homeUser,i=a.a("appModel"),l=i.get("user"),u=t.get("uuid")||l.get("uuid"),c={pin:e.pin},d=r.join(["/api/v2/home/users/",u,"/switch"],c),p=t.server.getXHROptions(d,{type:"POST",xhrFields:{withCredentials:o.a.get("allowSSO")}});return n.i(s.a)(p)}var a=n(13),r=n(19),s=n(575),o=n(61);t.a=i},function(e,t,n){"use strict";function i(){var e=n.i(a.a)("appModel"),t=e.get("ui"),i=e.get("user"),u=e.get("fakeRouter"),c=i.server,d=i.clearAccessToken();return d.fail(function(){
l.a.warn("Failed to clear the access token and user storage")}).always(function(){e.set("history",[]),t&&t.restoreDefaults(),u&&u.restoreDefaults(),o.a.abortAll(),i.signOut(),i.uninitialize(),i.initialize(),r.a.trigger("clearAll:cache"),c.cache.store(c)}),n.i(s.a)(d)}var a=n(13),r=n(15),s=n(123),o=n(208),l=n(29);t.a=i},function(e,t,n){"use strict";function i(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.i(r.a)("appModel").get("user"),i=t.get("signedIn"),s=t.id!==e.homeUser.id,u=e.allowGuestLock,c=s||u,d=i?o.a.execute("authenticateWithServer",e):o.a.execute("authenticateWithHash",e);return i&&c?d=d.then(function(t){return a(t,e)}):d.done(function(){t.set("lockState",l.a.lockStates.UNLOCKED)}),d}function a(e,t){var i=n.i(r.a)("appModel").get("user"),a=o.a.execute("resetUser");return a=a.then(function(){
return i.activateStoredUser(t.homeUser.id),s.a.trigger("reset:servers"),i.signIn(e,{lockState:l.a.lockStates.UNLOCKED})}),a.done(function(){n.i(r.a)("metrics").trackEvent({event:"client:switchuser",interaction:!0})}),a}var r=n(13),s=n(15),o=n(28),l=n(225);t.a=i},function(e,t,n){"use strict";function i(){var e=["Cache-Control","Content-Language","Content-Type","Expires","Last-Modified","Pragma","Location"],t=o.a.ajaxSettings.xhr;return o.a.ajaxSettings.xhr=function(){
var n=t(),i=n.getAllResponseHeaders;return n.getAllResponseHeaders=function(){var t=i.apply(n);if(t)return t;var a=[];return r.a.each(e,function(e){var t=n.getResponseHeader(e);t&&a.push(e+": "+t)}),a.join("\n")},n},o.a.ajaxPrefilter(l.a),o.a.ajaxPrefilter(function(e,t,n){if(e.crossDomain&&!e.skipCorsWithRedirect)return"cors_with_redirect"}),o.a.ajaxTransport("cors_with_redirect",u.a),c.a.startListening(),o.a.Deferred().resolve().promise()}
var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(1507),u=n(1506),c=n(208);t.a=i},function(e,t,n){"use strict";function i(e){return u.a.isString(e)&&e.trim().length>0}function a(e,t){var i=n.i(f.a)();return n.i(p.a)("[appModelInitializer] Generating new %s [%s]",t,i),e.set(t,i),d.a.set(t,i)}function r(e,t){var r=void 0,s=e.get(t);return i(s)?r=d.a.set(t,s):(r=d.a.get(t),r=r.then(function(n){if(!i(n))return p.a.error("[appModelInitializer] Invalid %s found in storage [%s]",t,s),a(e,t);e.set(t,n)
},function(){return n.i(p.a)("[appModelInitializer] Failed to read %s from storage",t),a(e,t)})),r}function s(e){var t=d.a.get("skipSignIn");return t.always(function(t){e.set("skipSignIn","1"===t)}),t}function o(){var e=n.i(c.a)("appModel");return n.i(h.a)(r(e,"clientID"),r(e,"anonymousClientID"),s(e))}var l=n(3),u=n.n(l),c=n(13),d=n(107),p=n(29),h=n(417),f=n(570);t.a=o},function(e,t,n){"use strict";function i(e){return e.get("isCloud")}function a(){return new u.a({
name:"CloudServerEventManager",appModel:n.i(o.a)("appModel"),isValidServer:i,supportsLongPolling:!0,showTimelineStatus:!1,ServerEventConnection:l.a,ServerRetryManager:c.a}).start(),s.a.Deferred().resolve().promise()}var r=n(10),s=n.n(r),o=n(13),l=n(1489),u=n(734),c=n(733);t.a=a},function(e,t,n){"use strict";function i(){if(n.i(u.a)("appModel").get("settings").get("companion")){var e=n.i(u.a)("appModel"),t=e.get("cloudServer"),i=e.get("clientID");t.get("authorized")&&i&&i!==h&&(h=i,
c.a.info('[Companion] Registering player with plex.tv, clientID="%s"',i),d.a.registerPlayer(t,i).done(function(){c.a.info('[Companion] Registered player with plex.tv, clientID="%s"',i)}).fail(function(e){e||(e={}),h=null,c.a.warn('[Companion] Couldn\'t register player with plex.tv, status="%s", response="%s"',e.status,e.responseText&&e.responseText.substr(0,100))}))}}function a(){var e=n.i(u.a)("appModel"),t=e.get("cloudServer"),i=e.get("clientID")
;if(t.get("authorized")&&i)return c.a.info('[Companion] Unregistering player with plex.tv, clientID="%s"',i),d.a.unregisterPlayer(t,i).done(function(){return c.a.info('[Companion] Unregistered player with plex.tv, clientID="%s"',i)}).fail(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c.a.warn('[Companion] Couldn\'t unregister player with plex.tv, status="%s", response="%s"',e.status,e.responseText&&e.responseText.substr(0,100))})}function r(){
var e=n.i(u.a)("appModel").get("settings"),t=e.get("companion");if(f!==t)return f=t,t?(p.a.subscribe(),l.a.when(d.a.subscribe(n.i(u.a)("localCompanionCommandHandler")))):(p.a.unsubscribe(),l.a.when(d.a.unsubscribe(),a()))}function s(){var e=n.i(u.a)("appModel"),t=e.get("cloudServer");e.on("change:clientID",i),t.on("change:authorized",i);var a=n.i(u.a)("appModel").get("settings"),s=r();return a.on("change:companion",r),a.get("companion")?s.then(function(){return d.a.getDeepLink()}):s}
var o=n(10),l=n.n(o),u=n(13),c=n(29),d=n(501),p=n(1238);t.a=s;var h=null,f=null},function(e,t,n){"use strict";function i(){o.a.init("https://540fa70dba644b8dbd34d61a56bd1e72@sentry.io/160686");var e={lifecycle:"started",release:"3.20.7-d87fe16",version:s.a.prop("X-Plex-Version")};return s.a.props.forEach(function(t){var n=s.a.prop(t);n&&(e[t]=n)}),o.a.set(e),o.a.enable(),r.a.Deferred().resolve().promise()}var a=n(10),r=n.n(a),s=n(331),o=n(730);n(1197);t.a=i},function(e,t,n){"use strict"
;function i(){var e=n.i(a.a)("metrics"),t=void 0;return t="bundled",e.set({deviceIdentifier:s.a.prop("X-Plex-Client-Identifier"),context:{device:{product:s.a.prop("X-Plex-Product"),version:s.a.prop("X-Plex-Version"),platform:s.a.prop("X-Plex-Platform"),platformVersion:s.a.prop("X-Plex-Platform-Version"),device:s.a.prop("X-Plex-Device"),deviceName:s.a.prop("X-Plex-Device-Name"),model:s.a.prop("X-Plex-Model"),screenResolution:s.a.prop("X-Plex-Device-Screen-Resolution"),
layout:n.i(o.a)("desktop","desktop"),environment:t}}}),n.i(r.a)(e.start())}var a=n(13),r=n(123),s=n(331),o=n(1436);t.a=i},function(e,t,n){"use strict";function i(){var e=c.a.get("connections");return e=e.then(function(e){if(e)try{var t=JSON.parse(e),i=t.users;if(!i)return;var a=[];return i.forEach(function(e){var n=e.entitlements,i=e.servers,r={id:e.id,authToken:e.accessToken,title:e.title,pin:e.pin,home:e.home,hasAllEntitlements:!!e.entitlements&&e.entitlements.hasOwnProperty("all"),
lastPrimaryServerID:t.lastPrimaryServerID,entitlements:[],servers:[]};n&&o.a.each(n,function(e,t){e&&r.entitlements.push({id:t})}),i&&i.forEach(function(e){var t=e.connections,n=e.sources,i=!(!t||!t.length),a=!(!n||!n.length);if(e.machineIdentifier&&i&&a){var s={machineIdentifier:e.machineIdentifier,friendlyName:e.friendlyName,sourceTitle:e.shared?e.friendlyName:void 0,accessToken:e.accessToken,synced:e.synced,isShared:e.shared,connections:[]};t.forEach(function(e){var t={uri:e.uri,
scheme:e.scheme,address:e.address,port:e.port,sources:[]};o.a.contains(n,"myPlex")?t.sources.push({id:"myPlex"}):t.sources.push({id:"internal"}),s.connections.push(t)}),r.servers.push(s)}}),a.push(r)}),c.a.set("users",r()({users:a}))}catch(e){n.i(l.a)(!1,"Unable to migrate stored connections: "+e.message)}}),e=e.then(function(){return c.a.remove("connections")}),n.i(u.a)(e)}var a=n(146),r=n.n(a),s=n(3),o=n.n(s),l=n(31),u=n(123),c=n(107);t.a=i},function(e,t,n){"use strict";function i(){
n.i(f.a)("[Servers] Resetting...");var e=n.i(v.a)("appStore"),t=n.i(v.a)("appModel"),i=t.get("servers");n.i(v.a)("serverManager").stop(),n.i(v.a)("primaryServerManager").stop(),n.i(v.a)("manualServerManager").stop(),n.i(v.a)("serverConnectionManager").stop(),n.i(v.a)("serverConnectionTestManager").reset(),i.uninitialize(),i.reset(),i.initialize(),t.unset("primaryServer"),e.dispatch(n.i(b.a)({budget:1/0})),a()}function a(){n.i(f.a)("[Servers] Initializing..."),r(),s(),o(),l(),u(),
n.i(v.a)("serverManager").start(),n.i(v.a)("primaryServerManager").start(),n.i(v.a)("manualServerManager").start(),n.i(v.a)("serverConnectionManager").start(),n.i(f.a)("[Servers] Finished initialization")}function r(){var e=n.i(v.a)("appModel"),t=e.get("servers"),i=e.get("cloudServer"),a="https://plex.tv".match(/^([^:]+):\/\/(.*)$/),r=a[1],s=a[2];i.addConnection({scheme:r,address:s}),t.add(i)}function s(e){var t=n.i(v.a)("appModel"),i=t.get("servers"),a=g.a.getActiveServers()
;a&&a.each(function(e){if(e.get("connections").length)try{var n=new y.c(e.toJSON(),{parent:t});i.add(n)}catch(e){f.a.warn(e)}})}function o(){var e=n.i(v.a)("appModel"),t=e.get("servers"),i=m.a.get("primaryServer");if(i){var a=new y.c({machineIdentifier:i.machineIdentifier,friendlyName:i.name,isShared:i.shared,superToken:i.superToken,accessToken:i.accessToken,sourceTitle:i.sourceTitle},{parent:e});a.addConnection({scheme:i.scheme,address:i.address,port:i.port}),t.add(a)}}function l(){
var e=n.i(v.a)("appModel"),t=e.get("servers"),i=new y.c({isBundled:!0},{parent:e});i.addConnection({scheme:window.location.protocol.replace(":",""),address:window.location.hostname,port:window.location.port,isBundled:!0}),t.add(i)}function u(){if(m.a.get("allowLoopbackDiscovery")){var e=n.i(v.a)("appModel"),t=e.get("servers"),i=new y.c({},{parent:e});i.addConnection({scheme:"http",address:"127.0.0.1",port:"32400"}),t.add(i)}}function c(){return a(),h.a.on("reset:servers",i),
p.a.Deferred().resolve().promise()}var d=n(10),p=n.n(d),h=n(15),f=n(29),v=n(13),m=n(61),g=n(135),y=n(79),b=n(520);t.a=c},function(e,t,n){"use strict";function i(){var e=n.i(s.a)("appModel").get("settings"),t=r.a.Deferred();return r.a.when(e.populate(),l.a.populate()).always(function(){var n=e.get("language");o.a.load(n).always(function(){t.resolve()})}),t.promise()}var a=n(10),r=n.n(a),s=n(13),o=n(390),l=n(135);t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.a)()}var a=n(1224)
;t.a=i},function(e,t,n){"use strict";function i(){var e=r.a.Deferred(),t=o.a.get("myPlexAccessToken");return t.done(function(e){var t=n.i(s.a)("appModel").get("user"),i=l.a.get("users"),a=i.findWhere({authToken:e});a&&t.activateStoredUser(a.id)}),t.always(function(){e.resolve()}),e.promise()}var a=n(10),r=n.n(a),s=n(13),o=n(107),l=n(135);t.a=i},function(e,t,n){"use strict";var i=n(13),a=n(29),r=n(59),s=n(15),o=n(282),l=n(71),u=(n(31),n(135)),c=n(61),d=n(225),p=r.a.extend({mixins:l.a,
collectionNames:[],flexCollectionNames:[],initialize:function(e){this.user=e},start:function(){var e=this,t=this.user;this.previousUserID=t.id;var r={change:this.onUserChange};["isSignedIn","isLocked","isUnlocked","hasInvalidToken"].forEach(function(i){var a=t.get(i),s=e["on"+n.i(o.a)(i)+"Change"];r["change:"+i]=s,a&&s.call(e,t,a)}),this.listenTo(t,r);var s=n.i(i.a)("appModel").get("settings"),l=c.a.get("proxied")||s.get("autoLogin")||t.get("isUnlocked");n.i(a.a)("[UserManager] autoLogin",l),
l||this._lockIfInHome()},handleInvalidToken:function(){},_lockIfInHome:function(){var e=u.a.getActiveUser();e&&e.get("home")&&this.user.set("lockState",d.a.lockStates.LOCKED)},onHasInvalidTokenChange:function(e,t){t&&this.handleInvalidToken()},onIsUnlockedChange:function(e,t){},onUserChange:function(e){if(this.user.get("isSignedIn")){var t=u.a.getActiveUser();if(t)t.copyFromUser(e);else{u.a.get("users").add(e.toJSON(),{parse:!0})}u.a.debouncedSave()}},onIsSignedInChange:function(e,t){
if(this.stopListening(e,"change:hasInvalidToken",this.onHasInvalidTokenChange),!t)return void(e.get("hasInvalidToken")&&this.handleInvalidToken());t&&e.get("isLocked")&&(this.previousUserID=e.id);var n={reset:!0},i=e.get("features");i.abortPendingPopulate(),i.fetch(),this.collectionNames.forEach(function(t){return e.get(t).populate(n)}),this.flexCollectionNames.forEach(function(t){return e.get("desktop").get(t).populate(n)})},onIsLockedChange:function(e,t){t&&(this.previousUserID=e.id,
this.listenTo(e,"change:isUnlocked",this.onNextIsUnlockedChange))},onNextIsUnlockedChange:function(e,t){var n=this;t&&(this.stopListening(e,"change:isUnlocked",this.onNextIsUnlockedChange),setTimeout(function(){var e=n.previousUserID,t=e&&e===n.user.id?"navigate:refresh":"navigate:refresh:dashboard";s.a.trigger(t)},0))}});t.a=p},function(e,t,n){"use strict";var i=n(65),a=n.n(i),r=n(59),s=n(15),o=n(71),l=n(79),u=n(1322),c=r.a.extend({mixins:[o.a],initialize:function(e){this.appModel=e.appModel,
this.servers=this.appModel.get("servers")},start:function(){this.listenTo(u.a,"change",this.onManualConnectionChange),this.initManualServer()},stop:function(){this.stopListening()},initManualServer:function(){function e(e){var t=u.a.get("ip"+e),n=u.a.get("port"+e);t&&n&&this.addManualConnection(t,n,e)}e.call(this,1),e.call(this,2)},removeManualConnection:function(e,t,n){var i=this.appModel.get("primaryServer"),a="manualServer"+n,r=this.servers.find(function(e){return e.hasSource(a)});if(r){
r.removeSource("internal"),r.removeSource(a);r.get("connections").findWhere({isConnected:!0})||r!==i||s.a.trigger("navigate","dashboard",{replace:!0})}},addManualConnection:function(e,t,n){var i="manualServer"+n,a={scheme:"http",address:e,port:t.toString(),sources:{id:i}},r=new l.c({friendlyName:e});r.addConnection(a),this.servers.add(r)},onManualConnectionChange:function(e){var t=a()(e.changed)[0],n=t.slice(-1),i="ip"+n,r="port"+n,s=e.previous(i),o=e.previous(r),l=e.get(i),u=e.get(r)
;s&&o&&this.removeManualConnection(s,o,n),l&&u&&this.addManualConnection(l,u,n)}});t.a=c},function(e,t,n){"use strict";var i=n(71),a=n(503),r=a.a.extend({mixins:[i.a],initialize:function(e){var t=e.appModel;a.a.prototype.initialize.apply(this,arguments),this.appModel=t,this.listenTo(this.appModel,"change:primaryServer",this.onPrimaryServerChange)},onPrimaryServerChange:function(e,t){t&&!t.get("hasEventConnection")&&(this.stop(t),this.start(t))}});t.a=r},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(10),s=n.n(r),o=(n(29),n(1499)),l=n(13),u=n(59),c=n(123),d=n(841),p=n(61),h=n(71),f=n(1328),v=u.a.extend({mixins:h.a,initialize:function(){this.privacySettings=null,this.defaults={},this._anonymousClientID=null,this._pendingPrivacyRequest=null,this._pendingEvents=[],this.enable()},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},set:function(e){this.defaults=a()({},this.defaults,e)},fetchPrivacySettings:function(){var e=this
;this.privacySettings=null,this._pendingPrivacyRequest&&this._pendingPrivacyRequest.abort();var t=n.i(l.a)("appModel").get("user"),i=t.server.getXHROptions("/api/v2/user/privacy",{dataType:"json"});return this._pendingPrivacyRequest=s.a.ajax(i),this._pendingPrivacyRequest.promise().done(function(n){e.set({userId:t.id}),e.setPrivacySettings(n),e.trackPendingEvents()}).always(function(){e._pendingPrivacyRequest=null})},setPrivacySettings:function(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.i(l.a)("metricsReporter");e&&e.metrics&&(this.privacySettings=a()({},e,{metrics:e.metrics.reduce(function(e,t){return e[t.event]=t.status,e},{})}),t.setBaseUrl(e.baseUrl))},incrementPlaybackCount:function(){var e="playbackCount";f.a.save(e,f.a.get(e)+1)},addPlaybackTime:function(e){var t="playbackTime";f.a.save(t,f.a.get(t)+e)},trackView:function(e,t){this.trackEvent(a()({event:"client:view",interaction:!0,properties:e},t))},
trackClick:function(e,t){this.trackEvent(a()({event:"client:click",interaction:!0,properties:e},t))},trackEvent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.i(l.a)("metricsReporter");if(this.enabled){var i=f.a.get("sessionId"),r=f.a.get("anonymousSessionId");if(!this.privacySettings)return void this._pendingEvents.push(a()({},e,{sessionIdentifier:i,anonymousSessionIdentifier:r}));var o=s.a.extend(!0,{},this.defaults,e);o.sessionIdentifier||(o.sessionIdentifier=i),
o.anonymousSessionIdentifier||(o.anonymousSessionIdentifier=r);var u=this.privacySettings.metrics,c=u[o.event];c&&("off"===c||("anonymous"===c&&(delete o.userId,o.deviceIdentifier=n.i(l.a)("appModel").get("anonymousClientID"),o.sessionIdentifier=o.anonymousSessionIdentifier),delete o.anonymousSessionIdentifier,t.trackEvent(o)))}},trackPendingEvents:function(){for(var e=this._pendingEvents,t=0;t<e.length;)this.trackEvent(e[t]),t++;this._pendingEvents=[]},start:function(){
var e=this,t=n.i(l.a)("appModel").get("user"),i=t.server;return this.flushSession().then(function(){return n.i(c.a)(i.populate())}).then(function(){return e.fetchPrivacySettings()}).always(function(){e.listenTo(i,"change:isConnected",e.onCloudServerChange),e.listenTo(t,"change:id",e.onUserIDChange)}),s.a.Deferred().resolve().promise()},flushSession:function(){var e=this,t=f.a.populate().then(function(){e.stopSession(),e.startSession()},function(){e.startSession()});return n.i(c.a)(t)},
startSession:function(){var e=Date.now();this.interval||(this.interval=setInterval(function(){f.a.save("heartbeatTime",Date.now())},p.a.get("heartbeatInterval"))),f.a.save({sessionId:n.i(o.a)(),anonymousSessionId:n.i(o.a)(),startTime:e,heartbeatTime:e,playbackCount:0,playbackTime:0}),this.trackEvent({event:"client:start",interaction:!0})},stopSession:function(){var e=f.a.get("heartbeatTime"),t=f.a.get("playbackCount"),i=f.a.get("playbackTime"),a=f.a.get("startTime");this.trackEvent({
event:"client:shutdown",interaction:!1,properties:{sessionLength:Math.floor((e-a)/1e3),playbackCount:t,playbackTime:n.i(d.a)(i)}})},onCloudServerChange:function(e,t){t?this.fetchPrivacySettings():this.privacySettings=null},onUserIDChange:function(e,t){this.fetchPrivacySettings()}});t.a=v},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(13),s=n(71),o=n(59),l=n(29),u=n(89),c=n(135),d=n(520),p=n(1369),h=o.a.extend({mixins:[s.a],initialize:function(e){this.appModel=e.appModel,
this.servers=this.appModel.get("servers")},start:function(e){this.stop(),this.listenTo(this.appModel,{"change:primaryServer":this.onPrimaryServerChange,"change:primaryServer.change:isPrimaryEligible":this.onPrimaryServerEligibleChange,"change:primaryServer.change:isOutOfDate":this.onPrimaryServerOutOfDateChange,"change:isWaitingForServers":this.onWaitingForServersChange,"change:primaryServer.change:isRelayed":this.onPrimaryServerIsRelayedChange}),this.listenTo(this.servers,{
"update reset":this.onServersUpdate}),this._setPrimaryServer(u.i)},stop:function(){this.stopListening(),this._primaryServerPromise=null},fetchPrimaryRelations:function(e){},_setPrimaryServer:function(e){var t=this;if(this._primaryServerPromise)return this._primaryServerPromise;var i=n.i(r.a)("appStore");i.dispatch(n.i(d.c)());var a=this._waitForPrimaryServer();return this._primaryServerPromise=a,a.done(function(r){if(a===t._primaryServerPromise){if(t._primaryServerPromise=null,
t.appModel.get("primaryServer"))return;var s=!r.get("version")&&!r.get("isRejected");r.get("isOutOfDate")||s?(n.i(l.a)("[Primary Server] The server, %s, is waiting for a version",r.get("debugName")),t._setPrimaryServer(e)):i.dispatch(n.i(d.b)({machineIdentifier:r.id,metricsProperties:{context:e}}))}}).fail(function(){a===t._primaryServerPromise&&(t._primaryServerPromise=null,t.appModel.set("isWaitingForPrimaryServer",!1))}),a},_waitForPrimaryServer:function(){
var e=this,t=this.appModel.get("user"),i=t.get("lastPrimaryServerID"),r=void 0;return i?(n.i(l.a)("[Primary Server] Waiting for the last primary server, %s, to connect",i),r=this.servers.populateServer({machineIdentifier:i,isPrimaryEligible:!0,isOutOfDate:!1})):r=a.a.Deferred().reject().promise(),r=r.then(null,function(){return n.i(l.a)("[Primary Server] Waiting for any owned server to connect"),e.servers.populateServer({isFullOwnedServer:!0,isPersonalCloudServer:!1,isPrimaryEligible:!0,
isOutOfDate:!1})}),r=r.then(null,function(){return n.i(l.a)("[Primary Server] Waiting for any eligible server to connect"),e.servers.populateServer({isPrimaryEligible:!0,isOutOfDate:!1})}),r=r.then(null,function(){return n.i(l.a)("[Primary Server] Waiting for any eligible server"),e.servers.findServer({isPrimaryEligible:!0,isOutOfDate:!1})})},onPrimaryServerChange:function(e,t){c.a.flushDebouncedSave();var i=e.previous("primaryServer");if(i&&this.stopListening(i),t){
l.a.info("[Primary Server] %s is now the primary server",t.get("debugName"));if(e.get("user").set("lastPrimaryServerID",t.id),t.get("isConnected")?this.fetchPrimaryRelations(t):this.listenTo(t,"change:isConnected",this.onPrimaryServerConnectedChange),t.get("isRelayed")){n.i(r.a)("appStore").dispatch(n.i(p.a)({machineIdentifier:t.id,serverName:t.get("friendlyName")}))}
}else e.get("isWaitingForPrimaryServer")?n.i(l.a)("[Primary Server] Waiting to set the primary server"):l.a.warn("[Primary Server] No primary server found")},onPrimaryServerEligibleChange:function(e,t){var i=this.appModel.get("user");t||(n.i(l.a)("[Primary Server] The previous primary server, %s, is unauthorized",e.get("debugName")),i.unset("lastPrimaryServerID"),this._setPrimaryServer(u.j))},onPrimaryServerOutOfDateChange:function(e,t){var i=this.appModel.get("user")
;t&&(n.i(l.a)("[Primary Server] The previous primary server, %s, is out of date",e.get("debugName")),i.unset("lastPrimaryServerID"),this._setPrimaryServer(u.j))},onPrimaryServerConnectedChange:function(e,t){t&&this.fetchPrimaryRelations(e)},onWaitingForServersChange:function(e,t){if(t){var n=e.get("primaryServer"),i=!n||!this.servers.get(n.id),a=e.get("isWaitingForPrimaryServer");i&&!a&&this._setPrimaryServer(u.j)}},onPrimaryServerIsRelayedChange:function(e,t){if(t){
n.i(r.a)("appStore").dispatch(n.i(p.a)({machineIdentifier:e.id,serverName:e.get("friendlyName")}))}},onServersUpdate:function(){var e=this.appModel.get("user"),t=this.appModel.get("primaryServer");if(t){t&&!this.servers.get(t.id)&&(n.i(l.a)("[Primary Server] The previous primary server, %s, was removed",t.get("debugName")),e.unset("lastPrimaryServerID"),this._setPrimaryServer(u.j))}else this._setPrimaryServer(u.i)}});t.a=h},function(e,t,n){"use strict";var i=n(71),a=n(503),r=a.a.extend({
mixins:[i.a],initialize:function(e){var t=e.appModel;a.a.prototype.initialize.apply(this,arguments),this.appModel=t,this.listenTo(this.appModel,"change:primaryServer",this.onPrimaryServerChange)},supportsRetry:function(e){var t=this.appModel.get("primaryServer");return!!t&&t.id===e.id},onPrimaryServerChange:function(e,t){var n=e.previous("primaryServer");n&&this.stop(n),t&&t.get("isUnavailable")&&this.start(t)}});t.a=r},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(15),c=n(59),d=n(733),p=n(1234),h=n(71),f=n(29),v=n(135),m=n(79),g=c.a.extend({mixins:[h.a],browserConnectionChangeDelay:2e3,initialize:function(e){s.a.bindAll(this,"onBrowserConnectionChange"),this.appModel=e.appModel,this.servers=this.appModel.get("servers");var t={callback:this.retryServerConnections.bind(this),logFormat:"[Connections] Retrying connection tests for %s in %s seconds"};this._cloudServerRetryManager=new d.a(t),
this._primaryServerRetryManager=new p.a(a()({},t,{appModel:this.appModel}))},start:function(){this.stop();var e=l()(window);e.on("online",this.onBrowserConnectionChange),e.on("offline",this.onBrowserConnectionChange),this.listenTo(u.a,{"test:servers":this.onTestAllServers,"test:server":this.onTestServer}),this.listenTo(this.servers,{add:this.onServerAdd,remove:this.onServerRemove,reset:this.onServersReset,"error:connection":this.onServerConnectionError,
"change:connections.add":this.onServerConnectionAdd,"change:connections.remove":this.onServerConnectionRemove,"change:connections.reset":this.onServerConnectionsReset,"change:connections.change:isConnected":this.onServerConnectionConnectedChange,"change:connections.change:sources.change":this.onServerConnectionSourcesChange,"change:accessToken":this.onServerAccessTokenChange,"change:isConnected":this.onServerConnectedChange,"change:isUnavailable":this.onServerUnavailableChange,
"change:publicAddressMatches":this.onServerPublicAddressMatchesChange}),this.servers.invoke("testOnlyUntestedConnections")},stop:function(){this.stopListening(),this._cloudServerRetryManager.stopAll(),this._primaryServerRetryManager.stopAll();var e=l()(window);e.off("online",this.onBrowserConnectionChange),e.off("offline",this.onBrowserConnectionChange)},retryServerConnections:function(e){e.testAllConnections()},_startFailedServerRetries:function(e){
e.get("isCloud")?this._cloudServerRetryManager.start(e):this._primaryServerRetryManager.start(e)},_stopFailedServerRetries:function(e){e.get("isCloud")?this._cloudServerRetryManager.stop(e):this._primaryServerRetryManager.stop(e)},_removeConnection:function(e){var t=e.server,i=v.a.getActiveServers();if(n.i(f.a)("[Connections] Removed connection %s from %s",e.id,t.get("debugName")),t.abortConnectionTest(e),i){var a=i.get(t.id),r=a&&a.get("connections");r&&r.get(e.id)&&(r.remove(e.id),
r.length||i.remove(t.id),v.a.debouncedSave())}},onBrowserConnectionChange:function(e){var t=this;n.i(f.a)("[Connections] Browser online status changed to",window.navigator.onLine),clearTimeout(this.browserConnectionChangeTimeout),this.browserConnectionChangeTimeout=setTimeout(function(){t.servers.invoke("testAllConnections")},this.browserConnectionChangeDelay)},onTestAllServers:function(){this.servers.invoke("testAllConnections")},onTestServer:function(e){e.testAllConnections()},
onServerAdd:function(e){e.testOnlyUntestedConnections()},onServerRemove:function(e){var t=v.a.getActiveServers(),n=void 0;if(e.abortAllConnectionTests(),this._stopFailedServerRetries(e),t)if(e.get("isMerged")){var i=e.previous("machineIdentifier");i&&(n=t.get(i))&&(n.set("machineIdentifier",e.id),v.a.debouncedSave())}else(n=t.get(e.id))&&(t.remove(e.id),v.a.debouncedSave())},onServersReset:function(e,t){var n=this,i=t.previousModels;s.a.each(i,function(t){
e.contains(t)||(t.abortAllConnectionTests(),n._stopFailedServerRetries(t))})},onServerConnectionError:function(e){if(f.a.warn("[Connections] Possible connection error for %s, retrying connection tests",e.get("debugName")),e.get("isCloud")){this.appModel.get("user").signInUnsupervised()}else e.testAllConnections()},onServerConnectionAdd:function(e){var t=e.server;n.i(f.a)("[Connections] Added connection %s for %s",e.id,t.get("debugName")),
e.get("relay")&&!t.get("connections").hasFailedEveryDirectConnection()||t.testConnection(e)},onServerConnectionRemove:function(e){this._removeConnection(e)},onServerConnectionsReset:function(e,t){var n=this,i=t.previousModels;s.a.each(i,function(t){e.contains(t)||n._removeConnection(t)})},onServerConnectionConnectedChange:function(e,t){var n=e.server,i=e.get("isBundled"),a=e.get("isFallback"),r=t&&!i&&!a,o=v.a.getActiveServers();if(n.id&&!n.get("isCloud")&&r&&o){var l=o.get(n.id)
;if(l)l.copyFromServer(n);else{var u=s.a.omit(n.toJSON(),"connections");l=o.add(u,{merge:!0,parse:!0})}l.get("connections").add(e.toJSON(),{merge:!0,parse:!0}),v.a.debouncedSave()}},onServerConnectionSourcesChange:function(e,t){var n=e.server,i=v.a.getActiveServers(),a=i&&i.get(n.id);if(a){var r=a.get("connections"),s=r.get(e.id);if(s){s.get("sources").set(t.toJSON()),v.a.debouncedSave()}}},onServerAccessTokenChange:function(e,t){
e.get("isCloud")||(n.i(f.a)("[Connections] Access token for %s changed to %s",e.get("debugName"),t),e.get("isUnauthorized")&&e.set("connectionTestResult",m.c.connectionTestResults.PENDING),e.testAllConnections())},onServerConnectedChange:function(e,t){t&&this._stopFailedServerRetries(e)},onServerUnavailableChange:function(e,t){t&&this._startFailedServerRetries(e)},onServerPublicAddressMatchesChange:function(e,t){void 0!==t&&e.testAllConnections()}});t.a=g},function(e,t,n){"use strict"
;function i(e,t,n){return function(i){return i.server===e&&i.connection.id===t.id&&i.url===n}}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(13),u=n(29),c=n(59),d=n(208),p=n(61),h=c.a.extend({initialize:function(e){this.appModel=e.appModel,this.queued=[],this.executing=[],this.maximumConcurrent=p.a.get("maximumConcurrentConnectionTests"),this.throttledStartProcessing=r.a.throttle(this._startProcessing.bind(this),50,{leading:!1})},queueConnectionTest:function(e){
var t=e.server,n=e.connection,i=e.url,a=this._queuedOrExecuting(t,n,i);if(a)return a.deferred.promise();var r=o.a.Deferred();return this.queued.push({server:t,connection:n,url:i,deferred:r}),this._sortQueue(),this.throttledStartProcessing(),r.promise()},abortConnectionTest:function(e){var t=e.server,n=e.connection,i=e.url;return this._abortCurrentTest(t,n,i),this._removeQueuedOrExecuting(t,n,i),o.a.Deferred().resolve().promise()},reset:function(){this.queued.length=0,this.executing.length=0},
_sortQueue:function(){var e=this,t=this.appModel.get("user").get("lastPrimaryServerID");this.queued.sort(function(n,i){var a=n.server,r=i.server,s=n.connection,o=i.connection,l=e._isManualConnection(s),u=e._isManualConnection(o),c=e._isMatchingLocation(a,s),d=e._isMatchingLocation(r,o)
;return a.id===t&&r.id!==t?-1:r.id===t&&a.id!==t?1:a.get("isCloud")&&!r.get("isCloud")?-1:r.get("isCloud")&&!a.get("isCloud")?1:!s.get("relay")&&o.get("relay")?-1:!o.get("relay")&&s.get("relay")?1:!s.get("isConnected")&&o.get("isConnected")?-1:!o.get("isConnected")&&s.get("isConnected")?1:!a.get("isShared")&&r.get("isShared")?-1:!r.get("isShared")&&a.get("isShared")?1:a.get("isFullServer")&&!r.get("isFullServer")?-1:r.get("isFullServer")&&!a.get("isFullServer")?1:!a.get("isCloudSyncServer")&&r.get("isCloudSyncServer")?-1:!r.get("isCloudSyncServer")&&a.get("isCloudSyncServer")?1:l&&!u?-1:u&&!l?1:s.get("isBundled")&&!o.get("isBundled")?-1:o.get("isBundled")&&!s.get("isBundled")?1:c&&!d?-1:d&&!c?1:0
})},_startProcessing:function(){r.a.times(this.maximumConcurrent-this.executing.length,this._process.bind(this))},_process:function(){var e=this;if(!(this.executing.length>=this.maximumConcurrent)&&this.queued.length){var t=this.queued.shift(),i=t.server,a=t.connection,r=t.url;this._abortCurrentTest(i,a,r);var s=n.i(l.a)("testServerConnection"),o=s({server:i,connection:a,url:r});this.executing.push(t),o.done(function(e,n){t.deferred.resolve(e,n)}),o.fail(function(e,n){t.deferred.reject(e,n)}),
o.always(function(){var n=e.executing.indexOf(t);e.executing.splice(n,1),e._process()})}},_abortCurrentTest:function(e,t,i){var a=t.get("currentTest"),r=e.resolveUrl(i||"/",{connection:t});a&&"pending"===a.state()&&(n.i(u.a)("[Connections] Aborting pending connection test for %s at %s",e.get("debugName"),r),d.a.abort(a.rid),a.abort())},_isManualConnection:function(e){return e.get("sources").some(function(e){return 0===e.id.indexOf("manualServer")})},_isMatchingLocation:function(e,t){
var n=e.get("publicAddressMatches"),i=t.get("isPrivate");return n&&i||!n&&!i},_queuedOrExecuting:function(e,t,n){var a=i(e,t,n);return r.a.find(this.executing,a)||r.a.find(this.queued,a)},_removeQueuedOrExecuting:function(e,t,n){var a=i(e,t,n),s=r.a.findIndex(this.executing,a),o=r.a.findIndex(this.queued,a);s>=0&&this.executing.splice(s,1),o>=0&&this.queued.splice(o,1)}});t.a=h},function(e,t,n){"use strict"
;var i=n(65),a=n.n(i),r=n(10),s=n.n(r),o=n(3),l=n.n(o),u=n(59),c=n(15),d=n(29),p=n(71),h=n(79),f=n(755),v=n(135),m=a()(f.a.prototype.syncedAttrs),g=u.a.extend({mixins:[p.a],initialize:function(e){this.appModel=e.appModel,this.servers=this.appModel.get("servers")},start:function(){var e=this;this.stop(),this.listenTo(this.servers,{"change:promiseState":this.onServerPromiseStateChange,remove:this.onServerRemove,"update reset":this.onServersUpdateReset,"change:resources.add":this.onResourceAdd,
"change:resources.remove":this.onResourceRemove,"change:resources.update":this.onResourcesUpdate,"change:resources.reset":this.onResourcesReset,"change:resources.change:presence":this.onResourcesPresenceChange,"change:resources.change:connections.update":this.onResourceConnectionsUpdate}),m.forEach(function(t){e.listenTo(e.servers,"change:"+t,e.onStoredServerAttributeChange.bind(e,t))}),this.listenTo(c.a,"discover:servers",this.onDiscoverServers),this._setAuthorized(),
this._checkFoundAllServers()},stop:function(){this.stopListening()},_checkFoundAllServers:function(){this.servers.shouldWaitForInitialServers()?this._waitForServers():this.servers.shouldWaitForResources()?this._waitForServers():this.servers.shouldWaitForPendingServers()?this._waitForServers():this._foundAllServers()},_waitForServers:function(){this.servers.waitForServers(),this.appModel.set("isWaitingForServers",!0)},_foundAllServers:function(){this.servers.foundAllServers(),
this.appModel.set("isWaitingForServers",!1)},_fetchResources:function(e){var t=this;if(e.get("isRejected"))return s.a.Deferred().reject().promise();if(!e.get("isResolved"))return n.i(d.a)("[Servers] Finding resources through unresolved cloud server %o, resolving",e.get("debugName")),e.populate().then(function(){return t._fetchResources(e)});n.i(d.a)("[Servers] Finding resources through %s",e.get("debugName")),this._waitForServers(),e.set("isResourcesPending",!0);var i=e.get("resources")
;return i.fetch().done(function(){n.i(d.a)("[Servers] Found %s resources through %s",i.length,e.get("debugName")),e.set({isResourcesPending:!1,hasFailedResources:!1,isDownForMaintenance:!1})}).fail(function(t,n){d.a.warn("[Servers] Failed to request resources through %s",e.get("debugName")),e.set({isResourcesPending:!1,hasFailedResources:!0,isDownForMaintenance:503===n.status})}).always(function(){t._checkFoundAllServers()})},_convertResourceToServer:function(e){
n.i(d.a)("[Servers] %s was found through %s",e.get("name"),e.server.get("debugName"));var t="Plex Media Server"===e.get("product"),i="Plex Cloud Server"===e.get("product"),a=new h.c({machineIdentifier:e.id,friendlyName:e.get("name"),version:t?e.get("productVersion"):void 0,isShared:!e.get("owned"),accessToken:e.get("accessToken"),sourceTitle:e.get("sourceTitle"),publicAddressMatches:e.get("publicAddressMatches"),httpsRequired:e.get("httpsRequired"),platform:e.get("platform"),
platformVersion:e.get("platformVersion"),presence:e.get("presence"),home:e.get("home"),synced:e.get("synced"),serverClass:t||i?void 0:h.c.serverClasses.SECONDARY,createdAt:e.get("createdAt"),lastSeenAt:e.get("lastSeenAt"),ownerId:e.get("ownerId")},{parent:this.appModel});return this._addResourceConnectionsToServer(e,a),a},_addResourceConnectionsToServer:function(e,t){e.get("connections").each(function(n){var i=[{id:e.server.id}],a=l.a.extend(n.toJSON(),{sources:i});t.addConnection(a)})},
_removeResource:function(e){n.i(d.a)("[Servers] %s was removed as a resource from %s",e.get("name"),e.server.id);var t=this.servers.get(e.id);t&&t.removeSource(e.server.id)},_pruneStaleSources:function(e){for(var t=e.get("resources"),n=this.servers.length-1;n>=0;){var i=this.servers.at(n),a=t.get(i.id);if(a)for(var r=i.get("connections"),s=r.length-1;s>=0;){var o=r.at(s),l=o.get("sources");if(l.get(e.id)){var u=a.get("connections");u.get(o.id)||o.get("sources").remove(e.id)}s--
}else i.removeSource(e.id);n--}},_setAuthorized:function(){var e=!!this.servers.findWhere({isConnected:!0,isCloud:!1}),t=!!this.servers.findWhere({isResolved:!0,isCloud:!0});this.appModel.set("authorized",e||t)},onServerPromiseStateChange:function(e,t){if(t===h.c.promiseStates.RESOLVED){e.get("resources")&&this._fetchResources(e)}this._setAuthorized(),this._checkFoundAllServers()},onStoredServerAttributeChange:function(e,t,n){var i=v.a.getActiveServers(),a=i&&i.get(t.id)
;a&&null!=n&&a.get(e)!==n&&(a.set(e,n),v.a.debouncedSave())},onServerRemove:function(e){d.a.warn("[Servers] %s was removed",e.get("debugName")),e.cache.remove(e),c.a.trigger("clearWhere:cache",{server:e})},onServersUpdateReset:function(){this._setAuthorized(),this._checkFoundAllServers()},onDiscoverServers:function(){var e=this.appModel.get("cloudServer");this._fetchResources(e)},onResourceAdd:function(e){if(l.a.contains(e.get("provides"),"server")){var t=this._convertResourceToServer(e)
;this.servers.add(t)}},onResourceRemove:function(e){this._removeResource(e)},onResourcesUpdate:function(e){this._pruneStaleSources(e.server),this._checkFoundAllServers()},onResourcesReset:function(e,t){var n=this,i=t.previousModels;l.a.each(i,function(t){e.contains(t)||n._removeResource(t)}),this._checkFoundAllServers()},onResourcesPresenceChange:function(e){var t=this.servers.get(e.id);t&&t.set("presence",e.get("presence"))},onResourceConnectionsUpdate:function(e){
var t=e.parent,n=this.servers.get(t.id);n&&(this._addResourceConnectionsToServer(t,n),this._pruneStaleSources(e.server),this._checkFoundAllServers())}});t.a=g},function(e,t,n){"use strict";var i=n(13),a=n(15),r={subscribe:function(){a.a.on("cloudServer:processRemoteControlCommand",this.onCloudServerCommand,this)},unsubscribe:function(){a.a.off("cloudServer:processRemoteControlCommand",this.onCloudServerCommand,this)},onCloudServerCommand:function(e){var t=e.Command,a={supportsTimeline:!1,
path:t.path,commandID:t.commandID,query:{key:[t.queryKey],offset:[t.queryOffset],mediaIndex:[t.queryMediaIndex],containerKey:[t.queryContainerKey],playQueueID:[t.queryPlayqueueid],type:[t.queryType],volume:[t.queryVolume],repeat:[t.queryRepeat],audioStreamID:[t.queryAudioStreamID],subtitleStreamID:[t.querySubtitleStreamID],token:[t.queryToken],machineIdentifier:[t.queryMachineIdentifier],protocol:[t.queryProtocol],address:[t.queryAddress],port:[t.queryPort],text:[t.queryText],
field:[t.queryField]}};n.i(i.a)("localCompanionCommandHandler")(a)}};t.a=r},function(e,t,n){"use strict";function i(e,t,i){function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(A)return void(L=!0);L=!1;var t=s(h.c),i=s(h.d),a=s(h.b),r=t._location||a._location||i._location||f.a,o={MediaContainer:{_location:r,Timeline:[t,i,a]}};e.requestDisconnect&&(o.MediaContainer._disconnected=1),n.i(l.a)(o),u.a.publish(o),A=setTimeout(w,I)}function s(t){var i={_type:t,_state:d.a,
_volume:E(e),_controllable:T[t]},a=M(t);if(!a)return i;var s=a.get("serverEntityID"),l=a.get("providerEntityID"),u=n.i(c.f)(e,{serverEntityID:s}),m=n.i(c.d)(e,{providerEntityID:l}),S=n.i(b.a)(u),I=a.get("decisions"),w=a.get("playQueue"),D=w.get("playQueueItems"),P=w.get("playQueueSelectedItemID"),x=D.get(P),N=x.get("metadataItem"),L=n.i(g.a)({metadataItemModel:N}),A=h.a(L),k=1e3*a.get("positionSeconds"),_=1e3*a.get("durationSeconds"),O=p.a
;return a.get("repeatOne")?O=p.b:a.get("repeatAll")&&(O=p.c),S&&(i._protocol=S.protocol,i._address=S.address,i._port=S.port),i._machineIdentifier=u.get("originalMachineIdentifier")||u.get("machineIdentifier"),i._providerIdentifier=m.get("identifier"),i._itemType=A,i._key=N.get("key"),i._ratingKey=N.get("ratingKey"),i._containerKey=o.a.result(w,"url"),i._playQueueID=w.get("playQueueID"),i._playQueueItemID=P,i._playQueueVersion=w.get("playQueueVersion"),i._state=n.i(y.a)(a),i._time=k,
i._duration=_,i._seekRange="0-"+_,i._shuffle=w.get("playQueueShuffled")?1:0,i._repeat=O,a.get("openState")===v.a&&(i._location=f.b(t)),r()({},i,C(x,I))}function M(t){var n=h.e(t),i=x(e);return o.a.find(i,function(e){var t=e.get("playQueue");if(t&&t.get("type")===n)return e})}function C(e,t){var n=e.get("metadataItem"),i=t[e.entityID()];if(!i)return{};var a={_mediaIndex:i.mediaIndex,_partIndex:i.partIndex,_partCount:i.partCount},r=n.get("Media"),s=r[i.mediaIndex],o=s&&s.Part,l=o&&o[i.partIndex]
;return(l?l.Stream:[]).reduce(function(e,t){var n=t.id,i=t.streamType,a=t.selected;return n?(i===m.a.get("video").id?e._videoStreamID=n:a&&(i===m.a.get("audio").id?e._audioStreamID=n:i===m.a.get("subtitles").id&&(e._subtitleStreamID=n)),e):e},a)}function w(){A=null,L&&a()}function D(){if(!N){N=!0,t.dispatch(n.i(S.c)());x(e).forEach(function(e){e.on("change",a)})}}function P(){N=!1,A&&(clearTimeout(A),A=null),x(e).forEach(function(e){e.off("change",a)}),a({requestDisconnect:!0})}
var T=i.companionPlayerProfile,x=i.getPlayerModels,E=i.getVolume,N=!1,L=!1,A=void 0;return{start:D,stop:P}}var a=n(6),r=n.n(a),s=n(3),o=n.n(s),l=n(29),u=n(501),c=n(98),d=n(799),p=n(406),h=n(342),f=n(1396),v=n(137),m=n(90),g=n(336),y=n(773),b=n(595),S=n(185);t.a=i;var I=1e3},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(504),s={
bindings:a.a.pick(r.a.defaultBindings,[".item-title",".item-year",".item-duration",".item-tagline",".item-genre",".item-director",".item-writer",".item-cast",".item-content-rating",".content-rating-flag-container",".studio-flag-container"])};t.a=s},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(10),s=n.n(r),o=n(19),l=n(15),u=n(1419),c=n(1399),d={languages:u.a,loadingPromise:null,loadingLanguage:null,getLanguages:function(){return this.languages},getTranslation:function(e){
if(this.translations[this.language])return this.translations[this.language][e]},t:n.i(c.a)(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return this.getTranslation.apply(this,[e].concat(n))}),load:function(e){if(this.loadingLanguage&&this.loadingLanguage===e)return this.loadingPromise;var t,i=this.getLanguages();return t=a.a.has(i,e)?a.a.has(this.translations,e)?s.a.Deferred().resolve().promise():s.a.ajax({dataType:"json",
url:n.i(o.join)([this.basePath,i[e]])}):s.a.Deferred().reject().promise(),this.loadingLanguage=e,this.loadingPromise=t,t.done(a.a.bind(this.onLoadSuccess,this,t)),t.fail(a.a.bind(this.onLoadError,this,t)),t},onLoadSuccess:function(e,t){var n=this.loadingLanguage;e===this.loadingPromise&&(this.loadingPromise=null,this.loadingLanguage=null,this.language=n,t&&(this.translations[n]=t),l.a.trigger("change:language",n))},onLoadError:function(e){e===this.loadingPromise&&(this.loadingPromise=null,
this.loadingLanguage=null)}};t.a=d},function(e,t,n){"use strict";var i={exclusiveBoolAttr:function(e){var t=this;this.listenTo(this,"change:"+e,function(n,i){i&&t.each(function(t){t.set(e,t===n&&i)})})}};t.a=i},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r={bindToModel:function(){this.bindings&&a.a.each(a.a.keys(this.bindings),function(e){var t,n=this.bindings[e];if(t=n.model?this[n.model]:this[this.bindingsModel]||this.model){var i=n.modelListeners||[n.modelAttribute]
;a.a.each(i,function(i){var r={obj:t,name:"change:"+i,callback:a.a.bind(this.renderBinding,this,e,n,t)};this._bindingListeners||(this._bindingListeners=[]),this._bindingListeners.push(r),this.listenTo(r.obj,r.name,r.callback)},this),this.renderBinding(e,n,t)}},this)},unbindFromModel:function(){this.bindings&&(a.a.each(this._bindingListeners,function(e){this.stopListening(e.obj,e.name,e.callback)},this),this._bindingListeners=null)},renderBinding:function(e,t,n){
var i=this.$(e),r=t.formatter,s=!!t.isHtml,o=t.autohide,l=t.hiddenClass||"hidden",u=n.get(t.modelAttribute);if(r&&(u=r.call(this,u,i)),o){var c=a.a.isFunction(o)?o.call(this,u):u;i.toggleClass(l,!c)}t.manual||(!s&&a.a.isString(u)&&(u=a.a.escape(u)),i.html(u))}};t.a=r},function(e,t,n){"use strict";var i=n(506),a=n(1251),r=i.a.extend({defaults:a.a});t.a=r},function(e,t,n){"use strict";var i=n(15),a=n(31),r=n(16),s=n(17),o=n(1315),l=n(79),u=n(1307),c=n(754),d=n(225),p=s.a.extend({name:"AppModel",
isStateTreeRoot:!0,sessionAttrs:{clientID:r.a.string,anonymousClientID:r.a.string,authorized:r.a.boolean.isRequired,skipSignIn:r.a.boolean.isRequired,isWaitingForServers:r.a.boolean.isRequired,isWaitingForPrimaryServer:r.a.boolean.isRequired,history:r.a.array.isRequired,forwardHistory:r.a.array.isRequired},sessionRelations:{servers:{relationClass:o.a},cloudServer:{relationClass:u.a,deferred:!0},primaryServer:{relationClass:l.c,deferred:!0},transientServer:{relationClass:c.a,deferred:!0},user:{
relationClass:d.a,deferred:!0}},defaults:function(){var e=new u.a({machineIdentifier:"myPlex"},{parent:this});return{authorized:!1,skipSignIn:!1,isWaitingForServers:!1,isWaitingForPrimaryServer:!1,history:[],forwardHistory:[],cloudServer:e,user:new d.a({},{server:e,parent:this})}},constructor:function(){this._pendingEntities=[],this.listenTo(i.a,"change:entity",this.onEntityChange),s.a.prototype.constructor.apply(this,arguments)},initialize:function(){
this._pendingEntities.forEach(this._addEntity.bind(this))},_addEntity:function(e){var t=e.type,i=e.id,r=e.model,s=this.get("entities");n.i(a.a)(s,"Use `createEntitiesModelClass` to create an `entities` session relation in a platform's app model"),s.get(t).add({id:i,model:r},{merge:!0})},onEntityChange:function(e){this.has("entities")?this._addEntity(e):this._pendingEntities.push(e)}});t.a=p},function(e,t,n){"use strict";var i=n(22),a=n(1247),r=i.a.extend({name:"EntityCollection",model:a.a,
toState:function(){var e=this.reduce(this.reduceState,{possibleEntityContainers:[]});return Object.defineProperty(e,"possibleEntityContainers",{enumerable:!1}),e},reduceState:function(e,t){return e.possibleEntityContainers.push(t.id),e[t.id]=t.getState(),e}});t.a=r},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(16),s=n(17),o=s.a.extend({name:"EntityModel",sessionAttrs:{id:r.a.string.isRequired},sessionRelations:{model:{relationClass:s.a,deferred:!0}},toState:function(){
var e=this.get("model"),t=a()({entityID:this.id},e.state);return Object.defineProperty(t,"possibleEntityContainers",{value:e.state.possibleEntityContainers,enumerable:!1}),t},shouldUpdateRelationState:function(){return!0}});t.a=o},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(55),s=n(59),o=n(71),l=s.a.extend({mixins:[o.a],defaultFilterName:"__default",whitelistedEvents:["add","remove","reset","sort","destroy","sync","request","error"],
blacklistedMethods:["_onModelEvent","_prepareModel","_removeReference","_reset","add","initialize","sync","remove","reset","set","push","pop","unshift","shift","sort","parse","fetch","create","model","off","on","listenTo","listenToOnce","bind","trigger","once","stopListening"],constructor:function(e,t){this.superset=e,this._collection=new r.a.Collection(e.toArray()),this._proxyCollection(this._collection),this.resetFilters(),this.listenTo(e,{add:this.onSupersetAdd,remove:this.onSupersetRemove,
reset:this.onSupersetReset}),this.initialize(t)},_proxyCollection:function(e){this.models=e.models,this._proxyCollectionMethods(e),this._proxyCollectionLength(e),this._proxyCollectionEvents(e)},_proxyCollectionMethods:function(e){var t={};a.a.each(a.a.functions(r.a.Collection.prototype),function(n){a.a.contains(this.blacklistedMethods,n)||(t[n]=function(){return e[n].apply(e,arguments)})},this),a.a.extend(this,t)},_proxyCollectionLength:function(e){var t=function(){this.length=e.length}
;this.listenTo(e,"all",t),t.call(this)},_proxyCollectionEvents:function(e){var t=function(t){var n=a.a.toArray(arguments),i="change"===t||"change:"===t.slice(0,7);"reset"===t&&(this.models=e.models),a.a.contains(this.whitelistedEvents,t)?(a.a.contains(["add","remove","destroy"],t)?n[2]=this:a.a.contains(["reset","sort"],t)&&(n[1]=this),this.trigger.apply(this,n)):i&&this.contains(n[1])&&this.trigger.apply(this,n)};this.listenTo(e,"all",t)},addFilter:function(e,t){return t||(t=e,
e=this.defaultFilterName),a.a.has(this._filters,e)&&this._invalidateCacheForFilter(e),this._filters[e]=this._createFilter(t),this._execFilters(),this.trigger("filtered:add",e),this},removeFilter:function(e){return e||(e=this.defaultFilterName),delete this._filters[e],this._invalidateCacheForFilter(e),this._execFilters(),this.trigger("filtered:remove",e),this},resetFilters:function(){return this._filters={},this._invalidateCache(),this._execFilters(),this.trigger("filtered:reset"),this},
getFilters:function(){return a.a.keys(this._filters)},hasFilter:function(e){return a.a.contains(this.getFilters(),e)},refilter:function(e){return a.a.isObject(e)&&e.cid?this.onSupersetAdd(e):(this._invalidateCache(),this._execFilters()),this},destroy:function(){return this.stopListening(),this.superset=null,this._collection.reset([]),this.length=0,this.trigger("filtered:destroy"),this},_createFilter:function(e,t){if(a.a.isFunction(e))return e;throw new Error("Unsupported filter type")},
_execFilters:function(e){e||(e={});var t=[];this.superset&&(t=this.superset.filter(a.a.bind(this._execFiltersOnModel,this))),e.reset?this._collection.reset(t):this._collection.set(t),this.length=this._collection.length},_execFiltersOnModel:function(e){this._filterResultCache[e.cid]||(this._filterResultCache[e.cid]={});var t=this._filterResultCache[e.cid];for(var n in this._filters)if(a.a.has(this._filters,n)&&(a.a.has(t,n)||(t[n]=this._filters[n](e)),!t[n]))return!1;return!0},
_invalidateCache:function(){this._filterResultCache={}},_invalidateCacheForFilter:function(e){for(var t in this._filterResultCache)a.a.has(this._filterResultCache,t)&&delete this._filterResultCache[t][e]},onSupersetAdd:function(e){if(this._filterResultCache[e.cid]={},this._execFiltersOnModel(e)){if(!this._collection.get(e.cid)){for(var t=this.superset.indexOf(e),n=0,i=t-1;i>=0;i-=1)if(this.contains(this.superset.at(i))){n=this.indexOf(this.superset.at(i))+1;break}this._collection.add(e,{at:n})}
}else this._collection.get(e.cid)&&this._collection.remove(e);this.length=this._collection.length},onSupersetRemove:function(e){this.contains(e)&&this._collection.remove(e),this.length=this._collection.length},onSupersetReset:function(){this._execFilters({reset:!0})}});t.a=l},function(e,t,n){"use strict";var i=n(108),a=i.a.extend({pageSize:10,pages:function(){return Math.max(Math.ceil(this.length/this.pageSize),1)},page:function(e,t){t||(t={});var n,i=0
;return n=t.reverse?this.length-e*this.pageSize:e*this.pageSize-this.pageSize,n<0&&(i=n,n=0),this.models.slice(n,n+this.pageSize+i)}});t.a=a},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(10),s=n.n(r),o=n(123),l=n(75),u=l.a.extend({fetch:function(){return this.storage.fetch().then(a.a.bind(function(){var e=this._readFromStorage();return e?(this.set(e),this):s.a.Deferred().reject()},this))},save:function(e){return n.i(o.a)(this.storage.fetch()).then(a.a.bind(function(){
return e&&this.set(e),this._saveToStorage(this.toJSON())},this))},destroy:function(){return n.i(o.a)(this.storage.fetch()).then(a.a.bind(function(){return this.storage.unset(a.a.result(this,"storageKey")),this.storage.save()},this))},_readFromStorage:function(){return this.storage.get(a.a.result(this,"storageKey"))},_saveToStorage:function(e){return this.storage.save(a.a.result(this,"storageKey"),e)}});t.a=u},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(1418),s=n(341),o=n(796),l=n(16)
;n.d(t,"a",function(){return d});var u=n.i(r.a)(window.PLEXWEB_INLINE&&window.PLEXWEB_INLINE.acceptLanguage),c={allowHttpFallback:{type:l.a.string,defaultValue:s.a.NEVER},companion:{type:l.a.boolean,defaultValue:!0},language:{type:l.a.string,defaultValue:u},autoLogin:{type:l.a.boolean,defaultValue:!1},extrasPrefixCount:{type:l.a.integer,defaultValue:0},debugLevel:{type:l.a.integer,defaultValue:o.a.DISABLED}},d=(a.a.mapObject(c,function(e){return e.type}),a.a.mapObject(c,function(e){
return e.defaultValue}))},function(e,t,n){"use strict";var i=n(15),a=n(22),r=n(736),s=a.a.extend({name:"ChannelCollection",context:["server","channel"],model:r.a,url:function(){return this.containerKey},initialize:function(){this.listenTo(i.a,"clear:channels",this.reset)},sortByTitle:function(e){return e.get("title").toLowerCase()},sortByLastAccess:function(e){return-e.get("lastAccessedAt")},filterByType:function(e){var t=this.filter(function(t){return t.get("type")===e});return this.clone(t)}})
;t.a=s},function(e,t,n){"use strict";var i=n(146),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(55),c=n(13),d=n(15),p=n(1255),h=n(1254),f=/(auth_token=|accessToken=|X-Plex-Token=)(\"?\w+\"?)/g,v=function(e){return e=e.replace(f,"$1TOKEN"),e.replace(/(password=)([^&]+)/,"$1PASSWORD")},m=function(e){return e&&e.hasOwnProperty("X-Plex-Token")&&(e["X-Plex-Token"]="TOKEN"),e&&e.hasOwnProperty("Authorization")&&(e.Authorization="BASIC AUTHORIZATION"),e},g=function(e){
if(e)return e=e.replace(f,'$1"TOKEN"'),e=e.replace(/(email=)(\"?[^&]+\"?)/g,'$1"EMAIL"'),e=e.replace(/(address=|host=|uri=)(\"?[^&]+\"?)/g,'$1"IP ADRRESS"')},y=u.a.Collection.extend({model:h.a,initialize:function(e,t){s.a.bindAll(this,"onAjaxComplete","onAppModelRegistered"),this.parent=t.parent,p.a.parent=t.parent,n.i(c.d)("appModel").done(this.onAppModelRegistered)},reconfigure:function(){n.i(c.a)("appModel").get("settings").get("debugLevel")?this.start():this.stop()},start:function(){
this.enabled||(this.enabled=!0,this.reset(),this.listenTo(d.a,"log:message",this.onLogMessage),u.a.history.on("route",this.onRoute,this),l()(document).on("ajaxComplete",this.onAjaxComplete))},stop:function(){this.enabled&&(this.enabled=!1,this.reset(),this.stopListening(d.a),u.a.history.off("route",this.onRoute,this),l()(document).off("ajaxComplete",this.onAjaxComplete))},destroy:function(){this.stop(),this.stopListening()},add:function(){this.length>200&&this.shift(),
u.a.Collection.prototype.add.apply(this,arguments)},toJSON:function(){var e=u.a.Collection.prototype.toJSON.apply(this,arguments);return e.unshift(s.a.extend({type:"info"},p.a.toJSON())),e},toJSONString:function(){return a()(this.toJSON(),null,2)},onAppModelRegistered:function(e){var t=e.get("settings");this.listenTo(t,"change:debugLevel",this.reconfigure),this.reconfigure()},onLogMessage:function(e){this.add(e)},onRoute:function(e,t,n){var i={type:"navigation",route:t,args:n,
fragment:window.location.hash};this.add(i)},onAjaxComplete:function(e,t,i){var a=n.i(c.a)("appModel").get("settings"),r={type:"ajax",url:v(i.url),status:t.status};s.a.isEmpty(i.headers)||(r.headers=m(i.headers)),s.a.isEmpty(i.data)||(r.params=v(i.data)),200===t.status?2===a.get("debugLevel")?r.response=g(t.responseText):r.responseLength=t.responseText?t.responseText.length:0:(r.statusText=t.statusText,r.response=g(t.responseText)),this.add(r)}});t.a=y},function(e,t,n){"use strict"
;var i=n(55),a=i.a.Model.extend({initialize:function(e,t){this.set("time",new Date)}});t.a=a},function(e,t,n){"use strict";var i=n(55),a=n(33),r=i.a.Model.extend({initialize:function(e,t){this.set("host",window.location.host),this.set("userAgent",window.navigator.userAgent),this.set("browser",a.a)},toJSON:function(){var e=this.parent,t=e.get("primaryServer"),n=e.get("user");return this.set("version","3.20.7"),t&&(t.get("activeConnection")&&this.set("primaryServerUrl",t.url()),
this.set("primaryServerAuthToken",!!t.get("accessToken")),this.set("primaryServerVersion",t.get("versionFull"))),this.set("username",n.get("username")),this.set("cloudUrl",n.server.get("connections")),i.a.Model.prototype.toJSON.apply(this,arguments)}});t.a=new r},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(10),s=n.n(r),o=n(75),l=n(1434),u=n(837),c=n(831),d=n(332),p=o.a.extend({defaults:{selectedItem:null,mediaType:null,collection:null,owned:!0,lastAddedItem:null,hasUserAdditions:!1},
url:"",initialize:function(e){this.set({mediaType:e.mediaType,collection:new d.a([],{type:e.mediaType,server:e.server})})},fetch:function(){return s.a.Deferred().resolve().promise()},queueContent:function(e,t,i){i||(i={});var r=s.a.Deferred().resolve().promise(),o=e.get("isPlayQueueItem")?e.get("metadataItem"):e;return this.isItemQueueable(o)&&(o.get("children")&&a.a.result(o.get("children"),"url")&&(r=r.then(function(){return o.get("children").populate()})),r=r.done(a.a.bind(function(){
this.set({lastAddedItem:o,hasUpNext:!0,hasUserAdditions:this.get("collection").length>0,shuffled:!!i.shuffled});var e=this.get("collection").indexOf(t);e===-1&&(e=0);var r=i.next?{at:e+1}:{},s=n.i(l.a)(o);if(s){var d=s.filter(u.a);i.shuffle&&(d=a()(d).shuffle());var p=a.a.map(d,a.a.bind(c.a,this));this.get("collection").add(p,r)}else this.get("collection").add(c.a.apply(this,[o]),r);this.get("collection").trigger("reset",this.get("collection"))},this))),r},addContent:function(e,t){
return this.queueContent(e,this.get("selectedItem"),t).then(a.a.bind(this._setSelectedItem,this,t))},_setSelectedItem:function(e){var t=null;e&&e.firstItemKey?t=this.get("collection").find(function(t){return t.get("key")===e.firstItemKey}):this.get("collection").length&&(t=this.get("collection").at(0)),this.set("selectedItem",t)},removeItem:function(e){
return e.get("playQueueItemID")===this.get("selectedItem").get("playQueueItemID")?s.a.Deferred().resolve().promise():(this.set("hasUserAdditions",!0),this.get("collection").remove(e),this.get("collection").trigger("reset",this.get("collection")),s.a.Deferred().resolve().promise())},moveItem:function(e,t){if(e===this.get("selectedItem").get("playQueueItemID"))return s.a.Deferred().resolve().promise();var n=this.get("collection"),i=n.findWhere({playQueueItemID:e});n.remove(i)
;var a=t||this.get("selectedItem").get("playQueueItemID"),r=n.findWhere({playQueueItemID:a}),o=n.indexOf(r)+1;return this.set("hasUserAdditions",!0),n.add(i,{at:o}),n.trigger("reset",n),s.a.Deferred().resolve().promise()},isItemQueueable:function(e){if(e.get("currentSubset")&&"photo"!==e.viewGroup)return!1;if("photoalbum"===e.get("type")&&!e.get("isLibraryItem"))return!1
;var t=["track","episode","movie","photo","clip","userPlaylistItem","photoalbum","album","season"],i=a()(t).contains(e.get("type")),r=n.i(l.a)(e),s=r&&r.any(u.a);return i||s},toggleShuffle:function(){return s.a.Deferred().resolve().promise()},setRepeatAll:function(e){return s.a.Deferred().resolve().promise()},yieldOwnership:function(e){e=e||{};var t,i=this.get("lastAddedItem");return t=i.server.get("synced")||e.absoluteUrl?a.a.result(n.i(l.a)(i),"url"):this.get("selectedItem").get("key"),
s.a.Deferred().resolve(t).promise()},takeOwnership:function(){return s.a.Deferred().resolve().promise()},supports:function(e){return!(e&&(e.unwatched||e.remoteRefresh))}});t.a=p},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(16),s=n(17),o=n(332),l=s.a.extend({name:"LocalPlayQueueModel2",context:["server"],url:function(){var e=this.get("playQueueItems"),t=this.get("playQueueSelectedItemID"),n=e.get(t);if(n)return n.get("metadataItem").get("key")},sessionAttrs:{isLocal:r.a.boolean,
type:r.a.string,repeat:r.a.boolean,own:r.a.boolean,isUpdatePending:r.a.boolean,playQueueShuffled:r.a.boolean,playQueueSelectedItemID:r.a.string},sessionRelations:{playQueueItems:{relationClass:o.a}},derivedAttrs:{playQueueTotalCount:function(){return this.get("playQueueItems").length},playQueueSelectedItemOffset:function(){var e=this.get("playQueueItems"),t=this.get("playQueueSelectedItemID");if(!t)return 0;var n=e.get(t);return e.indexOf(n)},currentIndex:function(){
return this.get("playQueueSelectedItemOffset")},canShuffle:function(){return!1}},defaults:{isLocal:!0,repeat:!1,own:!0,isUpdatePending:!1,playQueueShuffled:!1,playQueueSelectedItemOffset:0},fetch:function(){return a.a.Deferred().resolve(this).promise()}});t.a=l},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(740),s=r.a.extend({initialize:function(e){this.playQueue=e.playQueue,this.addFilter(a.a.bind(this.filterAfterUpNext,this)),this.listenForUpNextChanges()},filterAfterUpNext:function(e){
return this.superset.indexOf(e)>this.playQueue.getUpNextRange().end}});t.a=s},function(e,t,n){"use strict";var i=n(82),a=n(16),r=n(17),s=n(52),o=n(332),l=r.a.extend({name:"PlayQueueModel2",context:["server","identifier","mediaTagPrefix","mediaTagVersion"],responseContext:["identifier","mediaTagPrefix","mediaTagVersion"],idAttribute:"playQueueID",hasResponseOnSave:!0,urlRoot:function(){return this.get("key")},sessionAttrs:{key:a.a.string,type:a.a.string,repeat:a.a.boolean,own:a.a.boolean,
isUpdatePending:a.a.boolean},syncedAttrs:{playQueueID:a.a.string,playQueueSelectedItemOffset:a.a.integer,playQueueSelectedItemID:a.a.string,playQueueSelectedMetadataItemID:a.a.string,playQueueLastAddedItemID:a.a.string,playQueueShuffled:a.a.boolean,playQueueSourceURI:a.a.string,playQueueTotalCount:a.a.integer,playQueueVersion:a.a.integer},syncedRelations:{playQueueItems:{relationClass:o.a,rootPropertyName:"Metadata"}},derivedAttrs:{canShuffle:function(){
return!this.get("playQueueLastAddedItemID")},currentIndex:function(){var e=this.get("playQueueItems"),t=this.get("playQueueSelectedItemID"),n=e.get(t);return e.indexOf(n)}},defaults:{repeat:!1,own:!0,isUpdatePending:!1},augmentResponseText:function(e,t){return t===s.a.xml?n.i(i.a)(e):e},augmentResponse:function(e,t){var n=this;return this.responseContext.forEach(function(t){var i=e[t];void 0!==i&&n.setContext(t,i)}),e}});t.a=l},function(e,t,n){"use strict"
;var i=n(3),a=n.n(i),r=n(10),s=n.n(r),o=n(19),l=n(203),u=n(240),c=n(75),d=n(270),p=n(49),h=c.a.extend({idAttribute:"ratingKey",whitelistedAttrs:["guid","addedAt","composite","duration","key","leafCount","playlistType","ratingKey","smart","summary","title","type","allowSync"],defaults:function(){return{children:new d.a([],{server:this.server,parent:this,url:function(){var e,t="/playlists/"+this.parent.id+"/items";return"audio"===this.parent.get("playlistType")&&(e={includeRelated:1}),o.join(t,e)}
})}},urlRoot:"/playlists",saveUrl:function(){return"/library/metadata/"+this.id},cacheKey:function(e){if(e.key)return this.server&&this.server.getScopedKey(e.key)},initialize:function(){this.listenToOnce(this.get("children"),"add",function(e){this.set("art",e.get("art"))})},sync:function(e,t,n){var i=u.a.addVersionHeader(2,n);return c.a.prototype.sync.call(this,e,t,i)},parse:function(e){var t=this.convert(e);return t.Playlist&&(t=t.Playlist),
p.a.parseInteger(t,["duration","leafCount","addedAt"]),p.a.parseBoolean(t,["smart","allowSync"]),t.isPlaylist=!0,t},findItem:function(e){return this.get("children").findWhere({playlistItemID:e})},moveItem:function(e,t){var n=t?{after:t}:{},i=o.join([a.a.result(this,"url"),"/items/",e,"/move"],n),r=a.a.extend(this.server.getXHROptions(i),{type:"PUT"}),l=s.a.ajax(r),u=this.get("children"),c=this.findItem(e);u.remove(c);var d=this.findItem(t),p=d?u.indexOf(d)+1:0;return u.add(c,{at:p}),l},
removeItem:function(e){e=e.toString();var t=o.join([a.a.result(this,"url"),"/items/",e]),n=a.a.extend(this.server.getXHROptions(t),{type:"DELETE"}),i=s.a.ajax(n);i.then(a.a.bind(function(e){this.set(this.parse(e))},this));var r=this.get("children"),l=this.findItem(e);return r.remove(l),i},addContent:function(e,t){var n=this.isNew()?"POST":"PUT",i=[a.a.result(this,"url")],r={};this.isNew()?(r.type=this.get("playlistType"),r.title=this.get("title"),r.smart=this.get("smart")?1:0):i.push("/items"),
e.get("playQueueID")?r.playQueueID=e.get("playQueueID"):r.uri=l.a.uri(e,t);var u=o.join(i,r),c=a.a.extend(e.server.getXHROptions(u),{type:n}),d=s.a.ajax(c);return d.then(a.a.bind(function(e){this.set(this.parse(e))},this)),d.promise()},isLibraryItem:function(){return!0},isPlexMusicItem:function(){return!1}});t.a=h},function(e,t,n){"use strict";var i=n(75),a=n(334),r=n(747),s=i.a.extend({name:"PlaylistsSectionModel",defaults:function(){return{pseudo:!0,currentType:0,sorts:new a.a([],{
section:this,server:this.server}),items:new r.a({},{section:this,server:this.server})}},url:function(){return"/playlists"}});t.a=s},function(e,t,n){"use strict";var i=n(22),a=n(1263),r=i.a.extend({name:"FieldCollection",context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"FieldModel",context:["server"],idAttribute:"key",rootPropertyName:"Field",syncedAttrs:{key:i.a.string,title:i.a.string,type:i.a.string,subType:i.a.string}});t.a=r
},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"FilterOptionModel",context:["server","section","type","standalone"],idAttribute:"key",rootPropertyName:"Directory",syncedAttrs:{key:i.a.encodedString,type:i.a.string,title:i.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(22),s=n(1266),o=r.a.extend({name:"LinearFilterCollection",context:["server","section"],model:s.a,url:function(){return a.a.result(this.section,"url")},filterBySecondary:function(){
var e=this.filter(function(e){return e.get("secondary")});return this.clone(e)}});t.a=o},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(393),s=a.a.extend({name:"LinearFilterModel",context:["server","section"],idAttribute:"key",rootPropertyName:"Directory",syncedAttrs:{secondary:i.a.boolean,key:i.a.string,title:i.a.string},syncedRelations:{options:{relationClass:r.a}},defaults:{secondary:!1}});t.a=s},function(e,t,n){"use strict";var i=n(22),a=n(1268),r=i.a.extend({name:"LocationCollection",
context:["server","section"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"LocationModel",context:["server","section"],rootPropertyName:"Location",syncedAttrs:{id:i.a.integer,path:{type:i.a.string,save:!0}}});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(743),r=i.a.extend({name:"MediaTypeCollection",context:["server","section"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(1271),r=i.a.extend({name:"MetadataDirectoryCollection",
context:["server","section"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"MetadataDirectoryModel",context:["server"],idAttribute:"key",rootPropertyName:"Directory",syncedAttrs:{key:i.a.string,title:i.a.string,prompt:i.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(1273),r=i.a.extend({name:"MetadataTypeCollection",context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(1278),s=a.a.extend({
name:"MetadataFieldTypeModel",context:["server"],idAttribute:"type",rootPropertyName:"FieldType",syncedAttrs:{type:i.a.string.isRequired},syncedRelations:{operators:{relationClass:r.a,rootPropertyName:"Operator"}}});t.a=s},function(e,t,n){"use strict";var i=n(22),a=n(1275),r=i.a.extend({name:"MetadataTypeCollection",context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(741),s=n(334),o=n(1262),l=a.a.extend({name:"MetadataTypeModel",context:["server"],
idAttribute:"key",rootPropertyName:"Type",syncedAttrs:{type:i.a.string,key:i.a.string,title:i.a.string},syncedRelations:{filters:{relationClass:r.a,rootPropertyName:"Filter"},sorts:{relationClass:s.a,rootPropertyName:"Sort"},fields:{relationClass:o.a,rootPropertyName:"Field"}}});t.a=l},function(e,t,n){"use strict";var i=n(22),a=n(1277),r=i.a.extend({name:"MomentCollection",context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"MomentModel",
context:["server"],idAttribute:"id",rootPropertyName:"Directory",syncedAttrs:{id:i.a.string,title:i.a.string,size:i.a.integer,avgAR:i.a.float,startsAt:i.a.integer,endsAt:i.a.integer}});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(1279),r=i.a.extend({name:"OperatorCollection",context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"OperatorModel",context:["server"],idAttribute:"key",rootPropertyName:"Operator",syncedAttrs:{key:i.a.string,
title:i.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(22),s=n(745),o=r.a.extend({name:"SectionSubsetCollection",context:["server","section"],model:s.a,url:function(){return a.a.result(this.section,"url")},filterPrimaries:function(){var e=this.filter(function(e){return e.get("primary")});return this.clone(e)}});t.a=o},function(e,t,n){"use strict";var i=n(22),a=n(1282),r=i.a.extend({name:"ChapterCollection",context:["server","section"],model:a.a,modelId:function(e){
return e.id+"_"+e.index}});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"ChapterModel",context:["server","section"],syncedAttrs:{id:i.a.integer,tag:i.a.string,index:i.a.integer,startTimeOffset:i.a.integer,endTimeOffset:i.a.integer,thumb:i.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(1284),r=i.a.extend({name:"ConcertCollection",context:["server","section"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({
name:"ConcertModel",context:["server","section"],syncedAttrs:{id:i.a.integer,at:i.a.integer,tag:i.a.string,venue:i.a.string,city:i.a.string,country:i.a.string,url:i.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(1286),r=i.a.extend({name:"OverlayCollection",context:["server","section"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"OverlayModel",context:["server","section"],syncedAttrs:{key:i.a.string,marginTop:i.a.integer,
marginRight:i.a.integer,marginBottom:i.a.integer,marginLeft:i.a.integer,width:i.a.integer,height:i.a.integer,alignHorizontal:i.a.string,alignVertical:i.a.string,relative:i.a.string,imageScaling:i.a.string,marginScaling:i.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(748),r=i.a.extend({name:"PlaylistCollection",context:["server","containerKey"],model:a.a,url:function(){return this.containerKey}});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(1289),r=i.a.extend({
name:"PlaylistItemCollection",context:["server","playlist"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(56),a=n(53),r=n(16),s=n(17),o=n(76),l=s.a.extend({name:"PlaylistItemModel",context:["server","playlist"],entityType:i.l,entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return n.i(a.a)(this.entityType,e.playlistItemID||e.key,this.server.entityID())},idAttribute:"playlistItemID",syncedAttrs:{playlistItemID:r.a.string,key:r.a.string,
type:r.a.string},syncedRelations:{metadataItem:{relationClass:o.a,deferred:!0}},augmentResponse:function(e){return{playlistItemID:e.playlistItemID,key:e.key,type:e.type,metadataItem:e}}});t.a=l},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(19),s=n(30),o=n(269),l=n(88),u={unviewedLeafCount:">="},c=l.default.extend({name:"SectionMetadataListModel",context:["server","section","identifier","mediaTagPrefix","mediaTagVersion","allowSync"],url:function e(){
var t=[],n=void 0,i=void 0,s=this.section.get("currentFolderKey");if(s)t.push(s);else if(t.push(a.a.result(this.section,"url")),n=this.section.get("currentSubset").id,this.section.get("allowAdvancedFilters"))"recentlyAdded"!==n&&"newest"!==n||(n="all"),t.push(n),i=this.getParams();else{var o=this.section.get("currentFilters");o.length?t=[o[0].values[0]]:t.push(n)}var e=r.join(t,i);return e=this.replaceSpecialFilterOperators(e),this.set("containerKey",e),
this.server.get("isFullServer")?this.getPaginatedUrl(e):e},getParams:function(){var e=this.getFilterParams(),t=this.getMetadataTypeID(),i=this.getSort();return t&&t!==n.i(s.b)("photo").id&&(e.type=t),i&&(e.sort=i),this.section.get("refreshing")&&this.server.supports("timelineState")&&(e.timelineState=1),e},getFilterParams:function(){var e=this.section.get("currentFilters"),t={};return a.a.each(e,function(e){e.values.length&&(t[e.key]=e.values.map(decodeURIComponent).join(","))}),t},
getMetadataTypeID:function(){var e=this.section.get("currentSubset").id,t=this.section.get("currentType").id||n.i(s.b)(this.section.get("type")).id;return/^(onDeck|recentlyAdded|recentlyViewed|newest)$/.test(e)?t===n.i(s.b)("show").id||t===n.i(s.b)("season").id?t=n.i(s.b)("episode").id:t!==n.i(s.b)("artist").id&&t!==n.i(s.b)("track").id||(t=n.i(s.b)("album").id):/^recentlyViewedShows$/.test(e)&&(t=n.i(s.b)("show").id),t},getSort:function(){
var e=this.section.get("currentSort"),t=this.section.get("currentSubset").id;if("recentlyAdded"===t)return"addedAt:desc";if("newest"===t)return"originallyAvailableAt:desc";if(e){return(e.get("direction")||e.get("defaultDirection"))===o.a.directions.DESCENDING?e.get("descKey"):e.get("key")}},replaceSpecialFilterOperators:function(e){return a.a.each(u,function(t,n){e=e.replace(n+"=",n+t)}),e}});t.a=c},function(e,t,n){"use strict";var i=n(22),a=n(749),r=i.a.extend({name:"TagCollection",
context:["server","section"],model:a.a});t.a=r},function(e,t,n){"use strict";function i(e){var t=0;if(!e)return t;for(var n=0,i=e.length;n<i;n++){var a=e[n],r=a.Part;if(r)for(var s=0,o=r.length;s<o;s++){var l=r[s],u=l.Stream;u&&(t+=u.length)}}return t}function a(e){var t=0;if(!e)return t;for(var n=0,i=e.length;n<i;n++){var a=e[n],r=a.Part;if(r)for(var s=0,o=r.length;s<o;s++){var l=r[s];null!=l.exists&&null!=l.accessible&&t++}}return t}function r(e,t,r){if(u.hasOwnProperty(e))return r
;if(c.hasOwnProperty(e)&&r&&r.length){if(!t||r.length>t.length)return r;if(r.length===t.length){var s=t&&t[0],d=r&&r[0];if(!s&&d)return r;if(!d&&s)return t;var p=o()(s).length;if(o()(d).length>p)return r}}if("Media"===e){if(r&&!t)return r;var h=i(r),f=i(t);if(h>f)return r;if(h===f){if(a(r)>=a(t))return r}}return n.i(l.a)(e,t,r)}var s=n(65),o=n.n(s),l=n(513);t.a=r;var u={leafCount:!0,viewedLeafCount:!0,viewCount:!0,viewOffset:!0,subscriptionID:!0,grandparentSubscriptionID:!0,subscriptionType:!0,
grandparentSubscriptionType:!0},c={Director:!0,Producer:!0,Writer:!0,Genre:!0,Mood:!0,Country:!0,Label:!0,Role:!0,Location:!0}},function(e,t,n){"use strict";var i=n(22),a=n(1294),r=i.a.extend({name:"LyricsLineCollection",context:["server","section"],model:a.a,eachSpan:function(e){this.each(function(t){t.get("spans").each(e)})}});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(1295),s=a.a.extend({name:"LyricsLineModel",context:["server","section"],syncedAttrs:{startOffset:i.a.integer,
endOffset:i.a.integer},syncedRelations:{spans:{relationClass:r.a,rootPropertyName:"Span"}},defaults:{startOffset:-1,endOffset:-1}});t.a=s},function(e,t,n){"use strict";var i=n(22),a=n(1296),r=i.a.extend({name:"LyricsSpanCollection",context:["server","section"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"LyricsSpanModel",context:["server","section"],sessionAttrs:{active:i.a.boolean},syncedAttrs:{startOffset:i.a.integer,endOffset:i.a.integer,
text:i.a.string},defaults:{startOffset:-1,endOffset:-1},isPositionWithin:function(e){var t=this.get("startOffset"),n=this.get("endOffset");if(t===-1)return!1;var i=e>=t,a=e<=n||n===-1;return i&&a}});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(1242),r=n(1298),s=i.a.extend({mixins:[a.a],name:"LyricsStreamCollection",context:["server","section"],model:r.a,initialize:function(){this.exclusiveBoolAttr("selected")}});t.a=s},function(e,t,n){"use strict"
;var i=n(19),a=n(16),r=n(513),s=n(17),o=n(1293),l=s.a.extend({name:"LyricsStreamModel",context:["server","section"],rootPropertyName:"Lyrics",mergeStrategy:r.a,url:function(){return i.join(this.get("key"),{format:"xml"})},sessionAttrs:{follow:a.a.boolean,lyricsError:a.a.object},syncedAttrs:{id:a.a.integer,key:a.a.string,streamType:a.a.integer,index:a.a.integer,title:a.a.string,selected:a.a.boolean,codec:a.a.string,provider:a.a.string,format:a.a.string,minLines:a.a.integer,timed:a.a.boolean},
syncedRelations:{lines:{relationClass:o.a,rootPropertyName:"Line"}},defaults:{follow:!0,selected:!1,lyricsError:null}});t.a=l},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(1498),s=n(541),o=n(16),l=n(17),u=l.a.extend({sessionAttrs:{protocol:o.a.string.isRequired},syncedAttrs:{friendlyName:o.a.string.isRequired,capabilities:o.a.array,volume:o.a.integer.isRequired},defaults:{protocol:s.a,volume:100},augmentResponse:function(e){return a()({},e,{friendlyName:n.i(r.a)(e.friendlyName)})}})
;t.a=u},function(e,t,n){"use strict";var i=n(13),a=n(22),r=n(1301),s=a.a.extend({name:"PlexPlayerCollection",context:["server"],model:r.a,url:"/clients",augmentResponse:function(e){var t=n.i(i.a)("appModel"),a=t.get("clientID"),r=parseInt(e.size,10);return 1===r&&e.Server.machineIdentifier===a?(delete e.Server,e.size="0"):r>1&&(e.Server=e.Server.filter(function(e){return e.machineIdentifier!==a}),e.size=e.Server.length.toString()),e}});t.a=s},function(e,t,n){"use strict"
;var i=n(16),a=n(17),r=a.a.extend({name:"PlexPlayerModel",context:["server"],idAttribute:"machineIdentifier",rootPropertyName:"Server",sessionAttrs:{volume:i.a.integer},syncedAttrs:{machineIdentifier:i.a.string,name:i.a.string,address:i.a.string,port:i.a.string,deviceClass:i.a.string,version:i.a.string,product:i.a.string,protocol:i.a.string,protocolVersion:i.a.string,protocolCapabilities:i.a.list},derivedAttrs:{friendlyName:function(){return this.get("name")}},defaults:{volume:100}});t.a=r
},function(e,t,n){"use strict";var i=n(4),a=n(72),r=n(752),s=n(133),o=a.b.extend({name:"LegacyLibraryProviderModel",defaults:function(){var e=this.server,t=e.get("isFullServer"),o=e.get("isFullOwnedServer"),l=[{type:s.a.CONTENT,key:"/library/sections"},{type:s.a.MATCH,key:"/library/matches"},{type:s.a.METADATA,key:"/library/metadata"}];return t&&l.push({type:s.a.SEARCH,key:"/hubs/search"},{type:s.a.PLAY_QUEUE,key:"/playQueues"},{type:s.a.RATE,key:"/:/rate"},{type:s.a.TIMELINE,key:"/:/timeline",
scrobbleKey:"/:/scrobble",unscrobbleKey:"/:/unscrobble"}),o&&l.push({type:s.a.MANAGE}),{identifier:a.a.LIBRARY_PROVIDER_IDENTIFIER,title:n.i(i.default)("Library"),types:["video","audio","photo"],protocols:o?["stream","download"]:["stream"],features:new r.a(l,{parse:!0,server:e})}}});t.a=o},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(22),s=n(72),o=n(1302),l=n(514),u=r.a.extend({name:"ProviderCollection",context:["server"],model:s.b,url:"/media/providers",fetch:function(){
var e=this.server;return e.get("mediaProviders")?r.a.prototype.fetch.apply(this,arguments):(e.get("isCloud")||this.get(s.a.LIBRARY_PROVIDER_IDENTIFIER)||this.add(new o.a({},{server:e})),this.get(s.a.CHANNEL_PROVIDER_IDENTIFIER)||this.add(new l.a({},{server:e})),a.a.Deferred().resolve(this,""))}});t.a=u},function(e,t,n){"use strict";var i=n(22),a=n(1305),r=i.a.extend({name:"ProviderDirectoryCollection",context:["server","provider"],model:a.a});t.a=r},function(e,t,n){"use strict"
;var i=n(16),a=n(17),r=a.a.extend({name:"ProviderDirectoryModel",context:["server","provider"],syncedAttrs:{key:i.a.string,hubKey:i.a.string,title:i.a.string,type:i.a.string,agent:i.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(52),r=n(134),s=i.a.extend({name:"ActivityCollection",context:["server"],model:r.b,url:"/activities",responseType:function(){return this.server.supports("json")?a.a.json:a.a.xml}});t.a=s},function(e,t,n){"use strict"
;var i=n(19),a=n(29),r=n(13),s=n(28),o=n(16),l=n(507),u=n(79),c=n(394),d=n(223),p=n(738),h=n(1310),f=n(1488),v=u.c.connectionTestResults,m=u.c.promiseStates,g=u.c.extend({name:"CloudServerModel",connectionTestUrl:"https://info.plex.tv/pms/:/ip",sessionAttrs:{connectionTestResult:o.a.oneOf(v.PENDING,v.CONNECTED,v.UNAVAILABLE,v.UNAUTHORIZED).isRequired,promiseState:o.a.oneOf(m.PENDING,m.RESOLVED,m.REJECTED).isRequired,playQueueManager:o.a.instanceOf(p.a).isRequired,isShared:o.a.boolean.isRequired,
isBundled:o.a.boolean.isRequired,isCloud:o.a.boolean.isRequired,isMerged:o.a.boolean.isRequired,isDownForMaintenance:o.a.boolean.isRequired,isResourcesPending:o.a.boolean.isRequired,hasFailedResources:o.a.boolean.isRequired,accessToken:o.a.string,baseUrl:o.a.string.isRequired,plexPassUrl:o.a.string.isRequired,accountUrl:o.a.string.isRequired,cloudSyncUrl:o.a.string.isRequired,appsUrl:o.a.string.isRequired,helpUrl:o.a.string.isRequired,hasEventConnection:o.a.boolean},sessionRelations:{
activeConnection:{relationClass:d.a,deferred:!0},connections:{relationClass:c.a,options:function(){return{server:this}}},resources:{relationClass:h.a,options:function(){return{server:this}}}},defaults:function(){var e="https://plex.tv";return{connectionTestResult:v.PENDING,promiseState:m.PENDING,playQueueManager:new p.a({server:this}),isShared:!1,isBundled:!1,isCloud:!0,isMerged:!1,isDownForMaintenance:!1,isResourcesPending:!1,hasFailedResources:!1,friendlyName:"plex.tv",baseUrl:e,
plexPassUrl:i.join([e,"/subscription/about"]),accountUrl:i.join([e,"/users/edit"]),cloudSyncUrl:i.join([e,"/cloudsync/providers"]),appsUrl:i.join([e,"/downloads"]),helpUrl:"http://support.plex.tv/hc/en-us",hasEventConnection:!1}},swizzleNodeUrl:function(e){var t=this.parent.get("primaryServer");return t&&t.get("isConnected")&&t.get("isFullServer")&&t.get("allowChannelAccess")?t.swizzleUrl(e):this.swizzleUrl(e,{connection:new d.a({scheme:"https",address:"node.plexapp.com",port:"32443"})})},
testAllConnections:function(){var e=this,t=this.get("connections");n.i(a.a)("[Connections] Testing all %s connection(s) for %s",t.length,this.get("debugName"));var i=t.map(function(t){return e.testConnection(t)});return n.i(f.a)(i)},testConnection:function(e){var t={server:this,connection:e,url:this.connectionTestUrl};return s.a.execute("testServerConnection",t).done(this.onConnectionTestSuccess.bind(this)).fail(this.onConnectionTestError.bind(this))},abortConnectionTest:function(e){var t={
server:this,connection:e,url:this.connectionTestUrl};s.a.execute("abortServerConnectionTest",t)},deauthenticate:function(){this.get("resources").clear(),this._reject({connectionTestResult:this.get("connectionTestResult"),accessToken:null})},onConnectionTestSuccess:function(e){var t=this.get("connections").getBestConnection();a.a.info("[Connections] Active connection to %s is %s",this.get("debugName"),t.id),this.startCapturingChangeEvents(),this.set({isDownForMaintenance:!1,
connectionTestResult:v.CONNECTED,activeConnection:t}),this.releaseCapturedChangeEvents()},onConnectionTestError:function(e,t){e.get("isAborted")||this.get("connections").hasOnlyFailedConnections()&&this._reject({isDownForMaintenance:503===t.status})}});n.i(l.a)(g,function(){return{relationClass:n.i(r.a)("CloudServerFlexModel"),options:{server:this}}}),t.a=g},function(e,t,n){"use strict";var i=n(22),a=n(1309),r=i.a.extend({name:"ConnectionSourceCollection",context:["server"],model:a.a});t.a=r
},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"ConnectionSourceModel",context:["server"],sessionAttrs:{id:i.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(19),a=n(61),r=n(22),s=n(1311),o=r.a.extend({model:s.a,context:["server"],url:function(){var e={};return a.a.get("allowHttpsMediaServerConnections")&&(e.includeHttps=1),a.a.get("allowMediaServerRelayConnections")&&(e.includeRelay=1),i.join("/api/resources",e)}});t.a=o},function(e,t,n){"use strict"
;var i=n(16),a=n(17),r=n(394),s=a.a.extend({name:"ResourceModel",context:["server"],idAttribute:"clientIdentifier",rootPropertyName:"Device",urlRoot:"/api/resources",syncedAttrs:{clientIdentifier:i.a.string,name:i.a.string,sourceTitle:i.a.string,accessToken:i.a.string,product:i.a.string,productVersion:i.a.string,platform:i.a.string,platformVersion:i.a.string,device:i.a.string,provides:i.a.list,owned:i.a.boolean,home:i.a.boolean,synced:i.a.boolean,presence:i.a.boolean,
publicAddressMatches:i.a.boolean,httpsRequired:i.a.boolean,createdAt:i.a.integer,lastSeenAt:i.a.integer,ownerId:i.a.integer},syncedRelations:{connections:{relationClass:r.a,rootPropertyName:"Connection"}}});t.a=s},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(49),s=n(75),o=s.a.extend({idAttribute:"key",whitelistedAttrs:["key","name","defaultAudioLanguage","autoSelectAudio","defaultSubtitleLanguage","subtitleMode"],url:function(){return this.get("key")},convert:function(e){
var t=a.a.isObject(e)?e:r.a.parseXML(e);return t.Account&&(t=t.Account),r.a.parseBoolean(t,"autoSelectAudio"),t},parse:function(e){var t=this.convert(e);return t=a.a.pick(t,this.whitelistedAttrs)}});t.a=o},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(1249),s=n(1314),o=r.a.extend({model:s.a,url:"/servers",pageSize:20,limit:1e3,initialize:function(){this.startTime=new Date,this.listenTo(this.server,"socket:setting",this.onSettingChange),
this.listenTo(this.server,"socket:timeline",this.onTimeline),this.listenTo(this.server,"socket:status",this.onStatus),this.listenTo(this.server,"socket:playing",this.onPlaying),this.listenTo(this.server,"socket:websocket",this.onWebSocket)},add:function(e){this.length+1>this.limit&&this.remove(this.at(0)),r.a.prototype.add.apply(this,arguments)},onSettingChange:function(e){e.label&&this.add(a.a.extend({_type:"setting"},e),{parse:!0})},onTimeline:function(e){
1===e.state||e.sectionID<0||this.add(a.a.extend({_type:"timeline"},e),{parse:!0})},onStatus:function(e){"ProgressNotification"!==e._elementType&&this.add(a.a.extend({_type:"status"},e),{parse:!0})},onPlaying:function(e){this.add(a.a.extend({_type:"playing"},e),{parse:!0})},onWebSocket:function(e){this.add(a.a.extend({_type:"websocket"},e),{parse:!0})}});t.a=o},function(e,t,n){"use strict";var i=n(75),a=0,r=i.a.extend({idAttribute:"id",parse:function(e){var t=e;return t.time=new Date,
t.id="evt"+a++,"preference"===t._type&&(t.value=String(t.value)),t}});t.a=r},function(e,t,n){"use strict";function i(e){return e.length?r.a.map(e,function(e){return e.get("debugName")}).join(", "):"(none)"}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(29),u=n(512),c=n(22),d=n(79),p=c.a.extend({mixins:[u.a],name:"ServerCollection",model:d.c,initialize:function(){this._resetPopulate()},comparator:function(e){var t=e.get("isFullOwnedServer"),n=e.get("isShared"),i=e.get("friendlyName")||"",a=t?"0":"1"
;return a+=n?"1":"0",a+=i.toLowerCase()},shouldWaitForInitialServers:function(){var e=this.filter(function(e){return(!e.id||!!e.get("resources"))&&e.isPopulating()});return!!e.length&&(n.i(l.a)("[Servers] Waiting for initial servers =",i(e)),!0)},shouldWaitForResources:function(){var e=this.reduce(function(e,t){var n=t.get("isResolved"),i=t.get("resources"),a=i&&i.isPopulating();return n&&a&&e.push(t),e},[]);return!!e.length&&(n.i(l.a)("[Servers] Waiting for additional resources from",i(e)),!0)
},shouldWaitForPendingServers:function(){if(this.findWhere({isConnected:!0}))return!1;var e=this.filter(function(e){return e.isPopulating()});return!!e.length&&(n.i(l.a)("[Servers] Waiting for pending servers =",i(e)),!0)},waitForServers:function(){this._resetPopulate()},foundAllServers:function(){var e=this.where({isConnected:!0}),t=i(e);n.i(l.a)("[Servers] Found all servers =",t),e.length?this._resolvePopulate():this._rejectPopulate()},populateAnyServer:function(){function e(e){
var t=d.indexOf(e);t>-1&&(d.splice(t,1),this.hasOnlyRejectedServers(d)&&c.reject())}function t(e,t){r.a.contains(d,e)&&t&&c.resolve(e)}function a(e,t){r.a.contains(d,e)&&t&&this.hasOnlyRejectedServers(d)&&c.reject()}var s=this,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.models,c=o.a.Deferred(),d=u.slice(0),p=r.a.find(d,function(e){return e.get("isCloud")?e.get("isResolved"):e.get("isConnected")})
;return p?(n.i(l.a)("[Servers] Populate any server chose %s where servers = %s",p.get("debugName"),i(d)),c.resolve(p).promise()):this.hasOnlyRejectedServers(d)?c.reject().promise():(this.on({remove:e,"change:isResolved":t,"change:isRejected":a},this),c.always(function(){s.off("change:isResolved",t,s),s.off("change:isRejected",a,s)}),c.promise())},populateServer:function(e){return this.findServer(e,!0).then(function(e){
return e.get("isConnected")&&!e.get("isCloud")?o.a.Deferred().resolve(e):e.populate()})},findServer:function(e,t){function n(){var e=this,i=this.filterServers(s,t);i?(h=i,i.done(function(e){h===i&&l.resolve(e)}),i.fail(function(){h===i&&(c||!e.isPopulating()?l.reject():e.populate().always(n.bind(e)))})):this.isPopulating()||l.reject()}var i=this,a=r.a.isString(e),s=a?{machineIdentifier:e}:e,l=o.a.Deferred();if(a){var u=this.get(s.machineIdentifier)
;if(u&&u.get("isResolved"))return setTimeout(l.resolve.bind(l,u),0),l.promise()}var c=r.a.has(s,"machineIdentifier"),d=r.a.map(r.a.keys(s),function(e){return"change:"+e}),p="add "+d.join(" "),h=void 0;return n.call(this),this.on(p,n,this),this.populate().always(function(){h||l.reject()}),l.always(function(){i.off(p,n,i)}),l.promise()},filterServers:function(e,t){var n=this.where(e);if(n.length)return t?this.populateAnyServer(n):o.a.Deferred().resolve(n[0]).promise()},
hasOnlyRejectedServers:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.models;return r.a.every(e,function(e){return e.get("isRejected")})},hasLoopbackServer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.models;return!!r.a.find(e,function(e){var t=e.get("activeConnection");return!!t&&t.get("isLoopback")})}});t.a=p},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(49),s=n(75),o=s.a.extend({idAttribute:"id",url:"/:/prefs",defaults:{
type:"string",summary:"",label:"",group:""},whitelistedAttrs:["id","label","default","summary","value","type","group","advanced","option","hidden","enumValues","values"],convert:function(e){var t=a.a.isObject(e)?e:r.a.parseXML(e);return"bool"===t.type?r.a.parseBoolean(t,"value"):"int"!==t.type&&"enum"!==t.type||r.a.parseInteger(t,"value"),r.a.parseBoolean(t,["advanced","hidden"]),t},parse:function(e){var t=this.convert(e);if(t=a.a.pick(t,this.whitelistedAttrs),
t.enumValues&&!a.a.isArray(t.enumValues)&&(t.enumValues=a.a.map(t.enumValues.split("|"),function(e){var n=e.indexOf(":"),i=n>0?e.slice(n+1):e,a=n>0?e.slice(0,n):e;return"int"===t.type&&(a=parseInt(a,10)),{label:i,value:a}})),"enum"===t.type&&t.values&&!a.a.isArray(t.values)){var n=0;t.enumValues=a.a.map(t.values.split("|"),function(e){return{label:e,value:n++}})}return t},getSaveParams:function(e,t){if(a.a.has(e,"FriendlyName")&&this.server.set("friendlyName",e.FriendlyName),
a.a.has(e,"allowMediaDeletion")&&this.server.set("allowMediaDeletion","1"===String(e.allowMediaDeletion)),a.a.isEmpty(e)){var n={};return n[this.get("id")]=this.get("value"),n}return"value"in e&&(e[this.get("id")]=e.value,delete e.value),e}});t.a=o},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(10),s=n.n(r),o=n(49),l=n(75),u=l.a.extend({url:"/updater/status",whitelistedAttrs:["status","canInstall","downloadURL","state","progress","version","error","added","fixed"],defaults:{state:"none",
progress:0,version:"",error:"",added:"",fixed:"",shouldInstall:!1},fetch:function(){return this.server.supports("updater")?l.a.prototype.fetch.apply(this,arguments):s.a.Deferred().reject().promise()},convert:function(e){var t=a.a.isObject(e)?e:o.a.parseXML(e);return o.a.parseBoolean(t,"canInstall"),o.a.parseInteger(t,"status"),t.Release&&o.a.parseInteger(t.Release,"progress"),t},parse:function(e,t){var n=this.convert(e);return n=a.a.extend(n,n.Release),n=a.a.pick(n,this.whitelistedAttrs),
0!==n.status&&(n.state="error"),n}});t.a=u},function(e,t,n){"use strict";var i=n(270),a=n(1319),r=i.a.extend({name:"SessionCollection",model:a.a,url:"/status/sessions"});t.a=r},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(56),s=n(53),o=n(202),l=n(16),u=n(76),c=u.a.extend({name:"SessionModel",entityType:r.h,entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return n.i(s.a)(this.entityType,e.sessionKey,this.server.entityID())},
idAttribute:"sessionKey",cache:new o.a,cacheKey:function(e){return this.server&&this.server.getScopedKey(e.sessionKey)},syncedAttrs:a()({},u.a.prototype.syncedAttrs,{sessionKey:l.a.string,Player:l.a.object,Session:l.a.object,User:l.a.object,TranscodeSession:l.a.object,delegated:l.a.boolean}),defaults:a()({},u.a.prototype.defaults,{delegated:!1})});t.a=c},function(e,t,n){"use strict";var i=n(108),a=n(1321),r=i.a.extend({model:a.a,url:"/sync/transcodeQueue",parse:function(e){
return this.convert(e,"TranscodeJob")}});t.a=r},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(49),s=n(75),o=s.a.extend({idAttribute:"syncItemId",whitelistedAttrs:["syncItemId","syncItemTitle","key","type","progress","speed","remaining","size","title","thumb"],convert:function(e){var t=a.a.isObject(e)?e:r.a.parseXML(e);return r.a.parseInteger(t,"syncItemId"),r.a.parseFloat(t,["progress","speed"]),t},parse:function(e){var t=this.convert(e);return t=a.a.pick(t,this.whitelistedAttrs)}});t.a=o
},function(e,t,n){"use strict";var i=n(506),a=i.a.extend({storageKey:"manualServers",defaults:{port1:"32400",port2:"32400"}});t.a=new a},function(e,t,n){"use strict";var i=n(22),a=n(1324),r=i.a.extend({name:"StoredConnectionCollection",model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(1325),s=a.a.extend({name:"StoredConnectionModel",idAttribute:"uri",syncedAttrs:{uri:i.a.string,scheme:i.a.string,address:i.a.string,port:i.a.string,relay:i.a.boolean},syncedRelations:{
sources:{relationClass:r.a}}});t.a=s},function(e,t,n){"use strict";var i=n(22),a=n(1326),r=i.a.extend({name:"StoredConnectionSourceCollection",model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"StoredConnectionSourceModel",syncedAttrs:{id:i.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(755),r=i.a.extend({name:"StoredServerCollection",model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(505),a=n(16),r=i.a.extend({name:"SessionStatsModel",
storageKey:"sessionstats",syncedAttrs:{heartbeatTime:a.a.integer,playbackCount:a.a.integer,playbackTime:a.a.integer,sessionId:a.a.string,anonymousSessionId:a.a.string,startTime:a.a.integer},defaults:{playbackCount:0,playbackTime:0}});t.a=new r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"MediaSubscriptionTargetModel",context:["server"],syncedAttrs:{guid:i.a.string,grandparentGuid:i.a.string,title:i.a.string,type:i.a.string,grandparentTitle:i.a.string,index:i.a.integer,
parentIndex:i.a.integer,year:i.a.string,grandparentYear:i.a.integer,originallyAvailableAt:i.a.string,thumb:i.a.string,parentThumb:i.a.string,grandparentThumb:i.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(137),a=n(16),r=n(17),s=n(176),o=n(750),l=r.a.extend({name:"PlayerModel",sessionAttrs:{serverEntityID:a.a.string,providerEntityID:a.a.string,isOpen:a.a.boolean,previousOpenState:a.a.oneOf(i.a,i.b),openState:a.a.oneOf(i.a,i.b),isPlayQueueVisible:a.a.boolean,isLyricsVisible:a.a.boolean,
isPostPlayVisible:a.a.boolean,isSettingsVisible:a.a.boolean,confirmPlaybackPayload:a.a.object,confirmOffsetPayload:a.a.object,confirmRemoteToLocal:a.a.boolean,confirmLocalToRemote:a.a.boolean,decisions:a.a.object.isRequired,currentDecision:a.a.object,startMetadataItemEntityID:a.a.string,startOffsetMilliseconds:a.a.integer,startMediaIndex:a.a.integer,positionSeconds:a.a.integer,lastSeekPositionSeconds:a.a.integer,durationSeconds:a.a.integer,seekStartSeconds:a.a.integer,seekEndSeconds:a.a.integer,
bandwidthTimeline:a.a.object,isPlayQueueLoading:a.a.boolean.isRequired,isMediaLoading:a.a.boolean.isRequired,isPostPlayLoading:a.a.boolean.isRequired,isPaused:a.a.boolean.isRequired,isBuffering:a.a.boolean.isRequired,repeatAll:a.a.boolean.isRequired,repeatOne:a.a.boolean.isRequired,mediaIndex:a.a.integer,partIndex:a.a.integer,qualityIndex:a.a.integer,availableQualities:a.a.array.isRequired,controllable:a.a.object,hasError:a.a.boolean.isRequired,errorMessage:a.a.string,errorCode:a.a.string,
errorCategory:a.a.string,hasConflicts:a.a.boolean.isRequired,isConflictCancelling:a.a.boolean,cancelConflictError:a.a.object},sessionRelations:{playQueue:{relationClass:r.a,deferred:!0},relatedHubs:{relationClass:s.default,deferred:!0},liveTVSession:{relationClass:o.a,deferred:!0}},defaults:function(){return{isOpen:!1,openState:i.a,isPlayQueueVisible:!1,isLyricsVisible:!1,isPostPlayVisible:!1,isSettingsVisible:!1,confirmPlaybackPayload:null,confirmOffsetPayload:null,confirmRemoteToLocal:!1,
confirmLocalToRemote:!1,decisions:{},startMetadataItemEntityID:null,startOffsetMilliseconds:null,startMediaIndex:null,positionSeconds:0,lastSeekPositionSeconds:0,durationSeconds:0,seekStartSeconds:0,seekEndSeconds:0,isPlayQueueLoading:!1,isMediaLoading:!1,isPostPlayLoading:!1,isPaused:!1,isBuffering:!1,repeatAll:!1,repeatOne:!1,availableQualities:[],hasError:!1,errorMessage:null,errorCode:null,errorCategory:null,hasConflicts:!1,isConflictCancelling:!1,cancelConflictError:null}}});t.a=l
},function(e,t,n){"use strict";var i=n(22),a=n(1332),r=i.a.extend({name:"AnnouncementCollection",model:a.a,context:["server"],url:"api/announcements"});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"AnnouncementModel",context:["server"],rootPropertyName:"Announcement",syncedAttrs:{id:i.a.integer,title:i.a.string,content:i.a.string,imageUrl:i.a.string,style:i.a.string,url:i.a.string,expireAt:i.a.string,notifyAt:i.a.string,read:{type:i.a.boolean,save:!0}},
markAsRead:function(){this.get("read")||this.save("read",!0)}});t.a=r},function(e,t,n){"use strict";var i=n(389),a=n.n(i),r=n(108),s=n(759),o=r.a.extend({model:s.a,url:"/api/users",parse:function(e){return this.convert(e,"User")},filterByHome:function(){var e=new a.a(this);return e.filterBy(function(e){return e.get("home")}),e},filterByUnrestricted:function(){var e=new a.a(this);return e.filterBy(function(e){return!e.get("restricted")}),e},filterByServerShares:function(e){var t=new a.a(this)
;return t.filterBy(function(t){return!!t.get("serverShares").findWhere({machineIdentifier:e})}),t}});t.a=o},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(49),s=n(75),o=s.a.extend({url:"/api/home",whitelistedAttrs:["id","guestUserID","guestEnabled","name"],convert:function(e){var t=a.a.isObject(e)?e:r.a.parseXML(e);return r.a.parseInteger(t,"id"),r.a.parseBoolean(t,["guestEnabled"]),t},parse:function(e){var t=this.convert(e);return t=a.a.pick(t,this.whitelistedAttrs)},
getSaveParams:function(e,t){return a.a.isEmpty(e)?{guestEnabled:this.get("guestEnabled")?"1":"0"}:s.a.prototype.getSaveParams.apply(this,arguments)}});t.a=o},function(e,t,n){"use strict";var i=n(389),a=n.n(i),r=n(108),s=n(1336),o=r.a.extend({model:s.a,url:function(){return"/api/invites/"+this.subset},initialize:function(e,t){t||(t={}),this.subset=t.subset||"requests"},parse:function(e){return this.convert(e,"Invite")},filterByHome:function(){var e=new a.a(this);return e.filterBy(function(e){
return e.get("home")}),e},filterByFriends:function(){var e=new a.a(this);return e.filterBy(function(e){return!e.get("home")}),e}});t.a=o},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(49),s=n(19),o=n(75),l=o.a.extend({whitelistedAttrs:["id","friend","server","home","friendlyName","username","email","thumb","createdAt","Server"],urlRoot:"/api/invites/requests",url:function e(){var e=void 0;if(this.isNew())e=a.a.result(this,"urlRoot");else{var t=this.pick("friend","server","home")
;a.a.each(a.a.keys(t),function(e){t[e]=t[e]?"1":"0"}),e=this.collection?a.a.result(this.collection,"url"):a.a.result(this,"urlRoot"),e=e.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.get("id")),e=s.join(e,t)}return e},convert:function(e){var t=a.a.isObject(e)?e:r.a.parseXML(e);r.a.parseInteger(t,"createdAt"),r.a.parseBoolean(t,["friend","server","home"]),r.a.parseArray(t,"Server");var n=t.Server;return a.a.each(n,function(e){r.a.parseInteger(e,"numLibraries")}),t},parse:function(e){
var t=this.convert(e);return t=a.a.pick(t,this.whitelistedAttrs)}});t.a=l},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(108),s=n(1338),o=r.a.extend({model:s.a,filterByOwned:function(e){var t=this.filter(function(e){return e.get("owned")});return this.clone(t)},filterByShared:function(e){var t=this.filter(function(e){return!e.get("owned")&&!e.get("pending")});return this.clone(t)},getLibraryCount:function(e){var t=this.where(e);return a.a.reduce(t,function(e,t){
return e+=t.get("numLibraries")},0)},getOwnedLibraryCount:function(){return this.getLibraryCount({owned:!0})},getSharedLibraryCount:function(){return this.getLibraryCount({owned:!1})},getActiveCount:function(){return this.reduce(function(e,t){return t.isActive()&&e++,e},0)}});t.a=o},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(49),s=n(75),o=s.a.extend({
whitelistedAttrs:["id","serverId","machineIdentifier","name","owned","admin","pending","lastSeenAt","invitedAt","acceptedAt","allLibraries","numLibraries","allowSync","allowCameraUpload","allowChannels","Section"],urlRoot:function(){return"/api/servers/"+this.get("machineIdentifier")+"/shared_servers"},isActive:function(){return!(!this.get("numLibraries")&&!this.get("allLibraries"))},convert:function(e){var t=a.a.isObject(e)?e:r.a.parseXML(e);t.SharedServer&&(t=t.SharedServer),
r.a.parseInteger(t,["id","serverId","lastSeenAt","invitedAt","acceptedAt","numLibraries"]),r.a.parseBoolean(t,["owned","admin","pending","allLibraries","allowSync","allowCameraUpload","allowChannels"]),r.a.parseArray(t,"Section");var n=t.Section;return a.a.each(n,function(e){r.a.parseInteger(e,"id"),r.a.parseBoolean(e,"shared")}),t},parse:function(e){var t=this.convert(e);return t=a.a.pick(t,this.whitelistedAttrs),!t.numLibraries&&t.Section.length&&(t.numLibraries=a.a.where(t.Section,{shared:!0
}).length),t}});t.a=o},function(e,t,n){"use strict";var i=n(108),a=n(1340),r=i.a.extend({model:a.a,url:"/pms/social/networks",parse:function(e){return this.convert(e,"Directory")}});t.a=r},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(49),s=n(75),o=s.a.extend({idAttribute:"key",whitelistedAttrs:["key","title","linked","maxLength"],convert:function(e){var t=a.a.isObject(e)?e:r.a.parseXML(e);return r.a.parseBoolean(t,["linked","maxLength"]),t},parse:function(e){var t=this.convert(e)
;return t=a.a.pick(t,this.whitelistedAttrs)}});t.a=o},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"UserEntitlementModel",syncedAttrs:{id:i.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"UserFeatureModel",idAttribute:"uuid",syncedAttrs:{uuid:i.a.string.isRequired}});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(763),r=i.a.extend({name:"UserPlaylistItemCollection",
context:["server","identifier","mediaTagPrefix","mediaTagVersion","containerKey","userPlaylistKey"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"UserProfileModel",context:["server"],url:"/api/v2/user/profile",syncedAttrs:{autoSelectAudio:i.a.boolean,autoSelectSubtitle:i.a.integer,defaultAudioLanguage:i.a.string,defaultSubtitleLanguage:i.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"UserProviderModel",
syncedAttrs:{id:i.a.string,territory:i.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"UserRoleModel",syncedAttrs:{id:i.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(1348),r=i.a.extend({name:"StoredUserCollection",model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(16),s=n(17),o=n(1327),l=n(762),u=n(766),c=n(765),d=n(761),p=n(764),h=s.a.extend({name:"StoredUserModel",additionalRelations:["servers"],syncedAttrs:{
id:r.a.integer,authToken:r.a.string,username:r.a.string,email:r.a.string,title:r.a.string,thumb:r.a.string,pin:r.a.string,home:r.a.boolean,restricted:r.a.boolean,guest:r.a.boolean,hasAllEntitlements:r.a.boolean,lastPrimaryServerID:r.a.string},syncedRelations:{subscription:{relationClass:u.a},roles:{relationClass:c.a},entitlements:{relationClass:d.a},providers:{relationClass:p.a},servers:{relationClass:o.a},features:{relationClass:l.a}},copyFromUser:function(e){var t=this,n={}
;a.a.each(this.syncedAttrs,function(t,i){n[i]=e.get(i)}),a.a.each(this.syncedRelations,function(n,i){if(!a.a.contains(t.additionalRelations,i)){var r=t.get(i),s=e.get(i);if(s){var o=s.toJSON();r.set(r.parse(o))}}}),this.set(n)},clearSensitiveAttributes:function(){this.unset("authToken"),this.unset("pin"),this.get("servers").reset()}});t.a=h},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(13),s=n(200),o=n(15),l=n(123),u=n(61),c=s.a.extend({initialize:function(){
this.viewFor=this.viewFor.bind(this)},viewFor:function(e,t){var n=this.getViewByType(e);if(n)return new n(t);throw new Error("No view defined for "+e)},login:function(){var e=this,t=n.i(r.a)("appModel"),i=t.get("cloudServer");o.a.trigger("show:loading"),i.populate().done(function(){o.a.trigger("navigate","dashboard")}).fail(function(){var a=i.get("available");if(a!==!0&&a!==!1)return void e.listenToOnce(i,"change:available",e.login);var r=t.get("user"),s=r.get("features")
;n.i(l.a)(s.populate()).done(function(){var t=a?e.viewFor("signIn"):e.viewFor("unavailable",{model:i});o.a.trigger("show:view",t)})})},error:function(){o.a.trigger("show:view",this.viewFor("notFound",{type:"404"}))},unauthorized:function(e){var t=this;a.a.some(this.getUnauthorizedHandlers(),function(n){return n.call(t,e)})||o.a.trigger("show:view",this.viewFor("notFound",{type:"media"}))},getUnauthorizedHandlers:function(){
return[this.handleLockState,this.handleAuthorized,this.handlePrimaryServer,this.handleServer,this.handleChannelError]},handleLockState:function(e){return n.i(r.a)("appModel").get("user").get("isLocked")},handleAuthorized:function(e){var t=n.i(r.a)("appModel"),i=t.get("servers").findWhere({authorized:!0}),a=!i&&!t.get("skipSignIn");return a&&this.populateServersThenRecover(),a},handlePrimaryServer:function(e){var t=e.server,n=e.options
;return!(t||!n.primaryServer)&&(o.a.trigger("show:view",this.viewFor("serverRequired")),!0)},handleServer:function(e){var t=e.server,i=e.options,a=this.viewFor,s=n.i(r.a)("appModel"),l=s.get("cloudServer"),u=void 0,c=void 0;return!(!i.serverID&&!i.primaryServer)&&(t?t.get("available")?t.get("authorized")||"resolved"!==l.populatePromise.state()?t.get("authorized")||(u=this.populateServersThenRecover()):c=a("unauthorized"):c=a("unavailable",{model:t}):c=a("notFound",{type:"server"}),
c&&o.a.trigger("show:view",c),!(!c&&!u))},handleChannelError:function(e){var t=e.options,n=!!t.channelID;return n&&o.a.trigger("show:view",this.viewFor("channelError")),n},populateServersThenRecover:function(){var e=n.i(r.a)("appModel"),t=e.get("skipSignIn"),i=e.get("servers"),a=i.findWhere({cloud:!0}),s=this.viewFor;return i.populate().done(function(){var e=i.filter(function(e){return e.get("hasManualConnection")})[0]
;a.get("authorized")?o.a.trigger("navigate:refresh"):e?e.get("authorized")?o.a.trigger("navigate","dashboard"):o.a.trigger("show:view",s("unavailable",{model:e})):t?o.a.trigger("show:view",s("serverRequired")):o.a.trigger("navigate","login",{silent:!0})}).fail(function(){u.a.get("requiresSignIn")?o.a.trigger("show:view",s("unavailable",{model:a})):o.a.trigger("show:view",s("serverRequired"))})}});t.a=c},function(e,t,n){"use strict"
;var i=n(3),a=n.n(i),r=n(55),s=n(13),o=n(15),l=n(201),u=l.a.extend({initialize:function(){l.a.prototype.initialize.apply(this,arguments),this.listenTo(o.a,{"navigate:back":this.onNavigateBack,"navigate:forward":this.onNavigateForward,"navigate:refresh":this.onNavigateRefresh,"navigate:refresh:dashboard":this.onNavigateRefreshDashboard})},onNavigateBack:function(){var e=s.a("appModel"),t=e.get("history"),n=e.get("forwardHistory");if(t.length<2)return this.navigate("",{trigger:!0})
;n.unshift(t.pop()),this.navigate(a.a.last(t),{trigger:!0})},onNavigateForward:function(){var e=s.a("appModel"),t=e.get("forwardHistory");t.length&&this.navigate(t[0],{trigger:!0})},onNavigateRefresh:function(){r.a.history.loadUrl(r.a.history.getFragment())}});t.a=u},function(e,t,n){"use strict";function i(e,t,i){var a=i.rating,s=i.allowMetrics,p=i.metricsProperties,h=void 0===p?{}:p,f=t.server,v=e.get("features").get(d.a.RATE);if(!v)return o.a.Deferred().reject().promise();var m={
key:t.get("ratingKey"),identifier:t.get("identifier"),rating:a},g=u.join(v.get("key"),m),y=f.getXHROptions(g),b=t.get("userRating"),S=a===-1?void 0:a;t.set("userRating",S);var I=o.a.ajax(y).fail(function(e){t.get("userRating")===S&&t.set("userRating",b)});return s&&n.i(l.a)("metrics").trackClick(r()({},h,{action:c.E,type:t.get("type"),rating:a})),I.promise()}var a=n(6),r=n.n(a),s=n(10),o=n.n(s),l=n(13),u=n(19),c=n(64),d=n(133);t.a=i},function(e,t,n){"use strict";function i(e,t,i,a,r){
var o=s()({},i);o.Stream=i.Stream.map(function(e){return e.streamType!==a.id?e:e.id!==r||e.selected?e.id!==r&&e.selected?s()({},e,{selected:!1}):e:s()({},e,{selected:!0})});var l=s()({},t,{Part:n.i(h.a)(t.Part,i,o)});return n.i(h.a)(e,t,l)}function a(e,t){for(var a,r=t.streamTypeString,o=t.streamID,u=t.allParts,h=t.allowMetrics,m=t.metricsProperties,g=void 0===m?{}:m,y=p.a.get(r),b=e.server,S=e.get("Media"),I=void 0,M=void 0,C=0,w=S.length;C<w;C++){
for(var D=S[C],P=D.Part,T=0,x=P.length;T<x;T++){for(var E=P[T],N=E.Stream,L=0,A=N.length;L<A;L++){var k=N[L];if(k.streamType===y.id&&k.id===o){I=D,M=E;break}}if(M)break}if(M)break}if(!M)return c.a.Deferred().reject().promise();var _=(a={},a[y.key]=o,a);u&&(_.allParts=1);var O=f.join(["/library/parts/",M.id],_),j=l.a.extend(b.getXHROptions(O),{type:"PUT"}),R=i(S,I,M,y,o);e.set("Media",R);var U=c.a.ajax(j).done(function(){u&&e.fetch({usePopulatedParams:!0})}).fail(function(){
e.get("Media")===R&&e.set("Media",S)});return h&&n.i(d.a)("metrics").trackClick(s()({},g,{action:v.G,type:e.get("type"),streamType:r})),U.promise()}var r=n(6),s=n.n(r),o=n(3),l=n.n(o),u=n(10),c=n.n(u),d=n(13),p=n(90),h=n(1389),f=n(19),v=n(64);t.a=a},function(e,t,n){"use strict";function i(e,t){var i=t.get("type"),a=c.b(i),r=c.n(i);if(!a)return l.a.Deferred().reject().promise();if(a.id===r.id){var s=e.get("playQueueItems"),o=t.get("containerKey");if(o&&!s.length&&(i===c.m||i===c.l||i===c.h)){
var h=new p.a([],{server:t.server});return h.fetch({url:o}).then(function(){var e=h.models.map(u.a);return l.a.Deferred().resolve(e).promise()})}return l.a.Deferred().resolve([n.i(u.a)(t)]).promise()}if(c.o(i).id===r.id){var f=d.join([t.get("key"),"children"]),v=new p.a([],{server:t.server});return v.fetch({url:f}).then(function(){var e=v.models.map(u.a);return l.a.Deferred().resolve(e).promise()})}return l.a.Deferred().reject().promise()}function a(e,t,n){var a=t.map(function(t){return i(e,t)})
;return l.a.when.apply(l.a,a).then(function(){var t,i=(t=[]).concat.apply(t,arguments);return e.get("playQueueItems").add(i,n),r(e)})}function r(e,t){var n=e.get("playQueueItems");if(e.get("playQueueSelectedItemID")||!n.length)return l.a.Deferred().resolve(e).promise();if(t){var i=n.findWhere({metadataItem:t}),a=i?i.id:n.at(0).id;e.set("playQueueSelectedItemID",a)}else{var r=e.get("playQueueSelectedItemOffset"),s=n.at(r);e.set("playQueueSelectedItemID",s.id)}
return l.a.Deferred().resolve(e).promise()}function s(e){var t=e.next,n=e.playQueueModel,s=e.metadataItemModel,o=e.metadataItemModels,u=e.metadataListModel,c=t?n.get("playQueueSelectedItemOffset")+1:void 0,d={at:c};if(s)return i(n,s).then(function(e){return n.get("playQueueItems").add(e,d),r(n,s)});if(o&&o.length)return a(n,o,d);if(u){var p=u.get("metadataItems").models;return a(n,p,d)}return l.a.Deferred().reject().promise()}var o=n(10),l=n.n(o),u=n(831),c=n(30),d=n(19),p=n(270);t.a=s
},function(e,t,n){"use strict";function i(e){return e.metadataItemModel?a(e):e.metadataItemModels&&e.metadataItemModels.length?r(e):e.metadataListModel?s(e):c.a.Deferred().reject().promise()}function a(e){var t=e.metadataItemModel,n=e.itemKey,i=e.containerKey,a=e.shuffle,r=e.playAll,s=t.get("type"),l=s===p.f,u=s===p.k,f=s===p.l,v=s===p.h,m=s===p.m,g=s===p.d,y=o(e);if((u||f)&&(y.continuous=1),(l||u)&&!r&&!a){var b=l?t:new h.a({key:t.get("parentKey")},{server:t.server});return b.fetch({data:{
includeOnDeck:"1"}}).then(function(){var e=b.get("onDeck"),n=e&&l,i=e&&u&&e.get("parentRatingKey")===t.get("ratingKey");return n||i?(y.uri=d.a.uri(t),y.key=e.get("key"),y):u?t.get("children").populate().then(function(){var e=t.get("children").get("metadataItems"),n=e.findWhere(function(e){return!e.get("viewCount")});return y.uri=n?d.a.uri(n):d.a.uri(t),y}):(y.uri=d.a.uri(t),y)})}return g?(y.playlistID=t.get("ratingKey"),
n&&(y.key=n)):n?y.uri="library:///item/"+encodeURIComponent(n):(m||v)&&i?(y.uri="library:///directory/"+encodeURIComponent(i),y.key=t.get("key")):y.uri=d.a.uri(t),c.a.Deferred().resolve(y).promise()}function r(e){var t=o(e);return t.uri=d.a.uri(null,{items:e.metadataItemModels}),c.a.Deferred().resolve(t).promise()}function s(e){var t=o(e);return t.uri=d.a.uri(e.metadataListModel),c.a.Deferred().resolve(t).promise()}function o(e){return{type:e.playQueueModel.get("type"),
shuffle:e.shuffle?1:void 0,next:e.next?1:void 0,extrasPrefixCount:e.extrasPrefixCount}}function l(e){var t=e.playQueueModel;if(t.get("isLocal"))return n.i(f.a)(e).then(function(){return n.i(v.a)(t)});var a=t.isNew()?"POST":"PUT";return i(e).then(function(e){return n.i(v.a)(t,{params:e,type:a}).then(null,function(){return c.a.Deferred().reject().promise()})})}var u=n(10),c=n.n(u),d=(n(31),n(203)),p=n(30),h=n(76),f=n(1353),v=n(338);t.a=l},function(e,t,n){"use strict";function i(e){
var t=n.i(a.a)(e),i=e.get("currentDecision");if(i&&i.playQueueItemID===t.get("playQueueItemID"))return i}var a=n(521);t.a=i},function(e,t,n){"use strict";function i(e,t,n){if(e&&e.length)for(var i=Math.max(t,n),a=0;a<e.length;a++){var r=e.at(a),s=Math.ceil(r.get("startTimeOffset")/1e3);if(s>i)return s}}t.a=i},function(e,t,n){"use strict";function i(e,t,n){if(e&&e.length){for(var i=Math.max(t,n),r=e.length-1;r>=0;r--){var s=e.at(r),o=Math.ceil(s.get("startTimeOffset")/1e3);if(o<i-a.a)return o}
return 0}}var a=n(233);t.a=i},function(e,t,n){"use strict";function i(e,t){return null==e.get("startMetadataItemEntityID")&&null!=e.get("startMediaIndex")?e.get("startMediaIndex"):e.get("startMetadataItemEntityID")===t.entityID()?e.get("startMediaIndex"):null}t.a=i},function(e,t,n){"use strict";function i(e){var t=e.get("grabOperation");if(t&&t.get("beginsAt"))return t.get("beginsAt")}function a(e,t){var n=i(e);if(n)return n+t}function r(e,t){var n=a(e,t)
;if(n)for(var i=e.get("timeline"),r=0;r<i.length;r++)for(var s=i.at(r),o=[].concat(s.get("Media")).sort(function(e,t){return e.endsAt-t.endsAt}),l=0;l<o.length;l++){var u=o[l],c=u.beginsAt,d=u.endsAt;if(c<=n&&d>n)return u}}function s(e,t){var n=a(e,t);if(n)for(var i=e.get("timeline"),r=i.length-1;r>=0;r--)for(var s=i.at(r),o=[].concat(s.get("Media")).sort(function(e,t){return e.endsAt-t.endsAt}),l=o.length-1;l>=0;l--){var u=o[l];if(u.endsAt<=n)return u}}function o(e){
var t=e.get("liveTVSession"),n=e.get("positionSeconds"),a=e.get("seekEndSeconds"),s=i(t),o=r(t,n);if(o){var l=o.endsAt-s;return Math.min(a,l)}}function l(e){var t=e.get("liveTVSession"),n=e.get("positionSeconds"),o=e.get("seekStartSeconds"),l=i(t),c=a(t,n),d=r(t,n);if(d){if(c-d.beginsAt>u.a){var p=d.beginsAt-l;return Math.max(o,p)}var h=s(t,n);if(h){var f=h.beginsAt-l;return Math.max(o,f)}}}var u=n(233);t.a=o,t.b=l},function(e,t,n){"use strict";function i(e){S.startPlayback(e)
;var t=n.i(g.a)("remoteCastPlayerManager");e.get("playQueue").set("own",!1),t.startPlayback(e)}function a(e){S.endPlayback(e),n.i(g.a)("remoteCastPlayerManager").sendMessage({type:y.a})}function r(e){n.i(g.a)("remoteCastPlayerManager").sendMessage({type:y.b})}function s(e){n.i(g.a)("remoteCastPlayerManager").sendMessage({type:y.c})}function o(e,t){S.playItem(e,t)
;var i=n.i(g.a)("remoteCastPlayerManager"),a=e.get("playQueue"),r=a.get("playQueueItems"),s=a.get("playQueueSelectedItemID"),o=r.get(s),l=o.get("metadataItem");i.sendMessage({type:y.d,key:l.get("key")})}function l(e){S.play(e),n.i(g.a)("remoteCastPlayerManager").sendMessage({type:y.e})}function u(e){S.pause(e),n.i(g.a)("remoteCastPlayerManager").sendMessage({type:y.f})}function c(e,t){S.seek(e,t),n.i(g.a)("remoteCastPlayerManager").sendMessage({type:y.g,currentTime:t})}function d(e,t,i){
n.i(g.a)("remoteCastPlayerManager").setVolume(i)}function p(e,t){S.changeQualityIndex(e,t);var i=b.a.getQualityByIndex(t);n.i(g.a)("remoteCastPlayerManager").sendMessage({type:y.h,bitrate:i.bitrate})}function h(e,t,i){n.i(g.a)("remoteCastPlayerManager").sendMessage({type:y.i,stream:{type:t,id:i}})}function f(e,t){}function v(e){n.i(g.a)("remoteCastPlayerManager").sendMessage({type:y.j})}function m(e){n.i(g.a)("remoteCastPlayerManager").mirrorDetails(e)}Object.defineProperty(t,"__esModule",{
value:!0});var g=n(13),y=n(798),b=n(113),S=n(523);t.startPlayback=i,t.endPlayback=a,t.playNextItem=r,t.playPreviousItem=s,t.playItem=o,t.play=l,t.pause=u,t.seek=c,t.changeVolume=d,t.changeQualityIndex=p,t.changeStream=h,t.setRepeat=f,t.refreshRemotePlayQueue=v,t.mirrorDetails=m},function(e,t,n){"use strict";function i(e){var t=e.get("playQueue");return n.i(S.a)(t.get("type"))}function a(e){M.startPlayback(e);var t=n.i(y.a)("remotePlexPlayerManager");e.get("playQueue").set("own",!1),
t.startPlayback(e)}function r(e){var t=i(e),a=n.i(y.a)("remotePlexPlayerManager");M.endPlayback(e),a.sendCommand("/player/playback/stop",{type:t})}function s(e){var t=n.i(y.a)("remotePlexPlayerManager"),a=i(e);t.sendCommand("/player/playback/skipNext",{type:a})}function o(e){var t=n.i(y.a)("remotePlexPlayerManager"),a=i(e);t.sendCommand("/player/playback/skipPrevious",{type:a})}function l(e,t){M.playItem(e,t)
;var a=n.i(y.a)("remotePlexPlayerManager"),r=i(e),s=e.get("playQueue"),o=s.get("playQueueItems"),l=s.get("playQueueSelectedItemID"),u=o.get(l),c=u.get("metadataItem");a.sendCommand("/player/playback/skipTo",{type:r,key:c.get("key")})}function u(e){M.play(e);var t=n.i(y.a)("remotePlexPlayerManager"),a=i(e);t.sendCommand("/player/playback/play",{type:a})}function c(e){M.pause(e);var t=n.i(y.a)("remotePlexPlayerManager"),a=i(e);t.sendCommand("/player/playback/pause",{type:a})}function d(e,t){
M.seek(e,t);var a=n.i(y.a)("remotePlexPlayerManager"),r=i(e);a.seek({type:r,offset:1e3*t})}function p(e,t,a){var r=n.i(y.a)("remotePlexPlayerManager"),s=i(e);r.changeVolume({type:s,volume:a})}function h(e,t){}function f(e,t,a){var r,s=n.i(y.a)("remotePlexPlayerManager"),o=i(e),l=b.a.get(t).key;s.sendCommand("/player/playback/setStreams",(r={type:o},r[l]=a,r))}function v(e,t){M.setRepeat(e,t);var a=n.i(y.a)("remotePlexPlayerManager"),r=i(e),s=e.get("repeatAll"),o=e.get("repeatOne"),l=I.a
;s&&(l=o?I.b:I.c),a.sendCommand("/player/playback/setParameters",{type:r,repeat:l})}function m(e){var t=n.i(y.a)("remotePlexPlayerManager"),a=i(e),r=e.get("playQueue"),s=r.get("playQueueID");t.sendCommand("/player/playback/refreshPlayQueue",{type:a,playQueueID:s})}function g(e){n.i(y.a)("remotePlexPlayerManager").mirrorDetails(e)}Object.defineProperty(t,"__esModule",{value:!0});var y=n(13),b=n(90),S=n(342),I=n(406),M=n(523);t.startPlayback=a,t.endPlayback=r,t.playNextItem=s,t.playPreviousItem=o,
t.playItem=l,t.play=u,t.pause=c,t.seek=d,t.changeVolume=p,t.changeQualityIndex=h,t.changeStream=f,t.setRepeat=v,t.refreshRemotePlayQueue=m,t.mirrorDetails=g},function(e,t,n){"use strict";function i(e,t){n.i(o.a)(t,"A transcoder ping requires a session identifier"),n.i(s.a)("[Player] Transcoder Ping, %s",t);var i="/video/:/transcode/universal/ping?session="+t;return r.a.ajax(e.getXHROptions(i)).promise()}var a=n(10),r=n.n(a),s=n(29),o=n(31);t.a=i},function(e,t,n){"use strict";function i(e,t,i){
var a=i.mediaIndex,s=i.partIndex,g=i.partCount,y=i.state,b=i.continuing,S=i.positionSeconds,I=i.durationSeconds,M=e.get("features").get(m.a.TIMELINE);if(!M)return o.a.Deferred().reject().promise();var C=t.get("metadataItem"),w={ratingKey:C.get("ratingKey"),key:C.get("key"),playQueueItemID:t.get("playQueueItemID"),state:y,hasMDE:1};if(y===c.a&&b&&(w.continuing=1),I){var D=1e3*S,P=1e3*I;if(g>1){var T=C.get("Media"),x=T[a],E=x.Part[s];w.time=n.i(p.a)(x,E,D),w.duration=x.duration}else w.time=D,
w.duration=P;w.duration=Math.max(w.time,w.duration)}n.i(l.a)("[Player] Timeline, %s",w);var N=u.join(M.get("key"),w),L=C.server.getXHROptions(N,{headers:{"X-Plex-Session-Identifier":i.playbackSessionID}});return o.a.ajax(L).promise().then(function(e){if(!e)return{};var t=n.i(v.a)(e);return t.terminationCode&&(t.terminationCode=n.i(f.a)(t.terminationCode)),t.generalDecisionCode&&(t.generalDecisionCode=n.i(f.a)(t.generalDecisionCode)),
t.mdeDecisionCode&&(t.mdeDecisionCode=n.i(f.a)(t.mdeDecisionCode)),t.transcodeDecisionCode&&(t.transcodeDecisionCode=n.i(f.a)(t.transcodeDecisionCode)),t.Bandwidths&&t.TranscodeSession&&(t.bandwidthTimeline={bandwidths:n.i(h.a)(t.Bandwidths.Bandwidth),transcodeSessionID:r.a.last(t.TranscodeSession.key.split("/"))}),w.time>6e4&&(t.playbackState===d.a?C.set("viewOffset",w.time):t.playbackState===d.b&&C.set({viewOffset:0,viewCount:1})),t})}
var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(29),u=n(19),c=n(542),d=n(1397),p=n(822),h=n(557),f=n(559),v=n(410),m=n(133);t.a=i},function(e,t,n){"use strict";function i(e,t,n){var i=e.get("previousOpenState"),a=e.get("openState");return i&&!t?a=i:i&&t&&(a=void 0),r()({previousOpenState:a,openState:i&&t?i:s.a},n)}var a=n(6),r=n.n(a),s=n(137);t.a=i},function(e,t,n){"use strict";function i(e,t,i,a){var l="/livetv/dvrs/"+t+"/channels/"+i+"/tune";return r.a.ajax(e.server.getXHROptions(l,{method:"POST",
headers:{"X-Plex-Session-Identifier":a.playbackSessionID},timeout:o.c})).then(function(a,o,l){e.set(e.parse(a));var u=e.get("grabOperation");if(!u)return r.a.Deferred().reject({errorMessage:n.i(s.default)("Unable to tune channel")}).promise();var c=u.get("metadataItem"),d=c.get("Media")[0],p=u.get("conflicts"),h=l.getResponseHeader("X-Plex-Activity");if(e.set({dvrID:t,channelIdentifier:i,activityUUID:h}),p&&p.length)return r.a.Deferred().reject({hasConflicts:!0,liveTVSession:e}).promise()
;if(!h)return r.a.Deferred().reject({errorMessage:n.i(s.default)("Unable to tune channel (No activity)")}).promise();var f=d&&d.Part;return f&&f.length?(c.set("isPreFetched",!0),r.a.Deferred().resolve(e).promise()):r.a.Deferred().reject({errorMessage:n.i(s.default)("Unable to tune channel (No parts)")}).promise()},function(e,t){return"abort"===t?r.a.Deferred().reject({errorMessage:n.i(s.default)("Unable to tune channel (Timed out)")}).promise():r.a.Deferred().reject({
errorMessage:n.i(s.default)("Unable to tune channel")}).promise()})}var a=n(10),r=n.n(a),s=n(4),o=n(55);t.a=i},function(e,t,n){"use strict";function i(e){var t=e&&e.responseJSON,n=!t&&e&&e.responseText&&s.a.parseXML(e.responseText),i=t&&t.errors||n&&n.error;return i?r.a.isArray(i)?i:[i]:[]}var a=n(3),r=n.n(a),s=n(60);t.a=i},function(e,t,n){"use strict";function i(e){var t=e&&e[0];return t?r.a.isObject(t)?n.i(o.a)(t):t:n.i(s.default)("There was a problem signing in to Plex.")}
var a=n(3),r=n.n(a),s=n(4),o=n(238);t.a=i},function(e,t,n){"use strict";var i=n(36),a=n(335);n.d(t,"a",function(){return r});var r=n.i(i.a)(a.i)},function(e,t,n){"use strict";var i=n(36),a=n(335);n.d(t,"a",function(){return r});var r=n.i(i.a)(a.j)},function(e,t,n){"use strict";function i(e,t){function n(){c===u&&(c=u.slice())}function i(){return t.getState()}function a(e){var t=!0;return n(),c.push(e),function(){if(t){t=!1,n();var i=c.indexOf(e);c.splice(i,1)}}}function r(e){
var n=e.payload,i=e.type,a=i&&d[i];if(Array.isArray(a))for(var s=0,o=a.length;s<o;s++)a[s](t,n,r);else a&&a(t,n,r);return e}function s(e){d=o(e)}function o(e){for(var t={},n=0,i=e.length;n<i;n++){var a=e[n];for(var r in a){var s=t[r],o=a[r];s?Array.isArray(s)?s.push(o):t[r]=[s,o]:t[r]=o}}return t}function l(){for(var e=u=c,t=0,n=e.length;t<n;t++)e[t]()}var u=[],c=u,d=void 0;return s(e),t.on("statechange",l),{dispatch:r,subscribe:a,getState:i,replaceActionHandlers:s}}n(344),n(31),n(17);t.a=i
},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(n.i(r.a)(),s.a,o.a,function(e,t,i){var a={key:e.key,title:e.title};return n.i(l.a)(t.machineIdentifier,i.identifier,a)})}var a=n(5),r=(n.n(a),n(21)),s=n(45),o=n(43),l=n(665);t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.a)("firstCharacter")}var a=n(400);t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(function(e,t){return t.folderKey},n.i(r.a)("all"),function(e,t){return e?e:t})}
var a=n(5),r=(n.n(a),n(400));t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.a)("cluster?clusterZoomLevel=1")}var a=n(400);t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(function(e,t){return t.libraryEntityID},r.a,function(e,t){return t[e]})}var a=n(5),r=(n.n(a),n(776));t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(function(e,t){return t.directoryKey},function(e,t){return t.activeType},function(e,t){return t.activeSort
},function(e,t,i){var a={};t&&(a.playlistType=t),i&&(a.sort=i);var s=e.lastIndexOf("/")+1,o=parseInt(e.slice(s),10),l=o?"/playlists?sectionID="+o:"/playlists";return n.i(r.join)(l,a)})}var a=n(5),r=(n.n(a),n(19));t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(s.a,n.i(r.a)(),function(e,t){return e[t.liveTVSession]})}var a=n(5),r=(n.n(a),n(42)),s=n(779);t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(n.i(s.a)(),function(e){
if(e&&e.childrenKey){var t=e.key,n=e.skipChildren?"grandchildren":"children",i={excludeAllLeaves:1};return("album"===e.type||"artist"===e.type&&e.skipChildren)&&(i.includeRelated=1),r.join([t,n],i)}})}var a=n(5),r=(n.n(a),n(19)),s=n(21);t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(n.i(s.a)(),function(e){if(e){var t=e.skipParent,n=t?e.grandparentKey:e.parentKey;if(n){var i=t?"grandchildren":"children";return r.join([n,i],{excludeAllLeaves:1})}}})}
var a=n(5),r=(n.n(a),n(19)),s=n(21);t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(n.i(s.a)(),function(e){return e&&e.viewOffset?n.i(r.a)(e.viewOffset,e.duration):0})}var a=n(5),r=(n.n(a),n(553)),s=n(21);t.a=i},function(e,t,n){"use strict";var i=n(5),a=(n.n(i),n(150)),r=n.i(i.createSelector)(a.a,function(e){return e.metadataLists});t.a=r},function(e,t,n){"use strict";function i(){return n.i(s.createSelector)(n.i(l.a)(),n.i(o.a)(),function(e,t){
var n=e.bandwidthTimeline;if(!(t&&n&&n.bandwidths&&n.transcodeSessionID&&n.transcodeSessionID===t.transcodeSessionID))return null;var i=1e3*e.positionSeconds,a=n.bandwidths.filter(function(e){return parseInt(e.time,10)<=i});return 0===a.length?null:r.a.max(a,function(e){return parseInt(e.time,10)})})}var a=n(3),r=n.n(a),s=n(5),o=(n.n(s),n(229)),l=n(42);t.a=i},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(n.i(r.a)(),function(e,t){return t.directoryKey},function(e,t){
var n=!1,i=void 0;if(e&&e.length)if(t)for(var a=0;!i&&a<e.length;){var r=e[a++];n=r.hubKey===t,(n||r.key===t)&&(i=r)}else i=e[0],n=!!i.hubKey;return{isHubKey:n,directory:i}})}var a=n(5),r=(n.n(a),n(340));t.a=i},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(5),s=(n.n(r),n(403)),o=n.i(r.createSelector)(s.a,function(e){return a.a.find(e,function(e){var t=e.activeConnection;return!!e.isFullServer&&(!(!e.isConnected||t.isPossiblyCrossNetworkProtected)&&!!t.isPrivate)})});t.a=o
},function(e,t,n){"use strict";var i=n(5),a=(n.n(i),n(403)),r=n.i(i.createSelector)(a.a,function(e){return e.filter(function(e){return e.isPersonalCloudServer})});t.a=r},function(e,t,n){"use strict";var i=n(5),a=(n.n(i),n(179)),r=n.i(i.createSelector)(a.a,function(e){return e.transientServer},function(e,t){return e[t]});t.a=r},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(function(e,t){return t.mediaSubscriptionEntityID},r.a,function(e,t){return t[e]})}
var a=n(5),r=(n.n(a),n(792));t.a=i},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(71),s=n(59),o=s.a.extend({mixins:[r.a],name:"AjaxQueue",queue:null,request:null,enabled:!1,destroyed:!1,initialize:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.queue=[],e.enabled!==!1&&this.enable()},enable:function(){this.enabled||this.destroyed||(this.enabled=!0,this.onEnabled())},disable:function(){this.enabled&&(this.enabled=!1,this.request=null,this.onDisabled())},
destroy:function(){this.destroyed||(this.disable(),this.queue.length=0,this.destroyed=!0,this.onDestroyed())},send:function(e){e&&(this.queue.push(e),this._next())},_next:function(){if(this._canNext()){var e=this.queue.shift(),t=e&&this._getAjaxOptions(e);if(t){var n=a.a.ajax(t);n.always(this.onAjaxAlways.bind(this,n)),this.request=n}}},_canNext:function(){return this.enabled&&!this.request},_getAjaxOptions:function(e){return e},onAjaxAlways:function(e){
this.enabled&&e===this.request&&(this.request=null,this._next())},onEnabled:function(){this._next()},onDisabled:function(){},onDestroyed:function(){}});t.a=o},function(e,t,n){"use strict";function i(e,t,n){var i=e.indexOf(t);if(i<0)return e;var a=e.slice(0);return a[i]=n,a}t.a=i},function(e,t,n){"use strict";function i(e){var t=e.get("metadataList").getCollection(),n=t.length,i=e.get("viewGroup");if("Pictures"===i)return s.tileList;if("List"===i)return s.list;if(t.findWhere({type:"photo"
}))return s.tileList;var a=r.a.compact(t.pluck("summary")),o=r.a.uniq(t.pluck("thumb")),l=t.reduce(function(e,t){var n=t.get("title");return n?e+n.length:e},0),u=l/n;return o.length>n/2&&u<30?s.tileList:a.length>n/2?s.detailsList:s.list}var a=n(3),r=n.n(a),s={tileList:"media-tile-list",detailsList:"media-details-list",list:"media-list"},o={types:s,getListType:i};t.a=o},function(e,t,n){"use strict";function i(e,t){var n=[r.a.first(e),r.a.last(e)],i=r.a.sortBy(e,"size").reverse()
;return r.a.union(n,i).slice(0,t)}var a=n(3),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e,t){return e&&e.length&&t>0?r.a.sortBy(n.i(s.a)(e,t),"position"):[]}var a=n(3),r=n.n(a),s=n(1391);t.a=i},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return r})
;var i="playPause,stop,skipPrevious,skipNext,seekTo,stepBack,stepForward,subtitleStream,volume",a="playPause,stop,skipPrevious,skipNext,seekTo,repeat,volume",r="playPause,stop,skipPrevious,skipNext"},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i="analyzing"},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i="folder",a="type"},function(e,t,n){"use strict";function i(e){return o[e]}var a=n(342);n.d(t,"a",function(){return s}),
t.b=i;var r,s="navigation",o=(r={},r[a.c]="fullScreenVideo",r[a.d]="fullScreenMusic",r[a.b]="fullScreenPhoto",r)},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i="progress",a="complete"},function(e,t,n){"use strict";var i=["Active","Inactive","Canceled"];t.a=i},function(e,t,n){"use strict";function i(e,t){return e.replace(/\{([a-z0-9]+?)\}/gi,function(e,n){return t.hasOwnProperty(n)?t[n]:e})}function a(e){
for(var t=void 0,i=1,a=arguments.length<=1?0:arguments.length-1;i<=a;)t=d[i],t||(t=new RegExp(n.i(c.a)("{"+i+"}"),"g"),d[i]=t),e=e.replace(t,arguments.length<=i-1+1?void 0:arguments[i-1+1]),i++;return e}function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return u.a.isObject(n[0])?i(e,n[0]):u.a.isObject(n[n.length-1])?(n.pop(),a.apply(void 0,[e].concat(n))):a.apply(void 0,[e].concat(n))}function s(e){var t;if(!e)return""
;var n=(t=(arguments.length<=1?0:arguments.length-1)-1+1,arguments.length<=t?void 0:arguments[t]);return u.a.isObject(n)&&n&&n.escape?u.a.escape(e):e}function o(e){return function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];var o=s.apply(void 0,[e.call(this,t)||t,t].concat(i));return r.apply(void 0,[o].concat(i))}}var l=n(3),u=n.n(l),c=n(207),d={};t.a=o},function(e,t,n){"use strict";function i(e,t){
var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.timeFormat,h=void 0===a?"h:mma":a;if(null==e)return"";var f=r.a.unix(e);if(n.i(o.a)(e))return n.i(s.default)("Yesterday");0===f.minutes()&&(h=h.replace("h:mm","h"));var v=n.i(p.default)(e,h),m=void 0;return m=n.i(l.a)(e)?n.i(u.a)(e)?n.i(s.default)("Tonight"):n.i(s.default)("Today"):n.i(c.a)(e)?n.i(s.default)("Tomorrow"):n.i(d.a)(e)?n.i(p.default)(e,"dddd"):n.i(p.default)(e,"MMM D"),
t?n.i(s.default)("{1} at {2} on {3}",m,v,t):n.i(s.default)("{1} at {2}",m,v)}var a=n(40),r=n.n(a),s=n(4),o=n(407),l=n(343),u=n(809),c=n(808),d=n(807),p=n(275);t.a=i},function(e,t,n){"use strict";function i(e){if(null==e)return"";var t=r.a.duration(e),i=365*t.years(),a=30*t.months(),o=i+a+t.days();return 1!==o?n.i(s.default)("{1} days",o):n.i(s.default)("{1} day",o)}var a=n(40),r=n.n(a),s=n(4);t.a=i},function(e,t,n){"use strict";function i(e){if(null==e)return""
;var t=r.a.duration(e),i=t.days(),a=t.hours(),o=1!==i;return i&&a?o?n.i(s.default)("{1} days {2} hr",i,a):n.i(s.default)("{1} day {2} hr",i,a):i?o?n.i(s.default)("{1} days",i):n.i(s.default)("{1} day",i):n.i(s.default)("{1} hr",a)}var a=n(40),r=n.n(a),s=n(4);t.a=i},function(e,t,n){"use strict";function i(e){if(null==e)return"";var t=r.a.duration(e),i=24*t.days()*60,a=60*t.hours(),o=t.minutes()+a+i,l=t.seconds();return o?n.i(s.default)("{1} min",o):l>0?n.i(s.default)("{1} sec",l):""}
var a=n(40),r=n.n(a),s=n(4);t.a=i},function(e,t,n){"use strict";function i(e){if(null==e)return"";var t=r.a.duration(e),i=24*t.days()*60,a=60*t.hours(),o=t.minutes()+a+i,l=t.seconds();return o&&l?n.i(s.default)("{1} min {2} sec",o,l):o?n.i(s.default)("{1} min",o):l>0?n.i(s.default)("{1} sec",l):""}var a=n(40),r=n.n(a),s=n(4);t.a=i},function(e,t,n){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.limit
;return e?("past"===n?e=Math.min(e,r()().unix()):"future"===n&&(e=Math.max(e,r()().add(1,"second").unix())),r.a.unix(e).fromNow()):""}var a=n(40),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=l[e]||r.a.last(l);return{times:e+1,remindAfter:o()().add(t,"days").unix()}}var a=n(3),r=n.n(a),s=n(40),o=n.n(s),l=[7,30,60,90,180];t.a=i},function(e,t,n){"use strict";function i(e,t,n){var i=[].concat(e);if(n.type===l.a){
var a=o.a.findIndex(i,function(e){return e.key===t}),s=a===-1?0:a,u=r()({key:t},n);a===-1?i.push(u):i.splice(s,1,u)}else{o.a.findWhere(i,{key:t,value:n.value})||i.push(r()({key:t},n))}return i}var a=n(6),r=n.n(a),s=n(3),o=n.n(s),l=(n(31),n(205));t.a=i},function(e,t,n){"use strict";function i(e){if(!e)return[];var t=decodeURIComponent(e).match(h);return t?t.reduce(function(e,t){var i=t.match(f),a=i[1],s=i[2],o=i[3],d=o?r.a.uniq(o.split(l.a)):"";return 1===d.length&&(d=d[0]),n.i(c.a)(e,a,{value:d,
type:v[a]?u.a:u.b,operator:s})},[]):[]}var a=n(3),r=n.n(a),s=n(207),o=n(276),l=n(812),u=n(205),c=n(1407);t.a=i;var d=o.i.sort(function(e,t){return e.length<t.length}).map(s.a).join("|"),p="([^&!=<>]+)("+d+")([^&!=<>]+)?",h=new RegExp(p,"g"),f=new RegExp(p),v={unwatched:!0,unwatchedLeaves:!0,duplicate:!0}},function(e,t,n){var i=n(275).default,a=n(153);e.exports=a(i)},function(e,t,n){var i=n(346).default,a=n(153);e.exports=a(i)},function(e,t,n){var i=n(281).default,a=n(153);e.exports=a(i)
},function(e,t,n){var i=n(1497).default,a=n(153);e.exports=a(i)},function(e,t,n){var i=n(19).getLastSegment,a=n(153);e.exports=a(i)},function(e,t,n){"use strict";var i=n(10);n.n(i).a.fn.isDisabled=function(){return this.hasClass("disabled")||this.hasClass("active")||this.hasClass("hidden")}},function(e,t,n){"use strict";var i=n(10);n.n(i).a.fn.selectText=function(){var e,t=this[0];if(document.body.createTextRange)e=document.body.createTextRange(),e.moveToElementText(t),
e.select();else if(window.getSelection){var n=window.getSelection();e=document.createRange(),e.selectNodeContents(t),n.removeAllRanges(),n.addRange(e)}}},function(e,t,n){"use strict";var i=n(10);n.n(i).a.fn.triggerReflow=function(){var e=this[0];return e&&e.offsetHeight,this}},function(e,t,n){"use strict";function i(e){e=e||[];for(var t=0,n=e.length;t<n;t++){var s=e[t];if("xx"!==s&&"xn"!==s){if(a.a[s])return s;var o=s.match(r),l=o&&i([o[1]]);if(l)return l}}}var a=n(345);t.a=i;var r=/(^[^-]+)\-/
},function(e,t,n){"use strict";function i(e){var t=window.navigator,i=void 0;return e?i=n.i(r.a)(e):t.languages?i=t.languages:t.language?i=[t.language]:t.userLanguage&&(i=[t.userLanguage]),n.i(a.a)(i)||"en"}var a=n(1417),r=n(1420);t.a=i},function(e,t,n){"use strict";var i={en:"en.json","en-GB":"en-GB.json",af:"af.json",my:"my.json",ca:"ca.json",cs:"cs.json",sr:"sr.json",da:"da.json",de:"de.json",et:"et.json",es:"es.json","es-419":"es-419.json",el:"el.json",fr:"fr.json","fr-CA":"fr-CA.json",
hr:"hr.json",is:"is.json",it:"it.json",lt:"lt.json",hu:"hu.json",nl:"nl.json",no:"no.json",pl:"pl.json",pt:"pt.json","pt-BR":"pt-BR.json",ru:"ru.json",ro:"ro.json",sk:"sk.json",sl:"sl.json",fi:"fi.json",sv:"sv.json",vi:"vi.json",tr:"tr.json",uk:"uk.json",bg:"bg.json",zh:"zh.json","zh-TW":"zh-TW.json",ja:"ja.json",ko:"ko.json",th:"th.json",fa:"fa.json",ar:"ar.json",he:"he.json"};t.a=i},function(e,t,n){"use strict";function i(e){return e&&e.match(/[a-zA-Z\-]{2,10}/g)||[]}t.a=i},function(e,t,n){
"use strict";function i(){return r()(s.a).filter(function(e){return 2===e.length&&s.b.indexOf(e)===-1}).map(function(e){var t;return t={},t[e]=s.a[e],t})}var a=n(65),r=n.n(a),s=n(345);t.a=i},function(e,t,n){"use strict";var i=n(146),a=n.n(i),r=n(59),s=n(15),o=n(71),l=n(80),u=r.a.extend({mixins:o.a,name:"AbstractReporter",enabled:!1,destroyed:!1,_suspended:!1,initialize:function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).enabled!==!1&&this.enable()},hasSupport:function(){
return!0},enable:function(){this.enabled||this.destroyed||!this.hasSupport()||(this.enabled=!0,this.listenTo(s.a,{"log:message":this.onLog,"log:group":this.onLog,"log:groupCollapsed":this.onLog,"log:groupEnd":this.onLog}),this.onEnabled())},disable:function(){this.enabled&&(this.enabled=!1,this.stopListening(),this.onDisabled())},destroy:function(){this.destroyed||(this.disable(),this.destroyed=!0,this.onDestroyed())},_suspend:function(){this._suspended||(this._suspended=!0,this.onSuspended())},
_resume:function(){this._suspended&&(this._suspended=!1,this.onResumed())},onLog:function(e){if(this._suspended)return void(l.a.hasConsole&&window.console.warn("[Logging] Ignored log reentrancy:",a()(e)));switch(this._suspend(),e.type){case"log:message":this.onLogMessage(e);break;case"log:group":this.onLogGroup(e);break;case"log:groupCollapsed":this.onLogGroupCollapsed(e);break;case"log:groupEnd":this.onLogGroupEnd(e)}this._resume()},onLogMessage:function(){},onLogGroup:function(){},
onLogGroupCollapsed:function(){this.onLogGroup.apply(this,arguments)},onLogGroupEnd:function(){},onEnabled:function(){},onDisabled:function(){},onResumed:function(){},onSuspended:function(){},onDestroyed:function(){}});t.a=u},function(e,t,n){"use strict";var i,a=n(1422),r=n(80),s=n(29),o=(i={},i[s.a.LEVEL_LOG]={method:"log",color:"black"},i[s.a.LEVEL_DEBUG]={method:"debug",color:"#d500ff"},i[s.a.LEVEL_INFO]={method:"info",color:"blue"},i[s.a.LEVEL_WARN]={method:"warn",color:"#ff6600"},
i[s.a.LEVEL_ERROR]={method:"error",color:"red"},i),l=a.a.extend({name:"ConsoleReporter",hasSupport:function(){return r.a.hasConsole},onLogMessage:function(e){var t=e.message,n=o[e.level],i=window.console[n&&n.method]||window.console.log;n&&n.color?i.call(window.console,"%c"+t,"color: "+n.color+";"):i.call(window.console,t)},onLogGroup:function(e){(window.console.group||window.console.log).call(window.console,e.message)},onLogGroupCollapsed:function(e){
(window.console.groupCollapsed||window.console.log).call(window.console,e.message)},onLogGroupEnd:function(){window.console.groupEnd&&window.console.groupEnd()}});t.a=l},function(e,t,n){"use strict";function i(e,t){var n=e.get("Media");return r.a.indexOf(n,r.a.findWhere(n,{id:t}))}var a=n(3),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e,t){var n=e.Part;return r.a.indexOf(n,r.a.findWhere(n,{key:t}))}var a=n(3),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e,t,i){
var o=n.i(a.a)(e,t);if(i=n.i(r.a)(o,i)){var l=n.i(s.a)(e,o,t);return"/library/parts/"+o.id+"/indexes/"+i+"/"+l}}var a=n(825),r=n(827),s=n(826);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.seasonIndex;return null==t?"":t>1e3?t:(e.noLeadingZero||(t=n.i(r.a)(t)),e.useLongName?n.i(a.default)("Season {seasonNumber}",{seasonNumber:t}):n.i(a.default)("S{seasonNumber}",{seasonNumber:t}))}var a=n(4),r=n(556);t.a=i},function(e,t,n){"use strict";function i(e){var t=n.i(r.a)(e)
;return n.i(a.a)(t)}var a=n(828),r=n(239);t.a=i},function(e,t,n){"use strict";function i(e){var t=e?r.a.first(e.get("Media")):null;return!(!t||t.container)}var a=n(3),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e,t,i){if(e){var a=n.i(s.a)(e,{streamType:t.id});r.a.each(a,function(e){e.selected=e.id===i})}}var a=n(3),r=n.n(a),s=n(206);t.a=i},function(e,t,n){"use strict";function i(e){if(!e)return n.i(a.default)("None")
;var t=e.language||n.i(a.default)("Unknown"),i=r.a.get(e.streamType),l=i&&i.typeString,u=e.codec,c=[];return"subtitles"===l&&u?(c.push(u.toUpperCase()),e.key&&c.push(n.i(a.default)("External")),e.forced&&c.push(n.i(a.default)("Forced"))):"audio"===l&&u&&(c.push(n.i(s.a)(u)),e.channels&&c.push(n.i(o.a)(e.channels))),c.length?t+" ("+c.join(" ")+")":t}Object.defineProperty(t,"__esModule",{value:!0});var a=n(4),r=n(90),s=n(832),o=n(555);t.default=i},function(e,t,n){"use strict";function i(e,t){
if(null===e||void 0===e||o()(e))return"";var n=parseInt(e,10),i=l[t||"h264"];return r()(n)&&r()(i)?(n/i).toFixed(1):String(e)}var a=n(2568),r=n.n(a),s=n(2570),o=n.n(s),l={h264:10,hevc:30};t.a=i},function(e,t,n){"use strict";function i(e){if(e.index===r.a.CONVERT_AUTOMATICALLY)return n.i(a.default)("Convert Automatically");if(e.index===r.a.ORIGINAL)return n.i(a.default)("Original");var t=e.bitrate||e.maxVideoBitrate,i=e.videoResolution;if(!t&&!i)return n.i(a.default)("Unknown");var l=[]
;if(t&&l.push(n.i(s.default)(t)),i&&(!t||t>=1e3)){var u=r.a.getResolutionFromSize(i);l.push(n.i(o.default)(u))}var c=l.join(", ");return e.description?c+" "+e.description:c}Object.defineProperty(t,"__esModule",{value:!0});var a=n(4),r=n(113),s=n(346),o=n(281);t.default=i},function(e,t,n){"use strict";function i(e){return e instanceof a.a.Collection?e:e.getCollection?e.getCollection():e.has("childrenKey")?e.get("children").getCollection():void 0}var a=n(55);t.a=i},function(e,t,n){"use strict"
;function i(e,t,n){if(!e&&!t)return{resolution:"",description:"",descriptionExtra:""};var i=a(e,t);return{resolution:i+"p",description:r(i),descriptionExtra:s(i,n)}}function a(e,t){var n=8*Math.round(t/8),i=8*Math.round(e/8*(9/16));return Math.max(n,i)}function r(e){return e>2560?"8K":e>1100?"4K":e>576?"HD":""}function s(e,t){
return e<=576||e>1100||!t?"":t<=2e3?"":t<=3e3?n.i(o.default)("Medium"):t<=4e3?n.i(o.default)("High"):t<=8e3?"":t<=1e4?"":t<=12e3?n.i(o.default)("Medium"):n.i(o.default)("High")}var o=n(4);t.a=i},function(e,t,n){"use strict";function i(e,t){return"anvergo"===t?"Anvergo":"tv-old"===e?"tv":e}t.a=i},function(e,t,n){"use strict";function i(e){var t={};return e.isDirectPlay?(t.videoDecision=a,t.audioDecision=a,t.subtitleDecision=a):(t.videoDecision=e.canDirectStreamVideo?r:s,
t.audioDecision=e.canDirectStreamAudio?r:s,t.subtitleDecision=e.useSoftSubtitles?r:s),t}t.a=i;var a="direct",r="copy",s="transcode"},function(e,t,n){"use strict";function i(e){if(null!=e){var t=void 0;return t=e>=10240?512:e>=1024?256:e>=512?128:e>=256?64:32,n.i(a.a)(e,t)}}var a=n(843);t.a=i},function(e,t,n){"use strict";function i(e){if(null==e)return"";try{return decodeURIComponent(e)}catch(t){return a.a.warn("[Parser] Unable to parse encoded string"),e}}var a=n(29);t.a=i},function(e,t,n){
"use strict";function i(e){return null==e||""===e?0:window.parseFloat(e)}t.a=i},function(e,t,n){"use strict";function i(e){try{return JSON.parse(e)}catch(n){var t=r.a.isString(e)?e.substring(0,50):"no response";return s.a.warn("[Parser] Unable to parse JSON: "+n.message+" ("+t+")"),{}}}var a=n(3),r=n.n(a),s=n(29);t.a=i},function(e,t,n){"use strict";function i(e){return e?r.a.isArray(e)?e:e.split(","):[]}var a=n(3),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e,t){if(t||(t={}),
r.a.isObject(e))return e;if(!r.a.isString(e))return{};if(!(e=e.trim().replace(/^(\?|#)/,"")))return{};var n=t.separator||"&";return e.split(n).reduce(function(e,t){var n=t.split("="),i=n[0],a=n[1];try{i=decodeURIComponent(i),a=void 0===a?null:decodeURIComponent(a),e.hasOwnProperty(i)?Array.isArray(e[i])?e[i].push(a):e[i]=[e[i],a]:e[i]=a}catch(e){s.a.warn("[Parser] Unable to decode query string at "+i)}return e},{})}var a=n(3),r=n.n(a),s=n(29);t.a=i},function(e,t,n){"use strict";function i(e){
return null==e?"":e.toString()}t.a=i},function(e,t,n){"use strict";function i(e,t,n){r.a.isArray(t)||(t=[t]);var i=t.join("|"),a=new RegExp("<("+i+")","g"),s=new RegExp("</("+i+")>","g");return e.replace(a,"<"+n+' elementName="$1"').replace(s,"</"+n+">")}var a=n(3),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){if(!e||!e._children)return e;var t=r.a.clone(e),n=t._children;return r.a.isArray(n)&&(n.forEach(function(e){var n=e._elementType;if(e._elementType=null,e.elementName=n,n){
var a=o[n]||n,s=t[a],l=i(e);s?r.a.isArray(s)?s.push(l):t[a]=[s,l]:t[a]=l}}),t._children=null),t}var a=n(3),r=n.n(a),s=n(82),o=r.a.reduce(s.b,function(e,t){return e[t]="Metadata",e},{});t.a=i},function(e,t,n){"use strict";function i(e){return e?"1":"0"}t.a=i},function(e,t,n){"use strict";function i(e){return e.join(",")}t.a=i},function(e,t,n){"use strict";function i(e,t){return r()(e||{}).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join(t&&t.separator||"&")}
var a=n(65),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.availableQualities,n=e.transcodeServer,i=e.currentDecision,l=e.currentBandwidth,u=e.mediaItem,c=e.canPlayAdaptiveBitrate;if(!u)return[];var d=[],p=n.maxUploadBitrate,h=u.bitrate,f=!p||h&&p>h,v=!i||i.canPlayOriginalQuality;return f&&v&&d.push(a(u)),c&&d.push(r(i,l)),f&&!v&&d.push(s(u)),d.push.apply(d,t.map(o).reverse()),d}function a(e){var t=l(e.width,e.height,e.bitrate),i=u(t);return{index:f.a.ORIGINAL,
explicitQuality:!1,conversionDescriptionSummary:p([n.i(h.default)("Original"),d(i)]),conversionDescription:n.i(h.default)("Play Original Quality"),conversionDescriptionExtra:i}}function r(e,t){var i={index:f.a.CONVERT_AUTOMATICALLY,explicitQuality:!1,conversionDescription:n.i(h.default)("Convert Automatically")};if(e&&e.qualityIndex===f.a.CONVERT_AUTOMATICALLY&&t){var a=u({bitrate:n.i(v.default)(t.bandwidth),resolution:t.resolution})
;i.conversionDescriptionSummary=n.i(h.default)("Auto (Now: {bitrateWithResolution})",{bitrateWithResolution:a}),i.conversionDescriptionExtra=n.i(h.default)("Now: {bitrateWithResolution}",{bitrateWithResolution:a})}else i.conversionDescriptionSummary=n.i(h.default)("Convert Automatically");return i}function s(e){var t=l(e.width,e.height,e.bitrate),i=c(t),a=i?n.i(h.default)("Convert to"):n.i(h.default)("Convert");return{index:f.a.ORIGINAL,explicitQuality:!1,
conversionDescriptionSummary:n.i(h.default)("Convert (Maximum)"),conversionDescription:p([a,i,d(n.i(h.default)("Maximum"))]),conversionDescriptionExtra:t.bitrate}}function o(e){var t=e.videoResolution.split("x"),i=l(t[0],t[1],e.bitrate),a=u(i),r=c(i);return{index:e.index,explicitQuality:!0,conversionDescriptionSummary:p([n.i(h.default)("Convert"),d(a)]),conversionDescription:p([n.i(h.default)("Convert to"),r]),conversionDescriptionExtra:i.bitrate}}function l(e,t,i){var a=n.i(m.a)(e,t,i);return{
bitrate:n.i(v.default)(i),resolution:a.resolution,resolutionDescription:a.description,resolutionDescriptionExtra:d(a.descriptionExtra)}}function u(e){var t=p([e.resolution,e.resolutionDescription]);return e.bitrate?p([e.bitrate,t],", "):t}function c(e){return p([e.resolution,e.resolutionDescription,e.resolutionDescriptionExtra])}function d(e){return e&&0!==e.length?"("+e+")":""}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e.filter(function(e){return e
}).join(t)}var h=n(4),f=n(411),v=n(346),m=n(1435);t.a=i},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(411),s=a.a.extend({},r.a,{type:"music",qualities:{bitrate:[96,128,192,320]},getNearestIndexToBitrate:function(e){return this.getNearestIndex(this.qualities.bitrate,e)}});t.a=s},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(4),s=n(411),o=a.a.extend({},s.a,{type:"photo",qualities:{photoResolution:["720x480","1280x720","1920x1080","3840x2160"],photoQuality:[24,49,74,99],
title:function(){return[n.i(r.default)("Low"),n.i(r.default)("Medium"),n.i(r.default)("High"),n.i(r.default)("Highest")]}},getNearestIndexToQuality:function(e){return this.getNearestIndex(this.qualities.photoQuality,e)}});t.a=o},function(e,t,n){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.get("accessToken");if(!e.supports("transientToken")||/^transient-/.test(i))return r.a.Deferred().resolve(i).promise();var a={type:t.type||"delegation",
scope:t.scope||"all"},l=o.join("/security/token",a);return r.a.ajax(e.getXHROptions(l)).promise().then(function(e){return n.i(s.a)(e).token||r.a.Deferred().reject().promise()})}var a=n(10),r=n.n(a),s=n(410),o=n(19);t.a=i},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(4),c=n(60),d=n(181),p=n(1429),h=n(825),f=n(826),v=n(830),m=n(272),g=n(570),y=n(29),b=n(844),S=n(199),I={getPlayerDecision:function(e){s.a.defaults(e,{offset:0,minVersionForDASH:S.a.dash,
minVersionForStreamingMKV:S.a.streamingMKV,transcoderOptions:{}});var t={playbackSessionID:e.playbackSessionID||n.i(g.a)(),transcodeSessionID:e.transcodeSessionID||n.i(g.a)(),offset:e.offset},i=this.populateMedia(t,e);return i=i.then(s.a.bind(function(){return this.resolveMedia(t,e)},this)),i=i.then(function(){return l.a.when(t.url)}),i=i.then(function(e){return t.url=e,t})},populateMedia:function(e,t){var i=l.a.Deferred(),a=s.a.bind(i.resolve,i,e)
;return t.requireAnalysis&&n.i(p.a)(t.item)?t.item.fetch({scope:"player"}).always(a):s.a.defer(a),i.promise()},resolveMedia:function(e,t){var n=s.a.extend({transcodeServer:this.resolveTranscodeServer(t)},t),i=v.a.getMediaDecision(n);if(n.originalQualityDecisionOptions){var r=v.a.getMediaDecision(a()({},n,n.originalQualityDecisionOptions));i.canPlayOriginalQuality=r.canDirectPlay||r.canDirectStreamVideo}else i.canPlayOriginalQuality=i.canDirectPlay||i.canDirectStreamVideo
;var o=i.media,u=l.a.Deferred();return s.a.extend(e,i),o?e.canPlay?"webkit"===o.protocol?(y.a.warn("[PDE] Webkit videos are not supported"),e.redirect=!0,u.reject(e).promise()):"embed"===o.protocol?(y.a.warn("[PDE] An embed is required"),e.embed=!0,e.part=s.a.first(o.Part),u.reject(e).promise()):this.resolvePart(e,t):(y.a.warn("[PDE] Unable to play item;",e.errorMessage),u.reject(e).promise()):this.resolveUrls(e,t)},resolveTranscodeServer:function(e){var t=e.item.server,n=e.fallbackServer
;if(t===n||!n||!n.get("isConnected"))return t;var i;return e.type===d.a.types.VIDEO?i="transcoderVideo":e.type===d.a.types.MUSIC&&(i="transcoderAudio"),i&&!t.get(i)&&n.get(i)?n:t},resolvePart:function(e,t){return t.part?e.part=t.part:t.offset?1===e.media.Part.length?e.part=e.media.Part[0]:(e.part=n.i(h.a)(e.media,t.offset),e.offset=n.i(f.a)(e.media,e.part,t.offset)):e.part=s.a.first(e.media.Part),e.media.indirect?this.resolveIndirect(e,t):this.resolveUrls(e,t)},resolveIndirect:function(e,t){
n.i(y.a)("[PDE] Resolving indirect item");var i=t.item.resolveIndirect(e.media,e.part),a=s.a.bind(function(){return this.resolveMedia(e,t)},this),r=s.a.bind(function(){return l.a.Deferred().reject(e).promise()},this);return i=i.then(a,r)},resolveUrls:function(e,t){var n=l.a.Deferred();return this.validatePlayerType(e,t)?(this.validateSoftSubtitles(e,t)?e.subtitlesUrl=this.resolveSubtitlesUrl(e,t):e.useSoftSubtitles&&(e.useSoftSubtitles=!1),y.a.group("[PDE] Player decision"),
y.a.info("Player:",e.playerType),y.a.info("Protocol:",e.protocol),y.a.info("Direct Play:",e.canDirectPlay),y.a.groupEnd(),e.canDirectPlay?e.url=this.resolveDirectPlayUrl(e,t):e.url=this.resolveTranscoderUrl(e,t),this.resolveDecision(e,t)):n.reject(e).promise()},validatePlayerType:function(e,t){return e.media&&t.type&&t.type!==d.a.types.PHOTO?e.canDirectPlay?("hls"===e.media.protocol?(e.protocol="hls",e.playerType=t.hasNativeHLS?"html":"flash"):(e.protocol="http",
e.playerType="flv"===e.media.container?"flash":"html"),!0):this.validatePlayerTranscodeProtocol(e,t):(e.protocol="http",e.playerType="html",!0)},validatePlayerTranscodeProtocol:function(e,t){var i,a=e.transcodeServer,r=t.transcodeProtocol,s=!0,o=!0,l=!0;if(r&&(s="dash"===r,o="http"===r,l="hls"===r),l&&t.hasNativeHLS)return e.protocol="hls",e.playerType="html",!0;if(o&&t.hasStreamingMKV){if(a.isVersionOrNewer(t.minVersionForStreamingMKV))return e.protocol="http",e.playerType="html",!0
;i=t.minVersionForStreamingMKV}if(s&&t.hasDASH){if(a.isVersionOrNewer(t.minVersionForDASH))return e.protocol="dash",e.playerType="html",!0;i=t.minVersionForDASH}return t.type===d.a.types.MUSIC?(e.protocol="http",e.playerType="html",!0):l&&t.hasFlash?(e.protocol="hls",e.playerType="flash",!0):(e.errorMessage=i?n.i(u.default)("Please update Plex Media Server. This feature requires {1} or later.",i):n.i(u.default)("Streaming this media is unsupported."),!1)},validateSoftSubtitles:function(e,t){
return e.useSoftSubtitles&&"html"!==e.playerType?(y.a.warn("[PDE] Only the HTML player supports soft subtitles"),!1):e.useSoftSubtitles},resolveDirectPlayUrl:function(e,t){var n=t.item,i=e.part,a={"X-Plex-Session-Identifier":e.playbackSessionID};if(i){var r=/(googlevideo|youtube).com/.test(i.key);return"flv"===i.container&&r&&i.postURL?i.postURL:n.server.resolveUrl(i.key,{appendHeaders:!0,params:a})}return n.server.resolveUrl(n.get("key"),{appendHeaders:!0,params:a})},
resolveTranscoderUrl:function(e,t,i){var a=t.item,r=e.media,o=e.part,l=t.transcoderOptions;s.a.isFunction(l)&&(l=l(e)),l=s.a.extend({},e.transcoderQualityOptions,l,{"X-Plex-Session-Identifier":e.playbackSessionID,session:e.transcodeSessionID,protocol:e.protocol,directPlay:e.canDirectPlay?1:0,offset:e.offset/1e3});var u=t.subtitlesBurnLevel;t.type===d.a.types.VIDEO&&(u===m.a.NEVER?l.subtitles=e.canDirectPlay?"none":"auto":e.useSoftSubtitles?(l.subtitles="auto",
u===m.a.AVOID&&(l.advancedSubtitles="text")):l.subtitles="burn");var c=t.profileExtra;s.a.isFunction(c)&&(c=c(e)),l["X-Plex-Client-Profile-Extra"]=c,("hls"===l.protocol&&!t.useOffsetHLS||"dash"===l.protocol)&&(n.i(y.a)("[PDE] DASH and HLS should seek forward by default, offset=0"),delete l.offset),"hls"===l.protocol&&t.useOffsetHLS&&(e.useOffsetHLS=!0,l.offset&&(n.i(y.a)("[PDE] HLS started with an offset, copyts=0"),l.copyts=0)),"http"===l.protocol&&(t.type===d.a.types.MUSIC?(e.useOffsetHTTP=!0,
l.copyts=0):l.copyts=1),"http"!==l.protocol||e.canDirectPlay||(l["X-Plex-Chunked"]=1),s.a.each(s.a.keys(l),function(e){null==l[e]&&delete l[e]});var p=t.type,h=t.transcoder,f=e.transcodeServer;if(p===d.a.types.VIDEO)return h.video(f,a,r,o,l,i);if(p===d.a.types.MUSIC)return h.music(f,a,l,i);if(p===d.a.types.PHOTO){l.fallbackServer=t.fallbackServer;var v="photo"===a.get("type")?a.getMediaKey():a.get("thumb");return h.image(f,v,l)}},resolveSubtitlesUrl:function(e,t){
var n=this.resolveTranscoderUrl(e,t),i=n.substring(n.indexOf("?"));return e.transcodeServer.resolveUrl("/video/:/transcode/universal/subtitles"+i)},resolveDecision:function(e,t){var i=e.transcodeServer,a=l.a.Deferred();if(t.type===d.a.types.PHOTO||!i.supports("decisionEndpoint"))return a.resolve(e).promise();var r=s.a.clone(e);this.validatePlayerTranscodeProtocol(r,t);var o=this.resolveTranscoderUrl(r,t,"decision"),u=l.a.ajax(i.getXHROptions(o,{timeout:2e3}));return u.done(function(t){
var i=c.a.parseXML(t);i.generalDecisionCode&&(e.generalDecisionCode=c.a.parseInteger(i.generalDecisionCode),e.generalDecisionText=i.generalDecisionText),i.mdeDecisionCode&&(e.mdeDecisionCode=c.a.parseInteger(i.mdeDecisionCode),e.mdeDecisionText=i.mdeDecisionText),i.transcodeDecisionCode&&(e.transcodeDecisionCode=c.a.parseInteger(i.transcodeDecisionCode),e.transcodeDecisionText=i.transcodeDecisionText),n.i(b.a)(e)?a.reject(e):a.resolve(e)}),u.fail(function(){
y.a.warn("[PDE] Player decision failed; the transcode server may be a slow or outdated"),a.resolve(e)}),a.promise()}};t.a=I},function(e,t,n){"use strict";n(33),n(408),n(846)},function(e,t,n){"use strict";n(33)},function(e,t,n){"use strict";n(33)},function(e,t,n){"use strict";n(33)},function(e,t,n){"use strict";n(33)},function(e,t,n){"use strict";function i(){return"windowskonvergo"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a).platformID}var a=n(33);t.a=i},function(e,t,n){
"use strict";n(408)},function(e,t,n){"use strict";n(33)},function(e,t,n){"use strict";n(33)},function(e,t,n){"use strict";n(33)},function(e,t,n){"use strict";n(33)},function(e,t,n){"use strict";n(33)},function(e,t,n){"use strict"},function(e,t,n){"use strict";n(33),n(848),n(849)},function(e,t,n){"use strict";n(33)},function(e,t,n){"use strict";n(33)},function(e,t,n){"use strict";n(408)},function(e,t,n){"use strict";n(408)},function(e,t,n){"use strict";n(33),n(564),n(415)},function(e,t,n){
"use strict";n(33),n(564),n(416)},function(e,t,n){"use strict";n(33)},function(e,t,n){"use strict";n(33)},function(e,t,n){"use strict";n(33),n(565),n(567)},function(e,t,n){"use strict";n(33),n(565),n(566)},function(e,t,n){"use strict";n(33),n(566),n(568)},function(e,t,n){"use strict";n(33),n(567),n(568)},function(e,t,n){"use strict";n(33)},function(e,t,n){"use strict";n(33)},function(e,t,n){"use strict";function i(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)}t.a=i
},function(e,t,n){"use strict";function i(){return n.i(a.a)({mimeType:"application/x-mpegURL"})}var a=n(1485);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.mimeType,n=e.codecs,i=s()(e,["mimeType","codecs"]);if(!t)return"";var a=[t];if(n&&a.push('codecs="'+n+'"'),i)for(var r in i)a.push(r+'="'+i[r]+'"');return a.join("; ")}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(arguments[1],i(e)),a=n.i(o.a)("video",!0),r=a.canPlayType(t)
;return e.codecs?"probably"===r:"probably"===r||"maybe"===r}var r=n(14),s=n.n(r),o=n(543);t.a=a},function(e,t,n){"use strict";function i(e){var t=r.a.Deferred();return e&&e.then?e.then(t.reject,t.reject):t.reject(e),t.promise()}var a=n(10),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){var t=r.a.Deferred();return e.then(t.resolve,t.reject,t.notify),{promise:t.promise(),cancel:function(){t.reject({isCanceled:!0})}}}var a=n(10),r=n.n(a);t.a=i},function(e,t,n){"use strict"
;function i(e){if(!e.length)return o.a.Deferred().reject().promise();var t=o.a.Deferred(),n=e.length;return r.a.each(e,function(e){e.done(function(){n--,t.resolveWith(this,arguments)}).fail(function(){0===--n&&t.reject()})}),t.promise()}var a=n(3),r=n.n(a),s=n(10),o=n.n(s);t.a=i},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(10),s=n.n(r),o=n(13),l=n(15),u=n(59),c=n(80),d=n(208),p=n(49),h=n(71),f=n(223),v=u.a.extend({lastModified:null,eTag:null,mixins:h.a,url:function(){
var e=o.a("appModel"),t=e.get("user"),n="/sub/"+this.requestType+"/"+t.id+"/"+e.get("clientID"),i=new f.a({scheme:"websockets"===this.requestType?"wss":"https",address:"pubsub.plex.tv"});return this.server.resolveUrl(n,{connection:i,appendToken:!0})},initialize:function(e){a.a.bindAll(this,"onSocketOpen","onSocketClose","onSocketError","onSocketMessage","onPollSuccess","onPollError"),this.server=e.server},open:function(){return(this.socket||this.pollRequest)&&this.close(),
c.a.hasWebSocket?(this._deferred=s.a.Deferred(),this.requestType="websockets",this.socket=new window.WebSocket(a.a.result(this,"url")),this.socket.onopen=this.onSocketOpen,this.socket.onclose=this.onSocketClose,this.socket.onerror=this.onSocketError,this.socket.onmessage=this.onSocketMessage,this._deferred.promise()):this.poll()},close:function(){this.pollRequest&&(d.a.abort(this.pollRequest.rid),this.pollRequest=null),this._deferred&&"pending"===this._deferred.state()&&this._deferred.reject(),
this.socket&&(this.socket.onopen=null,this.socket.onclose=null,this.socket.onerror=null,this.socket.onmessage=null,this.socket.close(),this.socket=null)},poll:function(){this.requestType="longpolling",this.pollUrl=a.a.result(this,"url");var e=this.server.getXHROptions(this.pollUrl);return e.headers["If-Modified-Since"]=this.lastModified?this.lastModified:"Thu, 01 Jan 1970 00:00:00 GMT",this.eTag&&(e.headers["If-None-Match"]=this.eTag),
this.pollRequest=s.a.ajax(e).done(this.onPollSuccess).fail(this.onPollError),this.pollRequest.promise()},handleResponse:function(e){if(e){var t=p.a.parseXML(e);if(a.a.isObject(t)){var n=t.command;l.a.trigger("cloudServer:"+n,t)}}},onSocketOpen:function(e){this.server.set("hasEventConnection",!0),this.trigger("open",this.server,e),this._deferred.resolve(this.server,e)},onSocketClose:function(e){this.close(),this.server.set("hasEventConnection",!1),this.trigger("close",this.server,e),
this._deferred.reject(this.server,e)},onSocketError:function(e){this.close(),this.trigger("error",this.server,e),this._deferred.reject(this.server,e)},onSocketMessage:function(e){this.handleResponse(e.data)},onPollSuccess:function(e,t,n){this.trigger("open",this.server,e),this.lastModified=n.getResponseHeader("Last-Modified"),this.eTag=n.getResponseHeader("ETag"),this.handleResponse(e),this.poll()},onPollError:function(e){this.pollRequest.aborting||this.trigger("error",this.server,e)}});t.a=v
},function(e,t,n){"use strict";function i(e){var t={};for(var n in e){t[e[n]]={relationClass:r.a}}return a.a.extend({name:"EntitiesModel",sessionRelations:t})}var a=n(17),r=n(1246);t.a=i},function(e,t,n){"use strict";function i(e,t){return n.i(p.a)(e)?a(e,t):d.a.isArray(e)?r(e,t):e===t}function a(e,t){for(var n=e.possibleEntityContainers,a=n?n.length:0,r=0;r<a;r++){if(i(e[n[r]],t))return!0}return!1}function r(e,t){for(var n=0,a=e.length;n<a;n++){if(i(e[n],t))return!0}return!1}function s(e,t){
return e+1>=t?0:e+1}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null!=t.budget?t.budget:f,r=n.i(h.a)(),o=e.entities,l=u()(o),c=l.length,d={};for(g=v,y=m;v<c;){for(var p=l[v],b=o[p],S=u()(b),I=S.length,M=s(v,c);m<I;){var C=S[m],w=s(m,I);if(i(e,C)||(d[p]||(d[p]=[]),d[p].push(C)),M===g&&w===y)return v=M,m=w,d;if(n.i(h.a)()-r>=a)return v=M,m=w,d;m++}if(v=M,m=0,v===g&&m===y)return d}return d}var l=n(65),u=n.n(l),c=n(3),d=n.n(c),p=n(344),h=n(845);t.a=o
;var f=1e3/60,v=0,m=0,g=void 0,y=void 0},function(e,t,n){"use strict";function i(e){return e?e.replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}):""}t.a=i},function(e,t,n){"use strict";function i(e){return n.i(r.a)(n.i(a.a)(e).join("_"))}var a=n(1495),r=n(348);t.a=i},function(e,t,n){"use strict";function i(e){for(var t="",n=0,i=e.length;n<i;n++){var a=e.charAt(n),r=a.toUpperCase();t+=0===n?r:a===r?" "+r:a}return t}t.a=i},function(e,t,n){"use strict"
;function i(e){return e?e.match(/^[^A-Z]+|[A-Z]+(?![^A-Z])|[A-Z][^A-Z]+/g)||[]:[]}t.a=i},function(e,t,n){"use strict";function i(e){return e?r()("<p>"+e+"<p>").text():""}var a=n(10),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e,t){return n.i(a.default)(n.i(r.getLastSegment)(e||""),t)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(855),r=n(19);t.default=i},function(e,t,n){"use strict";function i(e){var t=e;return r()(o).forEach(function(e){
t=t.replace(new RegExp(n.i(s.a)("&"+e+";"),"g"),o[e])}),t}var a=n(65),r=n.n(a),s=n(207);t.a=i;var o={amp:"&",apos:"'","#x27":"'","#x2F":"/","#39":"'","#47":"/",lt:"<",gt:">",nbsp:" ",quot:'"'}},function(e,t,n){"use strict";function i(){return a.replace(r,s)}var a="00000000-0000-4000-8000-000000000000",r=/0/g,s=function(){return(0|16*Math.random()).toString(16)};t.a=i},function(e,t,n){"use strict";function i(e){var t=r.a.reject(e.tags,function(e){return!e.tag
}),i=e.model,a=i.section,l=a&&a.get("allowAdvancedFilters"),u=n.i(o.b)(i.get("type")),c=e.separator||", ",d="";if(t&&t.length){var p=e.maxTags||t.length;p>t.length&&(p=t.length);for(var h=0;h<p;h++)d+=function(t){var i=r.a.escape(n.i(s.default)(t.tag,e.maxLen))
;return l&&t.id?'<a class="pivot-link" href="'+["#!/server/"+encodeURIComponent(a.server.id),"/section/"+encodeURIComponent(a.id),"/filter","/"+encodeURIComponent(u.id),"/"+encodeURIComponent(e.key),"/"+encodeURIComponent(t.id),"/"+encodeURIComponent(t.tag)].join("")+'">'+i+"</a>":i}(t[h]),h+1<p&&(d+=c)}return d}var a=n(3),r=n.n(a),s=n(854),o=n(30);t.a=i},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r={augmentDictionary:function(e,t){return t=t||{},a.a.reduce(e,function(e,n,i){
var s=(new Date).getTime(),o=a.a.isFunction(t.ttl)?t.ttl(i,n):t.ttl,l=a.a.isFunction(t.refresh)?t.refresh(i,n):t.refresh,u=a.a.isObject(n)?r.augmentObj(n,o,l,s):null;return u&&(e[i]=u),e},{})},augmentObj:function(e,t,n,i){var a=e._ttl;if(i=i||(new Date).getTime(),a){if(n)a.expireAt=i+t;else if(a.expireAt<=i)return null}else a={expireAt:i+t};return e._ttl=a,e}};t.a=r},function(e,t,n){"use strict";var i=n(4),a=n(241),r=["id","typeString"],s=n.i(a.a)(r,[{id:1,typeString:"trailer",title:function(){
return n.i(i.default)("Trailer")}},{id:2,typeString:"deletedScene",title:function(){return n.i(i.default)("Deleted Scene")}},{id:3,typeString:"interview",title:function(){return n.i(i.default)("Interview")}},{id:4,typeString:"musicVideo",title:function(){return n.i(i.default)("Music Video")}},{id:5,typeString:"behindTheScenes",title:function(){return n.i(i.default)("Behind the Scenes")}},{id:6,typeString:"scene",title:function(){return n.i(i.default)("Scene")}},{id:7,typeString:"liveMusicVideo",
title:function(){return n.i(i.default)("Live Music Video")}},{id:8,typeString:"lyricMusicVideo",title:function(){return n.i(i.default)("Lyric Music Video")}},{id:9,typeString:"concert",title:function(){return n.i(i.default)("Concert")}},{id:10,typeString:"featurette",title:function(){return n.i(i.default)("Featurette")}},{id:11,typeString:"short",title:function(){return n.i(i.default)("Short")}},{id:12,typeString:"other",title:function(){return n.i(i.default)("Other")}}]);t.a=s},function(e,t,n){
"use strict";var i=n(4),a=n(241),r=["key"],s=n.i(a.a)(r,[{key:"all",title:function(){return n.i(i.default)("All")}},{key:"unwatched",title:function(){return n.i(i.default)("Unwatched")}},{key:"newest",title:function(){return n.i(i.default)("Recently Released")}},{key:"recentlyAdded",title:function(){return n.i(i.default)("Recently Added")}},{key:"recentlyViewed",title:function(){return n.i(i.default)("Recently Viewed")}},{key:"recentlyViewedShows",title:function(){
return n.i(i.default)("Recently Viewed Shows")}},{key:"onDeck",title:function(){return n.i(i.default)("On Deck")}},{key:"folder",title:function(){return n.i(i.default)("By Folder")}}]);t.a=s},function(e,t,n){"use strict";function i(e,t){var i=n.i(r.a)(t,!0);if(!i)return e;var a=e.indexOf("?"),s=e.length;return(e+=a>-1?a<s-1?"&":"":"?")+i}function a(e,t){var n=t.type,a=t.filters,r=t.sort,o=t.limit,l=s.join(e),u={};return n&&(u.type=n),r&&(u.sort=r),o&&(u.limit=o),s.join(i(l,a),u)}
var r=n(816),s=n(19);t.a=a},function(e,t,n){"use strict";function i(e){function t(){window.document.body.removeChild(u),window.removeEventListener("message",n),clearTimeout(l)}function n(e){if(e.source===u.contentWindow){var n=void 0;try{n=JSON.parse(e.data)}catch(e){}n&&(s(n),t())}}var i=e.url,a=e.data,s=e.onMessage,o=e.timeout,l=setTimeout(function(){s({success:!1}),t()},o);window.addEventListener("message",n);var u=window.document.createElement("iframe");u.style.display="none",
u.src=i+"#"+encodeURIComponent(r()({data:a})),window.document.body.appendChild(u)}var a=n(146),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e,t,n){e.dataTypes.shift();var i,a=r.a.extend({},t,{skipCorsWithRedirect:!0,complete:null,error:null,success:null});return{send:function(e,s){a.error=function(e,t,i){r.a.extend(n,e),s(e.status,t,{alreadyConverted:e.responseText},e.getAllResponseHeaders())},a.success=function(e,l,u){r.a.extend(n,u);var c=u.getResponseHeader("Location")
;200===u.status&&c&&t&&!t.skipCorsLocationRequest?(a.url=c,i=o.a.ajax(a)):s(u.status,l,{alreadyConverted:u.responseText},u.getAllResponseHeaders())},i=o.a.ajax(a)},abort:function(){i&&i.abort()}}}var a=n(3),r=n.n(a),s=n(10),o=n.n(s);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.type,n=e.contentType,i=e.headers,a=e.allowHeadersInUrl,h=e.allowBlacklistedMethodHeaders;if(a&&(!l[t]||h)){var f={},v=!1;if(r.a.each(i,function(e,t){u[t]||(d.test(t)?(v=!0,f[t]=e,
delete i[t]):o.a.warn('Did not move header "%s" to query string. This can result in an unnecessary OPTIONS preflight request.',t))}),v){var m=e.url.match(p),g=m||[null,e.url,null],y=g[1],b=g[2],S=b?b.split("&"):[],I=r.a.partition(S,function(e){return d.test(e)}),M=I[0],C=I[1],w=e.data;"GET"===t&&w&&(C.push(r.a.isString(w)?w:s.stringifyParams(w)),delete e.data),M.forEach(function(e){var t=e.match(d);t&&delete f[t[1]]});var D=s.stringifyParams(f);D&&M.push(D),e.url=y+"?"+C.concat(M).join("&")}
n&&!c.test(n)&&o.a.warn('Sending %s request with Content-Type "%s". This can result in an unnecessary OPTIONS preflight request.',t,n)}}var a=n(3),r=n.n(a),s=n(19),o=n(29);t.a=i;var l={PUT:!0,DELETE:!0},u={Accept:!0,"Accept-Language":!0,"Content-Language":!0,"Content-Type":!0},c=/^(text\/plain|multipart\/form-data|application\/x-www-form-urlencoded)/,d=/(^X\-Plex\-[^=]+)/i,p=/(^[^\?]+)\?(.+$)/},function(e,t,n){"use strict";var i=n(4),a=n(283),r=a.a.extend({serializeData:function(){return{
title:n.i(i.default)("This channel is not responding.")}}});t.a=r},function(e,t,n){"use strict";var i=n(283),a=i.a.extend({initialize:function(e){this.title=e.title,this.subtitle=e.subtitle,this.message=e.message},serializeData:function(){return{title:this.title,subtitle:this.subtitle,message:this.message}}});t.a=a},function(e,t,n){"use strict";var i=n(4),a=n(283),r=a.a.extend({initialize:function(e){this.type=e.type||"404"},serializeData:function(){var e,t
;return"404"===this.type?(e=n.i(i.default)("You must be lost."),t=n.i(i.default)("This page doesn't exist.")):"server"===this.type?(e=n.i(i.default)("Media server not found."),t=n.i(i.default)("The server you're trying to access doesn't seem to exist.")):(e=n.i(i.default)("Media not found."),t=n.i(i.default)("The media you're trying to access doesn't seem to exist.")),{title:e,subtitle:t}}});t.a=r},function(e,t,n){"use strict";var i=n(283),a=i.a.extend({});t.a=a},function(e,t,n){"use strict"
;var i=n(4),a=n(283),r=a.a.extend({serializeData:function(){return{title:n.i(i.default)("No soup for you!"),subtitle:n.i(i.default)("The server you're trying to access doesn't want to let you in. Make sure you're signed in as a user with access to this server.")}}});t.a=r},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(4),s=n(15),o=n(283),l=o.a.extend({modelEvents:{"change:isResolved":"onResolvedChange"},serializeData:function(){var e,t,i=this.model,s=i.get("friendlyName")
;return i.get("cloud")?i.get("isDownForMaintenance")?(e=n.i(r.default)("Plex is down for maintenance."),t=n.i(r.default)("Don't worry, it'll be back soon.")):(e=n.i(r.default)("Plex is not reachable."),t=n.i(r.default)("Make sure your server has an internet connection and any firewalls or other programs are set to allow access.")):(e=n.i(r.default)("Server unavailable."),
t=s?n.i(r.default)("We couldn't reach \"{1}\". Make sure it's online and try again.",a.a.escape(s)):n.i(r.default)("We couldn't reach this server. Make sure it's online and try again.")),{title:e,subtitle:t}},onResolvedChange:function(e,t){t&&s.a.trigger("navigate:refresh")}});t.a=l},function(e,t,n){"use strict";var i=n(284),a=i.a.extend({setup:function(e){if(e.className&&this.$el.addClass(e.className),this.model=e.model,this.server=e.model.server,e.flag){var t=this.model.get("Media")
;this.flag=e.flag,t&&t.length&&(this.path=t[0][this.flag]),this.ignoreAttributeChanges||this.listenTo(this.model,"change:Media",this.onMediaChange)}else this.flag=e.modelAttribute,this.path=this.model.get(this.flag),this.ignoreAttributeChanges||this.listenTo(this.model,"change:"+this.flag,this.onChange);this.prefix=this.model.get("mediaTagPrefix"),this.version=this.model.get("mediaTagVersion"),this.path&&(this.url=this.getUrl(this.path)),this.setDimensions(e)},getUrl:function(e){
return this.prefix+this.flag+"/"+encodeURIComponent(e)+"?t="+this.version},onMediaChange:function(e,t){this.onChange(e,t&&t.length?t[0][this.flag]:null)}});t.a=a},function(e,t,n){"use strict";var i=n(7),a=n.n(i),r=n(9),s=n.n(r),o=n(8),l=n.n(o),u=n(0),c=(n.n(u),n(29)),d=function(e){function t(){var n,i,r;a()(this,t);for(var o=arguments.length,l=Array(o),u=0;u<o;u++)l[u]=arguments[u];return n=i=s()(this,e.call.apply(e,[this].concat(l))),i.onTick=function(){var e=Date.now()-i._initialMilliseconds
;i.props.onTick&&i.props.onTick(Math.floor(e/1e3))},r=n,s()(i,r)}return l()(t,e),t.prototype.componentDidMount=function(){this._initialMilliseconds=Date.now(),this._positionTimer=setInterval(this.props.onPositionUpdate,40),this._tickTimer=setInterval(this.onTick,1e3)},t.prototype.componentWillReceiveProps=function(e){var t=Math.abs(e.positionSeconds-this.props.positionSeconds)>1
;this.props.onSeek&&t&&(n.i(c.a)("[Player] Seek detected; seeking from "+this.props.positionSeconds+" to "+e.positionSeconds),this.props.onSeek(e.positionSeconds))},t.prototype.componentWillUnmount=function(){clearInterval(this._positionTimer),clearInterval(this._tickTimer)},t.prototype.render=function(){return null},t}(u.Component);t.a=d},function(e,t,n){"use strict";function i(){return r()("div",{className:l.a.plexImageContainer},void 0,r()("div",{className:l.a.plexImage}))}
var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2676)),l=n.n(o);t.a=i},function(e,t,n){"use strict";function i(e){switch(e){case 1:return n.i(v.default)("Network");case 2:return n.i(v.default)("Text");case 3:return n.i(v.default)("Media");case 4:return n.i(v.default)("Manifest");case 5:return n.i(v.default)("Streaming");case 6:return n.i(v.default)("DRM");case 7:return n.i(v.default)("Player");case 8:return n.i(v.default)("Cast");case 9:return n.i(v.default)("Storage")}}
var a=n(6),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=n.n(p),f=n(3450),v=(n.n(f),n(4)),m=n(29),g=n(862),y=1,b=2,S=!1,I=function(e){function t(n,a){o()(this,t);var r=u()(this,e.call(this,n,a));return r.onElementChange=function(e){r._shaka=new f.Player(e),r._shaka.addEventListener("buffering",r.onBufferingChange),r._shaka.addEventListener("error",r.onError),r._shaka.configure({streaming:{bufferingGoal:70}}),
r._shaka.load(r.props.src,r.props.positionSeconds).then(null,function(e){r._shaka&&r.onError({detail:e})}),r.setState({isReadyToPlay:!0})},r.onHTMLError=function(){},r.onBufferingChange=function(e){e.buffering},r.onPositionMillisecondsChange=function(e){if(r.props.onSeekRangeChange&&r._shaka){var t=r._shaka.seekRange();r.props.onSeekRangeChange(1e3*t.start,1e3*t.end)}r.props.onPositionMillisecondsChange(e)},r.onError=function(e){
var t=e.detail,n=void 0===t?{}:t,a=n.severity,s=n.category,o=n.code,l=i(s),u=o+" ("+(l||"Unknown")+")";a===b?(m.a.warn("[Player] A critical Shaka error occurred: "+u+"; the player cannot recover"),r.props.onError&&r.props.onError({code:"shaka"+o,category:l})):a===y?m.a.warn("[Player] A Shaka error occurred: "+u+"; the player will attempt to recover"):m.a.warn("[Player] A Shaka error occurred: "+u+"; the severity is unknown")},S||(S=!0,f.polyfill.installAll()),r.state={isReadyToPlay:!1},r}
return d()(t,e),t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.positionSeconds,i=t.durationSeconds,a=t.onEnd;a&&i>0&&i&&n===i&&a()},t.prototype.componentWillUnmount=function(){this._shaka&&(this._shaka.removeEventListener("buffering",this.onBufferingChange),this._shaka.removeEventListener("error",this.onError),this._shaka.unload(),this._shaka=null)},t.prototype.render=function(){return h.a.createElement(g.a,r()({},this.props,{isReadyToPlay:this.state.isReadyToPlay,
onElementChange:this.onElementChange,onPositionMillisecondsChange:this.onPositionMillisecondsChange,onError:this.onHTMLError}))},t}(p.Component);I.defaultProps=r()({},g.a.defaultProps),t.a=I},function(e,t,n){"use strict";function i(e){var t=e.component,n=e.transitionProps,i=e.isLoaded,a=e.style,s=e.src,l=e.prevSrc,p=r()(e,["component","transitionProps","isLoaded","style","src","prevSrc"]);return u.a.createElement(c.a,n,i&&u.a.createElement(t,o()({style:d(2,a)},p,{key:s,src:s
})),!i&&l&&u.a.createElement(t,o()({style:d(1,a)},p,{key:l,src:l})))}var a=n(14),r=n.n(a),s=n(6),o=n.n(s),l=n(0),u=n.n(l),c=(n(864),n(861),n(350)),d=function(e,t){return o()({position:"absolute",zIndex:e},t)};t.a=i},function(e,t,n){"use strict";function i(e,t){return Math.random()*(t-e)+e}var a=n(2),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=(n.n(p),n(210)),f=n(2677),v=n.n(f),m=function(e){function t(n,i){o()(this,t);var a=u()(this,e.call(this,n,i))
;return a._setBarValues(n),a.state=a._getInitialState(!0),a}return d()(t,e),t.prototype.componentDidMount=function(){if(!this.props.isPaused)for(var e=0,t=this._bars.length;e<t;e++)this._setTransitionTimeout(e)},t.prototype.componentWillReceiveProps=function(e){var t=e.isPaused!==this.props.isPaused,n=e.width!==this.props.width,i=e.barCount!==this.props.barCount,a=e.barGap!==this.props.barGap;(t||n||i||a)&&(this._clearAllTransitionTimeouts(),this._setBarValues(e),
this.setState(this._getInitialState(e.isPaused)))},t.prototype.componentDidUpdate=function(e,t){if(!this.props.isPaused)for(var n=0,i=this._bars.length;n<i;n++){var a=this._bars[n];t[a]!==this.state[a]&&this._setTransitionTimeout(n)}},t.prototype.componentWillUnmount=function(){this._clearAllTransitionTimeouts()},t.prototype._setBarValues=function(e){var t=e.width,n=e.barCount,i=e.barGap,a=i*(n-1);this._barGap=i,this._barWidth=Math.floor((t-a)/n),this._bars=[]
;for(var r=0,s=n;r<s;r++)this._bars.push("bar"+r)},t.prototype._getInitialState=function(e){var t=this;return this._bars.reduce(function(n,i,a){return n[i]=t._getRandomStyle(a,e),n},{})},t.prototype._getRandomStyle=function(e,t){var n=e*(this._barWidth+this._barGap),a=t?.2:i(.2,1),r="scaleY("+a+")",s=i(300,500);return{left:n,width:this._barWidth,backgroundColor:this.props.barColor,transitionDuration:s+"ms",WebkitTransform:r,msTransform:r,transform:r}},
t.prototype._setTransitionTimeout=function(e){var t=this,i=this._bars[e],a=i+"TimeoutID",r=this.state[i],s=n.i(h.a)(r.transitionDuration)-100;this[a]=setTimeout(function(){var n;t.setState((n={},n[i]=t._getRandomStyle(e),n))},s)},t.prototype._clearAllTransitionTimeouts=function(){for(var e=0,t=this._bars.length;e<t;e++){var n=this._bars[e],i=n+"TimeoutID";clearTimeout(this[i])}},t.prototype.render=function(){var e=this,t=this.props,n=t.className,i=t.width,a=t.height;return r()("div",{
className:n,style:{width:i,height:a}},void 0,this._bars.map(function(t){return r()("div",{className:v.a.bar,style:e.state[t]},t)}))},t}(p.Component);m.defaultProps={className:v.a.equalizer,width:14,height:14,barColor:"#fff",barCount:3,barGap:2,isPaused:!0},t.a=m},function(e,t,n){"use strict";function i(e){var t=e.children,n=u()(e,["children"]);return d.a.createElement(p.a,r()({},n,{mode:"dropdown"}),o()("div",{},void 0,t))}
var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(209);t.a=i},function(e,t,n){"use strict";function i(e,t){var n=t.metricsPage;return o.a.createElement(l.a,r()({},e,{page:n}))}var a=n(6),r=n.n(a),s=n(0),o=n.n(s),l=n(209);i.contextTypes={metricsPage:s.PropTypes.string.isRequired},t.a=i},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(14),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(13),m=function(e){function t(i,a){l()(this,t)
;var r=c()(this,e.call(this,i,a));return r._mediaComponent=n.i(v.a)("mediaComponent"),r}return p()(t,e),t.prototype.render=function(){var e=this.props,t=e.isDecisionPending,n=e.isPaused,i=e.decisionUrl,r=e.decisionProtocol,o=(e.decisionError,s()(e,["isDecisionPending","isPaused","decisionUrl","decisionProtocol","decisionError"])),l=this._mediaComponent.getComponent({protocol:r});return t?null:f.a.createElement(l,a()({},o,{key:i,src:i,paused:n}))},t}(h.Component);t.a=m},function(e,t,n){
"use strict";function i(){return n.i(b.createSelector)(n.i(w.a)(),n.i(D.a)(),n.i(P.a)(),n.i(T.a)(),function(e,t,n,i){var a=e.playQueue,r=a.currentIndex,s=n.entityID,o=i&&v.a.findWhere(i.Stream,{streamType:I.a.get("audio").id,selected:!0}),l=i&&v.a.findWhere(i.Stream,{streamType:I.a.get("subtitles").id,selected:!0}),u={providerEntityID:e.providerEntityID,playQueueItemEntityID:s,isDecisionPending:!t,isPaused:e.isPaused,isBuffering:e.isBuffering,hasError:e.hasError,repeatAll:e.repeatAll,
repeatOne:e.repeatOne,positionSeconds:e.positionSeconds,durationSeconds:e.durationSeconds,seekStartSeconds:e.seekStartSeconds,seekEndSeconds:e.seekEndSeconds,currentIndex:r,lastIndex:a.playQueueTotalCount-1,audioStream:o,subtitleStream:l};return t&&(u.decisionMediaIndex=t.mediaIndex,u.decisionPartIndex=t.partIndex,u.decisionPartCount=t.partCount,u.decisionUrl=t.url,u.decisionProtocol=t.protocol,u.decisionError=t.error,u.isDecisionDirectPlay=t.isDirectPlay),u})}
var a=n(14),r=n.n(a),s=n(6),o=n.n(s),l=n(7),u=n.n(l),c=n(9),d=n.n(c),p=n(8),h=n.n(p),f=n(3),v=n.n(f),m=n(0),g=n.n(m),y=n(11),b=n(5),S=(n.n(b),n(66)),I=n(90),M=n(542),C=n(81),w=n(42),D=n(229),P=n(85),T=n(784),x=n(525),E=n(58),N=n(122),L=n(109),A=n(1522),k={dispatchMakeDecision:x.a,dispatchMakeNextDecision:x.b,dispatchRemoveDecision:x.c,dispatchUpdatePlayerDuration:N.i,dispatchUpdatePlayerPosition:N.j,dispatchUpdatePlayerSeekRange:N.k,dispatchUpdatePlayerBuffering:N.l,dispatchPause:N.e,
dispatchUpdatePlayerError:N.m,dispatchSendTimeline:N.n,dispatchTickPlayer:N.o,dispatchShowPostPlay:L.e,dispatchPlayNextItem:L.c,dispatchEndPlayback:E.d},_=function(e){function t(){var n,i,a;u()(this,t);for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o];return n=i=d()(this,e.call.apply(e,[this].concat(s))),i.onDurationMillisecondsChange=function(e){i.props.dispatchUpdatePlayerDuration({playerType:i.props.playerType,durationMilliseconds:e})},
i.onPositionMillisecondsChange=function(e){var t=i.props,n=t.playerType,a=t.dispatchUpdatePlayerPosition,r=t.onPositionMillisecondsChange,s=Math.floor(e/1e3);r(e),s!==i.props.positionSeconds&&a({playerType:n,positionSeconds:s})},i.onSeekRangeChange=function(e,t){var n=i.props,a=n.playerType,r=n.dispatchUpdatePlayerSeekRange,s=n.onSeekRangeChange,o=Math.floor(e/1e3),l=Math.floor(t/1e3);s&&s(e,t),o===i.props.seekStartSeconds&&l===i.props.seekEndSeconds||r({playerType:a,seekStartSeconds:o,
seekEndSeconds:l})},i.onTick=function(e){i.props.dispatchTickPlayer({playerType:i.props.playerType,secondsElapsed:e})},i.onBufferingChange=function(e){i.props.dispatchUpdatePlayerBuffering({playerType:i.props.playerType,isBuffering:e})},i.onPause=function(){i.props.dispatchPause({playerType:i.props.playerType})},i.onStreamChange=function(){
var e=i.props,t=e.playerType,n=e.playQueueItemEntityID,a=e.positionSeconds,r=e.qualityIndex,s=e.decisionMediaIndex,o=e.decisionPartIndex,l=e.dispatchMakeDecision;(0,e.dispatchRemoveDecision)({playerType:t,playQueueItemEntityID:n}),l({playerType:t,playQueueItemEntityID:n,mediaIndex:s,partIndex:o,qualityIndex:r,options:{offset:1e3*a}})},i.onError=function(e){var t=e.code,n=e.category,a=e.message,r=i.props,s=r.playerType,o=r.isDecisionDirectPlay,l=r.dispatchUpdatePlayerError
;o?i._itemRestarting(i.props,{allowDirectPlay:!1}):l({playerType:s,errorCode:t,errorCategory:n,errorMessage:a})},i.onEnd=function(){var e=i.props,t=e.playerType,n=e.playQueueItemEntityID,a=e.minSecondsForPostPlay,r=e.currentIndex,s=e.durationSeconds,o=e.qualityIndex,l=e.decisionMediaIndex,u=e.decisionPartIndex,c=e.decisionPartCount,d=e.dispatchMakeDecision,p=e.dispatchRemoveDecision,h=e.dispatchShowPostPlay,f=e.dispatchPlayNextItem,v=e.dispatchEndPlayback;u+1<c?(p({playerType:t,
playQueueItemEntityID:n}),d({playerType:t,playQueueItemEntityID:n,qualityIndex:o,mediaIndex:l,partIndex:u+1,options:{offset:0}})):i.props.repeatOne?(p({playerType:t,playQueueItemEntityID:n}),d({playerType:t,playQueueItemEntityID:n,qualityIndex:o,mediaIndex:l,partIndex:0,options:{offset:0}})):r<i.props.lastIndex||i.props.repeatAll?i.props.mediaType===S.a&&i.props.playerType===C.b&&s>=a?h({playerType:t}):f({playerType:t}):v({playerType:t})},a=n,d()(i,a)}return h()(t,e),
t.prototype.componentDidMount=function(){this._itemStarting(this.props)},t.prototype.componentDidUpdate=function(e){
var t=this.props,n=t.playQueueItemEntityID,i=t.playerType,a=t.mediaType,r=t.isDecisionPending,s=t.isPaused,o=t.isBuffering,l=t.hasError,u=t.positionSeconds,c=t.durationSeconds,d=t.preFetchSeconds,p=t.qualityIndex,h=t.dispatchMakeNextDecision,f=n!==e.playQueueItemEntityID,v=r!==e.isDecisionPending,m=p!==e.qualityIndex,g=s!==e.isPaused,y=o!==e.isBuffering,b=l!==e.hasError,I=c!==e.durationSeconds;return!m||f||v?f?(this._hasRefreshedPlayQueue=!1,this._hasPreFetched=!1,this._itemStopping(e),
this._itemStarting(this.props),void(a===S.c&&(this._itemProgressing(this.props,{shouldRefreshPlayQueue:!0}),this._hasRefreshedPlayQueue=!0))):(!this._hasPreFetched&&c-u<d&&(this._hasPreFetched=!0,h({playerType:i})),void(!v&&(!this._hasRefreshedPlayQueue||g||y||b||I)&&(this._itemProgressing(this.props,{shouldRefreshPlayQueue:!this._hasRefreshedPlayQueue}),this._hasRefreshedPlayQueue=!0))):void this._itemRestarting(this.props)},t.prototype.componentWillUnmount=function(){
this._itemStopping(this.props,{continuing:!1}),this.props.onPositionMillisecondsChange(0)},t.prototype._itemStarting=function(e){var t=e.mediaType,n=e.playerType,i=e.playQueueItemEntityID,a=e.qualityIndex;t!==S.c&&e.dispatchMakeDecision({playerType:n,playQueueItemEntityID:i,qualityIndex:a})},t.prototype._itemRestarting=function(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.mediaType,i=e.playerType,a=e.playQueueItemEntityID,r=e.decisionMediaIndex,s=e.decisionPartIndex,l=e.qualityIndex,u=e.positionSeconds;n!==S.c&&(e.dispatchRemoveDecision({playerType:e.playerType,playQueueItemEntityID:e.playQueueItemEntityID}),e.dispatchMakeDecision({playerType:i,playQueueItemEntityID:a,mediaIndex:r,partIndex:s,qualityIndex:l,options:o()({offset:1e3*u},t)}))},t.prototype._itemProgressing=function(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.shouldRefreshPlayQueue,i=void 0!==n&&n,a=e.playerType,r=e.mediaType,s=e.providerEntityID,o=e.playQueueItemEntityID,l=e.positionSeconds,u=e.durationSeconds,c=e.isPaused,d=e.decisionMediaIndex,p=e.decisionPartIndex,h=e.decisionPartCount;(0,e.dispatchSendTimeline)({playerType:a,providerEntityID:s,playQueueItemEntityID:o,shouldRefreshPlayQueue:i,options:r===S.a?{positionSeconds:l,durationSeconds:u,mediaIndex:d,partIndex:p,
partCount:h}:{state:c?M.c:M.e}})},t.prototype._itemStopping=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.continuing,i=void 0===n||n;e.dispatchSendTimeline({playerType:e.playerType,providerEntityID:e.providerEntityID,playQueueItemEntityID:e.playQueueItemEntityID,options:{state:M.a,continuing:i,positionSeconds:e.positionSeconds,durationSeconds:e.durationSeconds,mediaIndex:e.decisionMediaIndex,partIndex:e.decisionPartIndex,partCount:e.decisionPartCount}}),
e.mediaType!==S.c&&e.dispatchRemoveDecision({playerType:e.playerType,playQueueItemEntityID:e.playQueueItemEntityID})},t.prototype.render=function(){var e=this.props,t=(e.dispatchMakeDecision,e.dispatchRemoveDecision,e.dispatchUpdatePlayerDuration,e.dispatchUpdatePlayerPosition,e.dispatchUpdatePlayerSeekRange,e.dispatchUpdatePlayerBuffering,e.dispatchPause,e.dispatchUpdatePlayerError,e.dispatchTickPlayer,e.dispatchShowPostPlay,e.dispatchPlayNextItem,e.dispatchEndPlayback,
r()(e,["dispatchMakeDecision","dispatchRemoveDecision","dispatchUpdatePlayerDuration","dispatchUpdatePlayerPosition","dispatchUpdatePlayerSeekRange","dispatchUpdatePlayerBuffering","dispatchPause","dispatchUpdatePlayerError","dispatchTickPlayer","dispatchShowPostPlay","dispatchPlayNextItem","dispatchEndPlayback"]));return g.a.createElement(A.a,o()({},t,{onDurationMillisecondsChange:this.onDurationMillisecondsChange,onPositionMillisecondsChange:this.onPositionMillisecondsChange,
onSeekRangeChange:this.onSeekRangeChange,onTick:this.onTick,onBufferingChange:this.onBufferingChange,onStreamChange:this.onStreamChange,onError:this.onError,onEnd:this.onEnd,onPause:this.onPause}))},t}(m.Component);_.defaultProps={preFetchSeconds:10,minSecondsForPostPlay:300},t.a=n.i(y.b)(i,k)(_)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(181)),h=50,f=2,v=1e3,m=v/(h/f),g=function(e){function t(n,i){s()(this,t)
;var a=l()(this,e.call(this,n,i));return a.fadeOut=function(){var e=a.state,t=e.volume;e.currentThemeMusicUrl&&t>0?(a.setState(function(e){return{volume:e.volume-f}}),a._fadeOutTimeoutID=setTimeout(a.fadeOut,m)):a.reset()},a.onDurationMillisecondsChange=function(e){a._currentDurationMilliseconds=e},a.onPositionMillisecondsChange=function(e){var t=Math.floor(e/1e3);a.state.positionSeconds!==t&&a.setState({positionSeconds:t}),a._currentDurationMilliseconds-e<=v&&!a._fadeOutTimeoutID&&a.fadeOut()},
a.onEnd=function(){a.reset()},a._fadeOutTimeoutID=null,a.state={currentThemeMusicUrl:n.themeMusicUrl,volume:h,positionSeconds:0},a}return c()(t,e),t.prototype.componentWillReceiveProps=function(e){var t=e.themeMusicUrl;t?t!==this.props.themeMusicUrl&&this.reset(t):this.state.currentThemeMusicUrl&&!this._fadeOutTimeoutID&&(this._fadeOutTimeoutID=setTimeout(this.fadeOut))},t.prototype.componentWillUnmount=function(){this.reset()},t.prototype.reset=function(e){
this._fadeOutTimeoutID&&clearTimeout(this._fadeOutTimeoutID),this._fadeOutTimeoutID=null,this.setState({currentThemeMusicUrl:e,positionSeconds:0,volume:h})},t.prototype.render=function(){var e=this.state,t=e.currentThemeMusicUrl,n=e.positionSeconds,i=e.volume;if(!t)return null;var r=this.props.component;return a()(r,{type:p.a.elements.MUSIC,src:t,positionSeconds:n,volume:i,allowRecycleElement:!0,onDurationMillisecondsChange:this.onDurationMillisecondsChange,
onPositionMillisecondsChange:this.onPositionMillisecondsChange,onEnd:this.onEnd},t)},t}(d.Component);t.a=g},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(11)),h=n(5),f=(n.n(h),n(13)),v=n(1524),m=n.i(h.createSelector)(function(e){return e.ui.background},function(e){return e.ui.audioVideoPlayer.isOpen},function(e,t){return{isBackgroundPending:e.isBackgroundPending,themeMusicUrl:e.themeMusicUrl,
component:n.i(f.a)("mediaComponent").getComponent(),isPlayerOpen:t}}),g=function(e){function t(){return s()(this,t),l()(this,e.apply(this,arguments))}return c()(t,e),t.prototype.shouldComponentUpdate=function(e){return!e.isBackgroundPending},t.prototype.render=function(){var e=this.props,t=e.component,n=e.isPlayerOpen,i=e.themeMusicUrl;return n?null:a()(v.a,{themeMusicUrl:i,component:t})},t}(d.Component);t.a=n.i(p.b)(m)(g)},function(e,t,n){"use strict";function i(e,t){
var n=t.bubbles,i=t.captures;if(n||i){var a={};n&&(a.bubbled="on"+e),i&&(a.captured="on"+e+"Capture"),t.phasedRegistrationNames=a}else t.registrationName="on"+e;t.dependencies||(t.dependencies=[])}function a(e,t,n,i,a,r){var s=e[n];if(s){var o=t.getPooled(s,i,a,r);return(s.bubbles||s.captures?d.a.accumulateTwoPhaseDispatches:d.a.accumulateDirectDispatches)(o),o}}function r(e){var t={eventTypes:o.a.extend(!0,{},e.eventTypes)},n={};for(var r in t.eventTypes){
var s=t.eventTypes[r],l=r.charAt(0).toUpperCase()+r.slice(1),c="top"+l;i(l,s),n[c]=s,u.a.topLevelTypes[c]=c}return t.extractEvents=e.extractEvents||a.bind(null,n,e.Event||h.a),t}var s=n(10),o=n.n(s),l=n(3366),u=n.n(l),c=n(326),d=n.n(c),p=n(175),h=n.n(p);t.a=r},function(e,t,n){"use strict";function i(){function e(){var e=void 0;return i.length?e=i.shift():(e=n+o,o++),e}function t(e){delete a[e]}var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=[],a={},s={},o=0;return{
getKeys:function(n,o,l){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,c=arguments[4];r.a.each(a,function(e,t){var a=e.item;if(null===a)i.push(t);else{var d=r.a.isString(a)?a:a[c],p=l.indexOf(a)+u;(p<n||p>o)&&(i.push(t),delete s[d])}});for(var d=n;d<=o;d++){var p=l[d-u]||null,h=p&&(r.a.isString(p)?p:p[c]),f=p&&s[h];f||(f=e(),p&&(s[h]=f)),a[f]={index:d,item:p}}return i.forEach(t),i.length=0,r.a.extend({},a)}}}var a=n(3),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.activeConnection,i=!1,r=void 0;return e.isConnected&&t?r=e.isCloudSyncServer?n.i(a.default)("Cloud"):e.isOutOfDate?n.i(a.default)("Needs Update"):t.relay?n.i(a.default)("Indirect"):t.isPrivate?n.i(a.default)("Nearby"):n.i(a.default)("Remote"):e.isRelayed?r=n.i(a.default)("Indirect"):e.isUnavailable?r=n.i(a.default)("Unavailable"):e.isUnauthorized?r=n.i(a.default)("Unauthorized"):(i=!0,r=n.i(a.default)("Connecting")),{isConnecting:i,status:r,
statusWithSource:e.sourceTitle?r+" ("+e.sourceTitle+")":r}}var a=n(4);t.a=i},function(e,t,n){"use strict";function i(e,t){return Math.max(Math.min(e,t-1),0)}t.a=i},function(e,t,n){"use strict";function i(e){switch(e){case r.c:return n.i(a.default)("No seasons");case r.d:return n.i(a.default)("No episodes");case r.e:return n.i(a.default)("No albums");case r.f:return n.i(a.default)("No tracks");case r.g:return n.i(a.default)("No photos");default:return n.i(a.default)("No items")}}
var a=n(4),r=n(286);t.a=i},function(e,t,n){"use strict";function i(e){switch(e){case r.c:return n.i(a.default)("Unable to load seasons");case r.d:return n.i(a.default)("Unable to load episodes");case r.e:return n.i(a.default)("Unable to load albums");case r.f:return n.i(a.default)("Unable to load tracks");case r.g:return n.i(a.default)("Unable to load photos");default:return n.i(a.default)("Unable to load items")}}var a=n(4),r=n(286);t.a=i},function(e,t,n){"use strict";function i(e){switch(e){
case r.c:return n.i(a.default)("Loading seasons");case r.d:return n.i(a.default)("Loading episodes");case r.e:return n.i(a.default)("Loading albums");case r.f:return n.i(a.default)("Loading tracks");case r.g:return n.i(a.default)("Loading photos");default:return n.i(a.default)("Loading items")}}var a=n(4),r=n(286);t.a=i},function(e,t,n){"use strict";function i(e,t){switch(e){case r.c:return n.i(a.default)("Seasons");case r.d:
return 1===t?n.i(a.default)("1 Episode"):n.i(a.default)("{episodeCount} Episodes",{episodeCount:t});case r.e:return 1===t?n.i(a.default)("1 Album"):n.i(a.default)("{albumCount} Albums",{albumCount:t});case r.f:return 1===t?n.i(a.default)("1 Track"):n.i(a.default)("{trackCount} Tracks",{trackCount:t})}}var a=n(4),r=n(286);t.a=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"NONE",function(){return i}),n.d(t,"VERTICAL",function(){return a}),
n.d(t,"HORIZONTAL",function(){return r}),n.d(t,"OMNI",function(){return s}),n.d(t,"all",function(){return o});var i="none",a="vertical",r="horizontal",s="omni",o=[i,a,r,s]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"TOP_LEFT",function(){return i}),n.d(t,"TOP_CENTER",function(){return a}),n.d(t,"TOP_RIGHT",function(){return r}),n.d(t,"BOTTOM_LEFT",function(){return s}),n.d(t,"BOTTOM_CENTER",function(){return o}),n.d(t,"BOTTOM_RIGHT",function(){return l}),
n.d(t,"MIDDLE_LEFT",function(){return u}),n.d(t,"MIDDLE_RIGHT",function(){return c}),n.d(t,"all",function(){return d});var i="topLeft",a="topCenter",r="topRight",s="bottomLeft",o="bottomCenter",l="bottomRight",u="middleLeft",c="middleRight",d=[i,a,r,s,o,l,u,c]},function(e,t,n){"use strict";function i(e,t,n){return e.reduce(function(e,i){return e[i]={current:t[i],next:n[i]},e},{})}function a(e,t){var n=s()(e,t);return o.reduce(function(a,r){return n[r].length&&(a[r]=i(n[r],e,t)),a},{})}
var r=n(3451),s=n.n(r);t.a=a;var o=["added","deleted","updated"]},function(e,t,n){"use strict";function i(e,t,i){var a=o()({collapsed:!1,name:""},i),s=n.i(l.a)(e,t,i);if(r()(s).length){var u=a.name,c=a.collapsed,d="shallowCompare()"+(u?": "+u:""),p=window.console;c&&p.groupCollapsed?p.groupCollapsed(d):p.group(d);for(var h in s){p.group(h);for(var f in s[h]){var v=s[h][f];p.debug(f+":",v.current,"=>",v.next)}p.groupEnd()}p.groupEnd()}}Object.defineProperty(t,"__esModule",{value:!0})
;var a=n(65),r=n.n(a),s=n(6),o=n.n(s),l=n(1536);t.default=i},function(e,t,n){"use strict";var i=n(15),a=n(59),r=n(1945),s=a.a.extend({shortcuts:[{keys:["?"],fn:"help",group:"navigation",label:"Open Keyboard Shortcuts"},{keys:["esc"],fn:"escape",group:"navigation",label:"Close Modal or Menu"},{keys:["g d"],fn:"dashboard",group:"navigation",label:"Navigate to Dashboard"},{keys:["g s"],fn:"settings",group:"navigation",label:"Navigate to Settings"},{keys:["g a"],fn:"activity",group:"navigation",
label:"Navigate to Activity"},{keys:["g w"],fn:"watchLater",group:"navigation",label:"Navigate to Watch Later"},{keys:["g r"],fn:"recommendations",group:"navigation",label:"Navigate to Recommended"},{keys:["g u"],fn:"users",group:"navigation",label:"Navigate to Users"},{keys:["/"],fn:"search",group:"actions",label:"Focus Search"},{keys:["p"],fn:"playSelected",group:"actions",label:"Open Player"},{keys:["w"],fn:"toggleWatched",group:"actions",label:"Toggle as Watched/Unwatched"},{keys:["e"],
fn:"edit",group:"actions",label:"Edit Metadata"},{keys:["i"],fn:"info",group:"actions",label:"Get Info"},{keys:["shift+s"],fn:"save",group:"actions",label:"Save Changes"},{keys:["space","play_pause"],fn:"playPause",group:"player",label:"Play or Pause"},{keys:["play"],fn:"play",group:"player",label:"Play"},{keys:["pause"],fn:"pause",group:"player",label:"Pause"},{keys:["\\"],fn:"toggleFullScreen",group:"player",label:"Toggle FullScreen"},{keys:["down"],fn:"decreaseVolume",group:"player",
label:"Decrease Volume"},{keys:["up"],fn:"increaseVolume",group:"player",label:"Increase Volume"},{keys:[",","shift+left"],fn:"seekBackward",group:"player",label:"Seek Backward (10 seconds)"},{keys:[".","shift+right"],fn:"seekForward",group:"player",label:"Seek Forward (30 seconds)"},{keys:["[","alt+left"],fn:"stepBackward",group:"player",label:"Step Backward (10 minutes)"},{keys:["]","alt+right"],fn:"stepForward",group:"player",label:"Step Forward (10 minutes)"},{keys:["left","step_backward"],
fn:"skipPrevious",group:"player",label:"Skip to Previous Item"},{keys:["right","step_forward"],fn:"skipNext",group:"player",label:"Skip to Next Item"},{keys:["x"],fn:"stop",group:"player",label:"Close Player"}],triggerShortcut:function(e){var t="shortcut:"+e;if(i.a.hasListener(t))return i.a.trigger(t),!1},help:function(e){i.a.trigger("show:modal",new r.a({shortcuts:this.shortcuts}))},escape:function(e){i.a.trigger("shortcut:escape")},dashboard:function(e){i.a.trigger("navigate","dashboard")},
settings:function(e){i.a.trigger("navigate","settings")},activity:function(e){i.a.trigger("navigate","activity")},watchLater:function(e){i.a.trigger("navigate","userPlaylist",{key:"queue"})},recommendations:function(e){i.a.trigger("navigate","userPlaylist",{key:"recommendations"})},users:function(e){i.a.trigger("navigate","users")},search:function(e){return this.triggerShortcut("search")},playSelected:function(e){return this.triggerShortcut("playSelected")},toggleWatched:function(e){
return this.triggerShortcut("toggleWatched")},edit:function(e){return this.triggerShortcut("edit")},info:function(e){return this.triggerShortcut("info")},save:function(e){return this.triggerShortcut("save")},playPause:function(e){return this.triggerShortcut("playPause")},play:function(e){return this.triggerShortcut("play")},pause:function(e){return this.triggerShortcut("pause")},toggleFullScreen:function(e){return this.triggerShortcut("toggleFullScreen")},decreaseVolume:function(e){
return this.triggerShortcut("decreaseVolume")},increaseVolume:function(e){return this.triggerShortcut("increaseVolume")},seekBackward:function(e){return this.triggerShortcut("seekBackward")},seekForward:function(e){return this.triggerShortcut("seekForward")},stepBackward:function(e){return this.triggerShortcut("stepBackward")},stepForward:function(e){return this.triggerShortcut("stepForward")},skipPrevious:function(e){return this.triggerShortcut("skipPrevious")},skipNext:function(e){
return this.triggerShortcut("skipNext")},stop:function(e){return this.triggerShortcut("stop")}});t.a=s},function(e,t,n){"use strict";var i=n(13),a=n(19),r=n(59),s=n(1241),o=r.a.extend({mixins:s.a,constructor:function(){this.basePath=n.i(a.join)(["/web/","translations"]),this.translations={},n.i(i.d)("appModel").done(this.onAppModelRegistered.bind(this))},onAppModelRegistered:function(e){var t=this,n=e.get("settings");n&&n.on("change:language",function(e,n){t.load(n)})}});t.a=o},function(e,t,n){
"use strict";var i=n(3),a=n.n(i),r=n(1128),s=n.n(r),o=n(1198),l=n(207),u=a.a.extend({},o.a,{init:function(e){var t=new RegExp(n.i(l.a)("-plex-3.20.7-d87fe16"));s.a.config(e,{shouldSendCallback:function(e){return t.test(e.culprit)}})}});t.a=u},function(e,t,n){"use strict";var i=n(730),a=n(1540),r={registerAll:function(){i.a.register(a.a)}};t.a=r},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(13),s=n(33),o={init:function(){
var e=n.i(r.a)("appModel"),t=window.innerWidth+"x"+window.innerHeight,i=window.screen.width+"x"+window.screen.height,o={"X-Plex-Product":"Plex Web","X-Plex-Version":"3.20.7","X-Plex-Client-Identifier":e.get("clientID"),"X-Plex-Platform":s.a.name,"X-Plex-Platform-Version":s.a.version,"X-Plex-Device":s.a.platform,"X-Plex-Device-Name":"Plex Web ("+s.a.name+")","X-Plex-Device-Screen-Resolution":t+","+i};return e.on("change:clientID",function(e,t){o["X-Plex-Client-Identifier"]=t}),
a.a.Deferred().resolve(o).promise()}};t.a=o},function(e,t,n){"use strict";var i=n(1393),a={video:i.a,music:i.b,photo:i.c};t.a=a},function(e,t,n){"use strict";var i=n(862),a=n(1517),r={getComponent:function(e){return e&&"dash"===e.protocol?a.a:i.a}};t.a=r},function(e,t,n){"use strict";var i=n(33),a={capabilities:{embed:!0,redirect:!0},video:{lowestQualityIndex:2,protocols:{hls:{mimeType:"application/x-mpegURL"}},directPlay:{generic:{video:{maxWidth:1920,maxHeight:1280,maxFrameRate:60}},mp4:{
mimeType:'video/mp4; codecs="avc1.42E01E"',video:{codecs:{h264:{}}},audio:{codecs:{aac:{}}}},mkv:{mimeType:"video/webm",video:{codecs:{vp8:{}}},audio:{codecs:{vorbis:{}}}},ogg:{mimeType:"video/ogg"},mpegts:{protocol:"hls"},flv:{}},directStream:{video:{codecs:{h264:{}},maxWidth:1920,maxHeight:1280,maxBitDepth:8},audio:{codecs:{aac:{}},maxBitrate:192,maxChannels:2}}},music:{directPlay:{mp4:{mimeType:'audio/mp4; codecs="mp4a.40.5"',audio:{codecs:{aac:{}}}},mp3:{mimeType:'audio/mpeg; codecs="mp3"',
audio:{codecs:{mp3:{}}}},ogg:{mimeType:'audio/ogg; codecs="vorbis"',audio:{codecs:{vorbis:{}}}},wav:{mimeType:"audio/wav",audio:{codecs:{pcm:{}}}},flac:{mimeType:"audio/flac",audio:{codecs:{flac:{}}}}},directStream:{audio:{codecs:{mp3:{}},maxBitrate:320,maxChannels:2}}}};"ie"===i.a.id&&"9.0"===i.a.version&&(a.video.directPlay.mp4.optimizedForStreaming=!0),t.a=a},function(e,t,n){"use strict";function i(){var e=[]
;return I&&e.push("add-transcode-target(type=musicProfile&context=streaming&protocol=dash&container=mp4&audioCodec=aac,mp3)"),M&&e.push("add-transcode-target(type=musicProfile&context=streaming&protocol=hls&container=mpegts&audioCodec=aac,mp3)"),{type:b.a.types.MUSIC,profile:l.a.prop("music"),allowDirectPlay:!0,hasNativeHLS:M,hasDASH:I,transcoder:f.a,transcoderOptions:{directStream:1},profileExtra:e.length?e.join("+"):null}}function a(e,t){
var i=n.i(o.a)("appModel"),r=i.get("settings"),c=i.get("experienceSettings"),p=e.server.get("hasAdaptiveBitrate"),v=t===d.a.CONVERT_AUTOMATICALLY&&p,m=r.get("directPlay")&&!v,g=r.get("directStream")&&!v?1:0,y=void 0;y=v?s(e,c):d.a.getQualityByIndex(t);var S=null;"safari"===u.a.id&&"osx"===u.a.platformID&&n.i(h.a)(u.a.platformVersion,"10.11")&&(S="append-transcode-target-codec(type=videoProfile&context=streaming&protocol=hls&audioCodec=ac3,eac3)");var C=void 0
;return t!==d.a.ORIGINAL&&(C=a(e,d.a.ORIGINAL)),{type:b.a.types.VIDEO,profile:l.a.prop("video"),allowDirectPlay:m,subtitlesBurnLevel:c.get("subtitlesBurnLevel"),hasNativeHLS:M,hasDASH:I,hasStreamingMKV:!1,quality:y,transcoder:f.a,transcoderOptions:{autoAdjustQuality:v?1:0,directStream:g,directStreamAudio:g,subtitleSize:c.get("subtitleSize"),audioBoost:r.get("audioBoost")},profileExtra:S,originalQualityDecisionOptions:C}}function r(e,t){var n=g.b(e.get("type"))
;return n&&n.mediaType===y.d?i():a(e,t)}function s(e,t){var i=e.server.get("isPrivateConnection");if(n.i(c.a)(e.toJSON(),i)&&t.get("useHomeStreamingRecommendedSettings"))return d.a.getQualityByIndex(S.a);var a=n.i(p.a)(e,i),r=t.get(a);return d.a.getQualityByIndex(r)}var o=n(13),l=n(391),u=n(33),c=n(560),d=n(113),p=n(412),h=n(551),f=n(856),v=n(1484),m=n(1483),g=n(30),y=n(66),b=n(181),S=n(585),I=n.i(m.a)(),M=!I&&n.i(v.a)();t.a=r},function(e,t,n){"use strict";function i(e){
var t=e.channel,n=t.get("identifier"),i=n?"/system/appstore/apps/"+n:t.get("key"),a=i+"/install",s=t.server.getXHROptions(a),o=r.a.ajax(s);return o.done(function(){t.set("installed",!0)}),o.promise()}var a=n(10),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.channel,i=t.get("identifier"),a=i?"/system/appstore/apps/"+i:t.get("key"),s=a+"/reset",d=t.server.getXHROptions(s),p=o.a.ajax(d);return p.done(function(e){var t,i=r.a.isObject(e)?e:c.a.parseXML(e)
;t=i.message?i.message:n.i(l.default)("This channel was successfully reset."),u.a.trigger("show:alert",{type:"success",message:t})}),p.fail(function(){u.a.trigger("show:alert",{type:"error",message:n.i(l.default)("There was a problem resetting this channel.")})}),p.promise()}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(4),u=n(15),c=n(49);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.channel,i=t.get("identifier"),a=i?"/system/appstore/apps/"+i:t.get("key"),s=a+"/restart",d=t.server.getXHROptions(s),p=o.a.ajax(d);return p.done(function(e){var t,i=r.a.isObject(e)?e:c.a.parseXML(e);t=i.message?i.message:n.i(l.default)("This channel was successfully restarted."),u.a.trigger("show:alert",{type:"success",message:t})}),p.fail(function(){u.a.trigger("show:alert",{type:"error",message:n.i(l.default)("There was a problem restarting this channel.")})}),p.promise()}
var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(4),u=n(15),c=n(49);t.a=i},function(e,t,n){"use strict";function i(e){function t(){var t=o.a.ajax(f);t.done(function(t){var n=r.a.isObject(t)?t:c.a.parseXML(t);a.set("installed",!1),n.message&&!e.skipConfirmation&&u.a.trigger("show:alert",{type:"success",message:n.message}),i.resolve()}),t.fail(function(e){if(400===e.status){var t=new d.a({title:n.i(l.default)("Unable to Uninstall Channel"),
message:n.i(l.default)("This channel could not be uninstalled, but you can disable it in the server settings."),confirmLabel:n.i(l.default)("OK"),cancelLabel:n.i(l.default)("Ignore")});t.promise.done(function(){u.a.trigger("navigate","serverSettings",{serverID:a.server.id,group:"channels"})}),u.a.trigger("show:modal",t)}else u.a.trigger("show:alert",{type:"error",message:n.i(l.default)("This channel could not be uninstalled.")});i.reject(e)})}
var i=o.a.Deferred(),a=e.channel,s=a.get("identifier"),p=s?"/system/appstore/apps/"+s:a.get("key"),h=p+"/uninstall",f=a.server.getXHROptions(h);if(e.skipConfirmation)t();else{var v=new d.a({title:n.i(l.default)("Uninstall Channel"),message:n.i(l.default)("Are you sure you want to uninstall this channel?")}),m=v.promise;m.done(t),m.fail(function(){i.reject()}),u.a.trigger("show:modal",v)}return i.promise()}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(4),u=n(15),c=n(49),d=n(44);t.a=i},function(e,t,n){
"use strict";function i(e){function t(e){var n=r.a.isObject(e)?e:c.a.parseXML(e);if(!n||!n.message&&!n.Directory)return void i();if(n.message)h||u.a.trigger("show:alert",{type:"success",message:n.message}),s.resolve();else{c.a.parseArray(n,"Directory");var a=n.Directory[0].key,l=o.a.ajax(p.getXHROptions(a));l.done(t),l.fail(i)}}function i(e){h||u.a.trigger("show:alert",{type:"error",message:n.i(l.default)("There was a problem checking for updates.")}),s.reject(e)}
var a,s=o.a.Deferred(),d=e.channel,p=d?d.server:e.server,h=e.silent;if(d){var f=d.get("identifier");a=(f?"/system/appstore/apps/"+f:d.get("key"))+"/update"}else a="/system/appstore/updates";var v=o.a.ajax(p.getXHROptions(a));return v.done(t),v.fail(i),s.promise()}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(4),u=n(15),c=n(49);t.a=i},function(e,t,n){"use strict";function i(e){var t=l.a("appModel"),i=t.get("user"),a=i.server,s={url:e.item.get("url")
},p=c.join("/pms/playlists/queue/items",s),h=r.a.extend(a.getXHROptions(p),{type:"POST"}),f=o.a.ajax(h).promise();return f.done(function(){d.a.trigger("show:alert",{type:"success",message:n.i(u.default)("{1} added to Watch Later.",e.item.get("title"))})}),f.fail(function(){d.a.trigger("show:alert",{type:"error",message:n.i(u.default)("There was a problem adding to Watch Later.")})}),f}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(13),u=n(4),c=n(19),d=n(15);t.a=i},function(e,t,n){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0});var i=n(1204);n.d(t,"testServerConnection",function(){return i.a}),n.d(t,"abortServerConnectionTest",function(){return i.b}),n.d(t,"populateServerIdentity",function(){return i.c}),n.d(t,"resetUser",function(){return i.d}),n.d(t,"switchUser",function(){return i.e}),n.d(t,"authenticateWithServer",function(){return i.f}),n.d(t,"authenticateWithHash",function(){return i.g}),n.d(t,"selectStream",function(){return i.h}),
n.d(t,"updateWatchedStatus",function(){return i.i}),n.d(t,"deleteFile",function(){return i.j}),n.d(t,"deleteItem",function(){return i.k}),n.d(t,"resumePlayQueue",function(){return i.l}),n.d(t,"persistPlayQueue",function(){return i.m});var a=n(1577);n.d(t,"refreshMetadata",function(){return a.a});var r=n(1554);n.d(t,"analyzeItems",function(){return r.a});var s=n(1555);n.d(t,"analyzeSection",function(){return s.a});var o=n(1572);n.d(t,"markWatched",function(){return o.a});var l=n(1571)
;n.d(t,"markUnwatched",function(){return l.a});var u=n(1579);n.d(t,"unmatch",function(){return u.a});var c=n(1578);n.d(t,"splitApart",function(){return c.a});var d=n(1574);n.d(t,"merge",function(){return d.a});var p=n(1564);n.d(t,"deleteItems",function(){return p.a});var h=n(1565);n.d(t,"deleteMediaItem",function(){return h.a});var f=n(1569);n.d(t,"deleteVersions",function(){return f.a});var v=n(1567);n.d(t,"deleteSection",function(){return v.a});var m=n(1568)
;n.d(t,"deleteSectionThumbnails",function(){return m.a});var g=n(1566);n.d(t,"deletePlaylist",function(){return g.a});var y=n(1580);n.d(t,"updateLibrary",function(){return y.a});var b=n(1575);n.d(t,"optimize",function(){return b.a});var S=n(1558);n.d(t,"cleanBundles",function(){return S.a});var I=n(1570);n.d(t,"emptyTrash",function(){return I.a});var M=n(1573);n.d(t,"match",function(){return M.a});var C=n(1556);n.d(t,"autoMatch",function(){return C.a});var w=n(1557)
;n.d(t,"changeArtwork",function(){return w.a});var D=n(1576);n.d(t,"rate",function(){return D.a});var P=n(1562);n.d(t,"enableVersionGenerator",function(){return P.a});var T=n(1561);n.d(t,"disableVersionGenerator",function(){return T.a});var x=n(1563);n.d(t,"reprocessVersionGenerator",function(){return x.a});var E=n(1560);n.d(t,"deleteVersionGenerator",function(){return E.a});var N=n(1559);n.d(t,"deleteAllVersionGenerators",function(){return N.a});var L=n(1547);n.d(t,"installChannel",function(){
return L.a});var A=n(1551);n.d(t,"updateChannel",function(){return A.a});var k=n(1549);n.d(t,"restartChannel",function(){return k.a});var _=n(1548);n.d(t,"resetChannel",function(){return _.a});var O=n(1550);n.d(t,"uninstallChannel",function(){return O.a});var j=n(1552);n.d(t,"watchLater",function(){return j.a});var R=n(1581);n.d(t,"stopMedia",function(){return R.a});var U=n(1583);n.d(t,"connectServer",function(){return U.a});var z=n(1585);n.d(t,"reconnectServer",function(){return z.a})
;var B=n(1587);n.d(t,"signInServer",function(){return B.a});var F=n(1589);n.d(t,"signUpServer",function(){return F.a});var V=n(1588);n.d(t,"signOutServer",function(){return V.a});var Q=n(1586);n.d(t,"removeServer",function(){return Q.a});var H=n(1582);n.d(t,"checkForServerUpdates",function(){return H.a});var W=n(1584);n.d(t,"installServerUpdates",function(){return W.a});var Y=n(1590);n.d(t,"testServerImage",function(){return Y.a});var G=n(1591);n.d(t,"showClaimServerAlertBar",function(){
return G.a});var K=n(1607);n.d(t,"signIn",function(){return K.a});var q=n(1609);n.d(t,"signUp",function(){return q.a});var X=n(1606);n.d(t,"showSyncModal",function(){return X.a});var Z=n(1605);n.d(t,"showHomeWarningsModal",function(){return Z.a});var J=n(1593);n.d(t,"deleteSyncItem",function(){return J.a});var $=n(1596);n.d(t,"refreshSyncLists",function(){return $.a});var ee=n(1599);n.d(t,"removeDevice",function(){return ee.a});var te=n(1600);n.d(t,"removeFriend",function(){return te.a})
;var ne=n(1592);n.d(t,"acceptInvite",function(){return ne.a});var ie=n(1597);n.d(t,"rejectInvite",function(){return ie.a});var ae=n(1604);n.d(t,"shareServer",function(){return ae.a});var re=n(1602);n.d(t,"removeServerShare",function(){return re.a});var se=n(1601);n.d(t,"removeHomeUser",function(){return se.a});var oe=n(1611);n.d(t,"validateUsername",function(){return oe.a});var le=n(1610);n.d(t,"toggleGuest",function(){return le.a});var ue=n(1594);n.d(t,"lockUser",function(){return ue.a})
;var ce=n(1608);n.d(t,"signOut",function(){return ce.a});var de=n(1603);n.d(t,"share",function(){return de.a});var pe=n(1595);n.d(t,"recommend",function(){return pe.a});var he=n(1598);n.d(t,"remoteUnlock",function(){return he.a})},function(e,t,n){"use strict";function i(e){var t=e.items;return o.a.when.apply(o.a,r.a.map(t,function(e){var t="/library/metadata/"+e.id+"/analyze",n=r.a.extend(e.server.getXHROptions(t),{type:"PUT"});return o.a.ajax(n).promise()}))}var a=n(3),r=n.n(a),s=n(10),o=n.n(s)
;t.a=i},function(e,t,n){"use strict";function i(e){function t(){var e=o.a.ajax(d);e.done(function(){i.resolve()}),e.fail(function(e){u.a.trigger("show:alert",{type:"error",message:n.i(l.default)("There was a problem analyzing the library.")}),i.reject(e)}),e.always(function(e){p.hide()})}var i=o.a.Deferred(),a=e.section,s="/library/sections/"+a.id+"/analyze",d=r.a.extend(a.server.getXHROptions(s),{type:"PUT"}),p=new c.a({title:n.i(l.default)("Analyze Library"),
message:n.i(l.default)("Analyzes all the media files in the library. The analysis captures information about the media which helps Plex decide how to optimally play back the media."),confirmLabel:n.i(l.default)("Analyze"),cancelLabel:n.i(l.default)("Cancel"),async:!0}),h=p.promise;return h.done(t),h.fail(function(){i.reject()}),u.a.trigger("show:modal",p),i.promise()}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(4),u=n(15),c=n(44);t.a=i},function(e,t,n){"use strict";function i(e){
var t=o.a.Deferred(),i=e.item,a=e.agent,s={agent:a.id,manual:0},p=d.join(["/library/metadata/",i.id,"/matches"],s),h=r.a.extend(i.server.getXHROptions(p)),f=o.a.ajax(h);return f.done(function(e){var a=r.a.isObject(e)?e:c.a.parseXML(e);if(a.SearchResult){var p=a.SearchResult;r.a.isArray(a.SearchResult)&&(p=a.SearchResult[0]),s={guid:p.guid,name:p.name};var h=d.join(["/library/metadata/",i.id,"/match"],s),f=r.a.extend(i.server.getXHROptions(h),{type:"PUT"}),v=o.a.ajax(f);v.done(function(){
t.resolve()}),v.fail(function(){u.a.trigger("show:alert",{type:"error",message:n.i(l.default)("There was a problem matching this item.")}),t.reject()})}else u.a.trigger("show:alert",{type:"error",message:n.i(l.default)("No matches were found using this agent.")}),t.reject()}),f.fail(function(e){u.a.trigger("show:alert",{type:"error",message:n.i(l.default)("There was a problem searching for matches.")}),t.reject(e)}),t.promise()}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(4),u=n(15),c=n(49),d=n(19)
;t.a=i},function(e,t,n){"use strict";function i(e){var t=e.item,n={url:e.artworkRatingKey},i=l.join(["/library/metadata/",t.id,e.artworkType],n),a=r.a.extend(t.server.getXHROptions(i),{type:"PUT"}),s=o.a.ajax(a);return s.done(function(n){t.set(u[e.artworkType],n)}),s.promise()}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(19),u={poster:"thumb",art:"art",banner:"banner"};t.a=i},function(e,t,n){"use strict";function i(e){function t(){var e=o.a.ajax(s);e.done(function(){u.a.trigger("show:alert",{
type:"success",message:n.i(l.default)("Unused bundles are being removed.")}),i.resolve()}),e.fail(function(e){u.a.trigger("show:alert",{type:"error",message:n.i(l.default)("There was a problem removing unused bundles.")}),i.reject(e)}),e.always(function(e){d.hide()})}var i=o.a.Deferred(),a=e.server,s=r.a.extend(a.getXHROptions("/library/clean/bundles"),{type:"PUT"}),d=new c.a({title:n.i(l.default)("Clean Bundles"),
message:n.i(l.default)("The media server stores information about your media to disk, as well as posters, artwork, and other media resources from the internet. Running this task deletes any bundles which are no longer in use."),confirmLabel:n.i(l.default)("Clean"),cancelLabel:n.i(l.default)("Cancel"),async:!0}),p=d.promise;return p.done(t),p.fail(function(){i.reject()}),u.a.trigger("show:modal",d),i.promise()}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(4),u=n(15),c=n(44);t.a=i},function(e,t,n){
"use strict";function i(e){var t=a(),i=t.promise;return i=i.then(function(){var i="/playlists/generators?type="+d.a.LOCAL,a=s.a.extend(e.server.getXHROptions(i),{type:"DELETE"}),r=l.a.ajax(a).promise();return r.fail(function(e){c.a.trigger("show:alert",{type:"error",message:n.i(u.default)("There was a problem deleting all versions.")})}),r.always(function(){t.hide()}),r.promise()})}function a(){var e=new p.a({title:n.i(u.default)("Delete All Versions"),
message:n.i(u.default)("Are you sure you want to delete all versions? This cannot be undone."),confirmLabel:n.i(u.default)("Delete"),cancelLabel:n.i(u.default)("Cancel"),async:!0,hasDanger:!0});return c.a.trigger("show:modal",e),e}var r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(4),c=n(15),d=n(234),p=n(44);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.generator,i=a(e);return i.promise.then(function(){var e=t.destroy();return e.fail(function(e){s.a.trigger("show:alert",{type:"error",
message:n.i(r.default)("Unable to stop generating these versions.")})}),e.always(function(){i.hide()}),e})}function a(e){var t=e.generator.get("title"),i=t?n.i(r.default)("Removing this item will delete all versions created by {1}. Are you sure you want to continue?",t):n.i(r.default)("Removing this item will delete all related versions. Are you sure you want to continue?"),a=new o.a({title:n.i(r.default)("Delete Versions"),message:i,confirmLabel:n.i(r.default)("Remove"),
cancelLabel:n.i(r.default)("Cancel"),async:!0,hasDanger:!0});return s.a.trigger("show:modal",a),a}var r=n(4),s=n(15),o=n(44);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.generator,i=s.a.result(t,"url")+"/"+e.ratingKey+"/disable",r=a();return r.promise.then(function(){var e=s.a.extend(t.server.getXHROptions(i),{type:"PUT"}),a=l.a.ajax(e).promise();return a.fail(function(e){c.a.trigger("show:alert",{type:"error",message:n.i(u.default)("There was a problem disabling this version.")})
}),a.always(function(){r.hide()}),a})}function a(){var e=new d.a({title:n.i(u.default)("Remove Version"),message:n.i(u.default)("Are you sure you want to delete this version? You can enable it again in Optimized Versions Settings."),confirmLabel:n.i(u.default)("Remove"),cancelLabel:n.i(u.default)("Cancel"),async:!0,hasDanger:!0});return c.a.trigger("show:modal",e),e}var r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(4),c=n(15),d=n(44);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.generator,i=r.a.result(t,"url")+"/"+e.ratingKey+"/enable",a=r.a.extend(t.server.getXHROptions(i),{type:"PUT"}),s=o.a.ajax(a).promise();return s.fail(function(e){u.a.trigger("show:alert",{type:"error",message:n.i(l.default)("There was a problem enabling this version.")})}),s}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(4),u=n(15);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.generator,i=e.ratingKey,a=r.a.result(t,"url");i&&(a+="/"+i),a+="/reprocess"
;var s=r.a.extend(t.server.getXHROptions(a),{type:"PUT"}),c=o.a.ajax(s).promise();return c.fail(function(e){var t=i?n.i(l.default)("There was a problem processing this item."):n.i(l.default)("There was a problem processing these items.");u.a.trigger("show:alert",{type:"error",message:t})}),c}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(4),u=n(15);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.items,n=e.item;t||(t=[n]),n||(n=s.a.first(t));var i=n.get("Media")
;if(1===t.length&&i.length>1&&n.server.supports("specificMediaDeletion"))return p.a.execute("deleteMediaItem",{item:n});var r=a({item:n,items:t});return r.promise.then(function(){var n=s.a.map(t,function(t){return p.a.execute("deleteItem",{item:t,skipRedirect:e.skipRedirect})});return l.a.when.apply(l.a,n).always(function(){r.hide()})})}function a(e){var t,i,a=e.item,r=e.items,s=r.length>1,o=a.get("type"),l=n.i(d.b)(o);s?(t=l.plural,
i=n.i(u.default)("Are you sure you want to delete {1} items from your filesystem?",r.length)):(t=l.title,i=n.i(u.default)("Are you sure you want to delete this item from your filesystem?"));var p={title:n.i(u.default)("Delete {1}",t),message:i,confirmLabel:n.i(u.default)("Delete"),cancelLabel:n.i(u.default)("Cancel"),async:!0,hasDanger:!0};(s||n.i(d.s)(o))&&(p.requireDoubleConfirm=!0,p.doubleConfirmMessage=n.i(u.default)("Multiple files may be deleted."),
p.doubleConfirmLabel=n.i(u.default)("Yes, I'm sure"));var f=new h.a(p);return c.a.trigger("show:modal",f),f}var r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(4),c=n(15),d=n(30),p=n(28),h=n(44);t.a=i},function(e,t,n){"use strict";function i(e){var t=a(e);return t=t.then(function(t){var n=r();return n.promise.then(function(){return c.a.execute("deleteFile",{item:e.item,media:t}).always(function(){n.hide()})})})}function a(e){var t=o.a.Deferred(),n=e.item,i=n.get("Media")
;if(e.index in i)return t.resolve(i[e.index]).promise();var a=new d.a({model:n}),r=a.promise;return r.done(function(e){t.resolve(i[e])}),r.fail(function(){t.reject()}),u.a.trigger("show:modal",a),t.promise()}function r(){var e=new p.a({title:n.i(l.default)("Delete File"),message:n.i(l.default)("Are you sure you want to delete this file from your filesystem?"),confirmLabel:n.i(l.default)("Delete"),cancelLabel:n.i(l.default)("Cancel"),async:!0,hasDanger:!0});return u.a.trigger("show:modal",e),e}
var s=n(10),o=n.n(s),l=n(4),u=n(15),c=n(28),d=n(1949),p=n(44);t.a=i},function(e,t,n){"use strict";function i(e){function t(){var t=e.item.destroy();t.done(function(){o.a.trigger("navigate","playlists",{serverID:a.id}),i.resolve()}),t.fail(function(e){o.a.trigger("show:alert",{type:"error",message:n.i(s.default)("There was a problem deleting the playlist.")}),i.reject(e)}),t.always(function(e){u.hide()})}var i=r.a.Deferred(),a=e.item.server,u=new l.a({title:n.i(s.default)("Delete Playlist"),
message:n.i(s.default)("Are you sure you want to delete {1}? This cannot be undone.",e.item.get("title")),confirmLabel:n.i(s.default)("Delete"),cancelLabel:n.i(s.default)("Cancel"),async:!0,hasDanger:!0}),c=u.promise;return c.done(t),c.fail(function(){i.reject()}),o.a.trigger("show:modal",u),i.promise()}var a=n(10),r=n.n(a),s=n(4),o=n(15),l=n(44);t.a=i},function(e,t,n){"use strict";function i(e){function t(){var e=a.destroy({wait:!0});if(!e)return void i.resolve();e.done(function(){
var e=s.a("appStore").dispatch,t=this.server.entityID();t&&e(u.a({serverEntityID:t})),i.resolve()}),e.fail(function(e){l.a.trigger("show:alert",{type:"error",message:n.i(o.default)("There was a problem deleting the library.")}),i.reject(e)})}var i=r.a.Deferred(),a=e.section,d=new c.a({title:n.i(o.default)("Delete Library"),message:n.i(o.default)("Are you sure you want to delete {1}?",a.get("title")),confirmLabel:n.i(o.default)("Delete"),cancelLabel:n.i(o.default)("Cancel"),
requireDoubleConfirm:!0,doubleConfirmMessage:n.i(o.default)("This cannot be undone."),doubleConfirmLabel:n.i(o.default)("Yes, I'm sure"),async:!0,hasDanger:!0}),p=d.promise;return p.done(t),p.fail(function(){i.reject()}),l.a.trigger("show:modal",d),i.promise().always(function(){d.hide()}),i.promise()}var a=n(10),r=n.n(a),s=n(13),o=n(4),l=n(15),u=n(115),c=n(44);t.a=i},function(e,t,n){"use strict";function i(e){function t(){var e=o.a.ajax(s);return e.done(function(e){u.a.trigger("show:alert",{
type:"success",message:n.i(l.default)("The preview thumbnails for items in this library were deleted.")})}),e.fail(function(e){u.a.trigger("show:alert",{type:"error",message:n.i(l.default)("There was a problem deleting the preview thumbnails for items in this library.")})}),e.always(function(e){d.hide()}),e}var i=e.section,a="/library/sections/"+i.id+"/indexes",s=r.a.extend(i.server.getXHROptions(a),{type:"DELETE"}),d=new c.a({title:n.i(l.default)("Delete Preview Thumbnails"),
message:n.i(l.default)("Are you sure you want to delete the preview thumbnails for items in this library? This cannot be undone."),confirmLabel:n.i(l.default)("Delete"),cancelLabel:n.i(l.default)("Cancel"),async:!0,hasDanger:!0}),p=d.promise;return p=p.then(function(){return t()}),u.a.trigger("show:modal",d),p}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(4),u=n(15),c=n(44);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.item,i=t.server,r=t.get("Media"),o=s.a.filter(r,function(e){
return!!e.proxyType}),p=a({item:t,versions:o});return p.promise.then(function(){var e=d.join(["/library/metadata/",t.id],{proxy:1}),a=s.a.extend(i.getXHROptions(e),{type:"DELETE"}),h=l.a.ajax(a);return h.done(function(){s.a.each(o,function(e){r.splice(s.a.indexOf(r,e),1)}),t.trigger("change:Media",t,t.get("Media"))}),h.fail(function(e){
var t=403===e.status?n.i(u.default)("Ensure that media deletion is enabled for library content in your server settings."):n.i(u.default)("There was a problem deleting these versions.");c.a.trigger("show:alert",{type:"error",message:t})}),h.always(function(){p.hide()}),h.promise()})}function a(e){var t,i=e.item,a=e.versions,r=a.length>1;if(r)t=n.i(u.default)("Are you sure you want to delete {1} versions of {2}?",a.length,i.get("title"));else{var o=s.a.first(a)
;t=n.i(u.default)("Are you sure you want to delete the {1} version of {2}?",o.title,i.get("title"))}var l=new p.a({title:r?n.i(u.default)("Delete Versions"):n.i(u.default)("Delete Version"),message:t,confirmLabel:n.i(u.default)("Delete"),cancelLabel:n.i(u.default)("Cancel"),async:!0,hasDanger:!0});return c.a.trigger("show:modal",l),l}var r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(4),c=n(15),d=n(19),p=n(44);t.a=i},function(e,t,n){"use strict";function i(e){function t(){r.a.each(d,function(e){
var t="/library/sections/"+e+"/emptyTrash",n=r.a.extend(s.getXHROptions(t),{type:"PUT"});p.push(o.a.ajax(n))});var e=o.a.when.apply(o.a,p);e.done(function(){u.a.trigger("show:alert",{type:"success",message:n.i(l.default)("The trash was emptied.")}),i.resolve()}),e.fail(function(e){u.a.trigger("show:alert",{type:"error",message:n.i(l.default)("There was a problem emptying the trash.")}),i.reject(e)}),e.always(function(e){h.hide()})}var i=o.a.Deferred(),a=e.section,s=a?a.server:e.server,d=[],p=[]
;if(a)d.push(a.id);else{s.get("sections").each(function(e){d.push(e.id)})}var h=new c.a({title:n.i(l.default)("Empty Trash"),message:n.i(l.default)("By default the media server doesn't remove information for media right away. This helps if a drive is temporarily disconnected. When you empty the trash for a section, all information about missing media is deleted."),confirmLabel:n.i(l.default)("Empty"),cancelLabel:n.i(l.default)("Cancel"),async:!0}),f=h.promise;return f.done(t),f.fail(function(){
i.reject()}),u.a.trigger("show:modal",h),i.promise()}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(4),u=n(15),c=n(44);t.a=i},function(e,t,n){"use strict";function i(e){var t,i,a;e.item?(i=e.item,a=[i]):e.items&&(a=e.items,i=a[0]);var d=r.a.extend({},e,{watched:!1}),p=i.get("type"),h=n.i(l.c)(p),f=(h||a.length>1)&&!e.force,v=1===a.length,m=v&&i.get("isSection")?i.getSyncTitle():i.get("title");if(f){var g;switch(p){case"movie":
g=v?n.i(s.default)("Are you sure you want to mark {1} as unwatched?",m):n.i(s.default)("Are you sure you want to mark these movies as unwatched?");break;case"show":case"season":case"episode":g=v?n.i(s.default)("Are you sure you want to mark all episodes of {1} as unwatched?",m):n.i(s.default)("Are you sure you want to mark these episodes as unwatched?");break;default:
g=v?n.i(s.default)("Are you sure you want to mark {1} as unwatched?",m):n.i(s.default)("Are you sure you want to mark these items as unwatched?")}var y=new c.a({title:n.i(s.default)("Mark as Unwatched"),message:g});t=y.promise.then(function(){return u.a.execute("updateWatchedStatus",d)}),o.a.trigger("show:modal",y)}else t=u.a.execute("updateWatchedStatus",d);return t}var a=n(3),r=n.n(a),s=n(4),o=n(15),l=n(30),u=n(28),c=n(44);t.a=i},function(e,t,n){"use strict";function i(e){var t,i,a
;e.item?(i=e.item,a=[i]):e.items&&(a=e.items,i=a[0]);var d=r.a.extend({},e,{watched:!0}),p=i.get("type"),h=n.i(l.c)(p),f=(h||a.length>1)&&!e.force,v=1===a.length,m=v&&i.get("isSection")?i.getSyncTitle():i.get("title");if(f){var g;switch(p){case"movie":g=v?n.i(s.default)("Are you sure you want to mark {1} as watched?",m):n.i(s.default)("Are you sure you want to mark these movies as watched?");break;case"show":case"season":case"episode":
g=v?n.i(s.default)("Are you sure you want to mark all episodes of {1} as watched?",m):n.i(s.default)("Are you sure you want to mark these episodes as watched?");break;default:g=v?n.i(s.default)("Are you sure you want to mark {1} as watched?",m):n.i(s.default)("Are you sure you want to mark these items as watched?")}var y=new c.a({title:n.i(s.default)("Mark as Watched"),message:g});t=y.promise.then(function(){return u.a.execute("updateWatchedStatus",d)}),o.a.trigger("show:modal",y)
}else t=u.a.execute("updateWatchedStatus",d);return t}var a=n(3),r=n.n(a),s=n(4),o=n(15),l=n(30),u=n(28),c=n(44);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.item,n={guid:e.guid,name:e.name};"album"===t.get("type")&&e.children&&e.children.reduce(function(e,t){var n=t.get("id");return n&&(e["guid["+n+"]"]=t.get("guid")),e},n);var i=l.join(["/library/metadata/",t.id,"/match"],n),a=r.a.extend(t.server.getXHROptions(i),{type:"PUT"});return o.a.ajax(a).promise()}
var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(19);t.a=i},function(e,t,n){"use strict";function i(e){function t(){var e=o.a.ajax(p);e.done(function(){i.resolve()}),e.fail(function(e){u.a.trigger("show:alert",{type:"error",message:n.i(l.default)("There was a problem merging these items.")}),i.reject(e)}),e.always(function(e){h.hide()})}var i=o.a.Deferred(),a=e.item,s=r.a.pluck(e.items,"id").join(","),d="/library/metadata/"+a.id+"/merge?ids="+s,p=r.a.extend(a.server.getXHROptions(d),{type:"PUT"
}),h=new c.a({title:n.i(l.default)("Merge"),message:n.i(l.default)("Are you sure you want to merge these items together?"),async:!0}),f=h.promise;return f.done(t),f.fail(function(){i.reject()}),u.a.trigger("show:modal",h),i.promise()}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(4),u=n(15),c=n(44);t.a=i},function(e,t,n){"use strict";function i(e){function t(){var e=o.a.ajax(s);e.done(function(){u.a.trigger("show:alert",{type:"success",message:n.i(l.default)("The database was optimized.")}),
i.resolve()}),e.fail(function(e){u.a.trigger("show:alert",{type:"error",message:n.i(l.default)("There was a problem optimizing this database.")}),i.reject(e)}),e.always(function(e){d.hide()})}var i=o.a.Deferred(),a=e.server,s=r.a.extend(a.getXHROptions("/library/optimize"),{type:"PUT"}),d=new c.a({title:n.i(l.default)("Optimize Database"),
message:n.i(l.default)("Cleans up the library database and ensures it is operating as quickly as possible. This is especially useful when you've added or removed a large amount of media from the library."),confirmLabel:n.i(l.default)("Optimize"),cancelLabel:n.i(l.default)("Cancel"),async:!0}),p=d.promise;return p.done(t),p.fail(function(){i.reject()}),u.a.trigger("show:modal",d),i.promise()}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(4),u=n(15),c=n(44);t.a=i},function(e,t,n){"use strict"
;function i(e){var t=e.item,i=e.rating,a=t.get("userRating");if(i===-1?t.unset("userRating"):t.set("userRating",i),e.passive)return r.a.Deferred().resolve().promise();var u={key:t.get("ratingKey"),identifier:t.get("identifier"),rating:i},c=l.join("/:/rate",u),d=r.a.ajax(t.server.getXHROptions(c));return d.fail(function(){t.set("userRating",a),o.a.trigger("show:alert",{type:"error",message:n.i(s.default)("There was a problem rating this item.")})}),d.promise()}
var a=n(10),r=n.n(a),s=n(4),o=n(15),l=n(19);t.a=i},function(e,t,n){"use strict";function i(e){var t,i;return e.item?(t=e.item,i=[t]):(i=e.items,t=i[0]),o.a.when.apply(o.a,r.a.map(i,function(e){var n="/library/metadata/"+e.id+"/refresh",i=r.a.extend(t.server.getXHROptions(n),{type:"PUT"});return o.a.ajax(i).promise()})).fail(function(e){503===e.status?u.a.trigger("show:modal",new c.a({model:t.server})):u.a.trigger("show:alert",{type:"error",
message:n.i(l.default)("There was a problem refreshing.")})})}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(4),u=n(15),c=n(363);t.a=i},function(e,t,n){"use strict";function i(e){function t(){var t=r.a.extend(a.server.getXHROptions(s),{type:"PUT"}),c=o.a.ajax(t);c.done(function(){var t,n=a.get("type");t="show"===n||"artist"===n||"album"===n?"Location":"Media",a.set(t,a.get(t).slice(0,1)),e.skipNavigate||u.a.trigger("navigate:back"),i.resolve()}),c.fail(function(e){u.a.trigger("show:alert",{
type:"error",message:n.i(l.default)("There was a problem splitting this item apart.")}),i.reject(e)}),c.always(function(e){d.hide()})}var i=o.a.Deferred(),a=e.item,s="/library/metadata/"+a.id+"/split",d=new c.a({title:n.i(l.default)("Split Apart"),message:n.i(l.default)("Are you sure you want to split this item apart?"),async:!0}),p=d.promise;return p.done(t),p.fail(function(){i.reject()}),u.a.trigger("show:modal",d),i.promise()}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(4),u=n(15),c=n(44);t.a=i
},function(e,t,n){"use strict";function i(e){var t=e.item,i="/library/metadata/"+t.id+"/unmatch",a=r.a.extend(t.server.getXHROptions(i),{type:"PUT"}),s=o.a.ajax(a);return s.fail(function(){u.a.trigger("show:alert",{type:"error",message:n.i(l.default)("There was a problem unmatching this item.")})}),s.promise()}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(4),u=n(15);t.a=i},function(e,t,n){"use strict";function i(e){function t(){var e=o.a.ajax(g);e.done(function(){i.resolve()}),e.fail(function(e){
if(503===e.status)u.a.trigger("show:modal",new d.a({model:h}));else{var t=p?n.i(l.default)("There was a problem canceling the update."):n.i(l.default)("There was a problem updating the library.");u.a.trigger("show:alert",{type:"error",message:t})}i.reject(e)})}var i=o.a.Deferred(),a=e.section,s=a?a.id:"all",p=e.cancel,h=a?a.server:e.server,f=e.params||{},v={};f.force&&(v.force=1);var m="/library/sections/"+s+"/refresh",g=r.a.extend(h.getXHROptions(m),{data:v});if(p&&(g.type="DELETE",
a&&a.set("refreshing",!1)),v.force){var y=new c.a({title:n.i(l.default)("Refresh All"),message:n.i(l.default)("Forces a download of fresh media information from the internet. This can take a long time. Any locked fields are not modified."),confirmLabel:n.i(l.default)("Refresh"),cancelLabel:n.i(l.default)("Cancel")}),b=y.promise;b.done(t),b.fail(function(){i.reject()}),u.a.trigger("show:modal",y)}else t();return i.promise()}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(4),u=n(15),c=n(44),d=n(363)
;t.a=i},function(e,t,n){"use strict";function i(e){function t(e){if(a&&a.id){var t="/status/sessions/terminate?sessionId="+a.id+"&reason="+e,l=r.a.ajax(u.getXHROptions(t));l.done(function(e){i.trigger("destroy",i,i.collection),c.resolve(e)}),l.fail(function(e){o.a.trigger("show:alert",{type:"error",message:n.i(s.default)("There was a problem stopping playback")}),c.reject(e)}),l.always(function(){return d.hide()})}}
var i=e.model,a=i.get("Session"),u=i.server,c=r.a.Deferred(),d=new l.a,p=d.promise;return p.done(function(e){return t(e)}),p.fail(function(){return c.reject()}),o.a.trigger("show:modal",d),c.promise()}var a=n(10),r=n.n(a),s=n(4),o=n(15),l=n(1951);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.server,n={download:e.download===!1?"0":"1"},i=l.join("/updater/check",n),a=r.a.extend(t.getXHROptions(i),{type:"PUT"}),s=e.initialState||"checking",u=t.get("desktop").get("update")
;u.set("state",s);var c=o.a.ajax(a).promise();return c.fail(function(){u.set("state","error")}),c}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(19);t.a=i},function(e,t,n){"use strict";function i(e){function t(){a.fetch().done(function(){var n=a.get("mappingState"),r=e.value&&n===l.c,s=!e.value&&n===l.d;n===l.e||r||s?i||(i=setInterval(t,p)):(i=clearInterval(i),a.get("isWaiting")&&a.set("remoteAccessState",l.f),d.resolve())})}
var i,a=e.cloudAccount,u=a.server.get("desktop").get("settings"),c=u.get("PublishServerOnPlexOnlineKey"),d=r.a.Deferred(),p=500;if(!a.get("isWaiting")){var h=e.value?l.a:l.b;a.set("remoteAccessState",h)}var f=a.previous("remoteAccessState"),v=c.save({PublishServerOnPlexOnlineKey:e.value},{timeout:0});return v.done(t),v.fail(function(t){var i;i=e.value?n.i(s.default)("There was a problem connecting your server."):n.i(s.default)("There was a problem disconnecting your server."),
o.a.trigger("show:alert",{type:"error",message:i}),a.set("remoteAccessState",f),d.reject(t)}),d.promise()}var a=n(10),r=n.n(a),s=n(4),o=n(15),l=n(515);t.a=i},function(e,t,n){"use strict";function i(e){function t(){var e=a.get("desktop").get("update");e.set("state","installing");var t=o.a.ajax(s).promise();return t.fail(function(){e.set("state","error")}),t}var i,a=e.server,s=r.a.extend(a.getXHROptions("/updater/apply"),{type:"PUT"});a.get("activeConnection").get("isLoopback")||(i=new c.a({
title:n.i(l.default)("Remote Installation"),confirmLabel:n.i(l.default)("Continue"),cancelLabel:n.i(l.default)("Cancel"),message:n.i(l.default)("The installer may display dialogs that require input. Make sure you have desktop access to the computer running Plex Media Server before continuing."),hasDanger:!0}),u.a.trigger("show:modal",i));var d=i?i.promise:o.a.Deferred().resolve().promise();return d=d.then(function(){return t()})}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(4),u=n(15),c=n(44);t.a=i
},function(e,t,n){"use strict";function i(e){var t=e.cloudAccount,n={cloudAccount:t,value:!1},i=s.a.execute("connectServer",n);return i=i.then(function(){return n.value=!0,s.a.execute("connectServer",n)}),i=i.then(function(){if(t.get("mappingError"))return r.a.Deferred().reject().promise()})}var a=n(10),r=n.n(a),s=n(28);t.a=i},function(e,t,n){"use strict";function i(e){var t=new f.c({machineIdentifier:e},{onlyIfCached:!0});if(!l.a.isEmpty(t))return t}function a(e){
var t=e.get("desktop").get("cloudAccount"),n=t.destroy();return n.done(function(){e.set({myPlexSigninState:f.b,myPlexSubscription:!1})}),n}function r(e){e.trigger("destroy",e,e.collection),e.cache.remove(e)}function s(e){function t(){var e;if(m)e=m.destroy({wait:!0});else{var t="/api/servers/"+g.id,n=l.a.extend(u.server.getXHROptions(t),{type:"DELETE"});e=c.a.ajax(n)}if(g){if(g.get("connected")&&g.get("myPlexSigninState")===f.a){var i=g.get("desktop").get("cloudAccount");e=e.then(function(){
return i.fetch()}),e=e.then(function(){return a(g)})}g.get("connected")===!1?r(g):e.always(function(){h.a.trigger("test:server",g),g.populate().fail(function(){r(g)})})}return e.always(function(){b.hide()}),e.promise()}var s,o=d.a("appModel"),u=o.get("user"),m=e.device,g=e.server||i(m.get("clientIdentifier"))
;s=m?m.get("isPersonalCloudServer")?n.i(p.default)("If you remove this Plex Cloud server, all your Plex libraries, shares, and metadata will be deleted! Your media files will not be affected. This cannot be undone."):n.i(p.default)("If you remove the server, all syncs and shares associated with the server will be lost and you will need to sign the server in again to restore access to Plex."):n.i(p.default)("Are you sure you want to remove this server?");var y={
title:n.i(p.default)("Remove Server"),message:s,confirmLabel:n.i(p.default)("Remove"),cancelLabel:n.i(p.default)("Cancel"),async:!0,hasDanger:!0};m&&(y.requireDoubleConfirm=!0,y.doubleConfirmMessage=n.i(p.default)("Are you sure you want to remove this server?"),y.doubleConfirmLabel=n.i(p.default)("Yes, I'm sure"));var b=new v.a(y),S=b.promise;return S=S.then(function(){return t()}),h.a.trigger("show:modal",b),S}var o=n(3),l=n.n(o),u=n(10),c=n.n(u),d=n(13),p=n(4),h=n(15),f=n(79),v=n(44);t.a=s
},function(e,t,n){"use strict";function i(e,t){var n=t.getXHROptions("/api/claim/token"),i=u.a.ajax(n).promise();return i=i.then(function(t){var n=f.a.parseXML(t),i=n.token,a=d.join("/myplex/claim",{token:i}),r=e.getXHROptions(a,{type:"POST"});return u.a.ajax(r).promise()})}function a(e,t,n){var i=d.join("/myplex/account",{username:e,password:t}),a=n.getXHROptions(i,{type:"PUT"});return u.a.ajax(a).promise()}function r(e){
var t=e.cloudAccount,r=e.username,s=e.password,l=e.claim,d=void 0!==l&&l,m=u.a.Deferred(),g=t.server,y=n.i(c.a)("appModel"),b=y.get("user"),S=y.get("cloudServer"),I=g.get("accessToken");g.set("accessToken",b.get("authToken"));var M=d?i(g,S):a(r,s,g);return M.done(function(e){var i=o.a.isObject(e)?e:f.a.parseXML(e);i&&"invalid"===i.signInState?(h.a.trigger("show:alert",{type:"error",message:n.i(p.default)("The username or password is incorrect.")}),m.reject()):(g.set({myPlexSigninState:v.a,
myPlexUsername:b.get("email")}),t.set({signedIn:!0,username:b.get("email")}),m.resolve())}),M.fail(function(e){g.set("accessToken",I),t.get("signedIn")===!0&&t.set("signedIn",!1);var i=void 0;i=401===e.status?n.i(p.default)("The username or password is incorrect."):n.i(p.default)("There was a problem signing in to Plex."),h.a.trigger("show:alert",{type:"error",message:i}),m.reject(e)}),m.promise()}var s=n(3),o=n.n(s),l=n(10),u=n.n(l),c=n(13),d=n(19),p=n(4),h=n(15),f=n(60),v=n(79);t.a=r
},function(e,t,n){"use strict";function i(e){var t=e.cloudAccount,i=t.destroy({timeout:0});return i.done(function(){t.server.set({myPlexSigninState:s.b,myPlexSubscription:!1})}),i.fail(function(){r.a.trigger("show:alert",{type:"error",message:n.i(a.default)("There was a problem signing the server out.")})}),i.promise()}var a=n(4),r=n(15),s=n(79);t.a=i},function(e,t,n){"use strict";function i(e){var t=o.a.Deferred(),i=e.cloudAccount;i.set("signedIn",!1),i.set({username:"",email:"",password:""})
;var a=i.save({username:e.username,email:e.email,password:e.password});return a.done(function(e){var a=r.a.isObject(e)?e:c.a.parseXML(e);if(a&&"invalid"===a.signInState){var s;c.a.parseArray(a,"Error"),s=a.Error.length?r.a.first(a.Error).error:n.i(l.default)("This account information is invalid."),u.a.trigger("show:alert",{type:"error",message:s}),t.reject()}else i.set("signedIn",!0),t.resolve()}),a.fail(function(e){u.a.trigger("show:alert",{type:"error",
message:n.i(l.default)("There was a problem signing up for a Plex account.")}),t.reject(e)}),t.promise()}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(4),u=n(15),c=n(49);t.a=i},function(e,t,n){"use strict";function i(e){var t,i=e.server,a=e.connection,o=i.get("friendlyName"),l=(new Date).getTime(),u=i.resolveUrl("/web/img/blank.png?cb="+l,{connection:a}),c=r.a.Deferred();n.i(s.a)("[Servers] Testing image for %s at %s",o,u);var d=new window.Image;return d.onload=function(){
d.onload=d.onerror=d.onabort=null,t=clearTimeout(t),s.a.info("[Servers] Image test for %s at %s was successful",o,u),c.resolve(i,a)},d.onerror=d.onabort=function(){d.onload=d.onerror=d.onabort=null,t=clearTimeout(t),s.a.warn("[Servers] %s at %s unavailable",o,u),c.reject(i,a)},t=setTimeout(function(){d.onload=d.onerror=d.onabort=null,d.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",s.a.warn("[Servers] %s at is unavailable (Timeout)",o,u),c.reject(i,a)},5e3),
d.src=u,c.promise()}var a=n(10),r=n.n(a),s=n(29);t.a=i},function(e,t,n){"use strict";function i(e){var t=n.i(r.a)("appModel").get("settings"),i=t.get("dismissedUnclaimedServers"),l=i.indexOf(e.id)>-1,u=a.a.history.getFragment();l||/^\!\/setup/.test(u)||s.a.trigger("show:bar","alertbar",new o.a({model:e}))}var a=n(55),r=n(13),s=n(15),o=n(1828);t.a=i},function(e,t,n){"use strict";function i(e){function t(){var e=i.save(null,{force:!0});i.trigger("destroy",i,s),e.done(function(){v.fetch(),
f.get("desktop").get("friends").fetch(),f.get("desktop").get("sentInvites").fetch(),i.get("server")&&p.a.trigger("discover:servers"),m.resolve()}),e.fail(function(e){p.a.trigger("show:alert",{type:"error",message:n.i(d.default)("There was a problem accepting this invite.")}),s.add(i,{at:l}),m.reject(e)})}var i=e.invite,s=i.collection,l=s.indexOf(i),h=c.a("appModel"),f=h.get("user"),v=f.get("homeUsers"),m=u.a.Deferred();o.a.extend(e,{homeUsers:v,signedInHomeUser:v.get(f.id)});var g=a(e)
;return g.done(function(){r(e).always(t)}),g.fail(function(){m.reject()}),m.promise}function a(e){if(!e.invite.get("home"))return u.a.Deferred().resolve().promise();var t
;t=e.homeUsers.length>1?e.signedInHomeUser.get("admin")?n.i(d.default)("You are the admin in your current home. If you leave, the remaining users will be removed and managed users will be deleted."):n.i(d.default)("Are you sure you want to join this home? You will leave your current home."):n.i(d.default)("The admin of this home will have access to your account. Other users of this home will be able to switch to your account by entering your PIN.");var i=new h.a({
title:n.i(d.default)("Join Home"),message:t,confirmLabel:n.i(d.default)("Join"),cancelLabel:n.i(d.default)("Cancel"),hasDanger:!0});return p.a.trigger("show:modal",i),i.promise}function r(e){if(e.invite.get("home")&&!e.signedInHomeUser.get("protected")){var t=new f.a({model:e.signedInHomeUser,isEditing:!0,isEditWarning:!0});return p.a.trigger("show:modal",t),t.promise}return u.a.Deferred().resolve().promise()}var s=n(3),o=n.n(s),l=n(10),u=n.n(l),c=n(13),d=n(4),p=n(15),h=n(44),f=n(364);t.a=i
},function(e,t,n){"use strict";function i(e){var t=e.syncItem,i=e.server;if(!t.server.get("connected"))return l.a.trigger("show:alert",{type:"error",message:n.i(o.default)("Please sign in to remove sync items.")}),s.a.Deferred().reject().promise();var r=a(),c=r.promise.then(function(){var e=t.destroy();return e.fail(function(e){l.a.trigger("show:alert",{type:"error",message:n.i(o.default)("There was a problem removing this sync item.")})}),e.always(function(){r.hide()}),e})
;return c=c.then(function(){return u.a.execute("refreshSyncLists",{server:i,silent:!0,skipContent:!0})})}function a(){var e=new c.a({title:n.i(o.default)("Stop Syncing"),message:n.i(o.default)("Are you sure you want to stop syncing this item? All files created by this job will be removed from the device."),confirmLabel:n.i(o.default)("Remove"),cancelLabel:n.i(o.default)("Cancel"),async:!0,hasDanger:!0});return l.a.trigger("show:modal",e),e}var r=n(10),s=n.n(r),o=n(4),l=n(15),u=n(28),c=n(44)
;t.a=i},function(e,t,n){"use strict";function i(){return a().then(r).then(s)}function a(){var e=l.a.Deferred(),t=u.a("appModel"),n=t.get("user");if(!!n.get("features").get(c.c)||n.get("homeUsers").length>1){var i=n.get("homeUsers").findWhere({guest:!0}),a=n.get("homeDetails");if(i)e.resolve(i);else{var r=a.populate();r.done(function(){i=new p.a({id:a.get("guestUserID"),guest:!0},{server:n.server}),e.resolve(i)}),r.fail(function(){e.reject()})}}else e.reject();return e.promise()}function r(e){
return d.a.execute("authenticateWithServer",{homeUser:e})}function s(e){var t=l.a.Deferred(),n=u.a("appModel"),i=n.get("user");return i.clearAccessToken().always(function(){i.signIn(e).always(function(){t.resolve()})}),t.promise()}var o=n(10),l=n.n(o),u=n(13),c=n(112),d=n(28),p=n(518);t.a=i},function(e,t,n){"use strict";function i(e){var t=l.a("appModel"),i=t.get("user"),a=[],s={url:e.item.get("url"),message:e.message};o.a.each(e.playlistIDs,function(e){
var t=d.join(["/pms/playlists/",e,"/items"],s),n=o.a.extend(i.server.getXHROptions(t),{type:"POST"});a.push(r.a.ajax(n))});var p=r.a.when.apply(r.a,a);return p.fail(function(e){c.a.trigger("show:alert",{type:"error",message:n.i(u.default)("There was a problem recommending this item.")})}),p.promise()}var a=n(10),r=n.n(a),s=n(3),o=n.n(s),l=n(13),u=n(4),c=n(15),d=n(19);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.server,i=r.a.extend(t.getXHROptions("/sync/refreshSynclists"),{
type:"PUT"}),a=o.a.ajax(i);return e.skipContent||(a=a.then(function(e){var n=r.a.extend(t.getXHROptions("/sync/refreshContent"),{type:"PUT"});return o.a.ajax(n)})),a.done(function(){e.silent||u.a.trigger("show:alert",{type:"success",message:n.i(l.default)("Synced items were refreshed.")})}),a.promise()}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(4),u=n(15);t.a=i},function(e,t,n){"use strict";function i(e){function t(){var t=n.destroy({wait:!0});return t.done(function(){if(n.get("server")){
s.a("appModel").get("user").get("desktop").get("friends").fetch()}}),t.fail(function(){r(e)}),t.always(function(){i.hide()}),t.promise()}var n=e.invite,i=a(e),o=i.promise;return o=o.then(function(){return t()}),l.a.trigger("show:modal",i),o}function a(e){var t,i;return"requests"===e.subset?(t=n.i(o.default)("Reject Invite"),i=n.i(o.default)("Are you sure you want to reject this invite?")):(t=n.i(o.default)("Cancel Invite"),i=n.i(o.default)("Are you sure you want to cancel this invite?")),
new u.a({title:t,message:i,async:!0})}function r(e){var t;t="requests"===e.subset?n.i(o.default)("There was a problem rejecting this invite."):n.i(o.default)("There was a problem canceling this invite."),l.a.trigger("show:alert",{type:"error",message:t})}var s=n(13),o=n(4),l=n(15),u=n(44);t.a=i},function(e,t,n){"use strict";function i(){var e=r.a.Deferred();return n.i(s.a)("appModel").get("user").get("isLocked")?e.reject():e.resolve(),e.promise()}var a=n(10),r=n.n(a),s=n(13);t.a=i
},function(e,t,n){"use strict";function i(e){function t(){var e=o.destroy({wait:!0});return e.fail(function(){r.a.trigger("show:alert",{type:"error",message:n.i(a.default)("There was a problem removing this device.")})}),e.always(function(){l.hide()}),e.promise()}var i,o=e.device
;i=o.get("isCloudSync")?n.i(a.default)("Deleting the Cloud Sync entry will stop Plex from being able to access any existing Cloud Sync content. You will need to create and upload new sync items."):n.i(a.default)("If you remove this device, you will need to sign in again on the device to restore access to Plex.");var l=new s.a({title:n.i(a.default)("Remove Device"),message:i,confirmLabel:n.i(a.default)("Remove"),cancelLabel:n.i(a.default)("Cancel"),async:!0,hasDanger:!0}),u=l.promise
;return u=u.then(function(){return t()}),r.a.trigger("show:modal",l),u}var a=n(4),r=n(15),s=n(44);t.a=i},function(e,t,n){"use strict";function i(e){function t(){l&&i.set("home",!1);var e=i.destroy({wait:!0});return e.done(function(){var e=r.a("appModel"),t=e.get("user"),n=i.get("serverShares");if(t.get("desktop").get("invites").fetch(),t.get("desktop").get("sentInvites").fetch(),l){t.get("homeUsers").fetch()}n.getLibraryCount({owned:!1})&&o.a.trigger("discover:servers")}),e.fail(function(){
l&&i.set("home",!0),o.a.trigger("show:alert",{type:"error",message:n.i(s.default)("There was a problem removing this friend.")})}),e.always(function(){u.hide()}),e.promise()}var i=e.friend,l=i.get("home"),u=a(e),c=u.promise;return c=c.then(function(){return t()}),o.a.trigger("show:modal",u),c}function a(e){var t=e.friend,i=t.get("serverShares"),a=i.getLibraryCount({owned:!0}),o=i.getLibraryCount({owned:!1
}),c=a+o,d=t.get("title"),p=n.i(s.default)("Are you sure you want to remove {1}?",d),h=n.i(l.a)(n.i(s.default)("library"),c,n.i(s.default)("libraries"));if(a&&o?p+=" "+n.i(s.default)("You are sharing {1} {2} with each other.",c,h):a?p+=" "+n.i(s.default)("You are sharing {1} {2} with this friend.",a,h):o&&(p+=" "+n.i(s.default)("This friend is sharing {1} {2} with you.",o,h)),t.get("home")){var f=r.a("appModel"),v=f.get("user")
;v.get("homeUsers").get(v.id).get("admin")?p+=" "+n.i(s.default)("This friend will be removed from your home."):p+=" "+n.i(s.default)("You will be leaving your home.")}return new u.a({title:n.i(s.default)("Remove Friend"),message:p,confirmLabel:n.i(s.default)("Remove"),cancelLabel:n.i(s.default)("Cancel"),async:!0,hasDanger:!0})}var r=n(13),s=n(4),o=n(15),l=n(418),u=n(44);t.a=i},function(e,t,n){"use strict";function i(e){function t(){var t=o.a.extend(n.server.getXHROptions(n.url()),{
type:"DELETE"}),i=u.a.ajax(t);return i.done(function(){var e=d.get(n.id);e?(n.trigger("destroy",n,l),n.get("restricted")?e.trigger("destroy",e,d):e.set("home",!1)):(l.reset([n]),n.set("admin",!0),d.each(function(e){e.set("home",!1)}));var t=s.hasHome();if(s.set("home",t),!t){s.get("homeDetails").clear()}}),i.fail(function(){r(e)}),i.always(function(){h.hide()}),i.promise()}var n=e.homeUser,i=c.a("appModel"),s=i.get("user"),l=s.get("homeUsers"),d=s.get("desktop").get("friends"),h=a(e),f=h.promise
;return f=f.then(function(){return t()}),p.a.trigger("show:modal",h),f}function a(e){var t,i,a,r=e.homeUser;return e.isSignedInUser?(t=n.i(d.default)("Leave Home"),a=n.i(d.default)("Leave"),i=r.get("admin")?n.i(d.default)("You are the admin in this home. If you leave, the remaining users will be removed and managed users will be deleted."):n.i(d.default)("Are you sure you want to leave this home?")):(t=n.i(d.default)("Remove User"),a=n.i(d.default)("Remove"),
i=r.get("restricted")?n.i(d.default)("Removing a managed user from your home will delete the managed user. Watched status for this user will be lost. This cannot be undone."):n.i(d.default)("You will no longer be able to switch to this user.")),new h.a({title:t,message:i,confirmLabel:a,cancelLabel:n.i(d.default)("Cancel"),async:!0,hasDanger:!0})}function r(e){var t
;t=e.isSignedInUser?n.i(d.default)("There was a problem leaving this home."):n.i(d.default)("There was a problem removing this user."),p.a.trigger("show:alert",{type:"error",message:t})}var s=n(3),o=n.n(s),l=n(10),u=n.n(l),c=n(13),d=n(4),p=n(15),h=n(44);t.a=i},function(e,t,n){"use strict";function i(e){function t(){var e=u.destroy({wait:!0});return e.done(function(){var e=a.a("appModel"),t=e.get("user");t.get("desktop").get("friends").fetch(),t.get("desktop").get("invites").fetch(),
s.a.trigger("discover:servers")}),e.fail(function(){var e;e=u.get("owned")?n.i(r.default)("There was a problem removing this share."):n.i(r.default)("There was a problem leaving this server."),s.a.trigger("show:alert",{type:"error",message:e})}),e.always(function(){c.hide()}),e.promise()}var i,l,u=e.serverShare;u.get("owned")?(i=n.i(r.default)("Stop Sharing"),l=n.i(r.default)("Are you sure you want to stop sharing with this friend?")):(i=n.i(r.default)("Leave Server"),
l=n.i(r.default)("Are you sure you want to leave this server? You can rejoin at any time."));var c=new o.a({title:i,message:l,async:!0,hasDanger:!0}),d=c.promise;return d=d.then(function(){return t()}),s.a.trigger("show:modal",c),d}var a=n(13),r=n(4),s=n(15),o=n(44);t.a=i},function(e,t,n){"use strict";function i(e){var t=l.a("appModel"),i=t.get("user"),a=[],s={url:e.item.get("url"),message:e.message};o.a.each(e.networkIDs,function(e){
var t=d.join(["/pms/social/networks/",e,"/share"],s),n=o.a.extend(i.server.getXHROptions(t),{type:"POST"});a.push(r.a.ajax(n))});var p=r.a.when.apply(r.a,a);return p.fail(function(e){c.a.trigger("show:alert",{type:"error",message:n.i(u.default)("There was a problem sharing this item.")})}),p.promise()}var a=n(10),r=n.n(a),s=n(3),o=n.n(s),l=n(13),u=n(4),c=n(15),d=n(19);t.a=i},function(e,t,n){"use strict";function i(e){var t,n=e.user,i=e.serverShare,a=i.get("Section")
;if(!a||!a.length)return u.a.Deferred().resolve().promise();t=i.get("allLibraries")?[]:o.a.pluck(o.a.where(a,{shared:!0}),"id");var s={server_id:i.get("machineIdentifier"),shared_server:{library_section_ids:t}};n.isNew()&&(s.sharing_settings=n.getSaveParams()),i.isNew()&&(n.isNew()?s.shared_server.invited_email=n.get("username"):s.shared_server.invited_id=n.id);var l=i.url(),c=o.a.extend(n.server.getXHROptions(l),{type:i.isNew()?"POST":"PUT",contentType:"application/json",data:r()(s)})
;return u.a.ajax(c).promise()}var a=n(146),r=n.n(a),s=n(3),o=n.n(s),l=n(10),u=n.n(l);t.a=i},function(e,t,n){"use strict";function i(e){var t=n.i(s.a)("appModel").get("user"),i=t.get("homeUsers"),a=i.get(t.id);if(a.get("protected")||i.length>1)return r.a.Deferred().reject().promise();var c=new l.a({model:a,isEditing:!0,isEditWarning:!0});return c.promise.always(function(e){e||o.a.trigger("show:modal",new u.a({type:"home"}))}),o.a.trigger("show:modal",c),c.promise}
var a=n(10),r=n.n(a),s=n(13),o=n(15),l=n(364),u=n(935);t.a=i},function(e,t,n){"use strict";function i(e){var t=s.a("appModel"),i=t.get("user"),a=e.item.server;if(a.get("myPlexSigninState")!==u.a){var h=n.i(o.default)("This server needs to be connected to Plex to sync its content.");return void l.a.trigger("show:alert",{type:"error",message:h})}if(!a.get("allowSync"))return void l.a.trigger("show:modal",new c.a({model:a}))
;var f=i.get("desktop").get("devices"),v=f.filterSyncDevices(e.item),m=r.a.clone(e);if(v.length){var g=new p.a({collection:v});g.promise.done(function(e){m.device=v.get(e),l.a.trigger("show:modal",new d.a(m))}),l.a.trigger("show:modal",g)}else l.a.trigger("show:alert",{type:"error",message:n.i(o.default)("You are not signed in to any sync capable devices.")})}var a=n(3),r=n.n(a),s=n(13),o=n(4),l=n(15),u=n(79),c=n(602),d=n(934),p=n(1948);t.a=i},function(e,t,n){"use strict";function i(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.i(s.a)("appModel").get("user"),i=void 0,a=void 0;e.username&&e.password?(i=t.server.getXHROptions("/api/v2/users/signin",{type:"POST",data:{login:e.username,password:e.password},xhrFields:{withCredentials:f.a.get("allowSSO")}}),a="password"):(i=t.server.getXHROptions("/api/v2/user?X-Plex-Token="+e.accessToken),a="code");var v=n.i(h.a)(i);return v=v.then(function(n){
return e.remember?o.a.restorePrevious():o.a.register(l.a.getInstance()),t.signIn(n)}),v.fail(function(t){var i=void 0;if(!e.silent){var a=t.responseText&&d.a.parseXML(t.responseText),s=a&&a.error,o=r.a.isArray(s)?r.a.first(s):s;i=o?r.a.isObject(o)?n.i(p.a)(o):o:n.i(u.default)("There was a problem signing in to Plex."),c.a.trigger("show:alert",{type:"error",message:i})}}),v.done(function(){n.i(s.a)("metrics").trackEvent({event:"client:signin",interaction:!0,properties:{mode:a,
firstRun:!!e.isFirstRun}})}),v}var a=n(3),r=n.n(a),s=n(13),o=n(107),l=n(267),u=n(4),c=n(15),d=n(60),p=n(238),h=n(575),f=n(61);t.a=i},function(e,t,n){"use strict";function i(){return n.i(s.a)("metrics").trackEvent({event:"client:signout",interaction:!0}),u.a.execute("resetUser").then(function(){return d.a.restoreDefaults(),d.a.save()}).then(function(){if(c.a.get("allowSSO")){var e=n.i(s.a)("appModel"),t=e.get("cloudServer");return window.location=l.join([t.get("baseUrl"),"/users/sign_out"]),
r.a.Deferred().reject().promise()}o.a.trigger("reset:servers")})}var a=n(10),r=n.n(a),s=n(13),o=n(15),l=n(19),u=n(28),c=n(61),d=n(135);t.a=i},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.i(l.a)("appModel").get("user"),i=r.a.pick(e,"username","email","password"),a=t.server.getXHROptions("/api/v2/users",{type:"POST",data:i}),s=o.a.ajax(a).promise();return s=s.then(function(n){
return e.remember?u.a.restorePrevious():u.a.register(c.a.getInstance()),t.signIn(n,{lockState:v.a.lockStates.UNLOCKED})}),s.fail(function(e){var t=void 0;if(422===e.status){var i=e.responseText&&h.a.parseXML(e.responseText),a=i&&i.error,s=r.a.isArray(a)?r.a.first(a):a;t=s?r.a.isObject(s)?n.i(f.a)(s):s:n.i(d.default)("This account information is invalid.")}else t=n.i(d.default)("There was a problem connecting to Plex.");p.a.trigger("show:alert",{type:"error",message:t})}),s.done(function(){
n.i(l.a)("metrics").trackEvent({event:"client:signup",interaction:!0,properties:{firstRun:!!e.isFirstRun}})}),s}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(13),u=n(107),c=n(267),d=n(4),p=n(15),h=n(60),f=n(238),v=n(225);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.user,i=t.get("homeDetails"),a=t.get("homeSize");i.set("guestEnabled",e.enable);var c=i.save();return c.done(function(){t.get("homeUsers").fetch(),t.get("desktop").get("friends").fetch(),
t.hasHome()||u.a.execute("showHomeWarningsModal"),e.enable||2!==a||i.clear()}),c.fail(function(t){var i=l.a.parseXML(t.responseText),a=i&&i.status;r.a.isString(a)||(a=e.enable?n.i(s.default)("Unable to enable guest account"):n.i(s.default)("Unable to disable guest account")),o.a.trigger("show:alert",{type:"error",message:a})}),c}var a=n(3),r=n.n(a),s=n(4),o=n(15),l=n(49),u=n(28);t.a=i},function(e,t,n){"use strict";function i(e){
var t=o.a.Deferred(),n="/api/users/validate?invited_email="+encodeURIComponent(e.username),i=r.a.extend(e.server.getXHROptions(n),{type:"POST"}),a=o.a.ajax(i);return a.done(function(){t.resolve()}),a.fail(function(e){var n=e.responseText,i=l.a.parseXML(n);t.reject(e,i&&i.status)}),t.promise()}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(49);t.a=i},function(e,t,n){"use strict";function i(){if(!o.a.hasReplaceState)return r.a.Deferred().resolve().promise()
;var e=r.a.Deferred(),t=window.location,n=l.a.parseQueryString(t.search),i=void 0;try{i=JSON.parse(n.alerts),delete n.alerts}catch(e){}if(i){u.a.set("alerts",i);var a=""+s.join([""+t.origin+t.pathname],n)+t.hash;window.history.replaceState({},"",a)}return e.resolve().promise()}var a=n(10),r=n.n(a),s=n(19),o=n(80),l=n(60),u=n(61);t.a=i},function(e,t,n){"use strict";function i(){r.a.trigger("initialize:app");var e=n.i(u.a)();return e=e.then(f.a),e=e.then(v.a),e=e.then(m.a),e=e.then(g.a),
e=e.then(o.a),e=e.then(h.a),e=e.then(l.a),e=e.then(c.a),e=e.then(y.a),e=e.then(b.a),s.a.get("allowCloudPubSub")&&(e=e.then(function(){return n.i(d.a)()})),e=e.then(S.a),e=e.then(I.a),a.a.mobile&&(e=e.then(M.a)),e=e.then(p.a),e=e.then(C.a),e=e.then(w.a)}var a=n(33),r=n(15),s=n(61),o=n(1219),l=n(1218),u=n(1222),c=n(1223),d=n(1220),p=n(1221),h=n(1621),f=n(1628),v=n(1615),m=n(1619),g=n(1612),y=n(1618),b=n(1620),S=n(1625),I=n(1617),M=n(1624),C=n(1623),w=n(1629),D=(n(1622),n(1192)),P=(n.n(D),
n(1189)),T=(n.n(P),n(1191)),x=(n.n(T),n(1188)),E=(n.n(x),n(1190));n.n(E);t.a=i},function(e,t,n){"use strict";function i(){o.a.register(new l.a),n.i(s.c)({metricsReporter:[n.i(d.a)(),c.a],testServerConnection:p.a}),n.i(s.c)({UserFlexModel:g.a,ServerFlexModel:y.a,CloudServerFlexModel:b.a});var e=new m.a,t=n.i(v.a)(e);return n.i(s.c)({appModel:e,appStore:t,logs:new S.a([],{parent:e})}),n.i(s.c)({metrics:[new I.a,u.a],serverManager:new M.a({appModel:e}),primaryServerManager:new C.a({appModel:e}),
manualServerManager:new w.a({appModel:e}),serverConnectionManager:new D.a({appModel:e}),serverConnectionTestManager:new P.a({appModel:e}),serverUpdateManager:new T.a({appModel:e}),remoteCastPlayerManager:n.i(x.a)(e,t),remotePlexPlayerManager:n.i(E.a)(e,t),localCompanionTimelineManager:n.i(N.a)(e,t,{companionPlayerProfile:h.a,getPlayerModels:function(e){var t=e.get("ui");return[t.get("audioVideoPlayer"),t.get("photoPlayer")]},getVolume:function(e){return e.get("experienceSettings").get("volume")}
}),localCompanionCommandHandler:f.a}),r.a.Deferred().resolve().promise()}var a=n(10),r=n.n(a),s=n(13),o=n(390),l=n(1539),u=n(1199),c=n(1200),d=n(1196),p=n(1203),h=n(1543),f=n(1805),v=n(1791),m=n(1637),g=n(1737),y=n(1710),b=n(1698),S=n(1253),I=n(1232),M=n(1632),C=n(1631),w=n(1230),D=n(1235),P=n(1236),T=n(874),x=n(1634),E=n(1635),N=n(1239);t.a=i},function(e,t,n){"use strict";function i(){return s.a.registerAll(o),r.a.Deferred().resolve().promise()}var a=n(10),r=n.n(a),s=n(28),o=n(1553);t.a=i
},function(e,t,n){"use strict";var i=n(3204),a=n.n(i),r=n(3202),s=n.n(r),o=n(3203),l=n.n(o),u=n(3201),c=n.n(u),d=n(3205),p=n.n(d),h=n(3199),f=n.n(h),v=n(3200),m=n.n(v),g=n(12),y=n.n(g);y.a.registerPartial("setting",a.a),y.a.registerPartial("lockableTagInput",s.a),y.a.registerPartial("lockableTextInput",l.a),y.a.registerPartial("lockableNumericInput",c.a),y.a.registerPartial("textInput",p.a),y.a.registerPartial("autocompleteTextInput",f.a),y.a.registerPartial("connectError",m.a)},function(e,t,n){
"use strict";function i(){var e=n.i(r.a)();return e.done(function(){n.i(a.a)("serverUpdateManager").start()}),e}var a=n(13),r=n(1225);t.a=i},function(e,t,n){"use strict";function i(){var e=n.i(a.a)("appModel");return n.i(s.a)().then(function(){return n.i(r.a)(e.get("experienceSettings").populate())})}var a=n(13),r=n(123),s=n(1226);t.a=i},function(e,t,n){"use strict";function i(){var e=o.a.Deferred(),t=u.a.get("myPlexAccessToken");return t.done(function(){
window.PLEXWEB&&window.PLEXWEB.myPlexAccessToken||l.a.register(u.a.getInstance())}),t.always(function(){e.resolve()}),e.promise()}function a(){var e=o.a.Deferred(),t=l.a.set(v,1);return t.done(function(){l.a.remove(v),e.resolve()}),t.fail(function(t){var n=new c.a;d.a.warn("Storage module swapped for "+n.name+' due to exception: "'+t+'"'),u.a.register(n),l.a.register(n,{ignorePrevious:!0}),e.resolve()}),e.promise()}function r(){return i().then(a).then(p.a).then(h.a).then(f.a)}
var s=n(10),o=n.n(s),l=n(107),u=n(267),c=n(732),d=n(29),p=n(1227),h=n(1626),f=n(1627);t.a=r;var v="plexTestToken"},function(e,t,n){"use strict";function i(){var e=n.i(a.a)("appModel").get("user"),t=n.i(r.a)();return t.done(function(){new s.a(e).start(),(new o.a).start()}),t}var a=n(13),r=n(1228),s=n(1633),o=n(1630);t.a=i},function(e,t,n){"use strict";function i(){var e=window.location.hash.match(/[^\?]*\??(.*$)/),t=e[1]
;r.a.parse(t).newauth&&n.i(s.a)("appModel").get("ui").get("signInLaunchPage").set("isFederatedAuthEnabled",!0)}var a=n(703),r=n.n(a),s=n(13);t.a=i},function(e,t,n){"use strict";var i=n(10),a=(n.n(i),n(493)),r=(n.n(a),n(1149)),s=(n.n(r),n(1153)),o=(n.n(s),n(1154)),l=(n.n(o),n(1140)),u=(n.n(l),n(1143)),c=(n.n(u),n(1136)),d=(n.n(c),n(1142)),p=(n.n(d),n(1526));n.i(p.a)({eventTypes:{key:{}},Event:Function})},function(e,t,n){"use strict";function i(){function e(e){
if(n||arguments[1]instanceof window.KeyboardEvent&&"esc"===arguments[2])return e.apply(t,r.a.toArray(arguments).slice(1))}var t=c.a.getInstance(),n=!0;return d.a.on("anyModalOpen",function(){n=!1}),d.a.on("allModalsClosed",function(){n=!0}),r.a.each(t.shortcuts,function(n){u.a.bind(n.keys,r.a.wrap(t[n.fn],e))}),o.a.Deferred().resolve().promise()}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(3327),u=n.n(l),c=n(731),d=n(15);t.a=i},function(e,t,n){"use strict";function i(){function e(){
r.a.each(p,function(t){document.body.removeEventListener(t,e,!0)}),t.src.slice(-d.a.length)===d.a&&t.play()}var t=n.i(u.a)("audio",!0);try{t.style.cssText="position:absolute;width:1px;height:1px;",t.setAttribute("src",d.a)}catch(e){l.a.error("An error occurred trying to initialize the audio element.")}return r.a.each(p,function(t){document.body.addEventListener(t,e,!0)}),o.a.Deferred().resolve().promise()}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(29),u=n(543),c=n(3034),d=n.n(c);t.a=i
;var p=["touchstart","mousedown","mousemove","click","keydown","keypress"]},function(e,t,n){"use strict";function i(e){return e.get("isFullOwnedServer")}function a(){return new u.a({name:"MediaServerEventManager",appModel:n.i(o.a)("appModel"),isValidServer:i,supportsLongPolling:!1,showTimelineStatus:!0,ServerEventConnection:l.a,ServerRetryManager:c.a}).start(),s.a.Deferred().resolve().promise()}var r=n(10),s=n.n(r),o=n(13),l=n(1806),u=n(734),c=n(1231);t.a=a},function(e,t,n){"use strict"
;function i(){var e=n.i(c.a)("appModel"),t=e.get("experienceSettings"),i=e.get("settings"),a=i.populate().then(function(){var e=o.a.result(t,"defaults"),a=i.get("extrasPrefixCount"),s=i.get("localQuality"),l=i.get("remoteQuality"),c=d.a.get("resumePlayQueue"),h=[];if(null!=a&&a!==e.extrasPrefixCount){var y=t.save("extrasPrefixCount",a);y=y.then(function(){return i.save("extrasPrefixCount",void 0)}),h.push(y)}if(null!=s&&s!==e.localQuality){var b=t.save("localQuality",s);b=b.then(function(){
return i.save("localQuality",void 0)}),h.push(b)}if(null!=l&&l!==e.remoteQuality){var S=t.save("remoteQuality",l);S=S.then(function(){return i.save("remoteQuality",void 0)}),h.push(S)}return h.push(c.then(function(e){var i=void 0;try{i=JSON.parse(e)}catch(e){i={}}var a=r()(i);if(!a.length)return u.a.Deferred().reject().promise();var s=a.reduce(function(e,t){var a=i[t],r=n.i(v.a)(f.f,a.serverID),s=n.i(v.a)(f.e,m.a.LIBRARY_PROVIDER_IDENTIFIER,r);return e[t]={serverEntityID:r,providerEntityID:s,
playQueueID:a.playQueueID,playQueueType:g.b,playQueueRepeat:!1,playQueueOffset:Math.floor(a.position/1e3)},e},{});return t.save("restorePlayQueue",s)}).then(function(){return d.a.remove("resumePlayQueue")})),n.i(p.a)(h)});return n.i(h.a)(a)}var a=n(65),r=n.n(a),s=n(3),o=n.n(s),l=n(10),u=n.n(l),c=n(13),d=n(107),p=n(417),h=n(123),f=n(56),v=n(53),m=n(72),g=n(232);t.a=i},function(e,t,n){"use strict";function i(){
var e=n.i(s.a)("appModel"),t=e.get("experienceSettings"),i=e.get("settings"),a=i.populate().then(function(){var e=r.a.result(t,"defaults"),a=i.get("subtitlesBurnLevel"),s=i.get("subtitleSize"),u=[];if(null!=a&&a!==o.a.ALWAYS){var c=t.save("subtitlesBurnLevel",a);c=c.then(function(){return i.save("subtitlesBurnLevel",void 0)}),u.push(c)}if(null!=s&&s!==e.subtitleSize){var d=t.save("subtitleSize",s);d=d.then(function(){return i.save("subtitleSize",void 0)}),u.push(d)}return n.i(l.a)(u)})
;return n.i(u.a)(a)}var a=n(3),r=n.n(a),s=n(13),o=n(272),l=n(417),u=n(123);t.a=i},function(e,t,n){"use strict";function i(){return new s.a,r.a.Deferred().resolve().promise()}var a=n(10),r=n.n(a),s=n(1423);t.a=i},function(e,t,n){"use strict";function i(){return new o.a,new l.a,new u.a,new c.a,new d.a,new p.a,new h.a,new f.a,s.a.history.start(),r.a.Deferred().resolve().promise()}var a=n(10),r=n.n(a),s=n(55),o=n(1746),l=n(1754),u=n(1748),c=n(1744),d=n(1752),p=n(1742),h=n(1756),f=n(1750);t.a=i
},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(13),s=n(59),o=n(15),l=n(71),u=n(1827),c=s.a.extend({mixins:l.a,announcementsUpdateDelay:36e5,initialize:function(){this.user=n.i(r.a)("appModel").get("user"),a.a.bindAll(this,"updateAnnouncements","onSignedInChange")},start:function(){var e=a.a.debounce(this.onAnnouncementsChange),t=a.a.debounce(this.onSignedInChange);this.listenTo(this.user,"change:signedIn",t),this.listenTo(this.user.get("desktop"),{"change:announcements":e,
"change:announcements.reset":e,"change:announcements.update":e,"change:announcements.change:read":e,"change:announcements.change:priority":e}),this.user.populate().fail(t)},stop:function(){clearTimeout(this.announcementsUpdateTimeout),this.user.get("desktop").get("announcements").reset(),this.stopListening()},updateAnnouncements:function(){!this.user.get("restricted")&&this.user.server.get("isConnected")&&(this.user.get("desktop").get("announcements").fetch(),
this.announcementsUpdateTimeout&&clearTimeout(this.announcementsUpdateTimeout),this.announcementsUpdateTimeout=setTimeout(this.updateAnnouncements,this.announcementsUpdateDelay))},onSignedInChange:function(){this.user.get("desktop").get("announcements").reset(),this.updateAnnouncements()},onAnnouncementsChange:function(){if(this.user.get("isSignedIn")&&!this.user.get("restricted")){var e=this.user.get("desktop").get("announcements"),t=e.findWhere({style:"priority",read:!1})
;t&&o.a.trigger("show:bar","alertbar",new u.a({model:t}))}}});t.a=c},function(e,t,n){"use strict";var i=n(15),a=n(1233),r=a.a.extend({fetchPrimaryRelations:function(e){var t=this,n=e.get("isFullOwnedServer"),i=e.get("isShared")&&e.supports("sharedSettings"),a=e.get("desktop").get("settings");if(n||i){var r=a.populate();n&&r.done(function(){var n=t.appModel.get("primaryServer");n&&n.id===e.id&&t.handlePrimarySettings(e,a)})}if(n){e.get("desktop").get("sessions").fetch({reset:!0})}
var s=e.get("home");if(e.get("activeConnection").get("isPrivate")||n||s){var o=this.appModel.get("players");o.reset(),o.setContext("server",e),o.fetch()}},handlePrimarySettings:function(e,t){var n=t.get("AcceptedEULA");n&&n.get("value")===!1&&i.a.trigger("navigate","setupBasic",{serverID:e.id})}});t.a=r},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(15),s=n(28),o=n(1237),l=n(79),u=n(80),c=o.a.extend({start:function(){o.a.prototype.start.call(this),
this.listenTo(this.servers,"change:isClaimed",this.onClaimedChange),this.listenTo(r.a,"cloudServer:addUnclaimedServer",this.onAddClaimedServer)},onAddClaimedServer:function(e){var t=this.appModel,n=t.get("cloudServer"),i=new l.c({},{parent:t}),r=a.a.isArray(e.Device.Connection)?e.Device.Connection:[e.Device.Connection];a.a.each(r,function(e){var t=e.uri,a=e.port,r=e.address,s=e.protocol;i.addConnection({uri:t,port:a,address:r,scheme:s,sources:[{id:n.id}]})},this),
u.a.isHostedHttps&&!i.get("isSecure")?s.a.execute("showClaimServerAlertBar",i):t.get("servers").add(i)},onClaimedChange:function(e,t){var n=e.get("isFullOwnedServer")&&e.get("isConnected"),i=t===!1&&!e.previous("isClaimed");n&&i&&s.a.execute("showClaimServerAlertBar",e)}});t.a=c},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(10),s=n.n(r),o=n(15),l=n(4),u=n(1229),c=n(44),d=n(364),p=u.a.prototype,h=u.a.extend({collectionNames:["homeDetails","homeUsers"],
flexCollectionNames:["devices","friends","invites","socialNetworks"],handleInvalidToken:function(){var e=new c.a({title:n.i(l.default)("Invalid Credentials"),message:n.i(l.default)("Your credentials have expired. Please sign in again."),confirmLabel:n.i(l.default)("OK"),cancelLabel:n.i(l.default)("Ignore")});e.promise.done(function(){o.a.trigger("navigate","login",{silent:!0})}),o.a.trigger("show:modal",e)},onIsSignedInChange:function(e,t){if(p.onIsSignedInChange.apply(this,arguments),
e.get("isFullUser")&&t){var n=e.server.getXHROptions("/api/claim/subscribe");s.a.ajax(a()({},n,{type:"POST"}))}},onIsLockedChange:function(e,t){p.onIsLockedChange.apply(this,arguments),t&&o.a.trigger("show:modal",new d.a({isForced:!0}))},onIsUnlockedChange:function(){}});t.a=h},function(e,t,n){"use strict";function i(e,t){function i(){var t=e.get("settings"),n=t.get("chromecastAppID"),i=t.get("chromecastCustomAppID");return n===m.a.CUSTOM&&i?i:n||m.a.PRODUCTION}function a(){
if(e.get("isCastApiAvailable"))return window.cast.framework.CastContext.getInstance()}function s(){if(q)return q.customData}function P(e){return e.isMute()?0:Math.round(100*e.getVolume())}function T(e){if(e){var t=e.customData,n=e.media;if(t&&t.playQueueType)return t.playQueueType;if(n&&n.metadata&&n.metadata.metadataType){var i=window.chrome.cast.media.MetadataType;switch(n.metadata.metadataType){case i.MOVIE:case i.TV_SHOW:return h.a;case i.MUSIC_TRACK:return h.b;case i.PHOTO:return h.c}}}}
function x(e){var t=s();t&&G(I.h({playQueueType:T(q),playerState:r()({},e,{mediaIndex:t.mediaIndex,partIndex:t.partIndex})}))}function E(){var e=window.chrome.cast.media.PlayerState,t=s();if(t){var n=t.providerIdentifier,i=t.containerKey,a=t.key,r=t.mediaIndex,o=t.partIndex,l=t.bitrate,u=t.server;G(I.g({playQueueType:T(q),options:{machineIdentifier:u.machineIdentifier,providerIdentifier:n,containerKey:i,key:a,mediaIndex:r,bitrate:l,initialState:{isPaused:q.playerState===e.PAUSED,
isBuffering:q.playerState===e.BUFFERING,positionSeconds:Math.round(q.currentTime||0),durationSeconds:Math.round(q.media.duration||0),controllable:D,mediaIndex:r,partIndex:o}}}))}}function N(){J||Z||K&&G(I.k(P(K)))}function L(){J&&J--}function A(){Z&&Z--}function k(){var e=s();if(e){var t=e.mediaIndex,n=e.bitrate;G(I.n({playQueueType:T(q),mediaIndex:t,bitrate:n}))}}function _(){var e=s();if(e){var t=e.audioStreamID,n=e.subtitleStreamID,i=e.mediaIndex,a=e.partIndex;null==t&&null==n||G(I.j({
playQueueType:T(q),mediaIndex:i,partIndex:a,audioStreamID:t,subtitleStreamID:n}))}}function O(e){var t=!!(e&&window.cast&&window.chrome&&window.chrome.cast);if(G(M.b(t)),!t)return void u.a.warn("[Cast] API is not available");var n=window.cast.framework,r=a();r.setOptions({receiverApplicationId:i(),autoJoinPolicy:window.chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED}),r.addEventListener(n.CastContextEventType.SESSION_STATE_CHANGED,j)}function j(e){
var t=window.cast.framework,i=e.session,a=e.sessionState,s=e.errorCode;switch(a){case t.SessionState.NO_SESSION:n.i(u.a)("[Cast] Session is not established");break;case t.SessionState.SESSION_STARTED:n.i(u.a)("[Cast] Session is established");break;case t.SessionState.SESSION_START_FAILED:n.i(u.a)('[Cast] Session failed to start with code "'+s+'"');break;case t.SessionState.SESSION_RESUMED:n.i(u.a)("[Cast] Connection to an already existing session is established");break
;case t.SessionState.SESSION_ENDED:u.a.warn("[Cast] Session has disconnected")}switch(K&&(K.removeEventListener(t.SessionEventType.MEDIA_SESSION,R),i.removeEventListener(t.SessionEventType.VOLUME_CHANGED,B)),a){case t.SessionState.NO_SESSION:case t.SessionState.SESSION_START_FAILED:case t.SessionState.SESSION_ENDED:U(!1),K=null,G(I.c());break;case t.SessionState.SESSION_STARTED:case t.SessionState.SESSION_RESUMED:K=i,i.addEventListener(t.SessionEventType.MEDIA_SESSION,R),
i.addEventListener(t.SessionEventType.VOLUME_CHANGED,B),G(M.c(r()({},i.getCastDevice(),{volume:P(i)})));var o=i.getMediaSession();o&&R({mediaSession:o})}}function R(e){var t=e.mediaSession;q&&q.removeUpdateListener(U),q=t,t.addUpdateListener(U)}function U(e){var t=window.chrome.cast.media.PlayerState;if(q&&e){var n=q.playerState;x({isPaused:n===t.PAUSED,isBuffering:n===t.BUFFERING,positionSeconds:Math.round(q.currentTime||0),durationSeconds:Math.round(q.media.duration||0),controllable:D}),E(),
k(),_(),n===t.PLAYING?X||(X=setTimeout(z,w)):X&&(clearTimeout(X),X=null)}else if(u.a.warn("[Cast] Update ignored; no alive media session"),X&&(clearTimeout(X),X=null),q){var i=T(q);i&&q.playerState===t.IDLE&&G(I.f({playQueueType:i}))}}function z(){q?(x({positionSeconds:Math.round(q.getEstimatedTime()||0)}),X=setTimeout(z,w)):u.a.warn("[Cast] Position update ignored; no media session")}function B(){N()}function F(){var e=a();e?(n.i(u.a)("[Cast] Requesting session"),
e.requestSession()):u.a.warn("[Cast] Request session ignored; no cast context")}function V(){var e=a();e?(n.i(u.a)("[Cast] Ending session"),e.endCurrentSession()):u.a.warn("[Cast] End session ignored; no cast context")}function Q(t){if(!K)return void u.a.warn("[Cast] Start playback ignored; no cast session")
;var i=e.get("user"),a=e.get("settings"),r=e.get("experienceSettings"),s=e.get("primaryServer"),h=t.get("playQueue"),f=h.get("type"),m=h.get("playQueueItems"),M=m.get(h.get("playQueueSelectedItemID")),C=M.get("metadataItem"),w=h.server,D=t.get("providerEntityID"),P=n.i(g.b)(e,{providerEntityID:D}),T=n.i(p.b)(M.get("type")),E=T&&T.mediaType===d.d?d.d:d.a,N=void 0;if(E===d.a){var L=n.i(y.a)(C,t,r),A=v.a.getQualityByIndex(L);N=A.bitrate}
var k=t.get("positionSeconds")||Math.floor(n.i(S.a)(t,C)/1e3),_=void 0;n.i(b.b)(w).then(function(e){return _=e,s&&s!==w?n.i(b.b)(s):e}).done(function(e){var r={playQueueType:f,providerIdentifier:P.get("identifier"),containerKey:c.join([o.a.result(h,"url")],{own:1}),offset:k,directPlay:a.get("directPlay"),directStream:a.get("directStream"),bitrate:N,subtitleSize:a.get("subtitleSize"),audioBoost:a.get("audioBoost"),server:_,primaryServer:e,user:{username:i.get("username")}
},s=window.chrome.cast.media,l=new s.MediaInfo(C.get("key"));l.customData=r;var d=new s.LoadRequest(l);d.currentTime=k,d.autoplay=!t.get("isPaused"),n.i(u.a)("[Cast] Sending load media request"),K.loadMedia(d).then(function(){n.i(u.a)("[Cast] Load media success"),x({isMediaLoading:!1})},function(e){u.a.warn('[Cast] Failed to load media with error "'+e+'"'),G(I.m({playQueueType:f}))})}).fail(function(){G(I.m({playQueueType:f,
errorMessage:n.i(l.default)('The server "{serverName}" does not have a valid connection for casting. Check that the server is claimed in server settings.',{serverName:w.get("friendlyName")})}))})}function H(t){if(!K)return void u.a.warn("[Cast] Mirror details ignored; no cast session");var i=e.get("user"),a=t.server;n.i(b.b)(a).done(function(e){var n={server:e,user:{username:i.get("username")}},a=window.chrome.cast.media,r=new a.MediaInfo(t.get("key"));r.customData=n,W({type:f.k,media:r})})}
function W(e){K?(n.i(u.a)('[Cast] Sending custom message with type "'+e.type+'"'),K.sendMessage(C,e,null,function(e){u.a.warn('[Cast] Failed to send custom message with error "'+e+'"')})):u.a.warn('[Cast] Custom message "'+e.type+'" ignored; no cast session')}function Y(e){if(!K)return void u.a.warn("[Cast] Set volume ignored; no cast session");n.i(u.a)('[Cast] Setting volume to "'+e+'"'),G(I.k(e)),e?(K.isMute()&&(Z++,K.setMute(!1).then(A,A)),J++,K.setVolume(e/100).then(L,L)):(Z++,
K.setMute(!0).then(A,A))}var G=t.dispatch,K=void 0,q=void 0,X=void 0,Z=0,J=0;window.__onGCastApiAvailable=O;var $=document.createElement("script");return $.src="//www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1",document.head.appendChild($),{requestSession:F,endSession:V,startPlayback:Q,mirrorDetails:H,sendMessage:W,setVolume:Y}}
var a=n(6),r=n.n(a),s=n(3),o=n.n(s),l=n(4),u=n(29),c=n(19),d=n(66),p=n(30),h=n(232),f=n(798),v=n(113),m=n(918),g=n(87),y=n(1804),b=n(595),S=n(396),I=n(185),M=n(425);t.a=i;var C="urn:x-cast:plex",w=1e3,D={volume:!0,shuffle:!0,quality:!0,audioStream:!0,videoStream:!0,subtitleStream:!0,skipPrevious:!0,skipNext:!0,seekTo:!0,stepBack:!0,stepForward:!0,stop:!0,playPause:!0}},function(e,t,n){"use strict";function i(e,t){function i(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=v.join(e,r()({},t,{commandID:z})),a=U.server,s=a.getXHROptions(i,r()({},n,{scope:x,headers:{"X-Plex-Target-Client-Identifier":U.get("machineIdentifier")}}));return u.a.ajax(s)}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};U&&i("/player/timeline/poll",e,{timeout:D}).done(function(t,i,r){B=0;var l=n.i(b.a)(t)
;if(n.i(m.a)(l.disconnected)&&e.wait)return void R(C.c());var u=U.get("machineIdentifier"),c=r.getResponseHeader("X-Plex-Client-Identifier"),p=n.i(g.a)(l.commandID);if(u===c&&p>=z){var h=n.i(y.a)(l.Timeline),f=o.a.findWhere(h,{type:"video"}),v=o.a.findWhere(h,{type:"music"}),S=o.a.findWhere(h,{type:"photo"});!f||v&&v.state!==d.a?v&&s(v):s(f),S&&s(S),z=p}a({wait:1})}).fail(function(t,n){t.aborting||("error"===n?(B++,e.wait&&B<=w?(f.a.warn("[Companion] Poll request failed; retrying..."),a({wait:1
})):(f.a.warn("[Companion] Poll request failed 3 times in a row; giving up"),R(C.c()))):a({wait:1}))})}function s(e){var t=e.type,i=e.state,a=e.machineIdentifier,r=e.containerKey,s=e.key,o=e.playQueueItemID,l=p.e(t),u=n.i(m.a)(e.continuing);if(i===d.a&&!u)return void R(C.f({playQueueType:l}))
;var c=n.i(g.a)(e.playQueueVersion),f=n.i(g.a)(e.time),v=n.i(g.a)(e.duration),y=n.i(g.a)(e.mediaIndex),b=n.i(g.a)(e.partIndex),S=e.audioStreamID?n.i(g.a)(e.audioStreamID):null,I=e.subtitleStreamID?n.i(g.a)(e.subtitleStreamID):null,M=n.i(g.a)(e.volume),w=n.i(g.a)(e.repeat),D=(e.controllable||"").split(","),P={positionSeconds:Math.floor(f/1e3),durationSeconds:Math.floor(v/1e3),mediaIndex:y,partIndex:b,isPaused:i===d.b,isBuffering:i===d.c,hasError:i===d.d,controllable:D.reduce(function(e,t){
return e[t]=!0,e},{})};R(C.g({playQueueType:l,options:{machineIdentifier:a,containerKey:r,key:s,playQueueItemID:o,initialState:P}})),R(C.h({playQueueType:l,playerState:P})),R(C.i({playQueueType:l,playQueueVersion:c,repeatAll:w===h.c||w===h.b,repeatOne:w===h.b})),R(C.j({playQueueType:l,mediaIndex:y,partIndex:b,audioStreamID:S,subtitleStreamID:I})),R(C.k(M))}function l(){F=null,null!=V&&(O(V),V=null)}function E(){Q=null,null!=H&&(j(H),H=null)}function N(t){U=e.get("players").get(t),U?(R(C.l(t)),
z=0,B=0,a()):f.a.warn('[Companion] Request session ignored; no player with identifier "'+t+'"')}function L(){if(!U)return void f.a.warn("[Companion] End session ignored; no current player");F&&(clearTimeout(F),F=null),Q&&(clearTimeout(Q),Q=null),S.a.abortAll(x),i("/player/timeline/unsubscribe"),U=null,V=null,H=null}function A(e){if(!U)return void f.a.warn("[Companion] Start playback ignored; no current player")
;var t=e.get("playQueue"),a=t.get("type"),r=t.get("playQueueItems"),s=r.get(t.get("playQueueSelectedItemID")),l=s.get("metadataItem"),u=t.server,d=1e3*e.get("positionSeconds")||Math.floor(n.i(M.a)(e,l));n.i(I.b)(u).done(function(e){var r={type:p.a(t.get("type")),containerKey:v.join([o.a.result(t,"url")],{own:1}),key:l.get("key"),offset:d,machineIdentifier:e.machineIdentifier,protocol:e.protocol,address:e.address,port:e.port,token:e.accessToken};n.i(f.a)("[Companion] Sending play media request"),
i("/player/playback/playMedia",r).done(function(){n.i(f.a)("[Companion] Play media success"),R(C.h({playQueueType:a,playerState:{isMediaLoading:!1}}))}).fail(function(e){f.a.warn('[Companion] Failed to play media with error "'+e.status+'"'),R(C.m({playQueueType:a}))})}).fail(function(){R(C.m({playQueueType:a,errorMessage:n.i(c.default)('The server "{serverName}" does not have a valid connection for casting. Check that the server is claimed in server settings.',{serverName:u.get("friendlyName")})
}))})}function k(e){if(!U)return void f.a.warn("[Companion] Mirror details ignored; no current player");var t=U.get("protocolCapabilities");if(!t||t.indexOf("mirror")===-1)return void f.a.warn("[Companion] Mirror details ignored; player does not advertise support for the `mirror` capability");var a=e.server;n.i(I.b)(a).done(function(t){i("/player/mirror/details",{key:e.get("key"),machineIdentifier:t.machineIdentifier,protocol:t.protocol,address:t.address,port:t.port,token:t.accessToken})})}
function _(e,t){U?(z++,i(e,t)):f.a.warn("[Companion] Command for "+e+" ignored; no current player")}function O(e){F?(clearTimeout(F),V=e):_("/player/playback/seekTo",e),F=setTimeout(l,P)}function j(e){Q?(clearTimeout(Q),H=e):_("/player/playback/setParameters",e),Q=setTimeout(E,T)}var R=t.dispatch,U=void 0,z=0,B=0,F=void 0,V=void 0,Q=void 0,H=void 0;return{requestSession:N,endSession:L,startPlayback:A,mirrorDetails:k,sendCommand:_,seek:O,changeVolume:j}}
var a=n(6),r=n.n(a),s=n(3),o=n.n(s),l=n(10),u=n.n(l),c=n(4),d=n(799),p=n(342),h=n(406),f=n(29),v=n(19),m=n(558),g=n(559),y=n(557),b=n(410),S=n(208),I=n(595),M=n(396),C=n(185);t.a=i;var w=3,D=2e4,P=200,T=200,x="remoteCastPlayerManager"},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r={collectionEvents:{"update reset sort":"onTracksUpdate"},markDiscNumbers:function(){if(this.collection.server.supports("premiumMusic")){var e=this.collection.reduce(function(e,t,n){var i=t.get("parentIndex")
;return i!==e.lastDiscNumber&&(e.markers[n]=i,e.lastDiscNumber=i,e.count+=1),e},{markers:{},lastDiscNumber:null,count:0});return this.discMarkers=e.markers,e.count}},onRender:function(){1!==this.markDiscNumbers()&&a.a.each(this.discMarkers,a.a.bind(function(e,t){this.$("li:eq("+t+") .disc-number").removeClass("hidden")},this))},onTracksUpdate:function(){this.render()}};t.a=r},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(295),s=n(1490),o=n(16),l=n(17),u=n(1245),c=n(1300),d=n(514),p=n(76),h=n(1695),f=n(585),v=n(1719),m=n(1638),g=u.a.extend({name:"DesktopAppModel",sessionAttrs:a()({},u.a.prototype.sessionAttrs,{isFirstRun:o.a.boolean.isRequired,isCastApiAvailable:o.a.boolean.isRequired,settings:o.a.instanceOf(m.a)}),sessionRelations:a()({},u.a.prototype.sessionRelations,{entities:{relationClass:n.i(s.a)(r)},players:{relationClass:c.a},remotePlayer:{relationClass:l.a,deferred:!0},
legacyChannelProvider:{relationClass:d.a,deferred:!0},legacyChannelMetadataItem:{relationClass:p.a,deferred:!0},multiSelect:{relationClass:h.a},experienceSettings:{relationClass:f.b},ui:{relationClass:v.a}}),defaults:function(){var e=u.a.prototype.defaults.apply(this,arguments);return a()({},e,{isFirstRun:!1,isCastApiAvailable:!1,settings:new m.a})}});t.a=g},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(341),s=n(1244),o=s.a.extend({storageKey:"settingsv2",
defaults:a()({},s.a.prototype.defaults,{showAdvancedSettings:!1,allowHttpFallback:r.a.NEVER,companion:!0,directPlay:!0,directStream:!0,audioBoost:100,"syncQuality!video":8,"syncQuality!music":2,"syncQuality!photo":2,announcementsLastReadTimestamp:0,serverUpdateDismissedVersion:"",hasDismissedPremiumMusicAlert:!1,hasSkippedInstallServer:!1,viewedUnclaimedServers:[],dismissedUnclaimedServers:[],relayConfirmed:!1,suppressLimitedPlaybackMessage:!1})});t.a=o},function(e,t,n){"use strict"
;var i=n(3),a=n.n(i),r=n(19),s=n(22),o=n(1640),l=s.a.extend({name:"DownloadServerCollection",context:["server"],url:function(){var e=a.a.result(this.server,"url");return r.join([e,"api/downloads/1"])},model:o.a});t.a=l},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(1641),s=a.a.extend({name:"DownloadServerModel",context:["server"],rootPropertyName:"Type",idAttribute:"name",syncedAttrs:{name:i.a.string},syncedRelations:{platforms:{rootPropertyName:"Platform",relationClass:r.a,
options:function(e){return{type:e.name}}}}});t.a=s},function(e,t,n){"use strict";var i=n(22),a=n(1642),r=i.a.extend({name:"DownloadServerPlatformCollection",context:["server","type"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(14),s=n.n(r),o=n(16),l=n(17),u=n(1643),c=l.a.extend({name:"DownloadServerPlatformModel",context:["server","type"],rootPropertyName:"Platform",idAttribute:"id",syncedAttrs:{id:o.a.string,name:o.a.string,version:o.a.string,date:o.a.integer,
requirements:o.a.string,fixed:o.a.string,added:o.a.string,info:o.a.string},syncedRelations:{releases:{rootPropertyName:"Release",relationClass:u.a}},derivedAttrs:{type:function(){return this.type}},augmentResponse:function(e){var t=e.release_date,n=e.extra_info,i=e.items_fixed,r=e.items_added,o=s()(e,["release_date","extra_info","items_fixed","items_added"]);return a()({},o,{info:n,fixed:i,added:r,date:t+"000"})}});t.a=c},function(e,t,n){"use strict";var i=n(22),a=n(1644),r=i.a.extend({
name:"DownloadServerReleaseCollection",context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"DownloadServerReleaseModel",context:["server"],modelId:function(){return this.get("build")+"-"+this.get("distro")},syncedAttrs:{label:i.a.string,build:i.a.string,distro:i.a.string,url:i.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(22),s=n(1646),o=r.a.extend({name:"ArtworkCollection",context:["server","artworkType"],model:s.a,
url:function(){return a.a.result(this.parent,"url")+"/"+this.artworkType+"s"}});t.a=o},function(e,t,n){"use strict";var i=n(16),a=n(17),r={POSTER:"poster",ART:"art",BANNER:"banner"},s=a.a.extend({name:"ArtworkModel",context:["server","artworkType"],idAttribute:"ratingKey",rootPropertyName:"Photo",syncedAttrs:{key:i.a.string,ratingKey:i.a.string,thumb:i.a.string,selected:i.a.boolean}},{types:r});t.a=s},function(e,t,n){"use strict";var i=n(22),a=n(1648),r=i.a.extend({name:"FileCollection",
model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"FileModel",idAttribute:"key",rootPropertyName:"File",syncedAttrs:{key:i.a.string,title:i.a.string,path:i.a.string,network:i.a.boolean}});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(1650),r=n(19),s=i.a.extend({name:"FilePathCollection",context:["server","includeFiles"],model:a.a,url:function(){var e={};return this.includeFiles&&(e.includeFiles=1),r.join(["/services/browse"],e)}});t.a=s
},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(19),s=a.a.extend({name:"FilePathModel",context:["server","includeFiles"],idAttribute:"key",rootPropertyName:"Path",sessionAttrs:{isBackShortcut:i.a.boolean},sessionRelations:{children:function(){var e={};return this.includeFiles&&(e.includeFiles=1),{relationClass:n(875).default,options:{url:r.join([this.id],e)}}}},syncedAttrs:{key:i.a.string,title:i.a.string,path:i.a.string,home:i.a.boolean,network:i.a.boolean}});t.a=s},function(e,t,n){
"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"MatchResultModel",context:["server"],idAttribute:"guid",rootPropertyName:"SearchResult",syncedAttrs:{id:i.a.integer,guid:i.a.string,name:i.a.string,parentGUID:i.a.string,parentName:i.a.string,type:i.a.string,index:i.a.integer,score:i.a.integer,thumb:i.a.string,year:i.a.integer,matched:i.a.boolean},syncedRelations:{children:function(){return{relationClass:n(876).default,rootPropertyName:"SearchResult"}}},derivedAttrs:{
normalizedScore:function(){var e=this.get("score");if(null!=e)return Math.min(Math.max(e,0),100)}}});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(1653),r=i.a.extend({name:"QueryLimitCollection",model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"QueryLimitModel",rootPropertyName:"Limit",syncedAttrs:{limit:i.a.integer,unit:i.a.string}});t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})
;var i=n(22),a=n(878),r=i.a.extend({name:"QueryRuleCollection",model:a.a});t.default=r},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(10),s=n.n(r),o=n(19),l=n(1260),u=n(1660),c=l.a.extend({defaults:function(){return{children:new u.a([],{server:this.server,parent:this})}},findItem:function(e){return this.get("children").get(e)},addContent:function(e){var t=[a.a.result(this,"url"),"items",e.id],n=o.join(t,e.getSaveParams()),i=a.a.extend(e.server.getXHROptions(n),{type:"PUT"}),r=s.a.ajax(i)
;return r.then(a.a.bind(function(e){this.set(this.parse(e))},this)),r.promise()}});t.a=c},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(10),s=n.n(r),o=n(15),l=n(49),u=n(19),c=n(739),d=n(332),p=c.a.extend({whitelistedAttrs:["playQueueID","playQueueSelectedItemID","playQueueSelectedItemOffset","playQueueSelectedMetadataItemID","playQueueLastAddedItemID","playQueueShuffled","playQueueSourceURI","playQueueTotalCount","playQueueVersion","message"],defaults:function(){return{selectedItem:null,
mediaType:null,owned:!0,hasUserAdditions:!1,playQueueVersion:0}},metadataElementNames:["Directory","Video","Track","Photo","Hub"],url:function(){return"/playQueues/"+this.id},initialize:function(){this.listenTo(this,"change:message",this.onMessageChange)},convert:function(e){var t=a.a.isObject(e)?e:l.a.parseXML(e);return l.a.parseBoolean(t,"playQueueShuffled"),l.a.parseInteger(t,["playQueueSelectedItemOffset","playQueueTotalCount","playQueueVersion"]),l.a.parseArray(t,"Metadata"),t},
parse:function(e,t){a.a.isString(e)&&(e=l.a.replaceXMLElementNames(e,this.metadataElementNames,"Metadata"));var n=this.convert(e);n.id&&(n.playQueueID=n.id);var i=a.a.pick(n,this.whitelistedAttrs);return this.set(i,{silent:!0}),this.pendingChanges=this.changed,this.parseItems(n),i},parseItems:function(e){var t=this.get("collection"),n=e.Metadata,i=!!n.length,r=a.a.pluck(n,"playQueueItemID").indexOf(e.playQueueSelectedItemID),s=e.playQueueSelectedItemOffset,o=s-r;a.a.each(n,function(t,n){
t.queueIndex=o+n,e.identifier&&(t.identifier=e.identifier),e.mediaTagPrefix&&(t.mediaTagPrefix=e.mediaTagPrefix),e.mediaTagVersion&&(t.mediaTagVersion=e.mediaTagVersion)}),t?t.set(n,{parse:i}):(t=new d.a(n,{server:this.server,parent:this,parse:i}),this.set("collection",t)),t.totalSize=e.playQueueTotalCount,t.availableRange={start:o,end:o+t.length}},moveItem:function(e,t){if(e===this.get("playQueueSelectedItemID"))return s.a.Deferred().resolve().promise();this.set("hasUserAdditions",!0);var n={
after:t||-1},i=u.join([a.a.result(this,"url"),"/items/",e,"/move"],n);return this._ajax("PUT",i)},queueContent:function(){throw new Error("Clients cannot queue background processing items.")},addContent:function(){throw new Error("Clients cannot add background processing items.")},removeItem:function(){throw new Error("Clients cannot remove background processing items directly. Generators (e.g. sync items) should be deleted.")},yieldOwnership:function(){
throw new Error("Only the admin owns the background processing queue.")},takeOwnership:function(){throw new Error("Only the admin owns the background processing queue.")},getUpNextRange:function(){var e=this.get("collection"),t=e.get(this.get("playQueueSelectedItemID")),n=e.indexOf(t),i=Math.max(n,0),a=i,r=this.get("playQueueLastAddedItemID");if(null!=r){var s=e.get(r),o=e.indexOf(s);o>i&&(a=o)}return{start:i,end:a}},_ajax:function(e,t){var n=a.a.extend(this.server.getXHROptions(t),{type:e
}),i=s.a.ajax(n);return i.done(a.a.bind(function(e){this.set(this.parse(e)),a.a.isEmpty(this.pendingChanges)||(a.a.each(this.pendingChanges,function(e,t){this.trigger("change:"+t,this,e)},this),this.trigger("change",this),this.pendingChanges=null),this.set("selectedItem",this.getCurrentItem())},this)),i.promise()},onMessageChange:function(e,t){t&&o.a.trigger("show:alert",{type:"error",message:t})}});t.a=p},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(49),s=n(75),o=s.a.extend({
idAttribute:"key",whitelistedAttrs:["queueItemID","generatorID","targetTagID","syncItemId","syncItemTitle","key","type","progress","speed","remaining","size","ratingKey","title","thumb"],convert:function(e){var t=a.a.isObject(e)?e:r.a.parseXML(e);return r.a.parseInteger(t,["queueItemID","generatorID","targetTagID","syncItemId","remaining","size"]),r.a.parseFloat(t,["progress","speed"]),t},parse:function(e){var t=this.convert(e);return t=a.a.pick(t,this.whitelistedAttrs)}});t.a=o
},function(e,t,n){"use strict";var i=n(234),a=n(108),r=n(1659),s=a.a.extend({model:r.a,url:"/clients/profiles?type="+i.a.LOCAL,parse:function(e){return this.convert(e,"Profile")}});t.a=s},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(49),s=n(75),o=s.a.extend({idAttribute:"title",whitelistedAttrs:["title","selected"],convert:function(e){var t=a.a.isObject(e)?e:r.a.parseXML(e);return r.a.parseBoolean(t,"selected"),t},parse:function(e,t){var n=this.convert(e)
;return n=a.a.pick(n,this.whitelistedAttrs)}});t.a=o},function(e,t,n){"use strict";var i=n(19),a=n(234),r=n(22),s=n(355),o=r.a.extend({name:"VersionGeneratorCollection",context:["server"],model:s.a,url:function(){return i.join(["playlists",this.parent.id,"items"],{type:a.a.LOCAL})}});t.a=o},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"VersionGeneratorMediaSettingsModel",context:["server"],syncedAttrs:{videoQuality:{type:i.a.integer,save:!0},videoResolution:{
type:i.a.string,save:!0},maxVideoBitrate:{type:i.a.integer,save:!0},audioBoost:{type:i.a.integer,save:!0},subtitleSize:{type:i.a.integer,save:!0},musicBitrate:{type:i.a.integer,save:!0},photoQuality:{type:i.a.integer,save:!0},photoResolution:{type:i.a.string,save:!0}}});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(1664),r=i.a.extend({name:"VersionGeneratorMetadataCollection",context:["server","generator"],model:a.a});t.a=r},function(e,t,n){"use strict"
;var i=n(3),a=n.n(i),r=n(82),s=n(19),o=n(271),l=n(16),u=n(52),c=n(17),d=n(1662),p=c.a.extend({mixins:[o.a],name:"VersionGeneratorMetadataListModel",context:["server","generator"],collectionName:"metadataItems",url:function e(){var e=s.join([a.a.result(this.generator,"url"),"items"]);return this.getPaginatedUrl(e)},sessionAttrs:{currentPageStart:l.a.integer,currentPageSize:l.a.integer,populatedRange:l.a.object},syncedAttrs:{totalSize:l.a.integer,identifier:l.a.string,mediaTagPrefix:l.a.string,
mediaTagVersion:l.a.string,viewGroup:l.a.string,title:l.a.string},syncedRelations:{metadataItems:{relationClass:d.a,rootPropertyName:"Metadata",setOptions:function(e){return{remove:e.remove,at:e.at}}}},defaults:function(){return{populatedRange:{start:0,end:0,size:0}}},initialize:function(){this.startPopulatedRangeMonitor()},augmentResponseText:function(e,t){return t===u.a.xml?n.i(r.a)(e):e}});t.a=p},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(16),s=n(17),o=n(76),l=s.a.extend({
name:"VersionGeneratorMetadataModel",context:["server","generator"],idAttribute:"ratingKey",syncedAttrs:a.a.extend({},o.a.prototype.syncedAttrs,{processingState:r.a.string,processingStateContext:r.a.string})});t.a=l},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"VersionGeneratorPolicyModel",context:["server"],syncedAttrs:{scope:{type:i.a.string,save:!0},value:{type:i.a.integer,save:!0},unwatched:{type:i.a.boolean,save:!0}},defaults:{unwatched:!1}});t.a=r},function(e,t,n){
"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"VersionGeneratorStatusModel",context:["server"],syncedAttrs:{state:i.a.string,failureCode:i.a.string,failure:i.a.string,itemsCount:i.a.integer,itemsCompleteCount:i.a.integer,itemsSuccessfulCount:i.a.integer,itemsFailedCount:i.a.integer,itemsDisabledCount:i.a.integer,totalSize:i.a.integer}});t.a=r},function(e,t,n){"use strict";var i=n(234),a=n(108),r=n(1668),s=a.a.extend({model:r.a,url:"/library/tags?type="+i.a.LOCAL,comparator:function(e){
return e.get("MediaSettings").maxVideoBitrate},parse:function(e){return this.convert(e,"Tag")}});t.a=s},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(49),s=n(75),o=s.a.extend({name:"VersionTargetModel",whitelistedAttrs:["id","tag","tagType","MediaSettings","Device"],convert:function(e){var t=a.a.isObject(e)?e:r.a.parseXML(e);return r.a.parseInteger(t,"id"),t},parse:function(e,t){var n=this.convert(e);return n=a.a.pick(n,this.whitelistedAttrs)}});t.a=o},function(e,t,n){"use strict"
;var i=n(22),a=n(1670),r=i.a.extend({name:"LockedFieldCollection",context:["server","section"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"LockedFieldModel",context:["server","section"],idAttribute:"name",syncedAttrs:{name:{type:i.a.string,save:!0},locked:{type:i.a.boolean,save:!0}}});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"MetadataAutocompleteResultModel",context:["server","section","multiMetadataItem","query"],
idAttribute:"ratingKey",rootPropertyName:"Metadata",syncedAttrs:{elementName:i.a.string,ratingKey:i.a.string,parentRatingKey:i.a.string,grandparentRatingKey:i.a.string,type:i.a.string,title:i.a.string,parentTitle:i.a.string,grandparentTitle:i.a.string,tag:i.a.string,tagType:i.a.integer}});t.a=r},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(203),s=n(19),o=n(30),l=n(16),u=n(17),c=n(1291),d=n(224),p=n(1669),h={album:{title:"title",parentRatingKey:"artist.id",parentTitle:"artist.title"},
track:{parentRatingKey:"album.id",parentTitle:"album.title",grandparentRatingKey:"artist.id",grandparentTitle:"artist.title"}},f=u.a.extend({name:"MultiMetadataModel",context:["server","section"],rootPropertyName:"Common",isNew:function(){return!1},url:function(){return s.join([this.sectionUrl(),"common"],this.getUrlParams())},saveUrl:function(){return s.join([this.sectionUrl(),"all"],this.getUrlParams())},sectionUrl:function(){return a.a.result(this.section,"url")},
tagRelations:["Collection","Director","Producer","Writer","Genre","Mood","Country","Label","Similar","Role"],sessionAttrs:{metadataItems:l.a.array.isRequired,originalSaveParams:l.a.object,poster:l.a.string,banner:l.a.string,art:l.a.string},syncedAttrs:{mixedFields:l.a.list.isRequired,key:{type:l.a.string,save:!0},ratingKey:{type:l.a.string,save:!0},parentRatingKey:{type:l.a.string,save:!0},grandparentRatingKey:{type:l.a.string,save:!0},title:{type:l.a.string,save:!0},titleSort:{type:l.a.string,
save:!0},originalTitle:{type:l.a.string,save:!0},parentTitle:{type:l.a.string,save:!0},grandparentTitle:{type:l.a.string,save:!0},year:{type:l.a.string,save:!0},tagline:{type:l.a.string,save:!0},summary:{type:l.a.string,save:!0},studio:{type:l.a.string,save:!0},contentRating:{type:l.a.string,save:!0},originallyAvailableAt:{type:l.a.string,save:!0},rating:{type:l.a.float,save:!0},userRating:{type:l.a.float,save:!0},index:{type:l.a.integer,save:!0},parentIndex:{type:l.a.integer,save:!0}},
sessionRelations:{preferences:{relationClass:d.a}},syncedRelations:{collections:{relationClass:c.a,rootPropertyName:"Collection",save:!0},directors:{relationClass:c.a,rootPropertyName:"Director",save:!0},producers:{relationClass:c.a,rootPropertyName:"Producer",save:!0},writers:{relationClass:c.a,rootPropertyName:"Writer",save:!0},genres:{relationClass:c.a,rootPropertyName:"Genre",save:!0},moods:{relationClass:c.a,rootPropertyName:"Mood",save:!0},countries:{relationClass:c.a,
rootPropertyName:"Country",save:!0},labels:{relationClass:c.a,rootPropertyName:"Label",save:!0},similar:{relationClass:c.a,rootPropertyName:"Similar",save:!0},roles:{relationClass:c.a,rootPropertyName:"Role",save:!0},lockedFields:{relationClass:p.a,rootPropertyName:"Field",save:!0}},derivedAttrs:{type:function(){var e=this.getSingleMetadataItem();if(e)return e.get("type")},aggregateTitle:function(){if(this.get("metadataItems").length)return r.a.title(null,{items:this.get("metadataItems")})},
isSingleMetadataItem:function(){return 1===this.get("metadataItems").length}},defaults:function(){return{metadataItems:[],mixedFields:[]}},initialize:function(e,t){this.set("metadataItems",a.a.clone(t.metadataItems))},getSingleMetadataItem:function(){return a.a.first(this.get("metadataItems"))},getUrlParams:function(){var e=n.i(o.b)(this.get("type")),t=a.a.map(this.get("metadataItems"),function(e){return e.get("ratingKey")});return{type:e.id,id:t.join(",")}},getSaveParams:function(){
var e=this,t=u.a.prototype.getSaveParams.apply(this,arguments),n=this.get("originalSaveParams");if(!n)return t;var i={};if(a.a.each(t,function(t,r){var s=n[r];a.a.isEqual(t,s)||a.a.extend(i,e.getSaveParam(r,t,s))}),i.isReparenting){delete i.isReparenting;var r=h[this.get("type")];a.a.each(r,function(t,n){var r=t+".value",s=e.getQueryAttrSibling(t),o=s+".value",l=a.a.has(i,r),u=a.a.has(i,o);if(l&&u&&r!==o&&delete i[o],!l&&!u){var c=e.get(n);c&&(i[r]=c)}})}return i},getSaveParam:function(e,t,n){
var i;if("Field"===e)return this.getFieldSaveParams(e,t,n);if(this.tagRelations.indexOf(e)!==-1)return this.getTagSaveParams(e,t,n);var r=h[this.get("type")];{if(!r||!a.a.has(r,e))return i={},i[e+".value"]=t,i;var s=r[e];if(t){var o;return o={isReparenting:!0},o[s+".value"]=t,o}}},getFieldSaveParams:function(e,t,n){return t.reduce(function(e,t){return e[t.name+".locked"]=t.locked,e},{})},getTagSaveParams:function(e,t,n){var i=a.a.map(t,function(e){return e.tag}),r=a.a.map(n,function(e){
return e.tag}),s=a.a.without.apply(a.a,[r].concat(i)),o=e.toLowerCase(),l={};return i.forEach(function(e,t){l[o+"["+t+"].tag.tag"]=e}),s.length&&(l[o+"[].tag.tag-"]=a.a.map(s,encodeURIComponent).join(",")),l},getQueryAttr:function(e){var t=this.get("type"),n=h[t];return n?n[e]||e:e},getQueryAttrSibling:function(e){var t=this.getQueryAttr(e).match(/(^.*\.)(.*$)/);return t?t[1]+("id"===t[2]?"title":"id"):e}});t.a=f},function(e,t,n){"use strict";var i=n(82),a=n(52),r=n(22),s=n(881),o=r.a.extend({
name:"SyncMetadataCollection",context:["server","device","syncItemId"],model:s.a,url:function(){return"/sync/items/"+this.syncItemId},augmentResponseText:function(e,t){return t===a.a.xml?n.i(i.a)(e):e}});t.a=o},function(e,t,n){"use strict";var i=n(552),a=n(22),r=n(1675),s=a.a.extend({name:"MediaGrabberDeviceChannelCollection",context:["server"],model:r.a,comparator:function(e,t){return n.i(i.a)(e.get("identifier"),t.get("identifier"))}});t.a=s},function(e,t,n){"use strict"
;var i=n(17),a=n(16),r=i.a.extend({name:"MediaGrabberDeviceChannelModel",rootPropertyName:"DeviceChannel",idAttribute:"key",syncedAttrs:{key:a.a.string,identifier:a.a.string,name:a.a.string,drm:a.a.boolean,hd:a.a.boolean},augmentResponse:function(e){return e.key=e.key||e.identifier,e}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(16),r=i.a.extend({name:"DVRNetworkModel",sessionAttrs:{key:a.a.string,title:a.a.string}});t.a=r},function(e,t,n){"use strict"
;var i=n(22),a=n(1678),r=i.a.extend({name:"DVRSetupErrorMessageCollection",model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(16),r=i.a.extend({name:"DVRSetupErrorMessageModel",sessionAttrs:{id:a.a.string,message:a.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(886),r=i.a.extend({name:"EPGCountryCollection",context:["server"],model:a.a,url:"/livetv/epg/countries"});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(887),r=i.a.extend({
name:"EPGCountryRegionCollection",context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(1683),r=i.a.extend({name:"EPGCountryRegionCollection",context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(16),r=n(1681),s=i.a.extend({name:"EPGLineupGroupModel",context:["server"],idAttribute:"uuid",syncedAttrs:{uuid:a.a.string},syncedRelations:{lineups:{relationClass:r.a,rootPropertyName:"Lineup"}}});t.a=s},function(e,t,n){"use strict"
;var i=n(17),a=n(16),r=i.a.extend({name:"EPGLineupModel",context:["server"],idAttribute:"uuid",rootPropertyName:"Lineup",syncedAttrs:{uuid:a.a.string,type:a.a.string,title:a.a.string,lineupType:a.a.integer,location:a.a.string},defaults:{location:""}});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(16),r=n(1679),s=n(886),o=n(1687),l=n(583),u=n(1682),c=n(1680),d=n(887),p=i.a.extend({name:"EPGSettingsModel",context:["server"],sessionAttrs:{baseUrl:a.a.string,postalCode:a.a.string,
isFetching:a.a.boolean,isPopulated:a.a.boolean},sessionRelations:{countries:{relationClass:r.a},languages:{relationClass:o.a},regions:{relationClass:c.a},lineupGroup:{relationClass:u.a},selectedCountry:{relationClass:s.a,deferred:!0},selectedLanguage:{relationClass:l.a,deferred:!0},selectedRegion:{relationClass:d.a,deferred:!0}},defaults:{baseUrl:"/livetv/epg/countries",isFetching:!1,isPopulated:!1,postalCode:""}});t.a=p},function(e,t,n){"use strict";var i=n(22),a=n(1686),r=i.a.extend({
name:"EPGChannelCollection",context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(17),a=n(16),r=i.a.extend({name:"EPGChannelModel",context:["server"],rootPropertyName:"Channel",idAttribute:"identifier",syncedAttrs:{identifier:a.a.string,callSign:a.a.string,thumb:a.a.string,title:a.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(583),r=i.a.extend({name:"EPGLanguageCollection",context:["server"],model:a.a,url:"/livetv/epg/languages"});t.a=r},function(e,t,n){
"use strict";var i=n(17),a=n(16),r=i.a.extend({name:"ChannelMappingModel",context:["server"],rootPropertyName:"ChannelMapping",idAttribute:"deviceIdentifier",syncedAttrs:{deviceIdentifier:a.a.string,lineupIdentifier:a.a.string,enabled:a.a.boolean},defaults:{enabled:!1}});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(1690),r=i.a.extend({name:"SearchHubCollection",context:["server","provider"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(1691),s=a.a.extend({
name:"SearchHubModel",context:["server","provider"],idAttribute:"hubIdentifier",syncedAttrs:{hubIdentifier:i.a.string,size:i.a.integer,type:i.a.string,title:i.a.string},syncedRelations:{results:{relationClass:r.a,rootPropertyName:"Metadata"}}});t.a=s},function(e,t,n){"use strict";var i=n(22),a=n(1692),r=i.a.extend({name:"SearchResultCollection",context:["server","provider"],model:a.a});t.a=r},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(14),s=n.n(r),o=n(16),l=n(295),u=n(53),c=n(17),d=n(749),p=n(76),h=c.a.extend({name:"SearchResultModel",context:["server","provider"],entityType:l.SEARCH_RESULT,entityID:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state;return n.i(u.a)(this.entityType,e.key,this.server.entityID())},idAttribute:"key",syncedAttrs:{key:o.a.string,reasonID:o.a.integer,reason:o.a.string,reasonTitle:o.a.string},syncedRelations:{tagItem:{relationClass:d.a,
deferred:!0},metadataItem:{relationClass:p.a,deferred:!0}},augmentResponse:function(e){var t,n=e.key,i=e.reason,r=e.reasonTitle,o=e.reasonID,l=s()(e,["key","reason","reasonTitle","reasonID"]),u=l.tag?"tagItem":"metadataItem";return t={key:n,reason:i,reasonTitle:r,reasonID:o},t[u]=a()({key:n},l),t}});t.a=h},function(e,t,n){"use strict";var i=n(22),a=n(1694),r=i.a.extend({name:"MultiSelectItemCollection",model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({
name:"MultiSelectItemModel",sessionAttrs:{id:i.a.any.isRequired,type:i.a.string.isRequired},sessionRelations:{model:{relationClass:a.a,deferred:!0}}});t.a=r},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(16),s=n(17),o=n(1693),l=s.a.extend({name:"MultiSelectModel",sessionAttrs:{activeSelectionRange:r.a.object},sessionRelations:{activeSelectionItems:{relationClass:o.a}},derivedAttrs:{activeSelectionType:function(){var e=this.get("activeSelectionItems").first();if(e)return e.get("type")}},
initialize:function(){this.listenTo(this.get("activeSelectionItems"),{remove:this.resetSelectionRange,reset:this.resetSelectionRange})},listenToCollection:function(e){this.stopListening(e),this.listenTo(e,{reset:this.onCollectionReset,remove:this.onCollectionRemove})},resetSelectionRange:function(){this.set("activeSelectionRange",null)},onCollectionReset:function(e,t){var n=this.get("activeSelectionItems"),i=t.previousModels;a.a.each(i,function(t){e.contains(t)||n.remove(t.id)})},
onCollectionRemove:function(e){this.get("activeSelectionItems").remove(e.id)}});t.a=l},function(e,t,n){"use strict";var i=n(16),a=n(52),r=n(17),s=r.a.extend({name:"AgentAttributionModel",context:["server"],responseType:a.a.text,syncedAttrs:{content:i.a.string},url:function(){return"/system/agents/attribution?identifier="+this.parent.id},augmentResponse:function(e){return{content:e}}});t.a=s},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(1696),s=n(1700),o=a.a.extend({name:"AgentModel",
context:["server"],idAttribute:"identifier",rootPropertyName:"Agent",sessionAttrs:{isPrimary:i.a.boolean,selected:i.a.boolean},sessionRelations:{attribution:{relationClass:r.a}},syncedAttrs:{identifier:i.a.string,name:i.a.string,enabled:i.a.boolean,hasPrefs:i.a.boolean,order:i.a.string},syncedRelations:{languages:{relationClass:s.a,rootPropertyName:"Language"}}});t.a=o},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(1702),s=n(1705),o=a.a.extend({name:"CloudServerFlexModel",
context:["server"],sessionAttrs:{isPersonalCloudServerRestarting:i.a.boolean,personalCloudServerRestartError:i.a.object,isOauthProvidersPending:i.a.boolean,isOauthProvidersPopulated:i.a.boolean,oauthProvidersError:i.a.object,isPersonalCloudServerStatusPending:i.a.boolean,isPersonalCloudServerStatusPopulated:i.a.boolean,personalCloudServerStatusError:i.a.object},sessionRelations:{oauthProviders:{relationClass:r.a},personalCloudServerStatus:{relationClass:s.a}},defaults:{
isPersonalCloudServerRestarting:!1,personalCloudServerRestartError:null,isOauthProvidersPending:!1,isOauthProvidersPopulated:!1,oauthProvidersError:null,isPersonalCloudServerStatusPending:!1,isPersonalCloudServerStatusPopulated:!1,personalCloudServerStatusError:null}});t.a=o},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(389),s=n.n(r),o=s.a.extend({constructor:function(e,t,n,i){this.exclusiveScanners=t,this.scannerName=n,s.a.call(this,e,i),
this.filterBy(a.a.bind(this.filterExclusiveScanner,this))},filterExclusiveScanner:function(e){var t=e.get("name"),n=this.exclusiveScanners;if(!n)return!0;var i=this.scannerName,a=n.indexOf(i)!==-1,r=n.indexOf(t)!==-1;return a?t===i:!r}});t.a=o},function(e,t,n){"use strict";var i=n(22),a=n(1701),r=i.a.extend({name:"LanguageCollection",context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(821),a=n(16),r=n(17),s=r.a.extend({name:"LanguageModel",context:["server"],
idAttribute:"code",rootPropertyName:"Language",syncedAttrs:{code:a.a.string},derivedAttrs:{name:function(){return n.i(i.a)(this.get("code"))}}});t.a=s},function(e,t,n){"use strict";var i=n(22),a=n(52),r=n(1703),s=i.a.extend({name:"OauthProviderCollection",model:r.a,context:["server"],url:"/api/v2/authentications/providers",responseType:a.a.json});t.a=s},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(1704),s=a.a.extend({name:"OauthProviderModel",rootPropertyName:"provider",sessionAttrs:{
isUnlinking:i.a.boolean.isRequired,unlinkError:i.a.object},syncedAttrs:{authName:i.a.string,image:i.a.string,label:i.a.string.isRequired,linked:i.a.boolean.isRequired,nickname:i.a.string,url:i.a.string.isRequired},syncedRelations:{usage:{relationClass:r.a}},defaults:{isUnlinking:!1}});t.a=s},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"OauthProviderUsageModel",syncedAttrs:{plexCloud:i.a.boolean,cloudSync:i.a.boolean,federatedAuth:i.a.boolean,other:i.a.boolean}});t.a=r
},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"PersonalCloudServerStatusModel",context:["server"],url:"/api/v2/cloud_server",syncedAttrs:{running:i.a.boolean,startedAt:i.a.integer,finishedAt:i.a.integer,exitCode:i.a.integer,error:i.a.string},defaults:{running:!1}});t.a=r},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(22),s=n(1707),o=r.a.extend({name:"ScannerCollection",context:["server","sectionTypeID"],model:s.a,url:function(){
return"/system/scanners/"+this.sectionTypeID},hasExclusiveScanner:function(e){return!!a.a.intersection(this.pluck("name"),e).length}});t.a=o},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"ScannerModel",context:["server"],rootPropertyName:"Scanner",syncedAttrs:{name:i.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(22),a=n(1709),r=i.a.extend({name:"SectionOverviewCollection",context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict"
;var i=n(16),a=n(17),r=a.a.extend({name:"SectionOverviewModel",context:["server"],rootPropertyName:"Section",syncedAttrs:{id:i.a.integer,key:i.a.string,type:i.a.string,title:i.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(61),r=n(17),s=n(1303),o=n(510),l=n(515),u=n(1317),c=n(198),d=n(1313),p=n(1320),h=n(1318),f=n(1306),v=r.a.extend({name:"ServerFlexModel",context:["server"],sessionAttrs:{update:i.a.instanceOf(u.a),settings:i.a.instanceOf(c.a).isRequired,
alerts:i.a.instanceOf(d.a).isRequired,transcodeJobs:i.a.instanceOf(p.a).isRequired,isProvidersPending:i.a.boolean.isRequired,isProvidersPopulated:i.a.boolean.isRequired,providersError:i.a.object,isLibrariesPending:i.a.boolean.isRequired,isLibrariesPopulated:i.a.boolean.isRequired,librariesError:i.a.object},sessionRelations:{cloudAccount:{relationClass:l.g},providers:{relationClass:s.a},libraries:{relationClass:o.a},sessions:{relationClass:h.a},activities:{relationClass:f.a}},defaults:function(){
return{update:a.a.get("allowServerUpdates")?new u.a({},{server:this.server}):null,settings:new c.a([],{server:this.server}),alerts:new d.a([],{server:this.server}),transcodeJobs:new p.a([],{server:this.server}),sessions:new h.a([],{server:this.server}),isProvidersPending:!0,isProvidersPopulated:!1,providersError:null,isLibrariesPending:!0,isLibrariesPopulated:!1,librariesError:null}}});t.a=v},function(e,t,n){"use strict";var i=n(22),a=n(1712),r=i.a.extend({name:"ServerOverviewCollection",
context:["server"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(1708),s=a.a.extend({name:"ServerOverviewModel",context:["server"],idAttribute:"machineIdentifier",rootPropertyName:"Server",urlRoot:"/api/servers",syncedAttrs:{machineIdentifier:i.a.string,name:i.a.string,address:i.a.string,port:i.a.string,version:i.a.string,createdAt:i.a.integer,updatedAt:i.a.integer},syncedRelations:{sections:{relationClass:r.a,rootPropertyName:"Section"}}});t.a=s},function(e,t,n){
"use strict";var i=n(22),a=n(586),r=i.a.extend({name:"SyncItemCollection",context:["server","device"],model:a.a});t.a=r},function(e,t,n){"use strict";var i=n(240),a=n(16),r=n(17),s=n(1713),o={ACTIVE:"active",SNOOZED:"snoozed",DEAD:"dead"},l=r.a.extend({name:"SyncListModel",context:["server","device"],url:function(){return this.device?"/devices/"+this.device.get("clientIdentifier")+"/sync_items":"/servers/"+this.server.id+"/sync_lists"},syncedAttrs:{status:a.a.oneOf("active","snoozed","dead"),
clientIdentifier:a.a.string,version:a.a.integer,itemsCompleteCount:a.a.integer,totalSize:a.a.integer},syncedRelations:{syncItems:{relationClass:s.a,rootPropertyName:"SyncItems"}},derivedAttrs:{isActive:function(){return"active"===this.get("status")}},augmentResponse:function(e){return e.SyncItems&&(e.SyncItems=e.SyncItems.SyncItem),e},sync:function(e,t,n){var a=i.a.addVersionHeaderForDevice(this.get("device"),n);return r.a.prototype.sync.call(this,e,t,a)},getCollection:function(){
return this.get("syncItems")},resetToServer:function(e){var t=this.getCollection(),n=t.filter(function(t){var n=t.get("Server");return n&&n.machineIdentifier===e});t.reset(t.clone(n).models)}},{statuses:o});t.a=l},function(e,t,n){"use strict";var i=n(17),a=n(16),r=i.a.extend({name:"AudioSubtitleSettingsPageModel",sessionAttrs:{isUpdatingUserProfile:a.a.boolean.isRequired,updateUserProfileError:a.a.string},defaults:{isUpdatingUserProfile:!1,updateUserProfileError:null}});t.a=r},function(e,t,n){
"use strict";var i=n(16),a=n(17),r=n(79),s=a.a.extend({name:"BackgroundModel",sessionAttrs:{imageUrl:i.a.string,themeMusicUrl:i.a.string,allowLightPreset:i.a.boolean,isBackgroundPending:i.a.boolean},sessionRelations:{server:{relationClass:r.c,deferred:!0}},defaults:{allowLightPreset:!1,isBackgroundPending:!1}});t.a=s},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"ClaimServerPageModel",sessionAttrs:{isClaimServerRequest:i.a.boolean.isRequired,isBusy:i.a.boolean.isRequired,
errorMessage:i.a.string},defaults:{isClaimServerRequest:!1,isBusy:!1,errorMessage:null}});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(176),s=a.a.extend({name:"DashboardPageModel",sessionAttrs:{serverEntityID:i.a.string,hubKey:i.a.string,isHubsPending:i.a.boolean.isRequired,isHubsPopulated:i.a.boolean.isRequired,hubsError:i.a.object},sessionRelations:{hubs:{relationClass:r.default,deferred:!0}},defaults:{isHubsPending:!0,isHubsPopulated:!1,hubsError:null}});t.a=s},function(e,t,n){
"use strict";var i=n(17),a=n(1330),r=n(1731),s=n(1716),o=n(1718),l=n(1723),u=n(1720),c=n(1726),d=n(1732),p=n(1725),h=n(1721),f=n(1729),v=n(1717),m=n(1722),g=n(1727),y=n(1730),b=n(1728),S=n(1715),I=n(1724),M=i.a.extend({name:"DesktopUIModel",sessionRelations:{background:{relationClass:s.a},signInLaunchPage:{relationClass:r.a},dashboardPage:{relationClass:o.a},metadataListPage:{relationClass:l.a},libraryPage:{relationClass:u.a},prePlayPage:{relationClass:c.a},timelinePage:{relationClass:d.a},
playlistsPage:{relationClass:p.a},liveTVSettingsPage:{relationClass:h.a},recordingSchedulePage:{relationClass:f.a},claimServerPage:{relationClass:v.a},mediaSubscriptionModal:{relationClass:m.a},provisionPersonalCloudServerPage:{relationClass:g.a},searchPage:{relationClass:y.a},quickSearch:{relationClass:b.a},photoPlayer:{relationClass:a.a},audioVideoPlayer:{relationClass:a.a},audioSubtitleSettingsPage:{relationClass:S.a},playlistPage:{relationClass:I.a}}});t.a=M},function(e,t,n){"use strict"
;var i=n(16),a=n(17),r=n(88),s=n(268),o=n(509),l=n(393),u=n(877),c=a.a.extend({name:"LibraryPageModel",sessionAttrs:{serverEntityID:i.a.string,libraryKey:i.a.string,containerKey:i.a.string,isDetailsPending:i.a.boolean.isRequired,isDetailsPopulated:i.a.boolean.isRequired,detailsError:i.a.object,isFirstCharactersPending:i.a.boolean.isRequired,isFirstCharactersPopulated:i.a.boolean.isRequired,firstCharactersError:i.a.object,selectedFilterKey:i.a.string,filterOptionQuery:i.a.string,
isSelectedFilterOptionsPending:i.a.boolean.isRequired,isSelectedFilterOptionsPopulated:i.a.boolean.isRequired,selectedFilterOptionsError:i.a.object,isQueryParsePending:i.a.boolean.isRequired,isQueryParsePopulated:i.a.boolean.isRequired,queryParseError:i.a.object,typeKey:i.a.string},sessionRelations:{metadataList:{relationClass:r.default,deferred:!0},details:{relationClass:s.a,deferred:!0},firstCharacters:{relationClass:o.a,deferred:!0},selectedFilterOptions:{relationClass:l.a,deferred:!0},
queryParse:{relationClass:u.a,deferred:!0}},defaults:{isDetailsPending:!0,isDetailsPopulated:!1,detailsError:null,isFirstCharactersPending:!0,isFirstCharactersPopulated:!1,firstCharactersError:null,selectedFilterKey:null,filterOptionQuery:"",isSelectedFilterOptionsPending:!0,isSelectedFilterOptionsPopulated:!1,selectedFilterOptionsError:null,isQueryParsePending:!0,isQueryParsePopulated:!1,queryParseError:null}});t.a=c},function(e,t,n){"use strict"
;var i=n(16),a=n(17),r=n(884),s=n(423),o=a.a.extend({name:"LiveTVSettingsPageModel",sessionAttrs:{isDvrsPending:i.a.boolean,isDvrsPopulated:i.a.boolean,dvrsError:i.a.object,isPagePopulated:i.a.boolean},sessionRelations:{dvrs:{relationClass:r.a,deferred:!0},dvrSetup:{relationClass:s.b,deferred:!0}},defaults:{isDvrsPending:!1,isDvrsPopulated:!1,dvrsError:null,isPagePopulated:!1}});t.a=o},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(758),s=n(395),o=a.a.extend({
name:"MediaSubscriptionModalModel",sessionAttrs:{isMediaSubscriptionPending:i.a.boolean,isMediaSubscriptionPopulated:i.a.boolean,mediaSubscriptionError:i.a.object,isMediaSubscriptionSaving:i.a.boolean,mediaSubscriptionSaveError:i.a.object,isMediaSubscriptionMoving:i.a.boolean,mediaSubscriptionMoveError:i.a.object,isMediaSubscriptionDeleting:i.a.boolean,mediaSubscriptionDeleteError:i.a.object},sessionRelations:{templates:{relationClass:r.a,deferred:!0},mediaSubscription:{relationClass:s.a,
deferred:!0}},defaults:{isMediaSubscriptionPending:!0,isMediaSubscriptionPopulated:!1,mediaSubscriptionError:null,isMediaSubscriptionSaving:!1,mediaSubscriptionSaveError:null,isMediaSubscriptionMoving:!1,mediaSubscriptionMoveError:null,isMediaSubscriptionDeleting:!1,mediaSubscriptionDeleteError:null}});t.a=o},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(88),s=a.a.extend({name:"MetadataListPageModel",sessionAttrs:{serverEntityID:i.a.string,listKey:i.a.string},sessionRelations:{
metadataList:{relationClass:r.default,deferred:!0}}});t.a=s},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(76),s=n(511),o=a.a.extend({name:"PlaylistPageModel",sessionAttrs:{serverEntityID:i.a.string,providerEntityID:i.a.string,metadataKey:i.a.string,isPlaylistPending:i.a.boolean.isRequired,isPlaylistPopulated:i.a.boolean.isRequired,playlistError:i.a.object,isPlaylistItemListPending:i.a.boolean.isRequired,isPlaylistItemListPopulated:i.a.boolean.isRequired,playlistItemListError:i.a.object},
sessionRelations:{playlist:{relationClass:r.a,deferred:!0},playlistItemList:{relationClass:s.a,deferred:!0}},defaults:{isPlaylistPending:!0,isPlaylistPopulated:!1,playlistError:null,isPlaylistItemListPending:!0,isPlaylistItemListPopulated:!1,playlistItemListError:null}});t.a=o},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(268),s=n(334),o=n(88),l=a.a.extend({name:"PlaylistsPageModel",sessionAttrs:{serverEntityID:i.a.string,libraryKey:i.a.string,containerKey:i.a.string,
isLibraryDetailsPending:i.a.boolean.isRequired,isLibraryDetailsPopulated:i.a.boolean.isRequired,libraryDetailsError:i.a.object,isSortsPending:i.a.boolean.isRequired,isSortsPopulated:i.a.boolean.isRequired,sortsError:i.a.object},sessionRelations:{libraryDetails:{relationClass:r.a,deferred:!0},playlists:{relationClass:o.default,deferred:!0},sorts:{relationClass:s.a,deferred:!0}},defaults:{isLibraryDetailsPending:!0,isLibraryDetailsPopulated:!1,libraryDetailsError:null,isSortsPending:!0,
isSortsPopulated:!1,sortsError:null}});t.a=l},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(76),s=n(88),o=n(176),l=a.a.extend({name:"PrePlayPageModel",sessionAttrs:{serverEntityID:i.a.string,metadataKey:i.a.string,descendantKey:i.a.string,siblingKey:i.a.string,isMetadataItemPending:i.a.boolean.isRequired,isMetadataItemPopulated:i.a.boolean.isRequired,metadataItemError:i.a.object,isRelatedHubsPending:i.a.boolean.isRequired,isRelatedHubsPopulated:i.a.boolean.isRequired,
relatedHubsError:i.a.object,isFileUnavailable:i.a.boolean,decisionMediaItem:i.a.object},sessionRelations:{metadataItem:{relationClass:r.a,deferred:!0},descendantList:{relationClass:s.default,deferred:!0},siblingList:{relationClass:s.default,deferred:!0},relatedHubs:{relationClass:o.default,deferred:!0}},defaults:{isMetadataItemPending:!0,isMetadataItemPopulated:!1,metadataItemError:null,isRelatedHubsPending:!0,isRelatedHubsPopulated:!1,relatedHubsError:null,isFileUnavailable:!1}});t.a=l
},function(e,t,n){"use strict";var i=n(17),a=n(16),r=i.a.extend({name:"ProvisionPersonalCloudServerModel",sessionAttrs:{isPersonalCloudServerModalOpen:a.a.boolean,isProvisionPersonalCloudServerPending:a.a.boolean,isProvisionPersonalCloudServerPopulated:a.a.boolean,provisionPersonalCloudServerError:a.a.object,isConnectToPersonalCloudServerPending:a.a.boolean,isConnectToPersonalCloudServerPopulated:a.a.boolean,connectToPersonalCloudServerError:a.a.object,
isPersonalCloudServerDriveCachePending:a.a.boolean,isPersonalCloudServerDriveCachePopulated:a.a.boolean,personalCloudServerDriveCacheError:a.a.object},defaults:{isPersonalCloudServerModalOpen:!1,isProvisionPersonalCloudServerPending:!1,isProvisionPersonalCloudServerPopulated:!1,provisionPersonalCloudServerError:null,isConnectToPersonalCloudServerPending:!1,isConnectToPersonalCloudServerPopulated:!1,connectToPersonalCloudServerError:null,isPersonalCloudServerDriveCachePending:!1,
isPersonalCloudServerDriveCachePopulated:!1,personalCloudServerDriveCacheError:null}});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(889),s=a.a.extend({name:"QuickSearchModel",sessionAttrs:{query:i.a.string,providerIdentifier:i.a.string,sectionID:i.a.string,selectedResultEntityID:i.a.string,channelPlaceholder:i.a.string,channelID:i.a.string,channelSearchKey:i.a.string},sessionRelations:{searches:{relationClass:r.a}},defaults:{query:"",selectedResultEntityID:null}});t.a=s
},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(757),s=n(891),o=a.a.extend({name:"RecordingSchedulePageModel",sessionAttrs:{isPagePopulated:i.a.boolean,isMediaSubscriptionsPending:i.a.boolean,isMediaSubscriptionsPopulated:i.a.boolean,mediaSubscriptionsError:i.a.object,isCalendarPending:i.a.boolean,isCalendarPopulated:i.a.boolean,calendarError:i.a.object},sessionRelations:{mediaSubscriptions:{relationClass:r.a,deferred:!0},calendar:{relationClass:s.a,deferred:!0}},defaults:{
isPagePopulated:!1,isMediaSubscriptionsPending:!1,isMediaSubscriptionsPopulated:!1,mediaSubscriptionsError:null,isCalendarPending:!1,isCalendarPopulated:!1,calendarError:null}});t.a=o},function(e,t,n){"use strict";var i=n(17),a=n(889),r=i.a.extend({name:"SearchPageModel",sessionRelations:{searches:{relationClass:a.a}}});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"SignInLaunchPageModel",sessionAttrs:{isBusy:i.a.boolean.isRequired,hasStoredPIN:i.a.boolean,
isFederatedAuthEnabled:i.a.boolean.isRequired,code:i.a.string,pinID:i.a.integer,isFailedPIN:i.a.boolean.isRequired,isUnrecoverableError:i.a.boolean.isRequired,myPlexAccessToken:i.a.string},defaults:{isBusy:!1,hasStoredPIN:!1,isFederatedAuthEnabled:!1,code:null,pinID:null,isFailedPIN:!1,isUnrecoverableError:!1,myPlexAccessToken:null}});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(88),s=n(268),o=n(744),l=a.a.extend({name:"TimelinePageModel",sessionAttrs:{serverEntityID:i.a.string,
momentKey:i.a.string,isDetailsPending:i.a.boolean.isRequired,isDetailsPopulated:i.a.boolean.isRequired,detailsError:i.a.object,isMomentListPending:i.a.boolean.isRequired,isMomentListPopulated:i.a.boolean.isRequired,momentListError:i.a.object},sessionRelations:{metadataList:{relationClass:r.default,deferred:!0},details:{relationClass:s.a,deferred:!0},momentList:{relationClass:o.a,deferred:!0}},defaults:{isDetailsPending:!0,isDetailsPopulated:!1,detailsError:null,isMomentListPending:!0,
isMomentListPopulated:!1,momentListError:null}});t.a=l},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(22),s=n(1734),o=r.a.extend({name:"DeviceCollection",context:["server"],model:s.a,url:"/devices.xml",filterSyncDevices:function(e){var t=!(!e||!e.channel),n=!!e&&e.server.get("isShared"),i=!!e&&e.get("isPlaylist"),r=this.filter(function(e){var a=e.get("syncList"),r=a&&a.get("version")>=2,s=(t||n)&&e.get("isCloudSync"),o=i&&!r;return e.supports("sync-target")&&!s&&!o
}),s=a.a.sortBy(r,function(e){return!e.get("isCloudSync")});return this.clone(s)},filterByProducts:function(e){var t=this.filter(function(t){return a.a.contains(e,t.get("product"))});return this.clone(t)},products:function e(){var e=this.map(function(e){return e.get("product")});return a.a.uniq(e)}});t.a=o},function(e,t,n){"use strict";var i=n(16),a=n(17),r=n(1714),s=a.a.extend({name:"DeviceModel",context:["server"],rootPropertyName:"Device",url:function(){return"/devices/"+this.id+".xml"},
syncedAttrs:{id:i.a.string,clientIdentifier:i.a.string,name:i.a.string,product:i.a.string,productVersion:i.a.string,platform:i.a.string,platformVersion:i.a.string,device:i.a.string,model:i.a.string,provides:i.a.list,screenResolution:i.a.string,screenDensity:i.a.string,lastSeenAt:i.a.integer},syncedRelations:{syncList:{relationClass:r.a,rootPropertyName:"SyncList",deferred:!0,options:function(){return{device:this}}}},derivedAttrs:{isCloudSync:function(){return"cloudsync"===this.get("platform")},
isPersonalCloudServer:function(){return"Cloud"===this.get("platform")}},supports:function(e){return this.get("provides").indexOf(e)!==-1}});t.a=s},function(e,t,n){"use strict";var i=n(22),a=n(1736),r=i.a.extend({name:"SubscriptionPlanCollection",context:["server"],model:a.a,url:"/api/subscriptions/plans"});t.a=r},function(e,t,n){"use strict";var i=n(16),a=n(17),r=a.a.extend({name:"SubscriptionPlanModel",context:["server"],rootPropertyName:"plan",syncedAttrs:{id:i.a.string,name:i.a.string,
price:i.a.float,formattedPrice:i.a.string,currency:i.a.string}});t.a=r},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(16),s=n(17),o=n(519),l=n(1333),u=n(1335),c=n(1339),d=n(1331),p=n(1733),h=n(1735),f=n(1738),v=s.a.extend({name:"UserFlexModel",context:["server"],sessionAttrs:{friends:r.a.instanceOf(l.a).isRequired,invites:r.a.instanceOf(u.a).isRequired,sentInvites:r.a.instanceOf(u.a).isRequired,socialNetworks:r.a.instanceOf(c.a).isRequired,isPlansPending:r.a.boolean.isRequired,
isPlansPopulated:r.a.boolean.isRequired,plansError:r.a.object,isDeletingAvatar:r.a.boolean.isRequired,isUpdatingUser:r.a.boolean.isRequired,updateUserError:r.a.object,isUnwatchedWatchLaterListPending:r.a.boolean.isRequired,isUnwatchedWatchLaterListPopulated:r.a.boolean.isRequired,unwatchedWatchLaterListError:r.a.object,isUnwatchedRecommendedListPending:r.a.boolean.isRequired,isUnwatchedRecommendedListPopulated:r.a.boolean.isRequired,unwatchedRecommendedListError:r.a.object,
isWebhooksPending:r.a.boolean,isWebhooksPopulated:r.a.boolean,webhooksError:r.a.object,isUpdatingWebhooks:r.a.boolean,isRemovingWebhooks:r.a.boolean,updateWebhooksError:r.a.object},sessionRelations:{devices:{relationClass:p.a},announcements:{relationClass:d.a},plans:{relationClass:h.a},unwatchedWatchLaterList:{relationClass:o.a,attrs:{key:o.a.keys.WATCH_LATER,subset:o.a.subsets.UNWATCHED}},unwatchedRecommendedList:{relationClass:o.a,attrs:{key:o.a.keys.RECOMMENDED,subset:o.a.subsets.UNWATCHED}},
webhooks:{relationClass:f.a}},defaults:function(){var e={server:this.server,parent:this};return{devices:new p.a([],e),friends:new l.a([],e),invites:new u.a([],e),sentInvites:new u.a([],a.a.extend({subset:"requested"},e)),socialNetworks:new c.a([],e),isPlansPending:!0,isPlansPopulated:!1,plansError:null,isDeletingAvatar:!1,isUpdatingUser:!1,updateUserError:null,isUnwatchedWatchLaterListPending:!0,isUnwatchedWatchLaterListPopulated:!1,unwatchedWatchLaterListError:null,
isUnwatchedRecommendedListPending:!0,isUnwatchedRecommendedListPopulated:!1,unwatchedRecommendedListError:null,isWebhooksPending:!1,isWebhooksPopulated:!1,webhooksError:null,isUpdatingWebhooks:!1,isRemovingWebhooks:!1,updateWebhooksError:null}}});t.a=v},function(e,t,n){"use strict";var i=n(22),a=n(52),r=n(1739),s=i.a.extend({name:"WebhookCollection",context:["server"],model:r.a,url:"/api/v2/user/webhooks",responseType:a.a.json});t.a=s},function(e,t,n){"use strict"
;var i=n(16),a=n(17),r=a.a.extend({name:"WebhookModel",syncedAttrs:{url:i.a.string},defaults:{url:""}});t.a=r},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(10),s=n.n(r),o=n(18),l=n(15),u=o.a.Region.extend({resizeSubscribersCallbacks:[],scrollSubscribersCallbacks:[],sidebarDelay:200,scrollDelay:100,initialize:function(e){a.a.bindAll(this,"onResize","onScroll","onScrollEvent","onSidebarChange"),this.$el=s()(this.el),this.channelName=e.channelName;var t={}
;t[this.channelName+".subscribe:resize"]=this.onResizeSubscribe,t[this.channelName+".unsubscribe:resize"]=this.onResizeUnsubscribe,t[this.channelName+".subscribe:scroll"]=this.onScrollSubscribe,t[this.channelName+".unsubscribe:scroll"]=this.onScrollUnsubscribe,this.listenTo(l.a,t)},updateSize:function(){this.size={width:this.$el.width(),height:this.$el.height(),innerWidth:this.$el.innerWidth(),innerHeight:this.$el.innerHeight(),outerWidth:this.$el.outerWidth(),outerHeight:this.$el.outerHeight(),
offset:this.$el.offset()}},updateScrollPosition:function(){this.scrollPosition={scrollHeight:this.$el[0].scrollHeight,scrollTop:this.$el[0].scrollTop}},onShow:function(){this.updateSize(),this.updateScrollPosition()},onResizeSubscribe:function(e){this.resizeSubscribersCallbacks.push(e),1===this.resizeSubscribersCallbacks.length&&(this.updateSize(),this.listenTo(l.a,{resize:this.onResize,"show:bar hide:bar":this.onSidebarChange})),e(this.size)},onResizeUnsubscribe:function(e){
this.resizeSubscribersCallbacks.splice(a.a.indexOf(this.resizeSubscribersCallbacks,e),1),0===this.resizeSubscribersCallbacks.length&&this.stopListening(l.a,"resize show:bar hide:bar")},onScrollSubscribe:function(e){this.scrollSubscribersCallbacks.push(e),1===this.scrollSubscribersCallbacks.length&&(this.updateScrollPosition(),this.$el.on("scroll",this.onScroll)),e(this.scrollPosition)},onScrollUnsubscribe:function(e){
this.scrollSubscribersCallbacks.splice(a.a.indexOf(this.scrollSubscribersCallbacks,e),1),0===this.scrollSubscribersCallbacks.length&&this.$el.off("scroll",this.onScroll)},onResize:function(){this.updateSize(),a.a.each(this.resizeSubscribersCallbacks,function(e){e(this.size)},this)},onScroll:function(){this.scrollTimeout=clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(this.onScrollEvent,this.scrollDelay)},onScrollEvent:function(){this.updateScrollPosition(),
a.a.each(this.scrollSubscribersCallbacks,function(e){e(this.scrollPosition)},this)},onSidebarChange:function(e){"sidebar"===e&&a.a.delay(this.onResize,this.sidebarDelay)}});t.a=u},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(10),s=n.n(r),o=n(13),l=n(4),u=n(15),c=n(200),d=n(879),p=n(354),h=n(582),f=n(1820),v=n(298),m=c.a.extend({activity:function(){this.populateView({primaryServer:!0}).done(a.a.bind(function(e){var t=e.server
;t.get("shared")?this.sync(t.id):u.a.trigger("show:view",new f.a({model:t,collection:t.get("desktop").get("alerts"),subset:"alerts"}))},this))},alerts:function(e){var t;t=e?{serverID:e}:{primaryServer:!0},this.populateView(t).done(function(e){var t=e.server;u.a.trigger("show:view",new f.a({model:t,collection:t.get("desktop").get("alerts"),subset:"alerts"}))})},sync:function(e,t){var i=this.populateView({serverID:"myPlex"});i=i.then(a.a.bind(function(t){var n;return n=e?{serverID:e}:{
primaryServer:!0},this.populateView(n)},this)),i.done(function(e){var i=o.a("appModel"),a=i.get("user"),r=a.get("desktop").get("devices"),s=r.populate();s.done(function(){var n=r.filterSyncDevices(),i=t?n.get(t):null;u.a.trigger("show:view",new f.a({model:e.server,collection:n,selectedDevice:i,subset:"sync"}))}),s.fail(function(){u.a.trigger("show:view",new v.a({title:n.i(l.default)("Sync status is unavailable.")}))})})},conversion:function(e){var t;t=e?{serverID:e}:{primaryServer:!0},
this.populateView(t).done(function(e){var t,i,a=e.server,r=new d.a([],{server:a,allowInCache:!0}),o=new p.a([],{server:a,allowInCache:!0}),c=new h.a([],{server:a,allowInCache:!0}),m=s.a.when(r.populate(),o.fetch(),a.get("desktop").get("settings").fetch(),c.populate()).then(function(){t=r.first();var e=c.first();return t&&e?(i=e.get("children"),s.a.when(t.fetch(),i.fetch())):s.a.Deferred().reject().promise()});m.done(function(){u.a.trigger("show:view",new f.a({model:a,playQueue:t,transcodeJobs:o,
generators:i,subset:"conversion"}))}),m.fail(function(){u.a.trigger("show:view",new v.a({title:n.i(l.default)("The conversion queue is unavailable.")}))})})},nowPlaying:function(e){var t;t=e?{serverID:e}:{primaryServer:!0},this.populateView(t).done(function(e){var t=e.server;u.a.trigger("show:view",new f.a({model:t,collection:t.get("desktop").get("sessions"),subset:"nowPlaying"}))})}});t.a=m},function(e,t,n){"use strict";var i=n(201),a=n(1741),r=i.a.extend({controller:new a.a,appRoutes:{
"!/activity":"activity","!/activity/alerts(/:serverID)":"alerts","!/activity/sync(/:serverID)(/:deviceID)":"sync","!/activity/conversion(/:serverID)":"conversion","!/activity/playing(/:serverID)":"nowPlaying","!/status":"activity","!/status/alerts(/:serverID)":"alerts","!/status/sync(/:serverID)(/:deviceID)":"sync","!/status/conversion(/:serverID)":"conversion","!/status/playing(/:serverID)":"nowPlaying"}});t.a=r},function(e,t,n){"use strict"
;var i=n(4),a=n(15),r=n(200),s=n(735),o=n(1834),l=n(1835),u=n(1833),c=n(924),d=n(298),p=r.a.extend({channel:function(e,t,n){this.populateView({serverID:e,channelID:t,channelKey:n}).done(function(e){var t=e.channelItem?e.channelItem:e.channel;a.a.trigger("show:view",new o.a({model:t,listModel:t.get("metadataList")}))})},channelDetails:function(e,t,n){this.populateView({serverID:e,channelID:t,channelKey:n}).done(function(e){var t=e.channelItem.get("metadataList").getCollection(),n=t.first()
;a.a.trigger("show:view",new c.a({model:n}))})},channels:function(e){this.populateView({serverID:e}).done(function(e){var t=new s.a({subset:"all"},{server:e.server}),r=t.get("channels");r.comparator=r.sortByTitle;var o=t.fetch({scope:"page"});o.done(function(){a.a.trigger("show:view",new l.a({collection:r}))}),o.fail(function(){a.a.trigger("show:view",new d.a({title:n.i(i.default)("Your channels are unavailable.")}))})})},directory:function(e,t,r){this.populateView({serverID:e
}).done(function(e){if(e.server.get("shared"))return void a.a.trigger("show:view",new d.a({title:n.i(i.default)("The channel directory is restricted from shared users.")}));var o=new s.a({key:"/system/appstore"},{server:e.server}),l=o.fetch({scope:"page"});l.done(function(){a.a.trigger("show:view",new u.a({collection:o.get("channels"),currentKey:t,currentPath:r}))}),l.fail(function(){a.a.trigger("show:view",new d.a({title:n.i(i.default)("The channel directory is unavailable.")}))})})}});t.a=p
},function(e,t,n){"use strict";var i=n(201),a=n(1743),r=i.a.extend({controller:new a.a,appRoutes:{"!/server/:serverID/channel/:channelID(/:key)":"channel","!/server/:serverID/channel/:channelID/details/:key":"channelDetails","!/server/:serverID/channels":"channels","!/server/:serverID/directory(/:key)(/:path)":"directory"}});t.a=r},function(e,t,n){"use strict"
;var i=n(15),a=n(19),r=n(13),s=n(112),o=n(1349),l=n(1809),u=n(1839),c=n(1838),d=n(1837),p=n(921),h=n(922),f=n(1812),v=n(1811),m=n(1867),g=n(298),y=n(1868),b=n(1869),S=n(1870),I=n(1871),M={error:g.a,channelError:m.a,notFound:y.a,serverRequired:b.a,unauthorized:S.a,unavailable:I.a},C=o.a.extend({getViewByType:function(e){if("signIn"===e){var t=n.i(r.a)("appModel");return t.get("ui").get("signInLaunchPage").get("isFederatedAuthEnabled")||t.get("user").get("features").get(s.b)?h.a:p.a}return M[e]},
initialize:function(){o.a.prototype.initialize.apply(this,arguments),this.listenTo(i.a,"initialize:app",this.onAppInitialize)},dashboard:function(e,t){this.populateView().done(function(){i.a.trigger("show:view",new u.a({selectedServerID:e,params:a.parseParams(t)}))})},list:function(e,t,n){var r=a.parseParams(n);this.populateView().done(function(){i.a.trigger("show:view",new c.a({selectedServerID:e,selectedProviderID:t,params:r}))})},needsUpdate:function(e){this.populateView().done(function(){
n.i(r.a)("appModel").get("servers").findWhere({isOutOfDate:!0})?i.a.trigger("show:view",new d.a({selectedServerID:e})):i.a.trigger("navigate","dashboard",{replace:!0})})},logs:function(){i.a.trigger("show:view",new f.a({collection:n.i(r.a)("logs")}))},info:function(){i.a.trigger("show:view",new v.a)},onAppInitialize:function(){this.appView=new l.a,this.appView.render()}});t.a=C},function(e,t,n){"use strict";var i=n(55),a=n(15),r=n(1350),s=n(1745),o=r.a.extend({controller:new s.a,appRoutes:{
"!/dashboard":"dashboard","!(/server/:serverID)/dashboard":"dashboard","!(/server/:serverID)(/provider/:providerID)/list":"list","!(/server/:serverID)/needsUpdate":"needsUpdate","":"dashboard","!/login":"login","!/unauthorized":"unauthorized","!/logs":"logs","!/info":"info","*404":"error"},onNavigateRefreshDashboard:function(){var e=i.a.history.getFragment();""===e||"!/dashboard"===e?i.a.history.loadUrl(""):a.a.trigger("navigate","dashboard")}});t.a=o},function(e,t,n){"use strict"
;var i=n(15),a=n(19),r=n(200),s=n(1813),o=n(1986),l=n(1984),u=n(1983),c=n(1985),d=n(1988),p=n(1987),h=r.a.extend({search:function(e,t){this.populateView().done(function(){i.a.trigger("show:view",new s.a({selectedServerID:e,query:t}))})},provider:function(e,t,n){this.populateView().done(function(){i.a.trigger("show:view",new o.a({selectedServerID:e,selectedProviderID:t,params:a.parseParams(n)}))})},timeline:function(e,t,n){this.populateView().done(function(){i.a.trigger("show:view",new p.a({
selectedServerID:e,selectedProviderID:t,params:a.parseParams(n)}))})},playlists:function(e,t,n){this.populateView().done(function(){i.a.trigger("show:view",new l.a({selectedServerID:e,selectedProviderID:t,params:a.parseParams(n)}))})},playlist:function(e,t,n){this.populateView().done(function(){i.a.trigger("show:view",new u.a({selectedServerID:e,selectedProviderID:t,key:n}))})},prePlay:function(e,t,n){this.populateView().done(function(){i.a.trigger("show:view",new c.a({selectedServerID:e,
selectedProviderID:t,params:a.parseParams(n)}))})},transientPrePlay:function(e,t){this.populateView().done(function(){i.a.trigger("show:view",new d.a({selectedProviderID:e,params:a.parseParams(t)}))})},section:function(e,t){var n=encodeURIComponent("/library/sections/"+t);this.provider(e,void 0,"key="+n)},details:function(e,t){this.prePlay(e,void 0,"key="+encodeURIComponent(t))}});t.a=h},function(e,t,n){"use strict";var i=n(201),a=n(1747),r=i.a.extend({controller:new a.a,appRoutes:{
"!/server/:serverID/search/:query":"search","!/server/:serverID(/provider/:providerID)":"provider","!/server/:serverID(/provider/:providerID)/timeline":"timeline","!/server/:serverID(/provider/:providerID)/playlists":"playlists","!/server/:serverID(/provider/:providerID)/playlist?key=:key":"playlist","!/server/:serverID(/provider/:providerID)/details":"prePlay","!/transient/provider/:providerID/details":"transientPrePlay","!/server/:serverID?key=:sectionID":"section",
"!/server/:serverID/details?key=:key":"details"}});t.a=r},function(e,t,n){"use strict";var i=n(15),a=n(19),r=n(200),s=n(1989),o=r.a.extend({schedule:function(e,t){this.populateView().done(function(){i.a.trigger("show:view",new s.a({selectedServerID:e,params:a.parseParams(t)}))})}});t.a=o},function(e,t,n){"use strict";var i=n(201),a=n(1749),r=i.a.extend({controller:new a.a,appRoutes:{"!(/server/:serverID)/schedule":"schedule"}});t.a=r},function(e,t,n){"use strict"
;var i=n(10),a=n.n(i),r=n(13),s=n(19),o=n(4),l=n(15),u=n(200),c=n(1312),d=n(198),p=n(1994),h=n(298),f=u.a.extend({settings:function(){return this.webSettings()},webSettings:function(){this.populateView().done(function(){function e(){l.a.trigger("show:view",new p.a({model:i,subset:"web"}))}var t=n.i(r.a)("appModel"),i=t.get("settings"),a=t.get("user"),s=a.get("homeUsers"),o=a.server.populate();o.done(function(){a.get("signedIn")?s.populate().always(e):e()}),o.fail(e)})},
serverSettings:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";s.parseParams(i).claim&&n.i(r.a)("appModel").get("ui").get("claimServerPage").set("isClaimServerRequest",!0);var u;u=e?{serverID:e}:{primaryServer:!0},this.populateView(u).done(function(e){var i=e.server;if(i.get("shared"))return void l.a.trigger("show:view",new h.a({title:n.i(o.default)("Server settings are restricted from shared users.")}));var r=i.get("desktop").get("settings"),s=new c.a({
key:"/accounts/1"},{server:i}),u=i.get("desktop").get("cloudAccount"),f=new d.a([],{server:i,url:"/system/:/prefs"}),v=a.a.when(r.fetch(),s.fetch({scope:"page"}),u.fetch({scope:"page"}),f.fetch({scope:"page"}));v.done(function(){l.a.trigger("show:view",new p.a({model:i,collection:i.get("desktop").get("settings"),account:s,cloudAccount:u,channelSettings:f,subset:"server",group:t}))}),v.fail(function(){l.a.trigger("show:view",new h.a({title:n.i(o.default)("Server settings are unavailable.")}))})})
},users:function(e){this.populateView({serverID:"myPlex"}).done(function(t){var i=n.i(r.a)("appModel"),s=i.get("user"),u=s.get("homeUsers"),c=s.get("homeDetails"),d=s.get("desktop").get("friends"),f=s.get("desktop").get("invites"),v=s.get("desktop").get("sentInvites"),m=a.a.Deferred(),g=c.fetch();g.done(function(){m.resolve()}),g.fail(function(e,t){404===t.status?m.resolve():m.reject()});var y=a.a.when(s.fetch({scope:"page"}),u.fetch({scope:"page"}),d.fetch({scope:"page"}),f.fetch({scope:"page"
}),v.fetch({scope:"page"}),m.promise());y.done(function(){var t=!1;"pin"===e?(e="home",t=!0):e||(e=f.length&&!f.findWhere({home:!0})?"friends":"home"),l.a.trigger("show:view",new p.a({model:i.get("user"),subset:"users",usersSubset:e,promptPIN:t}))}),y.fail(function(){var t;t="friends"===e?n.i(o.default)("Your friends are unavailable."):n.i(o.default)("Your home is unavailable."),l.a.trigger("show:view",new h.a({title:t}))})})},devices:function(){this.populateView({serverID:"myPlex"
}).done(function(e){var t=n.i(r.a)("appModel"),i=t.get("user"),a=i.get("desktop").get("devices"),s=a.fetch({scope:"page"});s.done(function(){l.a.trigger("show:view",new p.a({model:i,collection:a,subset:"devices"}))}),s.fail(function(){l.a.trigger("show:view",new h.a({title:n.i(o.default)("Your devices are unavailable.")}))})})}});t.a=f},function(e,t,n){"use strict";var i=n(201),a=n(1751),r=i.a.extend({controller:new a.a,appRoutes:{"!/settings":"settings","!/settings/web":"webSettings",
"!/settings/server(/:serverID)(/:group)":"serverSettings","!/settings/users":"users","!/settings/users(/:subset)":"users","!/settings/devices":"devices"}});t.a=r},function(e,t,n){"use strict";var i=n(34),a=n(64),r=n(15),s=n(200),o=n(13),l=n(893),u=n(2018),c=s.a.extend({setupBasic:function(e){var t;t=e?{serverID:e}:{primaryServer:!0},this.populateView(t).done(function(e){r.a.trigger("show:view",new u.a({model:e.server,subset:"setupBasic"}))})},setupLibrary:function(){this.populateView({
primaryServer:!0}).done(function(e){r.a.trigger("show:view",new u.a({model:e.server,subset:"setupLibrary"}))})},setupChannels:function(){this.populateView({primaryServer:!0}).done(function(e){r.a.trigger("show:view",new u.a({model:e.server,subset:"setupChannels"}))})},setupComplete:function(){this.populateView({primaryServer:!0}).done(function(e){r.a.trigger("show:view",new u.a({model:e.server,subset:"setupComplete"}))})},setupSkipSignIn:function(e){this.populateView({primaryServer:!0
}).then(function(){var e=n.i(o.a)("appModel"),t=e.get("primaryServer");return n.i(l.a)(t)}).then(function(){n.i(o.a)("metrics").trackClick({page:i.D,action:a.a,firstRun:!0}),window.location.href=e})}});t.a=c},function(e,t,n){"use strict";var i=n(201),a=n(1753),r=i.a.extend({controller:new a.a,appRoutes:{"!/setup/skipSignIn?forwardUrl=:forwardUrl":"setupSkipSignIn","!/setup/library":"setupLibrary","!/setup/channels":"setupChannels","!/setup/complete":"setupComplete",
"!/setup(/:serverID)":"setupBasic"}});t.a=r},function(e,t,n){"use strict";var i=n(13),a=n(4),r=n(15),s=n(35),o=n(200),l=n(1815),u=n(1817),c=n(1816),d=n(1818),p=n(1836),h=n(763),f=n(519),v=n(2021),m=n(2019),g=n(924),y=n(298),b=n(2020),S=o.a.extend({account:function(){this.populateView({serverID:"myPlex"}).done(function(){n.i(s.a)(),r.a.trigger("show:view",new l.a)})},personalCloud:function(){var e=i.a("appModel"),t=e.get("user");this.populateView({serverID:"myPlex"}).done(function(){n.i(s.a)(),
r.a.trigger("show:view",new u.a({model:t}))})},audioSubtitleSettings:function(){this.populateView({serverID:"myPlex"}).done(function(){n.i(s.a)(),r.a.trigger("show:view",new c.a)})},webhooks:function(){var e=i.a("appModel"),t=e.get("user");this.populateView({serverID:"myPlex"}).done(function(){n.i(s.a)(),r.a.trigger("show:view",new d.a({model:t}))})},cpms:function(){this.populateView({serverID:"myPlex"}).done(function(){r.a.trigger("show:view",new p.a)})},userPlaylist:function(e,t){
this.populateView({serverID:"myPlex"}).done(function(s){var o=i.a("appModel"),l=o.get("user"),u=new f.a({key:e},{server:l.server,parent:l}),c=u.fetch({scope:"page"});c.done(function(){r.a.trigger("show:view",new v.a({model:o.get("user"),listModel:u,subset:t}))}),c.fail(function(){r.a.trigger("show:view",new y.a({title:n.i(a.default)("This playlist is unavailable.")}))})})},userPlaylistDetails:function(e,t){this.populateView({serverID:"myPlex"}).done(function(s){
var o=i.a("appModel"),l=o.get("user"),u=new h.a({id:parseInt(t,10)},{server:s.server,parent:l,containerKey:e}),c=u.fetch({scope:"page"});c.done(function(){r.a.trigger("show:view",new g.a({model:u}))}),c.fail(function(){r.a.trigger("show:view",new y.a({title:n.i(a.default)("This playlist item is unavailable.")}))})})},queueHelp:function(){this.populateView({serverID:"myPlex"}).done(function(){var e=i.a("appModel"),t=e.get("user");r.a.trigger("show:view",new b.a({queueEmail:t.get("queueEmail")}))
})},announcements:function(){this.populateView().done(function(){var e=i.a("appModel"),t=e.get("user"),s=t.get("desktop").get("announcements"),o=s.fetch({scope:"page"});o.done(function(){r.a.trigger("show:view",new m.a({collection:s}))}),o.fail(function(){r.a.trigger("show:view",new y.a({title:n.i(a.default)("Announcements are not available.")}))})})}});t.a=S},function(e,t,n){"use strict";var i=n(201),a=n(1755),r=i.a.extend({controller:new a.a,appRoutes:{"!/account":"account",
"!/account/plex-cloud":"personalCloud","!/account/webhooks":"webhooks","!/account/audio-subtitle":"audioSubtitleSettings","!/cpms":"cpms","!/playlist/queue/help":"queueHelp","!/playlist/:key(/:subset)":"userPlaylist","!/playlist/:key/details/:itemID":"userPlaylistDetails","!/announcements":"announcements"}});t.a=r},function(e,t,n){"use strict"
;var i=n(399),a=n(525),r=n(122),s=n(227),o=n(589),l=n(894),u=n(1758),c=n(1790),d=n(1769),p=n(1765),h=n(140),f=n(125),v=n(1767),m=n(1768),g=n(115),y=n(1772),b=n(1773),S=n(1779),I=n(1776),M=n(1783),C=n(1788),w=n(898),D=n(1770),P=n(1782),T=n(1784),x=n(1785),E=n(1787),N=n(1777),L=n(1775),A=n(1759),k=n(1786),_=n(1778),O=n(1781),j=n(588),R=n(897),U=n(185),z=n(425),B=n(896),F=[o.g,l.e,u.a,c.a,d.a,p.a,h.metadataActionHandlers,f.k,v.a,m.a,g.c,y.a,b.a,S.a,I.a,M.a,C.a,w.d,D.a,P.a,T.a,x.a,E.a,N.a,L.a,A.a,k.a,_.a,i.c,a.d,r.u,s.j,O.a,j.c,R.b,U.o,z.d,B.d]
;t.a=F},function(e,t,n){"use strict";var i,a=n(6),r=n.n(a),s=n(3),o=n.n(s),l=n(13),u=n(1807),c=n(15),d=n(572),p=n(840),h=n(839),f=n(63),v=n(35),m=n(1491),g=n(1950),y=n(37),b=n(86),S=n.i(f.a)((i={},i[y.F]=function(e,t){var n=t.name,i=t.settings;e.get(n).save(i)},i[y.G]=function(e,t){var n=new g.a({downloadType:t});c.a.trigger("show:modal",n)},i[y.H]=function(e){c.a.trigger("discover:servers")},i[y._135]=function(e){e.set({primaryServer:null,isWaitingForPrimaryServer:!0})},
i[y._136]=function(e,t,i){var a=t.machineIdentifier,s=t.metricsProperties,o=void 0===s?{}:s;e.get("servers").findServer(a).done(function(t){if(t.get("isOutOfDate"))i(n.i(b.i)({route:"needsUpdate",options:{serverID:a,replace:!0}}));else if(t.get("isPrimaryEligible")){if(e.get("primaryServer")!==t){var s=t.toJSON();n.i(l.a)("metrics").trackEvent({event:"client:selectserver",properties:r()({serverType:n.i(p.a)(s),serverVersion:t.get("version"),connectionType:n.i(h.a)(s.activeConnection),
secure:t.get("isSecure")},o)})}e.set({primaryServer:t,isWaitingForPrimaryServer:!1})}else i(n.i(b.i)({route:"dashboard"}))}).fail(function(){i(n.i(b.i)({route:"dashboard"}))})},i[y.I]=function(e,t){var n=t.route,i=t.options;o.a.defer(function(){c.a.trigger("navigate",n,i)})},i[y.J]=function(){n.i(u.a)()},i[y.K]=function(){window.localStorage.setItem("preferInsecure","1")},i[y._137]=function(e,t){n.i(v.a)();var i=n.i(m.a)(e.getState(),t),a=e.get("entities");for(var r in i){var s=i[r]
;a.get(r).remove(s)}},i[y.L]=function(){n.i(d.a)("tv")},i));t.a=S},function(e,t,n){"use strict";function i(e,t){var i=t.serverEntityID;return n.i(h.a)(e,p.f,i)}function a(e){return e.get("ui").get("liveTVSettingsPage").get("dvrSetup")}function r(e,t){return a(e,t).get("epgSettings")}function s(e,t,i){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=a(e,t),l=r(e,t),u=l.get(i);return u.abortPendingPopulate(),o.get("setupErrorMessages").remove("programGuideSettings"),
l.set("isFetching",!0),u.fetch(s).done(function(){l.set({isFetching:!1,isPopulated:!0})}).fail(function(){l.set({isFetching:!1,isPopulated:!1}),o.get("setupErrorMessages").add({id:"programGuideSettings",message:n.i(c.default)("Unable to fetch Program Guide settings")})})}var o,l=n(6),u=n.n(l),c=n(4),d=n(19),p=n(56),h=n(569),f=n(63),v=n(424),m=n(37),g=n.i(f.a)((o={},o[m._54]=function(e,t){r(e,t).restoreDefaults()},o[m._55]=function(e,t,a){var r=i(e,t);s(e,t,"countries").done(function(){
var e=r.get("countryCode");e&&a(n.i(v.selectEPGCountry)(u()({},t,{countryCode:e})))})},o[m._56]=function(e,t,i){var a=r(e,t);s(e,t,"languages").done(function(){var e=a.get("selectedCountry");e&&i(n.i(v.selectEPGLanguage)(u()({},t,{languageCode:e.get("language")})))})},o[m._57]=function(e,t,i){var a=r(e,t),o=a.get("countries").get(t.countryCode);if(a.set({selectedCountry:o,postalCode:""}),a.get("regions").reset(),a.get("lineupGroup").get("lineups").reset(),o){
var l=o.get("flavor"),c=d.join([a.get("baseUrl"),o.get("key")]);i(n.i(v.fetchEPGLanguages)(u()({},t,{languageCode:o.get("language")}))),0===l?s(e,t,"regions",{url:c}):2===l&&(a.set("postalCode",o.get("example")),i(n.i(v.fetchEPGLineups)(t)))}},o[m._58]=function(e,t,n){var i=r(e,t),a=i.get("languages").get(t.languageCode);i.set("selectedLanguage",a)},o[m._59]=function(e,t,i){var a=r(e,t),s=a.get("regions").get(t.regionKey);a.set("selectedRegion",s),a.get("lineupGroup").get("lineups").reset(),
s&&i(n.i(v.fetchEPGLineups)(t))},o[m._60]=function(e,t,n){var i=r(e,t),a=t.postalCode;i.set("postalCode",a),i.get("lineupGroup").get("lineups").reset()},o[m._61]=function(e,t,n){var i=r(e,t),a=i.get("selectedCountry"),o=[i.get("baseUrl"),a.get("key")],l={};0===a.get("flavor")?o.push(i.get("selectedRegion").get("key")):l.postalCode=i.get("postalCode"),s(e,t,"lineupGroup",{url:d.join(o,l)})},o));t.a=g},function(e,t,n){"use strict";function i(e,t){
var n=e.get("user"),i=e.get("cloudServer"),a=t.get("desktop").get("cloudAccount");return r.a.ajax(i.getXHROptions("/api/claim/token")).promise().then(function(e){return o.a.parseXML(e).token}).then(function(e){return r.a.ajax(t.getXHROptions(s.join("/myplex/claim",{token:e}),{type:"POST"}))}).then(function(){t.set({myPlexSigninState:l.a,myPlexUsername:n.get("email")}),a.set({signedIn:!0,username:n.get("email")})})}var a=n(10),r=n.n(a),s=n(19),o=n(60),l=n(79);t.a=i},function(e,t,n){"use strict"
;function i(e){return e.destroy({timeout:0}).promise().done(function(){e.server.set({myPlexSigninState:a.b,myPlexSubscription:!1}),e.restoreDefaults()})}var a=n(79);t.a=i},function(e,t,n){"use strict";function i(e){return r.a.ajax(e.getXHROptions("/api/v2/pins",{method:"POST",dataType:"json",data:{stronger:!0}})).then(function(e){return e})}var a=n(10),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e,t){return r.a.ajax(e.getXHROptions("/api/v2/pins/"+t,{dataType:"json"
})).promise().then(function(e){return e})}var a=n(10),r=n.n(a);t.a=i},function(e,t,n){"use strict";function i(e,t){var i=e.server,a=i.getXHROptions(r.a.result(e,"url"),{method:"POST",dataType:"json",data:u.a.stringify({urls:t},{arrayFormat:"brackets"})||"urls="});return n.i(c.a)(o.a.ajax(a),400).then(function(t){e.reset(t)},function(e){return o.a.Deferred().reject(e.status&&e.responseJSON.errors||[]).promise()})}var a=n(3),r=n.n(a),s=n(10),o=n.n(s),l=n(703),u=n.n(l),c=n(347);t.a=i
},function(e,t,n){"use strict";function i(e,t,i){n.i(o.a)("metrics").trackClick({page:i,action:e,type:t.get("type"),context:p.l})}var a,r=n(10),s=n.n(r),o=n(13),l=n(4),u=n(15),c=n(540),d=n(64),p=n(89),h=n(19),f=n(87),v=n(134),m=n(63),g=n(892),y=n(100),b=n(115),S=n(438),I=n(300),M=n(363),C=n(177),w=n(86),D=n(37),P=n.i(m.a)((a={},a[D._16]=function(e,t){var a=n.i(f.e)(e,t),r=n.i(f.h)(e,t);u.a.trigger("show:modal",new I.a({defaultPaneType:"ownedServer",defaultPaneID:a.id})),i(d.O,r,t.metricsPage)},
a[D._17]=function(e,t,i){var a=t.cancel,r=t.force,s=t.metricsPage,o=n.i(f.e)(e,t),c=n.i(f.h)(e,t),d={libraryID:c.id,libraryType:c.get("type"),cancel:a,force:r,allowMetrics:!!s,metricsProperties:{page:s}};c.set("refreshing",!a),n.i(g.a)(o,d).fail(function(e){if(503===e.status)u.a.trigger("show:modal",new M.a({model:o}));else{var a=t.cancel?n.i(l.default)("There was a problem canceling the update."):n.i(l.default)("There was a problem updating the library.");i(n.i(C.a)(a))}}).always(function(e){
i(n.i(y.b)({serverEntityID:t.serverEntityID}))})},a[D._18]=function(e,t){var a=n.i(f.e)(e,t),r=n.i(f.h)(e,t);u.a.trigger("show:modal",new S.a({server:a,model:r})),i(d.P,r,t.metricsPage)},a[D._19]=function(e,t,a){var r=n.i(f.e)(e,t),o=n.i(f.h)(e,t),u=r.getXHROptions("/library/sections/"+o.id+"/analyze",{type:"PUT"});s.a.ajax(u).fail(function(e){a(n.i(C.a)(n.i(l.default)("There was a problem analyzing the library.")))}),i(d.Q,o,t.metricsPage)},a[D._20]=function(e,t,a){
var r=n.i(f.e)(e,t),o=n.i(f.h)(e,t),u=r.getXHROptions("/library/sections/"+o.id+"/emptyTrash",{type:"PUT"});s.a.ajax(u).done(function(){a(n.i(C.a)({type:c.b,message:n.i(l.default)("The trash was emptied.")}))}).fail(function(e){a(n.i(C.a)(n.i(l.default)("There was a problem emptying the trash.")))}),i(d.R,o,t.metricsPage)},a[D._21]=function(e,t,a){var r=n.i(f.e)(e,t),o=n.i(f.h)(e,t);if(o.isNew())return void o.destroy();var u=r.supports("libraryDeleteActivity"),c=h.join(o.url(),u?{async:1
}:{}),p=r.getXHROptions(c,{type:"DELETE"});a(n.i(y.v)({serverEntityID:t.serverEntityID,activityType:v.a.LIBRARY_DELETE})),s.a.ajax(p).done(function(){u||(a(n.i(y.w)({serverEntityID:t.serverEntityID,activityType:v.a.LIBRARY_DELETE})),a(n.i(w.i)({route:"dashboard"})))}).fail(function(e){a(n.i(y.w)({serverEntityID:t.serverEntityID,activityType:v.a.LIBRARY_DELETE})),a(n.i(C.a)(n.i(l.default)("There was a problem deleting the library.")))}),i(d.S,o,t.metricsPage)},a[D.y]=function(e,t,i){
t.activity.type===v.a.LIBRARY_DELETE&&(i(n.i(b.a)({serverEntityID:t.serverEntityID})),i(n.i(w.i)({route:"dashboard"})))},a));t.a=P},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(36),s=n(37);n.d(t,"a",function(){return o}),n.d(t,"b",function(){return l}),n.d(t,"d",function(){return u}),n.d(t,"e",function(){return c}),n.d(t,"g",function(){return d}),n.d(t,"h",function(){return p}),n.d(t,"f",function(){return h}),n.d(t,"c",function(){return f})
;var o=n.i(r.a)(s._16),l=n.i(r.a)(s._17),u=n.i(r.a)(s._18),c=n.i(r.a)(s._19),d=n.i(r.a)(s._20),p=n.i(r.a)(s._21),h=n.i(r.a)(s._17,function(e){return a()({},e,{force:!0})}),f=n.i(r.a)(s._17,function(e){return a()({},e,{cancel:!0})})},function(e,t,n){"use strict";function i(e,t,i){n.i(h.a)("metrics").trackClick(l()({page:i,action:e},a(t)))}function a(e){return{context:y.k,selectionType:e.get("activeSelectionType"),selectionCount:e.get("activeSelectionItems").length}}function r(e){
return e.get("multiSelect").get("activeSelectionItems").map(function(e){return e.get("model").entityID()})}var s,o=n(6),l=n.n(o),u=n(3),c=n.n(u),d=n(10),p=n.n(d),h=n(13),f=n(4),v=n(15),m=n(851),g=n(64),y=n(89),b=n(28),S=n(63),I=n(770),M=n(769),C=n(436),w=n(932),D=n(439),P=n(58),T=n(177),x=n(288),E=n(115),N=n(37),L=n.i(S.a)((s={},s[N._75]=function(e,t,i){
var a=t.type,r=t.model,s=t.collection,o=t.isRangeSelect,l=void 0!==o&&o,u=e.get("multiSelect"),c=u.get("activeSelectionType"),d=u.get("activeSelectionRange");if(!c||c===a){if(u.listenToCollection(s),!l||!d||d.collection!==s)return u.set("activeSelectionRange",{collection:s,startModel:r}),void i(n.i(x.s)([{id:r.id,type:a,model:r}]));var p=d.startModel,h=d.endModel,f=s.indexOf(p),v=s.indexOf(r);if(h){var m=s.indexOf(h);i(n.i(x.t)({collection:s,range:{start:f,end:m}}))}
u.set("activeSelectionRange",{collection:s,startModel:p,endModel:r}),i(n.i(x.u)({type:a,collection:s,range:{start:f,end:v}}))}},s[N._76]=function(e,t){e.get("multiSelect").get("activeSelectionItems").add(t)},s[N._77]=function(e){e.get("multiSelect").get("activeSelectionItems").reset()},s[N._78]=function(e,t){e.get("multiSelect").get("activeSelectionItems").remove(t)},s[N._79]=function(e,t,i){var a=e.get("multiSelect"),r=a.get("activeSelectionItems"),s=[];a.stopListening(t),t.each(function(e){
r.get(e.id)&&s.push(e.id)}),s.length&&i(n.i(x.b)(s))},s[N._80]=function(e,t,i){var a=t.type,r=t.collection,s=t.range,o=e.get("multiSelect"),l=o.get("activeSelectionItems"),u=[];m.a.each(s,function(e){var t=r.at(e);t&&!l.get(t.id)&&u.push({id:t.id,type:a,model:t})}),u.length&&i(n.i(x.s)(u))},s[N._81]=function(e,t,i){var a=t.collection,r=t.range,s=e.get("multiSelect"),o=s.get("activeSelectionItems"),l=[];m.a.each(r,function(e){var t=a.at(e);t&&o.get(t.id)&&l.push(t.id)}),l.length&&i(n.i(x.b)(l))},
s[N._82]=function(e,t,i){var s=e.get("multiSelect"),o=r(e);i(n.i(P.c)(l()({},t,{metadataItemEntityIDs:o,metricsProperties:a(s)})))},s[N._92]=function(e,t,i){var s=e.get("multiSelect"),o=r(e);i(n.i(P.b)(l()({},t,{metadataItemEntityIDs:o,metricsProperties:a(s)})))},s[N._83]=function(e,t){var n=e.get("multiSelect"),a=n.get("activeSelectionItems").pluck("model"),r=new C.a({model:c.a.first(a),items:a});v.a.trigger("show:modal",r),i(g.p,n,t.metricsPage)},s[N._84]=function(e,t,a){
var r=e.get("multiSelect"),s=r.get("activeSelectionItems").pluck("model"),o=p.a.Deferred().resolve().promise();s.forEach(function(e){o=o.then(function(){return b.a.execute("updateWatchedStatus",l()({item:e},t))})}),o.fail(function(){var e=t.watched?n.i(f.default)("There was an unexpected error marking an item watched."):n.i(f.default)("There was an unexpected error marking an item unwatched.");a(n.i(T.a)(e))}),o.always(function(){var e={};s.forEach(function(t){var i=t.server.entityID()
;e[i]||(e[i]=!0,a(n.i(E.a)({serverEntityID:i})))})}),i(t.watched?g.u:g.v,r,t.metricsPage)},s[N._85]=function(e,t){var n=e.get("multiSelect"),a=n.get("activeSelectionItems").pluck("model"),r=new w.a({items:a});v.a.trigger("show:modal",r),i(g.r,n,t.metricsPage)},s[N._86]=function(e,t,a){var r=e.get("multiSelect"),s=r.get("activeSelectionItems").pluck("model"),o=p.a.Deferred().resolve().promise();s.forEach(function(e){o=o.then(function(){return n.i(I.a)(e)})}),o.fail(function(){
a(n.i(T.a)(n.i(f.default)("There was an unexpected error refreshing an item.")))}),i(g.D,r,t.metricsPage)},s[N._87]=function(e,t,a){var r=e.get("multiSelect"),s=r.get("activeSelectionItems").pluck("model"),o=p.a.Deferred().resolve().promise();s.forEach(function(e){o=o.then(function(){return n.i(M.a)(e)})}),o.fail(function(){a(n.i(T.a)(n.i(f.default)("There was an unexpected error analyzing an item.")))}),i(g.F,r,t.metricsPage)},s[N._88]=function(e,t){
var n=e.get("multiSelect"),a=n.get("activeSelectionItems").pluck("model");b.a.execute("showSyncModal",{item:c.a.first(a),items:a}),i(g.A,n,t.metricsPage)},s[N._89]=function(e,t){var n=e.get("multiSelect"),a=n.get("activeSelectionItems").pluck("model"),r=new D.a({item:c.a.first(a),items:a});v.a.trigger("show:modal",r),i(g.w,n,t.metricsPage)},s[N._90]=function(e,t){var n=e.get("multiSelect"),a=n.get("activeSelectionItems").pluck("model"),r=a[0],s=a.slice(1);b.a.execute("merge",{item:r,items:s}),
i(g.N,n,t.metricsPage)},s[N._91]=function(e,t,a){var r=e.get("multiSelect"),s=r.get("activeSelectionItems").pluck("model"),o=p.a.Deferred().resolve().promise();s.forEach(function(e){o=o.then(function(){return e.destroy({wait:!0})})}),o.fail(function(e){var t=403===e.status?n.i(f.default)("Ensure that media deletion is enabled for library content in your server settings."):n.i(f.default)("There was an unexpected error deleting an item.");a(n.i(T.a)(t))}),i(g.q,r,t.metricsPage)},s));t.a=L
},function(e,t,n){"use strict";var i,a=n(10),r=n.n(a),s=n(347),o=n(63),l=n(97),u=n(86),c=n(289),d=n(37),p=n.i(o.a)((i={},i[d._24]=n.i(l.a)({key:"oauthProviders",getModel:function(e){return e.get("cloudServer").get("desktop")}}),i[d._25]=function(e,t,i){var a=e.get("cloudServer"),o=a.get("desktop").get("oauthProviders").findWhere(t);o.set("isUnlinking",!0);var l=a.populate().then(function(){return r.a.ajax(a.getXHROptions(t.url,{type:"DELETE"}))});n.i(s.a)(l,1e3).done(function(){
o.set("unlinkError",null)}).fail(function(e){o.set("unlinkError",e)}).always(function(){i(n.i(u.g)()),i(n.i(c.a)()),o.set("isUnlinking",!1)})},i));t.a=p},function(e,t,n){"use strict";function i(e,t){n.i(d.a)("metrics").trackClick({page:t,action:e,context:v.m})}
var a,r=n(6),s=n.n(r),o=n(10),l=n.n(o),u=n(40),c=n.n(u),d=n(13),p=n(4),h=n(15),f=n(64),v=n(89),m=n(87),g=n(540),y=n(341),b=n(1406),S=n(123),I=n(347),M=n(19),C=n(35),w=n(63),D=n(97),P=n(226),T=n(134),x=n(892),E=n(79),N=n(1946),L=n(438),A=n(300),k=n(1944),_=n(177),O=n(86),j=n(1829),R=n(356),U=n(100),z=n(37),B=n.i(w.a)((a={},a[z.i]=function(e,t){var i=n.i(m.e)(e,t);h.a.trigger("test:server",i)},a[z._134]=function(e,t,n){
var i=t.machineIdentifier,a=t.serverName,r=e.get("experienceSettings"),s=r.get("relayReminders"),o=s[i]||{},l=o.remindAfter;if(!l||!c.a.unix(l).isAfter(c()())){var u=new N.a({serverName:a});h.a.trigger("show:modal",u),n(U.x(i))}},a[z.j]=function(e,t){var i=e.get("experienceSettings"),a=i.get("relayReminders"),r=a[t]||{};a[t]=n.i(b.a)(r.times),i.save("relayReminders",s()({},a))},a[z.k]=n.i(D.a)({key:"providers",getModel:m.i}),a[z.l]=n.i(P.a)({key:"providers",getModel:m.i}),a[z.m]=n.i(D.a)({
key:"libraries",getModel:m.i}),a[z.n]=n.i(P.a)({key:"libraries",getModel:m.i}),a[z.o]=function(e,t){var a=n.i(m.e)(e,t),r=t.options,o=void 0===r?{}:r,l=new L.a(s()({server:a,redirect:!0},o));h.a.trigger("show:modal",l),i(f.W,t.metricsPage)},a[z.p]=function(e,t,i){var a=t.cancel,r=t.force,s=t.metricsPage,o=n.i(m.e)(e,t),l={serverModel:o,libraryID:"all",cancel:a,force:r,allowMetrics:!!s,metricsProperties:{page:s}};if(t.cancel){n.i(m.i)(e,t).get("libraries").each(function(e){
return e.set("refreshing",!1)})}n.i(x.a)(o,l).fail(function(){var e=t.cancel?n.i(p.default)("There was a problem canceling the update."):n.i(p.default)("There was a problem updating libraries.");i(n.i(_.a)(e))}).always(function(){i(U.b({serverEntityID:t.serverEntityID}))})},a[z.q]=function(e,t){var a=n.i(m.e)(e,t);h.a.trigger("show:modal",new A.a({defaultPaneType:"ownedServer",defaultPaneID:a.id})),i(f.O,t.metricsPage)},a[z.r]=function(e,t,i){var a=n.i(m.e)(e,t),r=new k.a({server:a})
;r.promise.then(function(){var t=a.get("publicAddressMatches")?y.a.SAME_NETWORK:y.a.ALWAYS;return e.get("settings").save("allowHttpFallback",t)}).done(function(){i(U.n({serverEntityID:t.serverEntityID}))}),h.a.trigger("show:modal",r)},a[z.s]=function(e,t,a){var r=n.i(m.e)(e,t),s=r.supports("optimizeDatabaseActivity"),o=M.join("/library/optimize",s?{async:1}:{}),u=r.getXHROptions(o,{type:"PUT"});a(U.v({serverEntityID:t.serverEntityID,activityType:T.a.OPTIMIZE_DATABASE})),
l.a.ajax(u).done(function(){s||a(U.w({serverEntityID:t.serverEntityID,activityType:T.a.OPTIMIZE_DATABASE}))}).fail(function(e){a(U.w({serverEntityID:t.serverEntityID,activityType:T.a.OPTIMIZE_DATABASE})),a(n.i(_.a)(n.i(p.default)("There was a problem optimizing the database.")))}),i(f.X,t.metricsPage)},a[z.t]=function(e,t,a){var r=n.i(m.e)(e,t),s=r.supports("cleanBundlesActivity"),o=M.join("/library/clean/bundles",s?{async:1}:{}),u=r.getXHROptions(o,{type:"PUT"});a(U.v({
serverEntityID:t.serverEntityID,activityType:T.a.CLEAN_BUNDLES})),l.a.ajax(u).done(function(){s||a(U.w({serverEntityID:t.serverEntityID,activityType:T.a.CLEAN_BUNDLES}))}).fail(function(e){a(U.w({serverEntityID:t.serverEntityID,activityType:T.a.CLEAN_BUNDLES})),a(n.i(_.a)(n.i(p.default)("There was a problem removing unused bundles.")))}),i(f.Y,t.metricsPage)},a[z.u]=function(e,t,a){var r=n.i(m.e)(e,t),s=n.i(m.i)(e,t),o=s.get("libraries"),u=t.libraryID,c=u?[u]:o.map(function(e){return e.id
}),d=c.map(function(e){var t=r.getXHROptions("/library/sections/"+e+"/emptyTrash",{type:"PUT"});return l.a.ajax(t)});l.a.when.apply(l.a,d).done(function(){a(n.i(_.a)({type:g.b,message:n.i(p.default)("The trash was emptied.")}))}).fail(function(e){a(n.i(_.a)(n.i(p.default)("There was a problem emptying the trash.")))}),i(f.R,t.metricsPage)},a[z.v]=function(e,t,a){var r=n.i(m.e)(e,t),s=e.get("cloudServer");if(r){if(s.get("isResolved")){var o=s.getXHROptions("/api/servers/"+r.id,{type:"DELETE"})
;l.a.ajax(o)}var u=s.get("resources"),c=u.get(r.id);if(c&&c.trigger("destroy",c,c.collection),r.get("isFullOwnedServer")&&r.get("isConnected")){r.get("desktop").get("cloudAccount").destroy().done(function(){r.set({myPlexSigninState:E.b,myPlexSubscription:!1})}).always(function(){a(U.n({serverEntityID:t.serverEntityID})),r.populate().fail(function(){r.trigger("destroy",r,r.collection),a(n.i(O.i)({route:"dashboard"}))})})}else r.trigger("destroy",r,r.collection),a(n.i(O.i)({route:"dashboard"}))
;i(f.Z,t.metricsPage)}},a[z.w]=function(e,t,i){var a=n.i(m.i)(e,t),r=t.activity;a.get("activities").add([r],{parse:!0}),r.synthetic||i(U.w({serverEntityID:t.serverEntityID,activityType:r.type}))},a[z.x]=function(e,t){n.i(m.i)(e,t).get("activities").add([t.activity],{parse:!0,merge:!0})},a[z.y]=function(e,t){n.i(m.i)(e,t).get("activities").remove(t.activity.uuid)},a[z.z]=function(e,t,i){n.i(C.a)(function(){i(U.p({serverEntityID:t.serverEntityID,activity:{type:t.activityType,synthetic:!0,
uuid:t.activityType+"-"+Date.now()}}))})},a[z.A]=function(e,t){var i=n.i(m.i)(e,t),a=i.get("activities"),r=a.findWhere({type:t.activityType,synthetic:!0});r&&a.remove(r)},a[z.B]=function(e,t){var i=n.i(m.e)(e,t),a=n.i(m.i)(e,t),r=a.get("activities");i.set("hasEventConnection",!0),i.get("isFullOwnedServer")&&r.fetch()},a[z.C]=function(e,t){n.i(m.e)(e,t).set("hasEventConnection",!1)},a[z.D]=function(e){var t=e.get("cloudServer"),i=t.get("desktop");i.set("isPersonalCloudServerRestarting",!0)
;var a=t.populate().then(function(){return n.i(S.a)(l.a.ajax(t.getXHROptions("/api/v2/cloud_server",{method:"DELETE"})))}).then(function(){return l.a.ajax(t.getXHROptions("/api/v2/cloud_server",{method:"POST"}))});n.i(I.a)(a,1e3).fail(function(e){i.set("personalCloudServerRestartError",e)}).always(function(){i.set("isPersonalCloudServerRestarting",!1)})},a[z.E]=function(e,t){var i=n.i(m.e)(e,t),a=e.get("ui").get("liveTVSettingsPage"),r=t.device;if(!a.get("isPagePopulated")){var s=new j.a({
model:new R.b(r,{parse:!0}),serverEntityID:t.serverEntityID,machineIdentifier:i.get("machineIdentifier")});h.a.trigger("show:bar","alertbar",s)}},a));t.a=B},function(e,t,n){"use strict";function i(e){return e.get("user").get("profile")}function a(e){return e.get("ui").get("audioSubtitleSettingsPage")}var r,s=n(63),o=n(37),l=n(238),u=n.i(s.a)((r={},r[o._22]=function(e,t){var r=i(e),s=a(e);s.set({isUpdatingUserProfile:!0,updateUserProfileError:null}),r.save(t,{type:"PUT"}).done(function(){s.set({
isUpdatingUserProfile:!1,updateUserProfileError:null})}).fail(function(e){s.set({isUpdatingUserProfile:!1,updateUserProfileError:n.i(l.a)(e)})})},r[o._23]=function(e){a(e).set("updateUserProfileError",null)},r));t.a=u},function(e,t,n){"use strict";var i=n(36),a=n(37);n.d(t,"a",function(){return r}),n.d(t,"b",function(){return s});var r=n.i(i.a)(a._22),s=n.i(i.a)(a._23)},function(e,t,n){"use strict";function i(e){return e.get("ui").get("background")}var a,r=n(87),s=n(63),o=n(37),l=n.i(s.a)((a={},
a[o.M]=function(e,t){var a=t.serverEntityID,s=t.imageUrl,o=t.allowLightPreset,l=void 0!==o&&o,u=i(e),c=a?n.i(r.e)(e,t):void 0;u.set({server:c,imageUrl:s,allowLightPreset:l,isBackgroundPending:!1})},a[o.N]=function(e,t){var a=t.serverEntityID,s=t.theme,o=i(e),l=a?n.i(r.e)(e,t):void 0,u=l&&s?l.resolveUrl(s,{appendHeaders:!0}):void 0;o.set("themeMusicUrl",u)},a[o.O]=function(e){i(e).restoreDefaults({isBackgroundPending:!0})},a));t.a=l},function(e,t,n){"use strict";function i(e){
return e.get("ui").get("dashboardPage")}var a,r=n(87),s=n(176),o=n(97),l=n(226),u=n(63),c=n(115),d=n(125),p=n(37),h=n.i(u.a)((a={},a[p._127]=function(e,t){var a=i(e),o=n.i(r.e)(e,t),l=t.serverEntityID,u=t.hubKey;if(l!==a.get("serverEntityID")||u!==a.get("hubKey")){var c=new s.default([],{server:o,hubKey:u,count:12,includeEmpty:!0,includeFeaturedTags:!0,excludes:["playlists"]});c.reset(),c.abortPendingPopulate(),c.resetPopulatePromise(null),a.restoreDefaults({serverEntityID:l,hubKey:u,hubs:c})}},
a[p._128]=n.i(o.a)({key:"hubs",getModel:i}),a[p._129]=n.i(l.a)({key:"hubs",getModel:i}),a[c.b]=function(e,t,a){if(!t.metadataItemEntityID&&!t.containerKeyPattern){var s=n.i(r.e)(e,t),o=i(e),l=o.get("hubs");l&&l.server===s&&l.each(function(e){var t=e.get("metadataList");!e.get("random")&&t.get("containerKey")&&a(n.i(d.g)({metadataListEntityID:t.entityID(),count:l.count}))})}},a));t.a=h},function(e,t,n){"use strict";var i=n(36),a=n(37);n.d(t,"a",function(){return r}),n.d(t,"b",function(){return s
});var r=n.i(i.a)(a._127),s=n.i(i.a)(a._128);n.i(i.a)(a._129)},function(e,t,n){"use strict";function i(e){return e.get("ui").get("liveTVSettingsPage").get("dvrSetup")}function a(e){return e.get("ui").get("liveTVSettingsPage").get("dvrs")}function r(e,t){return a(e).get(t.dvrID)}function s(e,t){var n=i(e),a=t.deviceID;if(t.dvrID&&a){var s=r(e,t).get("devices").get(a);if(s)return s}if(a){var o=n.get("devices").get(a);if(o)return o}return n.get("selectedDevice")}function o(e,t){
if(t.country)return t.country;var n=i(e),a=n.get("epgSettings").get("selectedCountry");return a?a.get("code"):void 0}function l(e,t){if(t.dvrID&&t.deviceID){return s(e,t).get("channelMappings")}return i(e).get("channelMappings")}function u(e,t){var a=i(e),r=n.i(D.e)(e,t),o=s(e,t),u=o.get("channels"),c=t.data,d=[],p={};v()(c).forEach(function(e){var t=c[e],n=t.enabled,i=t.lineupIdentifier,a=u.get(e),r=!(!a||!a.get("drm"));n&&i&&!r&&d.push(e),i&&(p["channelMapping["+e+"]"]=i)})
;var f=I.join(["/media/grabbers/devices",t.deviceID,"channelmap"],h()({channelsEnabled:d.toString()},p));a.set("isChannelMappingsSaving",!0);var m=r.getXHROptions(f,{type:"PUT"}),y=g.a.ajax(m);return y.done(function(){a.set({isChannelMappingsSaving:!1,channelMappingsSaveError:null});var n=l(e,t);u.forEach(function(e){var t=e.id,i=d.indexOf(t)!==-1,a=p["channelMapping["+t+"]"];a?n.add([{deviceIdentifier:t,enabled:i,lineupIdentifier:a}],{parse:!0,merge:!0}):n.remove(t)})}),y.fail(function(e){
a.set({isChannelMappingsSaving:!1,channelMappingsSaveError:e})}),y}function c(e,t){var a=n.i(D.e)(e,t),r=t.enabled,o=I.join(["/media/grabbers/devices",t.deviceID],{enabled:r?1:0}),l=a.getXHROptions(o,{type:"PUT"}),u=g.a.ajax(l).promise();return u.done(function(){if(i(e)){var n=s(e,t);n&&n.set("status",r?"enabled":"disabled")}}),u}
var d,p=n(6),h=n.n(p),f=n(65),v=n.n(f),m=n(10),g=n.n(m),y=n(4),b=n(237),S=n(60),I=n(19),M=n(55),C=n(63),w=n(97),D=n(87),P=n(224),T=n(134),x=n(423),E=n(883),N=n(100),L=n(101),A=n(37),k=n.i(C.a)((d={},d[A._26]=function(e){i(e).restoreDefaults()},d[A._27]=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i(e),a={};switch(n.get("step")){case x.a.DEVICE:a.step=x.a.DEVICE_CHANNELS;break;case x.a.DEVICE_CHANNELS:t.dvrID?(a.selectedLineupUUID=r(e,t).get("lineup"),
a.step=x.a.CHANNEL_MAPPING):a.step=x.a.EPG;break;case x.a.EPG:n.get("selectedLineupUUID")?a.step=x.a.CHANNEL_MAPPING:a.step=x.a.EPG_MAPPING;break;case x.a.EPG_MAPPING:a.step=x.a.CHANNEL_MAPPING;break;case x.a.CHANNEL_MAPPING:a.step=x.a.EPG_DOWNLOAD}n.get("setupErrorMessages").reset(),n.set(a)},d[A._28]=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i(e),a={};switch(n.get("step")){case x.a.DEVICE_CHANNELS:a.hasScannedChannels=!1,a.step=x.a.DEVICE;break;case x.a.EPG:
a.step=x.a.DEVICE_CHANNELS;break;case x.a.CHANNEL_MAPPING:t.dvrID?a.step=x.a.DEVICE_CHANNELS:a.step=x.a.EPG}n.get("setupErrorMessages").reset(),n.set(a)},d[A._29]=function(e,t,a){var r=i(e),s=r.get("devices");r.set("isDevicesPending",!0),s.fetch().done(function(){r.set({isDevicesPending:!1,isDevicesPopulated:!0,devicesError:null});var e=s.filter(function(e){return!e.get("parentID")});1!==e.length||e[0].get("parentID")||a(n.i(L.t)({serverEntityID:t.serverEntityID,deviceID:e[0].id}))
}).fail(function(e,t){r.set({isDevicesPending:!1,devicesError:t})})},d[A._30]=function(e,t,a){var r=n.i(D.e)(e,t),s=i(e),o=r.getXHROptions("/media/grabbers/devices/discover",{type:"POST"});s.get("isDiscoveringDevices")||(s.set("isDiscoveringDevices",!0),g.a.ajax(o).done(function(e){var i=s.get("devices"),r=i.add(e,{parse:!0,merge:!0}),o=r.filter(function(e){return!e.get("parentID")});s.get("setupErrorMessages").remove("discoverDevices"),1!==o.length||r[0].get("parentID")||a(n.i(L.t)({
serverEntityID:t.serverEntityID,deviceID:o[0].id})),s.set("isDiscoveringDevices",!1)}).fail(function(e){s.get("setupErrorMessages").add({id:"discoverDevices",message:n.i(b.a)(e,n.i(y.default)("There was a problem discovering devices"))}),s.set("isDiscoveringDevices",!1)}))},d[A._31]=function(e,t,a){var r=n.i(D.e)(e,t),s=i(e),o=I.join(["/media/grabbers","tv.plex.grabbers.hdhomerun","devices"],{uri:t.uri}),l=r.getXHROptions(o,{type:"POST"});s.set("addDevicePending",!0),
g.a.ajax(l).done(function(e,i){var a=s.get("devices"),r=a.add(e,{parse:!0});if(0===r.length){var o=S.a.parseXML(e),l=o&&o.message||n.i(y.default)("No device found at {1}",t.uri);s.get("setupErrorMessages").add({id:"addDevice",message:l}),s.set("addDevicePending",!1)}else s.get("setupErrorMessages").remove("addDevice"),s.set({addDevicePending:!1,selectedDevice:1===r.length?r[0]:s.get("selectedDevice")})}).fail(function(e){s.get("setupErrorMessages").add({id:"addDevice",
message:n.i(b.a)(e,n.i(y.default)("There was a problem adding the device: {1}",t.uri))}),s.set("addDevicePending",!1)})},d[A._32]=function(e,t){var n=i(e),a=s(e,t);n.set("selectedDevice",a)},d[A._33]=function(e,t){i(e).get("selectedDevice").set("selectedSource",t.source)},d[A._34]=function(e,t){var a=i(e);s(e,t).fetch().fail(function(e){a.get("setupErrorMessages").add({id:"fetchDeviceDetails",message:n.i(b.a)(e,n.i(y.default)("There was a problem getting the details for your device"))})})},
d[A._35]=function(e,t){var a=i(e),r=s(e,t),o=I.join(["/media/grabbers/devices",r.get("key"),"channels"]);r.set("isChannelsPending",!0);var l={url:o,timeout:M.b};r.get("channels").fetch(l).done(function(){r.set({isChannelsPending:!1,isChannelsPopulated:!0,channelsError:null})}).fail(function(e){r.set({isChannelsPending:!1,isChannelsPopulated:!0,channelsError:null}),a.get("setupErrorMessages").add({id:"fetchDeviceDetails",
message:n.i(b.a)(e,n.i(y.default)("There was a problem getting the channels for your device"))})})},d[A._36]=function(e,t,a){var r=i(e),l=n.i(D.e)(e,t),u=s(e,t),c=o(e,t),d=u.get("selectedSource")||u.get("source"),p=t.prefs,h=t.network,f=I.join(["/media/grabbers/devices",u.get("key"),"scan"],{source:d,country:c,prefs:p,network:h}),v=l.getXHROptions(f,{type:"POST"});g.a.ajax(v).done(function(e,i,s){var o=s.getResponseHeader("X-Plex-Activity");if(u.get("channels").reset(),o)a(n.i(L.p)(t));else{
var l=new P.a(e,{parse:!0});r.set("scanPrefs",l)}}).fail(function(e){r.get("setupErrorMessages").add({id:"scanDeviceChannels",message:n.i(b.a)(e,n.i(y.default)("There was a problem scanning channels"))})})},d[A._37]=function(e,t,a){var r=i(e),s=n.i(D.e)(e,t),o=t.deviceID;if(!o)throw new Error("A device ID is required to cancel a channel scan.");var l=I.join(["/media/grabbers/devices",o,"scan"]),u=s.getXHROptions(l,{type:"DELETE"});g.a.ajax(u).fail(function(e){r.get("setupErrorMessages").add({
id:"cancelScanDeviceChannels",message:n.i(b.a)(e,n.i(y.default)("There was a problem canceling the current channel scan"))})})},d[A._38]=function(e,t,a){var r=n.i(D.e)(e,t),s=i(e),o=s.get("selectedDevice"),l=s.get("epgSettings").get("lineupGroup"),u=I.join("/livetv/epg/lineup",{device:o.get("uuid"),lineupGroup:l.get("uuid")}),c=r.getXHROptions(u);g.a.ajax(c).done(function(e,t,n){var i=n.getResponseHeader("X-Plex-Activity");s.set("epgLineupActivityID",i)}).fail(function(e){
s.get("setupErrorMessages").add({id:"findBestEPGLineup",message:n.i(b.a)(e,n.i(y.default)("There was a problem mapping channels"))})})},d[A._39]=function(e,t){i(e).set("selectedLineupUUID",t.lineupUUID)},d[A._52]=n.i(w.a)({key:"lineupChannels",getModel:i}),d[A._53]=function(e,t){var n=i(e,t),a=n.get("channelMappings");n.set("isChannelMappingsPending",!0),a.fetch(t.options).done(function(){t.forceEnabled&&a.each(function(e){e.set("enabled",e.has("lineupIdentifier"))}),n.set({
isChannelMappingsPending:!1,isChannelMappingsPopulated:!0,channelMappingsError:null})}).fail(function(e,t){n.set({isChannelMappingsPending:!1,channelMappingsError:t})})},d[A._40]=function(e,t){i(e,t).set({channelMappingsError:null,lineupChannelsError:null})},d[A._41]=function(e,t,i){u(e,t).done(function(){i(n.i(L.k)(t))})},d[A._42]=function(e){i(e).set("channelMappingsSaveError",null)},d[A._43]=function(e,t,r){var s=i(e);s.set("isSavingDVR",!0);var l=t.serverEntityID,d=t.deviceID,p=a(e,t);c(e,{
serverEntityID:l,deviceID:d,enabled:!0}).then(function(){return u(e,t)}).then(function(){var i=n.i(D.e)(e,t),a=s.get("selectedDevice"),r=s.get("selectedLineupUUID"),l=s.get("epgSettings").get("selectedLanguage"),u=o(e,t);s.get("setupErrorMessages").remove("saveDVR");var c=I.join("/livetv/dvrs",{device:a.get("uuid"),lineup:r,language:l.get("code"),country:u}),d=i.getXHROptions(c,{type:"POST"});return g.a.ajax(d)}).done(function(e,t,i){var a=i.getResponseHeader("X-Plex-Activity"),o=p.add(e,{
parse:!0})[0];s.get("setupErrorMessages").remove("saveDVR"),s.set({epgDownloadActivityID:a,selectedDVR:o,isSavingDVR:!1}),r(n.i(L.j)({serverEntityID:l})),r(n.i(N.d)({serverEntityID:l}))}).fail(function(e){s.get("setupErrorMessages").add({id:"saveDVR",message:n.i(b.a)(e,n.i(y.default)("There was a problem saving your DVR. Please try again."))}),s.set("isSavingDVR",!1)})},d[A._44]=function(e,t,a){var s=i(e);s.set("isSavingDVR",!0)
;var o=t.serverEntityID,l=t.deviceID,d=s.get("selectedDevice"),p=r(e,t);c(e,{serverEntityID:o,deviceID:l,enabled:!0}).then(function(){return u(e,t)}).then(function(){var i=n.i(D.e)(e,t),a=I.join(["/livetv/dvrs",p.id,"devices",d.id]),r=i.getXHROptions(a,{type:"PUT"});return g.a.ajax(r)}).done(function(e,t,i){var r=i.getResponseHeader("X-Plex-Activity");p.get("devices").add([d]),s.set({epgDownloadActivityID:r,selectedDVR:p,isSavingDVR:!1}),a(n.i(L.j)({serverEntityID:o})),a(n.i(N.d)({
serverEntityID:o}))}).fail(function(e){s.get("setupErrorMessages").add({id:"addDVRDevice",message:n.i(b.a)(e,n.i(y.default)("There was a problem adding a new device to your DVR. Please try again."))}),s.set("isSavingDVR",!1)})},d[A._45]=function(e,t,i){var a=n.i(D.e)(e,t),s=r(e,t),o=t.deviceID,l=I.join(["/livetv/dvrs",s.id,"devices",o]),u=a.getXHROptions(l,{type:"DELETE"});g.a.ajax(u).done(function(e,t,n){s.get("devices").remove(o)})},d[A._46]=function(e,t){
var i=n.i(D.e)(e,t),a=r(e,t),s=t.prefs,o=I.join(["/livetv/dvrs",t.dvrID,"prefs"],s);a.set("isSaving",!0);var l=i.getXHROptions(o,{type:"PUT"}),u=g.a.ajax(l);u.done(function(){var e=a.get("prefs");v()(s).forEach(function(t){e.get(t).set("value",s[t])}),a.set({isSaving:!1,saveError:null})}),u.fail(function(e){a.set({isSaving:!1,saveError:e})})},d[A._47]=function(e,t){r(e,t).set("saveError",null)},d[A._48]=function(e,t){
var i=n.i(D.e)(e,t),a=s(e,t),r=t.prefs,o=I.join(["/media/grabbers/devices",t.deviceID,"prefs"],r);a.set("isSaving",!0);var l=i.getXHROptions(o,{type:"PUT"}),u=g.a.ajax(l);u.done(function(){var e=a.get("prefs");v()(r).forEach(function(t){e.get(t).set("value",r[t])}),a.set({isSaving:!1,saveError:null})}),u.fail(function(e){a.set({isSaving:!1,saveError:e})})},d[A._49]=function(e,t){s(e,t).set("saveError",null)},d[A._50]=function(e){i(e).set({scanPrefs:void 0,scanNetworks:void 0})},
d[A._51]=function(e,t){c(e,t)},d[A.y]=function(e,t,a){var r=i(e);if(r){var s=r.get("selectedDevice"),o=t.activity;if(!s||o.type!==T.a.PROVIDER_DEVICE_CHANNELSCAN||parseInt(o.Context.deviceID,10)!==s.id)return o.uuid===r.get("epgLineupActivityID")?(r.set({selectedLineupUUID:o.Response.lineup,epgLineupActivityID:""}),void a(n.i(L.j)({serverEntityID:t.serverEntityID}))):o.uuid===r.get("epgDownloadActivityID")?void r.set("epgDownloadActivityID",""):void 0;var l=o.Response.Network;if(l){
var u=new E.a(l,{parse:!0});r.set("scanNetworks",u)}else r.set("hasScannedChannels",!0)}},d));t.a=k},function(e,t,n){"use strict";function i(e){return e.get("ui").get("libraryPage")}var a,r=n(6),s=n.n(r),o=n(3),l=n.n(o),u=n(87),c=n(88),d=n(268),p=n(509),h=n(393),f=n(877),v=n(63),m=n(97),g=n(226),y=n(115),b=n(125),S=n(242),I=n(37),M=n.i(v.a)((a={},a[I._109]=function(e,t){var a=i(e),r=a.get("details"),s=n.i(u.e)(e,t),o=t.serverEntityID,l=t.libraryKey
;if(o!==a.get("serverEntityID")||l!==a.get("libraryKey")){var c={serverEntityID:o,libraryKey:l};r&&r.get("libraryKey")===l?(c.details=r,c.isDetailsPending=a.get("isDetailsPending"),c.isDetailsPopulated=a.get("isDetailsPopulated"),c.detailsError=a.get("detailsError")):c.details=new d.a({key:l},{server:s,includeAdvanced:!0}),a.restoreDefaults(c)}},a[I._110]=function(e,t){var a=i(e),r=a.get("queryParse"),s=n.i(u.e)(e,t),o=t.containerKey,l=t.typeKey,d=t.firstCharacterKey,h=t.queryParseKey
;if(o!==a.get("containerKey")||l!==a.get("typeKey")){var v=new c.default({containerKey:o},{server:s}),m=new p.a([],{server:s,url:d}),g={containerKey:o,typeKey:l,firstCharacters:m,metadataList:v,isFirstCharactersPending:!0,isFirstCharactersPopulated:!1,firstCharactersError:null};r&&r.get("key")===h||(g.queryParse=new f.a({key:h},{server:s}),g.isQueryParsePending=!0,g.isQueryParsePopulated=!1,g.queryParseError=null),a.set(g)}},a[I._111]=n.i(m.a)({key:"details",getModel:i}),a[I._112]=n.i(g.a)({
key:"details",actionSuffix:"libraryDetails",getModel:i}),a[I._113]=n.i(m.a)({key:"firstCharacters",getModel:i}),a[I._114]=n.i(g.a)({key:"firstCharacters",actionSuffix:"libraryFirstCharacters",getModel:i}),a[I._115]=n.i(m.a)({key:"queryParse",getModel:i}),a[I._116]=n.i(g.a)({key:"queryParse",getModel:i}),a[y.b]=function(e,t,a){var r=t.metadataItemEntityID,s=t.containerKeyPattern;if(!r){var o=n.i(u.e)(e,t),l=i(e),c=l.get("metadataList")
;c&&c.server===o&&(s&&!c.get("containerKey").match(s)||(a(n.i(b.g)({metadataListEntityID:c.entityID()})),a(n.i(S.fetchLibraryFirstCharacters)())))}},a[I._117]=function(e,t){var a=i(e),r=a.get("selectedFilterOptions"),s=n.i(u.e)(e,t),o=t.key,l={selectedFilterKey:o};r&&r.url===o||(l.selectedFilterOptions=new h.a([],{server:s,url:o}),l.isSelectedFilterOptionsPending=!0,l.isSelectedFilterOptionsPopulated=!1,l.selectedFilterOptionsError=null),a.set(l)},a[I._118]=function(e){i(e).set({
selectedFilterKey:void 0,selectedFilterOptions:void 0,filterOptionQuery:""})},a[I._119]=n.i(m.a)({key:"selectedFilterOptions",getModel:i}),a[I._120]=n.i(g.a)({key:"selectedFilterOptions",actionSuffix:"libraryFilterOptions",getModel:i}),a[I._121]=function(e,t){i(e).set("filterOptionQuery",t)},a[I._122]=function(e,t){var n,i=t.type,a=t.activeTableColumns,r=t.key;if(l.a.findIndex(a,function(e){return e.key===r})===-1){
var o=e.get("experienceSettings"),u=o.get("libraryTableColumns"),c=a.map(function(e){return e.key}).concat(r);o.save("libraryTableColumns",s()({},u,(n={},n[i]=c,n)))}},a[I._123]=function(e,t){var n,i=t.type,a=t.activeTableColumns,r=t.key;if(!(a.length<=1)){var o=l.a.findIndex(a,function(e){return e.key===r});if(o!==-1){var u=e.get("experienceSettings"),c=u.get("libraryTableColumns"),d=a.slice(0,o).concat(a.slice(o+1)).map(function(e){return e.key});u.save("libraryTableColumns",s()({},c,(n={},
n[i]=d,n)))}}},a));t.a=M},function(e,t,n){"use strict";function i(e){return e.get("ui").get("liveTVSettingsPage")}var a,r=n(10),s=n.n(r),o=n(4),l=n(19),u=n(884),c=n(423),d=n(63),p=n(97),h=n(87),f=n(177),v=n(37),m=n.i(d.a)((a={},a[v._64]=n.i(p.a)({key:"dvrs",getModel:i}),a[v._62]=function(e,t){var a=i(e),r=a.get("dvrSetup"),s=a.get("dvr"),o=n.i(h.e)(e,t),l={isPagePopulated:!0};s&&s.server===o||(l.dvrs=new u.a([],{server:o})),r&&r.server===o?r.restoreDefaults():l.dvrSetup=new c.b({},{server:o}),
a.set(l)},a[v._63]=function(e){i(e).set("isPagePopulated",!1)},a[v._65]=function(e,t,a){var r=i(e),s=r.get("dvrs"),l=s.get(t.dvrID);l&&l.destroy().fail(function(){return a(n.i(f.a)(n.i(o.default)("There was a problem removing your DVR")))})},a[v._66]=function(e,t,i){var a=n.i(h.e)(e,t),r=l.join(["/livetv/dvrs",t.dvrID,"reloadGuide"]),o=a.getXHROptions(r,{type:"POST"});s.a.ajax(o)},a));t.a=m},function(e,t,n){"use strict";function i(e){return e.get("ui").get("mediaSubscriptionModal")}
var a,r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(19),c=n(30),d=n(98),p=n(774),h=n(63),f=n(97),v=n(758),m=n(395),g=n(895),y=n(37),b=n.i(h.a)((a={},a[y.a]=function(e,t,a){var r=i(e);r.set("isMediaSubscriptionPending",!0);var s={};if(t.showConflicts&&(s.options={data:{includeGrabs:1}}),t.mediaSubscriptionEntityID)return r.set({mediaSubscription:n.i(d.h)(e,t)}),void a(g.fetchMediaSubscription(s));var o=n.i(d.f)(e,t),c=n.i(d.b)(e,t),p=c.get("grandparentSubscriptionID")||c.get("subscriptionID")
;if(p)return r.set({mediaSubscription:new m.a({key:p},{server:o})}),void a(g.fetchMediaSubscription(s));var h=u.join("/media/subscriptions/template",{guid:c.get("guid")}),f=o.getXHROptions(h);l.a.ajax(f).done(function(e){var t=new v.a(e,{parse:!0,server:o}),n=t.findWhere({selected:!0});r.set({isMediaSubscriptionPending:!1,isMediaSubscriptionPopulated:!0,mediaSubscriptionError:null,templates:t,mediaSubscription:n})}).fail(function(e){r.set({isMediaSubscriptionPending:!1,mediaSubscriptionError:e})
})},a[y.b]=function(e){i(e).restoreDefaults()},a[y.c]=n.i(f.a)({key:"mediaSubscription",getModel:i}),a[y.d]=function(e,t){var a=i(e),r=n.i(d.f)(e,t),o=a.get("mediaSubscription"),p=t.targetLibrarySectionID,h=t.targetSectionLocationID,f=void 0===h?null:h,v=t.prefs;a.set({isMediaSubscriptionSaving:!0,mediaSubscriptionSaveError:null});var m=o.get("key"),g=o.getSaveParams(),y=l.a.extend(!0,{},g,{includeGrabs:1,targetLibrarySectionID:p,targetSectionLocationID:f,prefs:v
}),b=u.join(s.a.result(o,"url"),y);if(!m){var S=n.i(c.b)(o.get("target").get("type"));b=b+"&"+o.get("parameters")+"&type="+S.id}var I=r.getXHROptions(b,{type:m?"PUT":"POST"});l.a.ajax(I).done(function(i){if(o.set(o.parse(i)),a.set({templates:void 0,isMediaSubscriptionSaving:!1}),t.metadataItemEntityID){var r=n.i(d.b)(e,t);if(r){var s,l=o.get("target").get("type"),u=n.i(c.s)(l),p=u?"grandparentSubscriptionID":"subscriptionID",h=u?"grandparentSubscriptionType":"subscriptionType";r.set((s={},
s[p]=o.id,s[h]=l,s))}}}).fail(function(e){a.set({isMediaSubscriptionSaving:!1,mediaSubscriptionSaveError:e})})},a[y.e]=function(e,t){var n=i(e),a=n.get("templates"),r=t.modeIndex;n.set("mediaSubscription",a.at(r))},a[y.f]=function(e,t){i(e).set({mediaSubscriptionSaveError:null,mediaSubscriptionError:null,mediaSubscriptionMoveError:null,mediaSubscriptionDeleteError:null})},a[y.g]=function(e,t){var a=i(e),r=a.get("mediaSubscription");a.set({isMediaSubscriptionMoving:!0,
mediaSubscriptionMoveError:null}),n.i(p.a)(r).done(function(){a.set({isMediaSubscriptionMoving:!1})}).fail(function(e){a.set({isMediaSubscriptionMoving:!1,mediaSubscriptionMoveError:e})})},a[y.h]=function(e,t,a){var r=i(e),s=r.get("mediaSubscription");r.set({isMediaSubscriptionDeleting:!0,mediaSubscriptionDeleteError:null}),s.destroy({wait:!0}).done(function(){if(r.set({isMediaSubscriptionDeleting:!1}),t.metadataItemEntityID){var i=n.i(d.b)(e,t),a=s.get("key")
;i.get("subscriptionID")===a?(i.unset("subscriptionID"),i.unset("subscriptionType")):i.get("grandparentSubscriptionID")===a&&(i.unset("grandparentSubscriptionID"),i.unset("grandparentSubscriptionType"))}}).fail(function(e){r.set({isMediaSubscriptionDeleting:!1,mediaSubscriptionDeleteError:e})})},a));t.a=b},function(e,t,n){"use strict";function i(e){return e.get("ui").get("metadataListPage")}var a,r=n(87),s=n(88),o=n(63),l=n(115),u=n(125),c=n(37),d=n.i(o.a)((a={},a[c._133]=function(e,t){
var a=i(e),o=n.i(r.e)(e,t),l=t.serverEntityID,u=t.listKey,c=t.listTitle;if(l!==a.get("serverEntityID")||u!==a.get("listKey")){var d=new s.default({containerKey:u,containerTitle:c},{server:o});a.restoreDefaults({serverEntityID:l,listKey:u,metadataList:d})}},a[l.b]=function(e,t,a){var s=t.metadataItemEntityID,o=t.containerKeyPattern;if(!s){var l=n.i(r.e)(e,t),c=i(e),d=c.get("metadataList");d&&d.server===l&&(o&&!d.get("containerKey").match(o)||a(n.i(u.g)({metadataListEntityID:d.entityID()})))}},a))
;t.a=d},function(e,t,n){"use strict";var i=n(36),a=n(37);n.d(t,"a",function(){return r});var r=n.i(i.a)(a._133)},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(232),s=n(137),o=n(30),l=n(98),u=n(522),c=n(336),d=n(58);n.d(t,"a",function(){return h});var p,h=a()({},d.l,(p={},p[d.m]=function(e,t,i){var p=n.i(u.a)(e,t),h=n.i(c.a)(p),f=e.get("experienceSettings"),v=h===r.b?s.b:s.a,m=!1;if(h===r.c&&t.metadataItemEntityID){m=n.i(l.b)(e,t).get("type")===o.h}d.l[d.m](e,a()({
extrasPrefixCount:f.get("extrasPrefixCount"),openState:v,isPaused:m},t),i)},p[d.n]=function(e,t,n){d.l[d.n](e,a()({openState:s.b},t),n)},p))},function(e,t,n){"use strict";function i(e){return e.get("ui").get("playlistPage")}var a,r=n(10),s=n.n(r),o=n(4),l=n(19),u=n(30),c=n(35),d=n(767),p=n(63),h=n(97),f=n(511),v=n(76),m=n(87),g=n(177),y=n(288),b=n(37),S=n.i(p.a)((a={},a[b._93]=function(e,t){var a=i(e),r=n.i(m.e)(e,t),s=t.serverEntityID,o=t.providerEntityID,l=t.metadataKey
;if(s!==a.get("serverEntityID")||l!==a.get("metadataKey")){var c=new v.a({key:l,type:u.d},{server:r});a.restoreDefaults({serverEntityID:s,providerEntityID:o,metadataKey:l,playlist:c})}},a[b._94]=function(e,t){var a=i(e),r=n.i(m.e)(e,t),s=a.get("playlist"),o=t.serverEntityID,l=t.metadataKey;if(o!==a.get("serverEntityID")||l!==a.get("metadataKey")||!a.get("playlistItemList")){var u=s.get("childrenKey"),c=new f.a({containerKey:u},{server:r});a.set({playlistItemList:c})}},a[b._95]=n.i(h.a)({
key:"playlist",getModel:i}),a[b._96]=n.i(d.a)({key:"playlistItemList",getModel:i}),a[b._97]=function(e,t,a){var r=t.id,s=t.type,o=t.isRangeSelect,l=n.i(m.g)(e,{playlistItemEntityID:r}),u=i(e),c=u.get("playlistItemList"),d=c.getCollection();l&&a(n.i(y.a)({type:s,model:l,collection:d,isRangeSelect:o}))},a[b._98]=function(e,t,i){var a=n.i(m.g)(e,{playlistItemEntityID:t.id});a&&i(n.i(y.b)([a.id]))},a[b._99]=function(e,t){
var a=n.i(m.g)(e,t),r=i(e),o=r.get("playlistItemList"),u=o.getCollection(),d=u.indexOf(a),p=t.moveIndex,h=p-1;if(d!==p&&d!==h){var f=p>d?p-1:p,v=l.join([o.get("containerKey"),a.get("playlistItemID"),"move"],h>=0&&"after="+u.at(h).id),g=a.server,y=g.getXHROptions(v,{type:"PUT"});n.i(c.a)(function(){u.remove(a),u.add(a,{at:f}),s.a.ajax(y).fail(function(){u.indexOf(a)===f&&(u.remove(a),u.add(a,{at:d}))})})}},a[b._100]=function(e,t,a){
var r=n.i(m.g)(e,t),s=i(e),u=s.get("playlistItemList"),c=l.join([u.get("containerKey"),r.get("playlistItemID")]);r.destroy({url:c}).fail(function(){a(n.i(g.a)(n.i(o.default)("There was an unexpected error removing this item.")))})},a[b._101]=function(e,t,a){var r=i(e),u=r.get("playlistItemList"),c=u.get("containerKey"),d=u.getCollection(),p=e.get("multiSelect"),h=p.get("activeSelectionItems").pluck("id"),f=s.a.Deferred().resolve().promise();h.forEach(function(e){var t=d.get(e),n=l.join([c,e])
;f=f.then(function(){return t.destroy({url:n,wait:!0})})}),f.fail(function(){a(n.i(g.a)(n.i(o.default)("There was an unexpected error removing an item.")))})},a));t.a=S},function(e,t,n){"use strict";function i(e){return e.get("ui").get("prePlayPage")}function a(e,t){var a=t.metadataItemEntityID;if(t.containerKeyPattern)return!1;var r=n.i(f.e)(e,t),s=i(e),o=s.get("metadataItem");return!(!o||o.server!==r)&&(!a||o.entityID()===a)}function r(e,t,a){
var r=i(e),s=r.get("siblingList"),o=r.get("descendantList"),l=r.get("relatedHubs");s&&a(n.i(w.g)({metadataListEntityID:s.entityID()})),o&&a(n.i(w.g)({metadataListEntityID:o.entityID()})),l&&a(n.i(D.c)())}function s(e,t){var a=n.i(f.e)(e,t),r=i(e),s=r.get("metadataItem");if(s&&s.server===a){var o=t.activity.Context;o&&o.key===s.get("key")&&(null==o.exists&&null==o.accessible||r.set("isFileUnavailable",!o.exists||!o.accessible))}}
var o,l=n(6),u=n.n(l),c=n(13),d=n(19),p=n(830),h=n(113),f=n(87),v=n(76),m=n(88),g=n(176),y=n(134),b=n(63),S=n(97),I=n(772),M=n(115),C=n(140),w=n(125),D=n(290),P=n(37),T=n.i(b.a)((o={},o[P._102]=function(e,t){var a=i(e),r=n.i(f.e)(e,t),s=t.serverEntityID,o=t.metadataKey;if(s!==a.get("serverEntityID")||o!==a.get("metadataKey")){var l=new v.a({key:o},{server:r}),u=d.join([o.replace(/(\/library)?\/metadata/,"/hubs/metadata"),"related"]),c=new g.default([],{server:r,hubKey:u,count:12});c.reset(),
c.abortPendingPopulate(),c.resetPopulatePromise(null),a.restoreDefaults({serverEntityID:s,metadataKey:o,metadataItem:l,siblingKey:a.get("siblingKey"),siblingList:a.get("siblingList"),relatedHubs:c})}},o[P._103]=function(e,t){var a=i(e),r=n.i(f.e)(e,t),s=t.serverEntityID,o=t.descendantKey;if(!o)return void a.set({descendantKey:o,descendantList:void 0});if(s!==a.get("serverEntityID")||o!==a.get("descendantKey")){var l=new m.default({containerKey:o},{server:r});a.set({descendantKey:o,
descendantList:l})}},o[P._104]=function(e,t){var a=i(e),r=n.i(f.e)(e,t),s=t.serverEntityID,o=t.siblingKey;if(!o)return void a.set({siblingKey:o,siblingList:void 0});if(s!==a.get("serverEntityID")||o!==a.get("siblingKey")){var l=new m.default({containerKey:o},{server:r});a.set({siblingKey:o,siblingList:l})}},o[P._105]=function(e,t){var i=n.i(f.a)(e,t);n.i(I.a)(i)},o[P._106]=function(e){var t=i(e),a=t.get("metadataItem"),r=t.get("isMetadataItemPending");t.set("isMetadataItemPending",!0),
n.i(I.a)(a).done(function(){t.set({isMetadataItemPending:!1,isMetadataItemPopulated:!0,metadataItemError:null})}).fail(function(e,n){if(n.aborting)return void t.set("isMetadataItemPending",r);t.set({isMetadataItemPending:!1,metadataItemError:n})})},o[P._107]=n.i(S.a)({key:"relatedHubs",getModel:i}),o[P._108]=function(e){var t=i(e),a=t.get("metadataItem"),r=e.get("settings"),s=n.i(c.a)("getDecisionOptions")(a),o=p.a.getMediaDecision(u()({item:a,transcodeServer:a.server,
quality:h.a.getCurrentQuality(a,r)},s));t.set("decisionMediaItem",o.media)},o[P.x]=function(e,t){t.activity.type===y.a.LIBRARY_REFRESH_ITEMS&&s(e,t)},o[P.y]=function(e,t){t.activity.type===y.a.LIBRARY_REFRESH_ITEMS&&s(e,t)},o[C.REPOPULATE_METADATA_ITEM]=function(e,t,n){a(e,t)&&r(e,t,n)},o[M.b]=function(e,t,s){var o=i(e),l=o.get("metadataItem");if(a(e,t))l.fetch({data:{skipRefresh:1},usePopulatedParams:!0}),r(e,t,s);else{var u=n.i(f.e)(e,t),c=o.get("siblingList"),d=t.parentMetadataKey
;l&&l.server===u&&c&&d&&l.get("parentKey")===d&&s(n.i(w.g)({metadataListEntityID:c.entityID()}))}},o));t.a=T},function(e,t,n){"use strict";var i,a=n(10),r=n.n(a),s=n(850),o=n(347),l=n(63),u=n(97),c=n(753),d=n(86),p=n(100),h=n(37),f={isFullOwnedServer:!0,isPersonalCloudServer:!0},v=n.i(l.a)((i={},i[h._10]=function(e,t,n){e.get("ui").get("provisionPersonalCloudServerPage").set("isPersonalCloudServerModalOpen",!!t.open)},i[h._11]=function(e,t,i){function a(){return u.populate().then(function(){
return r.a.ajax(u.getXHROptions(c,{type:"POST"}))})}var l=e.get("ui").get("provisionPersonalCloudServerPage");l.set("isProvisionPersonalCloudServerPending",!0);var u=e.get("cloudServer"),c=t.url,d=n.i(s.a)(a,{times:10,delay:2e3,maxDuration:3e4});n.i(o.a)(d,2e3).done(function(){l.set("isProvisionPersonalCloudServerPopulated",!0)}).fail(function(e){l.set("provisionPersonalCloudServerError",e)}).always(function(){l.set("isProvisionPersonalCloudServerPending",!1)})},i[h._12]=function(e,t,i){
function a(){var t=e.get("servers").findWhere(f);return t?t.get("isResolved")||i(n.i(p.n)({serverEntityID:t.entityID()})):i(n.i(d.g)()),e.get("servers").populateServer(f)}var r=e.get("ui").get("provisionPersonalCloudServerPage");r.set("isConnectToPersonalCloudServerPending",!0);var l=n.i(s.a)(a,{times:10,delay:2e3,maxDuration:3e4});n.i(o.a)(l,2e3).done(function(){r.set("isConnectToPersonalCloudServerPopulated",!0)}).fail(function(){r.set("connectToPersonalCloudServerError",{})
}).always(function(){r.set("isConnectToPersonalCloudServerPending",!1)})},i[h._13]=function(e){var t=e.get("ui").get("provisionPersonalCloudServerPage");t.set("isPersonalCloudServerDriveCachePending",!0);var i=e.get("servers").findWhere(f),a=new c.a({},{server:i}),r=n.i(s.a)(function(){return a.fetchAndNotUpdating()},{times:30,delay:2e3,maxDuration:6e4});n.i(o.a)(r,2e3).done(function(){t.set("isPersonalCloudServerDriveCachePopulated",!0)}).fail(function(e){
t.set("personalCloudServerDriveCacheError",e)}).always(function(){t.set("isPersonalCloudServerDriveCachePending",!1)})},i[h._14]=n.i(u.a)({key:"personalCloudServerStatus",getModel:function(e){return e.get("cloudServer").get("desktop")}}),i[h._15]=function(e,t){e.get("experienceSettings").save("isNotInterestedInPersonalCloud",!t.interested)},i));t.a=v},function(e,t,n){"use strict";function i(e){return e.get("ui").get("quickSearch")}function a(e){return e.reduce(function(e,t){
var n=t.get("hubs").pluck("results");return e.concat(n.reduce(function(e,t){return e.concat(t.map(function(e){return e.entityID()}))},[]))},[])}var r,s=n(15),o=n(19),l=n(87),u=n(419),c=n(133),d=n(584),p=n(63),h=n(96),f=n(1059),v=n(58),m=n(156),g=n(37),y=n.i(p.a)((r={},r[g._67]=function(e,t,a){var r=n.i(l.e)(e,t),s=i(e),o=s.get("searches"),u=t.providerEntityIDs,p=t.providerIdentifier;o.reset(u.reduce(function(t,i){var a=n.i(l.b)(e,{providerEntityID:i
}),s=a.get("identifier"),o=a.get("isLibraryProvider"),u=a.get("features").get(c.a.SEARCH);if(u&&(o||s===p)){t[p===s?"unshift":"push"](new d.a({providerEntityID:i,key:u.get("key")},{server:r,provider:a}))}return t},[])),s.get("query")&&a(m.fetchQuickSearch())},r[g._68]=function(e){var t=i(e),n=t.get("searches");t.set({query:"",selectedResultEntityID:null}),n.each(function(e){e.restoreDefaults({providerEntityID:e.get("providerEntityID"),key:e.get("key")})})},r[g._69]=function(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i(e),a=n.get("searches"),r=t.query,s=void 0===r?n.get("query"):r,o=t.limit;a.each(function(e){var t=e.server;t.supports("quickSearch")&&t.get("isConnected")&&(e.abortPendingPopulate(),e.set("isSearchPending",!0),e.fetch({data:{sectionId:n.get("sectionID"),query:s,limit:o}}).done(function(){e.set({isSearchPending:!1,isSearchPopulated:!0,searchError:null})}).fail(function(t){e.set({isSearchPending:!1,searchError:t})}))})},
r[g._70]=function(e,t,n){var a=i(e);""===t.trim()?n(m.resetQuickSearch()):(a.get("query").length>1&&t.length<2&&n(m.resetQuickSearch()),a.set("query",t))},r[g._71]=function(e,t){var n=i(e),a=t.providerIdentifier,r=void 0===a?n.get("providerIdentifier"):a,s=t.sectionID,o=void 0===s?n.get("sectionID"):s,l=t.channelPlaceholder,u=void 0===l?n.get("channelPlaceholder"):l,c=t.channelID,d=void 0===c?n.get("channelID"):c,p=t.channelSearchKey,h=void 0===p?n.get("channelSearchKey"):p;n.set({
providerIdentifier:r,sectionID:o,channelPlaceholder:u,channelID:d,channelSearchKey:h})},r[g._72]=function(e,t){var n=i(e),r=t.searchResultEntityID,s=t.offset;if(r)return void n.set("selectedResultEntityID",r);var o=a(n.get("searches")),l=o.indexOf(n.get("selectedResultEntityID")),u=o.length-1,c=s>0?-1:u,d=l+s,p=d<-1||d>u,h=p?c:d,f=h===-1?null:o[h];n.set("selectedResultEntityID",f)},r[g._73]=function(e,t,a){
var r=i(e),c=t.serverEntityID,d=null!=t.searchResultEntityID?t.searchResultEntityID:r.get("selectedResultEntityID"),p=n.i(l.f)(e,{searchResultEntityID:d}),v=n.i(l.e)(e,t),g=v.id;if(!p){var y=r.pick("query","channelID","channelSearchKey"),b=y.query,S=y.channelID,I=y.channelSearchKey;return null!=S&&null!=I?s.a.trigger("navigate","channel",{serverID:g,channelID:S,key:o.join(I,{query:b})}):s.a.trigger("navigate","search",{serverID:g,query:b}),void a(m.resetQuickSearch({serverEntityID:c}))}
var M=p.pick("tagItem","metadataItem"),C=M.tagItem,w=M.metadataItem;if(C){var D=u.a.get(C.get("tagType")),P=D.typeString,T=p.provider.get("isLibraryProvider")?p.get("reasonID"):C.get("librarySectionKey"),x=n.i(h.a)(v.attributes,p.provider.attributes,T,{filters:C.has("filter")?C.get("filter"):P+"="+C.get("id"),filterLabel:C.get("tag")});return window.location.hash=x,void a(m.resetQuickSearch({serverEntityID:c}))}var E=n.i(f.a)(v.attributes,p.provider.attributes,w.attributes)
;if(!E)return void a(m.playQuickSearchResult({searchResultEntityID:d}));window.location.hash=E,a(m.resetQuickSearch())},r[g._74]=function(e,t,a){var r=t.serverEntityID,s=t.options,o=i(e),u=null!=t.searchResultEntityID?t.searchResultEntityID:o.get("selectedResultEntityID"),c=n.i(l.f)(e,{searchResultEntityID:u});if(!c)return void a(m.navigateQuickSearchResult(t.searchResultEntityID));c.get("metadataItem")&&(a(n.i(v.c)({serverEntityID:r,providerEntityID:c.provider.entityID(),
metadataItemEntityID:c.get("metadataItem").entityID(),options:s})),a(m.resetQuickSearch({serverEntityID:r})))},r));t.a=y},function(e,t,n){"use strict";function i(e){return e.get("ui").get("recordingSchedulePage")}function a(e){return i(e).get("calendar")}function r(e,t,a){var r=i(e),s=n.i(p.f)(e,t);if(r.get("isPagePopulated")){var o=r.get("calendar"),l=r.get("mediaSubscriptions");o&&o.server===s&&a(n.i(m.fetchCalendar)()),l&&l.server===s&&a(n.i(m.fetchMediaSubscriptions)())}}
var s,o=n(40),l=n.n(o),u=n(63),c=n(97),d=n(774),p=n(98),h=n(757),f=n(891),v=n(134),m=n(358),g=n(37),y=n.i(u.a)((s={},s[g.P]=function(e,t){var a=i(e),r=a.get("mediaSubscriptions"),s=a.get("calendar"),o=n.i(p.f)(e,t),l={isPagePopulated:!0,isCalendarPending:!1,isCalendarPopulated:!1,calendarError:null};r&&r.server===o||(l.mediaSubscriptions=new h.a([],{server:o})),s&&s.server===o?s.restoreDefaults():l.calendar=new f.a({},{server:o}),a.set(l)},s[g.Q]=function(e){i(e).set("isPagePopulated",!1)},
s[g.R]=n.i(c.a)({key:"mediaSubscriptions",getModel:i}),s[g.S]=function(e,t){var a=i(e),r=a.get("mediaSubscriptions"),s=n.i(p.h)(e,t),o=s&&r.indexOf(s),l=t.moveIndex;if(o!==l&&o!==l-1){var u=l>o?l-1:l;r.remove(s),r.add(s,{at:u});var c=u>0?r.at(u-1).id:void 0;n.i(d.a)(s,c).fail(function(){r.remove(s),r.add(s,{at:o})})}},s[g.T]=function(e,t,n){a(e).set("visibleDays",t.visibleDays)},s[g.U]=function(e,t,n){a(e).set("time",l()().unix())},s[g.V]=function(e,t,n){
var i=a(e),r=i.get("visibleDays"),s=l.a.unix(i.get("time")).subtract(r,"days").unix();i.set("time",s)},s[g.W]=function(e,t,n){var i=a(e),r=i.get("visibleDays"),s=l.a.unix(i.get("time")).add(r,"days").unix();i.set("time",s)},s[g.X]=n.i(c.a)({key:"calendar",getModel:i}),s[g.Y]=function(e,t,n){},s[g.y]=function(e,t,n){var i=t.activity;if(i.type===v.a.PROVIDER_SUBSCRIPTION_PROCESS&&r(e,t,n),i.type===v.a.GRABBER_GRAB){"error"===i.Response.status&&r(e,t,n)}},s));t.a=y},function(e,t,n){"use strict"
;function i(e){return e.get("ui").get("searchPage")}var a,r=n(65),s=n.n(r),o=n(87),l=n(133),u=n(584),c=n(63),d=n(100),p=n(37),h=n.i(c.a)((a={},a[p._130]=function(e,t,i){t.forEach(function(e){i(n.i(d.e)({serverEntityID:e}))})},a[p._131]=function(e,t,a){var r=i(e),c=r.get("searches"),d=t.availableProviders,p=t.query,h=t.limit;s()(d).forEach(function(t){var i=d[t],a=n.i(o.e)(e,{serverEntityID:i.serverEntityID}),r=n.i(o.b)(e,{providerEntityID:t}),s=r.get("features").get(l.a.SEARCH)
;s&&!c.get(t)&&c.add(new u.a({providerEntityID:t,key:s.get("key")},{server:a,provider:r}))}),c.each(function(e){e.populatePromise||(e.set("isSearchPending",!0),e.fetch({data:{query:p,limit:h}}).done(function(){e.set({isSearchPending:!1,isSearchPopulated:!0,searchError:null})}).fail(function(t){e.set({isSearchPending:!1,searchError:t})}))})},a[p._132]=function(e,t,n){var a=i(e);a.get("searches").each(function(e){e.abortPendingPopulate()}),a.restoreDefaults()},a));t.a=h},function(e,t,n){
"use strict";function i(e){return e.get("ui").get("timelinePage")}function a(e,t){var a=i(e),r=n.i(s.e)(e,t),o=a.get("momentList");o.fetch().done(function(){var e=o.get("key"),t=a.get("metadataList"),n=void 0;n=t&&t.server===r&&t.get("containerKey")===e?t:new p.default({containerKey:e},{server:r}),a.set({isMomentListPending:!1,isMomentListPopulated:!!e,momentListError:null,metadataList:n})}).fail(function(e,t){a.set({isMomentListPending:!1,momentListError:t})})}
var r,s=n(87),o=n(268),l=n(744),u=n(63),c=n(97),d=n(226),p=n(88),h=n(115),f=n(37),v=n.i(u.a)((r={},r[f._124]=function(e,t){var r=i(e),u=n.i(s.e)(e,t),c=t.serverEntityID,d=t.libraryKey,p=t.momentKey;if(c!==r.get("serverEntityID")||p!==r.get("momentKey")){var h=new o.a({key:d},{server:u}),f=new l.a({momentKey:p},{server:u});r.restoreDefaults({serverEntityID:c,details:h,momentKey:p,momentList:f}),a(e,t)}},r[f._125]=n.i(c.a)({key:"details",getModel:i}),r[f._126]=n.i(d.a)({key:"details",
actionSuffix:"timelineDetails",getModel:i}),r[h.b]=function(e,t){var r=t.metadataItemEntityID,o=t.containerKeyPattern,l=n.i(s.e)(e,t),u=i(e),c=u.get("metadataList");r||c&&c.server===l&&(o&&!c.get("containerKey").match(o)||a(e,t))},r));t.a=v},function(e,t,n){"use strict";var i=n(36),a=n(37);n.d(t,"a",function(){return r}),n.d(t,"b",function(){return s});var r=n.i(i.a)(a._124),s=(n.i(i.a)(a._125),n.i(i.a)(a._126))},function(e,t,n){"use strict";function i(e){return e.get("user").get("desktop")}
var a,r=n(14),s=n.n(r),o=n(3),l=n.n(o),u=n(10),c=n.n(u),d=n(60),p=n(63),h=n(97),f=n(226),v=n(768),m=n(1764),g=n(37),y=n.i(p.a)((a={},a[g.Z]=n.i(h.a)({key:"plans",getModel:i}),a[g._0]=n.i(f.a)({key:"plans",getModel:i}),a[g._1]=n.i(v.a)({key:"unwatchedWatchLaterList",getModel:i}),a[g._2]=n.i(v.a)({key:"unwatchedRecommendedList",getModel:i}),a[g._4]=function(e){i(e).set("updateUserError",null)},a[g._3]=function(e,t,n){var a=i(e),r=e.get("user"),o=t.avatar,u=s()(t,["avatar"]);if(a.set({
isUpdatingUser:!0,updateUserError:null}),o){for(var p=o.split(","),h=p[0],f=p[1],v=h.substr(5),m=window.atob(f),g=[],y=0;y<m.length;y++)g.push(m.charCodeAt(y));var b=new Uint8Array(g),S=new window.Blob([b],{type:v});u.avatar=S}var I=new window.FormData;l.a.each(u,function(e,t){I.append(t,e)});var M=r.server.getXHROptions(l.a.result(r,"url"),{type:"PUT",processData:!1,contentType:!1,data:I});c.a.ajax(M).done(function(e){!t.avatar&&r.get("hasPassword")||r.fetch()
;var n=l.a.reduce(t,function(e,t,n){return r.hasAttr(n)&&(e[n]=t),e},{});r.set(n),a.set({isUpdatingUser:!1,updateUserError:null})}).fail(function(e){var t=d.a.parseXML(e.responseText),n=l.a.isArray(t)?t:[t.error],i=l.a.groupBy(n,function(e){return e.field?e.field:"request"});a.set({isUpdatingUser:!1,updateUserError:i})})},a[g._5]=n.i(h.a)({key:"webhooks",getModel:i}),a[g._6]=function(e){var t=i(e);t.get("webhooks").add({}),t.set("updateWebhooksError",null)},a[g._7]=function(e,t){
var a=t.oldUrl,r=t.newUrl,s=i(e),o=s.get("webhooks");if(o.findWhere({url:a})){var l=o.map(function(e){var t=e.get("url");return t===a?r:t});s.set({isUpdatingWebhooks:!0,updateWebhooksError:null}),n.i(m.a)(o,l).always(function(){s.set("isUpdatingWebhooks",!1)}).fail(function(e){s.set("updateWebhooksError",e[0])})}},a[g._8]=function(e){i(e).set("updateWebhooksError",null)},a[g._9]=function(e,t){var a=i(e),r=a.get("webhooks");if(!t){var s=r.filter(function(e){return e.get("url")!==t})
;return void r.reset(s)}a.set({isRemovingWebhooks:!0,updateWebhooksError:null});var o=r.map(function(e){return e.get("url")}).filter(function(e){return e!==t});n.i(m.a)(r,o).always(function(){a.set("isRemovingWebhooks",!1)}).fail(function(e){a.set("updateWebhooksError",e[0])})},a));t.a=y},function(e,t,n){"use strict";function i(e){var t=n.i(a.a)(r.a,e);return t}var a=n(1370),r=n(1757);t.a=i},function(e,t,n){"use strict";function i(){return n.i(l.createSelector)(function(e,t){
return t.activeFilters},function(e,t){return t.selectedType},function(e){return e.ui.libraryPage.selectedFilterKey},function(e){return e.ui.libraryPage.filterOptionQuery},function(e){return e.ui.libraryPage.selectedFilterOptions},function(e,t,i,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],l=t&&t.filters,c=o.a.findWhere(l,{key:i}),d=s;if(a){var p=a.trim().toLowerCase();d=d.filter(function(e){return e.title.toLowerCase().indexOf(p)>-1})}if(c){var h=e.filter(function(e){
return e.key===c.filter}),f=d.reduce(function(e,t){var i=n.i(u.a)(h,t.key);return(i?e.selected:e.unselected).push(r()({},t,{isSelected:i})),e},{selected:[],unselected:[]});d=f.selected.concat(f.unselected)}return d})}var a=n(6),r=n.n(a),s=n(3),o=n.n(s),l=n(5),u=(n.n(l),n(813));t.a=i},function(e,t,n){"use strict";function i(){return n.i(s.createSelector)(function(e,t){return t.activeFilters},function(e,t){return t.activeFilterLabel},n.i(u.a)(),function(e,t,i){
if(r.a.isEmpty(e)||!i)return n.i(o.default)("All");var a=[],s=e.reduce(function(e,t){return(t.type===l.a?e.boolean:e.other).push(t),e},{boolean:[],other:[]}),u=s.boolean,c=s.other;if(1===u.length){var d=u[0],p=r.a.findWhere(i.filters,{filter:d.key,filterType:l.a});p&&a.push(p.title)}return 1===c.length&&t&&a.push(t),a.length?a.join(" "):n.i(o.default)("Filtered")})}var a=n(3),r=n.n(a),s=n(5),o=(n.n(s),n(4)),l=n(205),u=n(359);t.a=i},function(e,t,n){"use strict";var i=n(5),a=(n.n(i),
n(4)),r=n(409),s=n(276),o=n(902),l=n.i(i.createSelector)(o.a,function(e){return e.reduce(function(e,t){if(t.type===r.a){var i=t.operators.filter(function(e){var t=e.key;return t!==s.a&&t!==s.d});i.push({key:s.g,title:n.i(a.default)("in the last")},{key:s.h,title:n.i(a.default)("in not the last")}),e[t.type]=i}else e[t.type]=t.operators;return e},{})});t.a=l},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(function(e,t){return t.listType},n.i(s.a)(),function(e,t){
if(t&&!t.isExtra&&(e!==r.h||t.type===r.i))return t.type===r.m?t.skipParent?t.grandparentKey:t.parentKey:t.key})}var a=n(5),r=(n.n(a),n(30)),s=n(21);t.a=i},function(e,t,n){"use strict";var i=n(5),a=(n.n(i),n(150)),r=n.i(i.createSelector)(a.a,function(e){return e.searchResults});t.a=r},function(e,t,n){"use strict";function i(e){return e.experienceSettings.libraryTableColumns}t.a=i},function(e,t,n){"use strict";function i(e){return e.experienceSettings.playThemeMusic}t.a=i},function(e,t,n){
"use strict";function i(){return n.i(a.createSelector)(function(e){return e.ui.prePlayPage},n.i(r.a)(),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.isFileUnavailable)return!0;var n=t.Media;if(!n||!n.length)return!1;for(var i=0,a=n.length;i<a;i++){var r=n[i],s=r.Part;if(s&&s.length)for(var o=0,l=s.length;o<l;o++){var u=s[o];if(u.exists===!1||u.accessible===!1)return!0}}return!1})}var a=n(5),r=(n.n(a),n(21));t.a=i},function(e,t,n){"use strict";function i(e){
return/^[a-z]\:\\|\\\\/i.test(e)&&(e=e.replace(/\\/g,"/")),/^(\/|[a-z]\:\/)/i.test(e)&&(e=e.replace(/\/(.+?)(?=\/|$)/g,function(e,t){return"/"+encodeURIComponent(t)})),"/"===e.charAt(0)&&(e=e.substring(1)),/^[a-z]+?\:\/\//i.test(e)&&(e=encodeURIComponent(e)),e}t.a=i},function(e,t,n){"use strict";var i={NONE:100,SMALL:150,LARGE:200,HUGE:250};i.settings=[{value:i.NONE,title:"None"},{value:i.SMALL,title:"Small"},{value:i.LARGE,title:"Large"},{value:i.HUGE,title:"Huge"}],t.a=i},function(e,t,n){
"use strict";var i={PENDING:"pending",ERROR:"error",PROCESSED:"processed",contexts:{OK:"ok",FILE_UNAVAILABLE:"sourceFileUnavailable",METADATA_ERROR:"sourceFileMetadataError",PROFILE_ERROR:"clientProfileError",IO_ERROR:"ioError",TRANSCODER_ERROR:"transcoderError",UNKNOWN_ERROR:"unknownError",ANALYSIS_ERROR:"mediaAnalysisError",DOWNLOAD_FAILED:"downloadFailed",CANNOT_TRANSCODE:"cannotTranscode"}};t.a=i},function(e,t,n){"use strict";var i={PENDING:"pending",FAILED:"failed",COMPLETE:"complete",
failureCodes:{INVALID_PATH:"invalidPath",DISK_FULL:"diskFull",DISK_UNWRITABLE:"diskUnwritable"}};t.a=i},function(e,t,n){"use strict";function i(e,t,i){if(null!=t.get("qualityIndex"))return t.get("qualityIndex");var r=n.i(a.a)(e.toJSON(),e.server.get("isPrivateConnection"));return i.get(r)}var a=n(412);t.a=i},function(e,t,n){"use strict";function i(e,t,n){return{commandID:e,body:C.a.writeXml({Response:{_code:t,_status:n}}),responseCode:t}}function a(e){n.i(M.a)("appStore").dispatch(e)}
function r(e,t){var n=e.type&&e.type[0];n?a(A.a({type:n,action:t})):w.a.warn("[Companion] Ignored playback action due to missing type")}function s(){var e=n.i(M.a)("appModel"),t=e.get("inputActivity");t&&t.notice()}function o(e){var t=e.machineIdentifier[0],i=n.i(M.a)("appModel"),r=i.get("servers"),s=r.get(t),o=i.get("transientServer");_=t;var l={machineIdentifier:"transient-"+t,originalMachineIdentifier:t,accessToken:e.token&&e.token[0],serverClass:s?s.get("serverClass"):void 0},u=void 0
;o&&o.get("originalMachineIdentifier")===t?(u=o,u.set(l)):u=new P.a(l);var c=s&&s.get("isConnected")&&s.get("activeConnection"),d=c?{scheme:c.get("scheme"),address:c.get("address"),port:c.get("port"),uri:c.get("uri")}:{scheme:e.protocol&&e.protocol[0],address:e.address&&e.address[0],port:e.port&&e.port[0]};return u.addConnection(d),u.populate().then(function(){return _!==t?I.a.Deferred().reject().promise():(a(A.b(u)),u)})}function l(e,t){
var n=t.providerIdentifier&&t.providerIdentifier[0],i=e.get("desktop").get("providers");return i.populate().then(function(){return n?i.get(n):i.get(T.a.LIBRARY_PROVIDER_IDENTIFIER)})}function u(e,t,n){var i=n.key&&n.key[0],a=i.replace("/children",""),r=new x.a({key:a},{server:e});return O=a,r.populate().then(function(){return O!==a?I.a.Deferred().reject().promise():r})}function c(){n.i(M.a)("localCompanionTimelineManager").start()}function d(){n.i(M.a)("localCompanionTimelineManager").stop()}
function p(e){var t=e.offset&&e.offset[0],n=e.mediaIndex&&e.mediaIndex[0],i=e.containerKey&&e.containerKey[0],r=void 0,s=void 0;return o(e).then(function(t){return r=t,l(r,e)}).then(function(t){return s=t,u(r,s,e)}).then(function(e){var o=e.entityID();a(E.c({serverEntityID:r.entityID(),providerEntityID:s.entityID(),metadataItemEntityID:o,startMetadataItemEntityID:o,startOffsetMilliseconds:null==t?null:parseInt(t,10),startMediaIndex:null==n?null:parseInt(n,10),confirmPlayback:!0,confirmOffset:!0,
options:{containerKey:i}}))})}function h(e){var t=void 0,n=void 0;return o(e).then(function(n){return t=n,l(t,e)}).then(function(i){return n=i,u(t,n,e)}).then(function(e){a(A.c({serverEntityID:t.entityID(),providerEntityID:n.entityID(),key:e.get("key")}))})}function f(e){var t=decodeURIComponent(e.key[0]);r(e,L.s({key:t}))}function v(e){var t=parseInt(e.offset[0],10);r(e,N.p({positionSeconds:Math.floor(t/1e3)}))}function m(e){r(e,L.j())}function g(e){
var t=e.volume&&e.volume[0],n=e.repeat&&e.repeat[0];if(null!=t){var i=parseInt(t,10);r(e,N.h({volume:i}))}if(null!=n){var a=parseInt(n,10);r(e,L.t({repeatAll:a===D.c,repeatOne:a===D.b}))}}function y(e){var t=e.audioStreamID&&e.audioStreamID[0],n=e.subtitleStreamID&&e.subtitleStreamID[0];null!=t&&r(e,N.s({streamTypeString:"audio",streamID:parseInt(t,10)})),null!=n&&r(e,N.s({streamTypeString:"subtitles",streamID:parseInt(n,10)}))}function b(e){
var t=e.path,a=e.query,r=e.commandID,o=e.supportsTimeline,l=I.a.Deferred(),u=k[t];if(s(),o!==!1&&n.i(M.a)("localCompanionTimelineManager").start(),u){(u(a)||I.a.Deferred().resolve().promise()).done(function(){n.i(w.a)('[Companion] Successfully processed command from path "'+t+'"');var e=i(r,200,"OK");l.resolve({controllerResponse:e})}).fail(function(){w.a.warn('[Companion] Failed to process command from path "'+t+'"');var e=i(r,400,"Bad Request");l.resolve({controllerResponse:e})})}else{
w.a.warn('[Companion] Unable to handle command from unknown path "'+t+'"');var c=i(r,400,"Bad Request");l.resolve({controllerResponse:c})}return l.promise()}var S=n(10),I=n.n(S),M=n(13),C=n(859),w=n(29),D=n(406),P=n(754),T=n(72),x=n(76),E=n(58),N=n(122),L=n(109),A=n(896);t.a=b;var k={"/player/timeline/subscribe":c,"/player/timeline/unsubscribe":d,"/player/mirror/details":h,"/player/playback/playMedia":p,"/player/playback/pause":function(e){return r(e,N.e())},"/player/playback/play":function(e){
return r(e,N.d())},"/player/playback/stop":function(e){return r(e,E.d())},"/player/playback/skipNext":function(e){return r(e,L.c())},"/player/playback/skipPrevious":function(e){return r(e,L.b())},"/player/playback/stepForward":function(e){return r(e,N.f())},"/player/playback/stepBack":function(e){return r(e,N.b())},"/player/playback/skipTo":f,"/player/playback/seekTo":v,"/player/playback/refreshPlayQueue":m,"/player/playback/setParameters":g,"/player/playback/setStreams":y},_=void 0,O=void 0
},function(e,t,n){"use strict";function i(e){switch(e.type){case k.PREFERENCE:return e.Setting;case k.TIMELINE:return e.TimelineEntry;case k.STATUS:return e.StatusNotification;case k.PROGRESS:return e.ProgressNotification;case k.PLAYING:return e.PlaySessionStateNotification;case k.SYNC_STATE:return e.SyncStateNotification;case k.BACKGROUND_GENERATOR_STATE:return e.BackgroundGeneratorStateNotification;case k.VERSION_STATE:return e.VersionStateNotification;case k.BACKGROUND_PROCESSING_QUEUE:
return e.BackgroundProcessingQueueEventNotification;case k.TRANSCODE_START:case k.TRANSCODE_UPDATE:case k.TRANSCODE_END:return e.TranscodeSession;case k.UPDATE_STATE_CHANGE:return e.AutoUpdateNotification;case k.REACHABILITY:return e.ReachabilityNotification;case k.ACCOUNT:return e.AccountUpdateNotification;case k.ACTIVITY:return e.ActivityNotification;case k.GRABBER_DEVICE:return e.MediaGrabberDeviceNotification;case k.CONTENT_CHANGE:return e.MediaProviderContentNotification;default:return[]}}
var a,r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(4),c=n(59),d=n(15),p=n(181),h=n(240),f=n(1446),v=n(801),m=n(81),g=n(207),y=n(56),b=n(53),S=n(30),I=n(71),M=n(13),C=n(100),w=n(140),D=n(115),P=n(227),T=n(72),x=n(223),E=n(881),N=n(355),L=n(879),A=n(354),k={PREFERENCE:"preference",TIMELINE:"timeline",STATUS:"status",PROGRESS:"progress",PLAYING:"playing",SYNC_STATE:"syncState",BACKGROUND_GENERATOR_STATE:"backgroundGeneratorState",VERSION_STATE:"versionState",
BACKGROUND_PROCESSING_QUEUE:"backgroundProcessingQueue",TRANSCODE_START:"transcodeSession.start",TRANSCODE_UPDATE:"transcodeSession.update",TRANSCODE_END:"transcodeSession.end",UPDATE_STATE_CHANGE:"update.statechange",REACHABILITY:"reachability",ACCOUNT:"account",ACTIVITY:"activity",GRABBER_DEVICE:"grabber.device",CONTENT_CHANGE:"provider.content.change"},_=0,O=void 0,j=void 0,R=c.a.extend((a={mixins:I.a,url:function(){var e=this.server.get("activeConnection"),t=e.id.replace(/^http/,"ws")
;return this.server.resolveUrl("/:/websockets/notifications",{connection:new x.a({uri:t}),appendToken:!0})},initialize:function(e){s.a.bindAll(this,"onOpen","onClose","onError","onMessage"),this.server=e.server},open:function(){return this.socket&&this.close(),this._deferred=l.a.Deferred(),this.socket=new window.WebSocket(s.a.result(this,"url")),this.socket.onopen=this.onOpen,this.socket.onclose=this.onClose,this.socket.onerror=this.onError,this.socket.onmessage=this.onMessage,
this._deferred.promise()},close:function(){this._deferred&&"pending"===this._deferred.state()&&this._deferred.reject(),this.socket&&(this.socket.onopen=null,this.socket.onclose=null,this.socket.onerror=null,this.socket.onmessage=null,this.socket.close(),this.socket=null)},testConnection:function(){if(this.server.get("connected")){var e=this.server.get("desktop").get("update");e&&"installing"===e.get("state")&&this.server.set("connected",null),this.server.trigger("error:connection",this.server)}}
},a[k.PREFERENCE]=function(e){e.key=e.id,e.server=this.server,this.server.trigger("socket:setting",e)},a[k.TIMELINE]=function(e){function t(){_=Date.now(),O=a,j=null,p(D.a({serverEntityID:h,containerKeyPattern:new RegExp("^"+n.i(g.a)("/library/sections/"+a)+"\\b")}))}if(!T.a.EPG_IDENTIFIER.test(e.identifier)){
var i=e.state,a=e.sectionID,r=e.rootItemID,s=e.parentItemID,o=e.itemID,l=e.metadataState,u=e.mediaState,c=e.type,p=M.a("appStore").dispatch,h=this.server.entityID(),f="/library/metadata/"+o,m=n.i(b.a)(y.b,f,h);if(p(w.updateMetadataItemRefreshingState({serverEntityID:h,metadataItemEntityID:m,metadataState:l,mediaState:u})),i===v.a.PROCESSED&&p(w.repopulateMetadataItem({serverEntityID:h,metadataItemEntityID:m})),i===v.a.DELETED&&p(w.removeMetadataItem({serverEntityID:h,metadataItemEntityID:m})),
i===v.a.CREATED||i===v.a.DELETED){if(a>0){var I=Date.now()-_;a===O&&I<5e3?j||(j=setTimeout(t,5e3-I)):t()}if(r>0){var C="/library/metadata/"+r,P=n.i(b.a)(y.b,C,h);p(D.a({serverEntityID:h,metadataItemEntityID:P,rootMetadataKey:C}))}if(s>0){var x="/library/metadata/"+s,E=n.i(b.a)(y.b,x,h);p(D.a({serverEntityID:h,metadataItemEntityID:E,parentMetadataKey:x}))}var N=n.i(S.b)(c);N&&N.typeString===S.d&&p(D.a({serverEntityID:h,containerKeyPattern:new RegExp("^/playlists")}))}e.server=this.server,
this.server.trigger("socket:timeline",e),d.a.trigger("timeline",e)}},a[k.STATUS]=function(e){var t=e.title+(e.description?": "+e.description:"");if(d.a.trigger("show:status",this.server,t),this.server.trigger("socket:status",e),"LIBRARY_UPDATE"===e.notificationName){var n=M.a("appStore").dispatch,i=this.server.entityID();i&&(n(C.b({serverEntityID:i})),n(D.a({serverEntityID:i})))}},a[k.PROGRESS]=function(e){d.a.trigger("show:status",this.server,e.message),this.server.trigger("socket:status",e)},
a[k.PLAYING]=function(e){var t=this;if(e.sessionKey&&!this.server.get("shared")){var i=this.server.get("desktop").get("sessions"),a=i.get(e.sessionKey);if(a&&a.get("key")===e.key)if(e.state===p.a.states.STOPPED){a.trigger("destroy",a,a.collection),a.cache.remove(a);var r=M.a("appStore").dispatch,o=this.server.entityID();o&&r(D.a({serverEntityID:o}))}else{var l=a.get("Player");l&&(l.state=e.state,a.trigger("change:Player",a,l)),a.set("viewOffset",e.viewOffset)}else{if(i.isPopulating())return
;i.fetch().done(function(){if(a=i.get(e.sessionKey)){var r=M.a("appModel"),o=r.get("user"),l=a.get("Player").title,c=a.get("User").title,p=a.get("grandparentTitle"),h=a.get("title");p&&(h=p+" - "+h);var f=n.i(u.default)("{1} started playing {2} on {3}.",c,h,l);c&&c!==o.get("username")&&d.a.trigger("show:status",t.server,f),t.server.trigger("socket:playing",s.a.extend(e,{username:c||n.i(u.default)("Unknown"),title:h,player:l}))}})}}},a[k.SYNC_STATE]=function(e){var t=new E.a({key:e.key},{
server:this.server,syncItemId:e.syncItemId,onlyIfCached:!0});if(!s.a.isEmpty(t)){t.get("Media").forEach(function(n){n.Part.forEach(function(n){n.transcodeState=e.syncFileState,n.transcodeStateContext=e.syncFileStateContext,n.syncState=e.syncState,n.syncStateContext=e.syncStateContext;var i=h.a.getSyncStateFromPart(n);h.a.waitingRegex.test(i)&&(n.key="placeholder"),t.trigger("change:Media",t,t.get("Media"))})})}},a[k.BACKGROUND_GENERATOR_STATE]=function(e){var t={server:this.server,
onlyIfCached:!0},n=new N.a({id:e.generatorID},t);s.a.isEmpty(n)||n.fetch()},a[k.VERSION_STATE]=function(e){var t={server:this.server,onlyIfCached:!0},n=new N.a({id:e.generatorID},t);if(!s.a.isEmpty(n)){var i=n.get("children").getCollection(),a=i.get(e.metadataItemID);a&&a.set({processingState:e.state,processingStateContext:e.stateContext})}},a[k.BACKGROUND_PROCESSING_QUEUE]=function(e){var t=new L.a([],{server:this.server,allowInCache:!0,onlyIfCached:!0});if(!s.a.isEmpty(t)){var n=t.first()
;n&&n.fetch()}},a[k.TRANSCODE_START]=function(e){if("static"===e.context){var t=new A.a([],{server:this.server,allowInCache:!0,onlyIfCached:!0});s.a.isEmpty(t)||t.fetch()}else{this.server.get("desktop").get("sessions").fetch()}},a[k.TRANSCODE_UPDATE]=function(e){if("static"===e.context){var t=new A.a([],{server:this.server,allowInCache:!0,onlyIfCached:!0});if(!s.a.isEmpty(t)){var n=t.get(e.key);n?n.set(n.parse(e)):t.fetch()}}},a[k.TRANSCODE_END]=function(e){
this["transcodeSession.start"].apply(this,arguments)},a[k.UPDATE_STATE_CHANGE]=function(e){var t=this.server.get("desktop").get("update"),n=s.a.pick(e,t.whitelistedAttrs);s.a.defaults(n,s.a.result(t,"defaults")),"downloading"===t.get("state")&&"available"===n.state&&(n.state="downloading"),t.set(n)},a[k.REACHABILITY]=function(e){this.server.get("desktop").get("cloudAccount").fetch()},a[k.ACCOUNT]=function(e){if(this.server.set("myPlexSubscription",e.hasPlexPass),
this.server.supports("reachability")){var t=s.a.extend(this.server.getXHROptions("/myplex/refreshReachability"),{type:"PUT"});l.a.ajax(t)}M.a("appModel").get("user").get("isSignedIn")&&d.a.trigger("discover:servers")},a[k.ACTIVITY]=function(e){var t=n.i(f.a)(e),i=M.a("appStore"),a=this.server.entityID(),r=t.Activity||t;r.Context=r.Context||{},r.Response=r.Response||{},a&&("started"===t.event?i.dispatch(C.p({serverEntityID:a,activity:r})):"updated"===t.event?i.dispatch(C.q({serverEntityID:a,
activity:r})):"ended"===t.event&&i.dispatch(C.r({serverEntityID:a,activity:r})))},a[k.GRABBER_DEVICE]=function(e){var t=M.a("appStore"),n=this.server.entityID();n&&"appeared"===e.event&&t.dispatch(C.s({serverEntityID:n,device:e.Device}))},a[k.CONTENT_CHANGE]=function(e){var t=M.a("appStore"),n=this.server.entityID();t.dispatch(P.i({serverEntityID:n,playerType:m.b})),T.a.EPG_IDENTIFIER.test(window.location.hash)&&t.dispatch(D.a({serverEntityID:n}))},a.onOpen=function(e){
var t=M.a("appStore"),n=this.server.entityID();n&&t.dispatch(C.t({serverEntityID:n,event:e})),this.server.trigger("socket:websocket",{opened:!0}),this.trigger("open",this.server,e),this._deferred.resolve(this.server,e)},a.onClose=function(e){this.close();var t=M.a("appStore"),n=this.server.entityID();n&&t.dispatch(C.u({serverEntityID:n,event:e})),this.server.trigger("socket:websocket",{closed:!0}),this.trigger("close",this.server,e),this._deferred.reject(this.server,e),this.testConnection()},
a.onError=function(e){this.close(),this.server.trigger("socket:websocket",{error:!0}),this.trigger("error",this.server,e),this._deferred.reject(this.server,e),this.testConnection()},a.onMessage=function(e){var t=this,n=void 0;try{n=JSON.parse(e.data)}catch(e){return}var a=!!n._elementType,r=a?s.a.first(n._children):n.NotificationContainer;if(r){var o=a?n.type:r.type,l=this[o],u=void 0;u=a?s.a.isArray(r)?r:[r]:i(r),u.forEach(function(e){t.trigger("message",e),s.a.isFunction(l)&&l.call(t,e)})}},
a));t.a=R},function(e,t,n){"use strict";function i(){var e=n.i(r.a)(window.location.href,"http:");s.a.get("allowSSO")?window.location=a.join(e,{secure:0},{parseParams:!0,recognizeHash:!0}):window.location=e}var a=n(19),r=n(858),s=n(61);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(18),s=n(0),o=(n.n(s),n(39)),l=n.n(o),u=n(11),c=n(13),d=n(1525),p=n(2028),h=n(3041),f=n.n(h),v=a()("div",{},void 0,a()(p.a,{}),a()(d.a,{})),m=r.a.ItemView.extend({className:"background-container",
template:f.a,mountReact:function(){var e=n.i(c.a)("appStore");l.a.render(a()(u.a,{store:e},void 0,v),this.el)},unmountReact:function(){this.isRendered&&l.a.unmountComponentAtNode(this.el)},onBeforeRender:function(){this.unmountReact()},onRender:function(){this.mountReact()},onClose:function(){this.unmountReact()}});t.a=m},function(e,t,n){"use strict"
;var i=n(3042),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(18),c=n(13),d=n(15),p=n(61),h=n(920),f=n(1808),v=n(1826),m=n(1831),g=n(1981),y=n(1980),b=n(1978),S=n(296),I=n(1740),M=u.a.Layout.extend({el:"#plex",template:a.a,resizeDelay:200,ui:{content:"#content"},customRegions:{background:{prepend:!0,global:!0},content:{selector:"#content",global:!0,scrollable:!0,channelName:"content"},status:{prepend:!0,global:!0},navbar:{prepend:!0,global:!0},alertbar:{selector:".alert-bar-container"},
audioVideoPlayer:{append:!0,global:!0},photoPlayer:{append:!0,global:!0}},openAlerts:{},initialize:function(){s.a.bindAll(this,"triggerResizeEvent");var e=c.a("appModel");this.user=e.get("user"),this.modals=[],s.a.each(s.a.keys(this.customRegions),function(e){var t=this.customRegions[e],n=t.selector||s.a.uniqueId("r");t.scrollable?this.addRegion(e,new I.a({el:n,channelName:t.channelName})):this.addRegion(e,n)},this),this.listenTo(e,{"change:authorized":this.onAuthorizedChange,
"change:isFirstRun":this.onFirstRunChange}),this.listenTo(this.user,{"change:locked":this.onUserLockedChange}),this.listenTo(d.a,{"show:loading":this.showLoading,"show:view":this.showView,"show:alert":this.showAlert,"show:bar":this.showBar,"hide:bar":this.hideBar,"show:modal":this.showModal,"hide:modal":this.hideModal,"update:scrollPosition":this.onUpdateScrollPosition}),l()(window).on("resize",this.onResize)},showCustomRegion:function(e,t){var n=this.customRegions[e],i=this[e]
;if(this.user.get("locked"))return i.lockedView=t,void t.close();n.append?i.append(t,this.$el):n.prepend?i.prepend(t,this.$el):i.show(t)},showLoading:function(){this.hideBar("alertbar"),this.user.get("locked")&&this.resetContentLockedRegions(),this.showCustomRegion("content",new h.a)},showView:function(e){l()(".tooltip").remove(),this.hideBackground(this.currentView,e),d.a.trigger("cycle:cache"),this.currentView=e,this.showCustomRegion("content",e),this.ui.content.scrollTop(0)},
showAlert:function(e){var t=e.message;if(!this.openAlerts[t]){var n=new v.a(e);this.openAlerts[t]=!0,this.listenToOnce(n,"close",function(){delete this.openAlerts[t]}),this.$el.append(n.render().el)}},showAlertBar:function(){var e=p.a.get("alerts");e&&e.length&&(p.a.set("alerts",null),this.showBar("alertbar",new S.a({alert:s.a.first(e)})))},showBar:function(e,t){this.customRegions[e].modifier&&this.$el.addClass(this.customRegions[e].modifier),t&&this.showCustomRegion(e,t)},hideBar:function(e,t){
t||(t={});var n=this.customRegions[e],i=n.modifier;i&&this.$el.removeClass(i),t.preserve||(this[e].lockedView=null,this[e].close())},showModal:function(e){this.modals.push(e);var t=l()("body");e.transparent&&t.addClass("show-modal-transparent"),t.append(e.render().el)},hideModal:function(e){var t=s.a.indexOf(this.modals,e);t>-1&&this.modals.splice(t,1)[0].close(),e.transparent&&!s.a.findWhere(this.modals,{transparent:!0})&&l()("body").removeClass("show-modal-transparent")},
hideBackground:function(e,t){var n=t.model?t.model.get("grandparentTheme")||t.model.get("parentTheme")||t.model.get("theme")||t.model.get("key"):null;d.a.trigger("audio:fadeOut",{exceptKey:n}),e&&e.model&&d.a.trigger("hide:background",this.currentView.model)},lockAll:function(){this._isLocked=!0;var e=s.a.map(s.a.keys(this.customRegions),function(e){return this[e]},this);s.a.each(e,function(e){e.close()},this)},resetContentLockedRegions:function(){
s.a.each(s.a.keys(this.customRegions),function(e){if(!this.customRegions[e].global){var t=this[e];t.lockedView&&(t.lockedView=null)}},this)},restoreAll:function(){this._isLocked=!1;var e=c.a("appModel");e.get("authorized")&&this.showBar("navbar",new b.a({model:e}),{prepend:!0}),this.showCustomRegion("background",this.backgroundView),this.showCustomRegion("status",new m.a),this.showCustomRegion("photoPlayer",new g.a),this.showCustomRegion("audioVideoPlayer",new y.a)},
triggerResizeEvent:function(){d.a.trigger("resize")},onRender:function(){this.backgroundView=new f.a,this.restoreAll()},onAuthorizedChange:function(e,t){if(t){var n=c.a("appModel");this.showBar("navbar",new b.a({model:n}),{prepend:!0});var i=this.user.get("locked");i!==!1&&null!==i||this.showAlertBar()}else this.hideBar("navbar"),d.a.trigger("navigate:refresh")},onFirstRunChange:function(e,t){this.$el.toggleClass("show-first-run",t)},onUserLockedChange:function(e,t){
t?this.lockAll():!this._isLocked||t!==!1&&null!==t||(null===t&&(this.backgroundView=new f.a),this.restoreAll())},onResize:function(){this.resizeTimeout=clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(this.triggerResizeEvent,this.resizeDelay)},onUpdateScrollPosition:function(e){this.ui.content[0].scrollTop=e}});t.a=M},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(3043),s=n.n(r),o=n(18),l=o.a.ItemView.extend({template:s.a,className:"download-server-pane",
serializeData:function(){var e=this.model.toJSON();return a()({shouldUseDropup:e.releases.length>4},e)}});t.a=l},function(e,t,n){"use strict";var i=n(3044),a=n.n(i),r=n(18),s=n(13),o=n(33),l=r.a.ItemView.extend({template:a.a,initialize:function(){var e=s.a("appModel");this.listenTo(e,"change:primaryServer",this.render),this.listenTo(e.get("user"),"change:signedIn",this.render)},serializeData:function(){var e=s.a("appModel"),t=e.get("user"),n=e.get("primaryServer"),i={host:window.location.host,
userAgent:window.navigator.userAgent,browser:o.a,user:t.toJSON(),hasPlexPass:t.hasPlexPass(),cloudServer:t.server.toJSON(),cloudServerUrl:t.server.url()};return n&&(i.primaryServer=n.toJSON(),i.primaryServerUrl=n.url()),i}});t.a=l},function(e,t,n){"use strict";var i=n(3046),a=n.n(i),r=n(18),s=r.a.ItemView.extend({className:"logs-container",template:a.a,ui:{textarea:"textarea"},collectionEvents:{add:"onAdd"},onlyAfterRender:["onAdd"],serializeData:function(){return{
logs:this.collection.toJSONString()}},onAdd:function(e,t){this.ui.textarea.text(this.collection.toJSONString())}});t.a=s},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),s=(n.n(r),n(39)),o=n.n(s),l=n(11),u=n(13),c=n(56),d=n(53),p=n(116),h=n(190),f=n(191),v=n(2374),m=n(171),g=p.a.extend({mountReact:function(){var e=n.i(u.a)("appStore"),t=this.options.selectedServerID,i=this.options.query,r=n.i(d.a)(c.f,this.options.serverID);o.a.render(a()(l.a,{store:e},void 0,a()(m.a,{serverEntityID:r
})),this.ui.sidebar[0]),o.a.render(a()(l.a,{store:e},void 0,a()(h.a,{machineIdentifier:this.options.selectedServerID},void 0,a()(f.a,{},void 0,a()(v.a,{machineIdentifier:t,serverEntityID:r,query:i})))),this.ui.page[0])}});t.a=g},function(e,t,n){"use strict";var i=n(3047),a=n.n(i),r=n(3),s=n.n(r),o=n(18),l=n(13),u=o.a.ItemView.extend({className:"sign-in-form",template:a.a,validationFields:["username","email","password","confirm"],ui:{submitBtn:"[type=submit]",signInBtn:".sign-in-btn",
signUpBtn:".sign-up-btn",username:".username-group",email:".email-group",password:".password-group",confirm:".confirm-group"},events:{"click .sign-in-btn":"onSignInClick","click .sign-up-btn":"onSignUpClick","blur input":"onInputBlur","submit form":"onSubmit"},initialize:function(e){this.isFirstRun=e.isFirstRun,this.showRememberMe=e.showRememberMe,l.a("metrics").trackView({page:"signIn",firstRun:this.isFirstRun})},serializeData:function(){return{showRememberMe:this.showRememberMe}},
validateAll:function(e,t,n){var i=!0;return t||(t=this.validationFields),s.a.each(t,s.a.bind(function(t){var a=e[t];this.validate(a,n[t],n)||(i=!1)},this)),i},validate:function(e,t,n){var i,a=e.id;if(s.a.indexOf(this.validationFields,a)<0)return!0;var r=this.ui[a];return i="confirm"===e.id?t===e.form.password.value:!!t,r.toggleClass("has-error",!i),i},onSignInClick:function(e){e.preventDefault(),this.ui.signInBtn.addClass("selected"),this.ui.signUpBtn.removeClass("selected"),
this.$el.addClass("sign-in-form"),this.$el.removeClass("sign-up-form"),l.a("metrics").trackView({page:"signIn",firstRun:this.isFirstRun})},onSignUpClick:function(e){e.preventDefault(),this.ui.signInBtn.removeClass("selected"),this.ui.signUpBtn.addClass("selected"),this.$el.removeClass("sign-in-form"),this.$el.addClass("sign-up-form"),l.a("metrics").trackView({page:"signup",firstRun:this.isFirstRun})},onInputBlur:function(e){var t=e.target,n="checkbox"===t.type?t.checked:t.value
;this.validate(t,n)}});t.a=u},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),s=(n.n(r),n(39)),o=n.n(s),l=n(11),u=n(13),c=n(116),d=n(462),p=n(2196),h=a()(d.a,{selectedKey:"account"}),f=a()(p.a,{}),v=c.a.extend({mountReact:function(){var e=n.i(u.a)("appStore");o.a.render(a()(l.a,{store:e},void 0,h),this.ui.sidebar[0]),o.a.render(a()(l.a,{store:e},void 0,f),this.ui.page[0])}});t.a=v},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),s=(n.n(r),
n(39)),o=n.n(s),l=n(11),u=n(13),c=n(116),d=n(462),p=n(2205),h=a()(d.a,{selectedKey:"audio-subtitle-settings"}),f=a()(p.a,{}),v=c.a.extend({mountReact:function(){var e=n.i(u.a)("appStore");o.a.render(a()(l.a,{store:e},void 0,h),this.ui.sidebar[0]),o.a.render(a()(l.a,{store:e},void 0,f),this.ui.page[0])}});t.a=v},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),s=(n.n(r),n(39)),o=n.n(s),l=n(11),u=n(13),c=n(116),d=n(462),p=n(2249),h=a()(d.a,{selectedKey:"plex-cloud"
}),f=a()(p.a,{}),v=c.a.extend({mountReact:function(){var e=n.i(u.a)("appStore");o.a.render(a()(l.a,{store:e},void 0,h),this.ui.sidebar[0]),o.a.render(a()(l.a,{store:e},void 0,f),this.ui.page[0])}});t.a=v},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),s=(n.n(r),n(39)),o=n.n(s),l=n(11),u=n(13),c=n(116),d=n(462),p=n(2393),h=a()(d.a,{selectedKey:"webhooks"}),f=a()(p.a,{}),v=c.a.extend({mountReact:function(){var e=n.i(u.a)("appStore");o.a.render(a()(l.a,{store:e
},void 0,h),this.ui.sidebar[0]),o.a.render(a()(l.a,{store:e},void 0,f),this.ui.page[0])}});t.a=v},function(e,t,n){"use strict";var i=n(3050),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(18),c=n(13),d=n(15),p=n(28),h=n(58),f=n(604),v=n(603),m=n(601),g={preventDefault:!0,stopPropagation:!1},y=u.a.ItemView.extend({className:"action-bar",template:a.a,ui:{primaryActions:".action-bar-nav",secondaryActions:".dropdown-menu",playBtn:".play-btn",markWatchedBtn:".mark-watched-btn",
markUnwatchedBtn:".mark-unwatched-btn",watchLaterBtn:".watch-later-btn",shareBtn:".share-btn",recommendBtn:".recommend-btn",deleteFromUserPlaylistBtn:".delete-from-user-playlist-btn",infoBtn:".info-btn"},triggers:{"click .play-btn":"play","click .mark-watched-btn":"markWatched","click .mark-unwatched-btn":"markUnwatched","click .watch-later-btn":s.a.extend({event:"watchLater"},g),"click .share-btn":s.a.extend({event:"share"},g),"click .recommend-btn":s.a.extend({event:"recommend"},g),
"click .delete-from-user-playlist-btn":s.a.extend({event:"deleteFromUserPlaylist"},g),"click .info-btn":s.a.extend({event:"info"},g)},onlyAfterRender:["onPlay","onMarkWatched","onMarkUnwatched","onWatchLater","onShare","onRecommend","onDeleteFromUserPlaylist","updateDropdown"],initialize:function(e){this.type=this.model.get("type"),this.mediaActions=e.mediaActions,this.listenTo(this.mediaActions,"change",s.a.throttle(this.updateDropdown,50)),
this.listenTo(this.mediaActions,"change:selectedItems",this.onSelectedItemsChange),this.listenTo(d.a,{"shortcut:play":this.onPlay,"shortcut:markWatched":this.onMarkWatched,"shortcut:markUnwatched":this.onMarkUnwatched,"shortcut:delete":this.onDeleteFromUserPlaylist,"shortcut:info":this.onInfo})},serializeData:function(){return{}},updateDropdown:function(){var e=this.ui.secondaryActions.find("a:not(.hidden)"),t=e.hasClass("secondary-only"),n=e.length>2||t
;this.$el.toggleClass("show-secondary-actions-dropdown",n)},bindingsModel:"mediaActions",bindings:{".play-btn":{modelAttribute:"showPlay",manual:!0,autohide:!0},".mark-watched-btn":{modelAttribute:"showMarkWatched",manual:!0,autohide:!0},".mark-unwatched-btn":{modelAttribute:"showMarkUnwatched",manual:!0,autohide:!0},".watch-later-btn":{modelAttribute:"showWatchLater",manual:!0,autohide:!0},".share-btn, .recommend-btn":{modelAttribute:"showShare",manual:!0,autohide:!0},
".delete-from-user-playlist-btn":{modelAttribute:"showDeleteFromUserPlaylist",manual:!0,autohide:!0},".info-btn":{modelAttribute:"showInfo",manual:!0,autohide:!0}},onRender:function(){this.$el.tooltip({selector:".nav > li > a",container:"body",placement:"right"}),this.updateDropdown()},onPlay:function(){if(!this.ui.playBtn.isDisabled()||!this.ui.playAllBtn.isDisabled()){n.i(c.a)("appStore").dispatch(n.i(h.a)({serverModel:this.model.server,metadataItemModel:this.model}))}},
onMarkWatched:function(){this.ui.markWatchedBtn.isDisabled()||p.a.execute("markWatched",{item:this.model})},onMarkUnwatched:function(){this.ui.markUnwatchedBtn.isDisabled()||p.a.execute("markUnwatched",{item:this.model})},onWatchLater:function(){this.ui.watchLaterBtn.isDisabled()||p.a.execute("watchLater",{item:this.model})},onShare:function(){this.ui.shareBtn.isDisabled()||d.a.trigger("show:modal",new f.a({model:this.model}))},onRecommend:function(){
this.ui.recommendBtn.isDisabled()||d.a.trigger("show:modal",new v.a({model:this.model}))},onDeleteFromUserPlaylist:function(){if(!this.ui.deleteFromUserPlaylistBtn.isDisabled()){this.model.destroy().done(s.a.bind(function(){l()(".tooltip").remove(),d.a.trigger("navigate","dashboard",{replace:!0})},this))}},onInfo:function(){this.ui.infoBtn.isDisabled()||d.a.trigger("show:modal",new m.a({model:this.model}))}});t.a=y},function(e,t,n){"use strict"
;var i=n(3051),a=n.n(i),r=n(3),s=n.n(r),o=n(18),l=n(13),u=n(141),c=n(354),d=n(1821),p=n(1825),h=n(1822),f=n(1823),v={alerts:d.a,sync:p.a,conversion:h.a,nowPlaying:f.a},m=o.a.Layout.extend({className:"container",template:a.a,ui:{conversionBadge:".conversion-btn > .badge",nowPlayingBadge:".now-playing-btn > .badge"},regions:{container:".activity-container"},bindings:{".sync-btn":{autohide:function(){return this.model.get("sync")}},".conversion-btn":{autohide:function(){
return this.model.get("backgroundProcessing")}}},initialize:function(e){this.options=e,this.subset=e.subset||"alerts",(0,n.i(l.a)("appStore").dispatch)(n.i(u.a)({allowLightPreset:!1}));var t=new c.a([],{server:this.model,persistInCache:!0});this.subsets={conversion:t,nowPlaying:this.model.get("desktop").get("sessions")},this.listenTo(this.subsets.conversion,"reset add remove",this.updateBadges),this.listenTo(this.subsets.nowPlaying,"reset add remove",this.updateBadges)},serializeData:function(){
return{subset:this.subset}},updateBadges:function(){var e={conversion:this.subsets.conversion.length,nowPlaying:this.subsets.nowPlaying.length};s.a.each(s.a.keys(e),function(t){var n=this.ui[t+"Badge"];n.text(e[t]),n.toggleClass("hidden",0===e[t])},this)},onRender:function(){var e=v[this.subset];this.container.show(new e(this.options)),this.updateBadges()}});t.a=m},function(e,t,n){"use strict";var i=n(3052),a=n.n(i),r=n(18),s=n(13),o=n(4),l=n(15),u=n(362),c=n(1872),d=r.a.Layout.extend({
className:"alerts-container",template:a.a,ui:{pageCount:".page-count",previousBtn:".previous-btn",nextBtn:".next-btn"},regions:{serverDropdown:".filter-bar",list:".alert-list-container"},modelEvents:{"change:shared":"onSharedChange"},collectionEvents:{add:"onAlertAdd"},events:{"click .previous-btn":"onPreviousClick","click .next-btn":"onNextClick"},onlyAfterRender:["onAlertAdd"],initialize:function(){var e=s.a("appModel");this.shared=this.model.get("shared"),this.page=1,
this.listCollection=this.collection.clone(this.collection.page(this.page,{reverse:!0})),this.listCollection.stopListening(),e.set("primaryServer",this.model),this.listenTo(e,"change:primaryServer",this.onPrimaryServerChange)},serializeData:function(){var e=this.collection.pages();return{shared:this.shared,page:this.page,pages:e,enablePrevious:this.page>1,enableNext:this.page<e}},updatePages:function(){var e=this.collection.pages();this.ui.pageCount.text(n.i(o.default)("{1} of {2}",this.page,e)),
this.ui.previousBtn.toggleClass("disabled",this.page<2),this.ui.nextBtn.toggleClass("disabled",this.page>=e)},updateList:function(){this.listCollection.reset(this.collection.page(this.page,{reverse:!0}))},onRender:function(){this.serverDropdown.append(new u.a),this.shared||this.list.append(new c.a({collection:this.listCollection}))},onPrimaryServerChange:function(e,t){t&&l.a.trigger("navigate","alerts",{serverID:t.id})},onSharedChange:function(e,t){this.shared=t,this.render()},
onAlertAdd:function(e,t){this.shared||(this.updatePages(),this.updateList())},onPreviousClick:function(e){e.preventDefault(),this.ui.previousBtn.isDisabled()||(this.page--,this.updatePages(),this.updateList())},onNextClick:function(e){e.preventDefault(),this.ui.nextBtn.isDisabled()||(this.page++,this.updatePages(),this.updateList())}});t.a=d},function(e,t,n){"use strict"
;var i=n(3053),a=n.n(i),r=n(3),s=n.n(r),o=n(18),l=n(13),u=n(4),c=n(15),d=n(199),p=n(740),h=n(1258),f=n(362),v=n(1881),m=n(1882),g=o.a.Layout.extend({className:"conversion-container",template:a.a,ui:{filterBar:".filter-bar",pauseBtn:".pause-btn",resumeBtn:".resume-btn",divider:".conversion-queue-divider"},regions:{filterBar:".filter-bar",upNextList:".conversion-queue-up-next-list-region",afterUpNextList:".conversion-queue-after-up-next-list-region",emptyRegion:".conversion-queue-empty-region"},
events:{"click .pause-btn":"onTogglePauseClick","click .resume-btn":"onTogglePauseClick"},initialize:function(e){var t=l.a("appModel");this.playQueue=e.playQueue,this.transcodeJobs=e.transcodeJobs,this.generators=e.generators,this.items=this.playQueue.get("collection"),this.upNextItems=new p.a(this.items,{playQueue:this.playQueue,includeSelectedItem:!0}),this.afterUpNextItems=new h.a(this.items,{playQueue:this.playQueue}),this.settings=this.model.get("desktop").get("settings"),
this.pausedSetting=this.settings.get("BackgroundQueueIdlePaused"),t.set("primaryServer",this.model),this.listenTo(t,"change:primaryServer",this.onPrimaryServerChange),this.listenTo(this.upNextItems,"reset add remove",this.onUpNextChange),this.listenTo(this.afterUpNextItems,"reset add remove",this.onAfterUpNextChange)},serializeData:function(){return{serverID:this.model.id,shouldShowList:this.model.supports("streamReady"),shouldShowDivider:!!this.afterUpNextItems.length,
minServerVersion:d.a.streamReady,hasPausedSetting:!!this.pausedSetting,isPaused:this.pausedSetting&&this.pausedSetting.get("value"),errorMessage:this.getErrorMessage()}},toggleEmptyView:function(){var e=this.upNextItems.length+this.afterUpNextItems.length>0;e?this.emptyRegion.close():this.emptyRegion.show(new m.a({model:this.model})),this.$el.toggleClass("is-empty",!e),this.ui.filterBar.toggleClass("hide-actions",!e)},getErrorMessage:function(){var e=this.generators.reduce(function(e,t){
var n=t.get("status");return"failed"===n.get("state")?e+=Math.max(n.get("itemsCount"),1):n.get("itemsFailedCount")&&(e+=n.get("itemsFailedCount")),e},0);if(e)return 1===e?n.i(u.default)("There was a problem converting 1 item."):n.i(u.default)("There were problems converting {1} items.",e)},onRender:function(){this.filterBar.append(new f.a);var e={playQueue:this.playQueue},t={playQueue:this.playQueue,transcodeJobs:this.transcodeJobs,pausedSetting:this.pausedSetting}
;this.upNextList.show(new v.a(s.a.extend({},e,{collection:this.upNextItems,itemViewOptions:t,sortableOptions:{sort:!0,group:{name:"upNext",pull:!1,put:["afterUpNext"]}}}))),this.afterUpNextList.show(new v.a(s.a.extend({},e,{collection:this.afterUpNextItems,itemViewOptions:s.a.extend({},t,{hideDragHandle:!0}),sortableOptions:{sort:!1,group:{name:"afterUpNext",pull:!0,put:!1}}}))),this.toggleEmptyView()},onClose:function(){this.upNextItems.destroy(),this.afterUpNextItems.destroy()},
onPrimaryServerChange:function(e,t){t&&c.a.trigger("navigate","conversion",{serverID:t.id})},onUpNextChange:function(){this.toggleEmptyView()},onAfterUpNextChange:function(){this.ui.divider.toggleClass("hidden",!this.afterUpNextItems.length),this.toggleEmptyView()},onTogglePauseClick:function(e){e.preventDefault();var t=this.pausedSetting.get("value");this.ui.pauseBtn.toggleClass("hidden",!t),this.ui.resumeBtn.toggleClass("hidden",t),this.pausedSetting.set("value",!t),
this.settings.first().save(this.pausedSetting.id,t?0:1)}});t.a=g},function(e,t,n){"use strict";var i=n(3054),a=n.n(i),r=n(18),s=n(13),o=n(15),l=n(199),u=n(362),c=n(1874),d=r.a.Layout.extend({className:"now-playing-container",template:a.a,regions:{filterBar:".filter-bar",list:".sessions-list-container"},modelEvents:{"change:shared":"onSharedChange"},shouldShowList:function(){return!this.shared&&!this.synced&&this.supported},initialize:function(e){var t=s.a("appModel")
;this.shared=this.model.get("shared"),this.synced=!this.model.get("isFullServer"),this.supported=this.model.supports("publicNowPlaying")||this.model.get("myPlexSubscription"),t.set("primaryServer",this.model),this.listenTo(t,"change:primaryServer",this.onPrimaryServerChange)},serializeData:function(){return{shouldShowList:this.shouldShowList(),shared:this.shared,synced:this.synced,minServerVersion:l.a.publicNowPlaying}},poll:function(){
this.pollTimeoutID=setTimeout(this.whenRendered(this.refreshList),5e3)},refreshList:function(){this.collection.length&&this.collection.fetch(),this.poll()},onRender:function(){clearTimeout(this.pollTimeoutID),this.filterBar.append(new u.a),this.shouldShowList()&&(this.list.show(new c.a({collection:this.collection})),this.refreshList())},onPrimaryServerChange:function(e,t){t&&o.a.trigger("navigate","nowPlaying",{serverID:t.id})},onSharedChange:function(e,t){this.shared=t,this.render()}});t.a=d
},function(e,t,n){"use strict";var i=n(3055),a=n.n(i),r=n(18),s=n(4),o=n(236),l=n(1877),u=r.a.Layout.extend({className:"sync-device-items-container",template:a.a,ui:{loading:".row-loading",empty:".sync-empty-message",deviceMessage:".sync-device-message",deviceMessageText:".sync-device-message-text"},regions:{list:".sync-item-list-container"},onlyAfterRender:["updateLoading","updateEmptyMessage","updateStatusMessage","updateSyncList"],initialize:function(e){var t=this;this.server=e.server
;var n=this.model.get("syncList");n?n.fetch({scope:"page"}).done(function(){t.onSyncItemsReset()}):this.onSyncItemsReset()},updateLoading:function(){this.ui.loading.addClass("hidden")},updateEmptyMessage:function(){var e=this.syncList,t=!e||0===e.getCollection().length;this.ui.empty.toggleClass("hidden",!t)},updateStatusMessage:function(){var e=this.syncList,t=!e||e.get("isActive");if(this.ui.deviceMessage.toggleClass("hidden",t),!t){var i=this.syncList.device,a=i.get("lastSeenAt");if(!a)return
;this.ui.deviceMessageText.text(n.i(s.default)("{1} was last seen {2}. Syncing will resume next time you launch Plex on this device.",i.get("name"),n.i(o.a)(a)))}},updateSyncList:function(){var e=this.syncList;e&&this.list.show(new l.a({collection:e.getCollection(),itemViewOptions:{server:this.server}}))},onSyncItemsReset:function(){var e=this.model.get("syncList");e&&(this.syncList=e.clone(),this.syncList.resetToServer(this.server.id),
this.listenTo(this.syncList,"reset update",this.onSyncItemsChange)),this.updateLoading(),this.updateEmptyMessage(),this.updateStatusMessage(),this.updateSyncList()},onSyncItemsChange:function(){this.updateEmptyMessage()}});t.a=u},function(e,t,n){"use strict";var i=n(3056),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(18),c=n(13),d=n(4),p=n(15),h=n(80),f=n(28),v=n(79),m=n(362),g=n(1824),y=u.a.Layout.extend({className:"sync-container",template:a.a,transcodeJobDelay:2e3,ui:{devices:".nav a"},
regions:{filterBar:".filter-bar",container:".sync-device-container"},modelEvents:{"change:shared":"onSharedChange"},events:{"click .nav a":"onDeviceClick","click .edit-btn":"onEditClick","click .refresh-btn":"onRefreshClick","click .cloud-sync-settings-btn":"onCloudSyncSettingsClick"},initialize:function(e){var t=c.a("appModel");this.selectedDevice=e.selectedDevice,this.user=t.get("user"),this.shared=this.model.get("shared"),this.transcodeJobs=this.model.get("desktop").get("transcodeJobs"),
this.allowSync=this.model.get("allowSync"),this.signedIn=this.model.get("myPlexSigninState")===v.a,t.set("primaryServer",this.model),this.listenTo(t,"change:primaryServer",this.onPrimaryServerChange),this.collection.length&&(this.selectedDevice||(this.selectedDevice=this.collection.first()),this.fetchTranscodeJobs())},serializeData:function(){return{shared:this.shared,hasTouchScreen:h.a.hasTouchScreen,signedIn:this.signedIn,allowSync:this.allowSync,sync:this.model.get("sync"),
selectedDevice:this.selectedDevice?this.selectedDevice.toJSON():null,devices:this.collection.toJSON(),plexPassInfo:this.getPlexPassInfo()}},fetchTranscodeJobs:function(){this.transcodeJobs.fetch({reset:!0,scope:"page"}),this.transcodeJobTimeout=setTimeout(s.a.bind(this.fetchTranscodeJobs,this),this.transcodeJobDelay)},showList:function(){this.selectedDevice?this.container.show(new g.a({model:this.selectedDevice,server:this.model})):this.container.close()},getPlexPassInfo:function(){
return this.signedIn||this.shared?{url:this.user.server.get("plexPassUrl"),message:n.i(d.default)("The server needs a Plex Pass to use sync."),buttonText:n.i(d.default)("Learn More"),target:"_blank",showButton:!this.shared}:{url:"#!/settings/server",message:n.i(d.default)("The server needs to be signed in with a Plex Pass to use sync."),buttonText:n.i(d.default)("Sign In"),target:"_self",showButton:!0}},onRender:function(){this.filterBar.append(new m.a({showSharedServers:!0})),
this.allowSync&&this.showList()},onClose:function(){clearTimeout(this.transcodeJobTimeout)},onPrimaryServerChange:function(e,t){t&&p.a.trigger("navigate","sync",{serverID:t.id})},onSharedChange:function(e,t){this.shared=t,this.render()},onDeviceClick:function(e){e.preventDefault();var t=l()(e.currentTarget),n=t.data("id");this.ui.devices.removeClass("selected"),t.addClass("selected"),this.selectedDevice=this.collection.get(n),this.showList()},onEditClick:function(e){e.preventDefault(),
l()(e.currentTarget).toggleClass("selected"),this.$el.toggleClass("force-hover")},onRefreshClick:function(e){e.preventDefault();var t=f.a.execute("refreshSyncLists",{server:this.model});this.selectedDevice&&t.always(this.whenRendered(function(){this.selectedDevice.get("syncList").fetch({reset:!0,scope:"page"})}))},onCloudSyncSettingsClick:function(e){e.preventDefault(),e.stopImmediatePropagation();var t=c.a("appModel"),n=t.get("user");window.open(n.server.get("cloudSyncUrl"))}});t.a=y
},function(e,t,n){"use strict";var i=n(3058),a=n.n(i),r=n(3),s=n.n(r),o=n(18),l=n(287),u=o.a.ItemView.extend({mixins:[l.a],className:"alert transition-in",template:a.a,alertDuration:2e3,transitionDuration:500,events:{mouseenter:"onMouseEnter",mouseleave:"onMouseLeave","click .close-btn":"onCloseClick"},initialState:"transitionIn",states:{transitionIn:{nextState:"visible",onEnter:function(){this.$el.triggerReflow(),this.$el.removeClass("transition-in"),this.startTransition()}},visible:{
nextState:"transitionOut",onEnter:function(){this.transitionOutTimeout=setTimeout(this.enterNextState,this.alertDuration)}},transitionOut:{onEnter:function(){this.$el.addClass("transition-out"),this.startTransition()}}},initialize:function(e){this.bindAllWhenRendered(["enterNextState"]),s.a.isString(e)&&(e={message:e}),this.type=e.type,this.message=e.message,this.type&&this.$el.addClass("has-"+this.type)},serializeData:function(){return{type:this.type,message:this.message}},
startTransition:function(){setTimeout(this.enterNextState,this.transitionDuration)},onRender:function(){s.a.defer(this.enterNextState)},onStateMachineComplete:function(){this.close()},onMouseEnter:function(e){clearTimeout(this.transitionOutTimeout)},onMouseLeave:function(e){"visible"===this.currentState&&(clearTimeout(this.transitionOutTimeout),this.transitionOutTimeout=setTimeout(this.enterNextState,this.alertDuration/2))},onCloseClick:function(e){e.preventDefault(),
"visible"===this.currentState&&(clearTimeout(this.transitionOutTimeout),this.enterNextState())}});t.a=u},function(e,t,n){"use strict";var i=n(3059),a=n.n(i),r=n(3),s=n.n(r),o=n(1496),l=n(296),u=l.a.extend({className:"alert-bar notify",template:a.a,events:s.a.extend({"click .info-link":"onInfoClick"},l.a.prototype.events),initialize:function(){this.listenTo(this.model,"change:read",this.hide)},serializeData:function(){var e=this.model.get("content");return{content:n.i(o.a)(e),
url:this.model.get("url")}},onInfoClick:function(e){this.hide(),this.model.markAsRead()},onCloseClick:function(e){l.a.prototype.onCloseClick.apply(this,arguments),this.model.markAsRead()}});t.a=u},function(e,t,n){"use strict";var i=n(3060),a=n.n(i),r=n(3),s=n.n(r),o=n(13),l=n(15),u=n(80),c=n(34),d=n(64),p=n(296),h=p.a.extend({name:"ClaimServerAlertBarView",className:"claim-server-alert-bar alert-bar notify",template:a.a,events:s.a.extend({"click .claim-link":"onClaimClick",
"click .reload-link":"onReloadClick"},p.a.prototype.events),initialize:function(){p.a.prototype.initialize.apply(this,arguments);var e=n.i(o.a)("appModel").get("settings"),t=e.get("viewedUnclaimedServers");this.model.id&&t.indexOf(this.model.id)===-1&&(n.i(o.a)("metrics").trackView({page:c.R,mode:"banner"},{interaction:!1}),e.save("viewedUnclaimedServers",t.concat(this.model.id)))},serializeData:function(){return{showInsecureMessage:u.a.isHostedHttps&&!this.model.get("isSecure")}},
onClaimClick:function(e){e.preventDefault(),n.i(o.a)("metrics").trackClick({action:d.M,page:c.R,mode:"banner"}),l.a.trigger("navigate","serverSettings",{serverID:this.model.id}),this.hide()},onReloadClick:function(e){e.preventDefault(),window.location=this.model.resolveUrl("/web",{connection:this.model.get("connections").first()}),this.hide()},onCloseClick:function(e){p.a.prototype.onCloseClick.apply(this,arguments);var t=n.i(o.a)("appModel").get("settings"),i=t.get("dismissedUnclaimedServers")
;this.model.id&&i.indexOf(this.model.id)===-1&&(n.i(o.a)("metrics").trackClick({action:d.o,page:c.R,mode:"banner"}),t.save("dismissedUnclaimedServers",i.concat(this.model.id)))}});t.a=h},function(e,t,n){"use strict";var i=n(3061),a=n.n(i),r=n(3),s=n.n(r),o=n(13),l=n(101),u=n(296),c=u.a.extend({className:"alert-bar notify",template:a.a,events:s.a.extend({"click .setup-link":"onSetupClick"},u.a.prototype.events),serializeData:function(){var e=encodeURIComponent(this.options.machineIdentifier)
;return{model:this.model.get("model"),make:this.model.get("make"),encodedMachineIdentifier:e}},disableDevice:function(){var e=n.i(o.a)("appStore"),t=this.options.serverEntityID;t&&e.dispatch(n.i(l.B)({serverEntityID:t,deviceID:this.model.id,enabled:!1}))},onSetupClick:function(){this.hide(),this.disableDevice()},onCloseClick:function(e){u.a.prototype.onCloseClick.apply(this,arguments),this.disableDevice()}});t.a=c},function(e,t,n){"use strict"
;var i=n(3062),a=n.n(i),r=n(3),s=n.n(r),o=n(13),l=n(4),u=n(15),c=n(571),d=n(28),p=n(874),h=n(296),f=h.a.extend({className:"alert-bar server-update-alert-bar notify",template:a.a,events:s.a.extend({"click .download-link":"onDownloadClick","click .install-link":"onInstallClick","click .skip-version-link":"onSkipThisVersionClick"},h.a.prototype.events),initialize:function(){this.server=this.model.server},serializeData:function(){var e=n.i(o.a)("appModel"),t=e.get("user").server;return{
state:this.model.get("state"),downloadURL:this.model.get("downloadURL")||t.get("appsUrl"),version:n.i(c.a)(this.model.get("version")),serverUpdateAvailableMessage:n.i(l.default)("A Plex Media Server update is available for the server {serverName}!",{serverName:this.model.server.get("friendlyName")})}},onDownloadClick:function(e){e.preventDefault(),d.a.execute("checkForServerUpdates",{server:this.server,download:!0,initialState:"downloading"}),u.a.trigger("navigate","serverSettings",{
serverID:this.server.id})},onInstallClick:function(e){e.preventDefault(),this.model.set("shouldInstall",!0),u.a.trigger("navigate","serverSettings",{serverID:this.server.id})},onSkipThisVersionClick:function(e){h.a.prototype.onCloseClick.apply(this,arguments);var t=n.i(c.a)(this.model.get("version"))||p.b;n.i(o.a)("appModel").get("settings").save("serverUpdateDismissedVersion",t)}});t.a=f},function(e,t,n){"use strict";var i=n(3063),a=n.n(i),r=n(3),s=n.n(r),o=n(18),l=n(15),u=o.a.ItemView.extend({
className:"alert alert-status transition-out",template:a.a,coolDown:!1,alertDuration:5e3,coolDownDuration:5e3,ui:{status:".status"},events:{mouseover:"onMouseOver"},onlyAfterRender:["onShowStatus"],initialize:function(e){s.a.bindAll(this,"hide"),this.listenTo(l.a,"show:status",this.onShowStatus)},hide:function(){this.$el.addClass("transition-out")},onShowStatus:function(e,t){this.coolDown||(this.server=e,this.ui.status.text(t),this.$el.removeClass("transition-out"),
this.inactivityTimeout=clearTimeout(this.inactivityTimeout),this.inactivityTimeout=setTimeout(this.hide,this.alertDuration))},onMouseOver:function(e){this.inactivityTimeout=clearTimeout(this.inactivityTimeout),this.hide(),this.coolDown=!0,setTimeout(s.a.bind(function(){this.coolDown=!1},this),this.coolDownDuration)}});t.a=u},function(e,t,n){"use strict";var i=n(3064),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(18),c=n(15),d=n(198),p=n(437),h=u.a.Layout.extend({className:"breadcrumb-bar",
template:a.a,ui:{listSelectedIcons:"#channel-list-dropdown .dropdown-selected-icon"},events:{"click .settings-btn":"onSettingsClick","click .list-btn":"onListClick"},initialize:function(e){this.currentListType=e.currentListType,this.prefsKey=this.model.get("prefsKey"),!this.prefsKey&&this.model.channel&&(this.prefsKey=this.model.channel.get("prefsKey")),this.shared=this.model.server.get("shared")},serializeData:function(){
var e=this.model.channel||this.model,t=e?e.get("title"):this.model.get("title"),n=e?e.id:e.get("identifier"),i="#!/server/"+encodeURIComponent(this.model.server.id);return i+="/channel/"+encodeURIComponent(n),{channelTitle:t,channelUrl:i,title:this.model.channel?this.model.get("title"):null,totalSize:this.model.get("metadataList").getCollection().length,showSettings:!!this.prefsKey&&!this.shared,listType:this.currentListType}},onSettingsClick:function(e){e.preventDefault();var t=new d.a([],{
server:this.model.server,url:this.prefsKey});t.fetch().done(s.a.bind(function(){c.a.trigger("show:modal",new p.a({model:this.model.channel||this.model,collection:t}))},this))},onListClick:function(e){e.preventDefault();var t=l()(e.currentTarget),n=t.data("type");this.trigger("change:listType",n)}});t.a=h},function(e,t,n){"use strict";var i=n(3065),a=n.n(i),r=n(18),s=n(13),o=n(141),l=n(735),u=n(1884),c=n(1886),d=r.a.Layout.extend({className:"container",template:a.a,regions:{
list:".directory-container"},onlyAfterRender:["onUpdate"],initialize:function(e){(0,n.i(s.a)("appStore").dispatch)(n.i(o.a)({allowLightPreset:!1})),this.currentKey=e.currentKey,this.currentPath=e.currentPath,this.currentKey||(this.currentKey=this.collection.first().get("key")),this.currentPath||(this.currentPath=this.currentKey),this.channelList=new l.a({key:this.currentPath},{server:this.collection.server}),this.channelList.fetch({scope:"page"}).always(this.onUpdate)},serializeData:function(){
return{directories:this.collection.toJSON(),serverID:this.collection.server.id,currentKey:this.currentKey}},onUpdate:function(){var e,t={collection:this.channelList.get("channels"),itemViewOptions:{currentKey:this.currentKey}};e="Store:Info"===this.channelList.get("viewGroup")?new c.a(t):new u.a(t),this.list.show(e)}});t.a=d},function(e,t,n){"use strict";var i=n(3066),a=n.n(i),r=n(18),s=n(15),o=n(13),l=n(1390),u=n(141),c=n(156),d=n(1832),p=n(1901),h=n(1898),f=n(1899),v=r.a.Layout.extend({
className:"channel-container legacy-page",template:a.a,regions:{breadcrumbBar:".legacy-breadcrumb-bar",scroller:".legacy-content-scroller"},initialize:function(e){var t=n.i(o.a)("appStore").dispatch;t(n.i(u.a)({allowLightPreset:!1})),this.listModel=e.listModel,this.collection=this.listModel.get("metadataItems");var i=this.model.get("header"),a=this.model.get("message");(i||a)&&s.a.trigger("show:alert",{message:a||i}),this.searchKey=this.model.get("searchKey"),
this.searchPlaceholder=this.model.get("title"),!this.searchKey&&this.model.channel&&(this.searchKey=this.model.channel.get("searchKey"),this.searchPlaceholder=this.model.channel.get("title"));var r=this.model.channel||this.model,d=r.id?r.id:r.get("identifier");this.searchKey&&t(c.changeQuickSearchSettings({serverEntityID:this.model.server.entityID(),channelPlaceholder:this.searchPlaceholder,channelID:d,channelSearchKey:this.searchKey})),this.listType=l.a.getListType(this.model),
s.a.trigger("show:background",{model:this.model,dim:!0})},getListConstructor:function(){switch(this.listType){case l.a.types.tileList:return p.a;case l.a.types.detailsList:return h.a;default:return f.a}},onRender:function(){var e=this.getListConstructor();this.scroller.show(new e({listModel:this.listModel,collection:this.collection,paginated:!1}));var t=new d.a({model:this.model,currentListType:this.listType});this.listenTo(t,"change:listType",this.onListTypeChange),this.breadcrumbBar.show(t)},
onClose:function(){(0,n.i(o.a)("appStore").dispatch)(c.changeQuickSearchSettings({serverEntityID:this.model.server.entityID(),channelPlaceholder:null,channelID:null,channelSearchKey:null}))},onListTypeChange:function(e){this.listType=e,this.listModel.scrollPosition=0,this.scroller.currentView.scrollPosition=0,this.render()}});t.a=v},function(e,t,n){"use strict";var i=n(3067),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(18),c=n(13),d=n(28),p=n(141),h=n(1888),f=u.a.Layout.extend({
className:"container",template:a.a,ui:{navLinks:".nav a",checkUpdatesBtn:".check-updates-btn"},regions:{list:".channels-container"},events:{"click .nav a":"onNavClick","click .all-btn":"onAllClick","click .video-btn":"onVideoClick","click .music-btn":"onMusicClick","click .photo-btn":"onPhotoClick","click .check-updates-btn":"onCheckUpdatesClick"},initialize:function(){(0,n.i(c.a)("appStore").dispatch)(n.i(p.a)({allowLightPreset:!1})),this.videoCollection=this.collection.filterByType("video"),
this.musicCollection=this.collection.filterByType("music"),this.photoCollection=this.collection.filterByType("photos"),this.shared=this.collection.server.get("shared")},serializeData:function(){return{serverID:this.collection.server.id,allCount:this.collection.length,videoCount:this.videoCollection.length,musicCount:this.musicCollection.length,photoCount:this.photoCollection.length,shared:this.shared}},onRender:function(){this.list.show(new h.a({collection:this.collection}))},
onNavClick:function(e){this.ui.navLinks.removeClass("selected"),l()(e.currentTarget).addClass("selected")},onAllClick:function(e){e.preventDefault(),this.list.show(new h.a({collection:this.collection}))},onVideoClick:function(e){e.preventDefault(),this.list.show(new h.a({collection:this.videoCollection}))},onMusicClick:function(e){e.preventDefault(),this.list.show(new h.a({collection:this.musicCollection}))},onPhotoClick:function(e){e.preventDefault(),this.list.show(new h.a({
collection:this.photoCollection}))},onCheckUpdatesClick:function(e){e.preventDefault();var t=this.ui.checkUpdatesBtn;if(!t.hasClass("active")){t.addClass("active");d.a.execute("updateChannel",{server:this.collection.server}).always(s.a.bind(function(){t.removeClass("active")},this))}}});t.a=f},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),s=(n.n(r),n(39)),o=n.n(s),l=n(11),u=n(13),c=n(597),d=n(2339),p=a()(d.a,{}),h=c.a.extend({mountReact:function(){var e=n.i(u.a)("appStore")
;o.a.render(a()(l.a,{store:e},void 0,p),this.ui.page[0])}});t.a=h},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),s=(n.n(r),n(39)),o=n.n(s),l=n(11),u=n(13),c=n(56),d=n(53),p=n(116),h=n(991),f=n(171),v=a()(f.a,{}),m=p.a.extend({mountReact:function(){var e=n.i(u.a)("appStore"),t=this.options.selectedServerID,i=n.i(d.a)(c.f,t);o.a.render(a()(l.a,{store:e},void 0,v),this.ui.sidebar[0]),o.a.render(a()(l.a,{store:e},void 0,a()(h.a,{serverEntityID:i})),this.ui.page[0])}});t.a=m
},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),s=(n.n(r),n(39)),o=n.n(s),l=n(11),u=n(13),c=n(56),d=n(53),p=n(116),h=n(171),f=n(190),v=n(191),m=n(2245),g=a()(h.a,{}),y=p.a.extend({mountReact:function(){var e=n.i(u.a)("appStore"),t=this.options.selectedServerID,i=this.options.selectedProviderID,r=this.options.params||{},s=n.i(d.a)(c.f,t),p=n.i(d.a)(c.e,i,s);o.a.render(a()(l.a,{store:e},void 0,g),this.ui.sidebar[0]),o.a.render(a()(l.a,{store:e},void 0,a()(f.a,{machineIdentifier:t
},void 0,a()(v.a,{providerEntityID:p},void 0,a()(m.a,{machineIdentifier:t,serverEntityID:s,providerEntityID:p,listKey:r.key,listTitle:r.title,listType:r.type})))),this.ui.page[0])}});t.a=y},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),s=(n.n(r),n(39)),o=n.n(s),l=n(11),u=n(13),c=n(295),d=n(53),p=n(116),h=n(190),f=n(191),v=n(455),m=n(171),g=a()(m.a,{}),y=p.a.extend({mountReact:function(){
var e=n.i(u.a)("appStore"),t=this.options.selectedServerID,i=this.options.params||{},r=n.i(d.a)(c.SERVER,t);o.a.render(a()(l.a,{store:e},void 0,g),this.ui.sidebar[0]),o.a.render(a()(l.a,{store:e},void 0,a()(h.a,{machineIdentifier:this.options.selectedServerID},void 0,a()(f.a,{},void 0,a()(v.a,{machineIdentifier:t,serverEntityID:r,directoryKey:i.key})))),this.ui.page[0])}});t.a=y},function(e,t,n){"use strict"
;var i=n(3068),a=n.n(i),r=n(13),s=n(1240),o=n(923),l=n(598),u=n(1843),c=n(1848),d=n(124),p=n(1514),h=o.a.extend({mixins:s.a,className:"clip-details-row details-row",template:a.a,initialize:function(){o.a.prototype.initialize.apply(this,arguments),this.starRatingView=new l.a({model:this.model,disabled:!0}),this.summaryView=new u.a({model:this.model}),this.audioDropdown=new c.a({type:"audio",model:this.model}),this.subtitlesDropdown=new c.a({type:"subtitles",model:this.model}),
this.posterImage=new d.a({model:this.model,type:this.model.get("type"),width:this.posterWidth});var e=this.model.server.get("isCloud"),t=r.a("appModel"),n=t.get("primaryServer");(!e||n&&!n.get("isCloudSyncServer"))&&(this.contentRatingFlag=new p.a({model:this.model,modelAttribute:"contentRating",className:"content-rating-flag",width:70,height:30}),this.videoResolutionFlag=new p.a({model:this.model,flag:"videoResolution",className:"media-flag",width:100,height:20}),this.audioCodecFlag=new p.a({
model:this.model,flag:"audioCodec",className:"media-flag",width:100,height:20}),this.audioChannelsFlag=new p.a({model:this.model,flag:"audioChannels",className:"media-flag",width:100,height:20}),this.studioFlag=new p.a({model:this.model,modelAttribute:"studio",className:"studio-flag",width:200,height:40}))}});t.a=h},function(e,t,n){"use strict";var i=n(3070),a=n.n(i),r=n(3),s=n.n(r),o=n(4),l=n(13),u=n(414),c=n(273),d=n(141),p=n(504),h=n(923),f=n(600),v=n(1903),m=h.a.extend({
className:"playlist-details-row details-row",template:a.a,posterWidth:200,pageSize:50,compositeOptions:{audio:{media:"art",stripRatio:u.a.ratios.landscape,posterRatio:u.a.ratios.square},photo:{media:"thumb",stripRatio:u.a.ratios.square,posterRatio:u.a.ratios.square},video:{media:"thumb",stripRatio:u.a.ratios.portrait,posterRatio:u.a.ratios.portrait}},ui:s.a.extend({sideStrip:".item-side-strip"},h.a.prototype.ui),bindings:s.a.extend(s.a.pick(p.a.defaultBindings,[".item-title",".item-summary"]),{
".item-duration":{modelAttribute:"duration",autohide:!0,formatter:function(e){return e?n.i(c.a)(e):0}},".item-count":{modelAttribute:"leafCount",formatter:function(e){return 0===e?n.i(o.default)("This playlist has no items."):1===e?n.i(o.default)("1 Item"):n.i(o.default)("{1} Items",e)}},".no-items":{modelAttribute:"leafCount",manual:!0,autohide:!0,formatter:function(e){return 0===e}},".loading-container":{model:"progress",modelAttribute:"loading",manual:!0,autohide:!0},".error-text":{
model:"progress",modelAttribute:"failed",manual:!0,autohide:!0}}),serializeData:function(){var e=this.model.get("playlistType");return{smart:this.model.get("smart"),hasComposite:"audio"===e||"photo"===e,type:e}},initialize:function(){h.a.prototype.initialize.apply(this,arguments),(0,n.i(l.a)("appStore").dispatch)(n.i(d.a)({allowLightPreset:!1})),this.ListConstructor=v.a,this.listItemViewOptions={canEdit:!this.model.get("smart")};var e=this.compositeOptions[this.model.get("playlistType")]
;this.posterWidth=200,this.sideStripImage=new f.a({model:this.model,media:e.media,width:this.posterWidth,height:this.posterWidth/e.stripRatio*16,columns:1,rows:16,unique:!0,noPlaceholder:!0}),this.posterImage=new f.a({model:this.model,width:this.posterWidth,height:this.posterWidth/e.posterRatio,noPlaceholder:!0})},onRender:function(){h.a.prototype.onRender.apply(this,arguments),this.sideStripImage.setElement(this.ui.sideStrip)},onClose:function(){
return this.posterImage&&this.sideStripImage.close(),h.a.prototype.onClose.apply(this,arguments)}});t.a=m},function(e,t,n){"use strict";var i=n(3071),a=n.n(i),r=n(18),s=r.a.ItemView.extend({className:"container",template:a.a});t.a=s},function(e,t,n){"use strict";var i=n(3072),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(18),c=n(4),d=n(15),p=u.a.ItemView.extend({className:"summary",template:a.a,ui:{summary:".metadata-summary",divider:".summary-divider",dividerBtn:".summary-divider-btn"},events:{
"click .summary-divider-btn":"onMoreSummaryClick"},onlyAfterRender:["onDeferredRender","updateDividerBtnVisibility"],bindings:{".item-summary":{modelAttribute:"summary",autohide:!0,isHtml:!0,formatter:function(e){if(this.$el.toggleClass("hidden",!e),this.updateDividerBtnVisibility(),e){var t=s.a.map(s.a.compact(e.split("\n")),function(e){return l.a.trim(s.a.escape(e))});if(t.length)return"<p>"+t.join("</p><p>")+"</p>"}}}},initialize:function(){this.listenTo(d.a,"resize",this.onResize),
this.listenTo(this.model,"change:summary",this.onSummaryChange)},updateDividerBtn:function(e){var t=e?n.i(c.default)("More"):n.i(c.default)("Less");this.ui.dividerBtn.html(t)},updateDividerBtnVisibility:function(){if(this.originalHeight){this.ui.summary.prop("scrollHeight")<=this.originalHeight?this.ui.divider.addClass("hidden"):(this.updateDividerBtn(!this.expanded),this.ui.divider.removeClass("hidden"))}},onRender:function(){s.a.defer(s.a.bind(this.onDeferredRender,this))},
onDeferredRender:function(){this.expanded=!1;var e=this.ui.summary.prop("scrollHeight"),t=this.ui.summary.prop("clientHeight");this.originalHeight=t,e>t&&(this.ui.summary.css("max-height",t+"px"),this.ui.divider.removeClass("hidden"))},onResize:function(){this.isClosed||this.updateDividerBtnVisibility()},onMoreSummaryClick:function(){var e=this.ui.summary.prop("scrollHeight")+100;this.expanded?(this.ui.summary.css("max-height",this.originalHeight+"px"),
this.expanded=!1):(this.ui.summary.css("max-height",e+"px"),this.expanded=!0),this.updateDividerBtn(!this.expanded)},onSummaryChange:function(){this.originalHeight&&(this.expanded&&this.ui.summary.css("max-height",this.originalHeight+"px"),this.onDeferredRender())}});t.a=p},function(e,t,n){"use strict";var i=n(3073),a=n.n(i),r=n(10),s=n.n(r),o=n(18),l=n(28),u=o.a.ItemView.extend({id:"auto-match-dropdown",tagName:"span",className:"dropdown",template:a.a,collectionEvents:{reset:"render"},events:{
"click .auto-match-agent":"onClick"},serializeData:function(){return{agents:this.collection.toJSON()}},onClick:function(e){e.preventDefault();var t=s()(e.currentTarget).data("id"),n=this.model.agents.get(t);l.a.execute("autoMatch",{item:this.model,agent:n})}});t.a=u},function(e,t,n){"use strict";var i=n(3074),a=n.n(i),r=n(10),s=n.n(r),o=n(18),l=n(15),u=n(28),c=n(581),d=n(604),p=n(601),h=n(603),f=o.a.ItemView.extend({tagName:"ul",className:"dropdown-menu",template:a.a,events:{
"click .mark-watched-btn":"onMarkWatchedClick","click .mark-unwatched-btn":"onMarkUnwatchedClick","click .watch-later-btn":"onWatchLaterClick","click .share-btn":"onShareClick","click .recommend-btn":"onRecommendClick","click .info-btn":"onInfoClick"},initialize:function(e){this.mediaActions=new c.a({},{item:this.model}),s()(".dropdown.open .dropdown-toggle").dropdown("toggle")},serializeData:function(){return{}},bindingsModel:"mediaActions",bindings:{".mark-watched-btn":{
modelAttribute:"showMarkWatched",manual:!0,autohide:!0},".mark-unwatched-btn":{modelAttribute:"showMarkUnwatched",manual:!0,autohide:!0},".watch-later-btn":{modelAttribute:"showWatchLater",manual:!0,autohide:!0},".share-btn, .recommend-btn":{modelAttribute:"showShare",manual:!0,autohide:!0},".delete-btn":{modelAttribute:"showDelete",manual:!0,autohide:!0},".info-btn":{modelAttribute:"showInfo",manual:!0,autohide:!0}},onClose:function(){this.mediaActions.stopListening()},
onMarkWatchedClick:function(e){e.preventDefault(),u.a.execute("markWatched",{item:this.model})},onMarkUnwatchedClick:function(e){e.preventDefault(),u.a.execute("markUnwatched",{item:this.model})},onWatchLaterClick:function(e){e.preventDefault(),u.a.execute("watchLater",{item:this.model})},onShareClick:function(e){e.preventDefault(),l.a.trigger("show:modal",new d.a({model:this.model}))},onRecommendClick:function(e){e.preventDefault(),l.a.trigger("show:modal",new h.a({model:this.model}))},
onInfoClick:function(e){e.preventDefault(),l.a.trigger("show:modal",new p.a({model:this.model}))}});t.a=f},function(e,t,n){"use strict";var i=n(3076),a=n.n(i),r=n(18),s=n(13),o=n(1847),l=r.a.Layout.extend({id:"primary-player-dropdown",tagName:"li",className:"nav-dropdown dropdown",template:a.a,regions:{list:".dropdown-menu"},events:{"click .dropdown-toggle":"onDropdownToggleClick"},initialize:function(e){e||(e={});var t=s.a("appModel");this.players=t.get("players"),this.listenTo(t,{
"change:remotePlayer":this.onRemotePlayerChange,"change:isCastApiAvailable":this.render}),this.listenTo(this.players,"update reset",this.render)},serializeData:function(){return{isActive:!!s.a("appModel").get("remotePlayer")}},onRender:function(){this.list.append(new o.a,this.$el)},onRemotePlayerChange:function(e,t){this.render()},onDropdownToggleClick:function(e){this.players.fetch()}});t.a=l},function(e,t,n){"use strict"
;var i=n(3077),a=n.n(i),r=n(10),s=n.n(r),o=n(18),l=n(185),u=n(425),c=n(13),d=o.a.ItemView.extend({tagName:"ul",className:"dropdown-menu pull-right",template:a.a,events:{"click .local-player-btn":"onLocalPlayerClick","click .cast-player-btn":"onCastPlayerClick","click .plex-player-btn":"onPlexPlayerClick"},initialize:function(e){e||(e={});var t=n.i(c.a)("appModel");this.players=t.get("players"),this.listenTo(this.players,"update reset",this.render),
this.listenTo(t,"change:isCastApiAvailable",this.render)},serializeData:function(){var e=n.i(c.a)("appModel"),t=e.get("isCastApiAvailable"),i=e.get("remotePlayer");return{showCast:t,showPlayers:t||this.players.length,remotePlayer:i?i.toJSON():null,players:this.players.toJSON()}},onLocalPlayerClick:function(e){e.preventDefault(),n.i(c.a)("appStore").dispatch(l.c())},onCastPlayerClick:function(e){e.preventDefault(),n.i(c.a)("appStore").dispatch(u.a())},onPlexPlayerClick:function(e){
e.preventDefault();var t=s()(e.currentTarget).data("id");n.i(c.a)("remotePlexPlayerManager").requestSession(t)}});t.a=d},function(e,t,n){"use strict";var i=n(3078),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(18),c=n(206),d=n(90),p=n(28),h=u.a.ItemView.extend({tagName:"span",className:"dropdown",template:a.a,modelEvents:{"change:Media":"render","change:streams":"render"},events:{"click .dropdown-menu a":"onStreamClick"},initialize:function(e){this.streamType=d.a.get(e.type),
this.disabled=e.disabled,this.media=e.media},serializeData:function(){var e=this.model.server.get("multiuser"),t=this.model.server.get("shared"),i=n.i(c.a)(this.media,{streamType:this.streamType.id}),a=n.i(c.a)(this.media,{streamType:this.streamType.id,selected:!0}),r=s.a.first(a);return{showDropdown:!this.disabled&&i.length>1&&(!t||e),type:this.streamType.typeString,streams:i,selectedStream:r}},onRender:function(){this.$el.attr("id",this.streamType.typeString+"-dropdown")},
onStreamClick:function(e){e.preventDefault();var t=l()(e.currentTarget),n=t.data("id");p.a.execute("selectStream",{item:this.model,streamType:this.streamType,streamID:n})}});t.a=h},function(e,t,n){"use strict";var i=n(3079),a=n.n(i),r=n(599),s=r.a.extend({template:a.a,serializeData:function(){var e=this.model.get("preferences"),t=this.model.getSingleMetadataItem().get("preferences");return e.length?t.reduce(function(t,n){var i=e.get(n.id);return i?t.push(i.toJSON()):t.push(n.toJSON()),t
},[]):t.toJSON()},flushChanges:function(){var e=this.ui.form,t=e.serializeArray(),n=this.model.getSingleMetadataItem().get("preferences"),i=this.model.get("preferences");t.forEach(function(e){var t=i.get(e.name)||n.get(e.name),a=t.clone();a.parseAndSetValue(e.value),a.get("value")!==t.get("value")&&i.add(a,{merge:!0})})}});t.a=s},function(e,t,n){"use strict";var i=n(3084),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(18),c=n(80),d=n(76),p=n(1645),h=n(1890),f=u.a.Layout.extend({template:a.a,
dragStatus:0,ui:{upload:".upload-artwork-container",urlInput:"input[name=url]"},regions:{list:".artwork-list-container"},events:{dragenter:"onDragEnter",dragleave:"onDragLeave",dragover:"onDragOver",drop:"onDrop",keydown:"onKeyDown","change .artwork-file-control":"onFileChange","click .upload-url-btn":"onUploadUrlClick","click .cancel-url-btn":"onCancelUrlClick","click .submit-url-btn":"onUrlSubmit","submit #upload-form":"onUrlSubmit","click .upload-back-btn":"onUploadBackClick",
"click .artwork-option":"onArtworkOptionClick"},initialize:function(e){this.type=e.type,this.metadataItem=this.model.getSingleMetadataItem(),this.changes={},this.collection=new p.a([],{server:this.model.server,section:this.model.section,parent:this.metadataItem,artworkType:this.type}),this.collection.fetch()},serializeData:function(){return{showUpload:this.model.server.supports("artworkUpload"),showFileUpload:c.a.hasFileUpload}},flushChanges:function(){this.model.set(this.changes)},
uploadFiles:function(e){if(e&&e.length){this.changes={},this.ui.upload.removeClass("show-success show-error");var t=this.collection.url(),n=s.a.extend(this.model.server.getXHROptions(t),{type:"POST",processData:!1}),i=[],a=s.a.bind(function(e){/image\//.test(e.type)&&(n.data=e,i.push(l.a.ajax(n)))},this);if(s.a.each(e,a),!i.length)return void this.ui.upload.addClass("show-error");this.ui.upload.addClass("show-progress"),this.monitorUpload(l.a.when.apply(l.a,i))}},uploadUrl:function(e){
this.changes={},this.ui.upload.removeClass("show-form"),this.ui.upload.addClass("show-progress"),this.ui.urlInput.val(""),e=this.collection.url()+"?url="+encodeURIComponent(e);var t=s.a.extend(this.model.server.getXHROptions(e),{type:"POST"});this.monitorUpload(l.a.ajax(t))},monitorUpload:function(e){e.done(s.a.bind(function(){this.isClosed||this.ui.upload.addClass("show-success");var e={server:this.model.server,onlyIfCached:!0},t=new d.a({key:this.metadataItem.get("key")},e)
;s.a.isEmpty(t)||t.fetch(),this.collection.fetch()},this)),e.fail(this.whenRendered(function(){this.ui.upload.addClass("show-error")})),e.always(this.whenRendered(function(){this.ui.upload.removeClass("show-progress")}))},onRender:function(){this.list.show(new h.a({collection:this.collection,itemViewOptions:{artworkType:this.type}}))},onDragEnter:function(e){this.dragStatus++,this.ui.upload.addClass("drag-hover")},onDragLeave:function(e){
0===--this.dragStatus&&this.ui.upload.removeClass("drag-hover")},onDragOver:function(e){e.preventDefault()},onDrop:function(e){e.preventDefault(),e.stopPropagation(),this.dragStatus=0,this.ui.upload.removeClass("drag-hover"),this.uploadFiles(e.originalEvent.dataTransfer.files)},onKeyDown:function(e){27===e.which&&this.ui.upload.hasClass("show-form")&&(e.preventDefault(),this.ui.upload.removeClass("show-form"))},onFileChange:function(e){this.uploadFiles(e.target.files)},
onUploadUrlClick:function(e){e.preventDefault(),this.ui.upload.addClass("show-form"),this.ui.urlInput.focus()},onCancelUrlClick:function(e){e.preventDefault(),this.ui.upload.removeClass("show-form")},onUrlSubmit:function(e){e.preventDefault();var t=this.ui.urlInput.val();t?this.uploadUrl(t):this.ui.upload.removeClass("show-form")},onUploadBackClick:function(e){e.preventDefault(),this.ui.upload.removeClass("show-success show-error")},onArtworkOptionClick:function(e){e.preventDefault()
;var t=l()(e.currentTarget),n=t.data("ratingKey");this.$(".artwork-option.selected").removeClass("selected"),t.addClass("selected"),this.changes[this.type]=n}});t.a=f},function(e,t,n){"use strict";var i=n(3087),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(18),c=n(108),d=n(1852),p=u.a.CompositeView.extend({template:a.a,className:"files",itemView:d.a,itemViewContainer:"ul",initialize:function(){this.collection=new c.a,this.populateParts().always(this.whenRendered(function(){
this.$(".loading").addClass("hidden")}))},populateParts:function(){function e(e){var n=e.get("Media");if(n&&n.length)return s.a.each(n,t),n}function t(e){s.a.each(e.Part,n)}function n(e){i.push(e)}var i=this.collection,a=this.model.getSingleMetadataItem();return e(a)?l.a.Deferred().resolve():a.populate().then(function(){if(!e(a)&&a.has("childrenKey")){var t=a.get("children"),n=t.get("metadataItems");if(!n.length)return t.populate().then(function(){n.each(e)});n.each(e)}})},
flushChanges:function(){}});t.a=p},function(e,t,n){"use strict";var i=n(3088),a=n.n(i),r=n(18),s=r.a.ItemView.extend({template:a.a,tagName:"li",className:"well",serializeData:function(){return{file:this.model.get("file")}}});t.a=s},function(e,t,n){"use strict";var i=n(3095),a=n.n(i),r=n(3),s=n.n(r),o=n(13),l=n(112),u=n(199),c=n(926),d=c.a.extend({templatesByType:{movie:a.a,show:a.a,album:a.a,photo:a.a},serializeData:function(){
var e=o.a("appModel"),t=e.get("user"),n=c.a.prototype.serializeData.apply(this,arguments),i=t.get("features").get(l.d);return s.a.extend(n,{showLabels:this.model.server.supports("labels"),labelsMinVersion:u.a.labels,hasContentFilterFeature:i,plexPassUrl:t.server.get("plexPassUrl")}),n}});t.a=d},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(10),s=n.n(r),o=n(4),l=n(880),u=function(e,t){var i=s()(t),r=i.attr("name"),u=r.replace(/parentTitle$/,"parentRatingKey");u===r&&(u=null)
;var c,d=e.model.getQueryAttr(r),p=e.model.getQueryAttrSibling(r),h=d!==r,f=h?"title":r,v=h?"ratingKey":f,m=e.model.get("type");c=h?d.match(/(^.*)\./)[1]:"title"===f?m:null;var g=i.data("scopeToAttr"),y=i.data("scopeToParam"),b=i.data("ratingKey"),S=!b;b&&(b=b.toString());var I=!h,M={};y&&e.listenTo(e,"reset_selectize:"+y,function(){L.loadedSearches={}});var C,w,D=e.model["original.updateValues."+r];D?(C=D.updateAttr,w=D.altUpdateAttr):(C=e.model.get(r),u&&(w=parseInt(e.model.get(u),10)),
e.model["original.updateValues."+r]={updateAttr:C,altUpdateAttr:w});var P=e.model["original.general."+r];if(!P){P=[];var T={};T[f]=C,T.ratingKey=b,P=[T],e.model["original.general."+r]=P}var x=[e.model.get(u)||e.model.get(r)],E=function(){var e=L.$dropdown_content.children();L.$dropdown.toggleClass("hidden",e.length<=1)},N=function(){a.a.defer(E)};i.data("autocompleteAttr",f),i.data("updateAttr",r),u&&i.data("altUpdateAttr",u);var L=i.selectize({options:P,items:x,plugins:["restore_on_focus"],
delimiter:null,create:!0,maxItems:1,labelField:f,valueField:v,sortField:f,searchField:[f],selectOnTab:!0,hideSelected:!1,highlight:!1,openOnFocus:!0,selectOnBlur:!0,createOnBlur:!0,persist:!0,addPrecedence:!0,allowEmptyOption:!0,allowCreateEmpty:I,manualInputWidth:!0,loadingClass:"",onFocus:function(){L.preloaded||(L.preloaded=!0,L.onSearchChange(L.$control_input.val()))},createFilter:function(e){return M[f]=e,!a()(this.options).findWhere(M)},load:function(t,n){if(!t.length)return void n()
;var i={};if(i[d]=t,g){var a=e.model.get(g);if(!a)return void n();i[y]=a}new l.a([],{server:e.model.server,multiMetadataItem:e.model,query:i}).fetch().done(function(e){n(e.map(function(e){return e.toJSON()})),E()})},render:{option:function(e,t){var i,a=u?e.ratingKey===String(w):e[f]===C;return i=a?'<small class="autocomplete-annotate pull-right">('+(c&&!S?n.i(o.default)("this {1}",c):n.i(o.default)("original value"))+")</small>":"","<div>"+t(e[f])+i+"</div>"},option_create:function(e,t){
return e.input?'<div class="create">'+t(e.input)+"</div>":'<div class="create hidden"></div>'}},onDropdownClose:function(){L.$dropdown.addClass("hidden")},onDropdownOpen:function(){L.$dropdown.addClass("hidden"),N()},onType:a.a.bind(function(e){if(L.canCreate(e)){var t=s()(L.$dropdown_content[0].childNodes[0]);L.setActiveOption(t)}N(),this.onLockableFieldChange({currentTarget:L.$input,force:!0})},e),onOptionAdd:function(e,t){var n=a.a.pick(t,f,"ratingKey")
;a.a.findWhere(P,n)||P.splice(P.length,0,t)},onChange:function(t){var n=this.options[t];if(n){if(h){var s=n.ratingKey===n[f];i.data("isText",s)}e.flushChanges();var o=e.model.changedAttributes();a.a.has(o,d)||a.a.has(o,p)?e.trigger("focusSubmit"):a.a.defer(function(){L.onBlur()}),e.trigger("reset_selectize:"+r),E()}}})[0].selectize;L.$dropdown.addClass("hidden")};t.a=u},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(10),s=n.n(r),o=n(4),l=n(30),u=n(508),c=n(880),d=function(e,t){
var i=s()(t),r=i.data("name"),d=i.data("query")||i.data("name"),p=i.data("attr"),h=e.model.get(p).toJSON(),f=a.a.pluck(h,"tag"),v=e.model["original.tag."+r];v||(v=a.a.clone(h),e.model["original.tag."+r]=v);var m=a.a.difference(f,a.a.pluck(v,"tag"));if(m.length){var g=a.a.map(m,function(e){return{tag:e}});g.unshift(v.length,0),v.splice.apply(v,g)}var y=function(t){e.model["original.allTagsRequested."+r]=!0,new u.a({filter:r,filterType:"string"},{server:e.model.server,section:e.section,
type:n.i(l.b)(e.model.get("type")).id}).get("options").populate().then(a.a.bind(function(n){e.model["original.allTagsAvailable."+r]=!0,t(n.map(function(e){return{tag:e.attributes.title}}))},e))};i.data("original-value",i.val()),i.selectize({options:v,items:f,plugins:["remove_button"],create:!0,labelField:"tag",valueField:"tag",sortField:"tag",searchField:["tag"],highlight:!1,createFilter:function(e){return!a()(this.options).findWhere({tag:e})},onChange:function(){e.onLockableFieldChange(i)},
onFocus:function(){this.onSearchChange("")},loadingClass:"",load:function(t,n){if(!(d!==r||t.length&&e.canAutocomplete))return void(e.model["original.allTagsRequested."+r]?n():y.call(e,n));if(e.model["original.allTagsAvailable."+r]||0===t.length)return void n();var i={};i[d]=t;var a=d===r?function(e){return e.toJSON()}:function(e){return{tag:e.get(d)}};new c.a([],{server:e.model.server,multiMetadataItem:e.model,query:i}).fetch().done(function(e){var t=e.map(a);n(t)}).fail(function(){n()})},
render:{item:function(e,t){return'<div class="item">'+(e.tag?t(e.tag):'<span class="autocomplete-annotate">('+n.i(o.default)("blank")+")</span>")+"</div>"},option:function(e,t){return'<div class="item">'+(e.tag?t(e.tag):'<small class="autocomplete-annotate">('+n.i(o.default)("blank")+")</small>")+"</div>"}}})};t.a=d},function(e,t,n){"use strict";var i=n(3207),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(28),c=n(297),d=n(1865),p=n(1857),h=c.a.extend({template:a.a,ui:s.a.extend({
sectionAgent:"#edit-section-agent",sectionScanner:"#edit-section-scanner",thumbnailsCheckbox:'input[name="enableBIFGeneration"]',agentGroup:".agent-group",scannerGroup:".scanner-group"},c.a.prototype.ui),events:{"change #edit-section-agent":"onEditSectionAgentChange","change #edit-section-scanner":"onEditSectionScannerChange","click .delete-thumbnails-btn":"onThumbnailsDeleteClick"},regions:{sectionSettingsRegion:".section-settings-region",agentSettingsRegion:".section-agent-settings-region"},
onlyAfterRender:["renderSectionAgent","renderSectionScanner","renderSectionSettings","renderSectionAgentSettings"].concat(c.a.prototype.onlyAfterRender),initialize:function(){this.populateCollections()},onRender:function(){this.model.agents.populate(),this.model.scanners.populate()},validate:function(e){var t=[];return e.get("agent")||t.push("agent"),e.get("scanner")||t.push("scanner"),t},renderSectionSettings:function(){var e=new d.a({model:this.model,collection:this.model.settings,
hideSettings:["enableAutoPhotoTags"]});this.sectionSettingsRegion.show(e)},renderSectionAgentSettings:function(){var e=new p.a({model:this.model,collection:this.model.agentSettings});this.agentSettingsRegion.show(e)},populateCollections:function(){var e=this.populateAgents(),t=this.populateScanners(),n=this.populateSectionSettings(),i=this.populateSectionAgentSettings();return this.populateAgentsProxy(),this.populateScannersProxy(),e.then(s.a.bind(this.onAgentsPopulate,this)),
t.then(s.a.bind(this.onScannersPopulate,this)),n.then(s.a.bind(this.renderSectionSettings,this)),i.then(s.a.bind(this.renderSectionAgentSettings,this)),l.a.when(e,t,n,i).then(s.a.bind(this.validate,this,this.model))},renderSectionAgent:function(){var e=this.model.agentsProxy,t=this.createMenuOptions(e.map(function(e){return{label:e.get("name"),value:e.get("identifier")}}),this.model.get("agent"));this.ui.sectionAgent.html(t),e.length>1&&this.ui.agentGroup.removeClass("hidden")},
renderSectionScanner:function(){var e=this.model.scannersProxy,t=this.createMenuOptions(e.map(function(e){return{label:e.get("name"),value:e.get("name")}}),this.model.get("scanner"));this.ui.sectionScanner.html(t),e.length>1&&this.ui.scannerGroup.removeClass("hidden")},onEditSectionAgentChange:function(e){var t=l()(e.currentTarget),n=t.val();this.model.set("agent",n),this.agentSettingsRegion.close();var i=this.model.agents.get(n);if(i){var a=i.get("languages"),r=this.model.get("language")
;a.get(r)||this.model.set("language",a.first().get("code")),this.model.agentSettings=null,this.populateSectionAgentSettings().then(s.a.bind(this.renderSectionAgentSettings,this))}this.showValidationResult(this.validate(this.model))},onEditSectionScannerChange:function(e){var t=l()(e.currentTarget);this.model.set("scanner",t.val()),this.showValidationResult(this.validate(this.model))},onAgentsPopulate:function(e){this.renderSectionAgent()},onScannersPopulate:function(e){
this.renderSectionScanner()},onThumbnailsDeleteClick:function(e){e.preventDefault(),u.a.execute("deleteSectionThumbnails",{section:this.model}).done(this.whenRendered(function(){this.ui.thumbnailsCheckbox.prop("checked",!1)}))}});t.a=h},function(e,t,n){"use strict";var i=n(3100),a=n.n(i),r=n(10),s=n.n(r),o=n(18),l=o.a.ItemView.extend({template:a.a,events:{"change input[name]":"onInputChange","change select[name]":"onInputChange"},initialize:function(){this.changes={}},serializeData:function(){
return{settings:this.collection.toJSON(),agentName:this.model.agents.get(this.model.get("agent")).get("name")}},onInputChange:function(e){var t=s()(e.currentTarget),n=t.is(":checkbox")?t.prop("checked"):t.val();this.collection.findWhere({id:t.attr("name")}).set("value",n)}});t.a=l},function(e,t,n){"use strict";var i=n(3101),a=n.n(i),r=n(297),s=r.a.extend({template:a.a});t.a=s},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(3208),s=n.n(r),o=n(10),l=n.n(o),u=n(850),c=n(347),d=n(15),p=n(753),h=n(297),f=n(1862),v=n(1938),m=h.a.extend({template:s.a,fieldNames:["Location"],regions:{pathsRegion:".paths-region"},ui:a()({},h.a.prototype.ui,{addFolderBtn:".add-folder-btn",addFolderPopulating:".add-folder-populating",addFolderError:".add-folder-error"}),events:{"click .add-folder-btn":"onAddFolderClick","change input[name=path]":"onFolderChange"},
onlyAfterRender:["renderSectionLocation","updateAddFolderBtn"].concat(h.a.prototype.onlyAfterRender),initialize:function(){this.listenTo(this.model.get("locations"),{add:this.onCollectionChange,remove:this.onCollectionChange}),this.renderSectionLocation(),this.startCheckingPersonalCloudServerDriveCacheUpdateStatus(),this.updateAddFolderBtn(),this.showValidationResult(this.validate(this.model))},serializeData:function(){return{
isPersonalCloudServerDriveCachePending:this.isPersonalCloudServerDriveCachePending}},validate:function(e){var t=[];return e.get("locations").length||t.push("locations"),t},renderSectionLocation:function(){var e=new f.a({collection:this.model.get("locations")});this.pathsRegion.show(e)},updateAddFolderBtn:function(){var e=!this.isPersonalCloudServerDriveCachePending,t=!!this.personalCloudServerDriveCacheError;this.ui.addFolderBtn.toggleClass("hidden",!e),
this.ui.addFolderError.toggleClass("hidden",e||!t),this.ui.addFolderPopulating.toggleClass("hidden",e||t)},startCheckingPersonalCloudServerDriveCacheUpdateStatus:function(){var e=this;this.isPersonalCloudServerDriveCachePending=null,this.personalCloudServerDriveCacheError=null;var t=this.model.server;if(t.get("isPersonalCloudServer")){this.isPersonalCloudServerDriveCachePending=!0,this.cancelPersonalCloudServerDriveCacheRetryDeferred=a;var i=new p.a({},{server:t
}),a=l.a.Deferred(),r=n.i(u.a)(function(){return i.fetchAndNotUpdating()},{times:100,delay:2e3,maxDuration:18e4,cancel:a.promise()});n.i(c.a)(r,500).done(function(){e.isPersonalCloudServerDriveCachePending=!1}).fail(function(){e.personalCloudServerDriveCacheError=!0}).always(function(){e.cancelPersonalCloudServerDriveCacheRetryDeferred=null,e.updateAddFolderBtn()})}},onCollectionChange:function(){this.showValidationResult(this.validate(this.model))},onAddFolderClick:function(e){
e.preventDefault();var t=new v.a({server:this.model.server});this.listenToOnce(t,"add:folder",this.onAddFolder),d.a.trigger("show:modal",t)},onAddFolder:function(e){if(e){var t={path:e};this.model.get("locations").findWhere(t)||this.model.get("locations").add(t)}},onFolderChange:function(e){var t=l()(e.currentTarget),n=t.prop("defaultValue"),i=t.val();if(!i)return void t.val(n);this.model.get("locations").findWhere({path:n}).set("path",i),t.prop("defaultValue",i)},onClose:function(){
this.cancelPersonalCloudServerDriveCacheRetryDeferred&&this.cancelPersonalCloudServerDriveCacheRetryDeferred.resolve()}});t.a=m},function(e,t,n){"use strict";var i=n(297),a=n(3209),r=n.n(a),s=n(1863),o=n(1864),l=i.a.extend({template:r.a,regions:{options:".section-options"},onRender:function(){"photos"===this.model.sectionType.key?this.options.show(new o.a({model:this.model})):this.options.show(new s.a({model:this.model}))}});t.a=l},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(3210),s=n.n(r),o=n(18),l=o.a.ItemView.extend({template:s.a,className:"row",events:{"click .remove-path-btn":"onRemovePathClick"},serializeData:function(){return a()({},o.a.ItemView.prototype.serializeData.apply(this,arguments),{canEditPath:!this.model.server.get("isPersonalCloudServer")})},onRemovePathClick:function(e){e.preventDefault(),this.model.trigger("destroy",this.model,this.model.collection)}});t.a=l},function(e,t,n){"use strict"
;var i=n(18),a=n(1861),r=i.a.CollectionView.extend({itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(3211),a=n.n(i),r=n(10),s=n.n(r),o=n(13),l=n(15),u=n(297),c=n(602),d=u.a.extend({template:a.a,ui:{chooseLibrary:".choose-library"},events:{"click .choose-library":"onChooseLibraryClick"},modelEvents:{"change:agent":"onSectionAgentChange","change:scanner":"onSectionScannerChange"},onlyAfterRender:["updateSelectedOffering"],initialize:function(){
this.hasPremiumMusic=this.model.server.hasOwnerFeature("premium_music_metadata"),this.updateSelectedOffering()},serializeData:function(){var e=o.a("appModel"),t=e.get("user");return{hasPremiumMusic:this.hasPremiumMusic,plexPassUrl:t.server.get("plexPassUrl"),hasLyrics:this.model.server.get("transcoderLyrics")}},updateSelectedOffering:function(){var e=this.model.get("agent"),t=this.model.get("scanner");this.ui.chooseLibrary.find("input").prop("checked",!1)
;var n=this.ui.chooseLibrary.filter('[data-agent="'+e+'"][data-scanner="'+t+'"]').find("input");n.length||(n=this.ui.chooseLibrary.not("[data-agent][data-scanner]").find("input")),n.prop("checked",!0)},onChooseLibraryClick:function(e){var t=s()(e.currentTarget),n=t.data("agent"),i=t.data("scanner");if((n||i)&&!this.hasPremiumMusic)return void l.a.trigger("show:modal",new c.a({model:this.model.server}));this.model.agentSettings=null,this.model.set({agent:n||this.getSectionType().defaultAgent,
scanner:i||this.getSectionType().defaultScanner})},onSectionAgentChange:function(){this.updateSelectedOffering()},onSectionScannerChange:function(){this.updateSelectedOffering()}});t.a=d},function(e,t,n){"use strict";var i=n(18),a=n(3212),r=n.n(a),s=n(13),o=n(15),l=n(602),u=i.a.Layout.extend({template:r.a,ui:{usePremium:".use-premium-library input",useBasic:".use-basic-library input"},events:{"click .use-premium-library":"onChoosePremiumClick","click .use-basic-library":"onChooseBasicClick"},
onlyAfterRender:["updateSelectedOffering"],initialize:function(){this.hasPremiumPhotos=this.model.server.hasOwnerFeature("photo_autotags"),this.updateSelectedOffering()},serializeData:function(){var e=s.a("appModel"),t=e.get("user");return{hasPremiumPhotos:this.hasPremiumPhotos,plexPassUrl:t.server.get("plexPassUrl")}},updateSelectedOffering:function(){var e=this.model.get("enableAutoPhotoTags");this.ui.usePremium.prop("disabled",!1),this.ui.useBasic.prop("disabled",!1),
this.ui.usePremium.prop("checked",!!e),this.ui.useBasic.prop("checked",!e)},onChoosePremiumClick:function(e){this.hasPremiumPhotos?this.model.set("enableAutoPhotoTags",!0):o.a.trigger("show:modal",new l.a({model:this.model.server})),this.updateSelectedOffering()},onChooseBasicClick:function(e){this.model.set("enableAutoPhotoTags",!1),this.updateSelectedOffering()}});t.a=u},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(3213),s=n.n(r),o=n(10),l=n.n(o),u=n(18),c=u.a.ItemView.extend({
template:s.a,events:{"change [name]":"onEditSectionSettingInputChange"},initialize:function(e){this.hideSettings=e.hideSettings},serializeData:function(){function e(e){return!a.a.contains(t,e.get("id"))}var t=this.hideSettings;return{settings:this.model.settings.filter(e).map(function(e){return e.toJSON()}),edit:!this.model.isNew()}},onEditSectionSettingInputChange:function(e){var t=l()(e.currentTarget),n=t.attr("name");if("importFromiTunes"===n)return void this.model.set(n,!0)
;var i=t.is(":checkbox")?t.prop("checked"):t.val();this.collection.findWhere({id:n}).set("value",i)}});t.a=c},function(e,t,n){"use strict";var i=n(3214),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(154),c=n(236),d=n(297),p=d.a.extend({template:a.a,ui:s.a.extend({sectionTypes:".wizard-block",sectionTitle:"#edit-section-title",sectionLanguage:"#edit-section-language"},d.a.prototype.ui),modelEvents:{"change:type":"onSectionTypeChange","change:title":"onSectionTitleChange",
"change:language":"onSectionLanguageChange"},events:{"click .section-type":"onSectionTypeClick","keyup #edit-section-title":"onEditSectionTitleChange","change #edit-section-title":"onEditSectionTitleChange","change #edit-section-language":"onEditSectionLanguageChange"},onlyAfterRender:["renderSectionLanguage","updateSectionTypesWizardBlocks","updateSectionLanguage","updateSectionTitle"].concat(d.a.prototype.onlyAfterRender),initialize:function(e){this.populateCollections(),
this.isDefaultSection=e.isDefaultSection},serializeData:function(){var e=d.a.prototype.serializeData.apply(this,arguments);e.sectionTypes=u.a.getAll();var t=this.getSectionType();t&&(e.currentSectionKey=t.key);var i=this.model.get("updatedAt");return i&&(e.updatedAt=n.i(c.a)(i)),e.canChangeType=this.model.isNew()&&!this.isDefaultSection,e.hasType=!!this.model.get("type"),e},validate:function(e){var t=[];return e.get("type")||t.push("type"),e.get("title")||t.push("title"),
e.get("language")||t.push("language"),t},populateCollections:function(){var e=this.populateAgents(),t=this.populateScanners(),n=this.getSectionType(),i=l.a.when(n,e,t,this.model.server.get("myPlexSubscription")&&this.model.server.supports("premiumMusic"));return this.model.isNew()&&(i=i.then(s.a.bind(this.model.setAgentAndScanner,this.model))),i=i.then(e).then(s.a.bind(this.onAgentsPopulate,this)).then(s.a.bind(function(){this.showValidationResult(this.validate(this.model))},this))},
renderSectionLanguage:function(){var e=this.model.get("language"),t=this.model.agents.get(this.model.get("agent")),n=t.get("languages");if(!n.get(e)){var i=this.model.get("type"),a=u.a.get(i),r=a.defaultLanguage;this.model.set("language",r,{silent:!0}),e=r}var s=n.map(function(e){return{label:e.get("name"),value:e.id}});this.updateSectionLanguage(),this.ui.sectionLanguage.html(this.createMenuOptions(s,e))},updateSectionTypesWizardBlocks:function(){this.ui.sectionTypes.removeClass("selected"),
this.ui.sectionTypes.filter('[data-key="'+this.model.get("type")+'"]').addClass("selected"),this.$el.addClass("section-type-chosen")},updateSectionLanguage:function(){this.ui.sectionLanguage.val(this.model.get("language"))},updateSectionTitle:function(){var e=this.ui.sectionTitle.val(),t=this.model.get("title");e!==t&&this.ui.sectionTitle.val(t)},onSectionTypeClick:function(e){e.preventDefault();var t=l()(e.currentTarget);if(t.hasClass("selectable")){var n=t.data("key"),i={type:n},a=u.a.get(n)
;this.model.get("title")||(i.title=a.title),this.model.set(i)}},onEditSectionTitleChange:function(e){var t=l()(e.currentTarget);this.model.set("title",t.val()),this.showValidationResult(this.validate(this.model))},onEditSectionLanguageChange:function(e){var t=l()(e.currentTarget);this.model.set("language",t.val()),this.showValidationResult(this.validate(this.model))},onSectionTypeChange:function(e,t){this.updateSectionTypesWizardBlocks();var n=u.a.get(t);if(!this.model.get("language")){
var i=n.defaultLanguage;this.model.set("language",i)}var a=this.model.get("title"),r=this.model.previous("type"),s=u.a.get(r),o=s&&s.title;a&&a!==o||this.model.set("title",n.title),this.setSectionType(n),this.model.agents=null,this.model.scanners=null,this.model.settings=null,this.populateCollections()},onSectionTitleChange:function(e,t){this.updateSectionTitle(),this.showValidationResult(this.validate(this.model))},onSectionLanguageChange:function(e,t){this.updateSectionLanguage()},
onAgentsPopulate:function(e){this.renderSectionLanguage()}});t.a=p},function(e,t,n){"use strict";var i=n(322),a=n.n(i),r=n(1508),s=r.a.extend({className:"container",template:a.a});t.a=s},function(e,t,n){"use strict";var i=n(322),a=n.n(i),r=n(1510),s=r.a.extend({className:"container",template:a.a});t.a=s},function(e,t,n){"use strict";var i=n(322),a=n.n(i),r=n(4),s=n(1511),o=s.a.extend({className:"container",template:a.a,serializeData:function(){return{
title:n.i(r.default)("You don't have any media servers yet."),subtitle:n.i(r.default)("{1}Download and install{2} one and try again.",'<a href="https://plex.tv/downloads" target="_blank">',"</a>")}}});t.a=o},function(e,t,n){"use strict";var i=n(322),a=n.n(i),r=n(1512),s=r.a.extend({className:"container",template:a.a});t.a=s},function(e,t,n){"use strict";var i=n(322),a=n.n(i),r=n(1513),s=r.a.extend({className:"container",template:a.a});t.a=s},function(e,t,n){"use strict"
;var i=n(51),a=n(1873),r=i.a.extend({tagName:"ul",className:"list card-list alert-list",itemView:a.a,reversed:!0});t.a=r},function(e,t,n){"use strict";var i=n(3102),a=n.n(i),r=n(3),s=n.n(r),o=n(18),l=n(13),u=n(4),c=o.a.ItemView.extend({tagName:"li",className:"card-collapsed striped-list-item alert-list-item",template:a.a,serializeData:function(){var e=n.i(l.a)("appModel"),t=this.model.toJSON(),i={serverID:this.model.server.id,serverName:s.a.escape(this.model.server.get("friendlyName")),
itemKey:"/library/metadata/"+this.model.get("itemID"),event:t,timeFormat:e.get("experienceSettings").get("timeFormat")};if(t.label=s.a.escape(t.label),t.value=s.a.escape(t.value),"playing"===t._type&&(t.username=s.a.escape(t.username),t.title=s.a.escape(t.title),t.player=s.a.escape(t.player)),"timeline"===t._type)switch(t.mediaTitle=this.model.get("title")||"an item",this.model.get("state")){case 0:t.stateString=n.i(u.default)("Created");break;case 1:t.stateString=n.i(u.default)("Progress for")
;break;case 2:t.stateString=n.i(u.default)("Matching");break;case 3:t.stateString=n.i(u.default)("Downloading metadata for");break;case 4:t.stateString=n.i(u.default)("Loading metadata for");break;case 5:t.stateString=n.i(u.default)("Finished processing");break;case 6:t.stateString=n.i(u.default)("Analyzing");break;case 9:t.stateString=n.i(u.default)("Deleted")}return i}});t.a=c},function(e,t,n){"use strict";var i=n(51),a=n(1876),r=n(1875),s=i.a.extend({tagName:"ul",
className:"tile-list session-tile-list",itemView:a.a,emptyView:r.a});t.a=s},function(e,t,n){"use strict";var i=n(3103),a=n.n(i),r=n(18),s=r.a.ItemView.extend({template:a.a});t.a=s},function(e,t,n){"use strict";var i=n(3104),a=n.n(i),r=n(3),s=n.n(r),o=n(4),l=n(810),u=n(181),c=n(1426),d=n(1492),p=n(348),h=n(28),f=n(435),v=n(124),m=f.a.extend({className:"poster-item session-tile-list-item",template:a.a,screenshotPreferredIndex:"hd",screenshotInterval:null,screenshotIntervalDelay:2e3,
screenshotCount:0,ui:{poster:".media-poster",posterFade:".media-poster-fade",userPoster:".user-poster"},events:s.a.extend({"click .stop-btn":"onStopClick"},f.a.prototype.events),modelEvents:{"change:viewOffset":"onViewOffsetChange","change:Player":"onPlayerChange"},initialize:function(e){f.a.prototype.initialize.apply(this,arguments);var t=this.getScreenshotUrl(this.model.get("Media"));this.image=new v.a({model:this.model,modelAttribute:"ratingKey",type:"clip",getUrl:this.getPosterUrl,width:350,
url:t?t:null}),this.userImage=new v.a({model:this.model,modelAttribute:"User",type:"friend",getUrl:this.getUserPosterUrl,width:44}),this.posterFade=new v.a({model:this.model,modelAttribute:"Media",type:"clip",getUrl:s.a.bind(this.getScreenshotUrl,this),width:350});var n=this.model.get("Player");n&&n.state===u.a.states.PLAYING&&(this.screenshotInterval=setInterval(s.a.bind(this.updateScreenshot,this),this.screenshotIntervalDelay)),this.listenTo(this.model,"change:Player",this.onPlayerChange)},
serializeData:function(){var e=f.a.prototype.serializeData.apply(this,arguments);return e.showStopButton=this.model.server.hasOwnerFeature("session_kick"),e},getPosterUrl:function(e){var t=this.model;return"photo"===t.get("type")?t.get("thumb"):t.get("art")||t.get("parentArt")||t.get("grandparentArt")||t.get("thumb")},getUserPosterUrl:function(e){return e&&e.thumb},getScreenshotUrl:function(e){var t=s.a.first(e);if(t){
var i=this.model.get("viewOffset")||0,a=this.screenshotCount*this.screenshotIntervalDelay+i+4e3;return n.i(c.a)(t,a,this.screenshotPreferredIndex)}},updateScreenshot:function(){if(this.screenshotCount++,this.posterFade){var e=this.posterFade.screenshotUrl,t=this.getScreenshotUrl(this.model.get("Media"));t&&(this.posterFade.screenshotUrl=t,this.posterFade.load(t).done(this.whenRendered(function(t){this.posterFade.showImage(t),this.ui.posterFade.removeClass("invisible"),
this.posterFadeDelay=s.a.delay(this.whenRendered(function(){if(this.image.showImage(t),this.ui.posterFade.addClass("invisible"),e){var n=this.posterFade.cache,i=this.image.getTranscodeUrl(e),a=n.get(n.getItemCacheKey({url:i}));a&&n.remove(a)}}),800)})))}},bindings:s.a.extend({},f.a.prototype.bindings,{".media-subtitle-1":{modelAttribute:"year",modelListeners:["title","year"],autohide:!0,formatter:function(e){
var t=f.a.prototype.bindings[".media-subtitle-1"].formatter.apply(this,arguments),n=f.a.prototype.bindings[".media-subtitle-2"].formatter.call(this,this.model.get("index"));return n?n+" "+t:t}},".device-icon":{modelAttribute:"Player",manual:!0,formatter:function(e,t){var n=l.a.getIcon(e.platform||e.product);t.attr("src",n)}},".session-player":{modelAttribute:"Player",formatter:function(e){return e.title}},".session-state":{modelAttribute:"Player",formatter:function(e){return n.i(d.a)(e.state)}},
".session-transcode":{modelAttribute:"TranscodeSession",formatter:function(e){return e&&(e.videoCodec||e.audioCodec)?n.i(o.default)("Converting"):n.i(o.default)("Direct Play")}},".session-transcode-throttled":{modelAttribute:"TranscodeSession",autohide:!0,formatter:function(e){return e&&"1"===e.throttled?n.i(o.default)("(throttled)"):""}},".session-transcode-video-decision":{modelAttribute:"TranscodeSession",formatter:function(e,t){var i=!(!e||!e.videoCodec)
;if(t.parent().toggleClass("hidden",!i),i){if("copy"===e.videoDecision)return n.i(o.default)("Direct Stream");var a=this.model.get("Media")[0],r=e.sourceVideoCodec||a.videoCodec,s=n.i(p.a)(r)+(e.transcodeHwDecoding?" (hw)":""),l=n.i(p.a)(e.videoCodec)+(e.transcodeHwEncoding?" (hw)":"");return n.i(o.default)("Transcoding {sourceCodec} to {targetCodec}",{sourceCodec:s,targetCodec:l})}return""}},".session-transcode-audio-decision":{modelAttribute:"TranscodeSession",formatter:function(e,t){
var i=!(!e||!e.audioCodec);if(t.parent().toggleClass("hidden",!i),i){if("copy"===e.audioDecision)return n.i(o.default)("Direct Stream");var a=this.model.get("Media")[0],r=e.sourceAudioCodec||a.audioCodec,s=n.i(p.a)(r),l=n.i(p.a)(e.audioCodec);return n.i(o.default)("Transcoding {sourceCodec} to {targetCodec}",{sourceCodec:s,targetCodec:l})}return""}},".session-username":{modelAttribute:"User",formatter:function(e){return e.title}}}),onRender:function(){
f.a.prototype.onRender.apply(this,arguments),this.userImage.setElement(this.ui.userPoster),this.posterFade.setElement(this.ui.posterFade)},onClose:function(){f.a.prototype.onClose.call(this),clearTimeout(this.posterFadeDelay),clearInterval(this.screenshotInterval),this.posterFade&&this.posterFade.close()},onViewOffsetChange:function(e,t){this.screenshotCount=0},onPlayerChange:function(e,t){
t&&(t.state!==u.a.states.PLAYING&&this.screenshotInterval?(this.screenshotInterval=clearInterval(this.screenshotInterval),this.screenshotCount=0):t.state!==u.a.states.PLAYING||this.screenshotInterval||(this.screenshotInterval=setInterval(s.a.bind(this.updateScreenshot,this),this.screenshotIntervalDelay)))},onStopClick:function(e){e.preventDefault(),e.stopImmediatePropagation(),h.a.execute("stopMedia",{model:this.model})}});t.a=m},function(e,t,n){"use strict";var i=n(51),a=n(1878),r=i.a.extend({
tagName:"ul",className:"tile-list media-tile-list sync-tile-list show-context",itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(3105),a=n.n(i),r=n(3),s=n.n(r),o=n(55),l=n(18),u=n(4),c=n(15),d=n(240),p=n(274),h=n(28),f=n(1673),v=n(124),m=n(860),g=n(1952),y=n(934),b=l.a.Layout.extend({tagName:"li",className:"poster-item media-tile-list-item sync-tile-list-item",template:a.a,metadataItemsDelay:5e3,ui:{poster:".media-poster",transcodeStatus:".sync-status-transcode",
transcodeTimeRemaining:".media-context",statusIcons:".sync-status-icon",completeIcon:".sync-complete-icon",waitingIcon:".sync-waiting-icon",processingIcon:".sync-processing-icon",failedIcon:".sync-failed-icon",unknownIcon:".sync-unknown-icon"},regions:{transcodeProgress:".sync-status-transcode"},events:{"click a":"onClick","click .edit-btn":"onEditClick","click .delete-btn":"onDeleteClick"},onlyAfterRender:["onMetadataItemsReset","onMediaChange","onTranscodeJobsReset"],initialize:function(e){
this.server=e.server,this.model.parent=this.server,this.type=this.model.get("metadataType"),this.contentType=this.model.get("contentType");var t=this.type,n=this.contentType,i=150;"episode"===t?t="show":"clip"===t||"userPlaylistItem"===t?i=250:"directory"===t&&(t="audio"===n?"track":"photo"===n?"photo":"movie"),this.$el.addClass(t),this.image=new v.a({server:this.server,type:t,width:i}),this.progressModel=new o.a.Model({current:0});var a=this.server.get("desktop").get("transcodeJobs")
;this.metadataItems=new f.a([],{server:this.server,device:this.model.device,syncItemId:this.model.id}),this.listenTo(this.metadataItems,"reset",this.onMetadataItemsReset),this.listenTo(a,"reset",this.onTranscodeJobsReset),this.metadataItems.fetch({reset:!0}),this.server.supports("syncNotifications")?this.listenTo(this.metadataItems,"change:Media",this.onMediaChange):this.metadataItemsInterval=setInterval(s.a.bind(function(){this.metadataItems.fetch({reset:!0})},this),this.metadataItemsDelay)},
serializeData:function(){return{syncItem:this.model.toJSON(),isCloudSync:this.model.device.get("isCloudSync"),isFailure:!!this.model.get("status").get("failure")}},getPosterUrl:function(e){var t=e.get("thumb");return this.hasMultipleItems?this.hasSameParents?e.get("parentThumb")||e.get("grandparentThumb")||t:this.hasSameGrandparents?e.get("grandparentThumb")||e.get("parentThumb")||t:void 0:t},updatePoster:function(e){if(this.hasPoster=!0,!e){var t=this.metadataItems.first();if(!t)return
;e=this.getPosterUrl(t)}this.image.url!==e&&(this.image.src=null,this.image.url=e,this.image.render())},analyzeParts:function(e){if(this.model.get("status").get("failure"))return"failed";var t=e.models,n=t.length;if(!n)return"unknown";for(var i="complete",a=[],r=[],o=0;o<n;o++){var l=t[o],u=l.get("Media");if(a.push(l.get("grandparentKey")),r.push(l.get("parentKey")),u.length||(i="unknown"),"failed"!==i&&"unknown"!==i)for(var c=0,p=u.length;c<p;c++)for(var h=u[c].Part,f=0,v=h.length;f<v;f++){
var m=h[f],g=d.a.getSyncStateFromPart(m);d.a.failedRegex.test(g)&&(i="failed"),d.a.processingRegex.test(g)&&(i="processing"),d.a.waitingRegex.test(g)&&"processing"!==i&&(i=m.key?"waiting":"processing")}}return this.hasMultipleItems=n>1,this.hasSameGrandparents=1===s.a.compact(s.a.uniq(a)).length,this.hasSameParents=1===s.a.compact(s.a.uniq(r)).length,this.hasPoster||this.updatePoster(),i},bindings:{".media-title":{modelAttribute:"title"},".media-subtitle-1":{modelAttribute:"rootTitle"}},
onRender:function(){this.image.setElement(this.ui.poster),this.transcodeProgress.append(new m.a({model:this.progressModel,size:56}))},onClose:function(){clearInterval(this.metadataItemsInterval)},onMetadataItemsReset:function(e){var t=this.analyzeParts(e);if(this.ui.statusIcons.addClass("hidden"),this.ui.transcodeStatus.hasClass("hidden"))switch(t){case"complete":this.ui.completeIcon.removeClass("hidden");break;case"waiting":this.ui.waitingIcon.removeClass("hidden");break;case"processing":
this.ui.processingIcon.removeClass("hidden");break;case"failed":this.ui.failedIcon.removeClass("hidden");break;default:this.ui.unknownIcon.removeClass("hidden")}},onMediaChange:function(e,t){this.onMetadataItemsReset(this.metadataItems)},onTranscodeJobsReset:function(e){var t=e.where({syncItemId:this.model.id});if(!t.length)return this.ui.transcodeStatus.hasClass("hidden")||(this.ui.transcodeStatus.addClass("hidden"),this.ui.waitingIcon.removeClass("hidden")),
this.ui.transcodeTimeRemaining.text(""),void this.updatePoster();var i=t[0],a=i.get("progress");if(this.ui.statusIcons.addClass("hidden"),a>0){this.ui.transcodeStatus.removeClass("hidden");var r=i.get("type"),s=n.i(p.a)(i.get("remaining"));if(this.progressModel.set("progress",a),"download"===r)this.progressModel.set("text",a.toString()+"%"),this.ui.transcodeTimeRemaining.text(n.i(u.default)("Downloading"));else if("upload"===r)this.progressModel.set("text",a.toString()+"%"),
this.ui.transcodeTimeRemaining.text(n.i(u.default)("Uploading"));else{var o=i.get("speed");if(o){var l=Math.round(10*i.get("speed"))/10;l>10&&(l=Math.round(l)),this.progressModel.set("text",l.toString()+"x")}else this.progressModel.set("text","");this.ui.transcodeTimeRemaining.text(s)}this.updatePoster(i.get("thumb"))}else this.ui.transcodeStatus.addClass("hidden"),this.ui.processingIcon.removeClass("hidden")},onClick:function(e){e.preventDefault(),c.a.trigger("show:modal",new g.a({
model:this.model,collection:this.metadataItems}))},onEditClick:function(e){e.stopImmediatePropagation(),e.preventDefault(),c.a.trigger("show:modal",new y.a({model:this.model}))},onDeleteClick:function(e){e.stopImmediatePropagation(),e.preventDefault(),h.a.execute("deleteSyncItem",{syncItem:this.model,server:this.server})}});t.a=b},function(e,t,n){"use strict";var i=n(51),a=n(1880),r=i.a.extend({tagName:"ul",className:"list sync-status-list",itemView:a.a});t.a=r},function(e,t,n){"use strict"
;var i=n(3106),a=n.n(i),r=n(3),s=n.n(r),o=n(18),l=n(4),u=n(240),c=n(274),d=n(124),p=o.a.ItemView.extend({tagName:"li",className:"sync-status-list-item",template:a.a,ui:{poster:".media-poster"},initialize:function(e){this.syncItem=e.syncItem,this.transcodeJobs=this.model.server.get("desktop").get("transcodeJobs"),this.$el.addClass(this.model.get("type")),this.image=new d.a({model:this.model,type:this.model.get("type"),getUrl:this.getPosterUrl,height:50,background:!1}),
this.listenTo(this.transcodeJobs,"reset",function(e){this.model.trigger("change:Media",this.model,this.model.get("Media"))})},serializeData:function(){return{isCloudSync:this.model.device.get("isCloudSync")}},getPosterUrl:function(e){return e||this.model.get("parentThumb")||this.model.get("grandparentThumb")},analyzeTranscodeJobs:function(){var e;if(this.transcodeJobs.each(s.a.bind(function(t){if(this.syncItem.id===t.get("syncItemId")){
var n=this.model.get("thumb"),i=this.model.get("title"),a=t.get("transcodeThumb"),r=t.get("title"),s=r&&r.indexOf(i)>-1,o=!0;if(n&&a){o=new RegExp("(.+)"+t.get("thumb")+"$").exec(n)}s&&o&&(e=t)}},this)),e&&e.get("progress")>0){return{active:!0,speed:Math.round(10*e.get("speed"))/10,remaining:n.i(c.a)(e.get("remaining"))||n.i(l.default)("done"),progress:Math.round(10*e.get("progress"))/10,isUploading:"upload"===e.get("type")}}return{active:!1}},analyzeParts:function(){
var e="complete",t=this.model.get("Media");if(!t.length)return"unknown";for(var n=0,i=t.length;n<i;n++)for(var a=t[n].Part,r=0,s=a.length;r<s;r++){var o=a[r],l=u.a.getSyncStateFromPart(o);u.a.failedRegex.test(l)&&(e=u.a.getSyncStateContextFromPart(o)),u.a.processingRegex.test(l)&&(e="downloading"===l?"downloading":"processing"),u.a.waitingRegex.test(l)&&"processing"!==e&&(e=o.key?"waiting":"processing")}return e},getErrorMessage:function(e){switch(e){case"sourceFileUnavailable":
return n.i(l.default)("This media is inaccessible. Please check that the file exists with the correct permissions.");case"sourceFileMetadataError":return n.i(l.default)("The metadata for this media is invalid. Please reanalyze the media and try again.");case"clientProfileError":return n.i(l.default)("The client profile for the sync target is invalid.");case"ioError":return n.i(l.default)("An error occurred processing this media. Please check that the disk is not full.");case"transcoderError":
return n.i(l.default)("The transcoder was unable to process this media.");case"mediaAnalysisError":return n.i(l.default)("This media was unable to be analyzed.");case"downloadFailed":return n.i(l.default)("This media was unable to be downloaded. Please check that it is still available and try again.");case"unknownError":return n.i(l.default)("An error occurred while syncing this media.")}return n.i(l.default)("An error occurred while syncing this media.")},bindings:{".title":{
modelAttribute:"title"},".subtitle":{modelAttribute:"Media",manual:!0,formatter:function(e){var t=this.analyzeParts(),n=this.analyzeTranscodeJobs();switch(this.$(".subtitle").addClass("hidden"),t){case"complete":this.$(".complete-subtitle").removeClass("hidden");break;case"waiting":this.$(".waiting-subtitle").removeClass("hidden"),n.isUploading&&(this.$(".cloud-sync-waiting").addClass("hidden"),this.$(".cloud-sync-uploading").removeClass("hidden"),this.$(".transcode-progress").text(n.progress))
;break;case"downloading":n.active?(this.$(".downloading-subtitle").removeClass("hidden"),this.$(".transcode-progress").text(n.progress)):this.$(".processing-subtitle").removeClass("hidden");break;case"processing":n.active?(this.$(".converting-subtitle").removeClass("hidden"),this.$(".transcode-progress").text(n.progress),this.$(".transcode-remaining").text(n.remaining)):this.$(".processing-subtitle").removeClass("hidden");break;case"unknown":this.$(".unknown-subtitle").removeClass("hidden")
;break;default:this.$(".failed-subtitle").removeClass("hidden"),this.$(".error-message").text(this.getErrorMessage(t))}}}},onRender:function(){this.image.setElement(this.ui.poster)}});t.a=p},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(3),s=n.n(r),o=n(499),l=n.n(o),u=n(4),c=n(15),d=n(44),p=n(51),h=n(1883),f=p.a.extend({tagName:"ol",className:"list media-list playlist-items",itemView:h.a,sorted:!0,itemEvents:{sort:"onSort"},initialize:function(){s.a.bindAll(this,"onItemMove")},
onRender:function(){this.sortable&&this.sortable.destroy(),this.sortable=new l.a(this.el,s.a.extend({onAdd:this.onItemMove,onUpdate:this.onItemMove,handle:".sortable-handle",animation:200,scroll:!0,scrollSensitivity:100,scrollSpeed:2},this.options.sortableOptions))},onClose:function(){this.sortable&&this.sortable.destroy()},onSort:function(){this.render()},onItemMove:function(e){var t=a()(e.item).data("queue-item-id"),i=a()(e.item).prev().data("queue-item-id"),r=this.options.playQueue
;if(i)return void r.moveItem(t,i);var o=r.get("selectedItem").get("title"),l=new d.a({title:n.i(u.default)("Convert Immediately"),message:n.i(u.default)("Do you want to start converting this item immediately? Any conversion progress for '{1}' will be lost.",o)}),p=l.promise;p.done(function(){r.moveItem(t)}),p.fail(s.a.bind(this.render,this)),c.a.trigger("show:modal",l)}});t.a=f},function(e,t,n){"use strict";var i=n(3107),a=n.n(i),r=n(18),s=r.a.ItemView.extend({template:a.a,
serializeData:function(){return{serverID:this.model.id}}});t.a=s},function(e,t,n){"use strict";var i=n(3108),a=n.n(i),r=n(3),s=n.n(r),o=n(18),l=n(13),u=n(4),c=n(203),d=n(413),p=n(28),h=n(586),f=n(355),v=n(124),m=n(927),g=o.a.Layout.extend({className:"striped-list-item media-list-item playlist-item version-generator-item",tagName:"li",template:a.a,ui:{poster:".media-poster"},events:{"click .promote-btn":"onPromoteClick","click .delete-btn":"onDeleteClick"},regions:{
statusRegion:".conversion-status-region"},attributes:function(){return{"data-queue-item-id":this.model.id}},initialize:function(e){this.metadataItem=e.model.get("metadataItem"),this.playQueue=e.playQueue,this.transcodeJobs=e.transcodeJobs,this.pausedSetting=e.pausedSetting,this.hideDragHandle=e.hideDragHandle,this.type=this.metadataItem.get("type");var t=d.a[this.type];"movie"===this.type&&(t=d.a.art);var n="episode"===this.type?"show":this.type;this.image=new v.a({model:this.metadataItem,
type:n,placeholderClass:t,height:60,modelAttribute:"thumb",getUrl:this.getPosterUrl})},bindings:{".generator-title":{model:"metadataItem",modelAttribute:"title",formatter:function(e){return c.a.title(this.metadataItem)}},".generator-target":{modelAttribute:"target",formatter:function(e){return this.model.get("syncItemId")?n.i(u.default)("Sync"):e}},".sortable-handle":{model:"playQueue",modelAttribute:"playQueueSelectedItemID",manual:!0,autohide:function(e){
return this.model.get("playQueueItemID")!==e}},".promote-btn":{modelAttribute:"queueIndex",manual:!0,autohide:function(e){var t=this.playQueue.getCurrentItem();return this.hideDragHandle||e-t.get("queueIndex")>1}}},serializeData:function(){return{hideDragHandle:this.hideDragHandle}},getPosterUrl:function(e){return"episode"===this.model.get("type")?this.model.get("grandparentThumb")||this.model.get("parentThumb")||e:e},deleteSyncItem:function(){var e=l.a("appModel"),t=new h.a({
id:this.model.get("syncItemId"),clientIdentifier:this.model.get("clientIdentifier")},{server:e.get("user").server});return p.a.execute("deleteSyncItem",{syncItem:t,server:this.model.server})},deleteGenerator:function(){var e=new f.a({id:this.model.get("generatorID")},{server:this.model.server,playlistID:this.metadataItem.get("playlistID")});return p.a.execute("disableVersionGenerator",{generator:e,ratingKey:this.metadataItem.get("ratingKey")})},onRender:function(){
this.image.setElement(this.ui.poster),this.statusRegion.show(new m.a({model:this.model,transcodeJobs:this.transcodeJobs,pausedSetting:this.pausedSetting}))},onClose:function(){this.image.close()},onCollectionSort:function(e){this.trigger("sort")},onPromoteClick:function(e){e.preventDefault();var t=this.playQueue.get("collection");this.listenToOnce(t,"sort",s.a.debounce(this.onCollectionSort));var n=this.model.get("playQueueItemID"),i=this.playQueue.get("playQueueSelectedItemID")
;this.playQueue.moveItem(n,i)},onDeleteClick:function(e){e.preventDefault(),this.model.has("syncItemId")?this.deleteSyncItem():this.deleteGenerator()}});t.a=g},function(e,t,n){"use strict";var i=n(51),a=n(1885),r=i.a.extend({tagName:"ul",className:"list card-list",itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(3110),a=n.n(i),r=n(3),s=n.n(r),o=n(18),l=n(15),u=n(28),c=n(198),d=n(437),p=o.a.ItemView.extend({tagName:"li",className:"striped-list-item",template:a.a,events:{
"click a":"onClick"},initialize:function(e){this.currentKey=e.currentKey},serializeData:function(){return{channel:this.model.toJSON(),serverID:this.model.server.id,currentKey:this.currentKey}},bindings:{".media-title":{modelAttribute:"title"}},onClick:function(e){if(/\/updates$/.test(this.model.id))e.preventDefault(),u.a.execute("updateChannel",{server:this.model.server});else if(/\/prefs$/.test(this.model.id)){e.preventDefault();var t=new c.a([],{server:this.model.server,url:this.model.id})
;t.fetch().done(s.a.bind(function(){l.a.trigger("show:modal",new d.a({model:this.model,collection:t}))},this))}}});t.a=p},function(e,t,n){"use strict";var i=n(51),a=n(1887),r=i.a.extend({tagName:"ul",className:"tile-list media-tile-list channel-directory-tile-list",itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(3111),a=n.n(i),r=n(18),s=n(4),o=n(15),l=n(124),u=n(1940),c=r.a.ItemView.extend({tagName:"li",
className:"poster-item media-tile-list-item channel-directory-tile-list-item channel",template:a.a,ui:{poster:".media-poster",subtitle:".media-subtitle-1"},events:{"click a":"onClick"},initialize:function(e){this.closeOnInstall=e.closeOnInstall,this.image=new l.a({model:this.model,type:"channel",width:150})},bindings:{".media-title":{modelAttribute:"title"},".installed-icon":{modelAttribute:"installed",manual:!0,autohide:!0,formatter:function(e,t){var i=e?n.i(s.default)("Installed"):""
;return this.ui.subtitle.text(i),e}}},onRender:function(){this.image.setElement(this.ui.poster)},onClose:function(){this.image.close()},onClick:function(e){e.preventDefault(),o.a.trigger("show:modal",new u.a({model:this.model,closeOnInstall:this.closeOnInstall}))}});t.a=c},function(e,t,n){"use strict";var i=n(51),a=n(1889),r=i.a.extend({tagName:"ul",className:"tile-list media-tile-list channel-tile-list",itemView:a.a});t.a=r},function(e,t,n){"use strict"
;var i=n(3112),a=n.n(i),r=n(3),s=n.n(r),o=n(18),l=n(4),u=n(15),c=n(28),d=n(198),p=n(124),h=n(437),f=o.a.ItemView.extend({tagName:"li",className:"poster-item media-tile-list-item channel",template:a.a,ui:{poster:".media-poster"},events:{"click .settings-btn":"onSettingsClick","click .uninstall-btn":"onUninstallClick"},initialize:function(e){this.image=new p.a({model:this.model,type:"channel",width:150}),this.shared=this.model.server.get("shared")},serializeData:function(){return{
item:this.model.toJSON(),serverID:this.model.server.id,shared:this.shared}},bindings:{".media-title":{modelAttribute:"title"},".media-subtitle-1":{modelAttribute:"type",autohide:!0,formatter:function(e){return"video"===e?n.i(l.default)("Video"):"music"===e?n.i(l.default)("Music"):"photos"===e?n.i(l.default)("Photo"):n.i(l.default)("Utility")}}},onRender:function(){this.image.setElement(this.ui.poster)},onClose:function(){this.image.close()},onSettingsClick:function(e){if(e.preventDefault(),
!this.$el.hasClass("active")){this.$el.addClass("active");var t=new d.a([],{server:this.model.server,url:this.model.id+"/:/prefs"}),n=t.fetch();n.done(s.a.bind(function(){u.a.trigger("show:modal",new h.a({model:this.model,collection:t}))},this)),n.always(s.a.bind(function(){this.$el.removeClass("active")},this))}},onUninstallClick:function(e){if(e.preventDefault(),!this.$el.hasClass("active")){this.$el.addClass("active");var t=c.a.execute("uninstallChannel",{channel:this.model})
;t.done(s.a.bind(function(){this.model.trigger("destroy",this.model,this.model.collection)},this)),t.always(s.a.bind(function(){this.$el.removeClass("active")},this))}}});t.a=f},function(e,t,n){"use strict";var i=n(51),a=n(1891),r=i.a.extend({className:"artwork-options-list",itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(3113),a=n.n(i),r=n(18),s=n(414),o=n(413),l=n(284),u=r.a.Layout.extend({tagName:"span",template:a.a,regions:{poster:".media-poster"},initialize:function(e){
var t=e.artworkType,n=150;"art"===t?n=240:"banner"===t&&(n=520),this.$el.addClass(t),this.image=new l.a({className:"media-poster-image",model:this.model,modelAttribute:"thumb",placeholderClass:o.a[t],width:n,height:s.a.getPosterHeight(t,n)})},bindings:{".artwork-option":{modelAttribute:"selected",manual:!0,formatter:function(e,t){t.toggleClass("selected",e)}}},onRender:function(){this.poster.show(this.image)}});t.a=u},function(e,t,n){"use strict"
;var i=n(18),a=n(30),r=n(124),s=i.a.ItemView.extend({ui:{poster:".media-poster"},bindings:{".media-title":{modelAttribute:"title"}},initialize:function(e){this.type=this.model.get("type");var t=n.i(a.b)(this.type).mediaType,i=this.posterWidth[t]||40,s="movie"===this.type?"art":"thumb",o="movie"===this.type?"art":this.type;this.image=new r.a({model:this.model,type:o,getUrl:this.getPosterUrl,width:i,modelAttribute:s})},getPosterUrl:function(e){
return e=e||this.model.get("parentThumb")||this.model.get("grandparentThumb"),e||(this.model.parent?e=this.model.parent.get("thumb"):this.model.channel&&(e=this.model.channel.get("thumb"))),e},onRender:function(){this.image.setElement(this.ui.poster)}});t.a=s},function(e,t,n){"use strict";var i=n(51),a=n(1894),r=n(1636),s=i.a.extend({mixins:[r.a],tagName:"ul",itemView:a.a,className:"list"});t.a=s},function(e,t,n){"use strict";var i=n(3114),a=n.n(i),r=n(18),s=r.a.ItemView.extend({tagName:"li",
template:a.a,className:"striped-list-item",initialize:function(e){this.item=e.item}});t.a=s},function(e,t,n){"use strict";var i=n(51),a=n(1897),r=n(1896),s=i.a.extend({tagName:"ul",className:"list match-result-list",itemView:a.a,emptyView:r.a});t.a=s},function(e,t,n){"use strict";var i=n(3115),a=n.n(i),r=n(18),s=r.a.ItemView.extend({template:a.a});t.a=s},function(e,t,n){"use strict";var i=n(3116),a=n.n(i),r=n(18),s=n(28),o=n(1893),l=r.a.Layout.extend({tagName:"li",
className:"striped-list-item match-result-list-item row",template:a.a,ui:{matchExtendedInfo:".match-extended-info"},regions:{childrenRegion:".children-region"},events:{"click .match-result":"onClick"},initialize:function(e){this.item=e.item},onRender:function(){var e=this.model.get("children");if(e){var t=e.first();t&&"track"===t.get("type")&&(this.ui.matchExtendedInfo.removeClass("hidden"),this.childrenRegion.show(new o.a({collection:e})))}},onClick:function(e){e.preventDefault(),
s.a.execute("match",{item:this.item,guid:this.model.id,name:this.model.get("name"),children:this.model.get("children")})}});t.a=l},function(e,t,n){"use strict";var i=n(51),a=n(928),r=i.a.extend({tagName:"ul",className:"list media-list media-details-list",itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(51),a=n(435),r=i.a.extend({tagName:"ul",className:"list media-list",itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(3119),a=n.n(i),r=n(18),s=n(553),o=r.a.ItemView.extend({
className:"hidden",template:a.a,bindings:{".media-progress-pct":{modelAttribute:"viewOffset",manual:!0,formatter:function(e,t){var i=this.model,a="track"===i.get("type")?0:n.i(s.a)(e,i.get("duration"));a&&t.css("width",a+"%"),this.$el.toggleClass("hidden",!a)}}}});t.a=o},function(e,t,n){"use strict";var i=n(51),a=n(1902),r=i.a.extend({tagName:"ul",className:"tile-list media-tile-list",itemView:a.a});t.a=r},function(e,t,n){"use strict"
;var i=n(3120),a=n.n(i),r=n(3),s=n.n(r),o=n(828),l=n(435),u=n(124),c=l.a.extend({className:"poster-item media-tile-list-item",template:a.a,ui:{container:".media-poster-container",poster:".media-poster",actions:".media-poster-actions",dropdown:".media-actions-dropdown",subtitle1Fill:".media-subtitle-1-fill",subtitle2Fill:".media-subtitle-2-fill"},initialize:function(e){l.a.prototype.initialize.apply(this,arguments),this.model&&this.createImageView()},createImageView:function(){
var e=n.i(o.a)(this.model.section),t="photo"===e?e:this.type,i=150;"episode"===t?t="show":"clip"!==t&&"userPlaylistItem"!==t||(i=250),this.image=new u.a({model:this.model,type:t,getUrl:this.getPosterUrl,width:i})},bindings:s.a.extend({},l.a.prototype.bindings,{".media-subtitle-1":{modelAttribute:"year",modelListeners:["title","year"],autohide:!0,formatter:function(e){var t=l.a.prototype.bindings[".media-subtitle-1"].formatter.apply(this,arguments)
;return"userPlaylistItem"!==this.model.get("type")&&this.ui.subtitle1Fill.toggleClass("hidden",!!t),t}},".media-subtitle-2":{modelAttribute:"index",modelListeners:["index","message"],autohide:!0,formatter:function(e){var t=l.a.prototype.bindings[".media-subtitle-2"].formatter.apply(this,arguments);return"episode"===this.model.get("type")&&this.ui.subtitle2Fill.toggleClass("hidden",!!t),t}}})});t.a=c},function(e,t,n){"use strict"
;var i=n(10),a=n.n(i),r=n(3),s=n.n(r),o=n(499),l=n.n(o),u=n(51),c=n(1904),d=u.a.extend({tagName:"ol",className:"list media-list playlist-items",itemView:c.a,sorted:!0,itemEvents:{remove:"onItemRemove"},initialize:function(e){this.canEdit=!this.model.get("smart")},onRender:function(){this.sortable&&this.sortable.destroy(),this.canEdit&&(this.sortable=new l.a(this.el,{onUpdate:s.a.bind(this.onItemMove,this),draggable:".playlist-item",handle:".sortable-handle",animation:200,scroll:!0,
scrollSensitivity:100,scrollSpeed:2}))},onItemRemove:function(e,t,n){this.model.removeItem(n)},onItemMove:function(e){var t=a()(e.item).data("playlist-id"),n=a()(e.item).prev().data("playlist-id");this.model.moveItem(t,n)},onClose:function(){this.sortable&&this.sortable.destroy()}});t.a=d},function(e,t,n){"use strict";var i=n(3121),a=n.n(i),r=n(18),s=n(28),o=n(1905),l=r.a.Layout.extend({template:a.a,tagName:"li",className:"striped-list-item media-list-item playlist-item",events:{
"click .delete-btn":"onDeleteClick","click .playlist-inner-item":"onClick"},attributes:function(){return{"data-playlist-id":this.model.get("playlistItemID")}},regions:{metadataRegion:".playlist-metadata-region"},initialize:function(e){this.canEdit=e&&e.canEdit},onRender:function(){this.metadataRegion.show(new o.a({model:this.model.get("metadataItem"),canEdit:this.canEdit}))},onClick:function(e){e.preventDefault(),e.stopImmediatePropagation(),s.a.execute("playMedia",{item:this.model,siblings:!0})
},onDeleteClick:function(e){e.preventDefault(),e.stopImmediatePropagation(),this.trigger("remove",this.model.get("playlistItemID"))}});t.a=l},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(3122),s=n.n(r),o=n(15),l=n(279),u=n(204),c=n(544),d=n(235),p=n(1892),h=p.a.extend({template:s.a,posterWidth:{video:103,photo:59},events:{"click .media-details":"onDetailsClick","click .media-primary-subtitle":"onGrandparentClick","click .media-secondary-subtitle":"onParentClick"},
bindings:a()({},p.a.prototype.bindings,{".media-primary-subtitle":{modelAttribute:"grandparentTitle",formatter:function(e){return"movie"!==this.type&&e?e:""}},".media-secondary-subtitle":{modelAttribute:"parentTitle",modelListeners:["parentTitle","index","year"],formatter:function(e){var t=e;return"episode"===this.type?t=n.i(l.a)({useLongName:!0,seasonIndex:this.model.get("parentIndex"),episodeIndex:this.model.get("index"),date:this.model.get("originallyAvailableAt"),noLeadingZero:!0,
separator:" - "}):"movie"===this.type&&(t=this.model.get("year")),t||""}},".media-duration":{modelAttribute:"duration",formatter:function(e){return"photo"===this.type?n.i(u.default)(this.model.get("originallyAvailableAt")):"track"===this.type?n.i(d.a)(e):n.i(c.a)(e)}}}),initialize:function(e){p.a.prototype.initialize.apply(this,arguments),this.canEdit=e&&e.canEdit,"track"===this.type&&(this.playQueueManager=this.model.server.get("playQueueManager"),
this.listenTo(this.playQueueManager,"change:playQueue:audio",this.onPlayQueueChange),this.listenTo(this.playQueueManager,"remove:playQueue:audio",this.onRemovePlayQueue),this.onPlayQueueChange(this.playQueueManager.getFor(this.model)))},serializeData:function(){return{canEdit:this.canEdit,hasDetails:"track"!==this.type&&"photo"!==this.type,type:this.type}},navigateTo:function(e,t){e&&(t.preventDefault(),t.stopPropagation(),o.a.trigger("navigate","details",{serverID:this.model.server.id,key:e}))
},onRender:function(){if(p.a.prototype.onRender.apply(this,arguments),"track"===this.type){var e=this.playQueueManager.getFor(this.model);if(!e)return;var t=e.get("selectedItem");t&&this.model.get("key")===t.get("key")&&this.$el.addClass("current-track")}},onPlayQueueSelectedItemChange:function(e,t){var n=!(!t||this.model.get("key")!==t.get("key"));this.$el.toggleClass("current-track",n)},onPlayQueueChange:function(e){e&&this.listenTo(e,"change:selectedItem",this.onPlayQueueSelectedItemChange)},
onRemovePlayQueue:function(e){this.stopListening(e),this.$el.removeClass("current-track")},onDetailsClick:function(e){var t=this.model.get("type");"track"!==t&&"photo"!==t&&this.navigateTo(this.model.get("key"),e)},onParentClick:function(e){this.navigateTo(this.model.get("parentKey"),e)},onGrandparentClick:function(e){this.navigateTo(this.model.get("grandparentKey"),e)}});t.a=h},function(e,t,n){"use strict";var i=n(51),a=n(1907),r=i.a.extend({tagName:"ul",
className:"list select-list select-playlist-list minimal-scroll",itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(3123),a=n.n(i),r=n(18),s=n(600),o=r.a.ItemView.extend({tagName:"li",className:"striped-list-item select-list-item",template:a.a,ui:{poster:".playlist-poster"},initialize:function(){this.image=new s.a({model:this.model,width:40})},onRender:function(){this.image.setElement(this.ui.poster)},onClose:function(){this.image.close()}});t.a=o},function(e,t,n){"use strict"
;var i=n(10),a=n.n(i),r=n(3),s=n.n(r),o=n(499),l=n.n(o),u=n(51),c=n(1910),d=n(1909),p=u.a.extend({tagName:"ol",className:"list media-list playlist-items",itemView:c.a,emptyView:d.a,sorted:!0,onRender:function(){this.sortable&&this.sortable.destroy(),this.sortable=new l.a(this.el,{onUpdate:s.a.bind(this.onItemMove,this),handle:".sortable-handle",animation:200,scroll:!0,scrollSensitivity:100,scrollSpeed:2})},onClose:function(){this.sortable&&this.sortable.destroy()},onItemMove:function(e){
var t=a()(e.item).data("generator-id"),n=a()(e.item).prev().data("generator-id");this.collection.parent.moveItem(t,n)}});t.a=p},function(e,t,n){"use strict";var i=n(3124),a=n.n(i),r=n(18),s=r.a.ItemView.extend({template:a.a});t.a=s},function(e,t,n){"use strict";var i=n(3125),a=n.n(i),r=n(18),s=n(4),o=n(15),l=n(414),u=n(1803),c=n(28),d=n(600),p=n(439),h=n(1963),f=r.a.ItemView.extend({className:"striped-list-item media-list-item playlist-item version-generator-item",tagName:"li",template:a.a,ui:{
poster:".media-poster",status:".generator-status"},events:{"click .playlist-inner-item":"onClick","click .retry-btn":"onRetryClick","click .edit-btn":"onEditClick","click .delete-btn":"onDeleteClick"},attributes:function(){return{"data-generator-id":this.model.id}},initialize:function(e){this.transcodeJobs=e.transcodeJobs,this.pausedSetting=e.pausedSetting,this.status=this.model.get("status");this.compositeImage=new d.a({model:this.model,width:l.a.getPosterWidth("movie",60),height:60,rows:1,
columns:1}),this.listenTo(this.transcodeJobs,"reset add remove",this.onTranscodeJobsChange)},resetState:function(){var e=["converting",u.a.PENDING,u.a.COMPLETE,u.a.FAILED];this.ui.status.removeClass(e.join(" "))},getState:function(e){return this.transcodeJobs.findWhere({generatorID:this.model.id})?"converting":e.get("itemsFailedCount")>0?u.a.FAILED:e.get("state")},bindings:{".generator-title":{modelAttribute:"title"},".generator-target":{modelAttribute:"target"},".generator-status":{
model:"status",modelAttribute:"state",modelListeners:["state","itemsFailedCount"],manual:!0,formatter:function(e,t){this.resetState(),t.addClass(this.getState(this.status))}},".generator-status-failed-message":{model:"status",modelAttribute:"itemsFailedCount",formatter:function(e){return 1===e?n.i(s.default)("1 failed item"):n.i(s.default)("{1} failed items",e)}},".retry-btn":{model:"status",modelAttribute:"state",modelListeners:["state","itemsFailedCount"],manual:!0,autohide:function(e){
return this.getState(this.status)===u.a.FAILED}}},onRender:function(){this.compositeImage.setElement(this.ui.poster)},onClose:function(){this.compositeImage.close()},onTranscodeJobsChange:function(){var e=this.getState(this.status);this.resetState(),this.ui.status.addClass(e)},onClick:function(e){e.preventDefault(),o.a.trigger("show:modal",new h.a({model:this.model,listModel:this.model.get("children"),transcodeJobs:this.transcodeJobs,pausedSetting:this.pausedSetting}))},onRetryClick:function(e){
e.preventDefault(),e.stopImmediatePropagation(),c.a.execute("reprocessVersionGenerator",{generator:this.model})},onEditClick:function(e){e.preventDefault(),e.stopImmediatePropagation(),o.a.trigger("show:modal",new p.a({model:this.model}))},onDeleteClick:function(e){e.preventDefault(),e.stopImmediatePropagation(),c.a.execute("deleteVersionGenerator",{generator:this.model})}});t.a=f},function(e,t,n){"use strict";var i=n(51),a=n(1912),r=i.a.extend({tagName:"ul",
className:"list version-generator-metadata-list",itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(3126),a=n.n(i),r=n(18),s=n(4),o=n(279),l=n(1802),u=n(28),c=n(124),d=n(927),p=r.a.Layout.extend({tagName:"li",className:"striped-list-item version-generator-metadata-list-item",template:a.a,ui:{poster:".media-poster"},regions:{statusRegion:".conversion-status-region"},events:{"click .enable-btn":"onEnableClick","click .retry-btn":"onRetryClick"},modelEvents:{
"change:processingState":"onProcessingStateChange"},initialize:function(e){this.generator=e.generator,this.transcodeJobs=e.transcodeJobs,this.pausedSetting=e.pausedSetting,this.type=this.model.get("type"),this.image=new c.a({model:this.model,type:"movie",height:60,modelAttribute:"episode"===this.type?"grandparentThumb":"thumb"})},bindings:{".generator-metadata-title":{modelAttribute:"title",formatter:function(e){return this.model.get("grandparentTitle")||this.model.get("parentTitle")||e}},
".generator-metadata-episode-index":{modelAttribute:"index",autohide:!0,formatter:function(e){if("episode"===this.type)return n.i(o.a)({seasonIndex:this.model.get("parentIndex"),episodeIndex:e,date:this.model.get("originallyAvailableAt"),noLeadingZero:!0,separator:" \xb7 "})}},".generator-metadata-year":{modelAttribute:"year",autohide:!0,formatter:function(e){if("movie"===this.type)return e}},".conversion-status-failed-message":{modelAttribute:"processingStateContext",formatter:function(e){
return this.getErrorMessage(e)}}},getErrorMessage:function(e){var t=l.a.contexts;switch(e){case t.FILE_UNAVAILABLE:return n.i(s.default)("File unavailable");case t.METADATA_ERROR:return n.i(s.default)("Invalid metadata");case t.PROFILE_ERROR:return n.i(s.default)("Invalid profile");case t.ANALYSIS_ERROR:return n.i(s.default)("Unable to analyze")}return n.i(s.default)("Unable to convert")},onRender:function(){this.image.setElement(this.ui.poster),this.statusRegion.show(new d.a({model:this.model,
generator:this.generator,transcodeJobs:this.transcodeJobs,pausedSetting:this.pausedSetting,initialState:this.model.get("processingState"),initialErrorMessage:this.getErrorMessage(this.model.get("processingStateContext"))}))},onClose:function(){this.image.close()},onProcessingStateChange:function(e,t){this.statusRegion.currentView&&this.statusRegion.currentView.enterState(t)},onEnableClick:function(e){e.preventDefault(),u.a.execute("enableVersionGenerator",{generator:this.model.generator,
ratingKey:this.model.id})},onRetryClick:function(e){e.preventDefault(),u.a.execute("reprocessVersionGenerator",{generator:this.model.generator,ratingKey:this.model.id})}});t.a=p},function(e,t,n){"use strict";var i=n(18),a=n(4),r=n(1914),s=n(3038),o=n.n(s),l=i.a.CompositeView.extend({template:o.a,itemView:r.a,itemViewContainer:".js-file-list-items",bindings:{".js-file-list-truncated-message":{modelAttribute:"truncatedFilesCount",formatter:function(e){
return e?n.i(a.default)("\u2026and {truncatedFilesCount} more",{truncatedFilesCount:e}):null}}}});t.a=l},function(e,t,n){"use strict";var i=n(3127),a=n.n(i),r=n(18),s=r.a.ItemView.extend({tagName:"li",className:"striped-list-item browse-directory-list-item disabled",template:a.a,serializeData:function(){return{filePath:this.model.toJSON()}}});t.a=s},function(e,t,n){"use strict";var i=n(18),a=n(10),r=n.n(a),s=n(1916),o=i.a.CollectionView.extend({tagName:"ul",
className:"list browse-directory-list",itemView:s.a,selectedFilePath:null,events:{"click a":"onDirectoryClick"},collectionEvents:{reset:"onReset"},startLoadingItem:function(e){this.selectedFilePath&&this.unselectItem(this.selectedFilePath),this.selectedFilePath=e;var t=this.children.findByModel(e);t&&t.select(!0)},stopLoadingItem:function(e){var t=this.children.findByModel(e);t&&t.select(!1)},unselectItem:function(e){this.selectedFilePath=null;var t=this.children.findByModel(e);t&&t.unselect()},
onReset:function(){this.parentFilePath&&this.collection.add(this.parentFilePath,{at:0})},onDirectoryClick:function(e){e.preventDefault();var t=r()(e.currentTarget),n=t.data("key"),i=this.collection.get(n)||this.parentFilePath;this.trigger("change:path",i),this.options.isRoot||(i.parent.parent?(this.parentFilePath=i.parent.parent.clone(),this.parentFilePath.set({title:".. [Back]",isBackShortcut:!0})):this.parentFilePath=null)}});t.a=o},function(e,t,n){"use strict"
;var i=n(3128),a=n.n(i),r=n(18),s=r.a.ItemView.extend({tagName:"li",className:"striped-list-item browse-directory-list-item",template:a.a,ui:{link:"a",spinner:".loading"},serializeData:function(){return{filePath:this.model.toJSON(),isRoot:!this.model.parent}},select:function(e){this.ui.link.addClass("selected"),this.ui.spinner.toggleClass("hidden",!e)},unselect:function(){this.ui.link.removeClass("selected"),this.ui.spinner.addClass("hidden")}});t.a=s},function(e,t,n){"use strict"
;var i=n(51),a=n(1918),r=i.a.extend({tagName:"ul",className:"agents-nav nav nav-pills nav-pills-sm",itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(3129),a=n.n(i),r=n(18),s=r.a.ItemView.extend({tagName:"li",template:a.a,bindings:{a:{modelAttribute:"selected",manual:!0,formatter:function(e){this.$el.toggleClass("active",!!e)}}}});t.a=s},function(e,t,n){"use strict";var i=n(499),a=n.n(i),r=n(51),s=n(1920),o=r.a.extend({tagName:"ul",className:"list contributor-list",itemView:s.a,events:{
"change input[type=checkbox]":"save",update:"save"},save:function(){var e=[];this.$(":checked").each(function(t){e.push(this.name)}),this.trigger("save",e.join(","))},onRender:function(){this.sortable=new a.a(this.$el[0],{draggable:".card-sortable",animation:200})},onClose:function(){this.sortable.destroy()}});t.a=o},function(e,t,n){"use strict";var i=n(3130),a=n.n(i),r=n(3),s=n.n(r),o=n(18),l=n(15),u=n(198),c=n(437),d=n(1939),p=o.a.ItemView.extend({tagName:"li",className:"card card-sortable",
template:a.a,events:{"change input[type=checkbox]":"onEnabledChange","click .settings-btn":"onSettingsClick","click .info-btn":"onInfoClick"},initialize:function(){this.attribution=this.model.get("attribution"),this.attribution.fetch()},bindings:{".info-btn":{model:"attribution",modelAttribute:"content",manual:!0,autohide:!0},".settings-btn":{modelAttribute:"hasPrefs",manual:!0,autohide:!0}},onEnabledChange:function(e){this.model.set("enabled",e.target.checked)},onSettingsClick:function(e){
e.preventDefault();var t=new u.a([],{server:this.model.server,url:"/:/plugins/"+this.model.id+"/prefs"});t.fetch().done(s.a.bind(function(){l.a.trigger("show:modal",new c.a({model:this.model,collection:t}))},this))},onInfoClick:function(e){e.preventDefault(),l.a.trigger("show:modal",new d.a({model:this.model}))}});t.a=p},function(e,t,n){"use strict";var i=n(51),a=n(1923),r=n(1922),s=i.a.extend({tagName:"ul",className:"list card-tile-list",itemView:a.a,emptyView:r.a});t.a=s},function(e,t,n){
"use strict";var i=n(3131),a=n.n(i),r=n(18),s=r.a.ItemView.extend({template:a.a});t.a=s},function(e,t,n){"use strict";var i=n(3132),a=n.n(i),r=n(18),s=n(810),o=n(418),l=n(236),u=n(842),c=n(28),d=r.a.ItemView.extend({tagName:"li",className:"card-tile-list-item card-2-col-item",template:a.a,ui:{icon:".device-icon",syncInfo:".sync-info"},events:{"click .remove-device-btn":"onRemoveClick"},isMediaServer:function(){if(null==this.isServer){var e=this.model.get("product").toLowerCase()
;this.isServer="plex media server"===e||"plex cloud server"===e}return this.isServer},bindings:{".device-icon":{modelAttribute:"platform",manual:!0,formatter:function(e,t){var n=s.a.getIcon(e);t.attr("src",n)}},".name":{modelAttribute:"name",autohide:!1},".version":{modelAttribute:"productVersion",autohide:!1},".product":{modelAttribute:"product",autohide:!1},".platform":{modelAttribute:"platform",autohide:function(e){return e&&this.isMediaServer()}},".platform-version":{
modelAttribute:"platformVersion",autohide:function(e){return e&&this.isMediaServer()}},".device":{modelAttribute:"device",autohide:!1},".last-seen":{modelAttribute:"lastSeenAt",autohide:!0,formatter:function(e,t){return n.i(l.a)(e)}},".sync-count":{modelAttribute:"syncList",autohide:!1,formatter:function(e){if(e){var t,i=e.get("itemsCompleteCount");return i&&i>0&&(t=[i,n.i(o.a)("item",i)].join(" "),this.ui.syncInfo.removeClass("hidden")),t}}},".sync-size":{modelAttribute:"syncList",autohide:!1,
formatter:function(e){if(e){var t,i=e.get("totalSize");return i&&i>0&&(t=["(",n.i(u.a)(i),")"].join("")),t}}}},onRemoveClick:function(e){e.preventDefault(),this.isMediaServer()?c.a.execute("removeServer",{device:this.model}):c.a.execute("removeDevice",{device:this.model})}});t.a=d},function(e,t,n){"use strict";var i=n(51),a=n(1926),r=n(1925),s=i.a.extend({tagName:"ul",className:"list card-tile-list",itemView:a.a,emptyView:r.a,sorted:!0});t.a=s},function(e,t,n){"use strict"
;var i=n(3133),a=n.n(i),r=n(18),s=r.a.ItemView.extend({template:a.a});t.a=s},function(e,t,n){"use strict";var i=n(3134),a=n.n(i),r=n(18),s=n(15),o=n(28),l=n(182),u=n(929),c=n(300),d=r.a.Layout.extend({tagName:"li",className:"card-tile-list-item card-2-col-item",template:a.a,ui:{poster:".card-poster"},regions:{details:".card-details"},events:{"click .edit-btn":"onEditClick","click .delete-btn":"onDeleteClick"},initialize:function(e){this.serverShares=this.model.get("serverShares"),
this.image=new l.a({model:this.model,type:"friend",width:80})},bindings:{".username":{modelAttribute:"title"}},onRender:function(){this.image.setElement(this.ui.poster),this.details.show(new u.a({model:this.model}))},onClose:function(){this.image.close()},onEditClick:function(e){e.preventDefault(),s.a.trigger("show:modal",new c.a({model:this.model}))},onDeleteClick:function(e){e.preventDefault(),o.a.execute("removeFriend",{friend:this.model})}});t.a=d},function(e,t,n){"use strict"
;var i=n(51),a=n(930),r=n(1928),s=i.a.extend({tagName:"ul",className:"list card-tile-list",itemView:a.a,emptyView:r.a,sorted:!0,isEmpty:function(e){return!this.collection||this.collection.length<2},addChildView:function(e,t,n){this.isEmpty(this.collection)?this.showEmptyView():this._showingEmptyView?this.render():this.children.findByModel(e)||i.a.prototype.addChildView.apply(this,arguments)},showEmptyView:function(){this._showingEmptyView||this.children.each(function(e){this.removeChildView(e)
},this),i.a.prototype.showEmptyView.apply(this,arguments)}});t.a=s},function(e,t,n){"use strict";var i=n(3136),a=n.n(i),r=n(3),s=n.n(r),o=n(18),l=n(13),u=n(112),c=n(930),d=o.a.Layout.extend({template:a.a,regions:{card:".centered-home-user-container"},initialize:function(e){this.itemViewOptions=e},serializeData:function(){var e=l.a("appModel"),t=e.get("user");return{hasHomeFeature:!!t.get("features").get(u.c),plexPassUrl:t.server.get("plexPassUrl")}},onRender:function(){
var e=l.a("appModel"),t=e.get("user"),n=t.get("homeUsers");n.length&&this.card.show(new c.a(s.a.extend({},this.itemViewOptions,{model:n.first()})))}});t.a=d},function(e,t,n){"use strict";var i=n(3138),a=n.n(i),r=n(3),s=n.n(r),o=n(18),l=n(4),u=n(418),c=n(236),d=n(28),p=n(182),h=o.a.ItemView.extend({tagName:"li",className:"card-tile-list-item card-2-col-item",template:a.a,ui:{poster:".card-poster"},events:{"click .accept-btn":"onAcceptClick","click .delete-btn":"onDeleteClick"},
initialize:function(e){this.subset=this.model.collection.subset,this.image=new p.a({model:this.model,type:"friend",width:80})},serializeData:function(){return{showAccept:"requests"===this.subset}},bindings:{".username":{modelAttribute:"friendlyName"},".user-summary":{modelAttribute:"Server",autohide:!0,formatter:function(e){if("requested"===this.subset){var t=this.model.get("createdAt")
;return t?n.i(l.default)("invite sent {1}",n.i(c.a)(t)):n.i(l.default)("invite sent to {1}",this.model.get("email"))}var i=this.model.get("friend"),a=this.model.get("server"),r=this.model.get("home");if(a){var o=s.a.reduce(e,function(e,t){return e+=t.numLibraries},0),d=n.i(u.a)(n.i(l.default)("library"),o,n.i(l.default)("libraries"))
;return r?n.i(l.default)("wants you to join their home and share {1} {2} with you",o,d):i?n.i(l.default)("wants to be friends and share {1} {2} with you",o,d):n.i(l.default)("wants to share {1} {2} with you",o,d)}return r?n.i(l.default)("wants you to join their home"):n.i(l.default)("wants to be friends")}}},onRender:function(){this.image.setElement(this.ui.poster)},onClose:function(){this.image.close()},onAcceptClick:function(e){e.preventDefault(),d.a.execute("acceptInvite",{invite:this.model})
},onDeleteClick:function(e){e.preventDefault(),d.a.execute("rejectInvite",{invite:this.model,subset:this.subset})}});t.a=h},function(e,t,n){"use strict";var i=n(51),a=n(1931),r=i.a.extend({tagName:"ul",className:"list card-tile-list",itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(3139),a=n.n(i),r=n(18),s=n(15),o=n(28),l=n(438),u={artist:"music",movie:"film",photo:"picture",show:"display"},c=r.a.ItemView.extend({tagName:"li",className:"card-tile-list-item card-2-col-item",
template:a.a,events:{"click .edit-section-btn":"onEditClick","click .delete-section-btn":"onDeleteClick"},serializeData:function(){var e=this.model.server,t=this.model.toJSON();return{section:t,serverID:e.id,icon:u[t.type]}},bindings:{".section-title":{modelAttribute:"title"}},onEditClick:function(e){e.preventDefault();var t=this.model,n=new l.a({model:t,server:t.server,isDefaultSection:t.isNew()});t.isNew()&&n.promise.always(function(){t.trigger("destroy",t,t.collection)}),
s.a.trigger("show:modal",n)},onDeleteClick:function(e){e.preventDefault(),o.a.execute("deleteSection",{section:this.model})}});t.a=c},function(e,t,n){"use strict";var i=n(51),a=n(1933),r=i.a.extend({className:"list announcement-list",itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(3140),a=n.n(i),r=n(18),s=n(284),o=r.a.ItemView.extend({className:"announcement-list-item",template:a.a,ui:{thumb:".thumb",unread:".unread"},initialize:function(){this.image=new s.a({
url:this.model.get("imageUrl")})},onRender:function(){this.image.setElement(this.ui.thumb),this.model.markAsRead()},onClose:function(){this.image.close()}});t.a=o},function(e,t,n){"use strict";var i=n(51),a=n(1935),r=i.a.extend({tagName:"ul",className:"list select-list select-friends-list dark-scrollbar",itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(3141),a=n.n(i),r=n(18),s=n(182),o=r.a.ItemView.extend({tagName:"li",className:"striped-list-item select-list-item",template:a.a,ui:{
poster:".user-poster"},initialize:function(e){this.image=new s.a({model:this.model,type:"friend",width:80})},onRender:function(){this.image.setElement(this.ui.poster)},onClose:function(){this.image.close()}});t.a=o},function(e,t,n){"use strict";var i=n(51),a=n(1937),r=i.a.extend({tagName:"ul",className:"list card-tile-list",itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(3142),a=n.n(i),r=n(3),s=n.n(r),o=n(13),l=n(28),u=n(58),c=n(928),d=c.a.extend({template:a.a,
className:"card-tile-list-item card-2-col-item",events:{"click .play-btn":"onPlayClick","click .mark-watched-btn":"onMarkWatchedClick","click .mark-unwatched-btn":"onMarkUnwatchedClick","click .delete-btn":"onDeleteClick"},serializeData:function(){return c.a.prototype.serializeData.apply(this,arguments)},bindings:s.a.extend({},c.a.prototype.bindings,{".media-summary":{autohide:!0,formatter:function(){return this.model.get("message")||this.model.get("summary")}},".mark-unwatched-btn":{
modelAttribute:"viewCount",manual:!0,autohide:function(e){return e>0}},".mark-watched-btn":{modelAttribute:"viewCount",manual:!0,autohide:function(e){return 0===e}}}),onPlayClick:function(e){e.preventDefault(),n.i(o.a)("appStore").dispatch(n.i(u.a)({serverModel:this.model.server,metadataItemModel:this.model}))},onMarkWatchedClick:function(e){e.preventDefault(),l.a.execute("markWatched",{item:this.model})},onMarkUnwatchedClick:function(e){e.preventDefault(),l.a.execute("markUnwatched",{
item:this.model})},onDeleteClick:function(e){e.preventDefault(),this.model.destroy()}});t.a=d},function(e,t,n){"use strict";var i=n(3143),a=n.n(i),r=n(3),s=n.n(r),o=n(4),l=n(15),u=n(208),c=n(875),d=n(62),p=n(1915),h=n(1913),f=d.a.extend({name:"addFolderModal",className:"add-folder-modal modal fade",template:a.a,events:s.a.extend({"submit form":"onSubmitForm"},d.a.prototype.events),ui:{path:'input[name="path"]'},regions:{rootList:".home-directory-container",childrenList:".path-container",
childrenFileList:".file-container"},initialize:function(e){d.a.prototype.initialize.apply(this,arguments),this.rootPathList=new c.default({},{server:e.server,includeFiles:1}),this.childrenPathList=new c.default({},{server:e.server,includeFiles:1}),this.loadRootPaths()},loadRootPaths:function(){this.rootPathList.fetch().done(this.whenRendered(function(){var e=this.rootPathList.get("paths").where({home:!0}),t=s.a.first(e)||this.rootPathList.get("paths").first()
;this.rootList.currentView.startLoadingItem(t),this.loadChildrenPaths(t)}))},loadChildrenPaths:function(e){u.a.abortAll("addFolderModal");var t=e.get("children"),i=t.fetch({scope:"addFolderModal"});i.done(this.whenRendered(function(){this.ui.path.val(e.get("path")),this.childrenPathList.get("paths").reset(t.get("paths").models),this.childrenPathList.get("files").reset(t.get("files").models),this.childrenPathList.set("truncatedFilesCount",t.get("truncatedFilesCount"))})),
i.fail(this.whenRendered(function(){this.childrenList.currentView.unselectItem(e),l.a.trigger("show:alert",{type:"error",message:n.i(o.default)("Unable to load contents of '{1}'",e.get("path"))})})),i.always(this.whenRendered(function(){this.rootList.currentView.stopLoadingItem(e)}))},onRender:function(){d.a.prototype.onRender.apply(this,arguments);var e=new p.a({isRoot:!0,collection:this.rootPathList.get("paths")}),t=new p.a({collection:this.childrenPathList.get("paths")}),n=new h.a({
model:this.childrenPathList,collection:this.childrenPathList.get("files")});this.listenTo(e,"change:path",this.onRootPathChange),this.listenTo(t,"change:path",this.onChildrenPathChange),this.rootList.show(e),this.childrenList.show(t),this.childrenFileList.show(n)},onRootPathChange:function(e){this.childrenList.currentView.parentFilePath=null,this.rootList.currentView.startLoadingItem(e),this.loadChildrenPaths(e)},onChildrenPathChange:function(e){this.childrenList.currentView.startLoadingItem(e),
this.loadChildrenPaths(e)},onSubmitForm:function(e){e.preventDefault(),this.trigger("add:folder",this.ui.path.val()),this.hide()}});t.a=f},function(e,t,n){"use strict";var i=n(3145),a=n.n(i),r=n(62),s=n(284),o=r.a.extend({name:"agentInfoModal",className:"agent-info-modal modal fade",template:a.a,regions:{icon:".agent-icon-container"},serializeData:function(){return{agent:this.model.toJSON(),attribution:this.model.get("attribution").get("content")}},onRender:function(){
r.a.prototype.onRender.apply(this,arguments),this.icon.show(new s.a({model:this.model,url:"/system/agents/attribution/image?identifier="+this.model.id,className:"agent-icon",width:100,height:100}))}});t.a=o},function(e,t,n){"use strict";var i=n(3146),a=n.n(i),r=n(3),s=n.n(r),o=n(15),l=n(28),u=n(62),c=n(124),d=u.a.extend({name:"channelModal",className:"channel-modal modal fade",template:a.a,ui:{poster:".media-poster",installBtn:".install-btn",updateBtn:".update-btn",uninstallBtn:".uninstall-btn"
},events:s.a.extend({"click .browse-btn":"onBrowseClick","click .install-btn":"onInstallClick","click .update-btn":"onUpdateClick","click .restart-btn":"onRestartClick","click .reset-btn":"onResetClick","click .uninstall-btn":"onUninstallClick"},u.a.prototype.events),initialize:function(e){u.a.prototype.initialize.apply(this,arguments),this.closeOnInstall=e.closeOnInstall,this.image=new c.a({model:this.model,type:"channel",width:200})},serializeData:function(){return{channel:this.model.toJSON(),
serverID:this.model.server.id,agent:/com.plexapp.agents./.test(this.model.id)}},bindings:{".installed-actions-container":{modelAttribute:"installed",manual:!0,autohide:!0},".uninstalled-actions-container":{modelAttribute:"installed",manual:!0,autohide:function(e){return!e}}},onRender:function(){u.a.prototype.onRender.apply(this,arguments),this.image.setElement(this.ui.poster)},onClose:function(){this.image.close()},onBrowseClick:function(e){e.preventDefault()
;var t=this.model.get("key"),n=s.a.last(t.split("/"));o.a.trigger("navigate","channel",{serverID:this.model.server.id,channelID:n}),this.hide()},onInstallClick:function(e){e.preventDefault();var t=this.ui.installBtn;if(!t.hasClass("active")){t.addClass("active");var n=l.a.execute("installChannel",{channel:this.model});n.done(s.a.bind(function(){this.closeOnInstall&&this.hide()},this)),n.always(function(){t.removeClass("active")})}},onUpdateClick:function(e){e.preventDefault()
;var t=this.ui.updateBtn;if(!t.hasClass("active")){t.addClass("active");l.a.execute("updateChannel",{channel:this.model,skipConfirmation:!0}).always(function(){t.removeClass("active")})}},onRestartClick:function(e){e.preventDefault(),l.a.execute("restartChannel",{channel:this.model})},onResetClick:function(e){e.preventDefault(),l.a.execute("resetChannel",{channel:this.model})},onUninstallClick:function(e){e.preventDefault();var t=this.ui.uninstallBtn;if(!t.hasClass("active")){
t.addClass("active");l.a.execute("uninstallChannel",{channel:this.model,skipConfirmation:!0}).always(function(){t.removeClass("active")})}}});t.a=d},function(e,t,n){"use strict";var i=n(3149),a=n.n(i),r=n(3),s=n.n(r),o=n(299),l=n(19),u=o.a.extend({name:"downloadVersionModal",template:a.a,serializeData:function(){var e=this.model;return{defaultLinkTarget:"_self",mediaItems:s.a.map(this.model.get("Media"),function(t,n){var i=s.a.clone(t);i.downloadUrl=e.getDownloadUrl(n);var a=e.getFilepath(n)
;return a&&(i.downloadName=l.getLastSegment(a)),i})}},onClick:function(){}});t.a=u},function(e,t,n){"use strict";var i=n(1105),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(4),c=n(15),d=n(925),p=n(62),h=n(353),f={playlist:["general"]},v=p.a.extend({mixins:[h.a],name:"editPlaylistModal",className:"edit-metadata-modal modal modal-lg fade",template:a.a,panes:{general:{constructor:d.a}},panesModel:"tempModel",events:s.a.extend({"click .change-pane-btn":"onChangePaneClick",
"click .save-btn":"onFormSubmit","submit .edit-metadata-form":"onFormSubmit"},p.a.prototype.events),ui:{saveBtn:".save-btn",message:".form-message",navPane:".modal-nav-pane",loadingIndicator:".modal-body-pane .loading-inline"},regions:{paneRegion:".pane-region"},onlyAfterRender:["saveChanges","showPane","showNav"],initialize:function(e){p.a.prototype.initialize.apply(this,arguments);var t,i=e.model,a=[i];if(this.model=i,this.tempModel=i.clone(),!t){var r=l.a.Deferred();r.resolve(),t=r.promise()}
t=t.done(s.a.bind(function(){this.tempModel.set(i.attributes),1===a.length&&this.tempModel.set("key",a[0].get("key")),this.showNav(),this.showPane(e.selectedPane||"general"),this.listenTo(c.a,"shortcut:save",this.saveChanges)},this)),t.fail(s.a.bind(function(){this.ui.message.text(n.i(u.default)("There was an error editing this item")),this.ui.loadingIndicator.addClass("hidden")},this))},serializeData:function(){var e=f[this.model.get("type")]||f.movie,t=s.a.reduce(e,function(e,t){
return e[t]=!0,e},{}),i=s.a.escape(n.i(u.default)("Edit {1}",this.model.get("title")));return{item:this.model.toJSON(),panes:t,selectedPane:this.selectedPane,paneTitle:i}},paneConstructorArg:function(){return{type:this.selectedPane}},showNav:function(){this.ui.navPane.removeClass("hidden")},saveChanges:function(){var e=this.ui.saveBtn,t=this.ui.message;if(!e.isDisabled()){t.text(""),this.paneRegion.currentView.flushChanges()
;var i=s.a.reduce(this.model.changedAttributes(this.tempModel.attributes),function(e,t,n){return e[n]=t,e},{});e.addClass("active");var a=[];s.a.isEmpty(i)||a.push(this.model.save(i));var r=l.a.when.apply(l.a,a);r.done(s.a.bind(function(){this.hide()},this)),r.fail(function(){t.text(n.i(u.default)("Your changes could not be saved."))}),r.always(function(){e.removeClass("active")})}},onPaneShow:function(e,t){this.listenTo(t,"focusSubmit",function(){this.ui.saveBtn.focus()})},
onPaneHide:function(e,t){t.flushChanges(),this.stopListening(t)},onFormSubmit:function(e){e.preventDefault(),this.saveChanges()}});t.a=v},function(e,t,n){"use strict";var i=n(3151),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(4),c=n(62),d=n(1844),p=n(353),h=n(1990),f=n(1991),v=c.a.extend({mixins:[p.a],name:"fixIncorrectMatch",className:"fix-incorrect-match-modal modal modal-lg fade",template:a.a,panes:{form:{constructor:h.a},results:{constructor:f.a}},ui:{searchBtn:".search-btn"},regions:{
paneRegion:".pane-region",autoMatchDropdownRegion:".auto-match-dropdown-region"},events:s.a.extend({"click .auto-match-agent":"hide","click .match-result":"hide","click .search-options-btn":"onSearchOptionsClick","click .cancel-btn":"onCancelClick","click .search-btn":"onSearchClick","submit #fix-incorrect-match-form":"onSearchSubmit"},c.a.prototype.events),onlyAfterRender:["showPane","updateSearchBtn"],initialize:function(){c.a.prototype.initialize.apply(this,arguments),
h.a.prototype.setupAgents.apply(this),f.a.prototype.setupResults.apply(this),this.showPane("results")},serializeData:function(){return{location:this.model.getLocation(),showNavigation:!this.model.isPlexMusicItem()}},updateSearchBtn:function(e){this.ui.searchBtn.toggleClass("disabled","form"!==e)},fetchResults:function(e){var t=s.a.reduce(e.serializeArray(),function(e,t){return e[t.name]=t.value,e},{manual:1});this.model.results.fetch({reset:!0,data:t,processData:!0,timeout:0})},bindings:{
".modal-title-text":{modelAttribute:"guid",formatter:function(e){return/com\.plexapp\.agents\.none\:\/\//.test(e)?n.i(u.default)("Match"):n.i(u.default)("Fix Incorrect Match")}}},onRender:function(){c.a.prototype.onRender.apply(this,arguments),this.autoMatchDropdownRegion.show(new d.a({model:this.model,collection:this.model.agentsProxy}))},onPaneShow:function(e){this.updateSearchBtn(e)},onSearchOptionsClick:function(e){e.preventDefault(),this.showPane("form")},onCancelClick:function(e){
e.preventDefault(),"results"!==this.selectedPane?this.showPane("results"):this.hide()},onSearchClick:function(e){e.preventDefault();var t=l()(e.currentTarget);if(!t.isDisabled()){var n=t.closest("form");this.fetchResults(n),this.showPane("results")}},onSearchSubmit:function(e){e.preventDefault();var t=l()(e.currentTarget);t.find("search-btn").isDisabled()||(this.fetchResults(t),this.showPane("results"))}});t.a=v},function(e,t,n){"use strict";var i=n(3152),a=n.n(i),r=n(44),s=r.a.extend({
template:a.a,initialize:function(e){r.a.prototype.initialize.apply(this,arguments),this.server=e.server},serializeData:function(){return this.server.toJSON()}});t.a=s},function(e,t,n){"use strict";function i(e){return l.a.reduce(e,function(e,t,n){var i=a(t);if(0===n)return e.concat(i);var r=i.length>1;return e.concat({plain:!0,split:r,s:"or"},i)},[])}function a(e){var t=e.match(/(.+) (.+)/);if(t)return a(t[1]).concat({plain:!0,s:"then"}).concat(a(t[2]));var n=e.match(/(.+)\+(\S+)/)
;return n?a(n[1]).concat({plain:!0,s:"+"}).concat(a(n[2])):[{s:l.a.reduce([[/command/,"\u2318"],[/up/,"\u2191"],[/down/,"\u2193"],[/left/,"\u2190"],[/right/,"\u2192"]],function(e,t){return e.replace(t[0],t[1])},e)}]}var r=n(3153),s=n.n(r),o=n(3),l=n.n(o),u=n(62),c=u.a.extend({name:"keyboardShortcutsModal",className:"keyboard-shortcuts-modal modal fade",template:s.a,orderedGroups:[{group:"navigation",label:"Navigation"},{group:"actions",label:"Actions"},{group:"player",label:"Player"}],
initialize:function(e){u.a.prototype.initialize.apply(this,arguments),this.shortcuts=e.shortcuts},serializeData:function(){var e={};return l.a.each(this.shortcuts,function(t){var n=t.group;e[n]||(e[n]=[]),e[n].push(this.humanizeShortcut(t))},this),{groups:l.a.map(this.orderedGroups,function(t){var n=l.a.clone(t);return n.shortcuts=e[t.group],n},this)}},humanizeShortcut:function(e){return e=l.a.clone(e),e.keys=i(e.keys),e}});t.a=c},function(e,t,n){"use strict"
;var i=n(3158),a=n.n(i),r=n(3),s=n.n(r),o=n(13),l=n(64),u=n(44),c=u.a.extend({template:a.a,events:s.a.extend({"click .learn-more":"onLearnMoreClick"},u.a.prototype.events),onRender:function(){u.a.prototype.onRender.apply(this,arguments),n.i(o.a)("metrics").trackView({page:"relayNotification",mode:"modal",action:l.o},{interaction:!1})},onHide:function(e){u.a.prototype.onHide.apply(this,arguments),n.i(o.a)("metrics").trackClick({page:"relayNotification",mode:"modal",action:l.o})},
onLearnMoreClick:function(){n.i(o.a)("metrics").trackClick({page:"relayNotification",mode:"modal",action:l._0})},serializeData:function(){return{serverName:this.options.serverName}}});t.a=c},function(e,t,n){"use strict";function i(e){return e?e.split("\n"):[]}var a=n(3159),r=n.n(a),s=n(62),o=s.a.extend({name:"releaseNotesModal",template:r.a,serializeData:function(){var e=this.model.toJSON();return e.version=e.version.replace(/\-.*/gi,""),e.added=i(e.added),e.fixed=i(e.fixed),e}});t.a=o
},function(e,t,n){"use strict";var i=n(3160),a=n.n(i),r=n(299),s=r.a.extend({name:"selectDeviceModal",template:a.a,serializeData:function(){return{devices:this.collection.toJSON()}}});t.a=s},function(e,t,n){"use strict";var i=n(3161),a=n.n(i),r=n(299),s=r.a.extend({name:"SelectMediaFileModal",template:a.a,serializeData:function(){return{medias:this.model.get("Media")}}});t.a=s},function(e,t,n){"use strict"
;var i=n(3162),a=n.n(i),r=n(3),s=n.n(r),o=n(33),l=n(34),u=n(64),c=n(13),d=n(1639),p=n(62),h=n(353),f=n(1810),v={osx:"mac"},m=p.a.extend({mixins:[h.a],name:"serverDownloadModal",className:"server-download-modal modal modal-lg fade",template:a.a,ui:{downloadBtn:".download-btn",paneTabs:".show-pane-btn",loading:".server-download-loading"},regions:{paneRegion:".pane-region"},events:s.a.extend({"click .show-pane-btn":"onShowPaneClick","click .download-btn":"onDownloadClick"},p.a.prototype.events),
panesModel:"selectedModel",onlyAfterRender:["showPane"],initialize:function(e){var t=this;p.a.prototype.initialize.apply(this,arguments);var n=c.a("appModel");n.get("primaryServer")||this.listenTo(n,"change:primaryServer",function(e,n){n&&n.id&&t.hide()}),this.downloadType=e.downloadType;var i=new d.a([],{server:n.get("cloudServer")});i.populate().done(function(){t.collection=i.get(t.downloadType).get("platforms"),t.paneSetup(),t.render(),t.ui.loading.addClass("hidden")}),
c.a("metrics").trackView({page:l.S,firstRun:!0})},serializeData:function(){return{items:this.collection?this.collection.toJSON():[],selectedPane:this.selectedModel?this.selectedModel.get("id"):null}},selectListItem:function(){var e=this.selectedModel.get("id");this.ui.paneTabs.removeClass("selected"),this.ui.paneTabs.filter('[data-pane="'+e+'"]').addClass("selected")},paneSetup:function(){this.panes=this.collection.reduce(function(e,t){return e[t.get("id")]={constructor:f.a},e},{})
;var e=o.a.platformID,t=v[e]||e;this.selectedModel=this.collection.get(t)||this.collection.first(),this.showPane(this.selectedModel.get("id"))},onRender:function(){p.a.prototype.onRender.apply(this,arguments),this.selectedModel&&this.selectListItem()},onShowPaneClick:function(e){e.preventDefault();var t=this.$(e.currentTarget),n=t.data("pane");this.selectedModel=this.collection.get(n),this.showPane(n),this.selectListItem()},onDownloadClick:function(e){var t=this.selectedModel.get("id")
;c.a("metrics").trackClick({page:l.S,firstRun:!0,action:u._1,platform:this.downloadType,os:t})}});t.a=m},function(e,t,n){"use strict";var i=n(3164),a=n.n(i),r=n(10),s=n.n(r),o=n(3),l=n.n(o),u=n(62),c=u.a.extend({name:"stopMediaModal",className:"stop-media-modal select-modal modal modal-sm fade",template:a.a,ui:{stopMediaBtn:".stop-media-btn",messageContainer:".message-container",message:".message"},events:l.a.extend({"click .stop-media-btn":"onStopMediaClick"},u.a.prototype.events),
initialize:function(){this.promise=s.a.Deferred()},onHide:function(e){u.a.prototype.onHide.apply(this,arguments),this.promise.reject()},onStopMediaClick:function(e){e.preventDefault();var t=this.ui.message.val();this.promise.resolve(t)}});t.a=c},function(e,t,n){"use strict";var i=n(3165),a=n.n(i),r=n(62),s=n(1879),o=r.a.extend({name:"syncStatusModal",template:a.a,regions:{list:".sync-status-list-container"},onRender:function(){r.a.prototype.onRender.apply(this,arguments),this.list.show(new s.a({
collection:this.collection,itemViewOptions:{syncItem:this.model}}))}});t.a=o},function(e,t,n){"use strict";var i=n(3166),a=n.n(i),r=n(18),s=r.a.ItemView.extend({className:"modal-body",template:a.a,events:{"click .try-again-link":"onTryAgainClick"},serializeData:function(){return{status:this.options.status}},onTryAgainClick:function(e){e.preventDefault(),this.triggerMethod("request:state","loading")}});t.a=s},function(e,t,n){"use strict";var i=n(3167),a=n.n(i),r=n(18),s=r.a.ItemView.extend({
className:"convert-location-container form-group",template:a.a,events:{"change select[name=storageLocation]":"onLocationChange"},serializeData:function(){return{disableLocation:!this.model.isNew(),selectedLocationID:this.model.get("locationID"),locations:this.model.section&&this.model.section.get("locations").toJSON()}},onLocationChange:function(e){this.model.set("locationID",parseInt(e.currentTarget.value,10))}});t.a=s},function(e,t,n){"use strict"
;var i=n(3169),a=n.n(i),r=n(3),s=n.n(r),o=n(18),l=n(113),u=o.a.ItemView.extend({className:"convert-target-container form-group",template:a.a,ui:{targetTitleInput:".convert-target-title"},events:{"change select[name=target]":"onTargetChange","keydown input[name=targetTitle]":"onTitleKeyDown","change input[name=targetTitle]":"onTitleChange","change select[name=targetProfile]":"onProfileChange","change select[name=targetQuality]":"onQualityChange"},initialize:function(e){this.targets=e.targets,
this.profiles=e.profiles;var t=this.model.get("Device").profile;this.selectedProfile=t?this.profiles.get(t):this.profiles.findWhere({selected:!0}),this.availableCustomQualities=l.a.getAvailableQualities().reverse();var n=this.model.get("mediaSettings").get("maxVideoBitrate");if(n){var i=l.a.getNearestIndexToBitrate(n);this.selectedCustomQuality=l.a.getQualityByIndex(i)}else this.selectedCustomQuality=s.a.first(this.availableCustomQualities)
;this.model.isNew()||this.model.get("targetTagID")||this.$el.addClass("show-custom-target")},serializeData:function(){return{item:this.model.toJSON(),targets:this.targets.toJSON(),disableTarget:!this.model.isNew(),profiles:this.profiles.toJSON(),selectedProfile:this.selectedProfile.toJSON(),availableCustomQualities:this.availableCustomQualities,selectedCustomQuality:this.selectedCustomQuality}},updateDeviceProfile:function(e){this.model.get("Device").profile=this.selectedProfile.get("title")},
updateMediaSettings:function(e){this.model.get("mediaSettings").set({videoQuality:e.videoQuality,videoResolution:e.videoResolution,maxVideoBitrate:e.bitrate})},onTargetChange:function(e){var t=parseInt(e.currentTarget.value,10);t>-1?(this.model.unset("target"),this.model.set({targetTagID:t,Device:{}}),this.model.get("mediaSettings").restoreDefaults()):(this.model.set("target",this.ui.targetTitleInput.val()),this.model.unset("targetTagID"),this.updateDeviceProfile(this.selectedProfile),
this.updateMediaSettings(this.selectedCustomQuality)),this.$el.toggleClass("show-custom-target",t===-1)},onTitleKeyDown:function(e){190===e.which&&0===e.currentTarget.selectionStart&&e.preventDefault()},onTitleChange:function(e){this.model.set("target",e.currentTarget.value)},onProfileChange:function(e){this.selectedProfile=this.profiles.findWhere({title:e.currentTarget.value}),this.updateDeviceProfile(this.selectedProfile)},onQualityChange:function(e){var t=parseInt(e.currentTarget.value,10)
;this.selectedCustomQuality=l.a.getQualityByIndex(t),this.updateMediaSettings(this.selectedCustomQuality)}});t.a=u},function(e,t,n){"use strict";var i=n(3170),a=n.n(i),r=n(3),s=n.n(r),o=n(18),l=n(4),u=n(49),c=n(203),d=n(239),p=n(333),h=n(355),f=n(933),v=n(1955),m=n(1954),g=o.a.Layout.extend({template:a.a,ui:{submitBtn:".submit-btn"},regions:{policyRegion:".policy-region",targetsRegion:".targets-region",locationRegion:".location-region"},events:{"change input[name=title]":"onTitleChange",
"submit #convert-form":"onSubmit"},initialize:function(e){if(this.playlist=e.playlist,this.targets=e.targets,this.profiles=e.profiles,this.model){this.tempModel=this.model.clone();var t=this.model.get("Location").librarySectionID;if(t){var i=new p.a({key:t},{server:this.model.server,onlyIfCached:!0});s.a.isEmpty(i)||(this.tempModel.section=i)}}else{var a,r=e.item,o=e.items,l=r.has("childrenKey")?r.get("children"):r,u=r.server;if(r.get("isSection"))a=r;else{var f=n.i(d.a)(r);s.a.isEmpty(f)||(a=f)
}this.tempModel=new h.a({title:c.a.title(r,{items:o}),targetTagID:this.targets.first().id,Location:{uri:c.a.uri(l,{items:o})}},{server:u,section:a})}},serializeData:function(){return{conversionItem:this.tempModel.toJSON(),isNew:this.tempModel.isNew(),showRemuxOnlyWarning:this.tempModel.server.get("transcoderVideoRemuxOnly")}},onRender:function(){this.policyRegion.show(new f.a({model:this.tempModel,isSync:!1,isCloudSync:!1})),this.targetsRegion.show(new v.a({model:this.tempModel,
targets:this.targets,profiles:this.profiles})),this.locationRegion.show(new m.a({model:this.tempModel}))},onTitleChange:function(e){this.tempModel.set("title",e.currentTarget.value)},onSubmit:function(e){e.preventDefault();var t=this.ui.submitBtn;if(!t.hasClass("active")){if(t.addClass("active"),!this.tempModel.get("targetTagID")&&!this.tempModel.get("target")){var i=this.tempModel.get("Device");this.tempModel.set("target",n.i(l.default)("Custom: {1}",i.profile))}
var a=this.playlist.addContent(this.tempModel);a.done(this.whenRendered(function(){if(this.model){var e=s.a.omit(this.tempModel.toJSON(),"children");this.model.set(this.model.parse(e))}this.trigger("request:nextState")})),a.fail(this.whenRendered(function(e){var t=e.responseText,n=u.a.parseXML(t),i=n&&n.status;this.trigger("request:state","error",i)}))}}});t.a=g},function(e,t,n){"use strict";var i=n(3171),a=n.n(i),r=n(18),s=r.a.ItemView.extend({className:"modal-body loading-container",
template:a.a});t.a=s},function(e,t,n){"use strict";var i=n(3173),a=n.n(i),r=n(18),s=n(15),o=r.a.ItemView.extend({className:"modal-body",template:a.a,events:{"click .status-link":"onStatusClick"},onStatusClick:function(e){e.preventDefault(),this.triggerMethod("request:nextState"),s.a.trigger("navigate","conversion",{serverID:this.options.server.id})}});t.a=o},function(e,t,n){"use strict";var i=n(3174),a=n.n(i),r=n(18),s=r.a.ItemView.extend({className:"modal-body",template:a.a,events:{
"click .try-again-link":"onTryAgainClick"},onTryAgainClick:function(e){e.preventDefault(),this.triggerMethod("request:state","form")}});t.a=s},function(e,t,n){"use strict";var i=n(3175),a=n.n(i),r=n(18),s=n(13),o=n(30),l=n(113),u=n(1451),c=n(1452),d=r.a.ItemView.extend({className:"sync-quality-container form-group",template:a.a,events:{"change select[name=videoQuality]":"onVideoQualityChange","change select[name=musicQuality]":"onMusicQualityChange",
"change select[name=photoQuality]":"onPhotoQualityChange"},initialize:function(e){var t=n.i(s.a)("appModel").get("settings");this.mediaSettings=this.model.get("mediaSettings"),this.mediaSettings.has("audioBoost")||this.mediaSettings.set("audioBoost",t.get("audioBoost")),this.mediaSettings.has("subtitleSize")||this.mediaSettings.set("subtitleSize",t.get("subtitleSize")),this.initVideoQuality(),this.initMusicQuality(),this.initPhotoQuality()},initVideoQuality:function(){
this.availableVideoQualities=l.a.getAvailableQualities().reverse();var e=n.i(s.a)("appModel").get("settings"),t=this.mediaSettings.get("maxVideoBitrate"),i=t?l.a.getNearestIndexToBitrate(t):e.get(l.a.getSyncQualityAttribute());this.updateVideoQuality(l.a.getQualityByIndex(i))},initMusicQuality:function(){this.availableMusicQualities=u.a.getAvailableQualities().reverse()
;var e=n.i(s.a)("appModel").get("settings"),t=this.mediaSettings.get("musicBitrate"),i=t?u.a.getNearestIndexToBitrate(t):e.get(u.a.getSyncQualityAttribute());this.updateMusicQuality(u.a.getQualityByIndex(i))},initPhotoQuality:function(){this.availablePhotoQualities=c.a.getAvailableQualities().reverse();var e=n.i(s.a)("appModel").get("settings"),t=this.mediaSettings.get("photoQuality"),i=t?c.a.getNearestIndexToQuality(t):e.get(c.a.getSyncQualityAttribute())
;this.updatePhotoQuality(c.a.getQualityByIndex(i))},serializeData:function(){return{typeElement:n.i(o.b)(this.model.get("metadataType")).mediaType,supportsOriginalQuality:this.model.server.supports("syncOriginalQuality"),availableVideoQualities:this.availableVideoQualities,selectedVideoQuality:this.selectedVideoQuality,availableMusicQualities:this.availableMusicQualities,selectedMusicQuality:this.selectedMusicQuality,availablePhotoQualities:this.availablePhotoQualities,
selectedPhotoQuality:this.selectedPhotoQuality}},updateVideoQuality:function(e){this.selectedVideoQuality=e,this.mediaSettings.set({videoQuality:e.videoQuality,videoResolution:e.videoResolution,maxVideoBitrate:e.bitrate})},updateMusicQuality:function(e){this.selectedMusicQuality=e,this.mediaSettings.set({musicBitrate:e.bitrate})},updatePhotoQuality:function(e){this.selectedPhotoQuality=e,this.mediaSettings.set({photoQuality:e.photoQuality,photoResolution:e.photoResolution})},
saveQualityIndex:function(e,t){var i=parseInt(t,10);return n.i(s.a)("appModel").get("settings").save(e.getSyncQualityAttribute(),i),e.getQualityByIndex(i)},onVideoQualityChange:function(e){var t=this.saveQualityIndex(l.a,e.currentTarget.value);this.updateVideoQuality(t)},onMusicQualityChange:function(e){var t=this.saveQualityIndex(u.a,e.currentTarget.value);this.updateMusicQuality(t)},onPhotoQualityChange:function(e){var t=this.saveQualityIndex(c.a,e.currentTarget.value)
;this.updatePhotoQuality(t)}});t.a=d},function(e,t,n){"use strict";var i=n(3176),a=n.n(i),r=n(3),s=n.n(r),o=n(18),l=n(13),u=n(203),c=n(30),d=n(28),p=n(586),h=n(933),f=n(1960),v={video:"movie",audio:"track",photo:"photo"},m=o.a.Layout.extend({template:a.a,ui:{submitBtn:".submit-btn"},regions:{policyRegion:".policy-region",qualityRegion:".quality-region"},events:{"change input[name=title]":"onTitleChange","submit #sync-form":"onSubmit"},initialize:function(e){var t=l.a("appModel")
;if(this.device=e.device,this.model)this.tempModel=this.model.clone();else{var i,a,r=e.item,s=e.items;r.get("isPlaylist")?(i=r,a=v[r.get("playlistType")]):r.get("isMetadataList")?(i=r,a=n.i(c.n)(r.get("firstItemType")).typeString):(i=r.has("childrenKey")?r.get("children"):r,a=n.i(c.n)(r.get("type")).typeString),this.tempModel=new p.a({metadataType:a,title:u.a.title(r,{items:s}),rootTitle:this.getRootTitle(r),machineIdentifier:r.server.id,clientIdentifier:this.device.get("clientIdentifier"),
Location:{uri:u.a.uri(i,{items:s})}},{parent:r.server,server:t.get("user").server,device:this.device})}},serializeData:function(){return{syncItem:this.tempModel.toJSON(),isNew:this.tempModel.isNew()}},getRootTitle:function(e){return e.section?e.section.get("title"):e.channel?e.channel.get("title"):e.get("title")},onRender:function(){this.policyRegion.show(new h.a({model:this.tempModel,isSync:!0,isCloudSync:this.device.get("isCloudSync")})),this.qualityRegion.show(new f.a({model:this.tempModel}))
},onTitleChange:function(e){this.tempModel.set("title",e.currentTarget.value)},onSubmit:function(e){e.preventDefault();var t=this.ui.submitBtn;if(!t.hasClass("active")){t.addClass("active");var n=this.tempModel.save();n.done(s.a.bind(function(){if(this.model){var e=this.model.get("version")||0,t=s.a.omit(this.tempModel.toJSON(),"children");t.version=e+1,this.model.set(this.model.parse(t))}},this)),n=n.then(s.a.bind(function(){return d.a.execute("refreshSyncLists",{server:this.tempModel.parent,
silent:!0})},this)),n.done(this.whenRendered(function(){this.trigger("request:nextState")})),n.fail(this.whenRendered(function(){this.trigger("request:state","error")}))}}});t.a=m},function(e,t,n){"use strict";var i=n(3178),a=n.n(i),r=n(18),s=n(15),o=r.a.ItemView.extend({className:"modal-body",template:a.a,events:{"click .status-link":"onStatusClick"},onStatusClick:function(e){e.preventDefault(),this.triggerMethod("request:nextState"),s.a.trigger("navigate","sync",{
serverID:this.options.server.id,deviceID:this.options.device.id})}});t.a=o},function(e,t,n){"use strict";var i=n(3179),a=n.n(i),r=n(3),s=n.n(r),o=n(4),l=n(842),u=n(287),c=n(62),d=n(1911),p=c.a.extend({mixins:[u.a],name:"versionGeneratorMetadataModal",className:"version-generator-metadata-modal modal fade",template:a.a,pageSize:20,scrollThreshold:50,ui:{body:".modal-body",loading:".loading",errorMessage:".error-message"},regions:{listRegion:".list-region"},initialize:function(e){
this.status=this.model.get("status"),this.listModel=e.listModel,this.collection=this.listModel.get("metadataItems"),this.transcodeJobs=e.transcodeJobs,this.pausedSetting=e.pausedSetting,this.handleScroll=s.a.throttle(this.whenRendered(this.onScroll),100)},states:{base:{},loading:{onEnter:function(){this.ui.loading.removeClass("hidden")},onExit:function(){this.ui.loading.addClass("hidden")}},error:{onEnter:function(){this.ui.errorMessage.removeClass("hidden")},onExit:function(){
this.ui.errorMessage.addClass("hidden")}}},bindings:{".generator-title":{modelAttribute:"title"},".generator-items-count":{model:"status",modelAttribute:"itemsCount",formatter:function(e){return 1===e?n.i(o.default)("{1} item",e):n.i(o.default)("{1} items",e)}},".generator-total-size":{model:"status",modelAttribute:"totalSize",formatter:function(e){return e?n.i(l.a)(e):n.i(o.default)("0 files")}},".generator-failure-container":{model:"status",modelAttribute:"failure",manual:!0,
autohide:function(e){return!!e}},".generator-failure-message":{model:"status",modelAttribute:"failure",formatter:function(e){return e}}},populatePage:function(){this.enterState("loading");var e=this.listModel.populateRange({start:0,end:this.listModel.get("populatedRange").end+this.pageSize});return e.done(this.whenRendered(function(){this.enterState("base")})),e.fail(this.whenRendered(function(){this.enterState("error")})),e},onRender:function(){c.a.prototype.onRender.apply(this,arguments),
this.ui.body.on("scroll",this.handleScroll),this.model.fetch(),this.populatePage(),this.listRegion.show(new d.a({collection:this.collection,itemViewOptions:{generator:this.model,transcodeJobs:this.transcodeJobs,pausedSetting:this.pausedSetting}}))},onClose:function(){this.ui.body.off("scroll",this.handleScroll),this.collection.reset()},onScroll:function(){if("error"!==this.currentState){
this.ui.body.prop("scrollHeight")-this.ui.body.innerHeight()-this.ui.body.scrollTop()<this.scrollThreshold&&this.listModel.get("populatedRange").end<this.listModel.get("totalSize")&&this.populatePage()}}});t.a=p},function(e,t,n){"use strict";var i=n(3181),a=n.n(i),r=n(18),s=n(182),o=r.a.ItemView.extend({template:a.a,ui:{poster:".media-poster"},events:{"change input":"onInputChange","click .remove-home-btn":"onRemoveHomeClick","click .remove-friend-btn":"onRemoveFriendClick",
"click .disable-guest-btn":"onGuestDisableClick"},initialize:function(e){this.paneID=e.paneID,this.homeUser=e.homeUser,this.type=e.type,this.isAdmin=e.isAdmin,this.changes={},this.image=new s.a({model:this.model,type:"friend",width:60})},serializeData:function(){var e=!this.model.isNew(),t=this.homeUser&&!this.homeUser.isNew();return{friend:this.model.toJSON(),homeUser:this.homeUser&&this.homeUser.toJSON(),canRemoveFriend:e,canRemoveHomeUser:t&&this.isAdmin,showActions:e||t}},
flushChanges:function(){this.homeUser&&this.homeUser.set(this.changes)},onRender:function(){this.image.setElement(this.ui.poster)},onClose:function(){this.image.close()},onInputChange:function(e){var t=e.currentTarget,n=t.value;"checkbox"===t.type&&(n=t.checked),this.changes[t.name]=n},onRemoveHomeClick:function(e){e.preventDefault(),this.trigger("destroy:homeUser")},onRemoveFriendClick:function(e){e.preventDefault(),this.trigger("destroy:friend")},onGuestDisableClick:function(e){
e.preventDefault(),this.trigger("disable:guest")}});t.a=o},function(e,t,n){"use strict";var i=n(3182),a=n.n(i),r=n(10),s=n.n(r),o=n(18),l=n(1966),u=o.a.Layout.extend({tagName:"ul",className:"list modal-nav-list",template:a.a,ui:{sharedHeader:".shared-list-header"},regions:{ownedServerList:".owned-servers-container",sharedServerList:".shared-servers-container"},events:{"click .change-pane-btn":"onChangePaneClick"},onlyAfterRender:["selectItem","toggleDisabled"],initialize:function(){
this.serverOverviews=this.model.get("serverOverviews"),this.sharedServerShares=this.model.get("serverShares").filterByShared(),this.listenTo(this.sharedServerShares,"reset add remove",this.updateHeaders)},setModel:function(e){this.stopListening(),this.model=e,this.initialize(),this.render()},selectItem:function(e){this.$(".change-pane-btn").removeClass("selected"),this.$('[data-pane-id="'+e+'"]').addClass("selected")},toggleDisabled:function(e){
this.$(".change-pane-btn").toggleClass("disabled",e),this.$(".modal-nav-list-header").toggleClass("disabled",e)},updateHeaders:function(){this.ui.sharedHeader.toggleClass("hidden",!this.sharedServerShares.length)},onRender:function(){this.updateHeaders(),this.ownedServerList.show(new l.a({collection:this.serverOverviews,itemViewOptions:{paneType:"ownedServer"}})),this.sharedServerList.show(new l.a({collection:this.sharedServerShares,itemViewOptions:{paneType:"sharedServer"}}))},
onChangePaneClick:function(e){e.preventDefault();var t=s()(e.currentTarget);if(!t.isDisabled()){var n=t.data("pane"),i=t.data("pane-id"),a={};"ownedServer"===n?a.serverOverview=this.model.get("serverOverviews").get(i):"sharedServer"===n&&(a.serverShare=this.model.get("serverShares").get(i)),this.trigger("change:pane",n,i,a)}}});t.a=u},function(e,t,n){"use strict";var i=n(51),a=n(1967),r=i.a.extend({className:"server-nav-list",itemView:a.a});t.a=r},function(e,t,n){"use strict"
;var i=n(3183),a=n.n(i),r=n(18),s=n(13),o=r.a.ItemView.extend({tagName:"a",className:"btn-gray change-pane-btn disabled",template:a.a,initialize:function(e){this.$el.attr({href:"#","data-pane":e.paneType,"data-pane-id":this.model.id});var t=s.a("appModel"),n=t.get("servers"),i=n.get(this.model.get("machineIdentifier"));i?this.attachServer(i):this.listenTo(n,"add",this.onServerAdd)},serializeData:function(){var e
;return e=this.server&&null!=this.server.get("connected")?this.server.get("connected")?"available":"unavailable":"unknown",{server:this.model.toJSON(),status:e}},attachServer:function(e){this.server=e,this.listenTo(e,"change:connected",this.render)},onServerAdd:function(e){e.id===this.model.get("machineIdentifier")&&(this.attachServer(e),this.render())}});t.a=o},function(e,t,n){"use strict"
;var i=n(3184),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(18),c=n(13),d=n(236),p=n(1971),h=u.a.Layout.extend({template:a.a,ui:{details:".server-details",lastSeenRow:".server-detail-last-seen-row"},regions:{share:".share-details"},events:{"click .server-status-btn":"onServerStatusClick"},initialize:function(e){var t=c.a("appModel");this.paneID=e.paneID,this.serverOverview=e.serverOverview,this.server=t.get("servers").get(this.serverOverview.id);var n=this.model.get("serverShares")
;this.serverShare=n.findWhere({machineIdentifier:this.serverOverview.id}),this.changes={}},serializeData:function(){return{server:this.serverOverview.toJSON()}},flushChanges:function(){var e=this.model.get("serverShares"),t=e.findWhere({machineIdentifier:this.serverOverview.id}),n=this.getServerShareAttributes(this.serverOverview);t?t.set(n):e.add(n)},getServerShareAttributes:function(e){var t=e.get("sections"),n=this.$("#"+e.id+"-section-list"),i=n.find(":checked:visible"),a=[],r={
machineIdentifier:e.id,owned:!0,allLibraries:!1};return i.each(function(){if("all"===this.value)return r.allLibraries=!0,!1;a.push(parseInt(this.value,10))}),r.allLibraries?r.numLibraries=t.length:r.numLibraries=a.length,r.Section=t.map(function(e){var t=e.toJSON();return t.shared=r.allLibraries||s.a.contains(a,t.id),t}),r},bindings:{".server-title":{model:"serverOverview",modelAttribute:"name"},".server-status-btn":{model:"server",modelAttribute:"connected",manual:!0,formatter:function(e,t){
t.removeClass("unknown available unauthorized unavailable"),null==e?t.addClass("unknown"):e?t.addClass("available"):this.server.get("unauthorized")?t.addClass("unauthorized"):t.addClass("unavailable")}},".server-detail-version":{model:"server",modelAttribute:"shortVersion"},".server-detail-last-seen":{model:"serverShare",modelAttribute:"lastSeenAt",formatter:function(e){var t=n.i(d.a)(e);return this.ui.lastSeenRow.toggleClass("hidden",!t),t}},".server-detail-address":{model:"serverOverview",
modelAttribute:"address",formatter:function(e){if(e)return e;var t=this.server.get("activeConnection");return t?t.address:void 0}},".server-detail-port":{model:"serverOverview",modelAttribute:"port",formatter:function(e){if(e)return e;var t=this.server.get("activeConnection");return t?t.port:void 0}}},onRender:function(){this.share.append(new p.a({model:this.model,serverOverview:this.serverOverview,itemViewOptions:this.itemViewOptions}))},onServerStatusClick:function(e){e.preventDefault()
;var t=l()(e.currentTarget);t.toggleClass("active"),this.ui.details.toggleClass("transition-out",!t.hasClass("active"))}});t.a=h},function(e,t,n){"use strict";var i=n(3185),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(18),c=n(13),d=n(154),p=n(112),h=n(508),f=n(729),v=(n.n(f),u.a.ItemView.extend({className:"form-horizontal",template:a.a,filters:{contentRating:{sectionTypes:["movie","show"],presets:{movie:["G","PG","PG-13","R","NC-17","None"],
show:["TV-Y","TV-Y7","TV-G","TV-PG","TV-14","TV-MA","None"]}},label:{sectionTypes:["movie","show","artist"]}},filterByType:{movie:"filterMovies",show:"filterTelevision",artist:"filterMusic"},ui:{tagInputs:".tag-input-hidden"},events:{"change input":"onInputChange"},initialize:function(e){this.paneID=e.paneID,this.type=e.type;var t=c.a("appModel"),n=t.get("user");this.hasContentFilterFeature=n.get("features").get(p.d),this.plexPassUrl=n.server.get("plexPassUrl"),this.changes={}},
serializeData:function(){return{user:this.model.toJSON(),hasContentFilterFeature:this.hasContentFilterFeature,plexPassUrl:this.plexPassUrl,moviesIcon:d.a.get("movies").sectionTypeIcon,showsIcon:d.a.get("tv").sectionTypeIcon,musicIcon:d.a.get("music").sectionTypeIcon}},loadPresets:function(){s.a.each(this.filters,function(e,t){s.a.isEmpty(e.presets)||s.a.each(e.presets,function(e,n){var i=this.getSelectizeInputByFilterName(t,n),a=s.a.map(e,function(e){return{title:e,key:e}});i.addOption(a)},this)
},this)},loadSections:function(){var e=c.a("appModel"),t=e.get("servers"),n=this.model.get("serverShares"),i=n.filter(function(e){return e.isActive()&&e.get("owned")}),a=s.a.compact(s.a.map(i,function(e){return t.get(e.get("machineIdentifier"))}));s.a.each(a,function(e){if(e.get("connected")){var t=e.get("sections");t.populate().done(s.a.bind(function(){this.loadFilters(t)},this))}},this)},loadFilters:function(e){e.each(function(e){var t=e.get("type");s.a.each(this.filters,function(n,i){
s.a.contains(n.sectionTypes,t)&&this.loadFilterOptions(e,i)},this)},this)},loadFilterOptions:function(e,t){var n=new h.a({filter:t,filterType:"string"},{server:e.server,section:e}),i=n.get("options");i.populate().done(s.a.bind(function(){this.getSelectizeInputByFilterName(t,e.get("type")).addOption(i.toJSON())},this))},getSelectizeInputByFilterName:function(e,t){var n="#filter-"+t+"-"+e;return this.$(n)[0].selectize},resetAllPlaceholders:function(){var e=[];s.a.each(this.filters,function(t){
e=s.a.union(e,t.sectionTypes)}),s.a.each(e,function(e){var t=this.model.get(this.filterByType[e]);this.resetPlaceholders(e,{restore:s.a.isEmpty(t)})},this)},resetPlaceholders:function(e,t){t||(t={}),this.$("input[data-section-type="+e+"]").each(function(){var e=t.restore?this.placeholder:"";e?(this.selectize.settings.placeholder=e,this.selectize.updatePlaceholder()):this.selectize.$control_input.attr("placeholder","")})},flushChanges:function(){this.model.set(this.changes)},onRender:function(){
if(!this.hasContentFilterFeature)return void this.$el.addClass("no-plex-pass");this.ui.tagInputs.selectize({plugins:["remove_button"],create:!0,labelField:"title",valueField:"title",sortField:"title",searchField:["title"]}),this.resetAllPlaceholders(),this.loadSections(),this.loadPresets()},onInputChange:function(e){var t=e.currentTarget,n=l()(t),i=t.value,a=n.data("filter"),r=n.data("sectionType");if(this.hasContentFilterFeature||"allowChannels"===t.name){if(a){
var o=this.changes[t.name]||this.model.get(t.name)||{};i?o[a]=i:o.hasOwnProperty(a)&&delete o[a],this.resetPlaceholders(r,{restore:s.a.isEmpty(o)}),i=o}else"checkbox"===t.type&&(i=t.checked);this.changes[t.name]=i}}}));t.a=v},function(e,t,n){"use strict";var i=n(3186),a=n.n(i),r=n(3),s=n.n(r),o=n(18),l=n(154),u=o.a.ItemView.extend({tagName:"li",className:"share-section-list-item",template:a.a,initialize:function(e){this.serverShare=e.serverShare},serializeData:function(){var e={
section:this.model.toJSON(),typeIcon:l.a.get(this.model.get("type")).sectionTypeIcon,isChecked:!1};if(this.serverShare&&!this.serverShare.get("allLibraries")){var t=this.serverShare.get("Section");e.isChecked=!!s.a.findWhere(t,{id:this.model.id,shared:!0})}return e}});t.a=u},function(e,t,n){"use strict";var i=n(3187),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(18),c=n(1970),d=u.a.CompositeView.extend({className:"share-server-container",template:a.a,itemView:c.a,
itemViewContainer:".share-section-list",ui:{list:".share-section-list"},events:{"change input[name=share-all-libraries-cb]":"onAllLibrariesChange"},initialize:function(e){s.a.bindAll(this,"render"),this.serverOverview=e.serverOverview,this.collection=this.serverOverview.get("sections");var t=this.model.get("serverShares");this.serverShare=t.findWhere({machineIdentifier:this.serverOverview.id});var n=[];n.push(this.serverOverview.populate()),this.serverShare&&(this.itemViewOptions={
serverShare:this.serverShare},this.serverShare.isNew()||n.push(this.serverShare.populate())),this.listPromise=l.a.when.apply(l.a,n),"pending"===this.listPromise.state()&&this.listPromise.always(this.render)},serializeData:function(){var e=this.listPromise.state(),t=!this.serverShare&&this.model.isNew(),n=this.serverShare&&this.serverShare.get("allLibraries");return{server:this.serverOverview.toJSON(),isPending:"pending"===e,hasFailed:"rejected"===e,
hasSections:!!this.serverOverview.get("sections").length,allLibraries:t||n}},onAllLibrariesChange:function(e){this.ui.list.toggleClass("show-libraries",!e.currentTarget.checked)}});t.a=d},function(e,t,n){"use strict";var i=n(3188),a=n.n(i),r=n(3189),s=n.n(r),o=n(3),l=n.n(o),u=n(10),c=n.n(u),d=n(18),p=n(13),h=n(4),f=n(236),v=n(154),m=d.a.ItemView.extend({template:a.a,ui:{details:".server-details"},events:{"click .server-status-btn":"onServerStatusClick",
"click .leave-server-btn":"onLeaveServerClick"},initialize:function(e){this.paneID=e.paneID,this.serverShare=e.serverShare,this.serverShare.populate();var t=p.a("appModel"),n=t.get("servers"),i=n.get(this.serverShare.get("machineIdentifier"));i?this.attachServer(i):this.listenTo(n,"add",this.onServerAdd)},flushChanges:function(){},attachServer:function(e){this.server=e,this.listenTo(e,"change:connected",this.render)},bindings:{".server-title":{model:"serverShare",modelAttribute:"name"},
".server-status-btn":{model:"server",modelAttribute:"connected",manual:!0,formatter:function(e,t){t.removeClass("unknown available unauthorized unavailable"),null==e?t.addClass("unknown"):e?t.addClass("available"):this.server.get("unauthorized")?t.addClass("unauthorized"):t.addClass("unavailable")}},".server-detail-version":{model:"server",modelAttribute:"shortVersion"},".server-detail-last-seen":{model:"serverShare",modelAttribute:"lastSeenAt",formatter:function(e){return n.i(f.a)(e)}},
".server-detail-address":{model:"server",modelAttribute:"activeConnection",formatter:function(e){return e&&e.address}},".server-detail-port":{model:"server",modelAttribute:"activeConnection",formatter:function(e){return e&&e.port}},".server-restriction-allow-sync":{model:"serverShare",modelAttribute:"allowSync",manual:!0,autohide:!0},".share-section-list":{model:"serverShare",modelAttribute:"Section",isHtml:!0,formatter:function(e){var t
;return e.length||"pending"!==this.serverShare.populatePromise.state()?(t="",l.a.each(l.a.where(e,{shared:!0}),function(e){var n={section:e,typeIcon:v.a.get(e.type).sectionTypeIcon};t+=s()(n)})):t=s()({section:{title:n.i(h.default)("Loading...")},typeIcon:"hidden"}),t}}},onServerAdd:function(e){e.id===this.serverShare.get("machineIdentifier")&&(this.attachServer(e),this.unbindFromModel(),this.bindToModel())},onServerStatusClick:function(e){e.preventDefault();var t=c()(e.currentTarget)
;t.toggleClass("active"),this.ui.details.toggleClass("transition-out",!t.hasClass("active"))},onLeaveServerClick:function(e){e.preventDefault(),this.trigger("destroy:serverShare",this.serverShare)}});t.a=m},function(e,t,n){"use strict";var i=n(3190),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(18),c=n(28),d=u.a.ItemView.extend({template:a.a,focusDelay:200,validationDelay:500,ui:{existingGroup:".existing-user-group",existingBtn:".add-existing-user-btn",restrictedGroup:".restricted-user-group",
restrictedBtn:".add-restricted-user-btn"},events:{"keyup input":"onInputChange","change input":"onInputChange","click .add-existing-user-btn":"onAddExistingUserClick","click .add-restricted-user-btn":"onAddRestrictedUserClick"},initialize:function(e){this.paneID=e.paneID,this.type=e.type,this.homeUser=e.homeUser,this.changes={},this.validate=s.a.debounce(this.validate,500)},serializeData:function(){return{type:this.type}},flushChanges:function(){this.model.set(this.changes),
this.homeUser&&this.homeUser.set(this.changes)},focusInput:function(){var e;e=this.changes.restricted?this.$("[name=title]"):this.$("[name=username]"),e.removeClass("hidden"),e.focus()},validate:function(e){if(e){var t=c.a.execute("validateUsername",{username:e,server:this.model.server});t.done(s.a.bind(function(){this.$el.addClass("is-valid-username"),this.$el.removeClass("is-invalid-username")},this)),t.fail(s.a.bind(function(e,t){this.$el.removeClass("is-valid-username"),
this.$el.addClass("is-invalid-username"),this.trigger("change:errorMessage",t)},this))}},onRender:function(){"friend"===this.type&&setTimeout(s.a.bind(this.focusInput,this),this.focusDelay)},onInputChange:function(e){var t=e.currentTarget,n=t.name,i=t.value;i!==this.changes[n]&&(this.changes[n]=i,this.trigger("change:errorMessage",""),this.trigger("enable:submit",!!i),"username"===n&&this.validate(i))},onAddExistingUserClick:function(e){e.preventDefault();var t=l()(e.currentTarget)
;t.isDisabled()||(t.addClass("hidden"),this.ui.restrictedGroup.addClass("disabled"),this.ui.restrictedBtn.addClass("disabled"),this.focusInput())},onAddRestrictedUserClick:function(e){e.preventDefault();var t=l()(e.currentTarget);t.isDisabled()||(this.changes.restricted=!0,t.addClass("hidden"),this.ui.existingGroup.addClass("disabled"),this.ui.existingBtn.addClass("disabled"),this.focusInput())}});t.a=d},function(e,t,n){"use strict";var i=n(3193),a=n.n(i),r=n(296),s=r.a.extend({
className:"user-select-alert-bar",template:a.a});t.a=s},function(e,t,n){"use strict";var i=n(3194),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(18),c=n(13),d=n(4),p=n(15),h=n(33),f=n(28),v=n(936),m=n(935),g=u.a.Layout.extend({className:"user-select-modal-pin-container",template:a.a,ui:{digitContainer:".pin-digit-container",input:".pin-input",digits:".pin-digit",loading:".loading",removeBtn:".remove-btn",saveBtn:".save-btn"},regions:{userList:".user-select-list"},events:{
"keydown input":"onKeyDown","input input":"onInput","keyup input":"onKeyUp","focus input":"onFocus","blur input":"onBlur","change input":"onChange","animationend .pin-input-container":"onInputsAnimationEnd","webkitAnimationEnd .pin-input-container":"onInputsAnimationEnd","oAnimationEnd .pin-input-container":"onInputsAnimationEnd","click .back-btn":"onBackClick","click .remove-btn":"onRemoveClick","submit #pin-form":"onSubmit","click .pin-digit":"onPINClick","keydown .save-btn":"onSaveKeyDown"},
onlyAfterRender:["confirmUser"],initialize:function(e){var t=c.a("appModel");this.isForced=e.isForced,this.isEditing=e.isEditing,this.isEditWarning=e.isEditWarning,this.showBackButton=e.showBackButton,this.focusDelay=e.focusDelay,this.user=t.get("user"),this.isEditConfirmation=this.isEditing&&this.model.get("protected")&&!this.model.get("restricted")},serializeData:function(){return{isEditing:this.isEditing&&!this.isEditConfirmation,isEditWarning:this.isEditWarning,
isEditConfirmation:this.isEditConfirmation,hasCurrentPIN:this.model.get("protected"),showBackButton:this.showBackButton}},focusInput:function(){this.ui.input.val(""),this.ui.input.focus()},getPIN:function(){return this.ui.input.val()},editPIN:function(e){if(!this.ui.saveBtn.isDisabled()){this.ui.saveBtn.addClass("disabled");this.savePIN(e).fail(this.whenRendered(function(){this.ui.saveBtn.removeClass("disabled"),p.a.trigger("show:alert",{type:"error",
message:n.i(d.default)("This PIN could not be saved.")})}))}},removePIN:function(){if(!this.ui.removeBtn.isDisabled()){this.ui.removeBtn.addClass("disabled");this.savePIN("").fail(this.whenRendered(function(){this.ui.removeBtn.removeClass("disabled"),p.a.trigger("show:alert",{type:"error",message:n.i(d.default)("This PIN could not be removed.")})}))}},savePIN:function(e){this.ui.loading.removeClass("hidden");var t={pin:e};this.currentPin&&(t.currentPin=this.currentPin);var n=this.model.save(t,{
wait:!0});return n.done(s.a.bind(function(){this.model.unset("pin"),this.model.unset("currentPin"),this.model.set("protected",!!e),this.model.id===this.user.id&&(e?this.user.set("pin",this.user.hashPIN(e)):this.user.unset("pin"),this.user.set("home",this.user.hasHome())),this.trigger("resolve",e),e&&this.user.get("homeUsers").length<2&&p.a.trigger("show:modal",new m.a({type:"pin"}))},this)),n.always(this.whenRendered(function(){this.ui.loading.addClass("hidden")})),n},confirmUser:function(e){
this.ui.loading.removeClass("hidden");var t=f.a.execute("switchUser",{homeUser:this.model,pin:e,allowGuestLock:!this.isEditing});t.done(s.a.bind(function(){this.isEditing?(this.isEditConfirmation=!1,this.currentPin=e,this.render()):this.trigger("resolve",e)},this)),t.fail(this.whenRendered(function(){this.ui.digitContainer.addClass("shake"),this.ui.input.val(""),this.focusInput()})),t.always(this.whenRendered(function(){this.ui.loading.addClass("hidden")}))},renderPIN:function(){
var e=this.getPIN(),t=e.length,n=this.isEditing&&!this.isEditConfirmation;this.ui.digits.each(function(i,a){var r=e[i]||"";r&&!n&&(r="&bull;"),l()(a).toggleClass("current",i===t).html(r)})},onRender:function(){this.userList.show(new v.a({model:this.model,disabled:!0})),h.a.mobile||setTimeout(s.a.bind(this.focusInput,this),this.focusDelay)},onKeyDown:function(e){var t=e.which;if(13!==t&&8!==t&&46!==t&&229!==t){var n=t>=48&&t<=57,i=t>=96&&t<=105;n||i||e.preventDefault()}},onInput:function(e){
var t=l()(e.currentTarget),n=t.val(),i=n.length,a=n.charAt(n.length-1);if(!/[0-9]/.test(a))return void t.val(n.slice(0,i-1));4===n.length&&(!this.isEditing||this.isEditConfirmation?(t.blur(),this.confirmUser(this.getPIN())):this.ui.saveBtn.focus())},onKeyUp:function(e){this.renderPIN()},onFocus:function(e){this.renderPIN()},onBlur:function(e){this.renderPIN(),this.ui.digits.removeClass("current")},onChange:function(e){this.renderPIN()},onInputsAnimationEnd:function(e){
l()(e.currentTarget).removeClass("shake")},onBackClick:function(e){e.preventDefault(),this.trigger("change:pane","users")},onRemoveClick:function(e){e.preventDefault(),this.removePIN()},onSubmit:function(e){e.preventDefault();var t=this.getPIN();if(4!==t.length)return void p.a.trigger("show:alert",{type:"error",message:n.i(d.default)("Please enter a 4 digit PIN.")});this.isEditing&&!this.isEditConfirmation?this.editPIN(t):this.confirmUser(t)},onSaveKeyDown:function(e){var t=e.which
;8!==t&&46!==t||(e.preventDefault(),this.ui.input.val(""),this.focusInput())},onPINClick:function(){this.focusInput()}});t.a=g},function(e,t,n){"use strict";var i=n(51),a=n(936),r=i.a.extend({tagName:"ul",className:"tile-list user-select-list",itemView:a.a});t.a=r},function(e,t,n){"use strict";var i=n(3196),a=n.n(i),r=n(3),s=n.n(r),o=n(18),l=n(13),u=n(28),c=n(135),d=n(225),p=n(760),h=n(1976),f=o.a.Layout.extend({className:"user-select-modal-users-container",template:a.a,ui:{loading:".loading"},
regions:{body:".modal-body"},onlyAfterRender:["onUserPopulated","onHomeUsersPopulated","onError"],initialize:function(e){var t=l.a("appModel");this.user=t.get("user"),this.homeUsers=this.user.get("homeUsers"),this.user.server.populate().done(s.a.bind(this.onUserPopulated,this)).fail(s.a.bind(this.onError,this))},showList:function(e){this.ui.loading.addClass("hidden"),this.body.show(new h.a({collection:e})),this.listenTo(this.body.currentView,"itemview:selectUser",this.onUserSelect)},
selectUser:function(e){this.ui.loading.removeClass("hidden");var t=u.a.execute("switchUser",{homeUser:e,switchUser:!0,allowGuestLock:!0});t.done(s.a.bind(function(){this.trigger("resolve")},this)),t.always(this.whenRendered(function(){this.ui.loading.addClass("hidden")}))},onUserPopulated:function(){this.homeUsers.fetch().done(s.a.bind(this.onHomeUsersPopulated,this)).fail(s.a.bind(this.onError,this))},onHomeUsersPopulated:function(e){u.a.execute("lockUser").always(s.a.bind(function(){
1===e.length&&e.first().get("protected")?this.trigger("change:pane","pin",{model:e.first(),showBackButton:!1,focusDelay:0}):this.showList(e)},this))},onError:function(){var e=c.a.getActiveUser();if(e&&e.get("home")){var t={id:e.id,title:e.get("title"),protected:!!e.get("pin")};this.showList(new p.a([t],{server:this.user.server,parent:this.user}))}else this.user.set("lockState",d.a.lockStates.UNLOCKED),this.trigger("resolve")},onUserSelect:function(e,t){
t.get("protected")?this.trigger("change:pane","pin",{model:t,showBackButton:!0,focusDelay:0}):this.selectUser(t)}});t.a=f},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(3197),s=n.n(r),o=n(3),l=n.n(o),u=n(18),c=n(0),d=(n.n(c),n(39)),p=n.n(d),h=n(11),f=n(13),v=n(107),m=n(15),g=n(572),y=n(561),b=n(89),S=n(354),I=n(2483),M=n(463),C=n(2545),w=n(1979),D=n(1846),P=a()(I.a,{}),T=a()(C.a,{}),x=u.a.Layout.extend({className:"nav-bar",template:s.a,sectionSearchDelay:500,ui:{backBtn:".back-btn",
plexPassBtn:".plex-pass-btn",tvModeBtn:".tv-mode-btn",exitFullscreenBtn:".exit-fullscreen-btn",activityBtn:".activity-btn",activityBadge:".activity-badge",search:".nav-bar-search-container",modalContainer:".modal-container"},regions:{navDropdown:".nav-bar-right",playerDropdown:".nav-bar-right",tvModeButton:".nav-bar-right"},events:{"click .back-btn":"onBackClick","click .tv-mode-btn":"onTVModeClick","click .exit-fullscreen-btn":"onExitFullscreenClick","click .activity-btn":"onActivityClick",
"click .plex-pass-btn":"onPlexPassClick"},modelEvents:{"change:history":"onHistoryChange","change:primaryServer":"onPrimaryServerChange"},onlyAfterRender:["onSignedInChange","onHistoryChange","onPrimaryServerChange","onActivityChange","onFullscreenChange"],initialize:function(){if(l.a.bindAll(this,"onPlexPassModalClose"),this.isPlexPassModalOpen=!1,this.listenTo(this.model.get("user"),{"change:signedIn":this.onSignedInChange,"change:homeSize":this.onHomeSizeChange}),
this.listenTo(m.a,"change:language",this.render),this.setupServerListeners(),n.i(y.b)()){var e=f.a("fullscreenManager");this.unsubscribeFullscreen=e.subscribe(this.onFullscreenChange.bind(this))}},setupServerListeners:function(){this.primaryServer&&(this.stopListening(this.primaryServer),this.stopListening(this.sessions),this.stopListening(this.transcodeJobs),this.sessions=null,this.transcodeJobs=null),this.primaryServer=this.model.get("primaryServer"),
this.primaryServer&&(this.sessions=this.primaryServer.get("desktop").get("sessions"),this.transcodeJobs=new S.a([],{server:this.primaryServer,persistInCache:!0}),this.listenTo(this.sessions,"reset add remove",this.onActivityChange),this.listenTo(this.transcodeJobs,"reset add remove",this.onActivityChange))},serializeData:function(){return{plexPassUrl:this.model.get("user").server.get("plexPassUrl"),hasHistory:this.hasHistory(),canGoPremium:this.canGoPremium(),isKonvergo:n.i(y.a)(),
isOnDashboard:this.isOnDashboard(),isFullscreen:this.isFullscreen(),showActivity:!!this.primaryServer,activityCount:this.getActivityCount()}},mountReact:function(){p.a.render(a()(h.a,{store:f.a("appStore")},void 0,P),this.ui.search[0]),p.a.render(a()(h.a,{store:f.a("appStore")},void 0,a()("div",{},void 0,a()(M.a,{metricsProperties:{context:b.h},isOpen:this.isPlexPassModalOpen,onModalClose:this.onPlexPassModalClose}),T)),this.ui.modalContainer[0])},unmountReact:function(){
this.isRendered&&(p.a.unmountComponentAtNode(this.ui.search[0]),p.a.unmountComponentAtNode(this.ui.modalContainer[0]))},getActivityCount:function(){return(this.sessions?this.sessions.length:0)+(this.transcodeJobs?this.transcodeJobs.length:0)},hasHistory:function(){return this.model.get("history").length>1},canGoPremium:function(){return this.model.get("user").get("canGoPremium")},showOrHidePremiumNotice:function(){this.ui.plexPassBtn.toggleClass("hidden",!this.canGoPremium())},
isOnDashboard:function(){var e=window.location.hash;return""===e||"#"===e||/\/dashboard($|\?)/.test(e)},isFullscreen:function(){if(n.i(y.a)()){return f.a("fullscreenManager").isFullscreen()}return!1},onBeforeRender:function(){this.unmountReact()},onRender:function(){this.mountReact(),this.playerDropdown.append(new D.a),this.navDropdown.append(new w.a({model:this.model})),this.$el.tooltip({selector:'[data-toggle="tooltip"]',container:"body",placement:"bottom"})},onClose:function(){
this.unmountReact(),this.unsubscribeFullscreen&&this.unsubscribeFullscreen()},onSignedInChange:function(e,t){this.showOrHidePremiumNotice()},onHistoryChange:function(e,t){this.ui.backBtn.toggleClass("hidden",!this.hasHistory()),n.i(y.a)()&&this.ui.tvModeBtn.toggleClass("hidden",!this.isOnDashboard()||this.isFullscreen())},onPrimaryServerChange:function(e,t){this.setupServerListeners();var n=!!t;this.ui.activityBtn.toggleClass("hidden",!n),this.onActivityChange(),this.mountReact()},
onActivityChange:function(){var e=this.getActivityCount();this.ui.activityBtn.parent("li").toggleClass("active",!!e),this.ui.activityBadge.toggleClass("hidden",!e),this.ui.activityBadge.text(e)},onBackClick:function(e){e.preventDefault(),m.a.trigger("navigate:back")},onTVModeClick:function(e){e.preventDefault(),n.i(g.a)("tv")},onExitFullscreenClick:function(e){e.preventDefault(),v.a.set("main.fullscreen",!1)},onActivityClick:function(e){e.preventDefault(),
this.transcodeJobs&&this.transcodeJobs.length?m.a.trigger("navigate","conversion"):this.sessions&&this.sessions.length?m.a.trigger("navigate","nowPlaying"):m.a.trigger("navigate","activity")},onPlexPassClick:function(e){e.preventDefault(),this.isPlexPassModalOpen=!0,this.mountReact()},onPlexPassModalClose:function(){this.isPlexPassModalOpen=!1,this.mountReact()},onHomeSizeChange:function(){this.showOrHidePremiumNotice()},onFullscreenChange:function(e){this.ui.tvModeBtn.toggleClass("hidden",e),
this.ui.exitFullscreenBtn.toggleClass("hidden",!e)}});t.a=x},function(e,t,n){"use strict";var i=n(3198),a=n.n(i),r=n(3),s=n.n(r),o=n(18),l=n(15),u=n(28),c=n(182),d=n(225),p=o.a.ItemView.extend({id:"nav-dropdown",tagName:"li",className:"nav-dropdown dropdown",template:a.a,ui:{poster:".dropdown-poster-toggle .media-poster",dropdownMenu:".dropdown-menu",switchUserItem:".switch-user-item",totalBadge:".total-badge",invitesBadge:".invites-badge",announcementsBadge:".announcements-badge",
announcementsItem:".announcements-item"},events:{"click .switch-user-btn":"onSwitchUserClick","click .users-btn":"onUsersClick","click .sign-in-btn":"onSignInClick","click .sign-out-btn":"onSignOutClick"},onlyAfterRender:["onSignedInChange","updateBadges"],bindings:{".username-header":{model:"user",modelAttribute:"title"}},initialize:function(){this.user=this.model.get("user"),this.invites=this.user.get("desktop").get("invites"),this.image=new c.a({model:this.user,type:"friend",width:34})
;var e=s.a.debounce(this.updateBadges),t=s.a.debounce(this.onSignedInChange);this.listenTo(this.user,{"change:signedIn":t,"change:username":this.onUsernameChange,"change:home":this.onHomeChange}),this.listenTo(this.user.get("desktop"),{"change:announcements.reset":e,"change:announcements.update":e,"change:announcements.change:read":e}),this.listenTo(this.invites,"reset add remove",e)},serializeData:function(){var e=this.invites.length,t=this.getUnreadAnnouncementsCount();return{
signedIn:this.user.get("signedIn"),isRestricted:this.user.get("restricted"),home:this.user.get("home"),isFullUser:this.user.isFullUser(),invitesCount:e,unreadAnnouncementsCount:t,totalCount:e+t,appsUrl:this.user.server.get("appsUrl"),helpUrl:this.user.server.get("helpUrl"),defaultTarget:"_self"}},getUnreadAnnouncementsCount:function(){return this.user.get("desktop").get("announcements").where({read:!1}).length},updateBadges:function(){
var e=this.invites.length,t=this.getUnreadAnnouncementsCount(),n=e+t;this.ui.totalBadge.toggleClass("hidden",!n),this.ui.totalBadge.text(n),this.ui.invitesBadge.toggleClass("hidden",!e),this.ui.invitesBadge.text(e),this.ui.announcementsBadge.toggleClass("hidden",!t),this.ui.announcementsBadge.text(t)},onRender:function(){this.image.setElement(this.ui.poster)},onClose:function(){this.image.close()},onSignedInChange:function(e,t){this.ui.dropdownMenu.toggleClass("signed-in",!!t),
this.ui.announcementsItem.toggleClass("hidden",!!e.get("restricted"))},onUsernameChange:function(e,t){this.ui.dropdownMenu.toggleClass("full-user",!!t)},onHomeChange:function(e,t){this.ui.switchUserItem.toggleClass("hidden",!e.get("home"))},onSwitchUserClick:function(e){e.preventDefault(),this.user.set("lockState",d.a.lockStates.LOCKED)},onUsersClick:function(e){e.preventDefault(),l.a.trigger("navigate","users")},onSignInClick:function(e){e.preventDefault(),l.a.trigger("navigate","login")},
onSignOutClick:function(e){e.preventDefault(),u.a.execute("signOut").done(s.a.bind(function(){l.a.trigger("navigate:refresh:dashboard")},this))}});t.a=p},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),s=(n.n(r),n(39)),o=n.n(s),l=n(11),u=n(13),c=n(81),d=n(434),p=n(1029),h=n(2411),f=n(3039),v=n.n(f),m=n(2682),g=n.n(m),y=d.a.extend({template:v.a,className:g.a.container,mountReact:function(){var e=n.i(u.a)("appStore");o.a.render(a()(l.a,{store:e},void 0,a()(p.a,{component:h.a,playerType:c.b
})),this.el)}});t.a=y},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),s=(n.n(r),n(39)),o=n.n(s),l=n(11),u=n(13),c=n(81),d=n(434),p=n(1029),h=n(2476),f=n(3040),v=n.n(f),m=d.a.extend({template:v.a,className:"react-player-container",mountReact:function(){var e=n.i(u.a)("appStore");o.a.render(a()(l.a,{store:e},void 0,a()(p.a,{component:h.a,playerType:c.c})),this.el)}});t.a=m},function(e,t,n){"use strict";var i=n(3206),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(18),c=u.a.ItemView.extend({
className:"player-slider",template:a.a,dragging:!1,ui:{thumb:".player-slider-thumb",track:".player-slider-track",progress:".player-slider-progress"},events:{mousedown:"onMouseDown",touchstart:"onTouchStart"},onlyAfterRender:["displayValue"],initialize:function(e){s.a.bindAll(this,"onMouseMove","onMouseUp","onTouchMove","onTouchEnd"),this.$document=l()(document),this.currentValue=e.value||0},startDragging:function(){this.dragging=!0,this.$el.addClass("active")},stopDragging:function(){
this.dragging=!1,this.$el.removeClass("active"),this.triggerMethod("dragComplete")},updateForPosition:function(e,t){var n=this.getValueForPosition(e);this.setValue(n)&&this.displayValue(n,t)},getValueForPosition:function(e){var t=this.ui.track,n=e-t.offset().left,i=n/t.width();return i=Math.min(Math.max(i,0),1),i=Math.round(100*i)},setValue:function(e){return this.currentValue=e,this.trigger("change:value",e),!0},displayValue:function(e,t){this.ui.thumb.css("left",e+"%"),
this.ui.progress.css("width",e+"%"),this.$el.data("value",e)},onRender:function(){this.displayValue(this.currentValue)},onClose:function(){this.$document.off("mousemove",this.onMouseMove),this.$document.off("mouseup",this.onMouseUp),this.$document.off("touchmove",this.onTouchMove),this.$document.off("touchend",this.onTouchEnd)},onMouseDown:function(e){e.preventDefault(),this.$document.on("mousemove",this.onMouseMove),this.$document.on("mouseup",this.onMouseUp),this.startDragging(),
this.setValue(this.getValueForPosition(e.pageX))},onTouchStart:function(e){this.$document.on("touchmove",this.onTouchMove),this.$document.on("touchend",this.onTouchEnd),this.startDragging();var t=e.originalEvent.touches[0];t&&this.updateForPosition(t.pageX)},onMouseMove:function(e){e.preventDefault(),this.updateForPosition(e.pageX)},onTouchMove:function(e){e.preventDefault();var t=e.originalEvent.touches[0];t&&this.updateForPosition(t.pageX)},onMouseUp:function(e){e.preventDefault(),
this.$document.off("mousemove",this.onMouseMove),this.$document.off("mouseup",this.onMouseUp),this.updateForPosition(e.pageX),this.stopDragging()},onTouchEnd:function(e){this.$document.off("touchmove",this.onTouchMove),this.$document.off("touchend",this.onTouchEnd);var t=e.originalEvent.touches[0];t&&this.updateForPosition(t.pageX),this.stopDragging()}});t.a=c},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),s=(n.n(r),
n(39)),o=n.n(s),l=n(11),u=n(13),c=n(56),d=n(53),p=n(116),h=n(171),f=n(190),v=n(191),m=n(2252),g=a()(h.a,{}),y=p.a.extend({mountReact:function(){var e=n.i(u.a)("appStore"),t=this.options,i=t.selectedServerID,r=t.selectedProviderID,s=t.key,p=n.i(d.a)(c.f,i),h=n.i(d.a)(c.e,r,p);o.a.render(a()(l.a,{store:e},void 0,g),this.ui.sidebar[0]),o.a.render(a()(l.a,{store:e},void 0,a()(f.a,{machineIdentifier:i},void 0,a()(v.a,{providerEntityID:h},void 0,a()(m.a,{machineIdentifier:i,serverEntityID:p,
providerEntityID:h,metadataKey:s})))),this.ui.page[0])}});t.a=y},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),s=(n.n(r),n(39)),o=n.n(s),l=n(11),u=n(13),c=n(60),d=n(56),p=n(53),h=n(116),f=n(171),v=n(190),m=n(191),g=n(455),y=n(2256),b=a()(f.a,{}),S=h.a.extend({mountReact:function(){
var e=n.i(u.a)("appStore"),t=this.options.selectedServerID,i=this.options.selectedProviderID,r=this.options.params||{},s=r.key,h=void 0===s?"/playlists":s,f=r.type,S=r.sort,I=r.save,M=n.i(p.a)(d.f,t),C=n.i(p.a)(d.e,i,M);o.a.render(a()(l.a,{store:e},void 0,b),this.ui.sidebar[0]),o.a.render(a()(l.a,{store:e},void 0,a()(v.a,{machineIdentifier:t},void 0,a()(m.a,{providerEntityID:C},void 0,a()(g.a,{machineIdentifier:t,serverEntityID:M,providerEntityID:C,directoryKey:h,activeType:f,activeSort:S,
shouldSaveRoute:c.a.parseBoolean(I),component:y.a})))),this.ui.page[0])}});t.a=S},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),s=(n.n(r),n(39)),o=n.n(s),l=n(11),u=n(13),c=n(56),d=n(53),p=n(116),h=n(171),f=n(190),v=n(191),m=n(995),g=a()(h.a,{}),y=p.a.extend({mountReact:function(){var e=n.i(u.a)("appStore"),t=this.options.selectedServerID,i=this.options.selectedProviderID,r=this.options.params||{},s=r.key,p=r.record,h=n.i(d.a)(c.f,t),y=n.i(d.a)(c.e,i,h);o.a.render(a()(l.a,{store:e
},void 0,g),this.ui.sidebar[0]),o.a.render(a()(l.a,{store:e},void 0,a()(f.a,{machineIdentifier:t},void 0,a()(v.a,{providerEntityID:y},void 0,a()(m.a,{machineIdentifier:t,serverEntityID:h,providerEntityID:y,metadataKey:s,record:1===parseInt(p,10)})))),this.ui.page[0])}});t.a=y},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),s=(n.n(r),n(39)),o=n.n(s),l=n(11),u=n(13),c=n(60),d=n(1408),p=n(56),h=n(53),f=n(116),v=n(171),m=n(190),g=n(191),y=n(455),b=a()(v.a,{}),S=f.a.extend({
mountReact:function(){var e=n.i(u.a)("appStore"),t=this.options.selectedServerID,i=this.options.selectedProviderID,r=this.options.params||{},s=r.key,f=r.typeKey,v=r.type,S=r.filters,I=r.filterLabel,M=r.sort,C=r.folderKey,w=r.folderTitle,D=r.parentFolderKey,P=r.parentFolderTitle,T=r.limit,x=r.save,E=r.customFilter,N=n.i(h.a)(p.f,t),L=n.i(h.a)(p.e,i,N);o.a.render(a()(l.a,{store:e},void 0,b),this.ui.sidebar[0]),o.a.render(a()(l.a,{store:e},void 0,a()(m.a,{machineIdentifier:t},void 0,a()(g.a,{
providerEntityID:L},void 0,a()(y.a,{machineIdentifier:t,serverEntityID:N,providerEntityID:L,directoryKey:s,typeKey:f,activeType:v,activeFilters:n.i(d.a)(S),activeFilterLabel:I,activeSort:M,activeLimit:c.a.parseInteger(T),customFilter:c.a.parseBoolean(E),folderKey:C,folderTitle:w,parentFolderKey:D,parentFolderTitle:P,isTimeline:!1,shouldSaveRoute:c.a.parseBoolean(x)})))),this.ui.page[0])}});t.a=S},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),s=(n.n(r),
n(39)),o=n.n(s),l=n(11),u=n(13),c=n(60),d=n(56),p=n(53),h=n(116),f=n(171),v=n(190),m=n(191),g=n(455),y=a()(f.a,{}),b=h.a.extend({mountReact:function(){var e=n.i(u.a)("appStore"),t=this.options.selectedServerID,i=this.options.selectedProviderID,r=this.options.params||{},s=r.key,h=r.save,f=n.i(p.a)(d.f,t),b=n.i(p.a)(d.e,i,f);o.a.render(a()(l.a,{store:e},void 0,y),this.ui.sidebar[0]),o.a.render(a()(l.a,{store:e},void 0,a()(v.a,{machineIdentifier:t},void 0,a()(m.a,{providerEntityID:b
},void 0,a()(g.a,{machineIdentifier:t,serverEntityID:f,providerEntityID:b,directoryKey:s,isTimeline:!0,shouldSaveRoute:c.a.parseBoolean(h)})))),this.ui.page[0])}});t.a=b},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),s=(n.n(r),n(39)),o=n.n(s),l=n(11),u=n(13),c=n(597),d=n(2274),p=c.a.extend({mountReact:function(){var e=n.i(u.a)("appStore"),t=this.options.selectedProviderID,i=this.options.params||{};o.a.render(a()(l.a,{store:e},void 0,a()(d.a,{providerIdentifier:t,metadataKey:i.key
})),this.ui.page[0])}});t.a=p},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),s=(n.n(r),n(39)),o=n.n(s),l=n(11),u=n(13),c=n(116),d=n(171),p=n(190),h=n(191),f=n(2341),v=a()(d.a,{}),m=c.a.extend({mountReact:function(){var e=n.i(u.a)("appStore"),t=this.options.selectedServerID,i=this.options.params||{};o.a.render(a()(l.a,{store:e},void 0,v),this.ui.sidebar[0]),o.a.render(a()(l.a,{store:e},void 0,a()(p.a,{machineIdentifier:t},void 0,a()(h.a,{},void 0,a()(f.a,{machineIdentifier:t,
selectedViewType:i.view})))),this.ui.page[0])}});t.a=m},function(e,t,n){"use strict";function i(e){return c.a.map(e,function(e){return'<option value="'+e.value+'"'+(e.selected?" selected":"")+">"+e.label+"</option>"}).join("\n")}function a(e,t){return e.map(function(e){return{label:e.get("name"),value:e.get("identifier"),selected:t===e.get("identifier")}})}function r(e,t){return e?e.get("languages").map(function(e){return{label:e.get("name"),value:e.id,selected:e.id===t}}):[]}
var s=n(3215),o=n.n(s),l=n(18),u=n(3),c=n.n(u),d=n(239),p=n(422),h=n(890),f=l.a.ItemView.extend({template:o.a,ui:{agentSelect:"#match-search-agent",languageSelect:"#match-search-language"},events:{"change #match-search-agent":"onAgentSelectChange"},onlyAfterRender:["updateAgents","updateLanguages"],initialize:function(){var e=n.i(d.a)(this.model),t=e.get("agent"),i=this.setupAgents(t);i.then(c.a.bind(this.updateAgents,this,t)),i.then(c.a.bind(this.updateLanguages,this,t))},
serializeData:function(){var e=n.i(d.a)(this.model),t=e.get("agent"),i=this.model.agentsProxy.findWhere({identifier:t});return{item:this.model.toJSON(),agents:a(this.model.agentsProxy,t),languages:r(i)}},setupAgents:function(e){if(this.model.agentsPromise)return this.model.agentsPromise;var t=n.i(d.a)(this.model),i=t.getSectionType(),a=new p.a([],{server:this.model.server,mediaTypeID:i.typeID}),r=i.exclusiveAgents,s=new h.a(a,r,e);return this.model.agents=a,this.model.agentsProxy=s,
this.model.agentsPromise=this.model.agents.populate({reset:!0,cancelable:!0}),this.model.agentsPromise},updateAgents:function(e){this.ui.agentSelect.html(i(a(this.model.agentsProxy,e)))},updateLanguages:function(e){var t=this.model.agentsProxy.findWhere({identifier:e});if(!e)return void this.ui.languageSelect.empty();var a=n.i(d.a)(this.model),s=a.get("language");this.ui.languageSelect.html(i(r(t,s)))},onAgentSelectChange:function(e){this.updateLanguages(e.currentTarget.value)},
onModalClose:function(){this.model.agents=null,this.model.agentsProxy=null,this.model.agentsPromise=null}});t.a=f},function(e,t,n){"use strict";var i=n(3216),a=n.n(i),r=n(3),s=n.n(r),o=n(18),l=n(239),u=n(876),c=n(1895),d=o.a.Layout.extend({template:a.a,regions:{resultRegion:".result-region"},onlyAfterRender:["updateResults"],initialize:function(){this.setupResults();var e=n.i(l.a)(this.model),t={manual:1},i={reset:!0,timeout:0,data:t}
;/com\.plexapp\.agents\.none\:\/\//.test(this.model.get("guid"))&&s.a.extend(i,{data:s.a.extend(t,{agent:e.get("agent"),language:e.get("language")}),processData:!0}),this.model.results.populate(i).then(s.a.bind(this.updateResults,this))},setupResults:function(){if(!this.model.results){var e=this.model.results||new u.default([],{server:this.model.server,parent:this.model});this.model.results=e}},updateResults:function(){this.resultRegion.show(new c.a({collection:this.model.results,
itemViewOptions:{item:this.model}}))},onModalClose:function(){this.model.results=null}});t.a=d},function(e,t,n){"use strict";var i=n(3217),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(18),c=n(1921),d=u.a.Layout.extend({className:"devices-container row",template:a.a,regions:{list:".device-list-container"},events:{"click .nav a":"onDeviceTypeClick"},ui:{filters:".nav a"},deviceTypes:[{id:"all",title:"All",ids:["all"]},{id:"web",title:"Web",ids:["Web Client","Plex Web"]},{id:"pht",
title:"Home Theater",ids:["Plex Home Theater","Plex for Home Theater","PlexHomeTheater","Plex Media Center"]},{id:"pmp",title:"Media Player",ids:["Plex Media Player"]},{id:"pms",title:"Server",ids:["Plex Media Server","Plex Cloud Server"]},{id:"android",title:"Android",ids:["Plex for Android","Android"]},{id:"ios",title:"iOS",ids:["Plex/iOS","Plex for iOS"]},{id:"samsung",title:"Samsung",ids:["Plex for Samsung"]},{id:"google-tv",title:"Google TV",ids:["Google TV"]},{id:"windows",title:"Windows",
ids:["Plex for Windows"]},{id:"apple-tv",title:"Apple TV",ids:["Plex-ATV","Plex for Apple TV"]},{id:"windows-phone",title:"Windows Phone",ids:["Plex for Windows Phone"]},{id:"plexbmc",title:"PleXBMC",ids:["PleXBMC"]},{id:"cloud-sync",title:"Cloud Sync",ids:["Cloud Sync"]},{id:"roku",title:"Roku",ids:["Plex for Roku"]},{id:"popcorn-hour",title:"Popcorn Hour",ids:["Plex for Popcorn Hour"]},{id:"xbox",title:"Xbox",ids:["Plex for Xbox One","Plex for Xbox 360"]},{id:"other",title:"Other",ids:[]}],
initialize:function(){this.products=this.collection.products(),this.addOtherIds()},serializeData:function(){return{deviceTypes:this.getFilteredDeviceTypes()}},sortDeviceTypes:function(e){return s.a.sortBy(e,function(e){return"all"===e.id?"":e.title.toLowerCase()})},getFilteredDeviceTypes:function(){var e=this.deviceTypes.filter(function(e){return"all"===e.id||s.a.intersection(this.products,e.ids).length>0},this);return this.sortDeviceTypes(e)},addOtherIds:function(){
var e=s.a.flatten(s.a.map(this.deviceTypes,function(e){return e.ids})),t=s.a.difference(this.products,e),n=s.a.find(this.deviceTypes,function(e){return"other"===e.id});s.a.each(t,function(e){n.ids.push(e)})},onRender:function(){this.list.show(new c.a({collection:this.collection}))},onDeviceTypeClick:function(e){e.preventDefault();var t=l()(e.currentTarget),n=t.data("id"),i=this.collection;if(this.ui.filters.removeClass("selected"),t.addClass("selected"),"all"!==n){
var a=s.a.findWhere(this.deviceTypes,{id:n});i=this.collection.filterByProducts(a.ids)}this.list.show(new c.a({collection:i}))}});t.a=d},function(e,t,n){"use strict";var i=n(3219),a=n.n(i),r=n(13),s=n(937),o=n(931),l=n(1927),u=s.a.extend({template:a.a,initialize:function(){var e=r.a("appModel"),t=e.get("user");this.collection=t.get("homeUsers"),this.invites=t.get("desktop").get("invites").filterByHome(),this.sentInvites=t.get("desktop").get("sentInvites").filterByHome(),
this.signedInHomeUser=this.collection.get(t.id),this.itemViewOptions={isAdmin:!(!this.signedInHomeUser||!this.signedInHomeUser.get("admin"))},this.addListeners()},addListeners:function(){s.a.prototype.addListeners.apply(this,arguments),this.signedInHomeUser&&this.listenTo(this.signedInHomeUser,"change:admin",this.onAdminChange)},onRender:function(){this.friendList.show(new l.a({collection:this.collection,itemViewOptions:this.itemViewOptions})),this.inviteList.show(new o.a({
collection:this.invites})),this.pendingList.show(new o.a({collection:this.sentInvites})),this.updateHeaders()},onAdminChange:function(e,t){this.friendList.currentView&&(this.itemViewOptions.isAdmin=t)}});t.a=u},function(e,t,n){"use strict";var i=n(3220),a=n.n(i),r=n(3),s=n.n(r),o=n(18),l=n(13),u=n(15),c=n(141),d=n(1996),p=n(2011),h=n(1995),f=n(1992),v={web:d.a,server:p.a,users:h.a,devices:f.a},m=o.a.Layout.extend({className:"container",template:a.a,ui:{webNavItem:".web-nav-item",
serverNavItem:".server-nav-item",usersNavItem:".users-nav-item",devicesNavItem:".devices-nav-item",usersBadge:".users-btn > .badge"},regions:{container:".settings-container"},onlyAfterRender:["onSignedInChange","onPrimaryServerChange"],initialize:function(e){this.options=e,this.subset=e.subset||"web";var t=n.i(l.a)("appModel"),i=t.get("user"),a=i.get("desktop").get("invites");(0,n.i(l.a)("appStore").dispatch)(n.i(c.a)({allowLightPreset:!1})),this.subsets={users:a},
this.listenTo(i,"change:signedIn",this.onSignedInChange),this.listenTo(t,"change:primaryServer",this.onPrimaryServerChange),this.listenTo(a,"reset add remove",this.onInvitesChange),this.listenTo(u.a,"change:language",this.render)},serializeData:function(){var e=n.i(l.a)("appModel"),t=e.get("user"),i=e.get("primaryServer");return{subset:this.subset,signedIn:t.get("signedIn"),hasPrimaryServer:i&&!i.get("shared")}},updateBadges:function(){var e={users:this.subsets.users.length}
;s.a.each(s.a.keys(e),function(t){var n=this.ui[t+"Badge"];n.text(e[t]),n.toggleClass("hidden",0===e[t])},this)},onRender:function(){var e=v[this.subset];this.container.show(new e(this.options)),this.updateBadges()},onSignedInChange:function(e,t){this.ui.usersNavItem.toggleClass("hidden",!t),this.ui.devicesNavItem.toggleClass("hidden",!t)},onPrimaryServerChange:function(e,t){var n=t&&!t.get("shared");this.ui.serverNavItem.toggleClass("hidden",!n)},onInvitesChange:function(){this.updateBadges()}
});t.a=m},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(3221),s=n.n(r),o=n(10),l=n.n(o),u=n(18),c=n(13),d=n(4),p=n(15),h=n(29),f=n(112),v=n(28),m=n(1993),g=n(937),y=n(300),b=n(364),S={home:m.a,friends:g.a},I=u.a.Layout.extend({className:"users-container",template:s.a,ui:{navLinks:".nav-cards a",homeBadge:".home-card > .badge",friendsBadge:".friends-card > .badge",leaveHomeBtn:".leave-home-btn",enableGuestBtn:".enable-guest-btn",disableGuestBtn:".disable-guest-btn",
userActions:".user-actions"},regions:{container:".users-row"},events:{"click .nav-cards a":"onNavClick","click .add-user-btn":"onAddUserClick","click .leave-home-btn":"onLeaveHomeClick","click .invite-friend-btn":"onInviteFriendClick","click .enable-guest-btn":"onEnableGuestClick","click .disable-guest-btn":"onDisableGuestClick"},shouldShowUserActions:function(){var e=!!this.user.get("features").get(f.c);return this.signedInHomeUser.get("admin")&&e},shouldShowLeaveHome:function(){
return this.home.length>1&&!this.signedInHomeUser.get("restricted")},shouldShowFriends:function(){return!this.signedInHomeUser.get("restricted")},shouldShowEnableGuest:function(){return!(this.homeDetails&&this.homeDetails.get("guestEnabled"))},initialize:function(e){var t=c.a("appModel");this.subset=e.usersSubset,this.user=t.get("user"),this.home=this.user.get("homeUsers"),this.invites=this.user.get("desktop").get("invites"),this.signedInHomeUser=this.home.get(this.user.id),
this.homeDetails=this.user.get("homeDetails"),this.proxies={home:this.invites.filterByHome(),friends:this.invites.filterByFriends()},e.promptPIN&&p.a.trigger("show:modal",new b.a({model:this.signedInHomeUser,isEditing:!0,isEditWarning:!this.signedInHomeUser.get("protected")})),this.listenTo(this.signedInHomeUser,"change:admin",this.onAdminChange),this.listenTo(this.home,"reset add remove",this.onHomeChange),this.listenTo(this.invites,"reset add remove",this.onInvitesChange),
this.listenTo(this.homeDetails,"change",this.onHomeDetailsChange)},serializeData:function(){return{subset:this.subset,showUserActions:this.shouldShowUserActions(),showLeaveHome:this.shouldShowLeaveHome(),showFriends:this.shouldShowFriends(),showEnableGuest:this.shouldShowEnableGuest(),showDisableGuest:!this.shouldShowEnableGuest()}},showSubset:function(e){e&&(this.$el.removeClass("show-"+this.subset),this.subset=e),this.$el.addClass("show-"+this.subset);var t=S[this.subset]
;t?this.container.append(new t):h.a.warn("Invalid subset: "+this.subset)},updateBadges:function(){var e={home:this.proxies.home.length,friends:this.proxies.friends.length};a.a.each(a.a.keys(e),function(t){var n=this.ui[t+"Badge"];n.text(e[t]),n.toggleClass("hidden",0===e[t])},this)},toggleGuestAccount:function(e,t){e.preventDefault(),v.a.execute("toggleGuest",{user:this.user,enable:t})},onRender:function(){this.showSubset(),this.updateBadges()},onClose:function(){
a.a.each(this.proxies,function(e){e.destroy()})},onAdminChange:function(){this.ui.userActions.toggleClass("hidden",!this.shouldShowUserActions())},onHomeChange:function(){this.ui.leaveHomeBtn.toggleClass("hidden",!this.shouldShowLeaveHome())},onInvitesChange:function(){this.updateBadges()},onHomeDetailsChange:function(){this.ui.enableGuestBtn.toggleClass("hidden",!this.shouldShowEnableGuest()),this.ui.disableGuestBtn.toggleClass("hidden",this.shouldShowEnableGuest())},onNavClick:function(e){
e.preventDefault();var t=l()(e.currentTarget);t.hasClass("selected")||(this.ui.navLinks.removeClass("selected"),t.addClass("selected"),this.showSubset(a.a.last(e.currentTarget.href.split("/"))),p.a.trigger("navigate","users",{subset:this.subset,trigger:!1}))},onAddUserClick:function(e){e.preventDefault();var t=this.user.get("maxHomeSize");t&&this.home.length-1<t?p.a.trigger("show:modal",new y.a({type:"home"})):p.a.trigger("show:alert",{type:"error",
message:n.i(d.default)("You have reached the {1} person home limit.",t)})},onLeaveHomeClick:function(e){e.preventDefault(),v.a.execute("removeHomeUser",{homeUser:this.signedInHomeUser,isSignedInUser:!0})},onInviteFriendClick:function(e){e.preventDefault(),p.a.trigger("show:modal",new y.a({type:"friend"}))},onEnableGuestClick:function(e){this.toggleGuestAccount(e,!0)},onDisableGuestClick:function(e){this.toggleGuestAccount(e,!1)}});t.a=I},function(e,t,n){"use strict"
;var i=n(3222),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(18),c=n(13),d=n(4),p=n(15),h=n(80),f=n(821),v=n(391),m=n(113),g=n(796),y=n(112),b=n(272),S=n(341),I=n(800),M=n(561),C=n(390),w=n(61),D=n(918),P=n(1801),T=[{value:0,title:"None"},{value:1,title:"1"},{value:2,title:"2"},{value:3,title:"3"},{value:4,title:"4"},{value:5,title:"5"}],x=u.a.ItemView.extend({className:"web-settings-container",template:a.a,ui:{chromecastCustomGroup:"#chromecast-custom-group",
customHomeStreamingSettings:".custom-home-streaming-settings",recommendedHomeStreamingSettings:".recommended-home-streaming-settings",submitBtn:".submit-btn",message:".form-message"},events:{"click .toggle-advanced-btn":"onToggleAdvancedClick","click .settings-nav a":"onSettingsGroupClick","change #chromecastAppID":"onChromecastAppIDChange","change #useHomeStreamingRecommendedSettings":"onUseHomeStreamingRecommendedSettingsChange","change input[id]":"onInputChange",
"input input[type=text]":"onInputChange","change select[id]":"onInputChange","submit #web-settings-form":"onSubmit"},onlyAfterRender:["saveChanges","displayHomeStreamingSettings"],initialize:function(){this.changes={};var e=n.i(c.a)("appModel"),t=e.get("settings"),i=e.get("user");this.listenTo(i,"change:signedIn",this.onSignedInChange),this.listenTo(e,"change:primaryServer",this.render),this.listenTo(p.a,"shortcut:save",this.saveChanges);var a=t.get("showAdvancedSettings")
;this.$el.toggleClass("show-advanced",a);var r=n.i(c.a)("appModel").get("experienceSettings");this.displayHomeStreamingSettings(r.get("useHomeStreamingRecommendedSettings"))},serializeData:function(){var e=[],t=[{value:"h:mma",title:n.i(d.default)("12 Hour")},{value:"HH:mm",title:n.i(d.default)("24 Hour")}],i=this.model.toJSON(),a=n.i(c.a)("appModel"),r=a.get("experienceSettings").toJSON(),o=a.get("user"),l=o.hasPlexPass(),u=o.hasHome(),p=o.isNinja(),x=!!o.get("features").get(y.e)
;s.a.each(s.a.keys(C.a.getLanguages()),function(t){e.push({value:t,title:n.i(f.a)(t)})});var E=v.a.prop("video");return{settings:i,experienceSettings:r,hasPlexPass:l,hasHome:u,hasAdaptiveBitrate:x,isNinja:p,isPMPDesktop:n.i(M.a)(),showExperimentalPlayer:h.a.hasMediaSource&&w.a.get("allowFlash"),version:"3.20.7",languages:e,debugLevels:g.a.settings,subtitlesBurnLevels:b.a.settings,chromecastAppIDs:D.a.settings,availableQualities:m.a.getAvailableQualities({lowestQualityIndex:E.lowestQualityIndex
}).reverse(),subtitleSizes:I.a.settings,audioBoostLevels:P.a.settings,httpFallbackOptions:S.a.settings,extrasPrefixCounts:T,timeFormats:t}},saveChanges:function(){var e=this.ui.submitBtn,t=this.ui.message;if(!e.isDisabled()){e.addClass("active");var i=!!this.changes.language,a=n.i(c.a)("appModel"),r=a.get("experienceSettings"),o=l.a.when(this.saveSettings(r),this.saveAbstractSettings(r));o.done(s.a.bind(function(){this.changes={},i||(e.addClass("disabled"),
t.text(n.i(d.default)("Your changes have been saved.")))},this)),o.fail(s.a.bind(function(){t.text(n.i(d.default)("Your changes could not be saved."))},this)),o.always(s.a.bind(function(){i||e.removeClass("active")},this))}},saveSettings:function(e){var t=s.a.omit(this.changes,function(t,n){return e.hasAttr(n)});return this.model.save(t)},saveAbstractSettings:function(e){var t=s.a.reduce(this.changes,function(t,n,i){return e.hasAttr(i)&&(t[i]=n),t},{})
;return s.a.isEmpty(t)?l.a.Deferred().resolve().promise():e.save(t)},displayHomeStreamingSettings:function(e){this.ui.customHomeStreamingSettings.toggleClass("hidden",e),this.ui.recommendedHomeStreamingSettings.toggleClass("hidden",!e)},onSignedInChange:function(e,t){null!=t&&this.render()},onToggleAdvancedClick:function(e){e.preventDefault();var t=this.$el.hasClass("show-advanced");t&&this.$(".advanced-setting > .selected").length&&this.$(".nav a:first").click()
;var i=n.i(c.a)("appModel").get("settings");this.$el.toggleClass("show-advanced",!t),i.save("showAdvancedSettings",!t)},onSettingsGroupClick:function(e){e.preventDefault();var t=l()(e.currentTarget),n=t.attr("href");this.$(".settings-group").removeClass("active"),this.$(n).addClass("active"),this.$(".nav a").removeClass("selected"),t.addClass("selected")},onChromecastAppIDChange:function(e){var t=e.currentTarget.value===D.a.CUSTOM;this.ui.chromecastCustomGroup.toggleClass("hidden",!t)},
onUseHomeStreamingRecommendedSettingsChange:function(e){this.displayHomeStreamingSettings(!!e.currentTarget.checked)},onInputChange:function(e){var t=l()(e.currentTarget),n=e.currentTarget,i=n.value;"checkbox"===n.type&&(i=t.prop("checked")),"int"===t.data("type")&&(i=parseInt(i,10)),this.changes[n.id]=i,this.ui.submitBtn.removeClass("disabled"),this.ui.message.text("")},onSubmit:function(e){e.preventDefault(),this.saveChanges()}});t.a=x},function(e,t,n){"use strict"
;var i=n(3223),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(18),c=n(30),d=n(422),p=n(1917),h=n(1919),f=u.a.Layout.extend({template:a.a,ui:{agentLabel:".agent-label",typeNavItems:".agent-types-nav li",agentNavItems:".agents-nav li"},regions:{agentsList:".agents-list-container",contributorsList:".contributors-list-container"},events:{"click .agent-types-nav a":"onAgentTypeClick","click .agents-nav a":"onAgentClick"},initialize:function(){
this.bindAllWhenRendered("onAgentsReset","onContributorsReset"),this.agentTypes=[],this.agentTypes.push(n.i(c.b)(c.e)),this.agentTypes.push(n.i(c.b)(c.f)),this.agentTypes.push(n.i(c.b)(c.g)),this.agentTypes.push(n.i(c.b)(c.q)),this.agentTypes.push(n.i(c.b)(c.h)),this.currentType=s.a.first(this.agentTypes),this.populateAgents()},serializeData:function(){return{currentType:this.currentType,agentTypes:this.agentTypes}},populateAgents:function(){this.agents=new d.a([],{server:this.model,
mediaTypeID:this.currentType.id}),this.agents.populate({reset:!0,scope:"page"}).done(s.a.bind(this.onAgentsReset,this))},selectAgent:function(e){this.currentAgent&&this.currentAgent.set("selected",!1),this.currentAgent=e,e.set("selected",!0),this.ui.agentLabel.text(e.get("name")),this.additionalAgents=new d.a([],{server:this.model,mediaTypeID:this.currentType.id,relatedAgentID:e.id}),this.contributors=new d.a([],{server:this.model,mediaTypeID:this.currentType.id,primaryAgentID:e.id}),
this.contributorsList.show(new h.a({collection:this.contributors})),this.listenTo(this.contributorsList.currentView,"save",this.onContributorsSave),this.populateContributors()},populateContributors:function(){var e=[];e.push(this.additionalAgents.populate({reset:!0,scope:"page"})),e.push(this.contributors.populate({reset:!0,scope:"page"})),l.a.when.apply(l.a,e).done(s.a.bind(this.onContributorsReset,this))},onAgentsReset:function(){if(this.agentsList.show(new p.a({collection:this.agents})),
this.agents.length){var e=this.agents.findWhere({selected:!0})||this.agents.first();this.selectAgent(e)}},onContributorsReset:function(){var e=s.a.bind(function(e){return e.id===this.currentAgent.id?(e.set("isPrimary",!0),!0):!!this.contributors.get(e.id)},this);this.contributors.reset(this.additionalAgents.filter(e))},onAgentTypeClick:function(e){e.preventDefault();var t=l()(e.currentTarget),i=t.data("type");this.currentType=n.i(c.b)(i),this.populateAgents(),
this.ui.typeNavItems.removeClass("active"),t.parent("li").addClass("active")},onAgentClick:function(e){e.preventDefault();var t=l()(e.target),n=t.data("identifier"),i=this.agents.get(n);i&&this.selectAgent(i)},onContributorsSave:function(e){this.currentAgent.url="system/agents/"+this.currentAgent.id+"/config/"+this.currentType.id,this.currentAgent.save({order:e}).done(s.a.bind(function(){this.additionalAgents.fetch({silent:!0}),this.contributors.fetch({silent:!0})},this))}});t.a=f
},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(244),s=r.a.extend({prefix:"channel.",serializeData:function(){var e=r.a.prototype.serializeData.apply(this,arguments),t=this.options.channelSettings.toJSON();return a.a.each(t,function(e){e.id=this.prefix+e.id},this),e.unshift.apply(e,t),e},updateModel:function(e,t){var n=r.a.prototype.updateModel.apply(this,arguments);if(n)return n;var i=e.replace(this.prefix,""),a=this.options.channelSettings.get(i);return a?a.set("value",t):void 0}})
;t.a=s},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(0),s=(n.n(r),n(39)),o=n.n(s),l=n(11),u=n(13),c=n(434),d=n(2381),p=c.a.extend({template:function(){return""},mountReact:function(){var e=n.i(u.a)("appStore"),t=this.model.entityID();o.a.render(a()(l.a,{store:e},void 0,a()(d.a,{serverEntityID:t})),this.el)}});t.a=p},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(4),s=n(13),o=n(112),l=n(244),u=n(1999),c=n(2007),d=n(2008),p=n(3224),h=n.n(p),f=l.a.extend({template:h.a,regions:{
signIn:".sign-in-region",update:".update-region"},serializeData:function(){var e=l.a.prototype.serializeData.apply(this,arguments),t=a.a.findWhere(e,{id:"FriendlyName"});return t&&(t.placeholder=this.model.get("friendlyName")),e},bindings:{".version":{modelAttribute:"shortVersion",formatter:function(e){return n.i(r.default)("Version {1}",e)}}},onRender:function(){l.a.prototype.onRender.apply(this,arguments);var e=n.i(s.a)("appModel")
;e.get("ui").get("signInLaunchPage").get("isFederatedAuthEnabled")||e.get("user").get("features").get(o.b)?this.signIn.show(new u.a({model:this.model})):this.signIn.show(new c.a({model:this.model.get("desktop").get("cloudAccount"),collection:this.collection})),this.model.get("updater")&&this.update.show(new d.a({model:this.model.get("desktop").get("update"),collection:this.collection}))}});t.a=f},function(e,t,n){"use strict";var i=n(3225),a=n.n(i),r=n(244),s=r.a.extend({template:a.a,
serializeData:function(){var e=this.model,t=e.get("diagnostics"),n=t&&t.indexOf("logs")!==-1,i=t&&t.indexOf("databases")!==-1;return{showDownloadLogs:n,showDownloadDatabases:i,showDownloadLogsOrDatabases:n||i,downloadLogsUrl:e.resolveUrl("/diagnostics/logs",{appendToken:!0}),downloadDatabasesUrl:e.resolveUrl("/diagnostics/databases",{appendToken:!0}),defaultLinkTarget:"_self"}}});t.a=s},function(e,t,n){"use strict";var i=n(3),a=n.n(i),r=n(4),s=n(345),o=n(244),l=o.a.extend({prefix:"account.",
serializeData:function(){var e=this.options.account,t=[],i=a.a.map(s.a,function(e,t){return{value:t,label:e}});return t.push({id:this.prefix+"autoSelectAudio",label:n.i(r.default)("Automatically select audio and subtitle tracks"),summary:n.i(r.default)("Automatically select audio and subtitle tracks in your preferred language when possible."),default:!1,value:e.get("autoSelectAudio"),type:"bool",group:"account.language",advanced:!1,hidden:!1}),t.push({id:this.prefix+"defaultAudioLanguage",
label:n.i(r.default)("Prefer audio tracks in"),default:"en",value:e.get("defaultAudioLanguage"),type:"text",group:"account.language",advanced:!1,hidden:!1,enumValues:i}),t.push({id:this.prefix+"subtitleMode",label:n.i(r.default)("Subtitle mode"),default:1,value:parseInt(e.get("subtitleMode"),10),type:"int",group:"account.language",advanced:!1,hidden:!1,enumValues:[{value:0,label:n.i(r.default)("Manually selected")},{value:1,label:n.i(r.default)("Shown with foreign audio")},{value:2,
label:n.i(r.default)("Always enabled")}]}),t.push({id:this.prefix+"defaultSubtitleLanguage",label:n.i(r.default)("Prefer subtitles in"),default:"en",value:e.get("defaultSubtitleLanguage"),type:"text",group:"account.language",advanced:!1,hidden:!1,enumValues:i}),t},updateModel:function(e,t){var n=o.a.prototype.updateModel.apply(this,arguments);if(n)return n;var i=e.replace(this.prefix,""),a=this.options.account;return a.has(i)?a.set(i,t):void 0}});t.a=l},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(3226),s=n.n(r),o=n(18),l=n(0),u=(n.n(l),n(39)),c=n.n(u),d=n(11),p=n(13),h=n(2054),f=a()(h.a,{}),v=o.a.ItemView.extend({className:"livetv-epg-settings",template:s.a,mountReact:function(){var e=n.i(p.a)("appStore");c.a.render(a()(d.a,{store:e},void 0,f),this.el)},unmountReact:function(){this.isRendered&&c.a.unmountComponentAtNode(this.el)},onBeforeRender:function(){this.unmountReact()},onRender:function(){this.mountReact()},onClose:function(){this.unmountReact()}});t.a=v
},function(e,t,n){"use strict";var i=n(18),a=n(2005),r=i.a.CollectionView.extend({tagName:"ul",className:"nav nav-cards",itemView:a.a,selectGroup:function(e){this.selectedView&&this.selectedView.deselect();var t=this.collection.get(e);t&&(this.selectedView=this.children.findByModel(t),this.selectedView.select())},showDecorator:function(e,t){var n=this.collection.get(e);if(n){this.children.findByModel(n).showDecorator(t)}}});t.a=r},function(e,t,n){"use strict"
;var i=n(3227),a=n.n(i),r=n(18),s=r.a.ItemView.extend({tagName:"li",className:"server-settings-nav-list-item",template:a.a,ui:{card:".card"},events:{"click .card":"onClick"},select:function(){this.ui.card.addClass("selected")},deselect:function(){this.ui.card.removeClass("selected")},showDecorator:function(e){this.currentStatus&&this.$el.removeClass(this.currentStatus),this.currentStatus=e,this.$el.addClass(e)},onClick:function(e){e.preventDefault(),
this.ui.card.hasClass("selected")||this.trigger("change:pane",this.model.id)}});t.a=s},function(e,t,n){"use strict";var i=n(3229),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(28),c=n(515),d=n(244),p=d.a.extend({className:"remote-access-container",template:a.a,ui:{manualPortMappingMode:"#ManualPortMappingMode",manualPortMappingPort:"#ManualPortMappingPort",wanTotalMaxUploadRate:"#WanTotalMaxUploadRate",uploadContainer:".remote-access-upload-container",submitBtn:".submit-btn",
message:".form-message"},events:{"change .remote-access-error-container input[id]":"onErrorInputChange","click .sign-in-link":"onSignInClick","click .remote-access-enable-btn":"onEnableClick","click .retry-btn":"onRetryClick","click .remote-access-disable-btn":"onDisableClick","change input[name=WanTotalMaxUploadRate]":"onTotalRateChange","keyup input[name=WanTotalMaxUploadRate]":"onTotalRateChange","change select[name=WanPerStreamMaxUploadRate]":"onPerStreamRateChange",
"submit #remote-access-upload-form":"onUploadFormSubmit"},initialize:function(e){this.cloudAccount=e.cloudAccount,this.changes=e.changes,this.listenTo(this.cloudAccount,{"change:signInState":this.render,"change:remoteAccessState":this.render})},serializeData:function(){
var e=this.collection.get("PublishServerOnPlexOnlineKey"),t=this.collection.get("ManualPortMappingMode"),n=this.collection.get("ManualPortMappingPort"),i=this.collection.get("WanTotalMaxUploadRate"),a=this.collection.get("WanPerStreamMaxUploadRate"),r=this.cloudAccount.toJSON(),s=!e.get("value"),o=!r.signedIn,l=s||o,u=!(!r.privateAddress||null==r.privatePort),c=!(!r.publicAddress||null==r.publicPort),d={forceAdvanced:!s&&!!r.mappingError,isDisabled:s,isSignedOut:o,isUnavailable:l,
canEditPort:!l&&t&&t.get("value"),hasPrivateAddress:u,hasPublicAddress:c,cloudAccount:r,hasMappingSettings:!(!t||!n),hasUploadLimitSettings:!(!i||!a),mappingModeSetting:t?t.toJSON():null,mappingPortSetting:n?n.toJSON():null,uploadSettings:[]};return i&&(d.totalRateSettingID=i.id,d.totalRateSettingValue=i.get("value")/1e3),a&&d.uploadSettings.push(a.toJSON()),d},enable:function(){},enableUploadForm:function(){this.isDisabled=!1,this.ui.submitBtn.removeClass("disabled"),this.ui.message.text("")},
updateUploadSetting:function(e,t){if(e){this.updateModel(e,t)&&(this.changes[e]=t,this.enable())}},connect:function(){return u.a.execute("connectServer",{cloudAccount:this.cloudAccount,value:!0})},disconnect:function(){return u.a.execute("connectServer",{cloudAccount:this.cloudAccount,value:!1})},reconnect:function(){return u.a.execute("reconnectServer",{cloudAccount:this.cloudAccount})},saveChanges:function(){if(s.a.isEmpty(this.changes))return l.a.Deferred().resolve().promise()
;var e=this.collection.first().save(this.changes);return e.done(s.a.bind(function(){this.changes={}},this)),e},onErrorInputChange:function(e){d.a.prototype.onInputChange.apply(this,arguments),this.ui.manualPortMappingPort.prop("disabled",!this.ui.manualPortMappingMode.prop("checked"))},onSignInClick:function(e){e.preventDefault(),this.trigger("change:pane","general")},onEnableClick:function(e){e.preventDefault(),this.connect()},onDisableClick:function(e){e.preventDefault(),this.disconnect()},
onRetryClick:function(e){e.preventDefault(),this.cloudAccount.set("remoteAccessState",c.a),this.saveChanges().always(s.a.bind(this.reconnect,this))},onTotalRateChange:function(e){var t=e.currentTarget,n=parseFloat(t.value,10),i=s.a.isNaN(n)?0:Math.max(n,0);this.updateUploadSetting(t.name,1e3*i),this.enableUploadForm()},onPerStreamRateChange:function(e){var t=e.currentTarget;this.updateUploadSetting(t.name,t.value),this.enableUploadForm()},onUploadFormSubmit:function(e){e.preventDefault(),
this.trigger("save");var t=this.collection.get("WanTotalMaxUploadRate").get("value"),n=!t;this.ui.wanTotalMaxUploadRate.val(t/1e3),this.ui.uploadContainer.toggleClass("show-warning",n)}});t.a=p},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(3230),s=n.n(r),o=n(3),l=n.n(o),u=n(10),c=n.n(u),d=n(18),p=(n(4),n(15),n(13)),h=n(28),f=n(182),v=(n(44),d.a.ItemView.extend({className:"server-account-container",template:s.a,ui:{poster:".server-account-poster",signInBtn:".server-sign-in-btn",
signOutBtn:".server-sign-out-btn",claimBtn:".server-claim-btn",username:"input[name=username]",password:"input[name=password]"},events:{"submit #server-sign-in-form":"onSubmit","click .server-claim-btn":"onClaimClick","click .server-sign-out-btn":"onSignOutClick"},modelEvents:{"change:signedIn":"updateSignInState","change:username":"updateUserImage"},initialize:function(){var e=p.a("appModel");this.user=e.get("user"),this.image=new f.a({type:"friend",width:60}),
this.listenTo(this.user,"change:isSignedIn",function(){this.isSigningIn||this.render()}),this.isSigningIn=!1,this.claimServerFailed=!1},serializeData:function(){return{showClaimMessage:!this.claimServerFailed&&this.model.server.supports("claimServer")&&this.user.get("isSignedIn"),showSignOut:!this.model.server.get("isPersonalCloudServer")}},updateSignInState:function(){this.$el.toggleClass("signed-in",this.model.get("signedIn"))},updateUserImage:function(){var e=this.model.get("username")
;e===this.user.get("username")||e===this.user.get("email")?this.image.setModel(this.user):(this.image.setModel(null),this.image.url=null),this.image.render()},signInServer:function(e){var t=a()({cloudAccount:this.model},e),n=h.a.execute("signInServer",t);return n.done(l.a.bind(function(){this.model.fetch(),this.model.server.fetch()},this)),n},signInUser:function(e){return this.user.get("isSignedIn")?c.a.Deferred().resolve().promise():h.a.execute("signIn",{username:e.username,password:e.password
})},signOut:function(){var e=this,t=void 0;return t=c.a.Deferred().resolve().promise(),t=t.then(function(){return e.ui.username.val(""),e.ui.password.val(""),h.a.execute("signOutServer",{cloudAccount:e.model})}),t.done(l.a.bind(function(){this.model.fetch(),this.model.server.fetch()},this)),t},bindings:{".server-account-username":{modelAttribute:"username"}},onRender:function(){this.image.setElement(this.ui.poster),this.updateSignInState(),this.updateUserImage()},onClose:function(){
this.image.close()},onSubmit:function(e){if(e.preventDefault(),!this.ui.signInBtn.isDisabled()){this.isSigningIn=!0,this.ui.signInBtn.addClass("active");var t={username:e.target.username.value,password:e.target.password.value},n=this.signInUser(t);n=n.then(l.a.bind(function(){return this.signInServer(t)},this)),n.always(this.whenRendered(function(){this.isSigningIn=!1,this.ui.signInBtn.removeClass("active")},this))}},onSignOutClick:function(e){if(e.preventDefault(),
!this.ui.signOutBtn.isDisabled()){this.ui.signOutBtn.addClass("active");this.signOut().always(this.whenRendered(function(){this.ui.signOutBtn.removeClass("active")}))}},onClaimClick:function(e){e.preventDefault(),this.ui.claimBtn.addClass("active");var t=p.a("metrics"),n=this.signInServer({claim:!0});n.done(function(){t.trackEvent({event:"client:claimServer",interaction:!0})}),n.fail(this.whenRendered(function(){t.trackEvent({event:"client:claimServerFailure",interaction:!1}),
this.claimServerFailed=!0,this.render()})),n.always(this.whenRendered(function(){this.ui.claimBtn.removeClass("active")}))}}));t.a=v},function(e,t,n){"use strict";var i=n(10),a=n.n(i),r=n(3231),s=n.n(r),o=n(3),l=n.n(o),u=n(18),c=n(13),d=n(4),p=n(15),h=n(28),f=n(1947),v=u.a.ItemView.extend({tagName:"span",className:"check-for-updates-container",template:s.a,ui:{checkForUpdatesBtn:".check-for-updates-btn",downloadUpdatesContainer:".downloading-updates-container",
downloadProgressContainer:".downloading-progress-container",downloadProgressLabel:".downloading-progress-label",updateProgressLabel:".downloading-updates-label",updateErrorMessage:".update-error-message",installManualLink:".install-manual-link"},modelEvents:{"change:state":"onStateChange","change:progress":"onProgressChange"},events:{"click .check-for-updates-btn":"onCheckForUpdatesClick","click .available-updates-btn":"onDownloadUpdatesClick",
"click .install-updates-btn":"onInstallUpdatesClick","click .release-notes-btn":"onInfoClick"},initialize:function(){this.model.fetch().then(this.whenRendered(function(){var e=this.model.get("state");"downloaded"===e&&this.model.get("shouldInstall")?(this.model.set("shouldInstall",!1),this.installUpdates()):this.canCheckForUpdate(e)&&this.checkForUpdates({download:!1})}))},serializeData:function(){return{canCheckForUpdate:this.canCheckForUpdate(this.model.get("state"))}},
checkForUpdates:function(e){h.a.execute("checkForServerUpdates",{server:this.model.server,download:e.download,initialState:e.initialState})},installUpdates:function(){h.a.execute("installServerUpdates",{server:this.model.server})},waitForInstall:function(){this.onWaitingForInstallCheck(),this.listenTo(this.model.server,"change:isConnected",this.onServerConnectedChange)},showUpdateState:function(){var e=this.model.get("state"),t=this.model.previous("state")
;"installing"===t&&this.stopListening(this.model.server,"change:isConnected",this.onServerConnectedChange),this.$el.removeClass(t);var i=e;this.model.get("canInstall")||"available"!==e||(i="notify"),this.$el.addClass(i);var a=!(!this.model.get("added")&&!this.model.get("fixed"));if(this.$el.toggleClass("has-release-notes",a),"installing"===i)this.waitForInstall();else if("error"===i||"notify"===i){var r;this.model.get("error")?(r=this.model.get("error"),
this.ui.installManualLink.addClass("hidden")):this.model.get("canInstall")?(r=n.i(d.default)("Something went wrong."),this.ui.installManualLink.removeClass("hidden")):(r=n.i(d.default)("An update is available."),this.ui.installManualLink.removeClass("hidden"));var s=c.a("appModel"),o=s.get("user").server,l=this.model.get("downloadURL")||o.get("appsUrl");this.ui.installManualLink.attr("href",l),this.ui.updateErrorMessage.text(r)}},canCheckForUpdate:function(e){
return"done"===e||"error"===e||"none"===e},onRender:function(){this.showUpdateState()},onStateChange:function(e,t){this.isRendered&&(this.showUpdateState(),this.ui.checkForUpdatesBtn.toggleClass("active",!this.canCheckForUpdate(t)))},onProgressChange:function(e,t){l.a.isNumber(t)?(this.ui.downloadUpdatesContainer.css({"background-size":t+"% 100%"}),this.ui.downloadProgressContainer.removeClass("hidden"),this.ui.downloadProgressLabel.text(t)):this.ui.downloadProgressContainer.addClass("hidden")},
onServerConnectedChange:function(e,t){t?h.a.execute("checkForServerUpdates",{server:this.model.server}):this._waitingTimeoutID&&(this._waitingTimeoutID=clearTimeout(this._waitingTimeoutID))},onWaitingForInstallCheck:function(){var e=this,t=this.model.server;if(t.get("isConnected")&&"installing"===this.model.get("state")){var n=t.getXHROptions("/updater/check",{type:"PUT"});a.a.ajax(n).promise().always(function(){e._waitingTimeoutID=setTimeout(e.onWaitingForInstallCheck.bind(e),2e3)})}},
onCheckForUpdatesClick:function(e){e.preventDefault(),this.ui.checkForUpdatesBtn.isDisabled()||(this.ui.checkForUpdatesBtn.addClass("active"),this.checkForUpdates({download:!0}))},onDownloadUpdatesClick:function(e){e.preventDefault(),this.checkForUpdates({download:!0,initialState:"downloading"})},onInstallUpdatesClick:function(e){e.preventDefault(),this.installUpdates()},onInfoClick:function(e){e.preventDefault(),p.a.trigger("show:modal",new f.a({model:this.model}))}});t.a=v},function(e,t,n){
"use strict";var i=n(3232),a=n.n(i),r=n(18),s=n(199),o=r.a.ItemView.extend({template:a.a,serializeData:function(){return{isTranscoderRequired:!this.model.get("transcoderVideo"),isUpgradeRequired:!this.model.supports("streamReady"),minServerVersion:s.a.streamReady}}});t.a=o},function(e,t,n){"use strict";var i=n(3233),a=n.n(i),r=n(3),s=n.n(r),o=n(10),l=n.n(o),u=n(28),c=n(287),d=n(582),p=n(354),h=n(920),f=n(1908),v=n(244),m=n(2009),g=v.a.extend({mixins:[c.a],className:"versions-container",
template:a.a,ui:{message:".versions-status-message"},regions:{listRegion:".background-processing-list-region"},events:{"click .delete-all-btn":"onDeleteAllVersionsClick"},initialize:function(e){this.pausedSetting=this.collection.get("BackgroundQueueIdlePaused"),this.playlists=new d.a([],{server:this.model,allowInCache:!0}),this.transcodeJobs=new p.a([],{server:this.model,allowInCache:!0})},initialState:"loading",states:{loading:{nextState:"list",onEnter:function(){
var e=this.model.supports("streamReady"),t=this.model.get("transcoderVideo");if(this.listRegion.show(new h.a({inline:!0})),!e||!t)return void this.enterState("error");var n=l.a.when(this.playlists.populate(),this.transcodeJobs.fetch());n=n.then(s.a.bind(function(){return this.playlist=this.playlists.first(),this.playlist?(this.generators=this.playlist.get("children"),this.generators.fetch()):l.a.Deferred().reject().promise()},this)),n.done(this.whenRendered(function(){this.enterNextState()})),
n.fail(this.whenRendered(function(){this.enterState("error")}))}},list:{onEnter:function(){this.toggleMessage(),this.listenTo(this.generators,"reset add remove",this.toggleMessage),this.listRegion.show(new f.a({collection:this.generators,itemViewOptions:{transcodeJobs:this.transcodeJobs,pausedSetting:this.pausedSetting}}))},onExit:function(){this.stopListening(this.generators)}},error:{onEnter:function(){this.listRegion.show(new m.a({model:this.model}))}}},toggleMessage:function(){
this.ui.message.toggleClass("hidden",!this.generators.length)},onRender:function(){this.enterNextState()},onDeleteAllVersionsClick:function(e){e.preventDefault(),u.a.execute("deleteAllVersionGenerators",{server:this.model}).then(s.a.bind(function(){return this.generators.fetch()},this))}});t.a=g},function(e,t,n){"use strict";function i(e){if(!e.hasOwnProperty("isVisible"))return null;var t=e.isVisible;if(u.a.isFunction(t)){
for(var n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return t.apply(void 0,i)}return t}var a=n(65),r=n.n(a),s=n(3234),o=n.n(s),l=n(3),u=n.n(l),c=n(10),d=n.n(c),p=n(55),h=n(18),f=n(13),v=n(4),m=n(28),g=n(15),y=n(19),b=n(362),S=n(2004),I=n(2e3),M=n(2001),C=n(2006),w=n(2010),D=n(1997),P=n(1998),T=n(2002),x=n(2003),E=n(244),N=n(298),L=h.a.Layout.extend({className:"server-settings-container",template:o.a,remoteAccessDecorators:{connecting:"unknown",disconnecting:"unknown",
unreachable:"error",ok:"success"},regions:{serverDropdown:".filter-bar",nav:".nav-region",pane:".pane-region"},events:{"click .toggle-advanced-btn":"onToggleAdvancedClick"},panes:{general:{constructor:I.a,group:"general",title:"General",isVisible:!0},remoteAccess:{constructor:C.a,group:"remoteAccess",title:"Remote Access",isVisible:function(e){return!e.get("isPersonalCloudServer")}},versions:{constructor:w.a,group:"versions",title:"Optimized Versions",isVisible:function(e){
return!e.get("isPersonalCloudServer")}},agents:{constructor:D.a,group:"agents",title:"Agents",isVisible:!0},library:{constructor:E.a,group:"library",title:"Library"},channels:{constructor:P.a,group:"channels",title:"Channels",isVisible:!0},network:{constructor:E.a,group:"network",title:"Network"},transcoder:{constructor:E.a,group:"transcoder",title:"Transcoder"},languages:{constructor:T.a,group:"account.language",title:"Languages",isVisible:!0},dlna:{constructor:E.a,group:"dlna",title:"DLNA"},
bonjour:{constructor:E.a,group:"bonjour",title:"Network Discovery"},butler:{constructor:E.a,group:"butler",title:"Scheduled Tasks"},extras:{constructor:E.a,group:"extras",title:"Extras"},dvr:{constructor:x.a,group:"dvr",title:"Live TV & DVR",isVisible:function(e){return e.get("livetv")>=1}},help:{constructor:M.a,group:"help",title:"Help",isVisible:!0}},initialize:function(e){this.defaultGroup=e.group||"general",this.account=e.account,this.cloudAccount=e.cloudAccount,
this.channelSettings=e.channelSettings,this.tempSettings=this.collection.cloneDeep(),this.tempAccount=this.account.clone(),this.tempChannelSettings=this.channelSettings.cloneDeep(),this.changes={};var t=n.i(f.a)("appModel"),i=t.get("settings"),a=i.get("showAdvancedSettings");if(this.$el.toggleClass("show-advanced",a),this.initGroups(),this.model.supports("reachability")){var r=u.a.extend(this.model.getXHROptions("/myplex/refreshReachability"),{type:"PUT"});d.a.ajax(r)}
t.set("primaryServer",this.model),this.listenTo(g.a,"shortcut:save",this.saveChanges),this.listenTo(t,"change:primaryServer",this.onPrimaryServerChange),this.listenTo(this.cloudAccount,"change:remoteAccessState",this.onRemoteAccessStatusChange),this.listenTo(this.model,"change:isClaimed",this.onClaimedChange)},initGroups:function(){var e=this,t=u.a.keys(this.panes),n=u.a.unique(this.collection.filter(function(e){return e.get("group")&&!e.get("hidden")}).map(function(e){return e.get("group")}))
;this.groups=new p.a.Collection,t.forEach(function(t){var a=e.panes[t],r=i(a,e.model,e.tempSettings);(r===!0||r!==!1&&u.a.contains(n,t))&&e.addGroup(t,a)}),u.a.each(n,function(e){if(!u.a.contains(t,e)){var n={constructor:E.a,group:e,title:e};this.panes[e]=n,this.addGroup(e,n)}},this)},addGroup:function(e,t){var n=u.a.omit(t,"constructor");n.id=e,this.groups.add(n)},showPane:function(e){if(this.currentPane){if(this.currentPane.isActive)return this.currentPane;this.stopListening(this.currentPane),
this.flushChanges()}var t=this.panes[e];if(!t||!this.groups.get(e)){var n=r()(this.panes)[0];e=n,t=this.panes[n]}var i=t.constructor,a=new i({model:this.model,collection:this.tempSettings,account:this.tempAccount,cloudAccount:this.cloudAccount,channelSettings:this.tempChannelSettings,group:t.group,changes:this.changes});return this.currentPane=a,this.pane.show(a),this.nav.currentView.selectGroup(e),this.listenTo(this.currentPane,{"change:pane":this.showPane,save:this.saveChanges}),
g.a.trigger("navigate","serverSettings",{serverID:this.model.id,group:e,replace:!0,trigger:!1}),a},flushChanges:function(){this.currentPane.changes&&u.a.extend(this.changes,this.currentPane.changes)},saveChanges:function(){if(this.flushChanges(),!this.currentPane.isDisabled&&!this.currentPane.isActive){this.currentPane.triggerMethod("before:save");var e=[],t=this.getPrefixedChanges("channel."),n=this.getPrefixedChanges("account.");if(!u.a.isEmpty(t)){
var i=this.channelSettings.first().getSaveParams(t),a=u.a.result(this.channelSettings,"url"),r=y.join([a,"/set"],i);e.push(d.a.ajax(this.model.getXHROptions(r)))}u.a.isEmpty(n)||e.push(this.account.save(n)),u.a.isEmpty(this.changes)||e.push(this.collection.first().save(this.changes));var s=d.a.when.apply(d.a,e);s.done(u.a.bind(function(){var e=u.a.keys(this.changes);u.a.each(e,function(e){var t=this.tempSettings.get(e);this.collection.get(e).set("value",t.get("value")),
"ButlerUpdateChannel"===e&&this.onButlerUpdateChannelChange()},this),this.changes={},this.currentPane&&(this.currentPane.changes&&(this.currentPane.changes={}),this.currentPane.triggerMethod("after:save",!0))},this)),s.fail(u.a.bind(function(){this.currentPane&&this.currentPane.triggerMethod("after:save",!1)},this))}},getPrefixedChanges:function(e){var t={};return u.a.each(this.changes,function(n,i){0===i.lastIndexOf(e,0)&&(t[i.substring(e.length)]=n,delete this.changes[i])},this),t},
onRender:function(){this.serverDropdown.append(new b.a);var e=new S.a({collection:this.groups});this.listenTo(e,"itemview:change:pane",this.onNavItemChangePane),this.nav.show(e);var t=this.remoteAccessDecorators[this.cloudAccount.get("remoteAccessState")];t&&this.nav.currentView.showDecorator("remoteAccess",t),this.model.get("isClaimed")||this.nav.currentView.showDecorator("general","warning"),this.showPane(this.defaultGroup)},onClose:function(){this.currentPane=null},
onNavItemChangePane:function(e,t){this.showPane(t)},onPrimaryServerChange:function(e,t){var i=this.model.get("desktop").get("update");return e.get("ui").get("claimServerPage").get("isClaimServerRequest")||"installing"===i.get("state")?void this.listenTo(this.model,"change:connected",this.onServerConnectedChange):t?void g.a.trigger("navigate","serverSettings",{serverID:t.id}):void g.a.trigger("show:view",new N.a({
title:n.i(v.default)("Server settings are unavailable because the server could not be reached.")}))},onRemoteAccessStatusChange:function(e,t){var n=this.remoteAccessDecorators[t];n&&this.nav.currentView.showDecorator("remoteAccess",n)},onServerConnectedChange:function(e,t){if(t){this.stopListening(e,"change:connected",this.onServerConnectedChange);n.i(f.a)("appModel").set("primaryServer",e)}},onClaimedChange:function(e,t){
t?this.nav.currentView.showDecorator("general",""):this.nav.currentView.showDecorator("general","warning")},onToggleAdvancedClick:function(e){e.preventDefault();var t=this.$el.hasClass("show-advanced"),i=n.i(f.a)("appModel").get("settings");this.$el.toggleClass("show-advanced",!t),i.save("showAdvancedSettings",!t)},onButlerUpdateChannelChange:function(){var e=this.collection.get("ButlerTaskCheckForUpdates");e&&e.get("value")&&m.a.execute("checkForServerUpdates",{server:this.model,download:!1})}
});t.a=L},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(3235),s=n.n(r),o=n(3),l=n.n(o),u=n(10),c=n.n(u),d=n(18),p=n(0),h=(n.n(p),n(39)),f=n.n(h),v=n(11),m=n(13),g=n(4),y=n(15),b=n(89),S=n(28),I=n(463),M=d.a.ItemView.extend({className:"setup-basic-container",template:s.a,ui:{modalContainer:".modal-container",connectCheckbox:"#connect",submitBtn:".submit-btn",nextBtn:".next-btn"},collectionEvents:{reset:"render"},events:{"change input[id]":"onInputChange",
"submit #setup-basic-form":"onSubmit"},initialize:function(){l.a.bindAll(this,"onPlexPassModalClose"),this.collection=this.model.get("desktop").get("settings"),this.collection.populate({reset:!0}),this.model.isVersionOrNewer("0.9.15.5")?this.changes={PublishServerOnPlexOnlineKey:1}:this.changes={FirstRun:0,PublishServerOnPlexOnlineKey:1};var e=this.model.get("superToken");e&&(this.changes.PlexOnlineToken=e);var t=m.a("appModel"),n=t.get("user").get("hasPlexPass")
;this.isPlexPassModalOpen=!this.model.get("isDesktop")&&!n},serializeData:function(){var e=this.model.toJSON(),t=this.collection.get("FriendlyName"),n=this.collection.get("PublishServerOnPlexOnlineKey");return{server:e,friendlyNameSetting:t?t.toJSON():null,publishSetting:n?n.toJSON():null}},mountReact:function(){f.a.render(a()(v.a,{store:m.a("appStore")},void 0,a()(I.a,{metricsProperties:{context:b.g,firstRun:!0},isOpen:this.isPlexPassModalOpen,onModalClose:this.onPlexPassModalClose
})),this.ui.modalContainer[0])},unmountReact:function(){this.isRendered&&f.a.unmountComponentAtNode(this.ui.modalContainer[0])},submit:function(){var e=this.ui.submitBtn;if(!e.hasClass("active")){e.addClass("active");var t=this.save();t=t.done(l.a.bind(function(){this.ui.nextBtn.click()},this)),t.always(function(){e.removeClass("active")})}},save:function(){
var e=this,t=l.a.isEmpty(this.changes)?c.a.Deferred().resolve().promise():this.collection.first().save(this.changes),i=m.a("appModel"),a=i.get("user").get("isSignedIn");return this.model.supports("claimServer")&&!this.model.get("superToken")&&a&&(t=t.then(function(){return e.model.get("isClaimed")?c.a.Deferred().resolve().promise():S.a.execute("signInServer",{claim:!0,cloudAccount:e.model.get("desktop").get("cloudAccount")})}),t=t.then(function(){return e.model.fetch()})),t=t.fail(function(){
y.a.trigger("show:alert",{type:"error",message:n.i(g.default)("There was a problem saving these settings.")})})},onBeforeRender:function(){this.unmountReact()},onRender:function(){this.mountReact()},onClose:function(){this.unmountReact()},onInputChange:function(e){var t=e.currentTarget,n=t.value;"checkbox"===t.type&&(n=t.checked?1:0),this.changes[t.id]=n},onSubmit:function(e){e.preventDefault(),this.submit()},onPlexPassModalClose:function(){this.isPlexPassModalOpen=!1,this.mountReact()}});t.a=M
},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(3236),s=n.n(r),o=n(3),l=n.n(o),u=n(10),c=n.n(u),d=n(18),p=n(0),h=(n.n(p),n(39)),f=n.n(h),v=n(4),m=n(15),g=n(417),y=n(34),b=n(64),S=n(89),I=n(13),M=n(802),C=n(2546),w=n(3486),D=n.n(w),P=d.a.ItemView.extend({className:"setup-complete-container",template:s.a,ui:{modalContainer:".modal-container",submitBtn:".submit-btn",doneBtn:".done-btn"},collectionEvents:{reset:"render"},events:{"change input[id]":"onInputChange",
"submit #setup-complete-form":"onSubmit"},initialize:function(){l.a.bindAll(this,"onPlexPassLiteModalClose"),this.collection=this.model.get("desktop").get("settings"),this.collection.populate({reset:!0}),this.changes={},this.isPlexPassLiteModalOpen=!1;var e=I.a("appModel"),t=e.get("user");t.get("isSignedIn")&&t.fetch().done(this.whenRendered(function(){t.get("subscription").get("plan")===M.b&&(this.isPlexPassLiteModalOpen=!0,this.mountReact())}))},serializeData:function(){
var e=this.collection.get("collectUsageData");return{devicesImg:D.a,collectUsageDataSetting:e?e.toJSON():null}},mountReact:function(){f.a.render(a()(C.a,{metricsProperties:{context:S.g,firstRun:!0},isOpen:this.isPlexPassLiteModalOpen,onModalClose:this.onPlexPassLiteModalClose}),this.ui.modalContainer[0])},unmountReact:function(){this.isRendered&&f.a.unmountComponentAtNode(this.ui.modalContainer[0])},submit:function(){var e=this.ui.submitBtn;if(!e.hasClass("active")){e.addClass("active")
;this.save().always(this.whenRendered(function(){this.ui.doneBtn.click(),e.removeClass("active")}))}},save:function(){l.a.has(this.changes,"collectUsageData")&&!this.changes.collectUsageData&&I.a("metrics").trackClick({action:b.K,page:y.E,pane:"complete",firstRun:!0});var e=this.collection.first().save(this.changes),t=this.model.get("sections").filter(function(e){return e.isNew()}).map(function(e){return e.save()}),i=c.a.when(e,n.i(g.a)(t));return i.fail(function(){m.a.trigger("show:alert",{
type:"error",message:n.i(v.default)("There was a problem saving these settings.")})}),i},onBeforeRender:function(){this.unmountReact()},onRender:function(){this.mountReact()},onClose:function(){this.unmountReact()},onInputChange:function(e){var t=e.currentTarget,n=t.value;"checkbox"===t.type&&(n=t.checked?1:0),this.changes[t.id]=n},onSubmit:function(e){e.preventDefault(),this.submit()},onPlexPassLiteModalClose:function(){this.isPlexPassLiteModalOpen=!1,this.mountReact()}});t.a=P
},function(e,t,n){"use strict";var i=n(3237),a=n.n(i),r=n(18),s=r.a.ItemView.extend({className:"setup-error-container",template:a.a});t.a=s},function(e,t,n){"use strict";var i=n(3238),a=n.n(i),r=n(18),s=n(3487),o=n.n(s),l=n(3488),u=n.n(l),c=n(3489),d=n.n(c),p=r.a.ItemView.extend({className:"setup-intro-container",template:a.a,serializeData:function(){return{computerImg:o.a,mediaImg:u.a,playImg:d.a}}});t.a=p},function(e,t,n){"use strict"
;var i=n(3239),a=n.n(i),r=n(10),s=n.n(r),o=n(18),l=n(15),u=n(510),c=n(1930),d=n(438),p=o.a.Layout.extend({className:"setup-library-container",template:a.a,regions:{list:".setup-section-list-container"},events:{"click .add-section-btn":"onAddSectionClick"},metricsValue:function(){return this.collection.size()},initialize:function(e){var t=this.model,n=t.get("sections"),i=new u.a([],{server:t,url:"/services/defaultLibraries"});this.collection=n,
this.model.supports("defaultSections")&&e.isFirstVisitToSubset&&s.a.when(i.populate(),n.populate()).done(function(){n.length||i.forEach(function(e){var i=t.hasOwnerFeature("photo_autotags");"photo"===e.get("type")&&i&&e.set("enableAutoPhotoTags",!0),e.collection=n,n.add(e)})})},onRender:function(){this.list.show(new c.a({collection:this.collection}))},onAddSectionClick:function(e){e.preventDefault(),l.a.trigger("show:modal",new d.a({server:this.model}))}});t.a=p},function(e,t,n){"use strict"
;var i=n(3240),a=n.n(i),r=n(18),s=r.a.ItemView.extend({className:"setup-loading-container",template:a.a});t.a=s},function(e,t,n){"use strict";function i(e){if("setupSignIn"===e){var t=n.i(d.a)("appModel");return t.get("ui").get("signInLaunchPage").get("isFederatedAuthEnabled")||t.get("user").get("features").get(f.b)?M.a:I.a}return{setupIntro:D.a,setupLoading:C.a,setupError:w.a,setupBasic:P.a,setupLibrary:T.a,setupComplete:x.a}[e]}
var a=n(3241),r=n.n(a),s=n(3),o=n.n(s),l=n(10),u=n.n(l),c=n(18),d=n(13),p=n(15),h=n(29),f=n(112),v=n(34),m=n(64),g=n(28),y=n(422),b=n(141),S=n(893),I=n(921),M=n(922),C=n(2017),w=n(2014),D=n(2015),P=n(2012),T=n(2016),x=n(2013),E={setupIntro:"intro",setupError:"error",setupBasic:"name",setupLibrary:"library",setupComplete:"complete"},N=["com.plexapp.agents.imdb","com.plexapp.agents.thetvdb","com.plexapp.agents.lastfm"],L=c.a.Layout.extend({className:"container",template:r.a,maxAttempts:120,ui:{
header:".setup-header"},regions:{container:".setup-container"},events:{"click .segment-btn":"onNavClick","click .next-btn":"onNavClick","click .done-btn":"onDoneClick"},onlyAfterRender:["onAgentsSuccess","onAgentsFail","onUpdatesComplete"],initialize:function(e){o.a.bindAll(this,"start","onAgentsSuccess","onAgentsFail","onUpdatesComplete"),(0,n.i(d.a)("appStore").dispatch)(n.i(b.a)({allowLightPreset:!1})),this.subset=e.subset||"setupIntro",this.attempts=0,this._visitedSubsets={},
h.a.info("Starting the setup wizard")},serializeData:function(){return{subset:this.subset}},renderSubset:function(){var e=this;if(this.model.get("shared"))return void this.navigate("setupError");var t=n.i(d.a)("appModel"),i=t.get("user").server,a=i.populate();a.done(this.whenRendered(function(){this.navigate("setupIntro")})),a.fail(function(){t.get("primaryServer").get("desktop").get("settings").fetch().then(function(e){
return e.get("AcceptedEULA").get("value")===!0?u.a.Deferred().resolve():u.a.Deferred().reject()}).then(e.whenRendered(function(){e.navigate("setupIntro")})).fail(e.whenRendered(function(){e.navigate("setupSignIn")}))})},start:function(){if(this.attempts>=this.maxAttempts)return h.a.error("Failed to start the setup wizard after "+this.attempts+" attempts"),void this.navigate("setupError");this.attempts++;var e=this.model.get("startState");if(e)n.i(h.a)("Waiting for server to start ("+e+")"),
this.model.fetch().done(o.a.delay(this.start,500));else{var t=new y.a([],{server:this.model}),i=t.fetch({scope:"page",timeout:0});i.done(this.onAgentsSuccess),i.fail(this.onAgentsFail)}},navigate:function(e){var t="setupIntro"===e,a="setupSignIn"===e,r="setupLoading"===e,s=i(e),o=E[e];this.previousSubset=this.subset,this.subset=e,o&&n.i(d.a)("metrics").trackView({page:v.E,pane:o,firstRun:!0});var l=!this._visitedSubsets[e];this._visitedSubsets[e]=!0;var u=new s({model:this.model,isFirstRun:!0,
isFirstVisitToSubset:l});this.container.show(u),this.ui.header.toggleClass("hidden",t||a),this.$el.addClass(e),this.previousSubset!==e&&this.$el.removeClass(this.previousSubset),r&&this.start()},onRender:function(){n.i(d.a)("appModel").set("isFirstRun",!0),this.renderSubset()},onClose:function(){n.i(d.a)("appModel").set("isFirstRun",!1)},onAgentsSuccess:function(e){n.i(h.a)("Looking for a core agent");var t=N.find(function(t){return e.get(t)});t?(n.i(h.a)(t+" found"),n.i(S.a)(this.model),
g.a.execute("updateChannel",{server:this.model,silent:!0}).always(this.onUpdatesComplete)):(h.a.error("No core agents found"),this.navigate("setupError"))},onAgentsFail:function(){h.a.warn("Unable to request agents"),o.a.delay(this.start,500)},onUpdatesComplete:function(){this.navigate("setupBasic")},onNavClick:function(e){e.preventDefault();var t=u()(e.currentTarget),n=t.data("subset");t.hasClass("segment-btn")&&"setupBasic"===this.subset&&this.container.currentView?(e.preventDefault(),
this.container.currentView.submit()):(this.navigate(n),p.a.trigger("navigate",n,{trigger:!1}))},onDoneClick:function(e){e.preventDefault(),n.i(d.a)("metrics").trackClick({page:v.E,action:m.J,firstRun:!0}),p.a.trigger("navigate","dashboard")}});t.a=L},function(e,t,n){"use strict";var i=n(3242),a=n.n(i),r=n(18),s=n(13),o=n(141),l=n(1932),u=r.a.Layout.extend({className:"container",template:a.a,regions:{list:".announcements-container"},initialize:function(){(0,
n.i(s.a)("appStore").dispatch)(n.i(o.a)({allowLightPreset:!1}))},onRender:function(){this.list.show(new l.a({collection:this.collection}))}});t.a=u},function(e,t,n){"use strict";var i=n(3243),a=n.n(i),r=n(3),s=n.n(r),o=n(18),l=n(4),u=n(33),c=n(44),d=n(15),p=n(3031),h=n.n(p),f=n(3032),v=n.n(f),m=n(3033),g=n.n(m),y=o.a.ItemView.extend({className:"container queue-help-container",template:a.a,ui:{queueEmail:".queue-email",plexitBtn:".btn-plexit"},events:{"focus .queue-email":"onQueueEmailFocus",
"mouseup .queue-email":"onQueueEmailMouseUp","click .btn-plexit":"onPlexitClick","mousedown .btn-plexit":"onPlexitMouseDown","mouseup .btn-plexit":"onPlexitMouseUp"},initialize:function(e){this.queueEmail=e.queueEmail,"ie"===u.a.id?(this.stepsImgSrc=h.a,this.modalText=n.i(l.default)('Right click the "Plex It!" button and choose Add to Favorites so you can save videos to Watch Later.'),this.firstStepText=n.i(l.default)("Add the button above to your favorites bar.")):(this.stepsImgSrc=v.a,
this.modalText=n.i(l.default)('Drag the "Plex it!" button to your Bookmarks Bar so you can save videos to your Watch Later.'),this.firstStepText=n.i(l.default)("Drag the button above to your bookmarks bar."));var t=["OSX","Windows","Linux"];if(s.a.indexOf(t,u.a.platform)!==-1){var i="OSX"===u.a.platform?n.i(l.default)("\u2318 C"):n.i(l.default)("Ctrl C");this.copyCommand=n.i(l.default)("{1} to copy",i)}},serializeData:function(){return{queueEmail:this.queueEmail,copyCommand:this.copyCommand,
stepsImgSrc:this.stepsImgSrc,emailImgSrc:g.a,firstStepText:this.firstStepText}},onRender:function(){this.copyCommand&&this.$el.tooltip({selector:".queue-email",placement:"top",trigger:"focus"})},onQueueEmailFocus:function(e){this.ui.queueEmail.selectText()},onQueueEmailMouseUp:function(e){return!1},onPlexitClick:function(e){e.preventDefault();var t=new c.a({title:n.i(l.default)("Plex It!"),message:this.modalText,confirmLabel:n.i(l.default)("OK"),hideCancel:!0});d.a.trigger("show:modal",t)},
onPlexitMouseDown:function(){this.ui.plexitBtn.css("user-select","text")},onPlexitMouseUp:function(){this.ui.plexitBtn.css("user-select","none")}});t.a=y},function(e,t,n){"use strict";function i(e){var t=e.get("key");if(t===m.a.keys.WATCH_LATER){e.server;return"#!/playlist/"+t+"/help"}}var a=n(3244),r=n.n(a),s=n(3),o=n.n(s),l=n(10),u=n.n(l),c=n(18),d=n(13),p=n(4),h=n(15),f=(n(19),n(141)),v=n(1936),m=n(519),g=c.a.Layout.extend({className:"container",template:r.a,ui:{navLinks:".nav a",
allBadge:".all-btn > .badge",unwatchedBadge:".unwatched-btn > .badge",watchedBadge:".watched-btn > .badge"},regions:{list:".user-playlist-container"},events:{"click .nav a":"onNavClick"},initialize:function(e){this.listModel=e.listModel,this.collection=this.listModel.get("metadataItems"),(0,n.i(d.a)("appStore").dispatch)(n.i(f.a)({allowLightPreset:!1})),this.initSubset(e),this.subsets={all:this.collection,unwatched:this.listModel.filterUnwatched(),watched:this.listModel.filterWatched()},
this.listenTo(this.collection,{add:this.onCollectionChange,remove:this.onCollectionChange,"change:viewCount":this.onCollectionChange})},initSubset:function(e){var t=e.subset,i=this.listModel.get("key")+"!subset",a=n.i(d.a)("appModel").get("settings");t||(t=a.get(i)),t||(t="unwatched"),a.save(i,t),this.subset=t},serializeData:function(){var e=this.listModel.get("key");return{label:this.listModel.get("label"),helpRoute:i(this.listModel),defaultTarget:"_self",filters:[{title:n.i(p.default)("All"),
key:e,subset:"all"},{title:n.i(p.default)("Unwatched"),key:e,subset:"unwatched"},{title:n.i(p.default)("Watched"),key:e,subset:"watched"}]}},updateBadges:function(){var e={all:this.subsets.all.length,unwatched:this.subsets.unwatched.length,watched:this.subsets.watched.length};o.a.each(o.a.keys(e),function(t){var n=this.ui[t+"Badge"];n.text(e[t]),n.toggleClass("hidden",0===e[t])},this)},onRender:function(){this.list.show(new v.a({collection:this.subsets[this.subset]})),
this.ui.navLinks.filter('[href*="/'+this.subset+'"]').addClass("selected"),this.updateBadges()},onCollectionChange:function(){this.subsets.unwatched.set(this.listModel.filterUnwatched().models),this.subsets.watched.set(this.listModel.filterWatched().models),this.updateBadges()},onNavClick:function(e){e.preventDefault(),this.ui.navLinks.removeClass("selected"),u()(e.currentTarget).addClass("selected"),this.initSubset({subset:o.a.last(e.currentTarget.href.split("/"))}),this.list.show(new v.a({
collection:this.subsets[this.subset]})),h.a.trigger("navigate","userPlaylist",{key:this.listModel.get("key"),subset:this.subset,trigger:!1})}});t.a=g},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.name,i=e.width,a=e.height,s=o()(e,["className","name","width","height"]),l=n.toUpperCase().split(" "),c=l[0].charAt(0),p=l[l.length-1].charAt(0),h=l.length>1?""+c+p:n.charAt(0),f={fontSize:Math.max(14,Math.min(Math.round(i/4),42)),lineHeight:a+"px"}
;return u.a.createElement("div",r()({style:f,className:(t||"")+" "+(d.a.anagram||"")},s),h)}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(2683),d=n.n(c);i.defaultProps={width:13,height:13},t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=n.n(d),h=n(4),f=n(20),v=n(26),m=n(73),g=n(245),y=n(2686),b=n.n(y),S=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onLineHeightRef=function(e){
e&&a.setState({lineHeight:e.clientHeight})},a.onMeasure=function(e){var t=e.height;a.setState({expandedHeight:t})},a.onTogglePress=function(){a.setState({isCollapsed:!a.state.isCollapsed,allowTransition:!0})},a.state={isCollapsed:!0,allowTransition:!1,lineHeight:0,expandedHeight:0},a}return c()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(v.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.className,i=e.children,r=e.maxLines,s=this.state,o=s.isCollapsed,l=s.allowTransition,u=s.expandedHeight,c=s.lineHeight,d=c*r,v=u>d,y={overflow:"hidden",maxHeight:o?d:u};return a()("div",{className:t},void 0,!c&&p.a.createElement("div",{className:b.a.lineHeightMeasure,ref:this.onLineHeightRef}),a()("div",{className:l&&b.a.contentTransition,style:y},void 0,a()(m.a,{ignoreWidth:!0,ignorePosition:!0,onMeasure:this.onMeasure},void 0,i)),v&&a()(g.a,{className:b.a.readMore,
arrowClassName:b.a.readMoreArrow,direction:o?f.f.DOWN:f.f.UP,isSelected:!1,onPress:this.onTogglePress},void 0,o?n.i(h.default)("Read More"):n.i(h.default)("Read Less")))},t}(d.Component);S.defaultProps={maxLines:3},t.a=S},function(e,t,n){"use strict";function i(e){var t=e.className,n=o()(e,["className"]);return u.a.createElement(c.a,r()({name:"plex-icon-pp-badge-560",className:(p.a.plexPassIcon||"")+" "+(t||"")},n))}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(27),d=n(2691),p=n.n(d)
;t.a=i},function(e,t,n){"use strict";function i(e,t){return e>0?Math.min(Math.floor(e)+1,t):0}function a(e){var t=e.className,n=e.icon,i=e.isVisible,a=e.isPulsing,r=(t||"")+" "+(!i&&N.a.hidden||"")+" "+(a&&N.a.pulsing||"");return g()(D.a,{name:n,className:r})}function r(e){return I.a.createElement(a,v()({icon:"plex-icon-star-empty-560",className:N.a.emptyStar},e))}function s(e){return I.a.createElement(a,v()({icon:"plex-icon-star-full-560",className:N.a.fullStar},e))}function o(){
return g()(D.a,{name:"plex-icon-star-dot-560",className:N.a.dot})}var l=n(7),u=n.n(l),c=n(9),d=n.n(c),p=n(8),h=n.n(p),f=n(6),v=n.n(f),m=n(2),g=n.n(m),y=n(3),b=n.n(y),S=n(0),I=n.n(S),M=n(4),C=n(26),w=n(210),D=n(27),P=n(365),T=n(257),x=n.n(T),E=n(2696),N=n.n(E),L=n.i(w.a)(x.a.starPulseSpeed),A=function(e){function t(n,a){u()(this,t);var r=d()(this,e.call(this,n,a));return r.onSliderChange=function(e){var t=e.positionValue,n=r.props.starCount,a=i(t,n);r.setState({currentValue:a})},
r.onSliderMove=function(e){var t=e.positionValue,n=r.props.starCount,a=i(t,n);0!==a&&r.setState({currentValue:a})},r.onSlideComplete=function(e){var t=e.positionValue,n=r.props.starCount,a=i(t,n);r.state.currentRating!==a&&(r._setRating(a),r.props.onRatingChange(a))},r.onMouseLeave=function(e){e.pageX;r.setState({currentValue:r.state.currentRating})},r.state={currentValue:n.value,currentRating:n.value,isPulsing:!1},r}return h()(t,e),t.prototype.componentWillReceiveProps=function(e){var t=e.value
;t=Math.max(0,Math.min(t,this.props.starCount)),this.state.currentRating!==t&&this._setRating(t)},t.prototype.shouldComponentUpdate=function(e,t){return n.i(C.a)(this,e,t)},t.prototype.componentDidUpdate=function(e,t){var n=this;this.state.currentRating!==t.currentRating&&(clearTimeout(this._pulseTimeoutID),this._pulseTimeoutID=setTimeout(function(){n.setState({isPulsing:!1})},L))},t.prototype.componentWillUnmount=function(){clearTimeout(this._pulseTimeoutID)},t.prototype._setRating=function(e){
this.setState({currentValue:e,currentRating:e,isPulsing:!0})},t.prototype.render=function(){var e=this.props,t=e.starCount,i=e.className,a=this.state,l=a.currentValue,u=a.currentRating,c=a.isPulsing,d=!this.state.currentValue,p=!this.props.onRatingChange,h=b.a.range(t);return g()("div",{className:(i||"")+" "+(N.a.starRating||"")+" "+(p&&N.a.isReadOnly||"")+" "+(d&&N.a.isUnrated||""),onMouseLeave:this.onMouseLeave},void 0,g()("div",{},void 0,h.map(function(e){return g()(o,{},e)})),g()("div",{
className:N.a.stars},void 0,h.map(function(e){var t=e>l-1;return g()(r,{isVisible:t},e)})),g()("div",{className:N.a.stars},void 0,h.map(function(e){var t=e<=l-1;return g()(s,{isVisible:t,isPulsing:c&&u>e},e)})),!p&&g()(P.a,{className:N.a.slider,trackClassName:N.a.track,label:n.i(M.default)("User Rating"),value:this.state.currentValue,min:0,max:t,stepSize:1,autoHideThumb:!0,onChange:this.onSliderChange,onMove:this.onSliderMove,onDragComplete:this.onSlideComplete}))},t}(S.Component)
;A.defaultProps={starCount:5,value:0},t.a=A},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(23),f=n(27),v=n(2697),m=n.n(v),g=a()(f.a,{name:"plex-icon-remove-560"}),y=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u];return n=i=l()(this,e.call.apply(e,[this].concat(o))),i.onPress=function(){var e=i.props;(0,e.onRemove)(e.index)},a=n,l()(i,a)}
return c()(t,e),t.prototype.render=function(){var e=this.props,t=e.className,i=e.removeClassName,r=e.tag,s=e.isDisabled,o=e.getTagDisplayValue;return a()("span",{className:t},void 0,!s&&a()(h.a,{className:i,"aria-label":n.i(p.default)("Remove Tag"),onPress:this.onPress},void 0,g),a()("span",{},void 0,o(r)))},t}(d.Component);y.defaultProps={className:m.a.tag,removeClassName:m.a.remove},t.a=y},function(e,t,n){"use strict";function i(e){
var t=e.ticks,i=e.pixelProportion,a=e.majorTickGap,r=e.minorTickGap,s=h.a.where(t,{type:m.a}),o=h.a.where(t,{type:m.b}),l=n.i(v.a)({items:s,gap:i*a});return n.i(v.a)({items:o,existingItems:l,gap:i*r})}var a=n(2),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(3),h=n.n(p),f=n(0),v=(n.n(f),n(2554)),m=n(1062),g=n(2698),y=n.n(g),b=function(e){function t(n,a){o()(this,t);var r=u()(this,e.call(this,n,a));return r.state={ticks:i(n)},r}return d()(t,e),
t.prototype.componentWillReceiveProps=function(e){var t=e.ticks,n=e.pixelProportion,a=e.majorTickGap,r=e.minorTickGap,s=this.props.ticks!==t,o=this.props.pixelProportion!==n,l=this.props.majorTickGap!==a,u=this.props.minorTickGap!==r;(s||o||l||u)&&this.setState({ticks:i(e)})},t.prototype.render=function(){return r()("div",{className:y.a.container},void 0,r()("div",{className:y.a.ticks},void 0,this.state.ticks.map(function(e){var t=e.type,n=e.position,i=e.label;return r()("div",{className:y.a[t],
style:{top:100*n+"%"}},n,i&&"major"===t&&r()("div",{className:y.a.label},void 0,i))})))},t}(f.Component);b.defaultProps={majorTickGap:20,minorTickGap:5},t.a=b},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(11)),h=n(5),f=(n.n(h),n(942)),v=n.i(h.createSelector)(function(e){return e.ui.background},function(e){return{serverEntityID:e.server,url:e.imageUrl,allowLightPreset:e.allowLightPreset,
isBackgroundPending:e.isBackgroundPending}}),m=function(e){function t(){return s()(this,t),l()(this,e.apply(this,arguments))}return c()(t,e),t.prototype.shouldComponentUpdate=function(e){return!e.isBackgroundPending},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.url,i=e.allowLightPreset;return a()(f.a,{serverEntityID:t,url:n,allowPreset:!0,allowLightPreset:i})},t}(d.Component);t.a=n.i(p.b)(function(e){return v})(m)},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(20),f=n(47),v=n(463),m=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onPlexPassPress=function(){a.setState({isPlexPassModalOpen:!0})},a.onPlexPassModalClose=function(){a.setState({isPlexPassModalOpen:!1})},a.state={isPlexPassModalOpen:!1},a}return c()(t,e),t.prototype.getButtonText=function(){var e=this.props,t=e.isSignedIn,i=e.hasPlexPass
;return t?t&&i?n.i(p.default)("Claim Server"):t&&!i?n.i(p.default)("Get a Plex Pass"):void 0:n.i(p.default)("Sign In")},t.prototype.render=function(){var e=this.props,t=e.machineIdentifier,n=e.modalMetricsProperties,i=e.isSignedIn,r=e.isClaimed,s=e.hasPlexPass;if(s&&r)return null;var o=this.state.isPlexPassModalOpen,l=encodeURIComponent(t),u=i&&!s;return a()(f.a,{kind:h.b.PRIMARY,size:h.d.LARGE,to:u?void 0:"#!/settings/server/"+l,onPress:u?this.onPlexPassPress:void 0
},void 0,this.getButtonText(),u&&a()(v.a,{metricsProperties:n,isOpen:o,onModalClose:this.onPlexPassModalClose}))},t}(d.Component);t.a=m},function(e,t,n){"use strict";function i(e){return c.a.createElement("input",l()({type:"text"},e))}function a(e){var t=e.inputComponent,n=e.suggestionsComponent,i=e.theme,a=s()(e,["inputComponent","suggestionsComponent","theme"]);return c.a.createElement(p.a,l()({},a,{renderInputComponent:t,renderSuggestionsContainer:n,theme:l()({},f.a,i)}))}
var r=n(14),s=n.n(r),o=n(6),l=n.n(o),u=n(0),c=n.n(u),d=n(3337),p=n.n(d),h=n(2707),f=n.n(h);a.defaultProps={theme:f.a,inputComponent:i},t.a=a},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(6),s=n.n(r),o=n(14),l=n.n(o),u=n(7),c=n.n(u),d=n(9),p=n.n(d),h=n(8),f=n.n(h),v=n(0),m=n.n(v),g=n(2041),y=n(2030),b=n(2708),S=n.n(b),I=function(e){function t(n,i){c()(this,t);var a=p()(this,e.call(this,n,i));return a.setTagsInputRef=function(e){a.tagsInputRef=e},a.onInputChange=function(e){a.setState({
inputValue:e})},a.onSuggestionSelected=function(e,t){var n=t.suggestion;a.tagsInputRef.addTag(a.props.makeTagFromSuggestion(n))},a.renderInputComponent=function(e){var t=e.ref,n=l()(e,["ref"]),i=a.props,r=i.className,o=i.shouldRenderSuggestions,u=i.tagComponent,c=i.validationRegex,d=i.value,p=i.makeTag,h=i.getTagDisplayValue,f=i.getTagValue,v=i.onChange,y=a.state.inputValue;return m.a.createElement(g.a,{className:r,inputValue:y,inputProps:s()({},n,{inputRef:t}),value:d,validationRegex:c,
tagComponent:u,addOnBlur:!o(y),getTagValue:f,getTagDisplayValue:h,makeTag:p,ref:a.setTagsInputRef,onInputChange:a.onInputChange,onChange:v})},a.state={inputValue:""},a}return f()(t,e),t.prototype.render=function(){var e=this.props,t=e.suggestions,n=e.getSuggestionValue,i=e.renderSuggestion,r=e.suggestionsFilter,s=e.shouldRenderSuggestions,o=e.onSuggestionsClearRequested,l=e.onSuggestionsFetchRequested,u=this.state.inputValue;return a()(y.a,{suggestions:t.filter(function(e){return r(e,u)}),
shouldRenderSuggestions:s,getSuggestionValue:n,renderSuggestion:i,focusInputOnSuggestionClick:!1,focusFirstSuggestion:!0,inputProps:{value:u,onChange:function(e,t){t.newValue;"enter"===t.method&&e.preventDefault()}},theme:{input:S.a.input},inputComponent:this.renderInputComponent,onSuggestionSelected:this.onSuggestionSelected,onSuggestionsClearRequested:o,onSuggestionsFetchRequested:l})},t}(v.Component);I.defaultProps={className:S.a.tagsInput,suggestions:[],value:[],
shouldRenderSuggestions:function(){return!1}},t.a=I},function(e,t,n){"use strict";function i(e){return o.a.createElement(u.a,r()({mask:d,pipe:p,keepCharPositions:!0,placeholder:c},e))}var a=n(6),r=n.n(a),s=n(0),o=n.n(s),l=n(3457),u=(n.n(l),n(2036)),c="yyyy-mm-dd",d=[/\d/,/\d/,/\d/,/\d/,"-",/\d/,/\d/,"-",/\d/,/\d/],p=n.i(l.createAutoCorrectedDatePipe)("yyyy-mm-dd");i.defaultProps={placeholderChar:"\u2000",guide:!1},t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.children,n=r()(e,["children"]);return o.a.createElement("div",n,t)}var a=n(14),r=n.n(a),s=n(0),o=n.n(s),l=n(2714),u=n.n(l);i.defaultProps={className:u.a.group},t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.name,i=e.labelText,a=e.showErrors,s=e.errors;return r()(o.a,{className:t,showErrors:a,errors:s,name:n,labelText:i})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(443)),l=n(2715),u=n.n(l);i.defaultProps={className:u.a.label},t.a=i},function(e,t,n){"use strict"
;function i(e){var t=e.inputClassName,n=e.name,i=e.labelText,a=e.showErrors,s=e.errors,l=e.leftLabel,c=u()(e,["inputClassName","name","labelText","showErrors","errors","leftLabel"]);return o()(h.a,{},void 0,l&&o()(f.a,{hasError:a,errors:s,name:n,labelText:i}),d.a.createElement(v.a,r()({className:t,name:n,type:"number",hasError:a},c)),!l&&o()(f.a,{hasError:a,errors:s,name:n,labelText:i}))}
var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(157),h=n(2033),f=n(2034),v=n(167),m=n(2716),g=n.n(m);i.defaultProps={inputClassName:g.a.input,leftLabel:!0},t.a=n.i(p.a)(i)},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(14),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(3458),m=(n.n(v),n(91)),g=n(2717),y=n.n(g),b=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o]
;return n=i=c()(this,e.call.apply(e,[this].concat(s))),i.setInputRef=function(e){i.inputRef=e},i.onChange=function(e){i.textMaskInputElement.update(),i.props.onChange(i.textMaskInputElement.state.previousConformedValue)},a=n,c()(i,a)}return p()(t,e),t.prototype.componentDidMount=function(){var e=this.props.value,t=this.props,i=t.mask,a=t.guide,r=t.pipe,s=t.placeholderChar,o=t.keepCharPositions;this.textMaskInputElement=n.i(v.createTextMaskInputElement)({inputElement:this.inputRef,mask:i,guide:a,
pipe:r,placeholderChar:s,keepCharPositions:o}),this.textMaskInputElement.update(e)},t.prototype.componentDidUpdate=function(){this.textMaskInputElement.update(this.props.value)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.errorClassName,i=e.disabledClassName,r=e.isDisabled,o=e.type,l=e.name,u=(e.initialValue,e.value),c=e.size,d=(e.mask,e.guide,e.pipe,e.placeholderChar,e.keepCharPositions,e.hasError),p=(e.errors,e.validations,e.onChange,
s()(e,["className","errorClassName","disabledClassName","isDisabled","type","name","initialValue","value","size","mask","guide","pipe","placeholderChar","keepCharPositions","hasError","errors","validations","onChange"]));return f.a.createElement("input",a()({},p,{className:(t||"")+" "+(y.a[c]||"")+" "+(r&&i||"")+" "+(d&&n||""),id:l,name:l,type:o,disabled:r,defaultValue:u,ref:this.setInputRef,onChange:this.onChange}))},t}(h.Component);b.defaultProps={className:y.a.input,
errorClassName:y.a.hasError,disabledClassName:y.a.isDisabled,isDisabled:!1,size:m.LARGE,type:"text",hasError:!1},t.a=b},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),s=n.n(r),o=n(14),l=n.n(o),u=n(7),c=n.n(u),d=n(9),p=n.n(d),h=n(8),f=n.n(h),v=n(3),m=n.n(v),g=n(0),y=n.n(g),b=n(50),S=n(20),I=n(68),M=n(93),C=n(245),w=function(e){function t(i,a){c()(this,t);var r=p()(this,e.call(this,i,a));return r.onToggleMenuPress=function(e){r.setState({isMenuOpen:!r.state.isMenuOpen})},
r.onMenuClose=function(e){r.setState({isMenuOpen:!1})},r.onSelectPress=function(e){return function(t){r.props.onChange(e)}},r.state={isMenuOpen:!1},r._menuInputButtonID=n.i(b.a)(),r}return f()(t,e),t.prototype.getSelectedValue=function(e,t){var n=m.a.find(e,function(e){return m.a.isString(e)?e===t:m.a.keys(e)[0]===t});return m.a.isString(n)?n:n[m.a.keys(n)[0]]},t.prototype.render=function(){var e=this,t=this.props,n=(t.name,
t.size),i=t.kind,r=t.value,o=t.values,u=l()(t,["name","size","kind","value","values"]);return s()(C.a,{id:this._menuInputButtonID,size:n,kind:i,direction:this.state.isMenuOpen?S.f.UP:S.f.DOWN,onPress:this.onToggleMenuPress},void 0,this.getSelectedValue(o,r),y.a.createElement(I.a,a()({isOpen:this.state.isMenuOpen,target:this._menuInputButtonID,onMenuClose:this.onMenuClose},u),o.map(function(t){if(m.a.isString(t))return s()(M.a,{isSelected:t===r,onPress:e.onSelectPress(t)},t,t)
;var n=m.a.keys(t),i=n[0];return s()(M.a,{isSelected:i===r,onPress:e.onSelectPress(i)},i,t[i])})))},t}(g.Component);t.a=w},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=n.n(d),h=n(167),f=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u];return n=i=l()(this,e.call.apply(e,[this].concat(o))),i.onChange=function(e){var t=e?parseInt(e,10):null;i.props.onChange(t)},a=n,l()(i,a)
}return c()(t,e),t.prototype.render=function(){return p.a.createElement(h.a,a()({type:"number"},this.props,{onChange:this.onChange}))},t}(d.Component);t.a=f},function(e,t,n){"use strict";function i(e){var t=e.inputClassName,n=e.name,i=e.labelText,a=e.helpText,s=e.showErrors,l=e.errors,c=u()(e,["inputClassName","name","labelText","helpText","showErrors","errors"]);return o()(h.a,{},void 0,o()(f.a,{showErrors:s,errors:l,name:n,labelText:i}),d.a.createElement(m.a,r()({className:t,name:n,
type:"number",hasError:s},c)),a&&o()(v.a,{},void 0,a))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(157),h=n(214),f=n(443),v=n(442),m=n(2038),g=n(2718),y=n.n(g);i.defaultProps={inputClassName:y.a.input},t.a=n.i(p.a)(i)},function(e,t,n){"use strict";function i(e){
var t=e.formGroupClassName,n=e.formLabelClassName,i=e.formInputClassName,a=e.name,s=e.value,l=e.labelText,c=e.showErrors,p=e.errors,f=u()(e,["formGroupClassName","formLabelClassName","formInputClassName","name","value","labelText","showErrors","errors"]),v=""===s?null:b[h()(s).score],S=p[0];return o()(m.a,{className:t},void 0,o()(g.a,{hasError:c,name:a,className:n},void 0,l,v&&!c&&o()("span",{},void 0," \u2014 ",o()("span",{style:{color:v.color}
},void 0,v.translateFn())),c&&" \u2014 "+S),d.a.createElement(y.a,r()({className:i,name:a,type:"password",value:s,hasError:c},f)))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(728),h=n.n(p),f=n(4),v=n(157),m=n(214),g=n(126),y=n(167),b={0:{color:"#ff5533",translateFn:function(){return n.i(f.default)("Too weak")}},1:{color:"#ee8833",translateFn:function(){return n.i(f.default)("Very weak")}},2:{color:"#eebb00",translateFn:function(){
return n.i(f.default)("Somewhat weak")}},3:{color:"#bbbb33",translateFn:function(){return n.i(f.default)("Somewhat Strong")}},4:{color:"#66bb55",translateFn:function(){return n.i(f.default)("Very Strong")}}};i.defaultProps={showErrors:!1},t.a=n.i(v.a)(i)},function(e,t,n){"use strict";function i(e){return window.clipboardData?window.clipboardData.getData("Text"):e.clipboardData?e.clipboardData.getData("text/plain"):""}function a(e){var t=e.inputRef,n=(e.addTag,v()(e,["inputRef","addTag"]))
;return b.a.createElement("input",h()({type:"text",ref:t},n))}function r(e){return e.split(" ").map(function(e){return e.trim()})}var s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(6),h=n.n(p),f=n(14),v=n.n(f),m=n(3),g=n.n(m),y=n(0),b=n.n(y),S=n(2026),I=n(2720),M=n.n(I),C=function(e){function t(n,a){o()(this,t);var r=u()(this,e.call(this,n,a));return r.addTag=function(e){return r._addTags([e])},r.setInputRef=function(e){r.inputRef=e},r.setDivRef=function(e){r.divRef=e},
r.onPaste=function(e){var t=r.props,n=t.addOnPaste,a=t.pasteSplit,s=t.makeTag;if(n){e.preventDefault();var o=i(e),l=a(o).map(function(e){return s(e)});r._addTags(l)}},r.onKeyDown=function(e){var t=r.props.inputProps.onKeyDown;if(t&&t(e),!e.defaultPrevented){var n=r.props,i=n.value,a=n.removeKeys,s=n.addKeys,o=n.inputValue,l=o,u=""===l,c=e.keyCode,d=s.indexOf(c)!==-1,p=a.indexOf(c)!==-1;if(d){(r._accept()||13===c)&&e.preventDefault()}p&&i.length>0&&u&&(e.preventDefault(),r._removeTag(i.length-1))
}},r.onClick=function(e){e.target===r.divRef&&(r.inputRef&&"function"==typeof r.inputRef.focus&&r.inputRef.focus(),r.onFocus())},r.onChange=function(e){var t=r.props.onInputChange,n=r.props.inputProps.onChange,i=e.target.value;n&&n(e),t(i)},r.onFocus=function(e){var t=r.props.inputProps.onFocus;t&&t(e),r.setState({isFocused:!0})},r.onBlur=function(e){var t=r.props.inputProps.onBlur;if(r.setState({isFocused:!1}),null!=e&&(t&&t(e),r.props.addOnBlur)){var n=r.props.makeTag(e.target.value)
;r._addTags([n])}},r.onRemove=function(e){r._removeTag(e)},r.state={isFocused:!1},r}return d()(t,e),t.prototype._removeTag=function(e){var t=this.props.value.slice(0);if(e>-1&&e<t.length){var n=t.splice(e,1);this.props.onChange(t,n,[e])}},t.prototype._clearInput=function(){this.props.onInputChange("")},t.prototype._addTags=function(e){var t=this.props,n=t.validationRegex,i=t.onlyUnique,a=t.maxTags,r=t.value,s=t.getTagValue,o=t.onChange,l=t.onValidationReject,u=void 0
;if(i&&(e=g.a.uniq(e,function(e){return s(e)})),n&&(u=e.filter(function(e){return!n.test(s(e))}),e=e.filter(function(e){return n.test(s(e))})),e=e.filter(function(e){var t=s(e);return t?t.trim().length>0:t}),a>=0){var c=Math.max(a-r.length,0);e=e.slice(0,c)}if(l&&u&&u.length>0&&l(u),e.length>0){for(var d=r.concat(e),p=[],h=0;h<e.length;h++)p.push(r.length+h);i&&(d=g.a.uniq(d,function(e){return s(e)}));var f=d.length!==r.length;return f&&o(d,e,p),this._clearInput(),f}return this._clearInput(),!1
},t.prototype._accept=function(){var e=this.props.inputValue;return""!==e&&(e=this.props.makeTag(e),this._addTags([e]))},t.prototype.inputProps=function(){var e=this.props.inputProps,t=(e.onChange,e.onFocus,e.onBlur,v()(e,["onChange","onFocus","onBlur"])),n=h()({className:M.a.input,placeholder:""},t);return this.props.isDisabled&&(n.isDisabled=!0),n},t.prototype.render=function(){
var e=this,t=this.props,n=t.className,i=t.focusedClassName,a=t.value,r=t.inputValue,s=t.getTagValue,o=t.getTagDisplayValue,l=t.tagProps,u=t.tagComponent,c=t.inputComponent,d=t.isDisabled,p=this.state.isFocused;return b.a.createElement("div",{className:(n||"")+" "+(p&&i||""),ref:this.setDivRef,onClick:this.onClick},a.map(function(t,n){return b.a.createElement(u,h()({key:s(t)+"-"+n,index:n,tagCount:a.length,tag:t,isDisabled:d,getTagDisplayValue:o,onRemove:e.onRemove},l))
}),b.a.createElement(c,h()({key:"input",inputRef:this.setInputRef,value:r},this.inputProps(),{addTag:this.addTag,onPaste:this.onPaste,onKeyDown:this.onKeyDown,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur})))},t}(y.Component);C.defaultProps={className:M.a.tagsInput,addKeys:[9,13],addOnBlur:!1,addOnPaste:!1,inputProps:{},removeKeys:[8],inputComponent:a,tagComponent:S.a,pasteSplit:r,tagProps:{},onlyUnique:!0,maxTags:-1,validationRegex:null,isDisabled:!1,
getTagDisplayValue:function(e){return e},getTagValue:function(e){return e},makeTag:function(e){return e}},t.a=C},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(14),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(91),m=n(2721),g=n.n(m),y=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o];return n=i=c()(this,e.call.apply(e,[this].concat(s))),i.onChange=function(e){i.props.onChange(e.target.value)},
a=n,c()(i,a)}return p()(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.errorClassName,i=e.disabledClassName,r=e.isDisabled,o=e.size,l=e.name,u=e.hasError,c=s()(e,["className","errorClassName","disabledClassName","isDisabled","size","name","hasError"]);return f.a.createElement("textarea",a()({},c,{id:l,name:l,disabled:r,className:(t||"")+" "+(g.a[o]||"")+" "+(r&&i||"")+" "+(u&&n||""),onChange:this.onChange}))},t}(h.Component);y.defaultProps={className:g.a.textArea,
errorClassName:g.a.hasError,disabledClassName:g.a.isDisabled,isDisabled:!1,size:v.LARGE,hasError:!1,rows:2},t.a=y},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(65),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=(n.n(h),n(91),n(167)),v=n(215),m=n(2723),g=n.n(m),y=function(e){function t(n,i){l()(this,t);var a=c()(this,e.call(this,n,i));return a.onValueChange=function(e){a.setState({inputValue:e},function(){a.props.onChange(""+e+a.state.selectedUnit)})},
a.onUnitChange=function(e){a.setState({selectedUnit:e},function(){a.props.onChange(""+a.state.inputValue+e)})},a.state=a.getStateFromProps(n),a}return p()(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.value!==e.value&&this.setState(this.getStateFromProps(e))},t.prototype.getStateFromProps=function(e){var t=e.units,n=t[0],i=e.value.match(/^([0-9]+)?([a-zA-Z]+)?$/)||[],a=i[1],r=void 0===a?"":a,o=i[2];return{inputValue:r,selectedUnit:void 0===o?s()(n)[0]:o}},
t.prototype.render=function(){var e=this.props,t=e.textInputClassName,n=e.selectInputClassName,i=e.units,r=e.size;return a()("span",{className:g.a.inputs},void 0,a()(f.a,{name:"unitValue",className:t,type:"number",value:this.state.inputValue,size:r,onChange:this.onValueChange}),a()(v.a,{name:"unit",className:n,value:this.state.selectedUnit,values:i,size:r,onChange:this.onUnitChange}))},t}(h.Component);t.a=y},function(e,t,n){"use strict";function i(e){
var t=e.children,n=e.className,i=e.size,a=e.isDisabled;return r()("div",{role:"menu",className:(n||"")+" "+(u.a[i]||"")+" "+(a&&u.a.isDisabled||"")},void 0,t)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(20)),l=n(2730),u=n.n(l);i.defaultProps={className:u.a.menu,size:o.d.MEDIUM,isDisabled:!1},t.a=i},function(e,t,n){"use strict";function i(e){return o.a.createElement(u.a,e,c)}var a=n(2),r=n.n(a),s=n(0),o=n.n(s),l=n(38),u=n(948),c=r()(l.a,{});t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.children,n=e.className,i=e.target,a=e.attachment,r=e.options,o=e.isOpen,u=(e.onMenuClose,c()(e,["children","className","target","attachment","options","isOpen","onMenuClose"]));return l()(v.a,{className:S.a.tooltipPortal,target:i,options:r||C[a],isOpen:o,closeTimeout:I},void 0,l()(f.a,{transitionName:M,transitionAppearTimeout:I,transitionEnterTimeout:I,transitionLeaveTimeout:I},void 0,o&&p.a.createElement("div",s()({className:n||S.a[a]},u),t)))}
var a,r=n(6),s=n.n(r),o=n(2),l=n.n(o),u=n(14),c=n.n(u),d=n(0),p=n.n(d),h=n(210),f=n(350),v=n(865),m=n(257),g=n.n(m),y=n(20),b=n(2747),S=n.n(b),I=n.i(h.a)(g.a.tooltipSpeed),M={appear:S.a.enter,appearActive:S.a.enterActive,enter:S.a.enter,enterActive:S.a.enterActive,leave:S.a.leave,leaveActive:S.a.leaveActive},C=(a={},a[y.e.TOP_LEFT]={placement:"top-start"},a[y.e.TOP_CENTER]={placement:"top"},a[y.e.TOP_RIGHT]={placement:"top-end"},a[y.e.BOTTOM_LEFT]={placement:"bottom-start"},
a[y.e.BOTTOM_CENTER]={placement:"bottom"},a[y.e.BOTTOM_RIGHT]={placement:"bottom-end"},a[y.e.MIDDLE_LEFT]={placement:"auto-start"},a[y.e.MIDDLE_RIGHT]={placement:"auto-end"},a);i.defaultProps={attachment:y.e.BOTTOM_CENTER},t.a=i},function(e,t,n){"use strict";var i=n(14),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=n.n(d),h=function(e){function t(){return s()(this,t),l()(this,e.apply(this,arguments))}return c()(t,e),t.prototype.render=function(){
var e=this.props,t=e.children,n=a()(e,["children"]);return p.a.createElement("div",n,t)},t}(d.Component);t.a=h},function(e,t,n){"use strict";function i(e,t){return function(n){return c.a.createElement(t,l()({},e,n))}}function a(e){var t=e.serverEntityID,a=e.providerEntityID,r=e.metadataListEntityID,o=e.metadataItemEntityIDs,u=e.containerKey,f=e.listType,v=e.listContext,m=e.columnAdjustment,g=e.populatedRange,y=(e.hubLink,
s()(e,["serverEntityID","providerEntityID","metadataListEntityID","metadataItemEntityIDs","containerKey","listType","listContext","columnAdjustment","populatedRange","hubLink"]));return c.a.createElement(p.a,l()({},y,{containerKey:u,listType:f,listContext:v,keyPropName:"metadataItemEntityID",items:o,itemsOffset:g.start,layout:n.i(d.a)(f,v,m,1),cellRenderer:i({serverEntityID:t,providerEntityID:a,metadataListEntityID:r,containerKey:u},h.a)}))}
var r=n(14),s=n.n(r),o=n(6),l=n.n(o),u=n(0),c=n.n(u),d=(n(351),n(32),n(465)),p=n(447),h=n(2051);t.a=a},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,i=e.metadataKey,a=e.route,s=e.imageWidth,l=e.imageHeight,f=e.imageUrl,v=e.isOffscreen,m=e.isOtherItemSelected,g=e.onMouseEnter;return r()("div",{className:u.a.cardContainer,"data-qa-id":"directoryPosterCard--"+i},i,r()("div",{className:u.a.card,style:{width:s,height:l}},void 0,r()("div",{
className:(u.a.face||"")+" "+(m&&u.a.faceIsOtherItemSelected||"")},void 0,!v&&r()(o.a,{serverEntityID:t,url:f,width:s,height:l,backgroundPosition:"center"}),r()("div",{className:(u.a.overlay||"")+" "+(m&&u.a.overlayIsOtherItemSelected||""),onMouseEnter:g},void 0,r()("div",{className:u.a.overlayBackground}),r()(c.a,{className:u.a.overlayLink,to:a}),m&&r()(d.a,{className:u.a.overlaySelectCoverButton,component:c.a,tooltip:n.i(h.default)("A different type is selected"),
tooltipAttachment:p.e.TOP_CENTER,showOnFocus:!1,hideOnPress:!1})))))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(611)),l=n(2748),u=n.n(l),c=n(23),d=n(369),p=n(20),h=n(4);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.serverEntityID,a=e.cellX,s=e.cellY,l=e.cellWidth,p=e.cellHeight,f=e.showScrollPlaceholder,v=e.showOffscreenPlaceholder,m=e.metadataKey,g=e.isOtherItemSelected,y=e.imageWidth,b=e.imageHeight,S=e.imageUrl,I=e.title,M=e.route,C=e.onMouseEnter,w=!m,D=w||f
;return r()(u.a,{className:t,cellX:a,cellY:s,cellWidth:l,cellHeight:p},void 0,D?r()("div",{className:(h.a.placeholder||"")+" "+(g&&h.a.isOtherItemSelected||""),style:{width:y,height:b}}):r()(c.a,{serverEntityID:i,metadataKey:m,route:M,imageWidth:y,imageHeight:b,imageUrl:S,isOtherItemSelected:g,isOffscreen:v,onMouseEnter:C}),r()("div",{className:h.a.titleContainer},void 0,w?n.i(o.default)("Loading..."):r()(d.a,{className:h.a.title,title:I,to:M},void 0,I)))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),
n(4)),l=n(139),u=n(99),c=n(2049),d=n(23),p=n(2749),h=n.n(p);t.a=n.i(l.a)(i)},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(function(e,t){return t.cellWidth},n.i(s.a)(),n.i(o.a)(),l.a,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],i=arguments[3];return{metadataKey:t.key,isOtherItemSelected:!!i.activeSelectionType,imageWidth:e,imageHeight:e,imageUrl:t.thumb,title:t.title,route:n}})}var a=n(11),r=n(5),s=(n.n(r),
n(21)),o=n(1371),l=n(83),u=n(2050);t.a=n.i(a.b)(i)(u.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(89),f=n(285),v=n(20),m=n(23),g=n(47),y=n(941),b=n(943),S=n(2061),I=n(952),M=n(2750),C=n.n(M),w={context:h.e},D=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onCreateDVRPress=function(){a.setState({isDVRSetupModalOpen:!0})},a.onDVRSetupModalClose=function(){a.setState({
isDVRSetupModalOpen:!1})},a.state={isDVRSetupModalOpen:!1},a}return c()(t,e),t.prototype.render=function(){var e=this.props,t=e.serverEntityID,i=e.isDvrsPending,r=e.hasDVRs,s=e.hasDVRFeature,o=this.state.isDVRSetupModalOpen,l=!i&&!r;return a()("div",{className:C.a.liveTVSettings},void 0,l&&a()("div",{className:C.a.info},void 0,a()(y.a,{className:C.a.upsell,icon:"plex-icon-marketing-dvr-560",title:n.i(p.default)("Introducing Live TV & DVR"),
text:n.i(p.default)("With Plex Pass and a digital tuner, you can record over-the-air broadcast TV and watch your favorite shows, movies, news, and sports on any device, anywhere in the world. Cut the cord and love TV again.")}),a()("div",{className:C.a.moreInfo},void 0,a()("div",{className:C.a.moreInfoText},void 0,a()(f.a,{message:n.i(p.default)("To get started recording TV, connect a tuner device to your network (here's a {openLink}list of supported devices{closeLink}) and click below."),
tags:[{open:"openLink",close:"closeLink",component:m.a,kind:v.b.PRIMARY,to:"https://support.plex.tv/hc/en-us/articles/225877427-Supported-DVR-Devices-and-Antennas",target:"_blank"}]}))),s?a()(g.a,{kind:v.b.PRIMARY,size:v.d.LARGE,onPress:this.onCreateDVRPress},void 0,n.i(p.default)("Set Up Plex DVR")):a()(b.a,{serverEntityID:t,modalMetricsProperties:{context:"dvrSetup"}})),a()(S.a,{serverEntityID:t,hasDVRFeature:s}),a()(I.a,{serverEntityID:t,metricsProperties:w,isOpen:o,
onModalClose:this.onDVRSetupModalClose}))},t}(d.Component);t.a=D},function(e,t,n){"use strict";function i(){return n.i(h.createSelector)(function(e){return e.ui.liveTVSettingsPage},n.i(m.a)(),function(e,t){var n=e.isDvrsPending,i=e.dvrs;return{isPagePopulated:e.isPagePopulated,isDvrsPending:n,hasDVRs:!(!i||!i.length),hasDVRFeature:!!t.ownerFeatures&&t.ownerFeatures.indexOf("dvr")>-1}})}var a=n(7),r=n.n(a),s=n(9),o=n.n(s),l=n(8),u=n.n(l),c=n(0),d=n.n(c),p=n(11),h=n(5),f=(n.n(h),
n(35)),v=n(587),m=n(46),g=n(2052),y={initLiveTVSettingsPage:v.a,clearLiveTVSettingsPage:v.b},b=function(e){function t(){return r()(this,t),o()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.componentDidMount=function(){var e=this;n.i(f.a)(function(){e.props.initLiveTVSettingsPage({serverEntityID:e.props.serverEntityID})})},t.prototype.componentWillUnmount=function(){this.props.clearLiveTVSettingsPage()},t.prototype.render=function(){
return this.props.isPagePopulated?d.a.createElement(g.a,this.props):null},t}(c.Component);t.a=n.i(p.b)(i,y)(b)},function(e,t,n){"use strict";function i(){return n.i(h.createSelector)(function(e){return e.primaryServer},function(e){return{serverEntityID:e}})}var a=n(7),r=n.n(a),s=n(9),o=n.n(s),l=n(8),u=n.n(l),c=n(0),d=n.n(c),p=n(11),h=n(5),f=(n.n(h),n(2053)),v=function(e){function t(){return r()(this,t),o()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.render=function(){
return this.props.serverEntityID?d.a.createElement(f.a,this.props):null},t}(c.Component);t.a=n.i(p.b)(i)(v)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(89),f=n(27),v=n(20),m=n(356),g=n(84),y=n(23),b=n(2066),S=n(2057),I=n(614),M=n(949),C=n(2751),w=n.n(C),D={context:h.e},P=a()(f.a,{name:"plex-icon-alert-560"}),T=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i))
;return a.onManageChannelsPress=function(){a.setState({isManageChannelsModalOpen:!0})},a.onManageChannelsModalClose=function(){a.setState({isManageChannelsModalOpen:!1})},a.onDeviceSettingsPress=function(){a.setState({isDeviceSettingsModalOpen:!0})},a.onDeviceSettingsModalClose=function(){a.setState({isDeviceSettingsModalOpen:!1})},a.state={isManageChannelsModalOpen:!1,isDeviceSettingsModalOpen:!1},a}return c()(t,e),t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,i=e.dvrID,r=e.deviceID,s=e.model,o=e.uri,l=e.thumb,u=e.tunerCount,c=e.channelCount,d=e.activeRecordingCount,h=e.channelMappings,C=e.hasPrefs,T=e.status,x=e.canRemoveDevice,E=e.onRemoveDevicePress,N=T===m.a.DEAD,L=h.filter(function(e){return e.enabled}).length,A=void 0;return A=c?1===c?n.i(p.default)("1 channel"):n.i(p.default)("{channelCount} channels",{channelCount:c}):n.i(p.default)("No channels"),a()("div",{className:w.a.device},void 0,a()(I.a,{
className:w.a.deviceImage,serverEntityID:t,model:s,thumb:l,width:100,height:100}),a()("div",{className:w.a.details},void 0,a()("div",{},void 0,a()("span",{className:w.a.model},void 0,s),C&&a()(y.a,{kind:v.b.PRIMARY,onPress:this.onDeviceSettingsPress},void 0,a()(f.a,{className:w.a.deviceSettingsIcon,name:"plex-icon-settings-560","aria-label":n.i(p.default)("Device Settings")}))),a()(M.a,{className:w.a.uri,uri:o}),N&&a()("div",{className:w.a.deviceWarning},void 0,a()("div",{
className:w.a.deviceWarningIconContainer},void 0,P),n.i(p.default)("Device not found. Ensure your device is powered on and connected to your network.")),!N&&a()("div",{className:w.a.info},void 0,a()("div",{},void 0,1===u?n.i(p.default)("1 tuner"):n.i(p.default)("{tunerCount} tuners",{tunerCount:u}),!!d&&a()("span",{},void 0,a()(g.a,{className:w.a.separator}),n.i(p.default)("{activeRecordingCount} recording now",{activeRecordingCount:d}))),a()("div",{},void 0,A,a()(g.a,{className:w.a.separator
}),a()(y.a,{kind:v.b.PRIMARY,onPress:this.onManageChannelsPress},void 0,n.i(p.default)("{enabledChannelsCount} enabled",{enabledChannelsCount:L}))))),x&&a()("div",{className:w.a.removeDeviceContainer},void 0,a()(y.a,{className:w.a.removeDevice,onPress:E},void 0,a()(f.a,{name:"plex-icon-remove-560","aria-label":n.i(p.default)("Remove Device")}))),a()(b.a,{serverEntityID:t,dvrID:i,deviceID:r,metricsProperties:D,isOpen:this.state.isManageChannelsModalOpen,
onModalClose:this.onManageChannelsModalClose}),a()(S.a,{serverEntityID:t,dvrID:i,deviceID:r,metricsProperties:D,isOpen:this.state.isDeviceSettingsModalOpen,onModalClose:this.onDeviceSettingsModalClose}))},t}(d.Component);t.a=T},function(e,t,n){"use strict";function i(){return n.i(g.createSelector)(function(e,t){return t.tunerCount},n.i(S.a)(),n.i(I.a)(),function(e,t,n){var i=h.a.filter(n,function(e){return e.type===b.a.GRABBER_GRAB&&parseInt(e.Context.deviceID,10)===t.key});return{
hasPrefs:!(!t.prefs||!t.prefs.length),channelCount:t.channels.length,activeRecordingCount:i.length}})}var a=n(6),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(3),h=n.n(p),f=n(0),v=n.n(f),m=n(11),g=n(5),y=(n.n(g),n(35)),b=n(134),S=n(360),I=n(243),M=n(101),C=n(2055),w={fetchDeviceChannels:M.l,removeDVRDevice:M.w},D=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),l=0;l<r;l++)s[l]=arguments[l];return n=i=u()(this,e.call.apply(e,[this].concat(s))),
i.onRemoveDevicePress=function(){var e=i.props,t=e.serverEntityID,n=e.dvrID,a=e.deviceID;i.props.removeDVRDevice({serverEntityID:t,dvrID:n,deviceID:a})},a=n,u()(i,a)}return d()(t,e),t.prototype.componentWillMount=function(){var e=this,t=this.props,i=t.serverEntityID,a=t.dvrID,r=t.deviceID;n.i(y.a)(function(){e.props.fetchDeviceChannels({serverEntityID:i,dvrID:a,deviceID:r})})},t.prototype.render=function(){return v.a.createElement(C.a,r()({onRemoveDevicePress:this.onRemoveDevicePress
},this.props))},t}(f.Component);t.a=n.i(m.b)(i,w)(D)},function(e,t,n){"use strict";function i(e){var t=e.isOpen,n=e.metricsProperties,i=e.onModalClose,a=u()(e,["isOpen","metricsProperties","onModalClose"]);return o()(h.a,{isOpen:t,metricsPage:p.s,metricsProperties:n,onModalClose:i},void 0,d.a.createElement(f.a,r()({onModalClose:i},a)))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(34),h=n(128),f=n(2059);t.a=i},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(2),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(4),m=n(237),g=n(20),y=n(94),b=n(102),S=n(69),I=n(117),M=n(95),C=n(143),w=n(246),D=n(445),P=n(47),T=n(92),x=n(614),E=n(2753),N=n.n(E),L=function(e){function t(){return l()(this,t),c()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.componentDidUpdate=function(e,t){e.isSaving&&!this.props.isSaving&&null==this.props.saveError&&this.props.onModalClose()},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,i=e.model,r=e.uri,o=e.thumb,l=e.prefs,u=e.isSaving,c=e.saveError,d=e.onSubmit,p=e.onErrorDismiss,h=e.onModalClose;return s()(C.a,{className:N.a.form,onSubmit:d},void 0,s()(y.a,{onModalClose:h},void 0,s()(b.a,{},void 0,n.i(v.default)("Device Settings")),c&&s()(w.a,{errorMessage:n.i(m.a)(c,n.i(v.default)("There was a problem saving your changes. Please try again.")),onErrorDismiss:p}),s()(S.a,{},void 0,s()("div",{className:N.a.container},void 0,s()(x.a,{
className:N.a.deviceImage,serverEntityID:t,model:i,thumb:o,width:150,height:150}),s()("div",{className:N.a.info},void 0,s()("div",{className:N.a.model},void 0,i),s()("div",{},void 0,r),s()("div",{className:N.a.settings},void 0,l.map(function(e){var t=e.id;return f.a.createElement(D.a,a()({key:t},e))}))))),s()(I.a,{},void 0,s()(M.a,{},void 0,s()(P.a,{kind:g.b.DEFAULT,size:g.d.MEDIUM,onPress:h},void 0,n.i(v.default)("Cancel")),s()(T.a,{type:"submit",isSpinning:u,kind:g.b.PRIMARY,size:g.d.MEDIUM
},void 0,n.i(v.default)("Save"))))))},t}(h.Component);t.a=L},function(e,t,n){"use strict";function i(){return n.i(v.createSelector)(function(e,t){return t.dvrID},n.i(g.a)(),function(e,t){return{dvrID:e,deviceID:t.key,model:t.model,uri:t.uri,prefs:t.prefs,thumb:t.thumb,isSaving:t.isSaving,saveError:t.saveError}})}var a=n(6),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=n.n(p),f=n(11),v=n(5),m=(n.n(v),n(35)),g=n(360),y=n(101),b=n(2058),S=function(e){function t(){var i,a,r
;o()(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=a=u()(this,e.call.apply(e,[this].concat(l))),a.onSubmit=function(e){var t=a.props,i=t.serverEntityID,r=t.dvrID,s=t.deviceID;n.i(m.a)(function(){a.props.saveDeviceSettings({serverEntityID:i,dvrID:r,deviceID:s,prefs:e})})},a.onErrorDismiss=function(){var e=a.props,t=e.dvrID,n=e.deviceID;a.props.clearDeviceSettingsSaveError({dvrID:t,deviceID:n})},a.onModalClose=function(){var e=a.props,t=e.dvrID,n=e.deviceID
;a.props.clearDeviceSettingsSaveError({dvrID:t,deviceID:n}),a.props.onModalClose()},r=i,u()(a,r)}return d()(t,e),t.prototype.render=function(){return h.a.createElement(b.a,r()({},this.props,{onSubmit:this.onSubmit,onErrorDismiss:this.onErrorDismiss,onModalClose:this.onModalClose}))},t}(p.Component);t.a=n.i(f.b)(i,{saveDeviceSettings:y.x,clearDeviceSettingsSaveError:y.y})(S)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,i=e.isDvrsPending,a=e.dvrsError,s=e.dvrs
;return a?r()("div",{},void 0,n.i(o.default)("Unable to load DVRs")):i?r()(l.a,{label:n.i(o.default)("Loading DVRs")}):r()("div",{},void 0,s.map(function(e){return r()(u.a,{dvrID:e.key,serverEntityID:t,lineupTitle:e.lineupTitle,devices:e.devices},e.key)}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(38),u=n(2063);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.ui.liveTVSettingsPage;return{isDvrsPending:t.isDvrsPending,dvrsError:t.dvrsError,dvrs:t.dvrs}}
var a=n(7),r=n.n(a),s=n(9),o=n.n(s),l=n(8),u=n.n(l),c=n(0),d=n.n(c),p=n(11),h=n(35),f=n(587),v=n(2060),m={fetchDVRs:f.c},g=function(e){function t(){return r()(this,t),o()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.componentDidMount=function(){this.props.hasDVRFeature&&this._populate(this.props)},t.prototype.componentDidUpdate=function(e){this.props.hasDVRFeature&&!e.hasDVRFeature&&this._populate(this.props)},t.prototype._populate=function(e){n.i(h.a)(function(){e.fetchDVRs({
serverEntityID:e.serverEntityID})})},t.prototype.render=function(){return d.a.createElement(v.a,this.props)},t}(c.Component);t.a=n.i(p.b)(i,m)(g)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(34),f=n(89),v=n(20),m=n(26),g=n(27),y=n(23),b=n(84),S=n(127),I=n(2056),M=n(952),C=n(2069),w=n(2754),D=n.n(w),P={context:f.e},T=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i))
;return a.onRemoveDVRPress=function(){a.setState({isRemoveDVRModalOpen:!0})},a.onRemoveDVRConfirm=function(){a.setState({isRemoveDVRModalOpen:!1}),a.props.onRemoveDVR()},a.onRemoveDVRCancel=function(){a.setState({isRemoveDVRModalOpen:!1})},a.onDVRSettingsPress=function(){a.setState({isDVRSettingsModalOpen:!0})},a.onDVRSettingsModalClose=function(){a.setState({isDVRSettingsModalOpen:!1})},a.onAddDevicePress=function(){a.setState({isAddDeviceModalOpen:!0})},a.onModalClose=function(){a.setState({
isAddDeviceModalOpen:!1})},a.state={isRemoveDVRModalOpen:!1,isDVRSettingsModalOpen:!1,isAddDeviceModalOpen:!1},a}return c()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(m.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,i=e.dvrID,r=e.lineupTitle,s=e.devices,o=e.epgDownloadActivity,l=e.onReloadGuidePress,u=this.state,c=u.isRemoveDVRModalOpen,d=u.isDVRSettingsModalOpen;return a()("div",{className:D.a.dvr},void 0,a()("div",{className:D.a.header
},void 0,a()("div",{className:D.a.name},void 0,n.i(p.default)("DVR"),a()(b.a,{className:D.a.separator}),r),a()(y.a,{className:D.a.deleteLink,kind:v.b.PRIMARY,onPress:this.onRemoveDVRPress},void 0,n.i(p.default)("Delete DVR"))),a()("div",{className:D.a.actions},void 0,a()("div",{},void 0,o?a()("div",{},void 0,a()(g.a,{className:D.a.actionIcon,name:"plex-icon-reload-560"}),o.title," (",o.progress,"%)",a()(b.a,{className:D.a.separator}),o.subtitle):a()(y.a,{kind:v.b.PRIMARY,onPress:l
},void 0,a()(g.a,{className:D.a.actionIcon,name:"plex-icon-reload-560"}),n.i(p.default)("Refresh Program Guide"))),a()("div",{},void 0,a()(y.a,{kind:v.b.PRIMARY,onPress:this.onDVRSettingsPress},void 0,a()(g.a,{className:D.a.actionIcon,name:"plex-icon-settings-560","aria-label":n.i(p.default)("DVR Settings")}),n.i(p.default)("DVR Settings")))),a()("div",{className:D.a.devices},void 0,s.map(function(e){return a()(I.a,{serverEntityID:t,dvrID:i,deviceID:e.key,canRemoveDevice:s.length>1,
model:e.model,uri:e.uri,channelMappings:e.channelMappings,tunerCount:e.tuners,status:e.status,thumb:e.thumb},e.key)})),a()(y.a,{kind:v.b.PRIMARY,onPress:this.onAddDevicePress},void 0,a()(g.a,{className:D.a.addDeviceIcon,name:"plex-icon-add-560"}),n.i(p.default)("Add Device")),a()(S.a,{isOpen:c,metricsPage:h.q,title:n.i(p.default)("Delete DVR"),
message:n.i(p.default)("Deleting your DVR will remove the Program Guide, and all scheduled recordings will be suspended. Programming you've previously recorded will remain in your library."),confirmLabel:n.i(p.default)("Delete"),kind:v.b.DANGER,onConfirm:this.onRemoveDVRConfirm,onCancel:this.onRemoveDVRCancel}),a()(C.a,{isOpen:d,serverEntityID:t,dvrID:i,metricsProperties:P,onModalClose:this.onDVRSettingsModalClose}),a()(M.a,{isOpen:this.state.isAddDeviceModalOpen,serverEntityID:t,dvrID:i,
metricsProperties:P,onModalClose:this.onModalClose}))},t}(d.Component);t.a=T},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=n.n(d),h=n(11),f=n(5),v=(n.n(f),n(905)),m=n(587),g=n(2062),y=n.i(f.createStructuredSelector)({epgDownloadActivity:n.i(v.a)()}),b={removeDVR:m.d,reloadGuide:m.e},S=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u]
;return n=i=l()(this,e.call.apply(e,[this].concat(o))),i.onRemoveDVR=function(){i.props.removeDVR({serverEntityID:i.props.serverEntityID,dvrID:i.props.dvrID})},i.onReloadGuidePress=function(){i.props.reloadGuide({serverEntityID:i.props.serverEntityID,dvrID:i.props.dvrID})},a=n,l()(i,a)}return c()(t,e),t.prototype.render=function(){return p.a.createElement(g.a,a()({onRemoveDVR:this.onRemoveDVR,onReloadGuidePress:this.onReloadGuidePress},this.props))},t}(d.Component);t.a=n.i(h.b)(y,b)(S)
},function(e,t,n){"use strict";function i(e){var t=e.channelMappings,n=e.lineupChannels,i=e.channelScanActivity,a=e.scanPrefs,s=e.scanNetworks,h=e.allChannelMappingsEnabled,v=e.allChannelMappingsDisabled,m=e.onAllChannelMappingsEnabledChange;return i?r()("div",{className:f.a.progressContainer},void 0,r()(o.a,{size:90,progress:i.progress})):a.length?r()(l.a,{className:f.a.scroller,autoScroll:!0},void 0,r()(d.a,{prefs:a})):s.length?r()(p.a,{networks:s}):t.length?r()(l.a,{className:f.a.scroller,
autoScroll:!0},void 0,r()(u.a,{allChannelMappingsEnabled:h,allChannelMappingsDisabled:v,onAllChannelMappingsEnabledChange:m}),t.map(function(e){var t=e.key,i=e.deviceIdentifier,a=e.name,s=e.enabled,o=e.lineupIdentifier,l=e.drm,u=e.isChannelMissing;return r()(c.a,{name:t,initialValue:{enabled:s,lineupIdentifier:o},deviceIdentifier:i,channelName:a,drm:l,isChannelMissing:u,lineupChannels:n},t)})):null}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),
n(213)),l=n(67),u=n(958),c=n(957),d=n(955),p=n(954),h=n(2755),f=n.n(h);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.dvrID,i=e.deviceID,a=e.metricsProperties,s=e.isOpen,c=e.onModalClose;return r()(l.a,{metricsPage:o.t,metricsProperties:a,isOpen:s,preventCloseOnBackdropPress:!0,onModalClose:c},void 0,r()(u.a,{serverEntityID:t,dvrID:n,deviceID:i,onModalClose:c}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(34)),l=n(128),u=n(2068);t.a=i},function(e,t,n){"use strict"
;function i(){return n.i(v.createSelector)(n.i(m.a)(),n.i(g.a)(),function(e,t){return{dvrID:e.key,deviceID:t.key}})}var a=n(6),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=n.n(p),f=n(11),v=n(5),m=(n.n(v),n(427)),g=n(360),y=n(101),b=n(2065),S=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),l=0;l<r;l++)s[l]=arguments[l];return n=i=u()(this,e.call.apply(e,[this].concat(s))),i.onModalClose=function(){i.props.clearDVRSetup({
serverEntityID:i.props.serverEntityID}),i.props.onModalClose()},a=n,u()(i,a)}return d()(t,e),t.prototype.render=function(){return h.a.createElement(b.a,r()({},this.props,{onModalClose:this.onModalClose}))},t}(p.Component);t.a=n.i(f.b)(i,{clearDVRSetup:y.a})(S)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),
n(4)),h=n(237),f=n(20),v=n(38),m=n(47),g=n(92),y=n(143),b=n(246),S=n(94),I=n(102),M=n(69),C=n(117),w=n(95),D=n(612),P=n(959),T=n(2064),x=n(2756),E=n.n(x),N=a()(v.a,{}),L=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onScanDeviceChannelsButtonPress=function(){var e=a.props,t=e.scanPrefs,n=e.scanNetworks,i=e.channelScanActivity,r=e.onScanDeviceChannels,s=e.onCancelScanDeviceChannels;t.length||n.length||(i?s():r(a.props.country))},a.onSubmit=function(e){
var t=a.props,n=t.scanPrefs,i=t.scanNetworks,r=t.onSubmit;if(n.length||i.length){var s=a.props.scanPrefs.length?{prefs:e}:e;a.props.onScanDeviceChannels(a.props.country,s)}else r(e)},a.state={channelScanningFormState:{}},a}return c()(t,e),t.prototype.render=function(){
var e=this.props,t=e.channelMappings,i=e.lineupChannels,r=e.isChannelMappingsPending,s=e.isLineupChannelsPending,o=e.isDeviceChannelsPending,l=e.channelMappingsError,u=e.lineupChannelsError,c=e.deviceChannelsError,d=e.isChannelMappingsSaving,v=e.channelMappingsSaveError,P=e.formState,x=e.allChannelMappingsEnabled,L=e.allChannelMappingsDisabled,A=e.isCancellingChannelScan,k=e.scanPrefs,_=e.scanNetworks,O=e.channelScanActivity,j=e.onAllChannelMappingsEnabledChange,R=e.onFormStateChange,U=e.onModalClose,z=e.onDismissSaveError,B=O&&!A,F=r||s||o,V=l||u||c,Q=!B&&F,H=O?parseInt(O.Response.channels,10):0,W=void 0
;W=1===H?n.i(p.default)("Scanning channels. 1 channel found."):H>1?n.i(p.default)("Scanning channels. {channelCount} channels found.",{channelCount:H}):n.i(p.default)("Scanning channels. No channels found.");var Y=!(!k.length&&!_.length);return V?a()(D.a,{message:n.i(p.default)("Unable to load channel mappings"),onModalClose:U}):a()(y.a,{className:E.a.form,formState:P,onChange:R,onSubmit:this.onSubmit},void 0,a()(S.a,{onModalClose:U
},void 0,a()(I.a,{},void 0,n.i(p.default)("Manage Channels")),Q&&a()(M.a,{},void 0,a()("div",{className:E.a.centeredContainer},void 0,N)),!Q&&!!v&&a()("div",{},void 0,a()(b.a,{errorMessage:n.i(h.a)(v,n.i(p.default)("There was a problem saving your changes. Please try again.")),onErrorDismiss:z})),!Q&&a()(M.a,{className:O?void 0:E.a.manageChannelsBody,scrollDirection:O?f.a.VERTICAL:f.a.NONE},void 0,a()("div",{className:E.a.scanChannelsContainer},void 0,a()("div",{className:E.a.scanChannelsMessage
},void 0,O?W:n.i(p.default)('Click "Scan Channels" to refresh this list, or create a new DVR to use a different lineup.')),a()("div",{},void 0,a()(g.a,{type:Y?"submit":"button",size:f.d.MEDIUM,isSpinning:A,isDisabled:A,onPress:this.onScanDeviceChannelsButtonPress},void 0,B?n.i(p.default)("Stop scanning"):n.i(p.default)("Scan channels")))),a()(T.a,{channelMappings:t,lineupChannels:i,channelScanActivity:O,scanPrefs:k,scanNetworks:_,allChannelMappingsEnabled:x,allChannelMappingsDisabled:L,
onAllChannelMappingsEnabledChange:j})),a()(C.a,{},void 0,a()(w.a,{},void 0,a()(m.a,{kind:f.b.DEFAULT,size:f.d.MEDIUM,onPress:U},void 0,n.i(p.default)("Cancel")),a()(g.a,{type:"submit",kind:f.b.PRIMARY,size:f.d.MEDIUM,isDisabled:Q||!!O,isSpinning:d},void 0,n.i(p.default)("Save"))))))},t}(d.Component);L.defaultProps={scanPrefs:[],scanNetworks:[]},t.a=n.i(P.a)(L)},function(e,t,n){"use strict";function i(){
return n.i(y.createSelector)(n.i(S.a)(),n.i(I.a)(),n.i(M.a)(),n.i(C.a)(),w.a,D.a,function(e,t,n,i,a,r){var s=e.country,o=e.lineup,l=a.isChannelMappingsPending,u=a.isLineupChannelsPending,c=a.channelMappingsError,d=a.lineupChannelsError,p=a.isChannelMappingsSaving,h=a.channelMappingsSaveError,f=a.scanPrefs,v=a.scanNetworks;return{country:s,lineupUUID:e.lineup,lineupTitle:o,channelMappings:n,lineupChannels:r,isChannelMappingsPending:l,isLineupChannelsPending:u,
isDeviceChannelsPending:t.isChannelsPending,channelMappingsError:c,lineupChannelsError:d,isChannelMappingsSaving:p,channelMappingsSaveError:h,deviceChannelsError:t.channelsError,scanPrefs:f,scanNetworks:v,channelScanActivity:i}})}function a(e,t){var i=t.serverEntityID,a=t.dvrID,r=t.deviceID;return{dispatchSelectDevice:function(){e(P.k({serverEntityID:i,dvrID:a,deviceID:r}))},dispatchFetchLineupChannels:function(t){e(P.b({serverEntityID:i,lineupUUID:t}))},dispatchFetchDeviceChannels:function(){
e(P.l({serverEntityID:i,dvrID:a,deviceID:r}))},dispatchFetchChannelMap:function(){e(P.c({serverEntityID:i}))},dispatchCancelScanDeviceChannels:function(){e(P.m({serverEntityID:i,deviceID:r}))},dispatchClearDeviceScanPrefs:function(){e(P.p({serverEntityID:i}))},onScanDeviceChannels:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e(P.o(f()({serverEntityID:i,dvrID:a,deviceID:r,country:t},n)))},onSubmit:function(t){n.i(b.a)(function(){e(P.z({serverEntityID:i,dvrID:a,
deviceID:r,data:t}))})},onDismissSaveError:function(){n.i(b.a)(function(){e(P.A())})}}}var r=n(14),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(6),f=n.n(h),v=n(0),m=n.n(v),g=n(11),y=n(5),b=(n.n(y),n(35)),S=n(427),I=n(360),M=n(903),C=n(904),w=n(142),D=n(907),P=n(101),T=n(2067),x=function(e){function t(n,i){l()(this,t);var a=c()(this,e.call(this,n,i));return a.onCancelScanDeviceChannels=function(){a.setState({isCancellingChannelScan:!0}),
a.props.dispatchCancelScanDeviceChannels(a.props.deviceID)},a.state={isCancellingChannelScan:!!n.channelScanActivity},a}return p()(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.lineupUUID,i=e.dispatchClearDeviceScanPrefs,a=e.dispatchSelectDevice,r=e.dispatchFetchLineupChannels,s=e.dispatchFetchDeviceChannels;n.i(b.a)(function(){i(),a(),r(t),s()})},t.prototype.componentWillReceiveProps=function(e){!e.channelScanActivity&&this.props.channelScanActivity&&this.setState({
isCancellingChannelScan:!1})},t.prototype.componentDidUpdate=function(e,t){var i=this;e.isChannelMappingsSaving&&!this.props.isChannelMappingsSaving&&null==this.props.channelMappingsSaveError&&this.props.onModalClose(),this.props.channelScanActivity||!e.channelScanActivity||this.props.scanNetworks||n.i(b.a)(function(){i.props.dispatchFetchDeviceChannels()})},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.serverEntityID,n=e.dvrID,i=e.deviceID
;e.channelScanActivity&&!this.state.isCancellingChannelScan&&this.props.dispatchCancelScanDeviceChannels({serverEntityID:t,dvrID:n,deviceID:i})},t.prototype.render=function(){var e=this.props,t=(e.dispatchSelectDevice,e.dispatchFetchLineupChannels,e.dispatchFetchDeviceChannels,e.dispatchFetchChannelMap,e.dispatchCancelScanDeviceChannels,e.dispatchClearDeviceScanPrefs,
s()(e,["dispatchSelectDevice","dispatchFetchLineupChannels","dispatchFetchDeviceChannels","dispatchFetchChannelMap","dispatchCancelScanDeviceChannels","dispatchClearDeviceScanPrefs"]));return m.a.createElement(T.a,f()({isCancellingChannelScan:this.state.isCancellingChannelScan,onCancelScanDeviceChannels:this.onCancelScanDeviceChannels},t))},t}(v.Component);t.a=n.i(g.b)(i,a)(x)},function(e,t,n){"use strict";function i(e){
var t=e.isOpen,n=e.metricsProperties,i=e.onModalClose,a=u()(e,["isOpen","metricsProperties","onModalClose"]);return o()(h.a,{isOpen:t,metricsPage:p.r,metricsProperties:n,onModalClose:i},void 0,d.a.createElement(f.a,r()({onModalClose:i},a)))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(34),h=n(128),f=n(2071);t.a=i},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(2),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(4),m=n(237),g=n(20),y=n(94),b=n(102),S=n(69),I=n(117),M=n(95),C=n(143),w=n(246),D=n(445),P=n(47),T=n(92),x=n(2757),E=n.n(x),N=function(e){function t(){return l()(this,t),c()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.componentDidUpdate=function(e,t){e.isSaving&&!this.props.isSaving&&null==this.props.saveError&&this.props.onModalClose()},t.prototype.render=function(){
var e=this.props,t=e.prefs,i=e.isSaving,r=e.saveError,o=e.onSubmit,l=e.onErrorDismiss,u=e.onModalClose;return s()(C.a,{className:E.a.form,onSubmit:o},void 0,s()(y.a,{onModalClose:u},void 0,s()(b.a,{},void 0,n.i(v.default)("DVR Settings")),r&&s()(w.a,{errorMessage:n.i(m.a)(r,n.i(v.default)("There was a problem saving your changes. Please try again.")),onErrorDismiss:l}),s()(S.a,{},void 0,t.map(function(e){var t=e.id;return f.a.createElement(D.a,a()({key:t},e))
})),s()(I.a,{},void 0,s()(M.a,{},void 0,s()(P.a,{kind:g.b.DEFAULT,size:g.d.MEDIUM,onPress:u},void 0,n.i(v.default)("Cancel")),s()(T.a,{type:"submit",isSpinning:i,kind:g.b.PRIMARY,size:g.d.MEDIUM},void 0,n.i(v.default)("Save"))))))},t}(h.Component);t.a=N},function(e,t,n){"use strict";function i(){return n.i(v.createSelector)(n.i(g.a)(),function(e){return{prefs:e.prefs,isSaving:e.isSaving,saveError:e.saveError}})}
var a=n(6),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=n.n(p),f=n(11),v=n(5),m=(n.n(v),n(35)),g=n(427),y=n(101),b=n(2070),S=function(e){function t(){var i,a,r;o()(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=a=u()(this,e.call.apply(e,[this].concat(l))),a.onSubmit=function(e){var t=a.props,i=t.serverEntityID,r=t.dvrID;n.i(m.a)(function(){a.props.saveDVRSettings({serverEntityID:i,dvrID:r,prefs:e})})},a.onErrorDismiss=function(){
a.props.clearDVRSettingsSaveError({dvrID:a.props.dvrID})},a.onModalClose=function(){a.props.clearDVRSettingsSaveError({dvrID:a.props.dvrID}),a.props.onModalClose()},r=i,u()(a,r)}return d()(t,e),t.prototype.render=function(){return h.a.createElement(b.a,r()({},this.props,{onSubmit:this.onSubmit,onErrorDismiss:this.onErrorDismiss,onModalClose:this.onModalClose}))},t}(p.Component);t.a=n.i(f.b)(i,{saveDVRSettings:y.u,clearDVRSettingsSaveError:y.v})(S)},function(e,t,n){"use strict";function i(e){
var t=e.machineIdentifier;return e.isRefreshing?r()(c.a,{icon:"plex-icon-shows-broadcast-560",title:n.i(o.default)("We're now building your Program Guide"),description:n.i(o.default)("Hang tight while we download all the data for what's on")}):r()(c.a,{icon:"plex-icon-shows-broadcast-560",title:n.i(o.default)("The Program Guide is empty"),description:n.i(o.default)("Please verify your channel mappings and refresh the Program Guide")},void 0,r()(u.a,{
to:"#!/settings/server/"+encodeURIComponent(t)+"/dvr",kind:l.b.PRIMARY},void 0,n.i(o.default)("Go to DVR Settings")))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(20),u=n(23),c=n(170);t.a=i},function(e,t,n){"use strict";function i(){return n.i(v.createSelector)(g.a,function(e){return{step:e.step}})}var a=n(14),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=n.n(p),f=n(11),v=n(5),m=(n.n(v),
n(423)),g=n(142),y=n(101),b=n(2086),S=n(2084),I=n(2082),M=n(2090),C=n(2080),w=n(2077),D={clearDVRSetup:y.a},P=function(e){function t(){return o()(this,t),u()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.componentWillUnmount=function(){this.props.clearDVRSetup()},t.prototype.render=function(){var e=this.props,t=e.step,n=r()(e,["step"]);switch(t){case m.a.DEVICE:return h.a.createElement(C.a,n);case m.a.DEVICE_CHANNELS:return h.a.createElement(w.a,n);case m.a.EPG:
return h.a.createElement(b.a,n);case m.a.EPG_MAPPING:return h.a.createElement(S.a,n);case m.a.CHANNEL_MAPPING:return h.a.createElement(M.a,n);case m.a.EPG_DOWNLOAD:return h.a.createElement(I.a,n)}},t}(p.Component);t.a=n.i(f.b)(i,D)(P)},function(e,t,n){"use strict";function i(e){var t=e.identifier,n=e.name;return r()("div",{className:l.a.channel},void 0,r()("div",{className:l.a.channelIdentifier},void 0,t),r()("div",{},void 0,n))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2763)),l=n.n(o);t.a=i
},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(4),m=n(20),g=n(47),y=n(92),b=n(67),S=n(143),I=n(214),M=n(126),C=n(215),w=n(69),D=n(95),P=n(302),T=n(370),x=n(616),E=n(953),N=n(956),L=n(2076),A=n(2078),k=n(2764),_=n.n(k),O=s()(x.a,{}),j=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o];return n=i=c()(this,e.call.apply(e,[this].concat(s))),
i.onScanDeviceChannelsPress=function(e){var t=i.props.scanPrefs.length?{prefs:e}:e;i.props.onScanDeviceChannels(t)},i.onDeviceSourceSelect=function(e){i.props.onDeviceSourceSelect(e),i.clearExistingScanPrefs()},i.onCountrySelect=function(e){i.props.onCountrySelect(e),i.clearExistingScanPrefs()},a=n,c()(i,a)}return p()(t,e),t.prototype.clearExistingScanPrefs=function(){var e=this.props,t=e.selectedDevice,n=e.scanPrefs,i=e.scanNetworks,a=e.onScanDeviceChannels,r=e.onClearDeviceScanPrefs
;n.length?(r(),a(t.deviceID)):i.length&&r()},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,i=e.dvrID,r=e.selectedDevice,o=e.setupErrorMessage,l=e.isChannelsPending,u=e.sourceOptions,c=e.channelScanActivity,d=e.isCancellingChannelScan,p=e.selectedCountryCode,h=e.countryOptions,x=e.countriesPopulated,k=e.scanPrefs,j=e.scanNetworks,R=e.hasScannedChannels,U=e.onCancelScanDeviceChannels,z=e.onModalClose,B=r.selectedSource||r.sources[0],F=c?parseInt(c.Response.channels,10):r.channels.length,V=!(!F||c||l),Q=!!k.length,H=!!j.length,W=[{
"":n.i(v.default)("Select Country")}].concat(h),Y=!(r&&r.channels.length&&!c&&p);return s()(P.a,{errorMessage:o,onModalClose:z},void 0,s()(w.a,{className:_.a.deviceInfoBody,scrollDirection:m.a.NONE},void 0,s()(S.a,{className:_.a.deviceInfoForm,onSubmit:this.onScanDeviceChannelsPress},void 0,s()("div",{className:_.a.channelInfo},void 0,s()(A.a,{channelCount:F,isChannelsPending:l,channelScanActivity:c,hasScanPrefs:Q,hasScanNetworks:H}),s()("div",{},void 0,s()(y.a,{type:c?"button":"submit",
kind:c||F||l?m.b.DEFAULT:m.b.PRIMARY,size:m.d.MEDIUM,isSpinning:d,isDisabled:!p||d,onPress:c?U:null},void 0,c?n.i(v.default)("Stop scanning"):n.i(v.default)("Scan channels")))),s()("div",{className:_.a.channelDetails},void 0,s()("div",{className:_.a.deviceDetails},void 0,f.a.createElement(N.a,a()({serverEntityID:t,deviceID:r.key,channelCount:F,includeChannelCount:!0},r)),s()(I.a,{},void 0,s()(C.a,{className:_.a.channelScanSourceSelect,name:"deviceSource",value:B,values:u,isDisabled:!!c,
onChange:this.onDeviceSourceSelect})),x&&s()(I.a,{className:_.a.countryInputGroup},void 0,s()(M.a,{},void 0,n.i(v.default)("Country")),s()(C.a,{name:"countrySelect",value:p,values:W,isDisabled:!!c,onChange:this.onCountrySelect}))),s()("div",{className:_.a.deviceChannelsContainer},void 0,s()(b.a,{className:V?_.a.deviceChannels:_.a.deviceChannelsInfo,autoScroll:!0},void 0,s()(L.a,{selectedDevice:r,channelCount:F,isChannelsPending:l,channelScanActivity:c,scanPrefs:k,scanNetworks:j,
hasScannedChannels:R})))))),s()(T.a,{},void 0,s()(D.a,{},void 0,s()(g.a,{kind:m.b.DEFAULT,size:m.d.MEDIUM,onPress:z},void 0,n.i(v.default)("Cancel"))),s()(D.a,{},void 0,O,s()(E.a,{dvrID:i,isDisabled:Y}))))},t}(h.Component);j.defaultProps={scanPrefs:[],scanNetworks:[]},t.a=j},function(e,t,n){"use strict";function i(e){var t=e.selectedDevice,i=e.channelCount,a=e.isChannelsPending,s=e.channelScanActivity,u=e.scanPrefs,m=e.scanNetworks,y=e.hasScannedChannels;return s?o()("div",{
className:g.a.container},void 0,o()(p.a,{size:90,progress:s.progress}),o()("div",{className:g.a.message},void 0,n.i(l.default)("Scanning channels"))):u.length?o()(f.a,{className:g.a.settings,prefs:u}):m.length?o()(v.a,{className:g.a.settings,networks:m}):a?o()("div",{className:g.a.container},void 0,o()("div",{className:g.a.message},void 0,n.i(l.default)("Loading channels"))):i?o()("div",{},void 0,t.channels.map(function(e){return c.a.createElement(h.a,r()({key:e.identifier},e))})):y?o()("div",{
className:g.a.container},void 0,o()("div",{className:g.a.noChannelsIconContainer},void 0,o()("div",{className:g.a.noChannelsIconBackground},void 0,o()(d.a,{className:g.a.noChannelsIcon,name:"plex-icon-alert-560"}))),o()("div",{className:g.a.message},void 0,n.i(l.default)("No channels found. Make sure your device has a signal from your antenna and try scanning again."))):o()("div",{className:g.a.container},void 0,o()("div",{className:g.a.clockContainer},void 0,o()("div",{
className:g.a.clockBackground}),o()(d.a,{className:g.a.clockTime,name:"plex-icon-dvr-clock-hour-560"}),o()(d.a,{className:g.a.clock,name:"plex-icon-dvr-clock-separator-560"}),o()(d.a,{className:g.a.clockTime,name:"plex-icon-dvr-clock-minutes-560"})),o()("div",{className:g.a.message},void 0,n.i(l.default)("Awaiting channel scan")))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(4),u=n(0),c=n.n(u),d=n(27),p=n(213),h=n(2074),f=n(955),v=n(954),m=n(2765),g=n.n(m);t.a=i},function(e,t,n){"use strict"
;function i(){return n.i(y.createSelector)(I.a,C.a,n.i(M.a)(),function(e,t,i){var a=e.selectedDevice,r=a.sources.reduce(function(e,t){var i,a;switch(t){case"0":e.push((i={},i[t]=n.i(b.default)("Antenna"),i));break;case"1":e.push((a={},a[t]=n.i(b.default)("Cable"),a))}return e},[]),s=e.scanPrefs,o=e.scanNetworks,l=e.hasScannedChannels,u=e.epgSettings,c=u.selectedCountry,d=u.countries,p=d.length>0,h=c?c.code:"",f=d.reduce(function(e,t){var n;return e.push((n={},n[t.code]=t.title,n)),e},[]);return{
selectedDevice:a,setupErrorMessage:t,isChannelsPending:a.isChannelsPending,sourceOptions:r,countriesPopulated:p,selectedCountryCode:h,countryOptions:f,scanPrefs:s,scanNetworks:o,hasScannedChannels:l,channelScanActivity:i}})}function a(e,t){var i=t.serverEntityID;return{dispatchFetchDeviceDetails:function(){e(w.k({serverEntityID:i}))},dispatchFetchDeviceChannels:function(){e(w.l({serverEntityID:i}))},dispatchFetchEPGCountries:function(){e(n.i(D.fetchEPGCountries)({serverEntityID:i}))},
dispatchCancelScanDeviceChannels:function(t){e(w.m({serverEntityID:i,deviceID:t}))},onDeviceSourceSelect:function(t){e(w.n({serverEntityID:i,source:t}))},onScanDeviceChannels:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e(w.o(f()({serverEntityID:i},t)))},onCountrySelect:function(t){e(n.i(D.selectEPGCountry)({serverEntityID:i,countryCode:t}))},onClearDeviceScanPrefs:function(){e(w.p({serverEntityID:i}))}}}
var r=n(14),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(6),f=n.n(h),v=n(0),m=n.n(v),g=n(11),y=n(5),b=(n.n(y),n(4)),S=n(35),I=n(142),M=n(904),C=n(293),w=n(101),D=n(424),P=n(2075),T=function(e){function t(n,i){l()(this,t);var a=c()(this,e.call(this,n,i));return a.onCancelScanDeviceChannels=function(){a.setState({isCancellingChannelScan:!0}),a.props.dispatchCancelScanDeviceChannels(a.props.selectedDevice.key)},a.state={isCancellingChannelScan:!1},a}return p()(t,e),
t.prototype.componentWillMount=function(){this.props.channelScanActivity&&this.setState({isCancellingChannelScan:!0})},t.prototype.componentDidMount=function(){var e=this,t=this.props.selectedDevice,i=t.source>-1?t.source.toString():t.sources[0];n.i(S.a)(function(){e.props.dispatchFetchDeviceDetails(),e.props.dispatchFetchDeviceChannels(),e.props.dispatchFetchEPGCountries(),e.props.onDeviceSourceSelect(i),e.props.onClearDeviceScanPrefs()})},t.prototype.componentWillReceiveProps=function(e){
!e.channelScanActivity&&this.props.channelScanActivity&&this.setState({isCancellingChannelScan:!1})},t.prototype.componentDidUpdate=function(e,t){var i=this;this.props.channelScanActivity||!e.channelScanActivity||this.props.scanNetworks||n.i(S.a)(function(){i.props.dispatchFetchDeviceChannels()})},t.prototype.componentWillUnmount=function(){this.props.channelScanActivity&&!this.state.isCancellingChannelScan&&this.props.dispatchCancelScanDeviceChannels(this.props.selectedDevice.key)},
t.prototype.render=function(){var e=this.props,t=(e.dispatchFetchDeviceDetails,e.dispatchFetchDeviceChannels,e.dispatchFetchEPGCountries,e.dispatchCancelScanDeviceChannels,s()(e,["dispatchFetchDeviceDetails","dispatchFetchDeviceChannels","dispatchFetchEPGCountries","dispatchCancelScanDeviceChannels"]));return m.a.createElement(P.a,f()({isCancellingChannelScan:this.state.isCancellingChannelScan,onCancelScanDeviceChannels:this.onCancelScanDeviceChannels},t))},t}(v.Component);t.a=n.i(g.b)(i,a)(T)
},function(e,t,n){"use strict";function i(e){var t=e.channelCount,i=e.isChannelsPending,a=e.channelScanActivity,r=e.hasScanPrefs,s=e.hasScanNetworks
;return a?n.i(o.default)("Scanning for channels... This may take some time."):r?n.i(o.default)("We need some more information before proceeding with the channel scan."):s?n.i(o.default)("Please select a network before proceeding with the channel scan."):i?n.i(o.default)("Fetching device channels"):t?n.i(o.default)("We found {channelCount} channels. If these don't look right, you can scan again.",{channelCount:t
}):n.i(o.default)("Make sure your device is connected to your antenna or cable and click Scan Channels.")}function a(e){var t=i(e);return s()("div",{className:c.a.message},void 0,t)}var r=n(2),s=n.n(r),o=n(4),l=n(0),u=(n.n(l),n(2766)),c=n.n(u);t.a=a},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(2),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(4),m=n(20),g=n(38),y=n(67),b=n(47),S=n(92),I=n(245),M=n(214),C=n(126),w=n(167),D=n(69),P=n(95),T=n(302),x=n(370),E=n(953),N=n(956),L=n(2767),A=n.n(L),k=s()(g.a,{}),_=function(e){function t(n,i){l()(this,t);var a=c()(this,e.call(this,n,i));return a.onShowDeviceAddressPress=function(){a.setState({showManualAddress:!a.state.showManualAddress})},a.onDeviceAddressChange=function(e){a.setState({
manualDeviceAddress:e})},a.onAddDevicePress=function(){a.props.onAddDevice(a.state.manualDeviceAddress)},a.state={showManualAddress:!1,manualDeviceAddress:""},a}return p()(t,e),t.prototype.render=function(){var e=this.props,t=e.serverEntityID,i=e.selectedDevice,r=e.setupErrorMessage,o=e.addDevicePending,l=e.devices,u=e.onSelectDevice,c=e.onModalClose,d=this.state,p=d.showManualAddress,h=d.manualDeviceAddress,g=l.length>0;return s()(T.a,{errorMessage:r,onModalClose:c
},void 0,s()(D.a,{},void 0,g&&s()("div",{className:A.a.message},void 0,s()("div",{},void 0,n.i(v.default)("We found hardware we recognize!"))),!g&&s()("div",{className:A.a.message},void 0,s()("div",{},void 0,n.i(v.default)("Looking for compatible devices..."))),s()("div",{className:A.a.manualDeviceButtonContainer},void 0,s()(I.a,{kind:m.b.PRIMARY,direction:p?m.f.UP:m.f.DOWN,isSelected:!1,onPress:this.onShowDeviceAddressPress
},void 0,n.i(v.default)("Don't see your device? Enter its network address manually"))),s()("div",{className:A.a.manualDeviceContainer},void 0,p&&s()("div",{},void 0,s()(M.a,{},void 0,s()(C.a,{},void 0,n.i(v.default)("Device Address")),s()(w.a,{type:"text",name:"manualDeviceInput",className:A.a.manualDeviceInput,value:this.state.manualDeviceAddress,placeholder:n.i(v.default)("IP address or hostname"),onChange:this.onDeviceAddressChange}),s()(S.a,{className:A.a.addDeviceButton,kind:m.b.PRIMARY,
size:m.d.LARGE,isDisabled:!h,isSpinning:o,onPress:this.onAddDevicePress},void 0,n.i(v.default)("Connect"))))),!g&&s()("div",{className:A.a.spinnerContainer},void 0,k),g&&s()("div",{className:A.a.existingDevices},void 0,s()("div",{className:A.a.deviceCount},void 0,1===l.length?n.i(v.default)("1 device found"):n.i(v.default)("{deviceCount} devices found",{deviceCount:l.length})),s()(y.a,{className:A.a.devices,scrollDirection:m.a.HORIZONTAL},void 0,l.map(function(e){var n=i&&i.key===e.key
;return f.a.createElement(N.a,a()({key:e.key,className:A.a.device,serverEntityID:t,deviceID:e.key,isSelectable:!0,isSelected:n,includeUri:!0,onSelectDevice:u},e))})))),s()(x.a,{},void 0,s()(P.a,{},void 0,s()(b.a,{kind:m.b.DEFAULT,size:m.d.MEDIUM,onPress:c},void 0,n.i(v.default)("Cancel"))),s()(P.a,{},void 0,s()(E.a,{isDisabled:!i}))))},t}(h.Component);t.a=_},function(e,t,n){"use strict";function i(){return n.i(y.createSelector)(I.a,M.a,D,function(e,t,n){return{
isDiscoveringDevices:e.isDiscoveringDevices,selectedDevice:e.selectedDevice,setupErrorMessage:t,addDevicePending:e.addDevicePending,devices:n}})}function a(e,t){var i=t.serverEntityID;return{dispatchDiscoverDevices:function(){e(n.i(C.q)({serverEntityID:i}))},dispatchFetchDevices:function(){e(n.i(C.r)({serverEntityID:i}))},onAddDevice:function(t){e(n.i(C.s)({serverEntityID:i,uri:t}))},onSelectDevice:function(t){e(n.i(C.t)({serverEntityID:i,deviceID:t}))}}}
var r=n(14),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(3),f=n.n(h),v=n(0),m=n.n(v),g=n(11),y=n(5),b=(n.n(y),n(35)),S=n(356),I=n(142),M=n(293),C=n(101),w=n(2079),D=n.i(y.createSelector)(function(e){return e.ui.liveTVSettingsPage.dvrSetup.devices},function(e){return f.a.filter(e,function(e){return!e.parentID&&e.status===S.a.ALIVE})}),P=function(e){function t(n){l()(this,t);var i=c()(this,e.call(this,n));return i._discoverDevices=function(){i.props.dispatchDiscoverDevices()},
i._discoverTimeoutID=null,i.discoverDelay=2e3,i}return p()(t,e),t.prototype.componentDidMount=function(){var e=this;n.i(b.a)(function(){e.props.dispatchFetchDevices()}),this._discoverTimeoutID=setTimeout(this._discoverDevices,this.discoverDelay)},t.prototype.componentDidUpdate=function(e){!this.props.isDiscoveringDevices&&e.isDiscoveringDevices&&(this._discoverTimeoutID=setTimeout(this._discoverDevices,this.discoverDelay))},t.prototype.componentWillUnmount=function(){
this._discoverTimeoutID&&clearTimeout(this._discoverTimeoutID)},t.prototype.render=function(){var e=this.props,t=(e.dispatchDiscoverDevices,e.dispatchFetchDevices,s()(e,["dispatchDiscoverDevices","dispatchFetchDevices"]));return m.a.createElement(w.a,t)},t}(v.Component);t.a=n.i(g.b)(i,a)(P)},function(e,t,n){"use strict";function i(e){
var t=e.setupErrorMessage,i=e.machineIdentifier,a=e.epgProviderIdentifier,s=e.epgDownloadActivityID,v=e.progress,g=e.message,y=e.onModalClose,b=encodeURIComponent(i),S=encodeURIComponent(a);return r()(h.a,{errorMessage:t,onModalClose:y},void 0,r()(d.a,{},void 0,r()("div",{className:m.a.message
},void 0,r()("div",{},void 0,n.i(o.default)("Setup complete!")),r()("div",{},void 0,n.i(o.default)("You can now find your Program Guide and Recording Schedule in the sidebar under \"Manage\". While we're grabbing the guide data, you can start browsing; it will update automatically as we download what's on."))),s&&r()("div",{},void 0,r()("div",{className:m.a.spinnerContainer},void 0,r()(u.a,{size:90,progress:v}),r()("div",{className:m.a.spinnerMessage
},void 0,g)))),r()(p.a,{},void 0,r()(f.a,{},void 0,r()(c.a,{kind:l.b.DEFAULT,size:l.d.MEDIUM,onPress:y},void 0,n.i(o.default)("Close")),r()(c.a,{kind:l.b.PRIMARY,size:l.d.MEDIUM,to:"#!/server/"+b+"/provider/"+S,isDisabled:!a},void 0,n.i(o.default)("View Program Guide")))))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(20),u=n(213),c=n(47),d=n(69),p=n(117),h=n(302),f=n(95),v=n(2768),m=n.n(v);i.defaultProps={progress:0,message:""},t.a=i},function(e,t,n){"use strict";function i(){
return n.i(u.createSelector)(function(e,t){return t.serverEntityID},n.i(h.a)(),f.a,function(e,t,i){var a=i.selectedDVR;if(a&&t){var r=a.epgIdentifier,s=n.i(d.a)(c.e,r,e);return t.indexOf(s)>-1?r:void 0}})}function a(){return n.i(u.createSelector)(f.a,v.a,n.i(p.a)(),n.i(m.a)(),i(),function(e,t,n,i,a){var r=i||{},s=r.progress,o=r.subtitle;return{setupErrorMessage:t,machineIdentifier:n.machineIdentifier,epgProviderIdentifier:a,epgDownloadActivityID:e.epgDownloadActivityID,progress:s,message:o}})}
function r(e){return o.a.createElement(g.a,e)}var s=n(0),o=n.n(s),l=n(11),u=n(5),c=(n.n(u),n(56)),d=n(53),p=n(46),h=n(790),f=n(142),v=n(293),m=n(905),g=n(2081);t.a=n.i(l.b)(a)(r)},function(e,t,n){"use strict";function i(e){var t=e.setupErrorMessage,i=e.progress,a=e.onModalClose;return r()(h.a,{errorMessage:t,onModalClose:a},void 0,r()(d.a,{},void 0,r()("div",{className:m.a.message
},void 0,r()("div",{},void 0,n.i(o.default)("We're finding the best program guide for your channels and location.")),r()("div",{},void 0,n.i(o.default)("This should only take a few moments."))),r()("div",{className:m.a.spinnerContainer},void 0,r()(u.a,{size:90,progress:i}))),r()(f.a,{},void 0,r()(p.a,{},void 0,r()(c.a,{kind:l.b.DEFAULT,size:l.d.MEDIUM,onPress:a},void 0,n.i(o.default)("Cancel")))))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),
n(4)),l=n(20),u=n(213),c=n(47),d=n(69),p=n(95),h=n(302),f=n(370),v=n(2769),m=n.n(v);i.defaultProps={progress:0},t.a=i},function(e,t,n){"use strict";function i(){return n.i(v.createSelector)(g.a,y.a,n.i(b.a)(),function(e,t,n){return{setupErrorMessage:t,progress:(d.a.find(n,{uuid:e.epgLineupActivityID})||{}).progress}})}var a=n(7),r=n.n(a),s=n(9),o=n.n(s),l=n(8),u=n.n(l),c=n(3),d=n.n(c),p=n(0),h=n.n(p),f=n(11),v=n(5),m=(n.n(v),n(35)),g=n(142),y=n(293),b=n(243),S=n(101),I=n(2083),M={
findBestEPGLineup:S.i},C=function(e){function t(){return r()(this,t),o()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.componentWillMount=function(){this._populate(this.props)},t.prototype._populate=function(e){n.i(m.a)(function(){e.findBestEPGLineup({serverEntityID:e.serverEntityID})})},t.prototype.render=function(){return h.a.createElement(I.a,this.props)},t}(p.Component);t.a=n.i(f.b)(i,M)(C)},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(20),f=n(38),v=n(23),m=n(47),g=n(143),y=n(214),b=n(126),S=n(215),I=n(167),M=n(69),C=n(95),w=n(302),D=n(370),P=n(616),T=n(2088),x=n(2770),E=n.n(x),N=a()(P.a,{}),L=function(e){function t(i,a){s()(this,t);var r=l()(this,e.call(this,i,a));return r.onShowXMLTVEntryPress=function(){r.setState({showXMLTVEntry:!r.state.showXMLTVEntry})},r.onLanguageSelect=function(e){r.props.onLanguageSelect(e)},
r.onRegionSelect=function(e){r.props.onRegionSelect(e)},r.onXMLTVPathChange=function(e){r.setState({xmlTVPath:e},function(){r.props.onXMLTVProgramGuideChange(e,r.state.programGuideTitle)})},r.onProgramGuideTitleChange=function(e){r.setState({programGuideTitle:e},function(){r.props.onXMLTVProgramGuideChange(r.state.xmlTVPath,e)})},r.state={showXMLTVEntry:!1,xmlTVPath:"",programGuideTitle:n.i(p.default)("My Program Guide")},r}return c()(t,e),t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,i=e.platform,r=e.setupErrorMessage,s=e.isFetching,o=e.selectedLanguageCode,l=e.selectedRegionCode,u=e.languageOptions,c=e.regionOptions,d=e.languagesPopulated,P=e.regionsPopulated,x=e.canContinue,L=e.postalCodeExample,A=e.onSubmit,k=e.onModalClose,_=this.state,O=_.showXMLTVEntry,j=_.xmlTVPath,R=_.programGuideTitle,U=d,z=!(!d||!L),B=!(!d||!P),F=[{"":n.i(p.default)("Select Language")}].concat(u),V=[{"":n.i(p.default)("Select Region")
}].concat(c),Q="Windows"===i?"C:\\path\\to\\your\\xmltv_file.xml":"/path/to/your/xmltv_file.xml";return a()(g.a,{className:E.a.form,onSubmit:A},void 0,a()(w.a,{errorMessage:r,onModalClose:k},void 0,a()(M.a,{},void 0,a()("div",{className:E.a.message},void 0,a()("div",{},void 0,n.i(p.default)("To download an electronic program guide we need to know your location.")),a()(v.a,{kind:h.b.PRIMARY,onPress:this.onShowXMLTVEntryPress
},void 0,O?n.i(p.default)("Don't use XMLTV? Click here to select your location instead."):n.i(p.default)("Have an XMLTV program guide on your server? Click here to use that instead."))),O&&a()("div",{},void 0,d&&a()(y.a,{},void 0,a()(b.a,{},void 0,n.i(p.default)("Language")),a()(S.a,{name:"languageSelect",values:F,value:o,onChange:this.onLanguageSelect})),a()(y.a,{},void 0,a()(b.a,{},void 0,n.i(p.default)("XMLTV Program Guide")),a()(I.a,{name:"xmltvPath",placeholder:Q,value:j,
onChange:this.onXMLTVPathChange})),a()(y.a,{},void 0,a()(b.a,{},void 0,n.i(p.default)("Program Guide Title")),a()(I.a,{name:"programGuideTitle",value:R,onChange:this.onProgramGuideTitleChange}))),!O&&a()("div",{},void 0,U&&a()(y.a,{},void 0,a()(b.a,{},void 0,n.i(p.default)("Language")),a()(S.a,{name:"languageSelect",values:F,value:o,onChange:this.onLanguageSelect})),z&&a()(y.a,{},void 0,a()(b.a,{},void 0,n.i(p.default)("Postal Code")),a()(T.a,{serverEntityID:t,postalCodeExample:L}),s&&a()(f.a,{
className:E.a.fetchingSpinner})),B&&a()(y.a,{},void 0,a()(b.a,{},void 0,n.i(p.default)("Region")),a()(S.a,{className:E.a.regionInput,name:"regionSelect",values:V,value:l,onChange:this.onRegionSelect}),s&&a()(f.a,{className:E.a.fetchingSpinner})))),a()(D.a,{},void 0,a()(C.a,{},void 0,a()(m.a,{kind:h.b.DEFAULT,size:h.d.MEDIUM,onPress:k},void 0,n.i(p.default)("Cancel"))),a()(C.a,{},void 0,N,a()(m.a,{type:"submit",kind:h.b.PRIMARY,size:h.d.MEDIUM,isDisabled:!x||s
},void 0,n.i(p.default)("Continue"))))))},t}(d.Component);t.a=L},function(e,t,n){"use strict";function i(){return n.i(v.createSelector)(n.i(y.a)(),b.a,S.a,function(e,t,n){var i=t.selectedLineupUUID,a=t.epgSettings,r=a.isFetching,s=a.selectedCountry,o=a.selectedLanguage,l=a.selectedRegion,u=a.languages,c=a.regions,d=a.lineupGroup,p=s&&1===s.flavor?s.example:null,h=o?o.code:"",f=l?l.key:"",v=u.length>0,m=c.length>0,g=u.reduce(function(e,t){var n;return e.push((n={},n[t.code]=t.title,n)),e
},[]),y=c.reduce(function(e,t){var n;return e.push((n={},n[t.key]=t.title,n)),e},[]);return{platform:e.platform,setupErrorMessage:n,selectedLineupUUID:i,selectedLanguageCode:h,selectedRegionCode:f,languagesPopulated:v,regionsPopulated:m,languageOptions:g,regionOptions:y,isFetching:r,postalCodeExample:p,canContinue:!(!d.lineups.length&&!i||!h)}})}var a=n(7),r=n.n(a),s=n(9),o=n.n(s),l=n(8),u=n.n(l),c=n(6),d=n.n(c),p=n(0),h=n.n(p),f=n(11),v=n(5),m=(n.n(v),
n(35)),g=n(1800),y=n(46),b=n(142),S=n(293),I=n(2085),M=n(101),C=n(424),w=d()({dvrSetupNextStep:M.j,selectEPGLineup:M.d},C),D=function(e){function t(){var i,a,s;r()(this,t);for(var l=arguments.length,u=Array(l),c=0;c<l;c++)u[c]=arguments[c];return i=a=o()(this,e.call.apply(e,[this].concat(u))),a.onLanguageSelect=function(e){a.props.selectEPGLanguage({serverEntityID:a.props.serverEntityID,languageCode:e})},a.onRegionSelect=function(e){a.props.selectEPGRegion({serverEntityID:a.props.serverEntityID,
regionKey:e})},a.onSubmit=function(){a.props.dvrSetupNextStep()},a.onXMLTVProgramGuideChange=function(e,t){if(!e||!t)return void a.props.selectEPGLineup({lineupUUID:null});var i=n.i(g.a)(e),r="lineup://tv.plex.providers.epg.xmltv/"+i+"#"+encodeURIComponent(t);a.props.selectEPGLineup({lineupUUID:r})},s=i,o()(a,s)}return u()(t,e),t.prototype.componentWillMount=function(){this._populate(this.props)},t.prototype._populate=function(e){n.i(m.a)(function(){var t=e.serverEntityID;e.fetchEPGLanguages({
serverEntityID:t}),e.selectEPGLineup({lineupUUID:null})})},t.prototype.render=function(){return h.a.createElement(I.a,d()({onLanguageSelect:this.onLanguageSelect,onRegionSelect:this.onRegionSelect,onPostalCodeChange:this.onPostalCodeChange,onXMLTVProgramGuideChange:this.onXMLTVProgramGuideChange,onSubmit:this.onSubmit},this.props))},t}(p.Component);t.a=n.i(f.b)(i,w)(D)},function(e,t,n){"use strict"
;var i=n(7),a=n.n(i),r=n(9),s=n.n(r),o=n(8),l=n.n(o),u=n(0),c=n.n(u),d=n(39),p=n.n(d),h=n(167),f=function(e){function t(n,i){a()(this,t);var r=s()(this,e.call(this,n,i));return r.onPostalCodeChange=function(e){r.setState({postalCode:e},function(){r.props.onPostalCodeChange(e)})},r.state={postalCode:""},r}return l()(t,e),t.prototype.componentWillReceiveProps=function(e){this.state.postalCode!==e.postalCode&&this.setState({postalCode:e.postalCode})},t.prototype.focusInput=function(e){
e&&p.a.findDOMNode(e).focus()},t.prototype.render=function(){var e=this.props.postalCodeExample,t=this.state.postalCode;return c.a.createElement(h.a,{name:"postalCodeInput",placeholder:"e.g. "+e,value:t,ref:this.focusInput,onChange:this.onPostalCodeChange})},t}(u.Component);t.a=f},function(e,t,n){"use strict";function i(e){return{postalCode:e.ui.liveTVSettingsPage.dvrSetup.epgSettings.postalCode}}
var a=n(6),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=n.n(p),f=n(11),v=n(35),m=n(424),g=n(2087),y=function(e){function t(i,a){o()(this,t);var r=u()(this,e.call(this,i,a));return r._fetchEPGLineups=function(){r.props.fetchEPGLineups({serverEntityID:r.props.serverEntityID})},r.onPostalCodeChange=function(e){r._postalCodeTimeoutID&&clearTimeout(r._postalCodeTimeoutID),n.i(v.a)(function(){r.props.setEPGPostalCode({serverEntityID:r.props.serverEntityID,postalCode:e}),
""!==e.trim()&&(r._postalCodeTimeoutID=setTimeout(r._fetchEPGLineups,200))})},r._postalCodeTimeoutID=null,r}return d()(t,e),t.prototype.componentWillUnmount=function(){this._postalCodeTimeoutID&&clearTimeout(this._postalCodeTimeoutID)},t.prototype.render=function(){return h.a.createElement(g.a,r()({onPostalCodeChange:this.onPostalCodeChange},this.props))},t}(p.Component);t.a=n.i(f.b)(i,m)(y)},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(20),f=n(67),v=n(38),m=n(47),g=n(92),y=n(215),b=n(143),S=n(69),I=n(95),M=n(302),C=n(370),w=n(616),D=n(959),P=n(958),T=n(957),x=n(2772),E=n.n(x),N=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onLineupsMenuButtonPress=function(){a.setState({isLineupsMenuOpen:!a.state.isLineupMenuOpen})},a.onLineupsMenuClose=function(){a.setState({isLineupsMenuOpen:!1})},a.state={
isLineupsMenuOpen:!1},a}return c()(t,e),t.prototype.render=function(){
var e=this.props,t=e.dvrID,i=e.setupErrorMessage,r=e.selectedLineupUUID,s=e.availableLineups,o=e.lineupChannels,l=e.channelMappings,u=e.isChannelMappingsPending,c=e.isLineupChannelsPending,d=e.isSavingDVR,D=e.channelMappingsErrorMessage,x=e.formState,N=e.allChannelMappingsEnabled,L=e.allChannelMappingsDisabled,A=e.onAllChannelMappingsEnabledChange,k=e.onFormStateChange,_=e.onLineupSelect,O=e.onModalClose,j=e.onSubmit,R=u||c,U=!!s.length,z=[{"":n.i(p.default)("Select Program Guide")
}].concat(s),B=r?decodeURIComponent(r.match(/#(.+?)$/)[1]):void 0;return a()(b.a,{className:E.a.form,formState:x,onChange:k,onSubmit:j},void 0,a()(M.a,{errorMessage:i,onModalClose:O},void 0,D&&a()(S.a,{className:E.a.channelMappingsBody,scrollDirection:h.a.NONE},void 0,a()("div",{className:E.a.centeredContainer},void 0,D)),!D&&a()(S.a,{className:E.a.channelMappingsBody,scrollDirection:h.a.NONE},void 0,U&&a()("div",{},void 0,a()("div",{className:E.a.programGuideLabel
},void 0,n.i(p.default)("Program Guide")),a()("div",{className:E.a.programGuideSelectContainer},void 0,a()(y.a,{name:"programGuide",values:z,value:r,onChange:_}))),!U&&a()("div",{className:E.a.programGuideTitle},void 0,B),R&&a()("div",{className:E.a.centeredContainer},void 0,a()(v.a,{label:n.i(p.default)("Loading channel mappings")})),!R&&r&&a()(f.a,{className:E.a.scroller,autoScroll:!0},void 0,a()(P.a,{allChannelMappingsEnabled:N,allChannelMappingsDisabled:L,onAllChannelMappingsEnabledChange:A
}),l.map(function(e){var t=e.key,n=e.deviceIdentifier,i=e.name,r=e.enabled,s=e.lineupIdentifier,l=e.drm,u=e.isChannelMissing;return a()(T.a,{name:t,initialValue:{enabled:r,lineupIdentifier:s},deviceIdentifier:n,channelName:i,drm:l,isChannelMissing:u,lineupChannels:o},t)}))),a()(C.a,{},void 0,a()(I.a,{},void 0,a()(m.a,{kind:h.b.DEFAULT,size:h.d.MEDIUM,onPress:O},void 0,n.i(p.default)("Cancel"))),a()(I.a,{},void 0,a()(w.a,{dvrID:t}),a()(g.a,{type:"submit",kind:h.b.PRIMARY,size:h.d.MEDIUM,
isSpinning:d},void 0,n.i(p.default)("Continue"))))))},t}(d.Component);t.a=n.i(D.a)(N)},function(e,t,n){"use strict";function i(e,t){if(e){var i=I.a.parseXML(e.responseText);if(i.message)return i.message}else{if(!t)return;var a=I.a.parseXML(t.responseText);if(a.message)return a.message}return n.i(b.default)("Unable to load channel mappings")}function a(){return n.i(y.createSelector)(M.a,C.a,w.a,n.i(D.a)(),function(e,t,n,a){
var r=e.selectedDevice,s=e.selectedLineupUUID,o=e.isChannelMappingsPending,l=e.isLineupChannelsPending,u=e.channelMappingsError,c=e.lineupChannelsError,d=e.isSavingDVR;return{setupErrorMessage:t,selectedDevice:r,selectedLineupUUID:s,availableLineups:f.a.reduce(e.epgSettings.lineupGroup.lineups,function(e,t){var n;return e.push((n={},n[t.uuid]=t.title,n)),e},[]),lineupChannels:n,channelMappings:a,isChannelMappingsPending:o,isLineupChannelsPending:l,isSavingDVR:d,channelMappingsErrorMessage:i(u,c)
}})}var r=n(6),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(3),f=n.n(h),v=n(0),m=n.n(v),g=n(11),y=n(5),b=(n.n(y),n(4)),S=n(35),I=n(60),M=n(142),C=n(293),w=n(907),D=n(903),P=n(101),T=n(2089),x={fetchLineupChannels:P.b,fetchChannelMap:P.c,selectEPGLineup:P.d,clearChannelMapError:P.e,saveDVR:P.f,addDVRDevice:P.g},E=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o];return n=i=c()(this,e.call.apply(e,[this].concat(s))),
i.onLineupSelect=function(e){var t=i.props,n=t.serverEntityID,a=t.selectedDevice;i.props.selectEPGLineup({serverEntityID:n,lineupUUID:e}),i.props.fetchLineupChannels({serverEntityID:n,lineupUUID:e}),i.props.fetchChannelMap({serverEntityID:n,deviceUUID:a.uuid,lineupUUID:e,forceEnabled:!0})},i.onAddDeviceSubmit=function(e){var t=i.props,n=t.serverEntityID,a=t.dvrID,r=t.selectedDevice;i.props.addDVRDevice({serverEntityID:n,dvrID:a,deviceID:r.key,data:e})},i.onSaveDVRSubmit=function(e){
var t=i.props,n=t.serverEntityID,a=t.selectedDevice;i.props.saveDVR({serverEntityID:n,deviceID:a.key,data:e})},a=n,c()(i,a)}return p()(t,e),t.prototype.componentWillMount=function(){this._populate(this.props)},t.prototype.componentWillUnmount=function(){this.props.clearChannelMapError()},t.prototype._populate=function(e){var t=e.serverEntityID,i=e.selectedDevice.uuid,a=e.selectedLineupUUID;a&&n.i(S.a)(function(){e.fetchLineupChannels({serverEntityID:t,lineupUUID:a}),e.fetchChannelMap({
serverEntityID:t,deviceUUID:i,lineupUUID:a,forceEnabled:!0})})},t.prototype.render=function(){var e=this.props.dvrID;return m.a.createElement(T.a,s()({onLineupSelect:this.onLineupSelect,onSubmit:e?this.onAddDeviceSubmit:this.onSaveDVRSubmit},this.props))},t}(v.Component);t.a=n.i(g.b)(a,x)(E)},function(e,t,n){"use strict";function i(){return n.i(p.createSelector)(n.i(h.a)(),n.i(f.a)(),n.i(v.a)(),function(e,t,n){var i=l.a.pick(n,"hubIdentifier","title","type","size","more","random");return s()({
machineIdentifier:e.machineIdentifier,providerIdentifier:t.identifier},i,{metadataListEntityID:n.metadataList,containerKey:n.key})})}function a(e){var t=e.title,i=e.hubIdentifier,a=e.type,r=e.containerKey,o=e.machineIdentifier,l=e.providerIdentifier,u=i.indexOf("music.video")>-1?m.a:a,d="home.continue"===i?y.b:y.e,p=n.i(M.r)(u)||u===m.b||u===m.a,h=void 0;return r&&d!==y.b&&(h=n.i(g.a)(o,l,{key:r,title:t,type:u})),c.a.createElement(b.a,s()({listType:u,listContext:d,hubLink:h,component:p?S.a:I.a
},e))}var r=n(6),s=n.n(r),o=n(3),l=n.n(o),u=n(0),c=n.n(u),d=n(11),p=n(5),h=(n.n(p),n(46)),f=n(136),v=n(780),m=n(286),g=n(665),y=n(32),b=n(158),S=n(960),I=n(2048),M=n(30);t.a=n.i(d.b)(i)(a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(139)),h=n(99),f=n(183),v=n(57),m=n.n(v),g=n(1052),y=n(1055),b=n(131),S=n(961),I=n(2777),M=n.n(I),C=parseInt(m.a.mosaicCellPadding,10),w=function(e){function t(n,i){s()(this,t)
;var a=l()(this,e.call(this,n,i));return a.state={layout:a._createLayout(n),cellRenderer:a._createCellRenderer(n)},a}return c()(t,e),t.prototype.componentWillReceiveProps=function(e){
var t=e.aspectRatios!==this.props.aspectRatios,n=e.columns!==this.props.columns,i=e.viewportWidth!==this.props.viewportWidth,a=e.viewportHeight!==this.props.viewportHeight,r=e.serverEntityID!==this.props.serverEntityID,s=e.providerEntityID!==this.props.providerEntityID,o=e.metadataListEntityID!==this.props.metadataListEntityID,l=t||n||a||i,u=r||s||o;if(l||u){var c={};l&&(c.layout=this._createLayout(e)),u&&(c.cellRenderer=this._createCellRenderer(e)),this.setState(c)}},
t.prototype._createLayout=function(e){var t=n.i(y.a)({aspectRatios:e.aspectRatios,columns:e.columns});return n.i(g.a)({columns:e.columns,rows:t,innerPadding:C,maximumHeight:e.cellHeight-(e.footerHeight+e.headerHeight)})},t.prototype._createCellRenderer=function(e){var t=e.serverEntityID,i=e.providerEntityID,a=e.metadataListEntityID,r=e.containerKey,s=e.listType;return n.i(b.a)({serverEntityID:t,providerEntityID:i,metadataListEntityID:a,containerKey:r,listType:s},S.a)},
t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.className,i=e.cellX,r=e.cellY,s=e.cellWidth,o=e.cellHeight,l=e.title,u=e.items,c=e.size,d=e.viewportHeight,p=e.scrollTop,v=this.state,m=v.layout,g=v.cellRenderer;return a()(h.a,{className:n,cellX:i,cellY:r,cellWidth:s,cellHeight:o},void 0,a()("div",{className:M.a.header},void 0,l),a()(f.a,{serverEntityID:t,items:u,keyPropName:"metadataItemEntityID",size:c,cellRenderer:g,viewportWidth:s,viewportHeight:d,scrollTop:p-r,layout:m
}))},t}(d.Component);w.defaultProps={headerHeight:0,footerHeight:0},t.a=n.i(p.a)(w)},function(e,t,n){"use strict";function i(){return n.i(s.createSelector)(function(e,t){return t.start},function(e,t){return t.end},n.i(u.a)(),function(e,t,n){var i=n.populatedRange,a=n.metadataItems;return e<i.start||t>i.end?l.a.times(t-e,function(){return null}):a.slice(e-i.start,t-i.start)})}function a(){return n.i(s.createSelector)(function(e,t){return t.avgAR},n.i(u.a)(),i(),d.a,function(e,t,i,a){
var r=i.map(function(t){return t?n.i(c.a)(a[t],e):e});return{containerKey:t.containerKey,listType:"photo",aspectRatios:r,items:i}})}var r=n(11),s=n(5),o=(n.n(s),n(3)),l=n.n(o),u=n(149),c=n(579),d=n(110),p=n(2092);t.a=n.i(r.b)(a)(p.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(26)),h=n(27),f=n(139),v=n(99),m=n(451),g=n(247),y=n(2778),b=n.n(y),S=a()(h.a,{name:"plex-icon-clips-560"}),I=function(e){function t(){
return s()(this,t),l()(this,e.apply(this,arguments))}return c()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(p.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.containerKey,s=e.listType,o=e.metadataKey,l=e.type,u=e.title,c=e.thumb,d=e.cellX,p=e.cellY,h=e.cellWidth,f=e.cellHeight,y=e.showOffscreenPlaceholder,I=e.selectionType,M=e.activeSelectionType,C=e.isSelected,w=e.onSelectItem,D=e.onDeselectItem,P="clip"===l,T="photoalbum"===l,x=!o;return a()(v.a,{cellX:d,cellY:p,cellWidth:h,cellHeight:f},void 0,a()("div",{className:b.a.photoContainer},void 0,a()("div",{
className:b.a.photo},void 0,a()("div",{className:b.a.image},void 0,x&&a()(m.a,{imageWidth:h,imageHeight:f,activeSelectionType:M,isSelected:C}),!x&&a()(g.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,containerKey:r,listType:s,metadataKey:o,type:l,imageUrl:c,imageWidth:h,imageHeight:f,selectionType:I,activeSelectionType:M,isSelected:C,isOffscreen:y,onSelectItem:w,onDeselectItem:D}),P&&a()("div",{className:b.a.badge},void 0,S),T&&a()("div",{className:b.a.title},void 0,u)))))},t
}(d.Component);t.a=n.i(f.a)(I)},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.serverEntityID,a=e.providerEntityID,s=e.metadataItemEntityID,l=e.searchResultEntityID,c=e.containerKey,f=(e.cellIndex,
e.cellX),b=e.cellY,I=e.cellWidth,M=e.cellHeight,C=e.showScrollPlaceholder,w=e.showOffscreenPlaceholder,D=e.listType,P=e.listContext,T=e.titleComponents,x=e.isContinueWatching,E=e.metadataKey,N=e.type,L=e.selectionType,A=e.activeSelectionType,k=e.isSelected,_=e.imageWidth,O=e.imageHeight,j=e.imageUrl,R=e.onSelectItem,U=e.onDeselectItem,z=u()(e,["className","serverEntityID","providerEntityID","metadataItemEntityID","searchResultEntityID","containerKey","cellIndex","cellX","cellY","cellWidth","cellHeight","showScrollPlaceholder","showOffscreenPlaceholder","listType","listContext","titleComponents","isContinueWatching","metadataKey","type","selectionType","activeSelectionType","isSelected","imageWidth","imageHeight","imageUrl","onSelectItem","onDeselectItem"]),B=!E,F=B||C,V="mixed"===D?n.i(h.a)(N,P).concat(T):T
;return o()(v.a,{className:t,cellX:f,cellY:b,cellWidth:I,cellHeight:M},void 0,F?o()(g.a,{imageWidth:_,imageHeight:O,activeSelectionType:A,isSelected:k}):d.a.createElement(m.a,r()({serverEntityID:i,providerEntityID:a,metadataItemEntityID:s,containerKey:c,listType:D,listContext:P,metadataKey:E,type:N,imageWidth:_,imageHeight:O,imageUrl:j,selectionType:L,activeSelectionType:A,isSelected:k,isOffscreen:w,onSelectItem:R,onDeselectItem:U},z)),o()("div",{
className:x?S.a.continueWatchingTitleContainer:S.a.titleContainer},void 0,B?n.i(p.default)("Loading..."):V.map(function(e,t){return o()(y.a,{serverEntityID:i,providerEntityID:a,metadataItemEntityID:s,searchResultEntityID:l,containerKey:c,component:e,isSecondary:t>0,isSplitLeft:x&&0===t,isSplitRight:x&&1===t},t)})))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(4),h=(n(32),n(173)),f=n(139),v=n(99),m=n(247),g=n(451),y=n(249),b=n(2779),S=n.n(b);t.a=n.i(f.a)(i)
},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=n.n(d),h=n(2553),f=n(368),v=n(131),m=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.state={layout:a._createLayout(n)},a}return c()(t,e),t.prototype.componentWillReceiveProps=function(e){var t=e.items!==this.props.items,n=e.columns!==this.props.columns;(t||n)&&this.setState({layout:this._createLayout(e)})},t.prototype._createLayout=function(e){
return n.i(h.a)({columns:e.columns,areas:e.items.map(function(e){return e.area}),innerPaddingTop:e.headerHeight,innerPaddingBottom:e.footerHeight,outerPaddingTop:e.listPadding,outerPaddingRight:e.listPadding-e.listGutter,outerPaddingBottom:e.listPadding,outerPaddingLeft:e.listPadding})},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,i=e.providerEntityID,r=e.metadataListEntityID,s=e.columns,o=e.headerHeight,l=e.footerHeight,u=e.cellComponent;return p.a.createElement(f.a,a()({
layout:this.state.layout,cellRenderer:n.i(v.a)({serverEntityID:t,providerEntityID:i,metadataListEntityID:r,columns:s,headerHeight:o,footerHeight:l},u)},this.props))},t}(d.Component);t.a=m},function(e,t,n){"use strict";function i(){return n.i(g.createSelector)(y.a,function(e){return{disableReloadThreshold:!!e.activeSelectionType}})}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(7),u=n.n(l),c=n(9),d=n.n(c),p=n(8),h=n.n(p),f=n(0),v=n.n(f),m=n(11),g=n(5),y=(n.n(g),n(83)),b=n(125),S=n(2096),I={
dispatchPopulateMetadataListRange:b.d,dispatchDeselectAllMetadataListItems:b.e},M=function(e){function t(){var n,i,a;u()(this,t);for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o];return n=i=d()(this,e.call.apply(e,[this].concat(s))),i.onPageRequest=function(e){var t=e.startIndex,n=e.endIndex,a=i.props,r=a.metadataListEntityID,s=a.disableReloadThreshold,o=a.items;(0,a.dispatchPopulateMetadataListRange)({metadataListEntityID:r,disableReloadThreshold:s,startIndex:o[t].start,
endIndex:o[n].end-1,pages:1})},a=n,d()(i,a)}return h()(t,e),t.prototype.componentWillUnmount=function(){var e=this.props.metadataListEntityID;this.props.dispatchDeselectAllMetadataListItems({metadataListEntityID:e})},t.prototype.render=function(){var e=this.props,t=(e.dispatchPopulateMetadataListRange,e.dispatchDeselectAllMetadataListItems,o()(e,["dispatchPopulateMetadataListRange","dispatchDeselectAllMetadataListItems"]));return v.a.createElement(S.a,r()({onPageRequest:this.onPageRequest},t))},
t}(f.Component);t.a=n.i(m.b)(i,I)(M)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(139),f=n(50),v=n(32),m=n(99),g=n(27),y=n(84),b=n(23),S=n(441),I=n(303),M=n(247),C=n(451),w=n(630),D=n(250),P=n(374),T=n(2780),x=n.n(T),E=a()(g.a,{name:"plex-icon-edit-560"}),N=a()(g.a,{name:"plex-icon-more-560"}),L=function(e){function t(i,a){s()(this,t);var r=l()(this,e.call(this,i,a));return r.onActionsPress=function(e){r.setState({
isActionsMenuOpen:!r.state.isActionsMenuOpen})},r.onActionsMenuClose=function(){r.setState({isActionsMenuOpen:!1})},r.state={isActionsMenuOpen:!1},r._moreButtonID=n.i(f.a)(),r}return c()(t,e),t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,i=e.providerEntityID,r=e.metadataItemEntityID,s=e.containerKey,o=e.listType,l=e.listContext,u=e.cellIndex,c=e.cellX,d=e.cellY,h=e.cellWidth,f=e.cellHeight,g=e.showScrollPlaceholder,T=e.showOffscreenPlaceholder,L=e.metadataKey,A=e.type,k=e.index,_=e.title,O=e.grandparentKey,j=e.summary,R=e.isFolder,U=e.route,z=e.showLink,B=e.showEdit,F=e.showSelect,V=e.showMore,Q=e.hasActiveSelection,H=e.isSelected,W=e.isOtherItemSelected,Y=e.isModifierKeyPressed,G=e.imageWidth,K=e.imageHeight,q=e.imageUrl,X=e.onEditPress,Z=e.onSelectPress,J=e.onDeselectPress,$=this.state.isActionsMenuOpen,ee=l===v.e,te=F&&(Y||W),ne=Q?"-1":"0"
;return a()(m.a,{className:((u%2?x.a.alternateItem:x.a.item)||"")+" "+(Q&&x.a.hasActiveSelection||"")+" "+(te&&x.a.isForcingSelection||"")+" "+(H&&x.a.isSelected||"")+" "+($&&x.a.isActionsMenuOpen||""),cellX:c,cellY:d,cellWidth:h,cellHeight:f},void 0,F&&a()(b.a,{className:x.a.selectCoverButton,"aria-label":H?n.i(p.default)("Deselect {title}",{title:_}):n.i(p.default)("Select {title}",{title:_}),tabIndex:z&&!Q?"-1":"0",onPress:H?J:Z}),z&&a()(b.a,{className:x.a.underlay,tabIndex:ne,to:U,
"aria-label":_}),a()("div",{className:x.a.overlay},void 0,a()("div",{className:x.a.posterContainer},void 0,g?a()(C.a,{imageWidth:G,imageHeight:K}):a()(M.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:r,containerKey:s,listType:o,listContext:l,metadataKey:L,type:A,imageWidth:G,imageHeight:K,imageUrl:q,isOffscreen:T,isFolder:R,showLink:!1,showSelect:!1,showEdit:!1,showMore:!1})),a()("div",{className:ee?x.a.librarySummaryContainer:x.a.summaryContainer
},void 0,a()("div",{},void 0,a()("div",{className:x.a.titleContainer},void 0,a()("div",{className:x.a.title},void 0,!!O&&a()("span",{},void 0,ee?a()(D.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:r}):a()(w.a,{index:k}),a()(y.a,{className:x.a.separator})),_),a()("div",{className:x.a.rating},void 0,a()(P.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:r})),a()("div",{className:x.a.actions},void 0,F&&a()(S.a,{className:x.a.selectButton,tabIndex:ne,title:_,isSelected:H,
onPress:Z}),B&&a()(b.a,{className:x.a.editButton,tabIndex:ne,"aria-label":n.i(p.default)("Edit {title}",{title:_}),onPress:X},void 0,E),V&&a()(b.a,{id:this._moreButtonID,className:x.a.moreButton,tabIndex:ne,"aria-label":n.i(p.default)("More Actions"),"aria-haspopup":!0,onPress:this.onActionsPress},void 0,N,a()(I.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:r,containerKey:s,listType:o,showPlay:!1,showQueuePlexMix:!1,showEdit:!1,target:this._moreButtonID,isOpen:$,
onMenuClose:this.onActionsMenuClose})))),a()("div",{className:x.a.summary},void 0,j)))))},t}(d.Component);t.a=n.i(h.a)(L)},function(e,t,n){"use strict";function i(e){var t=e.cellIndex,i=e.cellX,a=e.cellY,s=e.cellWidth,l=e.cellHeight,d=e.imageWidth,h=e.imageHeight;return r()(u.a,{className:t%2?p.a.alternateLoadingItem:p.a.loadingItem,cellX:i,cellY:a,cellWidth:s,cellHeight:l},void 0,r()("div",{className:p.a.posterContainer},void 0,r()(c.a,{imageWidth:d,imageHeight:h
})),n.i(o.default)("Loading..."))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(139),u=n(99),c=n(451),d=n(2781),p=n.n(d);t.a=n.i(l.a)(i)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,i=e.providerEntityID,a=e.metadataListEntityID,s=e.containerKey,l=e.containerTitle,f=e.listType,v=e.listContext,m=o()(e,["serverEntityID","providerEntityID","metadataListEntityID","containerKey","containerTitle","listType","listContext"]);return u.a.createElement(p.a,r()({listType:f,
listContext:v,layout:c.a,cellRenderer:n.i(d.a)({serverEntityID:t,providerEntityID:i,metadataListEntityID:a,listType:f,listContext:v,containerKey:s,containerTitle:l},h.a)},m))}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=(n(32),n(1056)),d=n(131),p=n(368),h=n(962);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,i=e.providerEntityID,a=e.metadataListEntityID,s=e.containerKey,l=e.containerTitle,f=e.listType,v=e.listContext,m=e.activeSort,g=e.selectedSort,y=o()(e,["serverEntityID","providerEntityID","metadataListEntityID","containerKey","containerTitle","listType","listContext","activeSort","selectedSort"]);return u.a.createElement(p.a,r()({listType:f,listContext:v,layout:c.a,cellRenderer:n.i(d.a)({serverEntityID:t,providerEntityID:i,metadataListEntityID:a,containerKey:s,
containerTitle:l,listType:f,listContext:v,activeSort:m,selectedSort:g},h.a)},y))}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(662),d=(n(32),n(131)),p=n(368),h=n(618);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.style,n=e.component,i=e.isActiveSort,a=u()(e,["style","component","isActiveSort"]);return o()("div",{className:i?h.a.activeTableCell:h.a.tableCell,style:t},void 0,d.a.createElement(n,r()({},a,{className:h.a.title})))}
var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(2782),h=n.n(p);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(93)),h=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u];return n=i=l()(this,e.call.apply(e,[this].concat(o))),i.onPress=function(e){(i.props.isSelected?i.props.onColumnDeselect:i.props.onColumnSelect)(i.props.columnKey)},
a=n,l()(i,a)}return c()(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.isSelected;return a()(p.a,{isSelected:n,onPress:this.onPress},void 0,t)},t}(d.Component);t.a=h},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=(n(114),n(50)),f=n(212),v=n(27),m=n(23),g=n(68),y=n(2103),b=n(2783),S=n.n(b),I=a()(v.a,{name:"plex-icon-more-560"}),M=function(e){function t(i,a){s()(this,t)
;var r=l()(this,e.call(this,i,a));return r.onChangeColumnsPress=function(e){r.setState({isColumnsMenuOpen:!r.state.isColumnsMenuOpen})},r.onColumnsMenuClose=function(){r.setState({isColumnsMenuOpen:!1})},r.state={isColumnsMenuOpen:!1},r._columnsButtonID=n.i(h.a)(),r}return c()(t,e),t.prototype.render=function(){
var e=this.props,t=e.activeTableColumns,i=e.allTableColumns,r=e.typeKey,s=e.activeFilters,o=e.activeFilterLabel,l=e.activeSort,u=e.customFilter,c=e.selectedSort,d=e.isDisabled,h=e.onColumnSelect,b=e.onColumnDeselect,M=this.state.isColumnsMenuOpen;return a()("div",{className:S.a.tableHeader},void 0,a()("div",{className:S.a.playCell}),t.map(function(e,t){var i=e.style,h=e.title,g=e.ascKey,y=e.descKey,b=l===g||l===y||c.key===g,I=l?l===g:c.key===g;return d?a()("div",{style:i,
className:S.a.tableHeaderLink},t,a()("div",{className:S.a.tableHeaderCell},void 0,a()("div",{className:S.a.tableHeaderTitle},void 0,h()))):a()(m.a,{style:i,className:S.a.tableHeaderLink,to:n.i(f.a)({typeKey:r,filters:s,filterLabel:o,sort:I?y:g,customFilter:u})},t,a()("div",{className:b?S.a.activeTableHeaderCell:S.a.tableHeaderCell},void 0,a()("div",{className:S.a.tableHeaderTitle},void 0,h()),b&&I&&a()(v.a,{className:S.a.sortDirectionIcon,name:"plex-icon-sort-ascending-560",
"aria-label":n.i(p.default)("Ascending")}),b&&!I&&a()(v.a,{className:S.a.sortDirectionIcon,name:"plex-icon-sort-descending-560","aria-label":n.i(p.default)("Descending")})))}),a()("div",{className:S.a.actionsCell},void 0,a()(m.a,{id:this._columnsButtonID,className:S.a.columnsButton,"aria-label":n.i(p.default)("Change Columns"),"aria-haspopup":!0,onPress:this.onChangeColumnsPress},void 0,I),a()(g.a,{target:this._columnsButtonID,isOpen:M,onMenuClose:this.onColumnsMenuClose
},void 0,i.map(function(e){return a()(y.a,{columnKey:e.key,isSelected:t.indexOf(e)!==-1,onColumnSelect:h,onColumnDeselect:b},e.key,e.title())}))))},t}(d.Component);t.a=M},function(e,t,n){"use strict";function i(){return n.i(v.createSelector)(function(e,t){return t.listType},n.i(m.a)(),function(e,t){return{allTableColumns:n.i(y.b)(e),activeTableColumns:t}})}var a=n(6),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=n.n(p),f=n(11),v=n(5),m=(n.n(v),
n(914)),g=n(242),y=n(1058),b=n(2104),S={selectLibraryTableColumn:g.selectLibraryTableColumn,deselectLibraryTableColumn:g.deselectLibraryTableColumn},I=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),l=0;l<r;l++)s[l]=arguments[l];return n=i=u()(this,e.call.apply(e,[this].concat(s))),i.onColumnSelect=function(e){i.props.selectLibraryTableColumn({type:i.props.listType,activeTableColumns:i.props.activeTableColumns,key:e})},i.onColumnDeselect=function(e){
i.props.deselectLibraryTableColumn({type:i.props.listType,activeTableColumns:i.props.activeTableColumns,key:e})},a=n,u()(i,a)}return d()(t,e),t.prototype.render=function(){return h.a.createElement(b.a,r()({},this.props,{onColumnSelect:this.onColumnSelect,onColumnDeselect:this.onColumnDeselect}))},t}(p.Component);t.a=n.i(f.b)(i,S)(I)},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(2),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(4),m=n(1048),g=n(139),y=n(50),b=n(32),S=n(99),I=n(27),M=n(610),C=n(23),w=n(186),D=n(441),P=n(303),T=n(2163),x=n(981),E=n(979),N=n(2102),L=n(2784),A=n.n(L),k=s()(I.a,{name:"plex-icon-edit-560"}),_=s()(I.a,{name:"plex-icon-more-560"}),O=function(e){function t(i,a){l()(this,t);var r=c()(this,e.call(this,i,a));return r.onActionsPress=function(e){r.setState({
isActionsMenuOpen:!r.state.isActionsMenuOpen})},r.onActionsMenuClose=function(){r.setState({isActionsMenuOpen:!1})},r.state={isActionsMenuOpen:!1},r._moreButtonID=n.i(y.a)(),r}return p()(t,e),t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,i=e.providerEntityID,r=e.metadataItemEntityID,o=e.containerKey,l=e.listType,u=e.listContext,c=e.activeSort,d=e.selectedSort,p=e.cellIndex,h=e.cellX,m=e.cellY,g=e.cellWidth,y=e.cellHeight,I=e.activeTableColumns,L=e.title,O=e.route,j=e.showLink,R=e.showPlay,U=e.showEdit,z=e.showSelect,B=e.showMore,F=e.showPlayIndex,V=e.showPlayCellIndex,Q=e.showActionsDuration,H=e.showActionsMinutesLeft,W=e.hasActiveSelection,Y=e.isSelected,G=e.isOtherItemSelected,K=e.isModifierKeyPressed,q=e.isPlaying,X=e.isPlayerPaused,Z=e.onPlayPress,J=e.onEditPress,$=e.onSelectPress,ee=e.onDeselectPress,te=e.hoverableProps,ne=e.isHovered,ie=this.state.isActionsMenuOpen,ae=u===b.e,re=z&&(K||G),se=W?"-1":"0",oe=!ne
;return f.a.createElement(S.a,a()({className:((p%2?A.a.alternateItem:A.a.item)||"")+" "+(W&&A.a.hasActiveSelection||"")+" "+(re&&A.a.isForcingSelection||"")+" "+(Y&&A.a.isSelected||"")+" "+(ie&&A.a.isActionsMenuOpen||""),cellX:h,cellY:m,cellWidth:g,cellHeight:y},te),z&&s()(C.a,{className:A.a.selectCoverButton,"aria-label":Y?n.i(v.default)("Deselect {title}",{title:L}):n.i(v.default)("Select {title}",{title:L}),tabIndex:j&&!W?"-1":"0",onPress:Y?ee:$}),j&&s()(C.a,{className:A.a.underlay,
tabIndex:se,to:O,"aria-label":L}),s()("div",{className:A.a.overlay},void 0,s()("div",{className:A.a.playCell},void 0,F&&!q&&s()(T.a,{className:A.a.transientTitleLeft,serverEntityID:t,providerEntityID:i,metadataItemEntityID:r}),V&&!q&&s()("span",{className:A.a.transientTitleLeft},void 0,p+1),R&&!q&&s()(w.a,{className:A.a.playButton,tabIndex:se,title:L,onPress:Z}),q&&s()(M.a,{className:A.a.equalizer,isPaused:X})),I.map(function(e,n){var a=e.style,o=e.component,l=e.ascKey,u=e.descKey
;return s()(N.a,{style:a,serverEntityID:t,providerEntityID:i,metadataItemEntityID:r,component:o,isActiveSort:c===l||c===u||!!d&&d.key===l,hideUnrated:oe},n)}),s()("div",{className:ae?A.a.libraryActionsCell:A.a.actionsCell},void 0,Q&&s()(x.a,{className:A.a.transientTitleRight,serverEntityID:t,providerEntityID:i,metadataItemEntityID:r}),H&&s()(E.a,{className:A.a.transientTitleRight,serverEntityID:t,providerEntityID:i,metadataItemEntityID:r}),z&&s()(D.a,{className:A.a.selectButton,tabIndex:se,
title:L,isSelected:Y,onPress:$}),U&&s()(C.a,{className:A.a.editButton,tabIndex:se,"aria-label":n.i(v.default)("Edit {title}",{title:L}),onPress:J},void 0,k),B&&s()(C.a,{id:this._moreButtonID,className:A.a.moreButton,tabIndex:se,"aria-label":n.i(v.default)("More Actions"),"aria-haspopup":!0,onPress:this.onActionsPress},void 0,_,s()(P.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:r,containerKey:o,listType:l,showPlay:!1,showQueuePlexMix:!1,showEdit:!1,target:this._moreButtonID,
isOpen:ie,onMenuClose:this.onActionsMenuClose})))))},t}(h.Component);t.a=n.i(m.a)(n.i(g.a)(O))},function(e,t,n){"use strict";function i(e){var t=e.cellIndex,i=e.cellX,a=e.cellY,s=e.cellWidth,l=e.cellHeight;return r()(u.a,{className:t%2?d.a.alternateLoadingItem:d.a.loadingItem,cellX:i,cellY:a,cellWidth:s,cellHeight:l},void 0,n.i(o.default)("Loading..."))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(139),u=n(99),c=n(2785),d=n.n(c);t.a=n.i(l.a)(i)},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(26)),h=n(27),f=n(139),v=n(99),m=n(301),g=n(248),y=n(970),b=n(2786),S=n.n(b),I=a()(h.a,{name:"plex-icon-clips-560"}),M=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u];return n=i=l()(this,e.call.apply(e,[this].concat(o))),i.onPlayPress=function(){i.props.onPlayPress(i.props.metadataKey)},a=n,l()(i,a)}return c()(t,e),
t.prototype.shouldComponentUpdate=function(e,t){return n.i(p.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.metadataKey,s=e.playlistItemID,o=e.type,l=e.thumb,u=e.title,c=e.cellX,d=e.cellY,p=e.cellWidth,h=e.cellHeight,f=e.hasActiveSelection,b=e.isSmart,M=e.isSelected,C=e.isOtherItemSelected,w=e.isModifierKeyPressed,D=e.onSelectPress,P=e.onDeselectPress,T=e.onRemovePress,x="clip"===o,E=!r;return a()(v.a,{cellX:c,
cellY:d,cellWidth:p,cellHeight:h},void 0,a()("div",{className:S.a.photoContainer},void 0,a()("div",{className:(S.a.photo||"")+" "+(M&&S.a.isSelected||"")+" "+(C&&S.a.isOtherItemSelected||"")},void 0,a()("div",{className:S.a.image},void 0,!E&&a()(m.a,{serverEntityID:t,component:g.a,url:l,width:p,height:h},s||r),a()(y.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,title:u,showPlay:!0,showSelect:!b,showRemove:!b,hasActiveSelection:f,isSelected:M,isOtherItemSelected:C,
isModifierKeyPressed:w,onPlayPress:this.onPlayPress,onRemovePress:T,onSelectPress:D,onDeselectPress:P}),x&&a()("div",{className:S.a.badge},void 0,I)))))},t}(d.Component);t.a=n.i(f.a)(M)},function(e,t,n){"use strict";function i(){return n.i(s.createSelector)(function(e,t){return t.playlistItemEntityID},n.i(l.a)(),n.i(u.a)(),d.a,h.a,function(e,t){
var i=t.playlistItemID,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments[3],s=arguments[4],l=a.entityID,u=a.key,c=a.type,d=a.thumb,p=a.title;return{listType:o.c,playlistItemID:i,metadataItemEntityID:l,metadataKey:u,type:c,thumb:d,title:p,selectionID:e,selectionType:o.c,activeSelectionType:s.activeSelectionType,isSelected:n.i(f.a)(r,i)}})}function a(e,t){var i=t.playlistItemEntityID,a=t.serverEntityID,r=t.providerEntityID,s=t.playlistMetadataItemEntityID,o=t.onRemoveItem
;return{onRemovePress:function(){o({playlistItemEntityID:i})},onPlayPress:function(t){e(n.i(p.c)({serverEntityID:a,providerEntityID:r,metadataItemEntityID:s,options:{itemKey:t}}))}}}var r=n(11),s=n(5),o=(n.n(s),n(66)),l=n(787),u=n(786),c=n(464),d=n(912),p=n(58),h=n(83),f=n(1061),v=n(2108);t.a=n.i(r.b)(i,a)(n.i(c.a)(v.a))},function(e,t,n){"use strict";function i(e,t){return!!h.a.find(e,function(e){return t[e]})}
var a=n(2),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(3),h=n.n(p),f=n(0),v=(n.n(f),
n(4)),m=n(64),g=n(20),y=n(420),b=n(144),S=n(446),I=n(965),M=n(2117),C=["showPlay","showPlayVersion","showPlayAll","showShuffle","showQueue","showPlayPlexMix","showQueuePlexMix","showPlayTrailer","showPlayMusicVideo","showAddToAlbum","showAddToPlaylist"],w=["showEdit","showMarkWatched","showMarkUnwatched","showRefresh","showAnalyze","showFixMatch","showMatch","showUnmatch","showSplitApart","showSync","showOptimize","showDownload","showWatchLater","showShare","showRecommend","showDelete","showDeleteVersion","showGetInfo"],D=r()(S.a,{}),P=function(e){
function t(n,i){o()(this,t);var a=u()(this,e.call(this,n,i));return a.onMarkWatchedPress=function(e){a.setState({isConfirmMarkWatchedModalOpen:!0}),a.props.onMenuDisable()},a.onMarkUnwatchedPress=function(e){a.setState({isConfirmMarkUnwatchedModalOpen:!0}),a.props.onMenuDisable()},a.onMarkWatchedConfirm=function(){var e=a.state.isConfirmMarkWatchedModalOpen;a.setState({isConfirmMarkWatchedModalOpen:!1,isConfirmMarkUnwatchedModalOpen:!1}),
e?a.props.onMarkWatchedConfirm():a.props.onMarkUnwatchedConfirm(),a.props.onMenuEnable()},a.onMarkWatchedCancel=function(){a.setState({isConfirmMarkWatchedModalOpen:!1,isConfirmMarkUnwatchedModalOpen:!1}),a.props.onMenuEnable()},a.onPlayVersionPress=function(e){a.setState({isPlayVersionModalOpen:!0}),a.props.onMenuDisable()},a.onPlayVersionSelect=function(e){a.setState({isPlayVersionModalOpen:!1}),a.props.onPlayVersionPress(e),a.props.onMenuEnable()},a.onPlayVersionCancel=function(){a.setState({
isPlayVersionModalOpen:!1}),a.props.onMenuEnable()},a.state={isConfirmMarkWatchedModalOpen:!1,isConfirmMarkUnwatchedModalOpen:!1,isPlayVersionModalOpen:!1},a}return d()(t,e),t.prototype.render=function(){var e=this.props,t=this.state,a=t.isConfirmMarkWatchedModalOpen,s=t.isConfirmMarkUnwatchedModalOpen,o=t.isPlayVersionModalOpen,l=i(C,e),u=i(w,e),c=l&&u;return r()("div",{},void 0,e.showPlay&&r()(b.a,{onPress:e.onPlayPress},void 0,e.playLabel||n.i(v.default)("Play")),e.showPlayVersion&&r()(b.a,{
onPress:this.onPlayVersionPress},void 0,n.i(v.default)("Play Version...")),e.showPlayAll&&r()(b.a,{onPress:e.onPlayAllPress},void 0,n.i(v.default)("Play All")),e.showShuffle&&r()(b.a,{onPress:e.onShufflePress},void 0,n.i(v.default)("Shuffle")),e.showQueue&&r()(b.a,{onPress:e.onPlayNextPress},void 0,n.i(v.default)("Play Next")),e.showQueue&&r()(b.a,{onPress:e.onAddToQueuePress},void 0,n.i(v.default)("Add to Queue")),e.showPlayPlexMix&&r()(b.a,{onPress:e.onPlayPlexMixPress
},void 0,n.i(v.default)("Play Plex Mix")),e.showQueuePlexMix&&r()(b.a,{onPress:e.onQueuePlexMixPress},void 0,n.i(v.default)("Queue Plex Mix")),e.showPlayTrailer&&r()(b.a,{onPress:e.onPlayPrimaryExtraPress},void 0,n.i(v.default)("Play Trailer")),e.showPlayMusicVideo&&r()(b.a,{onPress:e.onPlayPrimaryExtraPress},void 0,n.i(v.default)("Play Music Video")),e.showAddToAlbum&&r()(b.a,{onPress:e.onAddToPlaylistPress},void 0,n.i(v.default)("Add to Album...")),e.showAddToPlaylist&&r()(b.a,{
onPress:e.onAddToPlaylistPress},void 0,n.i(v.default)("Add to Playlist...")),c&&D,e.showEdit&&r()(b.a,{onPress:e.onEditPress},void 0,n.i(v.default)("Edit")),e.showMarkWatched&&r()(b.a,{onPress:this.onMarkWatchedPress},void 0,n.i(v.default)("Mark Watched")),e.showMarkUnwatched&&r()(b.a,{onPress:this.onMarkUnwatchedPress},void 0,n.i(v.default)("Mark Unwatched")),e.showRefresh&&r()(b.a,{isDisabled:e.isRefreshing,onPress:e.onRefreshPress
},void 0,n.i(v.default)("Refresh Metadata")),e.showAnalyze&&r()(b.a,{isDisabled:e.isAnalyzing,onPress:e.onAnalyzePress},void 0,n.i(v.default)("Analyze")),e.showFixMatch&&r()(b.a,{onPress:e.onFixMatchPress},void 0,n.i(v.default)("Fix Match...")),e.showMatch&&r()(b.a,{onPress:e.onFixMatchPress},void 0,n.i(v.default)("Match...")),e.showUnmatch&&r()(b.a,{onPress:e.onUnmatchPress},void 0,n.i(v.default)("Unmatch")),e.showSplitApart&&r()(b.a,{onPress:e.onSplitApartPress
},void 0,n.i(v.default)("Split Apart")),e.showSync&&r()(b.a,{onPress:e.onSyncPress},void 0,n.i(v.default)("Sync...")),e.showOptimize&&r()(b.a,{onPress:e.onOptimizePress},void 0,n.i(v.default)("Optimize...")),e.showDownload&&r()(y.a,{action:m.H},void 0,r()(b.a,{to:e.downloadUrl&&e.downloadUrl(),target:e.downloadUrl&&"_self",download:!!e.downloadUrl,onPress:e.downloadUrl?e.onPress:e.onDownloadVersionPress},void 0,n.i(v.default)("Download"))),e.showWatchLater&&r()(b.a,{onPress:e.onWatchLaterPress
},void 0,n.i(v.default)("Watch Later")),e.showShare&&r()(b.a,{onPress:e.onSharePress},void 0,n.i(v.default)("Share...")),e.showRecommend&&r()(b.a,{onPress:e.onRecommendPress},void 0,n.i(v.default)("Recommend...")),e.showDelete&&r()(b.a,{kind:g.b.DANGER,onPress:e.onDeletePress},void 0,n.i(v.default)("Delete")),e.showDeleteVersion&&r()(b.a,{kind:g.b.DANGER,onPress:e.onDeleteVersionPress},void 0,n.i(v.default)("Delete Version")),e.showGetInfo&&r()(b.a,{onPress:e.onGetInfoPress
},void 0,n.i(v.default)("Get Info")),r()(I.a,{isOpen:a||s,type:e.type,title:e.title,leafCount:a?e.unviewedLeafCount:e.viewedLeafCount,markUnwatched:s,onConfirm:this.onMarkWatchedConfirm,onCancel:this.onMarkWatchedCancel}),r()(M.a,{isOpen:o,mediaItems:e.mediaItems,onCancel:this.onPlayVersionCancel,onItemSelect:this.onPlayVersionSelect}))},t}(f.Component);t.a=P},function(e,t,n){"use strict";function i(){return n.i(o.createSelector)(function(e,t){return t.listType
},n.i(l.a)(),c.a,d.a,u.a,function(e,t,i,a,r){var o=n.i(v.d)(i,a,r,t,e);return s()({type:t.type,title:t.title,viewedLeafCount:t.viewedLeafCount,unviewedLeafCount:t.unviewedLeafCount,isRefreshing:!!t.metadataState,isAnalyzing:!!t.mediaState,downloadUrl:t.downloadUrl,mediaItems:t.Media},o)})}function a(e,t){var n={serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataItemEntityID:t.metadataItemEntityID,metricsPage:t.metricsPage};return{onPlayPress:function(){e(h.c(s()({},n,{
options:{containerKey:t.containerKey,listType:t.listType}}))),t.onPress()},onPlayVersionPress:function(i){e(h.c(s()({},n,{startMediaIndex:i,options:{containerKey:t.containerKey,listType:t.listType}}))),t.onPress()},onPlayAllPress:function(){e(h.e(n)),t.onPress()},onShufflePress:function(){e(h.f(n)),t.onPress()},onPlayNextPress:function(){e(h.b(s()({},n,{options:{playAll:!0,next:!0}}))),t.onPress()},onAddToQueuePress:function(){e(h.b(s()({},n,{options:{playAll:!0,next:!1}}))),t.onPress()},
onPlayPlexMixPress:function(){e(h.g(n)),t.onPress()},onQueuePlexMixPress:function(){e(h.h(n)),t.onPress()},onPlayPrimaryExtraPress:function(){e(h.i(n)),t.onPress()},onAddToPlaylistPress:function(){e(p.addMetadataItemToPlaylist(n)),t.onPress()},onMarkWatchedConfirm:function(){e(p.markMetadataItemWatched(s()({},n,{skipConfirm:!0}))),t.onPress()},onMarkUnwatchedConfirm:function(){e(p.markMetadataItemUnwatched(s()({},n,{skipConfirm:!0}))),t.onPress()},onEditPress:function(){e(p.editMetadataItem(n)),
t.onPress()},onRefreshPress:function(){e(p.refreshMetadataItem(n)),t.onPress()},onAnalyzePress:function(){e(p.analyzeMetadataItem(n)),t.onPress()},onFixMatchPress:function(){e(p.fixMetadataItemMatch(n)),t.onPress()},onUnmatchPress:function(){e(p.unmatchMetadataItem(n)),t.onPress()},onSplitApartPress:function(){e(p.splitMetadataItemApart(n)),t.onPress()},onSyncPress:function(){e(p.syncMetadataItem(n)),t.onPress()},onOptimizePress:function(){e(p.optimizeMetadataItem(n)),t.onPress()},
onDownloadVersionPress:function(){e(p.downloadMetadataItemVersion(n)),t.onPress()},onWatchLaterPress:function(){e(p.watchMetadataItemLater(n)),t.onPress()},onSharePress:function(){e(p.shareMetadataItem(n)),t.onPress()},onRecommendPress:function(){e(p.recommendMetadataItem(n)),t.onPress()},onDeletePress:function(){e(p.deleteMetadataItem(s()({},n,{options:{skipRedirect:!t.allowRedirectOnDelete}}))),t.onPress()},onDeleteVersionPress:function(){e(p.deleteMetadataItemVersion(n)),t.onPress()},
onGetInfoPress:function(){e(p.getMetadataItemInfo(n)),t.onPress()}}}var r=n(6),s=n.n(r),o=n(5),l=(n.n(o),n(21)),u=n(180),c=n(45),d=n(43),p=n(140),h=n(58),f=n(310),v=n(220),m=n(138),g=n(2110);t.a=n.i(m.a)(i,a,f.a)(g.a)},function(e,t,n){"use strict";function i(e){return r()(l.a,{target:e.target,isOpen:e.isOpen,onMenuClose:e.onMenuClose},void 0,e.showPlayAll&&r()(u.a,{onPress:e.onPlayAllPress},void 0,n.i(o.default)("Play All")),e.showShuffle&&r()(u.a,{onPress:e.onShufflePress
},void 0,n.i(o.default)("Shuffle")),e.showQueue&&r()(u.a,{onPress:e.onPlayNextPress},void 0,n.i(o.default)("Play Next")),e.showQueue&&r()(u.a,{onPress:e.onAddToQueuePress},void 0,n.i(o.default)("Add to Queue")),e.showAddToPlaylist&&r()(u.a,{onPress:e.onAddToPlaylistPress},void 0,n.i(o.default)("Add to Playlist...")),e.showSync&&r()(u.a,{onPress:e.onSyncPress},void 0,n.i(o.default)("Sync...")),e.showOptimize&&r()(u.a,{onPress:e.onOptimizePress},void 0,n.i(o.default)("Optimize...")))}
var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(613),u=n(144);t.a=i},function(e,t,n){"use strict";function i(e){return e===v.b?"plex-icon-toolbar-column-560":e===v.c?"plex-icon-toolbar-detail-560":"plex-icon-toolbar-grid-560"}var a=n(2),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=(n.n(p),n(4)),f=(n(31),n(32),n(20)),v=n(77),m=n(50),g=n(27),y=n(605),b=n(365),S=n(23),I=n(68),M=n(2114),C=n(2787),w=n.n(C),D=function(e){function t(i,a){o()(this,t);var r=u()(this,e.call(this,i,a))
;return r.onSliderChange=function(e){var t=e.steppedValue;r.setState({sliderValue:t}),r._clearTimeout(),r._columnAdjustmentTimeoutID=setTimeout(function(){r.props.onColumnAdjustmentChange(t*-1)},r.props.columnAdjustmentTimeout)},r.onStylesPress=function(e){r.setState({isStylesMenuOpen:!r.state.isStylesMenuOpen})},r.onStylesMenuClose=function(){r.setState({isStylesMenuOpen:!1})},r.onListStylePress=function(e){r.props.onListStyleChange(e)},r.state={sliderValue:i.columnAdjustment*-1,
isStylesMenuOpen:!1},r._stylesButtonID=n.i(m.a)(),r}return d()(t,e),t.prototype.componentWillReceiveProps=function(e){e.columnAdjustment!==this.props.columnAdjustment&&this.setState({sliderValue:e.columnAdjustment*-1})},t.prototype.componentWillUnmount=function(){this._clearTimeout()},t.prototype._clearTimeout=function(){this._columnAdjustmentTimeoutID&&clearTimeout(this._columnAdjustmentTimeoutID)},t.prototype.render=function(){var e=this,t=this.props,a=(t.listType,t.listContext,
t.selectedListStyle),s=t.allListStyles,o=this.state,l=o.sliderValue,u=o.isStylesMenuOpen,c=v.e,d=v.a,p=v.b,m=v.c,C=[{listStyle:c,title:n.i(h.default)("Grid View")},{listStyle:d,title:n.i(h.default)("Mosaic View")},{listStyle:p,title:n.i(h.default)("List View")},{listStyle:m,title:n.i(h.default)("Summary View")}],D=v.g(a),P=v.f(s);return D||P?r()("div",{className:w.a.stylesContainer},void 0,D&&r()(b.a,{className:w.a.slider,label:n.i(h.default)("Poster Size"),value:l,min:-1,max:2,stepSize:1,
onChange:this.onSliderChange}),r()(S.a,{id:this._stylesButtonID,className:w.a.stylesButton,"aria-label":n.i(h.default)("Show List Styles"),isDisabled:!P,onPress:this.onStylesPress},void 0,r()(g.a,{className:w.a.stylesIcon,name:i(a)}),P&&r()(y.a,{direction:u?f.f.UP:f.f.DOWN})),r()(I.a,{target:this._stylesButtonID,isOpen:u,onMenuClose:this.onStylesMenuClose},void 0,P&&C.map(function(t){var n=t.listStyle,i=t.title;return s.indexOf(n)>-1&&r()(M.a,{isSelected:a===n,title:i,listStyle:n,
onListStylePress:e.onListStylePress},n)}))):null},t}(p.Component);D.defaultProps={selectedListStyle:v.e,allListStyles:[v.e],allListStyleActions:[],columnAdjustmentTimeout:500},t.a=D},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(93)),h=(n(77),function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u];return n=i=l()(this,e.call.apply(e,[this].concat(o))),
i.onListStylePress=function(e){i.props.onListStylePress(i.props.listStyle),i.props.onPress(e)},a=n,l()(i,a)}return c()(t,e),t.prototype.render=function(){var e=this.props,t=e.isSelected,n=e.title;return a()(p.a,{isSelected:t,onPress:this.onListStylePress},void 0,n)},t}(d.Component));t.a=h},function(e,t,n){"use strict";function i(e){var t=e.target,n=e.isOpen,i=e.audioStreams,a=e.onMenuClose,s=e.onStreamSelect;return r()(u.a,{target:t,isOpen:n,size:o.d.LARGE,onMenuClose:a
},void 0,i.map(function(e){return r()(c.a,{stream:e,onMenuClose:a,onStreamSelect:s},e.id,r()(l.a,{audioStream:e}))}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(20)),l=n(635),u=n(68),c=n(964);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.target,n=e.isOpen,i=e.subtitlesStreams,a=e.onMenuClose,s=e.onStreamSelect;return r()(u.a,{target:t,isOpen:n,size:o.d.LARGE,onMenuClose:a},void 0,i.map(function(e){return r()(c.a,{stream:e,onMenuClose:a,onStreamSelect:s},e.id,r()(l.a,{subtitlesStream:e}))
}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(20)),l=n(636),u=n(68),c=n(964);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.mediaItems,i=u()(e,["mediaItems"]);return d.a.createElement(y.a,r()({title:n.i(p.default)("Play Version"),metricsPage:h.v},i),t.map(function(e,t){var i=[];if(e.bitrate&&i.push(n.i(f.default)(e.bitrate)),e.videoResolution){var a=n.i(m.a)(e),r=a?a.scanType:null;i.push(n.i(v.default)(e.videoResolution,r))}return o()(b.a,{value:t
},t,!!e.title&&e.title,!!e.title&&i.length&&S,i.length&&i.join(", "),!e.title&&!i.length&&n.i(p.default)("Unknown"))}))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(4),h=n(34),f=n(346),v=n(281),m=n(280),g=n(84),y=n(946),b=n(947),S=o()(g.a,{});t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,i=e.summary,a=e.error,s=e.mediaItem,l=e.hasSubscription,M=e.isComplete,w=e.hasError,D=e.isRecording,P=e.recordingProgress,T=e.timeFormat,x=e.onRecordingModify,E=e.onModalClose,N=o()(e,["serverEntityID","summary","error","mediaItem","hasSubscription","isComplete","hasError","isRecording","recordingProgress","timeFormat","onRecordingModify","onModalClose"]),L=s.beginsAt,A=s.endsAt,k=s.startOffsetSeconds,_=s.endOffsetSeconds,O=s.channelTitle,j=!(!k&&!_),R=k&&Math.round(k/60),U=_&&Math.round(_/60)
;return r()(f.a,{onModalClose:E},void 0,r()(v.a,{},void 0,n.i(u.default)("Airing Details")),r()(m.a,{},void 0,r()(I.a,{serverEntityID:t,target:N},void 0,r()(b.a,{mediaItem:s},void 0,r()(S.a,{beginsAt:L,endsAt:A,channel:O,showFullTime:!0,showChannel:!0,timeFormat:T},void 0,r()("div",{},void 0,M&&r()("span",{},void 0,r()(d.a,{className:C.a.completeIcon,name:"plex-icon-selected-560"}),n.i(u.default)("Recorded successfully")),D&&r()("span",{},void 0,r()(d.a,{className:C.a.recordingIcon,
name:"plex-icon-dvr-single-560"}),n.i(u.default)("Recording"),r()(p.a,{className:C.a.separator}),n.i(u.default)("{recordingProgress}% complete",{recordingProgress:P})),w&&r()("span",{},void 0,r()(d.a,{className:C.a.errorIcon,name:"plex-icon-alert-560"}),a),!M&&!D&&!w&&j&&r()("span",{},void 0,R?r()("span",{},void 0,n.i(u.default)("Recording starts {minuteOffset} min early",{minuteOffset:R}),!!U&&r()("span",{},void 0,r()(p.a,{className:C.a.separator
}),n.i(u.default)("Ends {minuteOffset} min late",{minuteOffset:U}))):r()("span",{},void 0,n.i(u.default)("Recording ends {minuteOffset} min late",{minuteOffset:U})))))),r()("div",{className:C.a.summary},void 0,i))),r()(g.a,{},void 0,r()(y.a,{},void 0,l&&r()(h.a,{kind:c.b.DEFAULT,size:c.d.MEDIUM,onPress:x},void 0,n.i(u.default)("Modify Recording")),r()(h.a,{kind:c.b.PRIMARY,size:c.d.MEDIUM,onPress:E},void 0,n.i(u.default)("Close")))))}var a=n(2),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=(n.n(l),
n(4)),c=n(20),d=n(27),p=n(84),h=n(47),f=n(94),v=n(102),m=n(69),g=n(117),y=n(95),b=n(998),S=n(1e3),I=n(450),M=n(2789),C=n.n(M);t.a=i},function(e,t,n){"use strict";function i(){return n.i(c.createSelector)(function(e){return e.experienceSettings.timeFormat},n.i(d.a)(),function(e,t){var n=s.a.pick(t,"type","title","parentTitle","grandparentTitle","thumb","parentThumb","grandparentThumb","index","parentIndex","originallyAvailableAt","summary");return n.timeFormat=e,n})}function a(e){
return l.a.createElement(p.a,e)}var r=n(3),s=n.n(r),o=n(0),l=n.n(o),u=n(11),c=n(5),d=(n.n(c),n(21)),p=n(2118);t.a=n.i(u.b)(i)(a)},function(e,t,n){"use strict";function i(e){switch(e){case"movie":return[h.a];case"show":return[h.a];case"episode":return[f.a,v.a];case"playlist":return[h.a];default:return[h.a]}}function a(e){var t=(e.className,e.type),n=c()(e,["className","type"]),a=i(t);return l()("div",{className:y.a.container},void 0,a.map(function(e,t){return p.a.createElement(m.a,s()({key:t,
component:e,isSecondary:t>0},n))}))}var r=n(6),s=n.n(r),o=n(2),l=n.n(o),u=n(14),c=n.n(u),d=n(0),p=n.n(d),h=n(623),f=n(2140),v=n(304),m=n(2122),g=n(2790),y=n.n(g);t.a=a},function(e,t,n){"use strict";function i(){return n.i(l.createSelector)(n.i(u.a)(),function(){return{type:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).type}})}function a(e){return s.a.createElement(c.a,e)}var r=n(0),s=n.n(r),o=n(11),l=n(5),u=(n.n(l),n(21)),c=n(2120);t.a=n.i(o.b)(i)(a)},function(e,t,n){"use strict"
;function i(e){var t=e.component,n=e.isSecondary,i=o()(e,["component","isSecondary"]);return u.a.createElement(t,r()({className:n?d.a.secondaryTitle:d.a.title},i))}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(2791),d=n.n(c);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.prefs;return o()("div",{},void 0,t.map(function(e){var t=e.id;return u.a.createElement(c.a,r()({key:t},e))}))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(0),u=n.n(l),c=n(445);t.a=i},function(e,t,n){"use strict"
;function i(e){var t=e.serverEntityID,i=e.target,a=e.initialMode,s=e.modes,h=e.libraries,f=e.targetLibrarySectionID,v=e.targetSectionLocationID,m=e.selectedLibrarySectionID,g=e.prefs,y=g.onlyNewAirings,b="episode"===i.type||"show"===i.type||"playlist"===i.type;return r()(c.a,{serverEntityID:t,target:i,useStaticHeight:b},void 0,r()(l.a,{flexWrap:"wrap"},void 0,r()(u.a,{flexBasis:230,maxWidth:230},void 0,s&&r()(d.a,{labelText:n.i(o.default)("Record"),name:"mode",initialValue:a,values:s,
isDisabled:s.length<2})),r()(u.a,{flexBasis:230,maxWidth:230},void 0,y&&r()(d.a,{name:y.id,labelText:y.label,initialValue:y.value,values:y.enumValues.map(function(e){var t,n=e.label,i=e.value;return t={},t[i]=n,t})}))),r()(p.a,{libraries:h,targetLibrarySectionID:f,targetSectionLocationID:v,selectedLibrarySectionID:m}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(939),u=n(938),c=n(450),d=n(967),p=n(2127);t.a=i},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(237),f=n(20),v=n(94),m=n(102),g=n(69),y=n(117),b=n(95),S=n(92),I=n(47),M=n(246),C=n(450),w=n(2121),D=n(2792),P=n.n(D),T=function(e){function t(){return s()(this,t),l()(this,e.apply(this,arguments))}return c()(t,e),t.prototype.componentDidUpdate=function(e,t){
(e.isMediaSubscriptionMoving&&!this.props.isMediaSubscriptionMoving&&null==this.props.mediaSubscriptionMoveError||e.isMediaSubscriptionDeleting&&!this.props.isMediaSubscriptionDeleting&&null==this.props.mediaSubscriptionDeleteError)&&this.props.onModalClose()},t.prototype.render=function(){
var e=this.props,t=e.isRecordingSchedule,i=e.isMediaSubscriptionDeleting,r=e.mediaSubscriptionDeleteError,s=e.isMediaSubscriptionMoving,o=e.mediaSubscriptionMoveError,l=e.serverEntityID,u=e.server,c=e.target,d=e.conflicts,D=e.onDelete,T=e.onMediaMove,x=e.onErrorDismiss,E=e.onModalClose,N=encodeURIComponent(u.machineIdentifier);return a()(v.a,{onModalClose:E},void 0,a()(m.a,{},void 0,n.i(p.default)("Conflict Detected")),o&&a()("div",{},void 0,a()(M.a,{
errorMessage:n.i(h.a)(o,n.i(p.default)("There was a problem saving your changes...")),onErrorDismiss:x})),r&&a()("div",{},void 0,a()(M.a,{errorMessage:n.i(h.a)(r,n.i(p.default)("There was a problem canceling...")),onErrorDismiss:x})),a()(g.a,{autoScroll:!0},void 0,a()(C.a,{serverEntityID:l,target:c},void 0,a()("div",{className:P.a.message},void 0,1===d.length?n.i(p.default)("Conflicts with 1 recording"):n.i(p.default)("Conflicts with {conflictCount} recordings",{conflictCount:d.length
})),a()("div",{className:P.a.conflicts},void 0,d.map(function(e,t){var n=e.metadataItem;return a()(w.a,{metadataItemEntityID:n},t)})))),a()(y.a,{},void 0,a()(b.a,{},void 0,a()(S.a,{isSpinning:i,kind:f.b.DANGER,onPress:D},void 0,n.i(p.default)("Cancel This")),a()(S.a,{isSpinning:s,kind:f.b.PRIMARY,onPress:T},void 0,n.i(p.default)("Prefer This")),t?a()(I.a,{kind:f.b.PRIMARY,onPress:E},void 0,n.i(p.default)("Close")):a()(I.a,{kind:f.b.PRIMARY,to:"#!/server/"+N+"/schedule"
},void 0,n.i(p.default)("Manage")))))},t}(d.Component);T.defaultProps={conflicts:[]},t.a=T},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),s=n.n(r),o=n(14),l=n.n(o),u=n(7),c=n.n(u),d=n(9),p=n.n(d),h=n(8),f=n.n(h),v=n(0),m=n.n(v),g=n(4),y=n(237),b=n(20),S=n(94),I=n(102),M=n(69),C=n(117),w=n(95),D=n(27),P=n(23),T=n(92),x=n(143),E=n(246),N=n(2124),L=n(2123),A=n(2793),k=n.n(A),_=function(e){function t(n,i){c()(this,t);var a=p()(this,e.call(this,n,i));return a.onAdvancedPress=function(){
a.setState({isAdvanced:!a.state.isAdvanced})},a.onFormChange=function(e){if(e.targetLibrarySectionID&&(e.targetLibrarySectionID.value!==a.state.selectedLibrarySectionID&&a.setState({selectedLibrarySectionID:e.targetLibrarySectionID.value}),e.mode&&e.mode.value!==a.state.selectedMode)){var t=e.mode.value;a.setState({selectedMode:t}),a.props.onModeChange(t)}},a.state={selectedLibrarySectionID:n.targetLibrarySectionID,selectedMode:n.initialMode,isAdvanced:!1},a}return f()(t,e),
t.prototype.componentDidUpdate=function(e,t){(e.isMediaSubscriptionSaving&&!this.props.isMediaSubscriptionSaving&&null==this.props.mediaSubscriptionSaveError||e.isMediaSubscriptionDeleting&&!this.props.isMediaSubscriptionDeleting&&null==this.props.mediaSubscriptionDeleteError)&&this.props.onModalClose()},t.prototype.render=function(){
var e=this.props,t=e.mediaSubscriptionKey,i=e.isMediaSubscriptionSaving,r=e.mediaSubscriptionSaveError,o=e.isMediaSubscriptionDeleting,u=e.mediaSubscriptionDeleteError,c=e.prefGroups,d=e.onModalClose,p=e.onErrorDismiss,h=e.onSubmit,f=e.onDelete,v=l()(e,["mediaSubscriptionKey","isMediaSubscriptionSaving","mediaSubscriptionSaveError","isMediaSubscriptionDeleting","mediaSubscriptionDeleteError","prefGroups","onModalClose","onErrorDismiss","onSubmit","onDelete"]);return s()(x.a,{
className:this.state.isAdvanced?k.a.advancedForm:k.a.baseForm,onChange:this.onFormChange,onSubmit:h},void 0,s()(S.a,{onModalClose:d},void 0,s()(I.a,{},void 0,n.i(g.default)("Record Options")),r&&s()("div",{},void 0,s()(E.a,{errorMessage:n.i(y.a)(r,n.i(g.default)("There was a problem saving your changes. Please try again.")),onErrorDismiss:p})),u&&s()("div",{},void 0,s()(E.a,{errorMessage:n.i(y.a)(u,n.i(g.default)("There was a problem with canceling this subscription. Please Try again.")),
onErrorDismiss:p})),s()(M.a,{},void 0,s()("div",{className:k.a.baseSettings},"base",m.a.createElement(N.a,a()({selectedLibrarySectionID:this.state.selectedLibrarySectionID,prefs:c.basic},v))),s()("div",{className:k.a.advancedSettings},"advanced",m.a.createElement(L.a,a()({prefs:c.advanced},v)))),s()(C.a,{className:k.a.footer},void 0,s()(w.a,{},void 0,s()(P.a,{kind:b.b.PRIMARY,onPress:this.onAdvancedPress},void 0,s()(D.a,{className:k.a.advancedIcon,name:"plex-icon-settings-560"
}),this.state.isAdvanced?n.i(g.default)("Show Basic"):n.i(g.default)("Show Advanced"))),s()(w.a,{},void 0,s()(T.a,{isSpinning:o,kind:t?b.b.DANGER:b.b.DEFAULT,onPress:t?f:d},void 0,t?n.i(g.default)("Cancel Recording"):n.i(g.default)("Cancel")),s()(T.a,{type:"submit",isSpinning:i,kind:b.b.PRIMARY},void 0,t?n.i(g.default)("Save"):n.i(g.default)("Record"))))))},t}(v.Component);t.a=_},function(e,t,n){"use strict";function i(e,t){var n=u.a.find(e,function(e){return e.librarySectionID===t})
;return n?n.locations.map(function(e){var t,n=e.id,i=e.path;return t={},t[n]=i,t}):[]}function a(e){var t=e[0];if(t){return t[u.a.keys(t)[0]]}}function r(e){var t=e.libraries,r=e.targetLibrarySectionID,s=e.targetSectionLocationID,l=e.selectedLibrarySectionID,u=i(t,l);return o()(f.a,{flexWrap:"wrap"},void 0,o()(v.a,{flexBasis:230,maxWidth:230},void 0,o()(h.a,{labelText:n.i(d.default)("Add to Library"),name:"targetLibrarySectionID",initialValue:r,size:p.d.SMALL,values:t.map(function(e,t){
var n,i=e.title,a=e.librarySectionID;return n={},n[a]=i,n})})),o()(v.a,{flexBasis:230,maxWidth:230},void 0,u.length>1&&o()(h.a,{labelText:n.i(d.default)("Location"),name:"targetSectionLocationID",size:p.d.SMALL,initialValue:null==s?a(u):s,values:u})))}var s=n(2),o=n.n(s),l=n(3),u=n.n(l),c=n(0),d=(n.n(c),n(4)),p=n(20),h=n(967),f=n(939),v=n(938);t.a=r},function(e,t,n){"use strict";function i(){return n.i(C.createSelector)(function(e,t){return t.subscriptionType},function(e){
return"playlist"===e?"show":e})}function a(){return n.i(C.createSelector)(n.i(E.a)(),i(),function(e,t){var i=n.i(P.a)(t);return e.filter(function(e){return n.i(P.b)(e.type).id===i.id}).map(function(e){return{librarySectionID:e.key,locations:e.locations,title:e.title}})})}function r(){return n.i(C.createSelector)(n.i(x.a)(),function(e){return e.ui.mediaSubscriptionModal},U,z,i(),a(),function(e,t){
var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3],a=arguments[4],r=arguments[5],s=b.a.omit(t,"templates","mediaSubscription"),o=n.key,l=n.grabOperations,u=void 0===l?[]:l,c=n.prefs,d=g()(n,["key","grabOperations","prefs"]),p=void 0,h=void 0,f=void 0;i.length>1?(h=b.a.findIndex(i,function(e){return e.selected}),p=i.map(function(e,t){var n,i=e.title;return n={},n[t]=i,n})):(h=0,p=d.title?[{0:d.title}]:null),u.length&&(f=u.reduce(function(e,t){
return t.conflicts&&t.conflicts.length?e.concat(t.conflicts):e},[]));var m=b.a.groupBy(c,function(e){return e.advanced?"advanced":"basic"});return m.basic=b.a.indexBy(m.basic,"id"),v()({mediaSubscriptionKey:o,prefGroups:m,metadataType:a,libraries:r,initialMode:h,modes:p,conflicts:f,server:e},s,d)})}var s=n(2),o=n.n(s),l=n(7),u=n.n(l),c=n(9),d=n.n(c),p=n(8),h=n.n(p),f=n(6),v=n.n(f),m=n(14),g=n.n(m),y=n(3),b=n.n(y),S=n(0),I=n.n(S),M=n(11),C=n(5),w=(n.n(C),
n(4)),D=n(35),P=n(30),T=n(154),x=n(46),E=n(527),N=n(792),L=n(100),A=n(895),k=n(612),_=n(2045),O=n(2126),j=n(2125),R=n(2129),U=n.i(C.createSelector)(function(e){return e.ui.mediaSubscriptionModal.mediaSubscription},N.a,function(e,t){return t[e]}),z=n.i(C.createSelector)(function(e){return e.ui.mediaSubscriptionModal.templates},N.a,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return e.map(function(e){return t[e]})}),B=v()({addLibrary:L.a
},A),F=function(e){function t(i,a){u()(this,t);var r=d()(this,e.call(this,i,a));return r.onSubmit=function(e){var t=r.props,i=t.serverEntityID,a=t.metadataItemEntityID,s=e.targetLibrarySectionID,o=e.targetSectionLocationID,l=(e.mode,g()(e,["targetLibrarySectionID","targetSectionLocationID","mode"]));n.i(D.a)(function(){r.props.saveMediaSubscription({serverEntityID:i,metadataItemEntityID:a,targetLibrarySectionID:s,targetSectionLocationID:o,prefs:l})})},r.onDelete=function(){n.i(D.a)(function(){
r.props.deleteMediaSubscriptionModal({metadataItemEntityID:r.props.metadataItemEntityID})})},r.onModeChange=function(e){n.i(D.a)(function(){r.props.changeMediaSubscriptionTemplateMode({modeIndex:e})})},r.onMediaMove=function(){n.i(D.a)(function(){r.props.moveMediaSubscriptionModal()})},r.onErrorDismiss=function(){r.props.clearMediaSubscriptionModalError()},r.onCreatePress=function(){var e=r.props,t=e.metadataType,i=e.serverEntityID,a=n.i(P.a)(t),s=a.typeString,o=T.a.get(s)
;r.props.onModalClose(),r.props.addLibrary({serverEntityID:i,options:{redirect:!1,seedAttrs:{type:o.typeString,title:o.title,language:o.defaultLanguage}}})},r.state={showConflicts:i.showConflicts},r}return h()(t,e),t.prototype.componentDidMount=function(){this._populate()},t.prototype.componentWillReceiveProps=function(e){var t=this.state.showConflicts;this.props.isMediaSubscriptionSaving&&!e.isMediaSubscriptionSaving&&e.conflicts&&e.conflicts.length&&(t=!0),
t!==this.state.showConflicts&&this.setState({showConflicts:t});var n=this.props.metadataItemEntityID!==e.metadataItemEntityID,i=this.props.mediaSubscriptionEntityID!==e.mediaSubscriptionEntityID;(n||i)&&this._populate(e)},t.prototype.componentWillUnmount=function(){this.props.clearMediaSubscriptionModal()},t.prototype._populate=function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.serverEntityID,i=e.mediaSubscriptionEntityID,a=e.metadataItemEntityID,r=e.showConflicts;n.i(D.a)(function(){e.initMediaSubscriptionModal({serverEntityID:t,mediaSubscriptionEntityID:i,metadataItemEntityID:a,showConflicts:r})})},t.prototype.render=function(){return this.props.mediaSubscriptionError?o()(k.a,{message:n.i(w.default)("There was an unexpected error"),onModalClose:this.props.onModalClose
}):this.props.isMediaSubscriptionPending||!this.props.isMediaSubscriptionPopulated?o()(_.a,{onModalClose:this.props.onModalClose}):this.props.libraries.length?this.state.showConflicts?I.a.createElement(j.a,v()({},this.props,{onDelete:this.onDelete,onMediaMove:this.onMediaMove,onErrorDismiss:this.onErrorDismiss})):I.a.createElement(O.a,v()({},this.props,{onModeChange:this.onModeChange,onSubmit:this.onSubmit,onDelete:this.onDelete,onErrorDismiss:this.onErrorDismiss
})):I.a.createElement(R.a,v()({},this.props,{onCreatePress:this.onCreatePress,onErrorDismiss:this.onErrorDismiss,onDelete:this.onDelete}))},t}(S.Component);F.defaultProps={showConflicts:!1},t.a=n.i(M.b)(r,B)(F)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(237),f=n(20),v=n(30),m=n(154),g=n(27),y=n(47),b=n(92),S=n(23),I=n(94),M=n(102),C=n(69),w=n(117),D=n(95),P=n(246),T=n(450),x=n(2794),E=n.n(x),N=function(e){
function t(){return s()(this,t),l()(this,e.apply(this,arguments))}return c()(t,e),t.prototype.componentDidUpdate=function(e,t){e.isMediaSubscriptionDeleting&&!this.props.isMediaSubscriptionDeleting&&null==this.props.mediaSubscriptionDeleteError&&this.props.onModalClose()},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,i=e.mediaSubscriptionKey,r=e.target,s=e.metadataType,o=e.isMediaSubscriptionDeleting,l=e.mediaSubscriptionDeleteError,u=e.onCreatePress,c=e.onModalClose,d=e.onErrorDismiss,x=e.onDelete,N=n.i(v.a)(s),L=N.typeString,A=m.a.get(L),k=A.title;return a()(I.a,{onModalClose:c},void 0,a()(M.a,{},void 0,n.i(p.default)("Record Options")),l&&a()(P.a,{errorMessage:n.i(h.a)(l,n.i(p.default)("There was a problem with canceling this subscription. Please Try again.")),
onErrorDismiss:d}),a()(C.a,{},void 0,a()(T.a,{serverEntityID:t,target:r},void 0,a()("div",{className:E.a.errorMessage},void 0,n.i(p.default)("{type} Library Required",{type:k})),a()("p",{},void 0,i?n.i(p.default)("This recording cannot be scheduled because you don\u2019t yet have a library for {type}. Please create a library or cancel the recording.",{type:k
}):n.i(p.default)("This recording cannot be scheduled because you don\u2019t yet have a library for {type}. Please try recording again after you have created your library.",{type:k})),a()(S.a,{kind:f.b.PRIMARY,onPress:u},void 0,a()(g.a,{name:"plex-icon-add-560",className:E.a.addIcon})," ",n.i(p.default)("Create Library")))),a()(w.a,{},void 0,a()(D.a,{},void 0,i&&a()(b.a,{isSpinning:o,kind:f.b.DANGER,onPress:x},void 0,n.i(p.default)("Cancel Recording")),a()(y.a,{onPress:c
},void 0,n.i(p.default)("Cancel")))))},t}(d.Component);t.a=N},function(e,t,n){"use strict";function i(e){var t=e.component,n=e.isSecondary,i=o()(e,["component","isSecondary"]);return u.a.createElement(t,r()({className:n?d.a.secondaryTitle:d.a.title},i))}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(2796),d=n.n(c);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),
n(4)),h=n(50),f=n(26),v=n(27),m=n(23),g=n(607),y=n(620),b=n(186),S=n(68),I=n(144),M=n(217),C=n(2132),w=n(2797),D=n.n(w),P=a()(v.a,{name:"plex-icon-more-560"}),T=function(e){function t(i,a){s()(this,t);var r=l()(this,e.call(this,i,a));return r.onRecordPress=function(e){r.setState({isSubscribeModalOpen:!0})},r.onSubscribeModalClose=function(){r.setState({isSubscribeModalOpen:!1})},r.onActionsPress=function(e){r.setState({isActionsMenuOpen:!r.state.isActionsMenuOpen})},
r.onActionsMenuClose=function(){r.setState({isActionsMenuOpen:!1})},r.state={isSubscribeModalOpen:!1,isActionsMenuOpen:!1},r._moreButtonID=n.i(h.a)(),r}return c()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(f.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.className,i=e.serverEntityID,r=e.metadataItemEntityID,s=e.route,o=e.type,l=e.title,u=e.subscriptionType,c=e.grandparentSubscriptionType,d=e.isSubscribed,h=e.showLink,f=e.beginsAt,v=e.endsAt,w=e.showPlay,T=e.onPlayLiveTVPress,x=this.state,E=x.isSubscribeModalOpen,N=x.isActionsMenuOpen;return a()("div",{className:(t||"")+" "+(D.a.overlay||"")},void 0,a()("div",{className:D.a.background}),d&&a()("div",{className:D.a.subscriptionBadge},void 0,a()(y.a,{type:c||u})),h&&a()(m.a,{
className:D.a.link,to:s}),a()(C.a,{className:D.a.progress,beginsAt:f,endsAt:v}),w?a()(b.a,{className:h?D.a.playButton:D.a.playCoverButton,circleClassName:D.a.playCircle,tabIndex:"-1",title:l,"data-qa-id":"metadataPosterPlayButton",onPress:T}):a()(g.a,{className:h?D.a.recordButton:D.a.recordCoverButton,circleClassName:D.a.recordCircle,iconClassName:D.a.recordIcon,tabIndex:"-1",title:l,onPress:this.onRecordPress}),w&&a()(m.a,{id:this._moreButtonID,className:D.a.moreButton,tabIndex:"-1",
"aria-label":n.i(p.default)("More Actions"),"aria-haspopup":!0,"data-qa-id":"metadataPosterMoreButton",onPress:this.onActionsPress},void 0,P,a()(S.a,{target:this._moreButtonID,isOpen:N,onMenuClose:this.onActionsMenuClose},void 0,a()(I.a,{onPress:this.onRecordPress},void 0,d?n.i(p.default)("Manage Recording"):n.i(p.default)("Record")))),a()(M.a,{serverEntityID:i,metadataItemEntityID:r,isOpen:E,subscriptionType:o,onModalClose:this.onSubscribeModalClose}))},t}(d.Component);t.a=T},function(e,t,n){
"use strict";function i(e){var t=e.beginsAt,i=e.endsAt;if(n.i(h.a)(t,i)){var a=i-t;return(Date.now()/1e3-t)/a*100}}var a=n(2),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=(n.n(p),n(547)),f=n(26),v=n(971),m=function(e){function t(n,i){o()(this,t);var a=u()(this,e.call(this,n,i));return a.tick=function(){a.setState(a.getState(a.props)),a.setTickTimeout()},a.state=a.getState(n),a}return d()(t,e),t.prototype.componentWillMount=function(){this.setTickTimeout()},
t.prototype.componentWillReceiveProps=function(e,t){this.setState(this.getState(e))},t.prototype.shouldComponentUpdate=function(e,t){return n.i(f.a)(this,e,t)},t.prototype.componentWillUnmount=function(){this.tickTimeout&&clearTimeout(this.tickTimeout)},t.prototype.getState=function(e){return{progress:i(e)}},t.prototype.setTickTimeout=function(){this.tickTimeout=setTimeout(this.tick,6e4-Date.now()%6e4)},t.prototype.render=function(){var e=this.props.className,t=this.state.progress
;return t?r()(v.a,{className:e,progress:t}):null},t}(p.Component);t.a=m},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.type,i=e.width,a=e.height,s=e.isFolder,u=s?"plex-icon-folder-560":l.a[n];if(!u)return null;var c={fontSize:Math.max(14,Math.min(Math.round(i/4),42)),lineHeight:a+"px"};return r()(o.a,{name:u,className:t,style:c})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(27)),l=n(835);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.serverEntityID,i=e.providerEntityID,a=e.metadataItemEntityID,s=e.type,l=e.selectionType,c=e.activeSelectionType,f=e.isSelected,m=e.isOffscreen,g=e.visibleFace,y=e.imageWidth,b=e.imageHeight,S=e.imageUrl,I=e.imageTransitionProps,M=e.isFolder,C=e.onImageLoad,w=e.onImageError,D=e.onSelectItem,P=e.onDeselectItem,T=u()(e,["className","serverEntityID","providerEntityID","metadataItemEntityID","type","selectionType","activeSelectionType","isSelected","isOffscreen","visibleFace","imageWidth","imageHeight","imageUrl","imageTransitionProps","isFolder","onImageLoad","onImageError","onSelectItem","onDeselectItem"])
;return o()("div",{className:(t||"")+" "+(v.a[g]||"")+" "+(f&&v.a.isSelected||"")+" "+(!!c&&!f&&v.a.isOtherItemSelected||"")},void 0,o()(p.a,{serverEntityID:n,type:s,isOffscreen:m,url:S,width:y,height:b,transitionProps:I,isFolder:M,onLoad:C,onError:w}),d.a.createElement(h.a,r()({serverEntityID:n,providerEntityID:i,metadataItemEntityID:a,type:s,selectionID:a,selectionType:l,activeSelectionType:c,isSelected:f,onSelectItem:D,onDeselectItem:P},T)))}
var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(248),h=n(2135),f=n(2800),v=n.n(f);i.defaultProps={className:v.a.face},t.a=i},function(e,t,n){"use strict";function i(){return n.i(c.createSelector)(function(e,t){return t.type},function(e,t){return t.listType},n.i(v.a)(),y.a,b.a,g.a,n.i(S.a)(),n.i(m.a)(),n.i(I.a)(),function(e,t,i,a,r,s,o,l,u){
var c=i.title,v=i.viewCount,m=i.viewOffset,g=i.unviewedLeafCount,y=i.smart,b=i.metadataState,S=i.mediaState,I=i.deletedAt,M=i.subscriptionID,C=i.subscriptionType,w=i.grandparentSubscriptionID,D=i.grandparentSubscriptionType,P=i.isLibraryItem,x=i.isFolder,E=i.isExtra,N=i.Media,L=n.i(p.b)(e),A=n.i(p.n)(e),k=N.length,_=null!=M||null!=w,O=P&&!x&&!E&&L.mediaType===d.a,j=P&&!E&&n.i(p.c)(e)&&A.mediaType===d.a,R=!!y,U=b===h.a,z=b===h.b||b===h.c,B=!U&&!z&&!!S,F=U||z||B,V=!F&&!!I;return{server:a,
provider:r,route:o,title:c,viewCount:v,viewOffset:m,viewPercent:l,unviewedLeafCount:g,mediaCount:k,subscriptionType:C,grandparentSubscriptionType:D,isSubscribed:_,isLibraryVideo:O,isLibraryVideoDirectory:j,isMultiVersion:n.i(f.a)(i),isSmart:R,isMatching:U,isProcessing:z,isAnalyzing:B,isRefreshing:F,isTrash:V,showLink:!!o,showPlay:n.i(T.a)(a,r,s,i),showEdit:n.i(T.b)(a,r,s,i),showSelect:n.i(T.c)(a,r,s,i),showMore:!x,beginsAt:u&&u.beginsAt,endsAt:u&&u.endsAt}})}function a(e,t){var i={
serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataItemEntityID:t.metadataItemEntityID,metricsPage:t.metricsPage};return{onPlayPress:function(){e(n.i(M.c)(o()({},i,{options:{containerKey:t.containerKey,listType:t.listType}})))},onPlayLiveTVPress:function(){e(n.i(C.a)(o()({},i,{options:{containerKey:t.containerKey,listType:t.listType}})))},onEditPress:function(){e(n.i(w.editMetadataItem)(i))}}}function r(e){
return e.provider.protocols.livetv?u.a.createElement(N.a,e):e.showSelect&&!e.showLinkOnly?u.a.createElement(L,e):u.a.createElement(E.a,e)}var s=n(6),o=n.n(s),l=n(0),u=n.n(l),c=n(5),d=(n.n(c),n(66)),p=n(30),h=n(797),f=n(869),v=n(21),m=n(1380),g=n(180),y=n(45),b=n(43),S=n(429),I=n(361),M=n(58),C=n(227),w=n(140),D=n(464),P=n(310),T=(n(105),n(220)),x=n(138),E=n(970),N=n(2131),L=n.i(D.a)(E.a);t.a=n.i(x.a)(i,a,P.a)(r)},function(e,t,n){"use strict";function i(e){switch(e){case"artist":return"track"
;default:return e}}function a(e){var t=e.serverEntityID,n=e.isOffscreen,a=e.tagType,r=e.librarySectionType,o=e.title,h=e.url,f=e.width,v=e.height,m=e.transitionProps,g=e.onLoad,y=e.onError;if(n)return null;if(h)return s()(p.a,{serverEntityID:t,url:h,width:f,height:v,transitionProps:m,backgroundPosition:"center center",onLoad:g,onError:y});var b=u.a.get(a);if(b&&b.isPerson)return s()(c.a,{name:o,width:f,height:v});var S=l.a.get(r),I=S&&S.typeString,M=i(I);return s()(d.a,{type:M,width:f,height:v})
}var r=n(2),s=n.n(r),o=n(0),l=(n.n(o),n(154)),u=n(419),c=n(2022),d=n(969),p=n(611);t.a=a},function(e,t,n){"use strict";function i(e){var t=e.rating,n=e.ratingImage,i=e.audienceRating,a=e.audienceRatingImage;return t?v.test(n)?"imdb":m.test(n)||i&&m.test(a)?"rt":"other":"unrated"}function a(e){var t=e.rating;return u()("div",{className:f.a.rating,title:n.i(p.default)("IMDb Rating")},void 0,u()("div",{className:f.a.imdb}),t.toFixed(1))}function r(e){
var t=e.rating,i=e.ratingImage,a=e.audienceRating,r=e.audienceRatingImage,s=i&&i.substr(i.lastIndexOf(".")+1),o=a&&r&&r.substr(r.lastIndexOf(".")+1),l={certified:n.i(p.default)("Certified Fresh"),ripe:n.i(p.default)("Fresh"),rotten:n.i(p.default)("Rotten"),spilled:n.i(p.default)("Audience Rating"),upright:n.i(p.default)("Audience Rating")};return u()("div",{className:f.a.rt},void 0,s&&u()("div",{className:f.a.rating},void 0,u()("div",{className:f.a[s],title:l[s]
}),Math.round(10*t)+"%"),o&&u()("div",{className:f.a.rating},void 0,u()("div",{className:f.a[o],title:l[o]}),Math.round(10*a)+"%"))}function s(e){var t=e.rating;return u()("div",{className:f.a.rating},void 0,u()("div",{className:f.a.other,title:n.i(p.default)("Rating")}),Math.round(10*t)+"%")}function o(e){var t=i(e),n=g[t];return n?u()("div",{className:f.a.container},void 0,d.a.createElement(n,e)):null}
var l=n(2),u=n.n(l),c=n(0),d=n.n(c),p=n(4),h=n(2807),f=n.n(h),v=/^imdb\:\/\//,m=/^rottentomatoes\:\/\//,g={imdb:a,rt:r,other:s};t.a=o},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.tabIndex,a=e.server,s=e.provider,u=e.librarySectionKey,c=e.tag,d=e.filter;if(!c)return null;var p={filters:d,filterLabel:c},h=n.i(o.a)(a,s,u,p);return h&&d?r()(l.a,{className:t,tabIndex:i,title:c,to:h},void 0,c):r()("span",{className:t,title:c},void 0,c)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),
n(96)),l=(n(106),n(105),n(23));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.role;return r()("span",{className:t,title:n},void 0,n)}var a=n(2),r=n.n(a),s=n(0);n.n(s);t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(){return{grandparentTitle:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).grandparentTitle}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(622);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict"
;function i(e){var t=e.className,n=e.tabIndex,i=e.grandparentTitle,a=e.grandparentRoute;return r()(o.a,{className:t,tabIndex:n,title:i,route:a})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(373));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.tabIndex,i=e.parentTitle,a=e.parentRoute;return r()(o.a,{className:t,tabIndex:n,title:i,route:a})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(373));t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.title,i=e.isFolder,a=e.isMultiVersion,s=e.hasMusicVideo;return r()("span",{className:t},void 0,r()("div",{className:u.a.titleContainer},void 0,i&&r()(o.a,{className:u.a.folderIconContainer,iconClassName:u.a.folderIcon,name:"plex-icon-folder-560"}),r()("span",{className:u.a.title},void 0,n),r()("span",{},void 0,a&&r()(o.a,{iconClassName:u.a.multiVersionIcon,name:"plex-icon-files-560"}),s&&c)))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(975)),l=n(2808),u=n.n(l),c=r()(o.a,{
name:"plex-icon-shows-560"});t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(l.a)(),function(e){return e?{title:e.title,isFolder:e.isFolder,isMultiVersion:n.i(s.a)(e),hasMusicVideo:n.i(o.a)(e)}:{}})}var a=n(11),r=n(5),s=(n.n(r),n(869)),o=n(868),l=n(21),u=n(2143);t.a=n.i(a.b)(i)(u.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.addedAt;return r()(o.a,{className:t,timestamp:n})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(985));t.a=i
},function(e,t,n){"use strict";function i(e,t){return n.i(r.createSelector)(n.i(s.a)(),function(){return{addedAt:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).addedAt}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(2145);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.skipChildren,a=e.childCount,s=e.leafCount;if(i)return r()(l.a,{className:t,leafCount:s});var u=void 0;return null!=a&&(u=1===a?n.i(o.default)("{albumCount} album",{albumCount:a
}):n.i(o.default)("{albumCount} albums",{albumCount:a})),r()("span",{className:t},void 0,u)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(2176);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.bitrate;return r()("span",{className:t},void 0,n.i(o.default)(i))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(346));t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.Media&&e.Media[0];return{bitrate:t&&t.bitrate}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(2148);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.title,i=e.originalTitle,a=e.hasMusicVideo;return r()("span",{className:t},void 0,r()("span",{className:c.a.titleContainer},void 0,r()("span",{className:c.a.title},void 0,n,!!i&&r()("span",{className:c.a.trackArtist},void 0,!!n&&d,i)),a&&p))}
var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(84)),l=n(975),u=n(2810),c=n.n(u),d=r()(o.a,{}),p=r()(l.a,{name:"plex-icon-shows-560"});t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(o.a)(),function(e){return e?{title:e.title,originalTitle:e.originalTitle,hasMusicVideo:n.i(s.a)(e)}:{}})}var a=n(11),r=n(5),s=(n.n(r),n(868)),o=n(21),l=n(2150);t.a=n.i(a.b)(i)(l.a)},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.contentRating;return r()("span",{className:t
},void 0,n.i(o.a)(i))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(834));t.a=i},function(e,t,n){"use strict";function i(e,t){return n.i(r.createSelector)(n.i(s.a)(),function(){return{contentRating:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).contentRating}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(2152);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.rating,i=e.ratingImage,a=e.audienceRating,s=e.audienceRatingImage;return n?r()("span",{className:t
},void 0,r()(o.a,{rating:n,ratingImage:i,audienceRating:a,audienceRatingImage:s})):null}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2137));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.beginsAt,a=e.endsAt,s=e.timeFormat,l=n.i(o.a)(i,a,{includeMinuteZero:!1,timeFormat:s});return r()("span",{className:t},void 0,l)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(546));t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(function(e){
return e.experienceSettings.timeFormat},n.i(s.a)(),function(e,t){return{beginsAt:t&&t.beginsAt,endsAt:t&&t.endsAt,timeFormat:e}})}var a=n(11),r=n(5),s=(n.n(r),n(777)),o=n(2155);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.date;return i?r()("span",{className:t},void 0,n.i(o.default)(i)):null}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(204));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.addedAt;return n?r()(o.a,{className:t,date:1e3*n
}):null}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2157));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.index,a=e.originallyAvailableAt,s=n.i(o.a)({useLongName:!0,episodeIndex:i,date:a,noLeadingZero:!0});return r()("span",{className:t},void 0,s)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(823));t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{index:e.index,
originallyAvailableAt:e.originallyAvailableAt}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(2159);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.extraType,i=o.a.get(n);return r()("span",{className:t},void 0,i?i.title:"")}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(1502));t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(){return{extraType:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).extraType}})}
var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(2161);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(){return{index:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).index}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(630);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.leafCount,a=void 0;return null!=i&&(a=1===i?n.i(o.default)("{itemCount} item",{itemCount:i
}):n.i(o.default)("{itemCount} items",{itemCount:i})),r()("span",{className:t},void 0,a)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.lastViewedAt;return r()(o.a,{className:t,timestamp:n})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(985));t.a=i},function(e,t,n){"use strict";function i(e){var t=(e.className,e.duration,e.viewOffset);return e.viewCount||t?t?r()("div",{className:l.a.partiallyWatchedCircle}):null:r()("div",{
className:l.a.unwatchedCircle})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2812)),l=n.n(o);t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{duration:e.duration,viewOffset:e.viewOffset,viewCount:e.viewCount}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(2166);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.duration,i=e.viewOffset,a=e.viewCount
;return e.isFolder?null:a||i?r()(o.a,{className:t,duration:n,viewOffset:i}):r()("div",{className:u.a.unwatchedCircle})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(632)),l=n(2813),u=n.n(l);t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{duration:e.duration,viewOffset:e.viewOffset,viewCount:e.viewCount,isFolder:e.isFolder}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(2168)
;t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.originallyAvailableAt;return r()("span",{className:t},void 0,n.i(o.default)(i,"MMM D, YYYY"))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(204));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.videoResolution;return r()("span",{className:t},void 0,n.i(o.default)(i))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(281));t.a=i},function(e,t,n){"use strict";function i(){
return n.i(r.createSelector)(n.i(s.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.Media&&e.Media[0];return{videoResolution:t&&t.videoResolution}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(2171);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.skipChildren,a=e.childCount,s=e.leafCount;if(i)return r()(l.a,{className:t,leafCount:s});var u=void 0;return null!=a&&(u=1===a?n.i(o.default)("{seasonCount} season",{seasonCount:a
}):n.i(o.default)("{seasonCount} seasons",{seasonCount:a})),r()("span",{className:t},void 0,u)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(627);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.originalTitle;return r()("span",{className:t,title:n},void 0,n)}var a=n(2),r=n.n(a),s=n(0);n.n(s);t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(){return{
originalTitle:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).originalTitle}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(2174);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.leafCount,a=void 0;return null!=i&&(a=1===i?n.i(o.default)("{trackCount} track",{trackCount:i}):n.i(o.default)("{trackCount} tracks",{trackCount:i})),r()("span",{className:t},void 0,a)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4));t.a=i},function(e,t,n){"use strict"
;function i(e){var t=e.className,n=e.tabIndex,i=e.parentTitle,a=e.parentRoute,s=e.grandparentTitle,o=e.grandparentRoute;return r()("span",{className:t},void 0,r()(l.a,{tabIndex:n,title:s,route:o}),u,r()(l.a,{tabIndex:n,title:i,route:a}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(84)),l=n(373),u=r()(o.a,{});t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.unviewedLeafCount,a=void 0;return i>0&&(a=n.i(o.default)("{numEpisodes} unwatched",{numEpisodes:i})),r()("span",{
className:t},void 0,a)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4));t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(){return{unviewedLeafCount:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).unviewedLeafCount}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(2178);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.value,i=e.onRatingChange;return r()("span",{className:t},void 0,r()(o.a,{value:n,
onRatingChange:i}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2025));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.viewCount;return r()("span",{className:t},void 0,n>0?n:null)}var a=n(2),r=n.n(a),s=n(0);n.n(s);t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(){return{viewCount:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).viewCount}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(2181);t.a=n.i(a.b)(i)(o.a)
},function(e,t,n){"use strict";function i(e){var t=e.mediaItem;if(!t)return r()("span",{},void 0,n.i(o.default)("None"));var i=[];t.videoCodec&&i.push(n.i(l.a)(t.videoCodec));var a=n.i(c.a)(t),s=a?a.scanType:null;return r()("span",{},void 0,n.i(u.default)(t.videoResolution,s)||n.i(o.default)("Unknown"),!!i.length&&p,i.join(" "))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(348),u=n(281),c=n(280),d=n(84),p=r()(d.a,{});t.a=i},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(2),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(4),m=n(15),g=n(50),y=n(646),b=n(2112),S=n(640),I=n(641),M=n(638),C=n(639),w=n(642),D=n(454),P=["showPlayAll","showShuffle","showAddToAlbum","showAddToPlaylist","showSync"],T=["showOptimize","showQueue"],x=function(e){function t(i,a){l()(this,t);var r=c()(this,e.call(this,i,a));return r.onPlayShortcut=function(){r.props.showPlayAll&&r.props.onPlayAllPress()},r.onActionsPress=function(e){
r.setState({isActionsMenuOpen:!r.state.isActionsMenuOpen})},r.onActionsMenuClose=function(){r.setState({isActionsMenuOpen:!1})},r.state={isActionsMenuOpen:!1},r._moreButtonID=n.i(g.a)(),r}return p()(t,e),t.prototype.componentDidMount=function(){m.a.on("shortcut:playSelected",this.onPlayShortcut)},t.prototype.componentWillUnmount=function(){m.a.off("shortcut:playSelected",this.onPlayShortcut)},t.prototype.render=function(){
var e=this.props,t=e.className,i=e.showPlayAll,r=e.showPlayAllOverflow,o=e.showShuffle,l=e.showShuffleOverflow,u=e.showAddToAlbum,c=e.showAddToAlbumOverflow,d=e.showAddToPlaylist,p=e.showAddToPlaylistOverflow,h=e.showSync,m=e.showSyncOverflow,g=e.showOverflow,y=e.onPlayAllPress,P=e.onShufflePress,T=e.onAddToPlaylistPress,x=e.onSyncPress,E=this.state.isActionsMenuOpen;return s()("div",{className:t},void 0,i&&s()(S.a,{playLabel:n.i(v.default)("Play All"),onPress:y}),o&&s()(I.a,{onPress:P
}),u&&s()(M.a,{onPress:T}),d&&s()(C.a,{onPress:T}),h&&s()(w.a,{onPress:x}),g&&s()(D.a,{id:this._moreButtonID,icon:"plex-icon-toolbar-more-560",label:n.i(v.default)("More..."),isMenuOpen:E,onPress:this.onActionsPress}),f.a.createElement(b.a,a()({},this.props,{target:this._moreButtonID,isOpen:E,showPlayAll:r,showShuffle:l,showAddToAlbum:c,showAddToPlaylist:p,showSync:m,onMenuClose:this.onActionsMenuClose})))},t}(h.Component);t.a=n.i(y.a)(x,P,T)},function(e,t,n){"use strict";function i(e){
var t=e.markUnwatched,i=e.onPress;return r()(u.a,{icon:"plex-icon-toolbar-watched-toggle-560",tooltip:t?n.i(o.default)("Mark Unwatched"):n.i(o.default)("Mark Watched"),onPress:i},void 0,c)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(27),u=n(129),c=r()(l.a,{name:"plex-icon-toolbar-watched-toggle-560"});i.defaultProps={markUnwatched:!1},t.a=i},function(e,t,n){"use strict";function i(e){return u.a.createElement(p.a,o()({tooltip:n.i(c.default)("Play Trailer")},e),h)}
var a=n(2),r=n.n(a),s=n(6),o=n.n(s),l=n(0),u=n.n(l),c=n(4),d=n(27),p=n(129),h=r()(d.a,{name:"plex-icon-toolbar-play-trailer-560"});t.a=i},function(e,t,n){"use strict";function i(e){var t=(e.title,u()(e,["title"]));return d.a.createElement(h.a,o()({tooltip:n.i(p.default)("Record"),className:m.a.toolbarRecordButton},t),g)}var a=n(2),r=n.n(a),s=n(6),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(4),h=n(129),f=n(944),v=n(2814),m=n.n(v),g=r()(f.a,{});t.a=i},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(26),f=n(50),v=n(613),m=n(144),g=n(454),y=function(e){function t(i,a){s()(this,t);var r=l()(this,e.call(this,i,a));return r.onMenuButtonPress=function(e){r.setState({isMenuOpen:!r.state.isMenuOpen})},r.onMenuClose=function(){r.setState({isMenuOpen:!1})},r.state={isMenuOpen:!1,isMarkWatchedModalOpen:!1,isMarkUnwatchedModalOpen:!1},r._toolbarMenuButtonID=n.i(f.a)(),r}return c()(t,e),
t.prototype.shouldComponentUpdate=function(e,t){return n.i(h.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.showMarkWatched,i=e.showMarkUnwatched,r=e.onMarkWatchedPress,s=e.onMarkUnwatchedPress,o=this.state.isMenuOpen;return a()(g.a,{id:this._toolbarMenuButtonID,icon:"plex-icon-toolbar-watched-toggle-560",label:n.i(p.default)("Toggle Watched..."),isMenuOpen:o,onPress:this.onMenuButtonPress},void 0,a()(v.a,{target:this._toolbarMenuButtonID,isOpen:o,onMenuClose:this.onMenuClose
},void 0,t&&a()(m.a,{onPress:r},void 0,n.i(p.default)("Mark Watched")),i&&a()(m.a,{onPress:s},void 0,n.i(p.default)("Mark Unwatched"))))},t}(d.Component);t.a=y},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.metricsPage,i=e.metricsProperties,a=e.isMetricsDelegated,s=o()(e,["children","metricsPage","metricsProperties","isMetricsDelegated"]);return u.a.createElement(c.a,r()({},i,{page:n,isDelegated:a}),u.a.createElement(d.a,r()({className:h.a.page},s),t))}
var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(209),d=n(989),p=n(2815),h=n.n(p);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.children,i=e.machineIdentifier,a=e.isWaitingForPrimaryServer,s=e.primaryServerEntityID,l=u()(e,["children","machineIdentifier","isWaitingForPrimaryServer","primaryServerEntityID"]),c=n.i(f.a)(h.f,i),m=!c||c===s;return s&&m?d.a.createElement(y.a,o()({serverEntityID:s},l),t):a||!m?r()(g.a,{},void 0,r()(v.a,{label:n.i(p.default)("Connecting")})):b}
var a=n(2),r=n.n(a),s=n(6),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(4),h=n(56),f=n(53),v=n(38),m=n(991),g=n(159),y=n(2194),b=r()(m.a,{});t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,i=e.providerEntityID,a=e.showSpinner,s=e.isHubKey,l=e.isTimeline,c=e.selectedDirectory,v=e.activeType,S=e.activeFilters,I=e.activeFilterLabel,M=e.activeSort,C=e.activeLimit,w=e.customFilter,D=e.typeKey,P=e.folderKey,T=e.folderTitle,x=e.parentFolderKey,E=e.parentFolderTitle,N=e.component,L=u()(e,["serverEntityID","providerEntityID","showSpinner","isHubKey","isTimeline","selectedDirectory","activeType","activeFilters","activeFilterLabel","activeSort","activeLimit","customFilter","typeKey","folderKey","folderTitle","parentFolderKey","parentFolderTitle","component"])
;return a?o()(f.a,{},void 0,o()(h.a,{label:n.i(p.default)("Loading libraries")})):c&&N?d.a.createElement(N,r()({serverEntityID:t,providerEntityID:i,selectedDirectory:c,activeType:v,activeSort:M},L)):c&&s?o()(m.a,{serverEntityID:t,providerEntityID:i,selectedDirectory:c}):c&&l?o()(y.a,{serverEntityID:t,providerEntityID:i,selectedDirectory:c}):c?o()(g.a,{serverEntityID:t,providerEntityID:i,selectedDirectory:c,activeType:v,activeFilters:S,activeFilterLabel:I,activeSort:M,activeLimit:C,
customFilter:w,typeKey:D,folderKey:P,folderTitle:T?T:c.title,parentFolderKey:x,parentFolderTitle:E}):b}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(4),h=n(38),f=n(159),v=(n(114),n(992)),m=n(2207),g=n(2235),y=n(2387),b=o()(v.a,{});i.defaultProps={isTimeline:!1},t.a=i},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(14),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(4),m=n(74),g=n(23),y=n(38),b=n(159),S=n(305),I=n(992),M=a()(I.a,{}),C=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o];return n=i=c()(this,e.call.apply(e,[this].concat(s))),i.onRetry=function(e){i.props.onRetry({serverEntityID:i.props.serverEntityID})},a=n,c()(i,a)}return p()(t,e),t.prototype.render=function(){
var e=this.props,t=e.children,i=e.hasProvider,r=e.isPersonalCloudServer,o=e.isRetrying,l=e.showSpinner,u=e.showError,c=s()(e,["children","hasProvider","isPersonalCloudServer","isRetrying","showSpinner","showError"]);if(l)return a()(b.a,{},void 0,a()(y.a,{label:n.i(v.default)("Loading libraries")}));if(u)return r?a()(S.a,{title:n.i(v.default)("There was an unexpected error loading libraries"),description:n.i(v.default)("Please retry, or visit our forums if you continue to experience problems")
},void 0,o?n.i(v.default)("Retrying\u2026"):a()(g.a,{kind:m.PRIMARY,onPress:this.onRetry},void 0,n.i(v.default)("Retry"))):a()(S.a,{title:n.i(v.default)("There was an unexpected error loading libraries")});if(!i)return M;var d=f.a.Children.only(t);return f.a.cloneElement(d,c)},t}(h.Component);t.a=C},function(e,t,n){"use strict";function i(e){
var t=e.children,i=e.friendlyName,a=e.isConnected,s=e.isUnavailable,l=e.isUnauthorized,v=e.isFullServer,m=e.isFullOwnedServer,g=e.isHostedHttps,y=e.hasHttpsConnections,b=e.requiresFullServer,S=e.requiresFullOwnedServer,I=o()(e,["children","friendlyName","isConnected","isUnavailable","isUnauthorized","isFullServer","isFullOwnedServer","isHostedHttps","hasHttpsConnections","requiresFullServer","requiresFullOwnedServer"]);if(a){if(b&&!v||S&&!m)return r()(f.a,{
title:n.i(c.default)("You're not supposed to be here"),description:i?n.i(c.default)('This page is restricted from the server "{serverName}"',{serverName:i}):n.i(c.default)("This page is restricted from this server")});var M=u.a.Children.only(t);return u.a.cloneElement(M,I)}if(s)return g&&!y?r()(p.a,{serverEntityID:e.serverEntityID}):r()(f.a,{title:i?n.i(c.default)('The server "{serverName}" is unavailable',{serverName:i}):n.i(c.default)("This server is unavailable"),
description:n.i(c.default)("Plex will automatically try to reconnect to this server")});if(l)return r()(f.a,{title:n.i(c.default)("No soup for you!"),description:n.i(c.default)("You do not have access to this server")});var C=i?n.i(c.default)("Connecting to {serverName}",{serverName:i}):n.i(c.default)("Connecting");return r()(h.a,{},void 0,r()(d.a,{label:C}))}var a=n(2),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(4),d=n(38),p=n(2217),h=n(159),f=n(160);t.a=i},function(e,t,n){"use strict"
;function i(){return n.i(u.createSelector)(n.i(d.a)(),function(e){var t=o.a.pick(e,"friendlyName","isConnected","isPending","isUnavailable","isUnauthorized","isFullServer","isFullOwnedServer","hasHttpsConnections");return r()({},t,{isHostedHttps:c.a.isHostedHttps})})}var a=n(6),r=n.n(a),s=n(3),o=n.n(s),l=n(11),u=n(5),c=(n.n(u),n(80)),d=n(46),p=n(2193);t.a=n.i(l.b)(i)(p.a)},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(14),s=n.n(r),o=n(6),l=n.n(o),u=n(7),c=n.n(u),d=n(9),p=n.n(d),h=n(8),f=n.n(h),v=n(3),m=n.n(v),g=n(0),y=n.n(g),b=n(4),S=n(34),I=n(74),M=n(345),C=n(238),w=n(1050),D=n(23),P=n(126),T=n(608),x=n(609),E=n(2040),N=n(444),L=n(460),A=n(461),k=n(377),_=n(945),O=n(2024),j=n(990),R=n(2198),U=n(2202),z=a()("span",{},void 0," \u2014 ",a()(O.a,{})),B=function(e){function t(n,i){c()(this,t);var a=p()(this,e.call(this,n,i));return a.createToggleHandler=function(e){return function(t){
var n;t.preventDefault();var i=a.state.AccountFormSections,r=i[e];a.props.updateUserError&&a.props.onErrorDismiss(),a.setState({AccountFormSections:l()({},m.a.mapObject(i,function(){return!1}),(n={},n[e]=!r,n))})}},a.getAccountFormSectionProps=function(e,t){return{title:e,onTogglePress:a.createToggleHandler(t),isOpen:a.state.AccountFormSections[t],onSubmit:a.props.onFormSubmit,onErrorDismiss:a.props.onErrorDismiss,isUpdatingUser:a.props.isUpdatingUser,updateUserError:a.props.updateUserError}},
a.onCreatePassword=function(e){a.createToggleHandler("isPasswordOpen")(e)},a.onAccountEmailFormSubmit=function(e){var t=a.props.user;t.username===t.email?a.props.onFormSubmit(l()({},e,{username:e.email})):a.props.onFormSubmit(e)},a.state={AccountFormSections:{isUsernameOpen:!1,isEmailOpen:!1,isPasswordOpen:!1,isLinkedAccountsOpen:!1,isLocaleOpen:!1,isPhotoOpen:!1,isNewsletterOpen:!1}},a}return f()(t,e),t.prototype.componentWillReceiveProps=function(e){
if(this.props.isUpdatingUser&&!e.isUpdatingUser&&!e.updateUserError){var t=this.state.AccountFormSections;this.setState({AccountFormSections:m.a.mapObject(t,function(){return!1})})}},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,i=e.user,r=e.isFederatedAuthEnabled,o=e.deleteAccountUrl,u=s()(e,["serverEntityID","user","isFederatedAuthEnabled","deleteAccountUrl"]),c=m.a.mapObject(u.updateUserError,function(e){return e.map(function(e){return n.i(C.a)(e)})
}),d=n.i(b.default)("System Default"),p=m.a.map(M.a,function(e,t){var n;return n={},n[t]=e,n}),h=!i.restricted,f=i.username===i.email;return a()(L.a,{metricsPage:S.m,metricsPane:"account"},void 0,a()(A.a,{},void 0,n.i(b.default)("Account"),i.hasPlexPass&&z),y.a.createElement(j.a,l()({},this.getAccountFormSectionProps(n.i(b.default)("Photo"),"isPhotoOpen"),{closedNode:a()(_.a,{serverEntityID:t,url:this.props.user.thumb,width:80,height:80})}),a()(P.a,{},void 0,n.i(b.default)("Photo")),a()(R.a,{
serverEntityID:t,name:"avatar",width:180,height:180,isDeletingAvatar:this.props.isDeletingAvatar,initialValue:this.props.user.thumb,url:this.props.user.thumb})),y.a.createElement(j.a,l()({},this.getAccountFormSectionProps(n.i(b.default)("Language"),"isLocaleOpen"),{closedNode:M.a[i.locale]||d}),a()(N.a,{labelText:n.i(b.default)("Language"),helpText:n.i(b.default)("This sets the default language for Plex applications that do not provide their own language setting."),name:"locale",
initialValue:i.locale,values:[{"":d}].concat(p)})),h&&y.a.createElement(j.a,l()({},this.getAccountFormSectionProps(n.i(b.default)("Username"),"isUsernameOpen"),{closedNode:f?n.i(b.default)("Not set"):i.username}),a()(x.a,{labelText:n.i(b.default)("Username"),helpText:n.i(b.default)("Your username will be visible to friends with whom you have shared your server."),name:"username",initialValue:f?"":i.username,errors:c.username,validations:[w.b]}),a()(T.a,{name:"emailOnlyAuth",
checkboxText:n.i(b.default)("Allow username to be used when signing in"),helpText:n.i(b.default)("Your email address will be required to sign in when username sign-in is not allowed."),initialValue:i.emailOnlyAuth,checkedValue:!1,uncheckedValue:!0})),h&&y.a.createElement(j.a,l()({},this.getAccountFormSectionProps(n.i(b.default)("Email Address"),"isEmailOpen"),{closedNode:i.email,onSubmit:this.onAccountEmailFormSubmit}),a()(x.a,{labelText:n.i(b.default)("Email Address"),name:"email",
initialValue:i.email,errors:c.email,validations:[w.c]}),a()(x.a,{labelText:n.i(b.default)("Password"),type:"password",name:"currentPassword",initialValue:"",validations:[w.d]})),h&&y.a.createElement(j.a,l()({},this.getAccountFormSectionProps(n.i(b.default)("Password"),"isPasswordOpen"),{closedNode:i.hasPassword?"**********":n.i(b.default)("Not set")}),a()(E.a,{labelText:i.hasPassword?n.i(b.default)("New Password"):n.i(b.default)("Choose Password"),name:"password",initialValue:"",
errors:c.password,validations:[w.d,w.e]}),a()(x.a,{labelText:i.hasPassword?n.i(b.default)("Confirm New Password"):n.i(b.default)("Confirm Password"),type:"password",name:"passwordConfirmation",initialValue:"",validations:[w.f,w.g]}),i.hasPassword&&a()(x.a,{labelText:n.i(b.default)("Current Password"),type:"password",name:"currentPassword",initialValue:"",validations:[w.h]}),i.hasPassword&&a()(T.a,{checkboxText:n.i(b.default)("Sign out connected devices after password change"),
name:"resetDevices",initialValue:!1})),h&&r&&y.a.createElement(U.a,l()({},this.getAccountFormSectionProps(n.i(b.default)("Linked Accounts"),"isLinkedAccountsOpen"),{hasPassword:i.hasPassword,onCreatePassword:this.onCreatePassword})),h&&y.a.createElement(j.a,l()({},this.getAccountFormSectionProps(n.i(b.default)("Plex News"),"isNewsletterOpen"),{closedNode:i.mailingListActive?n.i(b.default)("You are currently subscribed"):n.i(b.default)("You are not subscribed")}),a()(T.a,{
name:"mailingListActive",initialValue:i.mailingListActive,labelText:n.i(b.default)("Plex News"),checkboxText:n.i(b.default)("Subscribe to our amazing, but infrequent email newsletter")})),h&&a()(k.a,{},void 0,a()(D.a,{kind:I.DANGER,to:o,target:"_self"},void 0,n.i(b.default)("Delete your account"))))},t}(g.Component);t.a=B},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(14),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(3),m=n.n(v),g=n(11),y=n(5),b=(n.n(y),
n(19)),S=n(112),I=n(151),M=n(402),C=n(404),w=n(426),D=n(2195),P=n.i(y.createSelector)(I.a,M.a,n.i(C.a)(S.b),function(e){return e.ui.signInLaunchPage.isFederatedAuthEnabled},function(e,t,n,i){var a=e.desktop,r=n||i||e.isNinja;return{serverEntityID:t.entityID,user:m.a.pick(e,"username","email","emailOnlyAuth","thumb","locked","locale","hasPlexPass","hasPassword","mailingListActive","restricted"),isUpdatingUser:a.isUpdatingUser,updateUserError:a.updateUserError,
deleteAccountUrl:b.join(["https://plex.tv","/users/delete"]),isFederatedAuthEnabled:r}}),T={dispatchUpdateUser:w.i,dispatchClearUpdateUserError:w.j},x=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o];return n=i=c()(this,e.call.apply(e,[this].concat(s))),i.onErrorDismiss=function(){i.props.dispatchClearUpdateUserError()},i.onFormSubmit=function(e){i.props.dispatchUpdateUser(e)},a=n,c()(i,a)}return p()(t,e),
t.prototype.render=function(){var e=this.props,t=(e.dispatchUpdateUser,e.dispatchClearUpdateUserError,s()(e,["dispatchUpdateUser","dispatchClearUpdateUserError"]));return f.a.createElement(D.a,a()({},t,{onErrorDismiss:this.onErrorDismiss,onFormSubmit:this.onFormSubmit}))},t}(h.Component);t.a=n.i(g.b)(P,T)(x)},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(6),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(19),m=n(4),g=n(277),y=n(562),b=n(26),S=n(27),I=n(365),M=n(47),C=n(157),w=n(2826),D=n.n(w),P=a()(S.a,{name:"plex-icon-avatar-crop-min-560"}),T=a()(S.a,{name:"plex-icon-avatar-crop-max-560"}),x=function(e){function t(n,i){l()(this,t);var a=c()(this,e.call(this,n,i));return a.setCanvasRef=function(e){a.canvas=e},a.onMouseDown=function(e){e.preventDefault(),a.startAvatarDrag(e.clientX,e.clientY)
},a.onTouchStart=function(e){e.preventDefault();var t=e.touches.item(0);t&&a.startAvatarDrag(t.clientX,t.clientY,!0)},a.onTouchMove=function(e){var t=e.touches.item(0);t&&a.dragAvatar(t.clientX,t.clientY)},a.onMouseMove=function(e){a.dragAvatar(e.clientX,e.clientY)},a.onMouseUp=function(){a.stopAvatarDrag()},a.onTouchEnd=function(){a.stopAvatarDrag()},a.onFileDrop=function(e){e.preventDefault(),a.setState({isOverDropTarget:!1}),a.dropTargetEnteredCounter=0;var t=void 0
;if(e.dataTransfer&&e.dataTransfer.files.length?t=e.dataTransfer.files[0]:e.target.files&&e.target.files.length&&(t=e.target.files[0]),t){var n=new window.FileReader;n.onload=function(e){return a.loadImage(e.target.result)},n.readAsDataURL(t)}},a.onDragEnter=function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event).preventDefault(),a.dropTargetEnteredCounter++,a.setOverDropTargetState()},a.onDragLeave=function(){
(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event).preventDefault(),a.dropTargetEnteredCounter--,a.setOverDropTargetState()},a.onSliderChange=function(e){var t=e.steppedValue;a.setState(function(e){var n=e.offsetX,i=e.offsetY,r=a.initialWidth*t,o=a.initialHeight*t,l=(a.imageWidth-r)/2,u=(a.imageHeight-o)/2,c=a.props.width-r,d=a.props.height-o,p=Math.max(c,Math.min(n+l,0)),h=Math.max(d,Math.min(i+u,0));return s()({},e,{scale:t,offsetX:p,offsetY:h})},function(){
return a.props.onChange(a.getImageDataUrl())})},a.state={drag:!1,dragX:0,dragY:0,minScale:.1,maxScale:1,scale:.1,offsetX:0,offsetY:0,isOverDropTarget:!1},a.dropTargetEnteredCounter=0,a}return p()(t,e),t.prototype.componentDidMount=function(){window.addEventListener("dragover",this.onWindowDragOver),window.addEventListener("drop",this.onWindowDrop),this.paint(),this.loadImage(this.props.url,!0)},t.prototype.componentWillReceiveProps=function(e){this.props.url!==e.url&&this.loadImage(e.url)},
t.prototype.shouldComponentUpdate=function(e,t){return n.i(b.a)(this,e,t)},t.prototype.componentDidUpdate=function(){this.paint()},t.prototype.componentWillUnmount=function(){window.removeEventListener("dragover",this.onWindowDragOver),window.removeEventListener("drop",this.onWindowDrop),this.stopListeningForDrag()},t.prototype.listenForDrag=function(e){e?(document.addEventListener("touchmove",this.onTouchMove),document.addEventListener("touchcancel",this.onTouchEnd),
document.addEventListener("touchend",this.onTouchEnd)):(document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp))},t.prototype.stopListeningForDrag=function(){document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("touchcancel",this.onTouchEnd),document.removeEventListener("touchend",this.onTouchEnd)
},t.prototype.startAvatarDrag=function(e,t,n){this.listenForDrag(n),this.setState({drag:!0,dragX:e,dragY:t})},t.prototype.dragAvatar=function(e,t){var n=this;this.state.drag&&this.setState(function(i){var a=i.offsetX,r=i.offsetY,o=i.dragX,l=i.dragY,u=n.props.width-n.imageWidth,c=n.props.height-n.imageHeight,d=Math.max(u,Math.min(a+(e-o),0)),p=Math.max(c,Math.min(r+(t-l),0));return s()({},i,{dragX:e,dragY:t,offsetX:d,offsetY:p})})},t.prototype.stopAvatarDrag=function(){var e=this
;this.stopListeningForDrag(),this.setState({drag:!1},function(){return e.props.onChange(e.getImageDataUrl())})},t.prototype.loadImage=function(e,t){var i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props,r=new window.Image;r.onload=function(){return i.onImageLoad(r,t)},/^https?:\/\//.test(e)&&r.setAttribute("crossOrigin","anonymous");var s=e;if(0!==e.indexOf("data:")){var o=n.i(g.a)(),l={width:Math.round(a.width*o),height:Math.round(a.height*o),minSize:1},u=e.indexOf("?")
;u>-1?(s=v.join(e.substring(0,u),l),s+=s.indexOf("?")===-1?"?":"&",s+=e.substring(u+1)):s=v.join(s,l)}r.src=s},t.prototype.paint=function(){var e=this.props,t=e.width,n=e.height,i=this.canvas.getContext("2d");i.clearRect(0,0,t,n),this.image&&this.drawImage(i);var a=document.createElement("canvas"),r=a.getContext("2d");a.width=t,a.height=n,r.fillStyle="rgba(0,0,0,0.6)",r.fillRect(0,0,a.width,a.height),r.globalCompositeOperation="destination-out",r.arc(t/2,n/2,t/2,0,2*Math.PI),r.fill(),
i.drawImage(a,0,0)},t.prototype.drawImage=function(e){this.imageWidth=this.initialWidth*this.state.scale,this.imageHeight=this.initialHeight*this.state.scale,e.drawImage(this.image,this.state.offsetX,this.state.offsetY,this.imageWidth,this.imageHeight)},t.prototype.getImageDataUrl=function(){var e=document.createElement("canvas"),t=e.getContext("2d");return e.height=this.props.height,e.width=this.props.width,this.drawImage(t),e.toDataURL()},t.prototype.setOverDropTargetState=function(){
this.state.isOverDropTarget||0===this.dropTargetEnteredCounter||this.setState({isOverDropTarget:!0}),this.state.isOverDropTarget&&0===this.dropTargetEnteredCounter&&this.setState({isOverDropTarget:!1})},t.prototype.onImageLoad=function(e,t){var n=this;this.image=e,this.initialWidth=Math.max(this.props.width,e.width),this.initialHeight=Math.max(this.props.height,e.height);var i=e.width>e.height?e.height:e.width,a=i>this.props.width?this.props.width/i:1,r=i<=this.props.width?2:1;this.setState({
drag:!1,dragX:0,dragY:0,minScale:a,maxScale:r,scale:a,offsetX:0,offsetY:0},t?null:function(){return n.props.onChange(n.getImageDataUrl())})},t.prototype.onWindowDrop=function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event).preventDefault()},t.prototype.onWindowDragOver=function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event).preventDefault()},t.prototype.onDragStart=function(){
(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event).dataTransfer.effectAllowed="copyMove"},t.prototype.onDragOver=function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event).dataTransfer.dropEffect="copy"},t.prototype.render=function(){var e=this.state.isOverDropTarget;return a()("div",{className:D.a.avatarContainer,onDrop:this.onFileDrop,onDragOver:this.onDragOver,onDragStart:this.onDragStart,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter
},void 0,a()("div",{className:D.a.avatarPane},void 0,f.a.createElement("canvas",{className:e?D.a.isOverDropTarget:"",width:this.props.width,height:this.props.height,ref:this.setCanvasRef,onTouchStart:this.onTouchStart,onMouseDown:this.onMouseDown}),a()("div",{className:D.a.sliderContainer},void 0,a()("span",{className:D.a.sliderEnd},void 0,P),a()("span",{className:D.a.sliderWrapper},void 0,a()(I.a,{className:D.a.slider,min:this.state.minScale,max:this.state.maxScale,step:.1,
value:this.state.scale,onChange:this.onSliderChange})),a()("span",{className:D.a.sliderEnd},void 0,T))),a()("div",{className:D.a.avatarTextPane},void 0,a()("p",{},void 0,n.i(y.a)()?a()("input",{type:"file",accept:"image/*",onChange:this.onFileDrop}):a()(M.a,{className:D.a.avatarActionButtons,component:"label"},void 0,n.i(m.default)("Choose Photo"),a()("input",{className:D.a.avatarFileInput,type:"file",accept:"image/*",onChange:this.onFileDrop}))),a()("p",{className:D.a.help
},void 0,n.i(m.default)("You can scale your photo using the slider below, and adjust the crop by dragging it within the circle."))))},t}(h.Component);x.defaultProps={height:200,width:200,onChange:function(){}},t.a=n.i(C.a)(x)},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(e){return{url:e}})}var a=n(11),r=n(5),s=(n.n(r),n(775)),o=n(2197);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(34),f=n(74),v=(n(664),n(47)),m=n(23),g=n(127),y=n(1017),b=n(2827),S=n.n(b),I={facebook:S.a.buttonFacebook,google:S.a.buttonGoogle},M=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onLinkPress=function(){a.setState({isLinking:!0})},a.onUnlinkPress=function(e){!a.props.hasPassword&&a.props.isLastLinkedAccount?a.setState({isUnlinkOauthProviderModalOpen:!0
}):a.props.onCreatePassword(e)},a.onUnlinkCancel=function(){a.setState({isUnlinkOauthProviderModalOpen:!1})},a.state={isLinking:!1,isUnlinkOauthProviderModalOpen:!1},a}return c()(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.isUnlinking&&!e.isUnlinking&&this.setState({isUnlinkOauthProviderModalOpen:!1})},t.prototype.render=function(){
var e=this.props,t=e.authToken,i=e.email,r=e.providerID,s=e.metricsProperties,o=e.isUnlinking,l=e.isLastLinkedAccount,u=e.hasPassword,c=e.label,d=e.linked,b=e.onUnlink,M=e.onCreatePassword,C=this.state,w=C.isLinking,D=C.isUnlinkOauthProviderModalOpen,P=d&&!u&&l,T=d&&(u||!l),x=!d;return a()("div",{className:d?S.a.rowLinked:S.a.rowUnlinked},void 0,a()(v.a,{className:I[r],isDisabled:o}),d?n.i(p.default)("Your {oauthProvider} account is linked",{oauthProvider:c
}):n.i(p.default)("Your {oauthProvider} account is not linked",{oauthProvider:c}),a()("span",{className:S.a.separator},void 0,"\u2014"),T&&a()(m.a,{kind:f.PRIMARY,isDisabled:o,onPress:b},void 0,n.i(p.default)("Unlink")),P&&a()(m.a,{kind:f.PRIMARY,isDisabled:o,onPress:this.onUnlinkPress},void 0,n.i(p.default)("Unlink")),P&&a()(g.a,{isConfirmButtonSpinning:o,isCancelButtonDisabled:o,isOpen:D,metricsPage:h.o,metricsProperties:s,title:n.i(p.default)("Unlink {oauthProvider}",{oauthProvider:c}),
message:n.i(p.default)("To unlink, first set a password to use when signing in"),confirmLabel:n.i(p.default)("Set Password"),kind:f.DANGER,onConfirm:M,onCancel:this.onUnlinkCancel}),x&&a()(m.a,{kind:f.PRIMARY,isDisabled:o,onPress:this.onLinkPress},void 0,n.i(p.default)("Link")),w&&a()(y.a,{authToken:t,soleProviderID:r,email:i}))},t}(d.Component);t.a=M},function(e,t,n){"use strict";function i(){var e=n.i(m.createSelector)(function(e,t){return t.url},I.a,function(e,t){
return t.oauthProviders.find(function(t){return t.url===e})});return n.i(m.createSelector)(function(e,t){return{url:t.url}},function(e,t){return t.returnUrl},C,w,e,function(e,t,i,a,r){return h()({},r,{authToken:a,email:i,providerID:r.authName,originalUrl:r.url,url:n.i(y.a)(r.url,t),metricsProperties:e})})}var a=n(14),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(6),h=n.n(p),f=n(0),v=n.n(f),m=n(5),g=(n.n(m),
n(11)),y=n(857),b=n(289),S=n(151),I=n(910),M=n(2199),C=n.i(m.createSelector)(S.a,function(e){return e.email}),w=n.i(m.createSelector)(S.a,function(e){return e.authToken}),D={dispatchUnlinkOauthProvider:b.b},P=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),l=0;l<r;l++)s[l]=arguments[l];return n=i=u()(this,e.call.apply(e,[this].concat(s))),i.onUnlink=function(){i.props.dispatchUnlinkOauthProvider({url:i.props.originalUrl})},a=n,u()(i,a)}return d()(t,e),
t.prototype.render=function(){var e=this.props,t=(e.dispatchUnlinkOauthProvider,r()(e,["dispatchUnlinkOauthProvider"]));return v.a.createElement(M.a,h()({},t,{onUnlink:this.onUnlink}))},t}(f.Component);t.a=n.i(g.b)(i,D)(P)},function(e,t,n){"use strict";function i(e){
var t=e.returnUrl,i=e.hasPassword,a=e.linkedOauthProviders,s=e.isOauthProvidersPending,l=e.isOauthProvidersPopulated,c=e.oauthProvidersError,m=e.lastLinkedAuthProviderID,y=e.onCreatePassword,b=u()(e,["returnUrl","hasPassword","linkedOauthProviders","isOauthProvidersPending","isOauthProvidersPopulated","oauthProvidersError","lastLinkedAuthProviderID","onCreatePassword"]),S=void 0;return S=s?o()("span",{className:g.a.dim},void 0,n.i(p.default)("Loading\u2026")):c?o()("span",{className:g.a.dim
},void 0,n.i(p.default)("Error")):a||o()("span",{className:g.a.dim},void 0,n.i(p.default)("None")),d.a.createElement(f.a,r()({},b,{closedNode:S,showButton:!1}),o()(h.a,{},void 0,n.i(p.default)("Linked Accounts")),o()("div",{className:g.a.description
},void 0,o()("div",{},void 0,n.i(p.default)("You can link your Google or Facebook account to simplify signing in to Plex.")),o()("div",{},void 0,n.i(p.default)("(Note: You may only link both accounts if they share the same email address.)"))),l&&e.oauthProviders&&e.oauthProviders.map(function(e){return o()(v.a,{isUnlinking:s,hasPassword:i,isLastLinkedAccount:m===e.authName,providerID:e.providerID,url:e.url,returnUrl:t,onCreatePassword:y},e.url)}))}
var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(4),h=n(126),f=n(990),v=n(2200),m=n(2828),g=n.n(m);t.a=i},function(e,t,n){"use strict";var i=n(14),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(6),p=n.n(d),h=n(0),f=n.n(h),v=n(11),m=n(5),g=(n.n(m),n(289)),y=n(910),b=n(2201),S=n.i(m.createSelector)(y.a,function(e){var t=e.oauthProviders,n=t.filter(function(e){return e.linked}),i=1===n.length?n[0].authName:null;return p()({
linkedOauthProviders:n.map(function(e){return e.label}).join(", "),lastLinkedAuthProviderID:i,returnUrl:window.location.href},e)}),I={dispatchFetchOauthProviders:g.a},M=function(e){function t(){return s()(this,t),l()(this,e.apply(this,arguments))}return c()(t,e),t.prototype.componentDidMount=function(){this.props.dispatchFetchOauthProviders()},t.prototype.render=function(){var e=this.props,t=(e.dispatchFetchOauthProviders,a()(e,["dispatchFetchOauthProviders"]));return f.a.createElement(b.a,t)},t
}(h.Component);t.a=n.i(v.b)(S,I)(M)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(74),f=n(377),v=n(143),m=n(92),g=n(608),y=n(444),b=n(1421),S=n(2829),I=n.n(S),M=n(660),C=function(e){function t(i,a){s()(this,t);var r=l()(this,e.call(this,i,a));return r.onFormSubmit=function(e){e.autoSelectSubtitle&&(e.autoSelectSubtitle=parseInt(e.autoSelectSubtitle,10)),r.props.onSubmit(e)},r.onFormChange=function(e){
var t=e.autoSelectAudio;t.value!==r.state.isAutoSelectAudio&&r.setState({isAutoSelectAudio:t.value}),r.props.onDirtyChange()},r.state={isAutoSelectAudio:i.userProfile.autoSelectAudio},r._autoSelectSubtitleOptions=[{0:n.i(p.default)("Manually selected")},{1:n.i(p.default)("Shown with foreign audio")},{2:n.i(p.default)("Always enabled")}],r._languageOptions=[{"":n.i(p.default)("Select Language")}].concat(n.i(b.a)()),r}return c()(t,e),t.prototype.render=function(){
var e=this.props,t=e.isDirty,i=e.isUpdatingUserProfile,r=e.updateUserProfileError,s=e.userProfile,o=e.onErrorDismiss,l=this.state.isAutoSelectAudio;return a()(v.a,{onSubmit:this.onFormSubmit,onChange:this.onFormChange},void 0,a()(f.a,{className:I.a.formSection,errorMessage:r,onErrorDismiss:o},void 0,a()(g.a,{name:"autoSelectAudio",checkboxText:n.i(p.default)("Automatically select audio and subtitle tracks"),initialValue:s.autoSelectAudio}),l&&a()(y.a,{
labelText:n.i(p.default)("Preferred audio language"),name:"defaultAudioLanguage",initialValue:s.defaultAudioLanguage,values:this._languageOptions}),l&&a()(y.a,{labelText:n.i(p.default)("Preferred subtitle language"),name:"defaultSubtitleLanguage",initialValue:s.defaultSubtitleLanguage,values:this._languageOptions}),l&&a()(y.a,{labelText:n.i(p.default)("Auto-select subtitle mode"),name:"autoSelectSubtitle",initialValue:s.autoSelectSubtitle,values:this._autoSelectSubtitleOptions}),a()("div",{
className:I.a.submitButton},void 0,a()(m.a,{type:"submit",kind:h.PRIMARY,isDisabled:!t,isSpinning:i},void 0,n.i(p.default)("Save Changes")))))},t}(d.Component);t.a=n.i(M.a)(C,{isUpdatingPropName:"isUpdatingUserProfile",errorPropName:"updateUserProfileError"})},function(e,t,n){"use strict";function i(e){return r()(c.a,{metricsPage:u.m,metricsPane:"audioSubtitleSettings"
},void 0,r()(d.a,{},void 0,n.i(l.default)("Audio & Subtitle Settings")),r()("p",{},void 0,n.i(l.default)("These settings determine how Plex will try to select audio and subtitle tracks when playing media in a Plex app while using your account.")),r()("p",{},void 0,r()(h.a,{kind:p.PRIMARY,to:"https://support.plex.tv/hc/en-us/articles/204985278",target:"_blank"},void 0,n.i(l.default)("Learn more"))),o.a.createElement(f.a,e))}
var a=n(2),r=n.n(a),s=n(0),o=n.n(s),l=n(4),u=n(34),c=n(460),d=n(461),p=n(74),h=n(23),f=n(2203);t.a=i},function(e,t,n){"use strict";var i=n(11),a=n(5),r=(n.n(a),n(1771)),s=n(151),o=n(2204),l=n.i(a.createSelector)(s.a,function(e){return e.ui.audioSubtitleSettingsPage},function(e,t){return{userProfile:e.profile,isUpdatingUserProfile:t.isUpdatingUserProfile,updateUserProfileError:t.updateUserProfileError}}),u={onSubmit:r.a,onErrorDismiss:r.b};t.a=n.i(i.b)(l,u)(o.a)},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(34)),h=n(20),f=n(187),v=n(218),m=n(308),g=n(617),y=n(615),b=n(951),S=n(2212),I=n(2209),M=n(2830),C=n.n(M),w=function(e){function t(){return s()(this,t),l()(this,e.apply(this,arguments))}return c()(t,e),t.prototype.componentDidMount=function(){this.props.onProviderChange(this.props.providerIdentifier)},t.prototype.componentDidUpdate=function(e){
this.props.providerIdentifier!==e.providerIdentifier&&this.props.onProviderChange(this.props.providerIdentifier)},t.prototype.componentWillUnmount=function(){this.props.onProviderChange(null)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.providerIdentifier,r=e.providerMetricsIdentifier,s=e.isProgramGuide,o=e.selectedDirectory,l=e.activeSelectionType,u=e.hubEntityIDs,c=e.isHubsPending,d=e.hubsError,M=e.isEmpty,w=e.onRepopulate;return a()(f.a,{
metricsPage:p.B,metricsProperties:{provider:r,type:o.type},allowBackgroundLightPreset:!0,scrollDirection:h.a.NONE},void 0,l?a()(m.a,{serverEntityID:t,providerEntityID:n}):a()(I.a,{serverEntityID:t,providerEntityID:n,selectedDirectory:o}),a()(v.a,{innerClassName:C.a.dashboardPageContent},void 0,M?a()(S.a,{serverEntityID:t,providerEntityID:n,providerIdentifier:i,isPending:c,error:d,onRepopulate:w}):a()(g.a,{serverEntityID:t,providerEntityID:n,hubEntityIDs:u}),s&&!M&&a()(y.a,{
className:C.a.attribution})),s&&a()(b.a,{serverEntityID:t,providerEntityID:n}))},t}(d.Component);t.a=w},function(e,t,n){"use strict";function i(){return n.i(l.createSelector)(n.i(c.a)(),function(e){return e.ui.dashboardPage},function(e,t){return t.selectedDirectory.hubKey},g,p.a,function(e,t,n,i,a){return{providerIdentifier:e.identifier,providerMetricsIdentifier:e.metricsIdentifier,isProgramGuide:u.a.EPG_IDENTIFIER.test(e.identifier),hubKey:n,hubEntityIDs:t.hubs||[],
isHubsPending:t.isHubsPending,hubsError:t.hubsError,isEmpty:i,activeSelectionType:a.activeSelectionType}})}function a(e,t){return{onProviderChange:function(i){e(n.i(h.changeQuickSearchSettings)({serverEntityID:t.serverEntityID,providerIdentifier:i,sectionID:null}))}}}function r(e){var t=e.ui.dashboardPage;return{serverEntityID:t.serverEntityID,hubKey:t.hubKey}}function s(e,t){e(n.i(f.a)({serverEntityID:t.serverEntityID,hubKey:t.hubKey})),e(n.i(f.b)({options:{onlyTransient:!0}}))}
var o=n(11),l=n(5),u=(n.n(l),n(72)),c=n(136),d=n(782),p=n(83),h=n(156),f=n(1774),v=n(184),m=n(2206),g=n.i(l.createSelector)(d.a,function(e){return e.ui.dashboardPage.hubs},function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t.length;n-- >0;){var i=t[n],a=e[i];if(a.size||a.totalSize)return!1}return!0}),y=n.i(v.a)(m.a,r,s),b=n.i(o.b)(i,a)(y);t.a=b},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),
n(4)),h=n(26),f=n(50),v=n(20),m=n(38),g=n(216),y=n(168),b=n(169),S=n(988),I=n(189),M=n(644),C=n(188),w=n(456),D=n(2831),P=n.n(D),T=a()(M.a,{}),x=a()(I.a,{},void 0,a()(g.a,{})),E=function(e){function t(i,a){s()(this,t);var r=l()(this,e.call(this,i,a));return r.onDirectoriesMenuButtonPress=function(e){r.setState({isDirectoriesMenuOpen:!r.state.isDirectoriesMenuOpen})},r.onDirectoriesMenuClose=function(){r.setState({isDirectoriesMenuOpen:!1})},r.state={isDirectoriesMenuOpen:!1},
r._directoriesMenuButtonID=n.i(f.a)(),r}return c()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(h.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.machineIdentifier,i=e.providerIdentifier,r=e.isLibraryProvider,s=e.directories,o=e.selectedDirectory,l=e.isEPGRefreshing,u=e.epgActivityProgress,c=e.epgActivityTitle,d=this.state.isDirectoriesMenuOpen;return a()(y.a,{},void 0,a()(b.a,{},void 0,r&&a()("span",{},void 0,n.i(p.default)("Discover"),T),a()(C.a,{
id:this._directoriesMenuButtonID,"data-qa-id":"directoriesMenuButton",title:o.isHomeDirectory?n.i(p.default)("All Libraries"):o.title,hasMenu:s.length>1,isMenuOpen:d,isSelected:!0,onPress:this.onDirectoriesMenuButtonPress}),a()(w.a,{target:this._directoriesMenuButtonID,isOpen:d,machineIdentifier:t,providerIdentifier:i,isLibraryProvider:r,directories:s,selectedDirectory:o,onMenuClose:this.onDirectoriesMenuClose})),l&&a()(S.a,{},void 0,c," (",u,"%)",a()(m.a,{className:P.a.refreshingSpinner,
size:v.d.SMALL})),x)},t}(d.Component);t.a=E},function(e,t,n){"use strict";function i(){return n.i(l.createSelector)(n.i(u.a)(),n.i(c.a)(),n.i(d.a)(),n.i(p.a)(),function(e,t,n,i){var a={machineIdentifier:e.machineIdentifier,providerIdentifier:t.identifier,isLibraryProvider:t.isLibraryProvider,directories:n};return i&&(a.isEPGRefreshing=!0,a.epgActivityProgress=i.progress,a.epgActivityTitle=i.title),a})}function a(e){return s.a.createElement(h.a,e)}var r=n(0),s=n.n(r),o=n(11),l=n(5),u=(n.n(l),
n(46)),c=n(136),d=n(340),p=n(428),h=n(2208);t.a=n.i(o.b)(i)(a)},function(e,t,n){"use strict";function i(e){var t=e.friendlyName,i=e.isFullServer,a=e.isFullOwnedServer,s=e.isPending,v=e.error,m=e.hasLibraries,g=e.onAddLibraryPress,y=e.onRetryPress;return s?r()(h.a,{},void 0,r()(c.a,{label:n.i(o.default)("Loading dashboard")})):v&&i?r()(f.a,{title:n.i(o.default)("There was an unexpected error loading the dashboard")},void 0,r()(p.a,{kind:u.PRIMARY,onPress:y
},void 0,n.i(o.default)("Retry"))):v&&!i?r()(h.a,{title:n.i(o.default)('The server "{serverName}" does not support the dashboard',{serverName:t}),description:n.i(o.default)("Browse libraries using the sidebar")}):m&&a?r()(h.a,{title:n.i(o.default)("The dashboard is empty"),description:n.i(o.default)("Browse and manage your libraries using the sidebar"),footer:n.i(o.default)('Tip: The "Include in dashboard" advanced setting for each library allows content to be displayed here')}):!m&&a?r()(h.a,{
title:n.i(o.default)("The dashboard is empty"),description:n.i(o.default)("Add libraries with your media to make the most of Plex Media Server")},void 0,r()(d.a,{kind:u.PRIMARY,size:l.LARGE,onPress:g},void 0,n.i(o.default)("Add Library"))):r()(h.a,{title:n.i(o.default)("The dashboard is empty"),description:n.i(o.default)("Browse libraries using the sidebar")})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(91),u=n(74),c=n(38),d=n(47),p=n(23),h=n(170),f=n(251);t.a=i},function(e,t,n){"use strict"
;function i(){return n.i(g.createSelector)(n.i(y.a)(),function(e){return{friendlyName:e.friendlyName,isFullServer:e.isFullServer,isFullOwnedServer:e.isFullOwnedServer,isPersonalCloudServer:e.isPersonalCloudServer,hasLibraries:!!e.desktop.libraries.length}})}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(7),u=n.n(l),c=n(9),d=n.n(c),p=n(8),h=n.n(p),f=n(0),v=n.n(f),m=n(11),g=n(5),y=(n.n(g),n(46)),b=n(100),S=n(2210),I=function(e){function t(){var n,i,a;u()(this,t)
;for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o];return n=i=d()(this,e.call.apply(e,[this].concat(s))),i.onAddLibraryPress=function(e){i.props.addLibrary({serverEntityID:i.props.serverEntityID})},a=n,d()(i,a)}return h()(t,e),t.prototype.render=function(){var e=this.props,t=e.onRepopulate,n=o()(e,["onRepopulate"]);return v.a.createElement(S.a,r()({},n,{onAddLibraryPress:this.onAddLibraryPress,onRetryPress:t}))},t}(f.Component);t.a=n.i(m.b)(i,{addLibrary:b.a})(I)
},function(e,t,n){"use strict";function i(e){var t=e.providerIdentifier,n=r()(e,["providerIdentifier"]);return l.a.EPG_IDENTIFIER.test(t)?o.a.createElement(c.a,n):o.a.createElement(u.a,n)}var a=n(14),r=n.n(a),s=n(0),o=n.n(s),l=n(72),u=n(2211),c=n(2213);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,i=e.providerEntityID,a=e.isPending,s=e.error;return a?r()(u.a,{},void 0,r()(l.a,{label:n.i(o.default)("Loading guide")})):s?r()(c.a,{
title:n.i(o.default)("There was an unexpected error loading the Program Guide")}):r()(d.a,{serverEntityID:t,providerEntityID:i})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(38),u=n(170),c=n(251),d=n(950);t.a=i},function(e,t,n){"use strict";function i(e){return u.a.createElement(f.a,r()({title:n.i(c.default)("Plex is down for maintenance"),description:n.i(c.default)("Don't worry, it will be back soon")},e),o()(h.a,{to:d.b,target:"_blank",kind:p.b.PRIMARY},void 0,"status.plex.tv"))}
var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(0),u=n.n(l),c=n(4),d=n(795),p=n(20),h=n(23),f=n(160);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.server,i=e.outOfDateServers,a=e.isDownForMaintenance,s=e.hasFailedResources,u=e.hasPlexPass,c=e.isUserRestricted,v=e.canProvisionPersonalCloudServer,m=e.onDownloadServer,g=e.onLinkPersonalCloudServerPress;return i.length?r()(d.a,{selectedServer:t,outOfDateServers:i}):a?h:s?f:c?r()(l.a,{title:n.i(o.default)("No shared libraries"),
description:n.i(o.default)("A user in your home needs to share a library with you")}):r()(p.a,{hasPlexPass:u,canProvisionPersonalCloudServer:v,onDownloadServer:m,onLinkPersonalCloudServerPress:g})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(160),u=n(305),c=n(2214),d=n(2219),p=n(2218),h=r()(c.a,{}),f=r()(u.a,{});t.a=i},function(e,t,n){"use strict";function i(e){var t=e.friendlyName,i=e.onReloadHttpPress,a=e.onReloadHttpAlwaysPress;return r()(d.a,{className:v.a.emptyPage},void 0,r()("div",{
className:v.a.content},void 0,r()("img",{className:v.a.pmsLogo,src:g.a}),r()("div",{className:v.a.title},void 0,n.i(o.default)('The server "{serverName}" does not allow secure connections',{serverName:t})),r()("div",{className:v.a.description},void 0,n.i(o.default)('Its "Secure connections" setting may be set to disabled, or you may need to adjust some settings on your network.'),y,r()(c.a,{message:n.i(o.default)("You can {openLink}learn more about secure connections here{closeLink}."),tags:[{
open:"openLink",close:"closeLink",component:p.a,to:"https://support.plex.tv/hc/en-us/articles/206225077-How-to-Use-Secure-Server-Connections",kind:l.PRIMARY,target:"_blank"}]}),b,n.i(o.default)("You can also allow insecure connections now, which will reload the app insecurely.")),r()(h.a,{className:v.a.button,kind:l.PRIMARY,size:u.LARGE,onPress:i},void 0,n.i(o.default)("Allow once")),r()(h.a,{className:v.a.button,kind:l.PRIMARY,size:u.LARGE,onPress:a},void 0,n.i(o.default)("Allow always"))))}
var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(74),u=n(91),c=n(285),d=n(67),p=n(23),h=n(47),f=n(2835),v=n.n(f),m=n(1177),g=n.n(m),y=r()("br",{}),b=r()("br",{});t.a=i},function(e,t,n){"use strict";function i(){return n.i(s.createSelector)(n.i(l.a)(),function(e){return{friendlyName:e.friendlyName}})}function a(e){return{onReloadHttpPress:function(t){e(n.i(o.d)())},onReloadHttpAlwaysPress:function(t){e(n.i(o.e)()),e(n.i(o.d)())}}}var r=n(11),s=n(5),o=(n.n(s),n(86)),l=n(46),u=n(2216)
;t.a=n.i(r.b)(i,a)(u.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(89),f=n(20),v=n(26),m=n(67),g=n(23),y=n(47),b=n(463),S=n(2836),I=n.n(S),M=n(1177),C=n.n(M),w={context:h.d,firstRun:!0},D=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onDownloadPress=function(e){a.setState({isDownloadStep:!1}),a.props.onDownloadServer(e.currentTarget.dataset.type)},
a.onPlexPassModalClose=function(){a.setState({isPlexPassModalOpen:!1})},a.state={isDownloadStep:!0,isPlexPassModalOpen:!n.hasPlexPass},a}return c()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(v.a)(this,e,t)},t.prototype.render=function(){var e=this.state,t=e.isDownloadStep,i=e.isPlexPassModalOpen,r=this.props,s=r.canProvisionPersonalCloudServer,o=r.onLinkPersonalCloudServerPress,l=void 0
;return l=t?s?n.i(p.default)("To get started streaming your media everywhere, set up Plex Cloud or download and install Plex Media Server on the computer or device where you keep your media."):n.i(p.default)("To get started streaming your media everywhere, download and install Plex Media Server on the computer or device where you keep your media."):n.i(p.default)("Excellent. Check your download location for Plex Media Server and install it. Once it's running, check back here and we'll get you set up."),
a()(m.a,{className:I.a.emptyPage},void 0,a()("div",{className:I.a.content},void 0,a()("img",{className:I.a.pmsLogo,src:C.a}),a()("div",{className:I.a.title},void 0,t?n.i(p.default)("Get your Plex Media Server"):n.i(p.default)("Install your new server")),a()("div",{className:I.a.description},void 0,l),t&&s&&a()(y.a,{className:I.a.button,kind:f.b.PRIMARY,size:f.d.LARGE,onPress:o},void 0,n.i(p.default)("Set up Plex Cloud")),t&&a()(y.a,{className:I.a.button,kind:f.b.PRIMARY,size:f.d.LARGE,
"data-type":"computer",onPress:this.onDownloadPress},void 0,n.i(p.default)("Download Plex Media Server")),!t&&a()("div",{className:I.a.downloadMessage},void 0,n.i(p.default)("Need to download different server?")),!t&&a()(g.a,{kind:f.b.PRIMARY,"data-type":"computer",onPress:this.onDownloadPress},void 0,n.i(p.default)("Download for Computer Platforms")),a()(g.a,{kind:f.b.PRIMARY,"data-type":"nas",onPress:this.onDownloadPress},void 0,n.i(p.default)("Download for NAS Platforms"))),a()(b.a,{
metricsProperties:w,isOpen:i,onModalClose:this.onPlexPassModalClose}))},t}(d.Component);t.a=D},function(e,t,n){"use strict";function i(e){var t=e.selectedServer,i=e.outOfDateServers,a=t&&t.isOutOfDate?n.i(o.default)('The server "{serverName}" is out of date and cannot be selected. This version of the web app requires Plex Media Server {version} or higher. Use one of the links below to open an available, out of date server directly.',{serverName:t.friendlyName,version:"1.3.0"
}):n.i(o.default)("This version of the web app requires Plex Media Server {version} or higher. Use one of the links below to open an available, out of date server directly.",{version:"1.3.0"});return r()(d.a,{title:n.i(o.default)("Update your Plex Media Server"),description:a},void 0,r()("div",{},void 0,i.map(function(e){var t=e.activeConnection,i=e.isShared;return t?r()(c.a,{className:h.a.updateLink,to:l.join([t.uri,i?"/web/index.html":"/web/index.html#!/settings/server"]),target:"_self",
kind:u.b.PRIMARY,size:u.d.LARGE},e.machineIdentifier,e.friendlyName):r()("span",{className:h.a.updateDisabledLink},e.machineIdentifier,n.i(o.default)("{serverName} (Unavailable)",{serverName:e.friendlyName}))})))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(19),u=n(20),c=n(23),d=n(160),p=n(2837),h=n.n(p);s.PropTypes.shape({friendlyName:s.PropTypes.string.isRequired,isShared:s.PropTypes.bool.isRequired,activeConnection:s.PropTypes.shape({uri:s.PropTypes.string.isRequired})});t.a=i
},function(e,t,n){"use strict";function i(e){var t=e.defaultField,n=e.defaultFieldType,i=n.type,a=n.operators,r=[];return i===M.a&&r.push({value:1}),{key:t.key,value:r,operator:a[0].key,id:m.a.uniqueId()}}function a(e){return(e.activeFilters.length?e.activeFilters:[i(e)]).map(function(e){return f()({},e,{id:m.a.uniqueId(e.key)})})}var r=n(2),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(6),f=n.n(h),v=n(3),m=n.n(v),g=n(0),y=(n.n(g),
n(40)),b=n.n(y),S=n(4),I=n(91),M=n(205),C=n(409),w=n(74),D=n(814),P=(n(114),n(212)),T=n(47),x=n(38),E=n(143),N=n(2035),L=n(367),A=n(157),k=n(2223),_=n(2838),O=n.n(_),j=n.i(A.a)(L.a),R=s()(x.a,{}),U=function(e){function t(r,s){l()(this,t);var o=c()(this,e.call(this,r,s));return o.onFormSubmit=function(e){var t=o.state.activeFilters,i=o.props,a=i.allTypeFieldsByKey,r=i.typeKey,s=i.activeSort,l=t.map(function(t){var i=e[t.id],r=i.key,s=i.value,o=i.operator,l=s.map(function(e){
return m.a.isString(e)?e:e.value}),u=void 0;return u=a[r].type!==C.a||n.i(D.a)(o)?l:[b()(l[0],"YYYY-MM-DD").unix()],{key:r,operator:o,value:u}}).filter(function(e){return e.value.length}),u=void 0;e.enableLimit&&""!==e.limit&&(u=e.limit),window.location.hash=n.i(P.a)({typeKey:r,filters:l,sort:s,limit:u,customFilter:!0})},o.onCancelPress=function(){var e=o.props,t=e.typeKey,i=e.activeSort;window.location.hash=n.i(P.a)({typeKey:t,filters:[],sort:i})},o.onAddPress=function(e){
var t=[].concat(o.state.activeFilters);t.splice(e+1,0,i(o.props)),o.setState({activeFilters:t})},o.onRemovePress=function(e){var t=[].concat(o.state.activeFilters);t.splice(e,1),o.setState({activeFilters:t})},o.state={activeFilters:r.activeFilters?a(r):[]},o}return p()(t,e),t.prototype.componentWillReceiveProps=function(e){this.setState({activeFilters:a(e)})},t.prototype.render=function(){
var e=this,t=this.state.activeFilters,i=this.props,a=i.serverEntityID,r=i.activeLimit,o=i.isQueryParsePopulated,l=i.queryParseError;if(!o)return s()("div",{className:O.a.loadingContainer},void 0,l?n.i(S.default)("There was an error trying to load the filters. Reload the page and try again"):R);var u=!!r;return s()(E.a,{className:O.a.container,onSubmit:this.onFormSubmit},void 0,t.map(function(n,i){return s()(k.a,{serverEntityID:a,name:n.id,index:i,initialValue:n,isRemoveDisabled:t.length<2,
onRemovePress:e.onRemovePress,onAddPress:e.onAddPress},n.id)}),s()("div",{className:O.a.footer},void 0,s()("div",{className:O.a.settings},void 0,s()(j,{className:O.a.checkInput,size:I.SMALL,name:"enableLimit",checkboxText:n.i(S.default)("Limit to"),initialValue:u}),s()(N.a,{inputClassName:O.a.numberInput,size:I.SMALL,name:"limit",initialValue:u?r:"",leftLabel:!1,labelText:n.i(S.default)("items")})),s()("div",{className:O.a.buttons},void 0,s()(T.a,{className:O.a.button,onPress:this.onCancelPress
},void 0,n.i(S.default)("Cancel")),s()(T.a,{kind:w.PRIMARY,type:"submit"},void 0,n.i(S.default)("Apply")))))},t}(g.Component);t.a=U},function(e,t,n){"use strict";function i(e,t){var n=e.field,i=e.type,a=e.fieldTitle,r=e.valueTitle,s=null==i?n:i+"."+n,o=void 0,l=void 0;return e.operator!==I.b&&e.operator!==I.c||!E.test(e.value)||t[s].type!==M.a?t[s].type===M.a?(o=e.operator,l=S.a.unix(e.value).format("YYYY-MM-DD")):(o=e.operator,l=e.value):(o=e.operator+"-",l=e.value.substr(1)),{key:s,keyTitle:a,
operator:o,value:[{value:decodeURIComponent(l),valueTitle:r?decodeURIComponent(r):void 0}]}}function a(e,t){var n=[];if("composite"===e.type&&"and"===e.operator){if(e.rules){var r=e.rules.reduce(function(e,n){return e.push.apply(e,a(n,t)),e},[]);n.push.apply(n,r)}}else if("composite"===e.type&&"or"===e.operator){var s=e.rules.reduce(function(e,n){var a=i(n,t);return e.key=a.key,e.keyTitle=a.keyTitle,e.operator=a.operator,null==e.value&&(e.value=[]),e.value.push.apply(e.value,a.value),e},{})
;n.push(s)}else n.push(i(e,t));return n}var r=n(14),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(3),f=n.n(h),v=n(0),m=n.n(v),g=n(11),y=n(5),b=(n.n(y),n(40)),S=n.n(b),I=n(276),M=n(409),C=n(43),w=n(292),D=n(902),P=n(901),T=n(242),x=n(2220),E=/^\-([0-9]+)([a-zA-Z]+)$/,N=n.i(y.createSelector)(P.a,function(e){return e.reduce(function(e,t){return e[t.key]=t,e},{})}),L=n.i(y.createSelector)(function(e){return e.ui.libraryPage.queryParse},N,function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return e.rule?a(e.rule,t):[]}),A=n.i(y.createSelector)(C.a,w.a,D.a,N,L,function(e){return e.ui.libraryPage.queryParse.key},function(e){return e.ui.libraryPage.queryParseError},function(e){return e.ui.libraryPage.isQueryParsePopulated},function(e,t,n,i,a,r,s,o){var l=t[0],u=l.fields,c=u[0],d=f.a.find(n,function(e){return e.type===c.type});return{supportsQueryParser:!!e.features.queryParser,activeFilters:a,
allTypeFieldsByKey:i,queryParseKey:r,queryParseError:s,isQueryParsePopulated:o,defaultField:c,defaultFieldType:d}}),k={dispatchPopulateQueryParse:T.populateQueryParse},_=function(e){function t(){return l()(this,t),c()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.componentDidMount=function(){this.props.supportsQueryParser&&this.props.dispatchPopulateQueryParse()},t.prototype.componentWillReceiveProps=function(e){
this.props.queryParseKey!==e.queryParseKey&&this.props.dispatchPopulateQueryParse()},t.prototype.render=function(){var e=this.props,t=(e.dispatchPopulateQueryParse,e.supportsQueryParser),n=s()(e,["dispatchPopulateQueryParse","supportsQueryParser"]);return t?m.a.createElement(x.a,n):null},t}(v.Component);t.a=n.i(g.b)(A,k)(_)},function(e,t,n){"use strict";function i(e){
var t=e.selectedField,i=e.filter,a=e.selectedFilterOptions,r=e.suggestionsFilter,s=e.renderSuggestion,o=e.shouldRenderSuggestions,l=e.getSuggestionValue,u=e.getTagValue,c=e.getTagDisplayValue,d=e.makeTag,p=e.makeTagFromSuggestion,f=e.onSuggestionSelected,g=e.onSuggestionsFetchRequested,S=e.onSuggestionsClearRequested,I=e.onValueChange,T=e.onTagValueChange;return t.type===y.b?null:t.subType===y.c?h()(M.a,{className:x.a.selectInput,name:"value",size:m.SMALL,values:[{"-1":n.i(v.default)("Empty")},{
2:"\u2605"},{4:"\u2605\u2605"},{6:"\u2605\u2605\u2605"},{8:"\u2605\u2605\u2605\u2605"},{10:"\u2605\u2605\u2605\u2605\u2605"}],value:i.value[0]?i.value[0].value:"",onChange:I}):t.type===y.a&&n.i(b.a)(i.operator)?h()(D.a,{textInputClassName:x.a.unitTextInput,selectInputClassName:x.a.selectInput,name:"value",size:m.SMALL,units:[{s:n.i(v.default)("Seconds")},{m:n.i(v.default)("Minutes")},{h:n.i(v.default)("Hours")},{d:n.i(v.default)("Days")},{w:n.i(v.default)("Weeks")},{mon:n.i(v.default)("Months")
},{y:n.i(v.default)("Years")}],value:i.value[0]?i.value[0].value:"",onChange:I}):t.type===y.a?h()(w.a,{className:x.a.textInput,name:"value",size:m.SMALL,value:i.value[0]?i.value[0].value:"",onChange:I}):h()(C.a,{className:x.a.tagsInput,value:i.value,suggestions:a,suggestionsFilter:r,renderSuggestion:s,shouldRenderSuggestions:o,getSuggestionValue:l,getTagValue:u,getTagDisplayValue:c,makeTag:d,makeTagFromSuggestion:p,tagComponent:P.a,validationRegex:L[t.type],onSuggestionSelected:f,
onSuggestionsFetchRequested:g,onSuggestionsClearRequested:S,onChange:T})}var a=n(6),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(2),h=n.n(p),f=n(0),v=(n.n(f),n(4)),m=n(91),g=n(276),y=n(409),b=n(814),S=n(23),I=n(27),M=n(215),C=n(2031),w=n(2032),D=n(2043),P=n(2224),T=n(2839),x=n.n(T),E=[g.a,g.d],N=[g.e,g.f],L={integer:/^\d+$/},A=h()(I.a,{name:"plex-icon-toolbar-filter-remove-560"}),k=h()(I.a,{name:"plex-icon-toolbar-filter-add-560"}),_=function(e){function t(){var i,a,s;o()(this,t)
;for(var l=arguments.length,c=Array(l),d=0;d<l;d++)c[d]=arguments[d];return i=a=u()(this,e.call.apply(e,[this].concat(c))),a.shouldRenderSuggestions=function(e){var t=a.props,n=t.selectedFilter,i=t.selectedField.type,r=t.value.operator;return!!n&&(i===y.d&&N.indexOf(r)>-1||i!==y.d&&E.indexOf(r)>-1)},a.onFieldChange=function(e){var t=a.props.fieldKeyTypes,n=t[e],i=n.defaultOperator,r=n.type,s=[];r===y.b&&s.push({value:1}),e!==a.props.value.key&&a.props.onChange({key:e,operator:i,value:s})},
a.onOperatorChange=function(e){var t=a.props.selectedField,i=void 0;i=t.type===y.a&&n.i(b.a)(e)&&n.i(b.a)(a.props.value.operator)||!n.i(b.a)(e)&&!n.i(b.a)(a.props.value.operator)?a.props.value.value:[],a.props.onChange(r()({},a.props.value,{value:i,operator:e}))},a.onTagValueChange=function(e){a.props.onChange(r()({},a.props.value,{value:Array.isArray(e)?e:[e]}))},a.onValueChange=function(e){a.props.onChange(r()({},a.props.value,{value:[{value:e}]}))},a.onRemovePress=function(){
a.props.onRemovePress(a.props.index)},a.onAddPress=function(){a.props.onAddPress(a.props.index)},s=i,u()(a,s)}return d()(t,e),t.prototype.getSuggestionValue=function(e){return e},t.prototype.getTagValue=function(e){return e.value},t.prototype.getTagDisplayValue=function(e){return e.valueTitle||e.value},t.prototype.makeTag=function(e){return{value:e}},t.prototype.makeTagFromSuggestion=function(e){return{value:e.key,valueTitle:e.title}},t.prototype.suggestionsFilter=function(e,t){
return e.title.toLowerCase().indexOf(t.toLowerCase())>-1},t.prototype.renderSuggestion=function(e){return e.title},t.prototype.render=function(){var e=this.props,t=e.isRemoveDisabled,a=e.value,r=e.operatorValues,s=e.fieldValues,o=e.selectedField,l=e.selectedFilterOptions,u=e.onSuggestionsFetchRequested,c=e.onSuggestionsClearRequested;return h()("div",{className:x.a.container},void 0,h()("div",{className:x.a.rules},void 0,h()("div",{className:x.a.rule},void 0,h()(M.a,{className:x.a.selectInput,
name:"filter",size:m.SMALL,values:s,value:a.key,onChange:this.onFieldChange})),h()("div",{className:x.a.rule},void 0,h()(M.a,{className:x.a.selectInput,name:"operator",size:m.SMALL,values:r,value:a.operator,onChange:this.onOperatorChange})),h()("div",{className:x.a.value},void 0,h()(i,{selectedField:o,filter:a,selectedFilterOptions:l,suggestionsFilter:this.suggestionsFilter,renderSuggestion:this.renderSuggestion,shouldRenderSuggestions:this.shouldRenderSuggestions,
getSuggestionValue:this.getSuggestionValue,getTagValue:this.getTagValue,getTagDisplayValue:this.getTagDisplayValue,makeTag:this.makeTag,makeTagFromSuggestion:this.makeTagFromSuggestion,tagComponent:P.a,onSuggestionSelected:this.onSuggestionSelected,onSuggestionsFetchRequested:u,onSuggestionsClearRequested:c,onTagValueChange:this.onTagValueChange,onValueChange:this.onValueChange})),h()("div",{className:x.a.buttons},void 0,h()(S.a,{className:t?x.a.iconButtonDisabled:x.a.iconButton,
"aria-label":n.i(v.default)("Remove Filter"),isDisabled:t,onPress:this.onRemovePress},void 0,A),h()(S.a,{className:x.a.iconButton,"aria-label":n.i(v.default)("Add Filter"),onPress:this.onAddPress},void 0,k))))},t}(f.Component);_.defaultProps={isRemoveDisabled:!1,isAddEnabled:!0,onRemovePress:function(){},onAddPress:function(){}},t.a=_},function(e,t,n){"use strict";function i(){return n.i(b.createSelector)(function(e,t){return t.value.key},M.a,w.a,C.a,function(e){
return e.ui.libraryPage.selectedFilterOptions},function(e,t,i,a,r){for(var s=void 0,o=void 0,l=[],u={},c=0;c<i.length;c++){var d=i[c],p=d.key,h=d.title,f=d.type,m=d.subType;if(d.key===e&&(s=d),u[p]={type:f,subType:m,defaultOperator:a[f][0].key},!N.test(p)&&!L.test(f)){var g;l.push((g={},g[p]=h,g))}}if(s){var y=s.key.split("."),f=y[0],b=y[1];b||(b=f,f=null);var S=void 0;if(f){var M=n.i(I.b)(f),C=M.id;S=v.a.find(t,function(e){var t=n.i(I.b)(e.type);return!!t&&t.id===C})}else S=t[0]
;S&&(o=v.a.find(S.filters,function(e){return e.filter===b}))}return{selectedField:s,fieldValues:l,selectedFilter:o,selectedFilterOptions:r,operatorValues:a[s.type].map(function(e){var t;return t={},t[e.key]=e.title,t}),fieldKeyTypes:u}})}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(7),u=n.n(l),c=n(9),d=n.n(c),p=n(8),h=n.n(p),f=n(3),v=n.n(f),m=n(0),g=n.n(m),y=n(11),b=n(5),S=(n.n(b),
n(35)),I=n(30),M=n(292),C=n(1794),w=n(901),D=n(242),P=n(157),T=n(2222),x=["duration","writer","producer","mediaSize","mediaBitrate","mood","studio","show.director"],E=["language"],N=new RegExp("("+x.join("|")+")$"),L=new RegExp("^("+E.join("|")+")$"),A={dispatchSelectLibraryFilter:D.selectLibraryFilter,dispatchPopulateLibraryFilterOptions:D.populateLibraryFilterOptions,dispatchDeselectLibraryFilter:D.deselectLibraryFilter,dispatchSearchLibraryFilterOptions:D.searchLibraryFilterOptions
},k=function(e){function t(){var i,a,r;u()(this,t);for(var s=arguments.length,o=Array(s),l=0;l<s;l++)o[l]=arguments[l];return i=a=d()(this,e.call.apply(e,[this].concat(o))),a.onSuggestionsFetchRequested=function(){a.props.selectedFilter&&(a.props.dispatchSelectLibraryFilter({serverEntityID:a.props.serverEntityID,key:a.props.selectedFilter.key}),a.props.dispatchPopulateLibraryFilterOptions())},a.onSuggestionsClearRequested=function(){a.props.selectedFilterOptions&&n.i(S.a)(function(){
a.props.dispatchDeselectLibraryFilter()})},r=i,d()(a,r)}return h()(t,e),t.prototype.render=function(){var e=this.props,t=(e.dispatchSelectLibraryFilter,e.dispatchPopulateLibraryFilterOptions,e.dispatchDeselectLibraryFilter,e.dispatchSearchLibraryFilterOptions,o()(e,["dispatchSelectLibraryFilter","dispatchPopulateLibraryFilterOptions","dispatchDeselectLibraryFilter","dispatchSearchLibraryFilterOptions"]));return g.a.createElement(T.a,r()({},t,{
onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested}))},t}(m.Component);t.a=n.i(P.a)(n.i(y.b)(i,A)(k))},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(23),f=n(27),v=n(2840),m=n.n(v),g=a()(f.a,{name:"plex-icon-remove-560"}),y=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u]
;return n=i=l()(this,e.call.apply(e,[this].concat(o))),i.onRemovePress=function(){i.props.onRemove(i.props.index)},a=n,l()(i,a)}return c()(t,e),t.prototype.render=function(){var e=this.props,t=e.tag,i=e.index,r=e.tagCount,s=e.isDisabled,o=e.getTagDisplayValue;return a()("span",{className:m.a.container},void 0,a()("span",{className:m.a.tag},void 0,!s&&a()(h.a,{className:m.a.remove,"aria-label":n.i(p.default)("Remove Tag"),onPress:this.onRemovePress
},void 0,g),a()("span",{},void 0,o(t))),a()("span",{className:m.a.or},void 0,i!==r-1&&n.i(p.default)("or")))},t}(d.Component);t.a=y},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(50),f=(n(32),n(77),n(216)),v=n(168),m=n(169),g=n(189),y=n(188),b=n(375),S=n(457),I=function(e){function t(i,a){s()(this,t);var r=l()(this,e.call(this,i,a));return r.onTypesMenuButtonPress=function(e){r.setState({
isTypesMenuOpen:!r.state.isTypesMenuOpen})},r.onTypesMenuClose=function(){r.setState({isTypesMenuOpen:!1})},r.state={isTypesMenuOpen:!1},r._typesMenuButtonID=n.i(h.a)(),r}return c()(t,e),t.prototype.render=function(){var e=this.props,t=e.selectedDirectory,i=e.folderTitle,r=e.parentFolderTitle,s=e.parentRoute,o=e.size,l=e.listType,u=e.listContext,c=e.listStyle,d=e.metadataTypes,h=e.metadataPseudoTypes,I=e.selectedType,M=e.allListStyles,C=this.state.isTypesMenuOpen
;return a()(v.a,{},void 0,a()(m.a,{},void 0,a()(y.a,{id:this._typesMenuButtonID,title:n.i(p.default)("Folders"),hasMenu:!0,isMenuOpen:C,onPress:this.onTypesMenuButtonPress}),a()(S.a,{target:this._typesMenuButtonID,isOpen:C,types:d,pseudoTypes:h,selectedType:I,activeFilters:[],onMenuClose:this.onTypesMenuClose}),!!s&&a()(y.a,{title:r||t.title,hasMenu:!1,to:s}),a()(y.a,{title:i}),a()(b.a,{},void 0,o)),a()(g.a,{},void 0,a()(f.a,{listType:l,listContext:u,selectedListStyle:c,allListStyles:M})))},t
}(d.Component);t.a=I},function(e,t,n){"use strict";function i(){return n.i(s.createSelector)(function(e,t){return t.selectedDirectory},function(e,t){return t.folderKey},function(e,t){return t.folderTitle},function(e,t){return t.parentFolderKey},function(e,t){return t.parentFolderTitle},d.a,c.a,function(e,t,i,a,r,s,o){var l=e.key,u={folderKey:a,folderTitle:r};if(!a){var c=l+"/folder";if(c===t)return null;u.folderKey=c,u.folderTitle=e.title}return n.i(h.a)(s,o,l,u)})}function a(){
return n.i(s.createSelector)(function(e,t){return t.listType},function(e,t){return t.libraryDirectories},d.a,c.a,n.i(o.a)(),p.a,n.i(l.a)(),i(),function(e,t,i,a,r,s,o,l){var c=n.i(f.a)(e,u.e,a),d={key:"folder"},p=n.i(v.a)({type:e,server:i,provider:a,libraryKey:r,libraryDirectories:t});return{parentRoute:l,size:o.totalSize||o.metadataItems.length,metadataTypes:s,metadataPseudoTypes:p,selectedType:d,allListStyles:c}})}var r=n(11),s=n(5),o=(n.n(s),
n(178)),l=n(149),u=n(32),c=n(43),d=n(45),p=n(292),h=n(96),f=n(467),v=n(468),m=n(2225);t.a=n.i(r.b)(a)(m.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(34),f=n(1395),v=(n(114),n(32)),m=n(20),g=n(77),y=n(38),b=n(187),S=n(159),I=n(305),M=n(158),C=n(308),w=n(2105),D=n(615),P=n(951),T=n(2226),x=n(2231),E=n(2221),N=n(2234),L=n(2229),A=n(2841),k=n.n(A),_=function(e){function t(n,i){s()(this,t)
;var a=l()(this,e.call(this,n,i));O.call(a);var r=n.listHeight,o=n.scrollIndex,u=n.viewportHeight;return a.state={listHeight:r,scrollIndex:o,viewportHeight:u},a}return c()(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.librarySectionID,n=e.providerIdentifier,i=e.onLibraryChange;t&&i(n,t)},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.librarySectionID,i=t.providerIdentifier,a=t.onLibraryChange;n&&n!==e.librarySectionID&&a(i,n)},
t.prototype.componentWillUnmount=function(){this.props.onLibraryChange(null,null)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,i=e.providerEntityID,r=e.metadataListEntityID,s=e.containerKey,o=e.providerIdentifier,l=e.providerMetricsIdentifier,u=e.isProgramGuide,c=e.selectedDirectory,d=e.showLibrarySpinner,v=e.showLibraryError,A=e.libraryDirectories,_=e.selectedSort,O=e.listTitle,j=e.listType,R=e.listContext,U=e.listStyle,z=e.activeSelectionType,B=e.typeKey,F=e.activeFilters,V=e.activeFilterLabel,Q=e.activeSort,H=e.activeLimit,W=e.customFilter,Y=e.folderKey,G=e.folderTitle,K=e.parentFolderKey,q=e.parentFolderTitle,X=e.isLibraryRefreshing,Z=e.firstCharacterCount,J=this.state,$=J.listHeight,ee=J.scrollIndex,te=J.viewportHeight,ne=/titleSort/i.test(_.key),ie=Math.max($,1),ae=Z>=5,re=te/ie<=.25,se=!Y&&ne&&ae&&re,oe=U===g.b,le=!z&&!!Y,ue=!z&&!Y
;return d?a()(S.a,{},void 0,a()(y.a,{label:n.i(p.default)("Loading library")})):v?a()(I.a,{title:n.i(p.default)("There was an unexpected error loading this library")}):a()(b.a,{metricsPage:h.A,metricsProperties:{provider:l,mode:Y?f.a:f.b,type:j,customFilter:W,style:U},allowBackgroundLightPreset:!0,scrollDirection:m.a.NONE},void 0,z&&a()(C.a,{serverEntityID:t,providerEntityID:i}),le&&a()(T.a,{serverEntityID:t,providerEntityID:i,metadataListEntityID:r,libraryDirectories:A,listType:j,listContext:R,
listStyle:U,selectedDirectory:c,folderKey:Y,folderTitle:G,parentFolderKey:K,parentFolderTitle:q}),ue&&a()(x.a,{serverEntityID:t,providerEntityID:i,metadataListEntityID:r,libraryDirectories:A,listType:j,listContext:R,listStyle:U,selectedDirectory:c,typeKey:B,activeFilters:F,activeFilterLabel:V,activeSort:Q,customFilter:W,showSortsMenu:!oe}),W&&a()(E.a,{serverEntityID:t,providerEntityID:i,metadataListEntityID:r,providerIdentifier:o,typeKey:B,activeSort:Q,activeLimit:H,selectedSort:_
}),oe&&a()(w.a,{providerEntityID:i,listType:j,listContext:R,typeKey:B,activeFilters:F,activeFilterLabel:V,activeSort:Q,customFilter:W,selectedSort:_,isDisabled:!!Y}),a()(M.a,{component:L.a,serverEntityID:t,providerEntityID:i,metadataListEntityID:r,containerKey:s,containerTitle:G,providerIdentifier:o,hasGutter:se,scrollIndex:ee,listTitle:O,listType:j,listContext:R,listStyle:U,typeKey:B,activeFilters:F,activeSort:Q,selectedSort:_,initialSize:50,shouldResetOnUnmount:!0,isLibraryRefreshing:X,
onListScrollIndexChange:this.onListScrollIndexChange,onListUpdate:this.onListUpdate,onMeasure:this.onMeasure},void 0,u&&a()(D.a,{className:k.a.attribution})),se&&a()(N.a,{activeSort:Q,viewportHeight:te,onJumpBarItemPress:this.onJumpBarItemPress}),u&&a()(P.a,{serverEntityID:t,providerEntityID:i}))},t}(d.Component),O=function(){var e=this;this.onListScrollIndexChange=function(t){e.setState({scrollIndex:t})},this.onListUpdate=function(t){var n=t.listStyle.height;e.setState({listHeight:n})},
this.onMeasure=function(t){var n=t.height;e.setState({viewportHeight:n})},this.onJumpBarItemPress=function(t){e.setState({scrollIndex:t})}};_.defaultProps={listContext:v.e,scrollIndex:0,listHeight:0,viewportHeight:0},t.a=_},function(e,t,n){"use strict";function i(e,t){if(e){var i=n.i(y.b)(e.type);return i?t?n.i(y.n)(i.typeString).typeString:i.typeString:"mixed"}}function a(){return n.i(g.createSelector)(function(e){return e.ui.libraryPage},function(e,t){return t.folderKey
},n.i(S.a)(),n.i(M.a)(),n.i(C.a)(),n.i(w.a)(),n.i(I.a)("query/parse"),n.i(T.a)(),n.i(x.a)(),E.a,P.a,n.i(N.a)(),function(e,t,a,r,s,o,l){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:{},d=arguments[9],p=arguments[10],h=arguments[11],f=e.metadataList,v=e.firstCharacters,m=e.details,g=e.isDetailsPending,y=e.isDetailsPopulated,S=e.detailsError,I=i(u,t),M=n.i(k.a)(d,D.e,I,a);return{libraryKey:r,containerKey:s,
librarySectionID:m&&m.librarySectionID,firstCharacterKey:o,queryParseKey:l,metadataListEntityID:f,providerIdentifier:a.identifier,providerMetricsIdentifier:a.metricsIdentifier,isProgramGuide:b.a.EPG_IDENTIFIER.test(a.identifier),showLibrarySpinner:!(S||y&&f),showLibraryError:!g&&!!S,libraryDirectories:m&&m.directories,listTitle:u.title,listType:I,listStyle:M,typeKey:u.key,selectedType:u,selectedSort:c,activeSelectionType:p.activeSelectionType,isLibraryRefreshing:h,
firstCharacterCount:v?v.length:0}})}function r(e,t){return{onLibraryChange:function(i,a){e(n.i(L.changeQuickSearchSettings)({serverEntityID:t.serverEntityID,providerIdentifier:i,sectionID:a}))},dispatchInitLibraryPageMetadataList:function(t){e(A.initLibraryPageMetadataList(t))},dispatchPopulateLibraryFirstCharacters:function(){e(A.populateLibraryFirstCharacters())}}}var s=n(14),o=n.n(s),l=n(7),u=n.n(l),c=n(9),d=n.n(c),p=n(8),h=n.n(p),f=n(0),v=n.n(f),m=n(11),g=n(5),y=(n.n(g),
n(30)),b=n(72),S=n(136),I=n(400),M=n(178),C=n(1373),w=n(1372),D=n(32),P=n(83),T=n(359),x=n(900),E=n(594),N=n(590),L=n(156),A=n(242),k=n(663),_=n(2227),O=function(e){function t(){return u()(this,t),d()(this,e.apply(this,arguments))}return h()(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.typeKey,n=e.containerKey;t&&n&&this._populate()},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.typeKey,i=t.containerKey
;(n&&n!==e.typeKey||i&&i!==e.containerKey)&&this._populate()},t.prototype._populate=function(){var e=this.props,t=e.serverEntityID,n=e.containerKey,i=e.typeKey,a=e.folderKey,r=e.firstCharacterKey,s=e.queryParseKey,o=e.dispatchInitLibraryPageMetadataList,l=e.dispatchPopulateLibraryFirstCharacters;o({serverEntityID:t,containerKey:n,typeKey:i,folderKey:a,firstCharacterKey:r,queryParseKey:s}),l()},t.prototype.render=function(){var e=this.props,t=(e.dispatchInitLibraryPageMetadataList,
e.dispatchPopulateLibraryFirstCharacters,o()(e,["dispatchInitLibraryPageMetadataList","dispatchPopulateLibraryFirstCharacters"]));return v.a.createElement(_.a,t)},t}(f.Component);t.a=n.i(m.b)(a,r)(O)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.providerIdentifier,a=e.metadataItemEntityIDs,s=e.totalSize,d=e.isPending,p=e.isPopulated,h=e.error,f=e.typeKey,v=e.activeFilters,m=e.activeSort,g=e.listType,y=e.isLibraryRefreshing,b=s||a.length
;return d||p&&b?o.a.createElement(u.a,e):r()(l.a,{},void 0,r()(c.a,{serverEntityID:t,providerEntityID:n,providerIdentifier:i,error:h,typeKey:f,activeFilters:v,activeSort:m,listType:g,isLibraryRefreshing:y}))}var a=n(2),r=n.n(a),s=n(0),o=n.n(s),l=(n(114),n(218)),u=n(993),c=n(2236);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(26),f=n(50),v=(n(106),n(105),n(114),n(32),n(77),
n(637)),m=n(619),g=n(216),y=n(168),b=n(169),S=n(189),I=n(188),M=n(375),C=n(456),w=n(2242),D=n(457),P=n(2243),T=function(e){function t(i,a){s()(this,t);var r=l()(this,e.call(this,i,a));return r.onDirectoriesMenuButtonPress=function(e){r.setState({isDirectoriesMenuOpen:!r.state.isDirectoriesMenuOpen})},r.onDirectoriesMenuClose=function(){r.setState({isDirectoriesMenuOpen:!1})},r.onFiltersMenuButtonPress=function(e){r.setState({isFiltersMenuOpen:!r.state.isFiltersMenuOpen})},
r.onFiltersMenuClose=function(){r.setState({isFiltersMenuOpen:!1})},r.onTypesMenuButtonPress=function(e){r.setState({isTypesMenuOpen:!r.state.isTypesMenuOpen})},r.onTypesMenuClose=function(){r.setState({isTypesMenuOpen:!1})},r.onSortsMenuButtonPress=function(e){r.setState({isSortsMenuOpen:!r.state.isSortsMenuOpen})},r.onSortsMenuClose=function(){r.setState({isSortsMenuOpen:!1})},r.state={isDirectoriesMenuOpen:!1,isFiltersMenuOpen:!1,isTypesMenuOpen:!1,isSortsMenuOpen:!1},
r._directoriesMenuButtonID=n.i(f.a)(),r._filtersMenuButtonID=n.i(f.a)(),r._sortsMenuButtonID=n.i(f.a)(),r._typesMenuButtonID=n.i(f.a)(),r}return c()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(h.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,i=e.providerEntityID,r=e.metadataListEntityID,s=e.listType,o=e.listContext,l=e.listStyle,u=e.server,c=e.provider,d=e.directories,h=e.selectedDirectory,f=e.typeKey,T=e.activeFilters,x=e.activeFilterLabel,E=e.activeSort,N=e.activeLimit,L=e.metadataTypes,A=e.metadataPseudoTypes,k=e.selectedType,_=e.selectedFilterTitle,O=e.selectedSort,j=e.customFilter,R=e.totalSize,U=e.showSortsMenu,z=e.allListStyles,B=this.state,F=B.isDirectoriesMenuOpen,V=B.isFiltersMenuOpen,Q=B.isTypesMenuOpen,H=B.isSortsMenuOpen,W=!c.isLibraryProvider&&d.length>1,Y=!!k&&k.filters.length>0,G=!!k&&(L.length>1||A.length>0),K=!!(U&&O&&k.sorts.length>1)
;return a()(y.a,{},void 0,a()(b.a,{},void 0,W&&a()(I.a,{id:this._directoriesMenuButtonID,title:h.title,hasMenu:!0,isMenuOpen:F,isSelected:!0,onPress:this.onDirectoriesMenuButtonPress}),W&&a()(C.a,{target:this._directoriesMenuButtonID,isOpen:F,machineIdentifier:u.machineIdentifier,providerIdentifier:c.identifier,isLibraryProvider:c.isLibraryProvider,directories:d,selectedDirectory:h,onMenuClose:this.onDirectoriesMenuClose}),Y&&a()(I.a,{id:this._filtersMenuButtonID,title:_,hasMenu:!0,isMenuOpen:V,
onPress:this.onFiltersMenuButtonPress}),Y&&a()(w.a,{serverEntityID:t,target:this._filtersMenuButtonID,isOpen:V,typeKey:f,activeFilters:T,activeFilterLabel:x,activeSort:E,selectedType:k,showCustomFilter:!!c.features.queryParser,onMenuClose:this.onFiltersMenuClose}),G&&a()(I.a,{id:this._typesMenuButtonID,title:k.title,hasMenu:!0,isMenuOpen:Q,onPress:this.onTypesMenuButtonPress}),G&&a()(D.a,{target:this._typesMenuButtonID,isOpen:Q,types:L,pseudoTypes:A,activeFilters:T,activeSort:E,activeLimit:N,
customFilter:j,selectedType:k,onMenuClose:this.onTypesMenuClose}),K&&a()(I.a,{id:this._sortsMenuButtonID,title:n.i(p.default)("By {sortTitle}",{sortTitle:O.title}),hasMenu:!0,isMenuOpen:H,onPress:this.onSortsMenuButtonPress}),K&&a()(P.a,{target:this._sortsMenuButtonID,isOpen:H,typeKey:f,activeFilters:T,activeFilterLabel:x,activeSort:E,activeLimit:N,customFilter:j,sorts:k.sorts,selectedSort:O,onMenuClose:this.onSortsMenuClose}),a()(M.a,{},void 0,R)),a()(S.a,{},void 0,a()(v.a,{serverEntityID:t,
providerEntityID:i,metadataListEntityID:r,listType:s,selectedType:k,isLibraryList:!0}),a()(m.a,{selectedListStyle:l,allListStyles:z}),a()(g.a,{listType:s,listContext:o,selectedListStyle:l,allListStyles:z})))},t}(d.Component);T.defaultProps={showSortsMenu:!0},t.a=T},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(function(e,t){return t.listType},function(e,t){return t.listStyle},function(e,t){return t.libraryDirectories
},n.i(d.a)(),c.a,n.i(l.a)(),n.i(s.a)(),p.a,n.i(o.a)(),n.i(h.a)(),n.i(f.a)(),n.i(v.a)(),function(e,t,i,a,r,s,o,l,c,d,p,h){var f=n.i(m.a)(e,u.e,r);return{server:a,provider:r,directories:o,metadataTypes:l,metadataPseudoTypes:n.i(g.a)({type:e,server:a,provider:r,libraryKey:s,libraryDirectories:i}),selectedType:d,selectedFilterTitle:p,selectedSort:h,listType:e,listStyle:t,allListStyles:f,totalSize:c.totalSize}})}var a=n(11),r=n(5),s=(n.n(r),
n(340)),o=n(149),l=n(178),u=n(32),c=n(43),d=n(46),p=n(292),h=n(359),f=n(1793),v=n(900),m=n(467),g=n(468),y=n(2230);t.a=n.i(a.b)(i)(y.a)},function(e,t,n){"use strict";function i(e){var t=e.firstCharacters,i=e.viewportHeight,a=e.onJumpBarItemPress,s={height:i+"px"},l=Math.floor(i/m),d=n.i(c.a)(t,l);return o()("div",{className:f.a.jumpBar,style:s},void 0,d.map(function(e,t){return u.a.createElement(v.a,r()({key:t},e,{onPress:a}))}))}
var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(0),u=n.n(l),c=n(1392),d=n(57),p=n.n(d),h=n(2842),f=n.n(h),v=n(2233),m=parseInt(p.a.jumpBarCharacterHeight,10);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(26)),h=n(23),f=n(2843),v=n.n(f),m=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u];return n=i=l()(this,e.call.apply(e,[this].concat(o))),i.onPress=function(e){
i.props.onPress(i.props.scrollIndex)},a=n,l()(i,a)}return c()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(p.a)(this,e,t)},t.prototype.render=function(){return a()(h.a,{className:v.a.character,onPress:this.onPress},void 0,this.props.title)},t}(d.Component);t.a=m},function(e,t,n){"use strict";function i(e){var t=0;return e.map(function(e,n){var i=s()({},e,{position:n,scrollIndex:t});return t+=e.size,i})}function a(){return n.i(l.createSelector)(function(e,t){return t.activeSort
},function(e){return e.ui.libraryPage.firstCharacters},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{firstCharacters:i(/titleSort:desc/i.test(e)?t.slice().reverse():t)}})}var r=n(6),s=n.n(r),o=n(11),l=n(5),u=(n.n(l),n(2232));t.a=n.i(o.b)(a)(u.a)},function(e,t,n){"use strict";function i(){return n.i(l.createSelector)(function(e){return e.ui.libraryPage},n.i(u.a)(),n.i(c.a)(),n.i(d.a)(),function(e,t,n){
var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.details;return{libraryKey:n,librarySectionID:a&&a.librarySectionID,providerIdentifier:t.identifier,selectedType:i}})}function a(e,t){return{onLibraryChange:function(i,a){e(n.i(p.changeQuickSearchSettings)({serverEntityID:t.serverEntityID,providerIdentifier:i,sectionID:a}))},dispatchInitLibraryPageMetadataList:function(t){e(h.initLibraryPageMetadataList(t))},dispatchPopulateLibraryFirstCharacters:function(){
e(h.populateLibraryFirstCharacters())}}}function r(e){var t=e.ui.libraryPage;return{serverEntityID:t.serverEntityID,libraryKey:t.libraryKey}}function s(e,t){e(h.initLibraryPage({serverEntityID:t.serverEntityID,libraryKey:t.libraryKey})),e(h.populateLibraryDetails())}var o=n(11),l=n(5),u=(n.n(l),n(136)),c=n(178),d=n(359),p=n(156),h=n(242),f=n(184),v=n(2228),m=n.i(f.a)(v.a,r,s),g=n.i(o.b)(i,a)(m);t.a=g},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,i=e.providerEntityID,a=e.providerIdentifier,s=e.error,l=e.typeKey,y=e.activeFilters,b=e.activeSort,S=e.listType,I=e.isLibraryRefreshing,M=p.a[S];return s?r()(m.a,{title:n.i(u.default)("There was an unexpected error loading this library")}):o.a.isEmpty(y)?c.a.EPG_IDENTIFIER.test(a)?r()(g.a,{serverEntityID:t,providerEntityID:i}):I?r()(v.a,{icon:M,title:n.i(u.default)("Libraries are currently being updated"),
description:n.i(u.default)("Hang tight while we look for your content")}):r()(v.a,{icon:M,title:n.i(u.default)("There are no items in this library")}):r()(v.a,{icon:M,title:n.i(u.default)("The active filter has no matches"),description:n.i(u.default)("Use the menu above to change the active filter")},void 0,r()(f.a,{to:n.i(h.a)({typeKey:l,sort:b}),kind:d.b.PRIMARY},void 0,n.i(u.default)("Clear filter")))}var a=n(2),r=n.n(a),s=n(3),o=n.n(s),l=n(0),u=(n.n(l),n(4)),c=n(72),d=n(20),p=(n(114),
n(835)),h=n(212),f=n(23),v=n(170),m=n(251),g=n(950);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.typeKey,i=e.activeFilters,a=e.activeFilterLabel,s=e.activeSort,h=e.filter,f=e.title,v=i.filter(function(e){return e.key===h}),m=n.i(l.a)(v,"1");return r()(p.a,{to:n.i(d.a)({typeKey:t,filters:m?n.i(c.a)(i,h):n.i(u.a)(i,h,{value:"1",type:o.a}),filterLabel:a,sort:s}),isSelected:m},void 0,f)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(205)),l=(n(114),n(813)),u=n(811),c=n(815),d=n(212),p=n(93)
;t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(3),p=n.n(d),h=n(0),f=(n.n(h),n(4)),v=n(20),m=(n(114),n(26)),g=n(27),y=n(38),b=n(144),S=n(2844),I=n.n(S),M=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u];return n=i=l()(this,e.call.apply(e,[this].concat(o))),i.onPress=function(e){i.props.onFilterSelect(i.props.filterKey)},a=n,l()(i,a)}return c()(t,e),
t.prototype.shouldComponentUpdate=function(e,t){return n.i(m.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.activeFilters,i=e.filter,r=e.title,s=e.showSpinner,o=!s&&!!p.a.find(t,function(e){return e.key===i});return a()(b.a,{className:o?I.a.isSelected:void 0,onPress:this.onPress},void 0,a()("div",{className:I.a.menuItemContainer},void 0,a()("div",{className:I.a.menuLabel},void 0,r),s&&a()(y.a,{className:I.a.spinner,size:v.d.SMALL}),!s&&o&&a()("div",{className:I.a.selectedIcon
},void 0,a()(g.a,{name:"plex-icon-selected-560","aria-label":n.i(f.default)("Selected")}))))},t}(h.Component);t.a=M},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.style,a=e.typeKey,s=e.activeFilters,v=e.activeSort,y=e.selectedFilter,I=e.filterOptions,M=e.filterOptionQuery,C=e.showError,w=e.showSearchInput,D=e.onFilterDeselect,P=e.onSearch,T=y.filter;return r()("div",{className:t,style:i},void 0,r()("div",{className:b.a.header},void 0,r()("div",{className:b.a.headerTitle
},void 0,r()(f.a,{onPress:D},void 0,r()(h.a,{className:b.a.backIcon,name:"plex-icon-hub-prev-560","aria-label":n.i(o.default)("Back")})),r()("span",{className:b.a.filterText},void 0,y.title)),w&&r()(g.a,{className:b.a.searchInput,name:"filterOptionQuery",placeholder:n.i(o.default)("Filter {filterTitle}",{filterTitle:y.title}),value:M,onChange:P})),S,r()(p.a,{className:w?b.a.filterOptionsWithSearchScroller:b.a.filterOptionsScroller,autoScroll:!0},void 0,C&&r()("div",{className:b.a.emptyText
},void 0,n.i(o.default)("Unable to load options")),!C&&!I.length&&r()("div",{className:b.a.emptyText},void 0,n.i(o.default)("No options")),I.map(function(e){var t=e.key,i=e.title,o=e.isSelected,p=decodeURIComponent(t);return r()(m.a,{className:b.a.filterOptionMenuItem,to:n.i(d.a)({typeKey:a,filters:o?n.i(c.a)(s,T,p):n.i(u.a)(s,T,{value:p,type:l.b}),filterLabel:o?void 0:i,sort:v}),isSelected:o},p,i)})))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(205),u=(n(114),
n(811)),c=n(815),d=n(212),p=n(67),h=n(27),f=n(23),v=n(446),m=n(93),g=n(167),y=n(2845),b=n.n(y),S=r()(v.a,{});t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.typeKey,a=e.activeFilters,s=e.activeFilterLabel,l=e.activeSort,f=e.filters,g=e.selectedFilter,I=e.showSpinner,M=e.showCustomFilter,C=e.onFilterSelect,w=o.a.groupBy(f,function(e){var t=e.filterType;return t===c.a?t:c.b}),D=w[c.a],P=w[c.b];return r()(p.a,{className:(t||"")+" "+(y.a.filtersScroller||""),autoScroll:!0
},void 0,r()(h.a,{to:n.i(d.a)({typeKey:i,sort:l}),isSelected:o.a.isEmpty(a)},"all",n.i(u.default)("All")),!!D&&D.map(function(e){return r()(v.a,{typeKey:i,activeFilters:a,activeFilterLabel:s,activeSort:l,filter:e.filter,title:e.title},e.filter)}),!!P&&b,!!P&&P.map(function(e){var t=!(!g||g.filter!==e.filter);return r()(m.a,{typeKey:i,activeFilters:a,activeSort:l,filter:e.filter,filterKey:e.key,title:e.title,showSpinner:I&&t,onFilterSelect:C},e.filter)}),M&&S,M&&r()(h.a,{to:n.i(d.a)({typeKey:i,
customFilter:!0})},"customFilter",n.i(u.default)("Custom Filter...")))}var a=n(2),r=n.n(a),s=n(3),o=n.n(s),l=n(0),u=(n.n(l),n(4)),c=n(205),d=(n(114),n(212)),p=n(67),h=n(93),f=n(446),v=n(2237),m=n(2238),g=n(2846),y=n.n(g),b=r()(f.a,{}),S=r()(f.a,{});t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(421)),h=n(20),f=(n(114),n(73)),v=n(68),m=n(2240),g=n(2239),y=n(2847),b=n.n(y),S={scrollDirection:h.a.NONE},I=function(e){
function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onFiltersListMeasure=function(e){var t=e.height;a.setState({isMeasured:!0,filterOptionsHeight:Math.max(t,a.props.minHeight)})},a.state={isMeasured:!1,filterOptionsHeight:"auto"},a}return c()(t,e),t.prototype.render=function(){
var e=this.props,t=e.target,i=e.isOpen,r=e.typeKey,s=e.activeFilters,o=e.activeFilterLabel,l=e.activeSort,u=e.filters,c=e.selectedFilter,d=e.filterOptions,y=e.filterOptionQuery,I=e.showSpinner,M=e.showError,C=e.showSearchInput,w=e.showCustomFilter,D=e.onFilterSelect,P=e.onFilterDeselect,T=e.onSearch,x=e.onMenuClose,E=this.state,N=E.isMeasured,L=E.filterOptionsHeight,A=!!c&&!I&&N;return a()(v.a,{target:t,isOpen:i,size:h.d.LARGE,scrollerProps:S,onMenuClose:n.i(p.a)(P,x)},void 0,a()(f.a,{
className:(b.a.panesContainer||"")+" "+(A&&b.a.showFilterOptions||""),ignoreWidth:!0,ignorePosition:!0,ignoreTransforms:!0,onMeasure:this.onFiltersListMeasure},void 0,a()(m.a,{className:b.a.filtersPane,typeKey:r,activeFilters:s,activeFilterLabel:o,activeSort:l,filters:u,selectedFilter:c,showSpinner:I,showCustomFilter:w,onFilterSelect:D}),A&&a()(g.a,{className:b.a.filterOptionsPane,style:{height:L},typeKey:r,activeFilters:s,activeSort:l,selectedFilter:c,filterOptions:d,filterOptionQuery:y,
showError:M,showSearchInput:C,onFilterDeselect:P,onSearch:T})))},t}(d.Component);I.defaultProps={minHeight:385},t.a=I},function(e,t,n){"use strict";function i(){return n.i(g.createSelector)(function(e,t){return t.activeFilters},function(e,t){return t.selectedType},function(e){return e.ui.libraryPage},n.i(y.a)(),function(e,t,n,i){
var a=n.selectedFilterKey,r=n.filterOptionQuery,s=n.selectedFilterOptions,o=void 0===s?[]:s,l=n.isSelectedFilterOptionsPopulated,u=n.selectedFilterOptionsError,c=t&&t.filters;return{filters:c,selectedFilter:a&&h.a.findWhere(c,{key:a}),filterOptions:i,filterOptionQuery:r,showSpinner:!l&&!u,showError:!!u,showSearchInput:o.length>12}})}var a=n(6),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(3),h=n.n(p),f=n(0),v=n.n(f),m=n(11),g=n(5),y=(n.n(g),
n(1792)),b=n(242),S=n(2241),I=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),l=0;l<r;l++)s[l]=arguments[l];return n=i=u()(this,e.call.apply(e,[this].concat(s))),i.onFilterSelect=function(e){i.props.selectLibraryFilter({serverEntityID:i.props.serverEntityID,key:e}),i.props.fetchLibraryFilterOptions()},i.onFilterDeselect=function(){i.props.deselectLibraryFilter()},i.onSearch=function(e){i.props.searchLibraryFilterOptions(e)},a=n,u()(i,a)}return d()(t,e),
t.prototype.render=function(){return v.a.createElement(S.a,r()({onFilterSelect:this.onFilterSelect,onFilterDeselect:this.onFilterDeselect,onSearch:this.onSearch},this.props))},t}(f.Component);t.a=n.i(m.b)(i,b)(I)},function(e,t,n){"use strict";function i(e){
var t=e.typeKey,i=e.activeFilters,a=e.activeFilterLabel,s=e.activeSort,l=e.activeLimit,d=e.sorts,v=e.selectedSort,y=e.customFilter,b=o()(e,["typeKey","activeFilters","activeFilterLabel","activeSort","activeLimit","sorts","selectedSort","customFilter"]);return u.a.createElement(h.a,b,d.map(function(e){var o=e.key,u=e.descKey,d=e.defaultDirection,h=e.title,b=v.key===o,S=d;b&&(S=s?s===u?m:g:d===m?g:m);var I=S===g;return r()(f.a,{to:n.i(p.a)({typeKey:t,filters:i,filterLabel:a,sort:I?u:o,
limit:y?l:null,customFilter:y}),isSelected:b,selectedIconName:I?"plex-icon-sort-ascending-560":"plex-icon-sort-descending-560",selectedIconAriaLabel:I?n.i(c.default)("Ascending"):n.i(c.default)("Descending")},o,h)}))}var a=n(2),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(4),d=(n(114),n(269)),p=n(212),h=n(68),f=n(93),v=d.a.directions,m=v.ASCENDING,g=v.DESCENDING;t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,a=e.listKey,s=e.listTitle,l=e.listType,g=e.activeSelectionType;return o()(p.a,{metricsPage:c.Q,allowBackgroundLightPreset:!0,scrollDirection:d.a.NONE},void 0,g?o()(f.a,{serverEntityID:t,providerEntityID:n}):o()(v.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:i,listTitle:s,listType:l}),u.a.createElement(h.a,r()({component:m.a,initialSize:50,shouldResetOnUnmount:!0,containerKey:a,containerTitle:s,listType:l},e)))}
var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(0),u=n.n(l),c=n(34),d=n(20),p=n(187),h=n(158),f=n(308),v=n(2247),m=n(993);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.ui.metadataListPage;return{serverEntityID:t.serverEntityID,listKey:t.listKey}}function a(e,t){e(n.i(l.a)({serverEntityID:t.serverEntityID,listKey:t.listKey,listTitle:t.listTitle}))}var r=n(11),s=n(5),o=(n.n(s),n(83)),l=n(1780),u=n(184),c=n(2244),d=n.i(s.createSelector)(function(e){return e.ui.metadataListPage
},o.a,function(e,t){return{metadataListEntityID:e.metadataList,activeSelectionType:t.activeSelectionType}}),p=n.i(u.a)(c.a,i,a),h=n.i(r.b)(d)(p);t.a=h},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(50),f=(n(106),n(105),n(637)),v=n(216),m=n(168),g=n(169),y=n(189),b=n(188),S=n(375),I=n(643),M=n(456),C=n(2849),w=n.n(C),D=a()(v.a,{}),P=function(e){function t(i,a){s()(this,t);var r=l()(this,e.call(this,i,a))
;return r.onDirectoriesMenuButtonPress=function(e){r.setState({isDirectoriesMenuOpen:!r.state.isDirectoriesMenuOpen})},r.onDirectoriesMenuClose=function(){r.setState({isDirectoriesMenuOpen:!1})},r.state={isDirectoriesMenuOpen:!1},r._directoriesMenuButtonID=n.i(h.a)(),r}return c()(t,e),t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,i=e.providerEntityID,r=e.metadataListEntityID,s=e.listTitle,o=e.listType,l=e.totalSize,u=e.server,c=e.provider,d=e.directories,h=e.selectedDirectory,v=e.isLibraryList,C=this.state.isDirectoriesMenuOpen;return a()(m.a,{},void 0,a()(g.a,{},void 0,a()(b.a,{id:this._directoriesMenuButtonID,title:h.isHomeDirectory?n.i(p.default)("All Libraries"):h.title,hasMenu:d.length>1,isMenuOpen:C,isSelected:!0,onPress:this.onDirectoriesMenuButtonPress}),a()(M.a,{
target:this._directoriesMenuButtonID,isOpen:C,machineIdentifier:u.machineIdentifier,providerIdentifier:c.identifier,isLibraryProvider:c.isLibraryProvider,directories:d,selectedDirectory:h,onMenuClose:this.onDirectoriesMenuClose}),a()(b.a,{title:s,hasMenu:!1,isSelected:!0}),a()(S.a,{},void 0,l)),a()(y.a,{},void 0,a()(f.a,{serverEntityID:t,providerEntityID:i,metadataListEntityID:r,listType:o,isLibraryList:v}),a()(I.a,{className:w.a.divider}),D))},t}(d.Component);t.a=P},function(e,t,n){"use strict"
;function i(){return n.i(o.createSelector)(c.a,d.a,n.i(u.a)(),n.i(p.a)(),function(e,t,i,a){return{server:e,provider:t,directories:a,selectedDirectory:r.a.find(a,function(e){if(!e.key)return!1;var t=new RegExp("^"+n.i(l.a)(e.key)+"\\b");return i.containerKey.match(t)})||r.a.first(a),totalSize:i.totalSize}})}var a=n(3),r=n.n(a),s=n(11),o=n(5),l=(n.n(o),n(207)),u=n(149),c=n(45),d=n(43),p=n(340),h=n(2246);t.a=n.i(s.b)(i)(h.a)},function(e,t,n){"use strict";function i(e){
var t=e.hasOwnedPersonalCloudServer,i=e.isUnauthorized,a=e.oauthProviders,s=e.isOauthProvidersPending,l=e.isOauthProvidersPopulated,p=e.oauthProvidersError,g=e.lastLinkedProviderUrl;return i?o()(v.a,{title:n.i(c.default)("You're not supposed to be here"),description:n.i(c.default)("You don't have access to Plex Cloud settings")}):o()(h.a,{metricsPage:d.m,metricsPane:"plexCloud"},void 0,o()(f.a,{},void 0,n.i(c.default)("Plex Cloud")),t&&y,s&&!l&&b,l&&a.map(function(e){
return u.a.createElement(m.a,r()({key:e.url,unlinkConfirmMessage:g===e.url?n.i(c.default)("If you unlink {personalCloudServerProvider}, all of your Plex Cloud libraries, shares, and metadata will be deleted! However, your media files will not be affected. This cannot be undone.",{personalCloudServerProvider:e.label}):n.i(c.default)("Plex Cloud will no longer be able to access media stored on this provider and it will be removed from your library."),
unlinkAccordMessage:g===e.url?n.i(c.default)("Yes, unlink {personalCloudServerProvider}",{personalCloudServerProvider:e.label}):null,returnUrl:t?"#!/account/plex-cloud":"#!/cpms"},e))}),p&&n.i(c.default)("An error occurred retrieving cloud storage providers. Please try again."))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(0),u=n.n(l),c=n(4),d=n(34),p=n(1016),h=n(460),f=n(461),v=n(160),m=n(2383),g=n(2251),y=o()(g.a,{}),b=o()(p.a,{});t.a=i},function(e,t,n){"use strict"
;var i=n(7),a=n.n(i),r=n(9),s=n.n(r),o=n(8),l=n.n(o),u=n(6),c=n.n(u),d=n(0),p=n.n(d),h=n(11),f=n(5),v=(n.n(f),n(536)),m=n(537),g=n(911),y=n(289),b=n(2248),S=n.i(f.createSelector)(v.a,g.a,m.a,function(e,t,n){var i=t.isOauthProvidersPopulated,a=t.oauthProviders,r=i&&a.filter(function(e){return e.linked}),s=r&&1===r.length&&r[0];return c()({},t,{lastLinkedProviderUrl:s?s.url:null,hasOwnedPersonalCloudServer:!!e,isUnauthorized:!n.cpms})}),I={dispatchFetchOauthProviders:y.a},M=function(e){
function t(){return a()(this,t),s()(this,e.apply(this,arguments))}return l()(t,e),t.prototype.componentDidMount=function(){this.props.dispatchFetchOauthProviders()},t.prototype.render=function(){return p.a.createElement(b.a,this.props)},t}(d.Component);t.a=n.i(h.b)(S,I)(M)},function(e,t,n){"use strict";function i(e){var t=e.isError,i=e.isPending,a=e.isRunning,s=e.isRestarting,l=e.onRestartPress,c=void 0
;return c=a?n.i(o.default)("Active"):t?n.i(o.default)("Error checking server status"):n.i(o.default)("Sleeping"),r()(h.a,{},void 0,r()(f.a,{},void 0,s?m:r()(d.a,{kind:u.PRIMARY,onPress:l},void 0,n.i(o.default)("Restart Plex Cloud"))),r()(v.a,{},void 0,r()(p.a,{},void 0,n.i(o.default)("Plex Cloud Server")),i?g:c))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(91),u=n(74),c=n(38),d=n(23),p=n(126),h=n(377),f=n(656),v=n(657),m=r()(c.a,{size:l.SMALL}),g=r()(c.a,{size:l.SMALL});t.a=i
},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(14),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(11),m=n(5),g=(n.n(m),n(35)),y=n(402),b=n(291),S=n(100),I=n(2250),M=n.i(m.createSelector)(y.a,function(e){if(!e)return{};var t=e.desktop,n=t.personalCloudServerStatus;return{isError:!!t.personalCloudServerStatusError,isPending:t.isPersonalCloudServerStatusPending,isRunning:!(!n||!n.running),isRestarting:t.isPersonalCloudServerRestarting}}),C={
dispatchFetchPersonalCloudServerStatus:b.e,dispatchRestartPersonalCloudServer:S.f},w=function(e){function t(){var i,a,r;l()(this,t);for(var s=arguments.length,o=Array(s),u=0;u<s;u++)o[u]=arguments[u];return i=a=c()(this,e.call.apply(e,[this].concat(o))),a.onRestartPress=function(e){n.i(g.a)(function(){a.props.dispatchRestartPersonalCloudServer()})},r=i,c()(a,r)}return p()(t,e),t.prototype.componentDidMount=function(){var e=this;n.i(g.a)(function(){e.props.dispatchFetchPersonalCloudServerStatus()
})},t.prototype.render=function(){var e=this.props,t=(e.dispatchFetchPersonalCloudServerStatus,e.dispatchRestartPersonalCloudServer,s()(e,["dispatchFetchPersonalCloudServerStatus","dispatchRestartPersonalCloudServer"]));return f.a.createElement(I.a,a()({},t,{onRestartPress:this.onRestartPress}))},t}(h.Component);t.a=n.i(v.b)(M,C)(w)},function(e,t,n){"use strict";function i(e,t){return n.i(o.createSelector)(function(e){return e.ui.playlistPage},l.a,u.a,function(e,t,n){
var i=e.playlist,a=e.isPlaylistPending,r=e.playlistError;return{metadataItemEntityID:i,showSpinner:a,showError:!a&&!!r,columnAdjustment:t.columnAdjustment,activeSelectionType:n.activeSelectionType,multiSelectToolbarComponent:p.a}})}function a(e){var t=e.ui.playlistPage;return{serverEntityID:t.serverEntityID,metadataKey:t.metadataKey}}function r(e,t){e(c.g({serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataKey:t.metadataKey})),e(c.h())}var s=n(11),o=n(5),l=(n.n(o),
n(111)),u=n(83),c=n(357),d=n(184),p=n(2320),h=n(994),f=n.i(d.a)(h.a,a,r),v=n.i(s.b)(i)(f);t.a=v},function(e,t,n){"use strict";function i(e){var t=e.sorts,i=o()(e,["sorts"]);return u.a.createElement(p.a,i,t.map(function(e){var t=e.key,i=e.title,a=e.isSelected,s=e.linkDirection,o=e.route,l=s===f;return r()(h.a,{to:o,isSelected:a,selectedIconName:l?"plex-icon-sort-ascending-560":"plex-icon-sort-descending-560",selectedIconAriaLabel:l?n.i(c.default)("Ascending"):n.i(c.default)("Descending")},t,i)}))
}var a=n(2),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(4),d=n(269),p=n(68),h=n(93),f=d.a.directions.DESCENDING;t.a=i},function(e,t,n){"use strict";function i(e){var t=e.activeType,n=e.types,i=o()(e,["activeType","types"]);return u.a.createElement(c.a,i,n.map(function(e){var n=e.type,i=e.title,a=e.route;return r()(d.a,{to:a,isSelected:t===n||!t&&!n},n||"all",i)}))}var a=n(2),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(68),d=n(93);t.a=i},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(66)),h=n(34),f=n(20),v=n(187),m=n(158),g=n(308),y=n(2257),b=n(2259),S=function(e){function t(){return s()(this,t),l()(this,e.apply(this,arguments))}return c()(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.librarySectionID,n=e.providerIdentifier,i=e.onLibraryChange;t&&i(n,t)},t.prototype.componentDidUpdate=function(e){
var t=this.props,n=t.librarySectionID,i=t.providerIdentifier,a=t.onLibraryChange;n&&n!==e.librarySectionID&&a(i,n)},t.prototype.componentWillUnmount=function(){this.props.onLibraryChange(null,null)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataListEntityID,r=e.providerMetricsIdentifier,s=e.selectedDirectory,o=e.selectedSort,l=e.activeType,u=e.activeSelectionType;return a()(v.a,{metricsPage:h.z,metricsProperties:{provider:r,type:l},
allowBackgroundLightPreset:!0,scrollDirection:f.a.NONE},void 0,u?a()(g.a,{serverEntityID:t,providerEntityID:n}):a()(b.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:i,selectedDirectory:s,selectedSort:o,activeType:l}),a()(m.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:i,initialSize:50,isPhotoAlbums:s.type===p.c,component:y.a}))},t}(d.Component);t.a=S},function(e,t,n){"use strict";function i(){return n.i(d.createSelector)(function(e){return e.ui.playlistsPage.sorts
},function(e,t){return t.activeSort},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t.split(":"),i=n[0],a=n[1],r=u.a.findWhere(e,{isDefault:!0})||e[0],s=u.a.findWhere(e,{key:i})||r;return s&&a&&(s.direction=a),s})}function a(){return n.i(d.createSelector)(function(e){return e.ui.playlistsPage},p.a,n.i(h.a)(),n.i(f.a)(),i(),v.a,function(e,t,n,i,a,r){var s=e.playlists,o=e.libraryDetails;return{
providerIdentifier:t.identifier,providerMetricsIdentifier:t.metricsIdentifier,metadataListEntityID:s,libraryKey:"/playlists"===n?null:n,librarySectionID:o&&o.librarySectionID,containerKey:i,selectedSort:a,activeSelectionType:r.activeSelectionType}})}function r(e,t){return{onLibraryChange:function(i,a){e(n.i(m.changeQuickSearchSettings)({serverEntityID:t.serverEntityID,providerIdentifier:i,sectionID:a}))}}}function s(e){var t=e.ui.playlistsPage;return{serverEntityID:t.serverEntityID,
libraryKey:t.libraryKey,containerKey:t.containerKey}}function o(e,t){e(g.a({serverEntityID:t.serverEntityID,libraryKey:t.libraryKey,containerKey:t.containerKey})),e(g.b()),t.libraryKey&&e(g.c())}var l=n(3),u=n.n(l),c=n(11),d=n(5),p=(n.n(d),n(43)),h=n(178),f=n(1376),v=n(83),m=n(156),g=n(898),y=n(184),b=n(2255),S=n.i(y.a)(b.a,s,o),I=n.i(c.b)(a,r)(S);t.a=I},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,i=e.providerEntityID,a=e.metadataListEntityID,s=e.metadataItemEntityIDs,v=e.containerKey,g=e.columnAdjustment,y=e.totalSize,b=e.populatedRange,S=e.isPopulated,I=e.isPending,M=e.error,C=e.isPhotoAlbums,w=e.onPageRequest;return S&&y?r()(f.a,{className:m.a.pageContent,scrollerClassName:m.a.pageContentScroller,serverEntityID:t,providerEntityID:i,metadataListEntityID:a,items:s,containerKey:v,listType:l.h,listContext:u.e,columnAdjustment:g,keyPropName:"metadataItemEntityID",
itemsOffset:b.start,size:y,onPageRequest:w}):I?r()(h.a,{},void 0,r()(d.a,{},void 0,r()(c.a,{label:C?n.i(o.default)("Loading albums"):n.i(o.default)("Loading playlists")}))):M?r()(h.a,{},void 0,r()(p.a,{title:C?n.i(o.default)("There was an unexpected error loading these albums"):n.i(o.default)("There was an unexpected error loading these playlists")})):r()(h.a,{},void 0,r()(d.a,{title:n.i(o.default)("Nothing to see here"),
description:C?n.i(o.default)("There are no photo albums in this library"):n.i(o.default)("There are no playlists of this type")}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(286),u=n(32),c=(n(351),n(38)),d=n(170),p=n(251),h=n(218),f=n(963),v=n(2851),m=n.n(v);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(3),p=n.n(d),h=n(0),f=(n.n(h),
n(4)),v=n(50),m=n(216),g=n(168),y=n(169),b=n(189),S=n(375),I=n(188),M=n(457),C=n(2254),w=n(2253),D=a()(b.a,{},void 0,a()(m.a,{})),P=function(e){function t(i,a){s()(this,t);var r=l()(this,e.call(this,i,a));return r.onTypesMenuButtonPress=function(e){r.setState({isTypesMenuOpen:!r.state.isTypesMenuOpen})},r.onTypesMenuClose=function(){r.setState({isTypesMenuOpen:!1})},r.onSortsMenuButtonPress=function(e){r.setState({isSortsMenuOpen:!r.state.isSortsMenuOpen})},r.onSortsMenuClose=function(){
r.setState({isSortsMenuOpen:!1})},r.state={isTypesMenuOpen:!1,isSortsMenuOpen:!1},r._typesMenuButtonID=n.i(v.a)(),r._sortsMenuButtonID=n.i(v.a)(),r}return c()(t,e),t.prototype.render=function(){
var e=this.props,t=e.totalSize,i=e.libraryRoute,r=e.playlistTypes,s=e.metadataTypes,o=e.metadataPseudoTypes,l=e.activeType,u=e.playlistSorts,c=e.selectedSort,d=e.isPhotoAlbums,h=this.state,v=h.isTypesMenuOpen,m=h.isSortsMenuOpen,b=d?n.i(f.default)("Albums"):n.i(f.default)("Playlists"),P=p.a.find(r,function(e){return e.type===l}),T=i?b:P.title;return a()(g.a,{},void 0,a()(y.a,{},void 0,a()(I.a,{id:this._typesMenuButtonID,title:T,hasMenu:!0,isMenuOpen:v,onPress:this.onTypesMenuButtonPress
}),i?a()(M.a,{target:this._typesMenuButtonID,isOpen:v,libraryRoute:i,types:s,pseudoTypes:o,selectedType:{key:"playlists"},activeFilters:[],onMenuClose:this.onTypesMenuClose}):a()(C.a,{target:this._typesMenuButtonID,isOpen:v,activeType:l,types:r,onMenuClose:this.onTypesMenuClose}),!i&&a()(I.a,{title:b}),c&&a()(I.a,{id:this._sortsMenuButtonID,title:c.title,hasMenu:!0,isMenuOpen:m,onPress:this.onSortsMenuButtonPress}),c&&a()(w.a,{target:this._sortsMenuButtonID,isOpen:m,sorts:u,
onMenuClose:this.onSortsMenuClose}),a()(S.a,{},void 0,t)),D)},t}(h.Component);t.a=P},function(e,t,n){"use strict";function i(e,t){var i={};return t&&(i.type=t),e.activeSort&&(i.sort=e.activeSort.descKey),i.save=1,{type:t,title:a(t),route:n.i(y.a)(e.server,e.provider,e.libraryKey,i)}}function a(e){switch(e){case p.a:return n.i(d.default)("Video");case p.d:return n.i(d.default)("Music");case p.c:return n.i(d.default)("Photo");default:return n.i(d.default)("All")}}function r(){
return n.i(c.createSelector)(function(e,t){return t.selectedDirectory},function(e,t){return t.selectedSort},function(e,t){return t.activeType},function(e){return e.ui.playlistsPage.libraryDetails},function(e){return e.ui.playlistsPage.sorts},n.i(f.a)(),n.i(v.a)(),n.i(m.a)(),n.i(g.a)(),function(e,t,a,r){
var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments[5],l=arguments[6],u=arguments[7],c=arguments[8],d=o.ownerFeatures&&o.ownerFeatures.indexOf("photos-v5")!==-1,h=s.map(function(e){var i=e.key,r=e.defaultDirection,s=e.title,u=t.key===i,d=t.direction||r,p=d===C?w:C,h=u?p:d;return{key:i,title:s,isSelected:u,linkDirection:h,route:n.i(y.a)(o,l,c,{type:a,sort:i+":"+h,save:1})}}),f={totalSize:u.totalSize,playlistSorts:h};if("/playlists"===c){var v={server:o,provider:l,
libraryKey:c,selectedSort:t},m=i(v),g=i(v,p.d),I=i(v,p.c),M=i(v,p.a);f.playlistTypes=d?[m,g,M]:[m,g,I,M]}else f.libraryRoute=n.i(b.a)(o,l,c,{save:1}),f.isPhotoAlbums=d&&e.type===p.c,f.metadataTypes=r?r.types:[],f.metadataPseudoTypes=n.i(S.a)({type:e.type,server:o,provider:l,libraryKey:c,libraryDirectories:r&&r.directories});return f})}var s=n(6),o=n.n(s),l=n(0),u=(n.n(l),n(11)),c=n(5),d=(n.n(c),
n(4)),p=n(66),h=n(269),f=n(46),v=n(136),m=n(149),g=n(178),y=n(666),b=n(96),S=n(468),I=n(2258),M=h.a.directions,C=M.ASCENDING,w=M.DESCENDING,D=n.i(u.b)(r)(I.a);D.propTypes=o()({},D.propTypes,{selectedDirectory:l.PropTypes.shape({type:l.PropTypes.string.isRequired}).isRequired,selectedSort:l.PropTypes.shape({key:l.PropTypes.string.isRequired,direction:l.PropTypes.string.isRequired}),activeType:l.PropTypes.string}),t.a=D},function(e,t,n){"use strict";function i(e,t){
return e?(y.a.EPG_IDENTIFIER.test(t)?_:k)[e]||L.a:A.a}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(7),d=n.n(c),p=n(9),h=n.n(p),f=n(8),v=n.n(f),m=n(0),g=n.n(m),y=n(72),b=n(1521),S=n(2317),I=n(2316),M=n(2335),C=n(2334),w=n(2333),D=n(2313),P=n(2312),T=n(2278),x=n(2277),E=n(2318),N=n(2332),L=n(2276),A=n(2275),k={movie:S.a,show:M.a,season:w.a,episode:D.a,artist:T.a,album:x.a,photoalbum:E.a,clip:S.a,playlist:N.a},_={movie:I.a,show:C.a,episode:P.a},O=function(e){function t(){
return d()(this,t),h()(this,e.apply(this,arguments))}return v()(t,e),t.prototype.componentDidMount=function(){this.props.onLibraryChange(this.props.providerIdentifier,this.props.librarySectionID),this.props.onBackgroundChange(this.props.backgroundImageUrl),this.props.onThemeMusicChange(this.props.theme),this.props.isRemotePlayer&&this.props.onMirrorDetails()},t.prototype.componentDidUpdate=function(e){
var t=this.props,n=t.librarySectionID,i=t.providerIdentifier,a=t.backgroundImageUrl,r=t.theme,s=t.isRemotePlayer,o=t.onLibraryChange,l=t.onBackgroundChange,u=t.onThemeMusicChange,c=t.onMirrorDetails;n!==e.librarySectionID&&o(i,n),e.backgroundImageUrl!==a&&l(a),e.theme!==r&&u(r),!e.isRemotePlayer&&s&&c()},t.prototype.componentWillUnmount=function(){this.props.onLibraryChange(null,null)},t.prototype.render=function(){
var e=this.props,t=e.providerIdentifier,n=e.providerMetricsIdentifier,a=e.type,s=e.art,l=e.listStyle,c=(e.onBackgroundChange,u()(e,["providerIdentifier","providerMetricsIdentifier","type","art","listStyle","onBackgroundChange"])),d=i(a,t);return o()(b.a,{provider:n,type:a,style:l,showArtwork:!!s},void 0,g.a.createElement(d,r()({type:a,art:s,listStyle:l},c)))},t}(m.Component);t.a=O},function(e,t,n){"use strict";function i(){return n.i(u.createSelector)(n.i(p.a)(),function(e){
return!(!e||!e.isPopulated)})}function a(){return n.i(u.createSelector)(f.a,n.i(c.a)(),n.i(d.a)(),v.a,m.a,g.a,n.i(y.a)(),i(),function(e){return!!e.remotePlayer},function(e,t,i,a,r,s,o,l,u){var c=t.thumb||t.parentThumb||t.grandparentThumb,d=t.grandparentArt||t.parentArt||t.art,p=t.grandparentTheme||t.parentTheme||t.theme,f=a?d||c:c||d,v=n.i(C.a)(s,h.a,o,e);return{librarySectionID:t.librarySectionID,providerIdentifier:e.identifier,providerMetricsIdentifier:e.metricsIdentifier,metadataKey:t.key,
descendantKey:i,title:t.title,type:t.type,year:t.year,summary:t.summary,thumb:t.thumb,parentThumb:t.parentThumb,grandparentThumb:t.grandparentThumb,composite:t.composite,art:a?d:void 0,theme:r?p:void 0,backgroundImageUrl:f,playlistType:t.playlistType,isListReady:l,onDeckMetadataItemEntityID:t.onDeck,extrasMetadataListEntityID:t.extras,popularLeavesMetadataListEntityID:t.popularLeaves,listType:o,listStyle:v,isRemotePlayer:u}})}function r(e,t){return{onLibraryChange:function(i,a){
e(n.i(b.changeQuickSearchSettings)({serverEntityID:t.serverEntityID,providerIdentifier:i,sectionID:a}))},onBackgroundChange:function(i){e(n.i(I.a)({serverEntityID:t.serverEntityID,imageUrl:i}))},onThemeMusicChange:function(i){e(n.i(I.c)({serverEntityID:t.serverEntityID,theme:i}))},onMirrorDetails:function(){e(n.i(M.a)({metadataItemEntityID:t.metadataItemEntityID}))}}}function s(e){return{descendantKey:e.ui.prePlayPage.descendantKey}}function o(e,t){e(n.i(S.d)({serverEntityID:t.serverEntityID,
descendantKey:t.descendantKey}))}var l=n(11),u=n(5),c=(n.n(u),n(21)),d=n(1378),p=n(149),h=n(32),f=n(43),v=n(915),m=n(1798),g=n(594),y=n(917),b=n(156),S=n(290),I=n(141),M=n(185),C=n(663),w=n(184),D=n(2260),P=n.i(w.a)(D.a,s,o),T=n.i(l.b)(a,r)(P);t.a=T},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(57)),h=n.n(p),f=n(1057),v=n(26),m=n(73),g=n(218),y=n(2261),b=n(2852),S=n.n(b),I=parseInt(h.a.pagePadding,10),M=function(e){
function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onScrollPositionChange=function(e){var t=e.scrollTop;a.setState({scrollTop:t})},a.onContentMeasure=function(e){var t=e.width,n=e.height,i=e.y;(t||n)&&a.setState({isMeasured:!0,pageWidth:t,pageHeight:n,pageY:i})},a.state={scrollTop:0,isMeasured:!1,pageWidth:0,pageHeight:0,pageY:0},a}return c()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(v.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,i=e.providerEntityID,r=e.metadataItemEntityID,s=e.metadataListEntityID,o=e.columnAdjustment,l=e.record,u=this.state,c=u.scrollTop,d=u.isMeasured,p=u.pageWidth,h=u.pageHeight,v=u.pageY;return a()(m.a,{className:S.a.prePlayPageContentContainer,onMeasure:this.onContentMeasure},void 0,a()(g.a,{className:S.a.prePlayPageContent,scrollTop:c,onScrollPositionChange:this.onScrollPositionChange},void 0,d&&a()(y.a,{serverEntityID:t,providerEntityID:i,
metadataItemEntityID:r,metadataListEntityID:s,pageWidth:p,pageHeight:h,posterWidth:n.i(f.a)(p,o),posterTop:v+I,scrollTop:c,record:l})))},t}(d.Component);t.a=M},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(26),f=n(32),v=n(50),m=(n(106),n(105),n(20)),g=n(77),y=n(27),b=n(129),S=n(158),I=n(619),M=n(216),C=n(168),w=n(169),D=n(189),P=n(188),T=n(456),x=n(643),E=n(2268),N=n(2272),L=n(2266),A=n(2853),k=n.n(A),_=a()(y.a,{
name:"plex-icon-toolbar-artwork-560"}),O=function(e){function t(i,a){s()(this,t);var r=l()(this,e.call(this,i,a));return r.onDirectoriesMenuButtonPress=function(e){r.setState({isDirectoriesMenuOpen:!r.state.isDirectoriesMenuOpen})},r.onDirectoriesMenuClose=function(){r.setState({isDirectoriesMenuOpen:!1})},r.onSiblingsMenuButtonPress=function(e){r.setState({isSiblingsMenuOpen:!r.state.isSiblingsMenuOpen})},r.onSiblingsMenuClose=function(){r.setState({isSiblingsMenuOpen:!1})},
r.onToggleArtworkPress=function(e){r.props.onArtworkToggle(!r.props.isArtworkButtonSelected)},r.state={isDirectoriesMenuOpen:!1,isSiblingsMenuOpen:!1},r._directoriesMenuButtonID=n.i(v.a)(),r._siblingsMenuButtonID=n.i(v.a)(),r}return c()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(h.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,i=e.providerEntityID,r=e.metadataItemEntityID,s=e.siblingsMetadataListEntityID,o=e.server,l=e.provider,u=e.directories,c=e.selectedDirectory,d=e.metadataKey,h=e.grandparentTitle,v=e.parentTitle,y=e.title,A=e.grandparentRoute,O=e.parentRoute,j=e.showArtworkButton,R=e.isArtworkButtonSelected,U=e.listType,z=e.listStyle,B=e.allListStyles,F=this.state,V=F.isDirectoriesMenuOpen,Q=F.isSiblingsMenuOpen;if(!d)return null
;var H=!l.isLibraryProvider&&u.length>1,W=!!s,Y=U&&g.f(B,z);return a()(C.a,{className:W||j&&!Y?k.a.altPageHeader:k.a.pageHeader},void 0,a()(w.a,{},void 0,H&&a()(P.a,{id:this._directoriesMenuButtonID,title:c.title,hasMenu:!0,isMenuOpen:V,onPress:this.onDirectoriesMenuButtonPress}),H&&a()(T.a,{target:this._directoriesMenuButtonID,isOpen:V,machineIdentifier:o.machineIdentifier,providerIdentifier:l.identifier,isLibraryProvider:l.isLibraryProvider,directories:u,selectedDirectory:c,
onMenuClose:this.onDirectoriesMenuClose}),!!h&&a()(P.a,{title:h,to:A,hasMenu:!1,isDisabled:!A}),!!v&&a()(P.a,{title:v,to:O,hasMenu:!1,isDisabled:!O}),!!y&&a()(P.a,{id:this._siblingsMenuButtonID,title:y,hasMenu:W,isMenuOpen:Q,isDisabled:!W,onPress:this.onSiblingsMenuButtonPress}),W&&a()(S.a,{serverEntityID:t,providerEntityID:i,metadataListEntityID:s,component:E.a,initialSize:1/0,target:this._siblingsMenuButtonID,isOpen:Q,selectedKey:d,onMenuClose:this.onSiblingsMenuClose
})),a()(D.a,{},void 0,a()(N.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:r}),j&&a()(x.a,{className:k.a.divider}),j&&a()(b.a,{tooltip:R?n.i(p.default)("Hide Artwork"):n.i(p.default)("Show Artwork"),isSelected:R,hideOnPress:!1,tooltipAttachment:Y||W?m.e.BOTTOM_CENTER:m.e.BOTTOM_RIGHT,onPress:this.onToggleArtworkPress},void 0,_),Y&&a()(I.a,{selectedListStyle:z,allListStyles:B}),Y&&a()(M.a,{listType:U,listContext:f.a,selectedListStyle:z,allListStyles:B}),W&&a()(x.a,{
className:Y?k.a.listStylesArrowsDivider:k.a.divider}),W&&a()(L.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:r,metadataListEntityID:s})))},t}(d.Component);t.a=O},function(e,t,n){"use strict";function i(){return n.i(v.createSelector)(m.a,g.a,n.i(y.a)(),function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{to:n.i(S.a)(e,t,i.key),isDisabled:!i.key}})}
var a=n(14),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=n.n(p),f=n(11),v=n(5),m=(n.n(v),n(45)),g=n(43),y=n(21),b=n(290),S=n(118),I=n(129),M={dispatchPreFetch:b.g},C=function(e){function t(){return o()(this,t),u()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.componentDidMount=function(){this._preFetch()},t.prototype.componentDidUpdate=function(e){this.props.metadataItemEntityID!==e.metadataItemEntityID&&this._preFetch()},t.prototype._preFetch=function(){
var e=this.props,t=e.metadataItemEntityID,n=e.isDisabled,i=e.dispatchPreFetch;n||i({metadataItemEntityID:t})},t.prototype.render=function(){var e=this.props,t=(e.serverEntityID,e.providerEntityID,e.metadataItemEntityID,e.dispatchPreFetch,r()(e,["serverEntityID","providerEntityID","metadataItemEntityID","dispatchPreFetch"]));return h.a.createElement(I.a,t)},t}(p.Component);t.a=n.i(f.b)(i,M)(C)},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.previousMetadataItemEntityID,a=e.nextMetadataItemEntityID;return r()("div",{},void 0,r()(l.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i},void 0,u),r()(l.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:a},void 0,c))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(27)),l=n(2264),u=r()(o.a,{name:"plex-icon-page-prev-560"}),c=r()(o.a,{name:"plex-icon-page-next-560"});t.a=i},function(e,t,n){"use strict";function i(){
return n.i(r.createSelector)(function(e,t){return t.metadataItemEntityID},n.i(s.a)(),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.metadataItems,i=n.indexOf(e),a=i+1,r=i-1,s=void 0,o=void 0;return r>-1&&(s=n[r]),a>0&&a<n.length&&(o=n[a]),{previousMetadataItemEntityID:s,nextMetadataItemEntityID:o}})}var a=n(11),r=n(5),s=(n.n(r),n(149)),o=n(2265);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(){return n.i(c.createSelector)(function(e){
return e.ui.prePlayPage},v.a,m.a,n.i(d.a)(),n.i(p.a)(),n.i(h.a)(),g.a,y.a,n.i(b.a)(),function(e,t,i,a,r,s,o,u,c){var d=r.librarySectionID,p=new RegExp("/"+d+"$"),h=l.a.find(a,function(e){return!!e.key&&p.test(e.key)}),v=r.grandparentKey,m=r.parentKey,g=r.key,y=r.grandparentTitle,b=r.parentTitle,S=r.title,I=n.i(M.a)(u,f.a,c,i),D=n.i(C.a)(c,f.a,i);return{siblingsMetadataListEntityID:e.siblingList,server:t,provider:i,directories:a,selectedDirectory:h||l.a.first(a),metadataKey:g,siblingKey:s,
grandparentTitle:y,parentTitle:b,title:S,grandparentRoute:n.i(w.a)(t,i,v),parentRoute:n.i(w.a)(t,i,m),showArtworkButton:!!r.art,isArtworkButtonSelected:o,listType:c,listStyle:I,allListStyles:D}})}function a(e,t){return{onArtworkToggle:function(t){e(n.i(I.a)({showPrePlayArtwork:t}))}}}function r(e){return{siblingKey:e.ui.prePlayPage.siblingKey}}function s(e,t){e(n.i(S.f)({serverEntityID:t.serverEntityID,siblingKey:t.siblingKey}))}var o=n(3),l=n.n(o),u=n(11),c=n(5),d=(n.n(c),
n(340)),p=n(21),h=n(1379),f=n(32),v=n(45),m=n(43),g=n(915),y=n(594),b=n(917),S=n(290),I=n(86),M=n(663),C=n(467),w=n(118),D=n(184),P=n(2263),T=n.i(D.a)(P.a,r,s),x=n.i(u.b)(i,a)(T);t.a=x},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,i=e.providerEntityID,a=e.metadataItemEntityIDs,s=e.isPending,u=e.error,p=e.selectedKey,v=e.target,m=e.isOpen,g=e.onMenuClose,y=!!a.length,b=!y&&s,S=!y&&!s&&!!u,I=!y&&!b&&!S;return r()(c.a,{target:v,isOpen:m,size:l.d.LARGE,onMenuClose:g
},void 0,b&&r()("span",{className:h.a.emptyContainer},void 0,f),S&&r()("span",{className:h.a.emptyContainer},void 0,n.i(o.default)("Unable to load items")),I&&r()("span",{className:h.a.emptyContainer},void 0,n.i(o.default)("No items")),a.map(function(e){return r()(d.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:e,selectedKey:p},e)}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(20),u=n(38),c=n(68),d=n(2270),p=n(2854),h=n.n(p),f=r()(u.a,{});t.a=i},function(e,t,n){"use strict"
;function i(e){var t=e.title,n=e.to,i=e.isSelected;return r()(o.a,{to:n,isSelected:i},void 0,t)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(93));t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(function(e,t){return t.selectedKey},s.a,o.a,n.i(l.a)(),function(e,t,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return{title:a.title,to:n.i(u.a)(t,i,a.key),isSelected:e===a.key}})}var a=n(11),r=n(5),s=(n.n(r),n(45)),o=n(43),l=n(21),u=n(118),c=n(2269)
;t.a=n.i(a.b)(i)(c.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),
n(4)),h=n(15),f=n(50),v=n(646),m=n(303),g=n(2187),y=n(640),b=n(2186),S=n(641),I=n(638),M=n(639),C=n(2185),w=n(987),D=n(642),P=n(454),T=n(965),x=n(217),E=["showPlay","showPlayTrailer","showShuffle","showAddToAlbum","showAddToPlaylist","showToggleWatched","showEdit","showSync"],N=["showPlayVersion","showPlayAll","showQueue","showPlayPlexMix","showPlayMusicVideo","showRefresh","showAnalyze","showFixMatch","showMatch","showUnmatch","showSplitApart","showOptimize","showDownload","showWatchLater","showShare","showRecommend","showDelete","showDeleteVersion","showGetInfo"],L=function(e){
function t(i,a){s()(this,t);var r=l()(this,e.call(this,i,a));return r.onPlayShortcut=function(){var e=r.props,t=e.showPlay,n=e.showPlayOverflow,i=e.onPlayPress;(t||n)&&i()},r.onToggleWatchedShortcut=function(){var e=r.props,t=e.showMarkWatched,n=e.showMarkUnwatched;t?r.setState({isConfirmMarkWatchedModalOpen:!0}):n&&r.setState({isConfirmMarkUnwatchedModalOpen:!0})},r.onEditShortcut=function(){var e=r.props,t=e.showEdit,n=e.showEditOverflow,i=e.onEditPress;(t||n)&&i()},
r.onGetInfoShortcut=function(){var e=r.props,t=e.showGetInfo,n=e.onGetInfoPress;t&&n()},r.onRecordPress=function(e){r.setState({isSubscribeModalOpen:!0})},r.onSubscribeModalClose=function(){r.setState({isSubscribeModalOpen:!1})},r.onMarkWatchedPress=function(e){r.setState({isConfirmMarkWatchedModalOpen:!0})},r.onMarkWatchedConfirm=function(){r.setState({isConfirmMarkWatchedModalOpen:!1}),r.props.onMarkWatchedConfirm()},r.onMarkWatchedCancel=function(){r.setState({isConfirmMarkWatchedModalOpen:!1
})},r.onMarkUnwatchedPress=function(e){r.setState({isConfirmMarkUnwatchedModalOpen:!0})},r.onMarkUnwatchedConfirm=function(){r.setState({isConfirmMarkUnwatchedModalOpen:!1}),r.props.onMarkUnwatchedConfirm()},r.onMarkUnwatchedCancel=function(){r.setState({isConfirmMarkUnwatchedModalOpen:!1})},r.onActionsPress=function(e){r.setState({isActionsMenuOpen:!r.state.isActionsMenuOpen})},r.onActionsMenuClose=function(){r.setState({isActionsMenuOpen:!1})},r.state={isActionsMenuOpen:!1,
isConfirmMarkWatchedModalOpen:!1,isConfirmMarkUnwatchedModalOpen:!1,isSubscribeModalOpen:!1},r._moreButtonID=n.i(f.a)(),r}return c()(t,e),t.prototype.componentDidMount=function(){h.a.on("shortcut:playSelected",this.onPlayShortcut),h.a.on("shortcut:toggleWatched",this.onToggleWatchedShortcut),h.a.on("shortcut:edit",this.onEditShortcut),h.a.on("shortcut:info",this.onGetInfoShortcut)},t.prototype.componentWillUnmount=function(){h.a.off("shortcut:playSelected",this.onPlayShortcut),
h.a.off("shortcut:toggleWatched",this.onToggleWatchedShortcut),h.a.off("shortcut:edit",this.onEditShortcut),h.a.off("shortcut:info",this.onGetInfoShortcut)},t.prototype.render=function(){
var e=this.props,t=e.className,i=e.serverEntityID,r=e.providerEntityID,s=e.metadataItemEntityID,o=e.type,l=e.title,u=e.viewedLeafCount,c=e.unviewedLeafCount,d=e.isLiveTV,h=e.showRecord,f=e.showPlay,v=e.showPlayOverflow,E=e.showPlayTrailer,N=e.showPlayTrailerOverflow,L=e.showShuffle,A=e.showShuffleOverflow,k=e.showAddToAlbum,_=e.showAddToAlbumOverflow,O=e.showAddToPlaylist,j=e.showAddToPlaylistOverflow,R=e.showToggleWatched,U=e.showToggleWatchedOverflow,z=e.showMarkWatched,B=e.showMarkUnwatched,F=e.showEdit,V=e.showEditOverflow,Q=e.showSync,H=e.showSyncOverflow,W=e.showOverflow,Y=e.onPlayPress,G=e.onPlayLiveTVPress,K=e.onPlayTrailerPress,q=e.onShufflePress,X=e.onAddToPlaylistPress,Z=e.onEditPress,J=e.onSyncPress,$=this.state,ee=$.isActionsMenuOpen,te=$.isConfirmMarkWatchedModalOpen,ne=$.isConfirmMarkUnwatchedModalOpen,ie=$.isSubscribeModalOpen
;return a()("div",{className:t},void 0,h&&a()(g.a,{title:l,onPress:this.onRecordPress}),f&&a()(y.a,{playLabel:n.i(p.default)("Play"),onPress:d?G:Y}),E&&a()(b.a,{onPress:K}),L&&a()(S.a,{onPress:q}),k&&a()(I.a,{onPress:X}),O&&a()(M.a,{onPress:X}),R&&z&&a()(C.a,{onPress:this.onMarkWatchedPress}),R&&B&&!z&&a()(C.a,{markUnwatched:!0,onPress:this.onMarkUnwatchedPress}),F&&a()(w.a,{onPress:Z}),Q&&a()(D.a,{onPress:J}),W&&a()(P.a,{id:this._moreButtonID,icon:"plex-icon-toolbar-more-560",
label:n.i(p.default)("More..."),isMenuOpen:ee,onPress:this.onActionsPress}),a()(m.a,{serverEntityID:i,providerEntityID:r,metadataItemEntityID:s,allowRedirectOnDelete:!0,showPlay:v,showPlayTrailer:N,showQueuePlexMix:!1,showShuffle:A,showAddToAlbum:_,showAddToPlaylist:j,showEdit:V,showMarkWatched:U&&z,showMarkUnwatched:U&&B,showSync:H,target:this._moreButtonID,isOpen:ee,onMenuClose:this.onActionsMenuClose}),a()(T.a,{isOpen:te,type:o,title:l,leafCount:c,onConfirm:this.onMarkWatchedConfirm,
onCancel:this.onMarkWatchedCancel}),a()(T.a,{isOpen:ne,type:o,title:l,leafCount:u,markUnwatched:!0,onConfirm:this.onMarkUnwatchedConfirm,onCancel:this.onMarkUnwatchedCancel}),a()(x.a,{serverEntityID:i,metadataItemEntityID:s,isOpen:ie,subscriptionType:o,onModalClose:this.onSubscribeModalClose}))},t}(d.Component);t.a=n.i(v.a)(L,E,N)},function(e,t,n){"use strict";function i(){return n.i(o.createSelector)(l.a,u.a,d.a,n.i(c.a)(),function(e,t,i,a){
var r=a.type,o=a.title,l=a.viewedLeafCount,u=a.unviewedLeafCount,c=n.i(v.d)(e,t,i,a),d=c.showMarkWatched||c.showMarkUnwatched,p=!!t.protocols.livetv,h=!!t.features.subscribe;return s()({type:r,title:o,viewedLeafCount:l,unviewedLeafCount:u,isLiveTV:p,showRecord:h,showToggleWatched:d},c)})}function a(e,t){var i={serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metadataItemEntityID:t.metadataItemEntityID,metricsPage:t.metricsPage};return{onPlayPress:function(){e(p.c(i))},
onPlayLiveTVPress:function(){e(n.i(h.a)(i))},onPlayTrailerPress:function(){e(p.i(i))},onShufflePress:function(){e(p.f(i))},onAddToPlaylistPress:function(){e(f.addMetadataItemToPlaylist(i))},onMarkWatchedConfirm:function(){e(f.markMetadataItemWatched(s()({},i,{skipConfirm:!0})))},onMarkUnwatchedConfirm:function(){e(f.markMetadataItemUnwatched(s()({},i,{skipConfirm:!0})))},onEditPress:function(){e(f.editMetadataItem(i))},onSyncPress:function(){e(f.syncMetadataItem(i))},onGetInfoPress:function(){
e(f.getMetadataItemInfo(i))}}}var r=n(6),s=n.n(r),o=n(5),l=(n.n(o),n(45)),u=n(43),c=n(21),d=n(180),p=n(58),h=n(227),f=n(140),v=n(220),m=n(138),g=n(2271);t.a=n.i(m.a)(i,a)(g.a)},function(e,t,n){"use strict";function i(e){return e.serverEntityID&&e.providerEntityID?o.a.createElement(p.a,e):r()(d.a,{title:n.i(l.default)("No longer available"),description:n.i(l.default)("Details can only be mirrored temporarily while casting")},void 0,r()(c.a,{to:"#",kind:u.b.PRIMARY
},void 0,n.i(l.default)("Go Home")))}var a=n(2),r=n.n(a),s=n(0),o=n.n(s),l=n(4),u=n(20),c=n(23),d=n(160),p=n(995);t.a=i},function(e,t,n){"use strict";function i(){return n.i(l.createSelector)(function(e,t){return t.providerIdentifier},c.a,u.a,function(e,t,n){if(n)for(var i=n.desktop.providers,a=0,r=i.length;a<r;a++){var s=t[i[a]];if(s.identifier===e)return{serverEntityID:n.entityID,providerEntityID:s.entityID}}return{}})}var a=n(6),r=n.n(a),s=n(0),o=(n.n(s),n(11)),l=n(5),u=(n.n(l),
n(1386)),c=n(231),d=n(2273),p=n.i(o.b)(i)(d.a);p.propTypes=r()({},p.propTypes,{providerIdentifier:s.PropTypes.string.isRequired}),t.a=p},function(e,t,n){"use strict";function i(){return r()(c.a,{title:n.i(o.default)("Nothing is here"),description:n.i(o.default)("This item may have been deleted recently")},void 0,r()(u.a,{to:"#",kind:l.b.PRIMARY},void 0,n.i(o.default)("Go Home")))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(20),u=n(23),c=n(645);t.a=i},function(e,t,n){"use strict";function i(){
return r()(c.a,{title:n.i(o.default)("You must be lost"),description:n.i(o.default)("This item does not have its own page")},void 0,r()(u.a,{to:"#",kind:l.b.PRIMARY},void 0,n.i(o.default)("Go Home")))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(20),u=n(23),c=n(645);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(26)),h=(n(77),
n(73)),f=n(372),v=n(158),m=n(161),g=n(103),y=n(130),b=n(2287),S=n(145),I=n(193),M=n(194),C=n(104),w=n(307),D=n(253),P=n(162),T=n(219),x=n(192),E=n(306),N=a()(y.a,{}),L=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onContentMeasure=function(e){var t=e.width,n=e.height;a.setState({isContentMeasured:!0,contentWidth:t,contentHeight:n})},a.state={isContentMeasured:!1,contentWidth:null,contentHeight:null},a}return c()(t,e),
t.prototype.shouldComponentUpdate=function(e,t){return n.i(p.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.metadataListEntityID,s=e.metadataKey,o=e.title,l=e.type,u=e.year,c=e.summary,d=e.thumb,p=e.art,y=e.listType,L=e.listStyle,A=e.isListReady,k=e.pageWidth,_=e.pageHeight,O=e.scrollTop,j=e.posterWidth,R=e.posterTop,U=this.state,z=U.isContentMeasured,B=U.contentWidth,F=U.contentHeight,V=!(!z||!r);return a()(m.a,{
serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,metadataKey:s,type:l,thumb:d,art:p,pageWidth:k,pageHeight:_,scrollTop:O,posterWidth:j,posterTop:R},void 0,a()(h.a,{ignorePosition:!0,onMeasure:this.onContentMeasure},void 0,a()(g.a,{},void 0,a()(S.a,{},void 0,a()(f.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i})),a()(I.a,{},void 0,a()(C.a,{},void 0,o),a()(D.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i
})),a()(M.a,{},void 0,a()(C.a,{},void 0,u),a()(w.a,{},void 0,a()(b.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i})))),N,!!c&&a()(g.a,{},void 0,a()(P.a,{},void 0,c))),V&&a()(v.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:r,listType:y,listStyle:L,component:E.a,initialSize:20,showArtwork:!!p,viewportWidth:B,viewportHeight:_,contentHeight:F,scrollTop:O}),A&&a()(g.a,{},void 0,a()(T.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),a()(x.a,{
serverEntityID:t,providerEntityID:n})))},t}(d.Component);t.a=L},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(26),f=(n(77),n(73)),v=n(158),m=n(161),g=n(103),y=n(130),b=n(145),S=n(104),I=n(253),M=n(252),C=n(162),w=n(651),D=n(192),P=n(306),T=n(2283),x=n(2284),E=n(2281),N=a()(y.a,{}),L=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onContentMeasure=function(e){var t=e.width,n=e.height
;a.setState({isContentMeasured:!0,contentWidth:t,contentHeight:n})},a.state={isContentMeasured:!1,contentWidth:null,contentHeight:null},a}return c()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(h.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,i=e.providerEntityID,r=e.metadataItemEntityID,s=e.metadataListEntityID,o=e.extrasMetadataListEntityID,l=e.popularLeavesMetadataListEntityID,u=e.metadataKey,c=e.title,d=e.type,h=e.summary,y=e.thumb,L=e.art,A=e.listType,k=e.listStyle,_=e.isListReady,O=e.pageWidth,j=e.pageHeight,R=e.scrollTop,U=e.posterWidth,z=e.posterTop,B=this.state,F=B.isContentMeasured,V=B.contentWidth,Q=B.contentHeight,H=!(!F||!l),W=!(!F||!s);return a()(m.a,{serverEntityID:t,
providerEntityID:i,metadataItemEntityID:r,metadataKey:u,type:d,thumb:y,art:L,pageWidth:O,pageHeight:j,scrollTop:R,posterWidth:U,posterTop:z},void 0,a()(f.a,{ignorePosition:!0,onMeasure:this.onContentMeasure},void 0,a()(g.a,{},void 0,a()(b.a,{},void 0,a()(S.a,{},void 0,c),a()(I.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:r})),a()(T.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:r})),N,a()(g.a,{},void 0,a()(M.a,{serverEntityID:t,providerEntityID:i,
metadataItemEntityID:r}),a()(C.a,{},void 0,h))),H&&a()(v.a,{serverEntityID:t,providerEntityID:i,metadataListEntityID:l,component:x.a,showArtwork:!!L,viewportWidth:V,viewportHeight:j,contentHeight:Q,scrollTop:R,listStyle:k}),W&&a()(v.a,{serverEntityID:t,providerEntityID:i,metadataListEntityID:s,listType:A,listStyle:k,component:P.a,initialSize:20,showArtwork:!!L,viewportWidth:V,viewportHeight:j,contentHeight:Q,scrollTop:R}),_&&a()(g.a,{},void 0,!!o&&a()(w.a,{serverEntityID:t,providerEntityID:i,
metadataItemEntityID:r,metadataListEntityID:o,title:n.i(p.default)("Music Videos")}),a()(E.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:r}),a()(D.a,{serverEntityID:t,providerEntityID:i})))},t}(d.Component);t.a=L},function(e,t,n){"use strict";function i(e){var t=e.at,n=e.city,i=e.country,a=e.tag,s=e.url,o=e.venue,c=l.a.unix(t),p=c.format("DD"),h=c.format("MMM");return r()(u.a,{className:d.a.concert,target:"_blank",to:s},void 0,r()("div",{className:d.a.concertCalendar
},void 0,r()("div",{className:d.a.concertMonth},void 0,h),r()("div",{className:d.a.concertDay},void 0,p)),r()("div",{className:d.a.concertDetails},void 0,r()("div",{className:d.a.concertTitle},void 0,a),r()("div",{className:d.a.concertLocation},void 0,o," (",n,", ",i,")")))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(40)),l=n.n(o),u=n(23),c=n(2855),d=n.n(c);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.concerts;if(!t||!t.length)return null;var i=n.i(d.a)(n.i(c.default)("On Tour"))
;return o()("div",{className:y.a.concerts},void 0,o()(p.a,{},void 0,o()(h.a,{},void 0,i,o()("img",{className:y.a.concertsLogo,src:m.a}))),t.map(function(e){return u.a.createElement(f.a,r()({key:e.id},e))}))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(0),u=n.n(l),c=n(4),d=n(349),p=n(448),h=n(371),f=n(2279),v=n(3495),m=n.n(v),g=n(2856),y=n.n(g);t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(){return{
concerts:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).concerts}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(2280);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.server,n=e.provider,i=e.librarySectionKey,a=e.Country,s=e.Genre,p=!(!a||!a.length),h=!(!s||!s.length);return p||h?r()(u.a,{},void 0,p&&r()(c.a,{},void 0,r()(o.a,{server:t,provider:n,librarySectionKey:i,fallbackFilterKey:"country",tags:a,limit:1})),h&&r()(d.a,{},void 0,r()(l.a,{server:t,provider:n,
librarySectionKey:i,Genre:s}))):null}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(106),n(105),n(648)),l=n(647),u=n(194),c=n(104),d=n(307);t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(s.a,o.a,n.i(l.a)(),n.i(u.a)(),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{server:e,provider:t,librarySectionKey:arguments[3],Country:n.Country,Genre:n.Genre}})}var a=n(11),r=n(5),s=(n.n(r),n(45)),o=n(43),l=n(21),u=n(339),c=n(2282)
;t.a=n.i(a.b)(i)(c.a)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,i=e.providerEntityID,a=e.metadataListEntityID,s=e.metadataItemEntityIDs,l=e.containerKey,c=e.showArtwork,M=e.contentHeight,C=e.scrollTop,w=u()(e,["serverEntityID","providerEntityID","metadataListEntityID","metadataItemEntityIDs","containerKey","showArtwork","contentHeight","scrollTop"]);if(!s||!s.length)return null;var x=n.i(h.a)(n.i(p.default)("Popular Tracks")),E={serverEntityID:t,providerEntityID:i,
metadataListEntityID:a,containerKey:l,listType:"track",listContext:v.a,activeSort:"titleSort",showLink:!1,showPlayIndex:!1,showPlayCellIndex:!0,showActionsDuration:!0};return o()("div",{className:D.a.popularTracksHubCell},void 0,o()(S.a,{},void 0,o()(y.a,{},void 0,x)),P,o()(I.a,{showArtwork:c,contentHeight:M,scrollTop:C},void 0,d.a.createElement(m.a,r()({layout:f.a,cellRenderer:n.i(g.a)(E,b.a),items:s,size:Math.min(s.length,5),keyPropName:"metadataItemEntityID"},w))),T)}
var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(4),h=n(349),f=n(662),v=n(32),m=n(183),g=n(131),y=n(371),b=n(618),S=n(103),I=n(653),M=n(654),C=n(652),w=n(2857),D=n.n(w),P=o()(M.a,{}),T=o()(C.a,{});t.a=i},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.width,i=e.height,a=e.url;return o()(c.a,{serverEntityID:t,background:!0,backgroundPosition:"top center",minSize:!0,transition:!0,transitionProps:r()({className:p.a.imageContainer,style:{width:n,height:i
}},u.a),width:n,height:i,url:a})}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(0),u=(n.n(l),n(311)),c=n(155),d=n(2858),p=n.n(d);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.separator;return r()("span",{className:t},void 0,n)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2859)),l=n.n(o);i.defaultProps={className:l.a.separator,separator:"\xb7"},t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(s.a,o.a,n.i(l.a)(),n.i(u.a)(),function(e,t){
var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{server:e,provider:t,librarySectionKey:arguments[3],type:n.type,Genre:n.Genre}})}var a=n(11),r=n(5),s=(n.n(r),n(45)),o=n(43),l=n(21),u=n(339),c=n(647);t.a=n.i(a.b)(i)(c.a)},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.children,i=e.posterWidth;return r()("div",{className:t,style:{paddingLeft:i+60}},void 0,n)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2861)),l=n.n(o);i.defaultProps={className:l.a.content},t.a=i
},function(e,t,n){"use strict";function i(e){return{onSelectItem:function(t){e(n.i(r.e)(t))},onDeselectItem:function(t){e(n.i(r.f)(t))},onRemoveItem:function(t){e(n.i(r.d)(t))}}}var a=n(11),r=n(357),s=n(2109);t.a=n.i(a.b)(null,i)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,i=e.providerEntityID,a=e.metadataItemEntityID,s=e.metadataKey,l=e.type,u=e.posterType,p=e.pageHeight,f=e.posterWidth,m=e.posterTop,g=e.posterUrl,y=e.showLinkOnly,b=u||l,S=f,I=n.i(c.a)(S,b,o.a)
;return I>p-v&&(I=p-v,S=n.i(c.c)(I,b,o.a)),r()("div",{style:{position:"fixed",top:m}},void 0,r()(d.a,{cardFaceClassName:h.a.face,serverEntityID:t,providerEntityID:i,metadataItemEntityID:a,metadataKey:s,type:l,imageWidth:S,imageHeight:I,imageUrl:g,showLink:!1,showSelect:!1,showEdit:!1,showMore:!1,showLinkOnly:y}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(32)),l=n(57),u=n.n(l),c=n(132),d=n(247),p=n(2863),h=n.n(p),f=parseInt(u.a.pagePadding,10),v=2*f+40;t.a=i},function(e,t,n){"use strict"
;function i(){return n.i(c.createSelector)(n.i(d.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:e.type,title:e.title,year:e.year,summary:e.summary}})}function a(e){var t=f[e.type];return l.a.createElement(t,e)}var r=n(65),s=n.n(r),o=n(0),l=n.n(o),u=n(11),c=n(5),d=(n.n(c),n(21)),p=n(1007),h=n(1008),f={episode:p.a,movie:h.a,clip:h.a};s()(f);t.a=n.i(u.b)(i)(a)},function(e,t,n){"use strict";function i(e){
var t=e.children,i=e.server,a=e.provider,s=e.librarySectionKey,d=e.type,p=e.Director,h=e.Writer,f=e.studio;return t||p.length||h.length||f?r()(u.a,{},void 0,t,!!p.length&&r()(c.a,{label:n.i(o.default)("Directed by")},void 0,r()(l.a,{server:i,provider:a,librarySectionKey:s,fallbackFilterKey:"director",type:d,tags:p})),!!h.length&&r()(c.a,{label:n.i(o.default)("Written by")},void 0,r()(l.a,{server:i,provider:a,librarySectionKey:s,fallbackFilterKey:"writer",type:d,tags:h})),!!f&&r()(c.a,{
label:n.i(o.default)("Studio")},void 0,r()(l.a,{server:i,provider:a,librarySectionKey:s,type:d,tags:[{filter:"studio="+encodeURIComponent(f),tag:f}]}))):null}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=(n(106),n(105),n(648)),u=n(649),c=n(458);i.defaultProps={Director:[],Writer:[]},t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),
n(4)),h=n(90),f=n(206),v=n(554),m=n(829),g=n(50),y=n(20),b=n(245),S=n(2183),I=n(635),M=n(636),C=n(2115),w=n(2116),D=n(649),P=n(458),T=n(2867),x=n.n(T),E=function(e){function t(i,a){s()(this,t);var r=l()(this,e.call(this,i,a));return r.onAudioStreamMenuButtonPress=function(e){r.setState({isAudioStreamMenuOpen:!r.state.isAudioStreamMenuOpen})},r.onAudioStreamMenuClose=function(){r.setState({isAudioStreamMenuOpen:!1})},r.onSubtitlesStreamMenuButtonPress=function(e){r.setState({
isSubtitlesStreamMenuOpen:!r.state.isSubtitlesStreamMenuOpen})},r.onSubtitlesStreamMenuClose=function(){r.setState({isSubtitlesStreamMenuOpen:!1})},r.state={isAudioStreamMenuOpen:!1,isSubtitlesStreamMenuOpen:!1},r._audioStreamMenuButtonID=n.i(g.a)(),r._subtitlesStreamMenuButtonID=n.i(g.a)(),r}return c()(t,e),t.prototype.render=function(){var e=this.props,t=e.mediaItem,i=e.onAudioStreamSelect,r=e.onSubtitlesStreamSelect,s=this.state,o=s.isAudioStreamMenuOpen,l=s.isSubtitlesStreamMenuOpen
;if(!t)return a()(D.a,{},void 0,a()(P.a,{label:n.i(p.default)("Video")},void 0,a()("span",{className:x.a.loadingMessage},void 0,n.i(p.default)("Loading..."))),a()(P.a,{label:n.i(p.default)("Audio")},void 0,a()("span",{className:x.a.loadingMessage},void 0,n.i(p.default)("Loading..."))),a()(P.a,{label:n.i(p.default)("Subtitles")},void 0,a()("span",{className:x.a.loadingMessage},void 0,n.i(p.default)("Loading..."))));var u=h.a.get("audio").id,c=n.i(f.a)(t,{streamType:u
}),d=n.i(v.a)(t),g=h.a.get("subtitles").id,T=n.i(f.a)(t,{streamType:g}),E=n.i(m.a)(t);return a()(D.a,{},void 0,a()(P.a,{label:n.i(p.default)("Video")},void 0,a()(S.a,{mediaItem:t})),a()(P.a,{label:n.i(p.default)("Audio")},void 0,c.length>1?a()(b.a,{id:this._audioStreamMenuButtonID,direction:o?y.f.UP:y.f.DOWN,onPress:this.onAudioStreamMenuButtonPress},void 0,a()(I.a,{audioStream:d})):a()(I.a,{audioStream:d})),a()(P.a,{label:n.i(p.default)("Subtitles")},void 0,T.length>1?a()(b.a,{
id:this._subtitlesStreamMenuButtonID,direction:l?y.f.UP:y.f.DOWN,onPress:this.onSubtitlesStreamMenuButtonPress},void 0,a()(M.a,{subtitlesStream:E})):a()(M.a,{subtitlesStream:E})),a()(C.a,{target:this._audioStreamMenuButtonID,isOpen:o,audioStreams:c,onMenuClose:this.onAudioStreamMenuClose,onStreamSelect:i}),a()(w.a,{target:this._subtitlesStreamMenuButtonID,isOpen:l,subtitlesStreams:T,onMenuClose:this.onSubtitlesStreamMenuClose,onStreamSelect:r}))},t}(d.Component);t.a=E},function(e,t,n){
"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(26),f=n(139),v=n(99),m=n(27),g=n(23),y=n(84),b=n(607),S=n(217),I=n(304),M=n(973),C=n(2870),w=n.n(C),D=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onRecordPress=function(e){a.setState({isSubscribeModalOpen:!0})},a.onSubscribeModalClose=function(){a.setState({isSubscribeModalOpen:!1})},a.state={isSubscribeModalOpen:!1},a}return c()(t,e),
t.prototype.shouldComponentUpdate=function(e,t){return n.i(h.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,i=e.providerEntityID,r=e.metadataItemEntityID,s=e.cellIndex,o=e.cellX,l=e.cellY,u=e.cellWidth,c=e.cellHeight,d=e.metadataKey,h=e.route,f=e.title,C=e.type,D=e.summary,P=e.hasSingleSubscription,T=this.state.isSubscribeModalOpen;return d?a()(v.a,{className:s%2?w.a.alternateItem:w.a.item,cellX:o,cellY:l,cellWidth:u,cellHeight:c},void 0,a()(g.a,{
className:w.a.underlay,to:h}),a()("div",{className:w.a.overlay},void 0,a()("div",{className:w.a.primaryTitle},void 0,a()(I.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:r})),a()("div",{className:w.a.secondaryTitle},void 0,P&&a()(m.a,{className:w.a.subscriptionIcon,name:"plex-icon-dvr-single-560","aria-label":n.i(p.default)("Recording Scheduled")}),a()(M.a,{className:w.a.nextAiringDate,metadataItemEntityID:r,showFullTime:!0}),!!D&&a()(y.a,{className:w.a.separator}),D)),a()(b.a,{
className:w.a.recordButton,tabIndex:"-1",title:f,onPress:this.onRecordPress}),a()(S.a,{serverEntityID:t,metadataItemEntityID:r,isOpen:T,subscriptionType:C,onModalClose:this.onSubscribeModalClose})):a()(v.a,{className:s%2?w.a.alternateLoadingItem:w.a.loadingItem,cellX:o,cellY:l,cellWidth:u,cellHeight:c},void 0,n.i(p.default)("Loading..."))},t}(d.Component);t.a=n.i(f.a)(D)},function(e,t,n){"use strict";function i(){return n.i(l.createSelector)(u.a,c.a,n.i(d.a)(),function(e,t){
var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{metadataKey:i.key,title:i.title,type:i.type,summary:i.summary,route:n.i(p.a)(e,t,i.key),hasSingleSubscription:!!i.subscriptionID}})}function a(e){return s.a.createElement(h.a,e)}var r=n(0),s=n.n(r),o=n(11),l=n(5),u=(n.n(l),n(45)),c=n(43),d=n(21),p=n(118),h=n(2294);t.a=n.i(o.b)(i)(a)},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=n.n(d),h=n(466),f=n(183),v=n(2295),m=n.i(h.a)(96),g=function(e){function t(){var n,i,r;s()(this,t);for(var o=arguments.length,u=Array(o),c=0;c<o;c++)u[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(u))),i.renderCell=function(e){return p.a.createElement(v.a,a()({serverEntityID:i.props.serverEntityID,providerEntityID:i.props.providerEntityID,metadataListEntityID:i.props.metadataListEntityID},e))},r=n,
l()(i,r)}return c()(t,e),t.prototype.render=function(){return p.a.createElement(f.a,a()({layout:m,cellRenderer:this.renderCell},this.props))},t}(d.Component);t.a=g},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,a=e.type,s=e.leafCount,d=e.isSubscribed,h=e.subscriptionType,f=e.grandparentSubscriptionType,v=e.record;return r()(l.a,{},void 0,r()(o.a,{className:p.a.episodeCount,leafCount:s}),r()(u.a,{serverEntityID:t,
providerEntityID:n,metadataItemEntityID:i}),r()(c.a,{serverEntityID:t,metadataItemEntityID:i,type:a,isSubscribed:d,subscriptionType:h,grandparentSubscriptionType:f,isSubscribeModalOpen:v}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(627)),l=n(104),u=n(459),c=n(997),d=n(2871),p=n.n(d);t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:e.type,leafCount:e.leafCount,
isSubscribed:null!=e.subscriptionID||null!=e.grandparentSubscriptionID,subscriptionType:e.subscriptionType,grandparentSubscriptionType:e.grandparentSubscriptionType}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(2297);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,a=e.type,s=e.duration,d=e.isSubscribed,h=e.subscriptionType,f=e.grandparentSubscriptionType,v=e.record;return r()(l.a,{},void 0,r()(o.a,{
className:p.a.duration,duration:s}),r()(u.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),r()(c.a,{serverEntityID:t,metadataItemEntityID:i,type:a,isSubscribed:d,subscriptionType:h,grandparentSubscriptionType:f,isSubscribeModalOpen:v}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(626)),l=n(104),u=n(459),c=n(997),d=n(2872),p=n.n(d);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.listType,i=e.serverEntityID,a=e.server,s=e.provider,o=e.librarySectionKey,h=e.titleComponents,v=e.thumb,m=e.id,g=e.tag,y=e.role,b=e.filter,S=e.cellX,I=e.cellY,M=e.cellWidth,C=e.cellHeight,w=e.showOffscreenPlaceholder,D={filters:b||"actor="+m,filterLabel:g};return r()(c.a,{cellX:S,cellY:I,cellWidth:M,cellHeight:C},void 0,r()(u.a,{className:f.a.cardLink,to:n.i(l.a)(a,s,o,D)},void 0,r()(d.a,{serverEntityID:i,imageWidth:M,imageHeight:M,imageUrl:v,title:g,tagType:t,isOffscreen:w
})),r()("div",{className:f.a.titleContainer},void 0,h.map(function(e,t){return r()(p.a,{server:a,provider:s,librarySectionKey:o,tag:g,role:y,filter:b,component:e,isSecondary:t>0},t)})))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(139)),l=(n(106),n(105),n(96)),u=n(23),c=n(99),d=n(621),p=n(249),h=n(2873),f=n.n(h);t.a=n.i(o.a)(i)},function(e,t,n){"use strict";function i(e){return function(t){return c.a.createElement(m.a,l()({},e,t))}}function a(e){
var t=e.listType,a=e.listContext,r=e.serverEntityID,o=e.server,u=e.provider,c=e.librarySectionKey,p=e.roles;if(!p)return null;var m=n.i(h.a)(t,a);return s()("div",{className:y.a.castList},void 0,s()(v.a,{hubIdentifier:"cast",title:n.i(d.default)("Cast"),size:p.length,listType:t,listContext:a,columnAdjustment:1,keyPropName:"uniqueID",items:p.map(function(e){return l()({},e,{uniqueID:e.id+"!"+e.role})}),layout:n.i(f.a)(t,a,1,m.length),cellRenderer:i({listType:t,listContext:a,serverEntityID:r,
server:o,provider:u,librarySectionKey:c,titleComponents:m})}))}var r=n(2),s=n.n(r),o=n(6),l=n.n(o),u=n(0),c=n.n(u),d=n(4),p=n(32),h=n(173),f=n(465),v=(n(106),n(105),n(447)),m=n(2300),g=n(2874),y=n.n(g);a.defaultProps={listType:"actor",listContext:p.a},t.a=a},function(e,t,n){"use strict";function i(e){return o.a.createElement(u.a,r()({className:d.a.extrasHubCell,hubIdentifier:"extras"},e))}var a=n(6),r=n.n(a),s=n(0),o=n.n(s),l=n(32),u=n(960),c=n(2876),d=n.n(c);i.defaultProps={listType:"extra",
listContext:l.a,columnAdjustment:1},t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(function(e,t){return t.items},function(e,t){return t.serverEntityID},function(e,t){return t.providerEntityID},function(e,t){return t.metadataListEntityID},function(e,t){return t.containerKey},function(e,t){return t.listType},o.a,function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],i=arguments[2],a=arguments[3],r=arguments[4],o=arguments[5],c=arguments[6];return{listType:o,cellRenderer:n.i(l.a)({serverEntityID:t,providerEntityID:i,metadataListEntityID:a,containerKey:r,listType:o},u.a),aspectRatios:e.map(function(e){return n.i(s.a)(c[e])})}})}var a=n(11),r=n(5),s=(n.n(r),n(579)),o=n(110),l=n(131),u=n(961),c=n(1003);t.a=n.i(a.b)(i)(c.a)},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,i=e.providerEntityID,a=e.metadataListEntityID,s=e.containerKey,l=e.listType,v=e.listContext,m=e.columnAdjustment,g=o()(e,["serverEntityID","providerEntityID","metadataListEntityID","containerKey","listType","listContext","columnAdjustment"]),y=n.i(p.a)(l,v,{providerEntityID:i});return u.a.createElement(h.a,r()({layout:n.i(c.a)(l,v,m,y.length),cellRenderer:n.i(d.a)({serverEntityID:t,providerEntityID:i,metadataListEntityID:a,containerKey:s,listType:l,listContext:v,
titleComponents:y},f.a)},g))}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=(n(32),n(1051)),d=n(131),p=n(173),h=n(183),f=n(449);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,i=e.providerEntityID,a=e.metadataListEntityID,s=e.containerKey,l=e.listType,f=e.listContext,v=o()(e,["serverEntityID","providerEntityID","metadataListEntityID","containerKey","listType","listContext"]);return u.a.createElement(p.a,r()({layout:c.a,cellRenderer:n.i(d.a)({serverEntityID:t,
providerEntityID:i,metadataListEntityID:a,containerKey:s,listType:l,listContext:f},h.a)},v))}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=(n(32),n(1056)),d=n(131),p=n(183),h=n(962);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,i=e.providerEntityID,a=e.metadataListEntityID,s=e.containerKey,l=e.listType,f=e.listContext,v=o()(e,["serverEntityID","providerEntityID","metadataListEntityID","containerKey","listType","listContext"]),m={serverEntityID:t,
providerEntityID:i,metadataListEntityID:a,containerKey:s,listType:l,listContext:f,activeSort:"titleSort"};return"episode"===l&&(m.showPlayIndex=!0,m.showActionsMinutesLeft=!0),"track"===l&&(m.showLink=!1,m.showPlayIndex=!0,m.showActionsDuration=!0),u.a.createElement(p.a,r()({layout:c.a,cellRenderer:n.i(d.a)(m,h.a)},v))}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=(n(32),n(662)),d=n(131),p=n(183),h=n(618);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.relatedHubEntityIDs;return e.showSpinner?r()("div",{className:c.a.spinnerContainer},void 0,d):r()(l.a,{className:c.a.relatedList,serverEntityID:t,providerEntityID:n,hubEntityIDs:i,columnAdjustment:1})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(38)),l=n(617),u=n(2879),c=n.n(u),d=r()(o.a,{});t.a=i},function(e,t,n){"use strict";function i(e){var t=e.server,i=e.provider,a=e.librarySectionKey,s=e.contentRating;if(!s)return null;var c={
filters:"contentRating="+encodeURIComponent(s),filterLabel:s};return r()(u.a,{to:n.i(l.a)(t,i,a,c)},void 0,n.i(o.a)(s))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(834)),l=(n(106),n(105),n(96)),u=n(1004);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.server,n=e.provider,i=e.librarySectionKey,a=e.Genre,s=!(!a||!a.length);return r()(l.a,{},void 0,s&&r()(o.a,{server:t,provider:n,librarySectionKey:i,Genre:a}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(106),n(105),n(647)),l=n(307);t.a=i
},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,i=e.providerEntityID,a=e.metadataItemEntityID,s=e.duration,c=e.viewCount,m=e.viewOffset,g=e.isFileUnavailable,y=e.onUnavailablePress,b=!c&&!m,S=!!m,I=!!s||b||S;return r()(d.a,{},void 0,I&&r()(p.a,{},void 0,r()(l.a,{duration:s}),!!s&&(b||S)&&v,b&&n.i(o.default)("Unwatched"),S&&r()(u.a,{duration:s,viewOffset:m})),r()(h.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:a}),g&&r()(f.a,{onPress:y}))}
var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(626),u=n(632),c=n(2286),d=n(104),p=n(1006),h=n(459),f=n(2311),v=r()(c.a,{});t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.onPress;return r()(l.a,{className:t,onPress:i},void 0,n.i(o.default)("Unavailable"))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(1004),u=n(2888),c=n.n(u);i.defaultProps={className:c.a.unavailableButton},t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,a=e.metadataKey,s=e.type,d=e.summary,P=e.grandparentThumb,T=e.art,x=e.pageWidth,E=e.pageHeight,N=e.scrollTop,L=e.posterWidth,A=e.posterTop,k=e.record;return r()(u.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,posterType:"show",attribution:I.a,metadataKey:a,type:s,thumb:P,art:T,pageWidth:x,pageHeight:E,scrollTop:N,posterWidth:L,posterTop:A},void 0,r()(c.a,{},void 0,r()(p.a,{},void 0,r()(v.a,{},void 0,r()(o.a,{
serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}))),r()(h.a,{},void 0,r()(v.a,{},void 0,r()(l.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}))),r()(f.a,{},void 0,r()(M.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,record:k}),r()(m.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}))),D,r()(c.a,{},void 0,r()(g.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),r()(C.a,{metadataItemEntityID:i},void 0,r()(w.a,{
metadataItemEntityID:i,showFullTime:!0,showChannel:!0})),r()(y.a,{},void 0,d),r()(b.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),r()(S.a,{serverEntityID:t,providerEntityID:n})))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(250)),l=n(304),u=n(161),c=n(103),d=n(130),p=n(145),h=n(193),f=n(194),v=n(104),m=n(376),g=n(252),y=n(162),b=n(219),S=n(192),I=n(650),M=n(1002),C=n(999),w=n(1001),D=r()(d.a,{});t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,a=e.metadataKey,s=e.type,p=e.summary,h=e.thumb,f=e.art,v=e.pageWidth,m=e.pageHeight,g=e.scrollTop,y=e.posterWidth,b=e.posterTop;return r()(l.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,metadataKey:a,type:s,thumb:h,art:f,pageWidth:v,pageHeight:m,scrollTop:g,posterWidth:y,posterTop:b},void 0,r()(d.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,type:s,summary:p}),r()(o.a,{},void 0,r()(u.a,{
serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),r()(c.a,{serverEntityID:t,providerEntityID:n})))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(103)),l=n(161),u=n(219),c=n(192),d=n(1007);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.originallyAvailableAt;return r()(p.a,{},void 0,!!t&&n.i(u.default)("{monthName} {day}, {year}",{monthName:n.i(d.a)(l()(t).unix()),day:n.i(c.default)(t,"D"),year:n.i(c.default)(t,"YYYY")}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),
n(40)),l=n.n(o),u=n(4),c=n(204),d=n(545),p=n(307);t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(){return{originallyAvailableAt:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).originallyAvailableAt}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(2314);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,a=e.metadataKey,s=e.title,u=e.type,w=e.year,D=e.summary,P=e.thumb,T=e.art,x=e.pageWidth,E=e.pageHeight,N=e.scrollTop,L=e.posterWidth,A=e.posterTop,k=e.record;return r()(o.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,attribution:b.a,metadataKey:a,type:u,thumb:P,art:T,pageWidth:x,pageHeight:E,scrollTop:N,posterWidth:L,posterTop:A
},void 0,r()(l.a,{},void 0,r()(c.a,{},void 0,r()(h.a,{},void 0,s)),r()(d.a,{},void 0,r()(h.a,{},void 0,w)),r()(p.a,{},void 0,r()(S.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,record:k}),r()(f.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}))),C,r()(l.a,{},void 0,r()(v.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),r()(I.a,{metadataItemEntityID:i},void 0,r()(M.a,{metadataItemEntityID:i,showFullTime:!0,showChannel:!0
})),r()(m.a,{},void 0,D),r()(g.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),r()(y.a,{serverEntityID:t,providerEntityID:n})))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(161)),l=n(103),u=n(130),c=n(145),d=n(193),p=n(194),h=n(104),f=n(376),v=n(252),m=n(162),g=n(219),y=n(192),b=n(650),S=n(1002),I=n(999),M=n(1001),C=r()(u.a,{});t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,i=e.providerEntityID,a=e.metadataItemEntityID,s=e.extrasMetadataListEntityID,f=e.metadataKey,v=e.title,m=e.type,g=e.year,y=e.summary,b=e.thumb,S=e.art,I=e.pageWidth,M=e.pageHeight,C=e.posterWidth,w=e.posterTop,D=e.scrollTop;return r()(u.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:a,metadataKey:f,type:m,thumb:b,art:S,pageWidth:I,pageHeight:M,scrollTop:D,posterWidth:C,posterTop:w},void 0,r()(h.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:a,
extrasMetadataListEntityID:s,title:v,year:g,summary:y}),r()(l.a,{},void 0,r()(c.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:a}),!!s&&r()(d.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:a,metadataListEntityID:s,title:n.i(o.default)("Extras")}),r()(p.a,{serverEntityID:t,providerEntityID:i})))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(103),u=n(161),c=n(219),d=n(651),p=n(192),h=n(1008);t.a=i},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(26)),h=(n(77),n(73)),f=n(158),v=n(161),m=n(103),g=n(130),y=n(145),b=n(104),S=n(253),I=n(162),M=n(306),C=a()(g.a,{}),w=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onContentMeasure=function(e){var t=e.width,n=e.height;a.setState({isContentMeasured:!0,contentWidth:t,contentHeight:n})},a.state={isContentMeasured:!1,contentWidth:null,contentHeight:null},a}return c()(t,e),
t.prototype.shouldComponentUpdate=function(e,t){return n.i(p.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.metadataListEntityID,s=e.metadataKey,o=e.title,l=e.type,u=e.summary,c=e.art,d=e.listType,p=e.listStyle,g=e.pageWidth,w=e.pageHeight,D=e.scrollTop,P=this.state,T=P.isContentMeasured,x=P.contentWidth,E=P.contentHeight,N=!(!T||!r);return a()(v.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,
showPoster:!1,metadataKey:s,type:l,art:c,pageWidth:g,pageHeight:w,scrollTop:D},void 0,a()(h.a,{ignorePosition:!0,onMeasure:this.onContentMeasure},void 0,a()(m.a,{},void 0,a()(y.a,{},void 0,a()(b.a,{},void 0,o),a()(S.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}))),C,!!u&&a()(m.a,{},void 0,a()(I.a,{},void 0,u))),N&&a()(f.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:r,listType:d,listStyle:p,component:M.a,initialSize:1e3,showArtwork:!!c,viewportWidth:x,
viewportHeight:w,contentHeight:E,scrollTop:D}))},t}(d.Component);t.a=w},function(e,t,n){"use strict";function i(e){var t=e.isAlbum,i=e.onRemovePress;return r()(c.a,{tooltip:t?n.i(o.default)("Remove from Album"):n.i(o.default)("Remove from Playlist"),tooltipAttachment:u.e.BOTTOM_RIGHT,onPress:i},void 0,d)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(27),u=n(20),c=n(129),d=r()(l.a,{name:"plex-icon-toolbar-remove-from-playlist-560"});t.a=i},function(e,t,n){"use strict";function i(){
return n.i(s.createSelector)(l.a,function(e){return{isAlbum:e.activeSelectionType===o.c}})}function a(e,t){return{onRemovePress:function(){e(u.i())}}}var r=n(11),s=n(5),o=(n.n(s),n(66)),l=n(83),u=n(357),c=n(2319);t.a=n.i(r.b)(i,a)(c.a)},function(e,t,n){"use strict";function i(e){return{item:e.getItem(),itemType:e.getItemType(),currentOffset:e.getSourceClientOffset()}}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(7),u=n.n(l),c=n(9),d=n.n(c),p=n(8),h=n.n(p),f=n(0),v=n.n(f),m=n(264),g=(n.n(m),
n(26)),y=n(309),b=n(2551),S=n(606),I=n(655),M=n(2889),C=n.n(M),w=function(e){function t(){return u()(this,t),d()(this,e.apply(this,arguments))}return h()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(g.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.item,i=e.itemType,a=e.currentOffset;if(!a||i!==y.b)return null;var s=n.i(b.a)(a,t.viewportWidth);return o()(S.a,{},void 0,o()("div",{className:C.a.dragPreview,style:s},void 0,v.a.createElement(I.a,r()({isDragging:!0
},t))))},t}(f.Component);t.a=n.i(m.DragLayer)(i)(w)},function(e,t,n){"use strict";function i(e,t){return{connectDragPreview:e.dragPreview(),connectDragSource:e.dragSource(),isDragging:t.isDragging()}}function a(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver()}}var r=n(2),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(39),m=(n.n(v),n(264)),g=(n.n(m),n(491)),y=(n.n(g),n(26)),b=n(309),S=n(469),I=n(655),M=n(2890),C=n.n(M),w={beginDrag:function(e){return{
providerEntityID:e.providerEntityID,serverEntityID:e.serverEntityID,metadataListEntityID:e.metadataListEntityID,playlistItemEntityID:e.playlistItemEntityID,cellIndex:e.cellIndex,isSmart:e.isSmart,listType:e.listType,viewportWidth:e.viewportWidth}},endDrag:function(e,t,n){e.onItemDragEnd(t.getItem(),t.didDrop())}},D={hover:function(e,t,i){var a=n.i(v.findDOMNode)(i).getBoundingClientRect(),r=(a.bottom-a.top)/2,s=t.getClientOffset(),o=s.y-a.top,l=e.cellIndex,u=o>r?l+1:l;e.onItemDragMove(u)}
},P=function(e){function t(){return l()(this,t),c()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.componentDidMount=function(){this.props.connectDragPreview(n.i(g.getEmptyImage)())},t.prototype.shouldComponentUpdate=function(e,t){return n.i(y.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.moveIndex,n=e.cellIndex,i=e.isOver,a=e.isDragging,r=e.connectDropTarget,o=i&&t===n,l=i&&t===n+1;return r(s()("div",{
className:(C.a.container||"")+" "+(a&&S.a||"")+" "+(o&&i&&S.b||"")+" "+(l&&i&&S.c||"")},void 0,f.a.createElement(I.a,this.props)))},t}(h.Component);t.a=n.i(m.DropTarget)(b.b,D,a)(n.i(m.DragSource)(b.b,w,i)(P))},function(e,t,n){"use strict";function i(e){var t=e.contentHeight,i=e.scrollTop,a=e.showArtwork,s=e.showSpinner,l=e.showError,m=e.listType,y=e.isEmpty,b=o()(e,["contentHeight","scrollTop","showArtwork","showSpinner","showError","listType","isEmpty"]);return s?r()("div",{
className:g.a.emptyContainer},void 0,r()(p.a,{label:n.i(c.default)("Loading items")})):l?r()("div",{className:g.a.emptyMessage},void 0,n.i(c.default)("Unable to load items")):y?r()("div",{className:g.a.emptyMessage},void 0,m===d.c?n.i(c.default)("There are no items in this album"):n.i(c.default)("There are no items in this playlist")):r()(h.a,{showArtwork:a,contentHeight:t,scrollTop:i},void 0,m===d.c?u.a.createElement(f.a,b):u.a.createElement(v.a,b))}
var a=n(2),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(4),d=n(66),p=n(38),h=n(653),f=n(2331),v=n(2329),m=n(2891),g=n.n(m);t.a=i},function(e,t,n){"use strict";function i(e,t){return n.i(g.createSelector)(function(e){return e.ui.playlistPage},n.i(S.a)(),function(e,t){
var n=e.serverEntityID,i=e.providerEntityID,a=e.metadataKey,r=e.playlistItemList,s=void 0===r?{}:r,o=e.isPlaylistItemListPending,l=e.isPlaylistItemListPopulated,u=e.playlistItemListError,c=t.ratingKey,d=t.playlistType,p=t.smart,h=t.duration,f=s.metadataItems,v=void 0===f?[]:f,m=s.populatedRange,g=void 0===m?{}:m,y=s.totalSize;return{serverEntityID:n,providerEntityID:i,metadataKey:a,ratingKey:c,listType:d,keyPropName:"playlistItemEntityID",isSmart:p,populatedRange:g,items:v,size:y,
itemsOffset:g.start,duration:h,isEmpty:l&&!y,showArtwork:!1,showSpinner:o&&!l,showError:u}})}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(7),u=n.n(l),c=n(9),d=n.n(c),p=n(8),h=n.n(p),f=n(0),v=n.n(f),m=n(11),g=n(5),y=(n.n(g),n(357)),b=n(288),S=n(21),I=n(2323),M={dispatchInitPlaylistItemList:y.a,dispatchPopulatePlaylistItemRange:y.b,dispatchDeselectAllPlaylistItems:b.d,dispatchMovePlaylistItem:y.c},C=function(e){function t(){var n,i,a;u()(this,t)
;for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o];return n=i=d()(this,e.call.apply(e,[this].concat(s))),i.onPageRequest=function(e){var t=e.startIndex,n=e.endIndex;i.props.dispatchPopulatePlaylistItemRange({startIndex:t,endIndex:n})},a=n,d()(i,a)}return h()(t,e),t.prototype.componentDidMount=function(){this._populate()},t.prototype.componentDidUpdate=function(e){this.props.metadataKey!==e.metadataKey&&this._populate()},t.prototype.componentWillUnmount=function(){
this.props.dispatchDeselectAllPlaylistItems()},t.prototype._populate=function(){var e=this.props,t=e.serverEntityID,n=e.metadataKey,i=e.dispatchInitPlaylistItemList,a=e.dispatchPopulatePlaylistItemRange;i({serverEntityID:t,metadataKey:n}),a({startIndex:0,endIndex:39})},t.prototype.render=function(){var e=this.props,t=(e.dispatchInitPlaylistItemList,e.dispatchPopulatePlaylistItemRange,e.dispatchDeselectAllPlaylistItems,
o()(e,["dispatchInitPlaylistItemList","dispatchPopulatePlaylistItemRange","dispatchDeselectAllPlaylistItems"]));return v.a.createElement(I.a,r()({},t,{onPageRequest:this.onPageRequest}))},t}(f.Component);t.a=n.i(m.b)(i,M)(C)},function(e,t,n){"use strict";function i(e){return r()("div",{className:e.cellIndex%2?u.a.alternateContainer:u.a.container},void 0,n.i(o.default)("Loading..."))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(2892),u=n.n(l);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.className,i=e.titlesContainerClassName,a=e.actionsContainerClassName,s=e.serverEntityID,v=e.providerEntityID,g=e.metadataItemEntityID,y=e.cellIndex,b=e.type,S=e.title,I=e.duration,M=e.context,C=e.imageWidth,w=e.imageHeight,D=e.imageUrl,P=e.isPlaying,T=e.isPlayerPaused,x=e.onPlayPress,E=n.i(o.a)(b,M,{providerEntityID:v}),N=!!I;return r()("div",{className:t},void 0,r()("div",{className:m.a.playCell},void 0,!P&&r()(p.a,{className:m.a.transientTitleLeft,index:y+1}),!P&&r()(u.a,{
className:m.a.playButton,title:S,onPress:x}),P&&r()(l.a,{className:m.a.equalizer,isPaused:T})),r()(c.a,{className:m.a.cardContainer,serverEntityID:s,component:f.a,width:C,height:w,url:D},g),r()("div",{className:i},void 0,E.map(function(e,t){return r()(d.a,{serverEntityID:s,providerEntityID:v,metadataItemEntityID:g,component:e,isSecondary:t>0},t)})),r()("div",{className:a},void 0,N&&r()(h.a,{className:m.a.transientTitleRight,duration:I})))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),
n(173)),l=n(610),u=n(186),c=n(301),d=n(249),p=n(630),h=n(980),f=n(248),v=n(2893),m=n.n(v);i.defaultProps={className:m.a.container,titlesContainerClassName:m.a.titlesContainer,durationContainerClassName:m.a.durationContainer},t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(o.a)(),n.i(l.a)(),function(e){return e.ui.audioVideoPlayer.isPaused},function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],i=arguments[2],a=u.g,r=n.i(p.b)(e.type)===p.d?f:v,s=n.i(d.a)(r,null,e.type,e);return{type:e.type,metadataKey:e.key,duration:e.duration,title:e.title,context:a,imageWidth:s.width,imageHeight:s.height,imageUrl:s.url,isPlaying:t,isPlayerPaused:i}})}function a(e,t){var i=t.serverEntityID,a=t.providerEntityID,r=t.metadataListEntityID,s=t.metadataKey,o=t.listType,l={serverEntityID:i,providerEntityID:a,
metadataItemEntityID:r,metricsPage:"playlist",options:{itemKey:s,listType:o}};return{onPlayPress:function(){e(n.i(c.c)(l))}}}var r=n(5),s=(n.n(r),n(11)),o=n(21),l=n(916),u=n(32),c=n(58),d=n(256),p=n(132),h=n(2326),f=64,v=36;t.a=n.i(s.b)(i,a)(h.a)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,i=e.providerEntityID,a=e.metadataItemEntityID,s=e.metadataListEntityID,p=e.metadataKey,f=e.isSmart,v=e.cellIndex,m=e.isDragging,g=e.connectDragSource,y=e.onRemovePress;return r()("div",{
className:((v%2?h.a.alternateContainer:h.a.container)||"")+" "+(f&&h.a.isSmart||"")+" "+(m&&h.a.isItemDragging||"")},void 0,!f&&g(r()("div",{className:h.a.moveControls},void 0,r()(l.a,{className:h.a.grabIcon,name:"plex-icon-reorder-560"}))),r()(d.a,{actionsContainerClassName:h.a.metadataActionsCell,serverEntityID:t,providerEntityID:i,metadataItemEntityID:a,metadataListEntityID:s,metadataKey:p,cellIndex:v}),!f&&r()("div",{className:h.a.removeControls},void 0,r()(c.a,{className:h.a.removeButton,
icon:"plex-icon-remove-560",title:n.i(o.default)("Remove"),kind:u.b.DANGER,onPress:y})))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(27),u=n(20),c=n(366),d=n(2327),p=n(2894),h=n.n(p);i.defaultProps={isDragging:!1,connectDragSource:function(e){return e}},t.a=i},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(14),s=n.n(r),o=n(6),l=n.n(o),u=n(7),c=n.n(u),d=n(9),p=n.n(d),h=n(8),f=n.n(h),v=n(0),m=n.n(v),g=n(4),y=n(35),b=n(349),S=n(273),I=n(66),M=n(2556),C=n(131),w=n(661),D=n(183),P=n(448),T=n(371),x=n(654),E=n(652),N=n(2330),L=n(2321),A=n(2895),k=n.n(A),_=a()(x.a,{}),O=a()(E.a,{}),j=function(e){function t(i,a){c()(this,t);var r=p()(this,e.call(this,i,a));return r.onItemDragMove=function(e){e!==r.state.moveIndex&&r.setState({moveIndex:e})},r.onItemDragEnd=function(e,t){
var i=r.state.moveIndex;t&&null!=i&&n.i(y.a)(function(){r.props.dispatchMovePlaylistItem(l()({},e,{moveIndex:i}))}),r.setState({moveIndex:null})},r.state={moveIndex:null},r}return f()(t,e),t.prototype._getItemCountLabel=function(){var e=this.props.size;return this.props.playlistType===I.a?1===e?n.i(g.default)("1 Video"):n.i(g.default)("{count} Videos",{count:e}):1===e?n.i(g.default)("1 Track"):n.i(g.default)("{count} Tracks",{count:e})},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,i=e.providerEntityID,r=e.metadataItemEntityID,o=e.metadataKey,u=e.playlistType,c=e.contentWidth,d=e.contentHeight,p=e.scrollTop,h=e.items,f=e.isSmart,v=e.size,y=e.duration,w=s()(e,["serverEntityID","providerEntityID","metadataItemEntityID","metadataKey","playlistType","contentWidth","contentHeight","scrollTop","items","isSmart","size","duration"]),x={serverEntityID:t,providerEntityID:i,metadataListEntityID:r,metadataKey:o,listType:u,activeSort:"titleSort",
isSmart:f,showLink:!1,showPlayIndex:!1,showPlayCellIndex:!0,showActionsDuration:!0,onItemDragMove:this.onItemDragMove,onItemDragEnd:this.onItemDragEnd,moveIndex:this.state.moveIndex};return 0===v?a()("div",{},void 0,u===I.a?n.i(g.default)("This playlist has no videos."):n.i(g.default)("This playlist has no tracks.")):a()("div",{},void 0,a()(P.a,{className:k.a.header},void 0,a()(T.a,{},void 0,n.i(b.a)(this._getItemCountLabel())),!!y&&a()("span",{className:k.a.durationTitle
},void 0,n.i(S.a)(y))),_,m.a.createElement(D.a,l()({layout:M.a,containerKey:o,keyPropName:"playlistItemEntityID",cellRenderer:n.i(C.a)(x,N.a),items:h,size:v,viewportWidth:c,viewportHeight:d,scrollTop:p,firstItemType:u,listType:u,moveIndex:this.state.moveIndex},w)),O,!f&&a()(L.a,{serverEntityID:t,providerEntityID:i}))},t}(v.Component);t.a=n.i(w.a)(j)},function(e,t,n){"use strict";function i(e){
var t=e.cellIndex,n=e.cellX,i=e.cellY,a=e.cellWidth,s=e.cellHeight,l=e.playlistItemEntityID,c=e.isSmart,m=u()(e,["cellIndex","cellX","cellY","cellWidth","cellHeight","playlistItemEntityID","isSmart"]),g=c?v.a:f.a;return o()(p.a,{cellX:n,cellY:i,cellWidth:a,cellHeight:s},void 0,l?d.a.createElement(g,r()({playlistItemEntityID:l,cellIndex:t,isSmart:c},m)):o()(h.a,{cellIndex:t}))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(99),h=n(2325),f=n(2322),v=n(655);t.a=i
},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(function(e,t){return t.items},function(e,t){return t.serverEntityID},function(e,t){return t.providerEntityID},n.i(o.a)(),u.a,l.a,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],i=arguments[2],a=arguments[3],r=arguments[4],o=arguments[5],l=n.i(c.a)({serverEntityID:t,providerEntityID:i,playlistMetadataItemEntityID:a.entityID,ratingKey:a.ratingKey,listType:a.playlistType,
isSmart:a.smart},d.a),u=e.map(function(e){var t=r[e];return n.i(s.a)(o[t.metadataItem])});return{listType:a.playlistType,cellRenderer:l,aspectRatios:u}})}var a=n(11),r=n(5),s=(n.n(r),n(579)),o=n(21),l=n(110),u=n(788),c=n(131),d=n(2289),p=n(1003);t.a=n.i(a.b)(i)(p.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(66)),h=n(26),f=n(73),v=n(161),m=n(103),g=n(130),y=n(145),b=n(162),S=n(2324),I=a()(g.a,{}),M=function(e){
function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onContentMeasure=function(e){var t=e.width,n=e.height;a.setState({isContentMeasured:!0,contentWidth:t,contentHeight:n})},a.state={isContentMeasured:!1,contentWidth:null,contentHeight:null},a}return c()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(h.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.metadataKey,s=e.title,o=e.type,l=e.playlistType,u=e.summary,c=e.art,d=e.composite,h=e.pageWidth,g=e.pageHeight,M=e.scrollTop,C=e.posterWidth,w=e.posterTop,D=this.state,P=D.contentWidth,T=D.contentHeight,x=D.isContentMeasured;return a()(v.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,showPoster:l!==p.c,metadataKey:r,type:o,thumb:d,art:c,pageWidth:h,pageHeight:g,scrollTop:M,posterWidth:C,
posterTop:w},void 0,a()(f.a,{ignorePosition:!0,onMeasure:this.onContentMeasure},void 0,a()(m.a,{},void 0,a()(y.a,{},void 0,s)),I,!!u&&a()(m.a,{},void 0,a()(b.a,{},void 0,u))),x&&a()(S.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,playlistType:l,contentHeight:T,viewportWidth:P,viewportHeight:g,scrollTop:M}))},t}(d.Component);t.a=M},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(26)),h=(n(77),
n(73)),f=n(372),v=n(158),m=n(161),g=n(103),y=n(130),b=n(145),S=n(193),I=n(104),M=n(253),C=n(162),w=n(219),D=n(192),P=n(306),T=a()(y.a,{}),x=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onContentMeasure=function(e){var t=e.width,n=e.height;a.setState({isContentMeasured:!0,contentWidth:t,contentHeight:n})},a.state={isContentMeasured:!1,contentWidth:null,contentHeight:null},a}return c()(t,e),t.prototype.shouldComponentUpdate=function(e,t){
return n.i(p.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.metadataListEntityID,s=e.metadataKey,o=e.title,l=e.type,u=e.summary,c=e.thumb,d=e.art,p=e.listType,y=e.listStyle,x=e.isListReady,E=e.pageWidth,N=e.pageHeight,L=e.scrollTop,A=e.posterWidth,k=e.posterTop,_=this.state,O=_.isContentMeasured,j=_.contentWidth,R=_.contentHeight,U=!(!O||!r);return a()(m.a,{serverEntityID:t,providerEntityID:n,
metadataItemEntityID:i,metadataKey:s,type:l,thumb:c,art:d,pageWidth:E,pageHeight:N,scrollTop:L,posterWidth:A,posterTop:k},void 0,a()(h.a,{ignorePosition:!0,onMeasure:this.onContentMeasure},void 0,a()(g.a,{},void 0,a()(b.a,{},void 0,a()(f.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i})),a()(S.a,{},void 0,a()(I.a,{},void 0,o),a()(M.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}))),T,!!u&&a()(g.a,{},void 0,a()(C.a,{},void 0,u))),U&&a()(v.a,{serverEntityID:t,
providerEntityID:n,metadataListEntityID:r,listType:p,listStyle:y,component:P.a,initialSize:20,showArtwork:!!d,viewportWidth:j,viewportHeight:N,contentHeight:R,scrollTop:L}),x&&a()(g.a,{},void 0,a()(w.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),a()(D.a,{serverEntityID:t,providerEntityID:n})))},t}(d.Component);t.a=x},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(26)),h=(n(77),
n(73)),f=n(158),v=n(161),m=n(103),g=n(130),y=n(145),b=n(193),S=n(194),I=n(104),M=n(376),C=n(252),w=n(162),D=n(219),P=n(192),T=n(306),x=n(650),E=n(2298),N=a()(g.a,{}),L=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onContentMeasure=function(e){var t=e.width,n=e.height;a.setState({isContentMeasured:!0,contentWidth:t,contentHeight:n})},a.state={isContentMeasured:!1,contentWidth:null,contentHeight:null},a}return c()(t,e),
t.prototype.shouldComponentUpdate=function(e,t){return n.i(p.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,r=e.metadataListEntityID,s=e.metadataKey,o=e.title,l=e.type,u=e.year,c=e.summary,d=e.thumb,p=e.art,g=e.listType,L=e.listStyle,A=e.isListReady,k=e.pageWidth,_=e.pageHeight,O=e.scrollTop,j=e.posterWidth,R=e.posterTop,U=e.record,z=this.state,B=z.isContentMeasured,F=z.contentWidth,V=z.contentHeight,Q=!(!B||!r)
;return a()(v.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,attribution:x.a,metadataKey:s,type:l,thumb:d,art:p,pageWidth:k,pageHeight:_,scrollTop:O,posterWidth:j,posterTop:R},void 0,a()(h.a,{ignorePosition:!0,onMeasure:this.onContentMeasure},void 0,a()(m.a,{},void 0,a()(y.a,{},void 0,a()(I.a,{},void 0,o)),a()(b.a,{},void 0,a()(I.a,{},void 0,u)),a()(S.a,{},void 0,a()(E.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,record:U}),a()(M.a,{serverEntityID:t,
providerEntityID:n,metadataItemEntityID:i}))),N,a()(m.a,{},void 0,a()(C.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),a()(w.a,{},void 0,c))),Q&&a()(f.a,{serverEntityID:t,providerEntityID:n,metadataListEntityID:r,listType:g,listStyle:L,component:T.a,initialSize:20,showArtwork:!!p,viewportWidth:F,viewportHeight:_,contentHeight:V,scrollTop:O}),A&&a()(m.a,{},void 0,a()(D.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i}),a()(P.a,{serverEntityID:t,providerEntityID:n})))
},t}(d.Component);t.a=L},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(26),f=(n(77),n(984)),v=n(628),m=n(73),g=n(84),y=n(158),b=n(161),S=n(103),I=n(130),M=n(145),C=n(193),w=n(194),D=n(1006),P=n(104),T=n(253),x=n(459),E=n(376),N=n(252),L=n(162),A=n(219),k=n(651),_=n(192),O=n(306),j=a()(g.a,{}),R=a()(I.a,{}),U=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onContentMeasure=function(e){
var t=e.width,n=e.height;a.setState({isContentMeasured:!0,contentWidth:t,contentHeight:n})},a.state={isContentMeasured:!1,contentWidth:null,contentHeight:null},a}return c()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(h.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,i=e.providerEntityID,r=e.metadataItemEntityID,s=e.metadataListEntityID,o=e.onDeckMetadataItemEntityID,l=e.extrasMetadataListEntityID,u=e.metadataKey,c=e.title,d=e.type,h=e.year,g=e.summary,I=e.thumb,U=e.art,z=e.listType,B=e.listStyle,F=e.isListReady,V=e.pageWidth,Q=e.pageHeight,H=e.scrollTop,W=e.posterWidth,Y=e.posterTop,G=this.state,K=G.isContentMeasured,q=G.contentWidth,X=G.contentHeight,Z=!(!K||!s);return a()(b.a,{serverEntityID:t,providerEntityID:i,
metadataItemEntityID:r,metadataKey:u,type:d,thumb:I,art:U,pageWidth:V,pageHeight:Q,scrollTop:H,posterWidth:W,posterTop:Y},void 0,a()(m.a,{ignorePosition:!0,onMeasure:this.onContentMeasure},void 0,a()(S.a,{},void 0,a()(M.a,{},void 0,a()(P.a,{},void 0,c)),a()(C.a,{},void 0,a()(P.a,{},void 0,h),a()(T.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:r})),a()(w.a,{},void 0,a()(P.a,{},void 0,a()(D.a,{},void 0,o?a()("span",{},void 0,n.i(p.default)("On Deck")," ",j,a()(f.a,{serverEntityID:t,
providerEntityID:i,metadataItemEntityID:o})):a()(v.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:r})),a()(x.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:r})),a()(E.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:r}))),R,a()(S.a,{},void 0,a()(N.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:r}),a()(L.a,{},void 0,g))),Z&&a()(y.a,{serverEntityID:t,providerEntityID:i,metadataListEntityID:s,listType:z,listStyle:B,component:O.a,initialSize:20,
showArtwork:!!U,viewportWidth:q,viewportHeight:Q,contentHeight:X,scrollTop:H}),F&&a()(S.a,{},void 0,a()(A.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:r}),!!l&&a()(k.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:r,metadataListEntityID:l,title:n.i(p.default)("Extras")}),a()(_.a,{serverEntityID:t,providerEntityID:i})))},t}(d.Component);t.a=U},function(e,t,n){"use strict";function i(e){
var t=e.oauthProviders,i=e.isOauthProvidersPending,a=e.isOauthProvidersPopulated,s=e.oauthProvidersError;return r()(h.a,{innerClassName:v.a.innerModalBody},void 0,r()("p",{},void 0,n.i(u.default)("Choose your cloud storage provider. You can use an existing account or create a new one."),m,n.i(u.default)("You'll be able to link additional providers later in settings.")),i&&!a&&r()("div",{className:v.a.providersButtonsSpinner},void 0,g),a&&r()("div",{
className:4===t.length?v.a.providerButtonsContainerNarrow:v.a.providerButtonsContainer},void 0,t.map(function(e){var t=e.image,i=e.label,a=e.url;return r()(d.a,{className:v.a.vendorLogoButton,"aria-label":i,to:o.join([a],{origin:n.i(l.a)(window.location.href,"#!/cpms")})},i,r()(p.a,{className:v.a.vendorLogo,src:t}))})),s&&n.i(u.default)("An error occurred retrieving cloud storage providers. Please try again."))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),
n(19)),l=n(574),u=n(4),c=n(38),d=n(47),p=n(863),h=n(69),f=n(2896),v=n.n(f),m=r()("br",{}),g=r()(c.a,{});t.a=i},function(e,t,n){"use strict";var i=n(11),a=n(911),r=n(2336);t.a=n.i(i.b)(a.a)(r.a)},function(e,t,n){"use strict";function i(e){
var t=e.isProvisionPersonalCloudServerPending,i=e.provisionPersonalCloudServerError,a=e.isConnectToPersonalCloudServerPending,s=e.connectToPersonalCloudServerError,d=e.isPersonalCloudServerDriveCachePending,v=e.isPersonalCloudServerDriveCachePopulated,m=e.personalCloudServerDriveCacheError,g=e.ownedPersonalCloudServerUrl,y=n.i(l.default)("Plex Cloud Setup");return t?r()(u.a,{title:y,description:n.i(l.default)("Creating a new Plex Cloud server just for you!")},void 0,p):i?r()(u.a,{title:y,
description:n.i(l.default)("An error occurred creating your Plex Cloud server.")},void 0,r()(c.a,{to:"#!/dashboard",kind:o.b.PRIMARY},void 0,n.i(l.default)("Continue"))):a?r()(u.a,{title:y,description:n.i(l.default)("Your Plex Cloud server is waking up.")},void 0,h):s?r()(u.a,{title:y,description:n.i(l.default)("Your Plex Cloud server is taking longer than expected to wake up. Check again later.")},void 0,r()(c.a,{to:"#!/dashboard",kind:o.b.PRIMARY
},void 0,n.i(l.default)("Continue"))):d?r()(u.a,{title:y,description:n.i(l.default)("Scanning your cloud storage. If you have lots of data, this may take a while.")},void 0,f):m?r()(u.a,{title:y,description:n.i(l.default)("Scanning your cloud storage is taking longer than expected. Check again later.")},void 0,r()(c.a,{to:"#!/dashboard",kind:o.b.PRIMARY},void 0,n.i(l.default)("Continue"))):v?r()(u.a,{title:y,
description:n.i(l.default)("Success! Plex Cloud is ready to go. This works just like a regular Plex Media Server. Pick it in the location menu of your favorite Plex app and stream away!")},void 0,r()(c.a,{to:g,kind:o.b.PRIMARY},void 0,n.i(l.default)("Continue"))):null}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(20)),l=n(4),u=n(159),c=n(47),d=n(38),p=r()(d.a,{}),h=r()(d.a,{}),f=r()(d.a,{});t.a=i},function(e,t,n){"use strict"
;var i=n(7),a=n.n(i),r=n(9),s=n.n(r),o=n(8),l=n.n(o),u=n(6),c=n.n(u),d=n(0),p=n.n(d),h=n(11),f=n(5),v=(n.n(f),n(19)),m=n(35),g=n(536),y=n(291),b=n(2338),S=n.i(f.createSelector)(g.a,function(e){return e?"#!/server/"+e.machineIdentifier+"/dashboard":null}),I=n.i(f.createSelector)(function(e){return e.ui.provisionPersonalCloudServerPage},S,function(e,t){return c()({},e,{provisionPersonalCloudServerUrl:v.join(["https://plex.tv","/api/v2/cloud_server/provision"]),ownedPersonalCloudServerUrl:t})}),M={
provisionPersonalCloudServer:y.b,populatePersonalCloudServerCache:y.c,connectToOwnedPersonalCloudServer:y.d},C=function(e){function t(){return a()(this,t),s()(this,e.apply(this,arguments))}return l()(t,e),t.prototype.componentWillMount=function(){this._populate(this.props)},t.prototype.componentWillReceiveProps=function(e){e.isConnectToPersonalCloudServerPopulated&&!this.props.isConnectToPersonalCloudServerPopulated&&this.props.populatePersonalCloudServerCache(),
e.isProvisionPersonalCloudServerPopulated&&!this.props.isProvisionPersonalCloudServerPopulated&&this.props.connectToOwnedPersonalCloudServer()},t.prototype._populate=function(e){var t=this;n.i(m.a)(function(){e.provisionPersonalCloudServer({url:t.props.provisionPersonalCloudServerUrl})})},t.prototype.render=function(){return p.a.createElement(b.a,this.props)},t}(d.Component);t.a=n.i(h.b)(I,M)(C)},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=n.n(d),h=n(34),f=n(26),v=n(661),m=n(20),g=n(187),y=n(2343),b=n(2342),S=function(e){function t(){return s()(this,t),l()(this,e.apply(this,arguments))}return c()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(f.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.machineIdentifier,n=e.selectedViewType;return a()(g.a,{metricsPage:h.a,metricsProperties:{pane:n},scrollDirection:m.a.NONE
},void 0,a()(y.a,{machineIdentifier:t,selectedViewType:n}),p.a.createElement(b.a,this.props))},t}(d.Component);t.a=n.i(v.a)(S)},function(e,t,n){"use strict";function i(){return n.i(m.createSelector)(S.a,n.i(I.a)(y.a.SUBSCRIBE),function(e,t){var n=t[0];if(n){var i=e[n];return i&&i.identifier}})}function a(){return n.i(m.createSelector)(function(e){return e.ui.recordingSchedulePage},function(e,t){return t.selectedViewType},n.i(b.a)(),i(),M.a,function(e,t,n,i,a){
var r=e.isPagePopulated,s=e.isCalendarPopulated,o=e.calendarError,l=e.isMediaSubscriptionsPopulated,u=e.mediaSubscriptionsError,c=e.calendar,d=!s&&!o,p=!l&&!u,h=d||p,f=!h&&l&&!e.mediaSubscriptions.length;return{isPagePopulated:r,machineIdentifier:n.machineIdentifier,showSpinner:h,showEmptyState:f,programGuideIdentifier:i,time:c?c.time:void 0,selectedViewType:t||a.calendarViewType}})}var r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(6),p=n.n(d),h=n(0),f=n.n(h),v=n(11),m=n(5),g=(n.n(m),
n(35)),y=n(133),b=n(46),S=n(231),I=n(789),M=n(111),C=n(86),w=n(358),D=n(2340),P=p()({saveExperienceSettings:C.a},w),T=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a._updateCalendar=function(){a.props.goToToday(),a.props.fetchCalendar(),a._resetUpdateTimeout()},a._updateTimeoutID=null,a}return c()(t,e),t.prototype.componentWillMount=function(){this._populate(),this._resetUpdateTimeout(),this._saveViewType()},t.prototype.componentWillReceiveProps=function(e){
var t=e.serverEntityID,n=e.time,i=e.selectedViewType;t!==this.props.serverEntityID&&this._populate(e),this._updateTimeoutID&&n!==this.props.time&&this._resetUpdateTimeout(),i!==this.props.selectedViewType&&this._saveViewType(e)},t.prototype.componentWillUnmount=function(){this._updateTimeoutID&&clearTimeout(this._updateTimeoutID),this.props.clearRecordingSchedulePage()},t.prototype._populate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;n.i(g.a)(function(){
e.initRecordingSchedulePage({serverEntityID:e.serverEntityID}),e.fetchCalendar(),e.fetchMediaSubscriptions()})},t.prototype._resetUpdateTimeout=function(){this._updateTimeoutID&&clearTimeout(this._updateTimeoutID),this._updateTimeoutID=setTimeout(this._updateCalendar,36e5)},t.prototype._saveViewType=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;e.saveExperienceSettings({calendarViewType:e.selectedViewType})},t.prototype.render=function(){
return this.props.isPagePopulated?f.a.createElement(D.a,this.props):null},t}(h.Component);t.a=n.i(v.b)(a,P)(T)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,i=e.machineIdentifier,a=e.showSpinner,s=e.showEmptyState,g=e.programGuideIdentifier,b=e.selectedViewType;if(a)return r()(p.a,{},void 0,r()(h.a,{},void 0,r()(d.a,{label:n.i(o.default)("Loading schedule")})));if(s&&g){var S=encodeURIComponent(i),I=encodeURIComponent(g);return r()(p.a,{},void 0,r()(h.a,{
icon:"plex-icon-calendar-560",title:n.i(o.default)("You have no recordings scheduled")},void 0,r()("span",{className:y.a.emptyDescription},void 0,r()(l.a,{message:n.i(o.default)("Check out the {openLink}Program Guide{closeLink} to browse available programming"),tags:[{open:"openLink",close:"closeLink",component:c.a,kind:u.b.PRIMARY,to:"#!/server/"+S+"/provider/"+I,target:"_blank"}]}))))}return s&&!g?r()(p.a,{},void 0,r()(h.a,{icon:"plex-icon-calendar-560",
title:n.i(o.default)("You have no recordings scheduled"),description:n.i(o.default)("You need a DVR before you can schedule recordings")})):r()("div",{className:y.a.schedulePageContent},void 0,r()(p.a,{innerClassName:y.a.schedulePageInnerContent},void 0,b===u.c.CALENDAR&&r()(v.a,{serverEntityID:t}),b===u.c.AGENDA&&r()(m.a,{serverEntityID:t})),r()(f.a,{serverEntityID:t}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),
n(4)),l=n(285),u=n(20),c=n(23),d=n(38),p=n(218),h=n(170),f=n(2366),v=n(2353),m=n(2346),g=n(2898),y=n.n(g);t.a=i},function(e,t,n){"use strict";function i(e){return e===m.c.AGENDA?n.i(h.default)("Agenda View"):n.i(h.default)("Calendar View")}var a=n(2),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=(n.n(p),n(4)),f=n(26),v=n(50),m=n(20),g=n(68),y=n(168),b=n(169),S=n(644),I=n(188),M=n(2344),C=r()(S.a,{}),w=function(e){function t(i,a){o()(this,t);var r=u()(this,e.call(this,i,a))
;return r.onViewsMenuButtonPress=function(e){r.setState({isViewsMenuOpen:!r.state.isViewsMenuOpen})},r.onViewsMenuClose=function(){r.setState({isViewsMenuOpen:!1})},r.state={isViewsMenuOpen:!1},r._viewsMenuButtonID=n.i(v.a)(),r}return d()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(f.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.machineIdentifier,a=e.selectedViewType,s=this.state.isViewsMenuOpen
;return r()(y.a,{},void 0,r()(b.a,{},void 0,r()("span",{},void 0,n.i(h.default)("Recording Schedule"),C),r()(I.a,{id:this._viewsMenuButtonID,title:i(a),hasMenu:!0,isMenuOpen:s,isSelected:!0,onPress:this.onViewsMenuButtonPress}),r()(g.a,{target:this._viewsMenuButtonID,isOpen:s,onMenuClose:this.onViewsMenuClose},void 0,m.c.all.map(function(e){return r()(M.a,{machineIdentifier:t,selectedViewType:a,viewType:e},e,i(e))}))))},t}(p.Component);t.a=w},function(e,t,n){"use strict";function i(e){
var t=e.children,n=e.machineIdentifier,i=e.selectedViewType,a=e.viewType,s=encodeURIComponent(n);return r()(o.a,{to:"#!/server/"+s+"/schedule?view="+a,isSelected:i===a},void 0,t)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(93));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,i=e.showError,a=e.isEmpty,s=e.subscriptionCount;return i?r()(l.a,{title:n.i(o.default)("There was an error loading the agenda")}):a?r()(u.a,{subscriptionCount:s}):r()("div",{},void 0,p,r()(d.a,{
serverEntityID:t}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(251),u=n(1011),c=n(2351),d=n(2349),p=r()(c.a,{});t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(function(e){return e.ui.recordingSchedulePage},function(e){var t=e.mediaSubscriptions,n=e.calendar,i=e.isCalendarPopulated,a=e.calendarError;return{showError:!i&&!!a,isEmpty:!n.scheduled.length,subscriptionCount:t.length}})}var a=n(11),r=n(5),s=(n.n(r),n(2345));t.a=n.i(a.b)(i)(s.a)},function(e,t,n){
"use strict";function i(e,t,i,a,r,s){return"episode"!==e?i:t+" - "+n.i(S.a)({seasonIndex:a,episodeIndex:r,date:s})+" - "+i}var a=n(2),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(4),h=n(40),f=n.n(h),v=n(0),m=(n.n(v),n(89)),g=n(407),y=n(343),b=n(546),S=n(279),I=n(26),M=n(23),C=n(213),w=n(186),D=n(966),P=n(217),T=n(1012),x=n(453),E=n(304),N=n(1009),L=n(2899),A=n.n(L),k={context:m.a},_=r()(N.a,{}),O=function(e){function t(n,i){o()(this,t);var a=u()(this,e.call(this,n,i))
;return a.onLinkPress=function(e){a.setState({isAiringDetailsModalOpen:!0})},a.onConflictIconPress=function(e){a.setState({isConflictsModalOpen:!0})},a.onRecordingModify=function(){a.setState({isAiringDetailsModalOpen:!1,isSubscribeModalOpen:!0})},a.onAiringDetailsModalClose=function(){a.setState({isAiringDetailsModalOpen:!1})},a.onSubscribeModalClose=function(){a.setState({isSubscribeModalOpen:!1,isConflictsModalOpen:!1})},a.state={isAiringDetailsModalOpen:!1,isSubscribeModalOpen:!1,
isConflictsModalOpen:!1},a}return d()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(I.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,a=e.mediaSubscriptionEntityID,s=e.metadataItemEntityID,o=e.prePlayRoute,l=e.type,u=e.title,c=e.grandparentTitle,d=e.index,h=e.parentIndex,v=e.originallyAvailableAt,m=e.error,S=e.mediaItem,I=e.isRecording,N=e.recordingProgress,L=e.isComplete,O=e.hasError,j=e.hasSubscription,R=e.hasConflicts,U=e.showPlay,z=e.showDate,B=e.timeFormat,F=e.onPlayPress,V=this.state,Q=V.isAiringDetailsModalOpen,H=V.isSubscribeModalOpen,W=V.isConflictsModalOpen,Y=S.beginsAt,G=S.endsAt,K=S.startOffsetSeconds,q=void 0===K?0:K,X=S.endOffsetSeconds,Z=void 0===X?0:X,J=S.premiere,$=f.a.unix(Y),ee=n.i(b.a)(Y-q,G+Z,{
timeFormat:B}),te=n.i(y.a)(Y),ne=$.format("ddd, MMM D");n.i(g.a)(Y)?ne=n.i(p.default)("Yesterday"):te&&(ne=n.i(p.default)("Today"));var ie=c?c:u,ae=i(l,c,u,h,d,v);return r()("div",{className:(A.a.event||"")+" "+(L&&A.a.isComplete||"")+" "+(O&&A.a.hasError||"")},void 0,r()(M.a,{className:A.a.underlay,to:o,onPress:o?void 0:this.onLinkPress}),r()("div",{className:A.a.overlay},void 0,r()("div",{className:(A.a.date||"")+" "+(te&&A.a.isToday||"")},void 0,z&&ne),r()("div",{className:A.a.time
},void 0,ee),r()("div",{className:A.a.title,title:ae},void 0,J&&_,ie,r()("div",{className:A.a.titleDetails},void 0,"movie"===l&&r()(x.a,{metadataItemEntityID:s}),"episode"===l&&r()(E.a,{metadataItemEntityID:s}))),r()("div",{className:A.a.status},void 0,I&&!O&&r()("div",{className:A.a.recording},void 0,r()(C.a,{size:24,backgroundClassName:A.a.recordingProgressBackground,lineWidth:2,progress:N,showProgressText:!1}),r()("span",{className:A.a.recordingIcon})),U&&r()(w.a,{title:u,onPress:F
}),O&&r()(T.a,{error:m,onPress:R?this.onConflictIconPress:this.onLinkPress}))),r()(D.a,{isOpen:Q,metricsProperties:k,serverEntityID:t,metadataItemEntityID:s,error:m,mediaItem:S,hasSubscription:j,isComplete:L,hasError:O,isRecording:I,recordingProgress:N,onRecordingModify:this.onRecordingModify,onModalClose:this.onAiringDetailsModalClose}),j&&r()(P.a,{isOpen:H||W,metricsProperties:k,serverEntityID:t,mediaSubscriptionEntityID:a,metadataItemEntityID:s,subscriptionType:l,showConflicts:W,
isRecordingSchedule:!0,onModalClose:this.onSubscribeModalClose}))},t}(v.Component);t.a=O},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.events;return r()("div",{},void 0,n.map(function(e,i){var a=o.a.unix(e.beginsAt),s=0===i||!o.a.unix(n[i-1].beginsAt).isSame(a,"day");return r()(u.a,{component:c.a,serverEntityID:t,metadataItemEntityID:e.metadataItem,mediaSubscriptionID:e.mediaSubscriptionID,eventID:e.metadataItem.key,status:e.status,error:e.error,linkedKey:e.linkedKey,
mediaItem:e.mediaItem,hasConflicts:!(!e.conflicts||!e.conflicts.length),showDate:s},i)}))}var a=n(2),r=n.n(a),s=n(40),o=n.n(s),l=n(0),u=(n.n(l),n(1010)),c=n(2347);t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(function(e){return e.ui.recordingSchedulePage.calendar},function(e){return{events:e.scheduled}})}var a=n(11),r=n(5),s=(n.n(r),n(2348));t.a=n.i(a.b)(i)(s.a)},function(e,t,n){"use strict";function i(e){return r()("div",{className:c.a.agendaHeader
},void 0,o.a.createElement(l.a,e))}var a=n(2),r=n.n(a),s=n(0),o=n.n(s),l=n(1013),u=n(2900),c=n.n(u);t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(function(e){return e.ui.recordingSchedulePage},function(e){var t=e.calendar,n=t.firstEvent,i=t.lastEvent;return{startTime:n?n.beginsAt:void 0,endTime:i?i.beginsAt:void 0}})}var a=n(11),r=n(5),s=(n.n(r),n(2350));t.a=n.i(a.b)(i)(s.a)},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(73),f=n(251),v=n(2364),m=n(2359),g=n(2357),y=n(1011),b=n(2901),S=n.n(b),I=a()(m.a,{}),M=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onMeasure=function(e){var t=e.width,n=a.state.visibleDays,i=Math.min(Math.floor(t/120),7);i!==n&&a.props.onVisibleDaysChange(i),a.setState({isMeasured:!0,width:t,visibleDays:i})},a.state={isMeasured:!1,width:null,visibleDays:0},a}
return c()(t,e),t.prototype.render=function(){var e=this.props,t=e.serverEntityID,i=e.showError,r=e.isEmpty,s=e.subscriptionCount,o=e.visibleDays,l=e.onGoToPreviousRangePress,u=e.onGoToNextRangePress;return i?a()(f.a,{title:n.i(p.default)("There was an error loading the calendar")}):r?a()(y.a,{subscriptionCount:s}):a()(h.a,{className:S.a.calendar,ignoreHeight:!0,onMeasure:this.onMeasure},void 0,o===this.state.visibleDays&&a()("div",{},void 0,a()(v.a,{onGoToPreviousRangePress:l,
onGoToNextRangePress:u}),I,a()(g.a,{serverEntityID:t})))},t}(d.Component);t.a=M},function(e,t,n){"use strict";function i(){return n.i(v.createSelector)(function(e){return e.ui.recordingSchedulePage},function(e){var t=e.mediaSubscriptions,n=e.calendar,i=e.isCalendarPopulated,a=e.calendarError;return{showError:!i&&!!a,isEmpty:!n.scheduled.length,subscriptionCount:t.length,visibleDays:n.visibleDays}})}
var a=n(6),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=n.n(p),f=n(11),v=n(5),m=(n.n(v),n(35)),g=n(358),y=n(2352),b=function(e){function t(){var i,a,r;o()(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=a=u()(this,e.call.apply(e,[this].concat(l))),a.onVisibleDaysChange=function(e){n.i(m.a)(function(){a.props.setVisibleDays({visibleDays:e})})},a.onGoToPreviousRangePress=function(){a.props.goToPreviousRange()},
a.onGoToNextRangePress=function(){a.props.goToNextRange()},r=i,u()(a,r)}return d()(t,e),t.prototype.render=function(){return h.a.createElement(y.a,r()({onVisibleDaysChange:this.onVisibleDaysChange,onGoToPreviousRangePress:this.onGoToPreviousRangePress,onGoToNextRangePress:this.onGoToNextRangePress},this.props))},t}(p.Component);t.a=n.i(f.b)(i,g)(b)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.date;return r()("div",{className:u.a.day},void 0,r()(o.a,{serverEntityID:t,
date:n}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(2362)),l=n(2902),u=n.n(l);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.date,i=l.a.unix(t),a=n.i(p.a)(t),o=void 0;return o=n.i(d.a)(t)?n.i(s.default)("Yesterday"):a?n.i(s.default)("Today"):n.i(s.default)("{dayOfWeek} {monthNumber}/{dayNumber}",{dayOfWeek:n.i(c.a)(t,{abbreviate:!0}),monthNumber:i.month()+1,dayNumber:i.date()}),r()("div",{className:(f.a.dayOfWeek||"")+" "+(a&&f.a.isToday||""),title:o},void 0,o)}
var a=n(2),r=n.n(a),s=n(4),o=n(40),l=n.n(o),u=n(0),c=(n.n(u),n(804)),d=n(407),p=n(343),h=n(2903),f=n.n(h);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.days,n=u()(e,["days"]);return o()("div",{className:f.a.calendarDays},void 0,t.map(function(e){return d.a.createElement(p.a,r()({key:e,date:e},n))}))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(2354),h=n(2904),f=n.n(h);t.a=i},function(e,t,n){"use strict";function i(){
return n.i(r.createSelector)(function(e){return e.ui.recordingSchedulePage},function(e){return{days:e.calendar.days}})}var a=n(11),r=n(5),s=(n.n(r),n(2356));t.a=n.i(a.b)(i)(s.a)},function(e,t,n){"use strict";function i(e){var t=e.daysOfWeek,n=u()(e,["daysOfWeek"]);return o()("div",{className:f.a.container},void 0,t.map(function(e){return d.a.createElement(p.a,r()({key:e,date:e},n))}))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(2355),h=n(2905),f=n.n(h);t.a=i
},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(function(e){return e.ui.recordingSchedulePage.calendar},function(e){return{daysOfWeek:e.daysOfWeek}})}var a=n(11),r=n(5),s=(n.n(r),n(2358));t.a=n.i(a.b)(i)(s.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(89)),h=n(546),f=n(26),v=n(23),m=n(213),g=n(186),y=n(966),b=n(217),S=n(1009),I=n(1012),M=n(2907),C=n.n(M),w={context:p.b
},D=a()("div",{},void 0,a()(S.a,{})),P=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onLinkPress=function(e){a.setState({isAiringDetailsModalOpen:!0})},a.onConflictIconPress=function(e){a.setState({isConflictsModalOpen:!0})},a.onRecordingModify=function(){a.setState({isAiringDetailsModalOpen:!1,isSubscribeModalOpen:!0})},a.onAiringDetailsModalClose=function(){a.setState({isAiringDetailsModalOpen:!1})},a.onSubscribeModalClose=function(){a.setState({
isSubscribeModalOpen:!1,isConflictsModalOpen:!1})},a.state={isAiringDetailsModalOpen:!1,isSubscribeModalOpen:!1,isConflictsModalOpen:!1},a}return c()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(f.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,i=e.mediaSubscriptionEntityID,r=e.metadataItemEntityID,s=e.prePlayRoute,o=e.type,l=e.grandparentTitle,u=e.title,c=e.error,d=e.mediaItem,p=e.isRecording,f=e.recordingProgress,S=e.isComplete,M=e.hasError,P=e.hasSubscription,T=e.hasConflicts,x=e.showPlay,E=e.timeFormat,N=e.onPlayPress,L=this.state,A=L.isAiringDetailsModalOpen,k=L.isSubscribeModalOpen,_=L.isConflictsModalOpen,O=d.beginsAt,j=d.endsAt,R=d.startOffsetSeconds,U=void 0===R?0:R,z=d.endOffsetSeconds,B=void 0===z?0:z,F=d.premiere,V=n.i(h.a)(O-U,j+B,{
includeMinuteZero:!1,timeFormat:E}),Q=l?l:u;return a()("div",{className:(C.a.event||"")+" "+(S&&C.a.isComplete||"")+" "+(M&&C.a.hasError||"")},void 0,a()(v.a,{className:C.a.underlay,to:s,onPress:s?void 0:this.onLinkPress}),a()("div",{className:C.a.overlay},void 0,a()("div",{className:C.a.title,title:Q},void 0,Q),a()("div",{className:C.a.secondary},void 0,a()("div",{className:C.a.secondaryInfo},void 0,a()("div",{className:C.a.time},void 0,V),F&&D),a()("div",{className:C.a.status
},void 0,p&&!M&&a()("div",{className:C.a.recording},void 0,a()(m.a,{size:24,backgroundClassName:C.a.recordingProgressBackground,lineWidth:2,progress:f,showProgressText:!1}),a()("span",{className:C.a.recordingIcon})),x&&a()(g.a,{title:u,onPress:N}),M&&a()(I.a,{error:c,onPress:T?this.onConflictIconPress:this.onLinkPress})))),a()(y.a,{isOpen:A,metricsProperties:w,serverEntityID:t,metadataItemEntityID:r,error:c,mediaItem:d,hasSubscription:P,isComplete:S,hasError:M,isRecording:p,recordingProgress:f,
onRecordingModify:this.onRecordingModify,onModalClose:this.onAiringDetailsModalClose}),P&&a()(b.a,{isOpen:k||_,metricsProperties:w,serverEntityID:t,mediaSubscriptionEntityID:i,metadataItemEntityID:r,subscriptionType:o,showConflicts:_,isRecordingSchedule:!0,onModalClose:this.onSubscribeModalClose}))},t}(d.Component);t.a=P},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.events;return r()("div",{},void 0,n.map(function(e,n){return r()(o.a,{component:l.a,serverEntityID:t,
metadataItemEntityID:e.metadataItem,mediaSubscriptionID:e.mediaSubscriptionID,eventID:e.metadataItem.key,status:e.status,error:e.error,linkedKey:e.linkedKey,mediaItem:e.mediaItem,hasConflicts:!(!e.conflicts||!e.conflicts.length)},n)}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(1010)),l=n(2360);t.a=i},function(e,t,n){"use strict";function i(){return n.i(c.createSelector)(function(e){return e.ui.recordingSchedulePage.calendar},function(e,t){return t.date},function(e,t){var n=p.a.unix(t);return{
events:s.a.filter(e.scheduled,function(e){return p.a.unix(e.beginsAt).isSame(n,"day")})}})}function a(e){return l.a.createElement(h.a,e)}var r=n(3),s=n.n(r),o=n(0),l=n.n(o),u=n(11),c=n(5),d=(n.n(c),n(40)),p=n.n(d),h=n(2361);t.a=n.i(u.b)(i)(a)},function(e,t,n){"use strict";function i(e){var t=e.hasPastEvents,i=e.hasFutureEvents,a=e.onGoToPreviousRangePress,s=e.onGoToNextRangePress;return r()("div",{className:f.a.calendarHeader},void 0,r()("div",{className:f.a.calendarHeader},void 0,r()(d.a,{
className:(f.a.calendarNav||"")+" "+(!t&&f.a.calendarNavDisabled||""),kind:u.b.DEFAULT,size:u.d.MEDIUM,isDisabled:!t,onPress:a},void 0,r()(c.a,{name:"plex-icon-hub-prev-560","aria-label":n.i(l.default)("Previous Page")})),o.a.createElement(p.a,e),r()(d.a,{className:(f.a.calendarNav||"")+" "+(!i&&f.a.calendarNavDisabled||""),kind:u.b.DEFAULT,size:u.d.MEDIUM,isDisabled:!i,onPress:s},void 0,r()(c.a,{name:"plex-icon-hub-next-560","aria-label":n.i(l.default)("Next Page")}))))}
var a=n(2),r=n.n(a),s=n(0),o=n.n(s),l=n(4),u=n(20),c=n(27),d=n(23),p=n(1013),h=n(2908),f=n.n(h);t.a=i},function(e,t,n){"use strict";function i(){return n.i(p.createSelector)(function(e){return e.ui.recordingSchedulePage},function(e){var t=l.a.pick(e.calendar,"time","startTime","endTime","hasPastEvents","hasFutureEvents");return s()({},t)})}function a(e){return c.a.createElement(h.a,e)}var r=n(6),s=n.n(r),o=n(3),l=n.n(o),u=n(0),c=n.n(u),d=n(11),p=n(5),h=(n.n(p),n(2363));t.a=n.i(d.b)(i)(a)
},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,i=e.mediaSubscriptionEntityIDs,a=e.showError,s=e.moveIndex,d=e.onSubscriptionDragMove,h=e.onSubscriptionDragEnd;return r()("div",{className:p.a.pane},void 0,r()("div",{className:p.a.paneHeader},void 0,n.i(o.default)("Recording Priority")),r()(l.a,{className:p.a.paneScroller,autoScroll:!0},void 0,a?r()("div",{className:p.a.error
},void 0,r()("div",{},void 0,n.i(o.default)("There was an error loading recordings.")),r()("div",{},void 0,n.i(o.default)("Please try again."))):i.map(function(e,n){var i=null!=s,a=i&&s===n,o=i&&s===n+1;return r()(u.a,{serverEntityID:t,mediaSubscriptionEntityID:e,isDraggingBefore:a,isDraggingAfter:o,sortIndex:n,onSubscriptionDragMove:d,onSubscriptionDragEnd:h},e)})),r()(c.a,{serverEntityID:t}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(67),u=n(2369),c=n(2368),d=n(2910),p=n.n(d);t.a=i
},function(e,t,n){"use strict";function i(){return n.i(v.createSelector)(function(e){return e.ui.recordingSchedulePage},function(e){var t=e.mediaSubscriptions,n=e.isMediaSubscriptionsPopulated,i=e.mediaSubscriptionsError;return{mediaSubscriptionEntityIDs:t,showError:!n&&!!i}})}var a=n(6),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=n.n(p),f=n(11),v=n(5),m=(n.n(v),n(35)),g=n(358),y=n(2365),b=function(e){function t(i,a){o()(this,t);var s=u()(this,e.call(this,i,a))
;return s.onSubscriptionDragMove=function(e){s.setState({moveIndex:e})},s.onSubscriptionDragEnd=function(e,t){var i=s.state.moveIndex;t&&null!=i&&n.i(m.a)(function(){s.props.moveMediaSubscription(r()({},e,{moveIndex:i}))}),s.setState({moveIndex:null})},s.state={moveIndex:null},s}return d()(t,e),t.prototype.render=function(){return h.a.createElement(y.a,r()({moveIndex:this.state.moveIndex,onSubscriptionDragMove:this.onSubscriptionDragMove,onSubscriptionDragEnd:this.onSubscriptionDragEnd
},this.props))},t}(p.Component);t.a=n.i(f.b)(i,{moveMediaSubscription:g.moveMediaSubscription})(b)},function(e,t,n){"use strict";function i(e){var t=void 0;switch(e){case"movie":t=[w.a,P.a];break;case"show":t=[w.a,N.a];break;case"episode":t=[D.a,T.a];break;case"playlist":t=[w.a,N.a];break;default:t=[w.a]}return t.push(L.a),t}
var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(7),d=n.n(c),p=n(9),h=n.n(p),f=n(8),v=n.n(f),m=n(0),g=n.n(m),y=n(26),b=n(132),S=n(27),I=n(23),M=n(301),C=n(248),w=n(452),D=n(622),P=n(986),T=n(629),x=n(217),E=n(2372),N=n(2371),L=n(2370),A=n(2911),k=n.n(A),_=function(e){function t(n,i){d()(this,t);var a=h()(this,e.call(this,n,i));return a.onLinkPress=function(e){a.setState({isSubscribeModalOpen:!0})},a.onSubscribeModalClose=function(){a.setState({isSubscribeModalOpen:!1})},a.state={
isSubscribeModalOpen:!1},a}return v()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(y.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,a=e.mediaSubscriptionEntityID,s=e.type,l=e.thumb,c=e.grandparentThumb,d=e.connectDragSource,p=u()(e,["serverEntityID","mediaSubscriptionEntityID","type","thumb","grandparentThumb","connectDragSource"]),h=this.state.isSubscribeModalOpen,f="playlist"===s?"show":s;return o()("div",{className:k.a.subscription
},void 0,o()(I.a,{className:k.a.link,onPress:this.onLinkPress},void 0,o()("div",{className:k.a.linkContainer},void 0,o()(M.a,{className:k.a.posterContainer,serverEntityID:t,component:C.a,type:f,width:48,height:n.i(b.a)(48,f),url:c||l}),o()("div",{className:k.a.titleContainer},void 0,i(s).map(function(e,t){return g.a.createElement(E.a,r()({key:t,component:e,isSecondary:t>0,type:s},p))})))),d(o()("div",{className:k.a.dragHandle},void 0,o()(S.a,{className:k.a.dragIcon,name:"plex-icon-reorder-560"
})),{dropEffect:"copy"}),o()(x.a,{isOpen:h,serverEntityID:t,mediaSubscriptionEntityID:a,subscriptionType:s,onModalClose:this.onSubscribeModalClose}))},t}(m.Component);_.defaultProps={connectDragSource:function(e){return e}},t.a=_},function(e,t,n){"use strict";function i(e){return{item:e.getItem(),itemType:e.getItemType(),currentOffset:e.getSourceClientOffset()}}var a=n(2),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=(n.n(p),n(264)),f=(n.n(h),
n(26)),v=n(57),m=n.n(v),g=n(309),y=n(606),b=n(1014),S=n(2912),I=n.n(S),M=parseInt(m.a.recordingPriorityPaneWidth,10),C=parseInt(m.a.recordingPriorityDragHandleWidth,10),w=function(e){function t(){return o()(this,t),u()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(f.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.item,i=e.itemType,a=e.currentOffset;if(!a||i!==g.a)return null
;var s=a.x,o=a.y,l=M-C,u="translate3d("+(s-l)+"px, "+o+"px, 0)",c={position:"absolute",WebkitTransform:u,msTransform:u,transform:u};return r()(y.a,{},void 0,r()("div",{className:I.a.dragPreview,style:c},void 0,r()(b.a,{serverEntityID:t,mediaSubscriptionEntityID:n.mediaSubscriptionEntityID})))},t}(p.Component);t.a=n.i(h.DragLayer)(i)(w)},function(e,t,n){"use strict";function i(e,t){return{connectDragPreview:e.dragPreview(),connectDragSource:e.dragSource(),isDragging:t.isDragging()}}
function a(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver()}}var r=n(2),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=(n.n(h),n(39)),v=(n.n(f),n(264)),m=(n.n(v),n(491)),g=(n.n(m),n(26)),y=n(309),b=n(469),S=n(1014),I=n(2913),M=n.n(I),C={beginDrag:function(e){return{mediaSubscriptionEntityID:e.mediaSubscriptionEntityID}},endDrag:function(e,t,n){e.onSubscriptionDragEnd(t.getItem(),t.didDrop())}},w={hover:function(e,t,i){
var a=n.i(f.findDOMNode)(i).getBoundingClientRect(),r=(a.bottom-a.top)/2,s=t.getClientOffset(),o=s.y-a.top,l=e.sortIndex,u=o>r?l+1:l;e.onSubscriptionDragMove(u)}},D=function(e){function t(){return l()(this,t),c()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.componentDidMount=function(){this.props.connectDragPreview(n.i(m.getEmptyImage)())},t.prototype.shouldComponentUpdate=function(e,t){return n.i(g.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,n=e.mediaSubscriptionEntityID,i=e.isDragging,a=e.isDraggingBefore,r=e.isDraggingAfter,o=e.isOver,l=e.connectDropTarget,u=e.connectDragSource;return l(s()("div",{className:(M.a.dragSource||"")+" "+(i&&b.a||"")+" "+(a&&o&&b.b||"")+" "+(r&&o&&b.c||"")},void 0,s()(S.a,{serverEntityID:t,mediaSubscriptionEntityID:n,connectDragSource:u})))},t}(h.Component);t.a=n.i(v.DropTarget)(y.a,w,a)(n.i(v.DragSource)(y.a,C,i)(D))},function(e,t,n){"use strict";function i(e,t,i){
return e?n.i(c.a)(e,t)?n.i(l.default)("Airing now"):n.i(u.a)(e,null,{timeFormat:i}):n.i(l.default)("No upcoming airings")}function a(e){var t=e.className,n=e.beginsAt,a=e.endsAt,r=e.timeFormat,o=i(n,a,r);return s()("span",{className:t},void 0,o)}var r=n(2),s=n.n(r),o=n(0),l=(n.n(o),n(4)),u=n(803),c=n(547);t.a=a},function(e,t,n){"use strict";function i(e){if("show"===e)return n.i(l.default)("Series")}function a(e){var t=e.className,n=e.type;return s()("span",{className:t},void 0,s()(u.a,{
className:d.a.seriesIcon,name:"plex-icon-dvr-series-560"}),i(n))}var r=n(2),s=n.n(r),o=n(0),l=(n.n(o),n(4)),u=n(27),c=n(2914),d=n.n(c);t.a=a},function(e,t,n){"use strict";function i(e){var t=e.component,n=e.isSecondary,i=o()(e,["component","isSecondary"]);return u.a.createElement(t,r()({className:n?d.a.secondaryTitle:d.a.title},i))}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(2915),d=n.n(c);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityIDs,n=e.query,i=e.isSearchPending,a=e.searchAllServers,s=e.onSearchAllChange;return r()(u.a,{metricsPage:o.C,metricsProperties:{singleServer:!a},allowBackgroundLightPreset:!0,scrollDirection:l.a.NONE},void 0,r()(c.a,{isSearchPending:i,query:n,searchAllServers:a,onSearchAllChange:s}),r()(d.a,{serverEntityIDs:t,query:n}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(34)),l=n(20),u=n(187),c=n(2377),d=n(2376);t.a=i},function(e,t,n){"use strict";function i(){
return n.i(b.createSelector)(function(e){return e.servers},function(e,t){return t.serverEntityID},M.a,C.a,function(e,t,n,i){var a=i.searchAllServers;return e.reduce(function(e,i){if(i!==t&&!a)return e;var r=n[i];return g.a.isMatch(r,{isConnected:!0,isFullServer:!0})?e.concat(i):e},[])})}function a(){return n.i(I.a)(i(),function(e){return e})}function r(){return n.i(b.createSelector)(function(e){return e.ui.searchPage},a(),C.a,function(e,t,n){return{serverEntityIDs:t,
searchAllServers:n.searchAllServers,isSearchPending:!!g.a.findWhere(e.searches,{isSearchPending:!0})}})}var s=n(6),o=n.n(s),l=n(7),u=n.n(l),c=n(9),d=n.n(c),p=n(8),h=n.n(p),f=n(0),v=n.n(f),m=n(3),g=n.n(m),y=n(11),b=n(5),S=(n.n(b),n(35)),I=n(228),M=n(179),C=n(111),w=n(899),D=n(86),P=n(2373),T={populateSearchProviders:w.a,clearSearchPage:w.b,saveExperienceSettings:D.a},x=function(e){function t(){var i,a,r;u()(this,t);for(var s=arguments.length,o=Array(s),l=0;l<s;l++)o[l]=arguments[l]
;return i=a=d()(this,e.call.apply(e,[this].concat(o))),a.onSearchAllChange=function(e){n.i(S.a)(function(){a.props.saveExperienceSettings({searchAllServers:e})})},r=i,d()(a,r)}return h()(t,e),t.prototype.componentWillMount=function(){this._populate()},t.prototype.componentWillReceiveProps=function(e){e.serverEntityIDs!==this.props.serverEntityIDs&&this._populate(e)},t.prototype.componentWillUnmount=function(){this.props.clearSearchPage()},t.prototype._populate=function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;n.i(S.a)(function(){e.populateSearchProviders(e.serverEntityIDs)})},t.prototype.render=function(){return v.a.createElement(P.a,o()({},this.props,{onSearchAllChange:this.onSearchAllChange}))},t}(f.Component);t.a=n.i(y.b)(r,T)(x)},function(e,t,n){"use strict";function i(e){var t=e.isSearchCapable,i=e.providers,a=e.searchAllServers,s=e.columnAdjustment;return t?o()(p.a,{innerClassName:v.a.searchPageContent
},void 0,i.map(function(e){return u.a.createElement(d.a,r()({key:e.providerEntityID,columnAdjustment:s,searchAllServers:a},e))})):o()(h.a,{title:n.i(c.default)("This server does not support search"),description:n.i(c.default)("Browse libraries using the sidebar")})}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(0),u=n.n(l),c=n(4),d=n(2378),p=n(218),h=n(160),f=n(2916),v=n.n(f);t.a=i},function(e,t,n){"use strict";function i(){return n.i(S.createSelector)(function(e,t){return t.serverEntityIDs
},C.a,w.a,function(e,t,n){return e.reduce(function(e,i){return t[i].desktop.providers.forEach(function(t){var a=n[t];e[t]={serverEntityID:i,identifier:a.identifier,title:a.title}}),e},{})})}function a(){return n.i(M.a)(i(),function(e){return e})}function r(){return n.i(S.createSelector)(function(e){return e.ui.searchPage.searches},a(),function(e,t){var n=e.reduce(function(e,n){var i=n.providerEntityID,a=t[i];if(!a)return e;var r=e[a.identifier];return r||(r=e[a.identifier]={providerEntityID:i,
title:a.title,isSearchPending:!1,isSearchPopulated:!1,hubs:{}}),n.isSearchPending&&(r.isSearchPending=!0),n.isSearchPopulated&&(r.isSearchPopulated=!0),n.hubs.forEach(function(e){var t=e.results.map(function(e){return{serverEntityID:a.serverEntityID,providerEntityID:i,searchResultEntityID:e}}),n=r.hubs[e.hubIdentifier];n?(n.size+=e.size,n.results=n.results.concat(t)):r.hubs[e.hubIdentifier]={hubIdentifier:e.hubIdentifier,size:e.size,type:e.type,title:e.title,results:[].concat(t)}}),e},{})
;return m.a.map(n,function(e){return{providerEntityID:e.providerEntityID,title:e.title,isSearchPending:e.isSearchPending,isSearchPopulated:e.isSearchPopulated,hubs:m.a.values(e.hubs)}})})}function s(){return n.i(S.createSelector)(a(),r(),D.a,function(e,t,n){return{availableProviders:e,isSearchCapable:!!f()(e).length,searchAllServers:n.searchAllServers,columnAdjustment:n.columnAdjustment,providers:t}})}
var o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(65),f=n.n(h),v=n(3),m=n.n(v),g=n(0),y=n.n(g),b=n(11),S=n(5),I=(n.n(S),n(35)),M=n(526),C=n(179),w=n(231),D=n(111),P=n(899),T=n(2375),x={fetchSearchPage:P.c,clearSearchPage:P.b},E=function(e){function t(){return l()(this,t),c()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.componentWillMount=function(){var e=this;n.i(I.a)(function(){e._clear(),e._populate()})},t.prototype.componentWillReceiveProps=function(e){
var t=this,i=e.query!==this.props.query,a=e.availableProviders!==this.props.availableProviders;(i||a)&&n.i(I.a)(function(){i&&t._clear(e),t._populate(e)})},t.prototype._clear=function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props).clearSearchPage()},t.prototype._populate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;e.fetchSearchPage({availableProviders:e.availableProviders,query:e.query,limit:30})},t.prototype.render=function(){
return y.a.createElement(T.a,this.props)},t}(g.Component);t.a=n.i(b.b)(s,x)(E)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(26),f=n(50),v=n(20),m=n(38),g=n(216),y=n(168),b=n(169),S=n(988),I=n(189),M=n(188),C=n(644),w=n(2379),D=n(2917),P=n.n(D),T=a()(C.a,{}),x=a()(I.a,{},void 0,a()(g.a,{})),E=function(e){function t(i,a){s()(this,t);var r=l()(this,e.call(this,i,a));return r.onSearchMenuButtonPress=function(e){
r.setState({isSearchMenuOpen:!r.state.isSearchMenuOpen})},r.onSearchMenuClose=function(){r.setState({isSearchMenuOpen:!1})},r.state={isSearchMenuOpen:!1},r._searchMenuButtonID=n.i(f.a)(),r}return c()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(h.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.isSearchPending,i=e.query,r=e.searchAllServers,s=e.onSearchAllChange,o=this.state.isSearchMenuOpen
;return a()(y.a,{},void 0,a()(b.a,{},void 0,n.i(p.default)("Search"),T,a()(M.a,{id:this._searchMenuButtonID,title:r?n.i(p.default)("All Servers"):n.i(p.default)("This Server"),hasMenu:!0,isMenuOpen:o,isSelected:!0,onPress:this.onSearchMenuButtonPress}),a()(w.a,{target:this._searchMenuButtonID,isOpen:o,isSearchAll:r,onMenuClose:this.onSearchMenuClose,onSearchAllChange:s})),a()(S.a,{},void 0,a()("span",{},void 0,t?n.i(p.default)('Searching for "{query}"',{query:i
}):n.i(p.default)('Results for "{query}"',{query:i})),t&&a()(m.a,{className:P.a.spinner,size:v.d.SMALL})),x)},t}(d.Component);t.a=E},function(e,t,n){"use strict";function i(e){return function(t){return c.a.createElement(b.a,l()({component:S.a},e,t))}}function a(e){var t=e.title,a=e.hubs,r=e.columnAdjustment,o=e.searchAllServers,u=e.isSearchPending,b=e.isSearchPopulated;return s()("div",{},void 0,s()("div",{role:"heading","aria-level":"2",className:M.a.providerTitle},void 0,t,u&&s()(m.a,{
className:M.a.spinner,size:p.SMALL})),!a.length&&b?s()(y.a,{title:n.i(d.default)("No Results"),description:n.i(d.default)("Try a different query")}):a.map(function(e){var t=e.type,a=h.f,s=n.i(f.a)(t,a,{isSearch:!0,isSearchAll:o});return c.a.createElement(g.a,l()({},e,{key:e.hubIdentifier,listType:t,listContext:a,keyPropName:"searchResultEntityID",size:e.results.length,items:e.results,itemsOffset:0,layout:n.i(v.a)(t,a,r,s.length),cellRenderer:i({listType:t,listContext:a,titleComponents:s})}))}))}
var r=n(2),s=n.n(r),o=n(6),l=n.n(o),u=n(0),c=n.n(u),d=n(4),p=n(91),h=n(32),f=n(173),v=n(465),m=n(38),g=n(447),y=n(159),b=n(1039),S=n(2495),I=n(2918),M=n.n(I);t.a=a},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(14),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(4),m=n(68),g=n(93),y=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o];return n=i=c()(this,e.call.apply(e,[this].concat(s))),
i.onThisServerPress=function(){i.props.onSearchAllChange(!1)},i.onAllServersPress=function(){i.props.onSearchAllChange(!0)},a=n,c()(i,a)}return p()(t,e),t.prototype.render=function(){var e=this.props,t=e.isSearchAll,i=s()(e,["isSearchAll"]);return f.a.createElement(m.a,i,a()(g.a,{isSelected:!t,onPress:this.onThisServerPress},void 0,n.i(v.default)("This Server")),a()(g.a,{isSelected:t,onPress:this.onAllServersPress},void 0,n.i(v.default)("All Servers")))},t}(h.Component);t.a=y},function(e,t,n){
"use strict";function i(e){var t=e.isServerSignedIn,i=e.isPersonalCloudServer,a=e.avatarUrl,s=e.serviceAuthUrl,v=e.isUserSignedIn,y=e.serverEntityID,b=e.serverOwnerUsername,S=e.doesServerSupportClaimServer,I=e.isBusy,M=e.onClaimServerPress,C=e.onSignOutPress;return r()("div",{className:m.a.container},void 0,r()("div",{className:m.a.avatar},void 0,!b&&r()(d.a,{className:m.a.icon,name:"plex-icon-alert-560"}),r()(h.a,{serverEntityID:y,url:a,width:g,height:g})),t&&r()("div",{className:m.a.message
},void 0,r()("div",{className:m.a.messageHeaderDark},void 0,n.i(o.default)("Server signed in as")),r()("div",{className:m.a.messageDetailsLight},void 0,b)),v&&!t&&S&&r()("div",{className:m.a.message},void 0,r()("div",{className:m.a.messageHeaderLight},void 0,n.i(o.default)("This server is unclaimed and not secure")),r()("div",{className:m.a.messageDetailsDark},void 0,n.i(o.default)("Claiming this server will associate it with your Plex account.")),r()("div",{className:m.a.messageDetailsDark
},void 0,n.i(o.default)("This helps your devices find each other and helps keep your media safe."))),!v&&r()(p.a,{className:m.a.message,message:"Sign in with your Plex account to help your devices find this server, access your media remotely, and more. {openLink}Learn more{closeLink}",tags:[{open:"openLink",close:"closeLink",component:c.a,kind:l.PRIMARY,target:"_blank",to:"https://support.plex.tv/hc/en-us/articles/200484543-Connecting-a-Server"}]}),!t&&r()(f.a,{className:m.a.button,
kind:l.DEFAULT,size:u.MEDIUM,isSpinning:I,to:s,target:"_blank",onPress:M},void 0,n.i(o.default)("Claim Server")),t&&!i&&r()(f.a,{className:m.a.button,kind:l.DEFAULT,size:u.MEDIUM,isSpinning:I,onPress:C},void 0,n.i(o.default)("Sign Out")))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(74),u=n(91),c=n(23),d=n(27),p=n(285),h=n(945),f=n(92),v=n(2919),m=n.n(v),g=60;t.a=i},function(e,t,n){"use strict";function i(){return n.i(S.createSelector)(n.i(C.a)(),function(e){
return e?e.desktop.cloudAccount:null})}function a(){return n.i(S.createSelector)(n.i(C.a)(),function(e){return!!e&&n.i(I.a)(e.version,E.a.claimServer)})}function r(){return n.i(S.createSelector)(n.i(C.a)(),function(e){return!!e&&e.isClaimed})}function s(){return n.i(S.createSelector)(n.i(C.a)(),function(e){return!!e&&e.isPersonalCloudServer})}function o(){return n.i(S.createSelector)(function(e,t){return t.serverEntityID},function(e){return e.ui.claimServerPage},function(e){
return e.ui.signInLaunchPage},D.a,n.i(w.a)({claim:!0}),i(),a(),r(),s(),function(e,t,i,a,r,s,o,l,u){var c=!!s&&s.signedIn,d=a.isSignedIn&&c?a.thumb:null,p=s?s.username:null;return g()({isServerClaimed:l,isPersonalCloudServer:u,serverEntityID:e,avatarUrl:d,isUserSignedIn:a.isSignedIn,isPollClient:n.i(M.a)(),serverOwnerUsername:p,doesServerSupportClaimServer:o,isServerSignedIn:c,serviceAuthUrl:r},t,i,{isBusy:t.isBusy||i.isBusy})})}
var l=n(2),u=n.n(l),c=n(7),d=n.n(c),p=n(9),h=n.n(p),f=n(8),v=n.n(f),m=n(6),g=n.n(m),y=n(0),b=(n.n(y),n(11)),S=n(5),I=(n.n(S),n(551)),M=n(596),C=n(46),w=n(793),D=n(151),P=n(589),T=n(894),x=n(177),E=n(199),N=n(2380),L={dispatchResetSignInLaunchPage:P.a,dispatchReadStoredPIN:P.b,dispatchPreloadPIN:P.c,dispatchBeginPolling:P.d,dispatchRedeemCode:P.e,dispatchSignInWithAuthToken:P.f,dispatchClaimServer:T.a,dispatchSignOutServer:T.b,dispatchShowAlert:x.a,dispatchClaimOnSignIn:T.c,
dispatchMarkAsClaimServerRequest:T.d},A=function(e){function t(){var n,i,a;d()(this,t);for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o];return n=i=h()(this,e.call.apply(e,[this].concat(s))),i.onClaimServerPress=function(e){i.props.isUserSignedIn?i.props.dispatchClaimServer({serverEntityID:i.props.serverEntityID}):i.props.isPollClient?i.props.dispatchMarkAsClaimServerRequest(!0):i.props.dispatchPreloadPIN()},i.onSignOutPress=function(){i.props.dispatchSignOutServer({
serverEntityID:i.props.serverEntityID})},a=n,h()(i,a)}return v()(t,e),t.prototype.componentDidMount=function(){this.props.dispatchResetSignInLaunchPage(),this.props.isPollClient&&!this.props.isUserSignedIn?this.props.dispatchPreloadPIN():this.props.dispatchReadStoredPIN()},t.prototype.componentDidUpdate=function(e){this.props.code!==e.code&&this.props.code&&(this.props.isPollClient?this.props.dispatchBeginPolling({serviceAuthUrl:this.props.serviceAuthUrl,pinID:this.props.pinID
}):this.props.dispatchRedeemCode({serviceAuthUrl:this.props.serviceAuthUrl,pinID:this.props.pinID})),this.props.myPlexAccessToken!==e.myPlexAccessToken&&this.props.myPlexAccessToken&&this.props.dispatchSignInWithAuthToken({myPlexAccessToken:this.props.myPlexAccessToken});var t=this.props.errorMessage;t!==e.errorMessage&&t&&this.props.dispatchShowAlert(t),this.props.isUserSignedIn!==e.isUserSignedIn&&this.props.isUserSignedIn&&this.props.dispatchClaimOnSignIn({
serverEntityID:this.props.serverEntityID}),this.props.isServerClaimed!==e.isServerClaimed&&this.props.isServerClaimed&&this.props.dispatchMarkAsClaimServerRequest(!1)},t.prototype.render=function(){var e=this.props,t=e.errorMessage,n=e.avatarUrl,i=e.isUserSignedIn,a=e.isPollClient,r=e.isBusy,s=e.serviceAuthUrl,o=e.serverEntityID,l=e.serverOwnerUsername,c=e.doesServerSupportClaimServer,d=a&&!i?s:null;return u()(N.a,{isServerSignedIn:!!l,errorMessage:t,serviceAuthUrl:d,avatarUrl:n,
isUserSignedIn:i,isBusy:r,serverEntityID:o,serverOwnerUsername:l,doesServerSupportClaimServer:c,onClaimServerPress:this.onClaimServerPress,onSignOutPress:this.onSignOutPress})},t}(y.Component);t.a=n.i(b.b)(o,L)(A)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(34),f=n(74),v=(n(664),n(23)),m=n(126),g=n(127),y=n(377),b=n(656),S=n(657),I=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i))
;return a.onUnlinkPress=function(){a.setState({isUnlinkOauthProviderModalOpen:!0})},a.onUnlinkCancel=function(){a.setState({isUnlinkOauthProviderModalOpen:!1})},a.state={isUnlinkOauthProviderModalOpen:!1},a}return c()(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.isUnlinking&&!e.isUnlinking&&this.setState({isUnlinkOauthProviderModalOpen:!1})},t.prototype.render=function(){
var e=this.props,t=e.unlinkConfirmMessage,i=e.unlinkAccordMessage,r=e.isUnlinking,s=e.label,o=e.linked,l=e.nickname,u=e.url,c=e.metricsProperties,d=e.onUnlink,I=this.state.isUnlinkOauthProviderModalOpen;return a()(y.a,{},u,a()(b.a,{},void 0,o&&a()(v.a,{kind:f.PRIMARY,to:u},void 0,n.i(p.default)("Reauthorize")),o&&a()(v.a,{isDisabled:r,kind:f.PRIMARY,onPress:this.onUnlinkPress},void 0,n.i(p.default)("Unlink")),o&&a()(g.a,{isConfirmButtonSpinning:r,isCancelButtonDisabled:r,isOpen:I,
metricsPage:h.o,metricsProperties:c,title:n.i(p.default)("Unlink {oauthProvider}",{oauthProvider:s}),message:t,accordMessage:i,confirmLabel:n.i(p.default)("Unlink"),kind:f.DANGER,onConfirm:d,onCancel:this.onUnlinkCancel}),!o&&a()(v.a,{kind:f.PRIMARY,to:u},void 0,n.i(p.default)("Link"))),a()(S.a,{},void 0,a()(m.a,{},void 0,s),l||n.i(p.default)("No account linked")))},t}(d.Component);t.a=I},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(14),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(11),m=n(5),g=(n.n(m),n(857)),y=n(289),b=(n(664),n(2382)),S=n.i(m.createSelector)(function(e,t){return t.url},function(e,t){return t.returnUrl},function(e,t){return{url:t.url}},function(e,t,i){return{originalUrl:e,url:n.i(g.a)(e,t),metricsProperties:i}}),I={dispatchUnlinkOauthProvider:y.b},M=function(e){function t(){var n,i,a;l()(this,t)
;for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o];return n=i=c()(this,e.call.apply(e,[this].concat(s))),i.onUnlink=function(){i.props.dispatchUnlinkOauthProvider({url:i.props.originalUrl})},a=n,c()(i,a)}return p()(t,e),t.prototype.render=function(){var e=this.props,t=e.url,n=e.metricsProperties,i=(e.dispatchUnlinkOauthProvider,s()(e,["url","metricsProperties","dispatchUnlinkOauthProvider"]));return f.a.createElement(b.a,a()({},i,{url:t,metricsProperties:n,
onUnlink:this.onUnlink}))},t}(h.Component),C=n.i(v.b)(S,I)(M);C.propTypes={url:h.PropTypes.string.isRequired,returnUrl:h.PropTypes.string.isRequired},t.a=C},function(e,t,n){"use strict";function i(e){var t=e.serviceAuthUrl,i=e.showEnterFullScreen,a=e.onSwitchLayoutPress;return r()(u.a,{className:h.a.page,autoScroll:!0},void 0,i&&r()(d.a,{onSwitchLayoutPress:a}),f,r()("div",{className:h.a.container},void 0,r()("div",{className:h.a.section},void 0,r()(c.a,{to:t,target:"_blank",type:"submit",
isSpinning:!t},void 0,n.i(o.default)("Sign in")))))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(1516),u=n(67),c=n(2567),d=n(2385),p=n(2927),h=n.n(p),f=r()(l.a,{});t.a=i},function(e,t,n){"use strict";function i(e){var t=e.onSwitchLayoutPress;return r()(u.a,{className:p.a.link,kind:l.DEFAULT,onPress:t},void 0,n.i(o.default)("Enter TV Full Screen"),r()(c.a,{className:p.a.icon,name:"plex-icon-tv-mode-enter-560"}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),
n(4)),l=n(74),u=n(23),c=n(27),d=n(2928),p=n.n(d);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(34),f=n(199),v=n(73),m=n(20),g=n(77),y=n(23),b=n(38),S=n(187),I=n(159),M=n(160),C=n(305),w=n(308),D=n(2390),P=n(2388),T=n(2929),x=n.n(T),E=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onMeasure=function(e){var t=e.width,n=e.height;a.setState({isMeasured:!0,width:t,height:n})},
a.onMomentScrollIndexChange=function(e){a.setState({currentMomentTitle:a.props.moments[e].title})},a.state={isMeasured:!1,currentMomentTitle:"",width:0,height:0},a}return c()(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.librarySectionID,n=e.providerIdentifier,i=e.onLibraryChange;t&&i(n,t)},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.librarySectionID,i=t.providerIdentifier,a=t.onLibraryChange;n&&n!==e.librarySectionID&&a(i,n)},
t.prototype.componentWillUnmount=function(){this.props.onLibraryChange(null,null)},t.prototype.render=function(){
var e=this.props,t=e.serverEntityID,i=e.providerEntityID,r=e.providerMetricsIdentifier,s=e.selectedDirectory,o=e.libraryDirectories,l=e.metadataTypes,u=e.metadataListEntityID,c=e.isMomentListPending,d=e.isMomentListPopulated,T=e.momentListError,E=e.moments,N=e.libraryRoute,L=e.activeSelectionType,A=e.columnAdjustment,k=this.state,_=k.isMeasured,O=k.width,j=k.height,R=k.currentMomentTitle,U=200-100*A,z=12+A,B=Math.min(Math.ceil(O/U),z);return d?a()(S.a,{metricsPage:h.A,metricsProperties:{
provider:r,mode:"timeline",type:"photo",style:g.a},allowBackgroundLightPreset:!0,scrollDirection:m.a.NONE},void 0,L?a()(w.a,{serverEntityID:t,providerEntityID:i}):a()(D.a,{serverEntityID:t,providerEntityID:i,metadataListEntityID:u,metadataTypes:l,libraryRoute:N,libraryDirectories:o,title:R,selectedDirectory:s}),a()(v.a,{className:x.a.measured,ignorePosition:!0,onMeasure:this.onMeasure},void 0,_&&a()(P.a,{serverEntityID:t,providerEntityID:i,metadataListEntityID:u,moments:E,columns:B,height:j,
onMomentScrollIndexChange:this.onMomentScrollIndexChange}))):c?a()(I.a,{},void 0,a()(b.a,{label:n.i(p.default)("Loading library")})):T?a()(C.a,{title:n.i(p.default)("There was an unexpected error loading this library")}):a()(M.a,{title:n.i(p.default)("There was an error loading the timeline for this library"),description:n.i(p.default)("The photos timeline requires Plex Media Server {version} or higher",{version:f.a.itemClusters})},void 0,a()(y.a,{to:N,kind:m.b.PRIMARY
},void 0,n.i(p.default)("Browse by Type")))},t}(d.Component);t.a=E},function(e,t,n){"use strict";function i(){return n.i(l.createSelector)(function(e){return e.ui.timelinePage},I,f.a,n.i(u.a)(),n.i(d.a)(),n.i(p.a)(),h.a,n.i(v.a)(),c.a,function(e,t,i,a,r,s,o,l,u){var c=e.details,d=e.containerKey,p=e.isMomentListPending,h=e.isMomentListPopulated,f=e.momentListError,v=n.i(y.a)(i,a,r,{save:1});return{libraryKey:r,metadataListEntityID:e.metadataList,providerIdentifier:a.identifier,
providerMetricsIdentifier:a.metricsIdentifier,librarySectionID:c&&c.librarySectionID,libraryDirectories:c&&c.directories,libraryRoute:v,metadataTypes:c?c.types:[],moments:t,isMomentListPending:p,isMomentListPopulated:h,momentListError:f,containerKey:d,momentKey:s,activeSelectionType:o.activeSelectionType,disableReloadThreshold:!!o.activeSelectionType,isLibraryRefreshing:l,columnAdjustment:u.columnAdjustment}})}function a(e,t){return{onLibraryChange:function(i,a){
e(n.i(m.changeQuickSearchSettings)({serverEntityID:t.serverEntityID,providerIdentifier:i,sectionID:a}))}}}function r(e){var t=e.ui.timelinePage;return{serverEntityID:t.serverEntityID,momentKey:t.momentKey}}function s(e,t){e(g.a({serverEntityID:t.serverEntityID,libraryKey:t.libraryKey,momentKey:t.momentKey})),e(g.b())}var o=n(11),l=n(5),u=(n.n(l),n(136)),c=n(111),d=n(178),p=n(1374),h=n(83),f=n(45),v=n(590),m=n(156),g=n(1789),y=n(96),b=n(184),S=n(2386),I=n.i(l.createSelector)(function(e){
return e.ui.timelinePage.momentList},function(e){if(!e)return[];var t=0;return e.moments.map(function(e){var n=t;t+=e.size;var i=e.id,a=e.title,r=e.size,s=e.avgAR,o=e.startsAt,l=e.size*(e.avgAR||1);return{start:n,end:t,area:l,id:i,title:a,size:r,avgAR:s,startsAt:o}})}),M=n.i(b.a)(S.a,r,s),C=n.i(o.b)(i,a)(M);t.a=C},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(3),p=n.n(d),h=n(0),f=(n.n(h),
n(4)),v=n(57),m=n.n(v),g=n(170),y=n(218),b=n(2027),S=n(2552),I=n(2097),M=n(2093),C=n(2930),w=n.n(C),D=Math.max(0,parseInt(m.a.timelineGutter,10)-40),P=function(e){function t(i,a){s()(this,t);var r=l()(this,e.call(this,i,a));return r.onListUpdate=function(e){var t=e.landmarks,i=e.listStyle&&e.listStyle.height;if(t!==r._landmarks){r._landmarks=t;var a=p.a.pluck(r.props.moments,"startsAt"),s=n.i(S.a)(t,a);r.setState({ticks:s,listHeight:i})}},r.state={ticks:null,listHeight:null},r}return c()(t,e),
t.prototype.render=function(){var e=this.props,t=e.serverEntityID,i=e.providerEntityID,r=e.metadataListEntityID,s=e.moments,o=e.columns,l=e.height,u=e.onMomentScrollIndexChange,c=this.state,d=c.ticks,p=c.listHeight,h=1/l,v=p&&p>l;return s.length?a()("div",{className:w.a.container},void 0,a()(I.a,{className:w.a.stack,scrollerClassName:w.a.scroller,serverEntityID:t,providerEntityID:i,metadataListEntityID:r,scrollPositionStorageKey:"TimelinePageContent",keyPropName:"id",items:s,size:s.length,
columns:o,footerHeight:59,listPadding:55,listGutter:D,hasNestedList:!0,cellComponent:M.a,onListScrollIndexChange:u,onListUpdate:this.onListUpdate}),a()("div",{className:w.a.adornment},void 0,d&&v&&a()(b.a,{pixelProportion:h,ticks:d}))):a()(y.a,{},void 0,a()(g.a,{title:n.i(f.default)("Nothing to see here"),description:n.i(f.default)("There are no events in this library")}))},t}(h.Component);t.a=P},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(50),f=(n(77),n(637)),v=n(619),m=n(216),g=n(168),y=n(169),b=n(189),S=n(375),I=n(188),M=n(457),C=function(e){function t(i,a){s()(this,t);var r=l()(this,e.call(this,i,a));return r.onTypesMenuButtonPress=function(e){r.setState({isTypesMenuOpen:!r.state.isTypesMenuOpen})},r.onTypesMenuClose=function(){r.setState({isTypesMenuOpen:!1})},r.state={isTypesMenuOpen:!1},r._typesMenuButtonID=n.i(h.a)(),r}
return c()(t,e),t.prototype.render=function(){var e=this.props,t=e.serverEntityID,i=e.providerEntityID,r=e.metadataListEntityID,s=e.listType,o=e.listStyle,l=e.title,u=e.totalSize,c=e.libraryRoute,d=e.metadataTypes,h=e.metadataPseudoTypes,C=e.selectedType,w=e.allListStyles,D=this.state.isTypesMenuOpen;return a()(g.a,{},void 0,a()(y.a,{},void 0,a()(I.a,{id:this._typesMenuButtonID,title:n.i(p.default)("Timeline"),hasMenu:!0,isMenuOpen:D,onPress:this.onTypesMenuButtonPress}),a()(M.a,{
target:this._typesMenuButtonID,isOpen:D,libraryRoute:c,types:d,pseudoTypes:h,selectedType:C,activeFilters:[],onMenuClose:this.onTypesMenuClose}),a()(I.a,{title:l}),a()(S.a,{},void 0,u)),a()(b.a,{},void 0,a()(f.a,{serverEntityID:t,providerEntityID:i,metadataListEntityID:r,listType:s,isLibraryList:!0}),a()(v.a,{selectedListStyle:o,allListStyles:w}),a()(m.a,{selectedListStyle:o,allListStyles:w})))},t}(d.Component);t.a=C},function(e,t,n){"use strict";function i(){
return n.i(r.createSelector)(function(e,t){return t.libraryDirectories},n.i(u.a)(),s.a,n.i(l.a)(),n.i(o.a)(),function(e,t,i,a,r){var s={key:"timeline"},o=n.i(d.a)({type:"photo",server:t,provider:i,libraryKey:a,libraryDirectories:e});return{listType:"photo",listStyle:c.a,totalSize:r.totalSize,libraryKey:a,metadataPseudoTypes:o,selectedType:s,allListStyles:[c.a]}})}var a=n(11),r=n(5),s=(n.n(r),n(43)),o=n(149),l=n(178),u=n(46),c=n(77),d=n(468),p=n(2389);t.a=n.i(a.b)(i)(p.a)},function(e,t,n){
"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(238),f=n(1050),v=n(74),m=n(1015),g=n(609),y=n(92),b=n(143),S=n(126),I=n(2931),M=n.n(I),C=n(660),w=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u];return n=i=l()(this,e.call.apply(e,[this].concat(o))),i.onTogglePress=function(e){i.props.onToggle(i.props.index)},i.onRemovePress=function(e){i.props.onRemove(i.props.url)},
i.onSubmit=function(e){i.props.onSubmit(i.props.url,e.url)},a=n,l()(i,a)}return c()(t,e),t.prototype.render=function(){var e=this.props,t=e.isDirty,i=e.isOpen,r=e.isUpdating,s=e.isRemoving,o=e.url,l=e.error,u=e.onDirtyChange,c=e.onErrorDismiss,d=r||s;return a()(m.a,{isOpen:i,closedNode:a()("div",{},void 0,a()(S.a,{className:M.a.label},void 0,n.i(p.default)("URL")),o),errorMessage:n.i(h.a)(l),onErrorDismiss:c,onTogglePress:this.onTogglePress},void 0,a()(b.a,{onSubmit:this.onSubmit,onChange:u
},void 0,a()(g.a,{focusOnMount:!0,selectTextOnFocus:!0,labelText:n.i(p.default)("URL"),isDisabled:d,name:"url",initialValue:o,validations:o?[f.a]:[]}),a()("div",{className:M.a.buttons},void 0,o&&a()(y.a,{className:M.a.dangerButton,kind:v.DANGER,isSpinning:s,isDisabled:d,onPress:this.onRemovePress},void 0,n.i(p.default)("Remove")),a()(y.a,{className:M.a.button,type:"submit",kind:v.PRIMARY,isSpinning:r,isDisabled:d||!t},void 0,n.i(p.default)("Save Changes")))))},t}(d.Component);t.a=n.i(C.a)(w,{
isUpdatingPropName:"isUpdating",errorPropName:"error",clearDirtyOnChangePropName:"isOpen"})},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(3),p=n.n(d),h=n(0),f=(n.n(h),n(4)),v=n(34),m=n(74),g=n(1016),y=n(460),b=n(461),S=n(160),I=n(2391),M=n(47),C=n(23),w=n(127),D=n(2932),P=n.n(D),T=a()(g.a,{}),x=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onToggle=function(e){var t=a.state.openFormSectionIndex===e
;a.props.onErrorDismiss(),a.props.onToggle(),a.setState({openFormSectionIndex:t?null:e})},a.onRemove=function(e){a.setState({removeWebhookModalURL:e,isRemoveWebhookModalOpen:!0})},a.onSubmit=function(e,t){e===t?(a.setState({openFormSectionIndex:null}),a.props.onToggle()):a.props.onSubmit(e,t)},a.onRemoveWebhookConfirmPress=function(e){var t=a.state.removeWebhookModalURL;a.props.onRemove(t)},a.onRemoveWebhookCancelPress=function(e){a.setState({isRemoveWebhookModalOpen:!1})},a.state={
openFormSectionIndex:null,isRemoveWebhookModalOpen:!1},a}return c()(t,e),t.prototype.componentWillReceiveProps=function(e){!e.isRemovingWebhooks&&this.props.isRemovingWebhooks&&this.setState({openFormSectionIndex:null,isRemoveWebhookModalOpen:!1});var t=e.webhooks===this.props.webhooks?-1:p.a.findIndex(e.webhooks,function(e){return""===e.url}),n=t!==-1,i=!e.isUpdatingWebhooks&&!e.updateWebhooksError&&this.props.isUpdatingWebhooks;n?this.setState({openFormSectionIndex:t}):i&&this.setState({
openFormSectionIndex:null})},t.prototype.render=function(){var e=this,t=this.props,i=t.isUnauthorized,r=t.isWebhooksPending,s=t.isWebhooksPopulated,o=t.webhooksError,l=t.isUpdatingWebhooks,u=t.isRemovingWebhooks,c=t.updateWebhooksError,d=t.webhooks,h=t.onAddWebhookPress,g=t.onErrorDismiss,D=this.state,x=D.openFormSectionIndex,E=D.removeWebhookModalURL,N=D.isRemoveWebhookModalOpen;if(i)return a()(S.a,{title:n.i(f.default)("You're not supposed to be here"),
description:n.i(f.default)("You don't have access to webhooks settings")});var L=d&&d.length,A=d&&p.a.find(d,function(e){return""===e.url}),k=s&&d&&L<5&&!A;return a()(y.a,{metricsPage:v.m,metricsPane:"webhooks"},void 0,a()(b.a,{},void 0,n.i(f.default)("Webhooks")),a()("p",{},void 0,n.i(f.default)("Plex Media Server will make requests to these webhooks on various media playback events.")),a()("p",{},void 0,a()(C.a,{kind:m.PRIMARY,to:"https://support.plex.tv/hc/en-us/articles/115002267687",
target:"_blank"},void 0,n.i(f.default)("Learn more"))),r&&!s&&T,s&&!!L&&d.map(function(t,n){var i=x===n;return a()(I.a,{index:n,url:t.url,isOpen:i,isUpdating:i&&l,isRemoving:i&&u,error:i?c:null,onErrorDismiss:g,onRemove:e.onRemove,onToggle:e.onToggle,onSubmit:e.onSubmit},n)}),k&&a()("div",{className:P.a.buttons},void 0,a()(M.a,{kind:m.PRIMARY,onPress:h},void 0,n.i(f.default)("Add webhook"))),o&&n.i(f.default)("An error occurred retrieving webhooks. Please try again."),a()(w.a,{
isConfirmButtonSpinning:u,isCancelButtonDisabled:u,isOpen:N,metricsPage:v.n,title:n.i(f.default)("Remove Webhook"),message:n.i(f.default)("Plex will no longer post updates to {url}.",{url:E}),confirmLabel:n.i(f.default)("Remove"),kind:m.DANGER,onConfirm:this.onRemoveWebhookConfirmPress,onCancel:this.onRemoveWebhookCancelPress}))},t}(h.Component);t.a=x},function(e,t,n){"use strict"
;var i=n(14),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(6),p=n.n(d),h=n(0),f=n.n(h),v=n(11),m=n(5),g=(n.n(m),n(112)),y=n(151),b=n(404),S=n(426),I=n(2392),M=n(3),C=n.n(M),w=n.i(m.createSelector)(y.a,n.i(b.a)(g.a),function(e,t){var n=C.a.pick(e.desktop,["webhooks","isWebhooksPending","isWebhooksPopulated","webhooksError","isUpdatingWebhooks","isRemovingWebhooks","updateWebhooksError"]);return p()({},n,{isUnauthorized:!t})}),D={dispatchFetchWebhooks:S.d,
onAddWebhookPress:function(){return n.i(S.e)()},onErrorDismiss:S.f,onRemove:function(e){return n.i(S.g)(e)},onSubmit:function(e,t){return n.i(S.h)({oldUrl:e,newUrl:t})},onToggle:function(){return n.i(S.g)("")}},P=function(e){function t(){return s()(this,t),l()(this,e.apply(this,arguments))}return c()(t,e),t.prototype.componentDidMount=function(){this.props.dispatchFetchWebhooks(),this.props.onErrorDismiss()},t.prototype.render=function(){var e=this.props,t=(e.dispatchFetchWebhooks,
a()(e,["dispatchFetchWebhooks"]));return f.a.createElement(I.a,t)},t}(h.Component);t.a=n.i(v.b)(w,D)(P)},function(e,t,n){"use strict";function i(e){var t=e.isOpen,i=e.viewOffset,a=e.duration,s=e.onConfirm,d=e.onCancel;return r()(p.a,{isOpen:t,metricsPage:l.I,title:n.i(o.default)("Resume Playback"),onItemSelect:s,onCancel:d},void 0,r()(h.a,{value:i},void 0,n.i(o.default)("Resume from {time}",{time:n.i(u.a)(i)}),f,n.i(c.a)((a-i)/1e3)),r()(h.a,{value:0
},void 0,n.i(o.default)("Start from the Beginning")))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(34),u=n(235),c=n(274),d=n(84),p=n(946),h=n(947),f=r()(d.a,{});t.a=i},function(e,t,n){"use strict";function i(e,t){var n=t.playerType,i=t.confirmOffsetPayload;return{onConfirm:function(t){e(u.c(r()({},i,{confirmPlayback:!0,confirmOffset:!0,startOffsetMilliseconds:t})))},onCancel:function(){e(u.j({playerType:n}))}}}var a=n(6),r=n.n(a),s=n(5),o=(n.n(s),
n(11)),l=n(110),u=n(58),c=n(2394),d=n.i(s.createSelector)(function(e,t){return t.confirmOffsetPayload},l.a,function(e,t){var n=void 0;if(e){n=t[e.metadataItemEntityID]}return n?{viewOffset:n.viewOffset,duration:n.duration}:{}});t.a=n.i(o.b)(d,i)(c.a)},function(e,t,n){"use strict";function i(e){var t=e.isOpen,i=e.onConfirm,a=e.onCancel;return r()(u.a,{isOpen:t,metricsPage:l.J,title:n.i(o.default)("Play Now"),
message:n.i(o.default)("This will clear changes made to the queue and play the selection instead."),confirmLabel:n.i(o.default)("Play"),onConfirm:i,onCancel:a})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(34),u=n(127);t.a=i},function(e,t,n){"use strict";function i(e,t){var n=t.playerType,i=t.confirmPlaybackPayload;return{onConfirm:function(){e(o.c(r()({},i,{confirmPlayback:!0})))},onCancel:function(){e(o.k({playerType:n}))}}}var a=n(6),r=n.n(a),s=n(11),o=n(58),l=n(2396)
;t.a=n.i(s.b)(null,i)(l.a)},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.serverEntityID,a=e.providerEntityID,s=e.metadataItemEntityID,o=e.type,l=e.context,f=e.imageUrl,y=n.i(u.a)(o,l,{providerEntityID:a});return r()(d.a,{className:v.a.measure},void 0,function(e){var u=e.isMeasured,d=e.width,S=e.height;if(!u)return null;var I=void 0,M=void 0;if(d<S){var C=d-b;M=Math.min(g,C),I=n.i(c.a)(M,o,l)}else{var w=S-(b+m);I=Math.min(g,w),M=n.i(c.c)(I,o,l)}return r()("div",{className:t
},void 0,r()(p.a,{cardClassName:v.a.card,serverEntityID:i,providerEntityID:a,metadataItemEntityID:s,metadataKey:"music",type:o,imageWidth:M,imageHeight:I,imageUrl:f,showLinkOnly:!0}),r()("div",{className:v.a.titlesContainer},void 0,y.map(function(e,t){return r()(h.a,{className:t>0?v.a.secondaryTitle:v.a.primaryTitle,serverEntityID:i,providerEntityID:a,metadataItemEntityID:s,component:e},t)})))})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(32),
n(57)),l=n.n(o),u=n(173),c=n(132),d=n(73),p=n(247),h=n(249),f=n(2933),v=n.n(f),m=90,g=500,y=parseInt(l.a.pagePadding,10),b=2*y;i.defaultProps={className:v.a.content},t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),n.i(o.a)(),function(e,t){var n=l.c;return{serverEntityID:e.serverEntityID,providerEntityID:e.providerEntityID,metadataItemEntityID:t.entityID,context:n,type:t.type,imageUrl:t.parentThumb||t.grandparentThumb}})}var a=n(11),r=n(5),s=(n.n(r),
n(42)),o=n(230),l=n(32),u=n(2398),c=n.i(a.b)(i)(u.a);t.a=c},function(e,t,n){"use strict";function i(e,t){return e.isRemotePlayer||e.isMusic||e.isSettingsVisible||e.isPlayQueueVisible||e.isPostPlayVisible||t.isControlsMenuOpen||t.isCastMenuOpen||t.disableInteractionTimer}var a=n(2),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=(n.n(p),
n(81)),f=n(20),v=n(57),m=n.n(v),g=n(38),y=n(1028),b=n(1026),S=n(2401),I=n(1020),M=n(2406),C=n(2399),w=n(2403),D=n(2417),P=n(1021),T=n(2422),x=n(2437),E=n(2433),N=n(2934),L=n.n(N),A=2e3,k=parseInt(m.a.playerControlsHeight,10),_=parseInt(m.a.playerUpNextHeight,10),O=function(e){function t(n,a){o()(this,t);var r=u()(this,e.call(this,n,a));return r.onInteraction=function(e){i(r.props,r.state)||(r.state.hideControls&&r.setState({hideControls:!1}),
r._interactionTimeoutID&&clearTimeout(r._interactionTimeoutID),r._interactionTimeoutID=setTimeout(r.onInteractionTimeout,A))},r.onInteractionTimeout=function(){r.setState({hideControls:!0}),r._interactionTimeoutID=null},r.onMouseLeave=function(e){r.setState({disableInteractionTimer:!1},function(){i(r.props,r.state)||(r.setState({hideControls:!0}),r._interactionTimeoutID&&(clearTimeout(r._interactionTimeoutID),r._interactionTimeoutID=null))})},r.onControlsMouseEnter=function(e){r.setState({
disableInteractionTimer:!0})},r.onControlsMouseLeave=function(e){r.setState({disableInteractionTimer:!1})},r.onControlsMenuChange=function(e){r.setState({isControlsMenuOpen:e})},r.onCastMenuChange=function(e){r.setState({isCastMenuOpen:e})},r.state={hideControls:!1,isControlsMenuOpen:!1,isCastMenuOpen:!1,disableInteractionTimer:!1},r}return d()(t,e),t.prototype.componentDidMount=function(){document.addEventListener("keydown",this.onInteraction),
document.addEventListener("keyup",this.onInteraction),i(this.props,this.state)||this._startInteractionTimer()},t.prototype.componentWillReceiveProps=function(e){i(e,this.state)&&this.state.hideControls&&this.setState({hideControls:!1}),this.props.isFullscreen!==e.isFullscreen&&this.state.disableInteractionTimer&&this.setState({disableInteractionTimer:!1})},t.prototype.componentDidUpdate=function(e,t){i(e,t)&&!i(this.props,this.state)&&this._startInteractionTimer(),
!i(e,t)&&i(this.props,this.state)&&this._stopInteractionTimer()},t.prototype.componentWillUnmount=function(){document.removeEventListener("keydown",this.onInteraction),document.removeEventListener("keyup",this.onInteraction),this._interactionTimeoutID&&clearTimeout(this._interactionTimeoutID)},t.prototype._startInteractionTimer=function(){this._stopInteractionTimer(),this._interactionTimeoutID=setTimeout(this.onInteractionTimeout,A)},t.prototype._stopInteractionTimer=function(){
this._interactionTimeoutID&&clearTimeout(this._interactionTimeoutID)},t.prototype.render=function(){
var e=this.props,t=e.playerType,n=e.isRemotePlayer,i=e.isPlayQueueLoading,a=e.isMediaLoading,s=e.isPostPlayLoading,o=e.isBuffering,l=e.isFullscreen,u=e.isSettingsVisible,c=e.isPlayQueueVisible,d=e.isLyricsVisible,p=e.isPostPlayVisible,v=e.isVideo,m=e.isMusic,N=e.isUpNextVisible,A=e.positionMilliseconds,O=e.seekStartMilliseconds,j=e.seekEndMilliseconds,R=e.onEnterFullscreenPress,U=e.onExitFullscreenPress,z=this.state.hideControls,B=(i||s||v&&(a||o))&&!p,F=v&&!i&&!s&&!c&&!p,V=N?k+_:k,Q=z?null:"translateY("+-V+"px)"
;return r()("div",{className:(L.a.fullPlayer||"")+" "+(v&&L.a.isVideo||"")+" "+(c&&L.a.isPlayQueueVisible||"")+" "+(z&&L.a.hideControls||""),onMouseMove:this.onInteraction,onMouseDown:this.onInteraction,onTouchStart:this.onInteraction,onTouchEnd:this.onInteraction,onMouseLeave:this.onMouseLeave},void 0,(n||m||a||c||s||p)&&r()(S.a,{playerType:t,isVideo:v,isMusic:m,allowBlur:m||c||p}),!c&&B&&r()(g.a,{size:f.d.LARGE}),F&&r()(x.a,{playerType:t,positionMilliseconds:A,heightOffset:z?0:k}),F&&r()(y.a,{
playerType:t,isFullscreen:l,onEnterFullscreenPress:R,onExitFullscreenPress:U}),!i&&r()("div",{className:L.a.topBar,onMouseEnter:this.onControlsMouseEnter,onMouseLeave:this.onControlsMouseLeave},void 0,r()(b.a,{playerType:t,isFullscreen:l,onCastMenuChange:this.onCastMenuChange,onEnterFullscreenPress:R,onExitFullscreenPress:U})),!i&&u&&!c&&v&&r()(T.a,{playerType:h.b}),!i&&c&&!u&&r()("div",{className:L.a.content},void 0,r()(M.a,{playerType:h.b,isVideo:v,isMusic:m})),!i&&p&&!c&&r()("div",{
className:L.a.content},void 0,r()(D.a,{playerType:t})),!i&&!c&&!d&&m&&r()("div",{className:L.a.content},void 0,r()(C.a,{playerType:h.b})),!i&&!c&&d&&m&&r()("div",{className:L.a.content},void 0,r()(w.a,{playerType:h.b})),!i&&r()("div",{className:L.a.bottomBar,style:{bottom:-V,height:V,WebkitTransform:Q,msTransform:Q,transform:Q},onMouseEnter:this.onControlsMouseEnter,onMouseLeave:this.onControlsMouseLeave},void 0,!u&&!c&&N&&r()(E.a,{playerType:h.b}),r()("div",{className:L.a.bottomBarContent
},void 0,r()(I.a,{className:L.a.controls,playerType:t,isVideo:v,isMusic:m,onControlsMenuChange:this.onControlsMenuChange}),!p&&r()(P.a,{className:L.a.seekBar,playerType:t,positionMilliseconds:A,seekStartMilliseconds:O,seekEndMilliseconds:j}))))},t}(p.Component);t.a=O},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(function(e,t){return t.isMusic},n.i(s.a)(),n.i(o.a)(),l.a,function(e,t){
var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3],a=t.startMetadataItemEntityID||n.metadataItem,r=i[a],s=void 0;return r&&(s=e?r.parentThumb||r.grandparentThumb:r.grandparentArt||r.art),{serverEntityID:t.serverEntityID,imageUrl:s}})}var a=n(5),r=(n.n(a),n(11)),s=n(42),o=n(85),l=n(110),u=n(1025);t.a=n.i(r.b)(i)(u.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=n.n(d),h=n(4),f=(n(32),
n(132)),v=n(1057),m=n(27),g=n(73),y=n(67),b=n(366),S=n(38),I=n(645),M=n(247),C=n(631),w=n(634),D=n(145),P=n(193),T=n(194),x=n(104),E=n(307),N=n(941),L=n(943),A=n(2935),k=n.n(A),_=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.setLineRef=function(e){a.lineRef=e,a.scrollToLine()},a.onContentMeasure=function(e){var t=e.width,n=e.height;a.setState({isMeasured:!0,pageWidth:t,pageHeight:n})},a.onScrollerMeasure=function(e){var t=e.height;t&&a.setState({
isScrollerMeasured:!0,scrollerHeight:t},function(){a.scrollToLine()})},a.onScrollPositionChange=function(e){var t=e.scrollTop;a.setState({scrollTop:t})},a.state={isMeasured:!1,isScrollerMeasured:!1,pageWidth:0,pageHeight:0,scrollerHeight:0,scrollTop:0},a}return c()(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.lines!==e.lines&&this.setState({scrollTop:0})},t.prototype.scrollToLine=function(){if(this.lineRef){
var e=this.state,t=e.scrollerHeight,n=e.scrollTop,i=this.lineRef.getBoundingClientRect(),a=i.height,r=this.lineRef.offsetTop,s=r+a>n+t,o=r<n;(s||o)&&this.setState({scrollTop:r})}},t.prototype.render=function(){
var e=this,t=this.props,i=t.serverEntityID,r=t.providerEntityID,s=t.metadataItemEntityID,o=t.type,l=t.context,u=t.columnAdjustment,c=t.imageUrl,d=t.positionSeconds,A=t.lines,_=t.selectedIndex,O=t.lyricsStreamsCount,j=t.hasTimedLyrics,R=t.isTimedLyricsActive,U=t.hasLyricsError,z=t.hasLyricsFeature,B=t.isLyricFindProvider,F=t.onPreviousPress,V=t.onNextPress,Q=t.onTimedLyricsPress,H=this.state,W=H.isMeasured,Y=H.isScrollerMeasured,G=H.pageWidth,K=H.scrollTop,q=n.i(v.a)(G,u),X=n.i(f.a)(q,o,l)
;return z?a()(g.a,{className:k.a.measure,onMeasure:this.onContentMeasure},void 0,W&&a()("div",{className:k.a.container},void 0,a()("div",{},void 0,a()(M.a,{cardClassName:k.a.card,serverEntityID:i,providerEntityID:r,metadataItemEntityID:s,metadataKey:"music",type:o,imageWidth:q,imageHeight:X,imageUrl:c,showLinkOnly:!0})),a()("div",{className:k.a.content},void 0,a()("div",{className:k.a.titlesContainer},void 0,a()(D.a,{},void 0,a()(C.a,{serverEntityID:i,providerEntityID:r,metadataItemEntityID:s
})),a()(P.a,{},void 0,a()(x.a,{},void 0,a()(w.a,{serverEntityID:i,providerEntityID:r,metadataItemEntityID:s}))),a()(T.a,{},void 0,a()(x.a,{},void 0,B&&n.i(h.default)("Powered by {provider}",{provider:"LyricFind"})),a()(E.a,{},void 0,a()("span",{className:k.a.rightInfo},void 0,a()(b.a,{className:(k.a.timedLyricsButton||"")+" "+(R&&k.a.isTimedLyricsActive||""),icon:"plex-icon-player-lyrics-timed-560",title:n.i(h.default)("Timed Lyrics"),isDisabled:!j,onPress:Q})),a()("span",{
className:k.a.rightInfo},void 0,n.i(h.default)("{selectedIndex} of {lyricsStreamsCount}",{selectedIndex:_+1,lyricsStreamsCount:O})),a()("span",{className:k.a.rightInfo},void 0,a()(b.a,{icon:"plex-icon-page-prev-560",title:n.i(h.default)("Previous"),isDisabled:0===_,onPress:F})),a()("span",{className:k.a.rightInfo},void 0,a()(b.a,{icon:"plex-icon-page-next-560",title:n.i(h.default)("Next"),isDisabled:_===O-1,onPress:V}))))),U&&a()("div",{className:k.a.innerContent},void 0,a()(I.a,{
title:n.i(h.default)("There was an error loading the lyrics")})),!U&&a()("div",{className:k.a.innerContent},void 0,a()(g.a,{className:k.a.measure,onMeasure:this.onScrollerMeasure},void 0,Y&&a()(y.a,{className:k.a.scroller,scrollTop:K,onScrollPositionChange:this.onScrollPositionChange},void 0,A.length?A.map(function(t,n){var i=t.spans,r=t.startOffset,s=t.endOffset,o=Math.round(r/1e3),l=Math.round(s/1e3),u=R&&d>=o&&r!==-1&&(d<l||s===-1);return p.a.createElement("div",{key:n,
className:(k.a.line||"")+" "+(u&&k.a.isLineSelected||""),ref:u?e.setLineRef:null},i.map(function(e,t){var n=e.text;return a()("span",{},t,n)}),a()(m.a,{className:k.a.lineTimedIcon,name:"plex-icon-player-lyrics-timed-560"}))}):a()(S.a,{className:k.a.spinner}))))))):a()("div",{className:k.a.upsellContainer},void 0,a()(N.a,{icon:"plex-icon-marketing-lyrics-560",title:n.i(h.default)("Song Lyrics"),
text:n.i(h.default)("Still think Elton is saying \u201cHold me closer, Tony Danza\u201d? With a Plex Pass, enjoy timed lyrics (when available) to your favorite songs for the ultimate sing-along\u2026 with the right words!")}),a()(L.a,{serverEntityID:i,modalMetricsProperties:{context:"lyrics"}}))},t}(d.Component);t.a=_},function(e,t,n){"use strict";function i(e){return!(!e||!e.timed)}function a(){return n.i(y.createSelector)(n.i(b.a)(),n.i(S.a)(),n.i(I.a)(),n.i(M.a)(),C.a,function(e,t,n,i,a){
var r=w.c;return{serverEntityID:e.serverEntityID,providerEntityID:e.providerEntityID,metadataItemEntityID:n.entityID,playQueueItemEntityID:i.entityID,positionSeconds:e.positionSeconds,context:r,type:n.type,imageUrl:n.parentThumb||n.grandparentThumb,lyricsStreams:i.lyricsStreams,columnAdjustment:a.columnAdjustment,hasLyricsFeature:!!i.lyricsStreams.length||t.ownerFeatures.indexOf("lyrics")>-1,hasPremiumLyrics:i.hasPremiumLyrics}})}
var r=n(6),s=n.n(r),o=n(14),l=n.n(o),u=n(7),c=n.n(u),d=n(9),p=n.n(d),h=n(8),f=n.n(h),v=n(0),m=n.n(v),g=n(11),y=n(5),b=(n.n(y),n(42)),S=n(533),I=n(230),M=n(85),C=n(111),w=n(32),D=n(109),P=n(2402),T={dispatchFetchPlayQueue:D.j,dispatchFetchPlayQueueItemLyrics:D.k},x=function(e){function t(n,i){c()(this,t);var a=p()(this,e.call(this,n,i));return E.call(a),a.state=a.getDefaultState(n),a}return f()(t,e),t.prototype.componentDidMount=function(){this._populate(),
this.props.hasPremiumLyrics&&this.props.hasLyricsFeature&&this.props.dispatchFetchPlayQueue({playerType:this.props.playerType})},t.prototype.componentWillReceiveProps=function(e){this.props.lyricsStreams!==e.lyricsStreams&&this.setState(this.getDefaultState(e,this.state.selectedLyricsStreamIndex))},t.prototype.componentWillUpdate=function(e,t){if(this.state.selectedLyricsStreamIndex!==t.selectedLyricsStreamIndex){var n=e.lyricsStreams[t.selectedLyricsStreamIndex];this.setState({
isTimedLyricsActive:i(n)})}},t.prototype.componentDidUpdate=function(e,t){var n=this.props.lyricsStreams[this.state.selectedLyricsStreamIndex];this.props.hasLyricsFeature!==e.hasLyricsFeature&&this.props.dispatchFetchPlayQueue({playerType:this.props.playerType}),!n||n.lyricsError||this.state.selectedLyricsStreamIndex===t.selectedLyricsStreamIndex&&this.props.lyricsStreams===e.lyricsStreams||this._populate()},t.prototype.getDefaultState=function(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e.lyricsStreams.length>0?t:null;return{isTimedLyricsActive:i(e.lyricsStreams[n]),selectedLyricsStreamIndex:n}},t.prototype._populate=function(){var e=this.props,t=e.playerType,n=e.playQueueItemEntityID,i=e.lyricsStreams,a=this.state.selectedLyricsStreamIndex;if(null!=a){var r=i[a];r&&!r.lines.length&&this.props.dispatchFetchPlayQueueItemLyrics({playerType:t,playQueueItemEntityID:n,streamID:r.id,streamKey:r.key})}},
t.prototype.render=function(){var e=this.props,t=(e.dispatchFetchPlayQueue,e.dispatchFetchPlayQueueItemLyrics,e.lyricsStreams),n=l()(e,["dispatchFetchPlayQueue","dispatchFetchPlayQueueItemLyrics","lyricsStreams"]),a=this.state,r=a.isTimedLyricsActive,o=a.selectedLyricsStreamIndex,u=t[o];return m.a.createElement(P.a,s()({lines:null!=u?u.lines:[],lyricsStreamsCount:t.length,selectedIndex:o,hasTimedLyrics:i(u),isTimedLyricsActive:r,
isLyricFindProvider:!!u&&"com.plexapp.agents.lyricfind"===u.provider,hasLyricsError:!!u&&!!u.lyricsError,onPreviousPress:this.onPreviousPress,onNextPress:this.onNextPress,onTimedLyricsPress:this.onTimedLyricsPress},n))},t}(v.Component),E=function(){var e=this;this.onPreviousPress=function(){e.setState(function(e){return{selectedLyricsStreamIndex:Math.max(0,e.selectedLyricsStreamIndex-1)}})},this.onNextPress=function(){e.setState(function(e,t){return{
selectedLyricsStreamIndex:Math.min(t.lyricsStreams.length-1,e.selectedLyricsStreamIndex+1)}})},this.onTimedLyricsPress=function(){e.setState(function(e){return{isTimedLyricsActive:!e.isTimedLyricsActive}})}};t.a=n.i(g.b)(a,T)(x)},function(e,t,n){"use strict";function i(e){var t=e.playerType,n=e.isPlayQueueLoading,i=e.isPostPlayVisible,a=e.isVideo,s=e.isMusic,c=e.positionMilliseconds,p=e.seekStartMilliseconds,h=e.seekEndMilliseconds;return r()(o.a,{playerType:t,isPlayQueueLoading:n,
isPostPlayVisible:i,positionMilliseconds:c,seekStartMilliseconds:p,seekEndMilliseconds:h,seekBarComponent:u.a},void 0,r()(l.a,{playerType:t,isVideo:a,isMusic:s}),!i&&r()(u.a,{className:d.a.seekBar,playerType:t,positionMilliseconds:c,seekStartMilliseconds:p,seekEndMilliseconds:h}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(81),n(1027)),l=n(1020),u=n(1021),c=n(2936),d=n.n(c);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.playQueueItemEntityIDs,i=e.playQueueTotalCount,a=e.playerType,s=e.currentIndex,l=e.moveIndex,f=e.scrollTop,g=e.isPlayerPaused,y=e.isLocalPlayQueue,b=e.onPlayQueueItemDragMove,S=e.onPlayQueueItemDragEnd,I=e.onSavePress;return r()("div",{className:v.a.container},void 0,r()("div",{className:v.a.headingContainer},void 0,r()("div",{className:v.a.heading},void 0,n.i(o.default)("Play Queue")),r()("div",{className:v.a.topContainer},void 0,r()("div",{className:v.a.topLeft},void 0,r()("span",{
className:v.a.count},void 0,1===i?n.i(o.default)("{itemCount} item",{itemCount:i}):n.i(o.default)("{itemCount} items",{itemCount:i}))),r()("div",{className:v.a.topRight},void 0,!y&&r()(c.a,{className:v.a.tooltipButton,"aria-label":n.i(o.default)("Add to Playlist"),component:u.a,tooltip:n.i(o.default)("Add to Playlist"),onPress:I},void 0,m))),r()("div",{className:v.a.divider})),r()(d.a,{className:v.a.content,scrollTop:f,smoothScroll:!1,autoScroll:!0},void 0,t.map(function(e,t){
var n=null!=l,i=s===t,o=n&&l===t,u=n&&l===t+1;return r()(p.a,{sortIndex:t,playQueueItemEntityID:e,playerType:a,isDraggingBefore:o,isDraggingAfter:u,isCurrentItem:i,isPlayerPaused:g,onPlayQueueItemDragMove:b,onPlayQueueItemDragEnd:S},e)})),r()(h.a,{playerType:a}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(27),u=n(23),c=n(369),d=n(67),p=n(2409),h=n(2407),f=n(2937),v=n.n(f),m=r()(l.a,{name:"plex-icon-toolbar-add-to-playlist-560"});t.a=i},function(e,t,n){"use strict"
;var i=n(14),a=n.n(i),r=n(6),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(5),m=(n.n(v),n(11)),g=n(661),y=n(35),b=n(57),S=n.n(b),I=n(109),M=n(588),C=n(2405),w=parseInt(S.a.playQueueItemHeight,10),D=n.i(v.createSelector)(function(e){return e.ui.audioVideoPlayer},function(e){var t=e.playQueue;return{isQueueRepeated:t.repeat,isQueueShuffled:t.playQueueShuffled,isPlayerPaused:e.isPaused,isUpdatePending:t.isUpdatePending,playQueueItemEntityIDs:t.playQueueItems,
playQueueTotalCount:t.playQueueTotalCount,currentIndex:t.currentIndex,isLocalPlayQueue:!!t.isLocal}}),P={dispatchSavePlayQueueToPlaylist:M.b,dispatchMovePlayQueueItem:I.o},T=function(e){function t(i,a){l()(this,t);var r=c()(this,e.call(this,i,a));return r.onSavePress=function(){var e=r.props.playerType;r.props.dispatchSavePlayQueueToPlaylist({playerType:e})},r.onPlayQueueItemDragMove=function(e){e!==r.state.moveIndex&&r.setState({moveIndex:e})},r.onPlayQueueItemDragEnd=function(e,t){
var i=r.props.playerType,a=r.state.moveIndex;t&&null!=a&&n.i(y.a)(function(){r.props.dispatchMovePlayQueueItem(s()({playerType:i},e,{moveIndex:a}))}),r.setState({moveIndex:null})},r.onScrollPositionChange=function(e){var t=e.scrollTop;r.setState({scrollTop:t})},r.shouldUpdateScrollTop=!1,r.state={moveIndex:null,scrollTop:w*i.currentIndex},r}return p()(t,e),t.prototype.componentWillReceiveProps=function(e){
this.props.isQueueRepeated===e.isQueueRepeated&&this.props.isQueueShuffled===e.isQueueShuffled||(this.shouldUpdateScrollTop=!0),this.shouldUpdateScrollTop&&this.props.currentIndex!==e.currentIndex&&this.setState({scrollTop:w*e.currentIndex}),this.props.isUpdatePending&&!e.isUpdatePending&&(this.shouldUpdateScrollTop=!1)},t.prototype.render=function(){var e=this.props,t=(e.dispatchMovePlayQueueItem,e.dispatchSavePlayQueueToPlaylist,
a()(e,["dispatchMovePlayQueueItem","dispatchSavePlayQueueToPlaylist"])),n=this.state,i=n.moveIndex,r=n.scrollTop;return f.a.createElement(C.a,s()({moveIndex:i,scrollTop:r,onPlayQueueItemDragMove:this.onPlayQueueItemDragMove,onPlayQueueItemDragEnd:this.onPlayQueueItemDragEnd,onSavePress:this.onSavePress,onScrollPositionChange:this.onScrollPositionChange},t))},t}(h.Component);t.a=n.i(g.a)(n.i(m.b)(D,P)(T))},function(e,t,n){"use strict";function i(e){return{item:e.getItem(),
itemType:e.getItemType(),currentOffset:e.getSourceClientOffset()}}var a=n(2),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=(n.n(p),n(264)),f=(n.n(h),n(26)),v=n(57),m=n.n(v),g=n(309),y=n(606),b=n(1018),S=n(2938),I=n.n(S),M=parseInt(m.a.playQueueSidePadding,10),C=function(e){function t(){return o()(this,t),u()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(f.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.playerType,n=e.item,i=e.itemType,a=e.currentOffset;if(!a||i!==g.c)return null;var s=a.x,o=a.y,l=window.innerWidth-2*M,u="translate3d("+s+"px, "+o+"px, 0)",c={position:"absolute",WebkitTransform:u,msTransform:u,transform:u,width:l+"px"};return r()(y.a,{},void 0,r()("div",{className:I.a.dragPreview,style:c},void 0,r()(b.a,{playQueueItemEntityID:n.playQueueItemEntityID,playerType:t,isItemDragging:!0})))},t}(p.Component);t.a=n.i(h.DragLayer)(i)(C)},function(e,t,n){"use strict"
;function i(e){var t=e.metadataItemEntityID,i=e.playerType,a=e.sortIndex,s=e.isCurrentItem,h=e.isPlayerPaused,v=e.isItemDragging,m=e.connectDragSource,g=e.onRemovePress;return r()("div",{className:(f.a.container||"")+" "+(v&&f.a.isItemDragging||"")+" "+(s&&f.a.isCurrentItem||"")},void 0,r()("div",{className:f.a.leftContainer},void 0,s&&r()(d.a,{isPaused:h}),!s&&m(r()("div",{className:f.a.moveControls},void 0,r()(l.a,{className:f.a.grabButton,name:"plex-icon-reorder-560"})))),r()(p.a,{
className:f.a.metadataContainer,durationContainerClassName:f.a.metadataDurationContainer,metadataItemEntityID:t,playerType:i,sortIndex:a}),!s&&r()("div",{className:f.a.removeControls},void 0,r()(c.a,{className:f.a.removeButton,icon:"plex-icon-remove-560",title:n.i(o.default)("Remove"),kind:u.b.DANGER,onPress:g})))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(27),u=n(20),c=n(366),d=n(610),p=n(2415),h=n(2939),f=n.n(h);i.defaultProps={isCurrentItem:!1,isPlayerPaused:!1,isItemDragging:!1,
connectDragSource:function(e){return e}},t.a=i},function(e,t,n){"use strict";function i(e,t){return{connectDragPreview:e.dragPreview(),connectDragSource:e.dragSource(),isDragging:t.isDragging()}}function a(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver()}}var r=n(6),s=n.n(r),o=n(2),l=n.n(o),u=n(14),c=n.n(u),d=n(7),p=n.n(d),h=n(9),f=n.n(h),v=n(8),m=n.n(v),g=n(0),y=n.n(g),b=n(39),S=(n.n(b),n(264)),I=(n.n(S),n(491)),M=(n.n(I),n(26)),C=n(309),w=n(469),D=n(1018),P=n(2940),T=n.n(P),x={
beginDrag:function(e){return{playQueueItemEntityID:e.playQueueItemEntityID}},endDrag:function(e,t,n){e.onPlayQueueItemDragEnd(t.getItem(),t.didDrop())}},E={hover:function(e,t,i){var a=n.i(b.findDOMNode)(i).getBoundingClientRect(),r=(a.bottom-a.top)/2,s=t.getClientOffset(),o=s.y-a.top,l=e.sortIndex,u=o>r?l+1:l;e.onPlayQueueItemDragMove(u)}},N=function(e){function t(){return p()(this,t),f()(this,e.apply(this,arguments))}return m()(t,e),t.prototype.componentDidMount=function(){
this.props.connectDragPreview(n.i(I.getEmptyImage)())},t.prototype.shouldComponentUpdate=function(e,t){return n.i(M.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.isDragging,n=e.isDraggingBefore,i=e.isDraggingAfter,a=e.isOver,r=e.connectDropTarget,o=e.connectDragSource,u=c()(e,["isDragging","isDraggingBefore","isDraggingAfter","isOver","connectDropTarget","connectDragSource"]);return r(l()("div",{
className:(T.a.container||"")+" "+(t&&w.a||"")+" "+(n&&a&&w.b||"")+" "+(i&&a&&w.c||"")},void 0,y.a.createElement(D.a,s()({connectDragSource:o},u))))},t}(g.Component);t.a=n.i(S.DropTarget)(C.c,E,a)(n.i(S.DragSource)(C.c,x,i)(N))},function(e,t,n){"use strict";function i(e){var t=document.getElementById("plex").classList;e?t.add("show-video-player"):t.remove("show-video-player")}var a=n(2),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=(n.n(p),
n(66)),f=n(34),v=n(81),m=n(209),g=n(866),y=n(867),b=n(940),S=n(1036),I=n(2442),M=n(1034),C=n(1033),w=n(1031),D=n(2448),P=n(1024),T=n(1023),x=n(2400),E=n(2404),N=n(2397),L=n(2395),A=n(2941),k=n.n(A),_=v.b,O=r()(w.a,{isOpen:!0,playerType:_}),j=r()(P.a,{isOpen:!0,playerType:_}),R=r()(T.a,{isOpen:!0,playerType:_}),U=r()(w.a,{isOpen:!0,playerType:_}),z=r()(M.a,{playerType:_}),B=r()(y.a,{playerType:_}),F=function(e){function t(n,i){o()(this,t);var a=u()(this,e.call(this,n,i))
;return a.onPositionMillisecondsChange=function(e){a.setState({positionMilliseconds:e})},a.onSeekRangeChange=function(e,t){a.setState({seekStartMilliseconds:e,seekEndMilliseconds:t})},a.onFullscreenChange=function(e){a.setState({isFullscreen:e})},a.onEnterFullscreenPress=function(){a.setState({isFullscreen:!0})},a.onExitFullscreenPress=function(){a.setState({isFullscreen:!1})},a.onToggleFullscreenShortcut=function(){a.setState(function(e){return{isFullscreen:!e.isFullscreen}})},a.state={
positionMilliseconds:0,seekStartMilliseconds:0,seekEndMilliseconds:0,isFullscreen:!1},a}return d()(t,e),t.prototype.componentDidMount=function(){i(this.props.showBackgroundVideoPlayer)},t.prototype.componentDidUpdate=function(e,t){e.showBackgroundVideoPlayer!==this.props.showBackgroundVideoPlayer&&i(this.props.showBackgroundVideoPlayer)},t.prototype.componentWillUnmount=function(){i(!1)},t.prototype.render=function(){
var e=this.props,t=e.isOpen,n=e.isMiniPlayer,i=e.isRemotePlayer,a=e.isPlayQueueLoading,s=e.isMediaLoading,o=e.isPostPlayLoading,l=e.isBuffering,u=e.isSettingsVisible,c=e.isPlayQueueVisible,d=e.isLyricsVisible,p=e.isPostPlayVisible,v=e.isUpNextVisible,y=e.hasError,M=e.hasConflicts,w=e.showBackgroundVideoPlayer,P=e.currentMediaType,T=e.confirmPlaybackPayload,A=e.confirmOffsetPayload,F=e.confirmRemoteToLocal,V=e.confirmLocalToRemote,Q=e.positionSeconds,H=this.state,W=H.positionMilliseconds,Y=H.seekStartMilliseconds,G=H.seekEndMilliseconds,K=H.isFullscreen
;if(!t)return y?O:M?r()(D.a,{isOpen:!0,isPlayerOpen:t,playerType:_}):null;var q=Math.abs(Q-Math.floor(W/1e3)),X=q>1?1e3*Q:W,Z=n?E.a:x.a,J=P===h.d?I.a:S.a;return r()(m.a,{page:f.G},void 0,r()(b.a,{className:((n?k.a.miniPlayerContainer:k.a.fullPlayerContainer)||"")+" "+(!w&&!n&&k.a.fullPlayerContainerBackground||""),isFullscreen:K,onFullscreenChange:this.onFullscreenChange},void 0,T&&r()(N.a,{isOpen:!0,playerType:_,confirmPlaybackPayload:T}),A&&r()(L.a,{isOpen:!0,playerType:_,
confirmOffsetPayload:A}),F&&j,V&&R,y&&U,M&&r()(D.a,{isOpen:!0,isPlayerOpen:t,playerType:_}),!p&&!a&&!i&&!F&&r()(J,{containerClassName:n&&J===S.a?k.a.miniVideoContainer:void 0,playerType:_,mediaType:P,onPositionMillisecondsChange:this.onPositionMillisecondsChange,onSeekRangeChange:this.onSeekRangeChange}),r()(Z,{playerType:_,isRemotePlayer:i,isPlayQueueLoading:a,isMediaLoading:s,isPostPlayLoading:o,isBuffering:l,isFullscreen:K,isSettingsVisible:u,isPlayQueueVisible:c,isLyricsVisible:d,
isPostPlayVisible:p,isUpNextVisible:v,isVideo:P===h.a,isMusic:P===h.d,positionMilliseconds:X,seekStartMilliseconds:Y,seekEndMilliseconds:G,onEnterFullscreenPress:this.onEnterFullscreenPress,onExitFullscreenPress:this.onExitFullscreenPress}),r()(C.a,{playerType:_,onToggleFullscreenShortcut:this.onToggleFullscreenShortcut}),z,r()(g.a,{playerType:_,isRemotePlayer:i}),B))},t}(p.Component);t.a=F},function(e,t,n){"use strict";function i(){return n.i(l.createSelector)(function(e,t){
return t.isMiniPlayer},n.i(u.a)(),n.i(c.a)(),n.i(d.a)(),function(e,t,i,a){var r=void 0;if(a){var s=n.i(p.b)(a.type);r=s&&s.mediaType}return{isPlayQueueLoading:t.isPlayQueueLoading,isMediaLoading:t.isMediaLoading,isPostPlayLoading:t.isPostPlayLoading,isBuffering:t.isBuffering,isSettingsVisible:t.isSettingsVisible,isPlayQueueVisible:t.isPlayQueueVisible,isLyricsVisible:t.isLyricsVisible,isPostPlayVisible:t.isPostPlayVisible,hasError:t.hasError,isUpNextVisible:!!t.liveTVSession,
hasConflicts:t.hasConflicts,showBackgroundVideoPlayer:!!i&&!e,currentMediaType:r,confirmPlaybackPayload:t.confirmPlaybackPayload,confirmOffsetPayload:t.confirmOffsetPayload,confirmRemoteToLocal:t.confirmRemoteToLocal,confirmLocalToRemote:t.confirmLocalToRemote,positionSeconds:t.positionSeconds}})}var a=n(6),r=n.n(a),s=n(0),o=(n.n(s),n(11)),l=n(5),u=(n.n(l),n(42)),c=n(229),d=n(85),p=n(30),h=n(2410),f=n.i(o.b)(i)(h.a);f.propTypes=r()({},f.propTypes,{playerType:s.PropTypes.string.isRequired}),t.a=f
},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.serverEntityID,a=e.providerEntityID,s=e.metadataItemEntityID,h=e.liveTVSessionEntityID,v=e.metadataKey,m=e.type,g=e.positionSeconds,y=e.context,b=e.showPoster,S=e.showStarRating,I=e.showExpandButton,M=e.disableExpandButton,C=e.hasUserRating,w=e.imageWidth,D=e.imageHeight,P=e.imageUrl,T=e.isMusic,x=e.onExpandPress,E=n.i(l.a)(m,y,{providerEntityID:a}),N=T?"music":v;return r()("div",{className:(t||"")+" "+(C&&f.a.hasUserRating||"")
},void 0,r()("div",{className:f.a.cardContainer},void 0,b&&r()(u.a,{serverEntityID:i,providerEntityID:a,metadataItemEntityID:s,metadataKey:N,type:m,imageWidth:w,imageHeight:D,imageUrl:P,showLinkOnly:!0}),I&&r()(p.a,{className:f.a.expandButton,icon:"plex-icon-player-expand-560",isDisabled:M,title:n.i(o.default)("Expand Player"),onPress:x})),r()("div",{className:f.a.titlesContainer},void 0,E.map(function(e,t){return r()(c.a,{serverEntityID:i,providerEntityID:a,metadataItemEntityID:s,
liveTVSessionEntityID:h,positionSeconds:g,component:e,isSecondary:t>0},t)}),S&&r()(d.a,{className:f.a.ratingContainer,serverEntityID:i,providerEntityID:a,metadataItemEntityID:s})))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=(n(32),n(173)),u=n(247),c=n(249),d=n(374),p=n(254),h=n(2943),f=n.n(h);i.defaultProps={className:f.a.container},t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(l.a)(),n.i(c.a)(),function(e,t){return t?t:e})}function a(){
return n.i(r.createSelector)(n.i(u.a)(),function(e,t){return t.isMusic},i(),function(e,t,i){var a=d.c,r=n.i(f.a)(null,m,i.type,i,a);return{serverEntityID:e.serverEntityID,providerEntityID:e.providerEntityID,metadataItemEntityID:i.entityID,type:i.type,metadataKey:i.key,context:a,showPoster:e.openState===o.b,showStarRating:t,hasUserRating:null!=i.userRating,imageWidth:r.width,imageHeight:r.height,imageUrl:r.url}})}var r=n(5),s=(n.n(r),
n(11)),o=n(137),l=n(21),u=n(42),c=n(401),d=n(32),p=n(57),h=n.n(p),f=n(256),v=n(2412),m=parseInt(h.a.playerPosterHeight,10);t.a=n.i(s.b)(a)(v.a)},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.titlesContainerClassName,a=e.durationContainerClassName,s=e.serverEntityID,h=e.providerEntityID,v=e.metadataItemEntityID,m=e.type,g=e.metadataKey,y=e.title,b=e.duration,S=e.context,I=e.imageWidth,M=e.imageHeight,C=e.imageUrl,w=e.onPlayPress,D=n.i(c.a)(m,S,{providerEntityID:h
}),P="track"===m;return r()("div",{className:t},void 0,r()("div",{className:f.a.cardContainer},void 0,r()(d.a,{className:f.a.card,serverEntityID:s,providerEntityID:h,metadataItemEntityID:v,metadataKey:g,title:n.i(o.default)("Play {title}",{title:y}),type:m,imageWidth:I,imageHeight:M,imageUrl:C,onPlayPress:w})),r()("div",{className:i},void 0,D.map(function(e,t){return r()(p.a,{serverEntityID:s,providerEntityID:h,metadataItemEntityID:v,component:e,isSecondary:t>0},t)})),r()("div",{className:a
},void 0,P?n.i(u.a)(b):n.i(l.a)(b)))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(273),u=n(235),c=(n(32),n(173)),d=n(968),p=n(249),h=n(2944),f=n.n(h);i.defaultProps={className:f.a.container,titlesContainerClassName:f.a.titlesContainer,durationContainerClassName:f.a.durationContainer},t.a=i},function(e,t,n){"use strict";function i(){return n.i(o.createSelector)(n.i(c.a)(),n.i(u.a)(),function(e,t){var i=d.d,a=n.i(f.b)(t.type,i)===f.d?m:g,r=n.i(h.a)(a,null,t.type,t,i);return{
serverEntityID:e.serverEntityID,providerEntityID:e.providerEntityID,type:t.type,metadataKey:t.key,duration:t.duration,title:t.title,context:i,imageWidth:r.width,imageHeight:r.height,imageUrl:r.url}})}function a(e,t){var i={playerType:t.playerType};return{onPlayPress:function(){e(n.i(p.q)(s()({},i,{index:t.sortIndex})))}}}var r=n(6),s=n.n(r),o=n(5),l=(n.n(o),n(11)),u=n(21),c=n(42),d=n(32),p=n(109),h=n(256),f=n(132),v=n(2414),m=64,g=36;t.a=n.i(l.b)(i,a)(v.a)},function(e,t,n){"use strict"
;function i(e){var t=e.serverEntityID,n=e.providerEntityID,i=e.metadataItemEntityID,a=e.hubEntityIDs,s=e.playerType;return r()(o.a,{className:h.a.container,smoothScroll:!1,autoScroll:!0},void 0,r()("div",{className:h.a.poster},void 0,r()(d.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,playerType:s})),r()("div",{className:h.a.details},void 0,r()(c.a,{serverEntityID:t,providerEntityID:n,metadataItemEntityID:i,showStreams:!1}),r()(u.a,{},void 0,a&&a.length>0&&r()(l.a,{
serverEntityID:t,providerEntityID:n,hubEntityIDs:a,columnAdjustment:1}))))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(67)),l=n(617),u=n(103),c=n(2291),d=n(2424),p=n(2945),h=n.n(p);t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),n.i(o.a)(),n.i(o.a)(1),function(e,t,n){return n?{serverEntityID:e.serverEntityID,providerEntityID:e.providerEntityID,metadataItemEntityID:n.metadataItem,hubEntityIDs:t.postPlay}:{}})}var a=n(11),r=n(5),s=(n.n(r),
n(42)),o=n(85),l=n(2416),u=n.i(a.b)(i)(l.a);t.a=u},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(3),p=n.n(d),h=n(4),f=n(0),v=(n.n(f),n(20)),m=n(872),g=n(50),y=n(68),b=n(245),S=n(2419),I=n(113),M=n(2946),C=n.n(M),w="toggleShowAll",D={placement:"top-start"},P=function(e){function t(i,a){s()(this,t);var r=l()(this,e.call(this,i,a));r.onToggleMenuPress=function(e){r.setState({isMenuOpen:!r.state.isMenuOpen})},r.onMenuClose=function(e){
r.setState({isMenuOpen:!1})},r.onQualitySelect=function(e){if(e===w)return void r.setState({showAll:!0,qualities:r._getQualityMenuValues(r.props.availableQualities,r.props.qualityIndex,!0)});r.setState({isMenuOpen:!1}),r.props.onQualityChange(e)};var o=!r._canToggleShowAll(i.availableQualities);return r.state={isMenuOpen:!1,showAll:o,qualities:r._getQualityMenuValues(i.availableQualities,i.qualityIndex,o)},r._menuInputButtonID=n.i(g.a)(),r}return c()(t,e),
t.prototype.componentWillReceiveProps=function(e){var t=e.qualityIndex!==this.props.qualityIndex,n=e.availableQualities!==this.props.availableQualities;if(t||n){var i=this.state.showAll;!n||i||this._canToggleShowAll(e.availableQualities)||(i=!0),this.setState({showAll:i,qualities:this._getQualityMenuValues(e.availableQualities,e.qualityIndex,i)})}},t.prototype._canToggleShowAll=function(e){var t=e.some(function(e){return e.explicitQuality===!0}),n=!!p.a.findWhere(e,{
index:I.a.CONVERT_AUTOMATICALLY});return t&&n},t.prototype._getQualityMenuValues=function(e,t,i){var a=e.filter(function(e){return i||!e.explicitQuality||e.index===t});return a.push({index:w,conversionDescription:n.i(h.default)("Show all")}),a},t.prototype.render=function(){var e=this,t=this.props.qualityIndex,n=this.state.qualities,i=n.find(function(e){return e.index===t});return a()(b.a,{id:this._menuInputButtonID,size:v.d.MEDIUM,direction:this.state.isMenuOpen?m.UP:m.DOWN,
onPress:this.onToggleMenuPress},void 0,i.conversionDescriptionSummary,a()(y.a,{className:C.a.menu,isOpen:this.state.isMenuOpen,target:this._menuInputButtonID,options:D,onMenuClose:this.onMenuClose},void 0,n.map(function(n){return a()(S.a,{conversionQualityIndex:n.index,conversionQuality:n,isSelected:n.index===t,isHidden:e.state.showAll&&n.index===w,onQualitySelect:e.onQualitySelect},n.index)})))},t}(f.Component);t.a=P},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(93)),h=n(2947),f=n.n(h),v=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u];return n=i=l()(this,e.call.apply(e,[this].concat(o))),i.onPress=function(e){i.props.onQualitySelect(i.props.conversionQualityIndex)},a=n,l()(i,a)}return c()(t,e),t.prototype.render=function(){
var e=this.props,t=e.conversionQualityIndex,n=e.conversionQuality,i=e.isSelected,r=e.isHidden;return a()(p.a,{className:r?f.a.isHidden:void 0,isSelected:i,onPress:this.onPress},t,n.conversionDescription,n.conversionDescriptionExtra&&a()("span",{className:f.a.itemExtraDetail},void 0,n.conversionDescriptionExtra))},t}(d.Component);t.a=v},function(e,t,n){"use strict";function i(e){return e.liveTVSessionEntityID?r.a.createElement(o.a,e):r.a.createElement(s.a,e)}var a=n(0),r=n.n(a),s=n(658),o=n(2431)
;t.a=i},function(e,t,n){"use strict";function i(e){var t=e.label,n=e.children;return s()("div",{className:m.a.row},void 0,s()("div",{className:m.a.label},void 0,t),s()("div",{className:m.a.cell},void 0,n))}function a(e){var t=e.availableQualities,a=e.audioStreams,r=e.selectedAudioStream,o=e.subtitlesStreams,v=e.selectedSubtitlesStream,g=e.qualityIndex,y=e.canSetVideoQuality,b=e.canSetAudioStream,S=e.canSetSubtitleStream,I=e.onQualityChange,M=e.onAudioStreamChange,C=e.onSubtitleStreamChange
;return s()(f.a,{className:m.a.container},void 0,s()("div",{className:m.a.title},void 0,n.i(l.default)("Playback Settings")),s()("div",{className:m.a.menusContainer},void 0,y&&!!t.length&&t.findIndex(function(e){return e.index===g})>-1&&s()(i,{label:n.i(l.default)("Quality")},void 0,s()(d.a,{qualityIndex:g,availableQualities:t,onQualityChange:I})),s()(i,{label:n.i(l.default)("Audio Stream")},void 0,b&&a.length>1?s()(c.a,{name:"audioStream",size:u.d.MEDIUM,value:""+r.id,values:a.map(function(e){
var t;return t={},t[""+e.id]=s()(p.a,{audioStream:e}),t}),onChange:M}):s()(p.a,{audioStream:r})),s()(i,{label:n.i(l.default)("Subtitles")},void 0,S&&o.length>1?s()(c.a,{name:"subtitleStream",size:u.d.MEDIUM,value:""+v.id,values:o.map(function(e){var t;return t={},t[""+e.id]=s()(h.a,{subtitlesStream:e}),t}),onChange:C}):s()(h.a,{subtitlesStream:v}))))}var r=n(2),s=n.n(r),o=n(0),l=(n.n(o),n(4)),u=n(20),c=n(2037),d=n(2418),p=n(635),h=n(636),f=n(1022),v=n(2948),m=n.n(v);t.a=a},function(e,t,n){
"use strict";function i(){return n.i(M.createSelector)(n.i(D.a)(),function(e){return e.availableQualities})}function a(){return n.i(M.createSelector)(i(),n.i(N.a)(),n.i(T.a)(),n.i(P.a)(),n.i(x.a)(),n.i(A.a)(),function(e,t,i,a,r,s){return n.i(w.a)({availableQualities:e,transcodeServer:t,currentDecision:i,currentBandwidth:a,mediaItem:r,canPlayAdaptiveBitrate:s})})}function r(){return n.i(M.createSelector)(n.i(D.a)(),function(e){return e.controllable})}function s(){
return n.i(M.createSelector)(r(),a(),n.i(E.a)(),n.i(N.a)(),n.i(L.a)(),function(e,t,n,i,a){var r=C.a.get("audio").id,s=n?y.a.where(n.Stream,{streamType:r}):[],o=n&&y.a.findWhere(n.Stream,{streamType:r,selected:!0}),l=C.a.get("subtitles").id;return{availableQualities:t,audioStreams:s,selectedAudioStream:o,subtitlesStreams:n?y.a.where(n.Stream,{streamType:l}):[],selectedSubtitlesStream:n&&y.a.findWhere(n.Stream,{streamType:l,selected:!0}),
canSetVideoQuality:e?!!e.quality:!!i.transcoderVideo&&!i.transcoderVideoRemuxOnly,canSetAudioStream:!e||!!e.audioStream,canSetSubtitleStream:!e||!!e.subtitleStream,qualityIndex:a}})}var o=n(6),l=n.n(o),u=n(14),c=n.n(u),d=n(7),p=n.n(d),h=n(9),f=n.n(h),v=n(8),m=n.n(v),g=n(3),y=n.n(g),b=n(0),S=n.n(b),I=n(11),M=n(5),C=(n.n(M),n(90)),w=n(1450),D=n(42),P=n(1382),T=n(229),x=n(530),E=n(784),N=n(534),L=n(592),A=n(783),k=n(122),_=n(2421),O={dispatchChangeQualityIndex:k.r,dispatchChangeStream:k.s
},j=function(e){function t(){var n,i,a;p()(this,t);for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o];return n=i=f()(this,e.call.apply(e,[this].concat(s))),i.onQualityChange=function(e){var t=i.props,n=t.playerType;(0,t.dispatchChangeQualityIndex)({playerType:n,qualityIndex:parseInt(e,10)})},i.onAudioStreamChange=function(e){var t=i.props,n=t.playerType;(0,t.dispatchChangeStream)({playerType:n,streamTypeString:"audio",streamID:parseInt(e,10)})},
i.onSubtitleStreamChange=function(e){var t=i.props,n=t.playerType;(0,t.dispatchChangeStream)({playerType:n,streamTypeString:"subtitles",streamID:parseInt(e,10)})},a=n,f()(i,a)}return m()(t,e),t.prototype.render=function(){var e=this.props,t=(e.dispatchChangeQualityIndex,e.dispatchChangeStream,c()(e,["dispatchChangeQualityIndex","dispatchChangeStream"]));return S.a.createElement(_.a,l()({},t,{onQualityChange:this.onQualityChange,onAudioStreamChange:this.onAudioStreamChange,
onSubtitleStreamChange:this.onSubtitleStreamChange}))},t}(b.Component);t.a=n.i(I.b)(s,O)(j)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(73),f=n(32),v=n(132),m=n(1049),g=n(186),y=n(213),b=n(367),S=n(248),I=n(2950),M=n.n(I),C=10,w=function(e){function t(i,a){s()(this,t);var r=l()(this,e.call(this,i,a));return r.onContentMeasure=function(e){var t=e.width;r.setState({isMeasured:!0,width:t,
height:n.i(v.a)(t,r.props.type,f.a)})},r.onCountdown=function(){var e=r.state.secondsLeft-1;e<=0?r.props.onPlay():r.setState({secondsLeft:e})},r.state={isMeasured:!1,width:0,height:0,secondsLeft:C},r}return c()(t,e),t.prototype.componentDidMount=function(){this.props.autoPlayEnabled&&(this._tickIntervalID=setInterval(this.onCountdown,1e3))},t.prototype.componentWillReceiveProps=function(e){this.props.autoPlayEnabled&&!e.autoPlayEnabled&&(clearInterval(this._tickIntervalID),this.setState({
secondsLeft:C})),!this.props.autoPlayEnabled&&e.autoPlayEnabled&&(this._tickIntervalID=setInterval(this.onCountdown,1e3))},t.prototype.componentWillUnmount=function(){clearInterval(this._tickIntervalID)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,i=e.type,r=e.posterUrl,s=e.autoPlayEnabled,o=e.onToggleAutoPlay,l=e.onPlay,u=this.state,c=u.isMeasured,d=u.width,f=u.height,v=u.secondsLeft,I=C-v+1,w=I/C*100;return a()(h.a,{onMeasure:this.onContentMeasure},void 0,a()("div",{
className:M.a.title},void 0,n.i(p.default)("Playing Next")),c&&a()("div",{className:M.a.poster,style:{width:d,height:f}},void 0,a()(S.a,{serverEntityID:t,type:i,width:d,height:f,url:r}),s&&a()("div",{className:M.a.progress},void 0,a()(y.a,{size:d/4,lineWidth:3,progress:w,showProgressText:!1,easing:m.b}),a()("span",{className:M.a.timeLeft},void 0,v)),a()(g.a,{className:M.a.playButton,circleClassName:M.a.playCircle,"aria-label":n.i(p.default)("Play Next"),onPress:l})),a()(b.a,{
className:s?M.a.autoPlayOn:M.a.autoPlayOff,name:"autoPlayCheck",value:s,checkboxText:s?n.i(p.default)("Auto Play On"):n.i(p.default)("Auto Play Off"),onChange:o}))},t}(d.Component);t.a=w},function(e,t,n){"use strict";function i(){return n.i(s.createSelector)(n.i(o.a)(),n.i(l.a)(),u.a,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];return{type:t.type,posterUrl:t.thumb,autoPlayEnabled:n.autoPlay}})}function a(e,t){var i=t.playerType;return{
onToggleAutoPlay:function(){e(n.i(c.a)())},onPlay:function(){e(n.i(d.d)({playerType:i}))}}}var r=n(11),s=n(5),o=(n.n(s),n(42)),l=n(21),u=n(111),c=n(588),d=n(122),p=n(2423);t.a=n.i(r.b)(i,a)(p.a)},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(function(e,t){return t.isVideo},function(e,t){return t.isMusic},n.i(l.a)(),n.i(u.a)(),c.a,function(e,t,n,i,a){var r=n.liveTVSession,s=n.positionSeconds,l=n.seekStartSeconds,u=n.seekEndSeconds;return{liveTVSessionEntityID:r,
showDuration:!1,showRecordButton:!0,showRepeatButton:!1,showRepeatOneButton:!1,disablePreviousButton:s<=o.a||s-l<=o.a,disableSkipForwardButton:u-s<=o.c,disableNextButton:s>=u,showShuffleButton:!1,showMenuButton:!1,showLyricsButton:!1,showSettingsButton:!1,showQueueButton:!1}})}function a(e,t){var n={playerType:t.playerType};return{onPreviousPress:function(t){e(d.b(n))},onSkipBackPress:function(t){e(d.c(n))},onSkipForwardPress:function(t){e(d.d(n))},onNextPress:function(t){e(d.e(n))}}}
var r=n(5),s=(n.n(r),n(11)),o=n(233),l=n(42),u=n(85),c=n(432),d=n(227),p=n(1019);t.a=n.i(s.b)(i,a)(p.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(217)),h=n(2428),f=n(2951),v=n.n(f),m=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onRecordPress=function(e){a.setState({isSubscribeModalOpen:!0})},a.onSubscribeModalClose=function(){a.setState({isSubscribeModalOpen:!1})},a.state={
isSubscribeModalOpen:!1},a}return c()(t,e),t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.metadataItemEntityID,i=e.type;return a()("div",{className:v.a.recordButtonContainer},void 0,a()(h.a,{serverEntityID:t,metadataItemEntityID:n,type:i,onPress:this.onRecordPress}),a()(p.a,{serverEntityID:t,metadataItemEntityID:n,isOpen:this.state.isSubscribeModalOpen,subscriptionType:i,onModalClose:this.onSubscribeModalClose}))},t}(d.Component);t.a=m},function(e,t,n){"use strict"
;function i(e){var t=e.isRecording,i=e.recordingProgress,a=e.onPress;return r()(l.a,{className:d.a.recordButton,title:n.i(o.default)("Record"),onPress:a},void 0,t&&r()(u.a,{size:26,backgroundClassName:d.a.recordingProgressBackground,lineWidth:2,progress:i,showProgressText:!1}),!t&&r()("div",{className:d.a.recordingCircle}),r()("span",{className:t?d.a.recordingIconRecording:d.a.recordingIcon}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(23),u=n(213),c=n(2952),d=n.n(c);t.a=i},function(e,t,n){
"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(e){return{isRecording:!!e,recordingProgress:e&&e.progress}})}var a=n(11),r=n(5),s=(n.n(r),n(906)),o=n(2427);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(e){return{metadataItemEntityID:e.entityID,type:e.type}})}var a=n(11),r=n(5),s=(n.n(r),n(401)),o=n(2426);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(14),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(275),m=n(20),g=n(1035),y=function(e){function t(){var i,a,r;l()(this,t);for(var s=arguments.length,o=Array(s),u=0;u<s;u++)o[u]=arguments[u];return i=a=c()(this,e.call.apply(e,[this].concat(o))),a.formatPlayerTime=function(e){var t=a.props.timeFormat;return n.i(v.default)(e/1e3,t)},a.onSeek=function(e){
var t=e.positionSeconds,n=a.props,i=n.streamStartedAt,r=n.seekStartMilliseconds,s=n.seekEndMilliseconds,o=Math.floor(r/1e3),l=Math.floor(s/1e3),u=t-i;u<o?u=o:u>l&&(u=l),a.props.onSeek({playerType:a.props.playerType,positionSeconds:u})},r=i,c()(a,r)}return p()(t,e),t.prototype.render=function(){var e=this.props,t=e.canSeek,n=e.positionMilliseconds,i=e.beginsAt,r=e.endsAt,o=(e.durationSeconds,e.streamStartedAt),l=e.seekStartMilliseconds,u=e.seekEndMilliseconds,c=(e.timeFormat,
s()(e,["canSeek","positionMilliseconds","beginsAt","endsAt","durationSeconds","streamStartedAt","seekStartMilliseconds","seekEndMilliseconds","timeFormat"]));if(!t)return null;var d=u||n,p=1e3*o,h=1e3*i,v=1e3*(r-1),y=Math.max(h,l+p),b=Math.min(v,d+p),S=p+n;return f.a.createElement(g.a,a()({positionMilliseconds:S,offsetMilliseconds:h,durationMilliseconds:v,bufferStartMilliseconds:y,bufferEndMilliseconds:b,showBuffer:!0,canSeek:t,formatValue:this.formatPlayerTime,size:m.d.LARGE},c,{
onSeek:this.onSeek}))},t}(h.Component);y.defaultProps={beginsAt:0,endsAt:0,streamStartedAt:0},t.a=y},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(p,n.i(l.a)(),n.i(u.a)(),n.i(o.a)(),n.i(s.a)(),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3],a=arguments[4],r=n.beginsAt,s=n.endsAt,o=a.serverEntityID,l=a.controllable,u=i.grabOperation,c=s-r,d=u?u.beginsAt:void 0,p={
serverEntityID:o,metadataItemEntityID:t.entityID,canSeek:!!c,beginsAt:r,endsAt:s,durationSeconds:c,streamStartedAt:d,timeFormat:e};return l&&!l.seekTo&&(p.canSeek=!1),p})}var a=n(5),r=(n.n(a),n(11)),s=n(42),o=n(529),l=n(401),u=n(777),c=n(122),d=n(2430),p=n.i(a.createSelector)(function(e){return e.experienceSettings.timeFormat},function(e){return e.replace(":mm",":mm:ss")}),h={onSeek:c.p};t.a=n.i(r.b)(i,h)(d.a)},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,i=e.providerEntityID,a=e.liveTVSessionEntityID,s=e.positionSeconds;return r()(c.a,{className:h.a.container},void 0,r()("div",{className:h.a.content},void 0,r()(l.a,{className:h.a.icon,name:"plex-icon-player-queue-560"}),r()(u.a,{message:n.i(o.default)("{openSpan}Up Next:{closeSpan} {openTitle}{closeTitle}"),tags:[{open:"openSpan",close:"closeSpan",component:"span",className:h.a.upNext},{open:"openTitle",close:"closeTitle",component:d.a,serverEntityID:t,providerEntityID:i,
liveTVSessionEntityID:a,positionSeconds:s}]})))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(27),u=n(285),c=n(1022),d=n(2435),p=n(2953),h=n.n(p);t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(e){return{serverEntityID:e.serverEntityID,providerEntityID:e.providerEntityID,positionSeconds:e.positionSeconds,liveTVSessionEntityID:e.liveTVSession}})}var a=n(11),r=n(5),s=(n.n(r),n(42)),o=n(2432);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict"
;function i(e){var t=e.type,n=r()(e,["type"]);return t===l.l?o.a.createElement(c.a,n):o.a.createElement(u.a,n)}var a=n(14),r=n.n(a),s=n(0),o=n.n(s),l=n(30),u=n(631),c=n(250);t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),n.i(o.a)(),function(e,t){var n=t.find(function(t){return[].concat(t.Media).sort(function(e,t){return e.endsAt-t.endsAt}).some(function(t){return t.beginsAt>=e})});return n?{metadataItemEntityID:n.entityID,type:n.type}:{}})}
var a=n(11),r=n(5),s=(n.n(r),n(528)),o=n(778),l=n(2434);t.a=n.i(a.b)(i)(l.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(3247)),h=n.n(p),f=n(29),v=n(800),m=n(50),g=n(73),y=n(2954),b=n.n(y),S=function(e){function t(i,a){s()(this,t);var r=l()(this,e.call(this,i,a));return r._loadSubtitles=function(){r._loadTimeout&&clearTimeout(r._loadTimeout);var e=r.props,t=e.subtitlesUrl,i=e.positionMilliseconds
;r._positionAtTimeOfRequest=i,n.i(f.a)("[Subtitles] loading subtitles. position: %s url: %s",r._positionAtTimeOfRequest,t),r._abortStream();var a=r._xhr=new window.XMLHttpRequest,s=new h.a.parser.XhrStream(r._xhr),o=new h.a.parser.StreamParser(s);a.onreadystatechange=function(e){4===e.currentTarget.readyState&&(e.currentTarget.status>=200&&e.currentTarget.status<300?r._errorCount=0:r.onSubtitlesFail())},a.open("GET",t,!0),a.send(),o.minimalASS.then(r.onSubtitlesLoad,r.onSubtitlesFail)},
r._getPosition=function(){var e=r.props,t=e.positionMilliseconds,n=e.offset,i=e.delay,a=(t-n+i)/1e3;if(a%1e3){var s=r._clock.currentTime;if(Math.floor(s)===a)return s}return a},r.onMeasure=function(e){var t=e.width,n=e.height;r.setState({width:t,height:n})},r.onSubtitlesLoad=function(e){n.i(f.a)("[Subtitles] Starting to render subtitles"),r._destroySubtitles(),r._clock=new h.a.renderers.AutoClock(r._getPosition,1e3),
r._renderer=new h.a.renderers.WebRenderer(e,r._clock,document.getElementById(r._rendererID),r.props.rendererOptions),r._setSubtitleSize(),r._resizeSubtitles(),r._setClockState()},r.onSubtitlesFail=function(){var e=r._xhr.readyState,t=r._xhr.status;r._errorCount++,f.a.warn("[Subtitles] Request failed. statusCode:%s state:%s errorCount:%s %s",t,e,r._errorCount,r._xhr.errorString||""),
r._errorCount>r.props.consecutiveErrorsTolerance?r.props.onSubtitlesError():r._loadTimeout=setTimeout(r._loadSubtitles,r.props.retryTimeout)},h.a.debugMode=!1,r.state={width:0,height:0},r._rendererID=n.i(m.a)(),r._loadTimeout=null,r._errorCount=0,r._positionAtTimeOfRequest=null,r}return c()(t,e),t.prototype.componentDidUpdate=function(e,t){
var n=this.props,i=n.isOpen,a=n.isBuffering,r=n.isPaused,s=n.hasError,o=n.heightOffset,l=n.rendererOptions,u=n.size,c=n.subtitlesUrl,d=this.state,p=d.width,h=d.height;if(this._shouldResetStream(e)||l!==e.rendererOptions||c!==e.subtitlesUrl)return void this._loadSubtitles();p===t.width&&h===t.height&&o===e.heightOffset||this._resizeSubtitles(),u!==e.size&&this._setSubtitleSize(),i===e.isOpen&&a===e.isBuffering&&r===e.isPaused&&s===e.hasError||this._setClockState()},
t.prototype.componentWillUnmount=function(){n.i(f.a)("[Subtitles] Closing"),this._destroySubtitles(),this._abortStream()},t.prototype._destroySubtitles=function(){this._loadTimeout&&clearTimeout(this._loadTimeout),this._clock&&(this._clock.disable(),this._clock=null),this._renderer&&(this._renderer.disable(),this._renderer=null);for(var e=document.getElementById(this._rendererID);e.hasChildNodes();)e.removeChild(e.lastChild)},t.prototype._abortStream=function(){
this._xhr&&(n.i(f.a)("[Subtitles] Aborting existing xhr."),this._xhr.onreadystatechange=null,this._xhr.abort(),this._xhr=null)},t.prototype._setSubtitleSize=function(){var e=this._renderer._ass._properties,t=this.props.size/100;e._resolutionX/=t,e._resolutionY/=t},t.prototype._resizeSubtitles=function(){if(this._renderer){var e=this.state,t=e.width,i=e.height;n.i(f.a)("[Subtitles] Resizing subtitles"),this._renderer.resize(t,i-this.props.heightOffset)}},t.prototype._setClockState=function(){
var e=this._clock;if(e){var t=this.props,i=t.isOpen,a=t.isBuffering,r=t.isPaused,s=t.hasError;return a||r?(n.i(f.a)("[Subtitles] Clock State: paused"),void e.pause()):!i||s?(n.i(f.a)("[Subtitles] Clock State: disabled"),void e.disable()):r?void 0:(n.i(f.a)("[Subtitles] Clock State: playing"),void e.play())}},t.prototype._shouldResetStream=function(e){
var t=this.props,n=t.isOpen,i=t.isMediaLoading,a=t.isBuffering,r=t.isPaused,s=t.hasError,o=t.positionMilliseconds,l=this._positionAtTimeOfRequest,u=o-e.positionMilliseconds,c=u>0&&n&&!i&&!a&&!r&&!s;return c&&this._resetLater?(this._resetLater=!1,!0):(!this._xhr||u>1e4||o<l)&&(this._resetLater=!c,c)},t.prototype.render=function(){return a()(g.a,{className:b.a.measure,onMeasure:this.onMeasure},void 0,a()("div",{id:this._rendererID,className:b.a.renderer}))},t}(d.Component);S.defaultProps={
offset:0,delay:0,size:v.a.NORMAL,heightOffset:0,consecutiveErrorsTolerance:3,retryTimeout:3e3,rendererOptions:{enableSvg:!1,preciseOutlines:!1}},t.a=S},function(e,t,n){"use strict";function i(){return n.i(g.createSelector)(n.i(I.a)(),n.i(S.a)(),n.i(M.a)(),n.i(C.a)(),b.a,function(e,t,n,i,a){var r=e.isOpen,s=e.isMediaLoading,o=e.isBuffering,l=e.isPaused,u=e.hasError,c=n.entityID,d={playQueueItemEntityID:c,isOpen:r,isMediaLoading:s,isBuffering:o,isPaused:l,hasError:u,qualityIndex:i}
;return t&&(d.decisionMediaIndex=t.mediaIndex,d.decisionPartIndex=t.partIndex,d.subtitlesUrl=t.subtitlesUrl),d.size=a.subtitleSize,d})}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(7),u=n.n(l),c=n(9),d=n.n(c),p=n(8),h=n.n(p),f=n(0),v=n.n(f),m=n(11),g=n(5),y=(n.n(g),n(272)),b=n(111),S=n(229),I=n(42),M=n(85),C=n(592),w=n(525),D=n(2436),P={dispatchMakeDecision:w.a,dispatchRemoveDecision:w.c},T=function(e){function t(){var n,i,a;u()(this,t)
;for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o];return n=i=d()(this,e.call.apply(e,[this].concat(s))),i.onSubtitlesError=function(){var e=i.props,t=e.playQueueItemEntityID,n=e.playerType,a=e.positionMilliseconds,r=e.qualityIndex,s=e.decisionMediaIndex,o=e.decisionPartIndex,l=e.dispatchMakeDecision;(0,e.dispatchRemoveDecision)({playerType:n,playQueueItemEntityID:t}),l({playerType:n,playQueueItemEntityID:t,qualityIndex:r,mediaIndex:s,partIndex:o,options:{offset:a,
subtitlesBurnLevel:y.a.ALWAYS}})},a=n,d()(i,a)}return h()(t,e),t.prototype.render=function(){var e=this.props,t=e.subtitlesUrl,n=(e.dispatchMakeDecision,e.dispatchRemoveDecision,o()(e,["subtitlesUrl","dispatchMakeDecision","dispatchRemoveDecision"]));return t?v.a.createElement(D.a,r()({subtitlesUrl:t},n,{onSubtitlesError:this.onSubtitlesError})):null},t}(f.Component);t.a=n.i(m.b)(i,P)(T)},function(e,t,n){"use strict";function i(e){var t=e.isOpen,i=e.playerName,a=e.onConfirm,s=e.onCancel
;return r()(u.a,{isOpen:t,metricsPage:l.L,title:n.i(o.default)("Continue Playback"),message:n.i(o.default)("Would you like to continue playback on {playerName}?",{playerName:i}),confirmLabel:n.i(o.default)("Yes"),cancelLabel:n.i(o.default)("No"),onConfirm:a,onCancel:s})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(34),u=n(127);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.isOpen,i=e.onConfirm,a=e.onCancel;return r()(u.a,{isOpen:t,metricsPage:l.M,
title:n.i(o.default)("Continue Playback"),message:n.i(o.default)("Would you like to continue playback here?"),confirmLabel:n.i(o.default)("Yes"),cancelLabel:n.i(o.default)("No"),onConfirm:i,onCancel:a})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(34),u=n(127);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(235)),h=n(23),f=n(2955),v=n.n(f),m=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i))
;return a.onTogglePress=function(){a.setState(function(e){return{isToggled:!e.isToggled}})},a.state={isToggled:!1},a}return c()(t,e),t.prototype.render=function(){var e=this.props,t=e.className,i=e.durationSeconds,r=e.positionSeconds,s=1e3*r,o=1e3*i,l=o-s;return a()(h.a,{className:t,onPress:this.onTogglePress},void 0,this.state.isToggled?"-"+n.i(p.a)(l):n.i(p.a)(s)," / ",n.i(p.a)(o))},t}(d.Component);m.defaultProps={className:v.a.container},t.a=m},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(13)),h=n(4),f=n(254),v=n(2452),m=n(2957),g=n.n(m),y=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u];return n=i=l()(this,e.call.apply(e,[this].concat(o))),i.onRouteChange=function(){i.props.onCollapsePress()},a=n,l()(i,a)}return c()(t,e),t.prototype.componentDidMount=function(){n.i(p.a)("appModel").on("change:history",this.onRouteChange)},
t.prototype.componentWillUnmount=function(){n.i(p.a)("appModel").off("change:history",this.onRouteChange)},t.prototype.render=function(){var e=this.props,t=e.className,i=e.showRemotePlayer,r=e.hasFullscreen,s=e.isFullscreen,o=e.remotePlayerName,l=e.onCollapsePress,u=e.onCastMenuChange,c=e.onEnterFullscreenPress,d=e.onExitFullscreenPress;return a()("div",{className:t},void 0,a()("div",{},void 0,a()(f.a,{className:g.a.topButton,icon:"plex-icon-player-minimize-560",
title:n.i(h.default)("Minimize Player"),onPress:l}),o&&a()("span",{className:g.a.remotePlayerName},void 0,n.i(h.default)("Casting to {playerName}",{playerName:o}))),a()("div",{},void 0,i&&a()(v.a,{className:g.a.castButton,onMenuChange:u}),r&&s&&a()(f.a,{className:g.a.topButton,icon:"plex-icon-player-windowed-560",title:n.i(h.default)("Exit Fullscreen"),onPress:d}),r&&!s&&a()(f.a,{className:g.a.topButton,icon:"plex-icon-player-fullscreen-560",title:n.i(h.default)("Enter Fullscreen"),onPress:c})))
},t}(d.Component);y.defaultProps={className:g.a.topControls},t.a=y},function(e,t,n){"use strict";function i(e){return o.a.createElement(l.a,r()({},e,{type:"audio",allowRecycleElement:!0}))}var a=n(6),r=n.n(a),s=n(0),o=n.n(s),l=n(1032),u=n(2959),c=n.n(u);i.defaultProps={containerClassName:c.a.musicContainer},t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(186),f=n(2960),v=n.n(f),m=175,g=function(e){function t(n,i){
s()(this,t);var a=l()(this,e.call(this,n,i));return a.onPress=function(e){a._cancelPlayPause(),a.setState(function(e){return{isPaused:!e.isPaused}}),a._playPauseTimeoutID=setTimeout(function(){a._playPauseTimeoutID=null,a.props.isPaused!==a.state.isPaused&&a.props.onTogglePlayPress(e)},m)},a.onDoubleClick=function(e){a.props.isFullscreen?a.props.onExitFullscreenPress():a.props.onEnterFullscreenPress()},a.state={isPaused:n.isPaused},a._playPauseTimeoutID=null,a}return c()(t,e),
t.prototype.componentWillReceiveProps=function(e){e.isPaused===this.state.isPaused||this._playPauseTimeoutID||this.setState({isPaused:e.isPaused})},t.prototype.componentWillUnmount=function(){this._cancelPlayPause()},t.prototype._cancelPlayPause=function(){this._playPauseTimeoutID&&(clearTimeout(this._playPauseTimeoutID),this._playPauseTimeoutID=null)},t.prototype.render=function(){var e=this.props.className,t=this.state.isPaused;return a()(h.a,{
className:(e||"")+" "+((t?v.a.playButton:v.a.pauseButton)||""),circleClassName:v.a.playCircle,iconClassName:v.a.playIcon,"aria-label":t?n.i(p.default)("Play"):n.i(p.default)("Pause"),onPress:this.onPress,onDoubleClick:this.onDoubleClick})},t}(d.Component);t.a=g},function(e,t,n){"use strict";function i(e,t,i,a){var r=e===u.l?i:t;return a?n.i(l.default)("Stop watching {openSpan}{title}{closeSpan} and continue",{title:r}):n.i(l.default)("Stop recording {openSpan}{title}{closeSpan} and continue",{
title:r})}function a(e){var t=e.serverEntityID,n=e.type,a=e.title,r=e.grandparentTitle,o=e.thumb,l=e.grandparentThumb,u=e.isRolling,h=e.onCancelConflictPress;return s()(p.a,{className:f.a.conflict,onPress:h},void 0,s()(c.a,{className:f.a.thumbnail,serverEntityID:t,url:o||l,width:53,height:80}),s()("div",{className:f.a.title},void 0,s()(d.a,{message:i(n,a,r,u),tags:[{open:"openSpan",close:"closeSpan",component:"span",className:f.a.titleHighlight}]})))}var r=n(2),s=n.n(r),o=n(0),l=(n.n(o),
n(4)),u=n(30),c=n(155),d=n(285),p=n(23),h=n(2961),f=n.n(h);t.a=a},function(e,t,n){"use strict";function i(){return n.i(s.createSelector)(n.i(o.a)(),function(e){return{type:e.type,title:e.title,grandparentTitle:e.grandparentTitle,thumb:e.thumb,grandparentThumb:e.grandparentThumb}})}function a(e,t){var i=t.playerType,a=t.grabOperationKey;return{onCancelConflictPress:function(){e(n.i(l.h)({playerType:i,grabOperationKey:a}))}}}var r=n(11),s=n(5),o=(n.n(s),n(21)),l=n(227),u=n(2444)
;t.a=n.i(r.b)(i,a)(u.a)},function(e,t,n){"use strict";function i(e){var t=Math.floor((new Date).getTime()/1e3);return e.reduce(function(e,n){var i=n.beginsAt;return i>t&&(!e||i<e)?i:e},0)}function a(e){return Math.max(0,e-Math.floor((new Date).getTime()/1e3))}var r=n(2),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=(n.n(h),n(4)),v=n(1404),m=n(2962),g=n.n(m),y=function(e){function t(n,r){l()(this,t);var s=c()(this,e.call(this,n,r));s._tick=function(){s.setState({
endSeconds:a(s.state.endsAt)}),s._setTickTimeout()},s._tickTimeout=null;var o=i(n.conflicts);return s.state={endsAt:o,endSeconds:a(o)},s}return p()(t,e),t.prototype.componentDidMount=function(){this._setTickTimeout()},t.prototype.componentDidUpdate=function(e,t){var n=this.props,i=n.conflicts,a=n.onModalClose;e.conflicts!==i&&this._updateEndSeconds(),t.endSeconds>0&&0===this.state.endSeconds&&a({showError:!0})},t.prototype.componentWillUnmount=function(){
this._tickTimeout&&clearTimeout(this._tickTimeout)},t.prototype._setTickTimeout=function(){this.state.endSeconds&&(this._tickTimeout=setTimeout(this._tick,1e3))},t.prototype._updateEndSeconds=function(){var e=i(this.props.conflicts);this.setState({endsAt:e,endSeconds:a(e)})},t.prototype.render=function(){var e=this.state.endSeconds,t=n.i(v.a)(1e3*e);return s()("div",{className:g.a.endsAtMessage},void 0,n.i(f.default)("This live TV session will end in: {formattedMinutesSeconds}",{
formattedMinutesSeconds:t}))},t}(h.Component);t.a=y},function(e,t,n){"use strict";function i(e){var t=e.isOpen,n=e.isPlayerOpen,i=e.playerType,a=e.serverEntityID,s=e.conflicts,d=e.isConflictCancelling,p=e.onModalClose;return r()(u.a,{size:l.d.SMALL,isOpen:t,metricsPage:o.K,onModalClose:p},void 0,r()(c.a,{isPlayerOpen:n,playerType:i,serverEntityID:a,conflicts:s,isConflictCancelling:d,onModalClose:p}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(34)),l=n(20),u=n(128),c=n(2449);t.a=i},function(e,t,n){
"use strict";function i(){return n.i(r.createSelector)(n.i(l.a)(),n.i(o.a)(),function(e,t){var n={serverEntityID:e.serverEntityID,error:e.cancelConflictError,isConflictCancelling:e.isConflictCancelling};return t&&(n.conflicts=t.grabOperation.conflicts),n})}function a(e,t){var i=t.isPlayerOpen,a=t.playerType;return{onModalClose:function(t){var r=t.showError,s=void 0!==r&&r;e(i?n.i(u.f)({playerType:a,showError:s}):n.i(u.g)({playerType:a}))}}}var r=n(5),s=(n.n(r),
n(11)),o=n(1377),l=n(42),u=n(227),c=n(2447);t.a=n.i(s.b)(i,a)(c.a)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,i=e.isPlayerOpen,a=e.playerType,s=e.isConflictCancelling,y=e.conflicts,S=e.error,I=e.onModalClose;return r()(u.a,{onModalClose:I},void 0,r()(d.a,{className:b.a.modalHeader},void 0,n.i(o.default)("All Tuners are Currently in Use")),!!S&&r()(c.a,{kind:l.b.DANGER,message:n.i(o.default)("There was an error trying to cancel the selected item, please try again")
}),r()(p.a,{innerClassName:b.a.innerModalBody},void 0,r()("div",{className:b.a.message},void 0,i?n.i(o.default)("A recording is scheduled to start in a few minutes and all tuners are currently in use. Please select from one of the actions below. Selecting OK or taking no action will end this live viewing session once the recording starts."):n.i(o.default)("Please select from one of the actions below.")),r()("div",{className:b.a.conflicts},void 0,y.map(function(e){return r()(m.a,{
serverEntityID:t,grabOperationKey:e.key,metadataItemEntityID:e.metadataItem,playerType:a,isRolling:e.rolling,isPlayerOpen:i},e.key)}))),r()(h.a,{},void 0,r()("div",{className:b.a.footerMessage},void 0,i&&r()(g.a,{conflicts:y,onModalClose:I})),r()(f.a,{},void 0,r()(v.a,{isSpinning:s,kind:l.b.PRIMARY,onPress:I},void 0,i?n.i(o.default)("OK"):n.i(o.default)("Cancel")))))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),
n(4)),l=n(20),u=n(94),c=n(612),d=n(102),p=n(69),h=n(117),f=n(95),v=n(92),m=n(2445),g=n(2446),y=n(2963),b=n.n(y);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.isOpen,i=e.errorMessage,a=e.errorCode,s=e.errorCategory,f=e.title,m=e.onModalClose,g=i||(f?n.i(o.default)('An error occurred trying to play "{title}".',{title:f}):n.i(o.default)("An error occurred trying to play this item."));return r()(c.a,{isOpen:t,metricsPage:l.N,size:u.d.SMALL,onModalClose:m},void 0,r()(d.a,{onModalClose:m
},void 0,r()(p.a,{className:v.a.modalHeader},void 0,n.i(o.default)("Playback Error")),r()(h.a,{},void 0,g,null!=a&&r()("p",{className:v.a.errorCode},void 0,s?a+" ("+s+")":a))))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(34),u=n(20),c=n(128),d=n(94),p=n(102),h=n(69),f=n(2964),v=n.n(f);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(50),f=n(27),v=n(245),m=n(68),g=n(2454),y=function(e){function t(i,a){s()(this,t)
;var r=l()(this,e.call(this,i,a));return r.onPress=function(){r.setState(function(e,t){return{isMenuOpen:!e.isMenuOpen}},function(){r.props.onMenuChange&&r.props.onMenuChange(r.state.isMenuOpen)})},r.onMenuClose=function(){r.setState({isMenuOpen:!1},function(){r.props.onMenuChange&&r.props.onMenuChange(!1)})},r.state={isMenuOpen:!1},r._menuButtonID=n.i(h.a)(),r}return c()(t,e),t.prototype.componentDidUpdate=function(e,t){this.state.isMenuOpen&&!t.isMenuOpen&&this.props.onDiscoverPlayers()},
t.prototype.render=function(){var e=this.props,t=e.className,i=e.isCastApiAvailable,r=e.isRemotePlayer,s=e.remotePlayerName,o=e.players,l=e.onPlayerSelect,u=e.onCastPress,c=e.onDisconnectPress;return a()(v.a,{id:this._menuButtonID,className:t,isSelected:r,onPress:this.onPress},void 0,a()(f.a,{name:r?"plex-icon-player-companion-cast-on-560":"plex-icon-player-companion-cast-560",title:n.i(p.default)("Select Player")}),a()(m.a,{target:this._menuButtonID,isOpen:this.state.isMenuOpen,
onMenuClose:this.onMenuClose},void 0,a()(g.a,{isCastApiAvailable:i,isRemotePlayer:r,remotePlayerName:s,players:o,onPlayerSelect:l,onCastPress:u,onDisconnectPress:c})))},t}(d.Component);t.a=y},function(e,t,n){"use strict";function i(e){return{onDiscoverPlayers:function(t){e(o.b())},onPlayerSelect:function(e){n.i(s.a)("remotePlexPlayerManager").requestSession(e)},onCastPress:function(t){e(l.a())},onDisconnectPress:function(t){e(o.c())}}}var a=n(5),r=(n.n(a),
n(11)),s=n(13),o=n(185),l=n(425),u=n(2451),c=n.i(a.createSelector)(function(e){return e.isCastApiAvailable},function(e){return e.remotePlayer},function(e){return e.players},function(e,t,n){return{isCastApiAvailable:e,isRemotePlayer:!!t,remotePlayerName:t&&t.friendlyName,players:n}});t.a=n.i(r.b)(c,i)(u.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(144)),h=function(e){function t(){var n,i,a;s()(this,t)
;for(var r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u];return n=i=l()(this,e.call.apply(e,[this].concat(o))),i.onPress=function(e){i.props.onPlayerSelect(i.props.machineIdentifier),i.props.onPress(e)},a=n,l()(i,a)}return c()(t,e),t.prototype.render=function(){return a()(p.a,{onPress:this.onPress},void 0,this.props.children)},t}(d.Component);t.a=h},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),
n(4)),h=n(144),f=n(2453),v=n(2966),m=n.n(v),g=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u];return n=i=l()(this,e.call.apply(e,[this].concat(o))),i.onCastPress=function(e){i.props.onCastPress(e),i.props.onPress(e)},i.onDisconnectPress=function(e){i.props.onDisconnectPress(e),i.props.onPress(e)},a=n,l()(i,a)}return c()(t,e),t.prototype.render=function(){
var e=this.props,t=e.isCastApiAvailable,i=e.isRemotePlayer,r=e.remotePlayerName,s=e.players,o=e.onPress,l=e.onPlayerSelect,u=!i&&t,c=!i&&!!s.length,d=!i&&!u&&!c;return a()("div",{},void 0,i&&[a()("div",{className:m.a.remotePlayerName},"name",r),a()(h.a,{onPress:this.onDisconnectPress},"disconnect",n.i(p.default)("Disconnect"))],u&&a()(h.a,{onPress:this.onCastPress},"cast",n.i(p.default)("Cast...")),c&&s.map(function(e){var t=e.machineIdentifier,n=e.friendlyName;return a()(f.a,{
machineIdentifier:t,onPress:o,onPlayerSelect:l},t,n)}),d&&a()("div",{className:m.a.emptyMessage},void 0,n.i(p.default)("No players found")))},t}(d.Component);t.a=g},function(e,t,n){"use strict";function i(e,t,i,a){if(e&&null!=t&&null!=i){var r=e[t],s=r&&r.Part[i],o=s&&n.i(p.a)(s);return null!=o?"/library/parts/"+s.id+"/indexes/"+o+"/"+Math.floor(a):void 0}}function a(e,t){if(!e||null==t)return D;var i=n.i(h.a)(e[t]);if(null==i||null==i.width||null==i.height)return D
;var a=i.width,r=i.height,s=S,o=S;return a>r?s=Math.round(s*(a/r)):o=Math.round(o*(r/a)),{containerWidth:s,containerHeight:o}}function r(e,t,n){var i=e.x-t/2;return i<0?i=0:i+t>window.innerWidth&&(i=window.innerWidth-t),{left:i,top:e.y-n-I,height:n}}function s(e,t,n){var i=n===f.d.LARGE?C:M,a=t/2-i/2,r=e.x-t/2;if(r<0){var s=w,o=e.x-i/2;a=Math.max(o,s)}else if(r+t>window.innerWidth){var l=t-i-w,u=t-(window.innerWidth-e.x)-i/2;a=Math.min(u,l)}return{left:a}}function o(e){
var t=e.tooltipClassName,n=e.serverEntityID,o=e.size,l=e.position,c=e.hoverValue,d=e.mediaItems,p=e.mediaIndex,h=e.partIndex,f=e.formatValue,m=f(c),g=i(d,p,h,c),y=a(d,p,h),S=y.containerWidth,I=y.containerHeight,M=r(l,S,I),C=s(l,S,o);return u()("div",{className:b.a.container,style:M},void 0,g&&u()(v.a,{className:b.a.thumbnail,serverEntityID:n,url:g,width:S,height:I}),u()("div",{className:(t||"")+" "+(b.a[o]||""),style:C},void 0,m))}var l=n(2),u=n.n(l),c=n(0),d=(n.n(c),
n(235)),p=n(827),h=n(280),f=n(20),v=n(155),m=n(57),g=n.n(m),y=n(2968),b=n.n(y),S=99,I=10,M=parseInt(g.a.seekBarTooltipSmallWidth,10),C=parseInt(g.a.seekBarTooltipLargeWidth,10),w=4,D={containerWidth:S,containerHeight:S};o.defaultProps={tooltipClassName:b.a.tooltip,size:f.d.SMALL,formatValue:d.a},t.a=o},function(e,t,n){"use strict";function i(){return n.i(a.createSelector)(n.i(s.a)(),function(e){var t=e.Media;return t&&t.length?{mediaItems:t}:{}})}var a=n(5),r=(n.n(a),n(11)),s=n(21),o=n(2455)
;t.a=n.i(r.b)(i)(o.a)},function(e,t,n){"use strict";function i(e){return e>60?"plex-icon-player-volume-high-560":e>40?"plex-icon-player-volume-mid-560":e>0?"plex-icon-player-volume-low-560":"plex-icon-player-volume-off-560"}var a=n(2),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=(n.n(p),n(4)),f=n(365),v=n(254),m=n(2970),g=n.n(m),y=function(e){function t(n,i){o()(this,t);var a=u()(this,e.call(this,n,i));return a.onWheel=function(e){e.preventDefault(),
a.timeoutID&&(clearTimeout(a.timeoutID),a.timeoutID=null),a.isYLocked=null!=a.isYLocked?a.isYLocked:Math.abs(e.deltaY)>Math.abs(e.deltaX);var t=a.isYLocked?e.deltaY:e.deltaX,n=Math.max(100,Math.min(500,Math.abs(t))),i=Math.round(n/100*5),r=a.props.volume,s=t>0?Math.max(r-i,0):Math.min(r+i,100);a.props.onVolumeChange(s),a.timeoutID=setTimeout(function(){a.isYLocked=null,a.timeoutID=null},250)},a.onChange=function(e){var t=e.positionValue;a.props.onVolumeChange(Math.round(t))},a.timeoutID=null,
a.isYLocked=null,a}return d()(t,e),t.prototype.componentWillUnmount=function(){this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},t.prototype.render=function(){var e=this.props,t=e.volume,a=e.onVolumeIconPress;return r()("span",{onWheel:this.onWheel},void 0,r()(v.a,{title:0===t?n.i(h.default)("Unmute Volume"):n.i(h.default)("Mute Volume"),icon:i(t),onPress:a}),r()(f.a,{className:g.a.slider,trackClassName:g.a.track,fillClassName:g.a.fill,showFill:!0,autoHideThumb:!0,stepSize:1,
value:t,onChange:this.onChange}))},t}(p.Component);y.defaultProps={volume:50},t.a=y},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(3),p=n.n(d),h=n(0),f=(n.n(h),n(73)),v=n(99),m=n(2971),g=n.n(m),y=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onMeasure=function(e){var t=e.width,n=e.height;a.setState({isMeasured:!0,width:t,height:n})},a.state={isMeasured:!1,width:null,height:null},a}return c()(t,e),
t.prototype.render=function(){var e=this.props,t=e.items,n=e.currentItem,i=e.size,r=e.firstIndex,s=e.renderSlide;if(!t||!t.length)return null;var o=this.state,l=o.isMeasured,u=o.width,c=o.height,d=t.indexOf(n),h=p.a.range(Math.max(0,d-1),Math.min(i,d+1+1));return a()(f.a,{className:g.a.magazine,onMeasure:this.onMeasure},void 0,l&&h.map(function(e){var n=d===e,i=e+r,o=t[e];return a()(v.a,{className:n?g.a.currentSlide:g.a.slide,cellY:0,cellX:(e-d)*u,cellWidth:u,cellHeight:c},i,o&&s(o,u,c))}))},t
}(h.Component);t.a=y},function(e,t,n){"use strict";function i(e){return r()("div",{style:u},void 0,r()(o.a,{serverEntityID:e.serverEntityID,url:e.url,width:l,height:l,minSize:!0,background:!0,transition:!0}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(155)),l=110,u={width:l,height:l};t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(2458)),h=n(2479),f=n(2972),v=n.n(f),m=function(e){function t(){var n,i,r;s()(this,t)
;for(var o=arguments.length,u=Array(o),c=0;c<o;c++)u[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(u))),i.renderSlide=function(e,t,n){var r=e===i.props.playQueueItemEntityID;return a()(h.a,{serverEntityID:i.props.serverEntityID,playQueueItemEntityID:e,isCurrent:r,maxWidth:t,maxHeight:n})},r=n,l()(i,r)}return c()(t,e),t.prototype.render=function(){var e=this.props,t=e.playQueueItemEntityIDs,n=e.playQueueItemEntityID,i=e.size,r=e.firstIndex,s=e.errorMessage;return a()("div",{
className:v.a.carousel},void 0,s&&a()("div",{className:v.a.message},void 0,a()("span",{},void 0,s)),t&&!s&&a()(p.a,{items:t,currentItem:n,size:i,firstIndex:r,renderSlide:this.renderSlide}))},t}(d.Component);t.a=m},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,i=e.providerEntityID,a=e.playQueueItemEntityID,s=e.metadataItemEntityID,u=e.isPaused,c=e.isPhotoStripOpen,m=e.isPhotoInformationOpen,b=e.isEditing,S=e.showExpandButton,I=e.showThumb,M=e.showPhotoInformationButton,C=e.showPhotoStripButton,w=e.showPreviousButton,D=e.showNextButton,P=e.disablePreviousButton,T=e.disableNextButton,x=e.onExpandPress,E=e.onPreviousPress,N=e.onPlayPausePress,L=e.onNextPress,A=e.onPhotoStripTogglePress,k=e.onPhotoInformationTogglePress,_=e.onEditTogglePress,O=e.onControlsMenuChange,j=e.onClosePress
;return r()("div",{className:g.a.controls},void 0,r()("div",{className:g.a.container},void 0,r()("div",{className:g.a.thumbContainer},void 0,I&&r()(v.a,{className:g.a.thumb,serverEntityID:t,playQueueItemEntityID:a,dimension:y}),S&&r()(d.a,{className:g.a.expandButton,icon:"plex-icon-player-expand-560",title:n.i(o.default)("Expand Player"),onPress:x})),r()(h.a,{playerType:l.c,serverEntityID:t,providerEntityID:i,metadataItemEntityID:s,isEditing:b}),r()("div",{className:g.a.actions
},void 0,w&&r()(d.a,{icon:"plex-icon-player-prev-560",isDisabled:P,title:n.i(o.default)("Previous"),onPress:E}),r()(d.a,{className:g.a.actionButton,isActive:!u,icon:u?"plex-icon-player-play-560":"plex-icon-player-pause-560",title:u?n.i(o.default)("Play"):n.i(o.default)("Pause"),onPress:N}),D&&r()(d.a,{icon:"plex-icon-player-next-560",isDisabled:T,title:n.i(o.default)("Next"),onPress:L}),r()(f.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:s,isEditing:b,onPress:_}),M&&r()(d.a,{
className:g.a.actionButton,isActive:m,icon:"plex-icon-info-560",title:n.i(o.default)("Information"),onPress:k}),C&&r()(d.a,{className:g.a.actionButton,isActive:c,icon:"plex-icon-player-photo-thumbs-560",title:n.i(o.default)("Show Photo Strip"),onPress:A}),r()(p.a,{serverEntityID:t,providerEntityID:i,metadataItemEntityID:s,onMenuChange:O}),r()(d.a,{className:g.a.closeButton,icon:"plex-icon-close-560",title:n.i(o.default)("Close Player"),onPress:j}))))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),
n(4)),l=n(81),u=n(57),c=n.n(u),d=n(254),p=n(1030),h=n(2473),f=n(2463),v=n(1038),m=n(2973),g=n.n(m),y=parseInt(c.a.playerPosterHeight,10);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.isEditing,a=e.canEdit,s=e.onPress;return a?r()(l.a,{className:t,isActive:i,icon:"plex-icon-toolbar-edit-560",title:n.i(o.default)("Edit"),onPress:s}):null}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(254);t.a=i},function(e,t,n){"use strict";function i(){
return n.i(r.createSelector)(l.a,u.a,o.a,n.i(s.a)(),function(e,t,i,a){return{canEdit:n.i(c.b)(e,t,i,a)}})}var a=n(11),r=n(5),s=(n.n(r),n(21)),o=n(180),l=n(45),u=n(43),c=n(220),d=n(2462);t.a=n.i(a.b)(i)(d.a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(66)),h=n(73),f=n(81),v=n(20),m=n(38),g=n(658),y=n(2465),b=n(2466),S=n(2477),I=n(1037),M=n(2471),C=n(2460),w=n(2974),D=n.n(w),P=function(e){function t(n,i){s()(this,t)
;var a=l()(this,e.call(this,n,i));return a.onPhotoStripTogglePress=function(e){a.setState({isPhotoStripOpen:!a.state.isPhotoStripOpen})},a.onPhotoInformationTogglePress=function(e){a.setState({isInformationOpen:!a.state.isInformationOpen})},a.onInteraction=function(e){a.setState({hadRecentInteraction:!0}),a._startInteractionTimer()},a.onInteractionTimeout=function(){a.setState({hadRecentInteraction:!1}),a._stopInteractionTimer()},a.onContentMeasure=function(e){a.props.onMediaDimensionsChange(e)
},a.onControlsMenuChange=function(e){a.setState({isControlsMenuOpen:e})},a.onCastMenuChange=function(e){a.setState({isCastMenuOpen:e})},a.state={isPhotoStripOpen:!1,isInformationOpen:!1,isControlsMenuOpen:!1,isCastMenuOpen:!1,hadRecentInteraction:!1},a}return c()(t,e),t.prototype.componentDidMount=function(){this._startInteractionTimer()},t.prototype.componentWillUnmount=function(){this._stopInteractionTimer()},t.prototype._startInteractionTimer=function(){this._stopInteractionTimer(),
this._interactionTimeoutID=setTimeout(this.onInteractionTimeout,2e3)},t.prototype._stopInteractionTimer=function(){this._interactionTimeoutID&&clearTimeout(this._interactionTimeoutID)},t.prototype.render=function(){
var e=this.state,t=e.isPhotoStripOpen,n=e.isInformationOpen,i=e.hadRecentInteraction,r=this.props,s=r.serverEntityID,o=r.playQueueItemEntityIDs,l=r.playQueueItemEntityID,u=r.isPlayQueueLoading,c=r.mediaType,d=r.size,w=r.firstIndex,P=r.canSkipPrevious,T=r.canSkipNext,x=r.errorMessage,E=r.positionMilliseconds,N=r.isFullscreen,L=r.isEditing,A=r.isMediaLoading,k=r.isBuffering,_=r.onExitFullscreenPress,O=r.onEnterFullscreenPress,j=r.onEditToggle,R=r.onPlayNextItem,U=r.onPlayPreviousItem,z=r.onPlayItem,B=this.state,F=B.isControlsMenuOpen,V=B.isCastMenuOpen,Q=t||n,H=!(L||Q||i||F||V),W=!i&&!V,Y=Q,G=c===p.c,K=!G&&(A||k)
;return a()("div",{className:(D.a.fullPlayer||"")+" "+(H&&D.a.hideControls||"")+" "+(Y&&D.a.dockControls||""),onMouseMove:this.onInteraction,onMouseDown:this.onInteraction,onTouchStart:this.onInteraction,onTouchEnd:this.onInteraction},void 0,G&&a()(y.a,{playerType:f.c,playQueueItemEntityID:l}),a()("div",{className:D.a.player},void 0,a()("div",{className:D.a.main},void 0,a()(h.a,{className:D.a.content,onMeasure:this.onContentMeasure},void 0,K&&a()("div",{className:D.a.spinner},void 0,a()(m.a,{
size:v.d.LARGE})),a()(C.a,{serverEntityID:s,playQueueItemEntityIDs:o,playQueueItemEntityID:l,firstIndex:w,size:d,errorMessage:x}),a()(b.a,{hideOverlays:W,isPhoto:G,isFullscreen:N,canSkipNext:T,canSkipPrevious:P,onPlayNextItem:R,onPlayPreviousItem:U,onCastMenuChange:this.onCastMenuChange,onEnterFullscreenPress:O,onExitFullscreenPress:_})),t&&a()(S.a,{className:D.a.mainFooter,serverEntityID:s,playQueueItemEntityIDs:o,playQueueItemEntityID:l,firstIndex:w,size:d,onPhotoPress:z})),n&&a()(M.a,{
className:D.a.aside,playerType:f.c})),!u&&a()("div",{className:D.a.controls},void 0,a()(g.a,{className:D.a.seekBar,playerType:f.c,positionMilliseconds:E}),a()(I.a,{playerType:f.c,isPhotoStripOpen:t,isPhotoInformationOpen:n,isEditing:L,showPhotoStripButton:!0,showPhotoInformationButton:!0,onPhotoStripTogglePress:this.onPhotoStripTogglePress,onPhotoInformationTogglePress:this.onPhotoInformationTogglePress,onEditTogglePress:j,onControlsMenuChange:this.onControlsMenuChange})))},t}(d.Component);t.a=P
},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(o.a)(),n.i(l.a)(),u.a,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],i=t.metadataItem,a=n[i],r=a.type,o=a.Media,l=o[0],u=r===s.j,c=l&&l.Part&&l.Part[0],d=c&&c.key;return{serverEntityID:e.serverEntityID,imageUrl:u?null:d}})}var a=n(11),r=n(5),s=(n.n(r),n(30)),o=n(42),l=n(85),u=n(110),c=n(1025);t.a=n.i(a.b)(i)(c.a)},function(e,t,n){"use strict";function i(e){
var t=e.hideOverlays,i=e.canSkipPrevious,a=e.canSkipNext,s=e.isFullscreen,p=e.isPhoto,f=e.onPlayNextItem,v=e.onPlayPreviousItem,m=e.onCastMenuChange,g=e.onEnterFullscreenPress,y=e.onExitFullscreenPress;return r()("div",{className:t&&h.a.hideOverlays},void 0,!p&&r()(c.a,{className:h.a.playButton,playerType:u.c,isFullscreen:s,onEnterFullscreenPress:g,onExitFullscreenPress:y}),r()("div",{className:h.a.topBar},void 0,r()(d.a,{playerType:u.c,isFullscreen:s,onCastMenuChange:m,onEnterFullscreenPress:g,
onExitFullscreenPress:y})),r()(l.a,{className:h.a.leftButton,icon:"plex-icon-hub-prev-560",title:n.i(o.default)("Previous Photo"),isDisabled:!i,onPress:v}),r()(l.a,{className:h.a.rightButton,icon:"plex-icon-hub-next-560",title:n.i(o.default)("Next Photo"),isDisabled:!a,onPress:f}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(366),u=n(81),c=n(1028),d=n(1026),p=n(2975),h=n.n(p);i.defaultProps={hideOverlays:!1},t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,n=e.summary,i=e.totalSize,a=e.url,s=e.icon,o=e.onPress;return r()("div",{className:p.a.hub},void 0,r()(u.a,{onPress:o},void 0,r()("div",{className:p.a.container},void 0,r()("div",{className:p.a.overlay},void 0,r()("div",{className:p.a.title},void 0,n),r()("div",{className:p.a.count},void 0,s?r()(l.a,{className:p.a.icon,serverEntityID:t,url:s,width:h,height:h}):f,r()("span",{},void 0," ",i))),r()("div",{className:p.a.body},void 0,r()(c.a,{serverEntityID:t,url:a})))))}
var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(27)),l=n(155),u=n(23),c=n(2459),d=n(2976),p=n.n(d),h=14,f=r()(o.a,{name:"plex-icon-tag-auto-560"});t.a=i},function(e,t,n){"use strict";function i(){return n.i(v.createSelector)(n.i(y.a)(),n.i(S.a)(),n.i(b.a)(),function(e,t,i){return{hubLink:n.i(I.a)(e.machineIdentifier,t.identifier,i),summary:i.summary,totalSize:i.totalSize,url:i.thumb,icon:i.icon}})}
var a=n(6),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=n.n(p),f=n(11),v=n(5),m=(n.n(v),n(81)),g=n(58),y=n(46),b=n(780),S=n(136),I=n(665),M=n(2467),C=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),l=0;l<r;l++)s[l]=arguments[l];return n=i=u()(this,e.call.apply(e,[this].concat(s))),i.onPress=function(){window.location.href=i.props.hubLink,i.props.endPlayback({playerType:m.c})},a=n,u()(i,a)}return d()(t,e),t.prototype.render=function(){
return h.a.createElement(M.a,r()({onPress:this.onPress},this.props))},t}(p.Component);t.a=n.i(f.b)(i,{endPlayback:g.d})(C)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,i=e.providerEntityID,a=e.hubEntityIDs;return a&&a.length?r()("div",{className:c.a.container},void 0,r()("div",{className:c.a.title},void 0,n.i(o.default)("Related Photos")),r()("div",{className:c.a.list},void 0,a.map(function(e){return r()(l.a,{serverEntityID:t,providerEntityID:i,hubEntityID:e},e)}))):d}
var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(2468),u=n(2977),c=n.n(u),d=r()("div",{});t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.serverEntityID,a=e.providerEntityID,s=e.hubEntityIDs,u=e.type,p=e.model,v=e.width,m=e.height,g=e.container,y=e.iso,b=e.aperture,S=e.exposure,I=e.size;return r()(c.a,{className:(t||"")+" "+(h.a.photoInformation||""),autoScroll:!0},void 0,r()("div",{className:h.a.exif},void 0,r()("div",{className:h.a.line
},void 0,p?r()("div",{},void 0,p):r()("div",{},void 0,"clip"===u?n.i(o.default)("Video"):n.i(o.default)("Photo")),f),r()("div",{className:h.a.line},void 0,!(!v||!m)&&r()("div",{},void 0,v," x ",m),!!I&&r()("div",{},void 0,n.i(l.a)(I)),g&&r()("div",{className:h.a.format},void 0,g)),!!y&&r()("div",{className:h.a.line},void 0,r()("div",{},void 0,n.i(o.default)("ISO")," ",y),r()("div",{},void 0,b),r()("div",{},void 0,S))),r()(d.a,{serverEntityID:i,providerEntityID:a,hubEntityIDs:s}))}
var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(833),u=n(27),c=n(67),d=n(2469),p=n(2978),h=n.n(p),f=r()(u.a,{name:"plex-icon-camera-560"});t.a=i},function(e,t,n){"use strict";function i(){return n.i(v.createSelector)(n.i(m.a)(),n.i(g.a)(),function(e,t){var n=t.Media,i=void 0===n?[]:n,a=t.type,r={serverEntityID:e.serverEntityID,providerEntityID:e.providerEntityID,metadataItemEntityID:t.entityID,hubEntityIDs:e.relatedHubs||[],type:a};if(i.length){var s=i[0],o=s.Part;r.size=o&&o[0].size,
r.aperture=s.aperture,r.exposure=s.exposure,r.iso=s.iso,r.model=s.model,r.width=s.width,r.height=s.height,r.container=s.container}return r})}var a=n(14),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=n.n(p),f=n(11),v=n(5),m=(n.n(v),n(42)),g=n(230),y=n(897),b=n(2470),S={dispatchFetchRelatedPhotos:y.a},I=function(e){function t(){return o()(this,t),u()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.componentDidMount=function(){this.props.dispatchFetchRelatedPhotos()},
t.prototype.componentDidUpdate=function(e){e.metadataItemEntityID!==this.props.metadataItemEntityID&&this.props.dispatchFetchRelatedPhotos()},t.prototype.render=function(){var e=this.props,t=(e.dispatchFetchRelatedPhotos,r()(e,["dispatchFetchRelatedPhotos"]));return h.a.createElement(b.a,t)},t}(p.Component);t.a=n.i(f.b)(i,S)(I)},function(e,t,n){"use strict";function i(e){
var t=e.title,i=e.summary,a=e.dateTaken,s=e.index,u=e.size,p=e.canEdit,v=e.isEditing,m=e.onTitleBlur,g=e.onSummaryBlur,y=e.onTitleChange,b=e.onSummaryChange,S=!(!t||!t.length),I=!(!i||!i.length),M=!(p&&v);return r()("div",{className:h.a.container},void 0,r()("div",{className:h.a.info},void 0,(v||S)&&r()("div",{className:h.a.title},void 0,r()(d.a,{name:"titleInput",className:h.a.textInput,value:t,placeholder:n.i(o.default)("Title"),isDisabled:M,onChange:y,onBlur:m})),r()("div",{
className:h.a.subtitle},void 0,!!a&&r()("span",{},void 0,n.i(l.default)(a),f),r()("span",{},void 0,!!u&&n.i(o.default)("{currentIndex} of {size}",{currentIndex:s+1,size:u})))),(v||I)&&r()("div",{className:h.a.summary},void 0,r()(c.a,{name:"summaryInput",className:h.a.textArea,value:i,placeholder:n.i(o.default)("Description"),isDisabled:M,rows:2,onChange:b,onBlur:g})))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(204),u=n(84),c=n(2042),d=n(167),p=n(2979),h=n.n(p),f=r()(u.a,{});t.a=i
},function(e,t,n){"use strict";function i(){return n.i(g.createSelector)(n.i(S.a)(),n.i(I.a)(),M.a,C.a,b.a,function(e,t,i,a,r){var s=t.title,o=t.summary,l=t.originallyAvailableAt,u=t.addedAt;return{title:s,summary:o,index:e.playQueueSelectedItemOffset,size:e.playQueueTotalCount,dateTaken:l||n.i(y.default)(u,"YYYY-MM-DD"),canEdit:n.i(w.b)(i,a,r,t)}})}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(7),u=n.n(l),c=n(9),d=n.n(c),p=n(8),h=n.n(p),f=n(0),v=n.n(f),m=n(11),g=n(5),y=(n.n(g),
n(275)),b=n(180),S=n(785),I=n(21),M=n(45),C=n(43),w=n(220),D=n(140),P=n(2472),T={dispatchChangeMetadataItemField:D.changeMetadataItemField},x=function(e){function t(){var n,i,a;u()(this,t);for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o];return n=i=d()(this,e.call.apply(e,[this].concat(s))),i.onTitleBlur=function(e){i._updateField("title",e.target.value,!0)},i.onSummaryBlur=function(e){i._updateField("summary",e.target.value,!0)},i.onTitleChange=function(e){
i._updateField("title",e,!1)},i.onSummaryChange=function(e){i._updateField("summary",e,!1)},a=n,d()(i,a)}return h()(t,e),t.prototype._updateField=function(e,t,n){this.props.dispatchChangeMetadataItemField({metadataItemEntityID:this.props.metadataItemEntityID,name:e,value:t,save:n})},t.prototype.render=function(){var e=this.props,t=(e.dispatchChangeMetadataItemField,o()(e,["dispatchChangeMetadataItemField"]));return v.a.createElement(P.a,r()({},t,{onTitleChange:this.onTitleChange,
onSummaryChange:this.onSummaryChange,onTitleBlur:this.onTitleBlur,onSummaryBlur:this.onSummaryBlur,onPositionChange:this.onPositionChange}))},t}(f.Component);t.a=n.i(m.b)(i,T)(x)},function(e,t,n){"use strict";function i(e){var t=e.playerType,n=e.isPlayQueueLoading,i=e.positionMilliseconds,a=e.isEditing,s=e.onEditToggle;return r()(o.a,{playerType:t,isPlayQueueLoading:n,positionMilliseconds:i},void 0,r()(u.a,{playerType:t,showExpandButton:!0,showThumb:!0,showPreviousButton:!0,showNextButton:!0,
isEditing:a,onEditTogglePress:s}),"// Put the seek bar below the controls so the seek bar thumb // overlays the controls.",r()(l.a,{className:d.a.seekBar,playerType:t,positionMilliseconds:i}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(81),n(1027)),l=n(658),u=n(1037),c=n(2980),d=n.n(c);t.a=i},function(e,t,n){"use strict";function i(e){return e.playQueueItemEntityID,!e.isPaused&&!e.isRemotePlayer&&e.mediaType===h.c}var a=n(2),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=(n.n(p),
n(66)),f=n(34),v=n(81),m=n(209),g=n(866),y=n(867),b=n(940),S=n(1036),I=n(1031),M=n(1024),C=n(1023),w=n(1033),D=n(1034),P=n(2464),T=n(2474),x=n(2981),E=n.n(x),N=v.c,L=r()(I.a,{isOpen:!0,playerType:N}),A=r()(M.a,{isOpen:!0,playerType:N}),k=r()(C.a,{isOpen:!0,playerType:N}),_=r()(D.a,{playerType:N}),O=r()(g.a,{playerType:N}),j=r()(y.a,{playerType:N}),R=function(e){function t(n,i){o()(this,t);var a=u()(this,e.call(this,n,i));return a.onEditToggle=function(e){
a.state.isEditing||a.props.isPaused||a.props.onTogglePlayPause(),a.setState({isEditing:!a.state.isEditing})},a.onFullscreenChange=function(e){a.setState({isFullscreen:e})},a.onEnterFullscreenPress=function(){a.setState({isFullscreen:!0})},a.onExitFullscreenPress=function(){a.setState({isFullscreen:!1})},a.onToggleFullscreenShortcut=function(){a.setState(function(e){return{isFullscreen:!e.isFullscreen}})},a.onPositionMillisecondsChange=function(e){a.setState({positionMilliseconds:e})},
a.onMediaDimensionsChange=function(e){var t=e.width,n=e.height;a.setState({mediaWidth:t,mediaHeight:n})},a.state={positionMilliseconds:0,isPhotoStripOpen:!1,isInformationOpen:!1,isFullscreen:!1,isEditing:!1,mediaWidth:"100%",mediaHeight:"100%"},a}return d()(t,e),t.prototype.componentDidMount=function(){i(this.props)&&this._startSlideshow()},t.prototype.componentDidUpdate=function(e){var t=i(e),n=i(this.props),a=n!==t,r=this.props.playQueueItemEntityID!==e.playQueueItemEntityID
;(a||r)&&(n?e.isPaused?this.props.onPlayNextItem():this._startSlideshow():this._stopSlideshow())},t.prototype.componentWillUnmount=function(){this._stopSlideshow(),this._playerTimer=clearTimeout(this._playerTimer)},t.prototype._startSlideshow=function(){this._stopSlideshow(),this.setState({isEditing:!1}),this._slideshowTimer=setTimeout(this.props.onPlayNextItem,5e3)},t.prototype._stopSlideshow=function(){this._slideshowTimer&&(this._slideshowTimer=clearTimeout(this._slideshowTimer))},
t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.playQueueItemEntityIDs,i=e.playQueueItemEntityID,a=e.isOpen,s=e.isMiniPlayer,o=e.confirmRemoteToLocal,l=e.confirmLocalToRemote,u=e.isPlayQueueLoading,c=e.isMediaLoading,d=e.isPaused,p=e.isBuffering,h=e.hasError,v=e.errorMessage,g=e.canSkipPrevious,y=e.canSkipNext,I=e.size,M=e.firstIndex,C=e.mediaType,D=e.onTogglePlayPause,x=e.onPlayNextItem,R=e.onPlayPreviousItem,U=e.onPlayItem;if(!a)return h?L:null
;var z=this.state,B=z.isEditing,F=z.isFullscreen,V=z.positionMilliseconds,Q={display:s?"none":"block",width:this.state.mediaWidth,height:this.state.mediaHeight,position:"absolute"};return r()(m.a,{page:f.G},void 0,r()(b.a,{className:s?E.a.miniPlayerContainer:E.a.fullPlayerContainer,isFullscreen:F,onFullscreenChange:this.onFullscreenChange},void 0,!u&&r()("div",{style:Q},void 0,r()(S.a,{playerType:N,mediaType:C,onPositionMillisecondsChange:this.onPositionMillisecondsChange})),s?r()(T.a,{
playerType:N,isPlayQueueLoading:u,positionMilliseconds:V,isEditing:B,onEditToggle:this.onEditToggle}):r()(P.a,{serverEntityID:t,playQueueItemEntityIDs:n,playQueueItemEntityID:i,isPlayQueueLoading:u,mediaType:C,firstIndex:M,size:I,positionMilliseconds:V,canSkipNext:y,canSkipPrevious:g,isPaused:d,isEditing:B,isFullscreen:F,isMediaLoading:c,isBuffering:p,errorMessage:v,onEnterFullscreenPress:this.onEnterFullscreenPress,onExitFullscreenPress:this.onExitFullscreenPress,onEditToggle:this.onEditToggle,
onTogglePlayPause:D,onPlayNextItem:x,onPlayPreviousItem:R,onPlayItem:U,onMediaDimensionsChange:this.onMediaDimensionsChange}),o&&A,l&&k,r()(w.a,{playerType:N,onToggleFullscreenShortcut:this.onToggleFullscreenShortcut}),_,O,j))},t}(p.Component);R.defaultProps={canSkipPrevious:!1,canSkipNext:!1},t.a=R},function(e,t,n){"use strict";function i(){return n.i(u.createSelector)(n.i(d.a)(),n.i(p.a)(),function(e,t){var i={serverEntityID:e.serverEntityID,confirmRemoteToLocal:e.confirmRemoteToLocal,
confirmLocalToRemote:e.confirmLocalToRemote,isPlayQueueLoading:e.isPlayQueueLoading,isMediaLoading:e.isMediaLoading,isPaused:e.isPaused,isBuffering:e.isBuffering,hasError:e.hasError,errorMessage:e.errorMessage},a=e.playQueue;if(a){var r=a.currentIndex;i.playQueueItemEntityIDs=a.playQueueItems,i.playQueueItemEntityID=t.entityID,i.canSkipPrevious=r>0,i.canSkipNext=r<a.playQueueItems.length-1,i.size=a.playQueueTotalCount,i.firstIndex=a.playQueueSelectedItemOffset-r,
i.mediaType=n.i(c.b)(t.type).mediaType}return i})}function a(e,t){var n=t.playerType;return{onPlayPreviousItem:function(){e(f.b({playerType:n}))},onPlayNextItem:function(){e(f.c({playerType:n}))},onPlayItem:function(t){e(f.q({playerType:n,index:t}))},onTogglePlayPause:function(){e(h.c({playerType:n}))}}}var r=n(6),s=n.n(r),o=n(0),l=(n.n(o),n(11)),u=n(5),c=(n.n(u),n(30)),d=n(42),p=n(85),h=n(122),f=n(109),v=n(2475),m=n.i(l.b)(i,a)(v.a);m.propTypes=s()({},m.propTypes,{
playerType:o.PropTypes.string.isRequired}),t.a=m},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(3),p=n.n(d),h=n(0),f=(n.n(h),n(73)),v=n(99),m=n(2555),g=n(1038),y=n(2982),b=n.n(y),S=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onMeasure=function(e){var t=e.width,n=e.height;a.setState({isMeasured:!0,width:t,height:n})},a.state={isMeasured:!1,width:null,height:null},a}return c()(t,e),
t.prototype.render=function(){var e=this.props,t=e.className,i=e.serverEntityID,r=e.playQueueItemEntityIDs,s=e.playQueueItemEntityID,o=e.firstIndex,l=e.size,u=e.onPhotoPress,c=this.state,d=c.isMeasured,h=c.width,y=c.height,S=r.indexOf(s)+o,I=[],M=[],C=0;if(d){C=Math.ceil(y);var w=Math.ceil(h/C),D=n.i(m.a)({index:S,renderableWindow:w,length:l,cellPadding:2,cellWidth:C,width:h});M=p.a.range(D.renderStartIndex,D.renderEndIndex+1),I=D.positions}return a()("div",{className:(t||"")+" "+(b.a.strip||"")
},void 0,a()(f.a,{className:b.a.thumbs,onMeasure:this.onMeasure},void 0,d&&M.map(function(e){var t=I[e],n=S===e,s=r[e-o];return a()(v.a,{className:b.a.cell,cellY:0,cellX:t,cellWidth:C,cellHeight:C},e,a()("div",{className:(b.a.thumbContainer||"")+" "+(n&&b.a.isSelected||"")},void 0,s&&a()(g.a,{className:b.a.thumb,serverEntityID:i,playQueueItemEntityID:s,dimension:C-4,index:e-o,onPlayPress:u})))})))},t}(h.Component);t.a=S},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(2),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=(n.n(h),n(311)),v=n(23),m=n(155),g={width:"100%",height:"100%",top:0,position:"absolute",zIndex:0},y=function(e){function t(){var n,i,a;l()(this,t);for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o];return n=i=c()(this,e.call.apply(e,[this].concat(s))),i.onPlayPress=function(){i.props.onPlayPress&&i.props.onPlayPress(i.props.index)},a=n,c()(i,a)}return p()(t,e),
t.prototype.render=function(){var e=this.props,t=e.className,n=e.serverEntityID,i=e.url,r=e.dimension,o=e.onPlayPress;return i?s()(v.a,{className:t,isDisabled:!o,onPress:this.onPlayPress},void 0,s()(m.a,{serverEntityID:n,url:i,width:r,height:r,minSize:!0,style:g,background:!0,transition:!0,transitionProps:a()({},f.a)})):null},t}(h.Component);t.a=y},function(e,t,n){"use strict";function i(){return n.i(c.createSelector)(n.i(p.a)(),function(e){return{playQueueItem:e}})}function a(e){
var t=e.playQueueItem;return t&&t.type===d.h?l.a.createElement(h.a,s()({metadataItemEntityID:t.metadataItem},e)):null}var r=n(6),s=n.n(r),o=n(0),l=n.n(o),u=n(11),c=n(5),d=(n.n(c),n(30)),p=n(531),h=n(2481);t.a=n.i(u.b)(i)(a)},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=(n.n(h),n(4)),v=n(277),m=n(2549),g=n(311),y=n(155),b=n(38),S=n(2983),I=n.n(S),M=s()(b.a,{}),C=function(e){function t(){l()(this,t)
;var n=c()(this,e.call(this));return n.onLoad=function(){n.setState({loading:!1})},n.onError=function(){n.setState({error:!0})},n.state={loading:!0,error:!1},n}return p()(t,e),t.prototype.render=function(){var e=this.props,t=e.serverEntityID,i=e.metadataKey,r=e.url,o=e.maxWidth,l=e.maxHeight,u=e.imageWidth,c=void 0===u?400:u,d=e.imageHeight,p=void 0===d?400:d,h=c/p,b=c/o,S=p/l,C=b>S,w=C?o:l*h,D=C?o/h:l,P=n.i(m.a)({width:w,height:D,pixels:2073600/Math.pow(n.i(v.a)(),2)}),T=P.width,x=P.height,E={
width:w,height:D},N={width:"100%",height:"100%"},L=this.state,A=L.loading,k=L.error;return s()("div",{className:I.a.slideContainer,style:E},void 0,s()("div",{className:I.a.statusContainer},void 0,A&&!k&&M,k&&s()("div",{},void 0,n.i(f.default)("Unable to load photo"))),s()(y.a,{serverEntityID:t,url:r,width:T,height:x,style:N,minSize:!0,background:!0,transition:!0,transitionProps:a()({},g.a),onError:this.onError,onLoad:this.onLoad},i))},t}(h.Component);t.a=C},function(e,t,n){"use strict"
;function i(){return n.i(p.createSelector)(n.i(h.a)(),function(e){return e&&e.url?l()({isLoading:!1,metadataKey:e.url},e):{isLoading:!0}})}function a(e){return e.isLoading?m:c.a.createElement(v.a,e)}var r=n(2),s=n.n(r),o=n(6),l=n.n(o),u=n(0),c=n.n(u),d=n(11),p=n(5),h=(n.n(p),n(781)),f=n(38),v=n(2480),m=s()(f.a,{});t.a=n.i(d.b)(i)(a)},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=n.n(d),h=n(39),f=n.n(h),v=n(33),m=n(35),g=n(433),y=n(26),b=n(378),S=n(57),I=n.n(S),M=n(2485),C=n(2494),w=n(2984),D=n.n(w),P=parseInt(I.a.searchResultHeight,10),T=function(e){function t(i,a){s()(this,t);var r=l()(this,e.call(this,i,a));return r.onScrollIntoView=function(e){var t=e.scrollTop,n=f.a.findDOMNode(r.refs.results),i=n.clientHeight,a=i+r.state.scrollTop,s=t+P>a||t<r.state.scrollTop;r.setState({
scrollTop:s?t:r.state.scrollTop})},r.onWindowPress=function(e){if(r.state.isOpen){var t=f.a.findDOMNode(r.refs.search);t&&t.contains(e.target)||r.setState({isOpen:!1})}},r.onKeyDown=function(e){var t=r.props.serverEntityID,n=r.state.isOpen;switch(e.keyCode){case g.h:case g.i:n&&(e.stopPropagation(),e.preventDefault(),e.keyCode===g.i?r.props.selectQuickSearchResult({offset:-1}):r.props.selectQuickSearchResult({offset:1}),r.isTabScoped&&(b.b(),r.isTabScoped=!1));break;case g.j:if(n){
var i=v.a.platformID,a="osx"===i?e.metaKey:e.ctrlKey,s=e.shiftKey;b.e(),r.isTabScoped=!1,a?s?r.props.playQuickSearchResult({serverEntityID:t,options:{shuffle:!0}}):r.props.playQuickSearchResult({serverEntityID:t}):r.props.navigateQuickSearchResult({serverEntityID:t})}break;case g.b:e.nativeEvent.stopImmediatePropagation(),r.isTabScoped&&(b.b(),r.isTabScoped=!1),n?r.setState({isOpen:!1}):r.props.changeQuickSearchQuery("");break;case g.a:if(n){if(!r.isTabScoped){
var o=f.a.findDOMNode(r.refs.results);b.c(o),r.isTabScoped=!0}b.a(e)}}},r.onInputClick=function(e){r.isTabScoped&&(b.b(),r.isTabScoped=!1),r.state.isOpen||""===r.props.query||r.setState({isOpen:!0})},r.onScrollPositionChange=function(e){var t=e.scrollTop;r.setState({scrollTop:t})},r.onSearch=function(){n.i(m.a)(function(){r.props.fetchQuickSearch()})},r.onInputChange=function(e){n.i(m.a)(function(){r.props.changeQuickSearchQuery(e)})},r.isTabScoped=!1,r.state={scrollTop:0,isOpen:!1},r}
return c()(t,e),t.prototype.componentWillMount=function(){this._listenForPress()},t.prototype.componentWillReceiveProps=function(e,t){var n=e.selectedResultEntityID,i=e.query,a=this.props.query!==i,r=i.trim().length,s=this.state.isOpen;r&&!s&&a?this.setState({isOpen:!0}):!r&&s&&(this.setState({isOpen:!1}),this.isTabScoped&&(b.f(),this.isTabScoped=!1)),null==n&&this.setState({scrollTop:0})},t.prototype.shouldComponentUpdate=function(e,t){return n.i(y.a)(this,e,t)},
t.prototype.componentWillUnmount=function(){this._stopListeningForPress()},t.prototype._listenForPress=function(){window.addEventListener("mouseup",this.onWindowPress),window.addEventListener("touchend",this.onWindowPress)},t.prototype._stopListeningForPress=function(){window.removeEventListener("mouseup",this.onWindowPress),window.removeEventListener("touchend",this.onWindowPress)},t.prototype.render=function(){var e=this.props,t=e.serverEntityID,n=e.query;return p.a.createElement("div",{
className:D.a.container,ref:"search",onKeyDown:this.onKeyDown},a()(M.a,{query:n,onChange:this.onInputChange,onSearch:this.onSearch,onClick:this.onInputClick}),this.state.isOpen&&p.a.createElement(C.a,{serverEntityID:t,scrollTop:this.state.scrollTop,ref:"results",onScrollIntoView:this.onScrollIntoView,onScrollPositionChange:this.onScrollPositionChange}))},t}(d.Component);t.a=T},function(e,t,n){"use strict";function i(){return n.i(b.createSelector)(function(e){return e.ui.quickSearch
},D,function(e,t){if(!t)return{};var n=v.a.pick(e,"query","providerIdentifier","selectedResultEntityID");return h()({serverEntityID:t.entityID,isConnected:t.isConnected,providerEntityIDs:t.desktop.providers},n)})}var a=n(14),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(6),h=n.n(p),f=n(3),v=n.n(f),m=n(0),g=n.n(m),y=n(11),b=n(5),S=(n.n(b),n(35)),I=n(179),M=n(100),C=n(156),w=n(2482),D=n.i(b.createSelector)(function(e){return e.primaryServer},I.a,function(e,t){return e?t[e]:void 0
}),P=h()({populateProviders:M.e},C),T=function(e){function t(){return o()(this,t),u()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.componentWillMount=function(){this._populate()},t.prototype.componentWillReceiveProps=function(e){var t=e.isConnected!==this.props.isConnected,n=e.providerEntityIDs!==this.props.providerEntityIDs,i=e.providerIdentifier!==this.props.providerIdentifier;(t||n||i)&&this._populate(e)},t.prototype._populate=function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.serverEntityID,i=e.isConnected,a=e.providerEntityIDs,r=e.providerIdentifier;t&&i&&e.populateProviders({serverEntityID:t}),a&&a.length&&n.i(S.a)(function(){e.initQuickSearch({serverEntityID:t,providerEntityIDs:a,providerIdentifier:r})})},t.prototype.render=function(){var e=this.props,t=e.providerEntityIDs,n=r()(e,["providerEntityIDs"]);return t&&t.length?g.a.createElement(w.a,n):null},t}(m.Component);t.a=n.i(y.b)(i,P)(T)
},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(2),s=n.n(r),o=n(14),l=n.n(o),u=n(7),c=n.n(u),d=n(9),p=n.n(d),h=n(8),f=n.n(h),v=n(0),m=n.n(v),g=n(26),y=n(1039),b=n(2493),S=n(2985),I=n.n(S),M=function(e){function t(){return c()(this,t),p()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(g.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.title,n=e.selectedResultEntityID,i=e.results,r=l()(e,["title","selectedResultEntityID","results"]);return s()("div",{},void 0,s()("h5",{className:I.a.hubTitle},void 0,t),i.map(function(e,t){return m.a.createElement(y.a,a()({key:e,searchResultEntityID:e,component:b.a,isSelected:n===e},r))}))},t}(v.Component);t.a=M},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=n.n(d),h=n(15),f=n(26),v=n(27),m=n(23),g=n(2986),y=n.n(g),b=function(e){function t(n){s()(this,t);var i=l()(this,e.call(this,n));return i.focusInput=function(){i.refs.input.focus()},i.onClick=function(e){i.focusInput(),i.props.onClick()},i.onFocus=function(){i.setState({isFocused:!0})},i.onBlur=function(){i.setState({isFocused:!1})},i.onChange=function(e){var t=e.target.value
;i.searchTimeout&&clearTimeout(i.searchTimeout),i.setState({query:t},function(){i.props.onChange(t),""!==t.trim()&&(i.searchTimeout=setTimeout(i.props.onSearch,200))})},i.onClearPress=function(e){e.stopPropagation(),i.searchTimeout&&clearTimeout(i.searchTimeout),i.setState({query:""},function(){i.props.onChange(""),i.focusInput()})},i.state={isFocused:!1,query:n.query},i.searchTimeout=null,i}return c()(t,e),t.prototype.componentDidMount=function(){h.a.on("shortcut:search",this.focusInput)},
t.prototype.componentWillReceiveProps=function(e){this.state.query!==e.query&&this.setState({query:e.query})},t.prototype.shouldComponentUpdate=function(e,t){return n.i(f.a)(this,e,t)},t.prototype.componentWillUnmount=function(){h.a.off("shortcut:search",this.focusInput),this.searchTimeout&&clearTimeout(this.searchTimeout)},t.prototype.render=function(){var e=this.state,t=e.query,n=e.isFocused;return a()("div",{className:(y.a.container||"")+" "+(n&&y.a.focused||""),onClick:this.onClick
},void 0,a()(v.a,{name:"plex-icon-search-560",className:y.a.searchIcon}),p.a.createElement("input",{className:y.a.searchInput,value:t,type:"text",autoComplete:"off",spellCheck:"false",ref:"input",onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur}),t.length>0&&a()(m.a,{onPress:this.onClearPress},void 0,a()(v.a,{name:"plex-icon-close-560",className:y.a.closeIcon})))},t}(d.Component);b.defaultProps={query:"",onClick:d.PropTypes.func},t.a=b},function(e,t,n){"use strict"
;function i(e,t,i){return t?n.i(l.default)("Search in {channelName}...",{channelName:t}):i?n.i(l.default)("Search all servers...",e):n.i(l.default)("Show more results...",e)}function a(e){var t=e.server,n=e.query,a=e.searchAllServers,r=e.channelPlaceholder,o=e.channelID,l=e.channelSearchKey,d=e.isSelected,h=e.onLinkPress,f=e.onLinkFocus,v=encodeURIComponent(t.machineIdentifier),m=encodeURIComponent(n),g=void 0;if(null!=o&&null!=l){var y=encodeURIComponent(o),b=u.join(l,{query:n})
;g="#!/server/"+v+"/channel/"+y+"/"+encodeURIComponent(b)}else g="#!/server/"+v+"/search/"+m;var S=i(n,r,a);return s()(c.a,{className:(p.a.placeholder||"")+" "+(d&&p.a.isPlaceholderSelected||""),tabIndex:"1",title:S,to:g,onPress:h,onFocus:f},void 0,S)}var r=n(2),s=n.n(r),o=n(0),l=(n.n(o),n(4)),u=n(19),c=(n(106),n(23)),d=n(2987),p=n.n(d);t.a=a},function(e,t,n){"use strict";var i=n(6),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=n.n(d),h=n(11),f=n(5),v=(n.n(f),
n(111)),m=n(45),g=n(156),y=n(378),b=n(2486),S={resetQuickSearch:g.resetQuickSearch,selectQuickSearchResult:g.selectQuickSearchResult},I=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u];return n=i=l()(this,e.call.apply(e,[this].concat(o))),i.onLinkPress=function(e){var t=i.props.serverEntityID;i.props.resetQuickSearch({serverEntityID:t}),y.e()},i.onLinkFocus=function(e){i.props.selectQuickSearchResult({searchResultEntityID:null})},
a=n,l()(i,a)}return c()(t,e),t.prototype.render=function(){return p.a.createElement(b.a,a()({onLinkPress:this.onLinkPress,onLinkFocus:this.onLinkFocus},this.props))},t}(d.Component);t.a=n.i(h.b)(function(){return n.i(f.createSelector)(m.a,function(e){return e.ui.quickSearch},v.a,function(e,t,n){return{server:e,query:t.query,channelPlaceholder:t.channelPlaceholder,channelID:t.channelID,channelSearchKey:t.channelSearchKey,isSelected:!t.selectedResultEntityID,searchAllServers:n.searchAllServers}})
}(),S)(I)},function(e,t,n){"use strict";function i(e){var t=e.isLoading,i=e.hubs,a=c()(e,["isLoading","hubs"]);return t?l()("div",{className:g.a.spinnerContainer},void 0,l()(f.a,{className:g.a.spinner})):i.length?l()("div",{},void 0,i.map(function(e){return p.a.createElement(v.a,s()({key:e.hubIdentifier,title:e.title,results:e.results},a))})):l()("div",{className:g.a.noResults},void 0,n.i(h.default)("No Results"))}function a(e){
var t=e.title,n=e.isOnlyProvider,a=e.isSearchPending,r=(e.isSearchPopulated,c()(e,["title","isOnlyProvider","isSearchPending","isSearchPopulated"]));return l()("div",{},void 0,!n&&l()("div",{className:g.a.title,"aria-label":"heading","aria-level":"4"},void 0,t),p.a.createElement(i,s()({isLoading:a&&!e.hubs.length},r)))}var r=n(6),s=n.n(r),o=n(2),l=n.n(o),u=n(14),c=n.n(u),d=n(0),p=n.n(d),h=n(4),f=n(38),v=n(2484),m=n(2988),g=n.n(m);t.a=a},function(e,t,n){"use strict";function i(){
return n.i(l.createSelector)(function(e){return e.ui.quickSearch},n.i(u.a)(),function(e,t){return{title:t.title,selectedResultEntityID:e.selectedResultEntityID}})}function a(e){return s.a.createElement(c.a,e)}var r=n(0),s=n.n(r),o=n(11),l=n(5),u=(n.n(l),n(136)),c=n(2488);t.a=n.i(o.b)(i)(a)},function(e,t,n){"use strict";function i(e){var t=e.serverEntityID,n=e.searches,i=e.onScrollIntoView;return o()("div",{},void 0,n.map(function(e){return u.a.createElement(c.a,r()({},e,{key:e.key,
isOnlyProvider:1===n.length,serverEntityID:t,onScrollIntoView:i}))}))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(0),u=n.n(l),c=n(2489);t.a=i},function(e,t,n){"use strict";var i=n(11),a=n(5),r=(n.n(a),n(111)),s=n(2490),o=n.i(a.createSelector)(function(e){return e.ui.quickSearch},r.a,function(e,t){return{searches:e.searches}});t.a=n.i(i.b)(function(e){return o(e)})(s.a)},function(e,t,n){"use strict";function i(e){switch(e){case"movie":return[I.a,w.a];case"show":return[I.a,T.a];case"episode":
return[I.a,C.a];case"artist":return[I.a,P.a];case"album":return[I.a,M.a];case"track":return[I.a,E.a];case"photo":return[I.a,x.a];case"photoalbum":return[I.a,x.a];case"clip":return[I.a,x.a];case"playlist":return[I.a,D.a];case"actor":return[N.a,L.a];case"genre":return[N.a,L.a];case"director":return[N.a,L.a];case"autotag":return[N.a,L.a];case"place":return[N.a,L.a];case"collection":return[N.a,L.a];default:return[I.a,L.a]}}
var a=n(2),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=(n.n(p),n(39)),f=n.n(h),v=n(26),m=n(50),g=n(118),y=n(27),b=n(23),S=n(303),I=n(623),M=n(372),C=n(250),w=n(453),D=n(977),P=n(974),T=n(633),x=n(625),E=n(634),N=n(2503),L=n(1040),A=n(2500),k=n(2498),_=n(2499),O=n(2989),j=n.n(O),R=function(e){function t(i){o()(this,t);var a=u()(this,e.call(this,i));return a.onItemPress=function(e){e.stopPropagation();var t=document.getElementById(a._metadataActionsMenuButtonID)
;t&&t.contains(e.target)||a.props.onLinkPress()},a.onItemFocus=function(e){a.props.onResultFocus(a.props.searchResultEntityID)},a.onPlayPress=function(e){e.stopPropagation(),a.props.onPlayPress(a.props.searchResultEntityID)},a.onLinkPress=function(e){e.stopPropagation(),a.props.onLinkPress()},a.onMenuIconPress=function(e){a.setState({isMenuOpen:!a.state.isMenuOpen})},a.onMenuClose=function(){a.setState({isMenuOpen:!1})},a.state={isMenuOpen:!1},a._metadataActionsMenuButtonID=n.i(m.a)(),a}
return d()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(v.a)(this,e,t)},t.prototype.componentWillUpdate=function(e,t){if(e.isSelected!==this.props.isSelected&&e.isSelected){var n=f.a.findDOMNode(this);this.props.onScrollIntoView({scrollTop:n.offsetTop})}},t.prototype.render=function(){
var e=this,t=this.props,a=t.serverEntityID,s=t.providerEntityID,o=t.searchResultEntityID,l=t.metadataItemEntityID,u=t.server,c=t.provider,d=t.isSelected,p=t.isMetadataItem,h=t.imageWidth,f=t.imageHeight,v=t.imageUrl,m=t.resultRoute,I=t.metadataKey,M=t.metadataTitle,C=t.metadataType,w=t.tag,D=t.tagTypeString,P=t.librarySectionType,T=t.reasonTitle,x=this.state.isMenuOpen,E=c.protocols.livetv;return r()(b.a,{component:"div",className:(j.a.button||"")+" "+((d||x)&&j.a.selected||""),
onPress:this.onItemPress,onFocus:this.onItemFocus},void 0,r()(b.a,{className:j.a.link,tabIndex:"1",title:p?M:w,to:m,onPress:m?this.onLinkPress:this.onPlayPress}),r()("div",{className:j.a.imageContainer},void 0,p?r()(k.a,{serverEntityID:a,imageWidth:h,imageHeight:f,imageUrl:v,title:M,type:C,isLiveTVItem:E,recordLink:n.i(g.a)(u,c,I,{record:1}),onRecordPress:this.onLinkPress,onPlayPress:this.onPlayPress}):r()(_.a,{serverEntityID:a,imageWidth:h,imageHeight:f,imageUrl:v,title:w,tagType:D,
librarySectionType:P})),r()("div",{className:j.a.titles},void 0,i(p?C:D).map(function(t,n){var i=n>0,u=i&&!!T;return r()(A.a,{className:i?null:j.a.title,serverEntityID:a,providerEntityID:s,searchResultEntityID:o,metadataItemEntityID:l,component:u?L.a:t,isSecondary:i,onPress:e.onLinkPress},n)})),p&&!E&&r()(b.a,{id:this._metadataActionsMenuButtonID,tabIndex:"-1",className:j.a.moreButton,onPress:this.onMenuIconPress},void 0,r()(y.a,{className:j.a.moreIcon,name:"plex-icon-more-560"}),r()(S.a,{
serverEntityID:a,providerEntityID:s,metadataItemEntityID:l,showPlayTrailer:!1,showPlayPlexMix:!1,showQueuePlexMix:!1,showPlayMusicVideo:!1,showEdit:!1,showRefresh:!1,showAnalyze:!1,showFixMatch:!1,showMatch:!1,showUnmatch:!1,showSplitApart:!1,showSync:!1,showOptimize:!1,showDownload:!1,showWatchLater:!1,showShare:!1,showRecommend:!1,showDelete:!1,showDeleteVersion:!1,target:this._metadataActionsMenuButtonID,isOpen:x,onMenuClose:this.onMenuClose})))},t}(p.Component);R.defaultProps={
isMetadataItem:!1},t.a=R},function(e,t,n){"use strict";function i(){return n.i(v.createSelector)(I.a,M.a,n.i(C.a)(),n.i(w.a)(),function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments[3],r={server:e,provider:t,reasonID:i.reasonID,reasonTitle:i.reasonTitle};if(a){var s=n.i(x.b)(a.type)===x.e?L:A,o=n.i(E.a)(s,null,a.type,a);r=d()({metadataKey:a.key,metadataTitle:a.title,metadataType:a.type,typeString:a.type,imageWidth:o.width,imageHeight:o.height,imageUrl:o.url,
resultRoute:n.i(S.a)(e,t,a)},r)}else{var l=i.tagItem||{},u=m.a.get(l.tagType),c=u&&u.typeString,p=n.i(E.a)(A,null,c,l);r=d()({tag:l.tag,tagType:l.tagType,tagTypeString:c,librarySectionType:l.librarySectionType,imageWidth:p.width,imageHeight:p.height,imageUrl:p.url,resultRoute:n.i(b.a)(e,t,t.isLibraryProvider?i.reasonID:l.librarySectionKey,{filters:l.filter?l.filter:c+"="+l.id,filterLabel:l.tag})},r)}return r})}
var a=n(7),r=n.n(a),s=n(9),o=n.n(s),l=n(8),u=n.n(l),c=n(6),d=n.n(c),p=n(0),h=n.n(p),f=n(11),v=n(5),m=(n.n(v),n(419)),g=n(378),y=n(35),b=n(96),S=n(1059),I=n(45),M=n(43),C=n(294),w=n(21),D=n(140),P=n(156),T=n(310),x=n(132),E=n(256),N=n(2492),L=28,A=36,k=d()({resetQuickSearch:P.resetQuickSearch,selectQuickSearchResult:P.selectQuickSearchResult,playQuickSearchResult:P.playQuickSearchResult},D),_=function(e){function t(){var i,a,s;r()(this,t)
;for(var l=arguments.length,u=Array(l),c=0;c<l;c++)u[c]=arguments[c];return i=a=o()(this,e.call.apply(e,[this].concat(u))),a.onLinkPress=function(){var e=a.props.serverEntityID;a.props.resetQuickSearch({serverEntityID:e}),g.e()},a.onResultFocus=function(e){n.i(y.a)(function(){a.props.selectQuickSearchResult({searchResultEntityID:e})})},a.onPlayPress=function(e){var t=a.props,n=t.serverEntityID,i=t.providerEntityID;a.props.playQuickSearchResult({serverEntityID:n,providerEntityID:i,
searchResultEntityID:e})},s=i,o()(a,s)}return u()(t,e),t.prototype.render=function(){return h.a.createElement(N.a,d()({},this.props,{onLinkPress:this.onLinkPress,onResultFocus:this.onResultFocus,onPlayPress:this.onPlayPress}))},t}(p.Component);t.a=n.i(f.b)(i,k,T.a)(_)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(34)),h=n(26),f=n(67),v=n(209),m=n(2487),g=n(2491),y=n(2990),b=n.n(y),S=function(e){function t(n){s()(this,t)
;var i=l()(this,e.call(this,n));return i.onWindowResize=function(){i.setState({maxHeight:i.getMaxHeight()})},i.state={maxHeight:i.getMaxHeight()},i}return c()(t,e),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.onWindowResize)},t.prototype.shouldComponentUpdate=function(e,t){return n.i(h.a)(this,e,t)},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onWindowResize)},t.prototype.getMaxHeight=function(){
return window.innerHeight-150},t.prototype.render=function(){var e=this.props,t=e.className,n=e.serverEntityID,i=e.scrollTop,r=e.onScrollIntoView,s=e.onScrollPositionChange;return a()(v.a,{page:p.P},void 0,a()(f.a,{className:(b.a.container||"")+" "+(t||""),style:this.state,scrollTop:i,onScrollPositionChange:s},void 0,a()(m.a,{serverEntityID:n}),a()(g.a,{serverEntityID:n,onScrollIntoView:r})))},t}(d.Component);t.a=S},function(e,t,n){"use strict";function i(e){
var t=e.isMetadataItem,n=o()(e,["isMetadataItem"]);return t?u.a.createElement(c.a,r()({},n,{showSelect:!1})):u.a.createElement(d.a,n)}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(449),d=n(2497);t.a=i},function(e,t,n){"use strict";function i(e){
var t=e.className,n=e.serverEntityID,i=e.providerEntityID,a=e.searchResultEntityID,s=e.imageWidth,o=e.imageHeight,p=e.imageUrl,f=e.tag,v=e.tagType,m=e.librarySectionType,g=e.cellX,y=e.cellY,b=e.cellWidth,S=e.cellHeight,I=e.showOffscreenPlaceholder,M=e.titleComponents;return r()(l.a,{className:t,cellX:g,cellY:y,cellWidth:b,cellHeight:S},void 0,r()("div",{className:h.a.imageContainer},void 0,r()(u.a,{serverEntityID:n,imageWidth:s,imageHeight:o,imageUrl:p,title:f,tagType:v,librarySectionType:m,
isOffscreen:I}),r()(c.a,{className:h.a.imageLink,serverEntityID:n,providerEntityID:i,searchResultEntityID:a})),r()("div",{className:h.a.titleContainer},void 0,M.map(function(e,t){return r()(d.a,{serverEntityID:n,providerEntityID:i,searchResultEntityID:a,component:e,isSecondary:t>0},t)})))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(139)),l=n(99),u=n(621),c=n(1041),d=n(249),p=n(2991),h=n.n(p);t.a=n.i(o.a)(i)},function(e,t,n){"use strict";function i(){return n.i(l.createSelector)(function(e,t){
return t.listType},function(e,t){return t.listContext},function(e,t){return t.cellWidth},n.i(c.a)(),function(e,t,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=a.tagItem,s=r.tag,o=r.tagType,l=r.librarySectionType,c=n.i(u.a)(i,null,e,r,t);return{tag:s,tagType:o,librarySectionType:l,imageWidth:c.width,imageHeight:c.height,imageUrl:c.url}})}function a(e){return s.a.createElement(d.a,e)}var r=n(0),s=n.n(r),o=n(11),l=n(5),u=(n.n(l),n(256)),c=n(294),d=n(2496);t.a=n.i(o.b)(i)(a)
},function(e,t,n){"use strict";function i(e){return r.a.createElement(s.a,e)}var a=n(0),r=n.n(a),s=n(968),o=n(2992),l=n.n(o);i.defaultProps={className:l.a.card},t.a=i},function(e,t,n){"use strict";function i(e){return o.a.createElement(l.a,r()({className:c.a.card},e))}var a=n(6),r=n.n(a),s=n(0),o=n.n(s),l=n(621),u=n(2993),c=n.n(u);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.component,i=e.isSecondary,a=u()(e,["className","component","isSecondary"]);return o()("div",{
className:(t||"")+" "+(h.a.title||"")+" "+(i&&h.a.isSecondary||"")},void 0,d.a.createElement(n,r()({tabIndex:"-1"},a)))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(2994),h=n.n(p);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.server,a=e.provider,s=e.originalTitle,c=e.reason,d=e.reasonID,p=e.reasonTitle,h=e.filter,f=e.librarySectionID,v=e.librarySectionKey,m=e.onPress;if(!c)return null;if("originalTitle"===c)return r()("span",{className:t
},void 0,s);if(!p)return null;var g={};("actor"===c||"director"===c)&&(g.filters=h?h:c+"="+d,g.filterLabel=p);var y=a.isLibraryProvider?f:v,b=n.i(l.a)(i,a,y,g),S={director:n.i(o.default)("by"),actor:n.i(o.default)("with"),section:n.i(o.default)("in"),autotag:n.i(o.default)("tagged"),place:n.i(o.default)("in")};return b?r()("span",{className:t},void 0,S[c]," ",r()(u.a,{title:p,tabIndex:"-1",to:b,onPress:m},void 0,p)):r()("span",{className:t},void 0,S[c]+" "+p)}
var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(96),u=(n(106),n(105),n(23));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.className,n=e.tag;return r()("span",{className:t},void 0,n)}var a=n(2),r=n.n(a),s=n(0);n.n(s);t.a=i},function(e,t,n){"use strict";function i(){return n.i(l.createSelector)(n.i(u.a)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{tag:e.tagItem&&e.tagItem.tag}})}function a(e){return s.a.createElement(c.a,e)}
var r=n(0),s=n.n(r),o=n(11),l=n(5),u=(n.n(l),n(294)),c=n(2502);t.a=n.i(o.b)(i)(a)},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.server,a=e.provider,s=e.reasonID,c=e.id,d=e.tag,p=e.filter,h=e.tagType,f=e.librarySectionKey,v=o.a.get(h),m=v.typeString,g=p?p:m+"="+c,y={filters:g,filterLabel:d},b=a.isLibraryProvider?s:f,S=n.i(l.a)(i,a,b,y);return r()(u.a,{className:t,title:d,to:S},void 0,d)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(419)),l=n(96),u=(n(106),n(105),n(23));t.a=i
},function(e,t,n){"use strict";function i(e){var t=e.className,i=e.machineIdentifier,a=e.friendlyName;if(!a)return null;var s=encodeURIComponent(i);return r()("span",{className:t},void 0,n.i(o.default)("on")," ",r()(l.a,{title:a,to:"#!/server/"+s+"/dashboard"},void 0,a))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(23);t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),function(e){return{machineIdentifier:e.machineIdentifier,friendlyName:e.friendlyName}})}
var a=n(11),r=n(5),s=(n.n(r),n(46)),o=n(2505);t.a=n.i(a.b)(i)(o.a)},function(e,t,n){"use strict";function i(e){return r()(u.a,{target:e.target,isOpen:e.isOpen,onMenuClose:e.onMenuClose},void 0,e.showPlay&&r()(c.a,{onPress:e.onPlaySelectedPress},void 0,n.i(o.default)("Play")),e.showShuffle&&r()(c.a,{onPress:e.onShufflePress},void 0,n.i(o.default)("Shuffle")),e.showQueue&&r()(c.a,{onPress:e.onPlaySelectedNextPress},void 0,n.i(o.default)("Play Next")),e.showQueue&&r()(c.a,{
onPress:e.onAddToQueuePress},void 0,n.i(o.default)("Add to Queue")),e.showAddToPlaylist&&r()(c.a,{onPress:e.onAddToPlaylistPress},void 0,n.i(o.default)("Add to Playlist...")),e.showMarkWatched&&r()(c.a,{onPress:e.onMarkWatchedPress},void 0,n.i(o.default)("Mark Watched")),e.showMarkUnwatched&&r()(c.a,{onPress:e.onMarkUnwatchedPress},void 0,n.i(o.default)("Mark Unwatched")),e.showEdit&&r()(c.a,{onPress:e.onEditPress},void 0,n.i(o.default)("Edit")),e.showRefresh&&r()(c.a,{onPress:e.onRefreshPress
},void 0,n.i(o.default)("Refresh Metadata")),e.showAnalyze&&r()(c.a,{onPress:e.onAnalyzePress},void 0,n.i(o.default)("Analyze")),e.showMerge&&r()(c.a,{onPress:e.onMergePress},void 0,n.i(o.default)("Merge")),e.showSync&&r()(c.a,{onPress:e.onSyncPress},void 0,n.i(o.default)("Sync...")),e.showOptimize&&r()(c.a,{onPress:e.onOptimizePress},void 0,n.i(o.default)("Optimize...")),e.showDelete&&r()(c.a,{kind:l.b.DANGER,onPress:e.onDeletePress},void 0,n.i(o.default)("Delete")))}
var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(20),u=n(613),c=n(144);t.a=i},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(2),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(4),m=n(15),g=n(34),y=n(26),b=n(50),S=n(646),I=n(127),M=n(640),C=n(641),w=n(638),D=n(639),P=n(2188),T=n(987),x=n(642),E=n(454),N=n(2507),L=["showPlay","showShuffle","showAddToPlaylist","showToggleWatched","showEdit","showSync"],A=["showRefresh","showAnalyze","showMerge","showOptimize","showDelete"],k=function(e){function t(i,a){l()(this,t);var r=c()(this,e.call(this,i,a))
;return r.onPlaySelectedShortcut=function(){var e=r.props,t=e.showPlay,n=e.showPlayOverflow,i=e.onPlaySelectedPress;(t||n)&&i()},r.onToggleWatchedShortcut=function(){var e=r.props,t=e.showMarkWatched,n=e.showMarkUnwatched;t?r.setState({isConfirmMarkWatchedModalOpen:!0}):n&&r.setState({isConfirmMarkUnwatchedModalOpen:!0})},r.onEditShortcut=function(){var e=r.props,t=e.showEdit,n=e.showEditOverflow,i=e.onEditPress;(t||n)&&i()},r.onActionsPress=function(e){r.setState({
isActionsMenuOpen:!r.state.isActionsMenuOpen})},r.onActionsMenuClose=function(){r.setState({isActionsMenuOpen:!1})},r.onMarkWatchedPress=function(e){r.setState({isConfirmMarkWatchedModalOpen:!0})},r.onMarkUnwatchedPress=function(e){r.setState({isConfirmMarkUnwatchedModalOpen:!0})},r.onMarkWatchedConfirm=function(){r.setState({isConfirmMarkWatchedModalOpen:!1}),r.props.onMarkWatchedConfirm()},r.onMarkWatchedCancel=function(){r.setState({isConfirmMarkWatchedModalOpen:!1})},
r.onMarkUnwatchedConfirm=function(){r.setState({isConfirmMarkUnwatchedModalOpen:!1}),r.props.onMarkUnwatchedConfirm()},r.onMarkUnwatchedCancel=function(){r.setState({isConfirmMarkUnwatchedModalOpen:!1})},r.onDeletePress=function(e){r.setState({isConfirmDeleteModalOpen:!0})},r.onDeleteConfirm=function(e){r.setState({isConfirmDeleteModalOpen:!1}),r.props.onDeleteConfirm()},r.onDeleteCancel=function(){r.setState({isConfirmDeleteModalOpen:!1})},r.state={isActionsMenuOpen:!1,
isConfirmMarkWatchedModalOpen:!1,isConfirmMarkUnwatchedModalOpen:!1,isConfirmDeleteModalOpen:!1},r._moreButtonID=n.i(b.a)(),r}return p()(t,e),t.prototype.componentDidMount=function(){m.a.on("shortcut:playSelected",this.onPlaySelectedShortcut),m.a.on("shortcut:toggleWatched",this.onToggleWatchedShortcut),m.a.on("shortcut:edit",this.onEditShortcut)},t.prototype.shouldComponentUpdate=function(e,t){return n.i(y.a)(this,e,t)},t.prototype.componentWillUnmount=function(){
m.a.off("shortcut:playSelected",this.onPlaySelectedShortcut),m.a.off("shortcut:toggleWatched",this.onToggleWatchedShortcut),m.a.off("shortcut:edit",this.onEditShortcut)},t.prototype.render=function(){
var e=this.props,t=e.className,i=e.selectedItemsCount,r=e.showPlay,o=e.showPlayOverflow,l=e.showShuffle,u=e.showShuffleOverflow,c=e.showAddToAlbum,d=e.showAddToAlbumOverflow,p=e.showAddToPlaylist,h=e.showAddToPlaylistOverflow,m=e.showToggleWatched,y=e.showToggleWatchedOverflow,b=e.showMarkWatched,S=e.showMarkUnwatched,L=e.showEdit,A=e.showEditOverflow,k=e.showSync,_=e.showSyncOverflow,O=e.showOverflow,j=e.onPlaySelectedPress,R=e.onShufflePress,U=e.onAddToPlaylistPress,z=e.onEditPress,B=e.onSyncPress,F=this.state,V=F.isActionsMenuOpen,Q=F.isConfirmMarkWatchedModalOpen,H=F.isConfirmMarkUnwatchedModalOpen,W=F.isConfirmDeleteModalOpen
;return s()("div",{className:t},void 0,r&&s()(M.a,{playLabel:n.i(v.default)("Play Selected"),onPress:j}),l&&s()(C.a,{onPress:R}),c&&s()(w.a,{onPress:U}),p&&s()(D.a,{onPress:U}),m&&s()(P.a,{showMarkWatched:b,showMarkUnwatched:S,onMarkWatchedPress:this.onMarkWatchedPress,onMarkUnwatchedPress:this.onMarkUnwatchedPress}),L&&s()(T.a,{onPress:z}),k&&s()(x.a,{onPress:B}),O&&s()(E.a,{id:this._moreButtonID,icon:"plex-icon-toolbar-more-560",label:n.i(v.default)("More..."),isMenuOpen:V,
onPress:this.onActionsPress}),f.a.createElement(N.a,a()({},this.props,{target:this._moreButtonID,isOpen:V,showPlay:o,showShuffle:u,showAddToAlbum:d,showAddToPlaylist:h,showMarkWatched:y&&b,showMarkUnwatched:y&&S,showEdit:A,showSync:_,onMenuClose:this.onActionsMenuClose,onMarkWatchedPress:this.onMarkWatchedPress,onMarkUnwatchedPress:this.onMarkUnwatchedPress,onDeletePress:this.onDeletePress})),s()(I.a,{isOpen:Q,metricsPage:g.x,title:n.i(v.default)("Mark Watched"),
message:1===i?n.i(v.default)("Are you sure you want to mark this item as watched?"):n.i(v.default)("Are you sure you want to mark these {selectedItemsCount} items as watched?",{selectedItemsCount:i}),onConfirm:this.onMarkWatchedConfirm,onCancel:this.onMarkWatchedCancel}),s()(I.a,{isOpen:H,metricsPage:g.w,title:n.i(v.default)("Mark Unwatched"),
message:1===i?n.i(v.default)("Are you sure you want to mark this item as unwatched?"):n.i(v.default)("Are you sure you want to mark these {selectedItemsCount} items as unwatched?",{selectedItemsCount:i}),onConfirm:this.onMarkUnwatchedConfirm,onCancel:this.onMarkUnwatchedCancel}),s()(I.a,{isOpen:W,metricsPage:g.y,title:n.i(v.default)("Delete"),
message:1===i?n.i(v.default)("Are you sure you want to delete this item from your filesystem?"):n.i(v.default)("Are you sure you want to delete these {selectedItemsCount} items from your filesystem?",{selectedItemsCount:i}),onConfirm:this.onDeleteConfirm,onCancel:this.onDeleteCancel}))},t}(h.Component);t.a=n.i(S.a)(k,L,A)},function(e,t,n){"use strict";function i(){return n.i(o.createSelector)(l.a,c.a,d.a,p.a,u.a,function(e,t,i,a,r){
var o=t.activeSelectionItems,l=t.activeSelectionType,u=o.map(function(t){return s()({},t,{model:e[t.model]})}),c=n.i(f.a)(i,a,r,u,l),d=c.showMarkWatched||c.showMarkUnwatched;return s()({showToggleWatched:d},c)})}function a(e,t){var n={serverEntityID:t.serverEntityID,providerEntityID:t.providerEntityID,metricsPage:t.metricsPage};return{onPlaySelectedPress:function(){e(h.e(n))},onShufflePress:function(){e(h.f(n))},onPlaySelectedNextPress:function(){e(h.g(n))},onAddToQueuePress:function(){e(h.h(n))
},onAddToPlaylistPress:function(){e(h.i(n))},onMarkWatchedConfirm:function(){e(h.j(n))},onMarkUnwatchedConfirm:function(){e(h.k(n))},onEditPress:function(){e(h.l(n))},onRefreshPress:function(){e(h.m(n))},onAnalyzePress:function(){e(h.n(n))},onMergePress:function(){e(h.o(n))},onSyncPress:function(){e(h.p(n))},onOptimizePress:function(){e(h.q(n))},onDeleteConfirm:function(){e(h.r(n))},onDeselectAllPress:function(){e(h.d(n))}}}var r=n(6),s=n.n(r),o=n(5),l=(n.n(o),
n(110)),u=n(180),c=n(83),d=n(45),p=n(43),h=n(288),f=n(2560),v=n(138),m=n(2508);t.a=n.i(v.a)(i,a)(m.a)},function(e,t,n){"use strict";function i(e){var t=e.selectedItemsCount,i=e.toolbarComponent,a=e.onDeselectAllPress,s=u()(e,["selectedItemsCount","toolbarComponent","onDeselectAllPress"]);return o()(v.a,{className:S.a.multiSelectPageHeader},void 0,o()(m.a,{},void 0,o()("div",{className:S.a.selectedTitle},void 0,o()(h.a,{name:"plex-icon-selected-560",className:S.a.icon
}),1===t?n.i(p.default)("1 item selected"):n.i(p.default)("{selectedItemsCount} items selected",{selectedItemsCount:t})),o()(f.a,{className:S.a.deselectLink,onPress:a},void 0,o()(h.a,{name:"plex-icon-remove-560",className:S.a.icon}),n.i(p.default)("Deselect All"))),o()(g.a,{},void 0,d.a.createElement(i,r()({selectedItemsCount:t},s))))}var a=n(6),r=n.n(a),s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(4),h=n(27),f=n(23),v=n(168),m=n(169),g=n(189),y=n(2509),b=n(2995),S=n.n(b)
;i.defaultProps={toolbarComponent:y.a},t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(210)),h=n(50),f=n(257),v=n.n(f),m=n(209),g=n(67),y=n(2524),b=n(2536),S=n(2513),I=n(2522),M=n(2996),C=n.n(M),w=n.i(p.a)(v.a.menuSpeed),D=a()(S.a,{}),P=function(e){function t(i,a){s()(this,t);var r=l()(this,e.call(this,i,a));return r.onMenuButtonPress=function(e){r.setState({isMenuOpen:!r.state.isMenuOpen})},r.onMenuClose=function(e){
r.setState({isMenuOpen:!1})},r.state={isMenuOpen:!1},r._serverMenuButtonID=n.i(h.a)(),r}return c()(t,e),t.prototype.componentDidUpdate=function(e,t){var n=this;!t.isMenuOpen&&this.state.isMenuOpen&&(this._openTimeoutID=setTimeout(function(){return n.props.onServerMenuOpen()},w))},t.prototype.componentWillUnmount=function(){this._openTimeoutID&&clearTimeout(this._openTimeoutID)},t.prototype.render=function(){
var e=this.props,t=e.primaryServerEntityID,n=e.serverEntityIDs,i=e.canProvisionPersonalCloudServer,r=this.state.isMenuOpen;return a()(m.a,{page:"sidebar",isDelegated:!0},void 0,a()("div",{className:C.a.sidebar},void 0,a()(y.a,{id:this._serverMenuButtonID,hasPrimaryServer:!!t,serverEntityID:t,isMenuOpen:r,onPress:this.onMenuButtonPress}),a()(g.a,{className:C.a.sidebarScroller,autoScroll:!0},void 0,a()("div",{className:C.a.sidebarContent},void 0,t?a()(b.a,{serverEntityID:t}):D)),a()(I.a,{
target:this._serverMenuButtonID,isOpen:r,canProvisionPersonalCloudServer:i,serverEntityIDs:n,onMenuClose:this.onMenuClose})))},t}(d.Component);t.a=P},function(e,t,n){"use strict";function i(e){var t=e.outOfDateServers,n=e.isWaitingForPrimaryServer,i=e.isUserRestricted,a=e.canProvisionPersonalCloudServer,s=e.onLinkPersonalCloudServerPress;return n?p:t.length?r()(u.a,{outOfDateServers:t}):i?h:a?r()(d.a,{onPress:s}):f}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),
n(2514)),l=n(2516),u=n(2517),c=n(2518),d=n(2515),p=r()(c.a,{}),h=r()(l.a,{}),f=r()(o.a,{});t.a=i},function(e,t,n){"use strict";function i(){return n.i(v.createStructuredSelector)({outOfDateServers:m.a,isWaitingForPrimaryServer:function(e){return e.isWaitingForPrimaryServer},isUserRestricted:function(e){return!!e.user.restricted},canProvisionPersonalCloudServer:g.a})}var a=n(6),r=n.n(a),s=n(7),o=n.n(s),l=n(9),u=n.n(l),c=n(8),d=n.n(c),p=n(0),h=n.n(p),f=n(11),v=n(5),m=(n.n(v),
n(791)),g=n(405),y=n(291),b=n(2512),S={showProvisionPersonalCloudServerModal:y.a},I=function(e){function t(){var n,i,a;o()(this,t);for(var r=arguments.length,s=Array(r),l=0;l<r;l++)s[l]=arguments[l];return n=i=u()(this,e.call.apply(e,[this].concat(s))),i.onLinkPersonalCloudServerPress=function(e){i.props.showProvisionPersonalCloudServerModal({open:!0})},a=n,u()(i,a)}return d()(t,e),t.prototype.render=function(){return h.a.createElement(b.a,r()({},this.props,{
onLinkPersonalCloudServerPress:this.onLinkPersonalCloudServerPress}))},t}(p.Component);t.a=n.i(f.b)(i,S)(I)},function(e,t,n){"use strict";function i(){return r()(l.a,{message:n.i(o.default)("A server could not be found. Download and install Plex Media Server, and it will appear here.")},void 0,r()(u.a,{to:"https://help.plex.tv/noserver",target:"_blank",icon:"plex-icon-help-560",title:n.i(o.default)("Where is my server?")}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(255),u=n(172);t.a=i
},function(e,t,n){"use strict";function i(e){return r()("div",{},void 0,r()(l.a,{message:n.i(o.default)("Don't have a computer to run Plex Media Server? You can get started with Plex Cloud right now!")},void 0,r()(u.a,{icon:"plex-icon-personal-cloud-560",title:n.i(o.default)("Set up Plex Cloud..."),onPress:e.onPress})))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(255),u=n(172);t.a=i},function(e,t,n){"use strict";function i(){return r()(l.a,{
message:n.i(o.default)("No one in your home has shared a library with you.")},void 0,r()(u.a,{to:"https://support.plex.tv/hc/en-us/articles/204234313-Example-Plex-Home-Setup",target:"_blank",icon:"plex-icon-help-560",title:n.i(o.default)("Learn more")}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(255),u=n(172);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.outOfDateServers,i=t.map(function(e){return'"'+e.friendlyName+'"'}),a=n.i(l.a)(i),s=void 0
;return s=1===t.length?n.i(o.default)("The server {serverName} needs an update.",{serverName:a}):n.i(o.default)("The servers {serverNames} need updates.",{serverNames:a}),r()(u.a,{message:s})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(853),u=n(255);t.a=i},function(e,t,n){"use strict";function i(){return r()(l.a,{message:n.i(o.default)("Please wait while servers are discovered.")})}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(255);t.a=i},function(e,t,n){"use strict"
;var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(64),f=n(1528),v=n(26),m=n(27),g=n(420),y=n(1045),b=n(1044),S=n(1101),I=n.n(S),M=function(e){function t(){return s()(this,t),l()(this,e.apply(this,arguments))}return c()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(v.a)(this,e,t)},t.prototype.render=function(){if(!this.props.isPrimaryEligible||!this.props.friendlyName)return null
;var e=this.props,t=e.className,i=e.isSelected,r=e.isConnected,s=e.isUnavailable,o=e.isSecure,l=e.isRelayed,u=e.machineIdentifier,c=e.friendlyName,d=e.onPress,v=n.i(f.a)(this.props),S=v.isConnecting,M=v.statusWithSource;return a()(g.a,{action:h.d},void 0,a()(y.a,{className:(t||"")+" "+((S||s)&&I.a.disabledServerMenuItem||"")+" "+(i&&I.a.selectedServerMenuItem||""),to:"#!/server/"+u+"/dashboard",isDisabled:S,machineIdentifier:u,title:c,details:M,onPress:d},void 0,i&&a()(m.a,{
name:"plex-icon-selected-560",className:(I.a.serverMenuIcon||"")+" "+(I.a.selectedIcon||""),"aria-label":n.i(p.default)("Selected")}),a()(b.a,{className:I.a.serverMenuIcon,isConnected:r,isUnavailable:s,isSecure:o,isRelayed:!i&&l})))},t}(d.Component);t.a=M},function(e,t,n){"use strict";function i(e){var t=e.onPress;return r()(u.a,{machineIdentifier:"plexCloud",title:n.i(o.default)("Plex Cloud"),details:n.i(o.default)("Set up Plex Cloud\u2026"),onPress:t},void 0,r()(l.a,{
className:d.a.personalCloudIcon,name:"plex-icon-personal-cloud-560","aria-label":n.i(o.default)("Plex Cloud")}))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(27),u=n(1045),c=n(3e3),d=n.n(c);t.a=i},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(5)),h=(n.n(p),n(11)),f=n(291),v=n(405),m=n(2520),g=n.i(p.createStructuredSelector)({isNotInterested:function(e){return e.experienceSettings.isNotInterestedInPersonalCloud},
canProvisionPersonalCloudServer:v.a}),y={showProvisionPersonalCloudServerModal:f.a},b=function(e){function t(){var n,i,a;s()(this,t);for(var r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u];return n=i=l()(this,e.call.apply(e,[this].concat(o))),S.call(i),a=n,l()(i,a)}return c()(t,e),t.prototype.render=function(){return this.props.canProvisionPersonalCloudServer&&!this.props.isNotInterested?a()(m.a,{onPress:this.onPress}):null},t}(d.Component),S=function(){var e=this
;this.onPress=function(){var t;(t=e.props).onPress.apply(t,arguments),e.props.showProvisionPersonalCloudServerModal({open:!0})}};t.a=n.i(h.b)(g,y)(b)},function(e,t,n){"use strict";function i(e){var t=e.target,n=e.isOpen,i=e.serverEntityIDs,a=e.onMenuClose;return r()(d.a,{className:v.a.serverMenu,target:t,isOpen:n,scrollerProps:y,maxHeight:g,onMenuClose:a},void 0,r()(c.a,{page:"serverPicker"},void 0,r()(h.a,{onPress:a}),i.map(function(e){return r()(p.a,{serverEntityID:e},e)})))}
var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(57)),l=n.n(o),u=n(20),c=n(1520),d=n(68),p=n(2525),h=n(2521),f=n(3001),v=n.n(f),m=parseInt(l.a.serverMenuItemHeight,10),g=5*m,y={className:v.a.serverMenuScroller,scrollDirection:u.a.VERTICAL,autoScroll:!0};t.a=i},function(e,t,n){"use strict";function i(e){var t=e.hasPrimaryServer,n=u()(e,["hasPrimaryServer"]);return t?d.a.createElement(r,n):d.a.createElement(a,n)}function a(e){var t=e.id;return o()(m.a,{id:t,className:b.a.serverMenuButton,isSelected:!0,
isDisabled:!0},void 0,o()("div",{className:b.a.serverMenuButtonContainer},void 0,o()("span",{className:b.a.serverMenuTitle},void 0,n.i(p.default)("Looking for servers...")),o()(f.a,{size:h.d.SMALL,className:b.a.serverMenuSpinner})))}function r(e){var t=e.id,i=e.friendlyName,a=e.sourceTitle,r=e.isConnected,s=e.isUnavailable,l=e.isSecure,u=e.isRelayed,c=e.isMenuOpen,d=e.onPress,f=void 0;return u&&a?f=n.i(p.default)("Indirect ({serverName})",{serverName:a}):u?f=n.i(p.default)("Indirect"):a&&(f=a),
o()(m.a,{id:t,className:b.a.serverMenuButton,"aria-haspopup":!0,"data-qa-id":"serverMenuButton",isSelected:!0,onPress:d},void 0,o()("div",{className:b.a.serverMenuButtonContainer},void 0,o()("span",{className:b.a.serverMenuTitle},void 0,o()("span",{className:b.a.serverMenuFriendlyNameContainer},void 0,o()("span",{className:b.a.serverMenuFriendlyName},void 0,i),o()(v.a,{direction:c?h.f.UP:h.f.DOWN,isSelected:!0})),f&&o()("span",{className:b.a.serverMenuUsername},void 0,f)),o()(g.a,{
className:b.a.icon,isConnected:r,isUnavailable:s,isSecure:l})))}var s=n(2),o=n.n(s),l=n(14),u=n.n(l),c=n(0),d=n.n(c),p=n(4),h=n(20),f=n(38),v=n(605),m=n(23),g=n(1044),y=n(3002),b=n.n(y);t.a=i},function(e,t,n){"use strict";function i(){return n.i(c.createSelector)(n.i(d.a)(),function(e){return s.a.pick(e,"friendlyName","sourceTitle","isConnected","isUnavailable","isSecure","isRelayed")})}function a(e){return l.a.createElement(p.a,e)}var r=n(3),s=n.n(r),o=n(0),l=n.n(o),u=n(11),c=n(5),d=(n.n(c),
n(46)),p=n(2523);t.a=n.i(u.b)(i)(a)},function(e,t,n){"use strict";function i(){return n.i(p.createSelector)(n.i(h.a)(),function(e){return e.primaryServer},function(e,t){var n=l.a.pick(e,"machineIdentifier","friendlyName","sourceTitle","isConnected","isUnavailable","isSecure","isCloudSyncServer","isPrimaryEligible","activeConnection","isOutOfDate","isRelayed");return s()({},n,{isSelected:e.entityID===t})})}function a(e){return c.a.createElement(f.a,e)}
var r=n(6),s=n.n(r),o=n(3),l=n.n(o),u=n(0),c=n.n(u),d=n(11),p=n(5),h=(n.n(p),n(46)),f=n(2519);t.a=n.i(d.b)(i)(a)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(80),f=n(34),v=n(26),m=n(50),g=n(127),y=n(2527),b=n(1046),S=n(3005),I=n.n(S),M=function(e){function t(i,a){s()(this,t);var r=l()(this,e.call(this,i,a));return r.onActionsPress=function(e){r.setState({isActionsMenuOpen:!r.state.isActionsMenuOpen}),
r.props.onActionsMenuOpen&&r.props.onActionsMenuOpen()},r.onActionsMenuClose=function(){r.setState({isActionsMenuOpen:!1}),r.props.onActionsMenuClose&&r.props.onActionsMenuClose()},r.onOptimizeDatabasePress=function(e){r.setState({isOptimizeModalOpen:!0})},r.onOptimizeConfirm=function(){r.props.onOptimizeDatabaseConfirm()},r.onOptimizeCancel=function(){r.setState({isOptimizeModalOpen:!1})},r.onCleanBundlesPress=function(e){r.setState({isCleanBundlesModalOpen:!0})},
r.onCleanBundlesConfirm=function(){r.props.onCleanBundlesConfirm()},r.onCleanBundlesCancel=function(){r.setState({isCleanBundlesModalOpen:!1})},r.onEmptyTrashPress=function(e){r.setState({isEmptyTrashModalOpen:!0})},r.onEmptyTrashConfirm=function(){r.setState({isEmptyTrashModalOpen:!1}),r.props.onEmptyTrashConfirm()},r.onEmptyTrashCancel=function(){r.setState({isEmptyTrashModalOpen:!1})},r.state={isActionsMenuOpen:!1,isOptimizeModalOpen:!1,isCleanBundlesModalOpen:!1,isEmptyTrashModalOpen:!1},
r._actionsMenuButtonID=n.i(m.a)(),r}return c()(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.isOptimizeDatabaseInProgress&&!e.isOptimizeDatabaseInProgress&&this.setState({isOptimizeModalOpen:!1}),this.props.isCleanBundlesInProgress&&!e.isCleanBundlesInProgress&&this.setState({isCleanBundlesModalOpen:!1})},t.prototype.shouldComponentUpdate=function(e,t){return n.i(v.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.className,i=e.isHovered,r=e.isLibraryRefreshing,s=e.isOptimizeDatabaseInProgress,o=e.isCleanBundlesInProgress,l=h.a.hasTouchScreen||i||this.state.isActionsMenuOpen;return a()("div",{className:(t||"")+" "+(l&&I.a.isVisible||""),role:"menu"},void 0,a()(b.a,{className:I.a.action,"data-qa-id":"sidebarLibrariesAddButton",icon:"plex-icon-add-560",title:n.i(p.default)("Add Library"),onPress:this.props.onAddLibraryPress}),a()(b.a,{id:this._actionsMenuButtonID,className:I.a.action,
"aria-haspopup":"true","data-qa-id":"sidebarLibrariesMoreButton",icon:"plex-icon-more-560",title:n.i(p.default)("More Actions"),onPress:this.onActionsPress}),a()(y.a,{target:this._actionsMenuButtonID,isOpen:this.state.isActionsMenuOpen,isLibraryRefreshing:r,onMenuClose:this.onActionsMenuClose,onSharePress:this.props.onSharePress,onUpdateLibrariesPress:this.props.onUpdateLibrariesPress,onCancelUpdatePress:this.props.onCancelUpdatePress,onOptimizeDatabasePress:this.onOptimizeDatabasePress,
onCleanBundlesPress:this.onCleanBundlesPress,onEmptyTrashPress:this.onEmptyTrashPress}),a()(g.a,{isOpen:this.state.isOptimizeModalOpen,isConfirmButtonSpinning:s,isCancelButtonDisabled:s,metricsPage:f.i,title:n.i(p.default)("Optimize Database"),message:n.i(p.default)("Cleans up the library database and ensures it is operating as quickly as possible. This is especially useful when you've added or removed a large amount of media from the library."),confirmLabel:n.i(p.default)("Optimize"),
onConfirm:this.onOptimizeConfirm,onCancel:this.onOptimizeCancel}),a()(g.a,{isOpen:this.state.isCleanBundlesModalOpen,isConfirmButtonSpinning:o,isCancelButtonDisabled:o,metricsPage:f.j,title:n.i(p.default)("Clean Bundles"),message:n.i(p.default)("The media server stores information about your media to disk, as well as posters, artwork, and other media resources from the internet. Running this task deletes any bundles which are no longer in use."),confirmLabel:n.i(p.default)("Clean"),
onConfirm:this.onCleanBundlesConfirm,onCancel:this.onCleanBundlesCancel}),a()(g.a,{isOpen:this.state.isEmptyTrashModalOpen,metricsPage:f.k,title:n.i(p.default)("Empty Trash"),message:n.i(p.default)("By default the media server doesn't remove information for media right away. This helps if a drive is temporarily disconnected. When you empty the trash for a section, all information about missing media is deleted."),confirmLabel:n.i(p.default)("Empty"),onConfirm:this.onEmptyTrashConfirm,
onCancel:this.onEmptyTrashCancel}))},t}(d.Component);M.defaultProps={className:I.a.actions},t.a=M},function(e,t,n){"use strict";function i(e){var t=e.isLibraryRefreshing,i=e.onSharePress,a=e.onUpdateLibrariesPress,s=e.onCancelUpdatePress,l=e.onOptimizeDatabasePress,h=e.onCleanBundlesPress,f=e.onEmptyTrashPress,v=o()(e,["isLibraryRefreshing","onSharePress","onUpdateLibrariesPress","onCancelUpdatePress","onOptimizeDatabasePress","onCleanBundlesPress","onEmptyTrashPress"])
;return u.a.createElement(d.a,v,r()(p.a,{onPress:i},void 0,n.i(c.default)("Share...")),t?r()(p.a,{onPress:s},void 0,n.i(c.default)("Cancel Scan")):r()(p.a,{onPress:a},void 0,n.i(c.default)("Scan Library Files")),r()(p.a,{onPress:l},void 0,n.i(c.default)("Optimize Database")),r()(p.a,{onPress:h},void 0,n.i(c.default)("Clean Bundles")),r()(p.a,{onPress:f},void 0,n.i(c.default)("Empty Trash")))}var a=n(2),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(4),d=n(68),p=n(144);t.a=i},function(e,t,n){
"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(154),f=n(34),v=n(50),m=n(74),g=n(127),y=n(1043),b=n(1042),S=n(1046),I=n(2529),M=n(3006),C=n.n(M),w=function(e){function t(i,a){s()(this,t);var r=l()(this,e.call(this,i,a));return r.onActionsPress=function(){r.setState({isActionsMenuOpen:!r.state.isActionsMenuOpen})},r.onActionsMenuClose=function(){r.setState({isActionsMenuOpen:!1})},r.onAnalyzePress=function(){r.setState({
isAnalyzeModalOpen:!0})},r.onAnalyzeConfirm=function(){r.setState({isAnalyzeModalOpen:!1}),r.props.onAnalyzeLibraryPress()},r.onAnalyzeCancel=function(){r.setState({isAnalyzeModalOpen:!1})},r.onRefreshAllPress=function(){r.setState({isRefreshAllModalOpen:!0})},r.onRefreshAllConfirm=function(){r.setState({isRefreshAllModalOpen:!1}),r.props.onRefreshLibraryPress()},r.onRefreshAllCancel=function(){r.setState({isRefreshAllModalOpen:!1})},r.onEmptyTrashPress=function(){r.setState({
isEmptyTrashModalOpen:!0})},r.onEmptyTrashConfirm=function(){r.setState({isEmptyTrashModalOpen:!1}),r.props.onEmptyTrashLibraryPress()},r.onEmptyTrashCancel=function(){r.setState({isEmptyTrashModalOpen:!1})},r.onDeletePress=function(){r.setState({isDeleteModalOpen:!0})},r.onDeleteConfirm=function(){r.props.onDeleteLibraryPress()},r.onDeleteCancel=function(){r.setState({isDeleteModalOpen:!1})},r.state={isActionsMenuOpen:!1,isAnalyzeModalOpen:!1,isRefreshAllModalOpen:!1,isEmptyTrashModalOpen:!1,
isDeleteModalOpen:!1},r._actionsMenuButtonID=n.i(v.a)(),r}return c()(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.isLibraryDeleteInProgress&&!e.isLibraryDeleteInProgress&&this.setState({isDeleteModalOpen:!1})},t.prototype.render=function(){
var e=this.props,t=e.libraryKey,i=e.route,r=e.type,s=e.title,o=e.refreshing,l=e.isLibraryDeleteInProgress,u=e.isFullOwnedServer,c=e.isSelected,d=e.onShareLibraryPress,v=e.onUpdateLibraryPress,M=e.onCancelUpdateLibraryPress,w=e.onEditLibraryPress;return a()(y.a,{className:C.a.libraryListItem},void 0,a()(b.a,{"data-qa-id":"sidebarLibraryItem--"+t,to:i,icon:h.a.get(r).sectionTypeIcon,title:s,showSpinner:u&&o,isSelected:c}),u&&a()(S.a,{id:this._actionsMenuButtonID,
className:(C.a.action||"")+" "+(this.state.isActionsMenuOpen&&C.a.isVisible||""),"data-qa-id":"sidebarLibraryMoreButton",icon:"plex-icon-more-560",title:n.i(p.default)("More Actions"),onPress:this.onActionsPress}),a()(I.a,{target:this._actionsMenuButtonID,isOpen:this.state.isActionsMenuOpen,isLibraryRefreshing:o,onMenuClose:this.onActionsMenuClose,onSharePress:d,onUpdatePress:v,onCancelUpdatePress:M,onEditPress:w,onAnalyzePress:this.onAnalyzePress,onRefreshAllPress:this.onRefreshAllPress,
onEmptyTrashPress:this.onEmptyTrashPress,onDeletePress:this.onDeletePress}),a()(g.a,{isOpen:this.state.isAnalyzeModalOpen,metricsPage:f.e,title:n.i(p.default)("Analyze Library"),message:n.i(p.default)("Analyzes all the media files in the library. The analysis captures information about the media which helps Plex decide how to optimally play back the media."),confirmLabel:n.i(p.default)("Analyze"),onConfirm:this.onAnalyzeConfirm,onCancel:this.onAnalyzeCancel}),a()(g.a,{
isOpen:this.state.isRefreshAllModalOpen,metricsPage:f.f,title:n.i(p.default)("Refresh All Metadata"),message:n.i(p.default)("Forces a download of fresh media information from the internet. This can take a long time. Any locked fields are not modified."),confirmLabel:n.i(p.default)("Refresh"),onConfirm:this.onRefreshAllConfirm,onCancel:this.onRefreshAllCancel}),a()(g.a,{isOpen:this.state.isEmptyTrashModalOpen,metricsPage:f.g,title:n.i(p.default)("Empty Trash"),
message:n.i(p.default)("By default the media server doesn't remove information for media right away. This helps if a drive is temporarily disconnected. When you empty the trash for a section, all information about missing media is deleted."),confirmLabel:n.i(p.default)("Empty"),onConfirm:this.onEmptyTrashConfirm,onCancel:this.onEmptyTrashCancel}),a()(g.a,{isOpen:this.state.isDeleteModalOpen,isConfirmButtonSpinning:l,isCancelButtonDisabled:l,metricsPage:f.h,kind:m.DANGER,
title:n.i(p.default)("Delete Library"),message:n.i(p.default)('The library "{libraryName}" will be removed from this server. Your media files will not be affected. This can\'t be undone. Continue?',{libraryName:s}),accordMessage:n.i(p.default)('Yes, delete the library "{libraryName}"',{libraryName:s}),confirmLabel:n.i(p.default)("Delete"),onConfirm:this.onDeleteConfirm,onCancel:this.onDeleteCancel}))},t}(d.Component);w.defaultProps={refreshing:!1},t.a=w},function(e,t,n){"use strict"
;function i(e){var t=e.isLibraryRefreshing,i=e.onSharePress,a=e.onUpdatePress,s=e.onCancelUpdatePress,l=e.onEditPress,f=e.onAnalyzePress,v=e.onRefreshAllPress,m=e.onEmptyTrashPress,g=e.onDeletePress,y=o()(e,["isLibraryRefreshing","onSharePress","onUpdatePress","onCancelUpdatePress","onEditPress","onAnalyzePress","onRefreshAllPress","onEmptyTrashPress","onDeletePress"]);return u.a.createElement(d.a,y,r()(p.a,{onPress:i},void 0,n.i(c.default)("Share...")),t?r()(p.a,{onPress:s
},void 0,n.i(c.default)("Cancel Scan")):r()(p.a,{onPress:a},void 0,n.i(c.default)("Scan Library Files")),r()(p.a,{onPress:l},void 0,n.i(c.default)("Edit")),r()(p.a,{onPress:f},void 0,n.i(c.default)("Analyze")),r()(p.a,{onPress:v},void 0,n.i(c.default)("Refresh All Metadata")),r()(p.a,{onPress:m},void 0,n.i(c.default)("Empty Trash")),r()(p.a,{kind:h.b.DANGER,onPress:g},void 0,n.i(c.default)("Delete")))}var a=n(2),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(4),d=n(68),p=n(144),h=n(20);t.a=i
},function(e,t,n){"use strict";function i(){return n.i(m.createSelector)(function(e){return e.ui.quickSearch},function(e){return e.ui.background.isBackgroundPending},n.i(b.a)(),function(e,t,n){var i=e.providerIdentifier,a=e.sectionID;t||(x=i,E=a);var r=t?x:i,s=t?E:a;return r===g.a.LIBRARY_PROVIDER_IDENTIFIER&&s===n.key})}function a(){return n.i(m.createSelector)(n.i(y.a)(),n.i(b.a)(),S.a,n.i(I.c)(),i(),function(e,t,i,a,r){
var s=t.key,o=t.title,l=void 0===o?"":o,u=t.type,c=t.agent,d=t.refreshing,p="movie"===u&&"com.plexapp.agents.none"===c,h="photo"===u&&e.itemClusters&&e.ownerFeatures.indexOf("item_clusters")!==-1,f=l.trim(),v=e.isCloudSyncServer?{type:u,title:f}:{},m=e.entityID+"!/library/sections/"+t.key,g=i[m],y={isLibraryProvider:!0},b=h&&n.i(D.a)(e,y,s),S=n.i(w.a)(e,y,s,v);return{libraryKey:s,route:g||b||S,title:f,type:p?"videos":u,refreshing:d,isLibraryDeleteInProgress:!!a,
isFullOwnedServer:e.isFullOwnedServer,isSelected:r}})}function r(e,t){var i={serverEntityID:t.serverEntityID,libraryEntityID:t.libraryEntityID,metricsPage:t.metricsPage};return{dispatchFetchLibraries:function(){e(n.i(M.b)({serverEntityID:t.serverEntityID}))},onShareLibraryPress:function(){e(C.a(i))},onUpdateLibraryPress:function(){e(C.b(i))},onCancelUpdateLibraryPress:function(){e(C.c(i))},onEditLibraryPress:function(){e(C.d(i))},onAnalyzeLibraryPress:function(){e(C.e(i))},
onRefreshLibraryPress:function(){e(C.f(i))},onEmptyTrashLibraryPress:function(){e(C.g(i))},onDeleteLibraryPress:function(){e(C.h(i))}}}var s=n(14),o=n.n(s),l=n(7),u=n.n(l),c=n(9),d=n.n(c),p=n(8),h=n.n(p),f=n(0),v=n.n(f),m=n(5),g=(n.n(m),n(72)),y=n(46),b=n(1375),S=n(593),I=n(913),M=n(100),C=n(1766),w=n(96),D=n(1060),P=n(138),T=n(2528),x=void 0,E=void 0,N=function(e){function t(){return u()(this,t),d()(this,e.apply(this,arguments))}return h()(t,e),t.prototype.componentDidUpdate=function(e){
e.isLibraryDeleteInProgress&&!this.props.isLibraryDeleteInProgress&&this.props.dispatchFetchLibraries()},t.prototype.render=function(){var e=this.props,t=(e.metricsPage,e.dispatchFetchLibraries,o()(e,["metricsPage","dispatchFetchLibraries"]));return v.a.createElement(T.a,t)},t}(f.Component);t.a=n.i(P.a)(a,r)(N)},function(e,t,n){"use strict";function i(e){return r()(l.a,{to:e.route,icon:"plex-icon-playlists-560",title:n.i(o.default)("Playlists"),highlightActiveRoute:!0},"playlists")}
var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(172);t.a=i},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(n.i(s.a)(),o.a,function(e,t){var i=e.entityID+"!/playlists",a=t[i],r={isLibraryProvider:!0},s=n.i(l.a)(e,r,"/playlists");return{route:a||s}})}var a=n(11),r=n(5),s=(n.n(r),n(46)),o=n(593),l=n(666),u=n(2531);t.a=n.i(a.b)(i)(u.a)},function(e,t,n){"use strict";function i(e){return l.a.EPG_IDENTIFIER.test(e)?"plex-icon-shows-broadcast-560":"plex-icon-channels-560"}
function a(e){var t=e.machineIdentifier,n=e.identifier,a=e.isLibraryProvider,r=e.title,o=e.isRefreshing;if(a)return null;var l=encodeURIComponent(t),c=encodeURIComponent(n);return s()(u.a,{to:"#!/server/"+l+"/provider/"+c,icon:i(n),title:r,showSpinner:o,highlightActiveRoute:!0})}var r=n(2),s=n.n(r),o=n(0),l=(n.n(o),n(72)),u=n(172);t.a=a},function(e,t,n){"use strict";function i(e){return o.a.createElement(p.a,e)}var a=n(3),r=n.n(a),s=n(0),o=n.n(s),l=n(11),u=n(5),c=(n.n(u),
n(136)),d=n(428),p=n(2533),h=function(){return n.i(u.createSelector)(n.i(c.a)(),n.i(d.a)(),function(e,t){var n=r.a.pick(e,"identifier","isLibraryProvider","title");return n.isRefreshing=!!t,n})};t.a=n.i(l.b)(h)(i)},function(e,t,n){"use strict";function i(e){
var t=e.serverEntityID,i=e.machineIdentifier,a=e.allowChannelAccess,s=e.isFullOwnedServer,g=e.isConnected,b=e.isClaimed,S=e.isLibrariesPopulated,I=e.librariesError,M=e.contentProviders,C=e.isProvidersPopulated,w=e.providersError,D=e.showRecordingSchedule;if(!g)return o.a.createElement(m.a,e);var P=!C&&!w,T=!S&&!I;if(P||T)return r()(c.a,{containerClassName:y.a.spinnerContainer,label:n.i(l.default)("Loading libraries")});var x=encodeURIComponent(i);return r()("div",{},void 0,s&&r()(d.a,{
title:n.i(l.default)("Manage")},void 0,r()(p.a,{to:"#!/status",icon:"plex-icon-status-560",title:n.i(l.default)("Status")},"status"),r()(p.a,{to:"#!/settings/server",icon:"plex-icon-settings-560",title:n.i(l.default)("Settings")},"settings",!b&&r()(u.a,{name:"plex-icon-alert-560",className:y.a.unclaimedIcon,"aria-label":n.i(l.default)("Unclaimed")})),D&&r()(p.a,{to:"#!/server/"+x+"/schedule",icon:"plex-icon-calendar-560",title:n.i(l.default)("Recording Schedule"),highlightActiveRoute:!0
},"schedule"),M.map(function(e){return r()(h.a,{serverEntityID:t,providerEntityID:e,machineIdentifier:i},e)})),o.a.createElement(f.a,e),r()(v.a,{machineIdentifier:i,showChannels:a}))}var a=n(2),r=n.n(a),s=n(0),o=n.n(s),l=n(4),u=n(27),c=n(38),d=n(659),p=n(172),h=n(2534),f=n(2537),v=n(2539),m=n(2541),g=n(3007),y=n.n(g);t.a=i},function(e,t,n){"use strict";function i(){return n.i(b.createSelector)(n.i(M.a)(),w.a(),w.b(),n.i(C.a)(I.a.CONTENT),n.i(C.a)(I.a.SUBSCRIBE),n.i(D.a)(),function(e,t,n,i,a,r){
var s=m.a.pick(e,"machineIdentifier","friendlyName","promiseState","presence","allowChannelAccess","isConnected","isFullServer","isFullOwnedServer","isPersonalCloudServer","isBundled","isClaimed","hasHttpsConnections","hasFallbackConnections"),o=m.a.pick(e&&e.desktop,"libraries","isLibrariesPending","isLibrariesPopulated","librariesError","isProvidersPending","isProvidersPopulated","providersError");return f()({},s,o,{contentProviders:i,showRecordingSchedule:!!a.length,isLibraryRefreshing:r,
isOptimizeDatabaseInProgress:!!t,isCleanBundlesInProgress:!!n})})}function a(e,t){var i={serverEntityID:t.serverEntityID,metricsPage:t.metricsPage};return{dispatchFetchLibraries:function(){e(T.b(i))},dispatchFetchProviders:function(){e(T.d(i))},onReloadHttpPress:function(){e(n.i(P.d)())},onReloadHttpAlwaysPress:function(){e(n.i(P.e)()),e(n.i(P.d)())},onRestartPress:function(){e(T.f(i))},onDeleteServerConfirm:function(){e(T.g(i))},onAddLibraryPress:function(){e(T.a(i))},onSharePress:function(){
e(T.h(i))},onUpdateLibrariesPress:function(){e(T.i(i))},onCancelUpdatePress:function(){e(T.j(i))},onOptimizeDatabaseConfirm:function(){e(T.k(i))},onCleanBundlesConfirm:function(){e(T.l(i))},onEmptyTrashConfirm:function(){e(T.m(i))},onTryAgainPress:function(){e(n.i(P.g)()),e(T.n(i))},onAllowFallbackPress:function(){e(T.o(i))}}}var r=n(14),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(6),f=n.n(h),v=n(3),m=n.n(v),g=n(0),y=n.n(g),b=n(5),S=(n.n(b),
n(35)),I=n(133),M=n(46),C=n(789),w=n(913),D=n(590),P=n(86),T=n(100),x=n(138),E=n(2535),N=function(e){function t(){return l()(this,t),c()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.componentDidMount=function(){this.props.isConnected&&this._populate()},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.serverEntityID,i=t.isConnected,a=n!==e.serverEntityID,r=i!==e.isConnected;i&&(a||r)&&this._populate()},t.prototype._populate=function(){var e=this;n.i(S.a)(function(){
e.props.dispatchFetchLibraries(),e.props.dispatchFetchProviders()})},t.prototype.render=function(){var e=this.props,t=(e.metricsPage,e.dispatchFetchLibraries,e.dispatchFetchProviders,s()(e,["metricsPage","dispatchFetchLibraries","dispatchFetchProviders"]));return y.a.createElement(E.a,t)},t}(g.Component);t.a=n.i(x.a)(i,a)(N)},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(2),s=n.n(r),o=n(14),l=n.n(o),u=n(7),c=n.n(u),d=n(9),p=n.n(d),h=n(8),f=n.n(h),v=n(0),m=n.n(v),g=n(4),y=n(1048),b=n(255),S=n(172),I=n(2526),M=n(2532),C=n(2530),w=n(3008),D=n.n(w),P=function(e){function t(){return c()(this,t),p()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.render=function(){
var e=this.props,t=e.hoverableProps,i=e.serverEntityID,r=e.isFullServer,o=e.isFullOwnedServer,u=e.isHovered,c=e.libraries,d=e.librariesError,p=e.onAddLibraryPress,h=l()(e,["hoverableProps","serverEntityID","isFullServer","isFullOwnedServer","isHovered","libraries","librariesError","onAddLibraryPress"]),f=!!d&&!c.length,v=o&&!c.length;return m.a.createElement("div",a()({role:"navigation","data-qa-id":"sidebarLibrariesList"},t),s()("div",{className:D.a.librariesListHeader,role:"header"
},void 0,s()("div",{className:D.a.librariesTitle},void 0,n.i(g.default)("Libraries")),o&&m.a.createElement(I.a,a()({isHovered:u,onAddLibraryPress:p},h))),r&&s()(M.a,{serverEntityID:i}),v&&s()(S.a,{icon:"plex-icon-add-560",title:n.i(g.default)("Add Library"),onPress:p},"addLibrary"),f?s()(b.a,{message:n.i(g.default)("There was an unexpected error loading libraries.")}):c.map(function(e){return s()(C.a,{serverEntityID:i,libraryEntityID:e},e)}))},t}(v.Component);t.a=n.i(y.a)(P)},function(e,t,n){
"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(440),f=n(659),v=n(172),m=function(e){function t(){return s()(this,t),l()(this,e.apply(this,arguments))}return c()(t,e),t.prototype.render=function(){var e=this.props,t=e.machineIdentifier,i=e.showChannels,r=e.isUserRestricted,s=e.unwatchedWatchLaterCount,o=e.unwatchedRecommendedCount,l=!r,u=encodeURIComponent(t);return i||l?a()(f.a,{title:n.i(p.default)("Online Content")
},void 0,i&&a()(v.a,{to:"#!/server/"+u+"/channels",icon:"plex-icon-channels-560",title:n.i(p.default)("Channels")},"channels"),l&&a()(v.a,{to:"#!/playlist/queue",icon:"plex-icon-watch-later-560",title:n.i(p.default)("Watch Later")},"watchLater",a()(h.a,{},void 0,s)),l&&a()(v.a,{to:"#!/playlist/recommendations",icon:"plex-icon-recommended-560",title:n.i(p.default)("Recommended")},"recommended",a()(h.a,{},void 0,o))):null},t}(d.Component);t.a=m},function(e,t,n){"use strict"
;var i=n(7),a=n.n(i),r=n(9),s=n.n(r),o=n(8),l=n.n(o),u=n(0),c=n.n(u),d=n(11),p=n(5),h=(n.n(p),n(35)),f=n(151),v=n(426),m=n(2538),g=n.i(p.createSelector)(f.a,function(e){var t=e.desktop;return{isSignedIn:e.isSignedIn,isUserRestricted:!!e.restricted,unwatchedWatchLaterCount:t.unwatchedWatchLaterList.totalSize,unwatchedRecommendedCount:t.unwatchedRecommendedList.totalSize}}),y={repopulateUnwatchedWatchLaterList:v.b,repopulateUnwatchedRecommendedList:v.c},b=function(e){function t(){
return a()(this,t),s()(this,e.apply(this,arguments))}return l()(t,e),t.prototype.componentWillMount=function(){this._populate()},t.prototype.componentWillReceiveProps=function(e){e.isSignedIn!==this.props.isSignedIn&&this._populate(e)},t.prototype._populate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;e.isSignedIn&&!e.isUserRestricted&&n.i(h.a)(function(){e.repopulateUnwatchedWatchLaterList(),e.repopulateUnwatchedRecommendedList()})},
t.prototype.render=function(){return c.a.createElement(m.a,this.props)},t}(u.Component);t.a=n.i(d.b)(function(e){return g(e)},y)(b)},function(e,t,n){"use strict";var i=n(2),a=n.n(i),r=n(7),s=n.n(r),o=n(9),l=n.n(o),u=n(8),c=n.n(u),d=n(0),p=(n.n(d),n(4)),h=n(34),f=n(26),v=n(20),m=n(127),g=n(172),y=n(255),b=n(1100),S=n.n(b),I=function(e){function t(n,i){s()(this,t);var a=l()(this,e.call(this,n,i));return a.onRemoveServerPress=function(e){a.setState({isRemoveModalOpen:!0})},
a.onRemoveConfirm=function(){a.setState({isRemoveModalOpen:!1}),a.props.onDeleteServerConfirm(a.props.machineIdentifier)},a.onRemoveCancel=function(){a.setState({isRemoveModalOpen:!1})},a.state={isRemoveModalOpen:!1},a}return c()(t,e),t.prototype.shouldComponentUpdate=function(e,t){return n.i(f.a)(this,e,t)},t.prototype.render=function(){
var e=this.props,t=e.friendlyName,i=e.presence,r=e.isPending,s=e.isBundled,o=e.isFallbackPossible,l=e.isCloudServerConnected,u=e.isCloudServerResourcesPending,c=e.isFullServer,d=e.isFullOwnedServer,f=e.isPersonalCloudServer,b=e.hasHttpsConnections,I=e.hasFallbackConnections,M=e.isPersonalCloudServerRestarting,C=e.onTryAgainPress,w=e.onReloadHttpPress,D=e.onReloadHttpAlwaysPress,P=e.onRestartPress,T=e.onAllowFallbackPress,x=c&&i,E=b&&!I,N=void 0,L=void 0,A=void 0,k=void 0,_=void 0,O=void 0,j=void 0
;f?(N=!1,L=!1,A=!1,k=!1,_=l,O=!1,j=n.i(p.default)("Plex Cloud is unreachable. Make sure you're connected to the internet and try again. If you're still having trouble, you can restart your Plex Cloud server below.")):(N=!o&&x,L=o&&x&&E,A=N||L,k=!A,_=!1,O=d&&!s,j=A?n.i(p.default)('Unable to connect to "{serverName}" securely.',{serverName:t}):n.i(p.default)('The server "{serverName}" is unreachable. Make sure it\'s running, double check your network, and try again.',{serverName:t}))
;var R=u||r,U=R?n.i(p.default)("Connecting"):n.i(p.default)("Try again");return a()(y.a,{message:j},void 0,a()(g.a,{icon:"plex-icon-reload-560",title:U,showSpinner:R,isDisabled:R,onPress:C}),N&&a()("p",{className:S.a.sidebarMessage},void 0,n.i(p.default)("Do you want to allow insecure connections?")),N&&a()(g.a,{icon:"plex-icon-unlock-560",title:n.i(p.default)("Allow once"),onPress:w}),N&&a()(g.a,{icon:"plex-icon-unlock-560",title:n.i(p.default)("Allow always"),onPress:D}),_&&a()(g.a,{
icon:"plex-icon-personal-cloud-560",title:n.i(p.default)("Restart Cloud Server"),showSpinner:M,isDisabled:M,onPress:P}),L&&a()(g.a,{icon:"plex-icon-unlock-560",title:n.i(p.default)("Allow insecure connection"),onPress:T}),A&&a()(g.a,{to:"https://support.plex.tv/hc/en-us/articles/206225077",target:"_blank",icon:"plex-icon-help-560",title:n.i(p.default)("Learn more")}),k&&a()(g.a,{to:"https://help.plex.tv/noserver",target:"_blank",icon:"plex-icon-help-560",
title:n.i(p.default)("Where is my server?")}),O&&a()(g.a,{icon:"plex-icon-remove-560",title:n.i(p.default)("Remove server"),onPress:this.onRemoveServerPress}),O&&a()(m.a,{isOpen:this.state.isRemoveModalOpen,metricsPage:h.l,kind:v.b.DANGER,title:n.i(p.default)("Remove {serverName}",{serverName:t}),message:n.i(p.default)("If this server is restarted, it will automatically be added to your account again.",t),confirmLabel:n.i(p.default)("Remove"),onConfirm:this.onRemoveConfirm,
onCancel:this.onRemoveCancel}))},t}(d.Component);t.a=I},function(e,t,n){"use strict";function i(){return n.i(r.createSelector)(l.a,function(e){return e?{isFallbackPossible:!s.a.isHostedHttps||o.a.get("allowMixedContent"),isCloudServerConnected:e.isConnected,isCloudServerResourcesPending:e.isResourcesPending,isPersonalCloudServerRestarting:e.desktop.isPersonalCloudServerRestarting}:{isCloudServerConnected:!1}})}var a=n(11),r=n(5),s=(n.n(r),n(80)),o=n(61),l=n(402),u=n(2540);t.a=n.i(a.b)(i)(u.a)
},function(e,t,n){"use strict";function i(e){var t=e.selectedKey,i=e.isPlexCloudVisible,a=e.isWebhooksVisible,s=e.isUserUnrestricted,p=e.myPlexUrl,f=e.title;return r()(u.a,{className:h.a.container,autoScroll:!0},void 0,r()(c.a,{title:f},void 0,r()(d.a,{selectableKey:"account",selectedKey:t,to:"#!/account",title:n.i(o.default)("Account")}),s&&r()(d.a,{to:n.i(l.join)([p,"/subscription"]),title:n.i(o.default)("Subscriptions")}),s&&r()(d.a,{to:n.i(l.join)([p,"/users/payments"]),
title:n.i(o.default)("Payments")}),i&&s&&r()(d.a,{selectableKey:"plex-cloud",selectedKey:t,to:"#!/account/plex-cloud",title:n.i(o.default)("Plex Cloud")}),s&&r()(d.a,{to:n.i(l.join)([p,"/cloudsync/providers"]),title:n.i(o.default)("Cloud Sync")}),r()(d.a,{selectableKey:"audio-subtitle-settings",selectedKey:t,to:"#!/account/audio-subtitle",title:n.i(o.default)("Audio & Subtitle Settings")}),s&&r()(d.a,{to:"#!/settings/devices",title:n.i(o.default)("Authorized Devices")}),a&&s&&r()(d.a,{
selectableKey:"webhooks",selectedKey:t,to:"#!/account/webhooks",title:n.i(o.default)("Webhooks")}),s&&r()(d.a,{to:n.i(l.join)([p,"/users/other-services"]),title:n.i(o.default)("Other Services")})),s&&r()(c.a,{title:n.i(o.default)("Family & Friends")},void 0,r()(d.a,{to:"#!/settings/users",title:n.i(o.default)("Plex Home")}),r()(d.a,{to:"#!/settings/users/friends",title:n.i(o.default)("Sharing")})))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(19),u=n(67),c=n(659),d=n(2543),p=n(3009),h=n.n(p)
;t.a=i},function(e,t,n){"use strict";function i(e){var t=e.children,n=e.selectableKey,i=e.selectedKey,a=e.to,s=e.title,l=i&&i===n,u=/^#/.test(a)?null:"_self";return r()(o.a,{target:u,to:a,icon:"plex-icon-settings-560",title:s,isSelected:l},n,t)}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(172));t.a=i},function(e,t,n){"use strict";function i(e){var t=e.isChoosingProvider,i=e.isOpen,a=e.metricsProperties,s=e.onClose,b=e.onInterested,I=e.onNotInterested;return r()(h.a,{size:c.LARGE,isOpen:i,
metricsPage:l.O,metricsProperties:a,onModalClose:s},void 0,r()(f.a,{onModalClose:s},void 0,r()(v.a,{className:C.a.header},void 0,r()("div",{className:C.a.personalCloudServerTitle},void 0,n.i(o.default)("Plex Cloud")),n.i(o.default)("Your very own Plex Media Server in the cloud. No computer required.")),!t&&r()(m.a,{innerClassName:C.a.innerModalBody},void 0,r()("div",{className:C.a.upsell},void 0,r()("img",{className:C.a.upsellImage,src:S.a}),r()("div",{className:C.a.upsellText
},void 0,r()("p",{},void 0,n.i(o.default)("Thanks for participating in the Plex Cloud beta! There are just a few quick steps between here and your very own Plex Media Server in the sky.")),r()("ul",{},void 0,r()("li",{className:C.a.upsellPoint},void 0,n.i(o.default)("First, we\u2019ll link your cloud storage to your Plex account. Choose from popular providers like Dropbox and Google Drive.")),r()("li",{className:C.a.upsellPoint
},void 0,n.i(o.default)("Next, we\u2019ll create your Plex Cloud. This may take a minute or two.")),r()("li",{className:C.a.upsellPoint},void 0,n.i(o.default)("Finally, add your media to your cloud storage and scan it in! Plex Cloud works just like a regular Media Server. Choose it from the location menu in your favorite Plex app and stream away!"))))),r()(p.a,{component:"div",className:C.a.findOutMore,to:"#!/account/plex-cloud",onPress:s
},void 0,n.i(o.default)("Find more Plex Cloud settings or add additional storage providers"))),!t&&r()(g.a,{className:C.a.footer},void 0,r()(p.a,{kind:u.PRIMARY,onPress:I},void 0,n.i(o.default)("No thanks, not interested")),r()(y.a,{},void 0,r()(d.a,{kind:u.PRIMARY,size:c.LARGE,onPress:b},void 0,n.i(o.default)("Let's do this!")))),t&&w))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),
n(4)),l=n(34),u=n(74),c=n(91),d=n(47),p=n(23),h=n(128),f=n(94),v=n(102),m=n(69),g=n(117),y=n(95),b=n(3490),S=n.n(b),I=n(2337),M=n(3010),C=n.n(M),w=r()(I.a,{});t.a=i},function(e,t,n){"use strict";function i(e){return{isOpen:e.ui.provisionPersonalCloudServerPage.isPersonalCloudServerModalOpen}}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(7),u=n.n(l),c=n(9),d=n.n(c),p=n(8),h=n.n(p),f=n(0),v=n.n(f),m=n(11),g=n(289),y=n(291),b=n(2544),S={dispatchFetchOauthProviders:g.a,
dispatchShowProvisionPersonalCloudServerModal:y.a,dispatchIndicateInterestInPersonalCloudServer:y.f},I=function(e){function t(n,i){u()(this,t);var a=d()(this,e.call(this,n,i));return a.onClose=function(){a.setState({isChoosingProvider:!1}),a.props.dispatchShowProvisionPersonalCloudServerModal({open:!1})},a.onNotInterested=function(){a.props.dispatchIndicateInterestInPersonalCloudServer({interested:!1}),a.onClose()},a.onInterested=function(){a.setState({isChoosingProvider:!0})},a.state={
isChoosingProvider:!1},a}return h()(t,e),t.prototype.componentWillReceiveProps=function(e){e.isOpen&&!this.props.isOpen&&(this.setState({isChoosingProvider:!1}),this.props.dispatchFetchOauthProviders())},t.prototype.render=function(){var e=this.props,t=(e.dispatchFetchOauthProviders,e.dispatchShowProvisionPersonalCloudServerModal,e.dispatchIndicateInterestInPersonalCloudServer,
o()(e,["dispatchFetchOauthProviders","dispatchShowProvisionPersonalCloudServerModal","dispatchIndicateInterestInPersonalCloudServer"]));return v.a.createElement(b.a,r()({},t,{isChoosingProvider:this.state.isChoosingProvider,onClose:this.onClose,onInterested:this.onInterested,onNotInterested:this.onNotInterested}))},t}(f.Component);t.a=n.i(m.b)(i,S)(I)},function(e,t,n){"use strict";function i(e){var t=e.isOpen,i=e.metricsProperties,a=e.onModalClose;return r()(d.a,{size:u.d.LARGE,isOpen:t,
metricsPage:l.F,metricsProperties:i,onModalClose:a},void 0,r()(p.a,{onModalClose:a},void 0,r()(h.a,{className:P.a.header},void 0,r()("div",{className:P.a.plexPassTitle},void 0,n.i(o.default)("Plex Pass Lite")),n.i(o.default)("Congratulations! You qualify for a free year of Plex Pass Lite!")),r()(f.a,{innerClassName:P.a.body},void 0,r()(m.a,{img:y.a,title:n.i(o.default)("Mobile Sync"),description:n.i(o.default)("Enjoy your media offline on Android, iOS, and Windows devices")}),r()(m.a,{img:S.a,
title:n.i(o.default)("Camera Upload"),description:n.i(o.default)("Sync photos from your mobile devices to Plex Media Server")}),r()(m.a,{img:M.a,title:n.i(o.default)("Cloud Sync"),description:n.i(o.default)("Sync media to the cloud and enjoy it anywhere there\u2019s internet")}),r()(m.a,{img:w.a,title:n.i(o.default)("Plex Home"),description:n.i(o.default)("Parental controls and fast user switching")})),r()(v.a,{className:P.a.footer},void 0,r()(c.a,{kind:u.b.PRIMARY,size:u.d.LARGE,onPress:a
},void 0,n.i(o.default)("Hooray, thanks!")))))}var a=n(2),r=n.n(a),s=n(0),o=(n.n(s),n(4)),l=n(34),u=n(20),c=n(47),d=n(128),p=n(94),h=n(102),f=n(69),v=n(117),m=n(1047),g=n(1180),y=n.n(g),b=n(1178),S=n.n(b),I=n(1179),M=n.n(I),C=n(3493),w=n.n(C),D=n(3012),P=n.n(D);t.a=i},function(e,t,n){"use strict"
;var i=n(6),a=n.n(i),r=n(2),s=n.n(r),o=n(7),l=n.n(o),u=n(9),c=n.n(u),d=n(8),p=n.n(d),h=n(0),f=n.n(h),v=n(4),m=n(19),g=n(64),y=n(20),b=n(26),S=n(420),I=n(38),M=n(23),C=n(47),w=n(94),D=n(102),P=n(69),T=n(117),x=n(1047),E=n(1180),N=n.n(E),L=n(3491),A=n.n(L),k=n(3494),_=n.n(k),O=n(1178),j=n.n(O),R=n(1179),U=n.n(R),z=n(3492),B=n.n(z),F=n(3013),V=n.n(F),Q=s()(I.a,{}),H=function(e){function t(){return l()(this,t),c()(this,e.apply(this,arguments))}return p()(t,e),
t.prototype.shouldComponentUpdate=function(e,t){return n.i(b.a)(this,e,t)},t.prototype.render=function(){var e=this.props,t=e.metricsProperties,i=e.subscribeUrl,r=e.infoUrl,o=e.giftUrl,l=e.plans,u=e.isPlansPending,c=e.isPlansPopulated,d=e.plansError,p=e.onModalClose;return s()(w.a,{onModalClose:p},void 0,s()(D.a,{className:V.a.header},void 0,s()("div",{className:V.a.plexPassTitle
},void 0,n.i(v.default)("Plex Pass")),n.i(v.default)("Enhance your Plex experience with exclusive premium features")),s()(P.a,{innerClassName:V.a.body},void 0,s()(x.a,{img:N.a,title:n.i(v.default)("Mobile Sync"),description:n.i(v.default)("Enjoy your media offline on Android, iOS, and Windows devices")}),s()(x.a,{img:A.a,title:n.i(v.default)("Exclusive Forum Access"),description:n.i(v.default)("Let your voice be heard in special members-only forums")}),s()(x.a,{img:_.a,
title:n.i(v.default)("Trailers & Extras"),description:n.i(v.default)("See movie trailers, cast interviews, and other bonus features")}),s()(x.a,{img:j.a,title:n.i(v.default)("Camera Upload"),description:n.i(v.default)("Sync photos from your mobile devices to Plex Media Server")}),s()(x.a,{img:U.a,title:n.i(v.default)("Cloud Sync"),description:n.i(v.default)("Sync media to the cloud and enjoy it anywhere there\u2019s internet")}),s()(x.a,{img:B.a,title:n.i(v.default)("Gracenote Music Magic"),
description:n.i(v.default)("Song identification, album reviews, artist bios, and Plex Mix playlists")}),s()("div",{className:V.a.moreFeatures},void 0,s()(M.a,{className:V.a.link,to:r,target:"_self"},void 0,n.i(v.default)("...plus more exclusive features!")))),s()(T.a,{className:V.a.footer},void 0,u&&s()("div",{className:V.a.spinnerContainer},void 0,Q),s()("div",{className:(V.a.plansContainer||"")+" "+(u&&V.a.isPlansPending||"")},void 0,!u&&c&&l.map(function(e){return f.a.createElement(S.a,a()({
key:e.id},t,{action:g.b,plan:e.id}),s()(C.a,{className:V.a.planButton,to:m.join(i,{plan:e.id,continue:window.location.href}),target:"_self",kind:y.b.PRIMARY,size:y.d.LARGE},void 0,e.formattedPrice," \u2014 ",e.name))}),!u&&d&&f.a.createElement(S.a,a()({},t,{action:g.b,plan:"unknown"}),s()(C.a,{className:V.a.planButton,to:i,target:"_self",kind:y.b.PRIMARY,size:y.d.LARGE},void 0,n.i(v.default)("Subscribe")))),s()("div",{},void 0,n.i(v.default)("Subscribe today"),s()("span",{
className:V.a.linkSeparator},void 0,"\u2014"),f.a.createElement(S.a,a()({},t,{action:g.c}),s()(M.a,{className:V.a.link,to:o,target:"_self"},void 0,n.i(v.default)("or give Plex Pass as a gift!"))))))},t}(h.Component);t.a=H},function(e,t,n){"use strict";var i=n(7),a=n.n(i),r=n(9),s=n.n(r),o=n(8),l=n.n(o),u=n(0),c=n.n(u),d=n(11),p=n(5),h=(n.n(p),n(19)),f=n(151),v=n(426),m=n(2547),g=n.i(p.createSelector)(f.a,function(e){var t=e.desktop;return{isSignedIn:e.isSignedIn,plans:t.plans,
isPlansPending:t.isPlansPending,isPlansPopulated:t.isPlansPopulated,plansError:t.plansError,subscribeUrl:h.join(["https://plex.tv","subscription/new"]),infoUrl:h.join(["https://plex.tv","subscription/about"]),giftUrl:h.join(["https://plex.tv","gifts"])}}),y=function(e){function t(){return a()(this,t),s()(this,e.apply(this,arguments))}return l()(t,e),t.prototype.componentWillMount=function(){this.props.isSignedIn&&this.props.fetchPlans()},t.prototype.componentWillReceiveProps=function(e){
e.isSignedIn&&e.isSignedIn!==this.props.isSignedIn&&e.fetchPlans()},t.prototype.render=function(){return c.a.createElement(m.a,this.props)},t}(u.Component);t.a=n.i(d.b)(function(e){return g(e)},{fetchPlans:v.a})(y)},function(e,t,n){"use strict";function i(e){var t=e.width,n=e.height,i=e.pixels,a=t*n,r=Math.sqrt(Math.max(a/i,1));return{width:t/r,height:n/r}}t.a=i},function(e,t,n){"use strict";function i(e){if(e===document)return!0;if(!e)return!1;if(!e.parentNode)return!1;if(e.style){var t=e.style
;if("none"===t.display||"hidden"===t.visibility)return!1}if(window.getComputedStyle){var n=window.getComputedStyle(e);if("none"===n.getPropertyValue("display")||"hidden"===n.getPropertyValue("visibility"))return!1}return i(e.parentNode)}function a(e){var t=e.tabIndex;return null===t&&(t=void 0),!isNaN(t)&&t>=0&&r(e)}function r(e){if(!i(e))return!1;var t=e.nodeName.toLowerCase();return/input|select|textarea|button|object/.test(t)?!e.disabled:"a"!==t||e.href}function s(e){if(!e)return[]
;var t=[].slice.call(e.getElementsByTagName("*"),0).filter(function(e){return a(e)});return l.a.sortBy(t,function(e){return 0===e.tabIndex?1/0:e.tabIndex})}var o=n(3),l=n.n(o);t.a=s},function(e,t,n){"use strict";function i(e,t){var n=e.x,i=e.y,a="translate3d("+n+"px, "+i+"px, 0)";return{WebkitTransform:a,msTransform:a,transform:a,width:t+"px"}}t.a=i},function(e,t,n){"use strict";function i(e,t){var i={},s={};return e.reduce(function(e,o){
var l=o.index,u=o.position,c=n.i(a.default)(1e3*t[l],"YYYY MM"),d=c.slice(0,4);return i[d]?s[c]||(s[c]=!0,e.push({position:u,type:r.b})):(i[d]=!0,s[c]=!0,e.push({position:u,type:r.a,label:d})),e},[])}var a=n(204),r=n(1062);t.a=i},function(e,t,n){"use strict";function i(e){function t(e,t){return Math.max(1,Math.round(e/p))*t+(y+S)}function i(e){var n=e.viewportHeight+":"+e.viewportWidth;if(n===_)return O;E=e.viewportHeight,N=e.viewportWidth-(x+w);var i=N/p;L=f.map(function(e){return t(e,i)}),k=[]
;var a=M;return L.forEach(function(e){k.push(a),a+=e}),A=L.reduce(function(e,t){return e+t},M+P),_=n,O={height:A,width:N}}function a(){n.i(s.a)(void 0!==E,"`getListStyle` must be called before `getLandmarks`");var e=E+":"+A;return e===j?R:(j=e,R=k.map(function(e,t){return{index:t,position:e/A}}))}function o(e){return n.i(s.a)(void 0!==E,"`getListStyle` must be called before `getPositionForIndex`"),{cellX:x,cellY:k[e],cellWidth:N,cellHeight:L[e]}}function l(){
n.i(s.a)(!1,"Stacked layouts do not support relative indexing")}function u(e){var t=r.a.findIndex(k,function(t){return t>e}),n=k.length-1;return t===-1?n:Math.min(Math.max(0,t-1),n)}function c(e){n.i(s.a)(void 0!==E,"`getListStyle` must be called before `getPositionForIndex`");var t=e+E-1,i=u(e-m*E),a=u(e),r=u(t);return{renderStartIndex:i,renderEndIndex:u(t+m*E),visibleStartIndex:a,visibleEndIndex:r,partiallyVisibleStartIndex:a,partiallyVisibleEndIndex:r}}
var d=e.columns,p=void 0===d?1:d,h=e.areas,f=void 0===h?[]:h,v=e.overscan,m=void 0===v?0:v,g=e.innerPaddingTop,y=void 0===g?0:g,b=e.innerPaddingBottom,S=void 0===b?0:b,I=e.outerPaddingTop,M=void 0===I?0:I,C=e.outerPaddingRight,w=void 0===C?0:C,D=e.outerPaddingBottom,P=void 0===D?0:D,T=e.outerPaddingLeft,x=void 0===T?0:T,E=void 0,N=void 0,L=[],A=void 0,k=[],_=void 0,O=void 0,j=void 0,R=void 0;return{getListStyle:i,getLandmarks:a,getPositionForIndex:o,getRelativeIndex:l,getRangesForPosition:c}}
var a=n(3),r=n.n(a),s=n(31);t.a=i},function(e,t,n){"use strict";function i(e){var t=e.items,n=e.gap,i=void 0===n?0:n,a=e.existingItems,s=void 0===a?[]:a,o=r.a.sortBy(s,"position"),l=r.a.sortBy(t,"position"),u=-(1/0);return l.forEach(function(e){var t=r.a.sortedIndex(s,e,"position"),n=s[t-1],a=s[t],l=e.position>u+i,c=!n||e.position>n.position+i,d=!a||e.position<a.position-i;l&&c&&d&&(o.push(e),u=e.position)}),r.a.sortBy(o,"position")}var a=n(3),r=n.n(a);t.a=i},function(e,t,n){"use strict"
;function i(e){var t=e.index,n=e.length,i=e.renderableWindow,a=void 0===i?n:i,r=e.cellPadding,s=void 0===r?0:r,o=e.cellWidth,l=e.width,u=l/2,c=o/2,d=n*o+(n-1)*s,p=t*(o+s)-(u-c);d>l&&(p=Math.min(Math.max(p,0),d-l));for(var h=[],f=Math.max(0,t-a),v=Math.min(n-1,t+a),m=f;m<=v;m++)h[m]=m*(o+s)-p;return{renderStartIndex:f,renderEndIndex:v,positions:h}}t.a=i},function(e,t,n){"use strict";var i=n(466),a=n(57),r=n.n(a),s=parseInt(r.a.playQueueItemHeight,10),o=n.i(i.a)(s);t.a=o},function(e,t,n){
"use strict";function i(e,t,i,a){return n.i(f.a)(e,t,i,a)}function a(e,t,n,a){return i(e,t,n,a)&&!!t.features.playqueue}function r(e,t,n,a){return i(e,t,n,a)}function s(e,t,n,i){return o(e,t,n,i)}function o(e,t,n,i){return!(!e.isFullServer||!i.isFirstItemLibraryItem)}function l(e,t,n,i){return!!(e.isFullServer&&e.allowSync&&i.isFirstItemLibraryItem&&i.allowSync)}function u(e,t,n,i){return!(!e.isFullOwnedServer||!e.transcoderVideo||!i.isFirstItemLibraryItem)}function c(e,t,i,a,r){
var s=r||a.firstItemType||"mixed",o=m[s];return n.i(h.a)(p.a.isArray(o),"getMetadataListActionProps: Invalid type, "+s+", provided"),o.reduce(function(r,o){var l=v[o];return n.i(h.a)(p.a.isFunction(l),"getMetadataListActionProps: Invalid action, "+o+", for "+s),r[o]=l(e,t,i,a),r},{})}var d=n(3),p=n.n(d),h=n(31),f=n(838);t.a=c;var v={showPlayAll:i,showShuffle:a,showQueue:r,showAddToAlbum:s,showAddToPlaylist:o,showSync:l,showOptimize:u},m={mixed:[],
movie:["showPlayAll","showShuffle","showQueue","showAddToPlaylist","showSync","showOptimize"],show:["showPlayAll","showShuffle","showQueue","showAddToPlaylist","showSync","showOptimize"],season:["showPlayAll","showShuffle","showQueue","showAddToPlaylist","showSync","showOptimize"],episode:["showPlayAll","showShuffle","showQueue","showAddToPlaylist","showSync","showOptimize"],artist:["showPlayAll","showShuffle","showQueue","showAddToPlaylist","showSync"],
album:["showPlayAll","showShuffle","showQueue","showAddToPlaylist","showSync"],track:["showPlayAll","showShuffle","showQueue","showAddToPlaylist","showSync"],photoalbum:["showPlayAll","showShuffle","showAddToAlbum","showSync"],photo:["showPlayAll","showShuffle","showAddToAlbum","showSync"],clip:["showPlayAll","showShuffle","showAddToPlaylist","showSync","showOptimize"]}},function(e,t,n){"use strict";function i(e){switch(e.split(":")[0]){case"addedAt":return a.a;case"duration":return s.a
;case"lastViewedAt":return o.a;case"originallyAvailableAt":return l.a;case"rating":return r.a;case"userRating":return u.a}}var a=n(2146),r=n(624),s=n(976),o=n(978),l=n(982),u=n(374);t.a=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"CALENDAR",function(){return i}),n.d(t,"AGENDA",function(){return a}),n.d(t,"all",function(){return r});var i="calendar",a="agenda",r=[i,a]},function(e,t,n){"use strict";function i(e){return e.map(function(e){
return e.model.type})}function a(e,t,i,a){return b.a.every(a.map(function(a){var r=a.model;return n.i(I.a)(e,t,i,r)}))}function r(e,t,i,a){return b.a.every(a.map(function(a){var r=a.model;return n.i(I.e)(e,t,i,r)}))}function s(e,t,i,a){return b.a.every(a.map(function(a){var r=a.model;return n.i(I.f)(e,t,i,r)}))}function o(e,t,i,a){return b.a.every(a.map(function(a){var r=a.model;return n.i(I.g)(e,t,i,r)}))}function l(e,t,i,a){return b.a.some(a.map(function(a){var r=a.model
;return n.i(I.h)(e,t,i,r)}))}function u(e,t,i,a){return b.a.some(a.map(function(a){var r=a.model;return n.i(I.i)(e,t,i,r)}))}function c(e,t,a,r){var s=i(r);return!(b.a.uniq(s).length>1)&&b.a.every(r.map(function(i){var r=i.model;return n.i(I.b)(e,t,a,r)}))}function d(e,t,i,a){return b.a.every(a.map(function(a){var r=a.model;return n.i(I.j)(e,t,i,r)}))}function p(e,t,i,a){return b.a.every(a.map(function(a){var r=a.model;return n.i(I.k)(e,t,i,r)}))}function h(e,t,n,a){if(!c(e,t,n,a))return!1
;var r=i(a);return 1!==r.length&&(!(b.a.uniq(r).length>1)&&b.a.every(r,function(e){return w.indexOf(e)!==-1}))}function f(e,t,i,a){return b.a.every(a.map(function(a){var r=a.model;return n.i(I.l)(e,t,i,r)}))}function v(e,t,i,a){return b.a.every(a.map(function(a){var r=a.model;return n.i(I.m)(e,t,i,r)}))}function m(e,t,i,a){return b.a.every(a.map(function(a){var r=a.model;return n.i(I.n)(e,t,i,r)}))}function g(e,t,i,a,r){var s=C[r]
;return n.i(S.a)(b.a.isArray(s),"getMultiSelectActionProps: Invalid type, "+r+", provided"),s.reduce(function(s,o){var l=M[o];return n.i(S.a)(b.a.isFunction(l),"getMultiSelectActionProps: Invalid action, "+o+", for "+r),s[o]=l(e,t,i,a),s},{})}var y=n(3),b=n.n(y),S=n(31),I=n(220);t.a=g;var M={showPlay:a,showShuffle:a,showQueue:r,showAddToAlbum:s,showAddToPlaylist:o,showMarkWatched:l,showMarkUnwatched:u,showEdit:c,showRefresh:d,showAnalyze:p,showMerge:h,showSync:f,showOptimize:v,showDelete:m},C={
video:["showPlay","showShuffle","showQueue","showAddToPlaylist","showMarkWatched","showMarkUnwatched","showEdit","showRefresh","showAnalyze","showMerge","showSync","showOptimize","showDelete"],audio:["showPlay","showShuffle","showQueue","showAddToPlaylist","showEdit","showRefresh","showAnalyze","showMerge","showSync","showOptimize","showDelete"],photo:["showPlay","showShuffle","showAddToAlbum","showEdit","showAnalyze","showSync","showOptimize","showDelete"],playlist:["showDelete"]
},w=["movie","show","season","artist","album"]},function(e,t){e.exports={defaultFontFamily:'"Open Sans Semibold", "Helvetica Neue", Helvetica, Arial, sans-serif',boldFontFamily:'"Open Sans Bold", "Helvetica Neue", Helvetica, Arial, sans-serif',smallFontSize:"12px",defaultFontSize:"13px",defaultIconFontSize:"14px",largeFontSize:"15px",headerFontSize:"24px",lineHeightComputed:"1.71428571"}},function(e,t,n){"use strict"
;var i=n(13),a=n(1541),r=n(107),s=n(267),o=n(1201),l=n(1202),u=n(331),c=n(1542),d=n(731),p=n(1538),h=n(391),f=n(1545),v=n(1546),m=n(1544),g=n(2565),y=n(501),b=n(1195),S={registerAll:function(){var e=c.a.init();e.done(function(e){return u.a.register(e)});var t=new o.a;return r.a.register(t),s.a.register(new l.a),d.a.register(new p.a),h.a.register(f.a),i.c({getDecisionOptions:v.a,mediaComponent:m.a,fullscreenManager:n.i(g.a)()}),y.a.register(new b.a),a.a.registerAll(),e}};t.a=S},function(e,t,n){
"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={allowFlash:!0,allowServerUpdates:!0,allowHttpsMediaServerConnections:!0,allowMediaServerRelayConnections:!0,allowCloudSyncServers:!0,shouldCreateFlexModels:!0,shouldCreateStateTree:!0,allowCloudPubSub:!0,allowLoopbackDiscovery:"http:"===window.location.protocol,allowSSO:!1};t.default=i},function(e,t,n){"use strict";function i(){return n.i(a.a)().then(function(){return r.a.registerAll()})}var a=n(1614),r=n(2562);t.a=i
},function(e,t,n){"use strict";function i(){function e(){return!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)}function t(){for(var t=0;t<r.length;t++)r[t](e())}var n=document.documentElement,i=n.requestFullScreen||n.webkitRequestFullScreen||n.mozRequestFullScreen||n.msRequestFullscreen,a=document.cancelFullScreen||document.webkitCancelFullScreen||document.mozCancelFullScreen||document.msExitFullscreen,r=[]
;return document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t),{subscribe:function(e){var t=!0;return r.push(e),function(){if(t){t=!1;var n=r.indexOf(e);r.splice(n,1)}}},hasFullscreen:!!i,isFullscreen:e,enter:function(){i&&i.call(n)},exit:function(){a&&a.call(document)}}}t.a=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{
value:!0});var i=n(1185);n.n(i);n(1184).a.start()},function(e,t,n){"use strict";function i(e){var t=e.className,n=o()(e,["className"]);return u.a.createElement(p.a,r()({className:t,kind:c.PRIMARY,size:d.LARGE},n))}var a=n(6),r=n.n(a),s=n(14),o=n.n(s),l=n(0),u=n.n(l),c=n(74),d=n(91),p=n(92),h=n(3015),f=n.n(h);i.defaultProps={className:f.a.button},t.a=i},function(e,t,n){e.exports={default:n(2581),__esModule:!0}},function(e,t,n){e.exports={default:n(2582),__esModule:!0}},function(e,t,n){e.exports={
default:n(2583),__esModule:!0}},function(e,t,n){e.exports={default:n(2584),__esModule:!0}},function(e,t,n){e.exports={default:n(2585),__esModule:!0}},function(e,t,n){e.exports={default:n(2587),__esModule:!0}},function(e,t,n){e.exports={default:n(2588),__esModule:!0}},function(e,t,n){e.exports={default:n(2590),__esModule:!0}},function(e,t,n){e.exports={default:n(2591),__esModule:!0}},function(e,t,n){e.exports={default:n(2593),__esModule:!0}},function(e,t){e.exports=function(){
for(var e=arguments.length,t=[],n=0;n<e;n++)t[n]=arguments[n];if(t=t.filter(function(e){return null!=e}),0!==t.length)return 1===t.length?t[0]:t.reduce(function(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}})}},,function(e,t,n){var i=n(119),a=i.JSON||(i.JSON={stringify:JSON.stringify});e.exports=function(e){return a.stringify.apply(a,arguments)}},function(e,t,n){n(2615),e.exports=n(119).Number.isFinite},function(e,t,n){n(2616),e.exports=n(119).Number.isInteger
},function(e,t,n){n(2617),e.exports=n(119).Number.isNaN},function(e,t,n){n(2618),e.exports=parseFloat},function(e,t,n){n(2619),e.exports=parseInt},function(e,t,n){n(2620),e.exports=n(119).Object.assign},function(e,t,n){n(2621);var i=n(119).Object;e.exports=function(e,t){return i.create(e,t)}},function(e,t,n){n(2622),e.exports=n(119).Object.getPrototypeOf},function(e,t,n){n(2623),e.exports=n(119).Object.keys},function(e,t,n){n(2624),e.exports=n(119).Object.setPrototypeOf},function(e,t,n){n(1078),
e.exports=n(119).Symbol.for},function(e,t,n){n(1078),n(2625),n(2627),n(2628),e.exports=n(119).Symbol},function(e,t,n){n(2626),n(2629),e.exports=n(680).f("iterator")},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(){}},function(e,t,n){var i=n(261),a=n(2613),r=n(2612);e.exports=function(e){return function(t,n,s){var o,l=i(t),u=a(l.length),c=r(s,u);if(e&&n!=n){for(;u>c;)if((o=l[c++])!=o)return!0
}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var i=n(316),a=n(672),r=n(471);e.exports=function(e){var t=i(e),n=a.f;if(n)for(var s,o=n(e),l=r.f,u=0;o.length>u;)l.call(e,s=o[u++])&&t.push(s);return t}},function(e,t,n){e.exports=n(163).document&&document.documentElement},function(e,t,n){var i=n(1065);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(314),a=Math.floor;e.exports=function(e){
return!i(e)&&isFinite(e)&&a(e)===e}},function(e,t,n){"use strict";var i=n(671),a=n(472),r=n(673),s={};n(313)(s,n(317)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(s,{next:a(1,n)}),r(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var i=n(316),a=n(261);e.exports=function(e,t){for(var n,r=a(e),s=i(r),o=s.length,l=0;o>l;)if(r[n=s[l++]]===t)return n}},function(e,t,n){
var i=n(474)("meta"),a=n(314),r=n(260),s=n(315).f,o=0,l=Object.isExtensible||function(){return!0},u=!n(259)(function(){return l(Object.preventExtensions({}))}),c=function(e){s(e,i,{value:{i:"O"+ ++o,w:{}}})},d=function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!r(e,i)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[i].i},p=function(e,t){if(!r(e,i)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[i].w},h=function(e){return u&&f.NEED&&l(e)&&!r(e,i)&&c(e),e
},f=e.exports={KEY:i,NEED:!1,fastKey:d,getWeak:p,onFreeze:h}},function(e,t,n){"use strict";var i=n(316),a=n(672),r=n(471),s=n(473),o=n(1069),l=Object.assign;e.exports=!l||n(259)(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i})?function(e,t){
for(var n=s(e),l=arguments.length,u=1,c=a.f,d=r.f;l>u;)for(var p,h=o(arguments[u++]),f=c?i(h).concat(c(h)):i(h),v=f.length,m=0;v>m;)d.call(h,p=f[m++])&&(n[p]=h[p]);return n}:l},function(e,t,n){var i=n(315),a=n(379),r=n(316);e.exports=n(312)?Object.defineProperties:function(e,t){a(e);for(var n,s=r(t),o=s.length,l=0;o>l;)i.f(e,n=s[l++],t[n]);return e}},function(e,t,n){
var i=n(261),a=n(1072).f,r={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],o=function(e){try{return a(e)}catch(e){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==r.call(e)?o(e):a(i(e))}},function(e,t,n){var i=n(163).parseFloat,a=n(1077).trim;e.exports=1/i(n(676)+"-0")!=-(1/0)?function(e){var t=a(String(e),3),n=i(t);return 0===n&&"-"==t.charAt(0)?-0:n}:i},function(e,t,n){
var i=n(163).parseInt,a=n(1077).trim,r=n(676),s=/^[\-+]?0[xX]/;e.exports=8!==i(r+"08")||22!==i(r+"0x16")?function(e,t){var n=a(String(e),3);return i(n,t>>>0||(s.test(n)?16:10))}:i},function(e,t,n){var i=n(314),a=n(379),r=function(e,t){if(a(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,i){try{i=n(1066)(Function.call,n(1071).f(Object.prototype,"__proto__").set,2),i(e,[]),t=!(e instanceof Array)}catch(e){t=!0}
return function(e,n){return r(e,n),t?e.__proto__=n:i(e,n),e}}({},!1):void 0),check:r}},function(e,t,n){var i=n(677),a=n(470);e.exports=function(e){return function(t,n){var r,s,o=String(a(t)),l=i(n),u=o.length;return l<0||l>=u?e?"":void 0:(r=o.charCodeAt(l),r<55296||r>56319||l+1===u||(s=o.charCodeAt(l+1))<56320||s>57343?e?o.charAt(l):r:e?o.slice(l,l+2):s-56320+(r-55296<<10)+65536)}}},function(e,t,n){var i=n(677),a=Math.max,r=Math.min;e.exports=function(e,t){return e=i(e),e<0?a(e+t,0):r(e,t)}
},function(e,t,n){var i=n(677),a=Math.min;e.exports=function(e){return e>0?a(i(e),9007199254740991):0}},function(e,t,n){"use strict";var i=n(2595),a=n(2602),r=n(669),s=n(261);e.exports=n(1070)(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,a(1)):"keys"==t?a(0,n):"values"==t?a(0,e[n]):a(0,[n,e[n]])},"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},function(e,t,n){
var i=n(147),a=n(163).isFinite;i(i.S,"Number",{isFinite:function(e){return"number"==typeof e&&a(e)}})},function(e,t,n){var i=n(147);i(i.S,"Number",{isInteger:n(2600)})},function(e,t,n){var i=n(147);i(i.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var i=n(147),a=n(2608);i(i.S+i.F*(Number.parseFloat!=a),"Number",{parseFloat:a})},function(e,t,n){var i=n(147),a=n(2609);i(i.S+i.F*(Number.parseInt!=a),"Number",{parseInt:a})},function(e,t,n){var i=n(147);i(i.S+i.F,"Object",{
assign:n(2605)})},function(e,t,n){var i=n(147);i(i.S,"Object",{create:n(671)})},function(e,t,n){var i=n(473),a=n(1073);n(1075)("getPrototypeOf",function(){return function(e){return a(i(e))}})},function(e,t,n){var i=n(473),a=n(316);n(1075)("keys",function(){return function(e){return a(i(e))}})},function(e,t,n){var i=n(147);i(i.S,"Object",{setPrototypeOf:n(2610).set})},function(e,t){},function(e,t,n){"use strict";var i=n(2611)(!0);n(1070)(String,"String",function(e){this._t=String(e),this._i=0
},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){n(679)("asyncIterator")},function(e,t,n){n(679)("observable")},function(e,t,n){n(2614);for(var i=n(163),a=n(313),r=n(669),s=n(317)("toStringTag"),o=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],l=0;l<5;l++){var u=o[l],c=i[u],d=c&&c.prototype;d&&!d[s]&&a(d,s,u),r[u]=r.Array}},,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict"
;var i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};t.__esModule=!0;var a=n(689),r=function(e){return e&&e.__esModule?e:{default:e}}(a),s=function(){function e(){for(var t=arguments.length,n=Array(t),a=0;a<t;a++)n[a]=arguments[a];i(this,e),Array.isArray(n[0])&&1===n.length&&(n=n[0]);for(var s=0;s<n.length;s++)if(!r.default(n[s]))throw new Error("Expected a disposable");this.disposables=n,this.isDisposed=!1}return e.prototype.add=function(e){
this.isDisposed?e.dispose():this.disposables.push(e)},e.prototype.remove=function(e){if(this.isDisposed)return!1;var t=this.disposables.indexOf(e);return t!==-1&&(this.disposables.splice(t,1),e.dispose(),!0)},e.prototype.dispose=function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.isDisposed=!0,this.disposables=[],this.length=0;for(var n=0;n<e;n++)t[n].dispose()}},e}();t.default=s,e.exports=t.default},function(e,t,n){
"use strict";var i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();t.__esModule=!0;var r=function(){},s=function(){function e(t){i(this,e),this.isDisposed=!1,this.action=t||r}
return e.prototype.dispose=function(){this.isDisposed||(this.action.call(null),this.isDisposed=!0)},a(e,null,[{key:"empty",enumerable:!0,value:{dispose:r}}]),e}();t.default=s,e.exports=t.default},function(e,t,n){"use strict";var i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};t.__esModule=!0;var a=n(689),r=function(e){return e&&e.__esModule?e:{default:e}}(a),s=function(){function e(){i(this,e),this.isDisposed=!1,this.current=null}
return e.prototype.getDisposable=function(){return this.current},e.prototype.setDisposable=function(){var e=void 0===arguments[0]?null:arguments[0];if(null!=e&&!r.default(e))throw new Error("Expected either an empty value or a valid disposable");var t=this.isDisposed,n=void 0;t||(n=this.current,this.current=e),n&&n.dispose(),t&&e&&e.dispose()},e.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=null,e&&e.dispose()}},e}();t.default=s,
e.exports=t.default},function(e,t,n){"use strict";var i=function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var a=n(689),r=i(a);t.isDisposable=r.default;var s=n(2652),o=i(s);t.Disposable=o.default;var l=n(2651),u=i(l);t.CompositeDisposable=u.default;var c=n(2653),d=i(c);t.SerialDisposable=d.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(2667),o=i(s),l=n(2663),u=i(l),c=n(481),d=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t
}(c),p=n(2656),h=i(p),f=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,e);var i=(0,o.default)(u.default);this.context=n,this.store=i,this.monitor=new h.default(i),this.registry=this.monitor.registry,this.backend=t(this),i.subscribe(this.handleRefCountChange.bind(this))}return r(e,[{key:"handleRefCountChange",value:function(){var e=this.store.getState().refCount>0;e&&!this.isSetUp?(this.backend.setup(),
this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1)}},{key:"getContext",value:function(){return this.context}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.registry}},{key:"getActions",value:function(){function e(e){return function(){for(var i=arguments.length,a=Array(i),r=0;r<i;r++)a[r]=arguments[r];var s=e.apply(t,a);void 0!==s&&n(s)}}
var t=this,n=this.store.dispatch;return Object.keys(d).filter(function(e){return"function"==typeof d[e]}).reduce(function(t,n){var i=d[n];return t[n]=e(i),t},{})}}]),e}();t.default=f},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n]
;i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(121),o=i(s),l=n(263),u=i(l),c=n(1097),d=i(c),p=n(2659),h=i(p),f=n(1096),v=n(1095),m=function(){function e(t){a(this,e),this.store=t,this.registry=new h.default(t)}return r(e,[{key:"subscribeToStateChange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.handlerIds;(0,
o.default)("function"==typeof e,"listener must be a function."),(0,o.default)(void 0===i||(0,u.default)(i),"handlerIds, when specified, must be an array of strings.");var a=this.store.getState().stateId,r=function(){var n=t.store.getState(),r=n.stateId;try{r===a||r===a+1&&!(0,v.areDirty)(n.dirtyHandlerIds,i)||e()}finally{a=r}};return this.store.subscribe(r)}},{key:"subscribeToOffsetChange",value:function(e){var t=this;(0,o.default)("function"==typeof e,"listener must be a function.")
;var n=this.store.getState().dragOffset,i=function(){var i=t.store.getState().dragOffset;i!==n&&(n=i,e())};return this.store.subscribe(i)}},{key:"canDragSource",value:function(e){var t=this.registry.getSource(e);return(0,o.default)(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){var t=this.registry.getTarget(e);if((0,o.default)(t,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1
;var n=this.registry.getTargetType(e),i=this.getItemType();return(0,d.default)(n,i)&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){var t=this.registry.getSource(e,!0);return(0,o.default)(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e))}},{key:"isOverTarget",value:function(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1},n=t.shallow;if(!this.isDragging())return!1;var i=this.registry.getTargetType(e),a=this.getItemType();if(!(0,d.default)(i,a))return!1;var r=this.getTargetIds();if(!r.length)return!1;var s=r.indexOf(e);return n?s===r.length-1:s>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",
value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){
return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return(0,f.getSourceClientOffset)(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return(0,
f.getDifferenceFromInitialOffset)(this.store.getState().dragOffset)}}]),e}();t.default=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),
i&&e(t,i),t}}(),r=function(){function e(){i(this,e)}return a(e,[{key:"canDrag",value:function(){return!0}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}]),e}();t.default=r},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n]
;i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(){function e(){i(this,e)}return a(e,[{key:"canDrop",value:function(){return!0}},{key:"hover",value:function(){}},{key:"drop",value:function(){}}]),e}();t.default=r},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){
if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e){(0,h.default)("function"==typeof e.canDrag,"Expected canDrag to be a function."),(0,h.default)("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),(0,h.default)("function"==typeof e.endDrag,"Expected endDrag to be a function.")}function s(e){(0,h.default)("function"==typeof e.canDrop,"Expected canDrop to be a function."),(0,
h.default)("function"==typeof e.hover,"Expected hover to be a function."),(0,h.default)("function"==typeof e.drop,"Expected beginDrag to be a function.")}function o(e,t){if(t&&(0,v.default)(e))return void e.forEach(function(e){return o(e,!1)});(0,h.default)("string"==typeof e||"symbol"===(void 0===e?"undefined":d(e)),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}function l(e){var t=(0,S.default)().toString();switch(e){case I.SOURCE:
return"S"+t;case I.TARGET:return"T"+t;default:(0,h.default)(!1,"Unknown role: "+e)}}function u(e){switch(e[0]){case"S":return I.SOURCE;case"T":return I.TARGET;default:(0,h.default)(!1,"Cannot parse handler ID: "+e)}}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),
i&&e(t,i),t}}(),d="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},p=n(121),h=i(p),f=n(263),v=i(f),m=n(1193),g=i(m),y=n(482),b=n(2666),S=i(b),I={SOURCE:"SOURCE",TARGET:"TARGET"},M=function(){function e(t){a(this,e),this.store=t,this.types={},this.handlers={},this.pinnedSourceId=null,this.pinnedSource=null}return c(e,[{key:"addSource",
value:function(e,t){o(e),r(t);var n=this.addHandler(I.SOURCE,e,t);return this.store.dispatch((0,y.addSource)(n)),n}},{key:"addTarget",value:function(e,t){o(e,!0),s(t);var n=this.addHandler(I.TARGET,e,t);return this.store.dispatch((0,y.addTarget)(n)),n}},{key:"addHandler",value:function(e,t,n){var i=l(e);return this.types[i]=t,this.handlers[i]=n,i}},{key:"containsHandler",value:function(e){var t=this;return Object.keys(this.handlers).some(function(n){return t.handlers[n]===e})}},{key:"getSource",
value:function(e,t){return(0,h.default)(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.handlers[e]}},{key:"getTarget",value:function(e){return(0,h.default)(this.isTargetId(e),"Expected a valid target ID."),this.handlers[e]}},{key:"getSourceType",value:function(e){return(0,h.default)(this.isSourceId(e),"Expected a valid source ID."),this.types[e]}},{key:"getTargetType",value:function(e){return(0,
h.default)(this.isTargetId(e),"Expected a valid target ID."),this.types[e]}},{key:"isSourceId",value:function(e){return u(e)===I.SOURCE}},{key:"isTargetId",value:function(e){return u(e)===I.TARGET}},{key:"removeSource",value:function(e){var t=this;(0,h.default)(this.getSource(e),"Expected an existing source."),this.store.dispatch((0,y.removeSource)(e)),(0,g.default)(function(){delete t.handlers[e],delete t.types[e]})}},{key:"removeTarget",value:function(e){var t=this;(0,
h.default)(this.getTarget(e),"Expected an existing target."),this.store.dispatch((0,y.removeTarget)(e)),(0,g.default)(function(){delete t.handlers[e],delete t.types[e]})}},{key:"pinSource",value:function(e){var t=this.getSource(e);(0,h.default)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){(0,h.default)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}}]),e}();t.default=M
},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e){return new l(e)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();t.default=a;var s=n(1124),o=function(e){
return e&&e.__esModule?e:{default:e}}(s),l=function(){function e(t){i(this,e),this.actions=t.getActions()}return r(e,[{key:"setup",value:function(){this.didCallSetup=!0}},{key:"teardown",value:function(){this.didCallTeardown=!0}},{key:"connectDragSource",value:function(){return o.default}},{key:"connectDragPreview",value:function(){return o.default}},{key:"connectDropTarget",value:function(){return o.default}},{key:"simulateBeginDrag",value:function(e,t){this.actions.beginDrag(e,t)}},{
key:"simulatePublishDragSource",value:function(){this.actions.publishDragSource()}},{key:"simulateHover",value:function(e,t){this.actions.hover(e,t)}},{key:"simulateDrop",value:function(){this.actions.drop()}},{key:"simulateEndDrag",value:function(){this.actions.endDrag()}}]),e}()},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2655);Object.defineProperty(t,"DragDropManager",{enumerable:!0,get:function(){
return i(a).default}});var r=n(2657);Object.defineProperty(t,"DragSource",{enumerable:!0,get:function(){return i(r).default}});var s=n(2658);Object.defineProperty(t,"DropTarget",{enumerable:!0,get:function(){return i(s).default}});var o=n(2660);Object.defineProperty(t,"createTestBackend",{enumerable:!0,get:function(){return i(o).default}})},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments[1];switch(t.type){case o.BEGIN_DRAG:
return a({},e,{itemType:t.itemType,item:t.item,sourceId:t.sourceId,isSourcePublic:t.isSourcePublic,dropResult:null,didDrop:!1});case o.PUBLISH_DRAG_SOURCE:return a({},e,{isSourcePublic:!0});case o.HOVER:return a({},e,{targetIds:t.targetIds});case l.REMOVE_TARGET:return e.targetIds.indexOf(t.targetId)===-1?e:a({},e,{targetIds:(0,s.default)(e.targetIds,t.targetId)});case o.DROP:return a({},e,{dropResult:t.dropResult,didDrop:!0,targetIds:[]});case o.END_DRAG:return a({},e,{itemType:null,item:null,
sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};t.default=i;var r=n(1125),s=function(e){return e&&e.__esModule?e:{default:e}}(r),o=n(481),l=n(482),u={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,
isSourcePublic:null}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return{dirtyHandlerIds:(0,p.default)(e.dirtyHandlerIds,t,e.dragOperation),dragOffset:(0,s.default)(e.dragOffset,t),refCount:(0,c.default)(e.refCount,t),dragOperation:(0,l.default)(e.dragOperation,t),stateId:(0,f.default)(e.stateId)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a
;var r=n(1096),s=i(r),o=n(2662),l=i(o),u=n(2664),c=i(u),d=n(1095),p=i(d),h=n(2665),f=i(h)},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch(arguments[1].type){case a.ADD_SOURCE:case a.ADD_TARGET:return e+1;case a.REMOVE_SOURCE:case a.REMOVE_TARGET:return e-1;default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(482)},function(e,t,n){"use strict";function i(){
return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},function(e,t,n){"use strict";function i(){return a++}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=0},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){function i(){g===m&&(g=m.slice())}function r(){return v}function o(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.")
;var t=!0;return i(),g.push(e),function(){if(t){t=!1,i();var n=g.indexOf(e);g.splice(n,1)}}}function c(e){if(!(0,s.default)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(y)throw new Error("Reducers may not dispatch actions.");try{y=!0,v=f(v,e)}finally{y=!1}for(var t=m=g,n=0;n<t.length;n++)t[n]();return e}function d(e){
if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");f=e,c({type:u.INIT})}function p(){var e,t=o;return e={subscribe:function(e){function n(){e.next&&e.next(r())}if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");return n(),{unsubscribe:t(n)}}},e[l.default]=function(){return this},e}var h;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){
if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(a)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var f=e,v=t,m=[],g=m,y=!1;return c({type:u.INIT}),h={dispatch:c,subscribe:o,getState:r,replaceReducer:d},h[l.default]=p,h}t.__esModule=!0,t.ActionTypes=void 0,t.default=a;var r=n(195),s=i(r),o=n(3454),l=i(o),u=t.ActionTypes={INIT:"@@redux/INIT"}},function(e,t,n){"use strict";function i(e,t){
e.classList?e.classList.add(t):(0,r.default)(e)||(e.className=e.className+" "+t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(2669),r=function(e){return e&&e.__esModule?e:{default:e}}(a);e.exports=t.default},function(e,t,n){"use strict";function i(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")!==-1}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i,e.exports=t.default},function(e,t,n){"use strict"
;e.exports=function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var i=n(1098),a=function(e){
return e&&e.__esModule?e:{default:e}}(i),r="transform",s=void 0,o=void 0,l=void 0,u=void 0,c=void 0,d=void 0,p=void 0,h=void 0,f=void 0,v=void 0,m=void 0;if(a.default){var g=function(){for(var e=document.createElement("div").style,t={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},n=Object.keys(t),i=void 0,a=void 0,r="",s=0;s<n.length;s++){var o=n[s];if(o+"TransitionProperty"in e){
r="-"+o.toLowerCase(),i=t[o]("TransitionEnd"),a=t[o]("AnimationEnd");break}}return!i&&"transitionProperty"in e&&(i="transitionend"),!a&&"animationName"in e&&(a="animationend"),e=null,{animationEnd:a,transitionEnd:i,prefix:r}}();s=g.prefix,t.transitionEnd=o=g.transitionEnd,t.animationEnd=l=g.animationEnd,t.transform=r=s+"-"+r,t.transitionProperty=u=s+"-transition-property",t.transitionDuration=c=s+"-transition-duration",t.transitionDelay=p=s+"-transition-delay",
t.transitionTiming=d=s+"-transition-timing-function",t.animationName=h=s+"-animation-name",t.animationDuration=f=s+"-animation-duration",t.animationTiming=v=s+"-animation-delay",t.animationDelay=m=s+"-animation-timing-function"}t.transform=r,t.transitionProperty=u,t.transitionTiming=d,t.transitionDelay=p,t.transitionDuration=c,t.transitionEnd=o,t.animationName=h,t.animationDuration=f,t.animationTiming=v,t.animationDelay=m,t.animationEnd=l,t.default={transform:r,end:o,property:u,timing:d,delay:p,
duration:c}},function(e,t,n){"use strict";function i(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-d)),i=setTimeout(e,n);return d=t,i}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1098),r=function(e){return e&&e.__esModule?e:{default:e}}(a),s=["","webkit","moz","o","ms"],o="clearTimeout",l=i,u=void 0,c=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};r.default&&s.some(function(e){var t=c(e,"request");if(t in window)return o=c(e,"cancel"),l=function(e){
return window[t](e)}});var d=(new Date).getTime();u=function(e){return l(e)},u.cancel=function(e){window[o]&&"function"==typeof window[o]&&window[o](e)},t.default=u,e.exports=t.default},function(e,t,n){"use strict";var i=n(692),a=n(1106).default,r=n(693).default,s=n(694),o=n(3245),l=function(){var e=new i.HandlebarsEnvironment;return s.extend(e,i),e.SafeString=a,e.Exception=r,e.Utils=s,e.VM=o,e.template=function(t){return o.template(t,e)},e},u=l();u.create=l,t.default=u,e.exports=u
},function(e,t){function n(e){for(var t=e.length,n=new Array(t),i=0;i<t;i++)n[i]=e.charCodeAt(i);return n}function i(e){for(var t="",n=0;n<e.length;n++)t+=SHA256_hexchars[e[n]>>4]+SHA256_hexchars[15&e[n]];return t}function a(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}function r(){SHA256_H=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),SHA256_buf=new Array,SHA256_len=0}function s(e){
SHA256_buf="string"==typeof e?SHA256_buf.concat(n(e)):SHA256_buf.concat(e);for(var t=0;t+64<=SHA256_buf.length;t+=64)b(SHA256_H,SHA256_buf.slice(t,t+64));SHA256_buf=SHA256_buf.slice(t),SHA256_len+=e.length}function o(){if(SHA256_buf[SHA256_buf.length]=128,SHA256_buf.length>56){for(var e=SHA256_buf.length;e<64;e++)SHA256_buf[e]=0;b(SHA256_H,SHA256_buf),SHA256_buf.length=0}for(var e=SHA256_buf.length;e<59;e++)SHA256_buf[e]=0;SHA256_buf[59]=SHA256_len>>>29&255,SHA256_buf[60]=SHA256_len>>>21&255,
SHA256_buf[61]=SHA256_len>>>13&255,SHA256_buf[62]=SHA256_len>>>5&255,SHA256_buf[63]=SHA256_len<<3&255,b(SHA256_H,SHA256_buf);for(var t=new Array(32),e=0;e<8;e++)t[4*e+0]=SHA256_H[e]>>>24,t[4*e+1]=SHA256_H[e]>>16&255,t[4*e+2]=SHA256_H[e]>>8&255,t[4*e+3]=255&SHA256_H[e];return SHA256_H=null,SHA256_buf=null,SHA256_len=null,t}function l(e){var t;return r(),s(e),t=o(),i(t)}function u(e){HMAC_SHA256_key="string"==typeof e?n(e):(new Array).concat(e),HMAC_SHA256_key.length>64&&(r(),s(HMAC_SHA256_key),
HMAC_SHA256_key=o());for(var t=HMAC_SHA256_key.length;t<64;t++)HMAC_SHA256_key[t]=0;for(var t=0;t<64;t++)HMAC_SHA256_key[t]^=54;r(),s(HMAC_SHA256_key)}function c(e){s(e)}function d(){for(var e=o(),t=0;t<64;t++)HMAC_SHA256_key[t]^=106;r(),s(HMAC_SHA256_key),s(e);for(var t=0;t<64;t++)HMAC_SHA256_key[t]=0;return HMAC_SHA256_key=null,o()}function p(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function h(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}function f(e){
return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function v(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function m(e,t,n){return n^e&(t^n)}function g(e,t,n){return e&t^n&(e^t)}function y(e,t){for(var n=16;n<64;n++)t[n]=h(t[n-2])+t[n-7]+p(t[n-15])+t[n-16]&4294967295;for(var i=(new Array).concat(e),n=0;n<64;n++){var a=i[7]+v(i[4])+m(i[4],i[5],i[6])+SHA256_K[n]+t[n],r=f(i[0])+g(i[0],i[1],i[2]);i.pop(),i.unshift(a+r&4294967295),i[4]=i[4]+a&4294967295}
for(var n=0;n<8;n++)e[n]=e[n]+i[n]&4294967295}function b(e,t){for(var n=new Array(16),i=0;i<16;i++)n[i]=t[4*i+0]<<24|t[4*i+1]<<16|t[4*i+2]<<8|t[4*i+3];y(e,n)}SHA256_hexchars=new Array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"),
SHA256_K=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),
t.array_to_string=a,t.SHA256_hash=l,t.HMAC_SHA256_init=u,t.HMAC_SHA256_write=c,t.HMAC_SHA256_finalize=d},function(e,t){e.exports={container:"Measure-container-2XznZ",scrollContainer:"Measure-scrollContainer-3vb4J",expandContent:"Measure-expandContent-1JQfL",shrinkContent:"Measure-shrinkContent-32Udi Measure-expandContent-1JQfL"}},function(e,t){e.exports={plexImage:"PlexHeaderImage-plexImage-2K4VH",plexImageContainer:"PlexHeaderImage-plexImageContainer-NE-7v"}},function(e,t){e.exports={
equalizer:"EqualizerIcon-equalizer-2SoFA",bar:"EqualizerIcon-bar-1nPot"}},function(e,t){e.exports={cell:"virtualized-cell-3KPHx",isMoving:"virtualized-isMoving-a-wk0"}},function(e,t){e.exports={wrapper:"AbstractReactPageView-wrapper-26Hek"}},function(e,t){e.exports={pageContainer:"ReactCapturePageView-pageContainer-UZSvw"}},function(e,t){e.exports={sidebarContainer:"ReactSidebarPageView-sidebarContainer-2yqZ9",pageContainer:"ReactSidebarPageView-pageContainer-1Qu7Q"}},function(e,t){e.exports={
container:"AudioVideoPlayerView-container-kWiFs"}},function(e,t){e.exports={anagram:"Anagram-anagram-2KZ_Z"}},function(e,t){e.exports={badge:"Badge-badge-1VCQ1",isHidden:"Badge-isHidden-3Atw9",default:"Badge-default-1XnzT",primary:"Badge-primary-3GV6T",success:"Badge-success-3G72_",danger:"Badge-danger-2SHAW"}},function(e,t){e.exports={circularProgressBarContainer:"CircularProgressBar-circularProgressBarContainer-30vSI",
absoluteCenterCircularProgressBarContainer:"CircularProgressBar-absoluteCenterCircularProgressBarContainer-3isvT",circularProgressBar:"CircularProgressBar-circularProgressBar-2bQBe",circularProgressBarBackground:"CircularProgressBar-circularProgressBarBackground-1a1VU",circularProgressBarText:"CircularProgressBar-circularProgressBarText-1kr2I"}},function(e,t){e.exports={lineHeightMeasure:"CollapsibleText-lineHeightMeasure-1waS-",contentTransition:"CollapsibleText-contentTransition-15VYv",
readMore:"CollapsibleText-readMore-1bRJm DisclosureArrowButton-disclosureArrowButton-3tbYZ",readMoreArrow:"CollapsibleText-readMoreArrow-34BdB DisclosureArrowButton-disclosureArrow-34Wg3 DisclosureArrow-disclosureArrow-1sBFv"}},function(e,t){e.exports={separator:"DashSeparator-separator-2a3yn"}},function(e,t){e.exports={disclosureArrow:"DisclosureArrow-disclosureArrow-1sBFv",default:"DisclosureArrow-default-3_FCW",primary:"DisclosureArrow-primary-vESs5",success:"DisclosureArrow-success-3ECgX",
danger:"DisclosureArrow-danger-yr9QC",small:"DisclosureArrow-small-1otGg",up:"DisclosureArrow-up-rjGpc",right:"DisclosureArrow-right-1FzuH",medium:"DisclosureArrow-medium-3VjTd",large:"DisclosureArrow-large-ZqY-A",down:"DisclosureArrow-down-1U7WW DisclosureArrow-up-rjGpc",left:"DisclosureArrow-left-YHRK4 DisclosureArrow-right-1FzuH",isSelected:"DisclosureArrow-isSelected-VMAVr"}},function(e,t){e.exports={dragLayer:"DragPreviewLayer-dragLayer-2uYZU"}},function(e,t){e.exports={
grid:"FlexGrid-grid-Ws_Yk"}},function(e,t){e.exports={plexPassIcon:"PlexPassBadge-plexPassIcon-256yq"}},function(e,t){e.exports={upsell:"PlexPassUpsell-upsell-3i2JL",iconContainer:"PlexPassUpsell-iconContainer-3uKd8",icon:"PlexPassUpsell-icon-1r94u",title:"PlexPassUpsell-title-3m6RL",text:"PlexPassUpsell-text-2hF28"}},function(e,t){e.exports={scroller:"Scroller-scroller-d5-b-",none:"Scroller-none-1LyUO",vertical:"Scroller-vertical-1bgGS",auto:"Scroller-auto-3t4gM",
horizontal:"Scroller-horizontal-1k8ET",omni:"Scroller-omni-2hOYs"}},function(e,t){e.exports={slider:"Slider-slider-2oLVT",thumb:"Slider-thumb-2QGiU Link-link-2XYrU",isDragging:"Slider-isDragging-3wZpY",hasAutoHideThumb:"Slider-hasAutoHideThumb-tpdhC",track:"Slider-track-28JOS",fill:"Slider-fill-35GFq",secondaryFill:"Slider-secondaryFill-31_05 Slider-fill-35GFq",thumbTrack:"Slider-thumbTrack-21hGV"}},function(e,t){e.exports={spinner:"Spinner-spinner-290-o spin-spin-2Ou6V",
spinnerContainer:"Spinner-spinnerContainer-2t9nG",spinnerLabel:"Spinner-spinnerLabel-XPa3u",small:"Spinner-small-2WAWj Spinner-spinner-290-o spin-spin-2Ou6V",medium:"Spinner-medium-2xYg8 Spinner-spinner-290-o spin-spin-2Ou6V",large:"Spinner-large-3oCdT Spinner-spinner-290-o spin-spin-2Ou6V"}},function(e,t){e.exports={starRating:"StarRating-starRating-1-SbN",stars:"StarRating-stars-2HyHd",dot:"StarRating-dot-3IqC-",star:"StarRating-star-31C9X",hidden:"StarRating-hidden-2n6-9",
emptyStar:"StarRating-emptyStar-1XVvK StarRating-star-31C9X",fullStar:"StarRating-fullStar-3gYOk StarRating-star-31C9X",pulsing:"StarRating-pulsing-ZL72H",isReadOnly:"StarRating-isReadOnly-2SumJ",isUnrated:"StarRating-isUnrated-2pl1W",slider:"StarRating-slider-2uo17",track:"StarRating-track-29690"}},function(e,t){e.exports={tag:"TagLabel-tag-2dgQO",remove:"TagLabel-remove-1aTjc"}},function(e,t){e.exports={container:"TickMarks-container-Dsw5z",ticks:"TickMarks-ticks-3rrhG",
tick:"TickMarks-tick-S3qkF",minor:"TickMarks-minor-1EIQq TickMarks-tick-S3qkF",major:"TickMarks-major-2GXoi TickMarks-tick-S3qkF",label:"TickMarks-label-2qQML"}},function(e,t){e.exports={button:"Button-button--JvPI Link-link-2XYrU",default:"Button-default-36soe",primary:"Button-primary-2LQVw",success:"Button-success-27Gi3",danger:"Button-danger-2Kt82",small:"Button-small-3Zwli",medium:"Button-medium-m-p5M",large:"Button-large-15Al1"}},function(e,t){e.exports={
disclosureArrowButton:"DisclosureArrowButton-disclosureArrowButton-3tbYZ",isSelected:"DisclosureArrowButton-isSelected-oswRN",small:"DisclosureArrowButton-small-3E5xa",medium:"DisclosureArrowButton-medium-3-Y37",large:"DisclosureArrowButton-large-1I8ol",disclosureArrow:"DisclosureArrowButton-disclosureArrow-34Wg3 DisclosureArrow-disclosureArrow-1sBFv",down:"DisclosureArrowButton-down-bd2wx",left:"DisclosureArrowButton-left-1vTz7",up:"DisclosureArrowButton-up-2fzdj",
right:"DisclosureArrowButton-right-3YrxJ"}},function(e,t){e.exports={button:"IconButton-button-2FVq6",isDisabled:"IconButton-isDisabled-1sR3X",isActive:"IconButton-isActive-1C0VU"}},function(e,t){e.exports={link:"Link-link-2XYrU",default:"Link-default-32xSO",primary:"Link-primary-2-G21",success:"Link-success-A5sJ5",danger:"Link-danger-2sae2",small:"Link-small-16umL",medium:"Link-medium-2KGbN",large:"Link-large-3ff0J",isSelected:"Link-isSelected-3GpAs",isActiveRoute:"Link-isActiveRoute-2pAJj"}
},function(e,t){e.exports={playButton:"PlayButton-playButton-3WX8X",playCircle:"PlayButton-playCircle-3Evfd",playIcon:"PlayButton-playIcon-dt3sk"}},function(e,t){e.exports={recordButton:"RecordButton-recordButton-1BGta PlayButton-playButton-3WX8X RecordIcon-recordIconContainer-1PXGA"}},function(e,t){e.exports={selectButton:"SelectButton-selectButton-3Kbjm",isSelected:"SelectButton-isSelected-3mX24",selectCircle:"SelectButton-selectCircle-3tdvG",selectedIcon:"SelectButton-selectedIcon-3-SAL"}
},function(e,t){e.exports={button:"SpinnerButton-button-3WowH Button-button--JvPI Link-link-2XYrU",spinnerContainer:"SpinnerButton-spinnerContainer-2OI9v",spinner:"SpinnerButton-spinner-2SDDZ Spinner-spinner-290-o spin-spin-2Ou6V",label:"SpinnerButton-label-1Rv20",isSpinning:"SpinnerButton-isSpinning-2MaGv"}},function(e,t){e.exports={container:"AutosuggestInput-container-2cPGb",input:"AutosuggestInput-input-3hXMJ",
suggestionsContainer:"AutosuggestInput-suggestionsContainer-1x6tk Scroller-scroller-d5-b- Scroller-vertical-1bgGS MenuContainer-menu-3Gtlw",containerOpen:"AutosuggestInput-containerOpen-2e7tJ",suggestionsList:"AutosuggestInput-suggestionsList-3jsml",suggestion:"AutosuggestInput-suggestion-kMP28 MenuItem-menuItem-25266",suggestionFocused:"AutosuggestInput-suggestionFocused-3wBdE"}},function(e,t){e.exports={tagsInput:"AutosuggestTagsInput-tagsInput-1wrGI TagsInput-tagsInput-3bbBk",
input:"AutosuggestTagsInput-input-2xoI7 TagsInput-input-3mYtb"}},function(e,t){e.exports={input:"CheckInput-input-ekXaU",label:"CheckInput-label-3_eM0",small:"CheckInput-small-1XirQ",large:"CheckInput-large-3iVct",isDisabled:"CheckInput-isDisabled-18Q_A",hasError:"CheckInput-hasError-3hdvR"}},function(e,t){e.exports={group:"FormGroup-group-15o1H"}},function(e,t){e.exports={help:"FormHelp-help-2-ppP"}},function(e,t){e.exports={label:"FormLabel-label-1sr1f",hasError:"FormLabel-hasError-3iiNl"}
},function(e,t){e.exports={sectionError:"FormSectionError-sectionError-3ZuKe",sectionErrorIcon:"FormSectionError-sectionErrorIcon--74cE",sectionErrorDismiss:"FormSectionError-sectionErrorDismiss-2k5QS"}},function(e,t){e.exports={group:"InlineFormGroup-group-39inI"}},function(e,t){e.exports={label:"InlineInputGroupFormLabel-label-3avlL FormLabel-label-1sr1f"}},function(e,t){e.exports={input:"InlineNumberInputGroup-input-DiEPr TextInput-input-34u_B input-input-2ol6B"}},function(e,t){e.exports={
input:"MaskedInput-input-17hU3 TextInput-input-34u_B input-input-2ol6B",small:"MaskedInput-small-1owiY TextInput-small-32Icv input-small-1pC38",large:"MaskedInput-large-1UpZY TextInput-large-3XjFh input-large-1cY_k",isDisabled:"MaskedInput-isDisabled-3_twg TextInput-isDisabled-2ndPL input-isDisabled-3kEMP",hasError:"MaskedInput-hasError-1kFAT TextInput-hasError-2pH7B input-hasError-FVFYC"}},function(e,t){e.exports={input:"NumberInputGroup-input-293D8 TextInput-input-34u_B input-input-2ol6B"}
},function(e,t){e.exports={input:"SelectInput-input-1WBUz input-input-2ol6B",small:"SelectInput-small-1l_KX input-small-1pC38",select:"SelectInput-select-1LGc-",large:"SelectInput-large-1oaRj input-large-1cY_k",isDisabled:"SelectInput-isDisabled-3etwl",hasError:"SelectInput-hasError-3SvNE"}},function(e,t){e.exports={tagsInput:"TagsInput-tagsInput-3bbBk",input:"TagsInput-input-3mYtb"}},function(e,t){e.exports={textArea:"TextArea-textArea-1PnXt input-input-2ol6B",small:"TextArea-small-1nWjY",
large:"TextArea-large-HN26B",isDisabled:"TextArea-isDisabled-1lLQi input-isDisabled-3kEMP",hasError:"TextArea-hasError-2Lomk input-hasError-FVFYC"}},function(e,t){e.exports={input:"TextInput-input-34u_B input-input-2ol6B",small:"TextInput-small-32Icv input-small-1pC38",large:"TextInput-large-3XjFh input-large-1cY_k",isDisabled:"TextInput-isDisabled-2ndPL input-isDisabled-3kEMP",hasError:"TextInput-hasError-2pH7B input-hasError-FVFYC"}},function(e,t){e.exports={inputs:"UnitInput-inputs-1Fc89",
textInput:"UnitInput-textInput-QSuLW TextInput-input-34u_B input-input-2ol6B"}},function(e,t){e.exports={recordIconContainer:"RecordIcon-recordIconContainer-1PXGA",recordCircle:"RecordIcon-recordCircle-176nl PlayButton-playCircle-3Evfd",recordIcon:"RecordIcon-recordIcon-2ygXS"}},function(e,t){e.exports={avatar:"AvatarImg-avatar-3Op56"}},function(e,t){e.exports={card:"PosterCard-card-1rN9g"}},function(e,t){e.exports={imageContainer:"PosterCardImg-imageContainer-1Ar4M"}},function(e,t){e.exports={
scroller:"VirtualListScroller-scroller-37EU_"}},function(e,t){e.exports={menuPortal:"Menu-menuPortal-2JtDz",menuScroller:"Menu-menuScroller-E0NwY Scroller-vertical-1bgGS",enter:"Menu-enter-TbCfj",enterActive:"Menu-enterActive-33Wwi",leave:"Menu-leave-vNlfT",leaveActive:"Menu-leaveActive-2OK3A"}},function(e,t){e.exports={menu:"MenuContainer-menu-3Gtlw",isDisabled:"MenuContainer-isDisabled-XuJVB",small:"MenuContainer-small-3OQDe",medium:"MenuContainer-medium-2XOYJ",
large:"MenuContainer-large-1Hnrd"}},function(e,t){e.exports={menuItem:"MenuItem-menuItem-25266",isDisabled:"MenuItem-isDisabled-3RIp9",default:"MenuItem-default-tX5Cl",primary:"MenuItem-primary-2OjZp",success:"MenuItem-success-1gbTj",danger:"MenuItem-danger-5yAK7"}},function(e,t){e.exports={separator:"MenuSeparator-separator-2QS60"}},function(e,t){e.exports={menuItemContainer:"SelectedMenuItem-menuItemContainer-7SpJZ",menuLabel:"SelectedMenuItem-menuLabel-1tKeW",
selectedIcon:"SelectedMenuItem-selectedIcon-3S2cy",isSelected:"SelectedMenuItem-isSelected-3zuEi"}},function(e,t){e.exports={confirmBody:"ConfirmModal-confirmBody-10ifx ModalBody-modalScroller-rPF2V ModalBody-modalBody-3y4WA",accordLabel:"ConfirmModal-accordLabel-2PQCS",accordInput:"ConfirmModal-accordInput-3RjnH",cancelButton:"ConfirmModal-cancelButton-3A26b",confirmButton:"ConfirmModal-confirmButton-1DVQ-"}},function(e,t){e.exports={listModalInnerBody:"ListModal-listModalInnerBody-1mBaL"}
},function(e,t){e.exports={listModalItem:"ListModalItem-listModalItem-3SDr-"}},function(e,t){e.exports={modalContainer:"Modal-modalContainer-19n0t",modalBackdrop:"Modal-modalBackdrop-1kQnb",modal:"Modal-modal-y6FAw",small:"Modal-small-1iA7m Modal-modal-y6FAw",medium:"Modal-medium-2lxgW Modal-modal-y6FAw",large:"Modal-large-sIqvF Modal-modal-y6FAw",enter:"Modal-enter-E0Cly",enterActive:"Modal-enterActive-1Nkvf",leave:"Modal-leave-2W8w6",leaveActive:"Modal-leaveActive-1X1Po"}},function(e,t){
e.exports={modalBody:"ModalBody-modalBody-3y4WA",modalScroller:"ModalBody-modalScroller-rPF2V ModalBody-modalBody-3y4WA",innerModalBody:"ModalBody-innerModalBody-1eSxU"}},function(e,t){e.exports={modalContent:"ModalContent-modalContent-2HRs1",closeButton:"ModalContent-closeButton-3VDDx"}},function(e,t){e.exports={modalScroller:"ModalContentCenter-modalScroller-3cd-b ModalBody-modalScroller-rPF2V ModalBody-modalBody-3y4WA",
innerModalBody:"ModalContentCenter-innerModalBody-3jQ5I ModalBody-innerModalBody-1eSxU"}},function(e,t){e.exports={icon:"ModalContentError-icon-235FF",default:"ModalContentError-default-1xFU8",primary:"ModalContentError-primary-34blW",success:"ModalContentError-success-2Wv-f",danger:"ModalContentError-danger-22PUT",message:"ModalContentError-message-3J35m"}},function(e,t){e.exports={modalFooter:"ModalFooter-modalFooter-pJpOu"}},function(e,t){e.exports={
buttonBar:"ModalFooterButtonBar-buttonBar-2NGmN"}},function(e,t){e.exports={modalHeader:"ModalHeader-modalHeader-IGRia"}},function(e,t){e.exports={toolbarButton:"ToolbarButton-toolbarButton-3xzHJ",bottomLeft:"ToolbarButton-bottomLeft-nOJqG Tooltip-bottomLeft-2vO0S Tooltip-tooltip-2AL-W Tooltip-tooltipArrow-2yu7H Tooltip-tooltipTopArrow-1Er8B Tooltip-tooltipLeftAlignArrow-28x2y",
bottomCenter:"ToolbarButton-bottomCenter-1c_3c Tooltip-bottomCenter-3kHKi Tooltip-tooltip-2AL-W Tooltip-tooltipArrow-2yu7H Tooltip-tooltipTopArrow-1Er8B Tooltip-tooltipCenterAlignArrow-2YNMd",bottomRight:"ToolbarButton-bottomRight-1Klcy Tooltip-bottomRight-PO2JM Tooltip-tooltip-2AL-W Tooltip-tooltipArrow-2yu7H Tooltip-tooltipTopArrow-1Er8B Tooltip-tooltipRightAlignArrow-1q7Mh"}},function(e,t){e.exports={toolbarMenu:"ToolbarMenu-toolbarMenu-18yic MenuContainer-menu-3Gtlw"}},function(e,t){
e.exports={tooltipPortal:"Tooltip-tooltipPortal-1IUlb",tooltip:"Tooltip-tooltip-2AL-W",tooltipArrow:"Tooltip-tooltipArrow-2yu7H",tooltipBottomArrow:"Tooltip-tooltipBottomArrow-3Gqax",tooltipTopArrow:"Tooltip-tooltipTopArrow-1Er8B",tooltipRightArrow:"Tooltip-tooltipRightArrow-30EZr",tooltipLeftArrow:"Tooltip-tooltipLeftArrow-3yO_q",tooltipCenterAlignArrow:"Tooltip-tooltipCenterAlignArrow-2YNMd",tooltipLeftAlignArrow:"Tooltip-tooltipLeftAlignArrow-28x2y",
tooltipRightAlignArrow:"Tooltip-tooltipRightAlignArrow-1q7Mh",tooltipMiddleAlignArrow:"Tooltip-tooltipMiddleAlignArrow-3RB_t",topLeft:"Tooltip-topLeft-3hUdA Tooltip-tooltip-2AL-W Tooltip-tooltipArrow-2yu7H Tooltip-tooltipBottomArrow-3Gqax Tooltip-tooltipLeftAlignArrow-28x2y",topCenter:"Tooltip-topCenter-3_uIB Tooltip-tooltip-2AL-W Tooltip-tooltipArrow-2yu7H Tooltip-tooltipBottomArrow-3Gqax Tooltip-tooltipCenterAlignArrow-2YNMd",
topRight:"Tooltip-topRight-2GjWg Tooltip-tooltip-2AL-W Tooltip-tooltipArrow-2yu7H Tooltip-tooltipBottomArrow-3Gqax Tooltip-tooltipRightAlignArrow-1q7Mh",bottomLeft:"Tooltip-bottomLeft-2vO0S Tooltip-tooltip-2AL-W Tooltip-tooltipArrow-2yu7H Tooltip-tooltipTopArrow-1Er8B Tooltip-tooltipLeftAlignArrow-28x2y",bottomCenter:"Tooltip-bottomCenter-3kHKi Tooltip-tooltip-2AL-W Tooltip-tooltipArrow-2yu7H Tooltip-tooltipTopArrow-1Er8B Tooltip-tooltipCenterAlignArrow-2YNMd",
bottomRight:"Tooltip-bottomRight-PO2JM Tooltip-tooltip-2AL-W Tooltip-tooltipArrow-2yu7H Tooltip-tooltipTopArrow-1Er8B Tooltip-tooltipRightAlignArrow-1q7Mh",middleLeft:"Tooltip-middleLeft-2WibI Tooltip-tooltip-2AL-W Tooltip-tooltipArrow-2yu7H Tooltip-tooltipRightArrow-30EZr Tooltip-tooltipMiddleAlignArrow-3RB_t",middleRight:"Tooltip-middleRight-3n22h Tooltip-tooltip-2AL-W Tooltip-tooltipArrow-2yu7H Tooltip-tooltipLeftArrow-3yO_q Tooltip-tooltipMiddleAlignArrow-3RB_t",enter:"Tooltip-enter-xqbEr",
enterActive:"Tooltip-enterActive-1Lwxk",leave:"Tooltip-leave-1kw2J",leaveActive:"Tooltip-leaveActive-1P4dI"}},function(e,t){e.exports={cardContainer:"DirectoryPosterCard-cardContainer-1D5YB MetadataPosterCard-cardContainer-2gRcQ",card:"DirectoryPosterCard-card-1D5Z3 MetadataPosterCard-card-3bztR",face:"DirectoryPosterCard-face-3GaHA MetadataPosterCardFace-face--dz_D MetadataPosterCardFace-poster-L2P6r",
faceIsOtherItemSelected:"DirectoryPosterCard-faceIsOtherItemSelected-3gLFH MetadataPosterCardFace-isOtherItemSelected-z8NtN",overlay:"DirectoryPosterCard-overlay-2_RT1 MetadataPosterCardOverlay-overlay-1uMpL",overlayIsOtherItemSelected:"DirectoryPosterCard-overlayIsOtherItemSelected-UmQeB MetadataPosterCardOverlay-isOtherItemSelected-jneUT MetadataPosterCardOverlay-isConflictingTypeSelected-E8CIx",
overlayBackground:"DirectoryPosterCard-overlayBackground-aHrH2 MetadataPosterCardOverlay-background-2EwyB",overlayLink:"DirectoryPosterCard-overlayLink-2L3eI MetadataPosterCardOverlay-link-1Swhl",overlaySelectCoverButton:"DirectoryPosterCard-overlaySelectCoverButton-2aeHf MetadataPosterCardOverlay-selectCoverButton-ukQUf MetadataPosterCardOverlay-coverButton-2Dm9P"}},function(e,t){e.exports={title:"DirectoryPosterCell-title-2xUVT MetadataPosterTitle-title-3tU5F",
titleContainer:"DirectoryPosterCell-titleContainer-14b2N MetadataPosterCell-titleContainer-24DI6",placeholder:"DirectoryPosterCell-placeholder-3ikvG MetadataPosterCardFace-poster-L2P6r",isOtherItemSelected:"DirectoryPosterCell-isOtherItemSelected-16VyN MetadataPosterCardFace-isOtherItemSelected-z8NtN"}},function(e,t){e.exports={liveTVSettings:"LiveTVSettings-liveTVSettings-w68YV",info:"LiveTVSettings-info-1gi-J",moreInfo:"LiveTVSettings-moreInfo-N5ya4",
upsell:"LiveTVSettings-upsell-2rmGX PlexPassUpsell-upsell-3i2JL"}},function(e,t){e.exports={device:"DVRDevice-device-3IwH6",deviceImage:"DVRDevice-deviceImage-1efFa DVRDeviceImage-image-1q4Bg",details:"DVRDevice-details-F9a0M",model:"DVRDevice-model-1unSm",deviceSettingsIcon:"DVRDevice-deviceSettingsIcon-wNdKg",uri:"DVRDevice-uri-2Vhv0",deviceWarning:"DVRDevice-deviceWarning-UAoFi",deviceWarningIconContainer:"DVRDevice-deviceWarningIconContainer-29K1l",
separator:"DVRDevice-separator-2sIVz DashSeparator-separator-2a3yn",info:"DVRDevice-info-kn53L",removeDeviceContainer:"DVRDevice-removeDeviceContainer-2W5hI",removeDevice:"DVRDevice-removeDevice-3N-rD"}},function(e,t){e.exports={image:"DVRDeviceImage-image-1q4Bg"}},function(e,t){e.exports={form:"DVRDeviceSettingsModalContent-form-1a8dR",container:"DVRDeviceSettingsModalContent-container-320C5",info:"DVRDeviceSettingsModalContent-info-3oNQ9",
deviceImage:"DVRDeviceSettingsModalContent-deviceImage-3ud4c",model:"DVRDeviceSettingsModalContent-model-3qWA4",settings:"DVRDeviceSettingsModalContent-settings-3-Kyi"}},function(e,t){e.exports={dvr:"DVRListItem-dvr-1CoTi",header:"DVRListItem-header-Lb8AE",separator:"DVRListItem-separator-2BuN4 DashSeparator-separator-2a3yn",name:"DVRListItem-name-rIFJz",deleteLink:"DVRListItem-deleteLink-1ATve",actions:"DVRListItem-actions-1mU6F",actionIcon:"DVRListItem-actionIcon-fPqPl",
devices:"DVRListItem-devices-2eZl_",addDeviceIcon:"DVRListItem-addDeviceIcon-2n26f"}},function(e,t){e.exports={progressContainer:"DVRManageChannelsInfo-progressContainer-1JJ2z",scroller:"DVRManageChannelsInfo-scroller-1mBV9 Scroller-vertical-1bgGS"}},function(e,t){e.exports={form:"DVRManageChannelsModalContent-form-2ykdJ",manageChannelsBody:"DVRManageChannelsModalContent-manageChannelsBody-PHeFR ModalBody-modalBody-3y4WA",
scanChannelsContainer:"DVRManageChannelsModalContent-scanChannelsContainer-1k91y",scanChannelsMessage:"DVRManageChannelsModalContent-scanChannelsMessage-3d_Eu",scroller:"DVRManageChannelsModalContent-scroller-1MbzJ Scroller-vertical-1bgGS",centeredContainer:"DVRManageChannelsModalContent-centeredContainer-6K7kA",progressContainer:"DVRManageChannelsModalContent-progressContainer-1GUW1"}},function(e,t){e.exports={form:"DVRSettingsModalContent-form-2-MX9"}},function(e,t){e.exports={
attribution:"GracenoteAttribution-attribution-16wMJ"}},function(e,t){e.exports={modal:"DVRSetupModal-modal-3IeKF Modal-medium-2lxgW Modal-modal-y6FAw"}},function(e,t){e.exports={errorMessage:"DVRSetupModalContent-errorMessage-1lyhv",errorIcon:"DVRSetupModalContent-errorIcon-38FJ7"}},function(e,t){e.exports={footer:"DVRSetupModalFooter-footer-VLPNT ModalFooter-modalFooter-pJpOu"}},function(e,t){e.exports={deviceImageContainer:"DVRSetupDevice-deviceImageContainer-2xU-H",
selectButton:"DVRSetupDevice-selectButton-ae6X2 SelectButton-selectButton-3Kbjm",details:"DVRSetupDevice-details-3KGan",make:"DVRSetupDevice-make-1bKta",model:"DVRSetupDevice-model-2C8RY",uri:"DVRSetupDevice-uri-1doZG",channelCount:"DVRSetupDevice-channelCount-3h5cj"}},function(e,t){e.exports={channel:"DVRSetupDeviceChannel-channel-3Z90s",channelIdentifier:"DVRSetupDeviceChannel-channelIdentifier-1EqGb"}},function(e,t){e.exports={
deviceInfoBody:"DVRSetupDeviceInfo-deviceInfoBody-2LzEx ModalBody-modalBody-3y4WA",deviceInfoForm:"DVRSetupDeviceInfo-deviceInfoForm-1K-pG",channelInfo:"DVRSetupDeviceInfo-channelInfo-32L38",channelDetails:"DVRSetupDeviceInfo-channelDetails-314k9",deviceDetails:"DVRSetupDeviceInfo-deviceDetails-3DYVe",countryInputGroup:"DVRSetupDeviceInfo-countryInputGroup-5CATq",channelScanSourceSelect:"DVRSetupDeviceInfo-channelScanSourceSelect-22g5X SelectInput-input-1WBUz input-input-2ol6B",
deviceChannelsContainer:"DVRSetupDeviceInfo-deviceChannelsContainer-2ffnz",deviceChannels:"DVRSetupDeviceInfo-deviceChannels-2erQ6 Scroller-vertical-1bgGS",deviceChannelsInfo:"DVRSetupDeviceInfo-deviceChannelsInfo-3oUd5 DVRSetupDeviceInfo-deviceChannels-2erQ6 Scroller-vertical-1bgGS"}},function(e,t){e.exports={container:"DVRSetupDeviceInfoChannelInfo-container-38Jxg",settings:"DVRSetupDeviceInfoChannelInfo-settings-3rutx",message:"DVRSetupDeviceInfoChannelInfo-message-1d9gE",
noChannelsIcon:"DVRSetupDeviceInfoChannelInfo-noChannelsIcon-339HB",clockContainer:"DVRSetupDeviceInfoChannelInfo-clockContainer-2n_Vv",noChannelsIconContainer:"DVRSetupDeviceInfoChannelInfo-noChannelsIconContainer-25faJ",clock:"DVRSetupDeviceInfoChannelInfo-clock-2vxBT",clockTime:"DVRSetupDeviceInfoChannelInfo-clockTime-qyydg DVRSetupDeviceInfoChannelInfo-clock-2vxBT",blink:"DVRSetupDeviceInfoChannelInfo-blink-107UT",clockBackground:"DVRSetupDeviceInfoChannelInfo-clockBackground-2moSt",
noChannelsIconBackground:"DVRSetupDeviceInfoChannelInfo-noChannelsIconBackground-3tc9i"}},function(e,t){e.exports={message:"DVRSetupDeviceInfoMessage-message-2ozwd"}},function(e,t){e.exports={addDeviceButton:"DVRSetupDeviceSelector-addDeviceButton-37qk2",manualDeviceButtonContainer:"DVRSetupDeviceSelector-manualDeviceButtonContainer-3-lqe",manualDeviceContainer:"DVRSetupDeviceSelector-manualDeviceContainer-6K51i",manualAddressArrow:"DVRSetupDeviceSelector-manualAddressArrow-e9thn",
manualDeviceInput:"DVRSetupDeviceSelector-manualDeviceInput-22enz TextInput-input-34u_B input-input-2ol6B",deviceCount:"DVRSetupDeviceSelector-deviceCount-6HUil",devices:"DVRSetupDeviceSelector-devices-2f43G",device:"DVRSetupDeviceSelector-device-QX9WA",spinnerContainer:"DVRSetupDeviceSelector-spinnerContainer-2U4Wi"}},function(e,t){e.exports={message:"EPGDownload-message-1nld-",spinnerContainer:"EPGDownload-spinnerContainer-OHwKI",spinnerMessage:"EPGDownload-spinnerMessage-j4e6W"}
},function(e,t){e.exports={message:"EPGMapping-message-2-bns",spinnerContainer:"EPGMapping-spinnerContainer-TAwZ1"}},function(e,t){e.exports={form:"EPGSettings-form-ZJ79Y",message:"EPGSettings-message-159ME",regionInput:"EPGSettings-regionInput-1wXWR SelectInput-input-1WBUz input-input-2ol6B",fetchingSpinner:"EPGSettings-fetchingSpinner-3HphG Spinner-spinner-290-o spin-spin-2Ou6V"}},function(e,t){e.exports={channelMapping:"DeviceChannelMapping-channelMapping-2Z4xx",
deviceInfo:"DeviceChannelMapping-deviceInfo-3HnWc",channelEnabled:"DeviceChannelMapping-channelEnabled-1FW8M",deviceIdentifier:"DeviceChannelMapping-deviceIdentifier-3-v5l",mappingDisabled:"DeviceChannelMapping-mappingDisabled-3uY5j",channelName:"DeviceChannelMapping-channelName-2knCV",epgChannel:"DeviceChannelMapping-epgChannel-tjRMx",drmChannel:"DeviceChannelMapping-drmChannel-2CJhX",drmChannelBadge:"DeviceChannelMapping-drmChannelBadge-1_tZU"}},function(e,t){e.exports={
form:"DeviceChannelMappings-form-BhAiS",channelMappingsBody:"DeviceChannelMappings-channelMappingsBody-1KPox ModalBody-modalBody-3y4WA",programGuideLabel:"DeviceChannelMappings-programGuideLabel-3tWK8",programGuideSelectContainer:"DeviceChannelMappings-programGuideSelectContainer-1cpiV",programGuideTitle:"DeviceChannelMappings-programGuideTitle-3xOjM",centeredContainer:"DeviceChannelMappings-centeredContainer-3NaUq",scroller:"DeviceChannelMappings-scroller-2_Aea Scroller-vertical-1bgGS",
channelMappingsContainer:"DeviceChannelMappings-channelMappingsContainer-2gZaI"}},function(e,t){e.exports={container:"DeviceChannelMappingsHeader-container-1VViT",deviceChannels:"DeviceChannelMappingsHeader-deviceChannels-iZFrg",guideChannels:"DeviceChannelMappingsHeader-guideChannels-3D6cO",deviceChannelsPadding:"DeviceChannelMappingsHeader-deviceChannelsPadding-AkfFy"}},function(e,t){e.exports={hubCell:"HubCell-hubCell-3Ys17",hubHeader:"HubCell-hubHeader-l3HPI",
hubActions:"HubCell-hubActions-28w1-",hubScrollButton:"HubCell-hubScrollButton-2Y7ri"}},function(e,t){e.exports={hubCellHeader:"HubCellHeader-hubCellHeader-2pvYN"}},function(e,t){e.exports={hubCellTitle:"HubCellTitle-hubCellTitle-2abIn"}},function(e,t){e.exports={header:"MetadataMomentCell-header-3vgVa"}},function(e,t){e.exports={photoContainer:"MetadataPhotoCell-photoContainer-1HkmQ",photo:"MetadataPhotoCell-photo-Po3Kx",image:"MetadataPhotoCell-image-3KqaF",
badge:"MetadataPhotoCell-badge-2L0KJ",title:"MetadataPhotoCell-title-OzhEq"}},function(e,t){e.exports={titleContainer:"MetadataPosterCell-titleContainer-24DI6",continueWatchingTitleContainer:"MetadataPosterCell-continueWatchingTitleContainer-3yCAY"}},function(e,t){e.exports={item:"MetadataSummaryCell-item-3B6Cc",isActionsMenuOpen:"MetadataSummaryCell-isActionsMenuOpen-2SCBd",button:"MetadataSummaryCell-button-zZgSe",hasActiveSelection:"MetadataSummaryCell-hasActiveSelection-3nabO",
underlay:"MetadataSummaryCell-underlay-3M2OQ",isForcingSelection:"MetadataSummaryCell-isForcingSelection-2Iov2",overlay:"MetadataSummaryCell-overlay-1lk0o",editButton:"MetadataSummaryCell-editButton-2RfiY MetadataSummaryCell-button-zZgSe",moreButton:"MetadataSummaryCell-moreButton-1rf6A MetadataSummaryCell-button-zZgSe",isSelected:"MetadataSummaryCell-isSelected-fha5M",selectButton:"MetadataSummaryCell-selectButton-3KJeM SelectButton-selectButton-3Kbjm MetadataSummaryCell-button-zZgSe",
alternateItem:"MetadataSummaryCell-alternateItem-3K1M6 MetadataSummaryCell-item-3B6Cc",posterContainer:"MetadataSummaryCell-posterContainer-1Vc-o",summaryContainer:"MetadataSummaryCell-summaryContainer-6HJG5",librarySummaryContainer:"MetadataSummaryCell-librarySummaryContainer-HZdA_ MetadataSummaryCell-summaryContainer-6HJG5",titleContainer:"MetadataSummaryCell-titleContainer-p5H3c",title:"MetadataSummaryCell-title-3jmFb",rating:"MetadataSummaryCell-rating-2Qtpg",
separator:"MetadataSummaryCell-separator-2zu7c DashSeparator-separator-2a3yn",summary:"MetadataSummaryCell-summary-2xqys",actions:"MetadataSummaryCell-actions-1C9Sh",selectCoverButton:"MetadataSummaryCell-selectCoverButton-2nF-u"}},function(e,t){e.exports={loadingItem:"MetadataSummaryCellLoading-loadingItem-2TLko",alternateLoadingItem:"MetadataSummaryCellLoading-alternateLoadingItem-6d55P MetadataSummaryCellLoading-loadingItem-2TLko",
posterContainer:"MetadataSummaryCellLoading-posterContainer-18W6x"}},function(e,t){e.exports={tableCell:"MetadataTableCell-tableCell-35117",activeTableCell:"MetadataTableCell-activeTableCell-IpsrR MetadataTableCell-tableCell-35117",title:"MetadataTableCell-title-3KMG0"}},function(e,t){e.exports={tableHeader:"MetadataTableHeader-tableHeader-2bHAm",tableHeaderLink:"MetadataTableHeader-tableHeaderLink-7Uy9q",
tableHeaderCell:"MetadataTableHeader-tableHeaderCell-61R48 MetadataTableCell-tableCell-35117",activeTableHeaderCell:"MetadataTableHeader-activeTableHeaderCell-16E3M MetadataTableHeader-tableHeaderCell-61R48 MetadataTableCell-tableCell-35117",tableHeaderTitle:"MetadataTableHeader-tableHeaderTitle-2CMNj",sortDirectionIcon:"MetadataTableHeader-sortDirectionIcon-3oFWZ",
playCell:"MetadataTableHeader-playCell-1oEdH MetadataTableRow-playCell-ziDSk MetadataTableHeader-tableHeaderCell-61R48 MetadataTableCell-tableCell-35117",actionsCell:"MetadataTableHeader-actionsCell-1RppT MetadataTableRow-libraryActionsCell-2OOmP MetadataTableRow-actionsCell-1ax6E MetadataTableHeader-tableHeaderCell-61R48 MetadataTableCell-tableCell-35117",columnsButton:"MetadataTableHeader-columnsButton-33h2b"}},function(e,t){e.exports={item:"MetadataTableRow-item-11DH-",
isActionsMenuOpen:"MetadataTableRow-isActionsMenuOpen-3yasO",transientTitle:"MetadataTableRow-transientTitle-3nwho",button:"MetadataTableRow-button-1Y7ax",hasActiveSelection:"MetadataTableRow-hasActiveSelection-3A2BE",underlay:"MetadataTableRow-underlay-2ipZb",isForcingSelection:"MetadataTableRow-isForcingSelection-t_XFI",overlay:"MetadataTableRow-overlay-1RiId",transientTitleLeft:"MetadataTableRow-transientTitleLeft-19Y6P MetadataTableRow-transientTitle-3nwho",
transientTitleRight:"MetadataTableRow-transientTitleRight-3JGw3 MetadataTableRow-transientTitle-3nwho",playButton:"MetadataTableRow-playButton-3bNBC PlayButton-playButton-3WX8X MetadataTableRow-button-1Y7ax",editButton:"MetadataTableRow-editButton-1hH1w MetadataTableRow-button-1Y7ax",moreButton:"MetadataTableRow-moreButton-2YKSy MetadataTableRow-button-1Y7ax",isSelected:"MetadataTableRow-isSelected-bNqXl",
selectButton:"MetadataTableRow-selectButton-11Ia9 SelectButton-selectButton-3Kbjm MetadataTableRow-button-1Y7ax",alternateItem:"MetadataTableRow-alternateItem-1-jtp MetadataTableRow-item-11DH-",playCell:"MetadataTableRow-playCell-ziDSk",actionsCell:"MetadataTableRow-actionsCell-1ax6E",libraryActionsCell:"MetadataTableRow-libraryActionsCell-2OOmP MetadataTableRow-actionsCell-1ax6E",selectCoverButton:"MetadataTableRow-selectCoverButton-3SFDJ",
equalizer:"MetadataTableRow-equalizer-35cH_ EqualizerIcon-equalizer-2SoFA"}},function(e,t){e.exports={loadingItem:"MetadataTableRowLoading-loadingItem-2g4_Q",alternateLoadingItem:"MetadataTableRowLoading-alternateLoadingItem-3U7fu MetadataTableRowLoading-loadingItem-2g4_Q"}},function(e,t){e.exports={photoContainer:"PlaylistPhotoCell-photoContainer-3f3c5 MetadataPhotoCell-photoContainer-1HkmQ",image:"PlaylistPhotoCell-image-cXvuq MetadataPhotoCell-image-3KqaF",
photo:"PlaylistPhotoCell-photo-3PIUy MetadataPhotoCell-photo-Po3Kx",badge:"PlaylistPhotoCell-badge-irwqS MetadataPhotoCell-badge-2L0KJ",isSelected:"PlaylistPhotoCell-isSelected-3xObD MetadataPosterCardFace-isSelected-1XUgk",isOtherItemSelected:"PlaylistPhotoCell-isOtherItemSelected-28LaW MetadataPosterCardFace-isOtherItemSelected-z8NtN"}},function(e,t){e.exports={stylesContainer:"MetadataListStylesMenu-stylesContainer-jYQkc",slider:"MetadataListStylesMenu-slider-o88eP Slider-slider-2oLVT",
stylesButton:"MetadataListStylesMenu-stylesButton-21zDb",stylesIcon:"MetadataListStylesMenu-stylesIcon-1r4qe"}},function(e,t){e.exports={divider:"MetadataListStylesMenuDivider-divider-T9bgy PageHeaderDivider-pageHeaderDivider-DvwUq"}},function(e,t){e.exports={completeIcon:"AiringDetailsModalContent-completeIcon-38k0Q",recordingIcon:"AiringDetailsModalContent-recordingIcon-LbdQN",errorIcon:"AiringDetailsModalContent-errorIcon-3syeN",
separator:"AiringDetailsModalContent-separator-3OQLc DashSeparator-separator-2a3yn",summary:"AiringDetailsModalContent-summary-vVorL"}},function(e,t){e.exports={container:"ConflictItemRow-container-x4THp"}},function(e,t){e.exports={title:"ConflictTitle-title-1g7j7",secondaryTitle:"ConflictTitle-secondaryTitle-2kiOL"}},function(e,t){e.exports={message:"MediaSubscriptionConflict-message-1ZbxO",conflicts:"MediaSubscriptionConflict-conflicts-3hyQu"}},function(e,t){e.exports={
baseForm:"MediaSubscriptionForm-baseForm-2bT5U",advancedForm:"MediaSubscriptionForm-advancedForm-26WFw",advancedSettings:"MediaSubscriptionForm-advancedSettings-3dyPl",baseSettings:"MediaSubscriptionForm-baseSettings-2ssnb",footer:"MediaSubscriptionForm-footer-2U6dh ModalFooter-modalFooter-pJpOu",advancedIcon:"MediaSubscriptionForm-advancedIcon-j3Yxg"}},function(e,t){e.exports={errorMessage:"MediaSubscriptionNoLibrary-errorMessage-39UUf",addIcon:"MediaSubscriptionNoLibrary-addIcon-2B_Pq"}
},function(e,t){e.exports={container:"MediaSubscriptionTargetPosterTitle-container-2LmdB",left:"MediaSubscriptionTargetPosterTitle-left-3Kcsf",right:"MediaSubscriptionTargetPosterTitle-right-18jQp",subscriptionBadge:"MediaSubscriptionTargetPosterTitle-subscriptionBadge-10p6v MetadataPosterCardOverlay-badge-1FU-p",subscriptionBadgeIcon:"MediaSubscriptionTargetPosterTitle-subscriptionBadgeIcon-3Aqfc",titleContainer:"MediaSubscriptionTargetPosterTitle-titleContainer-1Zl4x",
staticHeightTitleContainer:"MediaSubscriptionTargetPosterTitle-staticHeightTitleContainer-3Pp5d MediaSubscriptionTargetPosterTitle-titleContainer-1Zl4x"}},function(e,t){e.exports={title:"MediaSubscriptionTitle-title-1I857",secondaryTitle:"MediaSubscriptionTitle-secondaryTitle-1srwE"}},function(e,t){e.exports={overlay:"EPGPosterCardOverlay-overlay-21AW0",background:"EPGPosterCardOverlay-background-nZkC7",link:"EPGPosterCardOverlay-link-hVinz",
subscriptionBadge:"EPGPosterCardOverlay-subscriptionBadge-2DXam MetadataPosterCardOverlay-badge-1FU-p",subscriptionBadgeIcon:"EPGPosterCardOverlay-subscriptionBadgeIcon-2CSvd",progress:"EPGPosterCardOverlay-progress-2KBp3 PosterCardOverlayProgress-progress-16k0B",button:"EPGPosterCardOverlay-button-1-wi- MetadataPosterCardOverlay-button-M43H-",
playButton:"EPGPosterCardOverlay-playButton-2VFIk RecordButton-recordButton-1BGta PlayButton-playButton-3WX8X RecordIcon-recordIconContainer-1PXGA EPGPosterCardOverlay-button-1-wi- MetadataPosterCardOverlay-button-M43H-",recordButton:"EPGPosterCardOverlay-recordButton-hPelU RecordButton-recordButton-1BGta PlayButton-playButton-3WX8X RecordIcon-recordIconContainer-1PXGA EPGPosterCardOverlay-button-1-wi- MetadataPosterCardOverlay-button-M43H-",
playCoverButton:"EPGPosterCardOverlay-playCoverButton-virTg EPGPosterCardOverlay-playButton-2VFIk RecordButton-recordButton-1BGta PlayButton-playButton-3WX8X RecordIcon-recordIconContainer-1PXGA EPGPosterCardOverlay-button-1-wi- MetadataPosterCardOverlay-button-M43H-",playCircle:"EPGPosterCardOverlay-playCircle-3e6vz MetadataPosterCardOverlay-playCircle-M67q6 PlayButton-playCircle-3Evfd MetadataPosterCardOverlay-centerCircle-1Mg-s",
recordCoverButton:"EPGPosterCardOverlay-recordCoverButton-3QBBo EPGPosterCardOverlay-recordButton-hPelU RecordButton-recordButton-1BGta PlayButton-playButton-3WX8X RecordIcon-recordIconContainer-1PXGA EPGPosterCardOverlay-button-1-wi- MetadataPosterCardOverlay-button-M43H-",recordCircle:"EPGPosterCardOverlay-recordCircle-fVDxD RecordIcon-recordCircle-176nl PlayButton-playCircle-3Evfd MetadataPosterCardOverlay-centerCircle-1Mg-s",
recordIcon:"EPGPosterCardOverlay-recordIcon-1-ns1 RecordIcon-recordIcon-2ygXS",moreButton:"EPGPosterCardOverlay-moreButton-3owPW EPGPosterCardOverlay-button-1-wi- MetadataPosterCardOverlay-button-M43H-",isActionsMenuOpen:"EPGPosterCardOverlay-isActionsMenuOpen-1O_P2"}},function(e,t){e.exports={card:"MetadataPosterButtonCard-card-2T8TR",playButton:"MetadataPosterButtonCard-playButton-aOV1E PlayButton-playButton-3WX8X",
playCircle:"MetadataPosterButtonCard-playCircle-366hc PlayButton-playCircle-3Evfd",recordButton:"MetadataPosterButtonCard-recordButton-1m2tb RecordIcon-recordIconContainer-1PXGA",recordCircle:"MetadataPosterButtonCard-recordCircle-1UtXW RecordIcon-recordCircle-176nl PlayButton-playCircle-3Evfd"}},function(e,t){e.exports={cardContainer:"MetadataPosterCard-cardContainer-2gRcQ",card:"MetadataPosterCard-card-3bztR",isFlipped:"MetadataPosterCard-isFlipped-2lUII"}},function(e,t){e.exports={
poster:"MetadataPosterCardFace-poster-L2P6r",face:"MetadataPosterCardFace-face--dz_D MetadataPosterCardFace-poster-L2P6r",isSelected:"MetadataPosterCardFace-isSelected-1XUgk",isOtherItemSelected:"MetadataPosterCardFace-isOtherItemSelected-z8NtN",faceFront:"MetadataPosterCardFace-faceFront-1bxHG",faceBack:"MetadataPosterCardFace-faceBack-1ofDH"}},function(e,t){e.exports={placeholderIcon:"MetadataPosterCardIcon-placeholderIcon-2P76z"}},function(e,t){e.exports={
overlay:"MetadataPosterCardOverlay-overlay-1uMpL",background:"MetadataPosterCardOverlay-background-2EwyB",link:"MetadataPosterCardOverlay-link-1Swhl",badge:"MetadataPosterCardOverlay-badge-1FU-p",topLeftBadge:"MetadataPosterCardOverlay-topLeftBadge-2ooI_ MetadataPosterCardOverlay-badge-1FU-p",versionBadge:"MetadataPosterCardOverlay-versionBadge-1cDAu MetadataPosterCardOverlay-topLeftBadge-2ooI_ MetadataPosterCardOverlay-badge-1FU-p",
versionBadgeIcon:"MetadataPosterCardOverlay-versionBadgeIcon-JkU8E",smartBadge:"MetadataPosterCardOverlay-smartBadge-2YOF_ MetadataPosterCardOverlay-topLeftBadge-2ooI_ MetadataPosterCardOverlay-badge-1FU-p",smartBadgeIcon:"MetadataPosterCardOverlay-smartBadgeIcon-378Sy",unwatchedBadge:"MetadataPosterCardOverlay-unwatchedBadge-Qn1fv MetadataPosterCardOverlay-badge-1FU-p",unwatchedTagContainer:"MetadataPosterCardOverlay-unwatchedTagContainer-1lcEn",
unwatchedTag:"MetadataPosterCardOverlay-unwatchedTag-Fqazx MetadataPosterCardOverlay-unwatchedBadge-Qn1fv MetadataPosterCardOverlay-badge-1FU-p",progress:"MetadataPosterCardOverlay-progress-2voxf PosterCardOverlayProgress-progress-16k0B",button:"MetadataPosterCardOverlay-button-M43H-",centerCircle:"MetadataPosterCardOverlay-centerCircle-1Mg-s",playButton:"MetadataPosterCardOverlay-playButton-1fjhk PlayButton-playButton-3WX8X MetadataPosterCardOverlay-button-M43H-",
playCoverButton:"MetadataPosterCardOverlay-playCoverButton-I7oU3 MetadataPosterCardOverlay-playButton-1fjhk PlayButton-playButton-3WX8X MetadataPosterCardOverlay-button-M43H-",playCircle:"MetadataPosterCardOverlay-playCircle-M67q6 PlayButton-playCircle-3Evfd MetadataPosterCardOverlay-centerCircle-1Mg-s",selectButton:"MetadataPosterCardOverlay-selectButton-3rwSV SelectButton-selectButton-3Kbjm MetadataPosterCardOverlay-button-M43H-",
selectCircle:"MetadataPosterCardOverlay-selectCircle-3ql8S SelectButton-selectCircle-3tdvG",coverButton:"MetadataPosterCardOverlay-coverButton-2Dm9P",selectCoverButton:"MetadataPosterCardOverlay-selectCoverButton-ukQUf MetadataPosterCardOverlay-coverButton-2Dm9P",deselectCoverButton:"MetadataPosterCardOverlay-deselectCoverButton-3mzek MetadataPosterCardOverlay-coverButton-2Dm9P",editButton:"MetadataPosterCardOverlay-editButton-7oR-Q MetadataPosterCardOverlay-button-M43H-",
moreButton:"MetadataPosterCardOverlay-moreButton-3FK-K MetadataPosterCardOverlay-button-M43H-",removeButton:"MetadataPosterCardOverlay-removeButton-3hIPx MetadataPosterCardOverlay-button-M43H-",isActionsMenuOpen:"MetadataPosterCardOverlay-isActionsMenuOpen-AvHIX",isOtherItemSelected:"MetadataPosterCardOverlay-isOtherItemSelected-jneUT",hasActiveSelection:"MetadataPosterCardOverlay-hasActiveSelection-2pflV",
refreshingCircle:"MetadataPosterCardOverlay-refreshingCircle-3Ebpe MetadataPosterCardOverlay-centerCircle-1Mg-s",trashCircle:"MetadataPosterCardOverlay-trashCircle-XoEoZ MetadataPosterCardOverlay-centerCircle-1Mg-s",isSelected:"MetadataPosterCardOverlay-isSelected-2muun",isConflictingTypeSelected:"MetadataPosterCardOverlay-isConflictingTypeSelected-E8CIx",isModifierKeyPressed:"MetadataPosterCardOverlay-isModifierKeyPressed-2cmkd",isRefreshing:"MetadataPosterCardOverlay-isRefreshing-2cSpK",
isTrash:"MetadataPosterCardOverlay-isTrash-1RTBu",refreshingSpinnerContainer:"MetadataPosterCardOverlay-refreshingSpinnerContainer-1ERDt",refreshingSpinner:"MetadataPosterCardOverlay-refreshingSpinner-ipJiy",refreshingIcon:"MetadataPosterCardOverlay-refreshingIcon-3dF55"}},function(e,t){e.exports={placeholder:"MetadataPosterCardPlaceholder-placeholder-pMf-q MetadataPosterCardFace-poster-L2P6r",isSelected:"MetadataPosterCardPlaceholder-isSelected-34TSl MetadataPosterCardFace-isSelected-1XUgk",
isOtherItemSelected:"MetadataPosterCardPlaceholder-isOtherItemSelected-3sjrF MetadataPosterCardFace-isOtherItemSelected-z8NtN"}},function(e,t){e.exports={title:"MetadataPosterTitle-title-3tU5F",isSecondary:"MetadataPosterTitle-isSecondary-2VUxY",isSplitLeft:"MetadataPosterTitle-isSplitLeft-1zfWS",isSplitRight:"MetadataPosterTitle-isSplitRight-lf6Nx"}},function(e,t){e.exports={progress:"PosterCardOverlayProgress-progress-16k0B",progressTrack:"PosterCardOverlayProgress-progressTrack-3luzP",
progressBar:"PosterCardOverlayProgress-progressBar-3k291"}},function(e,t){e.exports={card:"TagPosterCard-card-RVD0D MetadataPosterCardFace-poster-L2P6r"}},function(e,t){e.exports={container:"CriticRating-container-2t5Lw",rating:"CriticRating-rating-1Ntfn",rt:"CriticRating-rt-Zm7_X",ratingImage:"CriticRating-ratingImage-1bHp5",imdb:"CriticRating-imdb-16xaH CriticRating-ratingImage-1bHp5",certified:"CriticRating-certified-hBNaw CriticRating-ratingImage-1bHp5",
ripe:"CriticRating-ripe-1UFtI CriticRating-ratingImage-1bHp5",rotten:"CriticRating-rotten-33uVa CriticRating-ratingImage-1bHp5",spilled:"CriticRating-spilled-10bCO CriticRating-ratingImage-1bHp5",upright:"CriticRating-upright-3nkvV CriticRating-ratingImage-1bHp5",other:"CriticRating-other-uJc1K CriticRating-ratingImage-1bHp5"}},function(e,t){e.exports={titleContainer:"MetadataTableTitle-titleContainer-3sPQC",title:"MetadataTableTitle-title-2WmEM",
folderIconContainer:"MetadataTableTitle-folderIconContainer-3Tcvn MetadataTitleDecoratorIcon-decoratorIconContainer-3n0am",folderIcon:"MetadataTableTitle-folderIcon-1bAao MetadataTitleDecoratorIcon-decoratorIcon-sjuWW",multiVersionIcon:"MetadataTableTitle-multiVersionIcon-1lcNL MetadataTitleDecoratorIcon-decoratorIcon-sjuWW"}},function(e,t){e.exports={separator:"MetadataTitleAirDate-separator-2i3bJ DashSeparator-separator-2a3yn"}},function(e,t){e.exports={
titleContainer:"MetadataTitleCombinedTitleTrackArtist-titleContainer-4jblz",title:"MetadataTitleCombinedTitleTrackArtist-title-2YgMr",trackArtist:"MetadataTitleCombinedTitleTrackArtist-trackArtist-19qju"}},function(e,t){e.exports={decoratorIconContainer:"MetadataTitleDecoratorIcon-decoratorIconContainer-3n0am",decoratorIcon:"MetadataTitleDecoratorIcon-decoratorIcon-sjuWW"}},function(e,t){e.exports={
unwatchedCircle:"MetadataTitleMiniProgress-unwatchedCircle-235-S MetadataTitleProgress-unwatchedCircle-25KKn",partiallyWatchedCircle:"MetadataTitleMiniProgress-partiallyWatchedCircle-1V9BO MetadataTitleMiniProgress-unwatchedCircle-235-S MetadataTitleProgress-unwatchedCircle-25KKn"}},function(e,t){e.exports={unwatchedCircle:"MetadataTitleProgress-unwatchedCircle-25KKn"}},function(e,t){e.exports={
toolbarRecordButton:"ToolbarRecordButton-toolbarRecordButton-2R8pz ToolbarButton-toolbarButton-3xzHJ PlayButton-playButton-3WX8X RecordIcon-recordIconContainer-1PXGA"}},function(e,t){e.exports={page:"Page-page-aq7i_"}},function(e,t){e.exports={pageContent:"PageContent-pageContent-16mK6",innerPageContent:"PageContent-innerPageContent-3ktLT"}},function(e,t){e.exports={pageHeader:"PageHeader-pageHeader-18RSw"}},function(e,t){e.exports={badge:"PageHeaderBadge-badge-sOmD-"}},function(e,t){e.exports={
link:"PageHeaderBreadcrumbButton-link-1N0DD",button:"PageHeaderBreadcrumbButton-button-1uaPj DisclosureArrowButton-disclosureArrowButton-3tbYZ"}},function(e,t){e.exports={pageHeaderCenter:"PageHeaderCenter-pageHeaderCenter-3Uq10"}},function(e,t){e.exports={pageHeaderDivider:"PageHeaderDivider-pageHeaderDivider-DvwUq"}},function(e,t){e.exports={pageHeaderLeft:"PageHeaderLeft-pageHeaderLeft-2TxSo"}},function(e,t){e.exports={pageHeaderRight:"PageHeaderRight-pageHeaderRight-2CT0g"}},function(e,t){
e.exports={pageHeaderSeparator:"PageHeaderSeparator-pageHeaderSeparator-221fi DashSeparator-separator-2a3yn"}},function(e,t){e.exports={sectionDetails:"AccountFormSection-sectionDetails-1fmdu CloseableFormSection-isPressable-3BPTn SettingsFormSectionDetails-sectionDetails-2rJ3j",label:"AccountFormSection-label-1BA6m FormLabel-label-1sr1f CloseableFormSection-isPressable-3BPTn",submitButton:"AccountFormSection-submitButton-2_-_v"}},function(e,t){e.exports={
avatarContainer:"AvatarEditor-avatarContainer-3eqle",isOverDropTarget:"AvatarEditor-isOverDropTarget-xHyXA",avatarPane:"AvatarEditor-avatarPane-ZIMdI",sliderContainer:"AvatarEditor-sliderContainer-1XP4N",sliderEnd:"AvatarEditor-sliderEnd-LMe5u",sliderWrapper:"AvatarEditor-sliderWrapper-2-DX7",slider:"AvatarEditor-slider-1DyFR Slider-slider-2oLVT",help:"AvatarEditor-help-9JA7x",avatarTextPane:"AvatarEditor-avatarTextPane-3QTnN",avatarActionButtons:"AvatarEditor-avatarActionButtons-29uxG",
avatarFileInput:"AvatarEditor-avatarFileInput-2RZv1"}},function(e,t){e.exports={row:"LinkedAccount-row-B2dK4",rowLinked:"LinkedAccount-rowLinked-1oGBH LinkedAccount-row-B2dK4",rowUnlinked:"LinkedAccount-rowUnlinked-1CEr_ LinkedAccount-row-B2dK4",separator:"LinkedAccount-separator-2K5SK",button:"LinkedAccount-button-2xPPX",buttonGoogle:"LinkedAccount-buttonGoogle-3vahJ LinkedAccount-button-2xPPX",buttonFacebook:"LinkedAccount-buttonFacebook-1qn9Y LinkedAccount-button-2xPPX"}},function(e,t){
e.exports={description:"LinkedAccounts-description-JKP8i",dim:"LinkedAccounts-dim-2wlJA"}},function(e,t){e.exports={formSection:"AudioSubtitleSettingsForm-formSection-2OFZr",submitButton:"AudioSubtitleSettingsForm-submitButton-fWGSg"}},function(e,t){e.exports={dashboardPageContent:"DashboardPage-dashboardPageContent-2rN8X PageContent-innerPageContent-3ktLT",attribution:"DashboardPage-attribution-3AsG5 GracenoteAttribution-attribution-16wMJ"}},function(e,t){e.exports={
refreshingSpinner:"DashboardPageHeader-refreshingSpinner-1yk3F"}},function(e,t){e.exports={emptyPage:"EmptyPage-emptyPage-2AM9u",content:"EmptyPage-content-10PgB",icon:"EmptyPage-icon-31D3Z",default:"EmptyPage-default-26GUD",primary:"EmptyPage-primary-1uNBT",success:"EmptyPage-success-zqYzQ",danger:"EmptyPage-danger-3-2M_",title:"EmptyPage-title-264Jp",description:"EmptyPage-description-oYWtW",footer:"EmptyPage-footer-2lE0T"}},function(e,t){e.exports={
icon:"ErrorPage-icon-ZJ38x EmptyPage-icon-31D3Z"}},function(e,t){e.exports={icon:"InnerErrorPage-icon-tWVPF ErrorPage-icon-ZJ38x EmptyPage-icon-31D3Z"}},function(e,t){e.exports={emptyPage:"InsecureFallbackChoicePage-emptyPage-3RqTd EmptyPage-emptyPage-2AM9u",content:"InsecureFallbackChoicePage-content-hP24c EmptyPage-content-10PgB",title:"InsecureFallbackChoicePage-title-fSQV1 EmptyPage-title-264Jp",description:"InsecureFallbackChoicePage-description-3qJXg EmptyPage-description-oYWtW",
pmsLogo:"InsecureFallbackChoicePage-pmsLogo-rf-KR",button:"InsecureFallbackChoicePage-button-Hd0hl"}},function(e,t){e.exports={emptyPage:"ServerDownloadRequiredPage-emptyPage-2rkKB EmptyPage-emptyPage-2AM9u",content:"ServerDownloadRequiredPage-content-CK6sE EmptyPage-content-10PgB",title:"ServerDownloadRequiredPage-title-3HyW3 EmptyPage-title-264Jp",description:"ServerDownloadRequiredPage-description-3LRBR EmptyPage-description-oYWtW",pmsLogo:"ServerDownloadRequiredPage-pmsLogo-RreDd",
button:"ServerDownloadRequiredPage-button-1QeiU",downloadMessage:"ServerDownloadRequiredPage-downloadMessage-sP7Ud"}},function(e,t){e.exports={updateLink:"ServerUpdateRequiredPage-updateLink-2Enej",updateDisabledLink:"ServerUpdateRequiredPage-updateDisabledLink-2AETO ServerUpdateRequiredPage-updateLink-2Enej"}},function(e,t){e.exports={container:"LibraryFilterBuilder-container-1ep_x",loadingContainer:"LibraryFilterBuilder-loadingContainer-c77Me LibraryFilterBuilder-container-1ep_x",
footer:"LibraryFilterBuilder-footer-3W2q0",settings:"LibraryFilterBuilder-settings-okmbX",checkInput:"LibraryFilterBuilder-checkInput-B0ck9 InlineInputGroupFormLabel-label-3avlL FormLabel-label-1sr1f",numberInput:"LibraryFilterBuilder-numberInput-1vwc6 InlineNumberInputGroup-input-DiEPr TextInput-input-34u_B input-input-2ol6B",buttons:"LibraryFilterBuilder-buttons-3PEDF",button:"LibraryFilterBuilder-button-36Leq Button-button--JvPI Link-link-2XYrU"}},function(e,t){e.exports={
container:"LibraryFilterBuilderRow-container-2QVqa",rules:"LibraryFilterBuilderRow-rules-3enme",rule:"LibraryFilterBuilderRow-rule-2bAya",tagsInput:"LibraryFilterBuilderRow-tagsInput-1zILx AutosuggestTagsInput-tagsInput-1wrGI TagsInput-tagsInput-3bbBk",textInput:"LibraryFilterBuilderRow-textInput-3yZ-z TextInput-input-34u_B input-input-2ol6B",unitTextInput:"LibraryFilterBuilderRow-unitTextInput-38LP9 UnitInput-textInput-QSuLW TextInput-input-34u_B input-input-2ol6B",
selectInput:"LibraryFilterBuilderRow-selectInput-gFMEG SelectInput-input-1WBUz input-input-2ol6B",value:"LibraryFilterBuilderRow-value-3DsOS",buttons:"LibraryFilterBuilderRow-buttons-3m5pt",iconButton:"LibraryFilterBuilderRow-iconButton-1L9m0",iconButtonDisabled:"LibraryFilterBuilderRow-iconButtonDisabled-1LPOD LibraryFilterBuilderRow-iconButton-1L9m0"}},function(e,t){e.exports={container:"LibraryFilterBuilderRowTag-container-2eCig",tag:"LibraryFilterBuilderRowTag-tag-3tEm1",
remove:"LibraryFilterBuilderRowTag-remove-3WifL TagLabel-remove-1aTjc",or:"LibraryFilterBuilderRowTag-or-2CPm8"}},function(e,t){e.exports={attribution:"LibraryPage-attribution-f51hr GracenoteAttribution-attribution-16wMJ"}},function(e,t){e.exports={jumpBar:"LibraryPageJumpBar-jumpBar-22VKU"}},function(e,t){e.exports={character:"LibraryPageJumpBarCharacter-character-2Hr4E"}},function(e,t){e.exports={
menuItemContainer:"DisclosureFilterMenuItem-menuItemContainer-umTpy SelectedMenuItem-menuItemContainer-7SpJZ",menuLabel:"DisclosureFilterMenuItem-menuLabel-3sWTg SelectedMenuItem-menuLabel-1tKeW",spinner:"DisclosureFilterMenuItem-spinner-k12hY Spinner-spinner-290-o spin-spin-2Ou6V",selectedIcon:"DisclosureFilterMenuItem-selectedIcon-1HwbQ SelectedMenuItem-selectedIcon-3S2cy",isSelected:"DisclosureFilterMenuItem-isSelected-3uWkO"}},function(e,t){e.exports={
header:"LibraryFilterOptionsList-header-JO56l",headerTitle:"LibraryFilterOptionsList-headerTitle-21Ewq",backIcon:"LibraryFilterOptionsList-backIcon-15GqT",filterText:"LibraryFilterOptionsList-filterText-ys_NH",searchInput:"LibraryFilterOptionsList-searchInput-3YaUS TextInput-input-34u_B input-input-2ol6B",filterOptionsScroller:"LibraryFilterOptionsList-filterOptionsScroller-1TXk8 Scroller-vertical-1bgGS",
filterOptionsWithSearchScroller:"LibraryFilterOptionsList-filterOptionsWithSearchScroller-3ARHU LibraryFilterOptionsList-filterOptionsScroller-1TXk8 Scroller-vertical-1bgGS",filterOptionMenuItem:"LibraryFilterOptionsList-filterOptionMenuItem-3bhER MenuItem-menuItem-25266",emptyText:"LibraryFilterOptionsList-emptyText-1SzoY"}},function(e,t){e.exports={filtersScroller:"LibraryFiltersList-filtersScroller-2-lmL Scroller-vertical-1bgGS"}},function(e,t){e.exports={
panesContainer:"LibraryFiltersMenu-panesContainer-2wE6-",pane:"LibraryFiltersMenu-pane-13lnR",filtersPane:"LibraryFiltersMenu-filtersPane-367id LibraryFiltersMenu-pane-13lnR",filterOptionsPane:"LibraryFiltersMenu-filterOptionsPane-sYfFI LibraryFiltersMenu-pane-13lnR",showFilterOptions:"LibraryFiltersMenu-showFilterOptions-PvLk-"}},function(e,t){e.exports={metadataListPageContent:"MetadataListPageContent-metadataListPageContent-s56y9 PageContent-pageContent-16mK6",
metadataListScroller:"MetadataListPageContent-metadataListScroller-1uFgY",hasGutter:"MetadataListPageContent-hasGutter-1EfyE",attribution:"MetadataListPageContent-attribution-3zY50"}},function(e,t){e.exports={divider:"MetadataListPageHeader-divider-1LM5c PageHeaderDivider-pageHeaderDivider-DvwUq"}},function(e,t){e.exports={toolbarContainer:"pageHeaderToolbar-toolbarContainer-2N-IJ Measure-container-2XznZ",toolbar:"pageHeaderToolbar-toolbar-1lW-M"}},function(e,t){e.exports={
pageContent:"PlaylistsPageContent-pageContent-1Gnbv PageContent-pageContent-16mK6",pageContentScroller:"PlaylistsPageContent-pageContentScroller-2RUW0"}},function(e,t){e.exports={prePlayPageContentContainer:"PrePlayPageContent-prePlayPageContentContainer-1ckaM PageContent-pageContent-16mK6",prePlayPageContent:"PrePlayPageContent-prePlayPageContent-1fFCH"}},function(e,t){e.exports={pageHeader:"PrePlayPageHeader-pageHeader-2o14F PageHeader-pageHeader-18RSw",
altPageHeader:"PrePlayPageHeader-altPageHeader-3bZbS PrePlayPageHeader-pageHeader-2o14F PageHeader-pageHeader-18RSw",divider:"PrePlayPageHeader-divider-WQRk8 PageHeaderDivider-pageHeaderDivider-DvwUq",listStylesArrowsDivider:"PrePlayPageHeader-listStylesArrowsDivider-1OrTC PageHeaderDivider-pageHeaderDivider-DvwUq"}},function(e,t){e.exports={emptyContainer:"PrePlayPageHeaderSiblingsMenu-emptyContainer-zMrx0"}},function(e,t){e.exports={concert:"PrePlayConcert-concert-2d4lO",
concertCalendar:"PrePlayConcert-concertCalendar-1FILv",concertMonth:"PrePlayConcert-concertMonth-2qln2",concertDay:"PrePlayConcert-concertDay-zNEEh",concertDetails:"PrePlayConcert-concertDetails-_iXFv",concertTitle:"PrePlayConcert-concertTitle-2O-pN",concertLocation:"PrePlayConcert-concertLocation-3ltdC"}},function(e,t){e.exports={concerts:"PrePlayConcerts-concerts-3r-qi",concertsLogo:"PrePlayConcerts-concertsLogo-oF29R"}},function(e,t){e.exports={
popularTracksHubCell:"PrePlayPopularTracks-popularTracksHubCell-Q0N9b HubCell-hubCell-3Ys17"}},function(e,t){e.exports={imageContainer:"PrePlayArtwork-imageContainer-3dXG6"}},function(e,t){e.exports={separator:"PrePlayDashSeparator-separator-1d01z"}},function(e,t){e.exports={divider:"PrePlayDivider-divider-1qvbj"}},function(e,t){e.exports={content:"PrePlayMetadataContent-content-2ww3j"}},function(e,t){e.exports={innerContent:"PrePlayMetadataInnerContent-innerContent-1BPzw"}},function(e,t){
e.exports={face:"PrePlayPosterCard-face-3rQEj MetadataPosterCardFace-face--dz_D MetadataPosterCardFace-poster-L2P6r"}},function(e,t){e.exports={tagsListLink:"PrePlayTagList-tagsListLink-Z6lfX Link-link-2XYrU"}},function(e,t){e.exports={group:"PrePlayDetailsGroup-group-3i0Tj"}},function(e,t){e.exports={groupItem:"PrePlayDetailsGroupItem-groupItem-3Tut9",label:"PrePlayDetailsGroupItem-label-2Ee43",content:"PrePlayDetailsGroupItem-content-1aRNU"}},function(e,t){e.exports={
loadingMessage:"PrePlayDetailsStreamsGroup-loadingMessage-27_nd"}},function(e,t){e.exports={summary:"PrePlaySummary-summary-1NL8g"}},function(e,t){e.exports={recordButton:"EPGPrePlayRecordButton-recordButton-1Y_Dw PrePlayStatusButton-statusButton-28XJ7 Button-default-36soe",recordingIcon:"EPGPrePlayRecordButton-recordingIcon-15EDB",recordIcon:"EPGPrePlayRecordButton-recordIcon-3SHaD"}},function(e,t){e.exports={item:"EPGPrePlayEpisodeCell-item-31U2l",
recordButton:"EPGPrePlayEpisodeCell-recordButton-x7LVG RecordButton-recordButton-1BGta PlayButton-playButton-3WX8X RecordIcon-recordIconContainer-1PXGA",alternateItem:"EPGPrePlayEpisodeCell-alternateItem-3QMpy EPGPrePlayEpisodeCell-item-31U2l",underlay:"EPGPrePlayEpisodeCell-underlay-28hJx",overlay:"EPGPrePlayEpisodeCell-overlay-2sL4Q",primaryTitle:"EPGPrePlayEpisodeCell-primaryTitle-p-Naw",secondaryTitle:"EPGPrePlayEpisodeCell-secondaryTitle-iTKpt",
subscriptionIcon:"EPGPrePlayEpisodeCell-subscriptionIcon-14CJU",nextAiringDate:"EPGPrePlayEpisodeCell-nextAiringDate-10Bif",separator:"EPGPrePlayEpisodeCell-separator-2LvFs",loadingItem:"EPGPrePlayEpisodeCell-loadingItem-2VkI2",alternateLoadingItem:"EPGPrePlayEpisodeCell-alternateLoadingItem-2KPtT EPGPrePlayEpisodeCell-loadingItem-2VkI2"}},function(e,t){e.exports={episodeCount:"EPGPrePlayEpisodeCountLeftTitle-episodeCount-1Ae4n EPGPrePlayStatusLeftTitle-duration-1W91h"}},function(e,t){
e.exports={duration:"EPGPrePlayStatusLeftTitle-duration-1W91h"}},function(e,t){e.exports={cardLink:"PrePlayCastCell-cardLink-Tndv5",titleContainer:"PrePlayCastCell-titleContainer-PAy29"}},function(e,t){e.exports={castList:"PrePlayCastList-castList-3dQB5"}},function(e,t){e.exports={descendantHubCell:"PrePlayDescendantList-descendantHubCell-X8QA4 HubCell-hubCell-3Ys17",descendantHubCellHeader:"PrePlayDescendantList-descendantHubCellHeader-2qK3U HubCellHeader-hubCellHeader-2pvYN",
emptyContainer:"PrePlayDescendantList-emptyContainer-2Dx4y",emptyMessage:"PrePlayDescendantList-emptyMessage-1ouul PrePlayDescendantList-emptyContainer-2Dx4y"}},function(e,t){e.exports={extrasHubCell:"PrePlayExtrasList-extrasHubCell-2NcGK HubCell-hubCell-3Ys17"}},function(e,t){e.exports={bottomDivider:"PrePlayListBottomDivider-bottomDivider-3XSnc PrePlayDivider-divider-1qvbj"}},function(e,t){e.exports={topDivider:"PrePlayListTopDivider-topDivider-3c8uz PrePlayDivider-divider-1qvbj"}
},function(e,t){e.exports={relatedList:"PrePlayRelatedList-relatedList-2fY8S",spinnerContainer:"PrePlayRelatedList-spinnerContainer-RG3Px"}},function(e,t){e.exports={leftTitle:"PrePlayLeftTitle-leftTitle-Ev1KG"}},function(e,t){e.exports={primaryTitle:"PrePlayPrimaryTitle-primaryTitle-1r9P9"}},function(e,t){e.exports={ratingRightTitle:"PrePlayRatingRightTitle-ratingRightTitle-1d4Yy PrePlayRightTitle-rightTitle-VxiwU",starRating:"PrePlayRatingRightTitle-starRating-31XbA",
criticRating:"PrePlayRatingRightTitle-criticRating-2J_tn"}},function(e,t){e.exports={rightTitle:"PrePlayRightTitle-rightTitle-VxiwU"}},function(e,t){e.exports={secondaryTitle:"PrePlaySecondaryTitle-secondaryTitle-YJRGC PrePlayPrimaryTitle-primaryTitle-1r9P9"}},function(e,t){e.exports={statusButton:"PrePlayStatusButton-statusButton-28XJ7 Button-default-36soe"}},function(e,t){e.exports={tertiaryTitle:"PrePlayTertiaryTitle-tertiaryTitle-1Rc92"}},function(e,t){e.exports={
tertiaryTitleSpacer:"PrePlayTertiaryTitleSpacer-tertiaryTitleSpacer-14zhL"}},function(e,t){e.exports={unavailableButton:"PrePlayUnavailableButton-unavailableButton-3dycr PrePlayStatusButton-statusButton-28XJ7 Button-default-36soe"}},function(e,t){e.exports={dragPreview:"PlaylistItemDragPreview-dragPreview-pFud8"}},function(e,t){e.exports={container:"PlaylistItemDragSource-container-ACeFE"}},function(e,t){e.exports={emptyContainer:"PlaylistItemList-emptyContainer-3nMxM",
emptyMessage:"PlaylistItemList-emptyMessage-1ot0C PlaylistItemList-emptyContainer-3nMxM"}},function(e,t){e.exports={container:"PlaylistItemLoading-container-2kR7-",alternateContainer:"PlaylistItemLoading-alternateContainer-3UvX6 PlaylistItemLoading-container-2kR7-"}},function(e,t){e.exports={container:"PlaylistItemMetadata-container-2NWQH",transientTitleLeft:"PlaylistItemMetadata-transientTitleLeft-3qVWp PlaylistItemMetadata-transientTitle-2Qo_V",button:"PlaylistItemMetadata-button-mjGjC",
cardContainer:"PlaylistItemMetadata-cardContainer-7tc0m",card:"PlaylistItemMetadata-card-2mWmP QuickSearchMetadataPosterCard-card-3_XFi MetadataPosterButtonCard-card-2T8TR",titlesContainer:"PlaylistItemMetadata-titlesContainer-964Le",durationContainer:"PlaylistItemMetadata-durationContainer-yQA2V",playCell:"PlaylistItemMetadata-playCell-jszVR",actionsCell:"PlaylistItemMetadata-actionsCell-3jLSv",transientTitle:"PlaylistItemMetadata-transientTitle-2Qo_V",
transientTitleRight:"PlaylistItemMetadata-transientTitleRight-3KEzx PlaylistItemMetadata-transientTitle-2Qo_V",playButton:"PlaylistItemMetadata-playButton-2Nx0M PlayButton-playButton-3WX8X PlaylistItemMetadata-button-mjGjC",equalizer:"PlaylistItemMetadata-equalizer-3_dxg EqualizerIcon-equalizer-2SoFA"}},function(e,t){e.exports={container:"PlaylistItemRow-container-PfUn9",button:"PlaylistItemRow-button-13eRZ",isSmart:"PlaylistItemRow-isSmart-2l7Gd",
moveControls:"PlaylistItemRow-moveControls-3TBYf",removeControls:"PlaylistItemRow-removeControls-rJj1O",metadataActionsCell:"PlaylistItemRow-metadataActionsCell-3QWfP PlaylistItemMetadata-actionsCell-3jLSv",alternateContainer:"PlaylistItemRow-alternateContainer-2SVf_ PlaylistItemRow-container-PfUn9",grabIcon:"PlaylistItemRow-grabIcon--qMgM",removeButton:"PlaylistItemRow-removeButton-1g21f IconButton-button-2FVq6",isItemDragging:"PlaylistItemRow-isItemDragging-2d2Wa"}},function(e,t){e.exports={
header:"PlaylistItemTable-header-2fQb_ HubCell-hubHeader-l3HPI",durationTitle:"PlaylistItemTable-durationTitle-2PGlc"}},function(e,t){e.exports={innerModalBody:"PersonalCloudServerChooseProviderModalBody-innerModalBody-2BJPU PersonalCloudServerModal-innerModalBody-wbNiQ ModalBody-innerModalBody-1eSxU",providersButtonsSpinner:"PersonalCloudServerChooseProviderModalBody-providersButtonsSpinner-3yoJz",
providerButtonsContainer:"PersonalCloudServerChooseProviderModalBody-providerButtonsContainer-3E_52",providerButtonsContainerNarrow:"PersonalCloudServerChooseProviderModalBody-providerButtonsContainerNarrow-2BXio PersonalCloudServerChooseProviderModalBody-providerButtonsContainer-3E_52",vendorLogoButton:"PersonalCloudServerChooseProviderModalBody-vendorLogoButton-1rQcN Button-button--JvPI Link-link-2XYrU",vendorLogo:"PersonalCloudServerChooseProviderModalBody-vendorLogo-21lJX"}},function(e,t){
e.exports={badge:"PremiereAiringBadge-badge-hAmdn"}},function(e,t){e.exports={schedulePageContent:"RecordingSchedulePageContent-schedulePageContent-2kZUq PageContent-pageContent-16mK6",schedulePageInnerContent:"RecordingSchedulePageContent-schedulePageInnerContent-1wYEs PageContent-innerPageContent-3ktLT",emptyDescription:"RecordingSchedulePageContent-emptyDescription-2Oudl EmptyPage-description-oYWtW"}},function(e,t){e.exports={event:"AgendaEvent-event-1CGOu",
isComplete:"AgendaEvent-isComplete-1Qgi-",hasError:"AgendaEvent-hasError-3_JkX",underlay:"AgendaEvent-underlay-3aB2_",overlay:"AgendaEvent-overlay-F0jvn",statusIcon:"AgendaEvent-statusIcon-2HvuT",date:"AgendaEvent-date-14otD",isToday:"AgendaEvent-isToday-WyLYs",time:"AgendaEvent-time-1gWgj",title:"AgendaEvent-title-2XPt5",titleDetails:"AgendaEvent-titleDetails-1_26S",status:"AgendaEvent-status-3bBTH",recording:"AgendaEvent-recording-R38Vn",
recordingProgressBackground:"AgendaEvent-recordingProgressBackground-3zpaH CircularProgressBar-circularProgressBarBackground-1a1VU",recordingIcon:"AgendaEvent-recordingIcon-2abV-"}},function(e,t){e.exports={agendaHeader:"AgendaHeader-agendaHeader-66Y_9"}},function(e,t){e.exports={calendar:"Calendar-calendar-231Oo"}},function(e,t){e.exports={day:"CalendarDay-day-1O4pX"}},function(e,t){e.exports={dayOfWeek:"CalendarDayOfWeek-dayOfWeek-3dQ59",isToday:"CalendarDayOfWeek-isToday-2rPYN"}
},function(e,t){e.exports={calendarDays:"CalendarDays-calendarDays-2ORCe"}},function(e,t){e.exports={container:"CalendarDaysOfWeek-container-1MoYj"}},function(e,t){e.exports={errorButton:"CalendarErrorButton-errorButton-1z8H1",errorTooltip:"CalendarErrorButton-errorTooltip-lo9O- Tooltip-middleRight-3n22h Tooltip-tooltip-2AL-W Tooltip-tooltipArrow-2yu7H Tooltip-tooltipLeftArrow-3yO_q Tooltip-tooltipMiddleAlignArrow-3RB_t"}},function(e,t){e.exports={event:"CalendarEvent-event-1N79n",
isComplete:"CalendarEvent-isComplete-3BKnC",hasError:"CalendarEvent-hasError-2mgqY",underlay:"CalendarEvent-underlay-2LGTN",overlay:"CalendarEvent-overlay-3RDXN",errorIcon:"CalendarEvent-errorIcon-3q6lK",title:"CalendarEvent-title-K5q2k",secondary:"CalendarEvent-secondary-2ufz9",secondaryInfo:"CalendarEvent-secondaryInfo-3pj4z",time:"CalendarEvent-time-sjVsB",status:"CalendarEvent-status-27k9Y",recording:"CalendarEvent-recording-1igLY",
recordingProgressBackground:"CalendarEvent-recordingProgressBackground-1vuJU CircularProgressBar-circularProgressBarBackground-1a1VU",recordingIcon:"CalendarEvent-recordingIcon-3BTdu"}},function(e,t){e.exports={calendarHeaderContainer:"CalendarHeader-calendarHeaderContainer-2f7fS",calendarHeader:"CalendarHeader-calendarHeader-moR_H",calendarNav:"CalendarHeader-calendarNav-rIR1k Link-link-2XYrU",calendarNavDisabled:"CalendarHeader-calendarNavDisabled-1bqai"}},function(e,t){e.exports={
title:"CalendarHeaderTitle-title-15Pr3"}},function(e,t){e.exports={pane:"RecordingPriorityPane-pane-7ENL7",paneHeader:"RecordingPriorityPane-paneHeader-2HEZ3",paneScroller:"RecordingPriorityPane-paneScroller-FXVrB Scroller-vertical-1bgGS",error:"RecordingPriorityPane-error-2oNO_"}},function(e,t){e.exports={subscription:"RecordingPrioritySubscription-subscription-sOfYq",link:"RecordingPrioritySubscription-link-2-ONe",linkContainer:"RecordingPrioritySubscription-linkContainer-35Li6",
posterContainer:"RecordingPrioritySubscription-posterContainer-1ZjTK",titleContainer:"RecordingPrioritySubscription-titleContainer-2zfvG",dragHandle:"RecordingPrioritySubscription-dragHandle-1KbYq Link-link-2XYrU",dragIcon:"RecordingPrioritySubscription-dragIcon-2zAik"}},function(e,t){e.exports={dragPreview:"RecordingPrioritySubscriptionDragPreview-dragPreview-3q037"}},function(e,t){e.exports={dragSource:"RecordingPrioritySubscriptionDragSource-dragSource-2qcUl"}},function(e,t){e.exports={
seriesIcon:"RecordingPrioritySubscriptionSeriesTitle-seriesIcon-1yyj_"}},function(e,t){e.exports={title:"RecordingPrioritySubscriptionTitle-title-3QS81",secondaryTitle:"RecordingPrioritySubscriptionTitle-secondaryTitle-2Wl5u"}},function(e,t){e.exports={searchPageContent:"SearchPageContent-searchPageContent-2qlNl DashboardPage-dashboardPageContent-2rN8X PageContent-innerPageContent-3ktLT"}},function(e,t){e.exports={spinner:"SearchPageHeader-spinner-1_DoE",
separator:"SearchPageHeader-separator-C3ELo"}},function(e,t){e.exports={providerTitle:"SearchProviderHubs-providerTitle-3nGwS",spinner:"SearchProviderHubs-spinner-1-T9U"}},function(e,t){e.exports={container:"ClaimServer-container-2q3Tw",avatar:"ClaimServer-avatar-2bc95",message:"ClaimServer-message-2TpDe",messageHeader:"ClaimServer-messageHeader-1mEmO",messageHeaderDark:"ClaimServer-messageHeaderDark-1FqaV ClaimServer-messageHeader-1mEmO",
messageHeaderLight:"ClaimServer-messageHeaderLight-2GqeC ClaimServer-messageHeader-1mEmO",messageDetailsDark:"ClaimServer-messageDetailsDark-1klzV",messageDetailsLight:"ClaimServer-messageDetailsLight-xkSf6",icon:"ClaimServer-icon-1LjVI",button:"ClaimServer-button-2wbR- SpinnerButton-button-3WowH Button-button--JvPI Link-link-2XYrU"}},function(e,t){e.exports={isPressable:"CloseableFormSection-isPressable-3BPTn",
isClosed:"CloseableFormSection-isClosed-37Gj8 CloseableFormSection-isPressable-3BPTn",isOpen:"CloseableFormSection-isOpen-vvIoP"}},function(e,t){e.exports={sectionWrapper:"SettingsFormSection-sectionWrapper-1-gPg",section:"SettingsFormSection-section-1zYMP"}},function(e,t){e.exports={actionLinks:"SettingsFormSectionActionLinks-actionLinks-2vGv7"}},function(e,t){e.exports={sectionDetails:"SettingsFormSectionDetails-sectionDetails-2rJ3j"}},function(e,t){e.exports={
content:"SettingsPage-content-1vKVE PageContent-pageContent-16mK6"}},function(e,t){e.exports={header:"SettingsPageHeader-header-1ugtI"}},function(e,t){e.exports={spinnerContainer:"SettingsPageLoadingSpinner-spinnerContainer-oodfM"}},function(e,t){e.exports={page:"SignInLaunchPagePoll-page-1MNEQ",container:"SignInLaunchPagePoll-container-10QkU",section:"SignInLaunchPagePoll-section-11ige"}},function(e,t){e.exports={link:"SwitchToTVLayoutLink-link-2Aq9X",icon:"SwitchToTVLayoutLink-icon-1RpyT"}
},function(e,t){e.exports={measured:"TimelinePage-measured-3JDcK"}},function(e,t){e.exports={container:"TimelinePageContent-container-2lbp-",stack:"TimelinePageContent-stack-2iWVF PageContent-pageContent-16mK6",adornment:"TimelinePageContent-adornment-1VLRt",scroller:"TimelinePageContent-scroller-3tS5J"}},function(e,t){e.exports={buttons:"WebhookFormSection-buttons-1bW9A",button:"WebhookFormSection-button-2hUeX",dangerButton:"WebhookFormSection-dangerButton-1Hm32",
label:"WebhookFormSection-label-1llL2 FormLabel-label-1sr1f CloseableFormSection-isPressable-3BPTn"}},function(e,t){e.exports={buttons:"WebhooksSettingsPage-buttons-2wdUh"}},function(e,t){e.exports={measure:"AudioVideoFullMusic-measure-3rspA",content:"AudioVideoFullMusic-content-7Qnq7",card:"AudioVideoFullMusic-card-3HHZD MetadataPosterCard-card-3bztR",titlesContainer:"AudioVideoFullMusic-titlesContainer-1f9NM",title:"AudioVideoFullMusic-title-2fZRL MetadataPosterTitle-title-3tU5F",
primaryTitle:"AudioVideoFullMusic-primaryTitle-sT84w AudioVideoFullMusic-title-2fZRL MetadataPosterTitle-title-3tU5F",secondaryTitle:"AudioVideoFullMusic-secondaryTitle-2tx_B AudioVideoFullMusic-title-2fZRL MetadataPosterTitle-title-3tU5F"}},function(e,t){e.exports={fullPlayer:"AudioVideoFullPlayer-fullPlayer-3bJyO",bar:"AudioVideoFullPlayer-bar-dDYeo",topBar:"AudioVideoFullPlayer-topBar-2XUGM AudioVideoFullPlayer-bar-dDYeo",
bottomBar:"AudioVideoFullPlayer-bottomBar-2yixi AudioVideoFullPlayer-bar-dDYeo",bottomBarContent:"AudioVideoFullPlayer-bottomBarContent-1fL_k",content:"AudioVideoFullPlayer-content-37T7O",controls:"AudioVideoFullPlayer-controls-1Ik09 AudioVideoPlayerControls-controls-OwK1f",seekBar:"AudioVideoFullPlayer-seekBar-3nf6g SeekBar-seekBar-2UK3i Slider-slider-2oLVT",isVideo:"AudioVideoFullPlayer-isVideo-1aASw",isPlayQueueVisible:"AudioVideoFullPlayer-isPlayQueueVisible-1caox",
hideControls:"AudioVideoFullPlayer-hideControls-3B1pW"}},function(e,t){e.exports={measure:"AudioVideoLyrics-measure-2SF_6",container:"AudioVideoLyrics-container-3d-0q",card:"AudioVideoLyrics-card-1ul6P MetadataPosterCard-card-3bztR",content:"AudioVideoLyrics-content-5An40",titlesContainer:"AudioVideoLyrics-titlesContainer-3I1RV",rightInfo:"AudioVideoLyrics-rightInfo-x_GGf",scroller:"AudioVideoLyrics-scroller-3hrpl Scroller-vertical-1bgGS",
spinner:"AudioVideoLyrics-spinner-1K46l Spinner-spinner-290-o spin-spin-2Ou6V",upsellContainer:"AudioVideoLyrics-upsellContainer-2K0Q7",innerContent:"AudioVideoLyrics-innerContent-19sRo",line:"AudioVideoLyrics-line-2CYDi",lineTimedIcon:"AudioVideoLyrics-lineTimedIcon-GOFkG",isLineSelected:"AudioVideoLyrics-isLineSelected-2kgwV",timedLyricsButton:"AudioVideoLyrics-timedLyricsButton-13NoS IconButton-button-2FVq6",isTimedLyricsActive:"AudioVideoLyrics-isTimedLyricsActive-3bWfB"}},function(e,t){
e.exports={seekBar:"AudioVideoMiniPlayer-seekBar-b7nI9 SeekBar-seekBar-2UK3i Slider-slider-2oLVT"}},function(e,t){e.exports={container:"AudioVideoPlayQueue-container-mD38o",headingContainer:"AudioVideoPlayQueue-headingContainer-t8E5F",topContainer:"AudioVideoPlayQueue-topContainer-3udEG",heading:"AudioVideoPlayQueue-heading-1pIz5",divider:"AudioVideoPlayQueue-divider-1PaGg",topLeft:"AudioVideoPlayQueue-topLeft-_-AJU",topRight:"AudioVideoPlayQueue-topRight-2iuaO",
count:"AudioVideoPlayQueue-count-1zBsg",content:"AudioVideoPlayQueue-content-28l4x Scroller-vertical-1bgGS",tooltipButton:"AudioVideoPlayQueue-tooltipButton-1wdD7"}},function(e,t){e.exports={dragPreview:"AudioVideoPlayQueueDragPreview-dragPreview-21bXe"}},function(e,t){e.exports={container:"AudioVideoPlayQueueItem-container-2_nsg",moveControls:"AudioVideoPlayQueueItem-moveControls-1M6Iy",removeControls:"AudioVideoPlayQueueItem-removeControls-1XM62",
metadataDurationContainer:"AudioVideoPlayQueueItem-metadataDurationContainer-184Jw AudioVideoPlayerPlayQueueMetadata-durationContainer-2dgI9",metadataContainer:"AudioVideoPlayQueueItem-metadataContainer-w326I AudioVideoPlayerPlayQueueMetadata-container-sM2h0",leftContainer:"AudioVideoPlayQueueItem-leftContainer-2xVS6",removeButton:"AudioVideoPlayQueueItem-removeButton-4gx_S IconButton-button-2FVq6",isCurrentItem:"AudioVideoPlayQueueItem-isCurrentItem-3g1KW",
isItemDragging:"AudioVideoPlayQueueItem-isItemDragging-1lnod"}},function(e,t){e.exports={container:"AudioVideoPlayQueueItemDragSource-container-3ncn7"}},function(e,t){e.exports={miniPlayerContainer:"AudioVideoPlayer-miniPlayerContainer-3a4Ix",miniVideoContainer:"AudioVideoPlayer-miniVideoContainer-29EhQ VideoContainer-videoContainer-18TW8",fullPlayerContainer:"AudioVideoPlayer-fullPlayerContainer-AjkDb",fullPlayerContainerBackground:"AudioVideoPlayer-fullPlayerContainerBackground-39yw8"}
},function(e,t){e.exports={controls:"AudioVideoPlayerControls-controls-OwK1f",metadataContainer:"AudioVideoPlayerControls-metadataContainer-3h2Oi AudioVideoPlayerControlsMetadata-container-2PqUx",durationContainer:"AudioVideoPlayerControls-durationContainer-3TK0D",buttonGroup:"AudioVideoPlayerControls-buttonGroup-ShnOa",titlesButtonGroup:"AudioVideoPlayerControls-titlesButtonGroup-2V4Qg AudioVideoPlayerControls-buttonGroup-ShnOa",
buttonGroupLeft:"AudioVideoPlayerControls-buttonGroupLeft-3kwFX AudioVideoPlayerControls-buttonGroup-ShnOa",buttonGroupCenter:"AudioVideoPlayerControls-buttonGroupCenter-Vok98 AudioVideoPlayerControls-buttonGroup-ShnOa",buttonGroupRight:"AudioVideoPlayerControls-buttonGroupRight-17650 AudioVideoPlayerControls-buttonGroup-ShnOa",auxButtons:"AudioVideoPlayerControls-auxButtons-2YhIh",
closeButton:"AudioVideoPlayerControls-closeButton-2ULmA PlayerIconButton-playerButton-1DmNp IconButton-button-2FVq6",textButton:"AudioVideoPlayerControls-textButton-2psxQ PlayerIconButton-playerButton-1DmNp IconButton-button-2FVq6"}},function(e,t){e.exports={container:"AudioVideoPlayerControlsMetadata-container-2PqUx",expandButton:"AudioVideoPlayerControlsMetadata-expandButton-tQVMb PlayerIconButton-playerButton-1DmNp IconButton-button-2FVq6",
cardContainer:"AudioVideoPlayerControlsMetadata-cardContainer-v0b-H",titlesContainer:"AudioVideoPlayerControlsMetadata-titlesContainer-1oLik",ratingContainer:"AudioVideoPlayerControlsMetadata-ratingContainer-2TSSx",hasUserRating:"AudioVideoPlayerControlsMetadata-hasUserRating-rAzLd"}},function(e,t){e.exports={container:"AudioVideoPlayerPlayQueueMetadata-container-sM2h0",cardContainer:"AudioVideoPlayerPlayQueueMetadata-cardContainer-vcGvj",
card:"AudioVideoPlayerPlayQueueMetadata-card-18P30 QuickSearchMetadataPosterCard-card-3_XFi MetadataPosterButtonCard-card-2T8TR",titlesContainer:"AudioVideoPlayerPlayQueueMetadata-titlesContainer-2G9lR",durationContainer:"AudioVideoPlayerPlayQueueMetadata-durationContainer-2dgI9"}},function(e,t){e.exports={container:"AudioVideoPostPlay-container-1G36_",poster:"AudioVideoPostPlay-poster-1YcVF",details:"AudioVideoPostPlay-details-2CzQu"}},function(e,t){e.exports={
menu:"AudioVideoQualityMenuInput-menu-2i8jz MenuContainer-menu-3Gtlw"}},function(e,t){e.exports={isHidden:"AudioVideoQualityMenuItem-isHidden-3v_Gs",itemExtraDetail:"AudioVideoQualityMenuItem-itemExtraDetail-202QW"}},function(e,t){e.exports={container:"AudioVideoSettings-container-1eOIJ AudioVideoStripeContainer-container-MI02O",title:"AudioVideoSettings-title-2eTn6",menusContainer:"AudioVideoSettings-menusContainer-1XFBW",row:"AudioVideoSettings-row-1vKK9",cell:"AudioVideoSettings-cell-mOQWY",
label:"AudioVideoSettings-label-h7S7i AudioVideoSettings-cell-mOQWY"}},function(e,t){e.exports={container:"AudioVideoStripeContainer-container-MI02O"}},function(e,t){e.exports={title:"AudioVideoUpNext-title-2RflZ",poster:"AudioVideoUpNext-poster-362Qo",progress:"AudioVideoUpNext-progress-3dmBn",playButton:"AudioVideoUpNext-playButton-3X0Mb PlayButton-playButton-3WX8X",playCircle:"AudioVideoUpNext-playCircle-RTuur PlayButton-playCircle-3Evfd",timeLeft:"AudioVideoUpNext-timeLeft--rCIM",
autoPlay:"AudioVideoUpNext-autoPlay-2s2lS",autoPlayOn:"AudioVideoUpNext-autoPlayOn-2tSBY AudioVideoUpNext-autoPlay-2s2lS",autoPlayOff:"AudioVideoUpNext-autoPlayOff-3tmvp AudioVideoUpNext-autoPlay-2s2lS"}},function(e,t){e.exports={recordButtonContainer:"LiveTVRecord-recordButtonContainer-vuoUX"}},function(e,t){e.exports={recordButton:"LiveTVRecordButton-recordButton-3o22m Link-link-2XYrU",recordingCircle:"LiveTVRecordButton-recordingCircle-HSsQb PlayButton-playCircle-3Evfd",
recordingIcon:"LiveTVRecordButton-recordingIcon-3XvOS",recordingIconRecording:"LiveTVRecordButton-recordingIconRecording-3tlCw LiveTVRecordButton-recordingIcon-3XvOS",recordingProgressBackground:"LiveTVRecordButton-recordingProgressBackground-3vdcH CircularProgressBar-circularProgressBarBackground-1a1VU"}},function(e,t){e.exports={container:"LiveTVUpNext-container-1kAJR AudioVideoStripeContainer-container-MI02O",content:"LiveTVUpNext-content-21sxT",upNext:"LiveTVUpNext-upNext-pGRmz",
icon:"LiveTVUpNext-icon-3DqMO"}},function(e,t){e.exports={measure:"Subtitles-measure-1rzkL",renderer:"Subtitles-renderer-1Dsep"}},function(e,t){e.exports={container:"DurationRemaining-container-1F4w8"}},function(e,t){e.exports={backgroundContainer:"FullPlayerBackground-backgroundContainer-2UnXo"}},function(e,t){e.exports={topControls:"FullPlayerTopControls-topControls-2gkcE",topButton:"FullPlayerTopControls-topButton-2iGrJ PlayerIconButton-playerButton-1DmNp IconButton-button-2FVq6",
castButton:"FullPlayerTopControls-castButton-1CwQ3 FullPlayerTopControls-topButton-2iGrJ PlayerIconButton-playerButton-1DmNp IconButton-button-2FVq6 DisclosureArrowButton-disclosureArrowButton-3tbYZ",remotePlayerName:"FullPlayerTopControls-remotePlayerName-32QaK"}},function(e,t){e.exports={miniPlayer:"MiniPlayerContainer-miniPlayer-3qFgJ",controls:"MiniPlayerContainer-controls-3p1H_"}},function(e,t){e.exports={musicContainer:"MusicContainer-musicContainer-2J5KU"}},function(e,t){e.exports={
playButton:"PlayPauseOverlay-playButton-25OfW PlayButton-playButton-3WX8X",pauseButton:"PlayPauseOverlay-pauseButton-hSFg5 PlayPauseOverlay-playButton-25OfW PlayButton-playButton-3WX8X",playCircle:"PlayPauseOverlay-playCircle-3ydPY PlayButton-playCircle-3Evfd",playIcon:"PlayPauseOverlay-playIcon-21tOf PlayButton-playIcon-dt3sk"}},function(e,t){e.exports={conflict:"PlayerConflictItemRow-conflict-P0q6Q",thumbnail:"PlayerConflictItemRow-thumbnail-3DnQM",title:"PlayerConflictItemRow-title-1hIqi",
titleHighlight:"PlayerConflictItemRow-titleHighlight-EbgLG"}},function(e,t){e.exports={endsAtMessage:"PlayerConflictLiveTVEndsAt-endsAtMessage-fEcse"}},function(e,t){e.exports={modalHeader:"PlayerConflictModalContent-modalHeader-esgnI ModalHeader-modalHeader-IGRia",innerModalBody:"PlayerConflictModalContent-innerModalBody-2N2K5 ModalBody-innerModalBody-1eSxU",message:"PlayerConflictModalContent-message-1A31c",conflicts:"PlayerConflictModalContent-conflicts-2yWT2",
footerMessage:"PlayerConflictModalContent-footerMessage-1ptDW"}},function(e,t){e.exports={modalHeader:"PlayerErrorModal-modalHeader-167lt ModalHeader-modalHeader-IGRia",errorCode:"PlayerErrorModal-errorCode-2H7W7"}},function(e,t){e.exports={playerButton:"PlayerIconButton-playerButton-1DmNp IconButton-button-2FVq6"}},function(e,t){e.exports={remotePlayerName:"RemotePlayerMenuItems-remotePlayerName-s8cLV",emptyMessage:"RemotePlayerMenuItems-emptyMessage--flM8"}},function(e,t){e.exports={
seekBar:"SeekBar-seekBar-2UK3i Slider-slider-2oLVT",seekBarTrack:"SeekBar-seekBarTrack-3Gu5R Slider-track-28JOS",seekBarFill:"SeekBar-seekBarFill-1Lcu0 Slider-fill-35GFq",seekBarBuffer:"SeekBar-seekBarBuffer-3bUz9 Slider-secondaryFill-31_05 Slider-fill-35GFq",noFillTransition:"SeekBar-noFillTransition-2hHzC"}},function(e,t){e.exports={container:"SeekBarThumbnail-container-1cIDw",thumbnail:"SeekBarThumbnail-thumbnail-2rxzk",tooltip:"SeekBarThumbnail-tooltip-WCnO4",
small:"SeekBarThumbnail-small-21D-m",large:"SeekBarThumbnail-large-1NQZT"}},function(e,t){e.exports={videoContainer:"VideoContainer-videoContainer-18TW8",videoElement:"VideoContainer-videoElement-1EaMR"}},function(e,t){e.exports={slider:"VolumeSlider-slider-1QXdT Slider-slider-2oLVT",track:"VolumeSlider-track-2WJDz Slider-track-28JOS",fill:"VolumeSlider-fill-3XkYy Slider-fill-35GFq"}},function(e,t){e.exports={magazine:"Carousel-magazine-3pULs",slide:"Carousel-slide-1-FUF",
currentSlide:"Carousel-currentSlide-1fcfr Carousel-slide-1-FUF"}},function(e,t){e.exports={carousel:"PhotoCarousel-carousel-3ebQM",message:"PhotoCarousel-message-2qndu",contents:"PhotoCarousel-contents-1Ozti"}},function(e,t){e.exports={controls:"PhotoControls-controls-3-pBn",expandButton:"PhotoControls-expandButton-orxt_ PlayerIconButton-playerButton-1DmNp IconButton-button-2FVq6",container:"PhotoControls-container-1sk-e",thumbContainer:"PhotoControls-thumbContainer-1LvGp",
thumb:"PhotoControls-thumb-1eNjV",actions:"PhotoControls-actions-OBY-P",actionButton:"PhotoControls-actionButton-1569I PlayerIconButton-playerButton-1DmNp IconButton-button-2FVq6",closeButton:"PhotoControls-closeButton-oN4PS PhotoControls-actionButton-1569I PlayerIconButton-playerButton-1DmNp IconButton-button-2FVq6"}},function(e,t){e.exports={fullPlayer:"PhotoFullPlayer-fullPlayer-zjtdR",player:"PhotoFullPlayer-player-3kRDP",main:"PhotoFullPlayer-main-1eD7_",
mainFooter:"PhotoFullPlayer-mainFooter-2n5Rr",content:"PhotoFullPlayer-content-28yAo",spinner:"PhotoFullPlayer-spinner-2SO2v",bar:"PhotoFullPlayer-bar-2WMUP",controls:"PhotoFullPlayer-controls-1-Z6K PhotoFullPlayer-bar-2WMUP",seekBar:"PhotoFullPlayer-seekBar-3H_Xh SeekBar-seekBar-2UK3i Slider-slider-2oLVT",aside:"PhotoFullPlayer-aside-WshsF",hideControls:"PhotoFullPlayer-hideControls-1nwRe",dockControls:"PhotoFullPlayer-dockControls-e5lzC"}},function(e,t){e.exports={
button:"PhotoFullPlayerOverlays-button-1anMg",leftButton:"PhotoFullPlayerOverlays-leftButton-2bCve PhotoFullPlayerOverlays-button-1anMg",rightButton:"PhotoFullPlayerOverlays-rightButton-3cTEz PhotoFullPlayerOverlays-button-1anMg",topBar:"PhotoFullPlayerOverlays-topBar-45GYU",hideOverlays:"PhotoFullPlayerOverlays-hideOverlays-eccNe",playButton:"PhotoFullPlayerOverlays-playButton-35mXL"}},function(e,t){e.exports={hub:"PhotoHub-hub-3ROVk",container:"PhotoHub-container-2-eNS",
body:"PhotoHub-body-2A7LS",overlay:"PhotoHub-overlay-1cF_S",title:"PhotoHub-title-1Js3E",count:"PhotoHub-count-30JDL",icon:"PhotoHub-icon-1yZ1e"}},function(e,t){e.exports={container:"PhotoHubList-container-1-l_q",title:"PhotoHubList-title-1lMNL",list:"PhotoHubList-list-3GW3U"}},function(e,t){e.exports={photoInformation:"PhotoInformation-photoInformation-1vUJb Scroller-vertical-1bgGS",exif:"PhotoInformation-exif-3TGkh",line:"PhotoInformation-line-2tnkC",
split:"PhotoInformation-split-3vWYS PhotoInformation-line-2tnkC",format:"PhotoInformation-format-IPiso"}},function(e,t){e.exports={container:"PhotoMetadataControls-container-1FKfK",textInput:"PhotoMetadataControls-textInput-3wTdg TextInput-input-34u_B input-input-2ol6B",textArea:"PhotoMetadataControls-textArea-2FczX TextArea-textArea-1PnXt input-input-2ol6B",info:"PhotoMetadataControls-info-3cDte",title:"PhotoMetadataControls-title-mMl9S",summary:"PhotoMetadataControls-summary-3KD9K",
subtitle:"PhotoMetadataControls-subtitle-2P7or"}},function(e,t){e.exports={seekBar:"PhotoMiniPlayer-seekBar-15sVh SeekBar-seekBar-2UK3i Slider-slider-2oLVT"}},function(e,t){e.exports={fullPlayerContainer:"PhotoPlayer-fullPlayerContainer-R_vG-",miniPlayerContainer:"PhotoPlayer-miniPlayerContainer-wFEQk"}},function(e,t){e.exports={strip:"PhotoStrip-strip-q6m2B",thumbs:"PhotoStrip-thumbs-2iLLA",cell:"PhotoStrip-cell-NRVDi",thumbContainer:"PhotoStrip-thumbContainer-1kU-f",
isSelected:"PhotoStrip-isSelected-3exw8",thumb:"PhotoStrip-thumb-eGqcd",thumbOverlay:"PhotoStrip-thumbOverlay-gC5wm"}},function(e,t){e.exports={slideContainer:"SlideImg-slideContainer-2XcH9",statusContainer:"SlideImg-statusContainer-2GP9q fadeIn-fadeIn-3S08e"}},function(e,t){e.exports={container:"QuickSearch-container-2PWkB"}},function(e,t){e.exports={hubTitle:"QuickSearchHub-hubTitle-AHFfv"}},function(e,t){e.exports={container:"QuickSearchInput-container-R2-wn",
focused:"QuickSearchInput-focused-2kpW8",searchIcon:"QuickSearchInput-searchIcon-1f6m9",closeIcon:"QuickSearchInput-closeIcon-3AV1c",searchInput:"QuickSearchInput-searchInput-2HU6-"}},function(e,t){e.exports={placeholder:"QuickSearchPlaceholder-placeholder-2Lsgt",isPlaceholderSelected:"QuickSearchPlaceholder-isPlaceholderSelected-2MXyq"}},function(e,t){e.exports={title:"QuickSearchProvider-title-1DX5M",noResults:"QuickSearchProvider-noResults-2j7_9",
spinnerContainer:"QuickSearchProvider-spinnerContainer-lhn2A",spinner:"QuickSearchProvider-spinner-2_uC9"}},function(e,t){e.exports={button:"QuickSearchResult-button-1ZHpO",title:"QuickSearchResult-title-1XJ-0",selected:"QuickSearchResult-selected-3xPnw",link:"QuickSearchResult-link-3JPgF",imageContainer:"QuickSearchResult-imageContainer-DvFlp",titles:"QuickSearchResult-titles-3kHPx",moreButton:"QuickSearchResult-moreButton-2Agbk",moreIcon:"QuickSearchResult-moreIcon-UsTkI"}},function(e,t){
e.exports={container:"QuickSearchResults-container-3IlHh"}},function(e,t){e.exports={titleContainer:"SearchTagPosterCell-titleContainer-2WMiU",imageContainer:"SearchTagPosterCell-imageContainer-244-T",imageLink:"SearchTagPosterCell-imageLink-GYb2j"}},function(e,t){e.exports={card:"QuickSearchMetadataPosterCard-card-3_XFi MetadataPosterButtonCard-card-2T8TR"}},function(e,t){e.exports={card:"QuickSearchTagPosterCard-card-3RJG3 TagPosterCard-card-RVD0D MetadataPosterCardFace-poster-L2P6r"}
},function(e,t){e.exports={title:"QuickSearchTitle-title-2ApAO",isSecondary:"QuickSearchTitle-isSecondary-mxETF"}},function(e,t){e.exports={multiSelectPageHeader:"MultiSelectPageHeader-multiSelectPageHeader-MIQA1 PageHeader-pageHeader-18RSw",selectedTitle:"MultiSelectPageHeader-selectedTitle-1kn-x",deselectLink:"MultiSelectPageHeader-deselectLink-3Muvc",icon:"MultiSelectPageHeader-icon-3_oXi"}},function(e,t){e.exports={sidebar:"Sidebar-sidebar-e9phF",
sidebarScroller:"Sidebar-sidebarScroller-2owup",sidebarContent:"Sidebar-sidebarContent-3poA4"}},function(e,t){e.exports={sidebarLink:"SidebarLink-sidebarLink-3tOhK Link-default-32xSO",container:"SidebarLink-container-1wDcq",icon:"SidebarLink-icon-3AlP8",title:"SidebarLink-title-7WfGt",children:"SidebarLink-children-7pc_H",spinner:"SidebarLink-spinner-32O1M"}},function(e,t){e.exports={sidebarListHeader:"SidebarList-sidebarListHeader-m1Kth"}},function(e,t){e.exports={
sidebarListItem:"SidebarListItem-sidebarListItem-3ijGg"}},function(e,t){e.exports={personalCloudIcon:"ProvisionPersonalCloudServerMenuItem-personalCloudIcon-3BAU_ ServerMenuItem-serverMenuIcon-2zKCW"}},function(e,t){e.exports={serverMenu:"ServerMenu-serverMenu-6KNnX MenuContainer-menu-3Gtlw",serverMenuScroller:"ServerMenu-serverMenuScroller-1nSX6 Menu-menuScroller-E0NwY Scroller-vertical-1bgGS"}},function(e,t){e.exports={serverMenuButton:"ServerMenuButton-serverMenuButton-6jMk3",
serverMenuButtonContainer:"ServerMenuButton-serverMenuButtonContainer-2kNrP",serverMenuSpinner:"ServerMenuButton-serverMenuSpinner-3jGxB",serverMenuTitle:"ServerMenuButton-serverMenuTitle-cAqMG",serverMenuFriendlyNameContainer:"ServerMenuButton-serverMenuFriendlyNameContainer-SDbme",serverMenuFriendlyName:"ServerMenuButton-serverMenuFriendlyName-hzYb1",serverMenuUsername:"ServerMenuButton-serverMenuUsername-2nkDW",icon:"ServerMenuButton-icon-2yrbL"}},function(e,t){e.exports={
secureIcon:"ServerMenuIcon-secureIcon-Xrgxg",alertIcon:"ServerMenuIcon-alertIcon-29qg7",warningIcon:"ServerMenuIcon-warningIcon-2cI0i"}},function(e,t){e.exports={sidebarIconButton:"SidebarIconButton-sidebarIconButton-3zxa5"}},function(e,t){e.exports={actions:"SidebarLibrariesActions-actions-2eVPc",action:"SidebarLibrariesActions-action-1NiFy SidebarIconButton-sidebarIconButton-3zxa5",isVisible:"SidebarLibrariesActions-isVisible-k1QA0"}},function(e,t){e.exports={
action:"SidebarLibraryItem-action-2AHiQ SidebarIconButton-sidebarIconButton-3zxa5",libraryListItem:"SidebarLibraryItem-libraryListItem-2cmmj SidebarListItem-sidebarListItem-3ijGg",isVisible:"SidebarLibraryItem-isVisible-ynsb8"}},function(e,t){e.exports={spinnerContainer:"SidebarServerContent-spinnerContainer-1XVod",unclaimedIcon:"SidebarServerContent-unclaimedIcon-3-qUN"}},function(e,t){e.exports={
librariesListHeader:"SidebarServerLibraries-librariesListHeader-33wsS SidebarList-sidebarListHeader-m1Kth",librariesTitle:"SidebarServerLibraries-librariesTitle-3iqmv"}},function(e,t){e.exports={container:"UserSidebar-container-kfI4p"}},function(e,t){e.exports={personalCloudServerTitle:"PersonalCloudServerModal-personalCloudServerTitle-3B--X",header:"PersonalCloudServerModal-header-1gfrn ModalHeader-modalHeader-IGRia",
innerModalBody:"PersonalCloudServerModal-innerModalBody-wbNiQ ModalBody-innerModalBody-1eSxU",upsell:"PersonalCloudServerModal-upsell-1RaWE",upsellImage:"PersonalCloudServerModal-upsellImage-2OC3p",upsellText:"PersonalCloudServerModal-upsellText-3KIFG",upsellPoint:"PersonalCloudServerModal-upsellPoint-3wbUp",findOutMore:"PersonalCloudServerModal-findOutMore-2wqwi",footer:"PersonalCloudServerModal-footer-12h4I ModalFooter-modalFooter-pJpOu"}},function(e,t){e.exports={
feature:"PlexPassFeature-feature-227Do",featurePadding:"PlexPassFeature-featurePadding-3qxKL",featureImage:"PlexPassFeature-featureImage-1MQuZ",featureContainer:"PlexPassFeature-featureContainer-5yGpR",featureTitle:"PlexPassFeature-featureTitle-cBOf4",featureDescription:"PlexPassFeature-featureDescription-2mgxr"}},function(e,t){e.exports={plexPassTitle:"PlexPassLiteModal-plexPassTitle-yydxI PlexPassModalContent-plexPassTitle-3B6zq",
header:"PlexPassLiteModal-header-3v_OD PlexPassModalContent-header-2D-A9 ModalHeader-modalHeader-IGRia",body:"PlexPassLiteModal-body-X7IaQ PlexPassModalContent-body-3BSt2 ModalBody-innerModalBody-1eSxU",footer:"PlexPassLiteModal-footer-iGi6c PlexPassModalContent-footer-15_IJ ModalFooter-modalFooter-pJpOu"}},function(e,t){e.exports={plexPassTitle:"PlexPassModalContent-plexPassTitle-3B6zq",header:"PlexPassModalContent-header-2D-A9 ModalHeader-modalHeader-IGRia",
body:"PlexPassModalContent-body-3BSt2 ModalBody-innerModalBody-1eSxU",moreFeatures:"PlexPassModalContent-moreFeatures-2qv0-",footer:"PlexPassModalContent-footer-15_IJ ModalFooter-modalFooter-pJpOu",planButton:"PlexPassModalContent-planButton-3JY2b",link:"PlexPassModalContent-link-3Xt-y",linkSeparator:"PlexPassModalContent-linkSeparator-2yiHh",spinnerContainer:"PlexPassModalContent-spinnerContainer-ytMIf",plansContainer:"PlexPassModalContent-plansContainer-2boTW",
isPlansPending:"PlexPassModalContent-isPlansPending-SjJBD"}},function(e,t){e.exports={appear:"crossFadeTransition-appear-27UVR",enter:"crossFadeTransition-enter-2olCX",appearActive:"crossFadeTransition-appearActive-7pzlF",enterActive:"crossFadeTransition-enterActive-20iYK",leave:"crossFadeTransition-leave-3KwKk",leaveActive:"crossFadeTransition-leaveActive-3J0Fz"}},function(e,t){e.exports={
button:"SignInButton-button-1SYIV SignInPage-button-1I3Ol SpinnerButton-button-3WowH Button-button--JvPI Link-link-2XYrU Button-large-15Al1"}},,,,,,,,,,,,,function(e,t,n){e.exports=n.p+"common/img/backgrounds/noise.0e9cf16a17adb19690cd31312cdaa809.png"},function(e,t,n){e.exports=n.p+"common/img/backgrounds/preset-dark.5b95c8c24aab87067b69bca7ae11759a.png"},function(e,t,n){e.exports=n.p+"common/img/backgrounds/preset-light.fce1a96aaadda47900f6fedf0a348ad1.png"},function(e,t,n){
e.exports=n.p+"desktop/common/img/queue/bookmarklet-steps-ie.3cbda4e75b0dd0e186e0c24999ab0d1d.png"},function(e,t,n){e.exports=n.p+"desktop/common/img/queue/bookmarklet-steps.abc5147d9257f0ec59f7b2257db9cb8f.png"},function(e,t,n){e.exports=n.p+"desktop/common/img/queue/email-links.f1b12dd82ea85b39a4c0fa07dd6df095.png"},function(e,t,n){e.exports=n.p+"desktop/common/mp3/null.2036f08ba858d37814b7f6982d26414a.mp3"},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){
return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},'<svg class="circle-progress-bar" version="1.1" xmlns="http://www.w3.org/2000/svg"> <circle fill="transparent"></circle> </svg> <div class="circle-progress-text"></div> '})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,s="";return s+='<div class="page-container '+(0,this.escapeExpression)((r=t&&t.styles,
r=null==r||r===!1?r:r.pageContainer,"function"==typeof r?r.apply(t):r))+'"></div> '})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,s="",o=this.escapeExpression;return s+='<div class="sidebar-container '+o((r=t&&t.styles,r=null==r||r===!1?r:r.sidebarContainer,"function"==typeof r?r.apply(t):r))+'"></div> <div class="page-container '+o((r=t&&t.styles,r=null==r||r===!1?r:r.pageContainer,
"function"==typeof r?r.apply(t):r))+'"></div> '})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},'<ul class="js-file-list-items list browse-directory-list"></ul> <div class="js-file-list-truncated-message css-file-list-truncated-message"></div> '})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],
n=this.merge(n,e.helpers),a=a||{},"<div></div> "})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},"<div></div> "})},function(e,t){e.exports=function(){return""}},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},
'<div class="alert-bar-container"></div> <div id="content" class="scroll-container dark-scrollbar"></div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a,r="";return r+="<p>"+v(i(n(1)).call(e,"Requirements",{hash:{},data:t}))+": ",a=e&&e.requirements,a=typeof a===m?a.apply(e):a,(a||0===a)&&(r+=a),r+="</p>"}function l(e,t){var n,i="";return i+="<p>",n=e&&e.info,
n=typeof n===m?n.apply(e):n,(n||0===n)&&(i+=n),i+="</p>"}function u(e,t){var r,s="";return s+=' <div class="btn-group dropup download-server-btn-group"> <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> '+v(i(n(1)).call(e,"Download",{hash:{},data:t}))+' <span class="caret"></span> </button> <ul class="dropdown-menu"> ',r=a.each.call(e,e&&e.releases,{hash:{},inverse:g.noop,fn:g.program(6,c,t),data:t}),
(r||0===r)&&(s+=r),s+=" </ul> </div> "}function c(e,t){var n,i="";return i+=' <li><a href="'+v((n=e&&e.url,typeof n===m?n.apply(e):n))+'" download class="download-btn">'+v((n=e&&e.label,typeof n===m?n.apply(e):n))+"</a></li> "}function d(e,t){var n,i="";return i+=' <div class="download-server-btn-group"> ',n=a.each.call(e,e&&e.releases,{hash:{},inverse:g.noop,fn:g.program(9,p,t),data:t}),(n||0===n)&&(i+=n),i+=" </div> "}function p(e,t){var n,i="";return i+=' <a href="'+v((n=e&&e.url,
typeof n===m?n.apply(e):n))+'" download class="btn btn-primary download-btn">'+v((n=e&&e.label,typeof n===m?n.apply(e):n))+"</a> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var h,f="",v=this.escapeExpression,m="function",g=this;return f+='<div class="type-'+v((h=t&&t.type,typeof h===m?h.apply(t):h))+" platform-logo platform-"+v((h=t&&t.id,typeof h===m?h.apply(t):h))+'"></div> <h2><strong>'+v((h=t&&t.name,
typeof h===m?h.apply(t):h))+"</strong> "+v(i(n(1)).call(t,"Download",{hash:{},data:s}))+"</h2> <h5>"+v(i(n(1)).call(t,"Version",{hash:{},data:s}))+" "+v((h=t&&t.version,typeof h===m?h.apply(t):h))+"</h5> <h5>"+v(i(n(818)).call(t,t&&t.date,{hash:{},data:s}))+'</h5> <div class="more-info"> ',h=a.if.call(t,t&&t.requirements,{hash:{},inverse:g.noop,fn:g.program(1,o,s),data:s}),(h||0===h)&&(f+=h),f+=" ",h=a.if.call(t,t&&t.info,{hash:{},inverse:g.noop,fn:g.program(3,l,s),data:s}),(h||0===h)&&(f+=h),
f+=" </div> ",h=a.if.call(t,t&&t.shouldUseDropup,{hash:{},inverse:g.program(8,d,s),fn:g.program(5,u,s),data:s}),(h||0===h)&&(f+=h),f+=" "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return"(Plex Pass)"}function l(e,t){var n,i="";return i+=' <p><span class="text-muted">Name:</span> '+h((n=e&&e.primaryServer,n=null==n||n===!1?n:n.friendlyName,
typeof n===p?n.apply(e):n))+'</p> <p><span class="text-muted">URL:</span> '+h((n=e&&e.primaryServerUrl,typeof n===p?n.apply(e):n))+'</p> <p><span class="text-muted">Version:</span> '+h((n=e&&e.primaryServer,n=null==n||n===!1?n:n.version,typeof n===p?n.apply(e):n))+'</p> <p><span class="text-muted">Token:</span> '+h((n=e&&e.primaryServer,n=null==n||n===!1?n:n.accessToken,typeof n===p?n.apply(e):n))+"</p> "}function u(e,t){return' <p><span class="text-muted">none</span></p> '}
this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var c,d="",p="function",h=this.escapeExpression,f=this;return d+='<h3>Browser</h3> <p><span class="text-muted">Host:</span> '+h((c=t&&t.host,typeof c===p?c.apply(t):c))+'</p> <p><span class="text-muted">User Agent:</span> '+h((c=t&&t.userAgent,typeof c===p?c.apply(t):c))+'</p> <p><span class="text-muted">Name:</span> '+h((c=t&&t.browser,c=null==c||c===!1?c:c.name,
typeof c===p?c.apply(t):c))+'</p> <p><span class="text-muted">Version:</span> '+h((c=t&&t.browser,c=null==c||c===!1?c:c.version,typeof c===p?c.apply(t):c))+'</p> <p><span class="text-muted">Platform:</span> '+h((c=t&&t.browser,c=null==c||c===!1?c:c.platform,typeof c===p?c.apply(t):c))+'</p> <p><span class="text-muted">Mobile:</span> '+h(i(n(549)).call(t,(c=t&&t.browser,null==c||c===!1?c:c.mobile),{hash:{},data:s
}))+'</p> <h3>User</h3> <p><span class="text-muted">Username:</span> '+h((c=t&&t.user,c=null==c||c===!1?c:c.username,typeof c===p?c.apply(t):c))+" ",c=a.if.call(t,t&&t.hasPlexPass,{hash:{},inverse:f.noop,fn:f.program(1,o,s),data:s}),(c||0===c)&&(d+=c),d+='</p> <p><span class="text-muted">Email:</span> '+h((c=t&&t.user,c=null==c||c===!1?c:c.email,typeof c===p?c.apply(t):c))+'</p> <p><span class="text-muted">Token:</span> '+h((c=t&&t.user,c=null==c||c===!1?c:c.accessToken,
typeof c===p?c.apply(t):c))+'</p> <h3>plex.tv</h3> <p><span class="text-muted">URL:</span> '+h((c=t&&t.cloudServerUrl,typeof c===p?c.apply(t):c))+'</p> <p><span class="text-muted">Available:</span> '+h(i(n(549)).call(t,(c=t&&t.cloudServer,null==c||c===!1?c:c.available),{hash:{},data:s}))+'</p> <p><span class="text-muted">Authorized:</span> '+h(i(n(549)).call(t,(c=t&&t.cloudServer,null==c||c===!1?c:c.authorized),{hash:{},data:s}))+"</p> <h3>Primary Server</h3> ",c=a.if.call(t,t&&t.primaryServer,{
hash:{},inverse:f.program(5,u,s),fn:f.program(3,l,s),data:s}),(c||0===c)&&(d+=c),d+=" "})},function(e,t){e.exports=function(){return""}},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,s,o="",l=this.escapeExpression;return o+='<textarea class="form-control">',(s=n.logs)?r=s.call(t,{hash:{},data:a}):(s=t&&t.logs,r="function"==typeof s?s.call(t,{hash:{},data:a}):s),o+=l(r)+"</textarea> "})
},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a="";return a+=' <div class="remember-group checkbox"> <label class="control-label"> <input type="checkbox" id="remember" checked> '+c(i(n(1)).call(e,"Remember me",{hash:{},data:t}))+" </label> </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var l,u="",c=this.escapeExpression,d=this
;return u+='<div class="row"> <div class="col-sm-12"> <h2 class="sign-in-header"> <a class="sign-in-btn selected" href="#">'+c(i(n(1)).call(t,"Sign In",{hash:{},data:s}))+'</a> <span class="sign-in-header-divider">'+c(i(n(1)).call(t,"or",{hash:{},data:s}))+'</span> <a class="sign-up-btn" href="#">'+c(i(n(1)).call(t,"Sign Up",{hash:{},data:s}))+'</a> </h2> </div> </div> <div class="username-group form-group"> <label for="username" class="control-label"> '+c(i(n(1)).call(t,"Username",{hash:{},
data:s}))+' <span class="control-error">'+c(i(n(1)).call(t,"Required",{hash:{},data:s}))+'</span> </label> <input type="text" id="username" class="form-control" autocorrect="off" autocapitalize="off"> </div> <div class="email-group form-group"> <label for="email" class="control-label"> '+c(i(n(1)).call(t,"Email",{hash:{},data:s}))+' <span class="control-error">'+c(i(n(1)).call(t,"Required",{hash:{},data:s
}))+'</span> </label> <input type="text" id="email" class="form-control" autocorrect="off" autocapitalize="off"> </div> <div class="password-group form-group"> <label for="password" class="control-label"> '+c(i(n(1)).call(t,"Password",{hash:{},data:s}))+' <span class="control-error">'+c(i(n(1)).call(t,"Required",{hash:{},data:s
}))+'</span> </label> <input type="password" id="password" class="form-control"> </div> <div class="confirm-group form-group"> <label for="confirm" class="control-label"> '+c(i(n(1)).call(t,"Confirm Password",{hash:{},data:s}))+' <span class="control-error">'+c(i(n(1)).call(t,"Passwords do not match",{hash:{},data:s
}))+'</span> </label> <input type="password" id="confirm" class="form-control"> </div> <div class="age-disclaimer form-group"> '+c(i(n(1)).call(t,"By creating an account, you confirm that you have read and accept the {1}Terms and Conditions{2} and are at least 13 years old.",'<a href="https://plex.tv/terms" target="_blank">',"</a>",{hash:{},data:s
}))+' </div> <div class="form-footer"> <button type="submit" class="btn btn-lg btn-primary btn-loading pull-right"> <div class="loading loading-sm"></div> <span class="sign-in-label btn-label">'+c(i(n(1)).call(t,"Sign In",{hash:{},data:s}))+'</span> <span class="sign-up-label btn-label">'+c(i(n(1)).call(t,"Sign Up",{hash:{},data:s}))+"</span> </button> ",l=a.if.call(t,t&&t.showRememberMe,{hash:{},inverse:d.noop,fn:d.program(1,o,s),data:s}),(l||0===l)&&(u+=l),u+=" </div> "})},function(e,t,n){
function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a="";return a+=' <a class="btn-gray tv-mode-btn" href="#"> '+f(i(n(1)).call(e,"Enter TV Full Screen",{hash:{},data:t}))+' <i class="plex-icon-tv-mode-enter-560 tv-mode-icon"></i> </a> '}function l(e,t){return' <form id="user-account-form"></form> '}function u(e,t){var n,i="";return i+=" ",n=a.if.call(e,e&&e.showWhySignIn,{hash:{},inverse:m.program(8,d,t),
fn:m.program(6,c,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function c(e,t){var a,r="";return r+=" <p>"+f(i(n(1)).call(e,"You must be signed in for Plex to work properly. If you are not signed in:",{hash:{},data:t}))+'</p> <ul class="text-muted"> <li>'+f(i(n(1)).call(e,"Any connections between your media server and players WILL NOT BE SECURE",{hash:{},data:t}))+"</li> <li>"+f(i(n(1)).call(e,"You may experience degraded streaming performance",{hash:{},data:t
}))+"</li> <li>"+f(i(n(1)).call(e,"It will be more difficult, and sometimes impossible, to find your server and discover players",{hash:{},data:t}))+"</li> <li>"+f(i(n(1)).call(e,"You will not be able to access your media server from outside your home",{hash:{},data:t}))+"</li> <li>"+f(i(n(1)).call(e,"You will not be able to access content and many features provided by Plex",{hash:{},data:t
}))+'</li> </ul> <div class="skip-sign-in-container"> <p><button type="button" class="back-to-sign-in-btn btn btn-lg btn-primary">'+f(i(n(1)).call(e,"Sign In",{hash:{},data:t}))+'</button></p> <p><a class="skip-btn" href="'+f((a=e&&e.skipSignInUrl,typeof a===v?a.apply(e):a))+'">'+f(i(n(1)).call(e,"Skip and accept limited functionality",{hash:{},data:t}))+"</a></p> </div> "}function d(e,t){var a=""
;return a+=' <div class="skip-sign-in-container"> <a class="why-sign-in-btn" href="#">'+f(i(n(1)).call(e,"What's this?",{hash:{},data:t}))+"</a> </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var p,h="",f=this.escapeExpression,v="function",m=this;return p=a.if.call(t,t&&t.showTVMode,{hash:{},inverse:m.noop,fn:m.program(1,o,s),data:s}),(p||0===p)&&(h+=p),
h+=' <div class="sign-in-logo text-center"> <i class="plex-image logo"></i> </div> <div class="row row-padded"> <div class="col-sm-6 col-sm-offset-3"> ',p=a.unless.call(t,t&&t.showWhySignIn,{hash:{},inverse:m.noop,fn:m.program(3,l,s),data:s}),(p||0===p)&&(h+=p),h+=" ",p=a.if.call(t,t&&t.showSkip,{hash:{},inverse:m.noop,fn:m.program(5,u,s),data:s}),(p||0===p)&&(h+=p),h+=" </div> </div> "})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){function r(e,t){
var i,a="";return a+='<span class="star"><i class="star-icon glyphicon ',i=n.if.call(e,e,{hash:{},inverse:c.program(4,o,t),fn:c.program(2,s,t),data:t}),(i||0===i)&&(a+=i),a+='"></i><span class="empty-icon"></span></span>'}function s(e,t){return"star"}function o(e,t){return"dislikes"}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var l,u="",c=this;return l=n.each.call(t,t&&t.stars,{hash:{},inverse:c.noop,fn:c.program(1,r,a),data:a}),(l||0===l)&&(u+=l),u+=" "})
},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o="",l=this.escapeExpression;return o+='<ul class="nav action-bar-nav"> <li> <a class="play-btn btn-gray" href="#" title="'+l(i(n(1)).call(t,"Play",{hash:{},data:s
}))+'" data-toggle="tooltip"><i class="glyphicon play"></i></a> </li> <li> <a class="mark-watched-btn btn-gray" href="#" title="'+l(i(n(1)).call(t,"Mark as Watched",{hash:{},data:s}))+'" data-toggle="tooltip"><i class="glyphicon circle-ok"></i></a> </li> <li> <a class="mark-unwatched-btn btn-gray" href="#" title="'+l(i(n(1)).call(t,"Mark as Unwatched",{hash:{},data:s
}))+'" data-toggle="tooltip"><i class="glyphicon circle-minus"></i></a> </li> <li> <a class="share-btn btn-gray secondary-action" href="#" title="'+l(i(n(1)).call(t,"Share",{hash:{},data:s}))+'" data-toggle="tooltip"><i class="glyphicon share"></i></a> </li> <li> <a class="recommend-btn btn-gray secondary-action" href="#" title="'+l(i(n(1)).call(t,"Recommend",{hash:{},data:s
}))+'" data-toggle="tooltip"><i class="glyphicon share-alt"></i></a> </li> <li> <a class="delete-from-user-playlist-btn btn-gray secondary-action" href="#" title="'+l(i(n(1)).call(t,"Delete",{hash:{},data:s}))+'" data-toggle="tooltip"><i class="glyphicon bin"></i></a> </li> <li> <a class="info-btn btn-gray secondary-action" href="#" title="'+l(i(n(1)).call(t,"Info",{hash:{},data:s
}))+'" data-toggle="tooltip"><i class="glyphicon circle-info"></i></a> </li> <li class="secondary-actions-dropdown dropdown"> <a class="more-btn btn-gray dropdown-toggle" href="#" data-toggle="dropdown"><i class="glyphicon more"></i></a> <ul class="dropdown-menu"> <li><a class="watch-later-btn" href="#" tabindex="-1">'+l(i(n(1)).call(t,"Watch Later",{hash:{},data:s}))+'</a></li> <li><a class="share-btn" href="#">'+l(i(n(1)).call(t,"Share",{hash:{},data:s
}))+'</a></li> <li><a class="recommend-btn" href="#">'+l(i(n(1)).call(t,"Recommend",{hash:{},data:s}))+'</a></li> <li><a class="delete-from-user-playlist-btn has-danger" href="#">'+l(i(n(1)).call(t,"Delete",{hash:{},data:s}))+'</a></li> <li><a class="info-btn" href="#">'+l(i(n(1)).call(t,"Get Info",{hash:{},data:s}))+"</a></li> </ul> </li> </ul> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){
function o(e,t){return"selected"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var l,u="",c=this,d=this.escapeExpression;return u+='<ul class="nav nav-header pull-right"> <li class="alerts-nav-item"><a class="alerts-btn btn-gray ',l=i(n(24)).call(t,t&&t.subset,"alerts",{hash:{},inverse:c.noop,fn:c.program(1,o,s),data:s}),(l||0===l)&&(u+=l),u+='" href="#!/status/alerts">'+d(i(n(1)).call(t,"Alerts",{hash:{},data:s
}))+'</a></li> <li class="sync-nav-item"><a class="sync-btn btn-gray ',l=i(n(24)).call(t,t&&t.subset,"sync",{hash:{},inverse:c.noop,fn:c.program(1,o,s),data:s}),(l||0===l)&&(u+=l),u+='" href="#!/status/sync">'+d(i(n(1)).call(t,"Sync",{hash:{},data:s}))+'</a></li> <li class="conversion-nav-item"><a class="conversion-btn btn-gray ',l=i(n(24)).call(t,t&&t.subset,"conversion",{hash:{},inverse:c.noop,fn:c.program(1,o,s),data:s}),(l||0===l)&&(u+=l),
u+='" href="#!/status/conversion">'+d(i(n(1)).call(t,"Conversion",{hash:{},data:s}))+'<span class="badge"></span></a></li> <li class="now-playing-nav-item"><a class="now-playing-btn btn-gray ',l=i(n(24)).call(t,t&&t.subset,"nowPlaying",{hash:{},inverse:c.noop,fn:c.program(1,o,s),data:s}),(l||0===l)&&(u+=l),u+='" href="#!/status/playing">'+d(i(n(1)).call(t,"Now Playing",{hash:{},data:s}))+'<span class="badge"></span></a></li> </ul> <h2>'+d(i(n(1)).call(t,"Status",{hash:{},data:s
}))+'</h2> <div class="activity-container"></div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var r,s="";return s+=' <div class="filter-bar-right"> <span class="page-count">'+h(i(n(1)).call(e,"{1} of {2}",e&&e.page,e&&e.pages,{hash:{},data:t}))+'</span> <a class="previous-btn btn-gray ',r=a.unless.call(e,e&&e.enablePrevious,{hash:{},inverse:f.noop,fn:f.program(2,l,t),data:t}),
(r||0===r)&&(s+=r),s+='" href="#"> <i class="glyphicon chevron-left"></i> </a> <a class="next-btn btn-gray ',r=a.unless.call(e,e&&e.enableNext,{hash:{},inverse:f.noop,fn:f.program(2,l,t),data:t}),(r||0===r)&&(s+=r),s+='" href="#"> <i class="glyphicon chevron-right"></i> </a> </div> '}function l(e,t){return"disabled"}function u(e,t){var a=""
;return a+=' <div class="row row-padded"> <div class="col-md-8 col-md-offset-2"> <h4 class="text-muted text-center">'+h(i(n(1)).call(e,"Alerts are restricted from shared users.",{hash:{},data:t}))+"</h4> </div> </div> "}function c(e,t){return' <div class="alert-list-container"></div> '}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var d,p="",h=this.escapeExpression,f=this;return p+='<div class="filter-bar"> ',d=a.unless.call(t,t&&t.shared,{hash:{},inverse:f.noop,
fn:f.program(1,o,s),data:s}),(d||0===d)&&(p+=d),p+=" </div> ",d=a.if.call(t,t&&t.shared,{hash:{},inverse:f.program(6,c,s),fn:f.program(4,u,s),data:s}),(d||0===d)&&(p+=d),p+=" "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var r,s="";return s+=' <div class="filter-bar-right"> <button class="pause-btn btn btn-sm btn-default ',r=a.if.call(e,e&&e.isPaused,{hash:{},inverse:v.noop,
fn:v.program(2,l,t),data:t}),(r||0===r)&&(s+=r),s+='">'+m(i(n(1)).call(e,"Pause",{hash:{},data:t}))+'</button> <button class="resume-btn btn btn-sm btn-primary ',r=a.unless.call(e,e&&e.isPaused,{hash:{},inverse:v.noop,fn:v.program(2,l,t),data:t}),(r||0===r)&&(s+=r),s+='">'+m(i(n(1)).call(e,"Resume",{hash:{},data:t}))+"</button> </div> "}function l(e,t){return"hidden"}function u(e,t){var a,r=""
;return r+=' <p class="conversion-error-message"><i class="conversion-error-icon glyphicon circle-exclamation-mark text-danger"></i> '+m((a=e&&e.errorMessage,typeof a===g?a.apply(e):a))+" "+m(i(n(1)).call(e,"Check the status in {1}Optimized Versions Settings{2}.",'<a href="#!/settings/server/{3}/versions">',"</a>",e&&e.serverID,{hash:{},data:t}))+"</p> "}function c(e,t){var a=""
;return a+=' <p class="conversion-status-message">'+m(i(n(1)).call(e,"Manage your completed conversions in {1}Optimized Versions Settings{2}.",'<a href="#!/settings/server/{3}/versions">',"</a>",e&&e.serverID,{hash:{},data:t}))+"</p> "}function d(e,t){var n,i="";return i+=' <div class="conversion-queue-empty-region"></div> <div class="conversion-queue-up-next-list-region"></div> <hr class="conversion-queue-divider ',n=a.unless.call(e,e&&e.shouldShowDivider,{hash:{},inverse:v.noop,
fn:v.program(2,l,t),data:t}),(n||0===n)&&(i+=n),i+='"> <div class="conversion-queue-after-up-next-list-region"></div> '}function p(e,t){var a="";return a+=' <div class="row row-padded"> <h4 class="text-muted text-center"> '+m(i(n(1)).call(e,"This requires Plex Media Server {1} or later.",e&&e.minServerVersion,{hash:{},data:t}))+" </h4> </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var h,f="",v=this,m=this.escapeExpression,g="function"
;return f+='<div class="conversion-filter-bar filter-bar"> ',h=a.if.call(t,t&&t.hasPausedSetting,{hash:{},inverse:v.noop,fn:v.program(1,o,s),data:s}),(h||0===h)&&(f+=h),f+=" </div> ",h=a.if.call(t,t&&t.errorMessage,{hash:{},inverse:v.program(6,c,s),fn:v.program(4,u,s),data:s}),(h||0===h)&&(f+=h),f+=" ",h=a.if.call(t,t&&t.shouldShowList,{hash:{},inverse:v.program(10,p,s),fn:v.program(8,d,s),data:s}),(h||0===h)&&(f+=h),f+=" "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}
var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return' <div class="sessions-list-container"></div> '}function l(e,t){var n,i="";return i+=' <div class="row row-padded"> <h4 class="text-muted text-center"> ',n=a.if.call(e,e&&e.shared,{hash:{},inverse:m.program(6,c,t),fn:m.program(4,u,t),data:t}),(n||0===n)&&(i+=n),i+=" </h4> </div> "}function u(e,t){var a="";return a+=" "+v(i(n(1)).call(e,"Now Playing is restricted from shared users.",{hash:{},data:t}))+" "}
function c(e,t){var n;return n=a.if.call(e,e&&e.synced,{hash:{},inverse:m.program(9,p,t),fn:m.program(7,d,t),data:t}),n||0===n?n:""}function d(e,t){var a="";return a+=" "+v(i(n(1)).call(e,"Now Playing is unavailable with synced servers.",{hash:{},data:t}))+" "}function p(e,t){var a="";return a+=" "+v(i(n(1)).call(e,"Now Playing requires Plex Media Server {1} or later.",e&&e.minServerVersion,{hash:{},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{}
;var h,f="",v=this.escapeExpression,m=this;return f+='<div class="filter-bar"></div> ',h=a.if.call(t,t&&t.shouldShowList,{hash:{},inverse:m.program(3,l,s),fn:m.program(1,o,s),data:s}),(h||0===h)&&(f+=h),f+=" "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o=""
;return o+='<div class="row row-loading"> <div class="loading loading-inline"></div> </div> <div class="sync-empty-message row row-padded hidden"> <h4 class="text-muted text-center"> '+(0,this.escapeExpression)(i(n(1)).call(t,"Nothing is synced to this device.",{hash:{},data:s}))+' </h4> </div> <div class="sync-device-message row hidden"> <h4 class="sync-device-message-text text-muted text-center"></h4> </div> <div class="sync-item-list-container"></div> '})},function(e,t,n){function i(e){
return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return'<a class="edit-btn btn-gray" href="#"><i class="glyphicon pencil"></i></a>'}function l(e,t){var n,i="";return i+=" ",n=a.if.call(e,e&&e.devices,{hash:{},inverse:w.program(14,v,t),fn:w.program(4,u,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function u(e,t){var n,i="";return i+=' <div class="row"> <div class="col-sm-4 col-md-3"> <ul class="nav nav-cards"> ',
n=a.each.call(e,e&&e.devices,{hash:{},inverse:w.noop,fn:w.programWithDepth(5,c,t,e),data:t}),(n||0===n)&&(i+=n),i+=' </ul> </div> <div class="sync-device-container col-sm-8 col-md-9"></div> </div> '}function c(e,t,r){var s,o="";return o+=' <li> <a class="card btn-gray ',s=i(n(24)).call(e,(s=r&&r.selectedDevice,null==s||s===!1?s:s.id),e&&e.id,{hash:{},inverse:w.noop,fn:w.program(6,d,t),data:t}),(s||0===s)&&(o+=s),o+='" data-id="'+C((s=e&&e.id,typeof s===M?s.apply(e):s))+'" href="#"> ',
s=a.if.call(e,e&&e.name,{hash:{},inverse:w.program(10,h,t),fn:w.program(8,p,t),data:t}),(s||0===s)&&(o+=s),o+=" ",s=a.if.call(e,e&&e.isCloudSync,{hash:{},inverse:w.noop,fn:w.program(12,f,t),data:t}),(s||0===s)&&(o+=s),o+=" </a> </li> "}function d(e,t){return"selected"}function p(e,t){var n;return C((n=e&&e.name,typeof n===M?n.apply(e):n))}function h(e,t){var n;return C((n=e&&e.device,typeof n===M?n.apply(e):n))}function f(e,t){
return'<i class="cloud-sync-icon glyphicon cloud"></i><button class="cloud-sync-settings-btn btn-link btn-gray"><i class="glyphicon cogwheel"></i></button>'}function v(e,t){var a="";return a+=' <div class="row row-padded"> <h4 class="text-muted text-center">'+C(i(n(1)).call(e,"You have no sync capable devices.",{hash:{},data:t}))+"</h4> </div> "}function m(e,t){var n,i="";return i+=" ",n=a.if.call(e,e&&e.sync,{hash:{},inverse:w.program(20,b,t),fn:w.program(17,g,t),data:t}),(n||0===n)&&(i+=n),
i+=" "}function g(e,t){var n,i="";return i+=' <div class="row row-padded"> <h4 class="text-muted text-center">'+C((n=e&&e.plexPassInfo,n=null==n||n===!1?n:n.message,typeof n===M?n.apply(e):n))+'</h4> <p class="text-center ',n=a.unless.call(e,(n=e&&e.plexPassInfo,null==n||n===!1?n:n.showButton),{hash:{},inverse:w.noop,fn:w.program(18,y,t),data:t}),(n||0===n)&&(i+=n),i+='"> <a class="btn btn-sm btn-primary" href="'+C((n=e&&e.plexPassInfo,n=null==n||n===!1?n:n.url,
typeof n===M?n.apply(e):n))+'" target="'+C((n=e&&e.plexPassInfo,n=null==n||n===!1?n:n.target,typeof n===M?n.apply(e):n))+'">'+C((n=e&&e.plexPassInfo,n=null==n||n===!1?n:n.buttonText,typeof n===M?n.apply(e):n))+"</a> </p> </div> "}function y(e,t){return"hidden"}function b(e,t){var a="";return a+=' <div class="row row-padded"> <h4 class="text-muted text-center">'+C(i(n(1)).call(e,"This server does not support sync.",{hash:{},data:t}))+"</h4> </div> "}this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),s=s||{};var S,I="",M="function",C=this.escapeExpression,w=this;return I+='<div class="filter-bar"> <div class="filter-bar-right"> ',S=a.if.call(t,t&&t.hasTouchScreen,{hash:{},inverse:w.noop,fn:w.program(1,o,s),data:s}),(S||0===S)&&(I+=S),I+=' <a class="refresh-btn btn-gray" href="#"><i class="glyphicon repeat"></i></a> </div> </div> ',S=a.if.call(t,t&&t.allowSync,{hash:{},inverse:w.program(16,m,s),fn:w.program(3,l,s),data:s}),(S||0===S)&&(I+=S),I+=" "})
},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,s,o="",l=this.escapeExpression;return o+='<button type="button" class="close-btn btn-link"><i class="glyphicon remove-2"></i></button> <span class="message">',(s=n.message)?r=s.call(t,{hash:{},data:a}):(s=t&&t.message,r="function"==typeof s?s.call(t,{hash:{},data:a}):s),o+=l(r)+"</span> "})},function(e,t,n){function i(e){
return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return"circle-ok"}function l(e,t){return"circle-exclamation-mark"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var u,c="",d=this;return c+='<button class="close-btn btn-link"><i class="glyphicon remove-2"></i></button> <i class="alert-icon glyphicon ',u=i(n(24)).call(t,t&&t.type,"success",{hash:{},inverse:d.program(3,l,s),fn:d.program(1,o,s),data:s}),
(u||0===u)&&(c+=u),c+='"></i> <h4>',u=t&&t.message,u="function"==typeof u?u.apply(t):u,(u||0===u)&&(c+=u),c+="</h4> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a,r="";return r+=' <a class="info-link link" href="'+d((a=e&&e.url,typeof a===c?a.apply(e):a))+'" target="_blank">'+d(i(n(1)).call(e,"More Info",{hash:{},data:t}))+"</a> "}this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),s=s||{};var l,u="",c="function",d=this.escapeExpression,p=this;return u+='<button type="button" class="close-btn btn-link"><i class="glyphicon remove-2"></i></button> <span class="message">'+d((l=t&&t.content,typeof l===c?l.apply(t):l))+"</span> ",l=a.if.call(t,t&&t.url,{hash:{},inverse:p.noop,fn:p.program(1,o,s),data:s}),(l||0===l)&&(u+=l),u+=" "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12)
;e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a="";return a+=' <span class="message">'+d(i(n(1)).call(e,"An insecure media server has been found on your network.",{hash:{},data:t}))+'</span> <a class="reload-link link" href="#">'+d(i(n(1)).call(e,"Reload app insecurely",{hash:{},data:t}))+"</a> "}function l(e,t){var a="";return a+=' <span class="message">'+d(i(n(1)).call(e,"An unclaimed media server has been found on your network.",{hash:{},data:t
}))+'</span> <a class="claim-link link" href="#">'+d(i(n(1)).call(e,"Claim it now",{hash:{},data:t}))+"</a> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var u,c="",d=this.escapeExpression,p=this;return c+='<button type="button" class="close-btn btn-link"><i class="glyphicon remove-2"></i></button> ',u=a.if.call(t,t&&t.showInsecureMessage,{hash:{},inverse:p.program(3,l,s),fn:p.program(1,o,s),data:s}),(u||0===u)&&(c+=u),c+=" "})},function(e,t,n){function i(e){
return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o,l="",u=this.escapeExpression;return l+='<button type="button" class="close-btn btn-link"><i class="glyphicon remove-2"></i></button> <span class="message">'+u(i(n(1)).call(t,"A new TV tuner ({tunerMake} {tunerModel}) has been found! Plex DVR is the easiest way to record your favorite shows!",{hash:{tunerModel:t&&t.model,
tunerMake:t&&t.make},data:s}))+'</span> <a class="setup-link link" href="#!/settings/server/'+u((o=t&&t.encodedMachineIdentifier,"function"==typeof o?o.apply(t):o))+'/dvr">'+u(i(n(1)).call(t,"Learn more",{hash:{},data:s}))+"</a> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a="";return a+=' <a class="download-link link" href="#">'+h(i(n(1)).call(e,"Download now",{hash:{},data:t
}))+"</a> "}function l(e,t){var a;return a=i(n(24)).call(e,e&&e.state,"downloaded",{hash:{},inverse:v.program(6,c,t),fn:v.program(4,u,t),data:t}),a||0===a?a:""}function u(e,t){var a="";return a+=' <a class="install-link link" href="#">'+h(i(n(1)).call(e,"Install now",{hash:{},data:t}))+"</a> "}function c(e,t){var a,r="";return r+=' <a class="link" href="'+h((a=e&&e.downloadURL,typeof a===f?a.apply(e):a))+'" target="_blank">'+h(i(n(1)).call(e,"Download now",{hash:{},data:t}))+"</a> "}
this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var d,p="",h=this.escapeExpression,f="function",v=this;return p+='<span class="message"> '+h((d=t&&t.serverUpdateAvailableMessage,typeof d===f?d.apply(t):d))+' <span class="server-update-message-version">'+h((d=t&&t.version,typeof d===f?d.apply(t):d))+"</span> </span> ",d=i(n(24)).call(t,t&&t.state,"available",{hash:{},inverse:v.program(3,l,s),fn:v.program(1,o,s),data:s}),(d||0===d)&&(p+=d),
p+=' <a class="link skip-version-link" href="#">'+h(i(n(1)).call(t,"Skip this version",{hash:{},data:s}))+'</a> <button type="button" class="close-btn btn-link"><i class="glyphicon remove-2"></i></button> '})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},'<i class="alert-icon glyphicon cardio"></i> <span class="status"></span> '})},function(e,t,n){function i(e){
return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return'<a class="settings-btn btn-gray" href="#"><i class="glyphicon cogwheel"></i></a>'}function l(e,t){return"hidden"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var u,c="",d=this,p=this.escapeExpression;return c+='<div class="breadcrumb-actions pull-right"> ',u=a.if.call(t,t&&t.showSettings,{hash:{},inverse:d.noop,fn:d.program(1,o,s),data:s}),
(u||0===u)&&(c+=u),c+=' <span id="channel-list-dropdown" class="dropdown"> <a class="btn-gray dropdown-toggle" href="#channel-list-dropdown" data-toggle="dropdown"><i class="glyphicon show-thumbnails"></i> <i class="caret-icon caret-icon-sm"></i></a> <ul class="dropdown-menu pull-right"> <li><a class="list-btn" data-type="media-tile-list" href="#">'+p(i(n(1)).call(t,"Posters",{hash:{},data:s}))+'<i class="dropdown-selected-icon glyphicon ok-2 ',
u=i(n(165)).call(t,t&&t.listType,"media-tile-list",{hash:{},inverse:d.noop,fn:d.program(3,l,s),data:s}),(u||0===u)&&(c+=u),c+='"></i></a></li> <li><a class="list-btn" data-type="media-details-list" href="#">'+p(i(n(1)).call(t,"Details",{hash:{},data:s}))+'<i class="dropdown-selected-icon glyphicon ok-2 ',u=i(n(165)).call(t,t&&t.listType,"media-details-list",{hash:{},inverse:d.noop,fn:d.program(3,l,s),data:s}),(u||0===u)&&(c+=u),
c+='"></i></a></li> <li><a class="list-btn" data-type="media-list" href="#">'+p(i(n(1)).call(t,"List",{hash:{},data:s}))+'<i class="dropdown-selected-icon glyphicon ok-2 ',u=i(n(165)).call(t,t&&t.listType,"media-list",{hash:{},inverse:d.noop,fn:d.program(3,l,s),data:s}),(u||0===u)&&(c+=u),c+='"></i></a></li> </ul> </span> </div> <span class="breadcrumb-dropdown"><a href="'+p((u=t&&t.channelUrl,"function"==typeof u?u.apply(t):u))+'">'+p((u=t&&t.channelTitle,
"function"==typeof u?u.apply(t):u))+'</a></span> <span class="breadcrumb-subset-dropdown ',u=a.unless.call(t,t&&t.title,{hash:{},inverse:d.noop,fn:d.program(3,l,s),data:s}),(u||0===u)&&(c+=u),c+='"><span class="dropdown-placeholder">'+p((u=t&&t.title,"function"==typeof u?u.apply(t):u))+'</span></span> <span class="list-badge badge badge-lg">'+p((u=t&&t.totalSize,"function"==typeof u?u.apply(t):u))+"</span> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12)
;e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t,a){var r,s="";return s+=' <li><a class="card btn-gray ',r=i(n(24)).call(e,a&&a.currentKey,e&&e.key,{hash:{},inverse:d.noop,fn:d.program(2,l,t),data:t}),(r||0===r)&&(s+=r),s+='" href="#!/server/'+p(i(n(152)).call(e,a&&a.serverID,{hash:{},data:t}))+"/directory/"+p(i(n(152)).call(e,e&&e.key,{hash:{},data:t}))+'">'+p(i(n(1)).call(e,e&&e.title,{hash:{},data:t}))+"</a></li> "}function l(e,t){return"selected"}
this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var u,c="",d=this,p=this.escapeExpression;return c+="<h2>"+p(i(n(1)).call(t,"Channel Directory",{hash:{},data:s}))+'</h2> <div class="filter-bar"> <a class="btn btn-sm btn-default pull-right" href="#!/server/'+p(i(n(152)).call(t,t&&t.serverID,{hash:{},data:s}))+'/channels">'+p(i(n(1)).call(t,"Browse Channels",{hash:{},data:s}))+'</a> </div> <div class="row"> <div class="col-md-3"> <ul class="nav nav-cards"> ',
u=a.each.call(t,t&&t.directories,{hash:{},inverse:d.noop,fn:d.programWithDepth(1,o,s,t),data:s}),(u||0===u)&&(c+=u),c+=' </ul> </div> <div class="directory-container col-md-9"></div> </div> '})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},'<div class="legacy-content"> <div class="legacy-breadcrumb-bar"></div> <div class="legacy-content-scroller dark-scrollbar"></div> </div> '})
},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var n,i="";return i+='<span class="badge">'+v((n=e&&e.allCount,typeof n===f?n.apply(e):n))+"</span>"}function l(e,t){var n,i="";return i+='<span class="badge">'+v((n=e&&e.videoCount,typeof n===f?n.apply(e):n))+"</span>"}function u(e,t){var n,i="";return i+='<span class="badge">'+v((n=e&&e.musicCount,typeof n===f?n.apply(e):n))+"</span>"}
function c(e,t){var n,i="";return i+='<span class="badge">'+v((n=e&&e.photoCount,typeof n===f?n.apply(e):n))+"</span>"}function d(e,t){var a="";return a+=' <div class="filter-bar"> <a class="btn btn-sm btn-primary pull-right" href="#!/server/'+v(i(n(152)).call(e,e&&e.serverID,{hash:{},data:t}))+'/directory">'+v(i(n(1)).call(e,"Install Channels",{hash:{},data:t
}))+'</a> <a class="check-updates-btn btn btn-sm btn-default btn-loading" href="#"> <div class="loading loading-sm"></div> <span class="btn-label">'+v(i(n(1)).call(e,"Check for Updates",{hash:{},data:t}))+"</span> </a> </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var p,h="",f="function",v=this.escapeExpression,m=this;return h+='<ul class="nav nav-header pull-right"> <li><a class="all-btn btn-gray selected" href="#">'+v(i(n(1)).call(t,"All",{hash:{},data:s})),
p=a.if.call(t,t&&t.allCount,{hash:{},inverse:m.noop,fn:m.program(1,o,s),data:s}),(p||0===p)&&(h+=p),h+='</a></li> <li><a class="video-btn btn-gray" href="#">'+v(i(n(1)).call(t,"Video",{hash:{},data:s})),p=a.if.call(t,t&&t.videoCount,{hash:{},inverse:m.noop,fn:m.program(3,l,s),data:s}),(p||0===p)&&(h+=p),h+='</a></li> <li><a class="music-btn btn-gray" href="#">'+v(i(n(1)).call(t,"Music",{hash:{},data:s})),p=a.if.call(t,t&&t.musicCount,{hash:{},inverse:m.noop,fn:m.program(5,u,s),data:s}),
(p||0===p)&&(h+=p),h+='</a></li> <li><a class="photo-btn btn-gray" href="#">'+v(i(n(1)).call(t,"Photo",{hash:{},data:s})),p=a.if.call(t,t&&t.photoCount,{hash:{},inverse:m.noop,fn:m.program(7,c,s),data:s}),(p||0===p)&&(h+=p),h+="</a></li> </ul> <h2>"+v(i(n(1)).call(t,"Channels",{hash:{},data:s}))+"</h2> ",p=a.unless.call(t,t&&t.shared,{hash:{},inverse:m.noop,fn:m.program(9,d,s),data:s}),(p||0===p)&&(h+=p),h+=' <div class="channels-container"></div> '})},function(e,t,n){function i(e){
return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o="",l=this.escapeExpression
;return o+='<div class="details-title-container"> <h1 class="item-title"></h1> <h2 class="item-year"></h2> </div> <div class="details-metadata-container"> <div class="metadata-right pull-right"> <div class="item-genre metadata-tags"></div> <div class="rating-container"></div> <div class="content-rating-flag-container"></div> </div> <p class="metadata-labels"> <span class="item-duration metadata-duration"></span> </p> <p class="item-tagline metadata-tagline"></p> <div class="item-director metadata-tags"> <span class="metadata-label">'+l(i(n(1)).call(t,"Director",{
hash:{},data:s}))+'</span> <span class="metadata-tag-list"></span> </div> <div class="item-writer metadata-tags"> <span class="metadata-label">'+l(i(n(1)).call(t,"Writer",{hash:{},data:s}))+'</span> <span class="metadata-tag-list"></span> </div> <div class="item-cast metadata-tags"> <span class="metadata-label">'+l(i(n(1)).call(t,"Cast",{hash:{},data:s
}))+'</span> <span class="metadata-tag-list"></span> </div> <div class="item-audio metadata-tags metadata-tags-separator"> <span class="metadata-label">'+l(i(n(1)).call(t,"Audio",{hash:{},data:s}))+'</span> </div> <div class="item-subtitles metadata-tags"> <span class="metadata-label">'+l(i(n(1)).call(t,"Subtitles",{hash:{},data:s
}))+'</span> </div> <div class="summary-container"></div> <div class="studio-flag-container"></div> </div> <div class="details-poster-container"> <a class="media-poster-container play-btn" href="#"> <div class="clip-poster item-poster media-poster"> <div class="media-poster-overlay"></div> <div class="media-poster-overlay-icons"> <i class="media-poster-overlay-icon glyphicon play"></i> </div> </div> </a> <div class="video-audio-flags-container media-flags"></div> </div> '})},function(e,t,n){
var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},'<div class="legacy-action-bar"></div> <div class="legacy-content"> <div class="legacy-breadcrumb-bar"></div> <div class="legacy-content-scroller dark-scrollbar"></div> </div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var n,i=""
;return i+=' <div class="playlist-poster item-poster media-poster '+h((n=e&&e.type,typeof n===p?n.apply(e):n))+'"> ',n=a.if.call(e,e&&e.smart,{hash:{},inverse:f.noop,fn:f.program(2,l,t),data:t}),(n||0===n)&&(i+=n),i+=" </div> "}function l(e,t){return' <span class="smart-badge badge badge-round"> <i class="icon glyphicon cogwheel"></i> </span> '}function u(e,t){var n,i="";return i+=" ",n=a.unless.call(e,e&&e.hasComposite,{hash:{},inverse:f.noop,fn:f.program(2,l,t),data:t}),(n||0===n)&&(i+=n),
i+=" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var c,d="",p="function",h=this.escapeExpression,f=this;return d+='<div class="details-title-container '+h((c=t&&t.type,typeof c===p?c.apply(t):c))+'"> <h1 class="item-title"></h1> </div> <div class="details-metadata-container '+h((c=t&&t.type,
typeof c===p?c.apply(t):c))+'"> <div class="playlist-details-metadata-container"> <p class="metadata-right pull-right"> <span class="item-duration metadata-duration"></span> </p> <p class="metadata-labels"> <span class="item-count"></span> </p> <p class="item-summary metadata-summary"></p> </div> <div class="playlist-items-container details-list-region"></div> <h1 class="error-text hidden">'+h(i(n(1)).call(t,"Failed to load items for this playlist.",{hash:{},data:s
}))+'</h1> <div class="loading-container"> <div class="loading loading-inline"></div> </div> </div> <div class="details-poster-container '+h((c=t&&t.type,typeof c===p?c.apply(t):c))+'"> ',c=a.if.call(t,t&&t.hasComposite,{hash:{},inverse:f.noop,fn:f.program(1,o,s),data:s}),(c||0===c)&&(d+=c),d+=' <div class="playlist-side-strip item-side-strip media-poster '+h((c=t&&t.type,typeof c===p?c.apply(t):c))+'"> ',c=a.if.call(t,t&&t.smart,{hash:{},inverse:f.noop,fn:f.program(4,u,s),data:s}),
(c||0===c)&&(d+=c),d+=" </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o="";return o+='<div class="row row-padded"> <div class="col-md-8 col-md-offset-2"> <h1>'+(0,this.escapeExpression)(i(n(1)).call(t,"This media type does not have a details page.",{hash:{},data:s}))+"</h1> </div> </div> "})},function(e,t,n){
function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o="";return o+='<p class="item-summary metadata-summary"></p> <div class="summary-divider hidden"> <button type="button" class="summary-divider-btn">'+(0,this.escapeExpression)(i(n(1)).call(t,"More",{hash:{},data:s}))+"</button> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}
var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var n,i="";return i+=' <li><a class="auto-match-agent" href="#" data-id="'+d((n=e&&e.identifier,typeof n===c?n.apply(e):n))+'">'+d((n=e&&e.name,typeof n===c?n.apply(e):n))+"</a></li> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var l,u="",c="function",d=this.escapeExpression,p=this
;return u+='<a class="dropdown-toggle" href="#auto-match-dropdown" data-toggle="dropdown">'+d(i(n(1)).call(t,"Auto Match",{hash:{},data:s}))+' <i class="caret-icon caret-icon-sm"></i></a> <ul class="dropdown-menu"> ',l=a.each.call(t,t&&t.agents,{hash:{},inverse:p.noop,fn:p.program(1,o,s),data:s}),(l||0===l)&&(u+=l),u+=" </ul> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),s=s||{};var o="",l=this.escapeExpression;return o+='<li><a class="mark-watched-btn" href="#" tabindex="-1">'+l(i(n(1)).call(t,"Mark as Watched",{hash:{},data:s}))+'</a></li> <li><a class="mark-unwatched-btn" href="#" tabindex="-1">'+l(i(n(1)).call(t,"Mark as Unwatched",{hash:{},data:s}))+'</a></li> <li><a class="watch-later-btn" href="#" tabindex="-1">'+l(i(n(1)).call(t,"Watch Later",{hash:{},data:s
}))+'</a></li> <li><a class="share-btn" href="#" tabindex="-1">'+l(i(n(1)).call(t,"Share...",{hash:{},data:s}))+'</a></li> <li><a class="recommend-btn" href="#" tabindex="-1">'+l(i(n(1)).call(t,"Recommend...",{hash:{},data:s}))+'</a></li> <li><a class="info-btn" href="#" tabindex="-1">'+l(i(n(1)).call(t,"Get Info",{hash:{},data:s}))+"</a></li> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){
var n,i="";return i+=' <a class="dropdown-toggle" href="#primary-server-dropdown" data-toggle="dropdown"> <span class="dropdown-friendly-name">'+f((n=e&&e.currentServer,n=null==n||n===!1?n:n.friendlyName,typeof n===h?n.apply(e):n))+'</span> <i class="caret-icon"></i> </a> <ul class="dropdown-menu"> ',n=a.each.call(e,e&&e.servers,{hash:{},inverse:v.noop,fn:v.programWithDepth(2,l,t,e),data:t}),(n||0===n)&&(i+=n),i+=" </ul> "}function l(e,t,a){var r,s=""
;return s+=' <li><a data-id="'+f((r=e&&e.machineIdentifier,typeof r===h?r.apply(e):r))+'" href="#"><span class="dropdown-truncated-label">'+f((r=e&&e.friendlyName,typeof r===h?r.apply(e):r))+"</span>",r=i(n(24)).call(e,(r=a&&a.currentServer,null==r||r===!1?r:r.machineIdentifier),e&&e.machineIdentifier,{hash:{},inverse:v.noop,fn:v.program(3,u,t),data:t}),(r||0===r)&&(s+=r),s+="</a></li> "}function u(e,t){return'<i class="dropdown-selected-icon glyphicon ok-2"></i>'}function c(e,t){var n,i=""
;return i+=' <span class="dropdown-placeholder"> <span class="dropdown-friendly-name">'+f((n=e&&e.currentServer,n=null==n||n===!1?n:n.friendlyName,typeof n===h?n.apply(e):n))+"</span> </span> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var d,p="",h="function",f=this.escapeExpression,v=this;return d=a.if.call(t,t&&t.showDropdown,{hash:{},inverse:v.program(5,c,s),fn:v.program(1,o,s),data:s}),(d||0===d)&&(p+=d),p+=" "})},function(e,t,n){var i=n(12)
;e.exports=(i.default||i).template(function(e,t,n,i,a){function r(e,t){return"active"}function s(e,t){return"plex-icon-companion-cast-active"}function o(e,t){return"plex-icon-companion-cast"}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var l,u="",c=this;return u+='<a class="dropdown-toggle ',l=n.if.call(t,t&&t.isActive,{hash:{},inverse:c.noop,fn:c.program(1,r,a),data:a}),(l||0===l)&&(u+=l),u+='" href="#primary-player-dropdown" data-toggle="dropdown"> <i class="',
l=n.if.call(t,t&&t.isActive,{hash:{},inverse:c.program(5,o,a),fn:c.program(3,s,a),data:a}),(l||0===l)&&(u+=l),u+='"></i><i class="caret-icon"></i> </a> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a,r="";return r+=' <li class="dropdown-header"><span class="dropdown-truncated-label">'+g((a=e&&e.remotePlayer,a=null==a||a===!1?a:a.friendlyName,
typeof a===m?a.apply(e):a))+'</span></li> <li> <a class="local-player-btn" href="#"> <i class="glyphicon ban"></i> '+g(i(n(1)).call(e,"Disconnect",{hash:{},data:t}))+" </a> </li> "}function l(e,t){var n,i="";return i+=" ",n=a.if.call(e,e&&e.showPlayers,{hash:{},inverse:y.program(10,h,t),fn:y.program(4,u,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function u(e,t){var n,i="";return i+=" ",n=a.if.call(e,e&&e.showCast,{hash:{},inverse:y.noop,fn:y.program(5,c,t),data:t}),(n||0===n)&&(i+=n),i+=" ",
n=a.each.call(e,e&&e.players,{hash:{},inverse:y.noop,fn:y.program(8,p,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function c(e,t){var r,s="";return s+=' <li> <a class="cast-player-btn" href="#"> <span class="dropdown-truncated-label">'+g(i(n(1)).call(e,"Cast...",{hash:{},data:t}))+"</span> ",r=a.if.call(e,e&&e.selected,{hash:{},inverse:y.noop,fn:y.program(6,d,t),data:t}),(r||0===r)&&(s+=r),s+=" </a> </li> "}function d(e,t){return'<i class="dropdown-selected-icon glyphicon ok-2"></i>'}function p(e,t){
var n,i="";return i+=' <li> <a class="plex-player-btn" data-id="'+g((n=e&&e.machineIdentifier,typeof n===m?n.apply(e):n))+'" href="#"> <span class="dropdown-truncated-label">'+g((n=e&&e.name,typeof n===m?n.apply(e):n))+"</span> ",n=a.if.call(e,e&&e.selected,{hash:{},inverse:y.noop,fn:y.program(6,d,t),data:t}),(n||0===n)&&(i+=n),i+=" </a> </li> "}function h(e,t){var a="";return a+=' <li class="dropdown-menu-item"> <a class="disabled">'+g(i(n(1)).call(e,"No players found",{hash:{},data:t
}))+"</a> </li> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var f,v="",m="function",g=this.escapeExpression,y=this;return f=a.if.call(t,t&&t.remotePlayer,{hash:{},inverse:y.program(3,l,s),fn:y.program(1,o,s),data:s}),(f||0===f)&&(v+=f),v+=" "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var r,s="";return s+=' <a class="dropdown-toggle" href="#'+f((r=e&&e.type,
typeof r===h?r.apply(e):r))+'-dropdown" data-toggle="dropdown"> '+f(i(n(548)).call(e,e&&e.selectedStream,{hash:{},data:t}))+' <i class="caret-icon caret-icon-sm"></i> </a> <ul class="dropdown-menu"> ',r=a.each.call(e,e&&e.streams,{hash:{},inverse:v.noop,fn:v.program(2,l,t),data:t}),(r||0===r)&&(s+=r),s+=" </ul> "}function l(e,t){var r,s="";return s+=' <li> <a data-id="'+f((r=e&&e.id,typeof r===h?r.apply(e):r))+'" href="#"> '+f(i(n(548)).call(e,e,{hash:{},data:t}))+" ",
r=a.if.call(e,e&&e.selected,{hash:{},inverse:v.noop,fn:v.program(3,u,t),data:t}),(r||0===r)&&(s+=r),s+=" </a> </li> "}function u(e,t){return' <i class="dropdown-selected-icon glyphicon ok-2"></i> '}function c(e,t){var a="";return a+=" "+f(i(n(548)).call(e,e&&e.selectedStream,{hash:{},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var d,p="",h="function",f=this.escapeExpression,v=this;return d=a.if.call(t,t&&t.showDropdown,{hash:{},inverse:v.program(5,c,s),
fn:v.program(1,o,s),data:s}),(d||0===d)&&(p+=d),p+=" "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a="";return a+=" "+c(i(n(25)).call(e,"setting",{hash:{idSuffix:"_c"},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var l,u="",c=this.escapeExpression,d=this;return u+='<form class="edit-metadata-form"> ',l=a.each.call(t,t,{hash:{},inverse:d.noop,
fn:d.program(1,o,s),data:s}),(l||0===l)&&(u+=l),u+=" </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a,r="";return r+=' <div class="row"> <div class="col-md-12 selectize"> '+h(i(n(25)).call(e,"autocompleteTextInput",{hash:{label:"Artist",name:"parentTitle",placeholder:(a=e&&e.placeholders,null==a||a===!1?a:a.parentTitle),ratingKey:(a=e&&e.item,
null==a||a===!1?a:a.parentRatingKey),title:(a=e&&e.item,null==a||a===!1?a:a.parentTitle)},data:t}))+" </div> </div> "}function l(e,t){var a,r="";return r+=' <div class="col-md-4"> '+h(i(n(25)).call(e,"lockableTextInput",{hash:{label:"Year",name:"year",value:(a=e&&e.item,null==a||a===!1?a:a.year),placeholder:(a=e&&e.placeholders,null==a||a===!1?a:a.year),locked:(a=e&&e.locked,null==a||a===!1?a:a.year),ratingKey:(a=e&&e.item,null==a||a===!1?a:a.ratingKey)},data:t}))+" </div> "}function u(e,t){
return"9"}function c(e,t){return"5"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var d,p="",h=this.escapeExpression,f=this;return p+='<form class="edit-metadata-form"> ',d=a.if.call(t,t&&t.canReparent,{hash:{},inverse:f.noop,fn:f.program(1,o,s),data:s}),(d||0===d)&&(p+=d),p+=' <div class="row"> <div class="col-md-12 selectize"> '+h(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Album",name:"title",value:(d=t&&t.item,null==d||d===!1?d:d.title),
placeholder:(d=t&&t.placeholders,null==d||d===!1?d:d.title),locked:(d=t&&t.locked,null==d||d===!1?d:d.title),ratingKey:(d=t&&t.item,null==d||d===!1?d:d.ratingKey),scopeToAttr:"parentRatingKey",scopeToParam:"artist.id"},data:s}))+' </div> </div> <div class="row"> <div class="col-md-12 selectize"> '+h(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Sort Album",name:"titleSort",value:(d=t&&t.item,null==d||d===!1?d:d.titleSort),placeholder:(d=t&&t.placeholders,null==d||d===!1?d:d.titleSort),
locked:(d=t&&t.locked,null==d||d===!1?d:d.titleSort),ratingKey:(d=t&&t.item,null==d||d===!1?d:d.ratingKey)},data:s}))+' </div> </div> <div class="row"> <div class="col-md-3"> <label>'+h(i(n(1)).call(t,"Rating",{hash:{},data:s}))+'</label> <div class="rating-region"></div> </div> ',d=a.unless.call(t,t&&t.supportsLinkedYears,{hash:{},inverse:f.noop,fn:f.program(3,l,s),data:s}),(d||0===d)&&(p+=d),p+=' <div class="col-md-',d=a.if.call(t,t&&t.supportsLinkedYears,{hash:{},inverse:f.program(7,c,s),
fn:f.program(5,u,s),data:s}),(d||0===d)&&(p+=d),p+=' "> '+h(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Originally Available",name:"originallyAvailableAt",value:(d=t&&t.item,null==d||d===!1?d:d.originallyAvailableAt),placeholder:(d=t&&t.placeholders,null==d||d===!1?d:d.originallyAvailableAt),locked:(d=t&&t.locked,null==d||d===!1?d:d.originallyAvailableAt)},data:s}))+' </div> </div> <div class="row"> <div class="col-md-12 selectize"> '+h(i(n(25)).call(t,"lockableTextInput",{hash:{
label:"Record Label",name:"studio",value:(d=t&&t.item,null==d||d===!1?d:d.studio),placeholder:(d=t&&t.placeholders,null==d||d===!1?d:d.studio),locked:(d=t&&t.locked,null==d||d===!1?d:d.studio),ratingKey:(d=t&&t.item,null==d||d===!1?d:d.ratingKey)},data:s}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+h(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Review",name:"summary",value:(d=t&&t.item,null==d||d===!1?d:d.summary),placeholder:(d=t&&t.placeholders,
null==d||d===!1?d:d.summary),type:"textarea",rows:"5",locked:(d=t&&t.locked,null==d||d===!1?d:d.summary),ratingKey:(d=t&&t.item,null==d||d===!1?d:d.ratingKey)},data:s}))+" </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o,l=""
;return l+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-12"> '+(0,this.escapeExpression)(i(n(25)).call(t,"lockableTagInput",{hash:{label:"Genres",name:"genre",attribute:"genres",locked:(o=t&&t.locked,null==o||o===!1?o:o.genre)},data:s}))+" </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{}
;var o,l="",u=this.escapeExpression;return l+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-12 selectize"> '+u(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Artist",name:"title",value:(o=t&&t.item,null==o||o===!1?o:o.title),placeholder:(o=t&&t.placeholders,null==o||o===!1?o:o.title),locked:(o=t&&t.locked,null==o||o===!1?o:o.title),ratingKey:(o=t&&t.item,null==o||o===!1?o:o.ratingKey)},data:s
}))+' </div> </div> <div class="row"> <div class="col-md-12 selectize"> '+u(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Sort Artist",name:"titleSort",value:(o=t&&t.item,null==o||o===!1?o:o.titleSort),placeholder:(o=t&&t.placeholders,null==o||o===!1?o:o.titleSort),locked:(o=t&&t.locked,null==o||o===!1?o:o.titleSort),ratingKey:(o=t&&t.item,null==o||o===!1?o:o.ratingKey)},data:s}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+u(i(n(25)).call(t,"lockableTextInput",{hash:{
label:"Biography",name:"summary",value:(o=t&&t.item,null==o||o===!1?o:o.summary),placeholder:(o=t&&t.placeholders,null==o||o===!1?o:o.summary),type:"textarea",rows:"5",locked:(o=t&&t.locked,null==o||o===!1?o:o.summary)},data:s}))+" </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a,r=""
;return r+=' <div class="row"> <div class="col-md-12"> '+c(i(n(25)).call(e,"lockableTagInput",{hash:{label:"Similar Artists",name:"similar",attribute:"similar",query:"title",locked:(a=e&&e.locked,null==a||a===!1?a:a.similar)},data:t}))+" </div> </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var l,u="",c=this.escapeExpression,d=this;return u+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-12"> '+c(i(n(25)).call(t,"lockableTagInput",{hash:{
label:"Genres",name:"genre",attribute:"genres",locked:(l=t&&t.locked,null==l||l===!1?l:l.genre)},data:s}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+c(i(n(25)).call(t,"lockableTagInput",{hash:{label:"Collections",name:"collection",attribute:"collections",locked:(l=t&&t.locked,null==l||l===!1?l:l.collection)},data:s}))+" </div> </div> ",l=a.if.call(t,t&&t.canEditSimilarArtists,{hash:{},inverse:d.noop,fn:d.program(1,o,s),data:s}),(l||0===l)&&(u+=l),u+=" </form> "})
},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var r,s="";return s+=' <div class="upload-artwork-container"> <div class="upload-prompt"> ',r=a.if.call(e,e&&e.showFileUpload,{hash:{},inverse:p.noop,fn:p.program(2,l,t),data:t}),(r||0===r)&&(s+=r),s+=' <a class="upload-url-btn" href="#">'+d(i(n(1)).call(e,"enter a url",{hash:{},data:t
}))+'</a> </div> <div class="upload-progress"> '+d(i(n(1)).call(e,"Uploading artwork...",{hash:{},data:t}))+' </div> <div class="upload-success"> '+d(i(n(1)).call(e,"this artwork was uploaded successfully",{hash:{},data:t}))+' <span class="upload-prompt-divider">&middot;</span> '+d(i(n(1)).call(e,"{1}upload another{2}",'<a class="upload-back-btn" href="#">',"</a>",{hash:{},data:t}))+' </div> <div class="upload-error"> '+d(i(n(1)).call(e,"there was an error uploading this artwork",{hash:{},data:t
}))+' <span class="upload-prompt-divider">&middot;</span> '+d(i(n(1)).call(e,"{1}try again{2}",'<a class="upload-back-btn" href="#">',"</a>",{hash:{},data:t}))+' </div> <form id="upload-form" class="upload-form"> <input type="text" class="form-control" name="url" placeholder="'+d(i(n(1)).call(e,"Enter a url to upload an image from the web",{hash:{},data:t
}))+'"> <div class="upload-form-help"> <div class="pull-right">'+d(i(n(1)).call(e,"enter to {1}upload{2}",'<a class="submit-url-btn" href="#">',"</a>",{hash:{},data:t}))+'</div> <div class="pull-left">'+d(i(n(1)).call(e,"esc to {1}cancel{2}",'<a class="cancel-url-btn" href="#">',"</a>",{hash:{},data:t}))+"</div> </div> </form> </div> "}function l(e,t){var a=""
;return a+=' <span class="artwork-file-container"> <input type="file" class="artwork-file-control" multiple> <a href="#">'+d(i(n(1)).call(e,"choose an image",{hash:{},data:t}))+'</a> </span> <span class="upload-prompt-divider">&middot;</span> '+d(i(n(1)).call(e,"drag and drop",{hash:{},data:t}))+' <span class="upload-prompt-divider">&middot;</span> '}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var u,c="",d=this.escapeExpression,p=this;return u=a.if.call(t,t&&t.showUpload,{
hash:{},inverse:p.noop,fn:p.program(1,o,s),data:s}),(u||0===u)&&(c+=u),c+=' <div class="artwork-list-container"></div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o,l="",u=this.escapeExpression;return l+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-12"> '+u(i(n(25)).call(t,"lockableTextInput",{hash:{
label:"Title",name:"title",value:(o=t&&t.item,null==o||o===!1?o:o.title),placeholder:(o=t&&t.placeholders,null==o||o===!1?o:o.title),locked:(o=t&&t.locked,null==o||o===!1?o:o.title)},data:s}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+u(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Sort Title",name:"titleSort",value:(o=t&&t.item,null==o||o===!1?o:o.titleSort),placeholder:(o=t&&t.placeholders,null==o||o===!1?o:o.titleSort),locked:(o=t&&t.locked,null==o||o===!1?o:o.titleSort)
},data:s}))+' </div> </div> <div class="row"> <div class="col-md-6"> '+u(i(n(25)).call(t,"lockableNumericInput",{hash:{label:"Rating",name:"rating",value:(o=t&&t.item,null==o||o===!1?o:o.rating),placeholder:(o=t&&t.placeholders,null==o||o===!1?o:o.rating),locked:(o=t&&t.locked,null==o||o===!1?o:o.rating)},data:s}))+' </div> <div class="col-md-6"> '+u(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Originally Available",name:"originallyAvailableAt",value:(o=t&&t.item,
null==o||o===!1?o:o.originallyAvailableAt),placeholder:(o=t&&t.placeholders,null==o||o===!1?o:o.originallyAvailableAt),locked:(o=t&&t.locked,null==o||o===!1?o:o.originallyAvailableAt)},data:s}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+u(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Summary",name:"summary",value:(o=t&&t.item,null==o||o===!1?o:o.summary),placeholder:(o=t&&t.placeholders,null==o||o===!1?o:o.summary),type:"textarea",rows:"5",locked:(o=t&&t.locked,
null==o||o===!1?o:o.summary)},data:s}))+" </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o,l="",u=this.escapeExpression;return l+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-12"> '+u(i(n(25)).call(t,"lockableTagInput",{hash:{label:"Writers",name:"writer",attribute:"writers",
locked:(o=t&&t.locked,null==o||o===!1?o:o.writer)},data:s}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+u(i(n(25)).call(t,"lockableTagInput",{hash:{label:"Directors",name:"director",attribute:"directors",locked:(o=t&&t.locked,null==o||o===!1?o:o.director)},data:s}))+" </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),s=s||{};var o="";return o+="<h4>"+(0,this.escapeExpression)(i(n(1)).call(t,"Files",{hash:{},data:s}))+'</h4> <ul class="media-info-file-list"></ul> <div class="loading-container"><div class="loading"></div></div> '})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,s,o="",l=this.escapeExpression;return(s=n.file)?r=s.call(t,{hash:{},data:a}):(s=t&&t.file,
r="function"==typeof s?s.call(t,{hash:{},data:a}):s),o+=l(r)+" "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a,r="";return r+=" "+f(i(n(25)).call(e,"lockableTextInput",{hash:{label:"Originally Available",name:"originallyAvailableAt",value:(a=e&&e.item,null==a||a===!1?a:a.originallyAvailableAt),placeholder:(a=e&&e.placeholders,null==a||a===!1?a:a.originallyAvailableAt),
locked:(a=e&&e.locked,null==a||a===!1?a:a.originallyAvailableAt)},data:t}))+" "}function l(e,t){var a,r="";return r+=" "+f(i(n(25)).call(e,"lockableTextInput",{hash:{label:"Year",name:"year",value:(a=e&&e.item,null==a||a===!1?a:a.year),placeholder:(a=e&&e.placeholders,null==a||a===!1?a:a.year),locked:(a=e&&e.locked,null==a||a===!1?a:a.year)},data:t}))+" "}function u(e,t){return"12"}function c(e,t){return"6"}function d(e,t){var a,r=""
;return r+=' <div class="col-md-6"> '+f(i(n(25)).call(e,"lockableTextInput",{hash:{label:"Originally Available",name:"originallyAvailableAt",value:(a=e&&e.item,null==a||a===!1?a:a.originallyAvailableAt),placeholder:(a=e&&e.placeholders,null==a||a===!1?a:a.originallyAvailableAt),locked:(a=e&&e.locked,null==a||a===!1?a:a.originallyAvailableAt)},data:t}))+" </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var p,h="",f=this.escapeExpression,v=this
;return h+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-12 selectize"> '+f(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Title",name:"title",value:(p=t&&t.item,null==p||p===!1?p:p.title),placeholder:(p=t&&t.placeholders,null==p||p===!1?p:p.title),locked:(p=t&&t.locked,null==p||p===!1?p:p.title),ratingKey:(p=t&&t.item,null==p||p===!1?p:p.ratingKey)},data:s
}))+' </div> </div> <div class="row"> <div class="col-md-12 selectize"> '+f(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Sort Title",name:"titleSort",value:(p=t&&t.item,null==p||p===!1?p:p.titleSort),placeholder:(p=t&&t.placeholders,null==p||p===!1?p:p.titleSort),locked:(p=t&&t.locked,null==p||p===!1?p:p.titleSort),ratingKey:(p=t&&t.item,null==p||p===!1?p:p.ratingKey)},data:s}))+' </div> </div> <div class="row"> <div class="col-md-12 selectize"> '+f(i(n(25)).call(t,"lockableTextInput",{
hash:{label:"Original Title",name:"originalTitle",value:(p=t&&t.item,null==p||p===!1?p:p.originalTitle),placeholder:(p=t&&t.placeholders,null==p||p===!1?p:p.originalTitle),locked:(p=t&&t.locked,null==p||p===!1?p:p.originalTitle),ratingKey:(p=t&&t.item,null==p||p===!1?p:p.ratingKey)},data:s}))+' </div> </div> <div class="row"> <div class="col-md-4"> ',p=a.if.call(t,t&&t.supportsLinkedYears,{hash:{},inverse:v.program(3,l,s),fn:v.program(1,o,s),data:s}),(p||0===p)&&(h+=p),
h+=' </div> <div class="col-md-4"> '+f(i(n(25)).call(t,"lockableNumericInput",{hash:{label:"Rating",name:"rating",value:(p=t&&t.item,null==p||p===!1?p:p.rating),placeholder:(p=t&&t.placeholders,null==p||p===!1?p:p.rating),locked:(p=t&&t.locked,null==p||p===!1?p:p.rating)},data:s}))+' </div> <div class="col-md-4 selectize"> '+f(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Content Rating",name:"contentRating",value:(p=t&&t.item,null==p||p===!1?p:p.contentRating),
placeholder:(p=t&&t.placeholders,null==p||p===!1?p:p.contentRating),locked:(p=t&&t.locked,null==p||p===!1?p:p.contentRating),ratingKey:(p=t&&t.item,null==p||p===!1?p:p.ratingKey)},data:s}))+' </div> </div> <div class="row"> <div class="col-md-',p=a.if.call(t,t&&t.supportsLinkedYears,{hash:{},inverse:v.program(7,c,s),fn:v.program(5,u,s),data:s}),(p||0===p)&&(h+=p),h+=' selectize"> '+f(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Studio",name:"studio",value:(p=t&&t.item,
null==p||p===!1?p:p.studio),placeholder:(p=t&&t.placeholders,null==p||p===!1?p:p.studio),locked:(p=t&&t.locked,null==p||p===!1?p:p.studio),ratingKey:(p=t&&t.item,null==p||p===!1?p:p.ratingKey)},data:s}))+" </div> ",p=a.unless.call(t,t&&t.supportsLinkedYears,{hash:{},inverse:v.noop,fn:v.program(9,d,s),data:s}),(p||0===p)&&(h+=p),h+=' </div> <div class="row"> <div class="col-md-12"> '+f(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Tagline",name:"tagline",value:(p=t&&t.item,
null==p||p===!1?p:p.tagline),placeholder:(p=t&&t.placeholders,null==p||p===!1?p:p.tagline),locked:(p=t&&t.locked,null==p||p===!1?p:p.tagline)},data:s}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+f(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Summary",name:"summary",value:(p=t&&t.item,null==p||p===!1?p:p.summary),placeholder:(p=t&&t.placeholders,null==p||p===!1?p:p.summary),type:"textarea",rows:"5",locked:(p=t&&t.locked,null==p||p===!1?p:p.summary)},data:s
}))+" </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o,l="",u=this.escapeExpression;return l+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-6"> '+u(i(n(25)).call(t,"lockableTagInput",{hash:{label:"Directors",name:"director",attribute:"directors",locked:(o=t&&t.locked,
null==o||o===!1?o:o.director)},data:s}))+' </div> <div class="col-md-6"> '+u(i(n(25)).call(t,"lockableTagInput",{hash:{label:"Country",name:"country",attribute:"countries",locked:(o=t&&t.locked,null==o||o===!1?o:o.country)},data:s}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+u(i(n(25)).call(t,"lockableTagInput",{hash:{label:"Genres",name:"genre",attribute:"genres",locked:(o=t&&t.locked,null==o||o===!1?o:o.genre)},data:s
}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+u(i(n(25)).call(t,"lockableTagInput",{hash:{label:"Writers",name:"writer",attribute:"writers",locked:(o=t&&t.locked,null==o||o===!1?o:o.writer)},data:s}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+u(i(n(25)).call(t,"lockableTagInput",{hash:{label:"Collections",name:"collection",attribute:"collections",locked:(o=t&&t.locked,null==o||o===!1?o:o.collection)},data:s}))+" </div> </div> </form> "})},function(e,t,n){
function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o,l="",u=this.escapeExpression;return l+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-6"> '+u(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Title",name:"title",value:(o=t&&t.item,null==o||o===!1?o:o.title),placeholder:(o=t&&t.placeholders,null==o||o===!1?o:o.title),
locked:(o=t&&t.locked,null==o||o===!1?o:o.title)},data:s}))+' </div> <div class="col-md-6"> '+u(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Sort Title",name:"titleSort",value:(o=t&&t.item,null==o||o===!1?o:o.titleSort),placeholder:(o=t&&t.placeholders,null==o||o===!1?o:o.titleSort),locked:(o=t&&t.locked,null==o||o===!1?o:o.titleSort)},data:s}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+u(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Summary",name:"summary",
value:(o=t&&t.item,null==o||o===!1?o:o.summary),placeholder:(o=t&&t.placeholders,null==o||o===!1?o:o.summary),type:"textarea",rows:"5",locked:(o=t&&t.locked,null==o||o===!1?o:o.summary)},data:s}))+" </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o,l="",u=this.escapeExpression
;return l+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-9"> '+u(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Title",name:"title",value:(o=t&&t.item,null==o||o===!1?o:o.title),placeholder:(o=t&&t.placeholders,null==o||o===!1?o:o.title),locked:(o=t&&t.locked,null==o||o===!1?o:o.title)},data:s}))+' </div> <div class="col-md-3"> '+u(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Year",name:"year",value:(o=t&&t.item,null==o||o===!1?o:o.year),
placeholder:(o=t&&t.placeholders,null==o||o===!1?o:o.year),locked:(o=t&&t.locked,null==o||o===!1?o:o.year)},data:s}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+u(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Sort Title",name:"titleSort",value:(o=t&&t.item,null==o||o===!1?o:o.titleSort),placeholder:(o=t&&t.placeholders,null==o||o===!1?o:o.titleSort),locked:(o=t&&t.locked,null==o||o===!1?o:o.titleSort)},data:s
}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+u(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Summary",name:"summary",value:(o=t&&t.item,null==o||o===!1?o:o.summary),placeholder:(o=t&&t.placeholders,null==o||o===!1?o:o.summary),type:"textarea",rows:"5",locked:(o=t&&t.locked,null==o||o===!1?o:o.summary)},data:s}))+" </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){
this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o,l="",u=this.escapeExpression;return l+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-12"> '+u(i(n(25)).call(t,"textInput",{hash:{label:"Title",name:"title",value:(o=t&&t.item,null==o||o===!1?o:o.title)},data:s}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+u(i(n(25)).call(t,"textInput",{hash:{label:"Summary",name:"summary",value:(o=t&&t.item,null==o||o===!1?o:o.summary),
placeholder:(o=t&&t.placeholders,null==o||o===!1?o:o.summary),type:"textarea",rows:"5"},data:s}))+" </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o,l="";return l+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-12"> '+(0,this.escapeExpression)(i(n(25)).call(t,"lockableTextInput",{hash:{
label:"Summary",name:"summary",value:(o=t&&t.item,null==o||o===!1?o:o.summary),placeholder:(o=t&&t.placeholders,null==o||o===!1?o:o.summary),type:"textarea",rows:"5",locked:(o=t&&t.locked,null==o||o===!1?o:o.summary)},data:s}))+" </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var n,i=""
;return i+=' <form class="edit-metadata-form"> <div class="row"> <div class="col-md-12"> ',n=a.if.call(e,e&&e.showLabels,{hash:{},inverse:f.program(4,u,t),fn:f.program(2,l,t),data:t}),(n||0===n)&&(i+=n),i+=" </div> </div> </form> "}function l(e,t){var a,r="";return r+=" "+h(i(n(25)).call(e,"lockableTagInput",{hash:{label:"Labels",name:"label",attribute:"labels",locked:(a=e&&e.locked,null==a||a===!1?a:a.label)},data:t}))+" "}function u(e,t){var a=""
;return a+=' <div class="form-group"> <label>'+h(i(n(1)).call(e,"Labels",{hash:{},data:t}))+"</label> <p>"+h(i(n(1)).call(e,"Labels require Plex Media Server {1} or later.",e&&e.labelsMinVersion,{hash:{},data:t}))+"</p> </div> "}function c(e,t){var a,r="";return r+=' <div class="row row-padded"> <h4 class="text-muted text-center">'+h(i(n(1)).call(e,"You need a Plex Pass to use restrictions.",{hash:{},data:t
}))+'</h4> <p class="text-center"> <a class="btn btn-sm btn-primary" href="'+h((a=e&&e.plexPassUrl,typeof a===v?a.apply(e):a))+'" target="_blank">'+h(i(n(1)).call(e,"Learn More",{hash:{},data:t}))+"</a> </p> </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var d,p="",h=this.escapeExpression,f=this,v="function";return d=a.if.call(t,t&&t.hasContentFilterFeature,{hash:{},inverse:f.program(6,c,s),fn:f.program(1,o,s),data:s}),(d||0===d)&&(p+=d),p+=" "})},function(e,t,n){
function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a,r="";return r+=" "+f(i(n(25)).call(e,"lockableTextInput",{hash:{label:"Originally Available",name:"originallyAvailableAt",value:(a=e&&e.item,null==a||a===!1?a:a.originallyAvailableAt),placeholder:(a=e&&e.placeholders,null==a||a===!1?a:a.originallyAvailableAt),locked:(a=e&&e.locked,null==a||a===!1?a:a.originallyAvailableAt)},data:t}))+" "}function l(e,t){
var a,r="";return r+=" "+f(i(n(25)).call(e,"lockableTextInput",{hash:{label:"Year",name:"year",value:(a=e&&e.item,null==a||a===!1?a:a.year),placeholder:(a=e&&e.placeholders,null==a||a===!1?a:a.year),locked:(a=e&&e.locked,null==a||a===!1?a:a.year)},data:t}))+" "}function u(e,t){return"12"}function c(e,t){return"6"}function d(e,t){var a,r="";return r+=' <div class="col-md-6"> '+f(i(n(25)).call(e,"lockableTextInput",{hash:{label:"Originally Available",name:"originallyAvailableAt",
value:(a=e&&e.item,null==a||a===!1?a:a.originallyAvailableAt),placeholder:(a=e&&e.placeholders,null==a||a===!1?a:a.originallyAvailableAt),locked:(a=e&&e.locked,null==a||a===!1?a:a.originallyAvailableAt)},data:t}))+" </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var p,h="",f=this.escapeExpression,v=this;return h+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-12 selectize"> '+f(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Title",
name:"title",value:(p=t&&t.item,null==p||p===!1?p:p.title),placeholder:(p=t&&t.placeholders,null==p||p===!1?p:p.title),locked:(p=t&&t.locked,null==p||p===!1?p:p.title),ratingKey:(p=t&&t.item,null==p||p===!1?p:p.ratingKey)},data:s}))+' </div> </div> <div class="row"> <div class="col-md-12 selectize"> '+f(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Sort Title",name:"titleSort",value:(p=t&&t.item,null==p||p===!1?p:p.titleSort),placeholder:(p=t&&t.placeholders,null==p||p===!1?p:p.titleSort),
locked:(p=t&&t.locked,null==p||p===!1?p:p.titleSort),ratingKey:(p=t&&t.item,null==p||p===!1?p:p.ratingKey)},data:s}))+' </div> </div> <div class="row"> <div class="col-md-4"> ',p=a.if.call(t,t&&t.supportsLinkedYears,{hash:{},inverse:v.program(3,l,s),fn:v.program(1,o,s),data:s}),(p||0===p)&&(h+=p),h+=' </div> <div class="col-md-4"> '+f(i(n(25)).call(t,"lockableNumericInput",{hash:{label:"Rating",name:"rating",value:(p=t&&t.item,null==p||p===!1?p:p.rating),placeholder:(p=t&&t.placeholders,
null==p||p===!1?p:p.rating),locked:(p=t&&t.locked,null==p||p===!1?p:p.rating)},data:s}))+' </div> <div class="col-md-4 selectize"> '+f(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Content Rating",name:"contentRating",value:(p=t&&t.item,null==p||p===!1?p:p.contentRating),placeholder:(p=t&&t.placeholders,null==p||p===!1?p:p.contentRating),locked:(p=t&&t.locked,null==p||p===!1?p:p.contentRating),ratingKey:(p=t&&t.item,null==p||p===!1?p:p.ratingKey)},data:s
}))+' </div> </div> <div class="row"> <div class="col-md-12 selectize"> '+f(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Original Title",name:"originalTitle",value:(p=t&&t.item,null==p||p===!1?p:p.originalTitle),placeholder:(p=t&&t.placeholders,null==p||p===!1?p:p.originalTitle),locked:(p=t&&t.locked,null==p||p===!1?p:p.originalTitle),ratingKey:(p=t&&t.item,null==p||p===!1?p:p.ratingKey)},data:s}))+' </div> </div> <div class="row"> <div class="col-md-',
p=a.if.call(t,t&&t.supportsLinkedYears,{hash:{},inverse:v.program(7,c,s),fn:v.program(5,u,s),data:s}),(p||0===p)&&(h+=p),h+=' selectize"> '+f(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Studio",name:"studio",value:(p=t&&t.item,null==p||p===!1?p:p.studio),placeholder:(p=t&&t.placeholders,null==p||p===!1?p:p.studio),locked:(p=t&&t.locked,null==p||p===!1?p:p.studio),ratingKey:(p=t&&t.item,null==p||p===!1?p:p.ratingKey)},data:s}))+" </div> ",p=a.unless.call(t,t&&t.supportsLinkedYears,{hash:{},
inverse:v.noop,fn:v.program(9,d,s),data:s}),(p||0===p)&&(h+=p),h+=' </div> <div class="row"> <div class="col-md-12"> '+f(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Tagline",name:"tagline",value:(p=t&&t.item,null==p||p===!1?p:p.tagline),placeholder:(p=t&&t.placeholders,null==p||p===!1?p:p.tagline),locked:(p=t&&t.locked,null==p||p===!1?p:p.tagline)},data:s}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+f(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Summary",
name:"summary",value:(p=t&&t.item,null==p||p===!1?p:p.summary),placeholder:(p=t&&t.placeholders,null==p||p===!1?p:p.summary),type:"textarea",rows:"5",locked:(p=t&&t.locked,null==p||p===!1?p:p.summary)},data:s}))+" </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o,l="",u=this.escapeExpression
;return l+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-12"> '+u(i(n(25)).call(t,"lockableTagInput",{hash:{label:"Genres",name:"genre",attribute:"genres",locked:(o=t&&t.locked,null==o||o===!1?o:o.genre)},data:s}))+' </div> </div> <div class="row"> <div class="col-md-12"> '+u(i(n(25)).call(t,"lockableTagInput",{hash:{label:"Collections",name:"collection",attribute:"collections",locked:(o=t&&t.locked,null==o||o===!1?o:o.collection)},data:s}))+" </div> </div> </form> "})
},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a,r="";return r+=' <div class="row"> <div class="col-md-12 selectize"> '+c(i(n(25)).call(e,"autocompleteTextInput",{hash:{label:"Album Artist",name:"grandparentTitle",placeholder:(a=e&&e.placeholders,null==a||a===!1?a:a.grandparentTitle),ratingKey:(a=e&&e.item,null==a||a===!1?a:a.grandparentRatingKey),title:(a=e&&e.item,
null==a||a===!1?a:a.grandparentTitle)},data:t}))+' </div> </div> <div class="row"> <div class="col-md-12 selectize"> '+c(i(n(25)).call(e,"autocompleteTextInput",{hash:{label:"Album",name:"parentTitle",placeholder:(a=e&&e.placeholders,null==a||a===!1?a:a.parentTitle),ratingKey:(a=e&&e.item,null==a||a===!1?a:a.parentRatingKey),title:(a=e&&e.item,null==a||a===!1?a:a.parentTitle),scopeToAttr:"grandparentRatingKey",scopeToParam:"artist.id"},data:t}))+" </div> </div> "}
this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var l,u="",c=this.escapeExpression,d=this;return u+='<form class="edit-metadata-form"> ',l=a.if.call(t,t&&t.canReparent,{hash:{},inverse:d.noop,fn:d.program(1,o,s),data:s}),(l||0===l)&&(u+=l),u+=' <div class="row"> <div class="col-md-12"> '+c(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Title",name:"title",value:(l=t&&t.item,null==l||l===!1?l:l.title),placeholder:(l=t&&t.placeholders,null==l||l===!1?l:l.title),
locked:(l=t&&t.locked,null==l||l===!1?l:l.title)},data:s}))+' </div> </div> <div class="row"> <div class="col-md-4"> <label>'+c(i(n(1)).call(t,"Rating",{hash:{},data:s}))+'</label> <div class="rating-region"></div> </div> <div class="col-md-4"> '+c(i(n(25)).call(t,"lockableNumericInput",{hash:{label:"Track",name:"index",value:(l=t&&t.item,null==l||l===!1?l:l.index),placeholder:(l=t&&t.placeholders,null==l||l===!1?l:l.index),locked:(l=t&&t.locked,null==l||l===!1?l:l.index),
disabled:t&&t.disableIndices},data:s}))+' </div> <div class="col-md-4"> '+c(i(n(25)).call(t,"lockableNumericInput",{hash:{label:"Disc",name:"parentIndex",value:(l=t&&t.item,null==l||l===!1?l:l.parentIndex),placeholder:(l=t&&t.placeholders,null==l||l===!1?l:l.parentIndex),locked:(l=t&&t.locked,null==l||l===!1?l:l.parentIndex),disabled:t&&t.disableIndices},data:s}))+' </div> </div> <div class="row"> <div class="col-md-12 selectize"> '+c(i(n(25)).call(t,"lockableTextInput",{hash:{label:"Artist",
name:"originalTitle",value:(l=t&&t.item,null==l||l===!1?l:l.originalTitle),placeholder:(l=t&&t.placeholders,null==l||l===!1?l:l.originalTitle),locked:(l=t&&t.locked,null==l||l===!1?l:l.originalTitle),ratingKey:(l=t&&t.item,null==l||l===!1?l:l.ratingKey)},data:s}))+" </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{}
;var o,l="";return l+='<form class="edit-metadata-form"> <div class="row"> <div class="col-md-12"> '+(0,this.escapeExpression)(i(n(25)).call(t,"lockableTagInput",{hash:{label:"Moods",name:"mood",attribute:"moods",locked:(o=t&&t.locked,null==o||o===!1?o:o.mood)},data:s}))+" </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var r,s=""
;return s+=' <div class="setup-agent-section"> <div class="setup-agent-title">'+d(i(n(1)).call(e,"{1} Settings",e&&e.agentName,{hash:{},data:t}))+'</div> <p class="setup-agent-disclaimer">'+d(i(n(1)).call(e,"Note: These settings will take effect for all libraries using the {1} agent.",e&&e.agentName,{hash:{},data:t}))+'</p> <div class="setup-agent-settings"> ',r=a.each.call(e,e&&e.settings,{hash:{},inverse:p.noop,fn:p.program(2,l,t),data:t}),(r||0===r)&&(s+=r),s+=" </div> </div> "}
function l(e,t){var a="";return a+=" "+d(i(n(25)).call(e,"setting",{hash:{idSuffix:"_c"},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var u,c="",d=this.escapeExpression,p=this;return u=a.if.call(t,t&&t.settings,{hash:{},inverse:p.noop,fn:p.program(1,o,s),data:s}),(u||0===u)&&(c+=u),c+=" "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),s=s||{};var o="",l=this.escapeExpression;return o+='<form class="edit-section-type-form settings-container"> <p>'+l(i(n(1)).call(t,"There was an error adding this library.",{hash:{},data:s}))+"</p> <p>"+l(i(n(1)).call(t,"You need to {1}follow these instructions{2} to troubleshoot the Plex Media Server.",'<a href="https://support.plex.tv/hc/en-us/articles/201119258-Resetting-System-and-Framework-bundles" target="_blank">',"</a>",{hash:{},data:s}))+"</p> </form>"})
},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return' <i class="server-alert-icon glyphicon cogwheel"></i> '}function l(e,t){var a;return a=i(n(24)).call(e,(a=e&&e.event,null==a||a===!1?a:a._type),"status",{hash:{},inverse:V.program(6,c,t),fn:V.program(4,u,t),data:t}),a||0===a?a:""}function u(e,t){return' <i class="server-alert-icon glyphicon bullhorn"></i> '}function c(e,t){var a
;return a=i(n(24)).call(e,(a=e&&e.event,null==a||a===!1?a:a._type),"playing",{hash:{},inverse:V.program(9,p,t),fn:V.program(7,d,t),data:t}),a||0===a?a:""}function d(e,t){return' <i class="server-alert-icon glyphicon imac"></i> '}function p(e,t){var a;return a=i(n(24)).call(e,(a=e&&e.event,null==a||a===!1?a:a._type),"websocket",{hash:{},inverse:V.program(13,v,t),fn:V.program(10,h,t),data:t}),a||0===a?a:""}function h(e,t){var n,i="";return i+=" ",n=a.if.call(e,(n=e&&e.event,
null==n||n===!1?n:n.opened),{hash:{},inverse:V.program(11,f,t),fn:V.program(4,u,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function f(e,t){return' <i class="server-alert-icon glyphicon warning-sign"></i> '}function v(e,t){var a;return a=i(n(24)).call(e,(a=e&&e.event,null==a||a===!1?a:a.state),0,{hash:{},inverse:V.program(16,g,t),fn:V.program(14,m,t),data:t}),a||0===a?a:""}function m(e,t){return' <i class="server-alert-icon glyphicon plus"></i> '}function g(e,t){var a
;return a=i(n(24)).call(e,(a=e&&e.event,null==a||a===!1?a:a.state),5,{hash:{},inverse:V.program(19,b,t),fn:V.program(17,y,t),data:t}),a||0===a?a:""}function y(e,t){return' <i class="server-alert-icon glyphicon ok-2"></i> '}function b(e,t){var a;return a=i(n(24)).call(e,(a=e&&e.event,null==a||a===!1?a:a.state),6,{hash:{},inverse:V.program(22,I,t),fn:V.program(20,S,t),data:t}),a||0===a?a:""}function S(e,t){return' <i class="server-alert-icon glyphicon magic"></i> '}function I(e,t){var a
;return a=i(n(24)).call(e,(a=e&&e.event,null==a||a===!1?a:a.state),9,{hash:{},inverse:V.program(25,C,t),fn:V.program(23,M,t),data:t}),a||0===a?a:""}function M(e,t){return' <i class="server-alert-icon glyphicon bin"></i> '}function C(e,t){return' <i class="server-alert-icon glyphicon tags"></i> '}function w(e,t){var a,r="";return r+=" "+Q(i(n(1)).call(e,"{1} set to {2}.",(a=e&&e.event,null==a||a===!1?a:a.label),(a=e&&e.event,null==a||a===!1?a:a.value),{hash:{},data:t}))+" "}function D(e,t){var a
;return a=i(n(24)).call(e,(a=e&&e.event,null==a||a===!1?a:a._type),"status",{hash:{},inverse:V.program(36,N,t),fn:V.program(30,P,t),data:t}),a||0===a?a:""}function P(e,t){var n,i="";return i+=" ",n=a.if.call(e,(n=e&&e.event,null==n||n===!1?n:n.message),{hash:{},inverse:V.program(33,x,t),fn:V.program(31,T,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function T(e,t){var a,r="";return r+=" "+Q(i(n(1)).call(e,(a=e&&e.event,null==a||a===!1?a:a.message),{hash:{},data:t}))+" "}function x(e,t){var r,s=""
;return s+=" "+Q(i(n(1)).call(e,(r=e&&e.event,null==r||r===!1?r:r.title),{hash:{},data:t})),r=a.if.call(e,(r=e&&e.event,null==r||r===!1?r:r.description),{hash:{},inverse:V.noop,fn:V.program(34,E,t),data:t}),(r||0===r)&&(s+=r),s+=" "}function E(e,t){var a,r="";return r+=": "+Q(i(n(1)).call(e,(a=e&&e.event,null==a||a===!1?a:a.description),{hash:{},data:t}))}function N(e,t){var a;return a=i(n(24)).call(e,(a=e&&e.event,null==a||a===!1?a:a._type),"timeline",{hash:{},inverse:V.program(39,A,t),
fn:V.program(37,L,t),data:t}),a||0===a?a:""}function L(e,t){var a,r="";return r+=" "+Q(i(n(1)).call(e,(a=e&&e.event,null==a||a===!1?a:a.stateString),{hash:{},data:t}))+' <a href="#!/server/'+Q(i(n(152)).call(e,e&&e.serverID,{hash:{},data:t}))+"/details?key="+Q(i(n(152)).call(e,e&&e.itemKey,{hash:{},data:t}))+'">'+Q((a=e&&e.event,a=null==a||a===!1?a:a.mediaTitle,typeof a===H?a.apply(e):a))+"</a> "}function A(e,t){var a;return a=i(n(24)).call(e,(a=e&&e.event,null==a||a===!1?a:a._type),"playing",{
hash:{},inverse:V.program(42,_,t),fn:V.program(40,k,t),data:t}),a||0===a?a:""}function k(e,t){var a,r="";return r+=" "+Q(i(n(1)).call(e,"{1} started playing {2} on {3}.",(a=e&&e.event,null==a||a===!1?a:a.username),(a=e&&e.event,null==a||a===!1?a:a.title),(a=e&&e.event,null==a||a===!1?a:a.player),{hash:{},data:t}))+" "}function _(e,t){var a;return a=i(n(24)).call(e,(a=e&&e.event,null==a||a===!1?a:a._type),"websocket",{hash:{},inverse:V.noop,fn:V.program(43,O,t),data:t}),a||0===a?a:""}
function O(e,t){var n,i="";return i+=" ",n=a.if.call(e,(n=e&&e.event,null==n||n===!1?n:n.opened),{hash:{},inverse:V.program(46,R,t),fn:V.program(44,j,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function j(e,t){var a="";return a+=" "+Q(i(n(1)).call(e,"Opened connection to {1}, listening for events.",e&&e.serverName,{hash:{},data:t}))+" "}function R(e,t){var n;return n=a.if.call(e,(n=e&&e.event,null==n||n===!1?n:n.closed),{hash:{},inverse:V.program(49,z,t),fn:V.program(47,U,t),data:t}),n||0===n?n:""}
function U(e,t){var a="";return a+=" "+Q(i(n(1)).call(e,"Connection to {1} closed.",e&&e.serverName,{hash:{},data:t}))+" "}function z(e,t){var a="";return a+=" "+Q(i(n(1)).call(e,"Unable to listen for events on {1}.",e&&e.serverName,{hash:{},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var B,F="",V=this,Q=this.escapeExpression,H="function";return F+='<div class="striped-list-inner-item alert-list-inner-item"> ',B=i(n(24)).call(t,(B=t&&t.event,
null==B||B===!1?B:B._type),"setting",{hash:{},inverse:V.program(3,l,s),fn:V.program(1,o,s),data:s}),(B||0===B)&&(F+=B),F+=' <div class="server-alert-details"> <span class="server-alert-time">'+Q(i(n(818)).call(t,(B=t&&t.event,null==B||B===!1?B:B.time),t&&t.timeFormat,{hash:{},data:s}))+"</span> ",B=i(n(24)).call(t,(B=t&&t.event,null==B||B===!1?B:B._type),"setting",{hash:{},inverse:V.program(29,D,s),fn:V.program(27,w,s),data:s}),(B||0===B)&&(F+=B),F+=" </div> </div> "})},function(e,t,n){
function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o="";return o+='<div class="row row-padded"> <h4 class="text-muted text-center"> '+(0,this.escapeExpression)(i(n(1)).call(t,"Nothing is currently being played.",{hash:{},data:s}))+" </h4> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12)
;e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return"hide-actions"}function l(e,t){return"hidden"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var u,c="",d=this,p=this.escapeExpression;return c+='<a class="media-poster-container ',u=a.unless.call(t,t&&t.showActions,{hash:{},inverse:d.noop,fn:d.program(1,o,s),data:s}),(u||0===u)&&(c+=u),c+='" href="'+p((u=t&&t.url,
"function"==typeof u?u.apply(t):u))+'"> <div class="media-poster-fade invisible"></div> <div class="media-poster"> <div class="media-poster-overlay"></div> <div class="media-poster-top-overlay"></div> <div class="media-poster-actions ',u=a.unless.call(t,t&&t.showStopButton,{hash:{},inverse:d.noop,fn:d.program(3,l,s),data:s}),(u||0===u)&&(c+=u),
c+='"> <button class="stop-btn media-poster-btn btn-link" tabindex="-1"> <i class="glyphicon remove-2"></i> <span class="media-poster-btn-text">'+p(i(n(1)).call(t,"Stop playback",{hash:{},data:s
}))+'</span> </button> </div> <img class="device-icon"> <div class="session-player"></div> <div class="session-state"></div> <div class="session-transcode-details"> <p class="session-transcode-title"> <span class="session-transcode"></span> <span class="session-transcode-throttled"></span> </p> <p class="session-transcode-video"> <span class="session-transcode-label">'+p(i(n(1)).call(t,"Video",{hash:{},data:s
}))+'</span> <span class="session-transcode-video-decision"></span> </p> <p class="session-transcode-audio"> <span class="session-transcode-label">'+p(i(n(1)).call(t,"Audio",{hash:{},data:s
}))+'</span> <span class="session-transcode-audio-decision"></span> </p> </div> <div class="media-progress"></div> </div> <div class="session-user pull-right"> <div class="user-poster img-circle"></div> <div class="session-username media-heading secondary"></div> </div> <div class="media-title media-heading"></div> <div class="media-subtitle-1 media-heading secondary"></div> </a> '})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){function r(e,t){
return"cloud-download"}function s(e,t){return"circle-arrow-down"}function o(e,t){return"hidden"}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var l,u="",c=this
;return u+='<a class="media-poster-container" href="#"> <div class="media-poster"> <div class="media-poster-overlay"></div> <div class="sync-status"> <div class="sync-status-transcode hidden"></div> <i class="sync-status-icon sync-complete-icon glyphicon ok-2 hidden"></i> <i class="sync-status-icon sync-waiting-icon glyphicon ',l=n.if.call(t,t&&t.isCloudSync,{hash:{},inverse:c.program(3,s,a),fn:c.program(1,r,a),data:a}),(l||0===l)&&(u+=l),
u+=' hidden"></i> <i class="sync-status-icon sync-processing-icon glyphicon more hidden"></i> <i class="sync-status-icon sync-failed-icon glyphicon warning-sign ',l=n.unless.call(t,t&&t.isFailure,{hash:{},inverse:c.noop,fn:c.program(5,o,a),data:a}),(l||0===l)&&(u+=l),u+='"></i> <i class="sync-status-icon sync-unknown-icon glyphicon circle-question-mark ',l=n.if.call(t,t&&t.isFailure,{hash:{},inverse:c.noop,fn:c.program(5,o,a),data:a}),(l||0===l)&&(u+=l),
u+='"></i> </div> <div class="media-poster-actions"> <button class="edit-btn media-poster-btn btn-link" tabindex="-1"><i class="glyphicon pencil"></i></button> <button class="delete-btn media-poster-btn btn-link btn-danger" tabindex="-1"><i class="glyphicon remove-2"></i></button> </div> </div> <div class="media-title media-heading"></div> <div class="media-subtitle-1 media-heading secondary"></div> <div class="media-context media-heading secondary"></div> </a> '})},function(e,t,n){
function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a="";return a+=' <i class="glyphicon cloud-download"></i> <span class="cloud-sync-waiting">'+d(i(n(1)).call(e,"Waiting to be uploaded",{hash:{},data:t}))+'</span> <span class="cloud-sync-uploading hidden">'+d(i(n(1)).call(e,"Uploading",{hash:{},data:t}))+' &middot; <span class="transcode-progress"></span>%</span> '}function l(e,t){var a=""
;return a+=' <i class="glyphicon circle-arrow-down"></i> '+d(i(n(1)).call(e,"Waiting to be downloaded",{hash:{},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var u,c="",d=this.escapeExpression,p=this;return c+='<div class="media-poster"></div> <p class="title"></p> <p class="complete-subtitle subtitle hidden"> <i class="glyphicon ok-2"></i> '+d(i(n(1)).call(t,"Synced",{hash:{},data:s}))+' </p> <p class="waiting-subtitle subtitle hidden"> ',
u=a.if.call(t,t&&t.isCloudSync,{hash:{},inverse:p.program(3,l,s),fn:p.program(1,o,s),data:s}),(u||0===u)&&(c+=u),c+=' </p> <p class="downloading-subtitle subtitle hidden"> <i class="glyphicon more"></i> '+d(i(n(1)).call(t,"Downloading",{hash:{},data:s}))+' &middot; <span class="transcode-progress"></span>% </p> <p class="converting-subtitle subtitle hidden"> <i class="glyphicon more"></i> '+d(i(n(1)).call(t,"Converting",{hash:{},data:s
}))+' &middot; <span class="transcode-progress"></span>% &middot; <span class="transcode-remaining"></span> </p> <p class="processing-subtitle subtitle hidden"> <i class="glyphicon more"></i> '+d(i(n(1)).call(t,"Waiting to be converted",{hash:{},data:s}))+' </p> <p class="unknown-subtitle subtitle hidden"> <i class="glyphicon circle-question-mark"></i> '+d(i(n(1)).call(t,"Unknown",{hash:{},data:s
}))+' </p> <p class="failed-subtitle subtitle hidden"> <i class="glyphicon warning-sign"></i> <span class="error-message"></span> </p> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o="",l=this.escapeExpression
;return o+='<div class="row row-padded"> <h4 class="text-muted text-center"> <p>'+l(i(n(1)).call(t,"Conversions for sync and media optimization will appear here.",{hash:{},data:s}))+"</p> <p>"+l(i(n(1)).call(t,"Manage your optimized versions in {1}Optimized Versions Settings{2}.",'<a href="#!/settings/server/{3}/versions">',"</a>",t&&t.serverID,{hash:{},data:s}))+"</p> </h4> </div> "})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){function r(e,t){
return' <div class="sortable-handle btn-gray-link"><i class="glyphicon show-lines"></i></div> '}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var s,o,l="",u=this.escapeExpression,c=this;return l+='<div class="show-actions striped-list-inner-item playlist-inner-item ',(o=n.type)?s=o.call(t,{hash:{},data:a}):(o=t&&t.type,s="function"==typeof o?o.call(t,{hash:{},data:a}):o),l+=u(s)+'"> <div class="media-actions media-reorder"> ',s=n.unless.call(t,t&&t.hideDragHandle,{hash:{},
inverse:c.noop,fn:c.program(1,r,a),data:a
}),(s||0===s)&&(l+=s),l+=' </div> <div class="generator-poster-container"> <div class="media-poster"></div> </div> <div class="media-actions generator-actions"> <button class="promote-btn media-action-btn btn-gray-link" tabindex="-1"><i class="glyphicon up-arrow"></i></button> <button class="delete-btn media-action-btn btn-gray-link btn-danger" tabindex="-1"><i class="glyphicon remove-2"></i></button> </div> <div class="media-item"> <div class="media-details"> <div class="generator-title col-lg"></div> <div class="generator-target col-md col-secondary"></div> <div class="conversion-status-region col-md col-secondary"></div> </div> </div> </div> '
})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o,l="",u=this.escapeExpression
;return l+='<div class="conversion-status-container conversion-status-converting"> <div class="progress-bar-region"></div> <div class="conversion-status-converting-label-container"> <span class="conversion-status-converting-label">'+u(i(n(1)).call(t,"Converting",{hash:{},data:s
}))+'</span> <span class="conversion-status-converting-speed"></span> <div class="conversion-status-converting-progress"> <span class="conversion-status-converting-percentage"></span> <span class="conversion-status-converting-progress-separator">&middot;</span> <span class="conversion-status-converting-remaining"></span> </div> </div> </div> <div class="conversion-status-container conversion-status-processed"> <i class="conversion-status-icon glyphicon ok-2 text-success"></i> '+u(i(n(1)).call(t,"Complete",{
hash:{},data:s}))+' </div> <div class="conversion-status-container conversion-status-disabled"> <i class="conversion-status-icon glyphicon circle-exclamation-mark text-danger"></i> '+u(i(n(1)).call(t,"Deleted",{hash:{},data:s
}))+' <button class="enable-btn media-action-btn btn-gray-link" tabindex="-1"><i class="glyphicon repeat"></i></button> </div> <div class="conversion-status-container conversion-status-error"> <i class="conversion-status-icon glyphicon circle-exclamation-mark text-danger"></i> <span class="conversion-status-failed-message">'+u((o=t&&t.initialErrorMessage,
"function"==typeof o?o.apply(t):o))+'</span> <button class="retry-btn media-action-btn btn-gray-link" tabindex="-1"><i class="glyphicon repeat"></i></button> </div> <div class="conversion-status-container conversion-status-pending"> <i class="conversion-status-icon glyphicon clock"></i> <span class="conversion-status-pending-label">'+u(i(n(1)).call(t,"Waiting",{hash:{},data:s}))+"</span> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12)
;e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o,l="",u=this.escapeExpression;return l+='<a class="card-collapsed" href="#!/server/'+u(i(n(152)).call(t,t&&t.serverID,{hash:{},data:s}))+"/directory/"+u(i(n(152)).call(t,t&&t.currentKey,{hash:{},data:s}))+"/"+u(i(n(152)).call(t,(o=t&&t.channel,null==o||o===!1?o:o.key),{hash:{},data:s}))+'"> <span class="media-title media-heading"></span> </a> '})},function(e,t,n){
var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},'<a class="media-poster-container" href="#"> <div class="media-poster"> <div class="installed-icon"><i class="glyphicon ok-2"></i></div> </div> <div class="media-title media-heading"></div> <div class="media-subtitle-1 media-heading secondary"></div> </a> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12)
;e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var n,i="";return i+=' <div class="media-poster-overlay"></div> <div class="media-poster-actions"> ',n=a.if.call(e,(n=e&&e.item,null==n||n===!1?n:n.hasPrefs),{hash:{},inverse:d.noop,fn:d.program(2,l,t),data:t}),(n||0===n)&&(i+=n),i+=' <button class="uninstall-btn media-poster-btn btn-link btn-danger" tabindex="-1"><i class="glyphicon remove-2"></i></button> </div> '}function l(e,t){
return' <button class="settings-btn media-poster-btn btn-link" tabindex="-1"><i class="glyphicon cogwheel"></i></button> '}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var u,c="",d=this,p=this.escapeExpression;return c+='<a class="media-poster-container" href="#!/server/'+p(i(n(152)).call(t,t&&t.serverID,{hash:{},data:s}))+"/channel/"+p(i(n(152)).call(t,(u=t&&t.item,null==u||u===!1?u:u.key),{hash:{},data:s}))+'"> <div class="media-poster"> ',u=a.unless.call(t,t&&t.shared,{
hash:{},inverse:d.noop,fn:d.program(1,o,s),data:s}),(u||0===u)&&(c+=u),c+=' <div class="loading loading-inline"></div> </div> <div class="media-title media-heading"></div> <div class="media-subtitle-1 media-heading secondary"></div> </a> '})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,s,o="",l=this.escapeExpression
;return o+='<a class="artwork-option media-poster-container" data-rating-key="',(s=n.ratingKey)?r=s.call(t,{hash:{},data:a}):(s=t&&t.ratingKey,r="function"==typeof s?s.call(t,{hash:{},data:a}):s),o+=l(r)+'" href="#"> <div class="media-poster"></div> </a> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return"missing"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{}
;var l,u="",c=this.escapeExpression,d=this;return u+='<div class="row disc-number hidden"> '+c(i(n(1)).call(t,"Disc {1}",t&&t.parentIndex,{hash:{},data:s}))+' </div> <div class="row striped-list-inner-item"> <span class="col-xs-1 match-index"> '+c((l=t&&t.index,"function"==typeof l?l.apply(t):l))+'. </span> <span class="col-xs-11 match-track-name ',l=a.unless.call(t,t&&t.matched,{hash:{},inverse:d.noop,fn:d.program(1,o,s),data:s}),(l||0===l)&&(u+=l),u+='"> '+c((l=t&&t.name,
"function"==typeof l?l.apply(t):l))+" </span> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o="";return o+='<div class="match-empty-message">'+(0,this.escapeExpression)(i(n(1)).call(t,"No matches found.",{hash:{},data:s}))+"</div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12)
;e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var n,i="";return i+=' <span class="match-name">'+h((n=e&&e.parentName,typeof n===p?n.apply(e):n))+'</span> &ndash; <span class="match-name">'+h((n=e&&e.name,typeof n===p?n.apply(e):n))+"</span> "}function l(e,t){var n,i="";return i+=' <span class="match-name">'+h((n=e&&e.name,typeof n===p?n.apply(e):n))+"</span> "}function u(e,t){var n,i="";return i+=' <span class="match-year">'+h((n=e&&e.year,
typeof n===p?n.apply(e):n))+'</span> <span class="match-separator">&middot;</span> '}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var c,d="",p="function",h=this.escapeExpression,f=this;return d+='<a class="match-result col-xs-12" href="#"> <div class="row"> <div class="col-xs-9 match-title-info"> ',c=a.if.call(t,t&&t.parentName,{hash:{},inverse:f.program(3,l,s),fn:f.program(1,o,s),data:s}),(c||0===c)&&(d+=c),
d+=' </div> <div class="col-xs-3 match-score-info" title="'+h(i(n(1)).call(t,"Score {1}",t&&t.normalizedScore,{hash:{},data:s}))+'"> ',c=a.if.call(t,t&&t.year,{hash:{},inverse:f.noop,fn:f.program(5,u,s),data:s}),(c||0===c)&&(d+=c),d+=' <span class="match-score"><i class="match-score-icon glyphicon certificate"></i>'+h((c=t&&t.normalizedScore,
typeof c===p?c.apply(t):c))+'</span> </div> </div> <div class="row match-extended-info hidden"> <div class="col-xs-4"> <img class="match-art" src="'+h((c=t&&t.thumb,typeof c===p?c.apply(t):c))+'"/> </div> <div class="col-xs-8 children-region"></div> </div> </a> '})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){function r(e,t){return"show-actions"}function s(e,t){return"selected"}function o(e,t){return"hidden"}this.compilerInfo=[4,">= 1.0.0"],
n=this.merge(n,e.helpers),a=a||{};var l,u,c="",d=this,p=this.escapeExpression;return c+='<a class="media-list-inner-item ',l=n.if.call(t,t&&t.showActions,{hash:{},inverse:d.noop,fn:d.program(1,r,a),data:a}),(l||0===l)&&(c+=l),c+=" ",l=n.if.call(t,t&&t.selected,{hash:{},inverse:d.noop,fn:d.program(3,s,a),data:a}),(l||0===l)&&(c+=l),c+='" href="',(u=n.url)?l=u.call(t,{hash:{},data:a}):(u=t&&t.url,l="function"==typeof u?u.call(t,{hash:{},data:a}):u),
c+=p(l)+'"> <div class="media-poster"></div> <div class="media-actions ',l=n.unless.call(t,t&&t.showActions,{hash:{},inverse:d.noop,fn:d.program(5,o,a),data:a}),(l||0===l)&&(c+=l),
c+='"> <button class="play-btn media-action-btn" tabindex="-1"><i class="glyphicon play"></i></button> <button class="more-btn media-action-btn" tabindex="-1"><i class="glyphicon more"></i></button> </div> <span class="media-title media-heading"></span> <span class="media-subtitle-2 media-heading secondary"></span> <span class="media-subtitle-1 media-heading secondary"></span> <p class="media-tagline"></p> <p class="media-summary"></p> </a> <div class="media-actions-dropdown dropdown pull-right"> <div class="dropdown-toggle" data-toggle="dropdown"></div> </div> '
})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){function r(e,t){return"show-actions"}function s(e,t){return"selected"}function o(e,t){return"hidden"}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var l,u,c="",d=this,p=this.escapeExpression;return c+='<a class="media-list-inner-item ',l=n.if.call(t,t&&t.showActions,{hash:{},inverse:d.noop,fn:d.program(1,r,a),data:a}),(l||0===l)&&(c+=l),c+=" ",l=n.if.call(t,t&&t.selected,{hash:{},
inverse:d.noop,fn:d.program(3,s,a),data:a}),(l||0===l)&&(c+=l),c+='" href="',(u=n.url)?l=u.call(t,{hash:{},data:a}):(u=t&&t.url,l="function"==typeof u?u.call(t,{hash:{},data:a}):u),c+=p(l)+'"> <div class="media-actions ',l=n.unless.call(t,t&&t.showActions,{hash:{},inverse:d.noop,fn:d.program(5,o,a),data:a}),(l||0===l)&&(c+=l),
c+='"> <button class="play-btn media-action-btn" tabindex="-1"><i class="glyphicon play"></i></button> <button class="more-btn media-action-btn btn-link" tabindex="-1"><i class="glyphicon more"></i></button> </div> <span class="media-title media-heading"></span> <span class="media-subtitle-2 media-heading secondary"></span> <span class="media-subtitle-1 media-heading secondary"></span> </a> <div class="media-actions-dropdown dropdown pull-right"> <div class="dropdown-toggle" data-toggle="dropdown"></div> </div> '
})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},'<div class="media-progress-track"></div> <div class="media-progress-pct"></div> '})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){function r(e,t){return"hide-actions"}function s(e,t){return"selected"}function o(e,t){return"hidden"}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{}
;var l,u,c="",d=this,p=this.escapeExpression;return c+='<a class="media-poster-container ',l=n.unless.call(t,t&&t.showActions,{hash:{},inverse:d.noop,fn:d.program(1,r,a),data:a}),(l||0===l)&&(c+=l),c+=" ",l=n.if.call(t,t&&t.selected,{hash:{},inverse:d.noop,fn:d.program(3,s,a),data:a}),(l||0===l)&&(c+=l),c+='" href="',(u=n.url)?l=u.call(t,{hash:{},data:a}):(u=t&&t.url,l="function"==typeof u?u.call(t,{hash:{},data:a}):u),
c+=p(l)+'"> <div class="media-poster"> <div class="media-poster-overlay"></div> <div class="media-poster-actions ',l=n.unless.call(t,t&&t.showActions,{hash:{},inverse:d.noop,fn:d.program(5,o,a),data:a}),(l||0===l)&&(c+=l),
c+='"> <button class="play-btn media-poster-btn btn-link" tabindex="-1"><i class="glyphicon play"></i></button> <button class="more-btn media-poster-btn btn-link" tabindex="-1"><i class="glyphicon more"></i></button> </div> <div class="media-progress"></div> </div> <div class="media-title media-heading"></div> <div class="media-subtitle-1 media-heading secondary"></div> <div class="media-subtitle-2 media-heading secondary"></div> <div class="media-subtitle-1-fill media-heading hidden"></div> <div class="media-subtitle-2-fill media-heading hidden"></div> </a> <div class="media-actions-dropdown dropdown"> <div class="dropdown-toggle" data-toggle="dropdown"></div> </div> '
})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},'<a class="playlist-metadata-region" href="#"></a> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){
return' <div class="media-actions media-reorder"> <div class="sortable-handle btn-gray-link"><i class="glyphicon show-lines"></i></div> </div> '}function l(e,t){return' <div class="media-poster-container play-btn"> <div class="media-poster"> <div class="media-poster-overlay"></div> <div class="media-poster-overlay-icons"> <i class="media-poster-overlay-icon glyphicon play"></i> </div> </div> </div> '}function u(e,t){
return' <div class="media-actions media-delete"> <button class="delete-btn media-action-btn btn-gray-link btn-danger" tabindex="-1"><i class="glyphicon remove-2"></i></button> </div> '}function c(e,t){return"has-actions"}function d(e,t){return"btn-metadata-link"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var p,h="",f=this.escapeExpression,v=this;return h+='<div class="show-actions playlist-inner-item '+f((p=t&&t.type,"function"==typeof p?p.apply(t):p))+'"> ',
p=a.if.call(t,t&&t.canEdit,{hash:{},inverse:v.noop,fn:v.program(1,o,s),data:s}),(p||0===p)&&(h+=p),h+=' <div class="media-index media-heading secondary"> <i class="glyphicon volume-up"></i> </div> ',p=i(n(165)).call(t,t&&t.type,"track",{hash:{},inverse:v.noop,fn:v.program(3,l,s),data:s}),(p||0===p)&&(h+=p),h+=" ",p=a.if.call(t,t&&t.canEdit,{hash:{},inverse:v.noop,fn:v.program(5,u,s),data:s}),(p||0===p)&&(h+=p),h+=' <div class="media-item '+f((p=t&&t.type,"function"==typeof p?p.apply(t):p))+" ",
p=a.if.call(t,t&&t.canEdit,{hash:{},inverse:v.noop,fn:v.program(7,c,s),data:s}),(p||0===p)&&(h+=p),h+='"> <div class="media-details"> <div class="media-detail media-heading"> <span class="media-title ',p=a.if.call(t,t&&t.hasDetails,{hash:{},inverse:v.noop,fn:v.program(9,d,s),data:s}),(p||0===p)&&(h+=p),
h+='"></span> </div> <div class="media-detail media-optional media-heading secondary"> <span class="media-primary-subtitle btn-metadata-link"></span> </div> <div class="media-detail media-always media-heading secondary"> <span class="media-secondary-subtitle btn-metadata-link"></span> </div> <div class="media-duration media-heading secondary"></div> </div> </div> </div>'})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],
n=this.merge(n,e.helpers),a=a||{};var r,s,o="",l=this.escapeExpression;return o+='<a class="playlist" data-id="',(s=n.ratingKey)?r=s.call(t,{hash:{},data:a}):(s=t&&t.ratingKey,r="function"==typeof s?s.call(t,{hash:{},data:a}):s),o+=l(r)+'" href="#"> <span class="media-poster playlist-poster"></span> ',(s=n.title)?r=s.call(t,{hash:{},data:a}):(s=t&&t.title,r="function"==typeof s?s.call(t,{hash:{},data:a}):s),o+=l(r)+" </a>"})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}
var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o="",l=this.escapeExpression;return o+='<div class="row row-padded"> <h4 class="text-muted text-center"> <p>'+l(i(n(1)).call(t,'Choose "Optimize..." on items in your library and optimized versions will appear here.',{hash:{},data:s
}))+"</p> <p>"+l(i(n(1)).call(t,"Monitor conversion progress in {1}Conversion Activity{2}.",'<a href="#!/status/conversion">',"</a>",{hash:{},data:s}))+"</p> </h4> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o,l="",u=this.escapeExpression;return l+='<a class="show-actions playlist-inner-item '+u((o=t&&t.type,
"function"==typeof o?o.apply(t):o))+'" href="#"> <div class="media-actions media-reorder"> <div class="sortable-handle btn-gray-link"><i class="glyphicon show-lines"></i></div> </div> <div class="generator-poster-container"> <div class="media-poster"></div> </div> <div class="media-actions generator-actions"> <button class="retry-btn media-action-btn btn-gray-link" tabindex="-1"><i class="glyphicon repeat"></i></button> <button class="edit-btn media-action-btn btn-gray-link" tabindex="-1"><i class="glyphicon pencil"></i></button> <button class="delete-btn media-action-btn btn-gray-link btn-danger" tabindex="-1"><i class="glyphicon remove-2"></i></button> </div> <div class="media-item"> <div class="media-details"> <div class="generator-title col-lg"></div> <div class="generator-target col-md col-secondary"></div> <div class="generator-status col-md col-secondary"> <div class="generator-status-container generator-status-complete"> <i class="generator-status-icon glyphicon ok-2 text-success"></i> '+u(i(n(1)).call(t,"Complete",{
hash:{},data:s}))+' </div> <div class="generator-status-container generator-status-failed"> <i class="generator-status-icon glyphicon circle-exclamation-mark text-danger"></i> <span class="generator-status-failed-message">'+u(i(n(1)).call(t,"Failed",{hash:{},data:s}))+'</span> </div> <div class="generator-status-container generator-status-converting"> <i class="generator-status-icon glyphicon restart"></i> '+u(i(n(1)).call(t,"Converting",{hash:{},data:s
}))+' </div> <div class="generator-status-container generator-status-pending"> <i class="generator-status-icon glyphicon clock"></i> '+u(i(n(1)).call(t,"Waiting",{hash:{},data:s}))+" </div> </div> </div> </div> </a> "})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,s,o="",l=this.escapeExpression
;return o+='<div class="striped-list-inner-item"> <div class="generator-poster-container"> <div class="media-poster"></div> </div> <div class="conversion-status-region"></div> <div class="generator-metadata-title">',(s=n.title)?r=s.call(t,{hash:{},data:a}):(s=t&&t.title,r="function"==typeof s?s.call(t,{hash:{},data:a}):s),o+=l(r)+'</div> <div class="generator-metadata-episode-index generator-metadata-subtitle"></div> <div class="generator-metadata-year generator-metadata-subtitle">',
(s=n.year)?r=s.call(t,{hash:{},data:a}):(s=t&&t.year,r="function"==typeof s?s.call(t,{hash:{},data:a}):s),o+=l(r)+"</div> </div> "})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,s="",o=this.escapeExpression;return s+='<a class="striped-list-item" href="#" data-key="'+o((r=t&&t.filePath,r=null==r||r===!1?r:r.key,
"function"==typeof r?r.apply(t):r))+'"> <i class="glyphicon file"></i> '+o((r=t&&t.filePath,r=null==r||r===!1?r:r.title,"function"==typeof r?r.apply(t):r))+" </a> "})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){function r(e,t){return"left-arrow"}function s(e,t){var i;return i=n.if.call(e,(i=e&&e.filePath,null==i||i===!1?i:i.home),{hash:{},inverse:v.program(6,l,t),fn:v.program(4,o,t),data:t}),i||0===i?i:""}function o(e,t){return"home"}function l(e,t){var i
;return i=n.if.call(e,(i=e&&e.filePath,null==i||i===!1?i:i.network),{hash:{},inverse:v.program(9,c,t),fn:v.program(7,u,t),data:t}),i||0===i?i:""}function u(e,t){return"globe"}function c(e,t){var i;return i=n.if.call(e,e&&e.isRoot,{hash:{},inverse:v.program(12,p,t),fn:v.program(10,d,t),data:t}),i||0===i?i:""}function d(e,t){return"hdd"}function p(e,t){return"folder-open"}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var h,f="",v=this,m=this.escapeExpression
;return f+='<a class="striped-list-item" href="#" data-key="'+m((h=t&&t.filePath,h=null==h||h===!1?h:h.key,"function"==typeof h?h.apply(t):h))+'"> <i class="folder-icon glyphicon ',h=n.if.call(t,(h=t&&t.filePath,null==h||h===!1?h:h.isBackShortcut),{hash:{},inverse:v.program(3,s,a),fn:v.program(1,r,a),data:a}),(h||0===h)&&(f+=h),f+='"></i> '+m((h=t&&t.filePath,h=null==h||h===!1?h:h.title,"function"==typeof h?h.apply(t):h))+' <div class="loading loading-sm loading-inline hidden"></div> </a> '})
},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,s,o="",l=this.escapeExpression;return o+='<a class="btn-gray" data-identifier="',(s=n.identifier)?r=s.call(t,{hash:{},data:a}):(s=t&&t.identifier,r="function"==typeof s?s.call(t,{hash:{},data:a}):s),o+=l(r)+'" href="#">',(s=n.name)?r=s.call(t,{hash:{},data:a}):(s=t&&t.name,r="function"==typeof s?s.call(t,{hash:{},data:a}):s),o+=l(r)+"</a> "
})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return"checked"}function l(e,t){return"disabled"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var u,c="",d=this.escapeExpression,p=this
;return c+='<div class="card-actions"> <button class="info-btn card-action-btn"><i class="glyphicon circle-info"></i></button> <button class="settings-btn card-action-btn"><i class="glyphicon cogwheel"></i></button> </div> <div class="card-handle"><i class="glyphicon show-lines"></i></div> <label for="'+d((u=t&&t.identifier,"function"==typeof u?u.apply(t):u))+'"> <input id="'+d((u=t&&t.identifier,"function"==typeof u?u.apply(t):u))+'" name="'+d((u=t&&t.identifier,
"function"==typeof u?u.apply(t):u))+'" type="checkbox" ',u=a.if.call(t,t&&t.enabled,{hash:{},inverse:p.noop,fn:p.program(1,o,s),data:s}),(u||0===u)&&(c+=u),c+=" ",u=a.if.call(t,t&&t.isPrimary,{hash:{},inverse:p.noop,fn:p.program(3,l,s),data:s}),(u||0===u)&&(c+=u),c+="> "+d(i(n(1)).call(t,t&&t.name,{hash:{},data:s}))+" </label> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),s=s||{};var o="";return o+='<div class="row-padded"> <h4 class="text-muted text-center">'+(0,this.escapeExpression)(i(n(1)).call(t,"No devices found",{hash:{},data:s}))+"</h4> </div> "})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},
'<div class="card card-device"> <img class="card-poster device-icon"> <div class="card-actions"> <button class="remove-device-btn card-action-btn btn-danger"><i class="glyphicon remove-2"></i></button> </div> <h4 class="name"></h4> <div class="card-details"> <div class="pull-right"> <div class="last-seen text-muted"></div> <span class="sync-info hidden"> <span class="glyphicon circle-arrow-down sync-icon"></span> <span class="sync-count"></span> <span class="sync-size"></span> </span> </div> <span class="version text-muted"></span> <div class="device-info-container"> <div class="product"></div> <div class="device text-muted"></div> <div class="platform-info text-muted"> <span class="platform"></span> <span class="platform-version"></span> </div> </div> </div> </div> '
})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o="";return o+='<h4 class="text-muted text-center">'+(0,this.escapeExpression)(i(n(1)).call(t,"No friends yet. {1}Invite a friend{2} and share your libraries.",'<a class="invite-friend-btn" href="#">',"</a>",{hash:{},data:s}))+"</h4> "})},function(e,t,n){var i=n(12)
;e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},
'<div class="card card-user card-friend"> <div class="card-poster media-poster img-circle"></div> <div class="card-actions"> <button class="edit-btn card-action-btn"><i class="glyphicon pencil"></i></button> <button class="delete-btn card-action-btn btn-danger"><i class="glyphicon remove-2"></i></button> </div> <h4 class="username"></h4> <div class="card-details"></div> </div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12)
;e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var n,i="";return i+=' <p class="user-summary"> <i class="server-share-direction-icon glyphicon right-arrow"></i> <a class="server-share-edit-btn server-share-status shared '+g((n=e&&e.shared,n=null==n||n===!1?n:n.status,typeof n===y?n.apply(e):n))+" ",n=a.unless.call(e,e&&e.canEdit,{hash:{},inverse:b.noop,fn:b.program(2,l,t),data:t}),(n||0===n)&&(i+=n),
i+='" href="#"> <i class="server-share-status-icon available glyphicon circle-ok"></i> <i class="server-share-status-icon unavailable glyphicon circle-exclamation-mark"></i> <i class="server-share-status-icon unknown glyphicon circle-question-mark"></i> <i class="server-share-status-hover-icon glyphicon pencil"></i> </a> ',n=a.if.call(e,(n=e&&e.shared,null==n||n===!1?n:n.hasActiveShare),{hash:{},inverse:b.program(6,c,t),fn:b.program(4,u,t),data:t}),(n||0===n)&&(i+=n),i+=" </p> "}function l(e,t){
return"disabled"}function u(e,t){var a,r="";return r+=" "+g(i(n(1)).call(e,"shares {1} {2} with you",(a=e&&e.shared,null==a||a===!1?a:a.numLibraries),(a=e&&e.shared,null==a||a===!1?a:a.libraryLabel),{hash:{},data:t}))+" "}function c(e,t){var a,r="";return r+=" "+g(i(n(1)).call(e,"wants to share {1} {2} with you",(a=e&&e.shared,null==a||a===!1?a:a.numLibraries),(a=e&&e.shared,null==a||a===!1?a:a.libraryLabel),{hash:{},data:t}))+" "}function d(e,t){var n,i=""
;return i+=' <p class="user-summary"> <i class="server-share-direction-icon glyphicon left-arrow"></i> <a class="server-share-edit-btn server-share-status owned '+g((n=e&&e.owned,n=null==n||n===!1?n:n.status,typeof n===y?n.apply(e):n))+" ",n=a.unless.call(e,e&&e.canEdit,{hash:{},inverse:b.noop,fn:b.program(2,l,t),data:t}),(n||0===n)&&(i+=n),
i+='" href="#"> <i class="server-share-status-icon available glyphicon circle-ok"></i> <i class="server-share-status-icon unavailable glyphicon circle-exclamation-mark"></i> <i class="server-share-status-icon unknown glyphicon circle-question-mark"></i> <i class="server-share-status-hover-icon glyphicon pencil"></i> </a> ',n=a.if.call(e,(n=e&&e.owned,null==n||n===!1?n:n.hasActiveShare),{hash:{},inverse:b.program(11,h,t),fn:b.program(9,p,t),data:t}),(n||0===n)&&(i+=n),i+=" </p> "}function p(e,t){
var a,r="";return r+=" "+g(i(n(1)).call(e,"sharing {1} {2} with this {3}",(a=e&&e.owned,null==a||a===!1?a:a.numLibraries),(a=e&&e.owned,null==a||a===!1?a:a.libraryLabel),(a=e&&e.owned,null==a||a===!1?a:a.friendLabel),{hash:{},data:t}))+" "}function h(e,t){var a,r="";return r+=" "+g(i(n(1)).call(e,"invited to share {1} {2}",(a=e&&e.owned,null==a||a===!1?a:a.numLibraries),(a=e&&e.owned,null==a||a===!1?a:a.libraryLabel),{hash:{},data:t}))+" "}function f(e,t){var a=""
;return a+=' <p class="user-summary server-share-empty-message">'+g(i(n(1)).call(e,"no shared libraries",{hash:{},data:t}))+"</p> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var v,m="",g=this.escapeExpression,y="function",b=this;return v=a.if.call(t,(v=t&&t.shared,null==v||v===!1?v:v.numLibraries),{hash:{},inverse:b.noop,fn:b.program(1,o,s),data:s}),(v||0===v)&&(m+=v),m+=" ",v=a.if.call(t,(v=t&&t.owned,null==v||v===!1?v:v.numLibraries),{hash:{},inverse:b.noop,
fn:b.program(8,d,s),data:s}),(v||0===v)&&(m+=v),m+=" ",v=a.if.call(t,t&&t.showEmptyMessage,{hash:{},inverse:b.noop,fn:b.program(13,f,s),data:s}),(v||0===v)&&(m+=v),m+=" "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a=""
;return a+=' <h4 class="text-muted text-center">'+d(i(n(1)).call(e,"No one else is in your home. {1}Add a user{2} to enable user switching.",'<a class="add-user-btn" href="#">',"</a>",{hash:{},data:t}))+"</h4> "}function l(e,t){var a,r="";return r+=' <h4 class="text-muted text-center">'+d(i(n(1)).call(e,"You need a Plex Pass to add users to your home.",{hash:{},data:t}))+'</h4> <p class="text-center"> <a class="btn btn-sm btn-primary" href="'+d((a=e&&e.plexPassUrl,
typeof a===p?a.apply(e):a))+'" target="_blank">'+d(i(n(1)).call(e,"Learn More",{hash:{},data:t}))+"</a> </p> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var u,c="",d=this.escapeExpression,p="function",h=this;return u=a.if.call(t,t&&t.hasHomeFeature,{hash:{},inverse:h.program(3,l,s),fn:h.program(1,o,s),data:s}),(u||0===u)&&(c+=u),c+=' <ul class="list centered-home-user-container"></ul> '})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){
function r(e,t){return'<div class="selected-user-icon"></div>'}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var s,o="",l=this;return o+='<div class="card card-user card-friend card-home-user"> ',s=n.if.call(t,t&&t.isSignedInUser,{hash:{},inverse:l.noop,fn:l.program(1,r,a),data:a}),(s||0===s)&&(o+=s),
o+=' <div class="card-poster media-poster img-circle"></div> <div class="card-actions"> <button class="pin-btn pin-protected-btn card-action-btn btn-success"><i class="glyphicon lock"></i></button> <button class="pin-btn pin-unprotected-btn card-action-btn"><i class="glyphicon unlock"></i></button> <button class="edit-btn card-action-btn"><i class="glyphicon pencil"></i></button> <button class="delete-btn card-action-btn btn-danger"><i class="glyphicon remove-2"></i></button> </div> <h4> <i class="admin-icon glyphicon crown"></i> <span class="username"></span> </h4> <div class="card-details"> <div class="user-type text-muted"></div> </div> </div> '
})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){function r(e,t){return'<button class="accept-btn card-action-btn btn-success"><i class="glyphicon ok-2"></i></button>'}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var s,o="",l=this;return o+='<div class="card card-user"> <div class="card-poster media-poster img-circle"></div> <div class="card-actions"> ',s=n.if.call(t,t&&t.showAccept,{hash:{},inverse:l.noop,fn:l.program(1,r,a),data:a}),
(s||0===s)&&(o+=s),o+=' <button class="delete-btn card-action-btn btn-danger"><i class="glyphicon remove-2"></i></button> </div> <h4 class="username"></h4> <div class="card-details"> <p class="user-summary"></p> </div> </div> '})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,s,o="",l=this.escapeExpression
;return o+='<div class="card card-section"> <div class="card-actions"> <button class="edit-section-btn card-action-btn"><i class="glyphicon pencil"></i></button> <button class="delete-section-btn card-action-btn btn-danger"><i class="glyphicon remove-2"></i></button> </div> <i class="section-icon glyphicon ',(s=n.icon)?r=s.call(t,{hash:{},data:a}):(s=t&&t.icon,r="function"==typeof s?s.call(t,{hash:{},data:a}):s),o+=l(r)+'"></i> <span class="section-title"></span> </div> '})},function(e,t,n){
function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return"hidden"}function l(e,t){var n,i="";return i+=' <h4><a href="'+h((n=e&&e.url,typeof n===p?n.apply(e):n))+'" target="_blank">'+h((n=e&&e.title,typeof n===p?n.apply(e):n))+'</a></h4> <a href="'+h((n=e&&e.url,typeof n===p?n.apply(e):n))+'" target="_blank"> <img class="thumb"/> </a> '}function u(e,t){var n,i="";return i+=" <h4>"+h((n=e&&e.title,
typeof n===p?n.apply(e):n))+'</h4> <img class="thumb"/> '}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var c,d="",p="function",h=this.escapeExpression,f=this;return d+='<div class="card card-announcement"> <div class="unread ',c=a.if.call(t,t&&t.read,{hash:{},inverse:f.noop,fn:f.program(1,o,s),data:s}),(c||0===c)&&(d+=c),d+='"></div> ',c=a.if.call(t,t&&t.url,{hash:{},inverse:f.program(5,u,s),fn:f.program(3,l,s),data:s}),(c||0===c)&&(d+=c),
d+=' <div class="date">'+h(i(n(1409)).call(t,t&&t.notifyAt,{hash:{},data:s}))+'</div> <div class="description">',c=t&&t.content,c=typeof c===p?c.apply(t):c,(c||0===c)&&(d+=c),d+="</div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o,l="",u=this.escapeExpression
;return l+='<a class="friend" data-id="'+u((o=t&&t.recommendationsPlaylistId,"function"==typeof o?o.apply(t):o))+'" href="#"> <span class="media-poster user-poster"></span> '+u(i(n(550)).call(t,t&&t.title,20,{hash:{},data:s}))+" </a> "})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,s,o="",l=this.escapeExpression;return o+='<a class="card card-user-playlist" href="',
(s=n.url)?r=s.call(t,{hash:{},data:a}):(s=t&&t.url,r="function"==typeof s?s.call(t,{hash:{},data:a}):s),
o+=l(r)+'"> <div class="card-poster media-poster"></div> <div class="card-actions"> <button class="play-btn card-action-btn"><i class="glyphicon play"></i></button> <button class="mark-unwatched-btn card-action-btn"><i class="glyphicon circle-minus"></i></button> <button class="mark-watched-btn card-action-btn"><i class="glyphicon circle-ok"></i></button> <button class="delete-btn card-action-btn btn-danger"><i class="glyphicon remove-2"></i></button> </div> <h4 class="media-title"></h4> <div class="card-details"> <span class="media-subtitle-1"></span> <span class="media-context"></span> <p class="media-summary"></p> </div> </a> '
})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o="",l=this.escapeExpression
;return o+='<div class="modal-dialog"> <div class="modal-content"> <form name="add-folder-form"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon folder-plus"></i> '+l(i(n(1)).call(t,"Add Folder",{hash:{},data:s
}))+'</h4> </div> <div class="modal-body modal-body-scroll dark-scrollbar"> <div class="row"> <div class="col-md-12"> <input type="text" name="path" class="form-control" value=""> </div> </div> <div class="row directory-container-row"> <div class="home-directory-container col-md-5"></div> <div class="col-md-7"> <div class="path-container"></div> <div class="file-container"></div> </div> </div> </div> <div class="modal-footer"> <button type="button" class="cancel-btn btn btn-default" data-dismiss="modal">'+l(i(n(1)).call(t,"Cancel",{
hash:{},data:s}))+'</button> <button type="submit" class="add-btn btn btn-primary">'+l(i(n(1)).call(t,"Add",{hash:{},data:s}))+"</button> </div> </form> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var n,i="";return i+=" ",n=a.if.call(e,e&&e.isAlbums,{hash:{},inverse:P.program(4,u,t),fn:P.program(2,l,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function l(e,t){var a=""
;return a+=" "+D(i(n(1)).call(e,"Select an Album",{hash:{},data:t}))+" "}function u(e,t){var a="";return a+=" "+D(i(n(1)).call(e,"Select a Playlist",{hash:{},data:t}))+" "}function c(e,t){var n,i="";return i+=" ",n=a.if.call(e,e&&e.isAlbums,{hash:{},inverse:P.program(9,p,t),fn:P.program(7,d,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function d(e,t){var a="";return a+=" "+D(i(n(1)).call(e,"Create Album",{hash:{},data:t}))+" "}function p(e,t){var a="";return a+=" "+D(i(n(1)).call(e,"Create Playlist",{
hash:{},data:t}))+" "}function h(e,t){var n,i="";return i+=" ",n=a.if.call(e,e&&e.hasPlaylists,{hash:{},inverse:P.program(14,v,t),fn:P.program(12,f,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function f(e,t){return' <div class="playlists-container"></div> '}function v(e,t){var n,i="";return i+=" ",n=a.if.call(e,e&&e.loading,{hash:{},inverse:P.program(17,g,t),fn:P.program(15,m,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function m(e,t){
return' <div class="loading-container"> <div class="loading loading-inline"></div> </div> '}function g(e,t){var n,i="";return i+=' <div class="empty-message"> ',n=a.if.call(e,e&&e.isAlbums,{hash:{},inverse:P.program(20,b,t),fn:P.program(18,y,t),data:t}),(n||0===n)&&(i+=n),i+=" </div> "}function y(e,t){var a="";return a+=" "+D(i(n(1)).call(e,"There are no albums on this server.",{hash:{},data:t}))+" "}function b(e,t){var a=""
;return a+=" "+D(i(n(1)).call(e,"There are no playlists on this server.",{hash:{},data:t}))+" "}function S(e,t){return"only-control"}function I(e,t){return D(i(n(1)).call(e,"New album...",{hash:{},data:t}))}function M(e,t){return D(i(n(1)).call(e,"New playlist...",{hash:{},data:t}))}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var C,w="",D=this.escapeExpression,P=this
;return w+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"> <i class="modal-icon plex-icon-add-to-playlist"></i> ',C=a.if.call(t,t&&t.showExisting,{hash:{},inverse:P.program(6,c,s),fn:P.program(1,o,s),data:s}),(C||0===C)&&(w+=C),w+=' </h4> </div> <div class="modal-body modal-body-scroll minimal-scroll"> ',C=a.if.call(t,t&&t.showExisting,{
hash:{},inverse:P.noop,fn:P.program(11,h,s),data:s}),(C||0===C)&&(w+=C),w+=' <div class="message-container ',C=a.unless.call(t,t&&t.showExisting,{hash:{},inverse:P.noop,fn:P.program(22,S,s),data:s}),(C||0===C)&&(w+=C),w+='"> <input class="message form-control" placeholder="',C=a.if.call(t,t&&t.isAlbums,{hash:{},inverse:P.program(26,M,s),fn:P.program(24,I,s),data:s}),(C||0===C)&&(w+=C),
w+='" > </div> </div> <div class="modal-footer"> <button type="button" class="add-btn btn btn-primary btn-loading disabled"> <div class="loading loading-sm"></div> <span class="btn-label">'+D(i(n(1)).call(t,"Add",{hash:{},data:s}))+"</span> </button> </div> </div> </div> "})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,s,o=""
;return o+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"> <i class="modal-icon glyphicon circle-info"></i> '+(0,this.escapeExpression)((r=t&&t.agent,r=null==r||r===!1?r:r.name,"function"==typeof r?r.apply(t):r))+' </h4> </div> <div class="modal-body"> <p class="agent-icon-container"></p> <p>',(s=n.attribution)?r=s.call(t,{hash:{},data:a
}):(s=t&&t.attribution,r="function"==typeof s?s.call(t,{hash:{},data:a}):s),(r||0===r)&&(o+=r),o+="</p> </div> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a="";return a+='<button class="browse-btn btn btn-primary">'+c(i(n(1)).call(e,"Browse",{hash:{},data:t}))+"</button>"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{}
;var l,u="",c=this.escapeExpression,d=this;return u+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title">'+c((l=t&&t.channel,l=null==l||l===!1?l:l.title,
"function"==typeof l?l.apply(t):l))+'</h4> </div> <div class="modal-body"> <div class="channel-poster-container"> <div class="channel-poster media-poster"></div> <div class="installed-actions-container"> ',l=a.unless.call(t,t&&t.agent,{hash:{},inverse:d.noop,fn:d.program(1,o,s),data:s}),(l||0===l)&&(u+=l),u+=' <div class="btn-group"> <button type="button" class="update-btn btn btn-default btn-loading"> <div class="loading loading-sm"></div> <span class="btn-label">'+c(i(n(1)).call(t,"Update",{
hash:{},data:s}))+'</span> </button> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> <i class="caret-icon caret-icon-sm"></i> </button> <ul class="dropdown-menu pull-right"> <li><a class="restart-btn" href="#">'+c(i(n(1)).call(t,"Restart",{hash:{},data:s}))+'</a></li> <li><a class="reset-btn" href="#">'+c(i(n(1)).call(t,"Reset",{hash:{},data:s
}))+'</a></li> </ul> </div> <button class="uninstall-btn btn btn-danger btn-loading"> <div class="loading loading-sm"></div> <span class="btn-label">'+c(i(n(1)).call(t,"Uninstall",{hash:{},data:s}))+'</span> </button> </div> <div class="uninstalled-actions-container"> <button class="install-btn btn btn-primary btn-loading"> <div class="loading loading-sm"></div> <span class="btn-label">'+c(i(n(1)).call(t,"Install",{hash:{},data:s
}))+'</span> </button> </div> </div> <div class="channel-details"> '+c((l=t&&t.channel,l=null==l||l===!1?l:l.summary,"function"==typeof l?l.apply(t):l))+" </div> </div> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a="";return a+=" "+p(i(n(1)).call(e,"Directory Settings",{hash:{},data:t}))+" "}function l(e,t){var a=""
;return a+=" "+p(i(n(1)).call(e,"{1} Settings",e&&e.title,{hash:{},data:t}))+" "}function u(e,t){var a="";return a+=" "+p(i(n(25)).call(e,"setting",{hash:{idSuffix:"_c"},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var c,d="",p=this.escapeExpression,h=this
;return d+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"> <i class="modal-icon glyphicon cogwheel"></i> ',c=i(n(24)).call(t,t&&t.title,"Preferences...",{hash:{},inverse:h.program(3,l,s),fn:h.program(1,o,s),data:s}),(c||0===c)&&(d+=c),d+=' </h4> </div> <form id="channel-settings-form"> <div class="modal-body settings-container"> ',
c=a.each.call(t,t&&t.settings,{hash:{},inverse:h.noop,fn:h.program(5,u,s),data:s}),(c||0===c)&&(d+=c),d+=' </div> <div class="modal-footer"> <button type="button" class="cancel-btn btn btn-lg btn-default" data-dismiss="modal">'+p(i(n(1)).call(t,"Cancel",{hash:{},data:s}))+'</button> <button type="submit" class="submit-btn btn btn-lg btn-primary btn-loading"> <div class="loading loading-sm"></div> <span class="btn-label">'+p(i(n(1)).call(t,"Save",{hash:{},data:s
}))+"</span> </button> </div> </form> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a="";return a+=' <button type="button" class="cancel-btn btn btn-lg btn-default" data-dismiss="modal">'+p(i(n(1)).call(e,e&&e.cancelLabel,{hash:{},data:t}))+"</button> "}function l(e,t){return"btn-danger"}function u(e,t){return"btn-primary"}this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),s=s||{};var c,d="",p=this.escapeExpression,h=this;return d+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon circle-exclamation-mark"></i> '+p((c=t&&t.title,"function"==typeof c?c.apply(t):c))+'</h4> </div> <div class="modal-body"> <p class="confirm-message">'+p((c=t&&t.message,
"function"==typeof c?c.apply(t):c))+'</p> <p class="double-confirm-message text-warning"></p> </div> <div class="modal-footer"> ',c=a.unless.call(t,t&&t.hideCancel,{hash:{},inverse:h.noop,fn:h.program(1,o,s),data:s}),(c||0===c)&&(d+=c),d+=' <button type="button" class="confirm-btn btn btn-lg ',c=a.if.call(t,t&&t.hasDanger,{hash:{},inverse:h.program(5,u,s),fn:h.program(3,l,s),data:s}),(c||0===c)&&(d+=c),
d+=' btn-loading"> <div class="loading loading-sm"></div> <span class="btn-label">'+p(i(n(1)).call(t,t&&t.confirmLabel,{hash:{},data:s}))+"</span> </button> </div> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t,r){var s,o="";return o+=' <li class="striped-list-item select-list-item download-list-item"> <a class="media" data-value="'+m((s=null==t||t===!1?t:t.index,
typeof s===v?s.apply(e):s))+'" href="'+m((s=e&&e.downloadUrl,typeof s===v?s.apply(e):s))+'" target="'+m((s=r&&r.defaultLinkTarget,typeof s===v?s.apply(e):s))+'" ',s=i(n(165)).call(e,r&&r.defaultLinkTarget,"_blank",{hash:{},inverse:g.noop,fn:g.program(2,l,t),data:t}),(s||0===s)&&(o+=s),o+="> ",s=a.if.call(e,e&&e.title,{hash:{},inverse:g.noop,fn:g.program(4,u,t),data:t}),(s||0===s)&&(o+=s),o+=" ",s=a.if.call(e,e&&e.videoResolution,{hash:{},inverse:g.noop,fn:g.program(6,c,t),data:t}),
(s||0===s)&&(o+=s),o+=" ",s=a.if.call(e,e&&e.bitrate,{hash:{},inverse:g.noop,fn:g.program(9,p,t),data:t}),(s||0===s)&&(o+=s),o+=" </a> </li> "}function l(e,t){var n,i="";return i+='download="'+m((n=e&&e.downloadName,typeof n===v?n.apply(e):n))+'"'}function u(e,t){var n,i="";return i+=" "+m((n=e&&e.title,typeof n===v?n.apply(e):n))+' <span class="title-separator">\u2022</span> '}function c(e,t){var r,s="";return s+=" "+m(i(n(1411)).call(e,e&&e.videoResolution,{hash:{},data:t})),
r=a.if.call(e,e&&e.bitrate,{hash:{},inverse:g.noop,fn:g.program(7,d,t),data:t}),(r||0===r)&&(s+=r),s+=" "}function d(e,t){return","}function p(e,t){var a="";return a+=" "+m(i(n(1410)).call(e,e&&e.bitrate,{hash:{},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var h,f="",v="function",m=this.escapeExpression,g=this
;return f+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon download-alt"></i> '+m(i(n(1)).call(t,"Download a Version",{hash:{},data:s}))+'</h4> </div> <div class="modal-body modal-body-scroll dark-scrollbar"> <ul class="list select-list download-list"> ',h=a.each.call(t,t&&t.mediaItems,{hash:{},
inverse:g.noop,fn:g.programWithDepth(1,o,s,t),data:s}),(h||0===h)&&(f+=h),f+=" </ul> </div> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a="";return a+=' <i class="modal-icon glyphicon plus"></i> '+S(i(n(1)).call(e,"Add {1} Library",'<span class="section-type-title"></span>',{hash:{},data:t}))+" "}function l(e,t){var a=""
;return a+=' <i class="modal-icon glyphicon pencil"></i> '+S(i(n(1)).call(e,"Edit Library",{hash:{},data:t}))+" "}function u(e,t){return' <div class="modal-body-pane pane-region dark-scrollbar"> <div class="loading loading-inline"></div> </div> '}function c(e,t){var r,s="";return s+=' <div class="modal-nav-pane dark-scrollbar"> <ul class="list modal-nav-list"> <li> <a class="btn-gray change-pane-btn type-btn',r=i(n(24)).call(e,e&&e.selectedPane,"type",{hash:{},inverse:I.noop,fn:I.program(8,d,t),
data:t}),(r||0===r)&&(s+=r),s+='" data-pane="type" href="#"> <i class="modal-nav-icon glyphicon align-center"></i> ',r=a.if.call(e,e&&e.add,{hash:{},inverse:I.program(12,h,t),fn:I.program(10,p,t),data:t}),(r||0===r)&&(s+=r),s+=' </a> </li> <li> <a class="btn-gray change-pane-btn folders-btn',r=i(n(24)).call(e,e&&e.selectedPane,"folders",{hash:{},inverse:I.noop,fn:I.program(8,d,t),data:t}),(r||0===r)&&(s+=r),s+=" ",r=a.if.call(e,e&&e.add,{hash:{},inverse:I.noop,fn:I.program(14,f,t),data:t}),
(r||0===r)&&(s+=r),s+=" ",r=a.unless.call(e,e&&e.showFolders,{hash:{},inverse:I.noop,fn:I.program(16,v,t),data:t}),(r||0===r)&&(s+=r),s+='" data-pane="folders" href="#"> <i class="modal-nav-icon glyphicon folder-open"></i> '+S(i(n(1)).call(e,"Add folders",{hash:{},data:t}))+' </a> </li> <li> <a class="btn-gray change-pane-btn options-btn',r=i(n(24)).call(e,e&&e.selectedPane,"options",{hash:{},inverse:I.noop,fn:I.program(8,d,t),data:t}),(r||0===r)&&(s+=r),s+=" ",r=a.if.call(e,e&&e.add,{hash:{},
inverse:I.noop,fn:I.program(14,f,t),data:t}),(r||0===r)&&(s+=r),s+=' hidden" data-pane="options" href="#"> <i class="modal-nav-icon glyphicon magic"></i> '+S(i(n(1)).call(e,"Options",{hash:{},data:t}))+' </a> </li> <li> <a class="btn-gray change-pane-btn advanced-btn',r=i(n(24)).call(e,e&&e.selectedPane,"advanced",{hash:{},inverse:I.noop,fn:I.program(8,d,t),data:t}),(r||0===r)&&(s+=r),s+=" ",r=a.if.call(e,e&&e.add,{hash:{},inverse:I.noop,fn:I.program(14,f,t),data:t}),(r||0===r)&&(s+=r),
s+='" data-pane="advanced" href="#"> <i class="modal-nav-icon glyphicon cogwheel"></i> '+S(i(n(1)).call(e,"Advanced",{hash:{},data:t}))+' </a> </li> </ul> </div> <div class="modal-body-pane pane-region dark-scrollbar"> </div> '}function d(e,t){return" selected"}function p(e,t){var a="";return a+=" "+S(i(n(1)).call(e,"Select type",{hash:{},data:t}))+" "}function h(e,t){var a="";return a+=" "+S(i(n(1)).call(e,"General",{hash:{},data:t}))+" "}function f(e,t){return"disabled"}function v(e,t){
return"hidden"}function m(e,t){var a="";return a+=" "+S(i(n(1)).call(e,"Add Library",{hash:{},data:t}))+" "}function g(e,t){var a="";return a+=" "+S(i(n(1)).call(e,"Save Changes",{hash:{},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var y,b="",S=this.escapeExpression,I=this
;return b+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"> ',y=a.if.call(t,t&&t.add,{hash:{},inverse:I.program(3,l,s),fn:I.program(1,o,s),data:s}),(y||0===y)&&(b+=y),b+=' </h4> </div> <div class="modal-body modal-body-scroll modal-body-with-panes"> ',y=a.if.call(t,t&&t.isLoading,{hash:{},inverse:I.program(7,c,s),fn:I.program(5,u,s),
data:s}),(y||0===y)&&(b+=y),b+=' </div> <div class="modal-footer"> <span class="form-message"></span> <button type="button" class="cancel-btn btn btn-default" data-dismiss="modal">'+S(i(n(1)).call(t,"Cancel",{hash:{},data:s}))+'</button> <button type="button" class="save-btn btn btn-primary btn-loading ',y=a.if.call(t,t&&t.add,{hash:{},inverse:I.noop,fn:I.program(14,f,s),data:s}),(y||0===y)&&(b+=y),
b+='"> <div class="loading loading-sm"></div> <span class="btn-label"> <span class="save-btn-label-next">'+S(i(n(1)).call(t,"Next",{hash:{},data:s}))+'</span> <span class="save-btn-label-save"> ',y=a.if.call(t,t&&t.add,{hash:{},inverse:I.program(20,g,s),fn:I.program(18,m,s),data:s}),(y||0===y)&&(b+=y),b+=" </span> </span> </button> </div> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){
function o(e,t){var a="";return a+=' <div class="match-location"> '+p(i(n(1)).call(e,"Location",{hash:{},data:t}))+": "+p(i(n(819)).call(e,e&&e.location,60,12,{hash:{},data:t}))+" </div> "}function l(e,t){var a="";return a+=' <ul class="list modal-list"> <li class="modal-list-item"><a class="search-options-btn" href="#">'+p(i(n(1)).call(e,"Search Options",{hash:{},data:t}))+'</a></li> <li class="auto-match-dropdown-region modal-list-item"></li> </ul> '}function u(e,t){var a=""
;return a+=' <button type="submit" class="search-btn btn btn-primary btn-loading"> <div class="loading loading-sm"></div> <span class="btn-label">'+p(i(n(1)).call(e,"Search",{hash:{},data:t}))+"</span> </button> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var c,d="",p=this.escapeExpression,h=this
;return d+='<div class="modal-dialog"> <div class="modal-content"> <form id="fix-incorrect-match-form"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon nameplate"></i> <span class="modal-title-text"></span></h4> ',c=a.if.call(t,t&&t.location,{hash:{},inverse:h.noop,fn:h.program(1,o,s),data:s}),(c||0===c)&&(d+=c),
d+=' </div> <div class="modal-body modal-body-scroll dark-scrollbar"> ',c=a.if.call(t,t&&t.showNavigation,{hash:{},inverse:h.noop,fn:h.program(3,l,s),data:s}),(c||0===c)&&(d+=c),d+=' <div class="pane-region"></div> </div> <div class="modal-footer"> <div class="match-search-actions"> <button type="button" class="cancel-btn btn btn-default">'+p(i(n(1)).call(t,"Cancel",{hash:{},data:s}))+"</button> ",c=a.if.call(t,t&&t.showNavigation,{hash:{},inverse:h.noop,fn:h.program(5,u,s),data:s}),
(c||0===c)&&(d+=c),d+=" </div> </div> </form> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a="";return a+=" "+d(i(n(1)).call(e,"Insecure connections will only be allowed when you're on the same network as the server.",{hash:{},data:t}))+" "}function l(e,t){var a="";return a+=" "+d(i(n(1)).call(e,"Insecure connections will be allowed to any server.",{hash:{},data:t}))+" "
}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var u,c="",d=this.escapeExpression,p=this;return c+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon circle-exclamation-mark"></i> '+d(i(n(1)).call(t,"Server Unreachable",{hash:{},data:s}))+' </h4> </div> <div class="modal-body"> <p> ',
u=a.if.call(t,t&&t.publicAddressMatches,{hash:{},inverse:p.program(3,l,s),fn:p.program(1,o,s),data:s}),(u||0===u)&&(c+=u),c+=" </p> <p>"+d(i(n(1)).call(t,"The Allow Fallback to Insecure Connections setting can be changed in Web Settings. Would you like to allow insecure connections?",{hash:{},data:s}))+'</p> </div> <div class="modal-footer"> <button type="button" class="cancel-btn btn btn-lg btn-default" data-dismiss="modal">'+d(i(n(1)).call(t,"No",{hash:{},data:s
}))+'</button> <button type="button" class="confirm-btn btn btn-lg btn-danger">'+d(i(n(1)).call(t,"Yes",{hash:{},data:s}))+"</button> </div> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var n,i="";return i+=' <h5 class="keyboard-shortcuts-header">'+m((n=e&&e.label,typeof n===v?n.apply(e):n))+'</h5> <ul class="list keyboard-shortcuts-list"> ',n=a.each.call(e,e&&e.shortcuts,{
hash:{},inverse:g.noop,fn:g.program(2,l,t),data:t}),(n||0===n)&&(i+=n),i+=" </ul> "}function l(e,t){var r,s="";return s+=' <li> <span class="keyboard-shortcuts-keys"> ',r=a.each.call(e,e&&e.keys,{hash:{},inverse:g.noop,fn:g.program(3,u,t),data:t}),(r||0===r)&&(s+=r),s+=' </span> <span class="keyboard-shortcuts-label text-muted">'+m(i(n(1)).call(e,e&&e.label,{hash:{},data:t}))+"</span> </li> "}function u(e,t){var n,i="";return i+=" ",n=a.if.call(e,e&&e.plain,{hash:{},inverse:g.noop,
fn:g.program(4,c,t),data:t}),(n||0===n)&&(i+=n),i+=" ",n=a.unless.call(e,e&&e.plain,{hash:{},inverse:g.noop,fn:g.program(6,d,t),data:t}),(n||0===n)&&(i+=n),i+=" ",n=a.if.call(e,e&&e.split,{hash:{},inverse:g.noop,fn:g.program(8,p,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function c(e,t){var n,i="";return i+=' <span class="keyboard-shortcuts-keys-plain">'+m((n=e&&e.s,typeof n===v?n.apply(e):n))+"</span> "}function d(e,t){var n,i="";return i+=' <span class="keyboard-shortcuts-keys-key">'+m((n=e&&e.s,
typeof n===v?n.apply(e):n))+"</span> "}function p(e,t){return" <br> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var h,f="",v="function",m=this.escapeExpression,g=this
;return f+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"> <i class="modal-icon glyphicon keyboard-wireless"></i> '+m(i(n(1)).call(t,"Keyboard Shortcuts",{hash:{},data:s}))+' </h4> </div> <div class="modal-body modal-body-scroll dark-scrollbar"> ',h=a.each.call(t,t&&t.groups,{hash:{},inverse:g.noop,fn:g.program(1,o,s),data:s}),
(h||0===h)&&(f+=h),f+=" </div> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a="";return a+=" "+g(i(n(1)).call(e,"Internet Required",{hash:{},data:t}))+" "}function l(e,t){var a="";return a+=" "+g(i(n(1)).call(e,"Plex Pass Required",{hash:{},data:t}))+" "}function u(e,t){var a=""
;return a+=" "+g(i(n(1)).call(e,"This server cannot reach the Internet. Please verify connectivity and try again.",{hash:{},data:t}))+" "}function c(e,t){var a="";return a+=" "+g(i(n(1)).call(e,"This library requires your server be signed in to a Plex Pass account.",{hash:{},data:t}))+" "}function d(e,t){var a="";return a+=' <button type="button" class="confirm-btn btn btn-lg btn-primary">'+g(i(n(1)).call(e,"OK",{hash:{},data:t}))+"</button> "}function p(e,t){var n,i=""
;return i+=' <a class="confirm-btn btn btn-lg btn-primary" href="#!/settings/server/'+g((n=e&&e.serverID,typeof n===y?n.apply(e):n))+'"> ',n=a.if.call(e,e&&e.isSignedIn,{hash:{},inverse:b.program(14,f,t),fn:b.program(12,h,t),data:t}),(n||0===n)&&(i+=n),i+=" </a> "}function h(e,t){var a="";return a+=" "+g(i(n(1)).call(e,"Settings",{hash:{},data:t}))+" "}function f(e,t){var a="";return a+=" "+g(i(n(1)).call(e,"Sign In",{hash:{},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),s=s||{};var v,m="",g=this.escapeExpression,y="function",b=this;return m+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"> <i class="modal-icon glyphicon circle-exclamation-mark"></i> ',v=a.if.call(t,t&&t.hasPlexPass,{hash:{},inverse:b.program(3,l,s),fn:b.program(1,o,s),data:s}),(v||0===v)&&(m+=v),
m+=' </h4> </div> <div class="modal-body"> <p class="confirm-message"> ',v=a.if.call(t,t&&t.hasPlexPass,{hash:{},inverse:b.program(7,c,s),fn:b.program(5,u,s),data:s}),(v||0===v)&&(m+=v),m+=' </p> </div> <div class="modal-footer"> <button type="button" class="cancel-btn btn btn-lg btn-default" data-dismiss="modal">'+g(i(n(1)).call(t,"Ignore",{hash:{},data:s}))+"</button> ",v=a.if.call(t,t&&t.hasPlexPass,{hash:{},inverse:b.program(11,p,s),fn:b.program(9,d,s),data:s}),(v||0===v)&&(m+=v),
m+=" </div> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return"hide-streams-column"}function l(e,t){var r,s="";return s+=' <div class="files"> <h4>'+k(i(n(1)).call(e,"Files",{hash:{},data:t}))+"</h4> ",r=a.each.call(e,e&&e.media,{hash:{},inverse:O.noop,fn:O.programWithDepth(4,u,t,e),data:t}),(r||0===r)&&(s+=r),s+=" </div> "}function u(e,t,n){var i,r=""
;return r+=' <ul class="media-info-file-list well"> ',i=a.if.call(e,n&&n.showDeleteFile,{hash:{},inverse:O.noop,fn:O.program(5,c,t),data:t}),(i||0===i)&&(r+=i),r+=" ",i=a.each.call(e,e&&e.Part,{hash:{},inverse:O.noop,fn:O.programWithDepth(10,h,t,n),data:t}),(i||0===i)&&(r+=i),r+=" </ul> "}function c(e,t){var a,r="";return r+=' <a href="#" data-media-item="'+k((a=null==t||t===!1?t:t.index,typeof a===_?a.apply(e):a))+'" class="delete-btn text-danger pull-right"> <i class="glyphicon bin"></i> ',
a=i(n(24)).call(e,(a=e&&e.Part,null==a||a===!1?a:a.length),"1",{hash:{},inverse:O.program(8,p,t),fn:O.program(6,d,t),data:t}),(a||0===a)&&(r+=a),r+=" </a> "}function d(e,t){var a="";return a+=" "+k(i(n(1)).call(e,"Delete File",{hash:{},data:t}))+" "}function p(e,t){var a="";return a+=" "+k(i(n(1)).call(e,"Delete Files",{hash:{},data:t}))+" "}function h(e,t,n){var i,r="";return r+=" <li> ",i=a.if.call(e,n&&n.showFilepath,{hash:{},inverse:O.program(13,v,t),fn:O.program(11,f,t),data:t}),
(i||0===i)&&(r+=i),r+=" ",i=a.unless.call(e,e&&e.accessible,{hash:{},inverse:O.noop,fn:O.program(15,m,t),data:t}),(i||0===i)&&(r+=i),r+=" </li> "}function f(e,t){var n,i="";return i+=" "+k((n=e&&e.file,typeof n===_?n.apply(e):n))+" "}function v(e,t){var a="";return a+=" "+k(i(n(1413)).call(e,e&&e.file,{hash:{},data:t}))+" "}function m(e,t){var n,i="";return i+=" ",n=a.if.call(e,e&&e.exists,{hash:{},inverse:O.program(18,y,t),fn:O.program(16,g,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function g(e,t){
var a="";return a+=' <span class="label label-danger" data-toggle="tooltip" title="'+k(i(n(1)).call(e,"Please check the permissions for this file.",{hash:{},data:t}))+'">'+k(i(n(1)).call(e,"Inaccessible",{hash:{},data:t}))+"</span> "}function y(e,t){var a="";return a+=' <span class="label label-danger" data-toggle="tooltip" title="'+k(i(n(1)).call(e,"Please check that this file exists and the necessary drive is mounted.",{hash:{},data:t}))+'">'+k(i(n(1)).call(e,"Unavailable",{hash:{},data:t
}))+"</span> "}function b(e,t,r){var s,o="";return o+=' <div class="media"> <div class="props"> <h4>'+k(i(n(1)).call(e,"Media",{hash:{},data:t}))+"</h4> <ul> ",s=a.each.call(e,e&&e.properties,{hash:{},inverse:O.noop,fn:O.program(21,S,t),data:t}),(s||0===s)&&(o+=s),o+=" </ul> </div> ",s=a.each.call(e,e&&e.Part,{hash:{},inverse:O.noop,fn:O.programWithDepth(23,I,t,r),data:t}),(s||0===s)&&(o+=s),o+=" </div> "}function S(e,t){var a,r=""
;return r+=' <li> <span class="detail-label">'+k(i(n(1)).call(e,e&&e.name,{hash:{},data:t}))+'</span> <span class="detail">'+k((a=e&&e.value,typeof a===_?a.apply(e):a))+"</span> </li> "}function I(e,t,r){var s,o="";return o+=' <div class="part"> <div class="props"> <h4>'+k(i(n(1)).call(e,"Part",{hash:{},data:t}))+"</h4> <ul> ",s=a.each.call(e,e&&e.properties,{hash:{},inverse:O.noop,fn:O.program(21,S,t),data:t}),(s||0===s)&&(o+=s),o+=' </ul> </div> <div class="streams"> ',
s=a.each.call(e,e&&e.Stream,{hash:{},inverse:O.noop,fn:O.program(24,M,t),data:t}),(s||0===s)&&(o+=s),o+=" ",s=a.if.call(e,r&&r.loading,{hash:{},inverse:O.noop,fn:O.program(33,x,t),data:t}),(s||0===s)&&(o+=s),o+=" </div> </div> "}function M(e,t){var r,s="";return s+=' <div class="props"> ',r=i(n(24)).call(e,e&&e.streamType,"1",{hash:{},inverse:O.program(27,w,t),fn:O.program(25,C,t),data:t}),(r||0===r)&&(s+=r),s+=" <ul> ",r=a.each.call(e,e&&e.properties,{hash:{},inverse:O.noop,
fn:O.program(21,S,t),data:t}),(r||0===r)&&(s+=r),s+=" </ul> </div> "}function C(e,t){var a="";return a+=" <h4>"+k(i(n(1)).call(e,"Video",{hash:{},data:t}))+"</h4> "}function w(e,t){var a;return a=i(n(24)).call(e,e&&e.streamType,"2",{hash:{},inverse:O.program(30,P,t),fn:O.program(28,D,t),data:t}),a||0===a?a:""}function D(e,t){var a="";return a+=" <h4>"+k(i(n(1)).call(e,"Audio",{hash:{},data:t}))+"</h4> "}function P(e,t){var a;return a=i(n(24)).call(e,e&&e.streamType,"3",{hash:{},inverse:O.noop,
fn:O.program(31,T,t),data:t}),a||0===a?a:""}function T(e,t){var a="";return a+=" <h4>"+k(i(n(1)).call(e,"Subtitles",{hash:{},data:t}))+"</h4> "}function x(e,t){var a="";return a+=' <div class="props"> <h4>'+k(i(n(1)).call(e,"Loading",{hash:{},data:t}))+"...</h4> </div> "}function E(e,t,n){var i;return i=a.if.call(e,n&&n.showFilepath,{hash:{},inverse:O.noop,fn:O.program(36,N,t),data:t}),i||0===i?i:""}function N(e,t){var a,r=""
;return r+=' <div class="modal-footer"> <div class="pull-left"> <a href="'+k((a=e&&e.url,typeof a===_?a.apply(e):a))+'" target="_blank">'+k(i(n(1)).call(e,"View XML",{hash:{},data:t}))+"</a> </div> </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var L,A="",k=this.escapeExpression,_="function",O=this
;return A+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon circle-info"></i> '+k(i(n(1)).call(t,"Media Info",{hash:{},data:s}))+'</h4> </div> <div class="modal-body modal-body-scroll dark-scrollbar"> <div class="position-ref ',L=a.unless.call(t,t&&t.hasStreams,{hash:{},inverse:O.noop,fn:O.program(1,o,s),
data:s}),(L||0===L)&&(A+=L),A+='"> ',L=a.if.call(t,t&&t.hasFiles,{hash:{},inverse:O.noop,fn:O.program(3,l,s),data:s}),(L||0===L)&&(A+=L),A+=" ",L=a.each.call(t,t&&t.media,{hash:{},inverse:O.noop,fn:O.programWithDepth(20,b,s,t),data:s}),(L||0===L)&&(A+=L),A+=" </div> </div> ",L=a.if.call(t,t&&t.key,{hash:{},inverse:O.noop,fn:O.programWithDepth(35,E,s,t),data:s}),(L||0===L)&&(A+=L),A+=" </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12)
;e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a="";return a+=' <p class="text-muted">'+d(i(n(1)).call(e,"Everything you need to experience the best of Plex. Your subscription gives you premium features and exclusive access to new ones.",{hash:{},data:t}))+"</p> "}function l(e,t){var a=""
;return a+=' <p class="text-muted">'+d(i(n(1)).call(e,'The server "{1}" has not been claimed. This server must be claimed by an account with a Plex Pass subscription.',e&&e.friendlyName,{hash:{},data:t}))+"</p> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var u,c="",d=this.escapeExpression,p=this
;return c+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"> <i class="modal-icon glyphicon circle-arrow-right"></i> '+d(i(n(1)).call(t,"Go Premium",{hash:{},data:s
}))+' </h4> </div> <div class="modal-body"> <p class="text-center"><i class="plex-image plex-pass"></i></p> <h4 class="text-center">'+d(i(n(1)).call(t,"This feature requires a Plex Pass subscription.",{hash:{},data:s}))+"</h4> ",u=a.if.call(t,t&&t.isClaimed,{hash:{},inverse:p.program(3,l,s),fn:p.program(1,o,s),data:s}),(u||0===u)&&(c+=u),c+=' <p class="text-center"> <a class="btn btn-sm btn-primary" href="'+d((u=t&&t.plexPassUrl,
"function"==typeof u?u.apply(t):u))+'" target="_blank">'+d(i(n(1)).call(t,"Learn More",{hash:{},data:s}))+"</a> </p> </div> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a="";return a+=' <div class="friends-container"></div> <div class="message-container invisible"> <textarea class="message form-control" placeholder="'+d(i(n(1)).call(e,"Say something about this...",{
hash:{},data:t}))+'"></textarea> </div> '}function l(e,t){var a="";return a+=' <div class="empty-message"> '+d(i(n(1)).call(e,"You need {1}friends{2} to recommend media.",'<a class="friends-btn" href="#!/friends">',"</a>",{hash:{},data:t}))+" </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var u,c="",d=this.escapeExpression,p=this
;return c+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon share-alt"></i> '+d(i(n(1)).call(t,"Select Friends",{hash:{},data:s}))+'</h4> </div> <div class="modal-body modal-body-scroll dark-scrollbar"> ',u=a.if.call(t,t&&t.hasFriends,{hash:{},inverse:p.program(3,l,s),fn:p.program(1,o,s),data:s}),
(u||0===u)&&(c+=u),c+=' </div> <div class="modal-footer"> <span class="characters-remaining"></span> <button type="button" class="send-btn btn btn-primary btn-loading disabled"> <div class="loading loading-sm"></div> <span class="btn-label">'+d(i(n(1)).call(t,"Send",{hash:{},data:s}))+"</span> </button> </div> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),s=s||{};var o,l="",u=this.escapeExpression;return l+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"> <i class="modal-icon glyphicon circle-exclamation-mark"></i> '+u(i(n(1)).call(t,"Limited Connection",{hash:{},data:s}))+" - "+u((o=t&&t.serverName,
"function"==typeof o?o.apply(t):o))+' </h4> </div> <div class="modal-body"> <p> '+u(i(n(1)).call(t,"You are not connected directly to {1} so streaming quality may be limited. You may be able to connect directly to this server by changing your home network settings. {2}Learn more{3}",t&&t.serverName,'<a href="https://help.plex.tv/relay" target="_blank" class="learn-more">',"</a>",{hash:{},data:s
}))+' </p> </div> <div class="modal-footer"> <button type="button" class="confirm-btn btn btn-lg btn-primary">'+u(i(n(1)).call(t,"OK",{hash:{},data:s}))+"</button> </div> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t,r){var s,o="";return o+=' <h4 class="update-list-title">'+h(i(n(1)).call(e,"New",{hash:{},data:t}))+"</h4> <ul> ",s=a.each.call(e,r&&r.added,{hash:{},
inverse:f.noop,fn:f.program(2,l,t),data:t}),(s||0===s)&&(o+=s),o+=" </ul> "}function l(e,t){var n="";return n+=" <li>"+h(typeof e===p?e.apply(e):e)+"</li> "}function u(e,t,r){var s,o="";return o+=' <h4 class="update-list-title">'+h(i(n(1)).call(e,"Fixes",{hash:{},data:t}))+"</h4> <ul> ",s=a.each.call(e,r&&r.fixed,{hash:{},inverse:f.noop,fn:f.program(2,l,t),data:t}),(s||0===s)&&(o+=s),o+=" </ul> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{}
;var c,d="",p="function",h=this.escapeExpression,f=this;return d+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon circle-info"></i> '+h(i(n(1)).call(t,"Plex Media Server Release Notes",{hash:{},data:s
}))+'</h4> </div> <div class="modal-body modal-body-scroll dark-scrollbar"> <span class="text-muted">'+h(i(n(1)).call(t,"Version {1}",t&&t.version,{hash:{},data:s}))+"</span> ",c=a.if.call(t,t&&t.added,{hash:{},inverse:f.noop,fn:f.programWithDepth(1,o,s,t),data:s}),(c||0===c)&&(d+=c),d+=" ",c=a.if.call(t,t&&t.fixed,{hash:{},inverse:f.noop,fn:f.programWithDepth(4,u,s,t),data:s}),(c||0===c)&&(d+=c),d+=" </div> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}
var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var n,i="";return i+=' <li class="striped-list-item select-list-item"> <a class="media" data-value="'+h((n=e&&e.id,typeof n===f?n.apply(e):n))+'" href="#"> ',n=a.if.call(e,e&&e.name,{hash:{},inverse:v.program(4,u,t),fn:v.program(2,l,t),data:t}),(n||0===n)&&(i+=n),i+=" ",n=a.if.call(e,e&&e.isCloudSync,{hash:{},inverse:v.noop,fn:v.program(6,c,t),data:t}),(n||0===n)&&(i+=n),i+=" </a> </li> "}function l(e,t){var a=""
;return a+=" "+h(i(n(550)).call(e,e&&e.name,25,{hash:{},data:t}))+" "}function u(e,t){var a="";return a+=" "+h(i(n(550)).call(e,e&&e.device,25,{hash:{},data:t}))+" "}function c(e,t){return'<i class="cloud-sync-icon glyphicon cloud"></i>'}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var d,p="",h=this.escapeExpression,f="function",v=this
;return p+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon iphone"></i> '+h(i(n(1)).call(t,"Choose Destination",{hash:{},data:s}))+'</h4> </div> <div class="modal-body modal-body-scroll dark-scrollbar"> <ul class="list select-list"> ',d=a.each.call(t,t&&t.devices,{hash:{},inverse:v.noop,fn:v.program(1,o,s),
data:s}),(d||0===d)&&(p+=d),p+=" </ul> </div> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a,r="";return r+=' <li class="striped-list-item select-list-item"> <a class="media" data-value="'+d((a=null==t||t===!1?t:t.index,typeof a===c?a.apply(e):a))+'" href="#"> ',a=i(n(1412)).call(e,(a=e&&e.Part,a=null==a||a===!1?a:a[0],null==a||a===!1?a:a.file),35,{hash:{},data:t}),
(a||0===a)&&(r+=a),r+=" </a> </li> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var l,u="",c="function",d=this.escapeExpression,p=this;return u+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon file"></i> '+d(i(n(1)).call(t,"Select a File",{hash:{},data:s
}))+'</h4> </div> <div class="modal-body modal-body-scroll dark-scrollbar"> <ul class="list select-list"> ',l=a.each.call(t,t&&t.medias,{hash:{},inverse:p.noop,fn:p.program(1,o,s),data:s}),(l||0===l)&&(u+=l),u+=" </ul> </div> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a,r="";return r+=' <li><a class="btn-gray show-pane-btn type-btn',
a=i(n(24)).call(e,e&&e.selectedPane,e&&e.id,{hash:{},inverse:d.noop,fn:d.program(2,l,t),data:t}),(a||0===a)&&(r+=a),r+='" href="#" data-pane="'+h((a=e&&e.id,typeof a===p?a.apply(e):a))+'">'+h((a=e&&e.name,typeof a===p?a.apply(e):a))+"</a></li> "}function l(e,t){return" selected"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var u,c="",d=this,p="function",h=this.escapeExpression
;return c+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"> <i class="modal-icon plex-icon-plex-chevron"></i> '+h(i(n(1)).call(t,"Plex Media Server Downloads",{hash:{},data:s}))+' </h4> </div> <div class="modal-body modal-body-scroll modal-body-with-panes"> <div class="modal-nav-pane dark-scrollbar"> <ul class="list modal-nav-list"> ',
u=a.each.call(t,t&&t.items,{hash:{},inverse:d.noop,fn:d.program(1,o,s),data:s}),(u||0===u)&&(c+=u),c+=' </ul> </div> <div class="modal-body-pane pane-region dark-scrollbar"> </div> </div> <div class="server-download-loading loading loading-inline"></div> </div> </div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var r,s=""
;return s+=' <ul class="list select-list select-networks-list dark-scrollbar"> ',r=a.each.call(e,e&&e.networks,{hash:{},inverse:y.noop,fn:y.programWithDepth(2,l,t,e),data:t}),(r||0===r)&&(s+=r),s+=' </ul> <div class="message-container ',r=a.unless.call(e,e&&e.autoSelect,{hash:{},inverse:y.noop,fn:y.program(10,h,t),data:t}),(r||0===r)&&(s+=r),s+='"> <textarea class="message form-control" placeholder="'+S(i(n(1)).call(e,"Say something about this...",{hash:{},data:t}))+'"></textarea> </div> '}
function l(e,t,r){var s,o="";return o+=' <li class="striped-list-item select-list-item"> <a class="network ',s=a.if.call(e,r&&r.autoSelect,{hash:{},inverse:y.noop,fn:y.program(3,u,t),data:t}),(s||0===s)&&(o+=s),o+='" data-id="'+S((s=e&&e.key,typeof s===b?s.apply(e):s))+'" href="#"> ',s=i(n(24)).call(e,e&&e.key,"facebook",{hash:{},inverse:y.program(7,d,t),fn:y.program(5,c,t),data:t}),(s||0===s)&&(o+=s),o+=" "+S((s=e&&e.title,typeof s===b?s.apply(e):s))+" </a> </li> "}function u(e,t){
return"selected"}function c(e,t){return' <i class="network-icon glyphicon glyphicon-social facebook"></i> '}function d(e,t){var a,r="";return r+=" ",a=i(n(24)).call(e,e&&e.key,"twitter",{hash:{},inverse:y.noop,fn:y.program(8,p,t),data:t}),(a||0===a)&&(r+=a),r+=" "}function p(e,t){return' <i class="network-icon glyphicon glyphicon-social twitter"></i> '}function h(e,t){return"invisible"}function f(e,t){var a=""
;return a+=' <div class="empty-message"> '+S(i(n(1)).call(e,"You need to {1}link your account{2}.",'<a href="{3}" target="_blank">',"</a>",e&&e.accountUrl,{hash:{},data:t}))+" </div> "}function v(e,t){return"disabled"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var m,g="",y=this,b="function",S=this.escapeExpression
;return g+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon share"></i> '+S(i(n(1)).call(t,"Share",{hash:{},data:s}))+'</h4> </div> <div class="modal-body modal-body-scroll dark-scrollbar"> ',m=a.if.call(t,t&&t.networks,{hash:{},inverse:y.program(12,f,s),fn:y.program(1,o,s),data:s}),(m||0===m)&&(g+=m),
g+=' </div> <div class="modal-footer"> <span class="characters-remaining"></span> <button type="button" class="share-btn btn btn-primary btn-loading ',m=a.unless.call(t,t&&t.autoSelect,{hash:{},inverse:y.noop,fn:y.program(14,v,s),data:s}),(m||0===m)&&(g+=m),g+='"> <div class="loading loading-sm"></div> <span class="btn-label">'+S(i(n(1)).call(t,"Share",{hash:{},data:s}))+"</span> </button> </div> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12)
;e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o="",l=this.escapeExpression;return o+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon circle-exclamation-mark"></i> '+l(i(n(1)).call(t,"Stop this item",{hash:{},data:s
}))+'</h4> </div> <div class="modal-body"> <p class="confirm-message"> '+l(i(n(1)).call(t,"Do you wish to stop this item's playback?",{hash:{},data:s}))+"<br/> "+l(i(n(1)).call(t,"You can add a message to the user below.",{hash:{},data:s}))+' </p> <div class="message-container"> <textarea class="message form-control"></textarea> </div> </div> <div class="modal-footer"> <button type="button" class="cancel-btn btn btn-lg btn-default" data-dismiss="modal">'+l(i(n(1)).call(t,"Cancel",{hash:{},data:s
}))+'</button> <button type="button" class="stop-media-btn btn btn-lg btn-primary btn-loading"> <div class="loading loading-sm"></div> <span class="btn-label">'+l(i(n(1)).call(t,"Stop",{hash:{},data:s}))+"</span> </button> </div> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var n,i=""
;return i+=' <p class="text-muted"><i class="glyphicon warning-sign"></i> '+d((n=e&&e.Status,n=null==n||n===!1?n:n.failure,typeof n===c?n.apply(e):n))+"</p> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var l,u="",c="function",d=this.escapeExpression,p=this
;return u+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon download"></i> '+d(i(n(1)).call(t,"Sync Status",{hash:{},data:s}))+'</h4> </div> <div class="modal-body modal-body-scroll dark-scrollbar"> <h4 class="sync-item-title">'+d((l=t&&t.rootTitle,typeof l===c?l.apply(t):l))+" &middot; "+d((l=t&&t.title,
typeof l===c?l.apply(t):l))+"</h4> ",l=a.if.call(t,(l=t&&t.Status,null==l||l===!1?l:l.failure),{hash:{},inverse:p.noop,fn:p.program(1,o,s),data:s}),(l||0===l)&&(u+=l),u+=' <div class="sync-status-list-container"></div> </div> </div> </div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var n,i="";return i+=" "+p((n=e&&e.status,typeof n===d?n.apply(e):n))+" "}function l(e,t){var a=""
;return a+=" "+p(i(n(1)).call(e,"There was a problem preparing for optimization.",{hash:{},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var u,c="",d="function",p=this.escapeExpression,h=this;return c+='<div class="convert-message-container row"> <div class="col-sm-3 text-center"> <p class="convert-error-icon"><i class="glyphicon circle-exclamation-mark"></i></p> </div> <div class="col-sm-8"> <h4> ',u=a.if.call(t,t&&t.status,{hash:{},inverse:h.program(3,l,s),
fn:h.program(1,o,s),data:s}),(u||0===u)&&(c+=u),c+=' </h4> <h4><a class="try-again-link" href="#">'+p(i(n(1)).call(t,"Try again",{hash:{},data:s}))+"</a></h4> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return"disabled"}function l(e,t){return"selected"}function u(e,t,a){var r,s="";return s+=' <option value="'+h((r=e&&e.id,typeof r===p?r.apply(e):r))+'" ',
r=i(n(24)).call(e,a&&a.selectedLocationID,e&&e.id,{hash:{},inverse:f.noop,fn:f.program(3,l,t),data:t}),(r||0===r)&&(s+=r),s+=">"+h(i(n(819)).call(e,e&&e.path,50,20,{hash:{},data:t}))+"</option> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var c,d="",p="function",h=this.escapeExpression,f=this;return d+='<label class="control-label" for="convert-storage-location">'+h(i(n(1)).call(t,"Version storage location",{hash:{},data:s
}))+'</label> <select id="convert-storage-location" class="storage-location-select" name="storageLocation" ',c=a.if.call(t,t&&t.disableLocation,{hash:{},inverse:f.noop,fn:f.program(1,o,s),data:s}),(c||0===c)&&(d+=c),d+='> <option value="-1" ',c=i(n(24)).call(t,t&&t.selectedLocationID,-1,{hash:{},inverse:f.noop,fn:f.program(3,l,s),data:s}),(c||0===c)&&(d+=c),d+=">"+h(i(n(1)).call(t,"In folders with original items",{hash:{},data:s}))+"</option> ",c=a.each.call(t,t&&t.locations,{hash:{},
inverse:f.noop,fn:f.programWithDepth(5,u,s,t),data:s}),(c||0===c)&&(d+=c),d+=' </select> <p class="help-block">'+h(i(n(1)).call(t,'A "Plex Versions" folder will be created in your chosen location.',{hash:{},data:s}))+"</p> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return"hidden"}function l(e,t){return"checked"}function u(e,t){var n,i="";return i+='value="'+g((n=e&&e.policy,
n=null==n||n===!1?n:n.value,typeof n===m?n.apply(e):n))+'"'}function c(e,t){var n,i="";return i+=" ",n=a.if.call(e,e&&e.isCloudSync,{hash:{},inverse:y.program(10,p,t),fn:y.program(8,d,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function d(e,t){var a=""
;return a+=" "+g(i(n(1)).call(e,"A large number of sync items may be time-consuming to convert, and the time to upload is dependent on your bandwidth. A large number of high quality items may take a very long time. If you have trouble, try reducing the number of items or your quality setting.",{hash:{},data:t}))+" "}function p(e,t){var a=""
;return a+=" "+g(i(n(1)).call(e,"A large number of sync items may be time-consuming to convert and transfer to your device. If you have trouble, try reducing the number of items.",{hash:{},data:t}))+" "}function h(e,t){var a="";return a+=" "+g(i(n(1)).call(e,"A large number of items may be time-consuming to convert. If you have trouble, try reducing the number of items.",{hash:{},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{}
;var f,v="",m="function",g=this.escapeExpression,y=this;return v+='<div class="form-group ',f=a.unless.call(t,t&&t.showUnwatched,{hash:{},inverse:y.noop,fn:y.program(1,o,s),data:s}),(f||0===f)&&(v+=f),v+='"> <label class="control-label"> <input type="checkbox" id="convert-policy-unwatched" name="policyUnwatched" ',f=a.if.call(t,(f=t&&t.policy,null==f||f===!1?f:f.unwatched),{hash:{},inverse:y.noop,fn:y.program(3,l,s),data:s}),(f||0===f)&&(v+=f),v+="> "+g(i(n(1)).call(t,"Unwatched only",{hash:{},
data:s}))+' </label> </div> <div class="form-group ',f=a.unless.call(t,t&&t.isDirectory,{hash:{},inverse:y.noop,fn:y.program(1,o,s),data:s}),(f||0===f)&&(v+=f),v+='"> <label class="control-label"> <input type="checkbox" id="convert-policy-scope" name="policyScope" value="count" ',f=i(n(24)).call(t,(f=t&&t.policy,null==f||f===!1?f:f.scope),"count",{hash:{},inverse:y.noop,fn:y.program(3,l,s),data:s}),(f||0===f)&&(v+=f),v+="> "+g(i(n(1)).call(t,"Limit to",{hash:{},data:s
}))+' <input type="number" id="convert-policy-value" name="policyValue" class="policy-value-control form-control" ',f=a.if.call(t,(f=t&&t.policy,null==f||f===!1?f:f.value),{hash:{},inverse:y.noop,fn:y.program(5,u,s),data:s}),(f||0===f)&&(v+=f),v+="> "+g(i(n(1)).call(t,"items",{hash:{},data:s}))+' </label> <p class="convert-warning help-block ',f=a.unless.call(t,t&&t.showLimitWarning,{hash:{},inverse:y.noop,fn:y.program(1,o,s),data:s}),(f||0===f)&&(v+=f),
v+='"> <i class="convert-warning-icon glyphicon circle-exclamation-mark"></i> <span class="convert-warning-text"> ',f=a.if.call(t,t&&t.isSync,{hash:{},inverse:y.program(12,h,s),fn:y.program(7,c,s),data:s}),(f||0===f)&&(v+=f),v+=" </span> </p> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return"disabled"}function l(e,t,r){var s,o="";return o+=' <option value="'+v((s=e&&e.id,
typeof s===m?s.apply(e):s))+'" ',s=i(n(24)).call(e,(s=r&&r.item,null==s||s===!1?s:s.targetTagID),e&&e.id,{hash:{},inverse:g.noop,fn:g.program(4,u,t),data:t}),(s||0===s)&&(o+=s),o+="> "+v((s=e&&e.tag,typeof s===m?s.apply(e):s)),s=a.if.call(e,(s=e&&e.mediaSettings,null==s||s===!1?s:s.videoResolution),{hash:{},inverse:g.noop,fn:g.program(6,c,t),data:t}),(s||0===s)&&(o+=s),o+=" </option> "}function u(e,t){return"selected"}function c(e,t){var a=""
;return a+=" - "+v(i(n(278)).call(e,e&&e.mediaSettings,{hash:{},data:t}))}function d(e,t,a){var r,s="";return s+=' <option value="'+v((r=e&&e.title,typeof r===m?r.apply(e):r))+'" ',r=i(n(24)).call(e,(r=a&&a.selectedProfile,null==r||r===!1?r:r.title),e&&e.title,{hash:{},inverse:g.noop,fn:g.program(4,u,t),data:t}),(r||0===r)&&(s+=r),s+="> "+v((r=e&&e.title,typeof r===m?r.apply(e):r))+" </option> "}function p(e,t,a){var r,s="";return s+=' <option value="'+v((r=e&&e.index,
typeof r===m?r.apply(e):r))+'" ',r=i(n(24)).call(e,(r=a&&a.selectedCustomQuality,null==r||r===!1?r:r.index),e&&e.index,{hash:{},inverse:g.noop,fn:g.program(4,u,t),data:t}),(r||0===r)&&(s+=r),s+="> "+v(i(n(278)).call(e,e,{hash:{},data:t}))+" </option> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var h,f="",v=this.escapeExpression,m="function",g=this;return f+='<select class="convert-target-select" name="target" ',h=a.if.call(t,t&&t.disableTarget,{hash:{},inverse:g.noop,
fn:g.program(1,o,s),data:s}),(h||0===h)&&(f+=h),f+="> ",h=a.each.call(t,t&&t.targets,{hash:{},inverse:g.noop,fn:g.programWithDepth(3,l,s,t),data:s}),(h||0===h)&&(f+=h),f+=' <option value="-1" ',h=a.unless.call(t,(h=t&&t.item,null==h||h===!1?h:h.targetTagID),{hash:{},inverse:g.noop,fn:g.program(4,u,s),data:s}),(h||0===h)&&(f+=h),f+=">"+v(i(n(1)).call(t,"Custom",{hash:{},data:s
}))+'</option> </select> <div class="convert-custom-target-container"> <input type="text" class="convert-target-title form-control" name="targetTitle" class="form-control" value="'+v((h=t&&t.item,h=null==h||h===!1?h:h.target,typeof h===m?h.apply(t):h))+'" placeholder="'+v(i(n(1)).call(t,"Quality Name",{hash:{},data:s}))+'"> <select class="convert-target-profile-select" name="targetProfile"> ',h=a.each.call(t,t&&t.profiles,{hash:{},inverse:g.noop,fn:g.programWithDepth(8,d,s,t),data:s}),
(h||0===h)&&(f+=h),f+=' </select> <select class="convert-target-quality-select" name="targetQuality"> ',h=a.each.call(t,t&&t.availableCustomQualities,{hash:{},inverse:g.noop,fn:g.programWithDepth(10,p,s,t),data:s}),(h||0===h)&&(f+=h),f+=' </select> </div> <p class="help-block">'+v(i(n(1)).call(t,"Plex will convert your media to this quality. Each version will be stored in a separate file.",{hash:{},data:s}))+"</p> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}
var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return"hidden"}function l(e,t){return p(i(n(1)).call(e,"Optimize",{hash:{},data:t}))}function u(e,t){return p(i(n(1)).call(e,"Save",{hash:{},data:t}))}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var c,d="",p=this.escapeExpression,h=this;return d+='<form id="convert-form" class="settings-container"> <div class="modal-body"> <div class="form-group ',c=a.unless.call(t,t&&t.showRemuxOnlyWarning,{
hash:{},inverse:h.noop,fn:h.program(1,o,s),data:s}),(c||0===c)&&(d+=c),d+='"> <p class="convert-warning help-block"> <i class="convert-warning-icon glyphicon circle-exclamation-mark"></i> <span class="convert-warning-text"> '+p(i(n(1)).call(t,"Video optimization may take a long time to complete on this server. You'll be able to use Plex normally while you wait.",{hash:{},data:s
}))+' </span> </p> </div> <div class="form-group"> <label class="control-label" for="convert-title">'+p(i(n(1)).call(t,"Title",{hash:{},data:s}))+'</label> <input type="text" id="convert-title" name="title" class="form-control" value="'+p((c=t&&t.conversionItem,c=null==c||c===!1?c:c.title,"function"==typeof c?c.apply(t):c))+'" placeholder="'+p((c=t&&t.conversionItem,c=null==c||c===!1?c:c.title,
"function"==typeof c?c.apply(t):c))+'"> </div> <div class="policy-region"></div> <div class="targets-region"></div> <div class="location-region"></div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">'+p(i(n(1)).call(t,"Cancel",{hash:{},data:s}))+'</button> <button type="submit" class="submit-btn btn btn-primary btn-loading"> <div class="loading loading-sm"></div> <span class="btn-label">',c=a.if.call(t,t&&t.isNew,{hash:{},
inverse:h.program(5,u,s),fn:h.program(3,l,s),data:s}),(c||0===c)&&(d+=c),d+="</span> </button> </div> </form> "})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},'<div class="loading loading-inline"></div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),s=s||{};var o="";return o+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon restart"></i> '+(0,this.escapeExpression)(i(n(1)).call(t,"Optimize",{hash:{},data:s}))+'</h4> </div> <div class="modal-body-region"></div> </div> </div> '})},function(e,t,n){function i(e){
return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o="",l=this.escapeExpression;return o+='<div class="convert-message-container row"> <div class="col-sm-3 text-center"> <p class="convert-success-icon"><i class="glyphicon ok-2"></i></p> </div> <div class="col-sm-8"> <h4>'+l(i(n(1)).call(t,"This media is being converted.",{hash:{},data:s
}))+"</h4> <h4>"+l(i(n(1)).call(t,"Watch the status of the conversion {1}here{2}.",'<a class="status-link" href="#">',"</a>",{hash:{},data:s}))+"</h4> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o="",l=this.escapeExpression
;return o+='<div class="convert-message-container row"> <div class="col-sm-3 text-center"> <p class="convert-error-icon"><i class="glyphicon circle-exclamation-mark"></i></p> </div> <div class="col-sm-8"> <h4>'+l(i(n(1)).call(t,"There was a problem syncing this media.",{hash:{},data:s}))+'</h4> <h4><a class="try-again-link" href="#">'+l(i(n(1)).call(t,"Try again",{hash:{},data:s}))+"</a></h4> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12)
;e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var n,i="";return i+=' <select class="sync-quality-select" name="videoQuality"> ',n=a.if.call(e,e&&e.supportsOriginalQuality,{hash:{},inverse:g.noop,fn:g.program(2,l,t),data:t}),(n||0===n)&&(i+=n),i+=" ",n=a.each.call(e,e&&e.availableVideoQualities,{hash:{},inverse:g.noop,fn:g.programWithDepth(5,c,t,e),data:t}),(n||0===n)&&(i+=n),i+=" </select> "}function l(e,t){var a,r="";return r+=' <option value="-1" ',
a=i(n(24)).call(e,(a=e&&e.selectedVideoQuality,null==a||a===!1?a:a.index),-1,{hash:{},inverse:g.noop,fn:g.program(3,u,t),data:t}),(a||0===a)&&(r+=a),r+="> "+y(i(n(1)).call(e,"Original",{hash:{},data:t}))+" </option> "}function u(e,t){return"selected"}function c(e,t,a){var r,s="";return s+=' <option value="'+y((r=e&&e.index,typeof r===b?r.apply(e):r))+'" ',r=i(n(24)).call(e,(r=a&&a.selectedVideoQuality,null==r||r===!1?r:r.index),e&&e.index,{hash:{},inverse:g.noop,fn:g.program(3,u,t),data:t}),
(r||0===r)&&(s+=r),s+="> "+y(i(n(278)).call(e,e,{hash:{},data:t}))+" </option> "}function d(e,t){var n,i="";return i+=' <select class="sync-quality-select" name="musicQuality"> ',n=a.each.call(e,e&&e.availableMusicQualities,{hash:{},inverse:g.noop,fn:g.programWithDepth(8,p,t,e),data:t}),(n||0===n)&&(i+=n),i+=" </select> "}function p(e,t,a){var r,s="";return s+=' <option value="'+y((r=e&&e.index,typeof r===b?r.apply(e):r))+'" ',r=i(n(24)).call(e,(r=a&&a.selectedMusicQuality,
null==r||r===!1?r:r.index),e&&e.index,{hash:{},inverse:g.noop,fn:g.program(3,u,t),data:t}),(r||0===r)&&(s+=r),s+="> "+y(i(n(278)).call(e,e,{hash:{},data:t}))+" </option> "}function h(e,t){var n,i="";return i+=' <select class="sync-quality-select" name="photoQuality"> ',n=a.each.call(e,e&&e.availablePhotoQualities,{hash:{},inverse:g.noop,fn:g.programWithDepth(11,f,t,e),data:t}),(n||0===n)&&(i+=n),i+=" </select> "}function f(e,t,a){var r,s="";return s+=' <option value="'+y((r=e&&e.index,
typeof r===b?r.apply(e):r))+'" ',r=i(n(24)).call(e,(r=a&&a.selectedPhotoQuality,null==r||r===!1?r:r.index),e&&e.index,{hash:{},inverse:g.noop,fn:g.program(3,u,t),data:t}),(r||0===r)&&(s+=r),s+="> "+y((r=e&&e.title,typeof r===b?r.apply(e):r))+" </option> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var v,m="",g=this,y=this.escapeExpression,b="function";return v=i(n(24)).call(t,t&&t.typeElement,"video",{hash:{},inverse:g.noop,fn:g.program(1,o,s),data:s}),(v||0===v)&&(m+=v),
m+=" ",v=i(n(24)).call(t,t&&t.typeElement,"audio",{hash:{},inverse:g.noop,fn:g.program(7,d,s),data:s}),(v||0===v)&&(m+=v),m+=" ",v=i(n(24)).call(t,t&&t.typeElement,"photo",{hash:{},inverse:g.noop,fn:g.program(10,h,s),data:s}),(v||0===v)&&(m+=v),m+=' <p class="help-block">'+y(i(n(1)).call(t,"Plex will convert your media to this quality and transfer the converted media to your device.",{hash:{},data:s}))+"</p> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12)
;e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return d(i(n(1)).call(e,"Sync",{hash:{},data:t}))}function l(e,t){return d(i(n(1)).call(e,"Save",{hash:{},data:t}))}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var u,c="",d=this.escapeExpression,p=this;return c+='<form id="sync-form" class="settings-container"> <div class="modal-body"> <div class="form-group"> <label class="control-label" for="sync-title">'+d(i(n(1)).call(t,"Title",{hash:{},data:s
}))+'</label> <input type="text" id="sync-title" name="title" class="form-control" value="'+d((u=t&&t.syncItem,u=null==u||u===!1?u:u.title,"function"==typeof u?u.apply(t):u))+'" placeholder="'+d((u=t&&t.syncItem,u=null==u||u===!1?u:u.title,"function"==typeof u?u.apply(t):u))+'"> </div> <div class="policy-region"></div> <div class="quality-region"></div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">'+d(i(n(1)).call(t,"Cancel",{hash:{},data:s
}))+'</button> <button type="submit" class="submit-btn btn btn-primary btn-loading"> <div class="loading loading-sm"></div> <span class="btn-label">',u=a.if.call(t,t&&t.isNew,{hash:{},inverse:p.program(3,l,s),fn:p.program(1,o,s),data:s}),(u||0===u)&&(c+=u),c+="</span> </button> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{}
;var o="";return o+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon download"></i> '+(0,this.escapeExpression)(i(n(1)).call(t,"Sync",{hash:{},data:s}))+'</h4> </div> <div class="modal-body-region"></div> </div> </div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12)
;e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o="",l=this.escapeExpression;return o+='<div class="convert-message-container row"> <div class="col-sm-3 text-center"> <p class="convert-success-icon"><i class="glyphicon ok-2"></i></p> </div> <div class="col-sm-8"> <h4>'+l(i(n(1)).call(t,"This media is being synced.",{hash:{},data:s
}))+"</h4> <h4>"+l(i(n(1)).call(t,"Watch the status of the sync {1}here{2}.",'<a class="status-link" href="#">',"</a>",{hash:{},data:s}))+"</h4> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o=""
;return o+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon restart"></i> <span class="generator-title"></span></h4> </div> <div class="modal-body modal-body-scroll dark-scrollbar"> <h4> <span class="generator-failure-container pull-right"> <i class="generator-failure-icon glyphicon circle-exclamation-mark text-danger"></i> <span class="generator-failure-message text-muted"></span> </span> <span class="generator-items-count"></span> &middot; <span class="generator-total-size"></span> </h4> <div class="list-region"></div> <div class="list-feedback-container"> <span class="loading hidden"></span> <span class="error-message text-muted hidden"> '+(0,
this.escapeExpression)(i(n(1)).call(t,"There was a problem loading these items.",{hash:{},data:s}))+" </span> </div> </div> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var n,i="";return i+=" "+y((n=e&&e.title,typeof n===g?n.apply(e):n))+" "}function l(e,t){var a,r="";return r+=" ",a=i(n(24)).call(e,e&&e.type,"home",{hash:{},inverse:b.program(6,c,t),fn:b.program(4,u,t),
data:t}),(a||0===a)&&(r+=a),r+=" "}function u(e,t){var a="";return a+=" "+y(i(n(1)).call(e,"Add User",{hash:{},data:t}))+" "}function c(e,t){var a="";return a+=" "+y(i(n(1)).call(e,"Invite Friend",{hash:{},data:t}))+" "}function d(e,t){var a="";return a+=" "+y(i(n(1)).call(e,"Save Changes",{hash:{},data:t}))+" "}function p(e,t){var a,r="";return r+=" ",a=i(n(24)).call(e,e&&e.type,"home",{hash:{},inverse:b.program(13,f,t),fn:b.program(11,h,t),data:t}),(a||0===a)&&(r+=a),r+=" "}function h(e,t){
var a="";return a+=" "+y(i(n(1)).call(e,"Add",{hash:{},data:t}))+" "}function f(e,t){var a="";return a+=" "+y(i(n(1)).call(e,"Invite",{hash:{},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var v,m="",g="function",y=this.escapeExpression,b=this
;return m+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <div class="modal-poster media-poster img-circle placeholder-friend"></div> <h4 class="modal-title"> ',v=a.if.call(t,t&&t.title,{hash:{},inverse:b.program(3,l,s),fn:b.program(1,o,s),data:s}),(v||0===v)&&(m+=v),
m+=' </h4> </div> <form id="share-server-form"> <div class="modal-body modal-body-scroll modal-body-with-panes"> <div class="modal-nav-pane dark-scrollbar"></div> <div class="modal-body-pane dark-scrollbar"></div> </div> <div class="modal-footer"> <span class="form-message"></span> <button type="button" class="cancel-btn btn btn-lg btn-default" data-dismiss="modal">'+y(i(n(1)).call(t,"Cancel",{hash:{},data:s
}))+'</button> <button type="submit" class="next-btn btn btn-lg btn-primary disabled">'+y(i(n(1)).call(t,"Next",{hash:{},data:s}))+'</button> <button type="submit" class="submit-btn btn btn-lg btn-primary btn-loading hidden"> <div class="loading loading-sm"></div> <span class="btn-label"> ',v=a.if.call(t,t&&t.title,{hash:{},inverse:b.program(10,p,s),fn:b.program(8,d,s),data:s}),(v||0===v)&&(m+=v),m+=" </span> </button> </div> </form> </div> </div> "})},function(e,t,n){function i(e){
return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a,r="";return r+=' <div class="restricted-name-group form-group"> <input type="text" id="restricted-title" name="title" class="form-control" placeholder="'+M(i(n(1)).call(e,"Name",{hash:{},data:t}))+'" value="'+M((a=e&&e.homeUser,a=null==a||a===!1?a:a.title,typeof a===C?a.apply(e):a))+'"> </div> '}function l(e,t){var n,i="";return i+=' <h3 class="friend-title"> ',
n=a.if.call(e,(n=e&&e.friend,null==n||n===!1?n:n.title),{hash:{},inverse:w.program(6,c,t),fn:w.program(4,u,t),data:t}),(n||0===n)&&(i+=n),i+=' </h3> <p class="text-muted"> ',n=a.if.call(e,(n=e&&e.friend,null==n||n===!1?n:n.email),{hash:{},inverse:w.program(10,p,t),fn:w.program(8,d,t),data:t}),(n||0===n)&&(i+=n),i+=" </p> "}function u(e,t){var n,i="";return i+=" "+M((n=e&&e.friend,n=null==n||n===!1?n:n.title,typeof n===C?n.apply(e):n))+" "}function c(e,t){var n,i=""
;return i+=" "+M((n=e&&e.friend,n=null==n||n===!1?n:n.username,typeof n===C?n.apply(e):n))+" "}function d(e,t){var n,i="";return i+=" "+M((n=e&&e.friend,n=null==n||n===!1?n:n.email,typeof n===C?n.apply(e):n))+" "}function p(e,t){var a="";return a+=" "+M(i(n(1)).call(e,"An invite will be sent to this user.",{hash:{},data:t}))+" "}function h(e,t){var n,i="";return i+=' <div class="edit-friend-footer"> ',n=a.if.call(e,(n=e&&e.homeUser,null==n||n===!1?n:n.restricted),{hash:{},
inverse:w.program(18,g,t),fn:w.program(13,f,t),data:t}),(n||0===n)&&(i+=n),i+=" </div> "}function f(e,t){var n,i="";return i+=" ",n=a.if.call(e,(n=e&&e.homeUser,null==n||n===!1?n:n.guest),{hash:{},inverse:w.program(16,m,t),fn:w.program(14,v,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function v(e,t){var a="";return a+=' <button type="button" class="disable-guest-btn btn btn-sm btn-danger">'+M(i(n(1)).call(e,"Disable guest",{hash:{},data:t}))+"</button> "}function m(e,t){var a=""
;return a+=' <button type="button" class="remove-home-btn btn btn-sm btn-danger">'+M(i(n(1)).call(e,"Delete user",{hash:{},data:t}))+"</button> "}function g(e,t){var n,i="";return i+=" ",n=a.if.call(e,e&&e.canRemoveFriend,{hash:{},inverse:w.noop,fn:w.program(19,y,t),data:t}),(n||0===n)&&(i+=n),i+=" ",n=a.if.call(e,e&&e.canRemoveHomeUser,{hash:{},inverse:w.noop,fn:w.program(21,b,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function y(e,t){var a=""
;return a+=' <button type="button" class="remove-friend-btn btn btn-sm btn-danger">'+M(i(n(1)).call(e,"Remove this friend",{hash:{},data:t}))+"</button> "}function b(e,t){var a="";return a+=' <button type="button" class="remove-home-btn btn btn-sm btn-danger">'+M(i(n(1)).call(e,"Remove from home",{hash:{},data:t}))+"</button> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var S,I="",M=this.escapeExpression,C="function",w=this
;return I+='<div class="edit-friend-header"> <div class="media-poster img-circle placeholder-friend"></div> ',S=a.if.call(t,(S=t&&t.homeUser,null==S||S===!1?S:S.restricted),{hash:{},inverse:w.program(3,l,s),fn:w.program(1,o,s),data:s}),(S||0===S)&&(I+=S),I+=" </div> ",S=a.if.call(t,t&&t.showActions,{hash:{},inverse:w.noop,fn:w.program(12,h,s),data:s}),(S||0===S)&&(I+=S),I+=" "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12)
;e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o="",l=this.escapeExpression;return o+='<li> <a class="btn-gray change-pane-btn disabled" data-pane="general" data-pane-id="general" href="#"> <i class="modal-nav-icon glyphicon user"></i> '+l(i(n(1)).call(t,"General",{hash:{},data:s}))+' </a> </li> <li class="owned-list-header modal-nav-list-header">'+l(i(n(1)).call(t,"My Servers",{hash:{},data:s
}))+'</li> <li class="owned-servers-container"></li> <li> <a class="btn-gray change-pane-btn disabled" data-pane="restrictions" data-pane-id="restrictions" href="#"> <i class="modal-nav-icon glyphicon ban"></i> '+l(i(n(1)).call(t,"Restrictions",{hash:{},data:s}))+' </a> </li> <li class="shared-list-header modal-nav-list-header">'+l(i(n(1)).call(t,"Shared With Me",{hash:{},data:s}))+'</li> <li class="shared-servers-container"></li> '})},function(e,t,n){var i=n(12)
;e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,s,o="",l=this.escapeExpression;return o+='<span class="modal-nav-icon friend-server-status ',(s=n.status)?r=s.call(t,{hash:{},data:a}):(s=t&&t.status,r="function"==typeof s?s.call(t,{hash:{},data:a}):s),
o+=l(r)+'"> <i class="friend-server-status-icon unknown glyphicon circle-question-mark"></i> <i class="friend-server-status-icon available glyphicon circle-ok"></i> <i class="friend-server-status-icon unavailable glyphicon circle-exclamation-mark"></i> </span> '+l((r=t&&t.server,r=null==r||r===!1?r:r.name,"function"==typeof r?r.apply(t):r))+" "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){
this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o="",l=this.escapeExpression;return o+='<div class="server-header"> <i class="plex-image server server-xs"></i> <h3 class="server-title"></h3> <a class="server-status-btn unknown" href="#"> <span class="server-status-label available">'+l(i(n(1)).call(t,"Available",{hash:{},data:s}))+'</span> <span class="server-status-label unavailable">'+l(i(n(1)).call(t,"Unavailable",{hash:{},data:s
}))+'</span> <span class="server-status-label unauthorized">'+l(i(n(1)).call(t,"Unauthorized",{hash:{},data:s}))+'</span> <span class="server-status-label unknown">'+l(i(n(1)).call(t,"Unknown",{hash:{},data:s}))+'</span> <i class="server-details-open-icon glyphicon chevron-down"></i> <i class="server-details-close-icon glyphicon chevron-up"></i> </a> </div> <div class="server-details transition-out"> <h4>'+l(i(n(1)).call(t,"Info",{hash:{},data:s
}))+'</h4> <div class="server-detail-row"> <div class="server-detail-label">'+l(i(n(1)).call(t,"Version",{hash:{},data:s}))+'</div> <div class="server-detail-value server-detail-version"></div> </div> <div class="server-detail-row server-detail-last-seen-row hidden"> <div class="server-detail-label">'+l(i(n(1)).call(t,"Last Seen",{hash:{},data:s
}))+'</div> <div class="server-detail-value server-detail-last-seen"></div> </div> <div class="server-detail-row"> <div class="server-detail-label">'+l(i(n(1)).call(t,"Address",{hash:{},data:s}))+'</div> <div class="server-detail-value server-detail-address"></div> </div> <div class="server-detail-row"> <div class="server-detail-label">'+l(i(n(1)).call(t,"Port",{hash:{},data:s
}))+'</div> <div class="server-detail-value server-detail-port"></div> </div> </div> <div class="share-details"> <h4>'+l(i(n(1)).call(t,"Share",{hash:{},data:s}))+"</h4> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var r,s=""
;return s+=' <div class="form-group"> <div class="col-sm-offset-3 col-sm-9"> <div class="checkbox"> <label for="allow-channels-cb"> <input type="checkbox" id="allow-channels-cb" name="allowChannels" ',r=a.if.call(e,(r=e&&e.user,null==r||r===!1?r:r.allowChannels),{hash:{},inverse:p.noop,fn:p.program(2,l,t),data:t}),(r||0===r)&&(s+=r),s+="> "+h(i(n(1)).call(e,"Allow Channels",{hash:{},data:t
}))+' </label> </div> </div> </div> <div class="row"> <h4 class="text-muted plex-pass-restrictions-header"> <span class="plex-pass-restrictions-title">'+h(i(n(1)).call(e,"Plex Pass restrictions",{hash:{},data:t}))+'</span> <a href="'+h((r=e&&e.plexPassUrl,typeof r===f?r.apply(e):r))+'" target="_blank">'+h(i(n(1)).call(e,"Learn More",{hash:{},data:t}))+'</a> </h4> <p class="text-center"> </p> </div> '}function l(e,t){return"checked"}function u(e,t){var r,s=""
;return s+=' <div class="checkbox"> <label for="allow-channels-cb"> <input type="checkbox" id="allow-channels-cb" name="allowChannels" ',r=a.if.call(e,(r=e&&e.user,null==r||r===!1?r:r.allowChannels),{hash:{},inverse:p.noop,fn:p.program(2,l,t),data:t}),(r||0===r)&&(s+=r),s+="> "+h(i(n(1)).call(e,"Allow Channels",{hash:{},data:t}))+" </label> </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var c,d="",p=this,h=this.escapeExpression,f="function"
;return c=a.unless.call(t,t&&t.hasContentFilterFeature,{hash:{},inverse:p.noop,fn:p.program(1,o,s),data:s}),(c||0===c)&&(d+=c),d+=' <div class="plex-pass-restrictions"> <div class="overlay"></div> <div class="form-group"> <div class="col-sm-offset-3 col-sm-9"> <div class="checkbox"> <label for="allow-sync-cb"> <input type="checkbox" id="allow-sync-cb" name="allowSync" ',c=a.if.call(t,(c=t&&t.user,null==c||c===!1?c:c.allowSync),{hash:{},inverse:p.noop,fn:p.program(2,l,s),data:s}),
(c||0===c)&&(d+=c),d+="> "+h(i(n(1)).call(t,"Allow Sync",{hash:{},data:s}))+' </label> </div> <div class="checkbox"> <label for="allow-camera-upload-images-cb"> <input type="checkbox" id="allow-camera-upload-images-cb" name="allowCameraUpload" ',c=a.if.call(t,(c=t&&t.user,null==c||c===!1?c:c.allowCameraUpload),{hash:{},inverse:p.noop,fn:p.program(2,l,s),data:s}),(c||0===c)&&(d+=c),d+="> "+h(i(n(1)).call(t,"Allow Camera Upload",{hash:{},data:s
}))+' </label> <p class="help-block">'+h(i(n(1)).call(t,"Enabling this option will allow this user to upload media to your server.",{hash:{},data:s}))+"</p> </div> ",c=a.if.call(t,t&&t.hasContentFilterFeature,{hash:{},inverse:p.noop,fn:p.program(4,u,s),data:s}),(c||0===c)&&(d+=c),d+=' </div> </div> <div class="form-group"> <label class="col-sm-3 control-label section-control-label"> <i class="section-type-icon glyphicon '+h((c=t&&t.moviesIcon,
typeof c===f?c.apply(t):c))+'"></i> '+h(i(n(1)).call(t,"Movies",{hash:{},data:s}))+' </label> <div class="col-sm-9 help-block section-help-block"> '+h(i(n(1)).call(t,"Only allow movies matching the ratings or labels below.",{hash:{},data:s}))+' </div> </div> <div class="form-group"> <label for="filter-movie-contentRating" class="col-sm-3 control-label"> '+h(i(n(1)).call(t,"Ratings",{hash:{},data:s
}))+' </label> <div class="col-sm-9"> <input type="text" id="filter-movie-contentRating" class="form-control tag-input-hidden" name="filterMovies" data-filter="contentRating" data-section-type="movie" placeholder="'+h(i(n(1)).call(t,"Allow all ratings",{hash:{},data:s}))+'" value="'+h((c=t&&t.user,c=null==c||c===!1?c:c.filterMovies,c=null==c||c===!1?c:c.contentRating,
typeof c===f?c.apply(t):c))+'"> </div> </div> <div class="form-group"> <label for="filter-movie-label" class="col-sm-3 control-label"> '+h(i(n(1)).call(t,"Labels",{hash:{},data:s}))+' </label> <div class="col-sm-9"> <input type="text" id="filter-movie-label" class="form-control tag-input-hidden" name="filterMovies" data-filter="label" data-section-type="movie" placeholder="'+h(i(n(1)).call(t,"Allow all labels",{hash:{},data:s}))+'" value="'+h((c=t&&t.user,c=null==c||c===!1?c:c.filterMovies,
c=null==c||c===!1?c:c.label,typeof c===f?c.apply(t):c))+'"> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label section-control-label"> <i class="section-type-icon glyphicon '+h((c=t&&t.showsIcon,typeof c===f?c.apply(t):c))+'"></i> '+h(i(n(1)).call(t,"TV Shows",{hash:{},data:s}))+' </label> <div class="col-sm-9 help-block section-help-block"> '+h(i(n(1)).call(t,"Only allow TV shows matching the ratings or labels below.",{hash:{},data:s
}))+' </div> </div> <div class="form-group"> <label for="filter-show-contentRating" class="col-sm-3 control-label"> '+h(i(n(1)).call(t,"Ratings",{hash:{},data:s}))+' </label> <div class="col-sm-9"> <input type="text" id="filter-show-contentRating" class="form-control tag-input-hidden" name="filterTelevision" data-filter="contentRating" data-section-type="show" placeholder="'+h(i(n(1)).call(t,"Allow all ratings",{hash:{},data:s}))+'" value="'+h((c=t&&t.user,c=null==c||c===!1?c:c.filterTelevision,
c=null==c||c===!1?c:c.contentRating,typeof c===f?c.apply(t):c))+'"> </div> </div> <div class="form-group"> <label for="filter-show-label" class="col-sm-3 control-label"> '+h(i(n(1)).call(t,"Labels",{hash:{},data:s}))+' </label> <div class="col-sm-9"> <input type="text" id="filter-show-label" class="form-control tag-input-hidden" name="filterTelevision" data-filter="label" data-section-type="show" placeholder="'+h(i(n(1)).call(t,"Allow all labels",{hash:{},data:s}))+'" value="'+h((c=t&&t.user,
c=null==c||c===!1?c:c.filterTelevision,c=null==c||c===!1?c:c.label,typeof c===f?c.apply(t):c))+'"> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label section-control-label"> <i class="section-type-icon glyphicon '+h((c=t&&t.musicIcon,typeof c===f?c.apply(t):c))+'"></i> '+h(i(n(1)).call(t,"Albums",{hash:{},data:s}))+' </label> </div> <div class="form-group"> <label for="filter-artist-label" class="col-sm-3 control-label"> '+h(i(n(1)).call(t,"Labels",{hash:{},data:s
}))+' </label> <div class="col-sm-9"> <input type="text" id="filter-artist-label" class="form-control tag-input-hidden" name="filterMusic" data-filter="label" data-section-type="artist" placeholder="'+h(i(n(1)).call(t,"Allow all labels",{hash:{},data:s}))+'" value="'+h((c=t&&t.user,c=null==c||c===!1?c:c.filterMusic,c=null==c||c===!1?c:c.label,typeof c===f?c.apply(t):c))+'"> </div> </div> </div> '})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){
function r(e,t){return"checked"}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var s,o,l="",u=this.escapeExpression,c=this;return l+='<div class="checkbox"> <label for="share-section-'+u((s=t&&t.section,s=null==s||s===!1?s:s.id,"function"==typeof s?s.apply(t):s))+'-cb"> <input type="checkbox" id="share-section-'+u((s=t&&t.section,s=null==s||s===!1?s:s.id,"function"==typeof s?s.apply(t):s))+'-cb" value="'+u((s=t&&t.section,s=null==s||s===!1?s:s.id,
"function"==typeof s?s.apply(t):s))+'" ',s=n.if.call(t,t&&t.isChecked,{hash:{},inverse:c.noop,fn:c.program(1,r,a),data:a}),(s||0===s)&&(l+=s),l+='> <i class="section-type-icon glyphicon ',(o=n.typeIcon)?s=o.call(t,{hash:{},data:a}):(o=t&&t.typeIcon,s="function"==typeof o?o.call(t,{hash:{},data:a}):o),l+=u(s)+'"></i> '+u((s=t&&t.section,s=null==s||s===!1?s:s.title,"function"==typeof s?s.apply(t):s))+" </label> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}
var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return"show-libraries"}function l(e,t){var r,s="";return s+=' <li class="share-section-list-item"> <div class="checkbox"> <label for="share-all-libraries-'+y((r=e&&e.server,r=null==r||r===!1?r:r.machineIdentifier,typeof r===g?r.apply(e):r))+'-cb"> <input type="checkbox" id="share-all-libraries-'+y((r=e&&e.server,r=null==r||r===!1?r:r.machineIdentifier,
typeof r===g?r.apply(e):r))+'-cb" name="share-all-libraries-cb" value="all" ',r=a.if.call(e,e&&e.allLibraries,{hash:{},inverse:b.noop,fn:b.program(4,u,t),data:t}),(r||0===r)&&(s+=r),s+="> "+y(i(n(1)).call(e,"All Libraries",{hash:{},data:t}))+" </label> </div> </li> "}function u(e,t){return"checked"}function c(e,t){var a="";return a+=' <p class="text-muted">'+y(i(n(1)).call(e,"Loading...",{hash:{},data:t}))+"</p> "}function d(e,t){var n;return n=a.if.call(e,e&&e.hasFailed,{hash:{},
inverse:b.program(11,h,t),fn:b.program(9,p,t),data:t}),n||0===n?n:""}function p(e,t){var a,r="";return r+=' <p class="text-muted">'+y(i(n(1)).call(e,"We were unable to retrieve libraries for {1}. Please ensure the server is signed in to your Plex account.",(a=e&&e.server,null==a||a===!1?a:a.name),{hash:{},data:t}))+"</p> "}function h(e,t){var n;return n=a.unless.call(e,e&&e.hasSections,{hash:{},inverse:b.noop,fn:b.program(12,f,t),data:t}),n||0===n?n:""}function f(e,t){var a=""
;return a+=' <p class="text-muted">'+y(i(n(1)).call(e,"No libraries",{hash:{},data:t}))+"</p> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var v,m="",g="function",y=this.escapeExpression,b=this;return m+='<ul id="'+y((v=t&&t.server,v=null==v||v===!1?v:v.machineIdentifier,typeof v===g?v.apply(t):v))+'-section-list" class="list share-section-list ',v=a.unless.call(t,t&&t.allLibraries,{hash:{},inverse:b.noop,fn:b.program(1,o,s),data:s}),(v||0===v)&&(m+=v),m+='"> ',
v=a.if.call(t,t&&t.hasSections,{hash:{},inverse:b.noop,fn:b.program(3,l,s),data:s}),(v||0===v)&&(m+=v),m+=" </ul> ",v=a.if.call(t,t&&t.isPending,{hash:{},inverse:b.program(8,d,s),fn:b.program(6,c,s),data:s}),(v||0===v)&&(m+=v),m+=" "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o="",l=this.escapeExpression
;return o+='<div class="server-header"> <i class="plex-image server server-xs"></i> <h3 class="server-title"></h3> <a class="server-status-btn unknown" href="#"> <span class="server-status-label available">'+l(i(n(1)).call(t,"Available",{hash:{},data:s}))+'</span> <span class="server-status-label unavailable">'+l(i(n(1)).call(t,"Unavailable",{hash:{},data:s}))+'</span> <span class="server-status-label unauthorized">'+l(i(n(1)).call(t,"Unauthorized",{hash:{},data:s
}))+'</span> <span class="server-status-label unknown">'+l(i(n(1)).call(t,"Unknown",{hash:{},data:s}))+'</span> <i class="server-details-open-icon glyphicon chevron-down"></i> <i class="server-details-close-icon glyphicon chevron-up"></i> </a> </div> <div class="server-details transition-out"> <h4>'+l(i(n(1)).call(t,"Info",{hash:{},data:s}))+'</h4> <div class="server-detail-row"> <div class="server-detail-label">'+l(i(n(1)).call(t,"Version",{hash:{},data:s
}))+'</div> <div class="server-detail-value server-detail-version"></div> </div> <div class="server-detail-row"> <div class="server-detail-label">'+l(i(n(1)).call(t,"Last Seen",{hash:{},data:s}))+'</div> <div class="server-detail-value server-detail-last-seen"></div> </div> <div class="server-detail-row"> <div class="server-detail-label">'+l(i(n(1)).call(t,"Address",{hash:{},data:s
}))+'</div> <div class="server-detail-value server-detail-address"></div> </div> <div class="server-detail-row"> <div class="server-detail-label">'+l(i(n(1)).call(t,"Port",{hash:{},data:s}))+'</div> <div class="server-detail-value server-detail-port"></div> </div> </div> <div class="share-details"> <h4>'+l(i(n(1)).call(t,"Sharing",{hash:{},data:s
}))+'</h4> <div class="share-server-container"> <div class="server-restriction-allow-sync share-section-list-item no-checkbox"> <i class="section-type-icon glyphicon ok-2"></i> '+l(i(n(1)).call(t,"Sync Allowed",{hash:{},data:s}))+' </div> <ul class="list share-section-list show-libraries"></ul> </div> </div> <div class="share-details-footer"> <button type="button" class="leave-server-btn btn btn-sm btn-danger">'+l(i(n(1)).call(t,"Leave Server",{hash:{},data:s}))+"</button> </div> "})
},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,s,o="",l=this.escapeExpression;return o+='<li class="share-section-list-item no-checkbox"> <i class="section-type-icon glyphicon ',(s=n.typeIcon)?r=s.call(t,{hash:{},data:a}):(s=t&&t.typeIcon,r="function"==typeof s?s.call(t,{hash:{},data:a}):s),o+=l(r)+'"></i> '+l((r=t&&t.section,r=null==r||r===!1?r:r.title,
"function"==typeof r?r.apply(t):r))+" </li> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a=""
;return a+=' <div class="existing-user-group username-group"> <div class="media-poster img-circle placeholder-square"></div> <div class="username-group-input-container"> <i class="validation-success-icon glyphicon circle-ok"></i> <i class="validation-error-icon glyphicon circle-exclamation-mark"></i> <input type="text" class="form-control hidden" name="username" placeholder="'+d(i(n(1)).call(e,"Username or email",{hash:{},data:t
}))+'" autocorrect="off" autocapitalize="off"> <button type="button" class="add-existing-user-btn btn btn-primary">'+d(i(n(1)).call(e,"Add an Existing Plex User",{hash:{},data:t}))+'</button> <p class="help-block">'+d(i(n(1)).call(e,"Adding a Plex user to your home will allow you to quickly switch accounts. The invited user will be asked to confirm home membership.",{hash:{},data:t
}))+'</p> </div> </div> <div class="restricted-user-group username-group"> <div class="media-poster img-circle placeholder-friend"></div> <div class="username-group-input-container"> <input type="text" class="form-control hidden" name="title" placeholder="'+d(i(n(1)).call(e,"Name",{hash:{},data:t}))+'" autocorrect="off" autocapitalize="off"> <button type="button" class="add-restricted-user-btn btn btn-primary">'+d(i(n(1)).call(e,"Create a Managed User",{hash:{},data:t
}))+'</button> <p class="help-block">'+d(i(n(1)).call(e,"Managed users are only available when signed in with an account in your home. You can choose any name you like and you'll be able to set restrictions on accessible media.",{hash:{},data:t}))+"</p> </div> </div> "}function l(e,t){var a=""
;return a+=' <div class="friend-group username-group"> <div class="media-poster img-circle placeholder-friend"></div> <div class="username-group-input-container"> <i class="validation-success-icon glyphicon circle-ok"></i> <i class="validation-error-icon glyphicon circle-exclamation-mark"></i> <input type="text" class="form-control" name="username" placeholder="'+d(i(n(1)).call(e,"Username or email",{hash:{},data:t
}))+'" autocorrect="off" autocapitalize="off"> <p class="help-block">'+d(i(n(1)).call(e,"The invited user will be asked to confirm friendship. If libraries are shared with the user, you'll be able to set restrictions on accessible media.",{hash:{},data:t}))+"</p> </div> </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var u,c="",d=this.escapeExpression,p=this;return u=i(n(24)).call(t,t&&t.type,"home",{hash:{},inverse:p.program(3,l,s),fn:p.program(1,o,s),data:s}),
(u||0===u)&&(c+=u),c+=" "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o="",l=this.escapeExpression
;return o+='<div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><i class="glyphicon remove-2"></i></button> <h4 class="modal-title"><i class="modal-icon glyphicon circle-info"></i> '+l(i(n(1)).call(t,"Welcome to Plex Home",{hash:{},data:s}))+'</h4> </div> <div class="modal-body modal-body-scroll dark-scrollbar"> <p>'+l(i(n(1)).call(t,"{1}, so we've made a few changes to help keep your media safe.",t&&t.intro,{
hash:{},data:s}))+"</p> <ol> <li>"+l(i(n(1)).call(t,"We've increased the security requirements on this server, so anything communicating with it will need to be signed in to a Plex account.",{hash:{},data:s}))+"</li> <li>"+l(i(n(1)).call(t,"We've disabled DLNA to prevent any DLNA-enabled device from browsing and playing media without a password or PIN. You can change this preference in your {1}server settings{2}.",'<a class="server-settings-btn" href="#">',"</a>",{hash:{},data:s
}))+"</li> </ol> <p>"+l(i(n(1)).call(t,"For more information on Plex Home security settings, please see the {1}Plex Home section{2} on our support site.",'<a href="https://support.plex.tv/hc/en-us/sections/200641063" target="_blank">',"</a>",{hash:{},data:s}))+'</p> </div> <div class="modal-footer"> <button type="button" class="btn btn-lg btn-primary" data-dismiss="modal">'+l(i(n(1)).call(t,"OK",{hash:{},data:s}))+"</button> </div> </div> </div> "})},function(e,t,n){var i=n(12)
;e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},'<div class="modal-dialog"> <div class="modal-alert"></div> <div class="modal-content"></div> </div> '})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,s,o="",l=this.escapeExpression;return o+='<span class="message">',(s=n.message)?r=s.call(t,{hash:{},data:a
}):(s=t&&t.message,r="function"==typeof s?s.call(t,{hash:{},data:a}):s),o+=l(r)+"</span> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return' <a class="back-btn btn-gray" href="#"><i class="glyphicon chevron-left"></i></a> '}function l(e,t){var a="";return a+=' <i class="modal-icon glyphicon pencil"></i> '+b(i(n(1)).call(e,"Edit PIN",{hash:{},data:t}))+" "}function u(e,t){var n
;return n=a.if.call(e,e&&e.isEditConfirmation,{hash:{},inverse:S.program(8,d,t),fn:S.program(6,c,t),data:t}),n||0===n?n:""}function c(e,t){var a="";return a+=" "+b(i(n(1)).call(e,"Confirm Current PIN",{hash:{},data:t}))+" "}function d(e,t){var a="";return a+=" "+b(i(n(1)).call(e,"Enter PIN",{hash:{},data:t}))+" "}function p(e,t){var a="";return a+=' <p class="help-block"> '+b(i(n(1)).call(e,"You do not currently have a PIN. This will allow any users in this home to switch to your account.",{
hash:{},data:t}))+" </p> "}function h(e,t){var r,s="";return s+=' <div class="modal-footer"> ',r=a.if.call(e,e&&e.hasCurrentPIN,{hash:{},inverse:S.noop,fn:S.program(13,f,t),data:t}),(r||0===r)&&(s+=r),s+=" ",r=a.if.call(e,e&&e.isEditWarning,{hash:{},inverse:S.program(17,m,t),fn:S.program(15,v,t),data:t}),(r||0===r)&&(s+=r),s+=' <button type="submit" class="save-btn btn-link">'+b(i(n(1)).call(e,"Save",{hash:{},data:t}))+"</button> </div> "}function f(e,t){var a=""
;return a+=' <button type="button" class="remove-btn btn-gray pull-left">'+b(i(n(1)).call(e,"Remove",{hash:{},data:t}))+"</button> "}function v(e,t){var a="";return a+=' <button type="button" class="skip-btn btn-gray" data-dismiss="modal">'+b(i(n(1)).call(e,"Skip",{hash:{},data:t}))+"</button> "}function m(e,t){var a="";return a+=' <button type="button" class="cancel-btn btn-gray" data-dismiss="modal">'+b(i(n(1)).call(e,"Cancel",{hash:{},data:t}))+"</button> "}this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),s=s||{};var g,y="",b=this.escapeExpression,S=this;return y+='<div class="modal-header"> <div class="home-user-dropdown-container pull-right"></div> <h4 class="modal-title"> ',g=a.if.call(t,t&&t.showBackButton,{hash:{},inverse:S.noop,fn:S.program(1,o,s),data:s}),(g||0===g)&&(y+=g),y+=" ",g=a.if.call(t,t&&t.isEditing,{hash:{},inverse:S.program(5,u,s),fn:S.program(3,l,s),data:s}),(g||0===g)&&(y+=g),
y+=' <span class="loading loading-sm hidden"></span> </h4> </div> <form id="pin-form"> <div class="modal-body"> <ul class="tile-list user-select-list disabled"></ul> <input type="number" pattern="[0-9]*" class="pin-input"> <div class="pin-digit-container" aria-hidden="true"> <div class="pin-digit"></div> <div class="pin-digit"></div> <div class="pin-digit"></div> <div class="pin-digit"></div> </div> ',g=a.if.call(t,t&&t.isEditWarning,{hash:{},inverse:S.noop,fn:S.program(10,p,s),data:s}),
(g||0===g)&&(y+=g),y+=" </div> ",g=a.if.call(t,t&&t.isEditing,{hash:{},inverse:S.noop,fn:S.program(12,h,s),data:s}),(g||0===g)&&(y+=g),y+=" </form> "})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){function r(e,t){return' <div class="user-select-container"> '}function s(e,t){return' <a class="user-select-container" href="#"> '}function o(e,t){return" </div> "}function l(e,t){return" </a> "}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{}
;var u,c="",d=this;return u=n.if.call(t,t&&t.disabled,{hash:{},inverse:d.program(3,s,a),fn:d.program(1,r,a),data:a}),(u||0===u)&&(c+=u),c+=' <div class="user-select-top"> <div class="user-poster img-circle"></div> <i class="protected-icon user-icon glyphicon lock"></i> <i class="admin-icon user-icon glyphicon crown"></i> </div> <div class="username"></div> ',u=n.if.call(t,t&&t.disabled,{hash:{},inverse:d.program(7,l,a),fn:d.program(5,o,a),data:a}),(u||0===u)&&(c+=u),c+=" "})},function(e,t,n){
function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o="";return o+='<div class="modal-header"> <h4 class="modal-title"> '+(0,this.escapeExpression)(i(n(1)).call(t,"Select User",{hash:{},data:s}))+' <span class="loading loading-sm"></span> </h4> </div> <div class="modal-body"></div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}
var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return"hidden"}function l(e,t){var r,s="";return s+=' <li><a class="exit-fullscreen-btn ',r=a.unless.call(e,e&&e.isFullscreen,{hash:{},inverse:p.noop,fn:p.program(1,o,t),data:t}),(r||0===r)&&(s+=r),s+='" href="#" title="'+h(i(n(1)).call(e,"Exit Full Screen",{hash:{},data:t}))+'" data-toggle="tooltip"><i class="plex-icon-tv-mode-exit-560"></i></a></li> <li><a class="tv-mode-btn ',
r=a.unless.call(e,e&&e.isOnDashboard,{hash:{},inverse:p.noop,fn:p.program(1,o,t),data:t}),(r||0===r)&&(s+=r),s+=" ",r=a.if.call(e,e&&e.isFullscreen,{hash:{},inverse:p.noop,fn:p.program(1,o,t),data:t}),(r||0===r)&&(s+=r),s+='" href="#" title="'+h(i(n(1)).call(e,"Enter TV Full Screen",{hash:{},data:t}))+'" data-toggle="tooltip"><i class="plex-icon-tv-mode-enter-560"></i></a></li> '}function u(e,t){return"active"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{}
;var c,d="",p=this,h=this.escapeExpression;return d+='<ul class="nav nav-bar-nav"> <li><a class="back-btn ',c=a.unless.call(t,t&&t.hasHistory,{hash:{},inverse:p.noop,fn:p.program(1,o,s),data:s}),(c||0===c)&&(d+=c),d+='" href="#"><i class="glyphicon chevron-left"></i></a></li> <li><a class="home-btn" href="#"><i class="glyphicon home"></i></a></li> </ul> <div class="nav-bar-search-container"></div> <ul class="nav nav-bar-nav nav-bar-right"> <li><a class="plex-pass-btn ',
c=a.unless.call(t,t&&t.canGoPremium,{hash:{},inverse:p.noop,fn:p.program(1,o,s),data:s}),(c||0===c)&&(d+=c),d+='" href="#"><span class="plex-pass-label label label-primary">'+h(i(n(1)).call(t,"Go Premium",{hash:{},data:s}))+"</span></a></li> ",c=a.if.call(t,t&&t.isKonvergo,{hash:{},inverse:p.noop,fn:p.program(3,l,s),data:s}),(c||0===c)&&(d+=c),d+=' <li class="',c=a.if.call(t,t&&t.activityCount,{hash:{},inverse:p.noop,fn:p.program(5,u,s),data:s}),(c||0===c)&&(d+=c),d+='"><a class="activity-btn ',
c=a.unless.call(t,t&&t.showActivity,{hash:{},inverse:p.noop,fn:p.program(1,o,s),data:s}),(c||0===c)&&(d+=c),d+='" href="#!/status" title="'+h(i(n(1)).call(t,"Status",{hash:{},data:s}))+'" data-toggle="tooltip"><span class="activity-badge badge badge-transparent ',c=a.unless.call(t,t&&t.activityCount,{hash:{},inverse:p.noop,fn:p.program(1,o,s),data:s}),(c||0===c)&&(d+=c),d+='">'+h((c=t&&t.activityCount,
"function"==typeof c?c.apply(t):c))+'</span><i class="glyphicon cardio"></i></a></li> <li><a class="settings-btn" href="#!/settings" title="'+h(i(n(1)).call(t,"Settings",{hash:{},data:s}))+'" data-toggle="tooltip"><i class="glyphicon settings"></i></a></li> </ul> <div class="modal-container"></div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return"hidden"}function l(e,t){
return"signed-in"}function u(e,t){return"full-user"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var c,d="",p=this,h=this.escapeExpression;return d+='<a class="dropdown-toggle dropdown-poster-toggle" href="#nav-dropdown" data-toggle="dropdown"> <div class="dropdown-poster-container"> <div class="media-poster img-circle"></div> <i class="caret-icon"></i> </div> <span class="total-badge badge ',c=a.unless.call(t,t&&t.totalCount,{hash:{},inverse:p.noop,fn:p.program(1,o,s),
data:s}),(c||0===c)&&(d+=c),d+='">'+h((c=t&&t.totalCount,"function"==typeof c?c.apply(t):c))+'</span> </a> <ul class="dropdown-menu ',c=a.if.call(t,t&&t.signedIn,{hash:{},inverse:p.noop,fn:p.program(3,l,s),data:s}),(c||0===c)&&(d+=c),d+=" ",c=a.if.call(t,t&&t.isFullUser,{hash:{},inverse:p.noop,fn:p.program(5,u,s),data:s}),(c||0===c)&&(d+=c),d+='"> <li class="signed-in-item dropdown-header username-header"></li> <li class="signed-in-item"><a href="#!/account">'+h(i(n(1)).call(t,"Account",{
hash:{},data:s}))+'</a></li> <li class="signed-in-item"><a class="users-btn" href="#">'+h(i(n(1)).call(t,"Users",{hash:{},data:s}))+' <span class="invites-badge badge ',c=a.unless.call(t,t&&t.invitesCount,{hash:{},inverse:p.noop,fn:p.program(1,o,s),data:s}),(c||0===c)&&(d+=c),d+='">'+h((c=t&&t.invitesCount,
"function"==typeof c?c.apply(t):c))+'</span></a></li> <li class="signed-in-item full-user-item divider"></li> <li class="signed-in-item full-user-item"><a href="#!/playlist/queue">'+h(i(n(1)).call(t,"Watch Later",{hash:{},data:s}))+'</a></li> <li class="signed-in-item full-user-item"><a href="#!/playlist/recommendations">'+h(i(n(1)).call(t,"Recommended",{hash:{},data:s}))+'</a></li> <li class="signed-in-item divider"></li> <li class="announcements-item ',c=a.if.call(t,t&&t.isRestricted,{hash:{},
inverse:p.noop,fn:p.program(1,o,s),data:s}),(c||0===c)&&(d+=c),d+='"><a href="#!/announcements">'+h(i(n(1)).call(t,"Announcements",{hash:{},data:s}))+' <span class="announcements-badge badge ',c=a.unless.call(t,t&&t.unreadAnnouncementsCount,{hash:{},inverse:p.noop,fn:p.program(1,o,s),data:s}),(c||0===c)&&(d+=c),d+='">'+h((c=t&&t.unreadAnnouncementsCount,"function"==typeof c?c.apply(t):c))+'</span></a></li> <li><a href="'+h((c=t&&t.appsUrl,
"function"==typeof c?c.apply(t):c))+'" target="_blank">'+h(i(n(1)).call(t,"Get Plex apps",{hash:{},data:s}))+'</a></li> <li><a href="'+h((c=t&&t.helpUrl,"function"==typeof c?c.apply(t):c))+'" target="_blank">'+h(i(n(1)).call(t,"Help",{hash:{},data:s}))+'</a></li> <li class="divider"></li> <li class="signed-in-item switch-user-item ',c=a.unless.call(t,t&&t.home,{hash:{},inverse:p.noop,fn:p.program(1,o,s),data:s}),(c||0===c)&&(d+=c),
d+='"><a class="switch-user-btn" href="#">'+h(i(n(1)).call(t,"Switch User...",{hash:{},data:s}))+'</a></li> <li class="signed-out-item"><a class="sign-in-btn" href="#">'+h(i(n(1)).call(t,"Sign In",{hash:{},data:s}))+'</a></li> <li class="signed-in-item full-user-item"><a class="sign-out-btn" href="#">'+h(i(n(1)).call(t,"Sign Out",{hash:{},data:s}))+"</a></li> </ul> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12)
;e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var n,i="";return i+='data-scope-to-attr="'+d((n=e&&e.scopeToAttr,typeof n===c?n.apply(e):n))+'" data-scope-to-param="'+d((n=e&&e.scopeToParam,typeof n===c?n.apply(e):n))+'"'}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var l,u="",c="function",d=this.escapeExpression,p=this;return u+='<div class="form-group" data-attr="'+d((l=t&&t.name,typeof l===c?l.apply(t):l))+'"> <label for="text-'+d((l=t&&t.name,
typeof l===c?l.apply(t):l))+'" class="control-label">'+d(i(n(1)).call(t,t&&t.label,{hash:{},data:s}))+'<span class="control-error"></span></label> <div class="input-group selectize-group"> <input type="text" id="text-'+d((l=t&&t.name,typeof l===c?l.apply(t):l))+'" class="form-control text-field" name="'+d((l=t&&t.name,typeof l===c?l.apply(t):l))+'" placeholder="'+d((l=t&&t.placeholder,typeof l===c?l.apply(t):l))+'" data-rating-key="'+d((l=t&&t.ratingKey,
typeof l===c?l.apply(t):l))+'" data-title="'+d((l=t&&t.title,typeof l===c?l.apply(t):l))+'" ',l=a.if.call(t,t&&t.scopeToAttr,{hash:{},inverse:p.noop,fn:p.program(1,o,s),data:s}),(l||0===l)&&(u+=l),u+="> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a="";return a+=' <h4 class="server-connect-error-header">'+f(i(n(1)).call(e,"Problem Connecting to Plex",{hash:{},data:t
}))+'</h4> <p class="text-muted">'+f(i(n(1)).call(e,"Plex was unable to authenticate your server. Please sign your server out and try again.",{hash:{},data:t}))+"</p> "}function l(e,t){var a,r="";return a=i(n(24)).call(e,e&&e.mappingError,"myplexgone",{hash:{},inverse:v.program(6,c,t),fn:v.program(4,u,t),data:t}),(a||0===a)&&(r+=a),r+=" "}function u(e,t){var a="";return a+=' <h4 class="server-connect-error-header">'+f(i(n(1)).call(e,"Problem Connecting to Plex",{hash:{},data:t
}))+'</h4> <p class="text-muted">'+f(i(n(1)).call(e,"Your server was unable to reach Plex. Please ensure that the computer or device running your server can access the internet.",{hash:{},data:t}))+"</p> "}function c(e,t){var a="";return a+=' <h4 class="server-connect-error-header">'+f(i(n(1)).call(e,"Signed in to Plex",{hash:{},data:t
}))+'</h4> <p class="text-muted">'+f(i(n(1)).call(e,"You have successfully signed your server in to Plex, but we were unable to reach it from outside your network.",{hash:{},data:t}))+"</p> "}function d(e,t){var a="";return a+=' <p class="text-muted">'+f(i(n(1)).call(e,"If you skip this step you will not be able to share or stream media outside your home. If you change your mind later, you can adjust this in Settings.",{hash:{},data:t}))+"</p> "}this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),s=s||{};var p,h="",f=this.escapeExpression,v=this;return p=i(n(24)).call(t,t&&t.mappingError,"badauth",{hash:{},inverse:v.program(3,l,s),fn:v.program(1,o,s),data:s}),(p||0===p)&&(h+=p),h+=" ",p=i(n(165)).call(t,t&&t.context,"settings",{hash:{},inverse:v.noop,fn:v.program(8,d,s),data:s}),(p||0===p)&&(h+=p),
h+=' <p class="text-muted">'+f(i(n(1)).call(t,"If you would like to enable this now, you will need to configure your router or firewall to allow Plex to contact your server. Please refer to our {1}Connecting a Server{2} article for more information.",'<a href="http://support.plex.tv/hc/en-us/articles/200484543-Connecting-a-Server" target="_blank">',"</a>",{hash:{},data:s}))+"</p> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12)
;e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return"locked"}function l(e,t){return"disabled"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var u,c="",d=this.escapeExpression,p=this;return c+='<div class="form-group"> <label for="lockable-'+d((u=t&&t.name,"function"==typeof u?u.apply(t):u))+'">'+d(i(n(1)).call(t,t&&t.label,{hash:{},data:s}))+'</label> <div class="input-group"> <a href="#" data-field="'+d((u=t&&t.name,
"function"==typeof u?u.apply(t):u))+'" class="input-group-addon edit-lock-addon ',u=a.if.call(t,t&&t.locked,{hash:{},inverse:p.noop,fn:p.program(1,o,s),data:s}),(u||0===u)&&(c+=u),c+=" ",u=a.if.call(t,t&&t.disabled,{hash:{},inverse:p.noop,fn:p.program(3,l,s),data:s}),(u||0===u)&&(c+=u),c+='" tabindex="-1"><i class="glyphicon lock"></i></a> <input type="number" id="lockable-'+d((u=t&&t.name,"function"==typeof u?u.apply(t):u))+'" class="form-control lockable-field" name="'+d((u=t&&t.name,
"function"==typeof u?u.apply(t):u))+'" value="'+d((u=t&&t.value,"function"==typeof u?u.apply(t):u))+'" placeholder="'+d((u=t&&t.placeholder,"function"==typeof u?u.apply(t):u))+'" ',u=a.if.call(t,t&&t.disabled,{hash:{},inverse:p.noop,fn:p.program(3,l,s),data:s}),(u||0===u)&&(c+=u),c+="> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return" locked"}function l(e,t){var n,i=""
;return i+='data-query="'+p((n=e&&e.query,typeof n===d?n.apply(e):n))+'"'}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var u,c="",d="function",p=this.escapeExpression,h=this;return c+='<div class="form-group"> <label for="lockable-'+p((u=t&&t.name,typeof u===d?u.apply(t):u))+'">'+p(i(n(1)).call(t,t&&t.label,{hash:{},data:s}))+'</label> <div class="input-group selectize-group"> <a href="#" data-field="'+p((u=t&&t.name,
typeof u===d?u.apply(t):u))+'" class="input-group-addon edit-lock-addon',u=a.if.call(t,t&&t.locked,{hash:{},inverse:h.noop,fn:h.program(1,o,s),data:s}),(u||0===u)&&(c+=u),c+='"><i class="glyphicon lock"></i></a> <input type="text" id="lockable-'+p((u=t&&t.name,typeof u===d?u.apply(t):u))+'" class="form-control lockable-field tag-input-hidden" data-name="'+p((u=t&&t.name,typeof u===d?u.apply(t):u))+'" data-attr="'+p((u=t&&t.attribute,typeof u===d?u.apply(t):u))+'" ',u=a.if.call(t,t&&t.query,{
hash:{},inverse:h.noop,fn:h.program(3,l,s),data:s}),(u||0===u)&&(c+=u),c+="> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return" locked"}function l(e,t){var n,i="";return i+=' <textarea class="form-control lockable-field" id="lockable-'+m((n=e&&e.name,typeof n===v?n.apply(e):n))+'" name="'+m((n=e&&e.name,typeof n===v?n.apply(e):n))+'"',n=a.if.call(e,e&&e.rows,{hash:{},
inverse:g.noop,fn:g.program(4,u,t),data:t}),(n||0===n)&&(i+=n),i+=' placeholder="'+m((n=e&&e.placeholder,typeof n===v?n.apply(e):n))+'">'+m((n=e&&e.value,typeof n===v?n.apply(e):n))+"</textarea> "}function u(e,t){var n,i="";return i+=' rows="'+m((n=e&&e.rows,typeof n===v?n.apply(e):n))+'"'}function c(e,t){var n,i="";return i+=' <input type="text" id="lockable-'+m((n=e&&e.name,typeof n===v?n.apply(e):n))+'" class="form-control lockable-field" name="'+m((n=e&&e.name,
typeof n===v?n.apply(e):n))+'" value="'+m((n=e&&e.value,typeof n===v?n.apply(e):n))+'" placeholder="'+m((n=e&&e.placeholder,typeof n===v?n.apply(e):n))+'" ',n=a.if.call(e,e&&e.scopeToAttr,{hash:{},inverse:g.noop,fn:g.program(7,d,t),data:t}),(n||0===n)&&(i+=n),i+=" ",n=a.if.call(e,e&&e.ratingKey,{hash:{},inverse:g.noop,fn:g.program(9,p,t),data:t}),(n||0===n)&&(i+=n),i+="> "}function d(e,t){var n,i="";return i+='data-scope-to-attr="'+m((n=e&&e.scopeToAttr,
typeof n===v?n.apply(e):n))+'" data-scope-to-param="'+m((n=e&&e.scopeToParam,typeof n===v?n.apply(e):n))+'"'}function p(e,t){var n,i="";return i+='data-rating-key="'+m((n=e&&e.ratingKey,typeof n===v?n.apply(e):n))+'"'}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var h,f="",v="function",m=this.escapeExpression,g=this;return f+='<div class="form-group selectize-group" data-attr="'+m((h=t&&t.name,typeof h===v?h.apply(t):h))+'"> <label for="lockable-'+m((h=t&&t.name,
typeof h===v?h.apply(t):h))+'">'+m(i(n(1)).call(t,t&&t.label,{hash:{},data:s}))+'</label> <div class="input-group"> <a href="#" data-field="'+m((h=t&&t.name,typeof h===v?h.apply(t):h))+'" class="input-group-addon edit-lock-addon',h=a.if.call(t,t&&t.locked,{hash:{},inverse:g.noop,fn:g.program(1,o,s),data:s}),(h||0===h)&&(f+=h),f+='" tabindex="-1"><i class="glyphicon lock"></i></a> ',h=i(n(24)).call(t,t&&t.type,"textarea",{hash:{},inverse:g.program(6,c,s),fn:g.program(3,l,s),data:s}),
(h||0===h)&&(f+=h),f+=" </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return"advanced-setting"}function l(e,t){var r,s="";return s+=' <label class="control-label" for="input_'+I((r=e&&e.id,typeof r===M?r.apply(e):r))+I((r=e&&e.idSuffix,typeof r===M?r.apply(e):r))+'"> <input type="checkbox" id="input_'+I((r=e&&e.id,typeof r===M?r.apply(e):r))+I((r=e&&e.idSuffix,
typeof r===M?r.apply(e):r))+'" name="'+I((r=e&&e.id,typeof r===M?r.apply(e):r))+'" value="1" ',r=a.if.call(e,e&&e.value,{hash:{},inverse:C.noop,fn:C.program(4,u,t),data:t}),(r||0===r)&&(s+=r),s+="> "+I(i(n(1)).call(e,e&&e.label,{hash:{},data:t}))+" </label> ",r=a.if.call(e,e&&e.summary,{hash:{},inverse:C.noop,fn:C.program(6,c,t),data:t}),(r||0===r)&&(s+=r),s+=" "}function u(e,t){return"checked"}function c(e,t){var a="";return a+=' <p class="help-block">'+I(i(n(1)).call(e,e&&e.summary,{hash:{},
data:t}))+"</p> "}function d(e,t){var r,s="";return s+=' <label class="control-label" for="input_'+I((r=e&&e.id,typeof r===M?r.apply(e):r))+I((r=e&&e.idSuffix,typeof r===M?r.apply(e):r))+'">'+I(i(n(1)).call(e,e&&e.label,{hash:{},data:t}))+"</label> ",r=a.if.call(e,e&&e.enumValues,{hash:{},inverse:C.program(13,v,t),fn:C.program(9,p,t),data:t}),(r||0===r)&&(s+=r),s+=" ",r=a.if.call(e,e&&e.summary,{hash:{},inverse:C.noop,fn:C.program(6,c,t),data:t}),(r||0===r)&&(s+=r),s+=" "}function p(e,t){
var n,i="";return i+=' <select id="input_'+I((n=e&&e.id,typeof n===M?n.apply(e):n))+I((n=e&&e.idSuffix,typeof n===M?n.apply(e):n))+'" name="'+I((n=e&&e.id,typeof n===M?n.apply(e):n))+'"> ',n=a.each.call(e,e&&e.enumValues,{hash:{},inverse:C.noop,fn:C.programWithDepth(10,h,t,e),data:t}),(n||0===n)&&(i+=n),i+=" </select> "}function h(e,t,a){var r,s="";return s+=' <option value="'+I((r=e&&e.value,typeof r===M?r.apply(e):r))+'" ',r=i(n(24)).call(e,e&&e.value,a&&a.value,{hash:{},inverse:C.noop,
fn:C.program(11,f,t),data:t}),(r||0===r)&&(s+=r),s+=">"+I(i(n(1)).call(e,e&&e.label,{hash:{},data:t}))+"</option> "}function f(e,t){return'selected="selected"'}function v(e,t){var r,s="";return s+=' <input type="',r=i(n(24)).call(e,e&&e.option,"hidden",{hash:{},inverse:C.program(16,g,t),fn:C.program(14,m,t),data:t}),(r||0===r)&&(s+=r),s+='" id="input_'+I((r=e&&e.id,typeof r===M?r.apply(e):r))+I((r=e&&e.idSuffix,typeof r===M?r.apply(e):r))+'" class="form-control" name="'+I((r=e&&e.id,
typeof r===M?r.apply(e):r))+'" value="'+I((r=e&&e.value,typeof r===M?r.apply(e):r))+'" ',r=a.if.call(e,e&&e.placeholder,{hash:{},inverse:C.noop,fn:C.program(18,y,t),data:t}),(r||0===r)&&(s+=r),s+="> "}function m(e,t){return"password"}function g(e,t){return"text"}function y(e,t){var n,i="";return i+='placeholder="'+I((n=e&&e.placeholder,typeof n===M?n.apply(e):n))+'"'}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var b,S="",I=this.escapeExpression,M="function",C=this
;return S+='<div class="form-group ',b=a.if.call(t,t&&t.advanced,{hash:{},inverse:C.noop,fn:C.program(1,o,s),data:s}),(b||0===b)&&(S+=b),S+='"> ',b=i(n(24)).call(t,t&&t.type,"bool",{hash:{},inverse:C.program(8,d,s),fn:C.program(3,l,s),data:s}),(b||0===b)&&(S+=b),S+=" </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var n,i=""
;return i+=' <textarea class="form-control text-field" id="text-'+f((n=e&&e.name,typeof n===h?n.apply(e):n))+'" name="'+f((n=e&&e.name,typeof n===h?n.apply(e):n))+'"',n=a.if.call(e,e&&e.rows,{hash:{},inverse:v.noop,fn:v.program(2,l,t),data:t}),(n||0===n)&&(i+=n),i+=' placeholder="'+f((n=e&&e.placeholder,typeof n===h?n.apply(e):n))+'">'+f((n=e&&e.value,typeof n===h?n.apply(e):n))+"</textarea> "}function l(e,t){var n,i="";return i+=' rows="'+f((n=e&&e.rows,typeof n===h?n.apply(e):n))+'"'}
function u(e,t){var n,i="";return i+=' <input type="text" id="text-'+f((n=e&&e.name,typeof n===h?n.apply(e):n))+'" class="form-control text-field" name="'+f((n=e&&e.name,typeof n===h?n.apply(e):n))+'" value="'+f((n=e&&e.value,typeof n===h?n.apply(e):n))+'" placeholder="'+f((n=e&&e.placeholder,typeof n===h?n.apply(e):n))+'" ',n=a.if.call(e,e&&e.excludeParam,{hash:{},inverse:v.noop,fn:v.program(5,c,t),data:t}),(n||0===n)&&(i+=n),i+="> "}function c(e,t){var n,i=""
;return i+='data-exclude-param="'+f((n=e&&e.excludeParam,typeof n===h?n.apply(e):n))+'" data-exclude-value="'+f((n=e&&e.excludeValue,typeof n===h?n.apply(e):n))+'"'}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var d,p="",h="function",f=this.escapeExpression,v=this;return p+='<div class="form-group"> <label for="text-'+f((d=t&&t.name,typeof d===h?d.apply(t):d))+'">'+f(i(n(1)).call(t,t&&t.label,{hash:{},data:s}))+"</label> ",d=i(n(24)).call(t,t&&t.type,"textarea",{hash:{},
inverse:v.program(4,u,s),fn:v.program(1,o,s),data:s}),(d||0===d)&&(p+=d),p+=" </div> "})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},'<div class="player-slider-track"> <div class="player-slider-progress"></div> </div> <div class="player-slider-thumb"></div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12)
;e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o,l="",u=this.escapeExpression;return l+='<form class="edit-section-advanced-form settings-container"> <div class="language-group"> <input type="hidden" name="language" value="'+u((o=t&&t.section,o=null==o||o===!1?o:o.language,
"function"==typeof o?o.apply(t):o))+'"> </div> <div class="row"> <div class="col-md-12 section-settings-region"></div> </div> <div class="row"> <div class="col-md-12"> <div class="form-group scanner-group hidden"> <label for="edit-section-scanner" class="control-label"> '+u(i(n(1)).call(t,"Scanner",{hash:{},data:s}))+' <span class="control-error">'+u(i(n(1)).call(t,"A scanner is required.",{hash:{},data:s
}))+'</span> </label> <select id="edit-section-scanner" name="scanner"></select> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="form-group agent-group hidden"> <label for="edit-section-agent" class="control-label"> '+u(i(n(1)).call(t,"Agent",{hash:{},data:s}))+' <span class="control-error">'+u(i(n(1)).call(t,"An agent is required.",{hash:{},data:s
}))+'</span> </label> <select id="edit-section-agent" name="agent"></select> </div> </div> </div> <div class="row"> <div class="col-md-12 section-agent-settings-region"></div> </div> </form> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return"hidden"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var l,u="",c=this.escapeExpression,d=this
;return u+='<form class="edit-section-folders-form settings-container"> <label> '+c(i(n(1)).call(t,"Add folders to your library",{hash:{},data:s}))+' </label> <div class="form-group Location-group"> <div class="paths-region"></div> <p class="add-folder-container"> <span class="add-folder-populating loading ',l=a.unless.call(t,t&&t.isPersonalCloudServerDriveCachePending,{hash:{},inverse:d.noop,fn:d.program(1,o,s),data:s}),(l||0===l)&&(u+=l),u+='"></span> <span class="add-folder-populating ',
l=a.unless.call(t,t&&t.isPersonalCloudServerDriveCachePending,{hash:{},inverse:d.noop,fn:d.program(1,o,s),data:s}),(l||0===l)&&(u+=l),u+='"> '+c(i(n(1)).call(t,"Plex Cloud is searching for folders",{hash:{},data:s}))+' </span> <span class="add-folder-error hidden"> '+c(i(n(1)).call(t,"Plex Cloud took too long finding folders. Please try again.",{hash:{},data:s}))+' </span> <button type="button" class="add-folder-btn btn btn-icon-label btn-default ',
l=a.if.call(t,t&&t.isPersonalCloudServerDriveCachePending,{hash:{},inverse:d.noop,fn:d.program(1,o,s),data:s}),(l||0===l)&&(u+=l),u+='"> <i class="glyphicon folder-plus"></i> '+c(i(n(1)).call(t,"Browse for media folder",{hash:{},data:s}))+' </button> </p> <p class="control-error">'+c(i(n(1)).call(t,"At least one folder is required.",{hash:{},data:s
}))+'</p> </div> <p class="help-block">'+c(i(n(1)).call(t,"Help us out by following {1}our guide{2} to naming and organizing your media.",'<a href="http://support.plex.tv/hc/en-us/categories/200028098-Media-Preparation" target="_blank">',"</a>",{hash:{},data:s}))+"</p> </form> "})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},'<div class="section-options" />'})},function(e,t,n){
var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){function r(e,t){var i,a,r="";return r+=' <input type="text" name="path" class="form-control" value="',(a=n.path)?i=a.call(e,{hash:{},data:t}):(a=e&&e.path,i=typeof a===u?a.call(e,{hash:{},data:t}):a),r+=c(i)+'"> '}function s(e,t){var i,a,r="";return r+=' <span class="form-static-value">',(a=n.path)?i=a.call(e,{hash:{},data:t}):(a=e&&e.path,i=typeof a===u?a.call(e,{hash:{},data:t}):a),
r+=c(i)+'<input type="hidden" name="path" value="',(a=n.path)?i=a.call(e,{hash:{},data:t}):(a=e&&e.path,i=typeof a===u?a.call(e,{hash:{},data:t}):a),r+=c(i)+'" /></span> '}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var o,l="",u="function",c=this.escapeExpression,d=this;return l+='<div class="col-md-12"> <div class="form-group path-group"> ',o=n.if.call(t,t&&t.canEditPath,{hash:{},inverse:d.program(3,s,a),fn:d.program(1,r,a),data:a}),(o||0===o)&&(l+=o),
l+=' <div class="path-actions"> <a href="#" class="remove-path-btn btn-link btn-gray"><i class="glyphicon remove-2"></i></a> </div> </div> </div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a=""
;return a+=' <p class="help-block"> '+d(i(n(1)).call(e,"Note: An active Plex Pass is required for this service. Don't have a Plex Pass? {1}Subscribe here{2}",'<a href="{3}" target="_blank">',"</a>",e&&e.plexPassUrl,{hash:{},data:t}))+" </p> "}function l(e,t){return'<div class="vendor-logo vendor-logo-lyricfind"></div>'}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var u,c="",d=this.escapeExpression,p=this
;return c+='<div class="choose-library use-premium-library" data-agent="com.plexapp.agents.plexmusic" data-scanner="Plex Premium Music Scanner"> <div class="row"> <div class="col-xs-12"> <div class="row use-library-header"> <div class="col-xs-12"> <input type="radio"> <span class="header-text"> '+d(i(n(1)).call(t,"Create a premium Plex music library!",{hash:{},data:s
}))+' </span> </div> </div> <div class="row use-premium-library-body"> <div class="col-xs-8"> <ul> <li>'+d(i(n(1)).call(t,"Access to the best artwork, artist bios, album reviews, and more",{hash:{},data:s}))+"</li> <li>"+d(i(n(1)).call(t,"Smart mixes based on track or mood",{hash:{},data:s}))+"</li> <li>"+d(i(n(1)).call(t,"Improved music recognition and matching",{hash:{},data:s}))+"</li> </ul> ",u=a.unless.call(t,t&&t.hasPremiumMusic,{hash:{},inverse:p.noop,fn:p.program(1,o,s),data:s}),
(u||0===u)&&(c+=u),c+=' </div> <div class="col-xs-4 vendor-logos"> ',u=a.if.call(t,t&&t.hasLyrics,{hash:{},inverse:p.noop,fn:p.program(3,l,s),data:s}),(u||0===u)&&(c+=u),c+=' <div class="vendor-logo vendor-logo-gracenote"></div> <div class="vendor-logo vendor-logo-plex-pass"></div> </div> </div> </div> </div> </div> <div class="choose-library use-basic-library"> <div class="row use-library-header"> <div class="col-xs-12"> <input type="radio"> '+d(i(n(1)).call(t,"Create a basic music library",{
hash:{},data:s}))+" </div> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a="";return a+=' <p class="help-block"> '+c(i(n(1)).call(e,"Note: An active Plex Pass is required for this service. Don't have a Plex Pass? {1}Subscribe here{2}",'<a href="{3}" target="_blank">',"</a>",e&&e.plexPassUrl,{hash:{},data:t}))+" </p> "}this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),s=s||{};var l,u="",c=this.escapeExpression,d=this;return u+='<div class="choose-library use-premium-library"> <div class="row"> <div class="col-xs-12"> <div class="row use-library-header"> <div class="col-xs-12"> <input type="radio" disabled> <span class="header-text"> '+c(i(n(1)).call(t,"Automatically tag my photos!",{hash:{},data:s
}))+' </span> </div> </div> <div class="use-premium-library-body"> <div class="row"> <div class="col-xs-8"> <ul> <li>'+c(i(n(1)).call(t,"Wondering if your photos contain kittens? Our advanced neural net can help you figure it out!",{hash:{},data:s}))+"</li> <li>"+c(i(n(1)).call(t,"A fun new way to explore your collection!",{hash:{},data:s
}))+'</li> </ul> </div> <div class="col-xs-4 vendor-logos"> <div class="vendor-logo vendor-logo-plex-pass"></div> </div> </div> <div class="row"> <div class="col-xs-12"> <p class="help-block"> '+c(i(n(1)).call(t,"Note: photo thumbnails will be temporarily uploaded to a third party for analysis. {1}Learn more{2}",'<a href="https://help.plex.tv/photo-auto-tagging" target="_blank">',"</a>",{hash:{},data:s}))+" </p> ",l=a.unless.call(t,t&&t.hasPremiumPhotos,{hash:{},inverse:d.noop,
fn:d.program(1,o,s),data:s}),(l||0===l)&&(u+=l),u+=' </div> </div> </div> </div> </div> </div> <div class="choose-library use-basic-library"> <div class="row use-library-header"> <div class="col-xs-12"> <input type="radio" disabled> '+c(i(n(1)).call(t,"No thanks, I don't care about kittens",{hash:{},data:s}))+" </div> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t,r){var s,o=""
;return o+=" "+p(i(n(25)).call(e,"setting",{hash:{idSuffix:"_c"},data:t}))+" ",s=a.if.call(e,r&&r.edit,{hash:{},inverse:h.noop,fn:h.program(2,l,t),data:t}),(s||0===s)&&(o+=s),o+=" "}function l(e,t){var a,r="";return r+=" ",a=i(n(24)).call(e,e&&e.id,"enableBIFGeneration",{hash:{},inverse:h.noop,fn:h.program(3,u,t),data:t}),(a||0===a)&&(r+=a),r+=" "}function u(e,t){var a=""
;return a+=' <div class="form-group"> <button type="button" class="delete-thumbnails-btn btn btn-sm btn-danger">'+p(i(n(1)).call(e,"Delete Preview Thumbnails",{hash:{},data:t}))+"</button> </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var c,d="",p=this.escapeExpression,h=this;return c=a.each.call(t,t&&t.settings,{hash:{},inverse:h.noop,fn:h.programWithDepth(1,o,s,t),data:s}),(c||0===c)&&(d+=c),d+=" "})},function(e,t,n){function i(e){
return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return"section-type-chosen"}function l(e,t){var a="";return a+=' <p class="prompt">'+g(i(n(1)).call(e,"Select your library type",{hash:{},data:t}))+"</p> "}function u(e,t){var a="";return a+=" <label>"+g(i(n(1)).call(e,"Library type",{hash:{},data:t}))+"</label> "}function c(e,t,r){var s,o="";return o+=' <a class="wizard-block section-type ',s=a.if.call(e,r&&r.canChangeType,{
hash:{},inverse:y.noop,fn:y.program(8,d,t),data:t}),(s||0===s)&&(o+=s),o+=" ",s=i(n(24)).call(e,r&&r.currentSectionKey,e&&e.key,{hash:{},inverse:y.noop,fn:y.program(10,p,t),data:t}),(s||0===s)&&(o+=s),o+='" data-key="'+g((s=e&&e.key,typeof s===b?s.apply(e):s))+'" href="#"> <i class="wizard-block-icon '+g((s=e&&e.sectionTypeIcon,typeof s===b?s.apply(e):s))+'"></i> '+g((s=e&&e.title,typeof s===b?s.apply(e):s))+" </a> "}function d(e,t){return"selectable"}function p(e,t){return"selected"}
function h(e,t){var a="";return a+=' <div class="row"> <div class="col-xs-12"> <p class="prompt">'+g(i(n(1)).call(e,"Name your library and choose language.",{hash:{},data:t}))+"</p> </div> </div> "}function f(e,t){var a="";return a+=" "+g(i(n(1)).call(e,"Last updated {1}",e&&e.updatedAt,{hash:{},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var v,m="",g=this.escapeExpression,y=this,b="function"
;return m+='<form class="edit-section-type-form settings-container ',v=a.if.call(t,(v=t&&t.section,null==v||v===!1?v:v.type),{hash:{},inverse:y.noop,fn:y.program(1,o,s),data:s}),(v||0===v)&&(m+=v),m+='"> ',v=a.if.call(t,t&&t.add,{hash:{},inverse:y.program(5,u,s),fn:y.program(3,l,s),data:s}),(v||0===v)&&(m+=v),m+=' <div class="wizard-blocks-group form-group type-group"> ',v=a.each.call(t,t&&t.sectionTypes,{hash:{},inverse:y.noop,fn:y.programWithDepth(7,c,s,t),data:s}),(v||0===v)&&(m+=v),
m+=' <label class="control-label"> <span class="control-error">'+g(i(n(1)).call(t,"You must select a media type.",{hash:{},data:s}))+'</span> </label> </div> <div class="visible-once-section-type-chosen"> ',v=a.if.call(t,t&&t.hasType,{hash:{},inverse:y.noop,fn:y.program(12,h,s),data:s}),(v||0===v)&&(m+=v),m+=' <div class="row"> <div class="col-md-7"> <div class="form-group title-group"> <div> <label for="edit-section-title" class="control-label"> '+g(i(n(1)).call(t,"Name",{hash:{},data:s
}))+' <span class="control-error">'+g(i(n(1)).call(t,"A library name is required.",{hash:{},data:s}))+'</span> </label> </div> <input type="text" id="edit-section-title" name="title" class="form-control" value="'+g((v=t&&t.section,v=null==v||v===!1?v:v.title,typeof v===b?v.apply(t):v))+'"> </div> </div> <div class="col-md-5"> <div class="form-group language-group"> <div> <label for="edit-section-language" class="control-label"> '+g(i(n(1)).call(t,"Language",{hash:{},data:s
}))+' <span class="control-error">'+g(i(n(1)).call(t,"A language is required.",{hash:{},data:s}))+'</span> </label> </div> <select id="edit-section-language" name="language"></select> </div> </div> </div> <div class="row"> <div class="col-md-12"> <span class="text-muted"> ',v=a.if.call(t,t&&t.updatedAt,{hash:{},inverse:y.noop,fn:y.program(14,f,s),data:s}),(v||0===v)&&(m+=v),m+=" </span> </div> </div> </div> </form> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}
var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var n,i="";return i+=' <option value="'+f((n=e&&e.value,typeof n===h?n.apply(e):n))+'" ',n=a.if.call(e,e&&e.selected,{hash:{},inverse:v.noop,fn:v.program(2,l,t),data:t}),(n||0===n)&&(i+=n),i+=">"+f((n=e&&e.label,typeof n===h?n.apply(e):n))+"</option> "}function l(e,t){return"selected"}function u(e,t){var a="";return a+=' <option value="">'+f(i(n(1)).call(e,"Loading...",{hash:{},data:t}))+"</option> "}
function c(e,t){var n,i="";return i+=' <option value="'+f((n=e&&e.value,typeof n===h?n.apply(e):n))+'">'+f((n=e&&e.label,typeof n===h?n.apply(e):n))+"</option> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var d,p="",h="function",f=this.escapeExpression,v=this;return p+='<div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="control-label" for="match-search-title">'+f(i(n(1)).call(t,"Title",{hash:{},data:s
}))+'</label> <input type="text" id="match-search-title" name="title" class="form-control" value="'+f((d=t&&t.item,d=null==d||d===!1?d:d.title,typeof d===h?d.apply(t):d))+'"> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label" for="match-search-agent">'+f(i(n(1)).call(t,"Agent",{hash:{},data:s}))+'</label> <select id="match-search-agent" name="agent"> ',d=a.each.call(t,t&&t.agents,{hash:{},inverse:v.program(4,u,s),fn:v.program(1,o,s),data:s}),
(d||0===d)&&(p+=d),p+=' </select> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="control-label" for="match-search-year">'+f(i(n(1)).call(t,"Year",{hash:{},data:s}))+'</label> <input type="text" id="match-search-year" name="year" class="form-control" value="'+f((d=t&&t.item,d=null==d||d===!1?d:d.year,
typeof d===h?d.apply(t):d))+'"> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label" for="match-search-language">'+f(i(n(1)).call(t,"Language",{hash:{},data:s}))+'</label> <select id="match-search-language" name="language"> ',d=a.each.call(t,t&&t.languages,{hash:{},inverse:v.program(4,u,s),fn:v.program(6,c,s),data:s}),(d||0===d)&&(p+=d),p+=" </select> </div> </div> </div> "})},function(e,t,n){var i=n(12);e.exports=(i.default||i).template(function(e,t,n,i,a){
return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{},'<div class="result-region"> <div class="loading loading-inline"></div> </div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var n,i="";return i+=" ",n=a.if.call(e,e&&e.title,{hash:{},inverse:p.noop,fn:p.program(2,l,t),data:t}),(n||0===n)&&(i+=n),i+=" "}function l(e,t){var a,r=""
;return r+=' <li> <a class="card btn-gray ',a=i(n(24)).call(e,e&&e.id,"all",{hash:{},inverse:p.noop,fn:p.program(3,u,t),data:t}),(a||0===a)&&(r+=a),r+='" data-id="'+f((a=e&&e.id,typeof a===h?a.apply(e):a))+'" href="#">'+f(i(n(1)).call(e,e&&e.title,{hash:{},data:t}))+"</a> </li> "}function u(e,t){return"selected"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var c,d="",p=this,h="function",f=this.escapeExpression
;return d+='<div class="col-sm-4 col-md-3"> <ul class="nav nav-cards"> ',c=a.each.call(t,t&&t.deviceTypes,{hash:{},inverse:p.noop,fn:p.program(1,o,s),data:s}),(c||0===c)&&(d+=c),d+=' </ul> </div> <div class="device-list-container col-sm-8 col-md-9"></div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o="",l=this.escapeExpression
;return o+='<h3 class="invite-list-header top">'+l(i(n(1)).call(t,"Invites",{hash:{},data:s}))+'</h3> <div class="invite-list-container"></div> <h3 class="friend-list-header">'+l(i(n(1)).call(t,"Friends",{hash:{},data:s}))+'</h3> <div class="friend-list-container"></div> <h3 class="pending-list-header">'+l(i(n(1)).call(t,"Pending",{hash:{},data:s}))+'</h3> <div class="pending-list-container"></div> </div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12)
;e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o="",l=this.escapeExpression;return o+='<h3 class="invite-list-header top">'+l(i(n(1)).call(t,"Invites",{hash:{},data:s}))+'</h3> <div class="invite-list-container"></div> <h3 class="friend-list-header">'+l(i(n(1)).call(t,"My Home",{hash:{},data:s}))+'</h3> <div class="friend-list-container"></div> <h3 class="pending-list-header">'+l(i(n(1)).call(t,"Pending",{hash:{},
data:s}))+'</h3> <div class="pending-list-container"></div> </div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return"selected"}function l(e,t){return"hidden"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var u,c="",d=this,p=this.escapeExpression;return c+='<ul class="nav nav-header pull-right"> <li class="web-nav-item"><a class="web-btn btn-gray ',
u=i(n(24)).call(t,t&&t.subset,"web",{hash:{},inverse:d.noop,fn:d.program(1,o,s),data:s}),(u||0===u)&&(c+=u),c+='" href="#!/settings/web">'+p(i(n(1)).call(t,"Web",{hash:{},data:s}))+'</a></li> <li class="server-nav-item ',u=a.unless.call(t,t&&t.hasPrimaryServer,{hash:{},inverse:d.noop,fn:d.program(3,l,s),data:s}),(u||0===u)&&(c+=u),c+='"><a class="server-btn btn-gray ',u=i(n(24)).call(t,t&&t.subset,"server",{hash:{},inverse:d.noop,fn:d.program(1,o,s),data:s}),(u||0===u)&&(c+=u),
c+='" href="#!/settings/server">'+p(i(n(1)).call(t,"Server",{hash:{},data:s}))+'</a></li> <li class="users-nav-item ',u=a.unless.call(t,t&&t.signedIn,{hash:{},inverse:d.noop,fn:d.program(3,l,s),data:s}),(u||0===u)&&(c+=u),c+='"><a class="users-btn btn-gray ',u=i(n(24)).call(t,t&&t.subset,"users",{hash:{},inverse:d.noop,fn:d.program(1,o,s),data:s}),(u||0===u)&&(c+=u),c+='" href="#!/settings/users">'+p(i(n(1)).call(t,"Users",{hash:{},data:s
}))+'<span class="badge"></span></a></li> <li class="devices-nav-item ',u=a.unless.call(t,t&&t.signedIn,{hash:{},inverse:d.noop,fn:d.program(3,l,s),data:s}),(u||0===u)&&(c+=u),c+='"><a class="devices-btn btn-gray ',u=i(n(24)).call(t,t&&t.subset,"devices",{hash:{},inverse:d.noop,fn:d.program(1,o,s),data:s}),(u||0===u)&&(c+=u),c+='" href="#!/settings/devices">'+p(i(n(1)).call(t,"Devices",{hash:{},data:s}))+"</a></li> </ul> <h2>"+p(i(n(1)).call(t,"Settings",{hash:{},data:s
}))+'</h2> <div class="settings-container"></div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return"hidden"}function l(e,t){return"selected"}function u(e,t){var a,r="";return r+=' <li> <a class="friends-card card btn-gray ',a=i(n(24)).call(e,e&&e.subset,"friends",{hash:{},inverse:p.noop,fn:p.program(3,l,t),data:t}),(a||0===a)&&(r+=a),
r+='" href="#!/settings/users/friends"> <span class="badge"></span> '+h(i(n(1)).call(e,"Friends",{hash:{},data:t}))+" </a> </li> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var c,d="",p=this,h=this.escapeExpression;return d+='<div class="filter-bar"> <div class="filter-bar-right"> <span class="user-actions ',c=a.unless.call(t,t&&t.showUserActions,{hash:{},inverse:p.noop,fn:p.program(1,o,s),data:s}),(c||0===c)&&(d+=c),
d+='"> <button class="add-user-btn btn btn-sm btn-default">'+h(i(n(1)).call(t,"Add User",{hash:{},data:s}))+'</button> <button class="enable-guest-btn btn btn-sm btn-default ',c=a.unless.call(t,t&&t.showEnableGuest,{hash:{},inverse:p.noop,fn:p.program(1,o,s),data:s}),(c||0===c)&&(d+=c),d+='">'+h(i(n(1)).call(t,"Enable Guest",{hash:{},data:s}))+'</button> <button class="disable-guest-btn btn btn-sm btn-danger ',c=a.unless.call(t,t&&t.showDisableGuest,{hash:{},inverse:p.noop,fn:p.program(1,o,s),
data:s}),(c||0===c)&&(d+=c),d+='">'+h(i(n(1)).call(t,"Disable Guest",{hash:{},data:s}))+'</button> </span> <button class="leave-home-btn btn btn-sm btn-danger ',c=a.unless.call(t,t&&t.showLeaveHome,{hash:{},inverse:p.noop,fn:p.program(1,o,s),data:s}),(c||0===c)&&(d+=c),d+='">'+h(i(n(1)).call(t,"Leave Home",{hash:{},data:s}))+'</button> <button class="invite-friend-btn btn btn-sm btn-default">'+h(i(n(1)).call(t,"Invite Friend",{hash:{},data:s
}))+'</button> </div> </div> <div class="users-row row"> <div class="col-sm-4 col-md-3"> <ul class="nav nav-cards"> <li> <a class="home-card card btn-gray ',c=i(n(24)).call(t,t&&t.subset,"home",{hash:{},inverse:p.noop,fn:p.program(3,l,s),data:s}),(c||0===c)&&(d+=c),d+='" href="#!/settings/users/home"> <span class="badge"></span> '+h(i(n(1)).call(t,"My Home",{hash:{},data:s}))+" </a> </li> ",c=a.if.call(t,t&&t.showFriends,{hash:{},inverse:p.noop,fn:p.program(5,u,s),data:s}),(c||0===c)&&(d+=c),
d+=" </ul> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t,a){var r,s="";return s+=' <option value="'+k((r=e&&e.value,typeof r===A?r.apply(e):r))+'" ',r=i(n(24)).call(e,e&&e.value,(r=a&&a.settings,null==r||r===!1?r:r.language),{hash:{},inverse:_.noop,fn:_.program(2,l,t),data:t}),(r||0===r)&&(s+=r),s+="> "+k((r=e&&e.title,typeof r===A?r.apply(e):r))+" </option> "}function l(e,t){
return"selected"}function u(e,t){var r,s="";return s+=' <div class="form-group"> <label class="control-label"> <input type="checkbox" id="autoLogin" ',r=a.if.call(e,(r=e&&e.settings,null==r||r===!1?r:r.autoLogin),{hash:{},inverse:_.noop,fn:_.program(5,c,t),data:t}),(r||0===r)&&(s+=r),s+="> "+k(i(n(1)).call(e,"Automatically Sign In",{hash:{},data:t}))+' </label> <p class="help-block">'+k(i(n(1)).call(e,"Do not prompt to select a user or enter a PIN during startup on this device.",{hash:{},data:t
}))+"</p> </div> "}function c(e,t){return"checked"}function d(e,t,a){var r,s="";return s+=' <option value="'+k((r=e&&e.value,typeof r===A?r.apply(e):r))+'" ',r=i(n(24)).call(e,e&&e.value,(r=a&&a.settings,null==r||r===!1?r:r.allowHttpFallback),{hash:{},inverse:_.noop,fn:_.program(2,l,t),data:t}),(r||0===r)&&(s+=r),s+=">"+k(i(n(1)).call(e,e&&e.title,{hash:{},data:t}))+"</option> "}function p(e,t,a){var r,s="";return s+=' <option value="'+k((r=e&&e.value,typeof r===A?r.apply(e):r))+'" ',
r=i(n(24)).call(e,e&&e.value,(r=a&&a.experienceSettings,null==r||r===!1?r:r.timeFormat),{hash:{},inverse:_.noop,fn:_.program(2,l,t),data:t}),(r||0===r)&&(s+=r),s+=">"+k(i(n(1)).call(e,e&&e.title,{hash:{},data:t}))+"</option> "}function h(e,t){var r,s="";return s+=' <div class="form-group"> <label class="control-label"> <input type="checkbox" id="autoAdjustQuality" ',r=a.if.call(e,(r=e&&e.experienceSettings,null==r||r===!1?r:r.autoAdjustQuality),{hash:{},inverse:_.noop,fn:_.program(5,c,t),data:t
}),(r||0===r)&&(s+=r),s+="> "+k(i(n(1)).call(e,"Automatically adjust quality (Beta)",{hash:{},data:t}))+' </label> <p class="help-block">'+k(i(n(1)).call(e,"Plex will increase or decrease quality based on connection speed. Requires latest Plex Media Server.",{hash:{},data:t}))+"</p> </div> "}function f(e,t){return"settings-header"}function v(e,t){return"settings-header-first"}function m(e,t,a){var r,s="";return s+=' <option value="'+k((r=e&&e.index,typeof r===A?r.apply(e):r))+'" ',
r=i(n(24)).call(e,e&&e.index,(r=a&&a.experienceSettings,null==r||r===!1?r:r.remoteQuality),{hash:{},inverse:_.noop,fn:_.program(2,l,t),data:t}),(r||0===r)&&(s+=r),s+="> "+k(i(n(278)).call(e,e,{hash:{},data:t}))+" </option> "}function g(e,t,a){var r,s="";return s+=' <option value="'+k((r=e&&e.index,typeof r===A?r.apply(e):r))+'" ',r=i(n(24)).call(e,e&&e.index,(r=a&&a.experienceSettings,null==r||r===!1?r:r.localQuality),{hash:{},inverse:_.noop,fn:_.program(2,l,t),data:t}),(r||0===r)&&(s+=r),
s+="> "+k(i(n(278)).call(e,e,{hash:{},data:t}))+" </option> "}function y(e,t,a){var r,s="";return s+=' <option value="'+k((r=e&&e.value,typeof r===A?r.apply(e):r))+'" ',r=i(n(24)).call(e,e&&e.value,(r=a&&a.settings,null==r||r===!1?r:r.debugLevel),{hash:{},inverse:_.noop,fn:_.program(2,l,t),data:t}),(r||0===r)&&(s+=r),s+=">"+k(i(n(1)).call(e,e&&e.title,{hash:{},data:t}))+"</option> "}function b(e,t){var r,s=""
;return s+=' <div class="form-group"> <label for="chromecastAppID">Chromecast Receiver</label> <select id="chromecastAppID"> ',r=a.each.call(e,e&&e.chromecastAppIDs,{hash:{},inverse:_.noop,fn:_.programWithDepth(24,S,t,e),data:t}),(r||0===r)&&(s+=r),s+=' </select> <p class="help-block">Refresh after saving this setting for it to take effect.</p> </div> <div id="chromecast-custom-group" class="form-group ',r=i(n(165)).call(e,(r=e&&e.settings,null==r||r===!1?r:r.chromecastAppID),"custom",{hash:{},
inverse:_.noop,fn:_.program(26,I,t),data:t}),(r||0===r)&&(s+=r),s+='"> <label for="chromecastCustomAppID">Custom Chromecast Application ID</label> <input type="text" id="chromecastCustomAppID" class="form-control" placeholder="Application ID" value="'+k((r=e&&e.settings,r=null==r||r===!1?r:r.chromecastCustomAppID,
typeof r===A?r.apply(e):r))+'"> <p class="help-block">Refresh after saving this setting for it to take effect.</p> </div> <div class="form-group"> <label class="control-label"> <input type="checkbox" id="rejectDirectConnections" ',r=a.if.call(e,(r=e&&e.settings,null==r||r===!1?r:r.rejectDirectConnections),{hash:{},inverse:_.noop,fn:_.program(5,c,t),data:t}),(r||0===r)&&(s+=r),
s+='> Reject direct connections </label> <p class="help-block">Forces relayed connections if available. Refresh after saving this setting for it to take effect.</p> </div> '}function S(e,t,a){var r,s="";return s+=' <option value="'+k((r=e&&e.value,typeof r===A?r.apply(e):r))+'" ',r=i(n(24)).call(e,e&&e.value,(r=a&&a.settings,null==r||r===!1?r:r.chromecastAppID),{hash:{},inverse:_.noop,fn:_.program(2,l,t),data:t}),(r||0===r)&&(s+=r),s+=">"+k(i(n(1)).call(e,e&&e.title,{hash:{},data:t
}))+"</option> "}function I(e,t){return"hidden"}function M(e,t){var a="";return a+=" "+k(i(n(1)).call(e,"Allows the player to play compatible media without any conversion.",{hash:{},data:t}))+" "}function C(e,t){var a="";return a+=" "+k(i(n(1)).call(e,"Allows the player to play compatible media without any conversion. In most browsers, direct play supports MP4 videos with h264 video and AAC audio. Videos with subtitles cannot be played directly.",{hash:{},data:t}))+" "}function w(e,t){
return"advanced-setting"}function D(e,t,a){var r,s="";return s+=' <option value="'+k((r=e&&e.value,typeof r===A?r.apply(e):r))+'" ',r=i(n(24)).call(e,e&&e.value,(r=a&&a.settings,null==r||r===!1?r:r.audioBoost),{hash:{},inverse:_.noop,fn:_.program(2,l,t),data:t}),(r||0===r)&&(s+=r),s+=">"+k(i(n(1)).call(e,e&&e.title,{hash:{},data:t}))+"</option> "}function P(e,t){var r,s="";return s+=' <div class="form-group"> <label for="subtitleSize">'+k(i(n(1)).call(e,"Subtitle Size",{hash:{},data:t
}))+'</label> <select id="subtitleSize" data-type="int"> ',r=a.each.call(e,e&&e.subtitleSizes,{hash:{},inverse:_.noop,fn:_.programWithDepth(37,T,t,e),data:t}),(r||0===r)&&(s+=r),s+=' </select> </div> <div class="form-group advanced-setting"> <label for="subtitlesBurnLevel">'+k(i(n(1)).call(e,"Burn Subtitles",{hash:{},data:t}))+'</label> <select id="subtitlesBurnLevel"> ',r=a.each.call(e,e&&e.subtitlesBurnLevels,{hash:{},inverse:_.noop,fn:_.programWithDepth(39,x,t,e),data:t}),(r||0===r)&&(s+=r),
s+=' </select> <p class="help-block">'+k(i(n(1)).call(e,"Determines if the server should burn in subtitles when converting video depending on the subtitles format. Avoiding burn in improves server performance and is only supported by the HTML5 player.",{hash:{},data:t}))+"</p> </div> "}function T(e,t,a){var r,s="";return s+=' <option value="'+k((r=e&&e.value,typeof r===A?r.apply(e):r))+'" ',r=i(n(24)).call(e,e&&e.value,(r=a&&a.experienceSettings,null==r||r===!1?r:r.subtitleSize),{hash:{},
inverse:_.noop,fn:_.program(2,l,t),data:t}),(r||0===r)&&(s+=r),s+=">"+k(i(n(1)).call(e,e&&e.title,{hash:{},data:t}))+"</option> "}function x(e,t,a){var r,s="";return s+=' <option value="'+k((r=e&&e.value,typeof r===A?r.apply(e):r))+'" ',r=i(n(24)).call(e,e&&e.value,(r=a&&a.experienceSettings,null==r||r===!1?r:r.subtitlesBurnLevel),{hash:{},inverse:_.noop,fn:_.program(2,l,t),data:t}),(r||0===r)&&(s+=r),s+=">"+k(i(n(1)).call(e,e&&e.title,{hash:{},data:t}))+"</option> "}function E(e,t,a){var r,s=""
;return s+=' <option value="'+k((r=e&&e.value,typeof r===A?r.apply(e):r))+'" ',r=i(n(24)).call(e,e&&e.value,(r=a&&a.experienceSettings,null==r||r===!1?r:r.extrasPrefixCount),{hash:{},inverse:_.noop,fn:_.program(2,l,t),data:t}),(r||0===r)&&(s+=r),s+=">"+k(i(n(1)).call(e,e&&e.title,{hash:{},data:t}))+"</option> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var N,L="",A="function",k=this.escapeExpression,_=this
;return L+='<div class="filter-bar"> <button class="toggle-advanced-btn btn btn-sm btn-default pull-right basic-setting">'+k(i(n(1)).call(t,"Show Advanced",{hash:{},data:s}))+'</button> <button class="toggle-advanced-btn btn btn-sm btn-default pull-right advanced-setting">'+k(i(n(1)).call(t,"Hide Advanced",{hash:{},data:s
}))+'</button> </div> <div class="row"> <div class="col-sm-4 col-md-3"> <ul class="settings-nav nav nav-cards"> <li><a class="card btn-gray selected" href="#general-web-group">'+k(i(n(1)).call(t,"General",{hash:{},data:s}))+'</a></li> <li><a class="card btn-gray" href="#quality-web-group">'+k(i(n(1)).call(t,"Quality",{hash:{},data:s}))+'</a></li> <li class="advanced-setting"><a class="card btn-gray" href="#debug-web-group">'+k(i(n(1)).call(t,"Debug",{hash:{},data:s
}))+'</a></li> <li><a class="card btn-gray" href="#player-web-group">'+k(i(n(1)).call(t,"Player",{hash:{},data:s}))+'</a></li> </ul> </div> <div class="col-sm-8 col-md-9"> <form id="web-settings-form"> <div id="general-web-group" class="settings-group active"> <h4 class="version-title"> '+k(i(n(1)).call(t,"Version",{hash:{},data:s}))+" "+k((N=t&&t.version,typeof N===A?N.apply(t):N))+' </h4> <div class="form-group"> <label for="language">'+k(i(n(1)).call(t,"Language",{hash:{},data:s
}))+'</label> <select id="language"> ',N=a.each.call(t,t&&t.languages,{hash:{},inverse:_.noop,fn:_.programWithDepth(1,o,s,t),data:s}),(N||0===N)&&(L+=N),L+=' </select> <p class="help-block">'+k(i(n(1)).call(t,"Help us translate this app into your language {1}here{2}.",'<a href="https://transifex.com/plex-1/plex-web" target="_blank">',"</a>",{hash:{},data:s}))+"</p> </div> ",N=a.if.call(t,t&&t.hasHome,{hash:{},inverse:_.noop,fn:_.program(4,u,s),data:s}),(N||0===N)&&(L+=N),
L+=' <div class="form-group"> <label class="control-label"> <input type="checkbox" id="playThemeMusic" ',N=a.if.call(t,(N=t&&t.experienceSettings,null==N||N===!1?N:N.playThemeMusic),{hash:{},inverse:_.noop,fn:_.program(5,c,s),data:s}),(N||0===N)&&(L+=N),L+="> "+k(i(n(1)).call(t,"Play Theme Music",{hash:{},data:s}))+' </label> <p class="help-block">'+k(i(n(1)).call(t,"Automatically play theme music in the background when available.",{hash:{},data:s
}))+'</p> </div> <div class="form-group advanced-setting"> <label class="control-label"> <input type="checkbox" id="companion" ',N=a.if.call(t,(N=t&&t.settings,null==N||N===!1?N:N.companion),{hash:{},inverse:_.noop,fn:_.program(5,c,s),data:s}),(N||0===N)&&(L+=N),L+="> "+k(i(n(1)).call(t,"Advertise as player",{hash:{},data:s}))+' </label> <p class="help-block">'+k(i(n(1)).call(t,"Allow other Plex apps to fling content to this device and control it remotely.",{hash:{},data:s
}))+'</p> </div> <div class="form-group advanced-setting"> <label for="allowHttpFallback">'+k(i(n(1)).call(t,"Allow Fallback to Insecure Connections",{hash:{},data:s}))+'</label> <select id="allowHttpFallback"> ',N=a.each.call(t,t&&t.httpFallbackOptions,{hash:{},inverse:_.noop,fn:_.programWithDepth(7,d,s,t),data:s}),(N||0===N)&&(L+=N),L+=' </select> <p class="help-block">'+k(i(n(1)).call(t,"Allow this browser to make insecure connections to Plex Media Server if secure connections fail.",{
hash:{},data:s}))+'</p> </div> <div class="form-group"> <label for="timeFormat">'+k(i(n(1)).call(t,"Time Format",{hash:{},data:s}))+'</label> <select id="timeFormat"> ',N=a.each.call(t,t&&t.timeFormats,{hash:{},inverse:_.noop,fn:_.programWithDepth(9,p,s,t),data:s}),(N||0===N)&&(L+=N),L+=' </select> </div> </div> <div id="quality-web-group" class="settings-group"> ',N=a.if.call(t,t&&t.hasAdaptiveBitrate,{hash:{},inverse:_.noop,fn:_.program(11,h,s),data:s}),(N||0===N)&&(L+=N),L+=' <h4 class="',
N=a.if.call(t,t&&t.hasAdaptiveBitrate,{hash:{},inverse:_.program(15,v,s),fn:_.program(13,f,s),data:s}),(N||0===N)&&(L+=N),L+='">'+k(i(n(1)).call(t,"Internet Streaming",{hash:{},data:s}))+'</h4> <div class="form-group"> <label for="remoteQuality">'+k(i(n(1)).call(t,"Video quality",{hash:{},data:s}))+'</label> <select id="remoteQuality" data-type="int"> <option value="-1">'+k(i(n(1)).call(t,"Maximum",{hash:{},data:s}))+"</option> ",N=a.each.call(t,t&&t.availableQualities,{hash:{},inverse:_.noop,
fn:_.programWithDepth(17,m,s,t),data:s}),(N||0===N)&&(L+=N),L+=' </select> <p class="help-block">'+k(i(n(1)).call(t,"Set the default quality for streaming video over the internet. If quality is set too high, videos will start slowly and pause frequently.",{hash:{},data:s}))+'</p> </div> <div class="form-group"> <label class="control-label"> <input type="checkbox" id="remoteSmallVideoAtOriginalQuality" ',N=a.if.call(t,(N=t&&t.experienceSettings,
null==N||N===!1?N:N.remoteSmallVideoAtOriginalQuality),{hash:{},inverse:_.noop,fn:_.program(5,c,s),data:s}),(N||0===N)&&(L+=N),L+="> "+k(i(n(1)).call(t,"Play smaller videos at original quality",{hash:{},data:s
}))+' </label> <p class="help-block">'+k(i(n(1)).call(t,"When a video file is smaller than the quality above, try playing the original video without converting. This preserves full quality, but playback may pause frequently. ","Automatically adjust quality"," will be disabled for these videos.",{hash:{},data:s}))+'</p> </div> <h4 class="settings-header">'+k(i(n(1)).call(t,"Home Streaming",{hash:{},data:s
}))+'</h4> <div class="form-group"> <label class="control-label"> <input type="checkbox" id="useHomeStreamingRecommendedSettings" ',N=a.if.call(t,(N=t&&t.experienceSettings,null==N||N===!1?N:N.useHomeStreamingRecommendedSettings),{hash:{},inverse:_.noop,fn:_.program(5,c,s),data:s}),(N||0===N)&&(L+=N),L+="> "+k(i(n(1)).call(t,"Use recommended settings",{hash:{},data:s
}))+' </label> <p class="help-block recommended-home-streaming-settings">'+k(i(n(1)).call(t,"All compatible videos will play at original quality. Incompatible videos will be converted at maximum quality.",{hash:{},data:s}))+'</p> </div> <div class="form-group custom-home-streaming-settings"> <label for="localQuality">'+k(i(n(1)).call(t,"Video quality",{hash:{},data:s}))+'</label> <select id="localQuality" data-type="int"> <option value="-1">'+k(i(n(1)).call(t,"Maximum",{hash:{},data:s
}))+"</option> ",N=a.each.call(t,t&&t.availableQualities,{hash:{},inverse:_.noop,fn:_.programWithDepth(19,g,s,t),data:s}),(N||0===N)&&(L+=N),L+=' </select> <p class="help-block">'+k(i(n(1)).call(t,"Choose the default video quality to use for local Wi-Fi streaming on home networks. If quality is set too high, videos will start slowly and pause frequently.",{hash:{},data:s
}))+'</p> </div> </div> <div id="debug-web-group" class="settings-group"> <div class="form-group"> <label for="debugLevel">'+k(i(n(1)).call(t,"Debug Level",{hash:{},data:s}))+'</label> <select id="debugLevel" data-type="int"> ',N=a.each.call(t,t&&t.debugLevels,{hash:{},inverse:_.noop,fn:_.programWithDepth(21,y,s,t),data:s}),(N||0===N)&&(L+=N),L+=' </select> <p class="help-block">'+k(i(n(1)).call(t,"You can view the debug logs {1}here{2}.",'<a href="#!/logs">',"</a>",{hash:{},data:s
}))+"</p> </div> ",N=a.if.call(t,t&&t.isNinja,{hash:{},inverse:_.noop,fn:_.program(23,b,s),data:s}),(N||0===N)&&(L+=N),L+=' <div class="form-group"> <label class="control-label"> <input type="checkbox" id="directPlay" ',N=a.if.call(t,(N=t&&t.settings,null==N||N===!1?N:N.directPlay),{hash:{},inverse:_.noop,fn:_.program(5,c,s),data:s}),(N||0===N)&&(L+=N),L+="> "+k(i(n(1)).call(t,"Direct Play",{hash:{},data:s}))+' </label> <p class="help-block"> ',N=a.if.call(t,t&&t.isPMPDesktop,{hash:{},
inverse:_.program(30,C,s),fn:_.program(28,M,s),data:s}),(N||0===N)&&(L+=N),L+=' </p> </div> <div class="form-group"> <label class="control-label"> <input type="checkbox" id="directStream" ',N=a.if.call(t,(N=t&&t.settings,null==N||N===!1?N:N.directStream),{hash:{},inverse:_.noop,fn:_.program(5,c,s),data:s}),(N||0===N)&&(L+=N),L+="> "+k(i(n(1)).call(t,"Direct Stream",{hash:{},data:s
}))+' </label> <p class="help-block">'+k(i(n(1)).call(t,"Allows the server to copy compatible audio and video streams without converting them.",{hash:{},data:s}))+'</p> </div> </div> <div id="player-web-group" class="settings-group"> <h4 class="settings-header-first ',N=a.if.call(t,t&&t.isPMPDesktop,{hash:{},inverse:_.noop,fn:_.program(32,w,s),data:s}),(N||0===N)&&(L+=N),L+='">'+k(i(n(1)).call(t,"Audio & Subtitles",{hash:{},data:s
}))+'</h4> <div class="form-group advanced-setting"> <label for="audioBoost">'+k(i(n(1)).call(t,"Multi-Channel Audio Boost",{hash:{},data:s}))+'</label> <select id="audioBoost" data-type="int"> ',N=a.each.call(t,t&&t.audioBoostLevels,{hash:{},inverse:_.noop,fn:_.programWithDepth(34,D,s,t),data:s}),(N||0===N)&&(L+=N),L+=' </select> <p class="help-block">'+k(i(n(1)).call(t,"Boost volume when converting multi-channel audio to stereo.",{hash:{},data:s}))+"</p> </div> ",
N=a.unless.call(t,t&&t.isPMPDesktop,{hash:{},inverse:_.noop,fn:_.program(36,P,s),data:s}),(N||0===N)&&(L+=N),L+=' <h4 class="settings-header">'+k(i(n(1)).call(t,"Extras",{hash:{},data:s}))+'</h4> <div class="form-group"> <label for="extrasPrefixCount">'+k(i(n(1)).call(t,"Cinema Trailers to Play Before Movies",{hash:{},data:s}))+'</label> <select id="extrasPrefixCount" data-type="int"> ',N=a.each.call(t,t&&t.extrasPrefixCounts,{hash:{},inverse:_.noop,fn:_.programWithDepth(41,E,s,t),data:s}),
(N||0===N)&&(L+=N),L+=' </select> </div> </div> <div class="form-footer"> <button type="submit" class="submit-btn btn btn-lg btn-primary btn-loading disabled"> <div class="loading loading-sm"></div> <span class="btn-label">'+k(i(n(1)).call(t,"Save Changes",{hash:{},data:s}))+'</span> </button> <span class="form-message"></span> </div> </form> </div> </div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){
function o(e,t,a){var r,s="";return s+=' <li class="',r=i(n(24)).call(e,(r=a&&a.currentType,null==r||r===!1?r:r.id),e&&e.id,{hash:{},inverse:d.noop,fn:d.program(2,l,t),data:t}),(r||0===r)&&(s+=r),s+='"> <a class="btn-gray" data-type="'+h((r=e&&e.typeString,typeof r===p?r.apply(e):r))+'" href="#">'+h(i(n(1)).call(e,e&&e.plural,{hash:{},data:t}))+"</a> </li> "}function l(e,t){return"active"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{}
;var u,c="",d=this,p="function",h=this.escapeExpression;return c+='<ul class="agent-types-nav nav nav-pills"> ',u=a.each.call(t,t&&t.agentTypes,{hash:{},inverse:d.noop,fn:d.programWithDepth(1,o,s,t),data:s}),(u||0===u)&&(c+=u),c+=' </ul> <div class="agents-list-container"></div> <p class="help-block sortable-help-block">'+h(i(n(1)).call(t,"Select which additional agents should contribute to metadata from {1}, and drag them to change the order of preference.",'<span class="agent-label"></span>',{
hash:{},data:s}))+'</p> <div class="contributors-list-container"></div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a="";return a+=" "+c(i(n(25)).call(e,"setting",{hash:{idSuffix:"_c"},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var l,u="",c=this.escapeExpression,d=this
;return u+='<div class="sign-in-region"></div> <hr> <form id="server-settings-form"> <div class="form-group"> <h4 class="version-header"><span class="version"></span> <span class="update-region"></span></h4> </div> ',l=a.each.call(t,t,{hash:{},inverse:d.noop,fn:d.program(1,o,s),data:s}),(l||0===l)&&(u+=l),
u+=' <div class="form-footer"> <button type="submit" class="submit-btn btn btn-lg btn-primary btn-loading disabled"> <div class="loading loading-sm"></div> <span class="btn-label">'+c(i(n(1)).call(t,"Save Changes",{hash:{},data:s}))+'</span> </button> <span class="form-message"></span> </div> </form> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var r,s=""
;return s+=' <p class="text-muted"> '+h(i(n(1)).call(e,"The Plex Media Server logs and database can be helpful to developers and forum community members in diagnosing server issues.",{hash:{},data:t}))+' </p> <div class="help-btn-container"> ',r=a.if.call(e,e&&e.showDownloadLogs,{hash:{},inverse:f.noop,fn:f.program(2,l,t),data:t}),(r||0===r)&&(s+=r),s+=" ",r=a.if.call(e,e&&e.showDownloadDatabases,{hash:{},inverse:f.noop,fn:f.program(4,u,t),data:t}),(r||0===r)&&(s+=r),s+=" </div> "}
function l(e,t){var a,r="";return r+=' <a class="btn btn-primary" href="'+h((a=e&&e.downloadLogsUrl,typeof a===p?a.apply(e):a))+'" target="'+h((a=e&&e.defaultLinkTarget,typeof a===p?a.apply(e):a))+'">'+h(i(n(1)).call(e,"Download Logs",{hash:{},data:t}))+"</a> "}function u(e,t){var a,r="";return r+=' <a class="btn btn-primary" href="'+h((a=e&&e.downloadDatabasesUrl,typeof a===p?a.apply(e):a))+'" target="'+h((a=e&&e.defaultLinkTarget,
typeof a===p?a.apply(e):a))+'">'+h(i(n(1)).call(e,"Download Database",{hash:{},data:t}))+"</a> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var c,d="",p="function",h=this.escapeExpression,f=this;return d+='<div class="help-container"> <p class="text-muted"> '+h(i(n(1)).call(t,"You can find documentation, guides and FAQs as well as our friendly Community Forums among our {1}support resources{2}.",'<a href="https://support.plex.tv" target="_blank">',"</a>",{hash:{},data:s
}))+" </p> ",c=a.if.call(t,t&&t.showDownloadLogsOrDatabases,{hash:{},inverse:f.noop,fn:f.program(1,o,s),data:s}),(c||0===c)&&(d+=c),d+=" </div> "})},function(e,t){e.exports=function(){return""}},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o,l="",u=this.escapeExpression
;return l+='<a class="card btn-gray" href="#" data-group="'+u((o=t&&t.id,"function"==typeof o?o.apply(t):o))+'"> <span class="modal-nav-icon"> <i class="server-settings-status-icon unknown glyphicon circle-question-mark"></i> <i class="server-settings-status-icon error glyphicon circle-exclamation-mark"></i> <i class="server-settings-status-icon success glyphicon circle-ok"></i> <i class="server-settings-status-icon warning plex-icon-alert-560"></i> </span> '+u(i(n(1)).call(t,t&&t.title,{
hash:{},data:s}))+" </a> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a="";return a+=" "+c(i(n(25)).call(e,"setting",{hash:{idSuffix:"_c"},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var l,u="",c=this.escapeExpression,d=this;return u+='<form id="server-settings-form"> ',l=a.each.call(t,t,{hash:{},inverse:d.noop,fn:d.program(1,o,s),data:s}),
(l||0===l)&&(u+=l),u+=' <div class="form-footer"> <button type="submit" class="submit-btn btn btn-lg btn-primary btn-loading disabled"> <div class="loading loading-sm"></div> <span class="btn-label">'+c(i(n(1)).call(t,"Save Changes",{hash:{},data:s}))+'</span> </button> <span class="form-message"></span> </div> </form> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a=""
;return a+=' <h4 class="status-header status-header-single"> <span class="loading loading-sm"></span> '+F(i(n(1)).call(e,"Connecting server...",{hash:{},data:t}))+" </h4> "}function l(e,t){var a;return a=i(n(24)).call(e,(a=e&&e.cloudAccount,null==a||a===!1?a:a.remoteAccessState),"disconnecting",{hash:{},inverse:V.program(6,c,t),fn:V.program(4,u,t),data:t}),a||0===a?a:""}function u(e,t){var a=""
;return a+=' <h4 class="status-header status-header-single"> <span class="loading loading-sm"></span> '+F(i(n(1)).call(e,"Disconnecting server...",{hash:{},data:t}))+" </h4> "}function c(e,t){var n;return n=a.if.call(e,e&&e.isUnavailable,{hash:{},inverse:V.program(12,f,t),fn:V.program(7,d,t),data:t}),n||0===n?n:""}function d(e,t){var r,s="";return s+=' <h4 class="status-header text-danger">'+F(i(n(1)).call(e,"Not available outside your network",{hash:{},data:t}))+"</h4> ",
r=a.if.call(e,e&&e.isSignedOut,{hash:{},inverse:V.program(10,h,t),fn:V.program(8,p,t),data:t}),(r||0===r)&&(s+=r),s+=" "}function p(e,t){var a="";return a+=' <span class="status-description help-block">'+F(i(n(1)).call(e,"First {1}sign in{2} to access your server from anywhere.",'<a class="sign-in-link" href="#">',"</a>",{hash:{},data:t}))+"</span> "}function h(e,t){var a="";return a+=' <span class="status-description help-block">'+F(i(n(1)).call(e,"Enable to access your server from anywhere.",{
hash:{},data:t}))+'</span> <button class="remote-access-enable-btn btn btn-sm btn-primary">'+F(i(n(1)).call(e,"Enable Remote Access",{hash:{},data:t}))+"</button> "}function f(e,t){var r,s="";return s+=" ",r=i(n(24)).call(e,(r=e&&e.cloudAccount,null==r||r===!1?r:r.remoteAccessState),"unreachable",{hash:{},inverse:V.program(19,b,t),fn:V.program(13,v,t),data:t}),(r||0===r)&&(s+=r),s+=' <button class="remote-access-disable-btn btn btn-sm btn-default">'+F(i(n(1)).call(e,"Disable Remote Access",{
hash:{},data:t}))+"</button> ",r=a.if.call(e,(r=e&&e.mappingModeSetting,null==r||r===!1?r:r.value),{hash:{},inverse:V.noop,fn:V.program(21,S,t),data:t}),(r||0===r)&&(s+=r),s+=" "}function v(e,t){var a,r="";return r+=' <h4 class="status-header text-danger">'+F(i(n(1)).call(e,"Not available outside your network",{hash:{},data:t
}))+'</h4> <span class="unreachable-description status-description help-block">'+F(i(n(1)).call(e,"Your server is signed in to Plex, but is not reachable from outside your network. {1}Learn more{2}",'<a href="https://support.plex.tv/hc/en-us/articles/200484543-Connecting-a-Server" target="_blank">',"</a>",{hash:{},data:t}))+"</span> ",a=i(n(24)).call(e,(a=e&&e.cloudAccount,null==a||a===!1?a:a.mappingError),"jumboframes",{hash:{},inverse:V.program(16,g,t),fn:V.program(14,m,t),data:t}),
(a||0===a)&&(r+=a),r+=" "}function m(e,t){var a="";return a+=' <span class="jumbo-frames-description status-details help-block"> <span class="help-tip">'+F(i(n(1)).call(e,"Tip:",{hash:{},data:t}))+"</span> "+F(i(n(1)).call(e,'It looks like the devices between your server and the internet have "jumbo frames" enabled which can cause issues with remote access. Disable jumbo frames on at least one device and try again.',{hash:{},data:t}))+" </span> "}function g(e,t){var a
;return a=i(n(24)).call(e,(a=e&&e.cloudAccount,null==a||a===!1?a:a.mappingError),"doublenat",{hash:{},inverse:V.noop,fn:V.program(17,y,t),data:t}),a||0===a?a:""}function y(e,t){var a="";return a+=' <span class="double-nat-description status-details help-block"> <span class="help-tip">'+F(i(n(1)).call(e,"Tip:",{hash:{},data:t
}))+"</span> "+F(i(n(1)).call(e,'It looks like your server may be connected to the internet through multiple routers or other network devices. Try connecting it directly to your primary device, or visit our support site for more information about troubleshooting this "Double-NAT" scenario. {1}Learn more{2}','<a href="https://support.plex.tv/hc/en-us/articles/200931138" target="_blank">',"</a>",{hash:{},data:t}))+" </span> "}function b(e,t){var a=""
;return a+=' <h4 class="status-header text-success">'+F(i(n(1)).call(e,"Fully accessible outside your network",{hash:{},data:t}))+'</h4> <span class="status-description help-block"> '+F(i(n(1)).call(e,"You can access this server from signed-in Plex apps or in a browser at {1}.",'<a href="https://plex.tv/web" target="_blank">https://plex.tv/web</a>',{hash:{},data:t}))+" </span> "}function S(e,t){var a=""
;return a+=' <p class="remote-access-disable-message help-block"> <i class="remote-access-disable-warning-icon glyphicon circle-exclamation-mark"></i> '+F(i(n(1)).call(e,"You currently have Remote Access enabled through a manually-specified port. If you wish to disable Remote Access, you will need to remove your manual port forwarding from your router.",{hash:{},data:t}))+" </p> "}function I(e,t){var a,r="";return r+=" ",a=i(n(165)).call(e,(a=e&&e.cloudAccount,
null==a||a===!1?a:a.remoteAccessState),"disconnecting",{hash:{},inverse:V.noop,fn:V.program(24,M,t),data:t}),(a||0===a)&&(r+=a),r+=" "}function M(e,t){var r,s="";return s+=' <div class="remote-access-advanced"> <div class="remote-access-mapping-container ',r=a.unless.call(e,e&&e.forceAdvanced,{hash:{},inverse:V.noop,fn:V.program(25,C,t),data:t}),(r||0===r)&&(s+=r),
s+='"> <hr> <i class="plex-image server server-xs server-logo"></i> <div class="remote-access-mapping"> <span class="mapping-label text-muted">'+F(i(n(1)).call(e,"Private",{hash:{},data:t}))+'</span> <span class="mapping-address"> ',r=a.if.call(e,e&&e.hasPrivateAddress,{hash:{},inverse:V.program(29,D,t),fn:V.program(27,w,t),data:t}),(r||0===r)&&(s+=r),s+=" </span> ",r=a.if.call(e,e&&e.hasPublicAddress,{hash:{},inverse:V.program(33,T,t),fn:V.program(31,P,t),data:t}),(r||0===r)&&(s+=r),
s+=' <span class="mapping-label text-muted">'+F(i(n(1)).call(e,"Public",{hash:{},data:t}))+'</span> <span class="mapping-address"> ',r=a.if.call(e,e&&e.hasPublicAddress,{hash:{},inverse:V.program(29,D,t),fn:V.program(35,x,t),data:t}),(r||0===r)&&(s+=r),s+=" </span> ",r=i(n(24)).call(e,(r=e&&e.cloudAccount,null==r||r===!1?r:r.remoteAccessState),"ok",{hash:{},inverse:V.program(33,T,t),fn:V.program(31,P,t),data:t}),(r||0===r)&&(s+=r),s+=' <span class="mapping-internet ',
r=i(n(165)).call(e,(r=e&&e.cloudAccount,null==r||r===!1?r:r.remoteAccessState),"ok",{hash:{},inverse:V.noop,fn:V.program(37,E,t),data:t}),(r||0===r)&&(s+=r),s+='"> <i class="mapping-internet-icon glyphicon globe text-muted"></i> '+F(i(n(1)).call(e,"Internet",{hash:{},data:t}))+" </span> </div> </div> ",r=a.if.call(e,e&&e.hasMappingSettings,{hash:{},inverse:V.noop,fn:V.program(39,N,t),data:t}),(r||0===r)&&(s+=r),s+=" </div> "}function C(e,t){return"advanced-setting"}function w(e,t){var a,r=""
;return r+=' <span class="mapping-value">'+F((a=e&&e.cloudAccount,a=null==a||a===!1?a:a.privateAddress,typeof a===Q?a.apply(e):a))+'</span> <span class="mapping-separator text-muted">'+F(i(n(1)).call(e,":",{hash:{},data:t}))+'</span> <span class="mapping-value">'+F((a=e&&e.cloudAccount,a=null==a||a===!1?a:a.privatePort,typeof a===Q?a.apply(e):a))+"</span> "}function D(e,t){var a="";return a+=' <span class="mapping-empty-value">'+F(i(n(1)).call(e,"Unknown IP",{hash:{},data:t}))+"</span> "}
function P(e,t){return' <i class="mapping-icon glyphicon left-arrow text-success"></i> '}function T(e,t){return' <i class="mapping-icon glyphicon remove-2 text-danger"></i> '}function x(e,t){var a,r="";return r+=' <span class="mapping-value">'+F((a=e&&e.cloudAccount,a=null==a||a===!1?a:a.publicAddress,typeof a===Q?a.apply(e):a))+'</span> <span class="mapping-separator text-muted">'+F(i(n(1)).call(e,":",{hash:{},data:t}))+'</span> <span class="mapping-value">'+F((a=e&&e.cloudAccount,
a=null==a||a===!1?a:a.publicPort,typeof a===Q?a.apply(e):a))+"</span> "}function E(e,t){return"unreachable"}function N(e,t){var r,s="";return s+=' <div class="remote-access-error-container ',r=a.unless.call(e,e&&e.forceAdvanced,{hash:{},inverse:V.noop,fn:V.program(25,C,t),data:t}),(r||0===r)&&(s+=r),s+='"> <div class="form-inline"> <div class="checkbox"> <label class="',r=a.if.call(e,e&&e.isUnavailable,{hash:{},inverse:V.noop,fn:V.program(40,L,t),data:t}),(r||0===r)&&(s+=r),
s+='"> <input type="checkbox" id="'+F((r=e&&e.mappingModeSetting,r=null==r||r===!1?r:r.id,typeof r===Q?r.apply(e):r))+'" name="'+F((r=e&&e.mappingModeSetting,r=null==r||r===!1?r:r.id,typeof r===Q?r.apply(e):r))+'" value="1" ',r=a.if.call(e,e&&e.isUnavailable,{hash:{},inverse:V.noop,fn:V.program(40,L,t),data:t}),(r||0===r)&&(s+=r),s+=" ",r=a.if.call(e,(r=e&&e.mappingModeSetting,null==r||r===!1?r:r.value),{hash:{},inverse:V.noop,fn:V.program(42,A,t),data:t}),(r||0===r)&&(s+=r),
s+="> "+F(i(n(1)).call(e,"Manually specify public port",{hash:{},data:t}))+' </label> </div> <div class="form-group"> <input type="text" id="'+F((r=e&&e.mappingPortSetting,r=null==r||r===!1?r:r.id,typeof r===Q?r.apply(e):r))+'" name="'+F((r=e&&e.mappingPortSetting,r=null==r||r===!1?r:r.id,typeof r===Q?r.apply(e):r))+'" class="form-control" value="'+F((r=e&&e.mappingPortSetting,r=null==r||r===!1?r:r.value,typeof r===Q?r.apply(e):r))+'" ',r=a.unless.call(e,e&&e.canEditPort,{hash:{},inverse:V.noop,
fn:V.program(40,L,t),data:t}),(r||0===r)&&(s+=r),s+='> </div> <button class="retry-btn btn btn-primary btn-loading" ',r=a.if.call(e,e&&e.isUnavailable,{hash:{},inverse:V.noop,fn:V.program(40,L,t),data:t}),(r||0===r)&&(s+=r),s+='> <div class="loading loading-sm"></div> <span class="btn-label">',r=i(n(24)).call(e,(r=e&&e.cloudAccount,null==r||r===!1?r:r.remoteAccessState),"unreachable",{hash:{},inverse:V.program(46,_,t),fn:V.program(44,k,t),data:t}),(r||0===r)&&(s+=r),
s+='</span> </button> </div> <p class="help-block">'+F(i(n(1)).call(e,"You may need to enable this to establish a direct connection from outside your network. You may also need to configure your router. Detailed instructions are available {1}here{2}.",'<a href="http://support.plex.tv/hc/en-us/articles/200931138-Troubleshooting-myPlex-Server-connections" target="_blank">',"</a>",{hash:{},data:t}))+"</p> </div> "}function L(e,t){return"disabled"}function A(e,t){return"checked"}function k(e,t){
return F(i(n(1)).call(e,"Retry",{hash:{},data:t}))}function _(e,t){return F(i(n(1)).call(e,"Apply",{hash:{},data:t}))}function O(e,t){var r,s="";return s+=' <div class="remote-access-upload-container ',r=a.unless.call(e,e&&e.totalRateSettingValue,{hash:{},inverse:V.noop,fn:V.program(49,j,t),data:t}),(r||0===r)&&(s+=r),
s+='"> <hr> <div class="remote-access-upload-icon-container"> <i class="remote-access-upload-icon glyphicon circle-arrow-top"></i> <i class="remote-access-upload-warning-icon glyphicon circle-exclamation-mark"></i> </div> <form id="remote-access-upload-form" class="remote-access-upload-form"> <div class="remote-access-upload-speed-header">'+F(i(n(1)).call(e,"No upload speed set",{hash:{},data:t
}))+'</div> <div class="form-group"> <div class="form-inline"> <div class="form-group"> '+F(i(n(1)).call(e,"Internet upload speed",{hash:{},data:t}))+' <input type="text" id="'+F((r=e&&e.totalRateSettingID,typeof r===Q?r.apply(e):r))+'" name="'+F((r=e&&e.totalRateSettingID,typeof r===Q?r.apply(e):r))+'" class="remote-access-upload-speed-control form-control" value="',r=a.if.call(e,e&&e.totalRateSettingValue,{hash:{},inverse:V.noop,fn:V.program(51,R,t),data:t}),(r||0===r)&&(s+=r),
s+='" > '+F(i(n(1)).call(e,"Mbps",{hash:{},data:t}))+' </div> <p class="help-block"> '+F(i(n(1)).call(e,"You can use {1}speedtest.net{2} to determine your internet upload capacity.",'<a href="http://speedtest.net" target="_blank" rel="noopener noreferrer">',"</a>",{hash:{},data:t}))+" <br> "+F(i(n(1)).call(e,"Enter an upload speed here and Plex can ensure it operates within this boundary.",{hash:{},data:t}))+" </p> </div> </div> ",r=a.each.call(e,e&&e.uploadSettings,{hash:{},inverse:V.noop,
fn:V.program(53,U,t),data:t}),(r||0===r)&&(s+=r),s+=' <div class="form-footer"> <button type="submit" class="submit-btn btn btn-lg btn-primary btn-loading disabled"> <div class="loading loading-sm"></div> <span class="btn-label">'+F(i(n(1)).call(e,"Save Changes",{hash:{},data:t}))+'</span> </button> <span class="form-message"></span> </div> </form> </div> '}function j(e,t){return"show-warning"}function R(e,t){var n;return F((n=e&&e.totalRateSettingValue,typeof n===Q?n.apply(e):n))}
function U(e,t){var a="";return a+=" "+F(i(n(25)).call(e,"setting",{hash:{idSuffix:"_c"},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var z,B="",F=this.escapeExpression,V=this,Q="function";return B+='<i class="remote-access-status-icon glyphicon globe"></i> <div class="remote-access-status-message"> ',z=i(n(24)).call(t,(z=t&&t.cloudAccount,null==z||z===!1?z:z.remoteAccessState),"connecting",{hash:{},inverse:V.program(3,l,s),fn:V.program(1,o,s),data:s}),
(z||0===z)&&(B+=z),B+=" </div> ",z=i(n(165)).call(t,(z=t&&t.cloudAccount,null==z||z===!1?z:z.remoteAccessState),"connecting",{hash:{},inverse:V.noop,fn:V.program(23,I,s),data:s}),(z||0===z)&&(B+=z),B+=" ",z=a.if.call(t,t&&t.hasUploadLimitSettings,{hash:{},inverse:V.noop,fn:V.program(48,O,s),data:s}),(z||0===z)&&(B+=z),B+=" "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a=""
;return a+=' <button class="server-sign-out-btn btn btn-default btn-loading"> <div class="loading loading-sm"></div> <span class="btn-label">'+p(i(n(1)).call(e,"Sign Out",{hash:{},data:t}))+"</span> </button> "}function l(e,t){var a="";return a+=' <div class="server-claim-container"> <div class="server-claim-info"> <h4>'+p(i(n(1)).call(e,"This server is unclaimed and not secure",{hash:{},data:t
}))+'</h4> <p class="help-block"> '+p(i(n(1)).call(e,"Claiming this server will associate it with your Plex account. {1} This helps your devices find each other and helps keep your media safe.","<br>",{hash:{},data:t}))+' </p> </div> <button class="server-claim-btn btn btn-default btn-loading"> <div class="loading loading-sm"></div> <span class="btn-label">'+p(i(n(1)).call(e,"Claim Server",{hash:{},data:t}))+"</span> </button> </div> "}function u(e,t){var a=""
;return a+=' <form id="server-sign-in-form" class="form-inline"> <div class="form-group"> <input type="text" class="form-control" name="username" placeholder="'+p(i(n(1)).call(e,"Username or email",{hash:{},data:t}))+'" autocorrect="off" autocapitalize="off"> </div> <div class="form-group"> <input type="password" class="form-control" name="password" placeholder="'+p(i(n(1)).call(e,"Password",{hash:{},data:t
}))+'"> </div> <button type="submit" class="server-sign-in-btn btn btn-primary btn-loading"> <div class="loading loading-sm"></div> <span class="btn-label">'+p(i(n(1)).call(e,"Sign In",{hash:{},data:t}))+'</span> </button> <p class="help-block">'+p(i(n(1)).call(e,"Sign in with your Plex account to help your devices find this server, access your media remotely, and more. {1}Learn more{2}",'<a href="https://support.plex.tv/hc/en-us/articles/200484543-Connecting-a-Server">',"</a>",{hash:{},data:t
}))+"</p> </form> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var c,d="",p=this.escapeExpression,h=this;return d+='<div class="server-account-poster user-poster img-circle placeholder-friend"> <i class="server-signedout-icon plex-icon-alert-560"></i> </div> <div class="server-account-info"> <div class="server-account-user"> <div class="server-account-label">'+p(i(n(1)).call(t,"Server signed in as",{hash:{},data:s
}))+'</div> <div class="server-account-username"></div> </div> ',c=a.if.call(t,t&&t.showSignOut,{hash:{},inverse:h.noop,fn:h.program(1,o,s),data:s}),(c||0===c)&&(d+=c),d+=" </div> ",c=a.if.call(t,t&&t.showClaimMessage,{hash:{},inverse:h.program(5,u,s),fn:h.program(3,l,s),data:s}),(c||0===c)&&(d+=c),d+=" "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){return"active"}
this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var l,u="",c=this,d=this.escapeExpression;return u+='<a href="#" class="check-for-updates-btn label label-btn label-primary ',l=a.unless.call(t,t&&t.canCheckForUpdate,{hash:{},inverse:c.noop,fn:c.program(1,o,s),data:s}),(l||0===l)&&(u+=l),u+='"> <i class="label-icon glyphicon upload"></i> '+d(i(n(1)).call(t,"Check for Updates",{hash:{},data:s
}))+' </a> <a href="#" class="checking-for-updates-btn label label-btn label-primary active"> <i class="label-icon glyphicon upload"></i> '+d(i(n(1)).call(t,"Checking for Updates",{hash:{},data:s}))+' </a> <a href="#" class="available-updates-btn label label-btn label-primary"> <i class="label-icon glyphicon download"></i> '+d(i(n(1)).call(t,"Download Updates",{hash:{},data:s
}))+' </a> <span class="downloading-updates-container label label-btn label-progress active"> <i class="label-icon glyphicon download"></i> '+d(i(n(1)).call(t,"Downloading Update",{hash:{},data:s}))+' <span class="downloading-progress-container hidden">(<span class="downloading-progress-label"></span>%)</span ></span> <a href="#" class="install-updates-btn label label-btn label-primary"> <i class="label-icon glyphicon download"></i> '+d(i(n(1)).call(t,"Install Update",{hash:{},data:s
}))+' </a> <a href="#" class="installing-updates-btn label label-btn label-primary active"> <i class="label-icon glyphicon upload"></i> '+d(i(n(1)).call(t,"Installing",{hash:{},data:s}))+' </a> <span class="install-info-label up-to-date-label"> <i class="success-icon glyphicon ok-2"></i> '+d(i(n(1)).call(t,"Up to date",{hash:{},data:s
}))+' </span> <span class="install-info-label install-error-label"> <i class="failure-icon glyphicon circle-exclamation-mark"></i> <span class="update-error-message"></span> <a class="install-manual-link" href="https://plex.tv/downloads" target="_blank">'+d(i(n(1)).call(t,"Please install manually.",{hash:{},data:s}))+'</a> </span> <a href="#" class="release-notes-btn label label-btn label-default"> <i class="label-icon glyphicon circle-info"></i> '+d(i(n(1)).call(t,"What's New",{hash:{},data:s
}))+" </a> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a="";return a+=" "+h(i(n(1)).call(e,"Optimized Versions requires Plex Media Server {1} or later.",e&&e.minServerVersion,{hash:{},data:t}))+" "}function l(e,t){var n;return n=a.if.call(e,e&&e.isTranscoderRequired,{hash:{},inverse:f.program(6,c,t),fn:f.program(4,u,t),data:t}),n||0===n?n:""}function u(e,t){var a=""
;return a+=" "+h(i(n(1)).call(e,"This Plex Media Server platform is not capable of converting video.",{hash:{},data:t}))+" "}function c(e,t){var a="";return a+=" "+h(i(n(1)).call(e,"There was a problem requesting media versions from this server.",{hash:{},data:t}))+" "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var d,p="",h=this.escapeExpression,f=this;return p+='<div class="row row-padded"> <h4 class="text-muted text-center"> ',d=a.if.call(t,t&&t.isUpgradeRequired,{
hash:{},inverse:f.program(3,l,s),fn:f.program(1,o,s),data:s}),(d||0===d)&&(p+=d),p+=" </h4> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o="",l=this.escapeExpression;return o+='<p class="versions-status-message hidden"> <button class="delete-all-btn btn btn-sm btn-danger pull-right">'+l(i(n(1)).call(t,"Delete All Versions",{
hash:{},data:s}))+"</button> "+l(i(n(1)).call(t,"Monitor conversion progress in {1}Conversion Activity{2}.",'<a href="#!/status/conversion">',"</a>",{hash:{},data:s}))+' </p> <div class="background-processing-list-region"></div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a=""
;return a+=' <div class="filter-bar-right"> <button class="toggle-advanced-btn btn btn-sm btn-default basic-setting">'+c(i(n(1)).call(e,"Show Advanced",{hash:{},data:t}))+'</button> <button class="toggle-advanced-btn btn btn-sm btn-default advanced-setting">'+c(i(n(1)).call(e,"Hide Advanced",{hash:{},data:t}))+"</button> </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var l,u="",c=this.escapeExpression,d=this;return u+='<div class="filter-bar"> ',
l=a.unless.call(t,t&&t.shared,{hash:{},inverse:d.noop,fn:d.program(1,o,s),data:s}),(l||0===l)&&(u+=l),u+=' </div> <div class="settings-row row"> <div class="nav-region col-sm-4 col-md-3"></div> <div class="pane-region col-sm-8 col-md-9"></div> </div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a,r=""
;return r+=' <div class="setup-basic-form-group form-group"> <p class="text-muted"> '+d(i(n(1)).call(e,"Give it a friendly name to help identify it in Plex apps and on your network.",{hash:{},data:t}))+' </p> <input type="text" id="'+d((a=e&&e.friendlyNameSetting,a=null==a||a===!1?a:a.id,typeof a===p?a.apply(e):a))+'" class="form-control" value="'+d((a=e&&e.friendlyNameSetting,a=null==a||a===!1?a:a.value,typeof a===p?a.apply(e):a))+'" placeholder="'+d((a=e&&e.server,
a=null==a||a===!1?a:a.friendlyName,typeof a===p?a.apply(e):a))+'"> </div> '}function l(e,t){var a,r="";return r+=' <div class="setup-basic-form-group form-group"> <div class="publish-checkbox checkbox"> <label for="'+d((a=e&&e.publishSetting,a=null==a||a===!1?a:a.id,typeof a===p?a.apply(e):a))+'"> <input type="checkbox" id="'+d((a=e&&e.publishSetting,a=null==a||a===!1?a:a.id,typeof a===p?a.apply(e):a))+'" checked> '+d(i(n(1)).call(e,"Allow me to access my media outside my home",{hash:{},data:t
}))+' </label> </div> <p class="text-muted"> '+d(i(n(1)).call(e,"Plex will attempt to automatically configure your network to allow access to your Plex Media Server from Plex apps outside your home.",{hash:{},data:t}))+" </p> </div> "}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var u,c="",d=this.escapeExpression,p="function",h=this;return c+='<div class="row"> <div class="col-sm-6 col-sm-offset-3"> <h4>'+d(i(n(1)).call(t,"Great, we found a server!",{hash:{},data:s
}))+'</h4> <form id="setup-basic-form" class="settings-container"> ',u=a.if.call(t,t&&t.friendlyNameSetting,{hash:{},inverse:h.noop,fn:h.program(1,o,s),data:s}),(u||0===u)&&(c+=u),c+=" ",u=a.if.call(t,t&&t.publishSetting,{hash:{},inverse:h.noop,fn:h.program(3,l,s),data:s}),(u||0===u)&&(c+=u),c+=' <div class="setup-footer"> <button type="submit" class="submit-btn btn btn-primary btn-loading btn-lg"> <div class="loading loading-sm"></div> <span class="btn-label">'+d(i(n(1)).call(t,"Next",{hash:{},
data:s}))+'</span> </button> <button class="next-btn hidden" data-subset="setupLibrary"></button> </div> </form> </div> </div> <div class="modal-container"></div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var r,s="";return s+=' <div class="checkbox"> <label for="'+p((r=e&&e.collectUsageDataSetting,r=null==r||r===!1?r:r.id,
typeof r===d?r.apply(e):r))+'"> <input type="checkbox" id="'+p((r=e&&e.collectUsageDataSetting,r=null==r||r===!1?r:r.id,typeof r===d?r.apply(e):r))+'" name="'+p((r=e&&e.collectUsageDataSetting,r=null==r||r===!1?r:r.id,typeof r===d?r.apply(e):r))+'" value="1" ',r=a.if.call(e,(r=e&&e.collectUsageDataSetting,null==r||r===!1?r:r.value),{hash:{},inverse:h.noop,fn:h.program(2,l,t),data:t}),(r||0===r)&&(s+=r),s+="> "+p(i(n(1)).call(e,"Send anonymous usage data to Plex",{hash:{},data:t
}))+' </label> </div> <p class="setup-complete-help text-muted"> '+p(i(n(1)).call(e,"Help us improve everyone's Plex experience by sending anonymous usage data.",{hash:{},data:t}))+" </p> "}function l(e,t){return"checked"}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var u,c="",d="function",p=this.escapeExpression,h=this
;return c+='<div class="row"> <div class="col-sm-6 col-sm-offset-3"> <div class="setup-apps-container"> <img class="setup-apps-image" src="'+p((u=t&&t.devicesImg,typeof u===d?u.apply(t):u))+'"> <a href="https://plex.tv/downloads" target="_blank" class="btn btn-default btn-lg">'+p(i(n(1)).call(t,"Get Plex Apps",{hash:{},data:s
}))+'</a> </div> <p class="text-muted">'+p(i(n(1)).call(t,"All set! Your Plex Media Server is working hard to find your media and make it beautiful. Grab the Plex app for all your favorite devices to get the most out of Plex and start streaming everywhere!",{hash:{},data:s}))+'</p> <form id="setup-complete-form" class="settings-container"> ',u=a.if.call(t,t&&t.collectUsageDataSetting,{hash:{},inverse:h.noop,fn:h.program(1,o,s),data:s}),(u||0===u)&&(c+=u),
c+=' <div class="setup-footer setup-done-footer"> <button class="next-btn btn btn-default btn-lg" data-subset="setupLibrary">'+p(i(n(1)).call(t,"Back",{hash:{},data:s}))+'</button> <button type="submit" class="submit-btn btn btn-primary btn-loading btn-lg"> <div class="loading loading-sm"></div> <span class="btn-label">'+p(i(n(1)).call(t,"Done",{hash:{},data:s
}))+'</span> </button> <button class="done-btn btn btn-primary btn-lg hidden"></button> </div> </form> </div> </div> <div class="modal-container"></div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var a="";return a+=" <h1>"+d(i(n(1)).call(e,"Setup is not allowed for shared servers.",{hash:{},data:t}))+"</h1> "}function l(e,t){var a=""
;return a+=" <h1>"+d(i(n(1)).call(e,"A problem has been detected with a core component of Plex Media Server.",{hash:{},data:t}))+'</h1> <h2 class="text-muted">'+d(i(n(1)).call(e,"Please visit the {1}forums{2} and provide your logs, as described {3}here{4}.",'<a href="https://forums.plex.tv" target="_blank">',"</a>",'<a href="http://support.plex.tv/hc/en-us/articles/200250417-Log-File-Locations" target="_blank">',"</a>",{hash:{},data:t}))+"</h2> "}this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),s=s||{};var u,c="",d=this.escapeExpression,p=this;return c+='<div class="row row-padded"> <div class="col-md-8 col-md-offset-2"> ',u=a.if.call(t,t&&t.shared,{hash:{},inverse:p.program(3,l,s),fn:p.program(1,o,s),data:s}),(u||0===u)&&(c+=u),c+=" </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{}
;var o,l="",u=this.escapeExpression;return l+='<h2 class="setup-intro-header">'+u(i(n(1)).call(t,"How Plex Works",{hash:{},data:s}))+"</h2> <h4>"+u(i(n(1)).call(t,"Plex Media Server runs on the computer where you keep your media",{hash:{},data:s}))+'</h4> <img class="setup-intro-img setup-intro-computer-img" src='+u((o=t&&t.computerImg,"function"==typeof o?o.apply(t):o))+"> <h4>"+u(i(n(1)).call(t,"Plex scans your media, automatically organizes it, and makes it beautiful",{hash:{},data:s
}))+'</h4> <img class="setup-intro-img setup-intro-media-img" src='+u((o=t&&t.mediaImg,"function"==typeof o?o.apply(t):o))+"> <h4>"+u(i(n(1)).call(t,"Play your media on any screen with your favorite Plex app",{hash:{},data:s}))+'</h4> <img class="setup-intro-img setup-intro-play-img" src='+u((o=t&&t.playImg,"function"==typeof o?o.apply(t):o))+'> <p> <button class="next-btn btn btn-primary btn-lg" data-subset="setupLoading">'+u(i(n(1)).call(t,"Got it!",{hash:{},data:s}))+"</button> </p> "})
},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o="",l=this.escapeExpression;return o+='<div class="row"> <div class="col-sm-6 col-sm-offset-3"> <h4>'+l(i(n(1)).call(t,"Organize Your Media",{hash:{},data:s
}))+'</h4> <p class="text-muted">'+l(i(n(1)).call(t,"Plex organizes your media into libraries. You can add as many libraries as you want, and you can have multiple libraries with the same type.",{hash:{},data:s}))+'</p> <p class="setup-add-section-container"> <button class="add-section-btn btn btn-default">'+l(i(n(1)).call(t,"Add Library",{hash:{},data:s
}))+'</button> </p> <div class="setup-section-list-container"></div> <div class="setup-footer"> <button class="next-btn btn btn-default btn-lg" data-subset="setupBasic">'+l(i(n(1)).call(t,"Back",{hash:{},data:s}))+'</button> <button class="next-btn btn btn-primary btn-lg" data-subset="setupComplete">'+l(i(n(1)).call(t,"Next",{hash:{},data:s}))+"</button> </div> </div> </div> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12)
;e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o="";return o+='<div class="loading loading-inline"></div> <p class="loading-title">'+(0,this.escapeExpression)(i(n(1)).call(t,"Please wait a moment while Plex starts.",{hash:{},data:s}))+"</p> "})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),s=s||{};var o="",l=this.escapeExpression;return o+='<div class="setup-header row hidden"> <div class="col-sm-6 col-sm-offset-3"> <div class="sign-in-logo text-center"> <i class="plex-image logo"></i> </div> <h2>'+l(i(n(1)).call(t,"Server Setup",{hash:{},data:s}))+'</h2> <div class="setup-progress"> <div class="basic-segment setup-progress-segment"> <a class="segment-btn btn-gray" data-subset="setupBasic" href="#">'+l(i(n(1)).call(t,"Name",{hash:{},data:s
}))+'</a> </div> <div class="library-segment setup-progress-segment"> <a class="segment-btn btn-gray" data-subset="setupLibrary" href="#">'+l(i(n(1)).call(t,"Media Library",{hash:{},data:s}))+'</a> </div> <div class="complete-segment setup-progress-segment"> <a class="segment-btn btn-gray" data-subset="setupComplete" href="#">'+l(i(n(1)).call(t,"Finish",{hash:{},data:s}))+'</a> </div> </div> </div> </div> <div class="setup-container"></div> '})},function(e,t,n){function i(e){
return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var o="";return o+="<h2>"+(0,this.escapeExpression)(i(n(1)).call(t,"Announcements",{hash:{},data:s}))+'</h2> <div class="announcements-container"></div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){this.compilerInfo=[4,">= 1.0.0"],
a=this.merge(a,e.helpers),s=s||{};var o,l="",u=this.escapeExpression;return l+="<h2>"+u(i(n(1)).call(t,"Watch Later Help",{hash:{},data:s}))+'</h2> <div class="filter-bar"> <h4>'+u(i(n(1)).call(t,"Add videos from your browser",{hash:{},data:s
}))+'</h4> </div> <div class="row text-muted"> <div class="col-md-5"> <div class="text-center"> <a class="btn btn-primary btn-lg btn-plexit" href="javascript:(function(d){var s=d.createElement(\'script\');s.type=\'text/javascript\';s.src=\'//plex.tv/queue/bookmarklet_payload\';var h=d.getElementsByTagName(\'head\')[0];h.appendChild(s);}(document))"><span class="plexit-hidden">\u276f</span> Plex It!</a> </div> <ol class="steps-list"> <li>'+u((o=t&&t.firstStepText,
"function"==typeof o?o.apply(t):o))+"</li> <li>"+u(i(n(1)).call(t,'To save a video to Watch Later, click "Plex It!" in your Bookmarks Bar.',{hash:{},data:s}))+"</li> <li>"+u(i(n(1)).call(t,"A panel will appear on the left side of the page to let you know the video has been saved.",{hash:{},data:s}))+"</li> <li>"+u(i(n(1)).call(t,'You can also recommend the video to friends or "fling" it to a Plex player and watch it there.',{hash:{},data:s
}))+'</li> </ol> </div> <div class="col-md-7 text-right"> <img class="plexit-img" src="'+u((o=t&&t.stepsImgSrc,"function"==typeof o?o.apply(t):o))+'"/> </div> </div> <div class="filter-bar"> <h4>'+u(i(n(1)).call(t,"Add videos by email",{hash:{},data:s}))+'</h4> </div> <div class="row text-muted"> <div class="col-md-5"> <div class="queue-email form-control input-lg disabled" title="'+u((o=t&&t.copyCommand,"function"==typeof o?o.apply(t):o))+'" tabindex="-1">'+u((o=t&&t.queueEmail,
"function"==typeof o?o.apply(t):o))+'</div> <ol class="steps-list"> <li>'+u(i(n(1)).call(t,"Send an email to the address above with any link(s) you want added to Watch Later.",{hash:{},data:s}))+"</li> <li>"+u(i(n(1)).call(t,"Add this to your address book so you can easily email links from your iPhone, iPad, Android, or any other device.",{hash:{},data:s}))+'</li> </ol> </div> <div class="col-md-7 text-right"> <img class="email-links" src="'+u((o=t&&t.emailImgSrc,
"function"==typeof o?o.apply(t):o))+'"/> </div> </div> '})},function(e,t,n){function i(e){return e&&(e.__esModule?e.default:e)}var a=n(12);e.exports=(a.default||a).template(function(e,t,a,r,s){function o(e,t){var n,i="";return i+=' <li><a class="'+p((n=e&&e.subset,typeof n===d?n.apply(e):n))+'-btn btn-gray" href="#!/playlist/'+p((n=e&&e.key,typeof n===d?n.apply(e):n))+"/"+p((n=e&&e.subset,typeof n===d?n.apply(e):n))+'">'+p((n=e&&e.title,
typeof n===d?n.apply(e):n))+'<span class="badge"></span></a></li> '}function l(e,t){var n,i="";return i+=' <a class="user-playlist-help btn-gray" href="'+p((n=e&&e.helpRoute,typeof n===d?n.apply(e):n))+'" target="'+p((n=e&&e.defaultTarget,typeof n===d?n.apply(e):n))+'"><i class="glyphicon circle-question-mark"></i></a> '}this.compilerInfo=[4,">= 1.0.0"],a=this.merge(a,e.helpers),s=s||{};var u,c="",d="function",p=this.escapeExpression,h=this;return c+='<ul class="nav nav-header pull-right"> ',
u=a.each.call(t,t&&t.filters,{hash:{},inverse:h.noop,fn:h.program(1,o,s),data:s}),(u||0===u)&&(c+=u),c+=" </ul> <h2> "+p(i(n(1)).call(t,t&&t.label,{hash:{},data:s}))+" ",u=a.if.call(t,t&&t.helpRoute,{hash:{},inverse:h.noop,fn:h.program(3,l,s),data:s}),(u||0===u)&&(c+=u),c+=' </h2> <div class="user-playlist-container"></div> '})},function(e,t,n){"use strict";function i(e){var t=e&&e[0]||1,n=d;if(t!==n){if(t<n){var i=p[n],a=p[t]
;throw new c("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+i+") or downgrade your runtime to an older version ("+a+").")}throw new c("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}}function a(e,t){if(!t)throw new c("No environment passed to template");var n=function(e,n,i,a,r,s){
var o=t.VM.invokePartial.apply(this,arguments);if(null!=o)return o;if(t.compile){var l={helpers:a,partials:r,data:s};return r[n]=t.compile(e,{data:void 0!==s},t),r[n](i,l)}throw new c("The partial "+n+" could not be compiled when running in runtime-only mode")},i={escapeExpression:u.escapeExpression,invokePartial:n,programs:[],program:function(e,t,n){var i=this.programs[e];return n?i=s(e,t,n):i||(i=this.programs[e]=s(e,t)),i},merge:function(e,t){var n=e||t;return e&&t&&e!==t&&(n={},
u.extend(n,t),u.extend(n,e)),n},programWithDepth:t.VM.programWithDepth,noop:t.VM.noop,compilerInfo:null};return function(n,a){a=a||{};var r,s,o=a.partial?a:t;a.partial||(r=a.helpers,s=a.partials);var l=e.call(i,o,n,r,s,a.data);return a.partial||t.VM.checkRevision(i.compilerInfo),l}}function r(e,t,n){var i=Array.prototype.slice.call(arguments,3),a=function(e,a){return a=a||{},t.apply(this,[e,a.data||n].concat(i))};return a.program=e,a.depth=i.length,a}function s(e,t,n){var i=function(e,i){
return i=i||{},t(e,i.data||n)};return i.program=e,i.depth=0,i}function o(e,t,n,i,a,r){var s={partial:!0,helpers:i,partials:a,data:r};if(void 0===e)throw new c("The partial "+t+" could not be found");if(e instanceof Function)return e(n,s)}function l(){return""}var u=n(694),c=n(693).default,d=n(692).COMPILER_REVISION,p=n(692).REVISION_CHANGES;t.checkRevision=i,t.template=a,t.programWithDepth=r,t.program=s,t.invokePartial=o,t.noop=l},function(e,t,n){"use strict";var i={childContextTypes:!0,
contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0};e.exports=function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;++r)i[n[r]]||a[n[r]]||(e[n[r]]=t[n[r]]);return e}},function(e,t,n){var i,a;!function(n,r){var s=this;i=[],void 0!==(a=function(){return r(s)}.apply(t,i))&&(e.exports=a)}(0,function(e){"use strict";return function(e){function t(i){if(n[i])return n[i]
;var a=n[i]=Object.create(null);return e[i](a,t),a}var n=Object.create(null);return t(0)}([function(e,t){var n=t(23),i=t(23);e.debugMode=i.debugMode,e.verboseMode=i.verboseMode;var a=t(33),r=t(33);e.Set=r.Set;var s=t(30),o=t(30);e.Map=o.Map;var l=t(32),u=t(32);e.Promise=u.Promise,e.DeferredPromise=u.DeferredPromise;var c=t(37);e.webworker=c;var d=t(8);e.parts=d;var p=t(1);e.parser=p;var h=t(14);e.renderers=h;var f=t(24);e.ASS=f.ASS;var v=t(25);e.Attachment=v.Attachment,
e.AttachmentType=v.AttachmentType;var m=t(26);e.Dialogue=m.Dialogue;var g=t(28);e.ScriptProperties=g.ScriptProperties;var y=t(29);e.Style=y.Style;var b=t(27);e.BorderStyle=b.BorderStyle,e.Format=b.Format,e.WrappingStyle=b.WrappingStyle,Object.defineProperties(e,{debugMode:{get:function(){return n.debugMode},set:n.setDebugMode},verboseMode:{get:function(){return n.verboseMode},set:n.setVerboseMode},Set:{get:function(){return a.Set},set:a.setImplementation},Map:{get:function(){return s.Map},
set:s.setImplementation},Promise:{get:function(){return l.Promise},set:l.setImplementation}})},function(e,t){var n=t(3);e.parse=n.parse;var i=t(5);e.BrowserReadableStream=i.BrowserReadableStream,e.StringStream=i.StringStream,e.XhrStream=i.XhrStream;var a=t(4);e.StreamParser=a.StreamParser,e.SrtStreamParser=a.SrtStreamParser},function(e,t){function n(e){var t=e.indexOf(":");return t===-1?null:{name:e.substr(0,t),value:e.substr(t+1).replace(/^\s+/,"")}}function i(e,t){var i=n(e)
;if(null===i)return null;var r=i.value.split(",");r.length>t.length&&(r[t.length-1]=r.slice(t.length-1).join(","));var s=new a.Map;return t.forEach(function(e,t){s.set(e,r[t])}),{type:i.name,template:s}}var a=t(30);e.parseLineIntoProperty=n,e.parseLineIntoTypedTemplate=i},function(e,t){function n(e,t){var n=new l(e,t);if(null===n.result||n.result.end!==e.length)throw r.debugMode&&console.error("Parse failed. %s %s %o",t,e,n.result),new Error("Parse failed.");return n.result.value}
function i(e,t,n,i){l.prototype["parse_tag_"+e]=function(a){var r=this,s=new p(a);if(null===r.read(s,e))return a.pop(),null;var o=n.call(r,s);if(null!==o)s.value=new t(o.value);else{if(i)return a.pop(),null;s.value=new t(null)}return s}}var a=t(8),r=t(23),s=t(30),o=new s.Map;e.parse=n;var l=function(){function e(e,t){this._input=e,this._parseTree=new p(null),this._result=o.get(t).call(this,this._parseTree)}return Object.defineProperty(e.prototype,"result",{get:function(){return this._result},
enumerable:!0,configurable:!0}),e.prototype.parse_dialogueParts=function(e){var t,i=new p(e);for(i.value=[];this._haveMore();){var r=this.parse_enclosedTags(i);if(null!==r)(t=i.value).push.apply(t,r.value);else{var s=this.parse_newline(i)||this.parse_hardspace(i)||this.parse_text(i);if(null===s)return e.pop(),null;if(s.value instanceof a.Text&&i.value[i.value.length-1]instanceof a.Text){var o=i.value[i.value.length-1];i.value[i.value.length-1]=new a.Text(o.value+s.value.value)
}else i.value.push(s.value)}}var l=!1;return i.value.forEach(function(e,t){e instanceof a.DrawingMode?l=0!==e.scale:e instanceof a.Text&&l&&(i.value[t]=new a.DrawingInstructions(n(e.value,"drawingInstructions")))}),i},e.prototype.parse_enclosedTags=function(e){var t=new p(e);if(t.value=[],null===this.read(t,"{"))return e.pop(),null;for(var n=this._peek();this._haveMore()&&"}"!==n;n=this._peek()){var i=null
;if(null!==this.read(t,"\\")&&null===(i=this.parse_tag_alpha(t)||this.parse_tag_iclip(t)||this.parse_tag_xbord(t)||this.parse_tag_ybord(t)||this.parse_tag_xshad(t)||this.parse_tag_yshad(t)||this.parse_tag_blur(t)||this.parse_tag_bord(t)||this.parse_tag_clip(t)||this.parse_tag_fade(t)||this.parse_tag_fscx(t)||this.parse_tag_fscy(t)||this.parse_tag_move(t)||this.parse_tag_shad(t)||this.parse_tag_fad(t)||this.parse_tag_fax(t)||this.parse_tag_fay(t)||this.parse_tag_frx(t)||this.parse_tag_fry(t)||this.parse_tag_frz(t)||this.parse_tag_fsp(t)||this.parse_tag_fsplus(t)||this.parse_tag_fsminus(t)||this.parse_tag_org(t)||this.parse_tag_pbo(t)||this.parse_tag_pos(t)||this.parse_tag_an(t)||this.parse_tag_be(t)||this.parse_tag_fn(t)||this.parse_tag_fr(t)||this.parse_tag_fs(t)||this.parse_tag_kf(t)||this.parse_tag_ko(t)||this.parse_tag_1a(t)||this.parse_tag_1c(t)||this.parse_tag_2a(t)||this.parse_tag_2c(t)||this.parse_tag_3a(t)||this.parse_tag_3c(t)||this.parse_tag_4a(t)||this.parse_tag_4c(t)||this.parse_tag_a(t)||this.parse_tag_b(t)||this.parse_tag_c(t)||this.parse_tag_i(t)||this.parse_tag_k(t)||this.parse_tag_K(t)||this.parse_tag_p(t)||this.parse_tag_q(t)||this.parse_tag_r(t)||this.parse_tag_s(t)||this.parse_tag_t(t)||this.parse_tag_u(t))&&t.pop(),
null===i&&(i=this.parse_comment(t)),null===i)return e.pop(),null;i.value instanceof a.Comment&&t.value[t.value.length-1]instanceof a.Comment?t.value[t.value.length-1]=new a.Comment(t.value[t.value.length-1].value+i.value.value):t.value.push(i.value)}return null===this.read(t,"}")?(e.pop(),null):t},e.prototype.parse_newline=function(e){var t=new p(e);return null===this.read(t,"\\N")?(e.pop(),null):(t.value=new a.NewLine,t)},e.prototype.parse_hardspace=function(e){var t=new p(e)
;return null===this.read(t,"\\h")?(e.pop(),null):(t.value=new a.Text("\xa0"),t)},e.prototype.parse_text=function(e){var t=this._peek(),n=new p(e),i=new p(n,t);return n.value=new a.Text(i.value),n},e.prototype.parse_comment=function(e){var t=this._peek(),n=new p(e),i=new p(n,t);return n.value=new a.Comment(i.value),n},e.prototype.parse_tag_a=function(e){var t=new p(e);if(null===this.read(t,"a"))return e.pop(),null;var n=this._peek();switch(n){case"1":var i=this._peek(2);switch(i){case"10":
case"11":n=i}break;case"2":case"3":case"5":case"6":case"7":case"9":break;default:return e.pop(),null}var r=new p(t,n),s=null;switch(r.value){case"1":s=1;break;case"2":s=2;break;case"3":s=3;break;case"5":s=7;break;case"6":s=8;break;case"7":s=9;break;case"9":s=4;break;case"10":s=5;break;case"11":s=6}return t.value=new a.Alignment(s),t},e.prototype.parse_tag_alpha=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_an=function(e){var t=new p(e)
;if(null===this.read(t,"an"))return e.pop(),null;var n=this._peek();if(n<"1"||n>"9")return e.pop(),null;var i=new p(t,n);return t.value=new a.Alignment(parseInt(i.value)),t},e.prototype.parse_tag_b=function(e){var t=new p(e);if(null===this.read(t,"b"))return e.pop(),null;var n=null,i=this._peek();return i>="1"&&i<="9"&&(i=this._peek(3),"00"===i.substr(1)&&(n=new p(t,i),n.value=parseInt(n.value))),null===n&&(n=this.parse_enableDisable(t)),t.value=null!==n?new a.Bold(n.value):new a.Bold(null),t},
e.prototype.parse_tag_be=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_blur=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_bord=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_c=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_clip=function(e){return this._parse_tag_clip_or_iclip("clip",e)},e.prototype.parse_tag_fad=function(e){var t=new p(e)
;if(null===this.read(t,"fad"))return e.pop(),null;if(null===this.read(t,"("))return e.pop(),null;var n=this.parse_decimal(t);if(null===n)return e.pop(),null;if(null===this.read(t,","))return e.pop(),null;var i=this.parse_decimal(t);return null===i?(e.pop(),null):null===this.read(t,")")?(e.pop(),null):(t.value=new a.Fade(n.value/1e3,i.value/1e3),t)},e.prototype.parse_tag_fade=function(e){var t=new p(e);if(null===this.read(t,"fade"))return e.pop(),null;if(null===this.read(t,"("))return e.pop(),
null;var n=this.parse_decimal(t);if(null===n)return e.pop(),null;if(null===this.read(t,","))return e.pop(),null;var i=this.parse_decimal(t);if(null===i)return e.pop(),null;if(null===this.read(t,","))return e.pop(),null;var r=this.parse_decimal(t);if(null===r)return e.pop(),null;if(null===this.read(t,","))return e.pop(),null;var s=this.parse_decimal(t);if(null===s)return e.pop(),null;if(null===this.read(t,","))return e.pop(),null;var o=this.parse_decimal(t);if(null===o)return e.pop(),null
;if(null===this.read(t,","))return e.pop(),null;var l=this.parse_decimal(t);if(null===l)return e.pop(),null;if(null===this.read(t,","))return e.pop(),null;var u=this.parse_decimal(t);return null===u?(e.pop(),null):null===this.read(t,")")?(e.pop(),null):(t.value=new a.ComplexFade(1-n.value/255,1-i.value/255,1-r.value/255,s.value/1e3,o.value/1e3,l.value/1e3,u.value/1e3),t)},e.prototype.parse_tag_fax=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_fay=function(){
throw new Error("Method not implemented.")},e.prototype.parse_tag_fn=function(e){var t=new p(e);if(null===this.read(t,"fn"))return e.pop(),null;for(var n=new p(t,""),i=this._peek();this._haveMore()&&"\\"!==i&&"}"!==i;i=this._peek())n.value+=i;return n.value.length>0?t.value=new a.FontName(n.value):t.value=new a.FontName(null),t},e.prototype.parse_tag_fr=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_frx=function(){throw new Error("Method not implemented.")},
e.prototype.parse_tag_fry=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_frz=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_fs=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_fsplus=function(e){var t=new p(e);if(null===this.read(t,"fs+"))return e.pop(),null;var n=this.parse_decimal(t);return null===n?(e.pop(),null):(t.value=new a.FontSizePlus(n.value),t)},e.prototype.parse_tag_fsminus=function(e){
var t=new p(e);if(null===this.read(t,"fs-"))return e.pop(),null;var n=this.parse_decimal(t);return null===n?(e.pop(),null):(t.value=new a.FontSizeMinus(n.value),t)},e.prototype.parse_tag_fscx=function(e){var t=new p(e);if(null===this.read(t,"fscx"))return e.pop(),null;var n=this.parse_decimal(t);return t.value=null!==n?new a.FontScaleX(n.value/100):new a.FontScaleX(null),t},e.prototype.parse_tag_fscy=function(e){var t=new p(e);if(null===this.read(t,"fscy"))return e.pop(),null
;var n=this.parse_decimal(t);return t.value=null!==n?new a.FontScaleY(n.value/100):new a.FontScaleY(null),t},e.prototype.parse_tag_fsp=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_i=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_iclip=function(e){return this._parse_tag_clip_or_iclip("iclip",e)},e.prototype.parse_tag_k=function(e){var t=new p(e);if(null===this.read(t,"k"))return e.pop(),null;var n=this.parse_decimal(t)
;return null===n?(e.pop(),null):(t.value=new a.ColorKaraoke(n.value/100),t)},e.prototype.parse_tag_K=function(e){var t=new p(e);if(null===this.read(t,"K"))return e.pop(),null;var n=this.parse_decimal(t);return null===n?(e.pop(),null):(t.value=new a.SweepingColorKaraoke(n.value/100),t)},e.prototype.parse_tag_kf=function(e){var t=new p(e);if(null===this.read(t,"kf"))return e.pop(),null;var n=this.parse_decimal(t);return null===n?(e.pop(),null):(t.value=new a.SweepingColorKaraoke(n.value/100),t)},
e.prototype.parse_tag_ko=function(e){var t=new p(e);if(null===this.read(t,"ko"))return e.pop(),null;var n=this.parse_decimal(t);return null===n?(e.pop(),null):(t.value=new a.OutlineKaraoke(n.value/100),t)},e.prototype.parse_tag_move=function(e){var t=new p(e);if(null===this.read(t,"move"))return e.pop(),null;if(null===this.read(t,"("))return e.pop(),null;var n=this.parse_decimal(t);if(null===n)return e.pop(),null;if(null===this.read(t,","))return e.pop(),null;var i=this.parse_decimal(t)
;if(null===i)return e.pop(),null;if(null===this.read(t,","))return e.pop(),null;var r=this.parse_decimal(t);if(null===r)return e.pop(),null;if(null===this.read(t,","))return e.pop(),null;var s=this.parse_decimal(t);if(null===s)return e.pop(),null;var o=null,l=null;if(null!==this.read(t,",")){if(null===(o=this.parse_decimal(t)))return e.pop(),null;if(null===this.read(t,","))return e.pop(),null;if(null===(l=this.parse_decimal(t)))return e.pop(),null}return null===this.read(t,")")?(e.pop(),
null):(t.value=new a.Move(n.value,i.value,r.value,s.value,null!==o?o.value/1e3:null,null!==l?l.value/1e3:null),t)},e.prototype.parse_tag_org=function(e){var t=new p(e);if(null===this.read(t,"org"))return e.pop(),null;if(null===this.read(t,"("))return e.pop(),null;var n=this.parse_decimal(t);if(null===n)return e.pop(),null;if(null===this.read(t,","))return e.pop(),null;var i=this.parse_decimal(t);return null===i?(e.pop(),null):null===this.read(t,")")?(e.pop(),
null):(t.value=new a.RotationOrigin(n.value,i.value),t)},e.prototype.parse_tag_p=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_pbo=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_pos=function(e){var t=new p(e);if(null===this.read(t,"pos"))return e.pop(),null;if(null===this.read(t,"("))return e.pop(),null;var n=this.parse_decimal(t);if(null===n)return e.pop(),null;if(null===this.read(t,","))return e.pop(),null;var i=this.parse_decimal(t)
;return null===i?(e.pop(),null):null===this.read(t,")")?(e.pop(),null):(t.value=new a.Position(n.value,i.value),t)},e.prototype.parse_tag_q=function(e){var t=new p(e);if(null===this.read(t,"q"))return e.pop(),null;var n=this._peek();if(n<"0"||n>"3")return e.pop(),null;var i=new p(t,n);return t.value=new a.WrappingStyle(parseInt(i.value)),t},e.prototype.parse_tag_r=function(e){var t=new p(e);if(null===this.read(t,"r"))return e.pop(),null
;for(var n=new p(t,""),i=this._peek();this._haveMore()&&"\\"!==i&&"}"!==i;i=this._peek())n.value+=i;return n.value.length>0?t.value=new a.Reset(n.value):t.value=new a.Reset(null),t},e.prototype.parse_tag_s=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_shad=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_t=function(e){var t=new p(e);if(null===this.read(t,"t"))return e.pop(),null;if(null===this.read(t,"("))return e.pop(),null
;var n=null,i=null,r=null,s=this.parse_decimal(t);if(null!==s){if(null===this.read(t,","))return e.pop(),null;var o=this.parse_decimal(t);if(null!==o){if(n=s,i=o,null===this.read(t,","))return e.pop(),null;var l=this.parse_decimal(t);if(null!==l&&(r=l,null===this.read(t,",")))return e.pop(),null}else if(r=s,null===this.read(t,","))return e.pop(),null}for(var u=[],c=this._peek();this._haveMore()&&")"!==c&&"}"!==c;c=this._peek()){var d=null
;if(null!==this.read(t,"\\")&&null===(d=this.parse_tag_alpha(t)||this.parse_tag_iclip(t)||this.parse_tag_xbord(t)||this.parse_tag_ybord(t)||this.parse_tag_xshad(t)||this.parse_tag_yshad(t)||this.parse_tag_blur(t)||this.parse_tag_bord(t)||this.parse_tag_clip(t)||this.parse_tag_fscx(t)||this.parse_tag_fscy(t)||this.parse_tag_shad(t)||this.parse_tag_fax(t)||this.parse_tag_fay(t)||this.parse_tag_frx(t)||this.parse_tag_fry(t)||this.parse_tag_frz(t)||this.parse_tag_fsp(t)||this.parse_tag_fsplus(t)||this.parse_tag_fsminus(t)||this.parse_tag_be(t)||this.parse_tag_fr(t)||this.parse_tag_fs(t)||this.parse_tag_1a(t)||this.parse_tag_1c(t)||this.parse_tag_2a(t)||this.parse_tag_2c(t)||this.parse_tag_3a(t)||this.parse_tag_3c(t)||this.parse_tag_4a(t)||this.parse_tag_4c(t)||this.parse_tag_c(t))&&t.pop(),
null===d&&(d=this.parse_comment(t)),null===d)return e.pop(),null;d.value instanceof a.Comment&&u[u.length-1]instanceof a.Comment?u[u.length-1]=new a.Comment(u[u.length-1].value+d.value.value):u.push(d.value)}return this.read(t,")"),t.value=new a.Transform(null!==n?n.value/1e3:null,null!==i?i.value/1e3:null,null!==r?r.value/1e3:null,u),t},e.prototype.parse_tag_u=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_xbord=function(){throw new Error("Method not implemented.")
},e.prototype.parse_tag_xshad=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_ybord=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_yshad=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_1a=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_1c=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_2a=function(){throw new Error("Method not implemented.")},
e.prototype.parse_tag_2c=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_3a=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_3c=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_4a=function(){throw new Error("Method not implemented.")},e.prototype.parse_tag_4c=function(){throw new Error("Method not implemented.")},e.prototype.parse_drawingInstructions=function(e){var t=new p(e),n=null,i=[]
;for(t.value=[];this._haveMore();){for(;null!==this.read(t," "););if(!this._haveMore())break;if(null!==n){var r=this.parse_decimal(t);if(null!==r){i.push(r),"m"===n&&2===i.length?(t.value.push(new a.drawing.MoveInstruction(i[0].value,i[1].value)),i.splice(0,i.length)):"l"===n&&2===i.length?(t.value.push(new a.drawing.LineInstruction(i[0].value,i[1].value)),
i.splice(0,i.length)):"b"===n&&6===i.length&&(t.value.push(new a.drawing.CubicBezierCurveInstruction(i[0].value,i[1].value,i[2].value,i[3].value,i[4].value,i[5].value)),i.splice(0,i.length));continue}}var s=this.parse_text(t);if(null===s)break;var o=s.value.value;switch(o){case"m":case"l":case"b":n=o,i.splice(0,i.length)}}for(;null!==this.read(t," "););return t},e.prototype.parse_decimalInt32=function(e){
for(var t=new p(e),n=null!==this.read(t,"-"),i=new p(t,""),a=this._peek();this._haveMore()&&a>="0"&&a<="9";a=this._peek())i.value+=a;if(0===i.value.length)return e.pop(),null;var r=parseInt(i.value);return r>=4294967295?r=4294967295:n&&(r=-r),t.value=r,t},e.prototype.parse_hexInt32=function(e){for(var t=new p(e),n=null!==this.read(t,"-"),i=new p(t,""),a=this._peek();this._haveMore()&&(a>="0"&&a<="9"||a>="a"&&a<="f"||a>="A"&&a<="F");a=this._peek())i.value+=a;if(0===i.value.length)return e.pop(),
null;var r=parseInt(i.value,16);return r>=4294967295?r=4294967295:n&&(r=-r),t.value=r,t},e.prototype.parse_decimalOrHexInt32=function(e){var t=new p(e),n=null!==this.read(t,"&H")||null!==this.read(t,"&h")?this.parse_hexInt32(t):this.parse_decimalInt32(t);return null===n?(e.pop(),null):(t.value=n.value,t)},e.prototype.parse_decimal=function(e){var t=new p(e),n=null!==this.read(t,"-"),i=this.parse_unsignedDecimal(t);return null===i?(e.pop(),null):(t.value=i.value,n&&(t.value=-t.value),t)},
e.prototype.parse_unsignedDecimal=function(e){for(var t=new p(e),n=new p(t,""),i=null,a=this._peek();this._haveMore()&&a>="0"&&a<="9";a=this._peek())n.value+=a;if(0===n.value.length)return e.pop(),null;if(null!==this.read(t,".")){i=new p(t,"");for(var a=this._peek();this._haveMore()&&a>="0"&&a<="9";a=this._peek())i.value+=a;if(0===i.value.length)return e.pop(),null}return t.value=parseFloat(n.value+(null!==i?"."+i.value:"")),t},e.prototype.parse_enableDisable=function(e){var t=this._peek()
;if("0"===t||"1"===t){var n=new p(e,t);return n.value="1"===n.value,n}return null},e.prototype.parse_color=function(e){for(var t=new p(e);null!==this.read(t,"&")||null!==this.read(t,"H"););var n=this.parse_hexInt32(t);if(null===n)return e.pop(),null;var i=n.value;for(t.value=new a.Color(255&i,i>>8&255,i>>16&255);null!==this.read(t,"&")||null!==this.read(t,"H"););return t},e.prototype.parse_alpha=function(e){for(var t=new p(e);null!==this.read(t,"&")||null!==this.read(t,"H"););
var n=this.parse_hexInt32(t);if(null===n)return e.pop(),null;var i=n.value;for(t.value=1-(255&i)/255;null!==this.read(t,"&")||null!==this.read(t,"H"););return t},e.prototype.parse_colorWithAlpha=function(e){var t=new p(e),n=this.parse_decimalOrHexInt32(t);if(null===n)return e.pop(),null;var i=n.value;return t.value=new a.Color(255&i,i>>8&255,i>>16&255,1-(i>>24&255)/255),t},e.prototype.read=function(e,t){return this._peek(t.length)!==t?null:new p(e,t)},e.prototype._peek=function(e){
return void 0===e&&(e=1),1===e?this._input[this._parseTree.end]:this._input.substr(this._parseTree.end,e)},e.prototype._haveMore=function(){return this._parseTree.end<this._input.length},e.prototype._parse_tag_clip_or_iclip=function(e,t){var i=new p(t);if(null===this.read(i,e))return t.pop(),null;if(null===this.read(i,"("))return t.pop(),null;var r=null,s=null,o=null,l=null,u=null,c=null,d=this.parse_decimal(i);if(null!==d){if(null===this.read(i,","))return t.pop(),null
;var h=this.parse_decimal(i);null!==h?(r=d,o=h):u=d}if(null!==r&&null!==o){if(null===this.read(i,","))return t.pop(),null;if(s=this.parse_decimal(i),null===this.read(i,","))return t.pop(),null;l=this.parse_decimal(i),i.value=new a.RectangularClip(r.value,o.value,s.value,l.value,"clip"===e)}else{c=new p(i,"");for(var f=this._peek();this._haveMore()&&")"!==f&&"}"!==f;f=this._peek())c.value+=f;i.value=new a.VectorClip(null!==u?u.value:1,n(c.value,"drawingInstructions"),"clip"===e)}
return null===this.read(i,")")?(t.pop(),null):i},e}();i("alpha",a.Alpha,l.prototype.parse_alpha,!1),i("be",a.Blur,l.prototype.parse_decimal,!1),i("blur",a.GaussianBlur,l.prototype.parse_decimal,!1),i("bord",a.Border,l.prototype.parse_decimal,!1),i("c",a.PrimaryColor,l.prototype.parse_color,!1),i("fax",a.SkewX,l.prototype.parse_decimal,!1),i("fay",a.SkewY,l.prototype.parse_decimal,!1),i("fr",a.RotateZ,l.prototype.parse_decimal,!1),i("frx",a.RotateX,l.prototype.parse_decimal,!1),
i("fry",a.RotateY,l.prototype.parse_decimal,!1),i("frz",a.RotateZ,l.prototype.parse_decimal,!1),i("fs",a.FontSize,l.prototype.parse_decimal,!1),i("fsp",a.LetterSpacing,l.prototype.parse_decimal,!1),i("i",a.Italic,l.prototype.parse_enableDisable,!1),i("p",a.DrawingMode,l.prototype.parse_decimal,!0),i("pbo",a.DrawingBaselineOffset,l.prototype.parse_decimal,!0),i("s",a.StrikeThrough,l.prototype.parse_enableDisable,!1),i("shad",a.Shadow,l.prototype.parse_decimal,!1),
i("u",a.Underline,l.prototype.parse_enableDisable,!1),i("xbord",a.BorderX,l.prototype.parse_decimal,!1),i("xshad",a.ShadowX,l.prototype.parse_decimal,!1),i("ybord",a.BorderY,l.prototype.parse_decimal,!1),i("yshad",a.ShadowY,l.prototype.parse_decimal,!1),i("1a",a.PrimaryAlpha,l.prototype.parse_alpha,!1),i("1c",a.PrimaryColor,l.prototype.parse_color,!1),i("2a",a.SecondaryAlpha,l.prototype.parse_alpha,!1),i("2c",a.SecondaryColor,l.prototype.parse_color,!1),
i("3a",a.OutlineAlpha,l.prototype.parse_alpha,!1),i("3c",a.OutlineColor,l.prototype.parse_color,!1),i("4a",a.ShadowAlpha,l.prototype.parse_alpha,!1),i("4c",a.ShadowColor,l.prototype.parse_color,!1);for(var u=0,c=Object.keys(l.prototype);u<c.length;u++){var d=c[u];0===d.indexOf("parse_")&&"function"==typeof l.prototype[d]&&o.set(d.substr("parse_".length),l.prototype[d])}var p=function(){function e(e,t){void 0===t&&(t=null),this._parent=e,this._children=[],null!==e&&e.children.push(this),
this._start=null!==e?e.end:0,this._end=this._start,this.value=t}return Object.defineProperty(e.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._children},enumerable:!0,
configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,null!==this._value&&this._value.constructor===String&&0===this._children.length&&this._setEnd(this._start+this._value.length)},enumerable:!0,configurable:!0}),e.prototype.pop=function(){this._children.splice(this._children.length-1,1),this._children.length>0?this._setEnd(this._children[this._children.length-1].end):this._setEnd(this.start)},
e.prototype._setEnd=function(e){this._end=e,null!==this._parent&&this._parent.end!==this._end&&this._parent._setEnd(this._end)},e}(),h=t(32),f=t(36);t(38).registerWorkerCommand(f.WorkerCommands.Parse,function(e){return new h.Promise(function(t){t(n(e.input,e.rule))})})},function(e,t){function n(e){for(var t="",n=0;n<e.length;n++){var i=e.charCodeAt(n)-33;if(i<0||i>63)throw new Error("Out-of-range character code "+i+" at index "+n+" in string "+e)
;t+=i<26?String.fromCharCode("A".charCodeAt(0)+i):i<52?String.fromCharCode("a".charCodeAt(0)+i-26):i<62?String.fromCharCode("0".charCodeAt(0)+i-52):62===i?"+":"/"}return t}var i,a=t(23),r=t(24),s=t(29),o=t(26),l=t(25),u=t(30),c=t(32),d=t(2);!function(e){e[e.ScriptInfo=0]="ScriptInfo",e[e.Styles=1]="Styles",e[e.Events=2]="Events",e[e.Fonts=3]="Fonts",e[e.Graphics=4]="Graphics",e[e.Other=5]="Other",e[e.EOF=6]="EOF"}(i||(i={}));var p=function(){function e(e){var t=this;this._stream=e,
this._ass=new r.ASS,this._minimalDeferred=new c.DeferredPromise,this._deferred=new c.DeferredPromise,this._shouldSwallowBom=!0,this._currentSection=i.ScriptInfo,this._currentAttachment=null,this._stream.nextLine().then(function(e){return t._onNextLine(e)},function(e){t._minimalDeferred.reject(e),t._deferred.reject(e)})}return Object.defineProperty(e.prototype,"minimalASS",{get:function(){return this._minimalDeferred.promise},enumerable:!0,configurable:!0}),
Object.defineProperty(e.prototype,"ass",{get:function(){return this._deferred.promise},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentSection",{get:function(){return this._currentSection},set:function(e){if(null!==this._currentAttachment&&(this._ass.addAttachment(this._currentAttachment),this._currentAttachment=null),this._currentSection===i.ScriptInfo&&e!==i.ScriptInfo&&this._minimalDeferred.resolve(this._ass),e===i.EOF){var t=this._ass.properties
;void 0===t.resolutionX||void 0===t.resolutionY?(this._minimalDeferred.reject("Malformed ASS script."),this._deferred.reject("Malformed ASS script.")):(this._minimalDeferred.resolve(this._ass),this._deferred.resolve(this._ass))}this._currentSection=e},enumerable:!0,configurable:!0}),e.prototype._onNextLine=function(e){var t=this;if(null===e)return void(this.currentSection=i.EOF);if("\r"===e[e.length-1]&&(e=e.substr(0,e.length-1)),65279===e.charCodeAt(0)&&this._shouldSwallowBom&&(e=e.substr(1)),
this._shouldSwallowBom=!1,""===e);else if(";"===e[0]&&null===this._currentAttachment);else if("[Script Info]"===e)this.currentSection=i.ScriptInfo;else if("[V4+ Styles]"===e||"[V4 Styles]"===e)this.currentSection=i.Styles;else if("[Events]"===e)this.currentSection=i.Events;else if("[Fonts]"===e)this.currentSection=i.Fonts;else if("[Graphics]"===e)this.currentSection=i.Graphics;else switch(null===this._currentAttachment&&"["===e[0]&&"]"===e[e.length-1]&&(this.currentSection=i.Other),
this.currentSection){case i.ScriptInfo:var r=d.parseLineIntoProperty(e);if(null!==r)switch(r.name){case"PlayResX":this._ass.properties.resolutionX=parseInt(r.value);break;case"PlayResY":this._ass.properties.resolutionY=parseInt(r.value);break;case"WrapStyle":this._ass.properties.wrappingStyle=parseInt(r.value);break;case"ScaledBorderAndShadow":this._ass.properties.scaleBorderAndShadow="yes"===r.value}break;case i.Styles:if(null===this._ass.stylesFormatSpecifier){var s=d.parseLineIntoProperty(e)
;null!==s&&"Format"===s.name&&(this._ass.stylesFormatSpecifier=s.value.split(",").map(function(e){return e.trim()}))}else try{this._ass.addStyle(e)}catch(t){a.debugMode&&console.error("Could not parse style from line "+e+" - "+(t.stack||t))}break;case i.Events:if(null===this._ass.dialoguesFormatSpecifier){var o=d.parseLineIntoProperty(e);null!==o&&"Format"===o.name&&(this._ass.dialoguesFormatSpecifier=o.value.split(",").map(function(e){return e.trim()}))}else try{this._ass.addEvent(e)}catch(t){
a.debugMode&&console.error("Could not parse event from line "+e+" - "+(t.stack||t))}break;case i.Fonts:case i.Graphics:var u=this.currentSection===i.Fonts?/^fontname:(.+)/:/^filename:(.+)/,c=u.exec(e);if(null!==c)null!==this._currentAttachment&&(this._ass.addAttachment(this._currentAttachment),this._currentAttachment=null),this._currentAttachment=new l.Attachment(c[1].trim(),this.currentSection===i.Fonts?l.AttachmentType.Font:l.AttachmentType.Graphic);else if(null!==this._currentAttachment)try{
this._currentAttachment.contents+=n(e)}catch(e){a.debugMode&&console.error("Encountered error while reading font "+this._currentAttachment.filename+": %o",e),this._currentAttachment=null}break;case i.Other:break;default:throw new Error("Unhandled state "+this.currentSection)}this._stream.nextLine().then(function(e){return t._onNextLine(e)},function(e){t._minimalDeferred.reject(e),t._deferred.reject(e)})},e}();e.StreamParser=p;var h=function(){function e(e){var t=this;this._stream=e,
this._ass=new r.ASS,this._deferred=new c.DeferredPromise,this._shouldSwallowBom=!0,this._currentDialogueNumber=null,this._currentDialogueStart=null,this._currentDialogueEnd=null,this._currentDialogueText=null,this._stream.nextLine().then(function(e){return t._onNextLine(e)},function(e){t._deferred.reject(e)}),this._ass.properties.resolutionX=1280,this._ass.properties.resolutionY=720,this._ass.properties.wrappingStyle=1,this._ass.properties.scaleBorderAndShadow=!0
;var n=new s.Style(new u.Map([["Name","Default"],["FontSize","36"]]));this._ass.styles.set(n.name,n)}return Object.defineProperty(e.prototype,"ass",{get:function(){return this._deferred.promise},enumerable:!0,configurable:!0}),e.prototype._onNextLine=function(e){var t=this
;if(null===e)return null!==this._currentDialogueNumber&&null!==this._currentDialogueStart&&null!==this._currentDialogueEnd&&null!==this._currentDialogueText&&this._ass.dialogues.push(new o.Dialogue(new u.Map([["Style","Default"],["Start",this._currentDialogueStart],["End",this._currentDialogueEnd],["Text",this._currentDialogueText]]),this._ass)),void this._deferred.resolve(this._ass);if("\r"===e[e.length-1]&&(e=e.substr(0,e.length-1)),
65279===e.charCodeAt(0)&&this._shouldSwallowBom&&(e=e.substr(1)),this._shouldSwallowBom=!1,""===e)null!==this._currentDialogueNumber&&null!==this._currentDialogueStart&&null!==this._currentDialogueEnd&&null!==this._currentDialogueText&&this._ass.dialogues.push(new o.Dialogue(new u.Map([["Style","Default"],["Start",this._currentDialogueStart],["End",this._currentDialogueEnd],["Text",this._currentDialogueText]]),this._ass)),
this._currentDialogueNumber=this._currentDialogueStart=this._currentDialogueEnd=this._currentDialogueText=null;else if(null===this._currentDialogueNumber)/^\d+$/.test(e)&&(this._currentDialogueNumber=e);else if(null===this._currentDialogueStart&&null===this._currentDialogueEnd){var n=/^(\d\d:\d\d:\d\d,\d\d\d) --> (\d\d:\d\d:\d\d,\d\d\d)/.exec(e);null!==n&&(this._currentDialogueStart=n[1].replace(",","."),this._currentDialogueEnd=n[2].replace(",","."))
}else e=e.replace(/<b>/g,"{\\b1}").replace(/\{b\}/g,"{\\b1}").replace(/<\/b>/g,"{\\b0}").replace(/\{\/b\}/g,"{\\b0}").replace(/<i>/g,"{\\i1}").replace(/\{i\}/g,"{\\i1}").replace(/<\/i>/g,"{\\i0}").replace(/\{\/i\}/g,"{\\i0}").replace(/<u>/g,"{\\u1}").replace(/\{u\}/g,"{\\u1}").replace(/<\/u>/g,"{\\u0}").replace(/\{\/u\}/g,"{\\u0}").replace(/<font color="#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})">/g,function(e,t,n,i){return"{c&H"+i+n+t+"&}"}).replace(/<\/font>/g,"{\\c}"),
null!==this._currentDialogueText?this._currentDialogueText+="\\N"+e:this._currentDialogueText=e;this._stream.nextLine().then(function(e){return t._onNextLine(e)},function(e){t._deferred.reject(e)})},e}();e.SrtStreamParser=h},function(t,n){var i=n(32),a=function(){function e(e){this._str=e,this._readTill=0}return e.prototype.nextLine=function(){var e=null;if(this._readTill<this._str.length){var t=this._str.indexOf("\n",this._readTill)
;t!==-1?(e=i.Promise.resolve(this._str.substring(this._readTill,t)),this._readTill=t+1):(e=i.Promise.resolve(this._str.substr(this._readTill)),this._readTill=this._str.length)}else e=i.Promise.resolve(null);return e},e}();t.StringStream=a;var r=function(){function e(e){var t=this;this._xhr=e,this._readTill=0,this._pendingDeferred=null,this._failedError=null,e.addEventListener("progress",function(){return t._onXhrProgress()},!1),e.addEventListener("load",function(){return t._onXhrLoad()},!1),
e.addEventListener("error",function(e){return t._onXhrError(e)},!1)}return e.prototype.nextLine=function(){if(null!==this._pendingDeferred)throw new Error("XhrStream only supports one pending unfulfilled read at a time.");var e=this._pendingDeferred=new i.DeferredPromise;return this._tryResolveNextLine(),e.promise},e.prototype._onXhrProgress=function(){null!==this._pendingDeferred&&this._xhr.readyState!==XMLHttpRequest.DONE&&this._tryResolveNextLine()},e.prototype._onXhrLoad=function(){
null!==this._pendingDeferred&&this._tryResolveNextLine()},e.prototype._onXhrError=function(e){this._failedError=e,null!==this._pendingDeferred&&this._tryResolveNextLine()},e.prototype._tryResolveNextLine=function(){if(null!==this._failedError)return void this._pendingDeferred.reject(this._failedError);var e=this._xhr.responseText,t=e.indexOf("\n",this._readTill);t!==-1?(this._pendingDeferred.resolve(e.substring(this._readTill,t)),this._readTill=t+1,
this._pendingDeferred=null):this._xhr.readyState===XMLHttpRequest.DONE&&(null!==this._failedError?this._pendingDeferred.reject(this._failedError):this._readTill<e.length?(this._pendingDeferred.resolve(e.substr(this._readTill)),this._readTill=e.length):this._pendingDeferred.resolve(null),this._pendingDeferred=null)},e}();t.XhrStream=r;var s=function(){function t(t,n){this._buffer="",this._pendingDeferred=null,this._reader=t.getReader(),this._decoder=new e.TextDecoder(n,{ignoreBOM:!0})}
return t.prototype.nextLine=function(){if(null!==this._pendingDeferred)throw new Error("BrowserReadableStream only supports one pending unfulfilled read at a time.");var e=this._pendingDeferred=new i.DeferredPromise;return this._tryResolveNextLine(),e.promise},t.prototype._tryResolveNextLine=function(){var e=this,t=this._buffer.indexOf("\n");t!==-1?(this._pendingDeferred.resolve(this._buffer.substr(0,t)),this._buffer=this._buffer.substr(t+1),
this._pendingDeferred=null):this._reader.read().then(function(t){var n=t.value;t.done?(0===e._buffer.length?e._pendingDeferred.resolve(null):(e._pendingDeferred.resolve(e._buffer),e._buffer=""),e._pendingDeferred=null):(e._buffer+=e._decoder.decode(n,{stream:!0}),e._tryResolveNextLine())})},t}();t.BrowserReadableStream=s},function(e,t){function n(e){for(var t=atob(e.contents),n=new Uint8Array(new ArrayBuffer(t.length)),i=0;i<t.length;i++)n[i]=t.charCodeAt(i);for(var a={
dataView:new DataView(n.buffer),position:0},r=c.read(a),s=null,i=0;i<r.numTables;i++){var o=d.read(a);if(o.c1+o.c2+o.c3+o.c4==="name"){s=o;break}}a.position=s.offset;for(var u=p.read(a),f=new l.Set,i=0;i<u.count;i++){var v=h.read(a);switch(v.nameId){case 1:case 4:case 6:var m=s.offset+u.stringOffset+v.offset,g=n.subarray(m,m+v.length);switch(v.platformId){case 1:for(var y="",b=0;b<g.length;b++)y+=String.fromCharCode(g[b]);f.add(y);break;case 3:
for(var S="",b=0;b<g.length;b+=2)S+=String.fromCharCode((g[b]<<8)+g[b+1]);f.add(S)}}}return f}function i(e){var t=e.__fields;return e.read=function(n){for(var i=new e,a=0;a<t.length;a++){var s=t[a],o=void 0;switch(s.type){case r.Char:o=String.fromCharCode(n.dataView.getInt8(n.position)),n.position+=1;break;case r.Uint16:o=n.dataView.getUint16(n.position),n.position+=2;break;case r.Uint32:o=n.dataView.getUint32(n.position),n.position+=4}i[s.field]=o}return i},e}function a(e){var t=u.get(e)
;return void 0===t&&(t=function(t,n){var i=t.constructor;void 0===i.__fields&&(i.__fields=[]),i.__fields.push({type:e,field:n})},u.set(e,t)),t}var r,s=t(34).__decorate,o=t(30),l=t(33);!function(e){e[e.Char=0]="Char",e[e.Uint16=1]="Uint16",e[e.Uint32=2]="Uint32"}(r||(r={}));var u=new o.Map,c=function(){function e(){}return s([a(r.Uint16)],e.prototype,"majorVersion",void 0),s([a(r.Uint16)],e.prototype,"minorVersion",void 0),s([a(r.Uint16)],e.prototype,"numTables",void 0),
s([a(r.Uint16)],e.prototype,"searchRange",void 0),s([a(r.Uint16)],e.prototype,"entrySelector",void 0),s([a(r.Uint16)],e.prototype,"rangeShift",void 0),e=s([i],e)}(),d=function(){function e(){}return s([a(r.Char)],e.prototype,"c1",void 0),s([a(r.Char)],e.prototype,"c2",void 0),s([a(r.Char)],e.prototype,"c3",void 0),s([a(r.Char)],e.prototype,"c4",void 0),s([a(r.Uint32)],e.prototype,"checksum",void 0),s([a(r.Uint32)],e.prototype,"offset",void 0),s([a(r.Uint32)],e.prototype,"length",void 0),
e=s([i],e)}(),p=function(){function e(){}return s([a(r.Uint16)],e.prototype,"formatSelector",void 0),s([a(r.Uint16)],e.prototype,"count",void 0),s([a(r.Uint16)],e.prototype,"stringOffset",void 0),e=s([i],e)}(),h=function(){function e(){}return s([a(r.Uint16)],e.prototype,"platformId",void 0),s([a(r.Uint16)],e.prototype,"encodingId",void 0),s([a(r.Uint16)],e.prototype,"languageId",void 0),s([a(r.Uint16)],e.prototype,"nameId",void 0),s([a(r.Uint16)],e.prototype,"length",void 0),
s([a(r.Uint16)],e.prototype,"offset",void 0),e=s([i],e)}();e.getTtfNames=n},function(e){var t=function(){function e(e,t){this._x=e,this._y=t}return Object.defineProperty(e.prototype,"x",{get:function(){return this._x},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},enumerable:!0,configurable:!0}),e}();e.MoveInstruction=t;var n=function(){function e(e,t){this._x=e,this._y=t}return Object.defineProperty(e.prototype,"x",{get:function(){
return this._x},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},enumerable:!0,configurable:!0}),e}();e.LineInstruction=n;var i=function(){function e(e,t,n,i,a,r){this._x1=e,this._y1=t,this._x2=n,this._y2=i,this._x3=a,this._y3=r}return Object.defineProperty(e.prototype,"x1",{get:function(){return this._x1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y1",{get:function(){return this._y1},enumerable:!0,configurable:!0}),
Object.defineProperty(e.prototype,"x2",{get:function(){return this._x2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y2",{get:function(){return this._y2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x3",{get:function(){return this._x3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y3",{get:function(){return this._y3},enumerable:!0,configurable:!0}),e}();e.CubicBezierCurveInstruction=i},function(e,t){var n=t(7);e.drawing=n
;var i=function(){function e(e,t,n,i){void 0===i&&(i=1),this._red=e,this._green=t,this._blue=n,this._alpha=i}return Object.defineProperty(e.prototype,"red",{get:function(){return this._red},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"green",{get:function(){return this._green},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"blue",{get:function(){return this._blue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){
return this._alpha},enumerable:!0,configurable:!0}),e.prototype.withAlpha=function(t){return null!==t?new e(this._red,this._green,this._blue,t):this},e.prototype.toString=function(){return"rgba("+this._red+", "+this._green+", "+this._blue+", "+this._alpha.toFixed(3)+")"},e.prototype.interpolate=function(t,n){return new e(this._red+n*(t.red-this._red),this._green+n*(t.green-this._green),this._blue+n*(t.blue-this._blue),this._alpha+n*(t.alpha-this._alpha))},e}();e.Color=i;var a=function(){
function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.Comment=a;var r=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"Text { value: "+this._value.replace(/\u00A0/g,"\\h")+" }"},e}();e.Text=r;var s=function(){function e(){}return e}();e.NewLine=s
;var o=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.Italic=o;var l=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.Bold=l;var u=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,
configurable:!0}),e}();e.Underline=u;var c=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.StrikeThrough=c;var d=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.Border=d;var p=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{
get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.BorderX=p;var h=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.BorderY=h;var f=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.Shadow=f;var v=function(){function e(e){this._value=e}
return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.ShadowX=v;var m=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.ShadowY=m;var g=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.Blur=g
;var y=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.GaussianBlur=y;var b=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.FontName=b;var S=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},
enumerable:!0,configurable:!0}),e}();e.FontSize=S;var I=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.FontSizePlus=I;var M=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.FontSizeMinus=M;var C=function(){function e(e){this._value=e}
return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.FontScaleX=C;var w=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.FontScaleY=w;var D=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}()
;e.LetterSpacing=D;var P=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.RotateX=P;var T=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.RotateY=T;var x=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){
return this._value},enumerable:!0,configurable:!0}),e}();e.RotateZ=x;var E=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.SkewX=E;var N=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.SkewY=N;var L=function(){function e(e){this._value=e}
return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.PrimaryColor=L;var A=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.SecondaryColor=A;var k=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}()
;e.OutlineColor=k;var _=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.ShadowColor=_;var O=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.Alpha=O;var j=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){
return this._value},enumerable:!0,configurable:!0}),e}();e.PrimaryAlpha=j;var R=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.SecondaryAlpha=R;var U=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.OutlineAlpha=U;var z=function(){function e(e){this._value=e}
return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.ShadowAlpha=z;var B=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.Alignment=B;var F=function(){function e(e){this._duration=e}return Object.defineProperty(e.prototype,"duration",{get:function(){return this._duration},enumerable:!0,configurable:!0}),e}()
;e.ColorKaraoke=F;var V=function(){function e(e){this._duration=e}return Object.defineProperty(e.prototype,"duration",{get:function(){return this._duration},enumerable:!0,configurable:!0}),e}();e.SweepingColorKaraoke=V;var Q=function(){function e(e){this._duration=e}return Object.defineProperty(e.prototype,"duration",{get:function(){return this._duration},enumerable:!0,configurable:!0}),e}();e.OutlineKaraoke=Q;var H=function(){function e(e){this._value=e}
return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.WrappingStyle=H;var W=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}();e.Reset=W;var Y=function(){function e(e,t){this._x=e,this._y=t}return Object.defineProperty(e.prototype,"x",{get:function(){return this._x},enumerable:!0,configurable:!0}),
Object.defineProperty(e.prototype,"y",{get:function(){return this._y},enumerable:!0,configurable:!0}),e}();e.Position=Y;var G=function(){function e(e,t,n,i,a,r){this._x1=e,this._y1=t,this._x2=n,this._y2=i,this._t1=a,this._t2=r}return Object.defineProperty(e.prototype,"x1",{get:function(){return this._x1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y1",{get:function(){return this._y1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x2",{get:function(){
return this._x2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y2",{get:function(){return this._y2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"t1",{get:function(){return this._t1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"t2",{get:function(){return this._t2},enumerable:!0,configurable:!0}),e}();e.Move=G;var K=function(){function e(e,t){this._x=e,this._y=t}return Object.defineProperty(e.prototype,"x",{get:function(){
return this._x},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},enumerable:!0,configurable:!0}),e}();e.RotationOrigin=K;var q=function(){function e(e,t){this._start=e,this._end=t}return Object.defineProperty(e.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),e}();e.Fade=q;var X=function(){
function e(e,t,n,i,a,r,s){this._a1=e,this._a2=t,this._a3=n,this._t1=i,this._t2=a,this._t3=r,this._t4=s}return Object.defineProperty(e.prototype,"a1",{get:function(){return this._a1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"a2",{get:function(){return this._a2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"a3",{get:function(){return this._a3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"t1",{get:function(){return this._t1},
enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"t2",{get:function(){return this._t2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"t3",{get:function(){return this._t3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"t4",{get:function(){return this._t4},enumerable:!0,configurable:!0}),e}();e.ComplexFade=X;var Z=function(){function e(e,t,n,i){this._start=e,this._end=t,this._accel=n,this._tags=i}
return Object.defineProperty(e.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"accel",{get:function(){return this._accel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tags",{get:function(){return this._tags},enumerable:!0,configurable:!0}),e}();e.Transform=Z;var J=function(){function e(e,t,n,i,a){
this._x1=e,this._y1=t,this._x2=n,this._y2=i,this._inside=a}return Object.defineProperty(e.prototype,"x1",{get:function(){return this._x1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y1",{get:function(){return this._y1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x2",{get:function(){return this._x2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y2",{get:function(){return this._y2},enumerable:!0,configurable:!0}),
Object.defineProperty(e.prototype,"inside",{get:function(){return this._inside},enumerable:!0,configurable:!0}),e}();e.RectangularClip=J;var $=function(){function e(e,t,n){this._scale=e,this._instructions=t,this._inside=n}return Object.defineProperty(e.prototype,"scale",{get:function(){return this._scale},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"instructions",{get:function(){return this._instructions},enumerable:!0,configurable:!0}),
Object.defineProperty(e.prototype,"inside",{get:function(){return this._inside},enumerable:!0,configurable:!0}),e}();e.VectorClip=$;var ee=function(){function e(e){this._scale=e}return Object.defineProperty(e.prototype,"scale",{get:function(){return this._scale},enumerable:!0,configurable:!0}),e}();e.DrawingMode=ee;var te=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}()
;e.DrawingBaselineOffset=te;var ne=function(){function e(e){this._instructions=e}return Object.defineProperty(e.prototype,"instructions",{get:function(){return this._instructions},enumerable:!0,configurable:!0}),e}();e.DrawingInstructions=ne;for(var ie=function(e,t){if(!e.prototype.hasOwnProperty("toString")){var n=Object.getOwnPropertyNames(e.prototype).filter(function(e){return"constructor"!==e});e.prototype.toString=function(){var e=this;return t+" { "+n.map(function(t){return t+": "+e[t]
}).join(", ")+(n.length>0?" ":"")+"}"}}},ae=t(38),re=0,se=Object.keys(e);re<se.length;re++){var oe=se[re],le=e[oe];le instanceof Function&&(ie(le,oe),ae.registerClassPrototype(le.prototype))}for(var ue=0,ce=Object.keys(n);ue<ce.length;ue++){var oe=ce[ue],le=n[oe];le instanceof Function&&(ie(le,"Drawing"+oe),ae.registerClassPrototype(le.prototype))}},function(e,t){var n=t(23),i=t(11),a=function(){function e(e,t){this._getCurrentTime=e,this._autoPauseAfter=t,this._manualClock=new i.ManualClock,
this._nextAnimationFrameRequestId=null,this._lastKnownExternalTime=null,this._lastKnownExternalTimeObtainedAt=null}return e.prototype.play=function(){this._manualClock.enabled&&(this._startTicking(),this._manualClock.play())},e.prototype.pause=function(){if(this._manualClock.enabled){if(null===this._nextAnimationFrameRequestId)return void(n.debugMode&&console.warn("AutoClock.pause: Abnormal state detected. AutoClock._nextAnimationFrameRequestId should not have been null."));this._stopTicking(),
this._manualClock.pause()}},e.prototype.seeking=function(){this._manualClock.seek(this._getCurrentTime())},Object.defineProperty(e.prototype,"currentTime",{get:function(){return this._manualClock.currentTime},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._manualClock.enabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._manualClock.paused},enumerable:!0,configurable:!0}),
Object.defineProperty(e.prototype,"rate",{get:function(){return this._manualClock.rate},enumerable:!0,configurable:!0}),e.prototype.setRate=function(e){this._manualClock.setRate(e)},e.prototype.enable=function(){return!!this._manualClock.enable()&&(this._startTicking(),!0)},e.prototype.disable=function(){return!!this._manualClock.disable()&&(this._stopTicking(),!0)},e.prototype.toggle=function(){this._manualClock.enabled?this.disable():this.enable()},e.prototype.setEnabled=function(e){
return e?this.enable():this.disable()},e.prototype.addEventListener=function(e,t){this._manualClock.addEventListener(e,t)},e.prototype._onTimerTick=function(e){var t=this;if(!this._manualClock.enabled)return void(n.debugMode&&console.warn("AutoClock._onTimerTick: Called when disabled."));var i=this._manualClock.currentTime,a=this._getCurrentTime();this._manualClock.paused?i!==a&&(this._lastKnownExternalTime=a,this._lastKnownExternalTimeObtainedAt=e,
this._manualClock.tick(a)):null!==this._lastKnownExternalTime&&a===this._lastKnownExternalTime?e-this._lastKnownExternalTimeObtainedAt>this._autoPauseAfter?(this._lastKnownExternalTimeObtainedAt=null,this._manualClock.pause()):this._manualClock.tick((e-this._lastKnownExternalTimeObtainedAt)/1e3*this._manualClock.rate+this._lastKnownExternalTime):(this._lastKnownExternalTime=a,this._lastKnownExternalTimeObtainedAt=e,this._manualClock.tick(a)),
this._nextAnimationFrameRequestId=requestAnimationFrame(function(e){return t._onTimerTick(e)})},e.prototype._startTicking=function(){var e=this;null===this._nextAnimationFrameRequestId&&(this._nextAnimationFrameRequestId=requestAnimationFrame(function(t){return e._onTimerTick(t)}))},e.prototype._stopTicking=function(){null!==this._nextAnimationFrameRequestId&&(cancelAnimationFrame(this._nextAnimationFrameRequestId),this._nextAnimationFrameRequestId=null)},e}();e.AutoClock=a},function(e){
var t=function(){function e(){}return e.prototype.addEventListener=function(e,t){var n=this._eventListeners.get(e);void 0===n&&this._eventListeners.set(e,n=[]),n.push(t)},e.prototype._dispatchEvent=function(e,t){var n=this._eventListeners.get(e);if(void 0!==n)for(var i=0;i<n.length;i++){var a=n[i];a.apply(this,t)}},e}();e.EventSource=t,function(e){e[e.Play=0]="Play",e[e.Tick=1]="Tick",e[e.Pause=2]="Pause",e[e.Stop=3]="Stop",e[e.RateChange=4]="RateChange"}(e.ClockEvent||(e.ClockEvent={}))
},function(e,t){var n=t(31),i=t(30),a=t(10),r=function(){function e(){this._currentTime=-1,this._rate=1,this._enabled=!0,this._paused=!0,this._eventListeners=new i.Map}return e.prototype.play=function(){this._enabled&&this._paused&&(this._paused=!1,this._dispatchEvent(a.ClockEvent.Play,[]))},e.prototype.tick=function(e){this._enabled&&this._currentTime!==e&&(this.play(),this._currentTime=e,this._dispatchEvent(a.ClockEvent.Tick,[]))},e.prototype.seek=function(e){this._enabled&&(this.pause(),
this._currentTime!==e&&(this.stop(),this.tick(e),this.pause()))},e.prototype.pause=function(){this._enabled&&(this._paused||(this._paused=!0,this._dispatchEvent(a.ClockEvent.Pause,[])))},e.prototype.stop=function(){this._dispatchEvent(a.ClockEvent.Stop,[])},Object.defineProperty(e.prototype,"currentTime",{get:function(){return this._currentTime},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},enumerable:!0,configurable:!0}),
Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rate",{get:function(){return this._rate},enumerable:!0,configurable:!0}),e.prototype.setRate=function(e){this._rate!==e&&(this._rate=e,this._dispatchEvent(a.ClockEvent.RateChange,[]))},e.prototype.enable=function(){return!this._enabled&&(this._enabled=!0,!0)},e.prototype.disable=function(){return!!this._enabled&&(this.pause(),this.stop(),
this._enabled=!1,!0)},e.prototype.toggle=function(){this._enabled?this.disable():this.enable()},e.prototype.setEnabled=function(e){return e?this.enable():this.disable()},e}();e.ManualClock=r,n.mixin(r,[a.EventSource])},function(e,t){var n=t(9),i=function(){function e(e){var t=this;this._autoClock=new n.AutoClock(function(){return e.currentTime},100),e.addEventListener("playing",function(){return t._autoClock.play()},!1),e.addEventListener("pause",function(){return t._autoClock.pause()},!1),
e.addEventListener("seeking",function(){return t._autoClock.seeking()},!1),e.addEventListener("ratechange",function(){return t._autoClock.setRate(e.playbackRate)},!1)}return Object.defineProperty(e.prototype,"currentTime",{get:function(){return this._autoClock.currentTime},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._autoClock.enabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){
return this._autoClock.paused},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rate",{get:function(){return this._autoClock.rate},enumerable:!0,configurable:!0}),e.prototype.enable=function(){return this._autoClock.enable()},e.prototype.disable=function(){return this._autoClock.disable()},e.prototype.toggle=function(){this._autoClock.enabled?this.disable():this.enable()},e.prototype.setEnabled=function(e){return e?this.enable():this.disable()},
e.prototype.addEventListener=function(e,t){this._autoClock.addEventListener(e,t)},e}();e.VideoClock=i},function(e,t){var n=t(34).__extends,i=t(12),a=t(21),r=function(e){function t(t,n,a){e.call(this,n,new i.VideoClock(t),document.createElement("div"),a),this._video=t,this._video.parentElement.replaceChild(this.libjassSubsWrapper,this._video),this.libjassSubsWrapper.insertBefore(this._video,this.libjassSubsWrapper.firstElementChild)}return n(t,e),t.prototype.resize=function(){
var t=this._video.videoWidth,n=this._video.videoHeight,i=this._video.offsetWidth,a=this._video.offsetHeight,r=Math.min(i/t,a/n),s=t*r,o=n*r,l=(i-s)/2,u=(a-o)/2;e.prototype.resize.call(this,s,o,l,u)},t.prototype.resizeVideo=function(){console.warn("`DefaultRenderer.resizeVideo(width, height)` has been deprecated. Use `DefaultRenderer.resize()` instead."),this.resize()},t.prototype._ready=function(){this.resize(),e.prototype._ready.call(this)},t}(a.WebRenderer);e.DefaultRenderer=r},function(e,t){
var n=t(10);e.ClockEvent=n.ClockEvent,e.EventSource=n.EventSource;var i=t(9);e.AutoClock=i.AutoClock;var a=t(11);e.ManualClock=a.ManualClock;var r=t(12);e.VideoClock=r.VideoClock;var s=t(13);e.DefaultRenderer=s.DefaultRenderer;var o=t(15);e.NullRenderer=o.NullRenderer;var l=t(21);e.WebRenderer=l.WebRenderer;var u=t(16);e.RendererSettings=u.RendererSettings},function(e,t){var n=t(10),i=t(16),a=t(23),r=function(){function e(t,a,r){var s=this;this._ass=t,this._clock=a,this._id=++e._lastRendererId,
this._settings=i.RendererSettings.from(r),this._clock.addEventListener(n.ClockEvent.Play,function(){return s._onClockPlay()}),this._clock.addEventListener(n.ClockEvent.Tick,function(){return s._onClockTick()}),this._clock.addEventListener(n.ClockEvent.Pause,function(){return s._onClockPause()}),this._clock.addEventListener(n.ClockEvent.Stop,function(){return s._onClockStop()}),this._clock.addEventListener(n.ClockEvent.RateChange,function(){return s._onClockRateChange()})}
return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ass",{get:function(){return this._ass},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clock",{get:function(){return this._clock},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"settings",{get:function(){return this._settings},enumerable:!0,configurable:!0}),e.prototype.preRender=function(){},
e.prototype.draw=function(){},e.prototype.enable=function(){return this._clock.enable()},e.prototype.disable=function(){return this._clock.disable()},e.prototype.toggle=function(){this._clock.toggle()},e.prototype.setEnabled=function(e){return this._clock.setEnabled(e)},Object.defineProperty(e.prototype,"enabled",{get:function(){return this._clock.enabled},enumerable:!0,configurable:!0}),e.prototype._onClockPlay=function(){a.verboseMode&&console.log("NullRenderer._onClockPlay")},
e.prototype._onClockTick=function(){var e=this._clock.currentTime;a.verboseMode&&console.log("NullRenderer._onClockTick: currentTime = "+e);for(var t=0,n=this._ass.dialogues;t<n.length;t++){var i=n[t];i.end>e&&(i.start<=e?this.draw(i):i.start<=e+this._settings.preRenderTime&&this.preRender(i))}},e.prototype._onClockPause=function(){a.verboseMode&&console.log("NullRenderer._onClockPause")},e.prototype._onClockStop=function(){a.verboseMode&&console.log("NullRenderer._onClockStop")},
e.prototype._onClockRateChange=function(){a.verboseMode&&console.log("NullRenderer._onClockRateChange")},e._lastRendererId=-1,e}();e.NullRenderer=r},function(e,t){function n(e){return e.type===CSSRule.FONT_FACE_RULE}var i=t(30),a=function(){function e(){}return e.makeFontMapFromStyleElement=function(e){for(var t=new i.Map,a=e.sheet,r=0;r<a.cssRules.length;r++){var s=a.cssRules[r];if(n(s)){
var o=s.style.getPropertyValue("font-family").match(/^["']?(.*?)["']?$/)[1],l=s.style.getPropertyValue("src");l||(l=s.cssText.split("\n").map(function(e){return e.match(/src:\s*([^;]+?)\s*;/)}).filter(function(e){return null!==e}).map(function(e){return e[1]})[0]),t.set(o,l)}}return t},e.from=function(t){void 0!==t&&null!==t||(t={})
;var n=t,i=n.fontMap,a=void 0===i?null:i,r=n.preRenderTime,s=void 0===r?5:r,o=n.preciseOutlines,l=void 0!==o&&o,u=n.enableSvg,c=void 0===u||u,d=n.fallbackFonts,p=void 0===d?'Arial, Helvetica, sans-serif, "Segoe UI Symbol"':d,h=n.useAttachedFonts,f=void 0!==h&&h,v=new e;return v.fontMap=a,v.preRenderTime=s,v.preciseOutlines=l,v.enableSvg=c,v.fallbackFonts=p,v.useAttachedFonts=f,v},e}();e.RendererSettings=a},function(e,t){var n=t(30),i=function(){function e(t,i){this._style=i,
this._animationStyle="",this._animationDelays=new n.Map,this._numAnimations=0,this._id=t.id+"-"+e._nextId++,this._rate=t.clock.rate}return Object.defineProperty(e.prototype,"animationStyle",{get:function(){return this._animationStyle},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animationDelays",{get:function(){return this._animationDelays},enumerable:!0,configurable:!0}),e.prototype.add=function(e,t){for(var n=null,i=null,a=0;a<t.length;a++){var r=t[a]
;null===n&&(n=r.time),i=r.time}for(var s="",o=0;o<t.length;o++){var r=t[o];s+="\t"+(100*(i-n==0?1:(r.time-n)/(i-n))).toFixed(3)+"% {\n",r.properties.forEach(function(e,t){s+="\t\t"+t+": "+e+";\n"}),s+="\t}\n"}var l="animation-"+this._id+"-"+this._numAnimations++;this._style.appendChild(document.createTextNode("@-webkit-keyframes "+l+" {\n"+s+"\n}")),this._style.appendChild(document.createTextNode("@keyframes "+l+" {\n"+s+"\n}")),""!==this._animationStyle&&(this._animationStyle+=","),
this._animationStyle+=l+" "+((i-n)/this._rate).toFixed(3)+"s "+e,this._animationDelays.set(l,n)},e._nextId=0,e}();e.AnimationCollection=i},function(e,t){var n=t(8),i=function(){function e(e,t){this._outputScaleX=e,this._outputScaleY=t,this._scale=1,this._baselineOffset=0}return Object.defineProperty(e.prototype,"scale",{set:function(e){this._scale=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baselineOffset",{set:function(e){this._baselineOffset=e},enumerable:!0,
configurable:!0}),e.prototype.toSVG=function(e,t){for(var i=Math.pow(2,this._scale-1),a=this._outputScaleX/i,r=this._outputScaleY/i,s=document.createElementNS("http://www.w3.org/2000/svg","path"),o=0,l=0,u=0,c=e.instructions;u<c.length;u++){var d=c[u];d instanceof n.drawing.MoveInstruction?(s.pathSegList.appendItem(s.createSVGPathSegMovetoAbs(d.x,d.y+this._baselineOffset)),o=Math.max(o,d.x),
l=Math.max(l,d.y+this._baselineOffset)):d instanceof n.drawing.LineInstruction?(s.pathSegList.appendItem(s.createSVGPathSegLinetoAbs(d.x,d.y+this._baselineOffset)),o=Math.max(o,d.x),l=Math.max(l,d.y+this._baselineOffset)):d instanceof n.drawing.CubicBezierCurveInstruction&&(s.pathSegList.appendItem(s.createSVGPathSegCurvetoCubicAbs(d.x3,d.y3+this._baselineOffset,d.x1,d.y1+this._baselineOffset,d.x2,d.y2+this._baselineOffset)),o=Math.max(o,d.x1,d.x2,d.x3),
l=Math.max(l,d.y1+this._baselineOffset,d.y2+this._baselineOffset,d.y3+this._baselineOffset))}var p=document.createElementNS("http://www.w3.org/2000/svg","svg");p.setAttribute("version","1.1"),p.width.baseVal.valueAsString=(o*a).toFixed(3)+"px",p.height.baseVal.valueAsString=(l*r).toFixed(3)+"px";var h=document.createElementNS("http://www.w3.org/2000/svg","g");return p.appendChild(h),h.setAttribute("transform","scale("+a.toFixed(3)+" "+r.toFixed(3)+")"),h.appendChild(s),
s.setAttribute("fill",t.toString()),p},e}();e.DrawingStyles=i},function(e,t){function n(e,t,n,i){var a='"'+e+'"';""!==n&&(a+=", "+n),i.style.fontFamily=a,i.style.fontSize=t+"px"}function i(e,t,i,a){return n(e,t,i,a),new u.Promise(function(e){return setTimeout(function(){return e(a.offsetHeight)},1e3)})}function a(e,t,i,a){return n(e,t,i,a),a.offsetHeight}function r(e,t){return[e,180/(t-e)]}function s(e,t,n){return i(e,180,t,n).then(function(a){return i(e,360,t,n).then(function(e){return r(a,e)})
})}function o(e,t,n){return 180+(e-t)*n}function l(e,t,n,i,s){var l=s.get(e);if(void 0===l){var u=a(e,180,n,i),c=a(e,360,n,i);s.set(e,l=r(u,c))}return o(t,l[0],l[1])}var u=t(32);e.calculateFontMetrics=s,e.fontSizeForLineHeight=l},function(e){var t=function(){function e(e,t){this._time=e,this._properties=t}return Object.defineProperty(e.prototype,"time",{get:function(){return this._time},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"properties",{get:function(){
return this._properties},enumerable:!0,configurable:!0}),e}();e.Keyframe=t},function(t,n){var i=n(34).__extends,a=n(17),r=n(18),s=n(19),o=n(20),l=n(22),u=n(10),c=n(15),d=n(6),p=n(8),h=n(23),f=n(25),v=n(27),m=n(31),g=n(30),y=n(32),b=/^(url|local)\(["']?(.+?)["']?\)$/,S=function(t){function n(n,i,a,r){var s=this;t.call(this,n,i,function(){if(!(a instanceof HTMLDivElement)){var e=r;r=a,a=e,
console.warn("WebRenderer's constructor now takes libjassSubsWrapper as the third parameter and settings as the fourth parameter. Please update the caller.")}return r}()),this._libjassSubsWrapper=a,this._layerWrappers=[],this._layerAlignmentWrappers=[],this._fontMetricsCache=new g.Map,this._currentSubs=new g.Map,this._preRenderedSubs=new g.Map,this._eventListeners=new g.Map,this._libjassSubsWrapper.classList.add("libjass-wrapper"),this._subsWrapper=document.createElement("div"),
this._libjassSubsWrapper.appendChild(this._subsWrapper),this._subsWrapper.className="libjass-subs",this._fontSizeElement=document.createElement("div"),this._libjassSubsWrapper.appendChild(this._fontSizeElement),this._fontSizeElement.className="libjass-font-measure",this._fontSizeElement.appendChild(document.createTextNode("M")),h.debugMode&&console.log("Preloading fonts...");var o=[],l=new g.Map,u=null===this.settings.fontMap?new g.Map:this.settings.fontMap,c=new g.Map
;this.settings.useAttachedFonts&&n.attachments.forEach(function(e){if(e.type===f.AttachmentType.Font){var t=null;try{t=d.getTtfNames(e)}catch(e){return void console.error(e)}var n="data:application/x-font-ttf;base64,"+e.contents;t.forEach(function(e){var t=u.get(e);if(void 0!==t)if("string"!=typeof t)t.push(n);else{var i=c.get(e);void 0===i&&c.set(e,i=[]),i.push(n)}else u.set(e,[n])})}}),u.forEach(function(t,n){var i;if(e.document.fonts&&e.document.fonts.add){
var a="string"==typeof t?t:t.map(function(e){return null!==e.match(b)?e:'url("'+e+'")'}).join(", "),r=c.get(n);if(void 0!==r)for(var u=0;u<r.length;u++){var d=r[u];a+=', url("'+d+'")'}var p=[];e.document.fonts.forEach(function(e){e.family!==n&&e.family!=='"'+n+'"'||p.push(e)});var f;if(0===p.length){var v=new FontFace(n,a),m=new FontFace('"'+n+'"',a);e.document.fonts.add(v),e.document.fonts.add(m),f=y.any([v.load(),m.load()])}else f=y.any(p.map(function(e){return e.load()}))
;i=s._calculateFontMetricsAfterFetch(n,f.catch(function(e){return console.warn("Fetching fonts for "+n+" at "+a+" failed: %o",e),null}))}else{var g=("string"==typeof t?t.split(/,/):t).map(function(e){return e.trim()}).map(function(e){var t=e.match(b);return null===t?e:"local"===t[1]?null:t[2]}).filter(function(e){return null!==e}),r=c.get(n);void 0!==r&&(g=g.concat(r));var S=g.map(function(e){var t=l.get(e);return void 0===t&&(t=new y.Promise(function(t,n){var i=new XMLHttpRequest
;i.addEventListener("load",function(){h.debugMode&&console.log("Preloaded "+e+"."),t(null)}),i.addEventListener("error",function(e){n(e)}),i.open("GET",e,!0),i.send()}),l.set(e,t)),t}),I=0===S.length?y.Promise.resolve(null):y.first(S).catch(function(e){return console.warn("Fetching fonts for "+n+" at "+g.join(", ")+" failed: %o",e),null});i=s._calculateFontMetricsAfterFetch(n,I)}o.push(i.then(function(e){return s._fontMetricsCache.set(n,e)}))}),y.Promise.all(o).then(function(){
h.debugMode&&console.log("All fonts have been preloaded."),s._ready()})}return i(n,t),Object.defineProperty(n.prototype,"libjassSubsWrapper",{get:function(){return this._libjassSubsWrapper},enumerable:!0,configurable:!0}),n.prototype.resize=function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=0),this._removeAllSubs(),this._subsWrapper.style.width=e.toFixed(3)+"px",this._subsWrapper.style.height=t.toFixed(3)+"px",this._subsWrapper.style.left=n.toFixed(3)+"px",
this._subsWrapper.style.top=i.toFixed(3)+"px",this._subsWrapperWidth=e,this._scaleX=e/this.ass.properties.resolutionX,this._scaleY=t/this.ass.properties.resolutionY,this._preRenderedSubs.clear(),this.clock.currentTime!==-1&&this._onClockTick()},n.prototype.preRender=function(e){var t=this,i=this._preRenderedSubs.get(e.id);if(i)return i;var s=this.clock.currentTime-e.start;if(e.containsTransformTag&&s<0)return null;var u=document.createElement("div")
;u.style.marginLeft=(this._scaleX*e.style.marginLeft).toFixed(3)+"px",u.style.marginRight=(this._scaleX*e.style.marginRight).toFixed(3)+"px",u.style.marginTop=u.style.marginBottom=(this._scaleY*e.style.marginVertical).toFixed(3)+"px",u.style.minWidth=(this._subsWrapperWidth-this._scaleX*(e.style.marginLeft+e.style.marginRight)).toFixed(3)+"px";var c=document.createElement("style");c.id="libjass-animation-styles-"+this.id+"-"+e.id,c.type="text/css"
;var d=new a.AnimationCollection(this,c),f=document.createElementNS("http://www.w3.org/2000/svg","svg");f.setAttribute("version","1.1"),f.setAttribute("class","libjass-filters"),f.width.baseVal.valueAsString="0",f.height.baseVal.valueAsString="0";var m=document.createElementNS("http://www.w3.org/2000/svg","defs");f.appendChild(m);var y=null,b=new l.SpanStyles(this,e,this._scaleX,this._scaleY,this.settings,this._fontSizeElement,m,this._fontMetricsCache),S=null,I=!1,M=function(e){
null!==y&&y.hasChildNodes()&&u.appendChild(b.setStylesOnSpan(y,S)),null!==S&&S.animationDelays.forEach(function(e,t){return d.animationDelays.set(t,e)}),e&&(I?u.appendChild(b.makeNewLine()):u.appendChild(document.createElement("br"))),y=document.createElement("span"),S=new a.AnimationCollection(t,c),I=e};M(!1);for(var C=new r.DrawingStyles(this._scaleX,this._scaleY),w=this.ass.properties.wrappingStyle,D=0,P=0,T=e.parts;P<T.length;P++){var x=T[P]
;if(x instanceof p.Italic)b.italic=x.value;else if(x instanceof p.Bold)b.bold=x.value;else if(x instanceof p.Underline)b.underline=x.value;else if(x instanceof p.StrikeThrough)b.strikeThrough=x.value;else if(x instanceof p.Border)b.outlineWidth=x.value,b.outlineHeight=x.value;else if(x instanceof p.BorderX)b.outlineWidth=x.value;else if(x instanceof p.BorderY)b.outlineHeight=x.value;else if(x instanceof p.Shadow)b.shadowDepthX=x.value,
b.shadowDepthY=x.value;else if(x instanceof p.ShadowX)b.shadowDepthX=x.value;else if(x instanceof p.ShadowY)b.shadowDepthY=x.value;else if(x instanceof p.Blur)b.blur=x.value;else if(x instanceof p.GaussianBlur)b.gaussianBlur=x.value;else if(x instanceof p.FontName)b.fontName=x.value;else if(x instanceof p.FontSize)b.fontSize=x.value;else if(x instanceof p.FontSizePlus)b.fontSize+=x.value;else if(x instanceof p.FontSizeMinus)b.fontSize-=x.value;else if(x instanceof p.FontScaleX)b.fontScaleX=x.value;else if(x instanceof p.FontScaleY)b.fontScaleY=x.value;else if(x instanceof p.LetterSpacing)b.letterSpacing=x.value;else if(x instanceof p.RotateX)b.rotationX=x.value;else if(x instanceof p.RotateY)b.rotationY=x.value;else if(x instanceof p.RotateZ)b.rotationZ=x.value;else if(x instanceof p.SkewX)b.skewX=x.value;else if(x instanceof p.SkewY)b.skewY=x.value;else if(x instanceof p.PrimaryColor)b.primaryColor=x.value;else if(x instanceof p.SecondaryColor)b.secondaryColor=x.value;else if(x instanceof p.OutlineColor)b.outlineColor=x.value;else if(x instanceof p.ShadowColor)b.shadowColor=x.value;else if(x instanceof p.Alpha)b.primaryAlpha=x.value,
b.secondaryAlpha=x.value,b.outlineAlpha=x.value,b.shadowAlpha=x.value;else if(x instanceof p.PrimaryAlpha)b.primaryAlpha=x.value;else if(x instanceof p.SecondaryAlpha)b.secondaryAlpha=x.value;else if(x instanceof p.OutlineAlpha)b.outlineAlpha=x.value;else if(x instanceof p.ShadowAlpha)b.shadowAlpha=x.value;else if(x instanceof p.Alignment);else if(x instanceof p.ColorKaraoke)M(!1),
S.add("step-end",[new o.Keyframe(0,new g.Map([["color",b.secondaryColor.withAlpha(b.secondaryAlpha).toString()]])),new o.Keyframe(D,new g.Map([["color",b.primaryColor.withAlpha(b.primaryAlpha).toString()]]))]),D+=x.duration;else if(x instanceof p.WrappingStyle)w=x.value;else if(x instanceof p.Reset)b.reset(this.ass.styles.get(x.value));else if(x instanceof p.Position)u.style.position="absolute",u.style.left=(this._scaleX*x.x).toFixed(3)+"px",
u.style.top=(this._scaleY*x.y).toFixed(3)+"px";else if(x instanceof p.Move)u.style.position="absolute",
d.add("linear",[new o.Keyframe(0,new g.Map([["left",(this._scaleX*x.x1).toFixed(3)+"px"],["top",(this._scaleY*x.y1).toFixed(3)+"px"]])),new o.Keyframe(x.t1,new g.Map([["left",(this._scaleX*x.x1).toFixed(3)+"px"],["top",(this._scaleY*x.y1).toFixed(3)+"px"]])),new o.Keyframe(x.t2,new g.Map([["left",(this._scaleX*x.x2).toFixed(3)+"px"],["top",(this._scaleY*x.y2).toFixed(3)+"px"]])),new o.Keyframe(e.end-e.start,new g.Map([["left",(this._scaleX*x.x2).toFixed(3)+"px"],["top",(this._scaleY*x.y2).toFixed(3)+"px"]]))]);else if(x instanceof p.Fade)d.add("linear",[new o.Keyframe(0,new g.Map([["opacity","0"]])),new o.Keyframe(x.start,new g.Map([["opacity","1"]])),new o.Keyframe(e.end-e.start-x.end,new g.Map([["opacity","1"]])),new o.Keyframe(e.end-e.start,new g.Map([["opacity","0"]]))]);else if(x instanceof p.ComplexFade)d.add("linear",[new o.Keyframe(0,new g.Map([["opacity",x.a1.toFixed(3)]])),new o.Keyframe(x.t1,new g.Map([["opacity",x.a1.toFixed(3)]])),new o.Keyframe(x.t2,new g.Map([["opacity",x.a2.toFixed(3)]])),new o.Keyframe(x.t3,new g.Map([["opacity",x.a2.toFixed(3)]])),new o.Keyframe(x.t4,new g.Map([["opacity",x.a3.toFixed(3)]])),new o.Keyframe(e.end-e.start,new g.Map([["opacity",x.a3.toFixed(3)]]))]);else if(x instanceof p.Transform)for(var E=s<=x.start?0:s>=x.end?1:Math.pow((s-x.start)/(x.end-x.start),x.accel),N=0,L=x.tags;N<L.length;N++){
var A=L[N];A instanceof p.Border?(b.outlineWidth+=E*(A.value-b.outlineWidth),b.outlineHeight+=E*(A.value-b.outlineHeight)):A instanceof p.BorderX?b.outlineWidth+=E*(A.value-b.outlineWidth):A instanceof p.BorderY?b.outlineHeight+=E*(A.value-b.outlineHeight):A instanceof p.Shadow?(b.shadowDepthX+=E*(A.value-b.shadowDepthX),
b.shadowDepthY+=E*(A.value-b.shadowDepthY)):A instanceof p.ShadowX?b.shadowDepthX+=E*(A.value-b.shadowDepthX):A instanceof p.ShadowY?b.shadowDepthY+=E*(A.value-b.shadowDepthY):A instanceof p.Blur?b.blur+=E*(A.value-b.blur):A instanceof p.GaussianBlur?b.gaussianBlur+=E*(A.value-b.gaussianBlur):A instanceof p.FontSize?b.fontSize+=E*(A.value-b.fontSize):A instanceof p.FontSizePlus?b.fontSize+=E*A.value:A instanceof p.FontSizeMinus?b.fontSize-=E*A.value:A instanceof p.FontScaleX?b.fontScaleX+=E*(A.value-b.fontScaleX):A instanceof p.FontScaleY?b.fontScaleY+=E*(A.value-b.fontScaleY):A instanceof p.LetterSpacing?b.letterSpacing+=E*(A.value-b.letterSpacing):A instanceof p.RotateX?b.rotationX+=E*(A.value-b.rotationX):A instanceof p.RotateY?b.rotationY+=E*(A.value-b.rotationY):A instanceof p.RotateZ?b.rotationZ+=E*(A.value-b.rotationZ):A instanceof p.SkewX?b.skewX+=E*(A.value-b.skewX):A instanceof p.SkewY?b.skewY+=E*(A.value-b.skewY):A instanceof p.PrimaryColor?b.primaryColor=b.primaryColor.interpolate(A.value,E):A instanceof p.SecondaryColor?b.secondaryColor=b.secondaryColor.interpolate(A.value,E):A instanceof p.OutlineColor?b.outlineColor=b.outlineColor.interpolate(A.value,E):A instanceof p.ShadowColor?b.shadowColor=b.shadowColor.interpolate(A.value,E):A instanceof p.Alpha?(b.primaryAlpha+=E*(A.value-b.primaryAlpha),
b.secondaryAlpha+=E*(A.value-b.secondaryAlpha),b.outlineAlpha+=E*(A.value-b.outlineAlpha),b.shadowAlpha+=E*(A.value-b.shadowAlpha)):A instanceof p.PrimaryAlpha?b.primaryAlpha+=E*(A.value-b.primaryAlpha):A instanceof p.SecondaryAlpha?b.secondaryAlpha+=E*(A.value-b.secondaryAlpha):A instanceof p.OutlineAlpha?b.outlineAlpha+=E*(A.value-b.outlineAlpha):A instanceof p.ShadowAlpha&&(b.shadowAlpha+=E*(A.value-b.shadowAlpha))
}else x instanceof p.DrawingMode?0!==x.scale&&(C.scale=x.scale):x instanceof p.DrawingBaselineOffset?C.baselineOffset=x.value:x instanceof p.DrawingInstructions?(y.appendChild(C.toSVG(x,b.primaryColor.withAlpha(b.primaryAlpha))),M(!1)):x instanceof p.Text?(y.appendChild(document.createTextNode(x.value+"\u200c")),M(!1)):h.debugMode&&x instanceof p.Comment?(y.appendChild(document.createTextNode(x.value)),M(!1)):x instanceof p.NewLine&&M(!0)}for(var k=0,_=e.parts;k<_.length;k++){var x=_[k]
;if(x instanceof p.Position||x instanceof p.Move){var O=n._transformOrigins[e.alignment],j="translate("+-O[0]+"%, "+-O[1]+"%) translate(-"+u.style.marginLeft+", -"+u.style.marginTop+")",R=O[0]+"% "+O[1]+"%";u.style.webkitTransform=j,u.style.webkitTransformOrigin=R,u.style.transform=j,u.style.transformOrigin=R;break}}switch(w){case v.WrappingStyle.EndOfLineWrapping:u.style.whiteSpace="pre-wrap";break;case v.WrappingStyle.NoLineWrapping:u.style.whiteSpace="pre";break
;case v.WrappingStyle.SmartWrappingWithWiderTopLine:case v.WrappingStyle.SmartWrappingWithWiderBottomLine:u.style.whiteSpace="pre-wrap"}if(""!==u.style.position)switch(e.alignment){case 1:case 4:case 7:u.style.textAlign="left";break;case 2:case 5:case 8:u.style.textAlign="center";break;case 3:case 6:case 9:u.style.textAlign="right"}u.style.webkitAnimation=d.animationStyle,u.style.animation=d.animationStyle,u.setAttribute("data-dialogue-id",this.id+"-"+e.id),""!==c.textContent&&u.appendChild(c),
m.hasChildNodes()&&u.appendChild(f);var U={sub:u,animationDelays:d.animationDelays};return e.containsTransformTag||this._preRenderedSubs.set(e.id,U),U},n.prototype.draw=function(e){var t=this;if(!this._currentSubs.has(e)||e.containsTransformTag){h.debugMode&&console.log(e.toString());var n=this._preRenderedSubs.get(e.id);void 0===n&&(n=this.preRender(e),h.debugMode&&console.log(e.toString()));var i=n.sub.cloneNode(!0),a=function(i){var a=i.style.animationName||i.style.webkitAnimationName
;if(void 0!==a&&""!==a){var r=a.split(",").map(function(i){return i=i.trim(),((n.animationDelays.get(i)+e.start-t.clock.currentTime)/t.clock.rate).toFixed(3)+"s"}).join(", ");i.style.webkitAnimationDelay=r,i.style.animationDelay=r}};a(i);for(var r=i.querySelectorAll('[style*="animation:"]'),s=0;s<r.length;s++)a(r[s]);var o=e.layer,l="absolute"===i.style.position?0:e.alignment;if(void 0===this._layerWrappers[o]){var u=document.createElement("div");u.className="layer layer"+o
;for(var c=null,d=o+1;d<this._layerWrappers.length&&null===c;d++)void 0!==this._layerWrappers[d]&&(c=this._layerWrappers[d]);this._subsWrapper.insertBefore(u,c),this._layerWrappers[o]=u,this._layerAlignmentWrappers[o]=[]}if(void 0===this._layerAlignmentWrappers[o][l]){var p=document.createElement("div");p.className="an an"+l
;for(var u=this._layerWrappers[o],c=null,f=l+1;f<this._layerAlignmentWrappers[o].length&&null===c;f++)void 0!==this._layerAlignmentWrappers[o][f]&&(c=this._layerAlignmentWrappers[o][f]);u.insertBefore(p,c),this._layerAlignmentWrappers[o][l]=p}this._layerAlignmentWrappers[o][l].appendChild(i);var v=i.getElementsByTagName("style")[0];if(void 0!==v){var m=v.sheet;0===m.cssRules.length&&(m.cssText=v.textContent)}this._currentSubs.set(e,i)}},n.prototype._onClockPlay=function(){
t.prototype._onClockPlay.call(this),this._removeAllSubs(),this._subsWrapper.style.display="",this._subsWrapper.classList.remove("paused")},n.prototype._onClockTick=function(){var e=this,n=this.clock.currentTime;this._currentSubs.forEach(function(t,i){(i.start>n||i.end<n||i.containsTransformTag)&&(e._currentSubs.delete(i),e._removeSub(t))}),t.prototype._onClockTick.call(this)},n.prototype._onClockPause=function(){t.prototype._onClockPause.call(this),this._subsWrapper.classList.add("paused")},
n.prototype._onClockStop=function(){t.prototype._onClockStop.call(this),this._subsWrapper.style.display="none"},n.prototype._onClockRateChange=function(){t.prototype._onClockRateChange.call(this),this._preRenderedSubs.clear()},n.prototype._ready=function(){this._dispatchEvent("ready",[])},n.prototype._calculateFontMetricsAfterFetch=function(e,t){var n=this;return t.then(function(){var t=n._fontSizeElement.cloneNode(!0);return n._libjassSubsWrapper.appendChild(t),
y.lastly(s.calculateFontMetrics(e,n.settings.fallbackFonts,t),function(){n._libjassSubsWrapper.removeChild(t)})})},n.prototype._removeSub=function(e){e.parentNode.removeChild(e)},n.prototype._removeAllSubs=function(){var e=this;this._currentSubs.forEach(function(t){return e._removeSub(t)}),this._currentSubs.clear()},n._transformOrigins=[null,[0,100],[50,100],[100,100],[0,50],[50,50],[100,50],[0,0],[50,0],[100,0]],n}(c.NullRenderer);t.WebRenderer=S,m.mixin(S,[u.EventSource])},function(e,t){
var n=t(19),i=function(){function e(e,t,n,i,a,r,s,o){this._scaleX=n,this._scaleY=i,this._settings=a,this._fontSizeElement=r,this._svgDefsElement=s,this._fontMetricsCache=o,this._nextFilterId=0,this._id=e.id+"-"+t.id,this._defaultStyle=t.style,this.reset(null)}return e.prototype.reset=function(e){void 0!==e&&null!==e||(e=this._defaultStyle),this.italic=e.italic,this.bold=e.bold,this.underline=e.underline,this.strikeThrough=e.strikeThrough,this.outlineWidth=e.outlineThickness,
this.outlineHeight=e.outlineThickness,this.shadowDepthX=e.shadowDepth,this.shadowDepthY=e.shadowDepth,this.fontName=e.fontName,this.fontSize=e.fontSize,this.fontScaleX=e.fontScaleX,this.fontScaleY=e.fontScaleY,this.letterSpacing=e.letterSpacing,this._rotationX=null,this._rotationY=null,this._rotationZ=e.rotationZ,this._skewX=null,this._skewY=null,this.primaryColor=e.primaryColor,this.secondaryColor=e.secondaryColor,this.outlineColor=e.outlineColor,this.shadowColor=e.shadowColor,
this.primaryAlpha=e.primaryColor.alpha,this.secondaryAlpha=e.secondaryColor.alpha,this.outlineAlpha=e.outlineColor.alpha,this.shadowAlpha=e.shadowColor.alpha,this.blur=null,this.gaussianBlur=null},e.prototype.setStylesOnSpan=function(t,i){var a=t.childNodes[0]instanceof Text,r="";this._italic&&(r+="italic "),this._bold===!0?r+="bold ":this._bold!==!1&&(r+=this._bold+" ")
;var s=(this._scaleY*n.fontSizeForLineHeight(this._fontName,this._fontSize*(a?this._fontScaleX:1),this._settings.fallbackFonts,this._fontSizeElement,this._fontMetricsCache)).toFixed(3),o=(this._scaleY*this._fontSize).toFixed(3),l=this._fontName;switch(l){case"cursive":case"fantasy":case"monospace":case"sans-serif":case"serif":break;default:l='"'+l+'"'}""!==this._settings.fallbackFonts&&(l+=", "+this._settings.fallbackFonts),t.style.font=""+r+s+"px/"+o+"px "+l;var u=""
;this._underline&&(u="underline"),this._strikeThrough&&(u+=" line-through"),t.style.textDecoration=u.trim();var c="";if(a?this._fontScaleY!==this._fontScaleX&&(c+="scaleY("+(this._fontScaleY/this._fontScaleX).toFixed(3)+") "):(1!==this._fontScaleX&&(c+="scaleX("+this._fontScaleX+") "),1!==this._fontScaleY&&(c+="scaleY("+this._fontScaleY+") ")),null!==this._rotationY&&(c+="rotateY("+this._rotationY+"deg) "),null!==this._rotationX&&(c+="rotateX("+this._rotationX+"deg) "),
0!==this._rotationZ&&(c+="rotateZ("+-1*this._rotationZ+"deg) "),null!==this._skewX||null!==this._skewY){var d=e._valueOrDefault(this._skewX,0);c+="matrix(1, "+e._valueOrDefault(this._skewY,0)+", "+d+", 1, 0, 0) "}""!==c&&(t.style.webkitTransform=c,t.style.webkitTransformOrigin="50% 50%",t.style.transform=c,t.style.transformOrigin="50% 50%",t.style.display="inline-block"),t.style.letterSpacing=(this._scaleX*this._letterSpacing).toFixed(3)+"px"
;var p=this._scaleX*this._outlineWidth,h=this._scaleY*this._outlineHeight,f=document.createElement("span");f.appendChild(t);var v=this._primaryColor.withAlpha(this._primaryAlpha),m=this._outlineColor.withAlpha(this._outlineAlpha),g=this._shadowColor.withAlpha(this._shadowAlpha);if(this._settings.enableSvg||(0!==p||0!==h)&&m.alpha!==v.alpha||(0!==this._shadowDepthX||0!==this._shadowDepthY)&&g.alpha!==v.alpha||(v=this._primaryColor.withAlpha(1),m=this._outlineColor.withAlpha(1),
g=this._shadowColor.withAlpha(1),t.style.opacity=this._primaryAlpha.toFixed(3)),t.style.color=v.toString(),this._settings.enableSvg?this._setSvgOutlineOnSpan(f,p,h,m,this._primaryAlpha):this._setTextShadowOutlineOnSpan(t,p,h,m),0!==this._shadowDepthX||0!==this._shadowDepthY){var y=g.toString()+" "+(this._shadowDepthX*this._scaleX).toFixed(3)+"px "+(this._shadowDepthY*this._scaleY).toFixed(3)+"px 0px";""===t.style.textShadow?t.style.textShadow=y:t.style.textShadow+=", "+y}
return 0===this._rotationX&&0===this._rotationY||(f.style.display="inline-block"),t.style.webkitAnimation=i.animationStyle,t.style.animation=i.animationStyle,f},e.prototype._setSvgOutlineOnSpan=function(e,t,n,i,a){var r="svg-filter-"+this._id+"-"+this._nextFilterId++,s=document.createElementNS("http://www.w3.org/2000/svg","filter");if(s.id=r,s.x.baseVal.valueAsString="-50%",s.width.baseVal.valueAsString="200%",s.y.baseVal.valueAsString="-50%",s.height.baseVal.valueAsString="200%",t>0||n>0){
var o=0,l=!this._settings.preciseOutlines&&this._gaussianBlur>0?this._gaussianBlur:1;!function(e){if(t<=n)if(t>0){var i;for(i=0;i<=t;i+=l)e(i,n/t*Math.sqrt(t*t-i*i));i!==t+l&&e(t,0)}else e(0,n);else if(n>0){var a;for(a=0;a<=n;a+=l)e(t/n*Math.sqrt(n*n-a*a),a);a!==n+l&&e(0,n)}else e(t,0)}(function(e,t){var n=document.createElementNS("http://www.w3.org/2000/svg","feMorphology");s.appendChild(n),n.in1.baseVal="source",n.operator.baseVal=SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_DILATE,
n.radiusX.baseVal=e,n.radiusY.baseVal=t,n.result.baseVal="outline"+o,o++});var u=document.createElementNS("http://www.w3.org/2000/svg","feComponentTransfer");s.insertBefore(u,s.firstElementChild),u.in1.baseVal="SourceAlpha",u.result.baseVal="source";var c=document.createElementNS("http://www.w3.org/2000/svg","feFuncA");u.appendChild(c),c.type.baseVal=SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_LINEAR,c.slope.baseVal=0===a?1:1/a,c.intercept.baseVal=0
;var d=document.createElementNS("http://www.w3.org/2000/svg","feMerge");s.appendChild(d);for(var p=0;p<o;p++){var h=document.createElementNS("http://www.w3.org/2000/svg","feMergeNode");d.appendChild(h),h.in1.baseVal="outline"+p}var f=document.createElementNS("http://www.w3.org/2000/svg","feComponentTransfer");s.appendChild(f),f.setAttribute("color-interpolation-filters","sRGB");var v=document.createElementNS("http://www.w3.org/2000/svg","feFuncR");f.appendChild(v),
v.type.baseVal=SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_LINEAR,v.slope.baseVal=0,v.intercept.baseVal=i.red/255*i.alpha;var m=document.createElementNS("http://www.w3.org/2000/svg","feFuncG");f.appendChild(m),m.type.baseVal=SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_LINEAR,m.slope.baseVal=0,m.intercept.baseVal=i.green/255*i.alpha;var g=document.createElementNS("http://www.w3.org/2000/svg","feFuncB");f.appendChild(g),
g.type.baseVal=SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_LINEAR,g.slope.baseVal=0,g.intercept.baseVal=i.blue/255*i.alpha;var y=document.createElementNS("http://www.w3.org/2000/svg","feFuncA");if(f.appendChild(y),y.type.baseVal=SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_LINEAR,y.slope.baseVal=i.alpha,y.intercept.baseVal=0,this._gaussianBlur>0){var b=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur");s.appendChild(b),
b.stdDeviationX.baseVal=this._gaussianBlur,b.stdDeviationY.baseVal=this._gaussianBlur}for(var p=0;p<this._blur;p++){var S=document.createElementNS("http://www.w3.org/2000/svg","feConvolveMatrix");s.appendChild(S),S.setAttribute("kernelMatrix","1 2 1 2 4 2 1 2 1"),S.edgeMode.baseVal=SVGFEConvolveMatrixElement.SVG_EDGEMODE_NONE}var I=document.createElementNS("http://www.w3.org/2000/svg","feComposite");s.appendChild(I),I.in2.baseVal="source",
I.operator.baseVal=SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_OUT;var M=document.createElementNS("http://www.w3.org/2000/svg","feMerge");s.appendChild(M);var C=document.createElementNS("http://www.w3.org/2000/svg","feMergeNode");M.appendChild(C);var w=document.createElementNS("http://www.w3.org/2000/svg","feMergeNode");M.appendChild(w),w.in1.baseVal="SourceGraphic"}else{if(this._gaussianBlur>0){var b=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur");s.appendChild(b),
b.stdDeviationX.baseVal=this._gaussianBlur,b.stdDeviationY.baseVal=this._gaussianBlur}for(var p=0;p<this._blur;p++){var S=document.createElementNS("http://www.w3.org/2000/svg","feConvolveMatrix");s.appendChild(S),S.setAttribute("kernelMatrix","1 2 1 2 4 2 1 2 1"),S.edgeMode.baseVal=SVGFEConvolveMatrixElement.SVG_EDGEMODE_NONE}}s.childElementCount>0&&(this._svgDefsElement.appendChild(s),e.style.webkitFilter='url("#'+r+'")',e.style.filter='url("#'+r+'")')},
e.prototype._setTextShadowOutlineOnSpan=function(e,t,n,i){var a=this;if(t>0||n>0){var r="";!function(e){for(var i=0;i<=t;i++)for(var a=0===t?n:n*Math.sqrt(1-i*i/(t*t)),r=0;r<=a;r++)e(i,r),0!==i&&e(-i,r),0!==r&&e(i,-r),0!==i&&0!==r&&e(-i,-r)}(function(e,t){r+=", "+i.toString()+" "+e+"px "+t+"px "+a._gaussianBlur.toFixed(3)+"px"}),e.style.textShadow=r.substr(", ".length)}},e.prototype.makeNewLine=function(){var e=document.createElement("br")
;return e.style.lineHeight=(this._scaleY*this._fontSize).toFixed(3)+"px",e},Object.defineProperty(e.prototype,"italic",{set:function(t){this._italic=e._valueOrDefault(t,this._defaultStyle.italic)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bold",{set:function(t){this._bold=e._valueOrDefault(t,this._defaultStyle.bold)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"underline",{set:function(t){
this._underline=e._valueOrDefault(t,this._defaultStyle.underline)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strikeThrough",{set:function(t){this._strikeThrough=e._valueOrDefault(t,this._defaultStyle.strikeThrough)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outlineWidth",{get:function(){return this._outlineWidth},set:function(t){this._outlineWidth=e._valueOrDefault(t,this._defaultStyle.outlineThickness)},enumerable:!0,configurable:!0}),
Object.defineProperty(e.prototype,"outlineHeight",{get:function(){return this._outlineWidth},set:function(t){this._outlineHeight=e._valueOrDefault(t,this._defaultStyle.outlineThickness)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shadowDepthX",{get:function(){return this._shadowDepthX},set:function(t){this._shadowDepthX=e._valueOrDefault(t,this._defaultStyle.shadowDepth)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shadowDepthY",{get:function(){
return this._shadowDepthY},set:function(t){this._shadowDepthY=e._valueOrDefault(t,this._defaultStyle.shadowDepth)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"blur",{get:function(){return this._blur},set:function(t){this._blur=e._valueOrDefault(t,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gaussianBlur",{get:function(){return this._gaussianBlur},set:function(t){this._gaussianBlur=e._valueOrDefault(t,0)},enumerable:!0,configurable:!0}),
Object.defineProperty(e.prototype,"fontName",{set:function(t){this._fontName=e._valueOrDefault(t,this._defaultStyle.fontName)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this._fontSize},set:function(t){this._fontSize=e._valueOrDefault(t,this._defaultStyle.fontSize)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontScaleX",{get:function(){return this._fontScaleX},set:function(t){
this._fontScaleX=e._valueOrDefault(t,this._defaultStyle.fontScaleX)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontScaleY",{get:function(){return this._fontScaleY},set:function(t){this._fontScaleY=e._valueOrDefault(t,this._defaultStyle.fontScaleY)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(t){this._letterSpacing=e._valueOrDefault(t,this._defaultStyle.letterSpacing)},
enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationX",{get:function(){return this._rotationX},set:function(e){this._rotationX=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationY",{get:function(){return this._rotationY},set:function(e){this._rotationY=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationZ",{get:function(){return this._rotationZ},set:function(t){
this._rotationZ=e._valueOrDefault(t,this._defaultStyle.rotationZ)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"skewX",{get:function(){return this._skewX},set:function(e){this._skewX=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"skewY",{get:function(){return this._skewY},set:function(e){this._skewY=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"primaryColor",{get:function(){return this._primaryColor},set:function(t){
this._primaryColor=e._valueOrDefault(t,this._defaultStyle.primaryColor)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"secondaryColor",{get:function(){return this._secondaryColor},set:function(t){this._secondaryColor=e._valueOrDefault(t,this._defaultStyle.secondaryColor)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outlineColor",{get:function(){return this._outlineColor},set:function(t){
this._outlineColor=e._valueOrDefault(t,this._defaultStyle.outlineColor)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shadowColor",{get:function(){return this._shadowColor},set:function(t){this._shadowColor=e._valueOrDefault(t,this._defaultStyle.shadowColor)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"primaryAlpha",{get:function(){return this._primaryAlpha},set:function(t){this._primaryAlpha=e._valueOrDefault(t,this._defaultStyle.primaryColor.alpha)
},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"secondaryAlpha",{get:function(){return this._secondaryAlpha},set:function(t){this._secondaryAlpha=e._valueOrDefault(t,this._defaultStyle.secondaryColor.alpha)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outlineAlpha",{get:function(){return this._outlineAlpha},set:function(t){this._outlineAlpha=e._valueOrDefault(t,this._defaultStyle.outlineColor.alpha)},enumerable:!0,configurable:!0}),
Object.defineProperty(e.prototype,"shadowAlpha",{get:function(){return this._shadowAlpha},set:function(t){this._shadowAlpha=e._valueOrDefault(t,this._defaultStyle.shadowColor.alpha)},enumerable:!0,configurable:!0}),e._valueOrDefault=function(e,t){return null!==e?e:t},e}();e.SpanStyles=i},function(e){function t(t){e.debugMode=t}function n(t){e.verboseMode=t}e.debugMode=!1,e.verboseMode=!1,e.setDebugMode=t,e.setVerboseMode=n},function(t,n){
var i=n(26),a=n(29),r=n(28),s=n(27),o=n(23),l=n(1),u=n(2),c=n(30),d=n(32),p=function(){function t(){if(this._properties=new r.ScriptProperties,this._styles=new c.Map,this._dialogues=[],this._attachments=[],this._stylesFormatSpecifier=null,this._dialoguesFormatSpecifier=null,1===arguments.length)throw new Error("Constructor `new ASS(rawASS)` has been deprecated. Use `ASS.fromString(rawASS)` instead.");this._styles.set("Default",new a.Style(new c.Map([["Name","Default"]])))}
return Object.defineProperty(t.prototype,"properties",{get:function(){return this._properties},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"styles",{get:function(){return this._styles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dialogues",{get:function(){return this._dialogues},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"attachments",{get:function(){return this._attachments},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"stylesFormatSpecifier",{get:function(){return this._stylesFormatSpecifier},set:function(e){this._stylesFormatSpecifier=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dialoguesFormatSpecifier",{get:function(){return this._dialoguesFormatSpecifier},set:function(e){this._dialoguesFormatSpecifier=e},enumerable:!0,configurable:!0}),t.prototype.addStyle=function(e){var t=u.parseLineIntoTypedTemplate(e,this._stylesFormatSpecifier)
;if(null!==t&&"Style"===t.type){var n=t.template;if(o.verboseMode){var i="";n.forEach(function(e,t){return i+=t+" = "+e+", "}),console.log("Read style: "+i)}var r=new a.Style(n);this._styles.set(r.name,r)}},t.prototype.addEvent=function(e){var t=u.parseLineIntoTypedTemplate(e,this._dialoguesFormatSpecifier);if(null!==t&&"Dialogue"===t.type){var n=t.template;if(o.verboseMode){var a="";n.forEach(function(e,t){return a+=t+" = "+e+", "}),console.log("Read dialogue: "+a)}
this.dialogues.push(new i.Dialogue(n,this))}},t.prototype.addAttachment=function(e){this._attachments.push(e)},t.fromString=function(e,n){return void 0===n&&(n=s.Format.ASS),t.fromStream(new l.StringStream(e),n)},t.fromStream=function(e,t){switch(void 0===t&&(t=s.Format.ASS),t){case s.Format.ASS:return new l.StreamParser(e).ass;case s.Format.SRT:return new l.SrtStreamParser(e).ass;default:throw new Error("Illegal value of type: "+t)}},t.fromUrl=function(n,i){void 0===i&&(i=s.Format.ASS);var a
;return a="function"==typeof e.fetch&&"function"==typeof e.ReadableStream&&"function"==typeof e.ReadableStream.prototype.getReader&&"function"==typeof e.TextDecoder?e.fetch(n).then(function(e){if(e.ok===!1||void 0===e.ok&&(e.status<200||e.status>299))throw new Error("HTTP request for "+n+" failed with status code "+e.status);return t.fromReadableStream(e.body,"utf-8",i)}):d.Promise.reject(new Error("Not supported.")),a.catch(function(e){console.warn("fetch() failed, falling back to XHR: %o",e)
;var a=new XMLHttpRequest,r=t.fromStream(new l.XhrStream(a),i);return a.open("GET",n,!0),a.send(),r})},t.fromReadableStream=function(e,n,i){return void 0===n&&(n="utf-8"),void 0===i&&(i=s.Format.ASS),t.fromStream(new l.BrowserReadableStream(e,n),i)},t}();t.ASS=p},function(e){!function(e){e[e.Font=0]="Font",e[e.Graphic=1]="Graphic"}(e.AttachmentType||(e.AttachmentType={}));var t=function(){function e(e,t){this._filename=e,this._type=t,this._contents=""}
return Object.defineProperty(e.prototype,"filename",{get:function(){return this._filename},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contents",{get:function(){return this._contents},set:function(e){this._contents=e},enumerable:!0,configurable:!0}),e}();e.Attachment=t},function(e,t){var n=t(27),i=t(3),a=t(8),r=t(23),s=t(30),o=function(){function e(t,i){
this._parts=null,this._containsTransformTag=!1;var a=new s.Map;t.forEach(function(e,t){a.set(t.toLowerCase(),e)}),t=a,this._id=++e._lastDialogueId;var o=t.get("style");if(void 0!==o&&null!==o&&o.constructor===String&&(o=o.replace(/^\*+/,""),null!==o.match(/^Default$/i)&&(o="Default")),this._style=i.styles.get(o),void 0===this._style&&(r.debugMode&&console.warn("Unrecognized style "+o+'. Falling back to "Default"'),this._style=i.styles.get("Default")),
void 0===this._style)throw new Error("Unrecognized style "+o);if(this._start=e._toTime(t.get("start")),this._end=e._toTime(t.get("end")),this._layer=Math.max(n.valueOrDefault(t,"layer",parseInt,function(e){return!isNaN(e)},"0"),0),this._rawPartsString=t.get("text"),void 0===this._rawPartsString||null===this._rawPartsString||this._rawPartsString.constructor!==String)throw new Error("Dialogue doesn't have any text.")}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},
enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return this._style},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignment",{get:function(){return null===this._parts&&this._parsePartsString(),this._alignment},
enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layer",{get:function(){return this._layer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parts",{get:function(){return null===this._parts&&this._parsePartsString(),this._parts},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"containsTransformTag",{get:function(){return null===this._parts&&this._parsePartsString(),this._containsTransformTag},enumerable:!0,configurable:!0}),
e.prototype.toString=function(){return"#"+this._id+" ["+this._start.toFixed(3)+"-"+this._end.toFixed(3)+"] "+(null!==this._parts?this._parts.join(", "):this._rawPartsString)},e.prototype._parsePartsString=function(){var e=this;if(this._parts=i.parse(this._rawPartsString,"dialogueParts"),this._alignment=this._style.alignment,this._parts.forEach(function(t,n){
t instanceof a.Alignment?e._alignment=t.value:t instanceof a.Move?null!==t.t1&&null!==t.t2||(e._parts[n]=new a.Move(t.x1,t.y1,t.x2,t.y2,0,e._end-e._start)):t instanceof a.Transform&&(null!==t.start&&null!==t.end&&null!==t.accel||(e._parts[n]=new a.Transform(null===t.start?0:t.start,null===t.end?e._end-e._start:t.end,null===t.accel?1:t.accel,t.tags)),e._containsTransformTag=!0)}),r.debugMode){var t=this._parts.filter(function(e){return e instanceof a.Comment&&e.value.indexOf("\\")!==-1})
;t.length>0&&console.warn("Possible incorrect parse:\n"+this._rawPartsString+"\nwas parsed as\n"+this.toString()+"\nThe possibly incorrect parses are:\n"+t.join("\n"))}},e._toTime=function(e){return e.split(":").reduce(function(e,t){return 60*e+parseFloat(t)},0)},e._lastDialogueId=-1,e}();e.Dialogue=o},function(e){function t(e,t,n,i,a){var r=e.get(t);if(void 0===r)return n(a);try{var s=n(r);if(null!==i&&!i(s))throw new Error("Validation failed.");return s}catch(e){
throw new Error("Property "+t+" has invalid value "+r+" - "+e.stack)}}!function(e){e[e.ASS=0]="ASS",e[e.SRT=1]="SRT"}(e.Format||(e.Format={})),function(e){e[e.SmartWrappingWithWiderTopLine=0]="SmartWrappingWithWiderTopLine",e[e.SmartWrappingWithWiderBottomLine=3]="SmartWrappingWithWiderBottomLine",e[e.EndOfLineWrapping=1]="EndOfLineWrapping",e[e.NoLineWrapping=2]="NoLineWrapping"}(e.WrappingStyle||(e.WrappingStyle={})),function(e){e[e.Outline=1]="Outline",e[e.OpaqueBox=3]="OpaqueBox"
}(e.BorderStyle||(e.BorderStyle={})),e.valueOrDefault=t},function(e){var t=function(){function e(){}return Object.defineProperty(e.prototype,"resolutionX",{get:function(){return this._resolutionX},set:function(e){this._resolutionX=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resolutionY",{get:function(){return this._resolutionY},set:function(e){this._resolutionY=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrappingStyle",{get:function(){
return this._wrappingStyle},set:function(e){this._wrappingStyle=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scaleBorderAndShadow",{get:function(){return this._scaleBorderAndShadow},set:function(e){this._scaleBorderAndShadow=e},enumerable:!0,configurable:!0}),e}();e.ScriptProperties=t},function(e,t){var n=t(27),i=t(3),a=t(30),r=function(){function e(e){var t=new a.Map;if(e.forEach(function(e,n){t.set(n.toLowerCase(),e)}),e=t,this._name=e.get("name"),
void 0===this._name||null===this._name||this._name.constructor!==String)throw new Error("Style doesn't have a name.");this._name=this._name.replace(/^\*+/,""),this._italic=!!n.valueOrDefault(e,"italic",parseFloat,function(e){return!isNaN(e)},"0"),this._bold=!!n.valueOrDefault(e,"bold",parseFloat,function(e){return!isNaN(e)},"0"),this._underline=!!n.valueOrDefault(e,"underline",parseFloat,function(e){return!isNaN(e)},"0"),
this._strikeThrough=!!n.valueOrDefault(e,"strikeout",parseFloat,function(e){return!isNaN(e)},"0"),this._fontName=n.valueOrDefault(e,"fontname",function(e){return e},function(e){return e.constructor===String},"sans-serif"),this._fontSize=n.valueOrDefault(e,"fontsize",parseFloat,function(e){return!isNaN(e)},"18"),this._fontScaleX=n.valueOrDefault(e,"scalex",parseFloat,function(e){return e>=0},"100")/100,this._fontScaleY=n.valueOrDefault(e,"scaley",parseFloat,function(e){return e>=0},"100")/100,
this._letterSpacing=n.valueOrDefault(e,"spacing",parseFloat,function(e){return e>=0},"0"),this._rotationZ=n.valueOrDefault(e,"angle",parseFloat,function(e){return!isNaN(e)},"0"),this._primaryColor=n.valueOrDefault(e,"primarycolour",function(e){return i.parse(e,"colorWithAlpha")},null,"&H00FFFFFF"),this._secondaryColor=n.valueOrDefault(e,"secondarycolour",function(e){return i.parse(e,"colorWithAlpha")},null,"&H00FFFF00"),this._outlineColor=n.valueOrDefault(e,"outlinecolour",function(e){
return i.parse(e,"colorWithAlpha")},null,"&H00000000"),this._shadowColor=n.valueOrDefault(e,"backcolour",function(e){return i.parse(e,"colorWithAlpha")},null,"&H80000000"),this._outlineThickness=n.valueOrDefault(e,"outline",parseFloat,function(e){return e>=0},"2"),this._borderStyle=n.valueOrDefault(e,"borderstyle",parseInt,function(e){return n.BorderStyle[n.BorderStyle[e]]===e},"1"),this._shadowDepth=n.valueOrDefault(e,"shadow",parseFloat,function(e){return e>=0},"3"),
this._alignment=n.valueOrDefault(e,"alignment",parseInt,function(e){return e>=1&&e<=9},"2"),this._marginLeft=n.valueOrDefault(e,"marginl",parseFloat,function(e){return!isNaN(e)},"20"),this._marginRight=n.valueOrDefault(e,"marginr",parseFloat,function(e){return!isNaN(e)},"20"),this._marginVertical=n.valueOrDefault(e,"marginv",parseFloat,function(e){return!isNaN(e)},"20")}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),
Object.defineProperty(e.prototype,"italic",{get:function(){return this._italic},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bold",{get:function(){return this._bold},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"underline",{get:function(){return this._underline},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strikeThrough",{get:function(){return this._strikeThrough},enumerable:!0,configurable:!0}),
Object.defineProperty(e.prototype,"fontName",{get:function(){return this._fontName},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this._fontSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontScaleX",{get:function(){return this._fontScaleX},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontScaleY",{get:function(){return this._fontScaleY},enumerable:!0,configurable:!0}),
Object.defineProperty(e.prototype,"letterSpacing",{get:function(){return this._letterSpacing},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationZ",{get:function(){return this._rotationZ},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"primaryColor",{get:function(){return this._primaryColor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"secondaryColor",{get:function(){return this._secondaryColor},enumerable:!0,configurable:!0}),
Object.defineProperty(e.prototype,"outlineColor",{get:function(){return this._outlineColor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shadowColor",{get:function(){return this._shadowColor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outlineThickness",{get:function(){return this._outlineThickness},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"borderStyle",{get:function(){return this._borderStyle},enumerable:!0,configurable:!0}),
Object.defineProperty(e.prototype,"shadowDepth",{get:function(){return this._shadowDepth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignment",{get:function(){return this._alignment},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"marginLeft",{get:function(){return this._marginLeft},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"marginRight",{get:function(){return this._marginRight},enumerable:!0,configurable:!0}),
Object.defineProperty(e.prototype,"marginVertical",{get:function(){return this._marginVertical},enumerable:!0,configurable:!0}),e}();e.Style=r},function(t){function n(e){t.Map=null!==e?e:i}t.Map=e.Map;var i=function(){function e(e){if(this.clear(),void 0!==e){if(!Array.isArray(e))throw new Error("Non-array iterables are not supported by the SimpleMap constructor.");for(var t=0;t<e.length;t++){var n=e[t];this.set(n[0],n[1])}}}return e.prototype.get=function(e){var t=this._keyToProperty(e)
;if(null!==t)return this._values[t]},e.prototype.has=function(e){var t=this._keyToProperty(e);return null!==t&&t in this._keys},e.prototype.set=function(e,t){var n=this._keyToProperty(e);if(null===n)throw new Error("This Map implementation only supports Number and String keys, or keys with an id property.");return n in this._keys||this._size++,this._keys[n]=e,this._values[n]=t,this},e.prototype.delete=function(e){var t=this._keyToProperty(e);if(null===t)return!1;var n=t in this._keys
;return n&&(delete this._keys[t],delete this._values[t],this._size--),n},e.prototype.clear=function(){this._keys=Object.create(null),this._values=Object.create(null),this._size=0},e.prototype.forEach=function(e,t){for(var n=0,i=Object.keys(this._keys);n<i.length;n++){var a=i[n];e.call(t,this._values[a],this._keys[a],this)}},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype._keyToProperty=function(e){
return"number"==typeof e?"#"+e:"string"==typeof e?"'"+e:void 0!==e.id?"!"+e.id:null},e}();(void 0===t.Map||"function"!=typeof t.Map.prototype.forEach||function(){try{return 2!==new t.Map([[1,"foo"],[2,"bar"]]).size}catch(e){return!0}}())&&(t.Map=i),t.setImplementation=n},function(e){function t(e,t){for(var n=0;n<t.length;n++)for(var i=t[n],a=0,r=Object.getOwnPropertyNames(i.prototype);a<r.length;a++){var s=r[a];e.prototype[s]=i.prototype[s]}}e.mixin=t},function(t){function n(e){
t.Promise=null!==e?e:l}function i(e){return a(e,[])}function a(e,n){if(0===e.length)return t.Promise.reject(n);var i=e[0],r=e.slice(1);return i.catch(function(e){return a(r,n.concat(e))})}function r(e){return new t.Promise(function(n,i){return t.Promise.all(e.map(function(e){return e.then(n,function(e){return e})})).then(i)})}function s(e,t){return e.then(function(e){return t(),e},function(e){throw t(),e})}t.Promise=e.Promise;var o=function(){var t=e.MutationObserver||e.WebkitMutationObserver
;if(void 0!==e.process&&"function"==typeof e.process.nextTick)return function(t){e.process.nextTick(t)};if(void 0!==t){var n=[],i=!1,a=document.createElement("div");return new t(function(){for(var e=n.splice(0,n.length),t=0;t<e.length;t++){(0,e[t])()}i=!1,n.length>0&&(a.classList.toggle("foo"),i=!0)}).observe(a,{attributes:!0}),function(e){n.push(e),i||(a.classList.toggle("foo"),i=!0)}}return function(e){return setTimeout(e,0)}}(),l=function(){function e(e){if(this._state=u.PENDING,
this._fulfillReactions=[],this._rejectReactions=[],this._fulfilledValue=null,this._rejectedReason=null,"function"!=typeof e)throw new TypeError('typeof executor !== "function"');var t=this._createResolvingFunctions(),n=t.resolve,i=t.reject;try{e(n,i)}catch(e){i(e)}}return e.prototype.then=function(e,t){var n=new c;"function"!=typeof e&&(e=function(e){return e}),"function"!=typeof t&&(t=function(e){throw e});var i={capabilities:n,handler:e},a={capabilities:n,handler:t};switch(this._state){
case u.PENDING:this._fulfillReactions.push(i),this._rejectReactions.push(a);break;case u.FULFILLED:this._enqueueFulfilledReactionJob(i,this._fulfilledValue);break;case u.REJECTED:this._enqueueRejectedReactionJob(a,this._rejectedReason)}return n.promise},e.prototype.catch=function(e){return this.then(null,e)},e.resolve=function(n){return n instanceof e?n:new t.Promise(function(e){return e(n)})},e.reject=function(e){return new t.Promise(function(t,n){return n(e)})},e.all=function(e){
return new t.Promise(function(n,i){var a=[],r=e.length;if(0===r)return void n(a);e.forEach(function(e,s){return t.Promise.resolve(e).then(function(e){a[s]=e,0===--r&&n(a)},i)})})},e.race=function(e){return new t.Promise(function(n,i){for(var a=0;a<e.length;a++){var r=e[a];t.Promise.resolve(r).then(n,i)}})},e.prototype._createResolvingFunctions=function(){var e=this,t=!1;return{resolve:function(n){if(!t){if(t=!0,n===e)return void e._reject(new TypeError("resolution === this"))
;if(null===n||"object"!=typeof n&&"function"!=typeof n)return void e._fulfill(n);try{var i=n.then}catch(t){return void e._reject(t)}if("function"!=typeof i)return void e._fulfill(n);o(function(){return e._resolveWithThenable(n,i)})}},reject:function(n){t||(t=!0,e._reject(n))}}},e.prototype._resolveWithThenable=function(e,t){var n=this._createResolvingFunctions(),i=n.resolve,a=n.reject;try{t.call(e,i,a)}catch(e){a(e)}},e.prototype._fulfill=function(e){var t=this._fulfillReactions
;this._fulfilledValue=e,this._fulfillReactions=void 0,this._rejectReactions=void 0,this._state=u.FULFILLED;for(var n=0;n<t.length;n++){var i=t[n];this._enqueueFulfilledReactionJob(i,e)}},e.prototype._reject=function(e){var t=this._rejectReactions;this._rejectedReason=e,this._fulfillReactions=void 0,this._rejectReactions=void 0,this._state=u.REJECTED;for(var n=0;n<t.length;n++){var i=t[n];this._enqueueRejectedReactionJob(i,e)}},e.prototype._enqueueFulfilledReactionJob=function(e,t){o(function(){
var n,i=e.capabilities,a=i.resolve,r=i.reject,s=e.handler;try{n=s(t)}catch(e){return void r(e)}a(n)})},e.prototype._enqueueRejectedReactionJob=function(e,t){o(function(){var n,i=e.capabilities,a=i.resolve,r=i.reject,s=e.handler;try{n=s(t)}catch(e){return void r(e)}a(n)})},e}();void 0===t.Promise&&(t.Promise=l);var u;!function(e){e[e.PENDING=0]="PENDING",e[e.FULFILLED=1]="FULFILLED",e[e.REJECTED=2]="REJECTED"}(u||(u={})),t.setImplementation=n;var c=function(){function e(){var e=this
;this._promise=new t.Promise(function(t,n){Object.defineProperties(e,{resolve:{value:t,enumerable:!0},reject:{value:n,enumerable:!0}})})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!0,configurable:!0}),e}();t.DeferredPromise=c,t.first=i,t.any=r,t.lastly=s},function(t){function n(e){t.Set=null!==e?e:i}t.Set=e.Set;var i=function(){function e(e){if(this.clear(),void 0!==e){
if(!Array.isArray(e))throw new Error("Non-array iterables are not supported by the SimpleSet constructor.");for(var t=0;t<e.length;t++){var n=e[t];this.add(n)}}}return e.prototype.add=function(e){var t=this._toProperty(e);if(null===t)throw new Error("This Set implementation only supports Number and String values.");return t in this._elements||this._size++,this._elements[t]=e,this},e.prototype.clear=function(){this._elements=Object.create(null),this._size=0},e.prototype.has=function(e){
var t=this._toProperty(e);return null!==t&&t in this._elements},e.prototype.forEach=function(e,t){for(var n=0,i=Object.keys(this._elements);n<i.length;n++){var a=i[n],r=this._elements[a];e.call(t,r,r,this)}},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype._toProperty=function(e){return"number"==typeof e?"#"+e:"string"==typeof e?"'"+e:null},e}();(void 0===t.Set||"function"!=typeof t.Set.prototype.forEach||function(){try{
return 2!==new t.Set([1,2]).size}catch(e){return!0}}())&&(t.Set=i),t.setImplementation=n},function(e){function t(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);n.prototype=t.prototype,e.prototype=new n}function n(e,t,n){if(arguments.length<3)return i(e.reverse(),t);a(e.reverse(),t,n)}function i(e,t){for(var n=0;n<e.length;n++){t=(0,e[n])(t)||t}return t}function a(e,t,n){for(var i=0;i<e.length;i++){(0,e[i])(t,n)}}e.__extends=t,e.__decorate=n},function(e,t){
var n=t(30),i=t(32),a=t(36),r=t(38),s=function(){function e(e){var t=this;this._comm=e,this._pendingRequests=new n.Map,this._comm.addEventListener("message",function(e){return t._onMessage(e.data)},!1)}return e.prototype.request=function(t,n){var a=new i.DeferredPromise,s=++e._lastRequestId;this._pendingRequests.set(s,a);var o={requestId:s,command:t,parameters:n};return this._comm.postMessage(r.serialize(o)),a.promise},e.prototype.cancelRequest=function(e){var t=this._pendingRequests.get(e)
;void 0!==t&&(this._pendingRequests.delete(e),t.reject(new Error("Cancelled.")))},e.prototype._respond=function(e){var t=e.requestId,n=e.error,i=e.result;n instanceof Error&&(n={message:n.message,stack:n.stack}),this._comm.postMessage(r.serialize({command:a.WorkerCommands.Response,requestId:t,error:n,result:i}))},e.prototype._onMessage=function(e){var t=this,n=r.deserialize(e);if(n.command===a.WorkerCommands.Response){var i=n,s=this._pendingRequests.get(i.requestId)
;void 0!==s&&(this._pendingRequests.delete(i.requestId),null===i.error?s.resolve(i.result):s.reject(i.error))}else{var o=n,l=o.requestId,u=r.getWorkerCommandHandler(o.command);if(void 0===u)return void this._respond({requestId:l,error:new Error("No handler registered for command "+o.command),result:null});u(o.parameters).then(function(e){return{requestId:l,error:null,result:e}},function(e){return{requestId:l,error:e,result:null}}).then(function(e){return t._respond(e)})}},e._lastRequestId=-1,e
}();e.WorkerChannelImpl=s,r.registerWorkerCommand(a.WorkerCommands.Ping,function(){return new i.Promise(function(e){return e(null)})})},function(e){!function(e){e[e.Response=0]="Response",e[e.Parse=1]="Parse",e[e.Ping=2]="Ping"}(e.WorkerCommands||(e.WorkerCommands={}))},function(t,n){function i(e){return void 0===e&&(e=s.src),new a.WorkerChannelImpl(new Worker(e))}var a=n(35),r=n(36);t.WorkerCommands=r.WorkerCommands,t.supported="undefined"!=typeof Worker
;var s="undefined"!=typeof document&&void 0!==document.currentScript?document.currentScript:null;t.createWorker=i,"undefined"!=typeof WorkerGlobalScope&&e instanceof WorkerGlobalScope&&new a.WorkerChannelImpl(e)},function(e,t){function n(e,t){l.set(e,t)}function i(e){return l.get(e)}function a(e){e._classTag=u.size,u.set(e._classTag,e)}function r(e){return JSON.stringify(e,function(e,t){return t&&void 0!==t._classTag&&(t._classTag=t._classTag),t})}function s(e){return JSON.parse(e,function(e,t){
if(t&&void 0!==t._classTag){for(var n=Object.create(u.get(t._classTag)),i=0,a=Object.keys(t);i<a.length;i++){var r=a[i];"_classTag"!==r&&(n[r]=t[r])}t=n}return t})}var o=t(30),l=new o.Map,u=new o.Map;e.registerWorkerCommand=n,e.getWorkerCommandHandler=i,e.registerClassPrototype=a,e.serialize=r,e.deserialize=s}])})},function(e,t,n){"use strict";function i(e){return null==e?void 0===e?l:o:u&&u in Object(e)?n.i(r.a)(e):n.i(s.a)(e)}
var a=n(1109),r=n(3251),s=n(3252),o="[object Null]",l="[object Undefined]",u=a.a?a.a.toStringTag:void 0;t.a=i},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(t,n(222))},function(e,t,n){"use strict";var i=n(3253),a=n.i(i.a)(Object.getPrototypeOf,Object);t.a=a},function(e,t,n){"use strict";function i(e){var t=s.call(e,l),n=e[l];try{e[l]=void 0}catch(e){}var i=o.call(e);return t?e[l]=n:delete e[l],i}
var a=n(1109),r=Object.prototype,s=r.hasOwnProperty,o=r.toString,l=a.a?a.a.toStringTag:void 0;t.a=i},function(e,t,n){"use strict";function i(e){return r.call(e)}var a=Object.prototype,r=a.toString;t.a=i},function(e,t,n){"use strict";function i(e,t){return function(n){return e(t(n))}}t.a=i},function(e,t,n){"use strict";var i=n(3249),a="object"==typeof self&&self&&self.Object===Object&&self,r=i.a||a||Function("return this")();t.a=r},function(e,t,n){"use strict";function i(e){
return null!=e&&"object"==typeof e}t.a=i},function(e,t,n){"use strict";function i(e){if(!n.i(s.a)(e)||n.i(a.a)(e)!=o)return!1;var t=n.i(r.a)(e);if(null===t)return!0;var i=d.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&c.call(i)==p}var a=n(3248),r=n(3250),s=n(3255),o="[object Object]",l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,p=c.call(Object);t.a=i},function(e,t,n){function i(e){var t=-1,n=null==e?0:e.length
;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}var a=n(3285),r=n(3286),s=n(3287),o=n(3288),l=n(3289);i.prototype.clear=a,i.prototype.delete=r,i.prototype.get=s,i.prototype.has=o,i.prototype.set=l,e.exports=i},function(e,t,n){function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}var a=n(3295),r=n(3296),s=n(3297),o=n(3298),l=n(3299);i.prototype.clear=a,i.prototype.delete=r,i.prototype.get=s,i.prototype.has=o,i.prototype.set=l,e.exports=i
},function(e,t,n){var i=n(486),a=n(383),r=i(a,"Map");e.exports=r},function(e,t,n){var i=n(486),a=n(383),r=i(a,"Set");e.exports=r},function(e,t){function n(e,t){for(var n=-1,i=null==e?0:e.length,a=0,r=[];++n<i;){var s=e[n];t(s,n,e)&&(r[a++]=s)}return r}e.exports=n},function(e,t,n){function i(e,t){var n=s(e),i=!n&&r(e),c=!n&&!i&&o(e),p=!n&&!i&&!c&&u(e),h=n||i||c||p,f=h?a(e.length,String):[],v=f.length
;for(var m in e)!t&&!d.call(e,m)||h&&("length"==m||c&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||l(m,v))||f.push(m);return f}var a=n(3274),r=n(1121),s=n(263),o=n(3320),l=n(1118),u=n(3321),c=Object.prototype,d=c.hasOwnProperty;e.exports=i},function(e,t){function n(e,t){for(var n=-1,i=t.length,a=e.length;++n<i;)e[a+n]=t[n];return e}e.exports=n},function(e,t,n){function i(e,t,n){var i=e[t];o.call(e,t)&&r(i,n)&&(void 0!==n||t in e)||a(e,t,n)}
var a=n(1112),r=n(488),s=Object.prototype,o=s.hasOwnProperty;e.exports=i},function(e,t){function n(e,t,n,i){for(var a=e.length,r=n+(i?1:-1);i?r--:++r<a;)if(t(e[r],r,e))return r;return-1}e.exports=n},function(e,t,n){function i(e,t,n){return t===t?s(e,t,n):a(e,r,n)}var a=n(3265),r=n(3269),s=n(3314);e.exports=i},function(e,t,n){function i(e,t,n){for(var i=n?s:r,d=e[0].length,p=e.length,h=p,f=Array(p),v=1/0,m=[];h--;){var g=e[h];h&&t&&(g=o(g,l(t))),v=c(g.length,v),
f[h]=!n&&(t||d>=120&&g.length>=120)?new a(h&&g):void 0}g=e[0];var y=-1,b=f[0];e:for(;++y<d&&m.length<v;){var S=g[y],I=t?t(S):S;if(S=n||0!==S?S:0,!(b?u(b,I):i(m,I,n))){for(h=p;--h;){var M=f[h];if(!(M?u(M,I):i(e[h],I,n)))continue e}b&&b.push(I),m.push(S)}}return m}var a=n(695),r=n(697),s=n(698),o=n(699),l=n(700),u=n(701),c=Math.min;e.exports=i},function(e,t,n){function i(e){return r(e)&&a(e)==s}var a=n(484),r=n(385),s="[object Arguments]";e.exports=i},function(e,t){function n(e){return e!==e}
e.exports=n},function(e,t,n){function i(e){return!(!s(e)||r(e))&&(a(e)?h:l).test(o(e))}var a=n(1122),r=n(3293),s=n(384),o=n(3315),l=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,d=u.toString,p=c.hasOwnProperty,h=RegExp("^"+d.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=i},function(e,t,n){function i(e){return s(e)&&r(e.length)&&!!o[a(e)]}var a=n(484),r=n(1123),s=n(385),o={}
;o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,
o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=i},function(e,t,n){function i(e){if(!a(e))return s(e);var t=r(e),n=[];for(var i in e)("constructor"!=i||!t&&l.call(e,i))&&n.push(i);return n}
var a=n(384),r=n(3294),s=n(3305),o=Object.prototype,l=o.hasOwnProperty;e.exports=i},function(e,t,n){var i=n(3317),a=n(1116),r=n(1120),s=a?function(e,t){return a(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:r;e.exports=s},function(e,t){function n(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}e.exports=n},function(e,t,n){function i(e,t,n){var i=e.length;if(i<2)return i?s(e[0]):[]
;for(var o=-1,l=Array(i);++o<i;)for(var u=e[o],c=-1;++c<i;)c!=o&&(l[o]=a(l[o]||u,e[c],t,n));return s(r(l,1),t,n)}var a=n(1113),r=n(1114),s=n(1115);e.exports=i},function(e,t,n){function i(e){return a(e)?e:[]}var a=n(489);e.exports=i},function(e,t,n){function i(e,t,n,i){var s=!n;n||(n={});for(var o=-1,l=t.length;++o<l;){var u=t[o],c=i?i(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),s?r(n,u,c):a(n,u,c)}return n}var a=n(3264),r=n(1112);e.exports=i},function(e,t,n){
var i=n(383),a=i["__core-js_shared__"];e.exports=a},function(e,t,n){function i(e){return a(function(t,n){var i=-1,a=n.length,s=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(a--,s):void 0,o&&r(n[0],n[1],o)&&(s=a<3?void 0:s,a=1),t=Object(t);++i<a;){var l=n[i];l&&e(t,l,i,s)}return t})}var a=n(323),r=n(3291);e.exports=i},function(e,t,n){var i=n(3260),a=n(1124),r=n(1119),s=i&&1/r(new i([,-0]))[1]==1/0?function(e){return new i(e)}:a;e.exports=s},function(e,t,n){
function i(e,t,n,i){return void 0===e||a(e,r[n])&&!s.call(i,n)?t:e}var a=n(488),r=Object.prototype,s=r.hasOwnProperty;e.exports=i},function(e,t,n){var i=n(3308),a=i(Object.getPrototypeOf,Object);e.exports=a},function(e,t,n){function i(e){var t=s.call(e,l),n=e[l];try{e[l]=void 0}catch(e){}var i=o.call(e);return t?e[l]=n:delete e[l],i}var a=n(696),r=Object.prototype,s=r.hasOwnProperty,o=r.toString,l=a?a.toStringTag:void 0;e.exports=i},function(e,t){function n(e,t){return null==e?void 0:e[t]}
e.exports=n},function(e,t,n){function i(){this.__data__=a?a(null):{},this.size=0}var a=n(487);e.exports=i},function(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=n},function(e,t,n){function i(e){var t=this.__data__;if(a){var n=t[e];return n===r?void 0:n}return o.call(t,e)?t[e]:void 0}var a=n(487),r="__lodash_hash_undefined__",s=Object.prototype,o=s.hasOwnProperty;e.exports=i},function(e,t,n){function i(e){var t=this.__data__
;return a?void 0!==t[e]:s.call(t,e)}var a=n(487),r=Object.prototype,s=r.hasOwnProperty;e.exports=i},function(e,t,n){function i(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=a&&void 0===t?r:t,this}var a=n(487),r="__lodash_hash_undefined__";e.exports=i},function(e,t,n){function i(e){return s(e)||r(e)||!!(o&&e&&e[o])}var a=n(696),r=n(1121),s=n(263),o=a?a.isConcatSpreadable:void 0;e.exports=i},function(e,t,n){function i(e,t,n){if(!o(n))return!1;var i=typeof t
;return!!("number"==i?r(n)&&s(t,n.length):"string"==i&&t in n)&&a(n[t],e)}var a=n(488),r=n(702),s=n(1118),o=n(384);e.exports=i},function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},function(e,t,n){function i(e){return!!r&&r in e}var a=n(3278),r=function(){var e=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=i},function(e,t){function n(e){var t=e&&e.constructor
;return e===("function"==typeof t&&t.prototype||i)}var i=Object.prototype;e.exports=n},function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},function(e,t,n){function i(e){var t=this.__data__,n=a(t,e);return!(n<0)&&(n==t.length-1?t.pop():s.call(t,n,1),--this.size,!0)}var a=n(483),r=Array.prototype,s=r.splice;e.exports=i},function(e,t,n){function i(e){var t=this.__data__,n=a(t,e);return n<0?void 0:t[n][1]}var a=n(483);e.exports=i},function(e,t,n){function i(e){
return a(this.__data__,e)>-1}var a=n(483);e.exports=i},function(e,t,n){function i(e,t){var n=this.__data__,i=a(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}var a=n(483);e.exports=i},function(e,t,n){function i(){this.size=0,this.__data__={hash:new a,map:new(s||r),string:new a}}var a=n(3257),r=n(3258),s=n(3259);e.exports=i},function(e,t,n){function i(e){var t=a(this,e).delete(e);return this.size-=t?1:0,t}var a=n(485);e.exports=i},function(e,t,n){function i(e){return a(this,e).get(e)}
var a=n(485);e.exports=i},function(e,t,n){function i(e){return a(this,e).has(e)}var a=n(485);e.exports=i},function(e,t,n){function i(e,t){var n=a(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}var a=n(485);e.exports=i},function(e,t){function n(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=n},function(e,t,n){(function(e){
var i=n(1117),a="object"==typeof t&&t&&!t.nodeType&&t,r=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=r&&r.exports===a,o=s&&i.process,l=function(){try{return o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=l}).call(t,n(500)(e))},function(e,t){function n(e){return a.call(e)}var i=Object.prototype,a=i.toString;e.exports=n},function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},function(e,t,n){function i(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){
for(var i=arguments,s=-1,o=r(i.length-t,0),l=Array(o);++s<o;)l[s]=i[t+s];s=-1;for(var u=Array(t+1);++s<t;)u[s]=i[s];return u[t]=n(l),a(e,this,u)}}var a=n(1111),r=Math.max;e.exports=i},function(e,t){function n(e){return this.__data__.set(e,i),this}var i="__lodash_hash_undefined__";e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t,n){var i=n(3273),a=n(3313),r=a(i);e.exports=r},function(e,t){function n(e){var t=0,n=0;return function(){var s=r(),o=a-(s-n)
;if(n=s,o>0){if(++t>=i)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var i=800,a=16,r=Date.now;e.exports=n},function(e,t){function n(e,t,n){for(var i=n-1,a=e.length;++i<a;)if(e[i]===t)return i;return-1}e.exports=n},function(e,t){function n(e){if(null!=e){try{return a.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var i=Function.prototype,a=i.toString;e.exports=n},function(e,t,n){var i=n(3277),a=n(3279),r=n(3322),s=a(function(e,t,n,a){i(t,r(t),e,a)});e.exports=s
},function(e,t){function n(e){return function(){return e}}e.exports=n},function(e,t,n){var i=n(1111),a=n(3316),r=n(323),s=n(3281),o=r(function(e){return e.push(void 0,s),i(a,void 0,e)});e.exports=o},function(e,t,n){var i=n(699),a=n(3267),r=n(323),s=n(3276),o=r(function(e){var t=i(e,s);return t.length&&t[0]===e[0]?a(t):[]});e.exports=o},function(e,t,n){(function(e){
var i=n(383),a=n(3324),r="object"==typeof t&&t&&!t.nodeType&&t,s=r&&"object"==typeof e&&e&&!e.nodeType&&e,o=s&&s.exports===r,l=o?i.Buffer:void 0,u=l?l.isBuffer:void 0,c=u||a;e.exports=c}).call(t,n(500)(e))},function(e,t,n){var i=n(3271),a=n(700),r=n(3306),s=r&&r.isTypedArray,o=s?a(s):i;e.exports=o},function(e,t,n){function i(e){return s(e)?a(e,!0):r(e)}var a=n(3262),r=n(3272),s=n(702);e.exports=i},function(e,t,n){function i(e,t){
if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(r);var n=function(){var i=arguments,a=t?t.apply(this,i):i[0],r=n.cache;if(r.has(a))return r.get(a);var s=e.apply(this,i);return n.cache=r.set(a,s)||r,s};return n.cache=new(i.Cache||a),n}var a=n(1110),r="Expected a function";i.Cache=a,e.exports=i},function(e,t){function n(){return!1}e.exports=n},function(e,t,n){var i=n(1114),a=n(323),r=n(1115),s=n(489),o=a(function(e){return r(i(e,1,s,!0))});e.exports=o},function(e,t,n){
var i=n(3261),a=n(323),r=n(3275),s=n(489),o=a(function(e){return r(i(e,s))});e.exports=o},function(e,t,n){var i;!function(a,r,s){function o(e,t,n){if(e.addEventListener)return void e.addEventListener(t,n,!1);e.attachEvent("on"+t,n)}function l(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return I[e.which]?I[e.which]:M[e.which]?M[e.which]:String.fromCharCode(e.which).toLowerCase()}function u(e,t){
return e.sort().join(",")===t.sort().join(",")}function c(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}function d(e){if(e.preventDefault)return void e.preventDefault();e.returnValue=!1}function p(e){if(e.stopPropagation)return void e.stopPropagation();e.cancelBubble=!0}function h(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function f(){if(!S){S={};for(var e in I)e>95&&e<112||I.hasOwnProperty(e)&&(S[I[e]]=e)}
return S}function v(e,t,n){return n||(n=f()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function m(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus"),e.split("+"))}function g(e,t){var n,i,a,r=[];for(n=m(e),a=0;a<n.length;++a)i=n[a],w[i]&&(i=w[i]),t&&"keypress"!=t&&C[i]&&(i=C[i],r.push("shift")),h(i)&&r.push(i);return t=v(i,r,t),{key:i,modifiers:r,action:t}}function y(e,t){return null!==e&&e!==r&&(e===t||y(e.parentNode,t))}function b(e){function t(e){e=e||{};var t,n=!1
;for(t in S)e[t]?n=!0:S[t]=0;n||(C=!1)}function n(e,t,n,i,a,r){var s,o,l=[],c=n.type;if(!m._callbacks[e])return[];for("keyup"==c&&h(e)&&(t=[e]),s=0;s<m._callbacks[e].length;++s)if(o=m._callbacks[e][s],(i||!o.seq||S[o.seq]==o.level)&&c==o.action&&("keypress"==c&&!n.metaKey&&!n.ctrlKey||u(t,o.modifiers))){var d=!i&&o.combo==a,p=i&&o.seq==i&&o.level==r;(d||p)&&m._callbacks[e].splice(s,1),l.push(o)}return l}function i(e,t,n,i){m.stopCallback(t,t.target||t.srcElement,n,i)||e(t,n)===!1&&(d(t),p(t))}
function a(e){"number"!=typeof e.which&&(e.which=e.keyCode);var t=l(e);if(t)return"keyup"==e.type&&I===t?void(I=!1):void m.handleKey(t,c(e),e)}function s(){clearTimeout(y),y=setTimeout(t,1e3)}function f(e,n,a,r){function o(n){i(a,n,e),"keyup"!==r&&(I=l(n)),setTimeout(t,10)}S[e]=0;for(var u=0;u<n.length;++u){var c=u+1===n.length,d=c?o:function(t){return function(){C=t,++S[e],s()}}(r||g(n[u+1]).action);v(n[u],d,r,e,u)}}function v(e,t,i,a,r){m._directMap[e+":"+i]=t,e=e.replace(/\s+/g," ")
;var s,o=e.split(" ");if(o.length>1)return void f(e,o,t,i);s=g(e,i),m._callbacks[s.key]=m._callbacks[s.key]||[],n(s.key,s.modifiers,{type:s.action},a,e,r),m._callbacks[s.key][a?"unshift":"push"]({callback:t,modifiers:s.modifiers,action:s.action,seq:a,level:r,combo:e})}var m=this;if(e=e||r,!(m instanceof b))return new b(e);m.target=e,m._callbacks={},m._directMap={};var y,S={},I=!1,M=!1,C=!1;m._handleKey=function(e,a,r){var s,o=n(e,a,r),l={},u=0,c=!1
;for(s=0;s<o.length;++s)o[s].seq&&(u=Math.max(u,o[s].level));for(s=0;s<o.length;++s)if(o[s].seq){if(o[s].level!=u)continue;c=!0,l[o[s].seq]=1,i(o[s].callback,r,o[s].combo,o[s].seq)}else c||i(o[s].callback,r,o[s].combo);var d="keypress"==r.type&&M;r.type!=C||h(e)||d||t(l),M=c&&"keydown"==r.type},m._bindMultiple=function(e,t,n){for(var i=0;i<e.length;++i)v(e[i],t,n)},o(e,"keypress",a),o(e,"keydown",a),o(e,"keyup",a)}for(var S,I={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",
20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},M={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},C={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},w={option:"alt",command:"meta",return:"enter",
escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},D=1;D<20;++D)I[111+D]="f"+D;for(D=0;D<=9;++D)I[D+96]=D;b.prototype.bind=function(e,t,n){var i=this;return e=e instanceof Array?e:[e],i._bindMultiple.call(i,e,t,n),i},b.prototype.unbind=function(e,t){var n=this;return n.bind.call(n,e,function(){},t)},b.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},b.prototype.reset=function(){var e=this
;return e._callbacks={},e._directMap={},e},b.prototype.stopCallback=function(e,t){var n=this;return!((" "+t.className+" ").indexOf(" mousetrap ")>-1)&&(!y(t,n.target)&&("INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable))},b.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},b.init=function(){var e=b(r);for(var t in e)"_"!==t.charAt(0)&&(b[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},b.init(),a.Mousetrap=b,
void 0!==e&&e.exports&&(e.exports=b),void 0!==(i=function(){return b}.call(t,n,t,e))&&(e.exports=i)}(window,document)},function(e,t,n){"use strict";(function(e){function n(e){var t=!1,n=0,i=document.createElement("span");return new MutationObserver(function(){e(),t=!1}).observe(i,{attributes:!0}),function(){t||(t=!0,i.setAttribute("x-index",n),n+=1)}}function i(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},le))}}function a(e){
return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function r(e,t){Object.keys(t).forEach(function(n){var i="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&a(t[n])&&(i="px"),e.style[n]=t[n]+i})}function s(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function o(e,t){if(1!==e.nodeType)return[];var n=window.getComputedStyle(e,null);return t?n[t]:n}function l(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function u(e){
if(!e||["HTML","BODY","#document"].indexOf(e.nodeName)!==-1)return window.document.body;var t=o(e),n=t.overflow,i=t.overflowX,a=t.overflowY;return/(auto|scroll)/.test(n+a+i)?e:u(l(e))}function c(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||e.firstElementChild.offsetParent===e)}function d(e){return null!==e.parentNode?d(e.parentNode):e}function p(e){var t=e&&e.offsetParent,n=t&&t.nodeName;return n&&"BODY"!==n&&"HTML"!==n?t:window.document.documentElement}function h(e,t){
if(!(e&&e.nodeType&&t&&t.nodeType))return window.document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,a=n?t:e,r=document.createRange();r.setStart(i,0),r.setEnd(a,0);var s=r.commonAncestorContainer;if(e!==s&&t!==s||i.contains(a))return c(s)?s:p(s);var o=d(e);return o.host?h(o.host,t):h(e,d(t).host)}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",i=e.nodeName
;if("BODY"===i||"HTML"===i){var a=window.document.documentElement;return(window.document.scrollingElement||a)[n]}return e[n]}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=f(t,"top"),a=f(t,"left"),r=n?-1:1;return e.top+=i*r,e.bottom+=i*r,e.left+=a*r,e.right+=a*r,e}function m(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return+e["border"+n+"Width"].split("px")[0]+ +e["border"+i+"Width"].split("px")[0]}function g(e,t,n,i){
return Math.max(t["offset"+e],n["client"+e],n["offset"+e],he()?n["offset"+e]+i["margin"+("Height"===e?"Top":"Left")]+i["margin"+("Height"===e?"Bottom":"Right")]:0)}function y(){var e=window.document.body,t=window.document.documentElement,n=he()&&window.getComputedStyle(t);return{height:g("Height",e,t,n),width:g("Width",e,t,n)}}function b(e){return ge({},e,{right:e.left+e.width,bottom:e.top+e.height})}function S(e){var t={};if(he())try{t=e.getBoundingClientRect();var n=f(e,"top"),i=f(e,"left")
;t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}catch(e){}else t=e.getBoundingClientRect();var a={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},r="HTML"===e.nodeName?y():{},s=r.width||e.clientWidth||a.right-a.left,l=r.height||e.clientHeight||a.bottom-a.top,u=e.offsetWidth-s,c=e.offsetHeight-l;if(u||c){var d=o(e);u-=m(d,"x"),c-=m(d,"y"),a.width-=u,a.height-=c}return b(a)}function I(e,t){var n=he(),i="HTML"===t.nodeName,a=S(e),r=S(t),s=u(e),l=b({top:a.top-r.top,left:a.left-r.left,
width:a.width,height:a.height});if(i||"BODY"===t.nodeName){var c=o(t),d=n&&i?0:+c.borderTopWidth.split("px")[0],p=n&&i?0:+c.borderLeftWidth.split("px")[0],h=n&&i?0:+c.marginTop.split("px")[0],f=n&&i?0:+c.marginLeft.split("px")[0];l.top-=d-h,l.bottom-=d-h,l.left-=p-f,l.right-=p-f,l.marginTop=h,l.marginLeft=f}return(n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(l=v(l,t)),l}function M(e){
var t=window.document.documentElement,n=I(e,t),i=Math.max(t.clientWidth,window.innerWidth||0),a=Math.max(t.clientHeight,window.innerHeight||0),r=f(t),s=f(t,"left");return b({top:r-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:i,height:a})}function C(e){var t=e.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===o(e,"position")||C(l(e)))}function w(e,t,n,i){var a={top:0,left:0},r=h(e,t);if("viewport"===i)a=M(r);else{var s=void 0;"scrollParent"===i?(s=u(l(e)),
"BODY"===s.nodeName&&(s=window.document.documentElement)):s="window"===i?window.document.documentElement:i;var o=I(s,r);if("HTML"!==s.nodeName||C(r))a=o;else{var c=y(),d=c.height,p=c.width;a.top+=o.top-o.marginTop,a.bottom=d+o.top,a.left+=o.left-o.marginLeft,a.right=p+o.left}}return a.left+=n,a.top+=n,a.right-=n,a.bottom-=n,a}function D(e){return e.width*e.height}function P(e,t,n,i,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(e.indexOf("auto")===-1)return e
;var s=w(n,i,r,a),o={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},l=Object.keys(o).map(function(e){return ge({key:e},o[e],{area:D(o[e])})}).sort(function(e,t){return t.area-e.area}),u=l.filter(function(e){var t=e.width,i=e.height;return t>=n.clientWidth&&i>=n.clientHeight}),c=u.length>0?u[0].key:l[0].key,d=e.split("-")[1];return c+(d?"-"+d:"")}function T(e,t,n){
return I(n,h(t,n))}function x(e){var t=window.getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),i=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function E(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function N(e,t,n){n=n.split("-")[0];var i=x(e),a={width:i.width,height:i.height
},r=["right","left"].indexOf(n)!==-1,s=r?"top":"left",o=r?"left":"top",l=r?"height":"width",u=r?"width":"height";return a[s]=t[s]+t[l]/2-i[l]/2,a[o]=n===o?t[o]-i[u]:t[E(o)],a}function L(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function A(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var i=L(e,function(e){return e[t]===n});return e.indexOf(i)}function k(e,t,n){return(void 0===n?e:e.slice(0,A(e,"name",n))).forEach(function(e){
e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&s(n)&&(t=n(t,e))}),t}function _(){if(!this.state.isDestroyed){var e={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=T(this.state,this.popper,this.reference),e.placement=P(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),
e.originalPlacement=e.placement,e.offsets.popper=N(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position="absolute",e=k(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function O(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function j(e){for(var t=[!1,"ms","webkit","moz","o"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length-1;i++){var a=t[i],r=a?""+a+n:e
;if(void 0!==window.document.body.style[r])return r}return null}function R(){return this.state.isDestroyed=!0,O(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[j("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function U(e,t,n,i){var a="BODY"===e.nodeName,r=a?window:e;r.addEventListener(t,n,{
passive:!0}),a||U(u(r.parentNode),t,n,i),i.push(r)}function z(e,t,n,i){n.updateBound=i,window.addEventListener("resize",n.updateBound,{passive:!0});var a=u(e);return U(a,"scroll",n.updateBound,n.scrollParents),n.scrollElement=a,n.eventsEnabled=!0,n}function B(){this.state.eventsEnabled||(this.state=z(this.reference,this.options,this.state,this.scheduleUpdate))}function F(e,t){return window.removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){
e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function V(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=F(this.reference,this.state))}function Q(e,t){Object.keys(t).forEach(function(n){t[n]!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function H(e,t){var n={position:e.offsets.popper.position},i={"x-placement":e.placement
},a=Math.round(e.offsets.popper.left),s=Math.round(e.offsets.popper.top),o=j("transform");return t.gpuAcceleration&&o?(n[o]="translate3d("+a+"px, "+s+"px, 0)",n.top=0,n.left=0,n.willChange="transform"):(n.left=a,n.top=s,n.willChange="top, left"),r(e.instance.popper,ge({},n,e.styles)),Q(e.instance.popper,ge({},i,e.attributes)),e.offsets.arrow&&r(e.arrowElement,e.offsets.arrow),e}function W(e,t,n,i,a){var r=T(a,t,e),s=P(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding)
;return t.setAttribute("x-placement",s),n}function Y(e,t,n){var i=L(e,function(e){return e.name===t}),a=!!i&&e.some(function(e){return e.name===n&&e.enabled&&e.order<i.order});if(!a){var r="`"+t+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return a}function G(e,t){if(!Y(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if("string"==typeof n){if(!(n=e.instance.popper.querySelector(n)))return e
}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],a=b(e.offsets.popper),r=e.offsets.reference,s=["left","right"].indexOf(i)!==-1,o=s?"height":"width",l=s?"top":"left",u=s?"left":"top",c=s?"bottom":"right",d=x(n)[o];r[c]-d<a[l]&&(e.offsets.popper[l]-=a[l]-(r[c]-d)),r[l]+d>a[c]&&(e.offsets.popper[l]+=r[l]+d-a[c]);var p=r[l]+r[o]/2-d/2,h=p-b(e.offsets.popper)[l]
;return h=Math.max(Math.min(a[o]-d,h),0),e.arrowElement=n,e.offsets.arrow={},e.offsets.arrow[l]=Math.floor(h),e.offsets.arrow[u]="",e}function K(e){return"end"===e?"start":"start"===e?"end":e}function q(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=be.indexOf(e),i=be.slice(n+1).concat(be.slice(0,n));return t?i.reverse():i}function X(e,t){if(O(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e
;var n=w(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),i=e.placement.split("-")[0],a=E(i),r=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case Se.FLIP:s=[i,a];break;case Se.CLOCKWISE:s=q(i);break;case Se.COUNTERCLOCKWISE:s=q(i,!0);break;default:s=t.behavior}return s.forEach(function(o,l){if(i!==o||s.length===l+1)return e;i=e.placement.split("-")[0],a=E(i)
;var u=b(e.offsets.popper),c=e.offsets.reference,d=Math.floor,p="left"===i&&d(u.right)>d(c.left)||"right"===i&&d(u.left)<d(c.right)||"top"===i&&d(u.bottom)>d(c.top)||"bottom"===i&&d(u.top)<d(c.bottom),h=d(u.left)<d(n.left),f=d(u.right)>d(n.right),v=d(u.top)<d(n.top),m=d(u.bottom)>d(n.bottom),g="left"===i&&h||"right"===i&&f||"top"===i&&v||"bottom"===i&&m,y=["top","bottom"].indexOf(i)!==-1,S=!!t.flipVariations&&(y&&"start"===r&&h||y&&"end"===r&&f||!y&&"start"===r&&v||!y&&"end"===r&&m)
;(p||g||S)&&(e.flipped=!0,(p||g)&&(i=s[l+1]),S&&(r=K(r)),e.placement=i+(r?"-"+r:""),e.offsets.popper=ge({},e.offsets.popper,N(e.instance.popper,e.offsets.reference,e.placement)),e=k(e.instance.modifiers,e,"flip"))}),e}function Z(e){var t=b(e.offsets.popper),n=e.offsets.reference,i=e.placement.split("-")[0],a=Math.floor,r=["top","bottom"].indexOf(i)!==-1,s=r?"right":"bottom",o=r?"left":"top",l=r?"width":"height";return t[s]<a(n[o])&&(e.offsets.popper[o]=a(n[o])-t[l]),
t[o]>a(n[s])&&(e.offsets.popper[o]=a(n[s])),e}function J(e,t,n,i){var a=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+a[1],s=a[2];if(!r)return e;if(0===s.indexOf("%")){var o=void 0;switch(s){case"%p":o=n;break;case"%":case"%r":default:o=i}return b(o)[t]/100*r}if("vh"===s||"vw"===s){return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r}return r}function $(e,t,n,i){
var r=[0,0],s=["right","left"].indexOf(i)!==-1,o=e.split(/(\+|\-)/).map(function(e){return e.trim()}),l=o.indexOf(L(o,function(e){return e.search(/,|\s/)!==-1}));o[l]&&o[l].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=l!==-1?[o.slice(0,l).concat([o[l].split(/\s*,\s*|\s+/)[0]]),[o[l].split(/\s*,\s*|\s+/)[1]].concat(o.slice(l+1))]:[o];return u=u.map(function(e,i){var a=(1===i?!s:s)?"height":"width",r=!1
;return e.reduce(function(e,t){return""===e[e.length-1]&&["+","-"].indexOf(t)!==-1?(e[e.length-1]=t,r=!0,e):r?(e[e.length-1]+=t,r=!1,e):e.concat(t)},[]).map(function(e){return J(e,a,t,n)})}),u.forEach(function(e,t){e.forEach(function(n,i){a(n)&&(r[t]+=n*("-"===e[i-1]?-1:1))})}),r}function ee(e,t){var n=t.offset,i=e.placement,r=e.offsets,s=r.popper,o=r.reference,l=i.split("-")[0],u=void 0;return u=a(+n)?[+n,0]:$(n,s,o,l),"left"===l?(s.top+=u[0],s.left-=u[1]):"right"===l?(s.top+=u[0],
s.left+=u[1]):"top"===l?(s.left+=u[0],s.top-=u[1]):"bottom"===l&&(s.left+=u[0],s.top+=u[1]),e.popper=s,e}function te(e,t){var n=t.boundariesElement||p(e.instance.popper),i=w(e.instance.popper,e.instance.reference,t.padding,n);t.boundaries=i;var a=t.priority,r=b(e.offsets.popper),s={primary:function(e){var n=r[e];return r[e]<i[e]&&!t.escapeWithReference&&(n=Math.max(r[e],i[e])),me({},e,n)},secondary:function(e){var n="right"===e?"left":"top",a=r[n]
;return r[e]>i[e]&&!t.escapeWithReference&&(a=Math.min(r[n],i[e]-("right"===e?r.width:r.height))),me({},n,a)}};return a.forEach(function(e){var t=["left","top"].indexOf(e)!==-1?"primary":"secondary";r=ge({},r,s[t](e))}),e.offsets.popper=r,e}function ne(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var a=e.offsets.reference,r=b(e.offsets.popper),s=["bottom","top"].indexOf(n)!==-1,o=s?"left":"top",l=s?"width":"height",u={start:me({},o,a[o]),end:me({},o,a[o]+a[l]-r[l])}
;e.offsets.popper=ge({},r,u[i])}return e}function ie(e){if(!Y(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=L(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function ae(e){
var t=e.placement,n=t.split("-")[0],i=b(e.offsets.popper),a=b(e.offsets.reference),r=["left","right"].indexOf(n)!==-1,s=["top","left"].indexOf(n)===-1;return i[r?"left":"top"]=a[t]-(s?i[r?"width":"height"]:0),e.placement=E(t),e.offsets.popper=b(i),e}for(var re=["native code","[object MutationObserverConstructor]"],se="undefined"!=typeof window,oe=["Edge","Trident","Firefox"],le=0,ue=0;ue<oe.length;ue+=1)if(se&&navigator.userAgent.indexOf(oe[ue])>=0){le=1;break}var ce=se&&function(e){
return re.some(function(t){return(e||"").toString().indexOf(t)>-1})}(window.MutationObserver),de=ce?n:i,pe=void 0,he=function(){return void 0===pe&&(pe=navigator.appVersion.indexOf("MSIE 10")!==-1),pe},fe=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ve=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}
return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),me=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e
},ye=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],be=ye.slice(3),Se={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},Ie={shift:{order:100,enabled:!0,fn:ne},offset:{order:200,enabled:!0,fn:ee,offset:0},preventOverflow:{order:300,enabled:!0,fn:te,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,
enabled:!0,fn:Z},arrow:{order:500,enabled:!0,fn:G,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:X,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:ae},hide:{order:800,enabled:!0,fn:ie},applyStyle:{order:900,enabled:!0,fn:H,onLoad:W,gpuAcceleration:!0}},Me={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Ie},Ce=function(){function e(t,n){
var i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};fe(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=de(this.update.bind(this)),this.options=ge({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t.jquery?t[0]:t,this.popper=n.jquery?n[0]:n,r(this.popper,{position:"absolute"}),this.options.modifiers={},Object.keys(ge({},e.Defaults.modifiers,a.modifiers)).forEach(function(t){
i.options.modifiers[t]=ge({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return ge({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&s(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return ve(e,[{key:"update",
value:function(){return _.call(this)}},{key:"destroy",value:function(){return R.call(this)}},{key:"enableEventListeners",value:function(){return B.call(this)}},{key:"disableEventListeners",value:function(){return V.call(this)}}]),e}();Ce.Utils=("undefined"!=typeof window?window:e).PopperUtils,Ce.placements=ye,Ce.Defaults=Me,t.a=Ce}).call(t,n(222))},function(e,t,n){"use strict";var i=n(148),a=n(41),r=n(3330);e.exports=function(){function e(e,t,n,i,s,o){
o!==r&&a(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=i,n.PropTypes=n,n}},function(e,t,n){"use strict"
;e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var i=n(1127),a={delimiter:"&",depth:5,arrayLimit:20,parameterLimit:1e3,strictNullHandling:!1,plainObjects:!1,allowPrototypes:!1,allowDots:!1};a.parseValues=function(e,t){for(var n={},a=e.split(t.delimiter,t.parameterLimit===1/0?void 0:t.parameterLimit),r=0,s=a.length;r<s;++r){var o=a[r],l=o.indexOf("]=")===-1?o.indexOf("="):o.indexOf("]=")+1;if(l===-1)n[i.decode(o)]="",t.strictNullHandling&&(n[i.decode(o)]=null);else{
var u=i.decode(o.slice(0,l)),c=i.decode(o.slice(l+1));Object.prototype.hasOwnProperty.call(n,u)?n[u]=[].concat(n[u]).concat(c):n[u]=c}}return n},a.parseObject=function(e,t,n){if(!e.length)return t;var i,r=e.shift();if("[]"===r)i=[],i=i.concat(a.parseObject(e,t,n));else{i=n.plainObjects?Object.create(null):{};var s="["===r[0]&&"]"===r[r.length-1]?r.slice(1,r.length-1):r,o=parseInt(s,10),l=""+o;!isNaN(o)&&r!==s&&l===s&&o>=0&&n.parseArrays&&o<=n.arrayLimit?(i=[],
i[o]=a.parseObject(e,t,n)):i[s]=a.parseObject(e,t,n)}return i},a.parseKeys=function(e,t,n){if(e){n.allowDots&&(e=e.replace(/\.([^\.\[]+)/g,"[$1]"));var i=/^([^\[\]]*)/,r=/(\[[^\[\]]*\])/g,s=i.exec(e),o=[];if(s[1]){if(!n.plainObjects&&Object.prototype.hasOwnProperty(s[1])&&!n.allowPrototypes)return;o.push(s[1])}for(var l=0;null!==(s=r.exec(e))&&l<n.depth;)++l,(n.plainObjects||!Object.prototype.hasOwnProperty(s[1].replace(/\[|\]/g,""))||n.allowPrototypes)&&o.push(s[1])
;return s&&o.push("["+e.slice(s.index)+"]"),a.parseObject(o,t,n)}},e.exports=function(e,t){if(t=t||{},t.delimiter="string"==typeof t.delimiter||i.isRegExp(t.delimiter)?t.delimiter:a.delimiter,t.depth="number"==typeof t.depth?t.depth:a.depth,t.arrayLimit="number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,t.parseArrays=t.parseArrays!==!1,t.allowDots="boolean"==typeof t.allowDots?t.allowDots:a.allowDots,t.plainObjects="boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,
t.allowPrototypes="boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,t.parameterLimit="number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,t.strictNullHandling="boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling,""===e||null===e||void 0===e)return t.plainObjects?Object.create(null):{};for(var n="string"==typeof e?a.parseValues(e,t):e,r=t.plainObjects?Object.create(null):{},s=Object.keys(n),o=0,l=s.length;o<l;++o){
var u=s[o],c=a.parseKeys(u,n[u],t);r=i.merge(r,c,t)}return i.compact(r)}},function(e,t,n){var i=n(1127),a={delimiter:"&",arrayPrefixGenerators:{brackets:function(e,t){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e,t){return e}},strictNullHandling:!1};a.stringify=function(e,t,n,r,s){if("function"==typeof s)e=s(t,e);else if(i.isBuffer(e))e=e.toString();else if(e instanceof Date)e=e.toISOString();else if(null===e){if(r)return i.encode(t);e=""}
if("string"==typeof e||"number"==typeof e||"boolean"==typeof e)return[i.encode(t)+"="+i.encode(e)];var o=[];if(void 0===e)return o;for(var l=Array.isArray(s)?s:Object.keys(e),u=0,c=l.length;u<c;++u){var d=l[u];o=Array.isArray(e)?o.concat(a.stringify(e[d],n(t,d),n,r,s)):o.concat(a.stringify(e[d],t+"["+d+"]",n,r,s))}return o},e.exports=function(e,t){t=t||{};var n,i,r=void 0===t.delimiter?a.delimiter:t.delimiter,s="boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling
;"function"==typeof t.filter?(i=t.filter,e=i("",e)):Array.isArray(t.filter)&&(n=i=t.filter);var o=[];if("object"!=typeof e||null===e)return"";var l;l=t.arrayFormat in a.arrayPrefixGenerators?t.arrayFormat:"indices"in t?t.indices?"indices":"repeat":"indices";var u=a.arrayPrefixGenerators[l];n||(n=Object.keys(e));for(var c=0,d=n.length;c<d;++c){var p=n[c];o=o.concat(a.stringify(e[p],p,u,s,i))}return o.join(r)}},function(e,t,n){"use strict";function i(e){this.name="RavenConfigError",this.message=e}
i.prototype=new Error,i.prototype.constructor=i,e.exports=i},function(e,t,n){"use strict";(function(t){function i(){return+new Date}function a(){this._hasJSON=!("object"!=typeof JSON||!JSON.stringify),this._hasDocument="undefined"!=typeof document,this._lastCapturedException=null,this._lastEventId=null,this._globalServer=null,this._globalKey=null,this._globalProject=null,this._globalContext={},this._globalOptions={logger:"javascript",ignoreErrors:[],ignoreUrls:[],whitelistUrls:[],
includePaths:[],crossOrigin:"anonymous",collectWindowErrors:!0,maxMessageLength:0,stackTraceLimit:50},this._ignoreOnError=0,this._isRavenInstalled=!1,this._originalErrorStackTraceLimit=Error.stackTraceLimit,this._originalConsole=window.console||{},this._originalConsoleMethods={},this._plugins=[],this._startTime=i(),this._wrappedBuiltIns=[];for(var e in this._originalConsole)this._originalConsoleMethods[e]=this._originalConsole[e]}
var r=n(3335),s=n(3333),o=n(1129),l=o.isFunction,u=o.isUndefined,c=o.isError,d=o.isEmptyObject,p=o.hasKey,h=o.joinRegExp,f=o.each,v=o.objectMerge,m=o.truncate,g=o.urlencode,y=o.uuid4,b="source protocol user pass host port path".split(" "),S=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/;a.prototype={VERSION:"2.2.0",debug:!1,TraceKit:r,config:function(e,t){var n=this;if(this._globalServer)return this._logDebug("error","Error: Raven has already been configured"),this
;if(!e)return this;t&&f(t,function(e,t){"tags"===e||"extra"===e?n._globalContext[e]=t:n._globalOptions[e]=t});var i=this._parseDSN(e),a=i.path.lastIndexOf("/"),s=i.path.substr(1,a);return this._dsn=e,this._globalOptions.ignoreErrors.push(/^Script error\.?$/),this._globalOptions.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/),this._globalOptions.ignoreErrors=h(this._globalOptions.ignoreErrors),
this._globalOptions.ignoreUrls=!!this._globalOptions.ignoreUrls.length&&h(this._globalOptions.ignoreUrls),this._globalOptions.whitelistUrls=!!this._globalOptions.whitelistUrls.length&&h(this._globalOptions.whitelistUrls),this._globalOptions.includePaths=h(this._globalOptions.includePaths),this._globalKey=i.user,this._globalSecret=i.pass&&i.pass.substr(1),this._globalProject=i.path.substr(a+1),this._globalServer=this._getGlobalServer(i),
this._globalEndpoint=this._globalServer+"/"+s+"api/"+this._globalProject+"/store/",this._globalOptions.fetchContext&&(r.remoteFetching=!0),this._globalOptions.linesOfContext&&(r.linesOfContext=this._globalOptions.linesOfContext),r.collectWindowErrors=!!this._globalOptions.collectWindowErrors,this},install:function(){var e=this;return this.isSetup()&&!this._isRavenInstalled&&(r.report.subscribe(function(){e._handleOnErrorStackInfo.apply(e,arguments)}),this._wrapBuiltIns(),this._drainPlugins(),
this._isRavenInstalled=!0),Error.stackTraceLimit=this._globalOptions.stackTraceLimit,this},context:function(e,t,n){return l(e)&&(n=t||[],t=e,e=void 0),this.wrap(e,t).apply(this,n)},wrap:function(e,t){function n(){for(var n=[],a=arguments.length,r=!e||e&&e.deep!==!1;a--;)n[a]=r?i.wrap(e,arguments[a]):arguments[a];try{return t.apply(this,n)}catch(t){throw i._ignoreNextOnError(),i.captureException(t,e),t}}var i=this;if(u(t)&&!l(e))return e;if(l(e)&&(t=e,e=void 0),!l(t))return t;try{
if(t.__raven__)return t}catch(e){return t}if(t.__raven_wrapper__)return t.__raven_wrapper__;for(var a in t)p(t,a)&&(n[a]=t[a]);return t.__raven_wrapper__=n,n.prototype=t.prototype,n.__raven__=!0,n.__inner__=t,n},uninstall:function(){return r.report.uninstall(),this._restoreBuiltIns(),Error.stackTraceLimit=this._originalErrorStackTraceLimit,this._isRavenInstalled=!1,this},captureException:function(e,t){if(!c(e))return this.captureMessage(e,t);this._lastCapturedException=e;try{
var n=r.computeStackTrace(e);this._handleStackInfo(n,t)}catch(t){if(e!==t)throw t}return this},captureMessage:function(e,t){if(!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(e))return this._send(v({message:e+""},t)),this},addPlugin:function(e){var t=Array.prototype.slice.call(arguments,1);return this._plugins.push([e,t]),this._isRavenInstalled&&this._drainPlugins(),this},setUserContext:function(e){return this._globalContext.user=e,this},
setExtraContext:function(e){return this._mergeContext("extra",e),this},setTagsContext:function(e){return this._mergeContext("tags",e),this},clearContext:function(){return this._globalContext={},this},getContext:function(){return JSON.parse(JSON.stringify(this._globalContext))},setRelease:function(e){return this._globalOptions.release=e,this},setDataCallback:function(e){return this._globalOptions.dataCallback=e,this},setShouldSendCallback:function(e){
return this._globalOptions.shouldSendCallback=e,this},setTransport:function(e){return this._globalOptions.transport=e,this},lastException:function(){return this._lastCapturedException},lastEventId:function(){return this._lastEventId},isSetup:function(){return!!this._hasJSON&&(!!this._globalServer||(this.ravenNotConfiguredError||(this.ravenNotConfiguredError=!0,this._logDebug("error","Error: Raven has not been configured.")),!1))},afterLoad:function(){var e=window.RavenConfig
;e&&this.config(e.dsn,e.config).install()},showReportDialog:function(e){if(window.document){e=e||{};var t=e.eventId||this.lastEventId();if(!t)throw new s("Missing eventId");var n=e.dsn||this._dsn;if(!n)throw new s("Missing DSN");var i=encodeURIComponent,a="";a+="?eventId="+i(t),a+="&dsn="+i(n);var r=e.user||this._globalContext.user;r&&(r.name&&(a+="&name="+i(r.name)),r.email&&(a+="&email="+i(r.email)));var o=this._getGlobalServer(this._parseDSN(n)),l=document.createElement("script");l.async=!0,
l.src=o+"/api/embed/error-page/"+a,(document.head||document.body).appendChild(l)}},_ignoreNextOnError:function(){var e=this;this._ignoreOnError+=1,setTimeout(function(){e._ignoreOnError-=1})},_triggerEvent:function(e,t){var n,i;if(this._hasDocument){t=t||{},e="raven"+e.substr(0,1).toUpperCase()+e.substr(1),document.createEvent?(n=document.createEvent("HTMLEvents"),n.initEvent(e,!0,!0)):(n=document.createEventObject(),n.eventType=e);for(i in t)p(t,i)&&(n[i]=t[i])
;if(document.createEvent)document.dispatchEvent(n);else try{document.fireEvent("on"+n.eventType.toLowerCase(),n)}catch(e){}}},_wrapBuiltIns:function(){function e(e,t,n,a){var r=e[t];e[t]=n(r),a||i._wrappedBuiltIns.push([e,t,r])}function n(e){return function(t,n){var a=[].slice.call(arguments),r=a[0];return l(r)&&(a[0]=i.wrap(r)),e.apply?e.apply(this,a):e(a[0],a[1])}}var i=this;e(window,"setTimeout",n),e(window,"setInterval",n),
window.requestAnimationFrame&&e(window,"requestAnimationFrame",function(e){return function(t){return e(i.wrap(t))}}),
"EventTarget Window Node ApplicationCache AudioTrackList ChannelMergerNode CryptoOperation EventSource FileReader HTMLUnknownElement IDBDatabase IDBRequest IDBTransaction KeyOperation MediaController MessagePort ModalWindow Notification SVGElementInstance Screen TextTrack TextTrackCue TextTrackList WebSocket WebSocketWorker Worker XMLHttpRequest XMLHttpRequestEventTarget XMLHttpRequestUpload".replace(/\w+/g,function(t){var n=window[t]&&window[t].prototype
;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(e(n,"addEventListener",function(e){return function(t,n,a,r){try{n&&n.handleEvent&&(n.handleEvent=i.wrap(n.handleEvent))}catch(e){}return e.call(this,t,i.wrap(n),a,r)}}),e(n,"removeEventListener",function(e){return function(t,n,i,a){return n=n&&(n.__raven_wrapper__?n.__raven_wrapper__:n),e.call(this,t,n,i,a)}}))}),"XMLHttpRequest"in window&&e(XMLHttpRequest.prototype,"send",function(t){return function(n){var a=this
;return"onreadystatechange onload onerror onprogress".replace(/\w+/g,function(t){t in a&&"[object Function]"===Object.prototype.toString.call(a[t])&&e(a,t,function(e){return i.wrap(e)},!0)}),t.apply(this,arguments)}});var a=t||window.$;a&&a.fn&&a.fn.ready&&e(a.fn,"ready",function(e){return function(t){return e.call(this,i.wrap(t))}})},_restoreBuiltIns:function(){for(var e;this._wrappedBuiltIns.length;){e=this._wrappedBuiltIns.shift();var t=e[0],n=e[1],i=e[2];t[n]=i}},_drainPlugins:function(){
var e=this;f(this._plugins,function(t,n){var i=n[0],a=n[1];i.apply(e,[e].concat(a))})},_parseDSN:function(e){var t=S.exec(e),n={},i=7;try{for(;i--;)n[b[i]]=t[i]||""}catch(t){throw new s("Invalid DSN: "+e)}if(n.pass&&!this._globalOptions.allowSecretKey)throw new s("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");return n},_getGlobalServer:function(e){var t="//"+e.host+(e.port?":"+e.port:"");return e.protocol&&(t=e.protocol+":"+t),t},
_handleOnErrorStackInfo:function(){this._ignoreOnError||this._handleStackInfo.apply(this,arguments)},_handleStackInfo:function(e,t){var n=this,i=[];e.stack&&e.stack.length&&f(e.stack,function(e,t){var a=n._normalizeFrame(t);a&&i.push(a)}),this._triggerEvent("handle",{stackInfo:e,options:t}),this._processException(e.name,e.message,e.url,e.lineno,i.slice(0,this._globalOptions.stackTraceLimit),t)},_normalizeFrame:function(e){if(e.url){var t,n={filename:e.url,lineno:e.line,colno:e.column,
function:e.func||"?"},i=this._extractContextFromFrame(e);if(i){var a=["pre_context","context_line","post_context"];for(t=3;t--;)n[a[t]]=i[t]}return n.in_app=!(this._globalOptions.includePaths.test&&!this._globalOptions.includePaths.test(n.filename)||/(Raven|TraceKit)\./.test(n.function)||/raven\.(min\.)?js$/.test(n.filename)),n}},_extractContextFromFrame:function(e){if(e.context&&this._globalOptions.fetchContext){for(var t=e.context,n=~~(t.length/2),i=t.length,a=!1;i--;)if(t[i].length>300){a=!0
;break}if(a){if(u(e.column))return;return[[],t[n].substr(e.column,50),[]]}return[t.slice(0,n),t[n],t.slice(n+1)]}},_processException:function(e,t,n,i,a,r){var s,o;if((!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(t))&&(t+="",t=m(t,this._globalOptions.maxMessageLength),o=e+": "+t,o=m(o,this._globalOptions.maxMessageLength),a&&a.length?(n=a[0].filename||n,a.reverse(),s={frames:a}):n&&(s={frames:[{filename:n,lineno:i,in_app:!0}]}),
(!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(n))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(n)))){var l=v({exception:{values:[{type:e,value:t,stacktrace:s}]},culprit:n,message:o},r);this._send(l)}},_trimPacket:function(e){var t=this._globalOptions.maxMessageLength;if(e.message=m(e.message,t),e.exception){var n=e.exception.values[0];n.value=m(n.value,t)}return e},_getHttpData:function(){
if(this._hasDocument&&document.location&&document.location.href){var e={headers:{"User-Agent":navigator.userAgent}};return e.url=document.location.href,document.referrer&&(e.headers.Referer=document.referrer),e}},_send:function(e){var t=this,n=this._globalOptions,a={project:this._globalProject,logger:n.logger,platform:"javascript"},r=this._getHttpData();if(r&&(a.request=r),e=v(a,e),e.tags=v(v({},this._globalContext.tags),e.tags),e.extra=v(v({},this._globalContext.extra),e.extra),
e.extra["session:duration"]=i()-this._startTime,d(e.tags)&&delete e.tags,this._globalContext.user&&(e.user=this._globalContext.user),n.release&&(e.release=n.release),n.serverName&&(e.server_name=n.serverName),l(n.dataCallback)&&(e=n.dataCallback(e)||e),e&&!d(e)&&(!l(n.shouldSendCallback)||n.shouldSendCallback(e))&&(this._lastEventId=e.event_id||(e.event_id=y()),e=this._trimPacket(e),this._logDebug("debug","Raven about to send:",e),this.isSetup())){var s={sentry_version:"7",
sentry_client:"raven-js/"+this.VERSION,sentry_key:this._globalKey};this._globalSecret&&(s.sentry_secret=this._globalSecret);var o=this._globalEndpoint;(n.transport||this._makeRequest).call(this,{url:o,auth:s,data:e,options:n,onSuccess:function(){t._triggerEvent("success",{data:e,src:o})},onError:function(){t._triggerEvent("failure",{data:e,src:o})}})}},_makeImageRequest:function(e){e.auth.sentry_data=JSON.stringify(e.data);var t=this._newImage(),n=e.url+"?"+g(e.auth),i=e.options.crossOrigin
;(i||""===i)&&(t.crossOrigin=i),t.onload=e.onSuccess,t.onerror=t.onabort=e.onError,t.src=n},_makeXhrRequest:function(e){function t(){200===n.status?e.onSuccess&&e.onSuccess():e.onError&&e.onError()}var n,i=e.url;n=new XMLHttpRequest,"withCredentials"in n?n.onreadystatechange=function(){4===n.readyState&&t()}:(n=new XDomainRequest,i=i.replace(/^https?:/,""),n.onload=t),n.open("POST",i+"?"+g(e.auth)),n.send(JSON.stringify(e.data))},_makeRequest:function(e){
return("withCredentials"in new XMLHttpRequest||"undefined"!=typeof XDomainRequest?this._makeXhrRequest:this._makeImageRequest)(e)},_newImage:function(){return document.createElement("img")},_logDebug:function(e){this._originalConsoleMethods[e]&&this.debug&&Function.prototype.apply.call(this._originalConsoleMethods[e],this._originalConsole,[].slice.call(arguments,1))},_mergeContext:function(e,t){u(t)?delete this._globalContext[e]:this._globalContext[e]=v(this._globalContext[e]||{},t)}},
a.prototype.setUser=a.prototype.setUserContext,a.prototype.setReleaseContext=a.prototype.setRelease,e.exports=a}).call(t,n(10))},function(e,t,n){"use strict";function i(){return"undefined"==typeof document?"":document.location.href}var a=n(1129),r=a.hasKey,s=a.isString,o=a.isUndefined,l={remoteFetching:!1,collectWindowErrors:!0,linesOfContext:7,debug:!1},u=[].slice,c="?";l.report=function(){function e(e){o(),v.push(e)}function t(e){for(var t=v.length-1;t>=0;--t)v[t]===e&&v.splice(t,1)}
function n(){c(),v=[]}function a(e,t){var n=null;if(!t||l.collectWindowErrors){for(var i in v)if(r(v,i))try{v[i].apply(null,[e].concat(u.call(arguments,2)))}catch(e){n=e}if(n)throw n}}function s(e,t,n,r,s){var o=null;if(y)l.computeStackTrace.augmentStackTraceWithInitialElement(y,t,n,e),d();else if(s)o=l.computeStackTrace(s),a(o,!0);else{var u={url:t,line:n,column:r};u.func=l.computeStackTrace.guessFunctionName(u.url,u.line),u.context=l.computeStackTrace.gatherContext(u.url,u.line),o={message:e,
url:i(),stack:[u]},a(o,!0)}return!!h&&h.apply(this,arguments)}function o(){f||(h=window.onerror,window.onerror=s,f=!0)}function c(){f&&(window.onerror=h,f=!1,h=void 0)}function d(){var e=y,t=m;m=null,y=null,g=null,a.apply(null,[e,!1].concat(t))}function p(e,t){var n=u.call(arguments,1);if(y){if(g===e)return;d()}var i=l.computeStackTrace(e);if(y=i,g=e,m=n,window.setTimeout(function(){g===e&&d()},i.incomplete?2e3:0),t!==!1)throw e}var h,f,v=[],m=null,g=null,y=null;return p.subscribe=e,
p.unsubscribe=t,p.uninstall=n,p}(),l.computeStackTrace=function(){function e(e){if(!l.remoteFetching)return"";try{var t=function(){try{return new window.XMLHttpRequest}catch(e){return new window.ActiveXObject("Microsoft.XMLHTTP")}}();return t.open("GET",e,!1),t.send(""),t.responseText}catch(e){return""}}function t(t){if(!s(t))return[];if(!r(I,t)){var n="",i="";try{i=document.domain}catch(e){}t.indexOf(i)!==-1&&(n=e(t)),I[t]=n?n.split("\n"):[]}return I[t]}function n(e,n){
var i,a=/function ([^(]*)\(([^)]*)\)/,r=/['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/,s="",l=t(e);if(!l.length)return c;for(var u=0;u<10;++u)if(s=l[n-u]+s,!o(s)){if(i=r.exec(s))return i[1];if(i=a.exec(s))return i[1]}return c}function a(e,n){var i=t(e);if(!i.length)return null;var a=[],r=Math.floor(l.linesOfContext/2),s=r+l.linesOfContext%2,u=Math.max(0,n-r-1),c=Math.min(i.length,n+s-1);n-=1;for(var d=u;d<c;++d)o(i[d])||a.push(i[d]);return a.length>0?a:null}function u(e){
return e.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g,"\\$&")}function d(e){return u(e).replace("<","(?:<|&lt;)").replace(">","(?:>|&gt;)").replace("&","(?:&|&amp;)").replace('"','(?:"|&quot;)').replace(/\s+/g,"\\s+")}function p(e,n){for(var i,a,r=0,s=n.length;r<s;++r)if((i=t(n[r])).length&&(i=i.join("\n"),a=e.exec(i)))return{url:n[r],line:i.substring(0,a.index).split("\n").length,column:a.index-i.lastIndexOf("\n",a.index)-1};return null}function h(e,n,i){var a,r=t(n),s=new RegExp("\\b"+u(e)+"\\b")
;return i-=1,r&&r.length>i&&(a=s.exec(r[i]))?a.index:null}function f(e){if("undefined"!=typeof document){for(var t,n,i,a,r=[window.location.href],s=document.getElementsByTagName("script"),o=""+e,l=/^function(?:\s+([\w$]+))?\s*\(([\w\s,]*)\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/,c=/^function on([\w$]+)\s*\(event\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/,h=0;h<s.length;++h){var f=s[h];f.src&&r.push(f.src)}if(i=l.exec(o)){var v=i[1]?"\\s+"+i[1]:"",m=i[2].split(",").join("\\s*,\\s*");t=u(i[3]).replace(/;$/,";?"),
n=new RegExp("function"+v+"\\s*\\(\\s*"+m+"\\s*\\)\\s*{\\s*"+t+"\\s*}")}else n=new RegExp(u(o).replace(/\s+/g,"\\s+"));if(a=p(n,r))return a;if(i=c.exec(o)){var g=i[1];if(t=d(i[2]),n=new RegExp("on"+g+"=[\\'\"]\\s*"+t+"\\s*[\\'\"]","i"),a=p(n,r[0]))return a;if(n=new RegExp(t),a=p(n,r))return a}return null}}function v(e){if(!o(e.stack)&&e.stack){
for(var t,r,s=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|<anonymous>).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,l=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|\[).*?)(?::(\d+))?(?::(\d+))?\s*$/i,u=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:ms-appx|https?|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,d=e.stack.split("\n"),p=[],f=/^(.*) is undefined$/.exec(e.message),v=0,m=d.length;v<m;++v){if(t=s.exec(d[v])){var g=t[2]&&t[2].indexOf("native")!==-1;r={url:g?null:t[2],
func:t[1]||c,args:g?[t[2]]:[],line:t[3]?+t[3]:null,column:t[4]?+t[4]:null}}else if(t=u.exec(d[v]))r={url:t[2],func:t[1]||c,args:[],line:+t[3],column:t[4]?+t[4]:null};else{if(!(t=l.exec(d[v])))continue;r={url:t[3],func:t[1]||c,args:t[2]?t[2].split(","):[],line:t[4]?+t[4]:null,column:t[5]?+t[5]:null}}!r.func&&r.line&&(r.func=n(r.url,r.line)),r.line&&(r.context=a(r.url,r.line)),p.push(r)}
return p.length?(p[0].line&&!p[0].column&&f?p[0].column=h(f[1],p[0].url,p[0].line):p[0].column||o(e.columnNumber)||(p[0].column=e.columnNumber+1),{name:e.name,message:e.message,url:i(),stack:p}):null}}function m(e){var t=e.stacktrace;if(!o(e.stacktrace)&&e.stacktrace){for(var r,s=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,l=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,u=t.split("\n"),c=[],d=0;d<u.length;d+=2){var p=null
;if((r=s.exec(u[d]))?p={url:r[2],line:+r[1],column:null,func:r[3],args:[]}:(r=l.exec(u[d]))&&(p={url:r[6],line:+r[1],column:+r[2],func:r[3]||r[4],args:r[5]?r[5].split(","):[]}),p){if(!p.func&&p.line&&(p.func=n(p.url,p.line)),p.line)try{p.context=a(p.url,p.line)}catch(e){}p.context||(p.context=[u[d+1]]),c.push(p)}}return c.length?{name:e.name,message:e.message,url:i(),stack:c}:null}}function g(e){var s=e.message.split("\n");if(s.length<4)return null
;var o,l=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,u=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,c=/^\s*Line (\d+) of function script\s*$/i,h=[],f=document.getElementsByTagName("script"),v=[];for(var m in f)r(f,m)&&!f[m].src&&v.push(f[m]);for(var g=2;g<s.length;g+=2){var y=null;if(o=l.exec(s[g]))y={url:o[2],func:o[3],args:[],line:+o[1],column:null};else if(o=u.exec(s[g])){y={url:o[3],func:o[4],
args:[],line:+o[1],column:null};var b=+o[1],S=v[o[2]-1];if(S){var I=t(y.url);if(I){I=I.join("\n");var M=I.indexOf(S.innerText);M>=0&&(y.line=b+I.substring(0,M).split("\n").length)}}}else if(o=c.exec(s[g])){var C=window.location.href.replace(/#.*$/,""),w=new RegExp(d(s[g+1])),D=p(w,[C]);y={url:C,func:"",args:[],line:D?D.line:o[1],column:null}}if(y){y.func||(y.func=n(y.url,y.line));var P=a(y.url,y.line),T=P?P[Math.floor(P.length/2)]:null
;P&&T.replace(/^\s*/,"")===s[g+1].replace(/^\s*/,"")?y.context=P:y.context=[s[g+1]],h.push(y)}}return h.length?{name:e.name,message:s[0],url:i(),stack:h}:null}function y(e,t,i,r){var s={url:t,line:i};if(s.url&&s.line){e.incomplete=!1,s.func||(s.func=n(s.url,s.line)),s.context||(s.context=a(s.url,s.line));var o=/ '([^']+)' /.exec(r);if(o&&(s.column=h(o[1],s.url,s.line)),e.stack.length>0&&e.stack[0].url===s.url){if(e.stack[0].line===s.line)return!1
;if(!e.stack[0].line&&e.stack[0].func===s.func)return e.stack[0].line=s.line,e.stack[0].context=s.context,!1}return e.stack.unshift(s),e.partial=!0,!0}return e.incomplete=!0,!1}function b(e,t){for(var a,r,s,o=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,u=[],d={},p=!1,v=b.caller;v&&!p;v=v.caller)if(v!==S&&v!==l.report){if(r={url:null,func:c,line:null,column:null},v.name?r.func=v.name:(a=o.exec(v.toString()))&&(r.func=a[1]),void 0===r.func)try{
r.func=a.input.substring(0,a.input.indexOf("{"))}catch(e){}if(s=f(v)){r.url=s.url,r.line=s.line,r.func===c&&(r.func=n(r.url,r.line));var m=/ '([^']+)' /.exec(e.message||e.description);m&&(r.column=h(m[1],s.url,s.line))}d[""+v]?p=!0:d[""+v]=!0,u.push(r)}t&&u.splice(0,t);var g={name:e.name,message:e.message,url:i(),stack:u};return y(g,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description),g}function S(e,t){var n=null;t=null==t?0:+t;try{if(n=m(e))return n}catch(e){if(l.debug)throw e
}try{if(n=v(e))return n}catch(e){if(l.debug)throw e}try{if(n=g(e))return n}catch(e){if(l.debug)throw e}try{if(n=b(e,t+1))return n}catch(e){if(l.debug)throw e}return{name:e.name,message:e.message,url:i()}}var I={};return S.augmentStackTraceWithInitialElement=y,S.computeStackTraceFromStackProp=v,S.guessFunctionName=n,S.gatherContext=a,S}(),e.exports=l},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){
if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),
t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){
return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=n(0),c=i(u),d=n(3452),p=i(d),h=n(3342),f=i(h),v=function(){return!0},m=function(e){return e.trim().length>0},g={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",
suggestionFocused:"react-autosuggest__suggestion--focused",sectionContainer:"react-autosuggest__section-container",sectionTitle:"react-autosuggest__section-title"},y=function(e){var t={};for(var n in e)switch(n){case"suggestionsContainer":t.itemsContainer=e[n];break;case"suggestion":t.item=e[n];break;case"suggestionFocused":t.itemFocused=e[n];break;case"suggestionsList":t.itemsList=e[n];break;default:t[n]=e[n]}return t},b=function(e){function t(e){var n=e.alwaysRenderSuggestions;a(this,t)
;var i=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return S.call(i),i.state={isFocused:!1,isCollapsed:!n,focusedSectionIndex:null,focusedSuggestionIndex:null,valueBeforeUpDown:null},i.justPressedUpDown=!1,i}return s(t,e),l(t,[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown)}},{key:"componentWillReceiveProps",value:function(e){(0,
p.default)(e.suggestions,this.props.suggestions)?e.focusFirstSuggestion&&e.suggestions.length>0&&this.justPressedUpDown===!1&&this.focusFirstSuggestion():this.willRenderSuggestions(e)?(e.focusFirstSuggestion&&this.focusFirstSuggestion(),this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions()):this.resetFocusedSuggestion()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown)}},{key:"inputFocused",
value:function(e){this.setState({isFocused:!0,isCollapsed:!e})}},{key:"inputBlurred",value:function(e){this.setState({isFocused:!1,focusedSectionIndex:null,focusedSuggestionIndex:null,valueBeforeUpDown:null,isCollapsed:!e})}},{key:"inputChanged",value:function(e){this.setState({focusedSectionIndex:null,focusedSuggestionIndex:null,valueBeforeUpDown:null,isCollapsed:!e})}},{key:"updateFocusedSuggestion",value:function(e,t,n){var i=this.state.valueBeforeUpDown
;null===t?i=null:null===i&&void 0!==n&&(i=n),this.setState({focusedSectionIndex:e,focusedSuggestionIndex:t,valueBeforeUpDown:i})}},{key:"resetFocusedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.state.valueBeforeUpDown;this.setState({focusedSectionIndex:null,focusedSuggestionIndex:null,valueBeforeUpDown:e?null:t})}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){
this.setState({focusedSectionIndex:null,focusedSuggestionIndex:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,i=n.suggestions,a=n.multiSection,r=n.getSectionSuggestions;return a?r(i[e])[t]:i[t]}},{key:"getFocusedSuggestion",value:function(){var e=this.state,t=e.focusedSectionIndex,n=e.focusedSuggestionIndex;return null===n?null:this.getSuggestion(t,n)}},{key:"getSuggestionValueByIndex",value:function(e,t){return(0,
this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function(e){var t=e.getAttribute("data-section-index"),n=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"==typeof t?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function(e){var t=e;do{if(null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw console.error("Clicked element:",e),
new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(e,t,n){var i=this.props.inputProps,a=i.value,r=i.onChange;t!==a&&r(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e){var t=e.suggestions,n=e.inputProps,i=e.shouldRenderSuggestions,a=n.value;return t.length>0&&i(a)}},{key:"render",value:function(){
var e=this,t=this.props,n=t.suggestions,i=t.renderInputComponent,a=t.renderSuggestionsContainer,r=t.onSuggestionsFetchRequested,s=t.renderSuggestion,l=t.inputProps,u=t.multiSection,d=t.renderSectionTitle,p=t.id,h=t.getSectionSuggestions,m=t.theme,g=t.getSuggestionValue,b=t.alwaysRenderSuggestions,S=this.state,I=S.isFocused,M=S.isCollapsed,C=S.focusedSectionIndex,w=S.focusedSuggestionIndex,D=S.valueBeforeUpDown,P=b?v:this.props.shouldRenderSuggestions,T=l.value,x=l.onFocus,E=l.onKeyDown,N=this.willRenderSuggestions(this.props),L=b||I&&!M&&N,A=L?n:[],k=o({},l,{
onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=P(T);e.inputFocused(n),x&&x(t),n&&r({value:T})}},onBlur:function(t){if(e.justClickedOnSuggestionsContainer)return void e.input.focus();e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested())},onChange:function(t){var n=t.target.value,i=P(n);e.maybeCallOnChange(t,n,"type"),e.inputChanged(i),i?r({value:n}):e.onSuggestionsClearRequested()},onKeyDown:function(t,i){switch(t.key){
case"ArrowDown":case"ArrowUp":if(M)P(T)&&(r({value:T}),e.revealSuggestions());else if(n.length>0){var a=i.newFocusedSectionIndex,s=i.newFocusedItemIndex,o=void 0;o=null===s?null===D?T:D:e.getSuggestionValueByIndex(a,s),e.updateFocusedSuggestion(a,s,T),e.maybeCallOnChange(t,o,"ArrowDown"===t.key?"down":"up")}t.preventDefault(),e.justPressedUpDown=!0,setTimeout(function(){e.justPressedUpDown=!1});break;case"Enter":var l=e.getFocusedSuggestion();if(L&&!b&&e.closeSuggestions(),null!==l){var u=g(l)
;e.maybeCallOnChange(t,u,"enter"),e.onSuggestionSelected(t,{suggestion:l,suggestionValue:u,suggestionIndex:w,sectionIndex:C,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout(function(){e.justSelectedSuggestion=!1})}break;case"Escape":L&&t.preventDefault();var c=L&&!b;if(null===D){if(!c){e.maybeCallOnChange(t,"","escape"),P("")?r({value:""}):e.onSuggestionsClearRequested()}}else e.maybeCallOnChange(t,D,"escape");c?(e.onSuggestionsClearRequested(),
e.closeSuggestions()):e.resetFocusedSuggestion()}E&&E(t)}}),_={query:(D||T).trim()};return c.default.createElement(f.default,{multiSection:u,items:A,renderInputComponent:i,renderItemsContainer:a,renderItem:s,renderItemData:_,renderSectionTitle:d,getSectionItems:h,focusedSectionIndex:C,focusedItemIndex:w,inputProps:k,itemProps:this.itemProps,theme:y(m),id:p,ref:this.storeReferences})}}]),t}(u.Component);b.propTypes={suggestions:u.PropTypes.array.isRequired,
onSuggestionsFetchRequested:function(e,t){if("function"!=typeof e[t])throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function e(t,n){var e=t[n];if(t.alwaysRenderSuggestions===!1&&"function"!=typeof e)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},
onSuggestionSelected:u.PropTypes.func,renderInputComponent:u.PropTypes.func,renderSuggestionsContainer:u.PropTypes.func,getSuggestionValue:u.PropTypes.func.isRequired,renderSuggestion:u.PropTypes.func.isRequired,inputProps:function e(t,n){var e=t[n];if(!e.hasOwnProperty("value"))throw new Error("'inputProps' must have 'value'.");if(!e.hasOwnProperty("onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:u.PropTypes.func,
alwaysRenderSuggestions:u.PropTypes.bool,multiSection:u.PropTypes.bool,renderSectionTitle:function e(t,n){var e=t[n];if(t.multiSection===!0&&"function"!=typeof e)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function e(t,n){var e=t[n]
;if(t.multiSection===!0&&"function"!=typeof e)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:u.PropTypes.bool,focusFirstSuggestion:u.PropTypes.bool,theme:u.PropTypes.object,id:u.PropTypes.string},b.defaultProps={shouldRenderSuggestions:m,alwaysRenderSuggestions:!1,multiSection:!1,focusInputOnSuggestionClick:!0,focusFirstSuggestion:!1,theme:g,id:"1"};var S=function(){
var e=this;this.onDocumentMouseDown=function(t){e.justClickedOnSuggestionsContainer=!1;for(var n=t.detail&&t.detail.target||t.target;null!==n&&n!==document;){if(null!==n.getAttribute("data-suggestion-index"))return;if(n===e.suggestionsContainer)return void(e.justClickedOnSuggestionsContainer=!0);n=n.parentNode}},this.storeReferences=function(t){if(null!==t){var n=t.input,i=t.itemsContainer;e.input=n,e.suggestionsContainer=i}},this.onSuggestionMouseEnter=function(t,n){
var i=n.sectionIndex,a=n.itemIndex;e.updateFocusedSuggestion(i,a)},this.focusFirstSuggestion=function(){e.updateFocusedSuggestion(e.props.multiSection?0:null,0)},this.onSuggestionMouseDown=function(){e.justSelectedSuggestion=!0},this.onSuggestionsClearRequested=function(){var t=e.props.onSuggestionsClearRequested;t&&t()},this.onSuggestionSelected=function(t,n){var i=e.props,a=i.alwaysRenderSuggestions,r=i.onSuggestionSelected,s=i.onSuggestionsFetchRequested;r&&r(t,n),a?s({value:n.suggestionValue
}):e.onSuggestionsClearRequested(),e.resetFocusedSuggestion()},this.onSuggestionClick=function(t){var n=e.props,i=n.alwaysRenderSuggestions,a=n.focusInputOnSuggestionClick,r=e.getSuggestionIndices(e.findSuggestionElement(t.target)),s=r.sectionIndex,o=r.suggestionIndex,l=e.getSuggestion(s,o),u=e.props.getSuggestionValue(l);e.maybeCallOnChange(t,u,"click"),e.onSuggestionSelected(t,{suggestion:l,suggestionValue:u,suggestionIndex:o,sectionIndex:s,method:"click"}),i||e.closeSuggestions(),
a===!0?e.input.focus():e.onBlur(),setTimeout(function(){e.justSelectedSuggestion=!1})},this.onBlur=function(){var t=e.props,n=t.inputProps,i=t.shouldRenderSuggestions,a=n.value,r=n.onBlur,s=e.getFocusedSuggestion();e.inputBlurred(i(a)),r&&r(e.blurEvent,{focusedSuggestion:s})},this.resetFocusedSuggestionOnMouseLeave=function(){e.resetFocusedSuggestion(!1)},this.itemProps=function(t){return{"data-section-index":t.sectionIndex,"data-suggestion-index":t.itemIndex,
onMouseEnter:e.onSuggestionMouseEnter,onMouseLeave:e.resetFocusedSuggestionOnMouseLeave,onMouseDown:e.onSuggestionMouseDown,onTouchStart:e.onSuggestionMouseDown,onClick:e.onSuggestionClick}}};t.default=b},function(e,t,n){"use strict";e.exports=n(3336).default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){
if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{
value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},l=function(){function e(e,t){var n=[],i=!0,a=!1,r=void 0;try{for(var s,o=e[Symbol.iterator]();!(i=(s=o.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){a=!0,r=e}finally{try{!i&&o.return&&o.return()}finally{if(a)throw r}}return n}return function(t,n){if(Array.isArray(t))return t
;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),c=n(0),d=i(c),p=n(3449),h=i(p),f=n(3429),v=i(f),m=n(3341),g=i(m),y=n(3340),b=i(y),S=function(){return!0},I={},M=function(e){
return d.default.createElement("input",e)},C=function(e){return d.default.createElement("div",e)},w={container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",itemsContainer:"react-autowhatever__items-container",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFocused:"react-autowhatever__item--focused",sectionContainer:"react-autowhatever__section-container",
sectionTitle:"react-autowhatever__section-title"},D=function(e){function t(e){a(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.focusedItem=null,n.setSectionsItems(e),n.setSectionIterator(e),n.setTheme(e),n.onKeyDown=n.onKeyDown.bind(n),n.storeInputReference=n.storeInputReference.bind(n),n.storeItemsContainerReference=n.storeItemsContainerReference.bind(n),n.onFocusedItemChange=n.onFocusedItemChange.bind(n),n.getItemId=n.getItemId.bind(n),n}return s(t,e),
u(t,[{key:"componentDidMount",value:function(){this.ensureFocusedItemIsVisible()}},{key:"componentWillReceiveProps",value:function(e){e.items!==this.props.items&&this.setSectionsItems(e),e.items===this.props.items&&e.multiSection===this.props.multiSection||this.setSectionIterator(e),e.theme!==this.props.theme&&this.setTheme(e)}},{key:"componentDidUpdate",value:function(){this.ensureFocusedItemIsVisible()}},{key:"setSectionsItems",value:function(e){
e.multiSection&&(this.sectionsItems=e.items.map(function(t){return e.getSectionItems(t)}),this.sectionsLengths=this.sectionsItems.map(function(e){return e.length}),this.allSectionsAreEmpty=this.sectionsLengths.every(function(e){return 0===e}))}},{key:"setSectionIterator",value:function(e){this.sectionIterator=(0,h.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:"setTheme",value:function(e){this.theme=(0,v.default)(e.theme)}},{
key:"storeInputReference",value:function(e){null!==e&&(this.input=e)}},{key:"storeItemsContainerReference",value:function(e){null!==e&&(this.itemsContainer=e)}},{key:"onFocusedItemChange",value:function(e){this.focusedItem=e}},{key:"getItemId",value:function(e,t){return null===t?null:"react-autowhatever-"+this.props.id+"-"+(null===e?"":"section-"+e)+"-item-"+t}},{key:"renderSections",value:function(){var e=this;if(this.allSectionsAreEmpty)return null
;var t=this.theme,n=this.props,i=n.id,a=n.items,r=n.renderItem,s=n.renderItemData,o=n.shouldRenderSection,l=n.renderSectionTitle,u=n.focusedSectionIndex,c=n.focusedItemIndex,p=n.itemProps;return a.map(function(n,a){if(!o(n))return null;var h="react-autowhatever-"+i+"-",f=h+"section-"+a+"-";return d.default.createElement("div",t(f+"container","sectionContainer"),d.default.createElement(g.default,{section:n,renderSectionTitle:l,theme:t,sectionKeyPrefix:f}),d.default.createElement(b.default,{
items:e.sectionsItems[a],itemProps:p,renderItem:r,renderItemData:s,sectionIndex:a,focusedItemIndex:u===a?c:null,onFocusedItemChange:e.onFocusedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:h,ref:e.storeItemsListReference}))})}},{key:"renderItems",value:function(){var e=this.props.items;if(0===e.length)return null;var t=this.theme,n=this.props,i=n.id,a=n.renderItem,r=n.renderItemData,s=n.focusedSectionIndex,o=n.focusedItemIndex,l=n.itemProps;return d.default.createElement(b.default,{items:e,
itemProps:l,renderItem:a,renderItemData:r,focusedItemIndex:null===s?o:null,onFocusedItemChange:this.onFocusedItemChange,getItemId:this.getItemId,theme:t,keyPrefix:"react-autowhatever-"+i+"-"})}},{key:"onKeyDown",value:function(e){var t=this.props,n=t.inputProps,i=t.focusedSectionIndex,a=t.focusedItemIndex;switch(e.key){case"ArrowDown":case"ArrowUp":var r="ArrowDown"===e.key?"next":"prev",s=this.sectionIterator[r]([i,a]),o=l(s,2),u=o[0],c=o[1];n.onKeyDown(e,{newFocusedSectionIndex:u,
newFocusedItemIndex:c});break;default:n.onKeyDown(e,{focusedSectionIndex:i,focusedItemIndex:a})}}},{key:"ensureFocusedItemIsVisible",value:function(){var e=this.focusedItem;if(e){var t=this.itemsContainer,n=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,i=t.scrollTop;n<i?i=n:n+e.offsetHeight>i+t.offsetHeight&&(i=n+e.offsetHeight-t.offsetHeight),i!==t.scrollTop&&(t.scrollTop=i)}}},{key:"render",value:function(){
var e=this.theme,t=this.props,n=t.id,i=t.multiSection,a=t.renderInputComponent,r=t.renderItemsContainer,s=t.focusedSectionIndex,l=t.focusedItemIndex,u=i?this.renderSections():this.renderItems(),c=null!==u,p=this.getItemId(s,l),h=e("react-autowhatever-"+n+"-container","container",c&&"containerOpen"),f="react-autowhatever-"+n,v=a(o({type:"text",value:"",autoComplete:"off",role:"combobox","aria-autocomplete":"list","aria-owns":f,"aria-expanded":c,"aria-haspopup":c,"aria-activedescendant":p
},e("react-autowhatever-"+n+"-input","input"),this.props.inputProps,{onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),m=r(o({id:f},e("react-autowhatever-"+n+"-items-container","itemsContainer"),{ref:this.storeItemsContainerReference,children:u}));return d.default.createElement("div",h,v,m)}}]),t}(c.Component);D.propTypes={id:c.PropTypes.string,multiSection:c.PropTypes.bool,renderInputComponent:c.PropTypes.func,items:c.PropTypes.array.isRequired,
renderItemsContainer:c.PropTypes.func,renderItem:c.PropTypes.func,renderItemData:c.PropTypes.object,shouldRenderSection:c.PropTypes.func,renderSectionTitle:c.PropTypes.func,getSectionItems:c.PropTypes.func,inputComponent:c.PropTypes.func,inputProps:c.PropTypes.object,itemProps:c.PropTypes.oneOfType([c.PropTypes.object,c.PropTypes.func]),focusedSectionIndex:c.PropTypes.number,focusedItemIndex:c.PropTypes.number,theme:c.PropTypes.oneOfType([c.PropTypes.object,c.PropTypes.array])},D.defaultProps={
id:"1",multiSection:!1,renderInputComponent:M,renderItemsContainer:C,shouldRenderSection:S,renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:I,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},inputProps:I,itemProps:I,focusedSectionIndex:null,focusedItemIndex:null,theme:w},t.default=D},function(e,t,n){"use strict";function i(e){
return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){
if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]
;for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),c=n(0),d=i(c),p=n(704),h=i(p),f=function(e){function t(){r(this,t);var e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))
;return e.storeItemReference=e.storeItemReference.bind(e),e.onMouseEnter=e.onMouseEnter.bind(e),e.onMouseLeave=e.onMouseLeave.bind(e),e.onMouseDown=e.onMouseDown.bind(e),e.onClick=e.onClick.bind(e),e}return o(t,e),u(t,[{key:"shouldComponentUpdate",value:function(e){return(0,h.default)(e,this.props,["renderItemData"])}},{key:"storeItemReference",value:function(e){null!==e&&(this.item=e)}},{key:"onMouseEnter",value:function(e){var t=this.props,n=t.sectionIndex,i=t.itemIndex
;this.props.onMouseEnter(e,{sectionIndex:n,itemIndex:i})}},{key:"onMouseLeave",value:function(e){var t=this.props,n=t.sectionIndex,i=t.itemIndex;this.props.onMouseLeave(e,{sectionIndex:n,itemIndex:i})}},{key:"onMouseDown",value:function(e){var t=this.props,n=t.sectionIndex,i=t.itemIndex;this.props.onMouseDown(e,{sectionIndex:n,itemIndex:i})}},{key:"onClick",value:function(e){var t=this.props,n=t.sectionIndex,i=t.itemIndex;this.props.onClick(e,{sectionIndex:n,itemIndex:i})}},{key:"render",
value:function(){var e=this.props,t=e.item,n=e.renderItem,i=e.renderItemData,r=a(e,["item","renderItem","renderItemData"]);return delete r.sectionIndex,delete r.itemIndex,"function"==typeof r.onMouseEnter&&(r.onMouseEnter=this.onMouseEnter),"function"==typeof r.onMouseLeave&&(r.onMouseLeave=this.onMouseLeave),"function"==typeof r.onMouseDown&&(r.onMouseDown=this.onMouseDown),"function"==typeof r.onClick&&(r.onClick=this.onClick),d.default.createElement("li",l({role:"option"},r,{
ref:this.storeItemReference}),n(t,i))}}]),t}(c.Component);f.propTypes={sectionIndex:c.PropTypes.number,itemIndex:c.PropTypes.number.isRequired,item:c.PropTypes.any.isRequired,renderItem:c.PropTypes.func.isRequired,renderItemData:c.PropTypes.object.isRequired,onMouseEnter:c.PropTypes.func,onMouseLeave:c.PropTypes.func,onMouseDown:c.PropTypes.func,onClick:c.PropTypes.func},t.default=f},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){
if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),
t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){
return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=n(0),c=i(u),d=n(3339),p=i(d),h=n(704),f=i(h),v=function(e){function t(){a(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.storeFocusedItemReference=e.storeFocusedItemReference.bind(e),e}return s(t,e),l(t,[{key:"shouldComponentUpdate",value:function(e){return(0,f.default)(e,this.props,["itemProps"])}},{key:"storeFocusedItemReference",value:function(e){this.props.onFocusedItemChange(null===e?null:e.item)}},{
key:"render",value:function(){var e=this,t=this.props,n=t.items,i=t.itemProps,a=t.renderItem,r=t.renderItemData,s=t.sectionIndex,l=t.focusedItemIndex,u=t.getItemId,d=t.theme,h=t.keyPrefix,f=null===s?h:h+"section-"+s+"-",v="function"==typeof i;return c.default.createElement("ul",o({role:"listbox"},d(f+"items-list","itemsList")),n.map(function(t,n){var h=n===l,m=f+"item-"+n,g=v?i({sectionIndex:s,itemIndex:n}):i,y=o({id:u(s,n)},d(m,"item",h&&"itemFocused"),g)
;return h&&(y.ref=e.storeFocusedItemReference),c.default.createElement(p.default,o({},y,{sectionIndex:s,itemIndex:n,item:t,renderItem:a,renderItemData:r}))}))}}]),t}(u.Component);v.propTypes={items:u.PropTypes.array.isRequired,itemProps:u.PropTypes.oneOfType([u.PropTypes.object,u.PropTypes.func]),renderItem:u.PropTypes.func.isRequired,renderItemData:u.PropTypes.object.isRequired,sectionIndex:u.PropTypes.number,focusedItemIndex:u.PropTypes.number,onFocusedItemChange:u.PropTypes.func.isRequired,
getItemId:u.PropTypes.func.isRequired,theme:u.PropTypes.func.isRequired,keyPrefix:u.PropTypes.string.isRequired},v.defaultProps={sectionIndex:null},t.default=v},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}
function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,
"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(0),u=i(l),c=n(704),d=i(c),p=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,[{key:"shouldComponentUpdate",value:function(e){return(0,d.default)(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.section,n=e.renderSectionTitle,i=e.theme,a=e.sectionKeyPrefix,r=n(t)
;return r?u.default.createElement("div",i(a+"title","sectionTitle"),r):null}}]),t}(l.Component);p.propTypes={section:l.PropTypes.any.isRequired,renderSectionTitle:l.PropTypes.func.isRequired,theme:l.PropTypes.func.isRequired,sectionKeyPrefix:l.PropTypes.string.isRequired},t.default=p},function(e,t,n){"use strict";e.exports=n(3338).default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){
if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=n(3325),s=i(r),o=n(1125),l=i(o),u=function(){function e(){a(this,e),this.entered=[]}return e.prototype.enter=function(e){var t=this.entered.length;return this.entered=s.default(this.entered.filter(function(t){return document.documentElement.contains(t)&&(!t.contains||t.contains(e))}),[e]),0===t&&this.entered.length>0},e.prototype.leave=function(e){var t=this.entered.length
;return this.entered=l.default(this.entered.filter(function(e){return document.documentElement.contains(e)}),e),t>0&&0===this.entered.length},e.prototype.reset=function(){this.entered=[]},e}();t.default=u,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0
;var r=n(3318),s=i(r),o=n(3349),l=i(o),u=n(3343),c=i(u),d=n(1130),p=n(3347),h=n(3346),f=n(705),v=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(f),m=function(){function e(t){a(this,e),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.sourcePreviewNodes={},this.sourcePreviewNodeOptions={},this.sourceNodes={},this.sourceNodeOptions={},
this.enterLeaveCounter=new c.default,this.getSourceClientOffset=this.getSourceClientOffset.bind(this),this.handleTopDragStart=this.handleTopDragStart.bind(this),this.handleTopDragStartCapture=this.handleTopDragStartCapture.bind(this),this.handleTopDragEndCapture=this.handleTopDragEndCapture.bind(this),this.handleTopDragEnter=this.handleTopDragEnter.bind(this),this.handleTopDragEnterCapture=this.handleTopDragEnterCapture.bind(this),
this.handleTopDragLeaveCapture=this.handleTopDragLeaveCapture.bind(this),this.handleTopDragOver=this.handleTopDragOver.bind(this),this.handleTopDragOverCapture=this.handleTopDragOverCapture.bind(this),this.handleTopDrop=this.handleTopDrop.bind(this),this.handleTopDropCapture=this.handleTopDropCapture.bind(this),this.handleSelectStart=this.handleSelectStart.bind(this),this.endDragIfSourceWasRemovedFromDOM=this.endDragIfSourceWasRemovedFromDOM.bind(this),
this.endDragNativeItem=this.endDragNativeItem.bind(this)}return e.prototype.setup=function(){if("undefined"!=typeof window){if(this.constructor.isSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.constructor.isSetUp=!0,this.addEventListeners(window)}},e.prototype.teardown=function(){"undefined"!=typeof window&&(this.constructor.isSetUp=!1,this.removeEventListeners(window),this.clearCurrentDragSourceNode())},e.prototype.addEventListeners=function(e){
e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),
e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0)},e.prototype.removeEventListeners=function(e){e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),
e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0)},e.prototype.connectDragPreview=function(e,t,n){var i=this;return this.sourcePreviewNodeOptions[e]=n,this.sourcePreviewNodes[e]=t,function(){delete i.sourcePreviewNodes[e],
delete i.sourcePreviewNodeOptions[e]}},e.prototype.connectDragSource=function(e,t,n){var i=this;this.sourceNodes[e]=t,this.sourceNodeOptions[e]=n;var a=function(t){return i.handleDragStart(t,e)},r=function(t){return i.handleSelectStart(t,e)};return t.setAttribute("draggable",!0),t.addEventListener("dragstart",a),t.addEventListener("selectstart",r),function(){delete i.sourceNodes[e],delete i.sourceNodeOptions[e],t.removeEventListener("dragstart",a),t.removeEventListener("selectstart",r),
t.setAttribute("draggable",!1)}},e.prototype.connectDropTarget=function(e,t){var n=this,i=function(t){return n.handleDragEnter(t,e)},a=function(t){return n.handleDragOver(t,e)},r=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",i),t.addEventListener("dragover",a),t.addEventListener("drop",r),function(){t.removeEventListener("dragenter",i),t.removeEventListener("dragover",a),t.removeEventListener("drop",r)}},e.prototype.getCurrentSourceNodeOptions=function(){
var e=this.monitor.getSourceId(),t=this.sourceNodeOptions[e];return s.default(t||{},{dropEffect:"move"})},e.prototype.getCurrentDropEffect=function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect},e.prototype.getCurrentSourcePreviewNodeOptions=function(){var e=this.monitor.getSourceId(),t=this.sourcePreviewNodeOptions[e];return s.default(t||{},{anchorX:.5,anchorY:.5,captureDraggingState:!1})},e.prototype.getSourceClientOffset=function(e){
return p.getNodeClientOffset(this.sourceNodes[e])},e.prototype.isDraggingNativeItem=function(){var e=this.monitor.getItemType();return Object.keys(v).some(function(t){return v[t]===e})},e.prototype.beginDragNativeItem=function(e){this.clearCurrentDragSourceNode();var t=h.createNativeDragSource(e);this.currentNativeSource=new t,this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle]),
d.isFirefox()&&window.addEventListener("mousemove",this.endDragNativeItem,!0)},e.prototype.endDragNativeItem=function(){this.isDraggingNativeItem()&&(d.isFirefox()&&window.removeEventListener("mousemove",this.endDragNativeItem,!0),this.actions.endDrag(),this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},e.prototype.endDragIfSourceWasRemovedFromDOM=function(){var e=this.currentDragSourceNode
;document.body.contains(e)||this.clearCurrentDragSourceNode()&&this.actions.endDrag()},e.prototype.setCurrentDragSourceNode=function(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.currentDragSourceNodeOffset=p.getNodeClientOffset(e),this.currentDragSourceNodeOffsetChanged=!1,window.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},e.prototype.clearCurrentDragSourceNode=function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,
this.currentDragSourceNodeOffset=null,this.currentDragSourceNodeOffsetChanged=!1,window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0),!0)},e.prototype.checkIfCurrentDragSourceRectChanged=function(){var e=this.currentDragSourceNode;return!!e&&(!!this.currentDragSourceNodeOffsetChanged||(this.currentDragSourceNodeOffsetChanged=!l.default(p.getNodeClientOffset(e),this.currentDragSourceNodeOffset),this.currentDragSourceNodeOffsetChanged))},
e.prototype.handleTopDragStartCapture=function(){this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},e.prototype.handleDragStart=function(e,t){this.dragStartSourceIds.unshift(t)},e.prototype.handleTopDragStart=function(e){var t=this,n=this.dragStartSourceIds;this.dragStartSourceIds=null;var i=p.getEventClientOffset(e);this.actions.beginDrag(n,{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:i});var a=e.dataTransfer,r=h.matchNativeItemType(a)
;if(this.monitor.isDragging()){if("function"==typeof a.setDragImage){var s=this.monitor.getSourceId(),o=this.sourceNodes[s],l=this.sourcePreviewNodes[s]||o,u=this.getCurrentSourcePreviewNodeOptions(),c=u.anchorX,d=u.anchorY,f={anchorX:c,anchorY:d},v=p.getDragPreviewOffset(o,l,i,f);a.setDragImage(l,v.x,v.y)}try{a.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target)
;this.getCurrentSourcePreviewNodeOptions().captureDraggingState?this.actions.publishDragSource():setTimeout(function(){return t.actions.publishDragSource()})}else if(r)this.beginDragNativeItem(r);else{if(!(a.types||e.target.hasAttribute&&e.target.hasAttribute("draggable")))return;e.preventDefault()}},e.prototype.handleTopDragEndCapture=function(){this.clearCurrentDragSourceNode()&&this.actions.endDrag()},e.prototype.handleTopDragEnterCapture=function(e){if(this.dragEnterTargetIds=[],
this.enterLeaveCounter.enter(e.target)&&!this.monitor.isDragging()){var t=e.dataTransfer,n=h.matchNativeItemType(t);n&&this.beginDragNativeItem(n)}},e.prototype.handleDragEnter=function(e,t){this.dragEnterTargetIds.unshift(t)},e.prototype.handleTopDragEnter=function(e){var t=this,n=this.dragEnterTargetIds;if(this.dragEnterTargetIds=[],this.monitor.isDragging()){d.isFirefox()||this.actions.hover(n,{clientOffset:p.getEventClientOffset(e)});n.some(function(e){return t.monitor.canDropOnTarget(e)
})&&(e.preventDefault(),e.dataTransfer.dropEffect=this.getCurrentDropEffect())}},e.prototype.handleTopDragOverCapture=function(){this.dragOverTargetIds=[]},e.prototype.handleDragOver=function(e,t){this.dragOverTargetIds.unshift(t)},e.prototype.handleTopDragOver=function(e){var t=this,n=this.dragOverTargetIds;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer.dropEffect="none");this.actions.hover(n,{clientOffset:p.getEventClientOffset(e)}),
n.some(function(e){return t.monitor.canDropOnTarget(e)})?(e.preventDefault(),e.dataTransfer.dropEffect=this.getCurrentDropEffect()):this.isDraggingNativeItem()?(e.preventDefault(),e.dataTransfer.dropEffect="none"):this.checkIfCurrentDragSourceRectChanged()&&(e.preventDefault(),e.dataTransfer.dropEffect="move")},e.prototype.handleTopDragLeaveCapture=function(e){this.isDraggingNativeItem()&&e.preventDefault(),
this.enterLeaveCounter.leave(e.target)&&this.isDraggingNativeItem()&&this.endDragNativeItem()},e.prototype.handleTopDropCapture=function(e){this.dropTargetIds=[],e.preventDefault(),this.isDraggingNativeItem()&&this.currentNativeSource.mutateItemByReadingDataTransfer(e.dataTransfer),this.enterLeaveCounter.reset()},e.prototype.handleDrop=function(e,t){this.dropTargetIds.unshift(t)},e.prototype.handleTopDrop=function(e){var t=this.dropTargetIds;this.dropTargetIds=[],this.actions.hover(t,{
clientOffset:p.getEventClientOffset(e)}),this.actions.drop(),this.isDraggingNativeItem()?this.endDragNativeItem():this.endDragIfSourceWasRemovedFromDOM()},e.prototype.handleSelectStart=function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},e}();t.default=m,e.exports=t.default},function(e,t,n){"use strict";function i(e,t){
if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var a=function(){function e(t,n){i(this,e);for(var a=t.length,r=[],s=0;s<a;s++)r.push(s);r.sort(function(e,n){return t[e]<t[n]?-1:1});for(var o=[],l=[],u=[],c=void 0,d=void 0,s=0;s<a-1;s++)c=t[s+1]-t[s],d=n[s+1]-n[s],l.push(c),o.push(d),u.push(d/c);for(var p=[u[0]],s=0;s<l.length-1;s++){var h=u[s],f=u[s+1];if(h*f<=0)p.push(0);else{c=l[s];var v=l[s+1],m=c+v;p.push(3*m/((m+v)/h+(m+c)/f))}}
p.push(u[u.length-1]);for(var g=[],y=[],b=void 0,s=0;s<p.length-1;s++){b=u[s];var S=p[s],I=1/l[s],m=S+p[s+1]-b-b;g.push((b-S-m)*I),y.push(m*I*I)}this.xs=t,this.ys=n,this.c1s=p,this.c2s=g,this.c3s=y}return e.prototype.interpolate=function(e){var t=this.xs,n=this.ys,i=this.c1s,a=this.c2s,r=this.c3s,s=t.length-1;if(e===t[s])return n[s];for(var o=0,l=r.length-1,u=void 0;o<=l;){u=Math.floor(.5*(o+l));var c=t[u];if(c<e)o=u+1;else{if(!(c>e))return n[u];l=u-1}}s=Math.max(0,l);var d=e-t[s],p=d*d
;return n[s]+i[s]*d+a[s]*p+r[s]*d*p},e}();t.default=a,e.exports=t.default},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t,n){var i=t.reduce(function(t,n){return t||e.getData(n)},null);return null!=i?i:n}function s(e){var t=d[e],n=t.exposeProperty,r=t.matchesTypes,s=t.getData
;return function(){function e(){i(this,e),this.item=Object.defineProperties({},a({},n,{get:function(){return console.warn("Browser doesn't allow reading \""+n+'" until the drop event.'),null},configurable:!0,enumerable:!0}))}return e.prototype.mutateItemByReadingDataTransfer=function(e){delete this.item[n],this.item[n]=s(e,r)},e.prototype.canDrag=function(){return!0},e.prototype.beginDrag=function(){return this.item},e.prototype.isDragging=function(e,t){return t===e.getSourceId()},
e.prototype.endDrag=function(){},e}()}function o(e){var t=Array.prototype.slice.call(e.types||[]);return Object.keys(d).filter(function(e){return d[e].matchesTypes.some(function(e){return t.indexOf(e)>-1})})[0]||null}t.__esModule=!0;var l;t.createNativeDragSource=s,t.matchNativeItemType=o;var u=n(705),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(u),d=(l={},a(l,c.FILE,{
exposeProperty:"files",matchesTypes:["Files"],getData:function(e){return Array.prototype.slice.call(e.files)}}),a(l,c.URL,{exposeProperty:"urls",matchesTypes:["Url","text/uri-list"],getData:function(e,t){return r(e,t,"").split("\n")}}),a(l,c.TEXT,{exposeProperty:"text",matchesTypes:["Text","text/plain"],getData:function(e,t){return r(e,t,"")}}),l)},function(e,t,n){"use strict";function i(e){var t=e.nodeType===u?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),i=n.top;return{
x:n.left,y:i}}function a(e){return{x:e.clientX,y:e.clientY}}function r(e,t,n,a){var r="IMG"===t.nodeName&&(s.isFirefox()||!document.documentElement.contains(t)),o=r?e:t,u=i(o),c={x:n.x-u.x,y:n.y-u.y},d=e.offsetWidth,p=e.offsetHeight,h=a.anchorX,f=a.anchorY,v=r?t.width:d,m=r?t.height:p;s.isSafari()&&r?(m/=window.devicePixelRatio,v/=window.devicePixelRatio):s.isFirefox()&&!r&&(m*=window.devicePixelRatio,v*=window.devicePixelRatio)
;var g=new l.default([0,.5,1],[c.x,c.x/d*v,c.x+v-d]),y=new l.default([0,.5,1],[c.y,c.y/p*m,c.y+m-p]),b=g.interpolate(h),S=y.interpolate(f);return s.isSafari()&&r&&(S+=(window.devicePixelRatio-1)*m),{x:b,y:S}}t.__esModule=!0,t.getNodeClientOffset=i,t.getEventClientOffset=a,t.getDragPreviewOffset=r;var s=n(1130),o=n(3345),l=function(e){return e&&e.__esModule?e:{default:e}}(o),u=1},function(e,t,n){"use strict";function i(){return a||(a=new Image,
a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),a}t.__esModule=!0,t.default=i;var a=void 0;e.exports=t.default},function(e,t,n){"use strict";function i(e,t){if(e===t)return!0;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var a=Object.prototype.hasOwnProperty,r=0;r<n.length;r++){if(!a.call(t,n[r])||e[n[r]]!==t[n[r]])return!1;if(e[n[r]]!==t[n[r]])return!1}return!0}t.__esModule=!0,t.default=i,e.exports=t.default},function(e,t,n){
"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){
m.default.apply(void 0,["DragDropContext","backend"].concat(l.call(arguments)));var t=void 0;t="object"==typeof e&&"function"==typeof e.default?e.default:e,f.default("function"==typeof t,"Expected the backend to be a function or an ES6 module exporting a default function. Read more: http://gaearon.github.io/react-dnd/docs-drag-drop-context.html");var n={dragDropManager:new p.DragDropManager(t)};return function(e){var t=e.displayName||e.name||"Component";return function(i){function s(){a(this,s),
i.apply(this,arguments)}return r(s,i),s.prototype.getDecoratedComponentInstance=function(){return this.refs.child},s.prototype.getManager=function(){return n.dragDropManager},s.prototype.getChildContext=function(){return n},s.prototype.render=function(){return d.default.createElement(e,o({},this.props,{ref:"child"}))},u(s,null,[{key:"DecoratedComponent",value:e,enumerable:!0},{key:"displayName",value:"DragDropContext("+t+")",enumerable:!0},{key:"childContextTypes",value:{
dragDropManager:c.PropTypes.object.isRequired},enumerable:!0}]),s}(c.Component)}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},l=Array.prototype.slice,u=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){
return n&&e(t.prototype,n),i&&e(t,i),t}}();t.default=s;var c=n(0),d=i(c),p=n(2661),h=n(121),f=i(h),v=n(492),m=i(v);e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{
constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return I.default.apply(void 0,["DragLayer","collect[, options]"].concat(l.call(arguments))),
b.default("function"==typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drag-layer.html",e),b.default(g.default(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drag-layer.html',t),function(n){
var i=t.arePropsEqual,s=void 0===i?v.default:i,l=n.displayName||n.name||"Component";return function(t){function i(e,n){a(this,i),t.call(this,e),this.handleChange=this.handleChange.bind(this),this.manager=n.dragDropManager,
b.default("object"==typeof this.manager,"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://gaearon.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",l,l),this.state=this.getCurrentState()}return r(i,t),i.prototype.getDecoratedComponentInstance=function(){return this.refs.child},i.prototype.shouldComponentUpdate=function(e,t){
return!s(e,this.props)||!h.default(t,this.state)},u(i,null,[{key:"DecoratedComponent",value:n,enumerable:!0},{key:"displayName",value:"DragLayer("+l+")",enumerable:!0},{key:"contextTypes",value:{dragDropManager:c.PropTypes.object.isRequired},enumerable:!0}]),i.prototype.componentDidMount=function(){this.isCurrentlyMounted=!0;var e=this.manager.getMonitor();this.unsubscribeFromOffsetChange=e.subscribeToOffsetChange(this.handleChange),
this.unsubscribeFromStateChange=e.subscribeToStateChange(this.handleChange),this.handleChange()},i.prototype.componentWillUnmount=function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange(),this.unsubscribeFromStateChange()},i.prototype.handleChange=function(){if(this.isCurrentlyMounted){var e=this.getCurrentState();h.default(e,this.state)||this.setState(e)}},i.prototype.getCurrentState=function(){var t=this.manager.getMonitor();return e(t)},i.prototype.render=function(){
return d.default.createElement(n,o({},this.props,this.state,{ref:"child"}))},i}(c.Component)}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},l=Array.prototype.slice,u=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}
return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();t.default=s;var c=n(0),d=i(c),p=n(706),h=i(p),f=n(1134),v=i(f),m=n(195),g=i(m),y=n(121),b=i(y),S=n(492),I=i(S);e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){var i=arguments.length<=3||void 0===arguments[3]?{}:arguments[3];d.default.apply(void 0,["DragSource","type, spec, collect[, options]"].concat(r.call(arguments)));var a=e
;"function"!=typeof e&&(o.default(C.default(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drag-source.html',e),a=function(){return e}),
o.default(u.default(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drag-source.html',t);var s=g.default(t);return o.default("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drag-source.html',n),
o.default(u.default(i),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drag-source.html',n),function(e){return h.default({connectBackend:function(e,t){return e.connectDragSource(t)},containerDisplayName:"DragSource",createHandler:s,registerHandler:v.default,createMonitor:b.default,createConnector:I.default,DecoratedComponent:e,getType:a,collect:n,options:i})}}
t.__esModule=!0;var r=Array.prototype.slice;t.default=a;var s=n(121),o=i(s),l=n(195),u=i(l),c=n(492),d=i(c),p=n(1132),h=i(p),f=n(3360),v=i(f),m=n(3355),g=i(m),y=n(3356),b=i(y),S=n(3354),I=i(S),M=n(1133),C=i(M);e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){var i=arguments.length<=3||void 0===arguments[3]?{}:arguments[3];d.default.apply(void 0,["DropTarget","type, spec, collect[, options]"].concat(r.call(arguments)));var a=e
;"function"!=typeof e&&(o.default(C.default(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drop-target.html',e),a=function(){return e}),
o.default(u.default(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drop-target.html',t);var s=g.default(t);return o.default("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drop-target.html',n),
o.default(u.default(i),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drop-target.html',n),function(e){return h.default({connectBackend:function(e,t){return e.connectDropTarget(t)},containerDisplayName:"DropTarget",createHandler:s,registerHandler:v.default,createMonitor:b.default,createConnector:I.default,DecoratedComponent:e,getType:a,collect:n,options:i})}}
t.__esModule=!0;var r=Array.prototype.slice;t.default=a;var s=n(121),o=i(s),l=n(195),u=i(l),c=n(492),d=i(c),p=n(1132),h=i(p),f=n(3361),v=i(f),m=n(3358),g=i(m),y=n(3359),b=i(y),S=n(3357),I=i(S),M=n(1133),C=i(M);e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(){u&&(u(),u=null),a&&r&&(u=e.connectDragSource(a,r,o))}function n(){p&&(p(),p=null),a&&c&&(p=e.connectDragPreview(a,c,d))}function i(e){e!==a&&(a=e,t(),n())}
var a=void 0,r=void 0,o=void 0,u=void 0,c=void 0,d=void 0,p=void 0;return{receiveHandlerId:i,hooks:s.default({dragSource:function(e,n){e===r&&l.default(n,o)||(r=e,o=n,t())},dragPreview:function(e,t){e===c&&l.default(t,d)||(c=e,d=t,n())}})}}t.__esModule=!0,t.default=a;var r=n(1135),s=i(r),o=n(1131),l=i(o);e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")
}function r(e){Object.keys(e).forEach(function(t){o.default(u.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://gaearon.github.io/react-dnd/docs-drag-source.html',u.join(", "),t),
o.default("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://gaearon.github.io/react-dnd/docs-drag-source.html",t,t,e[t])}),c.forEach(function(t){o.default("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://gaearon.github.io/react-dnd/docs-drag-source.html",t,t,e[t])});var t=function(){
function t(e){a(this,t),this.monitor=e,this.props=null,this.component=null}return t.prototype.receiveProps=function(e){this.props=e},t.prototype.receiveComponent=function(e){this.component=e},t.prototype.canDrag=function(){return!e.canDrag||e.canDrag(this.props,this.monitor)},t.prototype.isDragging=function(t,n){return e.isDragging?e.isDragging(this.props,this.monitor):n===t.getSourceId()},t.prototype.beginDrag=function(){var t=e.beginDrag(this.props,this.monitor,this.component);return t},
t.prototype.endDrag=function(){e.endDrag&&e.endDrag(this.props,this.monitor,this.component)},t}();return function(e){return new t(e)}}t.__esModule=!0,t.default=r;var s=n(121),o=i(s),l=n(195),u=(i(l),["canDrag","beginDrag","canDrag","isDragging","endDrag"]),c=["beginDrag"];e.exports=t.default},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e){return new u(e)}t.__esModule=!0,t.default=a
;var r=n(121),s=function(e){return e&&e.__esModule?e:{default:e}}(r),o=!1,l=!1,u=function(){function e(t){i(this,e),this.internalMonitor=t.getMonitor()}return e.prototype.receiveHandlerId=function(e){this.sourceId=e},e.prototype.canDrag=function(){s.default(!o,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://gaearon.github.io/react-dnd/docs-drag-source-monitor.html");try{return o=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{o=!1}},
e.prototype.isDragging=function(){s.default(!l,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://gaearon.github.io/react-dnd/docs-drag-source-monitor.html");try{return l=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{l=!1}},e.prototype.getItemType=function(){return this.internalMonitor.getItemType()},e.prototype.getItem=function(){return this.internalMonitor.getItem()},e.prototype.getDropResult=function(){
return this.internalMonitor.getDropResult()},e.prototype.didDrop=function(){return this.internalMonitor.didDrop()},e.prototype.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},e.prototype.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},e.prototype.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},e.prototype.getClientOffset=function(){
return this.internalMonitor.getClientOffset()},e.prototype.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}();e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(){o&&(o(),o=null),i&&a&&(o=e.connectDropTarget(i,a,r))}function n(e){e!==i&&(i=e,t())}var i=void 0,a=void 0,r=void 0,o=void 0;return{receiveHandlerId:n,hooks:s.default({dropTarget:function(e,n){
e===a&&l.default(n,r)||(a=e,r=n,t())}})}}t.__esModule=!0,t.default=a;var r=n(1135),s=i(r),o=n(1131),l=i(o);e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e){Object.keys(e).forEach(function(t){
o.default(u.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://gaearon.github.io/react-dnd/docs-drop-target.html',u.join(", "),t),o.default("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://gaearon.github.io/react-dnd/docs-drop-target.html",t,t,e[t])});var t=function(){
function t(e){a(this,t),this.monitor=e,this.props=null,this.component=null}return t.prototype.receiveProps=function(e){this.props=e},t.prototype.receiveMonitor=function(e){this.monitor=e},t.prototype.receiveComponent=function(e){this.component=e},t.prototype.canDrop=function(){return!e.canDrop||e.canDrop(this.props,this.monitor)},t.prototype.hover=function(){e.hover&&e.hover(this.props,this.monitor,this.component)},t.prototype.drop=function(){if(e.drop){
var t=e.drop(this.props,this.monitor,this.component);return t}},t}();return function(e){return new t(e)}}t.__esModule=!0,t.default=r;var s=n(121),o=i(s),l=n(195),u=(i(l),["canDrop","hover","drop"]);e.exports=t.default},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e){return new l(e)}t.__esModule=!0,t.default=a;var r=n(121),s=function(e){return e&&e.__esModule?e:{default:e}}(r),o=!1,l=function(){function e(t){
i(this,e),this.internalMonitor=t.getMonitor()}return e.prototype.receiveHandlerId=function(e){this.targetId=e},e.prototype.canDrop=function(){s.default(!o,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://gaearon.github.io/react-dnd/docs-drop-target-monitor.html");try{return o=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{o=!1}},e.prototype.isOver=function(e){return this.internalMonitor.isOverTarget(this.targetId,e)},
e.prototype.getItemType=function(){return this.internalMonitor.getItemType()},e.prototype.getItem=function(){return this.internalMonitor.getItem()},e.prototype.getDropResult=function(){return this.internalMonitor.getDropResult()},e.prototype.didDrop=function(){return this.internalMonitor.didDrop()},e.prototype.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},e.prototype.getInitialSourceClientOffset=function(){
return this.internalMonitor.getInitialSourceClientOffset()},e.prototype.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},e.prototype.getClientOffset=function(){return this.internalMonitor.getClientOffset()},e.prototype.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}();e.exports=t.default},function(e,t,n){"use strict";function i(e,t,n){function i(){a.removeSource(r)}
var a=n.getRegistry(),r=a.addSource(e,t);return{handlerId:r,unregister:i}}t.__esModule=!0,t.default=i,e.exports=t.default},function(e,t,n){"use strict";function i(e,t,n){function i(){a.removeTarget(r)}var a=n.getRegistry(),r=a.addTarget(e,t);return{handlerId:r,unregister:i}}t.__esModule=!0,t.default=i,e.exports=t.default},function(e,t,n){"use strict";function i(e,t){var n=e.ref
;return r.default("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),n?s.cloneElement(e,{ref:function(e){t(e),n&&n(e)}}):s.cloneElement(e,{ref:t})}t.__esModule=!0,t.default=i;var a=n(121),r=function(e){return e&&e.__esModule?e:{default:e}}(a),s=n(0);e.exports=t.default
},,,,function(e,t,n){"use strict";var i={topAbort:null,topAnimationEnd:null,topAnimationIteration:null,topAnimationStart:null,topBlur:null,topCanPlay:null,topCanPlayThrough:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topDurationChange:null,
topEmptied:null,topEncrypted:null,topEnded:null,topError:null,topFocus:null,topInput:null,topInvalid:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topLoadedData:null,topLoadedMetadata:null,topLoadStart:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topPause:null,topPlay:null,topPlaying:null,topProgress:null,topRateChange:null,topReset:null,topScroll:null,topSeeked:null,topSeeking:null,topSelectionChange:null,
topStalled:null,topSubmit:null,topSuspend:null,topTextInput:null,topTimeUpdate:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topTransitionEnd:null,topVolumeChange:null,topWaiting:null,topWheel:null},a={topLevelTypes:i};e.exports=a},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){
if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=n(0),o=(n.n(s),n(1166));n(722)
;n.d(t,"a",function(){return l});var l=function(e){function t(n,r){i(this,t);var s=a(this,e.call(this,n,r));return s.store=n.store,s}return r(t,e),t.prototype.getChildContext=function(){return{store:this.store}},t.prototype.render=function(){return s.Children.only(this.props.children)},t}(s.Component);l.propTypes={store:o.a.isRequired,children:s.PropTypes.element.isRequired},l.childContextTypes={store:o.a.isRequired},l.displayName="Provider"},function(e,t,n){"use strict";function i(e,t){var n={}
;for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function a(e,t,n){for(var i=t.length-1;i>=0;i--){var a=t[i](e);if(a)return a}return function(t,i){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+i.wrappedComponentName+".")}}function r(e,t){return e===t}var s=n(1164),o=n(3428),l=n(3422),u=n(3423),c=n(3424),d=n(3425),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]
;for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,n=void 0===t?s.a:t,h=e.mapStateToPropsFactories,f=void 0===h?u.a:h,v=e.mapDispatchToPropsFactories,m=void 0===v?l.a:v,g=e.mergePropsFactories,y=void 0===g?c.a:g,b=e.selectorFactory,S=void 0===b?d.a:b;return function(e,t,s){
var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=l.pure,c=void 0===u||u,d=l.areStatesEqual,h=void 0===d?r:d,v=l.areOwnPropsEqual,g=void 0===v?o.a:v,b=l.areStatePropsEqual,I=void 0===b?o.a:b,M=l.areMergedPropsEqual,C=void 0===M?o.a:M,w=i(l,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),D=a(e,f,"mapStateToProps"),P=a(t,m,"mapDispatchToProps"),T=a(s,y,"mergeProps");return n(S,p({methodName:"connect",getDisplayName:function(e){
return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:D,initMapDispatchToProps:P,initMergeProps:T,pure:c,areStatesEqual:h,areOwnPropsEqual:g,areStatePropsEqual:I,areMergedPropsEqual:C},w))}}()},function(e,t,n){"use strict";function i(e){return"function"==typeof e?n.i(o.a)(e,"mapDispatchToProps"):void 0}function a(e){return e?void 0:n.i(o.b)(function(e){return{dispatch:e}})}function r(e){return e&&"object"==typeof e?n.i(o.b)(function(t){
return n.i(s.bindActionCreators)(e,t)}):void 0}var s=n(725),o=(n.n(s),n(1165));t.a=[i,a,r]},function(e,t,n){"use strict";function i(e){return"function"==typeof e?n.i(r.a)(e,"mapStateToProps"):void 0}function a(e){return e?void 0:n.i(r.b)(function(){return{}})}var r=n(1165);t.a=[i,a]},function(e,t,n){"use strict";function i(e,t,n){return o({},n,e,t)}function a(e){return function(t,n){var i=(n.displayName,n.pure),a=n.areMergedPropsEqual,r=!1,s=void 0;return function(t,n,o){var l=e(t,n,o)
;return r?i&&a(l,s)||(s=l):(r=!0,s=l),s}}}function r(e){return"function"==typeof e?a(e):void 0}function s(e){return e?void 0:function(){return i}}var o=(n(1167),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e});t.a=[r,s]},function(e,t,n){"use strict";function i(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}
function a(e,t,n,i){return function(a,r){return n(e(a,r),t(i,r),r)}}function r(e,t,n,i,a){function r(a,r){return f=a,v=r,m=e(f,v),g=t(i,v),y=n(m,g,v),h=!0,y}function s(){return m=e(f,v),t.dependsOnOwnProps&&(g=t(i,v)),y=n(m,g,v)}function o(){return e.dependsOnOwnProps&&(m=e(f,v)),t.dependsOnOwnProps&&(g=t(i,v)),y=n(m,g,v)}function l(){var t=e(f,v),i=!p(t,m);return m=t,i&&(y=n(m,g,v)),y}function u(e,t){var n=!d(t,v),i=!c(e,f);return f=e,v=t,n&&i?s():n?o():i?l():y}
var c=a.areStatesEqual,d=a.areOwnPropsEqual,p=a.areStatePropsEqual,h=!1,f=void 0,v=void 0,m=void 0,g=void 0,y=void 0;return function(e,t){return h?u(e,t):r(e,t)}}function s(e,t){var n=t.initMapStateToProps,s=t.initMapDispatchToProps,o=t.initMergeProps,l=i(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),u=n(e,l),c=s(e,l),d=o(e,l);return(l.pure?r:a)(u,c,d,e,l)}n(3426);t.a=s},function(e,t,n){"use strict";n(722)},function(e,t,n){"use strict";function i(e,t){
if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(){var e=[],t=[];return{clear:function(){t=r,e=r},notify:function(){for(var n=e=t,i=0;i<n.length;i++)n[i]()},subscribe:function(n){var i=!0;return t===e&&(t=e.slice()),t.push(n),function(){i&&e!==r&&(i=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}}n.d(t,"a",function(){return o});var r=null,s={notify:function(){}},o=function(){function e(t,n){i(this,e),this.store=t,this.parentSub=n,
this.unsubscribe=null,this.listeners=s}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=a())},
e.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=s)},e}()},function(e,t,n){"use strict";function i(e,t){if(e===t)return!0;var n=0,i=0;for(var r in e){if(a.call(e,r)&&e[r]!==t[r])return!1;n++}for(var s in t)a.call(t,s)&&i++;return n===i}t.a=i;var a=Object.prototype.hasOwnProperty},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}
return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){var n=[],i=!0,a=!1,r=void 0;try{for(var s,o=e[Symbol.iterator]();!(i=(s=o.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){a=!0,r=e}finally{try{!i&&o.return&&o.return()}finally{if(a)throw r}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}
}(),r=n(3430),s=function(e){return e&&e.__esModule?e:{default:e}}(r),o=function(e){return e};t.default=function(e){var t=Array.isArray(e)&&2===e.length?e:[e,null],n=a(t,2),r=n[0],l=n[1];return function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var u=n.map(function(e){return r[e]}).filter(o);return"string"==typeof u[0]||"function"==typeof l?{key:e,className:l?l.apply(void 0,i(u)):u.join(" ")}:{key:e,style:s.default.apply(void 0,[{}].concat(i(u)))}}},
e.exports=t.default},function(e,t,n){"use strict";function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function a(e){var t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e))),t.filter(function(t){return r.call(e,t)})}var r=Object.prototype.propertyIsEnumerable;e.exports=Object.assign||function(e,t){for(var n,r,s=i(e),o=1;o<arguments.length;o++){n=arguments[o],
r=a(Object(n));for(var l=0;l<r.length;l++)s[r[l]]=n[r[l]]}return s}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){
if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e
},l=n(0),u=i(l),c=n(490),d=i(c),p=n(3433),h=i(p),f=n(3432),v=i(f),m=n(1168),g={transitionName:m.nameShape.isRequired,transitionAppear:d.default.bool,transitionEnter:d.default.bool,transitionLeave:d.default.bool,transitionAppearTimeout:(0,m.transitionTimeout)("Appear"),transitionEnterTimeout:(0,m.transitionTimeout)("Enter"),transitionLeaveTimeout:(0,m.transitionTimeout)("Leave")},y={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},b=function(e){function t(){var n,i,s;a(this,t)
;for(var o=arguments.length,l=Array(o),c=0;c<o;c++)l[c]=arguments[c];return n=i=r(this,e.call.apply(e,[this].concat(l))),i._wrapChild=function(e){return u.default.createElement(v.default,{name:i.props.transitionName,appear:i.props.transitionAppear,enter:i.props.transitionEnter,leave:i.props.transitionLeave,appearTimeout:i.props.transitionAppearTimeout,enterTimeout:i.props.transitionEnterTimeout,leaveTimeout:i.props.transitionLeaveTimeout},e)},s=n,r(i,s)}return s(t,e),
t.prototype.render=function(){return u.default.createElement(h.default,o({},this.props,{childFactory:this._wrapChild}))},t}(u.default.Component);b.displayName="CSSTransitionGroup",b.propTypes=g,b.defaultProps=y,t.default=b,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){
if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function o(e,t){
return M.length?M.forEach(function(n){return e.addEventListener(n,t,!1)}):setTimeout(t,0),function(){M.length&&M.forEach(function(n){return e.removeEventListener(n,t,!1)})}}t.__esModule=!0;var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},u=n(2668),c=i(u),d=n(2670),p=i(d),h=n(2672),f=i(h),v=n(2671),m=n(0),g=i(m),y=n(490),b=i(y),S=n(39),I=n(1168),M=[]
;v.transitionEnd&&M.push(v.transitionEnd),v.animationEnd&&M.push(v.animationEnd);var C={children:b.default.node,name:I.nameShape.isRequired,appear:b.default.bool,enter:b.default.bool,leave:b.default.bool,appearTimeout:b.default.number,enterTimeout:b.default.number,leaveTimeout:b.default.number},w=function(e){function t(){var n,i,s;a(this,t);for(var o=arguments.length,l=Array(o),u=0;u<o;u++)l[u]=arguments[u];return n=i=r(this,e.call.apply(e,[this].concat(l))),i.componentWillAppear=function(e){
i.props.appear?i.transition("appear",e,i.props.appearTimeout):e()},i.componentWillEnter=function(e){i.props.enter?i.transition("enter",e,i.props.enterTimeout):e()},i.componentWillLeave=function(e){i.props.leave?i.transition("leave",e,i.props.leaveTimeout):e()},s=n,r(i,s)}return s(t,e),t.prototype.componentWillMount=function(){this.classNameAndNodeQueue=[],this.transitionTimeouts=[]},t.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),
this.transitionTimeouts.forEach(function(e){clearTimeout(e)}),this.classNameAndNodeQueue.length=0},t.prototype.transition=function(e,t,n){var i=(0,S.findDOMNode)(this);if(!i)return void(t&&t());var a=this.props.name[e]||this.props.name+"-"+e,r=this.props.name[e+"Active"]||a+"-active",s=null,l=void 0;(0,c.default)(i,a),this.queueClassAndNode(r,i);var u=function(e){e&&e.target!==i||(clearTimeout(s),l&&l(),(0,p.default)(i,a),(0,p.default)(i,r),l&&l(),t&&t())};n?(s=setTimeout(u,n),
this.transitionTimeouts.push(s)):v.transitionEnd&&(l=o(i,u))},t.prototype.queueClassAndNode=function(e,t){var n=this;this.classNameAndNodeQueue.push({className:e,node:t}),this.rafHandle||(this.rafHandle=(0,f.default)(function(){return n.flushClassNameAndNodeQueue()}))},t.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach(function(e){e.node.scrollTop,(0,c.default)(e.node,e.className)}),this.classNameAndNodeQueue.length=0,this.rafHandle=null},
t.prototype.render=function(){var e=l({},this.props);return delete e.name,delete e.appear,delete e.enter,delete e.leave,delete e.appearTimeout,delete e.enterTimeout,delete e.leaveTimeout,delete e.children,g.default.cloneElement(g.default.Children.only(this.props.children),e)},t}(g.default.Component);w.displayName="CSSTransitionGroupChild",w.propTypes=C,t.default=w,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){
if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),
t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},l=n(2578),u=i(l),c=n(0),d=i(c),p=n(490),h=i(p),f=n(3496),v=(i(f),n(3434)),m={component:h.default.any,childFactory:h.default.func,children:h.default.node},g={component:"span",childFactory:function(e){return e}},y=function(e){function t(n,i){
a(this,t);var s=r(this,e.call(this,n,i));return s.performAppear=function(e){s.currentlyTransitioningKeys[e]=!0;var t=s.childRefs[e];t.componentWillAppear?t.componentWillAppear(s._handleDoneAppearing.bind(s,e)):s._handleDoneAppearing(e)},s._handleDoneAppearing=function(e){var t=s.childRefs[e];t&&t.componentDidAppear&&t.componentDidAppear(),delete s.currentlyTransitioningKeys[e];var n=(0,v.getChildMapping)(s.props.children);n&&n.hasOwnProperty(e)||s.performLeave(e)},s.performEnter=function(e){
s.currentlyTransitioningKeys[e]=!0;var t=s.childRefs[e];t.componentWillEnter?t.componentWillEnter(s._handleDoneEntering.bind(s,e)):s._handleDoneEntering(e)},s._handleDoneEntering=function(e){var t=s.childRefs[e];t&&t.componentDidEnter&&t.componentDidEnter(),delete s.currentlyTransitioningKeys[e];var n=(0,v.getChildMapping)(s.props.children);n&&n.hasOwnProperty(e)||s.performLeave(e)},s.performLeave=function(e){s.currentlyTransitioningKeys[e]=!0;var t=s.childRefs[e]
;t.componentWillLeave?t.componentWillLeave(s._handleDoneLeaving.bind(s,e)):s._handleDoneLeaving(e)},s._handleDoneLeaving=function(e){var t=s.childRefs[e];t&&t.componentDidLeave&&t.componentDidLeave(),delete s.currentlyTransitioningKeys[e];var n=(0,v.getChildMapping)(s.props.children);n&&n.hasOwnProperty(e)?s.performEnter(e):s.setState(function(t){var n=o({},t.children);return delete n[e],{children:n}})},s.childRefs=Object.create(null),s.state={children:(0,v.getChildMapping)(n.children)},s}
return s(t,e),t.prototype.componentWillMount=function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},t.prototype.componentDidMount=function(){var e=this.state.children;for(var t in e)e[t]&&this.performAppear(t)},t.prototype.componentWillReceiveProps=function(e){var t=(0,v.getChildMapping)(e.children),n=this.state.children;this.setState({children:(0,v.mergeChildMappings)(n,t)});for(var i in t){var a=n&&n.hasOwnProperty(i)
;!t[i]||a||this.currentlyTransitioningKeys[i]||this.keysToEnter.push(i)}for(var r in n){var s=t&&t.hasOwnProperty(r);!n[r]||s||this.currentlyTransitioningKeys[r]||this.keysToLeave.push(r)}},t.prototype.componentDidUpdate=function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)},t.prototype.render=function(){var e=this,t=[];for(var n in this.state.children)!function(n){var i=e.state.children[n]
;if(i){var a="string"!=typeof i.ref,r=e.props.childFactory(i),s=function(t){e.childRefs[n]=t};r===i&&a&&(s=(0,u.default)(i.ref,s)),t.push(d.default.cloneElement(r,{key:n,ref:s}))}}(n);var i=o({},this.props);return delete i.transitionLeave,delete i.transitionName,delete i.transitionAppear,delete i.transitionEnter,delete i.childFactory,delete i.transitionLeaveTimeout,delete i.transitionEnterTimeout,delete i.transitionAppearTimeout,delete i.component,
d.default.createElement(this.props.component,i,t)},t}(d.default.Component);y.displayName="TransitionGroup",y.propTypes=m,y.defaultProps=g,t.default=y,e.exports=t.default},function(e,t,n){"use strict";function i(e){if(!e)return e;var t={};return r.Children.map(e,function(e){return e}).forEach(function(e){t[e.key]=e}),t}function a(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}e=e||{},t=t||{};var i={},a=[];for(var r in e)t.hasOwnProperty(r)?a.length&&(i[r]=a,a=[]):a.push(r)
;var s=void 0,o={};for(var l in t){if(i.hasOwnProperty(l))for(s=0;s<i[l].length;s++){var u=i[l][s];o[i[l][s]]=n(u)}o[l]=n(l)}for(s=0;s<a.length;s++)o[a[s]]=n(a[s]);return o}t.__esModule=!0,t.getChildMapping=i,t.mergeChildMappings=a;var r=n(0)},,,,,,,,,,,,function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,i,r){var o=e(n,i,r),l=o.dispatch,u=[],c={getState:o.getState,dispatch:function(e){return l(e)}}
;return u=t.map(function(e){return e(c)}),l=s.default.apply(void 0,u)(o.dispatch),a({},o,{dispatch:l})}}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};t.default=i;var r=n(1174),s=function(e){return e&&e.__esModule?e:{default:e}}(r)},function(e,t,n){"use strict";function i(e,t){return function(){return t(e.apply(void 0,arguments))}}function a(e,t){
if("function"==typeof e)return i(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),a={},r=0;r<n.length;r++){var s=n[r],o=e[s];"function"==typeof o&&(a[s]=i(o,t))}return a}t.__esModule=!0,t.default=a},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e
}}function a(e,t){var n=t&&t.type;return"Given action "+(n&&'"'+n.toString()+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state.'}function r(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:o.ActionTypes.INIT
}))throw new Error('Reducer "'+t+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');if(void 0===n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")
}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+o.ActionTypes.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.')})}function s(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++){var s=t[i]
;"function"==typeof e[s]&&(n[s]=e[s])}var o,l=Object.keys(n);try{r(n)}catch(e){o=e}return function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=arguments[1];if(o)throw o;for(var i=!1,r={},s=0;s<l.length;s++){var u=l[s],c=n[u],d=e[u],p=c(d,t);if(void 0===p){var h=a(u,t);throw new Error(h)}r[u]=p,i=i||p!==d}return i?r:e}}t.__esModule=!0,t.default=s;var o=n(1175),l=n(195),u=(i(l),n(1176));i(u)},function(e,t,n){"use strict";var i=function(){function e(e,t){
var n=[],i=!0,a=!1,r=void 0;try{for(var s,o=e[Symbol.iterator]();!(i=(s=o.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){a=!0,r=e}finally{try{!i&&o.return&&o.return()}finally{if(a)throw r}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.exports=function(e){function t(e){for(null===e?e=0:e++;e<o.length&&0===o[e];)e++
;return e===o.length?null:e}function n(e){for(null===e?e=o.length-1:e--;e>=0&&0===o[e];)e--;return e===-1?null:e}function a(e){var n=i(e,2),a=n[0],r=n[1];return l?null===r||r===o[a]-1?(a=t(a),null===a?[null,null]:[a,0]):[a,r+1]:0===o||r===o-1?[null,null]:null===r?[null,0]:[null,r+1]}function r(e){var t=i(e,2),a=t[0],r=t[1];return l?null===r||0===r?(a=n(a),null===a?[null,null]:[a,o[a]-1]):[a,r-1]:0===o||0===r?[null,null]:null===r?[null,o-1]:[null,r-1]}function s(e){return null===a(e)[1]}
var o=e.data,l=e.multiSection;return{next:a,prev:r,isLast:s}}},function(e,t,n){var i;!function(){var a={};(function(e){function t(e,t){var n=e.split("."),i=as;n[0]in i||!i.execScript||i.execScript("var "+n[0]);for(var a;n.length&&(a=n.shift());)n.length||void 0===t?i=i[a]?i[a]:i[a]={}:i[a]=t}function n(e){function t(){}var n=pt;t.prototype=n.prototype,e.ze=n.prototype,e.prototype=new t,e.prototype.constructor=e,e.we=function(e,t,i){
return n.prototype[t].apply(e,Array.prototype.slice.call(arguments,2))}}function i(e){this.c=Math.exp(Math.log(.5)/e),this.b=this.a=0}function a(e,t,n){var i=Math.pow(e.c,t);n=n*(1-i)+i*e.a,isNaN(n)||(e.a=n,e.b+=t)}function r(e){return e.a/(1-Math.pow(e.c,e.b))}function s(){this.c=new i(2),this.f=new i(5),this.a=0,this.b=5e5}function o(){}function l(e,t,n,i){this.severity=e,this.category=t,this.code=n,this.data=Array.prototype.slice.call(arguments,3)}function u(e){var t
;e instanceof u?(c(this,e.$),this.Aa=e.Aa,this.ba=e.ba,d(this,e.Ia),this.W=e.W,p(this,g(e.a)),this.ta=e.ta):e&&(t=String(e).match(rs))?(c(this,t[1]||"",!0),this.Aa=h(t[2]||""),this.ba=h(t[3]||"",!0),d(this,t[4]),this.W=h(t[5]||"",!0),p(this,t[6]||"",!0),this.ta=h(t[7]||"")):this.a=new m(null)}function c(e,t,n){e.$=n?h(t,!0):t,e.$&&(e.$=e.$.replace(/:$/,""))}function d(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.Ia=t}else e.Ia=null}function p(e,t,n){
t instanceof m?e.a=t:(n||(t=f(t,us)),e.a=new m(t))}function h(e,t){return e?t?decodeURI(e):decodeURIComponent(e):""}function f(e,t,n){return"string"==typeof e?(e=encodeURI(e).replace(t,v),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function v(e){return e=e.charCodeAt(0),"%"+(e>>4&15).toString(16)+(15&e).toString(16)}function m(e){this.b=e||null}function g(e){var t=new m;if(t.b=e.b,e.a){var n,i={};for(n in e.a)i[n]=e.a[n].concat();t.a=i,t.c=e.c}return t}function y(e,t){
return e.reduce(function(e,t,n){return t.catch(e.bind(null,n))}.bind(null,t),Promise.reject())}function b(e,t){return e.concat(t)}function S(){}function I(e){return null!=e}function M(e){return function(t){return t!=e}}function C(e,t,n){return n.indexOf(e)==t}function w(e,t){if(!t.length)return e;var n=t.map(function(e){return new u(e)});return e.map(function(e){return new u(e)}).map(function(e){return n.map(e.resolve.bind(e))}).reduce(b,[]).map(function(e){return e.toString()})}function D(e,t){
return{keySystem:e,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:t||[],keyIds:[]}}function P(e,t,n,i,a){var r,s=a in i;for(r in t){var o=a+"."+r,l=s?i[a]:n[r],u=!!{".abr.manager":!0}[o]||!!{serverCertificate:!0}[r];(s||r in e)&&(void 0===t[r]?void 0===l||s?delete e[r]:e[r]=l:u?e[r]=t[r]:"object"==typeof e[r]&&"object"==typeof t[r]?P(e[r],t[r],l,i,o):typeof t[r]==typeof l&&(e[r]=t[r]))}}
function T(e){return JSON.parse(JSON.stringify(e))}function x(){var e,t,n=new Promise(function(n,i){e=n,t=i});return n.resolve=e,n.reject=t,n}function E(e){this.f=!1,this.a=[],this.b=[],this.c=[],this.h=e||null}function N(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:0}}function L(e,t){return{uris:e,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:t}}function A(e,t,n){for(var i=0;i<e.length;++i)if(n(e[i],t))return i;return-1}
function k(){this.a={}}function _(){this.a=new k}function O(e,t,n,i){e.a&&(t=new U(t,n,i),e.a.push(n,t))}function j(e,t,n,i){O(e,t,n,function(e){this.ha(t,n),i(e)}.bind(e))}function R(e){if(e.a){var t,n=e.a,i=[];for(t in n.a)i.push.apply(i,n.a[t]);for(n=0;n<i.length;++n)i[n].ha();e.a.a={}}}function U(e,t,n){this.target=e,this.type=t,this.a=n,this.target.addEventListener(t,n,!1)}function z(e){return!e||!Object.keys(e).length}function B(e){return Object.keys(e).map(function(t){return e[t]})}
function F(e,t){return Object.keys(e).reduce(function(n,i){return n[i]=t(e[i],i),n},{})}function V(e,t){return Object.keys(e).every(function(n){return t(n,e[n])})}function Q(e){if(!e)return"";e=new Uint8Array(e),239==e[0]&&187==e[1]&&191==e[2]&&(e=e.subarray(3)),e=escape(G(e));try{return decodeURIComponent(e)}catch(e){throw new l(2,2,2004)}}function H(e,t){if(!e)return"";if(e.byteLength%2)throw new l(2,2,2004);if(e instanceof ArrayBuffer)var n=e;else{var i=new Uint8Array(e.byteLength)
;i.set(new Uint8Array(e)),n=i.buffer}var i=e.byteLength/2,a=new Uint16Array(i);n=new DataView(n);for(var r=0;r<i;r++)a[r]=n.getUint16(2*r,t);return G(a)}function W(e){var t=new Uint8Array(e);if(239==t[0]&&187==t[1]&&191==t[2])return Q(t);if(254==t[0]&&255==t[1])return H(t.subarray(2),!1);if(255==t[0]&&254==t[1])return H(t.subarray(2),!0);var n=function(e,t){return e.byteLength<=t||32<=e[t]&&126>=e[t]}.bind(null,t);if(!t[0]&&!t[2])return H(e,!1);if(!t[1]&&!t[3])return H(e,!0)
;if(n(0)&&n(1)&&n(2)&&n(3))return Q(e);throw new l(2,2,2003)}function Y(e){e=unescape(encodeURIComponent(e));for(var t=new Uint8Array(e.length),n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t.buffer}function G(e){for(var t="",n=0;n<e.length;n+=16e3)t+=String.fromCharCode.apply(null,e.subarray(n,n+16e3));return t}function K(e){this.a=null,this.b=function(){this.a=null,e()}.bind(this)}function q(e){e.cancel(),e.a=setTimeout(e.b,500)}function X(t,n){
var i=void 0==n||n,a=e.btoa(String.fromCharCode.apply(null,t)).replace(/\+/g,"-").replace(/\//g,"_");return i?a:a.replace(/=*$/,"")}function Z(t){t=e.atob(t.replace(/-/g,"+").replace(/_/g,"/"));for(var n=new Uint8Array(t.length),i=0;i<t.length;++i)n[i]=t.charCodeAt(i);return n}function J(t){for(var n=new Uint8Array(t.length/2),i=0;i<t.length;i+=2)n[i/2]=e.parseInt(t.substr(i,2),16);return n}function $(e){for(var t="",n=0;n<e.length;++n){var i=e[n].toString(16);1==i.length&&(i="0"+i),t+=i}
return t}function ee(e,t){if(!e&&!t)return!0;if(!e||!t||e.length!=t.length)return!1;for(var n=0;n<e.length;++n)if(e[n]!=t[n])return!1;return!0}function te(e,t,n,i){this.j=this.i=this.v=null,this.J=!1,this.b=null,this.f=new _,this.a=[],this.o=[],this.l=new x,this.ka=e,this.h=null,this.g=function(e){this.l.reject(e),t(e)}.bind(this),this.A={},this.Ba=n,this.la=i,this.B=new K(this.Id.bind(this)),this.ja=this.c=!1,this.G=[],this.ia=!1,this.P=setInterval(this.Hd.bind(this),1e3),
this.l.catch(function(){})}function ne(e,t){if(!e.i)return j(e.f,t,"encrypted",function(){this.g(new l(2,6,6010))}.bind(e)),Promise.resolve();e.j=t,j(e.f,e.j,"play",e.od.bind(e));var n=e.j.setMediaKeys(e.i),n=n.catch(function(e){return Promise.reject(new l(2,6,6003,e.message))}),i=null;return e.b.serverCertificate&&(i=e.i.setServerCertificate(e.b.serverCertificate).then(function(){}).catch(function(e){return Promise.reject(new l(2,6,6004,e.message))})),Promise.all([n,i]).then(function(){
if(this.c)return Promise.reject();ae(this),this.b.initData.length||this.o.length||O(this.f,this.j,"encrypted",this.dd.bind(this))}.bind(e)).catch(function(e){return this.c?Promise.resolve():Promise.reject(e)}.bind(e))}function ie(e,t){return Promise.all(t.map(function(e){return pe(this,e).then(function(e){if(e){for(var t=new x,n=0;n<this.a.length;n++)if(this.a[n].aa==e){this.a[n].ib=t;break}return Promise.all([e.remove(),t])}}.bind(this))}.bind(e)))}function ae(e){var t=e.b?e.b.initData:[]
;return t.forEach(function(e){he(this,e.initDataType,e.initData)}.bind(e)),e.o.forEach(function(e){pe(this,e)}.bind(e)),t.length||e.o.length||e.l.resolve(),e.l}function re(e){return e.a.map(function(e){return e.aa.sessionId})}function se(t,n,i,a,r){var s=ue(t);n.periods.forEach(function(t){t.variants.forEach(function(t){s&&(t.drmInfos=[s]),t.drmInfos.forEach(function(n){le(this,n),e.cast&&e.cast.__platform__&&"com.microsoft.playready"==n.keySystem&&(n.keySystem="com.chromecast.playready")
;var s=a[n.keySystem];s||(s={audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:"optional",persistentState:i?"required":"optional",sessionTypes:[i?"persistent-license":"temporary"],label:n.keySystem,drmInfos:[]},a[n.keySystem]=s,r.push(n.keySystem)),s.drmInfos.push(n),n.distinctiveIdentifierRequired&&(s.distinctiveIdentifier="required"),n.persistentStateRequired&&(s.persistentState="required");var o=[];t.video&&o.push(t.video),t.audio&&o.push(t.audio),o.forEach(function(e){
var t="video"==e.type?s.videoCapabilities:s.audioCapabilities,i=("video"==e.type?n.videoRobustness:n.audioRobustness)||"",a=e.mimeType;e.codecs&&(a+='; codecs="'+e.codecs+'"'),t.push({robustness:i,contentType:a})}.bind(this))}.bind(this))}.bind(this))}.bind(t))}function oe(e,t,n){if(1==n.length&&""==n[0])return Promise.reject(new l(2,6,6e3));var i=new x,a=i;return[!0,!1].forEach(function(e){n.forEach(function(n){var i=t[n];i.drmInfos.some(function(e){return!!e.licenseServerUri
})==e&&(i.audioCapabilities.length||delete i.audioCapabilities,i.videoCapabilities.length||delete i.videoCapabilities,a=a.catch(function(){return this.c?Promise.reject():navigator.requestMediaKeySystemAccess(n,[i])}.bind(this)))}.bind(this))}.bind(e)),a=a.catch(function(){return Promise.reject(new l(2,6,6001))}),a=a.then(function(e){if(this.c)return Promise.reject();var n=0<=navigator.userAgent.indexOf("Edge/"),i=e.getConfiguration()
;return this.v=(i.audioCapabilities||[]).concat(i.videoCapabilities||[]).map(function(e){return e.contentType}),n&&(this.v=null),n=t[e.keySystem],ce(this,e.keySystem,n,n.drmInfos),this.b.licenseServerUri?e.createMediaKeys():Promise.reject(new l(2,6,6012))}.bind(e)).then(function(e){if(this.c)return Promise.reject();this.i=e,this.J=!0}.bind(e)).catch(function(e){return this.c?Promise.resolve():(this.v=this.b=null,e instanceof l?Promise.reject(e):Promise.reject(new l(2,6,6002,e.message)))
}.bind(e)),i.reject(),a}function le(e,t){var n=t.keySystem;if(n){if(!t.licenseServerUri){var i=e.h.servers[n];i&&(t.licenseServerUri=i)}t.keyIds||(t.keyIds=[]),(n=e.h.advanced[n])&&(t.distinctiveIdentifierRequired||(t.distinctiveIdentifierRequired=n.distinctiveIdentifierRequired),t.persistentStateRequired||(t.persistentStateRequired=n.persistentStateRequired),t.videoRobustness||(t.videoRobustness=n.videoRobustness),t.audioRobustness||(t.audioRobustness=n.audioRobustness),
t.serverCertificate||(t.serverCertificate=n.serverCertificate))}}function ue(t){if(z(t.h.clearKeys))return null;var n,i=[],a=[];for(n in t.h.clearKeys){var r=t.h.clearKeys[n],s=J(n),r=J(r),s={kty:"oct",kid:X(s,!1),k:X(r,!1)};i.push(s),a.push(s.kid)}return t=JSON.stringify({keys:i}),a=JSON.stringify({kids:a}),a=[{initData:new Uint8Array(Y(a)),initDataType:"keyids"}],{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+e.btoa(t),distinctiveIdentifierRequired:!1,
persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:a,keyIds:[]}}function ce(e,t,n,i){var a=[],r=[],s=[],o=[];de(i,a,r,s,o),e.b={keySystem:t,licenseServerUri:a[0],distinctiveIdentifierRequired:"required"==n.distinctiveIdentifier,persistentStateRequired:"required"==n.persistentState,audioRobustness:n.audioCapabilities?n.audioCapabilities[0].robustness:"",videoRobustness:n.videoCapabilities?n.videoCapabilities[0].robustness:"",serverCertificate:r[0],
initData:s,keyIds:o}}function de(e,t,n,i,a){function r(e,t){return!(!e.keyId||e.keyId!=t.keyId)||e.initDataType==t.initDataType&&ee(e.initData,t.initData)}e.forEach(function(e){if(-1==t.indexOf(e.licenseServerUri)&&t.push(e.licenseServerUri),e.serverCertificate&&-1==A(n,e.serverCertificate,ee)&&n.push(e.serverCertificate),e.initData&&e.initData.forEach(function(e){-1==A(i,e,r)&&i.push(e)}),e.keyIds)for(var s=0;s<e.keyIds.length;++s)-1==a.indexOf(e.keyIds[s])&&a.push(e.keyIds[s])})}
function pe(e,t){try{var n=e.i.createSession("persistent-license")}catch(t){var i=new l(2,6,6005,t.message);return e.g(i),Promise.reject(i)}O(e.f,n,"message",e.ic.bind(e)),O(e.f,n,"keystatuseschange",e.cc.bind(e));var a={initData:null,aa:n,loaded:!1,xb:1/0,ib:null};return e.a.push(a),n.load(t).then(function(e){if(!this.c){if(e)return a.loaded=!0,this.a.every(function(e){return e.loaded})&&this.l.resolve(),n;this.a.splice(this.a.indexOf(a),1),this.g(new l(2,6,6013))}}.bind(e),function(e){
this.c||(this.a.splice(this.a.indexOf(a),1),this.g(new l(2,6,6005,e.message)))}.bind(e))}function he(e,t,n){try{var i=e.ja?e.i.createSession("persistent-license"):e.i.createSession()}catch(t){return void e.g(new l(2,6,6005,t.message))}O(e.f,i,"message",e.ic.bind(e)),O(e.f,i,"keystatuseschange",e.cc.bind(e)),e.a.push({initData:n,aa:i,loaded:!1,xb:1/0,ib:null}),i.generateRequest(t,n.buffer).catch(function(e){if(!this.c){for(var t=0;t<this.a.length;++t)if(this.a[t].aa==i){this.a.splice(t,1);break}
this.g(new l(2,6,6006,e.message))}}.bind(e))}function fe(e,t){for(var n,i=t.target,a=0;a<e.a.length;a++)if(e.a[a].aa==i){n=e.a[a].ib;break}a=L([e.b.licenseServerUri],e.h.retryParameters),a.body=t.message,a.method="POST","com.microsoft.playready"==e.b.keySystem&&ve(a),e.ka.request(2,a).then(function(e){return this.c?Promise.reject():i.update(e.data).then(function(){n&&n.resolve()})}.bind(e),function(e){if(this.c)return Promise.resolve();e=new l(2,6,6007,e),this.g(e),n&&n.reject(e)
}.bind(e)).catch(function(e){if(this.c)return Promise.resolve();e=new l(2,6,6008,e.message),this.g(e),n&&n.reject(e)}.bind(e))}function ve(e){var t=String.fromCharCode.apply(null,new Uint8Array(e.body));if(t.indexOf("<PlayReadyKeyMessage"))e.headers["Content-Type"]="text/xml; charset=utf-8";else{
for(var t=H(e.body,!0),t=(new DOMParser).parseFromString(t,"application/xml"),n=t.getElementsByTagName("HttpHeader"),i=0;i<n.length;++i)e.headers[n[i].querySelector("name").textContent]=n[i].querySelector("value").textContent;e.body=Z(t.querySelector("Challenge").textContent).buffer}}function me(){var e=[],t=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],n=[{videoCapabilities:t,persistentState:"required",sessionTypes:["persistent-license"]},{
videoCapabilities:t}],i={};return"org.w3.clearkey com.widevine.alpha com.microsoft.playready com.apple.fps.2_0 com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" ").forEach(function(t){var a=navigator.requestMediaKeySystemAccess(t,n).then(function(e){var n=e.getConfiguration().sessionTypes;return i[t]={persistentState:!!n&&0<=n.indexOf("persistent-license")},e.createMediaKeys()}).catch(function(){i[t]=null});e.push(a)}),Promise.all(e).then(function(){return i})}function ge(e,t){
var n=e.keySystem();return!t.drmInfos.length||t.drmInfos.some(function(e){return e.keySystem==n})}function ye(e,t){if(!e.length)return t;if(!t.length)return e;for(var n=[],i=0;i<e.length;i++)for(var a=0;a<t.length;a++)if(e[i].keySystem==t[a].keySystem){var r=e[i],a=t[a],s=[],s=s.concat(r.initData||[]),s=s.concat(a.initData||[]),o=[],o=o.concat(r.keyIds),o=o.concat(a.keyIds);n.push({keySystem:r.keySystem,licenseServerUri:r.licenseServerUri||a.licenseServerUri,
distinctiveIdentifierRequired:r.distinctiveIdentifierRequired||a.distinctiveIdentifierRequired,persistentStateRequired:r.persistentStateRequired||a.persistentStateRequired,videoRobustness:r.videoRobustness||a.videoRobustness,audioRobustness:r.audioRobustness||a.audioRobustness,serverCertificate:r.serverCertificate||a.serverCertificate,initData:s,keyIds:o});break}return n}function be(e){this.f=null,this.c=e,this.h=0,this.g=1/0,this.a=this.b=null}function Se(e,t){ps[e]=t.length?we.bind(null,t):t}
function Ie(e,t,n){return e>=t?null:new VTTCue(e,t,n)}function Me(e,t,n,i){return Promise.resolve().then(function(){if(this.c)if(null==n||null==i)this.f.parseInit(t);else{for(var e=this.f.parseMedia(t,{periodStart:this.h,segmentStart:n,segmentEnd:i}),a=0;a<e.length&&!(e[a].startTime>=this.g);++a)this.c.addCue(e[a]);null==this.b&&(this.b=n),this.a=Math.min(i,this.g)}}.bind(e))}function Ce(e,t){for(var n=e.c.cues,i=[],a=0;a<n.length;++a)t(n[a])&&i.push(n[a])
;for(a=0;a<i.length;++a)e.c.removeCue(i[a])}function we(e){this.Na=e}function De(e){return!e||1==e.length&&1e-6>e.end(0)-e.start(0)?null:e.length?e.end(e.length-1):null}function Pe(e,t){return!(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0))&&(t>=e.start(0)&&t<=e.end(e.length-1))}function Te(e,t){if(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0))return 0;for(var n=0,i=e.length-1;0<=i&&e.end(i)>t;--i)n+=e.end(i)-Math.max(e.start(i),t);return n}function xe(e,t,n){this.f=e,this.N=t,
this.i=n,this.c={},this.a=null,this.b={},this.g=new _,this.h=!1}function Ee(){var e={}
;return'video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hvc1.1.6.L93.90",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="av1",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",video/mp2t; codecs="mp4a.40.2",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").forEach(function(t){
e[t]=!!ps[t]||MediaSource.isTypeSupported(t);var n=t.split(";")[0];e[n]=e[n]||e[t]}),e}function Ne(e,t){e.a||(e.a=new be(e.i)),e.a.f=new ps[t]}function Le(e,t){if("text"==t)var n=e.a.b;else n=Ae(e,t),n=!n||1==n.length&&1e-6>n.end(0)-n.start(0)?null:1==n.length&&0>n.start(0)?0:n.length?n.start(0):null;return n}function Ae(e,t){try{return e.c[t].buffered}catch(e){return null}}function ke(e,t,n,i,a){return"text"==t?Me(e.a,n,i,a):je(e,t,e.ge.bind(e,t,n))}function _e(e,t){
return"text"==t?e.a.remove(0,1/0):je(e,t,e.oc.bind(e,t,0,e.N.duration))}function Oe(e,t,n,i){return"text"==t?(e.a.h=n,null!=i&&(e.a.g=i),Promise.resolve()):(null==i&&(i=1/0),Promise.all([je(e,t,e.Cc.bind(e,t)),je(e,t,e.Xd.bind(e,t,n)),je(e,t,e.Vd.bind(e,t,i))]))}function je(e,t,n){if(e.h)return Promise.reject();if(n={start:n,p:new x},e.b[t].push(n),1==e.b[t].length)try{n.start()}catch(i){"QuotaExceededError"==i.name?n.p.reject(new l(2,3,3017,t)):n.p.reject(new l(2,3,3015,i)),Ue(e,t)}return n.p}
function Re(e,t){if(e.h)return Promise.reject();var n,i=[];for(n in e.c){var a=new x,r={start:function(e){e.resolve()}.bind(null,a),p:a};e.b[n].push(r),i.push(a),1==e.b[n].length&&r.start()}return Promise.all(i).then(function(){var e;try{t()}catch(e){var n=Promise.reject(new l(2,3,3015,e))}for(e in this.c)Ue(this,e);return n}.bind(e),function(){return Promise.reject()}.bind(e))}function Ue(e,t){e.b[t].shift();var n=e.b[t][0];if(n)try{n.start()}catch(i){n.p.reject(new l(2,3,3015,i)),Ue(e,t)}}
function ze(e,t,n){return n==t||e>=hs&&n==t.split("-")[0]||e>=fs&&n.split("-")[0]==t.split("-")[0]}function Be(e){e=e.toLowerCase().split("-");var t=vs[e[0]];return t&&(e[0]=t),e.join("-")}function Fe(e,t,n){var i=e.video;return!(i&&(i.width<t.minWidth||i.width>t.maxWidth||i.width>n.width||i.height<t.minHeight||i.height>t.maxHeight||i.height>n.height||i.width*i.height<t.minPixels||i.width*i.height>t.maxPixels)||e.bandwidth<t.minBandwidth||e.bandwidth>t.maxBandwidth)}function Ve(e,t,n){var i=!1
;return e.variants.forEach(function(e){var a=e.allowedByApplication;e.allowedByApplication=Fe(e,t,n),a!=e.allowedByApplication&&(i=!0)}),i}function Qe(e,t,n){var i=t.video,a=t.audio;for(t=0;t<n.variants.length;++t){var r=n.variants[t],s=e,o=a,l=i;(s&&s.J&&!ge(s,r)?0:He(r.audio,s,o)&&He(r.video,s,l))||(n.variants.splice(t,1),--t)}for(t=0;t<n.textStreams.length;++t)e=n.textStreams[t],ps[et(e.mimeType,e.codecs)]||(n.textStreams.splice(t,1),--t)}function He(e,t,n){if(!e)return!0;var i=null
;return t&&t.J&&(i=t.v),t=et(e.mimeType,e.codecs),!(!ps[t]&&!MediaSource.isTypeSupported(t)||i&&e.encrypted&&0>i.indexOf(t)||n&&(e.mimeType!=n.mimeType||e.codecs.split(".")[0]!=n.codecs.split(".")[0]))}function We(e,t,n){return qe(e.variants).map(function(e){var i;i=e.video&&e.audio?n==e.video.id&&t==e.audio.id:e.video&&n==e.video.id||e.audio&&t==e.audio.id;var a="";e.video&&(a+=e.video.codecs),e.audio&&(""!=a&&(a+=", "),a+=e.audio.codecs)
;var r=e.audio?e.audio.codecs:null,s=e.video?e.video.codecs:null,o=null;e.video?o=e.video.mimeType:e.audio&&(o=e.audio.mimeType);var l=null;return e.audio?l=e.audio.kind:e.video&&(l=e.video.kind),{id:e.id,active:i,type:"variant",bandwidth:e.bandwidth,language:e.language,kind:l||null,width:e.video?e.video.width:null,height:e.video?e.video.height:null,frameRate:e.video?e.video.frameRate:void 0,mimeType:o,codecs:a,audioCodec:r,videoCodec:s,primary:e.primary}})}function Ye(e,t){
return e.textStreams.map(function(e){return{id:e.id,active:t==e.id,type:"text",language:e.language,kind:e.kind,mimeType:e.mimeType,codecs:e.codecs||null,audioCodec:null,videoCodec:null,primary:e.primary}})}function Ge(e,t){for(var n=0;n<e.variants.length;n++)if(e.variants[n].id==t.id)return e.variants[n];return null}function Ke(e,t){for(var n=0;n<e.textStreams.length;n++)if(e.textStreams[n].id==t.id)return e.textStreams[n];return null}function qe(e){return e.filter(function(e){
return e.allowedByApplication&&e.allowedByKeySystem})}function Xe(e,t,n){var i=qe(e.variants),a=i.filter(function(e){return e.language==i[0].language});if(e=i.filter(function(e){return e.primary}),e.length&&(a=e),t){var r=Be(t);[fs,hs,0].forEach(function(e){var t=!1;i.forEach(function(i){r=Be(r);var s=Be(i.language);ze(e,r,s)&&(t?a.push(i):(a=[i],t=!0),n&&(n.audio=!0))})})}return a}function Ze(e,t,n){var i=e.textStreams,a=i;if(e=i.filter(function(e){return e.primary}),e.length&&(a=e),t){
var r=Be(t);[fs,hs,0].forEach(function(e){var t=!1;i.forEach(function(i){var s=Be(i.language);ze(e,r,s)&&(t?a.push(i):(a=[i],t=!0),n&&(n.text=!0))})})}return a}function Je(e,t,n){for(var i=0;i<n.length;i++)if(n[i].audio==e&&n[i].video==t)return n[i];return null}function $e(e,t,n){function i(e,t){return null==e?null==t:t.id==e}for(var a=0;a<n.length;a++)if(i(e,n[a].audio)&&i(t,n[a].video))return n[a];return null}function et(e,t){var n=e;return t&&(n+='; codecs="'+t+'"'),n}function tt(e,t){
for(var n=e.periods.length-1;0<n;--n)if(t>=e.periods[n].startTime)return n;return 0}function nt(e,t){for(var n=0;n<e.periods.length;++n){var i=e.periods[n];if("text"==t.type){for(var a=0;a<i.textStreams.length;++a)if(i.textStreams[a]==t)return n}else for(a=0;a<i.variants.length;++a){var r=i.variants[a];if(r.audio==t||r.video==t||r.video&&r.video.trickModeVideo==t)return n}}return-1}function it(){this.f=null,this.b=!1,this.a=new s,this.h=[],this.g=[],this.j=!1,this.c=null,this.i={minWidth:0,
maxWidth:1/0,minHeight:0,maxHeight:1/0,minPixels:0,maxPixels:1/0,minBandwidth:0,maxBandwidth:1/0}}function at(e,t){return t.filter(function(t){return Fe(t,e,{width:1/0,height:1/0})}).sort(function(e,t){return e.bandwidth-t.bandwidth})}function rt(t,n){var i,a=n||{};for(i in a)this[i]=a[i];this.defaultPrevented=this.cancelable=this.bubbles=!1,this.timeStamp=e.performance&&e.performance.now?e.performance.now():Date.now(),this.type=t,this.isTrusted=!1,this.target=this.currentTarget=null,this.a=!1}
function st(e){return JSON.stringify(e,function(e,t){if("manager"!=e&&"function"!=typeof t){if(t instanceof Event||t instanceof rt){var n,i={};for(n in t){var a=t[n];a&&"object"==typeof a||n in Event||(i[n]=a)}return i}if(t instanceof TimeRanges)for(i={__type__:"TimeRanges",length:t.length,start:[],end:[]},n=0;n<t.length;++n)i.start.push(t.start(n)),i.end.push(t.end(n));else i="number"==typeof t?isNaN(t)?"NaN":isFinite(t)?t:0>t?"-Infinity":"Infinity":t;return i}})}function ot(e){
return JSON.parse(e,function(e,t){return"NaN"==t?NaN:"-Infinity"==t?-(1/0):"Infinity"==t?1/0:t&&"object"==typeof t&&"TimeRanges"==t.__type__?lt(t):t})}function lt(e){return{length:e.length,start:function(t){return e.start[t]},end:function(t){return e.end[t]}}}function ut(e,t,n,i,a){this.J=e,this.l=t,this.B=n,this.G=i,this.v=a,this.c=this.j=this.h=!1,this.A="",this.a=this.i=null,this.b={video:{},player:{}},this.o=0,this.f={},this.g=null}function ct(e){for(var t in e.f){var n=e.f[t];delete e.f[t],
n.reject(new l(1,7,7e3))}}function dt(e,t){var n=st(t);e.a.sendMessage("urn:x-cast:com.google.shaka.v2",n,function(){},o)}function pt(){this.lb=new k,this.Ta=this}function ht(e,t,n){pt.call(this),this.c=e,this.b=t,this.h=this.f=this.g=this.i=this.j=null,this.a=new ut(n,this.ce.bind(this),this.de.bind(this),this.ee.bind(this),this.Tb.bind(this)),ft(this)}function ft(e){e.a.init(),e.h=new _,ms.forEach(function(e){O(this.h,this.c,e,this.re.bind(this))}.bind(e)),Ss.forEach(function(e){
O(this.h,this.b,e,this.Gd.bind(this))}.bind(e)),e.j={};for(var t in e.c)Object.defineProperty(e.j,t,{configurable:!1,enumerable:!0,get:e.qe.bind(e,t),set:e.se.bind(e,t)});e.i={};for(t in e.b)Object.defineProperty(e.i,t,{configurable:!1,enumerable:!0,get:e.Fd.bind(e,t)});e.g=new pt,e.g.Ta=e.j,e.f=new pt,e.f.Ta=e.i}function vt(e,t,n,i){pt.call(this),this.a=e,this.b=t,this.j={video:e,player:t},this.l=n||function(){},this.o=i||function(e){return e},this.i=!1,this.f=!0,this.h=this.g=this.c=null,
mt(this)}function mt(t){var n=cast.receiver.CastReceiverManager.getInstance();n.onSenderConnected=t.hc.bind(t),n.onSenderDisconnected=t.hc.bind(t),n.onSystemVolumeChanged=t.Kc.bind(t),t.g=n.getCastMessageBus("urn:x-cast:com.google.cast.media"),t.g.onMessage=t.fd.bind(t),t.c=n.getCastMessageBus("urn:x-cast:com.google.shaka.v2"),t.c.onMessage=t.td.bind(t),n.start(),ms.forEach(function(e){this.a.addEventListener(e,this.kc.bind(this,"video"))}.bind(t)),Ss.forEach(function(e){
this.b.addEventListener(e,this.kc.bind(this,"player"))}.bind(t)),cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?t.b.Hb(3840,2160):t.b.Hb(1920,1080),t.b.addEventListener("loading",function(){this.f=!1,gt(this)}.bind(t)),t.a.addEventListener("playing",function(){this.f=!1,gt(this)}.bind(t)),t.a.addEventListener("pause",function(){gt(this)}.bind(t)),t.b.addEventListener("unloading",function(){this.f=!0,gt(this)}.bind(t)),
t.a.addEventListener("ended",function(){e.setTimeout(function(){this.a&&this.a.ended&&(this.f=!0,gt(this))}.bind(this),5e3)}.bind(t))}function gt(e){Promise.resolve().then(function(){this.dispatchEvent(new rt("caststatuschanged")),St(this,0)}.bind(e))}function yt(e,t,n){for(var i in t.player)e.b[i](t.player[i]);e.l(n),n=Promise.resolve();var a=e.a.autoplay;t.manifest&&(e.a.autoplay=!1,n=e.b.load(t.manifest,t.startTime),n.catch(function(e){this.b.dispatchEvent(new rt("error",{detail:e}))
}.bind(e))),n.then(function(){var e;for(e in t.video){var n=t.video[e];this.a[e]=n}for(e in t.playerAfterLoad)n=t.playerAfterLoad[e],this.b[e](n);this.a.autoplay=a,t.manifest&&(this.a.play(),St(this,0))}.bind(e))}function bt(e,t,n,i){e.i&&(e=st(t),i?n.getCastChannel(i).send(e):n.broadcast(e))}function St(e,t,n){var i=Ps,i={mediaSessionId:0,playbackRate:e.a.playbackRate,playerState:e.f?i.IDLE:e.b.ka?i.yc:e.a.paused?i.zc:i.Ac,currentTime:e.a.currentTime,supportedMediaCommands:15,volume:{
level:e.a.volume,muted:e.a.muted}};n&&(i.media=n),bt(e,{requestId:t,type:"MEDIA_STATUS",status:[i]},e.g)}function It(e,t){var n=Mt(e,t);return 1!=n.length?null:n[0]}function Mt(e,t){return Array.prototype.filter.call(e.childNodes,function(e){return e.tagName==t})}function Ct(e){var t=e.firstChild;return t&&t.nodeType==Node.TEXT_NODE?e.textContent.trim():null}function wt(e,t,n,i){var a=null;return e=e.getAttribute(t),null!=e&&(a=n(e)),null==a?void 0!=i?i:null:a}function Dt(e){
return e?(e=Date.parse(e),isNaN(e)?null:Math.floor(e/1e3)):null}function Pt(e){return e&&(e=/^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$/.exec(e))?(e=31536e3*Number(e[1]||null)+2592e3*Number(e[2]||null)+86400*Number(e[3]||null)+3600*Number(e[4]||null)+60*Number(e[5]||null)+Number(e[6]||null),isFinite(e)?e:null):null}function Tt(e){var t=/([0-9]+)-([0-9]+)/.exec(e);return t?(e=Number(t[1]),isFinite(e)?(t=Number(t[2]),isFinite(t)?{start:e,end:t
}:null):null):null}function xt(e){return e=Number(e),e%1?null:e}function Et(e){return e=Number(e),!(e%1)&&0<e?e:null}function Nt(e){return e=Number(e),!(e%1)&&0<=e?e:null}function Lt(e){var t;return e=(t=e.match(/^(\d+)\/(\d+)$/))?Number(t[1]/t[2]):Number(e),isNaN(e)?null:e}function At(e,t,n){e=Ot(e);var i=null,a=null,r=[],s=[],o=e.map(function(e){return e.keyId}).filter(I);if(0<o.length&&(a=o[0],o.some(M(a))))throw new l(2,4,4010);return n||(s=e.filter(function(e){
return"urn:mpeg:dash:mp4protection:2011"!=e.qc||(i=e.init||i,!1)}),0<s.length&&(r=_t(i,t,s),r.length||(r=[D("",i)]))),0<e.length&&(n||!s.length)&&(r=B(Ts).map(function(e){return D(e,i)})),a&&r.forEach(function(e){e.initData.forEach(function(e){e.keyId=a})}),{Qb:a,xe:i,drmInfos:r,Sb:!0}}function kt(e,t,n,i){var a=At(e,t,i);if(n.Sb)e=1==n.drmInfos.length&&!n.drmInfos[0].keySystem,t=!a.drmInfos.length,(!n.drmInfos.length||e&&!t)&&(n.drmInfos=a.drmInfos),
n.Sb=!1;else if(0<a.drmInfos.length&&(n.drmInfos=n.drmInfos.filter(function(e){return a.drmInfos.some(function(t){return t.keySystem==e.keySystem})}),!n.drmInfos.length))throw new l(2,4,4008);return a.Qb||n.Qb}function _t(e,t,n){return n.map(function(n){var i=Ts[n.qc];return i?[D(i,n.init||e)]:t(n.node)||[]}).reduce(b,[])}function Ot(e){return e.map(function(e){var t=e.getAttribute("schemeIdUri"),n=e.getAttribute("cenc:default_KID"),i=Mt(e,"cenc:pssh").map(Ct);if(!t)return null
;if(t=t.toLowerCase(),n&&(n=n.replace(/-/g,"").toLowerCase(),0<=n.indexOf(" ")))throw new l(2,4,4009);var a=[];try{a=i.map(function(e){return{initDataType:"cenc",initData:Z(e),keyId:null}})}catch(e){throw new l(2,4,4007)}return{node:e,qc:t,keyId:n,init:0<a.length?a:null}}).filter(I)}function jt(t,n,i,a,r){null!=r&&(r=Math.round(r));var s={RepresentationID:n,Number:i,Bandwidth:a,Time:r};return t.replace(/\$(RepresentationID|Number|Bandwidth|Time)?(?:%0([0-9]+)d)?\$/g,function(t,n,i){
if("$$"==t)return"$";var a=s[n];return null==a?t:("RepresentationID"==n&&i&&(i=void 0),t=a.toString(),i=e.parseInt(i,10)||1,Array(Math.max(0,i-t.length)+1).join("0")+t)})}function Rt(e,t){var n=Ut(e,t,"timescale"),i=1;n&&(i=Et(n)||1),n=Ut(e,t,"duration"),(n=Et(n||""))&&(n/=i);var a=Ut(e,t,"startNumber"),r=Ut(e,t,"presentationTimeOffset"),s=Nt(a||"");null!=a&&null!=s||(s=1);var o=zt(e,t,"SegmentTimeline"),a=null;if(o){
for(var a=i,l=Number(r),u=e.R.duration||1/0,o=Mt(o,"S"),c=[],d=0,p=0;p<o.length;++p){var h=o[p],f=wt(h,"t",Nt),v=wt(h,"d",Nt),h=wt(h,"r",xt);if(null!=f&&(f-=l),!v)break;if(f=null!=f?f:d,0>(h=h||0))if(p+1<o.length){if(null==(h=wt(o[p+1],"t",Nt)))break;if(f>=h)break;h=Math.ceil((h-f)/v)-1}else{if(1/0==u)break;if(f/a>=u)break;h=Math.ceil((u*a-f)/v)-1}0<c.length&&f!=d&&(c[c.length-1].end=f/a);for(var m=0;m<=h;++m)d=f+v,c.push({start:f/a,end:d/a,oe:f}),f=d}a=c}return{timescale:i,O:n,ya:s,
presentationTimeOffset:Number(r)/i||0,Nb:Number(r),F:a}}function Ut(e,t,n){return[t(e.w),t(e.S),t(e.T)].filter(I).map(function(e){return e.getAttribute(n)}).reduce(function(e,t){return e||t})}function zt(e,t,n){return[t(e.w),t(e.S),t(e.T)].filter(I).map(function(e){return It(e,n)}).reduce(function(e,t){return e||t})}function Bt(e,t,n){this.a=e,this.X=t,this.M=n}function Ft(e,t,n,i,a,r){this.position=e,this.startTime=t,this.endTime=n,this.a=i,this.X=a,this.M=r}function Vt(e,t){this.H=e,
this.a=t==xs,this.u=0}function Qt(){throw new l(2,3,3e3)}function Ht(){this.b=[],this.a=[]}function Wt(e){for(;e.s.Z();)e.Na.eb(e.start,e.s)}function Yt(e){for(var t=e.s.D();0<t;--t)e.Na.eb(e.start,e.s)}function Gt(e){return function(t){e(t.s.Ja(t.s.H.byteLength-t.s.u))}}function Kt(e){for(var t=0,n=0;n<e.length;n++)t=t<<8|e.charCodeAt(n);return t}function qt(e,t,n,i){var a,r=(new Ht).ca("sidx",function(e){a=Xt(t,i,n,e)});if(e&&r.parse(e),a)return a;throw new l(2,3,3004)}function Xt(e,t,n,i){
var a=[];i.s.I(4);var r=i.s.D();if(!r)throw new l(2,3,3005);if(i.version)var s=i.s.Pa(),o=i.s.Pa();else s=i.s.D(),o=i.s.D();i.s.I(2);var u=i.s.mc();for(t=s-t,e=e+i.size+o,o=0;o<u;o++){var c=i.s.D();s=(2147483648&c)>>>31;var c=2147483647&c,d=i.s.D();if(i.s.I(4),1==s)throw new l(2,3,3006);a.push(new Ft(a.length,t/r,(t+d)/r,function(){return n},e,e+c-1)),t+=d,e+=c}return a}function Zt(e){this.a=e}function Jt(e,t){if(e.a.length){var n=e.a[e.a.length-1]
;n.startTime>t||(e.a[e.a.length-1]=new Ft(n.position,n.startTime,t,n.a,n.X,n.M))}}function $t(e){this.b=e,this.a=new Vt(e,0),Es||(Es=[new Uint8Array([255]),new Uint8Array([127,255]),new Uint8Array([63,255,255]),new Uint8Array([31,255,255,255]),new Uint8Array([15,255,255,255,255]),new Uint8Array([7,255,255,255,255,255]),new Uint8Array([3,255,255,255,255,255,255]),new Uint8Array([1,255,255,255,255,255,255,255])])}function en(e){var t=tn(e);if(7<t.length)throw new l(2,3,3002)
;for(var n=0,i=0;i<t.length;i++)n=256*n+t[i];t=n,n=tn(e);e:{for(i=0;i<Es.length;i++)if(ee(n,Es[i])){i=!0;break e}i=!1}if(i)n=e.b.byteLength-e.a.u;else{if(8==n.length&&224&n[1])throw new l(2,3,3001);for(var i=n[0]&(1<<8-n.length)-1,a=1;a<n.length;a++)i=256*i+n[a];n=i}return n=e.a.u+n<=e.b.byteLength?n:e.b.byteLength-e.a.u,i=new DataView(e.b.buffer,e.b.byteOffset+e.a.u,n),e.a.I(n),new nn(t,i)}function tn(e){var t,n=e.a.Cb();for(t=1;8>=t&&!(n&1<<8-t);t++);if(8<t)throw new l(2,3,3002)
;var i=new Uint8Array(t);for(i[0]=n,n=1;n<t;n++)i[n]=e.a.Cb();return i}function nn(e,t){this.id=e,this.a=t}function an(e){if(8<e.a.byteLength)throw new l(2,3,3002);if(8==e.a.byteLength&&224&e.a.getUint8(0))throw new l(2,3,3001);for(var t=0,n=0;n<e.a.byteLength;n++)var i=e.a.getUint8(n),t=256*t+i;return t}function rn(){}function sn(e,t,n,i,a,r){function s(){return a}var o=[];e=new $t(e.a);for(var l=-1,u=-1;e.Z();){var c=en(e);if(187==c.id){var d=on(c);d&&(c=n*(d.pe-r),d=t+d.Ld,
0<=l&&o.push(new Ft(o.length,l,c,s,u,d-1)),l=c,u=d)}}return 0<=l&&o.push(new Ft(o.length,l,i,s,u,null)),o}function on(e){var t=new $t(e.a);if(e=en(t),179!=e.id)throw new l(2,3,3013);if(e=an(e),t=en(t),183!=t.id)throw new l(2,3,3012);for(var t=new $t(t.a),n=0;t.Z();){var i=en(t);if(241==i.id){n=an(i);break}}return{pe:e,Ld:n}}function ln(e,t){var n=zt(e,t,"Initialization");if(!n)return null;var i=e.w.U,a=n.getAttribute("sourceURL");a&&(i=w(e.w.U,[a]));var a=0,r=null
;return(n=wt(n,"range",Tt))&&(a=n.start,r=n.end),new Bt(function(){return i},a,r)}function un(e,t){var n=Ut(e,dn,"presentationTimeOffset"),i=ln(e,dn),a=Number(n),r=e.w.contentType,s=e.w.mimeType.split("/")[1];if("text"!=r&&"mp4"!=s&&"webm"!=s)throw new l(2,4,4006);if("webm"==s&&!i)throw new l(2,4,4005);var r=zt(e,dn,"RepresentationIndex"),o=Ut(e,dn,"indexRange"),u=e.w.U,o=Tt(o||"");if(r){var c=r.getAttribute("sourceURL");c&&(u=w(e.w.U,[c])),o=wt(r,"range",Tt,o)}if(!o)throw new l(2,4,4002)
;return a=cn(e,t,i,u,o.start,o.end,s,a),{createSegmentIndex:a.createSegmentIndex,findSegmentPosition:a.findSegmentPosition,getSegmentReference:a.getSegmentReference,initSegmentReference:i,presentationTimeOffset:Number(n)||0}}function cn(e,t,n,i,a,r,s,o){var l=e.presentationTimeline,u=!e.Ca||!e.R.sb,c=e.R.duration,d=t,p=null;return{createSegmentIndex:function(){var e=[d(i,a,r),"webm"==s?d(n.a(),n.X,n.M):null];return d=null,Promise.all(e).then(function(e){var t=e[0];e=e[1]||null,
t="mp4"==s?qt(t,a,i,o):(new rn).parse(t,e,i,o),l.Ga(0,t),p=new Zt(t),u&&Jt(p,c)})},findSegmentPosition:function(e){return p.find(e)},getSegmentReference:function(e){return p.get(e)}}}function dn(e){return e.Qa}function pn(e,t){var n=ln(e,hn),i=vn(e),a=Rt(e,hn),r=a.ya;r||(r=1);var s=0;if(a.O?s=a.O*(r-1):a.F&&0<a.F.length&&(s=a.F[0].start),i={O:a.O,startTime:s,ya:r,presentationTimeOffset:a.presentationTimeOffset,F:a.F,Fa:i},!i.O&&!i.F&&1<i.Fa.length)throw new l(2,4,4002)
;if(!i.O&&!e.R.duration&&!i.F&&1==i.Fa.length)throw new l(2,4,4002);if(i.F&&!i.F.length)throw new l(2,4,4002);return r=a=null,e.T.id&&e.w.id&&(r=e.T.id+","+e.w.id,a=t[r]),s=fn(e.R.duration,i.ya,e.w.U,i),a?(a.vb(s),a.ob(e.presentationTimeline.ma()-e.R.start)):(e.presentationTimeline.Ga(0,s),a=new Zt(s),r&&e.Ca&&(t[r]=a)),e.Ca&&e.R.sb||Jt(a,e.R.duration),{createSegmentIndex:Promise.resolve.bind(Promise),findSegmentPosition:a.find.bind(a),getSegmentReference:a.get.bind(a),initSegmentReference:n,
presentationTimeOffset:i.presentationTimeOffset}}function hn(e){return e.oa}function fn(e,t,n,i){var a=i.Fa.length;i.F&&i.F.length!=i.Fa.length&&(a=Math.min(i.F.length,i.Fa.length));for(var r=[],s=i.startTime,o=0;o<a;o++){var l=i.Fa[o],u=w(n,[l.ad]),c=null!=i.O?s+i.O:i.F?i.F[o].end:s+e;r.push(new Ft(o+t,s,c,function(e){return e}.bind(null,u),l.start,l.end)),s=c}return r}function vn(e){return[e.w.oa,e.S.oa,e.T.oa].filter(I).map(function(e){return Mt(e,"SegmentURL")}).reduce(function(e,t){
return 0<e.length?e:t}).map(function(t){t.getAttribute("indexRange")&&!e.Yb&&(e.Yb=!0);var n=t.getAttribute("media");return t=wt(t,"mediaRange",Tt,{start:0,end:null}),{ad:n,start:t.start,end:t.end}})}function mn(e,t,n,i){var a=Sn(e),r=Rt(e,gn),s=Ut(e,gn,"media"),o=Ut(e,gn,"index");if(r={O:r.O,timescale:r.timescale,ya:r.ya,presentationTimeOffset:r.presentationTimeOffset,Nb:r.Nb,F:r.F,ub:s,La:o},s=0+(r.La?1:0),s+=r.F?1:0,!(s+=r.O?1:0))throw new l(2,4,4002);if(1!=s&&(r.La&&(r.F=null),r.O=null),
!r.La&&!r.ub)throw new l(2,4,4002);if(r.La){if("mp4"!=(n=e.w.mimeType.split("/")[1])&&"webm"!=n)throw new l(2,4,4006);if("webm"==n&&!a)throw new l(2,4,4005);i=jt(r.La,e.w.id,null,e.bandwidth||null,null),i=w(e.w.U,[i]),e=cn(e,t,a,i,0,null,n,r.presentationTimeOffset)}else r.O?(i||e.presentationTimeline.wb(r.O),e=yn(e,r)):(i=t=null,e.T.id&&e.w.id&&(i=e.T.id+","+e.w.id,t=n[i]),s=bn(e,r),t?(t.vb(s),t.ob(e.presentationTimeline.ma()-e.R.start)):(e.presentationTimeline.Ga(0,s),t=new Zt(s),
i&&e.Ca&&(n[i]=t)),e.Ca&&e.R.sb||Jt(t,e.R.duration),e={createSegmentIndex:Promise.resolve.bind(Promise),findSegmentPosition:t.find.bind(t),getSegmentReference:t.get.bind(t)});return{createSegmentIndex:e.createSegmentIndex,findSegmentPosition:e.findSegmentPosition,getSegmentReference:e.getSegmentReference,initSegmentReference:a,presentationTimeOffset:r.presentationTimeOffset}}function gn(e){return e.Ra}function yn(e,t){
var n=e.R.duration,i=t.O,a=t.ya,r=t.timescale,s=t.ub,o=e.bandwidth||null,l=e.w.id,u=e.w.U;return{createSegmentIndex:Promise.resolve.bind(Promise),findSegmentPosition:function(e){return 0>e||n&&e>=n?null:Math.floor(e/i)},getSegmentReference:function(e){var t=e*i;return 0>t||n&&t>=n?null:new Ft(e,t,t+i,function(){var n=jt(s,l,e+a,o,t*r);return w(u,[n])},0,null)}}}function bn(e,t){for(var n=[],i=0;i<t.F.length;i++){var a=i+t.ya;n.push(new Ft(a,t.F[i].start,t.F[i].end,function(e,t,n,i,a,r){
return e=jt(e,t,a,n,r),w(i,[e]).map(function(e){return e.toString()})}.bind(null,t.ub,e.w.id,e.bandwidth||null,e.w.U,a,t.F[i].oe+t.Nb),0,null))}return n}function Sn(e){var t=Ut(e,gn,"initialization");if(!t)return null;var n=e.w.id,i=e.bandwidth||null,a=e.w.U;return new Bt(function(){var e=jt(t,n,null,i,null);return w(a,[e])},0,null)}function In(){var e,t={};for(e in Ns)t[e]=!0;for(e in Ls)t[e]=!0
;return["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"].forEach(function(e){t[e]=!!Ns[e]}),["mpd","m3u8","ism"].forEach(function(e){t[e]=!!Ls[e]}),t}function Mn(e,t,n,i){var a=i;return a||(i=new u(e).W.split("/").pop().split("."),1<i.length&&(i=i.pop().toLowerCase(),a=Ls[i])),a?Promise.resolve(a):(n=L([e],n),n.method="HEAD",t.request(0,n).then(function(t){return(t=t.headers["content-type"])&&(t=t.toLowerCase()),
(a=Ns[t])?a:Promise.reject(new l(2,4,4e3,e))},function(e){return e.severity=2,Promise.reject(e)}))}function Cn(e,t){this.f=e,this.i=t,this.c=this.a=1/0,this.b=1,this.h=0,this.g=!0}function wn(){this.a=this.b=null,this.g=[],this.c=null,this.i=[],this.h=1,this.j={},this.l=0,this.f=null}function Dn(e){return e.a.networkingEngine.request(0,L(e.g,e.b.retryParameters)).then(function(e){if(this.a)return Pn(this,e.data,e.uri)}.bind(e))}function Pn(e,t,n){var i=Q(t),a=new DOMParser,r=null;t=null;try{
r=a.parseFromString(i,"text/xml")}catch(e){}if(r&&"MPD"==r.documentElement.tagName&&(t=r.documentElement),t&&0<t.getElementsByTagName("parsererror").length&&(t=null),!t)throw new l(2,4,4001);n=[n],i=Mt(t,"Location").map(Ct).filter(I),0<i.length&&(n=e.g=i),i=Mt(t,"BaseURL").map(Ct),n=w(n,i);var s=wt(t,"minBufferTime",Pt);e.l=wt(t,"minimumUpdatePeriod",Pt,-1)
;var o=wt(t,"availabilityStartTime",Dt),i=wt(t,"timeShiftBufferDepth",Pt),u=wt(t,"suggestedPresentationDelay",Pt),a=wt(t,"maxSegmentDuration",Pt),r=t.getAttribute("type")||"static";if(e.c)var c=e.c.presentationTimeline;else{var d=Math.max(10,1.5*s);c=new Cn(o,null!=u?u:d)}var o=Tn(e,{Ca:"static"!=r,presentationTimeline:c,T:null,R:null,S:null,w:null,bandwidth:void 0,Yb:!1},n,t),u=o.duration,p=o.periods;return c.wc("static"==r),c.pa(u||1/0),c.vc(null!=i?i:1/0),c.wb(a||1),
e.c?Promise.resolve():(t=Mt(t,"UTCTiming"),On(e,n,t,c.da()).then(function(e){this.a&&(c.uc(e),this.c={presentationTimeline:c,periods:p,offlineSessionIds:[],minBufferTime:s||0})}.bind(e)))}function Tn(e,t,n,i){var a=wt(i,"mediaPresentationDuration",Pt),r=[],s=0;i=Mt(i,"Period");for(var o=0;o<i.length;o++){var l=i[o],s=wt(l,"start",Pt,s),u=wt(l,"duration",Pt),c=null;if(o!=i.length-1){var d=wt(i[o+1],"start",Pt);null!=d&&(c=d-s)}else null!=a&&(c=a-s);if(null==c&&(c=u),l=xn(e,t,n,{start:s,
duration:c,node:l,sb:null==c||o==i.length-1}),r.push(l),u=t.T.id,e.i.every(M(u))&&(e.a.filterPeriod(l),e.i.push(u),e.c&&e.c.periods.push(l)),null==c){s=null;break}s+=c}return null!=a?{periods:r,duration:a}:{periods:r,duration:s}}function xn(e,t,n,i){t.T=An(i.node,null,n),t.R=i,t.T.id||(t.T.id="__shaka_period_"+i.start),Mt(i.node,"EventStream").forEach(e.Dd.bind(e,i.start,i.duration)),n=Mt(i.node,"AdaptationSet").map(e.Bd.bind(e,t)).filter(I);var a=n.map(function(e){return e.Nd
}).reduce(b,[]),r=a.filter(C);if(t.Ca&&a.length!=r.length)throw new l(2,4,4018);var s=n.filter(function(e){return!e.Mb});if(n.filter(function(e){return e.Mb}).forEach(function(e){var t=e.streams[0],n=e.Mb;s.forEach(function(e){e.id==n&&e.streams.forEach(function(e){e.trickModeVideo=t})})}),a=En(s,"video"),r=En(s,"audio"),!a.length&&!r.length)throw new l(2,4,4004);for(r.length||(r=[null]),a.length||(a=[null]),t=[],n=0;n<r.length;n++)for(var o=0;o<a.length;o++)Nn(e,r[n],a[o],t);for(e=En(s,"text"),
a=[],n=0;n<e.length;n++)a.push.apply(a,e[n].streams);return{startTime:i.start,textStreams:a,variants:t}}function En(e,t){return e.filter(function(e){return e.contentType==t})}function Nn(e,t,n,i){if(t||n)if(t&&n){var a=t.drmInfos,r=n.drmInfos;if(a.length&&r.length?0<ye(a,r).length:1)for(var s=ye(t.drmInfos,n.drmInfos),a=0;a<t.streams.length;a++)for(var o=0;o<n.streams.length;o++)r=n.streams[o].bandwidth+t.streams[a].bandwidth,r={id:e.h++,language:t.language,primary:t.tb||n.tb,audio:t.streams[a],
video:n.streams[o],bandwidth:r,drmInfos:s,allowedByApplication:!0,allowedByKeySystem:!0},i.push(r)}else for(s=t||n,a=0;a<s.streams.length;a++)r=s.streams[a].bandwidth,r={id:e.h++,language:s.language||"und",primary:s.tb,audio:t?s.streams[a]:null,video:n?s.streams[a]:null,bandwidth:r,drmInfos:s.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0},i.push(r)}function Ln(t,n){0>t.l||(t.f=e.setTimeout(t.fe.bind(t),1e3*Math.max(Math.max(3,t.l)-n,0)))}function An(e,t,n){t=t||{contentType:"",
mimeType:"",codecs:"",containsEmsgBoxes:!1,frameRate:void 0},n=n||t.U;var i=Mt(e,"BaseURL").map(Ct),a=e.getAttribute("contentType")||t.contentType,r=e.getAttribute("mimeType")||t.mimeType,s=e.getAttribute("codecs")||t.codecs,o=wt(e,"frameRate",Lt)||t.frameRate,l=!!Mt(e,"InbandEventStream").length;return a||(a=jn(r,s)),{U:w(n,i),Qa:It(e,"SegmentBase")||t.Qa,oa:It(e,"SegmentList")||t.oa,Ra:It(e,"SegmentTemplate")||t.Ra,width:wt(e,"width",Nt)||t.width,height:wt(e,"height",Nt)||t.height,
contentType:a,mimeType:r,codecs:s,frameRate:o,containsEmsgBoxes:l||t.containsEmsgBoxes,id:e.getAttribute("id")}}function kn(e){var t=0+(e.Qa?1:0);return t+=e.oa?1:0,(t+=e.Ra?1:0)?(1!=t&&(e.Qa&&(e.oa=null),e.Ra=null),!0):"text"==e.contentType||"application"==e.contentType}function _n(e,t,n,i){return t=w(t,[n]),t=L(t,e.b.retryParameters),t.method=i,e.a.networkingEngine.request(0,t).then(function(e){if("HEAD"==i){if(!e.headers||!e.headers.date)return 0;e=e.headers.date}else e=Q(e.data)
;return e=Date.parse(e),isNaN(e)?0:e-Date.now()})}function On(e,t,n,i){n=n.map(function(e){return{scheme:e.getAttribute("schemeIdUri"),value:e.getAttribute("value")}});var a=e.b.dash.clockSyncUri;return i&&!n.length&&a&&n.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:a}),y(n,function(e){var n=e.value;switch(e.scheme){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":return _n(this,t,n,"HEAD");case"urn:mpeg:dash:utc:http-xsdate:2014":
case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":return _n(this,t,n,"GET");case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":return e=Date.parse(n),isNaN(e)?0:e-Date.now();case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":return Promise.reject();default:return Promise.reject()}}.bind(e)).catch(function(){return 0})}function jn(e,t){
return ps[et(e,t)]?"text":e.split("/")[0]}function Rn(e,t,n,i){this.uri=e,this.type=t,this.ga=n,this.segments=i||null}function Un(e,t,n,i){this.id=e,this.name=t,this.a=n,this.value=i||null}function zn(e,t){this.name=e,this.value=t}function Bn(e,t,n){return n=n||null,(e=e.getAttribute(t))?e.value:n}function Fn(e,t){this.ga=t,this.uri=e}function Vn(e,t){return e.filter(function(e){return e.name==t})}function Qn(e,t){var n=Vn(e,t);return n.length?n[0]:null}function Hn(e,t,n){
return e.filter(function(e){var i=e.getAttribute("TYPE");return e=e.getAttribute("GROUP-ID"),i.value==t&&e.value==n})}function Wn(e){this.b=e,this.a=0}function Yn(e,t){t.lastIndex=e.a;var n=(n=t.exec(e.b))?{position:n.index,length:n[0].length,Qd:n}:null;return e.a!=e.b.length&&n&&n.position==e.a?(e.a+=n.length,n.Qd):null}function Gn(e){return e.a==e.b.length?null:(e=Yn(e,/[^ \t\n]*/gm))?e[0]:null}function Kn(){this.a=0}function qn(e,t,n){t=Q(t),t=t.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim()
;var i=t.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(i[0]))throw new l(2,4,4015);t=0;for(var a=[],r=1;r<i.length;)if(/^#(?!EXT)/m.test(i[r]))r+=1;else{var s=i[r];if(s=Zn(e.a++,s),0<=As.indexOf(s.name))t=1;else if(0<=ks.indexOf(s.name)){if(1!=t)throw new l(2,4,4017);return i=i.splice(r,i.length-r),e=Xn(e,i),new Rn(n,t,a,e)}a.push(s),r+=1,"EXT-X-STREAM-INF"==s.name&&(s.a.push(new zn("URI",i[r])),r+=1)}return new Rn(n,t,a)}function Xn(e,t){var n=[],i=[];return t.forEach(function(e){
/^(#EXT)/.test(e)?(e=Zn(this.a++,e),i.push(e)):/^#(?!EXT)/m.test(e)||(n.push(new Fn(e.trim(),i)),i=[])}.bind(e)),n}function Zn(e,t){var n=t.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!n)throw new l(2,4,4016);var i=n[1],a=n[2],n=[];if(a&&0<=a.indexOf("="))for(var r,a=new Wn(a);r=Yn(a,/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g);)n.push(new zn(r[1],r[2]||r[3]));else if(a)return new Un(e,i,n,a);return new Un(e,i,n)}function Jn(e){return new Promise(function(t){var n=Jn.parse(e);t({uri:e,data:n.data,headers:{
"content-type":n.contentType}})})}function $n(){this.b=this.c=null,this.i=1,this.g={},this.f={},this.a=null,this.j="",this.h=new Kn}function ei(e,t,n){if(t=qn(e.h,t,n),0!=t.type)throw new l(2,4,4022);return e.a=new Cn(null,0),ti(e,t).then(function(e){return this.c.filterPeriod(e),{presentationTimeline:this.a,periods:[e],offlineSessionIds:[],minBufferTime:0}}.bind(e))}function ti(e,t){var n=Vn(t.ga,"EXT-X-STREAM-INF").map(function(e){return ni(this,e,t)
}.bind(e)),i=Vn(t.ga,"EXT-X-MEDIA").filter(function(e){return"SUBTITLES"==fi(e,"TYPE")}.bind(e)).map(function(e){return ri(this,e,t)}.bind(e));return Promise.all(n).then(function(e){return Promise.all(i).then(function(t){var n=e.reduce(b,[]);return ci(this,n),{startTime:0,variants:n,textStreams:t}}.bind(this))}.bind(e))}function ni(e,t,n){var i=Number(fi(t,"BANDWIDTH")),a=Bn(t,"CODECS","avc1.42E01E,mp4a.40.2").split(","),r=t.getAttribute("RESOLUTION"),s=null,o=null,l=Bn(t,"FRAME-RATE")
;if(r)var u=r.value.split("x"),s=u[0],o=u[1];var c=hi(e,n);n=Vn(n.ga,"EXT-X-MEDIA");var d=Bn(t,"AUDIO"),p=Bn(t,"VIDEO");d?n=Hn(n,"AUDIO",d):p&&(n=Hn(n,"VIDEO",p)),n=n.map(function(e){return si(this,e,a,c)}.bind(e));var h=[],f=[];return Promise.all(n).then(function(e){if(d?h=e:p&&(f=e),h.length||f.length)var n=h.length?"video":"audio";else 1==a.length?n=r||l?"video":"audio":(n="video",a=[a.join(",")]);return e=a,oi(this,fi(t,"URI"),e,n,c,"und",!1)}.bind(e)).then(function(e){
return"audio"==e.stream.type?h=[e]:f=[e],ii(this,h,f,i,s,o,l)}.bind(e))}function ii(e,t,n,i,a,r,s){n.forEach(function(e){(e=e.stream)&&(e.width=Number(a)||void 0,e.height=Number(r)||void 0,e.frameRate=Number(s)||void 0)}.bind(e)),t.length||(t=[null]),n.length||(n=[null]);for(var o=[],l=0;l<t.length;l++)for(var u=0;u<n.length;u++){var c=t[l]?t[l].stream:null,d=n[u]?n[u].stream:null,p=t[l]?t[l].drmInfos:null,h=n[u]?n[u].drmInfos:null;if(c&&d){if(!(p.length&&h.length?0<ye(p,h).length:1))continue
;var f=ye(p,h)}else c?f=p:d&&(f=h);o.push(ai(e,c,d,i,f))}return o}function ai(e,t,n,i,a){return{id:e.i++,language:t?t.language:"und",primary:!!t&&t.primary||!!n&&n.primary,audio:t,video:n,bandwidth:i,drmInfos:a,allowedByApplication:!0,allowedByKeySystem:!0}}function ri(e,t,n){return fi(t,"TYPE"),n=hi(e,n),si(e,t,[],n).then(function(e){return e.stream})}function si(e,t,n,i){if(e.g[t.id])return Promise.resolve().then(function(){return this.g[t.id]}.bind(e));var a=fi(t,"TYPE").toLowerCase()
;"subtitles"==a&&(a="text");var r=Be(Bn(t,"LANGUAGE","und")),s=t.getAttribute("DEFAULT"),o=t.getAttribute("AUTOSELECT");return oi(e,fi(t,"URI"),n,a,i,r,!!s||!!o).then(function(e){return this.g[t.id]=e}.bind(e))}function oi(e,t,n,i,a,r,s){return t=w([e.j],[t])[0],e.c.networkingEngine.request(0,L([t],e.b.retryParameters)).then(function(e){if(e=qn(this.h,e.data,e.uri),1!=e.type)throw new l(2,4,4017);a=hi(this,e)||a;var t=null;"text"!=i&&(t=li(e))
;var o=Qn(e.ga,"EXT-X-MEDIA-SEQUENCE"),o=ui(this,e,o?Number(o.value):0);this.a.Ga(0,o);var u=o[o.length-1].endTime-o[0].startTime,c=this.a.Y();(1/0==c||c<u)&&this.a.pa(u);var d=di(i,n),p=void 0;"text"==i&&(p="subtitle");var h=new Zt(o),f=[];e.segments.forEach(function(e){e=Vn(e.ga,"EXT-X-KEY"),f.push.apply(f,e)});var v=!1,m=[],g=null;if(f.forEach(function(e){if("NONE"!=fi(e,"METHOD")){v=!0;var t=fi(e,"KEYFORMAT");(e=(t=Us[t])?t(e):null)&&(e.keyIds.length&&(g=e.keyIds[0]),m.push(e))}}),
v&&!m.length)throw new l(2,4,4026);return pi(this,i,o[0].a()[0]).then(function(e){return e={id:this.i++,createSegmentIndex:Promise.resolve.bind(Promise),findSegmentPosition:h.find.bind(h),getSegmentReference:h.get.bind(h),initSegmentReference:t,presentationTimeOffset:a||0,mimeType:e,codecs:d,kind:p,encrypted:v,keyId:g,language:r,type:i,primary:s,trickModeVideo:null,containsEmsgBoxes:!1,frameRate:void 0,width:void 0,height:void 0,bandwidth:void 0},this.f[e.id]=h,{stream:e,ye:h,drmInfos:m}
}.bind(this))}.bind(e))}function li(e){var t=Vn(e.ga,"EXT-X-MAP");if(!t.length)return null;if(1<t.length)throw new l(2,4,4020);var t=t[0],n=fi(t,"URI"),i=w([e.uri],[n])[0];return e=0,n=null,(t=Bn(t,"BYTERANGE"))&&(e=t.split("@"),t=Number(e[0]),e=Number(e[1]),n=e+t-1),new Bt(function(){return[i]},e,n)}function ui(e,t,n){var i=t.segments,a=[];return i.forEach(function(e){var r,s=e.ga,o=w([t.uri],[e.uri])[0],l=vi(s).value.split(","),l=Number(l[0]);r=(e=i.indexOf(e))?a[e-1].endTime:0
;var l=r+l,u=0,c=null;(s=Qn(s,"EXT-X-BYTERANGE"))&&(s=s.value.split("@"),c=Number(s[0]),u=s[1]?Number(s[1]):a[e-1].M,c=u+c-1,e==i.length-1&&(c=null)),a.push(new Ft(n+e,r,l,function(){return[o]},u,c))}.bind(e)),a}function ci(e,t){t.forEach(function(e){var t=this.a.Y(),n=e.video;e=e.audio,n&&this.f[n.id]&&Jt(this.f[n.id],t),e&&this.f[e.id]&&Jt(this.f[e.id],t)}.bind(e))}function di(e,t){if(1==t.length)return t[0];if("text"==e)return"";var n=_s;"audio"==e&&(n=Os)
;for(var i=0;i<n.length;i++)for(var a=0;a<t.length;a++)if(n[i].test(t[a].trim()))return t[a].trim();throw new l(2,4,4025,t)}function pi(e,t,n){var i=n.split("."),a=i[i.length-1];return"text"==t?Promise.resolve("text/vtt"):(i=js,"video"==t&&(i=Rs),(t=i[a])?Promise.resolve(t):(n=L([n],e.b.retryParameters),n.method="HEAD",e.c.networkingEngine.request(1,n).then(function(e){if(!(e=e.headers["content-type"]))throw new l(2,4,4021,a);return e})))}function hi(e,t){var n=Qn(t.ga,"EXT-X-START")
;return n?Number(fi(n,"TIME-OFFSET")):e.b.hls.defaultTimeOffset}function fi(e,t){var n=e.getAttribute(t);if(!n)throw new l(2,4,4023,t);return n.value}function vi(e){if(!(e=Qn(e,"EXTINF")))throw new l(2,4,4024,"EXTINF");return e}function mi(){}function gi(e){var t=[];if(!e)return t;for(var n=e.childNodes,i=0;i<n.length;i++){var a="span"==n[i].nodeName&&"p"==e.nodeName;n[i].nodeType!=Node.ELEMENT_NODE||"br"==n[i].nodeName||a||(a=gi(n[i]),t=t.concat(a))}return t.length||t.push(e),t}
function yi(e,t){for(var n=e.childNodes,i=0;i<n.length;i++)if("br"==n[i].nodeName&&0<i)n[i-1].textContent+="\n";else if(0<n[i].childNodes.length)yi(n[i],t);else if(t){var a=n[i].textContent.trim(),a=a.replace(/\s+/g," ");n[i].textContent=a}}function bi(e,t,n,i){for(var a=gi(t),r=0;r<a.length;r++){var s=a[r].getAttribute(i);if(s)return s}return a=Si,(e=a(t,"style",n)||a(e,"style",n))?e.getAttribute(i):null}function Si(e,t,n){if(!e||1>n.length)return null;var i=null,a=e
;for(e=null;a&&!(e=a.getAttribute(t))&&(a=a.parentNode)instanceof Element;);if(t=e)for(e=0;e<n.length;e++)if(n[e].getAttribute("xml:id")==t){i=n[e];break}return i}function Ii(e,t){var n=null;if(zs.test(e))var n=zs.exec(e),i=Number(n[1]),a=Number(n[2]),r=Number(n[3]),s=Number(n[4]),s=s+(Number(n[5])||0)/t.b,r=r+s/t.frameRate,n=r+60*a+3600*i;else Bs.test(e)?n=Mi(Bs,e):Fs.test(e)?n=Mi(Fs,e):Vs.test(e)?(n=Vs.exec(e),n=Number(n[1])/t.frameRate):Qs.test(e)?(n=Qs.exec(e),
n=Number(n[1])/t.a):Hs.test(e)&&(n=Mi(Hs,e));return n}function Mi(e,t){var n=e.exec(t);return n&&""!=n[0]?(Number(n[4])||0)/1e3+(Number(n[3])||0)+60*(Number(n[2])||0)+3600*(Number(n[1])||0):null}function Ci(e,t,n,i){this.frameRate=Number(e)||30,this.b=Number(t)||1,this.a=Number(i),this.a||(this.a=e?this.frameRate*this.b:1),n&&(e=/^(\d+) (\d+)$/g.exec(n))&&(this.frameRate*=e[1]/e[2])}function wi(){this.a=new mi}function Di(){}function Pi(e,t){var n
;(n=/^align:(start|middle|center|end|left|right)$/.exec(t))?(e.align=n[1],"center"==n[1]&&"center"!=e.align&&(e.position="auto",e.align="middle")):(n=/^vertical:(lr|rl)$/.exec(t))?e.vertical=n[1]:(n=/^size:(\d{1,2}|100)%$/.exec(t))?e.size=Number(n[1]):(n=/^position:(\d{1,2}|100)%(?:,(line-left|line-right|center|start|end))?$/.exec(t))?(e.position=Number(n[1]),n[2]&&(e.positionAlign=n[2])):(n=/^line:(\d{1,2}|100)%(?:,(start|end|center))?$/.exec(t))?(e.snapToLines=!1,e.line=Number(n[1]),
n[2]&&(e.lineAlign=n[2])):(n=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(t))&&(e.snapToLines=!0,e.line=Number(n[1]),n[2]&&(e.lineAlign=n[2]))}function Ti(e){if(!(e=Yn(e,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3})/g)))return null;var t=Number(e[2]),n=Number(e[3]);return 59<t||59<n?null:Number(e[4])/1e3+n+60*t+3600*(Number(e[1])||0)}function xi(){this.a=null}function Ei(e,t,n){var i,a,r;return(new Ht).C("payl",Gt(function(e){i=Q(e)})).C("iden",Gt(function(e){a=Q(e)})).C("sttg",Gt(function(e){r=Q(e)
})).parse(e),i?Ni(i,a,r,t,n):null}function Ni(e,t,n,i,a){if((e=Ie(i,a,e))&&t&&(e.id=t),e&&n)for(t=new Wn(n),n=Gn(t);n;)Pi(e,n),Yn(t,/[ \t]+/gm),n=Gn(t);return e}function Li(e,t,n,i,a,r){this.a=e,this.c=t,this.l=n,this.A=i,this.J=a,this.G=r,this.b=new _,this.h=!1,this.g=1,this.j=this.f=null,this.B=e.readyState,this.i=!1,this.P=this.v=-1,this.o=!1,0<e.readyState?this.dc():j(this.b,e,"loadedmetadata",this.dc.bind(this)),t=this.fc.bind(this),O(this.b,e,"ratechange",this.pd.bind(this)),
O(this.b,e,"waiting",t),this.j=setInterval(t,250)}function Ai(e,t){0<e.a.readyState?e.a.currentTime=Ui(e,t):e.A=t}function ki(e){return 0<e.a.readyState?Ui(e,e.a.currentTime):_i(e)}function _i(e){return e.A?Ui(e,e.A):(e=e.c.presentationTimeline,1/0>e.Y()?e.ma():e.bb())}function Oi(t,n){null!=t.f&&(e.clearInterval(t.f),t.f=null),t.g=n,t.a.playbackRate=t.h||0>n?0:n,!t.h&&0>n&&(t.f=e.setInterval(function(){this.a.currentTime+=n/4}.bind(t),250))}function ji(e,t){
var n=Pe.bind(null,e.a.buffered),i=1*Math.max(e.c.minBufferTime||0,e.l.rebufferingGoal),a=e.c.presentationTimeline,r=a.ua(),s=a.Da(i),o=a.Da(5),i=a.Da(i+5);return t>r?r:t<a.Da(0)?n(o)?o:i:t>=s||n(t)?t:i}function Ri(e,t,n){e.a.currentTime=n;var i=0,a=function(){!this.a||10<=i++||this.a.currentTime!=t||(this.a.currentTime=n,setTimeout(a,100))}.bind(e);setTimeout(a,100)}function Ui(e,t){var n=e.c.presentationTimeline.ma();return t<n?n:(n=e.c.presentationTimeline.ua(),t>n?n:t)}
function zi(e,t,n,i,a,r){this.a=e,this.g=t,this.A=n,this.l=i,this.h=a,this.B=r,this.c=[],this.j=new _,this.b=!1,this.i=-1,this.f=null,Fi(this)}function Bi(e){var t=T(e);return t.eventElement=e.eventElement,t}function Fi(t){Vi(t),t.f=e.setTimeout(t.G.bind(t),250)}function Vi(t){t.f&&(e.clearTimeout(t.f),t.f=null)}function Qi(e,t){this.a=t,this.b=e,this.h=null,this.i=1,this.o=Promise.resolve(),this.g=[],this.j={},this.c={},this.f=this.l=this.v=!1}function Hi(e){
return e.b.periods[tt(e.b,ki(e.a.Oa))]}function Wi(e){return F(e.c,function(e){return e.na||e.stream})}function Yi(e,t){var n={};return n.text=t,Xi(e,n)}function Gi(e,t){var n=e.c.video;if(n){var i=n.stream;if(i)if(t){var a=i.trickModeVideo;if(a){var r=n.na;r||(Ki(e,"video",a,!1),n.na=i)}}else(r=n.na)&&(n.na=null,Ki(e,"video",r,!0))}}function Ki(e,t,n,i){var a=e.c[t];!a&&"text"==t&&e.h.ignoreTextStreamFailures?Yi(e,n):a&&(a.na&&(n.trickModeVideo?(a.na=n,n=n.trickModeVideo):a.na=null),
"text"==t&&Ne(e.a.K,et(n.mimeType,n.codecs)),(t=e.g[nt(e.b,n)])&&t.Ka&&(t=e.j[n.id])&&t.Ka&&a.stream!=n&&(a.stream=n,a.cb=!0,i&&(a.sa?a.kb=!0:a.wa?(a.ra=!0,a.kb=!0):(ha(a),da(e,a,!0)))))}function qi(e){var t=ki(e.a.Oa);if(!Object.keys(e.c).every(function(e){var n=this.a.K;return"text"==e?(e=n.a,e=t>=e.b&&t<e.a):(e=Ae(n,e),e=Pe(e,t)),e}.bind(e)))for(var n in e.c){var i=e.c[n];i.sa||i.ra||(i.wa?i.ra=!0:null==Le(e.a.K,n)?null==i.qa&&pa(e,i,0):(ha(i),da(e,i,!1)))}}function Xi(e,t,n){
var i=tt(e.b,ki(e.a.Oa)),a=F(t,function(e){return et(e.mimeType,e.codecs)});return e.a.K.init(a),$i(e),a=B(t),Ji(e,a).then(function(){if(!this.f)for(var e in t){var a=t[e];this.c[e]||(this.c[e]={stream:a,type:e,Ea:null,ea:null,na:null,cb:!0,Ma:i,endOfStream:!1,wa:!1,qa:null,ra:!1,kb:!1,sa:!1,Eb:!1,rb:!1,pc:n||0},pa(this,this.c[e],0))}}.bind(e))}function Zi(e,t){var n=e.g[t];if(n)return n.L;n={L:new x,Ka:!1},e.g[t]=n;var i=e.b.periods[t].variants.map(function(e){var t=[]
;return e.audio&&t.push(e.audio),e.video&&t.push(e.video),e.video&&e.video.trickModeVideo&&t.push(e.video.trickModeVideo),t}).reduce(b,[]).filter(C);return i.push.apply(i,e.b.periods[t].textStreams),e.o=e.o.then(function(){if(!this.f)return Ji(this,i)}.bind(e)).then(function(){this.f||(this.g[t].L.resolve(),this.g[t].Ka=!0)}.bind(e)).catch(function(e){this.f||(this.g[t].L.reject(),delete this.g[t],this.a.onError(e))}.bind(e)),n.L}function Ji(e,t){t.map(function(e){return e.id}).filter(C)
;for(var n=[],i=0;i<t.length;++i){var a=t[i],r=e.j[a.id];r?n.push(r.L):(e.j[a.id]={L:new x,Ka:!1},n.push(a.createSegmentIndex()))}return Promise.all(n).then(function(){if(!this.f)for(var e=0;e<t.length;++e){var n=this.j[t[e].id];n.Ka||(n.L.resolve(),n.Ka=!0)}}.bind(e)).catch(function(e){if(!this.f)return this.j[a.id].L.reject(),delete this.j[a.id],Promise.reject(e)}.bind(e))}function $i(e){var t=e.b.presentationTimeline.Y();1/0>t?e.a.K.pa(t):e.a.K.pa(Math.pow(2,32))}function ea(e,t){
var n=ki(e.a.Oa),i=t.Ea&&t.ea?e.b.periods[nt(e.b,t.Ea)].startTime+t.ea.endTime:Math.max(n,t.pc);t.pc=0;var a=nt(e.b,t.stream),r=tt(e.b,i),s=e.a.K,o=t.type;return"text"==o?(s=s.a,s=null==s.a||s.a<n?0:s.a-Math.max(n,s.b)):(s=Ae(s,o),s=Te(s,n)),o=Math.max(e.i*Math.max(e.b.minBufferTime||0,e.h.rebufferingGoal),e.i*e.h.bufferingGoal),i>=e.b.presentationTimeline.Y()?(t.endOfStream=!0,null):(t.endOfStream=!1,t.Ma=r,r!=a?null:s>=o?.5:(i=e.a.K,r=t.type,i="text"==r?i.a.a:De(Ae(i,r)),
t.ea&&t.stream==t.Ea?(r=t.ea.position+1,i=ta(e,t,a,r)):(r=t.ea?t.stream.findSegmentPosition(Math.max(0,e.b.periods[nt(e.b,t.Ea)].startTime+t.ea.endTime-e.b.periods[a].startTime)):t.stream.findSegmentPosition(Math.max(0,(i||n)-e.b.periods[a].startTime)),null==r?i=null:(s=null,null==i&&(s=ta(e,t,a,Math.max(0,r-1))),i=s||ta(e,t,a,r))),i?(na(e,t,n,a,i),null):1))}function ta(e,t,n,i){return n=e.b.periods[n],(t=t.stream.getSegmentReference(i))?(e=e.b.presentationTimeline,i=e.ua(),
n.startTime+t.endTime<e.ma()||n.startTime+t.startTime>i?null:t):null}function na(e,t,n,i,a){var r=e.b.periods[i],s=t.stream,o=e.b.periods[i+1],l=null,l=o?o.startTime:e.b.presentationTimeline.Y();i=aa(e,t,i,l),t.wa=!0,t.cb=!1,o=ca(e,a),Promise.all([i,o]).then(function(e){if(!this.f&&!this.l)return ra(this,t,n,r,s,a,e[1])}.bind(e)).then(function(){this.f||this.l||(t.wa=!1,t.Eb=!1,t.ra||this.a.yb(),pa(this,t,0),oa(this,s))}.bind(e)).catch(function(e){this.f||this.l||(t.wa=!1,
1001==e.code||1002==e.code||1003==e.code?"text"==t.type&&this.h.ignoreTextStreamFailures&&1001==e.code?delete this.c.text:(e.severity=1,this.a.onError(e),pa(this,t,4)):3017==e.code?ia(this,t,e):"text"==t.type&&this.h.ignoreTextStreamFailures?delete this.c.text:(t.rb=!0,e.severity=2,this.a.onError(e)))}.bind(e))}function ia(e,t,n){if(!B(e.c).some(function(e){return e!=t&&e.Eb})){var i=Math.round(100*e.i);if(20<i)e.i-=.2;else{if(!(4<i))return t.rb=!0,e.l=!0,void e.a.onError(n);e.i-=.04}t.Eb=!0}
pa(e,t,4)}function aa(e,t,n,i){return t.cb?(n=Oe(e.a.K,t.type,e.b.periods[n].startTime-t.stream.presentationTimeOffset,i),t.stream.initSegmentReference?(e=ca(e,t.stream.initSegmentReference).then(function(e){if(!this.f)return ke(this.a.K,t.type,e,null,null)}.bind(e)).catch(function(e){return t.cb=!0,Promise.reject(e)}),Promise.all([n,e])):n):Promise.resolve()}function ra(e,t,n,i,a,r,s){return a.containsEmsgBoxes&&(new Ht).ca("emsg",e.Cd.bind(e,i,r)).parse(s),sa(e,t,n).then(function(){
if(!this.f)return ke(this.a.K,t.type,s,r.startTime+i.startTime,r.endTime+i.startTime)}.bind(e)).then(function(){if(!this.f)return t.Ea=a,t.ea=r,Promise.resolve()}.bind(e))}function sa(e,t,n){var i=Le(e.a.K,t.type);return null==i?Promise.resolve():(n=n-i-e.h.bufferBehind,0>=n?Promise.resolve():e.a.K.remove(t.type,i,i+n).then(function(){}.bind(e)))}function oa(e,t){if(!e.v&&(e.v=B(e.c).every(function(e){return"text"==e.type||!e.ra&&!e.sa&&e.ea}),e.v)){var n=nt(e.b,t)
;for(e.g[n]||Zi(e,n).then(function(){this.a.Zb()}.bind(e)).catch(S),n=0;n<e.b.periods.length;++n)Zi(e,n).catch(S);e.a.ud&&e.a.ud()}}function la(e,t){if(t.Ma!=nt(e.b,t.stream)){var n=t.Ma,i=B(e.c);i.every(function(e){return e.Ma==n})&&i.every(ua)&&Zi(e,n).then(function(){if(!this.f&&i.every(function(e){var t=nt(this.b,e.stream);return ua(e)&&e.Ma==n&&t!=n}.bind(this))){var e,t=this.b.periods[n],a=this.a.$b(t);for(e in this.c)if(!a[e]&&"text"!=e)return void this.a.onError(new l(2,5,5005))
;for(e in a)if(!this.c[e]){if("text"!=e)return void this.a.onError(new l(2,5,5005));Xi(this,{text:a.text},t.startTime),delete a[e]}for(e in this.c)(t=a[e])?(Ki(this,e,t,!1),pa(this,this.c[e],0)):delete this.c[e];this.a.Zb()}}.bind(e)).catch(S)}}function ua(e){return!e.wa&&null==e.qa&&!e.ra&&!e.sa}function ca(e,t){var n=L(t.a(),e.h.retryParameters);if(t.X||null!=t.M){var i="bytes="+t.X+"-";null!=t.M&&(i+=t.M),n.headers.Range=i}return e.a.bd.request(1,n).then(function(e){return e.data})}
function da(e,t,n){t.ra=!1,t.kb=!1,t.sa=!0,_e(e.a.K,t.type).then(function(){if(!this.f&&n){var e=this.a.K,i=t.type;return"text"==i?Promise.resolve():je(e,i,e.Mc.bind(e,i))}}.bind(e)).then(function(){this.f||(t.Ea=null,t.ea=null,t.sa=!1,t.endOfStream=!1,pa(this,t,0))}.bind(e))}function pa(t,n,i){n.qa=e.setTimeout(t.ie.bind(t,n),1e3*i)}function ha(t){null!=t.qa&&(e.clearTimeout(t.qa),t.qa=null)}function fa(e,t){return new Promise(function(n,i){var a=new XMLHttpRequest;a.open(t.method,e,!0),
a.responseType="arraybuffer",a.timeout=t.retryParameters.timeout,a.withCredentials=t.allowCrossSiteCredentials,a.onload=function(t){t=t.target;var a=t.getAllResponseHeaders().split("\r\n").reduce(function(e,t){var n=t.split(": ");return e[n[0].toLowerCase()]=n.slice(1).join(": "),e},{});if(200<=t.status&&299>=t.status&&202!=t.status)t.responseURL&&(e=t.responseURL),n({uri:e,data:t.response,headers:a,fromCache:!!a["x-shaka-from-cache"]});else{var r=null;try{r=W(t.response)}catch(e){}
i(new l(401==t.status||403==t.status?2:1,1,1001,e,t.status,r,a))}},a.onerror=function(){i(new l(1,1,1002,e))},a.ontimeout=function(){i(new l(1,1,1003,e))};for(var r in t.headers)a.setRequestHeader(r,t.headers[r]);a.send(t.body)})}function va(){this.a=null,this.b=[],this.c={}}function ma(e,t,n){return ba(e,t,"readwrite",function(e){e.put(n)})}function ga(e,t,n){return ba(e,"segment","readwrite",function(e){for(var i=0;i<t.length;i++)e.delete(t[i]).onsuccess=n||function(){}})}function ya(e,t){
var n=0;return ba(e,t,"readonly",function(e){e.openCursor(null,"prev").onsuccess=function(e){(e=e.target.result)&&(n=e.key+1)}}).then(function(){return n})}function ba(e,t,n,i){var a={transaction:e.a.transaction([t],n),L:new x};return a.transaction.oncomplete=function(){this.b.splice(this.b.indexOf(a),1),a.L.resolve()}.bind(e),a.transaction.onabort=function(e){this.b.splice(this.b.indexOf(a),1),Ia(a.transaction,a.L,e)}.bind(e),a.transaction.onerror=function(e){e.preventDefault()}.bind(e),
t=a.transaction.objectStore(t),i(t),e.b.push(a),a.L}function Sa(t,n,i){var a=e.indexedDB.open("shaka_offline_db",1),r=!1,s=new x;return a.onupgradeneeded=function(e){r=!0,e=e.target.result;for(var t in n)e.createObjectStore(t,{keyPath:n[t]})},a.onsuccess=function(e){i&&!r?(e.target.result.close(),setTimeout(function(){Sa(this,n,i-1).then(s.resolve,s.reject)}.bind(this),1e3)):(this.a=e.target.result,s.resolve())}.bind(t),a.onerror=Ia.bind(null,a,s),s}function Ia(e,t,n){
e.error?t.reject(new l(2,9,9001,e.error)):t.reject(new l(2,9,9002)),n.preventDefault()}function Ma(e){var t=Ca(e.periods[0],[],new Cn(null,0)),n=We(t,null,null),t=Ye(t,null);return n.push.apply(n,t),{offlineUri:"offline:"+e.key,originalManifestUri:e.originalManifestUri,duration:e.duration,size:e.size,expiration:void 0==e.expiration?1/0:e.expiration,tracks:n,appMetadata:e.appMetadata}}function Ca(e,t,n){var i=e.streams.filter(function(e){return"text"==e.contentType})
;return t=Da(e.streams.filter(function(e){return"audio"==e.contentType}),e.streams.filter(function(e){return"video"==e.contentType}),t),i=i.map(Ta),e.streams.forEach(function(e){e=wa(e),n.Ga(0,e)}),{startTime:e.startTime,variants:t,textStreams:i}}function wa(e){return e.segments.map(function(e,t){return new Ft(t,e.startTime,e.endTime,function(){return[e.uri]},0,null)})}function Da(e,t,n){var i=[];if(!e.length&&!t.length)return i;e.length?t.length||(t=[null]):e=[null]
;for(var a=0,r=0;r<e.length;r++)for(var s=0;s<t.length;s++)if(Pa(e[r],t[s])){var o=e[r],l=t[s],u=n;o={id:a++,language:o?o.language:"",primary:!!o&&o.primary||!!l&&l.primary,audio:Ta(o),video:Ta(l),bandwidth:0,drmInfos:u,allowedByApplication:!0,allowedByKeySystem:!0},i.push(o)}return i}function Pa(e,t){if(!(e&&t&&e.variantIds&&t.variantIds))return!0;for(var n=0;n<e.variantIds.length;n++)if(t.variantIds.some(function(t){return t==e.variantIds[n]}))return!0;return!1}function Ta(e){if(!e)return null
;var t=wa(e),t=new Zt(t);return{id:e.id,createSegmentIndex:Promise.resolve.bind(Promise),findSegmentPosition:t.find.bind(t),getSegmentReference:t.get.bind(t),initSegmentReference:e.initSegmentUri?new Bt(function(){return[e.initSegmentUri]},0,null):null,presentationTimeOffset:e.presentationTimeOffset,mimeType:e.mimeType,codecs:e.codecs,width:e.width||void 0,height:e.height||void 0,frameRate:e.frameRate||void 0,kind:e.kind,encrypted:e.encrypted,keyId:e.keyId,language:e.language,type:e.contentType,
primary:e.primary,trickModeVideo:null,containsEmsgBoxes:!1}}function xa(){return e.indexedDB?new va:null}function Ea(e,t,n,i){this.b={},this.l=[],this.o=i,this.j=e,this.v=t,this.A=n,this.i=this.a=null,this.f=this.g=this.h=this.c=0}function Na(e,t,n,i,a){e.b[t]=e.b[t]||[],e.b[t].push({uris:n.a(),X:n.X,M:n.M,Pb:i,Fb:a})}function La(e,t){e.c=0,e.h=0,e.g=0,e.f=0,B(e.b).forEach(function(e){e.forEach(function(e){null!=e.M?this.c+=e.M-e.X+1:this.g+=e.Pb}.bind(this))}.bind(e)),e.a=t,e.a.size=e.c
;var n=B(e.b).map(function(e){var t=0,n=function(){return this.o?t>=e.length?Promise.resolve():Aa(this,e[t++]).then(n):Promise.reject(new l(2,9,9002))}.bind(this);return n()}.bind(e));return e.b={},e.i=Promise.all(n).then(function(){return ma(this.j,"manifest",t)}.bind(e)).then(function(){this.l=[]}.bind(e)),e.i}function Aa(e,t){var n=L(t.uris,e.A);(t.X||null!=t.M)&&(n.headers.Range="bytes="+t.X+"-"+(null==t.M?"":t.M));var i;return e.v.request(1,n).then(function(e){
return this.a?(i=e.data.byteLength,this.l.push(t.Fb.key),t.Fb.data=e.data,ma(this.j,"segment",t.Fb)):Promise.reject(new l(2,9,9002))}.bind(e)).then(function(){if(!this.a)return Promise.reject(new l(2,9,9002));null==t.M?(this.a.size+=i,this.f+=t.Pb):this.h+=i;var e=(this.h+this.f)/(this.c+this.g),n=Ma(this.a);this.o.progressCallback(n,e)}.bind(e))}function ka(){this.a=-1}function _a(e){var t=new Cn(null,0);t.pa(e.duration);var n=e.drmInfo?[e.drmInfo]:[];return{presentationTimeline:t,
minBufferTime:10,offlineSessionIds:e.sessionIds,periods:e.periods.map(function(e){return Ca(e,n,t)})}}function Oa(e){if(/^offline:([0-9]+)$/.exec(e)){var t={uri:e,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}};return Promise.resolve(t)}if(t=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(e)){var n=Number(t[1]),i=xa();return i?i.init(Ks).then(function(){return i.get("segment",n)}).then(function(t){return i.m().then(function(){if(!t)throw new l(2,9,9003,n);return{
uri:e,data:t.data,headers:{}}})}):Promise.reject(new l(2,9,9e3))}return Promise.reject(new l(2,1,9004,e))}function ja(){this.a=Promise.resolve(),this.c=this.b=this.f=!1,this.g=new Promise(function(e){this.h=e}.bind(this))}function Ra(e){return e.f||(e.a=e.a.then(function(e){return this.b=!0,Promise.resolve(e)}.bind(e),function(e){return this.b=!0,Promise.reject(e)}.bind(e))),e.f=!0,e.a}function Ua(e,t){pt.call(this),this.J=!1,this.f=e,this.A=null,this.l=new _,this.Ob=new it,
this.Ya=this.c=this.h=this.a=this.v=this.g=this.Wa=this.ja=this.N=this.j=this.o=null,this.Bc=1e9,this.Va=[],this.ka=!1,this.Za=!0,this.la=this.G=null,this.B={},this.Xa=[],this.P={},this.b=Ya(this),this.mb={width:1/0,height:1/0},this.i=Ga(),this.Ua=0,this.ia=this.b.preferredAudioLanguage,this.Ba=this.b.preferredTextLanguage,t&&t(this),this.o=new E(this.be.bind(this)),this.Wa=za(this);for(var n=0;n<this.f.textTracks.length;++n){var i=this.f.textTracks[n];i.mode="disabled",
"Shaka Player TextTrack"==i.label&&(this.A=i)}this.A||(this.A=this.f.addTextTrack("subtitles","Shaka Player TextTrack")),this.A.mode="hidden",O(this.l,this.f,"error",this.wd.bind(this))}function za(t){t.N=new MediaSource;var n=new x;return O(t.l,t.N,"sourceopen",n.resolve),t.f.src=e.URL.createObjectURL(t.N),n}function Ba(e){if(e.h&&e.h.configure(e.b.manifest),e.j&&e.j.configure(e.b.drm),e.a){e.a.configure(e.b.streaming);try{e.c.periods.forEach(e.fb.bind(e))}catch(t){e.xa(t)}Ja(e,Hi(e.a))}
e.b.abr.enabled&&!e.Za?e.b.abr.manager.enable():e.b.abr.manager.disable(),e.b.abr.manager.setDefaultEstimate(e.b.abr.defaultBandwidthEstimate),e.b.abr.manager.setRestrictions(e.b.abr.restrictions)}function Fa(e,t,n){e.i.switchHistory.push({timestamp:Date.now()/1e3,id:t.id,type:t.type,fromAdaptation:n}),Va(e,t)}function Va(e,t){var n=nt(e.c,t);e.P[n]||(e.P[n]={}),e.P[n][t.type]=t.id}function Qa(e){e.l&&(e.l.ha(e.N,"sourceopen"),e.l.ha(e.f,"loadeddata"),e.l.ha(e.f,"playing"),e.l.ha(e.f,"pause"),
e.l.ha(e.f,"ended")),e.f&&(e.f.removeAttribute("src"),e.f.load());var t=Promise.all([e.b?e.b.abr.manager.stop():null,e.j?e.j.m():null,e.ja?e.ja.m():null,e.g?e.g.m():null,e.v?e.v.m():null,e.a?e.a.m():null,e.h?e.h.stop():null]);return e.j=null,e.ja=null,e.g=null,e.v=null,e.a=null,e.h=null,e.c=null,e.Ya=null,e.Wa=null,e.N=null,e.Xa=[],e.P={},e.B={},e.i=Ga(),t}function Ha(e){return e.h?Qa(e).then(function(){this.J||(this.xc(!1),this.Wa=za(this))}.bind(e)):Promise.resolve()}function Wa(){return{
".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",serverCertificate:null}}}function Ya(e){return{drm:{retryParameters:N(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1},manifest:{retryParameters:N(),dash:{customScheme:function(e){if(e)return null},clockSyncUri:"",ignoreDrmInfo:!1},hls:{defaultTimeOffset:0}},streaming:{retryParameters:N(),rebufferingGoal:2,
bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,startAtSegmentBoundary:!1,smallGapLimit:.5,jumpLargeGaps:!1},abr:{manager:e.Ob,enabled:!0,defaultBandwidthEstimate:5e5,restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:1/0,minPixels:0,maxPixels:1/0,minBandwidth:0,maxBandwidth:1/0}},preferredAudioLanguage:"",preferredTextLanguage:"",restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:1/0,minPixels:0,maxPixels:1/0,minBandwidth:0,maxBandwidth:1/0}}}function Ga(){return{
width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,estimatedBandwidth:NaN,loadLatency:NaN,playTime:0,bufferingTime:0,switchHistory:[],stateHistory:[]}}function Ka(e,t,n){for(var i in t){var a=t[i],r=n||!1;"text"==i&&(r=!0),e.Za?e.B[i]={stream:a,Ic:r}:Ki(e.a,i,a,r)}}function qa(e){if(e.c){var t=Date.now()/1e3;e.ka?e.i.bufferingTime+=t-e.Ua:e.i.playTime+=t-e.Ua,e.Ua=t}}function Xa(e,t){function n(e,t){if(!e)return null;var n=e.findSegmentPosition(t-a.startTime)
;return null==n?null:(n=e.getSegmentReference(n))?n.startTime+a.startTime:null}var i=Wi(e.a),a=Hi(e.a),r=n(i.video,t),i=n(i.audio,t);return null!=r&&null!=i?Math.max(r,i):null!=r?r:null!=i?i:t}function Za(e,t,n,i,a){if(!n||1>n.length)return e.xa(new l(2,4,4012)),{};e.b.abr.manager.setVariants(n),e.b.abr.manager.setTextStreams(i);var r=[];if(a&&(r=["video","audio"],t.textStreams.length&&r.push("text")),a=Wi(e.a),t=Je(a.audio,a.video,t.variants)){
t.allowedByApplication&&t.allowedByKeySystem||(r.push("audio"),r.push("video"));for(var s in a)t=a[s],"audio"==t.type&&t.language!=n[0].language?r.push(s):"text"==t.type&&0<i.length&&t.language!=i[0].language&&r.push(s)}if(r=r.filter(C),0<r.length){n={};try{n=e.b.abr.manager.chooseStreams(r)}catch(t){e.xa(t)}return n}return{}}function Ja(e,t){var n,i={audio:!1,text:!1},a=Xe(t,e.ia,i),r=Ze(t,e.Ba,i),a=Za(e,t,a,r);for(n in a)Fa(e,a[n],!0);Ka(e,a,!0),$a(e),
a.text&&a.audio&&i.text&&a.text.language!=a.audio.language&&(e.A.mode="showing",tr(e))}function $a(e){Promise.resolve().then(function(){this.J||this.dispatchEvent(new rt("adaptation"))}.bind(e))}function er(e){Promise.resolve().then(function(){this.J||this.dispatchEvent(new rt("trackschanged"))}.bind(e))}function tr(e){e.dispatchEvent(new rt("texttrackvisibility"))}function nr(e){this.a=xa(),this.f=e,this.i=rr(this),this.b=null,this.v=!1,this.j=null,this.g=-1,this.l=0,this.c=null,
this.h=new Ea(this.a,e.o,e.getConfiguration().streaming.retryParameters,this.i)}function ir(){return!!e.indexedDB}function ar(e,t,n,i){function a(){}var r,s,o,l=e.f.o,u=e.f.getConfiguration();return Mn(t,l,u.manifest.retryParameters,i).then(function(e){return cr(this),o=new e,o.configure(u.manifest),o.start(t,{networkingEngine:l,filterPeriod:this.o.bind(this),onTimelineRegionAdded:function(){},onEvent:function(){},onError:n})}.bind(e)).then(function(e){return cr(this),r=e,
s=new te(l,n,a,function(){}),s.configure(u.drm),s.init(r,!0)}.bind(e)).then(function(){return cr(this),lr(r)}.bind(e)).then(function(){return cr(this),ae(s)}.bind(e)).then(function(){return cr(this),o.stop()}.bind(e)).then(function(){return cr(this),{manifest:r,Jc:s}}.bind(e)).catch(function(e){if(o)return o.stop().then(function(){throw e});throw e})}function rr(e){return{trackSelectionCallback:e.A.bind(e),progressCallback:function(e,t){if(e||t)return null}}}function sr(e){
return e.a?e.a.a?Promise.resolve():e.a.init(Ks):Promise.reject(new l(2,9,9e3))}function or(e){var t=e.b?e.b.m():Promise.resolve();return e.b=null,e.c=null,e.v=!1,e.j=null,e.g=-1,t}function lr(e){var t=e.periods.map(function(e){return e.variants}).reduce(b,[]).map(function(e){var t=[];return e.audio&&t.push(e.audio),e.video&&t.push(e.video),t}).reduce(b,[]).filter(C);return e=e.periods.map(function(e){return e.textStreams}).reduce(b,[]),t.push.apply(t,e),Promise.all(t.map(function(e){
return e.createSegmentIndex()}))}function ur(e,t,n,i,a){for(var r=[],s=e.c.presentationTimeline.ma(),o=s,l=n.findSegmentPosition(s),u=null!=l?n.getSegmentReference(l):null;u;)o=e.a.c.segment++,Na(e.h,n.type,u,(u.endTime-u.startTime)*i/8,{key:o,data:null,manifestKey:e.g,streamNumber:n.id,segmentNumber:o}),r.push({startTime:u.startTime,endTime:u.endTime,uri:"offline:"+e.g+"/"+n.id+"/"+o}),o=u.endTime+t.startTime,u=n.getSegmentReference(++l);return e.l=Math.max(e.l,o-s),t=null,
n.initSegmentReference&&(o=e.a.c.segment++,t="offline:"+e.g+"/"+n.id+"/"+o,Na(e.h,n.contentType,n.initSegmentReference,0,{key:o,data:null,manifestKey:e.g,streamNumber:n.id,segmentNumber:-1})),e=[],null!=a&&e.push(a),{id:n.id,primary:n.primary,presentationTimeOffset:n.presentationTimeOffset||0,contentType:n.type,mimeType:n.mimeType,codecs:n.codecs,frameRate:n.frameRate,kind:n.kind,language:n.language,width:n.width||null,height:n.height||null,initSegmentUri:t,encrypted:n.encrypted,keyId:n.keyId,
segments:r,variantIds:e}}function cr(e){if(!e.f)throw new l(2,9,9002)}function dr(e){Xs.push(e)}function pr(e){var t=e.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if("function"==typeof Event)var n=new Event(t,e);else n=document.createEvent("Event"),n.initEvent(t,e.bubbles,e.cancelable);e.target.dispatchEvent(n)}function hr(e){this.f=[],this.b=[],this.a=[],(new Ht).ca("pssh",this.c.bind(this)).parse(e.buffer)}function fr(e,t){try{var n=new vr(e,t);return Promise.resolve(n)}catch(e){
return Promise.reject(e)}}function vr(e,t){this.keySystem=e;for(var n=!1,i=0;i<t.length;++i){var a=t[i],r={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:a.initDataTypes,sessionTypes:["temporary"],label:a.label},s=!1;if(a.audioCapabilities)for(var o=0;o<a.audioCapabilities.length;++o){var l=a.audioCapabilities[o];if(l.contentType){s=!0;var u=l.contentType.split(";")[0]
;MSMediaKeys.isTypeSupported(this.keySystem,u)&&(r.audioCapabilities.push(l),n=!0)}}if(a.videoCapabilities)for(o=0;o<a.videoCapabilities.length;++o)l=a.videoCapabilities[o],l.contentType&&(s=!0,u=l.contentType.split(";")[0],MSMediaKeys.isTypeSupported(this.keySystem,u)&&(r.videoCapabilities.push(l),n=!0));if(s||(n=MSMediaKeys.isTypeSupported(this.keySystem,"video/mp4")),"required"==a.persistentState&&(r.persistentState="required",r.sessionTypes=["persistent-license"]),n)return void(this.a=r)}
throw a=Error("Unsupported keySystem"),a.name="NotSupportedError",a.code=DOMException.NOT_SUPPORTED_ERR,a}function mr(e){var t=this.mediaKeys;return t&&t!=e&&yr(t,null),delete this.mediaKeys,(this.mediaKeys=e)?yr(e,this):Promise.resolve()}function gr(e){this.a=new MSMediaKeys(e),this.b=new _}function yr(e,t){function n(){t.msSetMediaKeys(i.a),t.removeEventListener("loadedmetadata",n)}if(R(e.b),!t)return Promise.resolve();O(e.b,t,"msneedkey",Sr);var i=e;try{
return 1<=t.readyState?t.msSetMediaKeys(e.a):t.addEventListener("loadedmetadata",n),Promise.resolve()}catch(e){return Promise.reject(e)}}function br(e){pt.call(this),this.c=null,this.g=e,this.b=this.a=null,this.f=new _,this.sessionId="",this.expiration=NaN,this.closed=new x,this.keyStatuses=new Cr}function Sr(e){var t=document.createEvent("CustomEvent");if(t.initCustomEvent("encrypted",!1,!1,null),t.initDataType="cenc",e=e.initData){var n=new hr(e);if(!(1>=n.a.length)){
for(var i=[],a=0;a<n.a.length;a++)i.push(e.subarray(n.a[a].start,n.a[a].end+1));for(a=Ir,e=[],n=0;n<i.length;++n){for(var r=!1,s=0;s<e.length&&!(r=a?a(i[n],e[s]):i[n]===e[s]);++s);r||e.push(i[n])}for(a=i=0;a<e.length;a++)i+=e[a].length;for(i=new Uint8Array(i),a=n=0;a<e.length;a++)i.set(e[a],n),n+=e[a].length;e=i}}t.initData=e,this.dispatchEvent(t)}function Ir(e,t){return ee(e,t)}function Mr(e,t){e.keyStatuses.Ib(t),e.dispatchEvent(new rt("keystatuseschange"))}function Cr(){this.size=0,
this.a=void 0}function wr(){return Promise.reject(Error("The key system specified is not supported."))}function Dr(e){return e?Promise.reject(Error("MediaKeys not supported.")):Promise.resolve()}function Pr(){throw new TypeError("Illegal constructor.")}function Tr(){throw new TypeError("Illegal constructor.")}function xr(t){Js=t,$s=new Uint8Array([0]).buffer,navigator.requestMediaKeySystemAccess=Nr,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,
HTMLMediaElement.prototype.setMediaKeys=Lr,e.MediaKeys=kr,e.MediaKeySystemAccess=Ar}function Er(e){var t=Js;return t?t+e.charAt(0).toUpperCase()+e.slice(1):e}function Nr(e,t){try{var n=new Ar(e,t);return Promise.resolve(n)}catch(e){return Promise.reject(e)}}function Lr(e){var t=this.mediaKeys;return t&&t!=e&&_r(t,null),delete this.mediaKeys,(this.mediaKeys=e)&&_r(e,this),Promise.resolve()}function Ar(e,t){this.a=this.keySystem=e;var n=!0;"org.w3.clearkey"==e&&(this.a="webkit-org.w3.clearkey",
n=!1);for(var i=!1,a=document.getElementsByTagName("video"),r=a.length?a[0]:document.createElement("video"),s=0;s<t.length;++s){a=t[s];var o={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:a.initDataTypes,sessionTypes:["temporary"],label:a.label},l=!1;if(a.audioCapabilities)for(var u=0;u<a.audioCapabilities.length;++u){var c=a.audioCapabilities[u];if(c.contentType){var l=!0,d=c.contentType.split(";")[0]
;r.canPlayType(d,this.a)&&(o.audioCapabilities.push(c),i=!0)}}if(a.videoCapabilities)for(u=0;u<a.videoCapabilities.length;++u)c=a.videoCapabilities[u],c.contentType&&(l=!0,r.canPlayType(c.contentType,this.a)&&(o.videoCapabilities.push(c),i=!0));if(l||(i=r.canPlayType("video/mp4",this.a)||r.canPlayType("video/webm",this.a)),"required"==a.persistentState&&(n?(o.persistentState="required",o.sessionTypes=["persistent-license"]):i=!1),i)return void(this.b=o)}throw n="Unsupported keySystem",
"org.w3.clearkey"!=e&&"com.widevine.alpha"!=e||(n="None of the requested configurations were supported."),n=Error(n),n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n}function kr(e){this.g=e,this.b=null,this.a=new _,this.c=[],this.f={}}function _r(e,t){e.b=t,R(e.a);var n=Js;t&&(O(e.a,t,n+"needkey",e.Ad.bind(e)),O(e.a,t,n+"keymessage",e.zd.bind(e)),O(e.a,t,n+"keyadded",e.xd.bind(e)),O(e.a,t,n+"keyerror",e.yd.bind(e)))}function Or(e,t){var n=e.f[t]
;return n?n:(n=e.c.shift())?(n.sessionId=t,e.f[t]=n):null}function jr(e,t,n){pt.call(this),this.f=e,this.h=!1,this.a=this.b=null,this.c=t,this.g=n,this.sessionId="",this.expiration=NaN,this.closed=new x,this.keyStatuses=new zr}function Rr(e,t,n){if(e.h)return Promise.reject(Error("The session is already initialized."));e.h=!0;try{if("persistent-license"==e.g)if(n)var i=new Uint8Array(Y("LOAD_SESSION|"+n));else{var a=Y("PERSISTENT|"),r=new Uint8Array(a.byteLength+t.byteLength)
;r.set(new Uint8Array(a),0),r.set(new Uint8Array(t),a.byteLength),i=r}else i=new Uint8Array(t)}catch(e){return Promise.reject(e)}e.b=new x;var s=Er("generateKeyRequest");try{e.f[s](e.c,i)}catch(t){if("InvalidStateError"!=t.name)return e.b=null,Promise.reject(t);setTimeout(function(){try{this.f[s](this.c,i)}catch(e){this.b.reject(e),this.b=null}}.bind(e),10)}return e.b}function Ur(e,t){e.keyStatuses.Ib(t),e.dispatchEvent(new rt("keystatuseschange"))}function zr(){this.size=0,this.a=void 0}
function Br(){var e=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var t=e.apply(this,arguments);return t.abort=function(){},t}}function Fr(){var e=MediaSource.prototype.endOfStream;MediaSource.prototype.endOfStream=function(){for(var t,n=0,i=0;i<this.sourceBuffers.length;++i)t=this.sourceBuffers[i],t=t.buffered.end(t.buffered.length-1),n=Math.max(n,t);if(!isNaN(this.duration)&&n<this.duration)for(this.Xb=!0,
i=0;i<this.sourceBuffers.length;++i)t=this.sourceBuffers[i],t.Rb=!1;return e.apply(this,arguments)};var t=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var e=t.apply(this,arguments);return e.N=this,e.addEventListener("updateend",Vr,!1),this.a||(this.addEventListener("sourceclose",Qr,!1),this.a=!0),e}}function Vr(e){var t=e.target,n=t.N;if(n.Xb){for(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),t.Rb=!0,
e=0;e<n.sourceBuffers.length;++e)if(0==n.sourceBuffers[e].Rb)return;n.Xb=!1}}function Qr(e){e=e.target;for(var t=0;t<e.sourceBuffers.length;++t)e.sourceBuffers[t].removeEventListener("updateend",Vr,!1);e.removeEventListener("sourceclose",Qr,!1)}function Hr(e){if(this.c=[],this.b=[],this.za=eo,e)try{e(this.fa.bind(this),this.a.bind(this))}catch(e){this.a(e)}}function Wr(e){var t=new Hr;return t.fa(void 0),t.then(function(){return e})}function Yr(e){var t=new Hr;return t.a(e),t}function Gr(e){
function t(e,t,n){e.za==eo&&(a[t]=n,++i==a.length&&e.fa(a))}var n=new Hr;if(!e.length)return n.fa([]),n;for(var i=0,a=Array(e.length),r=n.a.bind(n),s=0;s<e.length;++s)e[s]&&e[s].then?e[s].then(t.bind(null,n,s),r):t(n,s,e[s]);return n}function Kr(e){for(var t=new Hr,n=t.fa.bind(t),i=t.a.bind(t),a=0;a<e.length;++a)e[a]&&e[a].then?e[a].then(n,i):n(e[a]);return t}function qr(e,t,n){no.push(function(){if(n&&"function"==typeof n){try{var e=n(this.jb)}catch(e){return void t.a(e)}try{var i=e&&e.then
}catch(e){return void t.a(e)}e instanceof Hr?e==t?t.a(new TypeError("Chaining cycle detected")):e.then(t.fa.bind(t),t.a.bind(t)):i?Xr(e,i,t):t.fa(e)}else 1==this.za?t.fa(this.jb):t.a(this.jb)}.bind(e)),null==to&&(to=Jr(Zr))}function Xr(e,t,n){try{var i=!1;t.call(e,function(e){if(!i){i=!0;try{var t=e&&e.then}catch(e){return void n.a(e)}t?Xr(e,t,n):n.fa(e)}},n.a.bind(n))}catch(e){n.a(e)}}function Zr(){for(;no.length;){null!=to&&($r(to),to=null);var e=no;no=[];for(var t=0;t<e.length;++t)e[t]()}}
function Jr(){return 0}function $r(){}function es(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}function ts(t,n,i){return new e.TextTrackCue(t,n,i)}function ns(t,n,i){return new e.TextTrackCue(t+"-"+n+"-"+i,t,n,i)}var is,as=this;as.ue=!0,s.prototype.setDefaultEstimate=function(e){this.b=e},s.prototype.getBandwidthEstimate=function(){
return 128e3>this.a?this.b:Math.min(r(this.c),r(this.f))},t("shaka.util.Error",l),l.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null,"  ")},l.Severity={RECOVERABLE:1,CRITICAL:2},l.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9},l.Code={UNSUPPORTED_SCHEME:1e3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,UNKNOWN_DATA_URI_ENCODING:1005,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,
INVALID_TEXT_HEADER:2e3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,BUFFER_READ_OUT_OF_BOUNDS:3e3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,
WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,UNABLE_TO_GUESS_MANIFEST_TYPE:4e3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,
DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,UNPLAYABLE_PERIOD:4011,RESTRICTIONS_CANNOT_BE_MET:4012,NO_PERIODS:4014,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_COULD_NOT_GUESS_MIME_TYPE:4021,HLS_MASTER_PLAYLIST_NOT_PROVIDED:4022,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,
HLS_KEYFORMATS_NOT_SUPPORTED:4026,INVALID_STREAMS_CHOSEN:5005,NO_RECOGNIZED_KEY_SYSTEMS:6e3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,LOAD_INTERRUPTED:7e3,
CAST_API_UNAVAILABLE:8e3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9e3,INDEXED_DB_ERROR:9001,OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,STORE_ALREADY_IN_PROGRESS:9006,NO_INIT_DATA_FOR_OFFLINE:9007}
;var rs=/^(?:([^:\/?#.]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/#?]*?)(?::([0-9]+))?(?=[\/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;is=u.prototype,is.$="",is.Aa="",is.ba="",is.Ia=null,is.W="",is.ta="",is.toString=function(){var e=[],t=this.$;if(t&&e.push(f(t,ss,!0),":"),t=this.ba){e.push("//");var n=this.Aa;n&&e.push(f(n,ss,!0),"@"),e.push(encodeURIComponent(t).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t=this.Ia,null!=t&&e.push(":",String(t))}return(t=this.W)&&(this.ba&&"/"!=t.charAt(0)&&e.push("/"),
e.push(f(t,"/"==t.charAt(0)?ls:os,!0))),(t=this.a.toString())&&e.push("?",t),(t=this.ta)&&e.push("#",f(t,cs)),e.join("")},is.resolve=function(e){var t=new u(this);"data"===t.$&&(t=new u);var n=!!e.$;n?c(t,e.$):n=!!e.Aa,n?t.Aa=e.Aa:n=!!e.ba,n?t.ba=e.ba:n=null!=e.Ia;var i=e.W;if(n)d(t,e.Ia);else if(n=!!e.W){if("/"!=i.charAt(0))if(this.ba&&!this.W)i="/"+i;else{var a=t.W.lastIndexOf("/");-1!=a&&(i=t.W.substr(0,a+1)+i)}if(".."==i||"."==i)i="";else if(-1!=i.indexOf("./")||-1!=i.indexOf("/.")){
for(var a=!i.lastIndexOf("/",0),i=i.split("/"),r=[],s=0;s<i.length;){var o=i[s++];"."==o?a&&s==i.length&&r.push(""):".."==o?((1<r.length||1==r.length&&""!=r[0])&&r.pop(),a&&s==i.length&&r.push("")):(r.push(o),a=!0)}i=r.join("/")}}return n?t.W=i:n=""!==e.a.toString(),n?p(t,g(e.a)):n=!!e.ta,n&&(t.ta=e.ta),t};var ss=/[#\/\?@]/g,os=/[\#\?:]/g,ls=/[\#\?]/g,us=/[\#\?@]/g,cs=/#/g;m.prototype.a=null,m.prototype.c=null,m.prototype.toString=function(){if(this.b)return this.b;if(!this.a)return"";var e,t=[]
;for(e in this.a)for(var n=encodeURIComponent(e),i=this.a[e],a=0;a<i.length;a++){var r=n;""!==i[a]&&(r+="="+encodeURIComponent(i[a])),t.push(r)}return this.b=t.join("&")},t("shaka.net.NetworkingEngine",E),E.RequestType={MANIFEST:0,SEGMENT:1,LICENSE:2,APP:3};var ds={};E.registerScheme=function(e,t){ds[e]=t},E.unregisterScheme=function(e){delete ds[e]},E.prototype.Jd=function(e){this.b.push(e)},E.prototype.registerRequestFilter=E.prototype.Jd,E.prototype.me=function(e){var t=this.b
;0<=(e=t.indexOf(e))&&t.splice(e,1)},E.prototype.unregisterRequestFilter=E.prototype.me,E.prototype.Gc=function(){this.b=[]},E.prototype.clearAllRequestFilters=E.prototype.Gc,E.prototype.Kd=function(e){this.c.push(e)},E.prototype.registerResponseFilter=E.prototype.Kd,E.prototype.ne=function(e){var t=this.c;0<=(e=t.indexOf(e))&&t.splice(e,1)},E.prototype.unregisterResponseFilter=E.prototype.ne,E.prototype.Hc=function(){this.c=[]},E.prototype.clearAllResponseFilters=E.prototype.Hc,
E.prototype.m=function(){this.f=!0,this.b=[],this.c=[];for(var e=[],t=0;t<this.a.length;++t)e.push(this.a[t].catch(S));return Promise.all(e)},E.prototype.destroy=E.prototype.m,E.prototype.request=function(t,n){if(this.f)return Promise.reject();n.method=n.method||"GET",n.headers=n.headers||{},n.retryParameters=n.retryParameters?T(n.retryParameters):N(),n.uris=T(n.uris);var i=Date.now(),a=Promise.resolve();return this.b.forEach(function(e){a=a.then(e.bind(null,t,n))}),a=a.catch(function(e){
throw new l(2,1,1006,e)}),a=a.then(function(){for(var a=Date.now()-i,r=n.retryParameters||{},s=r.maxAttempts||1,o=r.backoffFactor||2,r=null==r.baseDelay?1e3:r.baseDelay,l=this.g(t,n,0,a),u=1;u<s;u++)l=l.catch(function(i,r,s){if(s&&1==s.severity){s=new x;var o=n.retryParameters||{};return e.setTimeout(s.resolve,i*(1+(2*Math.random()-1)*(null==o.fuzzFactor?.5:o.fuzzFactor))),s.then(this.g.bind(this,t,n,r,a))}throw s}.bind(this,r,u%n.uris.length)),r*=o;return l}.bind(this)),this.a.push(a),
a.then(function(e){return 0<=this.a.indexOf(a)&&this.a.splice(this.a.indexOf(a),1),this.h&&!e.fromCache&&1==t&&this.h(e.timeMs,e.data.byteLength),e}.bind(this)).catch(function(e){return e&&(e.severity=2),0<=this.a.indexOf(a)&&this.a.splice(this.a.indexOf(a),1),Promise.reject(e)}.bind(this))},E.prototype.request=E.prototype.request,E.prototype.g=function(e,t,n,i){if(this.f)return Promise.reject();var a=new u(t.uris[n]),r=a.$;if(r||(r=location.protocol,r=r.slice(0,-1),c(a,r),
t.uris[n]=a.toString()),!(r=ds[r]))return Promise.reject(new l(2,1,1e3,a));var s=Date.now();return r(t.uris[n],t,e).then(function(t){void 0==t.timeMs&&(t.timeMs=Date.now()-s);var n=Date.now(),a=Promise.resolve();return this.c.forEach(function(n){a=a.then(function(){return Promise.resolve(n(e,t))}.bind(this))}),a=a.catch(function(e){var t=2;throw e instanceof l&&(t=e.severity),new l(t,1,1007,e)}),a.then(function(){return t.timeMs+=Date.now()-n,t.timeMs+=i,t})}.bind(this))},
k.prototype.push=function(e,t){this.a.hasOwnProperty(e)?this.a[e].push(t):this.a[e]=[t]},k.prototype.get=function(e){return(e=this.a[e])?e.slice():null},k.prototype.remove=function(e,t){var n=this.a[e];if(n)for(var i=0;i<n.length;++i)n[i]==t&&(n.splice(i,1),--i)},_.prototype.m=function(){return R(this),this.a=null,Promise.resolve()},_.prototype.ha=function(e,t){if(this.a)for(var n=this.a.get(t)||[],i=0;i<n.length;++i){var a=n[i];a.target==e&&(a.ha(),this.a.remove(t,a))}},
U.prototype.ha=function(){this.target.removeEventListener(this.type,this.a,!1),this.a=this.target=null},t("shaka.util.StringUtils.fromUTF8",Q),t("shaka.util.StringUtils.fromUTF16",H),t("shaka.util.StringUtils.fromBytesAutoDetect",W),t("shaka.util.StringUtils.toUTF8",Y),K.prototype.cancel=function(){null!=this.a&&(clearTimeout(this.a),this.a=null)},t("shaka.util.Uint8ArrayUtils.toBase64",X),t("shaka.util.Uint8ArrayUtils.fromBase64",Z),t("shaka.util.Uint8ArrayUtils.fromHex",J),
t("shaka.util.Uint8ArrayUtils.toHex",$),t("shaka.util.Uint8ArrayUtils.equal",ee),t("shaka.util.Uint8ArrayUtils.concat",function(e){for(var t=0,n=0;n<arguments.length;++n)t+=arguments[n].length;for(var t=new Uint8Array(t),i=0,n=0;n<arguments.length;++n)t.set(arguments[n],i),i+=arguments[n].length;return t}),is=te.prototype,is.m=function(){this.c=!0;var e=this.a.map(function(e){return(e.aa.close()||Promise.resolve()).catch(S)});return this.l.reject(),this.f&&e.push(this.f.m()),
this.j&&e.push(this.j.setMediaKeys(null).catch(S)),this.P&&(clearInterval(this.P),this.P=null),this.B&&this.B.cancel(),this.f=this.j=this.i=this.v=this.b=this.B=null,this.a=[],this.o=[],this.la=this.g=this.h=this.ka=null,Promise.all(e)},is.configure=function(e){this.h=e},is.init=function(e,t){var n={},i=[];return this.ja=t,this.o=e.offlineSessionIds,se(this,e,t||0<e.offlineSessionIds.length,n,i),i.length?oe(this,n,i):(this.J=!0,Promise.resolve())},is.keySystem=function(){
return this.b?this.b.keySystem:""},is.ab=function(){var e=this.a.map(function(e){return e=e.aa.expiration,isNaN(e)?1/0:e});return Math.min.apply(Math,e)},is.dd=function(e){for(var t=new Uint8Array(e.initData),n=0;n<this.a.length;++n)if(ee(t,this.a[n].initData))return;he(this,e.initDataType,t)},is.ic=function(e){this.h.delayLicenseRequestUntilPlayed&&this.j.paused&&!this.ia?this.G.push(e):fe(this,e)},is.cc=function(e){e=e.target;var t;for(t=0;t<this.a.length&&this.a[t].aa!=e;++t);
if(t!=this.a.length){var n=!1;e.keyStatuses.forEach(function(e,i){if("string"==typeof i){var a=i;i=e,e=a}if("com.microsoft.playready"==this.b.keySystem&&16==i.byteLength){var a=new DataView(i),r=a.getUint32(0,!0),s=a.getUint16(4,!0),o=a.getUint16(6,!0);a.setUint32(0,r,!1),a.setUint16(4,s,!1),a.setUint16(6,o,!1)}"com.microsoft.playready"==this.b.keySystem&&"status-pending"==e&&(e="usable"),"status-pending"!=e&&(this.a[t].loaded=!0,this.a.every(function(e){return e.loaded})&&this.l.resolve()),
"expired"==e&&(n=!0),a=$(new Uint8Array(i)),this.A[a]=e}.bind(this));var i=e.expiration-Date.now();(0>i||n&&1e3>i)&&!this.a[t].ib&&(this.a.splice(t,1),e.close()),q(this.B)}},is.Id=function(){function e(e,t){return"expired"==t}!z(this.A)&&V(this.A,e)&&this.g(new l(2,6,6014)),this.Ba(this.A)},is.od=function(){for(var e=0;e<this.G.length;e++)fe(this,this.G[e]);this.ia=!0,this.G=[]},is.Hd=function(){this.a.forEach(function(e){var t=e.xb,n=e.aa.expiration;isNaN(n)&&(n=1/0),
n!=t&&(this.la(e.aa.sessionId,n),e.xb=n)}.bind(this))};var ps={};t("shaka.media.TextEngine.registerParser",Se),t("shaka.media.TextEngine.unregisterParser",function(e){delete ps[e]}),t("shaka.media.TextEngine.makeCue",Ie),be.prototype.m=function(){return this.c&&Ce(this,function(){return!0}),this.c=this.f=null,Promise.resolve()},be.prototype.remove=function(e,t){return Promise.resolve().then(function(){this.c&&(Ce(this,function(n){return!(n.startTime>=t||n.endTime<=e)}),
null==this.b||t<=this.b||e>=this.a||(e<=this.b&&t>=this.a?this.b=this.a=null:e<=this.b&&t<this.a?this.b=t:e>this.b&&t>=this.a&&(this.a=e)))}.bind(this))},we.prototype.parseInit=function(e){this.Na(e,0,null,null)},we.prototype.parseMedia=function(e,t){return this.Na(e,t.periodStart,t.segmentStart,t.segmentEnd)},is=xe.prototype,is.m=function(){this.h=!0;var e,t=[];for(e in this.b){var n=this.b[e],i=n[0];for(this.b[e]=n.slice(0,1),i&&t.push(i.p.catch(S)),i=1;i<n.length;++i)n[i].p.catch(S),
n[i].p.reject()}return this.a&&t.push(this.a.m()),Promise.all(t).then(function(){this.g.m(),this.a=this.i=this.N=this.f=this.g=null,this.c={},this.b={}}.bind(this))},is.init=function(e){for(var t in e){var n=e[t];"text"==t?Ne(this,n):(n=this.N.addSourceBuffer(n),O(this.g,n,"error",this.he.bind(this,t)),O(this.g,n,"updateend",this.Ha.bind(this,t)),this.c[t]=n,this.b[t]=[])}},is.remove=function(e,t,n){return"text"==e?this.a.remove(t,n):je(this,e,this.oc.bind(this,e,t,n))},
is.endOfStream=function(e){return Re(this,function(){e?this.N.endOfStream(e):this.N.endOfStream()}.bind(this))},is.pa=function(e){return Re(this,function(){this.N.duration=e}.bind(this))},is.Y=function(){return this.N.duration},is.ge=function(e,t){this.c[e].appendBuffer(t)},is.oc=function(e,t,n){n<=t?this.Ha(e):this.c[e].remove(t,n)},is.Cc=function(e){var t=this.c[e].appendWindowEnd;this.c[e].abort(),this.c[e].appendWindowEnd=t,this.Ha(e)},is.Mc=function(e){this.f.currentTime-=.001,this.Ha(e)},
is.Xd=function(e,t){this.c[e].timestampOffset=t,this.Ha(e)},is.Vd=function(e,t){this.c[e].appendWindowEnd=t+.04,this.Ha(e)},is.he=function(e){this.b[e][0].p.reject(new l(2,3,3014,this.f.error?this.f.error.code:0))},is.Ha=function(e){var t=this.b[e][0];t&&(t.p.resolve(),Ue(this,e))};var hs=1,fs=2,vs={aar:"aa",abk:"ab",afr:"af",aka:"ak",alb:"sq",amh:"am",ara:"ar",arg:"an",arm:"hy",asm:"as",ava:"av",ave:"ae",aym:"ay",aze:"az",bak:"ba",bam:"bm",baq:"eu",bel:"be",ben:"bn",bih:"bh",bis:"bi",bod:"bo",
bos:"bs",bre:"br",bul:"bg",bur:"my",cat:"ca",ces:"cs",cha:"ch",che:"ce",chi:"zh",chu:"cu",chv:"cv",cor:"kw",cos:"co",cre:"cr",cym:"cy",cze:"cs",dan:"da",deu:"de",div:"dv",dut:"nl",dzo:"dz",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",ewe:"ee",fao:"fo",fas:"fa",fij:"fj",fin:"fi",fra:"fr",fre:"fr",fry:"fy",ful:"ff",geo:"ka",ger:"de",gla:"gd",gle:"ga",glg:"gl",glv:"gv",gre:"el",grn:"gn",guj:"gu",hat:"ht",hau:"ha",heb:"he",her:"hz",hin:"hi",hmo:"ho",hrv:"hr",hun:"hu",hye:"hy",ibo:"ig",ice:"is",
ido:"io",iii:"ii",iku:"iu",ile:"ie",ina:"ia",ind:"id",ipk:"ik",isl:"is",ita:"it",jav:"jv",jpn:"ja",kal:"kl",kan:"kn",kas:"ks",kat:"ka",kau:"kr",kaz:"kk",khm:"km",kik:"ki",kin:"rw",kir:"ky",kom:"kv",kon:"kg",kor:"ko",kua:"kj",kur:"ku",lao:"lo",lat:"la",lav:"lv",lim:"li",lin:"ln",lit:"lt",ltz:"lb",lub:"lu",lug:"lg",mac:"mk",mah:"mh",mal:"ml",mao:"mi",mar:"mr",may:"ms",mkd:"mk",mlg:"mg",mlt:"mt",mon:"mn",mri:"mi",msa:"ms",mya:"my",nau:"na",nav:"nv",nbl:"nr",nde:"nd",ndo:"ng",nep:"ne",nld:"nl",
nno:"nn",nob:"nb",nor:"no",nya:"ny",oci:"oc",oji:"oj",ori:"or",orm:"om",oss:"os",pan:"pa",per:"fa",pli:"pi",pol:"pl",por:"pt",pus:"ps",que:"qu",roh:"rm",ron:"ro",rum:"ro",run:"rn",rus:"ru",sag:"sg",san:"sa",sin:"si",slk:"sk",slo:"sk",slv:"sl",sme:"se",smo:"sm",sna:"sn",snd:"sd",som:"so",sot:"st",spa:"es",sqi:"sq",srd:"sc",srp:"sr",ssw:"ss",sun:"su",swa:"sw",swe:"sv",tah:"ty",tam:"ta",tat:"tt",tel:"te",tgk:"tg",tgl:"tl",tha:"th",tib:"bo",tir:"ti",ton:"to",tsn:"tn",tso:"ts",tuk:"tk",tur:"tr",
twi:"tw",uig:"ug",ukr:"uk",urd:"ur",uzb:"uz",ven:"ve",vie:"vi",vol:"vo",wel:"cy",wln:"wa",wol:"wo",xho:"xh",yid:"yi",yor:"yo",zha:"za",zho:"zh",zul:"zu"};t("shaka.abr.SimpleAbrManager",it),it.prototype.stop=function(){this.f=null,this.b=!1,this.h=[],this.g=[],this.c=null},it.prototype.stop=it.prototype.stop,it.prototype.init=function(e){this.f=e},it.prototype.init=it.prototype.init,it.prototype.chooseStreams=function(e){var t={};if(-1<e.indexOf("audio")||-1<e.indexOf("video")){
var n=this.h,i=at(this.i,n),a=this.a.getBandwidthEstimate();if(n.length&&!i.length)throw new l(2,4,4012);for(var n=i[0],r=0;r<i.length;++r){var s=i[r],o=(i[r+1]||{bandwidth:1/0}).bandwidth/.85;a>=s.bandwidth/.95&&a<=o&&(n=s)}(i=n)&&i.video&&(t.video=i.video),i&&i.audio&&(t.audio=i.audio)}return-1<e.indexOf("text")&&(t.text=this.g[0]),this.c=Date.now(),t},it.prototype.chooseStreams=it.prototype.chooseStreams,it.prototype.enable=function(){this.b=!0},it.prototype.enable=it.prototype.enable,
it.prototype.disable=function(){this.b=!1},it.prototype.disable=it.prototype.disable,it.prototype.segmentDownloaded=function(e,t){var n=this.a;if(!(16e3>t)){var i=8e3*t/e,r=e/1e3;n.a+=t,a(n.c,r,i),a(n.f,r,i)}if(null!=this.c&&this.b)e:{if(this.j){if(8e3>Date.now()-this.c)break e}else{if(!(128e3<=this.a.a))break e;this.j=!0}n=this.chooseStreams(["audio","video"]),this.a.getBandwidthEstimate(),this.f(n)}},it.prototype.segmentDownloaded=it.prototype.segmentDownloaded,
it.prototype.getBandwidthEstimate=function(){return this.a.getBandwidthEstimate()},it.prototype.getBandwidthEstimate=it.prototype.getBandwidthEstimate,it.prototype.setDefaultEstimate=function(e){this.a.setDefaultEstimate(e)},it.prototype.setDefaultEstimate=it.prototype.setDefaultEstimate,it.prototype.setRestrictions=function(e){this.i=e},it.prototype.setRestrictions=it.prototype.setRestrictions,it.prototype.setVariants=function(e){this.h=e},it.prototype.setVariants=it.prototype.setVariants,
it.prototype.setTextStreams=function(e){this.g=e},it.prototype.setTextStreams=it.prototype.setTextStreams,rt.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},rt.prototype.stopImmediatePropagation=function(){this.a=!0},rt.prototype.stopPropagation=function(){}
;var ms="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),gs="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),ys=["loop","playbackRate"],bs=["pause","play"],Ss="adaptation buffering emsg error loading unloading texttrackvisibility timelineregionadded timelineregionenter timelineregionexit trackschanged".split(" "),Is="drmInfo getAudioLanguages getConfiguration getExpiration getManifestUri getPlaybackRate getPlayheadTimeAsDate getTextLanguages getTextTracks getTracks getStats getVariantTracks isBuffering isInProgress isLive isTextTrackVisible keySystem seekRange".split(" "),Ms=[["getConfiguration","configure"]],Cs=[["isTextTrackVisible","setTextTrackVisibility"]],ws="addTextTrack cancelTrickPlay configure resetConfiguration selectAudioLanguage selectTextLanguage selectTextTrack selectTrack selectVariantTrack setTextTrackVisibility trickPlay".split(" "),Ds=["load","unload"]
;is=ut.prototype,is.m=function(){return ct(this),this.a&&(this.a.leave(function(){},function(){}),this.a=null),this.G=this.B=this.l=null,this.c=this.j=this.h=!1,this.g=this.f=this.b=this.i=null,Promise.resolve()},is.V=function(){return this.c},is.Db=function(){return this.A},is.init=function(){if(e.chrome&&chrome.cast&&chrome.cast.isAvailable){delete e.__onGCastApiAvailable,this.h=!0,this.l()
;var t=new chrome.cast.SessionRequest(this.J),t=new chrome.cast.ApiConfig(t,this.ed.bind(this),this.qd.bind(this),"origin_scoped");chrome.cast.initialize(t,function(){},function(){})}else e.__onGCastApiAvailable=function(e){e&&this.init()}.bind(this)},is.Gb=function(e){this.i=e,this.c&&dt(this,{type:"appData",appData:this.i})},is.cast=function(e){return this.h?this.j?this.c?Promise.reject(new l(1,8,8002)):(this.g=new x,chrome.cast.requestSession(this.zb.bind(this,e),this.ac.bind(this)),
this.g):Promise.reject(new l(1,8,8001)):Promise.reject(new l(1,8,8e3))},is.$a=function(){this.c&&(ct(this),this.a&&(this.a.stop(function(){},function(){}),this.a=null))},is.get=function(e,t){if("video"==e){if(0<=bs.indexOf(t))return this.nc.bind(this,e,t)}else if("player"==e){if(0<=ws.indexOf(t))return this.nc.bind(this,e,t);if(0<=Ds.indexOf(t))return this.Md.bind(this,e,t);if(0<=Is.indexOf(t))return this.jc.bind(this,e,t)}return this.jc(e,t)},is.set=function(e,t,n){this.b[e][t]=n,dt(this,{
type:"set",targetName:e,property:t,value:n})},is.zb=function(e,t){this.a=t,this.a.addUpdateListener(this.bc.bind(this)),this.a.addMessageListener("urn:x-cast:com.google.shaka.v2",this.kd.bind(this)),this.bc(),dt(this,{type:"init",initState:e,appData:this.i}),this.g.resolve()},is.ac=function(e){var t=8003;switch(e.code){case"cancel":t=8004;break;case"timeout":t=8005;break;case"receiver_unavailable":t=8006}this.g.reject(new l(2,8,t,e))},is.jc=function(e,t){return this.b[e][t]},is.nc=function(e,t){
dt(this,{type:"call",targetName:e,methodName:t,args:Array.prototype.slice.call(arguments,2)})},is.Md=function(e,t){var n=Array.prototype.slice.call(arguments,2),i=new x,a=this.o.toString();return this.o++,this.f[a]=i,dt(this,{type:"asyncCall",targetName:e,methodName:t,args:n,id:a}),i},is.ed=function(e){var t=this.v();this.g=new x,this.zb(t,e)},is.qd=function(e){this.j="available"==e,this.l()},is.bc=function(){var e=!!this.a&&"connected"==this.a.status;if(this.c&&!e){this.G()
;for(var t in this.b)this.b[t]={};ct(this)}this.A=(this.c=e)?this.a.receiver.friendlyName:"",this.l()},is.kd=function(e,t){var n=ot(t);switch(n.type){case"event":var i=n.targetName,a=n.event;this.B(i,new rt(a.type,a));break;case"update":a=n.update;for(i in a){var n=this.b[i]||{};for(r in a[i])n[r]=a[i][r]}break;case"asyncComplete":i=n.id;var r=n.error;if(n=this.f[i],delete this.f[i],n)if(r){i=new l(r.severity,r.category,r.code);for(a in r)i[a]=r[a];n.reject(i)}else n.resolve()}},
pt.prototype.addEventListener=function(e,t){this.lb.push(e,t)},pt.prototype.removeEventListener=function(e,t){this.lb.remove(e,t)},pt.prototype.dispatchEvent=function(e){for(var t=this.lb.get(e.type)||[],n=0;n<t.length;++n){e.target=this.Ta,e.currentTarget=this.Ta;var i=t[n];try{i.handleEvent?i.handleEvent(e):i.call(this,e)}catch(e){}if(e.a)break}return e.defaultPrevented},n(ht),t("shaka.cast.CastProxy",ht),ht.prototype.m=function(e){return e&&this.a&&this.a.$a(),
e=[this.h?this.h.m():null,this.b?this.b.m():null,this.a?this.a.m():null],this.a=this.h=this.i=this.j=this.b=this.c=null,Promise.all(e)},ht.prototype.destroy=ht.prototype.m,ht.prototype.Xc=function(){return this.j},ht.prototype.getVideo=ht.prototype.Xc,ht.prototype.Rc=function(){return this.i},ht.prototype.getPlayer=ht.prototype.Rc,ht.prototype.Dc=function(){return!!this.a&&(this.a.h&&this.a.j)},ht.prototype.canCast=ht.prototype.Dc,ht.prototype.V=function(){return!!this.a&&this.a.V()},
ht.prototype.isCasting=ht.prototype.V,ht.prototype.Db=function(){return this.a?this.a.Db():""},ht.prototype.receiverName=ht.prototype.Db,ht.prototype.cast=function(){var e=this.Tb();return this.a.cast(e).then(function(){return this.b.hb()}.bind(this))},ht.prototype.cast=ht.prototype.cast,ht.prototype.Gb=function(e){this.a.Gb(e)},ht.prototype.setAppData=ht.prototype.Gb,ht.prototype.ke=function(){var e=this.a;if(e.c){var t=e.v();chrome.cast.requestSession(e.zb.bind(e,t),e.ac.bind(e))}},
ht.prototype.suggestDisconnect=ht.prototype.ke,ht.prototype.$a=function(){this.a.$a()},ht.prototype.forceDisconnect=ht.prototype.$a,is=ht.prototype,is.Tb=function(){var e={video:{},player:{},playerAfterLoad:{},manifest:this.b.Ya,startTime:null};return this.c.pause(),ys.forEach(function(t){e.video[t]=this.c[t]}.bind(this)),this.c.ended||(e.startTime=this.c.currentTime),Ms.forEach(function(t){var n=t[1];t=this.b[t[0]](),e.player[n]=t}.bind(this)),Cs.forEach(function(t){var n=t[1];t=this.b[t[0]](),
e.playerAfterLoad[n]=t}.bind(this)),e},is.ce=function(){this.dispatchEvent(new rt("caststatuschanged"))},is.ee=function(){Ms.forEach(function(e){var t=e[1];e=this.a.get("player",e[0])(),this.b[t](e)}.bind(this));var e=this.a.get("player","getManifestUri")(),t=this.a.get("video","ended"),n=Promise.resolve(),i=this.c.autoplay,a=null;t||(a=this.a.get("video","currentTime")),e&&(this.c.autoplay=!1,n=this.b.load(e,a),n.catch(function(e){this.b.dispatchEvent(new rt("error",{detail:e}))}.bind(this)))
;var r={};ys.forEach(function(e){r[e]=this.a.get("video",e)}.bind(this)),n.then(function(){ys.forEach(function(e){this.c[e]=r[e]}.bind(this)),Cs.forEach(function(e){var t=e[1];e=this.a.get("player",e[0])(),this.b[t](e)}.bind(this)),this.c.autoplay=i,e&&this.c.play()}.bind(this))},is.qe=function(e){if("addEventListener"==e)return this.g.addEventListener.bind(this.g);if("removeEventListener"==e)return this.g.removeEventListener.bind(this.g);if(this.a.V()&&!Object.keys(this.a.b.video).length){
var t=this.c[e];if("function"!=typeof t)return t}return this.a.V()?this.a.get("video",e):(t=this.c[e],"function"==typeof t&&(t=t.bind(this.c)),t)},is.se=function(e,t){this.a.V()?this.a.set("video",e,t):this.c[e]=t},is.re=function(e){this.a.V()||this.g.dispatchEvent(new rt(e.type,e))},is.Fd=function(e){
return"addEventListener"==e?this.f.addEventListener.bind(this.f):"removeEventListener"==e?this.f.removeEventListener.bind(this.f):"getNetworkingEngine"==e?this.b.Ub.bind(this.b):this.a.V()&&!Object.keys(this.a.b.video).length&&0<=Is.indexOf(e)||!this.a.V()?(e=this.b[e],e.bind(this.b)):this.a.get("player",e)},is.Gd=function(e){this.a.V()||this.f.dispatchEvent(e)},is.de=function(e,t){this.a.V()&&("video"==e?this.g.dispatchEvent(t):"player"==e&&this.f.dispatchEvent(t))},n(vt),
t("shaka.cast.CastReceiver",vt),vt.prototype.isConnected=function(){return this.i},vt.prototype.isConnected=vt.prototype.isConnected,vt.prototype.Zc=function(){return this.f},vt.prototype.isIdle=vt.prototype.Zc,vt.prototype.m=function(){var t=this.b?this.b.m():Promise.resolve();return null!=this.h&&e.clearTimeout(this.h),this.l=this.j=this.b=this.a=null,this.i=!1,this.f=!0,this.h=this.g=this.c=null,t.then(function(){cast.receiver.CastReceiverManager.getInstance().stop()})},
vt.prototype.destroy=vt.prototype.m,is=vt.prototype,is.hc=function(){this.i=!!cast.receiver.CastReceiverManager.getInstance().getSenders().length,gt(this)},is.kc=function(e,t){this.Ab(),bt(this,{type:"event",targetName:e,event:t},this.c)},is.Ab=function(){null!=this.h&&e.clearTimeout(this.h),this.h=e.setTimeout(this.Ab.bind(this),500);var t={video:{},player:{}};gs.forEach(function(e){t.video[e]=this.a[e]}.bind(this)),Is.forEach(function(e){t.player[e]=this.b[e]()}.bind(this))
;var n=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();n&&(t.video.volume=n.level,t.video.muted=n.muted),bt(this,{type:"update",update:t},this.c)},is.Kc=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&bt(this,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},this.c),bt(this,{type:"event",targetName:"video",event:{type:"volumechange"}},this.c)},is.td=function(e){var t=ot(e.data);switch(t.type){case"init":
yt(this,t.initState,t.appData),this.Ab();break;case"appData":this.l(t.appData);break;case"set":var n=t.targetName,i=t.property,a=t.value;if("video"==n){if(t=cast.receiver.CastReceiverManager.getInstance(),"volume"==i){t.setSystemVolumeLevel(a);break}if("muted"==i){t.setSystemVolumeMuted(a);break}}this.j[n][i]=a;break;case"call":n=t.targetName,i=t.methodName,a=t.args,n=this.j[n],n[i].apply(n,a);break;case"asyncCall":n=t.targetName,i=t.methodName,a=t.args,t=t.id,e=e.senderId,n=this.j[n],
n[i].apply(n,a).then(this.tc.bind(this,e,t,null),this.tc.bind(this,e,t))}},is.fd=function(e){var t=ot(e.data);switch(t.type){case"PLAY":this.a.play(),St(this,0);break;case"PAUSE":this.a.pause(),St(this,0);break;case"SEEK":e=t.currentTime;var n=t.resumeState;null!=e&&(this.a.currentTime=Number(e)),n&&"PLAYBACK_START"==n?(this.a.play(),St(this,0)):n&&"PLAYBACK_PAUSE"==n&&(this.a.pause(),St(this,0));break;case"STOP":this.b.hb().then(function(){St(this,0)}.bind(this));break;case"GET_STATUS":
St(this,Number(t.requestId));break;case"VOLUME":n=t.volume,e=n.level;var n=n.muted,i=this.a.volume,a=this.a.muted;null!=e&&(this.a.volume=Number(e)),null!=n&&(this.a.muted=n),i==this.a.volume&&a==this.a.muted||St(this,0);break;case"LOAD":n=t.media.contentId,e=t.currentTime;var r=this.o(n);this.a.autoplay=!0,this.b.load(r,e).then(function(){St(this,0,{contentId:r,streamType:this.b.da()?"LIVE":"BUFFERED",contentType:""})}.bind(this)).catch(function(e){var n="LOAD_FAILED"
;7==e.category&&7e3==e.code&&(n="LOAD_CANCELLED"),bt(this,{requestId:Number(t.requestId),type:n},this.g)}.bind(this));break;default:bt(this,{requestId:Number(t.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},this.g)}},is.tc=function(e,t,n){bt(this,{type:"asyncComplete",id:t,error:n},this.c,e)};var Ps={IDLE:"IDLE",Ac:"PLAYING",yc:"BUFFERING",zc:"PAUSED"},Ts={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey",
"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"};t("shaka.media.InitSegmentReference",Bt),t("shaka.media.SegmentReference",Ft),t("shaka.util.DataViewReader",Vt);var xs=1;Vt.Endianness={te:0,ve:xs},Vt.prototype.Z=function(){return this.u<this.H.byteLength},Vt.prototype.hasMoreData=Vt.prototype.Z,Vt.prototype.Tc=function(){
return this.u},Vt.prototype.getPosition=Vt.prototype.Tc,Vt.prototype.Oc=function(){return this.H.byteLength},Vt.prototype.getLength=Vt.prototype.Oc,Vt.prototype.Cb=function(){try{var e=this.H.getUint8(this.u)}catch(e){Qt()}return this.u+=1,e},Vt.prototype.readUint8=Vt.prototype.Cb,Vt.prototype.mc=function(){try{var e=this.H.getUint16(this.u,this.a)}catch(e){Qt()}return this.u+=2,e},Vt.prototype.readUint16=Vt.prototype.mc,Vt.prototype.D=function(){try{var e=this.H.getUint32(this.u,this.a)
}catch(e){Qt()}return this.u+=4,e},Vt.prototype.readUint32=Vt.prototype.D,Vt.prototype.lc=function(){try{var e=this.H.getInt32(this.u,this.a)}catch(e){Qt()}return this.u+=4,e},Vt.prototype.readInt32=Vt.prototype.lc,Vt.prototype.Pa=function(){try{if(this.a)var e=this.H.getUint32(this.u,!0),t=this.H.getUint32(this.u+4,!0);else t=this.H.getUint32(this.u,!1),e=this.H.getUint32(this.u+4,!1)}catch(e){Qt()}if(2097151<t)throw new l(2,3,3001);return this.u+=8,t*Math.pow(2,32)+e},
Vt.prototype.readUint64=Vt.prototype.Pa,Vt.prototype.Ja=function(e){this.u+e>this.H.byteLength&&Qt();var t=this.H.buffer.slice(this.u,this.u+e);return this.u+=e,new Uint8Array(t)},Vt.prototype.readBytes=Vt.prototype.Ja,Vt.prototype.I=function(e){this.u+e>this.H.byteLength&&Qt(),this.u+=e},Vt.prototype.skip=Vt.prototype.I,Vt.prototype.Bb=function(){for(var e=this.u;this.Z()&&this.H.getUint8(this.u);)this.u+=1;return e=this.H.buffer.slice(e,this.u),this.u+=1,Q(e)},
Vt.prototype.readTerminatedString=Vt.prototype.Bb,t("shaka.util.Mp4Parser",Ht),Ht.prototype.C=function(e,t){var n=Kt(e);return this.b[n]=0,this.a[n]=t,this},Ht.prototype.box=Ht.prototype.C,Ht.prototype.ca=function(e,t){var n=Kt(e);return this.b[n]=1,this.a[n]=t,this},Ht.prototype.fullBox=Ht.prototype.ca,Ht.prototype.parse=function(e){for(e=new Vt(new DataView(e),0);e.Z();)this.eb(0,e)},Ht.prototype.parse=Ht.prototype.parse,Ht.prototype.eb=function(e,t){var n=t.u,i=t.D(),a=t.D();switch(i){case 0:
i=t.H.byteLength-n;break;case 1:i=t.Pa()}var r=this.a[a];if(r){var s=null,o=null;1==this.b[a]&&(o=t.D(),s=o>>>24,o&=16777215),a=n+i-t.u,a=0<a?t.Ja(a).buffer:new ArrayBuffer(0),a=new Vt(new DataView(a),0),r({Na:this,version:s,Lc:o,s:a,size:i,start:n+e})}else t.I(n+i-t.u)},Ht.prototype.parseNext=Ht.prototype.eb,Ht.children=Wt,Ht.sampleDescription=Yt,Ht.allData=Gt,t("shaka.media.SegmentIndex",Zt),Zt.prototype.m=function(){return this.a=null,Promise.resolve()},Zt.prototype.destroy=Zt.prototype.m,
Zt.prototype.find=function(e){for(var t=this.a.length-1;0<=t;--t){var n=this.a[t];if(e>=n.startTime&&e<n.endTime)return n.position}return this.a.length&&e<this.a[0].startTime?this.a[0].position:null},Zt.prototype.find=Zt.prototype.find,Zt.prototype.get=function(e){return this.a.length?(e-=this.a[0].position,0>e||e>=this.a.length?null:this.a[e]):null},Zt.prototype.get=Zt.prototype.get,Zt.prototype.vb=function(e){for(var t,n,i=[],a=n=0;n<this.a.length&&a<e.length;){var r=this.a[n];t=e[a],
r.startTime<t.startTime?(i.push(r),n++):(r.startTime>t.startTime||(.1<Math.abs(r.endTime-t.endTime)?i.push(t):i.push(r),n++),a++)}for(;n<this.a.length;)i.push(this.a[n++]);if(i.length)for(n=i[i.length-1].position+1;a<e.length;)t=e[a++],t=new Ft(n++,t.startTime,t.endTime,t.a,t.X,t.M),i.push(t);else i=e;this.a=i},Zt.prototype.merge=Zt.prototype.vb,Zt.prototype.ob=function(e){for(var t=0;t<this.a.length&&!(this.a[t].endTime>e);++t);this.a.splice(0,t)},Zt.prototype.evict=Zt.prototype.ob;var Es
;$t.prototype.Z=function(){return this.a.Z()},rn.prototype.parse=function(e,t,n,i){var a;if(t=new $t(new DataView(t)),440786851!=en(t).id)throw new l(2,3,3008);var r=en(t);if(408125543!=r.id)throw new l(2,3,3009);for(t=r.a.byteOffset,r=new $t(r.a),a=null;r.Z();){var s=en(r);if(357149030==s.id){a=s;break}}if(!a)throw new l(2,3,3010);for(r=new $t(a.a),a=1e6,s=null;r.Z();){var o=en(r);if(2807729==o.id)a=an(o);else if(17545==o.id)if(s=o,4==s.a.byteLength)s=s.a.getFloat32(0);else{
if(8!=s.a.byteLength)throw new l(2,3,3003);s=s.a.getFloat64(0)}}if(null==s)throw new l(2,3,3011);if(r=a/1e9,a=s*r,e=en(new $t(new DataView(e))),475249515!=e.id)throw new l(2,3,3007);return sn(e,t,r,a,n,i)};var Ns={},Ls={};t("shaka.media.ManifestParser.registerParserByExtension",function(e,t){Ls[e]=t}),t("shaka.media.ManifestParser.registerParserByMime",function(e,t){Ns[e]=t}),t("shaka.media.PresentationTimeline",Cn),Cn.prototype.Y=function(){return this.a},
Cn.prototype.getDuration=Cn.prototype.Y,Cn.prototype.pa=function(e){this.a=e},Cn.prototype.setDuration=Cn.prototype.pa,Cn.prototype.Uc=function(){return this.f},Cn.prototype.getPresentationStartTime=Cn.prototype.Uc,Cn.prototype.uc=function(e){this.h=e},Cn.prototype.setClockOffset=Cn.prototype.uc,Cn.prototype.wc=function(e){this.g=e},Cn.prototype.setStatic=Cn.prototype.wc,Cn.prototype.Vc=function(){return this.c},Cn.prototype.getSegmentAvailabilityDuration=Cn.prototype.Vc,
Cn.prototype.vc=function(e){this.c=e},Cn.prototype.setSegmentAvailabilityDuration=Cn.prototype.vc,Cn.prototype.Ga=function(e,t){t.length&&(this.b=t.reduce(function(e,t){return Math.max(e,t.endTime-t.startTime)},this.b))},Cn.prototype.notifySegments=Cn.prototype.Ga,Cn.prototype.wb=function(e){this.b=Math.max(this.b,e)},Cn.prototype.notifyMaxSegmentDuration=Cn.prototype.wb,Cn.prototype.da=function(){return 1/0==this.a&&!this.g},Cn.prototype.isLive=Cn.prototype.da,Cn.prototype.va=function(){
return 1/0!=this.a&&!this.g},Cn.prototype.isInProgress=Cn.prototype.va,Cn.prototype.ma=function(){return this.Da(0)},Cn.prototype.getSegmentAvailabilityStart=Cn.prototype.ma,Cn.prototype.Da=function(e){if(1/0==this.c)return 0;var t=this.ua();return Math.max(0,Math.min(t-this.c+e,t))},Cn.prototype.getSafeAvailabilityStart=Cn.prototype.Da,Cn.prototype.ua=function(){return this.da()||this.va()?Math.min(Math.max(0,(Date.now()+this.h)/1e3-this.b-this.f),this.a):this.a},
Cn.prototype.getSegmentAvailabilityEnd=Cn.prototype.ua,Cn.prototype.bb=function(){return Math.max(0,this.ua()-(this.da()||this.va()?this.i:0))},Cn.prototype.getSeekRangeEnd=Cn.prototype.bb,t("shaka.dash.DashParser",wn),is=wn.prototype,is.configure=function(e){this.b=e},is.start=function(e,t){return this.g=[e],this.a=t,Dn(this).then(function(){return this.a&&Ln(this,0),this.c}.bind(this))},is.stop=function(){return this.b=this.a=null,this.g=[],this.c=null,this.i=[],this.j={},
null!=this.f&&(e.clearTimeout(this.f),this.f=null),Promise.resolve()},is.update=function(){Dn(this).catch(function(e){this.a&&this.a.onError(e)}.bind(this))},is.onExpirationUpdated=function(){},is.Bd=function(e,t){e.S=An(t,e.T,null);var n=!1,i=Mt(t,"Role"),a=void 0;"text"==e.S.contentType&&(a="subtitle");for(var r=0;r<i.length;r++){var s=i[r].getAttribute("schemeIdUri");if(null==s||"urn:mpeg:dash:role:2011"==s)switch(s=i[r].getAttribute("value")){case"main":n=!0;break;case"caption":
case"subtitle":a=s}}var o=null,u=!1;if(Mt(t,"EssentialProperty").forEach(function(e){"http://dashif.org/guidelines/trickmode"==e.getAttribute("schemeIdUri")?o=e.getAttribute("value"):u=!0}),u)return null;var i=Mt(t,"ContentProtection"),c=At(i,this.b.dash.customScheme,this.b.dash.ignoreDrmInfo),i=Be(t.getAttribute("lang")||"und"),r=Mt(t,"Representation"),a=r.map(this.Ed.bind(this,e,c,a,i,n)).filter(function(e){return!!e});if(!a.length)throw new l(2,4,4003)
;return e.S.contentType||(e.S.contentType=jn(a[0].mimeType,a[0].codecs),a.forEach(function(t){t.type=e.S.contentType})),a.forEach(function(e){c.drmInfos.forEach(function(t){e.keyId&&t.keyIds.push(e.keyId)})}),r=r.map(function(e){return e.getAttribute("id")}).filter(I),{id:e.S.id||"__fake__"+this.h++,contentType:e.S.contentType,language:i,tb:n,streams:a,drmInfos:c.drmInfos,Mb:o,Nd:r}},is.Ed=function(e,t,n,i,a,r){if(e.w=An(r,e.S,null),!kn(e.w))return null;e.bandwidth=wt(r,"bandwidth",Et)||void 0
;var s=this.Od.bind(this);if(e.w.Qa)s=un(e,s);else if(e.w.oa)s=pn(e,this.j);else if(e.w.Ra)s=mn(e,s,this.j,!!this.c);else{var o=e.w.U,l=e.R.duration||0;s={createSegmentIndex:Promise.resolve.bind(Promise),findSegmentPosition:function(e){return 0<=e&&e<l?1:null},getSegmentReference:function(e){return 1!=e?null:new Ft(1,0,l,function(){return o},0,null)},initSegmentReference:null,presentationTimeOffset:0}}return r=Mt(r,"ContentProtection"),
r=kt(r,this.b.dash.customScheme,t,this.b.dash.ignoreDrmInfo),{id:this.h++,createSegmentIndex:s.createSegmentIndex,findSegmentPosition:s.findSegmentPosition,getSegmentReference:s.getSegmentReference,initSegmentReference:s.initSegmentReference,presentationTimeOffset:s.presentationTimeOffset,mimeType:e.w.mimeType,codecs:e.w.codecs,frameRate:e.w.frameRate,bandwidth:e.bandwidth,width:e.w.width,height:e.w.height,kind:n,encrypted:0<t.drmInfos.length,keyId:r,language:i,type:e.S.contentType,primary:a,
trickModeVideo:null,containsEmsgBoxes:e.w.containsEmsgBoxes}},is.fe=function(){this.f=null;var e=Date.now();Dn(this).then(function(){this.a&&Ln(this,(Date.now()-e)/1e3)}.bind(this)).catch(function(e){this.a&&(e.severity=1,this.a.onError(e),Ln(this,0))}.bind(this))},is.Dd=function(e,t,n){var i=n.getAttribute("schemeIdUri")||"",a=n.getAttribute("value")||"",r=wt(n,"timescale",Nt)||1;Mt(n,"Event").forEach(function(n){var s=wt(n,"presentationTime",Nt)||0,o=wt(n,"duration",Nt)||0,s=s/r+e,o=s+o/r
;null!=t&&(s=Math.min(s,e+t),o=Math.min(o,e+t)),n={schemeIdUri:i,value:a,startTime:s,endTime:o,id:n.getAttribute("id")||"",eventElement:n},this.a.onTimelineRegionAdded(n)}.bind(this))},is.Od=function(e,t,n){return e=L(e,this.b.retryParameters),null!=t&&(e.headers.Range="bytes="+t+"-"+(null!=n?n:"")),this.a.networkingEngine.request(1,e).then(function(e){return e.data})},Ls.mpd=wn,Ns["application/dash+xml"]=wn,Un.prototype.toString=function(){function e(e){return e.name+'="'+e.value+'"'}
return this.value?"#"+this.name+":"+this.value:0<this.a.length?"#"+this.name+":"+this.a.map(e).join(","):"#"+this.name},Un.prototype.getAttribute=function(e){var t=this.a.filter(function(t){return t.name==e});return t.length?t[0]:null};var As="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-MAP EXT-X-I-FRAMES-ONLY".split(" "),ks="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE".split(" ")
;t("shaka.net.DataUriPlugin",Jn),Jn.parse=function(t){var n=t.split(":");if(2>n.length||"data"!=n[0])throw new l(2,1,1004,t);if(n=n.slice(1).join(":").split(","),2>n.length)throw new l(2,1,1004,t);var i=n[0],n=e.decodeURIComponent(n.slice(1).join(",")),i=i.split(";"),a=null;if(1<i.length&&(a=i[1]),"base64"==a)t=Z(n).buffer;else{if(a)throw new l(2,1,1005,t);t=Y(n)}return{data:t,contentType:i[0]}},ds.data=Jn,t("shaka.hls.HlsParser",$n),is=$n.prototype,is.configure=function(e){this.b=e},
is.start=function(e,t){return this.c=t,this.j=e,this.c.networkingEngine.request(0,L([e],this.b.retryParameters)).then(function(t){return ei(this,t.data,e)}.bind(this))},is.stop=function(){return this.b=this.c=null,this.g={},Promise.resolve()},is.update=function(){},is.onExpirationUpdated=function(){};var _s=[/^(avc)/,/^(hvc)/,/^(vp[8-9])$/,/^(av1)$/,/^(mp4v)/],Os=[/^(vorbis)/,/^(opus)/,/^(mp4a)/,/^(ac-3)$/,/^(ec-3)$/],js={mp4:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",
ts:"video/mp2t"},Rs={mp4:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",ts:"video/mp2t"},Us={"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(e){if("SAMPLE-AES-CENC"!=fi(e,"METHOD"))return null;var t=fi(e,"URI"),t=Jn.parse(t),t=new Uint8Array(t.data),t=D("com.widevine.alpha",[{initDataType:"cenc",initData:t}]);return(e=Bn(e,"KEYID"))&&(t.keyIds=[e.substr(2).toLowerCase()]),t}};Ls.m3u8=$n,Ns["application/x-mpegurl"]=$n,Ns["application/vnd.apple.mpegurl"]=$n,
mi.prototype.parseInit=function(){},mi.prototype.parseMedia=function(e,t){var n=Q(e),i=[],a=new DOMParser,r=null;try{r=a.parseFromString(n,"text/xml")}catch(e){throw new l(2,2,2005)}if(r){var s=r.getElementsByTagName("tt")[0];if(!s)throw new l(2,2,2005);a=s.getAttribute("ttp:frameRate"),r=s.getAttribute("ttp:subFrameRate");var o=s.getAttribute("ttp:frameRateMultiplier"),u=s.getAttribute("ttp:tickRate");if("default"!=(n=s.getAttribute("xml:space")||"default")&&"preserve"!=n)throw new l(2,2,2005)
;for(n="default"==n,a=new Ci(a,r,o,u),r=gi(s.getElementsByTagName("styling")[0]),o=gi(s.getElementsByTagName("layout")[0]),s=gi(s.getElementsByTagName("body")[0]),u=0;u<s.length;u++){var c=s[u],d=t.periodStart,p=a,h=r,f=o,v=n;if(c.hasAttribute("begin")||c.hasAttribute("end")||!/^\s*$/.test(c.textContent)){yi(c,v);var v=Ii(c.getAttribute("begin"),p),m=Ii(c.getAttribute("end"),p),p=Ii(c.getAttribute("dur"),p),g=c.textContent;if(null==m&&null!=p&&(m=v+p),null==v||null==m)throw new l(2,2,2001)
;(d=Ie(v+d,m+d,g))?(v=Si(c,"region",f),f=d,(m=bi(c,v,h,"tts:extent"))&&(p=Ws.exec(m))&&(f.size=Number(p[1])),p=bi(c,v,h,"tts:writingMode"),m=!0,"tb"==p||"tblr"==p?f.vertical="lr":"tbrl"==p?f.vertical="rl":m=!1,(p=bi(c,v,h,"tts:origin"))&&(p=Ws.exec(p))&&(m?(f.position=Number(p[2]),f.line=Number(p[1])):(f.position=Number(p[1]),f.line=Number(p[2])),f.snapToLines=!1),(h=bi(c,v,h,"tts:textAlign"))&&(f.align=h,"center"==h&&("center"!=f.align&&(f.align="middle"),f.position="auto"),
f.positionAlign=Gs[h],f.lineAlign=Ys[h]),h=d):h=null}else h=null;h&&i.push(h)}}return i};var zs=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Bs=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,Fs=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,Vs=/^(\d*\.?\d*)f$/,Qs=/^(\d*\.?\d*)t$/,Hs=/^(?:(\d*\.?\d*)h)?(?:(\d*\.?\d*)m)?(?:(\d*\.?\d*)s)?(?:(\d*\.?\d*)ms)?$/,Ws=/^(\d{1,2}|100)% (\d{1,2}|100)%$/,Ys={left:"start",center:"center",right:"end",start:"start",end:"end"},Gs={left:"line-left",center:"center",
right:"line-right"};Se("application/ttml+xml",mi),wi.prototype.parseInit=function(e){var t=!1;if((new Ht).C("moov",Wt).C("trak",Wt).C("mdia",Wt).C("minf",Wt).C("stbl",Wt).ca("stsd",Yt).C("stpp",function(){t=!0}).parse(e),!t)throw new l(2,2,2007)},wi.prototype.parseMedia=function(e,t){var n=!1,i=[];if((new Ht).C("mdat",Gt(function(e){n=!0,i=this.a.parseMedia(e.buffer,t)}.bind(this))).parse(e),!n)throw new l(2,2,2007);return i},Se('application/mp4; codecs="stpp"',wi),
Di.prototype.parseInit=function(){},Di.prototype.parseMedia=function(e,t){var n=Q(e),n=n.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n"),n=n.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(n[0]))throw new l(2,2,2e3);var i=t.segmentStart;if(0<=n[0].indexOf("X-TIMESTAMP-MAP")){var a=n[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),r=n[0].match(/MPEGTS:(\d+)/m);a&&r&&(i=Ti(new Wn(a[1])),i=t.periodStart+(Number(r[1])/9e4-i))}for(r=[],a=1;a<n.length;a++){var s=n[a].split("\n"),o=i
;if(1==s.length&&!s[0]||/^NOTE($|[ \t])/.test(s[0]))var u=null;else{u=null,0>s[0].indexOf("--\x3e")&&(u=s[0],s.splice(0,1));var c=new Wn(s[0]),d=Ti(c),p=Yn(c,/[ \t]+--\x3e[ \t]+/g),h=Ti(c);if(null==d||!p||null==h)throw new l(2,2,2001);if(s=Ie(d+o,h+o,s.slice(1).join("\n").trim())){for(Yn(c,/[ \t]+/gm),o=Gn(c);o;)Pi(s,o),Yn(c,/[ \t]+/gm),o=Gn(c);null!=u&&(s.id=u),u=s}else u=null}u&&r.push(u)}return r},Se("text/vtt",Di),Se('text/vtt; codecs="vtt"',Di),xi.prototype.parseInit=function(e){var t=!1
;if((new Ht).C("moov",Wt).C("trak",Wt).C("mdia",Wt).ca("mdhd",function(e){0==e.version?(e.s.I(4),e.s.I(4),this.a=e.s.D(),e.s.I(4)):(e.s.I(8),e.s.I(8),this.a=e.s.D(),e.s.I(8)),e.s.I(4)}.bind(this)).C("minf",Wt).C("stbl",Wt).ca("stsd",Yt).C("wvtt",function(){t=!0}).parse(e),!this.a)throw new l(2,2,2008);if(!t)throw new l(2,2,2008)},xi.prototype.parseMedia=function(e,t){var n=0,i=[],a=[],r=[],s=!1,o=!1,u=!1;if((new Ht).C("moof",Wt).C("traf",Wt).ca("tfdt",function(e){s=!0,
n=e.version?e.s.Pa():e.s.D()}).ca("trun",function(e){o=!0;var t=e.version,n=e.Lc;e=e.s;var a=e.D();1&n&&e.I(4),4&n&&e.I(4);for(var r=[],s=0;s<a;s++){var l={duration:null,Lb:null};256&n&&(l.duration=e.D()),512&n&&e.I(4),1024&n&&e.I(4),2048&n&&(l.Lb=t?e.lc():e.D()),r.push(l)}i=r}).C("vtte",function(){a.push(null)}).C("vttc",Gt(function(e){a.push(e.buffer)})).C("mdat",function(e){u=!0,Wt(e)}).parse(e),!u&&!s&&!o)throw new l(2,2,2008);for(var c=n,d=0;d<i.length;d++){var p=i[d],h=a[d];if(p.duration){
var f=p.Lb?n+p.Lb:c,c=f+p.duration;h&&r.push(Ei(h,t.periodStart+f/this.a,t.periodStart+c/this.a))}}return r},Se('application/mp4; codecs="wvtt"',xi),is=Li.prototype,is.m=function(){var t=this.b.m();return this.b=null,null!=this.f&&(e.clearInterval(this.f),this.f=null),null!=this.j&&(e.clearInterval(this.j),this.j=null),this.G=this.J=this.l=this.c=this.a=null,t},is.pb=function(){return this.g},is.yb=function(){this.o=!0,this.fc()},is.pd=function(){
this.a.playbackRate!=(this.h||0>this.g?0:this.g)&&Oi(this,this.a.playbackRate)},is.dc=function(){var e=_i(this);.001>Math.abs(this.a.currentTime-e)?(O(this.b,this.a,"seeking",this.gc.bind(this)),O(this.b,this.a,"playing",this.ec.bind(this))):(j(this.b,this.a,"seeking",this.rd.bind(this)),this.a.currentTime=e)},is.rd=function(){O(this.b,this.a,"seeking",this.gc.bind(this)),O(this.b,this.a,"playing",this.ec.bind(this))},is.fc=function(){if(this.a.readyState){this.a.readyState!=this.B&&(this.i=!1,
this.B=this.a.readyState);var e=this.l.smallGapLimit,t=this.a.currentTime,n=this.a.buffered;e:{if(n&&n.length&&!(1==n.length&&1e-6>n.end(0)-n.start(0))){var i=.1;/(Edge|Trident)\//.test(navigator.userAgent)&&(i=.5);for(var a=0;a<n.length;a++)if(n.start(a)>t&&(!a||n.end(a-1)-t<=i)){i=a;break e}}i=null}if(null==i){if(3>this.a.readyState&&0<this.a.playbackRate)if(this.P!=t)this.P=t,this.v=Date.now();else if(this.v<Date.now()-1e3)for(this.v=Date.now()+5e3,
i=0;i<n.length;i++)if(t>=n.start(i)&&t<n.end(i)-.5){this.a.currentTime=this.a.currentTime;break}}else if((i||this.o)&&!((a=n.start(i))>=this.c.presentationTimeline.bb())){var r=a-t,e=r<=e,s=!1;e||this.i||(this.i=!0,r=new rt("largegap",{currentTime:t,gapSize:r}),r.cancelable=!0,this.G(r),this.l.jumpLargeGaps&&!r.defaultPrevented&&(s=!0)),(e||s)&&(i&&n.end(i-1),Ri(this,t,a))}}},is.gc=function(){this.o=!1;var e=this.a.currentTime,t=ji(this,e);.001<Math.abs(t-e)?Ri(this,e,t):(this.i=!1,this.J())},
is.ec=function(){var e=this.a.currentTime,t=ji(this,e);.001<Math.abs(t-e)&&Ri(this,e,t)},zi.prototype.m=function(){var e=this.j?this.j.m():Promise.resolve();return this.j=null,Vi(this),this.B=this.h=this.l=this.A=this.g=this.a=null,this.c=[],e},zi.prototype.v=function(e){if(!this.c.some(function(t){return t.info.schemeIdUri==e.schemeIdUri&&t.info.startTime==e.startTime&&t.info.endTime==e.endTime})){var t={info:e,status:1};this.c.push(t);var n=new rt("timelineregionadded",{detail:Bi(e)})
;this.h(n),this.o(!0,t)}},zi.prototype.o=function(e,t){var n=t.info.startTime>this.a.currentTime?1:t.info.endTime<this.a.currentTime?3:2,i=2==t.status,a=2==n;n!=t.status&&((!e||i||a)&&(i||this.h(new rt("timelineregionenter",{detail:Bi(t.info)})),a||this.h(new rt("timelineregionexit",{detail:Bi(t.info)}))),t.status=n)},zi.prototype.G=function(){this.f=null,Fi(this);var e=tt(this.g,this.a.currentTime);e!=this.i&&(-1!=this.i&&this.B(),this.i=e)
;var e=Te(this.a.buffered,this.a.currentTime),t=De(this.a.buffered)>=this.g.presentationTimeline.ua()-.1||this.a.ended;if(this.b){var n=1*Math.max(this.g.minBufferTime||0,this.A.rebufferingGoal);(t||e>=n)&&0!=this.b&&(this.b=!1,this.l(!1))}else!t&&.5>e&&1!=this.b&&(this.b=!0,this.l(!0));this.c.forEach(this.o.bind(this,!1))},is=Qi.prototype,is.m=function(){for(var e in this.c)ha(this.c[e]);return this.h=this.c=this.j=this.g=this.o=this.b=this.a=null,this.f=!0,Promise.resolve()},
is.configure=function(e){this.h=e},is.init=function(){var e=this.a.$b(this.b.periods[tt(this.b,ki(this.a.Oa))]);return z(e)?Promise.reject(new l(2,5,5005)):Xi(this,e).then(function(){this.a&&this.a.gd&&this.a.gd()}.bind(this))},is.ie=function(e){if(!this.f&&!e.wa&&null!=e.qa&&!e.sa)if(e.qa=null,e.ra)da(this,e,e.kb);else{try{var t=ea(this,e);null!=t&&(pa(this,e,t),e.rb=!1)}catch(e){return void this.a.onError(e)}t=B(this.c),la(this,e),t.every(function(e){return e.endOfStream
})&&this.a.K.endOfStream().then(function(){this.b.presentationTimeline.pa(this.a.K.Y())}.bind(this))}},is.Cd=function(e,t,n){var i=n.s.Bb(),a=n.s.Bb(),r=n.s.D(),s=n.s.D(),o=n.s.D(),l=n.s.D();n=n.s.Ja(n.s.H.byteLength-n.s.u),e=e.startTime+t.startTime+s/r,"urn:mpeg:dash:event:2012"==i?this.a.hd():this.a.onEvent(new rt("emsg",{detail:{startTime:e,endTime:e+o/r,schemeIdUri:i,value:a,timescale:r,presentationTimeDelta:s,eventDuration:o,id:l,messageData:n}}))},t("shaka.net.HttpPlugin",fa),ds.http=fa,
ds.https=fa,is=va.prototype,is.init=function(e,t){return Sa(this,e,t).then(function(){var t=Object.keys(e);return Promise.all(t.map(function(e){return ya(this,e).then(function(t){this.c[e]=t}.bind(this))}.bind(this)))}.bind(this))},is.m=function(){return Promise.all(this.b.map(function(e){try{e.transaction.abort()}catch(e){}return e.L.catch(S)})).then(function(){this.a&&(this.a.close(),this.a=null)}.bind(this))},is.get=function(e,t){var n;return ba(this,e,"readonly",function(e){n=e.get(t)
}).then(function(){return n.result})},is.forEach=function(e,t){return ba(this,e,"readonly",function(e){e.openCursor().onsuccess=function(e){(e=e.target.result)&&(t(e.value),e.continue())}})},is.remove=function(e,t){return ba(this,e,"readwrite",function(e){e.delete(t)})};var Ks={manifest:"key",segment:"key"};Ea.prototype.m=function(){var e=this.j,t=this.l,n=this.i||Promise.resolve(),n=n.then(function(){return ga(e,t)});return this.b={},this.l=[],this.i=this.a=this.A=this.v=this.j=this.o=null,n},
is=ka.prototype,is.configure=function(){},is.start=function(e){var t=/^offline:([0-9]+)$/.exec(e);if(!t)return Promise.reject(new l(2,1,9004,e));var n=Number(t[1]),i=xa();return this.a=n,i?i.init(Ks).then(function(){return i.get("manifest",n)}).then(function(e){if(!e)throw new l(2,9,9003,n);return _a(e)}).then(function(e){return i.m().then(function(){return e})},function(e){return i.m().then(function(){throw e})}):Promise.reject(new l(2,9,9e3))},is.stop=function(){return Promise.resolve()},
is.update=function(){},is.onExpirationUpdated=function(e,t){var n=xa();n.init(Ks).then(function(){return n.get("manifest",this.a)}.bind(this)).then(function(i){if(i&&!(0>i.sessionIds.indexOf(e))&&(void 0==i.expiration||i.expiration>t))return i.expiration=t,ma(n,"manifest",i)}).catch(function(){}).then(function(){return n.m()})},Ns["application/x-offline-manifest"]=ka,t("shaka.offline.OfflineScheme",Oa),ds.offline=Oa,ja.prototype.then=function(e){return this.a=this.a.then(e).then(function(e){
return this.c?(this.h(),Promise.reject(this.i)):Promise.resolve(e)}.bind(this)),this},ja.prototype.cancel=function(e){return this.b?Promise.resolve():(this.c=!0,this.i=e,this.g)},n(Ua),t("shaka.Player",Ua),Ua.prototype.m=function(){this.J=!0;var e=Promise.resolve();return this.G&&(e=this.G.cancel(new l(2,7,7e3))),e.then(function(){var e=Promise.all([this.la,Qa(this),this.l?this.l.m():null,this.o?this.o.m():null]);return this.b=this.o=this.Ob=this.l=this.A=this.f=null,e}.bind(this))},
Ua.prototype.destroy=Ua.prototype.m,Ua.version="v2.1.2";var qs={};Ua.registerSupportPlugin=function(e,t){qs[e]=t},Ua.isBrowserSupported=function(){return!!(e.Promise&&e.Uint8Array&&Array.prototype.forEach&&e.MediaSource&&e.MediaSource.isTypeSupported&&e.MediaKeys&&e.navigator&&e.navigator.requestMediaKeySystemAccess&&e.MediaKeySystemAccess&&e.MediaKeySystemAccess.prototype.getConfiguration)},Ua.probeSupport=function(){return me().then(function(e){e={manifest:In(),media:Ee(),drm:e}
;for(var t in qs)e[t]=qs[t]();return e})},Ua.prototype.load=function(e,t,n){var i=this.hb(),a=new ja;this.G=a,this.dispatchEvent(new rt("loading"));var r=Date.now();return Ra(a.then(function(){return i}).then(function(){return this.i=Ga(),O(this.l,this.f,"playing",this.Sa.bind(this)),O(this.l,this.f,"pause",this.Sa.bind(this)),O(this.l,this.f,"ended",this.Sa.bind(this)),Mn(e,this.o,this.b.manifest.retryParameters,n)}.bind(this)).then(function(t){return this.h=new t,
this.h.configure(this.b.manifest),t={networkingEngine:this.o,filterPeriod:this.fb.bind(this),onTimelineRegionAdded:this.vd.bind(this),onEvent:this.gb.bind(this),onError:this.xa.bind(this)},2<this.h.start.length?this.h.start(e,this.o,t.filterPeriod,t.onError,t.onEvent):this.h.start(e,t)}.bind(this)).then(function(t){if(0==t.periods.length)throw new l(2,4,4014);return this.c=t,this.Ya=e,this.j=new te(this.o,this.xa.bind(this),this.$d.bind(this),this.Zd.bind(this)),this.j.configure(this.b.drm),
this.j.init(t,!1)}.bind(this)).then(function(){return this.c.periods.forEach(this.fb.bind(this)),this.Ua=Date.now()/1e3,this.ia=this.b.preferredAudioLanguage,this.Ba=this.b.preferredTextLanguage,Promise.all([ne(this.j,this.f),this.Wa])}.bind(this)).then(function(){return this.b.abr.manager.init(this.Jb.bind(this)),this.g=new Li(this.f,this.c,this.b.streaming,t||null,this.ae.bind(this),this.gb.bind(this)),
this.v=new zi(this.f,this.c,this.b.streaming,this.xc.bind(this),this.gb.bind(this),this.Yd.bind(this)),this.ja=new xe(this.f,this.N,this.A),this.a=new Qi(this.c,{Oa:this.g,K:this.ja,bd:this.o,$b:this.cd.bind(this),Zb:this.Ec.bind(this),onError:this.xa.bind(this),onEvent:this.gb.bind(this),hd:this.jd.bind(this),yb:this.sd.bind(this)}),this.a.configure(this.b.streaming),this.a.init()}.bind(this)).then(function(){if(this.b.streaming.startAtSegmentBoundary){var e=Xa(this,ki(this.g));Ai(this.g,e)}
this.c.periods.forEach(this.fb.bind(this)),er(this),$a(this);var e=Hi(this.a),t=Xe(e,this.ia);this.b.abr.manager.setVariants(t),e.variants.some(function(e){return e.primary}),this.Xa.forEach(this.v.v.bind(this.v)),this.Xa=[],j(this.l,this.f,"loadeddata",function(){this.i.loadLatency=(Date.now()-r)/1e3}.bind(this)),this.G=null}.bind(this))).catch(function(e){return this.G==a&&(this.G=null,this.dispatchEvent(new rt("unloading"))),Promise.reject(e)}.bind(this))},Ua.prototype.load=Ua.prototype.load,
Ua.prototype.configure=function(e){e.abr&&e.abr.manager&&e.abr.manager!=this.b.abr.manager&&(this.b.abr.manager.stop(),e.abr.manager.init(this.Jb.bind(this))),P(this.b,e,Ya(this),Wa(),""),Ba(this)},Ua.prototype.configure=Ua.prototype.configure,Ua.prototype.getConfiguration=function(){var e=Ya(this);return P(e,this.b,Ya(this),Wa(),""),e},Ua.prototype.getConfiguration=Ua.prototype.getConfiguration,Ua.prototype.Pd=function(){var e=Ya(this)
;e.abr&&e.abr.manager&&e.abr.manager!=this.b.abr.manager&&(this.b.abr.manager.stop(),e.abr.manager.init(this.Jb.bind(this))),this.b=Ya(this),Ba(this)},Ua.prototype.resetConfiguration=Ua.prototype.Pd,Ua.prototype.Qc=function(){return this.f},Ua.prototype.getMediaElement=Ua.prototype.Qc,Ua.prototype.Ub=function(){return this.o},Ua.prototype.getNetworkingEngine=Ua.prototype.Ub,Ua.prototype.Pc=function(){return this.Ya},Ua.prototype.getManifestUri=Ua.prototype.Pc,Ua.prototype.da=function(){
return!!this.c&&this.c.presentationTimeline.da()},Ua.prototype.isLive=Ua.prototype.da,Ua.prototype.va=function(){return!!this.c&&this.c.presentationTimeline.va()},Ua.prototype.isInProgress=Ua.prototype.va,Ua.prototype.Rd=function(){var e=0,t=0;return this.c&&(t=this.c.presentationTimeline,e=t.ma(),t=t.bb()),{start:e,end:t}},Ua.prototype.seekRange=Ua.prototype.Rd,Ua.prototype.keySystem=function(){return this.j?this.j.keySystem():""},Ua.prototype.keySystem=Ua.prototype.keySystem,
Ua.prototype.drmInfo=function(){return this.j?this.j.b:null},Ua.prototype.drmInfo=Ua.prototype.drmInfo,Ua.prototype.ab=function(){return this.j?this.j.ab():1/0},Ua.prototype.getExpiration=Ua.prototype.ab,Ua.prototype.Yc=function(){return this.ka},Ua.prototype.isBuffering=Ua.prototype.Yc,Ua.prototype.hb=function(){if(this.J)return Promise.resolve();this.dispatchEvent(new rt("unloading"));var e=Promise.resolve();return this.G&&(e=this.G.cancel(new l(2,7,7e3))),e.then(function(){
return this.la||(this.la=Ha(this).then(function(){this.la=null}.bind(this))),this.la}.bind(this))},Ua.prototype.unload=Ua.prototype.hb,Ua.prototype.pb=function(){return this.g?this.g.pb():0},Ua.prototype.getPlaybackRate=Ua.prototype.pb,Ua.prototype.le=function(e){this.g&&Oi(this.g,e),this.a&&Gi(this.a,1!=e)},Ua.prototype.trickPlay=Ua.prototype.le,Ua.prototype.Fc=function(){this.g&&Oi(this.g,1),this.a&&Gi(this.a,!1)},Ua.prototype.cancelTrickPlay=Ua.prototype.Fc,Ua.prototype.getTracks=function(){
return this.Wb().concat(this.Vb())},Ua.prototype.getTracks=Ua.prototype.getTracks,Ua.prototype.Ud=function(e,t){"text"==e.type?this.rc(e):(this.configure({abr:{enabled:!1}}),this.sc(e,t))},Ua.prototype.selectTrack=Ua.prototype.Ud,Ua.prototype.Wb=function(){if(!this.c)return[];var e=tt(this.c,ki(this.g)),t=this.P[e]||{};return We(this.c.periods[e],t.audio,t.video)},Ua.prototype.getVariantTracks=Ua.prototype.Wb,Ua.prototype.Vb=function(){if(!this.c)return[];var e=tt(this.c,ki(this.g))
;return Ye(this.c.periods[e],(this.P[e]||{}).text).filter(function(e){return 0>this.Va.indexOf(e.id)}.bind(this))},Ua.prototype.getTextTracks=Ua.prototype.Vb,Ua.prototype.rc=function(e){if(this.a&&(e=Ke(Hi(this.a),e))){Fa(this,e,!1);var t={};t.text=e,Ka(this,t,!0)}},Ua.prototype.selectTextTrack=Ua.prototype.rc,Ua.prototype.sc=function(e,t){if(this.a){var n={},i=Ge(Hi(this.a),e),a=Wi(this.a);if(i){if(!i.allowedByApplication||!i.allowedByKeySystem)return;i.audio&&(Va(this,i.audio),
i.audio!=a.audio&&(n.audio=i.audio)),i.video&&(Va(this,i.video),i.video!=a.video&&(n.video=i.video))}B(n).forEach(function(e){Fa(this,e,!1)}.bind(this)),(i=a.text)&&(n.text=i),Ka(this,n,t)}},Ua.prototype.selectVariantTrack=Ua.prototype.sc,Ua.prototype.Nc=function(){return this.a?qe(Hi(this.a).variants).map(function(e){return e.language}).filter(C):[]},Ua.prototype.getAudioLanguages=Ua.prototype.Nc,Ua.prototype.Wc=function(){return this.a?Hi(this.a).textStreams.map(function(e){return e.language
}).filter(C):[]},Ua.prototype.getTextLanguages=Ua.prototype.Wc,Ua.prototype.Sd=function(e){if(this.a){var t=Hi(this.a);this.ia=e,Ja(this,t)}},Ua.prototype.selectAudioLanguage=Ua.prototype.Sd,Ua.prototype.Td=function(e){if(this.a){var t=Hi(this.a);this.Ba=e,Ja(this,t)}},Ua.prototype.selectTextLanguage=Ua.prototype.Td,Ua.prototype.$c=function(){return"showing"==this.A.mode},Ua.prototype.isTextTrackVisible=Ua.prototype.$c,Ua.prototype.Wd=function(e){this.A.mode=e?"showing":"hidden",tr(this)},
Ua.prototype.setTextTrackVisibility=Ua.prototype.Wd,Ua.prototype.Sc=function(){return this.c?new Date(1e3*this.c.presentationTimeline.f+1e3*this.f.currentTime):null},Ua.prototype.getPlayheadTimeAsDate=Ua.prototype.Sc,Ua.prototype.getStats=function(){qa(this),this.Sa();var e=null,t=null,n=this.f&&this.f.getVideoPlaybackQuality?this.f.getVideoPlaybackQuality():{};return this.g&&this.c&&(e=tt(this.c,ki(this.g)),t=this.P[e],t=$e(t.audio,t.video,this.c.periods[e].variants),e=t.video||{}),e||(e={}),
t||(t={}),{width:e.width||0,height:e.height||0,streamBandwidth:t.bandwidth||0,decodedFrames:Number(n.totalVideoFrames),droppedFrames:Number(n.droppedVideoFrames),estimatedBandwidth:this.b.abr.manager.getBandwidthEstimate(),loadLatency:this.i.loadLatency,playTime:this.i.playTime,bufferingTime:this.i.bufferingTime,switchHistory:T(this.i.switchHistory),stateHistory:T(this.i.stateHistory)}},Ua.prototype.getStats=Ua.prototype.getStats,Ua.prototype.addTextTrack=function(e,t,n,i,a){
if(!this.a)return Promise.reject();for(var r,s=Hi(this.a),o=0;o<this.c.periods.length;o++)if(this.c.periods[o]==s){if(o==this.c.periods.length-1){if(r=this.c.presentationTimeline.Y()-s.startTime,1/0==r)return Promise.reject()}else r=this.c.periods[o+1].startTime-s.startTime;break}var l={id:this.Bc++,createSegmentIndex:Promise.resolve.bind(Promise),findSegmentPosition:function(){return 1},getSegmentReference:function(t){return 1!=t?null:new Ft(1,0,r,function(){return[e]},0,null)},
initSegmentReference:null,presentationTimeOffset:0,mimeType:i,codecs:a||"",kind:n,encrypted:!1,keyId:null,language:t,type:"text",primary:!1,trickModeVideo:null,containsEmsgBoxes:!1};return this.Va.push(l.id),s.textStreams.push(l),Yi(this.a,l).then(function(){if(!this.J)return this.Va.splice(this.Va.indexOf(l.id),1),Ja(this,s),er(this),{id:l.id,active:!1,type:"text",bandwidth:0,language:t,kind:n,width:null,height:null}}.bind(this))},Ua.prototype.addTextTrack=Ua.prototype.addTextTrack,
Ua.prototype.Hb=function(e,t){this.mb.width=e,this.mb.height=t},Ua.prototype.setMaxHardwareResolution=Ua.prototype.Hb,is=Ua.prototype,is.fb=function(e){var t=this.a?Wi(this.a):{};if(Qe(this.j,t,e),t=0<qe(e.variants).length,Ve(e,this.b.restrictions,this.mb)&&this.a&&Hi(this.a)==e&&er(this),e=1>qe(e.variants).length,!t)throw new l(2,4,4011);if(e)throw new l(2,4,4012)},is.be=function(e,t){this.b.abr.manager.segmentDownloaded(e,t)},is.xc=function(e){if(qa(this),this.ka=e,this.Sa(),this.g){
var t=this.g;e!=t.h&&(t.h=e,Oi(t,t.g))}this.dispatchEvent(new rt("buffering",{buffering:e}))},is.Yd=function(){er(this)},is.Sa=function(){if(!this.J){var e=this.ka?"buffering":this.f.ended?"ended":this.f.paused?"paused":"playing",t=Date.now()/1e3;if(this.i.stateHistory.length){var n=this.i.stateHistory[this.i.stateHistory.length-1];if(n.duration=t-n.timestamp,e==n.state)return}this.i.stateHistory.push({timestamp:t,state:e,duration:0})}},is.ae=function(){if(this.v){var e=this.v
;e.c.forEach(e.o.bind(e,!0))}this.a&&qi(this.a)},is.cd=function(e){this.Za=!0,this.b.abr.manager.disable(),e=Za(this,e,Xe(e,this.ia),Ze(e,this.Ba),!0);for(var t in this.B)e[t]=this.B[t].stream;this.B={};for(t in e)Fa(this,e[t],!0);return e},is.Ec=function(){this.Za=!1,this.b.abr.enabled&&this.b.abr.manager.enable();for(var e in this.B){var t=this.B[e];Ki(this.a,e,t.stream,t.Ic)}this.B={}},is.jd=function(){this.h&&this.h.update&&this.h.update()},is.sd=function(){this.g&&this.g.yb()},
is.Jb=function(e,t){var n,i=Wi(this.a);for(n in e){var a=e[n];i[n]!=a?Fa(this,a,!0):delete e[n]}if(!z(e)&&this.a){for(n in e)Ki(this.a,n,e[n],t||!1);$a(this)}},is.xa=function(e){this.J||this.dispatchEvent(new rt("error",{detail:e}))},is.vd=function(e){this.v?this.v.v(e):this.Xa.push(e)},is.gb=function(e){this.dispatchEvent(e)},is.wd=function(){if(this.f.error){var e=this.f.error.code;if(1!=e){var t=this.f.error.msExtendedCode;t&&(0>t&&(t+=Math.pow(2,32)),t=t.toString(16)),
this.xa(new l(2,3,3016,e,t))}}},is.$d=function(e){var t=["output-restricted","internal-error"],n=Hi(this.a),i=!1;n.variants.forEach(function(n){var a=[];n.audio&&a.push(n.audio),n.video&&a.push(n.video),a.forEach(function(a){var r=n.allowedByKeySystem;a.keyId&&(a=e[a.keyId],n.allowedByKeySystem=!!a&&0>t.indexOf(a)),r!=n.allowedByKeySystem&&(i=!0)})});var a=Wi(this.a);(a=Je(a.audio,a.video,n.variants))&&!a.allowedByKeySystem&&Ja(this,n),i&&er(this)},is.Zd=function(e,t){
this.h&&this.h.onExpirationUpdated&&this.h.onExpirationUpdated(e,t),this.dispatchEvent(new rt("expirationupdated"))},t("shaka.offline.Storage",nr),nr.support=ir,nr.prototype.m=function(){var e=this.a,t=this.h?this.h.m().catch(function(){}).then(function(){if(e)return e.m()}):Promise.resolve();return this.i=this.f=this.h=this.a=null,t},nr.prototype.destroy=nr.prototype.m,nr.prototype.configure=function(e){P(this.i,e,rr(this),{},"")},nr.prototype.configure=nr.prototype.configure,
nr.prototype.je=function(e,t,n){function i(e){r=e}if(this.v)return Promise.reject(new l(2,9,9006));this.v=!0;var a,r=null;return sr(this).then(function(){return cr(this),ar(this,e,i,n)}.bind(this)).then(function(n){if(cr(this),this.c=n.manifest,this.b=n.Jc,this.c.presentationTimeline.da()||this.c.presentationTimeline.va())throw new l(2,9,9005,e);this.c.periods.forEach(this.o.bind(this)),this.g=this.a.c.manifest++,this.l=0,n=this.c.periods.map(this.B.bind(this));var i=this.b.b,r=re(this.b);if(i){
if(!r.length)throw new l(2,9,9007,e);i.initData=[]}return a={key:this.g,originalManifestUri:e,duration:this.l,size:0,expiration:this.b.ab(),periods:n,sessionIds:r,drmInfo:i,appMetadata:t},La(this.h,a)}.bind(this)).then(function(){if(cr(this),r)throw r;return or(this)}.bind(this)).then(function(){return Ma(a)}.bind(this)).catch(function(e){return or(this).catch(S).then(function(){throw e})}.bind(this))},nr.prototype.store=nr.prototype.je,nr.prototype.remove=function(e){function t(e){
6013!=e.code&&(s=e)}var n=e.offlineUri,i=/^offline:([0-9]+)$/.exec(n);if(!i)return Promise.reject(new l(2,9,9004,n));var a,r,s=null,o=Number(i[1]);return sr(this).then(function(){return cr(this),this.a.get("manifest",o)}.bind(this)).then(function(e){if(cr(this),!e)throw new l(2,9,9003,n);return a=e,e=_a(a),r=new te(this.f.o,t,function(){},function(){}),r.configure(this.f.getConfiguration().drm),r.init(e,!0)}.bind(this)).then(function(){return ie(r,a.sessionIds)}.bind(this)).then(function(){
return r.m()}.bind(this)).then(function(){if(cr(this),s)throw s;var t=a.periods.map(function(e){return e.streams.map(function(e){var t=e.segments.map(function(e){return e=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(e.uri),Number(e[1])});return e.initSegmentUri&&(e=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(e.initSegmentUri),t.push(Number(e[1]))),t}).reduce(b,[])}).reduce(b,[]),n=0,i=t.length,r=this.i.progressCallback;return ga(this.a,t,function(){n++,r(e,n/i)})}.bind(this)).then(function(){
return cr(this),this.i.progressCallback(e,1),this.a.remove("manifest",o)}.bind(this))},nr.prototype.remove=nr.prototype.remove,nr.prototype.list=function(){var e=[];return sr(this).then(function(){return cr(this),this.a.forEach("manifest",function(t){e.push(Ma(t))})}.bind(this)).then(function(){return e})},nr.prototype.list=nr.prototype.list,nr.prototype.A=function(e){for(var t,n=[],i=Be(this.f.getConfiguration().preferredAudioLanguage),a=[0,hs,fs],r=e.filter(function(e){return"variant"==e.type
}),a=a.map(function(e){return r.filter(function(t){return t=Be(t.language),ze(e,i,t)})}),s=0;s<a.length;s++)if(a[s].length){t=a[s];break}t||(a=r.filter(function(e){return e.primary}),a.length&&(t=a)),t||(t=r,r.map(function(e){return e.language}).filter(C));var o=t.filter(function(e){return e.height&&480>=e.height});return o.length&&(o.sort(function(e,t){return t.height-e.height}),t=o.filter(function(e){return e.height==o[0].height})),t.sort(function(e,t){return e.bandwidth-t.bandwidth}),
t.length&&n.push(t[Math.floor(t.length/2)]),n.push.apply(n,e.filter(function(e){return"text"==e.type})),n},nr.prototype.o=function(e){var t={};if(this.j){var n=this.j.filter(function(e){return"variant"==e.type}),i=null;n.length&&(i=Ge(e,n[0])),i&&(i.video&&(t.video=i.video),i.audio&&(t.audio=i.audio))}Qe(this.b,t,e),Ve(e,this.f.getConfiguration().restrictions,{width:1/0,height:1/0})},nr.prototype.B=function(e){var t,n,i=We(e,null,null),a=Ye(e,null),i=this.i.trackSelectionCallback(i.concat(a))
;for(this.j||(this.j=i,this.c.periods.forEach(this.o.bind(this))),a=i.length-1;0<a;--a){var r=!1;for(n=a-1;0<=n;--n)if(i[a].type==i[n].type&&i[a].kind==i[n].kind&&i[a].language==i[n].language){r=!0;break}if(r)break}for(r=[],a=0;a<i.length;a++)(t=Ge(e,i[a]))?(t.audio&&((n=r.filter(function(e){return e.id==t.audio.id})[0])?n.variantIds.push(t.id):(n=t.video?t.bandwidth/2:t.bandwidth,r.push(ur(this,e,t.audio,n,t.id)))),t.video&&((n=r.filter(function(e){return e.id==t.video.id
})[0])?n.variantIds.push(t.id):(n=t.audio?t.bandwidth/2:t.bandwidth,r.push(ur(this,e,t.video,n,t.id))))):r.push(ur(this,e,Ke(e,i[a]),0));return{startTime:e.startTime,streams:r}},qs.offline=ir,t("shaka.polyfill.installAll",function(){for(var e=0;e<Xs.length;++e)Xs[e]()});var Xs=[];t("shaka.polyfill.register",dr),dr(function(){if(e.Document){var t=Element.prototype;t.requestFullscreen=t.requestFullscreen||t.mozRequestFullScreen||t.msRequestFullscreen||t.webkitRequestFullscreen,
t=Document.prototype,t.exitFullscreen=t.exitFullscreen||t.mozCancelFullScreen||t.msExitFullscreen||t.webkitExitFullscreen,"fullscreenElement"in document||(Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}})),
document.addEventListener("webkitfullscreenchange",pr),document.addEventListener("webkitfullscreenerror",pr),document.addEventListener("mozfullscreenchange",pr),document.addEventListener("mozfullscreenerror",pr),document.addEventListener("MSFullscreenChange",pr),document.addEventListener("MSFullscreenError",pr)}}),dr(function(){var t=navigator.userAgent;t&&0<=t.indexOf("CrKey")&&delete e.indexedDB}),hr.prototype.c=function(e){if(!(1<e.version)){var t=$(e.s.Ja(16)),n=[]
;if(0<e.version)for(var i=e.s.D(),a=0;a<i;++a){var r=$(e.s.Ja(16));n.push(r)}i=e.s.D(),e.s.I(i),this.b.push.apply(this.b,n),this.f.push(t),this.a.push({start:e.start,end:e.start+e.size-1})}},vr.prototype.createMediaKeys=function(){var e=new gr(this.keySystem);return Promise.resolve(e)},vr.prototype.getConfiguration=function(){return this.a},gr.prototype.createSession=function(e){if("temporary"!=(e||"temporary"))throw new TypeError("Session type "+e+" is unsupported on this platform.")
;return new br(this.a)},gr.prototype.setServerCertificate=function(){return Promise.resolve(!1)},n(br),is=br.prototype,is.generateRequest=function(e,t){this.a=new x;try{this.c=this.g.createSession("video/mp4",new Uint8Array(t),null),O(this.f,this.c,"mskeymessage",this.nd.bind(this)),O(this.f,this.c,"mskeyadded",this.ld.bind(this)),O(this.f,this.c,"mskeyerror",this.md.bind(this)),Mr(this,"status-pending")}catch(e){this.a.reject(e)}return this.a},is.load=function(){
return Promise.reject(Error("MediaKeySession.load not yet supported"))},is.update=function(e){this.b=new x;try{this.c.update(new Uint8Array(e))}catch(e){this.b.reject(e)}return this.b},is.close=function(){try{this.c.close(),this.closed.resolve(),R(this.f)}catch(e){this.closed.reject(e)}return this.closed},is.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))},is.nd=function(e){
this.a&&(this.a.resolve(),this.a=null),this.dispatchEvent(new rt("message",{messageType:void 0==this.keyStatuses.qb()?"licenserequest":"licenserenewal",message:e.message.buffer}))},is.ld=function(){this.a?(Mr(this,"usable"),this.a.resolve(),this.a=null):this.b&&(Mr(this,"usable"),this.b.resolve(),this.b=null)},is.md=function(){var e=Error("EME PatchedMediaKeysMs key error");if(e.errorCode=this.c.error,this.a)this.a.reject(e),this.a=null;else if(this.b)this.b.reject(e),
this.b=null;else switch(this.c.error.code){case MSMediaKeyError.MS_MEDIA_KEYERR_OUTPUT:case MSMediaKeyError.MS_MEDIA_KEYERR_HARDWARECHANGE:Mr(this,"output-not-allowed");default:Mr(this,"internal-error")}};var Zs;is=Cr.prototype,is.Ib=function(e){this.size=void 0==e?0:1,this.a=e},is.qb=function(){return this.a},is.forEach=function(e){this.a&&e(this.a,Zs)},is.get=function(e){if(this.has(e))return this.a},is.has=function(e){var t=Zs;return!(!this.a||!ee(new Uint8Array(e),new Uint8Array(t)))},
is.entries=function(){},is.keys=function(){},is.values=function(){},Pr.prototype.createSession=function(){},Pr.prototype.setServerCertificate=function(){},Tr.prototype.getConfiguration=function(){},Tr.prototype.createMediaKeys=function(){};var Js="";Ar.prototype.createMediaKeys=function(){var e=new kr(this.a);return Promise.resolve(e)},Ar.prototype.getConfiguration=function(){return this.b},is=kr.prototype,is.createSession=function(e){var t=e||"temporary"
;if("temporary"!=t&&"persistent-license"!=t)throw new TypeError("Session type "+e+" is unsupported on this platform.");return e=this.b||document.createElement("video"),e.src||(e.src="about:blank"),t=new jr(e,this.g,t),this.c.push(t),t},is.setServerCertificate=function(){return Promise.resolve(!1)},is.Ad=function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("encrypted",!1,!1,null),t.initDataType="webm",t.initData=e.initData,this.b.dispatchEvent(t)},is.zd=function(e){
var t=Or(this,e.sessionId);t&&(e=new rt("message",{messageType:void 0==t.keyStatuses.qb()?"licenserequest":"licenserenewal",message:e.message}),t.b&&(t.b.resolve(),t.b=null),t.dispatchEvent(e))},is.xd=function(e){(e=Or(this,e.sessionId))&&(Ur(e,"usable"),e.a&&e.a.resolve(),e.a=null)},is.yd=function(e){var t=Or(this,e.sessionId);if(t){var n=Error("EME v0.1b key error");n.errorCode=e.errorCode,n.errorCode.systemCode=e.systemCode,!e.sessionId&&t.b?(n.method="generateRequest",
45==e.systemCode&&(n.message="Unsupported session type."),t.b.reject(n),t.b=null):e.sessionId&&t.a?(n.method="update",t.a.reject(n),t.a=null):(n=e.systemCode,e.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?Ur(t,"output-restricted"):1==n?Ur(t,"expired"):Ur(t,"internal-error"))}},n(jr),is=jr.prototype,is.Kb=function(e,t){if(this.a)this.a.then(this.Kb.bind(this,e,t)).catch(this.Kb.bind(this,e,t));else{if(this.a=e,"webkit-org.w3.clearkey"==this.c){var n=Q(t),i=JSON.parse(n)
;"oct"!=i.keys[0].kty&&(this.a.reject(Error("Response is not a valid JSON Web Key Set.")),this.a=null),n=Z(i.keys[0].k),i=Z(i.keys[0].kid)}else n=new Uint8Array(t),i=null;var a=Er("addKey");try{this.f[a](this.c,n,i,this.sessionId)}catch(e){this.a.reject(e),this.a=null}}},is.generateRequest=function(e,t){return Rr(this,t,null)},is.load=function(e){return"persistent-license"==this.g?Rr(this,null,e):Promise.reject(Error("Not a persistent session."))},is.update=function(e){var t=new x
;return this.Kb(t,e),t},is.close=function(){if("persistent-license"!=this.g){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var e=Er("cancelKeyRequest");try{this.f[e](this.c,this.sessionId)}catch(e){}}return this.closed.resolve(),this.closed},is.remove=function(){return"persistent-license"!=this.g?Promise.reject(Error("Not a persistent session.")):this.close()};var $s;is=zr.prototype,is.Ib=function(e){this.size=void 0==e?0:1,this.a=e},
is.qb=function(){return this.a},is.forEach=function(e){this.a&&e(this.a,$s)},is.get=function(e){if(this.has(e))return this.a},is.has=function(e){var t=$s;return!(!this.a||!ee(new Uint8Array(e),new Uint8Array(t)))},is.entries=function(){},is.keys=function(){},is.values=function(){},dr(function(){
!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(HTMLMediaElement.prototype.webkitGenerateKeyRequest?xr("webkit"):HTMLMediaElement.prototype.generateKeyRequest?xr(""):e.MSMediaKeys?(Zs=new Uint8Array([0]).buffer,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=mr,e.MediaKeys=gr,e.MediaKeySystemAccess=vr,
navigator.requestMediaKeySystemAccess=fr):(navigator.requestMediaKeySystemAccess=wr,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Dr,e.MediaKeys=Pr,e.MediaKeySystemAccess=Tr))}),dr(function(){if(e.MediaSource){var t=navigator.vendor,n=navigator.appVersion;!t||!n||0>t.indexOf("Apple")||(0<=n.indexOf("Version/8")?e.MediaSource=null:0<=n.indexOf("Version/9")?Br():0<=n.indexOf("Version/10")&&(Br(),Fr()))}});var eo=0
;Hr.prototype.then=function(e,t){var n=new Hr;switch(this.za){case 1:qr(this,n,e);break;case 2:qr(this,n,t);break;case eo:this.c.push({L:n,nb:e}),this.b.push({L:n,nb:t})}return n},Hr.prototype.catch=function(e){return this.then(void 0,e)},Hr.prototype.fa=function(e){if(this.za==eo){for(this.jb=e,this.za=1,e=0;e<this.c.length;++e)qr(this,this.c[e].L,this.c[e].nb);this.c=[],this.b=[]}},Hr.prototype.a=function(e){if(this.za==eo){for(this.jb=e,this.za=2,
e=0;e<this.b.length;++e)qr(this,this.b[e].L,this.b[e].nb);this.c=[],this.b=[]}};var to=null,no=[];dr(function(t){e.setImmediate?(Jr=function(t){return e.setImmediate(t)},$r=function(t){return e.clearImmediate(t)}):(Jr=function(t){return e.setTimeout(t,0)},$r=function(t){return e.clearTimeout(t)}),e.Promise&&!t||(e.Promise=Hr,e.Promise.resolve=Wr,e.Promise.reject=Yr,e.Promise.all=Gr,e.Promise.race=Kr,e.Promise.prototype.then=Hr.prototype.then,e.Promise.prototype.catch=Hr.prototype.catch)}),
dr(function(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;!t.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in t&&(t.getVideoPlaybackQuality=es)}}),dr(function(){if(!e.VTTCue&&e.TextTrackCue){var t=TextTrackCue.length;if(3==t)e.VTTCue=ts;else if(6==t)e.VTTCue=ns;else{try{var n=!!ts(1,2,"")}catch(e){n=!1}n&&(e.VTTCue=ts)}}})}).call(a,this),void 0!==e&&e.exports?e.exports=a.shaka:void 0!==(i=function(){return a.shaka}.call(t,n,t,e))&&(e.exports=i)}()},function(e,t,n){"use strict"
;/**
 * @license shallow-diff https://github.com/cosmosio/shallow-diff
 *
 * The MIT License (MIT)
 *
 * Copyright (c) 2014-2015 Olivier Scherrer <pode.fr@gmail.com>
 */
function i(e,t){if(e)throw new TypeError("simple-loop: "+t)}var a=n(3453);e.exports=function(e,t){i("object"!=typeof e,"the first object to compare with shallowDiff needs to be an object"),i("object"!=typeof t,"the second object to compare with shallowDiff needs to be an object");var n=[],r=[],s=[],o=[];return a(t,function(t,i){i in e?t!==e[i]?r.push(i):t===e[i]&&n.push(i):o.push(i)}),a(e,function(e,n){n in t||s.push(n)}),{updated:r,unchanged:n,added:o,deleted:s}}},function(e,t){
e.exports=function(e,t){if(e===t)return!0;var n=e.length;if(t.length!==n)return!1;for(var i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}},function(e,t,n){"use strict";/**
 * @license simple-loop https://github.com/flams/simple-loop
 *
 * The MIT License (MIT)
 *
 * Copyright (c) 2014-2015 Olivier Scherrer <pode.fr@gmail.com>
 */
function i(e,t){if(e)throw new TypeError("simple-loop: "+t)}e.exports=function(e,t,n){i("object"!=typeof e,"iterated must be an array/object"),i("function"!=typeof t,"callback must be a function");var a;if(Array.isArray(e))for(a=0;a<e.length;a++)t.call(n,e[a],a,e);else for(a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}},function(e,t,n){e.exports=n(3455)},function(e,t,n){"use strict";(function(e,i){Object.defineProperty(t,"__esModule",{value:!0});var a,r=n(3456),s=function(e){
return e&&e.__esModule?e:{default:e}}(r);a="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:i;var o=(0,s.default)(a);t.default=o}).call(t,n(222),n(500)(e))},function(e,t,n){"use strict";function i(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},function(e,t,n){!function(t,n){e.exports=n()}(0,function(){return function(e){
function t(i){if(n[i])return n[i].exports;var a=n[i]={exports:{},id:i,loaded:!1};return e[i].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1);Object.defineProperty(t,"createAutoCorrectedDatePipe",{enumerable:!0,get:function(){return i(a).default}});var r=n(2);Object.defineProperty(t,"createNumberMask",{
enumerable:!0,get:function(){return i(r).default}});var s=n(3);Object.defineProperty(t,"emailMask",{enumerable:!0,get:function(){return i(s).default}})},function(e,t){"use strict";function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mm dd yyyy";return function(t){var n=[],i=e.split(/[^dmy]+/),a={dd:31,mm:12,yyyy:9999},r={dd:1,mm:1,yyyy:1},s=t.split("");return i.forEach(function(t){var i=e.indexOf(t),r=parseInt(a[t].toString().substr(0,1),10)
;parseInt(s[i],10)>r&&(s[i+1]=s[i],s[i]=0,n.push(i))}),!i.some(function(n){var i=e.indexOf(n),s=n.length,o=t.substr(i,s).replace(/\D/g,""),l=parseInt(o,10);return l>a[n]||o.length===s&&l<r[n]})&&{value:s.join(""),indexesOfPipedChars:n}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";function n(){function e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=e.length
;if(e===o||e[0]===m[0]&&1===t)return m.split(o).concat([f]).concat(y.split(o));var n=e.lastIndexOf(P),s=n!==-1,l=e[0]===c&&A,u=void 0,g=void 0,b=void 0;if(e.slice(U*-1)===y&&(e=e.slice(0,U*-1)),s&&(w||N)?(u=e.slice(e.slice(0,R)===m?R:0,n),g=e.slice(n+1,t),g=i(g.replace(p,o))):u=e.slice(0,R)===m?e.slice(R):e,j&&(void 0===j?"undefined":r(j))===h){var I="."===M?"[.]":""+M,C=(u.match(new RegExp(I,"g"))||[]).length;u=u.slice(0,j+C*z)}return u=u.replace(p,o),_||(u=String(Number(u))),u=S?a(u,M):u,
b=i(u),(s&&w||N===!0)&&(e[n-1]!==P&&b.push(v),b.push(P,v),g&&((void 0===x?"undefined":r(x))===h&&(g=g.slice(0,x)),b=b.concat(g)),N===!0&&e[n-1]===P&&b.push(f)),R>0&&(b=m.split(o).concat(b)),l&&(b.length===R&&b.push(f),b=[d].concat(b)),y.length>0&&(b=b.concat(y.split(o))),b}
var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.prefix,m=void 0===n?s:n,g=t.suffix,y=void 0===g?o:g,b=t.includeThousandsSeparator,S=void 0===b||b,I=t.thousandsSeparatorSymbol,M=void 0===I?l:I,C=t.allowDecimal,w=void 0!==C&&C,D=t.decimalSymbol,P=void 0===D?u:D,T=t.decimalLimit,x=void 0===T?2:T,E=t.requireDecimal,N=void 0!==E&&E,L=t.allowNegative,A=void 0!==L&&L,k=t.allowLeadingZeroes,_=void 0!==k&&k,O=t.integerLimit,j=void 0===O?null:O,R=m&&m.length||0,U=y&&y.length||0,z=M&&M.length||0
;return e.instanceOf="createNumberMask",e}function i(e){return e.split(o).map(function(e){return f.test(e)?f:e})}function a(e,t){return e.replace(/\B(?=(\d{3})+(?!\d))/g,t)}Object.defineProperty(t,"__esModule",{value:!0});var r="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};t.default=n
;var s="$",o="",l=",",u=".",c="-",d=/-/,p=/\D+/g,h="number",f=/\d/,v="[]"},function(e,t,n){"use strict";function i(e,t){e=e.replace(S,h);var n=t.placeholderChar,i=t.currentCaretPosition,u=e.indexOf(f),c=e.lastIndexOf(p),d=c<u?-1:c,v=a(e,u+1,f),m=a(e,d-1,p),g=r(e,u),y=s(e,u,d,n),b=o(e,d,n,i);return g=l(g),y=l(y),b=l(b,!0),g.concat(v).concat(y).concat(m).concat(b)}function a(e,t,n){var i=[];return e[t]===n?i.push(n):i.push(v,n),i.push(v),i}function r(e,t){return t===-1?e:e.slice(0,t)}
function s(e,t,n,i){var a=h;return t!==-1&&(a=n===-1?e.slice(t+1,e.length):e.slice(t+1,n)),a=a.replace(new RegExp("[\\s"+i+"]",g),h),a===f?d:a.length<1?m:a[a.length-1]===p?a.slice(0,a.length-1):a}function o(e,t,n,i){var a=h;return t!==-1&&(a=e.slice(t+1,e.length)),a=a.replace(new RegExp("[\\s"+n+".]",g),h),0===a.length?e[t-1]===p&&i!==e.length?d:h:a}function l(e,t){return e.split(h).map(function(e){return e===m?e:t?b:y})}Object.defineProperty(t,"__esModule",{value:!0});var u=n(4),c=function(e){
return e&&e.__esModule?e:{default:e}}(u),d="*",p=".",h="",f="@",v="[]",m=" ",g="g",y=/[^\s]/,b=/[^.\s]/,S=/\s/g;t.default={mask:i,pipe:c.default}},function(e,t){"use strict";function n(e,t){var n=t.currentCaretPosition,r=t.rawValue,p=t.previousConformedValue,h=t.placeholderChar,f=e;f=i(f);var v=f.indexOf(o);if(null===r.match(new RegExp("[^@\\s."+h+"]")))return s;if(f.indexOf(u)!==-1||v!==-1&&n!==v+1||r.indexOf(a)===-1&&p!==s&&r.indexOf(l)!==-1)return!1;var m=f.indexOf(a)
;return(f.slice(m+1,f.length).match(d)||c).length>1&&f.substr(-1)===l&&n!==r.length&&(f=f.slice(0,f.length-1)),f}function i(e){var t=0;return e.replace(r,function(){return t++,1===t?a:s})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var a="@",r=/@/g,s="",o="@.",l=".",u="..",c=[],d=/\./g}])})},function(e,t,n){!function(t,n){e.exports=n()}(0,function(){return function(e){function t(i){if(n[i])return n[i].exports;var a=n[i]={exports:{},id:i,loaded:!1}
;return e[i].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3);Object.defineProperty(t,"conformToMask",{enumerable:!0,get:function(){return i(a).default}});var r=n(2);Object.defineProperty(t,"adjustCaretPosition",{enumerable:!0,get:function(){return i(r).default}});var s=n(5)
;Object.defineProperty(t,"createTextMaskInputElement",{enumerable:!0,get:function(){return i(s).default}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.placeholderChar="_"},function(e,t){"use strict";function n(e){var t=e.previousConformedValue,n=void 0===t?a:t,r=e.currentCaretPosition,s=void 0===r?0:r,o=e.conformedValue,l=e.rawValue,u=e.placeholderChar,c=e.placeholder,d=e.indexesOfPipedChars,p=void 0===d?i:d,h=e.caretTrapIndexes,f=void 0===h?i:h
;if(0===s)return 0;var v=l.length,m=n.length,g=c.length,y=o.length,b=v-m,S=b>0,I=0===m;if(b>1&&!S&&!I)return s;var M=S&&(n===o||o===c),C=0;if(M)C=s-b;else for(var w=o.toLowerCase(),D=l.toLowerCase(),P=D.substr(0,s).split(a),T=P.filter(function(e){return w.indexOf(e)!==-1}),x=T[T.length-1],E=p.map(function(e){return w[e]}),N=E.filter(function(e){return e===x}).length,L=T.filter(function(e){return e===x}).length,A=c.substr(0,c.indexOf(u)).split(a).filter(function(e,t){return e===x&&l[t]!==e
}).length,k=A+L+N,_=0,O=0;O<y;O++){var j=w[O];if(C=O+1,j===x&&_++,_>=k)break}if(S){for(var R=C,U=C;U<=g;U++)if(c[U]===u&&(R=U),c[U]===u||f.indexOf(U)!==-1||U===g)return R}else for(var z=C;z>=0;z--)if(c[z-1]===u||f.indexOf(z)!==-1||0===z)return z}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var i=[],a=""},function(e,t,n){"use strict";function i(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.guide,o=void 0===i||i,l=n.previousConformedValue,u=void 0===l?s:l,c=n.placeholderChar,d=void 0===c?r.placeholderChar:c,p=n.placeholder,h=void 0===p?(0,
a.convertMaskToPlaceholder)(t,d):p,f=n.currentCaretPosition,v=n.keepCharPositions,m=o===!1&&void 0!==u,g=e.length,y=u.length,b=h.length,S=t.length,I=g-y,M=I>0,C=f+(M?-I:0),w=C+Math.abs(I);if(v===!0&&!M){for(var D=s,P=C;P<w;P++)h[P]===d&&(D+=d);e=e.slice(0,C)+D+e.slice(C,g)}for(var T=e.split(s).map(function(e,t){return{char:e,isNew:t>=C&&t<w}}),x=g-1;x>=0;x--){var E=T[x].char;if(E!==d){E===h[x>=C&&y===S?x-I:x]&&T.splice(x,1)}}var N=s,L=!1;e:for(var A=0;A<b;A++){var k=h[A];if(k===d){
if(T.length>0)for(;T.length>0;){var _=T.shift(),O=_.char,j=_.isNew;if(O===d&&m!==!0){N+=d;continue e}if(t[A].test(O)){if(v===!0&&j!==!1&&u!==s&&o!==!1&&M){for(var R=T.length,U=null,z=0;z<R;z++){var B=T[z];if(B.char!==d&&B.isNew===!1)break;if(B.char===d){U=z;break}}null!==U?(N+=O,T.splice(U,1)):A--}else N+=O;continue e}L=!0}m===!1&&(N+=h.substr(A,b));break}N+=k}if(m&&M===!1){for(var F=null,V=0;V<N.length;V++)h[V]===d&&(F=V);N=null!==F?N.substr(0,F+1):s}return{conformedValue:N,meta:{
someCharsRejected:L}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(4),r=n(1),s=""},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.placeholderChar
;if(e.indexOf(t)!==-1)throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(t)+"\n\nThe mask that was received is: "+JSON.stringify(e));return e.map(function(e){return e instanceof RegExp?t:e}).join("")}function a(e){return"string"==typeof e||e instanceof String}function r(e){
return"number"==typeof e&&void 0===e.length&&!isNaN(e)}function s(e){for(var t=[],n=void 0;(n=e.indexOf(u))!==-1;)t.push(n),e.splice(n,1);return{maskWithoutCaretTraps:e,indexes:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.convertMaskToPlaceholder=i,t.isString=a,t.isNumber=r,t.processCaretTraps=s;var o=n(1),l=[],u="[]"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e){var t={previousConformedValue:m};return{state:t,update:function(n){
var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,a=i.inputElement,u=i.mask,d=i.guide,g=i.pipe,b=i.placeholderChar,S=void 0===b?f.placeholderChar:b,I=i.keepCharPositions,M=void 0!==I&&I;if((n=n||a.value)!==t.previousConformedValue){(void 0===u?"undefined":l(u))===y&&void 0!==u.pipe&&void 0!==u.mask&&(g=u.pipe,u=u.mask);var C=void 0,w=void 0;if(u instanceof Array&&(C=(0,h.convertMaskToPlaceholder)(u,S)),u!==!1){var D=s(n),P=a.selectionStart,T=t.previousConformedValue,x=void 0
;if((void 0===u?"undefined":l(u))===v){if((w=u(D,{currentCaretPosition:P,previousConformedValue:T,placeholderChar:S}))===!1)return;var E=(0,h.processCaretTraps)(w),N=E.maskWithoutCaretTraps,L=E.indexes;w=N,x=L,C=(0,h.convertMaskToPlaceholder)(w,S)}else w=u;var A={previousConformedValue:T,guide:d,placeholderChar:S,pipe:g,placeholder:C,currentCaretPosition:P,keepCharPositions:M},k=(0,p.default)(D,w,A),_=k.conformedValue,O=(void 0===g?"undefined":l(g))===v,j={};O&&(j=g(_,o({rawValue:D},A)),
j===!1?j={value:T,rejected:!0}:(0,h.isString)(j)&&(j={value:j}));var R=O?j.value:_,U=(0,c.default)({previousConformedValue:T,conformedValue:R,placeholder:C,rawValue:D,currentCaretPosition:P,placeholderChar:S,indexesOfPipedChars:j.indexesOfPipedChars,caretTrapIndexes:x}),z=R===C&&0===U,B=z?m:R;t.previousConformedValue=B,a.value!==B&&(a.value=B,r(a,U))}}}}}function r(e,t){document.activeElement===e&&(b?setTimeout(function(){return e.setSelectionRange(t,t,g)},0):e.setSelectionRange(t,t,g))}
function s(e){if((0,h.isString)(e))return e;if((0,h.isNumber)(e))return String(e);if(void 0===e||null===e)return m;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(e))}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e
},l="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};t.default=a;var u=n(2),c=i(u),d=n(3),p=i(d),h=n(4),f=n(1),v="function",m="",g="none",y="object",b="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent)}])})},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEwIDExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiNhNGM2MzkiIGQ9Im0wIDBoMTEwdjExMGgtMTEweiIvPjxwYXRoIGQ9Im00NC44ODIgMjUuMzcxbDIuODE3IDQuODU5Yy01LjEyNyAyLjQ5NS04LjYwMiA3LjM4MS04LjYwMiAxMi45ODZoMzIuODA3YzAtNS42MDUtMy40NzUtMTAuNDktOC42MDMtMTIuOTg2bDIuODE3LTQuODU5YzAgMCAuMTM0LS4yNTgtLjExOS0uNDAzLS4yNTMtLjE0NS0uNDIzLjEwMi0uNDIzLjEwMmwtMi44NiA0LjkwMmMtMi4xNzgtLjk2Mi00LjYyNi0xLjUwNS03LjIxNi0xLjUwNS0yLjU5IDAtNS4wNC41NDMtNy4yMTYgMS41MDVsLTIuODYtNC45MDJjMCAwLS4xNi0uMjQ3LS40MTQtLjEwMy0uMjU1LjE0NC0uMTI4LjQwMy0uMTI4LjQwM20yLjgxNyA5LjQxMmMuODYgMCAxLjU2LjY5NSAxLjU2IDEuNTQ4IDAgLjg1My0uNyAxLjUyNi0xLjU2IDEuNTI2LS44NTkgMC0xLjU2LS42NzQtMS41Ni0xLjUyNiAwLS44NTMuNzAxLTEuNTQ4IDEuNTYtMS41NDhtMTUuNjAyIDBjLjg2IDAgMS41Ni42OTUgMS41NiAxLjU0OCAwIC44NTMtLjcgMS41MjYtMS41NiAxLjUyNi0uODU5IDAtMS41Ni0uNjc0LTEuNTYtMS41MjYgMC0uODUzLjcwMS0xLjU0OCAxLjU2LTEuNTQ4bS0yNC4zMzcgMTAuMzI4djI0LjY5NGMwIDEuMjI1IDEuNDkzIDIuODI5IDIuNzI3IDIuODI5aDMuOTAzdjguNDE5YzAgMi4xNDMgMS41NzQgMy44NyAzLjUzMyAzLjg3IDEuOTU4IDAgMy41MzItMS43MjcgMy41MzItMy44N3YtOC40MTloNS42Nzh2OC40MTljMCAyLjE0MyAxLjU3NCAzLjg3IDMuNTMyIDMuODcgMS45NTggMCAzLjU1NC0xLjcyNyAzLjU1NC0zLjg3di04LjQxOWgzLjg4MWMxLjIzNSAwIDIuNzI4LTEuNjA0IDIuNzI4LTIuODI5di0yNC42OTRoLTMzLjA3bS01LjQ0Mi0uNTE3YzEuOTUzIDAgMy41MzUgMS43MzMgMy41MzUgMy44N3YxNC42NTFjMCAyLjEzNi0xLjU4MyAzLjg3LTMuNTM1IDMuODctMS45NTMgMC0zLjUzNi0xLjczMy0zLjUzNi0zLjg3di0xNC42NTFjMC0yLjEzNyAxLjU4My0zLjg3IDMuNTM2LTMuODdtNDMuOTU2IDBjMS45NTMgMCAzLjUzNiAxLjczMyAzLjUzNiAzLjg3djE0LjY1MWMwIDIuMTM2LTEuNTgyIDMuODctMy41MzYgMy44Ny0xLjk1MiAwLTMuNTM1LTEuNzMzLTMuNTM1LTMuODd2LTE0LjY1MWMwLTIuMTM3IDEuNTgyLTMuODcgMy41MzUtMy44NyIgZmlsbD0iIzFmMWYxZiIvPjwvZz48L3N2Zz4="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEwIDExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiNkOGQ4ZDgiIGQ9Im0wIDBoMTEwdjExMGgtMTEweiIvPjxwYXRoIGQ9Im00My44MDIgNTUuODQ0Yy0uMDMzLTMuNTUyIDIuODU3LTUuMjU5IDIuOTg3LTUuMzQxLTEuNjI1LTIuNDEyLTQuMTU0LTIuNzQzLTUuMDU2LTIuNzgzLTIuMTU0LS4yMjEtNC4yMDIgMS4yODctNS4yOTMgMS4yODctMS4wOTEgMC0yLjc3OC0xLjI1NC00LjU2Mi0xLjIxOS0yLjM0OC4wMzQtNC41MTEgMS4zODQtNS43MjEgMy41MTYtMi40MzcgNC4yOTUtLjYyMyAxMC42NTYgMS43NTMgMTQuMTQgMS4xNjIgMS43MDMgMi41NDYgMy42MiA0LjM2NCAzLjU1MSAxLjc1Mi0uMDY5IDIuNDEzLTEuMTQ5IDQuNTI5LTEuMTQ5IDIuMTE2IDAgMi43MTIgMS4xNDkgNC41NjQgMS4xMTMgMS44ODUtLjAzNCAzLjA3OC0xLjczNiA0LjIzMS0zLjQ0NiAxLjMzMy0xLjk3OCAxLjg4Mi0zLjg5MyAxLjkxNS0zLjk5MS0uMDQxLS4wMTktMy42NzQtMS40MzItMy43MTEtNS42NzhtLTMuNDc5LTEwLjQyOGMuOTY2LTEuMTg3IDEuNjE2LTIuODM3IDEuNDM4LTQuNDgxLTEuMzkuMDU4LTMuMDc0Ljk0MS00LjA3MyAyLjEyNi0uODk0IDEuMDUxLTEuNjc4IDIuNzI5LTEuNDY2IDQuMzQxIDEuNTUuMTIyIDMuMTM1LS44IDQuMTAxLTEuOTg2bTE3Ljk1Ny0zLjY0MXY1Ljk0OGg1LjMxMnYyLjg2N2gtNS4zMTJ2MTEuMTY5YzAgMi41NjguNzE3IDQuMDIgMi43ODMgNC4wMi45NyAwIDEuNjg3LS4xMjggMi4xNS0uMjU3bC4xNjkgMi44MjRjLS43MTcuMy0xLjg1NS41MTQtMy4yODkuNTE0LTEuNzI4IDAtMy4xMi0uNTU2LTQuMDEtMS41ODMtMS4wNTQtMS4xMTMtMS40MzMtMi45NTMtMS40MzMtNS4zOTJ2LTExLjI5OGgtMy4xNjJ2LTIuODY3aDMuMTYydi00Ljk2NGwzLjYyNi0uOTg0bTExLjI5OCA1Ljk0OGw0LjAxIDExLjY0Yy42NzUgMS44ODMgMS4yMjMgMy41OTUgMS42NDQgNS4zMDZoLjEyNmMuNDY0LTEuNzEyIDEuMDU0LTMuNDI0IDEuNzI5LTUuMzA2bDMuOTYzLTExLjY0aDMuODc5bC04LjAxIDIwLjcxMmgtMy41NDJsLTcuNzU4LTIwLjcxMmgzLjk2MyIgZmlsbD0iIzFmMWYxZiIvPjwvZz48L3N2Zz4="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEwIDExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiM0Y2I2NDkiIGQ9Im0wIDBoMTEwdjExMGgtMTEweiIvPjxwYXRoIGZpbGw9IiNmY2QyMDkiIGQ9Im0zNy42IDExMGg3Mi40di03NGgtNTguMjRsMS44NTkgNS43MTggOC45MzIgMi42NDIgNC41MyA4LjY2LS43NyA4eiIvPjxwYXRoIGZpbGw9IiNlZDVlNTAiIGQ9Im04IDBsMzQuMTkgNTkuOTguNDEtOS41NCAzLjUzLTUuNTM0IDguODctMy45MDZoNTV2LTQwLjk5N3oiLz48Y2lyY2xlIGZpbGw9IiMxZjFmMWYiIGN4PSI1NSIgY3k9IjU1IiByPSIzMCIvPjxwYXRoIGQ9Im01NSA4NWMxNi41NjkgMCAzMC0xMy40MzEgMzAtMzAgMC01LjA2LTEuMjUzLTkuODI4LTMuNDY1LTE0LjAxbC0yNy41MzUuMDA5YzguNTk5IDEuOTI5IDE0LjE4OCA1Ljc2OSAxMS45OTMgMjAuNjEzbC0xMy42NzUgMjMuMjY4YzAgMCAxLjc3OC4xMTggMi42ODEuMTE4IiBmaWxsPSIjNjY2Ii8+PHBhdGggZD0ibTgxLjU1IDQxLjAxYy01LjAzLTkuNTI0LTE1LjAzLTE2LjAxLTI2LjU0OC0xNi4wMS0xMC40NyAwLTE5LjY4OCA1LjM2NC0yNS4wNSAxMy40OTRsMTIuMjM1IDIxLjUwNmMtMy4zMzEtMTUuNzg4IDExLjgyLTE4Ljk4NSAxMS44Mi0xOC45ODVoMjcuNTQ4IiBmaWxsPSIjMzMzIi8+PHBhdGggZD0ibTU0LjUgNjhjNy40NTYgMCAxMy41LTYuMDQgMTMuNS0xMy41IDAtNy40NTYtNi4wNC0xMy41LTEzLjUtMTMuNS03LjQ1NiAwLTEzLjUgNi4wNC0xMy41IDEzLjUgMCA3LjQ1NiA2LjA0IDEzLjUgMTMuNSAxMy41bTAtMmMtNi4zNTEgMC0xMS41LTUuMTQ5LTExLjUtMTEuNSAwLTYuMzUxIDUuMTQ5LTExLjUgMTEuNS0xMS41IDYuMzUxIDAgMTEuNSA1LjE0OSAxMS41IDExLjUgMCA2LjM1MS01LjE0OSAxMS41LTExLjUgMTEuNSIgZmlsbD0iIzY1OWVjZSIvPjwvZz48L3N2Zz4="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEwIDExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiNlNWEwMGQiIGQ9Im0wIDBoMTEwdjExMGgtMTEweiIvPjxwYXRoIGQ9Im01NC4yMSA1My4zYy0uMTIyLS4xNTctLjI4Ni0uMjEzLS40NDUtLjIxMy0uMTI3IDAtLjI0OC4wNzItLjM0NC4ybC0xMS40ODIgMTMuNjIxYy0uMjE3LjI4My0uMTA0LjYwNS4yNTIuNjA1bDYuODA5LjAyOXYxMy41MDljMCAuNjYyLjMxNC45MjQuOTc0LjkyNmw3LjY2Mi4wMTljLjY2LjAwMi45MzctLjI1OS45MzctLjkyM2wuMDI1LTEzLjUzMmg2LjgzOGMuMzU2IDAgLjQ3LS4zNDMuMjUyLS42MjZsLTExLjQ3OC0xMy42MTVtMTYuMzktMTQuMjE2Yy0xLjUwNiAwLTIuOTUzLjI0Ny00LjMxMi42OTEtMi43NzEtNi4xNTMtOC45MjMtMTAuNDQxLTE2LjA5LTEwLjQ0MS05Ljc1NiAwLTE3LjY2MyA3LjkzOC0xNy42NjMgMTcuNzMgMCAuNjEuMDMxIDEuMjExLjA5IDEuODA0LTQuMTQ1LjkwOC03LjI1MiA0Ljc5Mi03LjI1MiA5LjIyNCAwIDUuMTEyIDQuMTMgOS40NDggOS4yMjQgOS40NDhoMi45NjNjLS4wODYtMS4wNDYuMTg3LTIuMTEuODY5LTIuOTk2bDEyLjA2LTEzLjc0OWMuNzAyLS45MzYgMS45NDMtMS41NjUgMy4yNzctMS41NjUgMS4zNzMgMCAyLjY0MS42MjIgMy40NzkgMS43MDRsMTEuODYyIDEzLjQ5Yy43NTEuOTY4IDEuMDQ1IDIuMDU5Ljk3IDMuMTE1aDEuMDFjNy43MDUgMCAxMy40NjQtNi40NyAxMy40NjQtMTQuMjI5IDAtNy43NTQtNi4yNDUtMTQuMjI4LTEzLjk1LTE0LjIyOCIgZmlsbD0iIzFmMWYxZiIvPjwvZz48L3N2Zz4="
},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEwIiBoZWlnaHQ9IjExMCIgdmlld0JveD0iMCAwIDExMCAxMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBmaWxsPSIjMzMzIiBkPSJNMCAwaDExMHYxMTBIMHoiLz48cGF0aCBmaWxsPSIjMUYxRjFGIiBkPSJNNTQuNTkgMjVsMTkuNDA2IDI5Ljk5OC0xOS40MDYgMzBIMzd2LS4wMDZsMTkuNDEtMjkuOTk0TDM3IDI1aDE3LjU5Ii8+PC9nPjwvc3ZnPgo="},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEwIDExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiM0NWFhNDIiIGQ9Im0wIDBoMTEwdjExMGgtMTEweiIvPjxwYXRoIGQ9Im01NS40OSAyNWMxNi42NTkgMCAzMC41NTggMTAuMTkyIDMzLjc4MyAyMy43NDQuMyAxLjI1OC41MDMgMi41MzEtLjA3NyAzLjM4My0uODIgMS4yMDUtMi42OTYuOTc3LTMuOTkuOTc3aC0yNC42MzNjLTIuNDg5IDAtNC4yOTQuMDMzLTYuNjQyLTEuMTM1LTEuODEyLS45MDItMi40NDItMS42NTgtMy42NzUtMy4wODItMS42NzMtMS45MzEtNC4xMzEtMy4xNS02Ljg3LTMuMTUtNS4wNCAwLTkuMTI4IDQuMTI4LTkuMTI4IDkuMjIxIDAgNS4wOTMgNC4wODcgOS4yMjEgOS4xMjggOS4yMjEgMi4xNzcgMCA0LjE3Ny0uNzcgNS43NDUtMi4wNTYuODE5LS42NzEgMS44OTEtMS45MjMgMi42NDgtMi43MjEgMS44NTQtMS45NTIgNC43NjEtMi41NzUgOC4wNy0yLjQ0OGgyNi4zMTVjMi43OTMtLjA2OCAzLjgxMS40ODYgMy4yODIgMy4wNTYtMi44NzMgMTMuOTMzLTE2Ljk4MSAyNC41MTItMzMuOTUzIDI0LjUxMi0xMC4yNjIgMC0xOS40NzctMy44NjktMjUuNzk0LTEwLjAxLS43NjItLjc0MS0xLjA3Mi0xLjY5LjAwNy0yLjI5NS4zOTktLjIyNC45OTEtLjM1IDEuODExLS4zNTJoMTcuNjg4YzEuODk0LjEwOCAzLjU4Mi42MDIgNS4wODYgMS40ODYgMS43NTYgMS4wMzMgMi4wNzIgMS43NDYgMy4zMjIgMy4wNTYgMS42NiAxLjc0MSAzLjk5MiAyLjgyNCA2LjU3NCAyLjgyNCA1LjA0IDAgOS4xMjgtNC4xMjggOS4xMjgtOS4yMjEgMC01LjA5My00LjA4Ny05LjIyMS05LjEyOC05LjIyMS0yLjE3NyAwLTQuMTc3Ljc3LTUuNzQ1IDIuMDU2LS44MTkuNjcxLTEuODkxIDEuOTIzLTIuNjQ4IDIuNzIxLTIuODMxIDIuOTgtNy41MiAyLjQ0OC0xMS4yNjYgMi40NDhoLTEzLjM2MWMtMi4wNzcgMC00LjM4Mi4yMTYtNi4xODItLjk3OC0xLjEzNC0uNzUzLTEuOTE4LTEuOTYtMi41MjUtMy43MDQtLjk0Ni0yLjcxNS0xLjQ1NS01LjU5My0xLjQ1NS04LjU3NCAwLTIuNTE1LjM2My00Ljk1NiAxLjA0NC03LjI4OCAxLjAxLTMuMzc5IDIuNjc2LTYuMDUgNy41OTgtNS45MTdoMTguMjk2YzIuNjcxLS4xMDIgNS4wODEuMjg1IDYuODg2IDEuNDY1Ljk4OS42NDcgMS4zNzQgMS4yNDIgMi4xMzcgMi4wODEuNTYzLjYxOSAxLjE3NSAxLjIzNSAxLjY5MyAxLjYyMyAxLjYyNSAxLjIxNiAzLjU2OCAyLjA1NiA1Ljc0NiAyLjA1NiA1LjA0IDAgOS4xMjctNC4xMjggOS4xMjctOS4yMjEgMC01LjA5My00LjA4Ni05LjIyMS05LjEyNy05LjIyMS0yLjc4NSAwLTUuMjc4IDEuMjYtNi45NTIgMy4yNDYtMS42MTkgMS45MjEtMy4yOTcgMy4xMzktNS40NzYgMy43MjctMS40ODkuNDAyLTIuNzA0LjM5My00LjIxLjM5M2gtMTYuMDNjLTMuMTY0LS4wMDktMy4wMzUtMS44MjktMS4xNS0zLjUyNiA2LjI3Ny01LjY1NiAxNS4xMi05LjE3OSAyNC45MTEtOS4xNzkiIGZpbGw9IiMxZjFmMWYiLz48L2c+PC9zdmc+"
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEwIDExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiMzMjc3YmMiIGQ9Im0wIDBoMTEwdjExMGgtMTEweiIvPjxwYXRoIGQ9Im00NS40MiA0OS4xOGgyMS4xMWMwLTcuNTQzLTMuMjctMTIuNjg1LTEyLjE4Ny0xMi42ODUtMTAuNTM4IDAtMjEuMjU0IDYuOTA0LTI2LjM0OCAxNS41MTIgMS41NzgtMTQuOTQxIDEyLjIyMy0yNyAyOC4yNS0yNyAxMy43MzYgMCAyNi43NTEgMTAuNTcgMjYuNzUxIDI4LjE0djYuNjhoLTM3LjQ2M2MwIDkuMDkgNy44ODEgMTIuNjk0IDE2LjEzIDEyLjY5NCAxMC4wNCAwIDE2LjI2NS00LjU0MyAxNi4yNjUtNC41NDN2MTIuNzM1YzAgMC03LjAyIDQuMjkzLTE4LjIxNSA0LjI5My0xNC41NDUgMC0yNC44MTMtMTAuNDkxLTI0LjgxMy0yMy41MzYgMC0xMC4yNCA2LjE1NC0xOC40MTUgMTQuNjc5LTIxLjc4OS00LjE1IDQuNTg2LTQuMTY0IDkuNTAyLTQuMTY0IDkuNTAyIiBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEwIDExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiNlYjc3MWYiIGQ9Im0wIDBoMTEwdjExMGgtMTEweiIvPjxwYXRoIGQ9Im01MS4yMyA0MC45MDljLS42MjItLjA3NC0xLjI2LS4wMDEtMS44OTEuMDEzLTEuNjE2LS41NjktMi40MTQtMi4xODEtMy44MzItMy0uMDcxLTIuNjc0IDEuODQ1LTQuMzQ1IDMuMzg5LTYuMjE3LS45ODUtLjU2Ni0xLjc2Ny0uMTMyLTIuMjk0LjIxNy0yLjkyNyAxLjkzOC02LjA1IDIuNzY2LTkuNTkxIDMuMDY0LTIuNTI4LjIxMy0zLjcyOS0uMzE4LTQuMzk5LTIuNTY0LS4zNjMtMS4wNDItLjcyNi0yLjA4NC0xLjE0Ni0zLjI4OC0yLjI2MyAyLjAzMi0yLjk2NyA0Ljc3MS0yLjkgNy40MTYuMDkxIDMuNTk4LTEuNzc4IDYuMTIyLTMuNTY5IDguODA2LS4xODYgMy4xMzEuNDI1IDExLjIwNi40ODggMTEuMzg5IDEuNzYxIDEzLjE1MiAxMi4zMTEgMjMuMjQgMjYuMTggMjUuMDQuMTg0LjA2OCAzLjg2OC4zMiA2LjI5NS4wMTEgMTIuOTQ3LTEuNzcgMjMuMjMtMTEuOTI3IDI2LjA2LTI1LjcwMi4yNzQtMS4zMzUgMS4wMzEtNy43Ljg5NC05LjMwMy0uMDg1LS4wMzEtLjE2NC0uMTM1LS4yMzYtLjMzNy4wMDEtLjg3Ni0xLjIzOC0uNTI5LTEuMzM1LTEuNjgyLS40NTEtNS4zODMtMy43NTItOS4zMTItNy4xOS0xMy4xMi0yLjg4Ny0uNzkyLTUuMzk3LTIuNjQ2LTguNDQ3LTIuOTg1LTEuMjgzLS4xNDMtMi41NjMtLjMzNC00LjQ4LS41ODggMS42MjUgMS41MDEgMy40NjEgMS43MjggNC4zMDEgMy40Ni0uOS4xMzctMS42ODQuMjU1LTMuMTI4LjQ3NCA1LjA2NiAyLjc4OSAxMC4yNzUgNC43NTMgMTEuNzc3IDExLjAyLS45MDktLjM3Ny0xLjUyMy0uNjMyLTIuMzU3LS45NzguNTIyIDMuNzE2IDEuMzUyIDcuMjAyLjM1OCAxMS4xNjctLjY2Ni0xLjAxNi0xLjA5Ni0xLjY3MS0xLjg2MS0yLjgzOC0uMTgyIDQuNjA4LjMzIDguODE1LTEuOTk0IDEyLjQ5bC0uNTM5LTEuNjg2Yy0xLjM5My0uODM5LTEuNDU2LjY4Ny0xLjg5OSAxLjIwNS01LjMyOSA2LjIyOC0xMS42NjYgNy41NDYtMTguMTEgMy42NDUtLjg1OC0uNTE5LTEuODM4LS45NDktMi40MTktMi40NjMgNS4wODQuOTcxIDguMjYxLTMuMTI3IDEyLjYwMS00LjEyOSAxLjMwMS0uMy40NDMtMS40NDYtLjEzOC0xLjk3My0xLjk0My0xLjc2MS00LjE1Mi0yLjAyOC02LjU1OS0uOTY3LTQuMjcyIDEuODgyLTYuNzgyIDEuMjE0LTkuNTE2LTIuNDM2LS41MzctLjcxNi0uOTY2LTEuNDIxLS41MjgtMi4zMjUuNDUyLS45MzIgMS4yOTMtLjg4OCAyLjE3NS0uOTE3IDEuMTQ2LS4wMzggMi42MTcgMS4yNzkgMy4zMTUuMDY0Ljc2OS0xLjMzOC0uMTk3LTIuOS0uODczLTQuMjU5LjE2OC0uMTkzLjMzNy0uMzg0LjUwNi0uNTc2IDEuNDgyLTEuMTAyIDMuMzIyLTEuNzU4IDQuMzIyLTMuNDYxLS4wNy0uMDgxLS4xNC0uMTUtLjIxMS0uMjA3LjEzNy4wMDIuMjc0LjAwNC40MTEuMDA2LjIzMS0uNTE5LjMzNC0xLjAxLS4zMDItMS4zMjktLjQ0NS0uMDYxLS45MzktLjI5OC0xLjMyOC0uMTU0IiBmaWxsPSIjMWYxZjFmIi8+PC9nPjwvc3ZnPg=="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEwIDExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiMwMDhiY2YiIGQ9Im0wIDBoMTEwdjExMGgtMTEweiIvPjxwYXRoIGQ9Im01OC4wNyAxOS42MDd2MzUuMzhjMCAzLjI1OS0yLjI1MiAzLjE0NS01Ljc3IDMuODU5LTUuNDg5IDEuMTE1LTE0LjE0IDEuMTkyLTIyLjc2OSAxLjE2Ny05LjEyNi0uMDI3LTE4LjI5OS0uMDY2LTIzLjcwMS0xLjQxNi0yLjkyOS0uNzMyLTQuODI5LS43NC00LjgyOS0zLjU5OHYtMzUuMzhjMC0zLjMwMyAyLjI1Mi0zLjE0NSA1Ljc3LTMuODU5IDQuMDU4LS44MjQgOS44NDgtMS4wODEgMTYuMDgtMS4xNDlsLTguNzY4LTExLjExYy0xLjQzMy0xLjgxNi0xLjEwOC0yLjI2OC0uNDY1LTIuODM5LjY0My0uNTcxIDEuMjk2LS43NzYgMi44MDIuNzYzbDEyLjg5NCAxMy4xN2guMjEybDEzLjEyLTEzLjMzNmMxLjYyNi0xLjY1MyAyLjE0LTEuMzY0IDIuNzkxLS44MDIuNjUxLjU2Mi45MDYgMS4xNTgtLjQyNCAyLjg0NWwtOC45NDQgMTEuMzMzYy4yMjguMDAzLjQ1Ni4wMDYuNjgzLjAwOSA2LjUyMi4wOTIgMTIuNTI0LjM3NyAxNi40OTEgMS4zNjggMi45MjguNzMyIDQuODI5LjkwNCA0LjgyOSAzLjU5N20tNTQuMzMuMjYzdjM0Ljc3NmMwIC4yMi4yNTYuMzk5LjU2OC4zOTloNTAuMjVjLjMxMyAwIC41NjgtLjE4LjU2OC0uMzk5di0zNC43NzZjMC0uMjItLjI1NS0uMzk5LS41NjgtLjM5OWgtNTAuMjVjLS4zMTIgMC0uNTY4LjE4LS41NjguMzk5bTcuMzA2IDUuMDcyaDkuNDYyYy4zNjcgMCAuNjY4LjI5OC42NjguNjYxdjUuMjg4YzAgLjM2NC0uMzAxLjY2MS0uNjY4LjY2MWgtOS40NjJjLS4zNjcgMC0uNjY4LS4yOTctLjY2OC0uNjYxdi01LjI4OGMwLS4zNjQuMzAxLS42NjEuNjY4LS42NjFtMTMuODYxIDE4LjE4aDkuNDYyYy4zNjcgMCAuNjY4LjI5OC42NjguNjYxdjUuMjg4YzAgLjM2NC0uMzAxLjY2MS0uNjY4LjY2MWgtOS40NjJjLS4zNjcgMC0uNjY4LS4yOTctLjY2OC0uNjYxdi01LjI4OGMwLS4zNjMuMzAxLS42NjEuNjY4LS42NjFtMC0xOC4xOGg5LjQ2MmMuMzY3IDAgLjY2OC4yOTguNjY4LjY2MXY1LjI4OGMwIC4zNjQtLjMwMS42NjEtLjY2OC42NjFoLTkuNDYyYy0uMzY3IDAtLjY2OC0uMjk3LS42NjgtLjY2MXYtNS4yODhjMC0uMzY0LjMwMS0uNjYxLjY2OC0uNjYxbS0xMy44NjEgOC45MjNoOS40NjJjLjM2NyAwIC42NjguMjk3LjY2OC42NjF2NS4yODhjMCAuMzYzLS4zMDEuNjYxLS42NjguNjYxaC05LjQ2MmMtLjM2NyAwLS42NjgtLjI5Ny0uNjY4LS42NjF2LTUuMjg4YzAtLjM2NC4zMDEtLjY2MS42NjgtLjY2MW0yNy4zODcgOS4yNTNoOS40NjJjLjM2NyAwIC42NjguMjk4LjY2OC42NjF2NS4yODhjMCAuMzY0LS4zMDEuNjYxLS42NjguNjYxaC05LjQ2MmMtLjM2NyAwLS42NjgtLjI5Ny0uNjY4LS42NjF2LTUuMjg4YzAtLjM2My4zMDEtLjY2MS42NjgtLjY2MW0tMjcuMzg3IDBoOS40NjJjLjM2NyAwIC42NjguMjk4LjY2OC42NjF2NS4yODhjMCAuMzY0LS4zMDEuNjYxLS42NjguNjYxaC05LjQ2MmMtLjM2NyAwLS42NjgtLjI5Ny0uNjY4LS42NjF2LTUuMjg4YzAtLjM2My4zMDEtLjY2MS42NjgtLjY2MW0yNy4zODctOS4yNTNoOS40NjJjLjM2NyAwIC42NjguMjk3LjY2OC42NjF2NS4yODhjMCAuMzYzLS4zMDEuNjYxLS42NjguNjYxaC05LjQ2MmMtLjM2NyAwLS42NjgtLjI5Ny0uNjY4LS42NjF2LTUuMjg4YzAtLjM2NC4zMDEtLjY2MS42NjgtLjY2MW0tMTMuNTI2IDBoOS40NjJjLjM2NyAwIC42NjguMjk3LjY2OC42NjF2NS4yODhjMCAuMzYzLS4zMDEuNjYxLS42NjguNjYxaC05LjQ2MmMtLjM2NyAwLS42NjgtLjI5Ny0uNjY4LS42NjF2LTUuMjg4YzAtLjM2NC4zMDEtLjY2MS42NjgtLjY2MW0xMy41MjYtOC45MjNoOS40NjJjLjM2NyAwIC42NjguMjk4LjY2OC42NjF2NS4yODhjMCAuMzY0LS4zMDEuNjYxLS42NjguNjYxaC05LjQ2MmMtLjM2NyAwLS42NjgtLjI5Ny0uNjY4LS42NjF2LTUuMjg4YzAtLjM2NC4zMDEtLjY2MS42NjgtLjY2MSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjYgMjUpIiBmaWxsPSIjMWYxZjFmIi8+PC9nPjwvc3ZnPg=="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEwIDExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiM1MjkwY2QiIGQ9Im0wIDBoMTEwdjExMGgtMTEweiIvPjxnIGZpbGw9IiMxZjFmMWYiPjxwYXRoIGQ9Im02MS4xOCAzMC44NzZjLTEuNjk2LS4yNjYtMy40NzUtLjQwNS01LjMyOS0uNDA1LTcuNDY2IDAtMTMuNDg4IDIuMTgyLTE4LjA3IDYuMjk2LTUuMjA3IDQuNzM4LTguMDkzIDEwLjk0MS04LjA5MyAxOC4xMSAwIC4wNiAwIC4xMjEuMDAxLjE4MSA3LjMyNi0xMS40MDQgMTguNTkzLTE3LjI0NiAyMS41ODEtMTguNzg5LjQ3LS4yMTguNzUzLjM0My4zMTQuNTYxLTUuMTQ3IDMuMDYzLTE0LjgxIDEyLjA4LTIwLjgzMSAyNS4wNCAxLjQ3NCA0Ljc0NCA0LjQyNiA5IDguNTM0IDEyLjExIDQuNTQ4IDMuMzk3IDEwLjMyIDUuMTEyIDE3LjQwOSA1LjExMiAxMy4wMiAwIDIyLjE1LTcuMTM4IDI1LjQwOC0xNy41NDlsLTE3Ljg4LS4wMzFjLS43NTMgMy42NzgtMy4yNjMgNS42NDItNy4xODQgNS42NDItNC45MjUgMC04LjMxMi0yLjY4MS04LjUzMi04Ljg4M2wzMy45NC0uMDMxYy4wNjMtMS4yNzgtLjA5NC0yLjE4My0uMDk0LTMuMTggMC0xMS42MjgtNy0yMC43MjEtMTguMzkzLTIzLjYxOSA0LjY0Mi0yLjg2NSAxMy4zMS03LjEgMTcuNDg0LTMuNzE3IDMuMTM3IDIuNTI1IDEuNDEyIDcuODI0LjY1OSAxMC4wMS0uMTI1LjU2MS41MzQuNjU1LjY1OS4xMjUgMS41NjgtMy45MjggMi4wMzktOS4xOTUtLjI1MS0xMS4yNTMtNC43MjMtNC4yMjYtMTUuNDI1Ljg0Mi0yMS4zMzQgNC4yN20zLjEwOSAxOS42MDdoLTE1Ljg0MWMuMDk0LTUuMzkyIDMuOTg0LTcuNzMgOC4wNi03LjczIDQuMjk4IDAgNy43NzkgMi40NjMgNy43NzkgNy43MyIvPjxwYXRoIGQ9Im0zMC42IDgzLjg3Yy02LjQ2Mi00LjA1Mi0zLjIzMS0xNS4wOS41OTYtMjIuOTQxbDIuOTggNi4zNThjLTIuNjk4IDUuNzM1LTQuMjA0IDExLjg0NS0xLjI4NiAxNC4wMyAzLjc2NCAyLjgwNSAxMS41MTIuMzQzIDE3LjAzLTIuOTkybDEuNzg4LjE1NmMtNy4xMiA0LjcwNy0xNi4xMiA4LjUwOS0yMS4xMSA1LjM5MiIvPjwvZz48L2c+PC9zdmc+"
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEwIDExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiNkOGQ4ZDgiIGQ9Im0wIDBoMTEwdjExMGgtMTEweiIvPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI0IDM4KSIgZmlsbD0iIzFmMWYxZiI+PHBhdGggZD0ibTEuNzA4IDEwLjE3Mmg1LjE3OXYyMi45NDhoLTUuMTc5eiIvPjxwYXRoIGQ9Im0yNS4xOSAxLjA4MWMtNy43MDIgMC0xMy45NDcgNS44NDgtMTMuOTQ3IDE2LjQyIDAgMTAuNTcyIDYuMjQ1IDE2LjQyIDEzLjk0NyAxNi40MiA3LjcwMiAwIDEzLjgzOS03LjA2IDEzLjgzOS0xNi40MDUgMC0xMC4zOTUtNi4xMzctMTYuNDM0LTEzLjgzOS0xNi40MzRtLjAzMiA0LjU4YzQuNDU5IDAgOC4yNDIgNi4yNzYgOC4xNTYgMTIuNTQyLS4wODUgNi4yNjYtMy42OTcgMTEuMTM4LTguMTU2IDExLjEzOC00LjQ1OSAwLTguMzY4LTQuMjE5LTguMzY4LTExLjg0IDAtNy42MiAzLjkwOS0xMS44NCA4LjM2OC0xMS44NCIvPjxwYXRoIGQ9Im03LjcwMyA0LjEyNmMwIDEuNzY0LTEuNTAzIDMuMTk0LTMuMzU3IDMuMTk0LTEuODU0IDAtMy4zNTctMS40My0zLjM1Ny0zLjE5NCAwLTEuNzY0IDEuNTAzLTMuMTk0IDMuMzU3LTMuMTk0IDEuODU0IDAgMy4zNTcgMS40MyAzLjM1NyAzLjE5NCIvPjxwYXRoIGQ9Im00Mi42NzcgMjYuNzA5YzAgMCAzLjI0NiAyLjEwNCA3LjUyNiAyLjAyOSA0LjI4LS4wNzUgNS4wOTEtMi42MyA1LjAyLTQuODA5LS4wNzQtMi4xNzktMy4wMi0zLjk1OS02Ljg2Mi01LjE4Ni00Ljk0NC0xLjU3OC02LjkzNi02LjkxNC02LjM0Ni0xMC43NDcuNTktMy44MzIgNS40Ni02LjkxNCAxMC45Mi02LjY4OCA1LjQ2LjIyNSA2LjcxNCAxLjY1MyA2LjcxNCAxLjY1M2wtMS4yNTQgNC43MzRjMCAwLTIuODA0LTIuMDI5LTUuMDkxLTEuOTU0LTIuMjg3LjA3NS01LjYwOCAxLjI3Ny01LjgyOSAzLjMwNy0uMjIxIDIuMDI5IDEuNjIzIDQuMDU4IDQuMTMyIDUuMjYgMi41MDkgMS4yMDIgOS43MzkgMy45MDggOS4zNzEgMTAuMjIxLS4zNjkgNi4zMTMtNS40NiA3Ljg5LTcuODIxIDguNjQzLTIuMzYxLjc1MS02LjQ5My4wNzUtOC4zMzgtLjQ1MS0xLjg0NS0uNTI2LTMuNjg5LTEuMTI3LTMuNjg5LTEuMTI3bDEuNTUtNC44ODUiLz48L2c+PC9nPjwvc3ZnPg=="
},function(e,t,n){e.exports=n.p+"desktop/common/img/devices/linux.e80fefdbe1947faf2913d4ce0043c707.svg"},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEwIDExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiNlMjA2MTMiIGQ9Im0wIDBoMTEwdjExMGgtMTEweiIvPjxwYXRoIGQ9Im01NS40NyA4NC45NjljLTMuNjI4IDAtNy4wMi0uNzEtMTAuMTM5LTIuMTQxLTMuMTIxLTEuNDM1LTUuOTI2LTMuNTU4LTguNDEzLTYuMzQzLTIuNzE3LTIuOTg5LTQuNzI5LTYuMjI5LTYuMDEtOS43MTgtMS4yOC0zLjQ4MS0xLjkwNi03LjQtMS45MDYtMTEuNzQ0IDAtNC4zNDQuNjI1LTguMjYgMS45MDYtMTEuNzQxIDEuMjgtMy40ODcgMy4yOTItNi43MjkgNi4wMS05LjcxOCAyLjUxMy0yLjgwOSA1LjMyNS00Ljk1MyA4LjQ1Mi02LjQwMiAzLjEyNy0xLjQ0MyA2LjQ5OS0yLjE2MiAxMC4xLTIuMTYyIDMuNjAyIDAgNi45NzcuNzE5IDEwLjEgMi4xNjIgMy4xMjQgMS40NDkgNS45NDEgMy41OTMgOC40NDggNi40MDIgMi42OTMgMi45NjYgNC42ODggNi4xODggNS45NTMgOS42NiAxLjI2OCAzLjQ2NiAxLjg4NSA3LjQwNiAxLjg4NSAxMS44IDAgNC4zOTQtLjYxNyA4LjMzNy0xLjg4NSAxMS44LTEuMjY1IDMuNDc1LTMuMjYgNi42OTQtNS45NSA5LjY2Mi0yLjQ5IDIuNzg2LTUuMjg2IDQuOTA5LTguNDEzIDYuMzQzLTMuMTI3IDEuNDMxLTYuNTA4IDIuMTQxLTEwLjEzNiAyLjE0MW0wLTMuODcyYzQuMDc3IDAgNi42NzMtMS41NTUgOC4xMzYtNC41NyAxLjU2OS0zLjIxOSAyLjQ1Ny0xMC4yNzIgMi40NTctMjEuNTA0IDAtMTEuMjI2LS44ODgtMTguMjgyLTIuNDU3LTIxLjUwNi0xLjQ2My0zLjAxLTQuMDU5LTQuNTY1LTguMTM2LTQuNTY1LTQuMSAwLTYuNzIgMS41Ny04LjIwMSA0LjYwOS0xLjU4NCAzLjI0OC0yLjQ3MiAxMC4yODktMi40NzIgMjEuNDYyIDAgMTEuMTc2Ljg4OCAxOC4yMiAyLjQ3MiAyMS40NjggMS40ODEgMy4wMzYgNC4xIDQuNjA2IDguMjAxIDQuNjA2IiBmaWxsPSIjMWYxZjFmIi8+PC9nPjwvc3ZnPg=="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEwIDExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiNkOGQ4ZDgiIGQ9Im0wIDBoMTEwdjExMGgtMTEweiIvPjxwYXRoIGQ9Im03MS45NDIgNTYuODc4Yy0uMDcyLTcuNTk1IDYuMjI1LTExLjI0NCA2LjUxLTExLjQyMS0zLjU0Mi01LjE1OC05LjA1LTUuODY1LTExLjAyLTUuOTUtNC42OTMtLjQ3My05LjE1NiAyLjc1Mi0xMS41MzQgMi43NTItMi4zNzggMC02LjA1LTIuNjgtOS45NDItMi42MDctNS4xMTcuMDczLTkuODI5IDIuOTYtMTIuNDY3IDcuNTE5LTUuMzEgOS4xODQtMS4zNTcgMjIuNzg1IDMuODIgMzAuMjMgMi41MzEgMy42NDEgNS41NDcgNy43NCA5LjUxMSA3LjU5MSAzLjgxNy0uMTQ4IDUuMjU5LTIuNDU2IDkuODY5LTIuNDU2IDQuNjEyIDAgNS45MSAyLjQ1NiA5Ljk0NSAyLjM4IDQuMTA3LS4wNzIgNi43MDctMy43MTMgOS4yMi03LjM2OCAyLjkwNi00LjIyOSA0LjEwMS04LjMyNCA0LjE3My04LjUzNC0uMDktLjA0MS04LjAxLTMuMDYyLTguMDktMTIuMTRtLTcuNTgyLTIyLjI5N2MyLjEwNS0yLjUzOCAzLjUyMS02LjA3IDMuMTMzLTkuNTgxLTMuMDMuMTIzLTYuNjk5IDIuMDEtOC44NzUgNC41NDctMS45NDkgMi4yNDYtMy42NTYgNS44MzYtMy4xOTQgOS4yODEgMy4zNzguMjYxIDYuODMxLTEuNzEyIDguOTM2LTQuMjQ3IiBmaWxsPSIjMWYxZjFmIi8+PC9nPjwvc3ZnPg=="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEwIDExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9IjAiIGQ9Im01NC41OSAyNWwxOS40MDYgMjkuOTk4LTE5LjQwNiAzMGgtOC43OTctOC43OTN2LS4wMDZsMTkuNDEtMjkuOTk0LTE5LjQxLTI5Ljk5OGgxNy41OSIgZmlsbD0iIzFmMWYxZiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiNlNWEwMGQiIGQ9Im0wIDBoMTEwdjExMGgtMTEweiIvPjx1c2UgeGxpbms6aHJlZj0iIzAiLz48L2c+PC9zdmc+"
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEwIDExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiNlNWEwMGQiIGQ9Im0wIDBoMTEwdjExMGgtMTEweiIvPjxwYXRoIGQ9Im0zMCA2MGMxNi41NjkgMCAzMC0xMy40MzEgMzAtMzAgMC0xNi41NjktMTMuNDMxLTMwLTMwLTMwLTE2LjU2OSAwLTMwIDEzLjQzMS0zMCAzMCAwIDE2LjU2OSAxMy40MzEgMzAgMzAgMzBtLS41NzEtNDguNzJsMTIuMTQ5IDE4Ljc0OS0xMi4xNSAxOC43NWgtNS41MDQtNS41MDR2LS4wMDRsMTIuMTQ3LTE4Ljc0Ni0xMi4xNDctMTguNzQ2di0uMDAyaDExLjAxIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNSAyNSkiIGZpbGw9IiMxZjFmMWYiLz48L2c+PC9zdmc+"
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEwIDExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiM4ZTIzZTEiIGQ9Im0wIDBoMTEwdjExMGgtMTEweiIvPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE2IDQyKSIgZmlsbD0iIzFmMWYxZiI+PHBhdGggZD0ibTIxLjUxMiAyNC4yMWgtNy4wMWwtNS41NjQtNy43MzloLTEuODcxdjcuNzIyaC02LjE3NXYtMjMuMmg4Ljg0N2M1LjEgMCA5LjI2MyAzLjQ3NyA5LjI2MyA3Ljc1NCAwIDIuNjA5LTEuNTk2IDQuOTM5LTQuMDMgNi4zNjVsNi41MzMgOS4xbS04LjY4NC0xNS40NjNjMC0yLjE1OC0xLjczMi0zLjg5NS0zLjg0OS0zLjg5NWgtMS45MDl2Ny43NTZoMS45MDljMi4xMTggMCAzLjg0OS0xLjczOSAzLjg0OS0zLjg2MSIvPjxwYXRoIGQ9Im0zNy45ODIgMTUuMTFjMCA1LjI1NS00LjI2MyA5LjQ2My05LjUwNiA5LjQ2My01LjI0IDAtOS40NzItNC4yMDgtOS40NzItOS40NjMgMC01LjI1MSA0LjIzMS05LjQ2MSA5LjQ3Mi05LjQ2MSA1LjI0MiAwIDkuNTA2IDQuMjEgOS41MDYgOS40NjFtLTkuNTA2LTQuOTcyYy0xLjYzMSAwLTMuMDIgMi4yMjItMy4wMiA0Ljk3MiAwIDIuNzUxIDEuMzg3IDQuOTc2IDMuMDIgNC45NzYgMS42NjggMCAzLjA1NC0yLjIyNSAzLjA1NC00Ljk3NiAwLTIuNzUxLTEuMzg1LTQuOTcyLTMuMDU0LTQuOTcyIi8+PHBhdGggZD0ibTUyLjQ3IDYuMDNsLTcuMTE0IDcuMTN2LTcuMTU0aC02LjE3NHYxOC4xOGg2LjE3NHYtNy4zNzVsNy40MjcgNy4zNzVoNy43NzJsLTkuNDM4LTkuNDYyIDcuODE3LTcuODMzdjEwLjc4OWMwIDMuNTgyIDIuMTQ5IDYuODg4IDcuNTYxIDYuODg4IDIuNTY5IDAgNC45MjctMS40NjEgNi4wNzMtMi43ODNsMi43NzYgMi40aDEuMzE4di0xOC4xNmgtNi4xNzR2MTEuNzU2Yy0uNjk1IDEuMjE2LTEuNjY1IDEuOTgxLTMuMTYyIDEuOTgxLTEuNTE5IDAtMi4yMTYtLjkwMy0yLjIxNi0zLjc5di05Ljk0N2gtMTIuNjQiLz48L2c+PC9nPjwvc3ZnPg=="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEwIDExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiMwMGEzZGIiIGQ9Im0wIDBoMTEwdjExMGgtMTEweiIvPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI1IDI1KSIgZmlsbD0iIzFmMWYxZiI+PHBhdGggZD0ibTMwIDBjLTE2LjU2OSAwLTMwIDEzLjQzMS0zMCAzMCAwIDE2LjU2OSAxMy40MzEgMzAgMzAgMzAgMTYuNTY5IDAgMzAtMTMuNDMxIDMwLTMwIDAtMTYuNTY5LTEzLjQzMS0zMC0zMC0zMG0yNS4xOSAzMy41MTVjLTEuMzE0IDEwLjE5NC05LjI1NSAxOC45NDQtMTkuMjg2IDIxLjIxLTEuMTY4LjI2NC0yLjM4My4zMi0zLjU1My41NzctLjk1MS4yMDktMS40NTctLjA5Mi0xLjY5OC0xLjAxLS4wOTEtLjM0OS0uMy0uNjY2LS40NjUtMS4wMTgtLjEwOC4xMDEtLjE4NC4xNDMtLjIxOC4yMDctMS4wNTIgMS45OC0xLjA1MSAxLjk4LTMuMjQ4IDEuNzE5LTExLjc0LTEuMzk2LTIxLjI2OC0xMS41NzQtMjEuOTY2LTIzLjQzMS0uMDM0LS41ODMuMTQ0LS44NDcuNjU0LTEuMDI3LjQzNC0uMTUzLjg0My0uMzc3IDEuMzA5LS41OTItLjA3Ni0uMTU3LS4wODMtLjIwNC0uMTA4LS4yMTgtMS45NjktMS4wNTItMS45NjktMS4wNTItMS42ODYtMy4yNzMgMS41LTExLjc5MyAxMS42ODktMjEuMjkyIDIzLjQ4NS0yMS45MTcuNTEzLS4wMjcuNzg4LjA5OS45NjYuNTc5LjE4Ni41MDMuNDQzLjk3OS41OTMgMS4zMDMuMTk4LjIxNy4yNDIuMTk2LjI5LjA5Mi45ODgtMi4xMTMuOTg5LTIuMTEzIDMuMzE0LTEuNzggMTEuODc3IDEuNzAxIDIwLjkyOSAxMS40MTggMjEuNzgyIDIzLjM1NC4wMzkuNTQ1LS4wNDUuODc2LS41OTEgMS4wNjYtLjQ2MS4xNjEtLjg5NC40MDItMS4zMzcuNjA2LjA2NC4xMzQuMDc4LjIzMi4xMjguMjU2IDEuOTM4Ljk0MSAxLjkzOS45NCAxLjYzNSAzLjI5NSIvPjxwYXRoIGQ9Im00MS40MSAyOC43MjNjLTEuNDgtLjIzMS0yLjUzNC0uNzE2LTIuNzQ0LTIuMzQ4LS4wMzctLjI5LS4yMjEtLjU4OC0uNDA4LS44MjYtLjQ2Ni0uNTk1LS4yOTctMS4wNDcuMTE2LTEuNjIyIDIuMTctMy4wMyA0LjI5MS02LjA4NiA2LjQyMS05LjE0MS4xNjEtLjIzLjQ2MS0uNDExLjM4LS43NzktLjQ5My0uMTUyLS43MTMuMjU3LS45ODYuNDc5LTIuMzQ3IDEuOTEyLTQuNzI1IDMuNzktNi45OTkgNS43ODctMS4zNDUgMS4xODEtMi41MzggMi4wOTYtNC4zOTYuODg1LS41NjctLjM3LS45MzMtLjYzOC0xLjA3Ni0xLjI4Mi0uNDc3LTIuMTU1LS45ODgtNC4zMDMtMS40ODUtNi40NTMtLjA2OC4wMDktLjEzNi4wMTgtLjIwNC4wMjYtLjUyMSAyLjE3OC0xLjA2OSA0LjM1MS0xLjU0NCA2LjUzOS0uMTMzLjYxMi0uMzY0Ljg3MS0uOTg4IDEuMDYyLTMuMTc5Ljk3NC01LjM2MiAzLjAzOC02LjM2MyA2LjIzNi0uMjI2LjcyMS0uNTU0IDEuMDQtMS4zMDYgMS4xOTQtMi4wOTEuNDI4LTQuMTU4Ljk3LTYuMjM1IDEuNDY3IDEuODQ3LjY2NyAzLjY2OCAxLjE0OSA1LjUxNCAxLjUwNCAxLjE0Ny4yMiAyLjAyOC41MzggMi4xODkgMS44OTcuMDYuNTA4LjM3NyAxLjAzMi43MDMgMS40NS40MjQuNTQ1LjI5My45MTUtLjA3NCAxLjQxNy0yLjIyIDMuMDM4LTQuNDA4IDYuMDk5LTYuNjAzIDkuMTU2LS4xNi4yMjItLjQxMS40Mi0uMzg4Ljc3Ni41MDEuMDY4LjcxNi0uMjUxLjk3My0uNDU2IDIuNDg0LTEuOTg5IDUuMDItMy45MjQgNy40MTgtNi4wMSAxLjIzNS0xLjA3MiAyLjI5LTEuNjc1IDMuOTE5LS43NDkuNjkuMzkyIDEuMTU0LjY0OSAxLjMyNCAxLjQ3NC40MzQgMi4xMTMuOTcyIDQuMjA0IDEuNDY5IDYuMzA0LjY5Ni0yLjE4NSAxLjIwMy00LjM1MyAxLjcwMS02LjUyNC4xMzQtLjU4NS4zMy0uOTcxIDEuMDI3LTEuMTgzIDMuMi0uOTczIDUuMjk1LTMuMTM1IDYuMjc4LTYuMzE3LjE5NS0uNjMuNTA5LS44NTkgMS4wOC0uOTg1IDEuNzc5LS4zOSAzLjU1Ny0uNzg1IDUuMzItMS4yMzcuMzktLjEuOTE1LS4wMSAxLjI0NC0uNTE3LTEuODEyLS40MzItMy41MjUtLjk1Mi01LjI3OC0xLjIyNW0tMTcuMTMgNC4xODhjLTEuMjY4LTIuMjY2LS45MTEtNS4xMzMuODA0LTcuMTE4IDEuODQ0LTIuMTM0IDQuNjczLTIuODQyIDcuNDE5LTEuNzQ4LTEuNjAyIDEuMzU2LTMuMjc5IDIuNTMyLTQuNjQyIDQtMS4zNDggMS40NTMtMi4zNzggMy4yMDEtMy41ODEgNC44NjZtMTAuODQ3IDEuMzA0Yy0xLjkwOSAyLjIyOS00LjMyMiAyLjgzNy03LjUxNiAxLjk5MSAzLjU3OC0yLjM4IDYuMzA0LTUuMjQ1IDguMjkzLTguODkyIDEuMTc0IDIuMjUuODQgNS4wMS0uNzc3IDYuOTAxIi8+PC9nPjwvZz48L3N2Zz4="
},function(e,t){
e.exports="data:image/svg+xml;base64, "
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEwIDExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiMwMWFjY2EiIGQ9Im0wIDBoMTEwdjExMGgtMTEweiIvPjxwYXRoIGQ9Im00OS42MjEgNjAuMjljLjY2NC42OTIgMS40NjEgMS4yMzMgMi4zODggMS42Mi45MjcuMzg4IDEuOTMzLjU4MiAzLjAyLjU4MiAxLjA4NCAwIDIuMDgxLS4xOTQgMi45OTEtLjU4Mi45MS0uMzg3IDEuNjk3LS45MjggMi4zNjItMS42Mi42NjQtLjY5MSAxLjE4MS0xLjUxIDEuNTQ4LTIuNDU1LjM2Ny0uOTQ1LjU1MS0xLjk3NS41NTEtMy4wODh2LTIxLjY0M2gtMTQuOTU3djIxLjY0M2MwIDEuMTE0LjE4NCAyLjE0NC41NTEgMy4wODguMzY3Ljk0NS44ODMgMS43NjQgMS41NDggMi40NTVtMjcuMDUtMjcuMTloLTZ2MjEuOTQ3YzAgMi4xMjYtLjMzMyA0LjA4NC0uOTk3IDUuODcyLS42NjUgMS43ODktMS42NTMgMy4zNDItMi45NjUgNC42NTgtMS4zMTIgMS4zMTYtMi45NDggMi4zNDYtNC45MDcgMy4wODgtMS45Ni43NDItNC4yMTcgMS4xMTQtNi43NyAxLjExNC0yLjU5IDAtNC44NjQtLjM3Mi02LjgyMy0xLjExNC0xLjk2LS43NDItMy41OTUtMS43NzItNC45MDctMy4wODgtMS4zMTItMS4zMTYtMi4zMDEtMi44NjgtMi45NjUtNC42NTgtLjY2NS0xLjc4OC0uOTk3LTMuNzQ2LS45OTctNS44NzJ2LTIxLjk0N2gtNmMtNC42MDIgMC04LjMzMyAzLjcxNC04LjMzMyA4LjI5N3YyOC4yMWMwIDQuNTgyIDMuNzMxIDguMjk3IDguMzMzIDguMjk3aDQzLjMzYzQuNjAyIDAgOC4zMzMtMy43MTQgOC4zMzMtOC4yOTd2LTI4LjIxYzAtNC41ODItMy43MzEtOC4yOTctOC4zMzMtOC4yOTciIGZpbGw9IiMxZjFmMWYiLz48L2c+PC9zdmc+"
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEwIDExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiMwMGJkZjYiIGQ9Im0wIDBoMTEwdjExMGgtMTEweiIvPjxwYXRoIGQ9Im0yNC45MDMgNTYuMzN2MjAuMjI3bDI0LjYwOSAzLjQyNXYtMjMuNTUxbC0yNC42MDktLjEwMW0yNC42MDktMjYuMThsLTI0LjYwOSAzLjYxM3YxOS45OThsMjQuNjA5LS4xMDF2LTIzLjUwOW0zNS41NjMgMjMuMzYydi0yOC41ODNsLTMyLjY4NSA0Ljc5OXYyMy45MmwzMi42ODUtLjEzNW0tMzIuNjg1IDI2Ljg2OGwzMi42ODUgNC41NDh2LTI4LjM1NGwtMzIuNjg1LS4xMzV2MjMuOTQiIGZpbGw9IiMxZjFmMWYiLz48L2c+PC9zdmc+"
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEwIDExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiMzOTMiIGQ9Im0wIDBoMTEwdjExMGgtMTEweiIvPjxwYXRoIGQ9Im01NC44NjMgMjVjLTE2LjQ5MyAwLTI5Ljg2MyAxMy40MTUtMjkuODYzIDI5Ljk2MyAwIDE2LjU0OCAxMy4zNyAyOS45NjMgMjkuODYzIDI5Ljk2MyAxNi40OTMgMCAyOS44NjMtMTMuNDE1IDI5Ljg2My0yOS45NjMgMC0xNi41NDgtMTMuMzctMjkuOTYzLTI5Ljg2My0yOS45NjNtLTExLjY5MSAxMy45NzZjMCAwIDcuOTk0LTQuMzY0IDE0LjgzNC44OTRsLTMuODI3IDEzLjE5NmMwIDAtNC4yODMtMi45Ni03LjQ2NC0yLjY0MS0zLjE4MS4zMTktNy4zNyAxLjg0Ny03LjM3IDEuODQ3bDMuODI3LTEzLjI5Nm0tLjg0NyAyNy4yOGMtMy4wNTMuMjU1LTUuNy43MjItNy40NjIgMS42MzdsMy44MDctMTMuMjk0YzAgMCA0LjI5MS0yIDcuODUzLTEuNzQ3IDMuNTYyLjI1NSA2LjQwNyAyLjE3OSA3LjAyIDIuNjIxbC0zLjg2NyAxMy4zMzNjMCAwLTQuMjk4LTIuODA2LTcuMzUyLTIuNTUxbTI0LjI1IDQuNTk3YzAgMC00LjIxIDEuOTc3LTguMDMgMS43ODUtMy44MTctLjE5Mi02LjEwOS0yLjM4Mi02LjgwNy0yLjY1OWwzLjgwOC0xMy4yMTZjMCAwIDQuMDgxIDIuNjYzIDYuNzUzIDIuNTk5IDIuNjMyLS4wNjMgNC40NTMtLjI3MSA4LjAyLTEuNjc2LjAyLS4wMDguMDYyLS4wMzYuMDc2LS4wNDYgMCAwIC4wMDEtLjAwMS4wMDEtLjAwMi4wMDctLjAwNC4wMDUtLjAwMi0uMDAxLjAwMi0uMDkyLjEwMi0zLjgyNiAxMy4yMTItMy44MjYgMTMuMjEybTQuNDgxLTE1LjQ5OWMtLjU4LjE5NS0yLjk2NiAxLjU4My03LjM1NSAxLjgzOS00LjM4OS4yNTUtNy41MDYtMi44MDgtNy41MDYtMi44MDhsMy44MzctMTMuMTJjMS4xLjc5NCAzLjE2MSAyLjIwNiA2LjQ2OCAyLjU4OCAzLjMwOC4zODMgOC4zNjUtMS43MzUgOC4zNjUtMS43MzVsLTMuODA5IDEzLjIzNiIgZmlsbD0iIzFmMWYxZiIvPjwvZz48L3N2Zz4="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEwIDExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiMxMDdjMTAiIGQ9Im0wIDBoMTEwdjExMGgtMTEweiIvPjxwYXRoIGQ9Im0zOC4xIDI5Ljk4OWMtLjAzMS4wMjMtLjA1NC4wNTQtLjA4OS4wNzcuMTY5LS4xNzcuNDE0LS4zNjkuNTY5LS40NjkgNC42LTIuOTkxIDkuOTIzLTQuNTk3IDE1LjgyNi00LjU5NyA1LjUxNCAwIDEwLjY5NCAxLjUyOSAxNS4xIDQuMTc0LjMyMy4xODkgMS4xOTEuNzkxIDEuNjQgMS4zNC00LjI1NC00LjctMTYuNzc0IDUuMzc3LTE2Ljc3NCA1LjM3Ny00LjMzMS0zLjMzNy04LjMwNi01LjYxMS0xMS4yNzQtNi40MTctMi40NzctLjY4LTQuMTk0LS4xMjMtNSAuNTE0bTM3Ljg4IDQuNDQzYy0uMTM0LS4xNDYtLjI4LS4yOC0uNDExLS40MjYtMS4wNzEtMS4xODMtMi40LTEuNDcxLTMuNTgzLTEuMzk0LTEuMDk0LjM0Ni02LjEwNiAyLjE1NC0xMi4yODkgNy45OTEgMCAwIDYuOTU0IDYuNzYzIDExLjIxNyAxMy42ODMgNC4yNjMgNi45MiA2LjgwNiAxMi4zNTQgNS4yNDYgMTkuOSA0Ljc0My01LjIyMyA3LjY0My0xMi4xNTQgNy42NDMtMTkuNzc3IDAtNy43MTEtMi45NjktMTQuNzMxLTcuODIzLTE5Ljk3N20tMTAuNjI2IDIyLjgxMWMtMS44OTctMi4xMi00LjY5Ny01LjE1Ny04LjQxNC04Ljg1MS0uODAzLS44MDMtMS42NjMtMS42NC0yLjU2Ni0yLjUxMSAwIDAtMS4zNTEgMS4zNTEtMy4xMTQgMy4xMzctMi4yNjYgMi4yNzctNS4xOTEgNS4yNTctNi44MiA2Ljk4Ni0yLjg5MSAzLjA5MS0xMS4xODMgMTIuNzkxLTExLjY1MSAxOC4yMjYgMCAwLTEuODQzLTQuMzA2IDIuMjA5LTE0LjI1MSAyLjY0Ni02LjUwNiAxMC42MzctMTYuMjcxIDEzLjk3NC0xOS40NTQgMCAwLTMuMDQ2LTMuMzU3LTYuODc0LTUuNjY5bC0uMDIzLS4wMTFjMCAwLS4wNDYtLjAzNC0uMTExLS4wNzctMS44NDMtMS4wOTQtMy44NTEtMS45NDMtNS43ODMtMi4wNTQtMS45NzQuMTM0LTMuMjIzIDEuNTg2LTMuMjIzIDEuNTg2LTQuOTQ2IDUuMjU3LTcuOTYgMTIuMzMxLTcuOTYgMjAuMTEgMCAxNi4yMzcgMTMuMTcxIDI5LjQwOSAyOS40MDkgMjkuNDA5IDguNjE3IDAgMTYuMzc0LTMuNzE3IDIxLjc1NC05LjYyIDAtLjAxMS0uNjE0LTMuODk3LTQuNTc3LTkuNDU0LS45MjYtMS4zMDYtNC4zMzEtNS4zNjktNi4yMjktNy41IiBmaWxsPSIjMWYxZjFmIi8+PC9nPjwvc3ZnPg=="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTYwIDU2MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJzdHJva2UtbWl0ZXJsaW1pdDoxLjQxNDIxO2NsaXAtcnVsZTpldmVub2RkO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZS1saW5lam9pbjpyb3VuZCI+CiA8cmVjdCB3aWR0aD0iNTYwIiBoZWlnaHQ9IjU2MCIgc3R5bGU9ImZpbGw6IzJmNDc0MSIvPgogPHBhdGggZD0ibTE0MCAyNDRjMC04LjI0MyA1LjgzMi0xNS4zNDcgMTQtMTYuNTE2bDI4LTMuNDgzaDE5NmwyOCAzLjQ4M2M4LjE4MyAxLjE2OSAxNCA4LjI4MSAxNCAxNi41MTZ2NzJjMCA4LjI0My01LjgzMiAxNS4zNDctMTQgMTYuNTE2bC0yOCAzLjQ4M2gtMTk2bC0yOC0zLjQ4M2MtOC4xODMtMS4xNjktMTQtOC4yODEtMTQtMTYuNTE2di03MiIgc3R5bGU9ImZpbGwtb3BhY2l0eTouMTQ5MDIiLz4KIDxwYXRoIGQ9Im0zNzggMzM2aC0xOTZsLTI4LTMuNDgzYy0uNTA2LS4wNzUtMS4wMS0uMTY4LTEuNTA2LS4yODgtMS4wODktLjI2MS0yLjE0OS0uNjM3LTMuMTU5LTEuMTItMi4xMzItMS4wMTgtNC4wMi0yLjUxNC01LjUyLTQuMzQtMS4yMzEtMS41MDItMi4xOTQtMy4yMi0yLjg0MS01LjA1LS40MzQtMS4yMzItLjcyNi0yLjUxMy0uODY5LTMuODExLS4wNjMtLjU2OS0uMTA0LTEuNzE0LS4xMDQtMS43MTR2LTcyLjM5YzAgMCAuMDQxLTEuMTQ2LjEwNC0xLjcxNi4xNDQtMS4yOTkuNDM2LTIuNTgxLjg3MS0zLjgxMi42NDgtMS44MzIgMS42MTItMy41NTEgMi44NDUtNS4wNSAxLjQ5OC0xLjgyNSAzLjM4OS0zLjMyIDUuNTE5LTQuMzM4IDEuMDEtLjQ4MiAyLjA2OS0uODU3IDMuMTU2LTEuMTE5LjQ5Ny0uMTE5Ljk5OS0uMjEyIDEuNTA0LS4yODdsMjgtMy40ODNoMTk2YzAgMCAxOC42NjcgMi4zMjIgMjggMy40ODMuNTA2LjA3NSAxLjAxLjE2OCAxLjUwNi4yODggMS4wODkuMjYxIDIuMTQ5LjYzNyAzLjE1OSAxLjEyIDIuMTMyIDEuMDE4IDQuMDIgMi41MTQgNS41MiA0LjM0IDEuMjMxIDEuNTAyIDIuMTk0IDMuMjIgMi44NDEgNS4wNS40MzQgMS4yMzIuNzI2IDIuNTEzLjg2OSAzLjgxMS4wNjMuNTY5LjEwNCAxLjcxNC4xMDQgMS43MTR2NzIuMzljMCAwLS4wNDEgMS4xNDYtLjEwNCAxLjcxNi0uMTQ0IDEuMjk5LS40MzYgMi41ODEtLjg3MSAzLjgxMi0uNjQ4IDEuODMyLTEuNjEyIDMuNTUxLTIuODQ1IDUuMDUtMS40OTggMS44MjUtMy4zODkgMy4zMi01LjUxOSA0LjMzOC0xLjAxLjQ4Mi0yLjA2OS44NTctMy4xNTYgMS4xMTktLjQ5Ny4xMTktLjk5OS4yMTItMS41MDQuMjg3bC0yOCAzLjQ4M20tLjU1OC0xMDNoLTE5NC44OGMtOS4xMjQgMS4xMzUtMTguMjc4IDIuMDUyLTI3LjM3MiAzLjQwNS0uMTEzLjAxOS0uMjI2LjAzOS0uMzM4LjA2MS0uNjQxLjEzNC0xLjI2LjM0OC0xLjg0MS42NS0uOTMxLjQ4Ni0xLjc0NSAxLjE4My0yLjM4NCAyLjAxLS40OTcuNjQ4LS44ODkgMS4zNzYtMS4xNjEgMi4xNDYtLjI5OS44NDYtLjQ2MSAyLjYyOS0uNDYxIDIuNjI5bC4wMDEgNzIuMjhjMCAwIC4xOTMgMS44MzQuNTE5IDIuNjk3LjI4Ny43NjIuNjkyIDEuNDc5IDEuMjAyIDIuMTE0LjY3MS44MzcgMS41MjQgMS41MjggMi40OTMgMS45OTEuNTk4LjI4NiAxLjIzMi40NzkgMS44ODQuNTkybC4wODcuMDE0LjAzMi4wMDQgMjcuMzM5IDMuNDAxaDE5NC44OGMwIDAgMTguMjc4LTIuMDUyIDI3LjM3MS0zLjQwNS42ODEtLjExIDEuMzQzLS4zMDcgMS45NjYtLjYwNCAxLjAyLS40ODggMS45MS0xLjIyNiAyLjU5OC0yLjEyMi40OC0uNjI1Ljg2MS0xLjMyNSAxLjEzMi0yLjA2NS4zMTctLjg2OS40OS0yLjcxLjQ5LTIuNzFsLS4wMDEtNzIuMjhjMCAwLS4xOTMtMS44MzQtLjUxOS0yLjY5OC0uMjg3LS43NjEtLjY5Mi0xLjQ3OC0xLjIwMS0yLjExMy0uNjU1LS44MTYtMS40ODItMS40OTQtMi40MjItMS45NTYtLjYxOS0uMzA1LTEuMjc4LS41MDktMS45NTYtLjYyN2wtLjA4Ni0uMDEzLS4wMzItLjAwNS0yNy4zNC0zLjQwMW0tMTMuNDQyIDM4YzQuOTY3IDAgOSA0LjAzIDkgOSAwIDQuOTY3LTQuMDMgOS05IDktNC45NjcgMC05LTQuMDMtOS05IDAtNC45NjcgNC4wMy05IDktOW0tNDIgMGM0Ljk2NyAwIDkgNC4wMyA5IDkgMCA0Ljk2Ny00LjAzIDktOSA5LTQuOTY3IDAtOS00LjAzLTktOSAwLTQuOTY3IDQuMDMtOSA5LTltLTEyNiAwYzQuOTY3IDAgOSA0LjAzIDkgOSAwIDQuOTY3LTQuMDMgOS05IDktNC45NjcgMC05LTQuMDMtOS05IDAtNC45NjcgNC4wMy05IDktOSIgc3R5bGU9ImZpbGw6IzkxYzUzYiIvPgo8L3N2Zz4K"
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTYwIDU2MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJzdHJva2UtbWl0ZXJsaW1pdDoxLjQxNDIxO2NsaXAtcnVsZTpldmVub2RkO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZS1saW5lam9pbjpyb3VuZCI+CiA8cmVjdCB3aWR0aD0iNTYwIiBoZWlnaHQ9IjU2MCIgc3R5bGU9ImZpbGw6IzQxNDEzZSIvPgogPHBhdGggZD0ibTg0IDI0NGMwLTguMjQzIDUuODMyLTE1LjM0NyAxNC0xNi41MTZsNTYtMy40ODNoMjUybDU2IDMuNDgzYzguMTgzIDEuMTY5IDE0IDguMjgxIDE0IDE2LjUxNnY3MmMwIDguMjQzLTUuODMyIDE1LjM0Ny0xNCAxNi41MTZsLTU2IDMuNDgzaC0yNTJsLTU2LTMuNDgzYy04LjE4My0xLjE2OS0xNC04LjI4MS0xNC0xNi41MTZ2LTcyIiBzdHlsZT0iZmlsbC1vcGFjaXR5Oi4xNDkwMiIvPgogPHBhdGggZD0ibTQwNiAzMzZoLTI1MmwtNTYtMy40ODNjLS41MDYtLjA3NS0xLjAxLS4xNjgtMS41MDYtLjI4OC0xLjA4OS0uMjYxLTIuMTQ5LS42MzctMy4xNTktMS4xMi0yLjEzMi0xLjAxOC00LjAyLTIuNTE0LTUuNTItNC4zNC0xLjIzMS0xLjUwMi0yLjE5NC0zLjIyLTIuODQxLTUuMDUtLjQzNC0xLjIzMi0uNzI2LTIuNTEzLS44NjktMy44MTEtLjA2My0uNTY5LS4xMDQtMS43MTQtLjEwNC0xLjcxNHYtNzIuMzljMCAwIC4wNDEtMS4xNDYuMTA0LTEuNzE2LjE0NC0xLjI5OS40MzYtMi41ODEuODcxLTMuODEyLjY0OC0xLjgzMiAxLjYxMi0zLjU1MSAyLjg0NS01LjA1IDEuNDk4LTEuODI1IDMuMzg5LTMuMzIgNS41MTktNC4zMzggMS4wMS0uNDgyIDIuMDY5LS44NTcgMy4xNTYtMS4xMTkuNDk3LS4xMTkuOTk5LS4yMTIgMS41MDQtLjI4N2w1Ni0zLjQ4M2gyNTJjMCAwIDM3LjMzIDIuMzIyIDU2IDMuNDgzLjUwNi4wNzUgMS4wMS4xNjggMS41MDYuMjg4IDEuMDg5LjI2MSAyLjE0OS42MzcgMy4xNTkgMS4xMiAyLjEzMiAxLjAxOCA0LjAyIDIuNTE0IDUuNTIgNC4zNCAxLjIzMSAxLjUwMiAyLjE5NCAzLjIyIDIuODQxIDUuMDUuNDM0IDEuMjMyLjcyNiAyLjUxMy44NjkgMy44MTEuMDYzLjU2OS4xMDQgMS43MTQuMTA0IDEuNzE0djcyLjM5YzAgMC0uMDQxIDEuMTQ2LS4xMDQgMS43MTYtLjE0NCAxLjI5OS0uNDM2IDIuNTgxLS44NzEgMy44MTItLjY0OCAxLjgzMi0xLjYxMiAzLjU1MS0yLjg0NSA1LjA1LTEuNDk4IDEuODI1LTMuMzg5IDMuMzItNS41MTkgNC4zMzgtMS4wMS40ODItMi4wNjkuODU3LTMuMTU2IDEuMTE5LS40OTcuMTE5LS45OTkuMjEyLTEuNTA0LjI4N2wtNTYgMy40ODNtLS4yOC0xMDNoLTI1MS40NGwtNTUuMjkgMy40MzljLS4xMDMuMDE5LS4yMDYuMDQtLjMwOC4wNjMtLjYwOC4xNDItMS4xOTUuMzU2LTEuNzQ1LjY1MS0uOTUxLjUxLTEuNzc2IDEuMjQxLTIuNDEzIDIuMTExLS40NTEuNjE0LS44MDggMS4yOTUtMS4wNjIgMi4wMS0uMjk5Ljg0NS0uNDYxIDIuNjI4LS40NjEgMi42Mjh2NzIuMjhjMCAwIC4xOTMgMS44MzQuNTE5IDIuNjk4LjI4Ny43NjEuNjkyIDEuNDc4IDEuMjAyIDIuMTEzLjY3MS44MzggMS41MjQgMS41MjggMi40OTMgMS45OTEuNTYzLjI2OSAxLjE2LjQ1OSAxLjc3NC41NzJsNTUuMjkgMy40MzloMjUxLjQ0bDU1LjI5LTMuNDM5Yy42MTItLjExMyAxLjIwNy0uMzAyIDEuNzY5LS41NyAxLjAyLS40ODggMS45MS0xLjIyNiAyLjU5OC0yLjEyMi40OC0uNjI1Ljg2MS0xLjMyNSAxLjEzMi0yLjA2NS4zMTctLjg2OS40OS0yLjcxLjQ5LTIuNzFsLS4wMDEtNzIuMjhjMCAwLS4xOTMtMS44MzQtLjUxOS0yLjY5OC0uMjg3LS43NjEtLjY5Mi0xLjQ3OC0xLjIwMS0yLjExMy0uNjcyLS44MzgtMS41MjUtMS41MjgtMi40OTUtMS45OTItLjU2My0uMjY5LTEuMTYtLjQ1OC0xLjc3My0uNTcxbC01NS4yOS0zLjQzOW0tNDEuNzIgMzhjNC45NjcgMCA5IDQuMDMgOSA5IDAgNC45NjctNC4wMyA5LTkgOS00Ljk2NyAwLTktNC4wMy05LTkgMC00Ljk2NyA0LjAzLTkgOS05bS00MiAwYzQuOTY3IDAgOSA0LjAzIDkgOSAwIDQuOTY3LTQuMDMgOS05IDktNC45NjcgMC05LTQuMDMtOS05IDAtNC45NjcgNC4wMy05IDktOW0tNDIgMGM0Ljk2NyAwIDkgNC4wMyA5IDkgMCA0Ljk2Ny00LjAzIDktOSA5LTQuOTY3IDAtOS00LjAzLTktOSAwLTQuOTY3IDQuMDMtOSA5LTltLTg0IDBjNC45NjcgMCA5IDQuMDMgOSA5IDAgNC45NjctNC4wMyA5LTkgOS00Ljk2NyAwLTktNC4wMy05LTkgMC00Ljk2NyA0LjAzLTkgOS05bS00MiAwYzQuOTY3IDAgOSA0LjAzIDkgOSAwIDQuOTY3LTQuMDMgOS05IDktNC45NjcgMC05LTQuMDMtOS05IDAtNC45NjcgNC4wMy05IDktOSIgc3R5bGU9ImZpbGw6I2Y3OTQxZSIvPgo8L3N2Zz4K"
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTYwIDU2MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJzdHJva2UtbWl0ZXJsaW1pdDoxLjQxNDIxO2NsaXAtcnVsZTpldmVub2RkO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZS1saW5lam9pbjpyb3VuZCI+CiA8cmVjdCB3aWR0aD0iNTYwIiBoZWlnaHQ9IjU2MCIgc3R5bGU9ImZpbGw6IzFlNDI1NCIvPgogPHBhdGggZD0ibTQyMCAyMzhjMC03LjcyNi02LjI3NS0xNC0xNC0xNGgtMjUyYy03LjcyNyAwLTE0IDYuMjc0LTE0IDE0djg0YzAgNy43MjcgNi4yNzMgMTQgMTQgMTRoMjUyYzcuNzI2IDAgMTQtNi4yNzMgMTQtMTR2LTg0IiBzdHlsZT0iZmlsbC1vcGFjaXR5Oi4xNDkwMiIvPgogPHBhdGggZD0ibTQwNi4xOCAyMjRjMCAwIC45NTIuMDM2IDEuNDI2LjA5IDEuMDM2LjExOSAyLjA1OS4zNTQgMy4wNDMuNzAxIDEuOTE2LjY3NSAzLjY3NSAxLjc3NCA1LjEyOCAzLjE5MiAxLjQ5MiAxLjQ1OCAyLjY1NCAzLjI0NiAzLjM3MiA1LjIwNC4zNTguOTc4LjYwNiAxLjk5Ny43MzcgMy4wMy4wNjguNTMyLjExMiAxLjYwMS4xMTIgMS42MDF2ODQuMzZjMCAwLS4wNDQgMS4wNjktLjExMiAxLjYwMS0uMTMxIDEuMDMzLS4zNzkgMi4wNTItLjczNyAzLjAzLS43MTggMS45NTgtMS44OCAzLjc0Ni0zLjM3MiA1LjIwNC0xLjQ1MyAxLjQxOC0zLjIxMiAyLjUxNy01LjEyOCAzLjE5Mi0uOTg0LjM0Ny0yLjAxLjU4Mi0zLjA0My43MDEtLjQ3NC4wNTQtMS40MjYuMDktMS40MjYuMDloLTI1Mi4zNmMwIDAtLjk1Mi0uMDM2LTEuNDI2LS4wOS0xLjAzNi0uMTE5LTIuMDU5LS4zNTQtMy4wNDMtLjcwMS0xLjkxNi0uNjc1LTMuNjc1LTEuNzc0LTUuMTI4LTMuMTkyLTEuNDkyLTEuNDU4LTIuNjU0LTMuMjQ2LTMuMzcyLTUuMjA0LS4zNTgtLjk3OC0uNjA2LTEuOTk3LS43MzctMy4wMy0uMDY4LS41MzItLjExMi0xLjYwMS0uMTEyLTEuNjAxdi04NC4zNmMwIDAgLjA0NC0xLjA2OS4xMTItMS42MDEuMTMxLTEuMDMzLjM3OS0yLjA1Mi43MzctMy4wMy43MTgtMS45NTggMS44OC0zLjc0NiAzLjM3Mi01LjIwNCAxLjQ1My0xLjQxOCAzLjIxMi0yLjUxNyA1LjEyOC0zLjE5Mi45ODQtLjM0NyAyLjAxLS41ODIgMy4wNDMtLjcwMS40NzQtLjA1NCAxLjQyNi0uMDkgMS40MjYtLjA5aDI1Mi4zNm0tMjUyLjE1IDguOTk5YzAgMC0uNDA4LjAxLS42MTEuMDMzLS40MDYuMDQ3LS44MDYuMTQ0LTEuMTg4LjI4OS0xLjM0NC41MTEtMi40MzQgMS42MTQtMi45MjggMi45NjMtLjE5NC41MjktLjMgMS42NDgtLjMgMS42NDhsLjAwMSA4NC4yYzAgMCAuMTEyIDEuMDc0LjI5OSAxLjU4Mi40OTQgMS4zNDkgMS41ODQgMi40NTIgMi45MjggMi45NjMuNTI0LjIgMS42MzguMzIgMS42MzguMzJoMjUyLjI3YzAgMCAxLjExNC0uMTIgMS42MzktLjMyIDEuMzQzLS41MTEgMi40MzMtMS42MTQgMi45MjctMi45NjMuMTg2LS41MDguMjk5LTEuNTgyLjI5OS0xLjU4MnYtODQuMjdjMCAwLS4xMi0xLjExNC0uMzItMS42MzgtLjUxMS0xLjM0NC0xLjYxNC0yLjQzNC0yLjk2My0yLjkyOC0uNTA4LS4xODctMS41ODItLjI5OS0xLjU4Mi0uMjk5bC0yNTIuMS0uMDAybTEwMS43MSA2My40MmgtNi45NjN2LTMyLjgzOGg2Ljk2M3YxMi44N2gxMy4wMXYtMTIuODdoNi45NDF2MzIuODM4aC02Ljk0MXYtMTQuMTczaC0xMy4wMXYxNC4xNzNtMzcuNTMyIDBoLTkuMjk4di0zMi44MzhoMTAuMzA5YzUuMzYxIDAgOS41MjQgMS40MTUgMTIuNDg4IDQuMjQ1IDIuOTY1IDIuODMgNC40NDggNi43ODMgNC40NDggMTEuODYgMCA1LjQwNS0xLjUzOSA5LjU0NS00LjYxNiAxMi40Mi0zLjA3NyAyLjg3NS03LjUyIDQuMzEzLTEzLjMzMSA0LjMxM20xLjM3MS0yNy4xM2gtMy43MDd2MjEuMzgzaDIuOTg4YzYuNzA4IDAgMTAuMDYtMy42MDEgMTAuMDYtMTAuODA0IDAtNy4wNS0zLjExNC0xMC41NzktOS4zNDMtMTAuNTc5IiBzdHlsZT0iZmlsbDojMzFhZmMwIi8+Cjwvc3ZnPgo="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTYwIDU2MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJzdHJva2UtbWl0ZXJsaW1pdDoxLjQxNDIxO2NsaXAtcnVsZTpldmVub2RkO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZS1saW5lam9pbjpyb3VuZCI+CiA8cmVjdCB3aWR0aD0iNTYwIiBoZWlnaHQ9IjU2MCIgc3R5bGU9ImZpbGw6IzJmMzM0ZCIvPgogPHBhdGggZD0ibTg0IDI0NGMwLTguMjQzIDUuODMyLTE1LjM0NyAxNC0xNi41MTZsNTYtMy40ODNoMjUybDU2IDMuNDgzYzguMTgzIDEuMTY5IDE0IDguMjgxIDE0IDE2LjUxNnY3MmMwIDguMjQzLTUuODMyIDE1LjM0Ny0xNCAxNi41MTZsLTU2IDMuNDgzaC0yNTJsLTU2LTMuNDgzYy04LjE4My0xLjE2OS0xNC04LjI4MS0xNC0xNi41MTZ2LTcyIiBzdHlsZT0iZmlsbC1vcGFjaXR5Oi4xNDkwMiIvPgogPHBhdGggZD0ibTQwNiAzMzZoLTI1MmwtNTYtMy40ODNjLS41MDYtLjA3NS0xLjAxLS4xNjgtMS41MDYtLjI4OC0xLjA4OS0uMjYxLTIuMTQ5LS42MzctMy4xNTktMS4xMi0yLjEzMi0xLjAxOC00LjAyLTIuNTE0LTUuNTItNC4zNC0xLjIzMS0xLjUwMi0yLjE5NC0zLjIyLTIuODQxLTUuMDUtLjQzNC0xLjIzMi0uNzI2LTIuNTEzLS44NjktMy44MTEtLjA2My0uNTY5LS4xMDQtMS43MTQtLjEwNC0xLjcxNHYtNzIuMzljMCAwIC4wNDEtMS4xNDYuMTA0LTEuNzE2LjE0NC0xLjI5OS40MzYtMi41ODEuODcxLTMuODEyLjY0OC0xLjgzMiAxLjYxMi0zLjU1MSAyLjg0NS01LjA1IDEuNDk4LTEuODI1IDMuMzg5LTMuMzIgNS41MTktNC4zMzggMS4wMS0uNDgyIDIuMDY5LS44NTcgMy4xNTYtMS4xMTkuNDk3LS4xMTkuOTk5LS4yMTIgMS41MDQtLjI4N2w1Ni0zLjQ4M2gyNTJjMCAwIDM3LjMzIDIuMzIyIDU2IDMuNDgzLjUwNi4wNzUgMS4wMS4xNjggMS41MDYuMjg4IDEuMDg5LjI2MSAyLjE0OS42MzcgMy4xNTkgMS4xMiAyLjEzMiAxLjAxOCA0LjAyIDIuNTE0IDUuNTIgNC4zNCAxLjIzMSAxLjUwMiAyLjE5NCAzLjIyIDIuODQxIDUuMDUuNDM0IDEuMjMyLjcyNiAyLjUxMy44NjkgMy44MTEuMDYzLjU2OS4xMDQgMS43MTQuMTA0IDEuNzE0djcyLjM5YzAgMC0uMDQxIDEuMTQ2LS4xMDQgMS43MTYtLjE0NCAxLjI5OS0uNDM2IDIuNTgxLS44NzEgMy44MTItLjY0OCAxLjgzMi0xLjYxMiAzLjU1MS0yLjg0NSA1LjA1LTEuNDk4IDEuODI1LTMuMzg5IDMuMzItNS41MTkgNC4zMzgtMS4wMS40ODItMi4wNjkuODU3LTMuMTU2IDEuMTE5LS40OTcuMTE5LS45OTkuMjEyLTEuNTA0LjI4N2wtNTYgMy40ODNtLS4yOC0xMDNoLTI1MS40NGwtNTUuMjkgMy40MzljLS4xMDMuMDE5LS4yMDYuMDQtLjMwOC4wNjMtLjYwOC4xNDItMS4xOTUuMzU2LTEuNzQ1LjY1MS0uOTUxLjUxLTEuNzc2IDEuMjQxLTIuNDEzIDIuMTExLS40NTEuNjE0LS44MDggMS4yOTUtMS4wNjIgMi4wMS0uMjk5Ljg0NS0uNDYxIDIuNjI4LS40NjEgMi42Mjh2NzIuMjhjMCAwIC4xOTMgMS44MzQuNTE5IDIuNjk4LjI4Ny43NjEuNjkyIDEuNDc4IDEuMjAyIDIuMTEzLjY3MS44MzggMS41MjQgMS41MjggMi40OTMgMS45OTEuNTYzLjI2OSAxLjE2LjQ1OSAxLjc3NC41NzJsNTUuMjkgMy40MzloMjUxLjQ0bDU1LjI5LTMuNDM5Yy42MTItLjExMyAxLjIwNy0uMzAyIDEuNzY5LS41NyAxLjAyLS40ODggMS45MS0xLjIyNiAyLjU5OC0yLjEyMi40OC0uNjI1Ljg2MS0xLjMyNSAxLjEzMi0yLjA2NS4zMTctLjg2OS40OS0yLjcxLjQ5LTIuNzFsLS4wMDEtNzIuMjhjMCAwLS4xOTMtMS44MzQtLjUxOS0yLjY5OC0uMjg3LS43NjEtLjY5Mi0xLjQ3OC0xLjIwMS0yLjExMy0uNjcyLS44MzgtMS41MjUtMS41MjgtMi40OTUtMS45OTItLjU2My0uMjY5LTEuMTYtLjQ1OC0xLjc3My0uNTcxbC01NS4yOS0zLjQzOW0tNDEuNzIgMzhjNC45NjcgMCA5IDQuMDMgOSA5IDAgNC45NjctNC4wMyA5LTkgOS00Ljk2NyAwLTktNC4wMy05LTkgMC00Ljk2NyA0LjAzLTkgOS05bS00MiAwYzQuOTY3IDAgOSA0LjAzIDkgOSAwIDQuOTY3LTQuMDMgOS05IDktNC45NjcgMC05LTQuMDMtOS05IDAtNC45NjcgNC4wMy05IDktOW0tNDIgMGM0Ljk2NyAwIDkgNC4wMyA5IDkgMCA0Ljk2Ny00LjAzIDktOSA5LTQuOTY3IDAtOS00LjAzLTktOSAwLTQuOTY3IDQuMDMtOSA5LTltLTg0IDBjNC45NjcgMCA5IDQuMDMgOSA5IDAgNC45NjctNC4wMyA5LTkgOS00Ljk2NyAwLTktNC4wMy05LTkgMC00Ljk2NyA0LjAzLTkgOS05bS00MiAwYzQuOTY3IDAgOSA0LjAzIDkgOSAwIDQuOTY3LTQuMDMgOS05IDktNC45NjcgMC05LTQuMDMtOS05IDAtNC45NjcgNC4wMy05IDktOSIgc3R5bGU9ImZpbGw6Izk0NTA4ZCIvPgo8L3N2Zz4K"
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTQ4IiBoZWlnaHQ9IjM2MCIgdmlld0JveD0iMCAwIDU0OCAzNjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjx0aXRsZT5Hcm91cDwvdGl0bGU+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0xOTYgMTczdjEzSDgxdi0xNCIvPjxtYXNrIGlkPSJqIiB4PSIwIiB5PSIwIiB3aWR0aD0iMTE1IiBoZWlnaHQ9IjE0IiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjxwYXRoIGQ9Ik02LjUyMiAxNzNDMi45MiAxNzMgMCAxNzAuNjMxIDAgMTY3LjcxVjUuMjlDMCAyLjM3IDIuOTIgMCA2LjUyMiAwaDI2Mi45NTZDMjczLjA4IDAgMjc2IDIuMzY5IDI3NiA1LjI5djE2Mi40MmMwIDIuOTIxLTIuOTIgNS4yOS02LjUyMiA1LjI5SDYuNTIyeiIgaWQ9ImIiLz48bWFzayBpZD0iayIgeD0iMCIgeT0iMCIgd2lkdGg9IjI3NiIgaGVpZ2h0PSIxNzMiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2IiLz48L21hc2s+PHBhdGggaWQ9ImMiIGQ9Ik0xMyAxNjAuMTg1aDI0OS45MVYxM0gxM3oiLz48bWFzayBpZD0ibCIgeD0iMCIgeT0iMCIgd2lkdGg9IjI0OS45MTEiIGhlaWdodD0iMTQ3LjE4NSIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYyIvPjwvbWFzaz48cmVjdCBpZD0iZCIgd2lkdGg9IjE5MiIgaGVpZ2h0PSIxNDAiIHJ4PSI2Ii8+PG1hc2sgaWQ9Im0iIHg9IjAiIHk9IjAiIHdpZHRoPSIxOTIiIGhlaWdodD0iMTQwIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNkIi8+PC9tYXNrPjxwYXRoIGlkPSJlIiBkPSJNMjAgMTFoMTUydjExOEgyMHoiLz48bWFzayBpZD0ibiIgeD0iMCIgeT0iMCIgd2lkdGg9IjE1MiIgaGVpZ2h0PSIxMTgiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2UiLz48L21hc2s+PGNpcmNsZSBpZD0iZiIgY3g9IjEyIiBjeT0iNzAiIHI9IjYiLz48bWFzayBpZD0ibyIgeD0iMCIgeT0iMCIgd2lkdGg9IjEyIiBoZWlnaHQ9IjEyIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNmIi8+PC9tYXNrPjxwYXRoIGlkPSJnIiBkPSJNMCAxOGg3MnY4NEgweiIvPjxtYXNrIGlkPSJwIiB4PSIwIiB5PSIwIiB3aWR0aD0iNzIiIGhlaWdodD0iODQiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2ciLz48L21hc2s+PGNpcmNsZSBpZD0iaCIgY3g9IjM2IiBjeT0iMTA5IiByPSI1Ii8+PG1hc2sgaWQ9InEiIHg9IjAiIHk9IjAiIHdpZHRoPSIxMCIgaGVpZ2h0PSIxMCIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjaCIvPjwvbWFzaz48cmVjdCBpZD0iaSIgd2lkdGg9IjcyIiBoZWlnaHQ9IjEyMCIgcng9IjguNCIvPjxtYXNrIGlkPSJyIiB4PSIwIiB5PSIwIiB3aWR0aD0iNzIiIGhlaWdodD0iMTIwIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNpIi8+PC9tYXNrPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI3MiA4NykiPjx1c2Ugc3Ryb2tlPSIjQkJCIiBtYXNrPSJ1cmwoI2opIiBzdHJva2Utd2lkdGg9IjYiIHhsaW5rOmhyZWY9IiNhIi8+PHVzZSBzdHJva2U9IiNCQkIiIG1hc2s9InVybCgjaykiIHN0cm9rZS13aWR0aD0iNiIgeGxpbms6aHJlZj0iI2IiLz48dXNlIHN0cm9rZT0iI0JCQiIgbWFzaz0idXJsKCNsKSIgc3Ryb2tlLXdpZHRoPSI0IiB4bGluazpocmVmPSIjYyIvPjxwYXRoIGZpbGw9IiNGOEFEMTgiIGQ9Ik0xMzcuMDQyIDEyMC43NUgxMTdsMjIuMTktMzQuMzc1TDExNyA1MmgyMC4wNDJsMjIuMTkgMzQuMzc1eiIvPjwvZz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDIyMCkiPjx1c2Ugc3Ryb2tlPSIjQkJCIiBtYXNrPSJ1cmwoI20pIiBzdHJva2Utd2lkdGg9IjYiIHhsaW5rOmhyZWY9IiNkIi8+PHVzZSBzdHJva2U9IiNCQkIiIG1hc2s9InVybCgjbikiIHN0cm9rZS13aWR0aD0iNCIgeGxpbms6aHJlZj0iI2UiLz48dXNlIHN0cm9rZT0iI0JCQiIgbWFzaz0idXJsKCNvKSIgc3Ryb2tlLXdpZHRoPSI0IiB4bGluazpocmVmPSIjZiIvPjxjaXJjbGUgZmlsbD0iI0JCQiIgY3g9IjE4MCIgY3k9IjcwIiByPSIyIi8+PHBhdGggZmlsbD0iI0Y4QUQxOCIgZD0iTTk0LjU4IDEwMkg3NmwyMC42NDUtMzAuOTY4TDc2IDM4aDE4LjU4bDIwLjY0NiAzMy4wMzJ6Ii8+PC9nPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDYwKSI+PHJlY3Qgd2lkdGg9IjcyIiBoZWlnaHQ9IjEyMCIgcng9IjguNCIvPjx1c2Ugc3Ryb2tlPSIjQkJCIiBtYXNrPSJ1cmwoI3ApIiBzdHJva2Utd2lkdGg9IjQiIHhsaW5rOmhyZWY9IiNnIi8+PHVzZSBzdHJva2U9IiNCQkIiIG1hc2s9InVybCgjcSkiIHN0cm9rZS13aWR0aD0iNCIgeGxpbms6aHJlZj0iI2giLz48cmVjdCBmaWxsPSIjQkJCIiB4PSIzMSIgeT0iMTAiIHdpZHRoPSIxMC44IiBoZWlnaHQ9IjIuNCIgcng9IjEuMiIvPjx1c2Ugc3Ryb2tlPSIjQkJCIiBtYXNrPSJ1cmwoI3IpIiBzdHJva2Utd2lkdGg9IjYiIHhsaW5rOmhyZWY9IiNpIi8+PHBhdGggZD0iTTM1LjAzMiA3OUgyNGwxMi4yNTgtMTguMzg3TDI0IDQxaDExLjAzMkw0Ny4yOSA2MC42MTN6IiBmaWxsPSIjRjhBRDE4Ii8+PC9nPjwvZz48L3N2Zz4="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODEwIiBoZWlnaHQ9IjIzMCIgdmlld0JveD0iMCAwIDgxMCAyMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjx0aXRsZT5QTVMg4oaSIENvbXB1dGVyPC90aXRsZT48ZGVmcz48cGF0aCBkPSJNMTU5LjU5NSAyMDcuNDc3Yy0uNDk0LTIuNDctMi42NS05LjczMi0zLjM0Ny0yMS40NDRIOTkuMzZjLS42OTggMTEuNzEyLTIuODUzIDE4Ljk3NC0zLjM0NiAyMS40NDQtLjk3NiA0Ljg4LTQuNzkgOC44MjktMTIuMDQgMTEuMDU5LTUuOTEyIDEuODE5LTUuMTU4IDEwLjY5MyAxLjY3NCAxMC42OTNoODQuMzE0YzYuODMxIDAgNy41ODctOC44NzMgMS42NzMtMTAuNjkzLTcuMjUtMi4yMy0xMS4wNjQtNi4xNzgtMTIuMDQtMTEuMDU5eiIgaWQ9ImEiLz48bWFzayBpZD0iZCIgeD0iMCIgeT0iMCIgd2lkdGg9Ijk1LjYzMyIgaGVpZ2h0PSI0My4xOTYiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHBhdGggZD0iTTI1NiAxNDcuNXYzMS41NjRjMCA1LjUyNy00LjQ3IDEwLjAwOC05Ljk5NiAxMC4wMDhIOS45OTZjLTUuNTIgMC05Ljk5Ni00LjQ3Ni05Ljk5Ni0xMC4wMDhWMTAuMDAzQzAgNC40OCA0LjQ3IDAgOS45OTYgMGgyMzYuMDA4QzI1MS41MjQgMCAyNTYgNC40ODUgMjU2IDEwLjAwM1YxNDcuNXoiIGlkPSJiIi8+PG1hc2sgaWQ9ImUiIHg9IjAiIHk9IjAiIHdpZHRoPSIyNTYiIGhlaWdodD0iMTg5LjA3MiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYiIvPjwvbWFzaz48Y2lyY2xlIGlkPSJjIiBjeD0iMTEwIiBjeT0iMTEwIiByPSIxMTAiLz48bWFzayBpZD0iZiIgeD0iMCIgeT0iMCIgd2lkdGg9IjIyMCIgaGVpZ2h0PSIyMjAiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2MiLz48L21hc2s+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNTUzKSIgc3Ryb2tlPSIjQkJCIj48dXNlIG1hc2s9InVybCgjZCkiIHN0cm9rZS13aWR0aD0iNiIgeGxpbms6aHJlZj0iI2EiLz48dXNlIG1hc2s9InVybCgjZSkiIHN0cm9rZS13aWR0aD0iNiIgeGxpbms6aHJlZj0iI2IiLz48cGF0aCBkPSJNMS41IDE0Ny41aDI1My4xOTgiIHN0cm9rZS13aWR0aD0iMyIgc3Ryb2tlLWxpbmVjYXA9InNxdWFyZSIvPjwvZz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDUpIj48dXNlIHN0cm9rZT0iI0Y4QUQxOCIgbWFzaz0idXJsKCNmKSIgc3Ryb2tlLXdpZHRoPSI4IiBmaWxsPSIjMUYxRjFGIiB4bGluazpocmVmPSIjYyIvPjxwYXRoIGZpbGw9IiNGOEFEMTgiIGQ9Ik0xMTIuMTM0IDE3OS42NjdINzIuMTFsNDQuMzEtNjkuMDU2LTQ0LjMxLTY5LjA1NWg0MC4wMjNsNDQuMzEgNjkuMDU1eiIvPjwvZz48ZyBmaWxsPSIjQkJCIj48cGF0aCBkPSJNNTA0LjUgMTE1bC0xNCAxMy41di0yN3pNNDc5IDExOGEzIDMgMCAxIDAgMC02IDMgMyAwIDAgMCAwIDZ6bS0xNiAwYTMgMyAwIDEgMCAwLTYgMyAzIDAgMCAwIDAgNnptLTE2IDBhMyAzIDAgMSAwIDAtNiAzIDMgMCAwIDAgMCA2em0tMTYgMGEzIDMgMCAxIDAgMC02IDMgMyAwIDAgMCAwIDZ6bS0xNiAwYTMgMyAwIDEgMCAwLTYgMyAzIDAgMCAwIDAgNnptLTE2IDBhMyAzIDAgMSAwIDAtNiAzIDMgMCAwIDAgMCA2em0tMTYgMGEzIDMgMCAxIDAgMC02IDMgMyAwIDAgMCAwIDZ6bS0xNiAwYTMgMyAwIDEgMCAwLTYgMyAzIDAgMCAwIDAgNnptLTE2IDBhMyAzIDAgMSAwIDAtNiAzIDMgMCAwIDAgMCA2em0tMTYgMGEzIDMgMCAxIDAgMC02IDMgMyAwIDAgMCAwIDZ6bS0xNiAwYTMgMyAwIDEgMCAwLTYgMyAzIDAgMCAwIDAgNnptLTE2IDBhMyAzIDAgMSAwIDAtNiAzIDMgMCAwIDAgMCA2em0tMTYgMGEzIDMgMCAxIDAgMC02IDMgMyAwIDAgMCAwIDZ6bS0xNiAwYTMgMyAwIDEgMCAwLTYgMyAzIDAgMCAwIDAgNnoiLz48L2c+PC9nPjwvc3ZnPg=="
},function(e,t){
e.exports="data:image/svg+xml;base64, "
},function(e,t){
e.exports="data:image/svg+xml;base64, "
},function(e,t){
e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0ZWQgYnkgSWNvTW9vbi5pbyAtLT4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHdpZHRoPSIxMDI0IiBoZWlnaHQ9IjEwMjQiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPgo8ZyBpZD0iaWNvbW9vbi1pZ25vcmUiPgo8L2c+CjxwYXRoIGZpbGw9IiNlZWUiIGQ9Ik00OTcuNCA5MTAuNmMtMTMzLTQuNC0yMzcuNy0xMTYuMi0yMzMuNC0yNDkuMiA0LjQtMTMzLjEgMTE2LjItMjM3LjcgMjQ5LjItMjMzLjRzMjM3LjcgMTE2LjIgMjMzLjQgMjQ5LjJjLTQuNCAxMzMuMS0xMTYuMiAyMzcuOC0yNDkuMiAyMzMuNHpNNTExLjggNDcxLjljLTEwOC45LTMuNi0yMDAuMyA4Mi4xLTIwMy45IDE5MXM4Mi4xIDIwMC4zIDE5MC45IDIwMy45YzEwOC45IDMuNiAyMDAuMy04Mi4xIDIwMy45LTE5MC45cy04Mi4xLTIwMC40LTE5MC45LTIwNHoiPjwvcGF0aD4KPHBhdGggZmlsbD0iI2VlZSIgZD0iTTE4OS41IDY3Ni4yYy05LjYtMC4zLTg4LjItNC41LTEzOS44LTU4LjgtMzAuNi0zMi4yLTQ1LjMtNzQuOC00My42LTEyNi43IDEuOC01NC4yIDI3LjYtMTA0LjEgNzAuOC0xMzYuOSAzNi43LTI3LjkgODEuNy00MC4yIDEyNy4yLTM1LjYgMjUuOC0xNTQuNCAxNjIuNi0yNjguMiAzMjEuNC0yNjMgMTE2LjQgMy44IDIyMi4yIDcyLjkgMjczLjIgMTc3LjMgNTguMSAzLjIgMTExLjkgMjcuNiAxNTIuNyA2OS42IDQ0LjMgNDUuNiA2Ny42IDEwNS43IDY1LjUgMTY5LjItNS43IDE3MS43LTE1NC44IDIxMy43LTIwMC40IDIyMi41LTEyIDIuMy0yMy40LTUuNS0yNS43LTE3LjRzNS41LTIzLjQgMTcuNC0yNS43YzQ4LTkuMyAxNjAuMy00NS40IDE2NC43LTE4MC44IDEuNy01MS41LTE3LjItMTAwLjItNTMuMS0xMzcuMi0zNS43LTM2LjctODQtNTctMTM1LjMtNTYuNy05LjEgMC0xNi44LTUuMi0yMC4yLTEzLjItNDEuNy05Ni0xMzYtMTYwLjMtMjQwLjMtMTYzLjgtMTQzLjUtNC43LTI2Ni4yIDEwMy42LTI3OS4zIDI0Ni42LTAuNiA2LjQtMy45IDEyLjEtOS4xIDE1LjhzLTExLjggNS0xOCAzLjVjLTM5LjgtOS42LTgxLjYtMS0xMTQuMiAyMy44cy01Mi4xIDYyLjUtNTMuNCAxMDMuNGMtMS4zIDM5LjYgOS4yIDcxLjUgMzEuMyA5NC45IDQwLjkgNDMuMiAxMDcuMyA0NS4xIDEwOS45IDQ1LjMgMCAwIDAuMSAwIDAuMSAwIDEyLjEgMC40IDIxLjYgMTAuNCAyMS4zIDIyLjQtMC4yIDEyLjEtMTAuMiAyMS43LTIyLjMgMjEuNS0wLjEgMC0wLjQgMC0wLjggMHoiPjwvcGF0aD4KPHBhdGggZmlsbD0iI2VlZSIgZD0iTTUxMi41IDU0My40aC03My45bDczLjkgMTI3LjQtNzMuOSAxMjcuNGg3My45bDczLjktMTI3LjQtNzMuOS0xMjcuNHoiPjwvcGF0aD4KPC9zdmc+Cg=="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTYwIDU2MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJzdHJva2UtbWl0ZXJsaW1pdDoxLjQxNDIxO2NsaXAtcnVsZTpldmVub2RkO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZS1saW5lam9pbjpyb3VuZCI+CiA8cGF0aCBkPSJtMjgwIDU2MGMtMTU0LjM1IDAtMjgwLTEyNS42NS0yODAtMjgwIDAtMTU0LjM1IDEyNS42NS0yODAgMjgwLTI4MCAxNTQuMzUgMCAyODAgMTI1LjY1IDI4MCAyODAgMCAxNTQuMzUtMTI1LjQ2IDI4MC0yODAgMjgwbTAtNTQ3LjczYy0xNDcuNjIgMC0yNjcuNTMgMTIwLjExLTI2Ny41MyAyNjcuNTMgMCAxNDcuNjIgMTIwLjExIDI2Ny41MyAyNjcuNTMgMjY3LjUzIDE0Ny40MiAwIDI2Ny41My0xMjAuMTEgMjY3LjUzLTI2Ny41My4xOTgtMTQ3LjQyLTExOS45MS0yNjcuNTMtMjY3LjUzLTI2Ny41M20tMTIuNjUgMzU3LjczbC02MS41IDQ4LjZjLTEuMi45LTIuNyAxLjQtNC4xIDEuNC0xIDAtMi0uMi0yLjktLjctMi4zLTEuMS0zLjgtMy40LTMuOC02di00My4zaC0zNi43Yy0xMSAwLTIwLTktMjAtMjB2LTE1MGMwLTExIDktMjAgMjAtMjBoMjQzLjNjMTEgMCAyMCA5IDIwIDIwdjE1MGMwIDExLTkgMjAtMjAgMjBoLTEzNC4zbTEzNC40LTE3Ni43aC0yNDMuNGMtMy43IDAtNi43IDMtNi43IDYuN3YxNTBjMCAzLjcgMyA2LjcgNi43IDYuN2g0My40YzMuNyAwIDYuNyAzIDYuNyA2Ljd2MzYuMmw1Mi41LTQxLjVjMS4yLS45IDIuNi0xLjQgNC4xLTEuNGgxMzYuN2MzLjcgMCA2LjctMyA2LjctNi43di0xNTBjMC0zLjctMy02LjctNi43LTYuN20tNDMuNCAxMDcuOGgtMTUwYy0zLjcgMC02LjctMy02LjctNi43IDAtMy43IDMtNi43IDYuNy02LjdoMTUwYzMuNyAwIDYuNyAzIDYuNyA2LjcgMCAzLjctMi45OTkgNi42OTktNi43IDYuN20wLTQxLjFoLTE1MGMtMy43IDAtNi43LTMtNi43LTYuNyAwLTMuNyAzLTYuNyA2LjctNi43aDE1MGMzLjcgMCA2LjcgMyA2LjcgNi43IDAgMy43LTIuOTk5IDYuNjk5LTYuNyA2LjciIHN0eWxlPSJmaWxsOiNjYzdiMTk7ZmlsbC1ydWxlOm5vbnplcm8iLz4KPC9zdmc+Cg=="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTYwIDU2MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJmaWxsOiNjYzdiMTk7c3Ryb2tlLW1pdGVybGltaXQ6MS40MTQyMTtjbGlwLXJ1bGU6ZXZlbm9kZDtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2UtbGluZWpvaW46cm91bmQiPgogPHBhdGggZD0ibTI4MCA1NjBjLTE1NC4zNDYgMC0yODAtMTI1LjY1My0yODAtMjgwIDAtMTU0LjM0NyAxMjUuNjUzLTI4MCAyODAtMjgwIDE1NC4zNDYgMCAyODAgMTI1LjY1MyAyODAgMjgwIDAgMTU0LjM0Ny0xMjUuNjUzIDI4MC0yODAgMjgwbTAtNTQ3LjUzM2MtMTQ3LjYxOSAwLTI2Ny41MzQgMTIwLjExMy0yNjcuNTM0IDI2Ny41MzQgMCAxNDcuNjE4IDEyMC4xMTMgMjY3LjUzMyAyNjcuNTM0IDI2Ny41MzMgMTQ3LjQyMSAwIDI2Ny41MzQtMTIwLjExMyAyNjcuNTM0LTI2Ny41MzMgMC0xNDcuNjE5LTExOS45MTUtMjY3LjUzNC0yNjcuNTM0LTI2Ny41MzRtNzcuMTI5IDM3Ni44NDljMC0xOC43ODUtMzUuNjA0LTMzLjk5My03OS40MzgtMzMuOTkzLTQzLjgzNSAwLTc5LjQzOCAxNS4yMDctNzkuNDM4IDMzLjk5MyAwIDE4Ljc4NiAzNS40MjQgMzMuOTk0IDc5LjQzOCAzMy45OTQgNDMuODMzIDAgNzkuNDM4LTE1LjIwNyA3OS40MzgtMzMuOTk0bTExLjQ1LTE0MS42OTljMC01MC4wOTYtNDAuNjE0LTkwLjcwOS05MC43MDktOTAuNzA5LTUwLjA5NiAwLTkwLjcwOSA0MC42MTMtOTAuNzA5IDkwLjcwOSAwIDUwLjA5NSA0MC42MTMgOTAuNzA5IDkwLjcwOSA5MC43MDkgNDkuOTE3IDAgOTAuNzA5LTQwLjYxNCA5MC43MDktOTAuNzA5bTIyLjU0My04NS4xNjNjMC0xMi41MjQtMTAuMTk4LTIyLjcyMy0yMi43MjItMjIuNzIzLTEyLjUyNCAwLTIyLjcyMiAxMC4xOTktMjIuNzIyIDIyLjcyMyAwIDEyLjUyNCAxMC4xOTggMjIuNzIyIDIyLjcyMiAyMi43MjIgMTIuNzAzIDAgMjIuNzIyLTEwLjE5OCAyMi43MjItMjIuNzIyIi8+Cjwvc3ZnPgo="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTYwIDU2MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJmaWxsOiNjYzdiMTk7c3Ryb2tlLW1pdGVybGltaXQ6MS40MTQyMTtjbGlwLXJ1bGU6ZXZlbm9kZDtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2UtbGluZWpvaW46cm91bmQiPgogPHBhdGggZD0ibTI4MCA1NjBjLTE1NCAwLTI4MC0xMjYtMjgwLTI4MCAwLTE1NCAxMjYtMjgwIDI4MC0yODAgMTU0IDAgMjgwIDEyNiAyODAgMjgwIDAgMTU0LTEyNiAyODAtMjgwIDI4MG0wLTU0Ny44N2MtMTQ3LjQ3IDAtMjY3Ljg3IDEyMC40LTI2Ny44NyAyNjcuODcgMCAxNDcuNDcgMTIwLjQgMjY3Ljg3IDI2Ny44NyAyNjcuODcgMTQ3LjQ3IDAgMjY3Ljg3LTEyMC40IDI2Ny44Ny0yNjcuODctLjkzMy0xNDcuNDctMTIwLjQtMjY3Ljg3LTI2Ny44Ny0yNjcuODdtLTI4LjM0IDQwMy44N2gtODkuNzVsLTIuMjk2LS40NTdjLTEuOTMzLTEuMjkxLTEuOTU2LTEuMzE0LTMuMjQ3LTMuMjQ3bC0uNDU3LTIuMjk2di0xMTcuODloLTMwLjkwN2MtLjc2NC0uMTUyLTEuNTczLS4xNTgtMi4yOTMtLjQ1NS0uNzItLjI5OC0xLjM5My0uNzQ3LTEuOTQ1LTEuMjk3LTEuMTI0LTEuMTIzLTEuNzU4LTIuNjQ1LTEuNzYyLTQuMjM0LS4wMDItLjc3OS4xNTQtMS41NzMuNDUtMi4yOTQuMjk2LS43Mi44NjItMS4yOTggMS4yOTItMS45NDhsMTU1LTE1Ni4xMSAxLjk1Mi0xLjMxMSAyLjMwNi0uNDYxYy43NjkuMTU0IDEuNTM3LjMwNyAyLjMwNi40NjFsMS45NTIgMS4zMTEgMTU1IDE1Ni4xMWMuNDMuNjUuOTk2IDEuMjI4IDEuMjkyIDEuOTQ4LjYwNCAxLjQ3LjYgMy4xMTktLjAxMSA0LjU4Ni0uMjk5LjcxOS0uNzUgMS4zOTEtMS4zMDEgMS45NDItLjU1Mi41NS0xLjIyNS45OTktMS45NDUgMS4yOTctLjcyLjI5Ny0xLjUyOC4zMDMtMi4yOTMuNDU1aC0zMC4yNnYxMTcuODlsLS40NTYgMi4yOTZjLTEuMjkyIDEuOTMzLTEuMzE1IDEuOTU2LTMuMjQ4IDMuMjQ3bC0yLjI5Ni40NTdoLTg4LjM0bC0yLjI5Ni0uNDU3Yy0xLjkzNC0xLjI5MS0xLjk1Ni0xLjMxNC0zLjI0OC0zLjI0N2wtLjQ1Ni0yLjI5NnYtNzguMjRoLTQ2LjczM3Y3OC4yNGwtLjQ1NyAyLjI5NmMtMS4yOTEgMS45MzMtMS4zMTQgMS45NTYtMy4yNDcgMy4yNDdsLTIuMjk2LjQ1N20tMTEyLjI1LTEzNS44OWgyMi40OTRsMi4yOTYuNDU3YzEuOTMzIDEuMjkxIDEuOTU2IDEuMzE0IDMuMjQ3IDMuMjQ3bC40NTcgMi4yOTZ2MTE3Ljg5aDc3Ljc1di03OC4yNGwuNDU3LTIuMjk2YzEuMjkyLTEuOTM0IDEuMzE0LTEuOTU2IDMuMjQ3LTMuMjQ4bDIuMjk2LS40NTZoNTguNzMzbDIuMjk2LjQ1NmMxLjkzMyAxLjI5MiAxLjk1NSAxLjMxNSAzLjI0NyAzLjI0OGwuNDU3IDIuMjk2djc4LjI0aDc2LjM0di0xMTcuODlsLjQ1Ny0yLjI5NmMxLjI5Mi0xLjkzMyAxLjMxNC0xLjk1NiAzLjI0Ny0zLjI0N2wyLjI5Ni0uNDU3aDIxLjg1MmwtMTQwLjU5LTE0MS41OS0xNDAuNTkgMTQxLjU5IiBzdHlsZT0iZmlsbC1ydWxlOm5vbnplcm8iLz4KPC9zdmc+Cg=="
},function(e,t){
e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTYwIDU2MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJmaWxsOiNjYzdiMTk7c3Ryb2tlLW1pdGVybGltaXQ6MS40MTQyMTtjbGlwLXJ1bGU6ZXZlbm9kZDtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2UtbGluZWpvaW46cm91bmQiPgogPHBhdGggZD0ibTI4MCAwYy0xNTQgMC0yODAgMTI2LTI4MCAyODAgMCAxNTQgMTI2IDI4MCAyODAgMjgwIDE1NCAwIDI4MC0xMjYgMjgwLTI4MCAwLTE1NC0xMjYtMjgwLTI4MC0yODBtMCA1NDcuNzVjLTE0Ny44NzUgMC0yNjcuNzUtMTE5Ljg3NS0yNjcuNzUtMjY3Ljc1IDAtMTQ3Ljg3NSAxMTkuODc1LTI2Ny43NSAyNjcuNzUtMjY3Ljc1IDE0Ny44NzUgMCAyNjcuNzUgMTE5Ljg3NSAyNjcuNzUgMjY3Ljc1IDAgMTQ3Ljg3NS0xMTkuODc1IDI2Ny43NS0yNjcuNzUgMjY3Ljc1bTQzLjc1LTMwNy4xMjVsLTE2Mi43NS0yNC41Yy01LjI1LS44NzUtOS42MjUtMy41LTEyLjI1LTctMi42MjUtMy41LTQuMzc1LTguNzUtMy41LTEzLjEyNWw1LjI1LTM4LjVjLjg3NS05LjYyNSAxMC41LTE2LjYyNSAyMC4xMjUtMTQuODc1bDIzMy42MjUgMzQuMTI1YzQuMzc1Ljg3NSA4Ljc1IDIuNjI1IDExLjM3NSA2LjEyNSAyLjYyNSAzLjUgNC4zNzUgOC43NSAzLjUgMTMuMTI1bC01LjI1IDM4LjVjMCA0LjM3NS0xLjc1IDctNC4zNzUgOS42MjUgNC4zNzUgMy41IDcgOC43NSA3IDE0bDAgMTM1LjYyNWMwIDEwLjUtOC43NSAxOC4zNzUtMTguMzc1IDE4LjM3NWwtMjM2LjI1IDBjLTEwLjUgMC0xOC4zNzUtOC43NS0xOC4zNzUtMTguMzc1bDAtMTM0Ljc1YzAtMTAuNDk5IDguNzQ5LTE4LjM3NCAxOC4zNzUtMTguMzc1bDE2MS44NzUgMG03NC4zNzUgMTU4LjM3NWMyLjYyNy0uMDAyIDUuMjUtMi42MjYgNS4yNS01LjI1bDAtNzkuNjI1LTI0Ni43NSAwIDAgNzkuNjI1YzAgMi42MjUgMS43NSA1LjI1IDUuMjUgNS4yNWwyMzYuMjUgMG0tMTczLjI1LTk3LjEyNWMuODc1LS44NzUuODc1LS44NzYuODc1LTEuNzVsMjkuNzUtNDcuMjUtNDIgMGMwIC44NzUgMCAuODc1LS44NzUgMi42MjVsLTI4Ljg3NSA0Ni4zNzUgNDEuMTI1IDBtNTYuODc1IDBjLjg3NS0uODc1Ljg3NS0uODc2Ljg3NS0xLjc1bDI5Ljc1LTQ3LjI1LTQyIDBjMCAuMzgzLS4xNjcuNTk4LS4zNTYuNzkzbC0uMTYzLjE2NGMtLjE4OS4xOTUtLjM1Ni40MS0uMzU2Ljc5M2wtMjkuNzUgNDcuMjUgNDIgMG01NiAwYy44NzUtLjg3NS44NzUtLjg3Ni44NzUtMS43NWwyOS43NS00Ny4yNS00MiAwYzAgLjM4My0uMTY3LjU5OC0uMzU2Ljc5M2wtLjE2My4xNjRjLS4xODkuMTk1LS4zNTYuNDEtLjM1Ni43OTNsLTI5Ljc1IDQ3LjI1IDQyIDBtLTE2OC44NzUgMGMuODc1LS44NzUuODc1LS44NzYuODc1LTEuNzVsMjkuNzUtNDcuMjUtMzcuNjI1IDBjLTMuNSAwLTUuMjUgMi42MjUtNi4xMjUgNi4xMjVsMCA0Mi44NzUgMTMuMTI1IDBtMjM0LjUtLjg3NWwwLTQyLjg3NWMwLTIuNjI1LTEuNzUtNS4yNS01LjI1LTUuMjVsLTE0Ljg3NSAwYzAgLjM4My0uMTY3LjU5OC0uMzU2Ljc5M2wtLjE2My4xNjRjLS4xODkuMTk1LS4zNTYuNDEtLjM1Ni43OTNsLTI4Ljg3NSA0Ni4zNzUgNDkuODc1IDBtLS44NzUtMTEybC00My43NS02LjEyNSAyMS44NzUgNDkuODc1IDAgMy41IDE1Ljc1IDEuNzVjMi42MjUgMCA1LjI1LTEuNzUgNS4yNS00LjM3NWw1LjI1LTM4LjVjMC0xLjc1IDAtMy41LS44NzUtNC4zNzUtLjg3NS0uODc1LTIuNjI1LTEuNzUtMy41LTEuNzVtLTc3Ljg3NSAzNS44NzVsMCAyLjYyNSA0Mi44NzUgNy0yMi43NS01MS42MjUgMC0xLjc1LTQyLTYuMTI1IDIxLjg3NSA0OS44NzVtLTU2LTguNzVjMCAuODc1Ljg3NSAyLjYyNSAwIDMuNWw0Mi44NzUgNi4xMjUtMjIuNzUtNTEuNjI1IDAtMS43NS00Mi02LjEyNSAyMS44NzUgNDkuODc1bS01Ni03Ljg3NWMuODc1Ljg3NS44NzUgMS43NSAwIDIuNjI1bDQyLjg3NSA2LjEyNS0yMi43NS01MS42MjUgMC0xLjc1LTQyLTYuMTI1IDIxLjg3NSA1MC43NW0tNTAuNzUtNC4zNzVsMzcuNjI1IDUuMjUtMjIuNzUtNTEuNjI1IDAtMS43NS03Ljg3NS0uODc1Yy0zLjUgMC02LjEyNSAxLjc1LTYuMTI1IDQuMzc1bC01LjI1IDM4LjVjMCAxLjc1IDAgMy41Ljg3NSA0LjM3NS44NzUuODc1IDEuNzUgMS43NSAzLjUgMS43NSIvPgo8L3N2Zz4K"
},function(e,t,n){e.exports=n.p+"desktop/common/img/vendor-logos/songkick.19411461aa7bffd06675aaa8a3d0a056.svg"},function(e,t,n){"use strict";var i=function(){};e.exports=i},function(e,t){(function(t){e.exports=t}).call(t,{})}],[2566]);